From c30c2e354614e46973105282f14556c6dd458bf1 Mon Sep 17 00:00:00 2001 From: Alexandre Dath Date: Thu, 10 Aug 2023 14:28:16 +0200 Subject: [PATCH] Adds AgentsCeilingOverride and RunsCeilingOverride fields in AdminOrganization and AdminOrganizationUpdateOptions structs --- CHANGELOG.md | 1 + admin_organization.go | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 370c92f76..0959dde30 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,7 @@ # v1.43.0 ## Features +* Adds `AgentsCeilingOverride` and `RunsCeilingOverride` fields in `AdminOrganization` and `AdminOrganizationUpdateOptions` structs * Adds `AggregatedCommitStatusEnabled` field to `Organization` by @mjyocca [#829](https://github.com/hashicorp/go-tfe/pull/829) ## Enhancements diff --git a/admin_organization.go b/admin_organization.go index ccaeffd27..67ab0a131 100644 --- a/admin_organization.go +++ b/admin_organization.go @@ -55,7 +55,8 @@ type AdminOrganization struct { TerraformBuildWorkerPlanTimeout string `jsonapi:"attr,terraform-build-worker-plan-timeout"` TerraformWorkerSudoEnabled bool `jsonapi:"attr,terraform-worker-sudo-enabled"` WorkspaceLimit *int `jsonapi:"attr,workspace-limit"` - + AgentsCeilingOverride *int `jsonapi:"attr,agents-ceiling-override,omitempty"` + RunsCeilingOverride *int `jsonapi:"attr,runs-ceiling-override,omitempty"` // Relations Owners []*User `jsonapi:"relation,owners"` } @@ -71,6 +72,8 @@ type AdminOrganizationUpdateOptions struct { TerraformBuildWorkerPlanTimeout *string `jsonapi:"attr,terraform-build-worker-plan-timeout,omitempty"` TerraformWorkerSudoEnabled bool `jsonapi:"attr,terraform-worker-sudo-enabled,omitempty"` WorkspaceLimit *int `jsonapi:"attr,workspace-limit,omitempty"` + AgentsCeilingOverride *int `jsonapi:"attr,agents-ceiling-override,omitempty"` + RunsCeilingOverride *int `jsonapi:"attr,runs-ceiling-override,omitempty"` } // AdminOrganizationList represents a list of organizations via Admin API.