Retrieves information about a requester gateway.
Parameters:
-
gateway_id
(GatewayId)
–
The unique identifier of the gateway.
Raises:
Examples:
Get requester gateway details
Get requester gateway
>>> await client.get_requester_gateway(gateway_id='rtb-gw-12345678')
Source code in docs_src/capo_rtbfabric/_services/async_rtb_fabric.py
| async def get_requester_gateway(
self,
gateway_id: "capo_rtbfabric.types.gateway_id.GatewayId",
*,
config_overrides: Optional[AsyncRTBFabricClientConfig] = None,
) -> "capo_rtbfabric.types.get_requester_gateway_response.GetRequesterGatewayResponse":
"""<p>Retrieves information about a requester gateway.</p>
Args:
gateway_id: <p>The unique identifier of the gateway.</p>
Raises:
capo_rtbfabric.errors.access_denied_exception.AccessDeniedException: <p>The request could not be completed because you do not have sufficient access to perform this action.</p>
capo_rtbfabric.errors.internal_server_exception.InternalServerException: <p>The request could not be completed because of an internal server error. Try your call again.</p>
capo_rtbfabric.errors.resource_not_found_exception.ResourceNotFoundException: <p>The request could not be completed because the resource does not exist.</p>
capo_rtbfabric.errors.throttling_exception.ThrottlingException: <p>The request was denied due to request throttling.</p>
capo_rtbfabric.errors.validation_exception.ValidationException: <p>The request could not be completed because it fails satisfy the constraints specified by the service.</p>
capo_rtbfabric.errors.UnknownServiceError: The service returned an error code this client does not model.
Examples:
Get requester gateway details
Get requester gateway
>>> await client.get_requester_gateway(gateway_id='rtb-gw-12345678')
"""
async def _handler(
req: "AsyncOperationRequest[capo_rtbfabric.types.get_requester_gateway_request.GetRequesterGatewayRequest]",
) -> AsyncOperationResponse[
"capo_rtbfabric.types.get_requester_gateway_response.GetRequesterGatewayResponse"
]:
import capo_rtbfabric._operations.rtb_fabric.get_requester_gateway
(
output,
http_response,
) = await capo_rtbfabric._operations.rtb_fabric.get_requester_gateway.async_get_requester_gateway(
req.options, req.input
)
return AsyncOperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("GetRequesterGateway")
)
input_: capo_rtbfabric.types.get_requester_gateway_request.GetRequesterGatewayRequest = {
"gateway_id": gateway_id
}
response = await aexecute_pipeline(
AsyncOperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
await response.response.aclose()
return response.output
|