async def get_minute_usage(
self,
month: "capo_groundstation.types.month.Month",
year: "capo_groundstation.types.year.Year",
*,
config_overrides: Optional[AsyncGroundStationClientConfig] = None,
) -> "capo_groundstation.types.get_minute_usage_response.GetMinuteUsageResponse":
"""<p>Returns the number of reserved minutes used by account.</p>
Args:
month: <p>The month being requested, with a value of 1-12.</p>
year: <p>The year being requested, in the format of YYYY.</p>
Raises:
capo_groundstation.errors.dependency_exception.DependencyException: <p>Dependency encountered an error.</p>
capo_groundstation.errors.invalid_parameter_exception.InvalidParameterException: <p>One or more parameters are not valid.</p>
capo_groundstation.errors.resource_not_found_exception.ResourceNotFoundException: <p>Resource was not found.</p>
capo_groundstation.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
async def _handler(
req: "AsyncOperationRequest[capo_groundstation.types.get_minute_usage_request.GetMinuteUsageRequest]",
) -> AsyncOperationResponse[
"capo_groundstation.types.get_minute_usage_response.GetMinuteUsageResponse"
]:
import capo_groundstation._operations.ground_station.get_minute_usage
(
output,
http_response,
) = await capo_groundstation._operations.ground_station.get_minute_usage.async_get_minute_usage(
req.options, req.input
)
return AsyncOperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("GetMinuteUsage")
)
input_: capo_groundstation.types.get_minute_usage_request.GetMinuteUsageRequest = {
"month": month,
"year": year,
}
response = await aexecute_pipeline(
AsyncOperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
await response.response.aclose()
return response.output