@azure/arm-databox 5.0.0-beta.2 → 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 (104) hide show
  1. package/CHANGELOG.md +2 -2
  2. package/LICENSE +1 -1
  3. package/README.md +2 -2
  4. package/dist/index.js +973 -182
  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.d.ts +2 -0
  45. package/dist-esm/src/dataBoxManagementClient.d.ts.map +1 -1
  46. package/dist-esm/src/dataBoxManagementClient.js +50 -19
  47. package/dist-esm/src/dataBoxManagementClient.js.map +1 -1
  48. package/dist-esm/src/index.d.ts +1 -0
  49. package/dist-esm/src/index.d.ts.map +1 -1
  50. package/dist-esm/src/index.js +1 -0
  51. package/dist-esm/src/index.js.map +1 -1
  52. package/dist-esm/src/lroImpl.d.ts +6 -11
  53. package/dist-esm/src/lroImpl.d.ts.map +1 -1
  54. package/dist-esm/src/lroImpl.js +12 -20
  55. package/dist-esm/src/lroImpl.js.map +1 -1
  56. package/dist-esm/src/models/index.d.ts +479 -145
  57. package/dist-esm/src/models/index.d.ts.map +1 -1
  58. package/dist-esm/src/models/index.js +69 -1
  59. package/dist-esm/src/models/index.js.map +1 -1
  60. package/dist-esm/src/models/mappers.d.ts +11 -0
  61. package/dist-esm/src/models/mappers.d.ts.map +1 -1
  62. package/dist-esm/src/models/mappers.js +614 -46
  63. package/dist-esm/src/models/mappers.js.map +1 -1
  64. package/dist-esm/src/models/parameters.js +1 -1
  65. package/dist-esm/src/models/parameters.js.map +1 -1
  66. package/dist-esm/src/operations/jobs.d.ts +4 -4
  67. package/dist-esm/src/operations/jobs.d.ts.map +1 -1
  68. package/dist-esm/src/operations/jobs.js +107 -49
  69. package/dist-esm/src/operations/jobs.js.map +1 -1
  70. package/dist-esm/src/operations/operations.d.ts.map +1 -1
  71. package/dist-esm/src/operations/operations.js +31 -13
  72. package/dist-esm/src/operations/operations.js.map +1 -1
  73. package/dist-esm/src/operations/service.d.ts.map +1 -1
  74. package/dist-esm/src/operations/service.js +31 -13
  75. package/dist-esm/src/operations/service.js.map +1 -1
  76. package/dist-esm/src/operationsInterfaces/jobs.d.ts +4 -4
  77. package/dist-esm/src/operationsInterfaces/jobs.d.ts.map +1 -1
  78. package/dist-esm/src/pagingHelper.d.ts +13 -0
  79. package/dist-esm/src/pagingHelper.d.ts.map +1 -0
  80. package/dist-esm/src/pagingHelper.js +32 -0
  81. package/dist-esm/src/pagingHelper.js.map +1 -0
  82. package/dist-esm/test/databox_operations_test.spec.d.ts +4 -0
  83. package/dist-esm/test/databox_operations_test.spec.d.ts.map +1 -0
  84. package/dist-esm/test/databox_operations_test.spec.js +78 -0
  85. package/dist-esm/test/databox_operations_test.spec.js.map +1 -0
  86. package/package.json +21 -16
  87. package/review/arm-databox.api.md +255 -189
  88. package/src/dataBoxManagementClient.ts +61 -21
  89. package/src/index.ts +1 -0
  90. package/src/lroImpl.ts +31 -23
  91. package/src/models/index.ts +468 -98
  92. package/src/models/mappers.ts +634 -42
  93. package/src/models/parameters.ts +1 -1
  94. package/src/operations/jobs.ts +96 -57
  95. package/src/operations/operations.ts +21 -9
  96. package/src/operations/service.ts +27 -14
  97. package/src/operationsInterfaces/jobs.ts +4 -4
  98. package/src/pagingHelper.ts +39 -0
  99. package/types/arm-databox.d.ts +457 -99
  100. package/types/tsdoc-metadata.json +1 -1
  101. package/dist-esm/test/sampleTest.d.ts +0 -2
  102. package/dist-esm/test/sampleTest.d.ts.map +0 -1
  103. package/dist-esm/test/sampleTest.js +0 -40
  104. package/dist-esm/test/sampleTest.js.map +0 -1
@@ -6,9 +6,9 @@
6
6
 
7
7
  import * as coreAuth from '@azure/core-auth';
8
8
  import * as coreClient from '@azure/core-client';
9
+ import { OperationState } from '@azure/core-lro';
9
10
  import { PagedAsyncIterableIterator } from '@azure/core-paging';
10
- import { PollerLike } from '@azure/core-lro';
11
- import { PollOperationState } from '@azure/core-lro';
11
+ import { SimplePollerLike } from '@azure/core-lro';
12
12
 
13
13
  // @public
14
14
  export type AccessProtocol = "SMB" | "NFS";
@@ -39,11 +39,11 @@ export interface AddressValidationOutput {
39
39
  }
40
40
 
41
41
  // @public
42
- export type AddressValidationProperties = ValidationInputResponse & {
43
- validationType: "ValidateAddress";
44
- readonly validationStatus?: AddressValidationStatus;
42
+ export interface AddressValidationProperties extends ValidationInputResponse {
45
43
  readonly alternateAddresses?: ShippingAddress[];
46
- };
44
+ readonly validationStatus?: AddressValidationStatus;
45
+ validationType: "ValidateAddress";
46
+ }
47
47
 
48
48
  // @public
