@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
@@ -1,8 +1,8 @@
1
1
  import * as coreAuth from '@azure/core-auth';
2
2
  import * as coreClient from '@azure/core-client';
3
+ import { OperationState } from '@azure/core-lro';
3
4
  import { PagedAsyncIterableIterator } from '@azure/core-paging';
4
- import { PollerLike } from '@azure/core-lro';
5
- import { PollOperationState } from '@azure/core-lro';
5
+ import { SimplePollerLike } from '@azure/core-lro';
6
6
 
7
7
  /** Defines values for AccessProtocol. */
8
8
  export declare type AccessProtocol = "SMB" | "NFS";
@@ -31,12 +31,12 @@ export declare interface AccountCredentialDetails {
31
31
  readonly shareCredentialDetails?: ShareCredentialDetails[];
32
32
  }
33
33
 
34
- /** Additional error info. */
34
+ /** This class represents additional info which Resource Providers pass when an error occurs. */
35
35
  export declare interface AdditionalErrorInfo {
36
- /** Additional error type. */
37
- type?: string;
38
- /** Additional error info. */
36
+ /** Additional information of the type of error. */
39
37
  info?: Record<string, unknown>;
38
+ /** Type of error (e.g. CustomerIntervention, PolicyViolation, SecurityViolation). */
39
+ type?: string;
40
40
  }
41
41
 
42
42
  /** Defines values for AddressType. */
