@@ -240,7 +240,8 @@ def test_path_params_delete(self, client: Cloudflare) -> None:
240
240
def test_method_edit (self , client : Cloudflare ) -> None :
241
241
access_rule = client .firewall .access_rules .edit (
242
242
{},
243
- account_identifier = {},
243
+ account_id = "string" ,
244
+ zone_id = "string" ,
244
245
configuration = {},
245
246
mode = "challenge" ,
246
247
)
@@ -251,7 +252,8 @@ def test_method_edit(self, client: Cloudflare) -> None:
251
252
def test_method_edit_with_all_params (self , client : Cloudflare ) -> None :
252
253
access_rule = client .firewall .access_rules .edit (
253
254
{},
254
- account_identifier = {},
255
+ account_id = "string" ,
256
+ zone_id = "string" ,
255
257
configuration = {
256
258
"target" : "ip" ,
257
259
"value" : "198.51.100.4" ,
@@ -266,7 +268,8 @@ def test_method_edit_with_all_params(self, client: Cloudflare) -> None:
266
268
def test_raw_response_edit (self , client : Cloudflare ) -> None :
267
269
response = client .firewall .access_rules .with_raw_response .edit (
268
270
{},
269
- account_identifier = {},
271
+ account_id = "string" ,
272
+ zone_id = "string" ,
270
273
configuration = {},
271
274
mode = "challenge" ,
272
275
)
@@ -281,7 +284,8 @@ def test_raw_response_edit(self, client: Cloudflare) -> None:
281
284
def test_streaming_response_edit (self , client : Cloudflare ) -> None :
282
285
with client .firewall .access_rules .with_streaming_response .edit (
283
286
{},
284
- account_identifier = {},
287
+ account_id = "string" ,
288
+ zone_id = "string" ,
285
289
configuration = {},
286
290
mode = "challenge" ,
287
291
) as response :
@@ -293,6 +297,27 @@ def test_streaming_response_edit(self, client: Cloudflare) -> None:
293
297
294
298
assert cast (Any , response .is_closed ) is True
295
299
300
+ @pytest .mark .skip ()
301
+ @parametrize
302
+ def test_path_params_edit (self , client : Cloudflare ) -> None :
303
+ with pytest .raises (ValueError , match = r"Expected a non-empty value for `account_id` but received ''" ):
304
+ client .firewall .access_rules .with_raw_response .edit (
305
+ {},
306
+ account_id = "" ,
307
+ zone_id = "string" ,
308
+ configuration = {},
309
+ mode = "challenge" ,
310
+ )
311
+
312
+ with pytest .raises (ValueError , match = r"Expected a non-empty value for `zone_id` but received ''" ):
313
+ client .firewall .access_rules .with_raw_response .edit (
314
+ {},
315
+ account_id = "string" ,
316
+ zone_id = "" ,
317
+ configuration = {},
318
+ mode = "challenge" ,
319
+ )
320
+
296
321
@pytest .mark .skip ()
297
322
@parametrize
298
323
def test_method_get (self , client : Cloudflare ) -> None :
@@ -571,7 +596,8 @@ async def test_path_params_delete(self, async_client: AsyncCloudflare) -> None:
571
596
async def test_method_edit (self , async_client : AsyncCloudflare ) -> None :
572
597
access_rule = await async_client .firewall .access_rules .edit (
573
598
{},
574
- account_identifier = {},
599
+ account_id = "string" ,
600
+ zone_id = "string" ,
575
601
configuration = {},
576
602
mode = "challenge" ,
577
603
)
@@ -582,7 +608,8 @@ async def test_method_edit(self, async_client: AsyncCloudflare) -> None:
582
608
async def test_method_edit_with_all_params (self , async_client : AsyncCloudflare ) -> None :
583
609
access_rule = await async_client .firewall .access_rules .edit (
584
610
{},
585
- account_identifier = {},
611
+ account_id = "string" ,
612
+ zone_id = "string" ,
586
613
configuration = {
587
614
"target" : "ip" ,
588
615
"value" : "198.51.100.4" ,
@@ -597,7 +624,8 @@ async def test_method_edit_with_all_params(self, async_client: AsyncCloudflare)
597
624
async def test_raw_response_edit (self , async_client : AsyncCloudflare ) -> None :
598
625
response = await async_client .firewall .access_rules .with_raw_response .edit (
599
626
{},
600
- account_identifier = {},
627
+ account_id = "string" ,
628
+ zone_id = "string" ,
601
629
configuration = {},
602
630
mode = "challenge" ,
603
631
)
@@ -612,7 +640,8 @@ async def test_raw_response_edit(self, async_client: AsyncCloudflare) -> None:
612
640
async def test_streaming_response_edit (self , async_client : AsyncCloudflare ) -> None :
613
641
async with async_client .firewall .access_rules .with_streaming_response .edit (
614
642
{},
615
- account_identifier = {},
643
+ account_id = "string" ,
644
+ zone_id = "string" ,
616
645
configuration = {},
617
646
mode = "challenge" ,
618
647
) as response :
@@ -624,6 +653,27 @@ async def test_streaming_response_edit(self, async_client: AsyncCloudflare) -> N
624
653
625
654
assert cast (Any , response .is_closed ) is True
626
655
656
+ @pytest .mark .skip ()
657
+ @parametrize
658
+ async def test_path_params_edit (self , async_client : AsyncCloudflare ) -> None :
659
+ with pytest .raises (ValueError , match = r"Expected a non-empty value for `account_id` but received ''" ):
660
+ await async_client .firewall .access_rules .with_raw_response .edit (
661
+ {},
662
+ account_id = "" ,
663
+ zone_id = "string" ,
664
+ configuration = {},
665
+ mode = "challenge" ,
666
+ )
667
+
668
+ with pytest .raises (ValueError , match = r"Expected a non-empty value for `zone_id` but received ''" ):
669
+ await async_client .firewall .access_rules .with_raw_response .edit (
670
+ {},
671
+ account_id = "string" ,
672
+ zone_id = "" ,
673
+ configuration = {},
674
+ mode = "challenge" ,
675
+ )
676
+
627
677
@pytest .mark .skip ()
628
678
@parametrize
629
679
async def test_method_get (self , async_client : AsyncCloudflare ) -> None :
0 commit comments