Skip to content

Commit

Permalink
Adds AgentsCeilingOverride and RunsCeilingOverride fields in AdminOrg…
Browse files Browse the repository at this point in the history
…anization and AdminOrganizationUpdateOptions structs
  • Loading branch information
alex-ikse committed Jan 23, 2024
1 parent e7a87dc commit 6db6dc3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Unreleased

## 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)

# v1.42.0
Expand Down
5 changes: 4 additions & 1 deletion admin_organization.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`
}
Expand All @@ -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.
Expand Down

0 comments on commit 6db6dc3

Please sign in to comment.