-
Notifications
You must be signed in to change notification settings - Fork 1.7k
feat(generator): gapic generator centralization routing #17816
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
Open
hebaalazzeh
wants to merge
34
commits into
main
Choose a base branch
from
feat/gapic-generator-centralization-routing
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
34 commits
Select commit
Hold shift + click to select a range
28e2521
chore(generator): use routing helper from api_core in templates
hebaalazzeh c6f99a6
fix(generator): import from google.api_core.universe instead of clien…
hebaalazzeh 22a0c03
fix(gapic-generator): Update return types of get_api_endpoint to Opti…
hebaalazzeh 7a6c8e2
fix(generator): update storagebatchoperations goldens to reflect setu…
hebaalazzeh bc1b7e3
fix(generator): use unified _compat.py.j2 and remove downstream tests
hebaalazzeh 4d2f277
fix(generator): install local google-api-core in nox test sessions
hebaalazzeh 02626f5
fix(generator): pass default_universe as keyword argument to get_univ…
hebaalazzeh e3d6433
docs(generator): clarify lower-bound google-api-core version comment …
hebaalazzeh a89c8ca
chore: revert unrelated google-api-core changes and stray test__compa…
hebaalazzeh b5204b3
fix(generator): update goldens for routing centralization
hebaalazzeh b464639
fix(generator): clean up noxfile.py and include updated goldens
hebaalazzeh d0ccc57
Merge branch 'main' into feat/gapic-generator-centralization-routing
hebaalazzeh 275244d
update goldens
hebaalazzeh b7ca762
clean up
hebaalazzeh d0c1906
Merge branch 'main' into feat/gapic-generator-centralization-routing
hebaalazzeh 82dcd3d
update goldens
hebaalazzeh aa7d069
update goldens
hebaalazzeh 0853787
update goldens
hebaalazzeh 507c17a
update goldens
hebaalazzeh 891140e
update goldens
hebaalazzeh 0547563
update goldens
hebaalazzeh c9f7cab
update goldens
hebaalazzeh 31e9aaf
update test_service
hebaalazzeh 3a0c7db
update goldens
hebaalazzeh dce8071
update goldens
hebaalazzeh d8493ca
update goldens
hebaalazzeh 5b26ab5
update goldens
hebaalazzeh 1c2e649
revert local api-core installation
hebaalazzeh e6cf09b
revert noxfile change
hebaalazzeh e3e3aee
update goldens
hebaalazzeh 6d73b36
update client
hebaalazzeh 4ba53a9
update goldens
hebaalazzeh 952adc0
update goldens
hebaalazzeh e99ba73
update goldens
hebaalazzeh File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What happens in this case?
Is this actually used anywhere? It looks like it's marked as deprecated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For services that don't specify a default host (service.host is None),
cls.DEFAULT_MTLS_ENDPOINTis None. Usingcls.DEFAULT_MTLS_ENDPOINT or ""ensures api_endpoint falls back to "" (empty string) rather than None, matching the expected str return type hint ofget_mtls_endpoint_and_cert_source.get_mtls_endpoint_and_cert_sourceis deprecated in favor of the api_endpoint property / static helper_get_api_endpoint. However, because it's part of the public client interface, it's retained for backwards compatibility with older external code, and its corresponding unit tests (test_*_get_mtls_endpoint_and_cert_source) still execute to verify fallback logic doesn't raise a type error.