Skip to content

Commit ea67c8c

Browse files
feat(api): update via SDK Studio
1 parent 974fb63 commit ea67c8c

File tree

237 files changed

+28584
-6344
lines changed

Some content is hidden

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

237 files changed

+28584
-6344
lines changed

Diff for: .stats.yml

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

Diff for: api.md

+280-104
Large diffs are not rendered by default.

Diff for: src/gitpod/_client.py

+59-58
Original file line numberDiff line numberDiff line change
@@ -24,31 +24,35 @@
2424
get_async_library,
2525
)
2626
from ._version import __version__
27-
from .resources import identity, projects, environment_classes, personal_access_tokens
27+
from .resources import events, groups, editors, secrets, accounts, identity
2828
from ._streaming import Stream as Stream, AsyncStream as AsyncStream
2929
from ._exceptions import GitpodError, APIStatusError
3030
from ._base_client import (
3131
DEFAULT_MAX_RETRIES,
3232
SyncAPIClient,
3333
AsyncAPIClient,
3434
)
35+
from .resources.users import users
3536
from .resources.runners import runners
37+
from .resources.projects import projects
3638
from .resources.environments import environments
3739
from .resources.organizations import organizations
38-
from .resources.runner_configurations import runner_configurations
3940

4041
__all__ = ["Timeout", "Transport", "ProxiesTypes", "RequestOptions", "Gitpod", "AsyncGitpod", "Client", "AsyncClient"]
4142

4243

4344
class Gitpod(SyncAPIClient):
44-
identity: identity.IdentityResource
45+
accounts: accounts.AccountsResource
46+
editors: editors.EditorsResource
4547
environments: environments.EnvironmentsResource
46-
environment_classes: environment_classes.EnvironmentClassesResource
48+
events: events.EventsResource
49+
groups: groups.GroupsResource
50+
identity: identity.IdentityResource
4751
organizations: organizations.OrganizationsResource
4852
projects: projects.ProjectsResource
49-
runner_configurations: runner_configurations.RunnerConfigurationsResource
5053
runners: runners.RunnersResource
51-
personal_access_tokens: personal_access_tokens.PersonalAccessTokensResource
54+
secrets: secrets.SecretsResource
55+
users: users.UsersResource
5256
with_raw_response: GitpodWithRawResponse
5357
with_streaming_response: GitpodWithStreamedResponse
5458

@@ -106,14 +110,17 @@ def __init__(
106110
_strict_response_validation=_strict_response_validation,
107111
)
108112

109-
self.identity = identity.IdentityResource(self)
113+
self.accounts = accounts.AccountsResource(self)
114+
self.editors = editors.EditorsResource(self)
110115
self.environments = environments.EnvironmentsResource(self)
111-
self.environment_classes = environment_classes.EnvironmentClassesResource(self)
116+
self.events = events.EventsResource(self)
117+
self.groups = groups.GroupsResource(self)
118+
self.identity = identity.IdentityResource(self)
112119
self.organizations = organizations.OrganizationsResource(self)
113120
self.projects = projects.ProjectsResource(self)
114-
self.runner_configurations = runner_configurations.RunnerConfigurationsResource(self)
115121
self.runners = runners.RunnersResource(self)
116-
self.personal_access_tokens = personal_access_tokens.PersonalAccessTokensResource(self)
122+
self.secrets = secrets.SecretsResource(self)
123+
self.users = users.UsersResource(self)
117124
self.with_raw_response = GitpodWithRawResponse(self)
118125
self.with_streaming_response = GitpodWithStreamedResponse(self)
119126

@@ -223,14 +230,17 @@ def _make_status_error(
223230

224231

225232
class AsyncGitpod(AsyncAPIClient):
226-
identity: identity.AsyncIdentityResource
233+
accounts: accounts.AsyncAccountsResource
234+
editors: editors.AsyncEditorsResource
227235
environments: environments.AsyncEnvironmentsResource
228-
environment_classes: environment_classes.AsyncEnvironmentClassesResource
236+
events: events.AsyncEventsResource
237+
groups: groups.AsyncGroupsResource
238+
identity: identity.AsyncIdentityResource
229239
organizations: organizations.AsyncOrganizationsResource
230240
projects: projects.AsyncProjectsResource
231-
runner_configurations: runner_configurations.AsyncRunnerConfigurationsResource
232241
runners: runners.AsyncRunnersResource
233-
personal_access_tokens: personal_access_tokens.AsyncPersonalAccessTokensResource
242+
secrets: secrets.AsyncSecretsResource
243+
users: users.AsyncUsersResource
234244
with_raw_response: AsyncGitpodWithRawResponse
235245
with_streaming_response: AsyncGitpodWithStreamedResponse
236246

@@ -288,14 +298,17 @@ def __init__(
288298
_strict_response_validation=_strict_response_validation,
289299
)
290300

291-
self.identity = identity.AsyncIdentityResource(self)
301+
self.accounts = accounts.AsyncAccountsResource(self)
302+
self.editors = editors.AsyncEditorsResource(self)
292303
self.environments = environments.AsyncEnvironmentsResource(self)
293-
self.environment_classes = environment_classes.AsyncEnvironmentClassesResource(self)
304+
self.events = events.AsyncEventsResource(self)
305+
self.groups = groups.AsyncGroupsResource(self)
306+
self.identity = identity.AsyncIdentityResource(self)
294307
self.organizations = organizations.AsyncOrganizationsResource(self)
295308
self.projects = projects.AsyncProjectsResource(self)
296-
self.runner_configurations = runner_configurations.AsyncRunnerConfigurationsResource(self)
297309
self.runners = runners.AsyncRunnersResource(self)
298-
self.personal_access_tokens = personal_access_tokens.AsyncPersonalAccessTokensResource(self)
310+
self.secrets = secrets.AsyncSecretsResource(self)
311+
self.users = users.AsyncUsersResource(self)
299312
self.with_raw_response = AsyncGitpodWithRawResponse(self)
300313
self.with_streaming_response = AsyncGitpodWithStreamedResponse(self)
301314

@@ -406,74 +419,62 @@ def _make_status_error(
406419

407420
class GitpodWithRawResponse:
408421
def __init__(self, client: Gitpod) -> None:
409-
self.identity = identity.IdentityResourceWithRawResponse(client.identity)
422+
self.accounts = accounts.AccountsResourceWithRawResponse(client.accounts)
423+
self.editors = editors.EditorsResourceWithRawResponse(client.editors)
410424
self.environments = environments.EnvironmentsResourceWithRawResponse(client.environments)
411-
self.environment_classes = environment_classes.EnvironmentClassesResourceWithRawResponse(
412-
client.environment_classes
413-
)
425+
self.events = events.EventsResourceWithRawResponse(client.events)
426+
self.groups = groups.GroupsResourceWithRawResponse(client.groups)
427+
self.identity = identity.IdentityResourceWithRawResponse(client.identity)
414428
self.organizations = organizations.OrganizationsResourceWithRawResponse(client.organizations)
415429
self.projects = projects.ProjectsResourceWithRawResponse(client.projects)
416-
self.runner_configurations = runner_configurations.RunnerConfigurationsResourceWithRawResponse(
417-
client.runner_configurations
418-
)
419430
self.runners = runners.RunnersResourceWithRawResponse(client.runners)
420-
self.personal_access_tokens = personal_access_tokens.PersonalAccessTokensResourceWithRawResponse(
421-
client.personal_access_tokens
422-
)
431+
self.secrets = secrets.SecretsResourceWithRawResponse(client.secrets)
432+
self.users = users.UsersResourceWithRawResponse(client.users)
423433

424434

425435
class AsyncGitpodWithRawResponse:
426436
def __init__(self, client: AsyncGitpod) -> None:
427-
self.identity = identity.AsyncIdentityResourceWithRawResponse(client.identity)
437+
self.accounts = accounts.AsyncAccountsResourceWithRawResponse(client.accounts)
438+
self.editors = editors.AsyncEditorsResourceWithRawResponse(client.editors)
428439
self.environments = environments.AsyncEnvironmentsResourceWithRawResponse(client.environments)
429-
self.environment_classes = environment_classes.AsyncEnvironmentClassesResourceWithRawResponse(
430-
client.environment_classes
431-
)
440+
self.events = events.AsyncEventsResourceWithRawResponse(client.events)
441+
self.groups = groups.AsyncGroupsResourceWithRawResponse(client.groups)
442+
self.identity = identity.AsyncIdentityResourceWithRawResponse(client.identity)
432443
self.organizations = organizations.AsyncOrganizationsResourceWithRawResponse(client.organizations)
433444
self.projects = projects.AsyncProjectsResourceWithRawResponse(client.projects)
434-
self.runner_configurations = runner_configurations.AsyncRunnerConfigurationsResourceWithRawResponse(
435-
client.runner_configurations
436-
)
437445
self.runners = runners.AsyncRunnersResourceWithRawResponse(client.runners)
438-
self.personal_access_tokens = personal_access_tokens.AsyncPersonalAccessTokensResourceWithRawResponse(
439-
client.personal_access_tokens
440-
)
446+
self.secrets = secrets.AsyncSecretsResourceWithRawResponse(client.secrets)
447+
self.users = users.AsyncUsersResourceWithRawResponse(client.users)
441448

442449

443450
class GitpodWithStreamedResponse:
444451
def __init__(self, client: Gitpod) -> None:
445-
self.identity = identity.IdentityResourceWithStreamingResponse(client.identity)
452+
self.accounts = accounts.AccountsResourceWithStreamingResponse(client.accounts)
453+
self.editors = editors.EditorsResourceWithStreamingResponse(client.editors)
446454
self.environments = environments.EnvironmentsResourceWithStreamingResponse(client.environments)
447-
self.environment_classes = environment_classes.EnvironmentClassesResourceWithStreamingResponse(
448-
client.environment_classes
449-
)
455+
self.events = events.EventsResourceWithStreamingResponse(client.events)
456+
self.groups = groups.GroupsResourceWithStreamingResponse(client.groups)
457+
self.identity = identity.IdentityResourceWithStreamingResponse(client.identity)
450458
self.organizations = organizations.OrganizationsResourceWithStreamingResponse(client.organizations)
451459
self.projects = projects.ProjectsResourceWithStreamingResponse(client.projects)
452-
self.runner_configurations = runner_configurations.RunnerConfigurationsResourceWithStreamingResponse(
453-
client.runner_configurations
454-
)
455460
self.runners = runners.RunnersResourceWithStreamingResponse(client.runners)
456-
self.personal_access_tokens = personal_access_tokens.PersonalAccessTokensResourceWithStreamingResponse(
457-
client.personal_access_tokens
458-
)
461+
self.secrets = secrets.SecretsResourceWithStreamingResponse(client.secrets)
462+
self.users = users.UsersResourceWithStreamingResponse(client.users)
459463

460464

461465
class AsyncGitpodWithStreamedResponse:
462466
def __init__(self, client: AsyncGitpod) -> None:
463-
self.identity = identity.AsyncIdentityResourceWithStreamingResponse(client.identity)
467+
self.accounts = accounts.AsyncAccountsResourceWithStreamingResponse(client.accounts)
468+
self.editors = editors.AsyncEditorsResourceWithStreamingResponse(client.editors)
464469
self.environments = environments.AsyncEnvironmentsResourceWithStreamingResponse(client.environments)
465-
self.environment_classes = environment_classes.AsyncEnvironmentClassesResourceWithStreamingResponse(
466-
client.environment_classes
467-
)
470+
self.events = events.AsyncEventsResourceWithStreamingResponse(client.events)
471+
self.groups = groups.AsyncGroupsResourceWithStreamingResponse(client.groups)
472+
self.identity = identity.AsyncIdentityResourceWithStreamingResponse(client.identity)
468473
self.organizations = organizations.AsyncOrganizationsResourceWithStreamingResponse(client.organizations)
469474
self.projects = projects.AsyncProjectsResourceWithStreamingResponse(client.projects)
470-
self.runner_configurations = runner_configurations.AsyncRunnerConfigurationsResourceWithStreamingResponse(
471-
client.runner_configurations
472-
)
473475
self.runners = runners.AsyncRunnersResourceWithStreamingResponse(client.runners)
474-
self.personal_access_tokens = personal_access_tokens.AsyncPersonalAccessTokensResourceWithStreamingResponse(
475-
client.personal_access_tokens
476-
)
476+
self.secrets = secrets.AsyncSecretsResourceWithStreamingResponse(client.secrets)
477+
self.users = users.AsyncUsersResourceWithStreamingResponse(client.users)
477478

478479

479480
Client = Gitpod

0 commit comments

Comments
 (0)