listBuckets method

  1. @override
Future<ListBucketsResponse> listBuckets(
  1. ListBucketsRequest request
)
override

Lists log buckets.

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

  if (_listBuckets case final listBuckets?) {
    return listBuckets(request);
  }
  throw UnsupportedError('listBuckets');
}