using System.Runtime.Serialization; using Newtonsoft.Json.Converters; namespace AMWD.Net.Api.Cloudflare.Zones { /// /// Only accepts HTTPS requests that use at least the TLS protocol version /// specified. For example, if TLS 1.1 is selected, TLS 1.0 connections will be /// rejected, while 1.1, 1.2, and 1.3 (if enabled) will be permitted. /// public class MinTLSVersion : ZoneSettingBase { /// /// Initializes a new instance of the class. /// public MinTLSVersion() { Id = ZoneSettingId.MinTLSVersion; } /// /// Current value of the zone setting. /// public TlsVersion? Value { get; set; } } /// /// Available TLS versions. /// Source /// [JsonConverter(typeof(StringEnumConverter))] public enum TlsVersion { /// /// TLS 1.0 /// [EnumMember(Value = "1.0")] Tls10 = 1, /// /// TLS 1.1 /// [EnumMember(Value = "1.1")] Tls11 = 2, /// /// TLS 1.2 /// [EnumMember(Value = "1.2")] Tls12 = 3, /// /// TLS 1.3 /// [EnumMember(Value = "1.3")] Tls13 = 4 } }