commonMain.com.xebia.functional.openai.generated.model.ProjectApiKey.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of xef-openai-client Show documentation
Show all versions of xef-openai-client Show documentation
Building applications with LLMs through composability in Kotlin
/**
*
* Please note:
* This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* Do not edit this file manually.
*
*/
@file:Suppress(
"ArrayInDataClass",
"EnumEntryName",
"RemoveRedundantQualifierName",
"UnusedImport"
)
package com.xebia.functional.openai.generated.model
import com.xebia.functional.openai.generated.model.ProjectApiKeyOwner
import kotlinx.serialization.Serializable
import kotlinx.serialization.SerialName
import kotlinx.serialization.Contextual
import kotlin.js.JsName
import kotlinx.serialization.json.*
/**
* Represents an individual API key in a project.
*
* @param `object` The object type, which is always `organization.project.api_key`
* @param redactedValue The redacted value of the API key
* @param name The name of the API key
* @param createdAt The Unix timestamp (in seconds) of when the API key was created
* @param id The identifier, which can be referenced in API endpoints
* @param owner
*/
@Serializable
data class ProjectApiKey (
/* The object type, which is always `organization.project.api_key` */
@SerialName(value = "object") val `object`: ProjectApiKey.`Object`,
/* The redacted value of the API key */
@SerialName(value = "redacted_value") val redactedValue: kotlin.String,
/* The name of the API key */
@SerialName(value = "name") val name: kotlin.String,
/* The Unix timestamp (in seconds) of when the API key was created */
@SerialName(value = "created_at") val createdAt: kotlin.Int,
/* The identifier, which can be referenced in API endpoints */
@SerialName(value = "id") val id: kotlin.String,
@SerialName(value = "owner") val owner: ProjectApiKeyOwner
) {
/**
* The object type, which is always `organization.project.api_key`
*
* Values: organization_project_api_key
*/
@Serializable
enum class `Object`(val value: kotlin.String) {
@SerialName(value = "organization.project.api_key") organization_project_api_key("organization.project.api_key");
}
}