Skip to content

Commit 121a64f

Browse files
feat(api): update via SDK Studio
1 parent efeae7c commit 121a64f

30 files changed

+3112
-5013
lines changed

Diff for: .stats.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
configured_endpoints: 71
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/gitpod%2Fgitpod-e382faa61767fc46a2a12e401bc7504f3b8925829c6ecaea5b2553281a5c4e7a.yml
1+
configured_endpoints: 64
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/gitpod%2Fgitpod-a56421de8c29e0197c90fcbce09d837e8736c3a808b36b242b5c317231ce91fe.yml

Diff for: api.md

+17-21
Large diffs are not rendered by default.

Diff for: automationsfile.go

+23-9
Original file line numberDiff line numberDiff line change
@@ -115,10 +115,11 @@ func (r AutomationsFileUpsertParamsAutomationsFile) MarshalJSON() (data []byte,
115115
}
116116

117117
type AutomationsFileUpsertParamsAutomationsFileServices struct {
118-
Commands param.Field[AutomationsFileUpsertParamsAutomationsFileServicesCommands] `json:"commands"`
119-
Description param.Field[string] `json:"description"`
120-
Name param.Field[string] `json:"name"`
121-
TriggeredBy param.Field[[]string] `json:"triggeredBy"`
118+
Commands param.Field[AutomationsFileUpsertParamsAutomationsFileServicesCommands] `json:"commands"`
119+
Description param.Field[string] `json:"description"`
120+
Name param.Field[string] `json:"name"`
121+
RunsOn param.Field[AutomationsFileUpsertParamsAutomationsFileServicesRunsOnUnion] `json:"runsOn"`
122+
TriggeredBy param.Field[[]string] `json:"triggeredBy"`
122123
}
123124

124125
func (r AutomationsFileUpsertParamsAutomationsFileServices) MarshalJSON() (data []byte, err error) {
@@ -151,14 +152,27 @@ func (r AutomationsFileUpsertParamsAutomationsFileServicesCommands) MarshalJSON(
151152
return apijson.MarshalRoot(r)
152153
}
153154

155+
// Satisfied by [AutomationsFileUpsertParamsAutomationsFileServicesRunsOnUnknown],
156+
// [AutomationsFileUpsertParamsAutomationsFileServicesRunsOnUnknown].
157+
type AutomationsFileUpsertParamsAutomationsFileServicesRunsOnUnion interface {
158+
implementsAutomationsFileUpsertParamsAutomationsFileServicesRunsOnUnion()
159+
}
160+
154161
type AutomationsFileUpsertParamsAutomationsFileTasks struct {
155-
Command param.Field[string] `json:"command"`
156-
DependsOn param.Field[[]string] `json:"dependsOn"`
157-
Description param.Field[string] `json:"description"`
158-
Name param.Field[string] `json:"name"`
159-
TriggeredBy param.Field[[]string] `json:"triggeredBy"`
162+
Command param.Field[string] `json:"command"`
163+
DependsOn param.Field[[]string] `json:"dependsOn"`
164+
Description param.Field[string] `json:"description"`
165+
Name param.Field[string] `json:"name"`
166+
RunsOn param.Field[AutomationsFileUpsertParamsAutomationsFileTasksRunsOnUnion] `json:"runsOn"`
167+
TriggeredBy param.Field[[]string] `json:"triggeredBy"`
160168
}
161169

162170
func (r AutomationsFileUpsertParamsAutomationsFileTasks) MarshalJSON() (data []byte, err error) {
163171
return apijson.MarshalRoot(r)
164172
}
173+
174+
// Satisfied by [AutomationsFileUpsertParamsAutomationsFileTasksRunsOnUnknown],
175+
// [AutomationsFileUpsertParamsAutomationsFileTasksRunsOnUnknown].
176+
type AutomationsFileUpsertParamsAutomationsFileTasksRunsOnUnion interface {
177+
implementsAutomationsFileUpsertParamsAutomationsFileTasksRunsOnUnion()
178+
}

Diff for: automationsfile_test.go

+2
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ func TestAutomationsFileUpsertWithOptionalParams(t *testing.T) {
3636
}),
3737
Description: gitpod.F("description"),
3838
Name: gitpod.F("x"),
39+
RunsOn: gitpod.F[gitpod.AutomationsFileUpsertParamsAutomationsFileServicesRunsOnUnion](gitpod.AutomationsFileUpsertParamsAutomationsFileServicesRunsOnUnknown(map[string]interface{}{})),
3940
TriggeredBy: gitpod.F([]string{"string"}),
4041
},
4142
}),
@@ -45,6 +46,7 @@ func TestAutomationsFileUpsertWithOptionalParams(t *testing.T) {
4546
DependsOn: gitpod.F([]string{"string"}),
4647
Description: gitpod.F("description"),
4748
Name: gitpod.F("x"),
49+
RunsOn: gitpod.F[gitpod.AutomationsFileUpsertParamsAutomationsFileTasksRunsOnUnion](gitpod.AutomationsFileUpsertParamsAutomationsFileTasksRunsOnUnknown(map[string]interface{}{})),
4850
TriggeredBy: gitpod.F([]string{"string"}),
4951
},
5052
}),

Diff for: client.go

+2
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ type Client struct {
1818
Services *ServiceService
1919
AutomationsFiles *AutomationsFileService
2020
Tasks *TaskService
21+
Editors *EditorService
2122
EnvironmentAutomations *EnvironmentAutomationService
2223
Environments *EnvironmentService
2324
EnvironmentClasses *EnvironmentClassService
@@ -42,6 +43,7 @@ func NewClient(opts ...option.RequestOption) (r *Client) {
4243
r.Services = NewServiceService(opts...)
4344
r.AutomationsFiles = NewAutomationsFileService(opts...)
4445
r.Tasks = NewTaskService(opts...)
46+
r.Editors = NewEditorService(opts...)
4547
r.EnvironmentAutomations = NewEnvironmentAutomationService(opts...)
4648
r.Environments = NewEnvironmentService(opts...)
4749
r.EnvironmentClasses = NewEnvironmentClassService(opts...)

0 commit comments

Comments
 (0)