@@ -43,6 +43,7 @@ type GroupVariable struct {
43
43
Masked bool `json:"masked"`
44
44
Raw bool `json:"raw"`
45
45
EnvironmentScope string `json:"environment_scope"`
46
+ Description string `json:"description"`
46
47
}
47
48
48
49
func (v GroupVariable ) String () string {
@@ -114,11 +115,12 @@ func (s *GroupVariablesService) GetVariable(gid interface{}, key string, options
114
115
type CreateGroupVariableOptions struct {
115
116
Key * string `url:"key,omitempty" json:"key,omitempty"`
116
117
Value * string `url:"value,omitempty" json:"value,omitempty"`
117
- VariableType * VariableTypeValue `url:"variable_type ,omitempty" json:"variable_type ,omitempty"`
118
- Protected * bool `url:"protected ,omitempty" json:"protected ,omitempty"`
118
+ Description * string `url:"description ,omitempty" json:"description ,omitempty"`
119
+ EnvironmentScope * string `url:"environment_scope ,omitempty" json:"environment_scope ,omitempty"`
119
120
Masked * bool `url:"masked,omitempty" json:"masked,omitempty"`
121
+ Protected * bool `url:"protected,omitempty" json:"protected,omitempty"`
120
122
Raw * bool `url:"raw,omitempty" json:"raw,omitempty"`
121
- EnvironmentScope * string `url:"environment_scope ,omitempty" json:"environment_scope ,omitempty"`
123
+ VariableType * VariableTypeValue `url:"variable_type ,omitempty" json:"variable_type ,omitempty"`
122
124
}
123
125
124
126
// CreateVariable creates a new group variable.
@@ -153,11 +155,12 @@ func (s *GroupVariablesService) CreateVariable(gid interface{}, opt *CreateGroup
153
155
// https://docs.gitlab.com/ee/api/group_level_variables.html#update-variable
154
156
type UpdateGroupVariableOptions struct {
155
157
Value * string `url:"value,omitempty" json:"value,omitempty"`
156
- VariableType * VariableTypeValue `url:"variable_type ,omitempty" json:"variable_type ,omitempty"`
157
- Protected * bool `url:"protected ,omitempty" json:"protected ,omitempty"`
158
+ Description * string `url:"description ,omitempty" json:"description ,omitempty"`
159
+ EnvironmentScope * string `url:"environment_scope ,omitempty" json:"environment_scope ,omitempty"`
158
160
Masked * bool `url:"masked,omitempty" json:"masked,omitempty"`
161
+ Protected * bool `url:"protected,omitempty" json:"protected,omitempty"`
159
162
Raw * bool `url:"raw,omitempty" json:"raw,omitempty"`
160
- EnvironmentScope * string `url:"environment_scope ,omitempty" json:"environment_scope ,omitempty"`
163
+ VariableType * VariableTypeValue `url:"variable_type ,omitempty" json:"variable_type ,omitempty"`
161
164
}
162
165
163
166
// UpdateVariable updates the position of an existing
0 commit comments