File tree Expand file tree Collapse file tree 2 files changed +9
-9
lines changed Expand file tree Collapse file tree 2 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -352,8 +352,8 @@ __Example__
352352
353353
354354``` py
355- # Set policy to READ ONLY to all object paths in bucket.
356- policy_READ_ONLY = {" Version" :" 2012-10-17" ,
355+ # Set policy to read only to all object paths in bucket.
356+ policy_read_only = {" Version" :" 2012-10-17" ,
357357 " Statement" :[
358358 {
359359 " Sid" :" " ,
@@ -379,7 +379,7 @@ policy_READ_ONLY = {"Version":"2012-10-17",
379379 ]}
380380
381381
382- minioClient.set_bucket_policy(' mybucket' , policy_READ_ONLY )
382+ minioClient.set_bucket_policy(' mybucket' , policy_read_only )
383383```
384384
385385<a name =" get_bucket_notification " ></a >
Original file line number Diff line number Diff line change 2828# Make a new bucket
2929try :
3030 # Set bucket policy to read-only for bucket 'my-bucketname'
31- policy_READ_ONLY = {
31+ policy_read_only = {
3232 "Version" :"2012-10-17" ,
3333 "Statement" :[
3434 {
5454 }
5555 ]
5656 }
57- client .set_bucket_policy ('my-bucketname' , json .dumps (policy_READ_ONLY ))
57+ client .set_bucket_policy ('my-bucketname' , json .dumps (policy_read_only ))
5858
5959 # Set bucket policy to read-write for bucket 'my-bucketname'
60- policy_READ_WRITE = {
60+ policy_read_write = {
6161 "Version" : "2012-10-17" ,
6262 "Statement" : [
6363 {
9494 }
9595 ]
9696 }
97- client .set_bucket_policy ('my-bucketname' , json .dumps (policy_READ_WRITE ))
97+ client .set_bucket_policy ('my-bucketname' , json .dumps (policy_read_write ))
9898
9999 # Set bucket policy to write-only for bucket 'my-bucketname'
100- policy_WRITE_ONLY = {
100+ policy_write_only = {
101101 "Version" :"2012-10-17" ,
102102 "Statement" :[
103103 {
126126 }
127127 ]
128128 }
129- client .set_bucket_policy ('my-bucketname' , json .dumps (policy_WRITE_ONLY ))
129+ client .set_bucket_policy ('my-bucketname' , json .dumps (policy_write_only ))
130130
131131except ResponseError as err :
132132 print (err )
You can’t perform that action at this time.
0 commit comments