Add "Zone" extensions

This commit is contained in:
2025-06-24 15:14:54 +02:00
parent 2fe9ac0657
commit 9aa1dbb02c
18 changed files with 1856 additions and 6 deletions

View File

@@ -0,0 +1,22 @@
namespace AMWD.Net.Api.Cloudflare.Zones.Internals
{
internal class InternalCreateZoneRequest
{
public InternalCreateZoneRequest(string? accountId, string name, ZoneType? type)
{
Account = new Identifier { Id = accountId };
Name = name;
Type = type;
}
[JsonProperty("account")]
public Identifier Account { get; set; }
[JsonProperty("name")]
public string Name { get; set; }
[JsonProperty("type")]
public ZoneType? Type { get; set; }
}
}

View File

@@ -0,0 +1,14 @@
namespace AMWD.Net.Api.Cloudflare.Zones.Internals
{
internal class InternalEditZoneRequest
{
[JsonProperty("paused")]
public bool? Paused { get; set; }
[JsonProperty("type")]
public ZoneType? Type { get; set; }
[JsonProperty("vanity_name_servers")]
public IReadOnlyCollection<string>? VanityNameServers { get; set; }
}
}