getGateway method

Future<GetGatewayResponse> getGateway({
  1. required String gatewayIdentifier,
})

Retrieves information about a specific Gateway.

May throw AccessDeniedException. May throw InternalServerException. May throw ResourceNotFoundException. May throw ThrottlingException. May throw ValidationException.

Parameter gatewayIdentifier : The identifier of the gateway to retrieve.

Implementation

Future<GetGatewayResponse> getGateway({
  required String gatewayIdentifier,
}) async {
  final response = await _protocol.send(
    payload: null,
    method: 'GET',
    requestUri: '/gateways/${Uri.encodeComponent(gatewayIdentifier)}/',
    exceptionFnMap: _exceptionFns,
  );
  return GetGatewayResponse.fromJson(response);
}