Current section
Files
Jump to
Current section
Files
lib/schemas/project/service_account/api_key.ex
defmodule OpenAi.Project.ServiceAccount.ApiKey do
@moduledoc """
Provides struct and type for a Project.ServiceAccount.ApiKey
"""
@type t :: %__MODULE__{
created_at: integer,
id: String.t(),
name: String.t(),
object: String.t(),
value: String.t()
}
defstruct [:created_at, :id, :name, :object, :value]
@doc false
@spec __fields__(atom) :: keyword
def __fields__(type \\ :t)
def __fields__(:t) do
[
created_at: :integer,
id: {:string, :generic},
name: {:string, :generic},
object: {:const, "organization.project.service_account.api_key"},
value: {:string, :generic}
]
end
end