Skip to content

Commit 0c29b09

Browse files
feat(api): update via SDK Studio
1 parent d9201bb commit 0c29b09

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+4379
-1871
lines changed

.stats.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
configured_endpoints: 51
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/gitpod%2Fgitpod-b81ab7eb96e1bf876ada508a9db17fdb4b336c92b5bee7196f43a07fdc18c3be.yml
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/gitpod%2Fgitpod-6d44c8845e1deee92c3e6406d5b67aa72616ec5e21ab8c722ae0a2c214c14784.yml

README.md

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,10 @@ import (
3737
"fmt"
3838

3939
"github.com/stainless-sdks/gitpod-go"
40-
"github.com/stainless-sdks/gitpod-go/option"
4140
)
4241

4342
func main() {
44-
client := gitpod.NewClient(
45-
option.WithAuthToken("My Auth Token"), // defaults to os.LookupEnv("GITPOD_API_KEY")
46-
)
43+
client := gitpod.NewClient()
4744
runner, err := client.Runners.New(context.TODO(), gitpod.RunnerNewParams{
4845
ConnectProtocolVersion: gitpod.F(gitpod.RunnerNewParamsConnectProtocolVersion1),
4946
})

api.md

Lines changed: 34 additions & 38 deletions
Large diffs are not rendered by default.

automationsfile.go

Lines changed: 0 additions & 178 deletions
This file was deleted.

client.go

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ package gitpod
55
import (
66
"context"
77
"net/http"
8-
"os"
98

109
"github.com/stainless-sdks/gitpod-go/internal/requestconfig"
1110
"github.com/stainless-sdks/gitpod-go/option"
@@ -16,10 +15,7 @@ import (
1615
// directly, and instead use the [NewClient] method instead.
1716
type Client struct {
1817
Options []option.RequestOption
19-
AutomationsFiles *AutomationsFileService
20-
Editors *EditorService
2118
Environments *EnvironmentService
22-
Identity *IdentityService
2319
EnvironmentClasses *EnvironmentClassService
2420
Organizations *OrganizationService
2521
Projects *ProjectService
@@ -29,22 +25,16 @@ type Client struct {
2925
}
3026

3127
// NewClient generates a new client with the default option read from the
32-
// environment (GITPOD_API_KEY). The option passed in as arguments are applied
33-
// after these default arguments, and all option will be passed down to the
34-
// services and requests that this client makes.
28+
// environment (). The option passed in as arguments are applied after these
29+
// default arguments, and all option will be passed down to the services and
30+
// requests that this client makes.
3531
func NewClient(opts ...option.RequestOption) (r *Client) {
3632
defaults := []option.RequestOption{option.WithEnvironmentProduction()}
37-
if o, ok := os.LookupEnv("GITPOD_API_KEY"); ok {
38-
defaults = append(defaults, option.WithAuthToken(o))
39-
}
4033
opts = append(defaults, opts...)
4134

4235
r = &Client{Options: opts}
4336

44-
r.AutomationsFiles = NewAutomationsFileService(opts...)
45-
r.Editors = NewEditorService(opts...)
4637
r.Environments = NewEnvironmentService(opts...)
47-
r.Identity = NewIdentityService(opts...)
4838
r.EnvironmentClasses = NewEnvironmentClassService(opts...)
4939
r.Organizations = NewOrganizationService(opts...)
5040
r.Projects = NewProjectService(opts...)

0 commit comments

Comments
 (0)