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