Skip to content

Commit f723397

Browse files
authored
Merge pull request googleapis#2623 from daspecster/update-storage-cors-docstring
Mention that cors property has a setter.
2 parents 4becc0c + 476ab7d commit f723397

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

storage/google/cloud/storage/bucket.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -511,11 +511,14 @@ def rename_blob(self, blob, new_name, client=None):
511511

512512
@property
513513
def cors(self):
514-
"""Retrieve CORS policies configured for this bucket.
514+
"""Retrieve or set CORS policies configured for this bucket.
515515
516516
See: http://www.w3.org/TR/cors/ and
517517
https://cloud.google.com/storage/docs/json_api/v1/buckets
518518
519+
:setter: Set CORS policies for this bucket.
520+
:getter: Gets the CORS policies for this bucket.
521+
519522
:rtype: list of dictionaries
520523
:returns: A sequence of mappings describing each CORS policy.
521524
"""

0 commit comments

Comments
 (0)