Skip to content

Commit

Permalink
Merge pull request #648 from hashicorp/nf/feb23-docs-comma-separated-…
Browse files Browse the repository at this point in the history
…run-filters

Docs: RunListOptions filter fields take comma-separated lists
  • Loading branch information
nfagerlund authored Feb 7, 2023
2 parents eb71b05 + d975a53 commit 5630938
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions run.go
Original file line number Diff line number Diff line change
Expand Up @@ -222,16 +222,19 @@ type RunListOptions struct {
// The presence of search[commit] or search[user] takes priority over this parameter and will be omitted.
Search string `url:"search[basic],omitempty"`

// Optional: Current status of the run.
// Options are listed at https://developer.hashicorp.com/terraform/cloud-docs/api-docs/run#run-states
// Optional: Comma-separated list of acceptable run statuses.
// Options are listed at https://developer.hashicorp.com/terraform/cloud-docs/api-docs/run#run-states,
// or as constants with the RunStatus string type.
Status string `url:"filter[status],omitempty"`

// Optional: Source that triggered the run.
// Options are listed at https://developer.hashicorp.com/terraform/cloud-docs/api-docs/run#run-sources
// Optional: Comma-separated list of acceptable run sources.
// Options are listed at https://developer.hashicorp.com/terraform/cloud-docs/api-docs/run#run-sources,
// or as constants with the RunSource string type.
Source string `url:"filter[source],omitempty"`

// Optional: Operation type for the run.
// Options are listed at https://developer.hashicorp.com/terraform/cloud-docs/api-docs/run#run-operations
// Optional: Comma-separated list of acceptable run operation types.
// Options are listed at https://developer.hashicorp.com/terraform/cloud-docs/api-docs/run#run-operations,
// or as constants with the RunOperation string type.
Operation string `url:"filter[operation],omitempty"`

// Optional: A list of relations to include. See available resources:
Expand Down

0 comments on commit 5630938

Please sign in to comment.