@@ -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 [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"`
131131}
132132
133133func (r EnvironmentAutomationUpsertParamsAutomationsFileServices ) MarshalJSON () (data []byte , err error ) {
@@ -165,92 +165,48 @@ func (r EnvironmentAutomationUpsertParamsAutomationsFileServicesCommands) Marsha
165165}
166166
167167type EnvironmentAutomationUpsertParamsAutomationsFileServicesRunsOn struct {
168- Docker param.Field [interface {} ] `json:"docker"`
168+ Docker param.Field [EnvironmentAutomationUpsertParamsAutomationsFileServicesRunsOnDocker ] `json:"docker,required "`
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-
186175type 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 {
198176 Environment param.Field [[]string ] `json:"environment"`
199177 Image param.Field [string ] `json:"image"`
200178}
201179
202- func (r EnvironmentAutomationUpsertParamsAutomationsFileServicesRunsOnDockerDocker ) MarshalJSON () (data []byte , err error ) {
180+ func (r EnvironmentAutomationUpsertParamsAutomationsFileServicesRunsOnDocker ) MarshalJSON () (data []byte , err error ) {
203181 return apijson .MarshalRoot (r )
204182}
205183
206184type 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"`
213191}
214192
215193func (r EnvironmentAutomationUpsertParamsAutomationsFileTasks ) MarshalJSON () (data []byte , err error ) {
216194 return apijson .MarshalRoot (r )
217195}
218196
219197type EnvironmentAutomationUpsertParamsAutomationsFileTasksRunsOn struct {
220- Docker param.Field [interface {} ] `json:"docker"`
198+ Docker param.Field [EnvironmentAutomationUpsertParamsAutomationsFileTasksRunsOnDocker ] `json:"docker,required "`
221199}
222200
223201func (r EnvironmentAutomationUpsertParamsAutomationsFileTasksRunsOn ) MarshalJSON () (data []byte , err error ) {
224202 return apijson .MarshalRoot (r )
225203}
226204
227- func (r EnvironmentAutomationUpsertParamsAutomationsFileTasksRunsOn ) implementsEnvironmentAutomationUpsertParamsAutomationsFileTasksRunsOnUnion () {
228- }
229-
230- // Satisfied by
231- // [EnvironmentAutomationUpsertParamsAutomationsFileTasksRunsOnDocker],
232- // [EnvironmentAutomationUpsertParamsAutomationsFileTasksRunsOnDocker],
233- // [EnvironmentAutomationUpsertParamsAutomationsFileTasksRunsOn].
234- type EnvironmentAutomationUpsertParamsAutomationsFileTasksRunsOnUnion interface {
235- implementsEnvironmentAutomationUpsertParamsAutomationsFileTasksRunsOnUnion ()
236- }
237-
238205type 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 {
250206 Environment param.Field [[]string ] `json:"environment"`
251207 Image param.Field [string ] `json:"image"`
252208}
253209
254- func (r EnvironmentAutomationUpsertParamsAutomationsFileTasksRunsOnDockerDocker ) MarshalJSON () (data []byte , err error ) {
210+ func (r EnvironmentAutomationUpsertParamsAutomationsFileTasksRunsOnDocker ) MarshalJSON () (data []byte , err error ) {
255211 return apijson .MarshalRoot (r )
256212}
0 commit comments