@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.
- package/dist/browser/dynatraceObservability.js +17 -5
- package/dist/browser/dynatraceObservability.js.map +1 -1
- package/dist/browser/lroImpl.js +7 -3
- package/dist/browser/lroImpl.js.map +1 -1
- package/dist/browser/models/mappers.js +59 -27
- package/dist/browser/models/mappers.js.map +1 -1
- package/dist/browser/operations/monitors.js +155 -247
- package/dist/browser/operations/monitors.js.map +1 -1
- package/dist/browser/operations/operations.js +23 -40
- package/dist/browser/operations/operations.js.map +1 -1
- package/dist/browser/operations/singleSignOn.js +34 -46
- package/dist/browser/operations/singleSignOn.js.map +1 -1
- package/dist/browser/operations/tagRules.js +45 -52
- package/dist/browser/operations/tagRules.js.map +1 -1
- package/dist/browser/pagingHelper.js +2 -4
- package/dist/browser/pagingHelper.js.map +1 -1
- package/dist/commonjs/dynatraceObservability.js +17 -5
- package/dist/commonjs/dynatraceObservability.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 +59 -27
- package/dist/commonjs/models/mappers.js.map +1 -1
- package/dist/commonjs/operations/monitors.js +155 -246
- package/dist/commonjs/operations/monitors.js.map +1 -1
- package/dist/commonjs/operations/operations.js +23 -39
- package/dist/commonjs/operations/operations.js.map +1 -1
- package/dist/commonjs/operations/singleSignOn.js +34 -45
- package/dist/commonjs/operations/singleSignOn.js.map +1 -1
- package/dist/commonjs/operations/tagRules.js +45 -51
- package/dist/commonjs/operations/tagRules.js.map +1 -1
- package/dist/commonjs/pagingHelper.js +2 -4
- package/dist/commonjs/pagingHelper.js.map +1 -1
- package/dist/commonjs/tsdoc-metadata.json +1 -1
- package/dist/esm/dynatraceObservability.js +17 -5
- package/dist/esm/dynatraceObservability.js.map +1 -1
- package/dist/esm/lroImpl.js +7 -3
- package/dist/esm/lroImpl.js.map +1 -1
- package/dist/esm/models/mappers.js +59 -27
- package/dist/esm/models/mappers.js.map +1 -1
- package/dist/esm/operations/monitors.js +155 -247
- package/dist/esm/operations/monitors.js.map +1 -1
- package/dist/esm/operations/operations.js +23 -40
- package/dist/esm/operations/operations.js.map +1 -1
- package/dist/esm/operations/singleSignOn.js +34 -46
- package/dist/esm/operations/singleSignOn.js.map +1 -1
- package/dist/esm/operations/tagRules.js +45 -52
- package/dist/esm/operations/tagRules.js.map +1 -1
- package/dist/esm/pagingHelper.js +2 -4
- package/dist/esm/pagingHelper.js.map +1 -1
- package/dist/react-native/dynatraceObservability.js +17 -5
- package/dist/react-native/dynatraceObservability.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 +59 -27
- package/dist/react-native/models/mappers.js.map +1 -1
- package/dist/react-native/operations/monitors.js +155 -247
- package/dist/react-native/operations/monitors.js.map +1 -1
- package/dist/react-native/operations/operations.js +23 -40
- package/dist/react-native/operations/operations.js.map +1 -1
- package/dist/react-native/operations/singleSignOn.js +34 -46
- package/dist/react-native/operations/singleSignOn.js.map +1 -1
- package/dist/react-native/operations/tagRules.js +45 -52
- package/dist/react-native/operations/tagRules.js.map +1 -1
- package/dist/react-native/pagingHelper.js +2 -4
- package/dist/react-native/pagingHelper.js.map +1 -1
- 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
|
|
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
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
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
|
-
|
|
70
|
-
|
|
71
|
-
|
|
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
|
|
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
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
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
|
-
|
|
131
|
-
|
|
132
|
-
|
|
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
|
|
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
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
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
|
-
|
|
193
|
-
|
|
194
|
-
|
|
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
|
|
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
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
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
|
-
|
|
256
|
-
|
|
257
|
-
|
|
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
|
|
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
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
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
|
-
|
|
319
|
-
|
|
320
|
-
|
|
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
|
|
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
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
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
|
-
|
|
383
|
-
|
|
384
|
-
|
|
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 =
|
|
340
|
+
const providedCallback = args.options?.onResponse;
|
|
444
341
|
const callback = (rawResponse, flatResponse) => {
|
|
445
342
|
currentRawResponse = rawResponse;
|
|
446
|
-
providedCallback
|
|
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
|
|
466
|
-
intervalInMs: options
|
|
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 =
|
|
408
|
+
const providedCallback = args.options?.onResponse;
|
|
507
409
|
const callback = (rawResponse, flatResponse) => {
|
|
508
410
|
currentRawResponse = rawResponse;
|
|
509
|
-
providedCallback
|
|
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
|
|
529
|
-
intervalInMs: options
|
|
436
|
+
restoreFrom: options?.resumeFrom,
|
|
437
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
530
438
|
resourceLocationConfig: "azure-async-operation"
|
|
531
439
|
});
|
|
532
440
|
await poller.poll();
|