Skip to content

Commit d55ec7f

Browse files
release: 0.1.6 (#53)
* feat(api): manual updates (#52) * release: 0.1.6 --------- Co-authored-by: stainless-app[bot] <142633134+stainless-app[bot]@users.noreply.github.com>
1 parent c4f1725 commit d55ec7f

9 files changed

+80
-6
lines changed

.release-please-manifest.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
".": "0.1.5"
2+
".": "0.1.6"
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-410f762771ac58738f3d165b19c5e2e9377ebbfa3f090f041e269142cfa2e7f4.yml
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/gitpod%2Fgitpod-bef0e79f204c51c91f5dca61e621e5e31c7494dccccb200e51da0c7654340816.yml

CHANGELOG.md

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

3+
## 0.1.6 (2025-02-18)
4+
5+
Full Changelog: [v0.1.5...v0.1.6](https://github.com/gitpod-io/gitpod-sdk-python/compare/v0.1.5...v0.1.6)
6+
7+
### Features
8+
9+
* **api:** manual updates ([#52](https://github.com/gitpod-io/gitpod-sdk-python/issues/52)) ([0f10942](https://github.com/gitpod-io/gitpod-sdk-python/commit/0f1094287dd9f709e0f6b63760f0d7b6fa7b135a))
10+
311
## 0.1.5 (2025-02-18)
412

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

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.5"
3+
version = "0.1.6"
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.5" # x-release-please-version
4+
__version__ = "0.1.6" # x-release-please-version

src/gitpod/types/environment_spec.py

+23
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
"AutomationsFile",
1515
"Content",
1616
"Devcontainer",
17+
"DevcontainerDotfiles",
1718
"Machine",
1819
"Port",
1920
"Secret",
@@ -50,6 +51,25 @@ class Content(BaseModel):
5051
session: Optional[str] = None
5152

5253

54+
class DevcontainerDotfiles(BaseModel):
55+
repository: str
56+
"""URL of a dotfiles Git repository (e.g. https://github.com/owner/repository)"""
57+
58+
install_command: Optional[str] = FieldInfo(alias="installCommand", default=None)
59+
"""install_command is the command to run after cloning the dotfiles repository.
60+
61+
Defaults to run the first file of `install.sh`, `install`, `bootstrap.sh`,
62+
`bootstrap`, `setup.sh` and `setup` found in the dotfiles repository's root
63+
folder.
64+
"""
65+
66+
target_path: Optional[str] = FieldInfo(alias="targetPath", default=None)
67+
"""target_path is the path to clone the dotfiles repository to.
68+
69+
Defaults to `~/dotfiles`.
70+
"""
71+
72+
5373
class Devcontainer(BaseModel):
5474
devcontainer_file_path: Optional[str] = FieldInfo(alias="devcontainerFilePath", default=None)
5575
"""
@@ -61,6 +81,9 @@ class Devcontainer(BaseModel):
6181
```
6282
"""
6383

84+
dotfiles: Optional[DevcontainerDotfiles] = None
85+
"""Experimental: dotfiles is the dotfiles configuration of the devcontainer"""
86+
6487
session: Optional[str] = None
6588

6689

src/gitpod/types/environment_spec_param.py

+24-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
from __future__ import annotations
44

55
from typing import Iterable
6-
from typing_extensions import Annotated, TypedDict
6+
from typing_extensions import Required, Annotated, TypedDict
77

88
from .._utils import PropertyInfo
99
from .admission_level import AdmissionLevel
@@ -15,6 +15,7 @@
1515
"AutomationsFile",
1616
"Content",
1717
"Devcontainer",
18+
"DevcontainerDotfiles",
1819
"Machine",
1920
"Port",
2021
"Secret",
@@ -51,6 +52,25 @@ class Content(TypedDict, total=False):
5152
session: str
5253

5354

55+
class DevcontainerDotfiles(TypedDict, total=False):
56+
repository: Required[str]
57+
"""URL of a dotfiles Git repository (e.g. https://github.com/owner/repository)"""
58+
59+
install_command: Annotated[str, PropertyInfo(alias="installCommand")]
60+
"""install_command is the command to run after cloning the dotfiles repository.
61+
62+
Defaults to run the first file of `install.sh`, `install`, `bootstrap.sh`,
63+
`bootstrap`, `setup.sh` and `setup` found in the dotfiles repository's root
64+
folder.
65+
"""
66+
67+
target_path: Annotated[str, PropertyInfo(alias="targetPath")]
68+
"""target_path is the path to clone the dotfiles repository to.
69+
70+
Defaults to `~/dotfiles`.
71+
"""
72+
73+
5474
class Devcontainer(TypedDict, total=False):
5575
devcontainer_file_path: Annotated[str, PropertyInfo(alias="devcontainerFilePath")]
5676
"""
@@ -62,6 +82,9 @@ class Devcontainer(TypedDict, total=False):
6282
```
6383
"""
6484

85+
dotfiles: DevcontainerDotfiles
86+
"""Experimental: dotfiles is the dotfiles configuration of the devcontainer"""
87+
6588
session: str
6689

6790

src/gitpod/types/user.py

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

1313

1414
class User(BaseModel):
15-
id: Optional[str] = None
15+
id: str
1616
"""id is a UUID of the user"""
1717

1818
avatar_url: Optional[str] = FieldInfo(alias="avatarUrl", default=None)

tests/api_resources/test_environments.py

+20
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,11 @@ def test_method_create_with_all_params(self, client: Gitpod) -> None:
6363
"desired_phase": "ENVIRONMENT_PHASE_UNSPECIFIED",
6464
"devcontainer": {
6565
"devcontainer_file_path": "devcontainerFilePath",
66+
"dotfiles": {
67+
"repository": "https://example.com",
68+
"install_command": "installCommand",
69+
"target_path": "targetPath",
70+
},
6671
"session": "session",
6772
},
6873
"machine": {
@@ -360,6 +365,11 @@ def test_method_create_from_project_with_all_params(self, client: Gitpod) -> Non
360365
"desired_phase": "ENVIRONMENT_PHASE_UNSPECIFIED",
361366
"devcontainer": {
362367
"devcontainer_file_path": "devcontainerFilePath",
368+
"dotfiles": {
369+
"repository": "https://example.com",
370+
"install_command": "installCommand",
371+
"target_path": "targetPath",
372+
},
363373
"session": "session",
364374
},
365375
"machine": {
@@ -609,6 +619,11 @@ async def test_method_create_with_all_params(self, async_client: AsyncGitpod) ->
609619
"desired_phase": "ENVIRONMENT_PHASE_UNSPECIFIED",
610620
"devcontainer": {
611621
"devcontainer_file_path": "devcontainerFilePath",
622+
"dotfiles": {
623+
"repository": "https://example.com",
624+
"install_command": "installCommand",
625+
"target_path": "targetPath",
626+
},
612627
"session": "session",
613628
},
614629
"machine": {
@@ -906,6 +921,11 @@ async def test_method_create_from_project_with_all_params(self, async_client: As
906921
"desired_phase": "ENVIRONMENT_PHASE_UNSPECIFIED",
907922
"devcontainer": {
908923
"devcontainer_file_path": "devcontainerFilePath",
924+
"dotfiles": {
925+
"repository": "https://example.com",
926+
"install_command": "installCommand",
927+
"target_path": "targetPath",
928+
},
909929
"session": "session",
910930
},
911931
"machine": {

0 commit comments

Comments
 (0)