getNatIpInfo method

  1. @override
Future<NatIpInfoResponse> getNatIpInfo(
  1. GetNatIpInfoRouterRequest request
)
override

Retrieves runtime NAT IP information.

Throws a http.ClientException if there were problems communicating with the API service. Throws a ServiceException if the API method failed for any reason.

Implementation

@override
Future<NatIpInfoResponse> getNatIpInfo(
  GetNatIpInfoRouterRequest request,
) async {
  if (isClosed) throw StateError('Service is closed');

  if (_getNatIpInfo case final getNatIpInfo?) {
    return getNatIpInfo(request);
  }
  throw UnsupportedError('getNatIpInfo');
}