Skip to content

Commit

Permalink
name-index can be nil
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonc committed Nov 22, 2023
1 parent 19f4398 commit b6b72cc
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions workspace_resources.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,16 +34,16 @@ type WorkspaceResourcesList struct {

// WorkspaceResource represents a Terraform Enterprise workspace resource.
type WorkspaceResource struct {
ID string `jsonapi:"primary,resources"`
Address string `jsonapi:"attr,address"`
Name string `jsonapi:"attr,name"`
CreatedAt string `jsonapi:"attr,created-at"`
UpdatedAt string `jsonapi:"attr,updated-at"`
Module string `jsonapi:"attr,module"`
Provider string `jsonapi:"attr,provider"`
ProviderType string `jsonapi:"attr,provider-type"`
ModifiedByStateVersionID string `jsonapi:"attr,modified-by-state-version-id"`
NameIndex string `jsonapi:"attr,name-index"`
ID string `jsonapi:"primary,resources"`
Address string `jsonapi:"attr,address"`
Name string `jsonapi:"attr,name"`
CreatedAt string `jsonapi:"attr,created-at"`
UpdatedAt string `jsonapi:"attr,updated-at"`
Module string `jsonapi:"attr,module"`
Provider string `jsonapi:"attr,provider"`
ProviderType string `jsonapi:"attr,provider-type"`
ModifiedByStateVersionID string `jsonapi:"attr,modified-by-state-version-id"`
NameIndex *string `jsonapi:"attr,name-index"`
}

// WorkspaceResourceListOptions represents the options for listing workspace resources.
Expand Down

0 comments on commit b6b72cc

Please sign in to comment.