Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds AgentsCeilingOverride and RunsCeilingOverride fields in AdminOrganization and AdminOrganizationUpdateOptions structs #836

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
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