updateBucket method
Updates a log bucket.
If the bucket has a lifecycle_state of DELETE_REQUESTED, then
FAILED_PRECONDITION will be returned.
After a bucket has been created, the bucket's location cannot be changed.
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<LogBucket> updateBucket(UpdateBucketRequest request) async {
if (isClosed) throw StateError('Service is closed');
if (_updateBucket case final updateBucket?) {
return updateBucket(request);
}
throw UnsupportedError('updateBucket');
}