@azure/arm-dynatrace 2.0.0-alpha.20250718.1 → 2.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.
Files changed (66) hide show
  1. package/dist/browser/dynatraceObservability.js +17 -5
  2. package/dist/browser/dynatraceObservability.js.map +1 -1
  3. package/dist/browser/lroImpl.js +7 -3
  4. package/dist/browser/lroImpl.js.map +1 -1
  5. package/dist/browser/models/mappers.js +59 -27
  6. package/dist/browser/models/mappers.js.map +1 -1
  7. package/dist/browser/operations/monitors.js +155 -247
  8. package/dist/browser/operations/monitors.js.map +1 -1
  9. package/dist/browser/operations/operations.js +23 -40
  10. package/dist/browser/operations/operations.js.map +1 -1
  11. package/dist/browser/operations/singleSignOn.js +34 -46
  12. package/dist/browser/operations/singleSignOn.js.map +1 -1
  13. package/dist/browser/operations/tagRules.js +45 -52
  14. package/dist/browser/operations/tagRules.js.map +1 -1
  15. package/dist/browser/pagingHelper.js +2 -4
  16. package/dist/browser/pagingHelper.js.map +1 -1
  17. package/dist/commonjs/dynatraceObservability.js +17 -5
  18. package/dist/commonjs/dynatraceObservability.js.map +1 -1
  19. package/dist/commonjs/lroImpl.js +7 -3
  20. package/dist/commonjs/lroImpl.js.map +1 -1
  21. package/dist/commonjs/models/mappers.js +59 -27
  22. package/dist/commonjs/models/mappers.js.map +1 -1
  23. package/dist/commonjs/operations/monitors.js +155 -246
  24. package/dist/commonjs/operations/monitors.js.map +1 -1
  25. package/dist/commonjs/operations/operations.js +23 -39
  26. package/dist/commonjs/operations/operations.js.map +1 -1
  27. package/dist/commonjs/operations/singleSignOn.js +34 -45
  28. package/dist/commonjs/operations/singleSignOn.js.map +1 -1
  29. package/dist/commonjs/operations/tagRules.js +45 -51
  30. package/dist/commonjs/operations/tagRules.js.map +1 -1
  31. package/dist/commonjs/pagingHelper.js +2 -4
  32. package/dist/commonjs/pagingHelper.js.map +1 -1
  33. package/dist/commonjs/tsdoc-metadata.json +1 -1
  34. package/dist/esm/dynatraceObservability.js +17 -5
  35. package/dist/esm/dynatraceObservability.js.map +1 -1
  36. package/dist/esm/lroImpl.js +7 -3
  37. package/dist/esm/lroImpl.js.map +1 -1
  38. package/dist/esm/models/mappers.js +59 -27
  39. package/dist/esm/models/mappers.js.map +1 -1
  40. package/dist/esm/operations/monitors.js +155 -247
  41. package/dist/esm/operations/monitors.js.map +1 -1
  42. package/dist/esm/operations/operations.js +23 -40
  43. package/dist/esm/operations/operations.js.map +1 -1
  44. package/dist/esm/operations/singleSignOn.js +34 -46
  45. package/dist/esm/operations/singleSignOn.js.map +1 -1
  46. package/dist/esm/operations/tagRules.js +45 -52
  47. package/dist/esm/operations/tagRules.js.map +1 -1
  48. package/dist/esm/pagingHelper.js +2 -4
  49. package/dist/esm/pagingHelper.js.map +1 -1
  50. package/dist/react-native/dynatraceObservability.js +17 -5
  51. package/dist/react-native/dynatraceObservability.js.map +1 -1
  52. package/dist/react-native/lroImpl.js +7 -3
  53. package/dist/react-native/lroImpl.js.map +1 -1
  54. package/dist/react-native/models/mappers.js +59 -27
  55. package/dist/react-native/models/mappers.js.map +1 -1
  56. package/dist/react-native/operations/monitors.js +155 -247
  57. package/dist/react-native/operations/monitors.js.map +1 -1
  58. package/dist/react-native/operations/operations.js +23 -40
  59. package/dist/react-native/operations/operations.js.map +1 -1
  60. package/dist/react-native/operations/singleSignOn.js +34 -46
  61. package/dist/react-native/operations/singleSignOn.js.map +1 -1
  62. package/dist/react-native/operations/tagRules.js +45 -52
  63. package/dist/react-native/operations/tagRules.js.map +1 -1
  64. package/dist/react-native/pagingHelper.js +2 -4
  65. package/dist/react-native/pagingHelper.js.map +1 -1
  66. package/package.json +2 -2
