Skip to content

fix: include version headers in long running operations - #19059

Open
daniel-sanche wants to merge 6 commits into
mainfrom
google-cloud-python-internal_gapic-generator_lro-api-version-header-576380032
Open

daniel-sanche wants to merge 6 commits into
mainfrom
google-cloud-python-internal_gapic-generator_lro-api-version-header-576380032

Conversation

@daniel-sanche

Copy link
Copy Markdown
Contributor

Generated Python GAPIC clients do not send the x-goog-api-version header when making google.longrunning.Operations calls over gRPC. This PR fixes the gap in the generator

@gemini-code-assist gemini-code-assist Bot left a comment

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.

Code Review

This pull request updates the GAPIC generator templates to include API version headers in the metadata for long-running operations (LRO) and mixin services, and updates unit and integration tests to verify these headers. A review comment correctly points out that making the API version header tests unconditional could lead to failures on older versions of google-api-core where version_header is unavailable; it suggests conditionally skipping the tests using the HAS_GOOGLE_API_CORE_VERSION_HEADER constant.

@daniel-sanche
daniel-sanche marked this pull request as ready for review November 13, 2026 01:13
@daniel-sanche
daniel-sanche requested a review from a team as a code owner November 13, 2026 01:13

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant