@azure/arm-databox 5.0.0-beta.3 → 5.0.0

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 (93) hide show
  1. package/CHANGELOG.md +2 -2
  2. package/LICENSE +1 -1
  3. package/README.md +1 -1
  4. package/dist/index.js +791 -161
  5. package/dist/index.js.map +1 -1
  6. package/dist/index.min.js +1 -1
  7. package/dist/index.min.js.map +1 -1
  8. package/dist-esm/samples-dev/jobsBookShipmentPickUpSample.js +12 -5
  9. package/dist-esm/samples-dev/jobsBookShipmentPickUpSample.js.map +1 -1
  10. package/dist-esm/samples-dev/jobsCancelSample.js +12 -5
  11. package/dist-esm/samples-dev/jobsCancelSample.js.map +1 -1
  12. package/dist-esm/samples-dev/jobsCreateSample.js +93 -86
  13. package/dist-esm/samples-dev/jobsCreateSample.js.map +1 -1
  14. package/dist-esm/samples-dev/jobsDeleteSample.js +12 -5
  15. package/dist-esm/samples-dev/jobsDeleteSample.js.map +1 -1
  16. package/dist-esm/samples-dev/jobsGetSample.js +32 -25
  17. package/dist-esm/samples-dev/jobsGetSample.js.map +1 -1
  18. package/dist-esm/samples-dev/jobsListByResourceGroupSample.js +23 -9
  19. package/dist-esm/samples-dev/jobsListByResourceGroupSample.js.map +1 -1
  20. package/dist-esm/samples-dev/jobsListCredentialsSample.js +24 -10
  21. package/dist-esm/samples-dev/jobsListCredentialsSample.js.map +1 -1
  22. package/dist-esm/samples-dev/jobsListSample.js +22 -8
  23. package/dist-esm/samples-dev/jobsListSample.js.map +1 -1
  24. package/dist-esm/samples-dev/jobsMarkDevicesShippedSample.js +16 -6
  25. package/dist-esm/samples-dev/jobsMarkDevicesShippedSample.js.map +1 -1
  26. package/dist-esm/samples-dev/jobsUpdateSample.js +39 -32
  27. package/dist-esm/samples-dev/jobsUpdateSample.js.map +1 -1
  28. package/dist-esm/samples-dev/mitigateSample.js +16 -6
  29. package/dist-esm/samples-dev/mitigateSample.js.map +1 -1
  30. package/dist-esm/samples-dev/operationsListSample.js +23 -8
  31. package/dist-esm/samples-dev/operationsListSample.js.map +1 -1
  32. package/dist-esm/samples-dev/serviceListAvailableSkusByResourceGroupSample.js +24 -10
  33. package/dist-esm/samples-dev/serviceListAvailableSkusByResourceGroupSample.js.map +1 -1
  34. package/dist-esm/samples-dev/serviceRegionConfigurationByResourceGroupSample.js +11 -4
  35. package/dist-esm/samples-dev/serviceRegionConfigurationByResourceGroupSample.js.map +1 -1
  36. package/dist-esm/samples-dev/serviceRegionConfigurationSample.js +10 -3
  37. package/dist-esm/samples-dev/serviceRegionConfigurationSample.js.map +1 -1
  38. package/dist-esm/samples-dev/serviceValidateAddressSample.js +17 -10
  39. package/dist-esm/samples-dev/serviceValidateAddressSample.js.map +1 -1
  40. package/dist-esm/samples-dev/serviceValidateInputsByResourceGroupSample.js +20 -13
  41. package/dist-esm/samples-dev/serviceValidateInputsByResourceGroupSample.js.map +1 -1
  42. package/dist-esm/samples-dev/serviceValidateInputsSample.js +19 -12
  43. package/dist-esm/samples-dev/serviceValidateInputsSample.js.map +1 -1
  44. package/dist-esm/src/dataBoxManagementClient.js +2 -2
  45. package/dist-esm/src/dataBoxManagementClient.js.map +1 -1
  46. package/dist-esm/src/lroImpl.d.ts +6 -11
  47. package/dist-esm/src/lroImpl.d.ts.map +1 -1
  48. package/dist-esm/src/lroImpl.js +12 -20
  49. package/dist-esm/src/lroImpl.js.map +1 -1
  50. package/dist-esm/src/models/index.d.ts +361 -77
  51. package/dist-esm/src/models/index.d.ts.map +1 -1
  52. package/dist-esm/src/models/index.js +19 -1
  53. package/dist-esm/src/models/index.js.map +1 -1
  54. package/dist-esm/src/models/mappers.d.ts +11 -0
  55. package/dist-esm/src/models/mappers.d.ts.map +1 -1
  56. package/dist-esm/src/models/mappers.js +614 -46
  57. package/dist-esm/src/models/mappers.js.map +1 -1
  58. package/dist-esm/src/models/parameters.js +1 -1
  59. package/dist-esm/src/models/parameters.js.map +1 -1
  60. package/dist-esm/src/operations/jobs.d.ts +4 -4
  61. package/dist-esm/src/operations/jobs.d.ts.map +1 -1
  62. package/dist-esm/src/operations/jobs.js +62 -31
  63. package/dist-esm/src/operations/jobs.js.map +1 -1
  64. package/dist-esm/src/operations/operations.js +12 -6
  65. package/dist-esm/src/operations/operations.js.map +1 -1
  66. package/dist-esm/src/operations/service.js +12 -6
  67. package/dist-esm/src/operations/service.js.map +1 -1
  68. package/dist-esm/src/operationsInterfaces/jobs.d.ts +4 -4
  69. package/dist-esm/src/operationsInterfaces/jobs.d.ts.map +1 -1
  70. package/dist-esm/src/pagingHelper.d.ts +4 -4
  71. package/dist-esm/src/pagingHelper.js +4 -4
  72. package/dist-esm/test/databox_operations_test.spec.d.ts +4 -0
  73. package/dist-esm/test/databox_operations_test.spec.d.ts.map +1 -0
  74. package/dist-esm/test/databox_operations_test.spec.js +78 -0
  75. package/dist-esm/test/databox_operations_test.spec.js.map +1 -0
  76. package/package.json +11 -10
  77. package/review/arm-databox.api.md +123 -10
  78. package/src/dataBoxManagementClient.ts +2 -2
  79. package/src/lroImpl.ts +31 -23
  80. package/src/models/index.ts +336 -30
  81. package/src/models/mappers.ts +634 -42
  82. package/src/models/parameters.ts +1 -1
  83. package/src/operations/jobs.ts +39 -31
  84. package/src/operations/operations.ts +0 -1
  85. package/src/operations/service.ts +0 -1
  86. package/src/operationsInterfaces/jobs.ts +4 -4
  87. package/src/pagingHelper.ts +4 -4
  88. package/types/arm-databox.d.ts +332 -35
  89. package/types/tsdoc-metadata.json +1 -1
  90. package/dist-esm/test/sampleTest.d.ts +0 -2
  91. package/dist-esm/test/sampleTest.d.ts.map +0 -1
  92. package/dist-esm/test/sampleTest.js +0 -38
  93. package/dist-esm/test/sampleTest.js.map +0 -1
