async def get_code_binding_source(
self,
language: "capo_schemas.types.__string.__string",
registry_name: "capo_schemas.types.__string.__string",
schema_name: "capo_schemas.types.__string.__string",
*,
config_overrides: Optional[AsyncschemasClientConfig] = None,
schema_version: Optional["capo_schemas.types.__string.__string"] = None,
) -> "capo_schemas.types.get_code_binding_source_response.GetCodeBindingSourceResponse":
"""<p>Get the code binding source URI.</p>
Args:
language: <p>The language of the code binding.</p>
registry_name: <p>The name of the registry.</p>
schema_name: <p>The name of the schema.</p>
schema_version: <p>Specifying this limits the results to only this schema version.</p>
Raises:
capo_schemas.errors.bad_request_exception.BadRequestException
capo_schemas.errors.forbidden_exception.ForbiddenException
capo_schemas.errors.internal_server_error_exception.InternalServerErrorException
capo_schemas.errors.not_found_exception.NotFoundException
capo_schemas.errors.too_many_requests_exception.TooManyRequestsException
capo_schemas.errors.unauthorized_exception.UnauthorizedException
capo_schemas.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
async def _handler(
req: "AsyncOperationRequest[capo_schemas.types.get_code_binding_source_request.GetCodeBindingSourceRequest]",
) -> AsyncOperationResponse[
"capo_schemas.types.get_code_binding_source_response.GetCodeBindingSourceResponse"
]:
import capo_schemas._operations.schemas.get_code_binding_source
(
output,
http_response,
) = await capo_schemas._operations.schemas.get_code_binding_source.async_get_code_binding_source(
req.options, req.input
)
return AsyncOperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("GetCodeBindingSource")
)
input_: capo_schemas.types.get_code_binding_source_request.GetCodeBindingSourceRequest = {
"language": language,
"registry_name": registry_name,
"schema_name": schema_name,
}
if schema_version is not None:
input_["schema_version"] = schema_version
response = await aexecute_pipeline(
AsyncOperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
await response.response.aclose()
return response.output