Current section
Files
Jump to
Current section
Files
lib/snakebridge_generated/vllm/multimodal/inputs/multi_modal_inputs.ex
# Generated by SnakeBridge v0.16.0 - DO NOT EDIT MANUALLY
# Regenerate with: mix compile
# Library: vllm 0.14.0
# Python module: vllm.multimodal.inputs
# Python class: MultiModalInputs
defmodule Vllm.Multimodal.Inputs.MultiModalInputs do
@moduledoc """
Represents the outputs of
[`BaseMultiModalProcessor`][vllm.multimodal.processing.BaseMultiModalProcessor],
ready to be passed to vLLM internals.
"""
def __snakebridge_python_name__, do: "vllm.multimodal.inputs"
def __snakebridge_python_class__, do: "MultiModalInputs"
def __snakebridge_library__, do: "vllm"
@opaque t :: SnakeBridge.Ref.t()
@doc """
Initialize self. See help(type(self)) for accurate signature.
## Parameters
- `args` (term())
- `kwargs` (term())
"""
@spec new(list(term()), keyword()) :: {:ok, SnakeBridge.Ref.t()} | {:error, Snakepit.Error.t()}
def new(args, opts \\ []) do
{args, opts} = SnakeBridge.Runtime.normalize_args_opts(args, opts)
SnakeBridge.Runtime.call_class(__MODULE__, :__init__, [] ++ List.wrap(args), opts)
end
@doc """
D.clear() -> None. Remove all items from D.
## Returns
- `term()`
"""
@spec clear(SnakeBridge.Ref.t()) :: {:ok, term()} | {:error, Snakepit.Error.t()}
@spec clear(SnakeBridge.Ref.t(), keyword()) :: {:ok, term()} | {:error, Snakepit.Error.t()}
@spec clear(SnakeBridge.Ref.t(), term()) :: {:ok, term()} | {:error, Snakepit.Error.t()}
@spec clear(SnakeBridge.Ref.t(), term(), keyword()) ::
{:ok, term()} | {:error, Snakepit.Error.t()}
@spec clear(SnakeBridge.Ref.t(), term(), term()) :: {:ok, term()} | {:error, Snakepit.Error.t()}
@spec clear(SnakeBridge.Ref.t(), term(), term(), keyword()) ::
{:ok, term()} | {:error, Snakepit.Error.t()}
@spec clear(SnakeBridge.Ref.t(), term(), term(), term()) ::
{:ok, term()} | {:error, Snakepit.Error.t()}
@spec clear(SnakeBridge.Ref.t(), term(), term(), term(), keyword()) ::
{:ok, term()} | {:error, Snakepit.Error.t()}
@spec clear(SnakeBridge.Ref.t(), term(), term(), term(), term()) ::
{:ok, term()} | {:error, Snakepit.Error.t()}
@spec clear(SnakeBridge.Ref.t(), term(), term(), term(), term(), keyword()) ::
{:ok, term()} | {:error, Snakepit.Error.t()}
@spec clear(SnakeBridge.Ref.t(), term(), term(), term(), term(), term()) ::
{:ok, term()} | {:error, Snakepit.Error.t()}
@spec clear(SnakeBridge.Ref.t(), term(), term(), term(), term(), term(), keyword()) ::
{:ok, term()} | {:error, Snakepit.Error.t()}
@spec clear(SnakeBridge.Ref.t(), term(), term(), term(), term(), term(), term()) ::
{:ok, term()} | {:error, Snakepit.Error.t()}
@spec clear(SnakeBridge.Ref.t(), term(), term(), term(), term(), term(), term(), keyword()) ::
{:ok, term()} | {:error, Snakepit.Error.t()}
@spec clear(SnakeBridge.Ref.t(), term(), term(), term(), term(), term(), term(), term()) ::
{:ok, term()} | {:error, Snakepit.Error.t()}
@spec clear(
SnakeBridge.Ref.t(),
term(),
term(),
term(),
term(),
term(),
term(),
term(),
keyword()
) :: {:ok, term()} | {:error, Snakepit.Error.t()}
@spec clear(SnakeBridge.Ref.t(), term(), term(), term(), term(), term(), term(), term(), term()) ::
{:ok, term()} | {:error, Snakepit.Error.t()}
@spec clear(
SnakeBridge.Ref.t(),
term(),
term(),
term(),
term(),
term(),
term(),
term(),
term(),
keyword()
) :: {:ok, term()} | {:error, Snakepit.Error.t()}
def clear(ref) do
SnakeBridge.Runtime.call_method(ref, :clear, [], [])
end
def clear(ref, opts)
when is_list(opts) and
(opts == [] or
(is_tuple(hd(opts)) and tuple_size(hd(opts)) == 2 and is_atom(elem(hd(opts), 0)))) do
SnakeBridge.Runtime.call_method(ref, :clear, [], opts)
end
def clear(ref, arg1) do
SnakeBridge.Runtime.call_method(ref, :clear, [arg1], [])
end
def clear(ref, arg1, opts)
when is_list(opts) and
(opts == [] or
(is_tuple(hd(opts)) and tuple_size(hd(opts)) == 2 and is_atom(elem(hd(opts), 0)))) do
SnakeBridge.Runtime.call_method(ref, :clear, [arg1], opts)
end
def clear(ref, arg1, arg2) do
SnakeBridge.Runtime.call_method(ref, :clear, [arg1, arg2], [])
end
def clear(ref, arg1, arg2, opts)
when is_list(opts) and
(opts == [] or
(is_tuple(hd(opts)) and tuple_size(hd(opts)) == 2 and is_atom(elem(hd(opts), 0)))) do
SnakeBridge.Runtime.call_method(ref, :clear, [arg1, arg2], opts)
end
def clear(ref, arg1, arg2, arg3) do
SnakeBridge.Runtime.call_method(ref, :clear, [arg1, arg2, arg3], [])
end
def clear(ref, arg1, arg2, arg3, opts)
when is_list(opts) and
(opts == [] or
(is_tuple(hd(opts)) and tuple_size(hd(opts)) == 2 and is_atom(elem(hd(opts), 0)))) do
SnakeBridge.Runtime.call_method(ref, :clear, [arg1, arg2, arg3], opts)
end
def clear(ref, arg1, arg2, arg3, arg4) do
SnakeBridge.Runtime.call_method(ref, :clear, [arg1, arg2, arg3, arg4], [])
end
def clear(ref, arg1, arg2, arg3, arg4, opts)
when is_list(opts) and
(opts == [] or
(is_tuple(hd(opts)) and tuple_size(hd(opts)) == 2 and is_atom(elem(hd(opts), 0)))) do
SnakeBridge.Runtime.call_method(ref, :clear, [arg1, arg2, arg3, arg4], opts)
end
def clear(ref, arg1, arg2, arg3, arg4, arg5) do
SnakeBridge.Runtime.call_method(ref, :clear, [arg1, arg2, arg3, arg4, arg5], [])
end
def clear(ref, arg1, arg2, arg3, arg4, arg5, opts)
when is_list(opts) and
(opts == [] or
(is_tuple(hd(opts)) and tuple_size(hd(opts)) == 2 and is_atom(elem(hd(opts), 0)))) do
SnakeBridge.Runtime.call_method(ref, :clear, [arg1, arg2, arg3, arg4, arg5], opts)
end
def clear(ref, arg1, arg2, arg3, arg4, arg5, arg6) do
SnakeBridge.Runtime.call_method(ref, :clear, [arg1, arg2, arg3, arg4, arg5, arg6], [])
end
def clear(ref, arg1, arg2, arg3, arg4, arg5, arg6, opts)
when is_list(opts) and
(opts == [] or
(is_tuple(hd(opts)) and tuple_size(hd(opts)) == 2 and is_atom(elem(hd(opts), 0)))) do
SnakeBridge.Runtime.call_method(ref, :clear, [arg1, arg2, arg3, arg4, arg5, arg6], opts)
end
def clear(ref, arg1, arg2, arg3, arg4, arg5, arg6, arg7) do
SnakeBridge.Runtime.call_method(ref, :clear, [arg1, arg2, arg3, arg4, arg5, arg6, arg7], [])
end
def clear(ref, arg1, arg2, arg3, arg4, arg5, arg6, arg7, opts)
when is_list(opts) and
(opts == [] or
(is_tuple(hd(opts)) and tuple_size(hd(opts)) == 2 and is_atom(elem(hd(opts), 0)))) do
SnakeBridge.Runtime.call_method(ref, :clear, [arg1, arg2, arg3, arg4, arg5, arg6, arg7], opts)
end
def clear(ref, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8) do
SnakeBridge.Runtime.call_method(
ref,
:clear,
[arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8],
[]
)
end
def clear(ref, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, opts)
when is_list(opts) and
(opts == [] or
(is_tuple(hd(opts)) and tuple_size(hd(opts)) == 2 and is_atom(elem(hd(opts), 0)))) do
SnakeBridge.Runtime.call_method(
ref,
:clear,
[arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8],
opts
)
end
@doc """
D.copy() -> a shallow copy of D
## Returns
- `term()`
"""
@spec copy(SnakeBridge.Ref.t()) :: {:ok, term()} | {:error, Snakepit.Error.t()}
@spec copy(SnakeBridge.Ref.t(), keyword()) :: {:ok, term()} | {:error, Snakepit.Error.t()}
@spec copy(SnakeBridge.Ref.t(), term()) :: {:ok, term()} | {:error, Snakepit.Error.t()}
@spec copy(SnakeBridge.Ref.t(), term(), keyword()) ::
{:ok, term()} | {:error, Snakepit.Error.t()}
@spec copy(SnakeBridge.Ref.t(), term(), term()) :: {:ok, term()} | {:error, Snakepit.Error.t()}
@spec copy(SnakeBridge.Ref.t(), term(), term(), keyword()) ::
{:ok, term()} | {:error, Snakepit.Error.t()}
@spec copy(SnakeBridge.Ref.t(), term(), term(), term()) ::
{:ok, term()} | {:error, Snakepit.Error.t()}
@spec copy(SnakeBridge.Ref.t(), term(), term(), term(), keyword()) ::
{:ok, term()} | {:error, Snakepit.Error.t()}
@spec copy(SnakeBridge.Ref.t(), term(), term(), term(), term()) ::
{:ok, term()} | {:error, Snakepit.Error.t()}
@spec copy(SnakeBridge.Ref.t(), term(), term(), term(), term(), keyword()) ::
{:ok, term()} | {:error, Snakepit.Error.t()}
@spec copy(SnakeBridge.Ref.t(), term(), term(), term(), term(), term()) ::
{:ok, term()} | {:error, Snakepit.Error.t()}
@spec copy(SnakeBridge.Ref.t(), term(), term(), term(), term(), term(), keyword()) ::
{:ok, term()} | {:error, Snakepit.Error.t()}
@spec copy(SnakeBridge.Ref.t(), term(), term(), term(), term(), term(), term()) ::
{:ok, term()} | {:error, Snakepit.Error.t()}
@spec copy(SnakeBridge.Ref.t(), term(), term(), term(), term(), term(), term(), keyword()) ::
{:ok, term()} | {:error, Snakepit.Error.t()}
@spec copy(SnakeBridge.Ref.t(), term(), term(), term(), term(), term(), term(), term()) ::
{:ok, term()} | {:error, Snakepit.Error.t()}
@spec copy(
SnakeBridge.Ref.t(),
term(),
term(),
term(),
term(),
term(),
term(),
term(),
keyword()
) :: {:ok, term()} | {:error, Snakepit.Error.t()}
@spec copy(SnakeBridge.Ref.t(), term(), term(), term(), term(), term(), term(), term(), term()) ::
{:ok, term()} | {:error, Snakepit.Error.t()}
@spec copy(
SnakeBridge.Ref.t(),
term(),
term(),
term(),
term(),
term(),
term(),
term(),
term(),
keyword()
) :: {:ok, term()} | {:error, Snakepit.Error.t()}
def copy(ref) do
SnakeBridge.Runtime.call_method(ref, :copy, [], [])
end
def copy(ref, opts)
when is_list(opts) and
(opts == [] or
(is_tuple(hd(opts)) and tuple_size(hd(opts)) == 2 and is_atom(elem(hd(opts), 0)))) do
SnakeBridge.Runtime.call_method(ref, :copy, [], opts)
end
def copy(ref, arg1) do
SnakeBridge.Runtime.call_method(ref, :copy, [arg1], [])
end
def copy(ref, arg1, opts)
when is_list(opts) and
(opts == [] or
(is_tuple(hd(opts)) and tuple_size(hd(opts)) == 2 and is_atom(elem(hd(opts), 0)))) do
SnakeBridge.Runtime.call_method(ref, :copy, [arg1], opts)
end
def copy(ref, arg1, arg2) do
SnakeBridge.Runtime.call_method(ref, :copy, [arg1, arg2], [])
end
def copy(ref, arg1, arg2, opts)
when is_list(opts) and
(opts == [] or
(is_tuple(hd(opts)) and tuple_size(hd(opts)) == 2 and is_atom(elem(hd(opts), 0)))) do
SnakeBridge.Runtime.call_method(ref, :copy, [arg1, arg2], opts)
end
def copy(ref, arg1, arg2, arg3) do
SnakeBridge.Runtime.call_method(ref, :copy, [arg1, arg2, arg3], [])
end
def copy(ref, arg1, arg2, arg3, opts)
when is_list(opts) and
(opts == [] or
(is_tuple(hd(opts)) and tuple_size(hd(opts)) == 2 and is_atom(elem(hd(opts), 0)))) do
SnakeBridge.Runtime.call_method(ref, :copy, [arg1, arg2, arg3], opts)
end
def copy(ref, arg1, arg2, arg3, arg4) do
SnakeBridge.Runtime.call_method(ref, :copy, [arg1, arg2, arg3, arg4], [])
end
def copy(ref, arg1, arg2, arg3, arg4, opts)
when is_list(opts) and
(opts == [] or
(is_tuple(hd(opts)) and tuple_size(hd(opts)) == 2 and is_atom(elem(hd(opts), 0)))) do
SnakeBridge.Runtime.call_method(ref, :copy, [arg1, arg2, arg3, arg4], opts)
end
def copy(ref, arg1, arg2, arg3, arg4, arg5) do
SnakeBridge.Runtime.call_method(ref, :copy, [arg1, arg2, arg3, arg4, arg5], [])
end
def copy(ref, arg1, arg2, arg3, arg4, arg5, opts)
when is_list(opts) and
(opts == [] or
(is_tuple(hd(opts)) and tuple_size(hd(opts)) == 2 and is_atom(elem(hd(opts), 0)))) do
SnakeBridge.Runtime.call_method(ref, :copy, [arg1, arg2, arg3, arg4, arg5], opts)
end
def copy(ref, arg1, arg2, arg3, arg4, arg5, arg6) do
SnakeBridge.Runtime.call_method(ref, :copy, [arg1, arg2, arg3, arg4, arg5, arg6], [])
end
def copy(ref, arg1, arg2, arg3, arg4, arg5, arg6, opts)
when is_list(opts) and
(opts == [] or
(is_tuple(hd(opts)) and tuple_size(hd(opts)) == 2 and is_atom(elem(hd(opts), 0)))) do
SnakeBridge.Runtime.call_method(ref, :copy, [arg1, arg2, arg3, arg4, arg5, arg6], opts)
end
def copy(ref, arg1, arg2, arg3, arg4, arg5, arg6, arg7) do
SnakeBridge.Runtime.call_method(ref, :copy, [arg1, arg2, arg3, arg4, arg5, arg6, arg7], [])
end
def copy(ref, arg1, arg2, arg3, arg4, arg5, arg6, arg7, opts)
when is_list(opts) and
(opts == [] or
(is_tuple(hd(opts)) and tuple_size(hd(opts)) == 2 and is_atom(elem(hd(opts), 0)))) do
SnakeBridge.Runtime.call_method(ref, :copy, [arg1, arg2, arg3, arg4, arg5, arg6, arg7], opts)
end
def copy(ref, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8) do
SnakeBridge.Runtime.call_method(
ref,
:copy,
[arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8],
[]
)
end
def copy(ref, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, opts)
when is_list(opts) and
(opts == [] or
(is_tuple(hd(opts)) and tuple_size(hd(opts)) == 2 and is_atom(elem(hd(opts), 0)))) do
SnakeBridge.Runtime.call_method(
ref,
:copy,
[arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8],
opts
)
end
@doc """
Create a new dictionary with keys from iterable and values set to value.
## Parameters
- `iterable` (term())
- `value` (term() default: None)
## Returns
- `term()`
"""
@spec fromkeys(SnakeBridge.Ref.t(), term(), list(term()), keyword()) ::
{:ok, term()} | {:error, Snakepit.Error.t()}
def fromkeys(ref, iterable, args, opts \\ []) do
{args, opts} = SnakeBridge.Runtime.normalize_args_opts(args, opts)
SnakeBridge.Runtime.call_method(ref, :fromkeys, [iterable] ++ List.wrap(args), opts)
end
@doc """
Return the value for key if key is in the dictionary, else default.
## Parameters
- `key` (term())
- `default` (term() default: None)
## Returns
- `term()`
"""
@spec get(SnakeBridge.Ref.t(), term(), list(term()), keyword()) ::
{:ok, term()} | {:error, Snakepit.Error.t()}
def get(ref, key, args, opts \\ []) do
{args, opts} = SnakeBridge.Runtime.normalize_args_opts(args, opts)
SnakeBridge.Runtime.call_method(ref, :get, [key] ++ List.wrap(args), opts)
end
@doc """
D.items() -> a set-like object providing a view on D's items
## Returns
- `term()`
"""
@spec items(SnakeBridge.Ref.t()) :: {:ok, term()} | {:error, Snakepit.Error.t()}
@spec items(SnakeBridge.Ref.t(), keyword()) :: {:ok, term()} | {:error, Snakepit.Error.t()}
@spec items(SnakeBridge.Ref.t(), term()) :: {:ok, term()} | {:error, Snakepit.Error.t()}
@spec items(SnakeBridge.Ref.t(), term(), keyword()) ::
{:ok, term()} | {:error, Snakepit.Error.t()}
@spec items(SnakeBridge.Ref.t(), term(), term()) :: {:ok, term()} | {:error, Snakepit.Error.t()}
@spec items(SnakeBridge.Ref.t(), term(), term(), keyword()) ::
{:ok, term()} | {:error, Snakepit.Error.t()}
@spec items(SnakeBridge.Ref.t(), term(), term(), term()) ::
{:ok, term()} | {:error, Snakepit.Error.t()}
@spec items(SnakeBridge.Ref.t(), term(), term(), term(), keyword()) ::
{:ok, term()} | {:error, Snakepit.Error.t()}
@spec items(SnakeBridge.Ref.t(), term(), term(), term(), term()) ::
{:ok, term()} | {:error, Snakepit.Error.t()}
@spec items(SnakeBridge.Ref.t(), term(), term(), term(), term(), keyword()) ::
{:ok, term()} | {:error, Snakepit.Error.t()}
@spec items(SnakeBridge.Ref.t(), term(), term(), term(), term(), term()) ::
{:ok, term()} | {:error, Snakepit.Error.t()}
@spec items(SnakeBridge.Ref.t(), term(), term(), term(), term(), term(), keyword()) ::
{:ok, term()} | {:error, Snakepit.Error.t()}
@spec items(SnakeBridge.Ref.t(), term(), term(), term(), term(), term(), term()) ::
{:ok, term()} | {:error, Snakepit.Error.t()}
@spec items(SnakeBridge.Ref.t(), term(), term(), term(), term(), term(), term(), keyword()) ::
{:ok, term()} | {:error, Snakepit.Error.t()}
@spec items(SnakeBridge.Ref.t(), term(), term(), term(), term(), term(), term(), term()) ::
{:ok, term()} | {:error, Snakepit.Error.t()}
@spec items(
SnakeBridge.Ref.t(),
term(),
term(),
term(),
term(),
term(),
term(),
term(),
keyword()
) :: {:ok, term()} | {:error, Snakepit.Error.t()}
@spec items(SnakeBridge.Ref.t(), term(), term(), term(), term(), term(), term(), term(), term()) ::
{:ok, term()} | {:error, Snakepit.Error.t()}
@spec items(
SnakeBridge.Ref.t(),
term(),
term(),
term(),
term(),
term(),
term(),
term(),
term(),
keyword()
) :: {:ok, term()} | {:error, Snakepit.Error.t()}
def items(ref) do
SnakeBridge.Runtime.call_method(ref, :items, [], [])
end
def items(ref, opts)
when is_list(opts) and
(opts == [] or
(is_tuple(hd(opts)) and tuple_size(hd(opts)) == 2 and is_atom(elem(hd(opts), 0)))) do
SnakeBridge.Runtime.call_method(ref, :items, [], opts)
end
def items(ref, arg1) do
SnakeBridge.Runtime.call_method(ref, :items, [arg1], [])
end
def items(ref, arg1, opts)
when is_list(opts) and
(opts == [] or
(is_tuple(hd(opts)) and tuple_size(hd(opts)) == 2 and is_atom(elem(hd(opts), 0)))) do
SnakeBridge.Runtime.call_method(ref, :items, [arg1], opts)
end
def items(ref, arg1, arg2) do
SnakeBridge.Runtime.call_method(ref, :items, [arg1, arg2], [])
end
def items(ref, arg1, arg2, opts)
when is_list(opts) and
(opts == [] or
(is_tuple(hd(opts)) and tuple_size(hd(opts)) == 2 and is_atom(elem(hd(opts), 0)))) do
SnakeBridge.Runtime.call_method(ref, :items, [arg1, arg2], opts)
end
def items(ref, arg1, arg2, arg3) do
SnakeBridge.Runtime.call_method(ref, :items, [arg1, arg2, arg3], [])
end
def items(ref, arg1, arg2, arg3, opts)
when is_list(opts) and
(opts == [] or
(is_tuple(hd(opts)) and tuple_size(hd(opts)) == 2 and is_atom(elem(hd(opts), 0)))) do
SnakeBridge.Runtime.call_method(ref, :items, [arg1, arg2, arg3], opts)
end
def items(ref, arg1, arg2, arg3, arg4) do
SnakeBridge.Runtime.call_method(ref, :items, [arg1, arg2, arg3, arg4], [])
end
def items(ref, arg1, arg2, arg3, arg4, opts)
when is_list(opts) and
(opts == [] or
(is_tuple(hd(opts)) and tuple_size(hd(opts)) == 2 and is_atom(elem(hd(opts), 0)))) do
SnakeBridge.Runtime.call_method(ref, :items, [arg1, arg2, arg3, arg4], opts)
end
def items(ref, arg1, arg2, arg3, arg4, arg5) do
SnakeBridge.Runtime.call_method(ref, :items, [arg1, arg2, arg3, arg4, arg5], [])
end
def items(ref, arg1, arg2, arg3, arg4, arg5, opts)
when is_list(opts) and
(opts == [] or
(is_tuple(hd(opts)) and tuple_size(hd(opts)) == 2 and is_atom(elem(hd(opts), 0)))) do
SnakeBridge.Runtime.call_method(ref, :items, [arg1, arg2, arg3, arg4, arg5], opts)
end
def items(ref, arg1, arg2, arg3, arg4, arg5, arg6) do
SnakeBridge.Runtime.call_method(ref, :items, [arg1, arg2, arg3, arg4, arg5, arg6], [])
end
def items(ref, arg1, arg2, arg3, arg4, arg5, arg6, opts)
when is_list(opts) and
(opts == [] or
(is_tuple(hd(opts)) and tuple_size(hd(opts)) == 2 and is_atom(elem(hd(opts), 0)))) do
SnakeBridge.Runtime.call_method(ref, :items, [arg1, arg2, arg3, arg4, arg5, arg6], opts)
end
def items(ref, arg1, arg2, arg3, arg4, arg5, arg6, arg7) do
SnakeBridge.Runtime.call_method(ref, :items, [arg1, arg2, arg3, arg4, arg5, arg6, arg7], [])
end
def items(ref, arg1, arg2, arg3, arg4, arg5, arg6, arg7, opts)
when is_list(opts) and
(opts == [] or
(is_tuple(hd(opts)) and tuple_size(hd(opts)) == 2 and is_atom(elem(hd(opts), 0)))) do
SnakeBridge.Runtime.call_method(ref, :items, [arg1, arg2, arg3, arg4, arg5, arg6, arg7], opts)
end
def items(ref, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8) do
SnakeBridge.Runtime.call_method(
ref,
:items,
[arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8],
[]
)
end
def items(ref, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, opts)
when is_list(opts) and
(opts == [] or
(is_tuple(hd(opts)) and tuple_size(hd(opts)) == 2 and is_atom(elem(hd(opts), 0)))) do
SnakeBridge.Runtime.call_method(
ref,
:items,
[arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8],
opts
)
end
@doc """
D.keys() -> a set-like object providing a view on D's keys
## Returns
- `term()`
"""
@spec keys(SnakeBridge.Ref.t()) :: {:ok, term()} | {:error, Snakepit.Error.t()}
@spec keys(SnakeBridge.Ref.t(), keyword()) :: {:ok, term()} | {:error, Snakepit.Error.t()}
@spec keys(SnakeBridge.Ref.t(), term()) :: {:ok, term()} | {:error, Snakepit.Error.t()}
@spec keys(SnakeBridge.Ref.t(), term(), keyword()) ::
{:ok, term()} | {:error, Snakepit.Error.t()}
@spec keys(SnakeBridge.Ref.t(), term(), term()) :: {:ok, term()} | {:error, Snakepit.Error.t()}
@spec keys(SnakeBridge.Ref.t(), term(), term(), keyword()) ::
{:ok, term()} | {:error, Snakepit.Error.t()}
@spec keys(SnakeBridge.Ref.t(), term(), term(), term()) ::
{:ok, term()} | {:error, Snakepit.Error.t()}
@spec keys(SnakeBridge.Ref.t(), term(), term(), term(), keyword()) ::
{:ok, term()} | {:error, Snakepit.Error.t()}
@spec keys(SnakeBridge.Ref.t(), term(), term(), term(), term()) ::
{:ok, term()} | {:error, Snakepit.Error.t()}
@spec keys(SnakeBridge.Ref.t(), term(), term(), term(), term(), keyword()) ::
{:ok, term()} | {:error, Snakepit.Error.t()}
@spec keys(SnakeBridge.Ref.t(), term(), term(), term(), term(), term()) ::
{:ok, term()} | {:error, Snakepit.Error.t()}
@spec keys(SnakeBridge.Ref.t(), term(), term(), term(), term(), term(), keyword()) ::
{:ok, term()} | {:error, Snakepit.Error.t()}
@spec keys(SnakeBridge.Ref.t(), term(), term(), term(), term(), term(), term()) ::
{:ok, term()} | {:error, Snakepit.Error.t()}
@spec keys(SnakeBridge.Ref.t(), term(), term(), term(), term(), term(), term(), keyword()) ::
{:ok, term()} | {:error, Snakepit.Error.t()}
@spec keys(SnakeBridge.Ref.t(), term(), term(), term(), term(), term(), term(), term()) ::
{:ok, term()} | {:error, Snakepit.Error.t()}
@spec keys(
SnakeBridge.Ref.t(),
term(),
term(),
term(),
term(),
term(),
term(),
term(),
keyword()
) :: {:ok, term()} | {:error, Snakepit.Error.t()}
@spec keys(SnakeBridge.Ref.t(), term(), term(), term(), term(), term(), term(), term(), term()) ::
{:ok, term()} | {:error, Snakepit.Error.t()}
@spec keys(
SnakeBridge.Ref.t(),
term(),
term(),
term(),
term(),
term(),
term(),
term(),
term(),
keyword()
) :: {:ok, term()} | {:error, Snakepit.Error.t()}
def keys(ref) do
SnakeBridge.Runtime.call_method(ref, :keys, [], [])
end
def keys(ref, opts)
when is_list(opts) and
(opts == [] or
(is_tuple(hd(opts)) and tuple_size(hd(opts)) == 2 and is_atom(elem(hd(opts), 0)))) do
SnakeBridge.Runtime.call_method(ref, :keys, [], opts)
end
def keys(ref, arg1) do
SnakeBridge.Runtime.call_method(ref, :keys, [arg1], [])
end
def keys(ref, arg1, opts)
when is_list(opts) and
(opts == [] or
(is_tuple(hd(opts)) and tuple_size(hd(opts)) == 2 and is_atom(elem(hd(opts), 0)))) do
SnakeBridge.Runtime.call_method(ref, :keys, [arg1], opts)
end
def keys(ref, arg1, arg2) do
SnakeBridge.Runtime.call_method(ref, :keys, [arg1, arg2], [])
end
def keys(ref, arg1, arg2, opts)
when is_list(opts) and
(opts == [] or
(is_tuple(hd(opts)) and tuple_size(hd(opts)) == 2 and is_atom(elem(hd(opts), 0)))) do
SnakeBridge.Runtime.call_method(ref, :keys, [arg1, arg2], opts)
end
def keys(ref, arg1, arg2, arg3) do
SnakeBridge.Runtime.call_method(ref, :keys, [arg1, arg2, arg3], [])
end
def keys(ref, arg1, arg2, arg3, opts)
when is_list(opts) and
(opts == [] or
(is_tuple(hd(opts)) and tuple_size(hd(opts)) == 2 and is_atom(elem(hd(opts), 0)))) do
SnakeBridge.Runtime.call_method(ref, :keys, [arg1, arg2, arg3], opts)
end
def keys(ref, arg1, arg2, arg3, arg4) do
SnakeBridge.Runtime.call_method(ref, :keys, [arg1, arg2, arg3, arg4], [])
end
def keys(ref, arg1, arg2, arg3, arg4, opts)
when is_list(opts) and
(opts == [] or
(is_tuple(hd(opts)) and tuple_size(hd(opts)) == 2 and is_atom(elem(hd(opts), 0)))) do
SnakeBridge.Runtime.call_method(ref, :keys, [arg1, arg2, arg3, arg4], opts)
end
def keys(ref, arg1, arg2, arg3, arg4, arg5) do
SnakeBridge.Runtime.call_method(ref, :keys, [arg1, arg2, arg3, arg4, arg5], [])
end
def keys(ref, arg1, arg2, arg3, arg4, arg5, opts)
when is_list(opts) and
(opts == [] or
(is_tuple(hd(opts)) and tuple_size(hd(opts)) == 2 and is_atom(elem(hd(opts), 0)))) do
SnakeBridge.Runtime.call_method(ref, :keys, [arg1, arg2, arg3, arg4, arg5], opts)
end
def keys(ref, arg1, arg2, arg3, arg4, arg5, arg6) do
SnakeBridge.Runtime.call_method(ref, :keys, [arg1, arg2, arg3, arg4, arg5, arg6], [])
end
def keys(ref, arg1, arg2, arg3, arg4, arg5, arg6, opts)
when is_list(opts) and
(opts == [] or
(is_tuple(hd(opts)) and tuple_size(hd(opts)) == 2 and is_atom(elem(hd(opts), 0)))) do
SnakeBridge.Runtime.call_method(ref, :keys, [arg1, arg2, arg3, arg4, arg5, arg6], opts)
end
def keys(ref, arg1, arg2, arg3, arg4, arg5, arg6, arg7) do
SnakeBridge.Runtime.call_method(ref, :keys, [arg1, arg2, arg3, arg4, arg5, arg6, arg7], [])
end
def keys(ref, arg1, arg2, arg3, arg4, arg5, arg6, arg7, opts)
when is_list(opts) and
(opts == [] or
(is_tuple(hd(opts)) and tuple_size(hd(opts)) == 2 and is_atom(elem(hd(opts), 0)))) do
SnakeBridge.Runtime.call_method(ref, :keys, [arg1, arg2, arg3, arg4, arg5, arg6, arg7], opts)
end
def keys(ref, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8) do
SnakeBridge.Runtime.call_method(
ref,
:keys,
[arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8],
[]
)
end
def keys(ref, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, opts)
when is_list(opts) and
(opts == [] or
(is_tuple(hd(opts)) and tuple_size(hd(opts)) == 2 and is_atom(elem(hd(opts), 0)))) do
SnakeBridge.Runtime.call_method(
ref,
:keys,
[arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8],
opts
)
end
@doc """
D.pop(k[,d]) -> v, remove specified key and return the corresponding value.
If the key is not found, return the default if given; otherwise,
raise a KeyError.
## Returns
- `term()`
"""
@spec pop(SnakeBridge.Ref.t()) :: {:ok, term()} | {:error, Snakepit.Error.t()}
@spec pop(SnakeBridge.Ref.t(), keyword()) :: {:ok, term()} | {:error, Snakepit.Error.t()}
@spec pop(SnakeBridge.Ref.t(), term()) :: {:ok, term()} | {:error, Snakepit.Error.t()}
@spec pop(SnakeBridge.Ref.t(), term(), keyword()) ::
{:ok, term()} | {:error, Snakepit.Error.t()}
@spec pop(SnakeBridge.Ref.t(), term(), term()) :: {:ok, term()} | {:error, Snakepit.Error.t()}
@spec pop(SnakeBridge.Ref.t(), term(), term(), keyword()) ::
{:ok, term()} | {:error, Snakepit.Error.t()}
@spec pop(SnakeBridge.Ref.t(), term(), term(), term()) ::
{:ok, term()} | {:error, Snakepit.Error.t()}
@spec pop(SnakeBridge.Ref.t(), term(), term(), term(), keyword()) ::
{:ok, term()} | {:error, Snakepit.Error.t()}
@spec pop(SnakeBridge.Ref.t(), term(), term(), term(), term()) ::
{:ok, term()} | {:error, Snakepit.Error.t()}
@spec pop(SnakeBridge.Ref.t(), term(), term(), term(), term(), keyword()) ::
{:ok, term()} | {:error, Snakepit.Error.t()}
@spec pop(SnakeBridge.Ref.t(), term(), term(), term(), term(), term()) ::
{:ok, term()} | {:error, Snakepit.Error.t()}
@spec pop(SnakeBridge.Ref.t(), term(), term(), term(), term(), term(), keyword()) ::
{:ok, term()} | {:error, Snakepit.Error.t()}
@spec pop(SnakeBridge.Ref.t(), term(), term(), term(), term(), term(), term()) ::
{:ok, term()} | {:error, Snakepit.Error.t()}
@spec pop(SnakeBridge.Ref.t(), term(), term(), term(), term(), term(), term(), keyword()) ::
{:ok, term()} | {:error, Snakepit.Error.t()}
@spec pop(SnakeBridge.Ref.t(), term(), term(), term(), term(), term(), term(), term()) ::
{:ok, term()} | {:error, Snakepit.Error.t()}
@spec pop(
SnakeBridge.Ref.t(),
term(),
term(),
term(),
term(),
term(),
term(),
term(),
keyword()
) :: {:ok, term()} | {:error, Snakepit.Error.t()}
@spec pop(SnakeBridge.Ref.t(), term(), term(), term(), term(), term(), term(), term(), term()) ::
{:ok, term()} | {:error, Snakepit.Error.t()}
@spec pop(
SnakeBridge.Ref.t(),
term(),
term(),
term(),
term(),
term(),
term(),
term(),
term(),
keyword()
) :: {:ok, term()} | {:error, Snakepit.Error.t()}
def pop(ref) do
SnakeBridge.Runtime.call_method(ref, :pop, [], [])
end
def pop(ref, opts)
when is_list(opts) and
(opts == [] or
(is_tuple(hd(opts)) and tuple_size(hd(opts)) == 2 and is_atom(elem(hd(opts), 0)))) do
SnakeBridge.Runtime.call_method(ref, :pop, [], opts)
end
def pop(ref, arg1) do
SnakeBridge.Runtime.call_method(ref, :pop, [arg1], [])
end
def pop(ref, arg1, opts)
when is_list(opts) and
(opts == [] or
(is_tuple(hd(opts)) and tuple_size(hd(opts)) == 2 and is_atom(elem(hd(opts), 0)))) do
SnakeBridge.Runtime.call_method(ref, :pop, [arg1], opts)
end
def pop(ref, arg1, arg2) do
SnakeBridge.Runtime.call_method(ref, :pop, [arg1, arg2], [])
end
def pop(ref, arg1, arg2, opts)
when is_list(opts) and
(opts == [] or
(is_tuple(hd(opts)) and tuple_size(hd(opts)) == 2 and is_atom(elem(hd(opts), 0)))) do
SnakeBridge.Runtime.call_method(ref, :pop, [arg1, arg2], opts)
end
def pop(ref, arg1, arg2, arg3) do
SnakeBridge.Runtime.call_method(ref, :pop, [arg1, arg2, arg3], [])
end
def pop(ref, arg1, arg2, arg3, opts)
when is_list(opts) and
(opts == [] or
(is_tuple(hd(opts)) and tuple_size(hd(opts)) == 2 and is_atom(elem(hd(opts), 0)))) do
SnakeBridge.Runtime.call_method(ref, :pop, [arg1, arg2, arg3], opts)
end
def pop(ref, arg1, arg2, arg3, arg4) do
SnakeBridge.Runtime.call_method(ref, :pop, [arg1, arg2, arg3, arg4], [])
end
def pop(ref, arg1, arg2, arg3, arg4, opts)
when is_list(opts) and
(opts == [] or
(is_tuple(hd(opts)) and tuple_size(hd(opts)) == 2 and is_atom(elem(hd(opts), 0)))) do
SnakeBridge.Runtime.call_method(ref, :pop, [arg1, arg2, arg3, arg4], opts)
end
def pop(ref, arg1, arg2, arg3, arg4, arg5) do
SnakeBridge.Runtime.call_method(ref, :pop, [arg1, arg2, arg3, arg4, arg5], [])
end
def pop(ref, arg1, arg2, arg3, arg4, arg5, opts)
when is_list(opts) and
(opts == [] or
(is_tuple(hd(opts)) and tuple_size(hd(opts)) == 2 and is_atom(elem(hd(opts), 0)))) do
SnakeBridge.Runtime.call_method(ref, :pop, [arg1, arg2, arg3, arg4, arg5], opts)
end
def pop(ref, arg1, arg2, arg3, arg4, arg5, arg6) do
SnakeBridge.Runtime.call_method(ref, :pop, [arg1, arg2, arg3, arg4, arg5, arg6], [])
end
def pop(ref, arg1, arg2, arg3, arg4, arg5, arg6, opts)
when is_list(opts) and
(opts == [] or
(is_tuple(hd(opts)) and tuple_size(hd(opts)) == 2 and is_atom(elem(hd(opts), 0)))) do
SnakeBridge.Runtime.call_method(ref, :pop, [arg1, arg2, arg3, arg4, arg5, arg6], opts)
end
def pop(ref, arg1, arg2, arg3, arg4, arg5, arg6, arg7) do
SnakeBridge.Runtime.call_method(ref, :pop, [arg1, arg2, arg3, arg4, arg5, arg6, arg7], [])
end
def pop(ref, arg1, arg2, arg3, arg4, arg5, arg6, arg7, opts)
when is_list(opts) and
(opts == [] or
(is_tuple(hd(opts)) and tuple_size(hd(opts)) == 2 and is_atom(elem(hd(opts), 0)))) do
SnakeBridge.Runtime.call_method(ref, :pop, [arg1, arg2, arg3, arg4, arg5, arg6, arg7], opts)
end
def pop(ref, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8) do
SnakeBridge.Runtime.call_method(
ref,
:pop,
[arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8],
[]
)
end
def pop(ref, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, opts)
when is_list(opts) and
(opts == [] or
(is_tuple(hd(opts)) and tuple_size(hd(opts)) == 2 and is_atom(elem(hd(opts), 0)))) do
SnakeBridge.Runtime.call_method(
ref,
:pop,
[arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8],
opts
)
end
@doc """
Remove and return a (key, value) pair as a 2-tuple.
Pairs are returned in LIFO (last-in, first-out) order.
Raises KeyError if the dict is empty.
## Returns
- `term()`
"""
@spec popitem(SnakeBridge.Ref.t(), keyword()) :: {:ok, term()} | {:error, Snakepit.Error.t()}
def popitem(ref, opts \\ []) do
SnakeBridge.Runtime.call_method(ref, :popitem, [], opts)
end
@doc """
Insert key with a value of default if key is not in the dictionary.
Return the value for key if key is in the dictionary, else default.
## Parameters
- `key` (term())
- `default` (term() default: None)
## Returns
- `term()`
"""
@spec setdefault(SnakeBridge.Ref.t(), term(), list(term()), keyword()) ::
{:ok, term()} | {:error, Snakepit.Error.t()}
def setdefault(ref, key, args, opts \\ []) do
{args, opts} = SnakeBridge.Runtime.normalize_args_opts(args, opts)
SnakeBridge.Runtime.call_method(ref, :setdefault, [key] ++ List.wrap(args), opts)
end
@doc """
D.update([E, ]**F) -> None. Update D from dict/iterable E and F.
If E is present and has a .keys() method, then does: for k in E: D[k] = E[k]
If E is present and lacks a .keys() method, then does: for k, v in E: D[k] = v
In either case, this is followed by: for k in F: D[k] = F[k]
## Returns
- `term()`
"""
@spec update(SnakeBridge.Ref.t()) :: {:ok, term()} | {:error, Snakepit.Error.t()}
@spec update(SnakeBridge.Ref.t(), keyword()) :: {:ok, term()} | {:error, Snakepit.Error.t()}
@spec update(SnakeBridge.Ref.t(), term()) :: {:ok, term()} | {:error, Snakepit.Error.t()}
@spec update(SnakeBridge.Ref.t(), term(), keyword()) ::
{:ok, term()} | {:error, Snakepit.Error.t()}
@spec update(SnakeBridge.Ref.t(), term(), term()) ::
{:ok, term()} | {:error, Snakepit.Error.t()}
@spec update(SnakeBridge.Ref.t(), term(), term(), keyword()) ::
{:ok, term()} | {:error, Snakepit.Error.t()}
@spec update(SnakeBridge.Ref.t(), term(), term(), term()) ::
{:ok, term()} | {:error, Snakepit.Error.t()}
@spec update(SnakeBridge.Ref.t(), term(), term(), term(), keyword()) ::
{:ok, term()} | {:error, Snakepit.Error.t()}
@spec update(SnakeBridge.Ref.t(), term(), term(), term(), term()) ::
{:ok, term()} | {:error, Snakepit.Error.t()}
@spec update(SnakeBridge.Ref.t(), term(), term(), term(), term(), keyword()) ::
{:ok, term()} | {:error, Snakepit.Error.t()}
@spec update(SnakeBridge.Ref.t(), term(), term(), term(), term(), term()) ::
{:ok, term()} | {:error, Snakepit.Error.t()}
@spec update(SnakeBridge.Ref.t(), term(), term(), term(), term(), term(), keyword()) ::
{:ok, term()} | {:error, Snakepit.Error.t()}
@spec update(SnakeBridge.Ref.t(), term(), term(), term(), term(), term(), term()) ::
{:ok, term()} | {:error, Snakepit.Error.t()}
@spec update(SnakeBridge.Ref.t(), term(), term(), term(), term(), term(), term(), keyword()) ::
{:ok, term()} | {:error, Snakepit.Error.t()}
@spec update(SnakeBridge.Ref.t(), term(), term(), term(), term(), term(), term(), term()) ::
{:ok, term()} | {:error, Snakepit.Error.t()}
@spec update(
SnakeBridge.Ref.t(),
term(),
term(),
term(),
term(),
term(),
term(),
term(),
keyword()
) :: {:ok, term()} | {:error, Snakepit.Error.t()}
@spec update(
SnakeBridge.Ref.t(),
term(),
term(),
term(),
term(),
term(),
term(),
term(),
term()
) :: {:ok, term()} | {:error, Snakepit.Error.t()}
@spec update(
SnakeBridge.Ref.t(),
term(),
term(),
term(),
term(),
term(),
term(),
term(),
term(),
keyword()
) :: {:ok, term()} | {:error, Snakepit.Error.t()}
def update(ref) do
SnakeBridge.Runtime.call_method(ref, :update, [], [])
end
def update(ref, opts)
when is_list(opts) and
(opts == [] or
(is_tuple(hd(opts)) and tuple_size(hd(opts)) == 2 and is_atom(elem(hd(opts), 0)))) do
SnakeBridge.Runtime.call_method(ref, :update, [], opts)
end
def update(ref, arg1) do
SnakeBridge.Runtime.call_method(ref, :update, [arg1], [])
end
def update(ref, arg1, opts)
when is_list(opts) and
(opts == [] or
(is_tuple(hd(opts)) and tuple_size(hd(opts)) == 2 and is_atom(elem(hd(opts), 0)))) do
SnakeBridge.Runtime.call_method(ref, :update, [arg1], opts)
end
def update(ref, arg1, arg2) do
SnakeBridge.Runtime.call_method(ref, :update, [arg1, arg2], [])
end
def update(ref, arg1, arg2, opts)
when is_list(opts) and
(opts == [] or
(is_tuple(hd(opts)) and tuple_size(hd(opts)) == 2 and is_atom(elem(hd(opts), 0)))) do
SnakeBridge.Runtime.call_method(ref, :update, [arg1, arg2], opts)
end
def update(ref, arg1, arg2, arg3) do
SnakeBridge.Runtime.call_method(ref, :update, [arg1, arg2, arg3], [])
end
def update(ref, arg1, arg2, arg3, opts)
when is_list(opts) and
(opts == [] or
(is_tuple(hd(opts)) and tuple_size(hd(opts)) == 2 and is_atom(elem(hd(opts), 0)))) do
SnakeBridge.Runtime.call_method(ref, :update, [arg1, arg2, arg3], opts)
end
def update(ref, arg1, arg2, arg3, arg4) do
SnakeBridge.Runtime.call_method(ref, :update, [arg1, arg2, arg3, arg4], [])
end
def update(ref, arg1, arg2, arg3, arg4, opts)
when is_list(opts) and
(opts == [] or
(is_tuple(hd(opts)) and tuple_size(hd(opts)) == 2 and is_atom(elem(hd(opts), 0)))) do
SnakeBridge.Runtime.call_method(ref, :update, [arg1, arg2, arg3, arg4], opts)
end
def update(ref, arg1, arg2, arg3, arg4, arg5) do
SnakeBridge.Runtime.call_method(ref, :update, [arg1, arg2, arg3, arg4, arg5], [])
end
def update(ref, arg1, arg2, arg3, arg4, arg5, opts)
when is_list(opts) and
(opts == [] or
(is_tuple(hd(opts)) and tuple_size(hd(opts)) == 2 and is_atom(elem(hd(opts), 0)))) do
SnakeBridge.Runtime.call_method(ref, :update, [arg1, arg2, arg3, arg4, arg5], opts)
end
def update(ref, arg1, arg2, arg3, arg4, arg5, arg6) do
SnakeBridge.Runtime.call_method(ref, :update, [arg1, arg2, arg3, arg4, arg5, arg6], [])
end
def update(ref, arg1, arg2, arg3, arg4, arg5, arg6, opts)
when is_list(opts) and
(opts == [] or
(is_tuple(hd(opts)) and tuple_size(hd(opts)) == 2 and is_atom(elem(hd(opts), 0)))) do
SnakeBridge.Runtime.call_method(ref, :update, [arg1, arg2, arg3, arg4, arg5, arg6], opts)
end
def update(ref, arg1, arg2, arg3, arg4, arg5, arg6, arg7) do
SnakeBridge.Runtime.call_method(ref, :update, [arg1, arg2, arg3, arg4, arg5, arg6, arg7], [])
end
def update(ref, arg1, arg2, arg3, arg4, arg5, arg6, arg7, opts)
when is_list(opts) and
(opts == [] or
(is_tuple(hd(opts)) and tuple_size(hd(opts)) == 2 and is_atom(elem(hd(opts), 0)))) do
SnakeBridge.Runtime.call_method(
ref,
:update,
[arg1, arg2, arg3, arg4, arg5, arg6, arg7],
opts
)
end
def update(ref, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8) do
SnakeBridge.Runtime.call_method(
ref,
:update,
[arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8],
[]
)
end
def update(ref, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, opts)
when is_list(opts) and
(opts == [] or
(is_tuple(hd(opts)) and tuple_size(hd(opts)) == 2 and is_atom(elem(hd(opts), 0)))) do
SnakeBridge.Runtime.call_method(
ref,
:update,
[arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8],
opts
)
end
@doc """
D.values() -> an object providing a view on D's values
## Returns
- `term()`
"""
@spec values(SnakeBridge.Ref.t()) :: {:ok, term()} | {:error, Snakepit.Error.t()}
@spec values(SnakeBridge.Ref.t(), keyword()) :: {:ok, term()} | {:error, Snakepit.Error.t()}
@spec values(SnakeBridge.Ref.t(), term()) :: {:ok, term()} | {:error, Snakepit.Error.t()}
@spec values(SnakeBridge.Ref.t(), term(), keyword()) ::
{:ok, term()} | {:error, Snakepit.Error.t()}
@spec values(SnakeBridge.Ref.t(), term(), term()) ::
{:ok, term()} | {:error, Snakepit.Error.t()}
@spec values(SnakeBridge.Ref.t(), term(), term(), keyword()) ::
{:ok, term()} | {:error, Snakepit.Error.t()}
@spec values(SnakeBridge.Ref.t(), term(), term(), term()) ::
{:ok, term()} | {:error, Snakepit.Error.t()}
@spec values(SnakeBridge.Ref.t(), term(), term(), term(), keyword()) ::
{:ok, term()} | {:error, Snakepit.Error.t()}
@spec values(SnakeBridge.Ref.t(), term(), term(), term(), term()) ::
{:ok, term()} | {:error, Snakepit.Error.t()}
@spec values(SnakeBridge.Ref.t(), term(), term(), term(), term(), keyword()) ::
{:ok, term()} | {:error, Snakepit.Error.t()}
@spec values(SnakeBridge.Ref.t(), term(), term(), term(), term(), term()) ::
{:ok, term()} | {:error, Snakepit.Error.t()}
@spec values(SnakeBridge.Ref.t(), term(), term(), term(), term(), term(), keyword()) ::
{:ok, term()} | {:error, Snakepit.Error.t()}
@spec values(SnakeBridge.Ref.t(), term(), term(), term(), term(), term(), term()) ::
{:ok, term()} | {:error, Snakepit.Error.t()}
@spec values(SnakeBridge.Ref.t(), term(), term(), term(), term(), term(), term(), keyword()) ::
{:ok, term()} | {:error, Snakepit.Error.t()}
@spec values(SnakeBridge.Ref.t(), term(), term(), term(), term(), term(), term(), term()) ::
{:ok, term()} | {:error, Snakepit.Error.t()}
@spec values(
SnakeBridge.Ref.t(),
term(),
term(),
term(),
term(),
term(),
term(),
term(),
keyword()
) :: {:ok, term()} | {:error, Snakepit.Error.t()}
@spec values(
SnakeBridge.Ref.t(),
term(),
term(),
term(),
term(),
term(),
term(),
term(),
term()
) :: {:ok, term()} | {:error, Snakepit.Error.t()}
@spec values(
SnakeBridge.Ref.t(),
term(),
term(),
term(),
term(),
term(),
term(),
term(),
term(),
keyword()
) :: {:ok, term()} | {:error, Snakepit.Error.t()}
def values(ref) do
SnakeBridge.Runtime.call_method(ref, :values, [], [])
end
def values(ref, opts)
when is_list(opts) and
(opts == [] or
(is_tuple(hd(opts)) and tuple_size(hd(opts)) == 2 and is_atom(elem(hd(opts), 0)))) do
SnakeBridge.Runtime.call_method(ref, :values, [], opts)
end
def values(ref, arg1) do
SnakeBridge.Runtime.call_method(ref, :values, [arg1], [])
end
def values(ref, arg1, opts)
when is_list(opts) and
(opts == [] or
(is_tuple(hd(opts)) and tuple_size(hd(opts)) == 2 and is_atom(elem(hd(opts), 0)))) do
SnakeBridge.Runtime.call_method(ref, :values, [arg1], opts)
end
def values(ref, arg1, arg2) do
SnakeBridge.Runtime.call_method(ref, :values, [arg1, arg2], [])
end
def values(ref, arg1, arg2, opts)
when is_list(opts) and
(opts == [] or
(is_tuple(hd(opts)) and tuple_size(hd(opts)) == 2 and is_atom(elem(hd(opts), 0)))) do
SnakeBridge.Runtime.call_method(ref, :values, [arg1, arg2], opts)
end
def values(ref, arg1, arg2, arg3) do
SnakeBridge.Runtime.call_method(ref, :values, [arg1, arg2, arg3], [])
end
def values(ref, arg1, arg2, arg3, opts)
when is_list(opts) and
(opts == [] or
(is_tuple(hd(opts)) and tuple_size(hd(opts)) == 2 and is_atom(elem(hd(opts), 0)))) do
SnakeBridge.Runtime.call_method(ref, :values, [arg1, arg2, arg3], opts)
end
def values(ref, arg1, arg2, arg3, arg4) do
SnakeBridge.Runtime.call_method(ref, :values, [arg1, arg2, arg3, arg4], [])
end
def values(ref, arg1, arg2, arg3, arg4, opts)
when is_list(opts) and
(opts == [] or
(is_tuple(hd(opts)) and tuple_size(hd(opts)) == 2 and is_atom(elem(hd(opts), 0)))) do
SnakeBridge.Runtime.call_method(ref, :values, [arg1, arg2, arg3, arg4], opts)
end
def values(ref, arg1, arg2, arg3, arg4, arg5) do
SnakeBridge.Runtime.call_method(ref, :values, [arg1, arg2, arg3, arg4, arg5], [])
end
def values(ref, arg1, arg2, arg3, arg4, arg5, opts)
when is_list(opts) and
(opts == [] or
(is_tuple(hd(opts)) and tuple_size(hd(opts)) == 2 and is_atom(elem(hd(opts), 0)))) do
SnakeBridge.Runtime.call_method(ref, :values, [arg1, arg2, arg3, arg4, arg5], opts)
end
def values(ref, arg1, arg2, arg3, arg4, arg5, arg6) do
SnakeBridge.Runtime.call_method(ref, :values, [arg1, arg2, arg3, arg4, arg5, arg6], [])
end
def values(ref, arg1, arg2, arg3, arg4, arg5, arg6, opts)
when is_list(opts) and
(opts == [] or
(is_tuple(hd(opts)) and tuple_size(hd(opts)) == 2 and is_atom(elem(hd(opts), 0)))) do
SnakeBridge.Runtime.call_method(ref, :values, [arg1, arg2, arg3, arg4, arg5, arg6], opts)
end
def values(ref, arg1, arg2, arg3, arg4, arg5, arg6, arg7) do
SnakeBridge.Runtime.call_method(ref, :values, [arg1, arg2, arg3, arg4, arg5, arg6, arg7], [])
end
def values(ref, arg1, arg2, arg3, arg4, arg5, arg6, arg7, opts)
when is_list(opts) and
(opts == [] or
(is_tuple(hd(opts)) and tuple_size(hd(opts)) == 2 and is_atom(elem(hd(opts), 0)))) do
SnakeBridge.Runtime.call_method(
ref,
:values,
[arg1, arg2, arg3, arg4, arg5, arg6, arg7],
opts
)
end
def values(ref, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8) do
SnakeBridge.Runtime.call_method(
ref,
:values,
[arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8],
[]
)
end
def values(ref, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, opts)
when is_list(opts) and
(opts == [] or
(is_tuple(hd(opts)) and tuple_size(hd(opts)) == 2 and is_atom(elem(hd(opts), 0)))) do
SnakeBridge.Runtime.call_method(
ref,
:values,
[arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8],
opts
)
end
end