Skip to content

Commit e42265e

Browse files
feat(api): update via SDK Studio
1 parent dd8ecd8 commit e42265e

13 files changed

+877
-2
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: 48
1+
configured_endpoints: 51
22
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/gitpod%2Fgitpod-a56421de8c29e0197c90fcbce09d837e8736c3a808b36b242b5c317231ce91fe.yml

api.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,24 @@ Methods:
9292
- <code title="post /gitpod.v1.EnvironmentAutomationService/StartService">client.environments.automations.services.<a href="./src/gitpod/resources/environments/automations/services.py">start</a>(\*\*<a href="src/gitpod/types/environments/automations/service_start_params.py">params</a>) -> <a href="./src/gitpod/types/environments/automations/service_start_response.py">object</a></code>
9393
- <code title="post /gitpod.v1.EnvironmentAutomationService/StopService">client.environments.automations.services.<a href="./src/gitpod/resources/environments/automations/services.py">stop</a>(\*\*<a href="src/gitpod/types/environments/automations/service_stop_params.py">params</a>) -> <a href="./src/gitpod/types/environments/automations/service_stop_response.py">object</a></code>
9494

95+
# Identity
96+
97+
Types:
98+
99+
```python
100+
from gitpod.types import (
101+
IdentityExchangeTokenResponse,
102+
IdentityGetAuthenticatedIdentityResponse,
103+
IdentityGetIDTokenResponse,
104+
)
105+
```
106+
107+
Methods:
108+
109+
- <code title="post /gitpod.v1.IdentityService/ExchangeToken">client.identity.<a href="./src/gitpod/resources/identity.py">exchange_token</a>(\*\*<a href="src/gitpod/types/identity_exchange_token_params.py">params</a>) -> <a href="./src/gitpod/types/identity_exchange_token_response.py">IdentityExchangeTokenResponse</a></code>
110+
- <code title="post /gitpod.v1.IdentityService/GetAuthenticatedIdentity">client.identity.<a href="./src/gitpod/resources/identity.py">get_authenticated_identity</a>(\*\*<a href="src/gitpod/types/identity_get_authenticated_identity_params.py">params</a>) -> <a href="./src/gitpod/types/identity_get_authenticated_identity_response.py">IdentityGetAuthenticatedIdentityResponse</a></code>
111+
- <code title="post /gitpod.v1.IdentityService/GetIDToken">client.identity.<a href="./src/gitpod/resources/identity.py">get_id_token</a>(\*\*<a href="src/gitpod/types/identity_get_id_token_params.py">params</a>) -> <a href="./src/gitpod/types/identity_get_id_token_response.py">IdentityGetIDTokenResponse</a></code>
112+
95113
# EnvironmentClasses
96114

97115
Types:

