Get data store properties.
Parameters:
-
datastore_id
(DatastoreId)
–
The data store identifier.
Raises:
Source code in docs_src/capo_medical_imaging/_services/async_medical_imaging.py
| async def get_datastore(
self,
datastore_id: "capo_medical_imaging.types.datastore_id.DatastoreId",
*,
config_overrides: Optional[AsyncMedicalImagingClientConfig] = None,
) -> "capo_medical_imaging.types.get_datastore_response.GetDatastoreResponse":
"""<p>Get data store properties.</p>
Args:
datastore_id: <p>The data store identifier.</p>
Raises:
capo_medical_imaging.errors.access_denied_exception.AccessDeniedException: <p>The user does not have sufficient access to perform this action.</p>
capo_medical_imaging.errors.internal_server_exception.InternalServerException: <p>An unexpected error occurred during processing of the request.</p>
capo_medical_imaging.errors.resource_not_found_exception.ResourceNotFoundException: <p>The request references a resource which does not exist.</p>
capo_medical_imaging.errors.throttling_exception.ThrottlingException: <p>The request was denied due to throttling.</p>
capo_medical_imaging.errors.validation_exception.ValidationException: <p>The input fails to satisfy the constraints set by the service.</p>
capo_medical_imaging.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
async def _handler(
req: "AsyncOperationRequest[capo_medical_imaging.types.get_datastore_request.GetDatastoreRequest]",
) -> AsyncOperationResponse[
"capo_medical_imaging.types.get_datastore_response.GetDatastoreResponse"
]:
import capo_medical_imaging._operations.ahi_gateway_service.get_datastore
(
output,
http_response,
) = await capo_medical_imaging._operations.ahi_gateway_service.get_datastore.async_get_datastore(
req.options, req.input
)
return AsyncOperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("GetDatastore")
)
input_: capo_medical_imaging.types.get_datastore_request.GetDatastoreRequest = {
"datastore_id": datastore_id
}
response = await aexecute_pipeline(
AsyncOperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
await response.response.aclose()
return response.output
|