-
Notifications
You must be signed in to change notification settings - Fork 35
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: add universe support to googleapis libraries #548
Conversation
@@ -160,7 +160,11 @@ async function createAPIRequestAsync<T>(parameters: APIRequestParams) { | |||
|
|||
// Parse urls | |||
if (options.url) { | |||
options.url = urlTemplate.parse(options.url).expand(params); | |||
let url = options.url; |
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.
This is an unrelated fix: without this, the existing code does not compile on the new TypeScript version.
@@ -69,7 +69,7 @@ | |||
"karma-mocha": "^2.0.0", | |||
"karma-remap-coverage": "^0.1.5", | |||
"karma-sourcemap-loader": "^0.4.0", | |||
"karma-webpack": "^5.0.0", | |||
"karma-webpack": "^4.0.0", |
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.
This is unrelated, webpack
and karma-webpack
v5 require Node 18 and it breaks tests. These are dev dependencies, we don't really care.
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.
LGTM
@@ -45,6 +45,8 @@ export interface APIRequestContext { | |||
*/ | |||
export interface GlobalOptions extends MethodOptions { | |||
auth?: GoogleAuth | OAuth2Client | BaseExternalAccountClient | string; | |||
universeDomain?: string; |
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 have created a release *beep* *boop* --- ## [7.1.0](https://togithub.com/googleapis/nodejs-googleapis-common/compare/v7.0.1...v7.1.0) (2024-03-21) ### Features * Add universe support to googleapis libraries ([#548](https://togithub.com/googleapis/nodejs-googleapis-common/issues/548)) ([dfd4b0d](https://togithub.com/googleapis/nodejs-googleapis-common/commit/dfd4b0d0a37fa9cf3f6599ba28bac817d28c96c8)) --- This PR was generated with [Release Please](https://togithub.com/googleapis/release-please). See [documentation](https://togithub.com/googleapis/release-please#release-please).
Adding a global option
universeDomain
(can also be spelled asuniverse_domain
). Example usage withgoogle-api-nodejs-client
(for Cloud KMS):The universe domain can be also configured with
GOOGLE_CLOUD_UNIVERSE_DOMAIN
environment variable.Note that for services which have modern libraries published to
@google-cloud/
NPM organization (e.g.@google-cloud/kms
), we recommend using them and not@googleapis
libraries. Still adding this feature to@googleapis
for completeness.