Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mention that cors property has a setter. #2623

Merged

Conversation

daspecster
Copy link
Contributor

Bucket CORS property docs only say retrieve but it actually has a setter as well.

See #1838.

@daspecster daspecster added docs api: storage Issues related to the Cloud Storage API. labels Oct 26, 2016
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Oct 26, 2016
@mlissner
Copy link
Contributor

Do you want to add docs for the lifecycle_rules setter too, as in #2610?

@daspecster
Copy link
Contributor Author

@mlissner, I think that will be a separate PR actually.


See: http://www.w3.org/TR/cors/ and
https://cloud.google.com/storage/docs/json_api/v1/buckets

:setter: Set CORS policies for this bucket.
:getter: Gets the CORS policies for this bucket.

This comment was marked as spam.

@tseaver
Copy link
Contributor

tseaver commented Oct 26, 2016

@dhermes There is a SO answer which shows :getter: and :setter: being rendered.

@daspecster
Copy link
Contributor Author

I'm generating the docs real quick and I'll screenshot it.

@daspecster
Copy link
Contributor Author

screen shot 2016-10-26 at 4 12 17 pm

@dhermes
Copy link
Contributor

dhermes commented Oct 26, 2016

Got it, so they aren't official directives but they are "generally supported" syntax

@daspecster
Copy link
Contributor Author

@dhermes @tseaver is this good to merge?

@dhermes
Copy link
Contributor

dhermes commented Oct 27, 2016

👍

@daspecster daspecster merged commit f723397 into googleapis:master Oct 27, 2016
@daspecster daspecster deleted the update-storage-cors-docstring branch October 27, 2016 16:03
richkadel pushed a commit to richkadel/google-cloud-python that referenced this pull request May 6, 2017
…s-docstring

Mention that cors property has a setter.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: storage Issues related to the Cloud Storage API. cla: yes This human has signed the Contributor License Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants