Skip to content

Commit 2e48633

Browse files
feat(api): update via SDK Studio
1 parent e2267e2 commit 2e48633

31 files changed

+7974
-605
lines changed

.stats.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
configured_endpoints: 54
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/gitpod%2Fgitpod-6d44c8845e1deee92c3e6406d5b67aa72616ec5e21ab8c722ae0a2c214c14784.yml
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/gitpod%2Fgitpod-7e374f66c50c3d639f586ea9e146d57787b1b72a9edf1c552ba67ddd5bd4b190.yml

api.md

+2-10
Original file line numberDiff line numberDiff line change
@@ -109,23 +109,15 @@ Methods:
109109
Response Types:
110110

111111
- <a href="https://pkg.go.dev/github.com/stainless-sdks/gitpod-go">gitpod</a>.<a href="https://pkg.go.dev/github.com/stainless-sdks/gitpod-go#OrganizationLeaveResponse">OrganizationLeaveResponse</a>
112+
- <a href="https://pkg.go.dev/github.com/stainless-sdks/gitpod-go">gitpod</a>.<a href="https://pkg.go.dev/github.com/stainless-sdks/gitpod-go#OrganizationListMembersResponse">OrganizationListMembersResponse</a>
112113
- <a href="https://pkg.go.dev/github.com/stainless-sdks/gitpod-go">gitpod</a>.<a href="https://pkg.go.dev/github.com/stainless-sdks/gitpod-go#OrganizationSetRoleResponse">OrganizationSetRoleResponse</a>
113114

114115
Methods:
115116

116117
- <code title="post /gitpod.v1.OrganizationService/LeaveOrganization">client.Organizations.<a href="https://pkg.go.dev/github.com/stainless-sdks/gitpod-go#OrganizationService.Leave">Leave</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, params <a href="https://pkg.go.dev/github.com/stainless-sdks/gitpod-go">gitpod</a>.<a href="https://pkg.go.dev/github.com/stainless-sdks/gitpod-go#OrganizationLeaveParams">OrganizationLeaveParams</a>) (<a href="https://pkg.go.dev/github.com/stainless-sdks/gitpod-go">gitpod</a>.<a href="https://pkg.go.dev/github.com/stainless-sdks/gitpod-go#OrganizationLeaveResponse">OrganizationLeaveResponse</a>, <a href="https://pkg.go.dev/builtin#error">error</a>)</code>
118+
- <code title="post /gitpod.v1.OrganizationService/ListMembers">client.Organizations.<a href="https://pkg.go.dev/github.com/stainless-sdks/gitpod-go#OrganizationService.ListMembers">ListMembers</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, params <a href="https://pkg.go.dev/github.com/stainless-sdks/gitpod-go">gitpod</a>.<a href="https://pkg.go.dev/github.com/stainless-sdks/gitpod-go#OrganizationListMembersParams">OrganizationListMembersParams</a>) (<a href="https://pkg.go.dev/github.com/stainless-sdks/gitpod-go">gitpod</a>.<a href="https://pkg.go.dev/github.com/stainless-sdks/gitpod-go#OrganizationListMembersResponse">OrganizationListMembersResponse</a>, <a href="https://pkg.go.dev/builtin#error">error</a>)</code>
117119
- <code title="post /gitpod.v1.OrganizationService/SetRole">client.Organizations.<a href="https://pkg.go.dev/github.com/stainless-sdks/gitpod-go#OrganizationService.SetRole">SetRole</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, params <a href="https://pkg.go.dev/github.com/stainless-sdks/gitpod-go">gitpod</a>.<a href="https://pkg.go.dev/github.com/stainless-sdks/gitpod-go#OrganizationSetRoleParams">OrganizationSetRoleParams</a>) (<a href="https://pkg.go.dev/github.com/stainless-sdks/gitpod-go">gitpod</a>.<a href="https://pkg.go.dev/github.com/stainless-sdks/gitpod-go#OrganizationSetRoleResponse">OrganizationSetRoleResponse</a>, <a href="https://pkg.go.dev/builtin#error">error</a>)</code>
118120

119-
## Members
120-
121-
Response Types:
122-
123-
- <a href="https://pkg.go.dev/github.com/stainless-sdks/gitpod-go">gitpod</a>.<a href="https://pkg.go.dev/github.com/stainless-sdks/gitpod-go#OrganizationMemberListResponse">OrganizationMemberListResponse</a>
124-
125-
Methods:
126-
127-
- <code title="post /gitpod.v1.OrganizationService/ListMembers">client.Organizations.Members.<a href="https://pkg.go.dev/github.com/stainless-sdks/gitpod-go#OrganizationMemberService.List">List</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, params <a href="https://pkg.go.dev/github.com/stainless-sdks/gitpod-go">gitpod</a>.<a href="https://pkg.go.dev/github.com/stainless-sdks/gitpod-go#OrganizationMemberListParams">OrganizationMemberListParams</a>) (<a href="https://pkg.go.dev/github.com/stainless-sdks/gitpod-go">gitpod</a>.<a href="https://pkg.go.dev/github.com/stainless-sdks/gitpod-go#OrganizationMemberListResponse">OrganizationMemberListResponse</a>, <a href="https://pkg.go.dev/builtin#error">error</a>)</code>
128-
129121
## Invite
130122

