Class BatchPatchOperation
- Namespace
- Cloudflare.NET.Dns.Models
- Assembly
- Cloudflare.NET.dll
Patch operation for batch - includes record ID and fields to update.
Only the fields you include will be updated; other fields retain their values.
public record BatchPatchOperation : IEquatable<BatchPatchOperation>
- Inheritance
-
BatchPatchOperation
- Implements
- Inherited Members
Constructors
BatchPatchOperation(string, DnsRecordType?, string?, string?, int?, bool?, string?)
Patch operation for batch - includes record ID and fields to update.
Only the fields you include will be updated; other fields retain their values.
public BatchPatchOperation(string Id, DnsRecordType? Type = null, string? Name = null, string? Content = null, int? Ttl = null, bool? Proxied = null, string? Comment = null)
Parameters
IdstringThe unique identifier of the DNS record to patch.
TypeDnsRecordType?Optional: new record type.
NamestringOptional: new hostname.
ContentstringOptional: new content.
Ttlint?Optional: new TTL in seconds.
Proxiedbool?Optional: new proxied status.
CommentstringOptional: new comment.
Properties
Comment
Optional: new comment.
[JsonPropertyName("comment")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public string? Comment { get; init; }
Property Value
Content
Optional: new content.
[JsonPropertyName("content")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public string? Content { get; init; }
Property Value
Id
The unique identifier of the DNS record to patch.
[JsonPropertyName("id")]
public string Id { get; init; }
Property Value
Name
Optional: new hostname.
[JsonPropertyName("name")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public string? Name { get; init; }
Property Value
Proxied
Optional: new proxied status.
[JsonPropertyName("proxied")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public bool? Proxied { get; init; }
Property Value
- bool?
Ttl
Optional: new TTL in seconds.
[JsonPropertyName("ttl")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public int? Ttl { get; init; }
Property Value
- int?
Type
Optional: new record type.
[JsonPropertyName("type")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public DnsRecordType? Type { get; init; }