@azure/arm-policyinsights 3.2.0 → 5.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +11 -0
- package/{LICENSE.txt → LICENSE} +2 -2
- package/README.md +72 -79
- package/dist/index.js +8639 -0
- package/dist/index.js.map +1 -0
- package/dist/index.min.js +1 -0
- package/dist/index.min.js.map +1 -0
- package/dist-esm/src/index.d.ts +5 -0
- package/dist-esm/src/index.d.ts.map +1 -0
- package/dist-esm/src/index.js +12 -0
- package/dist-esm/src/index.js.map +1 -0
- package/dist-esm/src/lroImpl.d.ts +16 -0
- package/dist-esm/src/lroImpl.d.ts.map +1 -0
- package/dist-esm/src/lroImpl.js +29 -0
- package/dist-esm/src/lroImpl.js.map +1 -0
- package/dist-esm/src/models/index.d.ts +1870 -0
- package/dist-esm/src/models/index.d.ts.map +1 -0
- package/dist-esm/src/models/index.js +50 -0
- package/dist-esm/src/models/index.js.map +1 -0
- package/dist-esm/src/models/mappers.d.ts +60 -0
- package/dist-esm/src/models/mappers.d.ts.map +1 -0
- package/{esm → dist-esm/src}/models/mappers.js +1336 -589
- package/dist-esm/src/models/mappers.js.map +1 -0
- package/dist-esm/src/models/parameters.d.ts +42 -0
- package/dist-esm/src/models/parameters.d.ts.map +1 -0
- package/{esm → dist-esm/src}/models/parameters.js +202 -166
- package/dist-esm/src/models/parameters.js.map +1 -0
- package/dist-esm/src/operations/attestations.d.ts +161 -0
- package/dist-esm/src/operations/attestations.d.ts.map +1 -0
- package/dist-esm/src/operations/attestations.js +747 -0
- package/dist-esm/src/operations/attestations.js.map +1 -0
- package/{esm → dist-esm/src}/operations/index.d.ts +2 -0
- package/dist-esm/src/operations/index.d.ts.map +1 -0
- package/{esm → dist-esm/src}/operations/index.js +5 -5
- package/dist-esm/src/operations/index.js.map +1 -0
- package/dist-esm/src/operations/operations.d.ts +18 -0
- package/dist-esm/src/operations/operations.d.ts.map +1 -0
- package/dist-esm/src/operations/operations.js +46 -0
- package/dist-esm/src/operations/operations.js.map +1 -0
- package/dist-esm/src/operations/policyEvents.d.ts +208 -0
- package/dist-esm/src/operations/policyEvents.d.ts.map +1 -0
- package/dist-esm/src/operations/policyEvents.js +1097 -0
- package/dist-esm/src/operations/policyEvents.js.map +1 -0
- package/dist-esm/src/operations/policyMetadataOperations.d.ts +38 -0
- package/dist-esm/src/operations/policyMetadataOperations.d.ts.map +1 -0
- package/dist-esm/src/operations/policyMetadataOperations.js +144 -0
- package/dist-esm/src/operations/policyMetadataOperations.js.map +1 -0
- package/dist-esm/src/operations/policyRestrictions.d.ts +27 -0
- package/dist-esm/src/operations/policyRestrictions.d.ts.map +1 -0
- package/dist-esm/src/operations/policyRestrictions.js +81 -0
- package/dist-esm/src/operations/policyRestrictions.js.map +1 -0
- package/dist-esm/src/operations/policyStates.d.ts +361 -0
- package/dist-esm/src/operations/policyStates.d.ts.map +1 -0
- package/dist-esm/src/operations/policyStates.js +1632 -0
- package/dist-esm/src/operations/policyStates.js.map +1 -0
- package/dist-esm/src/operations/policyTrackedResources.d.ts +99 -0
- package/dist-esm/src/operations/policyTrackedResources.d.ts.map +1 -0
- package/dist-esm/src/operations/policyTrackedResources.js +458 -0
- package/dist-esm/src/operations/policyTrackedResources.js.map +1 -0
- package/dist-esm/src/operations/remediations.d.ts +304 -0
- package/dist-esm/src/operations/remediations.d.ts.map +1 -0
- package/dist-esm/src/operations/remediations.js +1377 -0
- package/dist-esm/src/operations/remediations.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/attestations.d.ts +110 -0
- package/dist-esm/src/operationsInterfaces/attestations.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/attestations.js +9 -0
- package/dist-esm/src/operationsInterfaces/attestations.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts +9 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.js +16 -0
- package/dist-esm/src/operationsInterfaces/index.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/operations.d.ts +10 -0
- package/dist-esm/src/operationsInterfaces/operations.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/operations.js +9 -0
- package/dist-esm/src/operationsInterfaces/operations.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/policyEvents.d.ts +60 -0
- package/dist-esm/src/operationsInterfaces/policyEvents.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/policyEvents.js +9 -0
- package/dist-esm/src/operationsInterfaces/policyEvents.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/policyMetadataOperations.d.ts +17 -0
- package/dist-esm/src/operationsInterfaces/policyMetadataOperations.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/policyMetadataOperations.js +9 -0
- package/dist-esm/src/operationsInterfaces/policyMetadataOperations.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/policyRestrictions.d.ts +19 -0
- package/dist-esm/src/operationsInterfaces/policyRestrictions.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/policyRestrictions.js +9 -0
- package/dist-esm/src/operationsInterfaces/policyRestrictions.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/policyStates.d.ts +165 -0
- package/dist-esm/src/operationsInterfaces/policyStates.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/policyStates.js +9 -0
- package/dist-esm/src/operationsInterfaces/policyStates.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/policyTrackedResources.d.ts +29 -0
- package/dist-esm/src/operationsInterfaces/policyTrackedResources.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/policyTrackedResources.js +9 -0
- package/dist-esm/src/operationsInterfaces/policyTrackedResources.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/remediations.d.ts +168 -0
- package/dist-esm/src/operationsInterfaces/remediations.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/remediations.js +9 -0
- package/dist-esm/src/operationsInterfaces/remediations.js.map +1 -0
- package/dist-esm/src/policyInsightsClient.d.ts +24 -0
- package/dist-esm/src/policyInsightsClient.d.ts.map +1 -0
- package/dist-esm/src/policyInsightsClient.js +57 -0
- package/dist-esm/src/policyInsightsClient.js.map +1 -0
- package/dist-esm/test/sampleTest.d.ts +2 -0
- package/dist-esm/test/sampleTest.d.ts.map +1 -0
- package/dist-esm/test/sampleTest.js +40 -0
- package/dist-esm/test/sampleTest.js.map +1 -0
- package/package.json +82 -22
- package/review/arm-policyinsights.api.md +1525 -0
- package/rollup.config.js +181 -30
- package/src/index.ts +12 -0
- package/src/lroImpl.ts +34 -0
- package/src/models/index.ts +1645 -2293
- package/src/models/mappers.ts +1579 -795
- package/src/models/parameters.ts +250 -167
- package/src/operations/attestations.ts +999 -0
- package/src/operations/index.ts +5 -5
- package/src/operations/operations.ts +29 -44
- package/src/operations/policyEvents.ts +1158 -327
- package/src/operations/policyMetadataOperations.ts +108 -113
- package/src/operations/policyRestrictions.ts +111 -0
- package/src/operations/policyStates.ts +1751 -750
- package/src/operations/policyTrackedResources.ts +416 -284
- package/src/operations/remediations.ts +1208 -1248
- package/src/operationsInterfaces/attestations.ts +212 -0
- package/src/operationsInterfaces/index.ts +16 -0
- package/src/operationsInterfaces/operations.ts +21 -0
- package/src/operationsInterfaces/policyEvents.ts +109 -0
- package/src/operationsInterfaces/policyMetadataOperations.ts +36 -0
- package/src/operationsInterfaces/policyRestrictions.ts +40 -0
- package/src/operationsInterfaces/policyStates.ts +287 -0
- package/src/operationsInterfaces/policyTrackedResources.ts +55 -0
- package/src/operationsInterfaces/remediations.ts +310 -0
- package/src/policyInsightsClient.ts +93 -39
- package/tsconfig.json +20 -7
- package/types/arm-policyinsights.d.ts +2728 -0
- package/types/tsdoc-metadata.json +11 -0
- package/dist/arm-policyinsights.js +0 -4909
- package/dist/arm-policyinsights.js.map +0 -1
- package/dist/arm-policyinsights.min.js +0 -1
- package/dist/arm-policyinsights.min.js.map +0 -1
- package/esm/models/index.d.ts +0 -2651
- package/esm/models/index.d.ts.map +0 -1
- package/esm/models/index.js +0 -8
- package/esm/models/index.js.map +0 -1
- package/esm/models/mappers.d.ts +0 -40
- package/esm/models/mappers.d.ts.map +0 -1
- package/esm/models/mappers.js.map +0 -1
- package/esm/models/operationsMappers.d.ts +0 -2
- package/esm/models/operationsMappers.d.ts.map +0 -1
- package/esm/models/operationsMappers.js +0 -9
- package/esm/models/operationsMappers.js.map +0 -1
- package/esm/models/parameters.d.ts +0 -33
- package/esm/models/parameters.d.ts.map +0 -1
- package/esm/models/parameters.js.map +0 -1
- package/esm/models/policyEventsMappers.d.ts +0 -2
- package/esm/models/policyEventsMappers.d.ts.map +0 -1
- package/esm/models/policyEventsMappers.js +0 -9
- package/esm/models/policyEventsMappers.js.map +0 -1
- package/esm/models/policyMetadataOperationsMappers.d.ts +0 -2
- package/esm/models/policyMetadataOperationsMappers.d.ts.map +0 -1
- package/esm/models/policyMetadataOperationsMappers.js +0 -9
- package/esm/models/policyMetadataOperationsMappers.js.map +0 -1
- package/esm/models/policyStatesMappers.d.ts +0 -2
- package/esm/models/policyStatesMappers.d.ts.map +0 -1
- package/esm/models/policyStatesMappers.js +0 -9
- package/esm/models/policyStatesMappers.js.map +0 -1
- package/esm/models/policyTrackedResourcesMappers.d.ts +0 -2
- package/esm/models/policyTrackedResourcesMappers.d.ts.map +0 -1
- package/esm/models/policyTrackedResourcesMappers.js +0 -9
- package/esm/models/policyTrackedResourcesMappers.js.map +0 -1
- package/esm/models/remediationsMappers.d.ts +0 -2
- package/esm/models/remediationsMappers.d.ts.map +0 -1
- package/esm/models/remediationsMappers.js +0 -9
- package/esm/models/remediationsMappers.js.map +0 -1
- package/esm/operations/index.d.ts.map +0 -1
- package/esm/operations/index.js.map +0 -1
- package/esm/operations/operations.d.ts +0 -28
- package/esm/operations/operations.d.ts.map +0 -1
- package/esm/operations/operations.js +0 -51
- package/esm/operations/operations.js.map +0 -1
- package/esm/operations/policyEvents.d.ts +0 -198
- package/esm/operations/policyEvents.d.ts.map +0 -1
- package/esm/operations/policyEvents.js +0 -365
- package/esm/operations/policyEvents.js.map +0 -1
- package/esm/operations/policyMetadataOperations.d.ts +0 -64
- package/esm/operations/policyMetadataOperations.d.ts.map +0 -1
- package/esm/operations/policyMetadataOperations.js +0 -106
- package/esm/operations/policyMetadataOperations.js.map +0 -1
- package/esm/operations/policyStates.d.ts +0 -442
- package/esm/operations/policyStates.d.ts.map +0 -1
- package/esm/operations/policyStates.js +0 -712
- package/esm/operations/policyStates.js.map +0 -1
- package/esm/operations/policyTrackedResources.d.ts +0 -160
- package/esm/operations/policyTrackedResources.d.ts.map +0 -1
- package/esm/operations/policyTrackedResources.js +0 -258
- package/esm/operations/policyTrackedResources.js.map +0 -1
- package/esm/operations/remediations.d.ts +0 -679
- package/esm/operations/remediations.d.ts.map +0 -1
- package/esm/operations/remediations.js +0 -1014
- package/esm/operations/remediations.js.map +0 -1
- package/esm/policyInsightsClient.d.ts +0 -22
- package/esm/policyInsightsClient.d.ts.map +0 -1
- package/esm/policyInsightsClient.js +0 -37
- package/esm/policyInsightsClient.js.map +0 -1
- package/esm/policyInsightsClientContext.d.ts +0 -13
- package/esm/policyInsightsClientContext.d.ts.map +0 -1
- package/esm/policyInsightsClientContext.js +0 -50
- package/esm/policyInsightsClientContext.js.map +0 -1
- package/src/models/operationsMappers.ts +0 -15
- package/src/models/policyEventsMappers.ts +0 -14
- package/src/models/policyMetadataOperationsMappers.ts +0 -16
- package/src/models/policyStatesMappers.ts +0 -24
- package/src/models/policyTrackedResourcesMappers.ts +0 -16
- package/src/models/remediationsMappers.ts +0 -20
- package/src/policyInsightsClientContext.ts +0 -54
|
@@ -1,28 +1,96 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) Microsoft Corporation.
|
|
3
|
-
* Licensed under the MIT License.
|
|
4
|
-
* license information.
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
5
4
|
*
|
|
6
5
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
7
|
-
* Changes may cause incorrect behavior and will be lost if the code is
|
|
8
|
-
* regenerated.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
9
7
|
*/
|
|
10
8
|
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import * as
|
|
9
|
+
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
10
|
+
import { Remediations } 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 {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
14
|
+
import { PolicyInsightsClient } from "../policyInsightsClient";
|
|
15
|
+
import {
|
|
16
|
+
RemediationDeployment,
|
|
17
|
+
RemediationsListDeploymentsAtManagementGroupNextOptionalParams,
|
|
18
|
+
RemediationsListDeploymentsAtManagementGroupOptionalParams,
|
|
19
|
+
Remediation,
|
|
20
|
+
RemediationsListForManagementGroupNextOptionalParams,
|
|
21
|
+
RemediationsListForManagementGroupOptionalParams,
|
|
22
|
+
RemediationsListDeploymentsAtSubscriptionNextOptionalParams,
|
|
23
|
+
RemediationsListDeploymentsAtSubscriptionOptionalParams,
|
|
24
|
+
RemediationsListForSubscriptionNextOptionalParams,
|
|
25
|
+
RemediationsListForSubscriptionOptionalParams,
|
|
26
|
+
RemediationsListDeploymentsAtResourceGroupNextOptionalParams,
|
|
27
|
+
RemediationsListDeploymentsAtResourceGroupOptionalParams,
|
|
28
|
+
RemediationsListForResourceGroupNextOptionalParams,
|
|
29
|
+
RemediationsListForResourceGroupOptionalParams,
|
|
30
|
+
RemediationsListDeploymentsAtResourceNextOptionalParams,
|
|
31
|
+
RemediationsListDeploymentsAtResourceOptionalParams,
|
|
32
|
+
RemediationsListForResourceNextOptionalParams,
|
|
33
|
+
RemediationsListForResourceOptionalParams,
|
|
34
|
+
RemediationsListDeploymentsAtManagementGroupResponse,
|
|
35
|
+
RemediationsCancelAtManagementGroupOptionalParams,
|
|
36
|
+
RemediationsCancelAtManagementGroupResponse,
|
|
37
|
+
RemediationsListForManagementGroupResponse,
|
|
38
|
+
RemediationsCreateOrUpdateAtManagementGroupOptionalParams,
|
|
39
|
+
RemediationsCreateOrUpdateAtManagementGroupResponse,
|
|
40
|
+
RemediationsGetAtManagementGroupOptionalParams,
|
|
41
|
+
RemediationsGetAtManagementGroupResponse,
|
|
42
|
+
RemediationsDeleteAtManagementGroupOptionalParams,
|
|
43
|
+
RemediationsDeleteAtManagementGroupResponse,
|
|
44
|
+
RemediationsListDeploymentsAtSubscriptionResponse,
|
|
45
|
+
RemediationsCancelAtSubscriptionOptionalParams,
|
|
46
|
+
RemediationsCancelAtSubscriptionResponse,
|
|
47
|
+
RemediationsListForSubscriptionResponse,
|
|
48
|
+
RemediationsCreateOrUpdateAtSubscriptionOptionalParams,
|
|
49
|
+
RemediationsCreateOrUpdateAtSubscriptionResponse,
|
|
50
|
+
RemediationsGetAtSubscriptionOptionalParams,
|
|
51
|
+
RemediationsGetAtSubscriptionResponse,
|
|
52
|
+
RemediationsDeleteAtSubscriptionOptionalParams,
|
|
53
|
+
RemediationsDeleteAtSubscriptionResponse,
|
|
54
|
+
RemediationsListDeploymentsAtResourceGroupResponse,
|
|
55
|
+
RemediationsCancelAtResourceGroupOptionalParams,
|
|
56
|
+
RemediationsCancelAtResourceGroupResponse,
|
|
57
|
+
RemediationsListForResourceGroupResponse,
|
|
58
|
+
RemediationsCreateOrUpdateAtResourceGroupOptionalParams,
|
|
59
|
+
RemediationsCreateOrUpdateAtResourceGroupResponse,
|
|
60
|
+
RemediationsGetAtResourceGroupOptionalParams,
|
|
61
|
+
RemediationsGetAtResourceGroupResponse,
|
|
62
|
+
RemediationsDeleteAtResourceGroupOptionalParams,
|
|
63
|
+
RemediationsDeleteAtResourceGroupResponse,
|
|
64
|
+
RemediationsListDeploymentsAtResourceResponse,
|
|
65
|
+
RemediationsCancelAtResourceOptionalParams,
|
|
66
|
+
RemediationsCancelAtResourceResponse,
|
|
67
|
+
RemediationsListForResourceResponse,
|
|
68
|
+
RemediationsCreateOrUpdateAtResourceOptionalParams,
|
|
69
|
+
RemediationsCreateOrUpdateAtResourceResponse,
|
|
70
|
+
RemediationsGetAtResourceOptionalParams,
|
|
71
|
+
RemediationsGetAtResourceResponse,
|
|
72
|
+
RemediationsDeleteAtResourceOptionalParams,
|
|
73
|
+
RemediationsDeleteAtResourceResponse,
|
|
74
|
+
RemediationsListDeploymentsAtManagementGroupNextResponse,
|
|
75
|
+
RemediationsListForManagementGroupNextResponse,
|
|
76
|
+
RemediationsListDeploymentsAtSubscriptionNextResponse,
|
|
77
|
+
RemediationsListForSubscriptionNextResponse,
|
|
78
|
+
RemediationsListDeploymentsAtResourceGroupNextResponse,
|
|
79
|
+
RemediationsListForResourceGroupNextResponse,
|
|
80
|
+
RemediationsListDeploymentsAtResourceNextResponse,
|
|
81
|
+
RemediationsListForResourceNextResponse
|
|
82
|
+
} from "../models";
|
|
83
|
+
|
|
84
|
+
/// <reference lib="esnext.asynciterable" />
|
|
85
|
+
/** Class containing Remediations operations. */
|
|
86
|
+
export class RemediationsImpl implements Remediations {
|
|
87
|
+
private readonly client: PolicyInsightsClient;
|
|
88
|
+
|
|
89
|
+
/**
|
|
90
|
+
* Initialize a new instance of the class Remediations class.
|
|
91
|
+
* @param client Reference to the service client
|
|
92
|
+
*/
|
|
93
|
+
constructor(client: PolicyInsightsClient) {
|
|
26
94
|
this.client = client;
|
|
27
95
|
}
|
|
28
96
|
|
|
@@ -30,692 +98,825 @@ export class Remediations {
|
|
|
30
98
|
* Gets all deployments for a remediation at management group scope.
|
|
31
99
|
* @param managementGroupId Management group ID.
|
|
32
100
|
* @param remediationName The name of the remediation.
|
|
33
|
-
* @param
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
*/
|
|
49
|
-
listDeploymentsAtManagementGroup(managementGroupId: string, remediationName: string, options: Models.RemediationsListDeploymentsAtManagementGroupOptionalParams, callback: msRest.ServiceCallback<Models.RemediationDeploymentsListResult>): void;
|
|
50
|
-
listDeploymentsAtManagementGroup(managementGroupId: string, remediationName: string, options?: Models.RemediationsListDeploymentsAtManagementGroupOptionalParams | msRest.ServiceCallback<Models.RemediationDeploymentsListResult>, callback?: msRest.ServiceCallback<Models.RemediationDeploymentsListResult>): Promise<Models.RemediationsListDeploymentsAtManagementGroupResponse> {
|
|
51
|
-
return this.client.sendOperationRequest(
|
|
52
|
-
{
|
|
53
|
-
managementGroupId,
|
|
54
|
-
remediationName,
|
|
55
|
-
options
|
|
101
|
+
* @param options The options parameters.
|
|
102
|
+
*/
|
|
103
|
+
public listDeploymentsAtManagementGroup(
|
|
104
|
+
managementGroupId: string,
|
|
105
|
+
remediationName: string,
|
|
106
|
+
options?: RemediationsListDeploymentsAtManagementGroupOptionalParams
|
|
107
|
+
): PagedAsyncIterableIterator<RemediationDeployment> {
|
|
108
|
+
const iter = this.listDeploymentsAtManagementGroupPagingAll(
|
|
109
|
+
managementGroupId,
|
|
110
|
+
remediationName,
|
|
111
|
+
options
|
|
112
|
+
);
|
|
113
|
+
return {
|
|
114
|
+
next() {
|
|
115
|
+
return iter.next();
|
|
56
116
|
},
|
|
57
|
-
|
|
58
|
-
|
|
117
|
+
[Symbol.asyncIterator]() {
|
|
118
|
+
return this;
|
|
119
|
+
},
|
|
120
|
+
byPage: () => {
|
|
121
|
+
return this.listDeploymentsAtManagementGroupPagingPage(
|
|
122
|
+
managementGroupId,
|
|
123
|
+
remediationName,
|
|
124
|
+
options
|
|
125
|
+
);
|
|
126
|
+
}
|
|
127
|
+
};
|
|
59
128
|
}
|
|
60
129
|
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
/**
|
|
76
|
-
* @param managementGroupId Management group ID.
|
|
77
|
-
* @param remediationName The name of the remediation.
|
|
78
|
-
* @param options The optional parameters
|
|
79
|
-
* @param callback The callback
|
|
80
|
-
*/
|
|
81
|
-
cancelAtManagementGroup(managementGroupId: string, remediationName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.Remediation>): void;
|
|
82
|
-
cancelAtManagementGroup(managementGroupId: string, remediationName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.Remediation>, callback?: msRest.ServiceCallback<Models.Remediation>): Promise<Models.RemediationsCancelAtManagementGroupResponse> {
|
|
83
|
-
return this.client.sendOperationRequest(
|
|
84
|
-
{
|
|
130
|
+
private async *listDeploymentsAtManagementGroupPagingPage(
|
|
131
|
+
managementGroupId: string,
|
|
132
|
+
remediationName: string,
|
|
133
|
+
options?: RemediationsListDeploymentsAtManagementGroupOptionalParams
|
|
134
|
+
): AsyncIterableIterator<RemediationDeployment[]> {
|
|
135
|
+
let result = await this._listDeploymentsAtManagementGroup(
|
|
136
|
+
managementGroupId,
|
|
137
|
+
remediationName,
|
|
138
|
+
options
|
|
139
|
+
);
|
|
140
|
+
yield result.value || [];
|
|
141
|
+
let continuationToken = result.nextLink;
|
|
142
|
+
while (continuationToken) {
|
|
143
|
+
result = await this._listDeploymentsAtManagementGroupNext(
|
|
85
144
|
managementGroupId,
|
|
86
145
|
remediationName,
|
|
146
|
+
continuationToken,
|
|
87
147
|
options
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
148
|
+
);
|
|
149
|
+
continuationToken = result.nextLink;
|
|
150
|
+
yield result.value || [];
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
private async *listDeploymentsAtManagementGroupPagingAll(
|
|
155
|
+
managementGroupId: string,
|
|
156
|
+
remediationName: string,
|
|
157
|
+
options?: RemediationsListDeploymentsAtManagementGroupOptionalParams
|
|
158
|
+
): AsyncIterableIterator<RemediationDeployment> {
|
|
159
|
+
for await (const page of this.listDeploymentsAtManagementGroupPagingPage(
|
|
160
|
+
managementGroupId,
|
|
161
|
+
remediationName,
|
|
162
|
+
options
|
|
163
|
+
)) {
|
|
164
|
+
yield* page;
|
|
165
|
+
}
|
|
91
166
|
}
|
|
92
167
|
|
|
93
168
|
/**
|
|
94
169
|
* Gets all remediations for the management group.
|
|
95
170
|
* @param managementGroupId Management group ID.
|
|
96
|
-
* @param
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
return this.client.sendOperationRequest(
|
|
113
|
-
{
|
|
114
|
-
managementGroupId,
|
|
115
|
-
options
|
|
171
|
+
* @param options The options parameters.
|
|
172
|
+
*/
|
|
173
|
+
public listForManagementGroup(
|
|
174
|
+
managementGroupId: string,
|
|
175
|
+
options?: RemediationsListForManagementGroupOptionalParams
|
|
176
|
+
): PagedAsyncIterableIterator<Remediation> {
|
|
177
|
+
const iter = this.listForManagementGroupPagingAll(
|
|
178
|
+
managementGroupId,
|
|
179
|
+
options
|
|
180
|
+
);
|
|
181
|
+
return {
|
|
182
|
+
next() {
|
|
183
|
+
return iter.next();
|
|
184
|
+
},
|
|
185
|
+
[Symbol.asyncIterator]() {
|
|
186
|
+
return this;
|
|
116
187
|
},
|
|
117
|
-
|
|
118
|
-
|
|
188
|
+
byPage: () => {
|
|
189
|
+
return this.listForManagementGroupPagingPage(
|
|
190
|
+
managementGroupId,
|
|
191
|
+
options
|
|
192
|
+
);
|
|
193
|
+
}
|
|
194
|
+
};
|
|
119
195
|
}
|
|
120
196
|
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
/**
|
|
131
|
-
* @param managementGroupId Management group ID.
|
|
132
|
-
* @param remediationName The name of the remediation.
|
|
133
|
-
* @param parameters The remediation parameters.
|
|
134
|
-
* @param callback The callback
|
|
135
|
-
*/
|
|
136
|
-
createOrUpdateAtManagementGroup(managementGroupId: string, remediationName: string, parameters: Models.Remediation, callback: msRest.ServiceCallback<Models.Remediation>): void;
|
|
137
|
-
/**
|
|
138
|
-
* @param managementGroupId Management group ID.
|
|
139
|
-
* @param remediationName The name of the remediation.
|
|
140
|
-
* @param parameters The remediation parameters.
|
|
141
|
-
* @param options The optional parameters
|
|
142
|
-
* @param callback The callback
|
|
143
|
-
*/
|
|
144
|
-
createOrUpdateAtManagementGroup(managementGroupId: string, remediationName: string, parameters: Models.Remediation, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.Remediation>): void;
|
|
145
|
-
createOrUpdateAtManagementGroup(managementGroupId: string, remediationName: string, parameters: Models.Remediation, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.Remediation>, callback?: msRest.ServiceCallback<Models.Remediation>): Promise<Models.RemediationsCreateOrUpdateAtManagementGroupResponse> {
|
|
146
|
-
return this.client.sendOperationRequest(
|
|
147
|
-
{
|
|
197
|
+
private async *listForManagementGroupPagingPage(
|
|
198
|
+
managementGroupId: string,
|
|
199
|
+
options?: RemediationsListForManagementGroupOptionalParams
|
|
200
|
+
): AsyncIterableIterator<Remediation[]> {
|
|
201
|
+
let result = await this._listForManagementGroup(managementGroupId, options);
|
|
202
|
+
yield result.value || [];
|
|
203
|
+
let continuationToken = result.nextLink;
|
|
204
|
+
while (continuationToken) {
|
|
205
|
+
result = await this._listForManagementGroupNext(
|
|
148
206
|
managementGroupId,
|
|
149
|
-
|
|
150
|
-
parameters,
|
|
207
|
+
continuationToken,
|
|
151
208
|
options
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
209
|
+
);
|
|
210
|
+
continuationToken = result.nextLink;
|
|
211
|
+
yield result.value || [];
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
private async *listForManagementGroupPagingAll(
|
|
216
|
+
managementGroupId: string,
|
|
217
|
+
options?: RemediationsListForManagementGroupOptionalParams
|
|
218
|
+
): AsyncIterableIterator<Remediation> {
|
|
219
|
+
for await (const page of this.listForManagementGroupPagingPage(
|
|
220
|
+
managementGroupId,
|
|
221
|
+
options
|
|
222
|
+
)) {
|
|
223
|
+
yield* page;
|
|
224
|
+
}
|
|
155
225
|
}
|
|
156
226
|
|
|
157
227
|
/**
|
|
158
|
-
* Gets
|
|
159
|
-
* @param managementGroupId Management group ID.
|
|
160
|
-
* @param remediationName The name of the remediation.
|
|
161
|
-
* @param [options] The optional parameters
|
|
162
|
-
* @returns Promise<Models.RemediationsGetAtManagementGroupResponse>
|
|
163
|
-
*/
|
|
164
|
-
getAtManagementGroup(managementGroupId: string, remediationName: string, options?: msRest.RequestOptionsBase): Promise<Models.RemediationsGetAtManagementGroupResponse>;
|
|
165
|
-
/**
|
|
166
|
-
* @param managementGroupId Management group ID.
|
|
167
|
-
* @param remediationName The name of the remediation.
|
|
168
|
-
* @param callback The callback
|
|
169
|
-
*/
|
|
170
|
-
getAtManagementGroup(managementGroupId: string, remediationName: string, callback: msRest.ServiceCallback<Models.Remediation>): void;
|
|
171
|
-
/**
|
|
172
|
-
* @param managementGroupId Management group ID.
|
|
228
|
+
* Gets all deployments for a remediation at subscription scope.
|
|
173
229
|
* @param remediationName The name of the remediation.
|
|
174
|
-
* @param options The
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
230
|
+
* @param options The options parameters.
|
|
231
|
+
*/
|
|
232
|
+
public listDeploymentsAtSubscription(
|
|
233
|
+
remediationName: string,
|
|
234
|
+
options?: RemediationsListDeploymentsAtSubscriptionOptionalParams
|
|
235
|
+
): PagedAsyncIterableIterator<RemediationDeployment> {
|
|
236
|
+
const iter = this.listDeploymentsAtSubscriptionPagingAll(
|
|
237
|
+
remediationName,
|
|
238
|
+
options
|
|
239
|
+
);
|
|
240
|
+
return {
|
|
241
|
+
next() {
|
|
242
|
+
return iter.next();
|
|
243
|
+
},
|
|
244
|
+
[Symbol.asyncIterator]() {
|
|
245
|
+
return this;
|
|
184
246
|
},
|
|
185
|
-
|
|
186
|
-
|
|
247
|
+
byPage: () => {
|
|
248
|
+
return this.listDeploymentsAtSubscriptionPagingPage(
|
|
249
|
+
remediationName,
|
|
250
|
+
options
|
|
251
|
+
);
|
|
252
|
+
}
|
|
253
|
+
};
|
|
187
254
|
}
|
|
188
255
|
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
*/
|
|
202
|
-
deleteAtManagementGroup(managementGroupId: string, remediationName: string, callback: msRest.ServiceCallback<Models.Remediation>): void;
|
|
203
|
-
/**
|
|
204
|
-
* @param managementGroupId Management group ID.
|
|
205
|
-
* @param remediationName The name of the remediation.
|
|
206
|
-
* @param options The optional parameters
|
|
207
|
-
* @param callback The callback
|
|
208
|
-
*/
|
|
209
|
-
deleteAtManagementGroup(managementGroupId: string, remediationName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.Remediation>): void;
|
|
210
|
-
deleteAtManagementGroup(managementGroupId: string, remediationName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.Remediation>, callback?: msRest.ServiceCallback<Models.Remediation>): Promise<Models.RemediationsDeleteAtManagementGroupResponse> {
|
|
211
|
-
return this.client.sendOperationRequest(
|
|
212
|
-
{
|
|
213
|
-
managementGroupId,
|
|
256
|
+
private async *listDeploymentsAtSubscriptionPagingPage(
|
|
257
|
+
remediationName: string,
|
|
258
|
+
options?: RemediationsListDeploymentsAtSubscriptionOptionalParams
|
|
259
|
+
): AsyncIterableIterator<RemediationDeployment[]> {
|
|
260
|
+
let result = await this._listDeploymentsAtSubscription(
|
|
261
|
+
remediationName,
|
|
262
|
+
options
|
|
263
|
+
);
|
|
264
|
+
yield result.value || [];
|
|
265
|
+
let continuationToken = result.nextLink;
|
|
266
|
+
while (continuationToken) {
|
|
267
|
+
result = await this._listDeploymentsAtSubscriptionNext(
|
|
214
268
|
remediationName,
|
|
269
|
+
continuationToken,
|
|
215
270
|
options
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
271
|
+
);
|
|
272
|
+
continuationToken = result.nextLink;
|
|
273
|
+
yield result.value || [];
|
|
274
|
+
}
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
private async *listDeploymentsAtSubscriptionPagingAll(
|
|
278
|
+
remediationName: string,
|
|
279
|
+
options?: RemediationsListDeploymentsAtSubscriptionOptionalParams
|
|
280
|
+
): AsyncIterableIterator<RemediationDeployment> {
|
|
281
|
+
for await (const page of this.listDeploymentsAtSubscriptionPagingPage(
|
|
282
|
+
remediationName,
|
|
283
|
+
options
|
|
284
|
+
)) {
|
|
285
|
+
yield* page;
|
|
286
|
+
}
|
|
219
287
|
}
|
|
220
288
|
|
|
221
289
|
/**
|
|
222
|
-
* Gets all
|
|
223
|
-
* @param
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
/**
|
|
236
|
-
* @param subscriptionId Microsoft Azure subscription ID.
|
|
237
|
-
* @param remediationName The name of the remediation.
|
|
238
|
-
* @param options The optional parameters
|
|
239
|
-
* @param callback The callback
|
|
240
|
-
*/
|
|
241
|
-
listDeploymentsAtSubscription(subscriptionId: string, remediationName: string, options: Models.RemediationsListDeploymentsAtSubscriptionOptionalParams, callback: msRest.ServiceCallback<Models.RemediationDeploymentsListResult>): void;
|
|
242
|
-
listDeploymentsAtSubscription(subscriptionId: string, remediationName: string, options?: Models.RemediationsListDeploymentsAtSubscriptionOptionalParams | msRest.ServiceCallback<Models.RemediationDeploymentsListResult>, callback?: msRest.ServiceCallback<Models.RemediationDeploymentsListResult>): Promise<Models.RemediationsListDeploymentsAtSubscriptionResponse> {
|
|
243
|
-
return this.client.sendOperationRequest(
|
|
244
|
-
{
|
|
245
|
-
subscriptionId,
|
|
246
|
-
remediationName,
|
|
247
|
-
options
|
|
290
|
+
* Gets all remediations for the subscription.
|
|
291
|
+
* @param options The options parameters.
|
|
292
|
+
*/
|
|
293
|
+
public listForSubscription(
|
|
294
|
+
options?: RemediationsListForSubscriptionOptionalParams
|
|
295
|
+
): PagedAsyncIterableIterator<Remediation> {
|
|
296
|
+
const iter = this.listForSubscriptionPagingAll(options);
|
|
297
|
+
return {
|
|
298
|
+
next() {
|
|
299
|
+
return iter.next();
|
|
300
|
+
},
|
|
301
|
+
[Symbol.asyncIterator]() {
|
|
302
|
+
return this;
|
|
248
303
|
},
|
|
249
|
-
|
|
250
|
-
|
|
304
|
+
byPage: () => {
|
|
305
|
+
return this.listForSubscriptionPagingPage(options);
|
|
306
|
+
}
|
|
307
|
+
};
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
private async *listForSubscriptionPagingPage(
|
|
311
|
+
options?: RemediationsListForSubscriptionOptionalParams
|
|
312
|
+
): AsyncIterableIterator<Remediation[]> {
|
|
313
|
+
let result = await this._listForSubscription(options);
|
|
314
|
+
yield result.value || [];
|
|
315
|
+
let continuationToken = result.nextLink;
|
|
316
|
+
while (continuationToken) {
|
|
317
|
+
result = await this._listForSubscriptionNext(continuationToken, options);
|
|
318
|
+
continuationToken = result.nextLink;
|
|
319
|
+
yield result.value || [];
|
|
320
|
+
}
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
private async *listForSubscriptionPagingAll(
|
|
324
|
+
options?: RemediationsListForSubscriptionOptionalParams
|
|
325
|
+
): AsyncIterableIterator<Remediation> {
|
|
326
|
+
for await (const page of this.listForSubscriptionPagingPage(options)) {
|
|
327
|
+
yield* page;
|
|
328
|
+
}
|
|
251
329
|
}
|
|
252
330
|
|
|
253
331
|
/**
|
|
254
|
-
*
|
|
255
|
-
* @param
|
|
256
|
-
* @param remediationName The name of the remediation.
|
|
257
|
-
* @param [options] The optional parameters
|
|
258
|
-
* @returns Promise<Models.RemediationsCancelAtSubscriptionResponse>
|
|
259
|
-
*/
|
|
260
|
-
cancelAtSubscription(subscriptionId: string, remediationName: string, options?: msRest.RequestOptionsBase): Promise<Models.RemediationsCancelAtSubscriptionResponse>;
|
|
261
|
-
/**
|
|
262
|
-
* @param subscriptionId Microsoft Azure subscription ID.
|
|
263
|
-
* @param remediationName The name of the remediation.
|
|
264
|
-
* @param callback The callback
|
|
265
|
-
*/
|
|
266
|
-
cancelAtSubscription(subscriptionId: string, remediationName: string, callback: msRest.ServiceCallback<Models.Remediation>): void;
|
|
267
|
-
/**
|
|
268
|
-
* @param subscriptionId Microsoft Azure subscription ID.
|
|
332
|
+
* Gets all deployments for a remediation at resource group scope.
|
|
333
|
+
* @param resourceGroupName Resource group name.
|
|
269
334
|
* @param remediationName The name of the remediation.
|
|
270
|
-
* @param options The
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
335
|
+
* @param options The options parameters.
|
|
336
|
+
*/
|
|
337
|
+
public listDeploymentsAtResourceGroup(
|
|
338
|
+
resourceGroupName: string,
|
|
339
|
+
remediationName: string,
|
|
340
|
+
options?: RemediationsListDeploymentsAtResourceGroupOptionalParams
|
|
341
|
+
): PagedAsyncIterableIterator<RemediationDeployment> {
|
|
342
|
+
const iter = this.listDeploymentsAtResourceGroupPagingAll(
|
|
343
|
+
resourceGroupName,
|
|
344
|
+
remediationName,
|
|
345
|
+
options
|
|
346
|
+
);
|
|
347
|
+
return {
|
|
348
|
+
next() {
|
|
349
|
+
return iter.next();
|
|
350
|
+
},
|
|
351
|
+
[Symbol.asyncIterator]() {
|
|
352
|
+
return this;
|
|
353
|
+
},
|
|
354
|
+
byPage: () => {
|
|
355
|
+
return this.listDeploymentsAtResourceGroupPagingPage(
|
|
356
|
+
resourceGroupName,
|
|
357
|
+
remediationName,
|
|
358
|
+
options
|
|
359
|
+
);
|
|
360
|
+
}
|
|
361
|
+
};
|
|
362
|
+
}
|
|
363
|
+
|
|
364
|
+
private async *listDeploymentsAtResourceGroupPagingPage(
|
|
365
|
+
resourceGroupName: string,
|
|
366
|
+
remediationName: string,
|
|
367
|
+
options?: RemediationsListDeploymentsAtResourceGroupOptionalParams
|
|
368
|
+
): AsyncIterableIterator<RemediationDeployment[]> {
|
|
369
|
+
let result = await this._listDeploymentsAtResourceGroup(
|
|
370
|
+
resourceGroupName,
|
|
371
|
+
remediationName,
|
|
372
|
+
options
|
|
373
|
+
);
|
|
374
|
+
yield result.value || [];
|
|
375
|
+
let continuationToken = result.nextLink;
|
|
376
|
+
while (continuationToken) {
|
|
377
|
+
result = await this._listDeploymentsAtResourceGroupNext(
|
|
378
|
+
resourceGroupName,
|
|
278
379
|
remediationName,
|
|
380
|
+
continuationToken,
|
|
279
381
|
options
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
382
|
+
);
|
|
383
|
+
continuationToken = result.nextLink;
|
|
384
|
+
yield result.value || [];
|
|
385
|
+
}
|
|
386
|
+
}
|
|
387
|
+
|
|
388
|
+
private async *listDeploymentsAtResourceGroupPagingAll(
|
|
389
|
+
resourceGroupName: string,
|
|
390
|
+
remediationName: string,
|
|
391
|
+
options?: RemediationsListDeploymentsAtResourceGroupOptionalParams
|
|
392
|
+
): AsyncIterableIterator<RemediationDeployment> {
|
|
393
|
+
for await (const page of this.listDeploymentsAtResourceGroupPagingPage(
|
|
394
|
+
resourceGroupName,
|
|
395
|
+
remediationName,
|
|
396
|
+
options
|
|
397
|
+
)) {
|
|
398
|
+
yield* page;
|
|
399
|
+
}
|
|
283
400
|
}
|
|
284
401
|
|
|
285
402
|
/**
|
|
286
403
|
* Gets all remediations for the subscription.
|
|
287
|
-
* @param
|
|
288
|
-
* @param
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
*/
|
|
302
|
-
listForSubscription(subscriptionId: string, options: Models.RemediationsListForSubscriptionOptionalParams, callback: msRest.ServiceCallback<Models.RemediationListResult>): void;
|
|
303
|
-
listForSubscription(subscriptionId: string, options?: Models.RemediationsListForSubscriptionOptionalParams | msRest.ServiceCallback<Models.RemediationListResult>, callback?: msRest.ServiceCallback<Models.RemediationListResult>): Promise<Models.RemediationsListForSubscriptionResponse> {
|
|
304
|
-
return this.client.sendOperationRequest(
|
|
305
|
-
{
|
|
306
|
-
subscriptionId,
|
|
307
|
-
options
|
|
404
|
+
* @param resourceGroupName Resource group name.
|
|
405
|
+
* @param options The options parameters.
|
|
406
|
+
*/
|
|
407
|
+
public listForResourceGroup(
|
|
408
|
+
resourceGroupName: string,
|
|
409
|
+
options?: RemediationsListForResourceGroupOptionalParams
|
|
410
|
+
): PagedAsyncIterableIterator<Remediation> {
|
|
411
|
+
const iter = this.listForResourceGroupPagingAll(resourceGroupName, options);
|
|
412
|
+
return {
|
|
413
|
+
next() {
|
|
414
|
+
return iter.next();
|
|
415
|
+
},
|
|
416
|
+
[Symbol.asyncIterator]() {
|
|
417
|
+
return this;
|
|
308
418
|
},
|
|
309
|
-
|
|
310
|
-
|
|
419
|
+
byPage: () => {
|
|
420
|
+
return this.listForResourceGroupPagingPage(resourceGroupName, options);
|
|
421
|
+
}
|
|
422
|
+
};
|
|
311
423
|
}
|
|
312
424
|
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
* @param remediationName The name of the remediation.
|
|
325
|
-
* @param parameters The remediation parameters.
|
|
326
|
-
* @param callback The callback
|
|
327
|
-
*/
|
|
328
|
-
createOrUpdateAtSubscription(subscriptionId: string, remediationName: string, parameters: Models.Remediation, callback: msRest.ServiceCallback<Models.Remediation>): void;
|
|
329
|
-
/**
|
|
330
|
-
* @param subscriptionId Microsoft Azure subscription ID.
|
|
331
|
-
* @param remediationName The name of the remediation.
|
|
332
|
-
* @param parameters The remediation parameters.
|
|
333
|
-
* @param options The optional parameters
|
|
334
|
-
* @param callback The callback
|
|
335
|
-
*/
|
|
336
|
-
createOrUpdateAtSubscription(subscriptionId: string, remediationName: string, parameters: Models.Remediation, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.Remediation>): void;
|
|
337
|
-
createOrUpdateAtSubscription(subscriptionId: string, remediationName: string, parameters: Models.Remediation, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.Remediation>, callback?: msRest.ServiceCallback<Models.Remediation>): Promise<Models.RemediationsCreateOrUpdateAtSubscriptionResponse> {
|
|
338
|
-
return this.client.sendOperationRequest(
|
|
339
|
-
{
|
|
340
|
-
subscriptionId,
|
|
341
|
-
remediationName,
|
|
342
|
-
parameters,
|
|
425
|
+
private async *listForResourceGroupPagingPage(
|
|
426
|
+
resourceGroupName: string,
|
|
427
|
+
options?: RemediationsListForResourceGroupOptionalParams
|
|
428
|
+
): AsyncIterableIterator<Remediation[]> {
|
|
429
|
+
let result = await this._listForResourceGroup(resourceGroupName, options);
|
|
430
|
+
yield result.value || [];
|
|
431
|
+
let continuationToken = result.nextLink;
|
|
432
|
+
while (continuationToken) {
|
|
433
|
+
result = await this._listForResourceGroupNext(
|
|
434
|
+
resourceGroupName,
|
|
435
|
+
continuationToken,
|
|
343
436
|
options
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
437
|
+
);
|
|
438
|
+
continuationToken = result.nextLink;
|
|
439
|
+
yield result.value || [];
|
|
440
|
+
}
|
|
441
|
+
}
|
|
442
|
+
|
|
443
|
+
private async *listForResourceGroupPagingAll(
|
|
444
|
+
resourceGroupName: string,
|
|
445
|
+
options?: RemediationsListForResourceGroupOptionalParams
|
|
446
|
+
): AsyncIterableIterator<Remediation> {
|
|
447
|
+
for await (const page of this.listForResourceGroupPagingPage(
|
|
448
|
+
resourceGroupName,
|
|
449
|
+
options
|
|
450
|
+
)) {
|
|
451
|
+
yield* page;
|
|
452
|
+
}
|
|
347
453
|
}
|
|
348
454
|
|
|
349
455
|
/**
|
|
350
|
-
* Gets
|
|
351
|
-
* @param
|
|
352
|
-
* @param remediationName The name of the remediation.
|
|
353
|
-
* @param [options] The optional parameters
|
|
354
|
-
* @returns Promise<Models.RemediationsGetAtSubscriptionResponse>
|
|
355
|
-
*/
|
|
356
|
-
getAtSubscription(subscriptionId: string, remediationName: string, options?: msRest.RequestOptionsBase): Promise<Models.RemediationsGetAtSubscriptionResponse>;
|
|
357
|
-
/**
|
|
358
|
-
* @param subscriptionId Microsoft Azure subscription ID.
|
|
359
|
-
* @param remediationName The name of the remediation.
|
|
360
|
-
* @param callback The callback
|
|
361
|
-
*/
|
|
362
|
-
getAtSubscription(subscriptionId: string, remediationName: string, callback: msRest.ServiceCallback<Models.Remediation>): void;
|
|
363
|
-
/**
|
|
364
|
-
* @param subscriptionId Microsoft Azure subscription ID.
|
|
456
|
+
* Gets all deployments for a remediation at resource scope.
|
|
457
|
+
* @param resourceId Resource ID.
|
|
365
458
|
* @param remediationName The name of the remediation.
|
|
366
|
-
* @param options The
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
459
|
+
* @param options The options parameters.
|
|
460
|
+
*/
|
|
461
|
+
public listDeploymentsAtResource(
|
|
462
|
+
resourceId: string,
|
|
463
|
+
remediationName: string,
|
|
464
|
+
options?: RemediationsListDeploymentsAtResourceOptionalParams
|
|
465
|
+
): PagedAsyncIterableIterator<RemediationDeployment> {
|
|
466
|
+
const iter = this.listDeploymentsAtResourcePagingAll(
|
|
467
|
+
resourceId,
|
|
468
|
+
remediationName,
|
|
469
|
+
options
|
|
470
|
+
);
|
|
471
|
+
return {
|
|
472
|
+
next() {
|
|
473
|
+
return iter.next();
|
|
474
|
+
},
|
|
475
|
+
[Symbol.asyncIterator]() {
|
|
476
|
+
return this;
|
|
477
|
+
},
|
|
478
|
+
byPage: () => {
|
|
479
|
+
return this.listDeploymentsAtResourcePagingPage(
|
|
480
|
+
resourceId,
|
|
481
|
+
remediationName,
|
|
482
|
+
options
|
|
483
|
+
);
|
|
484
|
+
}
|
|
485
|
+
};
|
|
486
|
+
}
|
|
487
|
+
|
|
488
|
+
private async *listDeploymentsAtResourcePagingPage(
|
|
489
|
+
resourceId: string,
|
|
490
|
+
remediationName: string,
|
|
491
|
+
options?: RemediationsListDeploymentsAtResourceOptionalParams
|
|
492
|
+
): AsyncIterableIterator<RemediationDeployment[]> {
|
|
493
|
+
let result = await this._listDeploymentsAtResource(
|
|
494
|
+
resourceId,
|
|
495
|
+
remediationName,
|
|
496
|
+
options
|
|
497
|
+
);
|
|
498
|
+
yield result.value || [];
|
|
499
|
+
let continuationToken = result.nextLink;
|
|
500
|
+
while (continuationToken) {
|
|
501
|
+
result = await this._listDeploymentsAtResourceNext(
|
|
502
|
+
resourceId,
|
|
374
503
|
remediationName,
|
|
504
|
+
continuationToken,
|
|
375
505
|
options
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
506
|
+
);
|
|
507
|
+
continuationToken = result.nextLink;
|
|
508
|
+
yield result.value || [];
|
|
509
|
+
}
|
|
510
|
+
}
|
|
511
|
+
|
|
512
|
+
private async *listDeploymentsAtResourcePagingAll(
|
|
513
|
+
resourceId: string,
|
|
514
|
+
remediationName: string,
|
|
515
|
+
options?: RemediationsListDeploymentsAtResourceOptionalParams
|
|
516
|
+
): AsyncIterableIterator<RemediationDeployment> {
|
|
517
|
+
for await (const page of this.listDeploymentsAtResourcePagingPage(
|
|
518
|
+
resourceId,
|
|
519
|
+
remediationName,
|
|
520
|
+
options
|
|
521
|
+
)) {
|
|
522
|
+
yield* page;
|
|
523
|
+
}
|
|
379
524
|
}
|
|
380
525
|
|
|
381
526
|
/**
|
|
382
|
-
*
|
|
383
|
-
* @param
|
|
384
|
-
* @param
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
527
|
+
* Gets all remediations for a resource.
|
|
528
|
+
* @param resourceId Resource ID.
|
|
529
|
+
* @param options The options parameters.
|
|
530
|
+
*/
|
|
531
|
+
public listForResource(
|
|
532
|
+
resourceId: string,
|
|
533
|
+
options?: RemediationsListForResourceOptionalParams
|
|
534
|
+
): PagedAsyncIterableIterator<Remediation> {
|
|
535
|
+
const iter = this.listForResourcePagingAll(resourceId, options);
|
|
536
|
+
return {
|
|
537
|
+
next() {
|
|
538
|
+
return iter.next();
|
|
539
|
+
},
|
|
540
|
+
[Symbol.asyncIterator]() {
|
|
541
|
+
return this;
|
|
542
|
+
},
|
|
543
|
+
byPage: () => {
|
|
544
|
+
return this.listForResourcePagingPage(resourceId, options);
|
|
545
|
+
}
|
|
546
|
+
};
|
|
547
|
+
}
|
|
548
|
+
|
|
549
|
+
private async *listForResourcePagingPage(
|
|
550
|
+
resourceId: string,
|
|
551
|
+
options?: RemediationsListForResourceOptionalParams
|
|
552
|
+
): AsyncIterableIterator<Remediation[]> {
|
|
553
|
+
let result = await this._listForResource(resourceId, options);
|
|
554
|
+
yield result.value || [];
|
|
555
|
+
let continuationToken = result.nextLink;
|
|
556
|
+
while (continuationToken) {
|
|
557
|
+
result = await this._listForResourceNext(
|
|
558
|
+
resourceId,
|
|
559
|
+
continuationToken,
|
|
560
|
+
options
|
|
561
|
+
);
|
|
562
|
+
continuationToken = result.nextLink;
|
|
563
|
+
yield result.value || [];
|
|
564
|
+
}
|
|
565
|
+
}
|
|
566
|
+
|
|
567
|
+
private async *listForResourcePagingAll(
|
|
568
|
+
resourceId: string,
|
|
569
|
+
options?: RemediationsListForResourceOptionalParams
|
|
570
|
+
): AsyncIterableIterator<Remediation> {
|
|
571
|
+
for await (const page of this.listForResourcePagingPage(
|
|
572
|
+
resourceId,
|
|
573
|
+
options
|
|
574
|
+
)) {
|
|
575
|
+
yield* page;
|
|
576
|
+
}
|
|
577
|
+
}
|
|
578
|
+
|
|
389
579
|
/**
|
|
390
|
-
*
|
|
580
|
+
* Gets all deployments for a remediation at management group scope.
|
|
581
|
+
* @param managementGroupId Management group ID.
|
|
391
582
|
* @param remediationName The name of the remediation.
|
|
392
|
-
* @param
|
|
583
|
+
* @param options The options parameters.
|
|
393
584
|
*/
|
|
394
|
-
|
|
585
|
+
private _listDeploymentsAtManagementGroup(
|
|
586
|
+
managementGroupId: string,
|
|
587
|
+
remediationName: string,
|
|
588
|
+
options?: RemediationsListDeploymentsAtManagementGroupOptionalParams
|
|
589
|
+
): Promise<RemediationsListDeploymentsAtManagementGroupResponse> {
|
|
590
|
+
return this.client.sendOperationRequest(
|
|
591
|
+
{ managementGroupId, remediationName, options },
|
|
592
|
+
listDeploymentsAtManagementGroupOperationSpec
|
|
593
|
+
);
|
|
594
|
+
}
|
|
595
|
+
|
|
395
596
|
/**
|
|
396
|
-
*
|
|
597
|
+
* Cancels a remediation at management group scope.
|
|
598
|
+
* @param managementGroupId Management group ID.
|
|
397
599
|
* @param remediationName The name of the remediation.
|
|
398
|
-
* @param options The
|
|
399
|
-
* @param callback The callback
|
|
600
|
+
* @param options The options parameters.
|
|
400
601
|
*/
|
|
401
|
-
|
|
402
|
-
|
|
602
|
+
cancelAtManagementGroup(
|
|
603
|
+
managementGroupId: string,
|
|
604
|
+
remediationName: string,
|
|
605
|
+
options?: RemediationsCancelAtManagementGroupOptionalParams
|
|
606
|
+
): Promise<RemediationsCancelAtManagementGroupResponse> {
|
|
403
607
|
return this.client.sendOperationRequest(
|
|
404
|
-
{
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
options
|
|
408
|
-
},
|
|
409
|
-
deleteAtSubscriptionOperationSpec,
|
|
410
|
-
callback) as Promise<Models.RemediationsDeleteAtSubscriptionResponse>;
|
|
608
|
+
{ managementGroupId, remediationName, options },
|
|
609
|
+
cancelAtManagementGroupOperationSpec
|
|
610
|
+
);
|
|
411
611
|
}
|
|
412
612
|
|
|
413
613
|
/**
|
|
414
|
-
* Gets all
|
|
415
|
-
* @param
|
|
416
|
-
* @param
|
|
417
|
-
* @param remediationName The name of the remediation.
|
|
418
|
-
* @param [options] The optional parameters
|
|
419
|
-
* @returns Promise<Models.RemediationsListDeploymentsAtResourceGroupResponse>
|
|
614
|
+
* Gets all remediations for the management group.
|
|
615
|
+
* @param managementGroupId Management group ID.
|
|
616
|
+
* @param options The options parameters.
|
|
420
617
|
*/
|
|
421
|
-
|
|
618
|
+
private _listForManagementGroup(
|
|
619
|
+
managementGroupId: string,
|
|
620
|
+
options?: RemediationsListForManagementGroupOptionalParams
|
|
621
|
+
): Promise<RemediationsListForManagementGroupResponse> {
|
|
622
|
+
return this.client.sendOperationRequest(
|
|
623
|
+
{ managementGroupId, options },
|
|
624
|
+
listForManagementGroupOperationSpec
|
|
625
|
+
);
|
|
626
|
+
}
|
|
627
|
+
|
|
422
628
|
/**
|
|
423
|
-
*
|
|
424
|
-
* @param
|
|
629
|
+
* Creates or updates a remediation at management group scope.
|
|
630
|
+
* @param managementGroupId Management group ID.
|
|
425
631
|
* @param remediationName The name of the remediation.
|
|
426
|
-
* @param
|
|
427
|
-
|
|
428
|
-
|
|
632
|
+
* @param parameters The remediation parameters.
|
|
633
|
+
* @param options The options parameters.
|
|
634
|
+
*/
|
|
635
|
+
createOrUpdateAtManagementGroup(
|
|
636
|
+
managementGroupId: string,
|
|
637
|
+
remediationName: string,
|
|
638
|
+
parameters: Remediation,
|
|
639
|
+
options?: RemediationsCreateOrUpdateAtManagementGroupOptionalParams
|
|
640
|
+
): Promise<RemediationsCreateOrUpdateAtManagementGroupResponse> {
|
|
641
|
+
return this.client.sendOperationRequest(
|
|
642
|
+
{ managementGroupId, remediationName, parameters, options },
|
|
643
|
+
createOrUpdateAtManagementGroupOperationSpec
|
|
644
|
+
);
|
|
645
|
+
}
|
|
646
|
+
|
|
429
647
|
/**
|
|
430
|
-
*
|
|
431
|
-
* @param
|
|
648
|
+
* Gets an existing remediation at management group scope.
|
|
649
|
+
* @param managementGroupId Management group ID.
|
|
432
650
|
* @param remediationName The name of the remediation.
|
|
433
|
-
* @param options The
|
|
434
|
-
* @param callback The callback
|
|
651
|
+
* @param options The options parameters.
|
|
435
652
|
*/
|
|
436
|
-
|
|
437
|
-
|
|
653
|
+
getAtManagementGroup(
|
|
654
|
+
managementGroupId: string,
|
|
655
|
+
remediationName: string,
|
|
656
|
+
options?: RemediationsGetAtManagementGroupOptionalParams
|
|
657
|
+
): Promise<RemediationsGetAtManagementGroupResponse> {
|
|
438
658
|
return this.client.sendOperationRequest(
|
|
439
|
-
{
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
remediationName,
|
|
443
|
-
options
|
|
444
|
-
},
|
|
445
|
-
listDeploymentsAtResourceGroupOperationSpec,
|
|
446
|
-
callback) as Promise<Models.RemediationsListDeploymentsAtResourceGroupResponse>;
|
|
659
|
+
{ managementGroupId, remediationName, options },
|
|
660
|
+
getAtManagementGroupOperationSpec
|
|
661
|
+
);
|
|
447
662
|
}
|
|
448
663
|
|
|
449
664
|
/**
|
|
450
|
-
*
|
|
451
|
-
* @param
|
|
452
|
-
* @param resourceGroupName Resource group name.
|
|
665
|
+
* Deletes an existing remediation at management group scope.
|
|
666
|
+
* @param managementGroupId Management group ID.
|
|
453
667
|
* @param remediationName The name of the remediation.
|
|
454
|
-
* @param
|
|
455
|
-
* @returns Promise<Models.RemediationsCancelAtResourceGroupResponse>
|
|
668
|
+
* @param options The options parameters.
|
|
456
669
|
*/
|
|
457
|
-
|
|
670
|
+
deleteAtManagementGroup(
|
|
671
|
+
managementGroupId: string,
|
|
672
|
+
remediationName: string,
|
|
673
|
+
options?: RemediationsDeleteAtManagementGroupOptionalParams
|
|
674
|
+
): Promise<RemediationsDeleteAtManagementGroupResponse> {
|
|
675
|
+
return this.client.sendOperationRequest(
|
|
676
|
+
{ managementGroupId, remediationName, options },
|
|
677
|
+
deleteAtManagementGroupOperationSpec
|
|
678
|
+
);
|
|
679
|
+
}
|
|
680
|
+
|
|
458
681
|
/**
|
|
459
|
-
*
|
|
460
|
-
* @param resourceGroupName Resource group name.
|
|
682
|
+
* Gets all deployments for a remediation at subscription scope.
|
|
461
683
|
* @param remediationName The name of the remediation.
|
|
462
|
-
* @param
|
|
684
|
+
* @param options The options parameters.
|
|
463
685
|
*/
|
|
464
|
-
|
|
686
|
+
private _listDeploymentsAtSubscription(
|
|
687
|
+
remediationName: string,
|
|
688
|
+
options?: RemediationsListDeploymentsAtSubscriptionOptionalParams
|
|
689
|
+
): Promise<RemediationsListDeploymentsAtSubscriptionResponse> {
|
|
690
|
+
return this.client.sendOperationRequest(
|
|
691
|
+
{ remediationName, options },
|
|
692
|
+
listDeploymentsAtSubscriptionOperationSpec
|
|
693
|
+
);
|
|
694
|
+
}
|
|
695
|
+
|
|
465
696
|
/**
|
|
466
|
-
*
|
|
467
|
-
* @param resourceGroupName Resource group name.
|
|
697
|
+
* Cancels a remediation at subscription scope.
|
|
468
698
|
* @param remediationName The name of the remediation.
|
|
469
|
-
* @param options The
|
|
470
|
-
* @param callback The callback
|
|
699
|
+
* @param options The options parameters.
|
|
471
700
|
*/
|
|
472
|
-
|
|
473
|
-
|
|
701
|
+
cancelAtSubscription(
|
|
702
|
+
remediationName: string,
|
|
703
|
+
options?: RemediationsCancelAtSubscriptionOptionalParams
|
|
704
|
+
): Promise<RemediationsCancelAtSubscriptionResponse> {
|
|
474
705
|
return this.client.sendOperationRequest(
|
|
475
|
-
{
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
remediationName,
|
|
479
|
-
options
|
|
480
|
-
},
|
|
481
|
-
cancelAtResourceGroupOperationSpec,
|
|
482
|
-
callback) as Promise<Models.RemediationsCancelAtResourceGroupResponse>;
|
|
706
|
+
{ remediationName, options },
|
|
707
|
+
cancelAtSubscriptionOperationSpec
|
|
708
|
+
);
|
|
483
709
|
}
|
|
484
710
|
|
|
485
711
|
/**
|
|
486
712
|
* Gets all remediations for the subscription.
|
|
487
|
-
* @param
|
|
488
|
-
* @param resourceGroupName Resource group name.
|
|
489
|
-
* @param [options] The optional parameters
|
|
490
|
-
* @returns Promise<Models.RemediationsListForResourceGroupResponse>
|
|
491
|
-
*/
|
|
492
|
-
listForResourceGroup(subscriptionId: string, resourceGroupName: string, options?: Models.RemediationsListForResourceGroupOptionalParams): Promise<Models.RemediationsListForResourceGroupResponse>;
|
|
493
|
-
/**
|
|
494
|
-
* @param subscriptionId Microsoft Azure subscription ID.
|
|
495
|
-
* @param resourceGroupName Resource group name.
|
|
496
|
-
* @param callback The callback
|
|
497
|
-
*/
|
|
498
|
-
listForResourceGroup(subscriptionId: string, resourceGroupName: string, callback: msRest.ServiceCallback<Models.RemediationListResult>): void;
|
|
499
|
-
/**
|
|
500
|
-
* @param subscriptionId Microsoft Azure subscription ID.
|
|
501
|
-
* @param resourceGroupName Resource group name.
|
|
502
|
-
* @param options The optional parameters
|
|
503
|
-
* @param callback The callback
|
|
713
|
+
* @param options The options parameters.
|
|
504
714
|
*/
|
|
505
|
-
|
|
506
|
-
|
|
715
|
+
private _listForSubscription(
|
|
716
|
+
options?: RemediationsListForSubscriptionOptionalParams
|
|
717
|
+
): Promise<RemediationsListForSubscriptionResponse> {
|
|
507
718
|
return this.client.sendOperationRequest(
|
|
508
|
-
{
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
options
|
|
512
|
-
},
|
|
513
|
-
listForResourceGroupOperationSpec,
|
|
514
|
-
callback) as Promise<Models.RemediationsListForResourceGroupResponse>;
|
|
719
|
+
{ options },
|
|
720
|
+
listForSubscriptionOperationSpec
|
|
721
|
+
);
|
|
515
722
|
}
|
|
516
723
|
|
|
517
724
|
/**
|
|
518
|
-
* Creates or updates a remediation at
|
|
519
|
-
* @param subscriptionId Microsoft Azure subscription ID.
|
|
520
|
-
* @param resourceGroupName Resource group name.
|
|
521
|
-
* @param remediationName The name of the remediation.
|
|
522
|
-
* @param parameters The remediation parameters.
|
|
523
|
-
* @param [options] The optional parameters
|
|
524
|
-
* @returns Promise<Models.RemediationsCreateOrUpdateAtResourceGroupResponse>
|
|
525
|
-
*/
|
|
526
|
-
createOrUpdateAtResourceGroup(subscriptionId: string, resourceGroupName: string, remediationName: string, parameters: Models.Remediation, options?: msRest.RequestOptionsBase): Promise<Models.RemediationsCreateOrUpdateAtResourceGroupResponse>;
|
|
527
|
-
/**
|
|
528
|
-
* @param subscriptionId Microsoft Azure subscription ID.
|
|
529
|
-
* @param resourceGroupName Resource group name.
|
|
530
|
-
* @param remediationName The name of the remediation.
|
|
531
|
-
* @param parameters The remediation parameters.
|
|
532
|
-
* @param callback The callback
|
|
533
|
-
*/
|
|
534
|
-
createOrUpdateAtResourceGroup(subscriptionId: string, resourceGroupName: string, remediationName: string, parameters: Models.Remediation, callback: msRest.ServiceCallback<Models.Remediation>): void;
|
|
535
|
-
/**
|
|
536
|
-
* @param subscriptionId Microsoft Azure subscription ID.
|
|
537
|
-
* @param resourceGroupName Resource group name.
|
|
725
|
+
* Creates or updates a remediation at subscription scope.
|
|
538
726
|
* @param remediationName The name of the remediation.
|
|
539
727
|
* @param parameters The remediation parameters.
|
|
540
|
-
* @param options The
|
|
541
|
-
* @param callback The callback
|
|
728
|
+
* @param options The options parameters.
|
|
542
729
|
*/
|
|
543
|
-
|
|
544
|
-
|
|
730
|
+
createOrUpdateAtSubscription(
|
|
731
|
+
remediationName: string,
|
|
732
|
+
parameters: Remediation,
|
|
733
|
+
options?: RemediationsCreateOrUpdateAtSubscriptionOptionalParams
|
|
734
|
+
): Promise<RemediationsCreateOrUpdateAtSubscriptionResponse> {
|
|
545
735
|
return this.client.sendOperationRequest(
|
|
546
|
-
{
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
remediationName,
|
|
550
|
-
parameters,
|
|
551
|
-
options
|
|
552
|
-
},
|
|
553
|
-
createOrUpdateAtResourceGroupOperationSpec,
|
|
554
|
-
callback) as Promise<Models.RemediationsCreateOrUpdateAtResourceGroupResponse>;
|
|
736
|
+
{ remediationName, parameters, options },
|
|
737
|
+
createOrUpdateAtSubscriptionOperationSpec
|
|
738
|
+
);
|
|
555
739
|
}
|
|
556
740
|
|
|
557
741
|
/**
|
|
558
|
-
* Gets an existing remediation at
|
|
559
|
-
* @param subscriptionId Microsoft Azure subscription ID.
|
|
560
|
-
* @param resourceGroupName Resource group name.
|
|
742
|
+
* Gets an existing remediation at subscription scope.
|
|
561
743
|
* @param remediationName The name of the remediation.
|
|
562
|
-
* @param
|
|
563
|
-
* @returns Promise<Models.RemediationsGetAtResourceGroupResponse>
|
|
744
|
+
* @param options The options parameters.
|
|
564
745
|
*/
|
|
565
|
-
|
|
746
|
+
getAtSubscription(
|
|
747
|
+
remediationName: string,
|
|
748
|
+
options?: RemediationsGetAtSubscriptionOptionalParams
|
|
749
|
+
): Promise<RemediationsGetAtSubscriptionResponse> {
|
|
750
|
+
return this.client.sendOperationRequest(
|
|
751
|
+
{ remediationName, options },
|
|
752
|
+
getAtSubscriptionOperationSpec
|
|
753
|
+
);
|
|
754
|
+
}
|
|
755
|
+
|
|
566
756
|
/**
|
|
567
|
-
*
|
|
568
|
-
* @param resourceGroupName Resource group name.
|
|
757
|
+
* Deletes an existing remediation at subscription scope.
|
|
569
758
|
* @param remediationName The name of the remediation.
|
|
570
|
-
* @param
|
|
759
|
+
* @param options The options parameters.
|
|
571
760
|
*/
|
|
572
|
-
|
|
761
|
+
deleteAtSubscription(
|
|
762
|
+
remediationName: string,
|
|
763
|
+
options?: RemediationsDeleteAtSubscriptionOptionalParams
|
|
764
|
+
): Promise<RemediationsDeleteAtSubscriptionResponse> {
|
|
765
|
+
return this.client.sendOperationRequest(
|
|
766
|
+
{ remediationName, options },
|
|
767
|
+
deleteAtSubscriptionOperationSpec
|
|
768
|
+
);
|
|
769
|
+
}
|
|
770
|
+
|
|
573
771
|
/**
|
|
574
|
-
*
|
|
772
|
+
* Gets all deployments for a remediation at resource group scope.
|
|
575
773
|
* @param resourceGroupName Resource group name.
|
|
576
774
|
* @param remediationName The name of the remediation.
|
|
577
|
-
* @param options The
|
|
578
|
-
* @param callback The callback
|
|
775
|
+
* @param options The options parameters.
|
|
579
776
|
*/
|
|
580
|
-
|
|
581
|
-
|
|
777
|
+
private _listDeploymentsAtResourceGroup(
|
|
778
|
+
resourceGroupName: string,
|
|
779
|
+
remediationName: string,
|
|
780
|
+
options?: RemediationsListDeploymentsAtResourceGroupOptionalParams
|
|
781
|
+
): Promise<RemediationsListDeploymentsAtResourceGroupResponse> {
|
|
582
782
|
return this.client.sendOperationRequest(
|
|
583
|
-
{
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
remediationName,
|
|
587
|
-
options
|
|
588
|
-
},
|
|
589
|
-
getAtResourceGroupOperationSpec,
|
|
590
|
-
callback) as Promise<Models.RemediationsGetAtResourceGroupResponse>;
|
|
783
|
+
{ resourceGroupName, remediationName, options },
|
|
784
|
+
listDeploymentsAtResourceGroupOperationSpec
|
|
785
|
+
);
|
|
591
786
|
}
|
|
592
787
|
|
|
593
788
|
/**
|
|
594
|
-
*
|
|
595
|
-
* @param subscriptionId Microsoft Azure subscription ID.
|
|
789
|
+
* Cancels a remediation at resource group scope.
|
|
596
790
|
* @param resourceGroupName Resource group name.
|
|
597
791
|
* @param remediationName The name of the remediation.
|
|
598
|
-
* @param
|
|
599
|
-
* @returns Promise<Models.RemediationsDeleteAtResourceGroupResponse>
|
|
792
|
+
* @param options The options parameters.
|
|
600
793
|
*/
|
|
601
|
-
|
|
794
|
+
cancelAtResourceGroup(
|
|
795
|
+
resourceGroupName: string,
|
|
796
|
+
remediationName: string,
|
|
797
|
+
options?: RemediationsCancelAtResourceGroupOptionalParams
|
|
798
|
+
): Promise<RemediationsCancelAtResourceGroupResponse> {
|
|
799
|
+
return this.client.sendOperationRequest(
|
|
800
|
+
{ resourceGroupName, remediationName, options },
|
|
801
|
+
cancelAtResourceGroupOperationSpec
|
|
802
|
+
);
|
|
803
|
+
}
|
|
804
|
+
|
|
602
805
|
/**
|
|
603
|
-
*
|
|
806
|
+
* Gets all remediations for the subscription.
|
|
604
807
|
* @param resourceGroupName Resource group name.
|
|
605
|
-
* @param
|
|
606
|
-
* @param callback The callback
|
|
808
|
+
* @param options The options parameters.
|
|
607
809
|
*/
|
|
608
|
-
|
|
810
|
+
private _listForResourceGroup(
|
|
811
|
+
resourceGroupName: string,
|
|
812
|
+
options?: RemediationsListForResourceGroupOptionalParams
|
|
813
|
+
): Promise<RemediationsListForResourceGroupResponse> {
|
|
814
|
+
return this.client.sendOperationRequest(
|
|
815
|
+
{ resourceGroupName, options },
|
|
816
|
+
listForResourceGroupOperationSpec
|
|
817
|
+
);
|
|
818
|
+
}
|
|
819
|
+
|
|
609
820
|
/**
|
|
610
|
-
*
|
|
821
|
+
* Creates or updates a remediation at resource group scope.
|
|
611
822
|
* @param resourceGroupName Resource group name.
|
|
612
823
|
* @param remediationName The name of the remediation.
|
|
613
|
-
* @param
|
|
614
|
-
* @param
|
|
615
|
-
*/
|
|
616
|
-
|
|
617
|
-
|
|
824
|
+
* @param parameters The remediation parameters.
|
|
825
|
+
* @param options The options parameters.
|
|
826
|
+
*/
|
|
827
|
+
createOrUpdateAtResourceGroup(
|
|
828
|
+
resourceGroupName: string,
|
|
829
|
+
remediationName: string,
|
|
830
|
+
parameters: Remediation,
|
|
831
|
+
options?: RemediationsCreateOrUpdateAtResourceGroupOptionalParams
|
|
832
|
+
): Promise<RemediationsCreateOrUpdateAtResourceGroupResponse> {
|
|
618
833
|
return this.client.sendOperationRequest(
|
|
619
|
-
{
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
remediationName,
|
|
623
|
-
options
|
|
624
|
-
},
|
|
625
|
-
deleteAtResourceGroupOperationSpec,
|
|
626
|
-
callback) as Promise<Models.RemediationsDeleteAtResourceGroupResponse>;
|
|
834
|
+
{ resourceGroupName, remediationName, parameters, options },
|
|
835
|
+
createOrUpdateAtResourceGroupOperationSpec
|
|
836
|
+
);
|
|
627
837
|
}
|
|
628
838
|
|
|
629
839
|
/**
|
|
630
|
-
* Gets
|
|
631
|
-
* @param
|
|
840
|
+
* Gets an existing remediation at resource group scope.
|
|
841
|
+
* @param resourceGroupName Resource group name.
|
|
632
842
|
* @param remediationName The name of the remediation.
|
|
633
|
-
* @param
|
|
634
|
-
* @returns Promise<Models.RemediationsListDeploymentsAtResourceResponse>
|
|
843
|
+
* @param options The options parameters.
|
|
635
844
|
*/
|
|
636
|
-
|
|
845
|
+
getAtResourceGroup(
|
|
846
|
+
resourceGroupName: string,
|
|
847
|
+
remediationName: string,
|
|
848
|
+
options?: RemediationsGetAtResourceGroupOptionalParams
|
|
849
|
+
): Promise<RemediationsGetAtResourceGroupResponse> {
|
|
850
|
+
return this.client.sendOperationRequest(
|
|
851
|
+
{ resourceGroupName, remediationName, options },
|
|
852
|
+
getAtResourceGroupOperationSpec
|
|
853
|
+
);
|
|
854
|
+
}
|
|
855
|
+
|
|
637
856
|
/**
|
|
638
|
-
*
|
|
857
|
+
* Deletes an existing remediation at resource group scope.
|
|
858
|
+
* @param resourceGroupName Resource group name.
|
|
639
859
|
* @param remediationName The name of the remediation.
|
|
640
|
-
* @param
|
|
860
|
+
* @param options The options parameters.
|
|
641
861
|
*/
|
|
642
|
-
|
|
862
|
+
deleteAtResourceGroup(
|
|
863
|
+
resourceGroupName: string,
|
|
864
|
+
remediationName: string,
|
|
865
|
+
options?: RemediationsDeleteAtResourceGroupOptionalParams
|
|
866
|
+
): Promise<RemediationsDeleteAtResourceGroupResponse> {
|
|
867
|
+
return this.client.sendOperationRequest(
|
|
868
|
+
{ resourceGroupName, remediationName, options },
|
|
869
|
+
deleteAtResourceGroupOperationSpec
|
|
870
|
+
);
|
|
871
|
+
}
|
|
872
|
+
|
|
643
873
|
/**
|
|
874
|
+
* Gets all deployments for a remediation at resource scope.
|
|
644
875
|
* @param resourceId Resource ID.
|
|
645
876
|
* @param remediationName The name of the remediation.
|
|
646
|
-
* @param options The
|
|
647
|
-
* @param callback The callback
|
|
877
|
+
* @param options The options parameters.
|
|
648
878
|
*/
|
|
649
|
-
|
|
650
|
-
|
|
879
|
+
private _listDeploymentsAtResource(
|
|
880
|
+
resourceId: string,
|
|
881
|
+
remediationName: string,
|
|
882
|
+
options?: RemediationsListDeploymentsAtResourceOptionalParams
|
|
883
|
+
): Promise<RemediationsListDeploymentsAtResourceResponse> {
|
|
651
884
|
return this.client.sendOperationRequest(
|
|
652
|
-
{
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
options
|
|
656
|
-
},
|
|
657
|
-
listDeploymentsAtResourceOperationSpec,
|
|
658
|
-
callback) as Promise<Models.RemediationsListDeploymentsAtResourceResponse>;
|
|
885
|
+
{ resourceId, remediationName, options },
|
|
886
|
+
listDeploymentsAtResourceOperationSpec
|
|
887
|
+
);
|
|
659
888
|
}
|
|
660
889
|
|
|
661
890
|
/**
|
|
662
891
|
* Cancel a remediation at resource scope.
|
|
663
892
|
* @param resourceId Resource ID.
|
|
664
893
|
* @param remediationName The name of the remediation.
|
|
665
|
-
* @param
|
|
666
|
-
* @returns Promise<Models.RemediationsCancelAtResourceResponse>
|
|
667
|
-
*/
|
|
668
|
-
cancelAtResource(resourceId: string, remediationName: string, options?: msRest.RequestOptionsBase): Promise<Models.RemediationsCancelAtResourceResponse>;
|
|
669
|
-
/**
|
|
670
|
-
* @param resourceId Resource ID.
|
|
671
|
-
* @param remediationName The name of the remediation.
|
|
672
|
-
* @param callback The callback
|
|
673
|
-
*/
|
|
674
|
-
cancelAtResource(resourceId: string, remediationName: string, callback: msRest.ServiceCallback<Models.Remediation>): void;
|
|
675
|
-
/**
|
|
676
|
-
* @param resourceId Resource ID.
|
|
677
|
-
* @param remediationName The name of the remediation.
|
|
678
|
-
* @param options The optional parameters
|
|
679
|
-
* @param callback The callback
|
|
894
|
+
* @param options The options parameters.
|
|
680
895
|
*/
|
|
681
|
-
cancelAtResource(
|
|
682
|
-
|
|
896
|
+
cancelAtResource(
|
|
897
|
+
resourceId: string,
|
|
898
|
+
remediationName: string,
|
|
899
|
+
options?: RemediationsCancelAtResourceOptionalParams
|
|
900
|
+
): Promise<RemediationsCancelAtResourceResponse> {
|
|
683
901
|
return this.client.sendOperationRequest(
|
|
684
|
-
{
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
options
|
|
688
|
-
},
|
|
689
|
-
cancelAtResourceOperationSpec,
|
|
690
|
-
callback) as Promise<Models.RemediationsCancelAtResourceResponse>;
|
|
902
|
+
{ resourceId, remediationName, options },
|
|
903
|
+
cancelAtResourceOperationSpec
|
|
904
|
+
);
|
|
691
905
|
}
|
|
692
906
|
|
|
693
907
|
/**
|
|
694
908
|
* Gets all remediations for a resource.
|
|
695
909
|
* @param resourceId Resource ID.
|
|
696
|
-
* @param
|
|
697
|
-
* @returns Promise<Models.RemediationsListForResourceResponse>
|
|
698
|
-
*/
|
|
699
|
-
listForResource(resourceId: string, options?: Models.RemediationsListForResourceOptionalParams): Promise<Models.RemediationsListForResourceResponse>;
|
|
700
|
-
/**
|
|
701
|
-
* @param resourceId Resource ID.
|
|
702
|
-
* @param callback The callback
|
|
703
|
-
*/
|
|
704
|
-
listForResource(resourceId: string, callback: msRest.ServiceCallback<Models.RemediationListResult>): void;
|
|
705
|
-
/**
|
|
706
|
-
* @param resourceId Resource ID.
|
|
707
|
-
* @param options The optional parameters
|
|
708
|
-
* @param callback The callback
|
|
910
|
+
* @param options The options parameters.
|
|
709
911
|
*/
|
|
710
|
-
|
|
711
|
-
|
|
912
|
+
private _listForResource(
|
|
913
|
+
resourceId: string,
|
|
914
|
+
options?: RemediationsListForResourceOptionalParams
|
|
915
|
+
): Promise<RemediationsListForResourceResponse> {
|
|
712
916
|
return this.client.sendOperationRequest(
|
|
713
|
-
{
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
},
|
|
717
|
-
listForResourceOperationSpec,
|
|
718
|
-
callback) as Promise<Models.RemediationsListForResourceResponse>;
|
|
917
|
+
{ resourceId, options },
|
|
918
|
+
listForResourceOperationSpec
|
|
919
|
+
);
|
|
719
920
|
}
|
|
720
921
|
|
|
721
922
|
/**
|
|
@@ -723,343 +924,205 @@ export class Remediations {
|
|
|
723
924
|
* @param resourceId Resource ID.
|
|
724
925
|
* @param remediationName The name of the remediation.
|
|
725
926
|
* @param parameters The remediation parameters.
|
|
726
|
-
* @param
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
* @param callback The callback
|
|
735
|
-
*/
|
|
736
|
-
createOrUpdateAtResource(resourceId: string, remediationName: string, parameters: Models.Remediation, callback: msRest.ServiceCallback<Models.Remediation>): void;
|
|
737
|
-
/**
|
|
738
|
-
* @param resourceId Resource ID.
|
|
739
|
-
* @param remediationName The name of the remediation.
|
|
740
|
-
* @param parameters The remediation parameters.
|
|
741
|
-
* @param options The optional parameters
|
|
742
|
-
* @param callback The callback
|
|
743
|
-
*/
|
|
744
|
-
createOrUpdateAtResource(resourceId: string, remediationName: string, parameters: Models.Remediation, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.Remediation>): void;
|
|
745
|
-
createOrUpdateAtResource(resourceId: string, remediationName: string, parameters: Models.Remediation, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.Remediation>, callback?: msRest.ServiceCallback<Models.Remediation>): Promise<Models.RemediationsCreateOrUpdateAtResourceResponse> {
|
|
927
|
+
* @param options The options parameters.
|
|
928
|
+
*/
|
|
929
|
+
createOrUpdateAtResource(
|
|
930
|
+
resourceId: string,
|
|
931
|
+
remediationName: string,
|
|
932
|
+
parameters: Remediation,
|
|
933
|
+
options?: RemediationsCreateOrUpdateAtResourceOptionalParams
|
|
934
|
+
): Promise<RemediationsCreateOrUpdateAtResourceResponse> {
|
|
746
935
|
return this.client.sendOperationRequest(
|
|
747
|
-
{
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
parameters,
|
|
751
|
-
options
|
|
752
|
-
},
|
|
753
|
-
createOrUpdateAtResourceOperationSpec,
|
|
754
|
-
callback) as Promise<Models.RemediationsCreateOrUpdateAtResourceResponse>;
|
|
936
|
+
{ resourceId, remediationName, parameters, options },
|
|
937
|
+
createOrUpdateAtResourceOperationSpec
|
|
938
|
+
);
|
|
755
939
|
}
|
|
756
940
|
|
|
757
941
|
/**
|
|
758
942
|
* Gets an existing remediation at resource scope.
|
|
759
943
|
* @param resourceId Resource ID.
|
|
760
944
|
* @param remediationName The name of the remediation.
|
|
761
|
-
* @param
|
|
762
|
-
* @returns Promise<Models.RemediationsGetAtResourceResponse>
|
|
763
|
-
*/
|
|
764
|
-
getAtResource(resourceId: string, remediationName: string, options?: msRest.RequestOptionsBase): Promise<Models.RemediationsGetAtResourceResponse>;
|
|
765
|
-
/**
|
|
766
|
-
* @param resourceId Resource ID.
|
|
767
|
-
* @param remediationName The name of the remediation.
|
|
768
|
-
* @param callback The callback
|
|
769
|
-
*/
|
|
770
|
-
getAtResource(resourceId: string, remediationName: string, callback: msRest.ServiceCallback<Models.Remediation>): void;
|
|
771
|
-
/**
|
|
772
|
-
* @param resourceId Resource ID.
|
|
773
|
-
* @param remediationName The name of the remediation.
|
|
774
|
-
* @param options The optional parameters
|
|
775
|
-
* @param callback The callback
|
|
945
|
+
* @param options The options parameters.
|
|
776
946
|
*/
|
|
777
|
-
getAtResource(
|
|
778
|
-
|
|
947
|
+
getAtResource(
|
|
948
|
+
resourceId: string,
|
|
949
|
+
remediationName: string,
|
|
950
|
+
options?: RemediationsGetAtResourceOptionalParams
|
|
951
|
+
): Promise<RemediationsGetAtResourceResponse> {
|
|
779
952
|
return this.client.sendOperationRequest(
|
|
780
|
-
{
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
options
|
|
784
|
-
},
|
|
785
|
-
getAtResourceOperationSpec,
|
|
786
|
-
callback) as Promise<Models.RemediationsGetAtResourceResponse>;
|
|
953
|
+
{ resourceId, remediationName, options },
|
|
954
|
+
getAtResourceOperationSpec
|
|
955
|
+
);
|
|
787
956
|
}
|
|
788
957
|
|
|
789
958
|
/**
|
|
790
959
|
* Deletes an existing remediation at individual resource scope.
|
|
791
960
|
* @param resourceId Resource ID.
|
|
792
961
|
* @param remediationName The name of the remediation.
|
|
793
|
-
* @param
|
|
794
|
-
* @returns Promise<Models.RemediationsDeleteAtResourceResponse>
|
|
795
|
-
*/
|
|
796
|
-
deleteAtResource(resourceId: string, remediationName: string, options?: msRest.RequestOptionsBase): Promise<Models.RemediationsDeleteAtResourceResponse>;
|
|
797
|
-
/**
|
|
798
|
-
* @param resourceId Resource ID.
|
|
799
|
-
* @param remediationName The name of the remediation.
|
|
800
|
-
* @param callback The callback
|
|
801
|
-
*/
|
|
802
|
-
deleteAtResource(resourceId: string, remediationName: string, callback: msRest.ServiceCallback<Models.Remediation>): void;
|
|
803
|
-
/**
|
|
804
|
-
* @param resourceId Resource ID.
|
|
805
|
-
* @param remediationName The name of the remediation.
|
|
806
|
-
* @param options The optional parameters
|
|
807
|
-
* @param callback The callback
|
|
962
|
+
* @param options The options parameters.
|
|
808
963
|
*/
|
|
809
|
-
deleteAtResource(
|
|
810
|
-
|
|
964
|
+
deleteAtResource(
|
|
965
|
+
resourceId: string,
|
|
966
|
+
remediationName: string,
|
|
967
|
+
options?: RemediationsDeleteAtResourceOptionalParams
|
|
968
|
+
): Promise<RemediationsDeleteAtResourceResponse> {
|
|
811
969
|
return this.client.sendOperationRequest(
|
|
812
|
-
{
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
options
|
|
816
|
-
},
|
|
817
|
-
deleteAtResourceOperationSpec,
|
|
818
|
-
callback) as Promise<Models.RemediationsDeleteAtResourceResponse>;
|
|
970
|
+
{ resourceId, remediationName, options },
|
|
971
|
+
deleteAtResourceOperationSpec
|
|
972
|
+
);
|
|
819
973
|
}
|
|
820
974
|
|
|
821
975
|
/**
|
|
822
|
-
*
|
|
823
|
-
* @param
|
|
824
|
-
* @param
|
|
825
|
-
* @
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
* @param options The optional parameters
|
|
836
|
-
* @param callback The callback
|
|
837
|
-
*/
|
|
838
|
-
listDeploymentsAtManagementGroupNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.RemediationDeploymentsListResult>): void;
|
|
839
|
-
listDeploymentsAtManagementGroupNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.RemediationDeploymentsListResult>, callback?: msRest.ServiceCallback<Models.RemediationDeploymentsListResult>): Promise<Models.RemediationsListDeploymentsAtManagementGroupNextResponse> {
|
|
976
|
+
* ListDeploymentsAtManagementGroupNext
|
|
977
|
+
* @param managementGroupId Management group ID.
|
|
978
|
+
* @param remediationName The name of the remediation.
|
|
979
|
+
* @param nextLink The nextLink from the previous successful call to the
|
|
980
|
+
* ListDeploymentsAtManagementGroup method.
|
|
981
|
+
* @param options The options parameters.
|
|
982
|
+
*/
|
|
983
|
+
private _listDeploymentsAtManagementGroupNext(
|
|
984
|
+
managementGroupId: string,
|
|
985
|
+
remediationName: string,
|
|
986
|
+
nextLink: string,
|
|
987
|
+
options?: RemediationsListDeploymentsAtManagementGroupNextOptionalParams
|
|
988
|
+
): Promise<RemediationsListDeploymentsAtManagementGroupNextResponse> {
|
|
840
989
|
return this.client.sendOperationRequest(
|
|
841
|
-
{
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
},
|
|
845
|
-
listDeploymentsAtManagementGroupNextOperationSpec,
|
|
846
|
-
callback) as Promise<Models.RemediationsListDeploymentsAtManagementGroupNextResponse>;
|
|
990
|
+
{ managementGroupId, remediationName, nextLink, options },
|
|
991
|
+
listDeploymentsAtManagementGroupNextOperationSpec
|
|
992
|
+
);
|
|
847
993
|
}
|
|
848
994
|
|
|
849
995
|
/**
|
|
850
|
-
*
|
|
851
|
-
* @param
|
|
852
|
-
* @param
|
|
853
|
-
* @
|
|
854
|
-
*/
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
listForManagementGroupNext(nextPageLink: string, callback: msRest.ServiceCallback<Models.RemediationListResult>): void;
|
|
861
|
-
/**
|
|
862
|
-
* @param nextPageLink The NextLink from the previous successful call to List operation.
|
|
863
|
-
* @param options The optional parameters
|
|
864
|
-
* @param callback The callback
|
|
865
|
-
*/
|
|
866
|
-
listForManagementGroupNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.RemediationListResult>): void;
|
|
867
|
-
listForManagementGroupNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.RemediationListResult>, callback?: msRest.ServiceCallback<Models.RemediationListResult>): Promise<Models.RemediationsListForManagementGroupNextResponse> {
|
|
996
|
+
* ListForManagementGroupNext
|
|
997
|
+
* @param managementGroupId Management group ID.
|
|
998
|
+
* @param nextLink The nextLink from the previous successful call to the ListForManagementGroup method.
|
|
999
|
+
* @param options The options parameters.
|
|
1000
|
+
*/
|
|
1001
|
+
private _listForManagementGroupNext(
|
|
1002
|
+
managementGroupId: string,
|
|
1003
|
+
nextLink: string,
|
|
1004
|
+
options?: RemediationsListForManagementGroupNextOptionalParams
|
|
1005
|
+
): Promise<RemediationsListForManagementGroupNextResponse> {
|
|
868
1006
|
return this.client.sendOperationRequest(
|
|
869
|
-
{
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
},
|
|
873
|
-
listForManagementGroupNextOperationSpec,
|
|
874
|
-
callback) as Promise<Models.RemediationsListForManagementGroupNextResponse>;
|
|
1007
|
+
{ managementGroupId, nextLink, options },
|
|
1008
|
+
listForManagementGroupNextOperationSpec
|
|
1009
|
+
);
|
|
875
1010
|
}
|
|
876
1011
|
|
|
877
1012
|
/**
|
|
878
|
-
*
|
|
879
|
-
* @param
|
|
880
|
-
* @param
|
|
881
|
-
*
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
/**
|
|
890
|
-
* @param nextPageLink The NextLink from the previous successful call to List operation.
|
|
891
|
-
* @param options The optional parameters
|
|
892
|
-
* @param callback The callback
|
|
893
|
-
*/
|
|
894
|
-
listDeploymentsAtSubscriptionNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.RemediationDeploymentsListResult>): void;
|
|
895
|
-
listDeploymentsAtSubscriptionNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.RemediationDeploymentsListResult>, callback?: msRest.ServiceCallback<Models.RemediationDeploymentsListResult>): Promise<Models.RemediationsListDeploymentsAtSubscriptionNextResponse> {
|
|
1013
|
+
* ListDeploymentsAtSubscriptionNext
|
|
1014
|
+
* @param remediationName The name of the remediation.
|
|
1015
|
+
* @param nextLink The nextLink from the previous successful call to the ListDeploymentsAtSubscription
|
|
1016
|
+
* method.
|
|
1017
|
+
* @param options The options parameters.
|
|
1018
|
+
*/
|
|
1019
|
+
private _listDeploymentsAtSubscriptionNext(
|
|
1020
|
+
remediationName: string,
|
|
1021
|
+
nextLink: string,
|
|
1022
|
+
options?: RemediationsListDeploymentsAtSubscriptionNextOptionalParams
|
|
1023
|
+
): Promise<RemediationsListDeploymentsAtSubscriptionNextResponse> {
|
|
896
1024
|
return this.client.sendOperationRequest(
|
|
897
|
-
{
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
},
|
|
901
|
-
listDeploymentsAtSubscriptionNextOperationSpec,
|
|
902
|
-
callback) as Promise<Models.RemediationsListDeploymentsAtSubscriptionNextResponse>;
|
|
1025
|
+
{ remediationName, nextLink, options },
|
|
1026
|
+
listDeploymentsAtSubscriptionNextOperationSpec
|
|
1027
|
+
);
|
|
903
1028
|
}
|
|
904
1029
|
|
|
905
1030
|
/**
|
|
906
|
-
*
|
|
907
|
-
* @param
|
|
908
|
-
* @param
|
|
909
|
-
* @returns Promise<Models.RemediationsListForSubscriptionNextResponse>
|
|
910
|
-
*/
|
|
911
|
-
listForSubscriptionNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise<Models.RemediationsListForSubscriptionNextResponse>;
|
|
912
|
-
/**
|
|
913
|
-
* @param nextPageLink The NextLink from the previous successful call to List operation.
|
|
914
|
-
* @param callback The callback
|
|
915
|
-
*/
|
|
916
|
-
listForSubscriptionNext(nextPageLink: string, callback: msRest.ServiceCallback<Models.RemediationListResult>): void;
|
|
917
|
-
/**
|
|
918
|
-
* @param nextPageLink The NextLink from the previous successful call to List operation.
|
|
919
|
-
* @param options The optional parameters
|
|
920
|
-
* @param callback The callback
|
|
1031
|
+
* ListForSubscriptionNext
|
|
1032
|
+
* @param nextLink The nextLink from the previous successful call to the ListForSubscription method.
|
|
1033
|
+
* @param options The options parameters.
|
|
921
1034
|
*/
|
|
922
|
-
|
|
923
|
-
|
|
1035
|
+
private _listForSubscriptionNext(
|
|
1036
|
+
nextLink: string,
|
|
1037
|
+
options?: RemediationsListForSubscriptionNextOptionalParams
|
|
1038
|
+
): Promise<RemediationsListForSubscriptionNextResponse> {
|
|
924
1039
|
return this.client.sendOperationRequest(
|
|
925
|
-
{
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
},
|
|
929
|
-
listForSubscriptionNextOperationSpec,
|
|
930
|
-
callback) as Promise<Models.RemediationsListForSubscriptionNextResponse>;
|
|
1040
|
+
{ nextLink, options },
|
|
1041
|
+
listForSubscriptionNextOperationSpec
|
|
1042
|
+
);
|
|
931
1043
|
}
|
|
932
1044
|
|
|
933
1045
|
/**
|
|
934
|
-
*
|
|
935
|
-
* @param
|
|
936
|
-
* @param
|
|
937
|
-
* @
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
* @param options The optional parameters
|
|
948
|
-
* @param callback The callback
|
|
949
|
-
*/
|
|
950
|
-
listDeploymentsAtResourceGroupNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.RemediationDeploymentsListResult>): void;
|
|
951
|
-
listDeploymentsAtResourceGroupNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.RemediationDeploymentsListResult>, callback?: msRest.ServiceCallback<Models.RemediationDeploymentsListResult>): Promise<Models.RemediationsListDeploymentsAtResourceGroupNextResponse> {
|
|
1046
|
+
* ListDeploymentsAtResourceGroupNext
|
|
1047
|
+
* @param resourceGroupName Resource group name.
|
|
1048
|
+
* @param remediationName The name of the remediation.
|
|
1049
|
+
* @param nextLink The nextLink from the previous successful call to the ListDeploymentsAtResourceGroup
|
|
1050
|
+
* method.
|
|
1051
|
+
* @param options The options parameters.
|
|
1052
|
+
*/
|
|
1053
|
+
private _listDeploymentsAtResourceGroupNext(
|
|
1054
|
+
resourceGroupName: string,
|
|
1055
|
+
remediationName: string,
|
|
1056
|
+
nextLink: string,
|
|
1057
|
+
options?: RemediationsListDeploymentsAtResourceGroupNextOptionalParams
|
|
1058
|
+
): Promise<RemediationsListDeploymentsAtResourceGroupNextResponse> {
|
|
952
1059
|
return this.client.sendOperationRequest(
|
|
953
|
-
{
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
},
|
|
957
|
-
listDeploymentsAtResourceGroupNextOperationSpec,
|
|
958
|
-
callback) as Promise<Models.RemediationsListDeploymentsAtResourceGroupNextResponse>;
|
|
1060
|
+
{ resourceGroupName, remediationName, nextLink, options },
|
|
1061
|
+
listDeploymentsAtResourceGroupNextOperationSpec
|
|
1062
|
+
);
|
|
959
1063
|
}
|
|
960
1064
|
|
|
961
1065
|
/**
|
|
962
|
-
*
|
|
963
|
-
* @param
|
|
964
|
-
* @param
|
|
965
|
-
* @
|
|
966
|
-
*/
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
listForResourceGroupNext(nextPageLink: string, callback: msRest.ServiceCallback<Models.RemediationListResult>): void;
|
|
973
|
-
/**
|
|
974
|
-
* @param nextPageLink The NextLink from the previous successful call to List operation.
|
|
975
|
-
* @param options The optional parameters
|
|
976
|
-
* @param callback The callback
|
|
977
|
-
*/
|
|
978
|
-
listForResourceGroupNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.RemediationListResult>): void;
|
|
979
|
-
listForResourceGroupNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.RemediationListResult>, callback?: msRest.ServiceCallback<Models.RemediationListResult>): Promise<Models.RemediationsListForResourceGroupNextResponse> {
|
|
1066
|
+
* ListForResourceGroupNext
|
|
1067
|
+
* @param resourceGroupName Resource group name.
|
|
1068
|
+
* @param nextLink The nextLink from the previous successful call to the ListForResourceGroup method.
|
|
1069
|
+
* @param options The options parameters.
|
|
1070
|
+
*/
|
|
1071
|
+
private _listForResourceGroupNext(
|
|
1072
|
+
resourceGroupName: string,
|
|
1073
|
+
nextLink: string,
|
|
1074
|
+
options?: RemediationsListForResourceGroupNextOptionalParams
|
|
1075
|
+
): Promise<RemediationsListForResourceGroupNextResponse> {
|
|
980
1076
|
return this.client.sendOperationRequest(
|
|
981
|
-
{
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
},
|
|
985
|
-
listForResourceGroupNextOperationSpec,
|
|
986
|
-
callback) as Promise<Models.RemediationsListForResourceGroupNextResponse>;
|
|
1077
|
+
{ resourceGroupName, nextLink, options },
|
|
1078
|
+
listForResourceGroupNextOperationSpec
|
|
1079
|
+
);
|
|
987
1080
|
}
|
|
988
1081
|
|
|
989
1082
|
/**
|
|
990
|
-
*
|
|
991
|
-
* @param
|
|
992
|
-
* @param
|
|
993
|
-
* @
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
* @param options The optional parameters
|
|
1004
|
-
* @param callback The callback
|
|
1005
|
-
*/
|
|
1006
|
-
listDeploymentsAtResourceNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.RemediationDeploymentsListResult>): void;
|
|
1007
|
-
listDeploymentsAtResourceNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.RemediationDeploymentsListResult>, callback?: msRest.ServiceCallback<Models.RemediationDeploymentsListResult>): Promise<Models.RemediationsListDeploymentsAtResourceNextResponse> {
|
|
1083
|
+
* ListDeploymentsAtResourceNext
|
|
1084
|
+
* @param resourceId Resource ID.
|
|
1085
|
+
* @param remediationName The name of the remediation.
|
|
1086
|
+
* @param nextLink The nextLink from the previous successful call to the ListDeploymentsAtResource
|
|
1087
|
+
* method.
|
|
1088
|
+
* @param options The options parameters.
|
|
1089
|
+
*/
|
|
1090
|
+
private _listDeploymentsAtResourceNext(
|
|
1091
|
+
resourceId: string,
|
|
1092
|
+
remediationName: string,
|
|
1093
|
+
nextLink: string,
|
|
1094
|
+
options?: RemediationsListDeploymentsAtResourceNextOptionalParams
|
|
1095
|
+
): Promise<RemediationsListDeploymentsAtResourceNextResponse> {
|
|
1008
1096
|
return this.client.sendOperationRequest(
|
|
1009
|
-
{
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
},
|
|
1013
|
-
listDeploymentsAtResourceNextOperationSpec,
|
|
1014
|
-
callback) as Promise<Models.RemediationsListDeploymentsAtResourceNextResponse>;
|
|
1097
|
+
{ resourceId, remediationName, nextLink, options },
|
|
1098
|
+
listDeploymentsAtResourceNextOperationSpec
|
|
1099
|
+
);
|
|
1015
1100
|
}
|
|
1016
1101
|
|
|
1017
1102
|
/**
|
|
1018
|
-
*
|
|
1019
|
-
* @param
|
|
1020
|
-
* @param
|
|
1021
|
-
* @
|
|
1022
|
-
*/
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
listForResourceNext(nextPageLink: string, callback: msRest.ServiceCallback<Models.RemediationListResult>): void;
|
|
1029
|
-
/**
|
|
1030
|
-
* @param nextPageLink The NextLink from the previous successful call to List operation.
|
|
1031
|
-
* @param options The optional parameters
|
|
1032
|
-
* @param callback The callback
|
|
1033
|
-
*/
|
|
1034
|
-
listForResourceNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.RemediationListResult>): void;
|
|
1035
|
-
listForResourceNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.RemediationListResult>, callback?: msRest.ServiceCallback<Models.RemediationListResult>): Promise<Models.RemediationsListForResourceNextResponse> {
|
|
1103
|
+
* ListForResourceNext
|
|
1104
|
+
* @param resourceId Resource ID.
|
|
1105
|
+
* @param nextLink The nextLink from the previous successful call to the ListForResource method.
|
|
1106
|
+
* @param options The options parameters.
|
|
1107
|
+
*/
|
|
1108
|
+
private _listForResourceNext(
|
|
1109
|
+
resourceId: string,
|
|
1110
|
+
nextLink: string,
|
|
1111
|
+
options?: RemediationsListForResourceNextOptionalParams
|
|
1112
|
+
): Promise<RemediationsListForResourceNextResponse> {
|
|
1036
1113
|
return this.client.sendOperationRequest(
|
|
1037
|
-
{
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
},
|
|
1041
|
-
listForResourceNextOperationSpec,
|
|
1042
|
-
callback) as Promise<Models.RemediationsListForResourceNextResponse>;
|
|
1114
|
+
{ resourceId, nextLink, options },
|
|
1115
|
+
listForResourceNextOperationSpec
|
|
1116
|
+
);
|
|
1043
1117
|
}
|
|
1044
1118
|
}
|
|
1045
|
-
|
|
1046
1119
|
// Operation Specifications
|
|
1047
|
-
const serializer =
|
|
1048
|
-
|
|
1120
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
1121
|
+
|
|
1122
|
+
const listDeploymentsAtManagementGroupOperationSpec: coreClient.OperationSpec = {
|
|
1123
|
+
path:
|
|
1124
|
+
"/providers/{managementGroupsNamespace}/managementGroups/{managementGroupId}/providers/Microsoft.PolicyInsights/remediations/{remediationName}/listDeployments",
|
|
1049
1125
|
httpMethod: "POST",
|
|
1050
|
-
path: "providers/{managementGroupsNamespace}/managementGroups/{managementGroupId}/providers/Microsoft.PolicyInsights/remediations/{remediationName}/listDeployments",
|
|
1051
|
-
urlParameters: [
|
|
1052
|
-
Parameters.managementGroupsNamespace,
|
|
1053
|
-
Parameters.managementGroupId,
|
|
1054
|
-
Parameters.remediationName
|
|
1055
|
-
],
|
|
1056
|
-
queryParameters: [
|
|
1057
|
-
Parameters.apiVersion1,
|
|
1058
|
-
Parameters.top
|
|
1059
|
-
],
|
|
1060
|
-
headerParameters: [
|
|
1061
|
-
Parameters.acceptLanguage
|
|
1062
|
-
],
|
|
1063
1126
|
responses: {
|
|
1064
1127
|
200: {
|
|
1065
1128
|
bodyMapper: Mappers.RemediationDeploymentsListResult
|
|
@@ -1068,23 +1131,20 @@ const listDeploymentsAtManagementGroupOperationSpec: msRest.OperationSpec = {
|
|
|
1068
1131
|
bodyMapper: Mappers.ErrorResponse
|
|
1069
1132
|
}
|
|
1070
1133
|
},
|
|
1071
|
-
|
|
1072
|
-
};
|
|
1073
|
-
|
|
1074
|
-
const cancelAtManagementGroupOperationSpec: msRest.OperationSpec = {
|
|
1075
|
-
httpMethod: "POST",
|
|
1076
|
-
path: "providers/{managementGroupsNamespace}/managementGroups/{managementGroupId}/providers/Microsoft.PolicyInsights/remediations/{remediationName}/cancel",
|
|
1134
|
+
queryParameters: [Parameters.top, Parameters.apiVersion1],
|
|
1077
1135
|
urlParameters: [
|
|
1136
|
+
Parameters.$host,
|
|
1078
1137
|
Parameters.managementGroupsNamespace,
|
|
1079
1138
|
Parameters.managementGroupId,
|
|
1080
1139
|
Parameters.remediationName
|
|
1081
1140
|
],
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1141
|
+
headerParameters: [Parameters.accept],
|
|
1142
|
+
serializer
|
|
1143
|
+
};
|
|
1144
|
+
const cancelAtManagementGroupOperationSpec: coreClient.OperationSpec = {
|
|
1145
|
+
path:
|
|
1146
|
+
"/providers/{managementGroupsNamespace}/managementGroups/{managementGroupId}/providers/Microsoft.PolicyInsights/remediations/{remediationName}/cancel",
|
|
1147
|
+
httpMethod: "POST",
|
|
1088
1148
|
responses: {
|
|
1089
1149
|
200: {
|
|
1090
1150
|
bodyMapper: Mappers.Remediation
|
|
@@ -1093,24 +1153,20 @@ const cancelAtManagementGroupOperationSpec: msRest.OperationSpec = {
|
|
|
1093
1153
|
bodyMapper: Mappers.ErrorResponse
|
|
1094
1154
|
}
|
|
1095
1155
|
},
|
|
1096
|
-
|
|
1097
|
-
};
|
|
1098
|
-
|
|
1099
|
-
const listForManagementGroupOperationSpec: msRest.OperationSpec = {
|
|
1100
|
-
httpMethod: "GET",
|
|
1101
|
-
path: "providers/{managementGroupsNamespace}/managementGroups/{managementGroupId}/providers/Microsoft.PolicyInsights/remediations",
|
|
1156
|
+
queryParameters: [Parameters.apiVersion1],
|
|
1102
1157
|
urlParameters: [
|
|
1158
|
+
Parameters.$host,
|
|
1103
1159
|
Parameters.managementGroupsNamespace,
|
|
1104
|
-
Parameters.managementGroupId
|
|
1105
|
-
|
|
1106
|
-
queryParameters: [
|
|
1107
|
-
Parameters.apiVersion1,
|
|
1108
|
-
Parameters.top,
|
|
1109
|
-
Parameters.filter
|
|
1110
|
-
],
|
|
1111
|
-
headerParameters: [
|
|
1112
|
-
Parameters.acceptLanguage
|
|
1160
|
+
Parameters.managementGroupId,
|
|
1161
|
+
Parameters.remediationName
|
|
1113
1162
|
],
|
|
1163
|
+
headerParameters: [Parameters.accept],
|
|
1164
|
+
serializer
|
|
1165
|
+
};
|
|
1166
|
+
const listForManagementGroupOperationSpec: coreClient.OperationSpec = {
|
|
1167
|
+
path:
|
|
1168
|
+
"/providers/{managementGroupsNamespace}/managementGroups/{managementGroupId}/providers/Microsoft.PolicyInsights/remediations",
|
|
1169
|
+
httpMethod: "GET",
|
|
1114
1170
|
responses: {
|
|
1115
1171
|
200: {
|
|
1116
1172
|
bodyMapper: Mappers.RemediationListResult
|
|
@@ -1119,30 +1175,19 @@ const listForManagementGroupOperationSpec: msRest.OperationSpec = {
|
|
|
1119
1175
|
bodyMapper: Mappers.ErrorResponse
|
|
1120
1176
|
}
|
|
1121
1177
|
},
|
|
1122
|
-
|
|
1123
|
-
};
|
|
1124
|
-
|
|
1125
|
-
const createOrUpdateAtManagementGroupOperationSpec: msRest.OperationSpec = {
|
|
1126
|
-
httpMethod: "PUT",
|
|
1127
|
-
path: "providers/{managementGroupsNamespace}/managementGroups/{managementGroupId}/providers/Microsoft.PolicyInsights/remediations/{remediationName}",
|
|
1178
|
+
queryParameters: [Parameters.top, Parameters.filter, Parameters.apiVersion1],
|
|
1128
1179
|
urlParameters: [
|
|
1180
|
+
Parameters.$host,
|
|
1129
1181
|
Parameters.managementGroupsNamespace,
|
|
1130
|
-
Parameters.managementGroupId
|
|
1131
|
-
Parameters.remediationName
|
|
1132
|
-
],
|
|
1133
|
-
queryParameters: [
|
|
1134
|
-
Parameters.apiVersion1
|
|
1135
|
-
],
|
|
1136
|
-
headerParameters: [
|
|
1137
|
-
Parameters.acceptLanguage
|
|
1182
|
+
Parameters.managementGroupId
|
|
1138
1183
|
],
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
}
|
|
1145
|
-
|
|
1184
|
+
headerParameters: [Parameters.accept],
|
|
1185
|
+
serializer
|
|
1186
|
+
};
|
|
1187
|
+
const createOrUpdateAtManagementGroupOperationSpec: coreClient.OperationSpec = {
|
|
1188
|
+
path:
|
|
1189
|
+
"/providers/{managementGroupsNamespace}/managementGroups/{managementGroupId}/providers/Microsoft.PolicyInsights/remediations/{remediationName}",
|
|
1190
|
+
httpMethod: "PUT",
|
|
1146
1191
|
responses: {
|
|
1147
1192
|
200: {
|
|
1148
1193
|
bodyMapper: Mappers.Remediation
|
|
@@ -1154,23 +1199,22 @@ const createOrUpdateAtManagementGroupOperationSpec: msRest.OperationSpec = {
|
|
|
1154
1199
|
bodyMapper: Mappers.ErrorResponse
|
|
1155
1200
|
}
|
|
1156
1201
|
},
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
const getAtManagementGroupOperationSpec: msRest.OperationSpec = {
|
|
1161
|
-
httpMethod: "GET",
|
|
1162
|
-
path: "providers/{managementGroupsNamespace}/managementGroups/{managementGroupId}/providers/Microsoft.PolicyInsights/remediations/{remediationName}",
|
|
1202
|
+
requestBody: Parameters.parameters,
|
|
1203
|
+
queryParameters: [Parameters.apiVersion1],
|
|
1163
1204
|
urlParameters: [
|
|
1205
|
+
Parameters.$host,
|
|
1164
1206
|
Parameters.managementGroupsNamespace,
|
|
1165
1207
|
Parameters.managementGroupId,
|
|
1166
1208
|
Parameters.remediationName
|
|
1167
1209
|
],
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1210
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
1211
|
+
mediaType: "json",
|
|
1212
|
+
serializer
|
|
1213
|
+
};
|
|
1214
|
+
const getAtManagementGroupOperationSpec: coreClient.OperationSpec = {
|
|
1215
|
+
path:
|
|
1216
|
+
"/providers/{managementGroupsNamespace}/managementGroups/{managementGroupId}/providers/Microsoft.PolicyInsights/remediations/{remediationName}",
|
|
1217
|
+
httpMethod: "GET",
|
|
1174
1218
|
responses: {
|
|
1175
1219
|
200: {
|
|
1176
1220
|
bodyMapper: Mappers.Remediation
|
|
@@ -1179,23 +1223,20 @@ const getAtManagementGroupOperationSpec: msRest.OperationSpec = {
|
|
|
1179
1223
|
bodyMapper: Mappers.ErrorResponse
|
|
1180
1224
|
}
|
|
1181
1225
|
},
|
|
1182
|
-
|
|
1183
|
-
};
|
|
1184
|
-
|
|
1185
|
-
const deleteAtManagementGroupOperationSpec: msRest.OperationSpec = {
|
|
1186
|
-
httpMethod: "DELETE",
|
|
1187
|
-
path: "providers/{managementGroupsNamespace}/managementGroups/{managementGroupId}/providers/Microsoft.PolicyInsights/remediations/{remediationName}",
|
|
1226
|
+
queryParameters: [Parameters.apiVersion1],
|
|
1188
1227
|
urlParameters: [
|
|
1228
|
+
Parameters.$host,
|
|
1189
1229
|
Parameters.managementGroupsNamespace,
|
|
1190
1230
|
Parameters.managementGroupId,
|
|
1191
1231
|
Parameters.remediationName
|
|
1192
1232
|
],
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1233
|
+
headerParameters: [Parameters.accept],
|
|
1234
|
+
serializer
|
|
1235
|
+
};
|
|
1236
|
+
const deleteAtManagementGroupOperationSpec: coreClient.OperationSpec = {
|
|
1237
|
+
path:
|
|
1238
|
+
"/providers/{managementGroupsNamespace}/managementGroups/{managementGroupId}/providers/Microsoft.PolicyInsights/remediations/{remediationName}",
|
|
1239
|
+
httpMethod: "DELETE",
|
|
1199
1240
|
responses: {
|
|
1200
1241
|
200: {
|
|
1201
1242
|
bodyMapper: Mappers.Remediation
|
|
@@ -1203,25 +1244,22 @@ const deleteAtManagementGroupOperationSpec: msRest.OperationSpec = {
|
|
|
1203
1244
|
204: {},
|
|
1204
1245
|
default: {
|
|
1205
1246
|
bodyMapper: Mappers.ErrorResponse
|
|
1206
|
-
}
|
|
1207
|
-
},
|
|
1208
|
-
|
|
1209
|
-
};
|
|
1210
|
-
|
|
1211
|
-
const listDeploymentsAtSubscriptionOperationSpec: msRest.OperationSpec = {
|
|
1212
|
-
httpMethod: "POST",
|
|
1213
|
-
path: "subscriptions/{subscriptionId}/providers/Microsoft.PolicyInsights/remediations/{remediationName}/listDeployments",
|
|
1247
|
+
}
|
|
1248
|
+
},
|
|
1249
|
+
queryParameters: [Parameters.apiVersion1],
|
|
1214
1250
|
urlParameters: [
|
|
1215
|
-
Parameters
|
|
1251
|
+
Parameters.$host,
|
|
1252
|
+
Parameters.managementGroupsNamespace,
|
|
1253
|
+
Parameters.managementGroupId,
|
|
1216
1254
|
Parameters.remediationName
|
|
1217
1255
|
],
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
1256
|
+
headerParameters: [Parameters.accept],
|
|
1257
|
+
serializer
|
|
1258
|
+
};
|
|
1259
|
+
const listDeploymentsAtSubscriptionOperationSpec: coreClient.OperationSpec = {
|
|
1260
|
+
path:
|
|
1261
|
+
"/subscriptions/{subscriptionId}/providers/Microsoft.PolicyInsights/remediations/{remediationName}/listDeployments",
|
|
1262
|
+
httpMethod: "POST",
|
|
1225
1263
|
responses: {
|
|
1226
1264
|
200: {
|
|
1227
1265
|
bodyMapper: Mappers.RemediationDeploymentsListResult
|
|
@@ -1230,22 +1268,19 @@ const listDeploymentsAtSubscriptionOperationSpec: msRest.OperationSpec = {
|
|
|
1230
1268
|
bodyMapper: Mappers.ErrorResponse
|
|
1231
1269
|
}
|
|
1232
1270
|
},
|
|
1233
|
-
|
|
1234
|
-
};
|
|
1235
|
-
|
|
1236
|
-
const cancelAtSubscriptionOperationSpec: msRest.OperationSpec = {
|
|
1237
|
-
httpMethod: "POST",
|
|
1238
|
-
path: "subscriptions/{subscriptionId}/providers/Microsoft.PolicyInsights/remediations/{remediationName}/cancel",
|
|
1271
|
+
queryParameters: [Parameters.top, Parameters.apiVersion1],
|
|
1239
1272
|
urlParameters: [
|
|
1273
|
+
Parameters.$host,
|
|
1240
1274
|
Parameters.subscriptionId,
|
|
1241
1275
|
Parameters.remediationName
|
|
1242
1276
|
],
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
|
|
1277
|
+
headerParameters: [Parameters.accept],
|
|
1278
|
+
serializer
|
|
1279
|
+
};
|
|
1280
|
+
const cancelAtSubscriptionOperationSpec: coreClient.OperationSpec = {
|
|
1281
|
+
path:
|
|
1282
|
+
"/subscriptions/{subscriptionId}/providers/Microsoft.PolicyInsights/remediations/{remediationName}/cancel",
|
|
1283
|
+
httpMethod: "POST",
|
|
1249
1284
|
responses: {
|
|
1250
1285
|
200: {
|
|
1251
1286
|
bodyMapper: Mappers.Remediation
|
|
@@ -1254,23 +1289,19 @@ const cancelAtSubscriptionOperationSpec: msRest.OperationSpec = {
|
|
|
1254
1289
|
bodyMapper: Mappers.ErrorResponse
|
|
1255
1290
|
}
|
|
1256
1291
|
},
|
|
1292
|
+
queryParameters: [Parameters.apiVersion1],
|
|
1293
|
+
urlParameters: [
|
|
1294
|
+
Parameters.$host,
|
|
1295
|
+
Parameters.subscriptionId,
|
|
1296
|
+
Parameters.remediationName
|
|
1297
|
+
],
|
|
1298
|
+
headerParameters: [Parameters.accept],
|
|
1257
1299
|
serializer
|
|
1258
1300
|
};
|
|
1259
|
-
|
|
1260
|
-
|
|
1301
|
+
const listForSubscriptionOperationSpec: coreClient.OperationSpec = {
|
|
1302
|
+
path:
|
|
1303
|
+
"/subscriptions/{subscriptionId}/providers/Microsoft.PolicyInsights/remediations",
|
|
1261
1304
|
httpMethod: "GET",
|
|
1262
|
-
path: "subscriptions/{subscriptionId}/providers/Microsoft.PolicyInsights/remediations",
|
|
1263
|
-
urlParameters: [
|
|
1264
|
-
Parameters.subscriptionId
|
|
1265
|
-
],
|
|
1266
|
-
queryParameters: [
|
|
1267
|
-
Parameters.apiVersion1,
|
|
1268
|
-
Parameters.top,
|
|
1269
|
-
Parameters.filter
|
|
1270
|
-
],
|
|
1271
|
-
headerParameters: [
|
|
1272
|
-
Parameters.acceptLanguage
|
|
1273
|
-
],
|
|
1274
1305
|
responses: {
|
|
1275
1306
|
200: {
|
|
1276
1307
|
bodyMapper: Mappers.RemediationListResult
|
|
@@ -1279,29 +1310,15 @@ const listForSubscriptionOperationSpec: msRest.OperationSpec = {
|
|
|
1279
1310
|
bodyMapper: Mappers.ErrorResponse
|
|
1280
1311
|
}
|
|
1281
1312
|
},
|
|
1313
|
+
queryParameters: [Parameters.top, Parameters.filter, Parameters.apiVersion1],
|
|
1314
|
+
urlParameters: [Parameters.$host, Parameters.subscriptionId],
|
|
1315
|
+
headerParameters: [Parameters.accept],
|
|
1282
1316
|
serializer
|
|
1283
1317
|
};
|
|
1284
|
-
|
|
1285
|
-
|
|
1318
|
+
const createOrUpdateAtSubscriptionOperationSpec: coreClient.OperationSpec = {
|
|
1319
|
+
path:
|
|
1320
|
+
"/subscriptions/{subscriptionId}/providers/Microsoft.PolicyInsights/remediations/{remediationName}",
|
|
1286
1321
|
httpMethod: "PUT",
|
|
1287
|
-
path: "subscriptions/{subscriptionId}/providers/Microsoft.PolicyInsights/remediations/{remediationName}",
|
|
1288
|
-
urlParameters: [
|
|
1289
|
-
Parameters.subscriptionId,
|
|
1290
|
-
Parameters.remediationName
|
|
1291
|
-
],
|
|
1292
|
-
queryParameters: [
|
|
1293
|
-
Parameters.apiVersion1
|
|
1294
|
-
],
|
|
1295
|
-
headerParameters: [
|
|
1296
|
-
Parameters.acceptLanguage
|
|
1297
|
-
],
|
|
1298
|
-
requestBody: {
|
|
1299
|
-
parameterPath: "parameters",
|
|
1300
|
-
mapper: {
|
|
1301
|
-
...Mappers.Remediation,
|
|
1302
|
-
required: true
|
|
1303
|
-
}
|
|
1304
|
-
},
|
|
1305
1322
|
responses: {
|
|
1306
1323
|
200: {
|
|
1307
1324
|
bodyMapper: Mappers.Remediation
|
|
@@ -1313,22 +1330,21 @@ const createOrUpdateAtSubscriptionOperationSpec: msRest.OperationSpec = {
|
|
|
1313
1330
|
bodyMapper: Mappers.ErrorResponse
|
|
1314
1331
|
}
|
|
1315
1332
|
},
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
const getAtSubscriptionOperationSpec: msRest.OperationSpec = {
|
|
1320
|
-
httpMethod: "GET",
|
|
1321
|
-
path: "subscriptions/{subscriptionId}/providers/Microsoft.PolicyInsights/remediations/{remediationName}",
|
|
1333
|
+
requestBody: Parameters.parameters,
|
|
1334
|
+
queryParameters: [Parameters.apiVersion1],
|
|
1322
1335
|
urlParameters: [
|
|
1336
|
+
Parameters.$host,
|
|
1323
1337
|
Parameters.subscriptionId,
|
|
1324
1338
|
Parameters.remediationName
|
|
1325
1339
|
],
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
|
|
1340
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
1341
|
+
mediaType: "json",
|
|
1342
|
+
serializer
|
|
1343
|
+
};
|
|
1344
|
+
const getAtSubscriptionOperationSpec: coreClient.OperationSpec = {
|
|
1345
|
+
path:
|
|
1346
|
+
"/subscriptions/{subscriptionId}/providers/Microsoft.PolicyInsights/remediations/{remediationName}",
|
|
1347
|
+
httpMethod: "GET",
|
|
1332
1348
|
responses: {
|
|
1333
1349
|
200: {
|
|
1334
1350
|
bodyMapper: Mappers.Remediation
|
|
@@ -1337,22 +1353,19 @@ const getAtSubscriptionOperationSpec: msRest.OperationSpec = {
|
|
|
1337
1353
|
bodyMapper: Mappers.ErrorResponse
|
|
1338
1354
|
}
|
|
1339
1355
|
},
|
|
1340
|
-
|
|
1341
|
-
};
|
|
1342
|
-
|
|
1343
|
-
const deleteAtSubscriptionOperationSpec: msRest.OperationSpec = {
|
|
1344
|
-
httpMethod: "DELETE",
|
|
1345
|
-
path: "subscriptions/{subscriptionId}/providers/Microsoft.PolicyInsights/remediations/{remediationName}",
|
|
1356
|
+
queryParameters: [Parameters.apiVersion1],
|
|
1346
1357
|
urlParameters: [
|
|
1358
|
+
Parameters.$host,
|
|
1347
1359
|
Parameters.subscriptionId,
|
|
1348
1360
|
Parameters.remediationName
|
|
1349
1361
|
],
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
|
|
1362
|
+
headerParameters: [Parameters.accept],
|
|
1363
|
+
serializer
|
|
1364
|
+
};
|
|
1365
|
+
const deleteAtSubscriptionOperationSpec: coreClient.OperationSpec = {
|
|
1366
|
+
path:
|
|
1367
|
+
"/subscriptions/{subscriptionId}/providers/Microsoft.PolicyInsights/remediations/{remediationName}",
|
|
1368
|
+
httpMethod: "DELETE",
|
|
1356
1369
|
responses: {
|
|
1357
1370
|
200: {
|
|
1358
1371
|
bodyMapper: Mappers.Remediation
|
|
@@ -1362,24 +1375,19 @@ const deleteAtSubscriptionOperationSpec: msRest.OperationSpec = {
|
|
|
1362
1375
|
bodyMapper: Mappers.ErrorResponse
|
|
1363
1376
|
}
|
|
1364
1377
|
},
|
|
1365
|
-
|
|
1366
|
-
};
|
|
1367
|
-
|
|
1368
|
-
const listDeploymentsAtResourceGroupOperationSpec: msRest.OperationSpec = {
|
|
1369
|
-
httpMethod: "POST",
|
|
1370
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.PolicyInsights/remediations/{remediationName}/listDeployments",
|
|
1378
|
+
queryParameters: [Parameters.apiVersion1],
|
|
1371
1379
|
urlParameters: [
|
|
1380
|
+
Parameters.$host,
|
|
1372
1381
|
Parameters.subscriptionId,
|
|
1373
|
-
Parameters.resourceGroupName,
|
|
1374
1382
|
Parameters.remediationName
|
|
1375
1383
|
],
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
|
-
|
|
1384
|
+
headerParameters: [Parameters.accept],
|
|
1385
|
+
serializer
|
|
1386
|
+
};
|
|
1387
|
+
const listDeploymentsAtResourceGroupOperationSpec: coreClient.OperationSpec = {
|
|
1388
|
+
path:
|
|
1389
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.PolicyInsights/remediations/{remediationName}/listDeployments",
|
|
1390
|
+
httpMethod: "POST",
|
|
1383
1391
|
responses: {
|
|
1384
1392
|
200: {
|
|
1385
1393
|
bodyMapper: Mappers.RemediationDeploymentsListResult
|
|
@@ -1388,23 +1396,20 @@ const listDeploymentsAtResourceGroupOperationSpec: msRest.OperationSpec = {
|
|
|
1388
1396
|
bodyMapper: Mappers.ErrorResponse
|
|
1389
1397
|
}
|
|
1390
1398
|
},
|
|
1391
|
-
|
|
1392
|
-
};
|
|
1393
|
-
|
|
1394
|
-
const cancelAtResourceGroupOperationSpec: msRest.OperationSpec = {
|
|
1395
|
-
httpMethod: "POST",
|
|
1396
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.PolicyInsights/remediations/{remediationName}/cancel",
|
|
1399
|
+
queryParameters: [Parameters.top, Parameters.apiVersion1],
|
|
1397
1400
|
urlParameters: [
|
|
1401
|
+
Parameters.$host,
|
|
1398
1402
|
Parameters.subscriptionId,
|
|
1399
1403
|
Parameters.resourceGroupName,
|
|
1400
1404
|
Parameters.remediationName
|
|
1401
1405
|
],
|
|
1402
|
-
|
|
1403
|
-
|
|
1404
|
-
|
|
1405
|
-
|
|
1406
|
-
|
|
1407
|
-
|
|
1406
|
+
headerParameters: [Parameters.accept],
|
|
1407
|
+
serializer
|
|
1408
|
+
};
|
|
1409
|
+
const cancelAtResourceGroupOperationSpec: coreClient.OperationSpec = {
|
|
1410
|
+
path:
|
|
1411
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.PolicyInsights/remediations/{remediationName}/cancel",
|
|
1412
|
+
httpMethod: "POST",
|
|
1408
1413
|
responses: {
|
|
1409
1414
|
200: {
|
|
1410
1415
|
bodyMapper: Mappers.Remediation
|
|
@@ -1413,24 +1418,20 @@ const cancelAtResourceGroupOperationSpec: msRest.OperationSpec = {
|
|
|
1413
1418
|
bodyMapper: Mappers.ErrorResponse
|
|
1414
1419
|
}
|
|
1415
1420
|
},
|
|
1416
|
-
|
|
1417
|
-
};
|
|
1418
|
-
|
|
1419
|
-
const listForResourceGroupOperationSpec: msRest.OperationSpec = {
|
|
1420
|
-
httpMethod: "GET",
|
|
1421
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.PolicyInsights/remediations",
|
|
1421
|
+
queryParameters: [Parameters.apiVersion1],
|
|
1422
1422
|
urlParameters: [
|
|
1423
|
+
Parameters.$host,
|
|
1423
1424
|
Parameters.subscriptionId,
|
|
1424
|
-
Parameters.resourceGroupName
|
|
1425
|
-
|
|
1426
|
-
queryParameters: [
|
|
1427
|
-
Parameters.apiVersion1,
|
|
1428
|
-
Parameters.top,
|
|
1429
|
-
Parameters.filter
|
|
1430
|
-
],
|
|
1431
|
-
headerParameters: [
|
|
1432
|
-
Parameters.acceptLanguage
|
|
1425
|
+
Parameters.resourceGroupName,
|
|
1426
|
+
Parameters.remediationName
|
|
1433
1427
|
],
|
|
1428
|
+
headerParameters: [Parameters.accept],
|
|
1429
|
+
serializer
|
|
1430
|
+
};
|
|
1431
|
+
const listForResourceGroupOperationSpec: coreClient.OperationSpec = {
|
|
1432
|
+
path:
|
|
1433
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.PolicyInsights/remediations",
|
|
1434
|
+
httpMethod: "GET",
|
|
1434
1435
|
responses: {
|
|
1435
1436
|
200: {
|
|
1436
1437
|
bodyMapper: Mappers.RemediationListResult
|
|
@@ -1439,30 +1440,19 @@ const listForResourceGroupOperationSpec: msRest.OperationSpec = {
|
|
|
1439
1440
|
bodyMapper: Mappers.ErrorResponse
|
|
1440
1441
|
}
|
|
1441
1442
|
},
|
|
1442
|
-
|
|
1443
|
-
};
|
|
1444
|
-
|
|
1445
|
-
const createOrUpdateAtResourceGroupOperationSpec: msRest.OperationSpec = {
|
|
1446
|
-
httpMethod: "PUT",
|
|
1447
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.PolicyInsights/remediations/{remediationName}",
|
|
1443
|
+
queryParameters: [Parameters.top, Parameters.filter, Parameters.apiVersion1],
|
|
1448
1444
|
urlParameters: [
|
|
1445
|
+
Parameters.$host,
|
|
1449
1446
|
Parameters.subscriptionId,
|
|
1450
|
-
Parameters.resourceGroupName
|
|
1451
|
-
Parameters.remediationName
|
|
1452
|
-
],
|
|
1453
|
-
queryParameters: [
|
|
1454
|
-
Parameters.apiVersion1
|
|
1455
|
-
],
|
|
1456
|
-
headerParameters: [
|
|
1457
|
-
Parameters.acceptLanguage
|
|
1447
|
+
Parameters.resourceGroupName
|
|
1458
1448
|
],
|
|
1459
|
-
|
|
1460
|
-
|
|
1461
|
-
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
}
|
|
1465
|
-
|
|
1449
|
+
headerParameters: [Parameters.accept],
|
|
1450
|
+
serializer
|
|
1451
|
+
};
|
|
1452
|
+
const createOrUpdateAtResourceGroupOperationSpec: coreClient.OperationSpec = {
|
|
1453
|
+
path:
|
|
1454
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.PolicyInsights/remediations/{remediationName}",
|
|
1455
|
+
httpMethod: "PUT",
|
|
1466
1456
|
responses: {
|
|
1467
1457
|
200: {
|
|
1468
1458
|
bodyMapper: Mappers.Remediation
|
|
@@ -1474,23 +1464,22 @@ const createOrUpdateAtResourceGroupOperationSpec: msRest.OperationSpec = {
|
|
|
1474
1464
|
bodyMapper: Mappers.ErrorResponse
|
|
1475
1465
|
}
|
|
1476
1466
|
},
|
|
1477
|
-
|
|
1478
|
-
|
|
1479
|
-
|
|
1480
|
-
const getAtResourceGroupOperationSpec: msRest.OperationSpec = {
|
|
1481
|
-
httpMethod: "GET",
|
|
1482
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.PolicyInsights/remediations/{remediationName}",
|
|
1467
|
+
requestBody: Parameters.parameters,
|
|
1468
|
+
queryParameters: [Parameters.apiVersion1],
|
|
1483
1469
|
urlParameters: [
|
|
1470
|
+
Parameters.$host,
|
|
1484
1471
|
Parameters.subscriptionId,
|
|
1485
1472
|
Parameters.resourceGroupName,
|
|
1486
1473
|
Parameters.remediationName
|
|
1487
1474
|
],
|
|
1488
|
-
|
|
1489
|
-
|
|
1490
|
-
|
|
1491
|
-
|
|
1492
|
-
|
|
1493
|
-
|
|
1475
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
1476
|
+
mediaType: "json",
|
|
1477
|
+
serializer
|
|
1478
|
+
};
|
|
1479
|
+
const getAtResourceGroupOperationSpec: coreClient.OperationSpec = {
|
|
1480
|
+
path:
|
|
1481
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.PolicyInsights/remediations/{remediationName}",
|
|
1482
|
+
httpMethod: "GET",
|
|
1494
1483
|
responses: {
|
|
1495
1484
|
200: {
|
|
1496
1485
|
bodyMapper: Mappers.Remediation
|
|
@@ -1499,23 +1488,20 @@ const getAtResourceGroupOperationSpec: msRest.OperationSpec = {
|
|
|
1499
1488
|
bodyMapper: Mappers.ErrorResponse
|
|
1500
1489
|
}
|
|
1501
1490
|
},
|
|
1502
|
-
|
|
1503
|
-
};
|
|
1504
|
-
|
|
1505
|
-
const deleteAtResourceGroupOperationSpec: msRest.OperationSpec = {
|
|
1506
|
-
httpMethod: "DELETE",
|
|
1507
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.PolicyInsights/remediations/{remediationName}",
|
|
1491
|
+
queryParameters: [Parameters.apiVersion1],
|
|
1508
1492
|
urlParameters: [
|
|
1493
|
+
Parameters.$host,
|
|
1509
1494
|
Parameters.subscriptionId,
|
|
1510
1495
|
Parameters.resourceGroupName,
|
|
1511
1496
|
Parameters.remediationName
|
|
1512
1497
|
],
|
|
1513
|
-
|
|
1514
|
-
|
|
1515
|
-
|
|
1516
|
-
|
|
1517
|
-
|
|
1518
|
-
|
|
1498
|
+
headerParameters: [Parameters.accept],
|
|
1499
|
+
serializer
|
|
1500
|
+
};
|
|
1501
|
+
const deleteAtResourceGroupOperationSpec: coreClient.OperationSpec = {
|
|
1502
|
+
path:
|
|
1503
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.PolicyInsights/remediations/{remediationName}",
|
|
1504
|
+
httpMethod: "DELETE",
|
|
1519
1505
|
responses: {
|
|
1520
1506
|
200: {
|
|
1521
1507
|
bodyMapper: Mappers.Remediation
|
|
@@ -1525,23 +1511,20 @@ const deleteAtResourceGroupOperationSpec: msRest.OperationSpec = {
|
|
|
1525
1511
|
bodyMapper: Mappers.ErrorResponse
|
|
1526
1512
|
}
|
|
1527
1513
|
},
|
|
1528
|
-
|
|
1529
|
-
};
|
|
1530
|
-
|
|
1531
|
-
const listDeploymentsAtResourceOperationSpec: msRest.OperationSpec = {
|
|
1532
|
-
httpMethod: "POST",
|
|
1533
|
-
path: "{resourceId}/providers/Microsoft.PolicyInsights/remediations/{remediationName}/listDeployments",
|
|
1514
|
+
queryParameters: [Parameters.apiVersion1],
|
|
1534
1515
|
urlParameters: [
|
|
1535
|
-
Parameters
|
|
1516
|
+
Parameters.$host,
|
|
1517
|
+
Parameters.subscriptionId,
|
|
1518
|
+
Parameters.resourceGroupName,
|
|
1536
1519
|
Parameters.remediationName
|
|
1537
1520
|
],
|
|
1538
|
-
|
|
1539
|
-
|
|
1540
|
-
|
|
1541
|
-
|
|
1542
|
-
|
|
1543
|
-
|
|
1544
|
-
|
|
1521
|
+
headerParameters: [Parameters.accept],
|
|
1522
|
+
serializer
|
|
1523
|
+
};
|
|
1524
|
+
const listDeploymentsAtResourceOperationSpec: coreClient.OperationSpec = {
|
|
1525
|
+
path:
|
|
1526
|
+
"/{resourceId}/providers/Microsoft.PolicyInsights/remediations/{remediationName}/listDeployments",
|
|
1527
|
+
httpMethod: "POST",
|
|
1545
1528
|
responses: {
|
|
1546
1529
|
200: {
|
|
1547
1530
|
bodyMapper: Mappers.RemediationDeploymentsListResult
|
|
@@ -1550,22 +1533,19 @@ const listDeploymentsAtResourceOperationSpec: msRest.OperationSpec = {
|
|
|
1550
1533
|
bodyMapper: Mappers.ErrorResponse
|
|
1551
1534
|
}
|
|
1552
1535
|
},
|
|
1553
|
-
|
|
1554
|
-
};
|
|
1555
|
-
|
|
1556
|
-
const cancelAtResourceOperationSpec: msRest.OperationSpec = {
|
|
1557
|
-
httpMethod: "POST",
|
|
1558
|
-
path: "{resourceId}/providers/Microsoft.PolicyInsights/remediations/{remediationName}/cancel",
|
|
1536
|
+
queryParameters: [Parameters.top, Parameters.apiVersion1],
|
|
1559
1537
|
urlParameters: [
|
|
1538
|
+
Parameters.$host,
|
|
1560
1539
|
Parameters.resourceId,
|
|
1561
1540
|
Parameters.remediationName
|
|
1562
1541
|
],
|
|
1563
|
-
|
|
1564
|
-
|
|
1565
|
-
|
|
1566
|
-
|
|
1567
|
-
|
|
1568
|
-
|
|
1542
|
+
headerParameters: [Parameters.accept],
|
|
1543
|
+
serializer
|
|
1544
|
+
};
|
|
1545
|
+
const cancelAtResourceOperationSpec: coreClient.OperationSpec = {
|
|
1546
|
+
path:
|
|
1547
|
+
"/{resourceId}/providers/Microsoft.PolicyInsights/remediations/{remediationName}/cancel",
|
|
1548
|
+
httpMethod: "POST",
|
|
1569
1549
|
responses: {
|
|
1570
1550
|
200: {
|
|
1571
1551
|
bodyMapper: Mappers.Remediation
|
|
@@ -1574,23 +1554,18 @@ const cancelAtResourceOperationSpec: msRest.OperationSpec = {
|
|
|
1574
1554
|
bodyMapper: Mappers.ErrorResponse
|
|
1575
1555
|
}
|
|
1576
1556
|
},
|
|
1557
|
+
queryParameters: [Parameters.apiVersion1],
|
|
1558
|
+
urlParameters: [
|
|
1559
|
+
Parameters.$host,
|
|
1560
|
+
Parameters.resourceId,
|
|
1561
|
+
Parameters.remediationName
|
|
1562
|
+
],
|
|
1563
|
+
headerParameters: [Parameters.accept],
|
|
1577
1564
|
serializer
|
|
1578
1565
|
};
|
|
1579
|
-
|
|
1580
|
-
|
|
1566
|
+
const listForResourceOperationSpec: coreClient.OperationSpec = {
|
|
1567
|
+
path: "/{resourceId}/providers/Microsoft.PolicyInsights/remediations",
|
|
1581
1568
|
httpMethod: "GET",
|
|
1582
|
-
path: "{resourceId}/providers/Microsoft.PolicyInsights/remediations",
|
|
1583
|
-
urlParameters: [
|
|
1584
|
-
Parameters.resourceId
|
|
1585
|
-
],
|
|
1586
|
-
queryParameters: [
|
|
1587
|
-
Parameters.apiVersion1,
|
|
1588
|
-
Parameters.top,
|
|
1589
|
-
Parameters.filter
|
|
1590
|
-
],
|
|
1591
|
-
headerParameters: [
|
|
1592
|
-
Parameters.acceptLanguage
|
|
1593
|
-
],
|
|
1594
1569
|
responses: {
|
|
1595
1570
|
200: {
|
|
1596
1571
|
bodyMapper: Mappers.RemediationListResult
|
|
@@ -1599,29 +1574,15 @@ const listForResourceOperationSpec: msRest.OperationSpec = {
|
|
|
1599
1574
|
bodyMapper: Mappers.ErrorResponse
|
|
1600
1575
|
}
|
|
1601
1576
|
},
|
|
1577
|
+
queryParameters: [Parameters.top, Parameters.filter, Parameters.apiVersion1],
|
|
1578
|
+
urlParameters: [Parameters.$host, Parameters.resourceId],
|
|
1579
|
+
headerParameters: [Parameters.accept],
|
|
1602
1580
|
serializer
|
|
1603
1581
|
};
|
|
1604
|
-
|
|
1605
|
-
|
|
1582
|
+
const createOrUpdateAtResourceOperationSpec: coreClient.OperationSpec = {
|
|
1583
|
+
path:
|
|
1584
|
+
"/{resourceId}/providers/Microsoft.PolicyInsights/remediations/{remediationName}",
|
|
1606
1585
|
httpMethod: "PUT",
|
|
1607
|
-
path: "{resourceId}/providers/Microsoft.PolicyInsights/remediations/{remediationName}",
|
|
1608
|
-
urlParameters: [
|
|
1609
|
-
Parameters.resourceId,
|
|
1610
|
-
Parameters.remediationName
|
|
1611
|
-
],
|
|
1612
|
-
queryParameters: [
|
|
1613
|
-
Parameters.apiVersion1
|
|
1614
|
-
],
|
|
1615
|
-
headerParameters: [
|
|
1616
|
-
Parameters.acceptLanguage
|
|
1617
|
-
],
|
|
1618
|
-
requestBody: {
|
|
1619
|
-
parameterPath: "parameters",
|
|
1620
|
-
mapper: {
|
|
1621
|
-
...Mappers.Remediation,
|
|
1622
|
-
required: true
|
|
1623
|
-
}
|
|
1624
|
-
},
|
|
1625
1586
|
responses: {
|
|
1626
1587
|
200: {
|
|
1627
1588
|
bodyMapper: Mappers.Remediation
|
|
@@ -1633,22 +1594,21 @@ const createOrUpdateAtResourceOperationSpec: msRest.OperationSpec = {
|
|
|
1633
1594
|
bodyMapper: Mappers.ErrorResponse
|
|
1634
1595
|
}
|
|
1635
1596
|
},
|
|
1636
|
-
|
|
1637
|
-
|
|
1638
|
-
|
|
1639
|
-
const getAtResourceOperationSpec: msRest.OperationSpec = {
|
|
1640
|
-
httpMethod: "GET",
|
|
1641
|
-
path: "{resourceId}/providers/Microsoft.PolicyInsights/remediations/{remediationName}",
|
|
1597
|
+
requestBody: Parameters.parameters,
|
|
1598
|
+
queryParameters: [Parameters.apiVersion1],
|
|
1642
1599
|
urlParameters: [
|
|
1600
|
+
Parameters.$host,
|
|
1643
1601
|
Parameters.resourceId,
|
|
1644
1602
|
Parameters.remediationName
|
|
1645
1603
|
],
|
|
1646
|
-
|
|
1647
|
-
|
|
1648
|
-
|
|
1649
|
-
|
|
1650
|
-
|
|
1651
|
-
|
|
1604
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
1605
|
+
mediaType: "json",
|
|
1606
|
+
serializer
|
|
1607
|
+
};
|
|
1608
|
+
const getAtResourceOperationSpec: coreClient.OperationSpec = {
|
|
1609
|
+
path:
|
|
1610
|
+
"/{resourceId}/providers/Microsoft.PolicyInsights/remediations/{remediationName}",
|
|
1611
|
+
httpMethod: "GET",
|
|
1652
1612
|
responses: {
|
|
1653
1613
|
200: {
|
|
1654
1614
|
bodyMapper: Mappers.Remediation
|
|
@@ -1657,22 +1617,19 @@ const getAtResourceOperationSpec: msRest.OperationSpec = {
|
|
|
1657
1617
|
bodyMapper: Mappers.ErrorResponse
|
|
1658
1618
|
}
|
|
1659
1619
|
},
|
|
1660
|
-
|
|
1661
|
-
};
|
|
1662
|
-
|
|
1663
|
-
const deleteAtResourceOperationSpec: msRest.OperationSpec = {
|
|
1664
|
-
httpMethod: "DELETE",
|
|
1665
|
-
path: "{resourceId}/providers/Microsoft.PolicyInsights/remediations/{remediationName}",
|
|
1620
|
+
queryParameters: [Parameters.apiVersion1],
|
|
1666
1621
|
urlParameters: [
|
|
1622
|
+
Parameters.$host,
|
|
1667
1623
|
Parameters.resourceId,
|
|
1668
1624
|
Parameters.remediationName
|
|
1669
1625
|
],
|
|
1670
|
-
|
|
1671
|
-
|
|
1672
|
-
|
|
1673
|
-
|
|
1674
|
-
|
|
1675
|
-
|
|
1626
|
+
headerParameters: [Parameters.accept],
|
|
1627
|
+
serializer
|
|
1628
|
+
};
|
|
1629
|
+
const deleteAtResourceOperationSpec: coreClient.OperationSpec = {
|
|
1630
|
+
path:
|
|
1631
|
+
"/{resourceId}/providers/Microsoft.PolicyInsights/remediations/{remediationName}",
|
|
1632
|
+
httpMethod: "DELETE",
|
|
1676
1633
|
responses: {
|
|
1677
1634
|
200: {
|
|
1678
1635
|
bodyMapper: Mappers.Remediation
|
|
@@ -1682,19 +1639,18 @@ const deleteAtResourceOperationSpec: msRest.OperationSpec = {
|
|
|
1682
1639
|
bodyMapper: Mappers.ErrorResponse
|
|
1683
1640
|
}
|
|
1684
1641
|
},
|
|
1642
|
+
queryParameters: [Parameters.apiVersion1],
|
|
1643
|
+
urlParameters: [
|
|
1644
|
+
Parameters.$host,
|
|
1645
|
+
Parameters.resourceId,
|
|
1646
|
+
Parameters.remediationName
|
|
1647
|
+
],
|
|
1648
|
+
headerParameters: [Parameters.accept],
|
|
1685
1649
|
serializer
|
|
1686
1650
|
};
|
|
1687
|
-
|
|
1688
|
-
const listDeploymentsAtManagementGroupNextOperationSpec: msRest.OperationSpec = {
|
|
1689
|
-
httpMethod: "POST",
|
|
1690
|
-
baseUrl: "https://management.azure.com",
|
|
1651
|
+
const listDeploymentsAtManagementGroupNextOperationSpec: coreClient.OperationSpec = {
|
|
1691
1652
|
path: "{nextLink}",
|
|
1692
|
-
|
|
1693
|
-
Parameters.nextPageLink
|
|
1694
|
-
],
|
|
1695
|
-
headerParameters: [
|
|
1696
|
-
Parameters.acceptLanguage
|
|
1697
|
-
],
|
|
1653
|
+
httpMethod: "GET",
|
|
1698
1654
|
responses: {
|
|
1699
1655
|
200: {
|
|
1700
1656
|
bodyMapper: Mappers.RemediationDeploymentsListResult
|
|
@@ -1703,19 +1659,20 @@ const listDeploymentsAtManagementGroupNextOperationSpec: msRest.OperationSpec =
|
|
|
1703
1659
|
bodyMapper: Mappers.ErrorResponse
|
|
1704
1660
|
}
|
|
1705
1661
|
},
|
|
1662
|
+
queryParameters: [Parameters.top, Parameters.apiVersion1],
|
|
1663
|
+
urlParameters: [
|
|
1664
|
+
Parameters.$host,
|
|
1665
|
+
Parameters.managementGroupsNamespace,
|
|
1666
|
+
Parameters.nextLink,
|
|
1667
|
+
Parameters.managementGroupId,
|
|
1668
|
+
Parameters.remediationName
|
|
1669
|
+
],
|
|
1670
|
+
headerParameters: [Parameters.accept],
|
|
1706
1671
|
serializer
|
|
1707
1672
|
};
|
|
1708
|
-
|
|
1709
|
-
const listForManagementGroupNextOperationSpec: msRest.OperationSpec = {
|
|
1710
|
-
httpMethod: "GET",
|
|
1711
|
-
baseUrl: "https://management.azure.com",
|
|
1673
|
+
const listForManagementGroupNextOperationSpec: coreClient.OperationSpec = {
|
|
1712
1674
|
path: "{nextLink}",
|
|
1713
|
-
|
|
1714
|
-
Parameters.nextPageLink
|
|
1715
|
-
],
|
|
1716
|
-
headerParameters: [
|
|
1717
|
-
Parameters.acceptLanguage
|
|
1718
|
-
],
|
|
1675
|
+
httpMethod: "GET",
|
|
1719
1676
|
responses: {
|
|
1720
1677
|
200: {
|
|
1721
1678
|
bodyMapper: Mappers.RemediationListResult
|
|
@@ -1724,19 +1681,19 @@ const listForManagementGroupNextOperationSpec: msRest.OperationSpec = {
|
|
|
1724
1681
|
bodyMapper: Mappers.ErrorResponse
|
|
1725
1682
|
}
|
|
1726
1683
|
},
|
|
1684
|
+
queryParameters: [Parameters.top, Parameters.filter, Parameters.apiVersion1],
|
|
1685
|
+
urlParameters: [
|
|
1686
|
+
Parameters.$host,
|
|
1687
|
+
Parameters.managementGroupsNamespace,
|
|
1688
|
+
Parameters.nextLink,
|
|
1689
|
+
Parameters.managementGroupId
|
|
1690
|
+
],
|
|
1691
|
+
headerParameters: [Parameters.accept],
|
|
1727
1692
|
serializer
|
|
1728
1693
|
};
|
|
1729
|
-
|
|
1730
|
-
const listDeploymentsAtSubscriptionNextOperationSpec: msRest.OperationSpec = {
|
|
1731
|
-
httpMethod: "POST",
|
|
1732
|
-
baseUrl: "https://management.azure.com",
|
|
1694
|
+
const listDeploymentsAtSubscriptionNextOperationSpec: coreClient.OperationSpec = {
|
|
1733
1695
|
path: "{nextLink}",
|
|
1734
|
-
|
|
1735
|
-
Parameters.nextPageLink
|
|
1736
|
-
],
|
|
1737
|
-
headerParameters: [
|
|
1738
|
-
Parameters.acceptLanguage
|
|
1739
|
-
],
|
|
1696
|
+
httpMethod: "GET",
|
|
1740
1697
|
responses: {
|
|
1741
1698
|
200: {
|
|
1742
1699
|
bodyMapper: Mappers.RemediationDeploymentsListResult
|
|
@@ -1745,19 +1702,19 @@ const listDeploymentsAtSubscriptionNextOperationSpec: msRest.OperationSpec = {
|
|
|
1745
1702
|
bodyMapper: Mappers.ErrorResponse
|
|
1746
1703
|
}
|
|
1747
1704
|
},
|
|
1705
|
+
queryParameters: [Parameters.top, Parameters.apiVersion1],
|
|
1706
|
+
urlParameters: [
|
|
1707
|
+
Parameters.$host,
|
|
1708
|
+
Parameters.subscriptionId,
|
|
1709
|
+
Parameters.nextLink,
|
|
1710
|
+
Parameters.remediationName
|
|
1711
|
+
],
|
|
1712
|
+
headerParameters: [Parameters.accept],
|
|
1748
1713
|
serializer
|
|
1749
1714
|
};
|
|
1750
|
-
|
|
1751
|
-
const listForSubscriptionNextOperationSpec: msRest.OperationSpec = {
|
|
1752
|
-
httpMethod: "GET",
|
|
1753
|
-
baseUrl: "https://management.azure.com",
|
|
1715
|
+
const listForSubscriptionNextOperationSpec: coreClient.OperationSpec = {
|
|
1754
1716
|
path: "{nextLink}",
|
|
1755
|
-
|
|
1756
|
-
Parameters.nextPageLink
|
|
1757
|
-
],
|
|
1758
|
-
headerParameters: [
|
|
1759
|
-
Parameters.acceptLanguage
|
|
1760
|
-
],
|
|
1717
|
+
httpMethod: "GET",
|
|
1761
1718
|
responses: {
|
|
1762
1719
|
200: {
|
|
1763
1720
|
bodyMapper: Mappers.RemediationListResult
|
|
@@ -1766,19 +1723,18 @@ const listForSubscriptionNextOperationSpec: msRest.OperationSpec = {
|
|
|
1766
1723
|
bodyMapper: Mappers.ErrorResponse
|
|
1767
1724
|
}
|
|
1768
1725
|
},
|
|
1726
|
+
queryParameters: [Parameters.top, Parameters.filter, Parameters.apiVersion1],
|
|
1727
|
+
urlParameters: [
|
|
1728
|
+
Parameters.$host,
|
|
1729
|
+
Parameters.subscriptionId,
|
|
1730
|
+
Parameters.nextLink
|
|
1731
|
+
],
|
|
1732
|
+
headerParameters: [Parameters.accept],
|
|
1769
1733
|
serializer
|
|
1770
1734
|
};
|
|
1771
|
-
|
|
1772
|
-
const listDeploymentsAtResourceGroupNextOperationSpec: msRest.OperationSpec = {
|
|
1773
|
-
httpMethod: "POST",
|
|
1774
|
-
baseUrl: "https://management.azure.com",
|
|
1735
|
+
const listDeploymentsAtResourceGroupNextOperationSpec: coreClient.OperationSpec = {
|
|
1775
1736
|
path: "{nextLink}",
|
|
1776
|
-
|
|
1777
|
-
Parameters.nextPageLink
|
|
1778
|
-
],
|
|
1779
|
-
headerParameters: [
|
|
1780
|
-
Parameters.acceptLanguage
|
|
1781
|
-
],
|
|
1737
|
+
httpMethod: "GET",
|
|
1782
1738
|
responses: {
|
|
1783
1739
|
200: {
|
|
1784
1740
|
bodyMapper: Mappers.RemediationDeploymentsListResult
|
|
@@ -1787,19 +1743,20 @@ const listDeploymentsAtResourceGroupNextOperationSpec: msRest.OperationSpec = {
|
|
|
1787
1743
|
bodyMapper: Mappers.ErrorResponse
|
|
1788
1744
|
}
|
|
1789
1745
|
},
|
|
1746
|
+
queryParameters: [Parameters.top, Parameters.apiVersion1],
|
|
1747
|
+
urlParameters: [
|
|
1748
|
+
Parameters.$host,
|
|
1749
|
+
Parameters.subscriptionId,
|
|
1750
|
+
Parameters.resourceGroupName,
|
|
1751
|
+
Parameters.nextLink,
|
|
1752
|
+
Parameters.remediationName
|
|
1753
|
+
],
|
|
1754
|
+
headerParameters: [Parameters.accept],
|
|
1790
1755
|
serializer
|
|
1791
1756
|
};
|
|
1792
|
-
|
|
1793
|
-
const listForResourceGroupNextOperationSpec: msRest.OperationSpec = {
|
|
1794
|
-
httpMethod: "GET",
|
|
1795
|
-
baseUrl: "https://management.azure.com",
|
|
1757
|
+
const listForResourceGroupNextOperationSpec: coreClient.OperationSpec = {
|
|
1796
1758
|
path: "{nextLink}",
|
|
1797
|
-
|
|
1798
|
-
Parameters.nextPageLink
|
|
1799
|
-
],
|
|
1800
|
-
headerParameters: [
|
|
1801
|
-
Parameters.acceptLanguage
|
|
1802
|
-
],
|
|
1759
|
+
httpMethod: "GET",
|
|
1803
1760
|
responses: {
|
|
1804
1761
|
200: {
|
|
1805
1762
|
bodyMapper: Mappers.RemediationListResult
|
|
@@ -1808,19 +1765,19 @@ const listForResourceGroupNextOperationSpec: msRest.OperationSpec = {
|
|
|
1808
1765
|
bodyMapper: Mappers.ErrorResponse
|
|
1809
1766
|
}
|
|
1810
1767
|
},
|
|
1768
|
+
queryParameters: [Parameters.top, Parameters.filter, Parameters.apiVersion1],
|
|
1769
|
+
urlParameters: [
|
|
1770
|
+
Parameters.$host,
|
|
1771
|
+
Parameters.subscriptionId,
|
|
1772
|
+
Parameters.resourceGroupName,
|
|
1773
|
+
Parameters.nextLink
|
|
1774
|
+
],
|
|
1775
|
+
headerParameters: [Parameters.accept],
|
|
1811
1776
|
serializer
|
|
1812
1777
|
};
|
|
1813
|
-
|
|
1814
|
-
const listDeploymentsAtResourceNextOperationSpec: msRest.OperationSpec = {
|
|
1815
|
-
httpMethod: "POST",
|
|
1816
|
-
baseUrl: "https://management.azure.com",
|
|
1778
|
+
const listDeploymentsAtResourceNextOperationSpec: coreClient.OperationSpec = {
|
|
1817
1779
|
path: "{nextLink}",
|
|
1818
|
-
|
|
1819
|
-
Parameters.nextPageLink
|
|
1820
|
-
],
|
|
1821
|
-
headerParameters: [
|
|
1822
|
-
Parameters.acceptLanguage
|
|
1823
|
-
],
|
|
1780
|
+
httpMethod: "GET",
|
|
1824
1781
|
responses: {
|
|
1825
1782
|
200: {
|
|
1826
1783
|
bodyMapper: Mappers.RemediationDeploymentsListResult
|
|
@@ -1829,19 +1786,19 @@ const listDeploymentsAtResourceNextOperationSpec: msRest.OperationSpec = {
|
|
|
1829
1786
|
bodyMapper: Mappers.ErrorResponse
|
|
1830
1787
|
}
|
|
1831
1788
|
},
|
|
1789
|
+
queryParameters: [Parameters.top, Parameters.apiVersion1],
|
|
1790
|
+
urlParameters: [
|
|
1791
|
+
Parameters.$host,
|
|
1792
|
+
Parameters.resourceId,
|
|
1793
|
+
Parameters.nextLink,
|
|
1794
|
+
Parameters.remediationName
|
|
1795
|
+
],
|
|
1796
|
+
headerParameters: [Parameters.accept],
|
|
1832
1797
|
serializer
|
|
1833
1798
|
};
|
|
1834
|
-
|
|
1835
|
-
const listForResourceNextOperationSpec: msRest.OperationSpec = {
|
|
1836
|
-
httpMethod: "GET",
|
|
1837
|
-
baseUrl: "https://management.azure.com",
|
|
1799
|
+
const listForResourceNextOperationSpec: coreClient.OperationSpec = {
|
|
1838
1800
|
path: "{nextLink}",
|
|
1839
|
-
|
|
1840
|
-
Parameters.nextPageLink
|
|
1841
|
-
],
|
|
1842
|
-
headerParameters: [
|
|
1843
|
-
Parameters.acceptLanguage
|
|
1844
|
-
],
|
|
1801
|
+
httpMethod: "GET",
|
|
1845
1802
|
responses: {
|
|
1846
1803
|
200: {
|
|
1847
1804
|
bodyMapper: Mappers.RemediationListResult
|
|
@@ -1850,5 +1807,8 @@ const listForResourceNextOperationSpec: msRest.OperationSpec = {
|
|
|
1850
1807
|
bodyMapper: Mappers.ErrorResponse
|
|
1851
1808
|
}
|
|
1852
1809
|
},
|
|
1810
|
+
queryParameters: [Parameters.top, Parameters.filter, Parameters.apiVersion1],
|
|
1811
|
+
urlParameters: [Parameters.$host, Parameters.resourceId, Parameters.nextLink],
|
|
1812
|
+
headerParameters: [Parameters.accept],
|
|
1853
1813
|
serializer
|
|
1854
1814
|
};
|