@azure/arm-policyinsights 3.2.0 → 5.0.0
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/CHANGELOG.md +11 -0
- package/{LICENSE.txt → LICENSE} +2 -2
- package/README.md +72 -79
- package/dist/index.js +8639 -0
- package/dist/index.js.map +1 -0
- package/dist/index.min.js +1 -0
- package/dist/index.min.js.map +1 -0
- package/dist-esm/src/index.d.ts +5 -0
- package/dist-esm/src/index.d.ts.map +1 -0
- package/dist-esm/src/index.js +12 -0
- package/dist-esm/src/index.js.map +1 -0
- package/dist-esm/src/lroImpl.d.ts +16 -0
- package/dist-esm/src/lroImpl.d.ts.map +1 -0
- package/dist-esm/src/lroImpl.js +29 -0
- package/dist-esm/src/lroImpl.js.map +1 -0
- package/dist-esm/src/models/index.d.ts +1870 -0
- package/dist-esm/src/models/index.d.ts.map +1 -0
- package/dist-esm/src/models/index.js +50 -0
- package/dist-esm/src/models/index.js.map +1 -0
- package/dist-esm/src/models/mappers.d.ts +60 -0
- package/dist-esm/src/models/mappers.d.ts.map +1 -0
- package/{esm → dist-esm/src}/models/mappers.js +1336 -589
- package/dist-esm/src/models/mappers.js.map +1 -0
- package/dist-esm/src/models/parameters.d.ts +42 -0
- package/dist-esm/src/models/parameters.d.ts.map +1 -0
- package/{esm → dist-esm/src}/models/parameters.js +202 -166
- package/dist-esm/src/models/parameters.js.map +1 -0
- package/dist-esm/src/operations/attestations.d.ts +161 -0
- package/dist-esm/src/operations/attestations.d.ts.map +1 -0
- package/dist-esm/src/operations/attestations.js +747 -0
- package/dist-esm/src/operations/attestations.js.map +1 -0
- package/{esm → dist-esm/src}/operations/index.d.ts +2 -0
- package/dist-esm/src/operations/index.d.ts.map +1 -0
- package/{esm → dist-esm/src}/operations/index.js +5 -5
- package/dist-esm/src/operations/index.js.map +1 -0
- package/dist-esm/src/operations/operations.d.ts +18 -0
- package/dist-esm/src/operations/operations.d.ts.map +1 -0
- package/dist-esm/src/operations/operations.js +46 -0
- package/dist-esm/src/operations/operations.js.map +1 -0
- package/dist-esm/src/operations/policyEvents.d.ts +208 -0
- package/dist-esm/src/operations/policyEvents.d.ts.map +1 -0
- package/dist-esm/src/operations/policyEvents.js +1097 -0
- package/dist-esm/src/operations/policyEvents.js.map +1 -0
- package/dist-esm/src/operations/policyMetadataOperations.d.ts +38 -0
- package/dist-esm/src/operations/policyMetadataOperations.d.ts.map +1 -0
- package/dist-esm/src/operations/policyMetadataOperations.js +144 -0
- package/dist-esm/src/operations/policyMetadataOperations.js.map +1 -0
- package/dist-esm/src/operations/policyRestrictions.d.ts +27 -0
- package/dist-esm/src/operations/policyRestrictions.d.ts.map +1 -0
- package/dist-esm/src/operations/policyRestrictions.js +81 -0
- package/dist-esm/src/operations/policyRestrictions.js.map +1 -0
- package/dist-esm/src/operations/policyStates.d.ts +361 -0
- package/dist-esm/src/operations/policyStates.d.ts.map +1 -0
- package/dist-esm/src/operations/policyStates.js +1632 -0
- package/dist-esm/src/operations/policyStates.js.map +1 -0
- package/dist-esm/src/operations/policyTrackedResources.d.ts +99 -0
- package/dist-esm/src/operations/policyTrackedResources.d.ts.map +1 -0
- package/dist-esm/src/operations/policyTrackedResources.js +458 -0
- package/dist-esm/src/operations/policyTrackedResources.js.map +1 -0
- package/dist-esm/src/operations/remediations.d.ts +304 -0
- package/dist-esm/src/operations/remediations.d.ts.map +1 -0
- package/dist-esm/src/operations/remediations.js +1377 -0
- package/dist-esm/src/operations/remediations.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/attestations.d.ts +110 -0
- package/dist-esm/src/operationsInterfaces/attestations.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/attestations.js +9 -0
- package/dist-esm/src/operationsInterfaces/attestations.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts +9 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.js +16 -0
- package/dist-esm/src/operationsInterfaces/index.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/operations.d.ts +10 -0
- package/dist-esm/src/operationsInterfaces/operations.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/operations.js +9 -0
- package/dist-esm/src/operationsInterfaces/operations.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/policyEvents.d.ts +60 -0
- package/dist-esm/src/operationsInterfaces/policyEvents.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/policyEvents.js +9 -0
- package/dist-esm/src/operationsInterfaces/policyEvents.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/policyMetadataOperations.d.ts +17 -0
- package/dist-esm/src/operationsInterfaces/policyMetadataOperations.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/policyMetadataOperations.js +9 -0
- package/dist-esm/src/operationsInterfaces/policyMetadataOperations.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/policyRestrictions.d.ts +19 -0
- package/dist-esm/src/operationsInterfaces/policyRestrictions.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/policyRestrictions.js +9 -0
- package/dist-esm/src/operationsInterfaces/policyRestrictions.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/policyStates.d.ts +165 -0
- package/dist-esm/src/operationsInterfaces/policyStates.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/policyStates.js +9 -0
- package/dist-esm/src/operationsInterfaces/policyStates.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/policyTrackedResources.d.ts +29 -0
- package/dist-esm/src/operationsInterfaces/policyTrackedResources.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/policyTrackedResources.js +9 -0
- package/dist-esm/src/operationsInterfaces/policyTrackedResources.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/remediations.d.ts +168 -0
- package/dist-esm/src/operationsInterfaces/remediations.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/remediations.js +9 -0
- package/dist-esm/src/operationsInterfaces/remediations.js.map +1 -0
- package/dist-esm/src/policyInsightsClient.d.ts +24 -0
- package/dist-esm/src/policyInsightsClient.d.ts.map +1 -0
- package/dist-esm/src/policyInsightsClient.js +57 -0
- package/dist-esm/src/policyInsightsClient.js.map +1 -0
- package/dist-esm/test/sampleTest.d.ts +2 -0
- package/dist-esm/test/sampleTest.d.ts.map +1 -0
- package/dist-esm/test/sampleTest.js +40 -0
- package/dist-esm/test/sampleTest.js.map +1 -0
- package/package.json +82 -22
- package/review/arm-policyinsights.api.md +1525 -0
- package/rollup.config.js +181 -30
- package/src/index.ts +12 -0
- package/src/lroImpl.ts +34 -0
- package/src/models/index.ts +1645 -2293
- package/src/models/mappers.ts +1579 -795
- package/src/models/parameters.ts +250 -167
- package/src/operations/attestations.ts +999 -0
- package/src/operations/index.ts +5 -5
- package/src/operations/operations.ts +29 -44
- package/src/operations/policyEvents.ts +1158 -327
- package/src/operations/policyMetadataOperations.ts +108 -113
- package/src/operations/policyRestrictions.ts +111 -0
- package/src/operations/policyStates.ts +1751 -750
- package/src/operations/policyTrackedResources.ts +416 -284
- package/src/operations/remediations.ts +1208 -1248
- package/src/operationsInterfaces/attestations.ts +212 -0
- package/src/operationsInterfaces/index.ts +16 -0
- package/src/operationsInterfaces/operations.ts +21 -0
- package/src/operationsInterfaces/policyEvents.ts +109 -0
- package/src/operationsInterfaces/policyMetadataOperations.ts +36 -0
- package/src/operationsInterfaces/policyRestrictions.ts +40 -0
- package/src/operationsInterfaces/policyStates.ts +287 -0
- package/src/operationsInterfaces/policyTrackedResources.ts +55 -0
- package/src/operationsInterfaces/remediations.ts +310 -0
- package/src/policyInsightsClient.ts +93 -39
- package/tsconfig.json +20 -7
- package/types/arm-policyinsights.d.ts +2728 -0
- package/types/tsdoc-metadata.json +11 -0
- package/dist/arm-policyinsights.js +0 -4909
- package/dist/arm-policyinsights.js.map +0 -1
- package/dist/arm-policyinsights.min.js +0 -1
- package/dist/arm-policyinsights.min.js.map +0 -1
- package/esm/models/index.d.ts +0 -2651
- package/esm/models/index.d.ts.map +0 -1
- package/esm/models/index.js +0 -8
- package/esm/models/index.js.map +0 -1
- package/esm/models/mappers.d.ts +0 -40
- package/esm/models/mappers.d.ts.map +0 -1
- package/esm/models/mappers.js.map +0 -1
- package/esm/models/operationsMappers.d.ts +0 -2
- package/esm/models/operationsMappers.d.ts.map +0 -1
- package/esm/models/operationsMappers.js +0 -9
- package/esm/models/operationsMappers.js.map +0 -1
- package/esm/models/parameters.d.ts +0 -33
- package/esm/models/parameters.d.ts.map +0 -1
- package/esm/models/parameters.js.map +0 -1
- package/esm/models/policyEventsMappers.d.ts +0 -2
- package/esm/models/policyEventsMappers.d.ts.map +0 -1
- package/esm/models/policyEventsMappers.js +0 -9
- package/esm/models/policyEventsMappers.js.map +0 -1
- package/esm/models/policyMetadataOperationsMappers.d.ts +0 -2
- package/esm/models/policyMetadataOperationsMappers.d.ts.map +0 -1
- package/esm/models/policyMetadataOperationsMappers.js +0 -9
- package/esm/models/policyMetadataOperationsMappers.js.map +0 -1
- package/esm/models/policyStatesMappers.d.ts +0 -2
- package/esm/models/policyStatesMappers.d.ts.map +0 -1
- package/esm/models/policyStatesMappers.js +0 -9
- package/esm/models/policyStatesMappers.js.map +0 -1
- package/esm/models/policyTrackedResourcesMappers.d.ts +0 -2
- package/esm/models/policyTrackedResourcesMappers.d.ts.map +0 -1
- package/esm/models/policyTrackedResourcesMappers.js +0 -9
- package/esm/models/policyTrackedResourcesMappers.js.map +0 -1
- package/esm/models/remediationsMappers.d.ts +0 -2
- package/esm/models/remediationsMappers.d.ts.map +0 -1
- package/esm/models/remediationsMappers.js +0 -9
- package/esm/models/remediationsMappers.js.map +0 -1
- package/esm/operations/index.d.ts.map +0 -1
- package/esm/operations/index.js.map +0 -1
- package/esm/operations/operations.d.ts +0 -28
- package/esm/operations/operations.d.ts.map +0 -1
- package/esm/operations/operations.js +0 -51
- package/esm/operations/operations.js.map +0 -1
- package/esm/operations/policyEvents.d.ts +0 -198
- package/esm/operations/policyEvents.d.ts.map +0 -1
- package/esm/operations/policyEvents.js +0 -365
- package/esm/operations/policyEvents.js.map +0 -1
- package/esm/operations/policyMetadataOperations.d.ts +0 -64
- package/esm/operations/policyMetadataOperations.d.ts.map +0 -1
- package/esm/operations/policyMetadataOperations.js +0 -106
- package/esm/operations/policyMetadataOperations.js.map +0 -1
- package/esm/operations/policyStates.d.ts +0 -442
- package/esm/operations/policyStates.d.ts.map +0 -1
- package/esm/operations/policyStates.js +0 -712
- package/esm/operations/policyStates.js.map +0 -1
- package/esm/operations/policyTrackedResources.d.ts +0 -160
- package/esm/operations/policyTrackedResources.d.ts.map +0 -1
- package/esm/operations/policyTrackedResources.js +0 -258
- package/esm/operations/policyTrackedResources.js.map +0 -1
- package/esm/operations/remediations.d.ts +0 -679
- package/esm/operations/remediations.d.ts.map +0 -1
- package/esm/operations/remediations.js +0 -1014
- package/esm/operations/remediations.js.map +0 -1
- package/esm/policyInsightsClient.d.ts +0 -22
- package/esm/policyInsightsClient.d.ts.map +0 -1
- package/esm/policyInsightsClient.js +0 -37
- package/esm/policyInsightsClient.js.map +0 -1
- package/esm/policyInsightsClientContext.d.ts +0 -13
- package/esm/policyInsightsClientContext.d.ts.map +0 -1
- package/esm/policyInsightsClientContext.js +0 -50
- package/esm/policyInsightsClientContext.js.map +0 -1
- package/src/models/operationsMappers.ts +0 -15
- package/src/models/policyEventsMappers.ts +0 -14
- package/src/models/policyMetadataOperationsMappers.ts +0 -16
- package/src/models/policyStatesMappers.ts +0 -24
- package/src/models/policyTrackedResourcesMappers.ts +0 -16
- package/src/models/remediationsMappers.ts +0 -20
- package/src/policyInsightsClientContext.ts +0 -54
|
@@ -1,336 +1,979 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) Microsoft Corporation.
|
|
3
|
-
* Licensed under the MIT License.
|
|
4
|
-
* license information.
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
5
4
|
*
|
|
6
5
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
7
|
-
* Changes may cause incorrect behavior and will be lost if the code is
|
|
8
|
-
* regenerated.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
9
7
|
*/
|
|
10
8
|
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import * as
|
|
9
|
+
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
10
|
+
import { PolicyEvents } from "../operationsInterfaces";
|
|
11
|
+
import * as coreClient from "@azure/core-client";
|
|
12
|
+
import * as Mappers from "../models/mappers";
|
|
14
13
|
import * as Parameters from "../models/parameters";
|
|
15
|
-
import {
|
|
14
|
+
import { PolicyInsightsClient } from "../policyInsightsClient";
|
|
15
|
+
import {
|
|
16
|
+
PolicyEvent,
|
|
17
|
+
PolicyEventsListQueryResultsForManagementGroupNextOptionalParams,
|
|
18
|
+
PolicyEventsListQueryResultsForManagementGroupOptionalParams,
|
|
19
|
+
PolicyEventsListQueryResultsForSubscriptionNextOptionalParams,
|
|
20
|
+
PolicyEventsListQueryResultsForSubscriptionOptionalParams,
|
|
21
|
+
PolicyEventsListQueryResultsForResourceGroupNextOptionalParams,
|
|
22
|
+
PolicyEventsListQueryResultsForResourceGroupOptionalParams,
|
|
23
|
+
PolicyEventsListQueryResultsForResourceNextOptionalParams,
|
|
24
|
+
PolicyEventsListQueryResultsForResourceOptionalParams,
|
|
25
|
+
PolicyEventsListQueryResultsForPolicySetDefinitionNextOptionalParams,
|
|
26
|
+
PolicyEventsListQueryResultsForPolicySetDefinitionOptionalParams,
|
|
27
|
+
PolicyEventsListQueryResultsForPolicyDefinitionNextOptionalParams,
|
|
28
|
+
PolicyEventsListQueryResultsForPolicyDefinitionOptionalParams,
|
|
29
|
+
PolicyEventsListQueryResultsForSubscriptionLevelPolicyAssignmentNextOptionalParams,
|
|
30
|
+
PolicyEventsListQueryResultsForSubscriptionLevelPolicyAssignmentOptionalParams,
|
|
31
|
+
PolicyEventsListQueryResultsForResourceGroupLevelPolicyAssignmentNextOptionalParams,
|
|
32
|
+
PolicyEventsListQueryResultsForResourceGroupLevelPolicyAssignmentOptionalParams,
|
|
33
|
+
PolicyEventsListQueryResultsForManagementGroupResponse,
|
|
34
|
+
PolicyEventsListQueryResultsForSubscriptionResponse,
|
|
35
|
+
PolicyEventsListQueryResultsForResourceGroupResponse,
|
|
36
|
+
PolicyEventsListQueryResultsForResourceResponse,
|
|
37
|
+
PolicyEventsListQueryResultsForPolicySetDefinitionResponse,
|
|
38
|
+
PolicyEventsListQueryResultsForPolicyDefinitionResponse,
|
|
39
|
+
PolicyEventsListQueryResultsForSubscriptionLevelPolicyAssignmentResponse,
|
|
40
|
+
PolicyEventsListQueryResultsForResourceGroupLevelPolicyAssignmentResponse,
|
|
41
|
+
PolicyEventsListQueryResultsForManagementGroupNextResponse,
|
|
42
|
+
PolicyEventsListQueryResultsForSubscriptionNextResponse,
|
|
43
|
+
PolicyEventsListQueryResultsForResourceGroupNextResponse,
|
|
44
|
+
PolicyEventsListQueryResultsForResourceNextResponse,
|
|
45
|
+
PolicyEventsListQueryResultsForPolicySetDefinitionNextResponse,
|
|
46
|
+
PolicyEventsListQueryResultsForPolicyDefinitionNextResponse,
|
|
47
|
+
PolicyEventsListQueryResultsForSubscriptionLevelPolicyAssignmentNextResponse,
|
|
48
|
+
PolicyEventsListQueryResultsForResourceGroupLevelPolicyAssignmentNextResponse
|
|
49
|
+
} from "../models";
|
|
16
50
|
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
51
|
+
/// <reference lib="esnext.asynciterable" />
|
|
52
|
+
/** Class containing PolicyEvents operations. */
|
|
53
|
+
export class PolicyEventsImpl implements PolicyEvents {
|
|
54
|
+
private readonly client: PolicyInsightsClient;
|
|
20
55
|
|
|
21
56
|
/**
|
|
22
|
-
*
|
|
23
|
-
* @param
|
|
57
|
+
* Initialize a new instance of the class PolicyEvents class.
|
|
58
|
+
* @param client Reference to the service client
|
|
24
59
|
*/
|
|
25
|
-
constructor(client:
|
|
60
|
+
constructor(client: PolicyInsightsClient) {
|
|
26
61
|
this.client = client;
|
|
27
62
|
}
|
|
28
63
|
|
|
29
64
|
/**
|
|
30
65
|
* Queries policy events for the resources under the management group.
|
|
31
66
|
* @param managementGroupName Management group name.
|
|
32
|
-
* @param
|
|
33
|
-
* @returns Promise<Models.PolicyEventsListQueryResultsForManagementGroupResponse>
|
|
67
|
+
* @param options The options parameters.
|
|
34
68
|
*/
|
|
35
|
-
listQueryResultsForManagementGroup(
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
69
|
+
public listQueryResultsForManagementGroup(
|
|
70
|
+
managementGroupName: string,
|
|
71
|
+
options?: PolicyEventsListQueryResultsForManagementGroupOptionalParams
|
|
72
|
+
): PagedAsyncIterableIterator<PolicyEvent> {
|
|
73
|
+
const iter = this.listQueryResultsForManagementGroupPagingAll(
|
|
74
|
+
managementGroupName,
|
|
75
|
+
options
|
|
76
|
+
);
|
|
77
|
+
return {
|
|
78
|
+
next() {
|
|
79
|
+
return iter.next();
|
|
80
|
+
},
|
|
81
|
+
[Symbol.asyncIterator]() {
|
|
82
|
+
return this;
|
|
83
|
+
},
|
|
84
|
+
byPage: () => {
|
|
85
|
+
return this.listQueryResultsForManagementGroupPagingPage(
|
|
86
|
+
managementGroupName,
|
|
87
|
+
options
|
|
88
|
+
);
|
|
89
|
+
}
|
|
90
|
+
};
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
private async *listQueryResultsForManagementGroupPagingPage(
|
|
94
|
+
managementGroupName: string,
|
|
95
|
+
options?: PolicyEventsListQueryResultsForManagementGroupOptionalParams
|
|
96
|
+
): AsyncIterableIterator<PolicyEvent[]> {
|
|
97
|
+
let result = await this._listQueryResultsForManagementGroup(
|
|
98
|
+
managementGroupName,
|
|
99
|
+
options
|
|
100
|
+
);
|
|
101
|
+
yield result.value || [];
|
|
102
|
+
let continuationToken = result.odataNextLink;
|
|
103
|
+
while (continuationToken) {
|
|
104
|
+
result = await this._listQueryResultsForManagementGroupNext(
|
|
50
105
|
managementGroupName,
|
|
106
|
+
continuationToken,
|
|
51
107
|
options
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
108
|
+
);
|
|
109
|
+
continuationToken = result.odataNextLink;
|
|
110
|
+
yield result.value || [];
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
private async *listQueryResultsForManagementGroupPagingAll(
|
|
115
|
+
managementGroupName: string,
|
|
116
|
+
options?: PolicyEventsListQueryResultsForManagementGroupOptionalParams
|
|
117
|
+
): AsyncIterableIterator<PolicyEvent> {
|
|
118
|
+
for await (const page of this.listQueryResultsForManagementGroupPagingPage(
|
|
119
|
+
managementGroupName,
|
|
120
|
+
options
|
|
121
|
+
)) {
|
|
122
|
+
yield* page;
|
|
123
|
+
}
|
|
55
124
|
}
|
|
56
125
|
|
|
57
126
|
/**
|
|
58
127
|
* Queries policy events for the resources under the subscription.
|
|
59
128
|
* @param subscriptionId Microsoft Azure subscription ID.
|
|
60
|
-
* @param
|
|
61
|
-
* @returns Promise<Models.PolicyEventsListQueryResultsForSubscriptionResponse>
|
|
129
|
+
* @param options The options parameters.
|
|
62
130
|
*/
|
|
63
|
-
listQueryResultsForSubscription(
|
|
131
|
+
public listQueryResultsForSubscription(
|
|
132
|
+
subscriptionId: string,
|
|
133
|
+
options?: PolicyEventsListQueryResultsForSubscriptionOptionalParams
|
|
134
|
+
): PagedAsyncIterableIterator<PolicyEvent> {
|
|
135
|
+
const iter = this.listQueryResultsForSubscriptionPagingAll(
|
|
136
|
+
subscriptionId,
|
|
137
|
+
options
|
|
138
|
+
);
|
|
139
|
+
return {
|
|
140
|
+
next() {
|
|
141
|
+
return iter.next();
|
|
142
|
+
},
|
|
143
|
+
[Symbol.asyncIterator]() {
|
|
144
|
+
return this;
|
|
145
|
+
},
|
|
146
|
+
byPage: () => {
|
|
147
|
+
return this.listQueryResultsForSubscriptionPagingPage(
|
|
148
|
+
subscriptionId,
|
|
149
|
+
options
|
|
150
|
+
);
|
|
151
|
+
}
|
|
152
|
+
};
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
private async *listQueryResultsForSubscriptionPagingPage(
|
|
156
|
+
subscriptionId: string,
|
|
157
|
+
options?: PolicyEventsListQueryResultsForSubscriptionOptionalParams
|
|
158
|
+
): AsyncIterableIterator<PolicyEvent[]> {
|
|
159
|
+
let result = await this._listQueryResultsForSubscription(
|
|
160
|
+
subscriptionId,
|
|
161
|
+
options
|
|
162
|
+
);
|
|
163
|
+
yield result.value || [];
|
|
164
|
+
let continuationToken = result.odataNextLink;
|
|
165
|
+
while (continuationToken) {
|
|
166
|
+
result = await this._listQueryResultsForSubscriptionNext(
|
|
167
|
+
subscriptionId,
|
|
168
|
+
continuationToken,
|
|
169
|
+
options
|
|
170
|
+
);
|
|
171
|
+
continuationToken = result.odataNextLink;
|
|
172
|
+
yield result.value || [];
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
private async *listQueryResultsForSubscriptionPagingAll(
|
|
177
|
+
subscriptionId: string,
|
|
178
|
+
options?: PolicyEventsListQueryResultsForSubscriptionOptionalParams
|
|
179
|
+
): AsyncIterableIterator<PolicyEvent> {
|
|
180
|
+
for await (const page of this.listQueryResultsForSubscriptionPagingPage(
|
|
181
|
+
subscriptionId,
|
|
182
|
+
options
|
|
183
|
+
)) {
|
|
184
|
+
yield* page;
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
|
|
64
188
|
/**
|
|
189
|
+
* Queries policy events for the resources under the resource group.
|
|
65
190
|
* @param subscriptionId Microsoft Azure subscription ID.
|
|
66
|
-
* @param
|
|
191
|
+
* @param resourceGroupName Resource group name.
|
|
192
|
+
* @param options The options parameters.
|
|
67
193
|
*/
|
|
68
|
-
|
|
194
|
+
public listQueryResultsForResourceGroup(
|
|
195
|
+
subscriptionId: string,
|
|
196
|
+
resourceGroupName: string,
|
|
197
|
+
options?: PolicyEventsListQueryResultsForResourceGroupOptionalParams
|
|
198
|
+
): PagedAsyncIterableIterator<PolicyEvent> {
|
|
199
|
+
const iter = this.listQueryResultsForResourceGroupPagingAll(
|
|
200
|
+
subscriptionId,
|
|
201
|
+
resourceGroupName,
|
|
202
|
+
options
|
|
203
|
+
);
|
|
204
|
+
return {
|
|
205
|
+
next() {
|
|
206
|
+
return iter.next();
|
|
207
|
+
},
|
|
208
|
+
[Symbol.asyncIterator]() {
|
|
209
|
+
return this;
|
|
210
|
+
},
|
|
211
|
+
byPage: () => {
|
|
212
|
+
return this.listQueryResultsForResourceGroupPagingPage(
|
|
213
|
+
subscriptionId,
|
|
214
|
+
resourceGroupName,
|
|
215
|
+
options
|
|
216
|
+
);
|
|
217
|
+
}
|
|
218
|
+
};
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
private async *listQueryResultsForResourceGroupPagingPage(
|
|
222
|
+
subscriptionId: string,
|
|
223
|
+
resourceGroupName: string,
|
|
224
|
+
options?: PolicyEventsListQueryResultsForResourceGroupOptionalParams
|
|
225
|
+
): AsyncIterableIterator<PolicyEvent[]> {
|
|
226
|
+
let result = await this._listQueryResultsForResourceGroup(
|
|
227
|
+
subscriptionId,
|
|
228
|
+
resourceGroupName,
|
|
229
|
+
options
|
|
230
|
+
);
|
|
231
|
+
yield result.value || [];
|
|
232
|
+
let continuationToken = result.odataNextLink;
|
|
233
|
+
while (continuationToken) {
|
|
234
|
+
result = await this._listQueryResultsForResourceGroupNext(
|
|
235
|
+
subscriptionId,
|
|
236
|
+
resourceGroupName,
|
|
237
|
+
continuationToken,
|
|
238
|
+
options
|
|
239
|
+
);
|
|
240
|
+
continuationToken = result.odataNextLink;
|
|
241
|
+
yield result.value || [];
|
|
242
|
+
}
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
private async *listQueryResultsForResourceGroupPagingAll(
|
|
246
|
+
subscriptionId: string,
|
|
247
|
+
resourceGroupName: string,
|
|
248
|
+
options?: PolicyEventsListQueryResultsForResourceGroupOptionalParams
|
|
249
|
+
): AsyncIterableIterator<PolicyEvent> {
|
|
250
|
+
for await (const page of this.listQueryResultsForResourceGroupPagingPage(
|
|
251
|
+
subscriptionId,
|
|
252
|
+
resourceGroupName,
|
|
253
|
+
options
|
|
254
|
+
)) {
|
|
255
|
+
yield* page;
|
|
256
|
+
}
|
|
257
|
+
}
|
|
258
|
+
|
|
69
259
|
/**
|
|
260
|
+
* Queries policy events for the resource.
|
|
261
|
+
* @param resourceId Resource ID.
|
|
262
|
+
* @param options The options parameters.
|
|
263
|
+
*/
|
|
264
|
+
public listQueryResultsForResource(
|
|
265
|
+
resourceId: string,
|
|
266
|
+
options?: PolicyEventsListQueryResultsForResourceOptionalParams
|
|
267
|
+
): PagedAsyncIterableIterator<PolicyEvent> {
|
|
268
|
+
const iter = this.listQueryResultsForResourcePagingAll(resourceId, options);
|
|
269
|
+
return {
|
|
270
|
+
next() {
|
|
271
|
+
return iter.next();
|
|
272
|
+
},
|
|
273
|
+
[Symbol.asyncIterator]() {
|
|
274
|
+
return this;
|
|
275
|
+
},
|
|
276
|
+
byPage: () => {
|
|
277
|
+
return this.listQueryResultsForResourcePagingPage(resourceId, options);
|
|
278
|
+
}
|
|
279
|
+
};
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
private async *listQueryResultsForResourcePagingPage(
|
|
283
|
+
resourceId: string,
|
|
284
|
+
options?: PolicyEventsListQueryResultsForResourceOptionalParams
|
|
285
|
+
): AsyncIterableIterator<PolicyEvent[]> {
|
|
286
|
+
let result = await this._listQueryResultsForResource(resourceId, options);
|
|
287
|
+
yield result.value || [];
|
|
288
|
+
let continuationToken = result.odataNextLink;
|
|
289
|
+
while (continuationToken) {
|
|
290
|
+
result = await this._listQueryResultsForResourceNext(
|
|
291
|
+
resourceId,
|
|
292
|
+
continuationToken,
|
|
293
|
+
options
|
|
294
|
+
);
|
|
295
|
+
continuationToken = result.odataNextLink;
|
|
296
|
+
yield result.value || [];
|
|
297
|
+
}
|
|
298
|
+
}
|
|
299
|
+
|
|
300
|
+
private async *listQueryResultsForResourcePagingAll(
|
|
301
|
+
resourceId: string,
|
|
302
|
+
options?: PolicyEventsListQueryResultsForResourceOptionalParams
|
|
303
|
+
): AsyncIterableIterator<PolicyEvent> {
|
|
304
|
+
for await (const page of this.listQueryResultsForResourcePagingPage(
|
|
305
|
+
resourceId,
|
|
306
|
+
options
|
|
307
|
+
)) {
|
|
308
|
+
yield* page;
|
|
309
|
+
}
|
|
310
|
+
}
|
|
311
|
+
|
|
312
|
+
/**
|
|
313
|
+
* Queries policy events for the subscription level policy set definition.
|
|
70
314
|
* @param subscriptionId Microsoft Azure subscription ID.
|
|
71
|
-
* @param
|
|
72
|
-
* @param
|
|
315
|
+
* @param policySetDefinitionName Policy set definition name.
|
|
316
|
+
* @param options The options parameters.
|
|
73
317
|
*/
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
318
|
+
public listQueryResultsForPolicySetDefinition(
|
|
319
|
+
subscriptionId: string,
|
|
320
|
+
policySetDefinitionName: string,
|
|
321
|
+
options?: PolicyEventsListQueryResultsForPolicySetDefinitionOptionalParams
|
|
322
|
+
): PagedAsyncIterableIterator<PolicyEvent> {
|
|
323
|
+
const iter = this.listQueryResultsForPolicySetDefinitionPagingAll(
|
|
324
|
+
subscriptionId,
|
|
325
|
+
policySetDefinitionName,
|
|
326
|
+
options
|
|
327
|
+
);
|
|
328
|
+
return {
|
|
329
|
+
next() {
|
|
330
|
+
return iter.next();
|
|
331
|
+
},
|
|
332
|
+
[Symbol.asyncIterator]() {
|
|
333
|
+
return this;
|
|
334
|
+
},
|
|
335
|
+
byPage: () => {
|
|
336
|
+
return this.listQueryResultsForPolicySetDefinitionPagingPage(
|
|
337
|
+
subscriptionId,
|
|
338
|
+
policySetDefinitionName,
|
|
339
|
+
options
|
|
340
|
+
);
|
|
341
|
+
}
|
|
342
|
+
};
|
|
343
|
+
}
|
|
344
|
+
|
|
345
|
+
private async *listQueryResultsForPolicySetDefinitionPagingPage(
|
|
346
|
+
subscriptionId: string,
|
|
347
|
+
policySetDefinitionName: string,
|
|
348
|
+
options?: PolicyEventsListQueryResultsForPolicySetDefinitionOptionalParams
|
|
349
|
+
): AsyncIterableIterator<PolicyEvent[]> {
|
|
350
|
+
let result = await this._listQueryResultsForPolicySetDefinition(
|
|
351
|
+
subscriptionId,
|
|
352
|
+
policySetDefinitionName,
|
|
353
|
+
options
|
|
354
|
+
);
|
|
355
|
+
yield result.value || [];
|
|
356
|
+
let continuationToken = result.odataNextLink;
|
|
357
|
+
while (continuationToken) {
|
|
358
|
+
result = await this._listQueryResultsForPolicySetDefinitionNext(
|
|
78
359
|
subscriptionId,
|
|
360
|
+
policySetDefinitionName,
|
|
361
|
+
continuationToken,
|
|
79
362
|
options
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
363
|
+
);
|
|
364
|
+
continuationToken = result.odataNextLink;
|
|
365
|
+
yield result.value || [];
|
|
366
|
+
}
|
|
367
|
+
}
|
|
368
|
+
|
|
369
|
+
private async *listQueryResultsForPolicySetDefinitionPagingAll(
|
|
370
|
+
subscriptionId: string,
|
|
371
|
+
policySetDefinitionName: string,
|
|
372
|
+
options?: PolicyEventsListQueryResultsForPolicySetDefinitionOptionalParams
|
|
373
|
+
): AsyncIterableIterator<PolicyEvent> {
|
|
374
|
+
for await (const page of this.listQueryResultsForPolicySetDefinitionPagingPage(
|
|
375
|
+
subscriptionId,
|
|
376
|
+
policySetDefinitionName,
|
|
377
|
+
options
|
|
378
|
+
)) {
|
|
379
|
+
yield* page;
|
|
380
|
+
}
|
|
83
381
|
}
|
|
84
382
|
|
|
85
383
|
/**
|
|
86
|
-
* Queries policy events for the
|
|
384
|
+
* Queries policy events for the subscription level policy definition.
|
|
87
385
|
* @param subscriptionId Microsoft Azure subscription ID.
|
|
88
|
-
* @param
|
|
89
|
-
* @param
|
|
90
|
-
* @returns Promise<Models.PolicyEventsListQueryResultsForResourceGroupResponse>
|
|
386
|
+
* @param policyDefinitionName Policy definition name.
|
|
387
|
+
* @param options The options parameters.
|
|
91
388
|
*/
|
|
92
|
-
|
|
389
|
+
public listQueryResultsForPolicyDefinition(
|
|
390
|
+
subscriptionId: string,
|
|
391
|
+
policyDefinitionName: string,
|
|
392
|
+
options?: PolicyEventsListQueryResultsForPolicyDefinitionOptionalParams
|
|
393
|
+
): PagedAsyncIterableIterator<PolicyEvent> {
|
|
394
|
+
const iter = this.listQueryResultsForPolicyDefinitionPagingAll(
|
|
395
|
+
subscriptionId,
|
|
396
|
+
policyDefinitionName,
|
|
397
|
+
options
|
|
398
|
+
);
|
|
399
|
+
return {
|
|
400
|
+
next() {
|
|
401
|
+
return iter.next();
|
|
402
|
+
},
|
|
403
|
+
[Symbol.asyncIterator]() {
|
|
404
|
+
return this;
|
|
405
|
+
},
|
|
406
|
+
byPage: () => {
|
|
407
|
+
return this.listQueryResultsForPolicyDefinitionPagingPage(
|
|
408
|
+
subscriptionId,
|
|
409
|
+
policyDefinitionName,
|
|
410
|
+
options
|
|
411
|
+
);
|
|
412
|
+
}
|
|
413
|
+
};
|
|
414
|
+
}
|
|
415
|
+
|
|
416
|
+
private async *listQueryResultsForPolicyDefinitionPagingPage(
|
|
417
|
+
subscriptionId: string,
|
|
418
|
+
policyDefinitionName: string,
|
|
419
|
+
options?: PolicyEventsListQueryResultsForPolicyDefinitionOptionalParams
|
|
420
|
+
): AsyncIterableIterator<PolicyEvent[]> {
|
|
421
|
+
let result = await this._listQueryResultsForPolicyDefinition(
|
|
422
|
+
subscriptionId,
|
|
423
|
+
policyDefinitionName,
|
|
424
|
+
options
|
|
425
|
+
);
|
|
426
|
+
yield result.value || [];
|
|
427
|
+
let continuationToken = result.odataNextLink;
|
|
428
|
+
while (continuationToken) {
|
|
429
|
+
result = await this._listQueryResultsForPolicyDefinitionNext(
|
|
430
|
+
subscriptionId,
|
|
431
|
+
policyDefinitionName,
|
|
432
|
+
continuationToken,
|
|
433
|
+
options
|
|
434
|
+
);
|
|
435
|
+
continuationToken = result.odataNextLink;
|
|
436
|
+
yield result.value || [];
|
|
437
|
+
}
|
|
438
|
+
}
|
|
439
|
+
|
|
440
|
+
private async *listQueryResultsForPolicyDefinitionPagingAll(
|
|
441
|
+
subscriptionId: string,
|
|
442
|
+
policyDefinitionName: string,
|
|
443
|
+
options?: PolicyEventsListQueryResultsForPolicyDefinitionOptionalParams
|
|
444
|
+
): AsyncIterableIterator<PolicyEvent> {
|
|
445
|
+
for await (const page of this.listQueryResultsForPolicyDefinitionPagingPage(
|
|
446
|
+
subscriptionId,
|
|
447
|
+
policyDefinitionName,
|
|
448
|
+
options
|
|
449
|
+
)) {
|
|
450
|
+
yield* page;
|
|
451
|
+
}
|
|
452
|
+
}
|
|
453
|
+
|
|
93
454
|
/**
|
|
455
|
+
* Queries policy events for the subscription level policy assignment.
|
|
94
456
|
* @param subscriptionId Microsoft Azure subscription ID.
|
|
95
|
-
* @param
|
|
96
|
-
* @param
|
|
457
|
+
* @param policyAssignmentName Policy assignment name.
|
|
458
|
+
* @param options The options parameters.
|
|
97
459
|
*/
|
|
98
|
-
|
|
460
|
+
public listQueryResultsForSubscriptionLevelPolicyAssignment(
|
|
461
|
+
subscriptionId: string,
|
|
462
|
+
policyAssignmentName: string,
|
|
463
|
+
options?: PolicyEventsListQueryResultsForSubscriptionLevelPolicyAssignmentOptionalParams
|
|
464
|
+
): PagedAsyncIterableIterator<PolicyEvent> {
|
|
465
|
+
const iter = this.listQueryResultsForSubscriptionLevelPolicyAssignmentPagingAll(
|
|
466
|
+
subscriptionId,
|
|
467
|
+
policyAssignmentName,
|
|
468
|
+
options
|
|
469
|
+
);
|
|
470
|
+
return {
|
|
471
|
+
next() {
|
|
472
|
+
return iter.next();
|
|
473
|
+
},
|
|
474
|
+
[Symbol.asyncIterator]() {
|
|
475
|
+
return this;
|
|
476
|
+
},
|
|
477
|
+
byPage: () => {
|
|
478
|
+
return this.listQueryResultsForSubscriptionLevelPolicyAssignmentPagingPage(
|
|
479
|
+
subscriptionId,
|
|
480
|
+
policyAssignmentName,
|
|
481
|
+
options
|
|
482
|
+
);
|
|
483
|
+
}
|
|
484
|
+
};
|
|
485
|
+
}
|
|
486
|
+
|
|
487
|
+
private async *listQueryResultsForSubscriptionLevelPolicyAssignmentPagingPage(
|
|
488
|
+
subscriptionId: string,
|
|
489
|
+
policyAssignmentName: string,
|
|
490
|
+
options?: PolicyEventsListQueryResultsForSubscriptionLevelPolicyAssignmentOptionalParams
|
|
491
|
+
): AsyncIterableIterator<PolicyEvent[]> {
|
|
492
|
+
let result = await this._listQueryResultsForSubscriptionLevelPolicyAssignment(
|
|
493
|
+
subscriptionId,
|
|
494
|
+
policyAssignmentName,
|
|
495
|
+
options
|
|
496
|
+
);
|
|
497
|
+
yield result.value || [];
|
|
498
|
+
let continuationToken = result.odataNextLink;
|
|
499
|
+
while (continuationToken) {
|
|
500
|
+
result = await this._listQueryResultsForSubscriptionLevelPolicyAssignmentNext(
|
|
501
|
+
subscriptionId,
|
|
502
|
+
policyAssignmentName,
|
|
503
|
+
continuationToken,
|
|
504
|
+
options
|
|
505
|
+
);
|
|
506
|
+
continuationToken = result.odataNextLink;
|
|
507
|
+
yield result.value || [];
|
|
508
|
+
}
|
|
509
|
+
}
|
|
510
|
+
|
|
511
|
+
private async *listQueryResultsForSubscriptionLevelPolicyAssignmentPagingAll(
|
|
512
|
+
subscriptionId: string,
|
|
513
|
+
policyAssignmentName: string,
|
|
514
|
+
options?: PolicyEventsListQueryResultsForSubscriptionLevelPolicyAssignmentOptionalParams
|
|
515
|
+
): AsyncIterableIterator<PolicyEvent> {
|
|
516
|
+
for await (const page of this.listQueryResultsForSubscriptionLevelPolicyAssignmentPagingPage(
|
|
517
|
+
subscriptionId,
|
|
518
|
+
policyAssignmentName,
|
|
519
|
+
options
|
|
520
|
+
)) {
|
|
521
|
+
yield* page;
|
|
522
|
+
}
|
|
523
|
+
}
|
|
524
|
+
|
|
99
525
|
/**
|
|
526
|
+
* Queries policy events for the resource group level policy assignment.
|
|
100
527
|
* @param subscriptionId Microsoft Azure subscription ID.
|
|
101
528
|
* @param resourceGroupName Resource group name.
|
|
102
|
-
* @param
|
|
103
|
-
* @param
|
|
529
|
+
* @param policyAssignmentName Policy assignment name.
|
|
530
|
+
* @param options The options parameters.
|
|
104
531
|
*/
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
532
|
+
public listQueryResultsForResourceGroupLevelPolicyAssignment(
|
|
533
|
+
subscriptionId: string,
|
|
534
|
+
resourceGroupName: string,
|
|
535
|
+
policyAssignmentName: string,
|
|
536
|
+
options?: PolicyEventsListQueryResultsForResourceGroupLevelPolicyAssignmentOptionalParams
|
|
537
|
+
): PagedAsyncIterableIterator<PolicyEvent> {
|
|
538
|
+
const iter = this.listQueryResultsForResourceGroupLevelPolicyAssignmentPagingAll(
|
|
539
|
+
subscriptionId,
|
|
540
|
+
resourceGroupName,
|
|
541
|
+
policyAssignmentName,
|
|
542
|
+
options
|
|
543
|
+
);
|
|
544
|
+
return {
|
|
545
|
+
next() {
|
|
546
|
+
return iter.next();
|
|
547
|
+
},
|
|
548
|
+
[Symbol.asyncIterator]() {
|
|
549
|
+
return this;
|
|
550
|
+
},
|
|
551
|
+
byPage: () => {
|
|
552
|
+
return this.listQueryResultsForResourceGroupLevelPolicyAssignmentPagingPage(
|
|
553
|
+
subscriptionId,
|
|
554
|
+
resourceGroupName,
|
|
555
|
+
policyAssignmentName,
|
|
556
|
+
options
|
|
557
|
+
);
|
|
558
|
+
}
|
|
559
|
+
};
|
|
560
|
+
}
|
|
561
|
+
|
|
562
|
+
private async *listQueryResultsForResourceGroupLevelPolicyAssignmentPagingPage(
|
|
563
|
+
subscriptionId: string,
|
|
564
|
+
resourceGroupName: string,
|
|
565
|
+
policyAssignmentName: string,
|
|
566
|
+
options?: PolicyEventsListQueryResultsForResourceGroupLevelPolicyAssignmentOptionalParams
|
|
567
|
+
): AsyncIterableIterator<PolicyEvent[]> {
|
|
568
|
+
let result = await this._listQueryResultsForResourceGroupLevelPolicyAssignment(
|
|
569
|
+
subscriptionId,
|
|
570
|
+
resourceGroupName,
|
|
571
|
+
policyAssignmentName,
|
|
572
|
+
options
|
|
573
|
+
);
|
|
574
|
+
yield result.value || [];
|
|
575
|
+
let continuationToken = result.odataNextLink;
|
|
576
|
+
while (continuationToken) {
|
|
577
|
+
result = await this._listQueryResultsForResourceGroupLevelPolicyAssignmentNext(
|
|
109
578
|
subscriptionId,
|
|
110
579
|
resourceGroupName,
|
|
580
|
+
policyAssignmentName,
|
|
581
|
+
continuationToken,
|
|
111
582
|
options
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
583
|
+
);
|
|
584
|
+
continuationToken = result.odataNextLink;
|
|
585
|
+
yield result.value || [];
|
|
586
|
+
}
|
|
587
|
+
}
|
|
588
|
+
|
|
589
|
+
private async *listQueryResultsForResourceGroupLevelPolicyAssignmentPagingAll(
|
|
590
|
+
subscriptionId: string,
|
|
591
|
+
resourceGroupName: string,
|
|
592
|
+
policyAssignmentName: string,
|
|
593
|
+
options?: PolicyEventsListQueryResultsForResourceGroupLevelPolicyAssignmentOptionalParams
|
|
594
|
+
): AsyncIterableIterator<PolicyEvent> {
|
|
595
|
+
for await (const page of this.listQueryResultsForResourceGroupLevelPolicyAssignmentPagingPage(
|
|
596
|
+
subscriptionId,
|
|
597
|
+
resourceGroupName,
|
|
598
|
+
policyAssignmentName,
|
|
599
|
+
options
|
|
600
|
+
)) {
|
|
601
|
+
yield* page;
|
|
602
|
+
}
|
|
115
603
|
}
|
|
116
604
|
|
|
117
605
|
/**
|
|
118
|
-
* Queries policy events for the
|
|
119
|
-
* @param
|
|
120
|
-
* @param
|
|
121
|
-
* @returns Promise<Models.PolicyEventsListQueryResultsForResourceResponse>
|
|
606
|
+
* Queries policy events for the resources under the management group.
|
|
607
|
+
* @param managementGroupName Management group name.
|
|
608
|
+
* @param options The options parameters.
|
|
122
609
|
*/
|
|
123
|
-
|
|
610
|
+
private _listQueryResultsForManagementGroup(
|
|
611
|
+
managementGroupName: string,
|
|
612
|
+
options?: PolicyEventsListQueryResultsForManagementGroupOptionalParams
|
|
613
|
+
): Promise<PolicyEventsListQueryResultsForManagementGroupResponse> {
|
|
614
|
+
return this.client.sendOperationRequest(
|
|
615
|
+
{ managementGroupName, options },
|
|
616
|
+
listQueryResultsForManagementGroupOperationSpec
|
|
617
|
+
);
|
|
618
|
+
}
|
|
619
|
+
|
|
124
620
|
/**
|
|
125
|
-
*
|
|
126
|
-
* @param
|
|
621
|
+
* Queries policy events for the resources under the subscription.
|
|
622
|
+
* @param subscriptionId Microsoft Azure subscription ID.
|
|
623
|
+
* @param options The options parameters.
|
|
127
624
|
*/
|
|
128
|
-
|
|
625
|
+
private _listQueryResultsForSubscription(
|
|
626
|
+
subscriptionId: string,
|
|
627
|
+
options?: PolicyEventsListQueryResultsForSubscriptionOptionalParams
|
|
628
|
+
): Promise<PolicyEventsListQueryResultsForSubscriptionResponse> {
|
|
629
|
+
return this.client.sendOperationRequest(
|
|
630
|
+
{ subscriptionId, options },
|
|
631
|
+
listQueryResultsForSubscriptionOperationSpec
|
|
632
|
+
);
|
|
633
|
+
}
|
|
634
|
+
|
|
129
635
|
/**
|
|
636
|
+
* Queries policy events for the resources under the resource group.
|
|
637
|
+
* @param subscriptionId Microsoft Azure subscription ID.
|
|
638
|
+
* @param resourceGroupName Resource group name.
|
|
639
|
+
* @param options The options parameters.
|
|
640
|
+
*/
|
|
641
|
+
private _listQueryResultsForResourceGroup(
|
|
642
|
+
subscriptionId: string,
|
|
643
|
+
resourceGroupName: string,
|
|
644
|
+
options?: PolicyEventsListQueryResultsForResourceGroupOptionalParams
|
|
645
|
+
): Promise<PolicyEventsListQueryResultsForResourceGroupResponse> {
|
|
646
|
+
return this.client.sendOperationRequest(
|
|
647
|
+
{ subscriptionId, resourceGroupName, options },
|
|
648
|
+
listQueryResultsForResourceGroupOperationSpec
|
|
649
|
+
);
|
|
650
|
+
}
|
|
651
|
+
|
|
652
|
+
/**
|
|
653
|
+
* Queries policy events for the resource.
|
|
130
654
|
* @param resourceId Resource ID.
|
|
131
|
-
* @param options The
|
|
132
|
-
* @param callback The callback
|
|
655
|
+
* @param options The options parameters.
|
|
133
656
|
*/
|
|
134
|
-
|
|
135
|
-
|
|
657
|
+
private _listQueryResultsForResource(
|
|
658
|
+
resourceId: string,
|
|
659
|
+
options?: PolicyEventsListQueryResultsForResourceOptionalParams
|
|
660
|
+
): Promise<PolicyEventsListQueryResultsForResourceResponse> {
|
|
136
661
|
return this.client.sendOperationRequest(
|
|
137
|
-
{
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
},
|
|
141
|
-
listQueryResultsForResourceOperationSpec,
|
|
142
|
-
callback) as Promise<Models.PolicyEventsListQueryResultsForResourceResponse>;
|
|
662
|
+
{ resourceId, options },
|
|
663
|
+
listQueryResultsForResourceOperationSpec
|
|
664
|
+
);
|
|
143
665
|
}
|
|
144
666
|
|
|
145
667
|
/**
|
|
146
668
|
* Queries policy events for the subscription level policy set definition.
|
|
147
669
|
* @param subscriptionId Microsoft Azure subscription ID.
|
|
148
670
|
* @param policySetDefinitionName Policy set definition name.
|
|
149
|
-
* @param
|
|
150
|
-
* @returns Promise<Models.PolicyEventsListQueryResultsForPolicySetDefinitionResponse>
|
|
671
|
+
* @param options The options parameters.
|
|
151
672
|
*/
|
|
152
|
-
|
|
673
|
+
private _listQueryResultsForPolicySetDefinition(
|
|
674
|
+
subscriptionId: string,
|
|
675
|
+
policySetDefinitionName: string,
|
|
676
|
+
options?: PolicyEventsListQueryResultsForPolicySetDefinitionOptionalParams
|
|
677
|
+
): Promise<PolicyEventsListQueryResultsForPolicySetDefinitionResponse> {
|
|
678
|
+
return this.client.sendOperationRequest(
|
|
679
|
+
{ subscriptionId, policySetDefinitionName, options },
|
|
680
|
+
listQueryResultsForPolicySetDefinitionOperationSpec
|
|
681
|
+
);
|
|
682
|
+
}
|
|
683
|
+
|
|
153
684
|
/**
|
|
685
|
+
* Queries policy events for the subscription level policy definition.
|
|
154
686
|
* @param subscriptionId Microsoft Azure subscription ID.
|
|
155
|
-
* @param
|
|
156
|
-
* @param
|
|
687
|
+
* @param policyDefinitionName Policy definition name.
|
|
688
|
+
* @param options The options parameters.
|
|
157
689
|
*/
|
|
158
|
-
|
|
690
|
+
private _listQueryResultsForPolicyDefinition(
|
|
691
|
+
subscriptionId: string,
|
|
692
|
+
policyDefinitionName: string,
|
|
693
|
+
options?: PolicyEventsListQueryResultsForPolicyDefinitionOptionalParams
|
|
694
|
+
): Promise<PolicyEventsListQueryResultsForPolicyDefinitionResponse> {
|
|
695
|
+
return this.client.sendOperationRequest(
|
|
696
|
+
{ subscriptionId, policyDefinitionName, options },
|
|
697
|
+
listQueryResultsForPolicyDefinitionOperationSpec
|
|
698
|
+
);
|
|
699
|
+
}
|
|
700
|
+
|
|
159
701
|
/**
|
|
702
|
+
* Queries policy events for the subscription level policy assignment.
|
|
160
703
|
* @param subscriptionId Microsoft Azure subscription ID.
|
|
161
|
-
* @param
|
|
162
|
-
* @param options The
|
|
163
|
-
* @param callback The callback
|
|
704
|
+
* @param policyAssignmentName Policy assignment name.
|
|
705
|
+
* @param options The options parameters.
|
|
164
706
|
*/
|
|
165
|
-
|
|
166
|
-
|
|
707
|
+
private _listQueryResultsForSubscriptionLevelPolicyAssignment(
|
|
708
|
+
subscriptionId: string,
|
|
709
|
+
policyAssignmentName: string,
|
|
710
|
+
options?: PolicyEventsListQueryResultsForSubscriptionLevelPolicyAssignmentOptionalParams
|
|
711
|
+
): Promise<
|
|
712
|
+
PolicyEventsListQueryResultsForSubscriptionLevelPolicyAssignmentResponse
|
|
713
|
+
> {
|
|
167
714
|
return this.client.sendOperationRequest(
|
|
168
|
-
{
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
options
|
|
172
|
-
},
|
|
173
|
-
listQueryResultsForPolicySetDefinitionOperationSpec,
|
|
174
|
-
callback) as Promise<Models.PolicyEventsListQueryResultsForPolicySetDefinitionResponse>;
|
|
715
|
+
{ subscriptionId, policyAssignmentName, options },
|
|
716
|
+
listQueryResultsForSubscriptionLevelPolicyAssignmentOperationSpec
|
|
717
|
+
);
|
|
175
718
|
}
|
|
176
719
|
|
|
177
720
|
/**
|
|
178
|
-
* Queries policy events for the
|
|
721
|
+
* Queries policy events for the resource group level policy assignment.
|
|
179
722
|
* @param subscriptionId Microsoft Azure subscription ID.
|
|
180
|
-
* @param
|
|
181
|
-
* @param
|
|
182
|
-
* @
|
|
723
|
+
* @param resourceGroupName Resource group name.
|
|
724
|
+
* @param policyAssignmentName Policy assignment name.
|
|
725
|
+
* @param options The options parameters.
|
|
183
726
|
*/
|
|
184
|
-
|
|
727
|
+
private _listQueryResultsForResourceGroupLevelPolicyAssignment(
|
|
728
|
+
subscriptionId: string,
|
|
729
|
+
resourceGroupName: string,
|
|
730
|
+
policyAssignmentName: string,
|
|
731
|
+
options?: PolicyEventsListQueryResultsForResourceGroupLevelPolicyAssignmentOptionalParams
|
|
732
|
+
): Promise<
|
|
733
|
+
PolicyEventsListQueryResultsForResourceGroupLevelPolicyAssignmentResponse
|
|
734
|
+
> {
|
|
735
|
+
return this.client.sendOperationRequest(
|
|
736
|
+
{ subscriptionId, resourceGroupName, policyAssignmentName, options },
|
|
737
|
+
listQueryResultsForResourceGroupLevelPolicyAssignmentOperationSpec
|
|
738
|
+
);
|
|
739
|
+
}
|
|
740
|
+
|
|
185
741
|
/**
|
|
186
|
-
*
|
|
187
|
-
* @param
|
|
188
|
-
* @param
|
|
742
|
+
* ListQueryResultsForManagementGroupNext
|
|
743
|
+
* @param managementGroupName Management group name.
|
|
744
|
+
* @param nextLink The nextLink from the previous successful call to the
|
|
745
|
+
* ListQueryResultsForManagementGroup method.
|
|
746
|
+
* @param options The options parameters.
|
|
189
747
|
*/
|
|
190
|
-
|
|
748
|
+
private _listQueryResultsForManagementGroupNext(
|
|
749
|
+
managementGroupName: string,
|
|
750
|
+
nextLink: string,
|
|
751
|
+
options?: PolicyEventsListQueryResultsForManagementGroupNextOptionalParams
|
|
752
|
+
): Promise<PolicyEventsListQueryResultsForManagementGroupNextResponse> {
|
|
753
|
+
return this.client.sendOperationRequest(
|
|
754
|
+
{ managementGroupName, nextLink, options },
|
|
755
|
+
listQueryResultsForManagementGroupNextOperationSpec
|
|
756
|
+
);
|
|
757
|
+
}
|
|
758
|
+
|
|
191
759
|
/**
|
|
760
|
+
* ListQueryResultsForSubscriptionNext
|
|
192
761
|
* @param subscriptionId Microsoft Azure subscription ID.
|
|
193
|
-
* @param
|
|
194
|
-
*
|
|
195
|
-
* @param
|
|
762
|
+
* @param nextLink The nextLink from the previous successful call to the
|
|
763
|
+
* ListQueryResultsForSubscription method.
|
|
764
|
+
* @param options The options parameters.
|
|
196
765
|
*/
|
|
197
|
-
|
|
198
|
-
|
|
766
|
+
private _listQueryResultsForSubscriptionNext(
|
|
767
|
+
subscriptionId: string,
|
|
768
|
+
nextLink: string,
|
|
769
|
+
options?: PolicyEventsListQueryResultsForSubscriptionNextOptionalParams
|
|
770
|
+
): Promise<PolicyEventsListQueryResultsForSubscriptionNextResponse> {
|
|
199
771
|
return this.client.sendOperationRequest(
|
|
200
|
-
{
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
options
|
|
204
|
-
},
|
|
205
|
-
listQueryResultsForPolicyDefinitionOperationSpec,
|
|
206
|
-
callback) as Promise<Models.PolicyEventsListQueryResultsForPolicyDefinitionResponse>;
|
|
772
|
+
{ subscriptionId, nextLink, options },
|
|
773
|
+
listQueryResultsForSubscriptionNextOperationSpec
|
|
774
|
+
);
|
|
207
775
|
}
|
|
208
776
|
|
|
209
777
|
/**
|
|
210
|
-
*
|
|
778
|
+
* ListQueryResultsForResourceGroupNext
|
|
211
779
|
* @param subscriptionId Microsoft Azure subscription ID.
|
|
212
|
-
* @param
|
|
213
|
-
* @param
|
|
214
|
-
*
|
|
215
|
-
*
|
|
780
|
+
* @param resourceGroupName Resource group name.
|
|
781
|
+
* @param nextLink The nextLink from the previous successful call to the
|
|
782
|
+
* ListQueryResultsForResourceGroup method.
|
|
783
|
+
* @param options The options parameters.
|
|
216
784
|
*/
|
|
217
|
-
|
|
785
|
+
private _listQueryResultsForResourceGroupNext(
|
|
786
|
+
subscriptionId: string,
|
|
787
|
+
resourceGroupName: string,
|
|
788
|
+
nextLink: string,
|
|
789
|
+
options?: PolicyEventsListQueryResultsForResourceGroupNextOptionalParams
|
|
790
|
+
): Promise<PolicyEventsListQueryResultsForResourceGroupNextResponse> {
|
|
791
|
+
return this.client.sendOperationRequest(
|
|
792
|
+
{ subscriptionId, resourceGroupName, nextLink, options },
|
|
793
|
+
listQueryResultsForResourceGroupNextOperationSpec
|
|
794
|
+
);
|
|
795
|
+
}
|
|
796
|
+
|
|
218
797
|
/**
|
|
219
|
-
*
|
|
220
|
-
* @param
|
|
221
|
-
* @param
|
|
798
|
+
* ListQueryResultsForResourceNext
|
|
799
|
+
* @param resourceId Resource ID.
|
|
800
|
+
* @param nextLink The nextLink from the previous successful call to the ListQueryResultsForResource
|
|
801
|
+
* method.
|
|
802
|
+
* @param options The options parameters.
|
|
222
803
|
*/
|
|
223
|
-
|
|
804
|
+
private _listQueryResultsForResourceNext(
|
|
805
|
+
resourceId: string,
|
|
806
|
+
nextLink: string,
|
|
807
|
+
options?: PolicyEventsListQueryResultsForResourceNextOptionalParams
|
|
808
|
+
): Promise<PolicyEventsListQueryResultsForResourceNextResponse> {
|
|
809
|
+
return this.client.sendOperationRequest(
|
|
810
|
+
{ resourceId, nextLink, options },
|
|
811
|
+
listQueryResultsForResourceNextOperationSpec
|
|
812
|
+
);
|
|
813
|
+
}
|
|
814
|
+
|
|
224
815
|
/**
|
|
816
|
+
* ListQueryResultsForPolicySetDefinitionNext
|
|
225
817
|
* @param subscriptionId Microsoft Azure subscription ID.
|
|
226
|
-
* @param
|
|
227
|
-
* @param
|
|
228
|
-
*
|
|
818
|
+
* @param policySetDefinitionName Policy set definition name.
|
|
819
|
+
* @param nextLink The nextLink from the previous successful call to the
|
|
820
|
+
* ListQueryResultsForPolicySetDefinition method.
|
|
821
|
+
* @param options The options parameters.
|
|
229
822
|
*/
|
|
230
|
-
|
|
231
|
-
|
|
823
|
+
private _listQueryResultsForPolicySetDefinitionNext(
|
|
824
|
+
subscriptionId: string,
|
|
825
|
+
policySetDefinitionName: string,
|
|
826
|
+
nextLink: string,
|
|
827
|
+
options?: PolicyEventsListQueryResultsForPolicySetDefinitionNextOptionalParams
|
|
828
|
+
): Promise<PolicyEventsListQueryResultsForPolicySetDefinitionNextResponse> {
|
|
232
829
|
return this.client.sendOperationRequest(
|
|
233
|
-
{
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
options
|
|
237
|
-
},
|
|
238
|
-
listQueryResultsForSubscriptionLevelPolicyAssignmentOperationSpec,
|
|
239
|
-
callback) as Promise<Models.PolicyEventsListQueryResultsForSubscriptionLevelPolicyAssignmentResponse>;
|
|
830
|
+
{ subscriptionId, policySetDefinitionName, nextLink, options },
|
|
831
|
+
listQueryResultsForPolicySetDefinitionNextOperationSpec
|
|
832
|
+
);
|
|
240
833
|
}
|
|
241
834
|
|
|
242
835
|
/**
|
|
243
|
-
*
|
|
836
|
+
* ListQueryResultsForPolicyDefinitionNext
|
|
244
837
|
* @param subscriptionId Microsoft Azure subscription ID.
|
|
245
|
-
* @param
|
|
246
|
-
* @param
|
|
247
|
-
*
|
|
248
|
-
* @
|
|
249
|
-
* Promise<Models.PolicyEventsListQueryResultsForResourceGroupLevelPolicyAssignmentResponse>
|
|
838
|
+
* @param policyDefinitionName Policy definition name.
|
|
839
|
+
* @param nextLink The nextLink from the previous successful call to the
|
|
840
|
+
* ListQueryResultsForPolicyDefinition method.
|
|
841
|
+
* @param options The options parameters.
|
|
250
842
|
*/
|
|
251
|
-
|
|
843
|
+
private _listQueryResultsForPolicyDefinitionNext(
|
|
844
|
+
subscriptionId: string,
|
|
845
|
+
policyDefinitionName: string,
|
|
846
|
+
nextLink: string,
|
|
847
|
+
options?: PolicyEventsListQueryResultsForPolicyDefinitionNextOptionalParams
|
|
848
|
+
): Promise<PolicyEventsListQueryResultsForPolicyDefinitionNextResponse> {
|
|
849
|
+
return this.client.sendOperationRequest(
|
|
850
|
+
{ subscriptionId, policyDefinitionName, nextLink, options },
|
|
851
|
+
listQueryResultsForPolicyDefinitionNextOperationSpec
|
|
852
|
+
);
|
|
853
|
+
}
|
|
854
|
+
|
|
252
855
|
/**
|
|
856
|
+
* ListQueryResultsForSubscriptionLevelPolicyAssignmentNext
|
|
253
857
|
* @param subscriptionId Microsoft Azure subscription ID.
|
|
254
|
-
* @param resourceGroupName Resource group name.
|
|
255
858
|
* @param policyAssignmentName Policy assignment name.
|
|
256
|
-
* @param
|
|
859
|
+
* @param nextLink The nextLink from the previous successful call to the
|
|
860
|
+
* ListQueryResultsForSubscriptionLevelPolicyAssignment method.
|
|
861
|
+
* @param options The options parameters.
|
|
257
862
|
*/
|
|
258
|
-
|
|
863
|
+
private _listQueryResultsForSubscriptionLevelPolicyAssignmentNext(
|
|
864
|
+
subscriptionId: string,
|
|
865
|
+
policyAssignmentName: string,
|
|
866
|
+
nextLink: string,
|
|
867
|
+
options?: PolicyEventsListQueryResultsForSubscriptionLevelPolicyAssignmentNextOptionalParams
|
|
868
|
+
): Promise<
|
|
869
|
+
PolicyEventsListQueryResultsForSubscriptionLevelPolicyAssignmentNextResponse
|
|
870
|
+
> {
|
|
871
|
+
return this.client.sendOperationRequest(
|
|
872
|
+
{ subscriptionId, policyAssignmentName, nextLink, options },
|
|
873
|
+
listQueryResultsForSubscriptionLevelPolicyAssignmentNextOperationSpec
|
|
874
|
+
);
|
|
875
|
+
}
|
|
876
|
+
|
|
259
877
|
/**
|
|
878
|
+
* ListQueryResultsForResourceGroupLevelPolicyAssignmentNext
|
|
260
879
|
* @param subscriptionId Microsoft Azure subscription ID.
|
|
261
880
|
* @param resourceGroupName Resource group name.
|
|
262
881
|
* @param policyAssignmentName Policy assignment name.
|
|
263
|
-
* @param
|
|
264
|
-
*
|
|
882
|
+
* @param nextLink The nextLink from the previous successful call to the
|
|
883
|
+
* ListQueryResultsForResourceGroupLevelPolicyAssignment method.
|
|
884
|
+
* @param options The options parameters.
|
|
265
885
|
*/
|
|
266
|
-
|
|
267
|
-
|
|
886
|
+
private _listQueryResultsForResourceGroupLevelPolicyAssignmentNext(
|
|
887
|
+
subscriptionId: string,
|
|
888
|
+
resourceGroupName: string,
|
|
889
|
+
policyAssignmentName: string,
|
|
890
|
+
nextLink: string,
|
|
891
|
+
options?: PolicyEventsListQueryResultsForResourceGroupLevelPolicyAssignmentNextOptionalParams
|
|
892
|
+
): Promise<
|
|
893
|
+
PolicyEventsListQueryResultsForResourceGroupLevelPolicyAssignmentNextResponse
|
|
894
|
+
> {
|
|
268
895
|
return this.client.sendOperationRequest(
|
|
269
896
|
{
|
|
270
897
|
subscriptionId,
|
|
271
898
|
resourceGroupName,
|
|
272
899
|
policyAssignmentName,
|
|
900
|
+
nextLink,
|
|
273
901
|
options
|
|
274
902
|
},
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
}
|
|
278
|
-
|
|
279
|
-
/**
|
|
280
|
-
* Gets OData metadata XML document.
|
|
281
|
-
* @param scope A valid scope, i.e. management group, subscription, resource group, or resource ID.
|
|
282
|
-
* Scope used has no effect on metadata returned.
|
|
283
|
-
* @param [options] The optional parameters
|
|
284
|
-
* @returns Promise<Models.PolicyEventsGetMetadataResponse>
|
|
285
|
-
*/
|
|
286
|
-
getMetadata(scope: string, options?: msRest.RequestOptionsBase): Promise<Models.PolicyEventsGetMetadataResponse>;
|
|
287
|
-
/**
|
|
288
|
-
* @param scope A valid scope, i.e. management group, subscription, resource group, or resource ID.
|
|
289
|
-
* Scope used has no effect on metadata returned.
|
|
290
|
-
* @param callback The callback
|
|
291
|
-
*/
|
|
292
|
-
getMetadata(scope: string, callback: msRest.ServiceCallback<string>): void;
|
|
293
|
-
/**
|
|
294
|
-
* @param scope A valid scope, i.e. management group, subscription, resource group, or resource ID.
|
|
295
|
-
* Scope used has no effect on metadata returned.
|
|
296
|
-
* @param options The optional parameters
|
|
297
|
-
* @param callback The callback
|
|
298
|
-
*/
|
|
299
|
-
getMetadata(scope: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<string>): void;
|
|
300
|
-
getMetadata(scope: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<string>, callback?: msRest.ServiceCallback<string>): Promise<Models.PolicyEventsGetMetadataResponse> {
|
|
301
|
-
return this.client.sendOperationRequest(
|
|
302
|
-
{
|
|
303
|
-
scope,
|
|
304
|
-
options
|
|
305
|
-
},
|
|
306
|
-
getMetadataOperationSpec,
|
|
307
|
-
callback) as Promise<Models.PolicyEventsGetMetadataResponse>;
|
|
903
|
+
listQueryResultsForResourceGroupLevelPolicyAssignmentNextOperationSpec
|
|
904
|
+
);
|
|
308
905
|
}
|
|
309
906
|
}
|
|
310
|
-
|
|
311
907
|
// Operation Specifications
|
|
312
|
-
const serializer =
|
|
313
|
-
|
|
908
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
909
|
+
|
|
910
|
+
const listQueryResultsForManagementGroupOperationSpec: coreClient.OperationSpec = {
|
|
911
|
+
path:
|
|
912
|
+
"/providers/{managementGroupsNamespace}/managementGroups/{managementGroupName}/providers/Microsoft.PolicyInsights/policyEvents/{policyEventsResource}/queryResults",
|
|
314
913
|
httpMethod: "POST",
|
|
315
|
-
|
|
914
|
+
responses: {
|
|
915
|
+
200: {
|
|
916
|
+
bodyMapper: Mappers.PolicyEventsQueryResults
|
|
917
|
+
},
|
|
918
|
+
default: {
|
|
919
|
+
bodyMapper: Mappers.QueryFailure
|
|
920
|
+
}
|
|
921
|
+
},
|
|
922
|
+
queryParameters: [
|
|
923
|
+
Parameters.top,
|
|
924
|
+
Parameters.filter,
|
|
925
|
+
Parameters.apiVersion2,
|
|
926
|
+
Parameters.orderBy,
|
|
927
|
+
Parameters.select,
|
|
928
|
+
Parameters.fromParam,
|
|
929
|
+
Parameters.to,
|
|
930
|
+
Parameters.apply,
|
|
931
|
+
Parameters.skipToken
|
|
932
|
+
],
|
|
316
933
|
urlParameters: [
|
|
317
|
-
Parameters
|
|
934
|
+
Parameters.$host,
|
|
318
935
|
Parameters.managementGroupsNamespace,
|
|
319
|
-
Parameters.managementGroupName
|
|
936
|
+
Parameters.managementGroupName,
|
|
937
|
+
Parameters.policyEventsResource
|
|
320
938
|
],
|
|
939
|
+
headerParameters: [Parameters.accept],
|
|
940
|
+
serializer
|
|
941
|
+
};
|
|
942
|
+
const listQueryResultsForSubscriptionOperationSpec: coreClient.OperationSpec = {
|
|
943
|
+
path:
|
|
944
|
+
"/subscriptions/{subscriptionId}/providers/Microsoft.PolicyInsights/policyEvents/{policyEventsResource}/queryResults",
|
|
945
|
+
httpMethod: "POST",
|
|
946
|
+
responses: {
|
|
947
|
+
200: {
|
|
948
|
+
bodyMapper: Mappers.PolicyEventsQueryResults
|
|
949
|
+
},
|
|
950
|
+
default: {
|
|
951
|
+
bodyMapper: Mappers.QueryFailure
|
|
952
|
+
}
|
|
953
|
+
},
|
|
321
954
|
queryParameters: [
|
|
322
|
-
Parameters.apiVersion2,
|
|
323
955
|
Parameters.top,
|
|
956
|
+
Parameters.filter,
|
|
957
|
+
Parameters.apiVersion2,
|
|
324
958
|
Parameters.orderBy,
|
|
325
959
|
Parameters.select,
|
|
326
|
-
Parameters.
|
|
960
|
+
Parameters.fromParam,
|
|
327
961
|
Parameters.to,
|
|
328
|
-
Parameters.
|
|
329
|
-
Parameters.
|
|
962
|
+
Parameters.apply,
|
|
963
|
+
Parameters.skipToken
|
|
330
964
|
],
|
|
331
|
-
|
|
332
|
-
Parameters
|
|
965
|
+
urlParameters: [
|
|
966
|
+
Parameters.$host,
|
|
967
|
+
Parameters.policyEventsResource,
|
|
968
|
+
Parameters.subscriptionId1
|
|
333
969
|
],
|
|
970
|
+
headerParameters: [Parameters.accept],
|
|
971
|
+
serializer
|
|
972
|
+
};
|
|
973
|
+
const listQueryResultsForResourceGroupOperationSpec: coreClient.OperationSpec = {
|
|
974
|
+
path:
|
|
975
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.PolicyInsights/policyEvents/{policyEventsResource}/queryResults",
|
|
976
|
+
httpMethod: "POST",
|
|
334
977
|
responses: {
|
|
335
978
|
200: {
|
|
336
979
|
bodyMapper: Mappers.PolicyEventsQueryResults
|
|
@@ -339,29 +982,30 @@ const listQueryResultsForManagementGroupOperationSpec: msRest.OperationSpec = {
|
|
|
339
982
|
bodyMapper: Mappers.QueryFailure
|
|
340
983
|
}
|
|
341
984
|
},
|
|
342
|
-
serializer
|
|
343
|
-
};
|
|
344
|
-
|
|
345
|
-
const listQueryResultsForSubscriptionOperationSpec: msRest.OperationSpec = {
|
|
346
|
-
httpMethod: "POST",
|
|
347
|
-
path: "subscriptions/{subscriptionId}/providers/Microsoft.PolicyInsights/policyEvents/{policyEventsResource}/queryResults",
|
|
348
|
-
urlParameters: [
|
|
349
|
-
Parameters.policyEventsResource,
|
|
350
|
-
Parameters.subscriptionId
|
|
351
|
-
],
|
|
352
985
|
queryParameters: [
|
|
353
|
-
Parameters.apiVersion2,
|
|
354
986
|
Parameters.top,
|
|
987
|
+
Parameters.filter,
|
|
988
|
+
Parameters.apiVersion2,
|
|
355
989
|
Parameters.orderBy,
|
|
356
990
|
Parameters.select,
|
|
357
|
-
Parameters.
|
|
991
|
+
Parameters.fromParam,
|
|
358
992
|
Parameters.to,
|
|
359
|
-
Parameters.
|
|
360
|
-
Parameters.
|
|
993
|
+
Parameters.apply,
|
|
994
|
+
Parameters.skipToken
|
|
361
995
|
],
|
|
362
|
-
|
|
363
|
-
Parameters
|
|
996
|
+
urlParameters: [
|
|
997
|
+
Parameters.$host,
|
|
998
|
+
Parameters.resourceGroupName,
|
|
999
|
+
Parameters.policyEventsResource,
|
|
1000
|
+
Parameters.subscriptionId1
|
|
364
1001
|
],
|
|
1002
|
+
headerParameters: [Parameters.accept],
|
|
1003
|
+
serializer
|
|
1004
|
+
};
|
|
1005
|
+
const listQueryResultsForResourceOperationSpec: coreClient.OperationSpec = {
|
|
1006
|
+
path:
|
|
1007
|
+
"/{resourceId}/providers/Microsoft.PolicyInsights/policyEvents/{policyEventsResource}/queryResults",
|
|
1008
|
+
httpMethod: "POST",
|
|
365
1009
|
responses: {
|
|
366
1010
|
200: {
|
|
367
1011
|
bodyMapper: Mappers.PolicyEventsQueryResults
|
|
@@ -370,30 +1014,30 @@ const listQueryResultsForSubscriptionOperationSpec: msRest.OperationSpec = {
|
|
|
370
1014
|
bodyMapper: Mappers.QueryFailure
|
|
371
1015
|
}
|
|
372
1016
|
},
|
|
373
|
-
serializer
|
|
374
|
-
};
|
|
375
|
-
|
|
376
|
-
const listQueryResultsForResourceGroupOperationSpec: msRest.OperationSpec = {
|
|
377
|
-
httpMethod: "POST",
|
|
378
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.PolicyInsights/policyEvents/{policyEventsResource}/queryResults",
|
|
379
|
-
urlParameters: [
|
|
380
|
-
Parameters.policyEventsResource,
|
|
381
|
-
Parameters.subscriptionId,
|
|
382
|
-
Parameters.resourceGroupName
|
|
383
|
-
],
|
|
384
1017
|
queryParameters: [
|
|
385
|
-
Parameters.apiVersion2,
|
|
386
1018
|
Parameters.top,
|
|
1019
|
+
Parameters.filter,
|
|
1020
|
+
Parameters.apiVersion2,
|
|
387
1021
|
Parameters.orderBy,
|
|
388
1022
|
Parameters.select,
|
|
389
|
-
Parameters.
|
|
1023
|
+
Parameters.fromParam,
|
|
390
1024
|
Parameters.to,
|
|
391
|
-
Parameters.
|
|
392
|
-
Parameters.
|
|
1025
|
+
Parameters.apply,
|
|
1026
|
+
Parameters.skipToken,
|
|
1027
|
+
Parameters.expand
|
|
393
1028
|
],
|
|
394
|
-
|
|
395
|
-
Parameters
|
|
1029
|
+
urlParameters: [
|
|
1030
|
+
Parameters.$host,
|
|
1031
|
+
Parameters.resourceId,
|
|
1032
|
+
Parameters.policyEventsResource
|
|
396
1033
|
],
|
|
1034
|
+
headerParameters: [Parameters.accept],
|
|
1035
|
+
serializer
|
|
1036
|
+
};
|
|
1037
|
+
const listQueryResultsForPolicySetDefinitionOperationSpec: coreClient.OperationSpec = {
|
|
1038
|
+
path:
|
|
1039
|
+
"/subscriptions/{subscriptionId}/providers/{authorizationNamespace}/policySetDefinitions/{policySetDefinitionName}/providers/Microsoft.PolicyInsights/policyEvents/{policyEventsResource}/queryResults",
|
|
1040
|
+
httpMethod: "POST",
|
|
397
1041
|
responses: {
|
|
398
1042
|
200: {
|
|
399
1043
|
bodyMapper: Mappers.PolicyEventsQueryResults
|
|
@@ -402,29 +1046,31 @@ const listQueryResultsForResourceGroupOperationSpec: msRest.OperationSpec = {
|
|
|
402
1046
|
bodyMapper: Mappers.QueryFailure
|
|
403
1047
|
}
|
|
404
1048
|
},
|
|
405
|
-
serializer
|
|
406
|
-
};
|
|
407
|
-
|
|
408
|
-
const listQueryResultsForResourceOperationSpec: msRest.OperationSpec = {
|
|
409
|
-
httpMethod: "POST",
|
|
410
|
-
path: "{resourceId}/providers/Microsoft.PolicyInsights/policyEvents/{policyEventsResource}/queryResults",
|
|
411
|
-
urlParameters: [
|
|
412
|
-
Parameters.policyEventsResource,
|
|
413
|
-
Parameters.resourceId
|
|
414
|
-
],
|
|
415
1049
|
queryParameters: [
|
|
416
|
-
Parameters.apiVersion2,
|
|
417
1050
|
Parameters.top,
|
|
1051
|
+
Parameters.filter,
|
|
1052
|
+
Parameters.apiVersion2,
|
|
418
1053
|
Parameters.orderBy,
|
|
419
1054
|
Parameters.select,
|
|
420
|
-
Parameters.
|
|
1055
|
+
Parameters.fromParam,
|
|
421
1056
|
Parameters.to,
|
|
422
|
-
Parameters.
|
|
423
|
-
Parameters.
|
|
1057
|
+
Parameters.apply,
|
|
1058
|
+
Parameters.skipToken
|
|
424
1059
|
],
|
|
425
|
-
|
|
426
|
-
Parameters
|
|
1060
|
+
urlParameters: [
|
|
1061
|
+
Parameters.$host,
|
|
1062
|
+
Parameters.policyEventsResource,
|
|
1063
|
+
Parameters.subscriptionId1,
|
|
1064
|
+
Parameters.authorizationNamespace,
|
|
1065
|
+
Parameters.policySetDefinitionName
|
|
427
1066
|
],
|
|
1067
|
+
headerParameters: [Parameters.accept],
|
|
1068
|
+
serializer
|
|
1069
|
+
};
|
|
1070
|
+
const listQueryResultsForPolicyDefinitionOperationSpec: coreClient.OperationSpec = {
|
|
1071
|
+
path:
|
|
1072
|
+
"/subscriptions/{subscriptionId}/providers/{authorizationNamespace}/policyDefinitions/{policyDefinitionName}/providers/Microsoft.PolicyInsights/policyEvents/{policyEventsResource}/queryResults",
|
|
1073
|
+
httpMethod: "POST",
|
|
428
1074
|
responses: {
|
|
429
1075
|
200: {
|
|
430
1076
|
bodyMapper: Mappers.PolicyEventsQueryResults
|
|
@@ -433,31 +1079,64 @@ const listQueryResultsForResourceOperationSpec: msRest.OperationSpec = {
|
|
|
433
1079
|
bodyMapper: Mappers.QueryFailure
|
|
434
1080
|
}
|
|
435
1081
|
},
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
1082
|
+
queryParameters: [
|
|
1083
|
+
Parameters.top,
|
|
1084
|
+
Parameters.filter,
|
|
1085
|
+
Parameters.apiVersion2,
|
|
1086
|
+
Parameters.orderBy,
|
|
1087
|
+
Parameters.select,
|
|
1088
|
+
Parameters.fromParam,
|
|
1089
|
+
Parameters.to,
|
|
1090
|
+
Parameters.apply,
|
|
1091
|
+
Parameters.skipToken
|
|
1092
|
+
],
|
|
442
1093
|
urlParameters: [
|
|
1094
|
+
Parameters.$host,
|
|
443
1095
|
Parameters.policyEventsResource,
|
|
444
|
-
Parameters.
|
|
1096
|
+
Parameters.subscriptionId1,
|
|
445
1097
|
Parameters.authorizationNamespace,
|
|
446
|
-
Parameters.
|
|
1098
|
+
Parameters.policyDefinitionName
|
|
447
1099
|
],
|
|
1100
|
+
headerParameters: [Parameters.accept],
|
|
1101
|
+
serializer
|
|
1102
|
+
};
|
|
1103
|
+
const listQueryResultsForSubscriptionLevelPolicyAssignmentOperationSpec: coreClient.OperationSpec = {
|
|
1104
|
+
path:
|
|
1105
|
+
"/subscriptions/{subscriptionId}/providers/{authorizationNamespace}/policyAssignments/{policyAssignmentName}/providers/Microsoft.PolicyInsights/policyEvents/{policyEventsResource}/queryResults",
|
|
1106
|
+
httpMethod: "POST",
|
|
1107
|
+
responses: {
|
|
1108
|
+
200: {
|
|
1109
|
+
bodyMapper: Mappers.PolicyEventsQueryResults
|
|
1110
|
+
},
|
|
1111
|
+
default: {
|
|
1112
|
+
bodyMapper: Mappers.QueryFailure
|
|
1113
|
+
}
|
|
1114
|
+
},
|
|
448
1115
|
queryParameters: [
|
|
449
|
-
Parameters.apiVersion2,
|
|
450
1116
|
Parameters.top,
|
|
1117
|
+
Parameters.filter,
|
|
1118
|
+
Parameters.apiVersion2,
|
|
451
1119
|
Parameters.orderBy,
|
|
452
1120
|
Parameters.select,
|
|
453
|
-
Parameters.
|
|
1121
|
+
Parameters.fromParam,
|
|
454
1122
|
Parameters.to,
|
|
455
|
-
Parameters.
|
|
456
|
-
Parameters.
|
|
1123
|
+
Parameters.apply,
|
|
1124
|
+
Parameters.skipToken
|
|
457
1125
|
],
|
|
458
|
-
|
|
459
|
-
Parameters
|
|
1126
|
+
urlParameters: [
|
|
1127
|
+
Parameters.$host,
|
|
1128
|
+
Parameters.policyEventsResource,
|
|
1129
|
+
Parameters.subscriptionId1,
|
|
1130
|
+
Parameters.authorizationNamespace,
|
|
1131
|
+
Parameters.policyAssignmentName
|
|
460
1132
|
],
|
|
1133
|
+
headerParameters: [Parameters.accept],
|
|
1134
|
+
serializer
|
|
1135
|
+
};
|
|
1136
|
+
const listQueryResultsForResourceGroupLevelPolicyAssignmentOperationSpec: coreClient.OperationSpec = {
|
|
1137
|
+
path:
|
|
1138
|
+
"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{authorizationNamespace}/policyAssignments/{policyAssignmentName}/providers/Microsoft.PolicyInsights/policyEvents/{policyEventsResource}/queryResults",
|
|
1139
|
+
httpMethod: "POST",
|
|
461
1140
|
responses: {
|
|
462
1141
|
200: {
|
|
463
1142
|
bodyMapper: Mappers.PolicyEventsQueryResults
|
|
@@ -466,31 +1145,63 @@ const listQueryResultsForPolicySetDefinitionOperationSpec: msRest.OperationSpec
|
|
|
466
1145
|
bodyMapper: Mappers.QueryFailure
|
|
467
1146
|
}
|
|
468
1147
|
},
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
1148
|
+
queryParameters: [
|
|
1149
|
+
Parameters.top,
|
|
1150
|
+
Parameters.filter,
|
|
1151
|
+
Parameters.apiVersion2,
|
|
1152
|
+
Parameters.orderBy,
|
|
1153
|
+
Parameters.select,
|
|
1154
|
+
Parameters.fromParam,
|
|
1155
|
+
Parameters.to,
|
|
1156
|
+
Parameters.apply,
|
|
1157
|
+
Parameters.skipToken
|
|
1158
|
+
],
|
|
475
1159
|
urlParameters: [
|
|
1160
|
+
Parameters.$host,
|
|
1161
|
+
Parameters.resourceGroupName,
|
|
476
1162
|
Parameters.policyEventsResource,
|
|
477
|
-
Parameters.
|
|
1163
|
+
Parameters.subscriptionId1,
|
|
478
1164
|
Parameters.authorizationNamespace,
|
|
479
|
-
Parameters.
|
|
1165
|
+
Parameters.policyAssignmentName
|
|
480
1166
|
],
|
|
1167
|
+
headerParameters: [Parameters.accept],
|
|
1168
|
+
serializer
|
|
1169
|
+
};
|
|
1170
|
+
const listQueryResultsForManagementGroupNextOperationSpec: coreClient.OperationSpec = {
|
|
1171
|
+
path: "{nextLink}",
|
|
1172
|
+
httpMethod: "GET",
|
|
1173
|
+
responses: {
|
|
1174
|
+
200: {
|
|
1175
|
+
bodyMapper: Mappers.PolicyEventsQueryResults
|
|
1176
|
+
},
|
|
1177
|
+
default: {
|
|
1178
|
+
bodyMapper: Mappers.QueryFailure
|
|
1179
|
+
}
|
|
1180
|
+
},
|
|
481
1181
|
queryParameters: [
|
|
482
|
-
Parameters.apiVersion2,
|
|
483
1182
|
Parameters.top,
|
|
1183
|
+
Parameters.filter,
|
|
1184
|
+
Parameters.apiVersion2,
|
|
484
1185
|
Parameters.orderBy,
|
|
485
1186
|
Parameters.select,
|
|
486
|
-
Parameters.
|
|
1187
|
+
Parameters.fromParam,
|
|
487
1188
|
Parameters.to,
|
|
488
|
-
Parameters.
|
|
489
|
-
Parameters.
|
|
1189
|
+
Parameters.apply,
|
|
1190
|
+
Parameters.skipToken
|
|
490
1191
|
],
|
|
491
|
-
|
|
492
|
-
Parameters
|
|
1192
|
+
urlParameters: [
|
|
1193
|
+
Parameters.$host,
|
|
1194
|
+
Parameters.managementGroupsNamespace,
|
|
1195
|
+
Parameters.managementGroupName,
|
|
1196
|
+
Parameters.nextLink,
|
|
1197
|
+
Parameters.policyEventsResource
|
|
493
1198
|
],
|
|
1199
|
+
headerParameters: [Parameters.accept],
|
|
1200
|
+
serializer
|
|
1201
|
+
};
|
|
1202
|
+
const listQueryResultsForSubscriptionNextOperationSpec: coreClient.OperationSpec = {
|
|
1203
|
+
path: "{nextLink}",
|
|
1204
|
+
httpMethod: "GET",
|
|
494
1205
|
responses: {
|
|
495
1206
|
200: {
|
|
496
1207
|
bodyMapper: Mappers.PolicyEventsQueryResults
|
|
@@ -499,31 +1210,61 @@ const listQueryResultsForPolicyDefinitionOperationSpec: msRest.OperationSpec = {
|
|
|
499
1210
|
bodyMapper: Mappers.QueryFailure
|
|
500
1211
|
}
|
|
501
1212
|
},
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
1213
|
+
queryParameters: [
|
|
1214
|
+
Parameters.top,
|
|
1215
|
+
Parameters.filter,
|
|
1216
|
+
Parameters.apiVersion2,
|
|
1217
|
+
Parameters.orderBy,
|
|
1218
|
+
Parameters.select,
|
|
1219
|
+
Parameters.fromParam,
|
|
1220
|
+
Parameters.to,
|
|
1221
|
+
Parameters.apply,
|
|
1222
|
+
Parameters.skipToken
|
|
1223
|
+
],
|
|
508
1224
|
urlParameters: [
|
|
1225
|
+
Parameters.$host,
|
|
1226
|
+
Parameters.nextLink,
|
|
509
1227
|
Parameters.policyEventsResource,
|
|
510
|
-
Parameters.
|
|
511
|
-
Parameters.authorizationNamespace,
|
|
512
|
-
Parameters.policyAssignmentName
|
|
1228
|
+
Parameters.subscriptionId1
|
|
513
1229
|
],
|
|
1230
|
+
headerParameters: [Parameters.accept],
|
|
1231
|
+
serializer
|
|
1232
|
+
};
|
|
1233
|
+
const listQueryResultsForResourceGroupNextOperationSpec: coreClient.OperationSpec = {
|
|
1234
|
+
path: "{nextLink}",
|
|
1235
|
+
httpMethod: "GET",
|
|
1236
|
+
responses: {
|
|
1237
|
+
200: {
|
|
1238
|
+
bodyMapper: Mappers.PolicyEventsQueryResults
|
|
1239
|
+
},
|
|
1240
|
+
default: {
|
|
1241
|
+
bodyMapper: Mappers.QueryFailure
|
|
1242
|
+
}
|
|
1243
|
+
},
|
|
514
1244
|
queryParameters: [
|
|
515
|
-
Parameters.apiVersion2,
|
|
516
1245
|
Parameters.top,
|
|
1246
|
+
Parameters.filter,
|
|
1247
|
+
Parameters.apiVersion2,
|
|
517
1248
|
Parameters.orderBy,
|
|
518
1249
|
Parameters.select,
|
|
519
|
-
Parameters.
|
|
1250
|
+
Parameters.fromParam,
|
|
520
1251
|
Parameters.to,
|
|
521
|
-
Parameters.
|
|
522
|
-
Parameters.
|
|
1252
|
+
Parameters.apply,
|
|
1253
|
+
Parameters.skipToken
|
|
523
1254
|
],
|
|
524
|
-
|
|
525
|
-
Parameters
|
|
1255
|
+
urlParameters: [
|
|
1256
|
+
Parameters.$host,
|
|
1257
|
+
Parameters.resourceGroupName,
|
|
1258
|
+
Parameters.nextLink,
|
|
1259
|
+
Parameters.policyEventsResource,
|
|
1260
|
+
Parameters.subscriptionId1
|
|
526
1261
|
],
|
|
1262
|
+
headerParameters: [Parameters.accept],
|
|
1263
|
+
serializer
|
|
1264
|
+
};
|
|
1265
|
+
const listQueryResultsForResourceNextOperationSpec: coreClient.OperationSpec = {
|
|
1266
|
+
path: "{nextLink}",
|
|
1267
|
+
httpMethod: "GET",
|
|
527
1268
|
responses: {
|
|
528
1269
|
200: {
|
|
529
1270
|
bodyMapper: Mappers.PolicyEventsQueryResults
|
|
@@ -532,32 +1273,96 @@ const listQueryResultsForSubscriptionLevelPolicyAssignmentOperationSpec: msRest.
|
|
|
532
1273
|
bodyMapper: Mappers.QueryFailure
|
|
533
1274
|
}
|
|
534
1275
|
},
|
|
1276
|
+
queryParameters: [
|
|
1277
|
+
Parameters.top,
|
|
1278
|
+
Parameters.filter,
|
|
1279
|
+
Parameters.apiVersion2,
|
|
1280
|
+
Parameters.orderBy,
|
|
1281
|
+
Parameters.select,
|
|
1282
|
+
Parameters.fromParam,
|
|
1283
|
+
Parameters.to,
|
|
1284
|
+
Parameters.apply,
|
|
1285
|
+
Parameters.skipToken,
|
|
1286
|
+
Parameters.expand
|
|
1287
|
+
],
|
|
1288
|
+
urlParameters: [
|
|
1289
|
+
Parameters.$host,
|
|
1290
|
+
Parameters.resourceId,
|
|
1291
|
+
Parameters.nextLink,
|
|
1292
|
+
Parameters.policyEventsResource
|
|
1293
|
+
],
|
|
1294
|
+
headerParameters: [Parameters.accept],
|
|
535
1295
|
serializer
|
|
536
1296
|
};
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
httpMethod: "
|
|
540
|
-
|
|
1297
|
+
const listQueryResultsForPolicySetDefinitionNextOperationSpec: coreClient.OperationSpec = {
|
|
1298
|
+
path: "{nextLink}",
|
|
1299
|
+
httpMethod: "GET",
|
|
1300
|
+
responses: {
|
|
1301
|
+
200: {
|
|
1302
|
+
bodyMapper: Mappers.PolicyEventsQueryResults
|
|
1303
|
+
},
|
|
1304
|
+
default: {
|
|
1305
|
+
bodyMapper: Mappers.QueryFailure
|
|
1306
|
+
}
|
|
1307
|
+
},
|
|
1308
|
+
queryParameters: [
|
|
1309
|
+
Parameters.top,
|
|
1310
|
+
Parameters.filter,
|
|
1311
|
+
Parameters.apiVersion2,
|
|
1312
|
+
Parameters.orderBy,
|
|
1313
|
+
Parameters.select,
|
|
1314
|
+
Parameters.fromParam,
|
|
1315
|
+
Parameters.to,
|
|
1316
|
+
Parameters.apply,
|
|
1317
|
+
Parameters.skipToken
|
|
1318
|
+
],
|
|
541
1319
|
urlParameters: [
|
|
1320
|
+
Parameters.$host,
|
|
1321
|
+
Parameters.nextLink,
|
|
542
1322
|
Parameters.policyEventsResource,
|
|
543
|
-
Parameters.
|
|
544
|
-
Parameters.resourceGroupName,
|
|
1323
|
+
Parameters.subscriptionId1,
|
|
545
1324
|
Parameters.authorizationNamespace,
|
|
546
|
-
Parameters.
|
|
1325
|
+
Parameters.policySetDefinitionName
|
|
547
1326
|
],
|
|
1327
|
+
headerParameters: [Parameters.accept],
|
|
1328
|
+
serializer
|
|
1329
|
+
};
|
|
1330
|
+
const listQueryResultsForPolicyDefinitionNextOperationSpec: coreClient.OperationSpec = {
|
|
1331
|
+
path: "{nextLink}",
|
|
1332
|
+
httpMethod: "GET",
|
|
1333
|
+
responses: {
|
|
1334
|
+
200: {
|
|
1335
|
+
bodyMapper: Mappers.PolicyEventsQueryResults
|
|
1336
|
+
},
|
|
1337
|
+
default: {
|
|
1338
|
+
bodyMapper: Mappers.QueryFailure
|
|
1339
|
+
}
|
|
1340
|
+
},
|
|
548
1341
|
queryParameters: [
|
|
549
|
-
Parameters.apiVersion2,
|
|
550
1342
|
Parameters.top,
|
|
1343
|
+
Parameters.filter,
|
|
1344
|
+
Parameters.apiVersion2,
|
|
551
1345
|
Parameters.orderBy,
|
|
552
1346
|
Parameters.select,
|
|
553
|
-
Parameters.
|
|
1347
|
+
Parameters.fromParam,
|
|
554
1348
|
Parameters.to,
|
|
555
|
-
Parameters.
|
|
556
|
-
Parameters.
|
|
1349
|
+
Parameters.apply,
|
|
1350
|
+
Parameters.skipToken
|
|
557
1351
|
],
|
|
558
|
-
|
|
559
|
-
Parameters
|
|
1352
|
+
urlParameters: [
|
|
1353
|
+
Parameters.$host,
|
|
1354
|
+
Parameters.nextLink,
|
|
1355
|
+
Parameters.policyEventsResource,
|
|
1356
|
+
Parameters.subscriptionId1,
|
|
1357
|
+
Parameters.authorizationNamespace,
|
|
1358
|
+
Parameters.policyDefinitionName
|
|
560
1359
|
],
|
|
1360
|
+
headerParameters: [Parameters.accept],
|
|
1361
|
+
serializer
|
|
1362
|
+
};
|
|
1363
|
+
const listQueryResultsForSubscriptionLevelPolicyAssignmentNextOperationSpec: coreClient.OperationSpec = {
|
|
1364
|
+
path: "{nextLink}",
|
|
1365
|
+
httpMethod: "GET",
|
|
561
1366
|
responses: {
|
|
562
1367
|
200: {
|
|
563
1368
|
bodyMapper: Mappers.PolicyEventsQueryResults
|
|
@@ -566,33 +1371,59 @@ const listQueryResultsForResourceGroupLevelPolicyAssignmentOperationSpec: msRest
|
|
|
566
1371
|
bodyMapper: Mappers.QueryFailure
|
|
567
1372
|
}
|
|
568
1373
|
},
|
|
569
|
-
serializer
|
|
570
|
-
};
|
|
571
|
-
|
|
572
|
-
const getMetadataOperationSpec: msRest.OperationSpec = {
|
|
573
|
-
httpMethod: "GET",
|
|
574
|
-
path: "{scope}/providers/Microsoft.PolicyInsights/policyEvents/$metadata",
|
|
575
|
-
urlParameters: [
|
|
576
|
-
Parameters.scope
|
|
577
|
-
],
|
|
578
1374
|
queryParameters: [
|
|
579
|
-
Parameters.
|
|
1375
|
+
Parameters.top,
|
|
1376
|
+
Parameters.filter,
|
|
1377
|
+
Parameters.apiVersion2,
|
|
1378
|
+
Parameters.orderBy,
|
|
1379
|
+
Parameters.select,
|
|
1380
|
+
Parameters.fromParam,
|
|
1381
|
+
Parameters.to,
|
|
1382
|
+
Parameters.apply,
|
|
1383
|
+
Parameters.skipToken
|
|
580
1384
|
],
|
|
581
|
-
|
|
582
|
-
Parameters
|
|
1385
|
+
urlParameters: [
|
|
1386
|
+
Parameters.$host,
|
|
1387
|
+
Parameters.nextLink,
|
|
1388
|
+
Parameters.policyEventsResource,
|
|
1389
|
+
Parameters.subscriptionId1,
|
|
1390
|
+
Parameters.authorizationNamespace,
|
|
1391
|
+
Parameters.policyAssignmentName
|
|
583
1392
|
],
|
|
1393
|
+
headerParameters: [Parameters.accept],
|
|
1394
|
+
serializer
|
|
1395
|
+
};
|
|
1396
|
+
const listQueryResultsForResourceGroupLevelPolicyAssignmentNextOperationSpec: coreClient.OperationSpec = {
|
|
1397
|
+
path: "{nextLink}",
|
|
1398
|
+
httpMethod: "GET",
|
|
584
1399
|
responses: {
|
|
585
1400
|
200: {
|
|
586
|
-
bodyMapper:
|
|
587
|
-
serializedName: "parsedResponse",
|
|
588
|
-
type: {
|
|
589
|
-
name: "String"
|
|
590
|
-
}
|
|
591
|
-
}
|
|
1401
|
+
bodyMapper: Mappers.PolicyEventsQueryResults
|
|
592
1402
|
},
|
|
593
1403
|
default: {
|
|
594
1404
|
bodyMapper: Mappers.QueryFailure
|
|
595
1405
|
}
|
|
596
1406
|
},
|
|
1407
|
+
queryParameters: [
|
|
1408
|
+
Parameters.top,
|
|
1409
|
+
Parameters.filter,
|
|
1410
|
+
Parameters.apiVersion2,
|
|
1411
|
+
Parameters.orderBy,
|
|
1412
|
+
Parameters.select,
|
|
1413
|
+
Parameters.fromParam,
|
|
1414
|
+
Parameters.to,
|
|
1415
|
+
Parameters.apply,
|
|
1416
|
+
Parameters.skipToken
|
|
1417
|
+
],
|
|
1418
|
+
urlParameters: [
|
|
1419
|
+
Parameters.$host,
|
|
1420
|
+
Parameters.resourceGroupName,
|
|
1421
|
+
Parameters.nextLink,
|
|
1422
|
+
Parameters.policyEventsResource,
|
|
1423
|
+
Parameters.subscriptionId1,
|
|
1424
|
+
Parameters.authorizationNamespace,
|
|
1425
|
+
Parameters.policyAssignmentName
|
|
1426
|
+
],
|
|
1427
|
+
headerParameters: [Parameters.accept],
|
|
597
1428
|
serializer
|
|
598
1429
|
};
|