Skip to content

Commit 3c2e206

Browse files
chore: remove dead port configuration code, mark deprecated / ignored in the API (#8195)
1 parent e31e345 commit 3c2e206

7 files changed

Lines changed: 3 additions & 33 deletions

File tree

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 117
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/runloop-ai%2Frunloop-0568973e19e8af9fa953b2ded109ab2b69e76e90e2b74f33617dbf7092e26274.yml
3-
openapi_spec_hash: 10ba804ce69510d7985e05c77d0ffcf6
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/runloop-ai%2Frunloop-b56067b06cdf0eb4150f81d8f53e46d9c79b8cbecba6f8c0ee82f798d8cd2447.yml
3+
openapi_spec_hash: 4e0020f255cd31baa79227a5888e1eac
44
config_hash: de99cfce88e2d1f02246dc6c2f43bc6c

src/runloop_api_client/types/shared/launch_parameters.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,6 @@ class LaunchParameters(BaseModel):
3636
architecture: Optional[Literal["x86_64", "arm64"]] = None
3737
"""The target architecture for the Devbox. If unset, defaults to x86_64."""
3838

39-
available_ports: Optional[List[int]] = None
40-
"""A list of ports to make available on the Devbox.
41-
42-
Only ports made available will be surfaced to create tunnels via the
43-
'createTunnel' API.
44-
"""
45-
4639
custom_cpu_cores: Optional[int] = None
4740
"""Custom CPU cores. Must be 0.5, 1, or a multiple of 2. Max is 16."""
4841

src/runloop_api_client/types/shared_params/launch_parameters.py

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

33
from __future__ import annotations
44

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

88
from ..._types import SequenceNotStr
@@ -38,13 +38,6 @@ class LaunchParameters(TypedDict, total=False):
3838
architecture: Optional[Literal["x86_64", "arm64"]]
3939
"""The target architecture for the Devbox. If unset, defaults to x86_64."""
4040

41-
available_ports: Optional[Iterable[int]]
42-
"""A list of ports to make available on the Devbox.
43-
44-
Only ports made available will be surfaced to create tunnels via the
45-
'createTunnel' API.
46-
"""
47-
4841
custom_cpu_cores: Optional[int]
4942
"""Custom CPU cores. Must be 0.5, 1, or a multiple of 2. Max is 16."""
5043

tests/api_resources/test_benchmarks.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,6 @@ def test_method_start_run_with_all_params(self, client: Runloop) -> None:
291291
"on_idle": "shutdown",
292292
},
293293
"architecture": "x86_64",
294-
"available_ports": [0],
295294
"custom_cpu_cores": 0,
296295
"custom_disk_size": 0,
297296
"custom_gb_memory": 0,
@@ -664,7 +663,6 @@ async def test_method_start_run_with_all_params(self, async_client: AsyncRunloop
664663
"on_idle": "shutdown",
665664
},
666665
"architecture": "x86_64",
667-
"available_ports": [0],
668666
"custom_cpu_cores": 0,
669667
"custom_disk_size": 0,
670668
"custom_gb_memory": 0,

