| | 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.Resources.Models |
| | 11 | | { |
| | 12 | | internal static class DeploymentModeExtensions |
| | 13 | | { |
| 352 | 14 | | public static string ToSerialString(this DeploymentMode value) => value switch |
| 352 | 15 | | { |
| 680 | 16 | | DeploymentMode.Incremental => "Incremental", |
| 376 | 17 | | DeploymentMode.Complete => "Complete", |
| 0 | 18 | | _ => throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown DeploymentMode value.") |
| 352 | 19 | | }; |
| | 20 | |
|
| | 21 | | public static DeploymentMode ToDeploymentMode(this string value) |
| | 22 | | { |
| 256 | 23 | | if (string.Equals(value, "Incremental", StringComparison.InvariantCultureIgnoreCase)) return DeploymentMode. |
| 0 | 24 | | if (string.Equals(value, "Complete", StringComparison.InvariantCultureIgnoreCase)) return DeploymentMode.Com |
| 0 | 25 | | throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown DeploymentMode value."); |
| | 26 | | } |
| | 27 | | } |
| | 28 | | } |