lib/ory/model/managed_identity_schema.ex

# NOTE: This file is auto generated by OpenAPI Generator 7.2.0 (https://openapi-generator.tech).
# Do not edit this file manually.

defmodule Ory.Model.ManagedIdentitySchema do
  @moduledoc """
  Together the name and identity uuid are a unique index constraint. This prevents a user from having schemas with the same name. This also allows schemas to have the same name across the system.
  """

  @derive Jason.Encoder
  defstruct [
    :blob_name,
    :blob_url,
    :content_hash,
    :created_at,
    :id,
    :name,
    :updated_at
  ]

  @type t :: %__MODULE__{
    :blob_name => String.t,
    :blob_url => String.t,
    :content_hash => String.t | nil,
    :created_at => DateTime.t,
    :id => String.t,
    :name => String.t,
    :updated_at => DateTime.t
  }

  alias Ory.Deserializer

  def decode(value) do
    value
     |> Deserializer.deserialize(:created_at, :datetime, nil)
     |> Deserializer.deserialize(:updated_at, :datetime, nil)
  end
end