Skip to content

Commit c4f1725

Browse files
release: 0.1.5 (#50)
* feat(api): manual updates (#49) * release: 0.1.5 --------- Co-authored-by: stainless-app[bot] <142633134+stainless-app[bot]@users.noreply.github.com>
1 parent 3fb199d commit c4f1725

28 files changed

+47
-56
lines changed

.release-please-manifest.json

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

.stats.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
configured_endpoints: 111
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/gitpod%2Fgitpod-f6598ab5d6827f66b642201769e92590ea32af84ebbf24b18cc32b33dee5107e.yml
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/gitpod%2Fgitpod-410f762771ac58738f3d165b19c5e2e9377ebbfa3f090f041e269142cfa2e7f4.yml

CHANGELOG.md

+8
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
# Changelog
22

3+
## 0.1.5 (2025-02-18)
4+
5+
Full Changelog: [v0.1.4...v0.1.5](https://github.com/gitpod-io/gitpod-sdk-python/compare/v0.1.4...v0.1.5)
6+
7+
### Features
8+
9+
* **api:** manual updates ([#49](https://github.com/gitpod-io/gitpod-sdk-python/issues/49)) ([3e29d91](https://github.com/gitpod-io/gitpod-sdk-python/commit/3e29d910f0c75eacbe0693cc82c68063f2782fc2))
10+
311
## 0.1.4 (2025-02-18)
412

513
Full Changelog: [v0.1.3...v0.1.4](https://github.com/gitpod-io/gitpod-sdk-python/compare/v0.1.3...v0.1.4)

pyproject.toml

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

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.4" # x-release-please-version
4+
__version__ = "0.1.5" # x-release-please-version
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
22

3-
from typing import Optional
43

54
from .._models import BaseModel
65
from .environment import Environment
@@ -9,5 +8,5 @@
98

109

1110
class EnvironmentCreateFromProjectResponse(BaseModel):
12-
environment: Optional[Environment] = None
11+
environment: Environment
1312
"""+resource get environment"""
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
22

3-
from typing import Optional
43

54
from pydantic import Field as FieldInfo
65

@@ -10,7 +9,7 @@
109

1110

1211
class EnvironmentCreateLogsTokenResponse(BaseModel):
13-
access_token: Optional[str] = FieldInfo(alias="accessToken", default=None)
12+
access_token: str = FieldInfo(alias="accessToken")
1413
"""
1514
access_token is the token that can be used to access the logs of the environment
1615
"""
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
22

3-
from typing import Optional
43

54
from .._models import BaseModel
65
from .environment import Environment
@@ -9,5 +8,5 @@
98

109

1110
class EnvironmentCreateResponse(BaseModel):
12-
environment: Optional[Environment] = None
11+
environment: Environment
1312
"""+resource get environment"""
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
22

3-
from typing import Optional
43

54
from .._models import BaseModel
65
from .environment import Environment
@@ -9,5 +8,5 @@
98

109

1110
class EnvironmentRetrieveResponse(BaseModel):
12-
environment: Optional[Environment] = None
11+
environment: Environment
1312
"""+resource get environment"""
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
22

3-
from typing import Optional
43

54
from .service import Service
65
from ...._models import BaseModel
@@ -9,4 +8,4 @@
98

109

1110
class ServiceCreateResponse(BaseModel):
12-
service: Optional[Service] = None
11+
service: Service
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
22

3-
from typing import Optional
43

54
from .service import Service
65
from ...._models import BaseModel
@@ -9,4 +8,4 @@
98

109

1110
class ServiceRetrieveResponse(BaseModel):
12-
service: Optional[Service] = None
11+
service: Service
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
22

3-
from typing import Optional
43

54
from ...._models import BaseModel
65
from ...shared.task import Task
@@ -9,4 +8,4 @@
98

109

1110
class TaskCreateResponse(BaseModel):
12-
task: Optional[Task] = None
11+
task: Task
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
22

3-
from typing import Optional
43

54
from ...._models import BaseModel
65
from ...shared.task import Task
@@ -9,4 +8,4 @@
98

109

1110
class TaskRetrieveResponse(BaseModel):
12-
task: Optional[Task] = None
11+
task: Task

src/gitpod/types/environments/automations/task_start_response.py

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

3-
from typing import Optional
43

54
from pydantic import Field as FieldInfo
65

@@ -11,4 +10,4 @@
1110

1211

1312
class TaskStartResponse(BaseModel):
14-
task_execution: Optional[TaskExecution] = FieldInfo(alias="taskExecution", default=None)
13+
task_execution: TaskExecution = FieldInfo(alias="taskExecution")

src/gitpod/types/environments/automations/tasks/execution_retrieve_response.py

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

3-
from typing import Optional
43

54
from pydantic import Field as FieldInfo
65

@@ -11,4 +10,4 @@
1110

1211

1312
class ExecutionRetrieveResponse(BaseModel):
14-
task_execution: Optional[TaskExecution] = FieldInfo(alias="taskExecution", default=None)
13+
task_execution: TaskExecution = FieldInfo(alias="taskExecution")

src/gitpod/types/runner_create_response.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111

1212

1313
class RunnerCreateResponse(BaseModel):
14+
runner: Runner
15+
1416
access_token: Optional[str] = FieldInfo(alias="accessToken", default=None)
1517
"""deprecated, will be removed. Use exchange_token instead."""
1618

@@ -20,5 +22,3 @@ class RunnerCreateResponse(BaseModel):
2022
for an access token, using the IdentityService.ExchangeToken rpc. The token
2123
expires after 24 hours.
2224
"""
23-
24-
runner: Optional[Runner] = None
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
22

3-
from typing import Optional
43

54
from .runner import Runner
65
from .._models import BaseModel
@@ -9,4 +8,4 @@
98

109

1110
class RunnerRetrieveResponse(BaseModel):
12-
runner: Optional[Runner] = None
11+
runner: Runner

src/gitpod/types/runners/configurations/host_authentication_token.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313

1414
class HostAuthenticationToken(BaseModel):
15-
id: Optional[str] = None
15+
id: str
1616

1717
expires_at: Optional[datetime] = FieldInfo(alias="expiresAt", default=None)
1818
"""
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
22

3-
from typing import Optional
43

54
from ...._models import BaseModel
65
from .host_authentication_token import HostAuthenticationToken
@@ -9,4 +8,4 @@
98

109

1110
class HostAuthenticationTokenCreateResponse(BaseModel):
12-
token: Optional[HostAuthenticationToken] = None
11+
token: HostAuthenticationToken
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
22

3-
from typing import Optional
43

54
from ...._models import BaseModel
65
from .host_authentication_token import HostAuthenticationToken
@@ -9,4 +8,4 @@
98

109

1110
class HostAuthenticationTokenRetrieveResponse(BaseModel):
12-
token: Optional[HostAuthenticationToken] = None
11+
token: HostAuthenticationToken
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
22

3-
from typing import Optional
43

54
from ..._models import BaseModel
65
from .runner_policy import RunnerPolicy
@@ -9,4 +8,4 @@
98

109

1110
class PolicyCreateResponse(BaseModel):
12-
policy: Optional[RunnerPolicy] = None
11+
policy: RunnerPolicy
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
22

3-
from typing import Optional
43

54
from ..._models import BaseModel
65
from .runner_policy import RunnerPolicy
@@ -9,4 +8,4 @@
98

109

1110
class PolicyUpdateResponse(BaseModel):
12-
policy: Optional[RunnerPolicy] = None
11+
policy: RunnerPolicy

src/gitpod/types/shared/environment_class.py

+6-6
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,12 @@ class EnvironmentClass(BaseModel):
1414
id: str
1515
"""id is the unique identifier of the environment class"""
1616

17+
runner_id: str = FieldInfo(alias="runnerId")
18+
"""
19+
runner_id is the unique identifier of the runner the environment class belongs
20+
to
21+
"""
22+
1723
configuration: Optional[List[FieldValue]] = None
1824
"""configuration describes the configuration of the environment class"""
1925

@@ -28,9 +34,3 @@ class EnvironmentClass(BaseModel):
2834
enabled indicates whether the environment class can be used to create new
2935
environments.
3036
"""
31-
32-
runner_id: Optional[str] = FieldInfo(alias="runnerId", default=None)
33-
"""
34-
runner_id is the unique identifier of the runner the environment class belongs
35-
to
36-
"""

src/gitpod/types/shared/task_execution.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212

1313
class TaskExecution(BaseModel):
14-
id: Optional[str] = None
14+
id: str
1515

1616
metadata: Optional[TaskExecutionMetadata] = None
1717

src/gitpod/types/shared_params/environment_class.py

+6-6
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,12 @@ class EnvironmentClass(TypedDict, total=False):
1515
id: Required[str]
1616
"""id is the unique identifier of the environment class"""
1717

18+
runner_id: Required[Annotated[str, PropertyInfo(alias="runnerId")]]
19+
"""
20+
runner_id is the unique identifier of the runner the environment class belongs
21+
to
22+
"""
23+
1824
configuration: Iterable[FieldValue]
1925
"""configuration describes the configuration of the environment class"""
2026

@@ -29,9 +35,3 @@ class EnvironmentClass(TypedDict, total=False):
2935
enabled indicates whether the environment class can be used to create new
3036
environments.
3137
"""
32-
33-
runner_id: Annotated[str, PropertyInfo(alias="runnerId")]
34-
"""
35-
runner_id is the unique identifier of the runner the environment class belongs
36-
to
37-
"""
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
22

3-
from typing import Optional
43

54
from .user import User
65
from .._models import BaseModel
@@ -9,4 +8,4 @@
98

109

1110
class UserGetAuthenticatedUserResponse(BaseModel):
12-
user: Optional[User] = None
11+
user: User
+1-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
22

3-
from typing import Optional
43

54
from ..._models import BaseModel
65
from .personal_access_token import PersonalAccessToken
@@ -9,4 +8,4 @@
98

109

1110
class PatGetResponse(BaseModel):
12-
pat: Optional[PersonalAccessToken] = None
11+
pat: PersonalAccessToken

tests/api_resources/runners/test_configurations.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ def test_method_validate_with_all_params(self, client: Gitpod) -> None:
2929
configuration = client.runners.configurations.validate(
3030
environment_class={
3131
"id": "id",
32+
"runner_id": "runnerId",
3233
"configuration": [
3334
{
3435
"key": "key",
@@ -38,7 +39,6 @@ def test_method_validate_with_all_params(self, client: Gitpod) -> None:
3839
"description": "xxx",
3940
"display_name": "xxx",
4041
"enabled": True,
41-
"runner_id": "runnerId",
4242
},
4343
runner_id="182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
4444
scm_integration={
@@ -91,6 +91,7 @@ async def test_method_validate_with_all_params(self, async_client: AsyncGitpod)
9191
configuration = await async_client.runners.configurations.validate(
9292
environment_class={
9393
"id": "id",
94+
"runner_id": "runnerId",
9495
"configuration": [
9596
{
9697
"key": "key",
@@ -100,7 +101,6 @@ async def test_method_validate_with_all_params(self, async_client: AsyncGitpod)
100101
"description": "xxx",
101102
"display_name": "xxx",
102103
"enabled": True,
103-
"runner_id": "runnerId",
104104
},
105105
runner_id="182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
106106
scm_integration={

0 commit comments

Comments
 (0)