| | 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 ContainerServiceOrchestratorTypesExtensions |
| | 13 | | { |
| 0 | 14 | | public static string ToSerialString(this ContainerServiceOrchestratorTypes value) => value switch |
| 0 | 15 | | { |
| 0 | 16 | | ContainerServiceOrchestratorTypes.Swarm => "Swarm", |
| 0 | 17 | | ContainerServiceOrchestratorTypes.Dcos => "DCOS", |
| 0 | 18 | | ContainerServiceOrchestratorTypes.Custom => "Custom", |
| 0 | 19 | | ContainerServiceOrchestratorTypes.Kubernetes => "Kubernetes", |
| 0 | 20 | | _ => throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown ContainerServiceOrchestratorTypes |
| 0 | 21 | | }; |
| | 22 | |
|
| | 23 | | public static ContainerServiceOrchestratorTypes ToContainerServiceOrchestratorTypes(this string value) |
| | 24 | | { |
| 0 | 25 | | if (string.Equals(value, "Swarm", StringComparison.InvariantCultureIgnoreCase)) return ContainerServiceOrche |
| 0 | 26 | | if (string.Equals(value, "DCOS", StringComparison.InvariantCultureIgnoreCase)) return ContainerServiceOrches |
| 0 | 27 | | if (string.Equals(value, "Custom", StringComparison.InvariantCultureIgnoreCase)) return ContainerServiceOrch |
| 0 | 28 | | if (string.Equals(value, "Kubernetes", StringComparison.InvariantCultureIgnoreCase)) return ContainerService |
| 0 | 29 | | throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown ContainerServiceOrchestratorTypes value |
| | 30 | | } |
| | 31 | | } |
| | 32 | | } |