Title: Setting lifecycle rules totally undocumented · Issue #2610 · googleapis/google-cloud-python · GitHub
Open Graph Title: Setting lifecycle rules totally undocumented · Issue #2610 · googleapis/google-cloud-python
X Title: Setting lifecycle rules totally undocumented · Issue #2610 · googleapis/google-cloud-python
Description: It took me quite a while to figure out how to set lifecycle rules. If you look at the code, it's undocumented: @lifecycle_rules.setter def lifecycle_rules(self, rules): self._patch_property('lifecycle', {'rule': rules}) I found some test...
Open Graph Description: It took me quite a while to figure out how to set lifecycle rules. If you look at the code, it's undocumented: @lifecycle_rules.setter def lifecycle_rules(self, rules): self._patch_property('lifecy...
X Description: It took me quite a while to figure out how to set lifecycle rules. If you look at the code, it's undocumented: @lifecycle_rules.setter def lifecycle_rules(self, rules): self._patch_property(...
Opengraph URL: https://github.com/googleapis/google-cloud-python/issues/2610
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Setting lifecycle rules totally undocumented","articleBody":"It took me quite a while to figure out how to set lifecycle rules. If you look at the code, it's undocumented:\n\n```\n@lifecycle_rules.setter\ndef lifecycle_rules(self, rules):\n self._patch_property('lifecycle', {'rule': rules})\n```\n\nI found [some tests for this](https://github.com/GoogleCloudPlatform/google-cloud-python/blob/090c5d583da82daabf05c52e8f72b858a0bb09c2/storage/unit_tests/test_bucket.py#L588-L596), but even those don't seem to use the `lifecycle_rules` method. Not having a documented method for doing this is very frustrating since this is supposed to be a library that supports all of the features. \n","author":{"url":"https://github.com/mlissner","@type":"Person","name":"mlissner"},"datePublished":"2016-10-25T18:12:49.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":10},"url":"https://github.com/2610/google-cloud-python/issues/2610"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:29937c98-6b11-64eb-efd1-6215008b11ac |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 95B2:475D7:2E60A:40153:6A4D523D |
| html-safe-nonce | df29cf0e8b236bbfe2435142bb7b7c00c3cf1decd9a3e51b994f8cfe50b88e87 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NUIyOjQ3NUQ3OjJFNjBBOjQwMTUzOjZBNEQ1MjNEIiwidmlzaXRvcl9pZCI6IjEwNTg3MDIzMjY2NTI4MTA4NSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | ea8155d854b3fcd8ee7137aaecb9cdb489b5a272e9551d01725dd1103d4ea233 |
| hovercard-subject-tag | issue:185193132 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/googleapis/google-cloud-python/2610/issue_layout |
| twitter:image | https://opengraph.githubassets.com/f8aa465e2a9cb6b1a31f01f7cfc96042b154f3f6bbe9b55ef91b97814b2e4986/googleapis/google-cloud-python/issues/2610 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/f8aa465e2a9cb6b1a31f01f7cfc96042b154f3f6bbe9b55ef91b97814b2e4986/googleapis/google-cloud-python/issues/2610 |
| og:image:alt | It took me quite a while to figure out how to set lifecycle rules. If you look at the code, it's undocumented: @lifecycle_rules.setter def lifecycle_rules(self, rules): self._patch_property('lifecy... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | mlissner |
| hostname | github.com |
| expected-hostname | github.com |
| None | 92571a8944142227b7e19cd10918b1ddd06e5066c1ad5bc7e4769cf6140a87e6 |
| turbo-cache-control | no-preview |
| go-import | github.com/googleapis/google-cloud-python git https://github.com/googleapis/google-cloud-python.git |
| octolytics-dimension-user_id | 16785467 |
| octolytics-dimension-user_login | googleapis |
| octolytics-dimension-repository_id | 16316451 |
| octolytics-dimension-repository_nwo | googleapis/google-cloud-python |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 16316451 |
| octolytics-dimension-repository_network_root_nwo | googleapis/google-cloud-python |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 56fc8347865a14e2ec811533d68f929cf4e0ec19 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width