@azure/arm-policyinsights 6.0.0-beta.2 → 6.0.0-beta.3
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 +54 -1
- package/LICENSE +1 -1
- package/README.md +1 -1
- package/dist/index.js +1809 -831
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/dist-esm/samples-dev/attestationsCreateOrUpdateAtResourceGroupSample.js +11 -3
- package/dist-esm/samples-dev/attestationsCreateOrUpdateAtResourceGroupSample.js.map +1 -1
- package/dist-esm/samples-dev/attestationsCreateOrUpdateAtResourceSample.js +10 -2
- package/dist-esm/samples-dev/attestationsCreateOrUpdateAtResourceSample.js.map +1 -1
- package/dist-esm/samples-dev/attestationsCreateOrUpdateAtSubscriptionSample.js +13 -4
- package/dist-esm/samples-dev/attestationsCreateOrUpdateAtSubscriptionSample.js.map +1 -1
- package/dist-esm/samples-dev/attestationsDeleteAtResourceGroupSample.js +11 -3
- package/dist-esm/samples-dev/attestationsDeleteAtResourceGroupSample.js.map +1 -1
- package/dist-esm/samples-dev/attestationsDeleteAtResourceSample.js +10 -2
- package/dist-esm/samples-dev/attestationsDeleteAtResourceSample.js.map +1 -1
- package/dist-esm/samples-dev/attestationsDeleteAtSubscriptionSample.js +10 -2
- package/dist-esm/samples-dev/attestationsDeleteAtSubscriptionSample.js.map +1 -1
- package/dist-esm/samples-dev/attestationsGetAtResourceGroupSample.js +11 -3
- package/dist-esm/samples-dev/attestationsGetAtResourceGroupSample.js.map +1 -1
- package/dist-esm/samples-dev/attestationsGetAtResourceSample.js +10 -2
- package/dist-esm/samples-dev/attestationsGetAtResourceSample.js.map +1 -1
- package/dist-esm/samples-dev/attestationsGetAtSubscriptionSample.js +10 -2
- package/dist-esm/samples-dev/attestationsGetAtSubscriptionSample.js.map +1 -1
- package/dist-esm/samples-dev/attestationsListForResourceGroupSample.js +15 -6
- package/dist-esm/samples-dev/attestationsListForResourceGroupSample.js.map +1 -1
- package/dist-esm/samples-dev/attestationsListForResourceSample.js +13 -4
- package/dist-esm/samples-dev/attestationsListForResourceSample.js.map +1 -1
- package/dist-esm/samples-dev/attestationsListForSubscriptionSample.js +13 -4
- package/dist-esm/samples-dev/attestationsListForSubscriptionSample.js.map +1 -1
- package/dist-esm/samples-dev/componentPolicyStatesListQueryResultsForPolicyDefinitionSample.d.ts +2 -0
- package/dist-esm/samples-dev/componentPolicyStatesListQueryResultsForPolicyDefinitionSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/componentPolicyStatesListQueryResultsForPolicyDefinitionSample.js +39 -0
- package/dist-esm/samples-dev/componentPolicyStatesListQueryResultsForPolicyDefinitionSample.js.map +1 -0
- package/dist-esm/samples-dev/componentPolicyStatesListQueryResultsForResourceGroupLevelPolicyAssignmentSample.d.ts +2 -0
- package/dist-esm/samples-dev/componentPolicyStatesListQueryResultsForResourceGroupLevelPolicyAssignmentSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/componentPolicyStatesListQueryResultsForResourceGroupLevelPolicyAssignmentSample.js +40 -0
- package/dist-esm/samples-dev/componentPolicyStatesListQueryResultsForResourceGroupLevelPolicyAssignmentSample.js.map +1 -0
- package/dist-esm/samples-dev/componentPolicyStatesListQueryResultsForResourceGroupSample.d.ts +2 -0
- package/dist-esm/samples-dev/componentPolicyStatesListQueryResultsForResourceGroupSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/componentPolicyStatesListQueryResultsForResourceGroupSample.js +64 -0
- package/dist-esm/samples-dev/componentPolicyStatesListQueryResultsForResourceGroupSample.js.map +1 -0
- package/dist-esm/samples-dev/componentPolicyStatesListQueryResultsForResourceSample.d.ts +2 -0
- package/dist-esm/samples-dev/componentPolicyStatesListQueryResultsForResourceSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/componentPolicyStatesListQueryResultsForResourceSample.js +131 -0
- package/dist-esm/samples-dev/componentPolicyStatesListQueryResultsForResourceSample.js.map +1 -0
- package/dist-esm/samples-dev/componentPolicyStatesListQueryResultsForSubscriptionLevelPolicyAssignmentSample.d.ts +2 -0
- package/dist-esm/samples-dev/componentPolicyStatesListQueryResultsForSubscriptionLevelPolicyAssignmentSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/componentPolicyStatesListQueryResultsForSubscriptionLevelPolicyAssignmentSample.js +39 -0
- package/dist-esm/samples-dev/componentPolicyStatesListQueryResultsForSubscriptionLevelPolicyAssignmentSample.js.map +1 -0
- package/dist-esm/samples-dev/componentPolicyStatesListQueryResultsForSubscriptionSample.d.ts +2 -0
- package/dist-esm/samples-dev/componentPolicyStatesListQueryResultsForSubscriptionSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/componentPolicyStatesListQueryResultsForSubscriptionSample.js +62 -0
- package/dist-esm/samples-dev/componentPolicyStatesListQueryResultsForSubscriptionSample.js.map +1 -0
- package/dist-esm/samples-dev/operationsListSample.js +11 -3
- package/dist-esm/samples-dev/operationsListSample.js.map +1 -1
- package/dist-esm/samples-dev/policyEventsListQueryResultsForManagementGroupSample.js +13 -4
- package/dist-esm/samples-dev/policyEventsListQueryResultsForManagementGroupSample.js.map +1 -1
- package/dist-esm/samples-dev/policyEventsListQueryResultsForPolicyDefinitionSample.js +13 -4
- package/dist-esm/samples-dev/policyEventsListQueryResultsForPolicyDefinitionSample.js.map +1 -1
- package/dist-esm/samples-dev/policyEventsListQueryResultsForPolicySetDefinitionSample.js +13 -4
- package/dist-esm/samples-dev/policyEventsListQueryResultsForPolicySetDefinitionSample.js.map +1 -1
- package/dist-esm/samples-dev/policyEventsListQueryResultsForResourceGroupLevelPolicyAssignmentSample.js +15 -6
- package/dist-esm/samples-dev/policyEventsListQueryResultsForResourceGroupLevelPolicyAssignmentSample.js.map +1 -1
- package/dist-esm/samples-dev/policyEventsListQueryResultsForResourceGroupSample.js +15 -6
- package/dist-esm/samples-dev/policyEventsListQueryResultsForResourceGroupSample.js.map +1 -1
- package/dist-esm/samples-dev/policyEventsListQueryResultsForResourceSample.js +28 -14
- package/dist-esm/samples-dev/policyEventsListQueryResultsForResourceSample.js.map +1 -1
- package/dist-esm/samples-dev/policyEventsListQueryResultsForSubscriptionLevelPolicyAssignmentSample.js +13 -4
- package/dist-esm/samples-dev/policyEventsListQueryResultsForSubscriptionLevelPolicyAssignmentSample.js.map +1 -1
- package/dist-esm/samples-dev/policyEventsListQueryResultsForSubscriptionSample.js +28 -14
- package/dist-esm/samples-dev/policyEventsListQueryResultsForSubscriptionSample.js.map +1 -1
- package/dist-esm/samples-dev/policyMetadataGetResourceSample.js +10 -2
- package/dist-esm/samples-dev/policyMetadataGetResourceSample.js.map +1 -1
- package/dist-esm/samples-dev/policyMetadataListSample.js +13 -4
- package/dist-esm/samples-dev/policyMetadataListSample.js.map +1 -1
- package/dist-esm/samples-dev/policyRestrictionsCheckAtManagementGroupScopeSample.js +10 -2
- package/dist-esm/samples-dev/policyRestrictionsCheckAtManagementGroupScopeSample.js.map +1 -1
- package/dist-esm/samples-dev/policyRestrictionsCheckAtResourceGroupScopeSample.js +11 -3
- package/dist-esm/samples-dev/policyRestrictionsCheckAtResourceGroupScopeSample.js.map +1 -1
- package/dist-esm/samples-dev/policyRestrictionsCheckAtSubscriptionScopeSample.js +10 -2
- package/dist-esm/samples-dev/policyRestrictionsCheckAtSubscriptionScopeSample.js.map +1 -1
- package/dist-esm/samples-dev/policyStatesListQueryResultsForManagementGroupSample.js +13 -4
- package/dist-esm/samples-dev/policyStatesListQueryResultsForManagementGroupSample.js.map +1 -1
- package/dist-esm/samples-dev/policyStatesListQueryResultsForPolicyDefinitionSample.js +13 -4
- package/dist-esm/samples-dev/policyStatesListQueryResultsForPolicyDefinitionSample.js.map +1 -1
- package/dist-esm/samples-dev/policyStatesListQueryResultsForPolicySetDefinitionSample.js +13 -4
- package/dist-esm/samples-dev/policyStatesListQueryResultsForPolicySetDefinitionSample.js.map +1 -1
- package/dist-esm/samples-dev/policyStatesListQueryResultsForResourceGroupLevelPolicyAssignmentSample.js +15 -6
- package/dist-esm/samples-dev/policyStatesListQueryResultsForResourceGroupLevelPolicyAssignmentSample.js.map +1 -1
- package/dist-esm/samples-dev/policyStatesListQueryResultsForResourceGroupSample.js +15 -6
- package/dist-esm/samples-dev/policyStatesListQueryResultsForResourceGroupSample.js.map +1 -1
- package/dist-esm/samples-dev/policyStatesListQueryResultsForResourceSample.js +31 -16
- package/dist-esm/samples-dev/policyStatesListQueryResultsForResourceSample.js.map +1 -1
- package/dist-esm/samples-dev/policyStatesListQueryResultsForSubscriptionLevelPolicyAssignmentSample.js +13 -4
- package/dist-esm/samples-dev/policyStatesListQueryResultsForSubscriptionLevelPolicyAssignmentSample.js.map +1 -1
- package/dist-esm/samples-dev/policyStatesListQueryResultsForSubscriptionSample.js +28 -14
- package/dist-esm/samples-dev/policyStatesListQueryResultsForSubscriptionSample.js.map +1 -1
- package/dist-esm/samples-dev/policyStatesSummarizeForManagementGroupSample.js +10 -2
- package/dist-esm/samples-dev/policyStatesSummarizeForManagementGroupSample.js.map +1 -1
- package/dist-esm/samples-dev/policyStatesSummarizeForPolicyDefinitionSample.js +10 -2
- package/dist-esm/samples-dev/policyStatesSummarizeForPolicyDefinitionSample.js.map +1 -1
- package/dist-esm/samples-dev/policyStatesSummarizeForPolicySetDefinitionSample.js +10 -2
- package/dist-esm/samples-dev/policyStatesSummarizeForPolicySetDefinitionSample.js.map +1 -1
- package/dist-esm/samples-dev/policyStatesSummarizeForResourceGroupLevelPolicyAssignmentSample.js +11 -3
- package/dist-esm/samples-dev/policyStatesSummarizeForResourceGroupLevelPolicyAssignmentSample.js.map +1 -1
- package/dist-esm/samples-dev/policyStatesSummarizeForResourceGroupSample.js +11 -3
- package/dist-esm/samples-dev/policyStatesSummarizeForResourceGroupSample.js.map +1 -1
- package/dist-esm/samples-dev/policyStatesSummarizeForResourceSample.js +10 -2
- package/dist-esm/samples-dev/policyStatesSummarizeForResourceSample.js.map +1 -1
- package/dist-esm/samples-dev/policyStatesSummarizeForSubscriptionLevelPolicyAssignmentSample.js +10 -2
- package/dist-esm/samples-dev/policyStatesSummarizeForSubscriptionLevelPolicyAssignmentSample.js.map +1 -1
- package/dist-esm/samples-dev/policyStatesSummarizeForSubscriptionSample.js +13 -4
- package/dist-esm/samples-dev/policyStatesSummarizeForSubscriptionSample.js.map +1 -1
- package/dist-esm/samples-dev/policyStatesTriggerResourceGroupEvaluationSample.js +11 -3
- package/dist-esm/samples-dev/policyStatesTriggerResourceGroupEvaluationSample.js.map +1 -1
- package/dist-esm/samples-dev/policyStatesTriggerSubscriptionEvaluationSample.js +10 -2
- package/dist-esm/samples-dev/policyStatesTriggerSubscriptionEvaluationSample.js.map +1 -1
- package/dist-esm/samples-dev/policyTrackedResourcesListQueryResultsForManagementGroupSample.js +13 -4
- package/dist-esm/samples-dev/policyTrackedResourcesListQueryResultsForManagementGroupSample.js.map +1 -1
- package/dist-esm/samples-dev/policyTrackedResourcesListQueryResultsForResourceGroupSample.js +15 -6
- package/dist-esm/samples-dev/policyTrackedResourcesListQueryResultsForResourceGroupSample.js.map +1 -1
- package/dist-esm/samples-dev/policyTrackedResourcesListQueryResultsForResourceSample.js +13 -4
- package/dist-esm/samples-dev/policyTrackedResourcesListQueryResultsForResourceSample.js.map +1 -1
- package/dist-esm/samples-dev/policyTrackedResourcesListQueryResultsForSubscriptionSample.js +13 -4
- package/dist-esm/samples-dev/policyTrackedResourcesListQueryResultsForSubscriptionSample.js.map +1 -1
- package/dist-esm/samples-dev/remediationsCancelAtManagementGroupSample.js +10 -2
- package/dist-esm/samples-dev/remediationsCancelAtManagementGroupSample.js.map +1 -1
- package/dist-esm/samples-dev/remediationsCancelAtResourceGroupSample.js +11 -3
- package/dist-esm/samples-dev/remediationsCancelAtResourceGroupSample.js.map +1 -1
- package/dist-esm/samples-dev/remediationsCancelAtResourceSample.js +10 -2
- package/dist-esm/samples-dev/remediationsCancelAtResourceSample.js.map +1 -1
- package/dist-esm/samples-dev/remediationsCancelAtSubscriptionSample.js +10 -2
- package/dist-esm/samples-dev/remediationsCancelAtSubscriptionSample.js.map +1 -1
- package/dist-esm/samples-dev/remediationsCreateOrUpdateAtManagementGroupSample.js +10 -2
- package/dist-esm/samples-dev/remediationsCreateOrUpdateAtManagementGroupSample.js.map +1 -1
- package/dist-esm/samples-dev/remediationsCreateOrUpdateAtResourceGroupSample.js +11 -3
- package/dist-esm/samples-dev/remediationsCreateOrUpdateAtResourceGroupSample.js.map +1 -1
- package/dist-esm/samples-dev/remediationsCreateOrUpdateAtResourceSample.js +10 -2
- package/dist-esm/samples-dev/remediationsCreateOrUpdateAtResourceSample.js.map +1 -1
- package/dist-esm/samples-dev/remediationsCreateOrUpdateAtSubscriptionSample.js +13 -4
- package/dist-esm/samples-dev/remediationsCreateOrUpdateAtSubscriptionSample.js.map +1 -1
- package/dist-esm/samples-dev/remediationsDeleteAtManagementGroupSample.js +10 -2
- package/dist-esm/samples-dev/remediationsDeleteAtManagementGroupSample.js.map +1 -1
- package/dist-esm/samples-dev/remediationsDeleteAtResourceGroupSample.js +11 -3
- package/dist-esm/samples-dev/remediationsDeleteAtResourceGroupSample.js.map +1 -1
- package/dist-esm/samples-dev/remediationsDeleteAtResourceSample.js +10 -2
- package/dist-esm/samples-dev/remediationsDeleteAtResourceSample.js.map +1 -1
- package/dist-esm/samples-dev/remediationsDeleteAtSubscriptionSample.js +10 -2
- package/dist-esm/samples-dev/remediationsDeleteAtSubscriptionSample.js.map +1 -1
- package/dist-esm/samples-dev/remediationsGetAtManagementGroupSample.js +10 -2
- package/dist-esm/samples-dev/remediationsGetAtManagementGroupSample.js.map +1 -1
- package/dist-esm/samples-dev/remediationsGetAtResourceGroupSample.js +11 -3
- package/dist-esm/samples-dev/remediationsGetAtResourceGroupSample.js.map +1 -1
- package/dist-esm/samples-dev/remediationsGetAtResourceSample.js +10 -2
- package/dist-esm/samples-dev/remediationsGetAtResourceSample.js.map +1 -1
- package/dist-esm/samples-dev/remediationsGetAtSubscriptionSample.js +10 -2
- package/dist-esm/samples-dev/remediationsGetAtSubscriptionSample.js.map +1 -1
- package/dist-esm/samples-dev/remediationsListDeploymentsAtManagementGroupSample.js +10 -2
- package/dist-esm/samples-dev/remediationsListDeploymentsAtManagementGroupSample.js.map +1 -1
- package/dist-esm/samples-dev/remediationsListDeploymentsAtResourceGroupSample.js +11 -3
- package/dist-esm/samples-dev/remediationsListDeploymentsAtResourceGroupSample.js.map +1 -1
- package/dist-esm/samples-dev/remediationsListDeploymentsAtResourceSample.js +10 -2
- package/dist-esm/samples-dev/remediationsListDeploymentsAtResourceSample.js.map +1 -1
- package/dist-esm/samples-dev/remediationsListDeploymentsAtSubscriptionSample.js +10 -2
- package/dist-esm/samples-dev/remediationsListDeploymentsAtSubscriptionSample.js.map +1 -1
- package/dist-esm/samples-dev/remediationsListForManagementGroupSample.js +13 -4
- package/dist-esm/samples-dev/remediationsListForManagementGroupSample.js.map +1 -1
- package/dist-esm/samples-dev/remediationsListForResourceGroupSample.js +15 -6
- package/dist-esm/samples-dev/remediationsListForResourceGroupSample.js.map +1 -1
- package/dist-esm/samples-dev/remediationsListForResourceSample.js +13 -4
- package/dist-esm/samples-dev/remediationsListForResourceSample.js.map +1 -1
- package/dist-esm/samples-dev/remediationsListForSubscriptionSample.js +13 -4
- package/dist-esm/samples-dev/remediationsListForSubscriptionSample.js.map +1 -1
- package/dist-esm/src/index.d.ts +1 -0
- package/dist-esm/src/index.d.ts.map +1 -1
- package/dist-esm/src/index.js +1 -0
- package/dist-esm/src/index.js.map +1 -1
- package/dist-esm/src/models/index.d.ts +377 -94
- package/dist-esm/src/models/index.d.ts.map +1 -1
- package/dist-esm/src/models/index.js +6 -0
- package/dist-esm/src/models/index.js.map +1 -1
- package/dist-esm/src/models/mappers.d.ts +7 -3
- package/dist-esm/src/models/mappers.d.ts.map +1 -1
- package/dist-esm/src/models/mappers.js +446 -82
- package/dist-esm/src/models/mappers.js.map +1 -1
- package/dist-esm/src/models/parameters.d.ts +13 -1
- package/dist-esm/src/models/parameters.d.ts.map +1 -1
- package/dist-esm/src/models/parameters.js +127 -1
- package/dist-esm/src/models/parameters.js.map +1 -1
- package/dist-esm/src/operations/attestations.d.ts.map +1 -1
- package/dist-esm/src/operations/attestations.js +67 -36
- package/dist-esm/src/operations/attestations.js.map +1 -1
- package/dist-esm/src/operations/componentPolicyStates.d.ts +66 -0
- package/dist-esm/src/operations/componentPolicyStates.d.ts.map +1 -0
- package/dist-esm/src/operations/componentPolicyStates.js +292 -0
- package/dist-esm/src/operations/componentPolicyStates.js.map +1 -0
- package/dist-esm/src/operations/index.d.ts +2 -1
- package/dist-esm/src/operations/index.d.ts.map +1 -1
- package/dist-esm/src/operations/index.js +2 -1
- package/dist-esm/src/operations/index.js.map +1 -1
- package/dist-esm/src/operations/operations.js +1 -1
- package/dist-esm/src/operations/policyEvents.d.ts.map +1 -1
- package/dist-esm/src/operations/policyEvents.js +153 -153
- package/dist-esm/src/operations/policyEvents.js.map +1 -1
- package/dist-esm/src/operations/policyMetadataOperations.d.ts.map +1 -1
- package/dist-esm/src/operations/policyMetadataOperations.js +19 -8
- package/dist-esm/src/operations/policyMetadataOperations.js.map +1 -1
- package/dist-esm/src/operations/policyStates.d.ts.map +1 -1
- package/dist-esm/src/operations/policyStates.js +161 -161
- package/dist-esm/src/operations/policyStates.js.map +1 -1
- package/dist-esm/src/operations/policyTrackedResources.d.ts.map +1 -1
- package/dist-esm/src/operations/policyTrackedResources.js +73 -32
- package/dist-esm/src/operations/policyTrackedResources.js.map +1 -1
- package/dist-esm/src/operations/remediations.d.ts.map +1 -1
- package/dist-esm/src/operations/remediations.js +145 -64
- package/dist-esm/src/operations/remediations.js.map +1 -1
- package/dist-esm/src/operationsInterfaces/componentPolicyStates.d.ts +58 -0
- package/dist-esm/src/operationsInterfaces/componentPolicyStates.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/componentPolicyStates.js +9 -0
- package/dist-esm/src/operationsInterfaces/componentPolicyStates.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts +2 -1
- package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/index.js +2 -1
- package/dist-esm/src/operationsInterfaces/index.js.map +1 -1
- package/dist-esm/src/pagingHelper.d.ts +13 -0
- package/dist-esm/src/pagingHelper.d.ts.map +1 -0
- package/dist-esm/src/pagingHelper.js +32 -0
- package/dist-esm/src/pagingHelper.js.map +1 -0
- package/dist-esm/src/policyInsightsClient.d.ts +3 -2
- package/dist-esm/src/policyInsightsClient.d.ts.map +1 -1
- package/dist-esm/src/policyInsightsClient.js +7 -9
- package/dist-esm/src/policyInsightsClient.js.map +1 -1
- package/package.json +5 -4
- package/review/arm-policyinsights.api.md +170 -32
- package/src/index.ts +1 -0
- package/src/models/index.ts +438 -163
- package/src/models/mappers.ts +453 -85
- package/src/models/parameters.ts +139 -1
- package/src/operations/attestations.ts +78 -40
- package/src/operations/componentPolicyStates.ts +376 -0
- package/src/operations/index.ts +2 -1
- package/src/operations/operations.ts +1 -1
- package/src/operations/policyEvents.ts +215 -199
- package/src/operations/policyMetadataOperations.ts +22 -10
- package/src/operations/policyStates.ts +224 -208
- package/src/operations/policyTrackedResources.ts +100 -51
- package/src/operations/remediations.ts +186 -88
- package/src/operationsInterfaces/componentPolicyStates.ts +113 -0
- package/src/operationsInterfaces/index.ts +2 -1
- package/src/pagingHelper.ts +39 -0
- package/src/policyInsightsClient.ts +13 -10
- package/types/arm-policyinsights.d.ts +433 -65
- package/types/tsdoc-metadata.json +1 -1
|
@@ -6,7 +6,8 @@
|
|
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
-
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
9
|
+
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
|
|
10
|
+
import { setContinuationToken } from "../pagingHelper";
|
|
10
11
|
import { PolicyStates } from "../operationsInterfaces";
|
|
11
12
|
import * as coreClient from "@azure/core-client";
|
|
12
13
|
import * as Mappers from "../models/mappers";
|
|
@@ -19,45 +20,45 @@ import {
|
|
|
19
20
|
PolicyStatesResource,
|
|
20
21
|
PolicyStatesListQueryResultsForManagementGroupNextOptionalParams,
|
|
21
22
|
PolicyStatesListQueryResultsForManagementGroupOptionalParams,
|
|
23
|
+
PolicyStatesListQueryResultsForManagementGroupResponse,
|
|
22
24
|
PolicyStatesListQueryResultsForSubscriptionNextOptionalParams,
|
|
23
25
|
PolicyStatesListQueryResultsForSubscriptionOptionalParams,
|
|
26
|
+
PolicyStatesListQueryResultsForSubscriptionResponse,
|
|
24
27
|
PolicyStatesListQueryResultsForResourceGroupNextOptionalParams,
|
|
25
28
|
PolicyStatesListQueryResultsForResourceGroupOptionalParams,
|
|
29
|
+
PolicyStatesListQueryResultsForResourceGroupResponse,
|
|
26
30
|
PolicyStatesListQueryResultsForResourceNextOptionalParams,
|
|
27
31
|
PolicyStatesListQueryResultsForResourceOptionalParams,
|
|
32
|
+
PolicyStatesListQueryResultsForResourceResponse,
|
|
28
33
|
PolicyStatesListQueryResultsForPolicySetDefinitionNextOptionalParams,
|
|
29
34
|
PolicyStatesListQueryResultsForPolicySetDefinitionOptionalParams,
|
|
35
|
+
PolicyStatesListQueryResultsForPolicySetDefinitionResponse,
|
|
30
36
|
PolicyStatesListQueryResultsForPolicyDefinitionNextOptionalParams,
|
|
31
37
|
PolicyStatesListQueryResultsForPolicyDefinitionOptionalParams,
|
|
38
|
+
PolicyStatesListQueryResultsForPolicyDefinitionResponse,
|
|
32
39
|
PolicyStatesListQueryResultsForSubscriptionLevelPolicyAssignmentNextOptionalParams,
|
|
33
40
|
PolicyStatesListQueryResultsForSubscriptionLevelPolicyAssignmentOptionalParams,
|
|
41
|
+
PolicyStatesListQueryResultsForSubscriptionLevelPolicyAssignmentResponse,
|
|
34
42
|
PolicyStatesListQueryResultsForResourceGroupLevelPolicyAssignmentNextOptionalParams,
|
|
35
43
|
PolicyStatesListQueryResultsForResourceGroupLevelPolicyAssignmentOptionalParams,
|
|
36
|
-
|
|
44
|
+
PolicyStatesListQueryResultsForResourceGroupLevelPolicyAssignmentResponse,
|
|
37
45
|
PolicyStatesSummaryResourceType,
|
|
38
46
|
PolicyStatesSummarizeForManagementGroupOptionalParams,
|
|
39
47
|
PolicyStatesSummarizeForManagementGroupResponse,
|
|
40
|
-
PolicyStatesListQueryResultsForSubscriptionResponse,
|
|
41
48
|
PolicyStatesSummarizeForSubscriptionOptionalParams,
|
|
42
49
|
PolicyStatesSummarizeForSubscriptionResponse,
|
|
43
|
-
PolicyStatesListQueryResultsForResourceGroupResponse,
|
|
44
50
|
PolicyStatesSummarizeForResourceGroupOptionalParams,
|
|
45
51
|
PolicyStatesSummarizeForResourceGroupResponse,
|
|
46
|
-
PolicyStatesListQueryResultsForResourceResponse,
|
|
47
52
|
PolicyStatesSummarizeForResourceOptionalParams,
|
|
48
53
|
PolicyStatesSummarizeForResourceResponse,
|
|
49
54
|
PolicyStatesTriggerSubscriptionEvaluationOptionalParams,
|
|
50
55
|
PolicyStatesTriggerResourceGroupEvaluationOptionalParams,
|
|
51
|
-
PolicyStatesListQueryResultsForPolicySetDefinitionResponse,
|
|
52
56
|
PolicyStatesSummarizeForPolicySetDefinitionOptionalParams,
|
|
53
57
|
PolicyStatesSummarizeForPolicySetDefinitionResponse,
|
|
54
|
-
PolicyStatesListQueryResultsForPolicyDefinitionResponse,
|
|
55
58
|
PolicyStatesSummarizeForPolicyDefinitionOptionalParams,
|
|
56
59
|
PolicyStatesSummarizeForPolicyDefinitionResponse,
|
|
57
|
-
PolicyStatesListQueryResultsForSubscriptionLevelPolicyAssignmentResponse,
|
|
58
60
|
PolicyStatesSummarizeForSubscriptionLevelPolicyAssignmentOptionalParams,
|
|
59
61
|
PolicyStatesSummarizeForSubscriptionLevelPolicyAssignmentResponse,
|
|
60
|
-
PolicyStatesListQueryResultsForResourceGroupLevelPolicyAssignmentResponse,
|
|
61
62
|
PolicyStatesSummarizeForResourceGroupLevelPolicyAssignmentOptionalParams,
|
|
62
63
|
PolicyStatesSummarizeForResourceGroupLevelPolicyAssignmentResponse,
|
|
63
64
|
PolicyStatesListQueryResultsForManagementGroupNextResponse,
|
|
@@ -108,11 +109,15 @@ export class PolicyStatesImpl implements PolicyStates {
|
|
|
108
109
|
[Symbol.asyncIterator]() {
|
|
109
110
|
return this;
|
|
110
111
|
},
|
|
111
|
-
byPage: () => {
|
|
112
|
+
byPage: (settings?: PageSettings) => {
|
|
113
|
+
if (settings?.maxPageSize) {
|
|
114
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
115
|
+
}
|
|
112
116
|
return this.listQueryResultsForManagementGroupPagingPage(
|
|
113
117
|
policyStatesResource,
|
|
114
118
|
managementGroupName,
|
|
115
|
-
options
|
|
119
|
+
options,
|
|
120
|
+
settings
|
|
116
121
|
);
|
|
117
122
|
}
|
|
118
123
|
};
|
|
@@ -121,15 +126,22 @@ export class PolicyStatesImpl implements PolicyStates {
|
|
|
121
126
|
private async *listQueryResultsForManagementGroupPagingPage(
|
|
122
127
|
policyStatesResource: PolicyStatesResource,
|
|
123
128
|
managementGroupName: string,
|
|
124
|
-
options?: PolicyStatesListQueryResultsForManagementGroupOptionalParams
|
|
129
|
+
options?: PolicyStatesListQueryResultsForManagementGroupOptionalParams,
|
|
130
|
+
settings?: PageSettings
|
|
125
131
|
): AsyncIterableIterator<PolicyState[]> {
|
|
126
|
-
let result
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
132
|
+
let result: PolicyStatesListQueryResultsForManagementGroupResponse;
|
|
133
|
+
let continuationToken = settings?.continuationToken;
|
|
134
|
+
if (!continuationToken) {
|
|
135
|
+
result = await this._listQueryResultsForManagementGroup(
|
|
136
|
+
policyStatesResource,
|
|
137
|
+
managementGroupName,
|
|
138
|
+
options
|
|
139
|
+
);
|
|
140
|
+
let page = result.value || [];
|
|
141
|
+
continuationToken = result.odataNextLink;
|
|
142
|
+
setContinuationToken(page, continuationToken);
|
|
143
|
+
yield page;
|
|
144
|
+
}
|
|
133
145
|
while (continuationToken) {
|
|
134
146
|
result = await this._listQueryResultsForManagementGroupNext(
|
|
135
147
|
policyStatesResource,
|
|
@@ -138,7 +150,9 @@ export class PolicyStatesImpl implements PolicyStates {
|
|
|
138
150
|
options
|
|
139
151
|
);
|
|
140
152
|
continuationToken = result.odataNextLink;
|
|
141
|
-
|
|
153
|
+
let page = result.value || [];
|
|
154
|
+
setContinuationToken(page, continuationToken);
|
|
155
|
+
yield page;
|
|
142
156
|
}
|
|
143
157
|
}
|
|
144
158
|
|
|
@@ -181,11 +195,15 @@ export class PolicyStatesImpl implements PolicyStates {
|
|
|
181
195
|
[Symbol.asyncIterator]() {
|
|
182
196
|
return this;
|
|
183
197
|
},
|
|
184
|
-
byPage: () => {
|
|
198
|
+
byPage: (settings?: PageSettings) => {
|
|
199
|
+
if (settings?.maxPageSize) {
|
|
200
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
201
|
+
}
|
|
185
202
|
return this.listQueryResultsForSubscriptionPagingPage(
|
|
186
203
|
policyStatesResource,
|
|
187
204
|
subscriptionId,
|
|
188
|
-
options
|
|
205
|
+
options,
|
|
206
|
+
settings
|
|
189
207
|
);
|
|
190
208
|
}
|
|
191
209
|
};
|
|
@@ -194,15 +212,22 @@ export class PolicyStatesImpl implements PolicyStates {
|
|
|
194
212
|
private async *listQueryResultsForSubscriptionPagingPage(
|
|
195
213
|
policyStatesResource: PolicyStatesResource,
|
|
196
214
|
subscriptionId: string,
|
|
197
|
-
options?: PolicyStatesListQueryResultsForSubscriptionOptionalParams
|
|
215
|
+
options?: PolicyStatesListQueryResultsForSubscriptionOptionalParams,
|
|
216
|
+
settings?: PageSettings
|
|
198
217
|
): AsyncIterableIterator<PolicyState[]> {
|
|
199
|
-
let result
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
218
|
+
let result: PolicyStatesListQueryResultsForSubscriptionResponse;
|
|
219
|
+
let continuationToken = settings?.continuationToken;
|
|
220
|
+
if (!continuationToken) {
|
|
221
|
+
result = await this._listQueryResultsForSubscription(
|
|
222
|
+
policyStatesResource,
|
|
223
|
+
subscriptionId,
|
|
224
|
+
options
|
|
225
|
+
);
|
|
226
|
+
let page = result.value || [];
|
|
227
|
+
continuationToken = result.odataNextLink;
|
|
228
|
+
setContinuationToken(page, continuationToken);
|
|
229
|
+
yield page;
|
|
230
|
+
}
|
|
206
231
|
while (continuationToken) {
|
|
207
232
|
result = await this._listQueryResultsForSubscriptionNext(
|
|
208
233
|
policyStatesResource,
|
|
@@ -211,7 +236,9 @@ export class PolicyStatesImpl implements PolicyStates {
|
|
|
211
236
|
options
|
|
212
237
|
);
|
|
213
238
|
continuationToken = result.odataNextLink;
|
|
214
|
-
|
|
239
|
+
let page = result.value || [];
|
|
240
|
+
setContinuationToken(page, continuationToken);
|
|
241
|
+
yield page;
|
|
215
242
|
}
|
|
216
243
|
}
|
|
217
244
|
|
|
@@ -257,12 +284,16 @@ export class PolicyStatesImpl implements PolicyStates {
|
|
|
257
284
|
[Symbol.asyncIterator]() {
|
|
258
285
|
return this;
|
|
259
286
|
},
|
|
260
|
-
byPage: () => {
|
|
287
|
+
byPage: (settings?: PageSettings) => {
|
|
288
|
+
if (settings?.maxPageSize) {
|
|
289
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
290
|
+
}
|
|
261
291
|
return this.listQueryResultsForResourceGroupPagingPage(
|
|
262
292
|
policyStatesResource,
|
|
263
293
|
subscriptionId,
|
|
264
294
|
resourceGroupName,
|
|
265
|
-
options
|
|
295
|
+
options,
|
|
296
|
+
settings
|
|
266
297
|
);
|
|
267
298
|
}
|
|
268
299
|
};
|
|
@@ -272,16 +303,23 @@ export class PolicyStatesImpl implements PolicyStates {
|
|
|
272
303
|
policyStatesResource: PolicyStatesResource,
|
|
273
304
|
subscriptionId: string,
|
|
274
305
|
resourceGroupName: string,
|
|
275
|
-
options?: PolicyStatesListQueryResultsForResourceGroupOptionalParams
|
|
306
|
+
options?: PolicyStatesListQueryResultsForResourceGroupOptionalParams,
|
|
307
|
+
settings?: PageSettings
|
|
276
308
|
): AsyncIterableIterator<PolicyState[]> {
|
|
277
|
-
let result
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
309
|
+
let result: PolicyStatesListQueryResultsForResourceGroupResponse;
|
|
310
|
+
let continuationToken = settings?.continuationToken;
|
|
311
|
+
if (!continuationToken) {
|
|
312
|
+
result = await this._listQueryResultsForResourceGroup(
|
|
313
|
+
policyStatesResource,
|
|
314
|
+
subscriptionId,
|
|
315
|
+
resourceGroupName,
|
|
316
|
+
options
|
|
317
|
+
);
|
|
318
|
+
let page = result.value || [];
|
|
319
|
+
continuationToken = result.odataNextLink;
|
|
320
|
+
setContinuationToken(page, continuationToken);
|
|
321
|
+
yield page;
|
|
322
|
+
}
|
|
285
323
|
while (continuationToken) {
|
|
286
324
|
result = await this._listQueryResultsForResourceGroupNext(
|
|
287
325
|
policyStatesResource,
|
|
@@ -291,7 +329,9 @@ export class PolicyStatesImpl implements PolicyStates {
|
|
|
291
329
|
options
|
|
292
330
|
);
|
|
293
331
|
continuationToken = result.odataNextLink;
|
|
294
|
-
|
|
332
|
+
let page = result.value || [];
|
|
333
|
+
setContinuationToken(page, continuationToken);
|
|
334
|
+
yield page;
|
|
295
335
|
}
|
|
296
336
|
}
|
|
297
337
|
|
|
@@ -336,11 +376,15 @@ export class PolicyStatesImpl implements PolicyStates {
|
|
|
336
376
|
[Symbol.asyncIterator]() {
|
|
337
377
|
return this;
|
|
338
378
|
},
|
|
339
|
-
byPage: () => {
|
|
379
|
+
byPage: (settings?: PageSettings) => {
|
|
380
|
+
if (settings?.maxPageSize) {
|
|
381
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
382
|
+
}
|
|
340
383
|
return this.listQueryResultsForResourcePagingPage(
|
|
341
384
|
policyStatesResource,
|
|
342
385
|
resourceId,
|
|
343
|
-
options
|
|
386
|
+
options,
|
|
387
|
+
settings
|
|
344
388
|
);
|
|
345
389
|
}
|
|
346
390
|
};
|
|
@@ -349,15 +393,22 @@ export class PolicyStatesImpl implements PolicyStates {
|
|
|
349
393
|
private async *listQueryResultsForResourcePagingPage(
|
|
350
394
|
policyStatesResource: PolicyStatesResource,
|
|
351
395
|
resourceId: string,
|
|
352
|
-
options?: PolicyStatesListQueryResultsForResourceOptionalParams
|
|
396
|
+
options?: PolicyStatesListQueryResultsForResourceOptionalParams,
|
|
397
|
+
settings?: PageSettings
|
|
353
398
|
): AsyncIterableIterator<PolicyState[]> {
|
|
354
|
-
let result
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
399
|
+
let result: PolicyStatesListQueryResultsForResourceResponse;
|
|
400
|
+
let continuationToken = settings?.continuationToken;
|
|
401
|
+
if (!continuationToken) {
|
|
402
|
+
result = await this._listQueryResultsForResource(
|
|
403
|
+
policyStatesResource,
|
|
404
|
+
resourceId,
|
|
405
|
+
options
|
|
406
|
+
);
|
|
407
|
+
let page = result.value || [];
|
|
408
|
+
continuationToken = result.odataNextLink;
|
|
409
|
+
setContinuationToken(page, continuationToken);
|
|
410
|
+
yield page;
|
|
411
|
+
}
|
|
361
412
|
while (continuationToken) {
|
|
362
413
|
result = await this._listQueryResultsForResourceNext(
|
|
363
414
|
policyStatesResource,
|
|
@@ -366,7 +417,9 @@ export class PolicyStatesImpl implements PolicyStates {
|
|
|
366
417
|
options
|
|
367
418
|
);
|
|
368
419
|
continuationToken = result.odataNextLink;
|
|
369
|
-
|
|
420
|
+
let page = result.value || [];
|
|
421
|
+
setContinuationToken(page, continuationToken);
|
|
422
|
+
yield page;
|
|
370
423
|
}
|
|
371
424
|
}
|
|
372
425
|
|
|
@@ -412,12 +465,16 @@ export class PolicyStatesImpl implements PolicyStates {
|
|
|
412
465
|
[Symbol.asyncIterator]() {
|
|
413
466
|
return this;
|
|
414
467
|
},
|
|
415
|
-
byPage: () => {
|
|
468
|
+
byPage: (settings?: PageSettings) => {
|
|
469
|
+
if (settings?.maxPageSize) {
|
|
470
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
471
|
+
}
|
|
416
472
|
return this.listQueryResultsForPolicySetDefinitionPagingPage(
|
|
417
473
|
policyStatesResource,
|
|
418
474
|
subscriptionId,
|
|
419
475
|
policySetDefinitionName,
|
|
420
|
-
options
|
|
476
|
+
options,
|
|
477
|
+
settings
|
|
421
478
|
);
|
|
422
479
|
}
|
|
423
480
|
};
|
|
@@ -427,16 +484,23 @@ export class PolicyStatesImpl implements PolicyStates {
|
|
|
427
484
|
policyStatesResource: PolicyStatesResource,
|
|
428
485
|
subscriptionId: string,
|
|
429
486
|
policySetDefinitionName: string,
|
|
430
|
-
options?: PolicyStatesListQueryResultsForPolicySetDefinitionOptionalParams
|
|
487
|
+
options?: PolicyStatesListQueryResultsForPolicySetDefinitionOptionalParams,
|
|
488
|
+
settings?: PageSettings
|
|
431
489
|
): AsyncIterableIterator<PolicyState[]> {
|
|
432
|
-
let result
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
490
|
+
let result: PolicyStatesListQueryResultsForPolicySetDefinitionResponse;
|
|
491
|
+
let continuationToken = settings?.continuationToken;
|
|
492
|
+
if (!continuationToken) {
|
|
493
|
+
result = await this._listQueryResultsForPolicySetDefinition(
|
|
494
|
+
policyStatesResource,
|
|
495
|
+
subscriptionId,
|
|
496
|
+
policySetDefinitionName,
|
|
497
|
+
options
|
|
498
|
+
);
|
|
499
|
+
let page = result.value || [];
|
|
500
|
+
continuationToken = result.odataNextLink;
|
|
501
|
+
setContinuationToken(page, continuationToken);
|
|
502
|
+
yield page;
|
|
503
|
+
}
|
|
440
504
|
while (continuationToken) {
|
|
441
505
|
result = await this._listQueryResultsForPolicySetDefinitionNext(
|
|
442
506
|
policyStatesResource,
|
|
@@ -446,7 +510,9 @@ export class PolicyStatesImpl implements PolicyStates {
|
|
|
446
510
|
options
|
|
447
511
|
);
|
|
448
512
|
continuationToken = result.odataNextLink;
|
|
449
|
-
|
|
513
|
+
let page = result.value || [];
|
|
514
|
+
setContinuationToken(page, continuationToken);
|
|
515
|
+
yield page;
|
|
450
516
|
}
|
|
451
517
|
}
|
|
452
518
|
|
|
@@ -494,12 +560,16 @@ export class PolicyStatesImpl implements PolicyStates {
|
|
|
494
560
|
[Symbol.asyncIterator]() {
|
|
495
561
|
return this;
|
|
496
562
|
},
|
|
497
|
-
byPage: () => {
|
|
563
|
+
byPage: (settings?: PageSettings) => {
|
|
564
|
+
if (settings?.maxPageSize) {
|
|
565
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
566
|
+
}
|
|
498
567
|
return this.listQueryResultsForPolicyDefinitionPagingPage(
|
|
499
568
|
policyStatesResource,
|
|
500
569
|
subscriptionId,
|
|
501
570
|
policyDefinitionName,
|
|
502
|
-
options
|
|
571
|
+
options,
|
|
572
|
+
settings
|
|
503
573
|
);
|
|
504
574
|
}
|
|
505
575
|
};
|
|
@@ -509,16 +579,23 @@ export class PolicyStatesImpl implements PolicyStates {
|
|
|
509
579
|
policyStatesResource: PolicyStatesResource,
|
|
510
580
|
subscriptionId: string,
|
|
511
581
|
policyDefinitionName: string,
|
|
512
|
-
options?: PolicyStatesListQueryResultsForPolicyDefinitionOptionalParams
|
|
582
|
+
options?: PolicyStatesListQueryResultsForPolicyDefinitionOptionalParams,
|
|
583
|
+
settings?: PageSettings
|
|
513
584
|
): AsyncIterableIterator<PolicyState[]> {
|
|
514
|
-
let result
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
585
|
+
let result: PolicyStatesListQueryResultsForPolicyDefinitionResponse;
|
|
586
|
+
let continuationToken = settings?.continuationToken;
|
|
587
|
+
if (!continuationToken) {
|
|
588
|
+
result = await this._listQueryResultsForPolicyDefinition(
|
|
589
|
+
policyStatesResource,
|
|
590
|
+
subscriptionId,
|
|
591
|
+
policyDefinitionName,
|
|
592
|
+
options
|
|
593
|
+
);
|
|
594
|
+
let page = result.value || [];
|
|
595
|
+
continuationToken = result.odataNextLink;
|
|
596
|
+
setContinuationToken(page, continuationToken);
|
|
597
|
+
yield page;
|
|
598
|
+
}
|
|
522
599
|
while (continuationToken) {
|
|
523
600
|
result = await this._listQueryResultsForPolicyDefinitionNext(
|
|
524
601
|
policyStatesResource,
|
|
@@ -528,7 +605,9 @@ export class PolicyStatesImpl implements PolicyStates {
|
|
|
528
605
|
options
|
|
529
606
|
);
|
|
530
607
|
continuationToken = result.odataNextLink;
|
|
531
|
-
|
|
608
|
+
let page = result.value || [];
|
|
609
|
+
setContinuationToken(page, continuationToken);
|
|
610
|
+
yield page;
|
|
532
611
|
}
|
|
533
612
|
}
|
|
534
613
|
|
|
@@ -576,12 +655,16 @@ export class PolicyStatesImpl implements PolicyStates {
|
|
|
576
655
|
[Symbol.asyncIterator]() {
|
|
577
656
|
return this;
|
|
578
657
|
},
|
|
579
|
-
byPage: () => {
|
|
658
|
+
byPage: (settings?: PageSettings) => {
|
|
659
|
+
if (settings?.maxPageSize) {
|
|
660
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
661
|
+
}
|
|
580
662
|
return this.listQueryResultsForSubscriptionLevelPolicyAssignmentPagingPage(
|
|
581
663
|
policyStatesResource,
|
|
582
664
|
subscriptionId,
|
|
583
665
|
policyAssignmentName,
|
|
584
|
-
options
|
|
666
|
+
options,
|
|
667
|
+
settings
|
|
585
668
|
);
|
|
586
669
|
}
|
|
587
670
|
};
|
|
@@ -591,16 +674,23 @@ export class PolicyStatesImpl implements PolicyStates {
|
|
|
591
674
|
policyStatesResource: PolicyStatesResource,
|
|
592
675
|
subscriptionId: string,
|
|
593
676
|
policyAssignmentName: string,
|
|
594
|
-
options?: PolicyStatesListQueryResultsForSubscriptionLevelPolicyAssignmentOptionalParams
|
|
677
|
+
options?: PolicyStatesListQueryResultsForSubscriptionLevelPolicyAssignmentOptionalParams,
|
|
678
|
+
settings?: PageSettings
|
|
595
679
|
): AsyncIterableIterator<PolicyState[]> {
|
|
596
|
-
let result
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
680
|
+
let result: PolicyStatesListQueryResultsForSubscriptionLevelPolicyAssignmentResponse;
|
|
681
|
+
let continuationToken = settings?.continuationToken;
|
|
682
|
+
if (!continuationToken) {
|
|
683
|
+
result = await this._listQueryResultsForSubscriptionLevelPolicyAssignment(
|
|
684
|
+
policyStatesResource,
|
|
685
|
+
subscriptionId,
|
|
686
|
+
policyAssignmentName,
|
|
687
|
+
options
|
|
688
|
+
);
|
|
689
|
+
let page = result.value || [];
|
|
690
|
+
continuationToken = result.odataNextLink;
|
|
691
|
+
setContinuationToken(page, continuationToken);
|
|
692
|
+
yield page;
|
|
693
|
+
}
|
|
604
694
|
while (continuationToken) {
|
|
605
695
|
result = await this._listQueryResultsForSubscriptionLevelPolicyAssignmentNext(
|
|
606
696
|
policyStatesResource,
|
|
@@ -610,7 +700,9 @@ export class PolicyStatesImpl implements PolicyStates {
|
|
|
610
700
|
options
|
|
611
701
|
);
|
|
612
702
|
continuationToken = result.odataNextLink;
|
|
613
|
-
|
|
703
|
+
let page = result.value || [];
|
|
704
|
+
setContinuationToken(page, continuationToken);
|
|
705
|
+
yield page;
|
|
614
706
|
}
|
|
615
707
|
}
|
|
616
708
|
|
|
@@ -661,13 +753,17 @@ export class PolicyStatesImpl implements PolicyStates {
|
|
|
661
753
|
[Symbol.asyncIterator]() {
|
|
662
754
|
return this;
|
|
663
755
|
},
|
|
664
|
-
byPage: () => {
|
|
756
|
+
byPage: (settings?: PageSettings) => {
|
|
757
|
+
if (settings?.maxPageSize) {
|
|
758
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
759
|
+
}
|
|
665
760
|
return this.listQueryResultsForResourceGroupLevelPolicyAssignmentPagingPage(
|
|
666
761
|
policyStatesResource,
|
|
667
762
|
subscriptionId,
|
|
668
763
|
resourceGroupName,
|
|
669
764
|
policyAssignmentName,
|
|
670
|
-
options
|
|
765
|
+
options,
|
|
766
|
+
settings
|
|
671
767
|
);
|
|
672
768
|
}
|
|
673
769
|
};
|
|
@@ -678,17 +774,24 @@ export class PolicyStatesImpl implements PolicyStates {
|
|
|
678
774
|
subscriptionId: string,
|
|
679
775
|
resourceGroupName: string,
|
|
680
776
|
policyAssignmentName: string,
|
|
681
|
-
options?: PolicyStatesListQueryResultsForResourceGroupLevelPolicyAssignmentOptionalParams
|
|
777
|
+
options?: PolicyStatesListQueryResultsForResourceGroupLevelPolicyAssignmentOptionalParams,
|
|
778
|
+
settings?: PageSettings
|
|
682
779
|
): AsyncIterableIterator<PolicyState[]> {
|
|
683
|
-
let result
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
780
|
+
let result: PolicyStatesListQueryResultsForResourceGroupLevelPolicyAssignmentResponse;
|
|
781
|
+
let continuationToken = settings?.continuationToken;
|
|
782
|
+
if (!continuationToken) {
|
|
783
|
+
result = await this._listQueryResultsForResourceGroupLevelPolicyAssignment(
|
|
784
|
+
policyStatesResource,
|
|
785
|
+
subscriptionId,
|
|
786
|
+
resourceGroupName,
|
|
787
|
+
policyAssignmentName,
|
|
788
|
+
options
|
|
789
|
+
);
|
|
790
|
+
let page = result.value || [];
|
|
791
|
+
continuationToken = result.odataNextLink;
|
|
792
|
+
setContinuationToken(page, continuationToken);
|
|
793
|
+
yield page;
|
|
794
|
+
}
|
|
692
795
|
while (continuationToken) {
|
|
693
796
|
result = await this._listQueryResultsForResourceGroupLevelPolicyAssignmentNext(
|
|
694
797
|
policyStatesResource,
|
|
@@ -699,7 +802,9 @@ export class PolicyStatesImpl implements PolicyStates {
|
|
|
699
802
|
options
|
|
700
803
|
);
|
|
701
804
|
continuationToken = result.odataNextLink;
|
|
702
|
-
|
|
805
|
+
let page = result.value || [];
|
|
806
|
+
setContinuationToken(page, continuationToken);
|
|
807
|
+
yield page;
|
|
703
808
|
}
|
|
704
809
|
}
|
|
705
810
|
|
|
@@ -1499,7 +1604,7 @@ const listQueryResultsForManagementGroupOperationSpec: coreClient.OperationSpec
|
|
|
1499
1604
|
Parameters.apiVersion2,
|
|
1500
1605
|
Parameters.orderBy,
|
|
1501
1606
|
Parameters.select,
|
|
1502
|
-
Parameters.
|
|
1607
|
+
Parameters.from,
|
|
1503
1608
|
Parameters.to,
|
|
1504
1609
|
Parameters.apply,
|
|
1505
1610
|
Parameters.skipToken
|
|
@@ -1529,7 +1634,7 @@ const summarizeForManagementGroupOperationSpec: coreClient.OperationSpec = {
|
|
|
1529
1634
|
Parameters.top,
|
|
1530
1635
|
Parameters.filter,
|
|
1531
1636
|
Parameters.apiVersion2,
|
|
1532
|
-
Parameters.
|
|
1637
|
+
Parameters.from,
|
|
1533
1638
|
Parameters.to
|
|
1534
1639
|
],
|
|
1535
1640
|
urlParameters: [
|
|
@@ -1559,7 +1664,7 @@ const listQueryResultsForSubscriptionOperationSpec: coreClient.OperationSpec = {
|
|
|
1559
1664
|
Parameters.apiVersion2,
|
|
1560
1665
|
Parameters.orderBy,
|
|
1561
1666
|
Parameters.select,
|
|
1562
|
-
Parameters.
|
|
1667
|
+
Parameters.from,
|
|
1563
1668
|
Parameters.to,
|
|
1564
1669
|
Parameters.apply,
|
|
1565
1670
|
Parameters.skipToken
|
|
@@ -1588,7 +1693,7 @@ const summarizeForSubscriptionOperationSpec: coreClient.OperationSpec = {
|
|
|
1588
1693
|
Parameters.top,
|
|
1589
1694
|
Parameters.filter,
|
|
1590
1695
|
Parameters.apiVersion2,
|
|
1591
|
-
Parameters.
|
|
1696
|
+
Parameters.from,
|
|
1592
1697
|
Parameters.to
|
|
1593
1698
|
],
|
|
1594
1699
|
urlParameters: [
|
|
@@ -1617,7 +1722,7 @@ const listQueryResultsForResourceGroupOperationSpec: coreClient.OperationSpec =
|
|
|
1617
1722
|
Parameters.apiVersion2,
|
|
1618
1723
|
Parameters.orderBy,
|
|
1619
1724
|
Parameters.select,
|
|
1620
|
-
Parameters.
|
|
1725
|
+
Parameters.from,
|
|
1621
1726
|
Parameters.to,
|
|
1622
1727
|
Parameters.apply,
|
|
1623
1728
|
Parameters.skipToken
|
|
@@ -1647,7 +1752,7 @@ const summarizeForResourceGroupOperationSpec: coreClient.OperationSpec = {
|
|
|
1647
1752
|
Parameters.top,
|
|
1648
1753
|
Parameters.filter,
|
|
1649
1754
|
Parameters.apiVersion2,
|
|
1650
|
-
Parameters.
|
|
1755
|
+
Parameters.from,
|
|
1651
1756
|
Parameters.to
|
|
1652
1757
|
],
|
|
1653
1758
|
urlParameters: [
|
|
@@ -1677,7 +1782,7 @@ const listQueryResultsForResourceOperationSpec: coreClient.OperationSpec = {
|
|
|
1677
1782
|
Parameters.apiVersion2,
|
|
1678
1783
|
Parameters.orderBy,
|
|
1679
1784
|
Parameters.select,
|
|
1680
|
-
Parameters.
|
|
1785
|
+
Parameters.from,
|
|
1681
1786
|
Parameters.to,
|
|
1682
1787
|
Parameters.apply,
|
|
1683
1788
|
Parameters.skipToken,
|
|
@@ -1707,7 +1812,7 @@ const summarizeForResourceOperationSpec: coreClient.OperationSpec = {
|
|
|
1707
1812
|
Parameters.top,
|
|
1708
1813
|
Parameters.filter,
|
|
1709
1814
|
Parameters.apiVersion2,
|
|
1710
|
-
Parameters.
|
|
1815
|
+
Parameters.from,
|
|
1711
1816
|
Parameters.to
|
|
1712
1817
|
],
|
|
1713
1818
|
urlParameters: [
|
|
@@ -1776,7 +1881,7 @@ const listQueryResultsForPolicySetDefinitionOperationSpec: coreClient.OperationS
|
|
|
1776
1881
|
Parameters.apiVersion2,
|
|
1777
1882
|
Parameters.orderBy,
|
|
1778
1883
|
Parameters.select,
|
|
1779
|
-
Parameters.
|
|
1884
|
+
Parameters.from,
|
|
1780
1885
|
Parameters.to,
|
|
1781
1886
|
Parameters.apply,
|
|
1782
1887
|
Parameters.skipToken
|
|
@@ -1807,7 +1912,7 @@ const summarizeForPolicySetDefinitionOperationSpec: coreClient.OperationSpec = {
|
|
|
1807
1912
|
Parameters.top,
|
|
1808
1913
|
Parameters.filter,
|
|
1809
1914
|
Parameters.apiVersion2,
|
|
1810
|
-
Parameters.
|
|
1915
|
+
Parameters.from,
|
|
1811
1916
|
Parameters.to
|
|
1812
1917
|
],
|
|
1813
1918
|
urlParameters: [
|
|
@@ -1838,7 +1943,7 @@ const listQueryResultsForPolicyDefinitionOperationSpec: coreClient.OperationSpec
|
|
|
1838
1943
|
Parameters.apiVersion2,
|
|
1839
1944
|
Parameters.orderBy,
|
|
1840
1945
|
Parameters.select,
|
|
1841
|
-
Parameters.
|
|
1946
|
+
Parameters.from,
|
|
1842
1947
|
Parameters.to,
|
|
1843
1948
|
Parameters.apply,
|
|
1844
1949
|
Parameters.skipToken
|
|
@@ -1869,7 +1974,7 @@ const summarizeForPolicyDefinitionOperationSpec: coreClient.OperationSpec = {
|
|
|
1869
1974
|
Parameters.top,
|
|
1870
1975
|
Parameters.filter,
|
|
1871
1976
|
Parameters.apiVersion2,
|
|
1872
|
-
Parameters.
|
|
1977
|
+
Parameters.from,
|
|
1873
1978
|
Parameters.to
|
|
1874
1979
|
],
|
|
1875
1980
|
urlParameters: [
|
|
@@ -1900,7 +2005,7 @@ const listQueryResultsForSubscriptionLevelPolicyAssignmentOperationSpec: coreCli
|
|
|
1900
2005
|
Parameters.apiVersion2,
|
|
1901
2006
|
Parameters.orderBy,
|
|
1902
2007
|
Parameters.select,
|
|
1903
|
-
Parameters.
|
|
2008
|
+
Parameters.from,
|
|
1904
2009
|
Parameters.to,
|
|
1905
2010
|
Parameters.apply,
|
|
1906
2011
|
Parameters.skipToken
|
|
@@ -1931,7 +2036,7 @@ const summarizeForSubscriptionLevelPolicyAssignmentOperationSpec: coreClient.Ope
|
|
|
1931
2036
|
Parameters.top,
|
|
1932
2037
|
Parameters.filter,
|
|
1933
2038
|
Parameters.apiVersion2,
|
|
1934
|
-
Parameters.
|
|
2039
|
+
Parameters.from,
|
|
1935
2040
|
Parameters.to
|
|
1936
2041
|
],
|
|
1937
2042
|
urlParameters: [
|
|
@@ -1962,7 +2067,7 @@ const listQueryResultsForResourceGroupLevelPolicyAssignmentOperationSpec: coreCl
|
|
|
1962
2067
|
Parameters.apiVersion2,
|
|
1963
2068
|
Parameters.orderBy,
|
|
1964
2069
|
Parameters.select,
|
|
1965
|
-
Parameters.
|
|
2070
|
+
Parameters.from,
|
|
1966
2071
|
Parameters.to,
|
|
1967
2072
|
Parameters.apply,
|
|
1968
2073
|
Parameters.skipToken
|
|
@@ -1994,7 +2099,7 @@ const summarizeForResourceGroupLevelPolicyAssignmentOperationSpec: coreClient.Op
|
|
|
1994
2099
|
Parameters.top,
|
|
1995
2100
|
Parameters.filter,
|
|
1996
2101
|
Parameters.apiVersion2,
|
|
1997
|
-
Parameters.
|
|
2102
|
+
Parameters.from,
|
|
1998
2103
|
Parameters.to
|
|
1999
2104
|
],
|
|
2000
2105
|
urlParameters: [
|
|
@@ -2019,17 +2124,6 @@ const listQueryResultsForManagementGroupNextOperationSpec: coreClient.OperationS
|
|
|
2019
2124
|
bodyMapper: Mappers.QueryFailure
|
|
2020
2125
|
}
|
|
2021
2126
|
},
|
|
2022
|
-
queryParameters: [
|
|
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
|
|
2032
|
-
],
|
|
2033
2127
|
urlParameters: [
|
|
2034
2128
|
Parameters.$host,
|
|
2035
2129
|
Parameters.managementGroupsNamespace,
|
|
@@ -2051,17 +2145,6 @@ const listQueryResultsForSubscriptionNextOperationSpec: coreClient.OperationSpec
|
|
|
2051
2145
|
bodyMapper: Mappers.QueryFailure
|
|
2052
2146
|
}
|
|
2053
2147
|
},
|
|
2054
|
-
queryParameters: [
|
|
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
|
-
],
|
|
2065
2148
|
urlParameters: [
|
|
2066
2149
|
Parameters.$host,
|
|
2067
2150
|
Parameters.nextLink,
|
|
@@ -2082,17 +2165,6 @@ const listQueryResultsForResourceGroupNextOperationSpec: coreClient.OperationSpe
|
|
|
2082
2165
|
bodyMapper: Mappers.QueryFailure
|
|
2083
2166
|
}
|
|
2084
2167
|
},
|
|
2085
|
-
queryParameters: [
|
|
2086
|
-
Parameters.top,
|
|
2087
|
-
Parameters.filter,
|
|
2088
|
-
Parameters.apiVersion2,
|
|
2089
|
-
Parameters.orderBy,
|
|
2090
|
-
Parameters.select,
|
|
2091
|
-
Parameters.fromParam,
|
|
2092
|
-
Parameters.to,
|
|
2093
|
-
Parameters.apply,
|
|
2094
|
-
Parameters.skipToken
|
|
2095
|
-
],
|
|
2096
2168
|
urlParameters: [
|
|
2097
2169
|
Parameters.$host,
|
|
2098
2170
|
Parameters.resourceGroupName,
|
|
@@ -2114,18 +2186,6 @@ const listQueryResultsForResourceNextOperationSpec: coreClient.OperationSpec = {
|
|
|
2114
2186
|
bodyMapper: Mappers.QueryFailure
|
|
2115
2187
|
}
|
|
2116
2188
|
},
|
|
2117
|
-
queryParameters: [
|
|
2118
|
-
Parameters.top,
|
|
2119
|
-
Parameters.filter,
|
|
2120
|
-
Parameters.apiVersion2,
|
|
2121
|
-
Parameters.orderBy,
|
|
2122
|
-
Parameters.select,
|
|
2123
|
-
Parameters.fromParam,
|
|
2124
|
-
Parameters.to,
|
|
2125
|
-
Parameters.apply,
|
|
2126
|
-
Parameters.skipToken,
|
|
2127
|
-
Parameters.expand
|
|
2128
|
-
],
|
|
2129
2189
|
urlParameters: [
|
|
2130
2190
|
Parameters.$host,
|
|
2131
2191
|
Parameters.resourceId,
|
|
@@ -2146,17 +2206,6 @@ const listQueryResultsForPolicySetDefinitionNextOperationSpec: coreClient.Operat
|
|
|
2146
2206
|
bodyMapper: Mappers.QueryFailure
|
|
2147
2207
|
}
|
|
2148
2208
|
},
|
|
2149
|
-
queryParameters: [
|
|
2150
|
-
Parameters.top,
|
|
2151
|
-
Parameters.filter,
|
|
2152
|
-
Parameters.apiVersion2,
|
|
2153
|
-
Parameters.orderBy,
|
|
2154
|
-
Parameters.select,
|
|
2155
|
-
Parameters.fromParam,
|
|
2156
|
-
Parameters.to,
|
|
2157
|
-
Parameters.apply,
|
|
2158
|
-
Parameters.skipToken
|
|
2159
|
-
],
|
|
2160
2209
|
urlParameters: [
|
|
2161
2210
|
Parameters.$host,
|
|
2162
2211
|
Parameters.nextLink,
|
|
@@ -2179,17 +2228,6 @@ const listQueryResultsForPolicyDefinitionNextOperationSpec: coreClient.Operation
|
|
|
2179
2228
|
bodyMapper: Mappers.QueryFailure
|
|
2180
2229
|
}
|
|
2181
2230
|
},
|
|
2182
|
-
queryParameters: [
|
|
2183
|
-
Parameters.top,
|
|
2184
|
-
Parameters.filter,
|
|
2185
|
-
Parameters.apiVersion2,
|
|
2186
|
-
Parameters.orderBy,
|
|
2187
|
-
Parameters.select,
|
|
2188
|
-
Parameters.fromParam,
|
|
2189
|
-
Parameters.to,
|
|
2190
|
-
Parameters.apply,
|
|
2191
|
-
Parameters.skipToken
|
|
2192
|
-
],
|
|
2193
2231
|
urlParameters: [
|
|
2194
2232
|
Parameters.$host,
|
|
2195
2233
|
Parameters.nextLink,
|
|
@@ -2212,17 +2250,6 @@ const listQueryResultsForSubscriptionLevelPolicyAssignmentNextOperationSpec: cor
|
|
|
2212
2250
|
bodyMapper: Mappers.QueryFailure
|
|
2213
2251
|
}
|
|
2214
2252
|
},
|
|
2215
|
-
queryParameters: [
|
|
2216
|
-
Parameters.top,
|
|
2217
|
-
Parameters.filter,
|
|
2218
|
-
Parameters.apiVersion2,
|
|
2219
|
-
Parameters.orderBy,
|
|
2220
|
-
Parameters.select,
|
|
2221
|
-
Parameters.fromParam,
|
|
2222
|
-
Parameters.to,
|
|
2223
|
-
Parameters.apply,
|
|
2224
|
-
Parameters.skipToken
|
|
2225
|
-
],
|
|
2226
2253
|
urlParameters: [
|
|
2227
2254
|
Parameters.$host,
|
|
2228
2255
|
Parameters.nextLink,
|
|
@@ -2245,17 +2272,6 @@ const listQueryResultsForResourceGroupLevelPolicyAssignmentNextOperationSpec: co
|
|
|
2245
2272
|
bodyMapper: Mappers.QueryFailure
|
|
2246
2273
|
}
|
|
2247
2274
|
},
|
|
2248
|
-
queryParameters: [
|
|
2249
|
-
Parameters.top,
|
|
2250
|
-
Parameters.filter,
|
|
2251
|
-
Parameters.apiVersion2,
|
|
2252
|
-
Parameters.orderBy,
|
|
2253
|
-
Parameters.select,
|
|
2254
|
-
Parameters.fromParam,
|
|
2255
|
-
Parameters.to,
|
|
2256
|
-
Parameters.apply,
|
|
2257
|
-
Parameters.skipToken
|
|
2258
|
-
],
|
|
2259
2275
|
urlParameters: [
|
|
2260
2276
|
Parameters.$host,
|
|
2261
2277
|
Parameters.resourceGroupName,
|