@azure/arm-policyinsights 6.0.0-alpha.20250718.1 → 6.0.0-alpha.20250721.1
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/dist/browser/lroImpl.js +7 -3
- package/dist/browser/lroImpl.js.map +1 -1
- package/dist/browser/models/mappers.js +34 -16
- package/dist/browser/models/mappers.js.map +1 -1
- package/dist/browser/operations/attestations.js +100 -136
- package/dist/browser/operations/attestations.js.map +1 -1
- package/dist/browser/operations/componentPolicyStates.js +1 -0
- package/dist/browser/operations/componentPolicyStates.js.map +1 -1
- package/dist/browser/operations/operations.js +1 -0
- package/dist/browser/operations/operations.js.map +1 -1
- package/dist/browser/operations/policyEvents.js +180 -316
- package/dist/browser/operations/policyEvents.js.map +1 -1
- package/dist/browser/operations/policyMetadataOperations.js +23 -40
- package/dist/browser/operations/policyMetadataOperations.js.map +1 -1
- package/dist/browser/operations/policyRestrictions.js +1 -0
- package/dist/browser/operations/policyRestrictions.js.map +1 -1
- package/dist/browser/operations/policyStates.js +202 -328
- package/dist/browser/operations/policyStates.js.map +1 -1
- package/dist/browser/operations/policyTrackedResources.js +89 -157
- package/dist/browser/operations/policyTrackedResources.js.map +1 -1
- package/dist/browser/operations/remediations.js +177 -313
- package/dist/browser/operations/remediations.js.map +1 -1
- package/dist/browser/pagingHelper.js +2 -4
- package/dist/browser/pagingHelper.js.map +1 -1
- package/dist/browser/policyInsightsClient.js +21 -5
- package/dist/browser/policyInsightsClient.js.map +1 -1
- package/dist/commonjs/lroImpl.js +7 -3
- package/dist/commonjs/lroImpl.js.map +1 -1
- package/dist/commonjs/models/mappers.js +34 -16
- package/dist/commonjs/models/mappers.js.map +1 -1
- package/dist/commonjs/operations/attestations.js +100 -135
- package/dist/commonjs/operations/attestations.js.map +1 -1
- package/dist/commonjs/operations/componentPolicyStates.js +1 -0
- package/dist/commonjs/operations/componentPolicyStates.js.map +1 -1
- package/dist/commonjs/operations/operations.js +1 -0
- package/dist/commonjs/operations/operations.js.map +1 -1
- package/dist/commonjs/operations/policyEvents.js +180 -315
- package/dist/commonjs/operations/policyEvents.js.map +1 -1
- package/dist/commonjs/operations/policyMetadataOperations.js +23 -39
- package/dist/commonjs/operations/policyMetadataOperations.js.map +1 -1
- package/dist/commonjs/operations/policyRestrictions.js +1 -0
- package/dist/commonjs/operations/policyRestrictions.js.map +1 -1
- package/dist/commonjs/operations/policyStates.js +202 -327
- package/dist/commonjs/operations/policyStates.js.map +1 -1
- package/dist/commonjs/operations/policyTrackedResources.js +89 -156
- package/dist/commonjs/operations/policyTrackedResources.js.map +1 -1
- package/dist/commonjs/operations/remediations.js +177 -312
- package/dist/commonjs/operations/remediations.js.map +1 -1
- package/dist/commonjs/pagingHelper.js +2 -4
- package/dist/commonjs/pagingHelper.js.map +1 -1
- package/dist/commonjs/policyInsightsClient.js +21 -5
- package/dist/commonjs/policyInsightsClient.js.map +1 -1
- package/dist/commonjs/tsdoc-metadata.json +11 -11
- package/dist/esm/lroImpl.js +7 -3
- package/dist/esm/lroImpl.js.map +1 -1
- package/dist/esm/models/mappers.js +34 -16
- package/dist/esm/models/mappers.js.map +1 -1
- package/dist/esm/operations/attestations.js +100 -136
- package/dist/esm/operations/attestations.js.map +1 -1
- package/dist/esm/operations/componentPolicyStates.js +1 -0
- package/dist/esm/operations/componentPolicyStates.js.map +1 -1
- package/dist/esm/operations/operations.js +1 -0
- package/dist/esm/operations/operations.js.map +1 -1
- package/dist/esm/operations/policyEvents.js +180 -316
- package/dist/esm/operations/policyEvents.js.map +1 -1
- package/dist/esm/operations/policyMetadataOperations.js +23 -40
- package/dist/esm/operations/policyMetadataOperations.js.map +1 -1
- package/dist/esm/operations/policyRestrictions.js +1 -0
- package/dist/esm/operations/policyRestrictions.js.map +1 -1
- package/dist/esm/operations/policyStates.js +202 -328
- package/dist/esm/operations/policyStates.js.map +1 -1
- package/dist/esm/operations/policyTrackedResources.js +89 -157
- package/dist/esm/operations/policyTrackedResources.js.map +1 -1
- package/dist/esm/operations/remediations.js +177 -313
- package/dist/esm/operations/remediations.js.map +1 -1
- package/dist/esm/pagingHelper.js +2 -4
- package/dist/esm/pagingHelper.js.map +1 -1
- package/dist/esm/policyInsightsClient.js +21 -5
- package/dist/esm/policyInsightsClient.js.map +1 -1
- package/dist/react-native/lroImpl.js +7 -3
- package/dist/react-native/lroImpl.js.map +1 -1
- package/dist/react-native/models/mappers.js +34 -16
- package/dist/react-native/models/mappers.js.map +1 -1
- package/dist/react-native/operations/attestations.js +100 -136
- package/dist/react-native/operations/attestations.js.map +1 -1
- package/dist/react-native/operations/componentPolicyStates.js +1 -0
- package/dist/react-native/operations/componentPolicyStates.js.map +1 -1
- package/dist/react-native/operations/operations.js +1 -0
- package/dist/react-native/operations/operations.js.map +1 -1
- package/dist/react-native/operations/policyEvents.js +180 -316
- package/dist/react-native/operations/policyEvents.js.map +1 -1
- package/dist/react-native/operations/policyMetadataOperations.js +23 -40
- package/dist/react-native/operations/policyMetadataOperations.js.map +1 -1
- package/dist/react-native/operations/policyRestrictions.js +1 -0
- package/dist/react-native/operations/policyRestrictions.js.map +1 -1
- package/dist/react-native/operations/policyStates.js +202 -328
- package/dist/react-native/operations/policyStates.js.map +1 -1
- package/dist/react-native/operations/policyTrackedResources.js +89 -157
- package/dist/react-native/operations/policyTrackedResources.js.map +1 -1
- package/dist/react-native/operations/remediations.js +177 -313
- package/dist/react-native/operations/remediations.js.map +1 -1
- package/dist/react-native/pagingHelper.js +2 -4
- package/dist/react-native/pagingHelper.js.map +1 -1
- package/dist/react-native/policyInsightsClient.js +21 -5
- package/dist/react-native/policyInsightsClient.js.map +1 -1
- package/package.json +2 -2
- package/review/arm-policyinsights-node.api.md +1716 -1716
|
@@ -16,6 +16,7 @@ const Parameters = tslib_1.__importStar(require("../models/parameters.js"));
|
|
|
16
16
|
/// <reference lib="esnext.asynciterable" />
|
|
17
17
|
/** Class containing Remediations operations. */
|
|
18
18
|
class RemediationsImpl {
|
|
19
|
+
client;
|
|
19
20
|
/**
|
|
20
21
|
* Initialize a new instance of the class Remediations class.
|
|
21
22
|
* @param client Reference to the service client
|
|
@@ -39,52 +40,35 @@ class RemediationsImpl {
|
|
|
39
40
|
return this;
|
|
40
41
|
},
|
|
41
42
|
byPage: (settings) => {
|
|
42
|
-
if (settings
|
|
43
|
+
if (settings?.maxPageSize) {
|
|
43
44
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
44
45
|
}
|
|
45
46
|
return this.listDeploymentsAtManagementGroupPagingPage(managementGroupId, remediationName, options, settings);
|
|
46
47
|
},
|
|
47
48
|
};
|
|
48
49
|
}
|
|
49
|
-
listDeploymentsAtManagementGroupPagingPage(managementGroupId, remediationName, options, settings) {
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
}
|
|
67
|
-
});
|
|
50
|
+
async *listDeploymentsAtManagementGroupPagingPage(managementGroupId, remediationName, options, settings) {
|
|
51
|
+
let result;
|
|
52
|
+
let continuationToken = settings?.continuationToken;
|
|
53
|
+
if (!continuationToken) {
|
|
54
|
+
result = await this._listDeploymentsAtManagementGroup(managementGroupId, remediationName, options);
|
|
55
|
+
let page = result.value || [];
|
|
56
|
+
continuationToken = result.nextLink;
|
|
57
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
58
|
+
yield page;
|
|
59
|
+
}
|
|
60
|
+
while (continuationToken) {
|
|
61
|
+
result = await this._listDeploymentsAtManagementGroupNext(managementGroupId, remediationName, continuationToken, options);
|
|
62
|
+
continuationToken = result.nextLink;
|
|
63
|
+
let page = result.value || [];
|
|
64
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
65
|
+
yield page;
|
|
66
|
+
}
|
|
68
67
|
}
|
|
69
|
-
listDeploymentsAtManagementGroupPagingAll(managementGroupId, remediationName, options) {
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
for (var _d = true, _e = tslib_1.__asyncValues(this.listDeploymentsAtManagementGroupPagingPage(managementGroupId, remediationName, options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
74
|
-
_c = _f.value;
|
|
75
|
-
_d = false;
|
|
76
|
-
const page = _c;
|
|
77
|
-
yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
81
|
-
finally {
|
|
82
|
-
try {
|
|
83
|
-
if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
|
|
84
|
-
}
|
|
85
|
-
finally { if (e_1) throw e_1.error; }
|
|
86
|
-
}
|
|
87
|
-
});
|
|
68
|
+
async *listDeploymentsAtManagementGroupPagingAll(managementGroupId, remediationName, options) {
|
|
69
|
+
for await (const page of this.listDeploymentsAtManagementGroupPagingPage(managementGroupId, remediationName, options)) {
|
|
70
|
+
yield* page;
|
|
71
|
+
}
|
|
88
72
|
}
|
|
89
73
|
/**
|
|
90
74
|
* Gets all remediations for the management group.
|
|
@@ -101,52 +85,35 @@ class RemediationsImpl {
|
|
|
101
85
|
return this;
|
|
102
86
|
},
|
|
103
87
|
byPage: (settings) => {
|
|
104
|
-
if (settings
|
|
88
|
+
if (settings?.maxPageSize) {
|
|
105
89
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
106
90
|
}
|
|
107
91
|
return this.listForManagementGroupPagingPage(managementGroupId, options, settings);
|
|
108
92
|
},
|
|
109
93
|
};
|
|
110
94
|
}
|
|
111
|
-
listForManagementGroupPagingPage(managementGroupId, options, settings) {
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
}
|
|
129
|
-
});
|
|
95
|
+
async *listForManagementGroupPagingPage(managementGroupId, options, settings) {
|
|
96
|
+
let result;
|
|
97
|
+
let continuationToken = settings?.continuationToken;
|
|
98
|
+
if (!continuationToken) {
|
|
99
|
+
result = await this._listForManagementGroup(managementGroupId, options);
|
|
100
|
+
let page = result.value || [];
|
|
101
|
+
continuationToken = result.nextLink;
|
|
102
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
103
|
+
yield page;
|
|
104
|
+
}
|
|
105
|
+
while (continuationToken) {
|
|
106
|
+
result = await this._listForManagementGroupNext(managementGroupId, continuationToken, options);
|
|
107
|
+
continuationToken = result.nextLink;
|
|
108
|
+
let page = result.value || [];
|
|
109
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
110
|
+
yield page;
|
|
111
|
+
}
|
|
130
112
|
}
|
|
131
|
-
listForManagementGroupPagingAll(managementGroupId, options) {
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
for (var _d = true, _e = tslib_1.__asyncValues(this.listForManagementGroupPagingPage(managementGroupId, options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
136
|
-
_c = _f.value;
|
|
137
|
-
_d = false;
|
|
138
|
-
const page = _c;
|
|
139
|
-
yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
|
|
140
|
-
}
|
|
141
|
-
}
|
|
142
|
-
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
143
|
-
finally {
|
|
144
|
-
try {
|
|
145
|
-
if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
|
|
146
|
-
}
|
|
147
|
-
finally { if (e_2) throw e_2.error; }
|
|
148
|
-
}
|
|
149
|
-
});
|
|
113
|
+
async *listForManagementGroupPagingAll(managementGroupId, options) {
|
|
114
|
+
for await (const page of this.listForManagementGroupPagingPage(managementGroupId, options)) {
|
|
115
|
+
yield* page;
|
|
116
|
+
}
|
|
150
117
|
}
|
|
151
118
|
/**
|
|
152
119
|
* Gets all deployments for a remediation at subscription scope.
|
|
@@ -163,52 +130,35 @@ class RemediationsImpl {
|
|
|
163
130
|
return this;
|
|
164
131
|
},
|
|
165
132
|
byPage: (settings) => {
|
|
166
|
-
if (settings
|
|
133
|
+
if (settings?.maxPageSize) {
|
|
167
134
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
168
135
|
}
|
|
169
136
|
return this.listDeploymentsAtSubscriptionPagingPage(remediationName, options, settings);
|
|
170
137
|
},
|
|
171
138
|
};
|
|
172
139
|
}
|
|
173
|
-
listDeploymentsAtSubscriptionPagingPage(remediationName, options, settings) {
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
}
|
|
191
|
-
});
|
|
140
|
+
async *listDeploymentsAtSubscriptionPagingPage(remediationName, options, settings) {
|
|
141
|
+
let result;
|
|
142
|
+
let continuationToken = settings?.continuationToken;
|
|
143
|
+
if (!continuationToken) {
|
|
144
|
+
result = await this._listDeploymentsAtSubscription(remediationName, options);
|
|
145
|
+
let page = result.value || [];
|
|
146
|
+
continuationToken = result.nextLink;
|
|
147
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
148
|
+
yield page;
|
|
149
|
+
}
|
|
150
|
+
while (continuationToken) {
|
|
151
|
+
result = await this._listDeploymentsAtSubscriptionNext(remediationName, continuationToken, options);
|
|
152
|
+
continuationToken = result.nextLink;
|
|
153
|
+
let page = result.value || [];
|
|
154
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
155
|
+
yield page;
|
|
156
|
+
}
|
|
192
157
|
}
|
|
193
|
-
listDeploymentsAtSubscriptionPagingAll(remediationName, options) {
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
for (var _d = true, _e = tslib_1.__asyncValues(this.listDeploymentsAtSubscriptionPagingPage(remediationName, options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
198
|
-
_c = _f.value;
|
|
199
|
-
_d = false;
|
|
200
|
-
const page = _c;
|
|
201
|
-
yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
|
|
202
|
-
}
|
|
203
|
-
}
|
|
204
|
-
catch (e_3_1) { e_3 = { error: e_3_1 }; }
|
|
205
|
-
finally {
|
|
206
|
-
try {
|
|
207
|
-
if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
|
|
208
|
-
}
|
|
209
|
-
finally { if (e_3) throw e_3.error; }
|
|
210
|
-
}
|
|
211
|
-
});
|
|
158
|
+
async *listDeploymentsAtSubscriptionPagingAll(remediationName, options) {
|
|
159
|
+
for await (const page of this.listDeploymentsAtSubscriptionPagingPage(remediationName, options)) {
|
|
160
|
+
yield* page;
|
|
161
|
+
}
|
|
212
162
|
}
|
|
213
163
|
/**
|
|
214
164
|
* Gets all remediations for the subscription.
|
|
@@ -224,52 +174,35 @@ class RemediationsImpl {
|
|
|
224
174
|
return this;
|
|
225
175
|
},
|
|
226
176
|
byPage: (settings) => {
|
|
227
|
-
if (settings
|
|
177
|
+
if (settings?.maxPageSize) {
|
|
228
178
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
229
179
|
}
|
|
230
180
|
return this.listForSubscriptionPagingPage(options, settings);
|
|
231
181
|
},
|
|
232
182
|
};
|
|
233
183
|
}
|
|
234
|
-
listForSubscriptionPagingPage(options, settings) {
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
}
|
|
252
|
-
});
|
|
184
|
+
async *listForSubscriptionPagingPage(options, settings) {
|
|
185
|
+
let result;
|
|
186
|
+
let continuationToken = settings?.continuationToken;
|
|
187
|
+
if (!continuationToken) {
|
|
188
|
+
result = await this._listForSubscription(options);
|
|
189
|
+
let page = result.value || [];
|
|
190
|
+
continuationToken = result.nextLink;
|
|
191
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
192
|
+
yield page;
|
|
193
|
+
}
|
|
194
|
+
while (continuationToken) {
|
|
195
|
+
result = await this._listForSubscriptionNext(continuationToken, options);
|
|
196
|
+
continuationToken = result.nextLink;
|
|
197
|
+
let page = result.value || [];
|
|
198
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
199
|
+
yield page;
|
|
200
|
+
}
|
|
253
201
|
}
|
|
254
|
-
listForSubscriptionPagingAll(options) {
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
for (var _d = true, _e = tslib_1.__asyncValues(this.listForSubscriptionPagingPage(options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
259
|
-
_c = _f.value;
|
|
260
|
-
_d = false;
|
|
261
|
-
const page = _c;
|
|
262
|
-
yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
|
|
263
|
-
}
|
|
264
|
-
}
|
|
265
|
-
catch (e_4_1) { e_4 = { error: e_4_1 }; }
|
|
266
|
-
finally {
|
|
267
|
-
try {
|
|
268
|
-
if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
|
|
269
|
-
}
|
|
270
|
-
finally { if (e_4) throw e_4.error; }
|
|
271
|
-
}
|
|
272
|
-
});
|
|
202
|
+
async *listForSubscriptionPagingAll(options) {
|
|
203
|
+
for await (const page of this.listForSubscriptionPagingPage(options)) {
|
|
204
|
+
yield* page;
|
|
205
|
+
}
|
|
273
206
|
}
|
|
274
207
|
/**
|
|
275
208
|
* Gets all deployments for a remediation at resource group scope.
|
|
@@ -287,52 +220,35 @@ class RemediationsImpl {
|
|
|
287
220
|
return this;
|
|
288
221
|
},
|
|
289
222
|
byPage: (settings) => {
|
|
290
|
-
if (settings
|
|
223
|
+
if (settings?.maxPageSize) {
|
|
291
224
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
292
225
|
}
|
|
293
226
|
return this.listDeploymentsAtResourceGroupPagingPage(resourceGroupName, remediationName, options, settings);
|
|
294
227
|
},
|
|
295
228
|
};
|
|
296
229
|
}
|
|
297
|
-
listDeploymentsAtResourceGroupPagingPage(resourceGroupName, remediationName, options, settings) {
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
}
|
|
315
|
-
});
|
|
230
|
+
async *listDeploymentsAtResourceGroupPagingPage(resourceGroupName, remediationName, options, settings) {
|
|
231
|
+
let result;
|
|
232
|
+
let continuationToken = settings?.continuationToken;
|
|
233
|
+
if (!continuationToken) {
|
|
234
|
+
result = await this._listDeploymentsAtResourceGroup(resourceGroupName, remediationName, options);
|
|
235
|
+
let page = result.value || [];
|
|
236
|
+
continuationToken = result.nextLink;
|
|
237
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
238
|
+
yield page;
|
|
239
|
+
}
|
|
240
|
+
while (continuationToken) {
|
|
241
|
+
result = await this._listDeploymentsAtResourceGroupNext(resourceGroupName, remediationName, continuationToken, options);
|
|
242
|
+
continuationToken = result.nextLink;
|
|
243
|
+
let page = result.value || [];
|
|
244
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
245
|
+
yield page;
|
|
246
|
+
}
|
|
316
247
|
}
|
|
317
|
-
listDeploymentsAtResourceGroupPagingAll(resourceGroupName, remediationName, options) {
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
for (var _d = true, _e = tslib_1.__asyncValues(this.listDeploymentsAtResourceGroupPagingPage(resourceGroupName, remediationName, options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
322
|
-
_c = _f.value;
|
|
323
|
-
_d = false;
|
|
324
|
-
const page = _c;
|
|
325
|
-
yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
|
|
326
|
-
}
|
|
327
|
-
}
|
|
328
|
-
catch (e_5_1) { e_5 = { error: e_5_1 }; }
|
|
329
|
-
finally {
|
|
330
|
-
try {
|
|
331
|
-
if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
|
|
332
|
-
}
|
|
333
|
-
finally { if (e_5) throw e_5.error; }
|
|
334
|
-
}
|
|
335
|
-
});
|
|
248
|
+
async *listDeploymentsAtResourceGroupPagingAll(resourceGroupName, remediationName, options) {
|
|
249
|
+
for await (const page of this.listDeploymentsAtResourceGroupPagingPage(resourceGroupName, remediationName, options)) {
|
|
250
|
+
yield* page;
|
|
251
|
+
}
|
|
336
252
|
}
|
|
337
253
|
/**
|
|
338
254
|
* Gets all remediations for the subscription.
|
|
@@ -349,52 +265,35 @@ class RemediationsImpl {
|
|
|
349
265
|
return this;
|
|
350
266
|
},
|
|
351
267
|
byPage: (settings) => {
|
|
352
|
-
if (settings
|
|
268
|
+
if (settings?.maxPageSize) {
|
|
353
269
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
354
270
|
}
|
|
355
271
|
return this.listForResourceGroupPagingPage(resourceGroupName, options, settings);
|
|
356
272
|
},
|
|
357
273
|
};
|
|
358
274
|
}
|
|
359
|
-
listForResourceGroupPagingPage(resourceGroupName, options, settings) {
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
}
|
|
377
|
-
});
|
|
275
|
+
async *listForResourceGroupPagingPage(resourceGroupName, options, settings) {
|
|
276
|
+
let result;
|
|
277
|
+
let continuationToken = settings?.continuationToken;
|
|
278
|
+
if (!continuationToken) {
|
|
279
|
+
result = await this._listForResourceGroup(resourceGroupName, options);
|
|
280
|
+
let page = result.value || [];
|
|
281
|
+
continuationToken = result.nextLink;
|
|
282
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
283
|
+
yield page;
|
|
284
|
+
}
|
|
285
|
+
while (continuationToken) {
|
|
286
|
+
result = await this._listForResourceGroupNext(resourceGroupName, continuationToken, options);
|
|
287
|
+
continuationToken = result.nextLink;
|
|
288
|
+
let page = result.value || [];
|
|
289
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
290
|
+
yield page;
|
|
291
|
+
}
|
|
378
292
|
}
|
|
379
|
-
listForResourceGroupPagingAll(resourceGroupName, options) {
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
for (var _d = true, _e = tslib_1.__asyncValues(this.listForResourceGroupPagingPage(resourceGroupName, options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
384
|
-
_c = _f.value;
|
|
385
|
-
_d = false;
|
|
386
|
-
const page = _c;
|
|
387
|
-
yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
|
|
388
|
-
}
|
|
389
|
-
}
|
|
390
|
-
catch (e_6_1) { e_6 = { error: e_6_1 }; }
|
|
391
|
-
finally {
|
|
392
|
-
try {
|
|
393
|
-
if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
|
|
394
|
-
}
|
|
395
|
-
finally { if (e_6) throw e_6.error; }
|
|
396
|
-
}
|
|
397
|
-
});
|
|
293
|
+
async *listForResourceGroupPagingAll(resourceGroupName, options) {
|
|
294
|
+
for await (const page of this.listForResourceGroupPagingPage(resourceGroupName, options)) {
|
|
295
|
+
yield* page;
|
|
296
|
+
}
|
|
398
297
|
}
|
|
399
298
|
/**
|
|
400
299
|
* Gets all deployments for a remediation at resource scope.
|
|
@@ -412,52 +311,35 @@ class RemediationsImpl {
|
|
|
412
311
|
return this;
|
|
413
312
|
},
|
|
414
313
|
byPage: (settings) => {
|
|
415
|
-
if (settings
|
|
314
|
+
if (settings?.maxPageSize) {
|
|
416
315
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
417
316
|
}
|
|
418
317
|
return this.listDeploymentsAtResourcePagingPage(resourceId, remediationName, options, settings);
|
|
419
318
|
},
|
|
420
319
|
};
|
|
421
320
|
}
|
|
422
|
-
listDeploymentsAtResourcePagingPage(resourceId, remediationName, options, settings) {
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
}
|
|
440
|
-
});
|
|
321
|
+
async *listDeploymentsAtResourcePagingPage(resourceId, remediationName, options, settings) {
|
|
322
|
+
let result;
|
|
323
|
+
let continuationToken = settings?.continuationToken;
|
|
324
|
+
if (!continuationToken) {
|
|
325
|
+
result = await this._listDeploymentsAtResource(resourceId, remediationName, options);
|
|
326
|
+
let page = result.value || [];
|
|
327
|
+
continuationToken = result.nextLink;
|
|
328
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
329
|
+
yield page;
|
|
330
|
+
}
|
|
331
|
+
while (continuationToken) {
|
|
332
|
+
result = await this._listDeploymentsAtResourceNext(resourceId, remediationName, continuationToken, options);
|
|
333
|
+
continuationToken = result.nextLink;
|
|
334
|
+
let page = result.value || [];
|
|
335
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
336
|
+
yield page;
|
|
337
|
+
}
|
|
441
338
|
}
|
|
442
|
-
listDeploymentsAtResourcePagingAll(resourceId, remediationName, options) {
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
for (var _d = true, _e = tslib_1.__asyncValues(this.listDeploymentsAtResourcePagingPage(resourceId, remediationName, options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
447
|
-
_c = _f.value;
|
|
448
|
-
_d = false;
|
|
449
|
-
const page = _c;
|
|
450
|
-
yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
|
|
451
|
-
}
|
|
452
|
-
}
|
|
453
|
-
catch (e_7_1) { e_7 = { error: e_7_1 }; }
|
|
454
|
-
finally {
|
|
455
|
-
try {
|
|
456
|
-
if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
|
|
457
|
-
}
|
|
458
|
-
finally { if (e_7) throw e_7.error; }
|
|
459
|
-
}
|
|
460
|
-
});
|
|
339
|
+
async *listDeploymentsAtResourcePagingAll(resourceId, remediationName, options) {
|
|
340
|
+
for await (const page of this.listDeploymentsAtResourcePagingPage(resourceId, remediationName, options)) {
|
|
341
|
+
yield* page;
|
|
342
|
+
}
|
|
461
343
|
}
|
|
462
344
|
/**
|
|
463
345
|
* Gets all remediations for a resource.
|
|
@@ -474,52 +356,35 @@ class RemediationsImpl {
|
|
|
474
356
|
return this;
|
|
475
357
|
},
|
|
476
358
|
byPage: (settings) => {
|
|
477
|
-
if (settings
|
|
359
|
+
if (settings?.maxPageSize) {
|
|
478
360
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
479
361
|
}
|
|
480
362
|
return this.listForResourcePagingPage(resourceId, options, settings);
|
|
481
363
|
},
|
|
482
364
|
};
|
|
483
365
|
}
|
|
484
|
-
listForResourcePagingPage(resourceId, options, settings) {
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
}
|
|
502
|
-
});
|
|
366
|
+
async *listForResourcePagingPage(resourceId, options, settings) {
|
|
367
|
+
let result;
|
|
368
|
+
let continuationToken = settings?.continuationToken;
|
|
369
|
+
if (!continuationToken) {
|
|
370
|
+
result = await this._listForResource(resourceId, options);
|
|
371
|
+
let page = result.value || [];
|
|
372
|
+
continuationToken = result.nextLink;
|
|
373
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
374
|
+
yield page;
|
|
375
|
+
}
|
|
376
|
+
while (continuationToken) {
|
|
377
|
+
result = await this._listForResourceNext(resourceId, continuationToken, options);
|
|
378
|
+
continuationToken = result.nextLink;
|
|
379
|
+
let page = result.value || [];
|
|
380
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
381
|
+
yield page;
|
|
382
|
+
}
|
|
503
383
|
}
|
|
504
|
-
listForResourcePagingAll(resourceId, options) {
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
for (var _d = true, _e = tslib_1.__asyncValues(this.listForResourcePagingPage(resourceId, options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
509
|
-
_c = _f.value;
|
|
510
|
-
_d = false;
|
|
511
|
-
const page = _c;
|
|
512
|
-
yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
|
|
513
|
-
}
|
|
514
|
-
}
|
|
515
|
-
catch (e_8_1) { e_8 = { error: e_8_1 }; }
|
|
516
|
-
finally {
|
|
517
|
-
try {
|
|
518
|
-
if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
|
|
519
|
-
}
|
|
520
|
-
finally { if (e_8) throw e_8.error; }
|
|
521
|
-
}
|
|
522
|
-
});
|
|
384
|
+
async *listForResourcePagingAll(resourceId, options) {
|
|
385
|
+
for await (const page of this.listForResourcePagingPage(resourceId, options)) {
|
|
386
|
+
yield* page;
|
|
387
|
+
}
|
|
523
388
|
}
|
|
524
389
|
/**
|
|
525
390
|
* Gets all deployments for a remediation at management group scope.
|