Skip to content

release: 0.1.6 #53

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Feb 18, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "0.1.5"
".": "0.1.6"
}
2 changes: 1 addition & 1 deletion .stats.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
configured_endpoints: 111
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/gitpod%2Fgitpod-410f762771ac58738f3d165b19c5e2e9377ebbfa3f090f041e269142cfa2e7f4.yml
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/gitpod%2Fgitpod-bef0e79f204c51c91f5dca61e621e5e31c7494dccccb200e51da0c7654340816.yml
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Changelog

## 0.1.6 (2025-02-18)

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

### Features

* **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))

## 0.1.5 (2025-02-18)

Full Changelog: [v0.1.4...v0.1.5](https://github.com/gitpod-io/gitpod-sdk-python/compare/v0.1.4...v0.1.5)
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "gitpod-sdk"
version = "0.1.5"
version = "0.1.6"
description = "The official Python library for the gitpod API"
dynamic = ["readme"]
license = "Apache-2.0"
Expand Down
2 changes: 1 addition & 1 deletion src/gitpod/_version.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

__title__ = "gitpod"
__version__ = "0.1.5" # x-release-please-version
__version__ = "0.1.6" # x-release-please-version
23 changes: 23 additions & 0 deletions src/gitpod/types/environment_spec.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
"AutomationsFile",
"Content",
"Devcontainer",
"DevcontainerDotfiles",
"Machine",
"Port",
"Secret",
Expand Down Expand Up @@ -50,6 +51,25 @@ class Content(BaseModel):
session: Optional[str] = None


class DevcontainerDotfiles(BaseModel):
repository: str
"""URL of a dotfiles Git repository (e.g. https://github.com/owner/repository)"""

install_command: Optional[str] = FieldInfo(alias="installCommand", default=None)
"""install_command is the command to run after cloning the dotfiles repository.

Defaults to run the first file of `install.sh`, `install`, `bootstrap.sh`,
`bootstrap`, `setup.sh` and `setup` found in the dotfiles repository's root
folder.
"""

target_path: Optional[str] = FieldInfo(alias="targetPath", default=None)
"""target_path is the path to clone the dotfiles repository to.

Defaults to `~/dotfiles`.
"""


class Devcontainer(BaseModel):
devcontainer_file_path: Optional[str] = FieldInfo(alias="devcontainerFilePath", default=None)
"""
Expand All @@ -61,6 +81,9 @@ class Devcontainer(BaseModel):
```
"""

dotfiles: Optional[DevcontainerDotfiles] = None
"""Experimental: dotfiles is the dotfiles configuration of the devcontainer"""

session: Optional[str] = None


Expand Down
25 changes: 24 additions & 1 deletion src/gitpod/types/environment_spec_param.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from __future__ import annotations

from typing import Iterable
from typing_extensions import Annotated, TypedDict
from typing_extensions import Required, Annotated, TypedDict

from .._utils import PropertyInfo
from .admission_level import AdmissionLevel
Expand All @@ -15,6 +15,7 @@
"AutomationsFile",
"Content",
"Devcontainer",
"DevcontainerDotfiles",
"Machine",
"Port",
"Secret",
Expand Down Expand Up @@ -51,6 +52,25 @@ class Content(TypedDict, total=False):
session: str


class DevcontainerDotfiles(TypedDict, total=False):
repository: Required[str]
"""URL of a dotfiles Git repository (e.g. https://github.com/owner/repository)"""

install_command: Annotated[str, PropertyInfo(alias="installCommand")]
"""install_command is the command to run after cloning the dotfiles repository.

Defaults to run the first file of `install.sh`, `install`, `bootstrap.sh`,
`bootstrap`, `setup.sh` and `setup` found in the dotfiles repository's root
folder.
"""

target_path: Annotated[str, PropertyInfo(alias="targetPath")]
"""target_path is the path to clone the dotfiles repository to.

Defaults to `~/dotfiles`.
"""


class Devcontainer(TypedDict, total=False):
devcontainer_file_path: Annotated[str, PropertyInfo(alias="devcontainerFilePath")]
"""
Expand All @@ -62,6 +82,9 @@ class Devcontainer(TypedDict, total=False):
```
"""

dotfiles: DevcontainerDotfiles
"""Experimental: dotfiles is the dotfiles configuration of the devcontainer"""

session: str


Expand Down
2 changes: 1 addition & 1 deletion src/gitpod/types/user.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@


class User(BaseModel):
id: Optional[str] = None
id: str
"""id is a UUID of the user"""

avatar_url: Optional[str] = FieldInfo(alias="avatarUrl", default=None)
Expand Down
20 changes: 20 additions & 0 deletions tests/api_resources/test_environments.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,11 @@ def test_method_create_with_all_params(self, client: Gitpod) -> None:
"desired_phase": "ENVIRONMENT_PHASE_UNSPECIFIED",
"devcontainer": {
"devcontainer_file_path": "devcontainerFilePath",
"dotfiles": {
"repository": "https://example.com",
"install_command": "installCommand",
"target_path": "targetPath",
},
"session": "session",
},
"machine": {
Expand Down Expand Up @@ -360,6 +365,11 @@ def test_method_create_from_project_with_all_params(self, client: Gitpod) -> Non
"desired_phase": "ENVIRONMENT_PHASE_UNSPECIFIED",
"devcontainer": {
"devcontainer_file_path": "devcontainerFilePath",
"dotfiles": {
"repository": "https://example.com",
"install_command": "installCommand",
"target_path": "targetPath",
},
"session": "session",
},
"machine": {
Expand Down Expand Up @@ -609,6 +619,11 @@ async def test_method_create_with_all_params(self, async_client: AsyncGitpod) ->
"desired_phase": "ENVIRONMENT_PHASE_UNSPECIFIED",
"devcontainer": {
"devcontainer_file_path": "devcontainerFilePath",
"dotfiles": {
"repository": "https://example.com",
"install_command": "installCommand",
"target_path": "targetPath",
},
"session": "session",
},
"machine": {
Expand Down Expand Up @@ -906,6 +921,11 @@ async def test_method_create_from_project_with_all_params(self, async_client: As
"desired_phase": "ENVIRONMENT_PHASE_UNSPECIFIED",
"devcontainer": {
"devcontainer_file_path": "devcontainerFilePath",
"dotfiles": {
"repository": "https://example.com",
"install_command": "installCommand",
"target_path": "targetPath",
},
"session": "session",
},
"machine": {
Expand Down