getWirelessGateway method

Future<GetWirelessGatewayResponse> getWirelessGateway({
  1. required String identifier,
  2. required WirelessGatewayIdType identifierType,
})

Gets information about a wireless gateway.

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

Parameter identifier : The identifier of the wireless gateway to get.

Parameter identifierType : The type of identifier used in identifier.

Implementation

Future<GetWirelessGatewayResponse> getWirelessGateway({
  required String identifier,
  required WirelessGatewayIdType identifierType,
}) async {
  final $query = <String, List<String>>{
    'identifierType': [identifierType.value],
  };
  final response = await _protocol.send(
    payload: null,
    method: 'GET',
    requestUri: '/wireless-gateways/${Uri.encodeComponent(identifier)}',
    queryParams: $query,
    exceptionFnMap: _exceptionFns,
  );
  return GetWirelessGatewayResponse.fromJson(response);
}