@@ -102,6 +102,7 @@ def with_streaming_response(self) -> DevboxesResourceWithStreamingResponse:
102102 def create (
103103 self ,
104104 * ,
105+ available_ports : Iterable [int ] | NotGiven = NOT_GIVEN ,
105106 blueprint_id : str | NotGiven = NOT_GIVEN ,
106107 blueprint_name : str | NotGiven = NOT_GIVEN ,
107108 code_mounts : Iterable [CodeMountParametersParam ] | NotGiven = NOT_GIVEN ,
@@ -127,6 +128,9 @@ def create(
127128 the 'pending' state and will transition to 'running' once it is ready.
128129
129130 Args:
131+ available_ports: A list of ports to make available on the Devbox. Call createTunnel to open a
132+ tunnel to the port.
133+
130134 blueprint_id: (Optional) Blueprint to use for the Devbox. If none set, the Devbox will be
131135 created with the default Runloop Devbox image.
132136
@@ -169,6 +173,7 @@ def create(
169173 "/v1/devboxes" ,
170174 body = maybe_transform (
171175 {
176+ "available_ports" : available_ports ,
172177 "blueprint_id" : blueprint_id ,
173178 "blueprint_name" : blueprint_name ,
174179 "code_mounts" : code_mounts ,
@@ -731,6 +736,7 @@ def with_streaming_response(self) -> AsyncDevboxesResourceWithStreamingResponse:
731736 async def create (
732737 self ,
733738 * ,
739+ available_ports : Iterable [int ] | NotGiven = NOT_GIVEN ,
734740 blueprint_id : str | NotGiven = NOT_GIVEN ,
735741 blueprint_name : str | NotGiven = NOT_GIVEN ,
736742 code_mounts : Iterable [CodeMountParametersParam ] | NotGiven = NOT_GIVEN ,
@@ -756,6 +762,9 @@ async def create(
756762 the 'pending' state and will transition to 'running' once it is ready.
757763
758764 Args:
765+ available_ports: A list of ports to make available on the Devbox. Call createTunnel to open a
766+ tunnel to the port.
767+
759768 blueprint_id: (Optional) Blueprint to use for the Devbox. If none set, the Devbox will be
760769 created with the default Runloop Devbox image.
761770
@@ -798,6 +807,7 @@ async def create(
798807 "/v1/devboxes" ,
799808 body = await async_maybe_transform (
800809 {
810+ "available_ports" : available_ports ,
801811 "blueprint_id" : blueprint_id ,
802812 "blueprint_name" : blueprint_name ,
803813 "code_mounts" : code_mounts ,
0 commit comments