diff --git a/.release-please-manifest.json b/.release-please-manifest.json index aaf968a..5547f83 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.1.0-alpha.3" + ".": "0.1.1" } \ No newline at end of file diff --git a/.stats.yml b/.stats.yml index c57d3dc..4f2abc7 100644 --- a/.stats.yml +++ b/.stats.yml @@ -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 diff --git a/CHANGELOG.md b/CHANGELOG.md index 1de3746..56fbfe1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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) diff --git a/README.md b/README.md index d89ac53..468f536 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/pyproject.toml b/pyproject.toml index 988b9c9..e699baf 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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" diff --git a/src/gitpod/_version.py b/src/gitpod/_version.py index a02d208..5c0267d 100644 --- a/src/gitpod/_version.py +++ b/src/gitpod/_version.py @@ -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 diff --git a/src/gitpod/resources/secrets.py b/src/gitpod/resources/secrets.py index 14c6bb4..bcd0b7f 100644 --- a/src/gitpod/resources/secrets.py +++ b/src/gitpod/resources/secrets.py @@ -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 @@ -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 diff --git a/src/gitpod/types/account.py b/src/gitpod/types/account.py index 251e6bd..f84d864 100644 --- a/src/gitpod/types/account.py +++ b/src/gitpod/types/account.py @@ -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 @@ -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 + """ diff --git a/src/gitpod/types/account_membership.py b/src/gitpod/types/account_membership.py index cd27512..10f2603 100644 --- a/src/gitpod/types/account_membership.py +++ b/src/gitpod/types/account_membership.py @@ -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 @@ -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""" @@ -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 + """ diff --git a/src/gitpod/types/editor.py b/src/gitpod/types/editor.py index 6395cc7..96eebfa 100644 --- a/src/gitpod/types/editor.py +++ b/src/gitpod/types/editor.py @@ -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 @@ -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) diff --git a/src/gitpod/types/joinable_organization.py b/src/gitpod/types/joinable_organization.py index 3368601..a5b6cb6 100644 --- a/src/gitpod/types/joinable_organization.py +++ b/src/gitpod/types/joinable_organization.py @@ -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 @@ -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""" diff --git a/src/gitpod/types/login_provider.py b/src/gitpod/types/login_provider.py index 7ff022b..e23ebd8 100644 --- a/src/gitpod/types/login_provider.py +++ b/src/gitpod/types/login_provider.py @@ -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 @@ -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" + """ diff --git a/src/gitpod/types/organizations/domain_verification.py b/src/gitpod/types/organizations/domain_verification.py index 693e613..abb3605 100644 --- a/src/gitpod/types/organizations/domain_verification.py +++ b/src/gitpod/types/organizations/domain_verification.py @@ -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 @@ -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 diff --git a/src/gitpod/types/organizations/sso_configuration.py b/src/gitpod/types/organizations/sso_configuration.py index c12bf7c..4ae9912 100644 --- a/src/gitpod/types/organizations/sso_configuration.py +++ b/src/gitpod/types/organizations/sso_configuration.py @@ -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""" @@ -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) diff --git a/src/gitpod/types/secret_create_params.py b/src/gitpod/types/secret_create_params.py index 81da5d9..e59b270 100644 --- a/src/gitpod/types/secret_create_params.py +++ b/src/gitpod/types/secret_create_params.py @@ -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")] diff --git a/tests/api_resources/test_secrets.py b/tests/api_resources/test_secrets.py index 439581a..dfe5cd1 100644 --- a/tests/api_resources/test_secrets.py +++ b/tests/api_resources/test_secrets.py @@ -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", @@ -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",