Skip to content

Commit 7bfbd45

Browse files
feat(api): manual updates (#57)
1 parent 3965c25 commit 7bfbd45

File tree

6 files changed

+1
-33
lines changed

6 files changed

+1
-33
lines changed

.stats.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
configured_endpoints: 111
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/gitpod%2Fgitpod-bef0e79f204c51c91f5dca61e621e5e31c7494dccccb200e51da0c7654340816.yml
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/gitpod%2Fgitpod-cd6a05ae99d2a050577fa0e729e6ae89b4eacd78f61366a77269398368f8a877.yml

api.md

-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
```python
44
from gitpod.types import (
5-
ArbitraryData,
65
AutomationTrigger,
76
EnvironmentClass,
87
ErrorCode,

src/gitpod/_exceptions.py

-8
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
from ._utils import is_dict
1111
from ._models import construct_type
1212
from .types.shared.error_code import ErrorCode
13-
from .types.shared.arbitrary_data import ArbitraryData
1413

1514
__all__ = [
1615
"BadRequestError",
@@ -48,11 +47,6 @@ class APIError(GitpodError):
4847
The status code, which should be an enum value of
4948
[google.rpc.Code][google.rpc.Code].
5049
"""
51-
detail: Optional[ArbitraryData] = None
52-
"""
53-
Contains an arbitrary serialized message along with a @type that describes the
54-
type of the serialized message.
55-
"""
5650

5751
def __init__(self, message: str, request: httpx.Request, *, body: object | None) -> None:
5852
super().__init__(message)
@@ -62,10 +56,8 @@ def __init__(self, message: str, request: httpx.Request, *, body: object | None)
6256

6357
if is_dict(body):
6458
self.code = cast(Any, construct_type(type_=Optional[ErrorCode], value=body.get("code")))
65-
self.detail = cast(Any, construct_type(type_=Optional[ArbitraryData], value=body.get("detail")))
6659
else:
6760
self.code = None
68-
self.detail = None
6961

7062

7163
class APIResponseValidationError(APIError):

src/gitpod/types/__init__.py

-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
FieldValue as FieldValue,
1919
UserStatus as UserStatus,
2020
TaskMetadata as TaskMetadata,
21-
ArbitraryData as ArbitraryData,
2221
TaskExecution as TaskExecution,
2322
EnvironmentClass as EnvironmentClass,
2423
OrganizationRole as OrganizationRole,

src/gitpod/types/shared/__init__.py

-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
from .field_value import FieldValue as FieldValue
1010
from .user_status import UserStatus as UserStatus
1111
from .task_metadata import TaskMetadata as TaskMetadata
12-
from .arbitrary_data import ArbitraryData as ArbitraryData
1312
from .task_execution import TaskExecution as TaskExecution
1413
from .environment_class import EnvironmentClass as EnvironmentClass
1514
from .organization_role import OrganizationRole as OrganizationRole

src/gitpod/types/shared/arbitrary_data.py

-21
This file was deleted.

0 commit comments

Comments
 (0)