131123
Response Types:

environment.go

+1,814-64
Large diffs are not rendered by default.

environment_test.go

+24-4
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,11 @@ func TestEnvironmentNewWithOptionalParams(t *testing.T) {
3737
GitEmail: gitpod.F("gitEmail"),
3838
GitUsername: gitpod.F("gitUsername"),
3939
Initializer: gitpod.F(gitpod.EnvironmentNewParamsSpecContentInitializer{
40-
Specs: gitpod.F([]gitpod.EnvironmentNewParamsSpecContentInitializerSpec{{}}),
40+
Specs: gitpod.F([]gitpod.EnvironmentNewParamsSpecContentInitializerSpecUnion{gitpod.EnvironmentNewParamsSpecContentInitializerSpecsContextURL{
41+
ContextURL: gitpod.F(gitpod.EnvironmentNewParamsSpecContentInitializerSpecsContextURLContextURL{
42+
URL: gitpod.F("https://example.com"),
43+
}),
44+
}}),
4145
}),
4246
Session: gitpod.F("session"),
4347
}),
@@ -55,7 +59,13 @@ func TestEnvironmentNewWithOptionalParams(t *testing.T) {
5559
Name: gitpod.F("x"),
5660
Port: gitpod.F(int64(1)),
5761
}}),
58-
Secrets: gitpod.F([]gitpod.EnvironmentNewParamsSpecSecret{{}}),
62+
Secrets: gitpod.F([]gitpod.EnvironmentNewParamsSpecSecretUnion{gitpod.EnvironmentNewParamsSpecSecretsEnvironmentVariable{
63+
EnvironmentVariable: gitpod.F("environmentVariable"),
64+
Name: gitpod.F("name"),
65+
Session: gitpod.F("session"),
66+
Source: gitpod.F("source"),
67+
SourceRef: gitpod.F("sourceRef"),
68+
}}),
5969
SpecVersion: gitpod.F("specVersion"),
6070
SSHPublicKeys: gitpod.F([]gitpod.EnvironmentNewParamsSpecSSHPublicKey{{
6171
ID: gitpod.F("id"),
@@ -164,7 +174,11 @@ func TestEnvironmentNewFromProjectWithOptionalParams(t *testing.T) {
164174
GitEmail: gitpod.F("gitEmail"),
165175
GitUsername: gitpod.F("gitUsername"),
166176
Initializer: gitpod.F(gitpod.EnvironmentNewFromProjectParamsSpecContentInitializer{
167-
Specs: gitpod.F([]gitpod.EnvironmentNewFromProjectParamsSpecContentInitializerSpec{{}}),
177+
Specs: gitpod.F([]gitpod.EnvironmentNewFromProjectParamsSpecContentInitializerSpecUnion{gitpod.EnvironmentNewFromProjectParamsSpecContentInitializerSpecsContextURL{
178+
ContextURL: gitpod.F(gitpod.EnvironmentNewFromProjectParamsSpecContentInitializerSpecsContextURLContextURL{
179+
URL: gitpod.F("https://example.com"),
180+
}),
181+
}}),
168182
}),
169183
Session: gitpod.F("session"),
170184
}),
@@ -182,7 +196,13 @@ func TestEnvironmentNewFromProjectWithOptionalParams(t *testing.T) {
182196
Name: gitpod.F("x"),
183197
Port: gitpod.F(int64(1)),
184198
}}),
185-
Secrets: gitpod.F([]gitpod.EnvironmentNewFromProjectParamsSpecSecret{{}}),
199+
Secrets: gitpod.F([]gitpod.EnvironmentNewFromProjectParamsSpecSecretUnion{gitpod.EnvironmentNewFromProjectParamsSpecSecretsEnvironmentVariable{
200+
EnvironmentVariable: gitpod.F("environmentVariable"),
201+
Name: gitpod.F("name"),
202+
Session: gitpod.F("session"),
203+
Source: gitpod.F("source"),
204+
SourceRef: gitpod.F("sourceRef"),
205+
}}),
186206
SpecVersion: gitpod.F("specVersion"),
187207
SSHPublicKeys: gitpod.F([]gitpod.EnvironmentNewFromProjectParamsSpecSSHPublicKey{{
188208
ID: gitpod.F("id"),

environmentautomation.go

+41-7
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ type EnvironmentAutomationUpsertParamsAutomationsFileServices struct {
128128
Commands param.Field[EnvironmentAutomationUpsertParamsAutomationsFileServicesCommands] `json:"commands"`
129129
Description param.Field[string] `json:"description"`
130130
Name param.Field[string] `json:"name"`
131-
RunsOn param.Field[interface{}] `json:"runsOn"`
131+
RunsOn param.Field[EnvironmentAutomationUpsertParamsAutomationsFileServicesRunsOn] `json:"runsOn"`
132132
TriggeredBy param.Field[[]string] `json:"triggeredBy"`
133133
}
134134

@@ -166,15 +166,49 @@ func (r EnvironmentAutomationUpsertParamsAutomationsFileServicesCommands) Marsha
166166
return apijson.MarshalRoot(r)
167167
}
168168

169+
type EnvironmentAutomationUpsertParamsAutomationsFileServicesRunsOn struct {
170+
Docker param.Field[EnvironmentAutomationUpsertParamsAutomationsFileServicesRunsOnDocker] `json:"docker,required"`
171+
}
172+
173+
func (r EnvironmentAutomationUpsertParamsAutomationsFileServicesRunsOn) MarshalJSON() (data []byte, err error) {
174+
return apijson.MarshalRoot(r)
175+
}
176+
177+
type EnvironmentAutomationUpsertParamsAutomationsFileServicesRunsOnDocker struct {
178+
Environment param.Field[[]string] `json:"environment"`
179+
Image param.Field[string] `json:"image"`
180+
}
181+
182+
func (r EnvironmentAutomationUpsertParamsAutomationsFileServicesRunsOnDocker) MarshalJSON() (data []byte, err error) {
183+
return apijson.MarshalRoot(r)
184+
}
185+
169186
type EnvironmentAutomationUpsertParamsAutomationsFileTasks struct {
170-
Command param.Field[string] `json:"command"`
171-
DependsOn param.Field[[]string] `json:"dependsOn"`
172-
Description param.Field[string] `json:"description"`
173-
Name param.Field[string] `json:"name"`
174-
RunsOn param.Field[interface{}] `json:"runsOn"`
175-
TriggeredBy param.Field[[]string] `json:"triggeredBy"`
187+
Command param.Field[string] `json:"command"`
188+
DependsOn param.Field[[]string] `json:"dependsOn"`
189+
Description param.Field[string] `json:"description"`
190+
Name param.Field[string] `json:"name"`
191+
RunsOn param.Field[EnvironmentAutomationUpsertParamsAutomationsFileTasksRunsOn] `json:"runsOn"`
192+
TriggeredBy param.Field[[]string] `json:"triggeredBy"`
176193
}
177194

178195
func (r EnvironmentAutomationUpsertParamsAutomationsFileTasks) MarshalJSON() (data []byte, err error) {
179196
return apijson.MarshalRoot(r)
180197
}
198+
199+
type EnvironmentAutomationUpsertParamsAutomationsFileTasksRunsOn struct {
200+
Docker param.Field[EnvironmentAutomationUpsertParamsAutomationsFileTasksRunsOnDocker] `json:"docker,required"`
201+
}
202+
203+
func (r EnvironmentAutomationUpsertParamsAutomationsFileTasksRunsOn) MarshalJSON() (data []byte, err error) {
204+
return apijson.MarshalRoot(r)
205+
}
206+
207+
type EnvironmentAutomationUpsertParamsAutomationsFileTasksRunsOnDocker struct {
208+
Environment param.Field[[]string] `json:"environment"`
209+
Image param.Field[string] `json:"image"`
210+
}
211+
212+
func (r EnvironmentAutomationUpsertParamsAutomationsFileTasksRunsOnDocker) MarshalJSON() (data []byte, err error) {
213+
return apijson.MarshalRoot(r)
214+
}

environmentautomation_test.go

+12-2
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,12 @@ func TestEnvironmentAutomationUpsertWithOptionalParams(t *testing.T) {
3737
}),
3838
Description: gitpod.F("description"),
3939
Name: gitpod.F("x"),
40-
RunsOn: gitpod.F[any](map[string]interface{}{}),
40+
RunsOn: gitpod.F(gitpod.EnvironmentAutomationUpsertParamsAutomationsFileServicesRunsOn{
41+
Docker: gitpod.F(gitpod.EnvironmentAutomationUpsertParamsAutomationsFileServicesRunsOnDocker{
42+
Environment: gitpod.F([]string{"string"}),
43+
Image: gitpod.F("x"),
44+
}),
45+
}),
4146
TriggeredBy: gitpod.F([]string{"string"}),
4247
},
4348
}),
@@ -47,7 +52,12 @@ func TestEnvironmentAutomationUpsertWithOptionalParams(t *testing.T) {
4752
DependsOn: gitpod.F([]string{"string"}),
4853
Description: gitpod.F("description"),
4954
Name: gitpod.F("x"),
50-
RunsOn: gitpod.F[any](map[string]interface{}{}),
55+
RunsOn: gitpod.F(gitpod.EnvironmentAutomationUpsertParamsAutomationsFileTasksRunsOn{
56+
Docker: gitpod.F(gitpod.EnvironmentAutomationUpsertParamsAutomationsFileTasksRunsOnDocker{
57+
Environment: gitpod.F([]string{"string"}),
58+
Image: gitpod.F("x"),
59+
}),
60+
}),
5161
TriggeredBy: gitpod.F([]string{"string"}),
5262
},
5363
}),

0 commit comments

Comments
 (0)