@@ -65,6 +65,13 @@ type VariableSetList struct {
65
65
Items []* VariableSet
66
66
}
67
67
68
+ // Parent represents the variable set's parent (currently only organizations and projects are supported).
69
+ // This relation is considered BETA, SUBJECT TO CHANGE, and likely unavailable to most users.
70
+ type Parent struct {
71
+ Organization * Organization
72
+ Project * Project
73
+ }
74
+
68
75
// VariableSet represents a Terraform Enterprise variable set.
69
76
type VariableSet struct {
70
77
ID string `jsonapi:"primary,varsets"`
@@ -74,10 +81,13 @@ type VariableSet struct {
74
81
Priority bool `jsonapi:"attr,priority"`
75
82
76
83
// Relations
77
- Organization * Organization `jsonapi:"relation,organization"`
78
- Workspaces []* Workspace `jsonapi:"relation,workspaces,omitempty"`
79
- Projects []* Project `jsonapi:"relation,projects,omitempty"`
80
- Variables []* VariableSetVariable `jsonapi:"relation,vars,omitempty"`
84
+ Organization * Organization `jsonapi:"relation,organization"`
85
+ // Optional: Parent represents the variable set's parent (currently only organizations and projects are supported).
86
+ // This relation is considered BETA, SUBJECT TO CHANGE, and likely unavailable to most users.
87
+ Parent * Parent `jsonapi:"polyrelation,parent"`
88
+ Workspaces []* Workspace `jsonapi:"relation,workspaces,omitempty"`
89
+ Projects []* Project `jsonapi:"relation,projects,omitempty"`
90
+ Variables []* VariableSetVariable `jsonapi:"relation,vars,omitempty"`
81
91
}
82
92
83
93
// A list of relations to include. See available resources
@@ -122,6 +132,10 @@ type VariableSetCreateOptions struct {
122
132
// If true the variables in the set override any other variable values set
123
133
// in a more specific scope including values set on the command line.
124
134
Priority * bool `jsonapi:"attr,priority,omitempty"`
135
+
136
+ // Optional: Parent represents the variable set's parent (currently only organizations and projects are supported).
137
+ // This relation is considered BETA, SUBJECT TO CHANGE, and likely unavailable to most users.
138
+ Parent * Parent `jsonapi:"polyrelation,parent"`
125
139
}
126
140
127
141
// VariableSetReadOptions represents the options for reading variable sets.
0 commit comments