@azure/arm-changes 1.1.2-alpha.20260303.1 → 1.1.2-alpha.20260304.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 (41) hide show
  1. package/dist/commonjs/changesClient.js +120 -108
  2. package/dist/commonjs/changesClient.js.map +7 -1
  3. package/dist/commonjs/index.js +28 -19
  4. package/dist/commonjs/index.js.map +7 -1
  5. package/dist/commonjs/models/index.js +15 -10
  6. package/dist/commonjs/models/index.js.map +7 -1
  7. package/dist/commonjs/models/mappers.js +290 -271
  8. package/dist/commonjs/models/mappers.js.map +7 -1
  9. package/dist/commonjs/models/parameters.js +138 -116
  10. package/dist/commonjs/models/parameters.js.map +7 -1
  11. package/dist/commonjs/operations/changes.js +259 -198
  12. package/dist/commonjs/operations/changes.js.map +7 -1
  13. package/dist/commonjs/operations/index.js +17 -12
  14. package/dist/commonjs/operations/index.js.map +7 -1
  15. package/dist/commonjs/operationsInterfaces/changes.js +15 -10
  16. package/dist/commonjs/operationsInterfaces/changes.js.map +7 -1
  17. package/dist/commonjs/operationsInterfaces/index.js +17 -12
  18. package/dist/commonjs/operationsInterfaces/index.js.map +7 -1
  19. package/dist/commonjs/pagingHelper.js +34 -30
  20. package/dist/commonjs/pagingHelper.js.map +7 -1
  21. package/dist/esm/changesClient.js +89 -101
  22. package/dist/esm/changesClient.js.map +7 -1
  23. package/dist/esm/index.js +6 -11
  24. package/dist/esm/index.js.map +7 -1
  25. package/dist/esm/models/index.js +0 -9
  26. package/dist/esm/models/index.js.map +7 -1
  27. package/dist/esm/models/mappers.js +271 -268
  28. package/dist/esm/models/mappers.js.map +7 -1
  29. package/dist/esm/models/parameters.js +119 -113
  30. package/dist/esm/models/parameters.js.map +7 -1
  31. package/dist/esm/operations/changes.js +227 -190
  32. package/dist/esm/operations/changes.js.map +7 -1
  33. package/dist/esm/operations/index.js +0 -8
  34. package/dist/esm/operations/index.js.map +7 -1
  35. package/dist/esm/operationsInterfaces/changes.js +0 -9
  36. package/dist/esm/operationsInterfaces/changes.js.map +7 -1
  37. package/dist/esm/operationsInterfaces/index.js +0 -8
  38. package/dist/esm/operationsInterfaces/index.js.map +7 -1
  39. package/dist/esm/pagingHelper.js +17 -28
  40. package/dist/esm/pagingHelper.js.map +7 -1
  41. package/package.json +4 -21
