Title: Impossible to set non-default storage project since 0.5.0 · Issue #832 · googleapis/google-cloud-python · GitHub
Open Graph Title: Impossible to set non-default storage project since 0.5.0 · Issue #832 · googleapis/google-cloud-python
X Title: Impossible to set non-default storage project since 0.5.0 · Issue #832 · googleapis/google-cloud-python
Description: The upgrade to 0.5.0 broke the public API without notes in the Release by removing storage.get_connection(project='foo') function. Moreover, it seems that the Connection class no longer has a project parameter. Neither storage.get_bucket...
Open Graph Description: The upgrade to 0.5.0 broke the public API without notes in the Release by removing storage.get_connection(project='foo') function. Moreover, it seems that the Connection class no longer has a proje...
X Description: The upgrade to 0.5.0 broke the public API without notes in the Release by removing storage.get_connection(project='foo') function. Moreover, it seems that the Connection class no longer has...
Opengraph URL: https://github.com/googleapis/google-cloud-python/issues/832
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Impossible to set non-default storage project since 0.5.0","articleBody":"The upgrade to 0.5.0 broke the public API without notes in the Release by removing `storage.get_connection(project='foo')` function.\n\nMoreover, it seems that the `Connection` class no longer has a `project` parameter. Neither `storage.get_bucket` nor `storage.lookup_bucket` take `project` as a parameter. Curiously, you can override it in `create_bucket` and `list_buckets`.\n\nThe only way to set a project for these is through `_helpers.set_default_project`, which makes it incredibly hard to operate on buckets in multiple projects, since you need to set the default all the time, exposing yourself to race conditions in case of multithreading.\n\nCan we put back the `project` into `Connection`? AFAIK the `Connection`'s credentials only make sense for a given `project` anyway.\n","author":{"url":"https://github.com/mwitkow","@type":"Person","name":"mwitkow"},"datePublished":"2015-04-16T15:37:50.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":7},"url":"https://github.com/832/google-cloud-python/issues/832"}
| 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:aa82a63c-dca9-4e61-e8f9-73275ae48d19 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | CED4:165250:384AB9:4BFC91:6A4D8F76 |
| html-safe-nonce | 0bf125a8a1a873a043644c816db3f667c82733c12a97868f1f32262769eb3422 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDRUQ0OjE2NTI1MDozODRBQjk6NEJGQzkxOjZBNEQ4Rjc2IiwidmlzaXRvcl9pZCI6IjY5MTY4OTUyODU1MjUxODg0NzAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 47c453685ef91ff86f92a2cbbf5116912e36c0387054619dc0479e73edf19e6d |
| hovercard-subject-tag | issue:68950816 |
| 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/832/issue_layout |
| twitter:image | https://opengraph.githubassets.com/13548ab1bd607f815c428a06b7ddc54567bca8c5863829b9a1575f6261f055b7/googleapis/google-cloud-python/issues/832 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/13548ab1bd607f815c428a06b7ddc54567bca8c5863829b9a1575f6261f055b7/googleapis/google-cloud-python/issues/832 |
| og:image:alt | The upgrade to 0.5.0 broke the public API without notes in the Release by removing storage.get_connection(project='foo') function. Moreover, it seems that the Connection class no longer has a proje... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | mwitkow |
| hostname | github.com |
| expected-hostname | github.com |
| None | 06b8a6144231bf3a234f1c2e9993861e07ce98a905912b114aa386c2d7e84b33 |
| 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 | 74e2a9c78f1e38588de4f25885878349d721eedf |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width