From 44379d219dc023300551a44715500516fe6c982d Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Tue, 28 Mar 2023 01:35:14 +0000 Subject: [PATCH] CodeGen from PR 23301 in Azure/azure-rest-api-specs Merge eff1c994104eb6f2b3eadbee0237ee334c4dc379 into dfa60ad20067e38355870464b8c057549d4c2111 --- ....ResourceManager.DataBox.netstandard2.0.cs | 68 ++++++++++++++++- .../src/Generated/DataBoxJobData.cs | 10 ++- .../Models/ContactInfo.Serialization.cs | 71 +++++++++++++++++ .../src/Generated/Models/ContactInfo.cs | 51 +++++++++++++ .../DataBoxBasicJobDetails.Serialization.cs | 5 ++ .../Models/DataBoxBasicJobDetails.cs | 6 +- .../DataBoxCopyProgress.Serialization.cs | 31 +++++++- .../Generated/Models/DataBoxCopyProgress.cs | 13 +++- ...xCustomerDiskCopyProgress.Serialization.cs | 31 +++++++- .../Models/DataBoxCustomerDiskCopyProgress.cs | 6 +- ...BoxCustomerDiskJobDetails.Serialization.cs | 18 ++++- .../Models/DataBoxCustomerDiskJobDetails.cs | 3 +- .../DataBoxDiskCopyProgress.Serialization.cs | 31 +++++++- .../Models/DataBoxDiskCopyProgress.cs | 15 +++- ...iskGranularCopyLogDetails.Serialization.cs | 62 +++++++++++++++ .../DataBoxDiskGranularCopyLogDetails.cs | 45 +++++++++++ ...xDiskGranularCopyProgress.Serialization.cs | 31 +++++++- .../Models/DataBoxDiskGranularCopyProgress.cs | 6 +- .../DataBoxDiskJobDetails.Serialization.cs | 34 ++++++++- .../Generated/Models/DataBoxDiskJobDetails.cs | 8 +- .../DataBoxHeavyJobDetails.Serialization.cs | 18 ++++- .../Models/DataBoxHeavyJobDetails.cs | 3 +- .../Models/DataBoxJobData.Serialization.cs | 24 +++++- .../Models/DataBoxJobDetails.Serialization.cs | 18 ++++- .../src/Generated/Models/DataBoxJobDetails.cs | 3 +- .../DataBoxOrderPreferences.Serialization.cs | 18 ++++- .../Models/DataBoxOrderPreferences.cs | 18 ++--- .../DataBoxSkuInformation.Serialization.cs | 18 ++++- .../Generated/Models/DataBoxSkuInformation.cs | 7 +- .../Models/DataBoxValidateAddressContent.cs | 11 +-- .../GranularCopyLogDetails.Serialization.cs | 30 ++++++++ .../Models/GranularCopyLogDetails.cs | 32 ++++++++ .../GranularCopyProgress.Serialization.cs | 31 +++++++- .../Generated/Models/GranularCopyProgress.cs | 13 +++- .../MitigateJobContent.Serialization.cs | 18 ++++- .../Generated/Models/MitigateJobContent.cs | 12 ++- .../ReverseShippingDetails.Serialization.cs | 76 +++++++++++++++++++ .../Models/ReverseShippingDetails.cs | 42 ++++++++++ ...ShippingDetailsEditStatus.Serialization.cs | 30 ++++++++ .../ReverseShippingDetailsEditStatus.cs | 20 +++++ ...sportPreferenceEditStatus.Serialization.cs | 30 ++++++++ .../ReverseTransportPreferenceEditStatus.cs | 20 +++++ .../TransportPreferences.Serialization.cs | 15 +++- .../Generated/Models/TransportPreferences.cs | 13 +++- ...ownGranularCopyLogDetails.Serialization.cs | 33 ++++++++ .../Models/UnknownGranularCopyLogDetails.cs | 20 +++++ .../Models/UnknownJobDetails.Serialization.cs | 18 ++++- .../src/Generated/Models/UnknownJobDetails.cs | 3 +- .../Models/UpdateJobDetails.Serialization.cs | 10 +++ .../src/Generated/Models/UpdateJobDetails.cs | 4 + .../DataBoxManagementRestOperations.cs | 2 +- .../RestOperations/JobsRestOperations.cs | 2 +- .../RestOperations/ServiceRestOperations.cs | 2 +- .../src/autorest.md | 2 +- 54 files changed, 1096 insertions(+), 65 deletions(-) create mode 100644 sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/ContactInfo.Serialization.cs create mode 100644 sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/ContactInfo.cs create mode 100644 sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/DataBoxDiskGranularCopyLogDetails.Serialization.cs create mode 100644 sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/DataBoxDiskGranularCopyLogDetails.cs create mode 100644 sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/GranularCopyLogDetails.Serialization.cs create mode 100644 sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/GranularCopyLogDetails.cs create mode 100644 sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/ReverseShippingDetails.Serialization.cs create mode 100644 sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/ReverseShippingDetails.cs create mode 100644 sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/ReverseShippingDetailsEditStatus.Serialization.cs create mode 100644 sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/ReverseShippingDetailsEditStatus.cs create mode 100644 sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/ReverseTransportPreferenceEditStatus.Serialization.cs create mode 100644 sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/ReverseTransportPreferenceEditStatus.cs create mode 100644 sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/UnknownGranularCopyLogDetails.Serialization.cs create mode 100644 sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/UnknownGranularCopyLogDetails.cs diff --git a/sdk/databox/Azure.ResourceManager.DataBox/api/Azure.ResourceManager.DataBox.netstandard2.0.cs b/sdk/databox/Azure.ResourceManager.DataBox/api/Azure.ResourceManager.DataBox.netstandard2.0.cs index 4b5506193720..65fa7f864eea 100644 --- a/sdk/databox/Azure.ResourceManager.DataBox/api/Azure.ResourceManager.DataBox.netstandard2.0.cs +++ b/sdk/databox/Azure.ResourceManager.DataBox/api/Azure.ResourceManager.DataBox.netstandard2.0.cs @@ -50,6 +50,8 @@ public DataBoxJobData(Azure.Core.AzureLocation location, Azure.ResourceManager.D public bool? IsDeletable { get { throw null; } } public bool? IsPrepareToShipEnabled { get { throw null; } } public bool? IsShippingAddressEditable { get { throw null; } } + public Azure.ResourceManager.DataBox.Models.ReverseShippingDetailsEditStatus? ReverseShippingDetailsUpdate { get { throw null; } } + public Azure.ResourceManager.DataBox.Models.ReverseTransportPreferenceEditStatus? ReverseTransportPreferenceUpdate { get { throw null; } } public Azure.ResourceManager.DataBox.Models.DataBoxSku Sku { get { throw null; } set { } } public System.DateTimeOffset? StartOn { get { throw null; } } public Azure.ResourceManager.DataBox.Models.DataBoxStageName? Status { get { throw null; } } @@ -135,6 +137,14 @@ public BlobFilterDetails() { } public System.Collections.Generic.IList BlobPrefixList { get { throw null; } } public System.Collections.Generic.IList ContainerList { get { throw null; } } } + public partial class ContactInfo + { + public ContactInfo(string contactName, string phone) { } + public string ContactName { get { throw null; } set { } } + public string Mobile { get { throw null; } set { } } + public string Phone { get { throw null; } set { } } + public string PhoneExtension { get { throw null; } set { } } + } public abstract partial class CopyLogDetails { protected CopyLogDetails() { } @@ -217,6 +227,7 @@ protected DataBoxBasicJobDetails(Azure.ResourceManager.DataBox.Models.DataBoxCon public Azure.ResourceManager.DataBox.Models.DataBoxOrderPreferences Preferences { get { throw null; } set { } } public Azure.ResourceManager.DataBox.Models.PackageShippingDetails ReturnPackage { get { throw null; } } public string ReverseShipmentLabelSasKey { get { throw null; } } + public Azure.ResourceManager.DataBox.Models.ReverseShippingDetails ReverseShippingDetails { get { throw null; } set { } } public Azure.ResourceManager.DataBox.Models.DataBoxShippingAddress ShippingAddress { get { throw null; } set { } } } public partial class DataBoxContactDetails @@ -233,9 +244,11 @@ public partial class DataBoxCopyProgress { internal DataBoxCopyProgress() { } public Azure.Core.ResourceIdentifier AccountId { get { throw null; } } + public System.Collections.Generic.IReadOnlyList Actions { get { throw null; } } public long? BytesProcessed { get { throw null; } } public Azure.ResourceManager.DataBox.Models.DataAccountType? DataAccountType { get { throw null; } } public long? DirectoriesErroredOut { get { throw null; } } + public Azure.ResponseError Error { get { throw null; } } public long? FilesErroredOut { get { throw null; } } public long? FilesProcessed { get { throw null; } } public long? InvalidDirectoriesProcessed { get { throw null; } } @@ -315,11 +328,21 @@ internal DataBoxDiskCopyLogDetails() { } public partial class DataBoxDiskCopyProgress { internal DataBoxDiskCopyProgress() { } + public System.Collections.Generic.IReadOnlyList Actions { get { throw null; } } public long? BytesCopied { get { throw null; } } + public Azure.ResponseError Error { get { throw null; } } public int? PercentComplete { get { throw null; } } public string SerialNumber { get { throw null; } } public Azure.ResourceManager.DataBox.Models.DataBoxCopyStatus? Status { get { throw null; } } } + public partial class DataBoxDiskGranularCopyLogDetails : Azure.ResourceManager.DataBox.Models.GranularCopyLogDetails + { + internal DataBoxDiskGranularCopyLogDetails() { } + public Azure.Core.ResourceIdentifier AccountId { get { throw null; } } + public string ErrorLogLink { get { throw null; } } + public string SerialNumber { get { throw null; } } + public string VerboseLogLink { get { throw null; } } + } public partial class DataBoxDiskGranularCopyProgress : Azure.ResourceManager.DataBox.Models.GranularCopyProgress { internal DataBoxDiskGranularCopyProgress() { } @@ -331,6 +354,7 @@ public partial class DataBoxDiskJobDetails : Azure.ResourceManager.DataBox.Model public DataBoxDiskJobDetails(Azure.ResourceManager.DataBox.Models.DataBoxContactDetails contactDetails) : base (default(Azure.ResourceManager.DataBox.Models.DataBoxContactDetails)) { } public System.Collections.Generic.IReadOnlyList CopyProgress { get { throw null; } } public System.Collections.Generic.IReadOnlyDictionary DisksAndSizeDetails { get { throw null; } } + public System.Collections.Generic.IReadOnlyList GranularCopyLogDetails { get { throw null; } } public System.Collections.Generic.IReadOnlyList GranularCopyProgress { get { throw null; } } public string Passkey { get { throw null; } set { } } public System.Collections.Generic.IDictionary PreferredDisks { get { throw null; } } @@ -441,8 +465,9 @@ public partial class DataBoxOrderPreferences public DataBoxOrderPreferences() { } public Azure.ResourceManager.DataBox.Models.DataBoxDoubleEncryption? DoubleEncryption { get { throw null; } set { } } public System.Collections.Generic.IList PreferredDataCenterRegion { get { throw null; } } + public Azure.ResourceManager.DataBox.Models.TransportPreferences ReverseTransportPreferences { get { throw null; } set { } } public System.Collections.Generic.IList StorageAccountAccessTierPreferences { get { throw null; } } - public Azure.ResourceManager.DataBox.Models.TransportShipmentType? TransportPreferencesPreferredShipmentType { get { throw null; } set { } } + public Azure.ResourceManager.DataBox.Models.TransportPreferences TransportPreferences { get { throw null; } set { } } } public partial class DataBoxScheduleAvailabilityContent : Azure.ResourceManager.DataBox.Models.ScheduleAvailabilityContent { @@ -509,6 +534,7 @@ internal DataBoxSkuInformation() { } public System.Collections.Generic.IReadOnlyList ApiVersions { get { throw null; } } public Azure.ResourceManager.DataBox.Models.DataBoxSkuCapacity Capacity { get { throw null; } } public System.Collections.Generic.IReadOnlyList Costs { get { throw null; } } + public System.Collections.Generic.IReadOnlyList CountriesWithinCommerceBoundary { get { throw null; } } public System.Collections.Generic.IReadOnlyList DataLocationToServiceLocationMap { get { throw null; } } public Azure.ResourceManager.DataBox.Models.SkuDisabledReason? DisabledReason { get { throw null; } } public string DisabledReasonMessage { get { throw null; } } @@ -586,7 +612,7 @@ public partial class DataBoxValidateAddressContent : Azure.ResourceManager.DataB public DataBoxValidateAddressContent(Azure.ResourceManager.DataBox.Models.DataBoxShippingAddress shippingAddress, Azure.ResourceManager.DataBox.Models.DataBoxSkuName deviceType) { } public Azure.ResourceManager.DataBox.Models.DataBoxSkuName DeviceType { get { throw null; } } public Azure.ResourceManager.DataBox.Models.DataBoxShippingAddress ShippingAddress { get { throw null; } } - public Azure.ResourceManager.DataBox.Models.TransportShipmentType? TransportPreferencesPreferredShipmentType { get { throw null; } set { } } + public Azure.ResourceManager.DataBox.Models.TransportPreferences TransportPreferences { get { throw null; } set { } } } public abstract partial class DataBoxValidationContent { @@ -790,13 +816,19 @@ public enum FilterFileType AzureBlob = 0, AzureFile = 1, } + public abstract partial class GranularCopyLogDetails + { + protected GranularCopyLogDetails() { } + } public partial class GranularCopyProgress { internal GranularCopyProgress() { } public Azure.Core.ResourceIdentifier AccountId { get { throw null; } } + public System.Collections.Generic.IReadOnlyList Actions { get { throw null; } } public long? BytesProcessed { get { throw null; } } public Azure.ResourceManager.DataBox.Models.DataAccountType? DataAccountType { get { throw null; } } public long? DirectoriesErroredOut { get { throw null; } } + public Azure.ResponseError Error { get { throw null; } } public long? FilesErroredOut { get { throw null; } } public long? FilesProcessed { get { throw null; } } public long? InvalidDirectoriesProcessed { get { throw null; } } @@ -857,8 +889,9 @@ public MarkDevicesShippedContent(Azure.ResourceManager.DataBox.Models.PackageCar } public partial class MitigateJobContent { - public MitigateJobContent(Azure.ResourceManager.DataBox.Models.CustomerResolutionCode customerResolutionCode) { } - public Azure.ResourceManager.DataBox.Models.CustomerResolutionCode CustomerResolutionCode { get { throw null; } } + public MitigateJobContent() { } + public Azure.ResourceManager.DataBox.Models.CustomerResolutionCode? CustomerResolutionCode { get { throw null; } set { } } + public System.Collections.Generic.IDictionary SerialNumberCustomerResolutionMap { get { throw null; } } } public partial class NotificationPreference { @@ -941,6 +974,25 @@ internal RegionConfigurationResult() { } public System.Collections.Generic.IReadOnlyList ScheduleAvailabilityResponseAvailableDates { get { throw null; } } public System.Collections.Generic.IReadOnlyList TransportAvailabilityDetails { get { throw null; } } } + public partial class ReverseShippingDetails + { + public ReverseShippingDetails() { } + public Azure.ResourceManager.DataBox.Models.ContactInfo ContactDetails { get { throw null; } set { } } + public bool? IsUpdated { get { throw null; } } + public Azure.ResourceManager.DataBox.Models.DataBoxShippingAddress ShippingAddress { get { throw null; } set { } } + } + public enum ReverseShippingDetailsEditStatus + { + Enabled = 0, + Disabled = 1, + NotSupported = 2, + } + public enum ReverseTransportPreferenceEditStatus + { + Enabled = 0, + Disabled = 1, + NotSupported = 2, + } public abstract partial class ScheduleAvailabilityContent { protected ScheduleAvailabilityContent(Azure.Core.AzureLocation storageLocation) { } @@ -1035,6 +1087,12 @@ public partial class TransportAvailabilityDetails internal TransportAvailabilityDetails() { } public Azure.ResourceManager.DataBox.Models.TransportShipmentType? ShipmentType { get { throw null; } } } + public partial class TransportPreferences + { + public TransportPreferences(Azure.ResourceManager.DataBox.Models.TransportShipmentType preferredShipmentType) { } + public bool? IsUpdated { get { throw null; } } + public Azure.ResourceManager.DataBox.Models.TransportShipmentType PreferredShipmentType { get { throw null; } set { } } + } public enum TransportShipmentType { CustomerManaged = 0, @@ -1051,7 +1109,9 @@ public partial class UpdateJobDetails public UpdateJobDetails() { } public Azure.ResourceManager.DataBox.Models.DataBoxContactDetails ContactDetails { get { throw null; } set { } } public Azure.ResourceManager.DataBox.Models.DataBoxKeyEncryptionKey KeyEncryptionKey { get { throw null; } set { } } + public Azure.ResourceManager.DataBox.Models.DataBoxOrderPreferences Preferences { get { throw null; } set { } } public Azure.ResourceManager.DataBox.Models.PackageCarrierDetails ReturnToCustomerPackageDetails { get { throw null; } set { } } + public Azure.ResourceManager.DataBox.Models.ReverseShippingDetails ReverseShippingDetails { get { throw null; } set { } } public Azure.ResourceManager.DataBox.Models.DataBoxShippingAddress ShippingAddress { get { throw null; } set { } } } } diff --git a/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/DataBoxJobData.cs b/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/DataBoxJobData.cs index 5e4da7da9744..f9e85b746892 100644 --- a/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/DataBoxJobData.cs +++ b/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/DataBoxJobData.cs @@ -44,6 +44,8 @@ public DataBoxJobData(AzureLocation location, DataBoxJobTransferType transferTyp /// Describes whether the job is cancellable or not. /// Describes whether the job is deletable or not. /// Describes whether the shipping address is editable or not. + /// The Editable status for Reverse Shipping Address and Contact Info. + /// The Editable status for Reverse Transport preferences. /// Is Prepare To Ship Enabled on this job. /// Name of the stage which is in progress. /// Time at which the job was started in UTC ISO 8601 format. @@ -59,12 +61,14 @@ public DataBoxJobData(AzureLocation location, DataBoxJobTransferType transferTyp /// Flag to indicate cancellation of scheduled job. /// The sku type. /// Msi identity of the resource. - internal DataBoxJobData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, DataBoxJobTransferType transferType, bool? isCancellable, bool? isDeletable, bool? isShippingAddressEditable, bool? isPrepareToShipEnabled, DataBoxStageName? status, DateTimeOffset? startOn, ResponseError error, DataBoxBasicJobDetails details, string cancellationReason, JobDeliveryType? deliveryType, JobDeliveryInfo deliveryInfo, bool? isCancellableWithoutFee, DataBoxSku sku, ManagedServiceIdentity identity) : base(id, name, resourceType, systemData, tags, location) + internal DataBoxJobData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, DataBoxJobTransferType transferType, bool? isCancellable, bool? isDeletable, bool? isShippingAddressEditable, ReverseShippingDetailsEditStatus? reverseShippingDetailsUpdate, ReverseTransportPreferenceEditStatus? reverseTransportPreferenceUpdate, bool? isPrepareToShipEnabled, DataBoxStageName? status, DateTimeOffset? startOn, ResponseError error, DataBoxBasicJobDetails details, string cancellationReason, JobDeliveryType? deliveryType, JobDeliveryInfo deliveryInfo, bool? isCancellableWithoutFee, DataBoxSku sku, ManagedServiceIdentity identity) : base(id, name, resourceType, systemData, tags, location) { TransferType = transferType; IsCancellable = isCancellable; IsDeletable = isDeletable; IsShippingAddressEditable = isShippingAddressEditable; + ReverseShippingDetailsUpdate = reverseShippingDetailsUpdate; + ReverseTransportPreferenceUpdate = reverseTransportPreferenceUpdate; IsPrepareToShipEnabled = isPrepareToShipEnabled; Status = status; StartOn = startOn; @@ -86,6 +90,10 @@ internal DataBoxJobData(ResourceIdentifier id, string name, ResourceType resourc public bool? IsDeletable { get; } /// Describes whether the shipping address is editable or not. public bool? IsShippingAddressEditable { get; } + /// The Editable status for Reverse Shipping Address and Contact Info. + public ReverseShippingDetailsEditStatus? ReverseShippingDetailsUpdate { get; } + /// The Editable status for Reverse Transport preferences. + public ReverseTransportPreferenceEditStatus? ReverseTransportPreferenceUpdate { get; } /// Is Prepare To Ship Enabled on this job. public bool? IsPrepareToShipEnabled { get; } /// Name of the stage which is in progress. diff --git a/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/ContactInfo.Serialization.cs b/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/ContactInfo.Serialization.cs new file mode 100644 index 000000000000..bd730f994a99 --- /dev/null +++ b/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/ContactInfo.Serialization.cs @@ -0,0 +1,71 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.DataBox.Models +{ + public partial class ContactInfo : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + writer.WritePropertyName("contactName"u8); + writer.WriteStringValue(ContactName); + writer.WritePropertyName("phone"u8); + writer.WriteStringValue(Phone); + if (Optional.IsDefined(PhoneExtension)) + { + writer.WritePropertyName("phoneExtension"u8); + writer.WriteStringValue(PhoneExtension); + } + if (Optional.IsDefined(Mobile)) + { + writer.WritePropertyName("mobile"u8); + writer.WriteStringValue(Mobile); + } + writer.WriteEndObject(); + } + + internal static ContactInfo DeserializeContactInfo(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + string contactName = default; + string phone = default; + Optional phoneExtension = default; + Optional mobile = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("contactName"u8)) + { + contactName = property.Value.GetString(); + continue; + } + if (property.NameEquals("phone"u8)) + { + phone = property.Value.GetString(); + continue; + } + if (property.NameEquals("phoneExtension"u8)) + { + phoneExtension = property.Value.GetString(); + continue; + } + if (property.NameEquals("mobile"u8)) + { + mobile = property.Value.GetString(); + continue; + } + } + return new ContactInfo(contactName, phone, phoneExtension.Value, mobile.Value); + } + } +} diff --git a/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/ContactInfo.cs b/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/ContactInfo.cs new file mode 100644 index 000000000000..6fcbfe9fcd49 --- /dev/null +++ b/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/ContactInfo.cs @@ -0,0 +1,51 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using Azure.Core; + +namespace Azure.ResourceManager.DataBox.Models +{ + /// Contact Info. + public partial class ContactInfo + { + /// Initializes a new instance of ContactInfo. + /// Contact name of the person. + /// Phone number of the contact person. + /// or is null. + public ContactInfo(string contactName, string phone) + { + Argument.AssertNotNull(contactName, nameof(contactName)); + Argument.AssertNotNull(phone, nameof(phone)); + + ContactName = contactName; + Phone = phone; + } + + /// Initializes a new instance of ContactInfo. + /// Contact name of the person. + /// Phone number of the contact person. + /// Phone extension number of the contact person. + /// Mobile number of the contact person. + internal ContactInfo(string contactName, string phone, string phoneExtension, string mobile) + { + ContactName = contactName; + Phone = phone; + PhoneExtension = phoneExtension; + Mobile = mobile; + } + + /// Contact name of the person. + public string ContactName { get; set; } + /// Phone number of the contact person. + public string Phone { get; set; } + /// Phone extension number of the contact person. + public string PhoneExtension { get; set; } + /// Mobile number of the contact person. + public string Mobile { get; set; } + } +} diff --git a/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/DataBoxBasicJobDetails.Serialization.cs b/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/DataBoxBasicJobDetails.Serialization.cs index cf39df610dcd..c32673b142fd 100644 --- a/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/DataBoxBasicJobDetails.Serialization.cs +++ b/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/DataBoxBasicJobDetails.Serialization.cs @@ -49,6 +49,11 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("preferences"u8); writer.WriteObjectValue(Preferences); } + if (Optional.IsDefined(ReverseShippingDetails)) + { + writer.WritePropertyName("reverseShippingDetails"u8); + writer.WriteObjectValue(ReverseShippingDetails); + } if (Optional.IsDefined(KeyEncryptionKey)) { writer.WritePropertyName("keyEncryptionKey"u8); diff --git a/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/DataBoxBasicJobDetails.cs b/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/DataBoxBasicJobDetails.cs index 185718302e64..c8a9e8293132 100644 --- a/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/DataBoxBasicJobDetails.cs +++ b/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/DataBoxBasicJobDetails.cs @@ -43,6 +43,7 @@ protected DataBoxBasicJobDetails(DataBoxContactDetails contactDetails) /// Details of the data to be exported from azure. /// Indicates the type of job details. /// Preferences for the order. + /// Optional Reverse Shipping details for order. /// /// List of copy log details. /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. @@ -61,7 +62,7 @@ protected DataBoxBasicJobDetails(DataBoxContactDetails contactDetails) /// The available derived classes include and . /// /// DataCenter code. - internal DataBoxBasicJobDetails(IReadOnlyList jobStages, DataBoxContactDetails contactDetails, DataBoxShippingAddress shippingAddress, PackageShippingDetails deliveryPackage, PackageShippingDetails returnPackage, IList dataImportDetails, IList dataExportDetails, DataBoxOrderType jobDetailsType, DataBoxOrderPreferences preferences, IReadOnlyList copyLogDetails, string reverseShipmentLabelSasKey, string chainOfCustodySasKey, DeviceErasureDetails deviceErasureDetails, DataBoxKeyEncryptionKey keyEncryptionKey, int? expectedDataSizeInTerabytes, IReadOnlyList actions, LastMitigationActionOnJob lastMitigationActionOnJob, DataCenterAddressResult dataCenterAddress, DataCenterCode? dataCenterCode) + internal DataBoxBasicJobDetails(IReadOnlyList jobStages, DataBoxContactDetails contactDetails, DataBoxShippingAddress shippingAddress, PackageShippingDetails deliveryPackage, PackageShippingDetails returnPackage, IList dataImportDetails, IList dataExportDetails, DataBoxOrderType jobDetailsType, DataBoxOrderPreferences preferences, ReverseShippingDetails reverseShippingDetails, IReadOnlyList copyLogDetails, string reverseShipmentLabelSasKey, string chainOfCustodySasKey, DeviceErasureDetails deviceErasureDetails, DataBoxKeyEncryptionKey keyEncryptionKey, int? expectedDataSizeInTerabytes, IReadOnlyList actions, LastMitigationActionOnJob lastMitigationActionOnJob, DataCenterAddressResult dataCenterAddress, DataCenterCode? dataCenterCode) { JobStages = jobStages; ContactDetails = contactDetails; @@ -72,6 +73,7 @@ internal DataBoxBasicJobDetails(IReadOnlyList jobStages, DataBo DataExportDetails = dataExportDetails; JobDetailsType = jobDetailsType; Preferences = preferences; + ReverseShippingDetails = reverseShippingDetails; CopyLogDetails = copyLogDetails; ReverseShipmentLabelSasKey = reverseShipmentLabelSasKey; ChainOfCustodySasKey = chainOfCustodySasKey; @@ -102,6 +104,8 @@ internal DataBoxBasicJobDetails(IReadOnlyList jobStages, DataBo internal DataBoxOrderType JobDetailsType { get; set; } /// Preferences for the order. public DataBoxOrderPreferences Preferences { get; set; } + /// Optional Reverse Shipping details for order. + public ReverseShippingDetails ReverseShippingDetails { get; set; } /// /// List of copy log details. /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. diff --git a/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/DataBoxCopyProgress.Serialization.cs b/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/DataBoxCopyProgress.Serialization.cs index f314946e37c6..e596a7fb3af5 100644 --- a/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/DataBoxCopyProgress.Serialization.cs +++ b/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/DataBoxCopyProgress.Serialization.cs @@ -5,7 +5,9 @@ #nullable disable +using System.Collections.Generic; using System.Text.Json; +using Azure; using Azure.Core; namespace Azure.ResourceManager.DataBox.Models @@ -33,6 +35,8 @@ internal static DataBoxCopyProgress DeserializeDataBoxCopyProgress(JsonElement e Optional directoriesErroredOut = default; Optional invalidDirectoriesProcessed = default; Optional isEnumerationInProgress = default; + Optional error = default; + Optional> actions = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("storageAccountName"u8)) @@ -180,8 +184,33 @@ internal static DataBoxCopyProgress DeserializeDataBoxCopyProgress(JsonElement e isEnumerationInProgress = property.Value.GetBoolean(); continue; } + if (property.NameEquals("error"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + error = JsonSerializer.Deserialize(property.Value.GetRawText()); + continue; + } + if (property.NameEquals("actions"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(item.GetString().ToCustomerResolutionCode()); + } + actions = array; + continue; + } } - return new DataBoxCopyProgress(storageAccountName.Value, Optional.ToNullable(transferType), Optional.ToNullable(dataAccountType), accountId.Value, Optional.ToNullable(bytesProcessed), Optional.ToNullable(totalBytesToProcess), Optional.ToNullable(filesProcessed), Optional.ToNullable(totalFilesToProcess), Optional.ToNullable(invalidFilesProcessed), Optional.ToNullable(invalidFileBytesUploaded), Optional.ToNullable(renamedContainerCount), Optional.ToNullable(filesErroredOut), Optional.ToNullable(directoriesErroredOut), Optional.ToNullable(invalidDirectoriesProcessed), Optional.ToNullable(isEnumerationInProgress)); + return new DataBoxCopyProgress(storageAccountName.Value, Optional.ToNullable(transferType), Optional.ToNullable(dataAccountType), accountId.Value, Optional.ToNullable(bytesProcessed), Optional.ToNullable(totalBytesToProcess), Optional.ToNullable(filesProcessed), Optional.ToNullable(totalFilesToProcess), Optional.ToNullable(invalidFilesProcessed), Optional.ToNullable(invalidFileBytesUploaded), Optional.ToNullable(renamedContainerCount), Optional.ToNullable(filesErroredOut), Optional.ToNullable(directoriesErroredOut), Optional.ToNullable(invalidDirectoriesProcessed), Optional.ToNullable(isEnumerationInProgress), error.Value, Optional.ToList(actions)); } } } diff --git a/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/DataBoxCopyProgress.cs b/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/DataBoxCopyProgress.cs index 1006002b2dd7..79a9d870cc99 100644 --- a/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/DataBoxCopyProgress.cs +++ b/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/DataBoxCopyProgress.cs @@ -5,6 +5,8 @@ #nullable disable +using System.Collections.Generic; +using Azure; using Azure.Core; namespace Azure.ResourceManager.DataBox.Models @@ -15,6 +17,7 @@ public partial class DataBoxCopyProgress /// Initializes a new instance of DataBoxCopyProgress. internal DataBoxCopyProgress() { + Actions = new ChangeTrackingList(); } /// Initializes a new instance of DataBoxCopyProgress. @@ -36,7 +39,9 @@ internal DataBoxCopyProgress() /// To indicate if enumeration of data is in progress. /// Until this is true, the TotalBytesToProcess may not be valid. /// - internal DataBoxCopyProgress(string storageAccountName, DataBoxJobTransferType? transferType, DataAccountType? dataAccountType, ResourceIdentifier accountId, long? bytesProcessed, long? totalBytesToProcess, long? filesProcessed, long? totalFilesToProcess, long? invalidFilesProcessed, long? invalidFileBytesUploaded, long? renamedContainerCount, long? filesErroredOut, long? directoriesErroredOut, long? invalidDirectoriesProcessed, bool? isEnumerationInProgress) + /// Error, if any, in the stage. + /// Available actions on the job. + internal DataBoxCopyProgress(string storageAccountName, DataBoxJobTransferType? transferType, DataAccountType? dataAccountType, ResourceIdentifier accountId, long? bytesProcessed, long? totalBytesToProcess, long? filesProcessed, long? totalFilesToProcess, long? invalidFilesProcessed, long? invalidFileBytesUploaded, long? renamedContainerCount, long? filesErroredOut, long? directoriesErroredOut, long? invalidDirectoriesProcessed, bool? isEnumerationInProgress, ResponseError error, IReadOnlyList actions) { StorageAccountName = storageAccountName; TransferType = transferType; @@ -53,6 +58,8 @@ internal DataBoxCopyProgress(string storageAccountName, DataBoxJobTransferType? DirectoriesErroredOut = directoriesErroredOut; InvalidDirectoriesProcessed = invalidDirectoriesProcessed; IsEnumerationInProgress = isEnumerationInProgress; + Error = error; + Actions = actions; } /// Name of the storage account. This will be empty for data account types other than storage account. @@ -88,5 +95,9 @@ internal DataBoxCopyProgress(string storageAccountName, DataBoxJobTransferType? /// Until this is true, the TotalBytesToProcess may not be valid. /// public bool? IsEnumerationInProgress { get; } + /// Error, if any, in the stage. + public ResponseError Error { get; } + /// Available actions on the job. + public IReadOnlyList Actions { get; } } } diff --git a/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/DataBoxCustomerDiskCopyProgress.Serialization.cs b/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/DataBoxCustomerDiskCopyProgress.Serialization.cs index ee67a00e1375..31ffe748a72d 100644 --- a/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/DataBoxCustomerDiskCopyProgress.Serialization.cs +++ b/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/DataBoxCustomerDiskCopyProgress.Serialization.cs @@ -5,7 +5,9 @@ #nullable disable +using System.Collections.Generic; using System.Text.Json; +using Azure; using Azure.Core; namespace Azure.ResourceManager.DataBox.Models @@ -35,6 +37,8 @@ internal static DataBoxCustomerDiskCopyProgress DeserializeDataBoxCustomerDiskCo Optional directoriesErroredOut = default; Optional invalidDirectoriesProcessed = default; Optional isEnumerationInProgress = default; + Optional error = default; + Optional> actions = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("serialNumber"u8)) @@ -197,8 +201,33 @@ internal static DataBoxCustomerDiskCopyProgress DeserializeDataBoxCustomerDiskCo isEnumerationInProgress = property.Value.GetBoolean(); continue; } + if (property.NameEquals("error"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + error = JsonSerializer.Deserialize(property.Value.GetRawText()); + continue; + } + if (property.NameEquals("actions"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(item.GetString().ToCustomerResolutionCode()); + } + actions = array; + continue; + } } - return new DataBoxCustomerDiskCopyProgress(storageAccountName.Value, Optional.ToNullable(transferType), Optional.ToNullable(dataAccountType), accountId.Value, Optional.ToNullable(bytesProcessed), Optional.ToNullable(totalBytesToProcess), Optional.ToNullable(filesProcessed), Optional.ToNullable(totalFilesToProcess), Optional.ToNullable(invalidFilesProcessed), Optional.ToNullable(invalidFileBytesUploaded), Optional.ToNullable(renamedContainerCount), Optional.ToNullable(filesErroredOut), Optional.ToNullable(directoriesErroredOut), Optional.ToNullable(invalidDirectoriesProcessed), Optional.ToNullable(isEnumerationInProgress), serialNumber.Value, Optional.ToNullable(copyStatus)); + return new DataBoxCustomerDiskCopyProgress(storageAccountName.Value, Optional.ToNullable(transferType), Optional.ToNullable(dataAccountType), accountId.Value, Optional.ToNullable(bytesProcessed), Optional.ToNullable(totalBytesToProcess), Optional.ToNullable(filesProcessed), Optional.ToNullable(totalFilesToProcess), Optional.ToNullable(invalidFilesProcessed), Optional.ToNullable(invalidFileBytesUploaded), Optional.ToNullable(renamedContainerCount), Optional.ToNullable(filesErroredOut), Optional.ToNullable(directoriesErroredOut), Optional.ToNullable(invalidDirectoriesProcessed), Optional.ToNullable(isEnumerationInProgress), error.Value, Optional.ToList(actions), serialNumber.Value, Optional.ToNullable(copyStatus)); } } } diff --git a/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/DataBoxCustomerDiskCopyProgress.cs b/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/DataBoxCustomerDiskCopyProgress.cs index 8132ee98da44..aebf2a525092 100644 --- a/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/DataBoxCustomerDiskCopyProgress.cs +++ b/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/DataBoxCustomerDiskCopyProgress.cs @@ -5,6 +5,8 @@ #nullable disable +using System.Collections.Generic; +using Azure; using Azure.Core; namespace Azure.ResourceManager.DataBox.Models @@ -36,9 +38,11 @@ internal DataBoxCustomerDiskCopyProgress() /// To indicate if enumeration of data is in progress. /// Until this is true, the TotalBytesToProcess may not be valid. /// + /// Error, if any, in the stage. + /// Available actions on the job. /// Disk Serial Number. /// The Status of the copy. - internal DataBoxCustomerDiskCopyProgress(string storageAccountName, DataBoxJobTransferType? transferType, DataAccountType? dataAccountType, ResourceIdentifier accountId, long? bytesProcessed, long? totalBytesToProcess, long? filesProcessed, long? totalFilesToProcess, long? invalidFilesProcessed, long? invalidFileBytesUploaded, long? renamedContainerCount, long? filesErroredOut, long? directoriesErroredOut, long? invalidDirectoriesProcessed, bool? isEnumerationInProgress, string serialNumber, DataBoxCopyStatus? copyStatus) : base(storageAccountName, transferType, dataAccountType, accountId, bytesProcessed, totalBytesToProcess, filesProcessed, totalFilesToProcess, invalidFilesProcessed, invalidFileBytesUploaded, renamedContainerCount, filesErroredOut, directoriesErroredOut, invalidDirectoriesProcessed, isEnumerationInProgress) + internal DataBoxCustomerDiskCopyProgress(string storageAccountName, DataBoxJobTransferType? transferType, DataAccountType? dataAccountType, ResourceIdentifier accountId, long? bytesProcessed, long? totalBytesToProcess, long? filesProcessed, long? totalFilesToProcess, long? invalidFilesProcessed, long? invalidFileBytesUploaded, long? renamedContainerCount, long? filesErroredOut, long? directoriesErroredOut, long? invalidDirectoriesProcessed, bool? isEnumerationInProgress, ResponseError error, IReadOnlyList actions, string serialNumber, DataBoxCopyStatus? copyStatus) : base(storageAccountName, transferType, dataAccountType, accountId, bytesProcessed, totalBytesToProcess, filesProcessed, totalFilesToProcess, invalidFilesProcessed, invalidFileBytesUploaded, renamedContainerCount, filesErroredOut, directoriesErroredOut, invalidDirectoriesProcessed, isEnumerationInProgress, error, actions) { SerialNumber = serialNumber; CopyStatus = copyStatus; diff --git a/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/DataBoxCustomerDiskJobDetails.Serialization.cs b/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/DataBoxCustomerDiskJobDetails.Serialization.cs index 7a24faa039bc..b46441bf879b 100644 --- a/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/DataBoxCustomerDiskJobDetails.Serialization.cs +++ b/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/DataBoxCustomerDiskJobDetails.Serialization.cs @@ -68,6 +68,11 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("preferences"u8); writer.WriteObjectValue(Preferences); } + if (Optional.IsDefined(ReverseShippingDetails)) + { + writer.WritePropertyName("reverseShippingDetails"u8); + writer.WriteObjectValue(ReverseShippingDetails); + } if (Optional.IsDefined(KeyEncryptionKey)) { writer.WritePropertyName("keyEncryptionKey"u8); @@ -102,6 +107,7 @@ internal static DataBoxCustomerDiskJobDetails DeserializeDataBoxCustomerDiskJobD Optional> dataExportDetails = default; DataBoxOrderType jobDetailsType = default; Optional preferences = default; + Optional reverseShippingDetails = default; Optional> copyLogDetails = default; Optional reverseShipmentLabelSasKey = default; Optional chainOfCustodySasKey = default; @@ -279,6 +285,16 @@ internal static DataBoxCustomerDiskJobDetails DeserializeDataBoxCustomerDiskJobD preferences = DataBoxOrderPreferences.DeserializeDataBoxOrderPreferences(property.Value); continue; } + if (property.NameEquals("reverseShippingDetails"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + reverseShippingDetails = ReverseShippingDetails.DeserializeReverseShippingDetails(property.Value); + continue; + } if (property.NameEquals("copyLogDetails"u8)) { if (property.Value.ValueKind == JsonValueKind.Null) @@ -380,7 +396,7 @@ internal static DataBoxCustomerDiskJobDetails DeserializeDataBoxCustomerDiskJobD continue; } } - return new DataBoxCustomerDiskJobDetails(Optional.ToList(jobStages), contactDetails, shippingAddress.Value, deliveryPackage.Value, returnPackage.Value, Optional.ToList(dataImportDetails), Optional.ToList(dataExportDetails), jobDetailsType, preferences.Value, Optional.ToList(copyLogDetails), reverseShipmentLabelSasKey.Value, chainOfCustodySasKey.Value, deviceErasureDetails.Value, keyEncryptionKey.Value, Optional.ToNullable(expectedDataSizeInTerabytes), Optional.ToList(actions), lastMitigationActionOnJob.Value, dataCenterAddress.Value, Optional.ToNullable(dataCenterCode), Optional.ToDictionary(importDiskDetailsCollection), Optional.ToDictionary(exportDiskDetailsCollection), Optional.ToList(copyProgress), deliverToDcPackageDetails.Value, returnToCustomerPackageDetails, Optional.ToNullable(enableManifestBackup)); + return new DataBoxCustomerDiskJobDetails(Optional.ToList(jobStages), contactDetails, shippingAddress.Value, deliveryPackage.Value, returnPackage.Value, Optional.ToList(dataImportDetails), Optional.ToList(dataExportDetails), jobDetailsType, preferences.Value, reverseShippingDetails.Value, Optional.ToList(copyLogDetails), reverseShipmentLabelSasKey.Value, chainOfCustodySasKey.Value, deviceErasureDetails.Value, keyEncryptionKey.Value, Optional.ToNullable(expectedDataSizeInTerabytes), Optional.ToList(actions), lastMitigationActionOnJob.Value, dataCenterAddress.Value, Optional.ToNullable(dataCenterCode), Optional.ToDictionary(importDiskDetailsCollection), Optional.ToDictionary(exportDiskDetailsCollection), Optional.ToList(copyProgress), deliverToDcPackageDetails.Value, returnToCustomerPackageDetails, Optional.ToNullable(enableManifestBackup)); } } } diff --git a/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/DataBoxCustomerDiskJobDetails.cs b/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/DataBoxCustomerDiskJobDetails.cs index c241b74c57d4..d63fd6fe81ce 100644 --- a/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/DataBoxCustomerDiskJobDetails.cs +++ b/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/DataBoxCustomerDiskJobDetails.cs @@ -40,6 +40,7 @@ public DataBoxCustomerDiskJobDetails(DataBoxContactDetails contactDetails, Packa /// Details of the data to be exported from azure. /// Indicates the type of job details. /// Preferences for the order. + /// Optional Reverse Shipping details for order. /// /// List of copy log details. /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. @@ -64,7 +65,7 @@ public DataBoxCustomerDiskJobDetails(DataBoxContactDetails contactDetails, Packa /// Delivery package shipping details. /// Return package shipping details. /// Flag to indicate if disk manifest should be backed-up in the Storage Account. - internal DataBoxCustomerDiskJobDetails(IReadOnlyList jobStages, DataBoxContactDetails contactDetails, DataBoxShippingAddress shippingAddress, PackageShippingDetails deliveryPackage, PackageShippingDetails returnPackage, IList dataImportDetails, IList dataExportDetails, DataBoxOrderType jobDetailsType, DataBoxOrderPreferences preferences, IReadOnlyList copyLogDetails, string reverseShipmentLabelSasKey, string chainOfCustodySasKey, DeviceErasureDetails deviceErasureDetails, DataBoxKeyEncryptionKey keyEncryptionKey, int? expectedDataSizeInTerabytes, IReadOnlyList actions, LastMitigationActionOnJob lastMitigationActionOnJob, DataCenterAddressResult dataCenterAddress, DataCenterCode? dataCenterCode, IDictionary importDiskDetails, IReadOnlyDictionary exportDiskDetails, IReadOnlyList copyProgress, PackageCarrierInfo deliverToDataCenterPackageDetails, PackageCarrierDetails returnToCustomerPackageDetails, bool? enableManifestBackup) : base(jobStages, contactDetails, shippingAddress, deliveryPackage, returnPackage, dataImportDetails, dataExportDetails, jobDetailsType, preferences, copyLogDetails, reverseShipmentLabelSasKey, chainOfCustodySasKey, deviceErasureDetails, keyEncryptionKey, expectedDataSizeInTerabytes, actions, lastMitigationActionOnJob, dataCenterAddress, dataCenterCode) + internal DataBoxCustomerDiskJobDetails(IReadOnlyList jobStages, DataBoxContactDetails contactDetails, DataBoxShippingAddress shippingAddress, PackageShippingDetails deliveryPackage, PackageShippingDetails returnPackage, IList dataImportDetails, IList dataExportDetails, DataBoxOrderType jobDetailsType, DataBoxOrderPreferences preferences, ReverseShippingDetails reverseShippingDetails, IReadOnlyList copyLogDetails, string reverseShipmentLabelSasKey, string chainOfCustodySasKey, DeviceErasureDetails deviceErasureDetails, DataBoxKeyEncryptionKey keyEncryptionKey, int? expectedDataSizeInTerabytes, IReadOnlyList actions, LastMitigationActionOnJob lastMitigationActionOnJob, DataCenterAddressResult dataCenterAddress, DataCenterCode? dataCenterCode, IDictionary importDiskDetails, IReadOnlyDictionary exportDiskDetails, IReadOnlyList copyProgress, PackageCarrierInfo deliverToDataCenterPackageDetails, PackageCarrierDetails returnToCustomerPackageDetails, bool? enableManifestBackup) : base(jobStages, contactDetails, shippingAddress, deliveryPackage, returnPackage, dataImportDetails, dataExportDetails, jobDetailsType, preferences, reverseShippingDetails, copyLogDetails, reverseShipmentLabelSasKey, chainOfCustodySasKey, deviceErasureDetails, keyEncryptionKey, expectedDataSizeInTerabytes, actions, lastMitigationActionOnJob, dataCenterAddress, dataCenterCode) { ImportDiskDetails = importDiskDetails; ExportDiskDetails = exportDiskDetails; diff --git a/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/DataBoxDiskCopyProgress.Serialization.cs b/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/DataBoxDiskCopyProgress.Serialization.cs index f0bd7ae2e8b5..e9ba3935b2f6 100644 --- a/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/DataBoxDiskCopyProgress.Serialization.cs +++ b/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/DataBoxDiskCopyProgress.Serialization.cs @@ -5,7 +5,9 @@ #nullable disable +using System.Collections.Generic; using System.Text.Json; +using Azure; using Azure.Core; namespace Azure.ResourceManager.DataBox.Models @@ -22,6 +24,8 @@ internal static DataBoxDiskCopyProgress DeserializeDataBoxDiskCopyProgress(JsonE Optional bytesCopied = default; Optional percentComplete = default; Optional status = default; + Optional error = default; + Optional> actions = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("serialNumber"u8)) @@ -59,8 +63,33 @@ internal static DataBoxDiskCopyProgress DeserializeDataBoxDiskCopyProgress(JsonE status = new DataBoxCopyStatus(property.Value.GetString()); continue; } + if (property.NameEquals("error"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + error = JsonSerializer.Deserialize(property.Value.GetRawText()); + continue; + } + if (property.NameEquals("actions"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(item.GetString().ToCustomerResolutionCode()); + } + actions = array; + continue; + } } - return new DataBoxDiskCopyProgress(serialNumber.Value, Optional.ToNullable(bytesCopied), Optional.ToNullable(percentComplete), Optional.ToNullable(status)); + return new DataBoxDiskCopyProgress(serialNumber.Value, Optional.ToNullable(bytesCopied), Optional.ToNullable(percentComplete), Optional.ToNullable(status), error.Value, Optional.ToList(actions)); } } } diff --git a/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/DataBoxDiskCopyProgress.cs b/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/DataBoxDiskCopyProgress.cs index 3cbfcfdac81c..b88d39710974 100644 --- a/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/DataBoxDiskCopyProgress.cs +++ b/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/DataBoxDiskCopyProgress.cs @@ -5,6 +5,10 @@ #nullable disable +using System.Collections.Generic; +using Azure; +using Azure.Core; + namespace Azure.ResourceManager.DataBox.Models { /// DataBox Disk Copy Progress. @@ -13,6 +17,7 @@ public partial class DataBoxDiskCopyProgress /// Initializes a new instance of DataBoxDiskCopyProgress. internal DataBoxDiskCopyProgress() { + Actions = new ChangeTrackingList(); } /// Initializes a new instance of DataBoxDiskCopyProgress. @@ -20,12 +25,16 @@ internal DataBoxDiskCopyProgress() /// Bytes copied during the copy of disk. /// Indicates the percentage completed for the copy of the disk. /// The Status of the copy. - internal DataBoxDiskCopyProgress(string serialNumber, long? bytesCopied, int? percentComplete, DataBoxCopyStatus? status) + /// Error, if any, in the stage. + /// Available actions on the job. + internal DataBoxDiskCopyProgress(string serialNumber, long? bytesCopied, int? percentComplete, DataBoxCopyStatus? status, ResponseError error, IReadOnlyList actions) { SerialNumber = serialNumber; BytesCopied = bytesCopied; PercentComplete = percentComplete; Status = status; + Error = error; + Actions = actions; } /// The serial number of the disk. @@ -36,5 +45,9 @@ internal DataBoxDiskCopyProgress(string serialNumber, long? bytesCopied, int? pe public int? PercentComplete { get; } /// The Status of the copy. public DataBoxCopyStatus? Status { get; } + /// Error, if any, in the stage. + public ResponseError Error { get; } + /// Available actions on the job. + public IReadOnlyList Actions { get; } } } diff --git a/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/DataBoxDiskGranularCopyLogDetails.Serialization.cs b/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/DataBoxDiskGranularCopyLogDetails.Serialization.cs new file mode 100644 index 000000000000..3ef2de35eebb --- /dev/null +++ b/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/DataBoxDiskGranularCopyLogDetails.Serialization.cs @@ -0,0 +1,62 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.DataBox.Models +{ + public partial class DataBoxDiskGranularCopyLogDetails + { + internal static DataBoxDiskGranularCopyLogDetails DeserializeDataBoxDiskGranularCopyLogDetails(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + Optional serialNumber = default; + Optional accountId = default; + Optional errorLogLink = default; + Optional verboseLogLink = default; + DataBoxOrderType copyLogDetailsType = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("serialNumber"u8)) + { + serialNumber = property.Value.GetString(); + continue; + } + if (property.NameEquals("accountId"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + accountId = new ResourceIdentifier(property.Value.GetString()); + continue; + } + if (property.NameEquals("errorLogLink"u8)) + { + errorLogLink = property.Value.GetString(); + continue; + } + if (property.NameEquals("verboseLogLink"u8)) + { + verboseLogLink = property.Value.GetString(); + continue; + } + if (property.NameEquals("copyLogDetailsType"u8)) + { + copyLogDetailsType = property.Value.GetString().ToDataBoxOrderType(); + continue; + } + } + return new DataBoxDiskGranularCopyLogDetails(copyLogDetailsType, serialNumber.Value, accountId.Value, errorLogLink.Value, verboseLogLink.Value); + } + } +} diff --git a/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/DataBoxDiskGranularCopyLogDetails.cs b/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/DataBoxDiskGranularCopyLogDetails.cs new file mode 100644 index 000000000000..e1f0f77bfa30 --- /dev/null +++ b/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/DataBoxDiskGranularCopyLogDetails.cs @@ -0,0 +1,45 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using Azure.Core; + +namespace Azure.ResourceManager.DataBox.Models +{ + /// Granular Copy Log Details for customer disk. + public partial class DataBoxDiskGranularCopyLogDetails : GranularCopyLogDetails + { + /// Initializes a new instance of DataBoxDiskGranularCopyLogDetails. + internal DataBoxDiskGranularCopyLogDetails() + { + CopyLogDetailsType = DataBoxOrderType.DataBoxCustomerDisk; + } + + /// Initializes a new instance of DataBoxDiskGranularCopyLogDetails. + /// Indicates the type of job details. + /// Disk Serial Number. + /// Account id. + /// Link for copy error logs. + /// Link for copy verbose logs. + internal DataBoxDiskGranularCopyLogDetails(DataBoxOrderType copyLogDetailsType, string serialNumber, ResourceIdentifier accountId, string errorLogLink, string verboseLogLink) : base(copyLogDetailsType) + { + SerialNumber = serialNumber; + AccountId = accountId; + ErrorLogLink = errorLogLink; + VerboseLogLink = verboseLogLink; + CopyLogDetailsType = copyLogDetailsType; + } + + /// Disk Serial Number. + public string SerialNumber { get; } + /// Account id. + public ResourceIdentifier AccountId { get; } + /// Link for copy error logs. + public string ErrorLogLink { get; } + /// Link for copy verbose logs. + public string VerboseLogLink { get; } + } +} diff --git a/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/DataBoxDiskGranularCopyProgress.Serialization.cs b/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/DataBoxDiskGranularCopyProgress.Serialization.cs index cc08aa9c5dfc..6ddbedc8df3e 100644 --- a/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/DataBoxDiskGranularCopyProgress.Serialization.cs +++ b/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/DataBoxDiskGranularCopyProgress.Serialization.cs @@ -5,7 +5,9 @@ #nullable disable +using System.Collections.Generic; using System.Text.Json; +using Azure; using Azure.Core; namespace Azure.ResourceManager.DataBox.Models @@ -35,6 +37,8 @@ internal static DataBoxDiskGranularCopyProgress DeserializeDataBoxDiskGranularCo Optional directoriesErroredOut = default; Optional invalidDirectoriesProcessed = default; Optional isEnumerationInProgress = default; + Optional error = default; + Optional> actions = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("serialNumber"u8)) @@ -197,8 +201,33 @@ internal static DataBoxDiskGranularCopyProgress DeserializeDataBoxDiskGranularCo isEnumerationInProgress = property.Value.GetBoolean(); continue; } + if (property.NameEquals("error"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + error = JsonSerializer.Deserialize(property.Value.GetRawText()); + continue; + } + if (property.NameEquals("actions"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(item.GetString().ToCustomerResolutionCode()); + } + actions = array; + continue; + } } - return new DataBoxDiskGranularCopyProgress(storageAccountName.Value, Optional.ToNullable(transferType), Optional.ToNullable(dataAccountType), accountId.Value, Optional.ToNullable(bytesProcessed), Optional.ToNullable(totalBytesToProcess), Optional.ToNullable(filesProcessed), Optional.ToNullable(totalFilesToProcess), Optional.ToNullable(invalidFilesProcessed), Optional.ToNullable(invalidFileBytesUploaded), Optional.ToNullable(renamedContainerCount), Optional.ToNullable(filesErroredOut), Optional.ToNullable(directoriesErroredOut), Optional.ToNullable(invalidDirectoriesProcessed), Optional.ToNullable(isEnumerationInProgress), serialNumber.Value, Optional.ToNullable(copyStatus)); + return new DataBoxDiskGranularCopyProgress(storageAccountName.Value, Optional.ToNullable(transferType), Optional.ToNullable(dataAccountType), accountId.Value, Optional.ToNullable(bytesProcessed), Optional.ToNullable(totalBytesToProcess), Optional.ToNullable(filesProcessed), Optional.ToNullable(totalFilesToProcess), Optional.ToNullable(invalidFilesProcessed), Optional.ToNullable(invalidFileBytesUploaded), Optional.ToNullable(renamedContainerCount), Optional.ToNullable(filesErroredOut), Optional.ToNullable(directoriesErroredOut), Optional.ToNullable(invalidDirectoriesProcessed), Optional.ToNullable(isEnumerationInProgress), error.Value, Optional.ToList(actions), serialNumber.Value, Optional.ToNullable(copyStatus)); } } } diff --git a/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/DataBoxDiskGranularCopyProgress.cs b/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/DataBoxDiskGranularCopyProgress.cs index 7d8de5615fc3..894fddc88bca 100644 --- a/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/DataBoxDiskGranularCopyProgress.cs +++ b/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/DataBoxDiskGranularCopyProgress.cs @@ -5,6 +5,8 @@ #nullable disable +using System.Collections.Generic; +using Azure; using Azure.Core; namespace Azure.ResourceManager.DataBox.Models @@ -36,9 +38,11 @@ internal DataBoxDiskGranularCopyProgress() /// To indicate if enumeration of data is in progress. /// Until this is true, the TotalBytesToProcess may not be valid. /// + /// Error, if any, in the stage. + /// Available actions on the job. /// Disk Serial Number. /// The Status of the copy. - internal DataBoxDiskGranularCopyProgress(string storageAccountName, DataBoxJobTransferType? transferType, DataAccountType? dataAccountType, ResourceIdentifier accountId, long? bytesProcessed, long? totalBytesToProcess, long? filesProcessed, long? totalFilesToProcess, long? invalidFilesProcessed, long? invalidFileBytesUploaded, long? renamedContainerCount, long? filesErroredOut, long? directoriesErroredOut, long? invalidDirectoriesProcessed, bool? isEnumerationInProgress, string serialNumber, DataBoxCopyStatus? copyStatus) : base(storageAccountName, transferType, dataAccountType, accountId, bytesProcessed, totalBytesToProcess, filesProcessed, totalFilesToProcess, invalidFilesProcessed, invalidFileBytesUploaded, renamedContainerCount, filesErroredOut, directoriesErroredOut, invalidDirectoriesProcessed, isEnumerationInProgress) + internal DataBoxDiskGranularCopyProgress(string storageAccountName, DataBoxJobTransferType? transferType, DataAccountType? dataAccountType, ResourceIdentifier accountId, long? bytesProcessed, long? totalBytesToProcess, long? filesProcessed, long? totalFilesToProcess, long? invalidFilesProcessed, long? invalidFileBytesUploaded, long? renamedContainerCount, long? filesErroredOut, long? directoriesErroredOut, long? invalidDirectoriesProcessed, bool? isEnumerationInProgress, ResponseError error, IReadOnlyList actions, string serialNumber, DataBoxCopyStatus? copyStatus) : base(storageAccountName, transferType, dataAccountType, accountId, bytesProcessed, totalBytesToProcess, filesProcessed, totalFilesToProcess, invalidFilesProcessed, invalidFileBytesUploaded, renamedContainerCount, filesErroredOut, directoriesErroredOut, invalidDirectoriesProcessed, isEnumerationInProgress, error, actions) { SerialNumber = serialNumber; CopyStatus = copyStatus; diff --git a/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/DataBoxDiskJobDetails.Serialization.cs b/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/DataBoxDiskJobDetails.Serialization.cs index 1bed01ec32f2..a3e8d6790018 100644 --- a/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/DataBoxDiskJobDetails.Serialization.cs +++ b/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/DataBoxDiskJobDetails.Serialization.cs @@ -66,6 +66,11 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("preferences"u8); writer.WriteObjectValue(Preferences); } + if (Optional.IsDefined(ReverseShippingDetails)) + { + writer.WritePropertyName("reverseShippingDetails"u8); + writer.WriteObjectValue(ReverseShippingDetails); + } if (Optional.IsDefined(KeyEncryptionKey)) { writer.WritePropertyName("keyEncryptionKey"u8); @@ -88,6 +93,7 @@ internal static DataBoxDiskJobDetails DeserializeDataBoxDiskJobDetails(JsonEleme Optional> preferredDisks = default; Optional> copyProgress = default; Optional> granularCopyProgress = default; + Optional> granularCopyLogDetails = default; Optional> disksAndSizeDetails = default; Optional passkey = default; Optional> jobStages = default; @@ -99,6 +105,7 @@ internal static DataBoxDiskJobDetails DeserializeDataBoxDiskJobDetails(JsonEleme Optional> dataExportDetails = default; DataBoxOrderType jobDetailsType = default; Optional preferences = default; + Optional reverseShippingDetails = default; Optional> copyLogDetails = default; Optional reverseShipmentLabelSasKey = default; Optional chainOfCustodySasKey = default; @@ -156,6 +163,21 @@ internal static DataBoxDiskJobDetails DeserializeDataBoxDiskJobDetails(JsonEleme granularCopyProgress = array; continue; } + if (property.NameEquals("granularCopyLogDetails"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(DataBoxDiskGranularCopyLogDetails.DeserializeDataBoxDiskGranularCopyLogDetails(item)); + } + granularCopyLogDetails = array; + continue; + } if (property.NameEquals("disksAndSizeDetails"u8)) { if (property.Value.ValueKind == JsonValueKind.Null) @@ -271,6 +293,16 @@ internal static DataBoxDiskJobDetails DeserializeDataBoxDiskJobDetails(JsonEleme preferences = DataBoxOrderPreferences.DeserializeDataBoxOrderPreferences(property.Value); continue; } + if (property.NameEquals("reverseShippingDetails"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + reverseShippingDetails = ReverseShippingDetails.DeserializeReverseShippingDetails(property.Value); + continue; + } if (property.NameEquals("copyLogDetails"u8)) { if (property.Value.ValueKind == JsonValueKind.Null) @@ -372,7 +404,7 @@ internal static DataBoxDiskJobDetails DeserializeDataBoxDiskJobDetails(JsonEleme continue; } } - return new DataBoxDiskJobDetails(Optional.ToList(jobStages), contactDetails, shippingAddress.Value, deliveryPackage.Value, returnPackage.Value, Optional.ToList(dataImportDetails), Optional.ToList(dataExportDetails), jobDetailsType, preferences.Value, Optional.ToList(copyLogDetails), reverseShipmentLabelSasKey.Value, chainOfCustodySasKey.Value, deviceErasureDetails.Value, keyEncryptionKey.Value, Optional.ToNullable(expectedDataSizeInTerabytes), Optional.ToList(actions), lastMitigationActionOnJob.Value, dataCenterAddress.Value, Optional.ToNullable(dataCenterCode), Optional.ToDictionary(preferredDisks), Optional.ToList(copyProgress), Optional.ToList(granularCopyProgress), Optional.ToDictionary(disksAndSizeDetails), passkey.Value); + return new DataBoxDiskJobDetails(Optional.ToList(jobStages), contactDetails, shippingAddress.Value, deliveryPackage.Value, returnPackage.Value, Optional.ToList(dataImportDetails), Optional.ToList(dataExportDetails), jobDetailsType, preferences.Value, reverseShippingDetails.Value, Optional.ToList(copyLogDetails), reverseShipmentLabelSasKey.Value, chainOfCustodySasKey.Value, deviceErasureDetails.Value, keyEncryptionKey.Value, Optional.ToNullable(expectedDataSizeInTerabytes), Optional.ToList(actions), lastMitigationActionOnJob.Value, dataCenterAddress.Value, Optional.ToNullable(dataCenterCode), Optional.ToDictionary(preferredDisks), Optional.ToList(copyProgress), Optional.ToList(granularCopyProgress), Optional.ToList(granularCopyLogDetails), Optional.ToDictionary(disksAndSizeDetails), passkey.Value); } } } diff --git a/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/DataBoxDiskJobDetails.cs b/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/DataBoxDiskJobDetails.cs index c065aa759482..263752a0b2bc 100644 --- a/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/DataBoxDiskJobDetails.cs +++ b/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/DataBoxDiskJobDetails.cs @@ -24,6 +24,7 @@ public DataBoxDiskJobDetails(DataBoxContactDetails contactDetails) : base(contac PreferredDisks = new ChangeTrackingDictionary(); CopyProgress = new ChangeTrackingList(); GranularCopyProgress = new ChangeTrackingList(); + GranularCopyLogDetails = new ChangeTrackingList(); DisksAndSizeDetails = new ChangeTrackingDictionary(); JobDetailsType = DataBoxOrderType.DataBoxDisk; } @@ -38,6 +39,7 @@ public DataBoxDiskJobDetails(DataBoxContactDetails contactDetails) : base(contac /// Details of the data to be exported from azure. /// Indicates the type of job details. /// Preferences for the order. + /// Optional Reverse Shipping details for order. /// /// List of copy log details. /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. @@ -59,13 +61,15 @@ public DataBoxDiskJobDetails(DataBoxContactDetails contactDetails) : base(contac /// User preference on what size disks are needed for the job. The map is from the disk size in TB to the count. Eg. {2,5} means 5 disks of 2 TB size. Key is string but will be checked against an int. /// Copy progress per disk. /// Copy progress per disk. + /// Copy progress per disk. /// Contains the map of disk serial number to the disk size being used for the job. Is returned only after the disks are shipped to the customer. /// User entered passkey for DataBox Disk job. - internal DataBoxDiskJobDetails(IReadOnlyList jobStages, DataBoxContactDetails contactDetails, DataBoxShippingAddress shippingAddress, PackageShippingDetails deliveryPackage, PackageShippingDetails returnPackage, IList dataImportDetails, IList dataExportDetails, DataBoxOrderType jobDetailsType, DataBoxOrderPreferences preferences, IReadOnlyList copyLogDetails, string reverseShipmentLabelSasKey, string chainOfCustodySasKey, DeviceErasureDetails deviceErasureDetails, DataBoxKeyEncryptionKey keyEncryptionKey, int? expectedDataSizeInTerabytes, IReadOnlyList actions, LastMitigationActionOnJob lastMitigationActionOnJob, DataCenterAddressResult dataCenterAddress, DataCenterCode? dataCenterCode, IDictionary preferredDisks, IReadOnlyList copyProgress, IReadOnlyList granularCopyProgress, IReadOnlyDictionary disksAndSizeDetails, string passkey) : base(jobStages, contactDetails, shippingAddress, deliveryPackage, returnPackage, dataImportDetails, dataExportDetails, jobDetailsType, preferences, copyLogDetails, reverseShipmentLabelSasKey, chainOfCustodySasKey, deviceErasureDetails, keyEncryptionKey, expectedDataSizeInTerabytes, actions, lastMitigationActionOnJob, dataCenterAddress, dataCenterCode) + internal DataBoxDiskJobDetails(IReadOnlyList jobStages, DataBoxContactDetails contactDetails, DataBoxShippingAddress shippingAddress, PackageShippingDetails deliveryPackage, PackageShippingDetails returnPackage, IList dataImportDetails, IList dataExportDetails, DataBoxOrderType jobDetailsType, DataBoxOrderPreferences preferences, ReverseShippingDetails reverseShippingDetails, IReadOnlyList copyLogDetails, string reverseShipmentLabelSasKey, string chainOfCustodySasKey, DeviceErasureDetails deviceErasureDetails, DataBoxKeyEncryptionKey keyEncryptionKey, int? expectedDataSizeInTerabytes, IReadOnlyList actions, LastMitigationActionOnJob lastMitigationActionOnJob, DataCenterAddressResult dataCenterAddress, DataCenterCode? dataCenterCode, IDictionary preferredDisks, IReadOnlyList copyProgress, IReadOnlyList granularCopyProgress, IReadOnlyList granularCopyLogDetails, IReadOnlyDictionary disksAndSizeDetails, string passkey) : base(jobStages, contactDetails, shippingAddress, deliveryPackage, returnPackage, dataImportDetails, dataExportDetails, jobDetailsType, preferences, reverseShippingDetails, copyLogDetails, reverseShipmentLabelSasKey, chainOfCustodySasKey, deviceErasureDetails, keyEncryptionKey, expectedDataSizeInTerabytes, actions, lastMitigationActionOnJob, dataCenterAddress, dataCenterCode) { PreferredDisks = preferredDisks; CopyProgress = copyProgress; GranularCopyProgress = granularCopyProgress; + GranularCopyLogDetails = granularCopyLogDetails; DisksAndSizeDetails = disksAndSizeDetails; Passkey = passkey; JobDetailsType = jobDetailsType; @@ -77,6 +81,8 @@ internal DataBoxDiskJobDetails(IReadOnlyList jobStages, DataBox public IReadOnlyList CopyProgress { get; } /// Copy progress per disk. public IReadOnlyList GranularCopyProgress { get; } + /// Copy progress per disk. + public IReadOnlyList GranularCopyLogDetails { get; } /// Contains the map of disk serial number to the disk size being used for the job. Is returned only after the disks are shipped to the customer. public IReadOnlyDictionary DisksAndSizeDetails { get; } /// User entered passkey for DataBox Disk job. diff --git a/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/DataBoxHeavyJobDetails.Serialization.cs b/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/DataBoxHeavyJobDetails.Serialization.cs index 5f8c4d854cdc..82856f13e9ca 100644 --- a/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/DataBoxHeavyJobDetails.Serialization.cs +++ b/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/DataBoxHeavyJobDetails.Serialization.cs @@ -55,6 +55,11 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("preferences"u8); writer.WriteObjectValue(Preferences); } + if (Optional.IsDefined(ReverseShippingDetails)) + { + writer.WritePropertyName("reverseShippingDetails"u8); + writer.WriteObjectValue(ReverseShippingDetails); + } if (Optional.IsDefined(KeyEncryptionKey)) { writer.WritePropertyName("keyEncryptionKey"u8); @@ -85,6 +90,7 @@ internal static DataBoxHeavyJobDetails DeserializeDataBoxHeavyJobDetails(JsonEle Optional> dataExportDetails = default; DataBoxOrderType jobDetailsType = default; Optional preferences = default; + Optional reverseShippingDetails = default; Optional> copyLogDetails = default; Optional reverseShipmentLabelSasKey = default; Optional chainOfCustodySasKey = default; @@ -212,6 +218,16 @@ internal static DataBoxHeavyJobDetails DeserializeDataBoxHeavyJobDetails(JsonEle preferences = DataBoxOrderPreferences.DeserializeDataBoxOrderPreferences(property.Value); continue; } + if (property.NameEquals("reverseShippingDetails"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + reverseShippingDetails = ReverseShippingDetails.DeserializeReverseShippingDetails(property.Value); + continue; + } if (property.NameEquals("copyLogDetails"u8)) { if (property.Value.ValueKind == JsonValueKind.Null) @@ -313,7 +329,7 @@ internal static DataBoxHeavyJobDetails DeserializeDataBoxHeavyJobDetails(JsonEle continue; } } - return new DataBoxHeavyJobDetails(Optional.ToList(jobStages), contactDetails, shippingAddress.Value, deliveryPackage.Value, returnPackage.Value, Optional.ToList(dataImportDetails), Optional.ToList(dataExportDetails), jobDetailsType, preferences.Value, Optional.ToList(copyLogDetails), reverseShipmentLabelSasKey.Value, chainOfCustodySasKey.Value, deviceErasureDetails.Value, keyEncryptionKey.Value, Optional.ToNullable(expectedDataSizeInTerabytes), Optional.ToList(actions), lastMitigationActionOnJob.Value, dataCenterAddress.Value, Optional.ToNullable(dataCenterCode), Optional.ToList(copyProgress), devicePassword.Value); + return new DataBoxHeavyJobDetails(Optional.ToList(jobStages), contactDetails, shippingAddress.Value, deliveryPackage.Value, returnPackage.Value, Optional.ToList(dataImportDetails), Optional.ToList(dataExportDetails), jobDetailsType, preferences.Value, reverseShippingDetails.Value, Optional.ToList(copyLogDetails), reverseShipmentLabelSasKey.Value, chainOfCustodySasKey.Value, deviceErasureDetails.Value, keyEncryptionKey.Value, Optional.ToNullable(expectedDataSizeInTerabytes), Optional.ToList(actions), lastMitigationActionOnJob.Value, dataCenterAddress.Value, Optional.ToNullable(dataCenterCode), Optional.ToList(copyProgress), devicePassword.Value); } } } diff --git a/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/DataBoxHeavyJobDetails.cs b/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/DataBoxHeavyJobDetails.cs index 21c85c331cee..e044062ed935 100644 --- a/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/DataBoxHeavyJobDetails.cs +++ b/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/DataBoxHeavyJobDetails.cs @@ -35,6 +35,7 @@ public DataBoxHeavyJobDetails(DataBoxContactDetails contactDetails) : base(conta /// Details of the data to be exported from azure. /// Indicates the type of job details. /// Preferences for the order. + /// Optional Reverse Shipping details for order. /// /// List of copy log details. /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. @@ -55,7 +56,7 @@ public DataBoxHeavyJobDetails(DataBoxContactDetails contactDetails) : base(conta /// DataCenter code. /// Copy progress per account. /// Set Device password for unlocking Databox Heavy. 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 : @#\-$%^!+=;:_()]+. - internal DataBoxHeavyJobDetails(IReadOnlyList jobStages, DataBoxContactDetails contactDetails, DataBoxShippingAddress shippingAddress, PackageShippingDetails deliveryPackage, PackageShippingDetails returnPackage, IList dataImportDetails, IList dataExportDetails, DataBoxOrderType jobDetailsType, DataBoxOrderPreferences preferences, IReadOnlyList copyLogDetails, string reverseShipmentLabelSasKey, string chainOfCustodySasKey, DeviceErasureDetails deviceErasureDetails, DataBoxKeyEncryptionKey keyEncryptionKey, int? expectedDataSizeInTerabytes, IReadOnlyList actions, LastMitigationActionOnJob lastMitigationActionOnJob, DataCenterAddressResult dataCenterAddress, DataCenterCode? dataCenterCode, IReadOnlyList copyProgress, string devicePassword) : base(jobStages, contactDetails, shippingAddress, deliveryPackage, returnPackage, dataImportDetails, dataExportDetails, jobDetailsType, preferences, copyLogDetails, reverseShipmentLabelSasKey, chainOfCustodySasKey, deviceErasureDetails, keyEncryptionKey, expectedDataSizeInTerabytes, actions, lastMitigationActionOnJob, dataCenterAddress, dataCenterCode) + internal DataBoxHeavyJobDetails(IReadOnlyList jobStages, DataBoxContactDetails contactDetails, DataBoxShippingAddress shippingAddress, PackageShippingDetails deliveryPackage, PackageShippingDetails returnPackage, IList dataImportDetails, IList dataExportDetails, DataBoxOrderType jobDetailsType, DataBoxOrderPreferences preferences, ReverseShippingDetails reverseShippingDetails, IReadOnlyList copyLogDetails, string reverseShipmentLabelSasKey, string chainOfCustodySasKey, DeviceErasureDetails deviceErasureDetails, DataBoxKeyEncryptionKey keyEncryptionKey, int? expectedDataSizeInTerabytes, IReadOnlyList actions, LastMitigationActionOnJob lastMitigationActionOnJob, DataCenterAddressResult dataCenterAddress, DataCenterCode? dataCenterCode, IReadOnlyList copyProgress, string devicePassword) : base(jobStages, contactDetails, shippingAddress, deliveryPackage, returnPackage, dataImportDetails, dataExportDetails, jobDetailsType, preferences, reverseShippingDetails, copyLogDetails, reverseShipmentLabelSasKey, chainOfCustodySasKey, deviceErasureDetails, keyEncryptionKey, expectedDataSizeInTerabytes, actions, lastMitigationActionOnJob, dataCenterAddress, dataCenterCode) { CopyProgress = copyProgress; DevicePassword = devicePassword; diff --git a/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/DataBoxJobData.Serialization.cs b/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/DataBoxJobData.Serialization.cs index e6d4c0036524..0dc350cebda0 100644 --- a/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/DataBoxJobData.Serialization.cs +++ b/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/DataBoxJobData.Serialization.cs @@ -81,6 +81,8 @@ internal static DataBoxJobData DeserializeDataBoxJobData(JsonElement element) Optional isCancellable = default; Optional isDeletable = default; Optional isShippingAddressEditable = default; + Optional reverseShippingDetailsUpdate = default; + Optional reverseTransportPreferenceUpdate = default; Optional isPrepareToShipEnabled = default; Optional status = default; Optional startTime = default; @@ -196,6 +198,26 @@ internal static DataBoxJobData DeserializeDataBoxJobData(JsonElement element) isShippingAddressEditable = property0.Value.GetBoolean(); continue; } + if (property0.NameEquals("reverseShippingDetailsUpdate"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + property0.ThrowNonNullablePropertyIsNull(); + continue; + } + reverseShippingDetailsUpdate = property0.Value.GetString().ToReverseShippingDetailsEditStatus(); + continue; + } + if (property0.NameEquals("reverseTransportPreferenceUpdate"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + property0.ThrowNonNullablePropertyIsNull(); + continue; + } + reverseTransportPreferenceUpdate = property0.Value.GetString().ToReverseTransportPreferenceEditStatus(); + continue; + } if (property0.NameEquals("isPrepareToShipEnabled"u8)) { if (property0.Value.ValueKind == JsonValueKind.Null) @@ -285,7 +307,7 @@ internal static DataBoxJobData DeserializeDataBoxJobData(JsonElement element) continue; } } - return new DataBoxJobData(id, name, type, systemData.Value, Optional.ToDictionary(tags), location, transferType, Optional.ToNullable(isCancellable), Optional.ToNullable(isDeletable), Optional.ToNullable(isShippingAddressEditable), Optional.ToNullable(isPrepareToShipEnabled), Optional.ToNullable(status), Optional.ToNullable(startTime), error.Value, details.Value, cancellationReason.Value, Optional.ToNullable(deliveryType), deliveryInfo.Value, Optional.ToNullable(isCancellableWithoutFee), sku, identity); + return new DataBoxJobData(id, name, type, systemData.Value, Optional.ToDictionary(tags), location, transferType, Optional.ToNullable(isCancellable), Optional.ToNullable(isDeletable), Optional.ToNullable(isShippingAddressEditable), Optional.ToNullable(reverseShippingDetailsUpdate), Optional.ToNullable(reverseTransportPreferenceUpdate), Optional.ToNullable(isPrepareToShipEnabled), Optional.ToNullable(status), Optional.ToNullable(startTime), error.Value, details.Value, cancellationReason.Value, Optional.ToNullable(deliveryType), deliveryInfo.Value, Optional.ToNullable(isCancellableWithoutFee), sku, identity); } } } diff --git a/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/DataBoxJobDetails.Serialization.cs b/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/DataBoxJobDetails.Serialization.cs index 793a41a1f0d5..66c325a05eff 100644 --- a/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/DataBoxJobDetails.Serialization.cs +++ b/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/DataBoxJobDetails.Serialization.cs @@ -55,6 +55,11 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("preferences"u8); writer.WriteObjectValue(Preferences); } + if (Optional.IsDefined(ReverseShippingDetails)) + { + writer.WritePropertyName("reverseShippingDetails"u8); + writer.WriteObjectValue(ReverseShippingDetails); + } if (Optional.IsDefined(KeyEncryptionKey)) { writer.WritePropertyName("keyEncryptionKey"u8); @@ -85,6 +90,7 @@ internal static DataBoxJobDetails DeserializeDataBoxJobDetails(JsonElement eleme Optional> dataExportDetails = default; DataBoxOrderType jobDetailsType = default; Optional preferences = default; + Optional reverseShippingDetails = default; Optional> copyLogDetails = default; Optional reverseShipmentLabelSasKey = default; Optional chainOfCustodySasKey = default; @@ -212,6 +218,16 @@ internal static DataBoxJobDetails DeserializeDataBoxJobDetails(JsonElement eleme preferences = DataBoxOrderPreferences.DeserializeDataBoxOrderPreferences(property.Value); continue; } + if (property.NameEquals("reverseShippingDetails"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + reverseShippingDetails = ReverseShippingDetails.DeserializeReverseShippingDetails(property.Value); + continue; + } if (property.NameEquals("copyLogDetails"u8)) { if (property.Value.ValueKind == JsonValueKind.Null) @@ -313,7 +329,7 @@ internal static DataBoxJobDetails DeserializeDataBoxJobDetails(JsonElement eleme continue; } } - return new DataBoxJobDetails(Optional.ToList(jobStages), contactDetails, shippingAddress.Value, deliveryPackage.Value, returnPackage.Value, Optional.ToList(dataImportDetails), Optional.ToList(dataExportDetails), jobDetailsType, preferences.Value, Optional.ToList(copyLogDetails), reverseShipmentLabelSasKey.Value, chainOfCustodySasKey.Value, deviceErasureDetails.Value, keyEncryptionKey.Value, Optional.ToNullable(expectedDataSizeInTerabytes), Optional.ToList(actions), lastMitigationActionOnJob.Value, dataCenterAddress.Value, Optional.ToNullable(dataCenterCode), Optional.ToList(copyProgress), devicePassword.Value); + return new DataBoxJobDetails(Optional.ToList(jobStages), contactDetails, shippingAddress.Value, deliveryPackage.Value, returnPackage.Value, Optional.ToList(dataImportDetails), Optional.ToList(dataExportDetails), jobDetailsType, preferences.Value, reverseShippingDetails.Value, Optional.ToList(copyLogDetails), reverseShipmentLabelSasKey.Value, chainOfCustodySasKey.Value, deviceErasureDetails.Value, keyEncryptionKey.Value, Optional.ToNullable(expectedDataSizeInTerabytes), Optional.ToList(actions), lastMitigationActionOnJob.Value, dataCenterAddress.Value, Optional.ToNullable(dataCenterCode), Optional.ToList(copyProgress), devicePassword.Value); } } } diff --git a/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/DataBoxJobDetails.cs b/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/DataBoxJobDetails.cs index 5d7a8be19512..45bc5bdfe290 100644 --- a/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/DataBoxJobDetails.cs +++ b/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/DataBoxJobDetails.cs @@ -35,6 +35,7 @@ public DataBoxJobDetails(DataBoxContactDetails contactDetails) : base(contactDet /// Details of the data to be exported from azure. /// Indicates the type of job details. /// Preferences for the order. + /// Optional Reverse Shipping details for order. /// /// List of copy log details. /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. @@ -55,7 +56,7 @@ public DataBoxJobDetails(DataBoxContactDetails contactDetails) : base(contactDet /// DataCenter code. /// Copy progress per storage account. /// Set Device password for unlocking Databox. 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 : @#\-$%^!+=;:_()]+. - internal DataBoxJobDetails(IReadOnlyList jobStages, DataBoxContactDetails contactDetails, DataBoxShippingAddress shippingAddress, PackageShippingDetails deliveryPackage, PackageShippingDetails returnPackage, IList dataImportDetails, IList dataExportDetails, DataBoxOrderType jobDetailsType, DataBoxOrderPreferences preferences, IReadOnlyList copyLogDetails, string reverseShipmentLabelSasKey, string chainOfCustodySasKey, DeviceErasureDetails deviceErasureDetails, DataBoxKeyEncryptionKey keyEncryptionKey, int? expectedDataSizeInTerabytes, IReadOnlyList actions, LastMitigationActionOnJob lastMitigationActionOnJob, DataCenterAddressResult dataCenterAddress, DataCenterCode? dataCenterCode, IReadOnlyList copyProgress, string devicePassword) : base(jobStages, contactDetails, shippingAddress, deliveryPackage, returnPackage, dataImportDetails, dataExportDetails, jobDetailsType, preferences, copyLogDetails, reverseShipmentLabelSasKey, chainOfCustodySasKey, deviceErasureDetails, keyEncryptionKey, expectedDataSizeInTerabytes, actions, lastMitigationActionOnJob, dataCenterAddress, dataCenterCode) + internal DataBoxJobDetails(IReadOnlyList jobStages, DataBoxContactDetails contactDetails, DataBoxShippingAddress shippingAddress, PackageShippingDetails deliveryPackage, PackageShippingDetails returnPackage, IList dataImportDetails, IList dataExportDetails, DataBoxOrderType jobDetailsType, DataBoxOrderPreferences preferences, ReverseShippingDetails reverseShippingDetails, IReadOnlyList copyLogDetails, string reverseShipmentLabelSasKey, string chainOfCustodySasKey, DeviceErasureDetails deviceErasureDetails, DataBoxKeyEncryptionKey keyEncryptionKey, int? expectedDataSizeInTerabytes, IReadOnlyList actions, LastMitigationActionOnJob lastMitigationActionOnJob, DataCenterAddressResult dataCenterAddress, DataCenterCode? dataCenterCode, IReadOnlyList copyProgress, string devicePassword) : base(jobStages, contactDetails, shippingAddress, deliveryPackage, returnPackage, dataImportDetails, dataExportDetails, jobDetailsType, preferences, reverseShippingDetails, copyLogDetails, reverseShipmentLabelSasKey, chainOfCustodySasKey, deviceErasureDetails, keyEncryptionKey, expectedDataSizeInTerabytes, actions, lastMitigationActionOnJob, dataCenterAddress, dataCenterCode) { CopyProgress = copyProgress; DevicePassword = devicePassword; diff --git a/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/DataBoxOrderPreferences.Serialization.cs b/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/DataBoxOrderPreferences.Serialization.cs index c43bf8dcd9fa..550986b4c5b3 100644 --- a/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/DataBoxOrderPreferences.Serialization.cs +++ b/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/DataBoxOrderPreferences.Serialization.cs @@ -31,6 +31,11 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("transportPreferences"u8); writer.WriteObjectValue(TransportPreferences); } + if (Optional.IsDefined(ReverseTransportPreferences)) + { + writer.WritePropertyName("reverseTransportPreferences"u8); + writer.WriteObjectValue(ReverseTransportPreferences); + } if (Optional.IsDefined(EncryptionPreferences)) { writer.WritePropertyName("encryptionPreferences"u8); @@ -57,6 +62,7 @@ internal static DataBoxOrderPreferences DeserializeDataBoxOrderPreferences(JsonE } Optional> preferredDataCenterRegion = default; Optional transportPreferences = default; + Optional reverseTransportPreferences = default; Optional encryptionPreferences = default; Optional> storageAccountAccessTierPreferences = default; foreach (var property in element.EnumerateObject()) @@ -86,6 +92,16 @@ internal static DataBoxOrderPreferences DeserializeDataBoxOrderPreferences(JsonE transportPreferences = TransportPreferences.DeserializeTransportPreferences(property.Value); continue; } + if (property.NameEquals("reverseTransportPreferences"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + reverseTransportPreferences = TransportPreferences.DeserializeTransportPreferences(property.Value); + continue; + } if (property.NameEquals("encryptionPreferences"u8)) { if (property.Value.ValueKind == JsonValueKind.Null) @@ -112,7 +128,7 @@ internal static DataBoxOrderPreferences DeserializeDataBoxOrderPreferences(JsonE continue; } } - return new DataBoxOrderPreferences(Optional.ToList(preferredDataCenterRegion), transportPreferences.Value, encryptionPreferences.Value, Optional.ToList(storageAccountAccessTierPreferences)); + return new DataBoxOrderPreferences(Optional.ToList(preferredDataCenterRegion), transportPreferences.Value, reverseTransportPreferences.Value, encryptionPreferences.Value, Optional.ToList(storageAccountAccessTierPreferences)); } } } diff --git a/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/DataBoxOrderPreferences.cs b/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/DataBoxOrderPreferences.cs index 69102bdbd8bf..3f6656b9a80a 100644 --- a/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/DataBoxOrderPreferences.cs +++ b/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/DataBoxOrderPreferences.cs @@ -23,12 +23,14 @@ public DataBoxOrderPreferences() /// Initializes a new instance of DataBoxOrderPreferences. /// Preferred data center region. /// Preferences related to the shipment logistics of the sku. + /// Optional Preferences related to the reverse shipment logistics of the sku. /// Preferences related to the Encryption. /// Preferences related to the Access Tier of storage accounts. - internal DataBoxOrderPreferences(IList preferredDataCenterRegion, TransportPreferences transportPreferences, DataBoxEncryptionPreferences encryptionPreferences, IList storageAccountAccessTierPreferences) + internal DataBoxOrderPreferences(IList preferredDataCenterRegion, TransportPreferences transportPreferences, TransportPreferences reverseTransportPreferences, DataBoxEncryptionPreferences encryptionPreferences, IList storageAccountAccessTierPreferences) { PreferredDataCenterRegion = preferredDataCenterRegion; TransportPreferences = transportPreferences; + ReverseTransportPreferences = reverseTransportPreferences; EncryptionPreferences = encryptionPreferences; StorageAccountAccessTierPreferences = storageAccountAccessTierPreferences; } @@ -36,17 +38,9 @@ internal DataBoxOrderPreferences(IList preferredDataCenterRegion, Transp /// Preferred data center region. public IList PreferredDataCenterRegion { get; } /// Preferences related to the shipment logistics of the sku. - internal TransportPreferences TransportPreferences { get; set; } - /// Indicates Shipment Logistics type that the customer preferred. - public TransportShipmentType? TransportPreferencesPreferredShipmentType - { - get => TransportPreferences is null ? default(TransportShipmentType?) : TransportPreferences.PreferredShipmentType; - set - { - TransportPreferences = value.HasValue ? new TransportPreferences(value.Value) : null; - } - } - + public TransportPreferences TransportPreferences { get; set; } + /// Optional Preferences related to the reverse shipment logistics of the sku. + public TransportPreferences ReverseTransportPreferences { get; set; } /// Preferences related to the Encryption. internal DataBoxEncryptionPreferences EncryptionPreferences { get; set; } /// Defines secondary layer of software-based encryption enablement. diff --git a/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/DataBoxSkuInformation.Serialization.cs b/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/DataBoxSkuInformation.Serialization.cs index ce7a7c0828e0..69ee2e3a8044 100644 --- a/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/DataBoxSkuInformation.Serialization.cs +++ b/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/DataBoxSkuInformation.Serialization.cs @@ -28,6 +28,7 @@ internal static DataBoxSkuInformation DeserializeDataBoxSkuInformation(JsonEleme Optional disabledReason = default; Optional disabledReasonMessage = default; Optional requiredFeature = default; + Optional> countriesWithinCommerceBoundary = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("sku"u8)) @@ -134,11 +135,26 @@ internal static DataBoxSkuInformation DeserializeDataBoxSkuInformation(JsonEleme requiredFeature = property0.Value.GetString(); continue; } + if (property0.NameEquals("countriesWithinCommerceBoundary"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + property0.ThrowNonNullablePropertyIsNull(); + continue; + } + List array = new List(); + foreach (var item in property0.Value.EnumerateArray()) + { + array.Add(item.GetString()); + } + countriesWithinCommerceBoundary = array; + continue; + } } continue; } } - return new DataBoxSkuInformation(sku.Value, Optional.ToNullable(enabled), Optional.ToList(dataLocationToServiceLocationMap), capacity.Value, Optional.ToList(costs), Optional.ToList(apiVersions), Optional.ToNullable(disabledReason), disabledReasonMessage.Value, requiredFeature.Value); + return new DataBoxSkuInformation(sku.Value, Optional.ToNullable(enabled), Optional.ToList(dataLocationToServiceLocationMap), capacity.Value, Optional.ToList(costs), Optional.ToList(apiVersions), Optional.ToNullable(disabledReason), disabledReasonMessage.Value, requiredFeature.Value, Optional.ToList(countriesWithinCommerceBoundary)); } } } diff --git a/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/DataBoxSkuInformation.cs b/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/DataBoxSkuInformation.cs index ea3bdb22abb2..d7e2494f4f30 100644 --- a/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/DataBoxSkuInformation.cs +++ b/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/DataBoxSkuInformation.cs @@ -19,6 +19,7 @@ internal DataBoxSkuInformation() DataLocationToServiceLocationMap = new ChangeTrackingList(); Costs = new ChangeTrackingList(); ApiVersions = new ChangeTrackingList(); + CountriesWithinCommerceBoundary = new ChangeTrackingList(); } /// Initializes a new instance of DataBoxSkuInformation. @@ -31,7 +32,8 @@ internal DataBoxSkuInformation() /// Reason why the Sku is disabled. /// Message for why the Sku is disabled. /// Required feature to access the sku. - internal DataBoxSkuInformation(DataBoxSku sku, bool? isEnabled, IReadOnlyList dataLocationToServiceLocationMap, DataBoxSkuCapacity capacity, IReadOnlyList costs, IReadOnlyList apiVersions, SkuDisabledReason? disabledReason, string disabledReasonMessage, string requiredFeature) + /// List of all the Countries in the SKU specific commerce boundary. + internal DataBoxSkuInformation(DataBoxSku sku, bool? isEnabled, IReadOnlyList dataLocationToServiceLocationMap, DataBoxSkuCapacity capacity, IReadOnlyList costs, IReadOnlyList apiVersions, SkuDisabledReason? disabledReason, string disabledReasonMessage, string requiredFeature, IReadOnlyList countriesWithinCommerceBoundary) { Sku = sku; IsEnabled = isEnabled; @@ -42,6 +44,7 @@ internal DataBoxSkuInformation(DataBoxSku sku, bool? isEnabled, IReadOnlyList The Sku. @@ -62,5 +65,7 @@ internal DataBoxSkuInformation(DataBoxSku sku, bool? isEnabled, IReadOnlyList Required feature to access the sku. public string RequiredFeature { get; } + /// List of all the Countries in the SKU specific commerce boundary. + public IReadOnlyList CountriesWithinCommerceBoundary { get; } } } diff --git a/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/DataBoxValidateAddressContent.cs b/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/DataBoxValidateAddressContent.cs index 51937de4b5fd..83a7ff9462c1 100644 --- a/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/DataBoxValidateAddressContent.cs +++ b/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/DataBoxValidateAddressContent.cs @@ -31,15 +31,6 @@ public DataBoxValidateAddressContent(DataBoxShippingAddress shippingAddress, Dat /// Device type to be used for the job. public DataBoxSkuName DeviceType { get; } /// Preferences related to the shipment logistics of the sku. - internal TransportPreferences TransportPreferences { get; set; } - /// Indicates Shipment Logistics type that the customer preferred. - public TransportShipmentType? TransportPreferencesPreferredShipmentType - { - get => TransportPreferences is null ? default(TransportShipmentType?) : TransportPreferences.PreferredShipmentType; - set - { - TransportPreferences = value.HasValue ? new TransportPreferences(value.Value) : null; - } - } + public TransportPreferences TransportPreferences { get; set; } } } diff --git a/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/GranularCopyLogDetails.Serialization.cs b/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/GranularCopyLogDetails.Serialization.cs new file mode 100644 index 000000000000..f30042a9b3d8 --- /dev/null +++ b/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/GranularCopyLogDetails.Serialization.cs @@ -0,0 +1,30 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; + +namespace Azure.ResourceManager.DataBox.Models +{ + public partial class GranularCopyLogDetails + { + internal static GranularCopyLogDetails DeserializeGranularCopyLogDetails(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + if (element.TryGetProperty("copyLogDetailsType", out JsonElement discriminator)) + { + switch (discriminator.GetString()) + { + case "DataBoxCustomerDisk": return DataBoxDiskGranularCopyLogDetails.DeserializeDataBoxDiskGranularCopyLogDetails(element); + } + } + return UnknownGranularCopyLogDetails.DeserializeUnknownGranularCopyLogDetails(element); + } + } +} diff --git a/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/GranularCopyLogDetails.cs b/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/GranularCopyLogDetails.cs new file mode 100644 index 000000000000..91feb67d2279 --- /dev/null +++ b/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/GranularCopyLogDetails.cs @@ -0,0 +1,32 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.ResourceManager.DataBox.Models +{ + /// + /// Granular Details for log generated during copy. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include . + /// + public abstract partial class GranularCopyLogDetails + { + /// Initializes a new instance of GranularCopyLogDetails. + protected GranularCopyLogDetails() + { + } + + /// Initializes a new instance of GranularCopyLogDetails. + /// Indicates the type of job details. + internal GranularCopyLogDetails(DataBoxOrderType copyLogDetailsType) + { + CopyLogDetailsType = copyLogDetailsType; + } + + /// Indicates the type of job details. + internal DataBoxOrderType CopyLogDetailsType { get; set; } + } +} diff --git a/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/GranularCopyProgress.Serialization.cs b/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/GranularCopyProgress.Serialization.cs index 5d5cf4f5e88c..4622fa365ecd 100644 --- a/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/GranularCopyProgress.Serialization.cs +++ b/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/GranularCopyProgress.Serialization.cs @@ -5,7 +5,9 @@ #nullable disable +using System.Collections.Generic; using System.Text.Json; +using Azure; using Azure.Core; namespace Azure.ResourceManager.DataBox.Models @@ -33,6 +35,8 @@ internal static GranularCopyProgress DeserializeGranularCopyProgress(JsonElement Optional directoriesErroredOut = default; Optional invalidDirectoriesProcessed = default; Optional isEnumerationInProgress = default; + Optional error = default; + Optional> actions = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("storageAccountName"u8)) @@ -180,8 +184,33 @@ internal static GranularCopyProgress DeserializeGranularCopyProgress(JsonElement isEnumerationInProgress = property.Value.GetBoolean(); continue; } + if (property.NameEquals("error"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + error = JsonSerializer.Deserialize(property.Value.GetRawText()); + continue; + } + if (property.NameEquals("actions"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(item.GetString().ToCustomerResolutionCode()); + } + actions = array; + continue; + } } - return new GranularCopyProgress(storageAccountName.Value, Optional.ToNullable(transferType), Optional.ToNullable(dataAccountType), accountId.Value, Optional.ToNullable(bytesProcessed), Optional.ToNullable(totalBytesToProcess), Optional.ToNullable(filesProcessed), Optional.ToNullable(totalFilesToProcess), Optional.ToNullable(invalidFilesProcessed), Optional.ToNullable(invalidFileBytesUploaded), Optional.ToNullable(renamedContainerCount), Optional.ToNullable(filesErroredOut), Optional.ToNullable(directoriesErroredOut), Optional.ToNullable(invalidDirectoriesProcessed), Optional.ToNullable(isEnumerationInProgress)); + return new GranularCopyProgress(storageAccountName.Value, Optional.ToNullable(transferType), Optional.ToNullable(dataAccountType), accountId.Value, Optional.ToNullable(bytesProcessed), Optional.ToNullable(totalBytesToProcess), Optional.ToNullable(filesProcessed), Optional.ToNullable(totalFilesToProcess), Optional.ToNullable(invalidFilesProcessed), Optional.ToNullable(invalidFileBytesUploaded), Optional.ToNullable(renamedContainerCount), Optional.ToNullable(filesErroredOut), Optional.ToNullable(directoriesErroredOut), Optional.ToNullable(invalidDirectoriesProcessed), Optional.ToNullable(isEnumerationInProgress), error.Value, Optional.ToList(actions)); } } } diff --git a/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/GranularCopyProgress.cs b/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/GranularCopyProgress.cs index bfa3072d96bc..7496c9679e71 100644 --- a/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/GranularCopyProgress.cs +++ b/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/GranularCopyProgress.cs @@ -5,6 +5,8 @@ #nullable disable +using System.Collections.Generic; +using Azure; using Azure.Core; namespace Azure.ResourceManager.DataBox.Models @@ -15,6 +17,7 @@ public partial class GranularCopyProgress /// Initializes a new instance of GranularCopyProgress. internal GranularCopyProgress() { + Actions = new ChangeTrackingList(); } /// Initializes a new instance of GranularCopyProgress. @@ -36,7 +39,9 @@ internal GranularCopyProgress() /// To indicate if enumeration of data is in progress. /// Until this is true, the TotalBytesToProcess may not be valid. /// - internal GranularCopyProgress(string storageAccountName, DataBoxJobTransferType? transferType, DataAccountType? dataAccountType, ResourceIdentifier accountId, long? bytesProcessed, long? totalBytesToProcess, long? filesProcessed, long? totalFilesToProcess, long? invalidFilesProcessed, long? invalidFileBytesUploaded, long? renamedContainerCount, long? filesErroredOut, long? directoriesErroredOut, long? invalidDirectoriesProcessed, bool? isEnumerationInProgress) + /// Error, if any, in the stage. + /// Available actions on the job. + internal GranularCopyProgress(string storageAccountName, DataBoxJobTransferType? transferType, DataAccountType? dataAccountType, ResourceIdentifier accountId, long? bytesProcessed, long? totalBytesToProcess, long? filesProcessed, long? totalFilesToProcess, long? invalidFilesProcessed, long? invalidFileBytesUploaded, long? renamedContainerCount, long? filesErroredOut, long? directoriesErroredOut, long? invalidDirectoriesProcessed, bool? isEnumerationInProgress, ResponseError error, IReadOnlyList actions) { StorageAccountName = storageAccountName; TransferType = transferType; @@ -53,6 +58,8 @@ internal GranularCopyProgress(string storageAccountName, DataBoxJobTransferType? DirectoriesErroredOut = directoriesErroredOut; InvalidDirectoriesProcessed = invalidDirectoriesProcessed; IsEnumerationInProgress = isEnumerationInProgress; + Error = error; + Actions = actions; } /// Name of the storage account. This will be empty for data account types other than storage account. @@ -88,5 +95,9 @@ internal GranularCopyProgress(string storageAccountName, DataBoxJobTransferType? /// Until this is true, the TotalBytesToProcess may not be valid. /// public bool? IsEnumerationInProgress { get; } + /// Error, if any, in the stage. + public ResponseError Error { get; } + /// Available actions on the job. + public IReadOnlyList Actions { get; } } } diff --git a/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/MitigateJobContent.Serialization.cs b/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/MitigateJobContent.Serialization.cs index 5ca3cffa0083..aeee57cb1083 100644 --- a/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/MitigateJobContent.Serialization.cs +++ b/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/MitigateJobContent.Serialization.cs @@ -15,8 +15,22 @@ public partial class MitigateJobContent : IUtf8JsonSerializable void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { writer.WriteStartObject(); - writer.WritePropertyName("customerResolutionCode"u8); - writer.WriteStringValue(CustomerResolutionCode.ToSerialString()); + if (Optional.IsDefined(CustomerResolutionCode)) + { + writer.WritePropertyName("customerResolutionCode"u8); + writer.WriteStringValue(CustomerResolutionCode.Value.ToSerialString()); + } + if (Optional.IsCollectionDefined(SerialNumberCustomerResolutionMap)) + { + writer.WritePropertyName("serialNumberCustomerResolutionMap"u8); + writer.WriteStartObject(); + foreach (var item in SerialNumberCustomerResolutionMap) + { + writer.WritePropertyName(item.Key); + writer.WriteStringValue(item.Value.ToSerialString()); + } + writer.WriteEndObject(); + } writer.WriteEndObject(); } } diff --git a/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/MitigateJobContent.cs b/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/MitigateJobContent.cs index b532e48464a9..e3765d35f683 100644 --- a/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/MitigateJobContent.cs +++ b/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/MitigateJobContent.cs @@ -5,19 +5,23 @@ #nullable disable +using System.Collections.Generic; +using Azure.Core; + namespace Azure.ResourceManager.DataBox.Models { /// The Mitigate Job captured from request body for Mitigate API. public partial class MitigateJobContent { /// Initializes a new instance of MitigateJobContent. - /// Resolution code for the job. - public MitigateJobContent(CustomerResolutionCode customerResolutionCode) + public MitigateJobContent() { - CustomerResolutionCode = customerResolutionCode; + SerialNumberCustomerResolutionMap = new ChangeTrackingDictionary(); } /// Resolution code for the job. - public CustomerResolutionCode CustomerResolutionCode { get; } + public CustomerResolutionCode? CustomerResolutionCode { get; set; } + /// Serial number and the customer resolution code corresponding to each serial number. + public IDictionary SerialNumberCustomerResolutionMap { get; } } } diff --git a/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/ReverseShippingDetails.Serialization.cs b/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/ReverseShippingDetails.Serialization.cs new file mode 100644 index 000000000000..0f15bea44aae --- /dev/null +++ b/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/ReverseShippingDetails.Serialization.cs @@ -0,0 +1,76 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.DataBox.Models +{ + public partial class ReverseShippingDetails : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsDefined(ContactDetails)) + { + writer.WritePropertyName("contactDetails"u8); + writer.WriteObjectValue(ContactDetails); + } + if (Optional.IsDefined(ShippingAddress)) + { + writer.WritePropertyName("shippingAddress"u8); + writer.WriteObjectValue(ShippingAddress); + } + writer.WriteEndObject(); + } + + internal static ReverseShippingDetails DeserializeReverseShippingDetails(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + Optional contactDetails = default; + Optional shippingAddress = default; + Optional isUpdated = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("contactDetails"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + contactDetails = ContactInfo.DeserializeContactInfo(property.Value); + continue; + } + if (property.NameEquals("shippingAddress"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + shippingAddress = DataBoxShippingAddress.DeserializeDataBoxShippingAddress(property.Value); + continue; + } + if (property.NameEquals("isUpdated"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + isUpdated = property.Value.GetBoolean(); + continue; + } + } + return new ReverseShippingDetails(contactDetails.Value, shippingAddress.Value, Optional.ToNullable(isUpdated)); + } + } +} diff --git a/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/ReverseShippingDetails.cs b/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/ReverseShippingDetails.cs new file mode 100644 index 000000000000..6432e59432b7 --- /dev/null +++ b/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/ReverseShippingDetails.cs @@ -0,0 +1,42 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.ResourceManager.DataBox.Models +{ + /// Reverse Shipping Address and contact details for a job. + public partial class ReverseShippingDetails + { + /// Initializes a new instance of ReverseShippingDetails. + public ReverseShippingDetails() + { + } + + /// Initializes a new instance of ReverseShippingDetails. + /// Contact Info. + /// Shipping address where customer wishes to receive the device. + /// + /// A flag to indicate whether Reverse Shipping details are updated or not after device has been prepared. + /// Read only field + /// + internal ReverseShippingDetails(ContactInfo contactDetails, DataBoxShippingAddress shippingAddress, bool? isUpdated) + { + ContactDetails = contactDetails; + ShippingAddress = shippingAddress; + IsUpdated = isUpdated; + } + + /// Contact Info. + public ContactInfo ContactDetails { get; set; } + /// Shipping address where customer wishes to receive the device. + public DataBoxShippingAddress ShippingAddress { get; set; } + /// + /// A flag to indicate whether Reverse Shipping details are updated or not after device has been prepared. + /// Read only field + /// + public bool? IsUpdated { get; } + } +} diff --git a/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/ReverseShippingDetailsEditStatus.Serialization.cs b/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/ReverseShippingDetailsEditStatus.Serialization.cs new file mode 100644 index 000000000000..ca88a957ab39 --- /dev/null +++ b/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/ReverseShippingDetailsEditStatus.Serialization.cs @@ -0,0 +1,30 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; + +namespace Azure.ResourceManager.DataBox.Models +{ + internal static partial class ReverseShippingDetailsEditStatusExtensions + { + public static string ToSerialString(this ReverseShippingDetailsEditStatus value) => value switch + { + ReverseShippingDetailsEditStatus.Enabled => "Enabled", + ReverseShippingDetailsEditStatus.Disabled => "Disabled", + ReverseShippingDetailsEditStatus.NotSupported => "NotSupported", + _ => throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown ReverseShippingDetailsEditStatus value.") + }; + + public static ReverseShippingDetailsEditStatus ToReverseShippingDetailsEditStatus(this string value) + { + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Enabled")) return ReverseShippingDetailsEditStatus.Enabled; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Disabled")) return ReverseShippingDetailsEditStatus.Disabled; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "NotSupported")) return ReverseShippingDetailsEditStatus.NotSupported; + throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown ReverseShippingDetailsEditStatus value."); + } + } +} diff --git a/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/ReverseShippingDetailsEditStatus.cs b/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/ReverseShippingDetailsEditStatus.cs new file mode 100644 index 000000000000..14e46d0ca413 --- /dev/null +++ b/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/ReverseShippingDetailsEditStatus.cs @@ -0,0 +1,20 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.ResourceManager.DataBox.Models +{ + /// The Editable status for Reverse Shipping Address and Contact Info. + public enum ReverseShippingDetailsEditStatus + { + /// Reverse shipping details can be edited. + Enabled, + /// Edit is disabled for Reverse shipping details. + Disabled, + /// Edit is not supported for Reverse shipping details. Either subscription feature is not available or SKU doesn't support this feature. + NotSupported + } +} diff --git a/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/ReverseTransportPreferenceEditStatus.Serialization.cs b/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/ReverseTransportPreferenceEditStatus.Serialization.cs new file mode 100644 index 000000000000..111eef9202d2 --- /dev/null +++ b/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/ReverseTransportPreferenceEditStatus.Serialization.cs @@ -0,0 +1,30 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; + +namespace Azure.ResourceManager.DataBox.Models +{ + internal static partial class ReverseTransportPreferenceEditStatusExtensions + { + public static string ToSerialString(this ReverseTransportPreferenceEditStatus value) => value switch + { + ReverseTransportPreferenceEditStatus.Enabled => "Enabled", + ReverseTransportPreferenceEditStatus.Disabled => "Disabled", + ReverseTransportPreferenceEditStatus.NotSupported => "NotSupported", + _ => throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown ReverseTransportPreferenceEditStatus value.") + }; + + public static ReverseTransportPreferenceEditStatus ToReverseTransportPreferenceEditStatus(this string value) + { + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Enabled")) return ReverseTransportPreferenceEditStatus.Enabled; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Disabled")) return ReverseTransportPreferenceEditStatus.Disabled; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "NotSupported")) return ReverseTransportPreferenceEditStatus.NotSupported; + throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown ReverseTransportPreferenceEditStatus value."); + } + } +} diff --git a/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/ReverseTransportPreferenceEditStatus.cs b/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/ReverseTransportPreferenceEditStatus.cs new file mode 100644 index 000000000000..140fd7fd5018 --- /dev/null +++ b/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/ReverseTransportPreferenceEditStatus.cs @@ -0,0 +1,20 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.ResourceManager.DataBox.Models +{ + /// The Editable status for Reverse Transport preferences. + public enum ReverseTransportPreferenceEditStatus + { + /// Reverse Transport Preferences can be edited. + Enabled, + /// Edit is disabled for Reverse Transport Preferences. + Disabled, + /// Edit is not supported for Reverse Transport Preferences. Either subscription feature is not available or SKU doesn't support this feature. + NotSupported + } +} diff --git a/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/TransportPreferences.Serialization.cs b/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/TransportPreferences.Serialization.cs index bae63790edb3..304ae2ea1727 100644 --- a/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/TransportPreferences.Serialization.cs +++ b/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/TransportPreferences.Serialization.cs @@ -10,7 +10,7 @@ namespace Azure.ResourceManager.DataBox.Models { - internal partial class TransportPreferences : IUtf8JsonSerializable + public partial class TransportPreferences : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -27,6 +27,7 @@ internal static TransportPreferences DeserializeTransportPreferences(JsonElement return null; } TransportShipmentType preferredShipmentType = default; + Optional isUpdated = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("preferredShipmentType"u8)) @@ -34,8 +35,18 @@ internal static TransportPreferences DeserializeTransportPreferences(JsonElement preferredShipmentType = property.Value.GetString().ToTransportShipmentType(); continue; } + if (property.NameEquals("isUpdated"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + isUpdated = property.Value.GetBoolean(); + continue; + } } - return new TransportPreferences(preferredShipmentType); + return new TransportPreferences(preferredShipmentType, Optional.ToNullable(isUpdated)); } } } diff --git a/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/TransportPreferences.cs b/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/TransportPreferences.cs index 04c2a5b98b9b..e73c3d03e496 100644 --- a/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/TransportPreferences.cs +++ b/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/TransportPreferences.cs @@ -8,7 +8,7 @@ namespace Azure.ResourceManager.DataBox.Models { /// Preferences related to the shipment logistics of the sku. - internal partial class TransportPreferences + public partial class TransportPreferences { /// Initializes a new instance of TransportPreferences. /// Indicates Shipment Logistics type that the customer preferred. @@ -17,7 +17,18 @@ public TransportPreferences(TransportShipmentType preferredShipmentType) PreferredShipmentType = preferredShipmentType; } + /// Initializes a new instance of TransportPreferences. + /// Indicates Shipment Logistics type that the customer preferred. + /// Read only property which indicates whether transport preferences has been updated or not after device is prepared. + internal TransportPreferences(TransportShipmentType preferredShipmentType, bool? isUpdated) + { + PreferredShipmentType = preferredShipmentType; + IsUpdated = isUpdated; + } + /// Indicates Shipment Logistics type that the customer preferred. public TransportShipmentType PreferredShipmentType { get; set; } + /// Read only property which indicates whether transport preferences has been updated or not after device is prepared. + public bool? IsUpdated { get; } } } diff --git a/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/UnknownGranularCopyLogDetails.Serialization.cs b/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/UnknownGranularCopyLogDetails.Serialization.cs new file mode 100644 index 000000000000..1279898df94b --- /dev/null +++ b/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/UnknownGranularCopyLogDetails.Serialization.cs @@ -0,0 +1,33 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.DataBox.Models +{ + internal partial class UnknownGranularCopyLogDetails + { + internal static UnknownGranularCopyLogDetails DeserializeUnknownGranularCopyLogDetails(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + DataBoxOrderType copyLogDetailsType = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("copyLogDetailsType"u8)) + { + copyLogDetailsType = property.Value.GetString().ToDataBoxOrderType(); + continue; + } + } + return new UnknownGranularCopyLogDetails(copyLogDetailsType); + } + } +} diff --git a/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/UnknownGranularCopyLogDetails.cs b/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/UnknownGranularCopyLogDetails.cs new file mode 100644 index 000000000000..8d1058ec86e3 --- /dev/null +++ b/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/UnknownGranularCopyLogDetails.cs @@ -0,0 +1,20 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.ResourceManager.DataBox.Models +{ + /// The UnknownGranularCopyLogDetails. + internal partial class UnknownGranularCopyLogDetails : GranularCopyLogDetails + { + /// Initializes a new instance of UnknownGranularCopyLogDetails. + /// Indicates the type of job details. + internal UnknownGranularCopyLogDetails(DataBoxOrderType copyLogDetailsType) : base(copyLogDetailsType) + { + CopyLogDetailsType = copyLogDetailsType; + } + } +} diff --git a/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/UnknownJobDetails.Serialization.cs b/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/UnknownJobDetails.Serialization.cs index 7918fa4960d4..b99b5a37aacb 100644 --- a/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/UnknownJobDetails.Serialization.cs +++ b/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/UnknownJobDetails.Serialization.cs @@ -50,6 +50,11 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("preferences"u8); writer.WriteObjectValue(Preferences); } + if (Optional.IsDefined(ReverseShippingDetails)) + { + writer.WritePropertyName("reverseShippingDetails"u8); + writer.WriteObjectValue(ReverseShippingDetails); + } if (Optional.IsDefined(KeyEncryptionKey)) { writer.WritePropertyName("keyEncryptionKey"u8); @@ -78,6 +83,7 @@ internal static UnknownJobDetails DeserializeUnknownJobDetails(JsonElement eleme Optional> dataExportDetails = default; DataBoxOrderType jobDetailsType = default; Optional preferences = default; + Optional reverseShippingDetails = default; Optional> copyLogDetails = default; Optional reverseShipmentLabelSasKey = default; Optional chainOfCustodySasKey = default; @@ -185,6 +191,16 @@ internal static UnknownJobDetails DeserializeUnknownJobDetails(JsonElement eleme preferences = DataBoxOrderPreferences.DeserializeDataBoxOrderPreferences(property.Value); continue; } + if (property.NameEquals("reverseShippingDetails"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + reverseShippingDetails = ReverseShippingDetails.DeserializeReverseShippingDetails(property.Value); + continue; + } if (property.NameEquals("copyLogDetails"u8)) { if (property.Value.ValueKind == JsonValueKind.Null) @@ -286,7 +302,7 @@ internal static UnknownJobDetails DeserializeUnknownJobDetails(JsonElement eleme continue; } } - return new UnknownJobDetails(Optional.ToList(jobStages), contactDetails, shippingAddress.Value, deliveryPackage.Value, returnPackage.Value, Optional.ToList(dataImportDetails), Optional.ToList(dataExportDetails), jobDetailsType, preferences.Value, Optional.ToList(copyLogDetails), reverseShipmentLabelSasKey.Value, chainOfCustodySasKey.Value, deviceErasureDetails.Value, keyEncryptionKey.Value, Optional.ToNullable(expectedDataSizeInTerabytes), Optional.ToList(actions), lastMitigationActionOnJob.Value, dataCenterAddress.Value, Optional.ToNullable(dataCenterCode)); + return new UnknownJobDetails(Optional.ToList(jobStages), contactDetails, shippingAddress.Value, deliveryPackage.Value, returnPackage.Value, Optional.ToList(dataImportDetails), Optional.ToList(dataExportDetails), jobDetailsType, preferences.Value, reverseShippingDetails.Value, Optional.ToList(copyLogDetails), reverseShipmentLabelSasKey.Value, chainOfCustodySasKey.Value, deviceErasureDetails.Value, keyEncryptionKey.Value, Optional.ToNullable(expectedDataSizeInTerabytes), Optional.ToList(actions), lastMitigationActionOnJob.Value, dataCenterAddress.Value, Optional.ToNullable(dataCenterCode)); } } } diff --git a/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/UnknownJobDetails.cs b/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/UnknownJobDetails.cs index 3e9281ee0392..549e1e8380db 100644 --- a/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/UnknownJobDetails.cs +++ b/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/UnknownJobDetails.cs @@ -22,6 +22,7 @@ internal partial class UnknownJobDetails : DataBoxBasicJobDetails /// Details of the data to be exported from azure. /// Indicates the type of job details. /// Preferences for the order. + /// Optional Reverse Shipping details for order. /// /// List of copy log details. /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. @@ -40,7 +41,7 @@ internal partial class UnknownJobDetails : DataBoxBasicJobDetails /// The available derived classes include and . /// /// DataCenter code. - internal UnknownJobDetails(IReadOnlyList jobStages, DataBoxContactDetails contactDetails, DataBoxShippingAddress shippingAddress, PackageShippingDetails deliveryPackage, PackageShippingDetails returnPackage, IList dataImportDetails, IList dataExportDetails, DataBoxOrderType jobDetailsType, DataBoxOrderPreferences preferences, IReadOnlyList copyLogDetails, string reverseShipmentLabelSasKey, string chainOfCustodySasKey, DeviceErasureDetails deviceErasureDetails, DataBoxKeyEncryptionKey keyEncryptionKey, int? expectedDataSizeInTerabytes, IReadOnlyList actions, LastMitigationActionOnJob lastMitigationActionOnJob, DataCenterAddressResult dataCenterAddress, DataCenterCode? dataCenterCode) : base(jobStages, contactDetails, shippingAddress, deliveryPackage, returnPackage, dataImportDetails, dataExportDetails, jobDetailsType, preferences, copyLogDetails, reverseShipmentLabelSasKey, chainOfCustodySasKey, deviceErasureDetails, keyEncryptionKey, expectedDataSizeInTerabytes, actions, lastMitigationActionOnJob, dataCenterAddress, dataCenterCode) + internal UnknownJobDetails(IReadOnlyList jobStages, DataBoxContactDetails contactDetails, DataBoxShippingAddress shippingAddress, PackageShippingDetails deliveryPackage, PackageShippingDetails returnPackage, IList dataImportDetails, IList dataExportDetails, DataBoxOrderType jobDetailsType, DataBoxOrderPreferences preferences, ReverseShippingDetails reverseShippingDetails, IReadOnlyList copyLogDetails, string reverseShipmentLabelSasKey, string chainOfCustodySasKey, DeviceErasureDetails deviceErasureDetails, DataBoxKeyEncryptionKey keyEncryptionKey, int? expectedDataSizeInTerabytes, IReadOnlyList actions, LastMitigationActionOnJob lastMitigationActionOnJob, DataCenterAddressResult dataCenterAddress, DataCenterCode? dataCenterCode) : base(jobStages, contactDetails, shippingAddress, deliveryPackage, returnPackage, dataImportDetails, dataExportDetails, jobDetailsType, preferences, reverseShippingDetails, copyLogDetails, reverseShipmentLabelSasKey, chainOfCustodySasKey, deviceErasureDetails, keyEncryptionKey, expectedDataSizeInTerabytes, actions, lastMitigationActionOnJob, dataCenterAddress, dataCenterCode) { JobDetailsType = jobDetailsType; } diff --git a/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/UpdateJobDetails.Serialization.cs b/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/UpdateJobDetails.Serialization.cs index a6045e484b3f..a9db8643f8d4 100644 --- a/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/UpdateJobDetails.Serialization.cs +++ b/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/UpdateJobDetails.Serialization.cs @@ -25,6 +25,16 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("shippingAddress"u8); writer.WriteObjectValue(ShippingAddress); } + if (Optional.IsDefined(ReverseShippingDetails)) + { + writer.WritePropertyName("reverseShippingDetails"u8); + writer.WriteObjectValue(ReverseShippingDetails); + } + if (Optional.IsDefined(Preferences)) + { + writer.WritePropertyName("preferences"u8); + writer.WriteObjectValue(Preferences); + } if (Optional.IsDefined(KeyEncryptionKey)) { writer.WritePropertyName("keyEncryptionKey"u8); diff --git a/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/UpdateJobDetails.cs b/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/UpdateJobDetails.cs index e15d9d6fe43e..8718515cf897 100644 --- a/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/UpdateJobDetails.cs +++ b/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/UpdateJobDetails.cs @@ -19,6 +19,10 @@ public UpdateJobDetails() public DataBoxContactDetails ContactDetails { get; set; } /// Shipping address of the customer. public DataBoxShippingAddress ShippingAddress { get; set; } + /// Reverse Shipping Address and contact details for a job. + public ReverseShippingDetails ReverseShippingDetails { get; set; } + /// Preferences related to the order. + public DataBoxOrderPreferences Preferences { get; set; } /// Key encryption key for the job. public DataBoxKeyEncryptionKey KeyEncryptionKey { get; set; } /// Return package details of job. diff --git a/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/RestOperations/DataBoxManagementRestOperations.cs b/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/RestOperations/DataBoxManagementRestOperations.cs index 43940478f208..919c5c6e407b 100644 --- a/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/RestOperations/DataBoxManagementRestOperations.cs +++ b/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/RestOperations/DataBoxManagementRestOperations.cs @@ -32,7 +32,7 @@ public DataBoxManagementRestOperations(HttpPipeline pipeline, string application { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-02-01"; + _apiVersion = apiVersion ?? "2022-12-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/RestOperations/JobsRestOperations.cs b/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/RestOperations/JobsRestOperations.cs index 479300459a9f..0d22cc8ab656 100644 --- a/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/RestOperations/JobsRestOperations.cs +++ b/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/RestOperations/JobsRestOperations.cs @@ -33,7 +33,7 @@ public JobsRestOperations(HttpPipeline pipeline, string applicationId, Uri endpo { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-02-01"; + _apiVersion = apiVersion ?? "2022-12-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/RestOperations/ServiceRestOperations.cs b/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/RestOperations/ServiceRestOperations.cs index 175b61a8708c..3eab62e51d18 100644 --- a/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/RestOperations/ServiceRestOperations.cs +++ b/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/RestOperations/ServiceRestOperations.cs @@ -33,7 +33,7 @@ public ServiceRestOperations(HttpPipeline pipeline, string applicationId, Uri en { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-02-01"; + _apiVersion = apiVersion ?? "2022-12-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/databox/Azure.ResourceManager.DataBox/src/autorest.md b/sdk/databox/Azure.ResourceManager.DataBox/src/autorest.md index e000a0956179..cd0f97bf28ed 100644 --- a/sdk/databox/Azure.ResourceManager.DataBox/src/autorest.md +++ b/sdk/databox/Azure.ResourceManager.DataBox/src/autorest.md @@ -9,7 +9,7 @@ generate-model-factory: false csharp: true library-name: DataBox namespace: Azure.ResourceManager.DataBox -require: https://github.com/Azure/azure-rest-api-specs/blob/df70965d3a207eb2a628c96aa6ed935edc6b7911/specification/databox/resource-manager/readme.md +require: /mnt/vss/_work/1/s/azure-rest-api-specs/specification/databox/resource-manager/readme.md output-folder: $(this-folder)/Generated clear-output-folder: true skip-csproj: true