22
33from __future__ import annotations
44
5- from typing import Dict , List , Mapping , cast
5+ from typing import Dict , List , Mapping , Iterable , cast
66
77import httpx
88
4949from ..._base_client import make_request_options
5050from ...types .devbox_view import DevboxView
5151from ...types .devbox_list_view import DevboxListView
52+ from ...types .code_mount_parameters_param import CodeMountParametersParam
5253from ...types .devbox_execution_detail_view import DevboxExecutionDetailView
5354from ...types .devbox_create_ssh_key_response import DevboxCreateSSHKeyResponse
5455from ...types .devbox_async_execution_detail_view import DevboxAsyncExecutionDetailView
@@ -78,6 +79,7 @@ def create(
7879 * ,
7980 blueprint_id : str | NotGiven = NOT_GIVEN ,
8081 blueprint_name : str | NotGiven = NOT_GIVEN ,
82+ code_mounts : Iterable [CodeMountParametersParam ] | NotGiven = NOT_GIVEN ,
8183 entrypoint : str | NotGiven = NOT_GIVEN ,
8284 environment_variables : Dict [str , str ] | NotGiven = NOT_GIVEN ,
8385 file_mounts : Dict [str , str ] | NotGiven = NOT_GIVEN ,
@@ -104,6 +106,8 @@ def create(
104106 blueprint_name: (Optional) Name of Blueprint to use for the Devbox. When set, this will load the
105107 latest successfully built Blueprint with the given name.
106108
109+ code_mounts: A list of code mounts to be included in the Devbox.
110+
107111 entrypoint: (Optional) When specified, the Devbox will run this script as its main
108112 executable. The devbox lifecycle will be bound to entrypoint, shutting down when
109113 the process is complete.
@@ -136,6 +140,7 @@ def create(
136140 {
137141 "blueprint_id" : blueprint_id ,
138142 "blueprint_name" : blueprint_name ,
143+ "code_mounts" : code_mounts ,
139144 "entrypoint" : entrypoint ,
140145 "environment_variables" : environment_variables ,
141146 "file_mounts" : file_mounts ,
@@ -554,6 +559,7 @@ async def create(
554559 * ,
555560 blueprint_id : str | NotGiven = NOT_GIVEN ,
556561 blueprint_name : str | NotGiven = NOT_GIVEN ,
562+ code_mounts : Iterable [CodeMountParametersParam ] | NotGiven = NOT_GIVEN ,
557563 entrypoint : str | NotGiven = NOT_GIVEN ,
558564 environment_variables : Dict [str , str ] | NotGiven = NOT_GIVEN ,
559565 file_mounts : Dict [str , str ] | NotGiven = NOT_GIVEN ,
@@ -580,6 +586,8 @@ async def create(
580586 blueprint_name: (Optional) Name of Blueprint to use for the Devbox. When set, this will load the
581587 latest successfully built Blueprint with the given name.
582588
589+ code_mounts: A list of code mounts to be included in the Devbox.
590+
583591 entrypoint: (Optional) When specified, the Devbox will run this script as its main
584592 executable. The devbox lifecycle will be bound to entrypoint, shutting down when
585593 the process is complete.
@@ -612,6 +620,7 @@ async def create(
612620 {
613621 "blueprint_id" : blueprint_id ,
614622 "blueprint_name" : blueprint_name ,
623+ "code_mounts" : code_mounts ,
615624 "entrypoint" : entrypoint ,
616625 "environment_variables" : environment_variables ,
617626 "file_mounts" : file_mounts ,
0 commit comments