Interface BucketAccessControlsApi
@Consumes("application/json")
public interface BucketAccessControlsApi
Provides access to BucketAccessControl entities via their REST API.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptioncreateBucketAccessControls
(String bucketName, BucketAccessControlsTemplate template) Creates a new ACL entry on the specified bucket.deleteBucketAccessControls
(String bucketName, String entity) Permanently deletes the ACL entry for the specified entity on the specified bucket.getBucketAccessControls
(String bucketName, String entity) Returns the ACL entry for the specified entity on the specified bucket.listBucketAccessControls
(String bucketName) Retrieves all ACL entries on a specified bucketpatchBucketAccessControls
(String bucketName, String entity, BucketAccessControlsTemplate template) Updates an ACL entry on the specified bucket.updateBucketAccessControls
(String bucketName, String entity, BucketAccessControlsTemplate template) Updates an ACL entry on the specified bucket
-
Method Details
-
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 aBucketAccessControlsTemplate
resource 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 aBucketAccessControlsTemplate
resource with role- Returns:
- If successful, this method returns a
BucketAccessControlsTemplate
resource in the response body
-
patchBucketAccessControls
@Named("BucketAccessControls:patch") @POST @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 aBucketAccessControlsTemplate
resource with role- Returns:
- If successful, this method returns a BucketAccessControls resource in the response body
-