getXpnHost method

  1. @override
Future<Project> getXpnHost(
  1. GetXpnHostProjectRequest request
)
override

Gets the shared VPC host project that this project links to. May be empty if no link exists.

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<Project> getXpnHost(GetXpnHostProjectRequest request) async {
  if (isClosed) throw StateError('Service is closed');

  if (_getXpnHost case final getXpnHost?) {
    return getXpnHost(request);
  }
  throw UnsupportedError('getXpnHost');
}