@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
|
@@ -1,401 +0,0 @@
|
|
|
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
|
-
|
|
9
|
-
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
|
|
10
|
-
import { setContinuationToken } from "../pagingHelper";
|
|
11
|
-
import { Changes } from "../operationsInterfaces";
|
|
12
|
-
import * as coreClient from "@azure/core-client";
|
|
13
|
-
import * as Mappers from "../models/mappers";
|
|
14
|
-
import * as Parameters from "../models/parameters";
|
|
15
|
-
import { AzureChangeAnalysisManagementClient } from "../azureChangeAnalysisManagementClient";
|
|
16
|
-
import {
|
|
17
|
-
Change,
|
|
18
|
-
ChangesListChangesByResourceGroupNextOptionalParams,
|
|
19
|
-
ChangesListChangesByResourceGroupOptionalParams,
|
|
20
|
-
ChangesListChangesByResourceGroupResponse,
|
|
21
|
-
ChangesListChangesBySubscriptionNextOptionalParams,
|
|
22
|
-
ChangesListChangesBySubscriptionOptionalParams,
|
|
23
|
-
ChangesListChangesBySubscriptionResponse,
|
|
24
|
-
ChangesListChangesByResourceGroupNextResponse,
|
|
25
|
-
ChangesListChangesBySubscriptionNextResponse
|
|
26
|
-
} from "../models";
|
|
27
|
-
|
|
28
|
-
/// <reference lib="esnext.asynciterable" />
|
|
29
|
-
/** Class containing Changes operations. */
|
|
30
|
-
export class ChangesImpl implements Changes {
|
|
31
|
-
private readonly client: AzureChangeAnalysisManagementClient;
|
|
32
|
-
|
|
33
|
-
/**
|
|
34
|
-
* Initialize a new instance of the class Changes class.
|
|
35
|
-
* @param client Reference to the service client
|
|
36
|
-
*/
|
|
37
|
-
constructor(client: AzureChangeAnalysisManagementClient) {
|
|
38
|
-
this.client = client;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
/**
|
|
42
|
-
* List the changes of a resource group within the specified time range. Customer data will always be
|
|
43
|
-
* masked.
|
|
44
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
45
|
-
* @param startTime Specifies the start time of the changes request.
|
|
46
|
-
* @param endTime Specifies the end time of the changes request.
|
|
47
|
-
* @param options The options parameters.
|
|
48
|
-
*/
|
|
49
|
-
public listChangesByResourceGroup(
|
|
50
|
-
resourceGroupName: string,
|
|
51
|
-
startTime: Date,
|
|
52
|
-
endTime: Date,
|
|
53
|
-
options?: ChangesListChangesByResourceGroupOptionalParams
|
|
54
|
-
): PagedAsyncIterableIterator<Change> {
|
|
55
|
-
const iter = this.listChangesByResourceGroupPagingAll(
|
|
56
|
-
resourceGroupName,
|
|
57
|
-
startTime,
|
|
58
|
-
endTime,
|
|
59
|
-
options
|
|
60
|
-
);
|
|
61
|
-
return {
|
|
62
|
-
next() {
|
|
63
|
-
return iter.next();
|
|
64
|
-
},
|
|
65
|
-
[Symbol.asyncIterator]() {
|
|
66
|
-
return this;
|
|
67
|
-
},
|
|
68
|
-
byPage: (settings?: PageSettings) => {
|
|
69
|
-
if (settings?.maxPageSize) {
|
|
70
|
-
throw new Error("maxPageSize is not supported by this operation.");
|
|
71
|
-
}
|
|
72
|
-
return this.listChangesByResourceGroupPagingPage(
|
|
73
|
-
resourceGroupName,
|
|
74
|
-
startTime,
|
|
75
|
-
endTime,
|
|
76
|
-
options,
|
|
77
|
-
settings
|
|
78
|
-
);
|
|
79
|
-
}
|
|
80
|
-
};
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
private async *listChangesByResourceGroupPagingPage(
|
|
84
|
-
resourceGroupName: string,
|
|
85
|
-
startTime: Date,
|
|
86
|
-
endTime: Date,
|
|
87
|
-
options?: ChangesListChangesByResourceGroupOptionalParams,
|
|
88
|
-
settings?: PageSettings
|
|
89
|
-
): AsyncIterableIterator<Change[]> {
|
|
90
|
-
let result: ChangesListChangesByResourceGroupResponse;
|
|
91
|
-
let continuationToken = settings?.continuationToken;
|
|
92
|
-
if (!continuationToken) {
|
|
93
|
-
result = await this._listChangesByResourceGroup(
|
|
94
|
-
resourceGroupName,
|
|
95
|
-
startTime,
|
|
96
|
-
endTime,
|
|
97
|
-
options
|
|
98
|
-
);
|
|
99
|
-
let page = result.value || [];
|
|
100
|
-
continuationToken = result.nextLink;
|
|
101
|
-
setContinuationToken(page, continuationToken);
|
|
102
|
-
yield page;
|
|
103
|
-
}
|
|
104
|
-
while (continuationToken) {
|
|
105
|
-
result = await this._listChangesByResourceGroupNext(
|
|
106
|
-
resourceGroupName,
|
|
107
|
-
startTime,
|
|
108
|
-
endTime,
|
|
109
|
-
continuationToken,
|
|
110
|
-
options
|
|
111
|
-
);
|
|
112
|
-
continuationToken = result.nextLink;
|
|
113
|
-
let page = result.value || [];
|
|
114
|
-
setContinuationToken(page, continuationToken);
|
|
115
|
-
yield page;
|
|
116
|
-
}
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
private async *listChangesByResourceGroupPagingAll(
|
|
120
|
-
resourceGroupName: string,
|
|
121
|
-
startTime: Date,
|
|
122
|
-
endTime: Date,
|
|
123
|
-
options?: ChangesListChangesByResourceGroupOptionalParams
|
|
124
|
-
): AsyncIterableIterator<Change> {
|
|
125
|
-
for await (const page of this.listChangesByResourceGroupPagingPage(
|
|
126
|
-
resourceGroupName,
|
|
127
|
-
startTime,
|
|
128
|
-
endTime,
|
|
129
|
-
options
|
|
130
|
-
)) {
|
|
131
|
-
yield* page;
|
|
132
|
-
}
|
|
133
|
-
}
|
|
134
|
-
|
|
135
|
-
/**
|
|
136
|
-
* List the changes of a subscription within the specified time range. Customer data will always be
|
|
137
|
-
* masked.
|
|
138
|
-
* @param startTime Specifies the start time of the changes request.
|
|
139
|
-
* @param endTime Specifies the end time of the changes request.
|
|
140
|
-
* @param options The options parameters.
|
|
141
|
-
*/
|
|
142
|
-
public listChangesBySubscription(
|
|
143
|
-
startTime: Date,
|
|
144
|
-
endTime: Date,
|
|
145
|
-
options?: ChangesListChangesBySubscriptionOptionalParams
|
|
146
|
-
): PagedAsyncIterableIterator<Change> {
|
|
147
|
-
const iter = this.listChangesBySubscriptionPagingAll(
|
|
148
|
-
startTime,
|
|
149
|
-
endTime,
|
|
150
|
-
options
|
|
151
|
-
);
|
|
152
|
-
return {
|
|
153
|
-
next() {
|
|
154
|
-
return iter.next();
|
|
155
|
-
},
|
|
156
|
-
[Symbol.asyncIterator]() {
|
|
157
|
-
return this;
|
|
158
|
-
},
|
|
159
|
-
byPage: (settings?: PageSettings) => {
|
|
160
|
-
if (settings?.maxPageSize) {
|
|
161
|
-
throw new Error("maxPageSize is not supported by this operation.");
|
|
162
|
-
}
|
|
163
|
-
return this.listChangesBySubscriptionPagingPage(
|
|
164
|
-
startTime,
|
|
165
|
-
endTime,
|
|
166
|
-
options,
|
|
167
|
-
settings
|
|
168
|
-
);
|
|
169
|
-
}
|
|
170
|
-
};
|
|
171
|
-
}
|
|
172
|
-
|
|
173
|
-
private async *listChangesBySubscriptionPagingPage(
|
|
174
|
-
startTime: Date,
|
|
175
|
-
endTime: Date,
|
|
176
|
-
options?: ChangesListChangesBySubscriptionOptionalParams,
|
|
177
|
-
settings?: PageSettings
|
|
178
|
-
): AsyncIterableIterator<Change[]> {
|
|
179
|
-
let result: ChangesListChangesBySubscriptionResponse;
|
|
180
|
-
let continuationToken = settings?.continuationToken;
|
|
181
|
-
if (!continuationToken) {
|
|
182
|
-
result = await this._listChangesBySubscription(
|
|
183
|
-
startTime,
|
|
184
|
-
endTime,
|
|
185
|
-
options
|
|
186
|
-
);
|
|
187
|
-
let page = result.value || [];
|
|
188
|
-
continuationToken = result.nextLink;
|
|
189
|
-
setContinuationToken(page, continuationToken);
|
|
190
|
-
yield page;
|
|
191
|
-
}
|
|
192
|
-
while (continuationToken) {
|
|
193
|
-
result = await this._listChangesBySubscriptionNext(
|
|
194
|
-
startTime,
|
|
195
|
-
endTime,
|
|
196
|
-
continuationToken,
|
|
197
|
-
options
|
|
198
|
-
);
|
|
199
|
-
continuationToken = result.nextLink;
|
|
200
|
-
let page = result.value || [];
|
|
201
|
-
setContinuationToken(page, continuationToken);
|
|
202
|
-
yield page;
|
|
203
|
-
}
|
|
204
|
-
}
|
|
205
|
-
|
|
206
|
-
private async *listChangesBySubscriptionPagingAll(
|
|
207
|
-
startTime: Date,
|
|
208
|
-
endTime: Date,
|
|
209
|
-
options?: ChangesListChangesBySubscriptionOptionalParams
|
|
210
|
-
): AsyncIterableIterator<Change> {
|
|
211
|
-
for await (const page of this.listChangesBySubscriptionPagingPage(
|
|
212
|
-
startTime,
|
|
213
|
-
endTime,
|
|
214
|
-
options
|
|
215
|
-
)) {
|
|
216
|
-
yield* page;
|
|
217
|
-
}
|
|
218
|
-
}
|
|
219
|
-
|
|
220
|
-
/**
|
|
221
|
-
* List the changes of a resource group within the specified time range. Customer data will always be
|
|
222
|
-
* masked.
|
|
223
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
224
|
-
* @param startTime Specifies the start time of the changes request.
|
|
225
|
-
* @param endTime Specifies the end time of the changes request.
|
|
226
|
-
* @param options The options parameters.
|
|
227
|
-
*/
|
|
228
|
-
private _listChangesByResourceGroup(
|
|
229
|
-
resourceGroupName: string,
|
|
230
|
-
startTime: Date,
|
|
231
|
-
endTime: Date,
|
|
232
|
-
options?: ChangesListChangesByResourceGroupOptionalParams
|
|
233
|
-
): Promise<ChangesListChangesByResourceGroupResponse> {
|
|
234
|
-
return this.client.sendOperationRequest(
|
|
235
|
-
{ resourceGroupName, startTime, endTime, options },
|
|
236
|
-
listChangesByResourceGroupOperationSpec
|
|
237
|
-
);
|
|
238
|
-
}
|
|
239
|
-
|
|
240
|
-
/**
|
|
241
|
-
* List the changes of a subscription within the specified time range. Customer data will always be
|
|
242
|
-
* masked.
|
|
243
|
-
* @param startTime Specifies the start time of the changes request.
|
|
244
|
-
* @param endTime Specifies the end time of the changes request.
|
|
245
|
-
* @param options The options parameters.
|
|
246
|
-
*/
|
|
247
|
-
private _listChangesBySubscription(
|
|
248
|
-
startTime: Date,
|
|
249
|
-
endTime: Date,
|
|
250
|
-
options?: ChangesListChangesBySubscriptionOptionalParams
|
|
251
|
-
): Promise<ChangesListChangesBySubscriptionResponse> {
|
|
252
|
-
return this.client.sendOperationRequest(
|
|
253
|
-
{ startTime, endTime, options },
|
|
254
|
-
listChangesBySubscriptionOperationSpec
|
|
255
|
-
);
|
|
256
|
-
}
|
|
257
|
-
|
|
258
|
-
/**
|
|
259
|
-
* ListChangesByResourceGroupNext
|
|
260
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
261
|
-
* @param startTime Specifies the start time of the changes request.
|
|
262
|
-
* @param endTime Specifies the end time of the changes request.
|
|
263
|
-
* @param nextLink The nextLink from the previous successful call to the ListChangesByResourceGroup
|
|
264
|
-
* method.
|
|
265
|
-
* @param options The options parameters.
|
|
266
|
-
*/
|
|
267
|
-
private _listChangesByResourceGroupNext(
|
|
268
|
-
resourceGroupName: string,
|
|
269
|
-
startTime: Date,
|
|
270
|
-
endTime: Date,
|
|
271
|
-
nextLink: string,
|
|
272
|
-
options?: ChangesListChangesByResourceGroupNextOptionalParams
|
|
273
|
-
): Promise<ChangesListChangesByResourceGroupNextResponse> {
|
|
274
|
-
return this.client.sendOperationRequest(
|
|
275
|
-
{ resourceGroupName, startTime, endTime, nextLink, options },
|
|
276
|
-
listChangesByResourceGroupNextOperationSpec
|
|
277
|
-
);
|
|
278
|
-
}
|
|
279
|
-
|
|
280
|
-
/**
|
|
281
|
-
* ListChangesBySubscriptionNext
|
|
282
|
-
* @param startTime Specifies the start time of the changes request.
|
|
283
|
-
* @param endTime Specifies the end time of the changes request.
|
|
284
|
-
* @param nextLink The nextLink from the previous successful call to the ListChangesBySubscription
|
|
285
|
-
* method.
|
|
286
|
-
* @param options The options parameters.
|
|
287
|
-
*/
|
|
288
|
-
private _listChangesBySubscriptionNext(
|
|
289
|
-
startTime: Date,
|
|
290
|
-
endTime: Date,
|
|
291
|
-
nextLink: string,
|
|
292
|
-
options?: ChangesListChangesBySubscriptionNextOptionalParams
|
|
293
|
-
): Promise<ChangesListChangesBySubscriptionNextResponse> {
|
|
294
|
-
return this.client.sendOperationRequest(
|
|
295
|
-
{ startTime, endTime, nextLink, options },
|
|
296
|
-
listChangesBySubscriptionNextOperationSpec
|
|
297
|
-
);
|
|
298
|
-
}
|
|
299
|
-
}
|
|
300
|
-
// Operation Specifications
|
|
301
|
-
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
302
|
-
|
|
303
|
-
const listChangesByResourceGroupOperationSpec: coreClient.OperationSpec = {
|
|
304
|
-
path:
|
|
305
|
-
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ChangeAnalysis/changes",
|
|
306
|
-
httpMethod: "GET",
|
|
307
|
-
responses: {
|
|
308
|
-
200: {
|
|
309
|
-
bodyMapper: Mappers.ChangeList
|
|
310
|
-
},
|
|
311
|
-
default: {
|
|
312
|
-
bodyMapper: Mappers.ErrorResponse
|
|
313
|
-
}
|
|
314
|
-
},
|
|
315
|
-
queryParameters: [
|
|
316
|
-
Parameters.apiVersion,
|
|
317
|
-
Parameters.skipToken,
|
|
318
|
-
Parameters.startTime,
|
|
319
|
-
Parameters.endTime
|
|
320
|
-
],
|
|
321
|
-
urlParameters: [
|
|
322
|
-
Parameters.$host,
|
|
323
|
-
Parameters.subscriptionId,
|
|
324
|
-
Parameters.resourceGroupName
|
|
325
|
-
],
|
|
326
|
-
headerParameters: [Parameters.accept],
|
|
327
|
-
serializer
|
|
328
|
-
};
|
|
329
|
-
const listChangesBySubscriptionOperationSpec: coreClient.OperationSpec = {
|
|
330
|
-
path:
|
|
331
|
-
"/subscriptions/{subscriptionId}/providers/Microsoft.ChangeAnalysis/changes",
|
|
332
|
-
httpMethod: "GET",
|
|
333
|
-
responses: {
|
|
334
|
-
200: {
|
|
335
|
-
bodyMapper: Mappers.ChangeList
|
|
336
|
-
},
|
|
337
|
-
default: {
|
|
338
|
-
bodyMapper: Mappers.ErrorResponse
|
|
339
|
-
}
|
|
340
|
-
},
|
|
341
|
-
queryParameters: [
|
|
342
|
-
Parameters.apiVersion,
|
|
343
|
-
Parameters.skipToken,
|
|
344
|
-
Parameters.startTime,
|
|
345
|
-
Parameters.endTime
|
|
346
|
-
],
|
|
347
|
-
urlParameters: [Parameters.$host, Parameters.subscriptionId],
|
|
348
|
-
headerParameters: [Parameters.accept],
|
|
349
|
-
serializer
|
|
350
|
-
};
|
|
351
|
-
const listChangesByResourceGroupNextOperationSpec: coreClient.OperationSpec = {
|
|
352
|
-
path: "{nextLink}",
|
|
353
|
-
httpMethod: "GET",
|
|
354
|
-
responses: {
|
|
355
|
-
200: {
|
|
356
|
-
bodyMapper: Mappers.ChangeList
|
|
357
|
-
},
|
|
358
|
-
default: {
|
|
359
|
-
bodyMapper: Mappers.ErrorResponse
|
|
360
|
-
}
|
|
361
|
-
},
|
|
362
|
-
queryParameters: [
|
|
363
|
-
Parameters.apiVersion,
|
|
364
|
-
Parameters.skipToken,
|
|
365
|
-
Parameters.startTime,
|
|
366
|
-
Parameters.endTime
|
|
367
|
-
],
|
|
368
|
-
urlParameters: [
|
|
369
|
-
Parameters.$host,
|
|
370
|
-
Parameters.nextLink,
|
|
371
|
-
Parameters.subscriptionId,
|
|
372
|
-
Parameters.resourceGroupName
|
|
373
|
-
],
|
|
374
|
-
headerParameters: [Parameters.accept],
|
|
375
|
-
serializer
|
|
376
|
-
};
|
|
377
|
-
const listChangesBySubscriptionNextOperationSpec: coreClient.OperationSpec = {
|
|
378
|
-
path: "{nextLink}",
|
|
379
|
-
httpMethod: "GET",
|
|
380
|
-
responses: {
|
|
381
|
-
200: {
|
|
382
|
-
bodyMapper: Mappers.ChangeList
|
|
383
|
-
},
|
|
384
|
-
default: {
|
|
385
|
-
bodyMapper: Mappers.ErrorResponse
|
|
386
|
-
}
|
|
387
|
-
},
|
|
388
|
-
queryParameters: [
|
|
389
|
-
Parameters.apiVersion,
|
|
390
|
-
Parameters.skipToken,
|
|
391
|
-
Parameters.startTime,
|
|
392
|
-
Parameters.endTime
|
|
393
|
-
],
|
|
394
|
-
urlParameters: [
|
|
395
|
-
Parameters.$host,
|
|
396
|
-
Parameters.nextLink,
|
|
397
|
-
Parameters.subscriptionId
|
|
398
|
-
],
|
|
399
|
-
headerParameters: [Parameters.accept],
|
|
400
|
-
serializer
|
|
401
|
-
};
|
|
@@ -1,152 +0,0 @@
|
|
|
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
|
-
|
|
9
|
-
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
|
|
10
|
-
import { setContinuationToken } from "../pagingHelper";
|
|
11
|
-
import { Operations } from "../operationsInterfaces";
|
|
12
|
-
import * as coreClient from "@azure/core-client";
|
|
13
|
-
import * as Mappers from "../models/mappers";
|
|
14
|
-
import * as Parameters from "../models/parameters";
|
|
15
|
-
import { AzureChangeAnalysisManagementClient } from "../azureChangeAnalysisManagementClient";
|
|
16
|
-
import {
|
|
17
|
-
ResourceProviderOperationDefinition,
|
|
18
|
-
OperationsListNextOptionalParams,
|
|
19
|
-
OperationsListOptionalParams,
|
|
20
|
-
OperationsListResponse,
|
|
21
|
-
OperationsListNextResponse
|
|
22
|
-
} from "../models";
|
|
23
|
-
|
|
24
|
-
/// <reference lib="esnext.asynciterable" />
|
|
25
|
-
/** Class containing Operations operations. */
|
|
26
|
-
export class OperationsImpl implements Operations {
|
|
27
|
-
private readonly client: AzureChangeAnalysisManagementClient;
|
|
28
|
-
|
|
29
|
-
/**
|
|
30
|
-
* Initialize a new instance of the class Operations class.
|
|
31
|
-
* @param client Reference to the service client
|
|
32
|
-
*/
|
|
33
|
-
constructor(client: AzureChangeAnalysisManagementClient) {
|
|
34
|
-
this.client = client;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
/**
|
|
38
|
-
* Lists all the supported operations by the Microsoft.ChangeAnalysis resource provider along with
|
|
39
|
-
* their descriptions.
|
|
40
|
-
* @param options The options parameters.
|
|
41
|
-
*/
|
|
42
|
-
public list(
|
|
43
|
-
options?: OperationsListOptionalParams
|
|
44
|
-
): PagedAsyncIterableIterator<ResourceProviderOperationDefinition> {
|
|
45
|
-
const iter = this.listPagingAll(options);
|
|
46
|
-
return {
|
|
47
|
-
next() {
|
|
48
|
-
return iter.next();
|
|
49
|
-
},
|
|
50
|
-
[Symbol.asyncIterator]() {
|
|
51
|
-
return this;
|
|
52
|
-
},
|
|
53
|
-
byPage: (settings?: PageSettings) => {
|
|
54
|
-
if (settings?.maxPageSize) {
|
|
55
|
-
throw new Error("maxPageSize is not supported by this operation.");
|
|
56
|
-
}
|
|
57
|
-
return this.listPagingPage(options, settings);
|
|
58
|
-
}
|
|
59
|
-
};
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
private async *listPagingPage(
|
|
63
|
-
options?: OperationsListOptionalParams,
|
|
64
|
-
settings?: PageSettings
|
|
65
|
-
): AsyncIterableIterator<ResourceProviderOperationDefinition[]> {
|
|
66
|
-
let result: OperationsListResponse;
|
|
67
|
-
let continuationToken = settings?.continuationToken;
|
|
68
|
-
if (!continuationToken) {
|
|
69
|
-
result = await this._list(options);
|
|
70
|
-
let page = result.value || [];
|
|
71
|
-
continuationToken = result.nextLink;
|
|
72
|
-
setContinuationToken(page, continuationToken);
|
|
73
|
-
yield page;
|
|
74
|
-
}
|
|
75
|
-
while (continuationToken) {
|
|
76
|
-
result = await this._listNext(continuationToken, options);
|
|
77
|
-
continuationToken = result.nextLink;
|
|
78
|
-
let page = result.value || [];
|
|
79
|
-
setContinuationToken(page, continuationToken);
|
|
80
|
-
yield page;
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
private async *listPagingAll(
|
|
85
|
-
options?: OperationsListOptionalParams
|
|
86
|
-
): AsyncIterableIterator<ResourceProviderOperationDefinition> {
|
|
87
|
-
for await (const page of this.listPagingPage(options)) {
|
|
88
|
-
yield* page;
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
/**
|
|
93
|
-
* Lists all the supported operations by the Microsoft.ChangeAnalysis resource provider along with
|
|
94
|
-
* their descriptions.
|
|
95
|
-
* @param options The options parameters.
|
|
96
|
-
*/
|
|
97
|
-
private _list(
|
|
98
|
-
options?: OperationsListOptionalParams
|
|
99
|
-
): Promise<OperationsListResponse> {
|
|
100
|
-
return this.client.sendOperationRequest({ options }, listOperationSpec);
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
/**
|
|
104
|
-
* ListNext
|
|
105
|
-
* @param nextLink The nextLink from the previous successful call to the List method.
|
|
106
|
-
* @param options The options parameters.
|
|
107
|
-
*/
|
|
108
|
-
private _listNext(
|
|
109
|
-
nextLink: string,
|
|
110
|
-
options?: OperationsListNextOptionalParams
|
|
111
|
-
): Promise<OperationsListNextResponse> {
|
|
112
|
-
return this.client.sendOperationRequest(
|
|
113
|
-
{ nextLink, options },
|
|
114
|
-
listNextOperationSpec
|
|
115
|
-
);
|
|
116
|
-
}
|
|
117
|
-
}
|
|
118
|
-
// Operation Specifications
|
|
119
|
-
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
120
|
-
|
|
121
|
-
const listOperationSpec: coreClient.OperationSpec = {
|
|
122
|
-
path: "/providers/Microsoft.ChangeAnalysis/operations",
|
|
123
|
-
httpMethod: "GET",
|
|
124
|
-
responses: {
|
|
125
|
-
200: {
|
|
126
|
-
bodyMapper: Mappers.ResourceProviderOperationList
|
|
127
|
-
},
|
|
128
|
-
default: {
|
|
129
|
-
bodyMapper: Mappers.ErrorResponse
|
|
130
|
-
}
|
|
131
|
-
},
|
|
132
|
-
queryParameters: [Parameters.apiVersion, Parameters.skipToken],
|
|
133
|
-
urlParameters: [Parameters.$host],
|
|
134
|
-
headerParameters: [Parameters.accept],
|
|
135
|
-
serializer
|
|
136
|
-
};
|
|
137
|
-
const listNextOperationSpec: coreClient.OperationSpec = {
|
|
138
|
-
path: "{nextLink}",
|
|
139
|
-
httpMethod: "GET",
|
|
140
|
-
responses: {
|
|
141
|
-
200: {
|
|
142
|
-
bodyMapper: Mappers.ResourceProviderOperationList
|
|
143
|
-
},
|
|
144
|
-
default: {
|
|
145
|
-
bodyMapper: Mappers.ErrorResponse
|
|
146
|
-
}
|
|
147
|
-
},
|
|
148
|
-
queryParameters: [Parameters.apiVersion, Parameters.skipToken],
|
|
149
|
-
urlParameters: [Parameters.$host, Parameters.nextLink],
|
|
150
|
-
headerParameters: [Parameters.accept],
|
|
151
|
-
serializer
|
|
152
|
-
};
|