Table of Contents

Class D1ImportResponse

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

Response from a database import operation.

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

Constructors

D1ImportResponse(string?, string?, D1ImportResultDetails?, string?, string?, bool, string?, string?, IReadOnlyList<string>?)

Response from a database import operation.

public D1ImportResponse(string? AtBookmark = null, string? Status = null, D1ImportResultDetails? Result = null, string? Error = null, string? Type = null, bool Success = false, string? Filename = null, string? UploadUrl = null, IReadOnlyList<string>? Messages = null)

Parameters

AtBookmark string

Time-travel bookmark for polling.

Status string

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

Result D1ImportResultDetails

Import result details.

Error string

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

Type string

Operation type: "import".

Success bool

Whether the operation was successful.

Filename string

Filename for upload (when action is "init").

UploadUrl string

Temporary URL for uploading SQL file (when action is "init").

Messages IReadOnlyList<string>

Status messages from the operation.

Properties

AtBookmark

Time-travel bookmark for polling.

[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

Filename

Filename for upload (when action is "init").

[JsonPropertyName("filename")]
public string? Filename { get; init; }

Property Value

string

Messages

Status messages from the operation.

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

Property Value

IReadOnlyList<string>

Result

Import result details.

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

Property Value

D1ImportResultDetails

Status

Import 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: "import".

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

Property Value

string

UploadUrl

Temporary URL for uploading SQL file (when action is "init").

[JsonPropertyName("upload_url")]
public string? UploadUrl { get; init; }

Property Value

string