Added missing priority on DNS record
This commit is contained in:
17
CHANGELOG.md
17
CHANGELOG.md
@@ -1 +1,18 @@
|
||||
# Changelog
|
||||
|
||||
All notable changes to this project will be documented in this file.
|
||||
|
||||
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
|
||||
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
||||
|
||||
## [Unreleased]
|
||||
|
||||
|
||||
### Added
|
||||
|
||||
- `Cloudflare` with basic functionality to communicate with Cloudflare's API
|
||||
- `Cloudflare.Zones` extending the core package with specific methods to manage Cloudflare's DNS zones
|
||||
|
||||
|
||||
|
||||
[Unreleased]: https://github.com/AM-WD/cloudflare-api
|
||||
|
||||
@@ -148,13 +148,13 @@ namespace AMWD.Net.Api.Cloudflare.Zones
|
||||
/// <summary>
|
||||
/// Page number of paginated results.
|
||||
/// </summary>
|
||||
// >= 1
|
||||
/// <value>1 <= X</value>
|
||||
public int? Page { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Number of DNS records per page.
|
||||
/// </summary>
|
||||
// >= 1 <= 5_000_000
|
||||
/// <value>1 <= X <= 5,000,000</value>
|
||||
public int? PerPage { get; set; }
|
||||
|
||||
/// <summary>
|
||||
|
||||
@@ -11,7 +11,6 @@ namespace AMWD.Net.Api.Cloudflare.Zones
|
||||
/// <summary>
|
||||
/// An account ID.
|
||||
/// </summary>
|
||||
/// <value>account.id</value>
|
||||
public string? AccountId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
@@ -32,19 +31,16 @@ namespace AMWD.Net.Api.Cloudflare.Zones
|
||||
/// </remarks>
|
||||
/// <example>Dev Account</example>
|
||||
/// <example>contains:Test</example>
|
||||
/// <value>account.name</value>
|
||||
public string? AccountName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Direction to order zones.
|
||||
/// </summary>
|
||||
/// <value>direction</value>
|
||||
public SortDirection? Direction { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Whether to match all search requirements or at least one (any).
|
||||
/// </summary>
|
||||
/// <value>match</value>
|
||||
public FilterMatchType? Match { get; set; }
|
||||
|
||||
/// <summary>
|
||||
@@ -67,31 +63,28 @@ namespace AMWD.Net.Api.Cloudflare.Zones
|
||||
/// <example>contains:.org</example>
|
||||
/// <example>ends_with:arpa</example>
|
||||
/// <example>starts_with:dev</example>
|
||||
/// <value>name</value>
|
||||
public string? Name { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Field to order zones by.
|
||||
/// </summary>
|
||||
/// <value>order</value>
|
||||
public ZonesOrderBy? OrderBy { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Page number of paginated results.
|
||||
/// </summary>
|
||||
/// <value>page</value>
|
||||
/// <value>1 <= X</value>
|
||||
public int? Page { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Number of zones per page.
|
||||
/// </summary>
|
||||
/// <value>per_page</value>
|
||||
/// <value>5 <= X <= 50</value>
|
||||
public int? PerPage { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// A zone status.
|
||||
/// </summary>
|
||||
/// <value>status</value>
|
||||
public ZoneStatus? Status { get; set; }
|
||||
|
||||
/// <inheritdoc />
|
||||
|
||||
@@ -46,6 +46,16 @@ namespace AMWD.Net.Api.Cloudflare.Zones
|
||||
[JsonProperty("content")]
|
||||
public string? Content { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The priority.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Required for <see cref="DnsRecordType.Mx"/>, <see cref="DnsRecordType.Srv"/> and <see cref="DnsRecordType.Uri"/> records; unused by other record types.
|
||||
/// Records with lower priorities are preferred.
|
||||
/// </remarks>
|
||||
[JsonProperty("priority")]
|
||||
public ushort? Priority { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Components associated with the record.
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user