removeHealthCheck method

  1. @override
Future<Operation> removeHealthCheck(
  1. RemoveHealthCheckTargetPoolRequest request
)
override

Removes health check URL from a target pool.

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

  if (_removeHealthCheck case final removeHealthCheck?) {
    return removeHealthCheck(request);
  }
  throw UnsupportedError('removeHealthCheck');
}