|
37 | 37 | devbox_snapshot_disk_async_params, |
38 | 38 | devbox_write_file_contents_params, |
39 | 39 | ) |
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 |
41 | 41 | from ..._utils import is_given, extract_files, maybe_transform, deepcopy_minimal, async_maybe_transform |
42 | 42 | from .browsers import ( |
43 | 43 | BrowsersResource, |
@@ -429,25 +429,26 @@ def is_done_booting(devbox: DevboxView) -> bool: |
429 | 429 | def create_and_await_running( |
430 | 430 | self, |
431 | 431 | *, |
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, |
441 | 442 | 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, |
445 | 446 | # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. |
446 | 447 | # The extra values given here take precedence over values defined on the client or passed to this method. |
447 | 448 | extra_headers: Headers | None = None, |
448 | 449 | extra_query: Query | None = None, |
449 | 450 | extra_body: Body | None = None, |
450 | | - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, |
| 451 | + timeout: float | httpx.Timeout | None | NotGiven = not_given, |
451 | 452 | idempotency_key: str | None = None, |
452 | 453 | ) -> DevboxView: |
453 | 454 | """Create a new devbox and wait for it to be in running state. |
@@ -475,6 +476,7 @@ def create_and_await_running( |
475 | 476 | file_mounts=file_mounts, |
476 | 477 | launch_parameters=launch_parameters, |
477 | 478 | metadata=metadata, |
| 479 | + mounts=mounts, |
478 | 480 | name=name, |
479 | 481 | repo_connection_id=repo_connection_id, |
480 | 482 | secrets=secrets, |
@@ -800,13 +802,13 @@ def execute_and_await_completion( |
800 | 802 | devbox_id: str, |
801 | 803 | *, |
802 | 804 | command: str, |
803 | | - shell_name: Optional[str] | NotGiven = NOT_GIVEN, |
| 805 | + shell_name: Optional[str] | Omit = omit, |
804 | 806 | polling_config: PollingConfig | None = None, |
805 | 807 | # The following are forwarded to the initial execute request |
806 | 808 | extra_headers: Headers | None = None, |
807 | 809 | extra_query: Query | None = None, |
808 | 810 | extra_body: Body | None = None, |
809 | | - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, |
| 811 | + timeout: float | httpx.Timeout | None | NotGiven = not_given, |
810 | 812 | idempotency_key: str | None = None, |
811 | 813 | ) -> DevboxAsyncExecutionDetailView: |
812 | 814 | """ |
@@ -1801,25 +1803,26 @@ async def retrieve( |
1801 | 1803 | async def create_and_await_running( |
1802 | 1804 | self, |
1803 | 1805 | *, |
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, |
1813 | 1816 | 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, |
1817 | 1820 | # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. |
1818 | 1821 | # The extra values given here take precedence over values defined on the client or passed to this method. |
1819 | 1822 | extra_headers: Headers | None = None, |
1820 | 1823 | extra_query: Query | None = None, |
1821 | 1824 | extra_body: Body | None = None, |
1822 | | - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, |
| 1825 | + timeout: float | httpx.Timeout | None | NotGiven = not_given, |
1823 | 1826 | idempotency_key: str | None = None, |
1824 | 1827 | ) -> DevboxView: |
1825 | 1828 | """Create a devbox and wait for it to be in running state. |
@@ -1848,6 +1851,7 @@ async def create_and_await_running( |
1848 | 1851 | file_mounts=file_mounts, |
1849 | 1852 | launch_parameters=launch_parameters, |
1850 | 1853 | metadata=metadata, |
| 1854 | + mounts=mounts, |
1851 | 1855 | name=name, |
1852 | 1856 | repo_connection_id=repo_connection_id, |
1853 | 1857 | secrets=secrets, |
@@ -2280,13 +2284,13 @@ async def execute_and_await_completion( |
2280 | 2284 | devbox_id: str, |
2281 | 2285 | *, |
2282 | 2286 | command: str, |
2283 | | - shell_name: Optional[str] | NotGiven = NOT_GIVEN, |
| 2287 | + shell_name: Optional[str] | Omit = omit, |
2284 | 2288 | polling_config: PollingConfig | None = None, |
2285 | 2289 | # The following are forwarded to the initial execute request |
2286 | 2290 | extra_headers: Headers | None = None, |
2287 | 2291 | extra_query: Query | None = None, |
2288 | 2292 | extra_body: Body | None = None, |
2289 | | - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, |
| 2293 | + timeout: float | httpx.Timeout | None | NotGiven = not_given, |
2290 | 2294 | idempotency_key: str | None = None, |
2291 | 2295 | ) -> DevboxAsyncExecutionDetailView: |
2292 | 2296 | """ |
|
0 commit comments