@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
|
@@ -16,6 +16,7 @@ const Parameters = tslib_1.__importStar(require("../models/parameters.js"));
|
|
|
16
16
|
/// <reference lib="esnext.asynciterable" />
|
|
17
17
|
/** Class containing PolicyEvents operations. */
|
|
18
18
|
class PolicyEventsImpl {
|
|
19
|
+
client;
|
|
19
20
|
/**
|
|
20
21
|
* Initialize a new instance of the class PolicyEvents class.
|
|
21
22
|
* @param client Reference to the service client
|
|
@@ -40,52 +41,35 @@ class PolicyEventsImpl {
|
|
|
40
41
|
return this;
|
|
41
42
|
},
|
|
42
43
|
byPage: (settings) => {
|
|
43
|
-
if (settings
|
|
44
|
+
if (settings?.maxPageSize) {
|
|
44
45
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
45
46
|
}
|
|
46
47
|
return this.listQueryResultsForManagementGroupPagingPage(policyEventsResource, managementGroupName, options, settings);
|
|
47
48
|
},
|
|
48
49
|
};
|
|
49
50
|
}
|
|
50
|
-
listQueryResultsForManagementGroupPagingPage(policyEventsResource, managementGroupName, options, settings) {
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
}
|
|
68
|
-
});
|
|
51
|
+
async *listQueryResultsForManagementGroupPagingPage(policyEventsResource, managementGroupName, options, settings) {
|
|
52
|
+
let result;
|
|
53
|
+
let continuationToken = settings?.continuationToken;
|
|
54
|
+
if (!continuationToken) {
|
|
55
|
+
result = await this._listQueryResultsForManagementGroup(policyEventsResource, managementGroupName, options);
|
|
56
|
+
let page = result.value || [];
|
|
57
|
+
continuationToken = result.odataNextLink;
|
|
58
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
59
|
+
yield page;
|
|
60
|
+
}
|
|
61
|
+
while (continuationToken) {
|
|
62
|
+
result = await this._listQueryResultsForManagementGroupNext(policyEventsResource, managementGroupName, continuationToken, options);
|
|
63
|
+
continuationToken = result.odataNextLink;
|
|
64
|
+
let page = result.value || [];
|
|
65
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
66
|
+
yield page;
|
|
67
|
+
}
|
|
69
68
|
}
|
|
70
|
-
listQueryResultsForManagementGroupPagingAll(policyEventsResource, managementGroupName, options) {
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
for (var _d = true, _e = tslib_1.__asyncValues(this.listQueryResultsForManagementGroupPagingPage(policyEventsResource, managementGroupName, options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
75
|
-
_c = _f.value;
|
|
76
|
-
_d = false;
|
|
77
|
-
const page = _c;
|
|
78
|
-
yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
82
|
-
finally {
|
|
83
|
-
try {
|
|
84
|
-
if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
|
|
85
|
-
}
|
|
86
|
-
finally { if (e_1) throw e_1.error; }
|
|
87
|
-
}
|
|
88
|
-
});
|
|
69
|
+
async *listQueryResultsForManagementGroupPagingAll(policyEventsResource, managementGroupName, options) {
|
|
70
|
+
for await (const page of this.listQueryResultsForManagementGroupPagingPage(policyEventsResource, managementGroupName, options)) {
|
|
71
|
+
yield* page;
|
|
72
|
+
}
|
|
89
73
|
}
|
|
90
74
|
/**
|
|
91
75
|
* Queries policy events for the resources under the subscription.
|
|
@@ -104,52 +88,35 @@ class PolicyEventsImpl {
|
|
|
104
88
|
return this;
|
|
105
89
|
},
|
|
106
90
|
byPage: (settings) => {
|
|
107
|
-
if (settings
|
|
91
|
+
if (settings?.maxPageSize) {
|
|
108
92
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
109
93
|
}
|
|
110
94
|
return this.listQueryResultsForSubscriptionPagingPage(policyEventsResource, subscriptionId, options, settings);
|
|
111
95
|
},
|
|
112
96
|
};
|
|
113
97
|
}
|
|
114
|
-
listQueryResultsForSubscriptionPagingPage(policyEventsResource, subscriptionId, options, settings) {
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
}
|
|
132
|
-
});
|
|
98
|
+
async *listQueryResultsForSubscriptionPagingPage(policyEventsResource, subscriptionId, options, settings) {
|
|
99
|
+
let result;
|
|
100
|
+
let continuationToken = settings?.continuationToken;
|
|
101
|
+
if (!continuationToken) {
|
|
102
|
+
result = await this._listQueryResultsForSubscription(policyEventsResource, subscriptionId, options);
|
|
103
|
+
let page = result.value || [];
|
|
104
|
+
continuationToken = result.odataNextLink;
|
|
105
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
106
|
+
yield page;
|
|
107
|
+
}
|
|
108
|
+
while (continuationToken) {
|
|
109
|
+
result = await this._listQueryResultsForSubscriptionNext(policyEventsResource, subscriptionId, continuationToken, options);
|
|
110
|
+
continuationToken = result.odataNextLink;
|
|
111
|
+
let page = result.value || [];
|
|
112
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
113
|
+
yield page;
|
|
114
|
+
}
|
|
133
115
|
}
|
|
134
|
-
listQueryResultsForSubscriptionPagingAll(policyEventsResource, subscriptionId, options) {
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
for (var _d = true, _e = tslib_1.__asyncValues(this.listQueryResultsForSubscriptionPagingPage(policyEventsResource, subscriptionId, options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
139
|
-
_c = _f.value;
|
|
140
|
-
_d = false;
|
|
141
|
-
const page = _c;
|
|
142
|
-
yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
|
|
143
|
-
}
|
|
144
|
-
}
|
|
145
|
-
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
146
|
-
finally {
|
|
147
|
-
try {
|
|
148
|
-
if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
|
|
149
|
-
}
|
|
150
|
-
finally { if (e_2) throw e_2.error; }
|
|
151
|
-
}
|
|
152
|
-
});
|
|
116
|
+
async *listQueryResultsForSubscriptionPagingAll(policyEventsResource, subscriptionId, options) {
|
|
117
|
+
for await (const page of this.listQueryResultsForSubscriptionPagingPage(policyEventsResource, subscriptionId, options)) {
|
|
118
|
+
yield* page;
|
|
119
|
+
}
|
|
153
120
|
}
|
|
154
121
|
/**
|
|
155
122
|
* Queries policy events for the resources under the resource group.
|
|
@@ -169,52 +136,35 @@ class PolicyEventsImpl {
|
|
|
169
136
|
return this;
|
|
170
137
|
},
|
|
171
138
|
byPage: (settings) => {
|
|
172
|
-
if (settings
|
|
139
|
+
if (settings?.maxPageSize) {
|
|
173
140
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
174
141
|
}
|
|
175
142
|
return this.listQueryResultsForResourceGroupPagingPage(policyEventsResource, subscriptionId, resourceGroupName, options, settings);
|
|
176
143
|
},
|
|
177
144
|
};
|
|
178
145
|
}
|
|
179
|
-
listQueryResultsForResourceGroupPagingPage(policyEventsResource, subscriptionId, resourceGroupName, options, settings) {
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
}
|
|
197
|
-
});
|
|
146
|
+
async *listQueryResultsForResourceGroupPagingPage(policyEventsResource, subscriptionId, resourceGroupName, options, settings) {
|
|
147
|
+
let result;
|
|
148
|
+
let continuationToken = settings?.continuationToken;
|
|
149
|
+
if (!continuationToken) {
|
|
150
|
+
result = await this._listQueryResultsForResourceGroup(policyEventsResource, subscriptionId, resourceGroupName, options);
|
|
151
|
+
let page = result.value || [];
|
|
152
|
+
continuationToken = result.odataNextLink;
|
|
153
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
154
|
+
yield page;
|
|
155
|
+
}
|
|
156
|
+
while (continuationToken) {
|
|
157
|
+
result = await this._listQueryResultsForResourceGroupNext(policyEventsResource, subscriptionId, resourceGroupName, continuationToken, options);
|
|
158
|
+
continuationToken = result.odataNextLink;
|
|
159
|
+
let page = result.value || [];
|
|
160
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
161
|
+
yield page;
|
|
162
|
+
}
|
|
198
163
|
}
|
|
199
|
-
listQueryResultsForResourceGroupPagingAll(policyEventsResource, subscriptionId, resourceGroupName, options) {
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
for (var _d = true, _e = tslib_1.__asyncValues(this.listQueryResultsForResourceGroupPagingPage(policyEventsResource, subscriptionId, resourceGroupName, options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
204
|
-
_c = _f.value;
|
|
205
|
-
_d = false;
|
|
206
|
-
const page = _c;
|
|
207
|
-
yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
|
|
208
|
-
}
|
|
209
|
-
}
|
|
210
|
-
catch (e_3_1) { e_3 = { error: e_3_1 }; }
|
|
211
|
-
finally {
|
|
212
|
-
try {
|
|
213
|
-
if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
|
|
214
|
-
}
|
|
215
|
-
finally { if (e_3) throw e_3.error; }
|
|
216
|
-
}
|
|
217
|
-
});
|
|
164
|
+
async *listQueryResultsForResourceGroupPagingAll(policyEventsResource, subscriptionId, resourceGroupName, options) {
|
|
165
|
+
for await (const page of this.listQueryResultsForResourceGroupPagingPage(policyEventsResource, subscriptionId, resourceGroupName, options)) {
|
|
166
|
+
yield* page;
|
|
167
|
+
}
|
|
218
168
|
}
|
|
219
169
|
/**
|
|
220
170
|
* Queries policy events for the resource.
|
|
@@ -233,52 +183,35 @@ class PolicyEventsImpl {
|
|
|
233
183
|
return this;
|
|
234
184
|
},
|
|
235
185
|
byPage: (settings) => {
|
|
236
|
-
if (settings
|
|
186
|
+
if (settings?.maxPageSize) {
|
|
237
187
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
238
188
|
}
|
|
239
189
|
return this.listQueryResultsForResourcePagingPage(policyEventsResource, resourceId, options, settings);
|
|
240
190
|
},
|
|
241
191
|
};
|
|
242
192
|
}
|
|
243
|
-
listQueryResultsForResourcePagingPage(policyEventsResource, resourceId, options, settings) {
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
}
|
|
261
|
-
});
|
|
193
|
+
async *listQueryResultsForResourcePagingPage(policyEventsResource, resourceId, options, settings) {
|
|
194
|
+
let result;
|
|
195
|
+
let continuationToken = settings?.continuationToken;
|
|
196
|
+
if (!continuationToken) {
|
|
197
|
+
result = await this._listQueryResultsForResource(policyEventsResource, resourceId, options);
|
|
198
|
+
let page = result.value || [];
|
|
199
|
+
continuationToken = result.odataNextLink;
|
|
200
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
201
|
+
yield page;
|
|
202
|
+
}
|
|
203
|
+
while (continuationToken) {
|
|
204
|
+
result = await this._listQueryResultsForResourceNext(policyEventsResource, resourceId, continuationToken, options);
|
|
205
|
+
continuationToken = result.odataNextLink;
|
|
206
|
+
let page = result.value || [];
|
|
207
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
208
|
+
yield page;
|
|
209
|
+
}
|
|
262
210
|
}
|
|
263
|
-
listQueryResultsForResourcePagingAll(policyEventsResource, resourceId, options) {
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
for (var _d = true, _e = tslib_1.__asyncValues(this.listQueryResultsForResourcePagingPage(policyEventsResource, resourceId, options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
268
|
-
_c = _f.value;
|
|
269
|
-
_d = false;
|
|
270
|
-
const page = _c;
|
|
271
|
-
yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
|
|
272
|
-
}
|
|
273
|
-
}
|
|
274
|
-
catch (e_4_1) { e_4 = { error: e_4_1 }; }
|
|
275
|
-
finally {
|
|
276
|
-
try {
|
|
277
|
-
if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
|
|
278
|
-
}
|
|
279
|
-
finally { if (e_4) throw e_4.error; }
|
|
280
|
-
}
|
|
281
|
-
});
|
|
211
|
+
async *listQueryResultsForResourcePagingAll(policyEventsResource, resourceId, options) {
|
|
212
|
+
for await (const page of this.listQueryResultsForResourcePagingPage(policyEventsResource, resourceId, options)) {
|
|
213
|
+
yield* page;
|
|
214
|
+
}
|
|
282
215
|
}
|
|
283
216
|
/**
|
|
284
217
|
* Queries policy events for the subscription level policy set definition.
|
|
@@ -298,52 +231,35 @@ class PolicyEventsImpl {
|
|
|
298
231
|
return this;
|
|
299
232
|
},
|
|
300
233
|
byPage: (settings) => {
|
|
301
|
-
if (settings
|
|
234
|
+
if (settings?.maxPageSize) {
|
|
302
235
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
303
236
|
}
|
|
304
237
|
return this.listQueryResultsForPolicySetDefinitionPagingPage(policyEventsResource, subscriptionId, policySetDefinitionName, options, settings);
|
|
305
238
|
},
|
|
306
239
|
};
|
|
307
240
|
}
|
|
308
|
-
listQueryResultsForPolicySetDefinitionPagingPage(policyEventsResource, subscriptionId, policySetDefinitionName, options, settings) {
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
}
|
|
326
|
-
});
|
|
241
|
+
async *listQueryResultsForPolicySetDefinitionPagingPage(policyEventsResource, subscriptionId, policySetDefinitionName, options, settings) {
|
|
242
|
+
let result;
|
|
243
|
+
let continuationToken = settings?.continuationToken;
|
|
244
|
+
if (!continuationToken) {
|
|
245
|
+
result = await this._listQueryResultsForPolicySetDefinition(policyEventsResource, subscriptionId, policySetDefinitionName, options);
|
|
246
|
+
let page = result.value || [];
|
|
247
|
+
continuationToken = result.odataNextLink;
|
|
248
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
249
|
+
yield page;
|
|
250
|
+
}
|
|
251
|
+
while (continuationToken) {
|
|
252
|
+
result = await this._listQueryResultsForPolicySetDefinitionNext(policyEventsResource, subscriptionId, policySetDefinitionName, continuationToken, options);
|
|
253
|
+
continuationToken = result.odataNextLink;
|
|
254
|
+
let page = result.value || [];
|
|
255
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
256
|
+
yield page;
|
|
257
|
+
}
|
|
327
258
|
}
|
|
328
|
-
listQueryResultsForPolicySetDefinitionPagingAll(policyEventsResource, subscriptionId, policySetDefinitionName, options) {
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
for (var _d = true, _e = tslib_1.__asyncValues(this.listQueryResultsForPolicySetDefinitionPagingPage(policyEventsResource, subscriptionId, policySetDefinitionName, options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
333
|
-
_c = _f.value;
|
|
334
|
-
_d = false;
|
|
335
|
-
const page = _c;
|
|
336
|
-
yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
|
|
337
|
-
}
|
|
338
|
-
}
|
|
339
|
-
catch (e_5_1) { e_5 = { error: e_5_1 }; }
|
|
340
|
-
finally {
|
|
341
|
-
try {
|
|
342
|
-
if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
|
|
343
|
-
}
|
|
344
|
-
finally { if (e_5) throw e_5.error; }
|
|
345
|
-
}
|
|
346
|
-
});
|
|
259
|
+
async *listQueryResultsForPolicySetDefinitionPagingAll(policyEventsResource, subscriptionId, policySetDefinitionName, options) {
|
|
260
|
+
for await (const page of this.listQueryResultsForPolicySetDefinitionPagingPage(policyEventsResource, subscriptionId, policySetDefinitionName, options)) {
|
|
261
|
+
yield* page;
|
|
262
|
+
}
|
|
347
263
|
}
|
|
348
264
|
/**
|
|
349
265
|
* Queries policy events for the subscription level policy definition.
|
|
@@ -363,52 +279,35 @@ class PolicyEventsImpl {
|
|
|
363
279
|
return this;
|
|
364
280
|
},
|
|
365
281
|
byPage: (settings) => {
|
|
366
|
-
if (settings
|
|
282
|
+
if (settings?.maxPageSize) {
|
|
367
283
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
368
284
|
}
|
|
369
285
|
return this.listQueryResultsForPolicyDefinitionPagingPage(policyEventsResource, subscriptionId, policyDefinitionName, options, settings);
|
|
370
286
|
},
|
|
371
287
|
};
|
|
372
288
|
}
|
|
373
|
-
listQueryResultsForPolicyDefinitionPagingPage(policyEventsResource, subscriptionId, policyDefinitionName, options, settings) {
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
}
|
|
391
|
-
});
|
|
289
|
+
async *listQueryResultsForPolicyDefinitionPagingPage(policyEventsResource, subscriptionId, policyDefinitionName, options, settings) {
|
|
290
|
+
let result;
|
|
291
|
+
let continuationToken = settings?.continuationToken;
|
|
292
|
+
if (!continuationToken) {
|
|
293
|
+
result = await this._listQueryResultsForPolicyDefinition(policyEventsResource, subscriptionId, policyDefinitionName, options);
|
|
294
|
+
let page = result.value || [];
|
|
295
|
+
continuationToken = result.odataNextLink;
|
|
296
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
297
|
+
yield page;
|
|
298
|
+
}
|
|
299
|
+
while (continuationToken) {
|
|
300
|
+
result = await this._listQueryResultsForPolicyDefinitionNext(policyEventsResource, subscriptionId, policyDefinitionName, continuationToken, options);
|
|
301
|
+
continuationToken = result.odataNextLink;
|
|
302
|
+
let page = result.value || [];
|
|
303
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
304
|
+
yield page;
|
|
305
|
+
}
|
|
392
306
|
}
|
|
393
|
-
listQueryResultsForPolicyDefinitionPagingAll(policyEventsResource, subscriptionId, policyDefinitionName, options) {
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
for (var _d = true, _e = tslib_1.__asyncValues(this.listQueryResultsForPolicyDefinitionPagingPage(policyEventsResource, subscriptionId, policyDefinitionName, options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
398
|
-
_c = _f.value;
|
|
399
|
-
_d = false;
|
|
400
|
-
const page = _c;
|
|
401
|
-
yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
|
|
402
|
-
}
|
|
403
|
-
}
|
|
404
|
-
catch (e_6_1) { e_6 = { error: e_6_1 }; }
|
|
405
|
-
finally {
|
|
406
|
-
try {
|
|
407
|
-
if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
|
|
408
|
-
}
|
|
409
|
-
finally { if (e_6) throw e_6.error; }
|
|
410
|
-
}
|
|
411
|
-
});
|
|
307
|
+
async *listQueryResultsForPolicyDefinitionPagingAll(policyEventsResource, subscriptionId, policyDefinitionName, options) {
|
|
308
|
+
for await (const page of this.listQueryResultsForPolicyDefinitionPagingPage(policyEventsResource, subscriptionId, policyDefinitionName, options)) {
|
|
309
|
+
yield* page;
|
|
310
|
+
}
|
|
412
311
|
}
|
|
413
312
|
/**
|
|
414
313
|
* Queries policy events for the subscription level policy assignment.
|
|
@@ -428,53 +327,36 @@ class PolicyEventsImpl {
|
|
|
428
327
|
return this;
|
|
429
328
|
},
|
|
430
329
|
byPage: (settings) => {
|
|
431
|
-
if (settings
|
|
330
|
+
if (settings?.maxPageSize) {
|
|
432
331
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
433
332
|
}
|
|
434
333
|
return this.listQueryResultsForSubscriptionLevelPolicyAssignmentPagingPage(policyEventsResource, subscriptionId, policyAssignmentName, options, settings);
|
|
435
334
|
},
|
|
436
335
|
};
|
|
437
336
|
}
|
|
438
|
-
listQueryResultsForSubscriptionLevelPolicyAssignmentPagingPage(policyEventsResource, subscriptionId, policyAssignmentName, options, settings) {
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
}
|
|
457
|
-
});
|
|
337
|
+
async *listQueryResultsForSubscriptionLevelPolicyAssignmentPagingPage(policyEventsResource, subscriptionId, policyAssignmentName, options, settings) {
|
|
338
|
+
let result;
|
|
339
|
+
let continuationToken = settings?.continuationToken;
|
|
340
|
+
if (!continuationToken) {
|
|
341
|
+
result = await this._listQueryResultsForSubscriptionLevelPolicyAssignment(policyEventsResource, subscriptionId, policyAssignmentName, options);
|
|
342
|
+
let page = result.value || [];
|
|
343
|
+
continuationToken = result.odataNextLink;
|
|
344
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
345
|
+
yield page;
|
|
346
|
+
}
|
|
347
|
+
while (continuationToken) {
|
|
348
|
+
result =
|
|
349
|
+
await this._listQueryResultsForSubscriptionLevelPolicyAssignmentNext(policyEventsResource, subscriptionId, policyAssignmentName, continuationToken, options);
|
|
350
|
+
continuationToken = result.odataNextLink;
|
|
351
|
+
let page = result.value || [];
|
|
352
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
353
|
+
yield page;
|
|
354
|
+
}
|
|
458
355
|
}
|
|
459
|
-
listQueryResultsForSubscriptionLevelPolicyAssignmentPagingAll(policyEventsResource, subscriptionId, policyAssignmentName, options) {
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
for (var _d = true, _e = tslib_1.__asyncValues(this.listQueryResultsForSubscriptionLevelPolicyAssignmentPagingPage(policyEventsResource, subscriptionId, policyAssignmentName, options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
464
|
-
_c = _f.value;
|
|
465
|
-
_d = false;
|
|
466
|
-
const page = _c;
|
|
467
|
-
yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
|
|
468
|
-
}
|
|
469
|
-
}
|
|
470
|
-
catch (e_7_1) { e_7 = { error: e_7_1 }; }
|
|
471
|
-
finally {
|
|
472
|
-
try {
|
|
473
|
-
if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
|
|
474
|
-
}
|
|
475
|
-
finally { if (e_7) throw e_7.error; }
|
|
476
|
-
}
|
|
477
|
-
});
|
|
356
|
+
async *listQueryResultsForSubscriptionLevelPolicyAssignmentPagingAll(policyEventsResource, subscriptionId, policyAssignmentName, options) {
|
|
357
|
+
for await (const page of this.listQueryResultsForSubscriptionLevelPolicyAssignmentPagingPage(policyEventsResource, subscriptionId, policyAssignmentName, options)) {
|
|
358
|
+
yield* page;
|
|
359
|
+
}
|
|
478
360
|
}
|
|
479
361
|
/**
|
|
480
362
|
* Queries policy events for the resource group level policy assignment.
|
|
@@ -495,54 +377,37 @@ class PolicyEventsImpl {
|
|
|
495
377
|
return this;
|
|
496
378
|
},
|
|
497
379
|
byPage: (settings) => {
|
|
498
|
-
if (settings
|
|
380
|
+
if (settings?.maxPageSize) {
|
|
499
381
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
500
382
|
}
|
|
501
383
|
return this.listQueryResultsForResourceGroupLevelPolicyAssignmentPagingPage(policyEventsResource, subscriptionId, resourceGroupName, policyAssignmentName, options, settings);
|
|
502
384
|
},
|
|
503
385
|
};
|
|
504
386
|
}
|
|
505
|
-
listQueryResultsForResourceGroupLevelPolicyAssignmentPagingPage(policyEventsResource, subscriptionId, resourceGroupName, policyAssignmentName, options, settings) {
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
}
|
|
525
|
-
});
|
|
387
|
+
async *listQueryResultsForResourceGroupLevelPolicyAssignmentPagingPage(policyEventsResource, subscriptionId, resourceGroupName, policyAssignmentName, options, settings) {
|
|
388
|
+
let result;
|
|
389
|
+
let continuationToken = settings?.continuationToken;
|
|
390
|
+
if (!continuationToken) {
|
|
391
|
+
result =
|
|
392
|
+
await this._listQueryResultsForResourceGroupLevelPolicyAssignment(policyEventsResource, subscriptionId, resourceGroupName, policyAssignmentName, options);
|
|
393
|
+
let page = result.value || [];
|
|
394
|
+
continuationToken = result.odataNextLink;
|
|
395
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
396
|
+
yield page;
|
|
397
|
+
}
|
|
398
|
+
while (continuationToken) {
|
|
399
|
+
result =
|
|
400
|
+
await this._listQueryResultsForResourceGroupLevelPolicyAssignmentNext(policyEventsResource, subscriptionId, resourceGroupName, policyAssignmentName, continuationToken, options);
|
|
401
|
+
continuationToken = result.odataNextLink;
|
|
402
|
+
let page = result.value || [];
|
|
403
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
404
|
+
yield page;
|
|
405
|
+
}
|
|
526
406
|
}
|
|
527
|
-
listQueryResultsForResourceGroupLevelPolicyAssignmentPagingAll(policyEventsResource, subscriptionId, resourceGroupName, policyAssignmentName, options) {
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
for (var _d = true, _e = tslib_1.__asyncValues(this.listQueryResultsForResourceGroupLevelPolicyAssignmentPagingPage(policyEventsResource, subscriptionId, resourceGroupName, policyAssignmentName, options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
532
|
-
_c = _f.value;
|
|
533
|
-
_d = false;
|
|
534
|
-
const page = _c;
|
|
535
|
-
yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
|
|
536
|
-
}
|
|
537
|
-
}
|
|
538
|
-
catch (e_8_1) { e_8 = { error: e_8_1 }; }
|
|
539
|
-
finally {
|
|
540
|
-
try {
|
|
541
|
-
if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
|
|
542
|
-
}
|
|
543
|
-
finally { if (e_8) throw e_8.error; }
|
|
544
|
-
}
|
|
545
|
-
});
|
|
407
|
+
async *listQueryResultsForResourceGroupLevelPolicyAssignmentPagingAll(policyEventsResource, subscriptionId, resourceGroupName, policyAssignmentName, options) {
|
|
408
|
+
for await (const page of this.listQueryResultsForResourceGroupLevelPolicyAssignmentPagingPage(policyEventsResource, subscriptionId, resourceGroupName, policyAssignmentName, options)) {
|
|
409
|
+
yield* page;
|
|
410
|
+
}
|
|
546
411
|
}
|
|
547
412
|
/**
|
|
548
413
|
* Queries policy events for the resources under the management group.
|