From d805461d741e070e0ede9c8cf78a8bd6266964fb Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Fri, 7 Jan 2022 12:45:25 +0000 Subject: [PATCH] CodeGen from PR 17279 in Azure/azure-rest-api-specs Merge a2aa9572367a44da2bbf79c046538ac80ac3b205 into 068f1ecdf3abb35a6a329a7b270c45df4d9c57a4 --- .../Models/AddressValidationOutput.cs | 1 - .../Models/AddressValidationProperties.cs | 71 ------------ .../Generated/Models/ClassDiscriminator.cs | 84 -------------- .../src/Generated/Models/CopyLogDetails.cs | 2 - ...ubscriptionValidationResponseProperties.cs | 1 - .../Models/CustomerDiskJobSecrets.cs | 1 - .../Generated/Models/DataAccountDetails.cs | 1 - .../Models/DataBoxCustomerDiskJobDetails.cs | 3 +- .../Generated/Models/DataBoxDiskJobDetails.cs | 3 +- .../Generated/Models/DataBoxDiskJobSecrets.cs | 1 - .../Models/DataBoxHeavyJobDetails.cs | 3 +- .../Models/DataBoxHeavyJobSecrets.cs | 1 - .../src/Generated/Models/DataBoxJobDetails.cs | 3 +- .../src/Generated/Models/DataCenterCode.cs | 3 + ...sferDetailsValidationResponseProperties.cs | 1 - .../src/Generated/Models/DataboxJobSecrets.cs | 1 - .../src/Generated/Models/JobDetails.cs | 5 +- .../src/Generated/Models/JobResource.cs | 1 - .../src/Generated/Models/JobSecrets.cs | 2 - ...PreferencesValidationResponseProperties.cs | 1 - ...vailabilityValidationResponseProperties.cs | 1 - ...ToCreateJobValidationResponseProperties.cs | 1 - .../Generated/Models/ValidationCategory.cs | 57 ---------- .../Models/ValidationInputDiscriminator.cs | 105 ------------------ .../Models/ValidationInputRequest.cs | 2 - .../Models/ValidationInputResponse.cs | 2 - .../src/Generated/Models/ValidationRequest.cs | 1 - .../SdkInfo_DataBoxManagementClient.cs | 11 -- 28 files changed, 14 insertions(+), 355 deletions(-) delete mode 100644 sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/AddressValidationProperties.cs delete mode 100644 sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/ClassDiscriminator.cs delete mode 100644 sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/ValidationCategory.cs delete mode 100644 sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/ValidationInputDiscriminator.cs diff --git a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/AddressValidationOutput.cs b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/AddressValidationOutput.cs index 2d235e55e335..c90a18b47c7f 100644 --- a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/AddressValidationOutput.cs +++ b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/AddressValidationOutput.cs @@ -11,7 +11,6 @@ namespace Microsoft.Azure.Management.DataBox.Models { using Microsoft.Rest; - using Microsoft.Rest.Azure; using Microsoft.Rest.Serialization; using Newtonsoft.Json; using System.Collections; diff --git a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/AddressValidationProperties.cs b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/AddressValidationProperties.cs deleted file mode 100644 index bf8333d8a30d..000000000000 --- a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/AddressValidationProperties.cs +++ /dev/null @@ -1,71 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.DataBox.Models -{ - using Microsoft.Rest.Azure; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// The address validation output. - /// - [Newtonsoft.Json.JsonObject("ValidateAddress")] - public partial class AddressValidationProperties : ValidationInputResponse - { - /// - /// Initializes a new instance of the AddressValidationProperties - /// class. - /// - public AddressValidationProperties() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the AddressValidationProperties - /// class. - /// - /// Error code and message of validation - /// response. - /// The address validation status. - /// Possible values include: 'Valid', 'Invalid', 'Ambiguous' - /// List of alternate - /// addresses. - public AddressValidationProperties(CloudError error = default(CloudError), AddressValidationStatus? validationStatus = default(AddressValidationStatus?), IList alternateAddresses = default(IList)) - : base(error) - { - ValidationStatus = validationStatus; - AlternateAddresses = alternateAddresses; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets the address validation status. Possible values include: - /// 'Valid', 'Invalid', 'Ambiguous' - /// - [JsonProperty(PropertyName = "validationStatus")] - public AddressValidationStatus? ValidationStatus { get; private set; } - - /// - /// Gets list of alternate addresses. - /// - [JsonProperty(PropertyName = "alternateAddresses")] - public IList AlternateAddresses { get; private set; } - - } -} \ No newline at end of file diff --git a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/ClassDiscriminator.cs b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/ClassDiscriminator.cs deleted file mode 100644 index d6fc5e64fc48..000000000000 --- a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/ClassDiscriminator.cs +++ /dev/null @@ -1,84 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.DataBox.Models -{ - using Newtonsoft.Json; - using Newtonsoft.Json.Converters; - using System.Runtime; - using System.Runtime.Serialization; - - /// - /// Defines values for ClassDiscriminator. - /// - [JsonConverter(typeof(StringEnumConverter))] - public enum ClassDiscriminator - { - /// - /// Data Box orders. - /// - [EnumMember(Value = "DataBox")] - DataBox, - /// - /// Data Box Disk orders. - /// - [EnumMember(Value = "DataBoxDisk")] - DataBoxDisk, - /// - /// Data Box Heavy orders. - /// - [EnumMember(Value = "DataBoxHeavy")] - DataBoxHeavy, - /// - /// Data Box Customer Disk orders. - /// - [EnumMember(Value = "DataBoxCustomerDisk")] - DataBoxCustomerDisk - } - internal static class ClassDiscriminatorEnumExtension - { - internal static string ToSerializedValue(this ClassDiscriminator? value) - { - return value == null ? null : ((ClassDiscriminator)value).ToSerializedValue(); - } - - internal static string ToSerializedValue(this ClassDiscriminator value) - { - switch( value ) - { - case ClassDiscriminator.DataBox: - return "DataBox"; - case ClassDiscriminator.DataBoxDisk: - return "DataBoxDisk"; - case ClassDiscriminator.DataBoxHeavy: - return "DataBoxHeavy"; - case ClassDiscriminator.DataBoxCustomerDisk: - return "DataBoxCustomerDisk"; - } - return null; - } - - internal static ClassDiscriminator? ParseClassDiscriminator(this string value) - { - switch( value ) - { - case "DataBox": - return ClassDiscriminator.DataBox; - case "DataBoxDisk": - return ClassDiscriminator.DataBoxDisk; - case "DataBoxHeavy": - return ClassDiscriminator.DataBoxHeavy; - case "DataBoxCustomerDisk": - return ClassDiscriminator.DataBoxCustomerDisk; - } - return null; - } - } -} diff --git a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/CopyLogDetails.cs b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/CopyLogDetails.cs index 35fdb61cfb94..7740e3605483 100644 --- a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/CopyLogDetails.cs +++ b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/CopyLogDetails.cs @@ -10,13 +10,11 @@ namespace Microsoft.Azure.Management.DataBox.Models { - using Newtonsoft.Json; using System.Linq; /// /// Details for log generated during copy. /// - [Newtonsoft.Json.JsonObject("CopyLogDetails")] public partial class CopyLogDetails { /// diff --git a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/CreateOrderLimitForSubscriptionValidationResponseProperties.cs b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/CreateOrderLimitForSubscriptionValidationResponseProperties.cs index ebf921436c6b..09a8091a2d1b 100644 --- a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/CreateOrderLimitForSubscriptionValidationResponseProperties.cs +++ b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/CreateOrderLimitForSubscriptionValidationResponseProperties.cs @@ -10,7 +10,6 @@ namespace Microsoft.Azure.Management.DataBox.Models { - using Microsoft.Rest.Azure; using Newtonsoft.Json; using System.Linq; diff --git a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/CustomerDiskJobSecrets.cs b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/CustomerDiskJobSecrets.cs index f358a0cd623b..bd8cba6c1fcd 100644 --- a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/CustomerDiskJobSecrets.cs +++ b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/CustomerDiskJobSecrets.cs @@ -10,7 +10,6 @@ namespace Microsoft.Azure.Management.DataBox.Models { - using Microsoft.Rest.Azure; using Newtonsoft.Json; using System.Collections; using System.Collections.Generic; diff --git a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/DataAccountDetails.cs b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/DataAccountDetails.cs index 8006c2f5961c..f9f0018e2cd5 100644 --- a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/DataAccountDetails.cs +++ b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/DataAccountDetails.cs @@ -16,7 +16,6 @@ namespace Microsoft.Azure.Management.DataBox.Models /// /// Account details of the data to be transferred /// - [Newtonsoft.Json.JsonObject("DataAccountDetails")] public partial class DataAccountDetails { /// diff --git a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/DataBoxCustomerDiskJobDetails.cs b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/DataBoxCustomerDiskJobDetails.cs index 836fa555983d..e2430e88a51c 100644 --- a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/DataBoxCustomerDiskJobDetails.cs +++ b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/DataBoxCustomerDiskJobDetails.cs @@ -73,7 +73,8 @@ public DataBoxCustomerDiskJobDetails() /// 'TYO01', 'BN1', 'SN5', 'CYS04', 'TYO22', 'YTO21', 'YQB20', 'FRA22', /// 'MAA01', 'CPQ02', 'CPQ20', 'SIN20', 'HKG20', 'SG2', 'MEL23', /// 'SEL21', 'OSA20', 'SHA03', 'BJB', 'JNB22', 'JNB21', 'MNZ21', 'SN8', - /// 'AUH20', 'ZRH20', 'PUS20', 'AdHoc', 'CH1', 'DSM05' + /// 'AUH20', 'ZRH20', 'PUS20', 'AdHoc', 'CH1', 'DSM05', 'BN7', 'SN6', + /// 'PAR22' /// Contains the map of disk /// serial number to the disk details for import jobs. /// Contains the map of disk diff --git a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/DataBoxDiskJobDetails.cs b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/DataBoxDiskJobDetails.cs index da7e300db9fc..c160b851b8c4 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 @@ -68,7 +68,8 @@ public DataBoxDiskJobDetails() /// 'TYO01', 'BN1', 'SN5', 'CYS04', 'TYO22', 'YTO21', 'YQB20', 'FRA22', /// 'MAA01', 'CPQ02', 'CPQ20', 'SIN20', 'HKG20', 'SG2', 'MEL23', /// 'SEL21', 'OSA20', 'SHA03', 'BJB', 'JNB22', 'JNB21', 'MNZ21', 'SN8', - /// 'AUH20', 'ZRH20', 'PUS20', 'AdHoc', 'CH1', 'DSM05' + /// 'AUH20', 'ZRH20', 'PUS20', 'AdHoc', 'CH1', 'DSM05', 'BN7', 'SN6', + /// 'PAR22' /// User preference on what size disks are /// needed for the job. The map is from the disk size in TB to the /// count. Eg. {2,5} means 5 disks of 2 TB size. Key is string but will diff --git a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/DataBoxDiskJobSecrets.cs b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/DataBoxDiskJobSecrets.cs index 92bf1905382f..ca9d3b765df2 100644 --- a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/DataBoxDiskJobSecrets.cs +++ b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/DataBoxDiskJobSecrets.cs @@ -10,7 +10,6 @@ namespace Microsoft.Azure.Management.DataBox.Models { - using Microsoft.Rest.Azure; using Newtonsoft.Json; using System.Collections; using System.Collections.Generic; diff --git a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/DataBoxHeavyJobDetails.cs b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/DataBoxHeavyJobDetails.cs index b2dcd8d6ca93..b04b8452dbd1 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 @@ -68,7 +68,8 @@ public DataBoxHeavyJobDetails() /// 'TYO01', 'BN1', 'SN5', 'CYS04', 'TYO22', 'YTO21', 'YQB20', 'FRA22', /// 'MAA01', 'CPQ02', 'CPQ20', 'SIN20', 'HKG20', 'SG2', 'MEL23', /// 'SEL21', 'OSA20', 'SHA03', 'BJB', 'JNB22', 'JNB21', 'MNZ21', 'SN8', - /// 'AUH20', 'ZRH20', 'PUS20', 'AdHoc', 'CH1', 'DSM05' + /// 'AUH20', 'ZRH20', 'PUS20', 'AdHoc', 'CH1', 'DSM05', 'BN7', 'SN6', + /// 'PAR22' /// Copy progress per account. /// Set Device password for unlocking /// Databox Heavy. Should not be passed for diff --git a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/DataBoxHeavyJobSecrets.cs b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/DataBoxHeavyJobSecrets.cs index a9543c98bf00..3caa659198a6 100644 --- a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/DataBoxHeavyJobSecrets.cs +++ b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/DataBoxHeavyJobSecrets.cs @@ -10,7 +10,6 @@ namespace Microsoft.Azure.Management.DataBox.Models { - using Microsoft.Rest.Azure; using Newtonsoft.Json; using System.Collections; using System.Collections.Generic; diff --git a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/DataBoxJobDetails.cs b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/DataBoxJobDetails.cs index 4d7dfa7e0807..db8d6a333ac6 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 @@ -68,7 +68,8 @@ public DataBoxJobDetails() /// 'TYO01', 'BN1', 'SN5', 'CYS04', 'TYO22', 'YTO21', 'YQB20', 'FRA22', /// 'MAA01', 'CPQ02', 'CPQ20', 'SIN20', 'HKG20', 'SG2', 'MEL23', /// 'SEL21', 'OSA20', 'SHA03', 'BJB', 'JNB22', 'JNB21', 'MNZ21', 'SN8', - /// 'AUH20', 'ZRH20', 'PUS20', 'AdHoc', 'CH1', 'DSM05' + /// 'AUH20', 'ZRH20', 'PUS20', 'AdHoc', 'CH1', 'DSM05', 'BN7', 'SN6', + /// 'PAR22' /// Copy progress per storage /// account. /// Set Device password for unlocking diff --git a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/DataCenterCode.cs b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/DataCenterCode.cs index 3abbc0687cfd..046fbec52a03 100644 --- a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/DataCenterCode.cs +++ b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/DataCenterCode.cs @@ -66,5 +66,8 @@ public static class DataCenterCode public const string AdHoc = "AdHoc"; public const string CH1 = "CH1"; public const string DSM05 = "DSM05"; + public const string BN7 = "BN7"; + public const string SN6 = "SN6"; + public const string PAR22 = "PAR22"; } } diff --git a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/DataTransferDetailsValidationResponseProperties.cs b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/DataTransferDetailsValidationResponseProperties.cs index 8df7210f1cab..4850d4c7d4b5 100644 --- a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/DataTransferDetailsValidationResponseProperties.cs +++ b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/DataTransferDetailsValidationResponseProperties.cs @@ -10,7 +10,6 @@ namespace Microsoft.Azure.Management.DataBox.Models { - using Microsoft.Rest.Azure; using Newtonsoft.Json; using System.Linq; diff --git a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/DataboxJobSecrets.cs b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/DataboxJobSecrets.cs index acfc042d67e4..ba237548a61f 100644 --- a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/DataboxJobSecrets.cs +++ b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/DataboxJobSecrets.cs @@ -10,7 +10,6 @@ namespace Microsoft.Azure.Management.DataBox.Models { - using Microsoft.Rest.Azure; using Newtonsoft.Json; using System.Collections; using System.Collections.Generic; diff --git a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/JobDetails.cs b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/JobDetails.cs index 1dd1283771a3..2d58b18e7bd5 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 @@ -68,7 +68,8 @@ public JobDetails() /// 'TYO01', 'BN1', 'SN5', 'CYS04', 'TYO22', 'YTO21', 'YQB20', 'FRA22', /// 'MAA01', 'CPQ02', 'CPQ20', 'SIN20', 'HKG20', 'SG2', 'MEL23', /// 'SEL21', 'OSA20', 'SHA03', 'BJB', 'JNB22', 'JNB21', 'MNZ21', 'SN8', - /// 'AUH20', 'ZRH20', 'PUS20', 'AdHoc', 'CH1', 'DSM05' + /// 'AUH20', 'ZRH20', 'PUS20', 'AdHoc', 'CH1', 'DSM05', 'BN7', 'SN6', + /// 'PAR22' public JobDetails(ContactDetails contactDetails, IList jobStages = default(IList), ShippingAddress shippingAddress = default(ShippingAddress), PackageShippingDetails deliveryPackage = default(PackageShippingDetails), PackageShippingDetails returnPackage = default(PackageShippingDetails), IList dataImportDetails = default(IList), IList dataExportDetails = default(IList), Preferences preferences = default(Preferences), IList copyLogDetails = default(IList), string reverseShipmentLabelSasKey = default(string), string chainOfCustodySasKey = default(string), KeyEncryptionKey keyEncryptionKey = default(KeyEncryptionKey), int? expectedDataSizeInTeraBytes = default(int?), IList actions = default(IList), LastMitigationActionOnJob lastMitigationActionOnJob = default(LastMitigationActionOnJob), DatacenterAddressResponse datacenterAddress = default(DatacenterAddressResponse), string dataCenterCode = default(string)) { JobStages = jobStages; @@ -202,7 +203,7 @@ public JobDetails() /// 'TYO22', 'YTO21', 'YQB20', 'FRA22', 'MAA01', 'CPQ02', 'CPQ20', /// 'SIN20', 'HKG20', 'SG2', 'MEL23', 'SEL21', 'OSA20', 'SHA03', 'BJB', /// 'JNB22', 'JNB21', 'MNZ21', 'SN8', 'AUH20', 'ZRH20', 'PUS20', - /// 'AdHoc', 'CH1', 'DSM05' + /// 'AdHoc', 'CH1', 'DSM05', 'BN7', 'SN6', 'PAR22' /// [JsonProperty(PropertyName = "dataCenterCode")] public string DataCenterCode { get; private set; } diff --git a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/JobResource.cs b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/JobResource.cs index 7dcdd001b289..ee72f1a16de1 100644 --- a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/JobResource.cs +++ b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/JobResource.cs @@ -11,7 +11,6 @@ namespace Microsoft.Azure.Management.DataBox.Models { using Microsoft.Rest; - using Microsoft.Rest.Azure; using Microsoft.Rest.Serialization; using Newtonsoft.Json; using System.Collections; diff --git a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/JobSecrets.cs b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/JobSecrets.cs index eea27aaae7c1..c8c7e07e698c 100644 --- a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/JobSecrets.cs +++ b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/JobSecrets.cs @@ -10,14 +10,12 @@ namespace Microsoft.Azure.Management.DataBox.Models { - using Microsoft.Rest.Azure; using Newtonsoft.Json; using System.Linq; /// /// The base class for the secrets /// - [Newtonsoft.Json.JsonObject("JobSecrets")] public partial class JobSecrets { /// diff --git a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/PreferencesValidationResponseProperties.cs b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/PreferencesValidationResponseProperties.cs index f4aa3be4f5e1..1895ebbf99d4 100644 --- a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/PreferencesValidationResponseProperties.cs +++ b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/PreferencesValidationResponseProperties.cs @@ -10,7 +10,6 @@ namespace Microsoft.Azure.Management.DataBox.Models { - using Microsoft.Rest.Azure; using Newtonsoft.Json; using System.Linq; diff --git a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/SkuAvailabilityValidationResponseProperties.cs b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/SkuAvailabilityValidationResponseProperties.cs index d5f459cde553..43f10468dece 100644 --- a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/SkuAvailabilityValidationResponseProperties.cs +++ b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/SkuAvailabilityValidationResponseProperties.cs @@ -10,7 +10,6 @@ namespace Microsoft.Azure.Management.DataBox.Models { - using Microsoft.Rest.Azure; using Newtonsoft.Json; using System.Linq; diff --git a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/SubscriptionIsAllowedToCreateJobValidationResponseProperties.cs b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/SubscriptionIsAllowedToCreateJobValidationResponseProperties.cs index 17ff3dfe0c89..4bd1b3f6677a 100644 --- a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/SubscriptionIsAllowedToCreateJobValidationResponseProperties.cs +++ b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/SubscriptionIsAllowedToCreateJobValidationResponseProperties.cs @@ -10,7 +10,6 @@ namespace Microsoft.Azure.Management.DataBox.Models { - using Microsoft.Rest.Azure; using Newtonsoft.Json; using System.Linq; diff --git a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/ValidationCategory.cs b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/ValidationCategory.cs deleted file mode 100644 index ee9b170d9f14..000000000000 --- a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/ValidationCategory.cs +++ /dev/null @@ -1,57 +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 ValidationCategory. - /// - [JsonConverter(typeof(StringEnumConverter))] - public enum ValidationCategory - { - /// - /// Identify request of pre-job creation validations. - /// - [EnumMember(Value = "JobCreationValidation")] - JobCreationValidation - } - internal static class ValidationCategoryEnumExtension - { - internal static string ToSerializedValue(this ValidationCategory? value) - { - return value == null ? null : ((ValidationCategory)value).ToSerializedValue(); - } - - internal static string ToSerializedValue(this ValidationCategory value) - { - switch( value ) - { - case ValidationCategory.JobCreationValidation: - return "JobCreationValidation"; - } - return null; - } - - internal static ValidationCategory? ParseValidationCategory(this string value) - { - switch( value ) - { - case "JobCreationValidation": - return ValidationCategory.JobCreationValidation; - } - return null; - } - } -} diff --git a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/ValidationInputDiscriminator.cs b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/ValidationInputDiscriminator.cs deleted file mode 100644 index c12bc0055eb4..000000000000 --- a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/ValidationInputDiscriminator.cs +++ /dev/null @@ -1,105 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.DataBox.Models -{ - using Newtonsoft.Json; - using Newtonsoft.Json.Converters; - using System.Runtime; - using System.Runtime.Serialization; - - /// - /// Defines values for ValidationInputDiscriminator. - /// - [JsonConverter(typeof(StringEnumConverter))] - public enum ValidationInputDiscriminator - { - /// - /// Identify request and response of address validation. - /// - [EnumMember(Value = "ValidateAddress")] - ValidateAddress, - /// - /// Identify request and response for validation of subscription - /// permission to create job. - /// - [EnumMember(Value = "ValidateSubscriptionIsAllowedToCreateJob")] - ValidateSubscriptionIsAllowedToCreateJob, - /// - /// Identify request and response of preference validation. - /// - [EnumMember(Value = "ValidatePreferences")] - ValidatePreferences, - /// - /// Identify request and response of create order limit for - /// subscription validation. - /// - [EnumMember(Value = "ValidateCreateOrderLimit")] - ValidateCreateOrderLimit, - /// - /// Identify request and response of active job limit for sku - /// availability. - /// - [EnumMember(Value = "ValidateSkuAvailability")] - ValidateSkuAvailability, - /// - /// Identify request and response of data transfer details validation. - /// - [EnumMember(Value = "ValidateDataTransferDetails")] - ValidateDataTransferDetails - } - internal static class ValidationInputDiscriminatorEnumExtension - { - internal static string ToSerializedValue(this ValidationInputDiscriminator? value) - { - return value == null ? null : ((ValidationInputDiscriminator)value).ToSerializedValue(); - } - - internal static string ToSerializedValue(this ValidationInputDiscriminator value) - { - switch( value ) - { - case ValidationInputDiscriminator.ValidateAddress: - return "ValidateAddress"; - case ValidationInputDiscriminator.ValidateSubscriptionIsAllowedToCreateJob: - return "ValidateSubscriptionIsAllowedToCreateJob"; - case ValidationInputDiscriminator.ValidatePreferences: - return "ValidatePreferences"; - case ValidationInputDiscriminator.ValidateCreateOrderLimit: - return "ValidateCreateOrderLimit"; - case ValidationInputDiscriminator.ValidateSkuAvailability: - return "ValidateSkuAvailability"; - case ValidationInputDiscriminator.ValidateDataTransferDetails: - return "ValidateDataTransferDetails"; - } - return null; - } - - internal static ValidationInputDiscriminator? ParseValidationInputDiscriminator(this string value) - { - switch( value ) - { - case "ValidateAddress": - return ValidationInputDiscriminator.ValidateAddress; - case "ValidateSubscriptionIsAllowedToCreateJob": - return ValidationInputDiscriminator.ValidateSubscriptionIsAllowedToCreateJob; - case "ValidatePreferences": - return ValidationInputDiscriminator.ValidatePreferences; - case "ValidateCreateOrderLimit": - return ValidationInputDiscriminator.ValidateCreateOrderLimit; - case "ValidateSkuAvailability": - return ValidationInputDiscriminator.ValidateSkuAvailability; - case "ValidateDataTransferDetails": - return ValidationInputDiscriminator.ValidateDataTransferDetails; - } - return null; - } - } -} diff --git a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/ValidationInputRequest.cs b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/ValidationInputRequest.cs index 16cd7d432818..096380231268 100644 --- a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/ValidationInputRequest.cs +++ b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/ValidationInputRequest.cs @@ -10,13 +10,11 @@ namespace Microsoft.Azure.Management.DataBox.Models { - using Newtonsoft.Json; using System.Linq; /// /// Minimum fields that must be present in any type of validation request. /// - [Newtonsoft.Json.JsonObject("ValidationInputRequest")] public partial class ValidationInputRequest { /// diff --git a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/ValidationInputResponse.cs b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/ValidationInputResponse.cs index ec95819d34de..b9e61e39f27f 100644 --- a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/ValidationInputResponse.cs +++ b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/ValidationInputResponse.cs @@ -10,7 +10,6 @@ namespace Microsoft.Azure.Management.DataBox.Models { - using Microsoft.Rest.Azure; using Newtonsoft.Json; using System.Linq; @@ -18,7 +17,6 @@ namespace Microsoft.Azure.Management.DataBox.Models /// Minimum properties that should be present in each individual validation /// response. /// - [Newtonsoft.Json.JsonObject("ValidationInputResponse")] public partial class ValidationInputResponse { /// diff --git a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/ValidationRequest.cs b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/ValidationRequest.cs index a67857f192ed..ed8dec97c1dd 100644 --- a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/ValidationRequest.cs +++ b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/ValidationRequest.cs @@ -19,7 +19,6 @@ namespace Microsoft.Azure.Management.DataBox.Models /// /// Minimum request requirement of any validation category. /// - [Newtonsoft.Json.JsonObject("ValidationRequest")] public partial class ValidationRequest { /// diff --git a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/SdkInfo_DataBoxManagementClient.cs b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/SdkInfo_DataBoxManagementClient.cs index dc6f0d3ae7a4..0748b1efffeb 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 @@ -26,16 +26,5 @@ public static IEnumerable> ApiInfo_DataBoxManageme }.AsEnumerable(); } } - // BEGIN: Code Generation Metadata Section - public static readonly String AutoRestVersion = "v2"; - public static readonly String AutoRestBootStrapperVersion = "autorest@3.3.2"; - public static readonly String AutoRestCmdExecuted = "cmd.exe /c autorest.cmd https://github.com/Azure/azure-rest-api-specs/blob/master/specification/databox/resource-manager/readme.md --csharp --version=v2 --reflect-api-versions --csharp-sdks-folder=D:\\azure-sdk\\azure-sdk-for-net\\sdk"; - public static readonly String GithubForkName = "Azure"; - public static readonly String GithubBranchName = "master"; - public static readonly String GithubCommidId = "5ee7c98d2f778a2a3f867215eba5b13ddf139f6e"; - public static readonly String CodeGenerationErrors = ""; - public static readonly String GithubRepoName = "azure-rest-api-specs"; - // END: Code Generation Metadata Section } } -