Added missing priority on DNS record
This commit is contained in:
17
CHANGELOG.md
17
CHANGELOG.md
@@ -1 +1,18 @@
|
|||||||
# Changelog
|
# 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>
|
/// <summary>
|
||||||
/// Page number of paginated results.
|
/// Page number of paginated results.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
// >= 1
|
/// <value>1 <= X</value>
|
||||||
public int? Page { get; set; }
|
public int? Page { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Number of DNS records per page.
|
/// Number of DNS records per page.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
// >= 1 <= 5_000_000
|
/// <value>1 <= X <= 5,000,000</value>
|
||||||
public int? PerPage { get; set; }
|
public int? PerPage { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|||||||
@@ -11,7 +11,6 @@ namespace AMWD.Net.Api.Cloudflare.Zones
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// An account ID.
|
/// An account ID.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <value>account.id</value>
|
|
||||||
public string? AccountId { get; set; }
|
public string? AccountId { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@@ -32,19 +31,16 @@ namespace AMWD.Net.Api.Cloudflare.Zones
|
|||||||
/// </remarks>
|
/// </remarks>
|
||||||
/// <example>Dev Account</example>
|
/// <example>Dev Account</example>
|
||||||
/// <example>contains:Test</example>
|
/// <example>contains:Test</example>
|
||||||
/// <value>account.name</value>
|
|
||||||
public string? AccountName { get; set; }
|
public string? AccountName { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Direction to order zones.
|
/// Direction to order zones.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <value>direction</value>
|
|
||||||
public SortDirection? Direction { get; set; }
|
public SortDirection? Direction { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Whether to match all search requirements or at least one (any).
|
/// Whether to match all search requirements or at least one (any).
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <value>match</value>
|
|
||||||
public FilterMatchType? Match { get; set; }
|
public FilterMatchType? Match { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@@ -67,31 +63,28 @@ namespace AMWD.Net.Api.Cloudflare.Zones
|
|||||||
/// <example>contains:.org</example>
|
/// <example>contains:.org</example>
|
||||||
/// <example>ends_with:arpa</example>
|
/// <example>ends_with:arpa</example>
|
||||||
/// <example>starts_with:dev</example>
|
/// <example>starts_with:dev</example>
|
||||||
/// <value>name</value>
|
|
||||||
public string? Name { get; set; }
|
public string? Name { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Field to order zones by.
|
/// Field to order zones by.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <value>order</value>
|
|
||||||
public ZonesOrderBy? OrderBy { get; set; }
|
public ZonesOrderBy? OrderBy { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Page number of paginated results.
|
/// Page number of paginated results.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <value>page</value>
|
/// <value>1 <= X</value>
|
||||||
public int? Page { get; set; }
|
public int? Page { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Number of zones per page.
|
/// Number of zones per page.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <value>per_page</value>
|
/// <value>5 <= X <= 50</value>
|
||||||
public int? PerPage { get; set; }
|
public int? PerPage { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// A zone status.
|
/// A zone status.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <value>status</value>
|
|
||||||
public ZoneStatus? Status { get; set; }
|
public ZoneStatus? Status { get; set; }
|
||||||
|
|
||||||
/// <inheritdoc />
|
/// <inheritdoc />
|
||||||
|
|||||||
@@ -46,6 +46,16 @@ namespace AMWD.Net.Api.Cloudflare.Zones
|
|||||||
[JsonProperty("content")]
|
[JsonProperty("content")]
|
||||||
public string? Content { get; set; }
|
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>
|
/// <summary>
|
||||||
/// Components associated with the record.
|
/// Components associated with the record.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|||||||
Reference in New Issue
Block a user