| | 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 PrivateLinkServiceConnectionStatus. |
| | 20 | | /// </summary> |
| | 21 | | [JsonConverter(typeof(StringEnumConverter))] |
| | 22 | | public enum PrivateLinkServiceConnectionStatus |
| | 23 | | { |
| | 24 | | [EnumMember(Value = "Pending")] |
| | 25 | | Pending, |
| | 26 | | [EnumMember(Value = "Approved")] |
| | 27 | | Approved, |
| | 28 | | [EnumMember(Value = "Rejected")] |
| | 29 | | Rejected, |
| | 30 | | [EnumMember(Value = "Disconnected")] |
| | 31 | | Disconnected |
| | 32 | | } |
| | 33 | | internal static class PrivateLinkServiceConnectionStatusEnumExtension |
| | 34 | | { |
| | 35 | | internal static string ToSerializedValue(this PrivateLinkServiceConnectionStatus? value) |
| | 36 | | { |
| 0 | 37 | | return value == null ? null : ((PrivateLinkServiceConnectionStatus)value).ToSerializedValue(); |
| | 38 | | } |
| | 39 | |
|
| | 40 | | internal static string ToSerializedValue(this PrivateLinkServiceConnectionStatus value) |
| | 41 | | { |
| | 42 | | switch( value ) |
| | 43 | | { |
| | 44 | | case PrivateLinkServiceConnectionStatus.Pending: |
| 0 | 45 | | return "Pending"; |
| | 46 | | case PrivateLinkServiceConnectionStatus.Approved: |
| 0 | 47 | | return "Approved"; |
| | 48 | | case PrivateLinkServiceConnectionStatus.Rejected: |
| 0 | 49 | | return "Rejected"; |
| | 50 | | case PrivateLinkServiceConnectionStatus.Disconnected: |
| 0 | 51 | | return "Disconnected"; |
| | 52 | | } |
| 0 | 53 | | return null; |
| | 54 | | } |
| | 55 | |
|
| | 56 | | internal static PrivateLinkServiceConnectionStatus? ParsePrivateLinkServiceConnectionStatus(this string value) |
| | 57 | | { |
| | 58 | | switch( value ) |
| | 59 | | { |
| | 60 | | case "Pending": |
| 0 | 61 | | return PrivateLinkServiceConnectionStatus.Pending; |
| | 62 | | case "Approved": |
| 0 | 63 | | return PrivateLinkServiceConnectionStatus.Approved; |
| | 64 | | case "Rejected": |
| 0 | 65 | | return PrivateLinkServiceConnectionStatus.Rejected; |
| | 66 | | case "Disconnected": |
| 0 | 67 | | return PrivateLinkServiceConnectionStatus.Disconnected; |
| | 68 | | } |
| 0 | 69 | | return null; |
| | 70 | | } |
| | 71 | | } |
| | 72 | | } |