Skip to content

Commit b54d5b7

Browse files
feat(api): api update (#358)
1 parent 09f4900 commit b54d5b7

4 files changed

Lines changed: 3 additions & 24 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: 47
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/runloop-ai%2Frunloop-bb75051b5b1bd5fe1a0e7912e0f221a29b8bb78980fc0398efe5b98e0136d867.yml
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/runloop-ai%2Frunloop-b0385adb6f63afa04a7bfdc2c5822727d240a456be8ebd1edde4023b96d23147.yml

src/runloop_api_client/resources/devboxes/devboxes.py

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

33
from __future__ import annotations
44

5-
from typing import Dict, List, Mapping, Iterable, cast
5+
from typing import Dict, Mapping, Iterable, cast
66

77
import httpx
88

@@ -126,7 +126,6 @@ def create(
126126
metadata: Dict[str, str] | NotGiven = NOT_GIVEN,
127127
name: str | NotGiven = NOT_GIVEN,
128128
prebuilt: str | NotGiven = NOT_GIVEN,
129-
setup_commands: List[str] | NotGiven = NOT_GIVEN,
130129
snapshot_id: str | NotGiven = NOT_GIVEN,
131130
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
132131
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -165,10 +164,6 @@ def create(
165164
166165
prebuilt: Reference to prebuilt Blueprint.
167166
168-
setup_commands: (Optional) List of commands needed to set up your Devbox. Examples might include
169-
fetching a tool or building your dependencies. Runloop will look optimize these
170-
steps for you.
171-
172167
snapshot_id: Snapshot ID to use for the Devbox.
173168
174169
extra_headers: Send extra headers
@@ -193,7 +188,6 @@ def create(
193188
"metadata": metadata,
194189
"name": name,
195190
"prebuilt": prebuilt,
196-
"setup_commands": setup_commands,
197191
"snapshot_id": snapshot_id,
198192
},
199193
devbox_create_params.DevboxCreateParams,
@@ -896,7 +890,6 @@ async def create(
896890
metadata: Dict[str, str] | NotGiven = NOT_GIVEN,
897891
name: str | NotGiven = NOT_GIVEN,
898892
prebuilt: str | NotGiven = NOT_GIVEN,
899-
setup_commands: List[str] | NotGiven = NOT_GIVEN,
900893
snapshot_id: str | NotGiven = NOT_GIVEN,
901894
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
902895
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -935,10 +928,6 @@ async def create(
935928
936929
prebuilt: Reference to prebuilt Blueprint.
937930
938-
setup_commands: (Optional) List of commands needed to set up your Devbox. Examples might include
939-
fetching a tool or building your dependencies. Runloop will look optimize these
940-
steps for you.
941-
942931
snapshot_id: Snapshot ID to use for the Devbox.
943932
944933
extra_headers: Send extra headers
@@ -963,7 +952,6 @@ async def create(
963952
"metadata": metadata,
964953
"name": name,
965954
"prebuilt": prebuilt,
966-
"setup_commands": setup_commands,
967955
"snapshot_id": snapshot_id,
968956
},
969957
devbox_create_params.DevboxCreateParams,

src/runloop_api_client/types/devbox_create_params.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 Dict, List, Iterable
5+
from typing import Dict, Iterable
66
from typing_extensions import TypedDict
77

88
from .code_mount_parameters_param import CodeMountParametersParam
@@ -53,12 +53,5 @@ class DevboxCreateParams(TypedDict, total=False):
5353
prebuilt: str
5454
"""Reference to prebuilt Blueprint."""
5555

56-
setup_commands: List[str]
57-
"""(Optional) List of commands needed to set up your Devbox.
58-
59-
Examples might include fetching a tool or building your dependencies. Runloop
60-
will look optimize these steps for you.
61-
"""
62-
6356
snapshot_id: str
6457
"""Snapshot ID to use for the Devbox."""

tests/api_resources/test_devboxes.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,6 @@ def test_method_create_with_all_params(self, client: Runloop) -> None:
6868
metadata={"foo": "string"},
6969
name="name",
7070
prebuilt="prebuilt",
71-
setup_commands=["string"],
7271
snapshot_id="snapshot_id",
7372
)
7473
assert_matches_type(DevboxView, devbox, path=["response"])
@@ -810,7 +809,6 @@ async def test_method_create_with_all_params(self, async_client: AsyncRunloop) -
810809
metadata={"foo": "string"},
811810
name="name",
812811
prebuilt="prebuilt",
813-
setup_commands=["string"],
814812
snapshot_id="snapshot_id",
815813
)
816814
assert_matches_type(DevboxView, devbox, path=["response"])

0 commit comments

Comments
 (0)