jclouds-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrew Phillips <notificati...@github.com>
Subject Re: [jclouds-labs-google] Added Bucket Access Control with Tests (#27)
Date Wed, 17 Sep 2014 17:54:50 GMT
> +    * @return If successful, this method returns a BucketAccessControls resource in the
response body
> +    */
> +
> +   @Named("BucketAccessControls:update")
> +   @PUT
> +   @Consumes(MediaType.APPLICATION_JSON)
> +   @Produces(MediaType.APPLICATION_JSON)
> +   @Path("/b/{bucket}/acl/{entity}")
> +   @OAuthScopes(STORAGE_FULLCONTROL_SCOPE)
> +   @Fallback(NullOnNotFoundOr404.class)
> +   BucketAccessControls updateBucketAccessControls(@PathParam("bucket") String bucketName,

> +            @PathParam("entity") String entity, 
> +            @BinderParam(BindToJsonPayload.class) BucketAccessControls bucketAccessControls);
> +
> +   /**
> +    * Updates an ACL entry on the specified bucket.PATCH avoids sending unnecessary
data when modifying resources

If this is better than the PUT version, why do we support PUT?

---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs-google/pull/27/files#r17681366
Mime
View raw message