Skip to content

Commit 5241aaf

Browse files
feat(api): OpenAPI spec update via Stainless API (#168)
1 parent f802115 commit 5241aaf

4 files changed

Lines changed: 14 additions & 1 deletion

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: 26
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/runloop-ai%2Frunloop-6a2957eefc52bc72e8f14bc3d6c6e3f6754c29f4c8189af201d19d2819e80b1a.yml
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/runloop-ai%2Frunloop-656ad8ac46b9a461b793c2f52f047a40bcdb78d7ce3ecf779ef028cf2ff51079.yml

src/runloop_api_client/resources/devboxes/devboxes.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@ def create(
9797
launch_parameters: devbox_create_params.LaunchParameters | NotGiven = NOT_GIVEN,
9898
metadata: Dict[str, str] | NotGiven = NOT_GIVEN,
9999
name: str | NotGiven = NOT_GIVEN,
100+
prebuilt: str | NotGiven = NOT_GIVEN,
100101
setup_commands: List[str] | NotGiven = NOT_GIVEN,
101102
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
102103
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -133,6 +134,8 @@ def create(
133134
134135
name: (Optional) A user specified name to give the Devbox.
135136
137+
prebuilt: Handle to prebuilt.
138+
136139
setup_commands: (Optional) List of commands needed to set up your Devbox. Examples might include
137140
fetching a tool or building your dependencies. Runloop will look optimize these
138141
steps for you.
@@ -158,6 +161,7 @@ def create(
158161
"launch_parameters": launch_parameters,
159162
"metadata": metadata,
160163
"name": name,
164+
"prebuilt": prebuilt,
161165
"setup_commands": setup_commands,
162166
},
163167
devbox_create_params.DevboxCreateParams,
@@ -588,6 +592,7 @@ async def create(
588592
launch_parameters: devbox_create_params.LaunchParameters | NotGiven = NOT_GIVEN,
589593
metadata: Dict[str, str] | NotGiven = NOT_GIVEN,
590594
name: str | NotGiven = NOT_GIVEN,
595+
prebuilt: str | NotGiven = NOT_GIVEN,
591596
setup_commands: List[str] | NotGiven = NOT_GIVEN,
592597
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
593598
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -624,6 +629,8 @@ async def create(
624629
625630
name: (Optional) A user specified name to give the Devbox.
626631
632+
prebuilt: Handle to prebuilt.
633+
627634
setup_commands: (Optional) List of commands needed to set up your Devbox. Examples might include
628635
fetching a tool or building your dependencies. Runloop will look optimize these
629636
steps for you.
@@ -649,6 +656,7 @@ async def create(
649656
"launch_parameters": launch_parameters,
650657
"metadata": metadata,
651658
"name": name,
659+
"prebuilt": prebuilt,
652660
"setup_commands": setup_commands,
653661
},
654662
devbox_create_params.DevboxCreateParams,

src/runloop_api_client/types/devbox_create_params.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,9 @@ class DevboxCreateParams(TypedDict, total=False):
5050
name: str
5151
"""(Optional) A user specified name to give the Devbox."""
5252

53+
prebuilt: str
54+
"""Handle to prebuilt."""
55+
5356
setup_commands: List[str]
5457
"""(Optional) List of commands needed to set up your Devbox.
5558

tests/api_resources/test_devboxes.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ def test_method_create_with_all_params(self, client: Runloop) -> None:
6363
},
6464
metadata={"foo": "string"},
6565
name="name",
66+
prebuilt="prebuilt",
6667
setup_commands=["string", "string", "string"],
6768
)
6869
assert_matches_type(DevboxView, devbox, path=["response"])
@@ -513,6 +514,7 @@ async def test_method_create_with_all_params(self, async_client: AsyncRunloop) -
513514
},
514515
metadata={"foo": "string"},
515516
name="name",
517+
prebuilt="prebuilt",
516518
setup_commands=["string", "string", "string"],
517519
)
518520
assert_matches_type(DevboxView, devbox, path=["response"])

0 commit comments

Comments
 (0)