From a675ef34e161e5c08e6963ee4aab9fa4bee41780 Mon Sep 17 00:00:00 2001 From: Poonam Jadhav Date: Mon, 1 Jun 2026 14:50:48 -0400 Subject: [PATCH 1/3] feat: expose infragraph entitlement fields from API --- organization.go | 2 ++ organization_integration_test.go | 2 ++ 2 files changed, 4 insertions(+) diff --git a/organization.go b/organization.go index 8f86ac5ff..9c3c344b4 100644 --- a/organization.go +++ b/organization.go @@ -179,6 +179,8 @@ type Entitlements struct { VCSIntegrations bool `jsonapi:"attr,vcs-integrations"` WaypointActions bool `jsonapi:"attr,waypoint-actions"` WaypointTemplatesAndAddons bool `jsonapi:"attr,waypoint-templates-and-addons"` + Infragraph bool `jsonapi:"attr,infragraph"` + InfragraphWithNRTU bool `jsonapi:"attr,infragraph-with-nrtu"` } // RunQueue represents the current run queue of an organization. diff --git a/organization_integration_test.go b/organization_integration_test.go index 2e5e47fff..4da0dc646 100644 --- a/organization_integration_test.go +++ b/organization_integration_test.go @@ -619,6 +619,8 @@ func TestOrganizationsReadEntitlements(t *testing.T) { assert.True(t, entitlements.VCSIntegrations) assert.False(t, entitlements.WaypointActions) assert.True(t, entitlements.WaypointTemplatesAndAddons) + assert.True(t, entitlements.Infragraph) + assert.False(t, entitlements.InfragraphWithNRTU) }) t.Run("with invalid name", func(t *testing.T) { From 2be4e13bb66da74cdf4a8e90e10ba34a483c5d51 Mon Sep 17 00:00:00 2001 From: Poonam Jadhav Date: Mon, 1 Jun 2026 15:35:43 -0400 Subject: [PATCH 2/3] change-log: make a change-log entry --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 94bee5839..94332a386 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,7 @@ ## Enhancements * Adds BETA support for listing `TFPolicyEvaluationOutcome`, which is EXPERIMENTAL, SUBJECT TO CHANGE, and may not be available to all users by @subhro-acharjee-1 [#1313](https://github.com/hashicorp/go-tfe/pull/1313) +* Add Infragraph entitlements (the `infragraph` and `infragraph-with-nrtu` attributes) to `Entitlements` by @jadhavpoonam [#1351](https://github.com/hashicorp/go-tfe/pull/1351) # v1.107.0 From 0aaab39bd84a51279d5a45befd5f72c60aa916ee Mon Sep 17 00:00:00 2001 From: Poonam Jadhav Date: Mon, 1 Jun 2026 17:13:37 -0400 Subject: [PATCH 3/3] fix: resolve format issue Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> --- organization.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/organization.go b/organization.go index 9c3c344b4..1d6443465 100644 --- a/organization.go +++ b/organization.go @@ -179,8 +179,8 @@ type Entitlements struct { VCSIntegrations bool `jsonapi:"attr,vcs-integrations"` WaypointActions bool `jsonapi:"attr,waypoint-actions"` WaypointTemplatesAndAddons bool `jsonapi:"attr,waypoint-templates-and-addons"` - Infragraph bool `jsonapi:"attr,infragraph"` - InfragraphWithNRTU bool `jsonapi:"attr,infragraph-with-nrtu"` + Infragraph bool `jsonapi:"attr,infragraph"` + InfragraphWithNRTU bool `jsonapi:"attr,infragraph-with-nrtu"` } // RunQueue represents the current run queue of an organization.