Skip to content
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

feat(gengapic): add universe domain support #1452

Merged
merged 3 commits into from
Jan 23, 2024

Conversation

quartzmo
Copy link
Member

  • upgrade showcase google.golang.org/api to v0.157.0

@quartzmo quartzmo requested review from a team as code owners January 19, 2024 23:36
@quartzmo
Copy link
Member Author

Similar to googleapis/google-api-go-client#2335

Comment on lines +180 to +182
p(" internaloption.WithDefaultEndpointTemplate(%q),", generateDefaultEndpointTemplate(host))
p(" internaloption.WithDefaultMTLSEndpoint(%q),", generateDefaultMTLSEndpoint(host))
p(" internaloption.WithDefaultUniverseDomain(%q),", googleDefaultUniverse)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Without knowing much how this will ultimately work, do the WithDefaultEndpoint and WithDefaultMTLSEndpoint options go away assuming endpoint resolution is done by the middleware?

Copy link
Member Author

Choose a reason for hiding this comment

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

WithDefaultEndpoint is already deprecated, and will eventually go away post-transition. WithDefaultMTLSEndpoint is unaffected by these changes as that auth flow does not support universe domain.

Copy link
Collaborator

@noahdietz noahdietz left a comment

Choose a reason for hiding this comment

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

Last question: Are all of the go.mod files updated with the required version of google.golang.org/api to leverage these options?

That must happen first before releasing this code.

@quartzmo
Copy link
Member Author

Thanks, yes the go.mod files in GAPIC clients are currently at the latest version of google.golang.org/api (v0.157.0).

For example: https://github.com/googleapis/google-cloud-go/blob/main/accessapproval/go.mod#L7

@quartzmo quartzmo merged commit c72b650 into googleapis:main Jan 23, 2024
7 checks passed
@quartzmo quartzmo deleted the gengapic-universe-domain branch January 23, 2024 16:48
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.

None yet

2 participants