# This file generated by `mix dagger.gen`. Please DO NOT EDIT.
defmodule Dagger.Label do
  @moduledoc "A simple key value object that represents a label."
  use Dagger.QueryBuilder
  @type t() :: %__MODULE__{}
  defstruct [:selection, :client]

  (
    @doc "A unique identifier for this Label."
    @spec id(t()) :: {:ok, Dagger.LabelID.t()} | {:error, term()}
    def id(%__MODULE__{} = label) do
      selection = select(label.selection, "id")
      execute(selection, label.client)
    end
  )

  (
    @doc ""
    @spec name(t()) :: {:ok, Dagger.String.t()} | {:error, term()}
    def name(%__MODULE__{} = label) do
      selection = select(label.selection, "name")
      execute(selection, label.client)
    end
  )

  (
    @doc ""
    @spec value(t()) :: {:ok, Dagger.String.t()} | {:error, term()}
    def value(%__MODULE__{} = label) do
      selection = select(label.selection, "value")
      execute(selection, label.client)
    end
  )
end
