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

commonMain.tools.ozone.setting.upsertOption.kt Maven / Gradle / Ivy

The newest version!
@file:Suppress("DEPRECATION")

package tools.ozone.setting

import kotlin.String
import kotlin.Suppress
import kotlinx.serialization.Serializable
import sh.christian.ozone.api.Nsid
import sh.christian.ozone.api.model.JsonContent

@Serializable
public data class UpsertOptionRequest(
  public val key: Nsid,
  public val scope: UpsertOptionScope,
  public val `value`: JsonContent,
  public val description: String? = null,
  public val managerRole: String? = null,
) {
  init {
    require(description == null || description.count() <= 2_000) {
      "description.count() must be <= 2_000, but was ${description?.count()}"
    }
  }
}

@Serializable
public data class UpsertOptionResponse(
  public val option: Option,
)




© 2015 - 2024 Weber Informatics LLC | Privacy Policy