FileObjectV2
@Serializable
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
version
The version of the item
bucketId
The bucket 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
size
The size of the item
rawContentType
The content type of the item
etag
The etag of the item
lastModified
The last modified date of the item
cacheControl
The cache control of the item
serializer
The serializer to use for decoding the metadata
Constructors
Link copied to clipboard
constructor( name: String, id: String?, version: String, bucketId: String? = null, updatedAt: Instant? = null, createdAt: Instant, lastAccessedAt: Instant? = null, metadata: JsonObject? = null, size: Long, rawContentType: String, etag: String? = null, lastModified: Instant? = null, cacheControl: String? = null, serializer: SupabaseSerializer = KotlinXSerializer())
Properties
Functions
Link copied to clipboard
Decodes the metadata using the serializer