async def get_asset(
self,
asset_id: "capo_dataexchange.types.id.Id",
data_set_id: "capo_dataexchange.types.id.Id",
revision_id: "capo_dataexchange.types.id.Id",
*,
config_overrides: Optional[AsyncDataExchangeClientConfig] = None,
) -> "capo_dataexchange.types.get_asset_response.GetAssetResponse":
"""<p>This operation returns information about an asset.</p>
Args:
asset_id: <p>The unique identifier for an asset.</p>
data_set_id: <p>The unique identifier for a data set.</p>
revision_id: <p>The unique identifier for a revision.</p>
Raises:
capo_dataexchange.errors.internal_server_exception.InternalServerException: <p>An exception occurred with the service.</p>
capo_dataexchange.errors.resource_not_found_exception.ResourceNotFoundException: <p>The resource couldn't be found.</p>
capo_dataexchange.errors.throttling_exception.ThrottlingException: <p>The limit on the number of requests per second was exceeded.</p>
capo_dataexchange.errors.validation_exception.ValidationException: <p>The request was invalid.</p>
capo_dataexchange.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
async def _handler(
req: "AsyncOperationRequest[capo_dataexchange.types.get_asset_request.GetAssetRequest]",
) -> AsyncOperationResponse[
"capo_dataexchange.types.get_asset_response.GetAssetResponse"
]:
import capo_dataexchange._operations.data_exchange.get_asset
(
output,
http_response,
) = await capo_dataexchange._operations.data_exchange.get_asset.async_get_asset(
req.options, req.input
)
return AsyncOperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("GetAsset")
)
input_: capo_dataexchange.types.get_asset_request.GetAssetRequest = {
"asset_id": asset_id,
"data_set_id": data_set_id,
"revision_id": revision_id,
}
response = await aexecute_pipeline(
AsyncOperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
await response.response.aclose()
return response.output