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

Support quota project override via client options #431

Closed
2 tasks
busunkim96 opened this issue Jun 2, 2020 · 1 comment · Fixed by #496
Closed
2 tasks

Support quota project override via client options #431

busunkim96 opened this issue Jun 2, 2020 · 1 comment · Fixed by #496
Assignees
Labels
type: feature request ‘Nice-to-have’ improvement, new feature or different behavior or design.

Comments

@busunkim96
Copy link
Contributor

busunkim96 commented Jun 2, 2020

Clients should allow the quota project (user project?) to be set through client options.

The credential provided here should override any quota project attached to the credentials.

Depends on:

from google.cloud import texttospeech

client = texttospeech.textToSpeechClient(
    client_options={"quota_project": "myproject-123"}
)

# requests set `X-Goog-User-Project` header to 'myproject-123'

Internal link: go/extensible-client-options-exit

@busunkim96 busunkim96 added the type: feature request ‘Nice-to-have’ improvement, new feature or different behavior or design. label Jun 2, 2020
@busunkim96
Copy link
Contributor Author

See googleapis/google-auth-library-python#519 and googleapis/python-api-core#36 for pre-requisite work

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: feature request ‘Nice-to-have’ improvement, new feature or different behavior or design.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants