Skip to content

Commit

Permalink
feat(api): api update (#263)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-app[bot] authored and stainless-bot committed Nov 8, 2024
1 parent b463693 commit dbd490a
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .stats.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
configured_endpoints: 32
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/runloop-ai%2Frunloop-b8f197cfb474d0286fe38200bfa00e56952448f397cc166c2a6061bbd8597a28.yml
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/runloop-ai%2Frunloop-eb9d7d556ce8bb09ae1142131a70bce4aa1536e7f38963d8cbaf98cf7f757f20.yml
2 changes: 1 addition & 1 deletion src/runloop_api_client/types/shared/after_idle.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@ class AfterIdle(BaseModel):
idle_time_seconds: int
"""After idle_time_seconds, on_idle action will be taken."""

on_idle: Literal["shutdown", "suspend"]
on_idle: Literal["unknown", "shutdown", "suspend"]
"""Action to take after Devbox becomes idle."""
2 changes: 1 addition & 1 deletion src/runloop_api_client/types/shared_params/after_idle.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@ class AfterIdle(TypedDict, total=False):
idle_time_seconds: Required[int]
"""After idle_time_seconds, on_idle action will be taken."""

on_idle: Required[Literal["shutdown", "suspend"]]
on_idle: Required[Literal["unknown", "shutdown", "suspend"]]
"""Action to take after Devbox becomes idle."""
8 changes: 4 additions & 4 deletions tests/api_resources/test_blueprints.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def test_method_create_with_all_params(self, client: Runloop) -> None:
launch_parameters={
"after_idle": {
"idle_time_seconds": 0,
"on_idle": "shutdown",
"on_idle": "unknown",
},
"available_ports": [0, 0, 0],
"keep_alive_time_seconds": 0,
Expand Down Expand Up @@ -239,7 +239,7 @@ def test_method_preview_with_all_params(self, client: Runloop) -> None:
launch_parameters={
"after_idle": {
"idle_time_seconds": 0,
"on_idle": "shutdown",
"on_idle": "unknown",
},
"available_ports": [0, 0, 0],
"keep_alive_time_seconds": 0,
Expand Down Expand Up @@ -314,7 +314,7 @@ async def test_method_create_with_all_params(self, async_client: AsyncRunloop) -
launch_parameters={
"after_idle": {
"idle_time_seconds": 0,
"on_idle": "shutdown",
"on_idle": "unknown",
},
"available_ports": [0, 0, 0],
"keep_alive_time_seconds": 0,
Expand Down Expand Up @@ -495,7 +495,7 @@ async def test_method_preview_with_all_params(self, async_client: AsyncRunloop)
launch_parameters={
"after_idle": {
"idle_time_seconds": 0,
"on_idle": "shutdown",
"on_idle": "unknown",
},
"available_ports": [0, 0, 0],
"keep_alive_time_seconds": 0,
Expand Down
4 changes: 2 additions & 2 deletions tests/api_resources/test_devboxes.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def test_method_create_with_all_params(self, client: Runloop) -> None:
launch_parameters={
"after_idle": {
"idle_time_seconds": 0,
"on_idle": "shutdown",
"on_idle": "unknown",
},
"available_ports": [0, 0, 0],
"keep_alive_time_seconds": 0,
Expand Down Expand Up @@ -786,7 +786,7 @@ async def test_method_create_with_all_params(self, async_client: AsyncRunloop) -
launch_parameters={
"after_idle": {
"idle_time_seconds": 0,
"on_idle": "shutdown",
"on_idle": "unknown",
},
"available_ports": [0, 0, 0],
"keep_alive_time_seconds": 0,
Expand Down

0 comments on commit dbd490a

Please sign in to comment.