feat: Add support for `rest/` token in `x-goog-api-client` header by vam-google · Pull Request #189 · googleapis/python-api-core · GitHub
Skip to content
This repository was archived by the owner on Feb 23, 2026. It is now read-only.

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

Merged
vam-google merged 2 commits into
googleapis:masterfrom
vam-google:master
May 18, 2021
Merged

feat: Add support for rest/ token in x-goog-api-client header#189
vam-google merged 2 commits into
googleapis:masterfrom
vam-google:master

Conversation

@vam-google

Copy link
Copy Markdown
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 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 vam-google requested a review from busunkim96 May 17, 2021 09:02
@vam-google

Copy link
Copy Markdown
Contributor Author

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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
Contributor

@vam-google vam-google merged commit 15aca6b into googleapis:master May 18, 2021
This was referenced May 30, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

cla: yes This human has signed the Contributor License Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants