@azure/arm-resourcesdeploymentstacks 1.0.1-alpha.20250718.1 → 1.0.1-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/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/commonjs/tsdoc-metadata.json +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
|
@@ -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 DeploymentStacks operations. */
|
|
17
16
|
export class DeploymentStacksImpl {
|
|
17
|
+
client;
|
|
18
18
|
/**
|
|
19
19
|
* Initialize a new instance of the class DeploymentStacks class.
|
|
20
20
|
* @param client Reference to the service client
|
|
@@ -37,52 +37,35 @@ export class DeploymentStacksImpl {
|
|
|
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.listAtResourceGroupPagingPage(resourceGroupName, options, settings);
|
|
44
44
|
},
|
|
45
45
|
};
|
|
46
46
|
}
|
|
47
|
-
listAtResourceGroupPagingPage(resourceGroupName, options, settings) {
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
}
|
|
65
|
-
});
|
|
47
|
+
async *listAtResourceGroupPagingPage(resourceGroupName, options, settings) {
|
|
48
|
+
let result;
|
|
49
|
+
let continuationToken = settings?.continuationToken;
|
|
50
|
+
if (!continuationToken) {
|
|
51
|
+
result = await this._listAtResourceGroup(resourceGroupName, options);
|
|
52
|
+
let page = result.value || [];
|
|
53
|
+
continuationToken = result.nextLink;
|
|
54
|
+
setContinuationToken(page, continuationToken);
|
|
55
|
+
yield page;
|
|
56
|
+
}
|
|
57
|
+
while (continuationToken) {
|
|
58
|
+
result = await this._listAtResourceGroupNext(resourceGroupName, continuationToken, options);
|
|
59
|
+
continuationToken = result.nextLink;
|
|
60
|
+
let page = result.value || [];
|
|
61
|
+
setContinuationToken(page, continuationToken);
|
|
62
|
+
yield page;
|
|
63
|
+
}
|
|
66
64
|
}
|
|
67
|
-
listAtResourceGroupPagingAll(resourceGroupName, options) {
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
for (var _d = true, _e = __asyncValues(this.listAtResourceGroupPagingPage(resourceGroupName, 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 *listAtResourceGroupPagingAll(resourceGroupName, options) {
|
|
66
|
+
for await (const page of this.listAtResourceGroupPagingPage(resourceGroupName, options)) {
|
|
67
|
+
yield* page;
|
|
68
|
+
}
|
|
86
69
|
}
|
|
87
70
|
/**
|
|
88
71
|
* Lists all the Deployment stacks within the specified Subscription.
|
|
@@ -98,52 +81,35 @@ export class DeploymentStacksImpl {
|
|
|
98
81
|
return this;
|
|
99
82
|
},
|
|
100
83
|
byPage: (settings) => {
|
|
101
|
-
if (settings
|
|
84
|
+
if (settings?.maxPageSize) {
|
|
102
85
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
103
86
|
}
|
|
104
87
|
return this.listAtSubscriptionPagingPage(options, settings);
|
|
105
88
|
},
|
|
106
89
|
};
|
|
107
90
|
}
|
|
108
|
-
listAtSubscriptionPagingPage(options, settings) {
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
}
|
|
126
|
-
});
|
|
91
|
+
async *listAtSubscriptionPagingPage(options, settings) {
|
|
92
|
+
let result;
|
|
93
|
+
let continuationToken = settings?.continuationToken;
|
|
94
|
+
if (!continuationToken) {
|
|
95
|
+
result = await this._listAtSubscription(options);
|
|
96
|
+
let page = result.value || [];
|
|
97
|
+
continuationToken = result.nextLink;
|
|
98
|
+
setContinuationToken(page, continuationToken);
|
|
99
|
+
yield page;
|
|
100
|
+
}
|
|
101
|
+
while (continuationToken) {
|
|
102
|
+
result = await this._listAtSubscriptionNext(continuationToken, options);
|
|
103
|
+
continuationToken = result.nextLink;
|
|
104
|
+
let page = result.value || [];
|
|
105
|
+
setContinuationToken(page, continuationToken);
|
|
106
|
+
yield page;
|
|
107
|
+
}
|
|
127
108
|
}
|
|
128
|
-
listAtSubscriptionPagingAll(options) {
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
for (var _d = true, _e = __asyncValues(this.listAtSubscriptionPagingPage(options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
133
|
-
_c = _f.value;
|
|
134
|
-
_d = false;
|
|
135
|
-
const page = _c;
|
|
136
|
-
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
137
|
-
}
|
|
138
|
-
}
|
|
139
|
-
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
140
|
-
finally {
|
|
141
|
-
try {
|
|
142
|
-
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
|
143
|
-
}
|
|
144
|
-
finally { if (e_2) throw e_2.error; }
|
|
145
|
-
}
|
|
146
|
-
});
|
|
109
|
+
async *listAtSubscriptionPagingAll(options) {
|
|
110
|
+
for await (const page of this.listAtSubscriptionPagingPage(options)) {
|
|
111
|
+
yield* page;
|
|
112
|
+
}
|
|
147
113
|
}
|
|
148
114
|
/**
|
|
149
115
|
* Lists all the Deployment stacks within the specified Management Group.
|
|
@@ -160,52 +126,35 @@ export class DeploymentStacksImpl {
|
|
|
160
126
|
return this;
|
|
161
127
|
},
|
|
162
128
|
byPage: (settings) => {
|
|
163
|
-
if (settings
|
|
129
|
+
if (settings?.maxPageSize) {
|
|
164
130
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
165
131
|
}
|
|
166
132
|
return this.listAtManagementGroupPagingPage(managementGroupId, options, settings);
|
|
167
133
|
},
|
|
168
134
|
};
|
|
169
135
|
}
|
|
170
|
-
listAtManagementGroupPagingPage(managementGroupId, options, settings) {
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
}
|
|
188
|
-
});
|
|
136
|
+
async *listAtManagementGroupPagingPage(managementGroupId, options, settings) {
|
|
137
|
+
let result;
|
|
138
|
+
let continuationToken = settings?.continuationToken;
|
|
139
|
+
if (!continuationToken) {
|
|
140
|
+
result = await this._listAtManagementGroup(managementGroupId, options);
|
|
141
|
+
let page = result.value || [];
|
|
142
|
+
continuationToken = result.nextLink;
|
|
143
|
+
setContinuationToken(page, continuationToken);
|
|
144
|
+
yield page;
|
|
145
|
+
}
|
|
146
|
+
while (continuationToken) {
|
|
147
|
+
result = await this._listAtManagementGroupNext(managementGroupId, continuationToken, options);
|
|
148
|
+
continuationToken = result.nextLink;
|
|
149
|
+
let page = result.value || [];
|
|
150
|
+
setContinuationToken(page, continuationToken);
|
|
151
|
+
yield page;
|
|
152
|
+
}
|
|
189
153
|
}
|
|
190
|
-
listAtManagementGroupPagingAll(managementGroupId, options) {
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
for (var _d = true, _e = __asyncValues(this.listAtManagementGroupPagingPage(managementGroupId, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
195
|
-
_c = _f.value;
|
|
196
|
-
_d = false;
|
|
197
|
-
const page = _c;
|
|
198
|
-
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
199
|
-
}
|
|
200
|
-
}
|
|
201
|
-
catch (e_3_1) { e_3 = { error: e_3_1 }; }
|
|
202
|
-
finally {
|
|
203
|
-
try {
|
|
204
|
-
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
|
205
|
-
}
|
|
206
|
-
finally { if (e_3) throw e_3.error; }
|
|
207
|
-
}
|
|
208
|
-
});
|
|
154
|
+
async *listAtManagementGroupPagingAll(managementGroupId, options) {
|
|
155
|
+
for await (const page of this.listAtManagementGroupPagingPage(managementGroupId, options)) {
|
|
156
|
+
yield* page;
|
|
157
|
+
}
|
|
209
158
|
}
|
|
210
159
|
/**
|
|
211
160
|
* Lists all the Deployment stacks within the specified Resource Group.
|
|
@@ -242,14 +191,19 @@ export class DeploymentStacksImpl {
|
|
|
242
191
|
return this.client.sendOperationRequest(args, spec);
|
|
243
192
|
};
|
|
244
193
|
const sendOperationFn = async (args, spec) => {
|
|
245
|
-
var _a;
|
|
246
194
|
let currentRawResponse = undefined;
|
|
247
|
-
const providedCallback =
|
|
195
|
+
const providedCallback = args.options?.onResponse;
|
|
248
196
|
const callback = (rawResponse, flatResponse) => {
|
|
249
197
|
currentRawResponse = rawResponse;
|
|
250
|
-
providedCallback
|
|
198
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
199
|
+
};
|
|
200
|
+
const updatedArgs = {
|
|
201
|
+
...args,
|
|
202
|
+
options: {
|
|
203
|
+
...args.options,
|
|
204
|
+
onResponse: callback,
|
|
205
|
+
},
|
|
251
206
|
};
|
|
252
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
253
207
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
254
208
|
return {
|
|
255
209
|
flatResponse,
|
|
@@ -271,8 +225,8 @@ export class DeploymentStacksImpl {
|
|
|
271
225
|
spec: createOrUpdateAtResourceGroupOperationSpec,
|
|
272
226
|
});
|
|
273
227
|
const poller = await createHttpPoller(lro, {
|
|
274
|
-
restoreFrom: options
|
|
275
|
-
intervalInMs: options
|
|
228
|
+
restoreFrom: options?.resumeFrom,
|
|
229
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
276
230
|
resourceLocationConfig: "azure-async-operation",
|
|
277
231
|
});
|
|
278
232
|
await poller.poll();
|
|
@@ -310,14 +264,19 @@ export class DeploymentStacksImpl {
|
|
|
310
264
|
return this.client.sendOperationRequest(args, spec);
|
|
311
265
|
};
|
|
312
266
|
const sendOperationFn = async (args, spec) => {
|
|
313
|
-
var _a;
|
|
314
267
|
let currentRawResponse = undefined;
|
|
315
|
-
const providedCallback =
|
|
268
|
+
const providedCallback = args.options?.onResponse;
|
|
316
269
|
const callback = (rawResponse, flatResponse) => {
|
|
317
270
|
currentRawResponse = rawResponse;
|
|
318
|
-
providedCallback
|
|
271
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
272
|
+
};
|
|
273
|
+
const updatedArgs = {
|
|
274
|
+
...args,
|
|
275
|
+
options: {
|
|
276
|
+
...args.options,
|
|
277
|
+
onResponse: callback,
|
|
278
|
+
},
|
|
319
279
|
};
|
|
320
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
321
280
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
322
281
|
return {
|
|
323
282
|
flatResponse,
|
|
@@ -334,8 +293,8 @@ export class DeploymentStacksImpl {
|
|
|
334
293
|
spec: deleteAtResourceGroupOperationSpec,
|
|
335
294
|
});
|
|
336
295
|
const poller = await createHttpPoller(lro, {
|
|
337
|
-
restoreFrom: options
|
|
338
|
-
intervalInMs: options
|
|
296
|
+
restoreFrom: options?.resumeFrom,
|
|
297
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
339
298
|
resourceLocationConfig: "location",
|
|
340
299
|
});
|
|
341
300
|
await poller.poll();
|
|
@@ -363,14 +322,19 @@ export class DeploymentStacksImpl {
|
|
|
363
322
|
return this.client.sendOperationRequest(args, spec);
|
|
364
323
|
};
|
|
365
324
|
const sendOperationFn = async (args, spec) => {
|
|
366
|
-
var _a;
|
|
367
325
|
let currentRawResponse = undefined;
|
|
368
|
-
const providedCallback =
|
|
326
|
+
const providedCallback = args.options?.onResponse;
|
|
369
327
|
const callback = (rawResponse, flatResponse) => {
|
|
370
328
|
currentRawResponse = rawResponse;
|
|
371
|
-
providedCallback
|
|
329
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
330
|
+
};
|
|
331
|
+
const updatedArgs = {
|
|
332
|
+
...args,
|
|
333
|
+
options: {
|
|
334
|
+
...args.options,
|
|
335
|
+
onResponse: callback,
|
|
336
|
+
},
|
|
372
337
|
};
|
|
373
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
374
338
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
375
339
|
return {
|
|
376
340
|
flatResponse,
|
|
@@ -387,8 +351,8 @@ export class DeploymentStacksImpl {
|
|
|
387
351
|
spec: createOrUpdateAtSubscriptionOperationSpec,
|
|
388
352
|
});
|
|
389
353
|
const poller = await createHttpPoller(lro, {
|
|
390
|
-
restoreFrom: options
|
|
391
|
-
intervalInMs: options
|
|
354
|
+
restoreFrom: options?.resumeFrom,
|
|
355
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
392
356
|
resourceLocationConfig: "azure-async-operation",
|
|
393
357
|
});
|
|
394
358
|
await poller.poll();
|
|
@@ -423,14 +387,19 @@ export class DeploymentStacksImpl {
|
|
|
423
387
|
return this.client.sendOperationRequest(args, spec);
|
|
424
388
|
};
|
|
425
389
|
const sendOperationFn = async (args, spec) => {
|
|
426
|
-
var _a;
|
|
427
390
|
let currentRawResponse = undefined;
|
|
428
|
-
const providedCallback =
|
|
391
|
+
const providedCallback = args.options?.onResponse;
|
|
429
392
|
const callback = (rawResponse, flatResponse) => {
|
|
430
393
|
currentRawResponse = rawResponse;
|
|
431
|
-
providedCallback
|
|
394
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
395
|
+
};
|
|
396
|
+
const updatedArgs = {
|
|
397
|
+
...args,
|
|
398
|
+
options: {
|
|
399
|
+
...args.options,
|
|
400
|
+
onResponse: callback,
|
|
401
|
+
},
|
|
432
402
|
};
|
|
433
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
434
403
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
435
404
|
return {
|
|
436
405
|
flatResponse,
|
|
@@ -447,8 +416,8 @@ export class DeploymentStacksImpl {
|
|
|
447
416
|
spec: deleteAtSubscriptionOperationSpec,
|
|
448
417
|
});
|
|
449
418
|
const poller = await createHttpPoller(lro, {
|
|
450
|
-
restoreFrom: options
|
|
451
|
-
intervalInMs: options
|
|
419
|
+
restoreFrom: options?.resumeFrom,
|
|
420
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
452
421
|
resourceLocationConfig: "location",
|
|
453
422
|
});
|
|
454
423
|
await poller.poll();
|
|
@@ -476,14 +445,19 @@ export class DeploymentStacksImpl {
|
|
|
476
445
|
return this.client.sendOperationRequest(args, spec);
|
|
477
446
|
};
|
|
478
447
|
const sendOperationFn = async (args, spec) => {
|
|
479
|
-
var _a;
|
|
480
448
|
let currentRawResponse = undefined;
|
|
481
|
-
const providedCallback =
|
|
449
|
+
const providedCallback = args.options?.onResponse;
|
|
482
450
|
const callback = (rawResponse, flatResponse) => {
|
|
483
451
|
currentRawResponse = rawResponse;
|
|
484
|
-
providedCallback
|
|
452
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
453
|
+
};
|
|
454
|
+
const updatedArgs = {
|
|
455
|
+
...args,
|
|
456
|
+
options: {
|
|
457
|
+
...args.options,
|
|
458
|
+
onResponse: callback,
|
|
459
|
+
},
|
|
485
460
|
};
|
|
486
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
487
461
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
488
462
|
return {
|
|
489
463
|
flatResponse,
|
|
@@ -505,8 +479,8 @@ export class DeploymentStacksImpl {
|
|
|
505
479
|
spec: createOrUpdateAtManagementGroupOperationSpec,
|
|
506
480
|
});
|
|
507
481
|
const poller = await createHttpPoller(lro, {
|
|
508
|
-
restoreFrom: options
|
|
509
|
-
intervalInMs: options
|
|
482
|
+
restoreFrom: options?.resumeFrom,
|
|
483
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
510
484
|
resourceLocationConfig: "azure-async-operation",
|
|
511
485
|
});
|
|
512
486
|
await poller.poll();
|
|
@@ -544,14 +518,19 @@ export class DeploymentStacksImpl {
|
|
|
544
518
|
return this.client.sendOperationRequest(args, spec);
|
|
545
519
|
};
|
|
546
520
|
const sendOperationFn = async (args, spec) => {
|
|
547
|
-
var _a;
|
|
548
521
|
let currentRawResponse = undefined;
|
|
549
|
-
const providedCallback =
|
|
522
|
+
const providedCallback = args.options?.onResponse;
|
|
550
523
|
const callback = (rawResponse, flatResponse) => {
|
|
551
524
|
currentRawResponse = rawResponse;
|
|
552
|
-
providedCallback
|
|
525
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
526
|
+
};
|
|
527
|
+
const updatedArgs = {
|
|
528
|
+
...args,
|
|
529
|
+
options: {
|
|
530
|
+
...args.options,
|
|
531
|
+
onResponse: callback,
|
|
532
|
+
},
|
|
553
533
|
};
|
|
554
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
555
534
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
556
535
|
return {
|
|
557
536
|
flatResponse,
|
|
@@ -568,8 +547,8 @@ export class DeploymentStacksImpl {
|
|
|
568
547
|
spec: deleteAtManagementGroupOperationSpec,
|
|
569
548
|
});
|
|
570
549
|
const poller = await createHttpPoller(lro, {
|
|
571
|
-
restoreFrom: options
|
|
572
|
-
intervalInMs: options
|
|
550
|
+
restoreFrom: options?.resumeFrom,
|
|
551
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
573
552
|
resourceLocationConfig: "location",
|
|
574
553
|
});
|
|
575
554
|
await poller.poll();
|
|
@@ -625,14 +604,19 @@ export class DeploymentStacksImpl {
|
|
|
625
604
|
return this.client.sendOperationRequest(args, spec);
|
|
626
605
|
};
|
|
627
606
|
const sendOperationFn = async (args, spec) => {
|
|
628
|
-
var _a;
|
|
629
607
|
let currentRawResponse = undefined;
|
|
630
|
-
const providedCallback =
|
|
608
|
+
const providedCallback = args.options?.onResponse;
|
|
631
609
|
const callback = (rawResponse, flatResponse) => {
|
|
632
610
|
currentRawResponse = rawResponse;
|
|
633
|
-
providedCallback
|
|
611
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
612
|
+
};
|
|
613
|
+
const updatedArgs = {
|
|
614
|
+
...args,
|
|
615
|
+
options: {
|
|
616
|
+
...args.options,
|
|
617
|
+
onResponse: callback,
|
|
618
|
+
},
|
|
634
619
|
};
|
|
635
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
636
620
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
637
621
|
return {
|
|
638
622
|
flatResponse,
|
|
@@ -654,8 +638,8 @@ export class DeploymentStacksImpl {
|
|
|
654
638
|
spec: validateStackAtResourceGroupOperationSpec,
|
|
655
639
|
});
|
|
656
640
|
const poller = await createHttpPoller(lro, {
|
|
657
|
-
restoreFrom: options
|
|
658
|
-
intervalInMs: options
|
|
641
|
+
restoreFrom: options?.resumeFrom,
|
|
642
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
659
643
|
resourceLocationConfig: "location",
|
|
660
644
|
});
|
|
661
645
|
await poller.poll();
|
|
@@ -685,14 +669,19 @@ export class DeploymentStacksImpl {
|
|
|
685
669
|
return this.client.sendOperationRequest(args, spec);
|
|
686
670
|
};
|
|
687
671
|
const sendOperationFn = async (args, spec) => {
|
|
688
|
-
var _a;
|
|
689
672
|
let currentRawResponse = undefined;
|
|
690
|
-
const providedCallback =
|
|
673
|
+
const providedCallback = args.options?.onResponse;
|
|
691
674
|
const callback = (rawResponse, flatResponse) => {
|
|
692
675
|
currentRawResponse = rawResponse;
|
|
693
|
-
providedCallback
|
|
676
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
677
|
+
};
|
|
678
|
+
const updatedArgs = {
|
|
679
|
+
...args,
|
|
680
|
+
options: {
|
|
681
|
+
...args.options,
|
|
682
|
+
onResponse: callback,
|
|
683
|
+
},
|
|
694
684
|
};
|
|
695
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
696
685
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
697
686
|
return {
|
|
698
687
|
flatResponse,
|
|
@@ -709,8 +698,8 @@ export class DeploymentStacksImpl {
|
|
|
709
698
|
spec: validateStackAtSubscriptionOperationSpec,
|
|
710
699
|
});
|
|
711
700
|
const poller = await createHttpPoller(lro, {
|
|
712
|
-
restoreFrom: options
|
|
713
|
-
intervalInMs: options
|
|
701
|
+
restoreFrom: options?.resumeFrom,
|
|
702
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
714
703
|
resourceLocationConfig: "location",
|
|
715
704
|
});
|
|
716
705
|
await poller.poll();
|
|
@@ -740,14 +729,19 @@ export class DeploymentStacksImpl {
|
|
|
740
729
|
return this.client.sendOperationRequest(args, spec);
|
|
741
730
|
};
|
|
742
731
|
const sendOperationFn = async (args, spec) => {
|
|
743
|
-
var _a;
|
|
744
732
|
let currentRawResponse = undefined;
|
|
745
|
-
const providedCallback =
|
|
733
|
+
const providedCallback = args.options?.onResponse;
|
|
746
734
|
const callback = (rawResponse, flatResponse) => {
|
|
747
735
|
currentRawResponse = rawResponse;
|
|
748
|
-
providedCallback
|
|
736
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
737
|
+
};
|
|
738
|
+
const updatedArgs = {
|
|
739
|
+
...args,
|
|
740
|
+
options: {
|
|
741
|
+
...args.options,
|
|
742
|
+
onResponse: callback,
|
|
743
|
+
},
|
|
749
744
|
};
|
|
750
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
751
745
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
752
746
|
return {
|
|
753
747
|
flatResponse,
|
|
@@ -769,8 +763,8 @@ export class DeploymentStacksImpl {
|
|
|
769
763
|
spec: validateStackAtManagementGroupOperationSpec,
|
|
770
764
|
});
|
|
771
765
|
const poller = await createHttpPoller(lro, {
|
|
772
|
-
restoreFrom: options
|
|
773
|
-
intervalInMs: options
|
|
766
|
+
restoreFrom: options?.resumeFrom,
|
|
767
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
774
768
|
resourceLocationConfig: "location",
|
|
775
769
|
});
|
|
776
770
|
await poller.poll();
|