@@ -103,6 +103,7 @@ def with_streaming_response(self) -> DevboxesResourceWithStreamingResponse:
103103 def create (
104104 self ,
105105 * ,
106+ available_ports : Iterable [int ] | NotGiven = NOT_GIVEN ,
106107 blueprint_id : str | NotGiven = NOT_GIVEN ,
107108 blueprint_name : str | NotGiven = NOT_GIVEN ,
108109 code_mounts : Iterable [CodeMountParametersParam ] | NotGiven = NOT_GIVEN ,
@@ -128,6 +129,9 @@ def create(
128129 the 'pending' state and will transition to 'running' once it is ready.
129130
130131 Args:
132+ available_ports: A list of ports to make available on the Devbox. Call createTunnel to open a
133+ tunnel to the port.
134+
131135 blueprint_id: (Optional) Blueprint to use for the Devbox. If none set, the Devbox will be
132136 created with the default Runloop Devbox image.
133137
@@ -170,6 +174,7 @@ def create(
170174 "/v1/devboxes" ,
171175 body = maybe_transform (
172176 {
177+ "available_ports" : available_ports ,
173178 "blueprint_id" : blueprint_id ,
174179 "blueprint_name" : blueprint_name ,
175180 "code_mounts" : code_mounts ,
@@ -832,6 +837,7 @@ def with_streaming_response(self) -> AsyncDevboxesResourceWithStreamingResponse:
832837 async def create (
833838 self ,
834839 * ,
840+ available_ports : Iterable [int ] | NotGiven = NOT_GIVEN ,
835841 blueprint_id : str | NotGiven = NOT_GIVEN ,
836842 blueprint_name : str | NotGiven = NOT_GIVEN ,
837843 code_mounts : Iterable [CodeMountParametersParam ] | NotGiven = NOT_GIVEN ,
@@ -857,6 +863,9 @@ async def create(
857863 the 'pending' state and will transition to 'running' once it is ready.
858864
859865 Args:
866+ available_ports: A list of ports to make available on the Devbox. Call createTunnel to open a
867+ tunnel to the port.
868+
860869 blueprint_id: (Optional) Blueprint to use for the Devbox. If none set, the Devbox will be
861870 created with the default Runloop Devbox image.
862871
@@ -899,6 +908,7 @@ async def create(
899908 "/v1/devboxes" ,
900909 body = await async_maybe_transform (
901910 {
911+ "available_ports" : available_ports ,
902912 "blueprint_id" : blueprint_id ,
903913 "blueprint_name" : blueprint_name ,
904914 "code_mounts" : code_mounts ,
0 commit comments