Skip to content

Commit 12018b3

Browse files
stainless-app[bot]stainless-bot
authored andcommitted
feat(api): OpenAPI spec update via Stainless API (#57)
1 parent ba93ed6 commit 12018b3

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: 19
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/runloop-ai%2Frunloop-e751c0da04b49b6396f7d2479124f2ed2aaf4f69a74f4cb981bffcd0f310061c.yml
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/runloop-ai%2Frunloop-1ee44166266d9e9a3ab416b9a232c5cc239e42d504eec799e67df4563b19916f.yml

src/runloop_api_client/resources/devboxes/devboxes.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ def create(
5757
code_handle: str | NotGiven = NOT_GIVEN,
5858
entrypoint: str | NotGiven = NOT_GIVEN,
5959
environment_variables: Dict[str, str] | NotGiven = NOT_GIVEN,
60+
file_mounts: Dict[str, str] | NotGiven = NOT_GIVEN,
6061
name: str | NotGiven = NOT_GIVEN,
6162
setup_commands: List[str] | NotGiven = NOT_GIVEN,
6263
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -86,6 +87,8 @@ def create(
8687
8788
environment_variables: (Optional) Environment variables used to configure your Devbox.
8889
90+
file_mounts: (Optional) Map of paths and file contents to write before setup..
91+
8992
name: (Optional) A user specified name to give the Devbox.
9093
9194
setup_commands: (Optional) List of commands needed to set up your Devbox. Examples might include
@@ -109,6 +112,7 @@ def create(
109112
"code_handle": code_handle,
110113
"entrypoint": entrypoint,
111114
"environment_variables": environment_variables,
115+
"file_mounts": file_mounts,
112116
"name": name,
113117
"setup_commands": setup_commands,
114118
},
@@ -299,6 +303,7 @@ async def create(
299303
code_handle: str | NotGiven = NOT_GIVEN,
300304
entrypoint: str | NotGiven = NOT_GIVEN,
301305
environment_variables: Dict[str, str] | NotGiven = NOT_GIVEN,
306+
file_mounts: Dict[str, str] | NotGiven = NOT_GIVEN,
302307
name: str | NotGiven = NOT_GIVEN,
303308
setup_commands: List[str] | NotGiven = NOT_GIVEN,
304309
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -328,6 +333,8 @@ async def create(
328333
329334
environment_variables: (Optional) Environment variables used to configure your Devbox.
330335
336+
file_mounts: (Optional) Map of paths and file contents to write before setup..
337+
331338
name: (Optional) A user specified name to give the Devbox.
332339
333340
setup_commands: (Optional) List of commands needed to set up your Devbox. Examples might include
@@ -351,6 +358,7 @@ async def create(
351358
"code_handle": code_handle,
352359
"entrypoint": entrypoint,
353360
"environment_variables": environment_variables,
361+
"file_mounts": file_mounts,
354362
"name": name,
355363
"setup_commands": setup_commands,
356364
},

src/runloop_api_client/types/devbox_create_params.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,9 @@ class DevboxCreateParams(TypedDict, total=False):
3535
environment_variables: Dict[str, str]
3636
"""(Optional) Environment variables used to configure your Devbox."""
3737

38+
file_mounts: Dict[str, str]
39+
"""(Optional) Map of paths and file contents to write before setup.."""
40+
3841
name: str
3942
"""(Optional) A user specified name to give the Devbox."""
4043

tests/api_resources/test_devboxes.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ def test_method_create_with_all_params(self, client: Runloop) -> None:
3434
code_handle="code_handle",
3535
entrypoint="entrypoint",
3636
environment_variables={"foo": "string"},
37+
file_mounts={"foo": "string"},
3738
name="name",
3839
setup_commands=["string", "string", "string"],
3940
)
@@ -232,6 +233,7 @@ async def test_method_create_with_all_params(self, async_client: AsyncRunloop) -
232233
code_handle="code_handle",
233234
entrypoint="entrypoint",
234235
environment_variables={"foo": "string"},
236+
file_mounts={"foo": "string"},
235237
name="name",
236238
setup_commands=["string", "string", "string"],
237239
)

0 commit comments

Comments
 (0)