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
AtBookmarkstringTime-travel bookmark for polling.
StatusstringImport status: "active", "complete", or "error".
ResultD1ImportResultDetailsImport result details.
ErrorstringError message (only present when status is "error").
TypestringOperation type: "import".
SuccessboolWhether the operation was successful.
FilenamestringFilename for upload (when action is "init").
UploadUrlstringTemporary URL for uploading SQL file (when action is "init").
MessagesIReadOnlyList<string>Status messages from the operation.
Properties
AtBookmark
Time-travel bookmark for polling.
[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
Filename
Filename for upload (when action is "init").
[JsonPropertyName("filename")]
public string? Filename { get; init; }
Property Value
Messages
Status messages from the operation.
[JsonPropertyName("messages")]
public IReadOnlyList<string>? Messages { get; init; }
Property Value
Result
Import result details.
[JsonPropertyName("result")]
public D1ImportResultDetails? Result { get; init; }
Property Value
Status
Import 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: "import".
[JsonPropertyName("type")]
public string? Type { get; init; }
Property Value
UploadUrl
Temporary URL for uploading SQL file (when action is "init").
[JsonPropertyName("upload_url")]
public string? UploadUrl { get; init; }