Skip to content

feat(api): manual updates #57

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 1 commit 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 .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-bef0e79f204c51c91f5dca61e621e5e31c7494dccccb200e51da0c7654340816.yml
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/gitpod%2Fgitpod-cd6a05ae99d2a050577fa0e729e6ae89b4eacd78f61366a77269398368f8a877.yml
1 change: 0 additions & 1 deletion api.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

```python
from gitpod.types import (
ArbitraryData,
AutomationTrigger,
EnvironmentClass,
ErrorCode,
Expand Down
8 changes: 0 additions & 8 deletions src/gitpod/_exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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)
Expand All @@ -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):
Expand Down
1 change: 0 additions & 1 deletion src/gitpod/types/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
1 change: 0 additions & 1 deletion src/gitpod/types/shared/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
21 changes: 0 additions & 21 deletions src/gitpod/types/shared/arbitrary_data.py

This file was deleted.