Skip to content

Commit 416c2ef

Browse files
feat(api): manual updates
1 parent a4e4e7a commit 416c2ef

File tree

69 files changed

+2197
-457
lines changed

Some content is hidden

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

69 files changed

+2197
-457
lines changed

.stats.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
configured_endpoints: 111
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/gitpod%2Fgitpod-3655d5ad0ac3e228c1519af70dbf3d0bfa3c47a2d06d4cac92a650da051b49a6.yml
3-
openapi_spec_hash: 5dbb5577e6a7cae7db615b1b06c9d23e
4-
config_hash: 719ad411c0ec7402a7a4c1f95515280c
1+
configured_endpoints: 115
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/gitpod%2Fgitpod-d854bc81e0a99171716893e6790a87ba350bb6fc778f8e3244abdd47d5c252c3.yml
3+
openapi_spec_hash: 5189220e4712a7b0cdd35beba2ebb47d
4+
config_hash: 981e43e8b1e3ddabd435d350aeeed417

api.md

Lines changed: 37 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ from gitpod.types import (
7676
EnvironmentRetrieveResponse,
7777
EnvironmentUpdateResponse,
7878
EnvironmentDeleteResponse,
79+
EnvironmentCreateEnvironmentTokenResponse,
7980
EnvironmentCreateFromProjectResponse,
8081
EnvironmentCreateLogsTokenResponse,
8182
EnvironmentMarkActiveResponse,
@@ -91,6 +92,7 @@ Methods:
9192
- <code title="post /gitpod.v1.EnvironmentService/UpdateEnvironment">client.environments.<a href="./src/gitpod/resources/environments/environments.py">update</a>(\*\*<a href="src/gitpod/types/environment_update_params.py">params</a>) -> <a href="./src/gitpod/types/environment_update_response.py">object</a></code>
9293
- <code title="post /gitpod.v1.EnvironmentService/ListEnvironments">client.environments.<a href="./src/gitpod/resources/environments/environments.py">list</a>(\*\*<a href="src/gitpod/types/environment_list_params.py">params</a>) -> <a href="./src/gitpod/types/environment.py">SyncEnvironmentsPage[Environment]</a></code>
9394
- <code title="post /gitpod.v1.EnvironmentService/DeleteEnvironment">client.environments.<a href="./src/gitpod/resources/environments/environments.py">delete</a>(\*\*<a href="src/gitpod/types/environment_delete_params.py">params</a>) -> <a href="./src/gitpod/types/environment_delete_response.py">object</a></code>
95+
- <code title="post /gitpod.v1.EnvironmentService/CreateEnvironmentAccessToken">client.environments.<a href="./src/gitpod/resources/environments/environments.py">create_environment_token</a>(\*\*<a href="src/gitpod/types/environment_create_environment_token_params.py">params</a>) -> <a href="./src/gitpod/types/environment_create_environment_token_response.py">EnvironmentCreateEnvironmentTokenResponse</a></code>
9496
- <code title="post /gitpod.v1.EnvironmentService/CreateEnvironmentFromProject">client.environments.<a href="./src/gitpod/resources/environments/environments.py">create_from_project</a>(\*\*<a href="src/gitpod/types/environment_create_from_project_params.py">params</a>) -> <a href="./src/gitpod/types/environment_create_from_project_response.py">EnvironmentCreateFromProjectResponse</a></code>
9597
- <code title="post /gitpod.v1.EnvironmentService/CreateEnvironmentLogsToken">client.environments.<a href="./src/gitpod/resources/environments/environments.py">create_logs_token</a>(\*\*<a href="src/gitpod/types/environment_create_logs_token_params.py">params</a>) -> <a href="./src/gitpod/types/environment_create_logs_token_response.py">EnvironmentCreateLogsTokenResponse</a></code>
9698
- <code title="post /gitpod.v1.EnvironmentService/MarkEnvironmentActive">client.environments.<a href="./src/gitpod/resources/environments/environments.py">mark_active</a>(\*\*<a href="src/gitpod/types/environment_mark_active_params.py">params</a>) -> <a href="./src/gitpod/types/environment_mark_active_response.py">object</a></code>
@@ -216,6 +218,7 @@ Types:
216218

217219
```python
218220
from gitpod.types import (
221+
IDTokenVersion,
219222
IdentityExchangeTokenResponse,
220223
IdentityGetAuthenticatedIdentityResponse,
221224
IdentityGetIDTokenResponse,
@@ -237,7 +240,7 @@ from gitpod.types import (
237240
InviteDomains,
238241
Organization,
239242
OrganizationMember,
240-
Scope,
243+
OrganizationTier,
241244
OrganizationCreateResponse,
242245
OrganizationRetrieveResponse,
243246
OrganizationUpdateResponse,
@@ -253,7 +256,6 @@ Methods:
253256
- <code title="post /gitpod.v1.OrganizationService/CreateOrganization">client.organizations.<a href="./src/gitpod/resources/organizations/organizations.py">create</a>(\*\*<a href="src/gitpod/types/organization_create_params.py">params</a>) -> <a href="./src/gitpod/types/organization_create_response.py">OrganizationCreateResponse</a></code>
254257
- <code title="post /gitpod.v1.OrganizationService/GetOrganization">client.organizations.<a href="./src/gitpod/resources/organizations/organizations.py">retrieve</a>(\*\*<a href="src/gitpod/types/organization_retrieve_params.py">params</a>) -> <a href="./src/gitpod/types/organization_retrieve_response.py">OrganizationRetrieveResponse</a></code>
255258
- <code title="post /gitpod.v1.OrganizationService/UpdateOrganization">client.organizations.<a href="./src/gitpod/resources/organizations/organizations.py">update</a>(\*\*<a href="src/gitpod/types/organization_update_params.py">params</a>) -> <a href="./src/gitpod/types/organization_update_response.py">OrganizationUpdateResponse</a></code>
256-
- <code title="post /gitpod.v1.OrganizationService/ListOrganizations">client.organizations.<a href="./src/gitpod/resources/organizations/organizations.py">list</a>(\*\*<a href="src/gitpod/types/organization_list_params.py">params</a>) -> <a href="./src/gitpod/types/organization.py">SyncOrganizationsPage[Organization]</a></code>
257259
- <code title="post /gitpod.v1.OrganizationService/DeleteOrganization">client.organizations.<a href="./src/gitpod/resources/organizations/organizations.py">delete</a>(\*\*<a href="src/gitpod/types/organization_delete_params.py">params</a>) -> <a href="./src/gitpod/types/organization_delete_response.py">object</a></code>
258260
- <code title="post /gitpod.v1.OrganizationService/JoinOrganization">client.organizations.<a href="./src/gitpod/resources/organizations/organizations.py">join</a>(\*\*<a href="src/gitpod/types/organization_join_params.py">params</a>) -> <a href="./src/gitpod/types/organization_join_response.py">OrganizationJoinResponse</a></code>
259261
- <code title="post /gitpod.v1.OrganizationService/LeaveOrganization">client.organizations.<a href="./src/gitpod/resources/organizations/organizations.py">leave</a>(\*\*<a href="src/gitpod/types/organization_leave_params.py">params</a>) -> <a href="./src/gitpod/types/organization_leave_response.py">object</a></code>
@@ -302,6 +304,23 @@ Methods:
302304
- <code title="post /gitpod.v1.OrganizationService/GetOrganizationInvite">client.organizations.invites.<a href="./src/gitpod/resources/organizations/invites.py">retrieve</a>(\*\*<a href="src/gitpod/types/organizations/invite_retrieve_params.py">params</a>) -> <a href="./src/gitpod/types/organizations/invite_retrieve_response.py">InviteRetrieveResponse</a></code>
303305
- <code title="post /gitpod.v1.OrganizationService/GetOrganizationInviteSummary">client.organizations.invites.<a href="./src/gitpod/resources/organizations/invites.py">get_summary</a>(\*\*<a href="src/gitpod/types/organizations/invite_get_summary_params.py">params</a>) -> <a href="./src/gitpod/types/organizations/invite_get_summary_response.py">InviteGetSummaryResponse</a></code>
304306

307+
## Policies
308+
309+
Types:
310+
311+
```python
312+
from gitpod.types.organizations import (
313+
OrganizationPolicies,
314+
PolicyRetrieveResponse,
315+
PolicyUpdateResponse,
316+
)
317+
```
318+
319+
Methods:
320+
321+
- <code title="post /gitpod.v1.OrganizationService/GetOrganizationPolicies">client.organizations.policies.<a href="./src/gitpod/resources/organizations/policies.py">retrieve</a>(\*\*<a href="src/gitpod/types/organizations/policy_retrieve_params.py">params</a>) -> <a href="./src/gitpod/types/organizations/policy_retrieve_response.py">PolicyRetrieveResponse</a></code>
322+
- <code title="post /gitpod.v1.OrganizationService/UpdateOrganizationPolicies">client.organizations.policies.<a href="./src/gitpod/resources/organizations/policies.py">update</a>(\*\*<a href="src/gitpod/types/organizations/policy_update_params.py">params</a>) -> <a href="./src/gitpod/types/organizations/policy_update_response.py">object</a></code>
323+
305324
## SSOConfigurations
306325

307326
Types:
@@ -380,6 +399,8 @@ Types:
380399

381400
```python
382401
from gitpod.types import (
402+
LogLevel,
403+
MetricsConfiguration,
383404
Runner,
384405
RunnerCapability,
385406
RunnerConfiguration,
@@ -532,6 +553,7 @@ Types:
532553
```python
533554
from gitpod.types import (
534555
Secret,
556+
SecretScope,
535557
SecretCreateResponse,
536558
SecretDeleteResponse,
537559
SecretGetValueResponse,
@@ -560,6 +582,19 @@ Methods:
560582
- <code title="post /gitpod.v1.UserService/GetAuthenticatedUser">client.users.<a href="./src/gitpod/resources/users/users.py">get_authenticated_user</a>(\*\*<a href="src/gitpod/types/user_get_authenticated_user_params.py">params</a>) -> <a href="./src/gitpod/types/user_get_authenticated_user_response.py">UserGetAuthenticatedUserResponse</a></code>
561583
- <code title="post /gitpod.v1.UserService/SetSuspended">client.users.<a href="./src/gitpod/resources/users/users.py">set_suspended</a>(\*\*<a href="src/gitpod/types/user_set_suspended_params.py">params</a>) -> <a href="./src/gitpod/types/user_set_suspended_response.py">object</a></code>
562584

585+
## Dotfiles
586+
587+
Types:
588+
589+
```python
590+
from gitpod.types.users import DotfilesConfiguration, DotfileGetResponse, DotfileSetResponse
591+
```
592+
593+
Methods:
594+
595+
- <code title="post /gitpod.v1.UserService/GetDotfilesConfiguration">client.users.dotfiles.<a href="./src/gitpod/resources/users/dotfiles.py">get</a>(\*\*<a href="src/gitpod/types/users/dotfile_get_params.py">params</a>) -> <a href="./src/gitpod/types/users/dotfile_get_response.py">DotfileGetResponse</a></code>
596+
- <code title="post /gitpod.v1.UserService/SetDotfilesConfiguration">client.users.dotfiles.<a href="./src/gitpod/resources/users/dotfiles.py">set</a>(\*\*<a href="src/gitpod/types/users/dotfile_set_params.py">params</a>) -> <a href="./src/gitpod/types/users/dotfile_set_response.py">object</a></code>
597+
563598
## Pats
564599

565600
Types:

src/gitpod/pagination.py

Lines changed: 0 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,6 @@
3636
"MembersPagePagination",
3737
"SyncMembersPage",
3838
"AsyncMembersPage",
39-
"OrganizationsPagePagination",
40-
"SyncOrganizationsPage",
41-
"AsyncOrganizationsPage",
4239
"PersonalAccessTokensPagePagination",
4340
"SyncPersonalAccessTokensPage",
4441
"AsyncPersonalAccessTokensPage",
@@ -524,56 +521,6 @@ def next_page_info(self) -> Optional[PageInfo]:
524521
return PageInfo(params={"token": next_token})
525522

526523

527-
class OrganizationsPagePagination(BaseModel):
528-
next_token: Optional[str] = FieldInfo(alias="nextToken", default=None)
529-
530-
531-
class SyncOrganizationsPage(BaseSyncPage[_T], BasePage[_T], Generic[_T]):
532-
organizations: List[_T]
533-
pagination: Optional[OrganizationsPagePagination] = None
534-
535-
@override
536-
def _get_page_items(self) -> List[_T]:
537-
organizations = self.organizations
538-
if not organizations:
539-
return []
540-
return organizations
541-
542-
@override
543-
def next_page_info(self) -> Optional[PageInfo]:
544-
next_token = None
545-
if self.pagination is not None:
546-
if self.pagination.next_token is not None:
547-
next_token = self.pagination.next_token
548-
if not next_token:
549-
return None
550-
551-
return PageInfo(params={"token": next_token})
552-
553-
554-
class AsyncOrganizationsPage(BaseAsyncPage[_T], BasePage[_T], Generic[_T]):
555-
organizations: List[_T]
556-
pagination: Optional[OrganizationsPagePagination] = None
557-
558-
@override
559-
def _get_page_items(self) -> List[_T]:
560-
organizations = self.organizations
561-
if not organizations:
562-
return []
563-
return organizations
564-
565-
@override
566-
def next_page_info(self) -> Optional[PageInfo]:
567-
next_token = None
568-
if self.pagination is not None:
569-
if self.pagination.next_token is not None:
570-
next_token = self.pagination.next_token
571-
if not next_token:
572-
return None
573-
574-
return PageInfo(params={"token": next_token})
575-
576-
577524
class PersonalAccessTokensPagePagination(BaseModel):
578525
next_token: Optional[str] = FieldInfo(alias="nextToken", default=None)
579526

src/gitpod/resources/editors.py

Lines changed: 48 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@ def list(
9898
*,
9999
token: str | NotGiven = NOT_GIVEN,
100100
page_size: int | NotGiven = NOT_GIVEN,
101+
filter: editor_list_params.Filter | NotGiven = NOT_GIVEN,
101102
pagination: editor_list_params.Pagination | NotGiven = NOT_GIVEN,
102103
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
103104
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -107,7 +108,8 @@ def list(
107108
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
108109
) -> SyncEditorsPage[Editor]:
109110
"""
110-
Lists all available code editors.
111+
Lists all available code editors, optionally filtered to those allowed in an
112+
organization.
111113
112114
Use this method to:
113115
@@ -127,7 +129,21 @@ def list(
127129
pageSize: 20
128130
```
129131
132+
- List editors available to the organization:
133+
134+
Shows all available editors that are allowed by the policies enforced in the
135+
organization with pagination.
136+
137+
```yaml
138+
pagination:
139+
pageSize: 20
140+
filter:
141+
allowedByPolicy: true
142+
```
143+
130144
Args:
145+
filter: filter contains the filter options for listing editors
146+
131147
pagination: pagination contains the pagination options for listing environments
132148
133149
extra_headers: Send extra headers
@@ -141,7 +157,13 @@ def list(
141157
return self._get_api_list(
142158
"/gitpod.v1.EditorService/ListEditors",
143159
page=SyncEditorsPage[Editor],
144-
body=maybe_transform({"pagination": pagination}, editor_list_params.EditorListParams),
160+
body=maybe_transform(
161+
{
162+
"filter": filter,
163+
"pagination": pagination,
164+
},
165+
editor_list_params.EditorListParams,
166+
),
145167
options=make_request_options(
146168
extra_headers=extra_headers,
147169
extra_query=extra_query,
@@ -300,6 +322,7 @@ def list(
300322
*,
301323
token: str | NotGiven = NOT_GIVEN,
302324
page_size: int | NotGiven = NOT_GIVEN,
325+
filter: editor_list_params.Filter | NotGiven = NOT_GIVEN,
303326
pagination: editor_list_params.Pagination | NotGiven = NOT_GIVEN,
304327
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
305328
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -309,7 +332,8 @@ def list(
309332
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
310333
) -> AsyncPaginator[Editor, AsyncEditorsPage[Editor]]:
311334
"""
312-
Lists all available code editors.
335+
Lists all available code editors, optionally filtered to those allowed in an
336+
organization.
313337
314338
Use this method to:
315339
@@ -329,7 +353,21 @@ def list(
329353
pageSize: 20
330354
```
331355
356+
- List editors available to the organization:
357+
358+
Shows all available editors that are allowed by the policies enforced in the
359+
organization with pagination.
360+
361+
```yaml
362+
pagination:
363+
pageSize: 20
364+
filter:
365+
allowedByPolicy: true
366+
```
367+
332368
Args:
369+
filter: filter contains the filter options for listing editors
370+
333371
pagination: pagination contains the pagination options for listing environments
334372
335373
extra_headers: Send extra headers
@@ -343,7 +381,13 @@ def list(
343381
return self._get_api_list(
344382
"/gitpod.v1.EditorService/ListEditors",
345383
page=AsyncEditorsPage[Editor],
346-
body=maybe_transform({"pagination": pagination}, editor_list_params.EditorListParams),
384+
body=maybe_transform(
385+
{
386+
"filter": filter,
387+
"pagination": pagination,
388+
},
389+
editor_list_params.EditorListParams,
390+
),
347391
options=make_request_options(
348392
extra_headers=extra_headers,
349393
extra_query=extra_query,

0 commit comments

Comments
 (0)