enableXpnHost method

  1. @override
Future<Operation> enableXpnHost(
  1. EnableXpnHostProjectRequest request
)
override

Enable this project as a shared VPC host project.

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<Operation> enableXpnHost(EnableXpnHostProjectRequest request) async {
  if (isClosed) throw StateError('Service is closed');

  if (_enableXpnHost case final enableXpnHost?) {
    return enableXpnHost(request);
  }
  throw UnsupportedError('enableXpnHost');
}