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