Skip to content

Commit b6b72cc

Browse files
committed
name-index can be nil
1 parent 19f4398 commit b6b72cc

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

workspace_resources.go

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -34,16 +34,16 @@ type WorkspaceResourcesList struct {
3434

3535
// WorkspaceResource represents a Terraform Enterprise workspace resource.
3636
type WorkspaceResource struct {
37-
ID string `jsonapi:"primary,resources"`
38-
Address string `jsonapi:"attr,address"`
39-
Name string `jsonapi:"attr,name"`
40-
CreatedAt string `jsonapi:"attr,created-at"`
41-
UpdatedAt string `jsonapi:"attr,updated-at"`
42-
Module string `jsonapi:"attr,module"`
43-
Provider string `jsonapi:"attr,provider"`
44-
ProviderType string `jsonapi:"attr,provider-type"`
45-
ModifiedByStateVersionID string `jsonapi:"attr,modified-by-state-version-id"`
46-
NameIndex string `jsonapi:"attr,name-index"`
37+
ID string `jsonapi:"primary,resources"`
38+
Address string `jsonapi:"attr,address"`
39+
Name string `jsonapi:"attr,name"`
40+
CreatedAt string `jsonapi:"attr,created-at"`
41+
UpdatedAt string `jsonapi:"attr,updated-at"`
42+
Module string `jsonapi:"attr,module"`
43+
Provider string `jsonapi:"attr,provider"`
44+
ProviderType string `jsonapi:"attr,provider-type"`
45+
ModifiedByStateVersionID string `jsonapi:"attr,modified-by-state-version-id"`
46+
NameIndex *string `jsonapi:"attr,name-index"`
4747
}
4848

4949
// WorkspaceResourceListOptions represents the options for listing workspace resources.

0 commit comments

Comments
 (0)