Skip to content

Commit 24f4ce1

Browse files
author
Cyril Dupont
committed
Reorder strurt properties to match the docs
1 parent 6ab9132 commit 24f4ce1

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

group_variables.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@ type GroupVariable struct {
4141
VariableType VariableTypeValue `json:"variable_type"`
4242
Protected bool `json:"protected"`
4343
Masked bool `json:"masked"`
44-
EnvironmentScope string `json:"environment_scope"`
4544
Raw bool `json:"raw"`
45+
EnvironmentScope string `json:"environment_scope"`
4646
}
4747

4848
func (v GroupVariable) String() string {
@@ -117,8 +117,8 @@ type CreateGroupVariableOptions struct {
117117
VariableType *VariableTypeValue `url:"variable_type,omitempty" json:"variable_type,omitempty"`
118118
Protected *bool `url:"protected,omitempty" json:"protected,omitempty"`
119119
Masked *bool `url:"masked,omitempty" json:"masked,omitempty"`
120-
EnvironmentScope *string `url:"environment_scope,omitempty" json:"environment_scope,omitempty"`
121120
Raw *bool `url:"raw,omitempty" json:"raw,omitempty"`
121+
EnvironmentScope *string `url:"environment_scope,omitempty" json:"environment_scope,omitempty"`
122122
}
123123

124124
// CreateVariable creates a new group variable.
@@ -156,8 +156,8 @@ type UpdateGroupVariableOptions struct {
156156
VariableType *VariableTypeValue `url:"variable_type,omitempty" json:"variable_type,omitempty"`
157157
Protected *bool `url:"protected,omitempty" json:"protected,omitempty"`
158158
Masked *bool `url:"masked,omitempty" json:"masked,omitempty"`
159-
EnvironmentScope *string `url:"environment_scope,omitempty" json:"environment_scope,omitempty"`
160159
Raw *bool `url:"raw,omitempty" json:"raw,omitempty"`
160+
EnvironmentScope *string `url:"environment_scope,omitempty" json:"environment_scope,omitempty"`
161161
}
162162

163163
// UpdateVariable updates the position of an existing

project_variables.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@ type ProjectVariable struct {
4141
VariableType VariableTypeValue `json:"variable_type"`
4242
Protected bool `json:"protected"`
4343
Masked bool `json:"masked"`
44-
EnvironmentScope string `json:"environment_scope"`
4544
Raw bool `json:"raw"`
45+
EnvironmentScope string `json:"environment_scope"`
4646
}
4747

4848
func (v ProjectVariable) String() string {
@@ -131,8 +131,8 @@ type CreateProjectVariableOptions struct {
131131
VariableType *VariableTypeValue `url:"variable_type,omitempty" json:"variable_type,omitempty"`
132132
Protected *bool `url:"protected,omitempty" json:"protected,omitempty"`
133133
Masked *bool `url:"masked,omitempty" json:"masked,omitempty"`
134-
EnvironmentScope *string `url:"environment_scope,omitempty" json:"environment_scope,omitempty"`
135134
Raw *bool `url:"raw,omitempty" json:"raw,omitempty"`
135+
EnvironmentScope *string `url:"environment_scope,omitempty" json:"environment_scope,omitempty"`
136136
}
137137

138138
// CreateVariable creates a new project variable.
@@ -170,9 +170,9 @@ type UpdateProjectVariableOptions struct {
170170
VariableType *VariableTypeValue `url:"variable_type,omitempty" json:"variable_type,omitempty"`
171171
Protected *bool `url:"protected,omitempty" json:"protected,omitempty"`
172172
Masked *bool `url:"masked,omitempty" json:"masked,omitempty"`
173+
Raw *bool `url:"raw,omitempty" json:"raw,omitempty"`
173174
EnvironmentScope *string `url:"environment_scope,omitempty" json:"environment_scope,omitempty"`
174175
Filter *VariableFilter `url:"filter,omitempty" json:"filter,omitempty"`
175-
Raw *bool `url:"raw,omitempty" json:"raw,omitempty"`
176176
}
177177

178178
// UpdateVariable updates a project's variable.

0 commit comments

Comments
 (0)