2424 devbox_create_params ,
2525 devbox_update_params ,
2626 devbox_execute_params ,
27+ devbox_shutdown_params ,
2728 devbox_upload_file_params ,
2829 devbox_execute_sync_params ,
2930 devbox_create_tunnel_params ,
@@ -1415,6 +1416,7 @@ def shutdown(
14151416 self ,
14161417 id : str ,
14171418 * ,
1419+ force : str | Omit = omit ,
14181420 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
14191421 # The extra values given here take precedence over values defined on the client or passed to this method.
14201422 extra_headers : Headers | None = None ,
@@ -1427,9 +1429,13 @@ def shutdown(
14271429
14281430 This will permanently stop the Devbox. If you want to
14291431 save the state of the Devbox, you should take a snapshot before shutting down or
1430- should suspend the Devbox instead of shutting down.
1432+ should suspend the Devbox instead of shutting down. If the Devbox has any
1433+ in-progress snapshots, the shutdown will be rejected with a 409 Conflict unless
1434+ force=true is specified.
14311435
14321436 Args:
1437+ force: If true, force shutdown even if snapshots are in progress. Defaults to false.
1438+
14331439 extra_headers: Send extra headers
14341440
14351441 extra_query: Add additional query parameters to the request
@@ -1450,6 +1456,7 @@ def shutdown(
14501456 extra_body = extra_body ,
14511457 timeout = timeout ,
14521458 idempotency_key = idempotency_key ,
1459+ query = maybe_transform ({"force" : force }, devbox_shutdown_params .DevboxShutdownParams ),
14531460 ),
14541461 cast_to = DevboxView ,
14551462 )
@@ -3077,6 +3084,7 @@ async def shutdown(
30773084 self ,
30783085 id : str ,
30793086 * ,
3087+ force : str | Omit = omit ,
30803088 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
30813089 # The extra values given here take precedence over values defined on the client or passed to this method.
30823090 extra_headers : Headers | None = None ,
@@ -3089,9 +3097,13 @@ async def shutdown(
30893097
30903098 This will permanently stop the Devbox. If you want to
30913099 save the state of the Devbox, you should take a snapshot before shutting down or
3092- should suspend the Devbox instead of shutting down.
3100+ should suspend the Devbox instead of shutting down. If the Devbox has any
3101+ in-progress snapshots, the shutdown will be rejected with a 409 Conflict unless
3102+ force=true is specified.
30933103
30943104 Args:
3105+ force: If true, force shutdown even if snapshots are in progress. Defaults to false.
3106+
30953107 extra_headers: Send extra headers
30963108
30973109 extra_query: Add additional query parameters to the request
@@ -3112,6 +3124,7 @@ async def shutdown(
31123124 extra_body = extra_body ,
31133125 timeout = timeout ,
31143126 idempotency_key = idempotency_key ,
3127+ query = await async_maybe_transform ({"force" : force }, devbox_shutdown_params .DevboxShutdownParams ),
31153128 ),
31163129 cast_to = DevboxView ,
31173130 )
0 commit comments