Skip to content

Commit 497ae18

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

26 files changed

+50
-55
lines changed

Diff for: src/gitpod/resources/environment_classes.py

+2-3
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.

Diff for: src/gitpod/resources/projects.py

+2-3
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,

Diff for: src/gitpod/resources/runner_configurations/environment_classes.py

+2-3
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.

Diff for: src/gitpod/types/environment_class_list_params.py

+1-2
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"""

Diff for: src/gitpod/types/environments/automation_upsert_params.py

+3-3
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

Diff for: src/gitpod/types/environments/automations/service_list_response.py

+2-2
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

Diff for: src/gitpod/types/environments/automations/task_create_params.py

+1-1
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."""

Diff for: src/gitpod/types/environments/automations/task_create_response.py

+2-2
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

Diff for: src/gitpod/types/environments/automations/task_list_response.py

+2-2
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

Diff for: src/gitpod/types/environments/automations/task_retrieve_response.py

+2-2
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

Diff for: src/gitpod/types/project_create_from_environment_response.py

+2-2
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

@@ -269,7 +269,7 @@ class ProjectUsedBy(BaseModel):
269269

270270

271271
class Project(BaseModel):
272-
environment_class: Union[object, object, object] = FieldInfo(alias="environmentClass")
272+
environment_class: object = FieldInfo(alias="environmentClass")
273273

274274
id: Optional[str] = None
275275
"""id is the unique identifier for the project"""

Diff for: src/gitpod/types/project_create_params.py

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

33
from __future__ import annotations
44

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

88
from .._utils import PropertyInfo
@@ -11,7 +11,7 @@
1111

1212

1313
class ProjectCreateParams(TypedDict, total=False):
14-
environment_class: Required[Annotated[Union[object, object, object], PropertyInfo(alias="environmentClass")]]
14+
environment_class: Required[Annotated[object, PropertyInfo(alias="environmentClass")]]
1515

1616
initializer: Required[Initializer]
1717
"""EnvironmentInitializer specifies how an environment is to be initialized"""

Diff for: src/gitpod/types/project_create_response.py

+2-2
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

@@ -269,7 +269,7 @@ class ProjectUsedBy(BaseModel):
269269

270270

271271
class Project(BaseModel):
272-
environment_class: Union[object, object, object] = FieldInfo(alias="environmentClass")
272+
environment_class: object = FieldInfo(alias="environmentClass")
273273

274274
id: Optional[str] = None
275275
"""id is the unique identifier for the project"""

Diff for: src/gitpod/types/project_retrieve_response.py

+2-2
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

@@ -269,7 +269,7 @@ class ProjectUsedBy(BaseModel):
269269

270270

271271
class Project(BaseModel):
272-
environment_class: Union[object, object, object] = FieldInfo(alias="environmentClass")
272+
environment_class: object = FieldInfo(alias="environmentClass")
273273

274274
id: Optional[str] = None
275275
"""id is the unique identifier for the project"""

Diff for: src/gitpod/types/runner_configurations/environment_class_list_params.py

+1-2
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"""

Diff for: tests/api_resources/environments/automations/test_services.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ def test_method_list_with_all_params(self, client: Gitpod) -> None:
8080
},
8181
pagination={
8282
"token": "token",
83-
"page_size": 0,
83+
"page_size": 100,
8484
},
8585
connect_timeout_ms=0,
8686
)
@@ -296,7 +296,7 @@ async def test_method_list_with_all_params(self, async_client: AsyncGitpod) -> N
296296
},
297297
pagination={
298298
"token": "token",
299-
"page_size": 0,
299+
"page_size": 100,
300300
},
301301
connect_timeout_ms=0,
302302
)

Diff for: tests/api_resources/environments/automations/test_task_executions.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ def test_method_list_with_all_params(self, client: Gitpod) -> None:
7979
},
8080
pagination={
8181
"token": "token",
82-
"page_size": 0,
82+
"page_size": 100,
8383
},
8484
connect_timeout_ms=0,
8585
)
@@ -266,7 +266,7 @@ async def test_method_list_with_all_params(self, async_client: AsyncGitpod) -> N
266266
},
267267
pagination={
268268
"token": "token",
269-
"page_size": 0,
269+
"page_size": 100,
270270
},
271271
connect_timeout_ms=0,
272272
)

Diff for: tests/api_resources/environments/automations/test_tasks.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ def test_method_list_with_all_params(self, client: Gitpod) -> None:
186186
},
187187
pagination={
188188
"token": "token",
189-
"page_size": 0,
189+
"page_size": 100,
190190
},
191191
connect_timeout_ms=0,
192192
)
@@ -463,7 +463,7 @@ async def test_method_list_with_all_params(self, async_client: AsyncGitpod) -> N
463463
},
464464
pagination={
465465
"token": "token",
466-
"page_size": 0,
466+
"page_size": 100,
467467
},
468468
connect_timeout_ms=0,
469469
)

Diff for: tests/api_resources/organizations/test_members.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ def test_method_list_with_all_params(self, client: Gitpod) -> None:
3131
organization_id="182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
3232
pagination={
3333
"token": "token",
34-
"page_size": 0,
34+
"page_size": 100,
3535
},
3636
connect_timeout_ms=0,
3737
)
@@ -79,7 +79,7 @@ async def test_method_list_with_all_params(self, async_client: AsyncGitpod) -> N
7979
organization_id="182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
8080
pagination={
8181
"token": "token",
82-
"page_size": 0,
82+
"page_size": 100,
8383
},
8484
connect_timeout_ms=0,
8585
)

Diff for: tests/api_resources/runner_configurations/test_environment_classes.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ def test_method_list_with_all_params(self, client: Gitpod) -> None:
8181
filter={},
8282
pagination={
8383
"token": "token",
84-
"page_size": 0,
84+
"page_size": 100,
8585
},
8686
connect_timeout_ms=0,
8787
)
@@ -177,7 +177,7 @@ async def test_method_list_with_all_params(self, async_client: AsyncGitpod) -> N
177177
filter={},
178178
pagination={
179179
"token": "token",
180-
"page_size": 0,
180+
"page_size": 100,
181181
},
182182
connect_timeout_ms=0,
183183
)

Diff for: tests/api_resources/runner_configurations/test_host_authentication_tokens.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ def test_method_list_with_all_params(self, client: Gitpod) -> None:
164164
filter={},
165165
pagination={
166166
"token": "token",
167-
"page_size": 0,
167+
"page_size": 100,
168168
},
169169
connect_timeout_ms=0,
170170
)
@@ -380,7 +380,7 @@ async def test_method_list_with_all_params(self, async_client: AsyncGitpod) -> N
380380
filter={},
381381
pagination={
382382
"token": "token",
383-
"page_size": 0,
383+
"page_size": 100,
384384
},
385385
connect_timeout_ms=0,
386386
)

0 commit comments

Comments
 (0)