@@ -30,11 +30,10 @@ def test_method_create(self, client: Gcore) -> None:
3030 @parametrize
3131 def test_method_create_with_all_params (self , client : Gcore ) -> None :
3232 network_mapping = client .dns .network_mappings .create (
33- id = 0 ,
3433 mapping = [
3534 {
36- "cidr4" : [{} ],
37- "cidr6" : [{} ],
35+ "cidr4" : ["string" ],
36+ "cidr6" : ["string" ],
3837 "tags" : ["string" ],
3938 }
4039 ],
@@ -225,19 +224,18 @@ def test_streaming_response_import(self, client: Gcore) -> None:
225224 @parametrize
226225 def test_method_replace (self , client : Gcore ) -> None :
227226 network_mapping = client .dns .network_mappings .replace (
228- path_id = 0 ,
227+ id = 0 ,
229228 )
230229 assert_matches_type (object , network_mapping , path = ["response" ])
231230
232231 @parametrize
233232 def test_method_replace_with_all_params (self , client : Gcore ) -> None :
234233 network_mapping = client .dns .network_mappings .replace (
235- path_id = 0 ,
236- body_id = 0 ,
234+ id = 0 ,
237235 mapping = [
238236 {
239- "cidr4" : [{} ],
240- "cidr6" : [{} ],
237+ "cidr4" : ["string" ],
238+ "cidr6" : ["string" ],
241239 "tags" : ["string" ],
242240 }
243241 ],
@@ -248,7 +246,7 @@ def test_method_replace_with_all_params(self, client: Gcore) -> None:
248246 @parametrize
249247 def test_raw_response_replace (self , client : Gcore ) -> None :
250248 response = client .dns .network_mappings .with_raw_response .replace (
251- path_id = 0 ,
249+ id = 0 ,
252250 )
253251
254252 assert response .is_closed is True
@@ -259,7 +257,7 @@ def test_raw_response_replace(self, client: Gcore) -> None:
259257 @parametrize
260258 def test_streaming_response_replace (self , client : Gcore ) -> None :
261259 with client .dns .network_mappings .with_streaming_response .replace (
262- path_id = 0 ,
260+ id = 0 ,
263261 ) as response :
264262 assert not response .is_closed
265263 assert response .http_request .headers .get ("X-Stainless-Lang" ) == "python"
@@ -283,11 +281,10 @@ async def test_method_create(self, async_client: AsyncGcore) -> None:
283281 @parametrize
284282 async def test_method_create_with_all_params (self , async_client : AsyncGcore ) -> None :
285283 network_mapping = await async_client .dns .network_mappings .create (
286- id = 0 ,
287284 mapping = [
288285 {
289- "cidr4" : [{} ],
290- "cidr6" : [{} ],
286+ "cidr4" : ["string" ],
287+ "cidr6" : ["string" ],
291288 "tags" : ["string" ],
292289 }
293290 ],
@@ -478,19 +475,18 @@ async def test_streaming_response_import(self, async_client: AsyncGcore) -> None
478475 @parametrize
479476 async def test_method_replace (self , async_client : AsyncGcore ) -> None :
480477 network_mapping = await async_client .dns .network_mappings .replace (
481- path_id = 0 ,
478+ id = 0 ,
482479 )
483480 assert_matches_type (object , network_mapping , path = ["response" ])
484481
485482 @parametrize
486483 async def test_method_replace_with_all_params (self , async_client : AsyncGcore ) -> None :
487484 network_mapping = await async_client .dns .network_mappings .replace (
488- path_id = 0 ,
489- body_id = 0 ,
485+ id = 0 ,
490486 mapping = [
491487 {
492- "cidr4" : [{} ],
493- "cidr6" : [{} ],
488+ "cidr4" : ["string" ],
489+ "cidr6" : ["string" ],
494490 "tags" : ["string" ],
495491 }
496492 ],
@@ -501,7 +497,7 @@ async def test_method_replace_with_all_params(self, async_client: AsyncGcore) ->
501497 @parametrize
502498 async def test_raw_response_replace (self , async_client : AsyncGcore ) -> None :
503499 response = await async_client .dns .network_mappings .with_raw_response .replace (
504- path_id = 0 ,
500+ id = 0 ,
505501 )
506502
507503 assert response .is_closed is True
@@ -512,7 +508,7 @@ async def test_raw_response_replace(self, async_client: AsyncGcore) -> None:
512508 @parametrize
513509 async def test_streaming_response_replace (self , async_client : AsyncGcore ) -> None :
514510 async with async_client .dns .network_mappings .with_streaming_response .replace (
515- path_id = 0 ,
511+ id = 0 ,
516512 ) as response :
517513 assert not response .is_closed
518514 assert response .http_request .headers .get ("X-Stainless-Lang" ) == "python"
0 commit comments