Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update VCL snippet type description #519

Merged
merged 1 commit into from
Jan 5, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/resources/service_v1.md
Original file line number Diff line number Diff line change
Expand Up @@ -473,7 +473,7 @@ Optional:
Required:

- **name** (String) A name that is unique across "regular" and "dynamic" VCL Snippet configuration blocks. It is important to note that changing this attribute will delete and recreate the resource
- **type** (String) The location in generated VCL where the snippet should be placed (can be one of `init`, `recv`, `hit`, `miss`, `pass`, `fetch`, `error`, `deliver`, `log` or `none`)
- **type** (String) The location in generated VCL where the snippet should be placed (can be one of `init`, `recv`, `hash`, `hit`, `miss`, `pass`, `fetch`, `error`, `deliver`, `log` or `none`)

Optional:

Expand Down Expand Up @@ -1048,7 +1048,7 @@ Required:

- **content** (String) The VCL code that specifies exactly what the snippet does
- **name** (String) A name that is unique across "regular" and "dynamic" VCL Snippet configuration blocks. It is important to note that changing this attribute will delete and recreate the resource
- **type** (String) The location in generated VCL where the snippet should be placed (can be one of `init`, `recv`, `hit`, `miss`, `pass`, `fetch`, `error`, `deliver`, `log` or `none`)
- **type** (String) The location in generated VCL where the snippet should be placed (can be one of `init`, `recv`, `hash`, `hit`, `miss`, `pass`, `fetch`, `error`, `deliver`, `log` or `none`)

Optional:

Expand Down
2 changes: 1 addition & 1 deletion fastly/block_fastly_service_v1_dynamicsnippet.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ func (h *DynamicSnippetServiceAttributeHandler) GetSchema() *schema.Schema {
"type": {
Type: schema.TypeString,
Required: true,
Description: "The location in generated VCL where the snippet should be placed (can be one of `init`, `recv`, `hit`, `miss`, `pass`, `fetch`, `error`, `deliver`, `log` or `none`)",
Description: SnippetTypeDescription,
ValidateDiagFunc: validateSnippetType(),
},
"priority": {
Expand Down
2 changes: 1 addition & 1 deletion fastly/block_fastly_service_v1_snippet.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ func (h *SnippetServiceAttributeHandler) GetSchema() *schema.Schema {
"type": {
Type: schema.TypeString,
Required: true,
Description: "The location in generated VCL where the snippet should be placed (can be one of `init`, `recv`, `hit`, `miss`, `pass`, `fetch`, `error`, `deliver`, `log` or `none`)",
Description: SnippetTypeDescription,
ValidateDiagFunc: validateSnippetType(),
},
"content": {
Expand Down
1 change: 1 addition & 0 deletions fastly/constants.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ package fastly
const MessageTypeDescription = "How the message should be formatted. Can be either `classic`, `loggly`, `logplex` or `blank`. Default is `classic`"
const GzipLevelDescription = "Level of Gzip compression from `0-9`. `0` means no compression. `1` is the fastest and the least compressed version, `9` is the slowest and the most compressed version. Default `0`"
const TimestampFormatDescription = "The `strftime` specified timestamp formatting (default `%Y-%m-%dT%H:%M:%S.000`)"
const SnippetTypeDescription = "The location in generated VCL where the snippet should be placed (can be one of `init`, `recv`, `hash`, `hit`, `miss`, `pass`, `fetch`, `error`, `deliver`, `log` or `none`)"