@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
|
@@ -0,0 +1,296 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*
|
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
+
*/
|
|
8
|
+
import { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
|
|
9
|
+
import { setContinuationToken } from "../pagingHelper.js";
|
|
10
|
+
import * as coreClient from "@azure/core-client";
|
|
11
|
+
import * as Mappers from "../models/mappers.js";
|
|
12
|
+
import * as Parameters from "../models/parameters.js";
|
|
13
|
+
/// <reference lib="esnext.asynciterable" />
|
|
14
|
+
/** Class containing Changes operations. */
|
|
15
|
+
export class ChangesImpl {
|
|
16
|
+
/**
|
|
17
|
+
* Initialize a new instance of the class Changes class.
|
|
18
|
+
* @param client Reference to the service client
|
|
19
|
+
*/
|
|
20
|
+
constructor(client) {
|
|
21
|
+
this.client = client;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* List the changes of a resource group within the specified time range. Customer data will always be
|
|
25
|
+
* masked.
|
|
26
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
27
|
+
* @param startTime Specifies the start time of the changes request.
|
|
28
|
+
* @param endTime Specifies the end time of the changes request.
|
|
29
|
+
* @param options The options parameters.
|
|
30
|
+
*/
|
|
31
|
+
listChangesByResourceGroup(resourceGroupName, startTime, endTime, options) {
|
|
32
|
+
const iter = this.listChangesByResourceGroupPagingAll(resourceGroupName, startTime, endTime, options);
|
|
33
|
+
return {
|
|
34
|
+
next() {
|
|
35
|
+
return iter.next();
|
|
36
|
+
},
|
|
37
|
+
[Symbol.asyncIterator]() {
|
|
38
|
+
return this;
|
|
39
|
+
},
|
|
40
|
+
byPage: (settings) => {
|
|
41
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
42
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
43
|
+
}
|
|
44
|
+
return this.listChangesByResourceGroupPagingPage(resourceGroupName, startTime, endTime, options, settings);
|
|
45
|
+
}
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
listChangesByResourceGroupPagingPage(resourceGroupName, startTime, endTime, options, settings) {
|
|
49
|
+
return __asyncGenerator(this, arguments, function* listChangesByResourceGroupPagingPage_1() {
|
|
50
|
+
let result;
|
|
51
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
52
|
+
if (!continuationToken) {
|
|
53
|
+
result = yield __await(this._listChangesByResourceGroup(resourceGroupName, startTime, endTime, options));
|
|
54
|
+
let page = result.value || [];
|
|
55
|
+
continuationToken = result.nextLink;
|
|
56
|
+
setContinuationToken(page, continuationToken);
|
|
57
|
+
yield yield __await(page);
|
|
58
|
+
}
|
|
59
|
+
while (continuationToken) {
|
|
60
|
+
result = yield __await(this._listChangesByResourceGroupNext(resourceGroupName, startTime, endTime, continuationToken, options));
|
|
61
|
+
continuationToken = result.nextLink;
|
|
62
|
+
let page = result.value || [];
|
|
63
|
+
setContinuationToken(page, continuationToken);
|
|
64
|
+
yield yield __await(page);
|
|
65
|
+
}
|
|
66
|
+
});
|
|
67
|
+
}
|
|
68
|
+
listChangesByResourceGroupPagingAll(resourceGroupName, startTime, endTime, options) {
|
|
69
|
+
return __asyncGenerator(this, arguments, function* listChangesByResourceGroupPagingAll_1() {
|
|
70
|
+
var _a, e_1, _b, _c;
|
|
71
|
+
try {
|
|
72
|
+
for (var _d = true, _e = __asyncValues(this.listChangesByResourceGroupPagingPage(resourceGroupName, startTime, endTime, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
73
|
+
_c = _f.value;
|
|
74
|
+
_d = false;
|
|
75
|
+
const page = _c;
|
|
76
|
+
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
80
|
+
finally {
|
|
81
|
+
try {
|
|
82
|
+
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
|
83
|
+
}
|
|
84
|
+
finally { if (e_1) throw e_1.error; }
|
|
85
|
+
}
|
|
86
|
+
});
|
|
87
|
+
}
|
|
88
|
+
/**
|
|
89
|
+
* List the changes of a subscription within the specified time range. Customer data will always be
|
|
90
|
+
* masked.
|
|
91
|
+
* @param startTime Specifies the start time of the changes request.
|
|
92
|
+
* @param endTime Specifies the end time of the changes request.
|
|
93
|
+
* @param options The options parameters.
|
|
94
|
+
*/
|
|
95
|
+
listChangesBySubscription(startTime, endTime, options) {
|
|
96
|
+
const iter = this.listChangesBySubscriptionPagingAll(startTime, endTime, options);
|
|
97
|
+
return {
|
|
98
|
+
next() {
|
|
99
|
+
return iter.next();
|
|
100
|
+
},
|
|
101
|
+
[Symbol.asyncIterator]() {
|
|
102
|
+
return this;
|
|
103
|
+
},
|
|
104
|
+
byPage: (settings) => {
|
|
105
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
106
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
107
|
+
}
|
|
108
|
+
return this.listChangesBySubscriptionPagingPage(startTime, endTime, options, settings);
|
|
109
|
+
}
|
|
110
|
+
};
|
|
111
|
+
}
|
|
112
|
+
listChangesBySubscriptionPagingPage(startTime, endTime, options, settings) {
|
|
113
|
+
return __asyncGenerator(this, arguments, function* listChangesBySubscriptionPagingPage_1() {
|
|
114
|
+
let result;
|
|
115
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
116
|
+
if (!continuationToken) {
|
|
117
|
+
result = yield __await(this._listChangesBySubscription(startTime, endTime, options));
|
|
118
|
+
let page = result.value || [];
|
|
119
|
+
continuationToken = result.nextLink;
|
|
120
|
+
setContinuationToken(page, continuationToken);
|
|
121
|
+
yield yield __await(page);
|
|
122
|
+
}
|
|
123
|
+
while (continuationToken) {
|
|
124
|
+
result = yield __await(this._listChangesBySubscriptionNext(startTime, endTime, continuationToken, options));
|
|
125
|
+
continuationToken = result.nextLink;
|
|
126
|
+
let page = result.value || [];
|
|
127
|
+
setContinuationToken(page, continuationToken);
|
|
128
|
+
yield yield __await(page);
|
|
129
|
+
}
|
|
130
|
+
});
|
|
131
|
+
}
|
|
132
|
+
listChangesBySubscriptionPagingAll(startTime, endTime, options) {
|
|
133
|
+
return __asyncGenerator(this, arguments, function* listChangesBySubscriptionPagingAll_1() {
|
|
134
|
+
var _a, e_2, _b, _c;
|
|
135
|
+
try {
|
|
136
|
+
for (var _d = true, _e = __asyncValues(this.listChangesBySubscriptionPagingPage(startTime, endTime, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
137
|
+
_c = _f.value;
|
|
138
|
+
_d = false;
|
|
139
|
+
const page = _c;
|
|
140
|
+
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
144
|
+
finally {
|
|
145
|
+
try {
|
|
146
|
+
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
|
147
|
+
}
|
|
148
|
+
finally { if (e_2) throw e_2.error; }
|
|
149
|
+
}
|
|
150
|
+
});
|
|
151
|
+
}
|
|
152
|
+
/**
|
|
153
|
+
* List the changes of a resource group within the specified time range. Customer data will always be
|
|
154
|
+
* masked.
|
|
155
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
156
|
+
* @param startTime Specifies the start time of the changes request.
|
|
157
|
+
* @param endTime Specifies the end time of the changes request.
|
|
158
|
+
* @param options The options parameters.
|
|
159
|
+
*/
|
|
160
|
+
_listChangesByResourceGroup(resourceGroupName, startTime, endTime, options) {
|
|
161
|
+
return this.client.sendOperationRequest({ resourceGroupName, startTime, endTime, options }, listChangesByResourceGroupOperationSpec);
|
|
162
|
+
}
|
|
163
|
+
/**
|
|
164
|
+
* List the changes of a subscription within the specified time range. Customer data will always be
|
|
165
|
+
* masked.
|
|
166
|
+
* @param startTime Specifies the start time of the changes request.
|
|
167
|
+
* @param endTime Specifies the end time of the changes request.
|
|
168
|
+
* @param options The options parameters.
|
|
169
|
+
*/
|
|
170
|
+
_listChangesBySubscription(startTime, endTime, options) {
|
|
171
|
+
return this.client.sendOperationRequest({ startTime, endTime, options }, listChangesBySubscriptionOperationSpec);
|
|
172
|
+
}
|
|
173
|
+
/**
|
|
174
|
+
* ListChangesByResourceGroupNext
|
|
175
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
176
|
+
* @param startTime Specifies the start time of the changes request.
|
|
177
|
+
* @param endTime Specifies the end time of the changes request.
|
|
178
|
+
* @param nextLink The nextLink from the previous successful call to the ListChangesByResourceGroup
|
|
179
|
+
* method.
|
|
180
|
+
* @param options The options parameters.
|
|
181
|
+
*/
|
|
182
|
+
_listChangesByResourceGroupNext(resourceGroupName, startTime, endTime, nextLink, options) {
|
|
183
|
+
return this.client.sendOperationRequest({ resourceGroupName, startTime, endTime, nextLink, options }, listChangesByResourceGroupNextOperationSpec);
|
|
184
|
+
}
|
|
185
|
+
/**
|
|
186
|
+
* ListChangesBySubscriptionNext
|
|
187
|
+
* @param startTime Specifies the start time of the changes request.
|
|
188
|
+
* @param endTime Specifies the end time of the changes request.
|
|
189
|
+
* @param nextLink The nextLink from the previous successful call to the ListChangesBySubscription
|
|
190
|
+
* method.
|
|
191
|
+
* @param options The options parameters.
|
|
192
|
+
*/
|
|
193
|
+
_listChangesBySubscriptionNext(startTime, endTime, nextLink, options) {
|
|
194
|
+
return this.client.sendOperationRequest({ startTime, endTime, nextLink, options }, listChangesBySubscriptionNextOperationSpec);
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
// Operation Specifications
|
|
198
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
199
|
+
const listChangesByResourceGroupOperationSpec = {
|
|
200
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ChangeAnalysis/changes",
|
|
201
|
+
httpMethod: "GET",
|
|
202
|
+
responses: {
|
|
203
|
+
200: {
|
|
204
|
+
bodyMapper: Mappers.ChangeList
|
|
205
|
+
},
|
|
206
|
+
default: {
|
|
207
|
+
bodyMapper: Mappers.ErrorResponse
|
|
208
|
+
}
|
|
209
|
+
},
|
|
210
|
+
queryParameters: [
|
|
211
|
+
Parameters.apiVersion,
|
|
212
|
+
Parameters.skipToken,
|
|
213
|
+
Parameters.startTime,
|
|
214
|
+
Parameters.endTime
|
|
215
|
+
],
|
|
216
|
+
urlParameters: [
|
|
217
|
+
Parameters.$host,
|
|
218
|
+
Parameters.subscriptionId,
|
|
219
|
+
Parameters.resourceGroupName
|
|
220
|
+
],
|
|
221
|
+
headerParameters: [Parameters.accept],
|
|
222
|
+
serializer
|
|
223
|
+
};
|
|
224
|
+
const listChangesBySubscriptionOperationSpec = {
|
|
225
|
+
path: "/subscriptions/{subscriptionId}/providers/Microsoft.ChangeAnalysis/changes",
|
|
226
|
+
httpMethod: "GET",
|
|
227
|
+
responses: {
|
|
228
|
+
200: {
|
|
229
|
+
bodyMapper: Mappers.ChangeList
|
|
230
|
+
},
|
|
231
|
+
default: {
|
|
232
|
+
bodyMapper: Mappers.ErrorResponse
|
|
233
|
+
}
|
|
234
|
+
},
|
|
235
|
+
queryParameters: [
|
|
236
|
+
Parameters.apiVersion,
|
|
237
|
+
Parameters.skipToken,
|
|
238
|
+
Parameters.startTime,
|
|
239
|
+
Parameters.endTime
|
|
240
|
+
],
|
|
241
|
+
urlParameters: [Parameters.$host, Parameters.subscriptionId],
|
|
242
|
+
headerParameters: [Parameters.accept],
|
|
243
|
+
serializer
|
|
244
|
+
};
|
|
245
|
+
const listChangesByResourceGroupNextOperationSpec = {
|
|
246
|
+
path: "{nextLink}",
|
|
247
|
+
httpMethod: "GET",
|
|
248
|
+
responses: {
|
|
249
|
+
200: {
|
|
250
|
+
bodyMapper: Mappers.ChangeList
|
|
251
|
+
},
|
|
252
|
+
default: {
|
|
253
|
+
bodyMapper: Mappers.ErrorResponse
|
|
254
|
+
}
|
|
255
|
+
},
|
|
256
|
+
queryParameters: [
|
|
257
|
+
Parameters.apiVersion,
|
|
258
|
+
Parameters.skipToken,
|
|
259
|
+
Parameters.startTime,
|
|
260
|
+
Parameters.endTime
|
|
261
|
+
],
|
|
262
|
+
urlParameters: [
|
|
263
|
+
Parameters.$host,
|
|
264
|
+
Parameters.nextLink,
|
|
265
|
+
Parameters.subscriptionId,
|
|
266
|
+
Parameters.resourceGroupName
|
|
267
|
+
],
|
|
268
|
+
headerParameters: [Parameters.accept],
|
|
269
|
+
serializer
|
|
270
|
+
};
|
|
271
|
+
const listChangesBySubscriptionNextOperationSpec = {
|
|
272
|
+
path: "{nextLink}",
|
|
273
|
+
httpMethod: "GET",
|
|
274
|
+
responses: {
|
|
275
|
+
200: {
|
|
276
|
+
bodyMapper: Mappers.ChangeList
|
|
277
|
+
},
|
|
278
|
+
default: {
|
|
279
|
+
bodyMapper: Mappers.ErrorResponse
|
|
280
|
+
}
|
|
281
|
+
},
|
|
282
|
+
queryParameters: [
|
|
283
|
+
Parameters.apiVersion,
|
|
284
|
+
Parameters.skipToken,
|
|
285
|
+
Parameters.startTime,
|
|
286
|
+
Parameters.endTime
|
|
287
|
+
],
|
|
288
|
+
urlParameters: [
|
|
289
|
+
Parameters.$host,
|
|
290
|
+
Parameters.nextLink,
|
|
291
|
+
Parameters.subscriptionId
|
|
292
|
+
],
|
|
293
|
+
headerParameters: [Parameters.accept],
|
|
294
|
+
serializer
|
|
295
|
+
};
|
|
296
|
+
//# sourceMappingURL=changes.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"changes.js","sourceRoot":"","sources":["../../../src/operations/changes.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAGH,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAE1D,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AActD,4CAA4C;AAC5C,2CAA2C;AAC3C,MAAM,OAAO,WAAW;IAGtB;;;OAGG;IACH,YAAY,MAA2C;QACrD,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;;OAOG;IACI,0BAA0B,CAC/B,iBAAyB,EACzB,SAAe,EACf,OAAa,EACb,OAAyD;QAEzD,MAAM,IAAI,GAAG,IAAI,CAAC,mCAAmC,CACnD,iBAAiB,EACjB,SAAS,EACT,OAAO,EACP,OAAO,CACR,CAAC;QACF,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAAC,MAAM,CAAC,aAAa,CAAC;gBACpB,OAAO,IAAI,CAAC;YACd,CAAC;YACD,MAAM,EAAE,CAAC,QAAuB,EAAE,EAAE;gBAClC,IAAI,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,WAAW,EAAE,CAAC;oBAC1B,MAAM,IAAI,KAAK,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U,CAAC,OAAO;KACnB;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,QAAQ;QACnB,UAAU,CAAC,cAAc;KAC1B;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","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 { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { Changes } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { AzureChangeAnalysisManagementClient } from \"../azureChangeAnalysisManagementClient.js\";\nimport {\n Change,\n ChangesListChangesByResourceGroupNextOptionalParams,\n ChangesListChangesByResourceGroupOptionalParams,\n ChangesListChangesByResourceGroupResponse,\n ChangesListChangesBySubscriptionNextOptionalParams,\n ChangesListChangesBySubscriptionOptionalParams,\n ChangesListChangesBySubscriptionResponse,\n ChangesListChangesByResourceGroupNextResponse,\n ChangesListChangesBySubscriptionNextResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing Changes operations. */\nexport class ChangesImpl implements Changes {\n private readonly client: AzureChangeAnalysisManagementClient;\n\n /**\n * Initialize a new instance of the class Changes class.\n * @param client Reference to the service client\n */\n constructor(client: AzureChangeAnalysisManagementClient) {\n this.client = client;\n }\n\n /**\n * List the changes of a resource group within the specified time range. Customer data will always be\n * masked.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param startTime Specifies the start time of the changes request.\n * @param endTime Specifies the end time of the changes request.\n * @param options The options parameters.\n */\n public listChangesByResourceGroup(\n resourceGroupName: string,\n startTime: Date,\n endTime: Date,\n options?: ChangesListChangesByResourceGroupOptionalParams\n ): PagedAsyncIterableIterator<Change> {\n const iter = this.listChangesByResourceGroupPagingAll(\n resourceGroupName,\n startTime,\n endTime,\n options\n );\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listChangesByResourceGroupPagingPage(\n resourceGroupName,\n startTime,\n endTime,\n options,\n settings\n );\n }\n };\n }\n\n private async *listChangesByResourceGroupPagingPage(\n resourceGroupName: string,\n startTime: Date,\n endTime: Date,\n options?: ChangesListChangesByResourceGroupOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<Change[]> {\n let result: ChangesListChangesByResourceGroupResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listChangesByResourceGroup(\n resourceGroupName,\n startTime,\n endTime,\n options\n );\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listChangesByResourceGroupNext(\n resourceGroupName,\n startTime,\n endTime,\n continuationToken,\n options\n );\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listChangesByResourceGroupPagingAll(\n resourceGroupName: string,\n startTime: Date,\n endTime: Date,\n options?: ChangesListChangesByResourceGroupOptionalParams\n ): AsyncIterableIterator<Change> {\n for await (const page of this.listChangesByResourceGroupPagingPage(\n resourceGroupName,\n startTime,\n endTime,\n options\n )) {\n yield* page;\n }\n }\n\n /**\n * List the changes of a subscription within the specified time range. Customer data will always be\n * masked.\n * @param startTime Specifies the start time of the changes request.\n * @param endTime Specifies the end time of the changes request.\n * @param options The options parameters.\n */\n public listChangesBySubscription(\n startTime: Date,\n endTime: Date,\n options?: ChangesListChangesBySubscriptionOptionalParams\n ): PagedAsyncIterableIterator<Change> {\n const iter = this.listChangesBySubscriptionPagingAll(\n startTime,\n endTime,\n options\n );\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listChangesBySubscriptionPagingPage(\n startTime,\n endTime,\n options,\n settings\n );\n }\n };\n }\n\n private async *listChangesBySubscriptionPagingPage(\n startTime: Date,\n endTime: Date,\n options?: ChangesListChangesBySubscriptionOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<Change[]> {\n let result: ChangesListChangesBySubscriptionResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listChangesBySubscription(\n startTime,\n endTime,\n options\n );\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listChangesBySubscriptionNext(\n startTime,\n endTime,\n continuationToken,\n options\n );\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listChangesBySubscriptionPagingAll(\n startTime: Date,\n endTime: Date,\n options?: ChangesListChangesBySubscriptionOptionalParams\n ): AsyncIterableIterator<Change> {\n for await (const page of this.listChangesBySubscriptionPagingPage(\n startTime,\n endTime,\n options\n )) {\n yield* page;\n }\n }\n\n /**\n * List the changes of a resource group within the specified time range. Customer data will always be\n * masked.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param startTime Specifies the start time of the changes request.\n * @param endTime Specifies the end time of the changes request.\n * @param options The options parameters.\n */\n private _listChangesByResourceGroup(\n resourceGroupName: string,\n startTime: Date,\n endTime: Date,\n options?: ChangesListChangesByResourceGroupOptionalParams\n ): Promise<ChangesListChangesByResourceGroupResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, startTime, endTime, options },\n listChangesByResourceGroupOperationSpec\n );\n }\n\n /**\n * List the changes of a subscription within the specified time range. Customer data will always be\n * masked.\n * @param startTime Specifies the start time of the changes request.\n * @param endTime Specifies the end time of the changes request.\n * @param options The options parameters.\n */\n private _listChangesBySubscription(\n startTime: Date,\n endTime: Date,\n options?: ChangesListChangesBySubscriptionOptionalParams\n ): Promise<ChangesListChangesBySubscriptionResponse> {\n return this.client.sendOperationRequest(\n { startTime, endTime, options },\n listChangesBySubscriptionOperationSpec\n );\n }\n\n /**\n * ListChangesByResourceGroupNext\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param startTime Specifies the start time of the changes request.\n * @param endTime Specifies the end time of the changes request.\n * @param nextLink The nextLink from the previous successful call to the ListChangesByResourceGroup\n * method.\n * @param options The options parameters.\n */\n private _listChangesByResourceGroupNext(\n resourceGroupName: string,\n startTime: Date,\n endTime: Date,\n nextLink: string,\n options?: ChangesListChangesByResourceGroupNextOptionalParams\n ): Promise<ChangesListChangesByResourceGroupNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, startTime, endTime, nextLink, options },\n listChangesByResourceGroupNextOperationSpec\n );\n }\n\n /**\n * ListChangesBySubscriptionNext\n * @param startTime Specifies the start time of the changes request.\n * @param endTime Specifies the end time of the changes request.\n * @param nextLink The nextLink from the previous successful call to the ListChangesBySubscription\n * method.\n * @param options The options parameters.\n */\n private _listChangesBySubscriptionNext(\n startTime: Date,\n endTime: Date,\n nextLink: string,\n options?: ChangesListChangesBySubscriptionNextOptionalParams\n ): Promise<ChangesListChangesBySubscriptionNextResponse> {\n return this.client.sendOperationRequest(\n { startTime, endTime, nextLink, options },\n listChangesBySubscriptionNextOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listChangesByResourceGroupOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ChangeAnalysis/changes\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ChangeList\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [\n Parameters.apiVersion,\n Parameters.skipToken,\n Parameters.startTime,\n Parameters.endTime\n ],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listChangesBySubscriptionOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/providers/Microsoft.ChangeAnalysis/changes\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ChangeList\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [\n Parameters.apiVersion,\n Parameters.skipToken,\n Parameters.startTime,\n Parameters.endTime\n ],\n urlParameters: [Parameters.$host, Parameters.subscriptionId],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listChangesByResourceGroupNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ChangeList\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [\n Parameters.apiVersion,\n Parameters.skipToken,\n Parameters.startTime,\n Parameters.endTime\n ],\n urlParameters: [\n Parameters.$host,\n Parameters.nextLink,\n Parameters.subscriptionId,\n Parameters.resourceGroupName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listChangesBySubscriptionNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ChangeList\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [\n Parameters.apiVersion,\n Parameters.skipToken,\n Parameters.startTime,\n Parameters.endTime\n ],\n urlParameters: [\n Parameters.$host,\n Parameters.nextLink,\n Parameters.subscriptionId\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/operations/index.ts"],"names":[],"mappings":"AAQA,cAAc,iBAAiB,CAAC;AAChC,cAAc,sBAAsB,CAAC;AACrC,cAAc,cAAc,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*
|
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
+
*/
|
|
8
|
+
export * from "./operations.js";
|
|
9
|
+
export * from "./resourceChanges.js";
|
|
10
|
+
export * from "./changes.js";
|
|
11
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/operations/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,cAAc,iBAAiB,CAAC;AAChC,cAAc,sBAAsB,CAAC;AACrC,cAAc,cAAc,CAAC","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\nexport * from \"./operations.js\";\nexport * from \"./resourceChanges.js\";\nexport * from \"./changes.js\";\n"]}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
2
|
+
import { Operations } from "../operationsInterfaces/index.js";
|
|
3
|
+
import { AzureChangeAnalysisManagementClient } from "../azureChangeAnalysisManagementClient.js";
|
|
4
|
+
import { ResourceProviderOperationDefinition, OperationsListOptionalParams } from "../models/index.js";
|
|
5
|
+
/** Class containing Operations operations. */
|
|
6
|
+
export declare class OperationsImpl implements Operations {
|
|
7
|
+
private readonly client;
|
|
8
|
+
/**
|
|
9
|
+
* Initialize a new instance of the class Operations class.
|
|
10
|
+
* @param client Reference to the service client
|
|
11
|
+
*/
|
|
12
|
+
constructor(client: AzureChangeAnalysisManagementClient);
|
|
13
|
+
/**
|
|
14
|
+
* Lists all the supported operations by the Microsoft.ChangeAnalysis resource provider along with
|
|
15
|
+
* their descriptions.
|
|
16
|
+
* @param options The options parameters.
|
|
17
|
+
*/
|
|
18
|
+
list(options?: OperationsListOptionalParams): PagedAsyncIterableIterator<ResourceProviderOperationDefinition>;
|
|
19
|
+
private listPagingPage;
|
|
20
|
+
private listPagingAll;
|
|
21
|
+
/**
|
|
22
|
+
* Lists all the supported operations by the Microsoft.ChangeAnalysis resource provider along with
|
|
23
|
+
* their descriptions.
|
|
24
|
+
* @param options The options parameters.
|
|
25
|
+
*/
|
|
26
|
+
private _list;
|
|
27
|
+
/**
|
|
28
|
+
* ListNext
|
|
29
|
+
* @param nextLink The nextLink from the previous successful call to the List method.
|
|
30
|
+
* @param options The options parameters.
|
|
31
|
+
*/
|
|
32
|
+
private _listNext;
|
|
33
|
+
}
|
|
34
|
+
//# sourceMappingURL=operations.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"operations.d.ts","sourceRoot":"","sources":["../../../src/operations/operations.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAgB,MAAM,oBAAoB,CAAC;AAE9E,OAAO,EAAE,UAAU,EAAE,MAAM,kCAAkC,CAAC;AAI9D,OAAO,EAAE,mCAAmC,EAAE,MAAM,2CAA2C,CAAC;AAChG,OAAO,EACL,mCAAmC,EAEnC,4BAA4B,EAG7B,MAAM,oBAAoB,CAAC;AAG5B,8CAA8C;AAC9C,qBAAa,cAAe,YAAW,UAAU;IAC/C,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAsC;IAE7D;;;OAGG;gBACS,MAAM,EAAE,mCAAmC;IAIvD;;;;OAIG;IACI,IAAI,CACT,OAAO,CAAC,EAAE,4BAA4B,GACrC,0BAA0B,CAAC,mCAAmC,CAAC;YAkBnD,cAAc;YAsBd,aAAa;IAQ5B;;;;OAIG;IACH,OAAO,CAAC,KAAK;IAMb;;;;OAIG;IACH,OAAO,CAAC,SAAS;CASlB"}
|
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*
|
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
+
*/
|
|
8
|
+
import { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
|
|
9
|
+
import { setContinuationToken } from "../pagingHelper.js";
|
|
10
|
+
import * as coreClient from "@azure/core-client";
|
|
11
|
+
import * as Mappers from "../models/mappers.js";
|
|
12
|
+
import * as Parameters from "../models/parameters.js";
|
|
13
|
+
/// <reference lib="esnext.asynciterable" />
|
|
14
|
+
/** Class containing Operations operations. */
|
|
15
|
+
export class OperationsImpl {
|
|
16
|
+
/**
|
|
17
|
+
* Initialize a new instance of the class Operations class.
|
|
18
|
+
* @param client Reference to the service client
|
|
19
|
+
*/
|
|
20
|
+
constructor(client) {
|
|
21
|
+
this.client = client;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Lists all the supported operations by the Microsoft.ChangeAnalysis resource provider along with
|
|
25
|
+
* their descriptions.
|
|
26
|
+
* @param options The options parameters.
|
|
27
|
+
*/
|
|
28
|
+
list(options) {
|
|
29
|
+
const iter = this.listPagingAll(options);
|
|
30
|
+
return {
|
|
31
|
+
next() {
|
|
32
|
+
return iter.next();
|
|
33
|
+
},
|
|
34
|
+
[Symbol.asyncIterator]() {
|
|
35
|
+
return this;
|
|
36
|
+
},
|
|
37
|
+
byPage: (settings) => {
|
|
38
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
39
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
40
|
+
}
|
|
41
|
+
return this.listPagingPage(options, settings);
|
|
42
|
+
}
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
listPagingPage(options, settings) {
|
|
46
|
+
return __asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
47
|
+
let result;
|
|
48
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
49
|
+
if (!continuationToken) {
|
|
50
|
+
result = yield __await(this._list(options));
|
|
51
|
+
let page = result.value || [];
|
|
52
|
+
continuationToken = result.nextLink;
|
|
53
|
+
setContinuationToken(page, continuationToken);
|
|
54
|
+
yield yield __await(page);
|
|
55
|
+
}
|
|
56
|
+
while (continuationToken) {
|
|
57
|
+
result = yield __await(this._listNext(continuationToken, options));
|
|
58
|
+
continuationToken = result.nextLink;
|
|
59
|
+
let page = result.value || [];
|
|
60
|
+
setContinuationToken(page, continuationToken);
|
|
61
|
+
yield yield __await(page);
|
|
62
|
+
}
|
|
63
|
+
});
|
|
64
|
+
}
|
|
65
|
+
listPagingAll(options) {
|
|
66
|
+
return __asyncGenerator(this, arguments, function* listPagingAll_1() {
|
|
67
|
+
var _a, e_1, _b, _c;
|
|
68
|
+
try {
|
|
69
|
+
for (var _d = true, _e = __asyncValues(this.listPagingPage(options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
70
|
+
_c = _f.value;
|
|
71
|
+
_d = false;
|
|
72
|
+
const page = _c;
|
|
73
|
+
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
77
|
+
finally {
|
|
78
|
+
try {
|
|
79
|
+
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
|
80
|
+
}
|
|
81
|
+
finally { if (e_1) throw e_1.error; }
|
|
82
|
+
}
|
|
83
|
+
});
|
|
84
|
+
}
|
|
85
|
+
/**
|
|
86
|
+
* Lists all the supported operations by the Microsoft.ChangeAnalysis resource provider along with
|
|
87
|
+
* their descriptions.
|
|
88
|
+
* @param options The options parameters.
|
|
89
|
+
*/
|
|
90
|
+
_list(options) {
|
|
91
|
+
return this.client.sendOperationRequest({ options }, listOperationSpec);
|
|
92
|
+
}
|
|
93
|
+
/**
|
|
94
|
+
* ListNext
|
|
95
|
+
* @param nextLink The nextLink from the previous successful call to the List method.
|
|
96
|
+
* @param options The options parameters.
|
|
97
|
+
*/
|
|
98
|
+
_listNext(nextLink, options) {
|
|
99
|
+
return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec);
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
// Operation Specifications
|
|
103
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
104
|
+
const listOperationSpec = {
|
|
105
|
+
path: "/providers/Microsoft.ChangeAnalysis/operations",
|
|
106
|
+
httpMethod: "GET",
|
|
107
|
+
responses: {
|
|
108
|
+
200: {
|
|
109
|
+
bodyMapper: Mappers.ResourceProviderOperationList
|
|
110
|
+
},
|
|
111
|
+
default: {
|
|
112
|
+
bodyMapper: Mappers.ErrorResponse
|
|
113
|
+
}
|
|
114
|
+
},
|
|
115
|
+
queryParameters: [Parameters.apiVersion, Parameters.skipToken],
|
|
116
|
+
urlParameters: [Parameters.$host],
|
|
117
|
+
headerParameters: [Parameters.accept],
|
|
118
|
+
serializer
|
|
119
|
+
};
|
|
120
|
+
const listNextOperationSpec = {
|
|
121
|
+
path: "{nextLink}",
|
|
122
|
+
httpMethod: "GET",
|
|
123
|
+
responses: {
|
|
124
|
+
200: {
|
|
125
|
+
bodyMapper: Mappers.ResourceProviderOperationList
|
|
126
|
+
},
|
|
127
|
+
default: {
|
|
128
|
+
bodyMapper: Mappers.ErrorResponse
|
|
129
|
+
}
|
|
130
|
+
},
|
|
131
|
+
queryParameters: [Parameters.apiVersion, Parameters.skipToken],
|
|
132
|
+
urlParameters: [Parameters.$host, Parameters.nextLink],
|
|
133
|
+
headerParameters: [Parameters.accept],
|
|
134
|
+
serializer
|
|
135
|
+
};
|
|
136
|
+
//# sourceMappingURL=operations.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"operations.js","sourceRoot":"","sources":["../../../src/operations/operations.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAGH,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAE1D,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAUtD,4CAA4C;AAC5C,8CAA8C;AAC9C,MAAM,OAAO,cAAc;IAGzB;;;OAGG;IACH,YAAY,MAA2C;QACrD,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;OAIG;IACI,IAAI,CACT,OAAsC;QAEtC,MAAM,IAAI,GAAG,IAAI,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC;QACzC,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAAC,MAAM,CAAC,aAAa,CAAC;gBACpB,OAAO,IAAI,CAAC;YACd,CAAC;YACD,MAAM,EAAE,CAAC,QAAuB,EAAE,EAAE;gBAClC,IAAI,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,WAAW,EAAE,CAAC;oBAC1B,MAAM,IAAI,KAAK,CAAC,iDAAiD,CAAC,CAAC;gBACrE,CAAC;gBACD,OAAO,IAAI,CAAC,cAAc,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC;YAChD,CAAC;SACF,CAAC;IACJ,CAAC;IAEc,cAAc,CAC3B,OAAsC,EACtC,QAAuB;;YAEvB,IAAI,MAA8B,CAAC;YACnC,IAAI,iBAAiB,GAAG,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,iBAAiB,CAAC;YACpD,IAAI,CAAC,iBAAiB,EAAE,CAAC;gBACvB,MAAM,GAAG,cAAM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,2BAA2B;AAC3B,MAAM,UAAU,GAAG,UAAU,CAAC,gBAAgB,CAAC,OAAO,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC;AAE3E,MAAM,iBAAiB,GAA6B;IAClD,IAAI,EAAE,gDAAgD;IACtD,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,6BAA6B;SAClD;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,EAAE,UAAU,CAAC,SAAS,CAAC;IAC9D,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,CAAC;IACjC,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,qBAAqB,GAA6B;IACtD,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,6BAA6B;SAClD;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,EAAE,UAAU,CAAC,SAAS,CAAC;IAC9D,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,EAAE,UAAU,CAAC,QAAQ,CAAC;IACtD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","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 { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { Operations } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { AzureChangeAnalysisManagementClient } from \"../azureChangeAnalysisManagementClient.js\";\nimport {\n ResourceProviderOperationDefinition,\n OperationsListNextOptionalParams,\n OperationsListOptionalParams,\n OperationsListResponse,\n OperationsListNextResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing Operations operations. */\nexport class OperationsImpl implements Operations {\n private readonly client: AzureChangeAnalysisManagementClient;\n\n /**\n * Initialize a new instance of the class Operations class.\n * @param client Reference to the service client\n */\n constructor(client: AzureChangeAnalysisManagementClient) {\n this.client = client;\n }\n\n /**\n * Lists all the supported operations by the Microsoft.ChangeAnalysis resource provider along with\n * their descriptions.\n * @param options The options parameters.\n */\n public list(\n options?: OperationsListOptionalParams\n ): PagedAsyncIterableIterator<ResourceProviderOperationDefinition> {\n const iter = this.listPagingAll(options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listPagingPage(options, settings);\n }\n };\n }\n\n private async *listPagingPage(\n options?: OperationsListOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<ResourceProviderOperationDefinition[]> {\n let result: OperationsListResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._list(options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listNext(continuationToken, options);\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listPagingAll(\n options?: OperationsListOptionalParams\n ): AsyncIterableIterator<ResourceProviderOperationDefinition> {\n for await (const page of this.listPagingPage(options)) {\n yield* page;\n }\n }\n\n /**\n * Lists all the supported operations by the Microsoft.ChangeAnalysis resource provider along with\n * their descriptions.\n * @param options The options parameters.\n */\n private _list(\n options?: OperationsListOptionalParams\n ): Promise<OperationsListResponse> {\n return this.client.sendOperationRequest({ options }, listOperationSpec);\n }\n\n /**\n * ListNext\n * @param nextLink The nextLink from the previous successful call to the List method.\n * @param options The options parameters.\n */\n private _listNext(\n nextLink: string,\n options?: OperationsListNextOptionalParams\n ): Promise<OperationsListNextResponse> {\n return this.client.sendOperationRequest(\n { nextLink, options },\n listNextOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.ChangeAnalysis/operations\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ResourceProviderOperationList\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion, Parameters.skipToken],\n urlParameters: [Parameters.$host],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ResourceProviderOperationList\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion, Parameters.skipToken],\n urlParameters: [Parameters.$host, Parameters.nextLink],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
2
|
+
import { ResourceChanges } from "../operationsInterfaces/index.js";
|
|
3
|
+
import { AzureChangeAnalysisManagementClient } from "../azureChangeAnalysisManagementClient.js";
|
|
4
|
+
import { Change, ResourceChangesListOptionalParams } from "../models/index.js";
|
|
5
|
+
/** Class containing ResourceChanges operations. */
|
|
6
|
+
export declare class ResourceChangesImpl implements ResourceChanges {
|
|
7
|
+
private readonly client;
|
|
8
|
+
/**
|
|
9
|
+
* Initialize a new instance of the class ResourceChanges class.
|
|
10
|
+
* @param client Reference to the service client
|
|
11
|
+
*/
|
|
12
|
+
constructor(client: AzureChangeAnalysisManagementClient);
|
|
13
|
+
/**
|
|
14
|
+
* List the changes of a resource within the specified time range. Customer data will be masked if the
|
|
15
|
+
* user doesn't have access.
|
|
16
|
+
* @param resourceId The identifier of the resource.
|
|
17
|
+
* @param startTime Specifies the start time of the changes request.
|
|
18
|
+
* @param endTime Specifies the end time of the changes request.
|
|
19
|
+
* @param options The options parameters.
|
|
20
|
+
*/
|
|
21
|
+
list(resourceId: string, startTime: Date, endTime: Date, options?: ResourceChangesListOptionalParams): PagedAsyncIterableIterator<Change>;
|
|
22
|
+
private listPagingPage;
|
|
23
|
+
private listPagingAll;
|
|
24
|
+
/**
|
|
25
|
+
* List the changes of a resource within the specified time range. Customer data will be masked if the
|
|
26
|
+
* user doesn't have access.
|
|
27
|
+
* @param resourceId The identifier of the resource.
|
|
28
|
+
* @param startTime Specifies the start time of the changes request.
|
|
29
|
+
* @param endTime Specifies the end time of the changes request.
|
|
30
|
+
* @param options The options parameters.
|
|
31
|
+
*/
|
|
32
|
+
private _list;
|
|
33
|
+
/**
|
|
34
|
+
* ListNext
|
|
35
|
+
* @param resourceId The identifier of the resource.
|
|
36
|
+
* @param startTime Specifies the start time of the changes request.
|
|
37
|
+
* @param endTime Specifies the end time of the changes request.
|
|
38
|
+
* @param nextLink The nextLink from the previous successful call to the List method.
|
|
39
|
+
* @param options The options parameters.
|
|
40
|
+
*/
|
|
41
|
+
private _listNext;
|
|
42
|
+
}
|
|
43
|
+
//# sourceMappingURL=resourceChanges.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resourceChanges.d.ts","sourceRoot":"","sources":["../../../src/operations/resourceChanges.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAgB,MAAM,oBAAoB,CAAC;AAE9E,OAAO,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAC;AAInE,OAAO,EAAE,mCAAmC,EAAE,MAAM,2CAA2C,CAAC;AAChG,OAAO,EACL,MAAM,EAEN,iCAAiC,EAGlC,MAAM,oBAAoB,CAAC;AAG5B,mDAAmD;AACnD,qBAAa,mBAAoB,YAAW,eAAe;IACzD,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAsC;IAE7D;;;OAGG;gBACS,MAAM,EAAE,mCAAmC;IAIvD;;;;;;;OAOG;IACI,IAAI,CACT,UAAU,EAAE,MAAM,EAClB,SAAS,EAAE,IAAI,EACf,OAAO,EAAE,IAAI,EACb,OAAO,CAAC,EAAE,iCAAiC,GAC1C,0BAA0B,CAAC,MAAM,CAAC;YAwBtB,cAAc;YA+Bd,aAAa;IAgB5B;;;;;;;OAOG;IACH,OAAO,CAAC,KAAK;IAYb;;;;;;;OAOG;IACH,OAAO,CAAC,SAAS;CAYlB"}
|