@@ -983,52 +983,64 @@ def test_path_params_upload_file(self, client: Runloop) -> None:
983983 @parametrize
984984 def test_method_wait_for_command (self , client : Runloop ) -> None :
985985 devbox = client .devboxes .wait_for_command (
986- id = "id" ,
987- statuses = ["provisioning" ],
986+ execution_id = "execution_id" ,
987+ devbox_id = "devbox_id" ,
988+ statuses = ["queued" ],
988989 )
989- assert_matches_type (DevboxView , devbox , path = ["response" ])
990+ assert_matches_type (DevboxAsyncExecutionDetailView , devbox , path = ["response" ])
990991
991992 @parametrize
992993 def test_method_wait_for_command_with_all_params (self , client : Runloop ) -> None :
993994 devbox = client .devboxes .wait_for_command (
994- id = "id" ,
995- statuses = ["provisioning" ],
995+ execution_id = "execution_id" ,
996+ devbox_id = "devbox_id" ,
997+ statuses = ["queued" ],
996998 timeout_seconds = 0 ,
997999 )
998- assert_matches_type (DevboxView , devbox , path = ["response" ])
1000+ assert_matches_type (DevboxAsyncExecutionDetailView , devbox , path = ["response" ])
9991001
10001002 @parametrize
10011003 def test_raw_response_wait_for_command (self , client : Runloop ) -> None :
10021004 response = client .devboxes .with_raw_response .wait_for_command (
1003- id = "id" ,
1004- statuses = ["provisioning" ],
1005+ execution_id = "execution_id" ,
1006+ devbox_id = "devbox_id" ,
1007+ statuses = ["queued" ],
10051008 )
10061009
10071010 assert response .is_closed is True
10081011 assert response .http_request .headers .get ("X-Stainless-Lang" ) == "python"
10091012 devbox = response .parse ()
1010- assert_matches_type (DevboxView , devbox , path = ["response" ])
1013+ assert_matches_type (DevboxAsyncExecutionDetailView , devbox , path = ["response" ])
10111014
10121015 @parametrize
10131016 def test_streaming_response_wait_for_command (self , client : Runloop ) -> None :
10141017 with client .devboxes .with_streaming_response .wait_for_command (
1015- id = "id" ,
1016- statuses = ["provisioning" ],
1018+ execution_id = "execution_id" ,
1019+ devbox_id = "devbox_id" ,
1020+ statuses = ["queued" ],
10171021 ) as response :
10181022 assert not response .is_closed
10191023 assert response .http_request .headers .get ("X-Stainless-Lang" ) == "python"
10201024
10211025 devbox = response .parse ()
1022- assert_matches_type (DevboxView , devbox , path = ["response" ])
1026+ assert_matches_type (DevboxAsyncExecutionDetailView , devbox , path = ["response" ])
10231027
10241028 assert cast (Any , response .is_closed ) is True
10251029
10261030 @parametrize
10271031 def test_path_params_wait_for_command (self , client : Runloop ) -> None :
1028- with pytest .raises (ValueError , match = r"Expected a non-empty value for `id ` but received ''" ):
1032+ with pytest .raises (ValueError , match = r"Expected a non-empty value for `devbox_id ` but received ''" ):
10291033 client .devboxes .with_raw_response .wait_for_command (
1030- id = "" ,
1031- statuses = ["provisioning" ],
1034+ execution_id = "execution_id" ,
1035+ devbox_id = "" ,
1036+ statuses = ["queued" ],
1037+ )
1038+
1039+ with pytest .raises (ValueError , match = r"Expected a non-empty value for `execution_id` but received ''" ):
1040+ client .devboxes .with_raw_response .wait_for_command (
1041+ execution_id = "" ,
1042+ devbox_id = "devbox_id" ,
1043+ statuses = ["queued" ],
10321044 )
10331045
10341046 @parametrize
@@ -2310,52 +2322,64 @@ async def test_path_params_upload_file(self, async_client: AsyncRunloop) -> None
23102322 @parametrize
23112323 async def test_method_wait_for_command (self , async_client : AsyncRunloop ) -> None :
23122324 devbox = await async_client .devboxes .wait_for_command (
2313- id = "id" ,
2314- statuses = ["provisioning" ],
2325+ execution_id = "execution_id" ,
2326+ devbox_id = "devbox_id" ,
2327+ statuses = ["queued" ],
23152328 )
2316- assert_matches_type (DevboxView , devbox , path = ["response" ])
2329+ assert_matches_type (DevboxAsyncExecutionDetailView , devbox , path = ["response" ])
23172330
23182331 @parametrize
23192332 async def test_method_wait_for_command_with_all_params (self , async_client : AsyncRunloop ) -> None :
23202333 devbox = await async_client .devboxes .wait_for_command (
2321- id = "id" ,
2322- statuses = ["provisioning" ],
2334+ execution_id = "execution_id" ,
2335+ devbox_id = "devbox_id" ,
2336+ statuses = ["queued" ],
23232337 timeout_seconds = 0 ,
23242338 )
2325- assert_matches_type (DevboxView , devbox , path = ["response" ])
2339+ assert_matches_type (DevboxAsyncExecutionDetailView , devbox , path = ["response" ])
23262340
23272341 @parametrize
23282342 async def test_raw_response_wait_for_command (self , async_client : AsyncRunloop ) -> None :
23292343 response = await async_client .devboxes .with_raw_response .wait_for_command (
2330- id = "id" ,
2331- statuses = ["provisioning" ],
2344+ execution_id = "execution_id" ,
2345+ devbox_id = "devbox_id" ,
2346+ statuses = ["queued" ],
23322347 )
23332348
23342349 assert response .is_closed is True
23352350 assert response .http_request .headers .get ("X-Stainless-Lang" ) == "python"
23362351 devbox = await response .parse ()
2337- assert_matches_type (DevboxView , devbox , path = ["response" ])
2352+ assert_matches_type (DevboxAsyncExecutionDetailView , devbox , path = ["response" ])
23382353
23392354 @parametrize
23402355 async def test_streaming_response_wait_for_command (self , async_client : AsyncRunloop ) -> None :
23412356 async with async_client .devboxes .with_streaming_response .wait_for_command (
2342- id = "id" ,
2343- statuses = ["provisioning" ],
2357+ execution_id = "execution_id" ,
2358+ devbox_id = "devbox_id" ,
2359+ statuses = ["queued" ],
23442360 ) as response :
23452361 assert not response .is_closed
23462362 assert response .http_request .headers .get ("X-Stainless-Lang" ) == "python"
23472363
23482364 devbox = await response .parse ()
2349- assert_matches_type (DevboxView , devbox , path = ["response" ])
2365+ assert_matches_type (DevboxAsyncExecutionDetailView , devbox , path = ["response" ])
23502366
23512367 assert cast (Any , response .is_closed ) is True
23522368
23532369 @parametrize
23542370 async def test_path_params_wait_for_command (self , async_client : AsyncRunloop ) -> None :
2355- with pytest .raises (ValueError , match = r"Expected a non-empty value for `id ` but received ''" ):
2371+ with pytest .raises (ValueError , match = r"Expected a non-empty value for `devbox_id ` but received ''" ):
23562372 await async_client .devboxes .with_raw_response .wait_for_command (
2357- id = "" ,
2358- statuses = ["provisioning" ],
2373+ execution_id = "execution_id" ,
2374+ devbox_id = "" ,
2375+ statuses = ["queued" ],
2376+ )
2377+
2378+ with pytest .raises (ValueError , match = r"Expected a non-empty value for `execution_id` but received ''" ):
2379+ await async_client .devboxes .with_raw_response .wait_for_command (
2380+ execution_id = "" ,
2381+ devbox_id = "devbox_id" ,
2382+ statuses = ["queued" ],
23592383 )
23602384
23612385 @parametrize
0 commit comments