Package io.supabase.api
Interface IStorageBucketAPI
- All Known Implementing Classes:
StorageBucketAPI,StorageClient
public interface IStorageBucketAPI
-
Method Summary
Modifier and TypeMethodDescriptioncreateBucket(String bucketId) POST /bucket/createBucket(String bucketId, BucketCreateOptions options) POST /bucket/deleteBucket(String bucketId) DELETE /bucket/{bucketId}emptyBucket(String bucketId) POST /bucket/{bucketId}/emptyGET /bucket/{bucketId}/GET /bucket/updateBucket(String bucketId, BucketUpdateOptions options) PUT /bucket/{bucketId}/
-
Method Details
-
createBucket
POST /bucket/
- Parameters:
bucketId- The name/id of the bucket you want to create.- Returns:
- a
CreateBucketResponseobject.
-
createBucket
POST /bucket/
- Parameters:
bucketId- The name/id of the bucket you want to create.options- The options you want to pass for the bucket creation.- Returns:
- a
CreateBucketResponseobject.
-
listBuckets
CompletableFuture<List<Bucket>> listBuckets()GET /bucket/
Lists all buckets in the project.- Returns:
- A list of all buckets.
-
emptyBucket
POST /bucket/{bucketId}/empty
- Parameters:
bucketId- The bucket you want to empty.- Returns:
- a status message
-
getBucket
GET /bucket/{bucketId}/
- Parameters:
bucketId- The bucket of which you want to retrieve.- Returns:
- the asked for bucket
-
updateBucket
PUT /bucket/{bucketId}/
- Parameters:
bucketId- The bucket you want to updateoptions- The options to update the bucket to.- Returns:
- a status message
-
deleteBucket
DELETE /bucket/{bucketId}
- Parameters:
bucketId- The bucket of which you want to delete.- Returns:
- a status message
-