Table of Contents

Class D1ExportResponse

Namespace
Cloudflare.NET.Accounts.D1.Models
Assembly
Cloudflare.NET.dll

Response from a database export operation.

public record D1ExportResponse : IEquatable<D1ExportResponse>
Inheritance
D1ExportResponse
Implements
Inherited Members

Constructors

D1ExportResponse(string?, string?, D1ExportResultDetails?, string?, string?, bool, IReadOnlyList<string>?)

Response from a database export operation.

public D1ExportResponse(string? AtBookmark = null, string? Status = null, D1ExportResultDetails? Result = null, string? Error = null, string? Type = null, bool Success = false, IReadOnlyList<string>? Messages = null)

Parameters

AtBookmark string

Time-travel bookmark for polling. Stable for duration of export.

Status string

Export status: "active", "complete", or "error".

Result D1ExportResultDetails

Export result containing download URL (when status is "complete").

Error string

Error message (only present when status is "error").

Type string

Operation type: "export".

Success bool

Whether the operation was successful.

Messages IReadOnlyList<string>

Status messages from the operation.

Properties

AtBookmark

Time-travel bookmark for polling. Stable for duration of export.

[JsonPropertyName("at_bookmark")]
public string? AtBookmark { get; init; }

Property Value

string

Error

Error message (only present when status is "error").

[JsonPropertyName("error")]
public string? Error { get; init; }

Property Value

string

Messages

Status messages from the operation.

[JsonPropertyName("messages")]
public IReadOnlyList<string>? Messages { get; init; }

Property Value

IReadOnlyList<string>

Result

Export result containing download URL (when status is "complete").

[JsonPropertyName("result")]
public D1ExportResultDetails? Result { get; init; }

Property Value

D1ExportResultDetails

Status

Export status: "active", "complete", or "error".

[JsonPropertyName("status")]
public string? Status { get; init; }

Property Value

string

Success

Whether the operation was successful.

[JsonPropertyName("success")]
public bool Success { get; init; }

Property Value

bool

Type

Operation type: "export".

[JsonPropertyName("type")]
public string? Type { get; init; }

Property Value

string