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

Docs: RunListOptions filter fields take comma-separated lists #648

Merged
merged 1 commit into from
Feb 7, 2023
Merged
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
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