Table of Contents

Class GeminiFile

Metadata for a file uploaded to the File API.

public class GeminiFile
Inheritance
GeminiFile
Extension Methods

Fields

CreateTime

The timestamp of when the GeminiFile was created.

public DateTime CreateTime

Field Value

DateTime

DisplayName

The human-readable display name for the GeminiFile.

public string DisplayName

Field Value

string

Error

Error status if GeminiFile processing failed.

public OperationStatus Error

Field Value

OperationStatus

ExpirationTime

The timestamp of when the GeminiFile will be deleted. Only set if the GeminiFile is scheduled to expire.

public DateTime ExpirationTime

Field Value

DateTime

MimeType

MIME type of the file.

public string MimeType

Field Value

string

Remarks

You can use ContentType(string) to convert string values to their GeminiContentType equivalents, like: "image/png".ContentType()

Name

The GeminiFile resource name.

public string Name

Field Value

string

Sha256Hash

SHA-256 hash of the uploaded bytes. A base64-encoded string.

public string Sha256Hash

Field Value

string

SizeBytes

Size of the file in bytes.

public long SizeBytes

Field Value

long

State

Processing state of the GeminiFile.

public GeminiFileState State

Field Value

GeminiFileState

Status

Error status if GeminiFile processing failed.

[Obsolete("Use GeminiFile.Error instead.")]
public OperationStatus Status

Field Value

OperationStatus

UpdateTime

The timestamp of when the GeminiFile was last updated.

public DateTime UpdateTime

Field Value

DateTime

Uri

The uri of the GeminiFile.

public string Uri

Field Value

string

VideoMetadata

Metadata for a video.

public GeminiFileVideoMetaData VideoMetadata

Field Value

GeminiFileVideoMetaData