@azure/arm-standbypool 1.0.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/dist/browser/api/standbyPoolManagementContext.d.ts.map +1 -1
- package/dist/browser/api/standbyPoolManagementContext.js +4 -1
- package/dist/browser/api/standbyPoolManagementContext.js.map +1 -1
- package/dist/commonjs/api/standbyPoolManagementContext.d.ts.map +1 -1
- package/dist/commonjs/api/standbyPoolManagementContext.js +4 -1
- package/dist/commonjs/api/standbyPoolManagementContext.js.map +1 -1
- package/dist/commonjs/tsdoc-metadata.json +1 -1
- package/dist/esm/api/standbyPoolManagementContext.d.ts.map +1 -1
- package/dist/esm/api/standbyPoolManagementContext.js +4 -1
- package/dist/esm/api/standbyPoolManagementContext.js.map +1 -1
- package/dist/react-native/api/standbyPoolManagementContext.d.ts.map +1 -1
- package/dist/react-native/api/standbyPoolManagementContext.js +4 -1
- package/dist/react-native/api/standbyPoolManagementContext.js.map +1 -1
- package/package.json +33 -45
package/CHANGELOG.md
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"standbyPoolManagementContext.d.ts","sourceRoot":"","sources":["../../../src/api/standbyPoolManagementContext.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACnD,OAAO,EAAE,aAAa,EAAE,MAAM,EAAa,MAAM,yBAAyB,CAAC;AAG3E,MAAM,WAAW,kBAAmB,SAAQ,MAAM;CAAG;AAErD,0CAA0C;AAC1C,MAAM,WAAW,yCAA0C,SAAQ,aAAa;IAC9E,iDAAiD;IACjD,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,wBAAgB,2BAA2B,CACzC,UAAU,EAAE,eAAe,EAC3B,OAAO,GAAE,yCAA8C,GACtD,kBAAkB,
|
|
1
|
+
{"version":3,"file":"standbyPoolManagementContext.d.ts","sourceRoot":"","sources":["../../../src/api/standbyPoolManagementContext.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACnD,OAAO,EAAE,aAAa,EAAE,MAAM,EAAa,MAAM,yBAAyB,CAAC;AAG3E,MAAM,WAAW,kBAAmB,SAAQ,MAAM;CAAG;AAErD,0CAA0C;AAC1C,MAAM,WAAW,yCAA0C,SAAQ,aAAa;IAC9E,iDAAiD;IACjD,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,wBAAgB,2BAA2B,CACzC,UAAU,EAAE,eAAe,EAC3B,OAAO,GAAE,yCAA8C,GACtD,kBAAkB,CAmCpB"}
|
|
@@ -7,7 +7,10 @@ export function createStandbyPoolManagement(credential, options = {}) {
|
|
|
7
7
|
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
8
8
|
const endpointUrl = (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUrl) !== null && _b !== void 0 ? _b : `https://management.azure.com`;
|
|
9
9
|
const prefixFromOptions = (_c = options === null || options === void 0 ? void 0 : options.userAgentOptions) === null || _c === void 0 ? void 0 : _c.userAgentPrefix;
|
|
10
|
-
const
|
|
10
|
+
const userAgentInfo = `azsdk-js-arm-standbypool/1.0.1`;
|
|
11
|
+
const userAgentPrefix = prefixFromOptions
|
|
12
|
+
? `${prefixFromOptions} azsdk-js-api ${userAgentInfo}`
|
|
13
|
+
: `azsdk-js-api ${userAgentInfo}`;
|
|
11
14
|
const _j = Object.assign(Object.assign({}, options), { userAgentOptions: { userAgentPrefix }, loggingOptions: { logger: (_e = (_d = options.loggingOptions) === null || _d === void 0 ? void 0 : _d.logger) !== null && _e !== void 0 ? _e : logger.info }, credentials: {
|
|
12
15
|
scopes: (_g = (_f = options.credentials) === null || _f === void 0 ? void 0 : _f.scopes) !== null && _g !== void 0 ? _g : [`${endpointUrl}/.default`],
|
|
13
16
|
} }), { apiVersion: _ } = _j, updatedOptions = __rest(_j, ["apiVersion"]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"standbyPoolManagementContext.js","sourceRoot":"","sources":["../../../src/api/standbyPoolManagementContext.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;;AAGlC,OAAO,EAAyB,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAC3E,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAUtC,MAAM,UAAU,2BAA2B,CACzC,UAA2B,EAC3B,UAAqD,EAAE;;IAEvD,MAAM,WAAW,GAAG,MAAA,MAAA,OAAO,CAAC,QAAQ,mCAAI,OAAO,CAAC,OAAO,mCAAI,8BAA8B,CAAC;IAE1F,MAAM,iBAAiB,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,gBAAgB,0CAAE,eAAe,CAAC;IACrE,MAAM,eAAe,GAAG,iBAAiB,CAAC,CAAC,
|
|
1
|
+
{"version":3,"file":"standbyPoolManagementContext.js","sourceRoot":"","sources":["../../../src/api/standbyPoolManagementContext.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;;AAGlC,OAAO,EAAyB,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAC3E,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAUtC,MAAM,UAAU,2BAA2B,CACzC,UAA2B,EAC3B,UAAqD,EAAE;;IAEvD,MAAM,WAAW,GAAG,MAAA,MAAA,OAAO,CAAC,QAAQ,mCAAI,OAAO,CAAC,OAAO,mCAAI,8BAA8B,CAAC;IAE1F,MAAM,iBAAiB,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,gBAAgB,0CAAE,eAAe,CAAC;IACrE,MAAM,aAAa,GAAG,gCAAgC,CAAC;IACvD,MAAM,eAAe,GAAG,iBAAiB;QACvC,CAAC,CAAC,GAAG,iBAAiB,iBAAiB,aAAa,EAAE;QACtD,CAAC,CAAC,gBAAgB,aAAa,EAAE,CAAC;IACpC,MAAM,qCACD,O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CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { TokenCredential } from \"@azure/core-auth\";\nimport { ClientOptions, Client, getClient } from \"@azure-rest/core-client\";\nimport { logger } from \"../logger.js\";\n\nexport interface StandbyPoolContext extends Client {}\n\n/** Optional parameters for the client. */\nexport interface StandbyPoolManagementClientOptionalParams extends ClientOptions {\n /** The API version to use for this operation. */\n apiVersion?: string;\n}\n\nexport function createStandbyPoolManagement(\n credential: TokenCredential,\n options: StandbyPoolManagementClientOptionalParams = {},\n): StandbyPoolContext {\n const endpointUrl = options.endpoint ?? options.baseUrl ?? `https://management.azure.com`;\n\n const prefixFromOptions = options?.userAgentOptions?.userAgentPrefix;\n const userAgentInfo = `azsdk-js-arm-standbypool/1.0.1`;\n const userAgentPrefix = prefixFromOptions\n ? `${prefixFromOptions} azsdk-js-api ${userAgentInfo}`\n : `azsdk-js-api ${userAgentInfo}`;\n const { apiVersion: _, ...updatedOptions } = {\n ...options,\n userAgentOptions: { userAgentPrefix },\n loggingOptions: { logger: options.loggingOptions?.logger ?? logger.info },\n credentials: {\n scopes: options.credentials?.scopes ?? [`${endpointUrl}/.default`],\n },\n };\n const clientContext = getClient(endpointUrl, credential, updatedOptions);\n clientContext.pipeline.removePolicy({ name: \"ApiVersionPolicy\" });\n const apiVersion = options.apiVersion ?? \"2024-03-01\";\n clientContext.pipeline.addPolicy({\n name: \"ClientApiVersionPolicy\",\n sendRequest: (req, next) => {\n // Use the apiVersion defined in request url directly\n // Append one if there is no apiVersion and we have one at client options\n const url = new URL(req.url);\n if (!url.searchParams.get(\"api-version\")) {\n req.url = `${req.url}${\n Array.from(url.searchParams.keys()).length > 0 ? \"&\" : \"?\"\n }api-version=${apiVersion}`;\n }\n\n return next(req);\n },\n });\n return clientContext;\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"standbyPoolManagementContext.d.ts","sourceRoot":"","sources":["../../../src/api/standbyPoolManagementContext.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACnD,OAAO,EAAE,aAAa,EAAE,MAAM,EAAa,MAAM,yBAAyB,CAAC;AAG3E,MAAM,WAAW,kBAAmB,SAAQ,MAAM;CAAG;AAErD,0CAA0C;AAC1C,MAAM,WAAW,yCAA0C,SAAQ,aAAa;IAC9E,iDAAiD;IACjD,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,wBAAgB,2BAA2B,CACzC,UAAU,EAAE,eAAe,EAC3B,OAAO,GAAE,yCAA8C,GACtD,kBAAkB,
|
|
1
|
+
{"version":3,"file":"standbyPoolManagementContext.d.ts","sourceRoot":"","sources":["../../../src/api/standbyPoolManagementContext.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACnD,OAAO,EAAE,aAAa,EAAE,MAAM,EAAa,MAAM,yBAAyB,CAAC;AAG3E,MAAM,WAAW,kBAAmB,SAAQ,MAAM;CAAG;AAErD,0CAA0C;AAC1C,MAAM,WAAW,yCAA0C,SAAQ,aAAa;IAC9E,iDAAiD;IACjD,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,wBAAgB,2BAA2B,CACzC,UAAU,EAAE,eAAe,EAC3B,OAAO,GAAE,yCAA8C,GACtD,kBAAkB,CAmCpB"}
|
|
@@ -10,7 +10,10 @@ function createStandbyPoolManagement(credential, options = {}) {
|
|
|
10
10
|
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
11
11
|
const endpointUrl = (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUrl) !== null && _b !== void 0 ? _b : `https://management.azure.com`;
|
|
12
12
|
const prefixFromOptions = (_c = options === null || options === void 0 ? void 0 : options.userAgentOptions) === null || _c === void 0 ? void 0 : _c.userAgentPrefix;
|
|
13
|
-
const
|
|
13
|
+
const userAgentInfo = `azsdk-js-arm-standbypool/1.0.1`;
|
|
14
|
+
const userAgentPrefix = prefixFromOptions
|
|
15
|
+
? `${prefixFromOptions} azsdk-js-api ${userAgentInfo}`
|
|
16
|
+
: `azsdk-js-api ${userAgentInfo}`;
|
|
14
17
|
const _j = Object.assign(Object.assign({}, options), { userAgentOptions: { userAgentPrefix }, loggingOptions: { logger: (_e = (_d = options.loggingOptions) === null || _d === void 0 ? void 0 : _d.logger) !== null && _e !== void 0 ? _e : logger_js_1.logger.info }, credentials: {
|
|
15
18
|
scopes: (_g = (_f = options.credentials) === null || _f === void 0 ? void 0 : _f.scopes) !== null && _g !== void 0 ? _g : [`${endpointUrl}/.default`],
|
|
16
19
|
} }), { apiVersion: _ } = _j, updatedOptions = tslib_1.__rest(_j, ["apiVersion"]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"standbyPoolManagementContext.js","sourceRoot":"","sources":["../../../src/api/standbyPoolManagementContext.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AAclC,
|
|
1
|
+
{"version":3,"file":"standbyPoolManagementContext.js","sourceRoot":"","sources":["../../../src/api/standbyPoolManagementContext.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AAclC,kEAsCC;;AAjDD,yDAA2E;AAC3E,4CAAsC;AAUtC,SAAgB,2BAA2B,CACzC,UAA2B,EAC3B,UAAqD,EAAE;;IAEvD,MAAM,WAAW,GAAG,MAAA,MAAA,OAAO,CAAC,QAAQ,mCAAI,OAAO,CAAC,OAAO,mCAAI,8BAA8B,CAAC;IAE1F,MAAM,iBAAiB,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,gBAAgB,0CAAE,eAAe,CAAC;IACrE,MAAM,aAAa,GAAG,gCAAgC,CAAC;IACvD,MAAM,eAAe,GAAG,iBAAiB;QACvC,CAAC,CAAC,GAAG,iBAAiB,iBAAiB,aAAa,EAAE;QACtD,CAAC,CAAC,gBAAgB,aAAa,EAAE,CAAC;IACpC,MAAM,qCACD,OAAO,KACV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,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { TokenCredential } from \"@azure/core-auth\";\nimport { ClientOptions, Client, getClient } from \"@azure-rest/core-client\";\nimport { logger } from \"../logger.js\";\n\nexport interface StandbyPoolContext extends Client {}\n\n/** Optional parameters for the client. */\nexport interface StandbyPoolManagementClientOptionalParams extends ClientOptions {\n /** The API version to use for this operation. */\n apiVersion?: string;\n}\n\nexport function createStandbyPoolManagement(\n credential: TokenCredential,\n options: StandbyPoolManagementClientOptionalParams = {},\n): StandbyPoolContext {\n const endpointUrl = options.endpoint ?? options.baseUrl ?? `https://management.azure.com`;\n\n const prefixFromOptions = options?.userAgentOptions?.userAgentPrefix;\n const userAgentInfo = `azsdk-js-arm-standbypool/1.0.1`;\n const userAgentPrefix = prefixFromOptions\n ? `${prefixFromOptions} azsdk-js-api ${userAgentInfo}`\n : `azsdk-js-api ${userAgentInfo}`;\n const { apiVersion: _, ...updatedOptions } = {\n ...options,\n userAgentOptions: { userAgentPrefix },\n loggingOptions: { logger: options.loggingOptions?.logger ?? logger.info },\n credentials: {\n scopes: options.credentials?.scopes ?? [`${endpointUrl}/.default`],\n },\n };\n const clientContext = getClient(endpointUrl, credential, updatedOptions);\n clientContext.pipeline.removePolicy({ name: \"ApiVersionPolicy\" });\n const apiVersion = options.apiVersion ?? \"2024-03-01\";\n clientContext.pipeline.addPolicy({\n name: \"ClientApiVersionPolicy\",\n sendRequest: (req, next) => {\n // Use the apiVersion defined in request url directly\n // Append one if there is no apiVersion and we have one at client options\n const url = new URL(req.url);\n if (!url.searchParams.get(\"api-version\")) {\n req.url = `${req.url}${\n Array.from(url.searchParams.keys()).length > 0 ? \"&\" : \"?\"\n }api-version=${apiVersion}`;\n }\n\n return next(req);\n },\n });\n return clientContext;\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"standbyPoolManagementContext.d.ts","sourceRoot":"","sources":["../../../src/api/standbyPoolManagementContext.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACnD,OAAO,EAAE,aAAa,EAAE,MAAM,EAAa,MAAM,yBAAyB,CAAC;AAG3E,MAAM,WAAW,kBAAmB,SAAQ,MAAM;CAAG;AAErD,0CAA0C;AAC1C,MAAM,WAAW,yCAA0C,SAAQ,aAAa;IAC9E,iDAAiD;IACjD,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,wBAAgB,2BAA2B,CACzC,UAAU,EAAE,eAAe,EAC3B,OAAO,GAAE,yCAA8C,GACtD,kBAAkB,
|
|
1
|
+
{"version":3,"file":"standbyPoolManagementContext.d.ts","sourceRoot":"","sources":["../../../src/api/standbyPoolManagementContext.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACnD,OAAO,EAAE,aAAa,EAAE,MAAM,EAAa,MAAM,yBAAyB,CAAC;AAG3E,MAAM,WAAW,kBAAmB,SAAQ,MAAM;CAAG;AAErD,0CAA0C;AAC1C,MAAM,WAAW,yCAA0C,SAAQ,aAAa;IAC9E,iDAAiD;IACjD,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,wBAAgB,2BAA2B,CACzC,UAAU,EAAE,eAAe,EAC3B,OAAO,GAAE,yCAA8C,GACtD,kBAAkB,CAmCpB"}
|
|
@@ -7,7 +7,10 @@ export function createStandbyPoolManagement(credential, options = {}) {
|
|
|
7
7
|
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
8
8
|
const endpointUrl = (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUrl) !== null && _b !== void 0 ? _b : `https://management.azure.com`;
|
|
9
9
|
const prefixFromOptions = (_c = options === null || options === void 0 ? void 0 : options.userAgentOptions) === null || _c === void 0 ? void 0 : _c.userAgentPrefix;
|
|
10
|
-
const
|
|
10
|
+
const userAgentInfo = `azsdk-js-arm-standbypool/1.0.1`;
|
|
11
|
+
const userAgentPrefix = prefixFromOptions
|
|
12
|
+
? `${prefixFromOptions} azsdk-js-api ${userAgentInfo}`
|
|
13
|
+
: `azsdk-js-api ${userAgentInfo}`;
|
|
11
14
|
const _j = Object.assign(Object.assign({}, options), { userAgentOptions: { userAgentPrefix }, loggingOptions: { logger: (_e = (_d = options.loggingOptions) === null || _d === void 0 ? void 0 : _d.logger) !== null && _e !== void 0 ? _e : logger.info }, credentials: {
|
|
12
15
|
scopes: (_g = (_f = options.credentials) === null || _f === void 0 ? void 0 : _f.scopes) !== null && _g !== void 0 ? _g : [`${endpointUrl}/.default`],
|
|
13
16
|
} }), { apiVersion: _ } = _j, updatedOptions = __rest(_j, ["apiVersion"]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"standbyPoolManagementContext.js","sourceRoot":"","sources":["../../../src/api/standbyPoolManagementContext.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;;AAGlC,OAAO,EAAyB,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAC3E,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAUtC,MAAM,UAAU,2BAA2B,CACzC,UAA2B,EAC3B,UAAqD,EAAE;;IAEvD,MAAM,WAAW,GAAG,MAAA,MAAA,OAAO,CAAC,QAAQ,mCAAI,OAAO,CAAC,OAAO,mCAAI,8BAA8B,CAAC;IAE1F,MAAM,iBAAiB,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,gBAAgB,0CAAE,eAAe,CAAC;IACrE,MAAM,eAAe,GAAG,iBAAiB,CAAC,CAAC,
|
|
1
|
+
{"version":3,"file":"standbyPoolManagementContext.js","sourceRoot":"","sources":["../../../src/api/standbyPoolManagementContext.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;;AAGlC,OAAO,EAAyB,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAC3E,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAUtC,M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AAG,CAAC,GAAG,CAAC,CAAC;YAC7B,IAAI,CAAC,GAAG,CAAC,YAAY,CAAC,GAAG,CAAC,aAAa,CAAC,EAAE,CAAC;gBACzC,GAAG,CAAC,GAAG,GAAG,GAAG,GAAG,CAAC,GAAG,GAClB,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,YAAY,CAAC,IAAI,EAAE,CAAC,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,GACzD,eAAe,UAAU,EAAE,CAAC;YAC9B,CAAC;YAED,OAAO,IAAI,CAAC,GAAG,CAAC,CAAC;QACnB,CAAC;KACF,CAAC,CAAC;IACH,OAAO,aAAa,CAAC;AACvB,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { TokenCredential } from \"@azure/core-auth\";\nimport { ClientOptions, Client, getClient } from \"@azure-rest/core-client\";\nimport { logger } from \"../logger.js\";\n\nexport interface StandbyPoolContext extends Client {}\n\n/** Optional parameters for the client. */\nexport interface StandbyPoolManagementClientOptionalParams extends ClientOptions {\n /** The API version to use for this operation. */\n apiVersion?: string;\n}\n\nexport function createStandbyPoolManagement(\n credential: TokenCredential,\n options: StandbyPoolManagementClientOptionalParams = {},\n): StandbyPoolContext {\n const endpointUrl = options.endpoint ?? options.baseUrl ?? `https://management.azure.com`;\n\n const prefixFromOptions = options?.userAgentOptions?.userAgentPrefix;\n const userAgentInfo = `azsdk-js-arm-standbypool/1.0.1`;\n const userAgentPrefix = prefixFromOptions\n ? `${prefixFromOptions} azsdk-js-api ${userAgentInfo}`\n : `azsdk-js-api ${userAgentInfo}`;\n const { apiVersion: _, ...updatedOptions } = {\n ...options,\n userAgentOptions: { userAgentPrefix },\n loggingOptions: { logger: options.loggingOptions?.logger ?? logger.info },\n credentials: {\n scopes: options.credentials?.scopes ?? [`${endpointUrl}/.default`],\n },\n };\n const clientContext = getClient(endpointUrl, credential, updatedOptions);\n clientContext.pipeline.removePolicy({ name: \"ApiVersionPolicy\" });\n const apiVersion = options.apiVersion ?? \"2024-03-01\";\n clientContext.pipeline.addPolicy({\n name: \"ClientApiVersionPolicy\",\n sendRequest: (req, next) => {\n // Use the apiVersion defined in request url directly\n // Append one if there is no apiVersion and we have one at client options\n const url = new URL(req.url);\n if (!url.searchParams.get(\"api-version\")) {\n req.url = `${req.url}${\n Array.from(url.searchParams.keys()).length > 0 ? \"&\" : \"?\"\n }api-version=${apiVersion}`;\n }\n\n return next(req);\n },\n });\n return clientContext;\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"standbyPoolManagementContext.d.ts","sourceRoot":"","sources":["../../../src/api/standbyPoolManagementContext.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACnD,OAAO,EAAE,aAAa,EAAE,MAAM,EAAa,MAAM,yBAAyB,CAAC;AAG3E,MAAM,WAAW,kBAAmB,SAAQ,MAAM;CAAG;AAErD,0CAA0C;AAC1C,MAAM,WAAW,yCAA0C,SAAQ,aAAa;IAC9E,iDAAiD;IACjD,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,wBAAgB,2BAA2B,CACzC,UAAU,EAAE,eAAe,EAC3B,OAAO,GAAE,yCAA8C,GACtD,kBAAkB,
|
|
1
|
+
{"version":3,"file":"standbyPoolManagementContext.d.ts","sourceRoot":"","sources":["../../../src/api/standbyPoolManagementContext.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACnD,OAAO,EAAE,aAAa,EAAE,MAAM,EAAa,MAAM,yBAAyB,CAAC;AAG3E,MAAM,WAAW,kBAAmB,SAAQ,MAAM;CAAG;AAErD,0CAA0C;AAC1C,MAAM,WAAW,yCAA0C,SAAQ,aAAa;IAC9E,iDAAiD;IACjD,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,wBAAgB,2BAA2B,CACzC,UAAU,EAAE,eAAe,EAC3B,OAAO,GAAE,yCAA8C,GACtD,kBAAkB,CAmCpB"}
|
|
@@ -7,7 +7,10 @@ export function createStandbyPoolManagement(credential, options = {}) {
|
|
|
7
7
|
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
8
8
|
const endpointUrl = (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUrl) !== null && _b !== void 0 ? _b : `https://management.azure.com`;
|
|
9
9
|
const prefixFromOptions = (_c = options === null || options === void 0 ? void 0 : options.userAgentOptions) === null || _c === void 0 ? void 0 : _c.userAgentPrefix;
|
|
10
|
-
const
|
|
10
|
+
const userAgentInfo = `azsdk-js-arm-standbypool/1.0.1`;
|
|
11
|
+
const userAgentPrefix = prefixFromOptions
|
|
12
|
+
? `${prefixFromOptions} azsdk-js-api ${userAgentInfo}`
|
|
13
|
+
: `azsdk-js-api ${userAgentInfo}`;
|
|
11
14
|
const _j = Object.assign(Object.assign({}, options), { userAgentOptions: { userAgentPrefix }, loggingOptions: { logger: (_e = (_d = options.loggingOptions) === null || _d === void 0 ? void 0 : _d.logger) !== null && _e !== void 0 ? _e : logger.info }, credentials: {
|
|
12
15
|
scopes: (_g = (_f = options.credentials) === null || _f === void 0 ? void 0 : _f.scopes) !== null && _g !== void 0 ? _g : [`${endpointUrl}/.default`],
|
|
13
16
|
} }), { apiVersion: _ } = _j, updatedOptions = __rest(_j, ["apiVersion"]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"standbyPoolManagementContext.js","sourceRoot":"","sources":["../../../src/api/standbyPoolManagementContext.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;;AAGlC,OAAO,EAAyB,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAC3E,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAUtC,MAAM,UAAU,2BAA2B,CACzC,UAA2B,EAC3B,UAAqD,EAAE;;IAEvD,MAAM,WAAW,GAAG,MAAA,MAAA,OAAO,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AOzC,CAAC;IACF,MAAM,aAAa,GAAG,SAAS,CAAC,WAAW,EAAE,UAAU,EAAE,cAAc,CAAC,CAAC;IACzE,aAAa,CAAC,QAAQ,CAAC,YAAY,CAAC,EAAE,IAAI,EAAE,kBAAkB,EAAE,CAAC,CAAC;IAClE,MAAM,UAAU,GAAG,MAAA,OAAO,CAAC,UAAU,mCAAI,YAAY,CAAC;IACtD,aAAa,CAAC,QAAQ,CAAC,SAAS,CAAC;QAC/B,IAAI,EAAE,wBAAwB;QAC9B,WAAW,EAAE,CAAC,GAAG,EAAE,IAAI,EAAE,EAAE;YACzB,qDAAqD;YACrD,yEAAyE;YACzE,MAAM,GAAG,GAAG,IAAI,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;YAC7B,IAAI,CAAC,GAAG,CAAC,YAAY,CAAC,GAAG,CAAC,aAAa,CAAC,EAAE,CAAC;gBACzC,GAAG,CAAC,GAAG,GAAG,GAAG,GAAG,CAAC,GAAG,GAClB,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,YAAY,CAAC,IAAI,EAAE,CAAC,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,GACzD,eAAe,UAAU,EAAE,CAAC;YAC9B,CAAC;YAED,OAAO,IAAI,CAAC,GAAG,CAAC,CAAC;QACnB,CAAC;KACF,CAAC,CAAC;IACH,OAAO,aAAa,CAAC;AACvB,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { TokenCredential } from \"@azure/core-auth\";\nimport { ClientOptions, Client, getClient } from \"@azure-rest/core-client\";\nimport { logger } from \"../logger.js\";\n\nexport interface StandbyPoolContext extends Client {}\n\n/** Optional parameters for the client. */\nexport interface StandbyPoolManagementClientOptionalParams extends ClientOptions {\n /** The API version to use for this operation. */\n apiVersion?: string;\n}\n\nexport function createStandbyPoolManagement(\n credential: TokenCredential,\n options: StandbyPoolManagementClientOptionalParams = {},\n): StandbyPoolContext {\n const endpointUrl = options.endpoint ?? options.baseUrl ?? `https://management.azure.com`;\n\n const prefixFromOptions = options?.userAgentOptions?.userAgentPrefix;\n const userAgentInfo = `azsdk-js-arm-standbypool/1.0.1`;\n const userAgentPrefix = prefixFromOptions\n ? `${prefixFromOptions} azsdk-js-api ${userAgentInfo}`\n : `azsdk-js-api ${userAgentInfo}`;\n const { apiVersion: _, ...updatedOptions } = {\n ...options,\n userAgentOptions: { userAgentPrefix },\n loggingOptions: { logger: options.loggingOptions?.logger ?? logger.info },\n credentials: {\n scopes: options.credentials?.scopes ?? [`${endpointUrl}/.default`],\n },\n };\n const clientContext = getClient(endpointUrl, credential, updatedOptions);\n clientContext.pipeline.removePolicy({ name: \"ApiVersionPolicy\" });\n const apiVersion = options.apiVersion ?? \"2024-03-01\";\n clientContext.pipeline.addPolicy({\n name: \"ClientApiVersionPolicy\",\n sendRequest: (req, next) => {\n // Use the apiVersion defined in request url directly\n // Append one if there is no apiVersion and we have one at client options\n const url = new URL(req.url);\n if (!url.searchParams.get(\"api-version\")) {\n req.url = `${req.url}${\n Array.from(url.searchParams.keys()).length > 0 ? \"&\" : \"?\"\n }api-version=${apiVersion}`;\n }\n\n return next(req);\n },\n });\n return clientContext;\n}\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@azure/arm-standbypool",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1",
|
|
4
4
|
"description": "A generated SDK for StandbyPoolClient.",
|
|
5
5
|
"engines": {
|
|
6
6
|
"node": ">=18.0.0"
|
|
@@ -50,65 +50,61 @@
|
|
|
50
50
|
"//metadata": {
|
|
51
51
|
"constantPaths": [
|
|
52
52
|
{
|
|
53
|
-
"path": "src/
|
|
53
|
+
"path": "src/api/standbyPoolManagementContext.ts",
|
|
54
54
|
"prefix": "userAgentInfo"
|
|
55
55
|
}
|
|
56
56
|
]
|
|
57
57
|
},
|
|
58
58
|
"dependencies": {
|
|
59
|
-
"@azure/core-util": "^1.9.2",
|
|
60
59
|
"@azure-rest/core-client": "^2.1.0",
|
|
60
|
+
"@azure/abort-controller": "^2.1.2",
|
|
61
61
|
"@azure/core-auth": "^1.6.0",
|
|
62
|
+
"@azure/core-lro": "^3.0.0",
|
|
62
63
|
"@azure/core-rest-pipeline": "^1.5.0",
|
|
64
|
+
"@azure/core-util": "^1.9.2",
|
|
63
65
|
"@azure/logger": "^1.0.0",
|
|
64
|
-
"tslib": "^2.6.2"
|
|
65
|
-
"@azure/core-lro": "^3.0.0",
|
|
66
|
-
"@azure/abort-controller": "^2.1.2"
|
|
66
|
+
"tslib": "^2.6.2"
|
|
67
67
|
},
|
|
68
68
|
"devDependencies": {
|
|
69
|
-
"
|
|
70
|
-
"@
|
|
71
|
-
"@
|
|
72
|
-
"eslint": "^
|
|
73
|
-
"prettier": "^3.2.5",
|
|
74
|
-
"rimraf": "^5.0.5",
|
|
75
|
-
"mkdirp": "^3.0.1",
|
|
76
|
-
"typescript": "~5.6.2",
|
|
77
|
-
"tshy": "^1.11.1",
|
|
69
|
+
"@azure-tools/test-credential": "^2.0.0",
|
|
70
|
+
"@azure-tools/test-recorder": "^4.0.0",
|
|
71
|
+
"@azure/dev-tool": "^1.0.0",
|
|
72
|
+
"@azure/eslint-plugin-azure-sdk": "^3.0.0",
|
|
78
73
|
"@azure/identity": "^4.2.1",
|
|
74
|
+
"@types/node": "^18.0.0",
|
|
79
75
|
"@vitest/browser": "^2.0.5",
|
|
80
76
|
"@vitest/coverage-istanbul": "^2.0.5",
|
|
77
|
+
"dotenv": "^16.0.0",
|
|
78
|
+
"eslint": "^8.55.0",
|
|
81
79
|
"playwright": "^1.41.2",
|
|
82
|
-
"
|
|
83
|
-
"
|
|
84
|
-
"
|
|
85
|
-
"@azure/dev-tool": "^1.0.0",
|
|
86
|
-
"@azure/eslint-plugin-azure-sdk": "^3.0.0"
|
|
80
|
+
"prettier": "^3.2.5",
|
|
81
|
+
"typescript": "~5.6.2",
|
|
82
|
+
"vitest": "^2.0.5"
|
|
87
83
|
},
|
|
88
84
|
"scripts": {
|
|
89
|
-
"
|
|
90
|
-
"extract-api": "rimraf review && mkdirp ./review && dev-tool run extract-api",
|
|
91
|
-
"pack": "npm pack 2>&1",
|
|
92
|
-
"lint": "echo skipped",
|
|
93
|
-
"lint:fix": "echo skipped",
|
|
94
|
-
"unit-test": "npm run unit-test:node && npm run unit-test:browser",
|
|
95
|
-
"unit-test:browser": "npm run build:test && dev-tool run test:vitest --browser",
|
|
96
|
-
"unit-test:node": "dev-tool run test:vitest",
|
|
97
|
-
"integration-test": "npm run integration-test:node && npm run integration-test:browser",
|
|
98
|
-
"integration-test:browser": "echo skipped",
|
|
99
|
-
"integration-test:node": "echo skipped",
|
|
100
|
-
"audit": "node ../../../common/scripts/rush-audit.js && rimraf node_modules package-lock.json && npm i --package-lock-only 2>&1 && npm audit",
|
|
85
|
+
"build": "npm run clean && dev-tool run build-package && dev-tool run vendored mkdirp ./review && dev-tool run extract-api",
|
|
101
86
|
"build:samples": "dev-tool run typecheck --paths samples-dev/*.ts && dev-tool samples publish -f",
|
|
87
|
+
"build:test": "npm run clean && dev-tool run build-package && dev-tool run build-test",
|
|
102
88
|
"check-format": "dev-tool run vendored prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.{ts,cts,mts}\" \"test/**/*.{ts,cts,mts}\" \"*.{js,cjs,mjs,json}\" \"samples-dev/*.ts\"",
|
|
89
|
+
"clean": "dev-tool run vendored rimraf --glob dist dist-browser dist-esm test-dist temp types *.tgz *.log",
|
|
103
90
|
"execute:samples": "dev-tool samples run samples-dev",
|
|
91
|
+
"extract-api": "dev-tool run vendored rimraf review && dev-tool run vendored mkdirp ./review && dev-tool run extract-api",
|
|
104
92
|
"format": "dev-tool run vendored prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.{ts,cts,mts}\" \"test/**/*.{ts,cts,mts}\" \"*.{js,cjs,mjs,json}\" \"samples-dev/*.ts\"",
|
|
105
93
|
"generate:client": "echo skipped",
|
|
94
|
+
"integration-test": "npm run integration-test:node && npm run integration-test:browser",
|
|
95
|
+
"integration-test:browser": "echo skipped",
|
|
96
|
+
"integration-test:node": "echo skipped",
|
|
97
|
+
"lint": "echo skipped",
|
|
98
|
+
"lint:fix": "echo skipped",
|
|
99
|
+
"minify": "dev-tool run vendored uglifyjs -c -m --comments --source-map \"content='./dist/index.js.map'\" -o ./dist/index.min.js ./dist/index.js",
|
|
100
|
+
"pack": "npm pack 2>&1",
|
|
101
|
+
"test": "npm run clean && dev-tool run build-package && npm run unit-test:node && dev-tool run bundle && npm run unit-test:browser && npm run integration-test",
|
|
106
102
|
"test:browser": "npm run clean && npm run build:test && npm run unit-test:browser && npm run integration-test:browser",
|
|
107
|
-
"
|
|
108
|
-
"
|
|
109
|
-
"
|
|
110
|
-
"test:node": "
|
|
111
|
-
"
|
|
103
|
+
"test:node": "npm run clean && dev-tool run build-package && npm run unit-test:node && npm run integration-test:node",
|
|
104
|
+
"unit-test": "npm run unit-test:node && npm run unit-test:browser",
|
|
105
|
+
"unit-test:browser": "npm run build:test && dev-tool run test:vitest --browser",
|
|
106
|
+
"unit-test:node": "dev-tool run test:vitest",
|
|
107
|
+
"update-snippets": "echo skipped"
|
|
112
108
|
},
|
|
113
109
|
"//sampleConfiguration": {
|
|
114
110
|
"productName": "@azure/arm-standbypool",
|
|
@@ -122,44 +118,36 @@
|
|
|
122
118
|
"./package.json": "./package.json",
|
|
123
119
|
".": {
|
|
124
120
|
"browser": {
|
|
125
|
-
"source": "./src/index.ts",
|
|
126
121
|
"types": "./dist/browser/index.d.ts",
|
|
127
122
|
"default": "./dist/browser/index.js"
|
|
128
123
|
},
|
|
129
124
|
"react-native": {
|
|
130
|
-
"source": "./src/index.ts",
|
|
131
125
|
"types": "./dist/react-native/index.d.ts",
|
|
132
126
|
"default": "./dist/react-native/index.js"
|
|
133
127
|
},
|
|
134
128
|
"import": {
|
|
135
|
-
"source": "./src/index.ts",
|
|
136
129
|
"types": "./dist/esm/index.d.ts",
|
|
137
130
|
"default": "./dist/esm/index.js"
|
|
138
131
|
},
|
|
139
132
|
"require": {
|
|
140
|
-
"source": "./src/index.ts",
|
|
141
133
|
"types": "./dist/commonjs/index.d.ts",
|
|
142
134
|
"default": "./dist/commonjs/index.js"
|
|
143
135
|
}
|
|
144
136
|
},
|
|
145
137
|
"./models": {
|
|
146
138
|
"browser": {
|
|
147
|
-
"source": "./src/models/index.ts",
|
|
148
139
|
"types": "./dist/browser/models/index.d.ts",
|
|
149
140
|
"default": "./dist/browser/models/index.js"
|
|
150
141
|
},
|
|
151
142
|
"react-native": {
|
|
152
|
-
"source": "./src/models/index.ts",
|
|
153
143
|
"types": "./dist/react-native/models/index.d.ts",
|
|
154
144
|
"default": "./dist/react-native/models/index.js"
|
|
155
145
|
},
|
|
156
146
|
"import": {
|
|
157
|
-
"source": "./src/models/index.ts",
|
|
158
147
|
"types": "./dist/esm/models/index.d.ts",
|
|
159
148
|
"default": "./dist/esm/models/index.js"
|
|
160
149
|
},
|
|
161
150
|
"require": {
|
|
162
|
-
"source": "./src/models/index.ts",
|
|
163
151
|
"types": "./dist/commonjs/models/index.d.ts",
|
|
164
152
|
"default": "./dist/commonjs/models/index.js"
|
|
165
153
|
}
|