@@ -123,11 +123,11 @@ func (r EnvironmentAutomationUpsertParamsAutomationsFile) MarshalJSON() (data []
123123}
124124
125125type 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 [EnvironmentAutomationUpsertParamsAutomationsFileServicesRunsOn ] `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 [EnvironmentAutomationUpsertParamsAutomationsFileServicesRunsOnUnion ] `json:"runsOn"`
130+ TriggeredBy param.Field [[]string ] `json:"triggeredBy"`
131131}
132132
133133func (r EnvironmentAutomationUpsertParamsAutomationsFileServices ) MarshalJSON () (data []byte , err error ) {
@@ -165,48 +165,92 @@ func (r EnvironmentAutomationUpsertParamsAutomationsFileServicesCommands) Marsha
165165}
166166
167167type EnvironmentAutomationUpsertParamsAutomationsFileServicesRunsOn struct {
168- Docker param.Field [EnvironmentAutomationUpsertParamsAutomationsFileServicesRunsOnDocker ] `json:"docker,required "`
168+ Docker param.Field [interface {} ] `json:"docker"`
169169}
170170
171171func (r EnvironmentAutomationUpsertParamsAutomationsFileServicesRunsOn ) MarshalJSON () (data []byte , err error ) {
172172 return apijson .MarshalRoot (r )
173173}
174174
175+ func (r EnvironmentAutomationUpsertParamsAutomationsFileServicesRunsOn ) implementsEnvironmentAutomationUpsertParamsAutomationsFileServicesRunsOnUnion () {
176+ }
177+
178+ // Satisfied by
179+ // [EnvironmentAutomationUpsertParamsAutomationsFileServicesRunsOnDocker],
180+ // [EnvironmentAutomationUpsertParamsAutomationsFileServicesRunsOnDocker],
181+ // [EnvironmentAutomationUpsertParamsAutomationsFileServicesRunsOn].
182+ type EnvironmentAutomationUpsertParamsAutomationsFileServicesRunsOnUnion interface {
183+ implementsEnvironmentAutomationUpsertParamsAutomationsFileServicesRunsOnUnion ()
184+ }
185+
175186type 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 {
176198 Environment param.Field [[]string ] `json:"environment"`
177199 Image param.Field [string ] `json:"image"`
178200}
179201
180- func (r EnvironmentAutomationUpsertParamsAutomationsFileServicesRunsOnDocker ) MarshalJSON () (data []byte , err error ) {
202+ func (r EnvironmentAutomationUpsertParamsAutomationsFileServicesRunsOnDockerDocker ) MarshalJSON () (data []byte , err error ) {
181203 return apijson .MarshalRoot (r )
182204}
183205
184206type EnvironmentAutomationUpsertParamsAutomationsFileTasks struct {
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"`
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"`
191213}
192214
193215func (r EnvironmentAutomationUpsertParamsAutomationsFileTasks ) MarshalJSON () (data []byte , err error ) {
194216 return apijson .MarshalRoot (r )
195217}
196218
197219type EnvironmentAutomationUpsertParamsAutomationsFileTasksRunsOn struct {
198- Docker param.Field [EnvironmentAutomationUpsertParamsAutomationsFileTasksRunsOnDocker ] `json:"docker,required "`
220+ Docker param.Field [interface {} ] `json:"docker"`
199221}
200222
201223func (r EnvironmentAutomationUpsertParamsAutomationsFileTasksRunsOn ) MarshalJSON () (data []byte , err error ) {
202224 return apijson .MarshalRoot (r )
203225}
204226
227+ func (r EnvironmentAutomationUpsertParamsAutomationsFileTasksRunsOn ) implementsEnvironmentAutomationUpsertParamsAutomationsFileTasksRunsOnUnion () {
228+ }
229+
230+ // Satisfied by
231+ // [EnvironmentAutomationUpsertParamsAutomationsFileTasksRunsOnDocker],
232+ // [EnvironmentAutomationUpsertParamsAutomationsFileTasksRunsOnDocker],
233+ // [EnvironmentAutomationUpsertParamsAutomationsFileTasksRunsOn].
234+ type EnvironmentAutomationUpsertParamsAutomationsFileTasksRunsOnUnion interface {
235+ implementsEnvironmentAutomationUpsertParamsAutomationsFileTasksRunsOnUnion ()
236+ }
237+
205238type 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 {
206250 Environment param.Field [[]string ] `json:"environment"`
207251 Image param.Field [string ] `json:"image"`
208252}
209253
210- func (r EnvironmentAutomationUpsertParamsAutomationsFileTasksRunsOnDocker ) MarshalJSON () (data []byte , err error ) {
254+ func (r EnvironmentAutomationUpsertParamsAutomationsFileTasksRunsOnDockerDocker ) MarshalJSON () (data []byte , err error ) {
211255 return apijson .MarshalRoot (r )
212256}
0 commit comments