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

feat: Add support for rest/ token in x-goog-api-client header #189

Merged
merged 2 commits into from May 18, 2021

Conversation

vam-google
Copy link
Contributor

This is required for (DI)REGAPIC clients, like GCE client.

This is required for (DI)REGAPIC clients, like GCE client.
@vam-google vam-google requested a review from a team as a code owner May 17, 2021 09:02
@google-cla google-cla bot added the cla: yes This human has signed the Contributor License Agreement. label May 17, 2021
@vam-google
Copy link
Contributor Author

The test are failing because of missing grpc dependency, which is listed as optional (thought it is not really optional). It has been like this before (should not be related to this specific change).

Comment on lines 70 to +76
self.python_version = python_version
self.grpc_version = grpc_version
self.api_core_version = api_core_version
self.gapic_version = gapic_version
self.client_library_version = client_library_version
self.user_agent = user_agent
self.rest_version = rest_version
Copy link
Contributor

Choose a reason for hiding this comment

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

Should there be a check that either rest_version XOR grpc_version is set?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sounds reasonable to me, I was thinking about the same thing, but then decided that it would be safer to not add something like tha to a GA'ed library. If you feel strong about it, I can add it. Should I?

Copy link
Contributor

Choose a reason for hiding this comment

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

I don't feel strongly about it, but it seems like a reasonable thing for someone looking at the fields to expect.

@busunkim96
Copy link
Contributor

@vam-google It looks like lint is failing (everything else is passing)

nox > flake8 google tests
tests/unit/test_client_info.py:74:1: E302 expected 2 blank lines, found 1
nox > Session docfx was successful.
nox > Ran multiple sessions:
nox > * unit-2.7: success
nox > * unit-3.6: success
nox > * unit-3.7: success
nox > * unit-3.8: success
nox > * unit-3.9: success
nox > * unit_grpc_gcp-2.7: success
nox > * unit_grpc_gcp-3.6: success
nox > * unit_grpc_gcp-3.7: success
nox > * unit_grpc_gcp-3.8: success
nox > * unit_grpc_gcp-3.9: success
nox > * lint: failed
nox > * lint_setup_py: success
nox > * pytype: success
nox > * cover: success
nox > * docs: success
nox > * docfx: success

@vam-google vam-google merged commit 15aca6b into googleapis:master May 18, 2021
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.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants