Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
66 changes: 35 additions & 31 deletions src/runloop_api_client/resources/devboxes/devboxes.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
devbox_snapshot_disk_async_params,
devbox_write_file_contents_params,
)
from ..._types import NOT_GIVEN, Body, Omit, Query, Headers, NotGiven, FileTypes, omit, not_given
from ..._types import Body, Omit, Query, Headers, NotGiven, FileTypes, omit, not_given
from ..._utils import is_given, extract_files, maybe_transform, deepcopy_minimal, async_maybe_transform
from .browsers import (
BrowsersResource,
Expand Down Expand Up @@ -429,25 +429,26 @@ def is_done_booting(devbox: DevboxView) -> bool:
def create_and_await_running(
self,
*,
blueprint_id: Optional[str] | NotGiven = NOT_GIVEN,
blueprint_name: Optional[str] | NotGiven = NOT_GIVEN,
code_mounts: Optional[Iterable[CodeMountParameters]] | NotGiven = NOT_GIVEN,
entrypoint: Optional[str] | NotGiven = NOT_GIVEN,
environment_variables: Optional[Dict[str, str]] | NotGiven = NOT_GIVEN,
file_mounts: Optional[Dict[str, str]] | NotGiven = NOT_GIVEN,
launch_parameters: Optional[LaunchParameters] | NotGiven = NOT_GIVEN,
metadata: Optional[Dict[str, str]] | NotGiven = NOT_GIVEN,
name: Optional[str] | NotGiven = NOT_GIVEN,
blueprint_id: Optional[str] | Omit = omit,
blueprint_name: Optional[str] | Omit = omit,
code_mounts: Optional[Iterable[CodeMountParameters]] | Omit = omit,
entrypoint: Optional[str] | Omit = omit,
environment_variables: Optional[Dict[str, str]] | Omit = omit,
file_mounts: Optional[Dict[str, str]] | Omit = omit,
launch_parameters: Optional[LaunchParameters] | Omit = omit,
metadata: Optional[Dict[str, str]] | Omit = omit,
mounts: Optional[Iterable[Mount]] | Omit = omit,
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is the only extra parameter

name: Optional[str] | Omit = omit,
polling_config: PollingConfig | None = None,
repo_connection_id: Optional[str] | NotGiven = NOT_GIVEN,
secrets: Optional[Dict[str, str]] | NotGiven = NOT_GIVEN,
snapshot_id: Optional[str] | NotGiven = NOT_GIVEN,
repo_connection_id: Optional[str] | Omit = omit,
secrets: Optional[Dict[str, str]] | Omit = omit,
snapshot_id: Optional[str] | Omit = omit,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
timeout: float | httpx.Timeout | None | NotGiven = not_given,
idempotency_key: str | None = None,
) -> DevboxView:
"""Create a new devbox and wait for it to be in running state.
Expand Down Expand Up @@ -475,6 +476,7 @@ def create_and_await_running(
file_mounts=file_mounts,
launch_parameters=launch_parameters,
metadata=metadata,
mounts=mounts,
name=name,
repo_connection_id=repo_connection_id,
secrets=secrets,
Expand Down Expand Up @@ -800,13 +802,13 @@ def execute_and_await_completion(
devbox_id: str,
*,
command: str,
shell_name: Optional[str] | NotGiven = NOT_GIVEN,
shell_name: Optional[str] | Omit = omit,
polling_config: PollingConfig | None = None,
# The following are forwarded to the initial execute request
extra_headers: Headers | None = None,
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
timeout: float | httpx.Timeout | None | NotGiven = not_given,
idempotency_key: str | None = None,
) -> DevboxAsyncExecutionDetailView:
"""
Expand Down Expand Up @@ -1801,25 +1803,26 @@ async def retrieve(
async def create_and_await_running(
self,
*,
blueprint_id: Optional[str] | NotGiven = NOT_GIVEN,
blueprint_name: Optional[str] | NotGiven = NOT_GIVEN,
code_mounts: Optional[Iterable[CodeMountParameters]] | NotGiven = NOT_GIVEN,
entrypoint: Optional[str] | NotGiven = NOT_GIVEN,
environment_variables: Optional[Dict[str, str]] | NotGiven = NOT_GIVEN,
file_mounts: Optional[Dict[str, str]] | NotGiven = NOT_GIVEN,
launch_parameters: Optional[LaunchParameters] | NotGiven = NOT_GIVEN,
metadata: Optional[Dict[str, str]] | NotGiven = NOT_GIVEN,
name: Optional[str] | NotGiven = NOT_GIVEN,
blueprint_id: Optional[str] | Omit = omit,
blueprint_name: Optional[str] | Omit = omit,
code_mounts: Optional[Iterable[CodeMountParameters]] | Omit = omit,
entrypoint: Optional[str] | Omit = omit,
environment_variables: Optional[Dict[str, str]] | Omit = omit,
file_mounts: Optional[Dict[str, str]] | Omit = omit,
launch_parameters: Optional[LaunchParameters] | Omit = omit,
metadata: Optional[Dict[str, str]] | Omit = omit,
mounts: Optional[Iterable[Mount]] | Omit = omit,
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is the only extra parameter

name: Optional[str] | Omit = omit,
polling_config: PollingConfig | None = None,
repo_connection_id: Optional[str] | NotGiven = NOT_GIVEN,
secrets: Optional[Dict[str, str]] | NotGiven = NOT_GIVEN,
snapshot_id: Optional[str] | NotGiven = NOT_GIVEN,
repo_connection_id: Optional[str] | Omit = omit,
secrets: Optional[Dict[str, str]] | Omit = omit,
snapshot_id: Optional[str] | Omit = omit,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
timeout: float | httpx.Timeout | None | NotGiven = not_given,
idempotency_key: str | None = None,
) -> DevboxView:
"""Create a devbox and wait for it to be in running state.
Expand Down Expand Up @@ -1848,6 +1851,7 @@ async def create_and_await_running(
file_mounts=file_mounts,
launch_parameters=launch_parameters,
metadata=metadata,
mounts=mounts,
name=name,
repo_connection_id=repo_connection_id,
secrets=secrets,
Expand Down Expand Up @@ -2280,13 +2284,13 @@ async def execute_and_await_completion(
devbox_id: str,
*,
command: str,
shell_name: Optional[str] | NotGiven = NOT_GIVEN,
shell_name: Optional[str] | Omit = omit,
polling_config: PollingConfig | None = None,
# The following are forwarded to the initial execute request
extra_headers: Headers | None = None,
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
timeout: float | httpx.Timeout | None | NotGiven = not_given,
idempotency_key: str | None = None,
) -> DevboxAsyncExecutionDetailView:
"""
Expand Down