Title: Infer project from credentials if not passed explicitly · Issue #27 · googleapis/python-cloud-core · GitHub
Open Graph Title: Infer project from credentials if not passed explicitly · Issue #27 · googleapis/python-cloud-core
X Title: Infer project from credentials if not passed explicitly · Issue #27 · googleapis/python-cloud-core
Description: Split off from #17 See also: googleapis/python-datastore#74 See also: googleapis/python-storage#177 In a "blank slate" design, I would argue that the credentials' project should supersede the one present in the environment. However, for ...
Open Graph Description: Split off from #17 See also: googleapis/python-datastore#74 See also: googleapis/python-storage#177 In a "blank slate" design, I would argue that the credentials' project should supersede the one p...
X Description: Split off from #17 See also: googleapis/python-datastore#74 See also: googleapis/python-storage#177 In a "blank slate" design, I would argue that the credentials' project should super...
Opengraph URL: https://github.com/googleapis/python-cloud-core/issues/27
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Infer project from credentials if not passed explicitly","articleBody":"Split off from #17\r\n\r\nSee also: https://github.com/googleapis/python-datastore/issues/74\r\nSee also: https://github.com/googleapis/python-storage/issues/177\r\n\r\nIn a \"blank slate\" design, I would argue that the credentials' project should supersede the one present in the environment. However, for backward compatibility, we need to use the credentials' project only if the environment variable is not set. So the order should follow the pattern from `google.auth.default` when inferring project ID:\r\n\r\n- Explicit project ID passed to client constructor\r\n- Project ID set in `GOOGLE_CLOUD_PROJECT` envvar\r\n- Project ID from credentials, if present\r\n- Project ID from SDK\r\n- Project ID from GAE\r\n- Project ID from GCE","author":{"url":"https://github.com/tseaver","@type":"Person","name":"tseaver"},"datePublished":"2020-09-16T20:34:52.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/27/python-cloud-core/issues/27"}
| 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:6e054530-4285-f054-c735-03577e47f19b |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 85EE:B5089:215B696:2DA29AE:6A4EC77C |
| html-safe-nonce | 46006e00d624263334bcb270a472d946c0102899770008cefa7b2e966d6bd165 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4NUVFOkI1MDg5OjIxNUI2OTY6MkRBMjlBRTo2QTRFQzc3QyIsInZpc2l0b3JfaWQiOiIyMDUwMjE5NzkwMzMzNTYwNzAwIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | d48ec35464f16e3efb0e21fe0654334ca1a133007d33d6e42afc9d0292981386 |
| hovercard-subject-tag | issue:703056292 |
| 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/python-cloud-core/27/issue_layout |
| twitter:image | https://opengraph.githubassets.com/2eaf51f971d3f165dc2980db07d9a39c2b7c1c31db98ed48b8615af41d0a1dc4/googleapis/python-cloud-core/issues/27 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/2eaf51f971d3f165dc2980db07d9a39c2b7c1c31db98ed48b8615af41d0a1dc4/googleapis/python-cloud-core/issues/27 |
| og:image:alt | Split off from #17 See also: googleapis/python-datastore#74 See also: googleapis/python-storage#177 In a "blank slate" design, I would argue that the credentials' project should supersede the one p... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | tseaver |
| hostname | github.com |
| expected-hostname | github.com |
| None | 41b6ab3ba6d20a71766ac245b5a4a94c6fc672a9cd4da7d44c1b33ab8bf6a21c |
| turbo-cache-control | no-preview |
| go-import | github.com/googleapis/python-cloud-core git https://github.com/googleapis/python-cloud-core.git |
| octolytics-dimension-user_id | 16785467 |
| octolytics-dimension-user_login | googleapis |
| octolytics-dimension-repository_id | 226992462 |
| octolytics-dimension-repository_nwo | googleapis/python-cloud-core |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 226992462 |
| octolytics-dimension-repository_network_root_nwo | googleapis/python-cloud-core |
| 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 | e6a744804e8e70f97b4d5a18a94dcc63db22f97a |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width