@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
|
@@ -0,0 +1,1377 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*
|
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
+
*/
|
|
8
|
+
import { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
|
|
9
|
+
import * as coreClient from "@azure/core-client";
|
|
10
|
+
import * as Mappers from "../models/mappers";
|
|
11
|
+
import * as Parameters from "../models/parameters";
|
|
12
|
+
/// <reference lib="esnext.asynciterable" />
|
|
13
|
+
/** Class containing Remediations operations. */
|
|
14
|
+
export class RemediationsImpl {
|
|
15
|
+
/**
|
|
16
|
+
* Initialize a new instance of the class Remediations class.
|
|
17
|
+
* @param client Reference to the service client
|
|
18
|
+
*/
|
|
19
|
+
constructor(client) {
|
|
20
|
+
this.client = client;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Gets all deployments for a remediation at management group scope.
|
|
24
|
+
* @param managementGroupId Management group ID.
|
|
25
|
+
* @param remediationName The name of the remediation.
|
|
26
|
+
* @param options The options parameters.
|
|
27
|
+
*/
|
|
28
|
+
listDeploymentsAtManagementGroup(managementGroupId, remediationName, options) {
|
|
29
|
+
const iter = this.listDeploymentsAtManagementGroupPagingAll(managementGroupId, remediationName, options);
|
|
30
|
+
return {
|
|
31
|
+
next() {
|
|
32
|
+
return iter.next();
|
|
33
|
+
},
|
|
34
|
+
[Symbol.asyncIterator]() {
|
|
35
|
+
return this;
|
|
36
|
+
},
|
|
37
|
+
byPage: () => {
|
|
38
|
+
return this.listDeploymentsAtManagementGroupPagingPage(managementGroupId, remediationName, options);
|
|
39
|
+
}
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
listDeploymentsAtManagementGroupPagingPage(managementGroupId, remediationName, options) {
|
|
43
|
+
return __asyncGenerator(this, arguments, function* listDeploymentsAtManagementGroupPagingPage_1() {
|
|
44
|
+
let result = yield __await(this._listDeploymentsAtManagementGroup(managementGroupId, remediationName, options));
|
|
45
|
+
yield yield __await(result.value || []);
|
|
46
|
+
let continuationToken = result.nextLink;
|
|
47
|
+
while (continuationToken) {
|
|
48
|
+
result = yield __await(this._listDeploymentsAtManagementGroupNext(managementGroupId, remediationName, continuationToken, options));
|
|
49
|
+
continuationToken = result.nextLink;
|
|
50
|
+
yield yield __await(result.value || []);
|
|
51
|
+
}
|
|
52
|
+
});
|
|
53
|
+
}
|
|
54
|
+
listDeploymentsAtManagementGroupPagingAll(managementGroupId, remediationName, options) {
|
|
55
|
+
return __asyncGenerator(this, arguments, function* listDeploymentsAtManagementGroupPagingAll_1() {
|
|
56
|
+
var e_1, _a;
|
|
57
|
+
try {
|
|
58
|
+
for (var _b = __asyncValues(this.listDeploymentsAtManagementGroupPagingPage(managementGroupId, remediationName, options)), _c; _c = yield __await(_b.next()), !_c.done;) {
|
|
59
|
+
const page = _c.value;
|
|
60
|
+
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
64
|
+
finally {
|
|
65
|
+
try {
|
|
66
|
+
if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
|
|
67
|
+
}
|
|
68
|
+
finally { if (e_1) throw e_1.error; }
|
|
69
|
+
}
|
|
70
|
+
});
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
* Gets all remediations for the management group.
|
|
74
|
+
* @param managementGroupId Management group ID.
|
|
75
|
+
* @param options The options parameters.
|
|
76
|
+
*/
|
|
77
|
+
listForManagementGroup(managementGroupId, options) {
|
|
78
|
+
const iter = this.listForManagementGroupPagingAll(managementGroupId, options);
|
|
79
|
+
return {
|
|
80
|
+
next() {
|
|
81
|
+
return iter.next();
|
|
82
|
+
},
|
|
83
|
+
[Symbol.asyncIterator]() {
|
|
84
|
+
return this;
|
|
85
|
+
},
|
|
86
|
+
byPage: () => {
|
|
87
|
+
return this.listForManagementGroupPagingPage(managementGroupId, options);
|
|
88
|
+
}
|
|
89
|
+
};
|
|
90
|
+
}
|
|
91
|
+
listForManagementGroupPagingPage(managementGroupId, options) {
|
|
92
|
+
return __asyncGenerator(this, arguments, function* listForManagementGroupPagingPage_1() {
|
|
93
|
+
let result = yield __await(this._listForManagementGroup(managementGroupId, options));
|
|
94
|
+
yield yield __await(result.value || []);
|
|
95
|
+
let continuationToken = result.nextLink;
|
|
96
|
+
while (continuationToken) {
|
|
97
|
+
result = yield __await(this._listForManagementGroupNext(managementGroupId, continuationToken, options));
|
|
98
|
+
continuationToken = result.nextLink;
|
|
99
|
+
yield yield __await(result.value || []);
|
|
100
|
+
}
|
|
101
|
+
});
|
|
102
|
+
}
|
|
103
|
+
listForManagementGroupPagingAll(managementGroupId, options) {
|
|
104
|
+
return __asyncGenerator(this, arguments, function* listForManagementGroupPagingAll_1() {
|
|
105
|
+
var e_2, _a;
|
|
106
|
+
try {
|
|
107
|
+
for (var _b = __asyncValues(this.listForManagementGroupPagingPage(managementGroupId, options)), _c; _c = yield __await(_b.next()), !_c.done;) {
|
|
108
|
+
const page = _c.value;
|
|
109
|
+
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
113
|
+
finally {
|
|
114
|
+
try {
|
|
115
|
+
if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
|
|
116
|
+
}
|
|
117
|
+
finally { if (e_2) throw e_2.error; }
|
|
118
|
+
}
|
|
119
|
+
});
|
|
120
|
+
}
|
|
121
|
+
/**
|
|
122
|
+
* Gets all deployments for a remediation at subscription scope.
|
|
123
|
+
* @param remediationName The name of the remediation.
|
|
124
|
+
* @param options The options parameters.
|
|
125
|
+
*/
|
|
126
|
+
listDeploymentsAtSubscription(remediationName, options) {
|
|
127
|
+
const iter = this.listDeploymentsAtSubscriptionPagingAll(remediationName, options);
|
|
128
|
+
return {
|
|
129
|
+
next() {
|
|
130
|
+
return iter.next();
|
|
131
|
+
},
|
|
132
|
+
[Symbol.asyncIterator]() {
|
|
133
|
+
return this;
|
|
134
|
+
},
|
|
135
|
+
byPage: () => {
|
|
136
|
+
return this.listDeploymentsAtSubscriptionPagingPage(remediationName, options);
|
|
137
|
+
}
|
|
138
|
+
};
|
|
139
|
+
}
|
|
140
|
+
listDeploymentsAtSubscriptionPagingPage(remediationName, options) {
|
|
141
|
+
return __asyncGenerator(this, arguments, function* listDeploymentsAtSubscriptionPagingPage_1() {
|
|
142
|
+
let result = yield __await(this._listDeploymentsAtSubscription(remediationName, options));
|
|
143
|
+
yield yield __await(result.value || []);
|
|
144
|
+
let continuationToken = result.nextLink;
|
|
145
|
+
while (continuationToken) {
|
|
146
|
+
result = yield __await(this._listDeploymentsAtSubscriptionNext(remediationName, continuationToken, options));
|
|
147
|
+
continuationToken = result.nextLink;
|
|
148
|
+
yield yield __await(result.value || []);
|
|
149
|
+
}
|
|
150
|
+
});
|
|
151
|
+
}
|
|
152
|
+
listDeploymentsAtSubscriptionPagingAll(remediationName, options) {
|
|
153
|
+
return __asyncGenerator(this, arguments, function* listDeploymentsAtSubscriptionPagingAll_1() {
|
|
154
|
+
var e_3, _a;
|
|
155
|
+
try {
|
|
156
|
+
for (var _b = __asyncValues(this.listDeploymentsAtSubscriptionPagingPage(remediationName, options)), _c; _c = yield __await(_b.next()), !_c.done;) {
|
|
157
|
+
const page = _c.value;
|
|
158
|
+
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
catch (e_3_1) { e_3 = { error: e_3_1 }; }
|
|
162
|
+
finally {
|
|
163
|
+
try {
|
|
164
|
+
if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
|
|
165
|
+
}
|
|
166
|
+
finally { if (e_3) throw e_3.error; }
|
|
167
|
+
}
|
|
168
|
+
});
|
|
169
|
+
}
|
|
170
|
+
/**
|
|
171
|
+
* Gets all remediations for the subscription.
|
|
172
|
+
* @param options The options parameters.
|
|
173
|
+
*/
|
|
174
|
+
listForSubscription(options) {
|
|
175
|
+
const iter = this.listForSubscriptionPagingAll(options);
|
|
176
|
+
return {
|
|
177
|
+
next() {
|
|
178
|
+
return iter.next();
|
|
179
|
+
},
|
|
180
|
+
[Symbol.asyncIterator]() {
|
|
181
|
+
return this;
|
|
182
|
+
},
|
|
183
|
+
byPage: () => {
|
|
184
|
+
return this.listForSubscriptionPagingPage(options);
|
|
185
|
+
}
|
|
186
|
+
};
|
|
187
|
+
}
|
|
188
|
+
listForSubscriptionPagingPage(options) {
|
|
189
|
+
return __asyncGenerator(this, arguments, function* listForSubscriptionPagingPage_1() {
|
|
190
|
+
let result = yield __await(this._listForSubscription(options));
|
|
191
|
+
yield yield __await(result.value || []);
|
|
192
|
+
let continuationToken = result.nextLink;
|
|
193
|
+
while (continuationToken) {
|
|
194
|
+
result = yield __await(this._listForSubscriptionNext(continuationToken, options));
|
|
195
|
+
continuationToken = result.nextLink;
|
|
196
|
+
yield yield __await(result.value || []);
|
|
197
|
+
}
|
|
198
|
+
});
|
|
199
|
+
}
|
|
200
|
+
listForSubscriptionPagingAll(options) {
|
|
201
|
+
return __asyncGenerator(this, arguments, function* listForSubscriptionPagingAll_1() {
|
|
202
|
+
var e_4, _a;
|
|
203
|
+
try {
|
|
204
|
+
for (var _b = __asyncValues(this.listForSubscriptionPagingPage(options)), _c; _c = yield __await(_b.next()), !_c.done;) {
|
|
205
|
+
const page = _c.value;
|
|
206
|
+
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
catch (e_4_1) { e_4 = { error: e_4_1 }; }
|
|
210
|
+
finally {
|
|
211
|
+
try {
|
|
212
|
+
if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
|
|
213
|
+
}
|
|
214
|
+
finally { if (e_4) throw e_4.error; }
|
|
215
|
+
}
|
|
216
|
+
});
|
|
217
|
+
}
|
|
218
|
+
/**
|
|
219
|
+
* Gets all deployments for a remediation at resource group scope.
|
|
220
|
+
* @param resourceGroupName Resource group name.
|
|
221
|
+
* @param remediationName The name of the remediation.
|
|
222
|
+
* @param options The options parameters.
|
|
223
|
+
*/
|
|
224
|
+
listDeploymentsAtResourceGroup(resourceGroupName, remediationName, options) {
|
|
225
|
+
const iter = this.listDeploymentsAtResourceGroupPagingAll(resourceGroupName, remediationName, options);
|
|
226
|
+
return {
|
|
227
|
+
next() {
|
|
228
|
+
return iter.next();
|
|
229
|
+
},
|
|
230
|
+
[Symbol.asyncIterator]() {
|
|
231
|
+
return this;
|
|
232
|
+
},
|
|
233
|
+
byPage: () => {
|
|
234
|
+
return this.listDeploymentsAtResourceGroupPagingPage(resourceGroupName, remediationName, options);
|
|
235
|
+
}
|
|
236
|
+
};
|
|
237
|
+
}
|
|
238
|
+
listDeploymentsAtResourceGroupPagingPage(resourceGroupName, remediationName, options) {
|
|
239
|
+
return __asyncGenerator(this, arguments, function* listDeploymentsAtResourceGroupPagingPage_1() {
|
|
240
|
+
let result = yield __await(this._listDeploymentsAtResourceGroup(resourceGroupName, remediationName, options));
|
|
241
|
+
yield yield __await(result.value || []);
|
|
242
|
+
let continuationToken = result.nextLink;
|
|
243
|
+
while (continuationToken) {
|
|
244
|
+
result = yield __await(this._listDeploymentsAtResourceGroupNext(resourceGroupName, remediationName, continuationToken, options));
|
|
245
|
+
continuationToken = result.nextLink;
|
|
246
|
+
yield yield __await(result.value || []);
|
|
247
|
+
}
|
|
248
|
+
});
|
|
249
|
+
}
|
|
250
|
+
listDeploymentsAtResourceGroupPagingAll(resourceGroupName, remediationName, options) {
|
|
251
|
+
return __asyncGenerator(this, arguments, function* listDeploymentsAtResourceGroupPagingAll_1() {
|
|
252
|
+
var e_5, _a;
|
|
253
|
+
try {
|
|
254
|
+
for (var _b = __asyncValues(this.listDeploymentsAtResourceGroupPagingPage(resourceGroupName, remediationName, options)), _c; _c = yield __await(_b.next()), !_c.done;) {
|
|
255
|
+
const page = _c.value;
|
|
256
|
+
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
257
|
+
}
|
|
258
|
+
}
|
|
259
|
+
catch (e_5_1) { e_5 = { error: e_5_1 }; }
|
|
260
|
+
finally {
|
|
261
|
+
try {
|
|
262
|
+
if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
|
|
263
|
+
}
|
|
264
|
+
finally { if (e_5) throw e_5.error; }
|
|
265
|
+
}
|
|
266
|
+
});
|
|
267
|
+
}
|
|
268
|
+
/**
|
|
269
|
+
* Gets all remediations for the subscription.
|
|
270
|
+
* @param resourceGroupName Resource group name.
|
|
271
|
+
* @param options The options parameters.
|
|
272
|
+
*/
|
|
273
|
+
listForResourceGroup(resourceGroupName, options) {
|
|
274
|
+
const iter = this.listForResourceGroupPagingAll(resourceGroupName, options);
|
|
275
|
+
return {
|
|
276
|
+
next() {
|
|
277
|
+
return iter.next();
|
|
278
|
+
},
|
|
279
|
+
[Symbol.asyncIterator]() {
|
|
280
|
+
return this;
|
|
281
|
+
},
|
|
282
|
+
byPage: () => {
|
|
283
|
+
return this.listForResourceGroupPagingPage(resourceGroupName, options);
|
|
284
|
+
}
|
|
285
|
+
};
|
|
286
|
+
}
|
|
287
|
+
listForResourceGroupPagingPage(resourceGroupName, options) {
|
|
288
|
+
return __asyncGenerator(this, arguments, function* listForResourceGroupPagingPage_1() {
|
|
289
|
+
let result = yield __await(this._listForResourceGroup(resourceGroupName, options));
|
|
290
|
+
yield yield __await(result.value || []);
|
|
291
|
+
let continuationToken = result.nextLink;
|
|
292
|
+
while (continuationToken) {
|
|
293
|
+
result = yield __await(this._listForResourceGroupNext(resourceGroupName, continuationToken, options));
|
|
294
|
+
continuationToken = result.nextLink;
|
|
295
|
+
yield yield __await(result.value || []);
|
|
296
|
+
}
|
|
297
|
+
});
|
|
298
|
+
}
|
|
299
|
+
listForResourceGroupPagingAll(resourceGroupName, options) {
|
|
300
|
+
return __asyncGenerator(this, arguments, function* listForResourceGroupPagingAll_1() {
|
|
301
|
+
var e_6, _a;
|
|
302
|
+
try {
|
|
303
|
+
for (var _b = __asyncValues(this.listForResourceGroupPagingPage(resourceGroupName, options)), _c; _c = yield __await(_b.next()), !_c.done;) {
|
|
304
|
+
const page = _c.value;
|
|
305
|
+
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
306
|
+
}
|
|
307
|
+
}
|
|
308
|
+
catch (e_6_1) { e_6 = { error: e_6_1 }; }
|
|
309
|
+
finally {
|
|
310
|
+
try {
|
|
311
|
+
if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
|
|
312
|
+
}
|
|
313
|
+
finally { if (e_6) throw e_6.error; }
|
|
314
|
+
}
|
|
315
|
+
});
|
|
316
|
+
}
|
|
317
|
+
/**
|
|
318
|
+
* Gets all deployments for a remediation at resource scope.
|
|
319
|
+
* @param resourceId Resource ID.
|
|
320
|
+
* @param remediationName The name of the remediation.
|
|
321
|
+
* @param options The options parameters.
|
|
322
|
+
*/
|
|
323
|
+
listDeploymentsAtResource(resourceId, remediationName, options) {
|
|
324
|
+
const iter = this.listDeploymentsAtResourcePagingAll(resourceId, remediationName, options);
|
|
325
|
+
return {
|
|
326
|
+
next() {
|
|
327
|
+
return iter.next();
|
|
328
|
+
},
|
|
329
|
+
[Symbol.asyncIterator]() {
|
|
330
|
+
return this;
|
|
331
|
+
},
|
|
332
|
+
byPage: () => {
|
|
333
|
+
return this.listDeploymentsAtResourcePagingPage(resourceId, remediationName, options);
|
|
334
|
+
}
|
|
335
|
+
};
|
|
336
|
+
}
|
|
337
|
+
listDeploymentsAtResourcePagingPage(resourceId, remediationName, options) {
|
|
338
|
+
return __asyncGenerator(this, arguments, function* listDeploymentsAtResourcePagingPage_1() {
|
|
339
|
+
let result = yield __await(this._listDeploymentsAtResource(resourceId, remediationName, options));
|
|
340
|
+
yield yield __await(result.value || []);
|
|
341
|
+
let continuationToken = result.nextLink;
|
|
342
|
+
while (continuationToken) {
|
|
343
|
+
result = yield __await(this._listDeploymentsAtResourceNext(resourceId, remediationName, continuationToken, options));
|
|
344
|
+
continuationToken = result.nextLink;
|
|
345
|
+
yield yield __await(result.value || []);
|
|
346
|
+
}
|
|
347
|
+
});
|
|
348
|
+
}
|
|
349
|
+
listDeploymentsAtResourcePagingAll(resourceId, remediationName, options) {
|
|
350
|
+
return __asyncGenerator(this, arguments, function* listDeploymentsAtResourcePagingAll_1() {
|
|
351
|
+
var e_7, _a;
|
|
352
|
+
try {
|
|
353
|
+
for (var _b = __asyncValues(this.listDeploymentsAtResourcePagingPage(resourceId, remediationName, options)), _c; _c = yield __await(_b.next()), !_c.done;) {
|
|
354
|
+
const page = _c.value;
|
|
355
|
+
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
356
|
+
}
|
|
357
|
+
}
|
|
358
|
+
catch (e_7_1) { e_7 = { error: e_7_1 }; }
|
|
359
|
+
finally {
|
|
360
|
+
try {
|
|
361
|
+
if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
|
|
362
|
+
}
|
|
363
|
+
finally { if (e_7) throw e_7.error; }
|
|
364
|
+
}
|
|
365
|
+
});
|
|
366
|
+
}
|
|
367
|
+
/**
|
|
368
|
+
* Gets all remediations for a resource.
|
|
369
|
+
* @param resourceId Resource ID.
|
|
370
|
+
* @param options The options parameters.
|
|
371
|
+
*/
|
|
372
|
+
listForResource(resourceId, options) {
|
|
373
|
+
const iter = this.listForResourcePagingAll(resourceId, options);
|
|
374
|
+
return {
|
|
375
|
+
next() {
|
|
376
|
+
return iter.next();
|
|
377
|
+
},
|
|
378
|
+
[Symbol.asyncIterator]() {
|
|
379
|
+
return this;
|
|
380
|
+
},
|
|
381
|
+
byPage: () => {
|
|
382
|
+
return this.listForResourcePagingPage(resourceId, options);
|
|
383
|
+
}
|
|
384
|
+
};
|
|
385
|
+
}
|
|
386
|
+
listForResourcePagingPage(resourceId, options) {
|
|
387
|
+
return __asyncGenerator(this, arguments, function* listForResourcePagingPage_1() {
|
|
388
|
+
let result = yield __await(this._listForResource(resourceId, options));
|
|
389
|
+
yield yield __await(result.value || []);
|
|
390
|
+
let continuationToken = result.nextLink;
|
|
391
|
+
while (continuationToken) {
|
|
392
|
+
result = yield __await(this._listForResourceNext(resourceId, continuationToken, options));
|
|
393
|
+
continuationToken = result.nextLink;
|
|
394
|
+
yield yield __await(result.value || []);
|
|
395
|
+
}
|
|
396
|
+
});
|
|
397
|
+
}
|
|
398
|
+
listForResourcePagingAll(resourceId, options) {
|
|
399
|
+
return __asyncGenerator(this, arguments, function* listForResourcePagingAll_1() {
|
|
400
|
+
var e_8, _a;
|
|
401
|
+
try {
|
|
402
|
+
for (var _b = __asyncValues(this.listForResourcePagingPage(resourceId, options)), _c; _c = yield __await(_b.next()), !_c.done;) {
|
|
403
|
+
const page = _c.value;
|
|
404
|
+
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
405
|
+
}
|
|
406
|
+
}
|
|
407
|
+
catch (e_8_1) { e_8 = { error: e_8_1 }; }
|
|
408
|
+
finally {
|
|
409
|
+
try {
|
|
410
|
+
if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
|
|
411
|
+
}
|
|
412
|
+
finally { if (e_8) throw e_8.error; }
|
|
413
|
+
}
|
|
414
|
+
});
|
|
415
|
+
}
|
|
416
|
+
/**
|
|
417
|
+
* Gets all deployments for a remediation at management group scope.
|
|
418
|
+
* @param managementGroupId Management group ID.
|
|
419
|
+
* @param remediationName The name of the remediation.
|
|
420
|
+
* @param options The options parameters.
|
|
421
|
+
*/
|
|
422
|
+
_listDeploymentsAtManagementGroup(managementGroupId, remediationName, options) {
|
|
423
|
+
return this.client.sendOperationRequest({ managementGroupId, remediationName, options }, listDeploymentsAtManagementGroupOperationSpec);
|
|
424
|
+
}
|
|
425
|
+
/**
|
|
426
|
+
* Cancels a remediation at management group scope.
|
|
427
|
+
* @param managementGroupId Management group ID.
|
|
428
|
+
* @param remediationName The name of the remediation.
|
|
429
|
+
* @param options The options parameters.
|
|
430
|
+
*/
|
|
431
|
+
cancelAtManagementGroup(managementGroupId, remediationName, options) {
|
|
432
|
+
return this.client.sendOperationRequest({ managementGroupId, remediationName, options }, cancelAtManagementGroupOperationSpec);
|
|
433
|
+
}
|
|
434
|
+
/**
|
|
435
|
+
* Gets all remediations for the management group.
|
|
436
|
+
* @param managementGroupId Management group ID.
|
|
437
|
+
* @param options The options parameters.
|
|
438
|
+
*/
|
|
439
|
+
_listForManagementGroup(managementGroupId, options) {
|
|
440
|
+
return this.client.sendOperationRequest({ managementGroupId, options }, listForManagementGroupOperationSpec);
|
|
441
|
+
}
|
|
442
|
+
/**
|
|
443
|
+
* Creates or updates a remediation at management group scope.
|
|
444
|
+
* @param managementGroupId Management group ID.
|
|
445
|
+
* @param remediationName The name of the remediation.
|
|
446
|
+
* @param parameters The remediation parameters.
|
|
447
|
+
* @param options The options parameters.
|
|
448
|
+
*/
|
|
449
|
+
createOrUpdateAtManagementGroup(managementGroupId, remediationName, parameters, options) {
|
|
450
|
+
return this.client.sendOperationRequest({ managementGroupId, remediationName, parameters, options }, createOrUpdateAtManagementGroupOperationSpec);
|
|
451
|
+
}
|
|
452
|
+
/**
|
|
453
|
+
* Gets an existing remediation at management group scope.
|
|
454
|
+
* @param managementGroupId Management group ID.
|
|
455
|
+
* @param remediationName The name of the remediation.
|
|
456
|
+
* @param options The options parameters.
|
|
457
|
+
*/
|
|
458
|
+
getAtManagementGroup(managementGroupId, remediationName, options) {
|
|
459
|
+
return this.client.sendOperationRequest({ managementGroupId, remediationName, options }, getAtManagementGroupOperationSpec);
|
|
460
|
+
}
|
|
461
|
+
/**
|
|
462
|
+
* Deletes an existing remediation at management group scope.
|
|
463
|
+
* @param managementGroupId Management group ID.
|
|
464
|
+
* @param remediationName The name of the remediation.
|
|
465
|
+
* @param options The options parameters.
|
|
466
|
+
*/
|
|
467
|
+
deleteAtManagementGroup(managementGroupId, remediationName, options) {
|
|
468
|
+
return this.client.sendOperationRequest({ managementGroupId, remediationName, options }, deleteAtManagementGroupOperationSpec);
|
|
469
|
+
}
|
|
470
|
+
/**
|
|
471
|
+
* Gets all deployments for a remediation at subscription scope.
|
|
472
|
+
* @param remediationName The name of the remediation.
|
|
473
|
+
* @param options The options parameters.
|
|
474
|
+
*/
|
|
475
|
+
_listDeploymentsAtSubscription(remediationName, options) {
|
|
476
|
+
return this.client.sendOperationRequest({ remediationName, options }, listDeploymentsAtSubscriptionOperationSpec);
|
|
477
|
+
}
|
|
478
|
+
/**
|
|
479
|
+
* Cancels a remediation at subscription scope.
|
|
480
|
+
* @param remediationName The name of the remediation.
|
|
481
|
+
* @param options The options parameters.
|
|
482
|
+
*/
|
|
483
|
+
cancelAtSubscription(remediationName, options) {
|
|
484
|
+
return this.client.sendOperationRequest({ remediationName, options }, cancelAtSubscriptionOperationSpec);
|
|
485
|
+
}
|
|
486
|
+
/**
|
|
487
|
+
* Gets all remediations for the subscription.
|
|
488
|
+
* @param options The options parameters.
|
|
489
|
+
*/
|
|
490
|
+
_listForSubscription(options) {
|
|
491
|
+
return this.client.sendOperationRequest({ options }, listForSubscriptionOperationSpec);
|
|
492
|
+
}
|
|
493
|
+
/**
|
|
494
|
+
* Creates or updates a remediation at subscription scope.
|
|
495
|
+
* @param remediationName The name of the remediation.
|
|
496
|
+
* @param parameters The remediation parameters.
|
|
497
|
+
* @param options The options parameters.
|
|
498
|
+
*/
|
|
499
|
+
createOrUpdateAtSubscription(remediationName, parameters, options) {
|
|
500
|
+
return this.client.sendOperationRequest({ remediationName, parameters, options }, createOrUpdateAtSubscriptionOperationSpec);
|
|
501
|
+
}
|
|
502
|
+
/**
|
|
503
|
+
* Gets an existing remediation at subscription scope.
|
|
504
|
+
* @param remediationName The name of the remediation.
|
|
505
|
+
* @param options The options parameters.
|
|
506
|
+
*/
|
|
507
|
+
getAtSubscription(remediationName, options) {
|
|
508
|
+
return this.client.sendOperationRequest({ remediationName, options }, getAtSubscriptionOperationSpec);
|
|
509
|
+
}
|
|
510
|
+
/**
|
|
511
|
+
* Deletes an existing remediation at subscription scope.
|
|
512
|
+
* @param remediationName The name of the remediation.
|
|
513
|
+
* @param options The options parameters.
|
|
514
|
+
*/
|
|
515
|
+
deleteAtSubscription(remediationName, options) {
|
|
516
|
+
return this.client.sendOperationRequest({ remediationName, options }, deleteAtSubscriptionOperationSpec);
|
|
517
|
+
}
|
|
518
|
+
/**
|
|
519
|
+
* Gets all deployments for a remediation at resource group scope.
|
|
520
|
+
* @param resourceGroupName Resource group name.
|
|
521
|
+
* @param remediationName The name of the remediation.
|
|
522
|
+
* @param options The options parameters.
|
|
523
|
+
*/
|
|
524
|
+
_listDeploymentsAtResourceGroup(resourceGroupName, remediationName, options) {
|
|
525
|
+
return this.client.sendOperationRequest({ resourceGroupName, remediationName, options }, listDeploymentsAtResourceGroupOperationSpec);
|
|
526
|
+
}
|
|
527
|
+
/**
|
|
528
|
+
* Cancels a remediation at resource group scope.
|
|
529
|
+
* @param resourceGroupName Resource group name.
|
|
530
|
+
* @param remediationName The name of the remediation.
|
|
531
|
+
* @param options The options parameters.
|
|
532
|
+
*/
|
|
533
|
+
cancelAtResourceGroup(resourceGroupName, remediationName, options) {
|
|
534
|
+
return this.client.sendOperationRequest({ resourceGroupName, remediationName, options }, cancelAtResourceGroupOperationSpec);
|
|
535
|
+
}
|
|
536
|
+
/**
|
|
537
|
+
* Gets all remediations for the subscription.
|
|
538
|
+
* @param resourceGroupName Resource group name.
|
|
539
|
+
* @param options The options parameters.
|
|
540
|
+
*/
|
|
541
|
+
_listForResourceGroup(resourceGroupName, options) {
|
|
542
|
+
return this.client.sendOperationRequest({ resourceGroupName, options }, listForResourceGroupOperationSpec);
|
|
543
|
+
}
|
|
544
|
+
/**
|
|
545
|
+
* Creates or updates a remediation at resource group scope.
|
|
546
|
+
* @param resourceGroupName Resource group name.
|
|
547
|
+
* @param remediationName The name of the remediation.
|
|
548
|
+
* @param parameters The remediation parameters.
|
|
549
|
+
* @param options The options parameters.
|
|
550
|
+
*/
|
|
551
|
+
createOrUpdateAtResourceGroup(resourceGroupName, remediationName, parameters, options) {
|
|
552
|
+
return this.client.sendOperationRequest({ resourceGroupName, remediationName, parameters, options }, createOrUpdateAtResourceGroupOperationSpec);
|
|
553
|
+
}
|
|
554
|
+
/**
|
|
555
|
+
* Gets an existing remediation at resource group scope.
|
|
556
|
+
* @param resourceGroupName Resource group name.
|
|
557
|
+
* @param remediationName The name of the remediation.
|
|
558
|
+
* @param options The options parameters.
|
|
559
|
+
*/
|
|
560
|
+
getAtResourceGroup(resourceGroupName, remediationName, options) {
|
|
561
|
+
return this.client.sendOperationRequest({ resourceGroupName, remediationName, options }, getAtResourceGroupOperationSpec);
|
|
562
|
+
}
|
|
563
|
+
/**
|
|
564
|
+
* Deletes an existing remediation at resource group scope.
|
|
565
|
+
* @param resourceGroupName Resource group name.
|
|
566
|
+
* @param remediationName The name of the remediation.
|
|
567
|
+
* @param options The options parameters.
|
|
568
|
+
*/
|
|
569
|
+
deleteAtResourceGroup(resourceGroupName, remediationName, options) {
|
|
570
|
+
return this.client.sendOperationRequest({ resourceGroupName, remediationName, options }, deleteAtResourceGroupOperationSpec);
|
|
571
|
+
}
|
|
572
|
+
/**
|
|
573
|
+
* Gets all deployments for a remediation at resource scope.
|
|
574
|
+
* @param resourceId Resource ID.
|
|
575
|
+
* @param remediationName The name of the remediation.
|
|
576
|
+
* @param options The options parameters.
|
|
577
|
+
*/
|
|
578
|
+
_listDeploymentsAtResource(resourceId, remediationName, options) {
|
|
579
|
+
return this.client.sendOperationRequest({ resourceId, remediationName, options }, listDeploymentsAtResourceOperationSpec);
|
|
580
|
+
}
|
|
581
|
+
/**
|
|
582
|
+
* Cancel a remediation at resource scope.
|
|
583
|
+
* @param resourceId Resource ID.
|
|
584
|
+
* @param remediationName The name of the remediation.
|
|
585
|
+
* @param options The options parameters.
|
|
586
|
+
*/
|
|
587
|
+
cancelAtResource(resourceId, remediationName, options) {
|
|
588
|
+
return this.client.sendOperationRequest({ resourceId, remediationName, options }, cancelAtResourceOperationSpec);
|
|
589
|
+
}
|
|
590
|
+
/**
|
|
591
|
+
* Gets all remediations for a resource.
|
|
592
|
+
* @param resourceId Resource ID.
|
|
593
|
+
* @param options The options parameters.
|
|
594
|
+
*/
|
|
595
|
+
_listForResource(resourceId, options) {
|
|
596
|
+
return this.client.sendOperationRequest({ resourceId, options }, listForResourceOperationSpec);
|
|
597
|
+
}
|
|
598
|
+
/**
|
|
599
|
+
* Creates or updates a remediation at resource scope.
|
|
600
|
+
* @param resourceId Resource ID.
|
|
601
|
+
* @param remediationName The name of the remediation.
|
|
602
|
+
* @param parameters The remediation parameters.
|
|
603
|
+
* @param options The options parameters.
|
|
604
|
+
*/
|
|
605
|
+
createOrUpdateAtResource(resourceId, remediationName, parameters, options) {
|
|
606
|
+
return this.client.sendOperationRequest({ resourceId, remediationName, parameters, options }, createOrUpdateAtResourceOperationSpec);
|
|
607
|
+
}
|
|
608
|
+
/**
|
|
609
|
+
* Gets an existing remediation at resource scope.
|
|
610
|
+
* @param resourceId Resource ID.
|
|
611
|
+
* @param remediationName The name of the remediation.
|
|
612
|
+
* @param options The options parameters.
|
|
613
|
+
*/
|
|
614
|
+
getAtResource(resourceId, remediationName, options) {
|
|
615
|
+
return this.client.sendOperationRequest({ resourceId, remediationName, options }, getAtResourceOperationSpec);
|
|
616
|
+
}
|
|
617
|
+
/**
|
|
618
|
+
* Deletes an existing remediation at individual resource scope.
|
|
619
|
+
* @param resourceId Resource ID.
|
|
620
|
+
* @param remediationName The name of the remediation.
|
|
621
|
+
* @param options The options parameters.
|
|
622
|
+
*/
|
|
623
|
+
deleteAtResource(resourceId, remediationName, options) {
|
|
624
|
+
return this.client.sendOperationRequest({ resourceId, remediationName, options }, deleteAtResourceOperationSpec);
|
|
625
|
+
}
|
|
626
|
+
/**
|
|
627
|
+
* ListDeploymentsAtManagementGroupNext
|
|
628
|
+
* @param managementGroupId Management group ID.
|
|
629
|
+
* @param remediationName The name of the remediation.
|
|
630
|
+
* @param nextLink The nextLink from the previous successful call to the
|
|
631
|
+
* ListDeploymentsAtManagementGroup method.
|
|
632
|
+
* @param options The options parameters.
|
|
633
|
+
*/
|
|
634
|
+
_listDeploymentsAtManagementGroupNext(managementGroupId, remediationName, nextLink, options) {
|
|
635
|
+
return this.client.sendOperationRequest({ managementGroupId, remediationName, nextLink, options }, listDeploymentsAtManagementGroupNextOperationSpec);
|
|
636
|
+
}
|
|
637
|
+
/**
|
|
638
|
+
* ListForManagementGroupNext
|
|
639
|
+
* @param managementGroupId Management group ID.
|
|
640
|
+
* @param nextLink The nextLink from the previous successful call to the ListForManagementGroup method.
|
|
641
|
+
* @param options The options parameters.
|
|
642
|
+
*/
|
|
643
|
+
_listForManagementGroupNext(managementGroupId, nextLink, options) {
|
|
644
|
+
return this.client.sendOperationRequest({ managementGroupId, nextLink, options }, listForManagementGroupNextOperationSpec);
|
|
645
|
+
}
|
|
646
|
+
/**
|
|
647
|
+
* ListDeploymentsAtSubscriptionNext
|
|
648
|
+
* @param remediationName The name of the remediation.
|
|
649
|
+
* @param nextLink The nextLink from the previous successful call to the ListDeploymentsAtSubscription
|
|
650
|
+
* method.
|
|
651
|
+
* @param options The options parameters.
|
|
652
|
+
*/
|
|
653
|
+
_listDeploymentsAtSubscriptionNext(remediationName, nextLink, options) {
|
|
654
|
+
return this.client.sendOperationRequest({ remediationName, nextLink, options }, listDeploymentsAtSubscriptionNextOperationSpec);
|
|
655
|
+
}
|
|
656
|
+
/**
|
|
657
|
+
* ListForSubscriptionNext
|
|
658
|
+
* @param nextLink The nextLink from the previous successful call to the ListForSubscription method.
|
|
659
|
+
* @param options The options parameters.
|
|
660
|
+
*/
|
|
661
|
+
_listForSubscriptionNext(nextLink, options) {
|
|
662
|
+
return this.client.sendOperationRequest({ nextLink, options }, listForSubscriptionNextOperationSpec);
|
|
663
|
+
}
|
|
664
|
+
/**
|
|
665
|
+
* ListDeploymentsAtResourceGroupNext
|
|
666
|
+
* @param resourceGroupName Resource group name.
|
|
667
|
+
* @param remediationName The name of the remediation.
|
|
668
|
+
* @param nextLink The nextLink from the previous successful call to the ListDeploymentsAtResourceGroup
|
|
669
|
+
* method.
|
|
670
|
+
* @param options The options parameters.
|
|
671
|
+
*/
|
|
672
|
+
_listDeploymentsAtResourceGroupNext(resourceGroupName, remediationName, nextLink, options) {
|
|
673
|
+
return this.client.sendOperationRequest({ resourceGroupName, remediationName, nextLink, options }, listDeploymentsAtResourceGroupNextOperationSpec);
|
|
674
|
+
}
|
|
675
|
+
/**
|
|
676
|
+
* ListForResourceGroupNext
|
|
677
|
+
* @param resourceGroupName Resource group name.
|
|
678
|
+
* @param nextLink The nextLink from the previous successful call to the ListForResourceGroup method.
|
|
679
|
+
* @param options The options parameters.
|
|
680
|
+
*/
|
|
681
|
+
_listForResourceGroupNext(resourceGroupName, nextLink, options) {
|
|
682
|
+
return this.client.sendOperationRequest({ resourceGroupName, nextLink, options }, listForResourceGroupNextOperationSpec);
|
|
683
|
+
}
|
|
684
|
+
/**
|
|
685
|
+
* ListDeploymentsAtResourceNext
|
|
686
|
+
* @param resourceId Resource ID.
|
|
687
|
+
* @param remediationName The name of the remediation.
|
|
688
|
+
* @param nextLink The nextLink from the previous successful call to the ListDeploymentsAtResource
|
|
689
|
+
* method.
|
|
690
|
+
* @param options The options parameters.
|
|
691
|
+
*/
|
|
692
|
+
_listDeploymentsAtResourceNext(resourceId, remediationName, nextLink, options) {
|
|
693
|
+
return this.client.sendOperationRequest({ resourceId, remediationName, nextLink, options }, listDeploymentsAtResourceNextOperationSpec);
|
|
694
|
+
}
|
|
695
|
+
/**
|
|
696
|
+
* ListForResourceNext
|
|
697
|
+
* @param resourceId Resource ID.
|
|
698
|
+
* @param nextLink The nextLink from the previous successful call to the ListForResource method.
|
|
699
|
+
* @param options The options parameters.
|
|
700
|
+
*/
|
|
701
|
+
_listForResourceNext(resourceId, nextLink, options) {
|
|
702
|
+
return this.client.sendOperationRequest({ resourceId, nextLink, options }, listForResourceNextOperationSpec);
|
|
703
|
+
}
|
|
704
|
+
}
|
|
705
|
+
// Operation Specifications
|
|
706
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
707
|
+
const listDeploymentsAtManagementGroupOperationSpec = {
|
|
708
|
+
path: "/providers/{managementGroupsNamespace}/managementGroups/{managementGroupId}/providers/Microsoft.PolicyInsights/remediations/{remediationName}/listDeployments",
|
|
709
|
+
httpMethod: "POST",
|
|
710
|
+
responses: {
|
|
711
|
+
200: {
|
|
712
|
+
bodyMapper: Mappers.RemediationDeploymentsListResult
|
|
713
|
+
},
|
|
714
|
+
default: {
|
|
715
|
+
bodyMapper: Mappers.ErrorResponse
|
|
716
|
+
}
|
|
717
|
+
},
|
|
718
|
+
queryParameters: [Parameters.top, Parameters.apiVersion1],
|
|
719
|
+
urlParameters: [
|
|
720
|
+
Parameters.$host,
|
|
721
|
+
Parameters.managementGroupsNamespace,
|
|
722
|
+
Parameters.managementGroupId,
|
|
723
|
+
Parameters.remediationName
|
|
724
|
+
],
|
|
725
|
+
headerParameters: [Parameters.accept],
|
|
726
|
+
serializer
|
|
727
|
+
};
|
|
728
|
+
const cancelAtManagementGroupOperationSpec = {
|
|
729
|
+
path: "/providers/{managementGroupsNamespace}/managementGroups/{managementGroupId}/providers/Microsoft.PolicyInsights/remediations/{remediationName}/cancel",
|
|
730
|
+
httpMethod: "POST",
|
|
731
|
+
responses: {
|
|
732
|
+
200: {
|
|
733
|
+
bodyMapper: Mappers.Remediation
|
|
734
|
+
},
|
|
735
|
+
default: {
|
|
736
|
+
bodyMapper: Mappers.ErrorResponse
|
|
737
|
+
}
|
|
738
|
+
},
|
|
739
|
+
queryParameters: [Parameters.apiVersion1],
|
|
740
|
+
urlParameters: [
|
|
741
|
+
Parameters.$host,
|
|
742
|
+
Parameters.managementGroupsNamespace,
|
|
743
|
+
Parameters.managementGroupId,
|
|
744
|
+
Parameters.remediationName
|
|
745
|
+
],
|
|
746
|
+
headerParameters: [Parameters.accept],
|
|
747
|
+
serializer
|
|
748
|
+
};
|
|
749
|
+
const listForManagementGroupOperationSpec = {
|
|
750
|
+
path: "/providers/{managementGroupsNamespace}/managementGroups/{managementGroupId}/providers/Microsoft.PolicyInsights/remediations",
|
|
751
|
+
httpMethod: "GET",
|
|
752
|
+
responses: {
|
|
753
|
+
200: {
|
|
754
|
+
bodyMapper: Mappers.RemediationListResult
|
|
755
|
+
},
|
|
756
|
+
default: {
|
|
757
|
+
bodyMapper: Mappers.ErrorResponse
|
|
758
|
+
}
|
|
759
|
+
},
|
|
760
|
+
queryParameters: [Parameters.top, Parameters.filter, Parameters.apiVersion1],
|
|
761
|
+
urlParameters: [
|
|
762
|
+
Parameters.$host,
|
|
763
|
+
Parameters.managementGroupsNamespace,
|
|
764
|
+
Parameters.managementGroupId
|
|
765
|
+
],
|
|
766
|
+
headerParameters: [Parameters.accept],
|
|
767
|
+
serializer
|
|
768
|
+
};
|
|
769
|
+
const createOrUpdateAtManagementGroupOperationSpec = {
|
|
770
|
+
path: "/providers/{managementGroupsNamespace}/managementGroups/{managementGroupId}/providers/Microsoft.PolicyInsights/remediations/{remediationName}",
|
|
771
|
+
httpMethod: "PUT",
|
|
772
|
+
responses: {
|
|
773
|
+
200: {
|
|
774
|
+
bodyMapper: Mappers.Remediation
|
|
775
|
+
},
|
|
776
|
+
201: {
|
|
777
|
+
bodyMapper: Mappers.Remediation
|
|
778
|
+
},
|
|
779
|
+
default: {
|
|
780
|
+
bodyMapper: Mappers.ErrorResponse
|
|
781
|
+
}
|
|
782
|
+
},
|
|
783
|
+
requestBody: Parameters.parameters,
|
|
784
|
+
queryParameters: [Parameters.apiVersion1],
|
|
785
|
+
urlParameters: [
|
|
786
|
+
Parameters.$host,
|
|
787
|
+
Parameters.managementGroupsNamespace,
|
|
788
|
+
Parameters.managementGroupId,
|
|
789
|
+
Parameters.remediationName
|
|
790
|
+
],
|
|
791
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
792
|
+
mediaType: "json",
|
|
793
|
+
serializer
|
|
794
|
+
};
|
|
795
|
+
const getAtManagementGroupOperationSpec = {
|
|
796
|
+
path: "/providers/{managementGroupsNamespace}/managementGroups/{managementGroupId}/providers/Microsoft.PolicyInsights/remediations/{remediationName}",
|
|
797
|
+
httpMethod: "GET",
|
|
798
|
+
responses: {
|
|
799
|
+
200: {
|
|
800
|
+
bodyMapper: Mappers.Remediation
|
|
801
|
+
},
|
|
802
|
+
default: {
|
|
803
|
+
bodyMapper: Mappers.ErrorResponse
|
|
804
|
+
}
|
|
805
|
+
},
|
|
806
|
+
queryParameters: [Parameters.apiVersion1],
|
|
807
|
+
urlParameters: [
|
|
808
|
+
Parameters.$host,
|
|
809
|
+
Parameters.managementGroupsNamespace,
|
|
810
|
+
Parameters.managementGroupId,
|
|
811
|
+
Parameters.remediationName
|
|
812
|
+
],
|
|
813
|
+
headerParameters: [Parameters.accept],
|
|
814
|
+
serializer
|
|
815
|
+
};
|
|
816
|
+
const deleteAtManagementGroupOperationSpec = {
|
|
817
|
+
path: "/providers/{managementGroupsNamespace}/managementGroups/{managementGroupId}/providers/Microsoft.PolicyInsights/remediations/{remediationName}",
|
|
818
|
+
httpMethod: "DELETE",
|
|
819
|
+
responses: {
|
|
820
|
+
200: {
|
|
821
|
+
bodyMapper: Mappers.Remediation
|
|
822
|
+
},
|
|
823
|
+
204: {},
|
|
824
|
+
default: {
|
|
825
|
+
bodyMapper: Mappers.ErrorResponse
|
|
826
|
+
}
|
|
827
|
+
},
|
|
828
|
+
queryParameters: [Parameters.apiVersion1],
|
|
829
|
+
urlParameters: [
|
|
830
|
+
Parameters.$host,
|
|
831
|
+
Parameters.managementGroupsNamespace,
|
|
832
|
+
Parameters.managementGroupId,
|
|
833
|
+
Parameters.remediationName
|
|
834
|
+
],
|
|
835
|
+
headerParameters: [Parameters.accept],
|
|
836
|
+
serializer
|
|
837
|
+
};
|
|
838
|
+
const listDeploymentsAtSubscriptionOperationSpec = {
|
|
839
|
+
path: "/subscriptions/{subscriptionId}/providers/Microsoft.PolicyInsights/remediations/{remediationName}/listDeployments",
|
|
840
|
+
httpMethod: "POST",
|
|
841
|
+
responses: {
|
|
842
|
+
200: {
|
|
843
|
+
bodyMapper: Mappers.RemediationDeploymentsListResult
|
|
844
|
+
},
|
|
845
|
+
default: {
|
|
846
|
+
bodyMapper: Mappers.ErrorResponse
|
|
847
|
+
}
|
|
848
|
+
},
|
|
849
|
+
queryParameters: [Parameters.top, Parameters.apiVersion1],
|
|
850
|
+
urlParameters: [
|
|
851
|
+
Parameters.$host,
|
|
852
|
+
Parameters.subscriptionId,
|
|
853
|
+
Parameters.remediationName
|
|
854
|
+
],
|
|
855
|
+
headerParameters: [Parameters.accept],
|
|
856
|
+
serializer
|
|
857
|
+
};
|
|
858
|
+
const cancelAtSubscriptionOperationSpec = {
|
|
859
|
+
path: "/subscriptions/{subscriptionId}/providers/Microsoft.PolicyInsights/remediations/{remediationName}/cancel",
|
|
860
|
+
httpMethod: "POST",
|
|
861
|
+
responses: {
|
|
862
|
+
200: {
|
|
863
|
+
bodyMapper: Mappers.Remediation
|
|
864
|
+
},
|
|
865
|
+
default: {
|
|
866
|
+
bodyMapper: Mappers.ErrorResponse
|
|
867
|
+
}
|
|
868
|
+
},
|
|
869
|
+
queryParameters: [Parameters.apiVersion1],
|
|
870
|
+
urlParameters: [
|
|
871
|
+
Parameters.$host,
|
|
872
|
+
Parameters.subscriptionId,
|
|
873
|
+
Parameters.remediationName
|
|
874
|
+
],
|
|
875
|
+
headerParameters: [Parameters.accept],
|
|
876
|
+
serializer
|
|
877
|
+
};
|
|
878
|
+
const listForSubscriptionOperationSpec = {
|
|
879
|
+
path: "/subscriptions/{subscriptionId}/providers/Microsoft.PolicyInsights/remediations",
|
|
880
|
+
httpMethod: "GET",
|
|
881
|
+
responses: {
|
|
882
|
+
200: {
|
|
883
|
+
bodyMapper: Mappers.RemediationListResult
|
|
884
|
+
},
|
|
885
|
+
default: {
|
|
886
|
+
bodyMapper: Mappers.ErrorResponse
|
|
887
|
+
}
|
|
888
|
+
},
|
|
889
|
+
queryParameters: [Parameters.top, Parameters.filter, Parameters.apiVersion1],
|
|
890
|
+
urlParameters: [Parameters.$host, Parameters.subscriptionId],
|
|
891
|
+
headerParameters: [Parameters.accept],
|
|
892
|
+
serializer
|
|
893
|
+
};
|
|
894
|
+
const createOrUpdateAtSubscriptionOperationSpec = {
|
|
895
|
+
path: "/subscriptions/{subscriptionId}/providers/Microsoft.PolicyInsights/remediations/{remediationName}",
|
|
896
|
+
httpMethod: "PUT",
|
|
897
|
+
responses: {
|
|
898
|
+
200: {
|
|
899
|
+
bodyMapper: Mappers.Remediation
|
|
900
|
+
},
|
|
901
|
+
201: {
|
|
902
|
+
bodyMapper: Mappers.Remediation
|
|
903
|
+
},
|
|
904
|
+
default: {
|
|
905
|
+
bodyMapper: Mappers.ErrorResponse
|
|
906
|
+
}
|
|
907
|
+
},
|
|
908
|
+
requestBody: Parameters.parameters,
|
|
909
|
+
queryParameters: [Parameters.apiVersion1],
|
|
910
|
+
urlParameters: [
|
|
911
|
+
Parameters.$host,
|
|
912
|
+
Parameters.subscriptionId,
|
|
913
|
+
Parameters.remediationName
|
|
914
|
+
],
|
|
915
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
916
|
+
mediaType: "json",
|
|
917
|
+
serializer
|
|
918
|
+
};
|
|
919
|
+
const getAtSubscriptionOperationSpec = {
|
|
920
|
+
path: "/subscriptions/{subscriptionId}/providers/Microsoft.PolicyInsights/remediations/{remediationName}",
|
|
921
|
+
httpMethod: "GET",
|
|
922
|
+
responses: {
|
|
923
|
+
200: {
|
|
924
|
+
bodyMapper: Mappers.Remediation
|
|
925
|
+
},
|
|
926
|
+
default: {
|
|
927
|
+
bodyMapper: Mappers.ErrorResponse
|
|
928
|
+
}
|
|
929
|
+
},
|
|
930
|
+
queryParameters: [Parameters.apiVersion1],
|
|
931
|
+
urlParameters: [
|
|
932
|
+
Parameters.$host,
|
|
933
|
+
Parameters.subscriptionId,
|
|
934
|
+
Parameters.remediationName
|
|
935
|
+
],
|
|
936
|
+
headerParameters: [Parameters.accept],
|
|
937
|
+
serializer
|
|
938
|
+
};
|
|
939
|
+
const deleteAtSubscriptionOperationSpec = {
|
|
940
|
+
path: "/subscriptions/{subscriptionId}/providers/Microsoft.PolicyInsights/remediations/{remediationName}",
|
|
941
|
+
httpMethod: "DELETE",
|
|
942
|
+
responses: {
|
|
943
|
+
200: {
|
|
944
|
+
bodyMapper: Mappers.Remediation
|
|
945
|
+
},
|
|
946
|
+
204: {},
|
|
947
|
+
default: {
|
|
948
|
+
bodyMapper: Mappers.ErrorResponse
|
|
949
|
+
}
|
|
950
|
+
},
|
|
951
|
+
queryParameters: [Parameters.apiVersion1],
|
|
952
|
+
urlParameters: [
|
|
953
|
+
Parameters.$host,
|
|
954
|
+
Parameters.subscriptionId,
|
|
955
|
+
Parameters.remediationName
|
|
956
|
+
],
|
|
957
|
+
headerParameters: [Parameters.accept],
|
|
958
|
+
serializer
|
|
959
|
+
};
|
|
960
|
+
const listDeploymentsAtResourceGroupOperationSpec = {
|
|
961
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.PolicyInsights/remediations/{remediationName}/listDeployments",
|
|
962
|
+
httpMethod: "POST",
|
|
963
|
+
responses: {
|
|
964
|
+
200: {
|
|
965
|
+
bodyMapper: Mappers.RemediationDeploymentsListResult
|
|
966
|
+
},
|
|
967
|
+
default: {
|
|
968
|
+
bodyMapper: Mappers.ErrorResponse
|
|
969
|
+
}
|
|
970
|
+
},
|
|
971
|
+
queryParameters: [Parameters.top, Parameters.apiVersion1],
|
|
972
|
+
urlParameters: [
|
|
973
|
+
Parameters.$host,
|
|
974
|
+
Parameters.subscriptionId,
|
|
975
|
+
Parameters.resourceGroupName,
|
|
976
|
+
Parameters.remediationName
|
|
977
|
+
],
|
|
978
|
+
headerParameters: [Parameters.accept],
|
|
979
|
+
serializer
|
|
980
|
+
};
|
|
981
|
+
const cancelAtResourceGroupOperationSpec = {
|
|
982
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.PolicyInsights/remediations/{remediationName}/cancel",
|
|
983
|
+
httpMethod: "POST",
|
|
984
|
+
responses: {
|
|
985
|
+
200: {
|
|
986
|
+
bodyMapper: Mappers.Remediation
|
|
987
|
+
},
|
|
988
|
+
default: {
|
|
989
|
+
bodyMapper: Mappers.ErrorResponse
|
|
990
|
+
}
|
|
991
|
+
},
|
|
992
|
+
queryParameters: [Parameters.apiVersion1],
|
|
993
|
+
urlParameters: [
|
|
994
|
+
Parameters.$host,
|
|
995
|
+
Parameters.subscriptionId,
|
|
996
|
+
Parameters.resourceGroupName,
|
|
997
|
+
Parameters.remediationName
|
|
998
|
+
],
|
|
999
|
+
headerParameters: [Parameters.accept],
|
|
1000
|
+
serializer
|
|
1001
|
+
};
|
|
1002
|
+
const listForResourceGroupOperationSpec = {
|
|
1003
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.PolicyInsights/remediations",
|
|
1004
|
+
httpMethod: "GET",
|
|
1005
|
+
responses: {
|
|
1006
|
+
200: {
|
|
1007
|
+
bodyMapper: Mappers.RemediationListResult
|
|
1008
|
+
},
|
|
1009
|
+
default: {
|
|
1010
|
+
bodyMapper: Mappers.ErrorResponse
|
|
1011
|
+
}
|
|
1012
|
+
},
|
|
1013
|
+
queryParameters: [Parameters.top, Parameters.filter, Parameters.apiVersion1],
|
|
1014
|
+
urlParameters: [
|
|
1015
|
+
Parameters.$host,
|
|
1016
|
+
Parameters.subscriptionId,
|
|
1017
|
+
Parameters.resourceGroupName
|
|
1018
|
+
],
|
|
1019
|
+
headerParameters: [Parameters.accept],
|
|
1020
|
+
serializer
|
|
1021
|
+
};
|
|
1022
|
+
const createOrUpdateAtResourceGroupOperationSpec = {
|
|
1023
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.PolicyInsights/remediations/{remediationName}",
|
|
1024
|
+
httpMethod: "PUT",
|
|
1025
|
+
responses: {
|
|
1026
|
+
200: {
|
|
1027
|
+
bodyMapper: Mappers.Remediation
|
|
1028
|
+
},
|
|
1029
|
+
201: {
|
|
1030
|
+
bodyMapper: Mappers.Remediation
|
|
1031
|
+
},
|
|
1032
|
+
default: {
|
|
1033
|
+
bodyMapper: Mappers.ErrorResponse
|
|
1034
|
+
}
|
|
1035
|
+
},
|
|
1036
|
+
requestBody: Parameters.parameters,
|
|
1037
|
+
queryParameters: [Parameters.apiVersion1],
|
|
1038
|
+
urlParameters: [
|
|
1039
|
+
Parameters.$host,
|
|
1040
|
+
Parameters.subscriptionId,
|
|
1041
|
+
Parameters.resourceGroupName,
|
|
1042
|
+
Parameters.remediationName
|
|
1043
|
+
],
|
|
1044
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
1045
|
+
mediaType: "json",
|
|
1046
|
+
serializer
|
|
1047
|
+
};
|
|
1048
|
+
const getAtResourceGroupOperationSpec = {
|
|
1049
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.PolicyInsights/remediations/{remediationName}",
|
|
1050
|
+
httpMethod: "GET",
|
|
1051
|
+
responses: {
|
|
1052
|
+
200: {
|
|
1053
|
+
bodyMapper: Mappers.Remediation
|
|
1054
|
+
},
|
|
1055
|
+
default: {
|
|
1056
|
+
bodyMapper: Mappers.ErrorResponse
|
|
1057
|
+
}
|
|
1058
|
+
},
|
|
1059
|
+
queryParameters: [Parameters.apiVersion1],
|
|
1060
|
+
urlParameters: [
|
|
1061
|
+
Parameters.$host,
|
|
1062
|
+
Parameters.subscriptionId,
|
|
1063
|
+
Parameters.resourceGroupName,
|
|
1064
|
+
Parameters.remediationName
|
|
1065
|
+
],
|
|
1066
|
+
headerParameters: [Parameters.accept],
|
|
1067
|
+
serializer
|
|
1068
|
+
};
|
|
1069
|
+
const deleteAtResourceGroupOperationSpec = {
|
|
1070
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.PolicyInsights/remediations/{remediationName}",
|
|
1071
|
+
httpMethod: "DELETE",
|
|
1072
|
+
responses: {
|
|
1073
|
+
200: {
|
|
1074
|
+
bodyMapper: Mappers.Remediation
|
|
1075
|
+
},
|
|
1076
|
+
204: {},
|
|
1077
|
+
default: {
|
|
1078
|
+
bodyMapper: Mappers.ErrorResponse
|
|
1079
|
+
}
|
|
1080
|
+
},
|
|
1081
|
+
queryParameters: [Parameters.apiVersion1],
|
|
1082
|
+
urlParameters: [
|
|
1083
|
+
Parameters.$host,
|
|
1084
|
+
Parameters.subscriptionId,
|
|
1085
|
+
Parameters.resourceGroupName,
|
|
1086
|
+
Parameters.remediationName
|
|
1087
|
+
],
|
|
1088
|
+
headerParameters: [Parameters.accept],
|
|
1089
|
+
serializer
|
|
1090
|
+
};
|
|
1091
|
+
const listDeploymentsAtResourceOperationSpec = {
|
|
1092
|
+
path: "/{resourceId}/providers/Microsoft.PolicyInsights/remediations/{remediationName}/listDeployments",
|
|
1093
|
+
httpMethod: "POST",
|
|
1094
|
+
responses: {
|
|
1095
|
+
200: {
|
|
1096
|
+
bodyMapper: Mappers.RemediationDeploymentsListResult
|
|
1097
|
+
},
|
|
1098
|
+
default: {
|
|
1099
|
+
bodyMapper: Mappers.ErrorResponse
|
|
1100
|
+
}
|
|
1101
|
+
},
|
|
1102
|
+
queryParameters: [Parameters.top, Parameters.apiVersion1],
|
|
1103
|
+
urlParameters: [
|
|
1104
|
+
Parameters.$host,
|
|
1105
|
+
Parameters.resourceId,
|
|
1106
|
+
Parameters.remediationName
|
|
1107
|
+
],
|
|
1108
|
+
headerParameters: [Parameters.accept],
|
|
1109
|
+
serializer
|
|
1110
|
+
};
|
|
1111
|
+
const cancelAtResourceOperationSpec = {
|
|
1112
|
+
path: "/{resourceId}/providers/Microsoft.PolicyInsights/remediations/{remediationName}/cancel",
|
|
1113
|
+
httpMethod: "POST",
|
|
1114
|
+
responses: {
|
|
1115
|
+
200: {
|
|
1116
|
+
bodyMapper: Mappers.Remediation
|
|
1117
|
+
},
|
|
1118
|
+
default: {
|
|
1119
|
+
bodyMapper: Mappers.ErrorResponse
|
|
1120
|
+
}
|
|
1121
|
+
},
|
|
1122
|
+
queryParameters: [Parameters.apiVersion1],
|
|
1123
|
+
urlParameters: [
|
|
1124
|
+
Parameters.$host,
|
|
1125
|
+
Parameters.resourceId,
|
|
1126
|
+
Parameters.remediationName
|
|
1127
|
+
],
|
|
1128
|
+
headerParameters: [Parameters.accept],
|
|
1129
|
+
serializer
|
|
1130
|
+
};
|
|
1131
|
+
const listForResourceOperationSpec = {
|
|
1132
|
+
path: "/{resourceId}/providers/Microsoft.PolicyInsights/remediations",
|
|
1133
|
+
httpMethod: "GET",
|
|
1134
|
+
responses: {
|
|
1135
|
+
200: {
|
|
1136
|
+
bodyMapper: Mappers.RemediationListResult
|
|
1137
|
+
},
|
|
1138
|
+
default: {
|
|
1139
|
+
bodyMapper: Mappers.ErrorResponse
|
|
1140
|
+
}
|
|
1141
|
+
},
|
|
1142
|
+
queryParameters: [Parameters.top, Parameters.filter, Parameters.apiVersion1],
|
|
1143
|
+
urlParameters: [Parameters.$host, Parameters.resourceId],
|
|
1144
|
+
headerParameters: [Parameters.accept],
|
|
1145
|
+
serializer
|
|
1146
|
+
};
|
|
1147
|
+
const createOrUpdateAtResourceOperationSpec = {
|
|
1148
|
+
path: "/{resourceId}/providers/Microsoft.PolicyInsights/remediations/{remediationName}",
|
|
1149
|
+
httpMethod: "PUT",
|
|
1150
|
+
responses: {
|
|
1151
|
+
200: {
|
|
1152
|
+
bodyMapper: Mappers.Remediation
|
|
1153
|
+
},
|
|
1154
|
+
201: {
|
|
1155
|
+
bodyMapper: Mappers.Remediation
|
|
1156
|
+
},
|
|
1157
|
+
default: {
|
|
1158
|
+
bodyMapper: Mappers.ErrorResponse
|
|
1159
|
+
}
|
|
1160
|
+
},
|
|
1161
|
+
requestBody: Parameters.parameters,
|
|
1162
|
+
queryParameters: [Parameters.apiVersion1],
|
|
1163
|
+
urlParameters: [
|
|
1164
|
+
Parameters.$host,
|
|
1165
|
+
Parameters.resourceId,
|
|
1166
|
+
Parameters.remediationName
|
|
1167
|
+
],
|
|
1168
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
1169
|
+
mediaType: "json",
|
|
1170
|
+
serializer
|
|
1171
|
+
};
|
|
1172
|
+
const getAtResourceOperationSpec = {
|
|
1173
|
+
path: "/{resourceId}/providers/Microsoft.PolicyInsights/remediations/{remediationName}",
|
|
1174
|
+
httpMethod: "GET",
|
|
1175
|
+
responses: {
|
|
1176
|
+
200: {
|
|
1177
|
+
bodyMapper: Mappers.Remediation
|
|
1178
|
+
},
|
|
1179
|
+
default: {
|
|
1180
|
+
bodyMapper: Mappers.ErrorResponse
|
|
1181
|
+
}
|
|
1182
|
+
},
|
|
1183
|
+
queryParameters: [Parameters.apiVersion1],
|
|
1184
|
+
urlParameters: [
|
|
1185
|
+
Parameters.$host,
|
|
1186
|
+
Parameters.resourceId,
|
|
1187
|
+
Parameters.remediationName
|
|
1188
|
+
],
|
|
1189
|
+
headerParameters: [Parameters.accept],
|
|
1190
|
+
serializer
|
|
1191
|
+
};
|
|
1192
|
+
const deleteAtResourceOperationSpec = {
|
|
1193
|
+
path: "/{resourceId}/providers/Microsoft.PolicyInsights/remediations/{remediationName}",
|
|
1194
|
+
httpMethod: "DELETE",
|
|
1195
|
+
responses: {
|
|
1196
|
+
200: {
|
|
1197
|
+
bodyMapper: Mappers.Remediation
|
|
1198
|
+
},
|
|
1199
|
+
204: {},
|
|
1200
|
+
default: {
|
|
1201
|
+
bodyMapper: Mappers.ErrorResponse
|
|
1202
|
+
}
|
|
1203
|
+
},
|
|
1204
|
+
queryParameters: [Parameters.apiVersion1],
|
|
1205
|
+
urlParameters: [
|
|
1206
|
+
Parameters.$host,
|
|
1207
|
+
Parameters.resourceId,
|
|
1208
|
+
Parameters.remediationName
|
|
1209
|
+
],
|
|
1210
|
+
headerParameters: [Parameters.accept],
|
|
1211
|
+
serializer
|
|
1212
|
+
};
|
|
1213
|
+
const listDeploymentsAtManagementGroupNextOperationSpec = {
|
|
1214
|
+
path: "{nextLink}",
|
|
1215
|
+
httpMethod: "GET",
|
|
1216
|
+
responses: {
|
|
1217
|
+
200: {
|
|
1218
|
+
bodyMapper: Mappers.RemediationDeploymentsListResult
|
|
1219
|
+
},
|
|
1220
|
+
default: {
|
|
1221
|
+
bodyMapper: Mappers.ErrorResponse
|
|
1222
|
+
}
|
|
1223
|
+
},
|
|
1224
|
+
queryParameters: [Parameters.top, Parameters.apiVersion1],
|
|
1225
|
+
urlParameters: [
|
|
1226
|
+
Parameters.$host,
|
|
1227
|
+
Parameters.managementGroupsNamespace,
|
|
1228
|
+
Parameters.nextLink,
|
|
1229
|
+
Parameters.managementGroupId,
|
|
1230
|
+
Parameters.remediationName
|
|
1231
|
+
],
|
|
1232
|
+
headerParameters: [Parameters.accept],
|
|
1233
|
+
serializer
|
|
1234
|
+
};
|
|
1235
|
+
const listForManagementGroupNextOperationSpec = {
|
|
1236
|
+
path: "{nextLink}",
|
|
1237
|
+
httpMethod: "GET",
|
|
1238
|
+
responses: {
|
|
1239
|
+
200: {
|
|
1240
|
+
bodyMapper: Mappers.RemediationListResult
|
|
1241
|
+
},
|
|
1242
|
+
default: {
|
|
1243
|
+
bodyMapper: Mappers.ErrorResponse
|
|
1244
|
+
}
|
|
1245
|
+
},
|
|
1246
|
+
queryParameters: [Parameters.top, Parameters.filter, Parameters.apiVersion1],
|
|
1247
|
+
urlParameters: [
|
|
1248
|
+
Parameters.$host,
|
|
1249
|
+
Parameters.managementGroupsNamespace,
|
|
1250
|
+
Parameters.nextLink,
|
|
1251
|
+
Parameters.managementGroupId
|
|
1252
|
+
],
|
|
1253
|
+
headerParameters: [Parameters.accept],
|
|
1254
|
+
serializer
|
|
1255
|
+
};
|
|
1256
|
+
const listDeploymentsAtSubscriptionNextOperationSpec = {
|
|
1257
|
+
path: "{nextLink}",
|
|
1258
|
+
httpMethod: "GET",
|
|
1259
|
+
responses: {
|
|
1260
|
+
200: {
|
|
1261
|
+
bodyMapper: Mappers.RemediationDeploymentsListResult
|
|
1262
|
+
},
|
|
1263
|
+
default: {
|
|
1264
|
+
bodyMapper: Mappers.ErrorResponse
|
|
1265
|
+
}
|
|
1266
|
+
},
|
|
1267
|
+
queryParameters: [Parameters.top, Parameters.apiVersion1],
|
|
1268
|
+
urlParameters: [
|
|
1269
|
+
Parameters.$host,
|
|
1270
|
+
Parameters.subscriptionId,
|
|
1271
|
+
Parameters.nextLink,
|
|
1272
|
+
Parameters.remediationName
|
|
1273
|
+
],
|
|
1274
|
+
headerParameters: [Parameters.accept],
|
|
1275
|
+
serializer
|
|
1276
|
+
};
|
|
1277
|
+
const listForSubscriptionNextOperationSpec = {
|
|
1278
|
+
path: "{nextLink}",
|
|
1279
|
+
httpMethod: "GET",
|
|
1280
|
+
responses: {
|
|
1281
|
+
200: {
|
|
1282
|
+
bodyMapper: Mappers.RemediationListResult
|
|
1283
|
+
},
|
|
1284
|
+
default: {
|
|
1285
|
+
bodyMapper: Mappers.ErrorResponse
|
|
1286
|
+
}
|
|
1287
|
+
},
|
|
1288
|
+
queryParameters: [Parameters.top, Parameters.filter, Parameters.apiVersion1],
|
|
1289
|
+
urlParameters: [
|
|
1290
|
+
Parameters.$host,
|
|
1291
|
+
Parameters.subscriptionId,
|
|
1292
|
+
Parameters.nextLink
|
|
1293
|
+
],
|
|
1294
|
+
headerParameters: [Parameters.accept],
|
|
1295
|
+
serializer
|
|
1296
|
+
};
|
|
1297
|
+
const listDeploymentsAtResourceGroupNextOperationSpec = {
|
|
1298
|
+
path: "{nextLink}",
|
|
1299
|
+
httpMethod: "GET",
|
|
1300
|
+
responses: {
|
|
1301
|
+
200: {
|
|
1302
|
+
bodyMapper: Mappers.RemediationDeploymentsListResult
|
|
1303
|
+
},
|
|
1304
|
+
default: {
|
|
1305
|
+
bodyMapper: Mappers.ErrorResponse
|
|
1306
|
+
}
|
|
1307
|
+
},
|
|
1308
|
+
queryParameters: [Parameters.top, Parameters.apiVersion1],
|
|
1309
|
+
urlParameters: [
|
|
1310
|
+
Parameters.$host,
|
|
1311
|
+
Parameters.subscriptionId,
|
|
1312
|
+
Parameters.resourceGroupName,
|
|
1313
|
+
Parameters.nextLink,
|
|
1314
|
+
Parameters.remediationName
|
|
1315
|
+
],
|
|
1316
|
+
headerParameters: [Parameters.accept],
|
|
1317
|
+
serializer
|
|
1318
|
+
};
|
|
1319
|
+
const listForResourceGroupNextOperationSpec = {
|
|
1320
|
+
path: "{nextLink}",
|
|
1321
|
+
httpMethod: "GET",
|
|
1322
|
+
responses: {
|
|
1323
|
+
200: {
|
|
1324
|
+
bodyMapper: Mappers.RemediationListResult
|
|
1325
|
+
},
|
|
1326
|
+
default: {
|
|
1327
|
+
bodyMapper: Mappers.ErrorResponse
|
|
1328
|
+
}
|
|
1329
|
+
},
|
|
1330
|
+
queryParameters: [Parameters.top, Parameters.filter, Parameters.apiVersion1],
|
|
1331
|
+
urlParameters: [
|
|
1332
|
+
Parameters.$host,
|
|
1333
|
+
Parameters.subscriptionId,
|
|
1334
|
+
Parameters.resourceGroupName,
|
|
1335
|
+
Parameters.nextLink
|
|
1336
|
+
],
|
|
1337
|
+
headerParameters: [Parameters.accept],
|
|
1338
|
+
serializer
|
|
1339
|
+
};
|
|
1340
|
+
const listDeploymentsAtResourceNextOperationSpec = {
|
|
1341
|
+
path: "{nextLink}",
|
|
1342
|
+
httpMethod: "GET",
|
|
1343
|
+
responses: {
|
|
1344
|
+
200: {
|
|
1345
|
+
bodyMapper: Mappers.RemediationDeploymentsListResult
|
|
1346
|
+
},
|
|
1347
|
+
default: {
|
|
1348
|
+
bodyMapper: Mappers.ErrorResponse
|
|
1349
|
+
}
|
|
1350
|
+
},
|
|
1351
|
+
queryParameters: [Parameters.top, Parameters.apiVersion1],
|
|
1352
|
+
urlParameters: [
|
|
1353
|
+
Parameters.$host,
|
|
1354
|
+
Parameters.resourceId,
|
|
1355
|
+
Parameters.nextLink,
|
|
1356
|
+
Parameters.remediationName
|
|
1357
|
+
],
|
|
1358
|
+
headerParameters: [Parameters.accept],
|
|
1359
|
+
serializer
|
|
1360
|
+
};
|
|
1361
|
+
const listForResourceNextOperationSpec = {
|
|
1362
|
+
path: "{nextLink}",
|
|
1363
|
+
httpMethod: "GET",
|
|
1364
|
+
responses: {
|
|
1365
|
+
200: {
|
|
1366
|
+
bodyMapper: Mappers.RemediationListResult
|
|
1367
|
+
},
|
|
1368
|
+
default: {
|
|
1369
|
+
bodyMapper: Mappers.ErrorResponse
|
|
1370
|
+
}
|
|
1371
|
+
},
|
|
1372
|
+
queryParameters: [Parameters.top, Parameters.filter, Parameters.apiVersion1],
|
|
1373
|
+
urlParameters: [Parameters.$host, Parameters.resourceId, Parameters.nextLink],
|
|
1374
|
+
headerParameters: [Parameters.accept],
|
|
1375
|
+
serializer
|
|
1376
|
+
};
|
|
1377
|
+
//# sourceMappingURL=remediations.js.map
|