package/dist/index.js CHANGED
@@ -37,11 +37,11 @@ var coreRestPipeline__namespace = /*#__PURE__*/_interopNamespace(coreRestPipelin
37
37
  */
38
38
  const pageMap = new WeakMap();
39
39
  /**
40
- * Given a result page from a pageable operation, returns a
41
- * continuation token that can be used to begin paging from
40
+ * Given the last `.value` produced by the `byPage` iterator,
41
+ * returns a continuation token that can be used to begin paging from
42
42
  * that point later.
43
- * @param page A result object from calling .byPage() on a paged operation.
44
- * @returns The continuation token that can be passed into byPage().
43
+ * @param page An object from accessing `value` on the IteratorResult from a `byPage` iterator.
44
+ * @returns The continuation token that can be passed into byPage() during future calls.
45
45
  */
46
46
  function getContinuationToken(page) {
47
47
  var _a;
@@ -236,6 +236,24 @@ exports.KnownDataCenterCode = void 0;
236
236
  KnownDataCenterCode["CH1"] = "CH1";
237
237
  /** DSM05 */
238
238
  KnownDataCenterCode["DSM05"] = "DSM05";
239
+ /** DUB07 */
240
+ KnownDataCenterCode["DUB07"] = "DUB07";
241
+ /** PNQ01 */
242
+ KnownDataCenterCode["PNQ01"] = "PNQ01";
243
+ /** SVG20 */
244
+ KnownDataCenterCode["SVG20"] = "SVG20";
245
+ /** OSA02 */
246
+ KnownDataCenterCode["OSA02"] = "OSA02";
247
+ /** OSA22 */
248
+ KnownDataCenterCode["OSA22"] = "OSA22";
249
+ /** PAR22 */
250
+ KnownDataCenterCode["PAR22"] = "PAR22";
251
+ /** BN7 */
252
+ KnownDataCenterCode["BN7"] = "BN7";
253
+ /** SN6 */
254
+ KnownDataCenterCode["SN6"] = "SN6";
255
+ /** BJS20 */
256
+ KnownDataCenterCode["BJS20"] = "BJS20";
239
257
  })(exports.KnownDataCenterCode || (exports.KnownDataCenterCode = {}));
240
258
  /** Known values of {@link CopyStatus} that the service accepts. */
241
259
  exports.KnownCopyStatus = void 0;
@@ -274,7 +292,7 @@ exports.KnownCopyStatus = void 0;
274
292
  KnownCopyStatus["DriveNotDetected"] = "DriveNotDetected";
275
293
  /** Copy failed due to corrupted drive. */
276
294
  KnownCopyStatus["DriveCorrupted"] = "DriveCorrupted";
277
- /** Copy failed due to modified or removed metadata files. */
295
+ /** Copy failed due to modified or removed metadata files. */
278
296
  KnownCopyStatus["MetadataFilesModifiedOrRemoved"] = "MetadataFilesModifiedOrRemoved";
279
297
  })(exports.KnownCopyStatus || (exports.KnownCopyStatus = {}));
280
298
 
@@ -495,20 +513,21 @@ const CloudError = {
495
513
  name: "Composite",
496
514
  className: "CloudError",
497
515
  modelProperties: {
498
- code: {
499
- serializedName: "code",
500
- type: {
501
- name: "String"
502
- }
503
- },
504
- message: {
505
- serializedName: "message",
516
+ additionalInfo: {
517
+ serializedName: "additionalInfo",
518
+ readOnly: true,
506
519
  type: {
507
- name: "String"
520
+ name: "Sequence",
521
+ element: {
522
+ type: {
523
+ name: "Composite",
524
+ className: "AdditionalErrorInfo"
525
+ }
526
+ }
508
527
  }
509
528
  },
510
- target: {
511
- serializedName: "target",
529
+ code: {
530
+ serializedName: "code",
512
531
  type: {
513
532
  name: "String"
514
533
  }
@@ -526,17 +545,16 @@ const CloudError = {
526
545
  }
527
546
  }
528
547
  },
529
- additionalInfo: {
530
- serializedName: "additionalInfo",
531
- readOnly: true,
548
+ message: {
549
+ serializedName: "message",
532
550
  type: {
533
- name: "Sequence",
534
- element: {
535
- type: {
536
- name: "Composite",
537
- className: "AdditionalErrorInfo"
538
- }
539
- }
551
+ name: "String"
552
+ }
553
+ },
554
+ target: {
555
+ serializedName: "target",
556
+ type: {
557
+ name: "String"
540
558
  }
541
559
  }
542
560
  }
@@ -547,18 +565,18 @@ const AdditionalErrorInfo = {
547
565
  name: "Composite",
548
566
  className: "AdditionalErrorInfo",
549
567
  modelProperties: {
550
- type: {
551
- serializedName: "type",
552
- type: {
553
- name: "String"
554
- }
555
- },
556
568
  info: {
557
569
  serializedName: "info",
558
570
  type: {
559
571
  name: "Dictionary",
560
572
  value: { type: { name: "any" } }
561
573
  }
574
+ },
575
+ type: {
576
+ serializedName: "type",
577
+ type: {
578
+ name: "String"
579
+ }
562
580
  }
563
581
  }
564
582
  }
@@ -658,6 +676,13 @@ const JobDetails = {
658
676
  className: "Preferences"
659
677
  }
660
678
  },
679
+ reverseShippingDetails: {
680
+ serializedName: "reverseShippingDetails",
681
+ type: {
682
+ name: "Composite",
683
+ className: "ReverseShippingDetails"
684
+ }
685
+ },
661
686
  copyLogDetails: {
662
687
  serializedName: "copyLogDetails",
663
688
  readOnly: true,
@@ -685,6 +710,13 @@ const JobDetails = {
685
710
  name: "String"
686
711
  }
687
712
  },
713
+ deviceErasureDetails: {
714
+ serializedName: "deviceErasureDetails",
715
+ type: {
716
+ name: "Composite",
717
+ className: "DeviceErasureDetails"
718
+ }
719
+ },
688
720
  keyEncryptionKey: {
689
721
  serializedName: "keyEncryptionKey",
690
722
  type: {
@@ -706,7 +738,13 @@ const JobDetails = {
706
738
  element: {
707
739
  type: {
708
740
  name: "Enum",
709
- allowedValues: ["None", "MoveToCleanUpDevice", "Resume"]
741
+ allowedValues: [
742
+ "None",
743
+ "MoveToCleanUpDevice",
744
+ "Resume",
745
+ "Restart",
746
+ "ReachOutToOperation"
747
+ ]
710
748
  }
711
749
  }
712
750
  }
@@ -771,7 +809,8 @@ const JobStages = {
771
809
  "SucceededWithWarnings",
772
810
  "WaitingForCustomerActionForKek",
773
811
  "WaitingForCustomerActionForCleanUp",
774
- "CustomerActionPerformedForCleanUp"
812
+ "CustomerActionPerformedForCleanUp",
813
+ "CustomerActionPerformed"
775
814
  ]
776
815
  }
777
816
  },
@@ -942,6 +981,18 @@ const ShippingAddress = {
942
981
  name: "Enum",
943
982
  allowedValues: ["None", "Residential", "Commercial"]
944
983
  }
984
+ },
985
+ skipAddressValidation: {
986
+ serializedName: "skipAddressValidation",
987
+ type: {
988
+ name: "Boolean"
989
+ }
990
+ },
991
+ taxIdentificationNumber: {
992
+ serializedName: "taxIdentificationNumber",
993
+ type: {
994
+ name: "String"
995
+ }
945
996
  }
946
997
  }
