Skip to content

Commit 570bb93

Browse files
feat(api): api update (#263)
1 parent 6fabcdf commit 570bb93

5 files changed

Lines changed: 9 additions & 9 deletions

File tree

.stats.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
configured_endpoints: 32
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/runloop-ai%2Frunloop-b8f197cfb474d0286fe38200bfa00e56952448f397cc166c2a6061bbd8597a28.yml
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/runloop-ai%2Frunloop-eb9d7d556ce8bb09ae1142131a70bce4aa1536e7f38963d8cbaf98cf7f757f20.yml

src/runloop_api_client/types/shared/after_idle.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,5 @@ class AfterIdle(BaseModel):
1111
idle_time_seconds: int
1212
"""After idle_time_seconds, on_idle action will be taken."""
1313

14-
on_idle: Literal["shutdown", "suspend"]
14+
on_idle: Literal["unknown", "shutdown", "suspend"]
1515
"""Action to take after Devbox becomes idle."""

src/runloop_api_client/types/shared_params/after_idle.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,5 @@ class AfterIdle(TypedDict, total=False):
1111
idle_time_seconds: Required[int]
1212
"""After idle_time_seconds, on_idle action will be taken."""
1313

14-
on_idle: Required[Literal["shutdown", "suspend"]]
14+
on_idle: Required[Literal["unknown", "shutdown", "suspend"]]
1515
"""Action to take after Devbox becomes idle."""

tests/api_resources/test_blueprints.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ def test_method_create_with_all_params(self, client: Runloop) -> None:
5858
launch_parameters={
5959
"after_idle": {
6060
"idle_time_seconds": 0,
61-
"on_idle": "shutdown",
61+
"on_idle": "unknown",
6262
},
6363
"available_ports": [0, 0, 0],
6464
"keep_alive_time_seconds": 0,
@@ -239,7 +239,7 @@ def test_method_preview_with_all_params(self, client: Runloop) -> None:
239239
launch_parameters={
240240
"after_idle": {
241241
"idle_time_seconds": 0,
242-
"on_idle": "shutdown",
242+
"on_idle": "unknown",
243243
},
244244
"available_ports": [0, 0, 0],
245245
"keep_alive_time_seconds": 0,
@@ -314,7 +314,7 @@ async def test_method_create_with_all_params(self, async_client: AsyncRunloop) -
314314
launch_parameters={
315315
"after_idle": {
316316
"idle_time_seconds": 0,
317-
"on_idle": "shutdown",
317+
"on_idle": "unknown",
318318
},
319319
"available_ports": [0, 0, 0],
320320
"keep_alive_time_seconds": 0,
@@ -495,7 +495,7 @@ async def test_method_preview_with_all_params(self, async_client: AsyncRunloop)
495495
launch_parameters={
496496
"after_idle": {
497497
"idle_time_seconds": 0,
498-
"on_idle": "shutdown",
498+
"on_idle": "unknown",
499499
},
500500
"available_ports": [0, 0, 0],
501501
"keep_alive_time_seconds": 0,

tests/api_resources/test_devboxes.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ def test_method_create_with_all_params(self, client: Runloop) -> None:
7070
launch_parameters={
7171
"after_idle": {
7272
"idle_time_seconds": 0,
73-
"on_idle": "shutdown",
73+
"on_idle": "unknown",
7474
},
7575
"available_ports": [0, 0, 0],
7676
"keep_alive_time_seconds": 0,
@@ -786,7 +786,7 @@ async def test_method_create_with_all_params(self, async_client: AsyncRunloop) -
786786
launch_parameters={
787787
"after_idle": {
788788
"idle_time_seconds": 0,
789-
"on_idle": "shutdown",
789+
"on_idle": "unknown",
790790
},
791791
"available_ports": [0, 0, 0],
792792
"keep_alive_time_seconds": 0,

0 commit comments

Comments
 (0)