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