-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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(option/internaloption): add WithDefaultEndpointTemplate #2313
Conversation
* Add DefaultEndpointTemplate to internal/settings.go * Deprecate internaloption.WithDefaultEndpoint refs: googleapis#2264
@@ -22,10 +22,29 @@ func (o defaultEndpointOption) Apply(settings *internal.DialSettings) { | |||
// It should only be used internally by generated clients. | |||
// | |||
// This is similar to WithEndpoint, but allows us to determine whether the user has overridden the default endpoint. | |||
// | |||
// Deprecated: WithDefaultEndpoint does not support setting the universe domain. |
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.
Any reason to not just repurpose this option. I think we could since it is internal?
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.
I actually plan to use both options simultaneously during a transitional period as universe domain support is incrementally expanded.
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.
could you do the same thing with one and just check for a %s? I think either way is fine as long as we plan to fully remove the old one eventually
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.
Definitely plan to remove the old one.
refs: #2264