Add "Zone" extensions
This commit is contained in:
@@ -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; }
|
||||
}
|
||||
}
|
||||
@@ -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; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user