49
49
  export type AddressValidationStatus = "Valid" | "Invalid" | "Ambiguous";
@@ -122,6 +122,14 @@ export interface ContactDetails {
122
122
  phoneExtension?: string;
123
123
  }
124
124
 
125
+ // @public
126
+ export interface ContactInfo {
127
+ contactName: string;
128
+ mobile?: string;
129
+ phone: string;
130
+ phoneExtension?: string;
131
+ }
132
+
125
133
  // @public
126
134
  export interface CopyLogDetails {
127
135
  copyLogDetailsType: "DataBox" | "DataBoxCustomerDisk" | "DataBoxDisk" | "DataBoxHeavy";
@@ -133,9 +141,11 @@ export type CopyLogDetailsUnion = CopyLogDetails | DataBoxAccountCopyLogDetails
133
141
  // @public
134
142
  export interface CopyProgress {
135
143
  readonly accountId?: string;
144
+ readonly actions?: CustomerResolutionCode[];
136
145
  readonly bytesProcessed?: number;
137
146
  readonly dataAccountType?: DataAccountType;
138
147
  readonly directoriesErroredOut?: number;
148
+ readonly error?: CloudError;
139
149
  readonly filesErroredOut?: number;
140
150
  readonly filesProcessed?: number;
141
151
  readonly invalidDirectoriesProcessed?: number;
@@ -153,31 +163,31 @@ export interface CopyProgress {
153
163
  export type CopyStatus = string;
154
164
 
155
165
  // @public
156
- export type CreateJobValidations = ValidationRequest & {
166
+ export interface CreateJobValidations extends ValidationRequest {
157
167
  validationCategory: "JobCreationValidation";
158
- };
168
+ }
159
169
 
160
170
  // @public
161
- export type CreateOrderLimitForSubscriptionValidationRequest = ValidationInputRequest & {
162
- validationType: "ValidateCreateOrderLimit";
171
+ export interface CreateOrderLimitForSubscriptionValidationRequest extends ValidationInputRequest {
163
172
  deviceType: SkuName;
164
- };
173
+ validationType: "ValidateCreateOrderLimit";
174
+ }
165
175
 
166
176
  // @public
167
- export type CreateOrderLimitForSubscriptionValidationResponseProperties = ValidationInputResponse & {
168
- validationType: "ValidateCreateOrderLimit";
177
+ export interface CreateOrderLimitForSubscriptionValidationResponseProperties extends ValidationInputResponse {
169
178
  readonly status?: ValidationStatus;
170
- };
179
+ validationType: "ValidateCreateOrderLimit";
180
+ }
171
181
 
172
182
  // @public
173
- export type CustomerDiskJobSecrets = JobSecrets & {
174
- jobSecretsType: "DataBoxCustomerDisk";
175
- readonly diskSecrets?: DiskSecret[];
183
+ export interface CustomerDiskJobSecrets extends JobSecrets {
176
184
  readonly carrierAccountNumber?: string;
177
- };
185
+ readonly diskSecrets?: DiskSecret[];
186
+ jobSecretsType: "DataBoxCustomerDisk";
187
+ }
178
188
 
179
189
  // @public
180
- export type CustomerResolutionCode = "None" | "MoveToCleanUpDevice" | "Resume";
190
+ export type CustomerResolutionCode = "None" | "MoveToCleanUpDevice" | "Resume" | "Restart" | "ReachOutToOperation";
181
191
 
182
192
  // @public
183
193
  export interface DataAccountDetails {
@@ -192,99 +202,118 @@ export type DataAccountDetailsUnion = DataAccountDetails | ManagedDiskDetails |
192
202
  export type DataAccountType = "StorageAccount" | "ManagedDisk";
193
203
 
194
204
  // @public
195
- export type DataBoxAccountCopyLogDetails = CopyLogDetails & {
196
- copyLogDetailsType: "DataBox";
205
+ export interface DataBoxAccountCopyLogDetails extends CopyLogDetails {
197
206
  readonly accountName?: string;
207
+ copyLogDetailsType: "DataBox";
198
208
  readonly copyLogLink?: string;
199
209
  readonly copyVerboseLogLink?: string;
200
- };
210
+ }
201
211
 
202
212
  // @public
203
- export type DataBoxCustomerDiskCopyLogDetails = CopyLogDetails & {
213
+ export interface DataBoxCustomerDiskCopyLogDetails extends CopyLogDetails {
204
214
  copyLogDetailsType: "DataBoxCustomerDisk";
205
- readonly serialNumber?: string;
206
215
  readonly errorLogLink?: string;
216
+ readonly serialNumber?: string;
207
217
  readonly verboseLogLink?: string;
208
- };
218
+ }
209
219
 
210
220
  // @public
211
- export type DataBoxCustomerDiskCopyProgress = CopyProgress & {
212
- readonly serialNumber?: string;
221
+ export interface DataBoxCustomerDiskCopyProgress extends CopyProgress {
213
222
  readonly copyStatus?: CopyStatus;
214
- };
223
+ readonly serialNumber?: string;
224
+ }
215
225
 
216
226
  // @public
217
- export type DataBoxCustomerDiskJobDetails = JobDetails & {
218
- jobDetailsType: "DataBoxCustomerDisk";
219
- importDiskDetailsCollection?: {
220
- [propertyName: string]: ImportDiskDetails;
221
- };
227
+ export interface DataBoxCustomerDiskJobDetails extends JobDetails {
228
+ readonly copyProgress?: DataBoxCustomerDiskCopyProgress[];
229
+ readonly deliverToDcPackageDetails?: PackageCarrierInfo;
230
+ enableManifestBackup?: boolean;
222
231
  readonly exportDiskDetailsCollection?: {
223
232
  [propertyName: string]: ExportDiskDetails;
224
233
  };
225
- readonly copyProgress?: DataBoxCustomerDiskCopyProgress[];
226
- readonly deliverToDcPackageDetails?: PackageCarrierInfo;
234
+ importDiskDetailsCollection?: {
235
+ [propertyName: string]: ImportDiskDetails;
236
+ };
237
+ jobDetailsType: "DataBoxCustomerDisk";
227
238
  returnToCustomerPackageDetails: PackageCarrierDetails;
228
- enableManifestBackup?: boolean;
229
- };
239
+ }
230
240
 
231
241
  // @public
232
- export type DataBoxDiskCopyLogDetails = CopyLogDetails & {
242
+ export interface DataBoxDiskCopyLogDetails extends CopyLogDetails {
233
243
  copyLogDetailsType: "DataBoxDisk";
234
244
  readonly diskSerialNumber?: string;
235
245
  readonly errorLogLink?: string;
236
246
  readonly verboseLogLink?: string;
237
- };
247
+ }
238
248
 
239
249
  // @public
240
250
  export interface DataBoxDiskCopyProgress {
251
+ readonly actions?: CustomerResolutionCode[];
241
252
  readonly bytesCopied?: number;
253
+ readonly error?: CloudError;
242
254
  readonly percentComplete?: number;
243
255
  readonly serialNumber?: string;
244
256
  readonly status?: CopyStatus;
245
257
  }
246
258
 
247
259
  // @public
248
- export type DataBoxDiskJobDetails = JobDetails & {
249
- jobDetailsType: "DataBoxDisk";
250
- preferredDisks?: {
251
- [propertyName: string]: number;
252
- };
260
+ export interface DataBoxDiskGranularCopyLogDetails extends GranularCopyLogDetails {
261
+ readonly accountId?: string;
262
+ copyLogDetailsType: "DataBoxCustomerDisk";
263
+ readonly errorLogLink?: string;
264
+ readonly serialNumber?: string;
265
+ readonly verboseLogLink?: string;
266
+ }
267
+
268
+ // @public
269
+ export interface DataBoxDiskGranularCopyProgress extends GranularCopyProgress {
270
+ readonly copyStatus?: CopyStatus;
271
+ readonly serialNumber?: string;
272
+ }
273
+
274
+ // @public
275
+ export interface DataBoxDiskJobDetails extends JobDetails {
253
276
  readonly copyProgress?: DataBoxDiskCopyProgress[];
254
277
  readonly disksAndSizeDetails?: {
255
278
  [propertyName: string]: number;
256
279
  };
280
+ readonly granularCopyLogDetails?: DataBoxDiskGranularCopyLogDetails[];
281
+ readonly granularCopyProgress?: DataBoxDiskGranularCopyProgress[];
282
+ jobDetailsType: "DataBoxDisk";
257
283
  passkey?: string;
258
- };
284
+ preferredDisks?: {
285
+ [propertyName: string]: number;
286
+ };
287
+ }
259
288
 
260
289
  // @public
261
- export type DataBoxDiskJobSecrets = JobSecrets & {
262
- jobSecretsType: "DataBoxDisk";
290
+ export interface DataBoxDiskJobSecrets extends JobSecrets {
263
291
  readonly diskSecrets?: DiskSecret[];
264
- readonly passKey?: string;
265
292
  readonly isPasskeyUserDefined?: boolean;
266
- };
293
+ jobSecretsType: "DataBoxDisk";
294
+ readonly passKey?: string;
295
+ }
267
296
 
268
297
  // @public
269
- export type DataBoxHeavyAccountCopyLogDetails = CopyLogDetails & {
270
- copyLogDetailsType: "DataBoxHeavy";
298
+ export interface DataBoxHeavyAccountCopyLogDetails extends CopyLogDetails {
271
299
  readonly accountName?: string;
300
+ copyLogDetailsType: "DataBoxHeavy";
272
301
  readonly copyLogLink?: string[];
273
302
  readonly copyVerboseLogLink?: string[];
274
- };
303
+ }
275
304
 
276
305
  // @public
277
- export type DataBoxHeavyJobDetails = JobDetails & {
278
- jobDetailsType: "DataBoxHeavy";
306
+ export interface DataBoxHeavyJobDetails extends JobDetails {
279
307
  readonly copyProgress?: CopyProgress[];
280
308
  devicePassword?: string;
281
- };
309
+ jobDetailsType: "DataBoxHeavy";
310
+ }
282
311
 
283
312
  // @public
284
- export type DataBoxHeavyJobSecrets = JobSecrets & {
285
- jobSecretsType: "DataBoxHeavy";
313
+ export interface DataBoxHeavyJobSecrets extends JobSecrets {
286
314
  readonly cabinetPodSecrets?: DataBoxHeavySecret[];
287
- };
315
+ jobSecretsType: "DataBoxHeavy";
316
+ }
288
317
 
289
318
  // @public
290
319
  export interface DataBoxHeavySecret {
@@ -296,17 +325,17 @@ export interface DataBoxHeavySecret {
296
325
  }
297
326
 
298
327
  // @public
299
- export type DataBoxJobDetails = JobDetails & {
300
- jobDetailsType: "DataBox";
328
+ export interface DataBoxJobDetails extends JobDetails {
301
329
  readonly copyProgress?: CopyProgress[];
302
330
  devicePassword?: string;
303
- };
331
+ jobDetailsType: "DataBox";
332
+ }
304
333
 
305
334
  // @public
306
- export type DataboxJobSecrets = JobSecrets & {
335
+ export interface DataboxJobSecrets extends JobSecrets {
307
336
  jobSecretsType: "DataBox";
308
337
  podSecrets?: DataBoxSecret[];
309
- };
338
+ }
310
339
 
311
340
  // @public (undocumented)
312
341
  export class DataBoxManagementClient extends coreClient.ServiceClient {
@@ -334,9 +363,9 @@ export interface DataBoxManagementClientOptionalParams extends coreClient.Servic
334
363
  }
335
364
 
336
365
  // @public
337
- export type DataBoxScheduleAvailabilityRequest = ScheduleAvailabilityRequest & {
366
+ export interface DataBoxScheduleAvailabilityRequest extends ScheduleAvailabilityRequest {
338
367
  skuName: "DataBox";
339
- };
368
+ }
340
369
 
341
370
  // @public
342
371
  export interface DataBoxSecret {
@@ -348,28 +377,28 @@ export interface DataBoxSecret {
348
377
  }
349
378
 
350
379
  // @public
351
- export type DatacenterAddressInstructionResponse = DatacenterAddressResponse & {
352
- datacenterAddressType: "DatacenterAddressInstruction";
380
+ export interface DatacenterAddressInstructionResponse extends DatacenterAddressResponse {
353
381
  readonly communicationInstruction?: string;
354
- };
382
+ datacenterAddressType: "DatacenterAddressInstruction";
383
+ }
355
384
 
356
385
  // @public
357
- export type DatacenterAddressLocationResponse = DatacenterAddressResponse & {
358
- datacenterAddressType: "DatacenterAddressLocation";
359
- readonly contactPersonName?: string;
386
+ export interface DatacenterAddressLocationResponse extends DatacenterAddressResponse {
387
+ readonly additionalShippingInformation?: string;
388
+ readonly addressType?: string;
389
+ readonly city?: string;
360
390
  readonly company?: string;
391
+ readonly contactPersonName?: string;
392
+ readonly country?: string;
393
+ datacenterAddressType: "DatacenterAddressLocation";
394
+ readonly phone?: string;
395
+ readonly phoneExtension?: string;
396
+ readonly state?: string;
361
397
  readonly street1?: string;
362
398
  readonly street2?: string;
363
399
  readonly street3?: string;
364
- readonly city?: string;
365
- readonly state?: string;
366
400
  readonly zip?: string;
367
- readonly country?: string;
368
- readonly phone?: string;
369
- readonly phoneExtension?: string;
370
- readonly addressType?: string;
371
- readonly additionalShippingInformation?: string;
372
- };
401
+ }
373
402
 
374
403
  // @public
375
404
  export interface DatacenterAddressRequest {
@@ -413,19 +442,19 @@ export interface DataLocationToServiceLocationMap {
413
442
  }
414
443
 
415
444
  // @public
416
- export type DataTransferDetailsValidationRequest = ValidationInputRequest & {
417
- validationType: "ValidateDataTransferDetails";
445
+ export interface DataTransferDetailsValidationRequest extends ValidationInputRequest {
418
446
  dataExportDetails?: DataExportDetails[];
419
447
  dataImportDetails?: DataImportDetails[];
420
448
  deviceType: SkuName;
421
449
  transferType: TransferType;
422
- };
450
+ validationType: "ValidateDataTransferDetails";
451
+ }
423
452
 
424
453
  // @public
425
- export type DataTransferDetailsValidationResponseProperties = ValidationInputResponse & {
426
- validationType: "ValidateDataTransferDetails";
454
+ export interface DataTransferDetailsValidationResponseProperties extends ValidationInputResponse {
427
455
  readonly status?: ValidationStatus;
428
- };
456
+ validationType: "ValidateDataTransferDetails";
457
+ }
429
458
 
430
459
  // @public
431
460
  export interface DcAccessSecurityCode {
@@ -442,10 +471,16 @@ export interface Details {
442
471
  }
443
472
 
444
473
  // @public
445
- export type DiskScheduleAvailabilityRequest = ScheduleAvailabilityRequest & {
446
- skuName: "DataBoxDisk";
474
+ export interface DeviceErasureDetails {
475
+ readonly deviceErasureStatus?: StageStatus;
476
+ readonly erasureOrDestructionCertificateSasKey?: string;
477
+ }
478
+
479
+ // @public
480
+ export interface DiskScheduleAvailabilityRequest extends ScheduleAvailabilityRequest {
447
481
  expectedDataSizeInTeraBytes: number;
448
- };
482
+ skuName: "DataBoxDisk";
483
+ }
449
484
 
450
485
  // @public
451
486
  export interface DiskSecret {
@@ -459,6 +494,7 @@ export type DoubleEncryption = "Enabled" | "Disabled";
459
494
  // @public
460
495
  export interface EncryptionPreferences {
461
496
  doubleEncryption?: DoubleEncryption;
497
+ hardwareEncryption?: HardwareEncryption;
462
498
  }
463
499
 
464
500
  // @public (undocumented)
@@ -490,9 +526,44 @@ export interface FilterFileDetails {
490
526
  export type FilterFileType = "AzureBlob" | "AzureFile";
491
527
 
492
528
  // @public
493
- export type HeavyScheduleAvailabilityRequest = ScheduleAvailabilityRequest & {
529
+ export function getContinuationToken(page: unknown): string | undefined;
530
+
531
+ // @public
532
+ export interface GranularCopyLogDetails {
533
+ copyLogDetailsType: "DataBoxCustomerDisk";
534
+ }
535
+
536
+ // @public (undocumented)
537
+ export type GranularCopyLogDetailsUnion = GranularCopyLogDetails | DataBoxDiskGranularCopyLogDetails;
538
+
539
+ // @public
540
+ export interface GranularCopyProgress {
541
+ readonly accountId?: string;
542
+ readonly actions?: CustomerResolutionCode[];
543
+ readonly bytesProcessed?: number;
544
+ readonly dataAccountType?: DataAccountType;
545
+ readonly directoriesErroredOut?: number;
546
+ readonly error?: CloudError;
547
+ readonly filesErroredOut?: number;
548
+ readonly filesProcessed?: number;
549
+ readonly invalidDirectoriesProcessed?: number;
550
+ readonly invalidFileBytesUploaded?: number;
551
+ readonly invalidFilesProcessed?: number;
552
+ readonly isEnumerationInProgress?: boolean;
553
+ readonly renamedContainerCount?: number;
554
+ readonly storageAccountName?: string;
555
+ readonly totalBytesToProcess?: number;
556
+ readonly totalFilesToProcess?: number;
557
+ readonly transferType?: TransferType;
558
+ }
559
+
560
+ // @public
561
+ export type HardwareEncryption = "Enabled" | "Disabled";
562
+
563
+ // @public
564
+ export interface HeavyScheduleAvailabilityRequest extends ScheduleAvailabilityRequest {
494
565
  skuName: "DataBoxHeavy";
495
- };
566
+ }
496
567
 
497
568
  // @public
498
569
  export interface IdentityProperties {
@@ -527,6 +598,7 @@ export interface JobDetails {
527
598
  dataExportDetails?: DataExportDetails[];
528
599
  dataImportDetails?: DataImportDetails[];
529
600
  readonly deliveryPackage?: PackageShippingDetails;
601
+ readonly deviceErasureDetails?: DeviceErasureDetails;
530
602
  expectedDataSizeInTeraBytes?: number;
531
603
  jobDetailsType: "DataBoxCustomerDisk" | "DataBoxDisk" | "DataBoxHeavy" | "DataBox";
532
604
  readonly jobStages?: JobStages[];
@@ -535,6 +607,7 @@ export interface JobDetails {
535
607
  preferences?: Preferences;
536
608
  readonly returnPackage?: PackageShippingDetails;
537
609
  readonly reverseShipmentLabelSasKey?: string;
610
+ reverseShippingDetails?: ReverseShippingDetails;
538
611
  shippingAddress?: ShippingAddress;
539
612
  }
540
613
 
@@ -542,25 +615,27 @@ export interface JobDetails {
542
615
  export type JobDetailsUnion = JobDetails | DataBoxCustomerDiskJobDetails | DataBoxDiskJobDetails | DataBoxHeavyJobDetails | DataBoxJobDetails;
543
616
 
544
617
  // @public
545
- export type JobResource = Resource & {
546
- readonly name?: string;
618
+ export interface JobResource extends Resource {
619
+ readonly cancellationReason?: string;
620
+ deliveryInfo?: JobDeliveryInfo;
621
+ deliveryType?: JobDeliveryType;
622
+ details?: JobDetailsUnion;
623
+ readonly error?: CloudError;
547
624
  readonly id?: string;
548
- readonly type?: string;
549
- readonly systemData?: SystemData;
550
- transferType: TransferType;
551
625
  readonly isCancellable?: boolean;
626
+ readonly isCancellableWithoutFee?: boolean;
552
627
  readonly isDeletable?: boolean;
553
- readonly isShippingAddressEditable?: boolean;
554
628
  readonly isPrepareToShipEnabled?: boolean;
555
- readonly status?: StageName;
629
+ readonly isShippingAddressEditable?: boolean;
630
+ readonly name?: string;
631
+ readonly reverseShippingDetailsUpdate?: ReverseShippingDetailsEditStatus;
632
+ readonly reverseTransportPreferenceUpdate?: ReverseTransportPreferenceEditStatus;
556
633
  readonly startTime?: Date;
557
- readonly error?: CloudError;
558
- details?: JobDetailsUnion;
559
- readonly cancellationReason?: string;
560
- deliveryType?: JobDeliveryType;
561
- deliveryInfo?: JobDeliveryInfo;
562
- readonly isCancellableWithoutFee?: boolean;
563
- };
634
+ readonly status?: StageName;
635
+ readonly systemData?: SystemData;
636
+ transferType: TransferType;
637
+ readonly type?: string;
638
+ }
564
639
 
565
640
  // @public
566
641
  export interface JobResourceList {
@@ -579,11 +654,11 @@ export interface JobResourceUpdateParameter {
579
654
 
580
655
  // @public
581
656
  export interface Jobs {
582
- beginCreate(resourceGroupName: string, jobName: string, jobResource: JobResource, options?: JobsCreateOptionalParams): Promise<PollerLike<PollOperationState<JobsCreateResponse>, JobsCreateResponse>>;
657
+ beginCreate(resourceGroupName: string, jobName: string, jobResource: JobResource, options?: JobsCreateOptionalParams): Promise<SimplePollerLike<OperationState<JobsCreateResponse>, JobsCreateResponse>>;
583
658
  beginCreateAndWait(resourceGroupName: string, jobName: string, jobResource: JobResource, options?: JobsCreateOptionalParams): Promise<JobsCreateResponse>;
584
- beginDelete(resourceGroupName: string, jobName: string, options?: JobsDeleteOptionalParams): Promise<PollerLike<PollOperationState<void>, void>>;
659
+ beginDelete(resourceGroupName: string, jobName: string, options?: JobsDeleteOptionalParams): Promise<SimplePollerLike<OperationState<void>, void>>;
585
660
  beginDeleteAndWait(resourceGroupName: string, jobName: string, options?: JobsDeleteOptionalParams): Promise<void>;
586
- beginUpdate(resourceGroupName: string, jobName: string, jobResourceUpdateParameter: JobResourceUpdateParameter, options?: JobsUpdateOptionalParams): Promise<PollerLike<PollOperationState<JobsUpdateResponse>, JobsUpdateResponse>>;
661
+ beginUpdate(resourceGroupName: string, jobName: string, jobResourceUpdateParameter: JobResourceUpdateParameter, options?: JobsUpdateOptionalParams): Promise<SimplePollerLike<OperationState<JobsUpdateResponse>, JobsUpdateResponse>>;
587
662
  beginUpdateAndWait(resourceGroupName: string, jobName: string, jobResourceUpdateParameter: JobResourceUpdateParameter, options?: JobsUpdateOptionalParams): Promise<JobsUpdateResponse>;
588
663
  bookShipmentPickUp(resourceGroupName: string, jobName: string, shipmentPickUpRequest: ShipmentPickUpRequest, options?: JobsBookShipmentPickUpOptionalParams): Promise<JobsBookShipmentPickUpResponse>;
589
664
  cancel(resourceGroupName: string, jobName: string, cancellationReason: CancellationReason, options?: JobsCancelOptionalParams): Promise<void>;
@@ -614,6 +689,11 @@ export interface JobsCreateOptionalParams extends coreClient.OperationOptions {
614
689
  // @public
615
690
  export type JobsCreateResponse = JobResource;
616
691
 
692
+ // @public
693
+ export interface JobsDeleteHeaders {
694
+ location?: string;
695
+ }
696
+
617
697
  // @public
618
698
  export interface JobsDeleteOptionalParams extends coreClient.OperationOptions {
619
699
  resumeFrom?: string;
@@ -640,7 +720,6 @@ export type JobsGetResponse = JobResource;
640
720
 
641
721
  // @public
642
722
  export interface JobsListByResourceGroupNextOptionalParams extends coreClient.OperationOptions {
643
- skipToken?: string;
644
723
  }
645
724
 
646
725
  // @public
@@ -663,7 +742,6 @@ export type JobsListCredentialsResponse = UnencryptedCredentialsList;
663
742
 
664
743
  // @public
665
744
  export interface JobsListNextOptionalParams extends coreClient.OperationOptions {
666
- skipToken?: string;
667
745
  }
668
746
 
669
747
  // @public
@@ -690,6 +768,11 @@ export interface JobStages {
690
768
  readonly stageTime?: Date;
691
769
  }
692
770
 
771
+ // @public
772
+ export interface JobsUpdateHeaders {
773
+ location?: string;
774
+ }
775
+
693
776
  // @public
694
777
  export interface JobsUpdateOptionalParams extends coreClient.OperationOptions {
695
778
  ifMatch?: string;
@@ -735,105 +818,64 @@ export enum KnownCopyStatus {
735
818
 
736
819
  // @public
737
820
  export enum KnownDataCenterCode {
738
- // (undocumented)
739
821
  AdHoc = "AdHoc",
740
- // (undocumented)
741
822
  AM2 = "AM2",
742
- // (undocumented)
743
823
  AMS06 = "AMS06",
744
- // (undocumented)
745
824
  AMS20 = "AMS20",
746
- // (undocumented)
747
825
  AUH20 = "AUH20",
748
- // (undocumented)
749
826
  BJB = "BJB",
750
- // (undocumented)
827
+ BJS20 = "BJS20",
751
828
  BL20 = "BL20",
752
- // (undocumented)
753
829
  BL7 = "BL7",
754
- // (undocumented)
755
830
  BN1 = "BN1",
756
- // (undocumented)
831
+ BN7 = "BN7",
757
832
  BOM01 = "BOM01",
758
- // (undocumented)
759
833
  BY1 = "BY1",
760
- // (undocumented)
761
834
  BY2 = "BY2",
762
- // (undocumented)
763
835
  BY21 = "BY21",
764
- // (undocumented)
765
836
  BY24 = "BY24",
766
- // (undocumented)
767
837
  CBR20 = "CBR20",
768
- // (undocumented)
769
838
  CH1 = "CH1",
770
- // (undocumented)
771
839
  CPQ02 = "CPQ02",
772
- // (undocumented)
773
840
  CPQ20 = "CPQ20",
774
- // (undocumented)
775
841
  CWL20 = "CWL20",
776
- // (undocumented)
777
842
  CYS04 = "CYS04",
778
- // (undocumented)
779
843
  DSM05 = "DSM05",
780
- // (undocumented)
844
+ DUB07 = "DUB07",
781
845
  FRA22 = "FRA22",
782
- // (undocumented)
783
846
  HKG20 = "HKG20",
784
- // (undocumented)
785
847
  Invalid = "Invalid",
786
- // (undocumented)
787
848
  JNB21 = "JNB21",
788
- // (undocumented)
789
849
  JNB22 = "JNB22",
790
- // (undocumented)
791
850
  LON24 = "LON24",
792
- // (undocumented)
793
851
  MAA01 = "MAA01",
794
- // (undocumented)
795
852
  MEL23 = "MEL23",
796
- // (undocumented)
797
853
  MNZ21 = "MNZ21",
798
- // (undocumented)
799
854
  MWH01 = "MWH01",
800
- // (undocumented)
801
855
  ORK70 = "ORK70",
802
- // (undocumented)
856
+ OSA02 = "OSA02",
803
857
  OSA20 = "OSA20",
804
- // (undocumented)
858
+ OSA22 = "OSA22",
859
+ PAR22 = "PAR22",
860
+ PNQ01 = "PNQ01",
805
861
  PUS20 = "PUS20",
806
- // (undocumented)
807
862
  SEL20 = "SEL20",
808
- // (undocumented)
809
863
  SEL21 = "SEL21",
810
- // (undocumented)
811
864
  SG2 = "SG2",
812
- // (undocumented)
813
865
  SHA03 = "SHA03",
814
- // (undocumented)
815
866
  SIN20 = "SIN20",
816
- // (undocumented)
817
867
  SN5 = "SN5",
818
- // (undocumented)
868
+ SN6 = "SN6",
819
869
  SN8 = "SN8",
820
- // (undocumented)
821
870
  SSE90 = "SSE90",
822
- // (undocumented)
871
+ SVG20 = "SVG20",
823
872
  SYD03 = "SYD03",
824
- // (undocumented)
825
873
  SYD23 = "SYD23",
826
- // (undocumented)
827
874
  TYO01 = "TYO01",
828
- // (undocumented)
829
875
  TYO22 = "TYO22",
830
- // (undocumented)
831
876
  YQB20 = "YQB20",
832
- // (undocumented)
833
877
  YTO20 = "YTO20",
834
- // (undocumented)
835
878
  YTO21 = "YTO21",
836
- // (undocumented)
837
879
  ZRH20 = "ZRH20"
838
880
  }
839
881
 
@@ -885,11 +927,11 @@ export interface LastMitigationActionOnJob {
885
927
  export type LogCollectionLevel = "Error" | "Verbose";
886
928
 
887
929
  // @public
888
- export type ManagedDiskDetails = DataAccountDetails & {
930
+ export interface ManagedDiskDetails extends DataAccountDetails {
889
931
  dataAccountType: "ManagedDisk";
890
932
  resourceGroupId: string;
891
933
  stagingStorageAccountId: string;
892
- };
934
+ }
893
935
 
894
936
  // @public
895
937
  export interface MarkDevicesShippedRequest {
@@ -898,7 +940,10 @@ export interface MarkDevicesShippedRequest {
898
940
 
899
941
  // @public
900
942
  export interface MitigateJobRequest {
901
- customerResolutionCode: CustomerResolutionCode;
943
+ customerResolutionCode?: CustomerResolutionCode;
944
+ serialNumberCustomerResolutionMap?: {
945
+ [propertyName: string]: CustomerResolutionCode;
946
+ };
902
947
  }
903
948
 
904
949
  // @public
@@ -983,21 +1028,23 @@ export interface PackageShippingDetails {
983
1028
  export interface Preferences {
984
1029
  encryptionPreferences?: EncryptionPreferences;
985
1030
  preferredDataCenterRegion?: string[];
1031
+ reverseTransportPreferences?: TransportPreferences;
1032
+ storageAccountAccessTierPreferences?: string[];
986
1033
  transportPreferences?: TransportPreferences;
987
1034
  }
988
1035
 
989
1036
  // @public
990
- export type PreferencesValidationRequest = ValidationInputRequest & {
991
- validationType: "ValidatePreferences";
992
- preference?: Preferences;
1037
+ export interface PreferencesValidationRequest extends ValidationInputRequest {
993
1038
  deviceType: SkuName;
994
- };
1039
+ preference?: Preferences;
1040
+ validationType: "ValidatePreferences";
1041
+ }
995
1042
 
996
1043
  // @public
997
- export type PreferencesValidationResponseProperties = ValidationInputResponse & {
998
- validationType: "ValidatePreferences";
1044
+ export interface PreferencesValidationResponseProperties extends ValidationInputResponse {
999
1045
  readonly status?: ValidationStatus;
1000
- };
1046
+ validationType: "ValidatePreferences";
1047
+ }
1001
1048
 
1002
1049
  // @public
1003
1050
  export interface RegionConfigurationRequest {
@@ -1033,6 +1080,19 @@ export interface ResourceIdentity {
1033
1080
  };
1034
1081
  }
1035
1082
 
1083
+ // @public
1084
+ export interface ReverseShippingDetails {
1085
+ contactDetails?: ContactInfo;
1086
+ readonly isUpdated?: boolean;
1087
+ shippingAddress?: ShippingAddress;
1088
+ }
1089
+
1090
+ // @public
1091
+ export type ReverseShippingDetailsEditStatus = "Enabled" | "Disabled" | "NotSupported";
1092
+
1093
+ // @public
1094
+ export type ReverseTransportPreferenceEditStatus = "Enabled" | "Disabled" | "NotSupported";
1095
+
1036
1096
  // @public
1037
1097
  export interface ScheduleAvailabilityRequest {
1038
1098
  country?: string;
@@ -1139,10 +1199,12 @@ export interface ShippingAddress {
1139
1199
  companyName?: string;
1140
1200
  country: string;
1141
1201
  postalCode?: string;
1202
+ skipAddressValidation?: boolean;
1142
1203
  stateOrProvince?: string;
1143
1204
  streetAddress1: string;
1144
1205
  streetAddress2?: string;
1145
1206
  streetAddress3?: string;
1207
+ taxIdentificationNumber?: string;
1146
1208
  zipExtendedCode?: string;
1147
1209
  }
1148
1210
 
@@ -1154,19 +1216,19 @@ export interface Sku {
1154
1216
  }
1155
1217
 
1156
1218
  // @public
1157
- export type SkuAvailabilityValidationRequest = ValidationInputRequest & {
1158
- validationType: "ValidateSkuAvailability";
1159
- deviceType: SkuName;
1160
- transferType: TransferType;
1219
+ export interface SkuAvailabilityValidationRequest extends ValidationInputRequest {
1161
1220
  country: string;
1221
+ deviceType: SkuName;
1162
1222
  location: string;
1163
- };
1223
+ transferType: TransferType;
1224
+ validationType: "ValidateSkuAvailability";
1225
+ }
1164
1226
 
1165
1227
  // @public
1166
- export type SkuAvailabilityValidationResponseProperties = ValidationInputResponse & {
1167
- validationType: "ValidateSkuAvailability";
1228
+ export interface SkuAvailabilityValidationResponseProperties extends ValidationInputResponse {
1168
1229
  readonly status?: ValidationStatus;
1169
- };
1230
+ validationType: "ValidateSkuAvailability";
1231
+ }
1170
1232
 
1171
1233
  // @public
1172
1234
  export interface SkuCapacity {
@@ -1189,6 +1251,7 @@ export interface SkuInformation {
1189
1251
  readonly apiVersions?: string[];
1190
1252
  readonly capacity?: SkuCapacity;
1191
1253
  readonly costs?: SkuCost[];
1254
+ readonly countriesWithinCommerceBoundary?: string[];
1192
1255
  readonly dataLocationToServiceLocationMap?: DataLocationToServiceLocationMap[];
1193
1256
  readonly disabledReason?: SkuDisabledReason;
1194
1257
  readonly disabledReasonMessage?: string;
@@ -1204,24 +1267,24 @@ export type SkuName = "DataBox" | "DataBoxDisk" | "DataBoxHeavy" | "DataBoxCusto
1204
1267
  export type StageName = string;
1205
1268
 
1206
1269
  // @public
1207
- export type StageStatus = "None" | "InProgress" | "Succeeded" | "Failed" | "Cancelled" | "Cancelling" | "SucceededWithErrors" | "WaitingForCustomerAction" | "SucceededWithWarnings" | "WaitingForCustomerActionForKek" | "WaitingForCustomerActionForCleanUp" | "CustomerActionPerformedForCleanUp";
1270
+ export type StageStatus = "None" | "InProgress" | "Succeeded" | "Failed" | "Cancelled" | "Cancelling" | "SucceededWithErrors" | "WaitingForCustomerAction" | "SucceededWithWarnings" | "WaitingForCustomerActionForKek" | "WaitingForCustomerActionForCleanUp" | "CustomerActionPerformedForCleanUp" | "CustomerActionPerformed";
1208
1271
 
1209
1272
  // @public
1210
- export type StorageAccountDetails = DataAccountDetails & {
1273
+ export interface StorageAccountDetails extends DataAccountDetails {
1211
1274
  dataAccountType: "StorageAccount";
1212
1275
  storageAccountId: string;
1213
- };
1276
+ }
1214
1277
 
1215
1278
  // @public
1216
- export type SubscriptionIsAllowedToCreateJobValidationRequest = ValidationInputRequest & {
1279
+ export interface SubscriptionIsAllowedToCreateJobValidationRequest extends ValidationInputRequest {
1217
1280
  validationType: "ValidateSubscriptionIsAllowedToCreateJob";
1218
- };
1281
+ }
1219
1282
 
1220
1283
  // @public
1221
- export type SubscriptionIsAllowedToCreateJobValidationResponseProperties = ValidationInputResponse & {
1222
- validationType: "ValidateSubscriptionIsAllowedToCreateJob";
1284
+ export interface SubscriptionIsAllowedToCreateJobValidationResponseProperties extends ValidationInputResponse {
1223
1285
  readonly status?: ValidationStatus;
1224
- };
1286
+ validationType: "ValidateSubscriptionIsAllowedToCreateJob";
1287
+ }
1225
1288
 
1226
1289
  // @public
1227
1290
  export interface SystemData {
@@ -1288,6 +1351,7 @@ export interface TransportAvailabilityResponse {
1288
1351
 
1289
1352
  // @public
1290
1353
  export interface TransportPreferences {
1354
+ readonly isUpdated?: boolean;
1291
1355
  preferredShipmentType: TransportShipmentTypes;
1292
1356
  }
1293
1357
 
@@ -1310,7 +1374,9 @@ export interface UnencryptedCredentialsList {
1310
1374
  export interface UpdateJobDetails {
1311
1375
  contactDetails?: ContactDetails;
1312
1376
  keyEncryptionKey?: KeyEncryptionKey;
1377
+ preferences?: Preferences;
1313
1378
  returnToCustomerPackageDetails?: PackageCarrierDetails;
1379
+ reverseShippingDetails?: ReverseShippingDetails;
1314
1380
  shippingAddress?: ShippingAddress;
1315
1381
  }
1316
1382
 
@@ -1326,12 +1392,12 @@ export interface UserAssignedProperties {
1326
1392
  }
1327
1393
 
1328
1394
  // @public
1329
- export type ValidateAddress = ValidationInputRequest & {
1330
- validationType: "ValidateAddress";
1331
- shippingAddress: ShippingAddress;
1395
+ export interface ValidateAddress extends ValidationInputRequest {
1332
1396
  deviceType: SkuName;
1397
+ shippingAddress: ShippingAddress;
1333
1398
  transportPreferences?: TransportPreferences;
1334
- };
1399
+ validationType: "ValidateAddress";
1400
+ }
1335
1401
 
1336
1402
  // @public
1337
1403
  export type ValidationInputDiscriminator = "ValidateAddress" | "ValidateSubscriptionIsAllowedToCreateJob" | "ValidatePreferences" | "ValidateCreateOrderLimit" | "ValidateSkuAvailability" | "ValidateDataTransferDetails";