@@ -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";
@@ -15,6 +14,7 @@ import { createLroSpec } from "../lroImpl.js";
15
14
  /// <reference lib="esnext.asynciterable" />
16
15
  /** Class containing Monitors operations. */
17
16
  export class MonitorsImpl {
17
+ client;
18
18
  /**
19
19
  * Initialize a new instance of the class Monitors class.
20
20
  * @param client Reference to the service client
@@ -38,52 +38,35 @@ export class MonitorsImpl {
38
38
  return this;
39
39
  },
40
40
  byPage: (settings) => {
41
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
41
+ if (settings?.maxPageSize) {
42
42
  throw new Error("maxPageSize is not supported by this operation.");
43
43
  }
44
44
  return this.listMonitoredResourcesPagingPage(resourceGroupName, monitorName, options, settings);
45
45
  }
46
46
  };
47
47
  }
48
- listMonitoredResourcesPagingPage(resourceGroupName, monitorName, options, settings) {
49
- return __asyncGenerator(this, arguments, function* listMonitoredResourcesPagingPage_1() {
50
- let result;
51
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
52
- if (!continuationToken) {
53
- result = yield __await(this._listMonitoredResources(resourceGroupName, monitorName, options));
54
- let page = result.value || [];
55
- continuationToken = result.nextLink;
56
- setContinuationToken(page, continuationToken);
57
- yield yield __await(page);
58
- }
59
- while (continuationToken) {
60
- result = yield __await(this._listMonitoredResourcesNext(resourceGroupName, monitorName, continuationToken, options));
61
- continuationToken = result.nextLink;
62
- let page = result.value || [];
63
- setContinuationToken(page, continuationToken);
64
- yield yield __await(page);
65
- }
66
- });
48
+ async *listMonitoredResourcesPagingPage(resourceGroupName, monitorName, options, settings) {
49
+ let result;
50
+ let continuationToken = settings?.continuationToken;
51
+ if (!continuationToken) {
52
+ result = await this._listMonitoredResources(resourceGroupName, monitorName, options);
53
+ let page = result.value || [];
54
+ continuationToken = result.nextLink;
55
+ setContinuationToken(page, continuationToken);
56
+ yield page;
57
+ }
58
+ while (continuationToken) {
59
+ result = await this._listMonitoredResourcesNext(resourceGroupName, monitorName, continuationToken, options);
60
+ continuationToken = result.nextLink;
61
+ let page = result.value || [];
62
+ setContinuationToken(page, continuationToken);
63
+ yield page;
64
+ }
67
65
  }
68
- listMonitoredResourcesPagingAll(resourceGroupName, monitorName, options) {
69
- return __asyncGenerator(this, arguments, function* listMonitoredResourcesPagingAll_1() {
70
- var _a, e_1, _b, _c;
71
- try {
72
- for (var _d = true, _e = __asyncValues(this.listMonitoredResourcesPagingPage(resourceGroupName, monitorName, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
73
- _c = _f.value;
74
- _d = false;
75
- const page = _c;
76
- yield __await(yield* __asyncDelegator(__asyncValues(page)));
77
- }
78
- }
79
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
80
- finally {
81
- try {
82
- if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
83
- }
84
- finally { if (e_1) throw e_1.error; }
85
- }
86
- });
66
+ async *listMonitoredResourcesPagingAll(resourceGroupName, monitorName, options) {
67
+ for await (const page of this.listMonitoredResourcesPagingPage(resourceGroupName, monitorName, options)) {
68
+ yield* page;
69
+ }
87
70
  }
88
71
  /**
89
72
  * List all MonitorResource by subscriptionId
@@ -99,52 +82,35 @@ export class MonitorsImpl {
99
82
  return this;
100
83
  },
101
84
  byPage: (settings) => {
102
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
85
+ if (settings?.maxPageSize) {
103
86
  throw new Error("maxPageSize is not supported by this operation.");
104
87
  }
105
88
  return this.listBySubscriptionIdPagingPage(options, settings);
106
89
  }
107
90
  };
108
91
  }
109
- listBySubscriptionIdPagingPage(options, settings) {
110
- return __asyncGenerator(this, arguments, function* listBySubscriptionIdPagingPage_1() {
111
- let result;
112
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
113
- if (!continuationToken) {
114
- result = yield __await(this._listBySubscriptionId(options));
115
- let page = result.value || [];
116
- continuationToken = result.nextLink;
117
- setContinuationToken(page, continuationToken);
118
- yield yield __await(page);
119
- }
120
- while (continuationToken) {
121
- result = yield __await(this._listBySubscriptionIdNext(continuationToken, options));
122
- continuationToken = result.nextLink;
123
- let page = result.value || [];
124
- setContinuationToken(page, continuationToken);
125
- yield yield __await(page);
126
- }
127
- });
92
+ async *listBySubscriptionIdPagingPage(options, settings) {
93
+ let result;
94
+ let continuationToken = settings?.continuationToken;
95
+ if (!continuationToken) {
96
+ result = await this._listBySubscriptionId(options);
97
+ let page = result.value || [];
98
+ continuationToken = result.nextLink;
99
+ setContinuationToken(page, continuationToken);
100
+ yield page;
101
+ }
102
+ while (continuationToken) {
103
+ result = await this._listBySubscriptionIdNext(continuationToken, options);
104
+ continuationToken = result.nextLink;
105
+ let page = result.value || [];
106
+ setContinuationToken(page, continuationToken);
107
+ yield page;
108
+ }
128
109
  }
129
- listBySubscriptionIdPagingAll(options) {
130
- return __asyncGenerator(this, arguments, function* listBySubscriptionIdPagingAll_1() {
131
- var _a, e_2, _b, _c;
132
- try {
133
- for (var _d = true, _e = __asyncValues(this.listBySubscriptionIdPagingPage(options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
134
- _c = _f.value;
135
- _d = false;
136
- const page = _c;
137
- yield __await(yield* __asyncDelegator(__asyncValues(page)));
138
- }
139
- }
140
- catch (e_2_1) { e_2 = { error: e_2_1 }; }
141
- finally {
142
- try {
143
- if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
144
- }
145
- finally { if (e_2) throw e_2.error; }
146
- }
147
- });
110
+ async *listBySubscriptionIdPagingAll(options) {
111
+ for await (const page of this.listBySubscriptionIdPagingPage(options)) {
112
+ yield* page;
113
+ }
148
114
  }
149
115
  /**
150
116
  * List MonitorResource resources by resource group
@@ -161,52 +127,35 @@ export class MonitorsImpl {
161
127
  return this;
162
128
  },
163
129
  byPage: (settings) => {
164
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
130
+ if (settings?.maxPageSize) {
165
131
  throw new Error("maxPageSize is not supported by this operation.");
166
132
  }
167
133
  return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
168
134
  }
169
135
  };
170
136
  }
171
- listByResourceGroupPagingPage(resourceGroupName, options, settings) {
172
- return __asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
173
- let result;
174
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
175
- if (!continuationToken) {
176
- result = yield __await(this._listByResourceGroup(resourceGroupName, options));
177
- let page = result.value || [];
178
- continuationToken = result.nextLink;
179
- setContinuationToken(page, continuationToken);
180
- yield yield __await(page);
181
- }
182
- while (continuationToken) {
183
- result = yield __await(this._listByResourceGroupNext(resourceGroupName, continuationToken, options));
184
- continuationToken = result.nextLink;
185
- let page = result.value || [];
186
- setContinuationToken(page, continuationToken);
187
- yield yield __await(page);
188
- }
189
- });
137
+ async *listByResourceGroupPagingPage(resourceGroupName, options, settings) {
138
+ let result;
139
+ let continuationToken = settings?.continuationToken;
140
+ if (!continuationToken) {
141
+ result = await this._listByResourceGroup(resourceGroupName, options);
142
+ let page = result.value || [];
143
+ continuationToken = result.nextLink;
144
+ setContinuationToken(page, continuationToken);
145
+ yield page;
146
+ }
147
+ while (continuationToken) {
148
+ result = await this._listByResourceGroupNext(resourceGroupName, continuationToken, options);
149
+ continuationToken = result.nextLink;
150
+ let page = result.value || [];
151
+ setContinuationToken(page, continuationToken);
152
+ yield page;
153
+ }
190
154
  }
191
- listByResourceGroupPagingAll(resourceGroupName, options) {
192
- return __asyncGenerator(this, arguments, function* listByResourceGroupPagingAll_1() {
193
- var _a, e_3, _b, _c;
194
- try {
195
- for (var _d = true, _e = __asyncValues(this.listByResourceGroupPagingPage(resourceGroupName, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
196
- _c = _f.value;
197
- _d = false;
198
- const page = _c;
199
- yield __await(yield* __asyncDelegator(__asyncValues(page)));
200
- }
201
- }
202
- catch (e_3_1) { e_3 = { error: e_3_1 }; }
203
- finally {
204
- try {
205
- if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
206
- }
207
- finally { if (e_3) throw e_3.error; }
208
- }
209
- });
155
+ async *listByResourceGroupPagingAll(resourceGroupName, options) {
156
+ for await (const page of this.listByResourceGroupPagingPage(resourceGroupName, options)) {
157
+ yield* page;
158
+ }
210
159
  }
211
160
  /**
212
161
  * List the VM/VMSS resources currently being monitored by the Dynatrace resource.
@@ -224,52 +173,35 @@ export class MonitorsImpl {
224
173
  return this;
225
174
  },
226
175
  byPage: (settings) => {
227
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
176
+ if (settings?.maxPageSize) {
228
177
  throw new Error("maxPageSize is not supported by this operation.");
229
178
  }
230
179
  return this.listHostsPagingPage(resourceGroupName, monitorName, options, settings);
231
180
  }
232
181
  };
233
182
  }
234
- listHostsPagingPage(resourceGroupName, monitorName, options, settings) {
235
- return __asyncGenerator(this, arguments, function* listHostsPagingPage_1() {
236
- let result;
237
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
238
- if (!continuationToken) {
239
- result = yield __await(this._listHosts(resourceGroupName, monitorName, options));
240
- let page = result.value || [];
241
- continuationToken = result.nextLink;
242
- setContinuationToken(page, continuationToken);
243
- yield yield __await(page);
244
- }
245
- while (continuationToken) {
246
- result = yield __await(this._listHostsNext(resourceGroupName, monitorName, continuationToken, options));
247
- continuationToken = result.nextLink;
248
- let page = result.value || [];
249
- setContinuationToken(page, continuationToken);
250
- yield yield __await(page);
251
- }
252
- });
183
+ async *listHostsPagingPage(resourceGroupName, monitorName, options, settings) {
184
+ let result;
185
+ let continuationToken = settings?.continuationToken;
186
+ if (!continuationToken) {
187
+ result = await this._listHosts(resourceGroupName, monitorName, options);
188
+ let page = result.value || [];
189
+ continuationToken = result.nextLink;
190
+ setContinuationToken(page, continuationToken);
191
+ yield page;
192
+ }
193
+ while (continuationToken) {
194
+ result = await this._listHostsNext(resourceGroupName, monitorName, continuationToken, options);
195
+ continuationToken = result.nextLink;
196
+ let page = result.value || [];
197
+ setContinuationToken(page, continuationToken);
198
+ yield page;
199
+ }
253
200
  }
254
- listHostsPagingAll(resourceGroupName, monitorName, options) {
255
- return __asyncGenerator(this, arguments, function* listHostsPagingAll_1() {
256
- var _a, e_4, _b, _c;
257
- try {
258
- for (var _d = true, _e = __asyncValues(this.listHostsPagingPage(resourceGroupName, monitorName, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
259
- _c = _f.value;
260
- _d = false;
261
- const page = _c;
262
- yield __await(yield* __asyncDelegator(__asyncValues(page)));
263
- }
264
- }
265
- catch (e_4_1) { e_4 = { error: e_4_1 }; }
266
- finally {
267
- try {
268
- if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
269
- }
270
- finally { if (e_4) throw e_4.error; }
271
- }
272
- });
201
+ async *listHostsPagingAll(resourceGroupName, monitorName, options) {
202
+ for await (const page of this.listHostsPagingPage(resourceGroupName, monitorName, options)) {
203
+ yield* page;
204
+ }
273
205
  }
274
206
  /**
275
207
  * Gets list of App Services with Dynatrace PaaS OneAgent enabled
@@ -287,52 +219,35 @@ export class MonitorsImpl {
287
219
  return this;
288
220
  },
289
221
  byPage: (settings) => {
290
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
222
+ if (settings?.maxPageSize) {
291
223
  throw new Error("maxPageSize is not supported by this operation.");
292
224
  }
293
225
  return this.listAppServicesPagingPage(resourceGroupName, monitorName, options, settings);
294
226
  }
295
227
  };
296
228
  }
297
- listAppServicesPagingPage(resourceGroupName, monitorName, options, settings) {
298
- return __asyncGenerator(this, arguments, function* listAppServicesPagingPage_1() {
299
- let result;
300
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
301
- if (!continuationToken) {
302
- result = yield __await(this._listAppServices(resourceGroupName, monitorName, options));
303
- let page = result.value || [];
304
- continuationToken = result.nextLink;
305
- setContinuationToken(page, continuationToken);
306
- yield yield __await(page);
307
- }
308
- while (continuationToken) {
309
- result = yield __await(this._listAppServicesNext(resourceGroupName, monitorName, continuationToken, options));
310
- continuationToken = result.nextLink;
311
- let page = result.value || [];
312
- setContinuationToken(page, continuationToken);
313
- yield yield __await(page);
314
- }
315
- });
229
+ async *listAppServicesPagingPage(resourceGroupName, monitorName, options, settings) {
230
+ let result;
231
+ let continuationToken = settings?.continuationToken;
232
+ if (!continuationToken) {
233
+ result = await this._listAppServices(resourceGroupName, monitorName, options);
234
+ let page = result.value || [];
235
+ continuationToken = result.nextLink;
236
+ setContinuationToken(page, continuationToken);
237
+ yield page;
238
+ }
239
+ while (continuationToken) {
240
+ result = await this._listAppServicesNext(resourceGroupName, monitorName, continuationToken, options);
241
+ continuationToken = result.nextLink;
242
+ let page = result.value || [];
243
+ setContinuationToken(page, continuationToken);
244
+ yield page;
245
+ }
316
246
  }
317
- listAppServicesPagingAll(resourceGroupName, monitorName, options) {
318
- return __asyncGenerator(this, arguments, function* listAppServicesPagingAll_1() {
319
- var _a, e_5, _b, _c;
320
- try {
321
- for (var _d = true, _e = __asyncValues(this.listAppServicesPagingPage(resourceGroupName, monitorName, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
322
- _c = _f.value;
323
- _d = false;
324
- const page = _c;
325
- yield __await(yield* __asyncDelegator(__asyncValues(page)));
326
- }
327
- }
328
- catch (e_5_1) { e_5 = { error: e_5_1 }; }
329
- finally {
330
- try {
331
- if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
332
- }
333
- finally { if (e_5) throw e_5.error; }
334
- }
335
- });
247
+ async *listAppServicesPagingAll(resourceGroupName, monitorName, options) {
248
+ for await (const page of this.listAppServicesPagingPage(resourceGroupName, monitorName, options)) {
249
+ yield* page;
250
+ }
336
251
  }
337
252
  /**
338
253
  * Gets all the Dynatrace environments that a user can link a azure resource to
@@ -351,52 +266,35 @@ export class MonitorsImpl {
351
266
  return this;
352
267
  },
353
268
  byPage: (settings) => {
354
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
269
+ if (settings?.maxPageSize) {
355
270
  throw new Error("maxPageSize is not supported by this operation.");
356
271
  }
357
272
  return this.listLinkableEnvironmentsPagingPage(resourceGroupName, monitorName, request, options, settings);
358
273
  }
359
274
  };
360
275
  }
361
- listLinkableEnvironmentsPagingPage(resourceGroupName, monitorName, request, options, settings) {
362
- return __asyncGenerator(this, arguments, function* listLinkableEnvironmentsPagingPage_1() {
363
- let result;
364
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
365
- if (!continuationToken) {
366
- result = yield __await(this._listLinkableEnvironments(resourceGroupName, monitorName, request, options));
367
- let page = result.value || [];
368
- continuationToken = result.nextLink;
369
- setContinuationToken(page, continuationToken);
370
- yield yield __await(page);
371
- }
372
- while (continuationToken) {
373
- result = yield __await(this._listLinkableEnvironmentsNext(resourceGroupName, monitorName, request, continuationToken, options));
374
- continuationToken = result.nextLink;
375
- let page = result.value || [];
376
- setContinuationToken(page, continuationToken);
377
- yield yield __await(page);
378
- }
379
- });
276
+ async *listLinkableEnvironmentsPagingPage(resourceGroupName, monitorName, request, options, settings) {
277
+ let result;
278
+ let continuationToken = settings?.continuationToken;
279
+ if (!continuationToken) {
280
+ result = await this._listLinkableEnvironments(resourceGroupName, monitorName, request, options);
281
+ let page = result.value || [];
282
+ continuationToken = result.nextLink;
283
+ setContinuationToken(page, continuationToken);
284
+ yield page;
285
+ }
286
+ while (continuationToken) {
287
+ result = await this._listLinkableEnvironmentsNext(resourceGroupName, monitorName, request, continuationToken, options);
288
+ continuationToken = result.nextLink;
289
+ let page = result.value || [];
290
+ setContinuationToken(page, continuationToken);
291
+ yield page;
292
+ }
380
293
  }
381
- listLinkableEnvironmentsPagingAll(resourceGroupName, monitorName, request, options) {
382
- return __asyncGenerator(this, arguments, function* listLinkableEnvironmentsPagingAll_1() {
383
- var _a, e_6, _b, _c;
384
- try {
385
- for (var _d = true, _e = __asyncValues(this.listLinkableEnvironmentsPagingPage(resourceGroupName, monitorName, request, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
386
- _c = _f.value;
387
- _d = false;
388
- const page = _c;
389
- yield __await(yield* __asyncDelegator(__asyncValues(page)));
390
- }
391
- }
392
- catch (e_6_1) { e_6 = { error: e_6_1 }; }
393
- finally {
394
- try {
395
- if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
396
- }
397
- finally { if (e_6) throw e_6.error; }
398
- }
399
- });
294
+ async *listLinkableEnvironmentsPagingAll(resourceGroupName, monitorName, request, options) {
295
+ for await (const page of this.listLinkableEnvironmentsPagingPage(resourceGroupName, monitorName, request, options)) {
296
+ yield* page;
297
+ }
400
298
  }
401
299
  /**
402
300
  * List the resources currently being monitored by the Dynatrace monitor resource.
@@ -438,14 +336,19 @@ export class MonitorsImpl {
438
336
  return this.client.sendOperationRequest(args, spec);
439
337
  };
440
338
  const sendOperationFn = async (args, spec) => {
441
- var _a;
442
339
  let currentRawResponse = undefined;
443
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
340
+ const providedCallback = args.options?.onResponse;
444
341
  const callback = (rawResponse, flatResponse) => {
445
342
  currentRawResponse = rawResponse;
446
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
343
+ providedCallback?.(rawResponse, flatResponse);
344
+ };
345
+ const updatedArgs = {
346
+ ...args,
347
+ options: {
348
+ ...args.options,
349
+ onResponse: callback
350
+ }
447
351
  };
448
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
449
352
  const flatResponse = await directSendOperation(updatedArgs, spec);
450
353
  return {
451
354
  flatResponse,
@@ -462,8 +365,8 @@ export class MonitorsImpl {
462
365
  spec: createOrUpdateOperationSpec
463
366
  });
464
367
  const poller = await createHttpPoller(lro, {
465
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
466
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
368
+ restoreFrom: options?.resumeFrom,
369
+ intervalInMs: options?.updateIntervalInMs,
467
370
  resourceLocationConfig: "azure-async-operation"
468
371
  });
469
372
  await poller.poll();
@@ -501,14 +404,19 @@ export class MonitorsImpl {
501
404
  return this.client.sendOperationRequest(args, spec);
502
405
  };
503
406
  const sendOperationFn = async (args, spec) => {
504
- var _a;
505
407
  let currentRawResponse = undefined;
506
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
408
+ const providedCallback = args.options?.onResponse;
507
409
  const callback = (rawResponse, flatResponse) => {
508
410
  currentRawResponse = rawResponse;
509
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
411
+ providedCallback?.(rawResponse, flatResponse);
412
+ };
413
+ const updatedArgs = {
414
+ ...args,
415
+ options: {
416
+ ...args.options,
417
+ onResponse: callback
418
+ }
510
419
  };
511
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
512
420
  const flatResponse = await directSendOperation(updatedArgs, spec);
513
421
  return {
514
422
  flatResponse,
@@ -525,8 +433,8 @@ export class MonitorsImpl {
525
433
  spec: deleteOperationSpec
526
434
  });
527
435
  const poller = await createHttpPoller(lro, {
528
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
529
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
436
+ restoreFrom: options?.resumeFrom,
437
+ intervalInMs: options?.updateIntervalInMs,
530
438
  resourceLocationConfig: "azure-async-operation"
531
439
  });
532
440
  await poller.poll();