@Consumes(value="application/json")
@Produces(value="application/json")
public interface BucketApi
Modifier and Type | Method and Description |
---|---|
Bucket |
createBucket(String bucketName,
BucketType bucketType) |
Bucket |
deleteBucket(String bucketId) |
BucketList |
listBuckets() |
Bucket |
updateBucket(String bucketId,
BucketType bucketType) |
@Named(value="b2_create_bucket") @POST @Path(value="/b2api/v1/b2_create_bucket") Bucket createBucket(String bucketName, BucketType bucketType)
@Named(value="b2_delete_bucket") @POST @Path(value="/b2api/v1/b2_delete_bucket") Bucket deleteBucket(String bucketId)
@Named(value="b2_update_bucket") @POST @Path(value="/b2api/v1/b2_update_bucket") Bucket updateBucket(String bucketId, BucketType bucketType)
@Named(value="b2_list_buckets") @POST @Path(value="/b2api/v1/b2_list_buckets") BucketList listBuckets()
Copyright © 2009-2018 The Apache Software Foundation. All Rights Reserved.