From: Dunrong Huang Date: Wed, 23 Dec 2015 07:24:03 +0000 (+0800) Subject: doc: update SetACL API X-Git-Tag: v10.0.4~120^2~2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=dd065d890bdd066f8787b58230a7a4f5705413a4;p=ceph.git doc: update SetACL API Since v2 and later version, SetACLRequest() and SetACL() were removed, and replaced by PutACLRequest() and PutACL() Reference: http://docs.aws.amazon.com/sdkfornet/latest/apidocs/items/MS3_S3PutACL_PutACLRequestNET4_5.html http://docs.aws.amazon.com/sdkfornet/v3/apidocs/items/S3/MS3_S3PutACL_PutACLRequest.html Signed-off-by: Dunrong Huang --- diff --git a/doc/radosgw/s3/csharp.rst b/doc/radosgw/s3/csharp.rst index 04da1f5139fa..41ceac3f65da 100644 --- a/doc/radosgw/s3/csharp.rst +++ b/doc/radosgw/s3/csharp.rst @@ -127,17 +127,17 @@ This makes the object ``hello.txt`` to be publicly readable, and .. code-block:: csharp - SetACLRequest request = new SetACLRequest(); + PutACLRequest request = new PutACLRequest(); request.BucketName = "my-new-bucket"; request.Key = "hello.txt"; request.CannedACL = S3CannedACL.PublicRead; - client.SetACL(request); + client.PutACL(request); - SetACLRequest request2 = new SetACLRequest(); + PutACLRequest request2 = new PutACLRequest(); request2.BucketName = "my-new-bucket"; request2.Key = "secret_plans.txt"; request2.CannedACL = S3CannedACL.Private; - client.SetACL(request2); + client.PutACL(request2); Download an Object (to a file)