Skip to content

Commit 9ea005e

Browse files
feat(api): update to latest changes (#10)
1 parent 85c3877 commit 9ea005e

Some content is hidden

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

50 files changed

+4654
-24604
lines changed

.stats.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
configured_endpoints: 106
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/gitpod%2Fgitpod-2410f189970eeb715e79976f13eeca7259b602809e27a84820da8c794dcf00cb.yml
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/gitpod%2Fgitpod-da4c36c6b1d973f481abb8eefdeb085d88eaf37eeaba30d276cb3daa405b6f0c.yml

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -165,8 +165,8 @@ You can use `.ListAutoPaging()` methods to iterate through items across all page
165165
iter := client.Environments.Automations.Services.ListAutoPaging(context.TODO(), gitpod.EnvironmentAutomationServiceListParams{})
166166
// Automatically fetches more pages as needed.
167167
for iter.Next() {
168-
environmentAutomationServiceListResponse := iter.Current()
169-
fmt.Printf("%+v\n", environmentAutomationServiceListResponse)
168+
service := iter.Current()
169+
fmt.Printf("%+v\n", service)
170170
}
171171
if err := iter.Err(); err != nil {
172172
panic(err.Error())

account.go

+312-52
Large diffs are not rendered by default.

account_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,8 @@ func TestAccountGetSSOLoginURLWithOptionalParams(t *testing.T) {
7777
option.WithBearerToken("My Bearer Token"),
7878
)
7979
_, err := client.Accounts.GetSSOLoginURL(context.TODO(), gitpod.AccountGetSSOLoginURLParams{
80-
ReturnTo: gitpod.F("https://example.com"),
8180
Email: gitpod.F("[email protected]"),
81+
ReturnTo: gitpod.F("https://example.com"),
8282
})
8383
if err != nil {
8484
var apierr *gitpod.Error

aliases.go

+140
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,146 @@ package gitpod
44

55
import (
66
"github.com/gitpod-io/flex-sdk-go/internal/apierror"
7+
"github.com/gitpod-io/flex-sdk-go/shared"
78
)
89

910
type Error = apierror.Error
11+
12+
// An AutomationTrigger represents a trigger for an automation action. The
13+
// `post_environment_start` field indicates that the automation should be triggered
14+
// after the environment has started. The `post_devcontainer_start` field indicates
15+
// that the automation should be triggered after the dev container has started.
16+
//
17+
// This is an alias to an internal type.
18+
type AutomationTrigger = shared.AutomationTrigger
19+
20+
// An AutomationTrigger represents a trigger for an automation action. The
21+
// `post_environment_start` field indicates that the automation should be triggered
22+
// after the environment has started. The `post_devcontainer_start` field indicates
23+
// that the automation should be triggered after the dev container has started.
24+
//
25+
// This is an alias to an internal type.
26+
type AutomationTriggerParam = shared.AutomationTriggerParam
27+
28+
// This is an alias to an internal type.
29+
type EnvironmentClass = shared.EnvironmentClass
30+
31+
// This is an alias to an internal type.
32+
type EnvironmentClassParam = shared.EnvironmentClassParam
33+
34+
// This is an alias to an internal type.
35+
type FieldValue = shared.FieldValue
36+
37+
// This is an alias to an internal type.
38+
type FieldValueParam = shared.FieldValueParam
39+
40+
// This is an alias to an internal type.
41+
type OrganizationRole = shared.OrganizationRole
42+
43+
// This is an alias to an internal value.
44+
const OrganizationRoleOrganizationRoleUnspecified = shared.OrganizationRoleOrganizationRoleUnspecified
45+
46+
// This is an alias to an internal value.
47+
const OrganizationRoleOrganizationRoleAdmin = shared.OrganizationRoleOrganizationRoleAdmin
48+
49+
// This is an alias to an internal value.
50+
const OrganizationRoleOrganizationRoleMember = shared.OrganizationRoleOrganizationRoleMember
51+
52+
// This is an alias to an internal type.
53+
type Principal = shared.Principal
54+
55+
// This is an alias to an internal value.
56+
const PrincipalPrincipalUnspecified = shared.PrincipalPrincipalUnspecified
57+
58+
// This is an alias to an internal value.
59+
const PrincipalPrincipalAccount = shared.PrincipalPrincipalAccount
60+
61+
// This is an alias to an internal value.
62+
const PrincipalPrincipalUser = shared.PrincipalPrincipalUser
63+
64+
// This is an alias to an internal value.
65+
const PrincipalPrincipalRunner = shared.PrincipalPrincipalRunner
66+
67+
// This is an alias to an internal value.
68+
const PrincipalPrincipalEnvironment = shared.PrincipalPrincipalEnvironment
69+
70+
// This is an alias to an internal value.
71+
const PrincipalPrincipalServiceAccount = shared.PrincipalPrincipalServiceAccount
72+
73+
// This is an alias to an internal type.
74+
type RunsOn = shared.RunsOn
75+
76+
// This is an alias to an internal type.
77+
type RunsOnDocker = shared.RunsOnDocker
78+
79+
// This is an alias to an internal type.
80+
type RunsOnParam = shared.RunsOnParam
81+
82+
// This is an alias to an internal type.
83+
type RunsOnDockerParam = shared.RunsOnDockerParam
84+
85+
// This is an alias to an internal type.
86+
type Subject = shared.Subject
87+
88+
// This is an alias to an internal type.
89+
type SubjectParam = shared.SubjectParam
90+
91+
// This is an alias to an internal type.
92+
type TaskExecution = shared.TaskExecution
93+
94+
// This is an alias to an internal type.
95+
type TaskExecutionMetadata = shared.TaskExecutionMetadata
96+
97+
// This is an alias to an internal type.
98+
type TaskExecutionPhase = shared.TaskExecutionPhase
99+
100+
// This is an alias to an internal value.
101+
const TaskExecutionPhaseTaskExecutionPhaseUnspecified = shared.TaskExecutionPhaseTaskExecutionPhaseUnspecified
102+
103+
// This is an alias to an internal value.
104+
const TaskExecutionPhaseTaskExecutionPhasePending = shared.TaskExecutionPhaseTaskExecutionPhasePending
105+
106+
// This is an alias to an internal value.
107+
const TaskExecutionPhaseTaskExecutionPhaseRunning = shared.TaskExecutionPhaseTaskExecutionPhaseRunning
108+
109+
// This is an alias to an internal value.
110+
const TaskExecutionPhaseTaskExecutionPhaseSucceeded = shared.TaskExecutionPhaseTaskExecutionPhaseSucceeded
111+
112+
// This is an alias to an internal value.
113+
const TaskExecutionPhaseTaskExecutionPhaseFailed = shared.TaskExecutionPhaseTaskExecutionPhaseFailed
114+
115+
// This is an alias to an internal value.
116+
const TaskExecutionPhaseTaskExecutionPhaseStopped = shared.TaskExecutionPhaseTaskExecutionPhaseStopped
117+
118+
// This is an alias to an internal type.
119+
type TaskExecutionSpec = shared.TaskExecutionSpec
120+
121+
// This is an alias to an internal type.
122+
type TaskExecutionSpecPlan = shared.TaskExecutionSpecPlan
123+
124+
// This is an alias to an internal type.
125+
type TaskExecutionSpecPlanStep = shared.TaskExecutionSpecPlanStep
126+
127+
// This is an alias to an internal type.
128+
type TaskExecutionSpecPlanStepsTask = shared.TaskExecutionSpecPlanStepsTask
129+
130+
// This is an alias to an internal type.
131+
type TaskExecutionStatus = shared.TaskExecutionStatus
132+
133+
// This is an alias to an internal type.
134+
type TaskExecutionStatusStep = shared.TaskExecutionStatusStep
135+
136+
// This is an alias to an internal type.
137+
type UserStatus = shared.UserStatus
138+
139+
// This is an alias to an internal value.
140+
const UserStatusUserStatusUnspecified = shared.UserStatusUserStatusUnspecified
141+
142+
// This is an alias to an internal value.
143+
const UserStatusUserStatusActive = shared.UserStatusUserStatusActive
144+
145+
// This is an alias to an internal value.
146+
const UserStatusUserStatusSuspended = shared.UserStatusUserStatusSuspended
147+
148+
// This is an alias to an internal value.
149+
const UserStatusUserStatusLeft = shared.UserStatusUserStatusLeft

0 commit comments

Comments
 (0)