| | | 1 | | // Copyright (c) Microsoft Corporation. All rights reserved. |
| | | 2 | | // Licensed under the MIT License. |
| | | 3 | | |
| | | 4 | | // <auto-generated/> |
| | | 5 | | |
| | | 6 | | #nullable disable |
| | | 7 | | |
| | | 8 | | using System; |
| | | 9 | | |
| | | 10 | | namespace Azure.ResourceManager.Compute.Models |
| | | 11 | | { |
| | | 12 | | internal static class VirtualMachineScaleSetSkuScaleTypeExtensions |
| | | 13 | | { |
| | 0 | 14 | | public static string ToSerialString(this VirtualMachineScaleSetSkuScaleType value) => value switch |
| | 0 | 15 | | { |
| | 0 | 16 | | VirtualMachineScaleSetSkuScaleType.Automatic => "Automatic", |
| | 0 | 17 | | VirtualMachineScaleSetSkuScaleType.None => "None", |
| | 0 | 18 | | _ => throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown VirtualMachineScaleSetSkuScaleType |
| | 0 | 19 | | }; |
| | | 20 | | |
| | | 21 | | public static VirtualMachineScaleSetSkuScaleType ToVirtualMachineScaleSetSkuScaleType(this string value) |
| | | 22 | | { |
| | 4312 | 23 | | if (string.Equals(value, "Automatic", StringComparison.InvariantCultureIgnoreCase)) return VirtualMachineSca |
| | 0 | 24 | | if (string.Equals(value, "None", StringComparison.InvariantCultureIgnoreCase)) return VirtualMachineScaleSet |
| | 0 | 25 | | throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown VirtualMachineScaleSetSkuScaleType valu |
| | | 26 | | } |
| | | 27 | | } |
| | | 28 | | } |