From 67cfe846717c4ac37ea4fa11143adc00f1f45e2d 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 f19c8d10a..0518aaa45 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,7 @@ * Adds `RetryServerErrors` field to the `Config` object by @sebasslash [#439](https://github.com/hashicorp/go-tfe/pull/439) * Adds support for the GPG Keys API by @sebasslash [#429](https://github.com/hashicorp/go-tfe/pull/429) * [beta] Renames the optional StateVersion field `ExtState` to `JSONState` and changes to string for base64 encoding by @annawinkler [#444](https://github.com/hashicorp/go-tfe/pull/444) +* 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) # v1.3.0 diff --git a/agent_pool.go b/agent_pool.go index e8cbd6586..5b9c2d0aa 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"` }