@azure/arm-resourcemover 2.2.0-alpha.20250618.1 → 2.2.0-alpha.20250718.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
|
@@ -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 MoveCollections operations. */
|
|
17
16
|
export class MoveCollectionsImpl {
|
|
17
|
+
client;
|
|
18
18
|
/**
|
|
19
19
|
* Initialize a new instance of the class MoveCollections class.
|
|
20
20
|
* @param client Reference to the service client
|
|
@@ -36,52 +36,35 @@ export class MoveCollectionsImpl {
|
|
|
36
36
|
return this;
|
|
37
37
|
},
|
|
38
38
|
byPage: (settings) => {
|
|
39
|
-
if (settings
|
|
39
|
+
if (settings?.maxPageSize) {
|
|
40
40
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
41
41
|
}
|
|
42
42
|
return this.listMoveCollectionsBySubscriptionPagingPage(options, settings);
|
|
43
43
|
}
|
|
44
44
|
};
|
|
45
45
|
}
|
|
46
|
-
listMoveCollectionsBySubscriptionPagingPage(options, settings) {
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
}
|
|
64
|
-
});
|
|
46
|
+
async *listMoveCollectionsBySubscriptionPagingPage(options, settings) {
|
|
47
|
+
let result;
|
|
48
|
+
let continuationToken = settings?.continuationToken;
|
|
49
|
+
if (!continuationToken) {
|
|
50
|
+
result = await this._listMoveCollectionsBySubscription(options);
|
|
51
|
+
let page = result.value || [];
|
|
52
|
+
continuationToken = result.nextLink;
|
|
53
|
+
setContinuationToken(page, continuationToken);
|
|
54
|
+
yield page;
|
|
55
|
+
}
|
|
56
|
+
while (continuationToken) {
|
|
57
|
+
result = await this._listMoveCollectionsBySubscriptionNext(continuationToken, options);
|
|
58
|
+
continuationToken = result.nextLink;
|
|
59
|
+
let page = result.value || [];
|
|
60
|
+
setContinuationToken(page, continuationToken);
|
|
61
|
+
yield page;
|
|
62
|
+
}
|
|
65
63
|
}
|
|
66
|
-
listMoveCollectionsBySubscriptionPagingAll(options) {
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
for (var _d = true, _e = __asyncValues(this.listMoveCollectionsBySubscriptionPagingPage(options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
71
|
-
_c = _f.value;
|
|
72
|
-
_d = false;
|
|
73
|
-
const page = _c;
|
|
74
|
-
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
78
|
-
finally {
|
|
79
|
-
try {
|
|
80
|
-
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
|
81
|
-
}
|
|
82
|
-
finally { if (e_1) throw e_1.error; }
|
|
83
|
-
}
|
|
84
|
-
});
|
|
64
|
+
async *listMoveCollectionsBySubscriptionPagingAll(options) {
|
|
65
|
+
for await (const page of this.listMoveCollectionsBySubscriptionPagingPage(options)) {
|
|
66
|
+
yield* page;
|
|
67
|
+
}
|
|
85
68
|
}
|
|
86
69
|
/**
|
|
87
70
|
* Get all the Move Collections in the resource group.
|
|
@@ -98,52 +81,35 @@ export class MoveCollectionsImpl {
|
|
|
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.listMoveCollectionsByResourceGroupPagingPage(resourceGroupName, options, settings);
|
|
105
88
|
}
|
|
106
89
|
};
|
|
107
90
|
}
|
|
108
|
-
listMoveCollectionsByResourceGroupPagingPage(resourceGroupName, options, settings) {
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
}
|
|
126
|
-
});
|
|
91
|
+
async *listMoveCollectionsByResourceGroupPagingPage(resourceGroupName, options, settings) {
|
|
92
|
+
let result;
|
|
93
|
+
let continuationToken = settings?.continuationToken;
|
|
94
|
+
if (!continuationToken) {
|
|
95
|
+
result = await this._listMoveCollectionsByResourceGroup(resourceGroupName, 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._listMoveCollectionsByResourceGroupNext(resourceGroupName, continuationToken, options);
|
|
103
|
+
continuationToken = result.nextLink;
|
|
104
|
+
let page = result.value || [];
|
|
105
|
+
setContinuationToken(page, continuationToken);
|
|
106
|
+
yield page;
|
|
107
|
+
}
|
|
127
108
|
}
|
|
128
|
-
listMoveCollectionsByResourceGroupPagingAll(resourceGroupName, options) {
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
for (var _d = true, _e = __asyncValues(this.listMoveCollectionsByResourceGroupPagingPage(resourceGroupName, 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 *listMoveCollectionsByResourceGroupPagingAll(resourceGroupName, options) {
|
|
110
|
+
for await (const page of this.listMoveCollectionsByResourceGroupPagingPage(resourceGroupName, options)) {
|
|
111
|
+
yield* page;
|
|
112
|
+
}
|
|
147
113
|
}
|
|
148
114
|
/**
|
|
149
115
|
* Creates or updates a move collection.
|
|
@@ -174,14 +140,19 @@ export class MoveCollectionsImpl {
|
|
|
174
140
|
return this.client.sendOperationRequest(args, spec);
|
|
175
141
|
};
|
|
176
142
|
const sendOperationFn = async (args, spec) => {
|
|
177
|
-
var _a;
|
|
178
143
|
let currentRawResponse = undefined;
|
|
179
|
-
const providedCallback =
|
|
144
|
+
const providedCallback = args.options?.onResponse;
|
|
180
145
|
const callback = (rawResponse, flatResponse) => {
|
|
181
146
|
currentRawResponse = rawResponse;
|
|
182
|
-
providedCallback
|
|
147
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
148
|
+
};
|
|
149
|
+
const updatedArgs = {
|
|
150
|
+
...args,
|
|
151
|
+
options: {
|
|
152
|
+
...args.options,
|
|
153
|
+
onResponse: callback
|
|
154
|
+
}
|
|
183
155
|
};
|
|
184
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
185
156
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
186
157
|
return {
|
|
187
158
|
flatResponse,
|
|
@@ -198,8 +169,8 @@ export class MoveCollectionsImpl {
|
|
|
198
169
|
spec: deleteOperationSpec
|
|
199
170
|
});
|
|
200
171
|
const poller = await createHttpPoller(lro, {
|
|
201
|
-
restoreFrom: options
|
|
202
|
-
intervalInMs: options
|
|
172
|
+
restoreFrom: options?.resumeFrom,
|
|
173
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
203
174
|
resourceLocationConfig: "azure-async-operation"
|
|
204
175
|
});
|
|
205
176
|
await poller.poll();
|
|
@@ -238,14 +209,19 @@ export class MoveCollectionsImpl {
|
|
|
238
209
|
return this.client.sendOperationRequest(args, spec);
|
|
239
210
|
};
|
|
240
211
|
const sendOperationFn = async (args, spec) => {
|
|
241
|
-
var _a;
|
|
242
212
|
let currentRawResponse = undefined;
|
|
243
|
-
const providedCallback =
|
|
213
|
+
const providedCallback = args.options?.onResponse;
|
|
244
214
|
const callback = (rawResponse, flatResponse) => {
|
|
245
215
|
currentRawResponse = rawResponse;
|
|
246
|
-
providedCallback
|
|
216
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
217
|
+
};
|
|
218
|
+
const updatedArgs = {
|
|
219
|
+
...args,
|
|
220
|
+
options: {
|
|
221
|
+
...args.options,
|
|
222
|
+
onResponse: callback
|
|
223
|
+
}
|
|
247
224
|
};
|
|
248
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
249
225
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
250
226
|
return {
|
|
251
227
|
flatResponse,
|
|
@@ -262,8 +238,8 @@ export class MoveCollectionsImpl {
|
|
|
262
238
|
spec: prepareOperationSpec
|
|
263
239
|
});
|
|
264
240
|
const poller = await createHttpPoller(lro, {
|
|
265
|
-
restoreFrom: options
|
|
266
|
-
intervalInMs: options
|
|
241
|
+
restoreFrom: options?.resumeFrom,
|
|
242
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
267
243
|
resourceLocationConfig: "azure-async-operation"
|
|
268
244
|
});
|
|
269
245
|
await poller.poll();
|
|
@@ -296,14 +272,19 @@ export class MoveCollectionsImpl {
|
|
|
296
272
|
return this.client.sendOperationRequest(args, spec);
|
|
297
273
|
};
|
|
298
274
|
const sendOperationFn = async (args, spec) => {
|
|
299
|
-
var _a;
|
|
300
275
|
let currentRawResponse = undefined;
|
|
301
|
-
const providedCallback =
|
|
276
|
+
const providedCallback = args.options?.onResponse;
|
|
302
277
|
const callback = (rawResponse, flatResponse) => {
|
|
303
278
|
currentRawResponse = rawResponse;
|
|
304
|
-
providedCallback
|
|
279
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
280
|
+
};
|
|
281
|
+
const updatedArgs = {
|
|
282
|
+
...args,
|
|
283
|
+
options: {
|
|
284
|
+
...args.options,
|
|
285
|
+
onResponse: callback
|
|
286
|
+
}
|
|
305
287
|
};
|
|
306
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
307
288
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
308
289
|
return {
|
|
309
290
|
flatResponse,
|
|
@@ -320,8 +301,8 @@ export class MoveCollectionsImpl {
|
|
|
320
301
|
spec: initiateMoveOperationSpec
|
|
321
302
|
});
|
|
322
303
|
const poller = await createHttpPoller(lro, {
|
|
323
|
-
restoreFrom: options
|
|
324
|
-
intervalInMs: options
|
|
304
|
+
restoreFrom: options?.resumeFrom,
|
|
305
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
325
306
|
resourceLocationConfig: "azure-async-operation"
|
|
326
307
|
});
|
|
327
308
|
await poller.poll();
|
|
@@ -354,14 +335,19 @@ export class MoveCollectionsImpl {
|
|
|
354
335
|
return this.client.sendOperationRequest(args, spec);
|
|
355
336
|
};
|
|
356
337
|
const sendOperationFn = async (args, spec) => {
|
|
357
|
-
var _a;
|
|
358
338
|
let currentRawResponse = undefined;
|
|
359
|
-
const providedCallback =
|
|
339
|
+
const providedCallback = args.options?.onResponse;
|
|
360
340
|
const callback = (rawResponse, flatResponse) => {
|
|
361
341
|
currentRawResponse = rawResponse;
|
|
362
|
-
providedCallback
|
|
342
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
343
|
+
};
|
|
344
|
+
const updatedArgs = {
|
|
345
|
+
...args,
|
|
346
|
+
options: {
|
|
347
|
+
...args.options,
|
|
348
|
+
onResponse: callback
|
|
349
|
+
}
|
|
363
350
|
};
|
|
364
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
365
351
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
366
352
|
return {
|
|
367
353
|
flatResponse,
|
|
@@ -378,8 +364,8 @@ export class MoveCollectionsImpl {
|
|
|
378
364
|
spec: commitOperationSpec
|
|
379
365
|
});
|
|
380
366
|
const poller = await createHttpPoller(lro, {
|
|
381
|
-
restoreFrom: options
|
|
382
|
-
intervalInMs: options
|
|
367
|
+
restoreFrom: options?.resumeFrom,
|
|
368
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
383
369
|
resourceLocationConfig: "azure-async-operation"
|
|
384
370
|
});
|
|
385
371
|
await poller.poll();
|
|
@@ -412,14 +398,19 @@ export class MoveCollectionsImpl {
|
|
|
412
398
|
return this.client.sendOperationRequest(args, spec);
|
|
413
399
|
};
|
|
414
400
|
const sendOperationFn = async (args, spec) => {
|
|
415
|
-
var _a;
|
|
416
401
|
let currentRawResponse = undefined;
|
|
417
|
-
const providedCallback =
|
|
402
|
+
const providedCallback = args.options?.onResponse;
|
|
418
403
|
const callback = (rawResponse, flatResponse) => {
|
|
419
404
|
currentRawResponse = rawResponse;
|
|
420
|
-
providedCallback
|
|
405
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
406
|
+
};
|
|
407
|
+
const updatedArgs = {
|
|
408
|
+
...args,
|
|
409
|
+
options: {
|
|
410
|
+
...args.options,
|
|
411
|
+
onResponse: callback
|
|
412
|
+
}
|
|
421
413
|
};
|
|
422
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
423
414
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
424
415
|
return {
|
|
425
416
|
flatResponse,
|
|
@@ -436,8 +427,8 @@ export class MoveCollectionsImpl {
|
|
|
436
427
|
spec: discardOperationSpec
|
|
437
428
|
});
|
|
438
429
|
const poller = await createHttpPoller(lro, {
|
|
439
|
-
restoreFrom: options
|
|
440
|
-
intervalInMs: options
|
|
430
|
+
restoreFrom: options?.resumeFrom,
|
|
431
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
441
432
|
resourceLocationConfig: "azure-async-operation"
|
|
442
433
|
});
|
|
443
434
|
await poller.poll();
|
|
@@ -467,14 +458,19 @@ export class MoveCollectionsImpl {
|
|
|
467
458
|
return this.client.sendOperationRequest(args, spec);
|
|
468
459
|
};
|
|
469
460
|
const sendOperationFn = async (args, spec) => {
|
|
470
|
-
var _a;
|
|
471
461
|
let currentRawResponse = undefined;
|
|
472
|
-
const providedCallback =
|
|
462
|
+
const providedCallback = args.options?.onResponse;
|
|
473
463
|
const callback = (rawResponse, flatResponse) => {
|
|
474
464
|
currentRawResponse = rawResponse;
|
|
475
|
-
providedCallback
|
|
465
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
466
|
+
};
|
|
467
|
+
const updatedArgs = {
|
|
468
|
+
...args,
|
|
469
|
+
options: {
|
|
470
|
+
...args.options,
|
|
471
|
+
onResponse: callback
|
|
472
|
+
}
|
|
476
473
|
};
|
|
477
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
478
474
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
479
475
|
return {
|
|
480
476
|
flatResponse,
|
|
@@ -491,8 +487,8 @@ export class MoveCollectionsImpl {
|
|
|
491
487
|
spec: resolveDependenciesOperationSpec
|
|
492
488
|
});
|
|
493
489
|
const poller = await createHttpPoller(lro, {
|
|
494
|
-
restoreFrom: options
|
|
495
|
-
intervalInMs: options
|
|
490
|
+
restoreFrom: options?.resumeFrom,
|
|
491
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
496
492
|
resourceLocationConfig: "azure-async-operation"
|
|
497
493
|
});
|
|
498
494
|
await poller.poll();
|
|
@@ -521,14 +517,19 @@ export class MoveCollectionsImpl {
|
|
|
521
517
|
return this.client.sendOperationRequest(args, spec);
|
|
522
518
|
};
|
|
523
519
|
const sendOperationFn = async (args, spec) => {
|
|
524
|
-
var _a;
|
|
525
520
|
let currentRawResponse = undefined;
|
|
526
|
-
const providedCallback =
|
|
521
|
+
const providedCallback = args.options?.onResponse;
|
|
527
522
|
const callback = (rawResponse, flatResponse) => {
|
|
528
523
|
currentRawResponse = rawResponse;
|
|
529
|
-
providedCallback
|
|
524
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
525
|
+
};
|
|
526
|
+
const updatedArgs = {
|
|
527
|
+
...args,
|
|
528
|
+
options: {
|
|
529
|
+
...args.options,
|
|
530
|
+
onResponse: callback
|
|
531
|
+
}
|
|
530
532
|
};
|
|
531
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
532
533
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
533
534
|
return {
|
|
534
535
|
flatResponse,
|
|
@@ -545,8 +546,8 @@ export class MoveCollectionsImpl {
|
|
|
545
546
|
spec: bulkRemoveOperationSpec
|
|
546
547
|
});
|
|
547
548
|
const poller = await createHttpPoller(lro, {
|
|
548
|
-
restoreFrom: options
|
|
549
|
-
intervalInMs: options
|
|
549
|
+
restoreFrom: options?.resumeFrom,
|
|
550
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
550
551
|
resourceLocationConfig: "azure-async-operation"
|
|
551
552
|
});
|
|
552
553
|
await poller.poll();
|