Reorganize, shared entities from TypeScript SDK
https://github.com/cloudflare/cloudflare-typescript/blob/v4.4.1/src/resources/shared.ts
This commit is contained in:
37
Cloudflare/Enums/CertificateCA.cs
Normal file
37
Cloudflare/Enums/CertificateCA.cs
Normal file
@@ -0,0 +1,37 @@
|
||||
using System.Runtime.Serialization;
|
||||
using Newtonsoft.Json.Converters;
|
||||
|
||||
namespace AMWD.Net.Api.Cloudflare
|
||||
{
|
||||
/// <summary>
|
||||
/// The Certificate Authority that will issue the certificate.
|
||||
/// <see href="https://github.com/cloudflare/cloudflare-typescript/blob/v4.4.1/src/resources/shared.ts#L110">Source</see>
|
||||
/// </summary>
|
||||
[JsonConverter(typeof(StringEnumConverter))]
|
||||
public enum CertificateCA
|
||||
{
|
||||
/// <summary>
|
||||
/// DigiCert.
|
||||
/// </summary>
|
||||
[EnumMember(Value = "digicert")]
|
||||
DigiCert = 1,
|
||||
|
||||
/// <summary>
|
||||
/// Google.
|
||||
/// </summary>
|
||||
[EnumMember(Value = "google")]
|
||||
Google = 2,
|
||||
|
||||
/// <summary>
|
||||
/// Let's Encrypt.
|
||||
/// </summary>
|
||||
[EnumMember(Value = "lets_encrypt")]
|
||||
LetsEncrypt = 3,
|
||||
|
||||
/// <summary>
|
||||
/// SSL.com.
|
||||
/// </summary>
|
||||
[EnumMember(Value = "ssl_com")]
|
||||
SslCom = 4
|
||||
}
|
||||
}
|
||||
@@ -1,24 +0,0 @@
|
||||
using System.Runtime.Serialization;
|
||||
using Newtonsoft.Json.Converters;
|
||||
|
||||
namespace AMWD.Net.Api.Cloudflare
|
||||
{
|
||||
/// <summary>
|
||||
/// Whether to match all search requirements or at least one (any).
|
||||
/// </summary>
|
||||
[JsonConverter(typeof(StringEnumConverter))]
|
||||
public enum FilterMatchType
|
||||
{
|
||||
/// <summary>
|
||||
/// Match all search requirements.
|
||||
/// </summary>
|
||||
[EnumMember(Value = "all")]
|
||||
All = 1,
|
||||
|
||||
/// <summary>
|
||||
/// Match at least one search requirement.
|
||||
/// </summary>
|
||||
[EnumMember(Value = "any")]
|
||||
Any = 2,
|
||||
}
|
||||
}
|
||||
37
Cloudflare/Enums/RenewFrequency.cs
Normal file
37
Cloudflare/Enums/RenewFrequency.cs
Normal file
@@ -0,0 +1,37 @@
|
||||
using System.Runtime.Serialization;
|
||||
using Newtonsoft.Json.Converters;
|
||||
|
||||
namespace AMWD.Net.Api.Cloudflare
|
||||
{
|
||||
/// <summary>
|
||||
/// A frequency at which to renew subscriptions, etc.
|
||||
/// <see href="https://github.com/cloudflare/cloudflare-typescript/blob/v4.4.1/src/resources/shared.ts#L730">Source</see>
|
||||
/// </summary>
|
||||
[JsonConverter(typeof(StringEnumConverter))]
|
||||
public enum RenewFrequency
|
||||
{
|
||||
/// <summary>
|
||||
/// Weekly
|
||||
/// </summary>
|
||||
[EnumMember(Value = "weekly")]
|
||||
Weekly = 1,
|
||||
|
||||
/// <summary>
|
||||
/// Monthly
|
||||
/// </summary>
|
||||
[EnumMember(Value = "monthly")]
|
||||
Monthly = 2,
|
||||
|
||||
/// <summary>
|
||||
/// Quarterly
|
||||
/// </summary>
|
||||
[EnumMember(Value = "quarterly")]
|
||||
Quarterly = 3,
|
||||
|
||||
/// <summary>
|
||||
/// Yearly
|
||||
/// </summary>
|
||||
[EnumMember(Value = "yearly")]
|
||||
Yearly = 4
|
||||
}
|
||||
}
|
||||
@@ -5,6 +5,7 @@ namespace AMWD.Net.Api.Cloudflare
|
||||
{
|
||||
/// <summary>
|
||||
/// The direction to sort the entity.
|
||||
/// <see href="https://github.com/cloudflare/cloudflare-typescript/blob/v4.4.1/src/resources/shared.ts#L698">Source</see>
|
||||
/// </summary>
|
||||
[JsonConverter(typeof(StringEnumConverter))]
|
||||
public enum SortDirection
|
||||
|
||||
Reference in New Issue
Block a user