947
998
  }
@@ -1311,12 +1362,32 @@ const Preferences = {
1311
1362
  className: "TransportPreferences"
1312
1363
  }
1313
1364
  },
1365
+ reverseTransportPreferences: {
1366
+ serializedName: "reverseTransportPreferences",
1367
+ type: {
1368
+ name: "Composite",
1369
+ className: "TransportPreferences"
1370
+ }
1371
+ },
1314
1372
  encryptionPreferences: {
1315
1373
  serializedName: "encryptionPreferences",
1316
1374
  type: {
1317
1375
  name: "Composite",
1318
1376
  className: "EncryptionPreferences"
1319
1377
  }
1378
+ },
1379
+ storageAccountAccessTierPreferences: {
1380
+ serializedName: "storageAccountAccessTierPreferences",
1381
+ type: {
1382
+ name: "Sequence",
1383
+ element: {
1384
+ defaultValue: "Archive",
1385
+ isConstant: true,
1386
+ type: {
1387
+ name: "String"
1388
+ }
1389
+ }
1390
+ }
1320
1391
  }
1321
1392
  }
1322
1393
  }
@@ -1333,6 +1404,13 @@ const TransportPreferences = {
1333
1404
  name: "Enum",
1334
1405
  allowedValues: ["CustomerManaged", "MicrosoftManaged"]
1335
1406
  }
1407
+ },
1408
+ isUpdated: {
1409
+ serializedName: "isUpdated",
1410
+ readOnly: true,
1411
+ type: {
1412
+ name: "Boolean"
1413
+ }
1336
1414
  }
1337
1415
  }
1338
1416
  }
@@ -1349,6 +1427,82 @@ const EncryptionPreferences = {
1349
1427
  name: "Enum",
1350
1428
  allowedValues: ["Enabled", "Disabled"]
1351
1429
  }
1430
+ },
1431
+ hardwareEncryption: {
1432
+ serializedName: "hardwareEncryption",
1433
+ type: {
1434
+ name: "Enum",
1435
+ allowedValues: ["Enabled", "Disabled"]
1436
+ }
1437
+ }
1438
+ }
1439
+ }
1440
+ };
1441
+ const ReverseShippingDetails = {
1442
+ type: {
1443
+ name: "Composite",
1444
+ className: "ReverseShippingDetails",
1445
+ modelProperties: {
1446
+ contactDetails: {
1447
+ serializedName: "contactDetails",
1448
+ type: {
1449
+ name: "Composite",
1450
+ className: "ContactInfo"
1451
+ }
1452
+ },
1453
+ shippingAddress: {
1454
+ serializedName: "shippingAddress",
1455
+ type: {
1456
+ name: "Composite",
1457
+ className: "ShippingAddress"
1458
+ }
1459
+ },
1460
+ isUpdated: {
1461
+ serializedName: "isUpdated",
1462
+ readOnly: true,
1463
+ type: {
1464
+ name: "Boolean"
1465
+ }
1466
+ }
1467
+ }
1468
+ }
1469
+ };
1470
+ const ContactInfo = {
1471
+ type: {
1472
+ name: "Composite",
1473
+ className: "ContactInfo",
1474
+ modelProperties: {
1475
+ contactName: {
1476
+ constraints: {
1477
+ MinLength: 1
1478
+ },
1479
+ serializedName: "contactName",
1480
+ required: true,
1481
+ type: {
1482
+ name: "String"
1483
+ }
1484
+ },
1485
+ phone: {
1486
+ constraints: {
1487
+ MinLength: 1
1488
+ },
1489
+ serializedName: "phone",
1490
+ required: true,
1491
+ type: {
1492
+ name: "String"
1493
+ }
1494
+ },
1495
+ phoneExtension: {
1496
+ serializedName: "phoneExtension",
1497
+ type: {
1498
+ name: "String"
1499
+ }
1500
+ },
1501
+ mobile: {
1502
+ serializedName: "mobile",
1503
+ type: {
1504
+ name: "String"
1505
+ }
1352
1506
  }
1353
1507
  }
1354
1508
  }
@@ -1379,6 +1533,43 @@ const CopyLogDetails = {
1379
1533
  }
1380
1534
  }
1381
1535
  };
1536
+ const DeviceErasureDetails = {
1537
+ type: {
1538
+ name: "Composite",
1539
+ className: "DeviceErasureDetails",
1540
+ modelProperties: {
1541
+ deviceErasureStatus: {
1542
+ serializedName: "deviceErasureStatus",
1543
+ readOnly: true,
1544
+ type: {
1545
+ name: "Enum",
1546
+ allowedValues: [
1547
+ "None",
1548
+ "InProgress",
1549
+ "Succeeded",
1550
+ "Failed",
1551
+ "Cancelled",
1552
+ "Cancelling",
1553
+ "SucceededWithErrors",
1554
+ "WaitingForCustomerAction",
1555
+ "SucceededWithWarnings",
1556
+ "WaitingForCustomerActionForKek",
1557
+ "WaitingForCustomerActionForCleanUp",
1558
+ "CustomerActionPerformedForCleanUp",
1559
+ "CustomerActionPerformed"
1560
+ ]
1561
+ }
1562
+ },
1563
+ erasureOrDestructionCertificateSasKey: {
1564
+ serializedName: "erasureOrDestructionCertificateSasKey",
1565
+ readOnly: true,
1566
+ type: {
1567
+ name: "String"
1568
+ }
1569
+ }
1570
+ }
1571
+ }
1572
+ };
1382
1573
  const KeyEncryptionKey = {
1383
1574
  type: {
1384
1575
  name: "Composite",
@@ -1471,7 +1662,13 @@ const LastMitigationActionOnJob = {
1471
1662
  serializedName: "customerResolution",
1472
1663
  type: {
1473
1664
  name: "Enum",
1474
- allowedValues: ["None", "MoveToCleanUpDevice", "Resume"]
1665
+ allowedValues: [
1666
+ "None",
1667
+ "MoveToCleanUpDevice",
1668
+ "Resume",
1669
+ "Restart",
1670
+ "ReachOutToOperation"
1671
+ ]
1475
1672
  }
1476
1673
  }
1477
1674
  }
@@ -1720,10 +1917,33 @@ const MitigateJobRequest = {
1720
1917
  modelProperties: {
1721
1918
  customerResolutionCode: {
1722
1919
  serializedName: "customerResolutionCode",
1723
- required: true,
1724
1920
  type: {
1725
1921
  name: "Enum",
1726
- allowedValues: ["None", "MoveToCleanUpDevice", "Resume"]
1922
+ allowedValues: [
1923
+ "None",
1924
+ "MoveToCleanUpDevice",
1925
+ "Resume",
1926
+ "Restart",
1927
+ "ReachOutToOperation"
1928
+ ]
1929
+ }
1930
+ },
1931
+ serialNumberCustomerResolutionMap: {
1932
+ serializedName: "serialNumberCustomerResolutionMap",
1933
+ type: {
1934
+ name: "Dictionary",
1935
+ value: {
1936
+ type: {
1937
+ name: "Enum",
1938
+ allowedValues: [
1939
+ "None",
1940
+ "MoveToCleanUpDevice",
1941
+ "Resume",
1942
+ "Restart",
1943
+ "ReachOutToOperation"
1944
+ ]
1945
+ }
1946
+ }
1727
1947
  }
1728
1948
  }
1729
1949
  }
@@ -1930,6 +2150,18 @@ const SkuInformation = {
1930
2150
  type: {
1931
2151
  name: "String"
1932
2152
  }
2153
+ },
2154
+ countriesWithinCommerceBoundary: {
2155
+ serializedName: "properties.countriesWithinCommerceBoundary",
2156
+ readOnly: true,
2157
+ type: {
2158
+ name: "Sequence",
2159
+ element: {
2160
+ type: {
2161
+ name: "String"
2162
+ }
2163
+ }
2164
+ }
1933
2165
  }
1934
2166
  }
1935
2167
  }
