]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
doc: update SetACL API
authorDunrong Huang <riegamaths@gmail.com>
Wed, 23 Dec 2015 07:24:03 +0000 (15:24 +0800)
committerDunrong Huang <riegamaths@gmail.com>
Wed, 23 Dec 2015 07:24:03 +0000 (15:24 +0800)
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 <riegamaths@gmail.com>
doc/radosgw/s3/csharp.rst

index 04da1f5139fafde3fa385b2ca3a79a20f2cd0ccf..41ceac3f65dac866e16aed5622996f67f91e6180 100644 (file)
@@ -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)