Skip to content

chore(generator): use routing helper from api_core in templates #17746

Draft
hebaalazzeh wants to merge 3 commits into
feat/gapic-centralization-api-core-routingfrom
feat/gapic-generator-centralization-routing
Draft

chore(generator): use routing helper from api_core in templates #17746
hebaalazzeh wants to merge 3 commits into
feat/gapic-centralization-api-core-routingfrom
feat/gapic-generator-centralization-routing

Conversation

@hebaalazzeh

Copy link
Copy Markdown
Contributor

Updates generator templates and goldens to import public routing helpers from google-api-core gapic_v1 and delegate API endpoint, mTLS, and universe domain resolution methods to it.

Removes duplicate routing unit tests from the generated client unit tests (as they are now fully tested in google-api-core).

Associated / Dependent API Core PR: chore(api-core): move universe and endpoint routing logic to gapic_v1 public helpers(#17745)

@hebaalazzeh
hebaalazzeh changed the base branch from main to feat/gapic-centralization-api-core-routing July 16, 2026 19:19

@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 refactors the client service templates by delegating endpoint and universe domain logic to the google.api_core.gapic_v1.routing module, which also allowed for the removal of redundant unit tests. The reviewer recommended adding type hints to the _get_default_mtls_endpoint and _get_api_endpoint methods to ensure code clarity following the removal of detailed docstrings.

@hebaalazzeh
hebaalazzeh force-pushed the feat/gapic-centralization-api-core-routing branch from 3e2d8e2 to 0fe63b5 Compare July 16, 2026 20:00
@hebaalazzeh
hebaalazzeh force-pushed the feat/gapic-generator-centralization-routing branch from d40de56 to 48f392a Compare July 16, 2026 20:00
@hebaalazzeh
hebaalazzeh force-pushed the feat/gapic-generator-centralization-routing branch from 48f392a to 05fb32e Compare July 16, 2026 20:13
@hebaalazzeh hebaalazzeh self-assigned this Jul 16, 2026
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.

2 participants