src/gitpod/_client.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
get_async_library,
2525
)
2626
from ._version import __version__
27-
from .resources import editors, projects, automations_files, environment_classes, personal_access_tokens
27+
from .resources import editors, identity, projects, automations_files, environment_classes, personal_access_tokens
2828
from ._streaming import Stream as Stream, AsyncStream as AsyncStream
2929
from ._exceptions import GitpodError, APIStatusError
3030
from ._base_client import (
@@ -44,6 +44,7 @@ class Gitpod(SyncAPIClient):
4444
automations_files: automations_files.AutomationsFilesResource
4545
editors: editors.EditorsResource
4646
environments: environments.EnvironmentsResource
47+
identity: identity.IdentityResource
4748
environment_classes: environment_classes.EnvironmentClassesResource
4849
organizations: organizations.OrganizationsResource
4950
projects: projects.ProjectsResource
@@ -110,6 +111,7 @@ def __init__(
110111
self.automations_files = automations_files.AutomationsFilesResource(self)
111112
self.editors = editors.EditorsResource(self)
112113
self.environments = environments.EnvironmentsResource(self)
114+
self.identity = identity.IdentityResource(self)
113115
self.environment_classes = environment_classes.EnvironmentClassesResource(self)
114116
self.organizations = organizations.OrganizationsResource(self)
115117
self.projects = projects.ProjectsResource(self)
@@ -222,6 +224,7 @@ class AsyncGitpod(AsyncAPIClient):
222224
automations_files: automations_files.AsyncAutomationsFilesResource
223225
editors: editors.AsyncEditorsResource
224226
environments: environments.AsyncEnvironmentsResource
227+
identity: identity.AsyncIdentityResource
225228
environment_classes: environment_classes.AsyncEnvironmentClassesResource
226229
organizations: organizations.AsyncOrganizationsResource
227230
projects: projects.AsyncProjectsResource
@@ -288,6 +291,7 @@ def __init__(
288291
self.automations_files = automations_files.AsyncAutomationsFilesResource(self)
289292
self.editors = editors.AsyncEditorsResource(self)
290293
self.environments = environments.AsyncEnvironmentsResource(self)
294+
self.identity = identity.AsyncIdentityResource(self)
291295
self.environment_classes = environment_classes.AsyncEnvironmentClassesResource(self)
292296
self.organizations = organizations.AsyncOrganizationsResource(self)
293297
self.projects = projects.AsyncProjectsResource(self)
@@ -401,6 +405,7 @@ def __init__(self, client: Gitpod) -> None:
401405
self.automations_files = automations_files.AutomationsFilesResourceWithRawResponse(client.automations_files)
402406
self.editors = editors.EditorsResourceWithRawResponse(client.editors)
403407
self.environments = environments.EnvironmentsResourceWithRawResponse(client.environments)
408+
self.identity = identity.IdentityResourceWithRawResponse(client.identity)
404409
self.environment_classes = environment_classes.EnvironmentClassesResourceWithRawResponse(
405410
client.environment_classes
406411
)
@@ -422,6 +427,7 @@ def __init__(self, client: AsyncGitpod) -> None:
422427
)
423428
self.editors = editors.AsyncEditorsResourceWithRawResponse(client.editors)
424429
self.environments = environments.AsyncEnvironmentsResourceWithRawResponse(client.environments)
430+
self.identity = identity.AsyncIdentityResourceWithRawResponse(client.identity)
425431
self.environment_classes = environment_classes.AsyncEnvironmentClassesResourceWithRawResponse(
426432
client.environment_classes
427433
)
@@ -443,6 +449,7 @@ def __init__(self, client: Gitpod) -> None:
443449
)
444450
self.editors = editors.EditorsResourceWithStreamingResponse(client.editors)
445451
self.environments = environments.EnvironmentsResourceWithStreamingResponse(client.environments)
452+
self.identity = identity.IdentityResourceWithStreamingResponse(client.identity)
446453
self.environment_classes = environment_classes.EnvironmentClassesResourceWithStreamingResponse(
447454
client.environment_classes
448455
)
@@ -464,6 +471,7 @@ def __init__(self, client: AsyncGitpod) -> None:
464471
)
465472
self.editors = editors.AsyncEditorsResourceWithStreamingResponse(client.editors)
466473
self.environments = environments.AsyncEnvironmentsResourceWithStreamingResponse(client.environments)
474+
self.identity = identity.AsyncIdentityResourceWithStreamingResponse(client.identity)
467475
self.environment_classes = environment_classes.AsyncEnvironmentClassesResourceWithStreamingResponse(
468476
client.environment_classes
469477
)

src/gitpod/resources/__init__.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,14 @@
1616
RunnersResourceWithStreamingResponse,
1717
AsyncRunnersResourceWithStreamingResponse,
1818
)
19+
from .identity import (
20+
IdentityResource,
21+
AsyncIdentityResource,
22+
IdentityResourceWithRawResponse,
23+
AsyncIdentityResourceWithRawResponse,
24+
IdentityResourceWithStreamingResponse,
25+
AsyncIdentityResourceWithStreamingResponse,
26+
)
1927
from .projects import (
2028
ProjectsResource,
2129
AsyncProjectsResource,
@@ -92,6 +100,12 @@
92100
"AsyncEnvironmentsResourceWithRawResponse",
93101
"EnvironmentsResourceWithStreamingResponse",
94102
"AsyncEnvironmentsResourceWithStreamingResponse",
103+
"IdentityResource",
104+
"AsyncIdentityResource",
105+
"IdentityResourceWithRawResponse",
106+
"AsyncIdentityResourceWithRawResponse",
107+
"IdentityResourceWithStreamingResponse",
108+
"AsyncIdentityResourceWithStreamingResponse",
95109
"EnvironmentClassesResource",
96110
"AsyncEnvironmentClassesResource",
97111
"EnvironmentClassesResourceWithRawResponse",

0 commit comments

Comments
 (0)