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
AtBookmarkstringTime-travel bookmark for polling. Stable for duration of export.
StatusstringExport status: "active", "complete", or "error".
ResultD1ExportResultDetailsExport result containing download URL (when status is "complete").
ErrorstringError message (only present when status is "error").
TypestringOperation type: "export".
SuccessboolWhether the operation was successful.
MessagesIReadOnlyList<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
Error
Error message (only present when status is "error").
[JsonPropertyName("error")]
public string? Error { get; init; }
Property Value
Messages
Status messages from the operation.
[JsonPropertyName("messages")]
public IReadOnlyList<string>? Messages { get; init; }
Property Value
Result
Export result containing download URL (when status is "complete").
[JsonPropertyName("result")]
public D1ExportResultDetails? Result { get; init; }
Property Value
Status
Export status: "active", "complete", or "error".
[JsonPropertyName("status")]
public string? Status { get; init; }
Property Value
Success
Whether the operation was successful.
[JsonPropertyName("success")]
public bool Success { get; init; }
Property Value
Type
Operation type: "export".
[JsonPropertyName("type")]
public string? Type { get; init; }