Add "ZoneSettings" extensions

This commit is contained in:
2025-07-09 08:21:36 +02:00
parent b5279b60a8
commit a916d49b11
69 changed files with 3004 additions and 0 deletions

View File

@@ -0,0 +1,51 @@
using System.Runtime.Serialization;
using Newtonsoft.Json.Converters;
namespace AMWD.Net.Api.Cloudflare.Zones
{
/// <summary>
/// Enables Crypto TLS 1.3 feature for a zone.
/// </summary>
public class TLS1_3 : ZoneSettingBase
{
/// <summary>
/// Enables Crypto TLS 1.3 feature for a zone.
/// </summary>
public TLS1_3()
{
Id = ZoneSettingId.TLS1_3;
}
/// <summary>
/// Current value of the zone setting.
/// </summary>
[JsonProperty("value")]
public TlsOption Value { get; set; }
}
/// <summary>
/// Available TLS options.
/// <see href="https://github.com/cloudflare/cloudflare-typescript/blob/v4.4.1/src/resources/zones/settings.ts#L1352">Source</see>
/// </summary>
[JsonConverter(typeof(StringEnumConverter))]
public enum TlsOption
{
/// <summary>
/// Off.
/// </summary>
[EnumMember(Value = "off")]
Off = 1,
/// <summary>
/// On.
/// </summary>
[EnumMember(Value = "on")]
On = 2,
/// <summary>
/// ZRT refers to <see href="https://blog.cloudflare.com/introducing-0-rtt/">Zero Round Trip Time Resumption (0-RTT)</see>.
/// </summary>
[EnumMember(Value = "zrt")]
ZeroRoundTrip = 3
}
}