/
models.go
2560 lines (1931 loc) · 84.5 KB
/
models.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
//go:build go1.18
// +build go1.18
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
// Code generated by Microsoft (R) AutoRest Code Generator. DO NOT EDIT.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
package armdatabox
import "time"
type APIError struct {
// REQUIRED
Error *ErrorDetail
}
// AccountCopyLogDetails - Copy log details for a storage account of a DataBox job
type AccountCopyLogDetails struct {
// REQUIRED; Indicates the type of job details.
CopyLogDetailsType *ClassDiscriminator
// READ-ONLY; Account name.
AccountName *string
// READ-ONLY; Link for copy logs.
CopyLogLink *string
// READ-ONLY; Link for copy verbose logs. This will be set only when LogCollectionLevel is set to Verbose.
CopyVerboseLogLink *string
}
// GetCopyLogDetails implements the CopyLogDetailsClassification interface for type AccountCopyLogDetails.
func (a *AccountCopyLogDetails) GetCopyLogDetails() *CopyLogDetails {
return &CopyLogDetails{
CopyLogDetailsType: a.CopyLogDetailsType,
}
}
// AccountCredentialDetails - Credential details of the account.
type AccountCredentialDetails struct {
// READ-ONLY; Connection string of the account endpoint to use the account as a storage endpoint on the device.
AccountConnectionString *string
// READ-ONLY; Name of the account.
AccountName *string
// READ-ONLY; Type of the account.
DataAccountType *DataAccountType
// READ-ONLY; Per share level unencrypted access credentials.
ShareCredentialDetails []*ShareCredentialDetails
}
// AdditionalErrorInfo - This class represents additional info which Resource Providers pass when an error occurs.
type AdditionalErrorInfo struct {
// Additional information of the type of error.
Info any
// Type of error (e.g. CustomerIntervention, PolicyViolation, SecurityViolation).
Type *string
}
// AddressValidationOutput - Output of the address validation api.
type AddressValidationOutput struct {
// READ-ONLY; The address validation properties.
Properties *AddressValidationProperties
}
// AddressValidationProperties - The address validation output.
type AddressValidationProperties struct {
// REQUIRED; Identifies the type of validation response.
ValidationType *ValidationInputDiscriminator
// READ-ONLY; List of alternate addresses.
AlternateAddresses []*ShippingAddress
// READ-ONLY; Error code and message of validation response.
Error *CloudError
// READ-ONLY; The address validation status.
ValidationStatus *AddressValidationStatus
}
// GetValidationInputResponse implements the ValidationInputResponseClassification interface for type AddressValidationProperties.
func (a *AddressValidationProperties) GetValidationInputResponse() *ValidationInputResponse {
return &ValidationInputResponse{
Error: a.Error,
ValidationType: a.ValidationType,
}
}
// ApplianceNetworkConfiguration - The Network Adapter configuration of a DataBox.
type ApplianceNetworkConfiguration struct {
// READ-ONLY; Mac Address.
MacAddress *string
// READ-ONLY; Name of the network.
Name *string
}
// ArmBaseObject - Base class for all objects under resource.
type ArmBaseObject struct {
// READ-ONLY; Id of the object.
ID *string
// READ-ONLY; Name of the object.
Name *string
// READ-ONLY; Type of the object.
Type *string
}
// AvailableSKURequest - The filters for showing the available skus.
type AvailableSKURequest struct {
// REQUIRED; ISO country code. Country for hardware shipment. For codes check: https://en.wikipedia.org/wiki/ISO3166-1alpha-2#Officiallyassignedcode_elements
Country *string
// REQUIRED; Location for data transfer. For locations check: https://management.azure.com/subscriptions/SUBSCRIPTIONID/locations?api-version=2018-01-01
Location *string
// REQUIRED; Type of the transfer.
TransferType *TransferType
// Sku Names to filter for available skus
SKUNames []*SKUName
}
// AvailableSKUsResult - The available skus operation response.
type AvailableSKUsResult struct {
// Link for the next set of skus.
NextLink *string
// READ-ONLY; List of available skus.
Value []*SKUInformation
}
// AzureFileFilterDetails - Filter details to transfer Azure files
type AzureFileFilterDetails struct {
// List of full path of the files to be transferred.
FilePathList []*string
// Prefix list of the Azure files to be transferred.
FilePrefixList []*string
// List of file shares to be transferred.
FileShareList []*string
}
// BlobFilterDetails - Filter details to transfer Azure Blobs
type BlobFilterDetails struct {
// List of full path of the blobs to be transferred.
BlobPathList []*string
// Prefix list of the Azure blobs to be transferred.
BlobPrefixList []*string
// List of blob containers to be transferred.
ContainerList []*string
}
// CancellationReason - Reason for cancellation.
type CancellationReason struct {
// REQUIRED; Reason for cancellation.
Reason *string
}
// CloudError - Provides additional information about an http error response.
type CloudError struct {
// Error code.
Code *string
// The error message parsed from the body of the http error response.
Message *string
// Gets or sets the target of the error.
Target *string
// READ-ONLY; Gets or sets additional error info.
AdditionalInfo []*AdditionalErrorInfo
// READ-ONLY; Gets or sets details for the error.
Details []*CloudError
}
// CommonJobDetails - Job details.
type CommonJobDetails struct {
// REQUIRED; Contact details for notification and shipping.
ContactDetails *ContactDetails
// REQUIRED; Indicates the type of job details.
JobDetailsType *ClassDiscriminator
// Details of the data to be exported from azure.
DataExportDetails []*DataExportDetails
// Details of the data to be imported into azure.
DataImportDetails []*DataImportDetails
// The expected size of the data, which needs to be transferred in this job, in terabytes.
ExpectedDataSizeInTeraBytes *int32
// Details about which key encryption type is being used.
KeyEncryptionKey *KeyEncryptionKey
// Preferences for the order.
Preferences *Preferences
// Optional Reverse Shipping details for order.
ReverseShippingDetails *ReverseShippingDetails
// Shipping address of the customer.
ShippingAddress *ShippingAddress
// READ-ONLY; Available actions on the job.
Actions []*CustomerResolutionCode
// READ-ONLY; Shared access key to download the chain of custody logs
ChainOfCustodySasKey *string
// READ-ONLY; List of copy log details.
CopyLogDetails []CopyLogDetailsClassification
// READ-ONLY; DataCenter code.
DataCenterCode *DataCenterCode
// READ-ONLY; Datacenter address to ship to, for the given sku and storage location.
DatacenterAddress DatacenterAddressResponseClassification
// READ-ONLY; Delivery package shipping details.
DeliveryPackage *PackageShippingDetails
// READ-ONLY; Holds device data erasure details
DeviceErasureDetails *DeviceErasureDetails
// READ-ONLY; List of stages that run in the job.
JobStages []*JobStages
// READ-ONLY; Last mitigation action performed on the job.
LastMitigationActionOnJob *LastMitigationActionOnJob
// READ-ONLY; Return package shipping details.
ReturnPackage *PackageShippingDetails
// READ-ONLY; Shared access key to download the return shipment label
ReverseShipmentLabelSasKey *string
}
// GetCommonJobDetails implements the CommonJobDetailsClassification interface for type CommonJobDetails.
func (c *CommonJobDetails) GetCommonJobDetails() *CommonJobDetails { return c }
// CommonJobSecrets - The base class for the secrets
type CommonJobSecrets struct {
// REQUIRED; Used to indicate what type of job secrets object.
JobSecretsType *ClassDiscriminator
// READ-ONLY; Dc Access Security Code for Customer Managed Shipping
DcAccessSecurityCode *DcAccessSecurityCode
// READ-ONLY; Error while fetching the secrets.
Error *CloudError
}
// GetCommonJobSecrets implements the CommonJobSecretsClassification interface for type CommonJobSecrets.
func (c *CommonJobSecrets) GetCommonJobSecrets() *CommonJobSecrets { return c }
// CommonScheduleAvailabilityRequest - Request body to get the availability for scheduling orders.
type CommonScheduleAvailabilityRequest struct {
// REQUIRED; Sku Name for which the order is to be scheduled.
SKUName *SKUName
// REQUIRED; Location for data transfer. For locations check: https://management.azure.com/subscriptions/SUBSCRIPTIONID/locations?api-version=2018-01-01
StorageLocation *string
// Country in which storage location should be supported.
Country *string
}
// GetCommonScheduleAvailabilityRequest implements the CommonScheduleAvailabilityRequestClassification interface for type
// CommonScheduleAvailabilityRequest.
func (c *CommonScheduleAvailabilityRequest) GetCommonScheduleAvailabilityRequest() *CommonScheduleAvailabilityRequest {
return c
}
// ContactDetails - Contact Details.
type ContactDetails struct {
// REQUIRED; Contact name of the person.
ContactName *string
// REQUIRED; List of Email-ids to be notified about job progress.
EmailList []*string
// REQUIRED; Phone number of the contact person.
Phone *string
// Mobile number of the contact person.
Mobile *string
// Notification preference for a job stage.
NotificationPreference []*NotificationPreference
// Phone extension number of the contact person.
PhoneExtension *string
}
// ContactInfo - Contact Info.
type ContactInfo struct {
// REQUIRED; Contact name of the person.
ContactName *string
// REQUIRED; Phone number of the contact person.
Phone *string
// Mobile number of the contact person.
Mobile *string
// Phone extension number of the contact person.
PhoneExtension *string
}
// CopyLogDetails - Details for log generated during copy.
type CopyLogDetails struct {
// REQUIRED; Indicates the type of job details.
CopyLogDetailsType *ClassDiscriminator
}
// GetCopyLogDetails implements the CopyLogDetailsClassification interface for type CopyLogDetails.
func (c *CopyLogDetails) GetCopyLogDetails() *CopyLogDetails { return c }
// CopyProgress - Copy progress.
type CopyProgress struct {
// READ-ONLY; Id of the account where the data needs to be uploaded.
AccountID *string
// READ-ONLY; Available actions on the job.
Actions []*CustomerResolutionCode
// READ-ONLY; To indicate bytes transferred.
BytesProcessed *int64
// READ-ONLY; Data Account Type.
DataAccountType *DataAccountType
// READ-ONLY; To indicate directories errored out in the job.
DirectoriesErroredOut *int64
// READ-ONLY; Error, if any, in the stage
Error *CloudError
// READ-ONLY; Number of files which could not be copied
FilesErroredOut *int64
// READ-ONLY; Number of files processed
FilesProcessed *int64
// READ-ONLY; To indicate directories renamed
InvalidDirectoriesProcessed *int64
// READ-ONLY; Total amount of data not adhering to azure naming conventions which were processed by automatic renaming
InvalidFileBytesUploaded *int64
// READ-ONLY; Number of files not adhering to azure naming conventions which were processed by automatic renaming
InvalidFilesProcessed *int64
// READ-ONLY; To indicate if enumeration of data is in progress. Until this is true, the TotalBytesToProcess may not be valid.
IsEnumerationInProgress *bool
// READ-ONLY; Number of folders not adhering to azure naming conventions which were processed by automatic renaming
RenamedContainerCount *int64
// READ-ONLY; Name of the storage account. This will be empty for data account types other than storage account.
StorageAccountName *string
// READ-ONLY; Total amount of data to be processed by the job.
TotalBytesToProcess *int64
// READ-ONLY; Total files to process
TotalFilesToProcess *int64
// READ-ONLY; Transfer type of data
TransferType *TransferType
}
// CreateJobValidations - It does all pre-job creation validations.
type CreateJobValidations struct {
// REQUIRED; List of request details contain validationType and its request as key and value respectively.
IndividualRequestDetails []ValidationInputRequestClassification
// CONSTANT; Identify the nature of validation.
// Field has constant value "JobCreationValidation", any specified value is ignored.
ValidationCategory *string
}
// GetValidationRequest implements the ValidationRequestClassification interface for type CreateJobValidations.
func (c *CreateJobValidations) GetValidationRequest() *ValidationRequest {
return &ValidationRequest{
IndividualRequestDetails: c.IndividualRequestDetails,
ValidationCategory: c.ValidationCategory,
}
}
// CreateOrderLimitForSubscriptionValidationRequest - Request to validate create order limit for current subscription.
type CreateOrderLimitForSubscriptionValidationRequest struct {
// REQUIRED; Device type to be used for the job.
DeviceType *SKUName
// REQUIRED; Identifies the type of validation request.
ValidationType *ValidationInputDiscriminator
}
// GetValidationInputRequest implements the ValidationInputRequestClassification interface for type CreateOrderLimitForSubscriptionValidationRequest.
func (c *CreateOrderLimitForSubscriptionValidationRequest) GetValidationInputRequest() *ValidationInputRequest {
return &ValidationInputRequest{
ValidationType: c.ValidationType,
}
}
// CreateOrderLimitForSubscriptionValidationResponseProperties - Properties of create order limit for subscription validation
// response.
type CreateOrderLimitForSubscriptionValidationResponseProperties struct {
// REQUIRED; Identifies the type of validation response.
ValidationType *ValidationInputDiscriminator
// READ-ONLY; Error code and message of validation response.
Error *CloudError
// READ-ONLY; Create order limit validation status.
Status *ValidationStatus
}
// GetValidationInputResponse implements the ValidationInputResponseClassification interface for type CreateOrderLimitForSubscriptionValidationResponseProperties.
func (c *CreateOrderLimitForSubscriptionValidationResponseProperties) GetValidationInputResponse() *ValidationInputResponse {
return &ValidationInputResponse{
Error: c.Error,
ValidationType: c.ValidationType,
}
}
// CustomerDiskCopyLogDetails - Copy Log Details for customer disk
type CustomerDiskCopyLogDetails struct {
// REQUIRED; Indicates the type of job details.
CopyLogDetailsType *ClassDiscriminator
// READ-ONLY; Link for copy error logs.
ErrorLogLink *string
// READ-ONLY; Disk Serial Number.
SerialNumber *string
// READ-ONLY; Link for copy verbose logs.
VerboseLogLink *string
}
// GetCopyLogDetails implements the CopyLogDetailsClassification interface for type CustomerDiskCopyLogDetails.
func (c *CustomerDiskCopyLogDetails) GetCopyLogDetails() *CopyLogDetails {
return &CopyLogDetails{
CopyLogDetailsType: c.CopyLogDetailsType,
}
}
// CustomerDiskCopyProgress - DataBox CustomerDisk Copy Progress
type CustomerDiskCopyProgress struct {
// READ-ONLY; Id of the account where the data needs to be uploaded.
AccountID *string
// READ-ONLY; Available actions on the job.
Actions []*CustomerResolutionCode
// READ-ONLY; To indicate bytes transferred.
BytesProcessed *int64
// READ-ONLY; The Status of the copy
CopyStatus *CopyStatus
// READ-ONLY; Data Account Type.
DataAccountType *DataAccountType
// READ-ONLY; To indicate directories errored out in the job.
DirectoriesErroredOut *int64
// READ-ONLY; Error, if any, in the stage
Error *CloudError
// READ-ONLY; Number of files which could not be copied
FilesErroredOut *int64
// READ-ONLY; Number of files processed
FilesProcessed *int64
// READ-ONLY; To indicate directories renamed
InvalidDirectoriesProcessed *int64
// READ-ONLY; Total amount of data not adhering to azure naming conventions which were processed by automatic renaming
InvalidFileBytesUploaded *int64
// READ-ONLY; Number of files not adhering to azure naming conventions which were processed by automatic renaming
InvalidFilesProcessed *int64
// READ-ONLY; To indicate if enumeration of data is in progress. Until this is true, the TotalBytesToProcess may not be valid.
IsEnumerationInProgress *bool
// READ-ONLY; Number of folders not adhering to azure naming conventions which were processed by automatic renaming
RenamedContainerCount *int64
// READ-ONLY; Disk Serial Number.
SerialNumber *string
// READ-ONLY; Name of the storage account. This will be empty for data account types other than storage account.
StorageAccountName *string
// READ-ONLY; Total amount of data to be processed by the job.
TotalBytesToProcess *int64
// READ-ONLY; Total files to process
TotalFilesToProcess *int64
// READ-ONLY; Transfer type of data
TransferType *TransferType
}
// CustomerDiskJobDetails - Customer disk job details.
type CustomerDiskJobDetails struct {
// REQUIRED; Contact details for notification and shipping.
ContactDetails *ContactDetails
// REQUIRED; Indicates the type of job details.
JobDetailsType *ClassDiscriminator
// REQUIRED; Return package shipping details.
ReturnToCustomerPackageDetails *PackageCarrierDetails
// Details of the data to be exported from azure.
DataExportDetails []*DataExportDetails
// Details of the data to be imported into azure.
DataImportDetails []*DataImportDetails
// Flag to indicate if disk manifest should be backed-up in the Storage Account.
EnableManifestBackup *bool
// The expected size of the data, which needs to be transferred in this job, in terabytes.
ExpectedDataSizeInTeraBytes *int32
// Contains the map of disk serial number to the disk details for import jobs.
ImportDiskDetailsCollection map[string]*ImportDiskDetails
// Details about which key encryption type is being used.
KeyEncryptionKey *KeyEncryptionKey
// Preferences for the order.
Preferences *Preferences
// Optional Reverse Shipping details for order.
ReverseShippingDetails *ReverseShippingDetails
// Shipping address of the customer.
ShippingAddress *ShippingAddress
// READ-ONLY; Available actions on the job.
Actions []*CustomerResolutionCode
// READ-ONLY; Shared access key to download the chain of custody logs
ChainOfCustodySasKey *string
// READ-ONLY; List of copy log details.
CopyLogDetails []CopyLogDetailsClassification
// READ-ONLY; Copy progress per disk.
CopyProgress []*CustomerDiskCopyProgress
// READ-ONLY; DataCenter code.
DataCenterCode *DataCenterCode
// READ-ONLY; Datacenter address to ship to, for the given sku and storage location.
DatacenterAddress DatacenterAddressResponseClassification
// READ-ONLY; Delivery package shipping details.
DeliverToDcPackageDetails *PackageCarrierInfo
// READ-ONLY; Delivery package shipping details.
DeliveryPackage *PackageShippingDetails
// READ-ONLY; Holds device data erasure details
DeviceErasureDetails *DeviceErasureDetails
// READ-ONLY; Contains the map of disk serial number to the disk details for export jobs.
ExportDiskDetailsCollection map[string]*ExportDiskDetails
// READ-ONLY; List of stages that run in the job.
JobStages []*JobStages
// READ-ONLY; Last mitigation action performed on the job.
LastMitigationActionOnJob *LastMitigationActionOnJob
// READ-ONLY; Return package shipping details.
ReturnPackage *PackageShippingDetails
// READ-ONLY; Shared access key to download the return shipment label
ReverseShipmentLabelSasKey *string
}
// GetCommonJobDetails implements the CommonJobDetailsClassification interface for type CustomerDiskJobDetails.
func (c *CustomerDiskJobDetails) GetCommonJobDetails() *CommonJobDetails {
return &CommonJobDetails{
Actions: c.Actions,
ChainOfCustodySasKey: c.ChainOfCustodySasKey,
ContactDetails: c.ContactDetails,
CopyLogDetails: c.CopyLogDetails,
DataCenterCode: c.DataCenterCode,
DataExportDetails: c.DataExportDetails,
DataImportDetails: c.DataImportDetails,
DatacenterAddress: c.DatacenterAddress,
DeliveryPackage: c.DeliveryPackage,
DeviceErasureDetails: c.DeviceErasureDetails,
ExpectedDataSizeInTeraBytes: c.ExpectedDataSizeInTeraBytes,
JobDetailsType: c.JobDetailsType,
JobStages: c.JobStages,
KeyEncryptionKey: c.KeyEncryptionKey,
LastMitigationActionOnJob: c.LastMitigationActionOnJob,
Preferences: c.Preferences,
ReturnPackage: c.ReturnPackage,
ReverseShipmentLabelSasKey: c.ReverseShipmentLabelSasKey,
ReverseShippingDetails: c.ReverseShippingDetails,
ShippingAddress: c.ShippingAddress,
}
}
// CustomerDiskJobSecrets - The secrets related to customer disk job.
type CustomerDiskJobSecrets struct {
// REQUIRED; Used to indicate what type of job secrets object.
JobSecretsType *ClassDiscriminator
// READ-ONLY; Carrier Account Number of the customer
CarrierAccountNumber *string
// READ-ONLY; Dc Access Security Code for Customer Managed Shipping
DcAccessSecurityCode *DcAccessSecurityCode
// READ-ONLY; Contains the list of secrets object for that device.
DiskSecrets []*DiskSecret
// READ-ONLY; Error while fetching the secrets.
Error *CloudError
}
// GetCommonJobSecrets implements the CommonJobSecretsClassification interface for type CustomerDiskJobSecrets.
func (c *CustomerDiskJobSecrets) GetCommonJobSecrets() *CommonJobSecrets {
return &CommonJobSecrets{
DcAccessSecurityCode: c.DcAccessSecurityCode,
Error: c.Error,
JobSecretsType: c.JobSecretsType,
}
}
// DataAccountDetails - Account details of the data to be transferred
type DataAccountDetails struct {
// REQUIRED; Account Type of the data to be transferred.
DataAccountType *DataAccountType
// Password for all the shares to be created on the device. Should not be passed for TransferType:ExportFromAzure jobs. If
// this is not passed, the service will generate password itself. This will not be
// returned in Get Call. Password Requirements : Password must be minimum of 12 and maximum of 64 characters. Password must
// have at least one uppercase alphabet, one number and one special character.
// Password cannot have the following characters : IilLoO0 Password can have only alphabets, numbers and these characters
// : @#-$%^!+=;:_()]+
SharePassword *string
}
// GetDataAccountDetails implements the DataAccountDetailsClassification interface for type DataAccountDetails.
func (d *DataAccountDetails) GetDataAccountDetails() *DataAccountDetails { return d }
// DataExportDetails - Details of the data to be used for exporting data from azure.
type DataExportDetails struct {
// REQUIRED; Account details of the data to be transferred
AccountDetails DataAccountDetailsClassification
// REQUIRED; Configuration for the data transfer.
TransferConfiguration *TransferConfiguration
// Level of the logs to be collected.
LogCollectionLevel *LogCollectionLevel
}
// DataImportDetails - Details of the data to be used for importing data to azure.
type DataImportDetails struct {
// REQUIRED; Account details of the data to be transferred
AccountDetails DataAccountDetailsClassification
// Level of the logs to be collected.
LogCollectionLevel *LogCollectionLevel
}
// DataLocationToServiceLocationMap - Map of data location to service location
type DataLocationToServiceLocationMap struct {
// READ-ONLY; Location of the data.
DataLocation *string
// READ-ONLY; Location of the service.
ServiceLocation *string
}
// DataTransferDetailsValidationRequest - Request to validate export and import data details.
type DataTransferDetailsValidationRequest struct {
// REQUIRED; Device type.
DeviceType *SKUName
// REQUIRED; Type of the transfer.
TransferType *TransferType
// REQUIRED; Identifies the type of validation request.
ValidationType *ValidationInputDiscriminator
// List of DataTransfer details to be used to export data from azure.
DataExportDetails []*DataExportDetails
// List of DataTransfer details to be used to import data to azure.
DataImportDetails []*DataImportDetails
}
// GetValidationInputRequest implements the ValidationInputRequestClassification interface for type DataTransferDetailsValidationRequest.
func (d *DataTransferDetailsValidationRequest) GetValidationInputRequest() *ValidationInputRequest {
return &ValidationInputRequest{
ValidationType: d.ValidationType,
}
}
// DataTransferDetailsValidationResponseProperties - Properties of data transfer details validation response.
type DataTransferDetailsValidationResponseProperties struct {
// REQUIRED; Identifies the type of validation response.
ValidationType *ValidationInputDiscriminator
// READ-ONLY; Error code and message of validation response.
Error *CloudError
// READ-ONLY; Data transfer details validation status.
Status *ValidationStatus
}
// GetValidationInputResponse implements the ValidationInputResponseClassification interface for type DataTransferDetailsValidationResponseProperties.
func (d *DataTransferDetailsValidationResponseProperties) GetValidationInputResponse() *ValidationInputResponse {
return &ValidationInputResponse{
Error: d.Error,
ValidationType: d.ValidationType,
}
}
// DatacenterAddressInstructionResponse - Datacenter instruction for given storage location.
type DatacenterAddressInstructionResponse struct {
// REQUIRED; Data center address type
DatacenterAddressType *DatacenterAddressType
// READ-ONLY; Data center communication instruction
CommunicationInstruction *string
// READ-ONLY; Azure Location where the Data Center serves primarily.
DataCenterAzureLocation *string
// READ-ONLY; List of supported carriers for return shipment.
SupportedCarriersForReturnShipment []*string
}
// GetDatacenterAddressResponse implements the DatacenterAddressResponseClassification interface for type DatacenterAddressInstructionResponse.
func (d *DatacenterAddressInstructionResponse) GetDatacenterAddressResponse() *DatacenterAddressResponse {
return &DatacenterAddressResponse{
DataCenterAzureLocation: d.DataCenterAzureLocation,
DatacenterAddressType: d.DatacenterAddressType,
SupportedCarriersForReturnShipment: d.SupportedCarriersForReturnShipment,
}
}
// DatacenterAddressLocationResponse - Datacenter address for given storage location.
type DatacenterAddressLocationResponse struct {
// REQUIRED; Data center address type
DatacenterAddressType *DatacenterAddressType
// READ-ONLY; Special instruction for shipping
AdditionalShippingInformation *string
// READ-ONLY; Address type
AddressType *string
// READ-ONLY; City name
City *string
// READ-ONLY; Company name
Company *string
// READ-ONLY; Contact person name
ContactPersonName *string
// READ-ONLY; name of the country
Country *string
// READ-ONLY; Azure Location where the Data Center serves primarily.
DataCenterAzureLocation *string
// READ-ONLY; Phone number
Phone *string
// READ-ONLY; Phone extension
PhoneExtension *string
// READ-ONLY; name of the state
State *string
// READ-ONLY; Street address line 1
Street1 *string
// READ-ONLY; Street address line 2
Street2 *string
// READ-ONLY; Street address line 3
Street3 *string
// READ-ONLY; List of supported carriers for return shipment.
SupportedCarriersForReturnShipment []*string
// READ-ONLY; Zip code
Zip *string
}
// GetDatacenterAddressResponse implements the DatacenterAddressResponseClassification interface for type DatacenterAddressLocationResponse.
func (d *DatacenterAddressLocationResponse) GetDatacenterAddressResponse() *DatacenterAddressResponse {
return &DatacenterAddressResponse{
DataCenterAzureLocation: d.DataCenterAzureLocation,
DatacenterAddressType: d.DatacenterAddressType,
SupportedCarriersForReturnShipment: d.SupportedCarriersForReturnShipment,
}
}
// DatacenterAddressRequest - Request body to get the datacenter address.
type DatacenterAddressRequest struct {
// REQUIRED; Sku Name for which the data center address requested.
SKUName *SKUName
// REQUIRED; Storage location. For locations check: https://management.azure.com/subscriptions/SUBSCRIPTIONID/locations?api-version=2018-01-01
StorageLocation *string
}
// DatacenterAddressResponse - Datacenter address for given storage location.
type DatacenterAddressResponse struct {
// REQUIRED; Data center address type
DatacenterAddressType *DatacenterAddressType
// READ-ONLY; Azure Location where the Data Center serves primarily.
DataCenterAzureLocation *string
// READ-ONLY; List of supported carriers for return shipment.
SupportedCarriersForReturnShipment []*string
}
// GetDatacenterAddressResponse implements the DatacenterAddressResponseClassification interface for type DatacenterAddressResponse.
func (d *DatacenterAddressResponse) GetDatacenterAddressResponse() *DatacenterAddressResponse {
return d
}
// DcAccessSecurityCode - Dc access security code
type DcAccessSecurityCode struct {
// Forward Dc access security code.
ForwardDCAccessCode *string
// Reverse Dc access security code.
ReverseDCAccessCode *string
}
type Details struct {
// REQUIRED
Code *string
// REQUIRED
Message *string
}
// DeviceErasureDetails - Device erasure details with erasure completion status and erasureordestructionlog sas key
type DeviceErasureDetails struct {
// READ-ONLY; Holds the device erasure completion status
DeviceErasureStatus *StageStatus
// READ-ONLY; Shared access key to download cleanup or destruction certificate for device
ErasureOrDestructionCertificateSasKey *string
}
// DiskCopyLogDetails - Copy Log Details for a disk
type DiskCopyLogDetails struct {
// REQUIRED; Indicates the type of job details.
CopyLogDetailsType *ClassDiscriminator
// READ-ONLY; Disk Serial Number.
DiskSerialNumber *string
// READ-ONLY; Link for copy error logs.
ErrorLogLink *string
// READ-ONLY; Link for copy verbose logs.
VerboseLogLink *string
}
// GetCopyLogDetails implements the CopyLogDetailsClassification interface for type DiskCopyLogDetails.
func (d *DiskCopyLogDetails) GetCopyLogDetails() *CopyLogDetails {
return &CopyLogDetails{
CopyLogDetailsType: d.CopyLogDetailsType,
}
}
// DiskCopyProgress - DataBox Disk Copy Progress
type DiskCopyProgress struct {
// READ-ONLY; Available actions on the job.
Actions []*CustomerResolutionCode
// READ-ONLY; Bytes copied during the copy of disk.
BytesCopied *int64
// READ-ONLY; Error, if any, in the stage
Error *CloudError
// READ-ONLY; Indicates the percentage completed for the copy of the disk.
PercentComplete *int32
// READ-ONLY; The serial number of the disk
SerialNumber *string
// READ-ONLY; The Status of the copy
Status *CopyStatus
}
// DiskGranularCopyLogDetails - Granular Copy Log Details for customer disk
type DiskGranularCopyLogDetails struct {
// REQUIRED; Indicates the type of job details.
CopyLogDetailsType *ClassDiscriminator
// READ-ONLY; Account id.
AccountID *string
// READ-ONLY; Link for copy error logs.
ErrorLogLink *string
// READ-ONLY; Disk Serial Number.
SerialNumber *string
// READ-ONLY; Link for copy verbose logs.
VerboseLogLink *string
}
// GetGranularCopyLogDetails implements the GranularCopyLogDetailsClassification interface for type DiskGranularCopyLogDetails.
func (d *DiskGranularCopyLogDetails) GetGranularCopyLogDetails() *GranularCopyLogDetails {
return &GranularCopyLogDetails{
CopyLogDetailsType: d.CopyLogDetailsType,
}
}
// DiskGranularCopyProgress - DataBox Disk Granular Copy Progress
type DiskGranularCopyProgress struct {
// READ-ONLY; Id of the account where the data needs to be uploaded.
AccountID *string
// READ-ONLY; Available actions on the job.
Actions []*CustomerResolutionCode
// READ-ONLY; To indicate bytes transferred.
BytesProcessed *int64
// READ-ONLY; The Status of the copy
CopyStatus *CopyStatus
// READ-ONLY; Data Account Type.
DataAccountType *DataAccountType
// READ-ONLY; To indicate directories errored out in the job.
DirectoriesErroredOut *int64
// READ-ONLY; Error, if any, in the stage
Error *CloudError
// READ-ONLY; Number of files which could not be copied
FilesErroredOut *int64
// READ-ONLY; Number of files processed
FilesProcessed *int64
// READ-ONLY; To indicate directories renamed
InvalidDirectoriesProcessed *int64
// READ-ONLY; Total amount of data not adhering to azure naming conventions which were processed by automatic renaming
InvalidFileBytesUploaded *int64
// READ-ONLY; Number of files not adhering to azure naming conventions which were processed by automatic renaming
InvalidFilesProcessed *int64
// READ-ONLY; To indicate if enumeration of data is in progress. Until this is true, the TotalBytesToProcess may not be valid.
IsEnumerationInProgress *bool
// READ-ONLY; Number of folders not adhering to azure naming conventions which were processed by automatic renaming
RenamedContainerCount *int64
// READ-ONLY; Disk Serial Number.
SerialNumber *string
// READ-ONLY; Name of the storage account. This will be empty for data account types other than storage account.
StorageAccountName *string