@@ -318,14 +318,22 @@ def test_path_params_create_for_subscription(self, client: Orb) -> None:
318318 @parametrize
319319 def test_method_disable (self , client : Orb ) -> None :
320320 alert = client .alerts .disable (
321- "alert_configuration_id" ,
321+ alert_configuration_id = "alert_configuration_id" ,
322+ )
323+ assert_matches_type (Alert , alert , path = ["response" ])
324+
325+ @parametrize
326+ def test_method_disable_with_all_params (self , client : Orb ) -> None :
327+ alert = client .alerts .disable (
328+ alert_configuration_id = "alert_configuration_id" ,
329+ subscription_id = "subscription_id" ,
322330 )
323331 assert_matches_type (Alert , alert , path = ["response" ])
324332
325333 @parametrize
326334 def test_raw_response_disable (self , client : Orb ) -> None :
327335 response = client .alerts .with_raw_response .disable (
328- "alert_configuration_id" ,
336+ alert_configuration_id = "alert_configuration_id" ,
329337 )
330338
331339 assert response .is_closed is True
@@ -336,7 +344,7 @@ def test_raw_response_disable(self, client: Orb) -> None:
336344 @parametrize
337345 def test_streaming_response_disable (self , client : Orb ) -> None :
338346 with client .alerts .with_streaming_response .disable (
339- "alert_configuration_id" ,
347+ alert_configuration_id = "alert_configuration_id" ,
340348 ) as response :
341349 assert not response .is_closed
342350 assert response .http_request .headers .get ("X-Stainless-Lang" ) == "python"
@@ -352,20 +360,28 @@ def test_path_params_disable(self, client: Orb) -> None:
352360 ValueError , match = r"Expected a non-empty value for `alert_configuration_id` but received ''"
353361 ):
354362 client .alerts .with_raw_response .disable (
355- "" ,
363+ alert_configuration_id = "" ,
356364 )
357365
358366 @parametrize
359367 def test_method_enable (self , client : Orb ) -> None :
360368 alert = client .alerts .enable (
361- "alert_configuration_id" ,
369+ alert_configuration_id = "alert_configuration_id" ,
370+ )
371+ assert_matches_type (Alert , alert , path = ["response" ])
372+
373+ @parametrize
374+ def test_method_enable_with_all_params (self , client : Orb ) -> None :
375+ alert = client .alerts .enable (
376+ alert_configuration_id = "alert_configuration_id" ,
377+ subscription_id = "subscription_id" ,
362378 )
363379 assert_matches_type (Alert , alert , path = ["response" ])
364380
365381 @parametrize
366382 def test_raw_response_enable (self , client : Orb ) -> None :
367383 response = client .alerts .with_raw_response .enable (
368- "alert_configuration_id" ,
384+ alert_configuration_id = "alert_configuration_id" ,
369385 )
370386
371387 assert response .is_closed is True
@@ -376,7 +392,7 @@ def test_raw_response_enable(self, client: Orb) -> None:
376392 @parametrize
377393 def test_streaming_response_enable (self , client : Orb ) -> None :
378394 with client .alerts .with_streaming_response .enable (
379- "alert_configuration_id" ,
395+ alert_configuration_id = "alert_configuration_id" ,
380396 ) as response :
381397 assert not response .is_closed
382398 assert response .http_request .headers .get ("X-Stainless-Lang" ) == "python"
@@ -392,7 +408,7 @@ def test_path_params_enable(self, client: Orb) -> None:
392408 ValueError , match = r"Expected a non-empty value for `alert_configuration_id` but received ''"
393409 ):
394410 client .alerts .with_raw_response .enable (
395- "" ,
411+ alert_configuration_id = "" ,
396412 )
397413
398414
@@ -696,14 +712,22 @@ async def test_path_params_create_for_subscription(self, async_client: AsyncOrb)
696712 @parametrize
697713 async def test_method_disable (self , async_client : AsyncOrb ) -> None :
698714 alert = await async_client .alerts .disable (
699- "alert_configuration_id" ,
715+ alert_configuration_id = "alert_configuration_id" ,
716+ )
717+ assert_matches_type (Alert , alert , path = ["response" ])
718+
719+ @parametrize
720+ async def test_method_disable_with_all_params (self , async_client : AsyncOrb ) -> None :
721+ alert = await async_client .alerts .disable (
722+ alert_configuration_id = "alert_configuration_id" ,
723+ subscription_id = "subscription_id" ,
700724 )
701725 assert_matches_type (Alert , alert , path = ["response" ])
702726
703727 @parametrize
704728 async def test_raw_response_disable (self , async_client : AsyncOrb ) -> None :
705729 response = await async_client .alerts .with_raw_response .disable (
706- "alert_configuration_id" ,
730+ alert_configuration_id = "alert_configuration_id" ,
707731 )
708732
709733 assert response .is_closed is True
@@ -714,7 +738,7 @@ async def test_raw_response_disable(self, async_client: AsyncOrb) -> None:
714738 @parametrize
715739 async def test_streaming_response_disable (self , async_client : AsyncOrb ) -> None :
716740 async with async_client .alerts .with_streaming_response .disable (
717- "alert_configuration_id" ,
741+ alert_configuration_id = "alert_configuration_id" ,
718742 ) as response :
719743 assert not response .is_closed
720744 assert response .http_request .headers .get ("X-Stainless-Lang" ) == "python"
@@ -730,20 +754,28 @@ async def test_path_params_disable(self, async_client: AsyncOrb) -> None:
730754 ValueError , match = r"Expected a non-empty value for `alert_configuration_id` but received ''"
731755 ):
732756 await async_client .alerts .with_raw_response .disable (
733- "" ,
757+ alert_configuration_id = "" ,
734758 )
735759
736760 @parametrize
737761 async def test_method_enable (self , async_client : AsyncOrb ) -> None :
738762 alert = await async_client .alerts .enable (
739- "alert_configuration_id" ,
763+ alert_configuration_id = "alert_configuration_id" ,
764+ )
765+ assert_matches_type (Alert , alert , path = ["response" ])
766+
767+ @parametrize
768+ async def test_method_enable_with_all_params (self , async_client : AsyncOrb ) -> None :
769+ alert = await async_client .alerts .enable (
770+ alert_configuration_id = "alert_configuration_id" ,
771+ subscription_id = "subscription_id" ,
740772 )
741773 assert_matches_type (Alert , alert , path = ["response" ])
742774
743775 @parametrize
744776 async def test_raw_response_enable (self , async_client : AsyncOrb ) -> None :
745777 response = await async_client .alerts .with_raw_response .enable (
746- "alert_configuration_id" ,
778+ alert_configuration_id = "alert_configuration_id" ,
747779 )
748780
749781 assert response .is_closed is True
@@ -754,7 +786,7 @@ async def test_raw_response_enable(self, async_client: AsyncOrb) -> None:
754786 @parametrize
755787 async def test_streaming_response_enable (self , async_client : AsyncOrb ) -> None :
756788 async with async_client .alerts .with_streaming_response .enable (
757- "alert_configuration_id" ,
789+ alert_configuration_id = "alert_configuration_id" ,
758790 ) as response :
759791 assert not response .is_closed
760792 assert response .http_request .headers .get ("X-Stainless-Lang" ) == "python"
@@ -770,5 +802,5 @@ async def test_path_params_enable(self, async_client: AsyncOrb) -> None:
770802 ValueError , match = r"Expected a non-empty value for `alert_configuration_id` but received ''"
771803 ):
772804 await async_client .alerts .with_raw_response .enable (
773- "" ,
805+ alert_configuration_id = "" ,
774806 )
0 commit comments