Skip to content

Commit 587e248

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

19 files changed

+1465
-7807
lines changed

.stats.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
configured_endpoints: 64
1+
configured_endpoints: 48
22
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/gitpod%2Fgitpod-a56421de8c29e0197c90fcbce09d837e8736c3a808b36b242b5c317231ce91fe.yml

api.md

Lines changed: 35 additions & 101 deletions
Large diffs are not rendered by default.

client.go

Lines changed: 10 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -14,20 +14,16 @@ import (
1414
// interacting with the gitpod API. You should not instantiate this client
1515
// directly, and instead use the [NewClient] method instead.
1616
type Client struct {
17-
Options []option.RequestOption
18-
Services *ServiceService
19-
AutomationsFiles *AutomationsFileService
20-
Tasks *TaskService
21-
Editors *EditorService
22-
EnvironmentAutomations *EnvironmentAutomationService
23-
Environments *EnvironmentService
24-
EnvironmentClasses *EnvironmentClassService
25-
Organizations *OrganizationService
26-
Projects *ProjectService
27-
RunnerConfigurations *RunnerConfigurationService
28-
RunnerInteractions *RunnerInteractionService
29-
Runners *RunnerService
30-
PersonalAccessTokens *PersonalAccessTokenService
17+
Options []option.RequestOption
18+
AutomationsFiles *AutomationsFileService
19+
Editors *EditorService
20+
Environments *EnvironmentService
21+
EnvironmentClasses *EnvironmentClassService
22+
Organizations *OrganizationService
23+
Projects *ProjectService
24+
RunnerConfigurations *RunnerConfigurationService
25+
Runners *RunnerService
26+
PersonalAccessTokens *PersonalAccessTokenService
3127
}
3228

3329
// NewClient generates a new client with the default option read from the
@@ -40,17 +36,13 @@ func NewClient(opts ...option.RequestOption) (r *Client) {
4036

4137
r = &Client{Options: opts}
4238

43-
r.Services = NewServiceService(opts...)
4439
r.AutomationsFiles = NewAutomationsFileService(opts...)
45-
r.Tasks = NewTaskService(opts...)
4640
r.Editors = NewEditorService(opts...)
47-
r.EnvironmentAutomations = NewEnvironmentAutomationService(opts...)
4841
r.Environments = NewEnvironmentService(opts...)
4942
r.EnvironmentClasses = NewEnvironmentClassService(opts...)
5043
r.Organizations = NewOrganizationService(opts...)
5144
r.Projects = NewProjectService(opts...)
5245
r.RunnerConfigurations = NewRunnerConfigurationService(opts...)
53-
r.RunnerInteractions = NewRunnerInteractionService(opts...)
5446
r.Runners = NewRunnerService(opts...)
5547
r.PersonalAccessTokens = NewPersonalAccessTokenService(opts...)
5648

environment.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@ import (
2424
// automatically. You should not instantiate this service directly, and instead use
2525
// the [NewEnvironmentService] method instead.
2626
type EnvironmentService struct {
27-
Options []option.RequestOption
27+
Options []option.RequestOption
28+
Automations *EnvironmentAutomationService
2829
}
2930

3031
// NewEnvironmentService generates a new service that applies the given options to
@@ -33,6 +34,7 @@ type EnvironmentService struct {
3334
func NewEnvironmentService(opts ...option.RequestOption) (r *EnvironmentService) {
3435
r = &EnvironmentService{}
3536
r.Options = opts
37+
r.Automations = NewEnvironmentAutomationService(opts...)
3638
return
3739
}
3840

environmentautomation.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ import (
1313
// automatically. You should not instantiate this service directly, and instead use
1414
// the [NewEnvironmentAutomationService] method instead.
1515
type EnvironmentAutomationService struct {
16-
Options []option.RequestOption
17-
Tasks *EnvironmentAutomationTaskService
18-
TaskExecutions *EnvironmentAutomationTaskExecutionService
16+
Options []option.RequestOption
17+
Tasks *EnvironmentAutomationTaskService
18+
Services *EnvironmentAutomationServiceService
1919
}
2020

2121
// NewEnvironmentAutomationService generates a new service that applies the given
@@ -25,6 +25,6 @@ func NewEnvironmentAutomationService(opts ...option.RequestOption) (r *Environme
2525
r = &EnvironmentAutomationService{}
2626
r.Options = opts
2727
r.Tasks = NewEnvironmentAutomationTaskService(opts...)
28-
r.TaskExecutions = NewEnvironmentAutomationTaskExecutionService(opts...)
28+
r.Services = NewEnvironmentAutomationServiceService(opts...)
2929
return
3030
}

0 commit comments

Comments
 (0)