Skip to content
This repository was archived by the owner on Jan 18, 2026. It is now read-only.

feat: add apiVersion to x-goog headers#1576

Merged
sofisl merged 13 commits intomainfrom
addApiVersionToHeaders
Apr 30, 2024
Merged

feat: add apiVersion to x-goog headers#1576
sofisl merged 13 commits intomainfrom
addApiVersionToHeaders

Conversation

@sofisl
Copy link
Contributor

@sofisl sofisl commented Apr 19, 2024

see https://docs.google.com/document/d/1ZOrybNB1BUFCFzykqzLuhwL9HHqn0fJV6ZizhVEROxs/edit?tab=t.0

I've manually regenerated showcase and confirmed the headers are sent correctly, as described in the doc above.

@sofisl sofisl requested a review from a team as a code owner April 19, 2024 01:23
@sofisl sofisl requested a review from a team April 19, 2024 01:23
opts.clientConfig || {}, {'x-goog-api-client': clientHeader.join(' ')});
opts.clientConfig || {}, {'x-goog-api-client': clientHeader.join(' ')
{%- if service.apiVersion -%}
, 'x-goog-api-version': '{{ service.apiVersion }}'
Copy link
Contributor

Choose a reason for hiding this comment

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

It seems like this change is not covered by baselines, so if it stops working for whatever reason, we won't be able to catch it. Should we add the corresponding annotation to at least one baseline service?

@snippet-bot
Copy link

snippet-bot bot commented Apr 29, 2024

Here is the summary of possible violations 😱

Details

There are 2 possible violations for not having product prefix.

The end of the violation section. All the stuff below is FYI purposes only.


Here is the summary of changes.

You are about to add 2 region tags.

This comment is generated by snippet-bot.
If you find problems with this result, please file an issue at:
https://github.com/googleapis/repo-automation-bots/issues.
To update this comment, add snippet-bot:force-run label or use the checkbox below:

  • Refresh this comment

@sofisl
Copy link
Contributor Author

sofisl commented Apr 29, 2024

I've added the updated protos from here: https://github.com/googleapis/gax-nodejs/blob/main/gax/test/showcase-echo-client/protos/google/showcase/v1beta1/echo.proto

So the generated code includes lots of changes that have already been included in the generator, but weren't updated due to old protos.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants