@azure/arm-advisor 3.2.0-alpha.20260303.1 → 3.2.0-alpha.20260305.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.
Files changed (37) hide show
  1. package/dist/commonjs/advisorManagementClient.js +128 -111
  2. package/dist/commonjs/advisorManagementClient.js.map +7 -1
  3. package/dist/commonjs/index.js +35 -19
  4. package/dist/commonjs/index.js.map +7 -1
  5. package/dist/commonjs/models/index.js +78 -77
  6. package/dist/commonjs/models/index.js.map +7 -1
  7. package/dist/commonjs/models/mappers.js +714 -663
  8. package/dist/commonjs/models/mappers.js.map +7 -1
  9. package/dist/commonjs/models/parameters.js +219 -172
  10. package/dist/commonjs/models/parameters.js.map +7 -1
  11. package/dist/commonjs/operations/configurations.js +251 -215
  12. package/dist/commonjs/operations/configurations.js.map +7 -1
  13. package/dist/commonjs/operations/index.js +29 -16
  14. package/dist/commonjs/operations/index.js.map +7 -1
  15. package/dist/commonjs/operations/operations.js +133 -109
  16. package/dist/commonjs/operations/operations.js.map +7 -1
  17. package/dist/commonjs/operations/recommendationMetadata.js +158 -134
  18. package/dist/commonjs/operations/recommendationMetadata.js.map +7 -1
  19. package/dist/commonjs/operations/recommendations.js +209 -179
  20. package/dist/commonjs/operations/recommendations.js.map +7 -1
  21. package/dist/commonjs/operations/suppressions.js +244 -211
  22. package/dist/commonjs/operations/suppressions.js.map +7 -1
  23. package/dist/commonjs/operationsInterfaces/configurations.js +15 -10
  24. package/dist/commonjs/operationsInterfaces/configurations.js.map +7 -1
  25. package/dist/commonjs/operationsInterfaces/index.js +29 -16
  26. package/dist/commonjs/operationsInterfaces/index.js.map +7 -1
  27. package/dist/commonjs/operationsInterfaces/operations.js +15 -10
  28. package/dist/commonjs/operationsInterfaces/operations.js.map +7 -1
  29. package/dist/commonjs/operationsInterfaces/recommendationMetadata.js +15 -10
  30. package/dist/commonjs/operationsInterfaces/recommendationMetadata.js.map +7 -1
  31. package/dist/commonjs/operationsInterfaces/recommendations.js +15 -10
  32. package/dist/commonjs/operationsInterfaces/recommendations.js.map +7 -1
  33. package/dist/commonjs/operationsInterfaces/suppressions.js +15 -10
  34. package/dist/commonjs/operationsInterfaces/suppressions.js.map +7 -1
  35. package/dist/commonjs/pagingHelper.js +39 -30
  36. package/dist/commonjs/pagingHelper.js.map +7 -1
  37. package/package.json +3 -16
