bulkSetLabels method

  1. @override
Future<Operation> bulkSetLabels(
  1. BulkSetLabelsDiskRequest request
)
override

Sets the labels on many disks at once. To learn more about labels, read theLabeling Resources documentation.

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

  if (_bulkSetLabels case final bulkSetLabels?) {
    return bulkSetLabels(request);
  }
  throw UnsupportedError('bulkSetLabels');
}