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

commonMain.com.xebia.functional.openai.generated.model.ProjectUser.kt Maven / Gradle / Ivy

The newest version!
/**
 *
 * 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 kotlinx.serialization.Serializable
import kotlinx.serialization.SerialName
import kotlinx.serialization.Contextual
import kotlin.js.JsName
import kotlinx.serialization.json.*

/**
* Represents an individual user in a project.
*
    * @param `object` The object type, which is always `organization.project.user`
    * @param id The identifier, which can be referenced in API endpoints
    * @param name The name of the user
    * @param email The email address of the user
    * @param role `owner` or `member`
    * @param addedAt The Unix timestamp (in seconds) of when the project was added.
*/
@Serializable


data class ProjectUser (
        /* The object type, which is always `organization.project.user` */
    @SerialName(value = "object") val `object`: ProjectUser.`Object`,
        /* The identifier, which can be referenced in API endpoints */
    @SerialName(value = "id") val id: kotlin.String,
        /* The name of the user */
    @SerialName(value = "name") val name: kotlin.String,
        /* The email address of the user */
    @SerialName(value = "email") val email: kotlin.String,
        /* `owner` or `member` */
    @SerialName(value = "role") val role: ProjectUser.Role,
        /* The Unix timestamp (in seconds) of when the project was added. */
    @SerialName(value = "added_at") val addedAt: kotlin.Int
) {

            /**
            * The object type, which is always `organization.project.user`
            *
            * Values: organization_project_user
            */
            @Serializable
            enum class `Object`(val value: kotlin.String) {
                @SerialName(value = "organization.project.user") organization_project_user("organization.project.user");
                }
            /**
            * `owner` or `member`
            *
            * Values: owner,member
            */
            @Serializable
            enum class Role(val value: kotlin.String) {
                @SerialName(value = "owner") owner("owner"),
                @SerialName(value = "member") member("member");
                }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy