getNatMappingInfo method

Retrieves runtime Nat mapping information of VM endpoints.

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<VmEndpointNatMappingsList> getNatMappingInfo(
  GetNatMappingInfoRoutersRequest request,
) async {
  if (isClosed) throw StateError('Service is closed');

  if (_getNatMappingInfo case final getNatMappingInfo?) {
    return getNatMappingInfo(request);
  }
  throw UnsupportedError('getNatMappingInfo');
}