Interface BucketApi
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanbucketExist(String bucketName)Check the existence of a bucketBucketcreateBucket(String projectId, BucketTemplate bucketTemplate)Creates a new bucketBucketcreateBucket(String projectId, BucketTemplate bucketTemplate, InsertBucketOptions options)Creates a new BucketbooleandeleteBucket(String bucketName)Permanently deletes an empty Bucket.If bucket is not empty 409 error to indicate the conflict.booleandeleteBucket(String bucketName, DeleteBucketOptions options)Permanently deletes an empty Bucket.If bucket is not empty 409 error to indicate the conflict.BucketgetBucket(String bucketName)Returns metadata for the specified bucket.BucketgetBucket(String bucketName, GetBucketOptions options)Returns metadata for the specified bucketListPage<Bucket>listBucket(String projectId)Retrieves a list of buckets for a given projectListPage<Bucket>listBucket(String projectId, ListOptions options)Retrieves a list of buckets for a given projectBucketpatchBucket(String bucketName, BucketTemplate bucketTemplate)Updates a bucket supporting patch semantics.BucketpatchBucket(String bucketName, BucketTemplate bucketTemplate, UpdateBucketOptions options)Updates a bucket supporting patch semantics.BucketupdateBucket(String bucketName, BucketTemplate bucketTemplate)Updates a bucketBucketupdateBucket(String bucketName, BucketTemplate bucketTemplate, UpdateBucketOptions options)Updates a bucket
 
- 
- 
- 
Method Detail- 
bucketExist@Named("Bucket:get") @GET @Path("/b/{bucket}") boolean bucketExist(@PathParam("bucket") String bucketName)Check the existence of a bucket- Parameters:
- bucketName- Name of the bucket
- Returns:
- a Buckettrue if bucket exist
 
 - 
getBucket@Named("Bucket:get") @GET @Produces("application/json") @Path("/b/{bucket}") @Nullable Bucket getBucket(@PathParam("bucket") String bucketName)Returns metadata for the specified bucket.- Parameters:
- bucketName- Name of the bucket
- Returns:
- a Bucketresource
 
 - 
getBucket@Named("Bucket:get") @GET @Produces("application/json") @Path("/b/{bucket}") @Nullable Bucket getBucket(@PathParam("bucket") String bucketName, GetBucketOptions options)Returns metadata for the specified bucket- Parameters:
- bucketName- Name of the bucket
- options- Supply- GetBucketOptionswith optional query parameters
- Returns:
- a Bucketresource
 
 - 
createBucket@Named("Bucket:insert") @POST @Path("/b") Bucket createBucket(@QueryParam("project") String projectId, BucketTemplate bucketTemplate)Creates a new bucket- Parameters:
- projectId- A valid API project identifier
- bucketTemplate- supply a- BucketTemplateresource
- Returns:
- If successful, this method returns a Bucketresource.
 
 - 
createBucket@Named("Bucket:insert") @POST @Path("/b") Bucket createBucket(@QueryParam("project") String projectId, BucketTemplate bucketTemplate, InsertBucketOptions options)Creates a new Bucket- Parameters:
- projectId- A valid API project identifier
- bucketTemplate- Supply a- BucketTemplateresource
- options- Supply- InsertBucketOptionswith optional query parameters
- Returns:
- If successful, this method returns a Bucketresource.
 
 - 
deleteBucket@Named("Bucket:delete") @DELETE @Path("/b/{bucket}") boolean deleteBucket(@PathParam("bucket") String bucketName)Permanently deletes an empty Bucket.If bucket is not empty 409 error to indicate the conflict.- Parameters:
- bucketName- Name of the bucket
 
 - 
deleteBucket@Named("Bucket:delete") @DELETE @Path("/b/{bucket}") boolean deleteBucket(@PathParam("bucket") String bucketName, DeleteBucketOptions options)Permanently deletes an empty Bucket.If bucket is not empty 409 error to indicate the conflict.- Parameters:
- bucketName- Name of the bucket
- options- Supply- DeleteBucketOptionswith optional query parameters
 
 - 
listBucket@Named("Bucket:list") @GET @Produces("application/json") @Path("/b") ListPage<Bucket> listBucket(@QueryParam("project") String projectId)Retrieves a list of buckets for a given project- Parameters:
- projectId- A valid API project identifier
- Returns:
- a ListPage
 
 - 
listBucket@Named("Bucket:list") @GET @Produces("application/json") @Path("/b") ListPage<Bucket> listBucket(@QueryParam("project") String projectId, ListOptions options)Retrieves a list of buckets for a given project- Parameters:
- projectId- A valid API project identifier
- options- Supply- ListOptionswith optional query parameters
 
 - 
updateBucket@Named("Bucket:update") @PUT @Produces("application/json") @Path("/b/{bucket}") Bucket updateBucket(@PathParam("bucket") String bucketName, BucketTemplate bucketTemplate)Updates a bucket- Parameters:
- bucketName- Name of the bucket
- bucketTemplate- Supply a- BucketTemplateresource with list of- BucketAccessControls
- Returns:
- If successful, this method returns the updated Bucketresource.
 
 - 
updateBucket@Named("Bucket:update") @PUT @Produces("application/json") @Path("/b/{bucket}") Bucket updateBucket(@PathParam("bucket") String bucketName, BucketTemplate bucketTemplate, UpdateBucketOptions options)Updates a bucket- Parameters:
- bucketName- Name of the bucket
- bucketTemplate- Supply a- BucketTemplateresource with list of- BucketAccessControls
- options- Supply- UpdateBucketOptionswith optional query parameters
- Returns:
- If successful,this method returns the updated Bucketresource.
 
 - 
patchBucket@Named("Bucket:patch") @Produces("application/json") @Path("/b/{bucket}") Bucket patchBucket(@PathParam("bucket") String bucketName, BucketTemplate bucketTemplate)Updates a bucket supporting patch semantics.- Parameters:
- bucketName- Name of the bucket
- bucketTemplate- Supply a- BucketTemplateresource with list of- BucketAccessControls
- Returns:
- If successful, this method returns the updated Bucketresource.
- See Also:
 
 - 
patchBucket@Named("Bucket:patch") @Produces("application/json") @Path("/b/{bucket}") Bucket patchBucket(@PathParam("bucket") String bucketName, BucketTemplate bucketTemplate, UpdateBucketOptions options)Updates a bucket supporting patch semantics.- Parameters:
- bucketName- Name of the bucket
- bucketTemplate- Supply a- BucketTemplateresource with list of- BucketAccessControls
- options- Supply- UpdateBucketOptionswith optional query parameters
- Returns:
- If successful, this method returns the updated Bucketresource.
- See Also:
 
 
- 
 
-