@@ -171,24 +171,24 @@ export declare interface CancellationReason {
171
171
  /** Defines values for ClassDiscriminator. */
172
172
  export declare type ClassDiscriminator = "DataBox" | "DataBoxDisk" | "DataBoxHeavy" | "DataBoxCustomerDisk";
173
173
 
174
- /** Cloud error. */
174
+ /** Provides additional information about an http error response. */
175
175
  export declare interface CloudError {
176
- /** Cloud error code. */
177
- code?: string;
178
- /** Cloud error message. */
179
- message?: string;
180
- /** Cloud error target. */
181
- target?: string;
182
176
  /**
183
- * Cloud error details.
177
+ * Gets or sets additional error info.
184
178
  * NOTE: This property will not be serialized. It can only be populated by the server.
185
179
  */
186
- readonly details?: CloudError[];
180
+ readonly additionalInfo?: AdditionalErrorInfo[];
181
+ /** Error code. */
182
+ code?: string;
187
183
  /**
188
- * Cloud error additional info.
184
+ * Gets or sets details for the error.
189
185
  * NOTE: This property will not be serialized. It can only be populated by the server.
190
186
  */
191
- readonly additionalInfo?: AdditionalErrorInfo[];
187
+ readonly details?: CloudError[];
188
+ /** The error message parsed from the body of the http error response. */
189
+ message?: string;
190
+ /** Gets or sets the target of the error. */
191
+ target?: string;
192
192
  }
193
193
 
194
194
  /** Contact Details. */
@@ -207,6 +207,18 @@ export declare interface ContactDetails {
207
207
  notificationPreference?: NotificationPreference[];
208
208
  }
209
209
 
210
+ /** Contact Info. */
211
+ export declare interface ContactInfo {
212
+ /** Contact name of the person. */
213
+ contactName: string;
214
+ /** Phone number of the contact person. */
215
+ phone: string;
216
+ /** Phone extension number of the contact person. */
217
+ phoneExtension?: string;
218
+ /** Mobile number of the contact person. */
219
+ mobile?: string;
220
+ }
221
+
210
222
  /** Details for log generated during copy. */
211
223
  export declare interface CopyLogDetails {
212
224
  /** Polymorphic discriminator, which specifies the different types this object can be */
@@ -293,6 +305,16 @@ export declare interface CopyProgress {
293
305
  * NOTE: This property will not be serialized. It can only be populated by the server.
294
306
  */
295
307
  readonly isEnumerationInProgress?: boolean;
308
+ /**
309
+ * Error, if any, in the stage
310
+ * NOTE: This property will not be serialized. It can only be populated by the server.
311
+ */
312
+ readonly error?: CloudError;
313
+ /**
314
+ * Available actions on the job.
315
+ * NOTE: This property will not be serialized. It can only be populated by the server.
316
+ */
317
+ readonly actions?: CustomerResolutionCode[];
296
318
  }
297
319
 
298
320
  /**
@@ -317,7 +339,7 @@ export declare interface CopyProgress {
317
339
  * **OtherUserError**: Copy failed due to user error. \
318
340
  * **DriveNotDetected**: Copy failed due to disk detection error. \
319
341
  * **DriveCorrupted**: Copy failed due to corrupted drive. \
320
- * **MetadataFilesModifiedOrRemoved**: Copy failed due to modified or removed metadata files.
342
+ * **MetadataFilesModifiedOrRemoved**: Copy failed due to modified or removed metadata files.
321
343
  */
322
344
  export declare type CopyStatus = string;
323
345
 
@@ -363,7 +385,7 @@ export declare interface CustomerDiskJobSecrets extends JobSecrets {
363
385
  }
364
386
 
365
387
  /** Defines values for CustomerResolutionCode. */
366
- export declare type CustomerResolutionCode = "None" | "MoveToCleanUpDevice" | "Resume";
388
+ export declare type CustomerResolutionCode = "None" | "MoveToCleanUpDevice" | "Resume" | "Restart" | "ReachOutToOperation";
367
389
 
368
390
  /** Account details of the data to be transferred */
369
391
  export declare interface DataAccountDetails {
@@ -508,6 +530,56 @@ export declare interface DataBoxDiskCopyProgress {
508
530
  * NOTE: This property will not be serialized. It can only be populated by the server.
509
531
  */
510
532
  readonly status?: CopyStatus;
533
+ /**
534
+ * Error, if any, in the stage
535
+ * NOTE: This property will not be serialized. It can only be populated by the server.
536
+ */
537
+ readonly error?: CloudError;
538
+ /**
539
+ * Available actions on the job.
540
+ * NOTE: This property will not be serialized. It can only be populated by the server.
541
+ */
542
+ readonly actions?: CustomerResolutionCode[];
543
+ }
544
+
545
+ /** Granular Copy Log Details for customer disk */
546
+ export declare interface DataBoxDiskGranularCopyLogDetails extends GranularCopyLogDetails {
547
+ /** Polymorphic discriminator, which specifies the different types this object can be */
548
+ copyLogDetailsType: "DataBoxCustomerDisk";
549
+ /**
550
+ * Disk Serial Number.
551
+ * NOTE: This property will not be serialized. It can only be populated by the server.
552
+ */
553
+ readonly serialNumber?: string;
554
+ /**
555
+ * Account id.
556
+ * NOTE: This property will not be serialized. It can only be populated by the server.
557
+ */
558
+ readonly accountId?: string;
559
+ /**
560
+ * Link for copy error logs.
561
+ * NOTE: This property will not be serialized. It can only be populated by the server.
562
+ */
563
+ readonly errorLogLink?: string;
564
+ /**
565
+ * Link for copy verbose logs.
566
+ * NOTE: This property will not be serialized. It can only be populated by the server.
567
+ */
568
+ readonly verboseLogLink?: string;
569
+ }
570
+
571
+ /** DataBox Disk Granular Copy Progress */
572
+ export declare interface DataBoxDiskGranularCopyProgress extends GranularCopyProgress {
573
+ /**
574
+ * Disk Serial Number.
575
+ * NOTE: This property will not be serialized. It can only be populated by the server.
576
+ */
577
+ readonly serialNumber?: string;
578
+ /**
579
+ * The Status of the copy
580
+ * NOTE: This property will not be serialized. It can only be populated by the server.
581
+ */
582
+ readonly copyStatus?: CopyStatus;
511
583
  }
512
584
 
513
585
  /** DataBox Disk Job Details. */
@@ -523,6 +595,16 @@ export declare interface DataBoxDiskJobDetails extends JobDetails {
523
595
  * NOTE: This property will not be serialized. It can only be populated by the server.
524
596
  */
525
597
  readonly copyProgress?: DataBoxDiskCopyProgress[];
598
+ /**
599
+ * Copy progress per disk.
600
+ * NOTE: This property will not be serialized. It can only be populated by the server.
601
+ */
602
+ readonly granularCopyProgress?: DataBoxDiskGranularCopyProgress[];
603
+ /**
604
+ * Copy progress per disk.
605
+ * NOTE: This property will not be serialized. It can only be populated by the server.
606
+ */
607
+ readonly granularCopyLogDetails?: DataBoxDiskGranularCopyLogDetails[];
526
608
  /**
527
609
  * Contains the map of disk serial number to the disk size being used for the job. Is returned only after the disks are shipped to the customer.
528
610
  * NOTE: This property will not be serialized. It can only be populated by the server.
@@ -887,7 +969,16 @@ export declare type DatacenterAddressType = "DatacenterAddressLocation" | "Datac
887
969
  * **PUS20** \
888
970
  * **AdHoc** \
889
971
  * **CH1** \
890
- * **DSM05**
972
+ * **DSM05** \
973
+ * **DUB07** \
974
+ * **PNQ01** \
975
+ * **SVG20** \
976
+ * **OSA02** \
977
+ * **OSA22** \
978
+ * **PAR22** \
979
+ * **BN7** \
980
+ * **SN6** \
981
+ * **BJS20**
891
982
  */
892
983
  export declare type DataCenterCode = string;
893
984
 
@@ -961,6 +1052,20 @@ export declare interface Details {
961
1052
  message: string;
962
1053
  }
963
1054
 
1055
+ /** Device erasure details with erasure completion status and erasureordestructionlog sas key */
1056
+ export declare interface DeviceErasureDetails {
1057
+ /**
1058
+ * Holds the device erasure completion status
1059
+ * NOTE: This property will not be serialized. It can only be populated by the server.
1060
+ */
1061
+ readonly deviceErasureStatus?: StageStatus;
1062
+ /**
1063
+ * Shared access key to download cleanup or destruction certificate for device
1064
+ * NOTE: This property will not be serialized. It can only be populated by the server.
1065
+ */
1066
+ readonly erasureOrDestructionCertificateSasKey?: string;
1067
+ }
1068
+
964
1069
  /** Request body to get the availability for scheduling disk orders. */
965
1070
  export declare interface DiskScheduleAvailabilityRequest extends ScheduleAvailabilityRequest {
966
1071
  /** Polymorphic discriminator, which specifies the different types this object can be */
@@ -990,6 +1095,8 @@ export declare type DoubleEncryption = "Enabled" | "Disabled";
990
1095
  export declare interface EncryptionPreferences {
991
1096
  /** Defines secondary layer of software-based encryption enablement. */
992
1097
  doubleEncryption?: DoubleEncryption;
1098
+ /** Defines Hardware level encryption (Only for disk) */
1099
+ hardwareEncryption?: HardwareEncryption;
993
1100
  }
994
1101
 
995
1102
  export declare interface ErrorDetail {
@@ -1030,14 +1137,115 @@ export declare interface FilterFileDetails {
1030
1137
  export declare type FilterFileType = "AzureBlob" | "AzureFile";
1031
1138
 
1032
1139
  /**
1033
- * Given a result page from a pageable operation, returns a
1034
- * continuation token that can be used to begin paging from
1140
+ * Given the last `.value` produced by the `byPage` iterator,
1141
+ * returns a continuation token that can be used to begin paging from
1035
1142
  * that point later.
1036
- * @param page A result object from calling .byPage() on a paged operation.
1037
- * @returns The continuation token that can be passed into byPage().
1143
+ * @param page An object from accessing `value` on the IteratorResult from a `byPage` iterator.
1144
+ * @returns The continuation token that can be passed into byPage() during future calls.
1038
1145
  */
1039
1146
  export declare function getContinuationToken(page: unknown): string | undefined;
1040
1147
 
1148
+ /** Granular Details for log generated during copy. */
1149
+ export declare interface GranularCopyLogDetails {
1150
+ /** Polymorphic discriminator, which specifies the different types this object can be */
1151
+ copyLogDetailsType: "DataBoxCustomerDisk";
1152
+ }
1153
+
1154
+ export declare type GranularCopyLogDetailsUnion = GranularCopyLogDetails | DataBoxDiskGranularCopyLogDetails;
1155
+
1156
+ /** Granular Copy progress. */
1157
+ export declare interface GranularCopyProgress {
1158
+ /**
1159
+ * Name of the storage account. This will be empty for data account types other than storage account.
1160
+ * NOTE: This property will not be serialized. It can only be populated by the server.
1161
+ */
1162
+ readonly storageAccountName?: string;
1163
+ /**
1164
+ * Transfer type of data
1165
+ * NOTE: This property will not be serialized. It can only be populated by the server.
1166
+ */
1167
+ readonly transferType?: TransferType;
1168
+ /**
1169
+ * Data Account Type.
1170
+ * NOTE: This property will not be serialized. It can only be populated by the server.
1171
+ */
1172
+ readonly dataAccountType?: DataAccountType;
1173
+ /**
1174
+ * Id of the account where the data needs to be uploaded.
1175
+ * NOTE: This property will not be serialized. It can only be populated by the server.
1176
+ */
1177
+ readonly accountId?: string;
1178
+ /**
1179
+ * To indicate bytes transferred.
1180
+ * NOTE: This property will not be serialized. It can only be populated by the server.
1181
+ */
1182
+ readonly bytesProcessed?: number;
1183
+ /**
1184
+ * Total amount of data to be processed by the job.
1185
+ * NOTE: This property will not be serialized. It can only be populated by the server.
1186
+ */
1187
+ readonly totalBytesToProcess?: number;
1188
+ /**
1189
+ * Number of files processed
1190
+ * NOTE: This property will not be serialized. It can only be populated by the server.
1191
+ */
1192
+ readonly filesProcessed?: number;
1193
+ /**
1194
+ * Total files to process
1195
+ * NOTE: This property will not be serialized. It can only be populated by the server.
1196
+ */
1197
+ readonly totalFilesToProcess?: number;
1198
+ /**
1199
+ * Number of files not adhering to azure naming conventions which were processed by automatic renaming
1200
+ * NOTE: This property will not be serialized. It can only be populated by the server.
1201
+ */
1202
+ readonly invalidFilesProcessed?: number;
1203
+ /**
1204
+ * Total amount of data not adhering to azure naming conventions which were processed by automatic renaming
1205
+ * NOTE: This property will not be serialized. It can only be populated by the server.
1206
+ */
1207
+ readonly invalidFileBytesUploaded?: number;
1208
+ /**
1209
+ * Number of folders not adhering to azure naming conventions which were processed by automatic renaming
1210
+ * NOTE: This property will not be serialized. It can only be populated by the server.
1211
+ */
1212
+ readonly renamedContainerCount?: number;
1213
+ /**
1214
+ * Number of files which could not be copied
1215
+ * NOTE: This property will not be serialized. It can only be populated by the server.
1216
+ */
1217
+ readonly filesErroredOut?: number;
1218
+ /**
1219
+ * To indicate directories errored out in the job.
1220
+ * NOTE: This property will not be serialized. It can only be populated by the server.
1221
+ */
1222
+ readonly directoriesErroredOut?: number;
1223
+ /**
1224
+ * To indicate directories renamed
1225
+ * NOTE: This property will not be serialized. It can only be populated by the server.
1226
+ */
1227
+ readonly invalidDirectoriesProcessed?: number;
1228
+ /**
1229
+ * To indicate if enumeration of data is in progress.
1230
+ * Until this is true, the TotalBytesToProcess may not be valid.
1231
+ * NOTE: This property will not be serialized. It can only be populated by the server.
1232
+ */
1233
+ readonly isEnumerationInProgress?: boolean;
1234
+ /**
1235
+ * Error, if any, in the stage
1236
+ * NOTE: This property will not be serialized. It can only be populated by the server.
1237
+ */
1238
+ readonly error?: CloudError;
1239
+ /**
1240
+ * Available actions on the job.
1241
+ * NOTE: This property will not be serialized. It can only be populated by the server.
1242
+ */
1243
+ readonly actions?: CustomerResolutionCode[];
1244
+ }
1245
+
1246
+ /** Defines values for HardwareEncryption. */
1247
+ export declare type HardwareEncryption = "Enabled" | "Disabled";
1248
+
1041
1249
  /** Request body to get the availability for scheduling heavy orders. */
1042
1250
  export declare interface HeavyScheduleAvailabilityRequest extends ScheduleAvailabilityRequest {
1043
1251
  /** Polymorphic discriminator, which specifies the different types this object can be */
@@ -1105,6 +1313,8 @@ export declare interface JobDetails {
1105
1313
  dataExportDetails?: DataExportDetails[];
1106
1314
  /** Preferences for the order. */
1107
1315
  preferences?: Preferences;
1316
+ /** Optional Reverse Shipping details for order. */
1317
+ reverseShippingDetails?: ReverseShippingDetails;
1108
1318
  /**
1109
1319
  * List of copy log details.
1110
1320
  * NOTE: This property will not be serialized. It can only be populated by the server.
@@ -1120,6 +1330,11 @@ export declare interface JobDetails {
1120
1330
  * NOTE: This property will not be serialized. It can only be populated by the server.
1121
1331
  */
1122
1332
  readonly chainOfCustodySasKey?: string;
1333
+ /**
1334
+ * Holds device data erasure details
1335
+ * NOTE: This property will not be serialized. It can only be populated by the server.
1336
+ */
1337
+ readonly deviceErasureDetails?: DeviceErasureDetails;
1123
1338
  /** Details about which key encryption type is being used. */
1124
1339
  keyEncryptionKey?: KeyEncryptionKey;
1125
1340
  /** The expected size of the data, which needs to be transferred in this job, in terabytes. */
@@ -1187,6 +1402,16 @@ export declare interface JobResource extends Resource {
1187
1402
  * NOTE: This property will not be serialized. It can only be populated by the server.
1188
1403
  */
1189
1404
  readonly isShippingAddressEditable?: boolean;
1405
+ /**
1406
+ * The Editable status for Reverse Shipping Address and Contact Info
1407
+ * NOTE: This property will not be serialized. It can only be populated by the server.
1408
+ */
1409
+ readonly reverseShippingDetailsUpdate?: ReverseShippingDetailsEditStatus;
1410
+ /**
1411
+ * The Editable status for Reverse Transport preferences
1412
+ * NOTE: This property will not be serialized. It can only be populated by the server.
1413
+ */
1414
+ readonly reverseTransportPreferenceUpdate?: ReverseTransportPreferenceEditStatus;
1190
1415
  /**
1191
1416
  * Is Prepare To Ship Enabled on this job
1192
1417
  * NOTE: This property will not be serialized. It can only be populated by the server.
@@ -1292,7 +1517,7 @@ export declare interface Jobs {
1292
1517
  * @param jobResource Job details from request body.
1293
1518
  * @param options The options parameters.
1294
1519
  */
1295
- beginCreate(resourceGroupName: string, jobName: string, jobResource: JobResource, options?: JobsCreateOptionalParams): Promise<PollerLike<PollOperationState<JobsCreateResponse>, JobsCreateResponse>>;
1520
+ beginCreate(resourceGroupName: string, jobName: string, jobResource: JobResource, options?: JobsCreateOptionalParams): Promise<SimplePollerLike<OperationState<JobsCreateResponse>, JobsCreateResponse>>;
1296
1521
  /**
1297
1522
  * Creates a new job with the specified parameters. Existing job cannot be updated with this API and
1298
1523
  * should instead be updated with the Update job API.
@@ -1310,7 +1535,7 @@ export declare interface Jobs {
1310
1535
  * between 3 and 24 characters in length and use any alphanumeric and underscore only
1311
1536
  * @param options The options parameters.
1312
1537
  */
1313
- beginDelete(resourceGroupName: string, jobName: string, options?: JobsDeleteOptionalParams): Promise<PollerLike<PollOperationState<void>, void>>;
1538
+ beginDelete(resourceGroupName: string, jobName: string, options?: JobsDeleteOptionalParams): Promise<SimplePollerLike<OperationState<void>, void>>;
1314
1539
  /**
1315
1540
  * Deletes a job.
1316
1541
  * @param resourceGroupName The Resource Group Name
@@ -1327,7 +1552,7 @@ export declare interface Jobs {
1327
1552
  * @param jobResourceUpdateParameter Job update parameters from request body.
1328
1553
  * @param options The options parameters.
1329
1554
  */
1330
- beginUpdate(resourceGroupName: string, jobName: string, jobResourceUpdateParameter: JobResourceUpdateParameter, options?: JobsUpdateOptionalParams): Promise<PollerLike<PollOperationState<JobsUpdateResponse>, JobsUpdateResponse>>;
1555
+ beginUpdate(resourceGroupName: string, jobName: string, jobResourceUpdateParameter: JobResourceUpdateParameter, options?: JobsUpdateOptionalParams): Promise<SimplePollerLike<OperationState<JobsUpdateResponse>, JobsUpdateResponse>>;
1331
1556
  /**
1332
1557
  * Updates the properties of an existing job.
1333
1558
  * @param resourceGroupName The Resource Group Name
@@ -1379,6 +1604,12 @@ export declare interface JobsCreateOptionalParams extends coreClient.OperationOp
1379
1604
  /** Contains response data for the create operation. */
1380
1605
  export declare type JobsCreateResponse = JobResource;
1381
1606
 
1607
+ /** Defines headers for Jobs_delete operation. */
1608
+ export declare interface JobsDeleteHeaders {
1609
+ /** The URI to poll for completion status. */
1610
+ location?: string;
1611
+ }
1612
+
1382
1613
  /** Optional parameters. */
1383
1614
  export declare interface JobsDeleteOptionalParams extends coreClient.OperationOptions {
1384
1615
  /** Delay to wait until next poll, in milliseconds. */
@@ -1416,8 +1647,6 @@ export declare type JobsGetResponse = JobResource;
1416
1647
 
1417
1648
  /** Optional parameters. */
1418
1649
  export declare interface JobsListByResourceGroupNextOptionalParams extends coreClient.OperationOptions {
1419
- /** $skipToken is supported on Get list of jobs, which provides the next page in the list of jobs. */
1420
- skipToken?: string;
1421
1650
  }
1422
1651
 
1423
1652
  /** Contains response data for the listByResourceGroupNext operation. */
@@ -1441,8 +1670,6 @@ export declare type JobsListCredentialsResponse = UnencryptedCredentialsList;
1441
1670
 
1442
1671
  /** Optional parameters. */
1443
1672
  export declare interface JobsListNextOptionalParams extends coreClient.OperationOptions {
1444
- /** $skipToken is supported on Get list of jobs, which provides the next page in the list of jobs. */
1445
- skipToken?: string;
1446
1673
  }
1447
1674
 
1448
1675
  /** Contains response data for the listNext operation. */
@@ -1490,6 +1717,12 @@ export declare interface JobStages {
1490
1717
  readonly jobStageDetails?: Record<string, unknown>;
1491
1718
  }
1492
1719
 
1720
+ /** Defines headers for Jobs_update operation. */
1721
+ export declare interface JobsUpdateHeaders {
1722
+ /** The URI to poll for completion status. */
1723
+ location?: string;
1724
+ }
1725
+
1493
1726
  /** Optional parameters. */
1494
1727
  export declare interface JobsUpdateOptionalParams extends coreClient.OperationOptions {
1495
1728
  /** Defines the If-Match condition. The patch will be performed only if the ETag of the job on the server matches this value. */
@@ -1554,7 +1787,7 @@ export declare enum KnownCopyStatus {
1554
1787
  DriveNotDetected = "DriveNotDetected",
1555
1788
  /** Copy failed due to corrupted drive. */
1556
1789
  DriveCorrupted = "DriveCorrupted",
1557
- /** Copy failed due to modified or removed metadata files. */
1790
+ /** Copy failed due to modified or removed metadata files. */
1558
1791
  MetadataFilesModifiedOrRemoved = "MetadataFilesModifiedOrRemoved"
1559
1792
  }
1560
1793
 
@@ -1659,7 +1892,25 @@ export declare enum KnownDataCenterCode {
1659
1892
  /** CH1 */
1660
1893
  CH1 = "CH1",
1661
1894
  /** DSM05 */
1662
- DSM05 = "DSM05"
1895
+ DSM05 = "DSM05",
1896
+ /** DUB07 */
1897
+ DUB07 = "DUB07",
1898
+ /** PNQ01 */
1899
+ PNQ01 = "PNQ01",
1900
+ /** SVG20 */
1901
+ SVG20 = "SVG20",
1902
+ /** OSA02 */
1903
+ OSA02 = "OSA02",
1904
+ /** OSA22 */
1905
+ OSA22 = "OSA22",
1906
+ /** PAR22 */
1907
+ PAR22 = "PAR22",
1908
+ /** BN7 */
1909
+ BN7 = "BN7",
1910
+ /** SN6 */
1911
+ SN6 = "SN6",
1912
+ /** BJS20 */
1913
+ BJS20 = "BJS20"
1663
1914
  }
1664
1915
 
1665
1916
  /** Known values of {@link NotificationStageName} that the service accepts. */
@@ -1763,7 +2014,11 @@ export declare interface MarkDevicesShippedRequest {
1763
2014
  /** The Mitigate Job captured from request body for Mitigate API */
1764
2015
  export declare interface MitigateJobRequest {
1765
2016
  /** Resolution code for the job */
1766
- customerResolutionCode: CustomerResolutionCode;
2017
+ customerResolutionCode?: CustomerResolutionCode;
2018
+ /** Serial number and the customer resolution code corresponding to each serial number */
2019
+ serialNumberCustomerResolutionMap?: {
2020
+ [propertyName: string]: CustomerResolutionCode;
2021
+ };
1767
2022
  }
1768
2023
 
1769
2024
  /** Optional parameters. */
@@ -1912,8 +2167,12 @@ export declare interface Preferences {
1912
2167
  preferredDataCenterRegion?: string[];
1913
2168
  /** Preferences related to the shipment logistics of the sku. */
1914
2169
  transportPreferences?: TransportPreferences;
2170
+ /** Optional Preferences related to the reverse shipment logistics of the sku. */
2171
+ reverseTransportPreferences?: TransportPreferences;
1915
2172
  /** Preferences related to the Encryption. */
1916
2173
  encryptionPreferences?: EncryptionPreferences;
2174
+ /** Preferences related to the Access Tier of storage accounts. */
2175
+ storageAccountAccessTierPreferences?: string[];
1917
2176
  }
1918
2177
 
1919
2178
  /** Request to validate preference of transport and data center. */
@@ -2000,6 +2259,26 @@ export declare interface ResourceIdentity {
2000
2259
  };
2001
2260
  }
2002
2261
 
2262
+ /** Reverse Shipping Address and contact details for a job. */
2263
+ export declare interface ReverseShippingDetails {
2264
+ /** Contact Info. */
2265
+ contactDetails?: ContactInfo;
2266
+ /** Shipping address where customer wishes to receive the device. */
2267
+ shippingAddress?: ShippingAddress;
2268
+ /**
2269
+ * A flag to indicate whether Reverse Shipping details are updated or not after device has been prepared.
2270
+ * Read only field
2271
+ * NOTE: This property will not be serialized. It can only be populated by the server.
2272
+ */
2273
+ readonly isUpdated?: boolean;
2274
+ }
2275
+
2276
+ /** Defines values for ReverseShippingDetailsEditStatus. */
2277
+ export declare type ReverseShippingDetailsEditStatus = "Enabled" | "Disabled" | "NotSupported";
2278
+
2279
+ /** Defines values for ReverseTransportPreferenceEditStatus. */
2280
+ export declare type ReverseTransportPreferenceEditStatus = "Enabled" | "Disabled" | "NotSupported";
2281
+
2003
2282
  /** Request body to get the availability for scheduling orders. */
2004
2283
  export declare interface ScheduleAvailabilityRequest {
2005
2284
  /** Polymorphic discriminator, which specifies the different types this object can be */
@@ -2200,6 +2479,10 @@ export declare interface ShippingAddress {
2200
2479
  companyName?: string;
2201
2480
  /** Type of address. */
2202
2481
  addressType?: AddressType;
2482
+ /** Flag to indicate if customer has chosen to skip default address validation */
2483
+ skipAddressValidation?: boolean;
2484
+ /** Tax Identification Number */
2485
+ taxIdentificationNumber?: string;
2203
2486
  }
2204
2487
 
2205
2488
  /** The Sku. */
@@ -2320,6 +2603,11 @@ export declare interface SkuInformation {
2320
2603
  * NOTE: This property will not be serialized. It can only be populated by the server.
2321
2604
  */
2322
2605
  readonly requiredFeature?: string;
2606
+ /**
2607
+ * List of all the Countries in the SKU specific commerce boundary
2608
+ * NOTE: This property will not be serialized. It can only be populated by the server.
2609
+ */
2610
+ readonly countriesWithinCommerceBoundary?: string[];
2323
2611
  }
2324
2612
 
2325
2613
  /** Defines values for SkuName. */
@@ -2355,7 +2643,7 @@ export declare type SkuName = "DataBox" | "DataBoxDisk" | "DataBoxHeavy" | "Data
2355
2643
  export declare type StageName = string;
2356
2644
 
2357
2645
  /** Defines values for StageStatus. */
2358
- export declare type StageStatus = "None" | "InProgress" | "Succeeded" | "Failed" | "Cancelled" | "Cancelling" | "SucceededWithErrors" | "WaitingForCustomerAction" | "SucceededWithWarnings" | "WaitingForCustomerActionForKek" | "WaitingForCustomerActionForCleanUp" | "CustomerActionPerformedForCleanUp";
2646
+ export declare type StageStatus = "None" | "InProgress" | "Succeeded" | "Failed" | "Cancelled" | "Cancelling" | "SucceededWithErrors" | "WaitingForCustomerAction" | "SucceededWithWarnings" | "WaitingForCustomerActionForKek" | "WaitingForCustomerActionForCleanUp" | "CustomerActionPerformedForCleanUp" | "CustomerActionPerformed";
2359
2647
 
2360
2648
  /** Details for the storage account. */
2361
2649
  export declare interface StorageAccountDetails extends DataAccountDetails {
@@ -2494,6 +2782,11 @@ export declare interface TransportAvailabilityResponse {
2494
2782
  export declare interface TransportPreferences {
2495
2783
  /** Indicates Shipment Logistics type that the customer preferred. */
2496
2784
  preferredShipmentType: TransportShipmentTypes;
2785
+ /**
2786
+ * Read only property which indicates whether transport preferences has been updated or not after device is prepared.
2787
+ * NOTE: This property will not be serialized. It can only be populated by the server.
2788
+ */
2789
+ readonly isUpdated?: boolean;
2497
2790
  }
2498
2791
 
2499
2792
  /** Defines values for TransportShipmentTypes. */
@@ -2527,6 +2820,10 @@ export declare interface UpdateJobDetails {
2527
2820
  contactDetails?: ContactDetails;
2528
2821
  /** Shipping address of the customer. */
2529
2822
  shippingAddress?: ShippingAddress;
2823
+ /** Reverse Shipping Address and contact details for a job. */
2824
+ reverseShippingDetails?: ReverseShippingDetails;
2825
+ /** Preferences related to the order */
2826
+ preferences?: Preferences;
2530
2827
  /** Key encryption key for the job. */
2531
2828
  keyEncryptionKey?: KeyEncryptionKey;
2532
2829
  /** Return package details of job. */
@@ -5,7 +5,7 @@
5
5
  "toolPackages": [
6
6
  {
7
7
  "packageName": "@microsoft/api-extractor",
8
- "packageVersion": "7.33.6"
8
+ "packageVersion": "7.35.0"
9
9
  }
10
10
  ]
11
11
  }
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=sampleTest.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"sampleTest.d.ts","sourceRoot":"","sources":["../../test/sampleTest.ts"],"names":[],"mappings":""}
@@ -1,38 +0,0 @@
1
- /*
2
- * Copyright (c) Microsoft Corporation.
3
- * Licensed under the MIT License.
4
- *
5
- * Code generated by Microsoft (R) AutoRest Code Generator.
6
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
- */
8
- import { __awaiter } from "tslib";
9
- import { Recorder } from "@azure-tools/test-recorder";
10
- const replaceableVariables = {
11
- AZURE_CLIENT_ID: "azure_client_id",
12
- AZURE_CLIENT_SECRET: "azure_client_secret",
13
- AZURE_TENANT_ID: "88888888-8888-8888-8888-888888888888",
14
- SUBSCRIPTION_ID: "azure_subscription_id"
15
- };
16
- const recorderOptions = {
17
- envSetupForPlayback: replaceableVariables
18
- };
19
- describe("My test", () => {
20
- let recorder;
21
- beforeEach(function () {
22
- return __awaiter(this, void 0, void 0, function* () {
23
- recorder = new Recorder(this.currentTest);
24
- yield recorder.start(recorderOptions);
25
- });
26
- });
27
- afterEach(function () {
28
- return __awaiter(this, void 0, void 0, function* () {
29
- yield recorder.stop();
30
- });
31
- });
32
- it("sample test", function () {
33
- return __awaiter(this, void 0, void 0, function* () {
34
- console.log("Hi, I'm a test!");
35
- });
36
- });
37
- });
38
- //# sourceMappingURL=sampleTest.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"sampleTest.js","sourceRoot":"","sources":["../../test/sampleTest.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,OAAO,EACL,QAAQ,EAGT,MAAM,4BAA4B,CAAC;AAIpC,MAAM,oBAAoB,GAA2B;IACnD,eAAe,EAAE,iBAAiB;IAClC,mBAAmB,EAAE,qBAAqB;IAC1C,eAAe,EAAE,sCAAsC;IACvD,eAAe,EAAE,uBAAuB;CACzC,CAAC;AAEF,MAAM,eAAe,GAAyB;IAC5C,mBAAmB,EAAE,oBAAoB;CAC1C,CAAC;AAEF,QAAQ,CAAC,SAAS,EAAE,GAAG,EAAE;IACvB,IAAI,QAAkB,CAAC;IAEvB,UAAU,CAAC;;YACT,QAAQ,GAAG,IAAI,QAAQ,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;YAC1C,MAAM,QAAQ,CAAC,KAAK,CAAC,eAAe,CAAC,CAAC;QACxC,CAAC;KAAA,CAAC,CAAC;IAEH,SAAS,CAAC;;YACR,MAAM,QAAQ,CAAC,IAAI,EAAE,CAAC;QACxB,CAAC;KAAA,CAAC,CAAC;IAEH,EAAE,CAAC,aAAa,EAAE;;YAChB,OAAO,CAAC,GAAG,CAAC,iBAAiB,CAAC,CAAC;QACjC,CAAC;KAAA,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}