@@ -189,6 +189,7 @@ def create(
189189 metadata : Optional [Dict [str , str ]] | Omit = omit ,
190190 mounts : Optional [Iterable [Mount ]] | Omit = omit ,
191191 name : Optional [str ] | Omit = omit ,
192+ network_policy_id : Optional [str ] | Omit = omit ,
192193 repo_connection_id : Optional [str ] | Omit = omit ,
193194 secrets : Optional [Dict [str , str ]] | Omit = omit ,
194195 snapshot_id : Optional [str ] | Omit = omit ,
@@ -235,6 +236,9 @@ def create(
235236
236237 name: (Optional) A user specified name to give the Devbox.
237238
239+ network_policy_id: (Optional) ID of the network policy to apply to this Devbox. If not specified,
240+ the default network policy will be used.
241+
238242 repo_connection_id: Repository connection id the devbox should source its base image from.
239243
240244 secrets: (Optional) Map of environment variable names to secret names. The secret values
@@ -269,6 +273,7 @@ def create(
269273 "metadata" : metadata ,
270274 "mounts" : mounts ,
271275 "name" : name ,
276+ "network_policy_id" : network_policy_id ,
272277 "repo_connection_id" : repo_connection_id ,
273278 "secrets" : secrets ,
274279 "snapshot_id" : snapshot_id ,
@@ -799,8 +804,8 @@ def execute(
799804
800805 last_n: Last n lines of standard error / standard out to return (default: 100)
801806
802- optimistic_timeout: Timeout in seconds to wait for command completion. Operation is not killed. Max
803- is 600 seconds .
807+ optimistic_timeout: Timeout in seconds to wait for command completion, up to 25 seconds. Defaults to
808+ 25 seconds. Operation is not killed .
804809
805810 shell_name: The name of the persistent shell to create or use if already created. When using
806811 a persistent shell, the command will run from the directory at the end of the
@@ -1569,7 +1574,7 @@ def wait_for_command(
15691574 ) -> DevboxAsyncExecutionDetailView :
15701575 """
15711576 Polls the asynchronous execution's status until it reaches one of the desired
1572- statuses or times out. Defaults to 60 seconds.
1577+ statuses or times out. Max is 25 seconds.
15731578
15741579 Args:
15751580 statuses: The command execution statuses to wait for. At least one status must be
@@ -1578,8 +1583,8 @@ def wait_for_command(
15781583
15791584 last_n: Last n lines of standard error / standard out to return (default: 100)
15801585
1581- timeout_seconds: (Optional) Timeout in seconds to wait for the status, up to 60 seconds. Defaults
1582- to 60 seconds.
1586+ timeout_seconds: (Optional) Timeout in seconds to wait for the status, up to 25 seconds. Defaults
1587+ to 25 seconds.
15831588
15841589 extra_headers: Send extra headers
15851590
@@ -1727,6 +1732,7 @@ async def create(
17271732 metadata : Optional [Dict [str , str ]] | Omit = omit ,
17281733 mounts : Optional [Iterable [Mount ]] | Omit = omit ,
17291734 name : Optional [str ] | Omit = omit ,
1735+ network_policy_id : Optional [str ] | Omit = omit ,
17301736 repo_connection_id : Optional [str ] | Omit = omit ,
17311737 secrets : Optional [Dict [str , str ]] | Omit = omit ,
17321738 snapshot_id : Optional [str ] | Omit = omit ,
@@ -1773,6 +1779,9 @@ async def create(
17731779
17741780 name: (Optional) A user specified name to give the Devbox.
17751781
1782+ network_policy_id: (Optional) ID of the network policy to apply to this Devbox. If not specified,
1783+ the default network policy will be used.
1784+
17761785 repo_connection_id: Repository connection id the devbox should source its base image from.
17771786
17781787 secrets: (Optional) Map of environment variable names to secret names. The secret values
@@ -1807,6 +1816,7 @@ async def create(
18071816 "metadata" : metadata ,
18081817 "mounts" : mounts ,
18091818 "name" : name ,
1819+ "network_policy_id" : network_policy_id ,
18101820 "repo_connection_id" : repo_connection_id ,
18111821 "secrets" : secrets ,
18121822 "snapshot_id" : snapshot_id ,
@@ -2334,8 +2344,8 @@ async def execute(
23342344
23352345 last_n: Last n lines of standard error / standard out to return (default: 100)
23362346
2337- optimistic_timeout: Timeout in seconds to wait for command completion. Operation is not killed. Max
2338- is 600 seconds .
2347+ optimistic_timeout: Timeout in seconds to wait for command completion, up to 25 seconds. Defaults to
2348+ 25 seconds. Operation is not killed .
23392349
23402350 shell_name: The name of the persistent shell to create or use if already created. When using
23412351 a persistent shell, the command will run from the directory at the end of the
@@ -3105,7 +3115,7 @@ async def wait_for_command(
31053115 ) -> DevboxAsyncExecutionDetailView :
31063116 """
31073117 Polls the asynchronous execution's status until it reaches one of the desired
3108- statuses or times out. Defaults to 60 seconds.
3118+ statuses or times out. Max is 25 seconds.
31093119
31103120 Args:
31113121 statuses: The command execution statuses to wait for. At least one status must be
@@ -3114,8 +3124,8 @@ async def wait_for_command(
31143124
31153125 last_n: Last n lines of standard error / standard out to return (default: 100)
31163126
3117- timeout_seconds: (Optional) Timeout in seconds to wait for the status, up to 60 seconds. Defaults
3118- to 60 seconds.
3127+ timeout_seconds: (Optional) Timeout in seconds to wait for the status, up to 25 seconds. Defaults
3128+ to 25 seconds.
31193129
31203130 extra_headers: Send extra headers
31213131
0 commit comments