Skip to content

Commit 2ac41b3

Browse files
feat(api): update via SDK Studio
1 parent 7b2f2cf commit 2ac41b3

13 files changed

+877
-2
lines changed

Diff for: .stats.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
configured_endpoints: 51
1+
configured_endpoints: 54
22
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/gitpod%2Fgitpod-6d44c8845e1deee92c3e6406d5b67aa72616ec5e21ab8c722ae0a2c214c14784.yml

Diff for: api.md

+18
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,21 @@
1+
# Identity
2+
3+
Types:
4+
5+
```python
6+
from gitpod.types import (
7+
IdentityExchangeTokenResponse,
8+
IdentityGetAuthenticatedIdentityResponse,
9+
IdentityGetIDTokenResponse,
10+
)
11+
```
12+
13+
Methods:
14+
15+
- <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>
16+
- <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>
17+
- <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>
18+
119
# Environments
220

321
Types:

Diff for: src/gitpod/_client.py

+9-1
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 projects, environment_classes, personal_access_tokens
27+
from .resources import identity, projects, 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 (
@@ -41,6 +41,7 @@
4141

4242

4343
class Gitpod(SyncAPIClient):
44+
identity: identity.IdentityResource
4445
environments: environments.EnvironmentsResource
4546
environment_classes: environment_classes.EnvironmentClassesResource
4647
organizations: organizations.OrganizationsResource
@@ -105,6 +106,7 @@ def __init__(
105106
_strict_response_validation=_strict_response_validation,
106107
)
107108

109+
self.identity = identity.IdentityResource(self)
108110
self.environments = environments.EnvironmentsResource(self)
109111
self.environment_classes = environment_classes.EnvironmentClassesResource(self)
110112
self.organizations = organizations.OrganizationsResource(self)
@@ -221,6 +223,7 @@ def _make_status_error(
221223

222224

223225
class AsyncGitpod(AsyncAPIClient):
226+
identity: identity.AsyncIdentityResource
224227
environments: environments.AsyncEnvironmentsResource
225228
environment_classes: environment_classes.AsyncEnvironmentClassesResource
226229
organizations: organizations.AsyncOrganizationsResource
@@ -285,6 +288,7 @@ def __init__(
285288
_strict_response_validation=_strict_response_validation,
286289
)
287290

291+
self.identity = identity.AsyncIdentityResource(self)
288292
self.environments = environments.AsyncEnvironmentsResource(self)
289293
self.environment_classes = environment_classes.AsyncEnvironmentClassesResource(self)
290294
self.organizations = organizations.AsyncOrganizationsResource(self)
@@ -402,6 +406,7 @@ def _make_status_error(
402406

403407
class GitpodWithRawResponse:
404408
def __init__(self, client: Gitpod) -> None:
409+
self.identity = identity.IdentityResourceWithRawResponse(client.identity)
405410
self.environments = environments.EnvironmentsResourceWithRawResponse(client.environments)
406411
self.environment_classes = environment_classes.EnvironmentClassesResourceWithRawResponse(
407412
client.environment_classes
@@ -419,6 +424,7 @@ def __init__(self, client: Gitpod) -> None:
419424

420425
class AsyncGitpodWithRawResponse:
421426
def __init__(self, client: AsyncGitpod) -> None:
427+
self.identity = identity.AsyncIdentityResourceWithRawResponse(client.identity)
422428
self.environments = environments.AsyncEnvironmentsResourceWithRawResponse(client.environments)
423429
self.environment_classes = environment_classes.AsyncEnvironmentClassesResourceWithRawResponse(
424430
client.environment_classes
@@ -436,6 +442,7 @@ def __init__(self, client: AsyncGitpod) -> None:
436442

437443
class GitpodWithStreamedResponse:
438444
def __init__(self, client: Gitpod) -> None:
445+
self.identity = identity.IdentityResourceWithStreamingResponse(client.identity)
439446
self.environments = environments.EnvironmentsResourceWithStreamingResponse(client.environments)
440447
self.environment_classes = environment_classes.EnvironmentClassesResourceWithStreamingResponse(
441448
client.environment_classes
@@ -453,6 +460,7 @@ def __init__(self, client: Gitpod) -> None:
453460

454461
class AsyncGitpodWithStreamedResponse:
455462
def __init__(self, client: AsyncGitpod) -> None:
463+
self.identity = identity.AsyncIdentityResourceWithStreamingResponse(client.identity)
456464
self.environments = environments.AsyncEnvironmentsResourceWithStreamingResponse(client.environments)
457465
self.environment_classes = environment_classes.AsyncEnvironmentClassesResourceWithStreamingResponse(
458466
client.environment_classes

Diff for: src/gitpod/resources/__init__.py

+14
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,14 @@
88
RunnersResourceWithStreamingResponse,
99
AsyncRunnersResourceWithStreamingResponse,
1010
)
11+
from .identity import (
12+
IdentityResource,
13+
AsyncIdentityResource,
14+
IdentityResourceWithRawResponse,
15+
AsyncIdentityResourceWithRawResponse,
16+
IdentityResourceWithStreamingResponse,
17+
AsyncIdentityResourceWithStreamingResponse,
18+
)
1119
from .projects import (
1220
ProjectsResource,
1321
AsyncProjectsResource,
@@ -58,6 +66,12 @@
5866
)
5967

6068
__all__ = [
69+
"IdentityResource",
70+
"AsyncIdentityResource",
71+
"IdentityResourceWithRawResponse",
72+
"AsyncIdentityResourceWithRawResponse",
73+
"IdentityResourceWithStreamingResponse",
74+
"AsyncIdentityResourceWithStreamingResponse",
6175
"EnvironmentsResource",
6276
"AsyncEnvironmentsResource",
6377
"EnvironmentsResourceWithRawResponse",

0 commit comments

Comments
 (0)