@azure/arm-resourcesdeploymentstacks 1.0.1-alpha.20250718.1 → 1.0.1-alpha.20250721.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/deploymentStacksClient.js +14 -5
- package/dist/browser/deploymentStacksClient.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 +67 -30
- package/dist/browser/models/mappers.js.map +1 -1
- package/dist/browser/operations/deploymentStacks.js +166 -172
- package/dist/browser/operations/deploymentStacks.js.map +1 -1
- package/dist/browser/pagingHelper.js +2 -4
- package/dist/browser/pagingHelper.js.map +1 -1
- package/dist/commonjs/deploymentStacksClient.js +14 -5
- package/dist/commonjs/deploymentStacksClient.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 +67 -30
- package/dist/commonjs/models/mappers.js.map +1 -1
- package/dist/commonjs/operations/deploymentStacks.js +166 -171
- package/dist/commonjs/operations/deploymentStacks.js.map +1 -1
- package/dist/commonjs/pagingHelper.js +2 -4
- package/dist/commonjs/pagingHelper.js.map +1 -1
- package/dist/esm/deploymentStacksClient.js +14 -5
- package/dist/esm/deploymentStacksClient.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 +67 -30
- package/dist/esm/models/mappers.js.map +1 -1
- package/dist/esm/operations/deploymentStacks.js +166 -172
- package/dist/esm/operations/deploymentStacks.js.map +1 -1
- package/dist/esm/pagingHelper.js +2 -4
- package/dist/esm/pagingHelper.js.map +1 -1
- package/dist/react-native/deploymentStacksClient.js +14 -5
- package/dist/react-native/deploymentStacksClient.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 +67 -30
- package/dist/react-native/models/mappers.js.map +1 -1
- package/dist/react-native/operations/deploymentStacks.js +166 -172
- package/dist/react-native/operations/deploymentStacks.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
|
@@ -18,6 +18,7 @@ const lroImpl_js_1 = require("../lroImpl.js");
|
|
|
18
18
|
/// <reference lib="esnext.asynciterable" />
|
|
19
19
|
/** Class containing DeploymentStacks operations. */
|
|
20
20
|
class DeploymentStacksImpl {
|
|
21
|
+
client;
|
|
21
22
|
/**
|
|
22
23
|
* Initialize a new instance of the class DeploymentStacks class.
|
|
23
24
|
* @param client Reference to the service client
|
|
@@ -40,52 +41,35 @@ class DeploymentStacksImpl {
|
|
|
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.listAtResourceGroupPagingPage(resourceGroupName, options, settings);
|
|
47
48
|
},
|
|
48
49
|
};
|
|
49
50
|
}
|
|
50
|
-
listAtResourceGroupPagingPage(resourceGroupName, options, settings) {
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
}
|
|
68
|
-
});
|
|
51
|
+
async *listAtResourceGroupPagingPage(resourceGroupName, options, settings) {
|
|
52
|
+
let result;
|
|
53
|
+
let continuationToken = settings?.continuationToken;
|
|
54
|
+
if (!continuationToken) {
|
|
55
|
+
result = await this._listAtResourceGroup(resourceGroupName, options);
|
|
56
|
+
let page = result.value || [];
|
|
57
|
+
continuationToken = result.nextLink;
|
|
58
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
59
|
+
yield page;
|
|
60
|
+
}
|
|
61
|
+
while (continuationToken) {
|
|
62
|
+
result = await this._listAtResourceGroupNext(resourceGroupName, continuationToken, options);
|
|
63
|
+
continuationToken = result.nextLink;
|
|
64
|
+
let page = result.value || [];
|
|
65
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
66
|
+
yield page;
|
|
67
|
+
}
|
|
69
68
|
}
|
|
70
|
-
listAtResourceGroupPagingAll(resourceGroupName, options) {
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
for (var _d = true, _e = tslib_1.__asyncValues(this.listAtResourceGroupPagingPage(resourceGroupName, 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 *listAtResourceGroupPagingAll(resourceGroupName, options) {
|
|
70
|
+
for await (const page of this.listAtResourceGroupPagingPage(resourceGroupName, options)) {
|
|
71
|
+
yield* page;
|
|
72
|
+
}
|
|
89
73
|
}
|
|
90
74
|
/**
|
|
91
75
|
* Lists all the Deployment stacks within the specified Subscription.
|
|
@@ -101,52 +85,35 @@ class DeploymentStacksImpl {
|
|
|
101
85
|
return this;
|
|
102
86
|
},
|
|
103
87
|
byPage: (settings) => {
|
|
104
|
-
if (settings
|
|
88
|
+
if (settings?.maxPageSize) {
|
|
105
89
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
106
90
|
}
|
|
107
91
|
return this.listAtSubscriptionPagingPage(options, settings);
|
|
108
92
|
},
|
|
109
93
|
};
|
|
110
94
|
}
|
|
111
|
-
listAtSubscriptionPagingPage(options, settings) {
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
}
|
|
129
|
-
});
|
|
95
|
+
async *listAtSubscriptionPagingPage(options, settings) {
|
|
96
|
+
let result;
|
|
97
|
+
let continuationToken = settings?.continuationToken;
|
|
98
|
+
if (!continuationToken) {
|
|
99
|
+
result = await this._listAtSubscription(options);
|
|
100
|
+
let page = result.value || [];
|
|
101
|
+
continuationToken = result.nextLink;
|
|
102
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
103
|
+
yield page;
|
|
104
|
+
}
|
|
105
|
+
while (continuationToken) {
|
|
106
|
+
result = await this._listAtSubscriptionNext(continuationToken, options);
|
|
107
|
+
continuationToken = result.nextLink;
|
|
108
|
+
let page = result.value || [];
|
|
109
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
110
|
+
yield page;
|
|
111
|
+
}
|
|
130
112
|
}
|
|
131
|
-
listAtSubscriptionPagingAll(options) {
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
for (var _d = true, _e = tslib_1.__asyncValues(this.listAtSubscriptionPagingPage(options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
136
|
-
_c = _f.value;
|
|
137
|
-
_d = false;
|
|
138
|
-
const page = _c;
|
|
139
|
-
yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__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 tslib_1.__await(_b.call(_e));
|
|
146
|
-
}
|
|
147
|
-
finally { if (e_2) throw e_2.error; }
|
|
148
|
-
}
|
|
149
|
-
});
|
|
113
|
+
async *listAtSubscriptionPagingAll(options) {
|
|
114
|
+
for await (const page of this.listAtSubscriptionPagingPage(options)) {
|
|
115
|
+
yield* page;
|
|
116
|
+
}
|
|
150
117
|
}
|
|
151
118
|
/**
|
|
152
119
|
* Lists all the Deployment stacks within the specified Management Group.
|
|
@@ -163,52 +130,35 @@ class DeploymentStacksImpl {
|
|
|
163
130
|
return this;
|
|
164
131
|
},
|
|
165
132
|
byPage: (settings) => {
|
|
166
|
-
if (settings
|
|
133
|
+
if (settings?.maxPageSize) {
|
|
167
134
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
168
135
|
}
|
|
169
136
|
return this.listAtManagementGroupPagingPage(managementGroupId, options, settings);
|
|
170
137
|
},
|
|
171
138
|
};
|
|
172
139
|
}
|
|
173
|
-
listAtManagementGroupPagingPage(managementGroupId, options, settings) {
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
}
|
|
191
|
-
});
|
|
140
|
+
async *listAtManagementGroupPagingPage(managementGroupId, options, settings) {
|
|
141
|
+
let result;
|
|
142
|
+
let continuationToken = settings?.continuationToken;
|
|
143
|
+
if (!continuationToken) {
|
|
144
|
+
result = await this._listAtManagementGroup(managementGroupId, options);
|
|
145
|
+
let page = result.value || [];
|
|
146
|
+
continuationToken = result.nextLink;
|
|
147
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
148
|
+
yield page;
|
|
149
|
+
}
|
|
150
|
+
while (continuationToken) {
|
|
151
|
+
result = await this._listAtManagementGroupNext(managementGroupId, continuationToken, options);
|
|
152
|
+
continuationToken = result.nextLink;
|
|
153
|
+
let page = result.value || [];
|
|
154
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
155
|
+
yield page;
|
|
156
|
+
}
|
|
192
157
|
}
|
|
193
|
-
listAtManagementGroupPagingAll(managementGroupId, options) {
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
for (var _d = true, _e = tslib_1.__asyncValues(this.listAtManagementGroupPagingPage(managementGroupId, options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
198
|
-
_c = _f.value;
|
|
199
|
-
_d = false;
|
|
200
|
-
const page = _c;
|
|
201
|
-
yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
|
|
202
|
-
}
|
|
203
|
-
}
|
|
204
|
-
catch (e_3_1) { e_3 = { error: e_3_1 }; }
|
|
205
|
-
finally {
|
|
206
|
-
try {
|
|
207
|
-
if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
|
|
208
|
-
}
|
|
209
|
-
finally { if (e_3) throw e_3.error; }
|
|
210
|
-
}
|
|
211
|
-
});
|
|
158
|
+
async *listAtManagementGroupPagingAll(managementGroupId, options) {
|
|
159
|
+
for await (const page of this.listAtManagementGroupPagingPage(managementGroupId, options)) {
|
|
160
|
+
yield* page;
|
|
161
|
+
}
|
|
212
162
|
}
|
|
213
163
|
/**
|
|
214
164
|
* Lists all the Deployment stacks within the specified Resource Group.
|
|
@@ -245,14 +195,19 @@ class DeploymentStacksImpl {
|
|
|
245
195
|
return this.client.sendOperationRequest(args, spec);
|
|
246
196
|
};
|
|
247
197
|
const sendOperationFn = async (args, spec) => {
|
|
248
|
-
var _a;
|
|
249
198
|
let currentRawResponse = undefined;
|
|
250
|
-
const providedCallback =
|
|
199
|
+
const providedCallback = args.options?.onResponse;
|
|
251
200
|
const callback = (rawResponse, flatResponse) => {
|
|
252
201
|
currentRawResponse = rawResponse;
|
|
253
|
-
providedCallback
|
|
202
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
203
|
+
};
|
|
204
|
+
const updatedArgs = {
|
|
205
|
+
...args,
|
|
206
|
+
options: {
|
|
207
|
+
...args.options,
|
|
208
|
+
onResponse: callback,
|
|
209
|
+
},
|
|
254
210
|
};
|
|
255
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
256
211
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
257
212
|
return {
|
|
258
213
|
flatResponse,
|
|
@@ -274,8 +229,8 @@ class DeploymentStacksImpl {
|
|
|
274
229
|
spec: createOrUpdateAtResourceGroupOperationSpec,
|
|
275
230
|
});
|
|
276
231
|
const poller = await (0, core_lro_1.createHttpPoller)(lro, {
|
|
277
|
-
restoreFrom: options
|
|
278
|
-
intervalInMs: options
|
|
232
|
+
restoreFrom: options?.resumeFrom,
|
|
233
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
279
234
|
resourceLocationConfig: "azure-async-operation",
|
|
280
235
|
});
|
|
281
236
|
await poller.poll();
|
|
@@ -313,14 +268,19 @@ class DeploymentStacksImpl {
|
|
|
313
268
|
return this.client.sendOperationRequest(args, spec);
|
|
314
269
|
};
|
|
315
270
|
const sendOperationFn = async (args, spec) => {
|
|
316
|
-
var _a;
|
|
317
271
|
let currentRawResponse = undefined;
|
|
318
|
-
const providedCallback =
|
|
272
|
+
const providedCallback = args.options?.onResponse;
|
|
319
273
|
const callback = (rawResponse, flatResponse) => {
|
|
320
274
|
currentRawResponse = rawResponse;
|
|
321
|
-
providedCallback
|
|
275
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
276
|
+
};
|
|
277
|
+
const updatedArgs = {
|
|
278
|
+
...args,
|
|
279
|
+
options: {
|
|
280
|
+
...args.options,
|
|
281
|
+
onResponse: callback,
|
|
282
|
+
},
|
|
322
283
|
};
|
|
323
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
324
284
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
325
285
|
return {
|
|
326
286
|
flatResponse,
|
|
@@ -337,8 +297,8 @@ class DeploymentStacksImpl {
|
|
|
337
297
|
spec: deleteAtResourceGroupOperationSpec,
|
|
338
298
|
});
|
|
339
299
|
const poller = await (0, core_lro_1.createHttpPoller)(lro, {
|
|
340
|
-
restoreFrom: options
|
|
341
|
-
intervalInMs: options
|
|
300
|
+
restoreFrom: options?.resumeFrom,
|
|
301
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
342
302
|
resourceLocationConfig: "location",
|
|
343
303
|
});
|
|
344
304
|
await poller.poll();
|
|
@@ -366,14 +326,19 @@ class DeploymentStacksImpl {
|
|
|
366
326
|
return this.client.sendOperationRequest(args, spec);
|
|
367
327
|
};
|
|
368
328
|
const sendOperationFn = async (args, spec) => {
|
|
369
|
-
var _a;
|
|
370
329
|
let currentRawResponse = undefined;
|
|
371
|
-
const providedCallback =
|
|
330
|
+
const providedCallback = args.options?.onResponse;
|
|
372
331
|
const callback = (rawResponse, flatResponse) => {
|
|
373
332
|
currentRawResponse = rawResponse;
|
|
374
|
-
providedCallback
|
|
333
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
334
|
+
};
|
|
335
|
+
const updatedArgs = {
|
|
336
|
+
...args,
|
|
337
|
+
options: {
|
|
338
|
+
...args.options,
|
|
339
|
+
onResponse: callback,
|
|
340
|
+
},
|
|
375
341
|
};
|
|
376
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
377
342
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
378
343
|
return {
|
|
379
344
|
flatResponse,
|
|
@@ -390,8 +355,8 @@ class DeploymentStacksImpl {
|
|
|
390
355
|
spec: createOrUpdateAtSubscriptionOperationSpec,
|
|
391
356
|
});
|
|
392
357
|
const poller = await (0, core_lro_1.createHttpPoller)(lro, {
|
|
393
|
-
restoreFrom: options
|
|
394
|
-
intervalInMs: options
|
|
358
|
+
restoreFrom: options?.resumeFrom,
|
|
359
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
395
360
|
resourceLocationConfig: "azure-async-operation",
|
|
396
361
|
});
|
|
397
362
|
await poller.poll();
|
|
@@ -426,14 +391,19 @@ class DeploymentStacksImpl {
|
|
|
426
391
|
return this.client.sendOperationRequest(args, spec);
|
|
427
392
|
};
|
|
428
393
|
const sendOperationFn = async (args, spec) => {
|
|
429
|
-
var _a;
|
|
430
394
|
let currentRawResponse = undefined;
|
|
431
|
-
const providedCallback =
|
|
395
|
+
const providedCallback = args.options?.onResponse;
|
|
432
396
|
const callback = (rawResponse, flatResponse) => {
|
|
433
397
|
currentRawResponse = rawResponse;
|
|
434
|
-
providedCallback
|
|
398
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
399
|
+
};
|
|
400
|
+
const updatedArgs = {
|
|
401
|
+
...args,
|
|
402
|
+
options: {
|
|
403
|
+
...args.options,
|
|
404
|
+
onResponse: callback,
|
|
405
|
+
},
|
|
435
406
|
};
|
|
436
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
437
407
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
438
408
|
return {
|
|
439
409
|
flatResponse,
|
|
@@ -450,8 +420,8 @@ class DeploymentStacksImpl {
|
|
|
450
420
|
spec: deleteAtSubscriptionOperationSpec,
|
|
451
421
|
});
|
|
452
422
|
const poller = await (0, core_lro_1.createHttpPoller)(lro, {
|
|
453
|
-
restoreFrom: options
|
|
454
|
-
intervalInMs: options
|
|
423
|
+
restoreFrom: options?.resumeFrom,
|
|
424
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
455
425
|
resourceLocationConfig: "location",
|
|
456
426
|
});
|
|
457
427
|
await poller.poll();
|
|
@@ -479,14 +449,19 @@ class DeploymentStacksImpl {
|
|
|
479
449
|
return this.client.sendOperationRequest(args, spec);
|
|
480
450
|
};
|
|
481
451
|
const sendOperationFn = async (args, spec) => {
|
|
482
|
-
var _a;
|
|
483
452
|
let currentRawResponse = undefined;
|
|
484
|
-
const providedCallback =
|
|
453
|
+
const providedCallback = args.options?.onResponse;
|
|
485
454
|
const callback = (rawResponse, flatResponse) => {
|
|
486
455
|
currentRawResponse = rawResponse;
|
|
487
|
-
providedCallback
|
|
456
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
457
|
+
};
|
|
458
|
+
const updatedArgs = {
|
|
459
|
+
...args,
|
|
460
|
+
options: {
|
|
461
|
+
...args.options,
|
|
462
|
+
onResponse: callback,
|
|
463
|
+
},
|
|
488
464
|
};
|
|
489
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
490
465
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
491
466
|
return {
|
|
492
467
|
flatResponse,
|
|
@@ -508,8 +483,8 @@ class DeploymentStacksImpl {
|
|
|
508
483
|
spec: createOrUpdateAtManagementGroupOperationSpec,
|
|
509
484
|
});
|
|
510
485
|
const poller = await (0, core_lro_1.createHttpPoller)(lro, {
|
|
511
|
-
restoreFrom: options
|
|
512
|
-
intervalInMs: options
|
|
486
|
+
restoreFrom: options?.resumeFrom,
|
|
487
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
513
488
|
resourceLocationConfig: "azure-async-operation",
|
|
514
489
|
});
|
|
515
490
|
await poller.poll();
|
|
@@ -547,14 +522,19 @@ class DeploymentStacksImpl {
|
|
|
547
522
|
return this.client.sendOperationRequest(args, spec);
|
|
548
523
|
};
|
|
549
524
|
const sendOperationFn = async (args, spec) => {
|
|
550
|
-
var _a;
|
|
551
525
|
let currentRawResponse = undefined;
|
|
552
|
-
const providedCallback =
|
|
526
|
+
const providedCallback = args.options?.onResponse;
|
|
553
527
|
const callback = (rawResponse, flatResponse) => {
|
|
554
528
|
currentRawResponse = rawResponse;
|
|
555
|
-
providedCallback
|
|
529
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
530
|
+
};
|
|
531
|
+
const updatedArgs = {
|
|
532
|
+
...args,
|
|
533
|
+
options: {
|
|
534
|
+
...args.options,
|
|
535
|
+
onResponse: callback,
|
|
536
|
+
},
|
|
556
537
|
};
|
|
557
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
558
538
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
559
539
|
return {
|
|
560
540
|
flatResponse,
|
|
@@ -571,8 +551,8 @@ class DeploymentStacksImpl {
|
|
|
571
551
|
spec: deleteAtManagementGroupOperationSpec,
|
|
572
552
|
});
|
|
573
553
|
const poller = await (0, core_lro_1.createHttpPoller)(lro, {
|
|
574
|
-
restoreFrom: options
|
|
575
|
-
intervalInMs: options
|
|
554
|
+
restoreFrom: options?.resumeFrom,
|
|
555
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
576
556
|
resourceLocationConfig: "location",
|
|
577
557
|
});
|
|
578
558
|
await poller.poll();
|
|
@@ -628,14 +608,19 @@ class DeploymentStacksImpl {
|
|
|
628
608
|
return this.client.sendOperationRequest(args, spec);
|
|
629
609
|
};
|
|
630
610
|
const sendOperationFn = async (args, spec) => {
|
|
631
|
-
var _a;
|
|
632
611
|
let currentRawResponse = undefined;
|
|
633
|
-
const providedCallback =
|
|
612
|
+
const providedCallback = args.options?.onResponse;
|
|
634
613
|
const callback = (rawResponse, flatResponse) => {
|
|
635
614
|
currentRawResponse = rawResponse;
|
|
636
|
-
providedCallback
|
|
615
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
616
|
+
};
|
|
617
|
+
const updatedArgs = {
|
|
618
|
+
...args,
|
|
619
|
+
options: {
|
|
620
|
+
...args.options,
|
|
621
|
+
onResponse: callback,
|
|
622
|
+
},
|
|
637
623
|
};
|
|
638
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
639
624
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
640
625
|
return {
|
|
641
626
|
flatResponse,
|
|
@@ -657,8 +642,8 @@ class DeploymentStacksImpl {
|
|
|
657
642
|
spec: validateStackAtResourceGroupOperationSpec,
|
|
658
643
|
});
|
|
659
644
|
const poller = await (0, core_lro_1.createHttpPoller)(lro, {
|
|
660
|
-
restoreFrom: options
|
|
661
|
-
intervalInMs: options
|
|
645
|
+
restoreFrom: options?.resumeFrom,
|
|
646
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
662
647
|
resourceLocationConfig: "location",
|
|
663
648
|
});
|
|
664
649
|
await poller.poll();
|
|
@@ -688,14 +673,19 @@ class DeploymentStacksImpl {
|
|
|
688
673
|
return this.client.sendOperationRequest(args, spec);
|
|
689
674
|
};
|
|
690
675
|
const sendOperationFn = async (args, spec) => {
|
|
691
|
-
var _a;
|
|
692
676
|
let currentRawResponse = undefined;
|
|
693
|
-
const providedCallback =
|
|
677
|
+
const providedCallback = args.options?.onResponse;
|
|
694
678
|
const callback = (rawResponse, flatResponse) => {
|
|
695
679
|
currentRawResponse = rawResponse;
|
|
696
|
-
providedCallback
|
|
680
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
681
|
+
};
|
|
682
|
+
const updatedArgs = {
|
|
683
|
+
...args,
|
|
684
|
+
options: {
|
|
685
|
+
...args.options,
|
|
686
|
+
onResponse: callback,
|
|
687
|
+
},
|
|
697
688
|
};
|
|
698
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
699
689
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
700
690
|
return {
|
|
701
691
|
flatResponse,
|
|
@@ -712,8 +702,8 @@ class DeploymentStacksImpl {
|
|
|
712
702
|
spec: validateStackAtSubscriptionOperationSpec,
|
|
713
703
|
});
|
|
714
704
|
const poller = await (0, core_lro_1.createHttpPoller)(lro, {
|
|
715
|
-
restoreFrom: options
|
|
716
|
-
intervalInMs: options
|
|
705
|
+
restoreFrom: options?.resumeFrom,
|
|
706
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
717
707
|
resourceLocationConfig: "location",
|
|
718
708
|
});
|
|
719
709
|
await poller.poll();
|
|
@@ -743,14 +733,19 @@ class DeploymentStacksImpl {
|
|
|
743
733
|
return this.client.sendOperationRequest(args, spec);
|
|
744
734
|
};
|
|
745
735
|
const sendOperationFn = async (args, spec) => {
|
|
746
|
-
var _a;
|
|
747
736
|
let currentRawResponse = undefined;
|
|
748
|
-
const providedCallback =
|
|
737
|
+
const providedCallback = args.options?.onResponse;
|
|
749
738
|
const callback = (rawResponse, flatResponse) => {
|
|
750
739
|
currentRawResponse = rawResponse;
|
|
751
|
-
providedCallback
|
|
740
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
741
|
+
};
|
|
742
|
+
const updatedArgs = {
|
|
743
|
+
...args,
|
|
744
|
+
options: {
|
|
745
|
+
...args.options,
|
|
746
|
+
onResponse: callback,
|
|
747
|
+
},
|
|
752
748
|
};
|
|
753
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
754
749
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
755
750
|
return {
|
|
756
751
|
flatResponse,
|
|
@@ -772,8 +767,8 @@ class DeploymentStacksImpl {
|
|
|
772
767
|
spec: validateStackAtManagementGroupOperationSpec,
|
|
773
768
|
});
|
|
774
769
|
const poller = await (0, core_lro_1.createHttpPoller)(lro, {
|
|
775
|
-
restoreFrom: options
|
|
776
|
-
intervalInMs: options
|
|
770
|
+
restoreFrom: options?.resumeFrom,
|
|
771
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
777
772
|
resourceLocationConfig: "location",
|
|
778
773
|
});
|
|
779
774
|
await poller.poll();
|