commonMain.io.github.jan.supabase.storage.Bucket.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of storage-kt-jvm Show documentation
Show all versions of storage-kt-jvm Show documentation
Extends supabase-kt with a Storage Client
package io.github.jan.supabase.storage
import kotlinx.datetime.Instant
import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable
/**
* Represents a storage bucket
* @param createdAt The creation date of the bucket
* @param id The id of the bucket
* @param name The name of the bucket
* @param owner The owner of the bucket
* @param updatedAt The last update date of the bucket
* @param public Whether the bucket is public
* @param allowedMimeTypes The allowed mime types for the bucket
* @param fileSizeLimit The file size limit for the bucket
* @see BucketBuilder
* @see Storage.createBucket
*/
@Serializable
data class Bucket(
@SerialName("created_at")
val createdAt: Instant,
@SerialName("id")
val id: String,
@SerialName("name")
val name: String,
@SerialName("owner")
val owner: String,
@SerialName("updated_at")
val updatedAt: Instant,
val public: Boolean,
@SerialName("allowed_mime_types")
val allowedMimeTypes: List? = null,
@SerialName("file_size_limit")
val fileSizeLimit: Long? = null
)