From adbb021444ebf9b1638c5a829380b4f4cfa4be49 Mon Sep 17 00:00:00 2001 From: Jarrett Spiker Date: Wed, 1 Jun 2022 10:26:10 -0400 Subject: [PATCH] Update changelog with agent pool query parameter enhancement --- CHANGELOG.md | 1 + agent_pool.go | 1 + 2 files changed, 2 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2a31fdb74..930ccea9b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,7 @@ # Unreleased * [beta] Add support for triggering Workspace runs through matching Git tags [#434](https://github.com/hashicorp/go-tfe/pull/434) +* Add `Query` param field to `AgentPoolListOptions` to allow searching based on agent pool name, by @JarrettSpiker [#417](https://github.com/hashicorp/go-tfe/pull/417) ## Bug fixes * Fixed JSON mapping for Configuration Versions failing to properly set the `speculative` property [#459](https://github.com/hashicorp/go-tfe/pull/459) diff --git a/agent_pool.go b/agent_pool.go index 98cf13dff..41125bc6a 100644 --- a/agent_pool.go +++ b/agent_pool.go @@ -71,6 +71,7 @@ type AgentPoolListOptions struct { // https://www.terraform.io/cloud-docs/api-docs/agents#available-related-resources Include []AgentPoolIncludeOpt `url:"include,omitempty"` + // Optional: A search query string used to filter agent pool. Agent pools are searchable by name Query string `url:"q,omitempty"` }