Skip to content

Commit 54033ad

Browse files
Data Box SDK upgrade based on swagger version 2022-12 (#35952)
* upgrade SDK based on swagger version 2022-12 * Mitigate breaking changes * Make CustomerResolutionCode required and default it to none. * minor * Update API and regenerate samples * Update CHANGELOG.md * update version * Update how to handle breaking change --------- Co-authored-by: Wei Hu <[email protected]>
1 parent d1cc62d commit 54033ad

File tree

71 files changed

+1506
-317
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

71 files changed

+1506
-317
lines changed

sdk/databox/Azure.ResourceManager.DataBox/CHANGELOG.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
11
# Release History
22

3-
## 1.1.0-beta.1 (Unreleased)
3+
## 1.0.2 (2023-05-09)
44

55
### Features Added
66

7-
### Breaking Changes
8-
9-
### Bugs Fixed
7+
- Added support for service version 2022-12-01.
8+
- Added changes to support reverse shipping address updates, hardware encryption and customer resolution flows
109

1110
### Other Changes
12-
11+
- Added `ReverseShippingDetails` property tp `DataBoxBasicJobDetails`
12+
- Added `DataBoxDiskGranularCopyLogDetails` property to `DataBoxDiskCopyProgress`
13+
- Added `SerialNumberCustomerResolutionMap` property to `MitigateJobContent` which replaces `CustomerResolutionCode`
1314
## 1.0.1 (2023-02-16)
1415

1516
### Other Changes

sdk/databox/Azure.ResourceManager.DataBox/api/Azure.ResourceManager.DataBox.netstandard2.0.cs

Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,8 @@ public DataBoxJobData(Azure.Core.AzureLocation location, Azure.ResourceManager.D
5050
public bool? IsDeletable { get { throw null; } }
5151
public bool? IsPrepareToShipEnabled { get { throw null; } }
5252
public bool? IsShippingAddressEditable { get { throw null; } }
53+
public Azure.ResourceManager.DataBox.Models.ReverseShippingDetailsEditStatus? ReverseShippingDetailsUpdate { get { throw null; } }
54+
public Azure.ResourceManager.DataBox.Models.ReverseTransportPreferenceEditStatus? ReverseTransportPreferenceUpdate { get { throw null; } }
5355
public Azure.ResourceManager.DataBox.Models.DataBoxSku Sku { get { throw null; } set { } }
5456
public System.DateTimeOffset? StartOn { get { throw null; } }
5557
public Azure.ResourceManager.DataBox.Models.DataBoxStageName? Status { get { throw null; } }
@@ -135,6 +137,14 @@ public BlobFilterDetails() { }
135137
public System.Collections.Generic.IList<string> BlobPrefixList { get { throw null; } }
136138
public System.Collections.Generic.IList<string> ContainerList { get { throw null; } }
137139
}
140+
public partial class ContactInfo
141+
{
142+
public ContactInfo(string contactName, string phone) { }
143+
public string ContactName { get { throw null; } set { } }
144+
public string Mobile { get { throw null; } set { } }
145+
public string Phone { get { throw null; } set { } }
146+
public string PhoneExtension { get { throw null; } set { } }
147+
}
138148
public abstract partial class CopyLogDetails
139149
{
140150
protected CopyLogDetails() { }
@@ -217,6 +227,7 @@ protected DataBoxBasicJobDetails(Azure.ResourceManager.DataBox.Models.DataBoxCon
217227
public Azure.ResourceManager.DataBox.Models.DataBoxOrderPreferences Preferences { get { throw null; } set { } }
218228
public Azure.ResourceManager.DataBox.Models.PackageShippingDetails ReturnPackage { get { throw null; } }
219229
public string ReverseShipmentLabelSasKey { get { throw null; } }
230+
public Azure.ResourceManager.DataBox.Models.ReverseShippingDetails ReverseShippingDetails { get { throw null; } set { } }
220231
public Azure.ResourceManager.DataBox.Models.DataBoxShippingAddress ShippingAddress { get { throw null; } set { } }
221232
}
222233
public partial class DataBoxContactDetails
@@ -233,9 +244,11 @@ public partial class DataBoxCopyProgress
233244
{
234245
internal DataBoxCopyProgress() { }
235246
public Azure.Core.ResourceIdentifier AccountId { get { throw null; } }
247+
public System.Collections.Generic.IReadOnlyList<Azure.ResourceManager.DataBox.Models.CustomerResolutionCode> Actions { get { throw null; } }
236248
public long? BytesProcessed { get { throw null; } }
237249
public Azure.ResourceManager.DataBox.Models.DataAccountType? DataAccountType { get { throw null; } }
238250
public long? DirectoriesErroredOut { get { throw null; } }
251+
public Azure.ResponseError Error { get { throw null; } }
239252
public long? FilesErroredOut { get { throw null; } }
240253
public long? FilesProcessed { get { throw null; } }
241254
public long? InvalidDirectoriesProcessed { get { throw null; } }
@@ -315,11 +328,21 @@ internal DataBoxDiskCopyLogDetails() { }
315328
public partial class DataBoxDiskCopyProgress
316329
{
317330
internal DataBoxDiskCopyProgress() { }
331+
public System.Collections.Generic.IReadOnlyList<Azure.ResourceManager.DataBox.Models.CustomerResolutionCode> Actions { get { throw null; } }
318332
public long? BytesCopied { get { throw null; } }
333+
public Azure.ResponseError Error { get { throw null; } }
319334
public int? PercentComplete { get { throw null; } }
320335
public string SerialNumber { get { throw null; } }
321336
public Azure.ResourceManager.DataBox.Models.DataBoxCopyStatus? Status { get { throw null; } }
322337
}
338+
public partial class DataBoxDiskGranularCopyLogDetails : Azure.ResourceManager.DataBox.Models.GranularCopyLogDetails
339+
{
340+
internal DataBoxDiskGranularCopyLogDetails() { }
341+
public Azure.Core.ResourceIdentifier AccountId { get { throw null; } }
342+
public string ErrorLogLink { get { throw null; } }
343+
public string SerialNumber { get { throw null; } }
344+
public string VerboseLogLink { get { throw null; } }
345+
}
323346
public partial class DataBoxDiskGranularCopyProgress : Azure.ResourceManager.DataBox.Models.GranularCopyProgress
324347
{
325348
internal DataBoxDiskGranularCopyProgress() { }
@@ -331,6 +354,7 @@ public partial class DataBoxDiskJobDetails : Azure.ResourceManager.DataBox.Model
331354
public DataBoxDiskJobDetails(Azure.ResourceManager.DataBox.Models.DataBoxContactDetails contactDetails) : base (default(Azure.ResourceManager.DataBox.Models.DataBoxContactDetails)) { }
332355
public System.Collections.Generic.IReadOnlyList<Azure.ResourceManager.DataBox.Models.DataBoxDiskCopyProgress> CopyProgress { get { throw null; } }
333356
public System.Collections.Generic.IReadOnlyDictionary<string, int> DisksAndSizeDetails { get { throw null; } }
357+
public System.Collections.Generic.IReadOnlyList<Azure.ResourceManager.DataBox.Models.DataBoxDiskGranularCopyLogDetails> GranularCopyLogDetails { get { throw null; } }
334358
public System.Collections.Generic.IReadOnlyList<Azure.ResourceManager.DataBox.Models.DataBoxDiskGranularCopyProgress> GranularCopyProgress { get { throw null; } }
335359
public string Passkey { get { throw null; } set { } }
336360
public System.Collections.Generic.IDictionary<string, int> PreferredDisks { get { throw null; } }
@@ -353,6 +377,12 @@ public enum DataBoxDoubleEncryption
353377
Enabled = 0,
354378
Disabled = 1,
355379
}
380+
public partial class DataBoxEncryptionPreferences
381+
{
382+
public DataBoxEncryptionPreferences() { }
383+
public Azure.ResourceManager.DataBox.Models.DataBoxDoubleEncryption? DoubleEncryption { get { throw null; } set { } }
384+
public Azure.ResourceManager.DataBox.Models.HardwareEncryption? HardwareEncryption { get { throw null; } set { } }
385+
}
356386
public partial class DataBoxHeavyAccountCopyLogDetails : Azure.ResourceManager.DataBox.Models.CopyLogDetails
357387
{
358388
internal DataBoxHeavyAccountCopyLogDetails() { }
@@ -439,9 +469,14 @@ public DataBoxManagedIdentity() { }
439469
public partial class DataBoxOrderPreferences
440470
{
441471
public DataBoxOrderPreferences() { }
472+
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
442473
public Azure.ResourceManager.DataBox.Models.DataBoxDoubleEncryption? DoubleEncryption { get { throw null; } set { } }
474+
public Azure.ResourceManager.DataBox.Models.DataBoxEncryptionPreferences EncryptionPreferences { get { throw null; } set { } }
443475
public System.Collections.Generic.IList<string> PreferredDataCenterRegion { get { throw null; } }
476+
public Azure.ResourceManager.DataBox.Models.TransportPreferences ReverseTransportPreferences { get { throw null; } set { } }
444477
public System.Collections.Generic.IList<string> StorageAccountAccessTierPreferences { get { throw null; } }
478+
public Azure.ResourceManager.DataBox.Models.TransportPreferences TransportPreferences { get { throw null; } set { } }
479+
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
445480
public Azure.ResourceManager.DataBox.Models.TransportShipmentType? TransportPreferencesPreferredShipmentType { get { throw null; } set { } }
446481
}
447482
public partial class DataBoxScheduleAvailabilityContent : Azure.ResourceManager.DataBox.Models.ScheduleAvailabilityContent
@@ -471,10 +506,12 @@ public DataBoxShippingAddress(string streetAddress1, string country, string post
471506
public string CompanyName { get { throw null; } set { } }
472507
public string Country { get { throw null; } set { } }
473508
public string PostalCode { get { throw null; } set { } }
509+
public bool? SkipAddressValidation { get { throw null; } set { } }
474510
public string StateOrProvince { get { throw null; } set { } }
475511
public string StreetAddress1 { get { throw null; } set { } }
476512
public string StreetAddress2 { get { throw null; } set { } }
477513
public string StreetAddress3 { get { throw null; } set { } }
514+
public string TaxIdentificationNumber { get { throw null; } set { } }
478515
public string ZipExtendedCode { get { throw null; } set { } }
479516
}
480517
public enum DataBoxShippingAddressType
@@ -509,6 +546,7 @@ internal DataBoxSkuInformation() { }
509546
public System.Collections.Generic.IReadOnlyList<string> ApiVersions { get { throw null; } }
510547
public Azure.ResourceManager.DataBox.Models.DataBoxSkuCapacity Capacity { get { throw null; } }
511548
public System.Collections.Generic.IReadOnlyList<Azure.ResourceManager.DataBox.Models.DataBoxSkuCost> Costs { get { throw null; } }
549+
public System.Collections.Generic.IReadOnlyList<string> CountriesWithinCommerceBoundary { get { throw null; } }
512550
public System.Collections.Generic.IReadOnlyList<Azure.ResourceManager.DataBox.Models.DataLocationToServiceLocationMap> DataLocationToServiceLocationMap { get { throw null; } }
513551
public Azure.ResourceManager.DataBox.Models.SkuDisabledReason? DisabledReason { get { throw null; } }
514552
public string DisabledReasonMessage { get { throw null; } }
@@ -586,6 +624,8 @@ public partial class DataBoxValidateAddressContent : Azure.ResourceManager.DataB
586624
public DataBoxValidateAddressContent(Azure.ResourceManager.DataBox.Models.DataBoxShippingAddress shippingAddress, Azure.ResourceManager.DataBox.Models.DataBoxSkuName deviceType) { }
587625
public Azure.ResourceManager.DataBox.Models.DataBoxSkuName DeviceType { get { throw null; } }
588626
public Azure.ResourceManager.DataBox.Models.DataBoxShippingAddress ShippingAddress { get { throw null; } }
627+
public Azure.ResourceManager.DataBox.Models.TransportPreferences TransportPreferences { get { throw null; } set { } }
628+
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
589629
public Azure.ResourceManager.DataBox.Models.TransportShipmentType? TransportPreferencesPreferredShipmentType { get { throw null; } set { } }
590630
}
591631
public abstract partial class DataBoxValidationContent
@@ -790,13 +830,19 @@ public enum FilterFileType
790830
AzureBlob = 0,
791831
AzureFile = 1,
792832
}
833+
public abstract partial class GranularCopyLogDetails
834+
{
835+
protected GranularCopyLogDetails() { }
836+
}
793837
public partial class GranularCopyProgress
794838
{
795839
internal GranularCopyProgress() { }
796840
public Azure.Core.ResourceIdentifier AccountId { get { throw null; } }
841+
public System.Collections.Generic.IReadOnlyList<Azure.ResourceManager.DataBox.Models.CustomerResolutionCode> Actions { get { throw null; } }
797842
public long? BytesProcessed { get { throw null; } }
798843
public Azure.ResourceManager.DataBox.Models.DataAccountType? DataAccountType { get { throw null; } }
799844
public long? DirectoriesErroredOut { get { throw null; } }
845+
public Azure.ResponseError Error { get { throw null; } }
800846
public long? FilesErroredOut { get { throw null; } }
801847
public long? FilesProcessed { get { throw null; } }
802848
public long? InvalidDirectoriesProcessed { get { throw null; } }
@@ -809,6 +855,11 @@ internal GranularCopyProgress() { }
809855
public long? TotalFilesToProcess { get { throw null; } }
810856
public Azure.ResourceManager.DataBox.Models.DataBoxJobTransferType? TransferType { get { throw null; } }
811857
}
858+
public enum HardwareEncryption
859+
{
860+
Enabled = 0,
861+
Disabled = 1,
862+
}
812863
public partial class HeavyScheduleAvailabilityContent : Azure.ResourceManager.DataBox.Models.ScheduleAvailabilityContent
813864
{
814865
public HeavyScheduleAvailabilityContent(Azure.Core.AzureLocation storageLocation) : base (default(Azure.Core.AzureLocation)) { }
@@ -857,8 +908,10 @@ public MarkDevicesShippedContent(Azure.ResourceManager.DataBox.Models.PackageCar
857908
}
858909
public partial class MitigateJobContent
859910
{
911+
public MitigateJobContent() { }
860912
public MitigateJobContent(Azure.ResourceManager.DataBox.Models.CustomerResolutionCode customerResolutionCode) { }
861913
public Azure.ResourceManager.DataBox.Models.CustomerResolutionCode CustomerResolutionCode { get { throw null; } }
914+
public System.Collections.Generic.IDictionary<string, Azure.ResourceManager.DataBox.Models.CustomerResolutionCode> SerialNumberCustomerResolutionMap { get { throw null; } }
862915
}
863916
public partial class NotificationPreference
864917
{
@@ -941,6 +994,25 @@ internal RegionConfigurationResult() { }
941994
public System.Collections.Generic.IReadOnlyList<System.DateTimeOffset> ScheduleAvailabilityResponseAvailableDates { get { throw null; } }
942995
public System.Collections.Generic.IReadOnlyList<Azure.ResourceManager.DataBox.Models.TransportAvailabilityDetails> TransportAvailabilityDetails { get { throw null; } }
943996
}
997+
public partial class ReverseShippingDetails
998+
{
999+
public ReverseShippingDetails() { }
1000+
public Azure.ResourceManager.DataBox.Models.ContactInfo ContactDetails { get { throw null; } set { } }
1001+
public bool? IsUpdated { get { throw null; } }
1002+
public Azure.ResourceManager.DataBox.Models.DataBoxShippingAddress ShippingAddress { get { throw null; } set { } }
1003+
}
1004+
public enum ReverseShippingDetailsEditStatus
1005+
{
1006+
Enabled = 0,
1007+
Disabled = 1,
1008+
NotSupported = 2,
1009+
}
1010+
public enum ReverseTransportPreferenceEditStatus
1011+
{
1012+
Enabled = 0,
1013+
Disabled = 1,
1014+
NotSupported = 2,
1015+
}
9441016
public abstract partial class ScheduleAvailabilityContent
9451017
{
9461018
protected ScheduleAvailabilityContent(Azure.Core.AzureLocation storageLocation) { }
@@ -1035,6 +1107,12 @@ public partial class TransportAvailabilityDetails
10351107
internal TransportAvailabilityDetails() { }
10361108
public Azure.ResourceManager.DataBox.Models.TransportShipmentType? ShipmentType { get { throw null; } }
10371109
}
1110+
public partial class TransportPreferences
1111+
{
1112+
public TransportPreferences(Azure.ResourceManager.DataBox.Models.TransportShipmentType preferredShipmentType) { }
1113+
public bool? IsUpdated { get { throw null; } }
1114+
public Azure.ResourceManager.DataBox.Models.TransportShipmentType PreferredShipmentType { get { throw null; } set { } }
1115+
}
10381116
public enum TransportShipmentType
10391117
{
10401118
CustomerManaged = 0,
@@ -1051,7 +1129,9 @@ public partial class UpdateJobDetails
10511129
public UpdateJobDetails() { }
10521130
public Azure.ResourceManager.DataBox.Models.DataBoxContactDetails ContactDetails { get { throw null; } set { } }
10531131
public Azure.ResourceManager.DataBox.Models.DataBoxKeyEncryptionKey KeyEncryptionKey { get { throw null; } set { } }
1132+
public Azure.ResourceManager.DataBox.Models.DataBoxOrderPreferences Preferences { get { throw null; } set { } }
10541133
public Azure.ResourceManager.DataBox.Models.PackageCarrierDetails ReturnToCustomerPackageDetails { get { throw null; } set { } }
1134+
public Azure.ResourceManager.DataBox.Models.ReverseShippingDetails ReverseShippingDetails { get { throw null; } set { } }
10551135
public Azure.ResourceManager.DataBox.Models.DataBoxShippingAddress ShippingAddress { get { throw null; } set { } }
10561136
}
10571137
}

0 commit comments

Comments
 (0)