Modifier and Type | Method and Description |
---|---|
BucketAccessControls |
createBucketAccessControls(String bucketName,
BucketAccessControlsTemplate template)
Creates a new ACL entry on the specified bucket.
|
HttpResponse |
deleteBucketAccessControls(String bucketName,
String entity)
Permanently deletes the ACL entry for the specified entity on the specified bucket.
|
BucketAccessControls |
getBucketAccessControls(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 bucket
|
BucketAccessControls |
patchBucketAccessControls(String bucketName,
String entity,
BucketAccessControlsTemplate template)
Updates an ACL entry on the specified bucket.
|
BucketAccessControls |
updateBucketAccessControls(String bucketName,
String entity,
BucketAccessControlsTemplate template)
Updates an ACL entry on the specified bucket
|
@Named(value="BucketAccessControls:get") @GET @Path(value="/b/{bucket}/acl/{entity}") @Nullable BucketAccessControls getBucketAccessControls(@PathParam(value="bucket") String bucketName, @PathParam(value="entity") String entity)
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.@Named(value="BucketAccessControls:insert") @POST @Path(value="/b/{bucket}/acl") BucketAccessControls createBucketAccessControls(@PathParam(value="bucket") String bucketName, BucketAccessControlsTemplate template)
bucketName
- Name of the bucket of which ACL to be createdtemplate
- In the request body,supply a BucketAccessControlsTemplate
resource with role and entity@Named(value="BucketAccessControls:delete") @DELETE @Path(value="/b/{bucket}/acl/{entity}") @Nullable HttpResponse deleteBucketAccessControls(@PathParam(value="bucket") String bucketName, @PathParam(value="entity") String entity)
bucketName
- Name of the bucket of that ACL is related@Named(value="BucketAccessControls:list") @GET @Produces(value="application/json") @Path(value="/b/{bucket}/acl") @Nullable List<BucketAccessControls> listBucketAccessControls(@PathParam(value="bucket") String bucketName)
bucketName
- Name of the bucket which ACL is related@Named(value="BucketAccessControls:update") @PUT @Produces(value="application/json") @Path(value="/b/{bucket}/acl/{entity}") BucketAccessControls updateBucketAccessControls(@PathParam(value="bucket") String bucketName, @PathParam(value="entity") String entity, BucketAccessControlsTemplate template)
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 a
BucketAccessControlsTemplate
resource with roleBucketAccessControlsTemplate
resource in the response body@Named(value="BucketAccessControls:patch") @Produces(value="application/json") @Path(value="/b/{bucket}/acl/{entity}") BucketAccessControls patchBucketAccessControls(@PathParam(value="bucket") String bucketName, @PathParam(value="entity") String entity, BucketAccessControlsTemplate template)
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 a BucketAccessControlsTemplate
resource with roleCopyright © 2009-2018 The Apache Software Foundation. All Rights Reserved.