Add "ZoneSubscriptions" extensions

This commit is contained in:
2025-07-09 09:29:31 +02:00
parent a916d49b11
commit 450aa5f1c9
9 changed files with 411 additions and 0 deletions

View File

@@ -0,0 +1,32 @@
namespace AMWD.Net.Api.Cloudflare.Zones
{
/// <summary>
/// Represents a request to create a zone subscription.
/// </summary>
public class CreateZoneSubscriptionRequest
{
/// <summary>
/// Initializes a new instance of the <see cref="CreateZoneSubscriptionRequest"/> class.
/// </summary>
/// <param name="zoneId">The zone identifier.</param>
public CreateZoneSubscriptionRequest(string zoneId)
{
ZoneId = zoneId;
}
/// <summary>
/// The zone identifier.
/// </summary>
public string ZoneId { get; set; }
/// <summary>
/// How often the subscription is renewed automatically.
/// </summary>
public RenewFrequency? Frequency { get; set; }
/// <summary>
/// The rate plan applied to the subscription.
/// </summary>
public RatePlan? RatePlan { get; set; }
}
}

View File

@@ -0,0 +1,32 @@
namespace AMWD.Net.Api.Cloudflare.Zones
{
/// <summary>
/// Represents a request to update a zone subscription.
/// </summary>
public class UpdateZoneSubscriptionRequest
{
/// <summary>
/// Initializes a new instance of the <see cref="UpdateZoneSubscriptionRequest"/> class.
/// </summary>
/// <param name="zoneId">The zone identifier.</param>
public UpdateZoneSubscriptionRequest(string zoneId)
{
ZoneId = zoneId;
}
/// <summary>
/// The zone identifier.
/// </summary>
public string ZoneId { get; set; }
/// <summary>
/// How often the subscription is renewed automatically.
/// </summary>
public RenewFrequency? Frequency { get; set; }
/// <summary>
/// The rate plan applied to the subscription.
/// </summary>
public RatePlan? RatePlan { get; set; }
}
}