Added DNS Records for Zone actions

This commit is contained in:
2024-11-11 10:23:19 +01:00
parent e561ad8ee7
commit 815c9e3e9d
38 changed files with 5581 additions and 69 deletions

View File

@@ -0,0 +1,28 @@
namespace AMWD.Net.Api.Cloudflare.Zones
{
/// <summary>
/// Request to import DNS records from a BIND configuration file.
/// </summary>
public class ImportDnsRecordsRequest(string zoneId, string file)
{
/// <summary>
/// The zone identifier.
/// </summary>
public string ZoneId { get; set; } = zoneId;
/// <summary>
/// Whether or not proxiable records should receive the performance and security benefits of Cloudflare.
/// </summary>
public bool? Proxied { get; set; }
/// <summary>
/// BIND config to import.
/// </summary>
/// <remarks>
/// If the property is an absolute path, the content of that file will be used as the BIND configuration.
/// <br />
/// Otherwise the property will be treated as BIND configuration itself.
/// </remarks>
public string File { get; set; } = file;
}
}