-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Allow setting 'bucket.storage_class'. #1213
Allow setting 'bucket.storage_class'. #1213
Conversation
@@ -569,6 +569,7 @@ def test_location_setter(self): | |||
self.assertEqual(bucket.location, None) | |||
bucket.location = 'AS' | |||
self.assertEqual(bucket.location, 'AS') | |||
self.assertTrue('location' in bucket._changes) |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Only one question, why not add to the constructor? Or make the constructor take |
We have four settable properties:
Ugh: we lose Python's type checking, and have to add it in ourselves. |
How you mean type checking? Do the setters do any? Wouldn't they still? |
That was an objection to using |
Gotcha. So WDYT about just adding |
👎 Seems like a complication for a pretty rare case, with an easy-to-understand alternative already present. |
OK LGTM (Responding from email for first time ever. Like whoa. Weird.) Danny Hermes
|
…A_buckets Allow setting 'bucket.storage_class'.
Fixes #1030.