listBuckets method
Lists vector buckets, optionally filtered by prefix and paginated with
maxResults and nextToken.
Implementation
Future<VectorBucketList> listBuckets({
String? prefix,
int? maxResults,
String? nextToken,
}) async {
final response = await _storageFetch.post(
'$_url/ListVectorBuckets',
{
'prefix': ?prefix,
'maxResults': ?maxResults,
'nextToken': ?nextToken,
},
options: _options,
);
return VectorBucketList.fromJson(response as Map<String, dynamic>);
}