From d975a53a124e183cd312eebc1b170f6a4ffa901c Mon Sep 17 00:00:00 2001 From: Nick Fagerlund Date: Fri, 3 Feb 2023 18:39:27 -0800 Subject: [PATCH] Docs: RunListOptions filter fields take comma-separated lists --- run.go | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/run.go b/run.go index 5202d3d51..9272c98de 100644 --- a/run.go +++ b/run.go @@ -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: