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

com.workos.fga.models.Subject.kt Maven / Gradle / Ivy

Go to download

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