diff --git a/project.go b/project.go index c32e37482..68632493f 100644 --- a/project.go +++ b/project.go @@ -46,8 +46,10 @@ type ProjectList struct { // Project represents a Terraform Enterprise project type Project struct { - ID string `jsonapi:"primary,projects"` - Name string `jsonapi:"attr,name"` + ID string `jsonapi:"primary,projects"` + Name string `jsonapi:"attr,name"` + + // **Note: This field is still in BETA and subject to change.** Description string `jsonapi:"attr,description"` // Relations @@ -79,6 +81,7 @@ type ProjectCreateOptions struct { Name string `jsonapi:"attr,name"` // Optional: A description for the project. + // **Note: This field is still in BETA and subject to change.** Description *string `jsonapi:"attr,description,omitempty"` } @@ -94,6 +97,7 @@ type ProjectUpdateOptions struct { Name *string `jsonapi:"attr,name,omitempty"` // Optional: A description for the project. + // **Note: This field is still in BETA and subject to change.** Description *string `jsonapi:"attr,description,omitempty"` } diff --git a/projects_integration_test.go b/projects_integration_test.go index f4076dab9..46b8dfdbb 100644 --- a/projects_integration_test.go +++ b/projects_integration_test.go @@ -102,6 +102,7 @@ func TestProjectsCreate(t *testing.T) { defer orgTestCleanup() t.Run("with valid options", func(t *testing.T) { + skipUnlessBeta(t) options := ProjectCreateOptions{ Name: "foo", Description: String("qux"), @@ -154,6 +155,7 @@ func TestProjectsUpdate(t *testing.T) { defer orgTestCleanup() t.Run("with valid options", func(t *testing.T) { + skipUnlessBeta(t) kBefore, kTestCleanup := createProject(t, client, orgTest) defer kTestCleanup()