Skip to content

Commit

Permalink
beta
Browse files Browse the repository at this point in the history
  • Loading branch information
netramali committed Feb 29, 2024
1 parent c875162 commit 97dd088
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
8 changes: 6 additions & 2 deletions project.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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"`
}

Expand All @@ -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"`
}

Expand Down
2 changes: 2 additions & 0 deletions projects_integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"),
Expand Down Expand Up @@ -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()

Expand Down

0 comments on commit 97dd088

Please sign in to comment.