Table of Contents

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

Id string

The unique identifier of the DNS record to patch.

Type DnsRecordType?

Optional: new record type.

Name string

Optional: new hostname.

Content string

Optional: new content.

Ttl int?

Optional: new TTL in seconds.

Proxied bool?

Optional: new proxied status.

Comment string

Optional: new comment.

Properties

Comment

Optional: new comment.

[JsonPropertyName("comment")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public string? Comment { get; init; }

Property Value

string

Content

Optional: new content.

[JsonPropertyName("content")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public string? Content { get; init; }

Property Value

string

Id

The unique identifier of the DNS record to patch.

[JsonPropertyName("id")]
public string Id { get; init; }

Property Value

string

Name

Optional: new hostname.

[JsonPropertyName("name")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public string? Name { get; init; }

Property Value

string

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; }

Property Value

DnsRecordType?