disableXpnHost method

  1. @override
Future<Operation> disableXpnHost(
  1. DisableXpnHostProjectRequest request
)
override

Disable 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> disableXpnHost(DisableXpnHostProjectRequest request) async {
  if (isClosed) throw StateError('Service is closed');

  if (_disableXpnHost case final disableXpnHost?) {
    return disableXpnHost(request);
  }
  throw UnsupportedError('disableXpnHost');
}