Skip to content

Commit 44a9747

Browse files
authored
IND-5974: Add Serialization for Stack Permissions on Org Read (#1230)
* Add Serialization for Stack Permissions on Org Read * add changelog entry * fix typo * fix changelog
1 parent e65d1f5 commit 44a9747

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
# v1.94.0
44

55
* Add BETA support for Action invocations via `CreateRunOptions` by @mutahhir [#1206](https://github.com/hashicorp/go-tfe/pull/1206)
6+
* Add serialization for `StacksEnabled` field, `CanEnableStacks` & `CanCreateProject` permissions on Organization Read by @a-anurag27 [#1230](https://github.com/hashicorp/go-tfe/pull/1230)
67

78
# v1.93.0
89

organization.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,7 @@ type Organization struct {
109109
OwnersTeamSAMLRoleID string `jsonapi:"attr,owners-team-saml-role-id"`
110110
Permissions *OrganizationPermissions `jsonapi:"attr,permissions"`
111111
SAMLEnabled bool `jsonapi:"attr,saml-enabled"`
112+
StacksEnabled bool `jsonapi:"attr,stacks-enabled"`
112113
SessionRemember int `jsonapi:"attr,session-remember"`
113114
SessionTimeout int `jsonapi:"attr,session-timeout"`
114115
TrialExpiresAt time.Time `jsonapi:"attr,trial-expires-at,iso8601"`
@@ -201,6 +202,8 @@ type OrganizationPermissions struct {
201202
CanUpdateSentinel bool `jsonapi:"attr,can-update-sentinel"`
202203
CanUpdateHYOKConfiguration bool `jsonapi:"attr,can-update-hyok-configuration"`
203204
CanViewHYOKFeatureInfo bool `jsonapi:"attr,can-view-hyok-feature-info"`
205+
CanEnableStacks bool `jsonapi:"attr,can-enable-stacks"`
206+
CanCreateProject bool `jsonapi:"attr,can-create-project"`
204207
}
205208

206209
// OrganizationListOptions represents the options for listing organizations.

0 commit comments

Comments
 (0)