Skip to content

Commit 497ae18

Browse files
chore(internal): codegen related update
1 parent 2ac41b3 commit 497ae18

26 files changed

+50
-55
lines changed

src/gitpod/resources/environment_classes.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
from __future__ import annotations
44

5-
from typing import Union
65
from typing_extensions import Literal
76

87
import httpx
@@ -53,7 +52,7 @@ def list(
5352
self,
5453
*,
5554
connect_protocol_version: Literal[1],
56-
filter: Union[object, object] | NotGiven = NOT_GIVEN,
55+
filter: object | NotGiven = NOT_GIVEN,
5756
pagination: environment_class_list_params.Pagination | NotGiven = NOT_GIVEN,
5857
connect_timeout_ms: float | NotGiven = NOT_GIVEN,
5958
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -133,7 +132,7 @@ async def list(
133132
self,
134133
*,
135134
connect_protocol_version: Literal[1],
136-
filter: Union[object, object] | NotGiven = NOT_GIVEN,
135+
filter: object | NotGiven = NOT_GIVEN,
137136
pagination: environment_class_list_params.Pagination | NotGiven = NOT_GIVEN,
138137
connect_timeout_ms: float | NotGiven = NOT_GIVEN,
139138
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.

src/gitpod/resources/projects.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
from __future__ import annotations
44

5-
from typing import Union
65
from typing_extensions import Literal
76

87
import httpx
@@ -58,7 +57,7 @@ def with_streaming_response(self) -> ProjectsResourceWithStreamingResponse:
5857
def create(
5958
self,
6059
*,
61-
environment_class: Union[object, object, object],
60+
environment_class: object,
6261
initializer: project_create_params.Initializer,
6362
connect_protocol_version: Literal[1],
6463
automations_file_path: str | NotGiven = NOT_GIVEN,
@@ -260,7 +259,7 @@ def with_streaming_response(self) -> AsyncProjectsResourceWithStreamingResponse:
260259
async def create(
261260
self,
262261
*,
263-
environment_class: Union[object, object, object],
262+
environment_class: object,
264263
initializer: project_create_params.Initializer,
265264
connect_protocol_version: Literal[1],
266265
automations_file_path: str | NotGiven = NOT_GIVEN,

src/gitpod/resources/runner_configurations/environment_classes.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
from __future__ import annotations
44

5-
from typing import Union
65
from typing_extensions import Literal
76

87
import httpx
@@ -100,7 +99,7 @@ def list(
10099
self,
101100
*,
102101
connect_protocol_version: Literal[1],
103-
filter: Union[object, object] | NotGiven = NOT_GIVEN,
102+
filter: object | NotGiven = NOT_GIVEN,
104103
pagination: environment_class_list_params.Pagination | NotGiven = NOT_GIVEN,
105104
connect_timeout_ms: float | NotGiven = NOT_GIVEN,
106105
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -226,7 +225,7 @@ async def list(
226225
self,
227226
*,
228227
connect_protocol_version: Literal[1],
229-
filter: Union[object, object] | NotGiven = NOT_GIVEN,
228+
filter: object | NotGiven = NOT_GIVEN,
230229
pagination: environment_class_list_params.Pagination | NotGiven = NOT_GIVEN,
231230
connect_timeout_ms: float | NotGiven = NOT_GIVEN,
232231
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.

src/gitpod/types/environment_class_list_params.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
from __future__ import annotations
44

5-
from typing import Union
65
from typing_extensions import Literal, Required, Annotated, TypedDict
76

87
from .._utils import PropertyInfo
@@ -14,7 +13,7 @@ class EnvironmentClassListParams(TypedDict, total=False):
1413
connect_protocol_version: Required[Annotated[Literal[1], PropertyInfo(alias="Connect-Protocol-Version")]]
1514
"""Define the version of the Connect protocol"""
1615

17-
filter: Union[object, object]
16+
filter: object
1817

1918
pagination: Pagination
2019
"""pagination contains the pagination options for listing environment classes"""

src/gitpod/types/environments/automation_upsert_params.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
from __future__ import annotations
44

5-
from typing import Dict, List, Union
5+
from typing import Dict, List
66
from typing_extensions import Literal, Required, Annotated, TypedDict
77

88
from ..._utils import PropertyInfo
@@ -76,7 +76,7 @@ class AutomationsFileServices(TypedDict, total=False):
7676

7777
name: str
7878

79-
runs_on: Annotated[Union[object, object], PropertyInfo(alias="runsOn")]
79+
runs_on: Annotated[object, PropertyInfo(alias="runsOn")]
8080

8181
triggered_by: Annotated[List[str], PropertyInfo(alias="triggeredBy")]
8282

@@ -90,7 +90,7 @@ class AutomationsFileTasks(TypedDict, total=False):
9090

9191
name: str
9292

93-
runs_on: Annotated[Union[object, object], PropertyInfo(alias="runsOn")]
93+
runs_on: Annotated[object, PropertyInfo(alias="runsOn")]
9494

9595
triggered_by: Annotated[List[str], PropertyInfo(alias="triggeredBy")]
9696

src/gitpod/types/environments/automations/service_list_response.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
22

3-
from typing import List, Union, Optional
3+
from typing import List, Optional
44
from datetime import datetime
55
from typing_extensions import Literal
66

@@ -230,7 +230,7 @@ class ServiceSpec(BaseModel):
230230
Used to start or stop the service.
231231
"""
232232

233-
runs_on: Union[object, object, None] = FieldInfo(alias="runsOn", default=None)
233+
runs_on: Optional[object] = FieldInfo(alias="runsOn", default=None)
234234
"""runs_on specifies the environment the service should run on."""
235235

236236
session: Optional[str] = None

src/gitpod/types/environments/automations/task_create_params.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,5 +174,5 @@ class Spec(TypedDict, total=False):
174174
command: str
175175
"""command contains the command the task should execute"""
176176

177-
runs_on: Annotated[Union[object, object], PropertyInfo(alias="runsOn")]
177+
runs_on: Annotated[object, PropertyInfo(alias="runsOn")]
178178
"""runs_on specifies the environment the task should run on."""

src/gitpod/types/environments/automations/task_create_response.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
22

3-
from typing import List, Union, Optional
3+
from typing import List, Optional
44
from datetime import datetime
55
from typing_extensions import Literal
66

@@ -160,7 +160,7 @@ class TaskSpec(BaseModel):
160160
command: Optional[str] = None
161161
"""command contains the command the task should execute"""
162162

163-
runs_on: Union[object, object, None] = FieldInfo(alias="runsOn", default=None)
163+
runs_on: Optional[object] = FieldInfo(alias="runsOn", default=None)
164164
"""runs_on specifies the environment the task should run on."""
165165

166166

src/gitpod/types/environments/automations/task_list_response.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
22

3-
from typing import List, Union, Optional
3+
from typing import List, Optional
44
from datetime import datetime
55
from typing_extensions import Literal
66

@@ -176,7 +176,7 @@ class TaskSpec(BaseModel):
176176
command: Optional[str] = None
177177
"""command contains the command the task should execute"""
178178

179-
runs_on: Union[object, object, None] = FieldInfo(alias="runsOn", default=None)
179+
runs_on: Optional[object] = FieldInfo(alias="runsOn", default=None)
180180
"""runs_on specifies the environment the task should run on."""
181181

182182

src/gitpod/types/environments/automations/task_retrieve_response.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
22

3-
from typing import List, Union, Optional
3+
from typing import List, Optional
44
from datetime import datetime
55
from typing_extensions import Literal
66

@@ -160,7 +160,7 @@ class TaskSpec(BaseModel):
160160
command: Optional[str] = None
161161
"""command contains the command the task should execute"""
162162

163-
runs_on: Union[object, object, None] = FieldInfo(alias="runsOn", default=None)
163+
runs_on: Optional[object] = FieldInfo(alias="runsOn", default=None)
164164
"""runs_on specifies the environment the task should run on."""
165165

166166

0 commit comments

Comments
 (0)