# This file generated by `dagger_codegen`. Please DO NOT EDIT. defmodule Dagger.DaggerEngineCacheEntry do @moduledoc "An individual cache entry in a cache entry set" use Dagger.Core.QueryBuilder @derive Dagger.ID defstruct [:selection, :client] @type t() :: %__MODULE__{} @doc "Whether the cache entry is actively being used." @spec actively_used(t()) :: {:ok, boolean()} | {:error, term()} def actively_used(%__MODULE__{} = dagger_engine_cache_entry) do selection = dagger_engine_cache_entry.selection |> select("activelyUsed") execute(selection, dagger_engine_cache_entry.client) end @doc "The time the cache entry was created, in Unix nanoseconds." @spec created_time_unix_nano(t()) :: {:ok, integer()} | {:error, term()} def created_time_unix_nano(%__MODULE__{} = dagger_engine_cache_entry) do selection = dagger_engine_cache_entry.selection |> select("createdTimeUnixNano") execute(selection, dagger_engine_cache_entry.client) end @doc "The description of the cache entry." @spec description(t()) :: {:ok, String.t()} | {:error, term()} def description(%__MODULE__{} = dagger_engine_cache_entry) do selection = dagger_engine_cache_entry.selection |> select("description") execute(selection, dagger_engine_cache_entry.client) end @doc "The disk space used by the cache entry." @spec disk_space_bytes(t()) :: {:ok, integer()} | {:error, term()} def disk_space_bytes(%__MODULE__{} = dagger_engine_cache_entry) do selection = dagger_engine_cache_entry.selection |> select("diskSpaceBytes") execute(selection, dagger_engine_cache_entry.client) end @doc "A unique identifier for this DaggerEngineCacheEntry." @spec id(t()) :: {:ok, Dagger.DaggerEngineCacheEntryID.t()} | {:error, term()} def id(%__MODULE__{} = dagger_engine_cache_entry) do selection = dagger_engine_cache_entry.selection |> select("id") execute(selection, dagger_engine_cache_entry.client) end @doc "The most recent time the cache entry was used, in Unix nanoseconds." @spec most_recent_use_time_unix_nano(t()) :: {:ok, integer()} | {:error, term()} def most_recent_use_time_unix_nano(%__MODULE__{} = dagger_engine_cache_entry) do selection = dagger_engine_cache_entry.selection |> select("mostRecentUseTimeUnixNano") execute(selection, dagger_engine_cache_entry.client) end end