Packages

OpenAPI API client for Ory Keto, Ory's open source 'Zanzibar - Google's Consistent, Global Authorization System' implementation.

Current section

Files

Jump to
ory_keto lib ory model relation_tuple.ex
Raw

lib/ory/model/relation_tuple.ex

# NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
# https://openapi-generator.tech
# Do not edit the class manually.
defmodule Ory.Model.RelationTuple do
@moduledoc """
"""
@derive [Poison.Encoder]
defstruct [
:namespace,
:object,
:relation,
:subject_id,
:subject_set
]
@type t :: %__MODULE__{
:namespace => String.t,
:object => String.t,
:relation => String.t,
:subject_id => String.t | nil,
:subject_set => Ory.Model.SubjectSet.t | nil
}
end
defimpl Poison.Decoder, for: Ory.Model.RelationTuple do
import Ory.Deserializer
def decode(value, options) do
value
|> deserialize(:subject_set, :struct, Ory.Model.SubjectSet, options)
end
end