deleteSink method

  1. @override
Future<void> deleteSink(
  1. DeleteSinkRequest request
)
override

Deletes a sink. If the sink has a unique writer_identity, then that service account is also deleted.

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<void> deleteSink(DeleteSinkRequest request) async {
  if (isClosed) throw StateError('Service is closed');

  if (_deleteSink case final deleteSink?) {
    return deleteSink(request);
  }
  throw UnsupportedError('deleteSink');
}