Skip to content

Conversation

@bshaffer
Copy link
Contributor

@bshaffer bshaffer commented Feb 20, 2024

adds new $rootUrlTemplate property to all service classes in order to support the universe domain option in googleapis/google-api-php-client#2563

@bshaffer bshaffer changed the title WIP feat: add support for universe domain Feb 20, 2024
@conventional-commit-lint-gcf
Copy link

🤖 I detect that the PR title and the commit message differ and there's only one commit. To use the PR title for the commit history, you can use Github's automerge feature with squashing, or use automerge label. Good luck human!

-- conventional-commit-lint bot
https://conventionalcommits.org/

@bshaffer bshaffer marked this pull request as ready for review February 27, 2024 23:30
@bshaffer bshaffer requested review from a team and yoshi-approver as code owners February 27, 2024 23:30
base_path = url_parts.path
if not root_url:
if root_url:
self._api.SetTemplateValue('rootUrlTemplate', root_url.replace('googleapis.com', 'UNIVERSE_DOMAIN'))

Choose a reason for hiding this comment

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

This might break though, if users have a rooturl like:
usergoogleapis.com, it would be changed to userUNIVERSE_DOMAIN.

Choose a reason for hiding this comment

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

I am not sure though how big of a usecase this is... a client using TPC and their domain name has googleapis.com

Copy link
Contributor Author

Choose a reason for hiding this comment

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

we could replace .googleapis.com with .UNIVERSE_DOMAIN if you think that would be safer.

@bshaffer bshaffer enabled auto-merge (squash) April 23, 2024 21:23
@bshaffer bshaffer merged commit 67c0f7c into main Apr 23, 2024
@bshaffer bshaffer deleted the universe-domain branch April 23, 2024 21:26
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