@azure/arm-changeanalysis 2.1.1-alpha.20250102.1 → 2.1.1-alpha.20250103.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/{dist-esm/src → dist/browser}/azureChangeAnalysisManagementClient.d.ts +2 -2
- package/dist/browser/azureChangeAnalysisManagementClient.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/azureChangeAnalysisManagementClient.js +15 -18
- package/dist/browser/azureChangeAnalysisManagementClient.js.map +1 -0
- package/dist/browser/index.d.ts +5 -0
- package/{dist-esm/src → dist/browser}/index.d.ts.map +1 -1
- package/{dist-esm/src → dist/browser}/index.js +4 -4
- package/dist/browser/index.js.map +1 -0
- package/dist/browser/models/index.js.map +1 -0
- package/dist/browser/models/mappers.js.map +1 -0
- package/dist/browser/models/parameters.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/changes.d.ts +3 -3
- package/dist/browser/operations/changes.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/changes.js +3 -3
- package/dist/browser/operations/changes.js.map +1 -0
- package/dist/browser/operations/index.d.ts +4 -0
- package/{dist-esm/src → dist/browser}/operations/index.d.ts.map +1 -1
- package/{dist-esm/src/operationsInterfaces → dist/browser/operations}/index.js +3 -3
- package/dist/browser/operations/index.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/operations.d.ts +3 -3
- package/dist/browser/operations/operations.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/operations.js +3 -3
- package/dist/browser/operations/operations.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/resourceChanges.d.ts +3 -3
- package/dist/browser/operations/resourceChanges.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/resourceChanges.js +3 -3
- package/dist/browser/operations/resourceChanges.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operationsInterfaces/changes.d.ts +1 -1
- package/dist/browser/operationsInterfaces/changes.d.ts.map +1 -0
- package/dist/browser/operationsInterfaces/changes.js.map +1 -0
- package/dist/browser/operationsInterfaces/index.d.ts +4 -0
- package/{dist-esm/src → dist/browser}/operationsInterfaces/index.d.ts.map +1 -1
- package/{dist-esm/src/operations → dist/browser/operationsInterfaces}/index.js +3 -3
- package/dist/browser/operationsInterfaces/index.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operationsInterfaces/operations.d.ts +1 -1
- package/{dist-esm/src → dist/browser}/operationsInterfaces/operations.d.ts.map +1 -1
- package/dist/browser/operationsInterfaces/operations.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operationsInterfaces/resourceChanges.d.ts +1 -1
- package/dist/browser/operationsInterfaces/resourceChanges.d.ts.map +1 -0
- package/dist/browser/operationsInterfaces/resourceChanges.js.map +1 -0
- package/dist/browser/package.json +3 -0
- package/dist/browser/pagingHelper.js.map +1 -0
- package/dist/commonjs/azureChangeAnalysisManagementClient.d.ts +22 -0
- package/dist/commonjs/azureChangeAnalysisManagementClient.d.ts.map +1 -0
- package/dist/commonjs/azureChangeAnalysisManagementClient.js +104 -0
- package/dist/commonjs/azureChangeAnalysisManagementClient.js.map +1 -0
- package/dist/commonjs/index.d.ts +5 -0
- package/dist/commonjs/index.d.ts.map +1 -0
- package/dist/commonjs/index.js +19 -0
- package/dist/commonjs/index.js.map +1 -0
- package/{types/arm-changeanalysis.d.ts → dist/commonjs/models/index.d.ts} +247 -355
- package/dist/commonjs/models/index.d.ts.map +1 -0
- package/dist/commonjs/models/index.js +31 -0
- package/dist/commonjs/models/index.js.map +1 -0
- package/dist/commonjs/models/mappers.d.ts +14 -0
- package/dist/commonjs/models/mappers.d.ts.map +1 -0
- package/dist/commonjs/models/mappers.js +370 -0
- package/dist/commonjs/models/mappers.js.map +1 -0
- package/dist/commonjs/models/parameters.d.ts +12 -0
- package/dist/commonjs/models/parameters.d.ts.map +1 -0
- package/dist/commonjs/models/parameters.js +121 -0
- package/dist/commonjs/models/parameters.js.map +1 -0
- package/dist/commonjs/operations/changes.d.ts +71 -0
- package/dist/commonjs/operations/changes.d.ts.map +1 -0
- package/dist/commonjs/operations/changes.js +300 -0
- package/dist/commonjs/operations/changes.js.map +1 -0
- package/dist/commonjs/operations/index.d.ts +4 -0
- package/dist/commonjs/operations/index.d.ts.map +1 -0
- package/dist/commonjs/operations/index.js +14 -0
- package/dist/commonjs/operations/index.js.map +1 -0
- package/dist/commonjs/operations/operations.d.ts +34 -0
- package/dist/commonjs/operations/operations.d.ts.map +1 -0
- package/dist/commonjs/operations/operations.js +140 -0
- package/dist/commonjs/operations/operations.js.map +1 -0
- package/dist/commonjs/operations/resourceChanges.d.ts +43 -0
- package/dist/commonjs/operations/resourceChanges.d.ts.map +1 -0
- package/dist/commonjs/operations/resourceChanges.js +159 -0
- package/dist/commonjs/operations/resourceChanges.js.map +1 -0
- package/dist/commonjs/operationsInterfaces/changes.d.ts +23 -0
- package/dist/commonjs/operationsInterfaces/changes.d.ts.map +1 -0
- package/dist/commonjs/operationsInterfaces/changes.js +10 -0
- package/dist/commonjs/operationsInterfaces/changes.js.map +1 -0
- package/dist/commonjs/operationsInterfaces/index.d.ts +4 -0
- package/dist/commonjs/operationsInterfaces/index.d.ts.map +1 -0
- package/dist/commonjs/operationsInterfaces/index.js +14 -0
- package/dist/commonjs/operationsInterfaces/index.js.map +1 -0
- package/dist/commonjs/operationsInterfaces/operations.d.ts +12 -0
- package/dist/commonjs/operationsInterfaces/operations.d.ts.map +1 -0
- package/dist/commonjs/operationsInterfaces/operations.js +10 -0
- package/dist/commonjs/operationsInterfaces/operations.js.map +1 -0
- package/dist/commonjs/operationsInterfaces/resourceChanges.d.ts +15 -0
- package/dist/commonjs/operationsInterfaces/resourceChanges.d.ts.map +1 -0
- package/dist/commonjs/operationsInterfaces/resourceChanges.js +10 -0
- package/dist/commonjs/operationsInterfaces/resourceChanges.js.map +1 -0
- package/dist/commonjs/package.json +3 -0
- package/dist/commonjs/pagingHelper.d.ts +13 -0
- package/dist/commonjs/pagingHelper.d.ts.map +1 -0
- package/dist/commonjs/pagingHelper.js +36 -0
- package/dist/commonjs/pagingHelper.js.map +1 -0
- package/dist/esm/azureChangeAnalysisManagementClient.d.ts +22 -0
- package/dist/esm/azureChangeAnalysisManagementClient.d.ts.map +1 -0
- package/dist/esm/azureChangeAnalysisManagementClient.js +99 -0
- package/dist/esm/azureChangeAnalysisManagementClient.js.map +1 -0
- package/dist/esm/index.d.ts +5 -0
- package/dist/esm/index.d.ts.map +1 -0
- package/{src/index.ts → dist/esm/index.js} +5 -5
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/models/index.d.ts +247 -0
- package/dist/esm/models/index.d.ts.map +1 -0
- package/dist/esm/models/index.js +28 -0
- package/dist/esm/models/index.js.map +1 -0
- package/dist/esm/models/mappers.d.ts +14 -0
- package/dist/esm/models/mappers.d.ts.map +1 -0
- package/dist/esm/models/mappers.js +367 -0
- package/dist/esm/models/mappers.js.map +1 -0
- package/dist/esm/models/parameters.d.ts +12 -0
- package/dist/esm/models/parameters.d.ts.map +1 -0
- package/dist/esm/models/parameters.js +118 -0
- package/dist/esm/models/parameters.js.map +1 -0
- package/dist/esm/operations/changes.d.ts +71 -0
- package/dist/esm/operations/changes.d.ts.map +1 -0
- package/dist/esm/operations/changes.js +296 -0
- package/dist/esm/operations/changes.js.map +1 -0
- package/dist/esm/operations/index.d.ts +4 -0
- package/dist/esm/operations/index.d.ts.map +1 -0
- package/dist/esm/operations/index.js +11 -0
- package/dist/esm/operations/index.js.map +1 -0
- package/dist/esm/operations/operations.d.ts +34 -0
- package/dist/esm/operations/operations.d.ts.map +1 -0
- package/dist/esm/operations/operations.js +136 -0
- package/dist/esm/operations/operations.js.map +1 -0
- package/dist/esm/operations/resourceChanges.d.ts +43 -0
- package/dist/esm/operations/resourceChanges.d.ts.map +1 -0
- package/dist/esm/operations/resourceChanges.js +155 -0
- package/dist/esm/operations/resourceChanges.js.map +1 -0
- package/dist/esm/operationsInterfaces/changes.d.ts +23 -0
- package/dist/esm/operationsInterfaces/changes.d.ts.map +1 -0
- package/{src/operations/index.ts → dist/esm/operationsInterfaces/changes.js} +2 -4
- package/dist/esm/operationsInterfaces/changes.js.map +1 -0
- package/dist/esm/operationsInterfaces/index.d.ts +4 -0
- package/dist/esm/operationsInterfaces/index.d.ts.map +1 -0
- package/dist/esm/operationsInterfaces/index.js +11 -0
- package/dist/esm/operationsInterfaces/index.js.map +1 -0
- package/dist/esm/operationsInterfaces/operations.d.ts +12 -0
- package/dist/esm/operationsInterfaces/operations.d.ts.map +1 -0
- package/dist/esm/operationsInterfaces/operations.js +9 -0
- package/dist/esm/operationsInterfaces/operations.js.map +1 -0
- package/dist/esm/operationsInterfaces/resourceChanges.d.ts +15 -0
- package/dist/esm/operationsInterfaces/resourceChanges.d.ts.map +1 -0
- package/dist/esm/operationsInterfaces/resourceChanges.js +9 -0
- package/dist/esm/operationsInterfaces/resourceChanges.js.map +1 -0
- package/dist/esm/package.json +3 -0
- package/dist/esm/pagingHelper.d.ts +13 -0
- package/dist/esm/pagingHelper.d.ts.map +1 -0
- package/dist/esm/pagingHelper.js +32 -0
- package/dist/esm/pagingHelper.js.map +1 -0
- package/dist/react-native/azureChangeAnalysisManagementClient.d.ts +22 -0
- package/dist/react-native/azureChangeAnalysisManagementClient.d.ts.map +1 -0
- package/dist/react-native/azureChangeAnalysisManagementClient.js +99 -0
- package/dist/react-native/azureChangeAnalysisManagementClient.js.map +1 -0
- package/dist/react-native/index.d.ts +5 -0
- package/dist/react-native/index.d.ts.map +1 -0
- package/dist/react-native/index.js +13 -0
- package/dist/react-native/index.js.map +1 -0
- package/dist/react-native/models/index.d.ts +247 -0
- package/dist/react-native/models/index.d.ts.map +1 -0
- package/dist/react-native/models/index.js +28 -0
- package/dist/react-native/models/index.js.map +1 -0
- package/dist/react-native/models/mappers.d.ts +14 -0
- package/dist/react-native/models/mappers.d.ts.map +1 -0
- package/dist/react-native/models/mappers.js +367 -0
- package/dist/react-native/models/mappers.js.map +1 -0
- package/dist/react-native/models/parameters.d.ts +12 -0
- package/dist/react-native/models/parameters.d.ts.map +1 -0
- package/dist/react-native/models/parameters.js +118 -0
- package/dist/react-native/models/parameters.js.map +1 -0
- package/dist/react-native/operations/changes.d.ts +71 -0
- package/dist/react-native/operations/changes.d.ts.map +1 -0
- package/dist/react-native/operations/changes.js +296 -0
- package/dist/react-native/operations/changes.js.map +1 -0
- package/dist/react-native/operations/index.d.ts +4 -0
- package/dist/react-native/operations/index.d.ts.map +1 -0
- package/dist/react-native/operations/index.js +11 -0
- package/dist/react-native/operations/index.js.map +1 -0
- package/dist/react-native/operations/operations.d.ts +34 -0
- package/dist/react-native/operations/operations.d.ts.map +1 -0
- package/dist/react-native/operations/operations.js +136 -0
- package/dist/react-native/operations/operations.js.map +1 -0
- package/dist/react-native/operations/resourceChanges.d.ts +43 -0
- package/dist/react-native/operations/resourceChanges.d.ts.map +1 -0
- package/dist/react-native/operations/resourceChanges.js +155 -0
- package/dist/react-native/operations/resourceChanges.js.map +1 -0
- package/dist/react-native/operationsInterfaces/changes.d.ts +23 -0
- package/dist/react-native/operationsInterfaces/changes.d.ts.map +1 -0
- package/dist/react-native/operationsInterfaces/changes.js +9 -0
- package/dist/react-native/operationsInterfaces/changes.js.map +1 -0
- package/dist/react-native/operationsInterfaces/index.d.ts +4 -0
- package/dist/react-native/operationsInterfaces/index.d.ts.map +1 -0
- package/dist/react-native/operationsInterfaces/index.js +11 -0
- package/dist/react-native/operationsInterfaces/index.js.map +1 -0
- package/dist/react-native/operationsInterfaces/operations.d.ts +12 -0
- package/dist/react-native/operationsInterfaces/operations.d.ts.map +1 -0
- package/dist/react-native/operationsInterfaces/operations.js +9 -0
- package/dist/react-native/operationsInterfaces/operations.js.map +1 -0
- package/dist/react-native/operationsInterfaces/resourceChanges.d.ts +15 -0
- package/dist/react-native/operationsInterfaces/resourceChanges.d.ts.map +1 -0
- package/dist/react-native/operationsInterfaces/resourceChanges.js +9 -0
- package/dist/react-native/operationsInterfaces/resourceChanges.js.map +1 -0
- package/dist/react-native/package.json +3 -0
- package/dist/react-native/pagingHelper.d.ts +13 -0
- package/dist/react-native/pagingHelper.d.ts.map +1 -0
- package/dist/react-native/pagingHelper.js +32 -0
- package/dist/react-native/pagingHelper.js.map +1 -0
- package/package.json +58 -28
- package/dist/index.js +0 -1262
- package/dist/index.js.map +0 -1
- package/dist/index.min.js +0 -1
- package/dist/index.min.js.map +0 -1
- package/dist-esm/samples-dev/changesListChangesByResourceGroupSample.d.ts +0 -2
- package/dist-esm/samples-dev/changesListChangesByResourceGroupSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/changesListChangesByResourceGroupSample.js +0 -48
- package/dist-esm/samples-dev/changesListChangesByResourceGroupSample.js.map +0 -1
- package/dist-esm/samples-dev/changesListChangesBySubscriptionSample.d.ts +0 -2
- package/dist-esm/samples-dev/changesListChangesBySubscriptionSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/changesListChangesBySubscriptionSample.js +0 -47
- package/dist-esm/samples-dev/changesListChangesBySubscriptionSample.js.map +0 -1
- package/dist-esm/samples-dev/operationsListSample.d.ts +0 -2
- package/dist-esm/samples-dev/operationsListSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/operationsListSample.js +0 -45
- package/dist-esm/samples-dev/operationsListSample.js.map +0 -1
- package/dist-esm/samples-dev/resourceChangesListSample.d.ts +0 -2
- package/dist-esm/samples-dev/resourceChangesListSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/resourceChangesListSample.js +0 -48
- package/dist-esm/samples-dev/resourceChangesListSample.js.map +0 -1
- package/dist-esm/src/azureChangeAnalysisManagementClient.d.ts.map +0 -1
- package/dist-esm/src/azureChangeAnalysisManagementClient.js.map +0 -1
- package/dist-esm/src/index.d.ts +0 -5
- package/dist-esm/src/index.js.map +0 -1
- package/dist-esm/src/models/index.js.map +0 -1
- package/dist-esm/src/models/mappers.js.map +0 -1
- package/dist-esm/src/models/parameters.js.map +0 -1
- package/dist-esm/src/operations/changes.d.ts.map +0 -1
- package/dist-esm/src/operations/changes.js.map +0 -1
- package/dist-esm/src/operations/index.d.ts +0 -4
- package/dist-esm/src/operations/index.js.map +0 -1
- package/dist-esm/src/operations/operations.d.ts.map +0 -1
- package/dist-esm/src/operations/operations.js.map +0 -1
- package/dist-esm/src/operations/resourceChanges.d.ts.map +0 -1
- package/dist-esm/src/operations/resourceChanges.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/changes.d.ts.map +0 -1
- package/dist-esm/src/operationsInterfaces/changes.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/index.d.ts +0 -4
- package/dist-esm/src/operationsInterfaces/index.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/operations.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/resourceChanges.d.ts.map +0 -1
- package/dist-esm/src/operationsInterfaces/resourceChanges.js.map +0 -1
- package/dist-esm/src/pagingHelper.js.map +0 -1
- package/dist-esm/test/sampleTest.d.ts +0 -2
- package/dist-esm/test/sampleTest.d.ts.map +0 -1
- package/dist-esm/test/sampleTest.js +0 -42
- package/dist-esm/test/sampleTest.js.map +0 -1
- package/src/azureChangeAnalysisManagementClient.ts +0 -144
- package/src/models/index.ts +0 -295
- package/src/models/mappers.ts +0 -385
- package/src/models/parameters.ts +0 -133
- package/src/operations/changes.ts +0 -401
- package/src/operations/operations.ts +0 -152
- package/src/operations/resourceChanges.ts +0 -206
- package/src/operationsInterfaces/changes.ts +0 -45
- package/src/operationsInterfaces/index.ts +0 -11
- package/src/operationsInterfaces/operations.ts +0 -26
- package/src/operationsInterfaces/resourceChanges.ts +0 -29
- package/src/pagingHelper.ts +0 -39
- package/tsconfig.json +0 -33
- /package/{dist-esm/src → dist/browser}/models/index.d.ts +0 -0
- /package/{dist-esm/src → dist/browser}/models/index.d.ts.map +0 -0
- /package/{dist-esm/src → dist/browser}/models/index.js +0 -0
- /package/{dist-esm/src → dist/browser}/models/mappers.d.ts +0 -0
- /package/{dist-esm/src → dist/browser}/models/mappers.d.ts.map +0 -0
- /package/{dist-esm/src → dist/browser}/models/mappers.js +0 -0
- /package/{dist-esm/src → dist/browser}/models/parameters.d.ts +0 -0
- /package/{dist-esm/src → dist/browser}/models/parameters.d.ts.map +0 -0
- /package/{dist-esm/src → dist/browser}/models/parameters.js +0 -0
- /package/{dist-esm/src → dist/browser}/operationsInterfaces/changes.js +0 -0
- /package/{dist-esm/src → dist/browser}/operationsInterfaces/operations.js +0 -0
- /package/{dist-esm/src → dist/browser}/operationsInterfaces/resourceChanges.js +0 -0
- /package/{dist-esm/src → dist/browser}/pagingHelper.d.ts +0 -0
- /package/{dist-esm/src → dist/browser}/pagingHelper.d.ts.map +0 -0
- /package/{dist-esm/src → dist/browser}/pagingHelper.js +0 -0
- /package/{types → dist/commonjs}/tsdoc-metadata.json +0 -0
package/dist/index.js
DELETED
|
@@ -1,1262 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
var tslib = require('tslib');
|
|
6
|
-
var coreClient = require('@azure/core-client');
|
|
7
|
-
var coreRestPipeline = require('@azure/core-rest-pipeline');
|
|
8
|
-
|
|
9
|
-
function _interopNamespaceDefault(e) {
|
|
10
|
-
var n = Object.create(null);
|
|
11
|
-
if (e) {
|
|
12
|
-
Object.keys(e).forEach(function (k) {
|
|
13
|
-
if (k !== 'default') {
|
|
14
|
-
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
15
|
-
Object.defineProperty(n, k, d.get ? d : {
|
|
16
|
-
enumerable: true,
|
|
17
|
-
get: function () { return e[k]; }
|
|
18
|
-
});
|
|
19
|
-
}
|
|
20
|
-
});
|
|
21
|
-
}
|
|
22
|
-
n.default = e;
|
|
23
|
-
return Object.freeze(n);
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
var coreClient__namespace = /*#__PURE__*/_interopNamespaceDefault(coreClient);
|
|
27
|
-
var coreRestPipeline__namespace = /*#__PURE__*/_interopNamespaceDefault(coreRestPipeline);
|
|
28
|
-
|
|
29
|
-
/*
|
|
30
|
-
* Copyright (c) Microsoft Corporation.
|
|
31
|
-
* Licensed under the MIT License.
|
|
32
|
-
*
|
|
33
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
34
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
35
|
-
*/
|
|
36
|
-
const pageMap = new WeakMap();
|
|
37
|
-
/**
|
|
38
|
-
* Given a result page from a pageable operation, returns a
|
|
39
|
-
* continuation token that can be used to begin paging from
|
|
40
|
-
* that point later.
|
|
41
|
-
* @param page A result object from calling .byPage() on a paged operation.
|
|
42
|
-
* @returns The continuation token that can be passed into byPage().
|
|
43
|
-
*/
|
|
44
|
-
function getContinuationToken(page) {
|
|
45
|
-
var _a;
|
|
46
|
-
if (typeof page !== "object" || page === null) {
|
|
47
|
-
return undefined;
|
|
48
|
-
}
|
|
49
|
-
return (_a = pageMap.get(page)) === null || _a === void 0 ? void 0 : _a.continuationToken;
|
|
50
|
-
}
|
|
51
|
-
function setContinuationToken(page, continuationToken) {
|
|
52
|
-
var _a;
|
|
53
|
-
if (typeof page !== "object" || page === null || !continuationToken) {
|
|
54
|
-
return;
|
|
55
|
-
}
|
|
56
|
-
const pageInfo = (_a = pageMap.get(page)) !== null && _a !== void 0 ? _a : {};
|
|
57
|
-
pageInfo.continuationToken = continuationToken;
|
|
58
|
-
pageMap.set(page, pageInfo);
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
/*
|
|
62
|
-
* Copyright (c) Microsoft Corporation.
|
|
63
|
-
* Licensed under the MIT License.
|
|
64
|
-
*
|
|
65
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
66
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
67
|
-
*/
|
|
68
|
-
/** Known values of {@link ChangeType} that the service accepts. */
|
|
69
|
-
exports.KnownChangeType = void 0;
|
|
70
|
-
(function (KnownChangeType) {
|
|
71
|
-
/** Add */
|
|
72
|
-
KnownChangeType["Add"] = "Add";
|
|
73
|
-
/** Remove */
|
|
74
|
-
KnownChangeType["Remove"] = "Remove";
|
|
75
|
-
/** Update */
|
|
76
|
-
KnownChangeType["Update"] = "Update";
|
|
77
|
-
})(exports.KnownChangeType || (exports.KnownChangeType = {}));
|
|
78
|
-
/** Known values of {@link Level} that the service accepts. */
|
|
79
|
-
exports.KnownLevel = void 0;
|
|
80
|
-
(function (KnownLevel) {
|
|
81
|
-
/** Noisy */
|
|
82
|
-
KnownLevel["Noisy"] = "Noisy";
|
|
83
|
-
/** Normal */
|
|
84
|
-
KnownLevel["Normal"] = "Normal";
|
|
85
|
-
/** Important */
|
|
86
|
-
KnownLevel["Important"] = "Important";
|
|
87
|
-
})(exports.KnownLevel || (exports.KnownLevel = {}));
|
|
88
|
-
|
|
89
|
-
/*
|
|
90
|
-
* Copyright (c) Microsoft Corporation.
|
|
91
|
-
* Licensed under the MIT License.
|
|
92
|
-
*
|
|
93
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
94
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
95
|
-
*/
|
|
96
|
-
const ResourceProviderOperationList = {
|
|
97
|
-
type: {
|
|
98
|
-
name: "Composite",
|
|
99
|
-
className: "ResourceProviderOperationList",
|
|
100
|
-
modelProperties: {
|
|
101
|
-
value: {
|
|
102
|
-
serializedName: "value",
|
|
103
|
-
type: {
|
|
104
|
-
name: "Sequence",
|
|
105
|
-
element: {
|
|
106
|
-
type: {
|
|
107
|
-
name: "Composite",
|
|
108
|
-
className: "ResourceProviderOperationDefinition"
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
},
|
|
113
|
-
nextLink: {
|
|
114
|
-
serializedName: "nextLink",
|
|
115
|
-
type: {
|
|
116
|
-
name: "String"
|
|
117
|
-
}
|
|
118
|
-
}
|
|
119
|
-
}
|
|
120
|
-
}
|
|
121
|
-
};
|
|
122
|
-
const ResourceProviderOperationDefinition = {
|
|
123
|
-
type: {
|
|
124
|
-
name: "Composite",
|
|
125
|
-
className: "ResourceProviderOperationDefinition",
|
|
126
|
-
modelProperties: {
|
|
127
|
-
name: {
|
|
128
|
-
serializedName: "name",
|
|
129
|
-
type: {
|
|
130
|
-
name: "String"
|
|
131
|
-
}
|
|
132
|
-
},
|
|
133
|
-
display: {
|
|
134
|
-
serializedName: "display",
|
|
135
|
-
type: {
|
|
136
|
-
name: "Composite",
|
|
137
|
-
className: "ResourceProviderOperationDisplay"
|
|
138
|
-
}
|
|
139
|
-
}
|
|
140
|
-
}
|
|
141
|
-
}
|
|
142
|
-
};
|
|
143
|
-
const ResourceProviderOperationDisplay = {
|
|
144
|
-
type: {
|
|
145
|
-
name: "Composite",
|
|
146
|
-
className: "ResourceProviderOperationDisplay",
|
|
147
|
-
modelProperties: {
|
|
148
|
-
provider: {
|
|
149
|
-
serializedName: "provider",
|
|
150
|
-
type: {
|
|
151
|
-
name: "String"
|
|
152
|
-
}
|
|
153
|
-
},
|
|
154
|
-
resource: {
|
|
155
|
-
serializedName: "resource",
|
|
156
|
-
type: {
|
|
157
|
-
name: "String"
|
|
158
|
-
}
|
|
159
|
-
},
|
|
160
|
-
operation: {
|
|
161
|
-
serializedName: "operation",
|
|
162
|
-
type: {
|
|
163
|
-
name: "String"
|
|
164
|
-
}
|
|
165
|
-
},
|
|
166
|
-
description: {
|
|
167
|
-
serializedName: "description",
|
|
168
|
-
type: {
|
|
169
|
-
name: "String"
|
|
170
|
-
}
|
|
171
|
-
}
|
|
172
|
-
}
|
|
173
|
-
}
|
|
174
|
-
};
|
|
175
|
-
const ErrorResponse = {
|
|
176
|
-
type: {
|
|
177
|
-
name: "Composite",
|
|
178
|
-
className: "ErrorResponse",
|
|
179
|
-
modelProperties: {
|
|
180
|
-
error: {
|
|
181
|
-
serializedName: "error",
|
|
182
|
-
type: {
|
|
183
|
-
name: "Composite",
|
|
184
|
-
className: "ErrorDetail"
|
|
185
|
-
}
|
|
186
|
-
}
|
|
187
|
-
}
|
|
188
|
-
}
|
|
189
|
-
};
|
|
190
|
-
const ErrorDetail = {
|
|
191
|
-
type: {
|
|
192
|
-
name: "Composite",
|
|
193
|
-
className: "ErrorDetail",
|
|
194
|
-
modelProperties: {
|
|
195
|
-
code: {
|
|
196
|
-
serializedName: "code",
|
|
197
|
-
readOnly: true,
|
|
198
|
-
type: {
|
|
199
|
-
name: "String"
|
|
200
|
-
}
|
|
201
|
-
},
|
|
202
|
-
message: {
|
|
203
|
-
serializedName: "message",
|
|
204
|
-
readOnly: true,
|
|
205
|
-
type: {
|
|
206
|
-
name: "String"
|
|
207
|
-
}
|
|
208
|
-
},
|
|
209
|
-
target: {
|
|
210
|
-
serializedName: "target",
|
|
211
|
-
readOnly: true,
|
|
212
|
-
type: {
|
|
213
|
-
name: "String"
|
|
214
|
-
}
|
|
215
|
-
},
|
|
216
|
-
details: {
|
|
217
|
-
serializedName: "details",
|
|
218
|
-
readOnly: true,
|
|
219
|
-
type: {
|
|
220
|
-
name: "Sequence",
|
|
221
|
-
element: {
|
|
222
|
-
type: {
|
|
223
|
-
name: "Composite",
|
|
224
|
-
className: "ErrorDetail"
|
|
225
|
-
}
|
|
226
|
-
}
|
|
227
|
-
}
|
|
228
|
-
},
|
|
229
|
-
additionalInfo: {
|
|
230
|
-
serializedName: "additionalInfo",
|
|
231
|
-
readOnly: true,
|
|
232
|
-
type: {
|
|
233
|
-
name: "Sequence",
|
|
234
|
-
element: {
|
|
235
|
-
type: {
|
|
236
|
-
name: "Composite",
|
|
237
|
-
className: "ErrorAdditionalInfo"
|
|
238
|
-
}
|
|
239
|
-
}
|
|
240
|
-
}
|
|
241
|
-
}
|
|
242
|
-
}
|
|
243
|
-
}
|
|
244
|
-
};
|
|
245
|
-
const ErrorAdditionalInfo = {
|
|
246
|
-
type: {
|
|
247
|
-
name: "Composite",
|
|
248
|
-
className: "ErrorAdditionalInfo",
|
|
249
|
-
modelProperties: {
|
|
250
|
-
type: {
|
|
251
|
-
serializedName: "type",
|
|
252
|
-
readOnly: true,
|
|
253
|
-
type: {
|
|
254
|
-
name: "String"
|
|
255
|
-
}
|
|
256
|
-
},
|
|
257
|
-
info: {
|
|
258
|
-
serializedName: "info",
|
|
259
|
-
readOnly: true,
|
|
260
|
-
type: {
|
|
261
|
-
name: "Dictionary",
|
|
262
|
-
value: { type: { name: "any" } }
|
|
263
|
-
}
|
|
264
|
-
}
|
|
265
|
-
}
|
|
266
|
-
}
|
|
267
|
-
};
|
|
268
|
-
const ChangeList = {
|
|
269
|
-
type: {
|
|
270
|
-
name: "Composite",
|
|
271
|
-
className: "ChangeList",
|
|
272
|
-
modelProperties: {
|
|
273
|
-
value: {
|
|
274
|
-
serializedName: "value",
|
|
275
|
-
type: {
|
|
276
|
-
name: "Sequence",
|
|
277
|
-
element: {
|
|
278
|
-
type: {
|
|
279
|
-
name: "Composite",
|
|
280
|
-
className: "Change"
|
|
281
|
-
}
|
|
282
|
-
}
|
|
283
|
-
}
|
|
284
|
-
},
|
|
285
|
-
nextLink: {
|
|
286
|
-
serializedName: "nextLink",
|
|
287
|
-
type: {
|
|
288
|
-
name: "String"
|
|
289
|
-
}
|
|
290
|
-
}
|
|
291
|
-
}
|
|
292
|
-
}
|
|
293
|
-
};
|
|
294
|
-
const ChangeProperties = {
|
|
295
|
-
type: {
|
|
296
|
-
name: "Composite",
|
|
297
|
-
className: "ChangeProperties",
|
|
298
|
-
modelProperties: {
|
|
299
|
-
resourceId: {
|
|
300
|
-
serializedName: "resourceId",
|
|
301
|
-
type: {
|
|
302
|
-
name: "String"
|
|
303
|
-
}
|
|
304
|
-
},
|
|
305
|
-
timeStamp: {
|
|
306
|
-
serializedName: "timeStamp",
|
|
307
|
-
type: {
|
|
308
|
-
name: "DateTime"
|
|
309
|
-
}
|
|
310
|
-
},
|
|
311
|
-
initiatedByList: {
|
|
312
|
-
serializedName: "initiatedByList",
|
|
313
|
-
type: {
|
|
314
|
-
name: "Sequence",
|
|
315
|
-
element: {
|
|
316
|
-
type: {
|
|
317
|
-
name: "String"
|
|
318
|
-
}
|
|
319
|
-
}
|
|
320
|
-
}
|
|
321
|
-
},
|
|
322
|
-
changeType: {
|
|
323
|
-
serializedName: "changeType",
|
|
324
|
-
type: {
|
|
325
|
-
name: "String"
|
|
326
|
-
}
|
|
327
|
-
},
|
|
328
|
-
propertyChanges: {
|
|
329
|
-
serializedName: "propertyChanges",
|
|
330
|
-
type: {
|
|
331
|
-
name: "Sequence",
|
|
332
|
-
element: {
|
|
333
|
-
type: {
|
|
334
|
-
name: "Composite",
|
|
335
|
-
className: "PropertyChange"
|
|
336
|
-
}
|
|
337
|
-
}
|
|
338
|
-
}
|
|
339
|
-
}
|
|
340
|
-
}
|
|
341
|
-
}
|
|
342
|
-
};
|
|
343
|
-
const PropertyChange = {
|
|
344
|
-
type: {
|
|
345
|
-
name: "Composite",
|
|
346
|
-
className: "PropertyChange",
|
|
347
|
-
modelProperties: {
|
|
348
|
-
changeType: {
|
|
349
|
-
serializedName: "changeType",
|
|
350
|
-
type: {
|
|
351
|
-
name: "String"
|
|
352
|
-
}
|
|
353
|
-
},
|
|
354
|
-
changeCategory: {
|
|
355
|
-
serializedName: "changeCategory",
|
|
356
|
-
type: {
|
|
357
|
-
name: "Enum",
|
|
358
|
-
allowedValues: ["User", "System"]
|
|
359
|
-
}
|
|
360
|
-
},
|
|
361
|
-
jsonPath: {
|
|
362
|
-
serializedName: "jsonPath",
|
|
363
|
-
type: {
|
|
364
|
-
name: "String"
|
|
365
|
-
}
|
|
366
|
-
},
|
|
367
|
-
displayName: {
|
|
368
|
-
serializedName: "displayName",
|
|
369
|
-
type: {
|
|
370
|
-
name: "String"
|
|
371
|
-
}
|
|
372
|
-
},
|
|
373
|
-
level: {
|
|
374
|
-
serializedName: "level",
|
|
375
|
-
type: {
|
|
376
|
-
name: "String"
|
|
377
|
-
}
|
|
378
|
-
},
|
|
379
|
-
description: {
|
|
380
|
-
serializedName: "description",
|
|
381
|
-
type: {
|
|
382
|
-
name: "String"
|
|
383
|
-
}
|
|
384
|
-
},
|
|
385
|
-
oldValue: {
|
|
386
|
-
serializedName: "oldValue",
|
|
387
|
-
type: {
|
|
388
|
-
name: "String"
|
|
389
|
-
}
|
|
390
|
-
},
|
|
391
|
-
newValue: {
|
|
392
|
-
serializedName: "newValue",
|
|
393
|
-
type: {
|
|
394
|
-
name: "String"
|
|
395
|
-
}
|
|
396
|
-
},
|
|
397
|
-
isDataMasked: {
|
|
398
|
-
serializedName: "isDataMasked",
|
|
399
|
-
type: {
|
|
400
|
-
name: "Boolean"
|
|
401
|
-
}
|
|
402
|
-
}
|
|
403
|
-
}
|
|
404
|
-
}
|
|
405
|
-
};
|
|
406
|
-
const Resource = {
|
|
407
|
-
type: {
|
|
408
|
-
name: "Composite",
|
|
409
|
-
className: "Resource",
|
|
410
|
-
modelProperties: {
|
|
411
|
-
id: {
|
|
412
|
-
serializedName: "id",
|
|
413
|
-
readOnly: true,
|
|
414
|
-
type: {
|
|
415
|
-
name: "String"
|
|
416
|
-
}
|
|
417
|
-
},
|
|
418
|
-
name: {
|
|
419
|
-
serializedName: "name",
|
|
420
|
-
readOnly: true,
|
|
421
|
-
type: {
|
|
422
|
-
name: "String"
|
|
423
|
-
}
|
|
424
|
-
},
|
|
425
|
-
type: {
|
|
426
|
-
serializedName: "type",
|
|
427
|
-
readOnly: true,
|
|
428
|
-
type: {
|
|
429
|
-
name: "String"
|
|
430
|
-
}
|
|
431
|
-
}
|
|
432
|
-
}
|
|
433
|
-
}
|
|
434
|
-
};
|
|
435
|
-
const ProxyResource = {
|
|
436
|
-
type: {
|
|
437
|
-
name: "Composite",
|
|
438
|
-
className: "ProxyResource",
|
|
439
|
-
modelProperties: Object.assign({}, Resource.type.modelProperties)
|
|
440
|
-
}
|
|
441
|
-
};
|
|
442
|
-
const Change = {
|
|
443
|
-
type: {
|
|
444
|
-
name: "Composite",
|
|
445
|
-
className: "Change",
|
|
446
|
-
modelProperties: Object.assign(Object.assign({}, ProxyResource.type.modelProperties), { properties: {
|
|
447
|
-
serializedName: "properties",
|
|
448
|
-
type: {
|
|
449
|
-
name: "Composite",
|
|
450
|
-
className: "ChangeProperties"
|
|
451
|
-
}
|
|
452
|
-
} })
|
|
453
|
-
}
|
|
454
|
-
};
|
|
455
|
-
|
|
456
|
-
var Mappers = /*#__PURE__*/Object.freeze({
|
|
457
|
-
__proto__: null,
|
|
458
|
-
Change: Change,
|
|
459
|
-
ChangeList: ChangeList,
|
|
460
|
-
ChangeProperties: ChangeProperties,
|
|
461
|
-
ErrorAdditionalInfo: ErrorAdditionalInfo,
|
|
462
|
-
ErrorDetail: ErrorDetail,
|
|
463
|
-
ErrorResponse: ErrorResponse,
|
|
464
|
-
PropertyChange: PropertyChange,
|
|
465
|
-
ProxyResource: ProxyResource,
|
|
466
|
-
Resource: Resource,
|
|
467
|
-
ResourceProviderOperationDefinition: ResourceProviderOperationDefinition,
|
|
468
|
-
ResourceProviderOperationDisplay: ResourceProviderOperationDisplay,
|
|
469
|
-
ResourceProviderOperationList: ResourceProviderOperationList
|
|
470
|
-
});
|
|
471
|
-
|
|
472
|
-
/*
|
|
473
|
-
* Copyright (c) Microsoft Corporation.
|
|
474
|
-
* Licensed under the MIT License.
|
|
475
|
-
*
|
|
476
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
477
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
478
|
-
*/
|
|
479
|
-
const accept = {
|
|
480
|
-
parameterPath: "accept",
|
|
481
|
-
mapper: {
|
|
482
|
-
defaultValue: "application/json",
|
|
483
|
-
isConstant: true,
|
|
484
|
-
serializedName: "Accept",
|
|
485
|
-
type: {
|
|
486
|
-
name: "String"
|
|
487
|
-
}
|
|
488
|
-
}
|
|
489
|
-
};
|
|
490
|
-
const $host = {
|
|
491
|
-
parameterPath: "$host",
|
|
492
|
-
mapper: {
|
|
493
|
-
serializedName: "$host",
|
|
494
|
-
required: true,
|
|
495
|
-
type: {
|
|
496
|
-
name: "String"
|
|
497
|
-
}
|
|
498
|
-
},
|
|
499
|
-
skipEncoding: true
|
|
500
|
-
};
|
|
501
|
-
const apiVersion = {
|
|
502
|
-
parameterPath: "apiVersion",
|
|
503
|
-
mapper: {
|
|
504
|
-
defaultValue: "2021-04-01",
|
|
505
|
-
isConstant: true,
|
|
506
|
-
serializedName: "api-version",
|
|
507
|
-
type: {
|
|
508
|
-
name: "String"
|
|
509
|
-
}
|
|
510
|
-
}
|
|
511
|
-
};
|
|
512
|
-
const skipToken = {
|
|
513
|
-
parameterPath: ["options", "skipToken"],
|
|
514
|
-
mapper: {
|
|
515
|
-
serializedName: "$skipToken",
|
|
516
|
-
type: {
|
|
517
|
-
name: "String"
|
|
518
|
-
}
|
|
519
|
-
}
|
|
520
|
-
};
|
|
521
|
-
const nextLink = {
|
|
522
|
-
parameterPath: "nextLink",
|
|
523
|
-
mapper: {
|
|
524
|
-
serializedName: "nextLink",
|
|
525
|
-
required: true,
|
|
526
|
-
type: {
|
|
527
|
-
name: "String"
|
|
528
|
-
}
|
|
529
|
-
},
|
|
530
|
-
skipEncoding: true
|
|
531
|
-
};
|
|
532
|
-
const resourceId = {
|
|
533
|
-
parameterPath: "resourceId",
|
|
534
|
-
mapper: {
|
|
535
|
-
serializedName: "resourceId",
|
|
536
|
-
required: true,
|
|
537
|
-
type: {
|
|
538
|
-
name: "String"
|
|
539
|
-
}
|
|
540
|
-
}
|
|
541
|
-
};
|
|
542
|
-
const startTime = {
|
|
543
|
-
parameterPath: "startTime",
|
|
544
|
-
mapper: {
|
|
545
|
-
serializedName: "$startTime",
|
|
546
|
-
required: true,
|
|
547
|
-
type: {
|
|
548
|
-
name: "DateTime"
|
|
549
|
-
}
|
|
550
|
-
}
|
|
551
|
-
};
|
|
552
|
-
const endTime = {
|
|
553
|
-
parameterPath: "endTime",
|
|
554
|
-
mapper: {
|
|
555
|
-
serializedName: "$endTime",
|
|
556
|
-
required: true,
|
|
557
|
-
type: {
|
|
558
|
-
name: "DateTime"
|
|
559
|
-
}
|
|
560
|
-
}
|
|
561
|
-
};
|
|
562
|
-
const subscriptionId = {
|
|
563
|
-
parameterPath: "subscriptionId",
|
|
564
|
-
mapper: {
|
|
565
|
-
constraints: {
|
|
566
|
-
MinLength: 1
|
|
567
|
-
},
|
|
568
|
-
serializedName: "subscriptionId",
|
|
569
|
-
required: true,
|
|
570
|
-
type: {
|
|
571
|
-
name: "String"
|
|
572
|
-
}
|
|
573
|
-
}
|
|
574
|
-
};
|
|
575
|
-
const resourceGroupName = {
|
|
576
|
-
parameterPath: "resourceGroupName",
|
|
577
|
-
mapper: {
|
|
578
|
-
constraints: {
|
|
579
|
-
MaxLength: 90,
|
|
580
|
-
MinLength: 1
|
|
581
|
-
},
|
|
582
|
-
serializedName: "resourceGroupName",
|
|
583
|
-
required: true,
|
|
584
|
-
type: {
|
|
585
|
-
name: "String"
|
|
586
|
-
}
|
|
587
|
-
}
|
|
588
|
-
};
|
|
589
|
-
|
|
590
|
-
/*
|
|
591
|
-
* Copyright (c) Microsoft Corporation.
|
|
592
|
-
* Licensed under the MIT License.
|
|
593
|
-
*
|
|
594
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
595
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
596
|
-
*/
|
|
597
|
-
/// <reference lib="esnext.asynciterable" />
|
|
598
|
-
/** Class containing Operations operations. */
|
|
599
|
-
class OperationsImpl {
|
|
600
|
-
/**
|
|
601
|
-
* Initialize a new instance of the class Operations class.
|
|
602
|
-
* @param client Reference to the service client
|
|
603
|
-
*/
|
|
604
|
-
constructor(client) {
|
|
605
|
-
this.client = client;
|
|
606
|
-
}
|
|
607
|
-
/**
|
|
608
|
-
* Lists all the supported operations by the Microsoft.ChangeAnalysis resource provider along with
|
|
609
|
-
* their descriptions.
|
|
610
|
-
* @param options The options parameters.
|
|
611
|
-
*/
|
|
612
|
-
list(options) {
|
|
613
|
-
const iter = this.listPagingAll(options);
|
|
614
|
-
return {
|
|
615
|
-
next() {
|
|
616
|
-
return iter.next();
|
|
617
|
-
},
|
|
618
|
-
[Symbol.asyncIterator]() {
|
|
619
|
-
return this;
|
|
620
|
-
},
|
|
621
|
-
byPage: (settings) => {
|
|
622
|
-
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
623
|
-
throw new Error("maxPageSize is not supported by this operation.");
|
|
624
|
-
}
|
|
625
|
-
return this.listPagingPage(options, settings);
|
|
626
|
-
}
|
|
627
|
-
};
|
|
628
|
-
}
|
|
629
|
-
listPagingPage(options, settings) {
|
|
630
|
-
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
631
|
-
let result;
|
|
632
|
-
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
633
|
-
if (!continuationToken) {
|
|
634
|
-
result = yield tslib.__await(this._list(options));
|
|
635
|
-
let page = result.value || [];
|
|
636
|
-
continuationToken = result.nextLink;
|
|
637
|
-
setContinuationToken(page, continuationToken);
|
|
638
|
-
yield yield tslib.__await(page);
|
|
639
|
-
}
|
|
640
|
-
while (continuationToken) {
|
|
641
|
-
result = yield tslib.__await(this._listNext(continuationToken, options));
|
|
642
|
-
continuationToken = result.nextLink;
|
|
643
|
-
let page = result.value || [];
|
|
644
|
-
setContinuationToken(page, continuationToken);
|
|
645
|
-
yield yield tslib.__await(page);
|
|
646
|
-
}
|
|
647
|
-
});
|
|
648
|
-
}
|
|
649
|
-
listPagingAll(options) {
|
|
650
|
-
return tslib.__asyncGenerator(this, arguments, function* listPagingAll_1() {
|
|
651
|
-
var _a, e_1, _b, _c;
|
|
652
|
-
try {
|
|
653
|
-
for (var _d = true, _e = tslib.__asyncValues(this.listPagingPage(options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
654
|
-
_c = _f.value;
|
|
655
|
-
_d = false;
|
|
656
|
-
const page = _c;
|
|
657
|
-
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
|
658
|
-
}
|
|
659
|
-
}
|
|
660
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
661
|
-
finally {
|
|
662
|
-
try {
|
|
663
|
-
if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
|
|
664
|
-
}
|
|
665
|
-
finally { if (e_1) throw e_1.error; }
|
|
666
|
-
}
|
|
667
|
-
});
|
|
668
|
-
}
|
|
669
|
-
/**
|
|
670
|
-
* Lists all the supported operations by the Microsoft.ChangeAnalysis resource provider along with
|
|
671
|
-
* their descriptions.
|
|
672
|
-
* @param options The options parameters.
|
|
673
|
-
*/
|
|
674
|
-
_list(options) {
|
|
675
|
-
return this.client.sendOperationRequest({ options }, listOperationSpec$1);
|
|
676
|
-
}
|
|
677
|
-
/**
|
|
678
|
-
* ListNext
|
|
679
|
-
* @param nextLink The nextLink from the previous successful call to the List method.
|
|
680
|
-
* @param options The options parameters.
|
|
681
|
-
*/
|
|
682
|
-
_listNext(nextLink, options) {
|
|
683
|
-
return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec$1);
|
|
684
|
-
}
|
|
685
|
-
}
|
|
686
|
-
// Operation Specifications
|
|
687
|
-
const serializer$2 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
688
|
-
const listOperationSpec$1 = {
|
|
689
|
-
path: "/providers/Microsoft.ChangeAnalysis/operations",
|
|
690
|
-
httpMethod: "GET",
|
|
691
|
-
responses: {
|
|
692
|
-
200: {
|
|
693
|
-
bodyMapper: ResourceProviderOperationList
|
|
694
|
-
},
|
|
695
|
-
default: {
|
|
696
|
-
bodyMapper: ErrorResponse
|
|
697
|
-
}
|
|
698
|
-
},
|
|
699
|
-
queryParameters: [apiVersion, skipToken],
|
|
700
|
-
urlParameters: [$host],
|
|
701
|
-
headerParameters: [accept],
|
|
702
|
-
serializer: serializer$2
|
|
703
|
-
};
|
|
704
|
-
const listNextOperationSpec$1 = {
|
|
705
|
-
path: "{nextLink}",
|
|
706
|
-
httpMethod: "GET",
|
|
707
|
-
responses: {
|
|
708
|
-
200: {
|
|
709
|
-
bodyMapper: ResourceProviderOperationList
|
|
710
|
-
},
|
|
711
|
-
default: {
|
|
712
|
-
bodyMapper: ErrorResponse
|
|
713
|
-
}
|
|
714
|
-
},
|
|
715
|
-
queryParameters: [apiVersion, skipToken],
|
|
716
|
-
urlParameters: [$host, nextLink],
|
|
717
|
-
headerParameters: [accept],
|
|
718
|
-
serializer: serializer$2
|
|
719
|
-
};
|
|
720
|
-
|
|
721
|
-
/*
|
|
722
|
-
* Copyright (c) Microsoft Corporation.
|
|
723
|
-
* Licensed under the MIT License.
|
|
724
|
-
*
|
|
725
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
726
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
727
|
-
*/
|
|
728
|
-
/// <reference lib="esnext.asynciterable" />
|
|
729
|
-
/** Class containing ResourceChanges operations. */
|
|
730
|
-
class ResourceChangesImpl {
|
|
731
|
-
/**
|
|
732
|
-
* Initialize a new instance of the class ResourceChanges class.
|
|
733
|
-
* @param client Reference to the service client
|
|
734
|
-
*/
|
|
735
|
-
constructor(client) {
|
|
736
|
-
this.client = client;
|
|
737
|
-
}
|
|
738
|
-
/**
|
|
739
|
-
* List the changes of a resource within the specified time range. Customer data will be masked if the
|
|
740
|
-
* user doesn't have access.
|
|
741
|
-
* @param resourceId The identifier of the resource.
|
|
742
|
-
* @param startTime Specifies the start time of the changes request.
|
|
743
|
-
* @param endTime Specifies the end time of the changes request.
|
|
744
|
-
* @param options The options parameters.
|
|
745
|
-
*/
|
|
746
|
-
list(resourceId, startTime, endTime, options) {
|
|
747
|
-
const iter = this.listPagingAll(resourceId, startTime, endTime, options);
|
|
748
|
-
return {
|
|
749
|
-
next() {
|
|
750
|
-
return iter.next();
|
|
751
|
-
},
|
|
752
|
-
[Symbol.asyncIterator]() {
|
|
753
|
-
return this;
|
|
754
|
-
},
|
|
755
|
-
byPage: (settings) => {
|
|
756
|
-
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
757
|
-
throw new Error("maxPageSize is not supported by this operation.");
|
|
758
|
-
}
|
|
759
|
-
return this.listPagingPage(resourceId, startTime, endTime, options, settings);
|
|
760
|
-
}
|
|
761
|
-
};
|
|
762
|
-
}
|
|
763
|
-
listPagingPage(resourceId, startTime, endTime, options, settings) {
|
|
764
|
-
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
765
|
-
let result;
|
|
766
|
-
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
767
|
-
if (!continuationToken) {
|
|
768
|
-
result = yield tslib.__await(this._list(resourceId, startTime, endTime, options));
|
|
769
|
-
let page = result.value || [];
|
|
770
|
-
continuationToken = result.nextLink;
|
|
771
|
-
setContinuationToken(page, continuationToken);
|
|
772
|
-
yield yield tslib.__await(page);
|
|
773
|
-
}
|
|
774
|
-
while (continuationToken) {
|
|
775
|
-
result = yield tslib.__await(this._listNext(resourceId, startTime, endTime, continuationToken, options));
|
|
776
|
-
continuationToken = result.nextLink;
|
|
777
|
-
let page = result.value || [];
|
|
778
|
-
setContinuationToken(page, continuationToken);
|
|
779
|
-
yield yield tslib.__await(page);
|
|
780
|
-
}
|
|
781
|
-
});
|
|
782
|
-
}
|
|
783
|
-
listPagingAll(resourceId, startTime, endTime, options) {
|
|
784
|
-
return tslib.__asyncGenerator(this, arguments, function* listPagingAll_1() {
|
|
785
|
-
var _a, e_1, _b, _c;
|
|
786
|
-
try {
|
|
787
|
-
for (var _d = true, _e = tslib.__asyncValues(this.listPagingPage(resourceId, startTime, endTime, options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
788
|
-
_c = _f.value;
|
|
789
|
-
_d = false;
|
|
790
|
-
const page = _c;
|
|
791
|
-
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
|
792
|
-
}
|
|
793
|
-
}
|
|
794
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
795
|
-
finally {
|
|
796
|
-
try {
|
|
797
|
-
if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
|
|
798
|
-
}
|
|
799
|
-
finally { if (e_1) throw e_1.error; }
|
|
800
|
-
}
|
|
801
|
-
});
|
|
802
|
-
}
|
|
803
|
-
/**
|
|
804
|
-
* List the changes of a resource within the specified time range. Customer data will be masked if the
|
|
805
|
-
* user doesn't have access.
|
|
806
|
-
* @param resourceId The identifier of the resource.
|
|
807
|
-
* @param startTime Specifies the start time of the changes request.
|
|
808
|
-
* @param endTime Specifies the end time of the changes request.
|
|
809
|
-
* @param options The options parameters.
|
|
810
|
-
*/
|
|
811
|
-
_list(resourceId, startTime, endTime, options) {
|
|
812
|
-
return this.client.sendOperationRequest({ resourceId, startTime, endTime, options }, listOperationSpec);
|
|
813
|
-
}
|
|
814
|
-
/**
|
|
815
|
-
* ListNext
|
|
816
|
-
* @param resourceId The identifier of the resource.
|
|
817
|
-
* @param startTime Specifies the start time of the changes request.
|
|
818
|
-
* @param endTime Specifies the end time of the changes request.
|
|
819
|
-
* @param nextLink The nextLink from the previous successful call to the List method.
|
|
820
|
-
* @param options The options parameters.
|
|
821
|
-
*/
|
|
822
|
-
_listNext(resourceId, startTime, endTime, nextLink, options) {
|
|
823
|
-
return this.client.sendOperationRequest({ resourceId, startTime, endTime, nextLink, options }, listNextOperationSpec);
|
|
824
|
-
}
|
|
825
|
-
}
|
|
826
|
-
// Operation Specifications
|
|
827
|
-
const serializer$1 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
828
|
-
const listOperationSpec = {
|
|
829
|
-
path: "/{resourceId}/providers/Microsoft.ChangeAnalysis/resourceChanges",
|
|
830
|
-
httpMethod: "POST",
|
|
831
|
-
responses: {
|
|
832
|
-
200: {
|
|
833
|
-
bodyMapper: ChangeList
|
|
834
|
-
},
|
|
835
|
-
default: {
|
|
836
|
-
bodyMapper: ErrorResponse
|
|
837
|
-
}
|
|
838
|
-
},
|
|
839
|
-
queryParameters: [
|
|
840
|
-
apiVersion,
|
|
841
|
-
skipToken,
|
|
842
|
-
startTime,
|
|
843
|
-
endTime
|
|
844
|
-
],
|
|
845
|
-
urlParameters: [$host, resourceId],
|
|
846
|
-
headerParameters: [accept],
|
|
847
|
-
serializer: serializer$1
|
|
848
|
-
};
|
|
849
|
-
const listNextOperationSpec = {
|
|
850
|
-
path: "{nextLink}",
|
|
851
|
-
httpMethod: "GET",
|
|
852
|
-
responses: {
|
|
853
|
-
200: {
|
|
854
|
-
bodyMapper: ChangeList
|
|
855
|
-
},
|
|
856
|
-
default: {
|
|
857
|
-
bodyMapper: ErrorResponse
|
|
858
|
-
}
|
|
859
|
-
},
|
|
860
|
-
queryParameters: [
|
|
861
|
-
apiVersion,
|
|
862
|
-
skipToken,
|
|
863
|
-
startTime,
|
|
864
|
-
endTime
|
|
865
|
-
],
|
|
866
|
-
urlParameters: [$host, nextLink, resourceId],
|
|
867
|
-
headerParameters: [accept],
|
|
868
|
-
serializer: serializer$1
|
|
869
|
-
};
|
|
870
|
-
|
|
871
|
-
/*
|
|
872
|
-
* Copyright (c) Microsoft Corporation.
|
|
873
|
-
* Licensed under the MIT License.
|
|
874
|
-
*
|
|
875
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
876
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
877
|
-
*/
|
|
878
|
-
/// <reference lib="esnext.asynciterable" />
|
|
879
|
-
/** Class containing Changes operations. */
|
|
880
|
-
class ChangesImpl {
|
|
881
|
-
/**
|
|
882
|
-
* Initialize a new instance of the class Changes class.
|
|
883
|
-
* @param client Reference to the service client
|
|
884
|
-
*/
|
|
885
|
-
constructor(client) {
|
|
886
|
-
this.client = client;
|
|
887
|
-
}
|
|
888
|
-
/**
|
|
889
|
-
* List the changes of a resource group within the specified time range. Customer data will always be
|
|
890
|
-
* masked.
|
|
891
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
892
|
-
* @param startTime Specifies the start time of the changes request.
|
|
893
|
-
* @param endTime Specifies the end time of the changes request.
|
|
894
|
-
* @param options The options parameters.
|
|
895
|
-
*/
|
|
896
|
-
listChangesByResourceGroup(resourceGroupName, startTime, endTime, options) {
|
|
897
|
-
const iter = this.listChangesByResourceGroupPagingAll(resourceGroupName, startTime, endTime, options);
|
|
898
|
-
return {
|
|
899
|
-
next() {
|
|
900
|
-
return iter.next();
|
|
901
|
-
},
|
|
902
|
-
[Symbol.asyncIterator]() {
|
|
903
|
-
return this;
|
|
904
|
-
},
|
|
905
|
-
byPage: (settings) => {
|
|
906
|
-
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
907
|
-
throw new Error("maxPageSize is not supported by this operation.");
|
|
908
|
-
}
|
|
909
|
-
return this.listChangesByResourceGroupPagingPage(resourceGroupName, startTime, endTime, options, settings);
|
|
910
|
-
}
|
|
911
|
-
};
|
|
912
|
-
}
|
|
913
|
-
listChangesByResourceGroupPagingPage(resourceGroupName, startTime, endTime, options, settings) {
|
|
914
|
-
return tslib.__asyncGenerator(this, arguments, function* listChangesByResourceGroupPagingPage_1() {
|
|
915
|
-
let result;
|
|
916
|
-
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
917
|
-
if (!continuationToken) {
|
|
918
|
-
result = yield tslib.__await(this._listChangesByResourceGroup(resourceGroupName, startTime, endTime, options));
|
|
919
|
-
let page = result.value || [];
|
|
920
|
-
continuationToken = result.nextLink;
|
|
921
|
-
setContinuationToken(page, continuationToken);
|
|
922
|
-
yield yield tslib.__await(page);
|
|
923
|
-
}
|
|
924
|
-
while (continuationToken) {
|
|
925
|
-
result = yield tslib.__await(this._listChangesByResourceGroupNext(resourceGroupName, startTime, endTime, continuationToken, options));
|
|
926
|
-
continuationToken = result.nextLink;
|
|
927
|
-
let page = result.value || [];
|
|
928
|
-
setContinuationToken(page, continuationToken);
|
|
929
|
-
yield yield tslib.__await(page);
|
|
930
|
-
}
|
|
931
|
-
});
|
|
932
|
-
}
|
|
933
|
-
listChangesByResourceGroupPagingAll(resourceGroupName, startTime, endTime, options) {
|
|
934
|
-
return tslib.__asyncGenerator(this, arguments, function* listChangesByResourceGroupPagingAll_1() {
|
|
935
|
-
var _a, e_1, _b, _c;
|
|
936
|
-
try {
|
|
937
|
-
for (var _d = true, _e = tslib.__asyncValues(this.listChangesByResourceGroupPagingPage(resourceGroupName, startTime, endTime, options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
938
|
-
_c = _f.value;
|
|
939
|
-
_d = false;
|
|
940
|
-
const page = _c;
|
|
941
|
-
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
|
942
|
-
}
|
|
943
|
-
}
|
|
944
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
945
|
-
finally {
|
|
946
|
-
try {
|
|
947
|
-
if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
|
|
948
|
-
}
|
|
949
|
-
finally { if (e_1) throw e_1.error; }
|
|
950
|
-
}
|
|
951
|
-
});
|
|
952
|
-
}
|
|
953
|
-
/**
|
|
954
|
-
* List the changes of a subscription within the specified time range. Customer data will always be
|
|
955
|
-
* masked.
|
|
956
|
-
* @param startTime Specifies the start time of the changes request.
|
|
957
|
-
* @param endTime Specifies the end time of the changes request.
|
|
958
|
-
* @param options The options parameters.
|
|
959
|
-
*/
|
|
960
|
-
listChangesBySubscription(startTime, endTime, options) {
|
|
961
|
-
const iter = this.listChangesBySubscriptionPagingAll(startTime, endTime, options);
|
|
962
|
-
return {
|
|
963
|
-
next() {
|
|
964
|
-
return iter.next();
|
|
965
|
-
},
|
|
966
|
-
[Symbol.asyncIterator]() {
|
|
967
|
-
return this;
|
|
968
|
-
},
|
|
969
|
-
byPage: (settings) => {
|
|
970
|
-
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
971
|
-
throw new Error("maxPageSize is not supported by this operation.");
|
|
972
|
-
}
|
|
973
|
-
return this.listChangesBySubscriptionPagingPage(startTime, endTime, options, settings);
|
|
974
|
-
}
|
|
975
|
-
};
|
|
976
|
-
}
|
|
977
|
-
listChangesBySubscriptionPagingPage(startTime, endTime, options, settings) {
|
|
978
|
-
return tslib.__asyncGenerator(this, arguments, function* listChangesBySubscriptionPagingPage_1() {
|
|
979
|
-
let result;
|
|
980
|
-
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
981
|
-
if (!continuationToken) {
|
|
982
|
-
result = yield tslib.__await(this._listChangesBySubscription(startTime, endTime, options));
|
|
983
|
-
let page = result.value || [];
|
|
984
|
-
continuationToken = result.nextLink;
|
|
985
|
-
setContinuationToken(page, continuationToken);
|
|
986
|
-
yield yield tslib.__await(page);
|
|
987
|
-
}
|
|
988
|
-
while (continuationToken) {
|
|
989
|
-
result = yield tslib.__await(this._listChangesBySubscriptionNext(startTime, endTime, continuationToken, options));
|
|
990
|
-
continuationToken = result.nextLink;
|
|
991
|
-
let page = result.value || [];
|
|
992
|
-
setContinuationToken(page, continuationToken);
|
|
993
|
-
yield yield tslib.__await(page);
|
|
994
|
-
}
|
|
995
|
-
});
|
|
996
|
-
}
|
|
997
|
-
listChangesBySubscriptionPagingAll(startTime, endTime, options) {
|
|
998
|
-
return tslib.__asyncGenerator(this, arguments, function* listChangesBySubscriptionPagingAll_1() {
|
|
999
|
-
var _a, e_2, _b, _c;
|
|
1000
|
-
try {
|
|
1001
|
-
for (var _d = true, _e = tslib.__asyncValues(this.listChangesBySubscriptionPagingPage(startTime, endTime, options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
1002
|
-
_c = _f.value;
|
|
1003
|
-
_d = false;
|
|
1004
|
-
const page = _c;
|
|
1005
|
-
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
|
1006
|
-
}
|
|
1007
|
-
}
|
|
1008
|
-
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
1009
|
-
finally {
|
|
1010
|
-
try {
|
|
1011
|
-
if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
|
|
1012
|
-
}
|
|
1013
|
-
finally { if (e_2) throw e_2.error; }
|
|
1014
|
-
}
|
|
1015
|
-
});
|
|
1016
|
-
}
|
|
1017
|
-
/**
|
|
1018
|
-
* List the changes of a resource group within the specified time range. Customer data will always be
|
|
1019
|
-
* masked.
|
|
1020
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
1021
|
-
* @param startTime Specifies the start time of the changes request.
|
|
1022
|
-
* @param endTime Specifies the end time of the changes request.
|
|
1023
|
-
* @param options The options parameters.
|
|
1024
|
-
*/
|
|
1025
|
-
_listChangesByResourceGroup(resourceGroupName, startTime, endTime, options) {
|
|
1026
|
-
return this.client.sendOperationRequest({ resourceGroupName, startTime, endTime, options }, listChangesByResourceGroupOperationSpec);
|
|
1027
|
-
}
|
|
1028
|
-
/**
|
|
1029
|
-
* List the changes of a subscription within the specified time range. Customer data will always be
|
|
1030
|
-
* masked.
|
|
1031
|
-
* @param startTime Specifies the start time of the changes request.
|
|
1032
|
-
* @param endTime Specifies the end time of the changes request.
|
|
1033
|
-
* @param options The options parameters.
|
|
1034
|
-
*/
|
|
1035
|
-
_listChangesBySubscription(startTime, endTime, options) {
|
|
1036
|
-
return this.client.sendOperationRequest({ startTime, endTime, options }, listChangesBySubscriptionOperationSpec);
|
|
1037
|
-
}
|
|
1038
|
-
/**
|
|
1039
|
-
* ListChangesByResourceGroupNext
|
|
1040
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
1041
|
-
* @param startTime Specifies the start time of the changes request.
|
|
1042
|
-
* @param endTime Specifies the end time of the changes request.
|
|
1043
|
-
* @param nextLink The nextLink from the previous successful call to the ListChangesByResourceGroup
|
|
1044
|
-
* method.
|
|
1045
|
-
* @param options The options parameters.
|
|
1046
|
-
*/
|
|
1047
|
-
_listChangesByResourceGroupNext(resourceGroupName, startTime, endTime, nextLink, options) {
|
|
1048
|
-
return this.client.sendOperationRequest({ resourceGroupName, startTime, endTime, nextLink, options }, listChangesByResourceGroupNextOperationSpec);
|
|
1049
|
-
}
|
|
1050
|
-
/**
|
|
1051
|
-
* ListChangesBySubscriptionNext
|
|
1052
|
-
* @param startTime Specifies the start time of the changes request.
|
|
1053
|
-
* @param endTime Specifies the end time of the changes request.
|
|
1054
|
-
* @param nextLink The nextLink from the previous successful call to the ListChangesBySubscription
|
|
1055
|
-
* method.
|
|
1056
|
-
* @param options The options parameters.
|
|
1057
|
-
*/
|
|
1058
|
-
_listChangesBySubscriptionNext(startTime, endTime, nextLink, options) {
|
|
1059
|
-
return this.client.sendOperationRequest({ startTime, endTime, nextLink, options }, listChangesBySubscriptionNextOperationSpec);
|
|
1060
|
-
}
|
|
1061
|
-
}
|
|
1062
|
-
// Operation Specifications
|
|
1063
|
-
const serializer = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
1064
|
-
const listChangesByResourceGroupOperationSpec = {
|
|
1065
|
-
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ChangeAnalysis/changes",
|
|
1066
|
-
httpMethod: "GET",
|
|
1067
|
-
responses: {
|
|
1068
|
-
200: {
|
|
1069
|
-
bodyMapper: ChangeList
|
|
1070
|
-
},
|
|
1071
|
-
default: {
|
|
1072
|
-
bodyMapper: ErrorResponse
|
|
1073
|
-
}
|
|
1074
|
-
},
|
|
1075
|
-
queryParameters: [
|
|
1076
|
-
apiVersion,
|
|
1077
|
-
skipToken,
|
|
1078
|
-
startTime,
|
|
1079
|
-
endTime
|
|
1080
|
-
],
|
|
1081
|
-
urlParameters: [
|
|
1082
|
-
$host,
|
|
1083
|
-
subscriptionId,
|
|
1084
|
-
resourceGroupName
|
|
1085
|
-
],
|
|
1086
|
-
headerParameters: [accept],
|
|
1087
|
-
serializer
|
|
1088
|
-
};
|
|
1089
|
-
const listChangesBySubscriptionOperationSpec = {
|
|
1090
|
-
path: "/subscriptions/{subscriptionId}/providers/Microsoft.ChangeAnalysis/changes",
|
|
1091
|
-
httpMethod: "GET",
|
|
1092
|
-
responses: {
|
|
1093
|
-
200: {
|
|
1094
|
-
bodyMapper: ChangeList
|
|
1095
|
-
},
|
|
1096
|
-
default: {
|
|
1097
|
-
bodyMapper: ErrorResponse
|
|
1098
|
-
}
|
|
1099
|
-
},
|
|
1100
|
-
queryParameters: [
|
|
1101
|
-
apiVersion,
|
|
1102
|
-
skipToken,
|
|
1103
|
-
startTime,
|
|
1104
|
-
endTime
|
|
1105
|
-
],
|
|
1106
|
-
urlParameters: [$host, subscriptionId],
|
|
1107
|
-
headerParameters: [accept],
|
|
1108
|
-
serializer
|
|
1109
|
-
};
|
|
1110
|
-
const listChangesByResourceGroupNextOperationSpec = {
|
|
1111
|
-
path: "{nextLink}",
|
|
1112
|
-
httpMethod: "GET",
|
|
1113
|
-
responses: {
|
|
1114
|
-
200: {
|
|
1115
|
-
bodyMapper: ChangeList
|
|
1116
|
-
},
|
|
1117
|
-
default: {
|
|
1118
|
-
bodyMapper: ErrorResponse
|
|
1119
|
-
}
|
|
1120
|
-
},
|
|
1121
|
-
queryParameters: [
|
|
1122
|
-
apiVersion,
|
|
1123
|
-
skipToken,
|
|
1124
|
-
startTime,
|
|
1125
|
-
endTime
|
|
1126
|
-
],
|
|
1127
|
-
urlParameters: [
|
|
1128
|
-
$host,
|
|
1129
|
-
nextLink,
|
|
1130
|
-
subscriptionId,
|
|
1131
|
-
resourceGroupName
|
|
1132
|
-
],
|
|
1133
|
-
headerParameters: [accept],
|
|
1134
|
-
serializer
|
|
1135
|
-
};
|
|
1136
|
-
const listChangesBySubscriptionNextOperationSpec = {
|
|
1137
|
-
path: "{nextLink}",
|
|
1138
|
-
httpMethod: "GET",
|
|
1139
|
-
responses: {
|
|
1140
|
-
200: {
|
|
1141
|
-
bodyMapper: ChangeList
|
|
1142
|
-
},
|
|
1143
|
-
default: {
|
|
1144
|
-
bodyMapper: ErrorResponse
|
|
1145
|
-
}
|
|
1146
|
-
},
|
|
1147
|
-
queryParameters: [
|
|
1148
|
-
apiVersion,
|
|
1149
|
-
skipToken,
|
|
1150
|
-
startTime,
|
|
1151
|
-
endTime
|
|
1152
|
-
],
|
|
1153
|
-
urlParameters: [
|
|
1154
|
-
$host,
|
|
1155
|
-
nextLink,
|
|
1156
|
-
subscriptionId
|
|
1157
|
-
],
|
|
1158
|
-
headerParameters: [accept],
|
|
1159
|
-
serializer
|
|
1160
|
-
};
|
|
1161
|
-
|
|
1162
|
-
/*
|
|
1163
|
-
* Copyright (c) Microsoft Corporation.
|
|
1164
|
-
* Licensed under the MIT License.
|
|
1165
|
-
*
|
|
1166
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
1167
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
1168
|
-
*/
|
|
1169
|
-
class AzureChangeAnalysisManagementClient extends coreClient__namespace.ServiceClient {
|
|
1170
|
-
/**
|
|
1171
|
-
* Initializes a new instance of the AzureChangeAnalysisManagementClient class.
|
|
1172
|
-
* @param credentials Subscription credentials which uniquely identify client subscription.
|
|
1173
|
-
* @param subscriptionId The ID of the target subscription.
|
|
1174
|
-
* @param options The parameter options
|
|
1175
|
-
*/
|
|
1176
|
-
constructor(credentials, subscriptionId, options) {
|
|
1177
|
-
var _a, _b, _c;
|
|
1178
|
-
if (credentials === undefined) {
|
|
1179
|
-
throw new Error("'credentials' cannot be null");
|
|
1180
|
-
}
|
|
1181
|
-
if (subscriptionId === undefined) {
|
|
1182
|
-
throw new Error("'subscriptionId' cannot be null");
|
|
1183
|
-
}
|
|
1184
|
-
// Initializing default values for options
|
|
1185
|
-
if (!options) {
|
|
1186
|
-
options = {};
|
|
1187
|
-
}
|
|
1188
|
-
const defaults = {
|
|
1189
|
-
requestContentType: "application/json; charset=utf-8",
|
|
1190
|
-
credential: credentials
|
|
1191
|
-
};
|
|
1192
|
-
const packageDetails = `azsdk-js-arm-changeanalysis/2.1.1`;
|
|
1193
|
-
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
1194
|
-
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
|
1195
|
-
: `${packageDetails}`;
|
|
1196
|
-
const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
|
|
1197
|
-
userAgentPrefix
|
|
1198
|
-
}, endpoint: (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUri) !== null && _b !== void 0 ? _b : "https://management.azure.com" });
|
|
1199
|
-
super(optionsWithDefaults);
|
|
1200
|
-
let bearerTokenAuthenticationPolicyFound = false;
|
|
1201
|
-
if ((options === null || options === void 0 ? void 0 : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
|
|
1202
|
-
const pipelinePolicies = options.pipeline.getOrderedPolicies();
|
|
1203
|
-
bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
|
|
1204
|
-
coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName);
|
|
1205
|
-
}
|
|
1206
|
-
if (!options ||
|
|
1207
|
-
!options.pipeline ||
|
|
1208
|
-
options.pipeline.getOrderedPolicies().length == 0 ||
|
|
1209
|
-
!bearerTokenAuthenticationPolicyFound) {
|
|
1210
|
-
this.pipeline.removePolicy({
|
|
1211
|
-
name: coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName
|
|
1212
|
-
});
|
|
1213
|
-
this.pipeline.addPolicy(coreRestPipeline__namespace.bearerTokenAuthenticationPolicy({
|
|
1214
|
-
credential: credentials,
|
|
1215
|
-
scopes: (_c = optionsWithDefaults.credentialScopes) !== null && _c !== void 0 ? _c : `${optionsWithDefaults.endpoint}/.default`,
|
|
1216
|
-
challengeCallbacks: {
|
|
1217
|
-
authorizeRequestOnChallenge: coreClient__namespace.authorizeRequestOnClaimChallenge
|
|
1218
|
-
}
|
|
1219
|
-
}));
|
|
1220
|
-
}
|
|
1221
|
-
// Parameter assignments
|
|
1222
|
-
this.subscriptionId = subscriptionId;
|
|
1223
|
-
// Assigning values to Constant parameters
|
|
1224
|
-
this.$host = options.$host || "https://management.azure.com";
|
|
1225
|
-
this.apiVersion = options.apiVersion || "2021-04-01";
|
|
1226
|
-
this.operations = new OperationsImpl(this);
|
|
1227
|
-
this.resourceChanges = new ResourceChangesImpl(this);
|
|
1228
|
-
this.changes = new ChangesImpl(this);
|
|
1229
|
-
this.addCustomApiVersionPolicy(options.apiVersion);
|
|
1230
|
-
}
|
|
1231
|
-
/** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */
|
|
1232
|
-
addCustomApiVersionPolicy(apiVersion) {
|
|
1233
|
-
if (!apiVersion) {
|
|
1234
|
-
return;
|
|
1235
|
-
}
|
|
1236
|
-
const apiVersionPolicy = {
|
|
1237
|
-
name: "CustomApiVersionPolicy",
|
|
1238
|
-
sendRequest(request, next) {
|
|
1239
|
-
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1240
|
-
const param = request.url.split("?");
|
|
1241
|
-
if (param.length > 1) {
|
|
1242
|
-
const newParams = param[1].split("&").map((item) => {
|
|
1243
|
-
if (item.indexOf("api-version") > -1) {
|
|
1244
|
-
return "api-version=" + apiVersion;
|
|
1245
|
-
}
|
|
1246
|
-
else {
|
|
1247
|
-
return item;
|
|
1248
|
-
}
|
|
1249
|
-
});
|
|
1250
|
-
request.url = param[0] + "?" + newParams.join("&");
|
|
1251
|
-
}
|
|
1252
|
-
return next(request);
|
|
1253
|
-
});
|
|
1254
|
-
}
|
|
1255
|
-
};
|
|
1256
|
-
this.pipeline.addPolicy(apiVersionPolicy);
|
|
1257
|
-
}
|
|
1258
|
-
}
|
|
1259
|
-
|
|
1260
|
-
exports.AzureChangeAnalysisManagementClient = AzureChangeAnalysisManagementClient;
|
|
1261
|
-
exports.getContinuationToken = getContinuationToken;
|
|
1262
|
-
//# sourceMappingURL=index.js.map
|