All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.io.github.jan.supabase.storage.Bucket.kt Maven / Gradle / Ivy

There is a newer version: 3.0.2
Show newest version
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
)




© 2015 - 2024 Weber Informatics LLC | Privacy Policy