Skip to content

Commit aa4f562

Browse files
feat(api): api update (#222)
1 parent c4e0693 commit aa4f562

5 files changed

Lines changed: 4 additions & 20 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: 29
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/runloop-ai%2Frunloop-c5f29b6d5424246c8c6d585c697032f4b4b6c49e316c9d28706cc0d0683609a3.yml
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/runloop-ai%2Frunloop-b04b5ec571b401333d19cf7d9c5ff55470cb9be675843eed0dc3c73b948fd335.yml

src/runloop_api_client/resources/devboxes/devboxes.py

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,6 @@ def with_streaming_response(self) -> DevboxesResourceWithStreamingResponse:
102102
def create(
103103
self,
104104
*,
105-
available_ports: Iterable[int] | NotGiven = NOT_GIVEN,
106105
blueprint_id: str | NotGiven = NOT_GIVEN,
107106
blueprint_name: str | NotGiven = NOT_GIVEN,
108107
code_mounts: Iterable[CodeMountParametersParam] | NotGiven = NOT_GIVEN,
@@ -128,9 +127,6 @@ def create(
128127
the 'pending' state and will transition to 'running' once it is ready.
129128
130129
Args:
131-
available_ports: A list of ports to make available on the Devbox. Call createTunnel to open a
132-
tunnel to the port.
133-
134130
blueprint_id: (Optional) Blueprint to use for the Devbox. If none set, the Devbox will be
135131
created with the default Runloop Devbox image.
136132
@@ -173,7 +169,6 @@ def create(
173169
"/v1/devboxes",
174170
body=maybe_transform(
175171
{
176-
"available_ports": available_ports,
177172
"blueprint_id": blueprint_id,
178173
"blueprint_name": blueprint_name,
179174
"code_mounts": code_mounts,
@@ -736,7 +731,6 @@ def with_streaming_response(self) -> AsyncDevboxesResourceWithStreamingResponse:
736731
async def create(
737732
self,
738733
*,
739-
available_ports: Iterable[int] | NotGiven = NOT_GIVEN,
740734
blueprint_id: str | NotGiven = NOT_GIVEN,
741735
blueprint_name: str | NotGiven = NOT_GIVEN,
742736
code_mounts: Iterable[CodeMountParametersParam] | NotGiven = NOT_GIVEN,
@@ -762,9 +756,6 @@ async def create(
762756
the 'pending' state and will transition to 'running' once it is ready.
763757
764758
Args:
765-
available_ports: A list of ports to make available on the Devbox. Call createTunnel to open a
766-
tunnel to the port.
767-
768759
blueprint_id: (Optional) Blueprint to use for the Devbox. If none set, the Devbox will be
769760
created with the default Runloop Devbox image.
770761
@@ -807,7 +798,6 @@ async def create(
807798
"/v1/devboxes",
808799
body=await async_maybe_transform(
809800
{
810-
"available_ports": available_ports,
811801
"blueprint_id": blueprint_id,
812802
"blueprint_name": blueprint_name,
813803
"code_mounts": code_mounts,

src/runloop_api_client/types/devbox_create_params.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,6 @@
1212

1313

1414
class DevboxCreateParams(TypedDict, total=False):
15-
available_ports: Iterable[int]
16-
"""A list of ports to make available on the Devbox.
17-
18-
Call createTunnel to open a tunnel to the port.
19-
"""
20-
2115
blueprint_id: str
2216
"""(Optional) Blueprint to use for the Devbox.
2317

src/runloop_api_client/types/devbox_view.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,9 @@ class DevboxView(BaseModel):
2828
metadata: Dict[str, str]
2929
"""The user defined Devbox metadata."""
3030

31-
status: Literal["provisioning", "initializing", "running", "failure", "shutdown"]
31+
status: Literal[
32+
"provisioning", "initializing", "running", "suspending", "suspended", "resuming", "failure", "shutdown"
33+
]
3234
"""The current status of the Devbox."""
3335

3436
blueprint_id: Optional[str] = None

tests/api_resources/test_devboxes.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ def test_method_create(self, client: Runloop) -> None:
4141
@parametrize
4242
def test_method_create_with_all_params(self, client: Runloop) -> None:
4343
devbox = client.devboxes.create(
44-
available_ports=[0, 0, 0],
4544
blueprint_id="blueprint_id",
4645
blueprint_name="blueprint_name",
4746
code_mounts=[
@@ -635,7 +634,6 @@ async def test_method_create(self, async_client: AsyncRunloop) -> None:
635634
@parametrize
636635
async def test_method_create_with_all_params(self, async_client: AsyncRunloop) -> None:
637636
devbox = await async_client.devboxes.create(
638-
available_ports=[0, 0, 0],
639637
blueprint_id="blueprint_id",
640638
blueprint_name="blueprint_name",
641639
code_mounts=[

0 commit comments

Comments
 (0)