get method

Returns the specified externalVpnGateway. Get a list of available externalVpnGateways by making a list() request.

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

Future<ExternalVpnGateway> get(GetExternalVpnGatewayRequest request) async {
  final url = _endPoint.replace(
    path:
        '/compute/v1/projects/${request.project}/global/externalVpnGateways/${request.externalVpnGateway}',
  );
  final response = await _client.get(url);
  return ExternalVpnGateway.fromJson(response);
}