Skip to content

Commit 8a6ba65

Browse files
feat(api): api update
1 parent 803ba1d commit 8a6ba65

8 files changed

Lines changed: 21 additions & 2 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: 79
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/runloop-ai%2Frunloop-59d51521fb27127ec00a91d37d9cbaa484577dbd200d290e61c9d69d33b3c760.yml
3-
openapi_spec_hash: 4ad68555fc0ec3e969817bebff620e88
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/runloop-ai%2Frunloop-29770148092f0f5030e7199308862afc7e46cb12da6081cd045e9db6734d3ac9.yml
3+
openapi_spec_hash: b100a6769bf25a0f873ef32201eba45e
44
config_hash: 4cb90c87fb61338e46c50cea9c42abd7

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,7 @@ devbox_view = client.devboxes.create(
151151
"idle_time_seconds": 0,
152152
"on_idle": "shutdown",
153153
},
154+
"architecture": "x86_64",
154155
"available_ports": [0],
155156
"custom_cpu_cores": 0,
156157
"custom_gb_memory": 0,

src/runloop_api_client/types/shared/launch_parameters.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ class LaunchParameters(BaseModel):
1616
If after_idle is set, Devbox will ignore keep_alive_time_seconds.
1717
"""
1818

19+
architecture: Optional[Literal["x86_64", "arm64"]] = None
20+
"""The target architecture for the Devbox. If unset, defaults to arm64."""
21+
1922
available_ports: Optional[List[int]] = None
2023
"""A list of ports to make available on the Devbox.
2124

src/runloop_api_client/types/shared_params/launch_parameters.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ class LaunchParameters(TypedDict, total=False):
1717
If after_idle is set, Devbox will ignore keep_alive_time_seconds.
1818
"""
1919

20+
architecture: Optional[Literal["x86_64", "arm64"]]
21+
"""The target architecture for the Devbox. If unset, defaults to arm64."""
22+
2023
available_ports: Optional[Iterable[int]]
2124
"""A list of ports to make available on the Devbox.
2225

tests/api_resources/scenarios/test_scorers.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,7 @@ def test_method_validate_with_all_params(self, client: Runloop) -> None:
195195
"idle_time_seconds": 0,
196196
"on_idle": "shutdown",
197197
},
198+
"architecture": "x86_64",
198199
"available_ports": [0],
199200
"custom_cpu_cores": 0,
200201
"custom_gb_memory": 0,
@@ -418,6 +419,7 @@ async def test_method_validate_with_all_params(self, async_client: AsyncRunloop)
418419
"idle_time_seconds": 0,
419420
"on_idle": "shutdown",
420421
},
422+
"architecture": "x86_64",
421423
"available_ports": [0],
422424
"custom_cpu_cores": 0,
423425
"custom_gb_memory": 0,

tests/api_resources/test_blueprints.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ def test_method_create_with_all_params(self, client: Runloop) -> None:
4848
"idle_time_seconds": 0,
4949
"on_idle": "shutdown",
5050
},
51+
"architecture": "x86_64",
5152
"available_ports": [0],
5253
"custom_cpu_cores": 0,
5354
"custom_gb_memory": 0,
@@ -257,6 +258,7 @@ def test_method_preview_with_all_params(self, client: Runloop) -> None:
257258
"idle_time_seconds": 0,
258259
"on_idle": "shutdown",
259260
},
261+
"architecture": "x86_64",
260262
"available_ports": [0],
261263
"custom_cpu_cores": 0,
262264
"custom_gb_memory": 0,
@@ -322,6 +324,7 @@ async def test_method_create_with_all_params(self, async_client: AsyncRunloop) -
322324
"idle_time_seconds": 0,
323325
"on_idle": "shutdown",
324326
},
327+
"architecture": "x86_64",
325328
"available_ports": [0],
326329
"custom_cpu_cores": 0,
327330
"custom_gb_memory": 0,
@@ -531,6 +534,7 @@ async def test_method_preview_with_all_params(self, async_client: AsyncRunloop)
531534
"idle_time_seconds": 0,
532535
"on_idle": "shutdown",
533536
},
537+
"architecture": "x86_64",
534538
"available_ports": [0],
535539
"custom_cpu_cores": 0,
536540
"custom_gb_memory": 0,

tests/api_resources/test_devboxes.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ def test_method_create_with_all_params(self, client: Runloop) -> None:
6464
"idle_time_seconds": 0,
6565
"on_idle": "shutdown",
6666
},
67+
"architecture": "x86_64",
6768
"available_ports": [0],
6869
"custom_cpu_cores": 0,
6970
"custom_gb_memory": 0,
@@ -939,6 +940,7 @@ async def test_method_create_with_all_params(self, async_client: AsyncRunloop) -
939940
"idle_time_seconds": 0,
940941
"on_idle": "shutdown",
941942
},
943+
"architecture": "x86_64",
942944
"available_ports": [0],
943945
"custom_cpu_cores": 0,
944946
"custom_gb_memory": 0,

tests/api_resources/test_scenarios.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ def test_method_create_with_all_params(self, client: Runloop) -> None:
7777
"idle_time_seconds": 0,
7878
"on_idle": "shutdown",
7979
},
80+
"architecture": "x86_64",
8081
"available_ports": [0],
8182
"custom_cpu_cores": 0,
8283
"custom_gb_memory": 0,
@@ -239,6 +240,7 @@ def test_method_update_with_all_params(self, client: Runloop) -> None:
239240
"idle_time_seconds": 0,
240241
"on_idle": "shutdown",
241242
},
243+
"architecture": "x86_64",
242244
"available_ports": [0],
243245
"custom_cpu_cores": 0,
244246
"custom_gb_memory": 0,
@@ -499,6 +501,7 @@ async def test_method_create_with_all_params(self, async_client: AsyncRunloop) -
499501
"idle_time_seconds": 0,
500502
"on_idle": "shutdown",
501503
},
504+
"architecture": "x86_64",
502505
"available_ports": [0],
503506
"custom_cpu_cores": 0,
504507
"custom_gb_memory": 0,
@@ -661,6 +664,7 @@ async def test_method_update_with_all_params(self, async_client: AsyncRunloop) -
661664
"idle_time_seconds": 0,
662665
"on_idle": "shutdown",
663666
},
667+
"architecture": "x86_64",
664668
"available_ports": [0],
665669
"custom_cpu_cores": 0,
666670
"custom_gb_memory": 0,

0 commit comments

Comments
 (0)