diff --git a/.stats.yml b/.stats.yml index 21d6a3d..f08fd6b 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-bef0e79f204c51c91f5dca61e621e5e31c7494dccccb200e51da0c7654340816.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/gitpod%2Fgitpod-cd6a05ae99d2a050577fa0e729e6ae89b4eacd78f61366a77269398368f8a877.yml diff --git a/api.md b/api.md index cc2d93c..e0c317e 100644 --- a/api.md +++ b/api.md @@ -2,7 +2,6 @@ ```python from gitpod.types import ( - ArbitraryData, AutomationTrigger, EnvironmentClass, ErrorCode, diff --git a/src/gitpod/_exceptions.py b/src/gitpod/_exceptions.py index a880564..bb138a9 100644 --- a/src/gitpod/_exceptions.py +++ b/src/gitpod/_exceptions.py @@ -10,7 +10,6 @@ from ._utils import is_dict from ._models import construct_type from .types.shared.error_code import ErrorCode -from .types.shared.arbitrary_data import ArbitraryData __all__ = [ "BadRequestError", @@ -48,11 +47,6 @@ class APIError(GitpodError): The status code, which should be an enum value of [google.rpc.Code][google.rpc.Code]. """ - detail: Optional[ArbitraryData] = None - """ - Contains an arbitrary serialized message along with a @type that describes the - type of the serialized message. - """ def __init__(self, message: str, request: httpx.Request, *, body: object | None) -> None: super().__init__(message) @@ -62,10 +56,8 @@ def __init__(self, message: str, request: httpx.Request, *, body: object | None) if is_dict(body): self.code = cast(Any, construct_type(type_=Optional[ErrorCode], value=body.get("code"))) - self.detail = cast(Any, construct_type(type_=Optional[ArbitraryData], value=body.get("detail"))) else: self.code = None - self.detail = None class APIResponseValidationError(APIError): diff --git a/src/gitpod/types/__init__.py b/src/gitpod/types/__init__.py index 2b8a052..49ac2a0 100644 --- a/src/gitpod/types/__init__.py +++ b/src/gitpod/types/__init__.py @@ -18,7 +18,6 @@ FieldValue as FieldValue, UserStatus as UserStatus, TaskMetadata as TaskMetadata, - ArbitraryData as ArbitraryData, TaskExecution as TaskExecution, EnvironmentClass as EnvironmentClass, OrganizationRole as OrganizationRole, diff --git a/src/gitpod/types/shared/__init__.py b/src/gitpod/types/shared/__init__.py index b4616dc..f4f3788 100644 --- a/src/gitpod/types/shared/__init__.py +++ b/src/gitpod/types/shared/__init__.py @@ -9,7 +9,6 @@ from .field_value import FieldValue as FieldValue from .user_status import UserStatus as UserStatus from .task_metadata import TaskMetadata as TaskMetadata -from .arbitrary_data import ArbitraryData as ArbitraryData from .task_execution import TaskExecution as TaskExecution from .environment_class import EnvironmentClass as EnvironmentClass from .organization_role import OrganizationRole as OrganizationRole diff --git a/src/gitpod/types/shared/arbitrary_data.py b/src/gitpod/types/shared/arbitrary_data.py deleted file mode 100644 index de1ead2..0000000 --- a/src/gitpod/types/shared/arbitrary_data.py +++ /dev/null @@ -1,21 +0,0 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - -from typing import TYPE_CHECKING, Dict, Optional - -from ..._models import BaseModel - -__all__ = ["ArbitraryData"] - - -class ArbitraryData(BaseModel): - debug: Optional[Dict[str, object]] = None - - type: Optional[str] = None - - value: Optional[object] = None - - if TYPE_CHECKING: - # Stub to indicate that arbitrary properties are accepted. - # To access properties that are not valid identifiers you can use `getattr`, e.g. - # `getattr(obj, '$type')` - def __getattr__(self, attr: str) -> object: ...