@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,358 +1,1037 @@
|
|
|
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
|
|
14
|
-
import * as Mappers from "../models/
|
|
9
|
+
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
10
|
+
import { PolicyStates } from "../operationsInterfaces";
|
|
11
|
+
import * as coreClient from "@azure/core-client";
|
|
12
|
+
import * as Mappers from "../models/mappers";
|
|
15
13
|
import * as Parameters from "../models/parameters";
|
|
16
|
-
import {
|
|
14
|
+
import { PolicyInsightsClient } from "../policyInsightsClient";
|
|
15
|
+
import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro";
|
|
16
|
+
import { LroImpl } from "../lroImpl";
|
|
17
|
+
import {
|
|
18
|
+
PolicyState,
|
|
19
|
+
PolicyStatesResource,
|
|
20
|
+
PolicyStatesListQueryResultsForManagementGroupNextOptionalParams,
|
|
21
|
+
PolicyStatesListQueryResultsForManagementGroupOptionalParams,
|
|
22
|
+
PolicyStatesListQueryResultsForSubscriptionNextOptionalParams,
|
|
23
|
+
PolicyStatesListQueryResultsForSubscriptionOptionalParams,
|
|
24
|
+
PolicyStatesListQueryResultsForResourceGroupNextOptionalParams,
|
|
25
|
+
PolicyStatesListQueryResultsForResourceGroupOptionalParams,
|
|
26
|
+
PolicyStatesListQueryResultsForResourceNextOptionalParams,
|
|
27
|
+
PolicyStatesListQueryResultsForResourceOptionalParams,
|
|
28
|
+
PolicyStatesListQueryResultsForPolicySetDefinitionNextOptionalParams,
|
|
29
|
+
PolicyStatesListQueryResultsForPolicySetDefinitionOptionalParams,
|
|
30
|
+
PolicyStatesListQueryResultsForPolicyDefinitionNextOptionalParams,
|
|
31
|
+
PolicyStatesListQueryResultsForPolicyDefinitionOptionalParams,
|
|
32
|
+
PolicyStatesListQueryResultsForSubscriptionLevelPolicyAssignmentNextOptionalParams,
|
|
33
|
+
PolicyStatesListQueryResultsForSubscriptionLevelPolicyAssignmentOptionalParams,
|
|
34
|
+
PolicyStatesListQueryResultsForResourceGroupLevelPolicyAssignmentNextOptionalParams,
|
|
35
|
+
PolicyStatesListQueryResultsForResourceGroupLevelPolicyAssignmentOptionalParams,
|
|
36
|
+
PolicyStatesListQueryResultsForManagementGroupResponse,
|
|
37
|
+
PolicyStatesSummarizeForManagementGroupOptionalParams,
|
|
38
|
+
PolicyStatesSummarizeForManagementGroupResponse,
|
|
39
|
+
PolicyStatesListQueryResultsForSubscriptionResponse,
|
|
40
|
+
PolicyStatesSummarizeForSubscriptionOptionalParams,
|
|
41
|
+
PolicyStatesSummarizeForSubscriptionResponse,
|
|
42
|
+
PolicyStatesListQueryResultsForResourceGroupResponse,
|
|
43
|
+
PolicyStatesSummarizeForResourceGroupOptionalParams,
|
|
44
|
+
PolicyStatesSummarizeForResourceGroupResponse,
|
|
45
|
+
PolicyStatesListQueryResultsForResourceResponse,
|
|
46
|
+
PolicyStatesSummarizeForResourceOptionalParams,
|
|
47
|
+
PolicyStatesSummarizeForResourceResponse,
|
|
48
|
+
PolicyStatesTriggerSubscriptionEvaluationOptionalParams,
|
|
49
|
+
PolicyStatesTriggerResourceGroupEvaluationOptionalParams,
|
|
50
|
+
PolicyStatesListQueryResultsForPolicySetDefinitionResponse,
|
|
51
|
+
PolicyStatesSummarizeForPolicySetDefinitionOptionalParams,
|
|
52
|
+
PolicyStatesSummarizeForPolicySetDefinitionResponse,
|
|
53
|
+
PolicyStatesListQueryResultsForPolicyDefinitionResponse,
|
|
54
|
+
PolicyStatesSummarizeForPolicyDefinitionOptionalParams,
|
|
55
|
+
PolicyStatesSummarizeForPolicyDefinitionResponse,
|
|
56
|
+
PolicyStatesListQueryResultsForSubscriptionLevelPolicyAssignmentResponse,
|
|
57
|
+
PolicyStatesSummarizeForSubscriptionLevelPolicyAssignmentOptionalParams,
|
|
58
|
+
PolicyStatesSummarizeForSubscriptionLevelPolicyAssignmentResponse,
|
|
59
|
+
PolicyStatesListQueryResultsForResourceGroupLevelPolicyAssignmentResponse,
|
|
60
|
+
PolicyStatesSummarizeForResourceGroupLevelPolicyAssignmentOptionalParams,
|
|
61
|
+
PolicyStatesSummarizeForResourceGroupLevelPolicyAssignmentResponse,
|
|
62
|
+
PolicyStatesListQueryResultsForManagementGroupNextResponse,
|
|
63
|
+
PolicyStatesListQueryResultsForSubscriptionNextResponse,
|
|
64
|
+
PolicyStatesListQueryResultsForResourceGroupNextResponse,
|
|
65
|
+
PolicyStatesListQueryResultsForResourceNextResponse,
|
|
66
|
+
PolicyStatesListQueryResultsForPolicySetDefinitionNextResponse,
|
|
67
|
+
PolicyStatesListQueryResultsForPolicyDefinitionNextResponse,
|
|
68
|
+
PolicyStatesListQueryResultsForSubscriptionLevelPolicyAssignmentNextResponse,
|
|
69
|
+
PolicyStatesListQueryResultsForResourceGroupLevelPolicyAssignmentNextResponse
|
|
70
|
+
} from "../models";
|
|
17
71
|
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
72
|
+
/// <reference lib="esnext.asynciterable" />
|
|
73
|
+
/** Class containing PolicyStates operations. */
|
|
74
|
+
export class PolicyStatesImpl implements PolicyStates {
|
|
75
|
+
private readonly client: PolicyInsightsClient;
|
|
21
76
|
|
|
22
77
|
/**
|
|
23
|
-
*
|
|
24
|
-
* @param
|
|
78
|
+
* Initialize a new instance of the class PolicyStates class.
|
|
79
|
+
* @param client Reference to the service client
|
|
25
80
|
*/
|
|
26
|
-
constructor(client:
|
|
81
|
+
constructor(client: PolicyInsightsClient) {
|
|
27
82
|
this.client = client;
|
|
28
83
|
}
|
|
29
84
|
|
|
30
85
|
/**
|
|
31
86
|
* Queries policy states for the resources under the management group.
|
|
32
|
-
* @param policyStatesResource The virtual resource under PolicyStates resource type. In a given
|
|
33
|
-
*
|
|
34
|
-
*
|
|
87
|
+
* @param policyStatesResource The virtual resource under PolicyStates resource type. In a given time
|
|
88
|
+
* range, 'latest' represents the latest policy state(s), whereas 'default' represents all policy
|
|
89
|
+
* state(s).
|
|
35
90
|
* @param managementGroupName Management group name.
|
|
36
|
-
* @param
|
|
37
|
-
* @returns Promise<Models.PolicyStatesListQueryResultsForManagementGroupResponse>
|
|
91
|
+
* @param options The options parameters.
|
|
38
92
|
*/
|
|
39
|
-
listQueryResultsForManagementGroup(
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
93
|
+
public listQueryResultsForManagementGroup(
|
|
94
|
+
policyStatesResource: PolicyStatesResource,
|
|
95
|
+
managementGroupName: string,
|
|
96
|
+
options?: PolicyStatesListQueryResultsForManagementGroupOptionalParams
|
|
97
|
+
): PagedAsyncIterableIterator<PolicyState> {
|
|
98
|
+
const iter = this.listQueryResultsForManagementGroupPagingAll(
|
|
99
|
+
policyStatesResource,
|
|
100
|
+
managementGroupName,
|
|
101
|
+
options
|
|
102
|
+
);
|
|
103
|
+
return {
|
|
104
|
+
next() {
|
|
105
|
+
return iter.next();
|
|
106
|
+
},
|
|
107
|
+
[Symbol.asyncIterator]() {
|
|
108
|
+
return this;
|
|
109
|
+
},
|
|
110
|
+
byPage: () => {
|
|
111
|
+
return this.listQueryResultsForManagementGroupPagingPage(
|
|
112
|
+
policyStatesResource,
|
|
113
|
+
managementGroupName,
|
|
114
|
+
options
|
|
115
|
+
);
|
|
116
|
+
}
|
|
117
|
+
};
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
private async *listQueryResultsForManagementGroupPagingPage(
|
|
121
|
+
policyStatesResource: PolicyStatesResource,
|
|
122
|
+
managementGroupName: string,
|
|
123
|
+
options?: PolicyStatesListQueryResultsForManagementGroupOptionalParams
|
|
124
|
+
): AsyncIterableIterator<PolicyState[]> {
|
|
125
|
+
let result = await this._listQueryResultsForManagementGroup(
|
|
126
|
+
policyStatesResource,
|
|
127
|
+
managementGroupName,
|
|
128
|
+
options
|
|
129
|
+
);
|
|
130
|
+
yield result.value || [];
|
|
131
|
+
let continuationToken = result.odataNextLink;
|
|
132
|
+
while (continuationToken) {
|
|
133
|
+
result = await this._listQueryResultsForManagementGroupNext(
|
|
60
134
|
policyStatesResource,
|
|
61
135
|
managementGroupName,
|
|
136
|
+
continuationToken,
|
|
62
137
|
options
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
138
|
+
);
|
|
139
|
+
continuationToken = result.odataNextLink;
|
|
140
|
+
yield result.value || [];
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
private async *listQueryResultsForManagementGroupPagingAll(
|
|
145
|
+
policyStatesResource: PolicyStatesResource,
|
|
146
|
+
managementGroupName: string,
|
|
147
|
+
options?: PolicyStatesListQueryResultsForManagementGroupOptionalParams
|
|
148
|
+
): AsyncIterableIterator<PolicyState> {
|
|
149
|
+
for await (const page of this.listQueryResultsForManagementGroupPagingPage(
|
|
150
|
+
policyStatesResource,
|
|
151
|
+
managementGroupName,
|
|
152
|
+
options
|
|
153
|
+
)) {
|
|
154
|
+
yield* page;
|
|
155
|
+
}
|
|
66
156
|
}
|
|
67
157
|
|
|
68
158
|
/**
|
|
69
|
-
*
|
|
70
|
-
* @param
|
|
71
|
-
*
|
|
72
|
-
*
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
/**
|
|
76
|
-
* @param managementGroupName Management group name.
|
|
77
|
-
* @param callback The callback
|
|
78
|
-
*/
|
|
79
|
-
summarizeForManagementGroup(managementGroupName: string, callback: msRest.ServiceCallback<Models.SummarizeResults>): void;
|
|
80
|
-
/**
|
|
81
|
-
* @param managementGroupName Management group name.
|
|
82
|
-
* @param options The optional parameters
|
|
83
|
-
* @param callback The callback
|
|
159
|
+
* Queries policy states for the resources under the subscription.
|
|
160
|
+
* @param policyStatesResource The virtual resource under PolicyStates resource type. In a given time
|
|
161
|
+
* range, 'latest' represents the latest policy state(s), whereas 'default' represents all policy
|
|
162
|
+
* state(s).
|
|
163
|
+
* @param subscriptionId Microsoft Azure subscription ID.
|
|
164
|
+
* @param options The options parameters.
|
|
84
165
|
*/
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
166
|
+
public listQueryResultsForSubscription(
|
|
167
|
+
policyStatesResource: PolicyStatesResource,
|
|
168
|
+
subscriptionId: string,
|
|
169
|
+
options?: PolicyStatesListQueryResultsForSubscriptionOptionalParams
|
|
170
|
+
): PagedAsyncIterableIterator<PolicyState> {
|
|
171
|
+
const iter = this.listQueryResultsForSubscriptionPagingAll(
|
|
172
|
+
policyStatesResource,
|
|
173
|
+
subscriptionId,
|
|
174
|
+
options
|
|
175
|
+
);
|
|
176
|
+
return {
|
|
177
|
+
next() {
|
|
178
|
+
return iter.next();
|
|
179
|
+
},
|
|
180
|
+
[Symbol.asyncIterator]() {
|
|
181
|
+
return this;
|
|
91
182
|
},
|
|
92
|
-
|
|
93
|
-
|
|
183
|
+
byPage: () => {
|
|
184
|
+
return this.listQueryResultsForSubscriptionPagingPage(
|
|
185
|
+
policyStatesResource,
|
|
186
|
+
subscriptionId,
|
|
187
|
+
options
|
|
188
|
+
);
|
|
189
|
+
}
|
|
190
|
+
};
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
private async *listQueryResultsForSubscriptionPagingPage(
|
|
194
|
+
policyStatesResource: PolicyStatesResource,
|
|
195
|
+
subscriptionId: string,
|
|
196
|
+
options?: PolicyStatesListQueryResultsForSubscriptionOptionalParams
|
|
197
|
+
): AsyncIterableIterator<PolicyState[]> {
|
|
198
|
+
let result = await this._listQueryResultsForSubscription(
|
|
199
|
+
policyStatesResource,
|
|
200
|
+
subscriptionId,
|
|
201
|
+
options
|
|
202
|
+
);
|
|
203
|
+
yield result.value || [];
|
|
204
|
+
let continuationToken = result.odataNextLink;
|
|
205
|
+
while (continuationToken) {
|
|
206
|
+
result = await this._listQueryResultsForSubscriptionNext(
|
|
207
|
+
policyStatesResource,
|
|
208
|
+
subscriptionId,
|
|
209
|
+
continuationToken,
|
|
210
|
+
options
|
|
211
|
+
);
|
|
212
|
+
continuationToken = result.odataNextLink;
|
|
213
|
+
yield result.value || [];
|
|
214
|
+
}
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
private async *listQueryResultsForSubscriptionPagingAll(
|
|
218
|
+
policyStatesResource: PolicyStatesResource,
|
|
219
|
+
subscriptionId: string,
|
|
220
|
+
options?: PolicyStatesListQueryResultsForSubscriptionOptionalParams
|
|
221
|
+
): AsyncIterableIterator<PolicyState> {
|
|
222
|
+
for await (const page of this.listQueryResultsForSubscriptionPagingPage(
|
|
223
|
+
policyStatesResource,
|
|
224
|
+
subscriptionId,
|
|
225
|
+
options
|
|
226
|
+
)) {
|
|
227
|
+
yield* page;
|
|
228
|
+
}
|
|
94
229
|
}
|
|
95
230
|
|
|
96
231
|
/**
|
|
97
|
-
* Queries policy states for the resources under the
|
|
98
|
-
* @param policyStatesResource The virtual resource under PolicyStates resource type. In a given
|
|
99
|
-
*
|
|
100
|
-
*
|
|
232
|
+
* Queries policy states for the resources under the resource group.
|
|
233
|
+
* @param policyStatesResource The virtual resource under PolicyStates resource type. In a given time
|
|
234
|
+
* range, 'latest' represents the latest policy state(s), whereas 'default' represents all policy
|
|
235
|
+
* state(s).
|
|
101
236
|
* @param subscriptionId Microsoft Azure subscription ID.
|
|
102
|
-
* @param
|
|
103
|
-
* @
|
|
237
|
+
* @param resourceGroupName Resource group name.
|
|
238
|
+
* @param options The options parameters.
|
|
104
239
|
*/
|
|
105
|
-
|
|
240
|
+
public listQueryResultsForResourceGroup(
|
|
241
|
+
policyStatesResource: PolicyStatesResource,
|
|
242
|
+
subscriptionId: string,
|
|
243
|
+
resourceGroupName: string,
|
|
244
|
+
options?: PolicyStatesListQueryResultsForResourceGroupOptionalParams
|
|
245
|
+
): PagedAsyncIterableIterator<PolicyState> {
|
|
246
|
+
const iter = this.listQueryResultsForResourceGroupPagingAll(
|
|
247
|
+
policyStatesResource,
|
|
248
|
+
subscriptionId,
|
|
249
|
+
resourceGroupName,
|
|
250
|
+
options
|
|
251
|
+
);
|
|
252
|
+
return {
|
|
253
|
+
next() {
|
|
254
|
+
return iter.next();
|
|
255
|
+
},
|
|
256
|
+
[Symbol.asyncIterator]() {
|
|
257
|
+
return this;
|
|
258
|
+
},
|
|
259
|
+
byPage: () => {
|
|
260
|
+
return this.listQueryResultsForResourceGroupPagingPage(
|
|
261
|
+
policyStatesResource,
|
|
262
|
+
subscriptionId,
|
|
263
|
+
resourceGroupName,
|
|
264
|
+
options
|
|
265
|
+
);
|
|
266
|
+
}
|
|
267
|
+
};
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
private async *listQueryResultsForResourceGroupPagingPage(
|
|
271
|
+
policyStatesResource: PolicyStatesResource,
|
|
272
|
+
subscriptionId: string,
|
|
273
|
+
resourceGroupName: string,
|
|
274
|
+
options?: PolicyStatesListQueryResultsForResourceGroupOptionalParams
|
|
275
|
+
): AsyncIterableIterator<PolicyState[]> {
|
|
276
|
+
let result = await this._listQueryResultsForResourceGroup(
|
|
277
|
+
policyStatesResource,
|
|
278
|
+
subscriptionId,
|
|
279
|
+
resourceGroupName,
|
|
280
|
+
options
|
|
281
|
+
);
|
|
282
|
+
yield result.value || [];
|
|
283
|
+
let continuationToken = result.odataNextLink;
|
|
284
|
+
while (continuationToken) {
|
|
285
|
+
result = await this._listQueryResultsForResourceGroupNext(
|
|
286
|
+
policyStatesResource,
|
|
287
|
+
subscriptionId,
|
|
288
|
+
resourceGroupName,
|
|
289
|
+
continuationToken,
|
|
290
|
+
options
|
|
291
|
+
);
|
|
292
|
+
continuationToken = result.odataNextLink;
|
|
293
|
+
yield result.value || [];
|
|
294
|
+
}
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
private async *listQueryResultsForResourceGroupPagingAll(
|
|
298
|
+
policyStatesResource: PolicyStatesResource,
|
|
299
|
+
subscriptionId: string,
|
|
300
|
+
resourceGroupName: string,
|
|
301
|
+
options?: PolicyStatesListQueryResultsForResourceGroupOptionalParams
|
|
302
|
+
): AsyncIterableIterator<PolicyState> {
|
|
303
|
+
for await (const page of this.listQueryResultsForResourceGroupPagingPage(
|
|
304
|
+
policyStatesResource,
|
|
305
|
+
subscriptionId,
|
|
306
|
+
resourceGroupName,
|
|
307
|
+
options
|
|
308
|
+
)) {
|
|
309
|
+
yield* page;
|
|
310
|
+
}
|
|
311
|
+
}
|
|
312
|
+
|
|
106
313
|
/**
|
|
107
|
-
*
|
|
108
|
-
*
|
|
109
|
-
* policy state(s)
|
|
110
|
-
*
|
|
111
|
-
* @param
|
|
314
|
+
* Queries policy states for the resource.
|
|
315
|
+
* @param policyStatesResource The virtual resource under PolicyStates resource type. In a given time
|
|
316
|
+
* range, 'latest' represents the latest policy state(s), whereas 'default' represents all policy
|
|
317
|
+
* state(s).
|
|
318
|
+
* @param resourceId Resource ID.
|
|
319
|
+
* @param options The options parameters.
|
|
112
320
|
*/
|
|
113
|
-
|
|
321
|
+
public listQueryResultsForResource(
|
|
322
|
+
policyStatesResource: PolicyStatesResource,
|
|
323
|
+
resourceId: string,
|
|
324
|
+
options?: PolicyStatesListQueryResultsForResourceOptionalParams
|
|
325
|
+
): PagedAsyncIterableIterator<PolicyState> {
|
|
326
|
+
const iter = this.listQueryResultsForResourcePagingAll(
|
|
327
|
+
policyStatesResource,
|
|
328
|
+
resourceId,
|
|
329
|
+
options
|
|
330
|
+
);
|
|
331
|
+
return {
|
|
332
|
+
next() {
|
|
333
|
+
return iter.next();
|
|
334
|
+
},
|
|
335
|
+
[Symbol.asyncIterator]() {
|
|
336
|
+
return this;
|
|
337
|
+
},
|
|
338
|
+
byPage: () => {
|
|
339
|
+
return this.listQueryResultsForResourcePagingPage(
|
|
340
|
+
policyStatesResource,
|
|
341
|
+
resourceId,
|
|
342
|
+
options
|
|
343
|
+
);
|
|
344
|
+
}
|
|
345
|
+
};
|
|
346
|
+
}
|
|
347
|
+
|
|
348
|
+
private async *listQueryResultsForResourcePagingPage(
|
|
349
|
+
policyStatesResource: PolicyStatesResource,
|
|
350
|
+
resourceId: string,
|
|
351
|
+
options?: PolicyStatesListQueryResultsForResourceOptionalParams
|
|
352
|
+
): AsyncIterableIterator<PolicyState[]> {
|
|
353
|
+
let result = await this._listQueryResultsForResource(
|
|
354
|
+
policyStatesResource,
|
|
355
|
+
resourceId,
|
|
356
|
+
options
|
|
357
|
+
);
|
|
358
|
+
yield result.value || [];
|
|
359
|
+
let continuationToken = result.odataNextLink;
|
|
360
|
+
while (continuationToken) {
|
|
361
|
+
result = await this._listQueryResultsForResourceNext(
|
|
362
|
+
policyStatesResource,
|
|
363
|
+
resourceId,
|
|
364
|
+
continuationToken,
|
|
365
|
+
options
|
|
366
|
+
);
|
|
367
|
+
continuationToken = result.odataNextLink;
|
|
368
|
+
yield result.value || [];
|
|
369
|
+
}
|
|
370
|
+
}
|
|
371
|
+
|
|
372
|
+
private async *listQueryResultsForResourcePagingAll(
|
|
373
|
+
policyStatesResource: PolicyStatesResource,
|
|
374
|
+
resourceId: string,
|
|
375
|
+
options?: PolicyStatesListQueryResultsForResourceOptionalParams
|
|
376
|
+
): AsyncIterableIterator<PolicyState> {
|
|
377
|
+
for await (const page of this.listQueryResultsForResourcePagingPage(
|
|
378
|
+
policyStatesResource,
|
|
379
|
+
resourceId,
|
|
380
|
+
options
|
|
381
|
+
)) {
|
|
382
|
+
yield* page;
|
|
383
|
+
}
|
|
384
|
+
}
|
|
385
|
+
|
|
114
386
|
/**
|
|
115
|
-
*
|
|
116
|
-
*
|
|
117
|
-
* policy state(s)
|
|
387
|
+
* Queries policy states for the subscription level policy set definition.
|
|
388
|
+
* @param policyStatesResource The virtual resource under PolicyStates resource type. In a given time
|
|
389
|
+
* range, 'latest' represents the latest policy state(s), whereas 'default' represents all policy
|
|
390
|
+
* state(s).
|
|
118
391
|
* @param subscriptionId Microsoft Azure subscription ID.
|
|
119
|
-
* @param
|
|
120
|
-
* @param
|
|
392
|
+
* @param policySetDefinitionName Policy set definition name.
|
|
393
|
+
* @param options The options parameters.
|
|
121
394
|
*/
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
395
|
+
public listQueryResultsForPolicySetDefinition(
|
|
396
|
+
policyStatesResource: PolicyStatesResource,
|
|
397
|
+
subscriptionId: string,
|
|
398
|
+
policySetDefinitionName: string,
|
|
399
|
+
options?: PolicyStatesListQueryResultsForPolicySetDefinitionOptionalParams
|
|
400
|
+
): PagedAsyncIterableIterator<PolicyState> {
|
|
401
|
+
const iter = this.listQueryResultsForPolicySetDefinitionPagingAll(
|
|
402
|
+
policyStatesResource,
|
|
403
|
+
subscriptionId,
|
|
404
|
+
policySetDefinitionName,
|
|
405
|
+
options
|
|
406
|
+
);
|
|
407
|
+
return {
|
|
408
|
+
next() {
|
|
409
|
+
return iter.next();
|
|
410
|
+
},
|
|
411
|
+
[Symbol.asyncIterator]() {
|
|
412
|
+
return this;
|
|
413
|
+
},
|
|
414
|
+
byPage: () => {
|
|
415
|
+
return this.listQueryResultsForPolicySetDefinitionPagingPage(
|
|
416
|
+
policyStatesResource,
|
|
417
|
+
subscriptionId,
|
|
418
|
+
policySetDefinitionName,
|
|
419
|
+
options
|
|
420
|
+
);
|
|
421
|
+
}
|
|
422
|
+
};
|
|
423
|
+
}
|
|
424
|
+
|
|
425
|
+
private async *listQueryResultsForPolicySetDefinitionPagingPage(
|
|
426
|
+
policyStatesResource: PolicyStatesResource,
|
|
427
|
+
subscriptionId: string,
|
|
428
|
+
policySetDefinitionName: string,
|
|
429
|
+
options?: PolicyStatesListQueryResultsForPolicySetDefinitionOptionalParams
|
|
430
|
+
): AsyncIterableIterator<PolicyState[]> {
|
|
431
|
+
let result = await this._listQueryResultsForPolicySetDefinition(
|
|
432
|
+
policyStatesResource,
|
|
433
|
+
subscriptionId,
|
|
434
|
+
policySetDefinitionName,
|
|
435
|
+
options
|
|
436
|
+
);
|
|
437
|
+
yield result.value || [];
|
|
438
|
+
let continuationToken = result.odataNextLink;
|
|
439
|
+
while (continuationToken) {
|
|
440
|
+
result = await this._listQueryResultsForPolicySetDefinitionNext(
|
|
126
441
|
policyStatesResource,
|
|
127
442
|
subscriptionId,
|
|
443
|
+
policySetDefinitionName,
|
|
444
|
+
continuationToken,
|
|
128
445
|
options
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
446
|
+
);
|
|
447
|
+
continuationToken = result.odataNextLink;
|
|
448
|
+
yield result.value || [];
|
|
449
|
+
}
|
|
450
|
+
}
|
|
451
|
+
|
|
452
|
+
private async *listQueryResultsForPolicySetDefinitionPagingAll(
|
|
453
|
+
policyStatesResource: PolicyStatesResource,
|
|
454
|
+
subscriptionId: string,
|
|
455
|
+
policySetDefinitionName: string,
|
|
456
|
+
options?: PolicyStatesListQueryResultsForPolicySetDefinitionOptionalParams
|
|
457
|
+
): AsyncIterableIterator<PolicyState> {
|
|
458
|
+
for await (const page of this.listQueryResultsForPolicySetDefinitionPagingPage(
|
|
459
|
+
policyStatesResource,
|
|
460
|
+
subscriptionId,
|
|
461
|
+
policySetDefinitionName,
|
|
462
|
+
options
|
|
463
|
+
)) {
|
|
464
|
+
yield* page;
|
|
465
|
+
}
|
|
132
466
|
}
|
|
133
467
|
|
|
134
468
|
/**
|
|
135
|
-
*
|
|
469
|
+
* Queries policy states for the subscription level policy definition.
|
|
470
|
+
* @param policyStatesResource The virtual resource under PolicyStates resource type. In a given time
|
|
471
|
+
* range, 'latest' represents the latest policy state(s), whereas 'default' represents all policy
|
|
472
|
+
* state(s).
|
|
136
473
|
* @param subscriptionId Microsoft Azure subscription ID.
|
|
137
|
-
* @param
|
|
138
|
-
* @
|
|
474
|
+
* @param policyDefinitionName Policy definition name.
|
|
475
|
+
* @param options The options parameters.
|
|
139
476
|
*/
|
|
140
|
-
|
|
477
|
+
public listQueryResultsForPolicyDefinition(
|
|
478
|
+
policyStatesResource: PolicyStatesResource,
|
|
479
|
+
subscriptionId: string,
|
|
480
|
+
policyDefinitionName: string,
|
|
481
|
+
options?: PolicyStatesListQueryResultsForPolicyDefinitionOptionalParams
|
|
482
|
+
): PagedAsyncIterableIterator<PolicyState> {
|
|
483
|
+
const iter = this.listQueryResultsForPolicyDefinitionPagingAll(
|
|
484
|
+
policyStatesResource,
|
|
485
|
+
subscriptionId,
|
|
486
|
+
policyDefinitionName,
|
|
487
|
+
options
|
|
488
|
+
);
|
|
489
|
+
return {
|
|
490
|
+
next() {
|
|
491
|
+
return iter.next();
|
|
492
|
+
},
|
|
493
|
+
[Symbol.asyncIterator]() {
|
|
494
|
+
return this;
|
|
495
|
+
},
|
|
496
|
+
byPage: () => {
|
|
497
|
+
return this.listQueryResultsForPolicyDefinitionPagingPage(
|
|
498
|
+
policyStatesResource,
|
|
499
|
+
subscriptionId,
|
|
500
|
+
policyDefinitionName,
|
|
501
|
+
options
|
|
502
|
+
);
|
|
503
|
+
}
|
|
504
|
+
};
|
|
505
|
+
}
|
|
506
|
+
|
|
507
|
+
private async *listQueryResultsForPolicyDefinitionPagingPage(
|
|
508
|
+
policyStatesResource: PolicyStatesResource,
|
|
509
|
+
subscriptionId: string,
|
|
510
|
+
policyDefinitionName: string,
|
|
511
|
+
options?: PolicyStatesListQueryResultsForPolicyDefinitionOptionalParams
|
|
512
|
+
): AsyncIterableIterator<PolicyState[]> {
|
|
513
|
+
let result = await this._listQueryResultsForPolicyDefinition(
|
|
514
|
+
policyStatesResource,
|
|
515
|
+
subscriptionId,
|
|
516
|
+
policyDefinitionName,
|
|
517
|
+
options
|
|
518
|
+
);
|
|
519
|
+
yield result.value || [];
|
|
520
|
+
let continuationToken = result.odataNextLink;
|
|
521
|
+
while (continuationToken) {
|
|
522
|
+
result = await this._listQueryResultsForPolicyDefinitionNext(
|
|
523
|
+
policyStatesResource,
|
|
524
|
+
subscriptionId,
|
|
525
|
+
policyDefinitionName,
|
|
526
|
+
continuationToken,
|
|
527
|
+
options
|
|
528
|
+
);
|
|
529
|
+
continuationToken = result.odataNextLink;
|
|
530
|
+
yield result.value || [];
|
|
531
|
+
}
|
|
532
|
+
}
|
|
533
|
+
|
|
534
|
+
private async *listQueryResultsForPolicyDefinitionPagingAll(
|
|
535
|
+
policyStatesResource: PolicyStatesResource,
|
|
536
|
+
subscriptionId: string,
|
|
537
|
+
policyDefinitionName: string,
|
|
538
|
+
options?: PolicyStatesListQueryResultsForPolicyDefinitionOptionalParams
|
|
539
|
+
): AsyncIterableIterator<PolicyState> {
|
|
540
|
+
for await (const page of this.listQueryResultsForPolicyDefinitionPagingPage(
|
|
541
|
+
policyStatesResource,
|
|
542
|
+
subscriptionId,
|
|
543
|
+
policyDefinitionName,
|
|
544
|
+
options
|
|
545
|
+
)) {
|
|
546
|
+
yield* page;
|
|
547
|
+
}
|
|
548
|
+
}
|
|
549
|
+
|
|
141
550
|
/**
|
|
551
|
+
* Queries policy states for the subscription level policy assignment.
|
|
552
|
+
* @param policyStatesResource The virtual resource under PolicyStates resource type. In a given time
|
|
553
|
+
* range, 'latest' represents the latest policy state(s), whereas 'default' represents all policy
|
|
554
|
+
* state(s).
|
|
142
555
|
* @param subscriptionId Microsoft Azure subscription ID.
|
|
143
|
-
* @param
|
|
556
|
+
* @param policyAssignmentName Policy assignment name.
|
|
557
|
+
* @param options The options parameters.
|
|
144
558
|
*/
|
|
145
|
-
|
|
559
|
+
public listQueryResultsForSubscriptionLevelPolicyAssignment(
|
|
560
|
+
policyStatesResource: PolicyStatesResource,
|
|
561
|
+
subscriptionId: string,
|
|
562
|
+
policyAssignmentName: string,
|
|
563
|
+
options?: PolicyStatesListQueryResultsForSubscriptionLevelPolicyAssignmentOptionalParams
|
|
564
|
+
): PagedAsyncIterableIterator<PolicyState> {
|
|
565
|
+
const iter = this.listQueryResultsForSubscriptionLevelPolicyAssignmentPagingAll(
|
|
566
|
+
policyStatesResource,
|
|
567
|
+
subscriptionId,
|
|
568
|
+
policyAssignmentName,
|
|
569
|
+
options
|
|
570
|
+
);
|
|
571
|
+
return {
|
|
572
|
+
next() {
|
|
573
|
+
return iter.next();
|
|
574
|
+
},
|
|
575
|
+
[Symbol.asyncIterator]() {
|
|
576
|
+
return this;
|
|
577
|
+
},
|
|
578
|
+
byPage: () => {
|
|
579
|
+
return this.listQueryResultsForSubscriptionLevelPolicyAssignmentPagingPage(
|
|
580
|
+
policyStatesResource,
|
|
581
|
+
subscriptionId,
|
|
582
|
+
policyAssignmentName,
|
|
583
|
+
options
|
|
584
|
+
);
|
|
585
|
+
}
|
|
586
|
+
};
|
|
587
|
+
}
|
|
588
|
+
|
|
589
|
+
private async *listQueryResultsForSubscriptionLevelPolicyAssignmentPagingPage(
|
|
590
|
+
policyStatesResource: PolicyStatesResource,
|
|
591
|
+
subscriptionId: string,
|
|
592
|
+
policyAssignmentName: string,
|
|
593
|
+
options?: PolicyStatesListQueryResultsForSubscriptionLevelPolicyAssignmentOptionalParams
|
|
594
|
+
): AsyncIterableIterator<PolicyState[]> {
|
|
595
|
+
let result = await this._listQueryResultsForSubscriptionLevelPolicyAssignment(
|
|
596
|
+
policyStatesResource,
|
|
597
|
+
subscriptionId,
|
|
598
|
+
policyAssignmentName,
|
|
599
|
+
options
|
|
600
|
+
);
|
|
601
|
+
yield result.value || [];
|
|
602
|
+
let continuationToken = result.odataNextLink;
|
|
603
|
+
while (continuationToken) {
|
|
604
|
+
result = await this._listQueryResultsForSubscriptionLevelPolicyAssignmentNext(
|
|
605
|
+
policyStatesResource,
|
|
606
|
+
subscriptionId,
|
|
607
|
+
policyAssignmentName,
|
|
608
|
+
continuationToken,
|
|
609
|
+
options
|
|
610
|
+
);
|
|
611
|
+
continuationToken = result.odataNextLink;
|
|
612
|
+
yield result.value || [];
|
|
613
|
+
}
|
|
614
|
+
}
|
|
615
|
+
|
|
616
|
+
private async *listQueryResultsForSubscriptionLevelPolicyAssignmentPagingAll(
|
|
617
|
+
policyStatesResource: PolicyStatesResource,
|
|
618
|
+
subscriptionId: string,
|
|
619
|
+
policyAssignmentName: string,
|
|
620
|
+
options?: PolicyStatesListQueryResultsForSubscriptionLevelPolicyAssignmentOptionalParams
|
|
621
|
+
): AsyncIterableIterator<PolicyState> {
|
|
622
|
+
for await (const page of this.listQueryResultsForSubscriptionLevelPolicyAssignmentPagingPage(
|
|
623
|
+
policyStatesResource,
|
|
624
|
+
subscriptionId,
|
|
625
|
+
policyAssignmentName,
|
|
626
|
+
options
|
|
627
|
+
)) {
|
|
628
|
+
yield* page;
|
|
629
|
+
}
|
|
630
|
+
}
|
|
631
|
+
|
|
146
632
|
/**
|
|
633
|
+
* Queries policy states for the resource group level policy assignment.
|
|
634
|
+
* @param policyStatesResource The virtual resource under PolicyStates resource type. In a given time
|
|
635
|
+
* range, 'latest' represents the latest policy state(s), whereas 'default' represents all policy
|
|
636
|
+
* state(s).
|
|
147
637
|
* @param subscriptionId Microsoft Azure subscription ID.
|
|
148
|
-
* @param
|
|
149
|
-
* @param
|
|
638
|
+
* @param resourceGroupName Resource group name.
|
|
639
|
+
* @param policyAssignmentName Policy assignment name.
|
|
640
|
+
* @param options The options parameters.
|
|
150
641
|
*/
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
642
|
+
public listQueryResultsForResourceGroupLevelPolicyAssignment(
|
|
643
|
+
policyStatesResource: PolicyStatesResource,
|
|
644
|
+
subscriptionId: string,
|
|
645
|
+
resourceGroupName: string,
|
|
646
|
+
policyAssignmentName: string,
|
|
647
|
+
options?: PolicyStatesListQueryResultsForResourceGroupLevelPolicyAssignmentOptionalParams
|
|
648
|
+
): PagedAsyncIterableIterator<PolicyState> {
|
|
649
|
+
const iter = this.listQueryResultsForResourceGroupLevelPolicyAssignmentPagingAll(
|
|
650
|
+
policyStatesResource,
|
|
651
|
+
subscriptionId,
|
|
652
|
+
resourceGroupName,
|
|
653
|
+
policyAssignmentName,
|
|
654
|
+
options
|
|
655
|
+
);
|
|
656
|
+
return {
|
|
657
|
+
next() {
|
|
658
|
+
return iter.next();
|
|
659
|
+
},
|
|
660
|
+
[Symbol.asyncIterator]() {
|
|
661
|
+
return this;
|
|
662
|
+
},
|
|
663
|
+
byPage: () => {
|
|
664
|
+
return this.listQueryResultsForResourceGroupLevelPolicyAssignmentPagingPage(
|
|
665
|
+
policyStatesResource,
|
|
666
|
+
subscriptionId,
|
|
667
|
+
resourceGroupName,
|
|
668
|
+
policyAssignmentName,
|
|
669
|
+
options
|
|
670
|
+
);
|
|
671
|
+
}
|
|
672
|
+
};
|
|
673
|
+
}
|
|
674
|
+
|
|
675
|
+
private async *listQueryResultsForResourceGroupLevelPolicyAssignmentPagingPage(
|
|
676
|
+
policyStatesResource: PolicyStatesResource,
|
|
677
|
+
subscriptionId: string,
|
|
678
|
+
resourceGroupName: string,
|
|
679
|
+
policyAssignmentName: string,
|
|
680
|
+
options?: PolicyStatesListQueryResultsForResourceGroupLevelPolicyAssignmentOptionalParams
|
|
681
|
+
): AsyncIterableIterator<PolicyState[]> {
|
|
682
|
+
let result = await this._listQueryResultsForResourceGroupLevelPolicyAssignment(
|
|
683
|
+
policyStatesResource,
|
|
684
|
+
subscriptionId,
|
|
685
|
+
resourceGroupName,
|
|
686
|
+
policyAssignmentName,
|
|
687
|
+
options
|
|
688
|
+
);
|
|
689
|
+
yield result.value || [];
|
|
690
|
+
let continuationToken = result.odataNextLink;
|
|
691
|
+
while (continuationToken) {
|
|
692
|
+
result = await this._listQueryResultsForResourceGroupLevelPolicyAssignmentNext(
|
|
693
|
+
policyStatesResource,
|
|
155
694
|
subscriptionId,
|
|
695
|
+
resourceGroupName,
|
|
696
|
+
policyAssignmentName,
|
|
697
|
+
continuationToken,
|
|
156
698
|
options
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
699
|
+
);
|
|
700
|
+
continuationToken = result.odataNextLink;
|
|
701
|
+
yield result.value || [];
|
|
702
|
+
}
|
|
703
|
+
}
|
|
704
|
+
|
|
705
|
+
private async *listQueryResultsForResourceGroupLevelPolicyAssignmentPagingAll(
|
|
706
|
+
policyStatesResource: PolicyStatesResource,
|
|
707
|
+
subscriptionId: string,
|
|
708
|
+
resourceGroupName: string,
|
|
709
|
+
policyAssignmentName: string,
|
|
710
|
+
options?: PolicyStatesListQueryResultsForResourceGroupLevelPolicyAssignmentOptionalParams
|
|
711
|
+
): AsyncIterableIterator<PolicyState> {
|
|
712
|
+
for await (const page of this.listQueryResultsForResourceGroupLevelPolicyAssignmentPagingPage(
|
|
713
|
+
policyStatesResource,
|
|
714
|
+
subscriptionId,
|
|
715
|
+
resourceGroupName,
|
|
716
|
+
policyAssignmentName,
|
|
717
|
+
options
|
|
718
|
+
)) {
|
|
719
|
+
yield* page;
|
|
720
|
+
}
|
|
160
721
|
}
|
|
161
722
|
|
|
162
723
|
/**
|
|
163
|
-
* Queries policy states for the resources under the
|
|
164
|
-
* @param policyStatesResource The virtual resource under PolicyStates resource type. In a given
|
|
165
|
-
*
|
|
166
|
-
*
|
|
167
|
-
* @param
|
|
168
|
-
* @param
|
|
169
|
-
* @param [options] The optional parameters
|
|
170
|
-
* @returns Promise<Models.PolicyStatesListQueryResultsForResourceGroupResponse>
|
|
724
|
+
* Queries policy states for the resources under the management group.
|
|
725
|
+
* @param policyStatesResource The virtual resource under PolicyStates resource type. In a given time
|
|
726
|
+
* range, 'latest' represents the latest policy state(s), whereas 'default' represents all policy
|
|
727
|
+
* state(s).
|
|
728
|
+
* @param managementGroupName Management group name.
|
|
729
|
+
* @param options The options parameters.
|
|
171
730
|
*/
|
|
172
|
-
|
|
731
|
+
private _listQueryResultsForManagementGroup(
|
|
732
|
+
policyStatesResource: PolicyStatesResource,
|
|
733
|
+
managementGroupName: string,
|
|
734
|
+
options?: PolicyStatesListQueryResultsForManagementGroupOptionalParams
|
|
735
|
+
): Promise<PolicyStatesListQueryResultsForManagementGroupResponse> {
|
|
736
|
+
return this.client.sendOperationRequest(
|
|
737
|
+
{ policyStatesResource, managementGroupName, options },
|
|
738
|
+
listQueryResultsForManagementGroupOperationSpec
|
|
739
|
+
);
|
|
740
|
+
}
|
|
741
|
+
|
|
173
742
|
/**
|
|
174
|
-
*
|
|
175
|
-
*
|
|
176
|
-
*
|
|
177
|
-
* @param subscriptionId Microsoft Azure subscription ID.
|
|
178
|
-
* @param resourceGroupName Resource group name.
|
|
179
|
-
* @param callback The callback
|
|
743
|
+
* Summarizes policy states for the resources under the management group.
|
|
744
|
+
* @param managementGroupName Management group name.
|
|
745
|
+
* @param options The options parameters.
|
|
180
746
|
*/
|
|
181
|
-
|
|
747
|
+
summarizeForManagementGroup(
|
|
748
|
+
managementGroupName: string,
|
|
749
|
+
options?: PolicyStatesSummarizeForManagementGroupOptionalParams
|
|
750
|
+
): Promise<PolicyStatesSummarizeForManagementGroupResponse> {
|
|
751
|
+
return this.client.sendOperationRequest(
|
|
752
|
+
{ managementGroupName, options },
|
|
753
|
+
summarizeForManagementGroupOperationSpec
|
|
754
|
+
);
|
|
755
|
+
}
|
|
756
|
+
|
|
182
757
|
/**
|
|
183
|
-
*
|
|
184
|
-
*
|
|
185
|
-
* policy state(s)
|
|
758
|
+
* Queries policy states for the resources under the subscription.
|
|
759
|
+
* @param policyStatesResource The virtual resource under PolicyStates resource type. In a given time
|
|
760
|
+
* range, 'latest' represents the latest policy state(s), whereas 'default' represents all policy
|
|
761
|
+
* state(s).
|
|
186
762
|
* @param subscriptionId Microsoft Azure subscription ID.
|
|
187
|
-
* @param
|
|
188
|
-
* @param options The optional parameters
|
|
189
|
-
* @param callback The callback
|
|
763
|
+
* @param options The options parameters.
|
|
190
764
|
*/
|
|
191
|
-
|
|
192
|
-
|
|
765
|
+
private _listQueryResultsForSubscription(
|
|
766
|
+
policyStatesResource: PolicyStatesResource,
|
|
767
|
+
subscriptionId: string,
|
|
768
|
+
options?: PolicyStatesListQueryResultsForSubscriptionOptionalParams
|
|
769
|
+
): Promise<PolicyStatesListQueryResultsForSubscriptionResponse> {
|
|
193
770
|
return this.client.sendOperationRequest(
|
|
194
|
-
{
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
resourceGroupName,
|
|
198
|
-
options
|
|
199
|
-
},
|
|
200
|
-
listQueryResultsForResourceGroupOperationSpec,
|
|
201
|
-
callback) as Promise<Models.PolicyStatesListQueryResultsForResourceGroupResponse>;
|
|
771
|
+
{ policyStatesResource, subscriptionId, options },
|
|
772
|
+
listQueryResultsForSubscriptionOperationSpec
|
|
773
|
+
);
|
|
202
774
|
}
|
|
203
775
|
|
|
204
776
|
/**
|
|
205
|
-
* Summarizes policy states for the resources under the
|
|
777
|
+
* Summarizes policy states for the resources under the subscription.
|
|
206
778
|
* @param subscriptionId Microsoft Azure subscription ID.
|
|
207
|
-
* @param
|
|
208
|
-
* @param [options] The optional parameters
|
|
209
|
-
* @returns Promise<Models.PolicyStatesSummarizeForResourceGroupResponse>
|
|
779
|
+
* @param options The options parameters.
|
|
210
780
|
*/
|
|
211
|
-
|
|
781
|
+
summarizeForSubscription(
|
|
782
|
+
subscriptionId: string,
|
|
783
|
+
options?: PolicyStatesSummarizeForSubscriptionOptionalParams
|
|
784
|
+
): Promise<PolicyStatesSummarizeForSubscriptionResponse> {
|
|
785
|
+
return this.client.sendOperationRequest(
|
|
786
|
+
{ subscriptionId, options },
|
|
787
|
+
summarizeForSubscriptionOperationSpec
|
|
788
|
+
);
|
|
789
|
+
}
|
|
790
|
+
|
|
212
791
|
/**
|
|
792
|
+
* Queries policy states for the resources under the resource group.
|
|
793
|
+
* @param policyStatesResource The virtual resource under PolicyStates resource type. In a given time
|
|
794
|
+
* range, 'latest' represents the latest policy state(s), whereas 'default' represents all policy
|
|
795
|
+
* state(s).
|
|
213
796
|
* @param subscriptionId Microsoft Azure subscription ID.
|
|
214
797
|
* @param resourceGroupName Resource group name.
|
|
215
|
-
* @param
|
|
798
|
+
* @param options The options parameters.
|
|
216
799
|
*/
|
|
217
|
-
|
|
800
|
+
private _listQueryResultsForResourceGroup(
|
|
801
|
+
policyStatesResource: PolicyStatesResource,
|
|
802
|
+
subscriptionId: string,
|
|
803
|
+
resourceGroupName: string,
|
|
804
|
+
options?: PolicyStatesListQueryResultsForResourceGroupOptionalParams
|
|
805
|
+
): Promise<PolicyStatesListQueryResultsForResourceGroupResponse> {
|
|
806
|
+
return this.client.sendOperationRequest(
|
|
807
|
+
{ policyStatesResource, subscriptionId, resourceGroupName, options },
|
|
808
|
+
listQueryResultsForResourceGroupOperationSpec
|
|
809
|
+
);
|
|
810
|
+
}
|
|
811
|
+
|
|
218
812
|
/**
|
|
813
|
+
* Summarizes policy states for the resources under the resource group.
|
|
219
814
|
* @param subscriptionId Microsoft Azure subscription ID.
|
|
220
815
|
* @param resourceGroupName Resource group name.
|
|
221
|
-
* @param options The
|
|
222
|
-
* @param callback The callback
|
|
816
|
+
* @param options The options parameters.
|
|
223
817
|
*/
|
|
224
|
-
summarizeForResourceGroup(
|
|
225
|
-
|
|
818
|
+
summarizeForResourceGroup(
|
|
819
|
+
subscriptionId: string,
|
|
820
|
+
resourceGroupName: string,
|
|
821
|
+
options?: PolicyStatesSummarizeForResourceGroupOptionalParams
|
|
822
|
+
): Promise<PolicyStatesSummarizeForResourceGroupResponse> {
|
|
226
823
|
return this.client.sendOperationRequest(
|
|
227
|
-
{
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
options
|
|
231
|
-
},
|
|
232
|
-
summarizeForResourceGroupOperationSpec,
|
|
233
|
-
callback) as Promise<Models.PolicyStatesSummarizeForResourceGroupResponse>;
|
|
824
|
+
{ subscriptionId, resourceGroupName, options },
|
|
825
|
+
summarizeForResourceGroupOperationSpec
|
|
826
|
+
);
|
|
234
827
|
}
|
|
235
828
|
|
|
236
829
|
/**
|
|
237
830
|
* Queries policy states for the resource.
|
|
238
|
-
* @param policyStatesResource The virtual resource under PolicyStates resource type. In a given
|
|
239
|
-
*
|
|
240
|
-
*
|
|
241
|
-
* @param resourceId Resource ID.
|
|
242
|
-
* @param [options] The optional parameters
|
|
243
|
-
* @returns Promise<Models.PolicyStatesListQueryResultsForResourceResponse>
|
|
244
|
-
*/
|
|
245
|
-
listQueryResultsForResource(policyStatesResource: Models.PolicyStatesResource, resourceId: string, options?: Models.PolicyStatesListQueryResultsForResourceOptionalParams): Promise<Models.PolicyStatesListQueryResultsForResourceResponse>;
|
|
246
|
-
/**
|
|
247
|
-
* @param policyStatesResource The virtual resource under PolicyStates resource type. In a given
|
|
248
|
-
* time range, 'latest' represents the latest policy state(s), whereas 'default' represents all
|
|
249
|
-
* policy state(s). Possible values include: 'default', 'latest'
|
|
250
|
-
* @param resourceId Resource ID.
|
|
251
|
-
* @param callback The callback
|
|
252
|
-
*/
|
|
253
|
-
listQueryResultsForResource(policyStatesResource: Models.PolicyStatesResource, resourceId: string, callback: msRest.ServiceCallback<Models.PolicyStatesQueryResults>): void;
|
|
254
|
-
/**
|
|
255
|
-
* @param policyStatesResource The virtual resource under PolicyStates resource type. In a given
|
|
256
|
-
* time range, 'latest' represents the latest policy state(s), whereas 'default' represents all
|
|
257
|
-
* policy state(s). Possible values include: 'default', 'latest'
|
|
831
|
+
* @param policyStatesResource The virtual resource under PolicyStates resource type. In a given time
|
|
832
|
+
* range, 'latest' represents the latest policy state(s), whereas 'default' represents all policy
|
|
833
|
+
* state(s).
|
|
258
834
|
* @param resourceId Resource ID.
|
|
259
|
-
* @param options The
|
|
260
|
-
* @param callback The callback
|
|
835
|
+
* @param options The options parameters.
|
|
261
836
|
*/
|
|
262
|
-
|
|
263
|
-
|
|
837
|
+
private _listQueryResultsForResource(
|
|
838
|
+
policyStatesResource: PolicyStatesResource,
|
|
839
|
+
resourceId: string,
|
|
840
|
+
options?: PolicyStatesListQueryResultsForResourceOptionalParams
|
|
841
|
+
): Promise<PolicyStatesListQueryResultsForResourceResponse> {
|
|
264
842
|
return this.client.sendOperationRequest(
|
|
265
|
-
{
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
options
|
|
269
|
-
},
|
|
270
|
-
listQueryResultsForResourceOperationSpec,
|
|
271
|
-
callback) as Promise<Models.PolicyStatesListQueryResultsForResourceResponse>;
|
|
843
|
+
{ policyStatesResource, resourceId, options },
|
|
844
|
+
listQueryResultsForResourceOperationSpec
|
|
845
|
+
);
|
|
272
846
|
}
|
|
273
847
|
|
|
274
848
|
/**
|
|
275
849
|
* Summarizes policy states for the resource.
|
|
276
850
|
* @param resourceId Resource ID.
|
|
277
|
-
* @param
|
|
278
|
-
* @returns Promise<Models.PolicyStatesSummarizeForResourceResponse>
|
|
279
|
-
*/
|
|
280
|
-
summarizeForResource(resourceId: string, options?: Models.PolicyStatesSummarizeForResourceOptionalParams): Promise<Models.PolicyStatesSummarizeForResourceResponse>;
|
|
281
|
-
/**
|
|
282
|
-
* @param resourceId Resource ID.
|
|
283
|
-
* @param callback The callback
|
|
284
|
-
*/
|
|
285
|
-
summarizeForResource(resourceId: string, callback: msRest.ServiceCallback<Models.SummarizeResults>): void;
|
|
286
|
-
/**
|
|
287
|
-
* @param resourceId Resource ID.
|
|
288
|
-
* @param options The optional parameters
|
|
289
|
-
* @param callback The callback
|
|
851
|
+
* @param options The options parameters.
|
|
290
852
|
*/
|
|
291
|
-
summarizeForResource(
|
|
292
|
-
|
|
853
|
+
summarizeForResource(
|
|
854
|
+
resourceId: string,
|
|
855
|
+
options?: PolicyStatesSummarizeForResourceOptionalParams
|
|
856
|
+
): Promise<PolicyStatesSummarizeForResourceResponse> {
|
|
293
857
|
return this.client.sendOperationRequest(
|
|
294
|
-
{
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
},
|
|
298
|
-
summarizeForResourceOperationSpec,
|
|
299
|
-
callback) as Promise<Models.PolicyStatesSummarizeForResourceResponse>;
|
|
858
|
+
{ resourceId, options },
|
|
859
|
+
summarizeForResourceOperationSpec
|
|
860
|
+
);
|
|
300
861
|
}
|
|
301
862
|
|
|
302
863
|
/**
|
|
303
864
|
* Triggers a policy evaluation scan for all the resources under the subscription
|
|
304
865
|
* @param subscriptionId Microsoft Azure subscription ID.
|
|
305
|
-
* @param
|
|
306
|
-
* @returns Promise<msRest.RestResponse>
|
|
866
|
+
* @param options The options parameters.
|
|
307
867
|
*/
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
868
|
+
async beginTriggerSubscriptionEvaluation(
|
|
869
|
+
subscriptionId: string,
|
|
870
|
+
options?: PolicyStatesTriggerSubscriptionEvaluationOptionalParams
|
|
871
|
+
): Promise<PollerLike<PollOperationState<void>, void>> {
|
|
872
|
+
const directSendOperation = async (
|
|
873
|
+
args: coreClient.OperationArguments,
|
|
874
|
+
spec: coreClient.OperationSpec
|
|
875
|
+
): Promise<void> => {
|
|
876
|
+
return this.client.sendOperationRequest(args, spec);
|
|
877
|
+
};
|
|
878
|
+
const sendOperation = async (
|
|
879
|
+
args: coreClient.OperationArguments,
|
|
880
|
+
spec: coreClient.OperationSpec
|
|
881
|
+
) => {
|
|
882
|
+
let currentRawResponse:
|
|
883
|
+
| coreClient.FullOperationResponse
|
|
884
|
+
| undefined = undefined;
|
|
885
|
+
const providedCallback = args.options?.onResponse;
|
|
886
|
+
const callback: coreClient.RawResponseCallback = (
|
|
887
|
+
rawResponse: coreClient.FullOperationResponse,
|
|
888
|
+
flatResponse: unknown
|
|
889
|
+
) => {
|
|
890
|
+
currentRawResponse = rawResponse;
|
|
891
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
892
|
+
};
|
|
893
|
+
const updatedArgs = {
|
|
894
|
+
...args,
|
|
895
|
+
options: {
|
|
896
|
+
...args.options,
|
|
897
|
+
onResponse: callback
|
|
898
|
+
}
|
|
899
|
+
};
|
|
900
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
901
|
+
return {
|
|
902
|
+
flatResponse,
|
|
903
|
+
rawResponse: {
|
|
904
|
+
statusCode: currentRawResponse!.status,
|
|
905
|
+
body: currentRawResponse!.parsedBody,
|
|
906
|
+
headers: currentRawResponse!.headers.toJSON()
|
|
907
|
+
}
|
|
908
|
+
};
|
|
909
|
+
};
|
|
910
|
+
|
|
911
|
+
const lro = new LroImpl(
|
|
912
|
+
sendOperation,
|
|
913
|
+
{ subscriptionId, options },
|
|
914
|
+
triggerSubscriptionEvaluationOperationSpec
|
|
915
|
+
);
|
|
916
|
+
return new LroEngine(lro, {
|
|
917
|
+
resumeFrom: options?.resumeFrom,
|
|
918
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
919
|
+
lroResourceLocationConfig: "location"
|
|
920
|
+
});
|
|
311
921
|
}
|
|
312
922
|
|
|
313
923
|
/**
|
|
314
|
-
* Triggers a policy evaluation scan for all the resources under the
|
|
924
|
+
* Triggers a policy evaluation scan for all the resources under the subscription
|
|
315
925
|
* @param subscriptionId Microsoft Azure subscription ID.
|
|
316
|
-
* @param
|
|
317
|
-
* @param [options] The optional parameters
|
|
318
|
-
* @returns Promise<msRest.RestResponse>
|
|
926
|
+
* @param options The options parameters.
|
|
319
927
|
*/
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
928
|
+
async beginTriggerSubscriptionEvaluationAndWait(
|
|
929
|
+
subscriptionId: string,
|
|
930
|
+
options?: PolicyStatesTriggerSubscriptionEvaluationOptionalParams
|
|
931
|
+
): Promise<void> {
|
|
932
|
+
const poller = await this.beginTriggerSubscriptionEvaluation(
|
|
933
|
+
subscriptionId,
|
|
934
|
+
options
|
|
935
|
+
);
|
|
936
|
+
return poller.pollUntilDone();
|
|
323
937
|
}
|
|
324
938
|
|
|
325
939
|
/**
|
|
326
|
-
*
|
|
327
|
-
* @param policyStatesResource The virtual resource under PolicyStates resource type. In a given
|
|
328
|
-
* time range, 'latest' represents the latest policy state(s), whereas 'default' represents all
|
|
329
|
-
* policy state(s). Possible values include: 'default', 'latest'
|
|
940
|
+
* Triggers a policy evaluation scan for all the resources under the resource group.
|
|
330
941
|
* @param subscriptionId Microsoft Azure subscription ID.
|
|
331
|
-
* @param
|
|
332
|
-
* @param
|
|
333
|
-
* @returns Promise<Models.PolicyStatesListQueryResultsForPolicySetDefinitionResponse>
|
|
942
|
+
* @param resourceGroupName Resource group name.
|
|
943
|
+
* @param options The options parameters.
|
|
334
944
|
*/
|
|
335
|
-
|
|
945
|
+
async beginTriggerResourceGroupEvaluation(
|
|
946
|
+
subscriptionId: string,
|
|
947
|
+
resourceGroupName: string,
|
|
948
|
+
options?: PolicyStatesTriggerResourceGroupEvaluationOptionalParams
|
|
949
|
+
): Promise<PollerLike<PollOperationState<void>, void>> {
|
|
950
|
+
const directSendOperation = async (
|
|
951
|
+
args: coreClient.OperationArguments,
|
|
952
|
+
spec: coreClient.OperationSpec
|
|
953
|
+
): Promise<void> => {
|
|
954
|
+
return this.client.sendOperationRequest(args, spec);
|
|
955
|
+
};
|
|
956
|
+
const sendOperation = async (
|
|
957
|
+
args: coreClient.OperationArguments,
|
|
958
|
+
spec: coreClient.OperationSpec
|
|
959
|
+
) => {
|
|
960
|
+
let currentRawResponse:
|
|
961
|
+
| coreClient.FullOperationResponse
|
|
962
|
+
| undefined = undefined;
|
|
963
|
+
const providedCallback = args.options?.onResponse;
|
|
964
|
+
const callback: coreClient.RawResponseCallback = (
|
|
965
|
+
rawResponse: coreClient.FullOperationResponse,
|
|
966
|
+
flatResponse: unknown
|
|
967
|
+
) => {
|
|
968
|
+
currentRawResponse = rawResponse;
|
|
969
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
970
|
+
};
|
|
971
|
+
const updatedArgs = {
|
|
972
|
+
...args,
|
|
973
|
+
options: {
|
|
974
|
+
...args.options,
|
|
975
|
+
onResponse: callback
|
|
976
|
+
}
|
|
977
|
+
};
|
|
978
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
979
|
+
return {
|
|
980
|
+
flatResponse,
|
|
981
|
+
rawResponse: {
|
|
982
|
+
statusCode: currentRawResponse!.status,
|
|
983
|
+
body: currentRawResponse!.parsedBody,
|
|
984
|
+
headers: currentRawResponse!.headers.toJSON()
|
|
985
|
+
}
|
|
986
|
+
};
|
|
987
|
+
};
|
|
988
|
+
|
|
989
|
+
const lro = new LroImpl(
|
|
990
|
+
sendOperation,
|
|
991
|
+
{ subscriptionId, resourceGroupName, options },
|
|
992
|
+
triggerResourceGroupEvaluationOperationSpec
|
|
993
|
+
);
|
|
994
|
+
return new LroEngine(lro, {
|
|
995
|
+
resumeFrom: options?.resumeFrom,
|
|
996
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
997
|
+
lroResourceLocationConfig: "location"
|
|
998
|
+
});
|
|
999
|
+
}
|
|
1000
|
+
|
|
336
1001
|
/**
|
|
337
|
-
*
|
|
338
|
-
* time range, 'latest' represents the latest policy state(s), whereas 'default' represents all
|
|
339
|
-
* policy state(s). Possible values include: 'default', 'latest'
|
|
1002
|
+
* Triggers a policy evaluation scan for all the resources under the resource group.
|
|
340
1003
|
* @param subscriptionId Microsoft Azure subscription ID.
|
|
341
|
-
* @param
|
|
342
|
-
* @param
|
|
1004
|
+
* @param resourceGroupName Resource group name.
|
|
1005
|
+
* @param options The options parameters.
|
|
343
1006
|
*/
|
|
344
|
-
|
|
1007
|
+
async beginTriggerResourceGroupEvaluationAndWait(
|
|
1008
|
+
subscriptionId: string,
|
|
1009
|
+
resourceGroupName: string,
|
|
1010
|
+
options?: PolicyStatesTriggerResourceGroupEvaluationOptionalParams
|
|
1011
|
+
): Promise<void> {
|
|
1012
|
+
const poller = await this.beginTriggerResourceGroupEvaluation(
|
|
1013
|
+
subscriptionId,
|
|
1014
|
+
resourceGroupName,
|
|
1015
|
+
options
|
|
1016
|
+
);
|
|
1017
|
+
return poller.pollUntilDone();
|
|
1018
|
+
}
|
|
1019
|
+
|
|
345
1020
|
/**
|
|
346
|
-
*
|
|
347
|
-
*
|
|
348
|
-
* policy state(s)
|
|
1021
|
+
* Queries policy states for the subscription level policy set definition.
|
|
1022
|
+
* @param policyStatesResource The virtual resource under PolicyStates resource type. In a given time
|
|
1023
|
+
* range, 'latest' represents the latest policy state(s), whereas 'default' represents all policy
|
|
1024
|
+
* state(s).
|
|
349
1025
|
* @param subscriptionId Microsoft Azure subscription ID.
|
|
350
1026
|
* @param policySetDefinitionName Policy set definition name.
|
|
351
|
-
* @param options The
|
|
352
|
-
* @param callback The callback
|
|
1027
|
+
* @param options The options parameters.
|
|
353
1028
|
*/
|
|
354
|
-
|
|
355
|
-
|
|
1029
|
+
private _listQueryResultsForPolicySetDefinition(
|
|
1030
|
+
policyStatesResource: PolicyStatesResource,
|
|
1031
|
+
subscriptionId: string,
|
|
1032
|
+
policySetDefinitionName: string,
|
|
1033
|
+
options?: PolicyStatesListQueryResultsForPolicySetDefinitionOptionalParams
|
|
1034
|
+
): Promise<PolicyStatesListQueryResultsForPolicySetDefinitionResponse> {
|
|
356
1035
|
return this.client.sendOperationRequest(
|
|
357
1036
|
{
|
|
358
1037
|
policyStatesResource,
|
|
@@ -360,332 +1039,507 @@ export class PolicyStates {
|
|
|
360
1039
|
policySetDefinitionName,
|
|
361
1040
|
options
|
|
362
1041
|
},
|
|
363
|
-
listQueryResultsForPolicySetDefinitionOperationSpec
|
|
364
|
-
|
|
1042
|
+
listQueryResultsForPolicySetDefinitionOperationSpec
|
|
1043
|
+
);
|
|
365
1044
|
}
|
|
366
1045
|
|
|
367
1046
|
/**
|
|
368
1047
|
* Summarizes policy states for the subscription level policy set definition.
|
|
369
1048
|
* @param subscriptionId Microsoft Azure subscription ID.
|
|
370
1049
|
* @param policySetDefinitionName Policy set definition name.
|
|
371
|
-
* @param
|
|
372
|
-
* @returns Promise<Models.PolicyStatesSummarizeForPolicySetDefinitionResponse>
|
|
373
|
-
*/
|
|
374
|
-
summarizeForPolicySetDefinition(subscriptionId: string, policySetDefinitionName: string, options?: Models.PolicyStatesSummarizeForPolicySetDefinitionOptionalParams): Promise<Models.PolicyStatesSummarizeForPolicySetDefinitionResponse>;
|
|
375
|
-
/**
|
|
376
|
-
* @param subscriptionId Microsoft Azure subscription ID.
|
|
377
|
-
* @param policySetDefinitionName Policy set definition name.
|
|
378
|
-
* @param callback The callback
|
|
1050
|
+
* @param options The options parameters.
|
|
379
1051
|
*/
|
|
380
|
-
summarizeForPolicySetDefinition(
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
* @param callback The callback
|
|
386
|
-
*/
|
|
387
|
-
summarizeForPolicySetDefinition(subscriptionId: string, policySetDefinitionName: string, options: Models.PolicyStatesSummarizeForPolicySetDefinitionOptionalParams, callback: msRest.ServiceCallback<Models.SummarizeResults>): void;
|
|
388
|
-
summarizeForPolicySetDefinition(subscriptionId: string, policySetDefinitionName: string, options?: Models.PolicyStatesSummarizeForPolicySetDefinitionOptionalParams | msRest.ServiceCallback<Models.SummarizeResults>, callback?: msRest.ServiceCallback<Models.SummarizeResults>): Promise<Models.PolicyStatesSummarizeForPolicySetDefinitionResponse> {
|
|
1052
|
+
summarizeForPolicySetDefinition(
|
|
1053
|
+
subscriptionId: string,
|
|
1054
|
+
policySetDefinitionName: string,
|
|
1055
|
+
options?: PolicyStatesSummarizeForPolicySetDefinitionOptionalParams
|
|
1056
|
+
): Promise<PolicyStatesSummarizeForPolicySetDefinitionResponse> {
|
|
389
1057
|
return this.client.sendOperationRequest(
|
|
390
|
-
{
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
options
|
|
394
|
-
},
|
|
395
|
-
summarizeForPolicySetDefinitionOperationSpec,
|
|
396
|
-
callback) as Promise<Models.PolicyStatesSummarizeForPolicySetDefinitionResponse>;
|
|
1058
|
+
{ subscriptionId, policySetDefinitionName, options },
|
|
1059
|
+
summarizeForPolicySetDefinitionOperationSpec
|
|
1060
|
+
);
|
|
397
1061
|
}
|
|
398
1062
|
|
|
399
1063
|
/**
|
|
400
1064
|
* Queries policy states for the subscription level policy definition.
|
|
401
|
-
* @param policyStatesResource The virtual resource under PolicyStates resource type. In a given
|
|
402
|
-
*
|
|
403
|
-
*
|
|
404
|
-
* @param subscriptionId Microsoft Azure subscription ID.
|
|
405
|
-
* @param policyDefinitionName Policy definition name.
|
|
406
|
-
* @param [options] The optional parameters
|
|
407
|
-
* @returns Promise<Models.PolicyStatesListQueryResultsForPolicyDefinitionResponse>
|
|
408
|
-
*/
|
|
409
|
-
listQueryResultsForPolicyDefinition(policyStatesResource: Models.PolicyStatesResource, subscriptionId: string, policyDefinitionName: string, options?: Models.PolicyStatesListQueryResultsForPolicyDefinitionOptionalParams): Promise<Models.PolicyStatesListQueryResultsForPolicyDefinitionResponse>;
|
|
410
|
-
/**
|
|
411
|
-
* @param policyStatesResource The virtual resource under PolicyStates resource type. In a given
|
|
412
|
-
* time range, 'latest' represents the latest policy state(s), whereas 'default' represents all
|
|
413
|
-
* policy state(s). Possible values include: 'default', 'latest'
|
|
414
|
-
* @param subscriptionId Microsoft Azure subscription ID.
|
|
415
|
-
* @param policyDefinitionName Policy definition name.
|
|
416
|
-
* @param callback The callback
|
|
417
|
-
*/
|
|
418
|
-
listQueryResultsForPolicyDefinition(policyStatesResource: Models.PolicyStatesResource, subscriptionId: string, policyDefinitionName: string, callback: msRest.ServiceCallback<Models.PolicyStatesQueryResults>): void;
|
|
419
|
-
/**
|
|
420
|
-
* @param policyStatesResource The virtual resource under PolicyStates resource type. In a given
|
|
421
|
-
* time range, 'latest' represents the latest policy state(s), whereas 'default' represents all
|
|
422
|
-
* policy state(s). Possible values include: 'default', 'latest'
|
|
1065
|
+
* @param policyStatesResource The virtual resource under PolicyStates resource type. In a given time
|
|
1066
|
+
* range, 'latest' represents the latest policy state(s), whereas 'default' represents all policy
|
|
1067
|
+
* state(s).
|
|
423
1068
|
* @param subscriptionId Microsoft Azure subscription ID.
|
|
424
1069
|
* @param policyDefinitionName Policy definition name.
|
|
425
|
-
* @param options The
|
|
426
|
-
* @param callback The callback
|
|
1070
|
+
* @param options The options parameters.
|
|
427
1071
|
*/
|
|
428
|
-
|
|
429
|
-
|
|
1072
|
+
private _listQueryResultsForPolicyDefinition(
|
|
1073
|
+
policyStatesResource: PolicyStatesResource,
|
|
1074
|
+
subscriptionId: string,
|
|
1075
|
+
policyDefinitionName: string,
|
|
1076
|
+
options?: PolicyStatesListQueryResultsForPolicyDefinitionOptionalParams
|
|
1077
|
+
): Promise<PolicyStatesListQueryResultsForPolicyDefinitionResponse> {
|
|
430
1078
|
return this.client.sendOperationRequest(
|
|
431
|
-
{
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
policyDefinitionName,
|
|
435
|
-
options
|
|
436
|
-
},
|
|
437
|
-
listQueryResultsForPolicyDefinitionOperationSpec,
|
|
438
|
-
callback) as Promise<Models.PolicyStatesListQueryResultsForPolicyDefinitionResponse>;
|
|
1079
|
+
{ policyStatesResource, subscriptionId, policyDefinitionName, options },
|
|
1080
|
+
listQueryResultsForPolicyDefinitionOperationSpec
|
|
1081
|
+
);
|
|
439
1082
|
}
|
|
440
1083
|
|
|
441
1084
|
/**
|
|
442
1085
|
* Summarizes policy states for the subscription level policy definition.
|
|
443
1086
|
* @param subscriptionId Microsoft Azure subscription ID.
|
|
444
1087
|
* @param policyDefinitionName Policy definition name.
|
|
445
|
-
* @param
|
|
446
|
-
* @returns Promise<Models.PolicyStatesSummarizeForPolicyDefinitionResponse>
|
|
447
|
-
*/
|
|
448
|
-
summarizeForPolicyDefinition(subscriptionId: string, policyDefinitionName: string, options?: Models.PolicyStatesSummarizeForPolicyDefinitionOptionalParams): Promise<Models.PolicyStatesSummarizeForPolicyDefinitionResponse>;
|
|
449
|
-
/**
|
|
450
|
-
* @param subscriptionId Microsoft Azure subscription ID.
|
|
451
|
-
* @param policyDefinitionName Policy definition name.
|
|
452
|
-
* @param callback The callback
|
|
1088
|
+
* @param options The options parameters.
|
|
453
1089
|
*/
|
|
454
|
-
summarizeForPolicyDefinition(
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
* @param callback The callback
|
|
460
|
-
*/
|
|
461
|
-
summarizeForPolicyDefinition(subscriptionId: string, policyDefinitionName: string, options: Models.PolicyStatesSummarizeForPolicyDefinitionOptionalParams, callback: msRest.ServiceCallback<Models.SummarizeResults>): void;
|
|
462
|
-
summarizeForPolicyDefinition(subscriptionId: string, policyDefinitionName: string, options?: Models.PolicyStatesSummarizeForPolicyDefinitionOptionalParams | msRest.ServiceCallback<Models.SummarizeResults>, callback?: msRest.ServiceCallback<Models.SummarizeResults>): Promise<Models.PolicyStatesSummarizeForPolicyDefinitionResponse> {
|
|
1090
|
+
summarizeForPolicyDefinition(
|
|
1091
|
+
subscriptionId: string,
|
|
1092
|
+
policyDefinitionName: string,
|
|
1093
|
+
options?: PolicyStatesSummarizeForPolicyDefinitionOptionalParams
|
|
1094
|
+
): Promise<PolicyStatesSummarizeForPolicyDefinitionResponse> {
|
|
463
1095
|
return this.client.sendOperationRequest(
|
|
464
|
-
{
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
options
|
|
468
|
-
},
|
|
469
|
-
summarizeForPolicyDefinitionOperationSpec,
|
|
470
|
-
callback) as Promise<Models.PolicyStatesSummarizeForPolicyDefinitionResponse>;
|
|
1096
|
+
{ subscriptionId, policyDefinitionName, options },
|
|
1097
|
+
summarizeForPolicyDefinitionOperationSpec
|
|
1098
|
+
);
|
|
471
1099
|
}
|
|
472
1100
|
|
|
473
1101
|
/**
|
|
474
1102
|
* Queries policy states for the subscription level policy assignment.
|
|
475
|
-
* @param policyStatesResource The virtual resource under PolicyStates resource type. In a given
|
|
476
|
-
*
|
|
477
|
-
*
|
|
1103
|
+
* @param policyStatesResource The virtual resource under PolicyStates resource type. In a given time
|
|
1104
|
+
* range, 'latest' represents the latest policy state(s), whereas 'default' represents all policy
|
|
1105
|
+
* state(s).
|
|
478
1106
|
* @param subscriptionId Microsoft Azure subscription ID.
|
|
479
1107
|
* @param policyAssignmentName Policy assignment name.
|
|
480
|
-
* @param
|
|
481
|
-
* @returns
|
|
482
|
-
* Promise<Models.PolicyStatesListQueryResultsForSubscriptionLevelPolicyAssignmentResponse>
|
|
1108
|
+
* @param options The options parameters.
|
|
483
1109
|
*/
|
|
484
|
-
|
|
1110
|
+
private _listQueryResultsForSubscriptionLevelPolicyAssignment(
|
|
1111
|
+
policyStatesResource: PolicyStatesResource,
|
|
1112
|
+
subscriptionId: string,
|
|
1113
|
+
policyAssignmentName: string,
|
|
1114
|
+
options?: PolicyStatesListQueryResultsForSubscriptionLevelPolicyAssignmentOptionalParams
|
|
1115
|
+
): Promise<
|
|
1116
|
+
PolicyStatesListQueryResultsForSubscriptionLevelPolicyAssignmentResponse
|
|
1117
|
+
> {
|
|
1118
|
+
return this.client.sendOperationRequest(
|
|
1119
|
+
{ policyStatesResource, subscriptionId, policyAssignmentName, options },
|
|
1120
|
+
listQueryResultsForSubscriptionLevelPolicyAssignmentOperationSpec
|
|
1121
|
+
);
|
|
1122
|
+
}
|
|
1123
|
+
|
|
485
1124
|
/**
|
|
486
|
-
*
|
|
487
|
-
* time range, 'latest' represents the latest policy state(s), whereas 'default' represents all
|
|
488
|
-
* policy state(s). Possible values include: 'default', 'latest'
|
|
1125
|
+
* Summarizes policy states for the subscription level policy assignment.
|
|
489
1126
|
* @param subscriptionId Microsoft Azure subscription ID.
|
|
490
1127
|
* @param policyAssignmentName Policy assignment name.
|
|
491
|
-
* @param
|
|
1128
|
+
* @param options The options parameters.
|
|
492
1129
|
*/
|
|
493
|
-
|
|
1130
|
+
summarizeForSubscriptionLevelPolicyAssignment(
|
|
1131
|
+
subscriptionId: string,
|
|
1132
|
+
policyAssignmentName: string,
|
|
1133
|
+
options?: PolicyStatesSummarizeForSubscriptionLevelPolicyAssignmentOptionalParams
|
|
1134
|
+
): Promise<
|
|
1135
|
+
PolicyStatesSummarizeForSubscriptionLevelPolicyAssignmentResponse
|
|
1136
|
+
> {
|
|
1137
|
+
return this.client.sendOperationRequest(
|
|
1138
|
+
{ subscriptionId, policyAssignmentName, options },
|
|
1139
|
+
summarizeForSubscriptionLevelPolicyAssignmentOperationSpec
|
|
1140
|
+
);
|
|
1141
|
+
}
|
|
1142
|
+
|
|
494
1143
|
/**
|
|
495
|
-
*
|
|
496
|
-
*
|
|
497
|
-
* policy state(s)
|
|
1144
|
+
* Queries policy states for the resource group level policy assignment.
|
|
1145
|
+
* @param policyStatesResource The virtual resource under PolicyStates resource type. In a given time
|
|
1146
|
+
* range, 'latest' represents the latest policy state(s), whereas 'default' represents all policy
|
|
1147
|
+
* state(s).
|
|
498
1148
|
* @param subscriptionId Microsoft Azure subscription ID.
|
|
1149
|
+
* @param resourceGroupName Resource group name.
|
|
499
1150
|
* @param policyAssignmentName Policy assignment name.
|
|
500
|
-
* @param options The
|
|
501
|
-
* @param callback The callback
|
|
1151
|
+
* @param options The options parameters.
|
|
502
1152
|
*/
|
|
503
|
-
|
|
504
|
-
|
|
1153
|
+
private _listQueryResultsForResourceGroupLevelPolicyAssignment(
|
|
1154
|
+
policyStatesResource: PolicyStatesResource,
|
|
1155
|
+
subscriptionId: string,
|
|
1156
|
+
resourceGroupName: string,
|
|
1157
|
+
policyAssignmentName: string,
|
|
1158
|
+
options?: PolicyStatesListQueryResultsForResourceGroupLevelPolicyAssignmentOptionalParams
|
|
1159
|
+
): Promise<
|
|
1160
|
+
PolicyStatesListQueryResultsForResourceGroupLevelPolicyAssignmentResponse
|
|
1161
|
+
> {
|
|
505
1162
|
return this.client.sendOperationRequest(
|
|
506
1163
|
{
|
|
507
1164
|
policyStatesResource,
|
|
508
1165
|
subscriptionId,
|
|
1166
|
+
resourceGroupName,
|
|
509
1167
|
policyAssignmentName,
|
|
510
1168
|
options
|
|
511
1169
|
},
|
|
512
|
-
|
|
513
|
-
|
|
1170
|
+
listQueryResultsForResourceGroupLevelPolicyAssignmentOperationSpec
|
|
1171
|
+
);
|
|
514
1172
|
}
|
|
515
1173
|
|
|
516
1174
|
/**
|
|
517
|
-
* Summarizes policy states for the
|
|
518
|
-
* @param subscriptionId Microsoft Azure subscription ID.
|
|
519
|
-
* @param policyAssignmentName Policy assignment name.
|
|
520
|
-
* @param [options] The optional parameters
|
|
521
|
-
* @returns Promise<Models.PolicyStatesSummarizeForSubscriptionLevelPolicyAssignmentResponse>
|
|
522
|
-
*/
|
|
523
|
-
summarizeForSubscriptionLevelPolicyAssignment(subscriptionId: string, policyAssignmentName: string, options?: Models.PolicyStatesSummarizeForSubscriptionLevelPolicyAssignmentOptionalParams): Promise<Models.PolicyStatesSummarizeForSubscriptionLevelPolicyAssignmentResponse>;
|
|
524
|
-
/**
|
|
525
|
-
* @param subscriptionId Microsoft Azure subscription ID.
|
|
526
|
-
* @param policyAssignmentName Policy assignment name.
|
|
527
|
-
* @param callback The callback
|
|
528
|
-
*/
|
|
529
|
-
summarizeForSubscriptionLevelPolicyAssignment(subscriptionId: string, policyAssignmentName: string, callback: msRest.ServiceCallback<Models.SummarizeResults>): void;
|
|
530
|
-
/**
|
|
1175
|
+
* Summarizes policy states for the resource group level policy assignment.
|
|
531
1176
|
* @param subscriptionId Microsoft Azure subscription ID.
|
|
1177
|
+
* @param resourceGroupName Resource group name.
|
|
532
1178
|
* @param policyAssignmentName Policy assignment name.
|
|
533
|
-
* @param options The
|
|
534
|
-
* @param callback The callback
|
|
1179
|
+
* @param options The options parameters.
|
|
535
1180
|
*/
|
|
536
|
-
|
|
537
|
-
|
|
1181
|
+
summarizeForResourceGroupLevelPolicyAssignment(
|
|
1182
|
+
subscriptionId: string,
|
|
1183
|
+
resourceGroupName: string,
|
|
1184
|
+
policyAssignmentName: string,
|
|
1185
|
+
options?: PolicyStatesSummarizeForResourceGroupLevelPolicyAssignmentOptionalParams
|
|
1186
|
+
): Promise<
|
|
1187
|
+
PolicyStatesSummarizeForResourceGroupLevelPolicyAssignmentResponse
|
|
1188
|
+
> {
|
|
538
1189
|
return this.client.sendOperationRequest(
|
|
539
|
-
{
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
options
|
|
543
|
-
},
|
|
544
|
-
summarizeForSubscriptionLevelPolicyAssignmentOperationSpec,
|
|
545
|
-
callback) as Promise<Models.PolicyStatesSummarizeForSubscriptionLevelPolicyAssignmentResponse>;
|
|
1190
|
+
{ subscriptionId, resourceGroupName, policyAssignmentName, options },
|
|
1191
|
+
summarizeForResourceGroupLevelPolicyAssignmentOperationSpec
|
|
1192
|
+
);
|
|
546
1193
|
}
|
|
547
1194
|
|
|
548
1195
|
/**
|
|
549
|
-
*
|
|
550
|
-
* @param policyStatesResource The virtual resource under PolicyStates resource type. In a given
|
|
551
|
-
*
|
|
552
|
-
*
|
|
553
|
-
* @param
|
|
554
|
-
* @param
|
|
555
|
-
*
|
|
556
|
-
* @param
|
|
557
|
-
* @returns
|
|
558
|
-
* Promise<Models.PolicyStatesListQueryResultsForResourceGroupLevelPolicyAssignmentResponse>
|
|
1196
|
+
* ListQueryResultsForManagementGroupNext
|
|
1197
|
+
* @param policyStatesResource The virtual resource under PolicyStates resource type. In a given time
|
|
1198
|
+
* range, 'latest' represents the latest policy state(s), whereas 'default' represents all policy
|
|
1199
|
+
* state(s).
|
|
1200
|
+
* @param managementGroupName Management group name.
|
|
1201
|
+
* @param nextLink The nextLink from the previous successful call to the
|
|
1202
|
+
* ListQueryResultsForManagementGroup method.
|
|
1203
|
+
* @param options The options parameters.
|
|
559
1204
|
*/
|
|
560
|
-
|
|
1205
|
+
private _listQueryResultsForManagementGroupNext(
|
|
1206
|
+
policyStatesResource: PolicyStatesResource,
|
|
1207
|
+
managementGroupName: string,
|
|
1208
|
+
nextLink: string,
|
|
1209
|
+
options?: PolicyStatesListQueryResultsForManagementGroupNextOptionalParams
|
|
1210
|
+
): Promise<PolicyStatesListQueryResultsForManagementGroupNextResponse> {
|
|
1211
|
+
return this.client.sendOperationRequest(
|
|
1212
|
+
{ policyStatesResource, managementGroupName, nextLink, options },
|
|
1213
|
+
listQueryResultsForManagementGroupNextOperationSpec
|
|
1214
|
+
);
|
|
1215
|
+
}
|
|
1216
|
+
|
|
561
1217
|
/**
|
|
562
|
-
*
|
|
563
|
-
*
|
|
564
|
-
* policy state(s)
|
|
1218
|
+
* ListQueryResultsForSubscriptionNext
|
|
1219
|
+
* @param policyStatesResource The virtual resource under PolicyStates resource type. In a given time
|
|
1220
|
+
* range, 'latest' represents the latest policy state(s), whereas 'default' represents all policy
|
|
1221
|
+
* state(s).
|
|
565
1222
|
* @param subscriptionId Microsoft Azure subscription ID.
|
|
566
|
-
* @param
|
|
567
|
-
*
|
|
568
|
-
* @param
|
|
1223
|
+
* @param nextLink The nextLink from the previous successful call to the
|
|
1224
|
+
* ListQueryResultsForSubscription method.
|
|
1225
|
+
* @param options The options parameters.
|
|
569
1226
|
*/
|
|
570
|
-
|
|
1227
|
+
private _listQueryResultsForSubscriptionNext(
|
|
1228
|
+
policyStatesResource: PolicyStatesResource,
|
|
1229
|
+
subscriptionId: string,
|
|
1230
|
+
nextLink: string,
|
|
1231
|
+
options?: PolicyStatesListQueryResultsForSubscriptionNextOptionalParams
|
|
1232
|
+
): Promise<PolicyStatesListQueryResultsForSubscriptionNextResponse> {
|
|
1233
|
+
return this.client.sendOperationRequest(
|
|
1234
|
+
{ policyStatesResource, subscriptionId, nextLink, options },
|
|
1235
|
+
listQueryResultsForSubscriptionNextOperationSpec
|
|
1236
|
+
);
|
|
1237
|
+
}
|
|
1238
|
+
|
|
571
1239
|
/**
|
|
572
|
-
*
|
|
573
|
-
*
|
|
574
|
-
* policy state(s)
|
|
1240
|
+
* ListQueryResultsForResourceGroupNext
|
|
1241
|
+
* @param policyStatesResource The virtual resource under PolicyStates resource type. In a given time
|
|
1242
|
+
* range, 'latest' represents the latest policy state(s), whereas 'default' represents all policy
|
|
1243
|
+
* state(s).
|
|
575
1244
|
* @param subscriptionId Microsoft Azure subscription ID.
|
|
576
1245
|
* @param resourceGroupName Resource group name.
|
|
577
|
-
* @param
|
|
578
|
-
*
|
|
579
|
-
* @param
|
|
1246
|
+
* @param nextLink The nextLink from the previous successful call to the
|
|
1247
|
+
* ListQueryResultsForResourceGroup method.
|
|
1248
|
+
* @param options The options parameters.
|
|
580
1249
|
*/
|
|
581
|
-
|
|
582
|
-
|
|
1250
|
+
private _listQueryResultsForResourceGroupNext(
|
|
1251
|
+
policyStatesResource: PolicyStatesResource,
|
|
1252
|
+
subscriptionId: string,
|
|
1253
|
+
resourceGroupName: string,
|
|
1254
|
+
nextLink: string,
|
|
1255
|
+
options?: PolicyStatesListQueryResultsForResourceGroupNextOptionalParams
|
|
1256
|
+
): Promise<PolicyStatesListQueryResultsForResourceGroupNextResponse> {
|
|
583
1257
|
return this.client.sendOperationRequest(
|
|
584
1258
|
{
|
|
585
1259
|
policyStatesResource,
|
|
586
1260
|
subscriptionId,
|
|
587
1261
|
resourceGroupName,
|
|
588
|
-
|
|
1262
|
+
nextLink,
|
|
589
1263
|
options
|
|
590
1264
|
},
|
|
591
|
-
|
|
592
|
-
|
|
1265
|
+
listQueryResultsForResourceGroupNextOperationSpec
|
|
1266
|
+
);
|
|
593
1267
|
}
|
|
594
1268
|
|
|
595
1269
|
/**
|
|
596
|
-
*
|
|
597
|
-
* @param
|
|
598
|
-
*
|
|
599
|
-
*
|
|
600
|
-
* @param
|
|
601
|
-
* @
|
|
1270
|
+
* ListQueryResultsForResourceNext
|
|
1271
|
+
* @param policyStatesResource The virtual resource under PolicyStates resource type. In a given time
|
|
1272
|
+
* range, 'latest' represents the latest policy state(s), whereas 'default' represents all policy
|
|
1273
|
+
* state(s).
|
|
1274
|
+
* @param resourceId Resource ID.
|
|
1275
|
+
* @param nextLink The nextLink from the previous successful call to the ListQueryResultsForResource
|
|
1276
|
+
* method.
|
|
1277
|
+
* @param options The options parameters.
|
|
602
1278
|
*/
|
|
603
|
-
|
|
1279
|
+
private _listQueryResultsForResourceNext(
|
|
1280
|
+
policyStatesResource: PolicyStatesResource,
|
|
1281
|
+
resourceId: string,
|
|
1282
|
+
nextLink: string,
|
|
1283
|
+
options?: PolicyStatesListQueryResultsForResourceNextOptionalParams
|
|
1284
|
+
): Promise<PolicyStatesListQueryResultsForResourceNextResponse> {
|
|
1285
|
+
return this.client.sendOperationRequest(
|
|
1286
|
+
{ policyStatesResource, resourceId, nextLink, options },
|
|
1287
|
+
listQueryResultsForResourceNextOperationSpec
|
|
1288
|
+
);
|
|
1289
|
+
}
|
|
1290
|
+
|
|
604
1291
|
/**
|
|
1292
|
+
* ListQueryResultsForPolicySetDefinitionNext
|
|
1293
|
+
* @param policyStatesResource The virtual resource under PolicyStates resource type. In a given time
|
|
1294
|
+
* range, 'latest' represents the latest policy state(s), whereas 'default' represents all policy
|
|
1295
|
+
* state(s).
|
|
605
1296
|
* @param subscriptionId Microsoft Azure subscription ID.
|
|
606
|
-
* @param
|
|
607
|
-
* @param
|
|
608
|
-
*
|
|
1297
|
+
* @param policySetDefinitionName Policy set definition name.
|
|
1298
|
+
* @param nextLink The nextLink from the previous successful call to the
|
|
1299
|
+
* ListQueryResultsForPolicySetDefinition method.
|
|
1300
|
+
* @param options The options parameters.
|
|
609
1301
|
*/
|
|
610
|
-
|
|
1302
|
+
private _listQueryResultsForPolicySetDefinitionNext(
|
|
1303
|
+
policyStatesResource: PolicyStatesResource,
|
|
1304
|
+
subscriptionId: string,
|
|
1305
|
+
policySetDefinitionName: string,
|
|
1306
|
+
nextLink: string,
|
|
1307
|
+
options?: PolicyStatesListQueryResultsForPolicySetDefinitionNextOptionalParams
|
|
1308
|
+
): Promise<PolicyStatesListQueryResultsForPolicySetDefinitionNextResponse> {
|
|
1309
|
+
return this.client.sendOperationRequest(
|
|
1310
|
+
{
|
|
1311
|
+
policyStatesResource,
|
|
1312
|
+
subscriptionId,
|
|
1313
|
+
policySetDefinitionName,
|
|
1314
|
+
nextLink,
|
|
1315
|
+
options
|
|
1316
|
+
},
|
|
1317
|
+
listQueryResultsForPolicySetDefinitionNextOperationSpec
|
|
1318
|
+
);
|
|
1319
|
+
}
|
|
1320
|
+
|
|
611
1321
|
/**
|
|
1322
|
+
* ListQueryResultsForPolicyDefinitionNext
|
|
1323
|
+
* @param policyStatesResource The virtual resource under PolicyStates resource type. In a given time
|
|
1324
|
+
* range, 'latest' represents the latest policy state(s), whereas 'default' represents all policy
|
|
1325
|
+
* state(s).
|
|
612
1326
|
* @param subscriptionId Microsoft Azure subscription ID.
|
|
613
|
-
* @param
|
|
614
|
-
* @param
|
|
615
|
-
*
|
|
616
|
-
* @param
|
|
1327
|
+
* @param policyDefinitionName Policy definition name.
|
|
1328
|
+
* @param nextLink The nextLink from the previous successful call to the
|
|
1329
|
+
* ListQueryResultsForPolicyDefinition method.
|
|
1330
|
+
* @param options The options parameters.
|
|
617
1331
|
*/
|
|
618
|
-
|
|
619
|
-
|
|
1332
|
+
private _listQueryResultsForPolicyDefinitionNext(
|
|
1333
|
+
policyStatesResource: PolicyStatesResource,
|
|
1334
|
+
subscriptionId: string,
|
|
1335
|
+
policyDefinitionName: string,
|
|
1336
|
+
nextLink: string,
|
|
1337
|
+
options?: PolicyStatesListQueryResultsForPolicyDefinitionNextOptionalParams
|
|
1338
|
+
): Promise<PolicyStatesListQueryResultsForPolicyDefinitionNextResponse> {
|
|
620
1339
|
return this.client.sendOperationRequest(
|
|
621
1340
|
{
|
|
1341
|
+
policyStatesResource,
|
|
622
1342
|
subscriptionId,
|
|
623
|
-
|
|
624
|
-
|
|
1343
|
+
policyDefinitionName,
|
|
1344
|
+
nextLink,
|
|
625
1345
|
options
|
|
626
1346
|
},
|
|
627
|
-
|
|
628
|
-
|
|
1347
|
+
listQueryResultsForPolicyDefinitionNextOperationSpec
|
|
1348
|
+
);
|
|
629
1349
|
}
|
|
630
1350
|
|
|
631
1351
|
/**
|
|
632
|
-
*
|
|
1352
|
+
* ListQueryResultsForSubscriptionLevelPolicyAssignmentNext
|
|
1353
|
+
* @param policyStatesResource The virtual resource under PolicyStates resource type. In a given time
|
|
1354
|
+
* range, 'latest' represents the latest policy state(s), whereas 'default' represents all policy
|
|
1355
|
+
* state(s).
|
|
633
1356
|
* @param subscriptionId Microsoft Azure subscription ID.
|
|
634
|
-
* @param
|
|
635
|
-
* @
|
|
1357
|
+
* @param policyAssignmentName Policy assignment name.
|
|
1358
|
+
* @param nextLink The nextLink from the previous successful call to the
|
|
1359
|
+
* ListQueryResultsForSubscriptionLevelPolicyAssignment method.
|
|
1360
|
+
* @param options The options parameters.
|
|
636
1361
|
*/
|
|
637
|
-
|
|
638
|
-
|
|
1362
|
+
private _listQueryResultsForSubscriptionLevelPolicyAssignmentNext(
|
|
1363
|
+
policyStatesResource: PolicyStatesResource,
|
|
1364
|
+
subscriptionId: string,
|
|
1365
|
+
policyAssignmentName: string,
|
|
1366
|
+
nextLink: string,
|
|
1367
|
+
options?: PolicyStatesListQueryResultsForSubscriptionLevelPolicyAssignmentNextOptionalParams
|
|
1368
|
+
): Promise<
|
|
1369
|
+
PolicyStatesListQueryResultsForSubscriptionLevelPolicyAssignmentNextResponse
|
|
1370
|
+
> {
|
|
1371
|
+
return this.client.sendOperationRequest(
|
|
639
1372
|
{
|
|
1373
|
+
policyStatesResource,
|
|
640
1374
|
subscriptionId,
|
|
1375
|
+
policyAssignmentName,
|
|
1376
|
+
nextLink,
|
|
641
1377
|
options
|
|
642
1378
|
},
|
|
643
|
-
|
|
644
|
-
|
|
1379
|
+
listQueryResultsForSubscriptionLevelPolicyAssignmentNextOperationSpec
|
|
1380
|
+
);
|
|
645
1381
|
}
|
|
646
1382
|
|
|
647
1383
|
/**
|
|
648
|
-
*
|
|
1384
|
+
* ListQueryResultsForResourceGroupLevelPolicyAssignmentNext
|
|
1385
|
+
* @param policyStatesResource The virtual resource under PolicyStates resource type. In a given time
|
|
1386
|
+
* range, 'latest' represents the latest policy state(s), whereas 'default' represents all policy
|
|
1387
|
+
* state(s).
|
|
649
1388
|
* @param subscriptionId Microsoft Azure subscription ID.
|
|
650
1389
|
* @param resourceGroupName Resource group name.
|
|
651
|
-
* @param
|
|
652
|
-
* @
|
|
1390
|
+
* @param policyAssignmentName Policy assignment name.
|
|
1391
|
+
* @param nextLink The nextLink from the previous successful call to the
|
|
1392
|
+
* ListQueryResultsForResourceGroupLevelPolicyAssignment method.
|
|
1393
|
+
* @param options The options parameters.
|
|
653
1394
|
*/
|
|
654
|
-
|
|
655
|
-
|
|
1395
|
+
private _listQueryResultsForResourceGroupLevelPolicyAssignmentNext(
|
|
1396
|
+
policyStatesResource: PolicyStatesResource,
|
|
1397
|
+
subscriptionId: string,
|
|
1398
|
+
resourceGroupName: string,
|
|
1399
|
+
policyAssignmentName: string,
|
|
1400
|
+
nextLink: string,
|
|
1401
|
+
options?: PolicyStatesListQueryResultsForResourceGroupLevelPolicyAssignmentNextOptionalParams
|
|
1402
|
+
): Promise<
|
|
1403
|
+
PolicyStatesListQueryResultsForResourceGroupLevelPolicyAssignmentNextResponse
|
|
1404
|
+
> {
|
|
1405
|
+
return this.client.sendOperationRequest(
|
|
656
1406
|
{
|
|
1407
|
+
policyStatesResource,
|
|
657
1408
|
subscriptionId,
|
|
658
1409
|
resourceGroupName,
|
|
1410
|
+
policyAssignmentName,
|
|
1411
|
+
nextLink,
|
|
659
1412
|
options
|
|
660
1413
|
},
|
|
661
|
-
|
|
662
|
-
|
|
1414
|
+
listQueryResultsForResourceGroupLevelPolicyAssignmentNextOperationSpec
|
|
1415
|
+
);
|
|
663
1416
|
}
|
|
664
1417
|
}
|
|
665
|
-
|
|
666
1418
|
// Operation Specifications
|
|
667
|
-
const serializer =
|
|
668
|
-
|
|
1419
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
1420
|
+
|
|
1421
|
+
const listQueryResultsForManagementGroupOperationSpec: coreClient.OperationSpec = {
|
|
1422
|
+
path:
|
|
1423
|
+
"/providers/{managementGroupsNamespace}/managementGroups/{managementGroupName}/providers/Microsoft.PolicyInsights/policyStates/{policyStatesResource}/queryResults",
|
|
669
1424
|
httpMethod: "POST",
|
|
670
|
-
|
|
1425
|
+
responses: {
|
|
1426
|
+
200: {
|
|
1427
|
+
bodyMapper: Mappers.PolicyStatesQueryResults
|
|
1428
|
+
},
|
|
1429
|
+
default: {
|
|
1430
|
+
bodyMapper: Mappers.QueryFailure
|
|
1431
|
+
}
|
|
1432
|
+
},
|
|
1433
|
+
queryParameters: [
|
|
1434
|
+
Parameters.top,
|
|
1435
|
+
Parameters.filter,
|
|
1436
|
+
Parameters.apiVersion2,
|
|
1437
|
+
Parameters.orderBy,
|
|
1438
|
+
Parameters.select,
|
|
1439
|
+
Parameters.fromParam,
|
|
1440
|
+
Parameters.to,
|
|
1441
|
+
Parameters.apply,
|
|
1442
|
+
Parameters.skipToken
|
|
1443
|
+
],
|
|
671
1444
|
urlParameters: [
|
|
672
|
-
Parameters
|
|
1445
|
+
Parameters.$host,
|
|
673
1446
|
Parameters.managementGroupsNamespace,
|
|
674
|
-
Parameters.managementGroupName
|
|
1447
|
+
Parameters.managementGroupName,
|
|
1448
|
+
Parameters.policyStatesResource
|
|
675
1449
|
],
|
|
1450
|
+
headerParameters: [Parameters.accept],
|
|
1451
|
+
serializer
|
|
1452
|
+
};
|
|
1453
|
+
const summarizeForManagementGroupOperationSpec: coreClient.OperationSpec = {
|
|
1454
|
+
path:
|
|
1455
|
+
"/providers/{managementGroupsNamespace}/managementGroups/{managementGroupName}/providers/Microsoft.PolicyInsights/policyStates/{policyStatesSummaryResource}/summarize",
|
|
1456
|
+
httpMethod: "POST",
|
|
1457
|
+
responses: {
|
|
1458
|
+
200: {
|
|
1459
|
+
bodyMapper: Mappers.SummarizeResults
|
|
1460
|
+
},
|
|
1461
|
+
default: {
|
|
1462
|
+
bodyMapper: Mappers.QueryFailure
|
|
1463
|
+
}
|
|
1464
|
+
},
|
|
1465
|
+
queryParameters: [
|
|
1466
|
+
Parameters.top,
|
|
1467
|
+
Parameters.filter,
|
|
1468
|
+
Parameters.apiVersion2,
|
|
1469
|
+
Parameters.fromParam,
|
|
1470
|
+
Parameters.to
|
|
1471
|
+
],
|
|
1472
|
+
urlParameters: [
|
|
1473
|
+
Parameters.$host,
|
|
1474
|
+
Parameters.managementGroupsNamespace,
|
|
1475
|
+
Parameters.managementGroupName,
|
|
1476
|
+
Parameters.policyStatesSummaryResource
|
|
1477
|
+
],
|
|
1478
|
+
headerParameters: [Parameters.accept],
|
|
1479
|
+
serializer
|
|
1480
|
+
};
|
|
1481
|
+
const listQueryResultsForSubscriptionOperationSpec: coreClient.OperationSpec = {
|
|
1482
|
+
path:
|
|
1483
|
+
"/subscriptions/{subscriptionId}/providers/Microsoft.PolicyInsights/policyStates/{policyStatesResource}/queryResults",
|
|
1484
|
+
httpMethod: "POST",
|
|
1485
|
+
responses: {
|
|
1486
|
+
200: {
|
|
1487
|
+
bodyMapper: Mappers.PolicyStatesQueryResults
|
|
1488
|
+
},
|
|
1489
|
+
default: {
|
|
1490
|
+
bodyMapper: Mappers.QueryFailure
|
|
1491
|
+
}
|
|
1492
|
+
},
|
|
676
1493
|
queryParameters: [
|
|
677
|
-
Parameters.apiVersion3,
|
|
678
1494
|
Parameters.top,
|
|
1495
|
+
Parameters.filter,
|
|
1496
|
+
Parameters.apiVersion2,
|
|
679
1497
|
Parameters.orderBy,
|
|
680
1498
|
Parameters.select,
|
|
681
|
-
Parameters.
|
|
1499
|
+
Parameters.fromParam,
|
|
682
1500
|
Parameters.to,
|
|
1501
|
+
Parameters.apply,
|
|
1502
|
+
Parameters.skipToken
|
|
1503
|
+
],
|
|
1504
|
+
urlParameters: [
|
|
1505
|
+
Parameters.$host,
|
|
1506
|
+
Parameters.subscriptionId1,
|
|
1507
|
+
Parameters.policyStatesResource
|
|
1508
|
+
],
|
|
1509
|
+
headerParameters: [Parameters.accept],
|
|
1510
|
+
serializer
|
|
1511
|
+
};
|
|
1512
|
+
const summarizeForSubscriptionOperationSpec: coreClient.OperationSpec = {
|
|
1513
|
+
path:
|
|
1514
|
+
"/subscriptions/{subscriptionId}/providers/Microsoft.PolicyInsights/policyStates/{policyStatesSummaryResource}/summarize",
|
|
1515
|
+
httpMethod: "POST",
|
|
1516
|
+
responses: {
|
|
1517
|
+
200: {
|
|
1518
|
+
bodyMapper: Mappers.SummarizeResults
|
|
1519
|
+
},
|
|
1520
|
+
default: {
|
|
1521
|
+
bodyMapper: Mappers.QueryFailure
|
|
1522
|
+
}
|
|
1523
|
+
},
|
|
1524
|
+
queryParameters: [
|
|
1525
|
+
Parameters.top,
|
|
683
1526
|
Parameters.filter,
|
|
684
|
-
Parameters.
|
|
1527
|
+
Parameters.apiVersion2,
|
|
1528
|
+
Parameters.fromParam,
|
|
1529
|
+
Parameters.to
|
|
685
1530
|
],
|
|
686
|
-
|
|
687
|
-
Parameters
|
|
1531
|
+
urlParameters: [
|
|
1532
|
+
Parameters.$host,
|
|
1533
|
+
Parameters.subscriptionId1,
|
|
1534
|
+
Parameters.policyStatesSummaryResource
|
|
688
1535
|
],
|
|
1536
|
+
headerParameters: [Parameters.accept],
|
|
1537
|
+
serializer
|
|
1538
|
+
};
|
|
1539
|
+
const listQueryResultsForResourceGroupOperationSpec: coreClient.OperationSpec = {
|
|
1540
|
+
path:
|
|
1541
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.PolicyInsights/policyStates/{policyStatesResource}/queryResults",
|
|
1542
|
+
httpMethod: "POST",
|
|
689
1543
|
responses: {
|
|
690
1544
|
200: {
|
|
691
1545
|
bodyMapper: Mappers.PolicyStatesQueryResults
|
|
@@ -694,27 +1548,190 @@ const listQueryResultsForManagementGroupOperationSpec: msRest.OperationSpec = {
|
|
|
694
1548
|
bodyMapper: Mappers.QueryFailure
|
|
695
1549
|
}
|
|
696
1550
|
},
|
|
1551
|
+
queryParameters: [
|
|
1552
|
+
Parameters.top,
|
|
1553
|
+
Parameters.filter,
|
|
1554
|
+
Parameters.apiVersion2,
|
|
1555
|
+
Parameters.orderBy,
|
|
1556
|
+
Parameters.select,
|
|
1557
|
+
Parameters.fromParam,
|
|
1558
|
+
Parameters.to,
|
|
1559
|
+
Parameters.apply,
|
|
1560
|
+
Parameters.skipToken
|
|
1561
|
+
],
|
|
1562
|
+
urlParameters: [
|
|
1563
|
+
Parameters.$host,
|
|
1564
|
+
Parameters.resourceGroupName,
|
|
1565
|
+
Parameters.subscriptionId1,
|
|
1566
|
+
Parameters.policyStatesResource
|
|
1567
|
+
],
|
|
1568
|
+
headerParameters: [Parameters.accept],
|
|
697
1569
|
serializer
|
|
698
1570
|
};
|
|
699
|
-
|
|
700
|
-
|
|
1571
|
+
const summarizeForResourceGroupOperationSpec: coreClient.OperationSpec = {
|
|
1572
|
+
path:
|
|
1573
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.PolicyInsights/policyStates/{policyStatesSummaryResource}/summarize",
|
|
701
1574
|
httpMethod: "POST",
|
|
702
|
-
|
|
1575
|
+
responses: {
|
|
1576
|
+
200: {
|
|
1577
|
+
bodyMapper: Mappers.SummarizeResults
|
|
1578
|
+
},
|
|
1579
|
+
default: {
|
|
1580
|
+
bodyMapper: Mappers.QueryFailure
|
|
1581
|
+
}
|
|
1582
|
+
},
|
|
1583
|
+
queryParameters: [
|
|
1584
|
+
Parameters.top,
|
|
1585
|
+
Parameters.filter,
|
|
1586
|
+
Parameters.apiVersion2,
|
|
1587
|
+
Parameters.fromParam,
|
|
1588
|
+
Parameters.to
|
|
1589
|
+
],
|
|
703
1590
|
urlParameters: [
|
|
704
|
-
Parameters
|
|
705
|
-
Parameters.
|
|
706
|
-
Parameters.
|
|
1591
|
+
Parameters.$host,
|
|
1592
|
+
Parameters.resourceGroupName,
|
|
1593
|
+
Parameters.subscriptionId1,
|
|
1594
|
+
Parameters.policyStatesSummaryResource
|
|
1595
|
+
],
|
|
1596
|
+
headerParameters: [Parameters.accept],
|
|
1597
|
+
serializer
|
|
1598
|
+
};
|
|
1599
|
+
const listQueryResultsForResourceOperationSpec: coreClient.OperationSpec = {
|
|
1600
|
+
path:
|
|
1601
|
+
"/{resourceId}/providers/Microsoft.PolicyInsights/policyStates/{policyStatesResource}/queryResults",
|
|
1602
|
+
httpMethod: "POST",
|
|
1603
|
+
responses: {
|
|
1604
|
+
200: {
|
|
1605
|
+
bodyMapper: Mappers.PolicyStatesQueryResults
|
|
1606
|
+
},
|
|
1607
|
+
default: {
|
|
1608
|
+
bodyMapper: Mappers.QueryFailure
|
|
1609
|
+
}
|
|
1610
|
+
},
|
|
1611
|
+
queryParameters: [
|
|
1612
|
+
Parameters.top,
|
|
1613
|
+
Parameters.filter,
|
|
1614
|
+
Parameters.apiVersion2,
|
|
1615
|
+
Parameters.orderBy,
|
|
1616
|
+
Parameters.select,
|
|
1617
|
+
Parameters.fromParam,
|
|
1618
|
+
Parameters.to,
|
|
1619
|
+
Parameters.apply,
|
|
1620
|
+
Parameters.skipToken,
|
|
1621
|
+
Parameters.expand
|
|
1622
|
+
],
|
|
1623
|
+
urlParameters: [
|
|
1624
|
+
Parameters.$host,
|
|
1625
|
+
Parameters.resourceId,
|
|
1626
|
+
Parameters.policyStatesResource
|
|
707
1627
|
],
|
|
1628
|
+
headerParameters: [Parameters.accept],
|
|
1629
|
+
serializer
|
|
1630
|
+
};
|
|
1631
|
+
const summarizeForResourceOperationSpec: coreClient.OperationSpec = {
|
|
1632
|
+
path:
|
|
1633
|
+
"/{resourceId}/providers/Microsoft.PolicyInsights/policyStates/{policyStatesSummaryResource}/summarize",
|
|
1634
|
+
httpMethod: "POST",
|
|
1635
|
+
responses: {
|
|
1636
|
+
200: {
|
|
1637
|
+
bodyMapper: Mappers.SummarizeResults
|
|
1638
|
+
},
|
|
1639
|
+
default: {
|
|
1640
|
+
bodyMapper: Mappers.QueryFailure
|
|
1641
|
+
}
|
|
1642
|
+
},
|
|
708
1643
|
queryParameters: [
|
|
709
|
-
Parameters.apiVersion3,
|
|
710
1644
|
Parameters.top,
|
|
711
|
-
Parameters.
|
|
1645
|
+
Parameters.filter,
|
|
1646
|
+
Parameters.apiVersion2,
|
|
1647
|
+
Parameters.fromParam,
|
|
1648
|
+
Parameters.to
|
|
1649
|
+
],
|
|
1650
|
+
urlParameters: [
|
|
1651
|
+
Parameters.$host,
|
|
1652
|
+
Parameters.resourceId,
|
|
1653
|
+
Parameters.policyStatesSummaryResource
|
|
1654
|
+
],
|
|
1655
|
+
headerParameters: [Parameters.accept],
|
|
1656
|
+
serializer
|
|
1657
|
+
};
|
|
1658
|
+
const triggerSubscriptionEvaluationOperationSpec: coreClient.OperationSpec = {
|
|
1659
|
+
path:
|
|
1660
|
+
"/subscriptions/{subscriptionId}/providers/Microsoft.PolicyInsights/policyStates/latest/triggerEvaluation",
|
|
1661
|
+
httpMethod: "POST",
|
|
1662
|
+
responses: {
|
|
1663
|
+
200: {},
|
|
1664
|
+
201: {},
|
|
1665
|
+
202: {},
|
|
1666
|
+
204: {},
|
|
1667
|
+
default: {
|
|
1668
|
+
bodyMapper: Mappers.QueryFailure
|
|
1669
|
+
}
|
|
1670
|
+
},
|
|
1671
|
+
queryParameters: [Parameters.apiVersion2],
|
|
1672
|
+
urlParameters: [Parameters.$host, Parameters.subscriptionId1],
|
|
1673
|
+
headerParameters: [Parameters.accept],
|
|
1674
|
+
serializer
|
|
1675
|
+
};
|
|
1676
|
+
const triggerResourceGroupEvaluationOperationSpec: coreClient.OperationSpec = {
|
|
1677
|
+
path:
|
|
1678
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.PolicyInsights/policyStates/latest/triggerEvaluation",
|
|
1679
|
+
httpMethod: "POST",
|
|
1680
|
+
responses: {
|
|
1681
|
+
200: {},
|
|
1682
|
+
201: {},
|
|
1683
|
+
202: {},
|
|
1684
|
+
204: {},
|
|
1685
|
+
default: {
|
|
1686
|
+
bodyMapper: Mappers.QueryFailure
|
|
1687
|
+
}
|
|
1688
|
+
},
|
|
1689
|
+
queryParameters: [Parameters.apiVersion2],
|
|
1690
|
+
urlParameters: [
|
|
1691
|
+
Parameters.$host,
|
|
1692
|
+
Parameters.resourceGroupName,
|
|
1693
|
+
Parameters.subscriptionId1
|
|
1694
|
+
],
|
|
1695
|
+
headerParameters: [Parameters.accept],
|
|
1696
|
+
serializer
|
|
1697
|
+
};
|
|
1698
|
+
const listQueryResultsForPolicySetDefinitionOperationSpec: coreClient.OperationSpec = {
|
|
1699
|
+
path:
|
|
1700
|
+
"/subscriptions/{subscriptionId}/providers/{authorizationNamespace}/policySetDefinitions/{policySetDefinitionName}/providers/Microsoft.PolicyInsights/policyStates/{policyStatesResource}/queryResults",
|
|
1701
|
+
httpMethod: "POST",
|
|
1702
|
+
responses: {
|
|
1703
|
+
200: {
|
|
1704
|
+
bodyMapper: Mappers.PolicyStatesQueryResults
|
|
1705
|
+
},
|
|
1706
|
+
default: {
|
|
1707
|
+
bodyMapper: Mappers.QueryFailure
|
|
1708
|
+
}
|
|
1709
|
+
},
|
|
1710
|
+
queryParameters: [
|
|
1711
|
+
Parameters.top,
|
|
1712
|
+
Parameters.filter,
|
|
1713
|
+
Parameters.apiVersion2,
|
|
1714
|
+
Parameters.orderBy,
|
|
1715
|
+
Parameters.select,
|
|
1716
|
+
Parameters.fromParam,
|
|
712
1717
|
Parameters.to,
|
|
713
|
-
Parameters.
|
|
1718
|
+
Parameters.apply,
|
|
1719
|
+
Parameters.skipToken
|
|
714
1720
|
],
|
|
715
|
-
|
|
716
|
-
Parameters
|
|
1721
|
+
urlParameters: [
|
|
1722
|
+
Parameters.$host,
|
|
1723
|
+
Parameters.subscriptionId1,
|
|
1724
|
+
Parameters.authorizationNamespace,
|
|
1725
|
+
Parameters.policySetDefinitionName,
|
|
1726
|
+
Parameters.policyStatesResource
|
|
717
1727
|
],
|
|
1728
|
+
headerParameters: [Parameters.accept],
|
|
1729
|
+
serializer
|
|
1730
|
+
};
|
|
1731
|
+
const summarizeForPolicySetDefinitionOperationSpec: coreClient.OperationSpec = {
|
|
1732
|
+
path:
|
|
1733
|
+
"/subscriptions/{subscriptionId}/providers/{authorizationNamespace}/policySetDefinitions/{policySetDefinitionName}/providers/Microsoft.PolicyInsights/policyStates/{policyStatesSummaryResource}/summarize",
|
|
1734
|
+
httpMethod: "POST",
|
|
718
1735
|
responses: {
|
|
719
1736
|
200: {
|
|
720
1737
|
bodyMapper: Mappers.SummarizeResults
|
|
@@ -723,29 +1740,27 @@ const summarizeForManagementGroupOperationSpec: msRest.OperationSpec = {
|
|
|
723
1740
|
bodyMapper: Mappers.QueryFailure
|
|
724
1741
|
}
|
|
725
1742
|
},
|
|
726
|
-
serializer
|
|
727
|
-
};
|
|
728
|
-
|
|
729
|
-
const listQueryResultsForSubscriptionOperationSpec: msRest.OperationSpec = {
|
|
730
|
-
httpMethod: "POST",
|
|
731
|
-
path: "subscriptions/{subscriptionId}/providers/Microsoft.PolicyInsights/policyStates/{policyStatesResource}/queryResults",
|
|
732
|
-
urlParameters: [
|
|
733
|
-
Parameters.policyStatesResource,
|
|
734
|
-
Parameters.subscriptionId
|
|
735
|
-
],
|
|
736
1743
|
queryParameters: [
|
|
737
|
-
Parameters.apiVersion3,
|
|
738
1744
|
Parameters.top,
|
|
739
|
-
Parameters.orderBy,
|
|
740
|
-
Parameters.select,
|
|
741
|
-
Parameters.from,
|
|
742
|
-
Parameters.to,
|
|
743
1745
|
Parameters.filter,
|
|
744
|
-
Parameters.
|
|
1746
|
+
Parameters.apiVersion2,
|
|
1747
|
+
Parameters.fromParam,
|
|
1748
|
+
Parameters.to
|
|
745
1749
|
],
|
|
746
|
-
|
|
747
|
-
Parameters
|
|
1750
|
+
urlParameters: [
|
|
1751
|
+
Parameters.$host,
|
|
1752
|
+
Parameters.subscriptionId1,
|
|
1753
|
+
Parameters.authorizationNamespace,
|
|
1754
|
+
Parameters.policySetDefinitionName,
|
|
1755
|
+
Parameters.policyStatesSummaryResource
|
|
748
1756
|
],
|
|
1757
|
+
headerParameters: [Parameters.accept],
|
|
1758
|
+
serializer
|
|
1759
|
+
};
|
|
1760
|
+
const listQueryResultsForPolicyDefinitionOperationSpec: coreClient.OperationSpec = {
|
|
1761
|
+
path:
|
|
1762
|
+
"/subscriptions/{subscriptionId}/providers/{authorizationNamespace}/policyDefinitions/{policyDefinitionName}/providers/Microsoft.PolicyInsights/policyStates/{policyStatesResource}/queryResults",
|
|
1763
|
+
httpMethod: "POST",
|
|
749
1764
|
responses: {
|
|
750
1765
|
200: {
|
|
751
1766
|
bodyMapper: Mappers.PolicyStatesQueryResults
|
|
@@ -754,26 +1769,31 @@ const listQueryResultsForSubscriptionOperationSpec: msRest.OperationSpec = {
|
|
|
754
1769
|
bodyMapper: Mappers.QueryFailure
|
|
755
1770
|
}
|
|
756
1771
|
},
|
|
757
|
-
serializer
|
|
758
|
-
};
|
|
759
|
-
|
|
760
|
-
const summarizeForSubscriptionOperationSpec: msRest.OperationSpec = {
|
|
761
|
-
httpMethod: "POST",
|
|
762
|
-
path: "subscriptions/{subscriptionId}/providers/Microsoft.PolicyInsights/policyStates/{policyStatesSummaryResource}/summarize",
|
|
763
|
-
urlParameters: [
|
|
764
|
-
Parameters.policyStatesSummaryResource,
|
|
765
|
-
Parameters.subscriptionId
|
|
766
|
-
],
|
|
767
1772
|
queryParameters: [
|
|
768
|
-
Parameters.apiVersion3,
|
|
769
1773
|
Parameters.top,
|
|
770
|
-
Parameters.
|
|
1774
|
+
Parameters.filter,
|
|
1775
|
+
Parameters.apiVersion2,
|
|
1776
|
+
Parameters.orderBy,
|
|
1777
|
+
Parameters.select,
|
|
1778
|
+
Parameters.fromParam,
|
|
771
1779
|
Parameters.to,
|
|
772
|
-
Parameters.
|
|
1780
|
+
Parameters.apply,
|
|
1781
|
+
Parameters.skipToken
|
|
773
1782
|
],
|
|
774
|
-
|
|
775
|
-
Parameters
|
|
1783
|
+
urlParameters: [
|
|
1784
|
+
Parameters.$host,
|
|
1785
|
+
Parameters.subscriptionId1,
|
|
1786
|
+
Parameters.authorizationNamespace,
|
|
1787
|
+
Parameters.policyDefinitionName,
|
|
1788
|
+
Parameters.policyStatesResource
|
|
776
1789
|
],
|
|
1790
|
+
headerParameters: [Parameters.accept],
|
|
1791
|
+
serializer
|
|
1792
|
+
};
|
|
1793
|
+
const summarizeForPolicyDefinitionOperationSpec: coreClient.OperationSpec = {
|
|
1794
|
+
path:
|
|
1795
|
+
"/subscriptions/{subscriptionId}/providers/{authorizationNamespace}/policyDefinitions/{policyDefinitionName}/providers/Microsoft.PolicyInsights/policyStates/{policyStatesSummaryResource}/summarize",
|
|
1796
|
+
httpMethod: "POST",
|
|
777
1797
|
responses: {
|
|
778
1798
|
200: {
|
|
779
1799
|
bodyMapper: Mappers.SummarizeResults
|
|
@@ -782,30 +1802,27 @@ const summarizeForSubscriptionOperationSpec: msRest.OperationSpec = {
|
|
|
782
1802
|
bodyMapper: Mappers.QueryFailure
|
|
783
1803
|
}
|
|
784
1804
|
},
|
|
785
|
-
serializer
|
|
786
|
-
};
|
|
787
|
-
|
|
788
|
-
const listQueryResultsForResourceGroupOperationSpec: msRest.OperationSpec = {
|
|
789
|
-
httpMethod: "POST",
|
|
790
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.PolicyInsights/policyStates/{policyStatesResource}/queryResults",
|
|
791
|
-
urlParameters: [
|
|
792
|
-
Parameters.policyStatesResource,
|
|
793
|
-
Parameters.subscriptionId,
|
|
794
|
-
Parameters.resourceGroupName
|
|
795
|
-
],
|
|
796
1805
|
queryParameters: [
|
|
797
|
-
Parameters.apiVersion3,
|
|
798
1806
|
Parameters.top,
|
|
799
|
-
Parameters.orderBy,
|
|
800
|
-
Parameters.select,
|
|
801
|
-
Parameters.from,
|
|
802
|
-
Parameters.to,
|
|
803
1807
|
Parameters.filter,
|
|
804
|
-
Parameters.
|
|
1808
|
+
Parameters.apiVersion2,
|
|
1809
|
+
Parameters.fromParam,
|
|
1810
|
+
Parameters.to
|
|
805
1811
|
],
|
|
806
|
-
|
|
807
|
-
Parameters
|
|
1812
|
+
urlParameters: [
|
|
1813
|
+
Parameters.$host,
|
|
1814
|
+
Parameters.subscriptionId1,
|
|
1815
|
+
Parameters.authorizationNamespace,
|
|
1816
|
+
Parameters.policyDefinitionName,
|
|
1817
|
+
Parameters.policyStatesSummaryResource
|
|
808
1818
|
],
|
|
1819
|
+
headerParameters: [Parameters.accept],
|
|
1820
|
+
serializer
|
|
1821
|
+
};
|
|
1822
|
+
const listQueryResultsForSubscriptionLevelPolicyAssignmentOperationSpec: coreClient.OperationSpec = {
|
|
1823
|
+
path:
|
|
1824
|
+
"/subscriptions/{subscriptionId}/providers/{authorizationNamespace}/policyAssignments/{policyAssignmentName}/providers/Microsoft.PolicyInsights/policyStates/{policyStatesResource}/queryResults",
|
|
1825
|
+
httpMethod: "POST",
|
|
809
1826
|
responses: {
|
|
810
1827
|
200: {
|
|
811
1828
|
bodyMapper: Mappers.PolicyStatesQueryResults
|
|
@@ -814,27 +1831,31 @@ const listQueryResultsForResourceGroupOperationSpec: msRest.OperationSpec = {
|
|
|
814
1831
|
bodyMapper: Mappers.QueryFailure
|
|
815
1832
|
}
|
|
816
1833
|
},
|
|
817
|
-
serializer
|
|
818
|
-
};
|
|
819
|
-
|
|
820
|
-
const summarizeForResourceGroupOperationSpec: msRest.OperationSpec = {
|
|
821
|
-
httpMethod: "POST",
|
|
822
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.PolicyInsights/policyStates/{policyStatesSummaryResource}/summarize",
|
|
823
|
-
urlParameters: [
|
|
824
|
-
Parameters.policyStatesSummaryResource,
|
|
825
|
-
Parameters.subscriptionId,
|
|
826
|
-
Parameters.resourceGroupName
|
|
827
|
-
],
|
|
828
1834
|
queryParameters: [
|
|
829
|
-
Parameters.apiVersion3,
|
|
830
1835
|
Parameters.top,
|
|
831
|
-
Parameters.
|
|
1836
|
+
Parameters.filter,
|
|
1837
|
+
Parameters.apiVersion2,
|
|
1838
|
+
Parameters.orderBy,
|
|
1839
|
+
Parameters.select,
|
|
1840
|
+
Parameters.fromParam,
|
|
832
1841
|
Parameters.to,
|
|
833
|
-
Parameters.
|
|
1842
|
+
Parameters.apply,
|
|
1843
|
+
Parameters.skipToken
|
|
834
1844
|
],
|
|
835
|
-
|
|
836
|
-
Parameters
|
|
1845
|
+
urlParameters: [
|
|
1846
|
+
Parameters.$host,
|
|
1847
|
+
Parameters.subscriptionId1,
|
|
1848
|
+
Parameters.authorizationNamespace,
|
|
1849
|
+
Parameters.policyAssignmentName,
|
|
1850
|
+
Parameters.policyStatesResource
|
|
837
1851
|
],
|
|
1852
|
+
headerParameters: [Parameters.accept],
|
|
1853
|
+
serializer
|
|
1854
|
+
};
|
|
1855
|
+
const summarizeForSubscriptionLevelPolicyAssignmentOperationSpec: coreClient.OperationSpec = {
|
|
1856
|
+
path:
|
|
1857
|
+
"/subscriptions/{subscriptionId}/providers/{authorizationNamespace}/policyAssignments/{policyAssignmentName}/providers/Microsoft.PolicyInsights/policyStates/{policyStatesSummaryResource}/summarize",
|
|
1858
|
+
httpMethod: "POST",
|
|
838
1859
|
responses: {
|
|
839
1860
|
200: {
|
|
840
1861
|
bodyMapper: Mappers.SummarizeResults
|
|
@@ -843,30 +1864,27 @@ const summarizeForResourceGroupOperationSpec: msRest.OperationSpec = {
|
|
|
843
1864
|
bodyMapper: Mappers.QueryFailure
|
|
844
1865
|
}
|
|
845
1866
|
},
|
|
846
|
-
serializer
|
|
847
|
-
};
|
|
848
|
-
|
|
849
|
-
const listQueryResultsForResourceOperationSpec: msRest.OperationSpec = {
|
|
850
|
-
httpMethod: "POST",
|
|
851
|
-
path: "{resourceId}/providers/Microsoft.PolicyInsights/policyStates/{policyStatesResource}/queryResults",
|
|
852
|
-
urlParameters: [
|
|
853
|
-
Parameters.policyStatesResource,
|
|
854
|
-
Parameters.resourceId
|
|
855
|
-
],
|
|
856
1867
|
queryParameters: [
|
|
857
|
-
Parameters.apiVersion3,
|
|
858
1868
|
Parameters.top,
|
|
859
|
-
Parameters.orderBy,
|
|
860
|
-
Parameters.select,
|
|
861
|
-
Parameters.from,
|
|
862
|
-
Parameters.to,
|
|
863
1869
|
Parameters.filter,
|
|
864
|
-
Parameters.
|
|
865
|
-
Parameters.
|
|
1870
|
+
Parameters.apiVersion2,
|
|
1871
|
+
Parameters.fromParam,
|
|
1872
|
+
Parameters.to
|
|
866
1873
|
],
|
|
867
|
-
|
|
868
|
-
Parameters
|
|
1874
|
+
urlParameters: [
|
|
1875
|
+
Parameters.$host,
|
|
1876
|
+
Parameters.subscriptionId1,
|
|
1877
|
+
Parameters.authorizationNamespace,
|
|
1878
|
+
Parameters.policyAssignmentName,
|
|
1879
|
+
Parameters.policyStatesSummaryResource
|
|
869
1880
|
],
|
|
1881
|
+
headerParameters: [Parameters.accept],
|
|
1882
|
+
serializer
|
|
1883
|
+
};
|
|
1884
|
+
const listQueryResultsForResourceGroupLevelPolicyAssignmentOperationSpec: coreClient.OperationSpec = {
|
|
1885
|
+
path:
|
|
1886
|
+
"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{authorizationNamespace}/policyAssignments/{policyAssignmentName}/providers/Microsoft.PolicyInsights/policyStates/{policyStatesResource}/queryResults",
|
|
1887
|
+
httpMethod: "POST",
|
|
870
1888
|
responses: {
|
|
871
1889
|
200: {
|
|
872
1890
|
bodyMapper: Mappers.PolicyStatesQueryResults
|
|
@@ -875,26 +1893,32 @@ const listQueryResultsForResourceOperationSpec: msRest.OperationSpec = {
|
|
|
875
1893
|
bodyMapper: Mappers.QueryFailure
|
|
876
1894
|
}
|
|
877
1895
|
},
|
|
878
|
-
serializer
|
|
879
|
-
};
|
|
880
|
-
|
|
881
|
-
const summarizeForResourceOperationSpec: msRest.OperationSpec = {
|
|
882
|
-
httpMethod: "POST",
|
|
883
|
-
path: "{resourceId}/providers/Microsoft.PolicyInsights/policyStates/{policyStatesSummaryResource}/summarize",
|
|
884
|
-
urlParameters: [
|
|
885
|
-
Parameters.policyStatesSummaryResource,
|
|
886
|
-
Parameters.resourceId
|
|
887
|
-
],
|
|
888
1896
|
queryParameters: [
|
|
889
|
-
Parameters.apiVersion3,
|
|
890
1897
|
Parameters.top,
|
|
891
|
-
Parameters.
|
|
1898
|
+
Parameters.filter,
|
|
1899
|
+
Parameters.apiVersion2,
|
|
1900
|
+
Parameters.orderBy,
|
|
1901
|
+
Parameters.select,
|
|
1902
|
+
Parameters.fromParam,
|
|
892
1903
|
Parameters.to,
|
|
893
|
-
Parameters.
|
|
1904
|
+
Parameters.apply,
|
|
1905
|
+
Parameters.skipToken
|
|
894
1906
|
],
|
|
895
|
-
|
|
896
|
-
Parameters
|
|
1907
|
+
urlParameters: [
|
|
1908
|
+
Parameters.$host,
|
|
1909
|
+
Parameters.resourceGroupName,
|
|
1910
|
+
Parameters.subscriptionId1,
|
|
1911
|
+
Parameters.authorizationNamespace,
|
|
1912
|
+
Parameters.policyAssignmentName,
|
|
1913
|
+
Parameters.policyStatesResource
|
|
897
1914
|
],
|
|
1915
|
+
headerParameters: [Parameters.accept],
|
|
1916
|
+
serializer
|
|
1917
|
+
};
|
|
1918
|
+
const summarizeForResourceGroupLevelPolicyAssignmentOperationSpec: coreClient.OperationSpec = {
|
|
1919
|
+
path:
|
|
1920
|
+
"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{authorizationNamespace}/policyAssignments/{policyAssignmentName}/providers/Microsoft.PolicyInsights/policyStates/{policyStatesSummaryResource}/summarize",
|
|
1921
|
+
httpMethod: "POST",
|
|
898
1922
|
responses: {
|
|
899
1923
|
200: {
|
|
900
1924
|
bodyMapper: Mappers.SummarizeResults
|
|
@@ -903,31 +1927,27 @@ const summarizeForResourceOperationSpec: msRest.OperationSpec = {
|
|
|
903
1927
|
bodyMapper: Mappers.QueryFailure
|
|
904
1928
|
}
|
|
905
1929
|
},
|
|
906
|
-
serializer
|
|
907
|
-
};
|
|
908
|
-
|
|
909
|
-
const listQueryResultsForPolicySetDefinitionOperationSpec: msRest.OperationSpec = {
|
|
910
|
-
httpMethod: "POST",
|
|
911
|
-
path: "subscriptions/{subscriptionId}/providers/{authorizationNamespace}/policySetDefinitions/{policySetDefinitionName}/providers/Microsoft.PolicyInsights/policyStates/{policyStatesResource}/queryResults",
|
|
912
|
-
urlParameters: [
|
|
913
|
-
Parameters.policyStatesResource,
|
|
914
|
-
Parameters.subscriptionId,
|
|
915
|
-
Parameters.authorizationNamespace,
|
|
916
|
-
Parameters.policySetDefinitionName
|
|
917
|
-
],
|
|
918
1930
|
queryParameters: [
|
|
919
|
-
Parameters.apiVersion3,
|
|
920
1931
|
Parameters.top,
|
|
921
|
-
Parameters.orderBy,
|
|
922
|
-
Parameters.select,
|
|
923
|
-
Parameters.from,
|
|
924
|
-
Parameters.to,
|
|
925
1932
|
Parameters.filter,
|
|
926
|
-
Parameters.
|
|
1933
|
+
Parameters.apiVersion2,
|
|
1934
|
+
Parameters.fromParam,
|
|
1935
|
+
Parameters.to
|
|
927
1936
|
],
|
|
928
|
-
|
|
929
|
-
Parameters
|
|
1937
|
+
urlParameters: [
|
|
1938
|
+
Parameters.$host,
|
|
1939
|
+
Parameters.resourceGroupName,
|
|
1940
|
+
Parameters.subscriptionId1,
|
|
1941
|
+
Parameters.authorizationNamespace,
|
|
1942
|
+
Parameters.policyAssignmentName,
|
|
1943
|
+
Parameters.policyStatesSummaryResource
|
|
930
1944
|
],
|
|
1945
|
+
headerParameters: [Parameters.accept],
|
|
1946
|
+
serializer
|
|
1947
|
+
};
|
|
1948
|
+
const listQueryResultsForManagementGroupNextOperationSpec: coreClient.OperationSpec = {
|
|
1949
|
+
path: "{nextLink}",
|
|
1950
|
+
httpMethod: "GET",
|
|
931
1951
|
responses: {
|
|
932
1952
|
200: {
|
|
933
1953
|
bodyMapper: Mappers.PolicyStatesQueryResults
|
|
@@ -936,61 +1956,61 @@ const listQueryResultsForPolicySetDefinitionOperationSpec: msRest.OperationSpec
|
|
|
936
1956
|
bodyMapper: Mappers.QueryFailure
|
|
937
1957
|
}
|
|
938
1958
|
},
|
|
939
|
-
serializer
|
|
940
|
-
};
|
|
941
|
-
|
|
942
|
-
const summarizeForPolicySetDefinitionOperationSpec: msRest.OperationSpec = {
|
|
943
|
-
httpMethod: "POST",
|
|
944
|
-
path: "subscriptions/{subscriptionId}/providers/{authorizationNamespace}/policySetDefinitions/{policySetDefinitionName}/providers/Microsoft.PolicyInsights/policyStates/{policyStatesSummaryResource}/summarize",
|
|
945
|
-
urlParameters: [
|
|
946
|
-
Parameters.policyStatesSummaryResource,
|
|
947
|
-
Parameters.subscriptionId,
|
|
948
|
-
Parameters.authorizationNamespace,
|
|
949
|
-
Parameters.policySetDefinitionName
|
|
950
|
-
],
|
|
951
1959
|
queryParameters: [
|
|
952
|
-
Parameters.apiVersion3,
|
|
953
1960
|
Parameters.top,
|
|
954
|
-
Parameters.
|
|
1961
|
+
Parameters.filter,
|
|
1962
|
+
Parameters.apiVersion2,
|
|
1963
|
+
Parameters.orderBy,
|
|
1964
|
+
Parameters.select,
|
|
1965
|
+
Parameters.fromParam,
|
|
955
1966
|
Parameters.to,
|
|
956
|
-
Parameters.
|
|
1967
|
+
Parameters.apply,
|
|
1968
|
+
Parameters.skipToken
|
|
957
1969
|
],
|
|
958
|
-
|
|
959
|
-
Parameters
|
|
1970
|
+
urlParameters: [
|
|
1971
|
+
Parameters.$host,
|
|
1972
|
+
Parameters.managementGroupsNamespace,
|
|
1973
|
+
Parameters.managementGroupName,
|
|
1974
|
+
Parameters.nextLink,
|
|
1975
|
+
Parameters.policyStatesResource
|
|
960
1976
|
],
|
|
1977
|
+
headerParameters: [Parameters.accept],
|
|
1978
|
+
serializer
|
|
1979
|
+
};
|
|
1980
|
+
const listQueryResultsForSubscriptionNextOperationSpec: coreClient.OperationSpec = {
|
|
1981
|
+
path: "{nextLink}",
|
|
1982
|
+
httpMethod: "GET",
|
|
961
1983
|
responses: {
|
|
962
1984
|
200: {
|
|
963
|
-
bodyMapper: Mappers.
|
|
1985
|
+
bodyMapper: Mappers.PolicyStatesQueryResults
|
|
964
1986
|
},
|
|
965
1987
|
default: {
|
|
966
1988
|
bodyMapper: Mappers.QueryFailure
|
|
967
1989
|
}
|
|
968
1990
|
},
|
|
969
|
-
serializer
|
|
970
|
-
};
|
|
971
|
-
|
|
972
|
-
const listQueryResultsForPolicyDefinitionOperationSpec: msRest.OperationSpec = {
|
|
973
|
-
httpMethod: "POST",
|
|
974
|
-
path: "subscriptions/{subscriptionId}/providers/{authorizationNamespace}/policyDefinitions/{policyDefinitionName}/providers/Microsoft.PolicyInsights/policyStates/{policyStatesResource}/queryResults",
|
|
975
|
-
urlParameters: [
|
|
976
|
-
Parameters.policyStatesResource,
|
|
977
|
-
Parameters.subscriptionId,
|
|
978
|
-
Parameters.authorizationNamespace,
|
|
979
|
-
Parameters.policyDefinitionName
|
|
980
|
-
],
|
|
981
1991
|
queryParameters: [
|
|
982
|
-
Parameters.apiVersion3,
|
|
983
1992
|
Parameters.top,
|
|
1993
|
+
Parameters.filter,
|
|
1994
|
+
Parameters.apiVersion2,
|
|
984
1995
|
Parameters.orderBy,
|
|
985
1996
|
Parameters.select,
|
|
986
|
-
Parameters.
|
|
1997
|
+
Parameters.fromParam,
|
|
987
1998
|
Parameters.to,
|
|
988
|
-
Parameters.
|
|
989
|
-
Parameters.
|
|
1999
|
+
Parameters.apply,
|
|
2000
|
+
Parameters.skipToken
|
|
990
2001
|
],
|
|
991
|
-
|
|
992
|
-
Parameters
|
|
2002
|
+
urlParameters: [
|
|
2003
|
+
Parameters.$host,
|
|
2004
|
+
Parameters.nextLink,
|
|
2005
|
+
Parameters.subscriptionId1,
|
|
2006
|
+
Parameters.policyStatesResource
|
|
993
2007
|
],
|
|
2008
|
+
headerParameters: [Parameters.accept],
|
|
2009
|
+
serializer
|
|
2010
|
+
};
|
|
2011
|
+
const listQueryResultsForResourceGroupNextOperationSpec: coreClient.OperationSpec = {
|
|
2012
|
+
path: "{nextLink}",
|
|
2013
|
+
httpMethod: "GET",
|
|
994
2014
|
responses: {
|
|
995
2015
|
200: {
|
|
996
2016
|
bodyMapper: Mappers.PolicyStatesQueryResults
|
|
@@ -999,61 +2019,62 @@ const listQueryResultsForPolicyDefinitionOperationSpec: msRest.OperationSpec = {
|
|
|
999
2019
|
bodyMapper: Mappers.QueryFailure
|
|
1000
2020
|
}
|
|
1001
2021
|
},
|
|
1002
|
-
serializer
|
|
1003
|
-
};
|
|
1004
|
-
|
|
1005
|
-
const summarizeForPolicyDefinitionOperationSpec: msRest.OperationSpec = {
|
|
1006
|
-
httpMethod: "POST",
|
|
1007
|
-
path: "subscriptions/{subscriptionId}/providers/{authorizationNamespace}/policyDefinitions/{policyDefinitionName}/providers/Microsoft.PolicyInsights/policyStates/{policyStatesSummaryResource}/summarize",
|
|
1008
|
-
urlParameters: [
|
|
1009
|
-
Parameters.policyStatesSummaryResource,
|
|
1010
|
-
Parameters.subscriptionId,
|
|
1011
|
-
Parameters.authorizationNamespace,
|
|
1012
|
-
Parameters.policyDefinitionName
|
|
1013
|
-
],
|
|
1014
2022
|
queryParameters: [
|
|
1015
|
-
Parameters.apiVersion3,
|
|
1016
2023
|
Parameters.top,
|
|
1017
|
-
Parameters.
|
|
2024
|
+
Parameters.filter,
|
|
2025
|
+
Parameters.apiVersion2,
|
|
2026
|
+
Parameters.orderBy,
|
|
2027
|
+
Parameters.select,
|
|
2028
|
+
Parameters.fromParam,
|
|
1018
2029
|
Parameters.to,
|
|
1019
|
-
Parameters.
|
|
2030
|
+
Parameters.apply,
|
|
2031
|
+
Parameters.skipToken
|
|
1020
2032
|
],
|
|
1021
|
-
|
|
1022
|
-
Parameters
|
|
2033
|
+
urlParameters: [
|
|
2034
|
+
Parameters.$host,
|
|
2035
|
+
Parameters.resourceGroupName,
|
|
2036
|
+
Parameters.nextLink,
|
|
2037
|
+
Parameters.subscriptionId1,
|
|
2038
|
+
Parameters.policyStatesResource
|
|
1023
2039
|
],
|
|
2040
|
+
headerParameters: [Parameters.accept],
|
|
2041
|
+
serializer
|
|
2042
|
+
};
|
|
2043
|
+
const listQueryResultsForResourceNextOperationSpec: coreClient.OperationSpec = {
|
|
2044
|
+
path: "{nextLink}",
|
|
2045
|
+
httpMethod: "GET",
|
|
1024
2046
|
responses: {
|
|
1025
2047
|
200: {
|
|
1026
|
-
bodyMapper: Mappers.
|
|
2048
|
+
bodyMapper: Mappers.PolicyStatesQueryResults
|
|
1027
2049
|
},
|
|
1028
2050
|
default: {
|
|
1029
2051
|
bodyMapper: Mappers.QueryFailure
|
|
1030
2052
|
}
|
|
1031
2053
|
},
|
|
1032
|
-
serializer
|
|
1033
|
-
};
|
|
1034
|
-
|
|
1035
|
-
const listQueryResultsForSubscriptionLevelPolicyAssignmentOperationSpec: msRest.OperationSpec = {
|
|
1036
|
-
httpMethod: "POST",
|
|
1037
|
-
path: "subscriptions/{subscriptionId}/providers/{authorizationNamespace}/policyAssignments/{policyAssignmentName}/providers/Microsoft.PolicyInsights/policyStates/{policyStatesResource}/queryResults",
|
|
1038
|
-
urlParameters: [
|
|
1039
|
-
Parameters.policyStatesResource,
|
|
1040
|
-
Parameters.subscriptionId,
|
|
1041
|
-
Parameters.authorizationNamespace,
|
|
1042
|
-
Parameters.policyAssignmentName
|
|
1043
|
-
],
|
|
1044
2054
|
queryParameters: [
|
|
1045
|
-
Parameters.apiVersion3,
|
|
1046
2055
|
Parameters.top,
|
|
2056
|
+
Parameters.filter,
|
|
2057
|
+
Parameters.apiVersion2,
|
|
1047
2058
|
Parameters.orderBy,
|
|
1048
2059
|
Parameters.select,
|
|
1049
|
-
Parameters.
|
|
2060
|
+
Parameters.fromParam,
|
|
1050
2061
|
Parameters.to,
|
|
1051
|
-
Parameters.
|
|
1052
|
-
Parameters.
|
|
2062
|
+
Parameters.apply,
|
|
2063
|
+
Parameters.skipToken,
|
|
2064
|
+
Parameters.expand
|
|
1053
2065
|
],
|
|
1054
|
-
|
|
1055
|
-
Parameters
|
|
2066
|
+
urlParameters: [
|
|
2067
|
+
Parameters.$host,
|
|
2068
|
+
Parameters.resourceId,
|
|
2069
|
+
Parameters.nextLink,
|
|
2070
|
+
Parameters.policyStatesResource
|
|
1056
2071
|
],
|
|
2072
|
+
headerParameters: [Parameters.accept],
|
|
2073
|
+
serializer
|
|
2074
|
+
};
|
|
2075
|
+
const listQueryResultsForPolicySetDefinitionNextOperationSpec: coreClient.OperationSpec = {
|
|
2076
|
+
path: "{nextLink}",
|
|
2077
|
+
httpMethod: "GET",
|
|
1057
2078
|
responses: {
|
|
1058
2079
|
200: {
|
|
1059
2080
|
bodyMapper: Mappers.PolicyStatesQueryResults
|
|
@@ -1062,62 +2083,64 @@ const listQueryResultsForSubscriptionLevelPolicyAssignmentOperationSpec: msRest.
|
|
|
1062
2083
|
bodyMapper: Mappers.QueryFailure
|
|
1063
2084
|
}
|
|
1064
2085
|
},
|
|
1065
|
-
serializer
|
|
1066
|
-
};
|
|
1067
|
-
|
|
1068
|
-
const summarizeForSubscriptionLevelPolicyAssignmentOperationSpec: msRest.OperationSpec = {
|
|
1069
|
-
httpMethod: "POST",
|
|
1070
|
-
path: "subscriptions/{subscriptionId}/providers/{authorizationNamespace}/policyAssignments/{policyAssignmentName}/providers/Microsoft.PolicyInsights/policyStates/{policyStatesSummaryResource}/summarize",
|
|
1071
|
-
urlParameters: [
|
|
1072
|
-
Parameters.policyStatesSummaryResource,
|
|
1073
|
-
Parameters.subscriptionId,
|
|
1074
|
-
Parameters.authorizationNamespace,
|
|
1075
|
-
Parameters.policyAssignmentName
|
|
1076
|
-
],
|
|
1077
2086
|
queryParameters: [
|
|
1078
|
-
Parameters.apiVersion3,
|
|
1079
2087
|
Parameters.top,
|
|
1080
|
-
Parameters.
|
|
2088
|
+
Parameters.filter,
|
|
2089
|
+
Parameters.apiVersion2,
|
|
2090
|
+
Parameters.orderBy,
|
|
2091
|
+
Parameters.select,
|
|
2092
|
+
Parameters.fromParam,
|
|
1081
2093
|
Parameters.to,
|
|
1082
|
-
Parameters.
|
|
2094
|
+
Parameters.apply,
|
|
2095
|
+
Parameters.skipToken
|
|
1083
2096
|
],
|
|
1084
|
-
|
|
1085
|
-
Parameters
|
|
2097
|
+
urlParameters: [
|
|
2098
|
+
Parameters.$host,
|
|
2099
|
+
Parameters.nextLink,
|
|
2100
|
+
Parameters.subscriptionId1,
|
|
2101
|
+
Parameters.authorizationNamespace,
|
|
2102
|
+
Parameters.policySetDefinitionName,
|
|
2103
|
+
Parameters.policyStatesResource
|
|
1086
2104
|
],
|
|
2105
|
+
headerParameters: [Parameters.accept],
|
|
2106
|
+
serializer
|
|
2107
|
+
};
|
|
2108
|
+
const listQueryResultsForPolicyDefinitionNextOperationSpec: coreClient.OperationSpec = {
|
|
2109
|
+
path: "{nextLink}",
|
|
2110
|
+
httpMethod: "GET",
|
|
1087
2111
|
responses: {
|
|
1088
2112
|
200: {
|
|
1089
|
-
bodyMapper: Mappers.
|
|
2113
|
+
bodyMapper: Mappers.PolicyStatesQueryResults
|
|
1090
2114
|
},
|
|
1091
2115
|
default: {
|
|
1092
2116
|
bodyMapper: Mappers.QueryFailure
|
|
1093
2117
|
}
|
|
1094
2118
|
},
|
|
1095
|
-
serializer
|
|
1096
|
-
};
|
|
1097
|
-
|
|
1098
|
-
const listQueryResultsForResourceGroupLevelPolicyAssignmentOperationSpec: msRest.OperationSpec = {
|
|
1099
|
-
httpMethod: "POST",
|
|
1100
|
-
path: "subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{authorizationNamespace}/policyAssignments/{policyAssignmentName}/providers/Microsoft.PolicyInsights/policyStates/{policyStatesResource}/queryResults",
|
|
1101
|
-
urlParameters: [
|
|
1102
|
-
Parameters.policyStatesResource,
|
|
1103
|
-
Parameters.subscriptionId,
|
|
1104
|
-
Parameters.resourceGroupName,
|
|
1105
|
-
Parameters.authorizationNamespace,
|
|
1106
|
-
Parameters.policyAssignmentName
|
|
1107
|
-
],
|
|
1108
2119
|
queryParameters: [
|
|
1109
|
-
Parameters.apiVersion3,
|
|
1110
2120
|
Parameters.top,
|
|
2121
|
+
Parameters.filter,
|
|
2122
|
+
Parameters.apiVersion2,
|
|
1111
2123
|
Parameters.orderBy,
|
|
1112
2124
|
Parameters.select,
|
|
1113
|
-
Parameters.
|
|
2125
|
+
Parameters.fromParam,
|
|
1114
2126
|
Parameters.to,
|
|
1115
|
-
Parameters.
|
|
1116
|
-
Parameters.
|
|
2127
|
+
Parameters.apply,
|
|
2128
|
+
Parameters.skipToken
|
|
1117
2129
|
],
|
|
1118
|
-
|
|
1119
|
-
Parameters
|
|
2130
|
+
urlParameters: [
|
|
2131
|
+
Parameters.$host,
|
|
2132
|
+
Parameters.nextLink,
|
|
2133
|
+
Parameters.subscriptionId1,
|
|
2134
|
+
Parameters.authorizationNamespace,
|
|
2135
|
+
Parameters.policyDefinitionName,
|
|
2136
|
+
Parameters.policyStatesResource
|
|
1120
2137
|
],
|
|
2138
|
+
headerParameters: [Parameters.accept],
|
|
2139
|
+
serializer
|
|
2140
|
+
};
|
|
2141
|
+
const listQueryResultsForSubscriptionLevelPolicyAssignmentNextOperationSpec: coreClient.OperationSpec = {
|
|
2142
|
+
path: "{nextLink}",
|
|
2143
|
+
httpMethod: "GET",
|
|
1121
2144
|
responses: {
|
|
1122
2145
|
200: {
|
|
1123
2146
|
bodyMapper: Mappers.PolicyStatesQueryResults
|
|
@@ -1126,81 +2149,59 @@ const listQueryResultsForResourceGroupLevelPolicyAssignmentOperationSpec: msRest
|
|
|
1126
2149
|
bodyMapper: Mappers.QueryFailure
|
|
1127
2150
|
}
|
|
1128
2151
|
},
|
|
1129
|
-
serializer
|
|
1130
|
-
};
|
|
1131
|
-
|
|
1132
|
-
const summarizeForResourceGroupLevelPolicyAssignmentOperationSpec: msRest.OperationSpec = {
|
|
1133
|
-
httpMethod: "POST",
|
|
1134
|
-
path: "subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{authorizationNamespace}/policyAssignments/{policyAssignmentName}/providers/Microsoft.PolicyInsights/policyStates/{policyStatesSummaryResource}/summarize",
|
|
1135
|
-
urlParameters: [
|
|
1136
|
-
Parameters.policyStatesSummaryResource,
|
|
1137
|
-
Parameters.subscriptionId,
|
|
1138
|
-
Parameters.resourceGroupName,
|
|
1139
|
-
Parameters.authorizationNamespace,
|
|
1140
|
-
Parameters.policyAssignmentName
|
|
1141
|
-
],
|
|
1142
2152
|
queryParameters: [
|
|
1143
|
-
Parameters.apiVersion3,
|
|
1144
2153
|
Parameters.top,
|
|
1145
|
-
Parameters.
|
|
2154
|
+
Parameters.filter,
|
|
2155
|
+
Parameters.apiVersion2,
|
|
2156
|
+
Parameters.orderBy,
|
|
2157
|
+
Parameters.select,
|
|
2158
|
+
Parameters.fromParam,
|
|
1146
2159
|
Parameters.to,
|
|
1147
|
-
Parameters.
|
|
2160
|
+
Parameters.apply,
|
|
2161
|
+
Parameters.skipToken
|
|
1148
2162
|
],
|
|
1149
|
-
|
|
1150
|
-
Parameters
|
|
2163
|
+
urlParameters: [
|
|
2164
|
+
Parameters.$host,
|
|
2165
|
+
Parameters.nextLink,
|
|
2166
|
+
Parameters.subscriptionId1,
|
|
2167
|
+
Parameters.authorizationNamespace,
|
|
2168
|
+
Parameters.policyAssignmentName,
|
|
2169
|
+
Parameters.policyStatesResource
|
|
1151
2170
|
],
|
|
2171
|
+
headerParameters: [Parameters.accept],
|
|
2172
|
+
serializer
|
|
2173
|
+
};
|
|
2174
|
+
const listQueryResultsForResourceGroupLevelPolicyAssignmentNextOperationSpec: coreClient.OperationSpec = {
|
|
2175
|
+
path: "{nextLink}",
|
|
2176
|
+
httpMethod: "GET",
|
|
1152
2177
|
responses: {
|
|
1153
2178
|
200: {
|
|
1154
|
-
bodyMapper: Mappers.
|
|
2179
|
+
bodyMapper: Mappers.PolicyStatesQueryResults
|
|
1155
2180
|
},
|
|
1156
2181
|
default: {
|
|
1157
2182
|
bodyMapper: Mappers.QueryFailure
|
|
1158
2183
|
}
|
|
1159
2184
|
},
|
|
1160
|
-
serializer
|
|
1161
|
-
};
|
|
1162
|
-
|
|
1163
|
-
const beginTriggerSubscriptionEvaluationOperationSpec: msRest.OperationSpec = {
|
|
1164
|
-
httpMethod: "POST",
|
|
1165
|
-
path: "subscriptions/{subscriptionId}/providers/Microsoft.PolicyInsights/policyStates/latest/triggerEvaluation",
|
|
1166
|
-
urlParameters: [
|
|
1167
|
-
Parameters.subscriptionId
|
|
1168
|
-
],
|
|
1169
2185
|
queryParameters: [
|
|
1170
|
-
Parameters.
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
Parameters.
|
|
2186
|
+
Parameters.top,
|
|
2187
|
+
Parameters.filter,
|
|
2188
|
+
Parameters.apiVersion2,
|
|
2189
|
+
Parameters.orderBy,
|
|
2190
|
+
Parameters.select,
|
|
2191
|
+
Parameters.fromParam,
|
|
2192
|
+
Parameters.to,
|
|
2193
|
+
Parameters.apply,
|
|
2194
|
+
Parameters.skipToken
|
|
1174
2195
|
],
|
|
1175
|
-
responses: {
|
|
1176
|
-
200: {},
|
|
1177
|
-
202: {},
|
|
1178
|
-
default: {
|
|
1179
|
-
bodyMapper: Mappers.QueryFailure
|
|
1180
|
-
}
|
|
1181
|
-
},
|
|
1182
|
-
serializer
|
|
1183
|
-
};
|
|
1184
|
-
|
|
1185
|
-
const beginTriggerResourceGroupEvaluationOperationSpec: msRest.OperationSpec = {
|
|
1186
|
-
httpMethod: "POST",
|
|
1187
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.PolicyInsights/policyStates/latest/triggerEvaluation",
|
|
1188
2196
|
urlParameters: [
|
|
1189
|
-
Parameters
|
|
1190
|
-
Parameters.resourceGroupName
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
Parameters.
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
Parameters.acceptLanguage
|
|
2197
|
+
Parameters.$host,
|
|
2198
|
+
Parameters.resourceGroupName,
|
|
2199
|
+
Parameters.nextLink,
|
|
2200
|
+
Parameters.subscriptionId1,
|
|
2201
|
+
Parameters.authorizationNamespace,
|
|
2202
|
+
Parameters.policyAssignmentName,
|
|
2203
|
+
Parameters.policyStatesResource
|
|
1197
2204
|
],
|
|
1198
|
-
|
|
1199
|
-
200: {},
|
|
1200
|
-
202: {},
|
|
1201
|
-
default: {
|
|
1202
|
-
bodyMapper: Mappers.QueryFailure
|
|
1203
|
-
}
|
|
1204
|
-
},
|
|
2205
|
+
headerParameters: [Parameters.accept],
|
|
1205
2206
|
serializer
|
|
1206
2207
|
};
|