Skip to content

feat(core): Support for universe_domain#17131

Merged
dazuma merged 1 commit intogoogleapis:mainfrom
dazuma:pr/core-ud
Jan 22, 2024
Merged

feat(core): Support for universe_domain#17131
dazuma merged 1 commit intogoogleapis:mainfrom
dazuma:pr/core-ud

Conversation

@dazuma
Copy link
Contributor

@dazuma dazuma commented Jan 17, 2024

Updates to the client base class to support universe domain.

This is the bulk of the change necessary to support universe_domain in these clients. After this is released, the generated code can be updated to pass a template in as the endpoint.

Specifically:

  • Require a version of googleauth that supports universe_domain
  • Perform substitution if an endpoint with the string $UNIVERSE_DOMAIN$ is passed in
  • Provide an accessor and a constructor argument for universe_domain, and provide the logic to use the environment variable and Google default as default values.
  • Repeat endpoint substitution if the universe_domain is modified.

This preserves existing behavior for older clients that set static endpoints (which are now simply treated as endpoint overrides) while implementing full universe_domain support for newer clients that set endpoints with the substitution string.

@dazuma dazuma merged commit f5a7dbf into googleapis:main Jan 22, 2024
@dazuma dazuma deleted the pr/core-ud branch January 22, 2024 18:03
stanhu added a commit to fog/fog-google that referenced this pull request Jan 28, 2026
This replaces the parameter introduced in
#650.

universe_domain was introduced in
googleapis/google-api-ruby-client#17131 and
googleapis/google-auth-library-ruby#460.

This is preferable because the Google Client performs some verification
to ensure credentials match the cloud provider.
stanhu added a commit to fog/fog-google that referenced this pull request Jan 28, 2026
This replaces the parameter introduced in
#650.

universe_domain was introduced in
googleapis/google-api-ruby-client#17131 and
googleapis/google-auth-library-ruby#460.

This is preferable because the Google Client performs some verification
to ensure credentials match the cloud provider.
stanhu added a commit to fog/fog-google that referenced this pull request Jan 28, 2026
This replaces the parameter introduced in
#650.

universe_domain was introduced in
googleapis/google-api-ruby-client#17131 and
googleapis/google-auth-library-ruby#460.

This is preferable because the Google Client performs some verification
to ensure credentials match the cloud provider.
stanhu added a commit to fog/fog-google that referenced this pull request Jan 29, 2026
This replaces the parameter introduced in
#650.

universe_domain was introduced in
googleapis/google-api-ruby-client#17131 and
googleapis/google-auth-library-ruby#460.

This is preferable because the Google Client performs some verification
to ensure credentials match the cloud provider.
stanhu added a commit to fog/fog-google that referenced this pull request Jan 29, 2026
This replaces the parameter introduced in
#650.

universe_domain was introduced in
googleapis/google-api-ruby-client#17131 and
googleapis/google-auth-library-ruby#460.

This is preferable because the Google Client performs some verification
to ensure credentials match the cloud provider.
stanhu added a commit to fog/fog-google that referenced this pull request Jan 29, 2026
This replaces the parameter introduced in
#650.

universe_domain was introduced in
googleapis/google-api-ruby-client#17131 and
googleapis/google-auth-library-ruby#460.

This is preferable because the Google Client performs some verification
to ensure credentials match the cloud provider.
stanhu added a commit to fog/fog-google that referenced this pull request Jan 29, 2026
This replaces the parameter introduced in
#650.

universe_domain was introduced in
googleapis/google-api-ruby-client#17131 and
googleapis/google-auth-library-ruby#460.

This is preferable because the Google Client performs some verification
to ensure credentials match the cloud provider.
stanhu added a commit to fog/fog-google that referenced this pull request Jan 29, 2026
This replaces the parameter introduced in
#650.

universe_domain was introduced in
googleapis/google-api-ruby-client#17131 and
googleapis/google-auth-library-ruby#460.

This is preferable because the Google Client performs some verification
to ensure credentials match the cloud provider.
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