@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
@@ -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 === null || settings === void 0 ? void 0 : settings.maxPageSize) {
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
- return __asyncGenerator(this, arguments, function* listMoveCollectionsBySubscriptionPagingPage_1() {
48
- let result;
49
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
50
- if (!continuationToken) {
51
- result = yield __await(this._listMoveCollectionsBySubscription(options));
52
- let page = result.value || [];
53
- continuationToken = result.nextLink;
54
- setContinuationToken(page, continuationToken);
55
- yield yield __await(page);
56
- }
57
- while (continuationToken) {
58
- result = yield __await(this._listMoveCollectionsBySubscriptionNext(continuationToken, options));
59
- continuationToken = result.nextLink;
60
- let page = result.value || [];
61
- setContinuationToken(page, continuationToken);
62
- yield yield __await(page);
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
- return __asyncGenerator(this, arguments, function* listMoveCollectionsBySubscriptionPagingAll_1() {
68
- var _a, e_1, _b, _c;
69
- try {
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 === null || settings === void 0 ? void 0 : settings.maxPageSize) {
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
- return __asyncGenerator(this, arguments, function* listMoveCollectionsByResourceGroupPagingPage_1() {
110
- let result;
111
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
112
- if (!continuationToken) {
113
- result = yield __await(this._listMoveCollectionsByResourceGroup(resourceGroupName, options));
114
- let page = result.value || [];
115
- continuationToken = result.nextLink;
116
- setContinuationToken(page, continuationToken);
117
- yield yield __await(page);
118
- }
119
- while (continuationToken) {
120
- result = yield __await(this._listMoveCollectionsByResourceGroupNext(resourceGroupName, continuationToken, options));
121
- continuationToken = result.nextLink;
122
- let page = result.value || [];
123
- setContinuationToken(page, continuationToken);
124
- yield yield __await(page);
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
- return __asyncGenerator(this, arguments, function* listMoveCollectionsByResourceGroupPagingAll_1() {
130
- var _a, e_2, _b, _c;
131
- try {
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 = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
144
+ const providedCallback = args.options?.onResponse;
180
145
  const callback = (rawResponse, flatResponse) => {
181
146
  currentRawResponse = rawResponse;
182
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
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 === null || options === void 0 ? void 0 : options.resumeFrom,
202
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
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 = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
213
+ const providedCallback = args.options?.onResponse;
244
214
  const callback = (rawResponse, flatResponse) => {
245
215
  currentRawResponse = rawResponse;
246
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
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 === null || options === void 0 ? void 0 : options.resumeFrom,
266
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
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 = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
276
+ const providedCallback = args.options?.onResponse;
302
277
  const callback = (rawResponse, flatResponse) => {
303
278
  currentRawResponse = rawResponse;
304
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
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 === null || options === void 0 ? void 0 : options.resumeFrom,
324
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
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 = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
339
+ const providedCallback = args.options?.onResponse;
360
340
  const callback = (rawResponse, flatResponse) => {
361
341
  currentRawResponse = rawResponse;
362
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
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 === null || options === void 0 ? void 0 : options.resumeFrom,
382
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
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 = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
402
+ const providedCallback = args.options?.onResponse;
418
403
  const callback = (rawResponse, flatResponse) => {
419
404
  currentRawResponse = rawResponse;
420
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
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 === null || options === void 0 ? void 0 : options.resumeFrom,
440
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
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 = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
462
+ const providedCallback = args.options?.onResponse;
473
463
  const callback = (rawResponse, flatResponse) => {
474
464
  currentRawResponse = rawResponse;
475
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
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 === null || options === void 0 ? void 0 : options.resumeFrom,
495
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
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 = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
521
+ const providedCallback = args.options?.onResponse;
527
522
  const callback = (rawResponse, flatResponse) => {
528
523
  currentRawResponse = rawResponse;
529
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
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 === null || options === void 0 ? void 0 : options.resumeFrom,
549
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
549
+ restoreFrom: options?.resumeFrom,
550
+ intervalInMs: options?.updateIntervalInMs,
550
551
  resourceLocationConfig: "azure-async-operation"
551
552
  });
552
553
  await poller.poll();