@@ -2235,6 +2467,20 @@ const UpdateJobDetails = {
2235
2467
  className: "ShippingAddress"
2236
2468
  }
2237
2469
  },
2470
+ reverseShippingDetails: {
2471
+ serializedName: "reverseShippingDetails",
2472
+ type: {
2473
+ name: "Composite",
2474
+ className: "ReverseShippingDetails"
2475
+ }
2476
+ },
2477
+ preferences: {
2478
+ serializedName: "preferences",
2479
+ type: {
2480
+ name: "Composite",
2481
+ className: "Preferences"
2482
+ }
2483
+ },
2238
2484
  keyEncryptionKey: {
2239
2485
  serializedName: "keyEncryptionKey",
2240
2486
  type: {
@@ -2713,102 +2959,269 @@ const ShareCredentialDetails = {
2713
2959
  serializedName: "shareType",
2714
2960
  readOnly: true,
2715
2961
  type: {
2716
- name: "Enum",
2717
- allowedValues: [
2718
- "UnknownType",
2719
- "HCS",
2720
- "BlockBlob",
2721
- "PageBlob",
2722
- "AzureFile",
2723
- "ManagedDisk"
2724
- ]
2962
+ name: "Enum",
2963
+ allowedValues: [
2964
+ "UnknownType",
2965
+ "HCS",
2966
+ "BlockBlob",
2967
+ "PageBlob",
2968
+ "AzureFile",
2969
+ "ManagedDisk"
2970
+ ]
2971
+ }
2972
+ },
2973
+ userName: {
2974
+ serializedName: "userName",
2975
+ readOnly: true,
2976
+ type: {
2977
+ name: "String"
2978
+ }
2979
+ },
2980
+ password: {
2981
+ serializedName: "password",
2982
+ readOnly: true,
2983
+ type: {
2984
+ name: "String"
2985
+ }
2986
+ },
2987
+ supportedAccessProtocols: {
2988
+ serializedName: "supportedAccessProtocols",
2989
+ readOnly: true,
2990
+ type: {
2991
+ name: "Sequence",
2992
+ element: {
2993
+ type: {
2994
+ name: "Enum",
2995
+ allowedValues: ["SMB", "NFS"]
2996
+ }
2997
+ }
2998
+ }
2999
+ }
3000
+ }
3001
+ }
3002
+ };
3003
+ const ApplianceNetworkConfiguration = {
3004
+ type: {
3005
+ name: "Composite",
3006
+ className: "ApplianceNetworkConfiguration",
3007
+ modelProperties: {
3008
+ name: {
3009
+ serializedName: "name",
3010
+ readOnly: true,
3011
+ type: {
3012
+ name: "String"
3013
+ }
3014
+ },
3015
+ macAddress: {
3016
+ serializedName: "macAddress",
3017
+ readOnly: true,
3018
+ type: {
3019
+ name: "String"
3020
+ }
3021
+ }
3022
+ }
3023
+ }
3024
+ };
3025
+ const ArmBaseObject = {
3026
+ type: {
3027
+ name: "Composite",
3028
+ className: "ArmBaseObject",
3029
+ modelProperties: {
3030
+ name: {
3031
+ serializedName: "name",
3032
+ readOnly: true,
3033
+ type: {
3034
+ name: "String"
3035
+ }
3036
+ },
3037
+ id: {
3038
+ serializedName: "id",
3039
+ readOnly: true,
3040
+ type: {
3041
+ name: "String"
3042
+ }
3043
+ },
3044
+ type: {
3045
+ serializedName: "type",
3046
+ readOnly: true,
3047
+ type: {
3048
+ name: "String"
3049
+ }
3050
+ }
3051
+ }
3052
+ }
3053
+ };
3054
+ const GranularCopyLogDetails = {
3055
+ type: {
3056
+ name: "Composite",
3057
+ className: "GranularCopyLogDetails",
3058
+ uberParent: "GranularCopyLogDetails",
3059
+ polymorphicDiscriminator: {
3060
+ serializedName: "copyLogDetailsType",
3061
+ clientName: "copyLogDetailsType"
3062
+ },
3063
+ modelProperties: {
3064
+ copyLogDetailsType: {
3065
+ serializedName: "copyLogDetailsType",
3066
+ required: true,
3067
+ type: {
3068
+ name: "Enum",
3069
+ allowedValues: [
3070
+ "DataBox",
3071
+ "DataBoxDisk",
3072
+ "DataBoxHeavy",
3073
+ "DataBoxCustomerDisk"
3074
+ ]
3075
+ }
3076
+ }
3077
+ }
3078
+ }
3079
+ };
3080
+ const CopyProgress = {
3081
+ type: {
3082
+ name: "Composite",
3083
+ className: "CopyProgress",
3084
+ modelProperties: {
3085
+ storageAccountName: {
3086
+ serializedName: "storageAccountName",
3087
+ readOnly: true,
3088
+ type: {
3089
+ name: "String"
3090
+ }
3091
+ },
3092
+ transferType: {
3093
+ serializedName: "transferType",
3094
+ readOnly: true,
3095
+ type: {
3096
+ name: "Enum",
3097
+ allowedValues: ["ImportToAzure", "ExportFromAzure"]
3098
+ }
3099
+ },
3100
+ dataAccountType: {
3101
+ serializedName: "dataAccountType",
3102
+ readOnly: true,
3103
+ type: {
3104
+ name: "Enum",
3105
+ allowedValues: ["StorageAccount", "ManagedDisk"]
3106
+ }
3107
+ },
3108
+ accountId: {
3109
+ serializedName: "accountId",
3110
+ readOnly: true,
3111
+ type: {
3112
+ name: "String"
3113
+ }
3114
+ },
3115
+ bytesProcessed: {
3116
+ serializedName: "bytesProcessed",
3117
+ readOnly: true,
3118
+ type: {
3119
+ name: "Number"
3120
+ }
3121
+ },
3122
+ totalBytesToProcess: {
3123
+ serializedName: "totalBytesToProcess",
3124
+ readOnly: true,
3125
+ type: {
3126
+ name: "Number"
3127
+ }
3128
+ },
3129
+ filesProcessed: {
3130
+ serializedName: "filesProcessed",
3131
+ readOnly: true,
3132
+ type: {
3133
+ name: "Number"
3134
+ }
3135
+ },
3136
+ totalFilesToProcess: {
3137
+ serializedName: "totalFilesToProcess",
3138
+ readOnly: true,
3139
+ type: {
3140
+ name: "Number"
3141
+ }
3142
+ },
3143
+ invalidFilesProcessed: {
3144
+ serializedName: "invalidFilesProcessed",
3145
+ readOnly: true,
3146
+ type: {
3147
+ name: "Number"
2725
3148
  }
2726
3149
  },
2727
- userName: {
2728
- serializedName: "userName",
3150
+ invalidFileBytesUploaded: {
3151
+ serializedName: "invalidFileBytesUploaded",
2729
3152
  readOnly: true,
2730
3153
  type: {
2731
- name: "String"
3154
+ name: "Number"
2732
3155
  }
2733
3156
  },
2734
- password: {
2735
- serializedName: "password",
3157
+ renamedContainerCount: {
3158
+ serializedName: "renamedContainerCount",
2736
3159
  readOnly: true,
2737
3160
  type: {
2738
- name: "String"
3161
+ name: "Number"
2739
3162
  }
2740
3163
  },
2741
- supportedAccessProtocols: {
2742
- serializedName: "supportedAccessProtocols",
3164
+ filesErroredOut: {
3165
+ serializedName: "filesErroredOut",
2743
3166
  readOnly: true,
2744
3167
  type: {
2745
- name: "Sequence",
2746
- element: {
2747
- type: {
2748
- name: "Enum",
2749
- allowedValues: ["SMB", "NFS"]
2750
- }
2751
- }
3168
+ name: "Number"
2752
3169
  }
2753
- }
2754
- }
2755
- }
2756
- };
2757
- const ApplianceNetworkConfiguration = {
2758
- type: {
2759
- name: "Composite",
2760
- className: "ApplianceNetworkConfiguration",
2761
- modelProperties: {
2762
- name: {
2763
- serializedName: "name",
3170
+ },
3171
+ directoriesErroredOut: {
3172
+ serializedName: "directoriesErroredOut",
2764
3173
  readOnly: true,
2765
3174
  type: {
2766
- name: "String"
3175
+ name: "Number"
2767
3176
  }
2768
3177
  },
2769
- macAddress: {
2770
- serializedName: "macAddress",
3178
+ invalidDirectoriesProcessed: {
3179
+ serializedName: "invalidDirectoriesProcessed",
2771
3180
  readOnly: true,
2772
3181
  type: {
2773
- name: "String"
3182
+ name: "Number"
2774
3183
  }
2775
- }
2776
- }
2777
- }
2778
- };
2779
- const ArmBaseObject = {
2780
- type: {
2781
- name: "Composite",
2782
- className: "ArmBaseObject",
2783
- modelProperties: {
2784
- name: {
2785
- serializedName: "name",
3184
+ },
3185
+ isEnumerationInProgress: {
3186
+ serializedName: "isEnumerationInProgress",
2786
3187
  readOnly: true,
2787
3188
  type: {
2788
- name: "String"
3189
+ name: "Boolean"
2789
3190
  }
2790
3191
  },
2791
- id: {
2792
- serializedName: "id",
2793
- readOnly: true,
3192
+ error: {
3193
+ serializedName: "error",
2794
3194
  type: {
2795
- name: "String"
3195
+ name: "Composite",
3196
+ className: "CloudError"
2796
3197
  }
2797
3198
  },
2798
- type: {
2799
- serializedName: "type",
3199
+ actions: {
3200
+ serializedName: "actions",
2800
3201
  readOnly: true,
2801
3202
  type: {
2802
- name: "String"
3203
+ name: "Sequence",
3204
+ element: {
3205
+ type: {
3206
+ name: "Enum",
3207
+ allowedValues: [
3208
+ "None",
3209
+ "MoveToCleanUpDevice",
3210
+ "Resume",
3211
+ "Restart",
3212
+ "ReachOutToOperation"
3213
+ ]
3214
+ }
3215
+ }
2803
3216
  }
2804
3217
  }
2805
3218
  }
2806
3219
  }
2807
3220
  };
2808
- const CopyProgress = {
3221
+ const GranularCopyProgress = {
2809
3222
  type: {
2810
3223
  name: "Composite",
2811
- className: "CopyProgress",
3224
+ className: "GranularCopyProgress",
2812
3225
  modelProperties: {
2813
3226
  storageAccountName: {
2814
3227
  serializedName: "storageAccountName",
@@ -2916,6 +3329,32 @@ const CopyProgress = {
2916
3329
  type: {
2917
3330
  name: "Boolean"
2918
3331
  }
3332
+ },
3333
+ error: {
3334
+ serializedName: "error",
3335
+ type: {
3336
+ name: "Composite",
3337
+ className: "CloudError"
3338
+ }
3339
+ },
3340
+ actions: {
3341
+ serializedName: "actions",
3342
+ readOnly: true,
3343
+ type: {
3344
+ name: "Sequence",
3345
+ element: {
3346
+ type: {
3347
+ name: "Enum",
3348
+ allowedValues: [
3349
+ "None",
3350
+ "MoveToCleanUpDevice",
3351
+ "Resume",
3352
+ "Restart",
3353
+ "ReachOutToOperation"
3354
+ ]
3355
+ }
3356
+ }
3357
+ }
2919
3358
  }
2920
3359
  }
2921
3360
  }
@@ -3039,6 +3478,32 @@ const DataBoxDiskCopyProgress = {
3039
3478
  type: {
3040
3479
  name: "String"
3041
3480
  }
3481
+ },
3482
+ error: {
3483
+ serializedName: "error",
3484
+ type: {
3485
+ name: "Composite",
3486
+ className: "CloudError"
3487
+ }
3488
+ },
3489
+ actions: {
3490
+ serializedName: "actions",
3491
+ readOnly: true,
3492
+ type: {
3493
+ name: "Sequence",
3494
+ element: {
3495
+ type: {
3496
+ name: "Enum",
3497
+ allowedValues: [
3498
+ "None",
3499
+ "MoveToCleanUpDevice",
3500
+ "Resume",
3501
+ "Restart",
3502
+ "ReachOutToOperation"
3503
+ ]
3504
+ }
3505
+ }
3506
+ }
3042
3507
  }
3043
3508
  }
3044
3509
  }
@@ -3231,6 +3696,30 @@ const DataBoxDiskJobDetails = {
3231
3696
  }
3232
3697
  }
3233
3698
  }
3699
+ }, granularCopyProgress: {
3700
+ serializedName: "granularCopyProgress",
3701
+ readOnly: true,
3702
+ type: {
3703
+ name: "Sequence",
3704
+ element: {
3705
+ type: {
3706
+ name: "Composite",
3707
+ className: "DataBoxDiskGranularCopyProgress"
3708
+ }
3709
+ }
3710
+ }
3711
+ }, granularCopyLogDetails: {
3712
+ serializedName: "granularCopyLogDetails",
3713
+ readOnly: true,
3714
+ type: {
3715
+ name: "Sequence",
3716
+ element: {
3717
+ type: {
3718
+ name: "Composite",
3719
+ className: "DataBoxDiskGranularCopyLogDetails"
3720
+ }
3721
+ }
3722
+ }
3234
3723
  }, disksAndSizeDetails: {
3235
3724
  serializedName: "disksAndSizeDetails",
3236
3725
  readOnly: true,
@@ -3617,6 +4106,20 @@ const JobResource = {
3617
4106
  type: {
3618
4107
  name: "Boolean"
3619
4108
  }
4109
+ }, reverseShippingDetailsUpdate: {
4110
+ serializedName: "properties.reverseShippingDetailsUpdate",
4111
+ readOnly: true,
4112
+ type: {
4113
+ name: "Enum",
4114
+ allowedValues: ["Enabled", "Disabled", "NotSupported"]
4115
+ }
4116
+ }, reverseTransportPreferenceUpdate: {
4117
+ serializedName: "properties.reverseTransportPreferenceUpdate",
4118
+ readOnly: true,
4119
+ type: {
4120
+ name: "Enum",
4121
+ allowedValues: ["Enabled", "Disabled", "NotSupported"]
4122
+ }
3620
4123
  }, isPrepareToShipEnabled: {
3621
4124
  serializedName: "properties.isPrepareToShipEnabled",
3622
4125
  readOnly: true,
@@ -4126,6 +4629,40 @@ const HeavyScheduleAvailabilityRequest = {
4126
4629
  modelProperties: Object.assign({}, ScheduleAvailabilityRequest.type.modelProperties)
4127
4630
  }
4128
4631
  };
4632
+ const DataBoxDiskGranularCopyLogDetails = {
4633
+ serializedName: "DataBoxCustomerDisk",
4634
+ type: {
4635
+ name: "Composite",
4636
+ className: "DataBoxDiskGranularCopyLogDetails",
4637
+ uberParent: "GranularCopyLogDetails",
4638
+ polymorphicDiscriminator: GranularCopyLogDetails.type.polymorphicDiscriminator,
4639
+ modelProperties: Object.assign(Object.assign({}, GranularCopyLogDetails.type.modelProperties), { serialNumber: {
4640
+ serializedName: "serialNumber",
4641
+ readOnly: true,
4642
+ type: {
4643
+ name: "String"
4644
+ }
4645
+ }, accountId: {
4646
+ serializedName: "accountId",
4647
+ readOnly: true,
4648
+ type: {
4649
+ name: "String"
4650
+ }
4651
+ }, errorLogLink: {
4652
+ serializedName: "errorLogLink",
4653
+ readOnly: true,
4654
+ type: {
4655
+ name: "String"
4656
+ }
4657
+ }, verboseLogLink: {
4658
+ serializedName: "verboseLogLink",
4659
+ readOnly: true,
4660
+ type: {
4661
+ name: "String"
4662
+ }
4663
+ } })
4664
+ }
4665
+ };
4129
4666
  const DataBoxCustomerDiskCopyProgress = {
4130
4667
  type: {
4131
4668
  name: "Composite",
@@ -4145,6 +4682,53 @@ const DataBoxCustomerDiskCopyProgress = {
4145
4682
  } })
4146
4683
  }
4147
4684
  };
4685
+ const DataBoxDiskGranularCopyProgress = {
4686
+ type: {
4687
+ name: "Composite",
4688
+ className: "DataBoxDiskGranularCopyProgress",
4689
+ modelProperties: Object.assign(Object.assign({}, GranularCopyProgress.type.modelProperties), { serialNumber: {
4690
+ serializedName: "serialNumber",
4691
+ readOnly: true,
4692
+ type: {
4693
+ name: "String"
4694
+ }
4695
+ }, copyStatus: {
4696
+ serializedName: "copyStatus",
4697
+ readOnly: true,
4698
+ type: {
4699
+ name: "String"
4700
+ }
4701
+ } })
4702
+ }
4703
+ };
4704
+ const JobsDeleteHeaders = {
4705
+ type: {
4706
+ name: "Composite",
4707
+ className: "JobsDeleteHeaders",
4708
+ modelProperties: {
4709
+ location: {
4710
+ serializedName: "location",
4711
+ type: {
4712
+ name: "String"
4713
+ }
4714
+ }
4715
+ }
4716
+ }
4717
+ };
4718
+ const JobsUpdateHeaders = {
4719
+ type: {
4720
+ name: "Composite",
4721
+ className: "JobsUpdateHeaders",
4722
+ modelProperties: {
4723
+ location: {
4724
+ serializedName: "location",
4725
+ type: {
4726
+ name: "String"
4727
+ }
4728
+ }
4729
+ }
4730
+ }
4731
+ };
4148
4732
  let discriminators = {
4149
4733
  JobDetails: JobDetails,
4150
4734
  DataAccountDetails: DataAccountDetails,
@@ -4155,6 +4739,7 @@ let discriminators = {
4155
4739
  ValidationRequest: ValidationRequest,
4156
4740
  JobSecrets: JobSecrets,
4157
4741
  ScheduleAvailabilityRequest: ScheduleAvailabilityRequest,
4742
+ GranularCopyLogDetails: GranularCopyLogDetails,
4158
4743
  "JobDetails.DataBoxCustomerDisk": DataBoxCustomerDiskJobDetails,
4159
4744
  "JobDetails.DataBoxDisk": DataBoxDiskJobDetails,
4160
4745
  "JobDetails.DataBoxHeavy": DataBoxHeavyJobDetails,
@@ -4186,7 +4771,8 @@ let discriminators = {
4186
4771
  "JobSecrets.DataBox": DataboxJobSecrets,
4187
4772
  "ScheduleAvailabilityRequest.DataBox": DataBoxScheduleAvailabilityRequest,
4188
4773
  "ScheduleAvailabilityRequest.DataBoxDisk": DiskScheduleAvailabilityRequest,
4189
- "ScheduleAvailabilityRequest.DataBoxHeavy": HeavyScheduleAvailabilityRequest
4774
+ "ScheduleAvailabilityRequest.DataBoxHeavy": HeavyScheduleAvailabilityRequest,
4775
+ "GranularCopyLogDetails.DataBoxCustomerDisk": DataBoxDiskGranularCopyLogDetails
4190
4776
  };
4191
4777
 
4192
4778
  var Mappers = /*#__PURE__*/Object.freeze({
@@ -4220,7 +4806,10 @@ var Mappers = /*#__PURE__*/Object.freeze({
4220
4806
  Preferences: Preferences,
4221
4807
  TransportPreferences: TransportPreferences,
4222
4808
  EncryptionPreferences: EncryptionPreferences,
4809
+ ReverseShippingDetails: ReverseShippingDetails,
4810
+ ContactInfo: ContactInfo,
4223
4811
  CopyLogDetails: CopyLogDetails,
4812
+ DeviceErasureDetails: DeviceErasureDetails,
4224
4813
  KeyEncryptionKey: KeyEncryptionKey,
4225
4814
  IdentityProperties: IdentityProperties,
4226
4815
  UserAssignedProperties: UserAssignedProperties,
@@ -4268,7 +4857,9 @@ var Mappers = /*#__PURE__*/Object.freeze({
4268
4857
  ShareCredentialDetails: ShareCredentialDetails,
4269
4858
  ApplianceNetworkConfiguration: ApplianceNetworkConfiguration,
4270
4859
  ArmBaseObject: ArmBaseObject,
4860
+ GranularCopyLogDetails: GranularCopyLogDetails,
4271
4861
  CopyProgress: CopyProgress,
4862
+ GranularCopyProgress: GranularCopyProgress,
4272
4863
  ImportDiskDetails: ImportDiskDetails,
4273
4864
  ExportDiskDetails: ExportDiskDetails,
4274
4865
  DiskSecret: DiskSecret,
@@ -4308,7 +4899,11 @@ var Mappers = /*#__PURE__*/Object.freeze({
4308
4899
  DataBoxScheduleAvailabilityRequest: DataBoxScheduleAvailabilityRequest,
4309
4900
  DiskScheduleAvailabilityRequest: DiskScheduleAvailabilityRequest,
4310
4901
  HeavyScheduleAvailabilityRequest: HeavyScheduleAvailabilityRequest,
4902
+ DataBoxDiskGranularCopyLogDetails: DataBoxDiskGranularCopyLogDetails,
4311
4903
  DataBoxCustomerDiskCopyProgress: DataBoxCustomerDiskCopyProgress,
4904
+ DataBoxDiskGranularCopyProgress: DataBoxDiskGranularCopyProgress,
4905
+ JobsDeleteHeaders: JobsDeleteHeaders,
4906
+ JobsUpdateHeaders: JobsUpdateHeaders,
4312
4907
  discriminators: discriminators
4313
4908
  });
4314
4909
 
@@ -4344,7 +4939,7 @@ const $host = {
4344
4939
  const apiVersion = {
4345
4940
  parameterPath: "apiVersion",
4346
4941
  mapper: {
4347
- defaultValue: "2021-08-01-preview",
4942
+ defaultValue: "2022-12-01",
4348
4943
  isConstant: true,
4349
4944
  serializedName: "api-version",
4350
4945
  type: {
@@ -4547,17 +5142,24 @@ class OperationsImpl {
4547
5142
  }
4548
5143
  listPagingAll(options) {
4549
5144
  return tslib.__asyncGenerator(this, arguments, function* listPagingAll_1() {
4550
- var e_1, _a;
5145
+ var _a, e_1, _b, _c;
4551
5146
  try {
4552
- for (var _b = tslib.__asyncValues(this.listPagingPage(options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
4553
- const page = _c.value;
4554
- yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
5147
+ for (var _d = true, _e = tslib.__asyncValues(this.listPagingPage(options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a;) {
5148
+ _c = _f.value;
5149
+ _d = false;
5150
+ try {
5151
+ const page = _c;
5152
+ yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
5153
+ }
5154
+ finally {
5155
+ _d = true;
5156
+ }
4555
5157
  }
4556
5158
  }
4557
5159
  catch (e_1_1) { e_1 = { error: e_1_1 }; }
4558
5160
  finally {
4559
5161
  try {
4560
- if (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));
5162
+ if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
4561
5163
  }
4562
5164
  finally { if (e_1) throw e_1.error; }
4563
5165
  }
@@ -4608,7 +5210,6 @@ const listNextOperationSpec$1 = {
4608
5210
  bodyMapper: ApiError
4609
5211
  }
4610
5212
  },
4611
- queryParameters: [apiVersion],
4612
5213
  urlParameters: [$host, nextLink],
4613
5214
  headerParameters: [accept],
4614
5215
  serializer: serializer$3
@@ -4621,25 +5222,17 @@ const listNextOperationSpec$1 = {
4621
5222
  * Code generated by Microsoft (R) AutoRest Code Generator.
4622
5223
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
4623
5224
  */
4624
- class LroImpl {
4625
- constructor(sendOperationFn, args, spec, requestPath = spec.path, requestMethod = spec.httpMethod) {
4626
- this.sendOperationFn = sendOperationFn;
4627
- this.args = args;
4628
- this.spec = spec;
4629
- this.requestPath = requestPath;
4630
- this.requestMethod = requestMethod;
4631
- }
4632
- sendInitialRequest() {
4633
- return tslib.__awaiter(this, void 0, void 0, function* () {
4634
- return this.sendOperationFn(this.args, this.spec);
4635
- });
4636
- }
4637
- sendPollRequest(path) {
4638
- return tslib.__awaiter(this, void 0, void 0, function* () {
4639
- const _a = this.spec, restSpec = tslib.__rest(_a, ["requestBody"]);
4640
- return this.sendOperationFn(this.args, Object.assign(Object.assign({}, restSpec), { path, httpMethod: "GET" }));
4641
- });
4642
- }
5225
+ function createLroSpec(inputs) {
5226
+ const { args, spec, sendOperationFn } = inputs;
5227
+ return {
5228
+ requestMethod: spec.httpMethod,
5229
+ requestPath: spec.path,
5230
+ sendInitialRequest: () => sendOperationFn(args, spec),
5231
+ sendPollRequest: (path, options) => {
5232
+ const restSpec = tslib.__rest(spec, ["requestBody"]);
5233
+ return sendOperationFn(args, Object.assign(Object.assign({}, restSpec), { httpMethod: "GET", path, abortSignal: options === null || options === void 0 ? void 0 : options.abortSignal }));
5234
+ }
5235
+ };
4643
5236
  }
4644
5237
 
4645
5238
  /*
@@ -4702,17 +5295,24 @@ class JobsImpl {
4702
5295
  }
4703
5296
  listPagingAll(options) {
4704
5297
  return tslib.__asyncGenerator(this, arguments, function* listPagingAll_1() {
4705
- var e_1, _a;
5298
+ var _a, e_1, _b, _c;
4706
5299
  try {
4707
- for (var _b = tslib.__asyncValues(this.listPagingPage(options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
4708
- const page = _c.value;
4709
- yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
5300
+ for (var _d = true, _e = tslib.__asyncValues(this.listPagingPage(options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a;) {
5301
+ _c = _f.value;
5302
+ _d = false;
5303
+ try {
5304
+ const page = _c;
5305
+ yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
5306
+ }
5307
+ finally {
5308
+ _d = true;
5309
+ }
4710
5310
  }
4711
5311
  }
4712
5312
  catch (e_1_1) { e_1 = { error: e_1_1 }; }
4713
5313
  finally {
4714
5314
  try {
4715
- if (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));
5315
+ if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
4716
5316
  }
4717
5317
  finally { if (e_1) throw e_1.error; }
4718
5318
  }
@@ -4762,17 +5362,24 @@ class JobsImpl {
4762
5362
  }
4763
5363
  listByResourceGroupPagingAll(resourceGroupName, options) {
4764
5364
  return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingAll_1() {
4765
- var e_2, _a;
5365
+ var _a, e_2, _b, _c;
4766
5366
  try {
4767
- for (var _b = tslib.__asyncValues(this.listByResourceGroupPagingPage(resourceGroupName, options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
4768
- const page = _c.value;
4769
- yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
5367
+ for (var _d = true, _e = tslib.__asyncValues(this.listByResourceGroupPagingPage(resourceGroupName, options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a;) {
5368
+ _c = _f.value;
5369
+ _d = false;
5370
+ try {
5371
+ const page = _c;
5372
+ yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
5373
+ }
5374
+ finally {
5375
+ _d = true;
5376
+ }
4770
5377
  }
4771
5378
  }
4772
5379
  catch (e_2_1) { e_2 = { error: e_2_1 }; }
4773
5380
  finally {
4774
5381
  try {
4775
- if (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));
5382
+ if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
4776
5383
  }
4777
5384
  finally { if (e_2) throw e_2.error; }
4778
5385
  }
@@ -4811,17 +5418,24 @@ class JobsImpl {
4811
5418
  }
4812
5419
  listCredentialsPagingAll(resourceGroupName, jobName, options) {
4813
5420
  return tslib.__asyncGenerator(this, arguments, function* listCredentialsPagingAll_1() {
4814
- var e_3, _a;
5421
+ var _a, e_3, _b, _c;
4815
5422
  try {
4816
- for (var _b = tslib.__asyncValues(this.listCredentialsPagingPage(resourceGroupName, jobName, options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
4817
- const page = _c.value;
4818
- yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
5423
+ for (var _d = true, _e = tslib.__asyncValues(this.listCredentialsPagingPage(resourceGroupName, jobName, options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a;) {
5424
+ _c = _f.value;
5425
+ _d = false;
5426
+ try {
5427
+ const page = _c;
5428
+ yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
5429
+ }
5430
+ finally {
5431
+ _d = true;
5432
+ }
4819
5433
  }
4820
5434
  }
4821
5435
  catch (e_3_1) { e_3 = { error: e_3_1 }; }
4822
5436
  finally {
4823
5437
  try {
4824
- if (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));
5438
+ if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
4825
5439
  }
4826
5440
  finally { if (e_3) throw e_3.error; }
4827
5441
  }
@@ -4877,7 +5491,7 @@ class JobsImpl {
4877
5491
  const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
4878
5492
  return this.client.sendOperationRequest(args, spec);
4879
5493
  });
4880
- const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
5494
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
4881
5495
  var _a;
4882
5496
  let currentRawResponse = undefined;
4883
5497
  const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
@@ -4896,9 +5510,13 @@ class JobsImpl {
4896
5510
  }
4897
5511
  };
4898
5512
  });
4899
- const lro = new LroImpl(sendOperation, { resourceGroupName, jobName, jobResource, options }, createOperationSpec);
4900
- const poller = new coreLro.LroEngine(lro, {
4901
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
5513
+ const lro = createLroSpec({
5514
+ sendOperationFn,
5515
+ args: { resourceGroupName, jobName, jobResource, options },
5516
+ spec: createOperationSpec
5517
+ });
5518
+ const poller = yield coreLro.createHttpPoller(lro, {
5519
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
4902
5520
  intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
4903
5521
  });
4904
5522
  yield poller.poll();
@@ -4932,7 +5550,7 @@ class JobsImpl {
4932
5550
  const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
4933
5551
  return this.client.sendOperationRequest(args, spec);
4934
5552
  });
4935
- const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
5553
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
4936
5554
  var _a;
4937
5555
  let currentRawResponse = undefined;
4938
5556
  const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
@@ -4951,9 +5569,13 @@ class JobsImpl {
4951
5569
  }
4952
5570
  };
4953
5571
  });
4954
- const lro = new LroImpl(sendOperation, { resourceGroupName, jobName, options }, deleteOperationSpec);
4955
- const poller = new coreLro.LroEngine(lro, {
4956
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
5572
+ const lro = createLroSpec({
5573
+ sendOperationFn,
5574
+ args: { resourceGroupName, jobName, options },
5575
+ spec: deleteOperationSpec
5576
+ });
5577
+ const poller = yield coreLro.createHttpPoller(lro, {
5578
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
4957
5579
  intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
4958
5580
  });
4959
5581
  yield poller.poll();
@@ -4986,7 +5608,7 @@ class JobsImpl {
4986
5608
  const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
4987
5609
  return this.client.sendOperationRequest(args, spec);
4988
5610
  });
4989
- const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
5611
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
4990
5612
  var _a;
4991
5613
  let currentRawResponse = undefined;
4992
5614
  const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
@@ -5005,9 +5627,13 @@ class JobsImpl {
5005
5627
  }
5006
5628
  };
5007
5629
  });
5008
- const lro = new LroImpl(sendOperation, { resourceGroupName, jobName, jobResourceUpdateParameter, options }, updateOperationSpec);
5009
- const poller = new coreLro.LroEngine(lro, {
5010
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
5630
+ const lro = createLroSpec({
5631
+ sendOperationFn,
5632
+ args: { resourceGroupName, jobName, jobResourceUpdateParameter, options },
5633
+ spec: updateOperationSpec
5634
+ });
5635
+ const poller = yield coreLro.createHttpPoller(lro, {
5636
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
5011
5637
  intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
5012
5638
  });
5013
5639
  yield poller.poll();
@@ -5324,7 +5950,6 @@ const listNextOperationSpec = {
5324
5950
  bodyMapper: ApiError
5325
5951
  }
5326
5952
  },
5327
- queryParameters: [apiVersion, skipToken],
5328
5953
  urlParameters: [
5329
5954
  $host,
5330
5955
  nextLink,
@@ -5344,7 +5969,6 @@ const listByResourceGroupNextOperationSpec = {
5344
5969
  bodyMapper: ApiError
5345
5970
  }
5346
5971
  },
5347
- queryParameters: [apiVersion, skipToken],
5348
5972
  urlParameters: [
5349
5973
  $host,
5350
5974
  nextLink,
@@ -5419,17 +6043,24 @@ class ServiceImpl {
5419
6043
  }
5420
6044
  listAvailableSkusByResourceGroupPagingAll(resourceGroupName, location, availableSkuRequest, options) {
5421
6045
  return tslib.__asyncGenerator(this, arguments, function* listAvailableSkusByResourceGroupPagingAll_1() {
5422
- var e_1, _a;
6046
+ var _a, e_1, _b, _c;
5423
6047
  try {
5424
- for (var _b = tslib.__asyncValues(this.listAvailableSkusByResourceGroupPagingPage(resourceGroupName, location, availableSkuRequest, options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
5425
- const page = _c.value;
5426
- yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
6048
+ for (var _d = true, _e = tslib.__asyncValues(this.listAvailableSkusByResourceGroupPagingPage(resourceGroupName, location, availableSkuRequest, options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a;) {
6049
+ _c = _f.value;
6050
+ _d = false;
6051
+ try {
6052
+ const page = _c;
6053
+ yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
6054
+ }
6055
+ finally {
6056
+ _d = true;
6057
+ }
5427
6058
  }
5428
6059
  }
5429
6060
  catch (e_1_1) { e_1 = { error: e_1_1 }; }
5430
6061
  finally {
5431
6062
  try {
5432
- if (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));
6063
+ if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
5433
6064
  }
5434
6065
  finally { if (e_1) throw e_1.error; }
5435
6066
  }
@@ -5656,7 +6287,6 @@ const listAvailableSkusByResourceGroupNextOperationSpec = {
5656
6287
  bodyMapper: ApiError
5657
6288
  }
5658
6289
  },
5659
- queryParameters: [apiVersion],
5660
6290
  urlParameters: [
5661
6291
  $host,
5662
6292
  nextLink,
@@ -5699,7 +6329,7 @@ class DataBoxManagementClient extends coreClient__namespace.ServiceClient {
5699
6329
  requestContentType: "application/json; charset=utf-8",
5700
6330
  credential: credentials
5701
6331
  };
5702
- const packageDetails = `azsdk-js-arm-databox/5.0.0-beta.3`;
6332
+ const packageDetails = `azsdk-js-arm-databox/5.0.0`;
5703
6333
  const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
5704
6334
  ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
5705
6335
  : `${packageDetails}`;
@@ -5732,7 +6362,7 @@ class DataBoxManagementClient extends coreClient__namespace.ServiceClient {
5732
6362
  this.subscriptionId = subscriptionId;
5733
6363
  // Assigning values to Constant parameters
5734
6364
  this.$host = options.$host || "https://management.azure.com";
5735
- this.apiVersion = options.apiVersion || "2021-08-01-preview";
6365
+ this.apiVersion = options.apiVersion || "2022-12-01";
5736
6366
  this.operations = new OperationsImpl(this);
5737
6367
  this.jobs = new JobsImpl(this);
5738
6368
  this.service = new ServiceImpl(this);