View Source Ash.Resource.Builder (ash v2.3.0)
Tools for transforming resources in DSL Transformers.
Link to this section Summary
Functions
Builds and adds an attribute to a resource
Builds and adds a create_timestamp to a resource
Builds and adds an attribute unless an attribute with that name already exists
Builds and adds a create_timestamp unless a create_timestamp with that name already exists
Builds and adds an update_timestamp unless an update_timestamp with that name already exists
Builds and adds an update_timestamp
Builds an attribute with the given name, type, and options
Builds an create_timestamp with the given name, type, and options
Builds an update_timestamp with the given name, type, and options
Link to this section Functions
@spec add_attribute( Spark.Dsl.t(), name :: atom(), type :: Ash.Type.t(), opts :: Keyword.t() ) :: Spark.Dsl.Builder.result()
Builds and adds an attribute to a resource
@spec add_create_timestamp( Spark.Dsl.t(), name :: atom(), opts :: Keyword.t() ) :: Spark.Dsl.Builder.result()
Builds and adds a create_timestamp to a resource
@spec add_new_attribute( Spark.Dsl.t(), name :: atom(), type :: Ash.Type.t(), opts :: Keyword.t() ) :: Spark.Dsl.Builder.result()
Builds and adds an attribute unless an attribute with that name already exists
@spec add_new_create_timestamp(Spark.Dsl.t(), name :: atom(), opts :: Keyword.t()) :: Spark.Dsl.Builder.result()
Builds and adds a create_timestamp unless a create_timestamp with that name already exists
@spec add_new_update_timestamp(Spark.Dsl.t(), name :: atom(), opts :: Keyword.t()) :: Spark.Dsl.Builder.result()
Builds and adds an update_timestamp unless an update_timestamp with that name already exists
@spec add_update_timestamp(Spark.Dsl.t(), name :: atom(), opts :: Keyword.t()) :: Spark.Dsl.Builder.result()
Builds and adds an update_timestamp
@spec build_attribute(name :: atom(), type :: Ash.Type.t(), opts :: Keyword.t()) :: Spark.Dsl.Builder.result()
Builds an attribute with the given name, type, and options
@spec build_create_timestamp(name :: atom(), opts :: Keyword.t()) :: Spark.Dsl.Builder.result()
Builds an create_timestamp with the given name, type, and options
@spec build_update_timestamp(name :: atom(), opts :: Keyword.t()) :: Spark.Dsl.Builder.result()
Builds an update_timestamp with the given name, type, and options