@@ -1,115 +1,132 @@
1
- "use strict";
2
- /*
3
- * Copyright (c) Microsoft Corporation.
4
- * Licensed under the MIT License.
5
- *
6
- * Code generated by Microsoft (R) AutoRest Code Generator.
7
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
8
- */
9
- Object.defineProperty(exports, "__esModule", { value: true });
10
- exports.AdvisorManagementClient = void 0;
11
- const tslib_1 = require("tslib");
12
- const coreClient = tslib_1.__importStar(require("@azure/core-client"));
13
- const coreRestPipeline = tslib_1.__importStar(require("@azure/core-rest-pipeline"));
14
- const index_js_1 = require("./operations/index.js");
1
+ var __create = Object.create;
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __getProtoOf = Object.getPrototypeOf;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __export = (target, all) => {
8
+ for (var name in all)
9
+ __defProp(target, name, { get: all[name], enumerable: true });
10
+ };
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from))
14
+ if (!__hasOwnProp.call(to, key) && key !== except)
15
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
+ }
17
+ return to;
18
+ };
19
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
20
+ // If the importer is in node compatibility mode or this is not an ESM
21
+ // file that has been converted to a CommonJS file using a Babel-
22
+ // compatible transform (i.e. "__esModule" has not been set), then set
23
+ // "default" to the CommonJS "module.exports" for node compatibility.
24
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
25
+ mod
26
+ ));
27
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
28
+ var advisorManagementClient_exports = {};
29
+ __export(advisorManagementClient_exports, {
30
+ AdvisorManagementClient: () => AdvisorManagementClient
31
+ });
32
+ module.exports = __toCommonJS(advisorManagementClient_exports);
33
+ var coreClient = __toESM(require("@azure/core-client"));
34
+ var coreRestPipeline = __toESM(require("@azure/core-rest-pipeline"));
35
+ var import_operations = require("./operations/index.js");
15
36
  class AdvisorManagementClient extends coreClient.ServiceClient {
16
- $host;
17
- apiVersion;
18
- subscriptionId;
19
- constructor(credentials, subscriptionIdOrOptions, options) {
20
- if (credentials === undefined) {
21
- throw new Error("'credentials' cannot be null");
22
- }
23
- let subscriptionId;
24
- if (typeof subscriptionIdOrOptions === "string") {
25
- subscriptionId = subscriptionIdOrOptions;
26
- }
27
- else if (typeof subscriptionIdOrOptions === "object") {
28
- options = subscriptionIdOrOptions;
29
- }
30
- // Initializing default values for options
31
- if (!options) {
32
- options = {};
33
- }
34
- const defaults = {
35
- requestContentType: "application/json; charset=utf-8",
36
- credential: credentials,
37
- };
38
- const packageDetails = `azsdk-js-arm-advisor/3.2.0`;
39
- const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
40
- ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
41
- : `${packageDetails}`;
42
- const optionsWithDefaults = {
43
- ...defaults,
44
- ...options,
45
- userAgentOptions: {
46
- userAgentPrefix,
47
- },
48
- endpoint: options.endpoint ?? options.baseUri ?? "https://management.azure.com",
49
- };
50
- super(optionsWithDefaults);
51
- let bearerTokenAuthenticationPolicyFound = false;
52
- if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {
53
- const pipelinePolicies = options.pipeline.getOrderedPolicies();
54
- bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name === coreRestPipeline.bearerTokenAuthenticationPolicyName);
55
- }
56
- if (!options ||
57
- !options.pipeline ||
58
- options.pipeline.getOrderedPolicies().length == 0 ||
59
- !bearerTokenAuthenticationPolicyFound) {
60
- this.pipeline.removePolicy({
61
- name: coreRestPipeline.bearerTokenAuthenticationPolicyName,
62
- });
63
- this.pipeline.addPolicy(coreRestPipeline.bearerTokenAuthenticationPolicy({
64
- credential: credentials,
65
- scopes: optionsWithDefaults.credentialScopes ?? `${optionsWithDefaults.endpoint}/.default`,
66
- challengeCallbacks: {
67
- authorizeRequestOnChallenge: coreClient.authorizeRequestOnClaimChallenge,
68
- },
69
- }));
70
- }
71
- // Parameter assignments
72
- this.subscriptionId = subscriptionId;
73
- // Assigning values to Constant parameters
74
- this.$host = options.$host || "https://management.azure.com";
75
- this.apiVersion = options.apiVersion || "2020-01-01";
76
- this.recommendationMetadata = new index_js_1.RecommendationMetadataImpl(this);
77
- this.configurations = new index_js_1.ConfigurationsImpl(this);
78
- this.recommendations = new index_js_1.RecommendationsImpl(this);
79
- this.operations = new index_js_1.OperationsImpl(this);
80
- this.suppressions = new index_js_1.SuppressionsImpl(this);
81
- this.addCustomApiVersionPolicy(options.apiVersion);
37
+ $host;
38
+ apiVersion;
39
+ subscriptionId;
40
+ constructor(credentials, subscriptionIdOrOptions, options) {
41
+ if (credentials === void 0) {
42
+ throw new Error("'credentials' cannot be null");
82
43
  }
83
- /** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */
84
- addCustomApiVersionPolicy(apiVersion) {
85
- if (!apiVersion) {
86
- return;
87
- }
88
- const apiVersionPolicy = {
89
- name: "CustomApiVersionPolicy",
90
- async sendRequest(request, next) {
91
- const param = request.url.split("?");
92
- if (param.length > 1) {
93
- const newParams = param[1].split("&").map((item) => {
94
- if (item.indexOf("api-version") > -1) {
95
- return "api-version=" + apiVersion;
96
- }
97
- else {
98
- return item;
99
- }
100
- });
101
- request.url = param[0] + "?" + newParams.join("&");
102
- }
103
- return next(request);
104
- },
105
- };
106
- this.pipeline.addPolicy(apiVersionPolicy);
44
+ let subscriptionId;
45
+ if (typeof subscriptionIdOrOptions === "string") {
46
+ subscriptionId = subscriptionIdOrOptions;
47
+ } else if (typeof subscriptionIdOrOptions === "object") {
48
+ options = subscriptionIdOrOptions;
49
+ }
50
+ if (!options) {
51
+ options = {};
52
+ }
53
+ const defaults = {
54
+ requestContentType: "application/json; charset=utf-8",
55
+ credential: credentials
56
+ };
57
+ const packageDetails = `azsdk-js-arm-advisor/3.2.0`;
58
+ const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}` : `${packageDetails}`;
59
+ const optionsWithDefaults = {
60
+ ...defaults,
61
+ ...options,
62
+ userAgentOptions: {
63
+ userAgentPrefix
64
+ },
65
+ endpoint: options.endpoint ?? options.baseUri ?? "https://management.azure.com"
66
+ };
67
+ super(optionsWithDefaults);
68
+ let bearerTokenAuthenticationPolicyFound = false;
69
+ if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {
70
+ const pipelinePolicies = options.pipeline.getOrderedPolicies();
71
+ bearerTokenAuthenticationPolicyFound = pipelinePolicies.some(
72
+ (pipelinePolicy) => pipelinePolicy.name === coreRestPipeline.bearerTokenAuthenticationPolicyName
73
+ );
107
74
  }
108
- recommendationMetadata;
109
- configurations;
110
- recommendations;
111
- operations;
112
- suppressions;
75
+ if (!options || !options.pipeline || options.pipeline.getOrderedPolicies().length == 0 || !bearerTokenAuthenticationPolicyFound) {
76
+ this.pipeline.removePolicy({
77
+ name: coreRestPipeline.bearerTokenAuthenticationPolicyName
78
+ });
79
+ this.pipeline.addPolicy(
80
+ coreRestPipeline.bearerTokenAuthenticationPolicy({
81
+ credential: credentials,
82
+ scopes: optionsWithDefaults.credentialScopes ?? `${optionsWithDefaults.endpoint}/.default`,
83
+ challengeCallbacks: {
84
+ authorizeRequestOnChallenge: coreClient.authorizeRequestOnClaimChallenge
85
+ }
86
+ })
87
+ );
88
+ }
89
+ this.subscriptionId = subscriptionId;
90
+ this.$host = options.$host || "https://management.azure.com";
91
+ this.apiVersion = options.apiVersion || "2020-01-01";
92
+ this.recommendationMetadata = new import_operations.RecommendationMetadataImpl(this);
93
+ this.configurations = new import_operations.ConfigurationsImpl(this);
94
+ this.recommendations = new import_operations.RecommendationsImpl(this);
95
+ this.operations = new import_operations.OperationsImpl(this);
96
+ this.suppressions = new import_operations.SuppressionsImpl(this);
97
+ this.addCustomApiVersionPolicy(options.apiVersion);
98
+ }
99
+ /** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */
100
+ addCustomApiVersionPolicy(apiVersion) {
101
+ if (!apiVersion) {
102
+ return;
103
+ }
104
+ const apiVersionPolicy = {
105
+ name: "CustomApiVersionPolicy",
106
+ async sendRequest(request, next) {
107
+ const param = request.url.split("?");
108
+ if (param.length > 1) {
109
+ const newParams = param[1].split("&").map((item) => {
110
+ if (item.indexOf("api-version") > -1) {
111
+ return "api-version=" + apiVersion;
112
+ } else {
113
+ return item;
114
+ }
115
+ });
116
+ request.url = param[0] + "?" + newParams.join("&");
117
+ }
118
+ return next(request);
119
+ }
120
+ };
121
+ this.pipeline.addPolicy(apiVersionPolicy);
122
+ }
123
+ recommendationMetadata;
124
+ configurations;
125
+ recommendations;
126
+ operations;
127
+ suppressions;
113
128
  }
114
- exports.AdvisorManagementClient = AdvisorManagementClient;
115
- //# sourceMappingURL=advisorManagementClient.js.map
129
+ // Annotate the CommonJS export names for ESM import in node:
130
+ 0 && (module.exports = {
131
+ AdvisorManagementClient
132
+ });
@@ -1 +1,7 @@
1
- {"version":3,"file":"advisorManagementClient.js","sourceRoot":"","sources":["../../src/advisorManagementClient.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAEH,uEAAiD;AACjD,oFAA8D;AAG9D,oDAM+B;AAU/B,MAAa,uBAAwB,SAAQ,UAAU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/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport * as coreClient from \"@azure/core-client\";\nimport * as coreRestPipeline from \"@azure/core-rest-pipeline\";\nimport { PipelineRequest, PipelineResponse, SendRequest } from \"@azure/core-rest-pipeline\";\nimport * as coreAuth from \"@azure/core-auth\";\nimport {\n RecommendationMetadataImpl,\n ConfigurationsImpl,\n RecommendationsImpl,\n OperationsImpl,\n SuppressionsImpl,\n} from \"./operations/index.js\";\nimport {\n RecommendationMetadata,\n Configurations,\n Recommendations,\n Operations,\n Suppressions,\n} from \"./operationsInterfaces/index.js\";\nimport { AdvisorManagementClientOptionalParams } from \"./models/index.js\";\n\nexport class AdvisorManagementClient extends coreClient.ServiceClient {\n $host: string;\n apiVersion: string;\n subscriptionId?: string;\n\n /**\n * Initializes a new instance of the AdvisorManagementClient class.\n * @param credentials Subscription credentials which uniquely identify client subscription.\n * @param subscriptionId The Azure subscription ID.\n * @param options The parameter options\n */\n constructor(\n credentials: coreAuth.TokenCredential,\n subscriptionId: string,\n options?: AdvisorManagementClientOptionalParams,\n );\n constructor(\n credentials: coreAuth.TokenCredential,\n options?: AdvisorManagementClientOptionalParams,\n );\n constructor(\n credentials: coreAuth.TokenCredential,\n subscriptionIdOrOptions?: AdvisorManagementClientOptionalParams | string,\n options?: AdvisorManagementClientOptionalParams,\n ) {\n if (credentials === undefined) {\n throw new Error(\"'credentials' cannot be null\");\n }\n\n let subscriptionId: string | undefined;\n\n if (typeof subscriptionIdOrOptions === \"string\") {\n subscriptionId = subscriptionIdOrOptions;\n } else if (typeof subscriptionIdOrOptions === \"object\") {\n options = subscriptionIdOrOptions;\n }\n\n // Initializing default values for options\n if (!options) {\n options = {};\n }\n const defaults: AdvisorManagementClientOptionalParams = {\n requestContentType: \"application/json; charset=utf-8\",\n credential: credentials,\n };\n\n const packageDetails = `azsdk-js-arm-advisor/3.2.0`;\n const userAgentPrefix =\n options.userAgentOptions && options.userAgentOptions.userAgentPrefix\n ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`\n : `${packageDetails}`;\n\n const optionsWithDefaults = {\n ...defaults,\n ...options,\n userAgentOptions: {\n userAgentPrefix,\n },\n endpoint: options.endpoint ?? options.baseUri ?? \"https://management.azure.com\",\n };\n super(optionsWithDefaults);\n\n let bearerTokenAuthenticationPolicyFound: boolean = false;\n if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {\n const pipelinePolicies: coreRestPipeline.PipelinePolicy[] =\n options.pipeline.getOrderedPolicies();\n bearerTokenAuthenticationPolicyFound = pipelinePolicies.some(\n (pipelinePolicy) =>\n pipelinePolicy.name === coreRestPipeline.bearerTokenAuthenticationPolicyName,\n );\n }\n if (\n !options ||\n !options.pipeline ||\n options.pipeline.getOrderedPolicies().length == 0 ||\n !bearerTokenAuthenticationPolicyFound\n ) {\n this.pipeline.removePolicy({\n name: coreRestPipeline.bearerTokenAuthenticationPolicyName,\n });\n this.pipeline.addPolicy(\n coreRestPipeline.bearerTokenAuthenticationPolicy({\n credential: credentials,\n scopes:\n optionsWithDefaults.credentialScopes ?? `${optionsWithDefaults.endpoint}/.default`,\n challengeCallbacks: {\n authorizeRequestOnChallenge: coreClient.authorizeRequestOnClaimChallenge,\n },\n }),\n );\n }\n // Parameter assignments\n this.subscriptionId = subscriptionId;\n\n // Assigning values to Constant parameters\n this.$host = options.$host || \"https://management.azure.com\";\n this.apiVersion = options.apiVersion || \"2020-01-01\";\n this.recommendationMetadata = new RecommendationMetadataImpl(this);\n this.configurations = new ConfigurationsImpl(this);\n this.recommendations = new RecommendationsImpl(this);\n this.operations = new OperationsImpl(this);\n this.suppressions = new SuppressionsImpl(this);\n this.addCustomApiVersionPolicy(options.apiVersion);\n }\n\n /** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */\n private addCustomApiVersionPolicy(apiVersion?: string) {\n if (!apiVersion) {\n return;\n }\n const apiVersionPolicy = {\n name: \"CustomApiVersionPolicy\",\n async sendRequest(request: PipelineRequest, next: SendRequest): Promise<PipelineResponse> {\n const param = request.url.split(\"?\");\n if (param.length > 1) {\n const newParams = param[1].split(\"&\").map((item) => {\n if (item.indexOf(\"api-version\") > -1) {\n return \"api-version=\" + apiVersion;\n } else {\n return item;\n }\n });\n request.url = param[0] + \"?\" + newParams.join(\"&\");\n }\n return next(request);\n },\n };\n this.pipeline.addPolicy(apiVersionPolicy);\n }\n\n recommendationMetadata: RecommendationMetadata;\n configurations: Configurations;\n recommendations: Recommendations;\n operations: Operations;\n suppressions: Suppressions;\n}\n"]}
1
+ {
2
+ "version": 3,
3
+ "sources": ["/mnt/vss/_work/1/s/sdk/advisor/arm-advisor/src/advisorManagementClient.ts"],
4
+ "sourcesContent": ["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport * as coreClient from \"@azure/core-client\";\nimport * as coreRestPipeline from \"@azure/core-rest-pipeline\";\nimport { PipelineRequest, PipelineResponse, SendRequest } from \"@azure/core-rest-pipeline\";\nimport * as coreAuth from \"@azure/core-auth\";\nimport {\n RecommendationMetadataImpl,\n ConfigurationsImpl,\n RecommendationsImpl,\n OperationsImpl,\n SuppressionsImpl,\n} from \"./operations/index.js\";\nimport {\n RecommendationMetadata,\n Configurations,\n Recommendations,\n Operations,\n Suppressions,\n} from \"./operationsInterfaces/index.js\";\nimport { AdvisorManagementClientOptionalParams } from \"./models/index.js\";\n\nexport class AdvisorManagementClient extends coreClient.ServiceClient {\n $host: string;\n apiVersion: string;\n subscriptionId?: string;\n\n /**\n * Initializes a new instance of the AdvisorManagementClient class.\n * @param credentials Subscription credentials which uniquely identify client subscription.\n * @param subscriptionId The Azure subscription ID.\n * @param options The parameter options\n */\n constructor(\n credentials: coreAuth.TokenCredential,\n subscriptionId: string,\n options?: AdvisorManagementClientOptionalParams,\n );\n constructor(\n credentials: coreAuth.TokenCredential,\n options?: AdvisorManagementClientOptionalParams,\n );\n constructor(\n credentials: coreAuth.TokenCredential,\n subscriptionIdOrOptions?: AdvisorManagementClientOptionalParams | string,\n options?: AdvisorManagementClientOptionalParams,\n ) {\n if (credentials === undefined) {\n throw new Error(\"'credentials' cannot be null\");\n }\n\n let subscriptionId: string | undefined;\n\n if (typeof subscriptionIdOrOptions === \"string\") {\n subscriptionId = subscriptionIdOrOptions;\n } else if (typeof subscriptionIdOrOptions === \"object\") {\n options = subscriptionIdOrOptions;\n }\n\n // Initializing default values for options\n if (!options) {\n options = {};\n }\n const defaults: AdvisorManagementClientOptionalParams = {\n requestContentType: \"application/json; charset=utf-8\",\n credential: credentials,\n };\n\n const packageDetails = `azsdk-js-arm-advisor/3.2.0`;\n const userAgentPrefix =\n options.userAgentOptions && options.userAgentOptions.userAgentPrefix\n ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`\n : `${packageDetails}`;\n\n const optionsWithDefaults = {\n ...defaults,\n ...options,\n userAgentOptions: {\n userAgentPrefix,\n },\n endpoint: options.endpoint ?? options.baseUri ?? \"https://management.azure.com\",\n };\n super(optionsWithDefaults);\n\n let bearerTokenAuthenticationPolicyFound: boolean = false;\n if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {\n const pipelinePolicies: coreRestPipeline.PipelinePolicy[] =\n options.pipeline.getOrderedPolicies();\n bearerTokenAuthenticationPolicyFound = pipelinePolicies.some(\n (pipelinePolicy) =>\n pipelinePolicy.name === coreRestPipeline.bearerTokenAuthenticationPolicyName,\n );\n }\n if (\n !options ||\n !options.pipeline ||\n options.pipeline.getOrderedPolicies().length == 0 ||\n !bearerTokenAuthenticationPolicyFound\n ) {\n this.pipeline.removePolicy({\n name: coreRestPipeline.bearerTokenAuthenticationPolicyName,\n });\n this.pipeline.addPolicy(\n coreRestPipeline.bearerTokenAuthenticationPolicy({\n credential: credentials,\n scopes:\n optionsWithDefaults.credentialScopes ?? `${optionsWithDefaults.endpoint}/.default`,\n challengeCallbacks: {\n authorizeRequestOnChallenge: coreClient.authorizeRequestOnClaimChallenge,\n },\n }),\n );\n }\n // Parameter assignments\n this.subscriptionId = subscriptionId;\n\n // Assigning values to Constant parameters\n this.$host = options.$host || \"https://management.azure.com\";\n this.apiVersion = options.apiVersion || \"2020-01-01\";\n this.recommendationMetadata = new RecommendationMetadataImpl(this);\n this.configurations = new ConfigurationsImpl(this);\n this.recommendations = new RecommendationsImpl(this);\n this.operations = new OperationsImpl(this);\n this.suppressions = new SuppressionsImpl(this);\n this.addCustomApiVersionPolicy(options.apiVersion);\n }\n\n /** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */\n private addCustomApiVersionPolicy(apiVersion?: string) {\n if (!apiVersion) {\n return;\n }\n const apiVersionPolicy = {\n name: \"CustomApiVersionPolicy\",\n async sendRequest(request: PipelineRequest, next: SendRequest): Promise<PipelineResponse> {\n const param = request.url.split(\"?\");\n if (param.length > 1) {\n const newParams = param[1].split(\"&\").map((item) => {\n if (item.indexOf(\"api-version\") > -1) {\n return \"api-version=\" + apiVersion;\n } else {\n return item;\n }\n });\n request.url = param[0] + \"?\" + newParams.join(\"&\");\n }\n return next(request);\n },\n };\n this.pipeline.addPolicy(apiVersionPolicy);\n }\n\n recommendationMetadata: RecommendationMetadata;\n configurations: Configurations;\n recommendations: Recommendations;\n operations: Operations;\n suppressions: Suppressions;\n}\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAQA,iBAA4B;AAC5B,uBAAkC;AAGlC,wBAMO;AAUA,MAAM,gCAAgC,WAAW,cAAc;AAAA,EACpE;AAAA,EACA;AAAA,EACA;AAAA,EAiBA,YACE,aACA,yBACA,SACA;AACA,QAAI,gBAAgB,QAAW;AAC7B,YAAM,IAAI,MAAM,8BAA8B;AAAA,IAChD;AAEA,QAAI;AAEJ,QAAI,OAAO,4BAA4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A2B,IAAI;AACjE,SAAK,iBAAiB,IAAI,qCAAmB,IAAI;AACjD,SAAK,kBAAkB,IAAI,sCAAoB,IAAI;AACnD,SAAK,aAAa,IAAI,iCAAe,IAAI;AACzC,SAAK,eAAe,IAAI,mCAAiB,IAAI;AAC7C,SAAK,0BAA0B,QAAQ,UAAU;AAAA,EACnD;AAAA;AAAA,EAGQ,0BAA0B,YAAqB;AACrD,QAAI,CAAC,YAAY;AACf;AAAA,IACF;AACA,UAAM,mBAAmB;AAAA,MACvB,MAAM;AAAA,MACN,MAAM,YAAY,SAA0B,MAA8C;AACxF,cAAM,QAAQ,QAAQ,IAAI,MAAM,GAAG;AACnC,YAAI,MAAM,SAAS,GAAG;AACpB,gBAAM,YAAY,MAAM,CAAC,EAAE,MAAM,GAAG,EAAE,IAAI,CAAC,SAAS;AAClD,gBAAI,KAAK,QAAQ,aAAa,IAAI,IAAI;AACpC,qBAAO,iBAAiB;AAAA,YAC1B,OAAO;AACL,qBAAO;AAAA,YACT;AAAA,UACF,CAAC;AACD,kBAAQ,MAAM,MAAM,CAAC,IAAI,MAAM,UAAU,KAAK,GAAG;AAAA,QACnD;AACA,eAAO,KAAK,OAAO;AAAA,MACrB;AAAA,IACF;AACA,SAAK,SAAS,UAAU,gBAAgB;AAAA,EAC1C;AAAA,EAEA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF;",
6
+ "names": []
7
+ }
@@ -1,19 +1,35 @@
1
- "use strict";
2
- /*
3
- * Copyright (c) Microsoft Corporation.
4
- * Licensed under the MIT License.
5
- *
6
- * Code generated by Microsoft (R) AutoRest Code Generator.
7
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
8
- */
9
- Object.defineProperty(exports, "__esModule", { value: true });
10
- exports.AdvisorManagementClient = exports.getContinuationToken = void 0;
11
- const tslib_1 = require("tslib");
12
- /// <reference lib="esnext.asynciterable" />
13
- var pagingHelper_js_1 = require("./pagingHelper.js");
14
- Object.defineProperty(exports, "getContinuationToken", { enumerable: true, get: function () { return pagingHelper_js_1.getContinuationToken; } });
15
- tslib_1.__exportStar(require("./models/index.js"), exports);
16
- var advisorManagementClient_js_1 = require("./advisorManagementClient.js");
17
- Object.defineProperty(exports, "AdvisorManagementClient", { enumerable: true, get: function () { return advisorManagementClient_js_1.AdvisorManagementClient; } });
18
- tslib_1.__exportStar(require("./operationsInterfaces/index.js"), exports);
19
- //# sourceMappingURL=index.js.map
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __export = (target, all) => {
6
+ for (var name in all)
7
+ __defProp(target, name, { get: all[name], enumerable: true });
8
+ };
9
+ var __copyProps = (to, from, except, desc) => {
10
+ if (from && typeof from === "object" || typeof from === "function") {
11
+ for (let key of __getOwnPropNames(from))
12
+ if (!__hasOwnProp.call(to, key) && key !== except)
13
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
+ }
15
+ return to;
16
+ };
17
+ var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+ var src_exports = {};
20
+ __export(src_exports, {
21
+ AdvisorManagementClient: () => import_advisorManagementClient.AdvisorManagementClient,
22
+ getContinuationToken: () => import_pagingHelper.getContinuationToken
23
+ });
24
+ module.exports = __toCommonJS(src_exports);
25
+ var import_pagingHelper = require("./pagingHelper.js");
26
+ __reExport(src_exports, require("./models/index.js"), module.exports);
27
+ var import_advisorManagementClient = require("./advisorManagementClient.js");
28
+ __reExport(src_exports, require("./operationsInterfaces/index.js"), module.exports);
29
+ // Annotate the CommonJS export names for ESM import in node:
30
+ 0 && (module.exports = {
31
+ AdvisorManagementClient,
32
+ getContinuationToken,
33
+ ...require("./models/index.js"),
34
+ ...require("./operationsInterfaces/index.js")
35
+ });
@@ -1 +1,7 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAEH,4CAA4C;AAC5C,qDAAyD;AAAhD,uHAAA,oBAAoB,OAAA;AAC7B,4DAAkC;AAClC,2EAAuE;AAA9D,qIAAA,uBAAuB,OAAA;AAChC,0EAAgD","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\n/// <reference lib=\"esnext.asynciterable\" />\nexport { getContinuationToken } from \"./pagingHelper.js\";\nexport * from \"./models/index.js\";\nexport { AdvisorManagementClient } from \"./advisorManagementClient.js\";\nexport * from \"./operationsInterfaces/index.js\";\n"]}
1
+ {
2
+ "version": 3,
3
+ "sources": ["/mnt/vss/_work/1/s/sdk/advisor/arm-advisor/src/index.ts"],
4
+ "sourcesContent": ["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\n/// <reference lib=\"esnext.asynciterable\" />\nexport { getContinuationToken } from \"./pagingHelper.js\";\nexport * from \"./models/index.js\";\nexport { AdvisorManagementClient } from \"./advisorManagementClient.js\";\nexport * from \"./operationsInterfaces/index.js\";\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AASA,0BAAqC;AACrC,wBAAc,8BAVd;AAWA,qCAAwC;AACxC,wBAAc,4CAZd;",
6
+ "names": []
7
+ }
@@ -1,77 +1,78 @@
1
- "use strict";
2
- /*
3
- * Copyright (c) Microsoft Corporation.
4
- * Licensed under the MIT License.
5
- *
6
- * Code generated by Microsoft (R) AutoRest Code Generator.
7
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
8
- */
9
- Object.defineProperty(exports, "__esModule", { value: true });
10
- exports.KnownRisk = exports.KnownImpact = exports.KnownConfigurationName = exports.KnownDigestConfigState = exports.KnownCategory = exports.KnownCpuThreshold = exports.KnownScenario = void 0;
11
- /** Known values of {@link Scenario} that the service accepts. */
12
- var KnownScenario;
13
- (function (KnownScenario) {
14
- /** Alerts */
15
- KnownScenario["Alerts"] = "Alerts";
16
- })(KnownScenario || (exports.KnownScenario = KnownScenario = {}));
17
- /** Known values of {@link CpuThreshold} that the service accepts. */
18
- var KnownCpuThreshold;
19
- (function (KnownCpuThreshold) {
20
- /** Five */
21
- KnownCpuThreshold["Five"] = "5";
22
- /** Ten */
23
- KnownCpuThreshold["Ten"] = "10";
24
- /** Fifteen */
25
- KnownCpuThreshold["Fifteen"] = "15";
26
- /** Twenty */
27
- KnownCpuThreshold["Twenty"] = "20";
28
- })(KnownCpuThreshold || (exports.KnownCpuThreshold = KnownCpuThreshold = {}));
29
- /** Known values of {@link Category} that the service accepts. */
30
- var KnownCategory;
31
- (function (KnownCategory) {
32
- /** HighAvailability */
33
- KnownCategory["HighAvailability"] = "HighAvailability";
34
- /** Security */
35
- KnownCategory["Security"] = "Security";
36
- /** Performance */
37
- KnownCategory["Performance"] = "Performance";
38
- /** Cost */
39
- KnownCategory["Cost"] = "Cost";
40
- /** OperationalExcellence */
41
- KnownCategory["OperationalExcellence"] = "OperationalExcellence";
42
- })(KnownCategory || (exports.KnownCategory = KnownCategory = {}));
43
- /** Known values of {@link DigestConfigState} that the service accepts. */
44
- var KnownDigestConfigState;
45
- (function (KnownDigestConfigState) {
46
- /** Active */
47
- KnownDigestConfigState["Active"] = "Active";
48
- /** Disabled */
49
- KnownDigestConfigState["Disabled"] = "Disabled";
50
- })(KnownDigestConfigState || (exports.KnownDigestConfigState = KnownDigestConfigState = {}));
51
- /** Known values of {@link ConfigurationName} that the service accepts. */
52
- var KnownConfigurationName;
53
- (function (KnownConfigurationName) {
54
- /** Default */
55
- KnownConfigurationName["Default"] = "default";
56
- })(KnownConfigurationName || (exports.KnownConfigurationName = KnownConfigurationName = {}));
57
- /** Known values of {@link Impact} that the service accepts. */
58
- var KnownImpact;
59
- (function (KnownImpact) {
60
- /** High */
61
- KnownImpact["High"] = "High";
62
- /** Medium */
63
- KnownImpact["Medium"] = "Medium";
64
- /** Low */
65
- KnownImpact["Low"] = "Low";
66
- })(KnownImpact || (exports.KnownImpact = KnownImpact = {}));
67
- /** Known values of {@link Risk} that the service accepts. */
68
- var KnownRisk;
69
- (function (KnownRisk) {
70
- /** Error */
71
- KnownRisk["Error"] = "Error";
72
- /** Warning */
73
- KnownRisk["Warning"] = "Warning";
74
- /** None */
75
- KnownRisk["None"] = "None";
76
- })(KnownRisk || (exports.KnownRisk = KnownRisk = {}));
77
- //# sourceMappingURL=index.js.map
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __export = (target, all) => {
6
+ for (var name in all)
7
+ __defProp(target, name, { get: all[name], enumerable: true });
8
+ };
9
+ var __copyProps = (to, from, except, desc) => {
10
+ if (from && typeof from === "object" || typeof from === "function") {
11
+ for (let key of __getOwnPropNames(from))
12
+ if (!__hasOwnProp.call(to, key) && key !== except)
13
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
+ }
15
+ return to;
16
+ };
17
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
+ var models_exports = {};
19
+ __export(models_exports, {
20
+ KnownCategory: () => KnownCategory,
21
+ KnownConfigurationName: () => KnownConfigurationName,
22
+ KnownCpuThreshold: () => KnownCpuThreshold,
23
+ KnownDigestConfigState: () => KnownDigestConfigState,
24
+ KnownImpact: () => KnownImpact,
25
+ KnownRisk: () => KnownRisk,
26
+ KnownScenario: () => KnownScenario
27
+ });
28
+ module.exports = __toCommonJS(models_exports);
29
+ var KnownScenario = /* @__PURE__ */ ((KnownScenario2) => {
30
+ KnownScenario2["Alerts"] = "Alerts";
31
+ return KnownScenario2;
32
+ })(KnownScenario || {});
33
+ var KnownCpuThreshold = /* @__PURE__ */ ((KnownCpuThreshold2) => {
34
+ KnownCpuThreshold2["Five"] = "5";
35
+ KnownCpuThreshold2["Ten"] = "10";
36
+ KnownCpuThreshold2["Fifteen"] = "15";
37
+ KnownCpuThreshold2["Twenty"] = "20";
38
+ return KnownCpuThreshold2;
39
+ })(KnownCpuThreshold || {});
40
+ var KnownCategory = /* @__PURE__ */ ((KnownCategory2) => {
41
+ KnownCategory2["HighAvailability"] = "HighAvailability";
42
+ KnownCategory2["Security"] = "Security";
43
+ KnownCategory2["Performance"] = "Performance";
44
+ KnownCategory2["Cost"] = "Cost";
45
+ KnownCategory2["OperationalExcellence"] = "OperationalExcellence";
46
+ return KnownCategory2;
47
+ })(KnownCategory || {});
48
+ var KnownDigestConfigState = /* @__PURE__ */ ((KnownDigestConfigState2) => {
49
+ KnownDigestConfigState2["Active"] = "Active";
50
+ KnownDigestConfigState2["Disabled"] = "Disabled";
51
+ return KnownDigestConfigState2;
52
+ })(KnownDigestConfigState || {});
53
+ var KnownConfigurationName = /* @__PURE__ */ ((KnownConfigurationName2) => {
54
+ KnownConfigurationName2["Default"] = "default";
55
+ return KnownConfigurationName2;
56
+ })(KnownConfigurationName || {});
57
+ var KnownImpact = /* @__PURE__ */ ((KnownImpact2) => {
58
+ KnownImpact2["High"] = "High";
59
+ KnownImpact2["Medium"] = "Medium";
60
+ KnownImpact2["Low"] = "Low";
61
+ return KnownImpact2;
62
+ })(KnownImpact || {});
63
+ var KnownRisk = /* @__PURE__ */ ((KnownRisk2) => {
64
+ KnownRisk2["Error"] = "Error";
65
+ KnownRisk2["Warning"] = "Warning";
66
+ KnownRisk2["None"] = "None";
67
+ return KnownRisk2;
68
+ })(KnownRisk || {});
69
+ // Annotate the CommonJS export names for ESM import in node:
70
+ 0 && (module.exports = {
71
+ KnownCategory,
72
+ KnownConfigurationName,
73
+ KnownCpuThreshold,
74
+ KnownDigestConfigState,
75
+ KnownImpact,
76
+ KnownRisk,
77
+ KnownScenario
78
+ });