@@ -123,11 +123,11 @@ func (r EnvironmentAutomationUpsertParamsAutomationsFile) MarshalJSON() (data []
123
123
}
124
124
125
125
type EnvironmentAutomationUpsertParamsAutomationsFileServices struct {
126
- Commands param.Field [EnvironmentAutomationUpsertParamsAutomationsFileServicesCommands ] `json:"commands"`
127
- Description param.Field [string ] `json:"description"`
128
- Name param.Field [string ] `json:"name"`
129
- RunsOn param.Field [EnvironmentAutomationUpsertParamsAutomationsFileServicesRunsOnUnion ] `json:"runsOn"`
130
- TriggeredBy param.Field [[]string ] `json:"triggeredBy"`
126
+ Commands param.Field [EnvironmentAutomationUpsertParamsAutomationsFileServicesCommands ] `json:"commands"`
127
+ Description param.Field [string ] `json:"description"`
128
+ Name param.Field [string ] `json:"name"`
129
+ RunsOn param.Field [EnvironmentAutomationUpsertParamsAutomationsFileServicesRunsOn ] `json:"runsOn"`
130
+ TriggeredBy param.Field [[]string ] `json:"triggeredBy"`
131
131
}
132
132
133
133
func (r EnvironmentAutomationUpsertParamsAutomationsFileServices ) MarshalJSON () (data []byte , err error ) {
@@ -165,92 +165,48 @@ func (r EnvironmentAutomationUpsertParamsAutomationsFileServicesCommands) Marsha
165
165
}
166
166
167
167
type EnvironmentAutomationUpsertParamsAutomationsFileServicesRunsOn struct {
168
- Docker param.Field [interface {} ] `json:"docker"`
168
+ Docker param.Field [EnvironmentAutomationUpsertParamsAutomationsFileServicesRunsOnDocker ] `json:"docker,required "`
169
169
}
170
170
171
171
func (r EnvironmentAutomationUpsertParamsAutomationsFileServicesRunsOn ) MarshalJSON () (data []byte , err error ) {
172
172
return apijson .MarshalRoot (r )
173
173
}
174
174
175
- func (r EnvironmentAutomationUpsertParamsAutomationsFileServicesRunsOn ) implementsEnvironmentAutomationUpsertParamsAutomationsFileServicesRunsOnUnion () {
176
- }
177
-
178
- // Satisfied by
179
- // [EnvironmentAutomationUpsertParamsAutomationsFileServicesRunsOnDocker],
180
- // [EnvironmentAutomationUpsertParamsAutomationsFileServicesRunsOnDocker],
181
- // [EnvironmentAutomationUpsertParamsAutomationsFileServicesRunsOn].
182
- type EnvironmentAutomationUpsertParamsAutomationsFileServicesRunsOnUnion interface {
183
- implementsEnvironmentAutomationUpsertParamsAutomationsFileServicesRunsOnUnion ()
184
- }
185
-
186
175
type EnvironmentAutomationUpsertParamsAutomationsFileServicesRunsOnDocker struct {
187
- Docker param.Field [EnvironmentAutomationUpsertParamsAutomationsFileServicesRunsOnDockerDocker ] `json:"docker,required"`
188
- }
189
-
190
- func (r EnvironmentAutomationUpsertParamsAutomationsFileServicesRunsOnDocker ) MarshalJSON () (data []byte , err error ) {
191
- return apijson .MarshalRoot (r )
192
- }
193
-
194
- func (r EnvironmentAutomationUpsertParamsAutomationsFileServicesRunsOnDocker ) implementsEnvironmentAutomationUpsertParamsAutomationsFileServicesRunsOnUnion () {
195
- }
196
-
197
- type EnvironmentAutomationUpsertParamsAutomationsFileServicesRunsOnDockerDocker struct {
198
176
Environment param.Field [[]string ] `json:"environment"`
199
177
Image param.Field [string ] `json:"image"`
200
178
}
201
179
202
- func (r EnvironmentAutomationUpsertParamsAutomationsFileServicesRunsOnDockerDocker ) MarshalJSON () (data []byte , err error ) {
180
+ func (r EnvironmentAutomationUpsertParamsAutomationsFileServicesRunsOnDocker ) MarshalJSON () (data []byte , err error ) {
203
181
return apijson .MarshalRoot (r )
204
182
}
205
183
206
184
type EnvironmentAutomationUpsertParamsAutomationsFileTasks struct {
207
- Command param.Field [string ] `json:"command"`
208
- DependsOn param.Field [[]string ] `json:"dependsOn"`
209
- Description param.Field [string ] `json:"description"`
210
- Name param.Field [string ] `json:"name"`
211
- RunsOn param.Field [EnvironmentAutomationUpsertParamsAutomationsFileTasksRunsOnUnion ] `json:"runsOn"`
212
- TriggeredBy param.Field [[]string ] `json:"triggeredBy"`
185
+ Command param.Field [string ] `json:"command"`
186
+ DependsOn param.Field [[]string ] `json:"dependsOn"`
187
+ Description param.Field [string ] `json:"description"`
188
+ Name param.Field [string ] `json:"name"`
189
+ RunsOn param.Field [EnvironmentAutomationUpsertParamsAutomationsFileTasksRunsOn ] `json:"runsOn"`
190
+ TriggeredBy param.Field [[]string ] `json:"triggeredBy"`
213
191
}
214
192
215
193
func (r EnvironmentAutomationUpsertParamsAutomationsFileTasks ) MarshalJSON () (data []byte , err error ) {
216
194
return apijson .MarshalRoot (r )
217
195
}
218
196
219
197
type EnvironmentAutomationUpsertParamsAutomationsFileTasksRunsOn struct {
220
- Docker param.Field [interface {} ] `json:"docker"`
198
+ Docker param.Field [EnvironmentAutomationUpsertParamsAutomationsFileTasksRunsOnDocker ] `json:"docker,required "`
221
199
}
222
200
223
201
func (r EnvironmentAutomationUpsertParamsAutomationsFileTasksRunsOn ) MarshalJSON () (data []byte , err error ) {
224
202
return apijson .MarshalRoot (r )
225
203
}
226
204
227
- func (r EnvironmentAutomationUpsertParamsAutomationsFileTasksRunsOn ) implementsEnvironmentAutomationUpsertParamsAutomationsFileTasksRunsOnUnion () {
228
- }
229
-
230
- // Satisfied by
231
- // [EnvironmentAutomationUpsertParamsAutomationsFileTasksRunsOnDocker],
232
- // [EnvironmentAutomationUpsertParamsAutomationsFileTasksRunsOnDocker],
233
- // [EnvironmentAutomationUpsertParamsAutomationsFileTasksRunsOn].
234
- type EnvironmentAutomationUpsertParamsAutomationsFileTasksRunsOnUnion interface {
235
- implementsEnvironmentAutomationUpsertParamsAutomationsFileTasksRunsOnUnion ()
236
- }
237
-
238
205
type EnvironmentAutomationUpsertParamsAutomationsFileTasksRunsOnDocker struct {
239
- Docker param.Field [EnvironmentAutomationUpsertParamsAutomationsFileTasksRunsOnDockerDocker ] `json:"docker,required"`
240
- }
241
-
242
- func (r EnvironmentAutomationUpsertParamsAutomationsFileTasksRunsOnDocker ) MarshalJSON () (data []byte , err error ) {
243
- return apijson .MarshalRoot (r )
244
- }
245
-
246
- func (r EnvironmentAutomationUpsertParamsAutomationsFileTasksRunsOnDocker ) implementsEnvironmentAutomationUpsertParamsAutomationsFileTasksRunsOnUnion () {
247
- }
248
-
249
- type EnvironmentAutomationUpsertParamsAutomationsFileTasksRunsOnDockerDocker struct {
250
206
Environment param.Field [[]string ] `json:"environment"`
251
207
Image param.Field [string ] `json:"image"`
252
208
}
253
209
254
- func (r EnvironmentAutomationUpsertParamsAutomationsFileTasksRunsOnDockerDocker ) MarshalJSON () (data []byte , err error ) {
210
+ func (r EnvironmentAutomationUpsertParamsAutomationsFileTasksRunsOnDocker ) MarshalJSON () (data []byte , err error ) {
255
211
return apijson .MarshalRoot (r )
256
212
}
0 commit comments