Skip to content

release: 0.1.1 #35

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 5 commits into from
Feb 14, 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.0-alpha.3"
".": "0.1.1"
}
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-988164042da1361feb3d28364c6f14fee775ceab496b9d79d048141c0fa6da19.yml
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/gitpod%2Fgitpod-27f7bd641de1e4657ad8ce84a456fe0c5e8f1e14779bf1f567a4bc8667eba4da.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.1 (2025-02-14)

Full Changelog: [v0.1.0-alpha.3...v0.1.1](https://github.com/gitpod-io/gitpod-sdk-python/compare/v0.1.0-alpha.3...v0.1.1)

### Features

* **api:** manual updates ([#34](https://github.com/gitpod-io/gitpod-sdk-python/issues/34)) ([fb5ff55](https://github.com/gitpod-io/gitpod-sdk-python/commit/fb5ff55a252bf6d6bee4dd33b732680cf3100a40))

## 0.1.0-alpha.3 (2025-02-14)

Full Changelog: [v0.1.0-alpha.2...v0.1.0-alpha.3](https://github.com/gitpod-io/gitpod-sdk-python/compare/v0.1.0-alpha.2...v0.1.0-alpha.3)
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ The REST API documentation can be found on [docs.gitpod.io](https://docs.gitpod.

```sh
# install from PyPI
pip install --pre gitpod-sdk
pip install gitpod-sdk
```

## Usage
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.0-alpha.3"
version = "0.1.1"
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.0-alpha.3" # x-release-please-version
__version__ = "0.1.1" # x-release-please-version
12 changes: 2 additions & 10 deletions src/gitpod/resources/secrets.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,11 +74,7 @@ def create(

Args:
container_registry_basic_auth_host: secret will be mounted as a docker config in the environment VM, mount will have
the docker host value must be a valid registry hostname with optional port:

```
this.matches("^[a-zA-Z0-9][a-zA-Z0-9.-]*[a-zA-Z0-9](:[0-9]+)?$")
```
the docker registry host

environment_variable: secret will be created as an Environment Variable with the same name as the
secret
Expand Down Expand Up @@ -324,11 +320,7 @@ async def create(

Args:
container_registry_basic_auth_host: secret will be mounted as a docker config in the environment VM, mount will have
the docker host value must be a valid registry hostname with optional port:

```
this.matches("^[a-zA-Z0-9][a-zA-Z0-9.-]*[a-zA-Z0-9](:[0-9]+)?$")
```
the docker registry host

environment_variable: secret will be created as an Environment Variable with the same name as the
secret
Expand Down
12 changes: 6 additions & 6 deletions src/gitpod/types/account.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,12 +111,6 @@ class Account(BaseModel):

name: str

public_email_provider: bool = FieldInfo(alias="publicEmailProvider")
"""
public_email_provider is true if the email for the Account matches a known
public email provider
"""

updated_at: datetime = FieldInfo(alias="updatedAt")
"""
A Timestamp represents a point in time independent of any time zone or local
Expand Down Expand Up @@ -220,3 +214,9 @@ class Account(BaseModel):
organization_id is the ID of the organization the account is owned by if it's
created through custom SSO
"""

public_email_provider: Optional[bool] = FieldInfo(alias="publicEmailProvider", default=None)
"""
public_email_provider is true if the email for the Account matches a known
public email provider
"""
13 changes: 7 additions & 6 deletions src/gitpod/types/account_membership.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

from typing import Optional

from pydantic import Field as FieldInfo

Expand All @@ -13,12 +14,6 @@ class AccountMembership(BaseModel):
organization_id: str = FieldInfo(alias="organizationId")
"""organization_id is the id of the organization the user is a member of"""

organization_member_count: int = FieldInfo(alias="organizationMemberCount")
"""
organization_name is the member count of the organization the user is a member
of
"""

organization_name: str = FieldInfo(alias="organizationName")
"""organization_name is the name of the organization the user is a member of"""

Expand All @@ -27,3 +22,9 @@ class AccountMembership(BaseModel):

user_role: OrganizationRole = FieldInfo(alias="userRole")
"""user_role is the role the user has in the organization"""

organization_member_count: Optional[int] = FieldInfo(alias="organizationMemberCount", default=None)
"""
organization_name is the member count of the organization the user is a member
of
"""
13 changes: 7 additions & 6 deletions src/gitpod/types/editor.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

from typing import Optional

from pydantic import Field as FieldInfo

Expand All @@ -11,14 +12,14 @@
class Editor(BaseModel):
id: str

alias: str

icon_url: str = FieldInfo(alias="iconUrl")

installation_instructions: str = FieldInfo(alias="installationInstructions")

name: str

short_description: str = FieldInfo(alias="shortDescription")

url_template: str = FieldInfo(alias="urlTemplate")

alias: Optional[str] = None

icon_url: Optional[str] = FieldInfo(alias="iconUrl", default=None)

short_description: Optional[str] = FieldInfo(alias="shortDescription", default=None)
9 changes: 5 additions & 4 deletions src/gitpod/types/joinable_organization.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

from typing import Optional

from pydantic import Field as FieldInfo

Expand All @@ -12,11 +13,11 @@ class JoinableOrganization(BaseModel):
organization_id: str = FieldInfo(alias="organizationId")
"""organization_id is the id of the organization the user can join"""

organization_member_count: int = FieldInfo(alias="organizationMemberCount")
organization_name: str = FieldInfo(alias="organizationName")
"""organization_name is the name of the organization the user can join"""

organization_member_count: Optional[int] = FieldInfo(alias="organizationMemberCount", default=None)
"""
organization_member_count is the member count of the organization the user can
join
"""

organization_name: str = FieldInfo(alias="organizationName")
"""organization_name is the name of the organization the user can join"""
10 changes: 7 additions & 3 deletions src/gitpod/types/login_provider.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

from typing import Optional

from pydantic import Field as FieldInfo

Expand All @@ -9,11 +10,14 @@


class LoginProvider(BaseModel):
login_url: str = FieldInfo(alias="loginUrl")
"""login_url is the URL to redirect the browser agent to for login"""

provider: str
"""provider is the provider used by this login method, e.g.

"github", "google", "custom"
"""

login_url: Optional[str] = FieldInfo(alias="loginUrl", default=None)
"""
login_url is the URL to redirect the browser agent to for login, when provider
is "custom"
"""
3 changes: 2 additions & 1 deletion src/gitpod/types/organizations/domain_verification.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

from typing import Optional
from datetime import datetime

from pydantic import Field as FieldInfo
Expand All @@ -19,7 +20,7 @@ class DomainVerification(BaseModel):

state: DomainVerificationState

verified_at: datetime = FieldInfo(alias="verifiedAt")
verified_at: Optional[datetime] = FieldInfo(alias="verifiedAt", default=None)
"""
A Timestamp represents a point in time independent of any time zone or local
calendar, encoded as a count of seconds and fractions of seconds at nanosecond
Expand Down
10 changes: 5 additions & 5 deletions src/gitpod/types/organizations/sso_configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,6 @@ class SSOConfiguration(BaseModel):
id: str
"""id is the unique identifier of the SSO configuration"""

client_id: str = FieldInfo(alias="clientId")
"""client_id is the client ID of the OIDC application set on the IdP"""

email_domain: str = FieldInfo(alias="emailDomain")

issuer_url: str = FieldInfo(alias="issuerUrl")
"""issuer_url is the URL of the IdP issuer"""

Expand All @@ -33,3 +28,8 @@ class SSOConfiguration(BaseModel):

claims: Optional[Dict[str, str]] = None
"""claims are key/value pairs that defines a mapping of claims issued by the IdP."""

client_id: Optional[str] = FieldInfo(alias="clientId", default=None)
"""client_id is the client ID of the OIDC application set on the IdP"""

email_domain: Optional[str] = FieldInfo(alias="emailDomain", default=None)
6 changes: 1 addition & 5 deletions src/gitpod/types/secret_create_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,7 @@ class SecretCreateParams(TypedDict, total=False):
container_registry_basic_auth_host: Annotated[str, PropertyInfo(alias="containerRegistryBasicAuthHost")]
"""
secret will be mounted as a docker config in the environment VM, mount will have
the docker host value must be a valid registry hostname with optional port:

```
this.matches('^[a-zA-Z0-9][a-zA-Z0-9.-]*[a-zA-Z0-9](:[0-9]+)?$')
```
the docker registry host
"""

environment_variable: Annotated[bool, PropertyInfo(alias="environmentVariable")]
Expand Down
4 changes: 2 additions & 2 deletions tests/api_resources/test_secrets.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def test_method_create(self, client: Gitpod) -> None:
@parametrize
def test_method_create_with_all_params(self, client: Gitpod) -> None:
secret = client.secrets.create(
container_registry_basic_auth_host="containerRegistryBasicAuthHost",
container_registry_basic_auth_host="https://example.com",
environment_variable=True,
file_path="filePath",
name="name",
Expand Down Expand Up @@ -228,7 +228,7 @@ async def test_method_create(self, async_client: AsyncGitpod) -> None:
@parametrize
async def test_method_create_with_all_params(self, async_client: AsyncGitpod) -> None:
secret = await async_client.secrets.create(
container_registry_basic_auth_host="containerRegistryBasicAuthHost",
container_registry_basic_auth_host="https://example.com",
environment_variable=True,
file_path="filePath",
name="name",
Expand Down