tests/api_resources/test_blueprints.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,6 @@ def test_method_create_with_all_params(self, client: Runloop) -> None:
5656
"on_idle": "shutdown",
5757
},
5858
"architecture": "x86_64",
59-
"available_ports": [0],
6059
"custom_cpu_cores": 0,
6160
"custom_disk_size": 0,
6261
"custom_gb_memory": 0,
@@ -270,7 +269,6 @@ def test_method_create_from_inspection_with_all_params(self, client: Runloop) ->
270269
"on_idle": "shutdown",
271270
},
272271
"architecture": "x86_64",
273-
"available_ports": [0],
274272
"custom_cpu_cores": 0,
275273
"custom_disk_size": 0,
276274
"custom_gb_memory": 0,
@@ -424,7 +422,6 @@ def test_method_preview_with_all_params(self, client: Runloop) -> None:
424422
"on_idle": "shutdown",
425423
},
426424
"architecture": "x86_64",
427-
"available_ports": [0],
428425
"custom_cpu_cores": 0,
429426
"custom_disk_size": 0,
430427
"custom_gb_memory": 0,
@@ -522,7 +519,6 @@ async def test_method_create_with_all_params(self, async_client: AsyncRunloop) -
522519
"on_idle": "shutdown",
523520
},
524521
"architecture": "x86_64",
525-
"available_ports": [0],
526522
"custom_cpu_cores": 0,
527523
"custom_disk_size": 0,
528524
"custom_gb_memory": 0,
@@ -736,7 +732,6 @@ async def test_method_create_from_inspection_with_all_params(self, async_client:
736732
"on_idle": "shutdown",
737733
},
738734
"architecture": "x86_64",
739-
"available_ports": [0],
740735
"custom_cpu_cores": 0,
741736
"custom_disk_size": 0,
742737
"custom_gb_memory": 0,
@@ -890,7 +885,6 @@ async def test_method_preview_with_all_params(self, async_client: AsyncRunloop)
890885
"on_idle": "shutdown",
891886
},
892887
"architecture": "x86_64",
893-
"available_ports": [0],
894888
"custom_cpu_cores": 0,
895889
"custom_disk_size": 0,
896890
"custom_gb_memory": 0,

tests/api_resources/test_devboxes.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,6 @@ def test_method_create_with_all_params(self, client: Runloop) -> None:
7878
"on_idle": "shutdown",
7979
},
8080
"architecture": "x86_64",
81-
"available_ports": [0],
8281
"custom_cpu_cores": 0,
8382
"custom_disk_size": 0,
8483
"custom_gb_memory": 0,
@@ -1699,7 +1698,6 @@ async def test_method_create_with_all_params(self, async_client: AsyncRunloop) -
16991698
"on_idle": "shutdown",
17001699
},
17011700
"architecture": "x86_64",
1702-
"available_ports": [0],
17031701
"custom_cpu_cores": 0,
17041702
"custom_disk_size": 0,
17051703
"custom_gb_memory": 0,

tests/api_resources/test_scenarios.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,6 @@ def test_method_create_with_all_params(self, client: Runloop) -> None:
7272
"on_idle": "shutdown",
7373
},
7474
"architecture": "x86_64",
75-
"available_ports": [0],
7675
"custom_cpu_cores": 0,
7776
"custom_disk_size": 0,
7877
"custom_gb_memory": 0,
@@ -207,7 +206,6 @@ def test_method_update_with_all_params(self, client: Runloop) -> None:
207206
"on_idle": "shutdown",
208207
},
209208
"architecture": "x86_64",
210-
"available_ports": [0],
211209
"custom_cpu_cores": 0,
212210
"custom_disk_size": 0,
213211
"custom_gb_memory": 0,
@@ -413,7 +411,6 @@ def test_method_start_run_with_all_params(self, client: Runloop) -> None:
413411
"on_idle": "shutdown",
414412
},
415413
"architecture": "x86_64",
416-
"available_ports": [0],
417414
"custom_cpu_cores": 0,
418415
"custom_disk_size": 0,
419416
"custom_gb_memory": 0,
@@ -521,7 +518,6 @@ async def test_method_create_with_all_params(self, async_client: AsyncRunloop) -
521518
"on_idle": "shutdown",
522519
},
523520
"architecture": "x86_64",
524-
"available_ports": [0],
525521
"custom_cpu_cores": 0,
526522
"custom_disk_size": 0,
527523
"custom_gb_memory": 0,
@@ -656,7 +652,6 @@ async def test_method_update_with_all_params(self, async_client: AsyncRunloop) -
656652
"on_idle": "shutdown",
657653
},
658654
"architecture": "x86_64",
659-
"available_ports": [0],
660655
"custom_cpu_cores": 0,
661656
"custom_disk_size": 0,
662657
"custom_gb_memory": 0,
@@ -862,7 +857,6 @@ async def test_method_start_run_with_all_params(self, async_client: AsyncRunloop
862857
"on_idle": "shutdown",
863858
},
864859
"architecture": "x86_64",
865-
"available_ports": [0],
866860
"custom_cpu_cores": 0,
867861
"custom_disk_size": 0,
868862
"custom_gb_memory": 0,

0 commit comments

Comments
 (0)