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 0da450cd7581..96e46072a45f 100644 --- a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/DataBoxManagementClient.cs +++ b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/DataBoxManagementClient.cs @@ -331,7 +331,7 @@ private void Initialize() Jobs = new JobsOperations(this); Service = new ServiceOperations(this); BaseUri = new System.Uri("https://management.azure.com"); - ApiVersion = "2019-09-01"; + ApiVersion = "2018-01-01"; AcceptLanguage = "en-US"; LongRunningOperationRetryTimeout = 30; GenerateClientRequestId = true; @@ -369,14 +369,6 @@ private void Initialize() DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter("jobDetailsType")); SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter("jobSecretsType")); DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter("jobSecretsType")); - SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter("skuName")); - DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter("skuName")); - SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter("validationType")); - DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter("validationType")); - SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter("validationType")); - DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter("validationType")); - SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter("validationCategory")); - DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter("validationCategory")); CustomInitialize(); DeserializationSettings.Converters.Add(new TransformationJsonConverter()); DeserializationSettings.Converters.Add(new CloudErrorJsonConverter()); diff --git a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/IServiceOperations.cs b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/IServiceOperations.cs index eaa5a9811a83..8fa91cdaa08e 100644 --- a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/IServiceOperations.cs +++ b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/IServiceOperations.cs @@ -50,74 +50,18 @@ public partial interface IServiceOperations /// Task>> ListAvailableSkusWithHttpMessagesAsync(string location, AvailableSkuRequest availableSkuRequest, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// This method provides the list of available skus for the given - /// subscription, resource group and location. - /// - /// - /// The Resource Group Name - /// - /// - /// The location of the resource - /// - /// - /// Filters for showing the available skus. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - Task>> ListAvailableSkusByResourceGroupWithHttpMessagesAsync(string resourceGroupName, string location, AvailableSkuRequest availableSkuRequest, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - /// - /// [DEPRECATED NOTICE: This operation will soon be removed] This - /// method validates the customer shipping address and provide + /// This method validates the customer shipping address and provide /// alternate addresses if any. /// /// /// The location of the resource /// - /// + /// /// Shipping address of the customer. /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - [System.Obsolete("This operation is deprecated. Please do not use it any longer.")] - Task> ValidateAddressMethodWithHttpMessagesAsync(string location, ValidateAddress validateAddress, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - /// - /// This method does all necessary pre-job creation validation under - /// resource group. - /// - /// - /// The Resource Group Name - /// - /// - /// The location of the resource - /// - /// - /// Inputs of the customer. + /// + /// Device type to be used for the job. Possible values include: + /// 'DataBox', 'DataBoxDisk', 'DataBoxHeavy' /// /// /// The headers that will be added to request. @@ -134,62 +78,7 @@ public partial interface IServiceOperations /// /// Thrown when a required parameter is null /// - Task> ValidateInputsByResourceGroupWithHttpMessagesAsync(string resourceGroupName, string location, ValidationRequest validationRequest, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - /// - /// This method does all necessary pre-job creation validation under - /// subscription. - /// - /// - /// The location of the resource - /// - /// - /// Inputs of the customer. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - Task> ValidateInputsWithHttpMessagesAsync(string location, ValidationRequest validationRequest, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - /// - /// This API provides configuration details specific to given - /// region/location. - /// - /// - /// The location of the resource - /// - /// - /// Request body to get the availability for scheduling orders. - /// - /// - /// Request body to get the transport availability for given sku. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - Task> RegionConfigurationWithHttpMessagesAsync(string location, ScheduleAvailabilityRequest scheduleAvailabilityRequest = default(ScheduleAvailabilityRequest), TransportAvailabilityRequest transportAvailabilityRequest = default(TransportAvailabilityRequest), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> ValidateAddressMethodWithHttpMessagesAsync(string location, ShippingAddress shippingAddress, SkuName deviceType, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// This method provides the list of available skus for the given /// subscription and location. @@ -213,28 +102,5 @@ public partial interface IServiceOperations /// Thrown when a required parameter is null /// Task>> ListAvailableSkusNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - /// - /// This method provides the list of available skus for the given - /// subscription, resource group and location. - /// - /// - /// The NextLink from the previous successful call to List operation. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - Task>> ListAvailableSkusByResourceGroupNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); } } diff --git a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/AccountCredentialDetails.cs b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/AccountCredentialDetails.cs index d7411ee26cc6..fe31670b6081 100644 --- a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/AccountCredentialDetails.cs +++ b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/AccountCredentialDetails.cs @@ -32,17 +32,14 @@ public AccountCredentialDetails() /// Initializes a new instance of the AccountCredentialDetails class. /// /// Name of the account. - /// Data Destination Type. Possible - /// values include: 'StorageAccount', 'ManagedDisk' /// Connection string of the /// account endpoint to use the account as a storage endpoint on the /// device. /// Per share level unencrypted /// access credentials. - public AccountCredentialDetails(string accountName = default(string), DataDestinationType? dataDestinationType = default(DataDestinationType?), string accountConnectionString = default(string), IList shareCredentialDetails = default(IList)) + public AccountCredentialDetails(string accountName = default(string), string accountConnectionString = default(string), IList shareCredentialDetails = default(IList)) { AccountName = accountName; - DataDestinationType = dataDestinationType; AccountConnectionString = accountConnectionString; ShareCredentialDetails = shareCredentialDetails; CustomInit(); @@ -59,13 +56,6 @@ public AccountCredentialDetails() [JsonProperty(PropertyName = "accountName")] public string AccountName { get; private set; } - /// - /// Gets data Destination Type. Possible values include: - /// 'StorageAccount', 'ManagedDisk' - /// - [JsonProperty(PropertyName = "dataDestinationType")] - public DataDestinationType? DataDestinationType { get; private set; } - /// /// Gets connection string of the account endpoint to use the account /// as a storage endpoint on the device. 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 92b7ca3ea771..8b85ad385e5a 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 @@ -34,15 +34,12 @@ public AddressValidationOutput() /// /// Initializes a new instance of the AddressValidationOutput class. /// - /// Error code and message of validation - /// response. /// The address validation status. /// Possible values include: 'Valid', 'Invalid', 'Ambiguous' /// List of alternate /// addresses. - public AddressValidationOutput(Error error = default(Error), AddressValidationStatus? validationStatus = default(AddressValidationStatus?), IList alternateAddresses = default(IList)) + public AddressValidationOutput(AddressValidationStatus? validationStatus = default(AddressValidationStatus?), IList alternateAddresses = default(IList)) { - Error = error; ValidationStatus = validationStatus; AlternateAddresses = alternateAddresses; CustomInit(); @@ -53,12 +50,6 @@ public AddressValidationOutput() /// partial void CustomInit(); - /// - /// Gets error code and message of validation response. - /// - [JsonProperty(PropertyName = "properties.error")] - public Error Error { get; private set; } - /// /// Gets the address validation status. Possible values include: /// 'Valid', 'Invalid', 'Ambiguous' 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 0e95fb2ff577..000000000000 --- a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/AddressValidationProperties.cs +++ /dev/null @@ -1,70 +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 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(Error error = default(Error), 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; } - - } -} diff --git a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/CopyProgress.cs b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/CopyProgress.cs index 6dc761ebe049..8dd913393c14 100644 --- a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/CopyProgress.cs +++ b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/CopyProgress.cs @@ -31,8 +31,6 @@ public CopyProgress() /// /// Name of the storage account where /// the data needs to be uploaded. - /// Data Destination Type. Possible - /// values include: 'StorageAccount', 'ManagedDisk' /// Id of the account where the data needs to /// be uploaded. /// Amount of data uploaded by the job @@ -43,30 +41,14 @@ public CopyProgress() /// as of now. /// Total number of files to be /// processed by the job. - /// 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 - public CopyProgress(string storageAccountName = default(string), DataDestinationType? dataDestinationType = default(DataDestinationType?), string accountId = default(string), long? bytesSentToCloud = 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?)) + public CopyProgress(string storageAccountName = default(string), string accountId = default(string), long? bytesSentToCloud = default(long?), long? totalBytesToProcess = default(long?), long? filesProcessed = default(long?), long? totalFilesToProcess = default(long?)) { StorageAccountName = storageAccountName; - DataDestinationType = dataDestinationType; AccountId = accountId; BytesSentToCloud = bytesSentToCloud; TotalBytesToProcess = totalBytesToProcess; FilesProcessed = filesProcessed; TotalFilesToProcess = totalFilesToProcess; - InvalidFilesProcessed = invalidFilesProcessed; - InvalidFileBytesUploaded = invalidFileBytesUploaded; - RenamedContainerCount = renamedContainerCount; - FilesErroredOut = filesErroredOut; CustomInit(); } @@ -82,13 +64,6 @@ public CopyProgress() [JsonProperty(PropertyName = "storageAccountName")] public string StorageAccountName { get; private set; } - /// - /// Gets data Destination Type. Possible values include: - /// 'StorageAccount', 'ManagedDisk' - /// - [JsonProperty(PropertyName = "dataDestinationType")] - public DataDestinationType? DataDestinationType { get; private set; } - /// /// Gets id of the account where the data needs to be uploaded. /// @@ -119,32 +94,5 @@ public CopyProgress() [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; } - } } 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 f159af11832b..a3642b444e85 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 @@ -50,32 +50,7 @@ public enum CopyStatus /// No copy triggered as device was not returned. /// [EnumMember(Value = "NotReturned")] - NotReturned, - /// - /// The Device has hit hardware issues. - /// - [EnumMember(Value = "HardwareError")] - HardwareError, - /// - /// Data copy failed. The Device was formatted by user. - /// - [EnumMember(Value = "DeviceFormatted")] - DeviceFormatted, - /// - /// Data copy failed. Device metadata was modified by user. - /// - [EnumMember(Value = "DeviceMetadataModified")] - DeviceMetadataModified, - /// - /// Data copy failed. Storage Account was not accessible during copy. - /// - [EnumMember(Value = "StorageAccountNotAccessible")] - StorageAccountNotAccessible, - /// - /// Data copy failed. The Device data content is not supported. - /// - [EnumMember(Value = "UnsupportedData")] - UnsupportedData + NotReturned } internal static class CopyStatusEnumExtension { @@ -100,16 +75,6 @@ internal static string ToSerializedValue(this CopyStatus value) return "Failed"; case CopyStatus.NotReturned: return "NotReturned"; - case CopyStatus.HardwareError: - return "HardwareError"; - case CopyStatus.DeviceFormatted: - return "DeviceFormatted"; - case CopyStatus.DeviceMetadataModified: - return "DeviceMetadataModified"; - case CopyStatus.StorageAccountNotAccessible: - return "StorageAccountNotAccessible"; - case CopyStatus.UnsupportedData: - return "UnsupportedData"; } return null; } @@ -130,16 +95,6 @@ internal static string ToSerializedValue(this CopyStatus value) return CopyStatus.Failed; case "NotReturned": return CopyStatus.NotReturned; - case "HardwareError": - return CopyStatus.HardwareError; - case "DeviceFormatted": - return CopyStatus.DeviceFormatted; - case "DeviceMetadataModified": - return CopyStatus.DeviceMetadataModified; - case "StorageAccountNotAccessible": - return CopyStatus.StorageAccountNotAccessible; - case "UnsupportedData": - return CopyStatus.UnsupportedData; } return null; } diff --git a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/CreateJobValidations.cs b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/CreateJobValidations.cs deleted file mode 100644 index 39c4029b3242..000000000000 --- a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/CreateJobValidations.cs +++ /dev/null @@ -1,60 +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 System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// It does all pre-job creation validations. - /// - [Newtonsoft.Json.JsonObject("JobCreationValidation")] - public partial class CreateJobValidations : ValidationRequest - { - /// - /// Initializes a new instance of the CreateJobValidations class. - /// - public CreateJobValidations() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the CreateJobValidations class. - /// - /// List of request details - /// contain validationType and its request as key and value - /// respectively. - public CreateJobValidations(IList individualRequestDetails) - : base(individualRequestDetails) - { - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public override void Validate() - { - base.Validate(); - } - } -} diff --git a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/CreateOrderLimitForSubscriptionValidationRequest.cs b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/CreateOrderLimitForSubscriptionValidationRequest.cs deleted file mode 100644 index 40c45e8828d5..000000000000 --- a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/CreateOrderLimitForSubscriptionValidationRequest.cs +++ /dev/null @@ -1,66 +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 System.Linq; - - /// - /// Request to validate create order limit for current subscription. - /// - [Newtonsoft.Json.JsonObject("ValidateCreateOrderLimit")] - public partial class CreateOrderLimitForSubscriptionValidationRequest : ValidationInputRequest - { - /// - /// Initializes a new instance of the - /// CreateOrderLimitForSubscriptionValidationRequest class. - /// - public CreateOrderLimitForSubscriptionValidationRequest() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the - /// CreateOrderLimitForSubscriptionValidationRequest class. - /// - /// Device type to be used for the job. - /// Possible values include: 'DataBox', 'DataBoxDisk', - /// 'DataBoxHeavy' - public CreateOrderLimitForSubscriptionValidationRequest(SkuName deviceType) - { - DeviceType = deviceType; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets device type to be used for the job. Possible values - /// include: 'DataBox', 'DataBoxDisk', 'DataBoxHeavy' - /// - [JsonProperty(PropertyName = "deviceType")] - public SkuName DeviceType { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - } - } -} 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 deleted file mode 100644 index 7e8ea02a7d75..000000000000 --- a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/CreateOrderLimitForSubscriptionValidationResponseProperties.cs +++ /dev/null @@ -1,59 +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 System.Linq; - - /// - /// Properties of create order limit for subscription validation response. - /// - [Newtonsoft.Json.JsonObject("ValidateCreateOrderLimit")] - public partial class CreateOrderLimitForSubscriptionValidationResponseProperties : ValidationInputResponse - { - /// - /// Initializes a new instance of the - /// CreateOrderLimitForSubscriptionValidationResponseProperties class. - /// - public CreateOrderLimitForSubscriptionValidationResponseProperties() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the - /// CreateOrderLimitForSubscriptionValidationResponseProperties class. - /// - /// Error code and message of validation - /// response. - /// Create order limit validation status. Possible - /// values include: 'Valid', 'Invalid', 'Skipped' - public CreateOrderLimitForSubscriptionValidationResponseProperties(Error error = default(Error), ValidationStatus? status = default(ValidationStatus?)) - : base(error) - { - Status = status; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets create order limit validation status. Possible values include: - /// 'Valid', 'Invalid', 'Skipped' - /// - [JsonProperty(PropertyName = "status")] - public ValidationStatus? Status { get; private set; } - - } -} diff --git a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/DataBoxDiskCopyProgress.cs b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/DataBoxDiskCopyProgress.cs index e137c3b7481d..4589f8bee855 100644 --- a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/DataBoxDiskCopyProgress.cs +++ b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/DataBoxDiskCopyProgress.cs @@ -36,9 +36,7 @@ public DataBoxDiskCopyProgress() /// for the copy of the disk. /// The Status of the copy. Possible values /// include: 'NotStarted', 'InProgress', 'Completed', - /// 'CompletedWithErrors', 'Failed', 'NotReturned', 'HardwareError', - /// 'DeviceFormatted', 'DeviceMetadataModified', - /// 'StorageAccountNotAccessible', 'UnsupportedData' + /// 'CompletedWithErrors', 'Failed', 'NotReturned' public DataBoxDiskCopyProgress(string serialNumber = default(string), long? bytesCopied = default(long?), int? percentComplete = default(int?), CopyStatus? status = default(CopyStatus?)) { SerialNumber = serialNumber; @@ -74,9 +72,7 @@ public DataBoxDiskCopyProgress() /// /// Gets the Status of the copy. Possible values include: 'NotStarted', /// 'InProgress', 'Completed', 'CompletedWithErrors', 'Failed', - /// 'NotReturned', 'HardwareError', 'DeviceFormatted', - /// 'DeviceMetadataModified', 'StorageAccountNotAccessible', - /// 'UnsupportedData' + /// 'NotReturned' /// [JsonProperty(PropertyName = "status")] public CopyStatus? Status { 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 ca94c148aa45..091c0b72d709 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 @@ -38,7 +38,7 @@ public DataBoxDiskJobDetails() /// customer. /// Destination account /// details. - /// The expected size of the + /// The expected size of the /// data, which needs to be transferred in this job, in /// terabytes. /// List of stages that run in the job. @@ -64,8 +64,8 @@ public DataBoxDiskJobDetails() /// after the disks are shipped to the customer. /// User entered passkey for DataBox Disk /// job. - public DataBoxDiskJobDetails(ContactDetails contactDetails, ShippingAddress shippingAddress, IList destinationAccountDetails, int? expectedDataSizeInTerabytes = default(int?), IList jobStages = default(IList), PackageShippingDetails deliveryPackage = default(PackageShippingDetails), PackageShippingDetails returnPackage = default(PackageShippingDetails), IList errorDetails = default(IList), Preferences preferences = default(Preferences), IList copyLogDetails = default(IList), string reverseShipmentLabelSasKey = default(string), string chainOfCustodySasKey = default(string), IDictionary preferredDisks = default(IDictionary), IList copyProgress = default(IList), IDictionary disksAndSizeDetails = default(IDictionary), string passkey = default(string)) - : base(contactDetails, shippingAddress, destinationAccountDetails, expectedDataSizeInTerabytes, jobStages, deliveryPackage, returnPackage, errorDetails, preferences, copyLogDetails, reverseShipmentLabelSasKey, chainOfCustodySasKey) + public DataBoxDiskJobDetails(ContactDetails contactDetails, ShippingAddress shippingAddress, IList destinationAccountDetails, int? expectedDataSizeInTeraBytes = default(int?), IList jobStages = default(IList), PackageShippingDetails deliveryPackage = default(PackageShippingDetails), PackageShippingDetails returnPackage = default(PackageShippingDetails), IList errorDetails = default(IList), Preferences preferences = default(Preferences), IList copyLogDetails = default(IList), string reverseShipmentLabelSasKey = default(string), string chainOfCustodySasKey = default(string), IDictionary preferredDisks = default(IDictionary), IList copyProgress = default(IList), IDictionary disksAndSizeDetails = default(IDictionary), string passkey = default(string)) + : base(contactDetails, shippingAddress, destinationAccountDetails, expectedDataSizeInTeraBytes, jobStages, deliveryPackage, returnPackage, errorDetails, preferences, copyLogDetails, reverseShipmentLabelSasKey, chainOfCustodySasKey) { PreferredDisks = preferredDisks; CopyProgress = copyProgress; 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 9a9612da5222..ec536c9c9e7a 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 @@ -32,15 +32,12 @@ public DataBoxDiskJobSecrets() /// /// Initializes a new instance of the DataBoxDiskJobSecrets class. /// - /// Dc Access Security Code for - /// Customer Managed Shipping /// Contains the list of secrets object for /// that device. /// PassKey for the disk Job. /// Whether passkey was provided by /// user. - public DataBoxDiskJobSecrets(DcAccessSecurityCode dcAccessSecurityCode = default(DcAccessSecurityCode), IList diskSecrets = default(IList), string passKey = default(string), bool? isPasskeyUserDefined = default(bool?)) - : base(dcAccessSecurityCode) + public DataBoxDiskJobSecrets(IList diskSecrets = default(IList), string passKey = default(string), bool? isPasskeyUserDefined = default(bool?)) { DiskSecrets = diskSecrets; PassKey = passKey; diff --git a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/DataBoxHeavyAccountCopyLogDetails.cs b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/DataBoxHeavyAccountCopyLogDetails.cs index 39c21b88a984..ee630c4b5f49 100644 --- a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/DataBoxHeavyAccountCopyLogDetails.cs +++ b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/DataBoxHeavyAccountCopyLogDetails.cs @@ -16,7 +16,7 @@ namespace Microsoft.Azure.Management.DataBox.Models using System.Linq; /// - /// Copy log details for a storage account for Databox heavy + /// Copy log details for a storage account for DataBoxHeavy /// [Newtonsoft.Json.JsonObject("DataBoxHeavy")] public partial class DataBoxHeavyAccountCopyLogDetails : CopyLogDetails 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 dfbf1b3eac92..e1c65b88d41f 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 @@ -16,7 +16,7 @@ namespace Microsoft.Azure.Management.DataBox.Models using System.Linq; /// - /// Databox Heavy Device Job Details + /// DataBoxHeavy Device Job Details /// [Newtonsoft.Json.JsonObject("DataBoxHeavy")] public partial class DataBoxHeavyJobDetails : JobDetails @@ -38,7 +38,7 @@ public DataBoxHeavyJobDetails() /// customer. /// Destination account /// details. - /// The expected size of the + /// The expected size of the /// data, which needs to be transferred in this job, in /// terabytes. /// List of stages that run in the job. @@ -55,13 +55,10 @@ public DataBoxHeavyJobDetails() /// Shared access key to download /// the chain of custody logs /// Copy progress per account. - /// Set Device password for unlocking - /// Databox Heavy - public DataBoxHeavyJobDetails(ContactDetails contactDetails, ShippingAddress shippingAddress, IList destinationAccountDetails, int? expectedDataSizeInTerabytes = default(int?), IList jobStages = default(IList), PackageShippingDetails deliveryPackage = default(PackageShippingDetails), PackageShippingDetails returnPackage = default(PackageShippingDetails), IList errorDetails = default(IList), Preferences preferences = default(Preferences), IList copyLogDetails = default(IList), string reverseShipmentLabelSasKey = default(string), string chainOfCustodySasKey = default(string), IList copyProgress = default(IList), string devicePassword = default(string)) - : base(contactDetails, shippingAddress, destinationAccountDetails, expectedDataSizeInTerabytes, jobStages, deliveryPackage, returnPackage, errorDetails, preferences, copyLogDetails, reverseShipmentLabelSasKey, chainOfCustodySasKey) + public DataBoxHeavyJobDetails(ContactDetails contactDetails, ShippingAddress shippingAddress, IList destinationAccountDetails, int? expectedDataSizeInTeraBytes = default(int?), IList jobStages = default(IList), PackageShippingDetails deliveryPackage = default(PackageShippingDetails), PackageShippingDetails returnPackage = default(PackageShippingDetails), IList errorDetails = default(IList), Preferences preferences = default(Preferences), IList copyLogDetails = default(IList), string reverseShipmentLabelSasKey = default(string), string chainOfCustodySasKey = default(string), IList copyProgress = default(IList)) + : base(contactDetails, shippingAddress, destinationAccountDetails, expectedDataSizeInTeraBytes, jobStages, deliveryPackage, returnPackage, errorDetails, preferences, copyLogDetails, reverseShipmentLabelSasKey, chainOfCustodySasKey) { CopyProgress = copyProgress; - DevicePassword = devicePassword; CustomInit(); } @@ -76,12 +73,6 @@ public DataBoxHeavyJobDetails() [JsonProperty(PropertyName = "copyProgress")] public IList CopyProgress { get; private set; } - /// - /// Gets or sets set Device password for unlocking Databox Heavy - /// - [JsonProperty(PropertyName = "devicePassword")] - public string DevicePassword { get; set; } - /// /// Validate the object. /// 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 bb493239b4f5..38dc10df62da 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 @@ -16,7 +16,7 @@ namespace Microsoft.Azure.Management.DataBox.Models using System.Linq; /// - /// The secrets related to a databox heavy job. + /// The secrets related to a DataBoxHeavy job. /// [Newtonsoft.Json.JsonObject("DataBoxHeavy")] public partial class DataBoxHeavyJobSecrets : JobSecrets @@ -32,12 +32,9 @@ public DataBoxHeavyJobSecrets() /// /// Initializes a new instance of the DataBoxHeavyJobSecrets class. /// - /// Dc Access Security Code for - /// Customer Managed Shipping /// Contains the list of secret objects - /// for a databox heavy job. - public DataBoxHeavyJobSecrets(DcAccessSecurityCode dcAccessSecurityCode = default(DcAccessSecurityCode), IList cabinetPodSecrets = default(IList)) - : base(dcAccessSecurityCode) + /// for a DataBoxHeavy job. + public DataBoxHeavyJobSecrets(IList cabinetPodSecrets = default(IList)) { CabinetPodSecrets = cabinetPodSecrets; CustomInit(); @@ -49,7 +46,7 @@ public DataBoxHeavyJobSecrets() partial void CustomInit(); /// - /// Gets contains the list of secret objects for a databox heavy job. + /// Gets contains the list of secret objects for a DataBoxHeavy job. /// [JsonProperty(PropertyName = "cabinetPodSecrets")] public IList CabinetPodSecrets { get; private set; } diff --git a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/DataBoxHeavySecret.cs b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/DataBoxHeavySecret.cs index a889386d8d13..a1210969aad6 100644 --- a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/DataBoxHeavySecret.cs +++ b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/DataBoxHeavySecret.cs @@ -16,7 +16,7 @@ namespace Microsoft.Azure.Management.DataBox.Models using System.Linq; /// - /// The secrets related to a databox heavy. + /// The secrets related to a DataBoxHeavy. /// public partial class DataBoxHeavySecret { 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 22b3ae5e9aee..ca0028985a4d 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 @@ -16,7 +16,7 @@ namespace Microsoft.Azure.Management.DataBox.Models using System.Linq; /// - /// Databox Job Details + /// DataBox Job Details /// [Newtonsoft.Json.JsonObject("DataBox")] public partial class DataBoxJobDetails : JobDetails @@ -38,7 +38,7 @@ public DataBoxJobDetails() /// customer. /// Destination account /// details. - /// The expected size of the + /// The expected size of the /// data, which needs to be transferred in this job, in /// terabytes. /// List of stages that run in the job. @@ -56,13 +56,10 @@ public DataBoxJobDetails() /// the chain of custody logs /// Copy progress per storage /// account. - /// Set Device password for unlocking - /// Databox - public DataBoxJobDetails(ContactDetails contactDetails, ShippingAddress shippingAddress, IList destinationAccountDetails, int? expectedDataSizeInTerabytes = default(int?), IList jobStages = default(IList), PackageShippingDetails deliveryPackage = default(PackageShippingDetails), PackageShippingDetails returnPackage = default(PackageShippingDetails), IList errorDetails = default(IList), Preferences preferences = default(Preferences), IList copyLogDetails = default(IList), string reverseShipmentLabelSasKey = default(string), string chainOfCustodySasKey = default(string), IList copyProgress = default(IList), string devicePassword = default(string)) - : base(contactDetails, shippingAddress, destinationAccountDetails, expectedDataSizeInTerabytes, jobStages, deliveryPackage, returnPackage, errorDetails, preferences, copyLogDetails, reverseShipmentLabelSasKey, chainOfCustodySasKey) + public DataBoxJobDetails(ContactDetails contactDetails, ShippingAddress shippingAddress, IList destinationAccountDetails, int? expectedDataSizeInTeraBytes = default(int?), IList jobStages = default(IList), PackageShippingDetails deliveryPackage = default(PackageShippingDetails), PackageShippingDetails returnPackage = default(PackageShippingDetails), IList errorDetails = default(IList), Preferences preferences = default(Preferences), IList copyLogDetails = default(IList), string reverseShipmentLabelSasKey = default(string), string chainOfCustodySasKey = default(string), IList copyProgress = default(IList)) + : base(contactDetails, shippingAddress, destinationAccountDetails, expectedDataSizeInTeraBytes, jobStages, deliveryPackage, returnPackage, errorDetails, preferences, copyLogDetails, reverseShipmentLabelSasKey, chainOfCustodySasKey) { CopyProgress = copyProgress; - DevicePassword = devicePassword; CustomInit(); } @@ -77,12 +74,6 @@ public DataBoxJobDetails() [JsonProperty(PropertyName = "copyProgress")] public IList CopyProgress { get; private set; } - /// - /// Gets or sets set Device password for unlocking Databox - /// - [JsonProperty(PropertyName = "devicePassword")] - public string DevicePassword { get; set; } - /// /// Validate the object. /// diff --git a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/DataBoxScheduleAvailabilityRequest.cs b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/DataBoxScheduleAvailabilityRequest.cs deleted file mode 100644 index 6ac87e14452d..000000000000 --- a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/DataBoxScheduleAvailabilityRequest.cs +++ /dev/null @@ -1,61 +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 System.Linq; - - /// - /// Request body to get the availability for scheduling data box orders - /// orders. - /// - [Newtonsoft.Json.JsonObject("DataBox")] - public partial class DataBoxScheduleAvailabilityRequest : ScheduleAvailabilityRequest - { - /// - /// Initializes a new instance of the - /// DataBoxScheduleAvailabilityRequest class. - /// - public DataBoxScheduleAvailabilityRequest() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the - /// DataBoxScheduleAvailabilityRequest class. - /// - /// Location for data transfer. - /// For locations check: - /// https://management.azure.com/subscriptions/SUBSCRIPTIONID/locations?api-version=2018-01-01 - public DataBoxScheduleAvailabilityRequest(string storageLocation) - : base(storageLocation) - { - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public override void Validate() - { - base.Validate(); - } - } -} diff --git a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/DataDestinationDetailsValidationRequest.cs b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/DataDestinationDetailsValidationRequest.cs deleted file mode 100644 index b9e1edfb176a..000000000000 --- a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/DataDestinationDetailsValidationRequest.cs +++ /dev/null @@ -1,83 +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; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// Request to validate data destination details. - /// - [Newtonsoft.Json.JsonObject("ValidateDataDestinationDetails")] - public partial class DataDestinationDetailsValidationRequest : ValidationInputRequest - { - /// - /// Initializes a new instance of the - /// DataDestinationDetailsValidationRequest class. - /// - public DataDestinationDetailsValidationRequest() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the - /// DataDestinationDetailsValidationRequest class. - /// - /// Destination account details - /// list. - /// Location of stamp or geo. - public DataDestinationDetailsValidationRequest(IList destinationAccountDetails, string location) - { - DestinationAccountDetails = destinationAccountDetails; - Location = location; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets destination account details list. - /// - [JsonProperty(PropertyName = "destinationAccountDetails")] - public IList DestinationAccountDetails { get; set; } - - /// - /// Gets or sets location of stamp or geo. - /// - [JsonProperty(PropertyName = "location")] - public string Location { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (DestinationAccountDetails == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "DestinationAccountDetails"); - } - if (Location == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Location"); - } - } - } -} diff --git a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/DataDestinationDetailsValidationResponseProperties.cs b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/DataDestinationDetailsValidationResponseProperties.cs deleted file mode 100644 index cf77b4b3db2f..000000000000 --- a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/DataDestinationDetailsValidationResponseProperties.cs +++ /dev/null @@ -1,59 +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 System.Linq; - - /// - /// Properties of data destination details validation response. - /// - [Newtonsoft.Json.JsonObject("ValidateDataDestinationDetails")] - public partial class DataDestinationDetailsValidationResponseProperties : ValidationInputResponse - { - /// - /// Initializes a new instance of the - /// DataDestinationDetailsValidationResponseProperties class. - /// - public DataDestinationDetailsValidationResponseProperties() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the - /// DataDestinationDetailsValidationResponseProperties class. - /// - /// Error code and message of validation - /// response. - /// Data destination details validation status. - /// Possible values include: 'Valid', 'Invalid', 'Skipped' - public DataDestinationDetailsValidationResponseProperties(Error error = default(Error), ValidationStatus? status = default(ValidationStatus?)) - : base(error) - { - Status = status; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets data destination details validation status. Possible values - /// include: 'Valid', 'Invalid', 'Skipped' - /// - [JsonProperty(PropertyName = "status")] - public ValidationStatus? Status { get; private set; } - - } -} diff --git a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/DataDestinationType.cs b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/DataDestinationType.cs deleted file mode 100644 index 4e4cd79baad5..000000000000 --- a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/DataDestinationType.cs +++ /dev/null @@ -1,66 +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 DataDestinationType. - /// - [JsonConverter(typeof(StringEnumConverter))] - public enum DataDestinationType - { - /// - /// Storage Accounts . - /// - [EnumMember(Value = "StorageAccount")] - StorageAccount, - /// - /// Azure Managed disk storage. - /// - [EnumMember(Value = "ManagedDisk")] - ManagedDisk - } - internal static class DataDestinationTypeEnumExtension - { - internal static string ToSerializedValue(this DataDestinationType? value) - { - return value == null ? null : ((DataDestinationType)value).ToSerializedValue(); - } - - internal static string ToSerializedValue(this DataDestinationType value) - { - switch( value ) - { - case DataDestinationType.StorageAccount: - return "StorageAccount"; - case DataDestinationType.ManagedDisk: - return "ManagedDisk"; - } - return null; - } - - internal static DataDestinationType? ParseDataDestinationType(this string value) - { - switch( value ) - { - case "StorageAccount": - return DataDestinationType.StorageAccount; - case "ManagedDisk": - return DataDestinationType.ManagedDisk; - } - return null; - } - } -} 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 baf1c84a336b..0e940d5fa253 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 @@ -16,7 +16,7 @@ namespace Microsoft.Azure.Management.DataBox.Models using System.Linq; /// - /// The secrets related to a databox job. + /// The secrets related to a DataBox job. /// [Newtonsoft.Json.JsonObject("DataBox")] public partial class DataboxJobSecrets : JobSecrets @@ -32,12 +32,9 @@ public DataboxJobSecrets() /// /// Initializes a new instance of the DataboxJobSecrets class. /// - /// Dc Access Security Code for - /// Customer Managed Shipping /// Contains the list of secret objects for a /// job. - public DataboxJobSecrets(DcAccessSecurityCode dcAccessSecurityCode = default(DcAccessSecurityCode), IList podSecrets = default(IList)) - : base(dcAccessSecurityCode) + public DataboxJobSecrets(IList podSecrets = default(IList)) { PodSecrets = podSecrets; CustomInit(); diff --git a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/DcAccessSecurityCode.cs b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/DcAccessSecurityCode.cs deleted file mode 100644 index d1e663694f7b..000000000000 --- a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/DcAccessSecurityCode.cs +++ /dev/null @@ -1,61 +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 System.Linq; - - /// - /// Dc Access Security code for device. - /// - public partial class DcAccessSecurityCode - { - /// - /// Initializes a new instance of the DcAccessSecurityCode class. - /// - public DcAccessSecurityCode() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the DcAccessSecurityCode class. - /// - /// Dc Access Code for dispatching - /// from DC. - /// Dc Access code for dropping off - /// at DC. - public DcAccessSecurityCode(string forwardDcAccessCode = default(string), string reverseDcAccessCode = default(string)) - { - ForwardDcAccessCode = forwardDcAccessCode; - ReverseDcAccessCode = reverseDcAccessCode; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets dc Access Code for dispatching from DC. - /// - [JsonProperty(PropertyName = "forwardDcAccessCode")] - public string ForwardDcAccessCode { get; set; } - - /// - /// Gets or sets dc Access code for dropping off at DC. - /// - [JsonProperty(PropertyName = "reverseDcAccessCode")] - public string ReverseDcAccessCode { get; set; } - - } -} diff --git a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/DestinationAccountDetails.cs b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/DestinationAccountDetails.cs index a2bebe2f6b63..4ff6391df53c 100644 --- a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/DestinationAccountDetails.cs +++ b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/DestinationAccountDetails.cs @@ -14,7 +14,7 @@ namespace Microsoft.Azure.Management.DataBox.Models using System.Linq; /// - /// Details of the destination storage accounts. + /// Details of the destination of the data /// public partial class DestinationAccountDetails { @@ -31,12 +31,9 @@ public DestinationAccountDetails() /// /// Arm Id of the destination where the data /// has to be moved. - /// Share password to be shared by all - /// shares in SA. - public DestinationAccountDetails(string accountId = default(string), string sharePassword = default(string)) + public DestinationAccountDetails(string accountId = default(string)) { AccountId = accountId; - SharePassword = sharePassword; CustomInit(); } @@ -52,11 +49,5 @@ public DestinationAccountDetails() [JsonProperty(PropertyName = "accountId")] public string AccountId { get; set; } - /// - /// Gets or sets share password to be shared by all shares in SA. - /// - [JsonProperty(PropertyName = "sharePassword")] - public string SharePassword { get; set; } - } } diff --git a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/DestinationManagedDiskDetails.cs b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/DestinationManagedDiskDetails.cs index 2e6d0b4e42a7..64cf57e9bdcc 100644 --- a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/DestinationManagedDiskDetails.cs +++ b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/DestinationManagedDiskDetails.cs @@ -39,10 +39,8 @@ public DestinationManagedDiskDetails() /// that can be used to copy the vhd for staging. /// Arm Id of the destination where the data /// has to be moved. - /// Share password to be shared by all - /// shares in SA. - public DestinationManagedDiskDetails(string resourceGroupId, string stagingStorageAccountId, string accountId = default(string), string sharePassword = default(string)) - : base(accountId, sharePassword) + public DestinationManagedDiskDetails(string resourceGroupId, string stagingStorageAccountId, string accountId = default(string)) + : base(accountId) { ResourceGroupId = resourceGroupId; StagingStorageAccountId = stagingStorageAccountId; diff --git a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/DestinationStorageAccountDetails.cs b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/DestinationStorageAccountDetails.cs index 5428ac436663..ff777c4e45da 100644 --- a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/DestinationStorageAccountDetails.cs +++ b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/DestinationStorageAccountDetails.cs @@ -37,10 +37,8 @@ public DestinationStorageAccountDetails() /// Id. /// Arm Id of the destination where the data /// has to be moved. - /// Share password to be shared by all - /// shares in SA. - public DestinationStorageAccountDetails(string storageAccountId, string accountId = default(string), string sharePassword = default(string)) - : base(accountId, sharePassword) + public DestinationStorageAccountDetails(string storageAccountId, string accountId = default(string)) + : base(accountId) { StorageAccountId = storageAccountId; CustomInit(); diff --git a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/DestinationToServiceLocationMap.cs b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/DestinationToServiceLocationMap.cs index 953a74df90a4..4a866aed7bea 100644 --- a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/DestinationToServiceLocationMap.cs +++ b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/DestinationToServiceLocationMap.cs @@ -14,7 +14,7 @@ namespace Microsoft.Azure.Management.DataBox.Models using System.Linq; /// - /// Map of destination location to service location. + /// Map of destination location to service location /// public partial class DestinationToServiceLocationMap { diff --git a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/DiskScheduleAvailabilityRequest.cs b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/DiskScheduleAvailabilityRequest.cs deleted file mode 100644 index c467c222cdbe..000000000000 --- a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/DiskScheduleAvailabilityRequest.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 Newtonsoft.Json; - using System.Linq; - - /// - /// Request body to get the availability for scheduling disk orders. - /// - [Newtonsoft.Json.JsonObject("DataBoxDisk")] - public partial class DiskScheduleAvailabilityRequest : ScheduleAvailabilityRequest - { - /// - /// Initializes a new instance of the DiskScheduleAvailabilityRequest - /// class. - /// - public DiskScheduleAvailabilityRequest() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the DiskScheduleAvailabilityRequest - /// class. - /// - /// Location for data transfer. - /// For locations check: - /// https://management.azure.com/subscriptions/SUBSCRIPTIONID/locations?api-version=2018-01-01 - /// The expected size of the - /// data, which needs to be transferred in this job, in - /// terabytes. - public DiskScheduleAvailabilityRequest(string storageLocation, int expectedDataSizeInTerabytes) - : base(storageLocation) - { - ExpectedDataSizeInTerabytes = expectedDataSizeInTerabytes; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets the expected size of the data, which needs to be - /// transferred in this job, in terabytes. - /// - [JsonProperty(PropertyName = "expectedDataSizeInTerabytes")] - public int ExpectedDataSizeInTerabytes { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public override void Validate() - { - base.Validate(); - } - } -} diff --git a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/HeavyScheduleAvailabilityRequest.cs b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/HeavyScheduleAvailabilityRequest.cs deleted file mode 100644 index d676d5babb68..000000000000 --- a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/HeavyScheduleAvailabilityRequest.cs +++ /dev/null @@ -1,60 +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 System.Linq; - - /// - /// Request body to get the availability for scheduling heavy orders. - /// - [Newtonsoft.Json.JsonObject("DataBoxHeavy")] - public partial class HeavyScheduleAvailabilityRequest : ScheduleAvailabilityRequest - { - /// - /// Initializes a new instance of the HeavyScheduleAvailabilityRequest - /// class. - /// - public HeavyScheduleAvailabilityRequest() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the HeavyScheduleAvailabilityRequest - /// class. - /// - /// Location for data transfer. - /// For locations check: - /// https://management.azure.com/subscriptions/SUBSCRIPTIONID/locations?api-version=2018-01-01 - public HeavyScheduleAvailabilityRequest(string storageLocation) - : base(storageLocation) - { - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public override void Validate() - { - base.Validate(); - } - } -} diff --git a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/JobDeliveryInfo.cs b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/JobDeliveryInfo.cs deleted file mode 100644 index 39cad79953cd..000000000000 --- a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/JobDeliveryInfo.cs +++ /dev/null @@ -1,51 +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 System.Linq; - - /// - /// Additional delivery info. - /// - public partial class JobDeliveryInfo - { - /// - /// Initializes a new instance of the JobDeliveryInfo class. - /// - public JobDeliveryInfo() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the JobDeliveryInfo class. - /// - /// Scheduled date time. - public JobDeliveryInfo(System.DateTime? scheduledDateTime = default(System.DateTime?)) - { - ScheduledDateTime = scheduledDateTime; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets scheduled date time. - /// - [JsonProperty(PropertyName = "scheduledDateTime")] - public System.DateTime? ScheduledDateTime { get; set; } - - } -} diff --git a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/JobDeliveryType.cs b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/JobDeliveryType.cs deleted file mode 100644 index da6a84d748fb..000000000000 --- a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/JobDeliveryType.cs +++ /dev/null @@ -1,66 +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 JobDeliveryType. - /// - [JsonConverter(typeof(StringEnumConverter))] - public enum JobDeliveryType - { - /// - /// Non Scheduled job. - /// - [EnumMember(Value = "NonScheduled")] - NonScheduled, - /// - /// Scheduled job. - /// - [EnumMember(Value = "Scheduled")] - Scheduled - } - internal static class JobDeliveryTypeEnumExtension - { - internal static string ToSerializedValue(this JobDeliveryType? value) - { - return value == null ? null : ((JobDeliveryType)value).ToSerializedValue(); - } - - internal static string ToSerializedValue(this JobDeliveryType value) - { - switch( value ) - { - case JobDeliveryType.NonScheduled: - return "NonScheduled"; - case JobDeliveryType.Scheduled: - return "Scheduled"; - } - return null; - } - - internal static JobDeliveryType? ParseJobDeliveryType(this string value) - { - switch( value ) - { - case "NonScheduled": - return JobDeliveryType.NonScheduled; - case "Scheduled": - return JobDeliveryType.Scheduled; - } - return null; - } - } -} 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 f2b3359d91d8..1cf11029a8be 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 @@ -38,7 +38,7 @@ public JobDetails() /// customer. /// Destination account /// details. - /// The expected size of the + /// The expected size of the /// data, which needs to be transferred in this job, in /// terabytes. /// List of stages that run in the job. @@ -54,9 +54,9 @@ public JobDetails() /// download the return shipment label /// Shared access key to download /// the chain of custody logs - public JobDetails(ContactDetails contactDetails, ShippingAddress shippingAddress, IList destinationAccountDetails, int? expectedDataSizeInTerabytes = default(int?), IList jobStages = default(IList), PackageShippingDetails deliveryPackage = default(PackageShippingDetails), PackageShippingDetails returnPackage = default(PackageShippingDetails), IList errorDetails = default(IList), Preferences preferences = default(Preferences), IList copyLogDetails = default(IList), string reverseShipmentLabelSasKey = default(string), string chainOfCustodySasKey = default(string)) + public JobDetails(ContactDetails contactDetails, ShippingAddress shippingAddress, IList destinationAccountDetails, int? expectedDataSizeInTeraBytes = default(int?), IList jobStages = default(IList), PackageShippingDetails deliveryPackage = default(PackageShippingDetails), PackageShippingDetails returnPackage = default(PackageShippingDetails), IList errorDetails = default(IList), Preferences preferences = default(Preferences), IList copyLogDetails = default(IList), string reverseShipmentLabelSasKey = default(string), string chainOfCustodySasKey = default(string)) { - ExpectedDataSizeInTerabytes = expectedDataSizeInTerabytes; + ExpectedDataSizeInTeraBytes = expectedDataSizeInTeraBytes; JobStages = jobStages; ContactDetails = contactDetails; ShippingAddress = shippingAddress; @@ -80,8 +80,8 @@ public JobDetails() /// Gets or sets the expected size of the data, which needs to be /// transferred in this job, in terabytes. /// - [JsonProperty(PropertyName = "expectedDataSizeInTerabytes")] - public int? ExpectedDataSizeInTerabytes { get; set; } + [JsonProperty(PropertyName = "expectedDataSizeInTeraBytes")] + public int? ExpectedDataSizeInTeraBytes { get; set; } /// /// Gets list of stages that run in the job. @@ -177,10 +177,6 @@ public virtual void Validate() { ShippingAddress.Validate(); } - if (Preferences != null) - { - Preferences.Validate(); - } } } } 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 33b22944e4fc..8f422f2a21c4 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 @@ -54,23 +54,17 @@ public JobResource() /// 'Dispatched', 'Delivered', 'PickedUp', 'AtAzureDC', 'DataCopy', /// 'Completed', 'CompletedWithErrors', 'Cancelled', /// 'Failed_IssueReportedAtCustomer', 'Failed_IssueDetectedAtAzureDC', - /// 'Aborted', 'CompletedWithWarnings', 'ReadyToDispatchFromAzureDC', - /// 'ReadyToReceiveAtAzureDC' + /// 'Aborted' /// Time at which the job was started in UTC /// ISO 8601 format. /// Top level error for the job. /// Details of a job run. This field will only be /// sent for expand details filter. /// Reason for cancellation. - /// Delivery type of Job. Possible values - /// include: 'NonScheduled', 'Scheduled' - /// Delivery Info of Job. - /// Flag to indicate cancellation - /// of scheduled job. /// Name of the object. /// Id of the object. /// Type of the object. - public JobResource(string location, Sku sku, IDictionary tags = default(IDictionary), bool? isCancellable = default(bool?), bool? isDeletable = default(bool?), bool? isShippingAddressEditable = default(bool?), StageName? status = default(StageName?), System.DateTime? startTime = default(System.DateTime?), Error error = default(Error), JobDetails details = default(JobDetails), string cancellationReason = default(string), JobDeliveryType? deliveryType = default(JobDeliveryType?), JobDeliveryInfo deliveryInfo = default(JobDeliveryInfo), bool? isCancellableWithoutFee = default(bool?), string name = default(string), string id = default(string), string type = default(string)) + public JobResource(string location, Sku sku, IDictionary tags = default(IDictionary), bool? isCancellable = default(bool?), bool? isDeletable = default(bool?), bool? isShippingAddressEditable = default(bool?), StageName? status = default(StageName?), System.DateTime? startTime = default(System.DateTime?), Error error = default(Error), JobDetails details = default(JobDetails), string cancellationReason = default(string), string name = default(string), string id = default(string), string type = default(string)) : base(location, sku, tags) { IsCancellable = isCancellable; @@ -81,9 +75,6 @@ public JobResource() Error = error; Details = details; CancellationReason = cancellationReason; - DeliveryType = deliveryType; - DeliveryInfo = deliveryInfo; - IsCancellableWithoutFee = isCancellableWithoutFee; Name = name; Id = id; Type = type; @@ -119,8 +110,7 @@ public JobResource() /// 'Delivered', 'PickedUp', 'AtAzureDC', 'DataCopy', 'Completed', /// 'CompletedWithErrors', 'Cancelled', /// 'Failed_IssueReportedAtCustomer', 'Failed_IssueDetectedAtAzureDC', - /// 'Aborted', 'CompletedWithWarnings', 'ReadyToDispatchFromAzureDC', - /// 'ReadyToReceiveAtAzureDC' + /// 'Aborted' /// [JsonProperty(PropertyName = "properties.status")] public StageName? Status { get; private set; } @@ -150,25 +140,6 @@ public JobResource() [JsonProperty(PropertyName = "properties.cancellationReason")] public string CancellationReason { get; private set; } - /// - /// Gets or sets delivery type of Job. Possible values include: - /// 'NonScheduled', 'Scheduled' - /// - [JsonProperty(PropertyName = "properties.deliveryType")] - public JobDeliveryType? DeliveryType { get; set; } - - /// - /// Gets or sets delivery Info of Job. - /// - [JsonProperty(PropertyName = "properties.deliveryInfo")] - public JobDeliveryInfo DeliveryInfo { get; set; } - - /// - /// Gets flag to indicate cancellation of scheduled job. - /// - [JsonProperty(PropertyName = "properties.isCancellableWithoutFee")] - public bool? IsCancellableWithoutFee { get; private set; } - /// /// Gets name of the object. /// 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 35e130fe7ecd..6e020016460d 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,7 +10,6 @@ namespace Microsoft.Azure.Management.DataBox.Models { - using Newtonsoft.Json; using System.Linq; /// @@ -26,27 +25,11 @@ public JobSecrets() CustomInit(); } - /// - /// Initializes a new instance of the JobSecrets class. - /// - /// Dc Access Security Code for - /// Customer Managed Shipping - public JobSecrets(DcAccessSecurityCode dcAccessSecurityCode = default(DcAccessSecurityCode)) - { - DcAccessSecurityCode = dcAccessSecurityCode; - CustomInit(); - } /// /// An initialization method that performs custom operations like setting defaults /// partial void CustomInit(); - /// - /// Gets or sets dc Access Security Code for Customer Managed Shipping - /// - [JsonProperty(PropertyName = "dcAccessSecurityCode")] - public DcAccessSecurityCode DcAccessSecurityCode { get; set; } - } } 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 cd7982fac995..9383486923d6 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 @@ -36,8 +36,7 @@ public JobStages() /// 'Delivered', 'PickedUp', 'AtAzureDC', 'DataCopy', 'Completed', /// 'CompletedWithErrors', 'Cancelled', /// 'Failed_IssueReportedAtCustomer', 'Failed_IssueDetectedAtAzureDC', - /// 'Aborted', 'CompletedWithWarnings', 'ReadyToDispatchFromAzureDC', - /// 'ReadyToReceiveAtAzureDC' + /// 'Aborted' /// Display name of the job stage. /// Status of the job stage. Possible values /// include: 'None', 'InProgress', 'Succeeded', 'Failed', 'Cancelled', @@ -68,8 +67,7 @@ public JobStages() /// 'PickedUp', 'AtAzureDC', 'DataCopy', 'Completed', /// 'CompletedWithErrors', 'Cancelled', /// 'Failed_IssueReportedAtCustomer', 'Failed_IssueDetectedAtAzureDC', - /// 'Aborted', 'CompletedWithWarnings', 'ReadyToDispatchFromAzureDC', - /// 'ReadyToReceiveAtAzureDC' + /// 'Aborted' /// [JsonProperty(PropertyName = "stageName")] public StageName? StageName { get; private set; } diff --git a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/OverallValidationStatus.cs b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/OverallValidationStatus.cs deleted file mode 100644 index b7628c4bba20..000000000000 --- a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/OverallValidationStatus.cs +++ /dev/null @@ -1,75 +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 OverallValidationStatus. - /// - [JsonConverter(typeof(StringEnumConverter))] - public enum OverallValidationStatus - { - /// - /// Every input request is valid. - /// - [EnumMember(Value = "AllValidToProceed")] - AllValidToProceed, - /// - /// Some input requests are not valid. - /// - [EnumMember(Value = "InputsRevisitRequired")] - InputsRevisitRequired, - /// - /// Certain input validations skipped. - /// - [EnumMember(Value = "CertainInputValidationsSkipped")] - CertainInputValidationsSkipped - } - internal static class OverallValidationStatusEnumExtension - { - internal static string ToSerializedValue(this OverallValidationStatus? value) - { - return value == null ? null : ((OverallValidationStatus)value).ToSerializedValue(); - } - - internal static string ToSerializedValue(this OverallValidationStatus value) - { - switch( value ) - { - case OverallValidationStatus.AllValidToProceed: - return "AllValidToProceed"; - case OverallValidationStatus.InputsRevisitRequired: - return "InputsRevisitRequired"; - case OverallValidationStatus.CertainInputValidationsSkipped: - return "CertainInputValidationsSkipped"; - } - return null; - } - - internal static OverallValidationStatus? ParseOverallValidationStatus(this string value) - { - switch( value ) - { - case "AllValidToProceed": - return OverallValidationStatus.AllValidToProceed; - case "InputsRevisitRequired": - return OverallValidationStatus.InputsRevisitRequired; - case "CertainInputValidationsSkipped": - return OverallValidationStatus.CertainInputValidationsSkipped; - } - return null; - } - } -} 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 58b09eb6dc6b..f91d32888ebe 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 @@ -31,14 +31,9 @@ public Preferences() /// /// Initializes a new instance of the Preferences class. /// - /// Preferred Data Center - /// Region. - /// Preferences related to the - /// shipment logistics of the sku. - public Preferences(IList preferredDataCenterRegion = default(IList), TransportPreferences transportPreferences = default(TransportPreferences)) + public Preferences(IList preferredDataCenterRegion = default(IList)) { PreferredDataCenterRegion = preferredDataCenterRegion; - TransportPreferences = transportPreferences; CustomInit(); } @@ -48,30 +43,9 @@ public Preferences() partial void CustomInit(); /// - /// Gets or sets preferred Data Center Region. /// [JsonProperty(PropertyName = "preferredDataCenterRegion")] public IList PreferredDataCenterRegion { get; set; } - /// - /// Gets or sets preferences related to the shipment logistics of the - /// sku. - /// - [JsonProperty(PropertyName = "transportPreferences")] - public TransportPreferences TransportPreferences { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (TransportPreferences != null) - { - TransportPreferences.Validate(); - } - } } } diff --git a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/PreferencesValidationRequest.cs b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/PreferencesValidationRequest.cs deleted file mode 100644 index 404fd13cc398..000000000000 --- a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/PreferencesValidationRequest.cs +++ /dev/null @@ -1,80 +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 System.Linq; - - /// - /// Request to validate preference of transport and data center. - /// - [Newtonsoft.Json.JsonObject("ValidatePreferences")] - public partial class PreferencesValidationRequest : ValidationInputRequest - { - /// - /// Initializes a new instance of the PreferencesValidationRequest - /// class. - /// - public PreferencesValidationRequest() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the PreferencesValidationRequest - /// class. - /// - /// Device type to be used for the job. - /// Possible values include: 'DataBox', 'DataBoxDisk', - /// 'DataBoxHeavy' - /// Preference requested with respect to - /// transport type and data center - public PreferencesValidationRequest(SkuName deviceType, Preferences preference = default(Preferences)) - { - Preference = preference; - DeviceType = deviceType; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets preference requested with respect to transport type - /// and data center - /// - [JsonProperty(PropertyName = "preference")] - public Preferences Preference { get; set; } - - /// - /// Gets or sets device type to be used for the job. Possible values - /// include: 'DataBox', 'DataBoxDisk', 'DataBoxHeavy' - /// - [JsonProperty(PropertyName = "deviceType")] - public SkuName DeviceType { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (Preference != null) - { - Preference.Validate(); - } - } - } -} 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 deleted file mode 100644 index f464979dc99d..000000000000 --- a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/PreferencesValidationResponseProperties.cs +++ /dev/null @@ -1,60 +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 System.Linq; - - /// - /// Properties of data center and transport preference validation response. - /// - [Newtonsoft.Json.JsonObject("ValidatePreferences")] - public partial class PreferencesValidationResponseProperties : ValidationInputResponse - { - /// - /// Initializes a new instance of the - /// PreferencesValidationResponseProperties class. - /// - public PreferencesValidationResponseProperties() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the - /// PreferencesValidationResponseProperties class. - /// - /// Error code and message of validation - /// response. - /// Validation status of requested data center and - /// transport. Possible values include: 'Valid', 'Invalid', - /// 'Skipped' - public PreferencesValidationResponseProperties(Error error = default(Error), ValidationStatus? status = default(ValidationStatus?)) - : base(error) - { - Status = status; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets validation status of requested data center and transport. - /// Possible values include: 'Valid', 'Invalid', 'Skipped' - /// - [JsonProperty(PropertyName = "status")] - public ValidationStatus? Status { get; private set; } - - } -} diff --git a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/RegionConfigurationRequest.cs b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/RegionConfigurationRequest.cs deleted file mode 100644 index 09a05e420a6a..000000000000 --- a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/RegionConfigurationRequest.cs +++ /dev/null @@ -1,76 +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 System.Linq; - - /// - /// Request body to get the configuration for the region. - /// - public partial class RegionConfigurationRequest - { - /// - /// Initializes a new instance of the RegionConfigurationRequest class. - /// - public RegionConfigurationRequest() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the RegionConfigurationRequest class. - /// - /// Request body to get the - /// availability for scheduling orders. - /// Request body to get the - /// transport availability for given sku. - public RegionConfigurationRequest(ScheduleAvailabilityRequest scheduleAvailabilityRequest = default(ScheduleAvailabilityRequest), TransportAvailabilityRequest transportAvailabilityRequest = default(TransportAvailabilityRequest)) - { - ScheduleAvailabilityRequest = scheduleAvailabilityRequest; - TransportAvailabilityRequest = transportAvailabilityRequest; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets request body to get the availability for scheduling - /// orders. - /// - [JsonProperty(PropertyName = "scheduleAvailabilityRequest")] - public ScheduleAvailabilityRequest ScheduleAvailabilityRequest { get; set; } - - /// - /// Gets or sets request body to get the transport availability for - /// given sku. - /// - [JsonProperty(PropertyName = "transportAvailabilityRequest")] - public TransportAvailabilityRequest TransportAvailabilityRequest { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (ScheduleAvailabilityRequest != null) - { - ScheduleAvailabilityRequest.Validate(); - } - } - } -} diff --git a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/RegionConfigurationResponse.cs b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/RegionConfigurationResponse.cs deleted file mode 100644 index 35b27b4081ef..000000000000 --- a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/RegionConfigurationResponse.cs +++ /dev/null @@ -1,63 +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 System.Linq; - - /// - /// Configuration response specific to a region. - /// - public partial class RegionConfigurationResponse - { - /// - /// Initializes a new instance of the RegionConfigurationResponse - /// class. - /// - public RegionConfigurationResponse() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the RegionConfigurationResponse - /// class. - /// - /// Schedule availability - /// for given sku in a region. - /// Transport options - /// available for given sku in a region. - public RegionConfigurationResponse(ScheduleAvailabilityResponse scheduleAvailabilityResponse = default(ScheduleAvailabilityResponse), TransportAvailabilityResponse transportAvailabilityResponse = default(TransportAvailabilityResponse)) - { - ScheduleAvailabilityResponse = scheduleAvailabilityResponse; - TransportAvailabilityResponse = transportAvailabilityResponse; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets schedule availability for given sku in a region. - /// - [JsonProperty(PropertyName = "scheduleAvailabilityResponse")] - public ScheduleAvailabilityResponse ScheduleAvailabilityResponse { get; private set; } - - /// - /// Gets transport options available for given sku in a region. - /// - [JsonProperty(PropertyName = "transportAvailabilityResponse")] - public TransportAvailabilityResponse TransportAvailabilityResponse { get; private set; } - - } -} diff --git a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/ScheduleAvailabilityRequest.cs b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/ScheduleAvailabilityRequest.cs deleted file mode 100644 index be0fad833fe5..000000000000 --- a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/ScheduleAvailabilityRequest.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; - using Newtonsoft.Json; - using System.Linq; - - /// - /// Request body to get the availability for scheduling orders. - /// - public partial class ScheduleAvailabilityRequest - { - /// - /// Initializes a new instance of the ScheduleAvailabilityRequest - /// class. - /// - public ScheduleAvailabilityRequest() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the ScheduleAvailabilityRequest - /// class. - /// - /// Location for data transfer. - /// For locations check: - /// https://management.azure.com/subscriptions/SUBSCRIPTIONID/locations?api-version=2018-01-01 - public ScheduleAvailabilityRequest(string storageLocation) - { - StorageLocation = storageLocation; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets location for data transfer. - /// For locations check: - /// https://management.azure.com/subscriptions/SUBSCRIPTIONID/locations?api-version=2018-01-01 - /// - [JsonProperty(PropertyName = "storageLocation")] - public string StorageLocation { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (StorageLocation == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "StorageLocation"); - } - } - } -} diff --git a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/ScheduleAvailabilityResponse.cs b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/ScheduleAvailabilityResponse.cs deleted file mode 100644 index 3a54174fd1d3..000000000000 --- a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/ScheduleAvailabilityResponse.cs +++ /dev/null @@ -1,56 +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 System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// Schedule availability response for given sku in a region. - /// - public partial class ScheduleAvailabilityResponse - { - /// - /// Initializes a new instance of the ScheduleAvailabilityResponse - /// class. - /// - public ScheduleAvailabilityResponse() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the ScheduleAvailabilityResponse - /// class. - /// - /// List of dates available to - /// schedule - public ScheduleAvailabilityResponse(IList availableDates = default(IList)) - { - AvailableDates = availableDates; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets list of dates available to schedule - /// - [JsonProperty(PropertyName = "availableDates")] - public IList AvailableDates { get; private set; } - - } -} diff --git a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/ShareDestinationFormatType.cs b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/ShareDestinationFormatType.cs index 398ff925fe92..4be1aecb4abe 100644 --- a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/ShareDestinationFormatType.cs +++ b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/ShareDestinationFormatType.cs @@ -27,7 +27,7 @@ public enum ShareDestinationFormatType [EnumMember(Value = "UnknownType")] UnknownType, /// - /// Storsimple data format. + /// StorSimple data format. /// [EnumMember(Value = "HCS")] HCS, diff --git a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/SkuAvailabilityValidationRequest.cs b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/SkuAvailabilityValidationRequest.cs deleted file mode 100644 index 80a49cecb2b2..000000000000 --- a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/SkuAvailabilityValidationRequest.cs +++ /dev/null @@ -1,111 +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; - using Newtonsoft.Json; - using System.Linq; - - /// - /// Request to validate sku availability. - /// - [Newtonsoft.Json.JsonObject("ValidateSkuAvailability")] - public partial class SkuAvailabilityValidationRequest : ValidationInputRequest - { - /// - /// Initializes a new instance of the SkuAvailabilityValidationRequest - /// class. - /// - public SkuAvailabilityValidationRequest() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the SkuAvailabilityValidationRequest - /// class. - /// - /// Device type to be used for the job. - /// Possible values include: 'DataBox', 'DataBoxDisk', - /// 'DataBoxHeavy' - /// ISO country code. Country for hardware - /// shipment. For codes check: - /// https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2#Officially_assigned_code_elements - /// Location for data transfer. For locations - /// check: - /// https://management.azure.com/subscriptions/SUBSCRIPTIONID/locations?api-version=2018-01-01 - public SkuAvailabilityValidationRequest(SkuName deviceType, string country, string location) - { - DeviceType = deviceType; - Country = country; - Location = location; - CustomInit(); - } - /// - /// Static constructor for SkuAvailabilityValidationRequest class. - /// - static SkuAvailabilityValidationRequest() - { - TransferType = "ImportToAzure"; - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets device type to be used for the job. Possible values - /// include: 'DataBox', 'DataBoxDisk', 'DataBoxHeavy' - /// - [JsonProperty(PropertyName = "deviceType")] - public SkuName DeviceType { get; set; } - - /// - /// Gets or sets ISO country code. Country for hardware shipment. For - /// codes check: - /// https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2#Officially_assigned_code_elements - /// - [JsonProperty(PropertyName = "country")] - public string Country { get; set; } - - /// - /// Gets or sets location for data transfer. For locations check: - /// https://management.azure.com/subscriptions/SUBSCRIPTIONID/locations?api-version=2018-01-01 - /// - [JsonProperty(PropertyName = "location")] - public string Location { get; set; } - - /// - /// Type of the transfer. - /// - [JsonProperty(PropertyName = "transferType")] - public static string TransferType { get; private set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (Country == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Country"); - } - if (Location == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Location"); - } - } - } -} 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 deleted file mode 100644 index d08306a38152..000000000000 --- a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/SkuAvailabilityValidationResponseProperties.cs +++ /dev/null @@ -1,59 +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 System.Linq; - - /// - /// Properties of sku availability validation response. - /// - [Newtonsoft.Json.JsonObject("ValidateSkuAvailability")] - public partial class SkuAvailabilityValidationResponseProperties : ValidationInputResponse - { - /// - /// Initializes a new instance of the - /// SkuAvailabilityValidationResponseProperties class. - /// - public SkuAvailabilityValidationResponseProperties() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the - /// SkuAvailabilityValidationResponseProperties class. - /// - /// Error code and message of validation - /// response. - /// Sku availability validation status. Possible - /// values include: 'Valid', 'Invalid', 'Skipped' - public SkuAvailabilityValidationResponseProperties(Error error = default(Error), ValidationStatus? status = default(ValidationStatus?)) - : base(error) - { - Status = status; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets sku availability validation status. Possible values include: - /// 'Valid', 'Invalid', 'Skipped' - /// - [JsonProperty(PropertyName = "status")] - public ValidationStatus? Status { get; private set; } - - } -} diff --git a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/SkuName.cs b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/SkuName.cs index ca1daf8d05be..a9aafce5f63a 100644 --- a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/SkuName.cs +++ b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/SkuName.cs @@ -22,17 +22,17 @@ namespace Microsoft.Azure.Management.DataBox.Models public enum SkuName { /// - /// Databox. + /// DataBox. /// [EnumMember(Value = "DataBox")] DataBox, /// - /// DataboxDisk. + /// DataBoxDisk. /// [EnumMember(Value = "DataBoxDisk")] DataBoxDisk, /// - /// DataboxHeavy. + /// DataBoxHeavy. /// [EnumMember(Value = "DataBoxHeavy")] DataBoxHeavy diff --git a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/StageName.cs b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/StageName.cs index 41990442852a..07b8228b8ff9 100644 --- a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/StageName.cs +++ b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/StageName.cs @@ -86,22 +86,7 @@ public enum StageName /// Order has been aborted. /// [EnumMember(Value = "Aborted")] - Aborted, - /// - /// Order has completed with warnings. - /// - [EnumMember(Value = "CompletedWithWarnings")] - CompletedWithWarnings, - /// - /// Device is ready to be handed to customer from Azure DC. - /// - [EnumMember(Value = "ReadyToDispatchFromAzureDC")] - ReadyToDispatchFromAzureDC, - /// - /// Device can be dropped off at Azure DC. - /// - [EnumMember(Value = "ReadyToReceiveAtAzureDC")] - ReadyToReceiveAtAzureDC + Aborted } internal static class StageNameEnumExtension { @@ -140,12 +125,6 @@ internal static string ToSerializedValue(this StageName value) return "Failed_IssueDetectedAtAzureDC"; case StageName.Aborted: return "Aborted"; - case StageName.CompletedWithWarnings: - return "CompletedWithWarnings"; - case StageName.ReadyToDispatchFromAzureDC: - return "ReadyToDispatchFromAzureDC"; - case StageName.ReadyToReceiveAtAzureDC: - return "ReadyToReceiveAtAzureDC"; } return null; } @@ -180,12 +159,6 @@ internal static string ToSerializedValue(this StageName value) return StageName.FailedIssueDetectedAtAzureDC; case "Aborted": return StageName.Aborted; - case "CompletedWithWarnings": - return StageName.CompletedWithWarnings; - case "ReadyToDispatchFromAzureDC": - return StageName.ReadyToDispatchFromAzureDC; - case "ReadyToReceiveAtAzureDC": - return StageName.ReadyToReceiveAtAzureDC; } return null; } diff --git a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/SubscriptionIsAllowedToCreateJobValidationRequest.cs b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/SubscriptionIsAllowedToCreateJobValidationRequest.cs deleted file mode 100644 index ea2984bea8d0..000000000000 --- a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/SubscriptionIsAllowedToCreateJobValidationRequest.cs +++ /dev/null @@ -1,38 +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 System.Linq; - - /// - /// Request to validate subscription permission to create jobs. - /// - [Newtonsoft.Json.JsonObject("ValidateSubscriptionIsAllowedToCreateJob")] - public partial class SubscriptionIsAllowedToCreateJobValidationRequest : ValidationInputRequest - { - /// - /// Initializes a new instance of the - /// SubscriptionIsAllowedToCreateJobValidationRequest class. - /// - public SubscriptionIsAllowedToCreateJobValidationRequest() - { - 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/SubscriptionIsAllowedToCreateJobValidationResponseProperties.cs b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/SubscriptionIsAllowedToCreateJobValidationResponseProperties.cs deleted file mode 100644 index e9aebdb24c52..000000000000 --- a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/SubscriptionIsAllowedToCreateJobValidationResponseProperties.cs +++ /dev/null @@ -1,61 +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 System.Linq; - - /// - /// Properties of subscription permission to create job validation - /// response. - /// - [Newtonsoft.Json.JsonObject("ValidateSubscriptionIsAllowedToCreateJob")] - public partial class SubscriptionIsAllowedToCreateJobValidationResponseProperties : ValidationInputResponse - { - /// - /// Initializes a new instance of the - /// SubscriptionIsAllowedToCreateJobValidationResponseProperties class. - /// - public SubscriptionIsAllowedToCreateJobValidationResponseProperties() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the - /// SubscriptionIsAllowedToCreateJobValidationResponseProperties class. - /// - /// Error code and message of validation - /// response. - /// Validation status of subscription permission - /// to create job. Possible values include: 'Valid', 'Invalid', - /// 'Skipped' - public SubscriptionIsAllowedToCreateJobValidationResponseProperties(Error error = default(Error), ValidationStatus? status = default(ValidationStatus?)) - : base(error) - { - Status = status; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets validation status of subscription permission to create job. - /// Possible values include: 'Valid', 'Invalid', 'Skipped' - /// - [JsonProperty(PropertyName = "status")] - public ValidationStatus? Status { get; private set; } - - } -} diff --git a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/TransportAvailabilityDetails.cs b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/TransportAvailabilityDetails.cs deleted file mode 100644 index 0195487f896e..000000000000 --- a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/TransportAvailabilityDetails.cs +++ /dev/null @@ -1,56 +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 System.Linq; - - /// - /// Transport options availability details for given region. - /// - public partial class TransportAvailabilityDetails - { - /// - /// Initializes a new instance of the TransportAvailabilityDetails - /// class. - /// - public TransportAvailabilityDetails() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the TransportAvailabilityDetails - /// class. - /// - /// Transport Shipment Type supported for - /// given region. Possible values include: 'CustomerManaged', - /// 'MicrosoftManaged' - public TransportAvailabilityDetails(TransportShipmentTypes? shipmentType = default(TransportShipmentTypes?)) - { - ShipmentType = shipmentType; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets transport Shipment Type supported for given region. Possible - /// values include: 'CustomerManaged', 'MicrosoftManaged' - /// - [JsonProperty(PropertyName = "shipmentType")] - public TransportShipmentTypes? ShipmentType { get; private set; } - - } -} diff --git a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/TransportAvailabilityRequest.cs b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/TransportAvailabilityRequest.cs deleted file mode 100644 index d3b4c935374d..000000000000 --- a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/TransportAvailabilityRequest.cs +++ /dev/null @@ -1,55 +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 System.Linq; - - /// - /// Request body to get the transport availability for given sku. - /// - public partial class TransportAvailabilityRequest - { - /// - /// Initializes a new instance of the TransportAvailabilityRequest - /// class. - /// - public TransportAvailabilityRequest() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the TransportAvailabilityRequest - /// class. - /// - /// Type of the device. Possible values include: - /// 'DataBox', 'DataBoxDisk', 'DataBoxHeavy' - public TransportAvailabilityRequest(SkuName? skuName = default(SkuName?)) - { - SkuName = skuName; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets type of the device. Possible values include: - /// 'DataBox', 'DataBoxDisk', 'DataBoxHeavy' - /// - [JsonProperty(PropertyName = "skuName")] - public SkuName? SkuName { get; set; } - - } -} diff --git a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/TransportAvailabilityResponse.cs b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/TransportAvailabilityResponse.cs deleted file mode 100644 index ea6bae21d634..000000000000 --- a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/TransportAvailabilityResponse.cs +++ /dev/null @@ -1,56 +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 System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// Transport options available for given sku in a region. - /// - public partial class TransportAvailabilityResponse - { - /// - /// Initializes a new instance of the TransportAvailabilityResponse - /// class. - /// - public TransportAvailabilityResponse() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the TransportAvailabilityResponse - /// class. - /// - /// List of transport - /// availability details for given region - public TransportAvailabilityResponse(IList transportAvailabilityDetails = default(IList)) - { - TransportAvailabilityDetails = transportAvailabilityDetails; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets list of transport availability details for given region - /// - [JsonProperty(PropertyName = "transportAvailabilityDetails")] - public IList TransportAvailabilityDetails { get; private set; } - - } -} diff --git a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/TransportPreferences.cs b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/TransportPreferences.cs deleted file mode 100644 index fd52d29d72e2..000000000000 --- a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/TransportPreferences.cs +++ /dev/null @@ -1,64 +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 System.Linq; - - /// - /// Preferences related to the shipment logistics of the sku - /// - public partial class TransportPreferences - { - /// - /// Initializes a new instance of the TransportPreferences class. - /// - public TransportPreferences() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the TransportPreferences class. - /// - /// Indicates Shipment Logistics - /// type that the customer preferred. Possible values include: - /// 'CustomerManaged', 'MicrosoftManaged' - public TransportPreferences(TransportShipmentTypes preferredShipmentType) - { - PreferredShipmentType = preferredShipmentType; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets indicates Shipment Logistics type that the customer - /// preferred. Possible values include: 'CustomerManaged', - /// 'MicrosoftManaged' - /// - [JsonProperty(PropertyName = "preferredShipmentType")] - public TransportShipmentTypes PreferredShipmentType { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - } - } -} diff --git a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/TransportShipmentTypes.cs b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/TransportShipmentTypes.cs deleted file mode 100644 index 86c12741d14b..000000000000 --- a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/TransportShipmentTypes.cs +++ /dev/null @@ -1,66 +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 TransportShipmentTypes. - /// - [JsonConverter(typeof(StringEnumConverter))] - public enum TransportShipmentTypes - { - /// - /// Shipment Logistics is handled by the customer. - /// - [EnumMember(Value = "CustomerManaged")] - CustomerManaged, - /// - /// Shipment Logistics is handled by Microsoft. - /// - [EnumMember(Value = "MicrosoftManaged")] - MicrosoftManaged - } - internal static class TransportShipmentTypesEnumExtension - { - internal static string ToSerializedValue(this TransportShipmentTypes? value) - { - return value == null ? null : ((TransportShipmentTypes)value).ToSerializedValue(); - } - - internal static string ToSerializedValue(this TransportShipmentTypes value) - { - switch( value ) - { - case TransportShipmentTypes.CustomerManaged: - return "CustomerManaged"; - case TransportShipmentTypes.MicrosoftManaged: - return "MicrosoftManaged"; - } - return null; - } - - internal static TransportShipmentTypes? ParseTransportShipmentTypes(this string value) - { - switch( value ) - { - case "CustomerManaged": - return TransportShipmentTypes.CustomerManaged; - case "MicrosoftManaged": - return TransportShipmentTypes.MicrosoftManaged; - } - return null; - } - } -} diff --git a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/ValidateAddress.cs b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/ValidateAddress.cs index 6af4394416d0..260f9e70b5cc 100644 --- a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/ValidateAddress.cs +++ b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/ValidateAddress.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.Management.DataBox.Models /// The requirements to validate customer address where the device needs to /// be shipped. /// - public partial class ValidateAddress : ValidationInputRequest + public partial class ValidateAddress { /// /// Initializes a new instance of the ValidateAddress class. @@ -36,13 +36,10 @@ public ValidateAddress() /// Device type to be used for the job. /// Possible values include: 'DataBox', 'DataBoxDisk', /// 'DataBoxHeavy' - /// Preferences related to the - /// shipment logistics of the sku. - public ValidateAddress(ShippingAddress shippingAddress, SkuName deviceType, TransportPreferences transportPreferences = default(TransportPreferences)) + public ValidateAddress(ShippingAddress shippingAddress, SkuName deviceType) { ShippingAddress = shippingAddress; DeviceType = deviceType; - TransportPreferences = transportPreferences; CustomInit(); } @@ -64,13 +61,6 @@ public ValidateAddress() [JsonProperty(PropertyName = "deviceType")] public SkuName DeviceType { get; set; } - /// - /// Gets or sets preferences related to the shipment logistics of the - /// sku. - /// - [JsonProperty(PropertyName = "transportPreferences")] - public TransportPreferences TransportPreferences { get; set; } - /// /// Validate the object. /// @@ -87,10 +77,6 @@ public virtual void Validate() { ShippingAddress.Validate(); } - if (TransportPreferences != null) - { - TransportPreferences.Validate(); - } } } } 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 deleted file mode 100644 index 096380231268..000000000000 --- a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/ValidationInputRequest.cs +++ /dev/null @@ -1,35 +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 System.Linq; - - /// - /// Minimum fields that must be present in any type of validation request. - /// - public partial class ValidationInputRequest - { - /// - /// Initializes a new instance of the ValidationInputRequest class. - /// - public ValidationInputRequest() - { - 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/ValidationInputResponse.cs b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/ValidationInputResponse.cs deleted file mode 100644 index 810a34e2dc99..000000000000 --- a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/ValidationInputResponse.cs +++ /dev/null @@ -1,53 +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 System.Linq; - - /// - /// Minimum properties that should be present in each individual validation - /// response. - /// - public partial class ValidationInputResponse - { - /// - /// Initializes a new instance of the ValidationInputResponse class. - /// - public ValidationInputResponse() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the ValidationInputResponse class. - /// - /// Error code and message of validation - /// response. - public ValidationInputResponse(Error error = default(Error)) - { - Error = error; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets error code and message of validation response. - /// - [JsonProperty(PropertyName = "error")] - public Error Error { get; private set; } - - } -} 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 deleted file mode 100644 index db49123fc608..000000000000 --- a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/ValidationRequest.cs +++ /dev/null @@ -1,70 +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; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// Input request for all pre job creation validation. - /// - public partial class ValidationRequest - { - /// - /// Initializes a new instance of the ValidationRequest class. - /// - public ValidationRequest() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the ValidationRequest class. - /// - /// List of request details - /// contain validationType and its request as key and value - /// respectively. - public ValidationRequest(IList individualRequestDetails) - { - IndividualRequestDetails = individualRequestDetails; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets list of request details contain validationType and its - /// request as key and value respectively. - /// - [JsonProperty(PropertyName = "individualRequestDetails")] - public IList IndividualRequestDetails { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (IndividualRequestDetails == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "IndividualRequestDetails"); - } - } - } -} diff --git a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/ValidationResponse.cs b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/ValidationResponse.cs deleted file mode 100644 index d1cd19287dbd..000000000000 --- a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/ValidationResponse.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; - using Microsoft.Rest.Serialization; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// Response of pre job creation validations. - /// - [Rest.Serialization.JsonTransformation] - public partial class ValidationResponse - { - /// - /// Initializes a new instance of the ValidationResponse class. - /// - public ValidationResponse() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the ValidationResponse class. - /// - /// Overall validation status. Possible values - /// include: 'AllValidToProceed', 'InputsRevisitRequired', - /// 'CertainInputValidationsSkipped' - /// List of response details - /// contain validationType and its response as key and value - /// respectively. - public ValidationResponse(OverallValidationStatus? status = default(OverallValidationStatus?), IList individualResponseDetails = default(IList)) - { - Status = status; - IndividualResponseDetails = individualResponseDetails; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets overall validation status. Possible values include: - /// 'AllValidToProceed', 'InputsRevisitRequired', - /// 'CertainInputValidationsSkipped' - /// - [JsonProperty(PropertyName = "properties.status")] - public OverallValidationStatus? Status { get; private set; } - - /// - /// Gets list of response details contain validationType and its - /// response as key and value respectively. - /// - [JsonProperty(PropertyName = "properties.individualResponseDetails")] - public IList IndividualResponseDetails { get; private set; } - - } -} diff --git a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/ValidationStatus.cs b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/ValidationStatus.cs deleted file mode 100644 index 96f44c3a8092..000000000000 --- a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/ValidationStatus.cs +++ /dev/null @@ -1,75 +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 ValidationStatus. - /// - [JsonConverter(typeof(StringEnumConverter))] - public enum ValidationStatus - { - /// - /// Validation is successful - /// - [EnumMember(Value = "Valid")] - Valid, - /// - /// Validation is not successful - /// - [EnumMember(Value = "Invalid")] - Invalid, - /// - /// Validation is skipped - /// - [EnumMember(Value = "Skipped")] - Skipped - } - internal static class ValidationStatusEnumExtension - { - internal static string ToSerializedValue(this ValidationStatus? value) - { - return value == null ? null : ((ValidationStatus)value).ToSerializedValue(); - } - - internal static string ToSerializedValue(this ValidationStatus value) - { - switch( value ) - { - case ValidationStatus.Valid: - return "Valid"; - case ValidationStatus.Invalid: - return "Invalid"; - case ValidationStatus.Skipped: - return "Skipped"; - } - return null; - } - - internal static ValidationStatus? ParseValidationStatus(this string value) - { - switch( value ) - { - case "Valid": - return ValidationStatus.Valid; - case "Invalid": - return ValidationStatus.Invalid; - case "Skipped": - return ValidationStatus.Skipped; - } - return null; - } - } -} 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 23a0777f6355..d7e4f6ff8ae6 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,22 +19,11 @@ public static IEnumerable> ApiInfo_DataBoxManageme { return new Tuple[] { - new Tuple("DataBox", "Jobs", "2019-09-01"), - new Tuple("DataBox", "Operations", "2019-09-01"), - new Tuple("DataBox", "Service", "2019-09-01"), + new Tuple("DataBox", "Jobs", "2018-01-01"), + new Tuple("DataBox", "Operations", "2018-01-01"), + new Tuple("DataBox", "Service", "2018-01-01"), }.AsEnumerable(); } } - // BEGIN: Code Generation Metadata Section - public static readonly String AutoRestVersion = "latest"; - public static readonly String AutoRestBootStrapperVersion = "autorest@2.0.4283"; - 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=latest --reflect-api-versions --tag=package-2019-09 --csharp-sdks-folder=D:\\god\\azure_sdk_net\\azure-sdk-for-net\\sdk"; - public static readonly String GithubForkName = "Azure"; - public static readonly String GithubBranchName = "master"; - public static readonly String GithubCommidId = "59998f796f05580bc1d43ba39f0170204113fa91"; - public static readonly String CodeGenerationErrors = ""; - public static readonly String GithubRepoName = "azure-rest-api-specs"; - // END: Code Generation Metadata Section } } - diff --git a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/ServiceOperations.cs b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/ServiceOperations.cs index 987205bf522c..db4d7cef50ba 100644 --- a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/ServiceOperations.cs +++ b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/ServiceOperations.cs @@ -257,860 +257,18 @@ internal ServiceOperations(DataBoxManagementClient client) } /// - /// This method provides the list of available skus for the given subscription, - /// resource group and location. - /// - /// - /// The Resource Group Name - /// - /// - /// The location of the resource - /// - /// - /// Filters for showing the available skus. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task>> ListAvailableSkusByResourceGroupWithHttpMessagesAsync(string resourceGroupName, string location, AvailableSkuRequest availableSkuRequest, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (Client.SubscriptionId == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); - } - if (resourceGroupName == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); - } - if (location == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "location"); - } - if (Client.ApiVersion == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); - } - if (availableSkuRequest == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "availableSkuRequest"); - } - if (availableSkuRequest != null) - { - availableSkuRequest.Validate(); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("resourceGroupName", resourceGroupName); - tracingParameters.Add("location", location); - tracingParameters.Add("availableSkuRequest", availableSkuRequest); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ListAvailableSkusByResourceGroup", tracingParameters); - } - // Construct URL - var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataBox/locations/{location}/availableSkus").ToString(); - _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); - _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); - _url = _url.Replace("{location}", System.Uri.EscapeDataString(location)); - List _queryParameters = new List(); - if (Client.ApiVersion != null) - { - _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); - } - if (_queryParameters.Count > 0) - { - _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("POST"); - _httpRequest.RequestUri = new System.Uri(_url); - // Set Headers - if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) - { - _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); - } - if (Client.AcceptLanguage != null) - { - if (_httpRequest.Headers.Contains("accept-language")) - { - _httpRequest.Headers.Remove("accept-language"); - } - _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); - } - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - if (_httpRequest.Headers.Contains(_header.Key)) - { - _httpRequest.Headers.Remove(_header.Key); - } - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(availableSkuRequest != null) - { - _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(availableSkuRequest, Client.SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } - // Set Credentials - if (Client.Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200) - { - var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - try - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); - if (_errorBody != null) - { - ex = new CloudException(_errorBody.Message); - ex.Body = _errorBody; - } - } - catch (JsonException) - { - // Ignore the exception - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_httpResponse.Headers.Contains("x-ms-request-id")) - { - ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); - } - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = new AzureOperationResponse>(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - if (_httpResponse.Headers.Contains("x-ms-request-id")) - { - _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); - } - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// [DEPRECATED NOTICE: This operation will soon be removed] This method - /// validates the customer shipping address and provide alternate addresses if - /// any. - /// - /// - /// The location of the resource - /// - /// - /// Shipping address of the customer. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - [System.Obsolete("This operation is deprecated. Please do not use it any longer.")] - public async Task> ValidateAddressMethodWithHttpMessagesAsync(string location, ValidateAddress validateAddress, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (Client.SubscriptionId == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); - } - if (location == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "location"); - } - if (Client.ApiVersion == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); - } - if (validateAddress == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "validateAddress"); - } - if (validateAddress != null) - { - validateAddress.Validate(); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("location", location); - tracingParameters.Add("validateAddress", validateAddress); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ValidateAddressMethod", tracingParameters); - } - // Construct URL - var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/providers/Microsoft.DataBox/locations/{location}/validateAddress").ToString(); - _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); - _url = _url.Replace("{location}", System.Uri.EscapeDataString(location)); - List _queryParameters = new List(); - if (Client.ApiVersion != null) - { - _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); - } - if (_queryParameters.Count > 0) - { - _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("POST"); - _httpRequest.RequestUri = new System.Uri(_url); - // Set Headers - if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) - { - _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); - } - if (Client.AcceptLanguage != null) - { - if (_httpRequest.Headers.Contains("accept-language")) - { - _httpRequest.Headers.Remove("accept-language"); - } - _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); - } - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - if (_httpRequest.Headers.Contains(_header.Key)) - { - _httpRequest.Headers.Remove(_header.Key); - } - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(validateAddress != null) - { - _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(validateAddress, Client.SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } - // Set Credentials - if (Client.Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200) - { - var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - try - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); - if (_errorBody != null) - { - ex = new CloudException(_errorBody.Message); - ex.Body = _errorBody; - } - } - catch (JsonException) - { - // Ignore the exception - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_httpResponse.Headers.Contains("x-ms-request-id")) - { - ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); - } - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = new AzureOperationResponse(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - if (_httpResponse.Headers.Contains("x-ms-request-id")) - { - _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); - } - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// This method does all necessary pre-job creation validation under resource - /// group. - /// - /// - /// The Resource Group Name - /// - /// - /// The location of the resource - /// - /// - /// Inputs of the customer. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ValidateInputsByResourceGroupWithHttpMessagesAsync(string resourceGroupName, string location, ValidationRequest validationRequest, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (Client.SubscriptionId == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); - } - if (resourceGroupName == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); - } - if (location == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "location"); - } - if (Client.ApiVersion == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); - } - if (validationRequest == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "validationRequest"); - } - if (validationRequest != null) - { - validationRequest.Validate(); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("resourceGroupName", resourceGroupName); - tracingParameters.Add("location", location); - tracingParameters.Add("validationRequest", validationRequest); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ValidateInputsByResourceGroup", tracingParameters); - } - // Construct URL - var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataBox/locations/{location}/validateInputs").ToString(); - _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); - _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); - _url = _url.Replace("{location}", System.Uri.EscapeDataString(location)); - List _queryParameters = new List(); - if (Client.ApiVersion != null) - { - _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); - } - if (_queryParameters.Count > 0) - { - _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("POST"); - _httpRequest.RequestUri = new System.Uri(_url); - // Set Headers - if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) - { - _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); - } - if (Client.AcceptLanguage != null) - { - if (_httpRequest.Headers.Contains("accept-language")) - { - _httpRequest.Headers.Remove("accept-language"); - } - _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); - } - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - if (_httpRequest.Headers.Contains(_header.Key)) - { - _httpRequest.Headers.Remove(_header.Key); - } - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(validationRequest != null) - { - _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(validationRequest, Client.SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } - // Set Credentials - if (Client.Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200) - { - var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - try - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); - if (_errorBody != null) - { - ex = new CloudException(_errorBody.Message); - ex.Body = _errorBody; - } - } - catch (JsonException) - { - // Ignore the exception - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_httpResponse.Headers.Contains("x-ms-request-id")) - { - ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); - } - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = new AzureOperationResponse(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - if (_httpResponse.Headers.Contains("x-ms-request-id")) - { - _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); - } - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// This method does all necessary pre-job creation validation under - /// subscription. - /// - /// - /// The location of the resource - /// - /// - /// Inputs of the customer. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ValidateInputsWithHttpMessagesAsync(string location, ValidationRequest validationRequest, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (Client.SubscriptionId == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); - } - if (location == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "location"); - } - if (Client.ApiVersion == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); - } - if (validationRequest == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "validationRequest"); - } - if (validationRequest != null) - { - validationRequest.Validate(); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("location", location); - tracingParameters.Add("validationRequest", validationRequest); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ValidateInputs", tracingParameters); - } - // Construct URL - var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/providers/Microsoft.DataBox/locations/{location}/validateInputs").ToString(); - _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); - _url = _url.Replace("{location}", System.Uri.EscapeDataString(location)); - List _queryParameters = new List(); - if (Client.ApiVersion != null) - { - _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); - } - if (_queryParameters.Count > 0) - { - _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("POST"); - _httpRequest.RequestUri = new System.Uri(_url); - // Set Headers - if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) - { - _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); - } - if (Client.AcceptLanguage != null) - { - if (_httpRequest.Headers.Contains("accept-language")) - { - _httpRequest.Headers.Remove("accept-language"); - } - _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); - } - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - if (_httpRequest.Headers.Contains(_header.Key)) - { - _httpRequest.Headers.Remove(_header.Key); - } - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(validationRequest != null) - { - _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(validationRequest, Client.SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } - // Set Credentials - if (Client.Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200) - { - var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - try - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); - if (_errorBody != null) - { - ex = new CloudException(_errorBody.Message); - ex.Body = _errorBody; - } - } - catch (JsonException) - { - // Ignore the exception - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_httpResponse.Headers.Contains("x-ms-request-id")) - { - ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); - } - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = new AzureOperationResponse(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - if (_httpResponse.Headers.Contains("x-ms-request-id")) - { - _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); - } - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// This API provides configuration details specific to given region/location. + /// This method validates the customer shipping address and provide alternate + /// addresses if any. /// /// /// The location of the resource /// - /// - /// Request body to get the availability for scheduling orders. + /// + /// Shipping address of the customer. /// - /// - /// Request body to get the transport availability for given sku. + /// + /// Device type to be used for the job. Possible values include: 'DataBox', + /// 'DataBoxDisk', 'DataBoxHeavy' /// /// /// Headers that will be added to request. @@ -1133,7 +291,7 @@ internal ServiceOperations(DataBoxManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task> RegionConfigurationWithHttpMessagesAsync(string location, ScheduleAvailabilityRequest scheduleAvailabilityRequest = default(ScheduleAvailabilityRequest), TransportAvailabilityRequest transportAvailabilityRequest = default(TransportAvailabilityRequest), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> ValidateAddressMethodWithHttpMessagesAsync(string location, ShippingAddress shippingAddress, SkuName deviceType, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (Client.SubscriptionId == null) { @@ -1147,15 +305,19 @@ internal ServiceOperations(DataBoxManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); } - if (scheduleAvailabilityRequest != null) + if (shippingAddress == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "shippingAddress"); + } + if (shippingAddress != null) { - scheduleAvailabilityRequest.Validate(); + shippingAddress.Validate(); } - RegionConfigurationRequest regionConfigurationRequest = new RegionConfigurationRequest(); - if (scheduleAvailabilityRequest != null || transportAvailabilityRequest != null) + ValidateAddress validateAddress = new ValidateAddress(); + if (shippingAddress != null) { - regionConfigurationRequest.ScheduleAvailabilityRequest = scheduleAvailabilityRequest; - regionConfigurationRequest.TransportAvailabilityRequest = transportAvailabilityRequest; + validateAddress.ShippingAddress = shippingAddress; + validateAddress.DeviceType = deviceType; } // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; @@ -1165,13 +327,13 @@ internal ServiceOperations(DataBoxManagementClient client) _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); tracingParameters.Add("location", location); - tracingParameters.Add("regionConfigurationRequest", regionConfigurationRequest); + tracingParameters.Add("validateAddress", validateAddress); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "RegionConfiguration", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "ValidateAddressMethod", tracingParameters); } // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/providers/Microsoft.DataBox/locations/{location}/regionConfiguration").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/providers/Microsoft.DataBox/locations/{location}/validateAddress").ToString(); _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); _url = _url.Replace("{location}", System.Uri.EscapeDataString(location)); List _queryParameters = new List(); @@ -1217,9 +379,9 @@ internal ServiceOperations(DataBoxManagementClient client) // Serialize Request string _requestContent = null; - if(regionConfigurationRequest != null) + if(validateAddress != null) { - _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(regionConfigurationRequest, Client.SerializationSettings); + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(validateAddress, Client.SerializationSettings); _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); } @@ -1278,7 +440,7 @@ internal ServiceOperations(DataBoxManagementClient client) throw ex; } // Create Result - var _result = new AzureOperationResponse(); + var _result = new AzureOperationResponse(); _result.Request = _httpRequest; _result.Response = _httpResponse; if (_httpResponse.Headers.Contains("x-ms-request-id")) @@ -1291,7 +453,7 @@ internal ServiceOperations(DataBoxManagementClient client) _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try { - _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); } catch (JsonException ex) { @@ -1484,179 +646,5 @@ internal ServiceOperations(DataBoxManagementClient client) return _result; } - /// - /// This method provides the list of available skus for the given subscription, - /// resource group and location. - /// - /// - /// The NextLink from the previous successful call to List operation. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task>> ListAvailableSkusByResourceGroupNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (nextPageLink == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "nextPageLink"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("nextPageLink", nextPageLink); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ListAvailableSkusByResourceGroupNext", tracingParameters); - } - // Construct URL - string _url = "{nextLink}"; - _url = _url.Replace("{nextLink}", nextPageLink); - List _queryParameters = new List(); - if (_queryParameters.Count > 0) - { - _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("POST"); - _httpRequest.RequestUri = new System.Uri(_url); - // Set Headers - if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) - { - _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); - } - if (Client.AcceptLanguage != null) - { - if (_httpRequest.Headers.Contains("accept-language")) - { - _httpRequest.Headers.Remove("accept-language"); - } - _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); - } - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - if (_httpRequest.Headers.Contains(_header.Key)) - { - _httpRequest.Headers.Remove(_header.Key); - } - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Client.Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200) - { - var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - try - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); - if (_errorBody != null) - { - ex = new CloudException(_errorBody.Message); - ex.Body = _errorBody; - } - } - catch (JsonException) - { - // Ignore the exception - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_httpResponse.Headers.Contains("x-ms-request-id")) - { - ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); - } - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = new AzureOperationResponse>(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - if (_httpResponse.Headers.Contains("x-ms-request-id")) - { - _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); - } - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - } } diff --git a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/ServiceOperationsExtensions.cs b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/ServiceOperationsExtensions.cs index bb2b513fe1f6..5ede4b7215b4 100644 --- a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/ServiceOperationsExtensions.cs +++ b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/ServiceOperationsExtensions.cs @@ -64,57 +64,8 @@ public static IPage ListAvailableSkus(this IServiceOperations op } /// - /// This method provides the list of available skus for the given subscription, - /// resource group and location. - /// - /// - /// The operations group for this extension method. - /// - /// - /// The Resource Group Name - /// - /// - /// The location of the resource - /// - /// - /// Filters for showing the available skus. - /// - public static IPage ListAvailableSkusByResourceGroup(this IServiceOperations operations, string resourceGroupName, string location, AvailableSkuRequest availableSkuRequest) - { - return operations.ListAvailableSkusByResourceGroupAsync(resourceGroupName, location, availableSkuRequest).GetAwaiter().GetResult(); - } - - /// - /// This method provides the list of available skus for the given subscription, - /// resource group and location. - /// - /// - /// The operations group for this extension method. - /// - /// - /// The Resource Group Name - /// - /// - /// The location of the resource - /// - /// - /// Filters for showing the available skus. - /// - /// - /// The cancellation token. - /// - public static async Task> ListAvailableSkusByResourceGroupAsync(this IServiceOperations operations, string resourceGroupName, string location, AvailableSkuRequest availableSkuRequest, CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ListAvailableSkusByResourceGroupWithHttpMessagesAsync(resourceGroupName, location, availableSkuRequest, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// [DEPRECATED NOTICE: This operation will soon be removed] This method - /// validates the customer shipping address and provide alternate addresses if - /// any. + /// This method validates the customer shipping address and provide alternate + /// addresses if any. /// /// /// The operations group for this extension method. @@ -122,133 +73,21 @@ public static IPage ListAvailableSkusByResourceGroup(this IServi /// /// The location of the resource /// - /// + /// /// Shipping address of the customer. /// - [System.Obsolete("This operation is deprecated. Please do not use it any longer.")] - public static AddressValidationOutput ValidateAddressMethod(this IServiceOperations operations, string location, ValidateAddress validateAddress) - { - return operations.ValidateAddressMethodAsync(location, validateAddress).GetAwaiter().GetResult(); - } - - /// - /// [DEPRECATED NOTICE: This operation will soon be removed] This method - /// validates the customer shipping address and provide alternate addresses if - /// any. - /// - /// - /// The operations group for this extension method. - /// - /// - /// The location of the resource - /// - /// - /// Shipping address of the customer. - /// - /// - /// The cancellation token. - /// - [System.Obsolete("This operation is deprecated. Please do not use it any longer.")] - public static async Task ValidateAddressMethodAsync(this IServiceOperations operations, string location, ValidateAddress validateAddress, CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ValidateAddressMethodWithHttpMessagesAsync(location, validateAddress, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// This method does all necessary pre-job creation validation under resource - /// group. - /// - /// - /// The operations group for this extension method. - /// - /// - /// The Resource Group Name - /// - /// - /// The location of the resource - /// - /// - /// Inputs of the customer. - /// - public static ValidationResponse ValidateInputsByResourceGroup(this IServiceOperations operations, string resourceGroupName, string location, ValidationRequest validationRequest) - { - return operations.ValidateInputsByResourceGroupAsync(resourceGroupName, location, validationRequest).GetAwaiter().GetResult(); - } - - /// - /// This method does all necessary pre-job creation validation under resource - /// group. - /// - /// - /// The operations group for this extension method. - /// - /// - /// The Resource Group Name - /// - /// - /// The location of the resource - /// - /// - /// Inputs of the customer. - /// - /// - /// The cancellation token. - /// - public static async Task ValidateInputsByResourceGroupAsync(this IServiceOperations operations, string resourceGroupName, string location, ValidationRequest validationRequest, CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ValidateInputsByResourceGroupWithHttpMessagesAsync(resourceGroupName, location, validationRequest, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// This method does all necessary pre-job creation validation under - /// subscription. - /// - /// - /// The operations group for this extension method. - /// - /// - /// The location of the resource - /// - /// - /// Inputs of the customer. - /// - public static ValidationResponse ValidateInputs(this IServiceOperations operations, string location, ValidationRequest validationRequest) - { - return operations.ValidateInputsAsync(location, validationRequest).GetAwaiter().GetResult(); - } - - /// - /// This method does all necessary pre-job creation validation under - /// subscription. - /// - /// - /// The operations group for this extension method. - /// - /// - /// The location of the resource + /// + /// Device type to be used for the job. Possible values include: 'DataBox', + /// 'DataBoxDisk', 'DataBoxHeavy' /// - /// - /// Inputs of the customer. - /// - /// - /// The cancellation token. - /// - public static async Task ValidateInputsAsync(this IServiceOperations operations, string location, ValidationRequest validationRequest, CancellationToken cancellationToken = default(CancellationToken)) + public static AddressValidationOutput ValidateAddressMethod(this IServiceOperations operations, string location, ShippingAddress shippingAddress, SkuName deviceType) { - using (var _result = await operations.ValidateInputsWithHttpMessagesAsync(location, validationRequest, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } + return operations.ValidateAddressMethodAsync(location, shippingAddress, deviceType).GetAwaiter().GetResult(); } /// - /// This API provides configuration details specific to given region/location. + /// This method validates the customer shipping address and provide alternate + /// addresses if any. /// /// /// The operations group for this extension method. @@ -256,38 +95,19 @@ public static ValidationResponse ValidateInputs(this IServiceOperations operatio /// /// The location of the resource /// - /// - /// Request body to get the availability for scheduling orders. - /// - /// - /// Request body to get the transport availability for given sku. - /// - public static RegionConfigurationResponse RegionConfiguration(this IServiceOperations operations, string location, ScheduleAvailabilityRequest scheduleAvailabilityRequest = default(ScheduleAvailabilityRequest), TransportAvailabilityRequest transportAvailabilityRequest = default(TransportAvailabilityRequest)) - { - return operations.RegionConfigurationAsync(location, scheduleAvailabilityRequest, transportAvailabilityRequest).GetAwaiter().GetResult(); - } - - /// - /// This API provides configuration details specific to given region/location. - /// - /// - /// The operations group for this extension method. - /// - /// - /// The location of the resource - /// - /// - /// Request body to get the availability for scheduling orders. + /// + /// Shipping address of the customer. /// - /// - /// Request body to get the transport availability for given sku. + /// + /// Device type to be used for the job. Possible values include: 'DataBox', + /// 'DataBoxDisk', 'DataBoxHeavy' /// /// /// The cancellation token. /// - public static async Task RegionConfigurationAsync(this IServiceOperations operations, string location, ScheduleAvailabilityRequest scheduleAvailabilityRequest = default(ScheduleAvailabilityRequest), TransportAvailabilityRequest transportAvailabilityRequest = default(TransportAvailabilityRequest), CancellationToken cancellationToken = default(CancellationToken)) + public static async Task ValidateAddressMethodAsync(this IServiceOperations operations, string location, ShippingAddress shippingAddress, SkuName deviceType, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.RegionConfigurationWithHttpMessagesAsync(location, scheduleAvailabilityRequest, transportAvailabilityRequest, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.ValidateAddressMethodWithHttpMessagesAsync(location, shippingAddress, deviceType, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -329,41 +149,5 @@ public static IPage ListAvailableSkusNext(this IServiceOperation } } - /// - /// This method provides the list of available skus for the given subscription, - /// resource group and location. - /// - /// - /// The operations group for this extension method. - /// - /// - /// The NextLink from the previous successful call to List operation. - /// - public static IPage ListAvailableSkusByResourceGroupNext(this IServiceOperations operations, string nextPageLink) - { - return operations.ListAvailableSkusByResourceGroupNextAsync(nextPageLink).GetAwaiter().GetResult(); - } - - /// - /// This method provides the list of available skus for the given subscription, - /// resource group and location. - /// - /// - /// The operations group for this extension method. - /// - /// - /// The NextLink from the previous successful call to List operation. - /// - /// - /// The cancellation token. - /// - public static async Task> ListAvailableSkusByResourceGroupNextAsync(this IServiceOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ListAvailableSkusByResourceGroupNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - } }