Skip to content

Commit deaa8ed

Browse files
release: 0.1.0-alpha.2 (#17)
* chore: update SDK settings (#16) * feat(api): manual updates (#18) * feat(api): manual updates (#19) * feat(api): manual updates (#20) * release: 0.1.0-alpha.2 --------- Co-authored-by: stainless-app[bot] <142633134+stainless-app[bot]@users.noreply.github.com>
1 parent 0a24e3f commit deaa8ed

Some content is hidden

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

55 files changed

+1530
-77
lines changed

Diff for: .release-please-manifest.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
".": "0.1.0-alpha.1"
2+
".": "0.1.0-alpha.2"
33
}

Diff for: .stats.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
configured_endpoints: 106
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/gitpod%2Fgitpod-da4c36c6b1d973f481abb8eefdeb085d88eaf37eeaba30d276cb3daa405b6f0c.yml
1+
configured_endpoints: 111
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/gitpod%2Fgitpod-36f9d46890bf3667f5a6529bdb156fe1560834ad8187c4271aa0b0024de1adb5.yml

Diff for: CHANGELOG.md

+15
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,20 @@
11
# Changelog
22

3+
## 0.1.0-alpha.2 (2025-02-12)
4+
5+
Full Changelog: [v0.1.0-alpha.1...v0.1.0-alpha.2](https://github.com/gitpod-io/gitpod-sdk-python/compare/v0.1.0-alpha.1...v0.1.0-alpha.2)
6+
7+
### Features
8+
9+
* **api:** manual updates ([#18](https://github.com/gitpod-io/gitpod-sdk-python/issues/18)) ([06b6d24](https://github.com/gitpod-io/gitpod-sdk-python/commit/06b6d240835591bac5f684eb4c5b948ad16c831a))
10+
* **api:** manual updates ([#19](https://github.com/gitpod-io/gitpod-sdk-python/issues/19)) ([ad9f662](https://github.com/gitpod-io/gitpod-sdk-python/commit/ad9f6629f8ba9b829299c3e43efea320f80e9d62))
11+
* **api:** manual updates ([#20](https://github.com/gitpod-io/gitpod-sdk-python/issues/20)) ([1a90a1b](https://github.com/gitpod-io/gitpod-sdk-python/commit/1a90a1bf843979c5ca263e88f36afd04265e7137))
12+
13+
14+
### Chores
15+
16+
* update SDK settings ([#16](https://github.com/gitpod-io/gitpod-sdk-python/issues/16)) ([daa1308](https://github.com/gitpod-io/gitpod-sdk-python/commit/daa13087a8e0e3678365e5ef51cd3db2f4737327))
17+
318
## 0.1.0-alpha.1 (2025-02-11)
419

520
Full Changelog: [v0.0.1-alpha.0...v0.1.0-alpha.1](https://github.com/gitpod-io/gitpod-sdk-python/compare/v0.0.1-alpha.0...v0.1.0-alpha.1)

Diff for: README.md

+3-6
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Gitpod Python API library
22

3-
[![PyPI version](https://img.shields.io/pypi/v/gitpod.svg)](https://pypi.org/project/gitpod/)
3+
[![PyPI version](https://img.shields.io/pypi/v/gitpod-sdk.svg)](https://pypi.org/project/gitpod-sdk/)
44

55
The Gitpod Python library provides convenient access to the Gitpod REST API from any Python 3.8+
66
application. The library includes type definitions for all request params and response fields,
@@ -15,13 +15,10 @@ The REST API documentation can be found on [docs.gitpod.com](https://docs.gitpod
1515
## Installation
1616

1717
```sh
18-
# install from the production repo
19-
pip install git+ssh://[email protected]/gitpod-io/gitpod-sdk-python.git
18+
# install from PyPI
19+
pip install --pre gitpod-sdk
2020
```
2121

22-
> [!NOTE]
23-
> Once this package is [published to PyPI](https://app.stainlessapi.com/docs/guides/publish), this will become: `pip install --pre gitpod`
24-
2522
## Usage
2623

2724
The full API of this library can be found in [api.md](api.md).

Diff for: api.md

+27-4
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,14 @@ from gitpod.types import (
99
Principal,
1010
RunsOn,
1111
Subject,
12+
Task,
1213
TaskExecution,
1314
TaskExecutionMetadata,
1415
TaskExecutionPhase,
1516
TaskExecutionSpec,
1617
TaskExecutionStatus,
18+
TaskMetadata,
19+
TaskSpec,
1720
UserStatus,
1821
)
1922
```
@@ -141,9 +144,6 @@ Types:
141144

142145
```python
143146
from gitpod.types.environments.automations import (
144-
Task,
145-
TaskMetadata,
146-
TaskSpec,
147147
TaskCreateResponse,
148148
TaskRetrieveResponse,
149149
TaskUpdateResponse,
@@ -157,7 +157,7 @@ Methods:
157157
- <code title="post /gitpod.v1.EnvironmentAutomationService/CreateTask">client.environments.automations.tasks.<a href="./src/gitpod/resources/environments/automations/tasks/tasks.py">create</a>(\*\*<a href="src/gitpod/types/environments/automations/task_create_params.py">params</a>) -> <a href="./src/gitpod/types/environments/automations/task_create_response.py">TaskCreateResponse</a></code>
158158
- <code title="post /gitpod.v1.EnvironmentAutomationService/GetTask">client.environments.automations.tasks.<a href="./src/gitpod/resources/environments/automations/tasks/tasks.py">retrieve</a>(\*\*<a href="src/gitpod/types/environments/automations/task_retrieve_params.py">params</a>) -> <a href="./src/gitpod/types/environments/automations/task_retrieve_response.py">TaskRetrieveResponse</a></code>
159159
- <code title="post /gitpod.v1.EnvironmentAutomationService/UpdateTask">client.environments.automations.tasks.<a href="./src/gitpod/resources/environments/automations/tasks/tasks.py">update</a>(\*\*<a href="src/gitpod/types/environments/automations/task_update_params.py">params</a>) -> <a href="./src/gitpod/types/environments/automations/task_update_response.py">object</a></code>
160-
- <code title="post /gitpod.v1.EnvironmentAutomationService/ListTasks">client.environments.automations.tasks.<a href="./src/gitpod/resources/environments/automations/tasks/tasks.py">list</a>(\*\*<a href="src/gitpod/types/environments/automations/task_list_params.py">params</a>) -> <a href="./src/gitpod/types/environments/automations/task.py">SyncTasksPage[Task]</a></code>
160+
- <code title="post /gitpod.v1.EnvironmentAutomationService/ListTasks">client.environments.automations.tasks.<a href="./src/gitpod/resources/environments/automations/tasks/tasks.py">list</a>(\*\*<a href="src/gitpod/types/environments/automations/task_list_params.py">params</a>) -> <a href="./src/gitpod/types/shared/task.py">SyncTasksPage[Task]</a></code>
161161
- <code title="post /gitpod.v1.EnvironmentAutomationService/DeleteTask">client.environments.automations.tasks.<a href="./src/gitpod/resources/environments/automations/tasks/tasks.py">delete</a>(\*\*<a href="src/gitpod/types/environments/automations/task_delete_params.py">params</a>) -> <a href="./src/gitpod/types/environments/automations/task_delete_response.py">object</a></code>
162162
- <code title="post /gitpod.v1.EnvironmentAutomationService/StartTask">client.environments.automations.tasks.<a href="./src/gitpod/resources/environments/automations/tasks/tasks.py">start</a>(\*\*<a href="src/gitpod/types/environments/automations/task_start_params.py">params</a>) -> <a href="./src/gitpod/types/environments/automations/task_start_response.py">TaskStartResponse</a></code>
163163

@@ -259,6 +259,29 @@ Methods:
259259
- <code title="post /gitpod.v1.OrganizationService/ListMembers">client.organizations.<a href="./src/gitpod/resources/organizations/organizations.py">list_members</a>(\*\*<a href="src/gitpod/types/organization_list_members_params.py">params</a>) -> <a href="./src/gitpod/types/organization_member.py">SyncMembersPage[OrganizationMember]</a></code>
260260
- <code title="post /gitpod.v1.OrganizationService/SetRole">client.organizations.<a href="./src/gitpod/resources/organizations/organizations.py">set_role</a>(\*\*<a href="src/gitpod/types/organization_set_role_params.py">params</a>) -> <a href="./src/gitpod/types/organization_set_role_response.py">object</a></code>
261261

262+
## DomainVerifications
263+
264+
Types:
265+
266+
```python
267+
from gitpod.types.organizations import (
268+
DomainVerification,
269+
DomainVerificationState,
270+
DomainVerificationCreateResponse,
271+
DomainVerificationRetrieveResponse,
272+
DomainVerificationDeleteResponse,
273+
DomainVerificationVerifyResponse,
274+
)
275+
```
276+
277+
Methods:
278+
279+
- <code title="post /gitpod.v1.OrganizationService/CreateDomainVerification">client.organizations.domain_verifications.<a href="./src/gitpod/resources/organizations/domain_verifications.py">create</a>(\*\*<a href="src/gitpod/types/organizations/domain_verification_create_params.py">params</a>) -> <a href="./src/gitpod/types/organizations/domain_verification_create_response.py">DomainVerificationCreateResponse</a></code>
280+
- <code title="post /gitpod.v1.OrganizationService/GetDomainVerification">client.organizations.domain_verifications.<a href="./src/gitpod/resources/organizations/domain_verifications.py">retrieve</a>(\*\*<a href="src/gitpod/types/organizations/domain_verification_retrieve_params.py">params</a>) -> <a href="./src/gitpod/types/organizations/domain_verification_retrieve_response.py">DomainVerificationRetrieveResponse</a></code>
281+
- <code title="post /gitpod.v1.OrganizationService/ListDomainVerifications">client.organizations.domain_verifications.<a href="./src/gitpod/resources/organizations/domain_verifications.py">list</a>(\*\*<a href="src/gitpod/types/organizations/domain_verification_list_params.py">params</a>) -> <a href="./src/gitpod/types/organizations/domain_verification.py">SyncDomainVerificationsPage[DomainVerification]</a></code>
282+
- <code title="post /gitpod.v1.OrganizationService/DeleteDomainVerification">client.organizations.domain_verifications.<a href="./src/gitpod/resources/organizations/domain_verifications.py">delete</a>(\*\*<a href="src/gitpod/types/organizations/domain_verification_delete_params.py">params</a>) -> <a href="./src/gitpod/types/organizations/domain_verification_delete_response.py">object</a></code>
283+
- <code title="post /gitpod.v1.OrganizationService/VerifyDomain">client.organizations.domain_verifications.<a href="./src/gitpod/resources/organizations/domain_verifications.py">verify</a>(\*\*<a href="src/gitpod/types/organizations/domain_verification_verify_params.py">params</a>) -> <a href="./src/gitpod/types/organizations/domain_verification_verify_response.py">DomainVerificationVerifyResponse</a></code>
284+
262285
## Invites
263286

264287
Types:

Diff for: pyproject.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
2-
name = "gitpod"
3-
version = "0.1.0-alpha.1"
2+
name = "gitpod-sdk"
3+
version = "0.1.0-alpha.2"
44
description = "The official Python library for the gitpod API"
55
dynamic = ["readme"]
66
license = "Apache-2.0"

Diff for: requirements-dev.lock

+6-6
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
annotated-types==0.6.0
1313
# via pydantic
1414
anyio==4.4.0
15-
# via gitpod
15+
# via gitpod-sdk
1616
# via httpx
1717
argcomplete==3.1.2
1818
# via nox
@@ -25,7 +25,7 @@ dirty-equals==0.6.0
2525
distlib==0.3.7
2626
# via virtualenv
2727
distro==1.8.0
28-
# via gitpod
28+
# via gitpod-sdk
2929
exceptiongroup==1.2.2
3030
# via anyio
3131
# via pytest
@@ -36,7 +36,7 @@ h11==0.14.0
3636
httpcore==1.0.2
3737
# via httpx
3838
httpx==0.28.1
39-
# via gitpod
39+
# via gitpod-sdk
4040
# via respx
4141
idna==3.4
4242
# via anyio
@@ -63,7 +63,7 @@ platformdirs==3.11.0
6363
pluggy==1.5.0
6464
# via pytest
6565
pydantic==2.10.3
66-
# via gitpod
66+
# via gitpod-sdk
6767
pydantic-core==2.27.1
6868
# via pydantic
6969
pygments==2.18.0
@@ -85,14 +85,14 @@ six==1.16.0
8585
# via python-dateutil
8686
sniffio==1.3.0
8787
# via anyio
88-
# via gitpod
88+
# via gitpod-sdk
8989
time-machine==2.9.0
9090
tomli==2.0.2
9191
# via mypy
9292
# via pytest
9393
typing-extensions==4.12.2
9494
# via anyio
95-
# via gitpod
95+
# via gitpod-sdk
9696
# via mypy
9797
# via pydantic
9898
# via pydantic-core

Diff for: requirements.lock

+6-6
Original file line numberDiff line numberDiff line change
@@ -12,33 +12,33 @@
1212
annotated-types==0.6.0
1313
# via pydantic
1414
anyio==4.4.0
15-
# via gitpod
15+
# via gitpod-sdk
1616
# via httpx
1717
certifi==2023.7.22
1818
# via httpcore
1919
# via httpx
2020
distro==1.8.0
21-
# via gitpod
21+
# via gitpod-sdk
2222
exceptiongroup==1.2.2
2323
# via anyio
2424
h11==0.14.0
2525
# via httpcore
2626
httpcore==1.0.2
2727
# via httpx
2828
httpx==0.28.1
29-
# via gitpod
29+
# via gitpod-sdk
3030
idna==3.4
3131
# via anyio
3232
# via httpx
3333
pydantic==2.10.3
34-
# via gitpod
34+
# via gitpod-sdk
3535
pydantic-core==2.27.1
3636
# via pydantic
3737
sniffio==1.3.0
3838
# via anyio
39-
# via gitpod
39+
# via gitpod-sdk
4040
typing-extensions==4.12.2
4141
# via anyio
42-
# via gitpod
42+
# via gitpod-sdk
4343
# via pydantic
4444
# via pydantic-core

Diff for: src/gitpod/_version.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
22

33
__title__ = "gitpod"
4-
__version__ = "0.1.0-alpha.1" # x-release-please-version
4+
__version__ = "0.1.0-alpha.2" # x-release-please-version

Diff for: src/gitpod/pagination.py

+53
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@
99
from ._base_client import BasePage, PageInfo, BaseSyncPage, BaseAsyncPage
1010

1111
__all__ = [
12+
"DomainVerificationsPagePagination",
13+
"SyncDomainVerificationsPage",
14+
"AsyncDomainVerificationsPage",
1215
"EditorsPagePagination",
1316
"SyncEditorsPage",
1417
"AsyncEditorsPage",
@@ -71,6 +74,56 @@
7174
_T = TypeVar("_T")
7275

7376

77+
class DomainVerificationsPagePagination(BaseModel):
78+
next_token: Optional[str] = FieldInfo(alias="nextToken", default=None)
79+
80+
81+
class SyncDomainVerificationsPage(BaseSyncPage[_T], BasePage[_T], Generic[_T]):
82+
domain_verifications: List[_T] = FieldInfo(alias="domainVerifications")
83+
pagination: Optional[DomainVerificationsPagePagination] = None
84+
85+
@override
86+
def _get_page_items(self) -> List[_T]:
87+
domain_verifications = self.domain_verifications
88+
if not domain_verifications:
89+
return []
90+
return domain_verifications
91+
92+
@override
93+
def next_page_info(self) -> Optional[PageInfo]:
94+
next_token = None
95+
if self.pagination is not None:
96+
if self.pagination.next_token is not None:
97+
next_token = self.pagination.next_token
98+
if not next_token:
99+
return None
100+
101+
return PageInfo(params={"token": next_token})
102+
103+
104+
class AsyncDomainVerificationsPage(BaseAsyncPage[_T], BasePage[_T], Generic[_T]):
105+
domain_verifications: List[_T] = FieldInfo(alias="domainVerifications")
106+
pagination: Optional[DomainVerificationsPagePagination] = None
107+
108+
@override
109+
def _get_page_items(self) -> List[_T]:
110+
domain_verifications = self.domain_verifications
111+
if not domain_verifications:
112+
return []
113+
return domain_verifications
114+
115+
@override
116+
def next_page_info(self) -> Optional[PageInfo]:
117+
next_token = None
118+
if self.pagination is not None:
119+
if self.pagination.next_token is not None:
120+
next_token = self.pagination.next_token
121+
if not next_token:
122+
return None
123+
124+
return PageInfo(params={"token": next_token})
125+
126+
74127
class EditorsPagePagination(BaseModel):
75128
next_token: Optional[str] = FieldInfo(alias="nextToken", default=None)
76129

Diff for: src/gitpod/resources/environments/automations/tasks/tasks.py

+7-7
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@
2929
)
3030
from .....pagination import SyncTasksPage, AsyncTasksPage
3131
from ....._base_client import AsyncPaginator, make_request_options
32+
from .....types.shared.task import Task
33+
from .....types.shared_params.task_spec import TaskSpec
3234
from .....types.environments.automations import (
3335
task_list_params,
3436
task_start_params,
@@ -37,9 +39,7 @@
3739
task_update_params,
3840
task_retrieve_params,
3941
)
40-
from .....types.environments.automations.task import Task
41-
from .....types.environments.automations.task_spec_param import TaskSpecParam
42-
from .....types.environments.automations.task_metadata_param import TaskMetadataParam
42+
from .....types.shared_params.task_metadata import TaskMetadata
4343
from .....types.environments.automations.task_start_response import TaskStartResponse
4444
from .....types.environments.automations.task_create_response import TaskCreateResponse
4545
from .....types.environments.automations.task_retrieve_response import TaskRetrieveResponse
@@ -76,8 +76,8 @@ def create(
7676
*,
7777
depends_on: List[str] | NotGiven = NOT_GIVEN,
7878
environment_id: str | NotGiven = NOT_GIVEN,
79-
metadata: TaskMetadataParam | NotGiven = NOT_GIVEN,
80-
spec: TaskSpecParam | NotGiven = NOT_GIVEN,
79+
metadata: TaskMetadata | NotGiven = NOT_GIVEN,
80+
spec: TaskSpec | NotGiven = NOT_GIVEN,
8181
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
8282
# The extra values given here take precedence over values defined on the client or passed to this method.
8383
extra_headers: Headers | None = None,
@@ -344,8 +344,8 @@ async def create(
344344
*,
345345
depends_on: List[str] | NotGiven = NOT_GIVEN,
346346
environment_id: str | NotGiven = NOT_GIVEN,
347-
metadata: TaskMetadataParam | NotGiven = NOT_GIVEN,
348-
spec: TaskSpecParam | NotGiven = NOT_GIVEN,
347+
metadata: TaskMetadata | NotGiven = NOT_GIVEN,
348+
spec: TaskSpec | NotGiven = NOT_GIVEN,
349349
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
350350
# The extra values given here take precedence over values defined on the client or passed to this method.
351351
extra_headers: Headers | None = None,

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

-8
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,6 @@ def list(
248248
token: str | NotGiven = NOT_GIVEN,
249249
page_size: int | NotGiven = NOT_GIVEN,
250250
filter: environment_list_params.Filter | NotGiven = NOT_GIVEN,
251-
organization_id: str | NotGiven = NOT_GIVEN,
252251
pagination: environment_list_params.Pagination | NotGiven = NOT_GIVEN,
253252
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
254253
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -261,8 +260,6 @@ def list(
261260
ListEnvironments returns a list of environments that match the query.
262261
263262
Args:
264-
organization_id: organization_id is the ID of the organization that contains the environments
265-
266263
pagination: pagination contains the pagination options for listing environments
267264
268265
extra_headers: Send extra headers
@@ -279,7 +276,6 @@ def list(
279276
body=maybe_transform(
280277
{
281278
"filter": filter,
282-
"organization_id": organization_id,
283279
"pagination": pagination,
284280
},
285281
environment_list_params.EnvironmentListParams,
@@ -739,7 +735,6 @@ def list(
739735
token: str | NotGiven = NOT_GIVEN,
740736
page_size: int | NotGiven = NOT_GIVEN,
741737
filter: environment_list_params.Filter | NotGiven = NOT_GIVEN,
742-
organization_id: str | NotGiven = NOT_GIVEN,
743738
pagination: environment_list_params.Pagination | NotGiven = NOT_GIVEN,
744739
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
745740
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -752,8 +747,6 @@ def list(
752747
ListEnvironments returns a list of environments that match the query.
753748
754749
Args:
755-
organization_id: organization_id is the ID of the organization that contains the environments
756-
757750
pagination: pagination contains the pagination options for listing environments
758751
759752
extra_headers: Send extra headers
@@ -770,7 +763,6 @@ def list(
770763
body=maybe_transform(
771764
{
772765
"filter": filter,
773-
"organization_id": organization_id,
774766
"pagination": pagination,
775767
},
776768
environment_list_params.EnvironmentListParams,

0 commit comments

Comments
 (0)