@@ -1,112 +1,124 @@
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.ChangesClient = 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 changesClient_exports = {};
29
+ __export(changesClient_exports, {
30
+ ChangesClient: () => ChangesClient
31
+ });
32
+ module.exports = __toCommonJS(changesClient_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 ChangesClient extends coreClient.ServiceClient {
16
- $host;
17
- subscriptionId;
18
- apiVersion;
19
- /**
20
- * Initializes a new instance of the ChangesClient class.
21
- * @param credentials Subscription credentials which uniquely identify client subscription.
22
- * @param subscriptionId The Azure subscription ID. This is a GUID-formatted string (e.g.
23
- * 00000000-0000-0000-0000-000000000000)
24
- * @param options The parameter options
25
- */
26
- constructor(credentials, subscriptionId, options) {
27
- if (credentials === undefined) {
28
- throw new Error("'credentials' cannot be null");
29
- }
30
- if (subscriptionId === undefined) {
31
- throw new Error("'subscriptionId' cannot be null");
32
- }
33
- // Initializing default values for options
34
- if (!options) {
35
- options = {};
36
- }
37
- const defaults = {
38
- requestContentType: "application/json; charset=utf-8",
39
- credential: credentials
40
- };
41
- const packageDetails = `azsdk-js-arm-changes/1.1.2`;
42
- const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
43
- ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
44
- : `${packageDetails}`;
45
- const optionsWithDefaults = {
46
- ...defaults,
47
- ...options,
48
- userAgentOptions: {
49
- userAgentPrefix
50
- },
51
- endpoint: options.endpoint ?? options.baseUri ?? "https://management.azure.com"
52
- };
53
- super(optionsWithDefaults);
54
- let bearerTokenAuthenticationPolicyFound = false;
55
- if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {
56
- const pipelinePolicies = options.pipeline.getOrderedPolicies();
57
- bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
58
- coreRestPipeline.bearerTokenAuthenticationPolicyName);
59
- }
60
- if (!options ||
61
- !options.pipeline ||
62
- options.pipeline.getOrderedPolicies().length == 0 ||
63
- !bearerTokenAuthenticationPolicyFound) {
64
- this.pipeline.removePolicy({
65
- name: coreRestPipeline.bearerTokenAuthenticationPolicyName
66
- });
67
- this.pipeline.addPolicy(coreRestPipeline.bearerTokenAuthenticationPolicy({
68
- credential: credentials,
69
- scopes: optionsWithDefaults.credentialScopes ??
70
- `${optionsWithDefaults.endpoint}/.default`,
71
- challengeCallbacks: {
72
- authorizeRequestOnChallenge: coreClient.authorizeRequestOnClaimChallenge
73
- }
74
- }));
75
- }
76
- // Parameter assignments
77
- this.subscriptionId = subscriptionId;
78
- // Assigning values to Constant parameters
79
- this.$host = options.$host || "https://management.azure.com";
80
- this.apiVersion = options.apiVersion || "2022-05-01";
81
- this.changes = new index_js_1.ChangesImpl(this);
82
- this.addCustomApiVersionPolicy(options.apiVersion);
37
+ $host;
38
+ subscriptionId;
39
+ apiVersion;
40
+ /**
41
+ * Initializes a new instance of the ChangesClient class.
42
+ * @param credentials Subscription credentials which uniquely identify client subscription.
43
+ * @param subscriptionId The Azure subscription ID. This is a GUID-formatted string (e.g.
44
+ * 00000000-0000-0000-0000-000000000000)
45
+ * @param options The parameter options
46
+ */
47
+ constructor(credentials, subscriptionId, options) {
48
+ if (credentials === void 0) {
49
+ throw new Error("'credentials' cannot be null");
83
50
  }
84
- /** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */
85
- addCustomApiVersionPolicy(apiVersion) {
86
- if (!apiVersion) {
87
- return;
88
- }
89
- const apiVersionPolicy = {
90
- name: "CustomApiVersionPolicy",
91
- async sendRequest(request, next) {
92
- const param = request.url.split("?");
93
- if (param.length > 1) {
94
- const newParams = param[1].split("&").map((item) => {
95
- if (item.indexOf("api-version") > -1) {
96
- return "api-version=" + apiVersion;
97
- }
98
- else {
99
- return item;
100
- }
101
- });
102
- request.url = param[0] + "?" + newParams.join("&");
103
- }
104
- return next(request);
105
- }
106
- };
107
- this.pipeline.addPolicy(apiVersionPolicy);
51
+ if (subscriptionId === void 0) {
52
+ throw new Error("'subscriptionId' cannot be null");
108
53
  }
109
- changes;
54
+ if (!options) {
55
+ options = {};
56
+ }
57
+ const defaults = {
58
+ requestContentType: "application/json; charset=utf-8",
59
+ credential: credentials
60
+ };
61
+ const packageDetails = `azsdk-js-arm-changes/1.1.2`;
62
+ const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}` : `${packageDetails}`;
63
+ const optionsWithDefaults = {
64
+ ...defaults,
65
+ ...options,
66
+ userAgentOptions: {
67
+ userAgentPrefix
68
+ },
69
+ endpoint: options.endpoint ?? options.baseUri ?? "https://management.azure.com"
70
+ };
71
+ super(optionsWithDefaults);
72
+ let bearerTokenAuthenticationPolicyFound = false;
73
+ if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {
74
+ const pipelinePolicies = options.pipeline.getOrderedPolicies();
75
+ bearerTokenAuthenticationPolicyFound = pipelinePolicies.some(
76
+ (pipelinePolicy) => pipelinePolicy.name === coreRestPipeline.bearerTokenAuthenticationPolicyName
77
+ );
78
+ }
79
+ if (!options || !options.pipeline || options.pipeline.getOrderedPolicies().length == 0 || !bearerTokenAuthenticationPolicyFound) {
80
+ this.pipeline.removePolicy({
81
+ name: coreRestPipeline.bearerTokenAuthenticationPolicyName
82
+ });
83
+ this.pipeline.addPolicy(
84
+ coreRestPipeline.bearerTokenAuthenticationPolicy({
85
+ credential: credentials,
86
+ scopes: optionsWithDefaults.credentialScopes ?? `${optionsWithDefaults.endpoint}/.default`,
87
+ challengeCallbacks: {
88
+ authorizeRequestOnChallenge: coreClient.authorizeRequestOnClaimChallenge
89
+ }
90
+ })
91
+ );
92
+ }
93
+ this.subscriptionId = subscriptionId;
94
+ this.$host = options.$host || "https://management.azure.com";
95
+ this.apiVersion = options.apiVersion || "2022-05-01";
96
+ this.changes = new import_operations.ChangesImpl(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
+ changes;
110
124
  }
111
- exports.ChangesClient = ChangesClient;
112
- //# sourceMappingURL=changesClient.js.map
@@ -1 +1,7 @@
1
- {"version":3,"file":"changesClient.js","sourceRoot":"","sources":["../../src/changesClient.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAEH,uEAAiD;AACjD,oFAA8D;AAO9D,oDAAoD;AAIpD,MAAa,aAAc,SAAQ,UAAU,CAAC,aAAa;IACzD,KAAK,CAAS;IACd,cAAc,CAAS;IACvB,UAAU,CAAS;IAEnB;;;;;;OAMG;IACH,YACE,WAAqC,EACrC,cAAsB,EACtB,OAAqC;QAErC,IAAI,WAAW,KAAK,SAAS,EAAE,CAAC;YAC9B,MAAM,IAAI,KAAK,CAAC,8BAA8B,CAAC,CAAC;QAClD,CAAC;QACD,IAAI,cAAc,KAAK,SAAS,EAAE,CAAC;YACjC,MAAM,IAAI,KAAK,CAAC,iCAAiC,CAAC,CAAC;QACrD,CAAC;QAED,0CAA0C;QAC1C,IAAI,CAAC,OAAO,EAAE,CAAC;YACb,OAAO,GAAG,EAA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IAAI,CAAC;wBACd,CAAC;oBACH,CAAC,CAAC,CAAC;oBACH,OAAO,CAAC,GAAG,GAAG,KAAK,CAAC,CAAC,CAAC,GAAG,GAAG,GAAG,SAAS,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;gBACrD,CAAC;gBACD,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC;YACvB,CAAC;SACF,CAAC;QACF,IAAI,CAAC,QAAQ,CAAC,SAAS,CAAC,gBAAgB,CAAC,CAAC;IAC5C,CAAC;IAED,OAAO,CAAU;CAClB;AAxHD,sCAwHC","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 {\n PipelineRequest,\n PipelineResponse,\n SendRequest\n} from \"@azure/core-rest-pipeline\";\nimport * as coreAuth from \"@azure/core-auth\";\nimport { ChangesImpl } from \"./operations/index.js\";\nimport { Changes } from \"./operationsInterfaces/index.js\";\nimport { ChangesClientOptionalParams } from \"./models/index.js\";\n\nexport class ChangesClient extends coreClient.ServiceClient {\n $host: string;\n subscriptionId: string;\n apiVersion: string;\n\n /**\n * Initializes a new instance of the ChangesClient class.\n * @param credentials Subscription credentials which uniquely identify client subscription.\n * @param subscriptionId The Azure subscription ID. This is a GUID-formatted string (e.g.\n * 00000000-0000-0000-0000-000000000000)\n * @param options The parameter options\n */\n constructor(\n credentials: coreAuth.TokenCredential,\n subscriptionId: string,\n options?: ChangesClientOptionalParams\n ) {\n if (credentials === undefined) {\n throw new Error(\"'credentials' cannot be null\");\n }\n if (subscriptionId === undefined) {\n throw new Error(\"'subscriptionId' cannot be null\");\n }\n\n // Initializing default values for options\n if (!options) {\n options = {};\n }\n const defaults: ChangesClientOptionalParams = {\n requestContentType: \"application/json; charset=utf-8\",\n credential: credentials\n };\n\n const packageDetails = `azsdk-js-arm-changes/1.1.2`;\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:\n 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[] = options.pipeline.getOrderedPolicies();\n bearerTokenAuthenticationPolicyFound = pipelinePolicies.some(\n (pipelinePolicy) =>\n pipelinePolicy.name ===\n 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 ??\n `${optionsWithDefaults.endpoint}/.default`,\n challengeCallbacks: {\n authorizeRequestOnChallenge:\n 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 || \"2022-05-01\";\n this.changes = new ChangesImpl(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(\n request: PipelineRequest,\n next: SendRequest\n ): 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 changes: Changes;\n}\n"]}
1
+ {
2
+ "version": 3,
3
+ "sources": ["/mnt/vss/_work/1/s/sdk/changes/arm-changes/src/changesClient.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 {\n PipelineRequest,\n PipelineResponse,\n SendRequest\n} from \"@azure/core-rest-pipeline\";\nimport * as coreAuth from \"@azure/core-auth\";\nimport { ChangesImpl } from \"./operations/index.js\";\nimport { Changes } from \"./operationsInterfaces/index.js\";\nimport { ChangesClientOptionalParams } from \"./models/index.js\";\n\nexport class ChangesClient extends coreClient.ServiceClient {\n $host: string;\n subscriptionId: string;\n apiVersion: string;\n\n /**\n * Initializes a new instance of the ChangesClient class.\n * @param credentials Subscription credentials which uniquely identify client subscription.\n * @param subscriptionId The Azure subscription ID. This is a GUID-formatted string (e.g.\n * 00000000-0000-0000-0000-000000000000)\n * @param options The parameter options\n */\n constructor(\n credentials: coreAuth.TokenCredential,\n subscriptionId: string,\n options?: ChangesClientOptionalParams\n ) {\n if (credentials === undefined) {\n throw new Error(\"'credentials' cannot be null\");\n }\n if (subscriptionId === undefined) {\n throw new Error(\"'subscriptionId' cannot be null\");\n }\n\n // Initializing default values for options\n if (!options) {\n options = {};\n }\n const defaults: ChangesClientOptionalParams = {\n requestContentType: \"application/json; charset=utf-8\",\n credential: credentials\n };\n\n const packageDetails = `azsdk-js-arm-changes/1.1.2`;\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:\n 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[] = options.pipeline.getOrderedPolicies();\n bearerTokenAuthenticationPolicyFound = pipelinePolicies.some(\n (pipelinePolicy) =>\n pipelinePolicy.name ===\n 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 ??\n `${optionsWithDefaults.endpoint}/.default`,\n challengeCallbacks: {\n authorizeRequestOnChallenge:\n 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 || \"2022-05-01\";\n this.changes = new ChangesImpl(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(\n request: PipelineRequest,\n next: SendRequest\n ): 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 changes: Changes;\n}\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAQA,iBAA4B;AAC5B,uBAAkC;AAOlC,wBAA4B;AAIrB,MAAM,sBAAsB,WAAW,cAAc;AAAA,EAC1D;AAAA,EACA;AAAA,EACA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EASA,YACE,aACA,gBACA,SACA;AACA,QAAI,gBAAgB,QAAW;AAC7B,YAAM,IAAI,MAAM,8BAA8B;AAAA,IAChD;AACA,QAAI,mBAAmB,QAAW;AAChC,YAAM,IAAI,MAAM,iCAAiC;AAAA,IACnD;AAGA,QAAI,CAAC,SAAS;AACZ,gBAAU,CAAC;AAAA,IACb;AACA,UAAM,WAAwC;AAAA,MAC5C,oBAAoB;AAAA,MACpB,YAAY;AAAA,IACd;AAEA,UAAM,iBAAiB;AACvB,UAAM,kBACJ,QAAQ,oBAAoB,QAAQ,iBAAiB,kBACjD,GAAG,QAAQ,iBAAiB,eAAe,IAAI,cAAc,KAC7D,GAAG,cAAc;AAEvB,UAAM,sBAAsB;AAAA,MAC1B,GAAG;AAAA,MACH,GAAG;AAAA,MACH,kBAAkB;AAAA,QAChB;AAAA,MACF;AAAA,MACA,UACE,QAAQ,YAAY,QAAQ,WAAW;AAAA,IAC3C;AACA,UAAM,mBAAmB;AAEzB,QAAI,uCAAgD;AACpD,QAAI,SAAS,YAAY,QAAQ,SAAS,mBAAmB,EAAE,SAAS,GAAG;AACzE,YAAM,mBAAsD,QAAQ,SAAS,mBAAmB;AAChG,6CAAuC,iBAAiB;AAAA,QACt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28 @@
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.ChangesClient = 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 changesClient_js_1 = require("./changesClient.js");
17
- Object.defineProperty(exports, "ChangesClient", { enumerable: true, get: function () { return changesClient_js_1.ChangesClient; } });
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
+ ChangesClient: () => import_changesClient.ChangesClient,
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_changesClient = require("./changesClient.js");
28
+ __reExport(src_exports, require("./operationsInterfaces/index.js"), module.exports);
@@ -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,uDAAmD;AAA1C,iHAAA,aAAa,OAAA;AACtB,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 { ChangesClient } from \"./changesClient.js\";\nexport * from \"./operationsInterfaces/index.js\";\n"]}
1
+ {
2
+ "version": 3,
3
+ "sources": ["/mnt/vss/_work/1/s/sdk/changes/arm-changes/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 { ChangesClient } from \"./changesClient.js\";\nexport * from \"./operationsInterfaces/index.js\";\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AASA,0BAAqC;AACrC,wBAAc,8BAVd;AAWA,2BAA8B;AAC9B,wBAAc,4CAZd;",
6
+ "names": []
7
+ }
@@ -1,10 +1,15 @@
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
- //# 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 __copyProps = (to, from, except, desc) => {
6
+ if (from && typeof from === "object" || typeof from === "function") {
7
+ for (let key of __getOwnPropNames(from))
8
+ if (!__hasOwnProp.call(to, key) && key !== except)
9
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
10
+ }
11
+ return to;
12
+ };
13
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
14
+ var models_exports = {};
15
+ module.exports = __toCommonJS(models_exports);
@@ -1 +1,7 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/models/index.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG","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\";\n\n/** The list of resources */\nexport interface ChangeResourceListResult {\n /** The link used to get the next page of Change Resources */\n nextLink?: string;\n /** The list of resources */\n value?: ChangeResourceResult[];\n}\n\n/** The properties of a change */\nexport interface ChangeProperties {\n /**\n * The fully qualified ID of the target resource that was changed\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly targetResourceId?: string;\n /**\n * The namespace and type of the resource\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly targetResourceType?: string;\n /**\n * The type of change that was captured in the resource\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly changeType?: ChangeType;\n /** Details about the change resource */\n changeAttributes?: ChangeAttributes;\n /** A dictionary with changed property name as a key and the change details as the value */\n changes?: { [propertyName: string]: ChangeBase };\n}\n\n/** Details about the change resource */\nexport interface ChangeAttributes {\n /**\n * The ARM correlation ID of the change resource\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly correlationId?: string;\n /**\n * The time the change(s) on the target resource ocurred\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly timestamp?: string;\n /**\n * The number of changes this resource captures\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly changesCount?: number;\n /**\n * The GUID of the previous snapshot\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly previousResourceSnapshotId?: string;\n /**\n * The GUID of the new snapshot\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly newResourceSnapshotId?: string;\n}\n\n/** An individual change on the target resource */\nexport interface ChangeBase {\n /**\n * The type of change that occurred\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly propertyChangeType?: PropertyChangeType;\n /**\n * The entity that made the change\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly changeCategory?: ChangeCategory;\n /**\n * The target resource property value before the change\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly previousValue?: string;\n /**\n * The target resource property value after the change\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly newValue?: string;\n}\n\n/** Common fields that are returned in the response for all Azure Resource Manager resources */\nexport interface Resource {\n /**\n * Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly id?: string;\n /**\n * The name of the resource\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly name?: string;\n /**\n * The type of the resource. E.g. \"Microsoft.Compute/virtualMachines\" or \"Microsoft.Storage/storageAccounts\"\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly type?: string;\n}\n\n/** Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows the OData error response format.). */\nexport interface ErrorResponse {\n /** The error object. */\n error?: ErrorDetail;\n}\n\n/** The error detail. */\nexport interface ErrorDetail {\n /**\n * The error code.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly code?: string;\n /**\n * The error message.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly message?: string;\n /**\n * The error target.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly target?: string;\n /**\n * The error details.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly details?: ErrorDetail[];\n /**\n * The error additional info.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly additionalInfo?: ErrorAdditionalInfo[];\n}\n\n/** The resource management error additional info. */\nexport interface ErrorAdditionalInfo {\n /**\n * The additional info type.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly type?: string;\n /**\n * The additional info.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly info?: Record<string, unknown>;\n}\n\n/** Change Resource */\nexport interface ChangeResourceResult extends Resource {\n /** The properties of a change */\n properties?: ChangeProperties;\n}\n\n/** Defines values for ChangeType. */\nexport type ChangeType = \"Update\" | \"Delete\" | \"Create\";\n/** Defines values for PropertyChangeType. */\nexport type PropertyChangeType = \"Update\" | \"Insert\" | \"Remove\";\n/** Defines values for ChangeCategory. */\nexport type ChangeCategory = \"User\" | \"System\";\n\n/** Optional parameters. */\nexport interface ChangesListOptionalParams extends coreClient.OperationOptions {\n /** (Optional) Set the maximum number of results per response. */\n top?: number;\n /** (Optional) The page-continuation token */\n skipToken?: string;\n}\n\n/** Contains response data for the list operation. */\nexport type ChangesListResponse = ChangeResourceListResult;\n\n/** Optional parameters. */\nexport interface ChangesGetOptionalParams extends coreClient.OperationOptions {}\n\n/** Contains response data for the get operation. */\nexport type ChangesGetResponse = ChangeResourceResult;\n\n/** Optional parameters. */\nexport interface ChangesListNextOptionalParams\n extends coreClient.OperationOptions {\n /** (Optional) Set the maximum number of results per response. */\n top?: number;\n /** (Optional) The page-continuation token */\n skipToken?: string;\n}\n\n/** Contains response data for the listNext operation. */\nexport type ChangesListNextResponse = ChangeResourceListResult;\n\n/** Optional parameters. */\nexport interface ChangesClientOptionalParams\n extends coreClient.ServiceClientOptions {\n /** server parameter */\n $host?: string;\n /** Api Version */\n apiVersion?: string;\n /** Overrides client endpoint. */\n endpoint?: string;\n}\n"]}
1
+ {
2
+ "version": 3,
3
+ "sources": ["/mnt/vss/_work/1/s/sdk/changes/arm-changes/src/models/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\nimport * as coreClient from \"@azure/core-client\";\n\n/** The list of resources */\nexport interface ChangeResourceListResult {\n /** The link used to get the next page of Change Resources */\n nextLink?: string;\n /** The list of resources */\n value?: ChangeResourceResult[];\n}\n\n/** The properties of a change */\nexport interface ChangeProperties {\n /**\n * The fully qualified ID of the target resource that was changed\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly targetResourceId?: string;\n /**\n * The namespace and type of the resource\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly targetResourceType?: string;\n /**\n * The type of change that was captured in the resource\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly changeType?: ChangeType;\n /** Details about the change resource */\n changeAttributes?: ChangeAttributes;\n /** A dictionary with changed property name as a key and the change details as the value */\n changes?: { [propertyName: string]: ChangeBase };\n}\n\n/** Details about the change resource */\nexport interface ChangeAttributes {\n /**\n * The ARM correlation ID of the change resource\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly correlationId?: string;\n /**\n * The time the change(s) on the target resource ocurred\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly timestamp?: string;\n /**\n * The number of changes this resource captures\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly changesCount?: number;\n /**\n * The GUID of the previous snapshot\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly previousResourceSnapshotId?: string;\n /**\n * The GUID of the new snapshot\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly newResourceSnapshotId?: string;\n}\n\n/** An individual change on the target resource */\nexport interface ChangeBase {\n /**\n * The type of change that occurred\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly propertyChangeType?: PropertyChangeType;\n /**\n * The entity that made the change\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly changeCategory?: ChangeCategory;\n /**\n * The target resource property value before the change\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly previousValue?: string;\n /**\n * The target resource property value after the change\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly newValue?: string;\n}\n\n/** Common fields that are returned in the response for all Azure Resource Manager resources */\nexport interface Resource {\n /**\n * Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly id?: string;\n /**\n * The name of the resource\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly name?: string;\n /**\n * The type of the resource. E.g. \"Microsoft.Compute/virtualMachines\" or \"Microsoft.Storage/storageAccounts\"\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly type?: string;\n}\n\n/** Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows the OData error response format.). */\nexport interface ErrorResponse {\n /** The error object. */\n error?: ErrorDetail;\n}\n\n/** The error detail. */\nexport interface ErrorDetail {\n /**\n * The error code.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly code?: string;\n /**\n * The error message.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly message?: string;\n /**\n * The error target.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly target?: string;\n /**\n * The error details.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly details?: ErrorDetail[];\n /**\n * The error additional info.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly additionalInfo?: ErrorAdditionalInfo[];\n}\n\n/** The resource management error additional info. */\nexport interface ErrorAdditionalInfo {\n /**\n * The additional info type.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly type?: string;\n /**\n * The additional info.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly info?: Record<string, unknown>;\n}\n\n/** Change Resource */\nexport interface ChangeResourceResult extends Resource {\n /** The properties of a change */\n properties?: ChangeProperties;\n}\n\n/** Defines values for ChangeType. */\nexport type ChangeType = \"Update\" | \"Delete\" | \"Create\";\n/** Defines values for PropertyChangeType. */\nexport type PropertyChangeType = \"Update\" | \"Insert\" | \"Remove\";\n/** Defines values for ChangeCategory. */\nexport type ChangeCategory = \"User\" | \"System\";\n\n/** Optional parameters. */\nexport interface ChangesListOptionalParams extends coreClient.OperationOptions {\n /** (Optional) Set the maximum number of results per response. */\n top?: number;\n /** (Optional) The page-continuation token */\n skipToken?: string;\n}\n\n/** Contains response data for the list operation. */\nexport type ChangesListResponse = ChangeResourceListResult;\n\n/** Optional parameters. */\nexport interface ChangesGetOptionalParams extends coreClient.OperationOptions {}\n\n/** Contains response data for the get operation. */\nexport type ChangesGetResponse = ChangeResourceResult;\n\n/** Optional parameters. */\nexport interface ChangesListNextOptionalParams\n extends coreClient.OperationOptions {\n /** (Optional) Set the maximum number of results per response. */\n top?: number;\n /** (Optional) The page-continuation token */\n skipToken?: string;\n}\n\n/** Contains response data for the listNext operation. */\nexport type ChangesListNextResponse = ChangeResourceListResult;\n\n/** Optional parameters. */\nexport interface ChangesClientOptionalParams\n extends coreClient.ServiceClientOptions {\n /** server parameter */\n $host?: string;\n /** Api Version */\n apiVersion?: string;\n /** Overrides client endpoint. */\n endpoint?: string;\n}\n"],
5
+ "mappings": ";;;;;;;;;;;;;AAAA;AAAA;",
6
+ "names": []
7
+ }