chore(deps): update dependency spark to v1.1.55 #37
1 changed files with 20 additions and 11 deletions
|
@ -1,3 +1,6 @@
|
|||
<!--
|
||||
This file was generated by Spark. Do not edit it by hand.
|
||||
-->
|
||||
# DSL: Smokestack.Dsl
|
||||
|
||||
The DSL definition for the Smokestack DSL.
|
||||
|
@ -83,15 +86,16 @@ Define factories for a resource
|
|||
|
||||
|
||||
### Options
|
||||
|
||||
| Name | Type | Default | Docs |
|
||||
| --- | --- | --- | --- |
|
||||
| `api` | `module` | | The default Ash API to use when evaluating loads |
|
||||
|------|------|---------|------|
|
||||
| [`api`](#smokestack-api){: #smokestack-api } | `module` | | The default Ash API to use when evaluating loads |
|
||||
|
||||
|
||||
|
||||
## smokestack.factory
|
||||
```elixir
|
||||
factory resource, variant \ :default
|
||||
factory resource, variant \\ :default
|
||||
```
|
||||
|
||||
|
||||
|
@ -104,14 +108,16 @@ Define factories for a resource
|
|||
|
||||
|
||||
### Arguments
|
||||
|
||||
| Name | Type | Default | Docs |
|
||||
| --- | --- | --- | --- |
|
||||
| `resource`* | `module` | | An Ash Resource |
|
||||
| `variant` | `atom` | `:default` | The name of a factory variant |
|
||||
|------|------|---------|------|
|
||||
| [`resource`](#smokestack-factory-resource){: #smokestack-factory-resource .spark-required} | `module` | | An Ash Resource |
|
||||
| [`variant`](#smokestack-factory-variant){: #smokestack-factory-variant } | `atom` | `:default` | The name of a factory variant |
|
||||
### Options
|
||||
|
||||
| Name | Type | Default | Docs |
|
||||
| --- | --- | --- | --- |
|
||||
| `api` | `module` | | The Ash API to use when evaluating loads |
|
||||
|------|------|---------|------|
|
||||
| [`api`](#smokestack-factory-api){: #smokestack-factory-api } | `module` | | The Ash API to use when evaluating loads |
|
||||
|
||||
|
||||
## smokestack.factory.attribute
|
||||
|
@ -127,10 +133,11 @@ attribute name, generator
|
|||
|
||||
|
||||
### Arguments
|
||||
|
||||
| Name | Type | Default | Docs |
|
||||
| --- | --- | --- | --- |
|
||||
| `name`* | `atom` | | The name of the target attribute |
|
||||
| `generator`* | `(-> any) \| mfa \| (any -> any) \| mfa \| (any, any -> any) \| mfa` | | A function which can generate an appropriate value for the attribute.œ |
|
||||
|------|------|---------|------|
|
||||
| [`name`](#smokestack-factory-attribute-name){: #smokestack-factory-attribute-name .spark-required} | `atom` | | The name of the target attribute |
|
||||
| [`generator`](#smokestack-factory-attribute-generator){: #smokestack-factory-attribute-generator .spark-required} | `(-> any) \| mfa \| (any -> any) \| mfa \| (any, any -> any) \| mfa` | | A function which can generate an appropriate value for the attribute.œ |
|
||||
|
||||
|
||||
|
||||
|
@ -151,3 +158,5 @@ Target: `Smokestack.Dsl.Factory`
|
|||
|
||||
|
||||
|
||||
|
||||
<style type="text/css">.spark-required::after { content: "*"; color: red !important; }</style>
|
Loading…
Reference in a new issue