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

fix: add operation name to x-goog-request-params #133

Merged
merged 2 commits into from Jan 25, 2021

Conversation

busunkim96
Copy link
Contributor

@busunkim96 busunkim96 commented Jan 19, 2021

Add the routing header x-goog-request-params to operations client requests. Some APIs require that the header be passed on all requests.

Fixes googleapis/gapic-generator-python#732

Copy link
Contributor

@software-dov software-dov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, just some minor nitpicking.

google/api_core/operations_v1/operations_client.py Outdated Show resolved Hide resolved
google/api_core/operations_v1/operations_client.py Outdated Show resolved Hide resolved
google/api_core/operations_v1/operations_client.py Outdated Show resolved Hide resolved
google/api_core/operations_v1/operations_client.py Outdated Show resolved Hide resolved
@busunkim96 busunkim96 added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Jan 25, 2021
@busunkim96 busunkim96 merged commit 97cef4a into master Jan 25, 2021
@busunkim96 busunkim96 deleted the add-operation-name branch January 25, 2021 19:49
gcf-merge-on-green bot pushed a commit that referenced this pull request Feb 12, 2021
Pass the operation name in the `x-goog-request-params`header.
 
Same as #133 for the async operations client.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes This human has signed the Contributor License Agreement. kokoro:force-run Add this label to force Kokoro to re-run the tests.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Routing headers are not passed to the operations client
4 participants