![JAR search and dependency download from the Maven repository](/logo.png)
com.workos.fga.models.Subject.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of workos Show documentation
Show all versions of workos Show documentation
The WorkOS Kotlin library provides convenient access to the WorkOS API from applications written in JVM compatible languages.
The newest version!
package com.workos.fga.models
import com.fasterxml.jackson.annotation.JsonCreator
import com.fasterxml.jackson.annotation.JsonInclude
import com.fasterxml.jackson.annotation.JsonProperty
/**
* A WorkOS FGA subject
*
* @param resourceType The type of the resource. Must be one of your system's existing resource types.
* @param resourceId The unique ID of the resource.
* @param relation Specifies a relation required on the resource to be part of the subject group.
*/
@JsonInclude(JsonInclude.Include.NON_NULL)
data class Subject @JsonCreator constructor(
@JsonProperty("resource_type")
val resourceType: String,
@JsonProperty("resource_id")
val resourceId: String,
@JsonProperty("relation")
val relation: String? = null,
)
© 2015 - 2025 Weber Informatics LLC | Privacy Policy