@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.
Files changed (67) hide show
  1. package/dist/browser/lroImpl.js +7 -3
  2. package/dist/browser/lroImpl.js.map +1 -1
  3. package/dist/browser/models/mappers.js +134 -56
  4. package/dist/browser/models/mappers.js.map +1 -1
  5. package/dist/browser/operations/moveCollections.js +122 -121
  6. package/dist/browser/operations/moveCollections.js.map +1 -1
  7. package/dist/browser/operations/moveResources.js +45 -52
  8. package/dist/browser/operations/moveResources.js.map +1 -1
  9. package/dist/browser/operations/operationsDiscoveryOperations.js +1 -0
  10. package/dist/browser/operations/operationsDiscoveryOperations.js.map +1 -1
  11. package/dist/browser/operations/unresolvedDependencies.js +23 -40
  12. package/dist/browser/operations/unresolvedDependencies.js.map +1 -1
  13. package/dist/browser/pagingHelper.js +2 -4
  14. package/dist/browser/pagingHelper.js.map +1 -1
  15. package/dist/browser/resourceMoverServiceAPI.js +17 -5
  16. package/dist/browser/resourceMoverServiceAPI.js.map +1 -1
  17. package/dist/commonjs/lroImpl.js +7 -3
  18. package/dist/commonjs/lroImpl.js.map +1 -1
  19. package/dist/commonjs/models/mappers.js +134 -56
  20. package/dist/commonjs/models/mappers.js.map +1 -1
  21. package/dist/commonjs/operations/moveCollections.js +122 -120
  22. package/dist/commonjs/operations/moveCollections.js.map +1 -1
  23. package/dist/commonjs/operations/moveResources.js +45 -51
  24. package/dist/commonjs/operations/moveResources.js.map +1 -1
  25. package/dist/commonjs/operations/operationsDiscoveryOperations.js +1 -0
  26. package/dist/commonjs/operations/operationsDiscoveryOperations.js.map +1 -1
  27. package/dist/commonjs/operations/unresolvedDependencies.js +23 -39
  28. package/dist/commonjs/operations/unresolvedDependencies.js.map +1 -1
  29. package/dist/commonjs/pagingHelper.js +2 -4
  30. package/dist/commonjs/pagingHelper.js.map +1 -1
  31. package/dist/commonjs/resourceMoverServiceAPI.js +17 -5
  32. package/dist/commonjs/resourceMoverServiceAPI.js.map +1 -1
  33. package/dist/commonjs/tsdoc-metadata.json +11 -11
  34. package/dist/esm/lroImpl.js +7 -3
  35. package/dist/esm/lroImpl.js.map +1 -1
  36. package/dist/esm/models/mappers.js +134 -56
  37. package/dist/esm/models/mappers.js.map +1 -1
  38. package/dist/esm/operations/moveCollections.js +122 -121
  39. package/dist/esm/operations/moveCollections.js.map +1 -1
  40. package/dist/esm/operations/moveResources.js +45 -52
  41. package/dist/esm/operations/moveResources.js.map +1 -1
  42. package/dist/esm/operations/operationsDiscoveryOperations.js +1 -0
  43. package/dist/esm/operations/operationsDiscoveryOperations.js.map +1 -1
  44. package/dist/esm/operations/unresolvedDependencies.js +23 -40
  45. package/dist/esm/operations/unresolvedDependencies.js.map +1 -1
  46. package/dist/esm/pagingHelper.js +2 -4
  47. package/dist/esm/pagingHelper.js.map +1 -1
  48. package/dist/esm/resourceMoverServiceAPI.js +17 -5
  49. package/dist/esm/resourceMoverServiceAPI.js.map +1 -1
  50. package/dist/react-native/lroImpl.js +7 -3
  51. package/dist/react-native/lroImpl.js.map +1 -1
  52. package/dist/react-native/models/mappers.js +134 -56
  53. package/dist/react-native/models/mappers.js.map +1 -1
  54. package/dist/react-native/operations/moveCollections.js +122 -121
  55. package/dist/react-native/operations/moveCollections.js.map +1 -1
  56. package/dist/react-native/operations/moveResources.js +45 -52
  57. package/dist/react-native/operations/moveResources.js.map +1 -1
  58. package/dist/react-native/operations/operationsDiscoveryOperations.js +1 -0
  59. package/dist/react-native/operations/operationsDiscoveryOperations.js.map +1 -1
  60. package/dist/react-native/operations/unresolvedDependencies.js +23 -40
  61. package/dist/react-native/operations/unresolvedDependencies.js.map +1 -1
  62. package/dist/react-native/pagingHelper.js +2 -4
  63. package/dist/react-native/pagingHelper.js.map +1 -1
  64. package/dist/react-native/resourceMoverServiceAPI.js +17 -5
  65. package/dist/react-native/resourceMoverServiceAPI.js.map +1 -1
  66. package/package.json +2 -2
  67. /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 === null || settings === void 0 ? void 0 : settings.maxPageSize) {
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
- return tslib_1.__asyncGenerator(this, arguments, function* listMoveCollectionsBySubscriptionPagingPage_1() {
51
- let result;
52
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
53
- if (!continuationToken) {
54
- result = yield tslib_1.__await(this._listMoveCollectionsBySubscription(options));
55
- let page = result.value || [];
56
- continuationToken = result.nextLink;
57
- (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
58
- yield yield tslib_1.__await(page);
59
- }
60
- while (continuationToken) {
61
- result = yield tslib_1.__await(this._listMoveCollectionsBySubscriptionNext(continuationToken, options));
62
- continuationToken = result.nextLink;
63
- let page = result.value || [];
64
- (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
65
- yield yield tslib_1.__await(page);
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
- return tslib_1.__asyncGenerator(this, arguments, function* listMoveCollectionsBySubscriptionPagingAll_1() {
71
- var _a, e_1, _b, _c;
72
- try {
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 === null || settings === void 0 ? void 0 : settings.maxPageSize) {
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
- return tslib_1.__asyncGenerator(this, arguments, function* listMoveCollectionsByResourceGroupPagingPage_1() {
113
- let result;
114
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
115
- if (!continuationToken) {
116
- result = yield tslib_1.__await(this._listMoveCollectionsByResourceGroup(resourceGroupName, options));
117
- let page = result.value || [];
118
- continuationToken = result.nextLink;
119
- (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
120
- yield yield tslib_1.__await(page);
121
- }
122
- while (continuationToken) {
123
- result = yield tslib_1.__await(this._listMoveCollectionsByResourceGroupNext(resourceGroupName, continuationToken, options));
124
- continuationToken = result.nextLink;
125
- let page = result.value || [];
126
- (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
127
- yield yield tslib_1.__await(page);
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
- return tslib_1.__asyncGenerator(this, arguments, function* listMoveCollectionsByResourceGroupPagingAll_1() {
133
- var _a, e_2, _b, _c;
134
- try {
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 = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
148
+ const providedCallback = args.options?.onResponse;
183
149
  const callback = (rawResponse, flatResponse) => {
184
150
  currentRawResponse = rawResponse;
185
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
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 === null || options === void 0 ? void 0 : options.resumeFrom,
205
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
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 = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
217
+ const providedCallback = args.options?.onResponse;
247
218
  const callback = (rawResponse, flatResponse) => {
248
219
  currentRawResponse = rawResponse;
249
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
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 === null || options === void 0 ? void 0 : options.resumeFrom,
269
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
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 = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
280
+ const providedCallback = args.options?.onResponse;
305
281
  const callback = (rawResponse, flatResponse) => {
306
282
  currentRawResponse = rawResponse;
307
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
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 === null || options === void 0 ? void 0 : options.resumeFrom,
327
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
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 = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
343
+ const providedCallback = args.options?.onResponse;
363
344
  const callback = (rawResponse, flatResponse) => {
364
345
  currentRawResponse = rawResponse;
365
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
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 === null || options === void 0 ? void 0 : options.resumeFrom,
385
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
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 = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
406
+ const providedCallback = args.options?.onResponse;
421
407
  const callback = (rawResponse, flatResponse) => {
422
408
  currentRawResponse = rawResponse;
423
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
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 === null || options === void 0 ? void 0 : options.resumeFrom,
443
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
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 = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
466
+ const providedCallback = args.options?.onResponse;
476
467
  const callback = (rawResponse, flatResponse) => {
477
468
  currentRawResponse = rawResponse;
478
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
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 === null || options === void 0 ? void 0 : options.resumeFrom,
498
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
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 = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
525
+ const providedCallback = args.options?.onResponse;
530
526
  const callback = (rawResponse, flatResponse) => {
531
527
  currentRawResponse = rawResponse;
532
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
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 === null || options === void 0 ? void 0 : options.resumeFrom,
552
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
553
+ restoreFrom: options?.resumeFrom,
554
+ intervalInMs: options?.updateIntervalInMs,
553
555
  resourceLocationConfig: "azure-async-operation"
554
556
  });
555
557
  await poller.poll();