Skip to content

Commit ce0265e

Browse files
committed
added file system mount parameter to devboxes.create_and_await_running, and cleaned up NOT_GIVEN default params to match generated code signatures
1 parent 25a9083 commit ce0265e

File tree

1 file changed

+35
-31
lines changed

1 file changed

+35
-31
lines changed

src/runloop_api_client/resources/devboxes/devboxes.py

Lines changed: 35 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
devbox_snapshot_disk_async_params,
3838
devbox_write_file_contents_params,
3939
)
40-
from ..._types import NOT_GIVEN, Body, Omit, Query, Headers, NotGiven, FileTypes, omit, not_given
40+
from ..._types import Body, Omit, Query, Headers, NotGiven, FileTypes, omit, not_given
4141
from ..._utils import is_given, extract_files, maybe_transform, deepcopy_minimal, async_maybe_transform
4242
from .browsers import (
4343
BrowsersResource,
@@ -429,25 +429,26 @@ def is_done_booting(devbox: DevboxView) -> bool:
429429
def create_and_await_running(
430430
self,
431431
*,
432-
blueprint_id: Optional[str] | NotGiven = NOT_GIVEN,
433-
blueprint_name: Optional[str] | NotGiven = NOT_GIVEN,
434-
code_mounts: Optional[Iterable[CodeMountParameters]] | NotGiven = NOT_GIVEN,
435-
entrypoint: Optional[str] | NotGiven = NOT_GIVEN,
436-
environment_variables: Optional[Dict[str, str]] | NotGiven = NOT_GIVEN,
437-
file_mounts: Optional[Dict[str, str]] | NotGiven = NOT_GIVEN,
438-
launch_parameters: Optional[LaunchParameters] | NotGiven = NOT_GIVEN,
439-
metadata: Optional[Dict[str, str]] | NotGiven = NOT_GIVEN,
440-
name: Optional[str] | NotGiven = NOT_GIVEN,
432+
blueprint_id: Optional[str] | Omit = omit,
433+
blueprint_name: Optional[str] | Omit = omit,
434+
code_mounts: Optional[Iterable[CodeMountParameters]] | Omit = omit,
435+
entrypoint: Optional[str] | Omit = omit,
436+
environment_variables: Optional[Dict[str, str]] | Omit = omit,
437+
file_mounts: Optional[Dict[str, str]] | Omit = omit,
438+
launch_parameters: Optional[LaunchParameters] | Omit = omit,
439+
metadata: Optional[Dict[str, str]] | Omit = omit,
440+
mounts: Optional[Iterable[Mount]] | Omit = omit,
441+
name: Optional[str] | Omit = omit,
441442
polling_config: PollingConfig | None = None,
442-
repo_connection_id: Optional[str] | NotGiven = NOT_GIVEN,
443-
secrets: Optional[Dict[str, str]] | NotGiven = NOT_GIVEN,
444-
snapshot_id: Optional[str] | NotGiven = NOT_GIVEN,
443+
repo_connection_id: Optional[str] | Omit = omit,
444+
secrets: Optional[Dict[str, str]] | Omit = omit,
445+
snapshot_id: Optional[str] | Omit = omit,
445446
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
446447
# The extra values given here take precedence over values defined on the client or passed to this method.
447448
extra_headers: Headers | None = None,
448449
extra_query: Query | None = None,
449450
extra_body: Body | None = None,
450-
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
451+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
451452
idempotency_key: str | None = None,
452453
) -> DevboxView:
453454
"""Create a new devbox and wait for it to be in running state.
@@ -475,6 +476,7 @@ def create_and_await_running(
475476
file_mounts=file_mounts,
476477
launch_parameters=launch_parameters,
477478
metadata=metadata,
479+
mounts=mounts,
478480
name=name,
479481
repo_connection_id=repo_connection_id,
480482
secrets=secrets,
@@ -800,13 +802,13 @@ def execute_and_await_completion(
800802
devbox_id: str,
801803
*,
802804
command: str,
803-
shell_name: Optional[str] | NotGiven = NOT_GIVEN,
805+
shell_name: Optional[str] | Omit = omit,
804806
polling_config: PollingConfig | None = None,
805807
# The following are forwarded to the initial execute request
806808
extra_headers: Headers | None = None,
807809
extra_query: Query | None = None,
808810
extra_body: Body | None = None,
809-
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
811+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
810812
idempotency_key: str | None = None,
811813
) -> DevboxAsyncExecutionDetailView:
812814
"""
@@ -1801,25 +1803,26 @@ async def retrieve(
18011803
async def create_and_await_running(
18021804
self,
18031805
*,
1804-
blueprint_id: Optional[str] | NotGiven = NOT_GIVEN,
1805-
blueprint_name: Optional[str] | NotGiven = NOT_GIVEN,
1806-
code_mounts: Optional[Iterable[CodeMountParameters]] | NotGiven = NOT_GIVEN,
1807-
entrypoint: Optional[str] | NotGiven = NOT_GIVEN,
1808-
environment_variables: Optional[Dict[str, str]] | NotGiven = NOT_GIVEN,
1809-
file_mounts: Optional[Dict[str, str]] | NotGiven = NOT_GIVEN,
1810-
launch_parameters: Optional[LaunchParameters] | NotGiven = NOT_GIVEN,
1811-
metadata: Optional[Dict[str, str]] | NotGiven = NOT_GIVEN,
1812-
name: Optional[str] | NotGiven = NOT_GIVEN,
1806+
blueprint_id: Optional[str] | Omit = omit,
1807+
blueprint_name: Optional[str] | Omit = omit,
1808+
code_mounts: Optional[Iterable[CodeMountParameters]] | Omit = omit,
1809+
entrypoint: Optional[str] | Omit = omit,
1810+
environment_variables: Optional[Dict[str, str]] | Omit = omit,
1811+
file_mounts: Optional[Dict[str, str]] | Omit = omit,
1812+
launch_parameters: Optional[LaunchParameters] | Omit = omit,
1813+
metadata: Optional[Dict[str, str]] | Omit = omit,
1814+
mounts: Optional[Iterable[Mount]] | Omit = omit,
1815+
name: Optional[str] | Omit = omit,
18131816
polling_config: PollingConfig | None = None,
1814-
repo_connection_id: Optional[str] | NotGiven = NOT_GIVEN,
1815-
secrets: Optional[Dict[str, str]] | NotGiven = NOT_GIVEN,
1816-
snapshot_id: Optional[str] | NotGiven = NOT_GIVEN,
1817+
repo_connection_id: Optional[str] | Omit = omit,
1818+
secrets: Optional[Dict[str, str]] | Omit = omit,
1819+
snapshot_id: Optional[str] | Omit = omit,
18171820
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
18181821
# The extra values given here take precedence over values defined on the client or passed to this method.
18191822
extra_headers: Headers | None = None,
18201823
extra_query: Query | None = None,
18211824
extra_body: Body | None = None,
1822-
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
1825+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
18231826
idempotency_key: str | None = None,
18241827
) -> DevboxView:
18251828
"""Create a devbox and wait for it to be in running state.
@@ -1848,6 +1851,7 @@ async def create_and_await_running(
18481851
file_mounts=file_mounts,
18491852
launch_parameters=launch_parameters,
18501853
metadata=metadata,
1854+
mounts=mounts,
18511855
name=name,
18521856
repo_connection_id=repo_connection_id,
18531857
secrets=secrets,
@@ -2280,13 +2284,13 @@ async def execute_and_await_completion(
22802284
devbox_id: str,
22812285
*,
22822286
command: str,
2283-
shell_name: Optional[str] | NotGiven = NOT_GIVEN,
2287+
shell_name: Optional[str] | Omit = omit,
22842288
polling_config: PollingConfig | None = None,
22852289
# The following are forwarded to the initial execute request
22862290
extra_headers: Headers | None = None,
22872291
extra_query: Query | None = None,
22882292
extra_body: Body | None = None,
2289-
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
2293+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
22902294
idempotency_key: str | None = None,
22912295
) -> DevboxAsyncExecutionDetailView:
22922296
"""

0 commit comments

Comments
 (0)