Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .stats.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
configured_endpoints: 106
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/gitpod%2Fgitpod-2410f189970eeb715e79976f13eeca7259b602809e27a84820da8c794dcf00cb.yml
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/gitpod%2Fgitpod-da4c36c6b1d973f481abb8eefdeb085d88eaf37eeaba30d276cb3daa405b6f0c.yml
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -165,8 +165,8 @@ You can use `.ListAutoPaging()` methods to iterate through items across all page
iter := client.Environments.Automations.Services.ListAutoPaging(context.TODO(), gitpod.EnvironmentAutomationServiceListParams{})
// Automatically fetches more pages as needed.
for iter.Next() {
environmentAutomationServiceListResponse := iter.Current()
fmt.Printf("%+v\n", environmentAutomationServiceListResponse)
service := iter.Current()
fmt.Printf("%+v\n", service)
}
if err := iter.Err(); err != nil {
panic(err.Error())
Expand Down
364 changes: 312 additions & 52 deletions account.go

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion account_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,8 @@ func TestAccountGetSSOLoginURLWithOptionalParams(t *testing.T) {
option.WithBearerToken("My Bearer Token"),
)
_, err := client.Accounts.GetSSOLoginURL(context.TODO(), gitpod.AccountGetSSOLoginURLParams{
ReturnTo: gitpod.F("https://example.com"),
Email: gitpod.F("dev@stainlessapi.com"),
ReturnTo: gitpod.F("https://example.com"),
})
if err != nil {
var apierr *gitpod.Error
Expand Down
140 changes: 140 additions & 0 deletions aliases.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,146 @@ package gitpod

import (
"github.com/gitpod-io/flex-sdk-go/internal/apierror"
"github.com/gitpod-io/flex-sdk-go/shared"
)

type Error = apierror.Error

// An AutomationTrigger represents a trigger for an automation action. The
// `post_environment_start` field indicates that the automation should be triggered
// after the environment has started. The `post_devcontainer_start` field indicates
// that the automation should be triggered after the dev container has started.
//
// This is an alias to an internal type.
type AutomationTrigger = shared.AutomationTrigger

// An AutomationTrigger represents a trigger for an automation action. The
// `post_environment_start` field indicates that the automation should be triggered
// after the environment has started. The `post_devcontainer_start` field indicates
// that the automation should be triggered after the dev container has started.
//
// This is an alias to an internal type.
type AutomationTriggerParam = shared.AutomationTriggerParam

// This is an alias to an internal type.
type EnvironmentClass = shared.EnvironmentClass

// This is an alias to an internal type.
type EnvironmentClassParam = shared.EnvironmentClassParam

// This is an alias to an internal type.
type FieldValue = shared.FieldValue

// This is an alias to an internal type.
type FieldValueParam = shared.FieldValueParam

// This is an alias to an internal type.
type OrganizationRole = shared.OrganizationRole

// This is an alias to an internal value.
const OrganizationRoleOrganizationRoleUnspecified = shared.OrganizationRoleOrganizationRoleUnspecified

// This is an alias to an internal value.
const OrganizationRoleOrganizationRoleAdmin = shared.OrganizationRoleOrganizationRoleAdmin

// This is an alias to an internal value.
const OrganizationRoleOrganizationRoleMember = shared.OrganizationRoleOrganizationRoleMember

// This is an alias to an internal type.
type Principal = shared.Principal

// This is an alias to an internal value.
const PrincipalPrincipalUnspecified = shared.PrincipalPrincipalUnspecified

// This is an alias to an internal value.
const PrincipalPrincipalAccount = shared.PrincipalPrincipalAccount

// This is an alias to an internal value.
const PrincipalPrincipalUser = shared.PrincipalPrincipalUser

// This is an alias to an internal value.
const PrincipalPrincipalRunner = shared.PrincipalPrincipalRunner

// This is an alias to an internal value.
const PrincipalPrincipalEnvironment = shared.PrincipalPrincipalEnvironment

// This is an alias to an internal value.
const PrincipalPrincipalServiceAccount = shared.PrincipalPrincipalServiceAccount

// This is an alias to an internal type.
type RunsOn = shared.RunsOn

// This is an alias to an internal type.
type RunsOnDocker = shared.RunsOnDocker

// This is an alias to an internal type.
type RunsOnParam = shared.RunsOnParam

// This is an alias to an internal type.
type RunsOnDockerParam = shared.RunsOnDockerParam

// This is an alias to an internal type.
type Subject = shared.Subject

// This is an alias to an internal type.
type SubjectParam = shared.SubjectParam

// This is an alias to an internal type.
type TaskExecution = shared.TaskExecution

// This is an alias to an internal type.
type TaskExecutionMetadata = shared.TaskExecutionMetadata

// This is an alias to an internal type.
type TaskExecutionPhase = shared.TaskExecutionPhase

// This is an alias to an internal value.
const TaskExecutionPhaseTaskExecutionPhaseUnspecified = shared.TaskExecutionPhaseTaskExecutionPhaseUnspecified

// This is an alias to an internal value.
const TaskExecutionPhaseTaskExecutionPhasePending = shared.TaskExecutionPhaseTaskExecutionPhasePending

// This is an alias to an internal value.
const TaskExecutionPhaseTaskExecutionPhaseRunning = shared.TaskExecutionPhaseTaskExecutionPhaseRunning

// This is an alias to an internal value.
const TaskExecutionPhaseTaskExecutionPhaseSucceeded = shared.TaskExecutionPhaseTaskExecutionPhaseSucceeded

// This is an alias to an internal value.
const TaskExecutionPhaseTaskExecutionPhaseFailed = shared.TaskExecutionPhaseTaskExecutionPhaseFailed

// This is an alias to an internal value.
const TaskExecutionPhaseTaskExecutionPhaseStopped = shared.TaskExecutionPhaseTaskExecutionPhaseStopped

// This is an alias to an internal type.
type TaskExecutionSpec = shared.TaskExecutionSpec

// This is an alias to an internal type.
type TaskExecutionSpecPlan = shared.TaskExecutionSpecPlan

// This is an alias to an internal type.
type TaskExecutionSpecPlanStep = shared.TaskExecutionSpecPlanStep

// This is an alias to an internal type.
type TaskExecutionSpecPlanStepsTask = shared.TaskExecutionSpecPlanStepsTask

// This is an alias to an internal type.
type TaskExecutionStatus = shared.TaskExecutionStatus

// This is an alias to an internal type.
type TaskExecutionStatusStep = shared.TaskExecutionStatusStep

// This is an alias to an internal type.
type UserStatus = shared.UserStatus

// This is an alias to an internal value.
const UserStatusUserStatusUnspecified = shared.UserStatusUserStatusUnspecified

// This is an alias to an internal value.
const UserStatusUserStatusActive = shared.UserStatusUserStatusActive

// This is an alias to an internal value.
const UserStatusUserStatusSuspended = shared.UserStatusUserStatusSuspended

// This is an alias to an internal value.
const UserStatusUserStatusLeft = shared.UserStatusUserStatusLeft
Loading