@azure/arm-resourcemover 2.2.0-alpha.20250619.1 → 2.2.0-alpha.20250730.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser/lroImpl.js +7 -3
- package/dist/browser/lroImpl.js.map +1 -1
- package/dist/browser/models/mappers.js +134 -56
- package/dist/browser/models/mappers.js.map +1 -1
- package/dist/browser/operations/moveCollections.js +122 -121
- package/dist/browser/operations/moveCollections.js.map +1 -1
- package/dist/browser/operations/moveResources.js +45 -52
- package/dist/browser/operations/moveResources.js.map +1 -1
- package/dist/browser/operations/operationsDiscoveryOperations.js +1 -0
- package/dist/browser/operations/operationsDiscoveryOperations.js.map +1 -1
- package/dist/browser/operations/unresolvedDependencies.js +23 -40
- package/dist/browser/operations/unresolvedDependencies.js.map +1 -1
- package/dist/browser/pagingHelper.js +2 -4
- package/dist/browser/pagingHelper.js.map +1 -1
- package/dist/browser/resourceMoverServiceAPI.js +17 -5
- package/dist/browser/resourceMoverServiceAPI.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 +134 -56
- package/dist/commonjs/models/mappers.js.map +1 -1
- package/dist/commonjs/operations/moveCollections.js +122 -120
- package/dist/commonjs/operations/moveCollections.js.map +1 -1
- package/dist/commonjs/operations/moveResources.js +45 -51
- package/dist/commonjs/operations/moveResources.js.map +1 -1
- package/dist/commonjs/operations/operationsDiscoveryOperations.js +1 -0
- package/dist/commonjs/operations/operationsDiscoveryOperations.js.map +1 -1
- package/dist/commonjs/operations/unresolvedDependencies.js +23 -39
- package/dist/commonjs/operations/unresolvedDependencies.js.map +1 -1
- package/dist/commonjs/pagingHelper.js +2 -4
- package/dist/commonjs/pagingHelper.js.map +1 -1
- package/dist/commonjs/resourceMoverServiceAPI.js +17 -5
- package/dist/commonjs/resourceMoverServiceAPI.js.map +1 -1
- package/dist/commonjs/tsdoc-metadata.json +11 -11
- package/dist/esm/lroImpl.js +7 -3
- package/dist/esm/lroImpl.js.map +1 -1
- package/dist/esm/models/mappers.js +134 -56
- package/dist/esm/models/mappers.js.map +1 -1
- package/dist/esm/operations/moveCollections.js +122 -121
- package/dist/esm/operations/moveCollections.js.map +1 -1
- package/dist/esm/operations/moveResources.js +45 -52
- package/dist/esm/operations/moveResources.js.map +1 -1
- package/dist/esm/operations/operationsDiscoveryOperations.js +1 -0
- package/dist/esm/operations/operationsDiscoveryOperations.js.map +1 -1
- package/dist/esm/operations/unresolvedDependencies.js +23 -40
- package/dist/esm/operations/unresolvedDependencies.js.map +1 -1
- package/dist/esm/pagingHelper.js +2 -4
- package/dist/esm/pagingHelper.js.map +1 -1
- package/dist/esm/resourceMoverServiceAPI.js +17 -5
- package/dist/esm/resourceMoverServiceAPI.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 +134 -56
- package/dist/react-native/models/mappers.js.map +1 -1
- package/dist/react-native/operations/moveCollections.js +122 -121
- package/dist/react-native/operations/moveCollections.js.map +1 -1
- package/dist/react-native/operations/moveResources.js +45 -52
- package/dist/react-native/operations/moveResources.js.map +1 -1
- package/dist/react-native/operations/operationsDiscoveryOperations.js +1 -0
- package/dist/react-native/operations/operationsDiscoveryOperations.js.map +1 -1
- package/dist/react-native/operations/unresolvedDependencies.js +23 -40
- package/dist/react-native/operations/unresolvedDependencies.js.map +1 -1
- package/dist/react-native/pagingHelper.js +2 -4
- package/dist/react-native/pagingHelper.js.map +1 -1
- package/dist/react-native/resourceMoverServiceAPI.js +17 -5
- package/dist/react-native/resourceMoverServiceAPI.js.map +1 -1
- package/package.json +2 -2
- /package/review/{arm-resourcemover.api.md → arm-resourcemover-node.api.md} +0 -0
|
@@ -18,6 +18,7 @@ const lroImpl_js_1 = require("../lroImpl.js");
|
|
|
18
18
|
/// <reference lib="esnext.asynciterable" />
|
|
19
19
|
/** Class containing MoveCollections operations. */
|
|
20
20
|
class MoveCollectionsImpl {
|
|
21
|
+
client;
|
|
21
22
|
/**
|
|
22
23
|
* Initialize a new instance of the class MoveCollections class.
|
|
23
24
|
* @param client Reference to the service client
|
|
@@ -39,52 +40,35 @@ class MoveCollectionsImpl {
|
|
|
39
40
|
return this;
|
|
40
41
|
},
|
|
41
42
|
byPage: (settings) => {
|
|
42
|
-
if (settings
|
|
43
|
+
if (settings?.maxPageSize) {
|
|
43
44
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
44
45
|
}
|
|
45
46
|
return this.listMoveCollectionsBySubscriptionPagingPage(options, settings);
|
|
46
47
|
}
|
|
47
48
|
};
|
|
48
49
|
}
|
|
49
|
-
listMoveCollectionsBySubscriptionPagingPage(options, settings) {
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
}
|
|
67
|
-
});
|
|
50
|
+
async *listMoveCollectionsBySubscriptionPagingPage(options, settings) {
|
|
51
|
+
let result;
|
|
52
|
+
let continuationToken = settings?.continuationToken;
|
|
53
|
+
if (!continuationToken) {
|
|
54
|
+
result = await this._listMoveCollectionsBySubscription(options);
|
|
55
|
+
let page = result.value || [];
|
|
56
|
+
continuationToken = result.nextLink;
|
|
57
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
58
|
+
yield page;
|
|
59
|
+
}
|
|
60
|
+
while (continuationToken) {
|
|
61
|
+
result = await this._listMoveCollectionsBySubscriptionNext(continuationToken, options);
|
|
62
|
+
continuationToken = result.nextLink;
|
|
63
|
+
let page = result.value || [];
|
|
64
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
65
|
+
yield page;
|
|
66
|
+
}
|
|
68
67
|
}
|
|
69
|
-
listMoveCollectionsBySubscriptionPagingAll(options) {
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
for (var _d = true, _e = tslib_1.__asyncValues(this.listMoveCollectionsBySubscriptionPagingPage(options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
74
|
-
_c = _f.value;
|
|
75
|
-
_d = false;
|
|
76
|
-
const page = _c;
|
|
77
|
-
yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
81
|
-
finally {
|
|
82
|
-
try {
|
|
83
|
-
if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
|
|
84
|
-
}
|
|
85
|
-
finally { if (e_1) throw e_1.error; }
|
|
86
|
-
}
|
|
87
|
-
});
|
|
68
|
+
async *listMoveCollectionsBySubscriptionPagingAll(options) {
|
|
69
|
+
for await (const page of this.listMoveCollectionsBySubscriptionPagingPage(options)) {
|
|
70
|
+
yield* page;
|
|
71
|
+
}
|
|
88
72
|
}
|
|
89
73
|
/**
|
|
90
74
|
* Get all the Move Collections in the resource group.
|
|
@@ -101,52 +85,35 @@ class MoveCollectionsImpl {
|
|
|
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.listMoveCollectionsByResourceGroupPagingPage(resourceGroupName, options, settings);
|
|
108
92
|
}
|
|
109
93
|
};
|
|
110
94
|
}
|
|
111
|
-
listMoveCollectionsByResourceGroupPagingPage(resourceGroupName, options, settings) {
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
}
|
|
129
|
-
});
|
|
95
|
+
async *listMoveCollectionsByResourceGroupPagingPage(resourceGroupName, options, settings) {
|
|
96
|
+
let result;
|
|
97
|
+
let continuationToken = settings?.continuationToken;
|
|
98
|
+
if (!continuationToken) {
|
|
99
|
+
result = await this._listMoveCollectionsByResourceGroup(resourceGroupName, 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._listMoveCollectionsByResourceGroupNext(resourceGroupName, 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
|
-
listMoveCollectionsByResourceGroupPagingAll(resourceGroupName, options) {
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
for (var _d = true, _e = tslib_1.__asyncValues(this.listMoveCollectionsByResourceGroupPagingPage(resourceGroupName, 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 *listMoveCollectionsByResourceGroupPagingAll(resourceGroupName, options) {
|
|
114
|
+
for await (const page of this.listMoveCollectionsByResourceGroupPagingPage(resourceGroupName, options)) {
|
|
115
|
+
yield* page;
|
|
116
|
+
}
|
|
150
117
|
}
|
|
151
118
|
/**
|
|
152
119
|
* Creates or updates a move collection.
|
|
@@ -177,14 +144,19 @@ class MoveCollectionsImpl {
|
|
|
177
144
|
return this.client.sendOperationRequest(args, spec);
|
|
178
145
|
};
|
|
179
146
|
const sendOperationFn = async (args, spec) => {
|
|
180
|
-
var _a;
|
|
181
147
|
let currentRawResponse = undefined;
|
|
182
|
-
const providedCallback =
|
|
148
|
+
const providedCallback = args.options?.onResponse;
|
|
183
149
|
const callback = (rawResponse, flatResponse) => {
|
|
184
150
|
currentRawResponse = rawResponse;
|
|
185
|
-
providedCallback
|
|
151
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
152
|
+
};
|
|
153
|
+
const updatedArgs = {
|
|
154
|
+
...args,
|
|
155
|
+
options: {
|
|
156
|
+
...args.options,
|
|
157
|
+
onResponse: callback
|
|
158
|
+
}
|
|
186
159
|
};
|
|
187
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
188
160
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
189
161
|
return {
|
|
190
162
|
flatResponse,
|
|
@@ -201,8 +173,8 @@ class MoveCollectionsImpl {
|
|
|
201
173
|
spec: deleteOperationSpec
|
|
202
174
|
});
|
|
203
175
|
const poller = await (0, core_lro_1.createHttpPoller)(lro, {
|
|
204
|
-
restoreFrom: options
|
|
205
|
-
intervalInMs: options
|
|
176
|
+
restoreFrom: options?.resumeFrom,
|
|
177
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
206
178
|
resourceLocationConfig: "azure-async-operation"
|
|
207
179
|
});
|
|
208
180
|
await poller.poll();
|
|
@@ -241,14 +213,19 @@ class MoveCollectionsImpl {
|
|
|
241
213
|
return this.client.sendOperationRequest(args, spec);
|
|
242
214
|
};
|
|
243
215
|
const sendOperationFn = async (args, spec) => {
|
|
244
|
-
var _a;
|
|
245
216
|
let currentRawResponse = undefined;
|
|
246
|
-
const providedCallback =
|
|
217
|
+
const providedCallback = args.options?.onResponse;
|
|
247
218
|
const callback = (rawResponse, flatResponse) => {
|
|
248
219
|
currentRawResponse = rawResponse;
|
|
249
|
-
providedCallback
|
|
220
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
221
|
+
};
|
|
222
|
+
const updatedArgs = {
|
|
223
|
+
...args,
|
|
224
|
+
options: {
|
|
225
|
+
...args.options,
|
|
226
|
+
onResponse: callback
|
|
227
|
+
}
|
|
250
228
|
};
|
|
251
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
252
229
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
253
230
|
return {
|
|
254
231
|
flatResponse,
|
|
@@ -265,8 +242,8 @@ class MoveCollectionsImpl {
|
|
|
265
242
|
spec: prepareOperationSpec
|
|
266
243
|
});
|
|
267
244
|
const poller = await (0, core_lro_1.createHttpPoller)(lro, {
|
|
268
|
-
restoreFrom: options
|
|
269
|
-
intervalInMs: options
|
|
245
|
+
restoreFrom: options?.resumeFrom,
|
|
246
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
270
247
|
resourceLocationConfig: "azure-async-operation"
|
|
271
248
|
});
|
|
272
249
|
await poller.poll();
|
|
@@ -299,14 +276,19 @@ class MoveCollectionsImpl {
|
|
|
299
276
|
return this.client.sendOperationRequest(args, spec);
|
|
300
277
|
};
|
|
301
278
|
const sendOperationFn = async (args, spec) => {
|
|
302
|
-
var _a;
|
|
303
279
|
let currentRawResponse = undefined;
|
|
304
|
-
const providedCallback =
|
|
280
|
+
const providedCallback = args.options?.onResponse;
|
|
305
281
|
const callback = (rawResponse, flatResponse) => {
|
|
306
282
|
currentRawResponse = rawResponse;
|
|
307
|
-
providedCallback
|
|
283
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
284
|
+
};
|
|
285
|
+
const updatedArgs = {
|
|
286
|
+
...args,
|
|
287
|
+
options: {
|
|
288
|
+
...args.options,
|
|
289
|
+
onResponse: callback
|
|
290
|
+
}
|
|
308
291
|
};
|
|
309
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
310
292
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
311
293
|
return {
|
|
312
294
|
flatResponse,
|
|
@@ -323,8 +305,8 @@ class MoveCollectionsImpl {
|
|
|
323
305
|
spec: initiateMoveOperationSpec
|
|
324
306
|
});
|
|
325
307
|
const poller = await (0, core_lro_1.createHttpPoller)(lro, {
|
|
326
|
-
restoreFrom: options
|
|
327
|
-
intervalInMs: options
|
|
308
|
+
restoreFrom: options?.resumeFrom,
|
|
309
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
328
310
|
resourceLocationConfig: "azure-async-operation"
|
|
329
311
|
});
|
|
330
312
|
await poller.poll();
|
|
@@ -357,14 +339,19 @@ class MoveCollectionsImpl {
|
|
|
357
339
|
return this.client.sendOperationRequest(args, spec);
|
|
358
340
|
};
|
|
359
341
|
const sendOperationFn = async (args, spec) => {
|
|
360
|
-
var _a;
|
|
361
342
|
let currentRawResponse = undefined;
|
|
362
|
-
const providedCallback =
|
|
343
|
+
const providedCallback = args.options?.onResponse;
|
|
363
344
|
const callback = (rawResponse, flatResponse) => {
|
|
364
345
|
currentRawResponse = rawResponse;
|
|
365
|
-
providedCallback
|
|
346
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
347
|
+
};
|
|
348
|
+
const updatedArgs = {
|
|
349
|
+
...args,
|
|
350
|
+
options: {
|
|
351
|
+
...args.options,
|
|
352
|
+
onResponse: callback
|
|
353
|
+
}
|
|
366
354
|
};
|
|
367
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
368
355
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
369
356
|
return {
|
|
370
357
|
flatResponse,
|
|
@@ -381,8 +368,8 @@ class MoveCollectionsImpl {
|
|
|
381
368
|
spec: commitOperationSpec
|
|
382
369
|
});
|
|
383
370
|
const poller = await (0, core_lro_1.createHttpPoller)(lro, {
|
|
384
|
-
restoreFrom: options
|
|
385
|
-
intervalInMs: options
|
|
371
|
+
restoreFrom: options?.resumeFrom,
|
|
372
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
386
373
|
resourceLocationConfig: "azure-async-operation"
|
|
387
374
|
});
|
|
388
375
|
await poller.poll();
|
|
@@ -415,14 +402,19 @@ class MoveCollectionsImpl {
|
|
|
415
402
|
return this.client.sendOperationRequest(args, spec);
|
|
416
403
|
};
|
|
417
404
|
const sendOperationFn = async (args, spec) => {
|
|
418
|
-
var _a;
|
|
419
405
|
let currentRawResponse = undefined;
|
|
420
|
-
const providedCallback =
|
|
406
|
+
const providedCallback = args.options?.onResponse;
|
|
421
407
|
const callback = (rawResponse, flatResponse) => {
|
|
422
408
|
currentRawResponse = rawResponse;
|
|
423
|
-
providedCallback
|
|
409
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
410
|
+
};
|
|
411
|
+
const updatedArgs = {
|
|
412
|
+
...args,
|
|
413
|
+
options: {
|
|
414
|
+
...args.options,
|
|
415
|
+
onResponse: callback
|
|
416
|
+
}
|
|
424
417
|
};
|
|
425
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
426
418
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
427
419
|
return {
|
|
428
420
|
flatResponse,
|
|
@@ -439,8 +431,8 @@ class MoveCollectionsImpl {
|
|
|
439
431
|
spec: discardOperationSpec
|
|
440
432
|
});
|
|
441
433
|
const poller = await (0, core_lro_1.createHttpPoller)(lro, {
|
|
442
|
-
restoreFrom: options
|
|
443
|
-
intervalInMs: options
|
|
434
|
+
restoreFrom: options?.resumeFrom,
|
|
435
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
444
436
|
resourceLocationConfig: "azure-async-operation"
|
|
445
437
|
});
|
|
446
438
|
await poller.poll();
|
|
@@ -470,14 +462,19 @@ class MoveCollectionsImpl {
|
|
|
470
462
|
return this.client.sendOperationRequest(args, spec);
|
|
471
463
|
};
|
|
472
464
|
const sendOperationFn = async (args, spec) => {
|
|
473
|
-
var _a;
|
|
474
465
|
let currentRawResponse = undefined;
|
|
475
|
-
const providedCallback =
|
|
466
|
+
const providedCallback = args.options?.onResponse;
|
|
476
467
|
const callback = (rawResponse, flatResponse) => {
|
|
477
468
|
currentRawResponse = rawResponse;
|
|
478
|
-
providedCallback
|
|
469
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
470
|
+
};
|
|
471
|
+
const updatedArgs = {
|
|
472
|
+
...args,
|
|
473
|
+
options: {
|
|
474
|
+
...args.options,
|
|
475
|
+
onResponse: callback
|
|
476
|
+
}
|
|
479
477
|
};
|
|
480
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
481
478
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
482
479
|
return {
|
|
483
480
|
flatResponse,
|
|
@@ -494,8 +491,8 @@ class MoveCollectionsImpl {
|
|
|
494
491
|
spec: resolveDependenciesOperationSpec
|
|
495
492
|
});
|
|
496
493
|
const poller = await (0, core_lro_1.createHttpPoller)(lro, {
|
|
497
|
-
restoreFrom: options
|
|
498
|
-
intervalInMs: options
|
|
494
|
+
restoreFrom: options?.resumeFrom,
|
|
495
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
499
496
|
resourceLocationConfig: "azure-async-operation"
|
|
500
497
|
});
|
|
501
498
|
await poller.poll();
|
|
@@ -524,14 +521,19 @@ class MoveCollectionsImpl {
|
|
|
524
521
|
return this.client.sendOperationRequest(args, spec);
|
|
525
522
|
};
|
|
526
523
|
const sendOperationFn = async (args, spec) => {
|
|
527
|
-
var _a;
|
|
528
524
|
let currentRawResponse = undefined;
|
|
529
|
-
const providedCallback =
|
|
525
|
+
const providedCallback = args.options?.onResponse;
|
|
530
526
|
const callback = (rawResponse, flatResponse) => {
|
|
531
527
|
currentRawResponse = rawResponse;
|
|
532
|
-
providedCallback
|
|
528
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
529
|
+
};
|
|
530
|
+
const updatedArgs = {
|
|
531
|
+
...args,
|
|
532
|
+
options: {
|
|
533
|
+
...args.options,
|
|
534
|
+
onResponse: callback
|
|
535
|
+
}
|
|
533
536
|
};
|
|
534
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
535
537
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
536
538
|
return {
|
|
537
539
|
flatResponse,
|
|
@@ -548,8 +550,8 @@ class MoveCollectionsImpl {
|
|
|
548
550
|
spec: bulkRemoveOperationSpec
|
|
549
551
|
});
|
|
550
552
|
const poller = await (0, core_lro_1.createHttpPoller)(lro, {
|
|
551
|
-
restoreFrom: options
|
|
552
|
-
intervalInMs: options
|
|
553
|
+
restoreFrom: options?.resumeFrom,
|
|
554
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
553
555
|
resourceLocationConfig: "azure-async-operation"
|
|
554
556
|
});
|
|
555
557
|
await poller.poll();
|