Retrieves information about one or more tasks within a code review job.
Parameters:
-
agent_space_id
(str)
–
The unique identifier of the agent space that contains the tasks.
-
code_review_job_task_ids
(TaskIdList)
–
The list of task identifiers to retrieve.
Raises:
Source code in docs_src/capo_securityagent/_services/security_agent.py
| def batch_get_code_review_job_tasks(
self,
agent_space_id: str,
code_review_job_task_ids: "capo_securityagent.types.task_id_list.TaskIdList",
*,
config_overrides: Optional[SecurityAgentClientConfig] = None,
) -> "capo_securityagent.types.batch_get_code_review_job_tasks_output.BatchGetCodeReviewJobTasksOutput":
"""<p>Retrieves information about one or more tasks within a code review job.</p>
Args:
agent_space_id: <p>The unique identifier of the agent space that contains the tasks.</p>
code_review_job_task_ids: <p>The list of task identifiers to retrieve.</p>
Raises:
capo_securityagent.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
def _handler(
req: "OperationRequest[capo_securityagent.types.batch_get_code_review_job_tasks_input.BatchGetCodeReviewJobTasksInput]",
) -> OperationResponse[
"capo_securityagent.types.batch_get_code_review_job_tasks_output.BatchGetCodeReviewJobTasksOutput"
]:
import capo_securityagent._operations.security_agent.batch_get_code_review_job_tasks
output, http_response = (
capo_securityagent._operations.security_agent.batch_get_code_review_job_tasks.batch_get_code_review_job_tasks(
req.options, req.input
)
)
return OperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("BatchGetCodeReviewJobTasks")
)
input_: capo_securityagent.types.batch_get_code_review_job_tasks_input.BatchGetCodeReviewJobTasksInput = {
"agent_space_id": agent_space_id,
"code_review_job_task_ids": code_review_job_task_ids,
}
response = execute_pipeline(
OperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
response.response.close()
return response.output
|