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