using System.Runtime.Serialization;
using Newtonsoft.Json.Converters;
namespace AMWD.Net.Api.Cloudflare.Zones
{
///
/// Control options for the Security Level feature from the Security app.
///
public class SecurityLevel : ZoneSettingBase
{
///
/// Initializes a new instance of the class.
///
public SecurityLevel()
{
Id = ZoneSettingId.SecurityLevel;
}
///
/// Current value of the zone setting.
///
[JsonProperty("value")]
public SecurityLevelValue? Value { get; set; }
}
///
/// Security levels.
/// Source
///
[JsonConverter(typeof(StringEnumConverter))]
public enum SecurityLevelValue
{
///
/// Off.
///
[EnumMember(Value = "off")]
Off = 1,
///
/// Essentially off.
///
[EnumMember(Value = "essentially_off")]
EssentiallyOff = 2,
///
/// Low.
///
[EnumMember(Value = "low")]
Low = 3,
///
/// Medium.
///
[EnumMember(Value = "medium")]
Medium = 4,
///
/// High.
///
[EnumMember(Value = "high")]
High = 5,
///
/// Under Attack.
///
[EnumMember(Value = "under_attack")]
UnderAttack = 6
}
}