Interface BucketAccessControlsApi
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description BucketAccessControlscreateBucketAccessControls(String bucketName, BucketAccessControlsTemplate template)Creates a new ACL entry on the specified bucket.HttpResponsedeleteBucketAccessControls(String bucketName, String entity)Permanently deletes the ACL entry for the specified entity on the specified bucket.BucketAccessControlsgetBucketAccessControls(String bucketName, String entity)Returns the ACL entry for the specified entity on the specified bucket.List<BucketAccessControls>listBucketAccessControls(String bucketName)Retrieves all ACL entries on a specified bucketBucketAccessControlspatchBucketAccessControls(String bucketName, String entity, BucketAccessControlsTemplate template)Updates an ACL entry on the specified bucket.BucketAccessControlsupdateBucketAccessControls(String bucketName, String entity, BucketAccessControlsTemplate template)Updates an ACL entry on the specified bucket
-
-
-
Method Detail
-
getBucketAccessControls
@Named("BucketAccessControls:get") @GET @Path("/b/{bucket}/acl/{entity}") @Nullable BucketAccessControls getBucketAccessControls(@PathParam("bucket") String bucketName, @PathParam("entity") String entity)Returns the ACL entry for the specified entity on the specified bucket.- Parameters:
bucketName- Name of the bucket which ACL is relatedentity- The entity holding the permission. Can be user-userId, user-emailAddress, group-groupId, group-emailAddress, allUsers, or allAuthenticatedUsers.- Returns:
- a BucketAccessControls resource
-
createBucketAccessControls
@Named("BucketAccessControls:insert") @POST @Path("/b/{bucket}/acl") BucketAccessControls createBucketAccessControls(@PathParam("bucket") String bucketName, BucketAccessControlsTemplate template)Creates a new ACL entry on the specified bucket.- Parameters:
bucketName- Name of the bucket of which ACL to be createdtemplate- In the request body,supply aBucketAccessControlsTemplateresource with role and entity- Returns:
- If successful, this method returns a BucketAccessControls resource in the response body
-
deleteBucketAccessControls
@Named("BucketAccessControls:delete") @DELETE @Path("/b/{bucket}/acl/{entity}") @Nullable HttpResponse deleteBucketAccessControls(@PathParam("bucket") String bucketName, @PathParam("entity") String entity)Permanently deletes the ACL entry for the specified entity on the specified bucket.- Parameters:
bucketName- Name of the bucket of that ACL is related- Returns:
- If successful, this method returns an empty response body.
-
listBucketAccessControls
@Named("BucketAccessControls:list") @GET @Produces("application/json") @Path("/b/{bucket}/acl") @Nullable List<BucketAccessControls> listBucketAccessControls(@PathParam("bucket") String bucketName)Retrieves all ACL entries on a specified bucket- Parameters:
bucketName- Name of the bucket which ACL is related- Returns:
- ListBucketAccessControls resource
-
updateBucketAccessControls
@Named("BucketAccessControls:update") @PUT @Produces("application/json") @Path("/b/{bucket}/acl/{entity}") BucketAccessControls updateBucketAccessControls(@PathParam("bucket") String bucketName, @PathParam("entity") String entity, BucketAccessControlsTemplate template)Updates an ACL entry on the specified bucket- Parameters:
bucketName- Name of the bucket which ACL to be createdentity- The entity holding the permission. Can be user-userId, user-emailAddress, group-groupId, group-emailAddress, allUsers, or allAuthenticatedUsers. In the request body, supply aBucketAccessControlsTemplateresource with role- Returns:
- If successful, this method returns a
BucketAccessControlsTemplateresource in the response body
-
patchBucketAccessControls
@Named("BucketAccessControls:patch") @Produces("application/json") @Path("/b/{bucket}/acl/{entity}") BucketAccessControls patchBucketAccessControls(@PathParam("bucket") String bucketName, @PathParam("entity") String entity, BucketAccessControlsTemplate template)Updates an ACL entry on the specified bucket.- Parameters:
bucketName- Name of the bucket which ACL to be createdentity- The entity holding the permission. Can be user-userId, user-emailAddress, group-groupId, group-emailAddress, allUsers, or allAuthenticatedUserstemplate- In the request body, supply aBucketAccessControlsTemplateresource with role- Returns:
- If successful, this method returns a BucketAccessControls resource in the response body
-
-