| | 1 | | // <auto-generated> |
| | 2 | | // Copyright (c) Microsoft Corporation. All rights reserved. |
| | 3 | | // Licensed under the MIT License. See License.txt in the project root for |
| | 4 | | // license information. |
| | 5 | | // |
| | 6 | | // Code generated by Microsoft (R) AutoRest Code Generator. |
| | 7 | | // Changes may cause incorrect behavior and will be lost if the code is |
| | 8 | | // regenerated. |
| | 9 | | // </auto-generated> |
| | 10 | |
|
| | 11 | | namespace Microsoft.Azure.Management.Search.Models |
| | 12 | | { |
| | 13 | | using Newtonsoft.Json; |
| | 14 | | using Newtonsoft.Json.Converters; |
| | 15 | | using System.Runtime; |
| | 16 | | using System.Runtime.Serialization; |
| | 17 | |
|
| | 18 | | /// <summary> |
| | 19 | | /// Defines values for SkuName. |
| | 20 | | /// </summary> |
| | 21 | | [JsonConverter(typeof(StringEnumConverter))] |
| | 22 | | public enum SkuName |
| | 23 | | { |
| | 24 | | [EnumMember(Value = "free")] |
| | 25 | | Free, |
| | 26 | | [EnumMember(Value = "basic")] |
| | 27 | | Basic, |
| | 28 | | [EnumMember(Value = "standard")] |
| | 29 | | Standard, |
| | 30 | | [EnumMember(Value = "standard2")] |
| | 31 | | Standard2, |
| | 32 | | [EnumMember(Value = "standard3")] |
| | 33 | | Standard3, |
| | 34 | | [EnumMember(Value = "storage_optimized_l1")] |
| | 35 | | StorageOptimizedL1, |
| | 36 | | [EnumMember(Value = "storage_optimized_l2")] |
| | 37 | | StorageOptimizedL2 |
| | 38 | | } |
| | 39 | | internal static class SkuNameEnumExtension |
| | 40 | | { |
| | 41 | | internal static string ToSerializedValue(this SkuName? value) |
| | 42 | | { |
| 0 | 43 | | return value == null ? null : ((SkuName)value).ToSerializedValue(); |
| | 44 | | } |
| | 45 | |
|
| | 46 | | internal static string ToSerializedValue(this SkuName value) |
| | 47 | | { |
| | 48 | | switch( value ) |
| | 49 | | { |
| | 50 | | case SkuName.Free: |
| 0 | 51 | | return "free"; |
| | 52 | | case SkuName.Basic: |
| 0 | 53 | | return "basic"; |
| | 54 | | case SkuName.Standard: |
| 0 | 55 | | return "standard"; |
| | 56 | | case SkuName.Standard2: |
| 0 | 57 | | return "standard2"; |
| | 58 | | case SkuName.Standard3: |
| 0 | 59 | | return "standard3"; |
| | 60 | | case SkuName.StorageOptimizedL1: |
| 0 | 61 | | return "storage_optimized_l1"; |
| | 62 | | case SkuName.StorageOptimizedL2: |
| 0 | 63 | | return "storage_optimized_l2"; |
| | 64 | | } |
| 0 | 65 | | return null; |
| | 66 | | } |
| | 67 | |
|
| | 68 | | internal static SkuName? ParseSkuName(this string value) |
| | 69 | | { |
| | 70 | | switch( value ) |
| | 71 | | { |
| | 72 | | case "free": |
| 0 | 73 | | return SkuName.Free; |
| | 74 | | case "basic": |
| 0 | 75 | | return SkuName.Basic; |
| | 76 | | case "standard": |
| 0 | 77 | | return SkuName.Standard; |
| | 78 | | case "standard2": |
| 0 | 79 | | return SkuName.Standard2; |
| | 80 | | case "standard3": |
| 0 | 81 | | return SkuName.Standard3; |
| | 82 | | case "storage_optimized_l1": |
| 0 | 83 | | return SkuName.StorageOptimizedL1; |
| | 84 | | case "storage_optimized_l2": |
| 0 | 85 | | return SkuName.StorageOptimizedL2; |
| | 86 | | } |
| 0 | 87 | | return null; |
| | 88 | | } |
| | 89 | | } |
| | 90 | | } |