Skip to content

describe_node_from_template_job async

describe_node_from_template_job(
    job_id: JobId, *, config_overrides: Optional[AsyncPanoramaClientConfig] = None
) -> DescribeNodeFromTemplateJobResponse

Returns information about a job to create a camera stream node.

Parameters:

  • job_id (JobId) –

    The job's ID.

Raises:

Source code in docs_src/capo_panorama/_services/async_panorama.py
async def describe_node_from_template_job(
    self,
    job_id: "capo_panorama.types.job_id.JobId",
    *,
    config_overrides: Optional[AsyncPanoramaClientConfig] = None,
) -> "capo_panorama.types.describe_node_from_template_job_response.DescribeNodeFromTemplateJobResponse":
    """<p>Returns information about a job to create a camera stream node.</p>

    Args:
        job_id: <p>The job's ID.</p>

    Raises:
        capo_panorama.errors.access_denied_exception.AccessDeniedException: <p>The requestor does not have permission to access the target action or resource.</p>
        capo_panorama.errors.conflict_exception.ConflictException: <p>The target resource is in use.</p>
        capo_panorama.errors.internal_server_exception.InternalServerException: <p>An internal error occurred.</p>
        capo_panorama.errors.validation_exception.ValidationException: <p>The request contains an invalid parameter value.</p>
        capo_panorama.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    async def _handler(
        req: "AsyncOperationRequest[capo_panorama.types.describe_node_from_template_job_request.DescribeNodeFromTemplateJobRequest]",
    ) -> AsyncOperationResponse[
        "capo_panorama.types.describe_node_from_template_job_response.DescribeNodeFromTemplateJobResponse"
    ]:
        import capo_panorama._operations.omni_cloud_service_lambda.describe_node_from_template_job

        (
            output,
            http_response,
        ) = await capo_panorama._operations.omni_cloud_service_lambda.describe_node_from_template_job.async_describe_node_from_template_job(
            req.options, req.input
        )
        return AsyncOperationResponse(output=output, response=http_response)

    def _redact_output(
        output: "capo_panorama.types.describe_node_from_template_job_response.DescribeNodeFromTemplateJobResponse",
    ) -> dict[str, Any]:
        import capo_panorama.types.describe_node_from_template_job_response

        return capo_panorama.types.describe_node_from_template_job_response.redact_sensitive(
            output
        )

    interceptors_, options_ = self.operation_options(
        config_overrides,
        OperationLogging(
            "DescribeNodeFromTemplateJob", redact_output=_redact_output
        ),
    )
    input_: capo_panorama.types.describe_node_from_template_job_request.DescribeNodeFromTemplateJobRequest = {
        "job_id": job_id
    }

    response = await aexecute_pipeline(
        AsyncOperationRequest(input=input_, options=options_),
        handler=_handler,
        interceptors=list(interceptors_),
    )
    await response.response.aclose()
    return response.output