@@ -25,6 +25,7 @@ def test_method_create(self, client: Gcore) -> None:
2525 profile = client .security .profiles .create (
2626 fields = [{"base_field" : 1 }],
2727 profile_template = 1 ,
28+ site = "GNC" ,
2829 )
2930 assert_matches_type (ClientProfile , profile , path = ["response" ])
3031
@@ -38,8 +39,8 @@ def test_method_create_with_all_params(self, client: Gcore) -> None:
3839 }
3940 ],
4041 profile_template = 1 ,
42+ site = "GNC" ,
4143 ip_address = "123.43.2.10" ,
42- site = "ED" ,
4344 )
4445 assert_matches_type (ClientProfile , profile , path = ["response" ])
4546
@@ -48,6 +49,7 @@ def test_raw_response_create(self, client: Gcore) -> None:
4849 response = client .security .profiles .with_raw_response .create (
4950 fields = [{"base_field" : 1 }],
5051 profile_template = 1 ,
52+ site = "GNC" ,
5153 )
5254
5355 assert response .is_closed is True
@@ -60,6 +62,7 @@ def test_streaming_response_create(self, client: Gcore) -> None:
6062 with client .security .profiles .with_streaming_response .create (
6163 fields = [{"base_field" : 1 }],
6264 profile_template = 1 ,
65+ site = "GNC" ,
6366 ) as response :
6467 assert not response .is_closed
6568 assert response .http_request .headers .get ("X-Stainless-Lang" ) == "python"
@@ -283,6 +286,7 @@ async def test_method_create(self, async_client: AsyncGcore) -> None:
283286 profile = await async_client .security .profiles .create (
284287 fields = [{"base_field" : 1 }],
285288 profile_template = 1 ,
289+ site = "GNC" ,
286290 )
287291 assert_matches_type (ClientProfile , profile , path = ["response" ])
288292
@@ -296,8 +300,8 @@ async def test_method_create_with_all_params(self, async_client: AsyncGcore) ->
296300 }
297301 ],
298302 profile_template = 1 ,
303+ site = "GNC" ,
299304 ip_address = "123.43.2.10" ,
300- site = "ED" ,
301305 )
302306 assert_matches_type (ClientProfile , profile , path = ["response" ])
303307
@@ -306,6 +310,7 @@ async def test_raw_response_create(self, async_client: AsyncGcore) -> None:
306310 response = await async_client .security .profiles .with_raw_response .create (
307311 fields = [{"base_field" : 1 }],
308312 profile_template = 1 ,
313+ site = "GNC" ,
309314 )
310315
311316 assert response .is_closed is True
@@ -318,6 +323,7 @@ async def test_streaming_response_create(self, async_client: AsyncGcore) -> None
318323 async with async_client .security .profiles .with_streaming_response .create (
319324 fields = [{"base_field" : 1 }],
320325 profile_template = 1 ,
326+ site = "GNC" ,
321327 ) as response :
322328 assert not response .is_closed
323329 assert response .http_request .headers .get ("X-Stainless-Lang" ) == "python"
0 commit comments