diff --git a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/DataBoxManagementClient.cs b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/DataBoxManagementClient.cs index c679891ccf6e..016e9523c600 100644 --- a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/DataBoxManagementClient.cs +++ b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/DataBoxManagementClient.cs @@ -333,7 +333,7 @@ private void Initialize() Jobs = new JobsOperations(this); Service = new ServiceOperations(this); BaseUri = new System.Uri("https://management.azure.com"); - ApiVersion = "2021-08-01-preview"; + ApiVersion = "2022-02-01"; AcceptLanguage = "en-US"; LongRunningOperationRetryTimeout = 30; GenerateClientRequestId = true; @@ -365,6 +365,8 @@ private void Initialize() }; SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter("copyLogDetailsType")); DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter("copyLogDetailsType")); + SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter("copyLogDetailsType")); + DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter("copyLogDetailsType")); SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter("dataAccountType")); DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter("dataAccountType")); SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter("datacenterAddressType")); @@ -398,7 +400,7 @@ private void Initialize() /// /// /// Resolution code for the job. Possible values include: 'None', - /// 'MoveToCleanUpDevice', 'Resume' + /// 'MoveToCleanUpDevice', 'Resume', 'Restart', 'ReachOutToOperation' /// /// /// Headers that will be added to request. diff --git a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/DataBoxManagementClientExtensions.cs b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/DataBoxManagementClientExtensions.cs index e442b67422d3..b4d2827d497c 100644 --- a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/DataBoxManagementClientExtensions.cs +++ b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/DataBoxManagementClientExtensions.cs @@ -37,7 +37,7 @@ public static partial class DataBoxManagementClientExtensions /// /// /// Resolution code for the job. Possible values include: 'None', - /// 'MoveToCleanUpDevice', 'Resume' + /// 'MoveToCleanUpDevice', 'Resume', 'Restart', 'ReachOutToOperation' /// public static void Mitigate(this IDataBoxManagementClient operations, string jobName, string resourceGroupName, CustomerResolutionCode customerResolutionCode) { @@ -60,7 +60,7 @@ public static void Mitigate(this IDataBoxManagementClient operations, string job /// /// /// Resolution code for the job. Possible values include: 'None', - /// 'MoveToCleanUpDevice', 'Resume' + /// 'MoveToCleanUpDevice', 'Resume', 'Restart', 'ReachOutToOperation' /// /// /// The cancellation token. diff --git a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/IDataBoxManagementClient.cs b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/IDataBoxManagementClient.cs index e6f29f60acc4..f28388410df3 100644 --- a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/IDataBoxManagementClient.cs +++ b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/IDataBoxManagementClient.cs @@ -100,7 +100,7 @@ public partial interface IDataBoxManagementClient : System.IDisposable /// /// /// Resolution code for the job. Possible values include: 'None', - /// 'MoveToCleanUpDevice', 'Resume' + /// 'MoveToCleanUpDevice', 'Resume', 'Restart', 'ReachOutToOperation' /// /// /// The headers that will be added to request. diff --git a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/AdditionalErrorInfo.cs b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/AdditionalErrorInfo.cs index d964ab46532b..e7f63f458815 100644 --- a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/AdditionalErrorInfo.cs +++ b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/AdditionalErrorInfo.cs @@ -14,7 +14,8 @@ namespace Microsoft.Azure.Management.DataBox.Models using System.Linq; /// - /// Additional error info. + /// This class represents additional info which Resource Providers pass + /// when an error occurs. /// public partial class AdditionalErrorInfo { @@ -29,12 +30,14 @@ public AdditionalErrorInfo() /// /// Initializes a new instance of the AdditionalErrorInfo class. /// - /// Additional error type. - /// Additional error info. - public AdditionalErrorInfo(string type = default(string), object info = default(object)) + /// Additional information of the type of + /// error. + /// Type of error (e.g. CustomerIntervention, + /// PolicyViolation, SecurityViolation). + public AdditionalErrorInfo(object info = default(object), string type = default(string)) { - Type = type; Info = info; + Type = type; CustomInit(); } @@ -44,16 +47,17 @@ public AdditionalErrorInfo() partial void CustomInit(); /// - /// Gets or sets additional error type. + /// Gets or sets additional information of the type of error. /// - [JsonProperty(PropertyName = "type")] - public string Type { get; set; } + [JsonProperty(PropertyName = "info")] + public object Info { get; set; } /// - /// Gets or sets additional error info. + /// Gets or sets type of error (e.g. CustomerIntervention, + /// PolicyViolation, SecurityViolation). /// - [JsonProperty(PropertyName = "info")] - public object Info { get; set; } + [JsonProperty(PropertyName = "type")] + public string Type { get; set; } } } diff --git a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/AddressValidationOutput.cs b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/AddressValidationOutput.cs index 2d235e55e335..c90a18b47c7f 100644 --- a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/AddressValidationOutput.cs +++ b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/AddressValidationOutput.cs @@ -11,7 +11,6 @@ namespace Microsoft.Azure.Management.DataBox.Models { using Microsoft.Rest; - using Microsoft.Rest.Azure; using Microsoft.Rest.Serialization; using Newtonsoft.Json; using System.Collections; diff --git a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/AddressValidationProperties.cs b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/AddressValidationProperties.cs deleted file mode 100644 index bf8333d8a30d..000000000000 --- a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/AddressValidationProperties.cs +++ /dev/null @@ -1,71 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.DataBox.Models -{ - using Microsoft.Rest.Azure; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// The address validation output. - /// - [Newtonsoft.Json.JsonObject("ValidateAddress")] - public partial class AddressValidationProperties : ValidationInputResponse - { - /// - /// Initializes a new instance of the AddressValidationProperties - /// class. - /// - public AddressValidationProperties() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the AddressValidationProperties - /// class. - /// - /// Error code and message of validation - /// response. - /// The address validation status. - /// Possible values include: 'Valid', 'Invalid', 'Ambiguous' - /// List of alternate - /// addresses. - public AddressValidationProperties(CloudError error = default(CloudError), AddressValidationStatus? validationStatus = default(AddressValidationStatus?), IList alternateAddresses = default(IList)) - : base(error) - { - ValidationStatus = validationStatus; - AlternateAddresses = alternateAddresses; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets the address validation status. Possible values include: - /// 'Valid', 'Invalid', 'Ambiguous' - /// - [JsonProperty(PropertyName = "validationStatus")] - public AddressValidationStatus? ValidationStatus { get; private set; } - - /// - /// Gets list of alternate addresses. - /// - [JsonProperty(PropertyName = "alternateAddresses")] - public IList AlternateAddresses { get; private set; } - - } -} \ No newline at end of file diff --git a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/ClassDiscriminator.cs b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/ClassDiscriminator.cs deleted file mode 100644 index d6fc5e64fc48..000000000000 --- a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/ClassDiscriminator.cs +++ /dev/null @@ -1,84 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.DataBox.Models -{ - using Newtonsoft.Json; - using Newtonsoft.Json.Converters; - using System.Runtime; - using System.Runtime.Serialization; - - /// - /// Defines values for ClassDiscriminator. - /// - [JsonConverter(typeof(StringEnumConverter))] - public enum ClassDiscriminator - { - /// - /// Data Box orders. - /// - [EnumMember(Value = "DataBox")] - DataBox, - /// - /// Data Box Disk orders. - /// - [EnumMember(Value = "DataBoxDisk")] - DataBoxDisk, - /// - /// Data Box Heavy orders. - /// - [EnumMember(Value = "DataBoxHeavy")] - DataBoxHeavy, - /// - /// Data Box Customer Disk orders. - /// - [EnumMember(Value = "DataBoxCustomerDisk")] - DataBoxCustomerDisk - } - internal static class ClassDiscriminatorEnumExtension - { - internal static string ToSerializedValue(this ClassDiscriminator? value) - { - return value == null ? null : ((ClassDiscriminator)value).ToSerializedValue(); - } - - internal static string ToSerializedValue(this ClassDiscriminator value) - { - switch( value ) - { - case ClassDiscriminator.DataBox: - return "DataBox"; - case ClassDiscriminator.DataBoxDisk: - return "DataBoxDisk"; - case ClassDiscriminator.DataBoxHeavy: - return "DataBoxHeavy"; - case ClassDiscriminator.DataBoxCustomerDisk: - return "DataBoxCustomerDisk"; - } - return null; - } - - internal static ClassDiscriminator? ParseClassDiscriminator(this string value) - { - switch( value ) - { - case "DataBox": - return ClassDiscriminator.DataBox; - case "DataBoxDisk": - return ClassDiscriminator.DataBoxDisk; - case "DataBoxHeavy": - return ClassDiscriminator.DataBoxHeavy; - case "DataBoxCustomerDisk": - return ClassDiscriminator.DataBoxCustomerDisk; - } - return null; - } - } -} diff --git a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/CloudError.cs b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/CloudError.cs new file mode 100644 index 000000000000..01e8a13872e8 --- /dev/null +++ b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/CloudError.cs @@ -0,0 +1,88 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.DataBox.Models +{ + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// Provides additional information about an http error response. + /// + public partial class CloudError + { + /// + /// Initializes a new instance of the CloudError class. + /// + public CloudError() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the CloudError class. + /// + /// Gets or sets additional error + /// info. + /// Error code. + /// Gets or sets details for the error. + /// The error message parsed from the body of the + /// http error response. + /// Gets or sets the target of the error. + public CloudError(IList additionalInfo = default(IList), string code = default(string), IList details = default(IList), string message = default(string), string target = default(string)) + { + AdditionalInfo = additionalInfo; + Code = code; + Details = details; + Message = message; + Target = target; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets additional error info. + /// + [JsonProperty(PropertyName = "additionalInfo")] + public IList AdditionalInfo { get; private set; } + + /// + /// Gets or sets error code. + /// + [JsonProperty(PropertyName = "code")] + public string Code { get; set; } + + /// + /// Gets or sets details for the error. + /// + [JsonProperty(PropertyName = "details")] + public IList Details { get; private set; } + + /// + /// Gets or sets the error message parsed from the body of the http + /// error response. + /// + [JsonProperty(PropertyName = "message")] + public string Message { get; set; } + + /// + /// Gets or sets the target of the error. + /// + [JsonProperty(PropertyName = "target")] + public string Target { get; set; } + + } +} diff --git a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/CopyLogDetails.cs b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/CopyLogDetails.cs index 35fdb61cfb94..7740e3605483 100644 --- a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/CopyLogDetails.cs +++ b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/CopyLogDetails.cs @@ -10,13 +10,11 @@ namespace Microsoft.Azure.Management.DataBox.Models { - using Newtonsoft.Json; using System.Linq; /// /// Details for log generated during copy. /// - [Newtonsoft.Json.JsonObject("CopyLogDetails")] public partial class CopyLogDetails { /// diff --git a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/CopyStatus.cs b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/CopyStatus.cs index 7e1a927581bd..683774067ff0 100644 --- a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/CopyStatus.cs +++ b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/CopyStatus.cs @@ -85,7 +85,7 @@ public static class CopyStatus /// public const string DriveCorrupted = "DriveCorrupted"; /// - /// Copy failed due to modified or removed metadata files. + /// Copy failed due to modified or removed metadata files. /// public const string MetadataFilesModifiedOrRemoved = "MetadataFilesModifiedOrRemoved"; } diff --git a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/CreateOrderLimitForSubscriptionValidationResponseProperties.cs b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/CreateOrderLimitForSubscriptionValidationResponseProperties.cs index ebf921436c6b..09a8091a2d1b 100644 --- a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/CreateOrderLimitForSubscriptionValidationResponseProperties.cs +++ b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/CreateOrderLimitForSubscriptionValidationResponseProperties.cs @@ -10,7 +10,6 @@ namespace Microsoft.Azure.Management.DataBox.Models { - using Microsoft.Rest.Azure; using Newtonsoft.Json; using System.Linq; diff --git a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/CustomerDiskJobSecrets.cs b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/CustomerDiskJobSecrets.cs index f358a0cd623b..bd8cba6c1fcd 100644 --- a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/CustomerDiskJobSecrets.cs +++ b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/CustomerDiskJobSecrets.cs @@ -10,7 +10,6 @@ namespace Microsoft.Azure.Management.DataBox.Models { - using Microsoft.Rest.Azure; using Newtonsoft.Json; using System.Collections; using System.Collections.Generic; diff --git a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/CustomerResolutionCode.cs b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/CustomerResolutionCode.cs index 33fc02948aec..6a86e5fe4ebb 100644 --- a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/CustomerResolutionCode.cs +++ b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/CustomerResolutionCode.cs @@ -35,7 +35,17 @@ public enum CustomerResolutionCode /// Resume the job to same stage /// [EnumMember(Value = "Resume")] - Resume + Resume, + /// + /// Restart whole action. + /// + [EnumMember(Value = "Restart")] + Restart, + /// + /// Reach out to operation for further action. + /// + [EnumMember(Value = "ReachOutToOperation")] + ReachOutToOperation } internal static class CustomerResolutionCodeEnumExtension { @@ -54,6 +64,10 @@ internal static string ToSerializedValue(this CustomerResolutionCode value) return "MoveToCleanUpDevice"; case CustomerResolutionCode.Resume: return "Resume"; + case CustomerResolutionCode.Restart: + return "Restart"; + case CustomerResolutionCode.ReachOutToOperation: + return "ReachOutToOperation"; } return null; } @@ -68,6 +82,10 @@ internal static string ToSerializedValue(this CustomerResolutionCode value) return CustomerResolutionCode.MoveToCleanUpDevice; case "Resume": return CustomerResolutionCode.Resume; + case "Restart": + return CustomerResolutionCode.Restart; + case "ReachOutToOperation": + return CustomerResolutionCode.ReachOutToOperation; } return null; } diff --git a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/DataAccountDetails.cs b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/DataAccountDetails.cs index 8006c2f5961c..f9f0018e2cd5 100644 --- a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/DataAccountDetails.cs +++ b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/DataAccountDetails.cs @@ -16,7 +16,6 @@ namespace Microsoft.Azure.Management.DataBox.Models /// /// Account details of the data to be transferred /// - [Newtonsoft.Json.JsonObject("DataAccountDetails")] public partial class DataAccountDetails { /// diff --git a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/DataBoxCustomerDiskJobDetails.cs b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/DataBoxCustomerDiskJobDetails.cs index 836fa555983d..87a42aa7b75e 100644 --- a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/DataBoxCustomerDiskJobDetails.cs +++ b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/DataBoxCustomerDiskJobDetails.cs @@ -56,6 +56,8 @@ public DataBoxCustomerDiskJobDetails() /// download the return shipment label /// Shared access key to download /// the chain of custody logs + /// Holds device data erasure + /// details /// Details about which key encryption /// type is being used. /// The expected size of the @@ -73,7 +75,9 @@ public DataBoxCustomerDiskJobDetails() /// 'TYO01', 'BN1', 'SN5', 'CYS04', 'TYO22', 'YTO21', 'YQB20', 'FRA22', /// 'MAA01', 'CPQ02', 'CPQ20', 'SIN20', 'HKG20', 'SG2', 'MEL23', /// 'SEL21', 'OSA20', 'SHA03', 'BJB', 'JNB22', 'JNB21', 'MNZ21', 'SN8', - /// 'AUH20', 'ZRH20', 'PUS20', 'AdHoc', 'CH1', 'DSM05' + /// 'AUH20', 'ZRH20', 'PUS20', 'AdHoc', 'CH1', 'DSM05', 'DUB07', + /// 'PNQ01', 'SVG20', 'OSA02', 'OSA22', 'PAR22', 'BN7', 'SN6', + /// 'BJS20' /// Contains the map of disk /// serial number to the disk details for import jobs. /// Contains the map of disk @@ -83,8 +87,8 @@ public DataBoxCustomerDiskJobDetails() /// details. /// Flag to indicate if disk /// manifest should be backed-up in the Storage Account. - public DataBoxCustomerDiskJobDetails(ContactDetails contactDetails, PackageCarrierDetails returnToCustomerPackageDetails, IList jobStages = default(IList), ShippingAddress shippingAddress = default(ShippingAddress), PackageShippingDetails deliveryPackage = default(PackageShippingDetails), PackageShippingDetails returnPackage = default(PackageShippingDetails), IList dataImportDetails = default(IList), IList dataExportDetails = default(IList), Preferences preferences = default(Preferences), IList copyLogDetails = default(IList), string reverseShipmentLabelSasKey = default(string), string chainOfCustodySasKey = default(string), KeyEncryptionKey keyEncryptionKey = default(KeyEncryptionKey), int? expectedDataSizeInTeraBytes = default(int?), IList actions = default(IList), LastMitigationActionOnJob lastMitigationActionOnJob = default(LastMitigationActionOnJob), DatacenterAddressResponse datacenterAddress = default(DatacenterAddressResponse), string dataCenterCode = default(string), IDictionary importDiskDetailsCollection = default(IDictionary), IDictionary exportDiskDetailsCollection = default(IDictionary), IList copyProgress = default(IList), PackageCarrierInfo deliverToDcPackageDetails = default(PackageCarrierInfo), bool? enableManifestBackup = default(bool?)) - : base(contactDetails, jobStages, shippingAddress, deliveryPackage, returnPackage, dataImportDetails, dataExportDetails, preferences, copyLogDetails, reverseShipmentLabelSasKey, chainOfCustodySasKey, keyEncryptionKey, expectedDataSizeInTeraBytes, actions, lastMitigationActionOnJob, datacenterAddress, dataCenterCode) + public DataBoxCustomerDiskJobDetails(ContactDetails contactDetails, PackageCarrierDetails returnToCustomerPackageDetails, IList jobStages = default(IList), ShippingAddress shippingAddress = default(ShippingAddress), PackageShippingDetails deliveryPackage = default(PackageShippingDetails), PackageShippingDetails returnPackage = default(PackageShippingDetails), IList dataImportDetails = default(IList), IList dataExportDetails = default(IList), Preferences preferences = default(Preferences), IList copyLogDetails = default(IList), string reverseShipmentLabelSasKey = default(string), string chainOfCustodySasKey = default(string), DeviceErasureDetails deviceErasureDetails = default(DeviceErasureDetails), KeyEncryptionKey keyEncryptionKey = default(KeyEncryptionKey), int? expectedDataSizeInTeraBytes = default(int?), IList actions = default(IList), LastMitigationActionOnJob lastMitigationActionOnJob = default(LastMitigationActionOnJob), DatacenterAddressResponse datacenterAddress = default(DatacenterAddressResponse), string dataCenterCode = default(string), IDictionary importDiskDetailsCollection = default(IDictionary), IDictionary exportDiskDetailsCollection = default(IDictionary), IList copyProgress = default(IList), PackageCarrierInfo deliverToDcPackageDetails = default(PackageCarrierInfo), bool? enableManifestBackup = default(bool?)) + : base(contactDetails, jobStages, shippingAddress, deliveryPackage, returnPackage, dataImportDetails, dataExportDetails, preferences, copyLogDetails, reverseShipmentLabelSasKey, chainOfCustodySasKey, deviceErasureDetails, keyEncryptionKey, expectedDataSizeInTeraBytes, actions, lastMitigationActionOnJob, datacenterAddress, dataCenterCode) { ImportDiskDetailsCollection = importDiskDetailsCollection; ExportDiskDetailsCollection = exportDiskDetailsCollection; diff --git a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/DataBoxDiskGranularCopyLogDetails.cs b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/DataBoxDiskGranularCopyLogDetails.cs new file mode 100644 index 000000000000..de3c4e94c03f --- /dev/null +++ b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/DataBoxDiskGranularCopyLogDetails.cs @@ -0,0 +1,78 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.DataBox.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Granular Copy Log Details for customer disk + /// + [Newtonsoft.Json.JsonObject("DataBoxCustomerDisk")] + public partial class DataBoxDiskGranularCopyLogDetails : GranularCopyLogDetails + { + /// + /// Initializes a new instance of the DataBoxDiskGranularCopyLogDetails + /// class. + /// + public DataBoxDiskGranularCopyLogDetails() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the DataBoxDiskGranularCopyLogDetails + /// class. + /// + /// Disk Serial Number. + /// Account id. + /// Link for copy error logs. + /// Link for copy verbose logs. + public DataBoxDiskGranularCopyLogDetails(string serialNumber = default(string), string accountId = default(string), string errorLogLink = default(string), string verboseLogLink = default(string)) + { + SerialNumber = serialNumber; + AccountId = accountId; + ErrorLogLink = errorLogLink; + VerboseLogLink = verboseLogLink; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets disk Serial Number. + /// + [JsonProperty(PropertyName = "serialNumber")] + public string SerialNumber { get; private set; } + + /// + /// Gets account id. + /// + [JsonProperty(PropertyName = "accountId")] + public string AccountId { get; private set; } + + /// + /// Gets link for copy error logs. + /// + [JsonProperty(PropertyName = "errorLogLink")] + public string ErrorLogLink { get; private set; } + + /// + /// Gets link for copy verbose logs. + /// + [JsonProperty(PropertyName = "verboseLogLink")] + public string VerboseLogLink { get; private set; } + + } +} diff --git a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/DataBoxDiskGranularCopyProgress.cs b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/DataBoxDiskGranularCopyProgress.cs new file mode 100644 index 000000000000..820c62ce364d --- /dev/null +++ b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/DataBoxDiskGranularCopyProgress.cs @@ -0,0 +1,108 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.DataBox.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// DataBox Disk Granular Copy Progress + /// + public partial class DataBoxDiskGranularCopyProgress : GranularCopyProgress + { + /// + /// Initializes a new instance of the DataBoxDiskGranularCopyProgress + /// class. + /// + public DataBoxDiskGranularCopyProgress() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the DataBoxDiskGranularCopyProgress + /// class. + /// + /// Name of the storage account. This + /// will be empty for data account types other than storage + /// account. + /// Transfer type of data. Possible values + /// include: 'ImportToAzure', 'ExportFromAzure' + /// Data Account Type. Possible values + /// include: 'StorageAccount', 'ManagedDisk' + /// Id of the account where the data needs to + /// be uploaded. + /// To indicate bytes transferred. + /// Total amount of data to be + /// processed by the job. + /// Number of files processed + /// Total files to process + /// Number of files not adhering to + /// azure naming conventions which were processed by automatic + /// renaming + /// Total amount of data not + /// adhering to azure naming conventions which were processed by + /// automatic renaming + /// Number of folders not adhering + /// to azure naming conventions which were processed by automatic + /// renaming + /// Number of files which could not be + /// copied + /// To indicate directories errored + /// out in the job. + /// To indicate directories + /// renamed + /// To indicate if enumeration of + /// data is in progress. + /// Until this is true, the TotalBytesToProcess may not be + /// valid. + /// Disk Serial Number. + /// The Status of the copy. Possible values + /// include: 'NotStarted', 'InProgress', 'Completed', + /// 'CompletedWithErrors', 'Failed', 'NotReturned', 'HardwareError', + /// 'DeviceFormatted', 'DeviceMetadataModified', + /// 'StorageAccountNotAccessible', 'UnsupportedData', + /// 'DriveNotReceived', 'UnsupportedDrive', 'OtherServiceError', + /// 'OtherUserError', 'DriveNotDetected', 'DriveCorrupted', + /// 'MetadataFilesModifiedOrRemoved' + public DataBoxDiskGranularCopyProgress(string storageAccountName = default(string), TransferType? transferType = default(TransferType?), DataAccountType? dataAccountType = default(DataAccountType?), string accountId = default(string), long? bytesProcessed = default(long?), long? totalBytesToProcess = default(long?), long? filesProcessed = default(long?), long? totalFilesToProcess = default(long?), long? invalidFilesProcessed = default(long?), long? invalidFileBytesUploaded = default(long?), long? renamedContainerCount = default(long?), long? filesErroredOut = default(long?), long? directoriesErroredOut = default(long?), long? invalidDirectoriesProcessed = default(long?), bool? isEnumerationInProgress = default(bool?), string serialNumber = default(string), string copyStatus = default(string)) + : base(storageAccountName, transferType, dataAccountType, accountId, bytesProcessed, totalBytesToProcess, filesProcessed, totalFilesToProcess, invalidFilesProcessed, invalidFileBytesUploaded, renamedContainerCount, filesErroredOut, directoriesErroredOut, invalidDirectoriesProcessed, isEnumerationInProgress) + { + SerialNumber = serialNumber; + CopyStatus = copyStatus; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets disk Serial Number. + /// + [JsonProperty(PropertyName = "serialNumber")] + public string SerialNumber { get; private set; } + + /// + /// Gets the Status of the copy. Possible values include: 'NotStarted', + /// 'InProgress', 'Completed', 'CompletedWithErrors', 'Failed', + /// 'NotReturned', 'HardwareError', 'DeviceFormatted', + /// 'DeviceMetadataModified', 'StorageAccountNotAccessible', + /// 'UnsupportedData', 'DriveNotReceived', 'UnsupportedDrive', + /// 'OtherServiceError', 'OtherUserError', 'DriveNotDetected', + /// 'DriveCorrupted', 'MetadataFilesModifiedOrRemoved' + /// + [JsonProperty(PropertyName = "copyStatus")] + public string CopyStatus { get; private set; } + + } +} diff --git a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/DataBoxDiskJobDetails.cs b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/DataBoxDiskJobDetails.cs index da7e300db9fc..a3abc61edbb5 100644 --- a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/DataBoxDiskJobDetails.cs +++ b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/DataBoxDiskJobDetails.cs @@ -51,6 +51,8 @@ public DataBoxDiskJobDetails() /// download the return shipment label /// Shared access key to download /// the chain of custody logs + /// Holds device data erasure + /// details /// Details about which key encryption /// type is being used. /// The expected size of the @@ -68,22 +70,29 @@ public DataBoxDiskJobDetails() /// 'TYO01', 'BN1', 'SN5', 'CYS04', 'TYO22', 'YTO21', 'YQB20', 'FRA22', /// 'MAA01', 'CPQ02', 'CPQ20', 'SIN20', 'HKG20', 'SG2', 'MEL23', /// 'SEL21', 'OSA20', 'SHA03', 'BJB', 'JNB22', 'JNB21', 'MNZ21', 'SN8', - /// 'AUH20', 'ZRH20', 'PUS20', 'AdHoc', 'CH1', 'DSM05' + /// 'AUH20', 'ZRH20', 'PUS20', 'AdHoc', 'CH1', 'DSM05', 'DUB07', + /// 'PNQ01', 'SVG20', 'OSA02', 'OSA22', 'PAR22', 'BN7', 'SN6', + /// 'BJS20' /// 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. - public DataBoxDiskJobDetails(ContactDetails contactDetails, IList jobStages = default(IList), ShippingAddress shippingAddress = default(ShippingAddress), PackageShippingDetails deliveryPackage = default(PackageShippingDetails), PackageShippingDetails returnPackage = default(PackageShippingDetails), IList dataImportDetails = default(IList), IList dataExportDetails = default(IList), Preferences preferences = default(Preferences), IList copyLogDetails = default(IList), string reverseShipmentLabelSasKey = default(string), string chainOfCustodySasKey = default(string), KeyEncryptionKey keyEncryptionKey = default(KeyEncryptionKey), int? expectedDataSizeInTeraBytes = default(int?), IList actions = default(IList), LastMitigationActionOnJob lastMitigationActionOnJob = default(LastMitigationActionOnJob), DatacenterAddressResponse datacenterAddress = default(DatacenterAddressResponse), string dataCenterCode = default(string), IDictionary preferredDisks = default(IDictionary), IList copyProgress = default(IList), IDictionary disksAndSizeDetails = default(IDictionary), string passkey = default(string)) - : base(contactDetails, jobStages, shippingAddress, deliveryPackage, returnPackage, dataImportDetails, dataExportDetails, preferences, copyLogDetails, reverseShipmentLabelSasKey, chainOfCustodySasKey, keyEncryptionKey, expectedDataSizeInTeraBytes, actions, lastMitigationActionOnJob, datacenterAddress, dataCenterCode) + public DataBoxDiskJobDetails(ContactDetails contactDetails, IList jobStages = default(IList), ShippingAddress shippingAddress = default(ShippingAddress), PackageShippingDetails deliveryPackage = default(PackageShippingDetails), PackageShippingDetails returnPackage = default(PackageShippingDetails), IList dataImportDetails = default(IList), IList dataExportDetails = default(IList), Preferences preferences = default(Preferences), IList copyLogDetails = default(IList), string reverseShipmentLabelSasKey = default(string), string chainOfCustodySasKey = default(string), DeviceErasureDetails deviceErasureDetails = default(DeviceErasureDetails), KeyEncryptionKey keyEncryptionKey = default(KeyEncryptionKey), int? expectedDataSizeInTeraBytes = default(int?), IList actions = default(IList), LastMitigationActionOnJob lastMitigationActionOnJob = default(LastMitigationActionOnJob), DatacenterAddressResponse datacenterAddress = default(DatacenterAddressResponse), string dataCenterCode = default(string), IDictionary preferredDisks = default(IDictionary), IList copyProgress = default(IList), IList granularCopyProgress = default(IList), IList granularCopyLogDetails = default(IList), IDictionary disksAndSizeDetails = default(IDictionary), string passkey = default(string)) + : base(contactDetails, jobStages, shippingAddress, deliveryPackage, returnPackage, dataImportDetails, dataExportDetails, preferences, copyLogDetails, reverseShipmentLabelSasKey, chainOfCustodySasKey, deviceErasureDetails, keyEncryptionKey, expectedDataSizeInTeraBytes, actions, lastMitigationActionOnJob, datacenterAddress, dataCenterCode) { PreferredDisks = preferredDisks; CopyProgress = copyProgress; + GranularCopyProgress = granularCopyProgress; + GranularCopyLogDetails = granularCopyLogDetails; DisksAndSizeDetails = disksAndSizeDetails; Passkey = passkey; CustomInit(); @@ -109,6 +118,18 @@ public DataBoxDiskJobDetails() [JsonProperty(PropertyName = "copyProgress")] public IList CopyProgress { get; private set; } + /// + /// Gets copy progress per disk. + /// + [JsonProperty(PropertyName = "granularCopyProgress")] + public IList GranularCopyProgress { get; private set; } + + /// + /// Gets copy progress per disk. + /// + [JsonProperty(PropertyName = "granularCopyLogDetails")] + public IList GranularCopyLogDetails { get; private set; } + /// /// Gets 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 diff --git a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/DataBoxDiskJobSecrets.cs b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/DataBoxDiskJobSecrets.cs index 92bf1905382f..ca9d3b765df2 100644 --- a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/DataBoxDiskJobSecrets.cs +++ b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/DataBoxDiskJobSecrets.cs @@ -10,7 +10,6 @@ namespace Microsoft.Azure.Management.DataBox.Models { - using Microsoft.Rest.Azure; using Newtonsoft.Json; using System.Collections; using System.Collections.Generic; diff --git a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/DataBoxHeavyJobDetails.cs b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/DataBoxHeavyJobDetails.cs index b2dcd8d6ca93..86a7e54517c0 100644 --- a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/DataBoxHeavyJobDetails.cs +++ b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/DataBoxHeavyJobDetails.cs @@ -51,6 +51,8 @@ public DataBoxHeavyJobDetails() /// download the return shipment label /// Shared access key to download /// the chain of custody logs + /// Holds device data erasure + /// details /// Details about which key encryption /// type is being used. /// The expected size of the @@ -68,7 +70,9 @@ public DataBoxHeavyJobDetails() /// 'TYO01', 'BN1', 'SN5', 'CYS04', 'TYO22', 'YTO21', 'YQB20', 'FRA22', /// 'MAA01', 'CPQ02', 'CPQ20', 'SIN20', 'HKG20', 'SG2', 'MEL23', /// 'SEL21', 'OSA20', 'SHA03', 'BJB', 'JNB22', 'JNB21', 'MNZ21', 'SN8', - /// 'AUH20', 'ZRH20', 'PUS20', 'AdHoc', 'CH1', 'DSM05' + /// 'AUH20', 'ZRH20', 'PUS20', 'AdHoc', 'CH1', 'DSM05', 'DUB07', + /// 'PNQ01', 'SVG20', 'OSA02', 'OSA22', 'PAR22', 'BN7', 'SN6', + /// 'BJS20' /// Copy progress per account. /// Set Device password for unlocking /// Databox Heavy. Should not be passed for @@ -80,8 +84,8 @@ public DataBoxHeavyJobDetails() /// cannot have the following characters : IilLoO0 Password can have /// only alphabets, numbers and these characters : /// @#\-$%^!+=;:_()]+ - public DataBoxHeavyJobDetails(ContactDetails contactDetails, IList jobStages = default(IList), ShippingAddress shippingAddress = default(ShippingAddress), PackageShippingDetails deliveryPackage = default(PackageShippingDetails), PackageShippingDetails returnPackage = default(PackageShippingDetails), IList dataImportDetails = default(IList), IList dataExportDetails = default(IList), Preferences preferences = default(Preferences), IList copyLogDetails = default(IList), string reverseShipmentLabelSasKey = default(string), string chainOfCustodySasKey = default(string), KeyEncryptionKey keyEncryptionKey = default(KeyEncryptionKey), int? expectedDataSizeInTeraBytes = default(int?), IList actions = default(IList), LastMitigationActionOnJob lastMitigationActionOnJob = default(LastMitigationActionOnJob), DatacenterAddressResponse datacenterAddress = default(DatacenterAddressResponse), string dataCenterCode = default(string), IList copyProgress = default(IList), string devicePassword = default(string)) - : base(contactDetails, jobStages, shippingAddress, deliveryPackage, returnPackage, dataImportDetails, dataExportDetails, preferences, copyLogDetails, reverseShipmentLabelSasKey, chainOfCustodySasKey, keyEncryptionKey, expectedDataSizeInTeraBytes, actions, lastMitigationActionOnJob, datacenterAddress, dataCenterCode) + public DataBoxHeavyJobDetails(ContactDetails contactDetails, IList jobStages = default(IList), ShippingAddress shippingAddress = default(ShippingAddress), PackageShippingDetails deliveryPackage = default(PackageShippingDetails), PackageShippingDetails returnPackage = default(PackageShippingDetails), IList dataImportDetails = default(IList), IList dataExportDetails = default(IList), Preferences preferences = default(Preferences), IList copyLogDetails = default(IList), string reverseShipmentLabelSasKey = default(string), string chainOfCustodySasKey = default(string), DeviceErasureDetails deviceErasureDetails = default(DeviceErasureDetails), KeyEncryptionKey keyEncryptionKey = default(KeyEncryptionKey), int? expectedDataSizeInTeraBytes = default(int?), IList actions = default(IList), LastMitigationActionOnJob lastMitigationActionOnJob = default(LastMitigationActionOnJob), DatacenterAddressResponse datacenterAddress = default(DatacenterAddressResponse), string dataCenterCode = default(string), IList copyProgress = default(IList), string devicePassword = default(string)) + : base(contactDetails, jobStages, shippingAddress, deliveryPackage, returnPackage, dataImportDetails, dataExportDetails, preferences, copyLogDetails, reverseShipmentLabelSasKey, chainOfCustodySasKey, deviceErasureDetails, keyEncryptionKey, expectedDataSizeInTeraBytes, actions, lastMitigationActionOnJob, datacenterAddress, dataCenterCode) { CopyProgress = copyProgress; DevicePassword = devicePassword; diff --git a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/DataBoxHeavyJobSecrets.cs b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/DataBoxHeavyJobSecrets.cs index a9543c98bf00..3caa659198a6 100644 --- a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/DataBoxHeavyJobSecrets.cs +++ b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/DataBoxHeavyJobSecrets.cs @@ -10,7 +10,6 @@ namespace Microsoft.Azure.Management.DataBox.Models { - using Microsoft.Rest.Azure; using Newtonsoft.Json; using System.Collections; using System.Collections.Generic; diff --git a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/DataBoxJobDetails.cs b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/DataBoxJobDetails.cs index 4d7dfa7e0807..351bf7b16538 100644 --- a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/DataBoxJobDetails.cs +++ b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/DataBoxJobDetails.cs @@ -51,6 +51,8 @@ public DataBoxJobDetails() /// download the return shipment label /// Shared access key to download /// the chain of custody logs + /// Holds device data erasure + /// details /// Details about which key encryption /// type is being used. /// The expected size of the @@ -68,7 +70,9 @@ public DataBoxJobDetails() /// 'TYO01', 'BN1', 'SN5', 'CYS04', 'TYO22', 'YTO21', 'YQB20', 'FRA22', /// 'MAA01', 'CPQ02', 'CPQ20', 'SIN20', 'HKG20', 'SG2', 'MEL23', /// 'SEL21', 'OSA20', 'SHA03', 'BJB', 'JNB22', 'JNB21', 'MNZ21', 'SN8', - /// 'AUH20', 'ZRH20', 'PUS20', 'AdHoc', 'CH1', 'DSM05' + /// 'AUH20', 'ZRH20', 'PUS20', 'AdHoc', 'CH1', 'DSM05', 'DUB07', + /// 'PNQ01', 'SVG20', 'OSA02', 'OSA22', 'PAR22', 'BN7', 'SN6', + /// 'BJS20' /// Copy progress per storage /// account. /// Set Device password for unlocking @@ -80,8 +84,8 @@ public DataBoxJobDetails() /// number and one special character. Password cannot have the /// following characters : IilLoO0 Password can have only alphabets, /// numbers and these characters : @#\-$%^!+=;:_()]+ - public DataBoxJobDetails(ContactDetails contactDetails, IList jobStages = default(IList), ShippingAddress shippingAddress = default(ShippingAddress), PackageShippingDetails deliveryPackage = default(PackageShippingDetails), PackageShippingDetails returnPackage = default(PackageShippingDetails), IList dataImportDetails = default(IList), IList dataExportDetails = default(IList), Preferences preferences = default(Preferences), IList copyLogDetails = default(IList), string reverseShipmentLabelSasKey = default(string), string chainOfCustodySasKey = default(string), KeyEncryptionKey keyEncryptionKey = default(KeyEncryptionKey), int? expectedDataSizeInTeraBytes = default(int?), IList actions = default(IList), LastMitigationActionOnJob lastMitigationActionOnJob = default(LastMitigationActionOnJob), DatacenterAddressResponse datacenterAddress = default(DatacenterAddressResponse), string dataCenterCode = default(string), IList copyProgress = default(IList), string devicePassword = default(string)) - : base(contactDetails, jobStages, shippingAddress, deliveryPackage, returnPackage, dataImportDetails, dataExportDetails, preferences, copyLogDetails, reverseShipmentLabelSasKey, chainOfCustodySasKey, keyEncryptionKey, expectedDataSizeInTeraBytes, actions, lastMitigationActionOnJob, datacenterAddress, dataCenterCode) + public DataBoxJobDetails(ContactDetails contactDetails, IList jobStages = default(IList), ShippingAddress shippingAddress = default(ShippingAddress), PackageShippingDetails deliveryPackage = default(PackageShippingDetails), PackageShippingDetails returnPackage = default(PackageShippingDetails), IList dataImportDetails = default(IList), IList dataExportDetails = default(IList), Preferences preferences = default(Preferences), IList copyLogDetails = default(IList), string reverseShipmentLabelSasKey = default(string), string chainOfCustodySasKey = default(string), DeviceErasureDetails deviceErasureDetails = default(DeviceErasureDetails), KeyEncryptionKey keyEncryptionKey = default(KeyEncryptionKey), int? expectedDataSizeInTeraBytes = default(int?), IList actions = default(IList), LastMitigationActionOnJob lastMitigationActionOnJob = default(LastMitigationActionOnJob), DatacenterAddressResponse datacenterAddress = default(DatacenterAddressResponse), string dataCenterCode = default(string), IList copyProgress = default(IList), string devicePassword = default(string)) + : base(contactDetails, jobStages, shippingAddress, deliveryPackage, returnPackage, dataImportDetails, dataExportDetails, preferences, copyLogDetails, reverseShipmentLabelSasKey, chainOfCustodySasKey, deviceErasureDetails, keyEncryptionKey, expectedDataSizeInTeraBytes, actions, lastMitigationActionOnJob, datacenterAddress, dataCenterCode) { CopyProgress = copyProgress; DevicePassword = devicePassword; diff --git a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/DataCenterCode.cs b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/DataCenterCode.cs index 3abbc0687cfd..fa96c888ed35 100644 --- a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/DataCenterCode.cs +++ b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/DataCenterCode.cs @@ -66,5 +66,14 @@ public static class DataCenterCode public const string AdHoc = "AdHoc"; public const string CH1 = "CH1"; public const string DSM05 = "DSM05"; + public const string DUB07 = "DUB07"; + public const string PNQ01 = "PNQ01"; + public const string SVG20 = "SVG20"; + public const string OSA02 = "OSA02"; + public const string OSA22 = "OSA22"; + public const string PAR22 = "PAR22"; + public const string BN7 = "BN7"; + public const string SN6 = "SN6"; + public const string BJS20 = "BJS20"; } } diff --git a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/DataTransferDetailsValidationResponseProperties.cs b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/DataTransferDetailsValidationResponseProperties.cs index 8df7210f1cab..4850d4c7d4b5 100644 --- a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/DataTransferDetailsValidationResponseProperties.cs +++ b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/DataTransferDetailsValidationResponseProperties.cs @@ -10,7 +10,6 @@ namespace Microsoft.Azure.Management.DataBox.Models { - using Microsoft.Rest.Azure; using Newtonsoft.Json; using System.Linq; diff --git a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/DataboxJobSecrets.cs b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/DataboxJobSecrets.cs index acfc042d67e4..ba237548a61f 100644 --- a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/DataboxJobSecrets.cs +++ b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/DataboxJobSecrets.cs @@ -10,7 +10,6 @@ namespace Microsoft.Azure.Management.DataBox.Models { - using Microsoft.Rest.Azure; using Newtonsoft.Json; using System.Collections; using System.Collections.Generic; diff --git a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/DeviceErasureDetails.cs b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/DeviceErasureDetails.cs new file mode 100644 index 000000000000..62224c3cba8a --- /dev/null +++ b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/DeviceErasureDetails.cs @@ -0,0 +1,75 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.DataBox.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Device erasure details with erasure completion status and + /// erasureordestructionlog sas key + /// + public partial class DeviceErasureDetails + { + /// + /// Initializes a new instance of the DeviceErasureDetails class. + /// + public DeviceErasureDetails() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the DeviceErasureDetails class. + /// + /// Holds the device erasure + /// completion status. Possible values include: 'None', 'InProgress', + /// 'Succeeded', 'Failed', 'Cancelled', 'Cancelling', + /// 'SucceededWithErrors', 'WaitingForCustomerAction', + /// 'SucceededWithWarnings', 'WaitingForCustomerActionForKek', + /// 'WaitingForCustomerActionForCleanUp', + /// 'CustomerActionPerformedForCleanUp', + /// 'CustomerActionPerformed' + /// Shared access + /// key to download cleanup or destruction certificate for + /// device + public DeviceErasureDetails(StageStatus? deviceErasureStatus = default(StageStatus?), string erasureOrDestructionCertificateSasKey = default(string)) + { + DeviceErasureStatus = deviceErasureStatus; + ErasureOrDestructionCertificateSasKey = erasureOrDestructionCertificateSasKey; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets holds the device erasure completion status. Possible values + /// include: 'None', 'InProgress', 'Succeeded', 'Failed', 'Cancelled', + /// 'Cancelling', 'SucceededWithErrors', 'WaitingForCustomerAction', + /// 'SucceededWithWarnings', 'WaitingForCustomerActionForKek', + /// 'WaitingForCustomerActionForCleanUp', + /// 'CustomerActionPerformedForCleanUp', 'CustomerActionPerformed' + /// + [JsonProperty(PropertyName = "deviceErasureStatus")] + public StageStatus? DeviceErasureStatus { get; private set; } + + /// + /// Gets shared access key to download cleanup or destruction + /// certificate for device + /// + [JsonProperty(PropertyName = "erasureOrDestructionCertificateSasKey")] + public string ErasureOrDestructionCertificateSasKey { get; private set; } + + } +} diff --git a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/GranularCopyLogDetails.cs b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/GranularCopyLogDetails.cs new file mode 100644 index 000000000000..6425691a8dd2 --- /dev/null +++ b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/GranularCopyLogDetails.cs @@ -0,0 +1,35 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.DataBox.Models +{ + using System.Linq; + + /// + /// Granular Details for log generated during copy. + /// + public partial class GranularCopyLogDetails + { + /// + /// Initializes a new instance of the GranularCopyLogDetails class. + /// + public GranularCopyLogDetails() + { + CustomInit(); + } + + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + } +} diff --git a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/GranularCopyProgress.cs b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/GranularCopyProgress.cs new file mode 100644 index 000000000000..018f64cc3da3 --- /dev/null +++ b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/GranularCopyProgress.cs @@ -0,0 +1,188 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.DataBox.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Granular Copy progress. + /// + public partial class GranularCopyProgress + { + /// + /// Initializes a new instance of the GranularCopyProgress class. + /// + public GranularCopyProgress() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the GranularCopyProgress class. + /// + /// Name of the storage account. This + /// will be empty for data account types other than storage + /// account. + /// Transfer type of data. Possible values + /// include: 'ImportToAzure', 'ExportFromAzure' + /// Data Account Type. Possible values + /// include: 'StorageAccount', 'ManagedDisk' + /// Id of the account where the data needs to + /// be uploaded. + /// To indicate bytes transferred. + /// Total amount of data to be + /// processed by the job. + /// Number of files processed + /// Total files to process + /// Number of files not adhering to + /// azure naming conventions which were processed by automatic + /// renaming + /// Total amount of data not + /// adhering to azure naming conventions which were processed by + /// automatic renaming + /// Number of folders not adhering + /// to azure naming conventions which were processed by automatic + /// renaming + /// Number of files which could not be + /// copied + /// To indicate directories errored + /// out in the job. + /// To indicate directories + /// renamed + /// To indicate if enumeration of + /// data is in progress. + /// Until this is true, the TotalBytesToProcess may not be + /// valid. + public GranularCopyProgress(string storageAccountName = default(string), TransferType? transferType = default(TransferType?), DataAccountType? dataAccountType = default(DataAccountType?), string accountId = default(string), long? bytesProcessed = default(long?), long? totalBytesToProcess = default(long?), long? filesProcessed = default(long?), long? totalFilesToProcess = default(long?), long? invalidFilesProcessed = default(long?), long? invalidFileBytesUploaded = default(long?), long? renamedContainerCount = default(long?), long? filesErroredOut = default(long?), long? directoriesErroredOut = default(long?), long? invalidDirectoriesProcessed = default(long?), bool? isEnumerationInProgress = default(bool?)) + { + StorageAccountName = storageAccountName; + TransferType = transferType; + DataAccountType = dataAccountType; + AccountId = accountId; + BytesProcessed = bytesProcessed; + TotalBytesToProcess = totalBytesToProcess; + FilesProcessed = filesProcessed; + TotalFilesToProcess = totalFilesToProcess; + InvalidFilesProcessed = invalidFilesProcessed; + InvalidFileBytesUploaded = invalidFileBytesUploaded; + RenamedContainerCount = renamedContainerCount; + FilesErroredOut = filesErroredOut; + DirectoriesErroredOut = directoriesErroredOut; + InvalidDirectoriesProcessed = invalidDirectoriesProcessed; + IsEnumerationInProgress = isEnumerationInProgress; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets name of the storage account. This will be empty for data + /// account types other than storage account. + /// + [JsonProperty(PropertyName = "storageAccountName")] + public string StorageAccountName { get; private set; } + + /// + /// Gets transfer type of data. Possible values include: + /// 'ImportToAzure', 'ExportFromAzure' + /// + [JsonProperty(PropertyName = "transferType")] + public TransferType? TransferType { get; private set; } + + /// + /// Gets data Account Type. Possible values include: 'StorageAccount', + /// 'ManagedDisk' + /// + [JsonProperty(PropertyName = "dataAccountType")] + public DataAccountType? DataAccountType { get; private set; } + + /// + /// Gets id of the account where the data needs to be uploaded. + /// + [JsonProperty(PropertyName = "accountId")] + public string AccountId { get; private set; } + + /// + /// Gets to indicate bytes transferred. + /// + [JsonProperty(PropertyName = "bytesProcessed")] + public long? BytesProcessed { get; private set; } + + /// + /// Gets total amount of data to be processed by the job. + /// + [JsonProperty(PropertyName = "totalBytesToProcess")] + public long? TotalBytesToProcess { get; private set; } + + /// + /// Gets number of files processed + /// + [JsonProperty(PropertyName = "filesProcessed")] + public long? FilesProcessed { get; private set; } + + /// + /// Gets total files to process + /// + [JsonProperty(PropertyName = "totalFilesToProcess")] + public long? TotalFilesToProcess { get; private set; } + + /// + /// Gets number of files not adhering to azure naming conventions which + /// were processed by automatic renaming + /// + [JsonProperty(PropertyName = "invalidFilesProcessed")] + public long? InvalidFilesProcessed { get; private set; } + + /// + /// Gets total amount of data not adhering to azure naming conventions + /// which were processed by automatic renaming + /// + [JsonProperty(PropertyName = "invalidFileBytesUploaded")] + public long? InvalidFileBytesUploaded { get; private set; } + + /// + /// Gets number of folders not adhering to azure naming conventions + /// which were processed by automatic renaming + /// + [JsonProperty(PropertyName = "renamedContainerCount")] + public long? RenamedContainerCount { get; private set; } + + /// + /// Gets number of files which could not be copied + /// + [JsonProperty(PropertyName = "filesErroredOut")] + public long? FilesErroredOut { get; private set; } + + /// + /// Gets to indicate directories errored out in the job. + /// + [JsonProperty(PropertyName = "directoriesErroredOut")] + public long? DirectoriesErroredOut { get; private set; } + + /// + /// Gets to indicate directories renamed + /// + [JsonProperty(PropertyName = "invalidDirectoriesProcessed")] + public long? InvalidDirectoriesProcessed { get; private set; } + + /// + /// Gets to indicate if enumeration of data is in progress. + /// Until this is true, the TotalBytesToProcess may not be valid. + /// + [JsonProperty(PropertyName = "isEnumerationInProgress")] + public bool? IsEnumerationInProgress { get; private set; } + + } +} diff --git a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/JobDetails.cs b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/JobDetails.cs index 1dd1283771a3..aba35ced6505 100644 --- a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/JobDetails.cs +++ b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/JobDetails.cs @@ -51,6 +51,8 @@ public JobDetails() /// download the return shipment label /// Shared access key to download /// the chain of custody logs + /// Holds device data erasure + /// details /// Details about which key encryption /// type is being used. /// The expected size of the @@ -68,8 +70,10 @@ public JobDetails() /// 'TYO01', 'BN1', 'SN5', 'CYS04', 'TYO22', 'YTO21', 'YQB20', 'FRA22', /// 'MAA01', 'CPQ02', 'CPQ20', 'SIN20', 'HKG20', 'SG2', 'MEL23', /// 'SEL21', 'OSA20', 'SHA03', 'BJB', 'JNB22', 'JNB21', 'MNZ21', 'SN8', - /// 'AUH20', 'ZRH20', 'PUS20', 'AdHoc', 'CH1', 'DSM05' - public JobDetails(ContactDetails contactDetails, IList jobStages = default(IList), ShippingAddress shippingAddress = default(ShippingAddress), PackageShippingDetails deliveryPackage = default(PackageShippingDetails), PackageShippingDetails returnPackage = default(PackageShippingDetails), IList dataImportDetails = default(IList), IList dataExportDetails = default(IList), Preferences preferences = default(Preferences), IList copyLogDetails = default(IList), string reverseShipmentLabelSasKey = default(string), string chainOfCustodySasKey = default(string), KeyEncryptionKey keyEncryptionKey = default(KeyEncryptionKey), int? expectedDataSizeInTeraBytes = default(int?), IList actions = default(IList), LastMitigationActionOnJob lastMitigationActionOnJob = default(LastMitigationActionOnJob), DatacenterAddressResponse datacenterAddress = default(DatacenterAddressResponse), string dataCenterCode = default(string)) + /// 'AUH20', 'ZRH20', 'PUS20', 'AdHoc', 'CH1', 'DSM05', 'DUB07', + /// 'PNQ01', 'SVG20', 'OSA02', 'OSA22', 'PAR22', 'BN7', 'SN6', + /// 'BJS20' + public JobDetails(ContactDetails contactDetails, IList jobStages = default(IList), ShippingAddress shippingAddress = default(ShippingAddress), PackageShippingDetails deliveryPackage = default(PackageShippingDetails), PackageShippingDetails returnPackage = default(PackageShippingDetails), IList dataImportDetails = default(IList), IList dataExportDetails = default(IList), Preferences preferences = default(Preferences), IList copyLogDetails = default(IList), string reverseShipmentLabelSasKey = default(string), string chainOfCustodySasKey = default(string), DeviceErasureDetails deviceErasureDetails = default(DeviceErasureDetails), KeyEncryptionKey keyEncryptionKey = default(KeyEncryptionKey), int? expectedDataSizeInTeraBytes = default(int?), IList actions = default(IList), LastMitigationActionOnJob lastMitigationActionOnJob = default(LastMitigationActionOnJob), DatacenterAddressResponse datacenterAddress = default(DatacenterAddressResponse), string dataCenterCode = default(string)) { JobStages = jobStages; ContactDetails = contactDetails; @@ -82,6 +86,7 @@ public JobDetails() CopyLogDetails = copyLogDetails; ReverseShipmentLabelSasKey = reverseShipmentLabelSasKey; ChainOfCustodySasKey = chainOfCustodySasKey; + DeviceErasureDetails = deviceErasureDetails; KeyEncryptionKey = keyEncryptionKey; ExpectedDataSizeInTeraBytes = expectedDataSizeInTeraBytes; Actions = actions; @@ -162,6 +167,12 @@ public JobDetails() [JsonProperty(PropertyName = "chainOfCustodySasKey")] public string ChainOfCustodySasKey { get; private set; } + /// + /// Gets holds device data erasure details + /// + [JsonProperty(PropertyName = "deviceErasureDetails")] + public DeviceErasureDetails DeviceErasureDetails { get; private set; } + /// /// Gets or sets details about which key encryption type is being used. /// @@ -202,7 +213,8 @@ public JobDetails() /// 'TYO22', 'YTO21', 'YQB20', 'FRA22', 'MAA01', 'CPQ02', 'CPQ20', /// 'SIN20', 'HKG20', 'SG2', 'MEL23', 'SEL21', 'OSA20', 'SHA03', 'BJB', /// 'JNB22', 'JNB21', 'MNZ21', 'SN8', 'AUH20', 'ZRH20', 'PUS20', - /// 'AdHoc', 'CH1', 'DSM05' + /// 'AdHoc', 'CH1', 'DSM05', 'DUB07', 'PNQ01', 'SVG20', 'OSA02', + /// 'OSA22', 'PAR22', 'BN7', 'SN6', 'BJS20' /// [JsonProperty(PropertyName = "dataCenterCode")] public string DataCenterCode { get; private set; } diff --git a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/JobResource.cs b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/JobResource.cs index 7dcdd001b289..ee72f1a16de1 100644 --- a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/JobResource.cs +++ b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/JobResource.cs @@ -11,7 +11,6 @@ namespace Microsoft.Azure.Management.DataBox.Models { using Microsoft.Rest; - using Microsoft.Rest.Azure; using Microsoft.Rest.Serialization; using Newtonsoft.Json; using System.Collections; diff --git a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/JobSecrets.cs b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/JobSecrets.cs index eea27aaae7c1..c8c7e07e698c 100644 --- a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/JobSecrets.cs +++ b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/JobSecrets.cs @@ -10,14 +10,12 @@ namespace Microsoft.Azure.Management.DataBox.Models { - using Microsoft.Rest.Azure; using Newtonsoft.Json; using System.Linq; /// /// The base class for the secrets /// - [Newtonsoft.Json.JsonObject("JobSecrets")] public partial class JobSecrets { /// diff --git a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/JobStages.cs b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/JobStages.cs index 63a170d398ea..9e565ef52636 100644 --- a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/JobStages.cs +++ b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/JobStages.cs @@ -44,7 +44,8 @@ public JobStages() /// 'Cancelling', 'SucceededWithErrors', 'WaitingForCustomerAction', /// 'SucceededWithWarnings', 'WaitingForCustomerActionForKek', /// 'WaitingForCustomerActionForCleanUp', - /// 'CustomerActionPerformedForCleanUp' + /// 'CustomerActionPerformedForCleanUp', + /// 'CustomerActionPerformed' /// Time for the job stage in UTC ISO 8601 /// format. /// Job Stage Details @@ -89,7 +90,7 @@ public JobStages() /// 'SucceededWithErrors', 'WaitingForCustomerAction', /// 'SucceededWithWarnings', 'WaitingForCustomerActionForKek', /// 'WaitingForCustomerActionForCleanUp', - /// 'CustomerActionPerformedForCleanUp' + /// 'CustomerActionPerformedForCleanUp', 'CustomerActionPerformed' /// [JsonProperty(PropertyName = "stageStatus")] public StageStatus? StageStatus { get; private set; } diff --git a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/LastMitigationActionOnJob.cs b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/LastMitigationActionOnJob.cs index bf10c0baa7aa..bdc7e67336b0 100644 --- a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/LastMitigationActionOnJob.cs +++ b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/LastMitigationActionOnJob.cs @@ -36,7 +36,7 @@ public LastMitigationActionOnJob() /// or by ops /// Resolution code provided by /// customer. Possible values include: 'None', 'MoveToCleanUpDevice', - /// 'Resume' + /// 'Resume', 'Restart', 'ReachOutToOperation' public LastMitigationActionOnJob(System.DateTime? actionDateTimeInUtc = default(System.DateTime?), bool? isPerformedByCustomer = default(bool?), CustomerResolutionCode? customerResolution = default(CustomerResolutionCode?)) { ActionDateTimeInUtc = actionDateTimeInUtc; @@ -66,7 +66,8 @@ public LastMitigationActionOnJob() /// /// Gets or sets resolution code provided by customer. Possible values - /// include: 'None', 'MoveToCleanUpDevice', 'Resume' + /// include: 'None', 'MoveToCleanUpDevice', 'Resume', 'Restart', + /// 'ReachOutToOperation' /// [JsonProperty(PropertyName = "customerResolution")] public CustomerResolutionCode? CustomerResolution { get; set; } diff --git a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/MitigateJobRequest.cs b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/MitigateJobRequest.cs index 8d0dfdf3c554..f9aeee2d6083 100644 --- a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/MitigateJobRequest.cs +++ b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/MitigateJobRequest.cs @@ -30,8 +30,8 @@ public MitigateJobRequest() /// Initializes a new instance of the MitigateJobRequest class. /// /// Resolution code for the job. - /// Possible values include: 'None', 'MoveToCleanUpDevice', - /// 'Resume' + /// Possible values include: 'None', 'MoveToCleanUpDevice', 'Resume', + /// 'Restart', 'ReachOutToOperation' public MitigateJobRequest(CustomerResolutionCode customerResolutionCode) { CustomerResolutionCode = customerResolutionCode; @@ -45,7 +45,8 @@ public MitigateJobRequest(CustomerResolutionCode customerResolutionCode) /// /// Gets or sets resolution code for the job. Possible values include: - /// 'None', 'MoveToCleanUpDevice', 'Resume' + /// 'None', 'MoveToCleanUpDevice', 'Resume', 'Restart', + /// 'ReachOutToOperation' /// [JsonProperty(PropertyName = "customerResolutionCode")] public CustomerResolutionCode CustomerResolutionCode { get; set; } diff --git a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/Preferences.cs b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/Preferences.cs index f457279cda27..643fd13177c7 100644 --- a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/Preferences.cs +++ b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/Preferences.cs @@ -37,11 +37,14 @@ public Preferences() /// shipment logistics of the sku. /// Preferences related to the /// Encryption. - public Preferences(IList preferredDataCenterRegion = default(IList), TransportPreferences transportPreferences = default(TransportPreferences), EncryptionPreferences encryptionPreferences = default(EncryptionPreferences)) + /// Preferences + /// related to the Access Tier of storage accounts. + public Preferences(IList preferredDataCenterRegion = default(IList), TransportPreferences transportPreferences = default(TransportPreferences), EncryptionPreferences encryptionPreferences = default(EncryptionPreferences), IList storageAccountAccessTierPreferences = default(IList)) { PreferredDataCenterRegion = preferredDataCenterRegion; TransportPreferences = transportPreferences; EncryptionPreferences = encryptionPreferences; + StorageAccountAccessTierPreferences = storageAccountAccessTierPreferences; CustomInit(); } @@ -69,6 +72,13 @@ public Preferences() [JsonProperty(PropertyName = "encryptionPreferences")] public EncryptionPreferences EncryptionPreferences { get; set; } + /// + /// Gets or sets preferences related to the Access Tier of storage + /// accounts. + /// + [JsonProperty(PropertyName = "storageAccountAccessTierPreferences")] + public IList StorageAccountAccessTierPreferences { get; set; } + /// /// Validate the object. /// diff --git a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/PreferencesValidationResponseProperties.cs b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/PreferencesValidationResponseProperties.cs index f4aa3be4f5e1..1895ebbf99d4 100644 --- a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/PreferencesValidationResponseProperties.cs +++ b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/PreferencesValidationResponseProperties.cs @@ -10,7 +10,6 @@ namespace Microsoft.Azure.Management.DataBox.Models { - using Microsoft.Rest.Azure; using Newtonsoft.Json; using System.Linq; diff --git a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/SkuAvailabilityValidationResponseProperties.cs b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/SkuAvailabilityValidationResponseProperties.cs index d5f459cde553..43f10468dece 100644 --- a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/SkuAvailabilityValidationResponseProperties.cs +++ b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/SkuAvailabilityValidationResponseProperties.cs @@ -10,7 +10,6 @@ namespace Microsoft.Azure.Management.DataBox.Models { - using Microsoft.Rest.Azure; using Newtonsoft.Json; using System.Linq; diff --git a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/StageStatus.cs b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/StageStatus.cs index 19499d7ed4d2..38636b4173a4 100644 --- a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/StageStatus.cs +++ b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/StageStatus.cs @@ -80,7 +80,12 @@ public enum StageStatus /// Stage has performed customer action for clean up. /// [EnumMember(Value = "CustomerActionPerformedForCleanUp")] - CustomerActionPerformedForCleanUp + CustomerActionPerformedForCleanUp, + /// + /// Stage has performed customer action for clean up. + /// + [EnumMember(Value = "CustomerActionPerformed")] + CustomerActionPerformed } internal static class StageStatusEnumExtension { @@ -117,6 +122,8 @@ internal static string ToSerializedValue(this StageStatus value) return "WaitingForCustomerActionForCleanUp"; case StageStatus.CustomerActionPerformedForCleanUp: return "CustomerActionPerformedForCleanUp"; + case StageStatus.CustomerActionPerformed: + return "CustomerActionPerformed"; } return null; } @@ -149,6 +156,8 @@ internal static string ToSerializedValue(this StageStatus value) return StageStatus.WaitingForCustomerActionForCleanUp; case "CustomerActionPerformedForCleanUp": return StageStatus.CustomerActionPerformedForCleanUp; + case "CustomerActionPerformed": + return StageStatus.CustomerActionPerformed; } return null; } diff --git a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/ValidationCategory.cs b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/StorageAccountAccessTier.cs similarity index 51% rename from sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/ValidationCategory.cs rename to sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/StorageAccountAccessTier.cs index ee9b170d9f14..5d0beb612632 100644 --- a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/ValidationCategory.cs +++ b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/StorageAccountAccessTier.cs @@ -16,40 +16,40 @@ namespace Microsoft.Azure.Management.DataBox.Models using System.Runtime.Serialization; /// - /// Defines values for ValidationCategory. + /// Defines values for StorageAccountAccessTier. /// [JsonConverter(typeof(StringEnumConverter))] - public enum ValidationCategory + public enum StorageAccountAccessTier { /// - /// Identify request of pre-job creation validations. + /// Archive Access Tier shares requested by the customer. /// - [EnumMember(Value = "JobCreationValidation")] - JobCreationValidation + [EnumMember(Value = "Archive")] + Archive } - internal static class ValidationCategoryEnumExtension + internal static class StorageAccountAccessTierEnumExtension { - internal static string ToSerializedValue(this ValidationCategory? value) + internal static string ToSerializedValue(this StorageAccountAccessTier? value) { - return value == null ? null : ((ValidationCategory)value).ToSerializedValue(); + return value == null ? null : ((StorageAccountAccessTier)value).ToSerializedValue(); } - internal static string ToSerializedValue(this ValidationCategory value) + internal static string ToSerializedValue(this StorageAccountAccessTier value) { switch( value ) { - case ValidationCategory.JobCreationValidation: - return "JobCreationValidation"; + case StorageAccountAccessTier.Archive: + return "Archive"; } return null; } - internal static ValidationCategory? ParseValidationCategory(this string value) + internal static StorageAccountAccessTier? ParseStorageAccountAccessTier(this string value) { switch( value ) { - case "JobCreationValidation": - return ValidationCategory.JobCreationValidation; + case "Archive": + return StorageAccountAccessTier.Archive; } return null; } diff --git a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/SubscriptionIsAllowedToCreateJobValidationResponseProperties.cs b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/SubscriptionIsAllowedToCreateJobValidationResponseProperties.cs index 17ff3dfe0c89..4bd1b3f6677a 100644 --- a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/SubscriptionIsAllowedToCreateJobValidationResponseProperties.cs +++ b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/SubscriptionIsAllowedToCreateJobValidationResponseProperties.cs @@ -10,7 +10,6 @@ namespace Microsoft.Azure.Management.DataBox.Models { - using Microsoft.Rest.Azure; using Newtonsoft.Json; using System.Linq; diff --git a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/ValidationInputDiscriminator.cs b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/ValidationInputDiscriminator.cs deleted file mode 100644 index c12bc0055eb4..000000000000 --- a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/ValidationInputDiscriminator.cs +++ /dev/null @@ -1,105 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.DataBox.Models -{ - using Newtonsoft.Json; - using Newtonsoft.Json.Converters; - using System.Runtime; - using System.Runtime.Serialization; - - /// - /// Defines values for ValidationInputDiscriminator. - /// - [JsonConverter(typeof(StringEnumConverter))] - public enum ValidationInputDiscriminator - { - /// - /// Identify request and response of address validation. - /// - [EnumMember(Value = "ValidateAddress")] - ValidateAddress, - /// - /// Identify request and response for validation of subscription - /// permission to create job. - /// - [EnumMember(Value = "ValidateSubscriptionIsAllowedToCreateJob")] - ValidateSubscriptionIsAllowedToCreateJob, - /// - /// Identify request and response of preference validation. - /// - [EnumMember(Value = "ValidatePreferences")] - ValidatePreferences, - /// - /// Identify request and response of create order limit for - /// subscription validation. - /// - [EnumMember(Value = "ValidateCreateOrderLimit")] - ValidateCreateOrderLimit, - /// - /// Identify request and response of active job limit for sku - /// availability. - /// - [EnumMember(Value = "ValidateSkuAvailability")] - ValidateSkuAvailability, - /// - /// Identify request and response of data transfer details validation. - /// - [EnumMember(Value = "ValidateDataTransferDetails")] - ValidateDataTransferDetails - } - internal static class ValidationInputDiscriminatorEnumExtension - { - internal static string ToSerializedValue(this ValidationInputDiscriminator? value) - { - return value == null ? null : ((ValidationInputDiscriminator)value).ToSerializedValue(); - } - - internal static string ToSerializedValue(this ValidationInputDiscriminator value) - { - switch( value ) - { - case ValidationInputDiscriminator.ValidateAddress: - return "ValidateAddress"; - case ValidationInputDiscriminator.ValidateSubscriptionIsAllowedToCreateJob: - return "ValidateSubscriptionIsAllowedToCreateJob"; - case ValidationInputDiscriminator.ValidatePreferences: - return "ValidatePreferences"; - case ValidationInputDiscriminator.ValidateCreateOrderLimit: - return "ValidateCreateOrderLimit"; - case ValidationInputDiscriminator.ValidateSkuAvailability: - return "ValidateSkuAvailability"; - case ValidationInputDiscriminator.ValidateDataTransferDetails: - return "ValidateDataTransferDetails"; - } - return null; - } - - internal static ValidationInputDiscriminator? ParseValidationInputDiscriminator(this string value) - { - switch( value ) - { - case "ValidateAddress": - return ValidationInputDiscriminator.ValidateAddress; - case "ValidateSubscriptionIsAllowedToCreateJob": - return ValidationInputDiscriminator.ValidateSubscriptionIsAllowedToCreateJob; - case "ValidatePreferences": - return ValidationInputDiscriminator.ValidatePreferences; - case "ValidateCreateOrderLimit": - return ValidationInputDiscriminator.ValidateCreateOrderLimit; - case "ValidateSkuAvailability": - return ValidationInputDiscriminator.ValidateSkuAvailability; - case "ValidateDataTransferDetails": - return ValidationInputDiscriminator.ValidateDataTransferDetails; - } - return null; - } - } -} diff --git a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/ValidationInputRequest.cs b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/ValidationInputRequest.cs index 16cd7d432818..096380231268 100644 --- a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/ValidationInputRequest.cs +++ b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/ValidationInputRequest.cs @@ -10,13 +10,11 @@ namespace Microsoft.Azure.Management.DataBox.Models { - using Newtonsoft.Json; using System.Linq; /// /// Minimum fields that must be present in any type of validation request. /// - [Newtonsoft.Json.JsonObject("ValidationInputRequest")] public partial class ValidationInputRequest { /// diff --git a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/ValidationInputResponse.cs b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/ValidationInputResponse.cs index ec95819d34de..b9e61e39f27f 100644 --- a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/ValidationInputResponse.cs +++ b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/ValidationInputResponse.cs @@ -10,7 +10,6 @@ namespace Microsoft.Azure.Management.DataBox.Models { - using Microsoft.Rest.Azure; using Newtonsoft.Json; using System.Linq; @@ -18,7 +17,6 @@ namespace Microsoft.Azure.Management.DataBox.Models /// Minimum properties that should be present in each individual validation /// response. /// - [Newtonsoft.Json.JsonObject("ValidationInputResponse")] public partial class ValidationInputResponse { /// diff --git a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/ValidationRequest.cs b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/ValidationRequest.cs index a67857f192ed..ed8dec97c1dd 100644 --- a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/ValidationRequest.cs +++ b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/ValidationRequest.cs @@ -19,7 +19,6 @@ namespace Microsoft.Azure.Management.DataBox.Models /// /// Minimum request requirement of any validation category. /// - [Newtonsoft.Json.JsonObject("ValidationRequest")] public partial class ValidationRequest { /// diff --git a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/SdkInfo_DataBoxManagementClient.cs b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/SdkInfo_DataBoxManagementClient.cs index dc6f0d3ae7a4..4e217911ceb3 100644 --- a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/SdkInfo_DataBoxManagementClient.cs +++ b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/SdkInfo_DataBoxManagementClient.cs @@ -19,23 +19,12 @@ public static IEnumerable> ApiInfo_DataBoxManageme { return new Tuple[] { - new Tuple("DataBox", "Jobs", "2021-08-01-preview"), - new Tuple("DataBox", "Mitigate", "2021-08-01-preview"), - new Tuple("DataBox", "Operations", "2021-08-01-preview"), - new Tuple("DataBox", "Service", "2021-08-01-preview"), + new Tuple("DataBox", "Jobs", "2022-02-01"), + new Tuple("DataBox", "Mitigate", "2022-02-01"), + new Tuple("DataBox", "Operations", "2022-02-01"), + new Tuple("DataBox", "Service", "2022-02-01"), }.AsEnumerable(); } } - // BEGIN: Code Generation Metadata Section - public static readonly String AutoRestVersion = "v2"; - public static readonly String AutoRestBootStrapperVersion = "autorest@3.3.2"; - public static readonly String AutoRestCmdExecuted = "cmd.exe /c autorest.cmd https://github.com/Azure/azure-rest-api-specs/blob/master/specification/databox/resource-manager/readme.md --csharp --version=v2 --reflect-api-versions --csharp-sdks-folder=D:\\azure-sdk\\azure-sdk-for-net\\sdk"; - public static readonly String GithubForkName = "Azure"; - public static readonly String GithubBranchName = "master"; - public static readonly String GithubCommidId = "5ee7c98d2f778a2a3f867215eba5b13ddf139f6e"; - public static readonly String CodeGenerationErrors = ""; - public static readonly String GithubRepoName = "azure-rest-api-specs"; - // END: Code Generation Metadata Section } } -