Retrieves information about the specified quota increase request.
Parameters:
-
request_id
(RequestId)
–
Specifies the ID of the quota increase request.
Raises:
Source code in docs_src/capo_service_quotas/_services/async_service_quotas.py
| async def get_requested_service_quota_change(
self,
request_id: "capo_service_quotas.types.request_id.RequestId",
*,
config_overrides: Optional[AsyncServiceQuotasClientConfig] = None,
) -> "capo_service_quotas.types.get_requested_service_quota_change_response.GetRequestedServiceQuotaChangeResponse":
"""<p>Retrieves information about the specified quota increase request.</p>
Args:
request_id: <p>Specifies the ID of the quota increase request.</p>
Raises:
capo_service_quotas.errors.access_denied_exception.AccessDeniedException: <p>You do not have sufficient permission to perform this action.</p>
capo_service_quotas.errors.illegal_argument_exception.IllegalArgumentException: <p>Invalid input was provided.</p>
capo_service_quotas.errors.no_such_resource_exception.NoSuchResourceException: <p>The specified resource does not exist.</p>
capo_service_quotas.errors.service_exception.ServiceException: <p>Something went wrong.</p>
capo_service_quotas.errors.too_many_requests_exception.TooManyRequestsException: <p>Due to throttling, the request was denied. Slow down the rate of request calls, or request an increase for this quota.</p>
capo_service_quotas.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
async def _handler(
req: "AsyncOperationRequest[capo_service_quotas.types.get_requested_service_quota_change_request.GetRequestedServiceQuotaChangeRequest]",
) -> AsyncOperationResponse[
"capo_service_quotas.types.get_requested_service_quota_change_response.GetRequestedServiceQuotaChangeResponse"
]:
import capo_service_quotas._operations.service_quotas_v20190624.get_requested_service_quota_change
(
output,
http_response,
) = await capo_service_quotas._operations.service_quotas_v20190624.get_requested_service_quota_change.async_get_requested_service_quota_change(
req.options, req.input
)
return AsyncOperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("GetRequestedServiceQuotaChange")
)
input_: capo_service_quotas.types.get_requested_service_quota_change_request.GetRequestedServiceQuotaChangeRequest = {
"request_id": request_id
}
response = await aexecute_pipeline(
AsyncOperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
await response.response.aclose()
return response.output
|