FileObject

@Serializable
data class FileObject(val name: String, val id: String?, val updatedAt: Instant?, val createdAt: Instant?, val lastAccessedAt: Instant?, val metadata: JsonObject?)(source)

Represents a file or a folder in a bucket. If the item is a folder, everything except name is null.

Parameters

name

The name of the item

id

The id of the item

updatedAt

The last update date of the item

createdAt

The creation date of the item

lastAccessedAt

The last access date of the item

metadata

The metadata of the item

Constructors

Link copied to clipboard
constructor(name: String, id: String?, updatedAt: Instant?, createdAt: Instant?, lastAccessedAt: Instant?, metadata: JsonObject?)

Properties

Link copied to clipboard
@SerialName(value = "created_at")
val createdAt: Instant?
Link copied to clipboard
val id: String?
Link copied to clipboard
@SerialName(value = "last_accessed_at")
val lastAccessedAt: Instant?
Link copied to clipboard
val metadata: JsonObject?
Link copied to clipboard
Link copied to clipboard
@SerialName(value = "updated_at")
val updatedAt: Instant?