From f1c145118f2a0717361ed08de091eb8919cb19d0 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 3 Apr 2024 19:49:45 +0000 Subject: [PATCH] feat(api): update via SDK Studio (#216) --- src/cloudflare/_client.py | 4 +- .../waf/packages/group_edit_response.py | 4 +- .../waf/packages/group_get_response.py | 4 +- .../waf/packages/rule_get_response.py | 4 +- tests/api_resources/images/v1/test_keys.py | 32 ++++----- .../api_resources/images/v1/test_variants.py | 72 +++++++++---------- .../pages/projects/test_domains.py | 60 ++++++++-------- 7 files changed, 90 insertions(+), 90 deletions(-) diff --git a/src/cloudflare/_client.py b/src/cloudflare/_client.py index 8951d5319e1..e5ae42da70f 100644 --- a/src/cloudflare/_client.py +++ b/src/cloudflare/_client.py @@ -286,7 +286,7 @@ def __init__( @property @override def qs(self) -> Querystring: - return Querystring(array_format="comma") + return Querystring(array_format="repeat") @property @override @@ -697,7 +697,7 @@ def __init__( @property @override def qs(self) -> Querystring: - return Querystring(array_format="comma") + return Querystring(array_format="repeat") @property @override diff --git a/src/cloudflare/types/firewall/waf/packages/group_edit_response.py b/src/cloudflare/types/firewall/waf/packages/group_edit_response.py index ea365c5ebe4..8e8ef5a3f20 100644 --- a/src/cloudflare/types/firewall/waf/packages/group_edit_response.py +++ b/src/cloudflare/types/firewall/waf/packages/group_edit_response.py @@ -1,7 +1,7 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from typing import List, Union +from typing import Union, Optional __all__ = ["GroupEditResponse"] -GroupEditResponse = Union[List[object], str, object] +GroupEditResponse = Union[Optional[str], Optional[object]] diff --git a/src/cloudflare/types/firewall/waf/packages/group_get_response.py b/src/cloudflare/types/firewall/waf/packages/group_get_response.py index 303cdb3dfa0..3d8278e8487 100644 --- a/src/cloudflare/types/firewall/waf/packages/group_get_response.py +++ b/src/cloudflare/types/firewall/waf/packages/group_get_response.py @@ -1,7 +1,7 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from typing import List, Union +from typing import Union, Optional __all__ = ["GroupGetResponse"] -GroupGetResponse = Union[List[object], str, object] +GroupGetResponse = Union[Optional[str], Optional[object]] diff --git a/src/cloudflare/types/firewall/waf/packages/rule_get_response.py b/src/cloudflare/types/firewall/waf/packages/rule_get_response.py index 88ca79a655e..b17274e52fe 100644 --- a/src/cloudflare/types/firewall/waf/packages/rule_get_response.py +++ b/src/cloudflare/types/firewall/waf/packages/rule_get_response.py @@ -1,7 +1,7 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from typing import List, Union +from typing import Union, Optional __all__ = ["RuleGetResponse"] -RuleGetResponse = Union[List[object], str, object] +RuleGetResponse = Union[Optional[str], Optional[object]] diff --git a/tests/api_resources/images/v1/test_keys.py b/tests/api_resources/images/v1/test_keys.py index 699e3a2ccba..258434f5463 100644 --- a/tests/api_resources/images/v1/test_keys.py +++ b/tests/api_resources/images/v1/test_keys.py @@ -21,7 +21,7 @@ class TestKeys: @parametrize def test_method_update(self, client: Cloudflare) -> None: key = client.images.v1.keys.update( - "string", + "someKey", account_id="023e105f4ecef8ad9ca31a8372d0c353", ) assert_matches_type(ImagesImageKeys, key, path=["response"]) @@ -30,7 +30,7 @@ def test_method_update(self, client: Cloudflare) -> None: @parametrize def test_raw_response_update(self, client: Cloudflare) -> None: response = client.images.v1.keys.with_raw_response.update( - "string", + "someKey", account_id="023e105f4ecef8ad9ca31a8372d0c353", ) @@ -43,7 +43,7 @@ def test_raw_response_update(self, client: Cloudflare) -> None: @parametrize def test_streaming_response_update(self, client: Cloudflare) -> None: with client.images.v1.keys.with_streaming_response.update( - "string", + "someKey", account_id="023e105f4ecef8ad9ca31a8372d0c353", ) as response: assert not response.is_closed @@ -59,7 +59,7 @@ def test_streaming_response_update(self, client: Cloudflare) -> None: def test_path_params_update(self, client: Cloudflare) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"): client.images.v1.keys.with_raw_response.update( - "string", + "someKey", account_id="", ) @@ -115,7 +115,7 @@ def test_path_params_list(self, client: Cloudflare) -> None: @parametrize def test_method_delete(self, client: Cloudflare) -> None: key = client.images.v1.keys.delete( - "string", + "someKey", account_id="023e105f4ecef8ad9ca31a8372d0c353", ) assert_matches_type(ImagesImageKeys, key, path=["response"]) @@ -124,7 +124,7 @@ def test_method_delete(self, client: Cloudflare) -> None: @parametrize def test_raw_response_delete(self, client: Cloudflare) -> None: response = client.images.v1.keys.with_raw_response.delete( - "string", + "someKey", account_id="023e105f4ecef8ad9ca31a8372d0c353", ) @@ -137,7 +137,7 @@ def test_raw_response_delete(self, client: Cloudflare) -> None: @parametrize def test_streaming_response_delete(self, client: Cloudflare) -> None: with client.images.v1.keys.with_streaming_response.delete( - "string", + "someKey", account_id="023e105f4ecef8ad9ca31a8372d0c353", ) as response: assert not response.is_closed @@ -153,7 +153,7 @@ def test_streaming_response_delete(self, client: Cloudflare) -> None: def test_path_params_delete(self, client: Cloudflare) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"): client.images.v1.keys.with_raw_response.delete( - "string", + "someKey", account_id="", ) @@ -171,7 +171,7 @@ class TestAsyncKeys: @parametrize async def test_method_update(self, async_client: AsyncCloudflare) -> None: key = await async_client.images.v1.keys.update( - "string", + "someKey", account_id="023e105f4ecef8ad9ca31a8372d0c353", ) assert_matches_type(ImagesImageKeys, key, path=["response"]) @@ -180,7 +180,7 @@ async def test_method_update(self, async_client: AsyncCloudflare) -> None: @parametrize async def test_raw_response_update(self, async_client: AsyncCloudflare) -> None: response = await async_client.images.v1.keys.with_raw_response.update( - "string", + "someKey", account_id="023e105f4ecef8ad9ca31a8372d0c353", ) @@ -193,7 +193,7 @@ async def test_raw_response_update(self, async_client: AsyncCloudflare) -> None: @parametrize async def test_streaming_response_update(self, async_client: AsyncCloudflare) -> None: async with async_client.images.v1.keys.with_streaming_response.update( - "string", + "someKey", account_id="023e105f4ecef8ad9ca31a8372d0c353", ) as response: assert not response.is_closed @@ -209,7 +209,7 @@ async def test_streaming_response_update(self, async_client: AsyncCloudflare) -> async def test_path_params_update(self, async_client: AsyncCloudflare) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"): await async_client.images.v1.keys.with_raw_response.update( - "string", + "someKey", account_id="", ) @@ -265,7 +265,7 @@ async def test_path_params_list(self, async_client: AsyncCloudflare) -> None: @parametrize async def test_method_delete(self, async_client: AsyncCloudflare) -> None: key = await async_client.images.v1.keys.delete( - "string", + "someKey", account_id="023e105f4ecef8ad9ca31a8372d0c353", ) assert_matches_type(ImagesImageKeys, key, path=["response"]) @@ -274,7 +274,7 @@ async def test_method_delete(self, async_client: AsyncCloudflare) -> None: @parametrize async def test_raw_response_delete(self, async_client: AsyncCloudflare) -> None: response = await async_client.images.v1.keys.with_raw_response.delete( - "string", + "someKey", account_id="023e105f4ecef8ad9ca31a8372d0c353", ) @@ -287,7 +287,7 @@ async def test_raw_response_delete(self, async_client: AsyncCloudflare) -> None: @parametrize async def test_streaming_response_delete(self, async_client: AsyncCloudflare) -> None: async with async_client.images.v1.keys.with_streaming_response.delete( - "string", + "someKey", account_id="023e105f4ecef8ad9ca31a8372d0c353", ) as response: assert not response.is_closed @@ -303,7 +303,7 @@ async def test_streaming_response_delete(self, async_client: AsyncCloudflare) -> async def test_path_params_delete(self, async_client: AsyncCloudflare) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"): await async_client.images.v1.keys.with_raw_response.delete( - "string", + "someKey", account_id="", ) diff --git a/tests/api_resources/images/v1/test_variants.py b/tests/api_resources/images/v1/test_variants.py index eb53e54ecca..eb8a00d66f0 100644 --- a/tests/api_resources/images/v1/test_variants.py +++ b/tests/api_resources/images/v1/test_variants.py @@ -26,7 +26,7 @@ class TestVariants: def test_method_create(self, client: Cloudflare) -> None: variant = client.images.v1.variants.create( account_id="023e105f4ecef8ad9ca31a8372d0c353", - id="string", + id="hero", options={ "fit": "scale-down", "height": 768, @@ -41,7 +41,7 @@ def test_method_create(self, client: Cloudflare) -> None: def test_method_create_with_all_params(self, client: Cloudflare) -> None: variant = client.images.v1.variants.create( account_id="023e105f4ecef8ad9ca31a8372d0c353", - id="string", + id="hero", options={ "fit": "scale-down", "height": 768, @@ -57,7 +57,7 @@ def test_method_create_with_all_params(self, client: Cloudflare) -> None: def test_raw_response_create(self, client: Cloudflare) -> None: response = client.images.v1.variants.with_raw_response.create( account_id="023e105f4ecef8ad9ca31a8372d0c353", - id="string", + id="hero", options={ "fit": "scale-down", "height": 768, @@ -76,7 +76,7 @@ def test_raw_response_create(self, client: Cloudflare) -> None: def test_streaming_response_create(self, client: Cloudflare) -> None: with client.images.v1.variants.with_streaming_response.create( account_id="023e105f4ecef8ad9ca31a8372d0c353", - id="string", + id="hero", options={ "fit": "scale-down", "height": 768, @@ -98,7 +98,7 @@ def test_path_params_create(self, client: Cloudflare) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"): client.images.v1.variants.with_raw_response.create( account_id="", - id="string", + id="hero", options={ "fit": "scale-down", "height": 768, @@ -153,7 +153,7 @@ def test_path_params_list(self, client: Cloudflare) -> None: @parametrize def test_method_delete(self, client: Cloudflare) -> None: variant = client.images.v1.variants.delete( - "string", + "hero", account_id="023e105f4ecef8ad9ca31a8372d0c353", body={}, ) @@ -163,7 +163,7 @@ def test_method_delete(self, client: Cloudflare) -> None: @parametrize def test_raw_response_delete(self, client: Cloudflare) -> None: response = client.images.v1.variants.with_raw_response.delete( - "string", + "hero", account_id="023e105f4ecef8ad9ca31a8372d0c353", body={}, ) @@ -177,7 +177,7 @@ def test_raw_response_delete(self, client: Cloudflare) -> None: @parametrize def test_streaming_response_delete(self, client: Cloudflare) -> None: with client.images.v1.variants.with_streaming_response.delete( - "string", + "hero", account_id="023e105f4ecef8ad9ca31a8372d0c353", body={}, ) as response: @@ -194,7 +194,7 @@ def test_streaming_response_delete(self, client: Cloudflare) -> None: def test_path_params_delete(self, client: Cloudflare) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"): client.images.v1.variants.with_raw_response.delete( - "string", + "hero", account_id="", body={}, ) @@ -210,7 +210,7 @@ def test_path_params_delete(self, client: Cloudflare) -> None: @parametrize def test_method_edit(self, client: Cloudflare) -> None: variant = client.images.v1.variants.edit( - "string", + "hero", account_id="023e105f4ecef8ad9ca31a8372d0c353", options={ "fit": "scale-down", @@ -225,7 +225,7 @@ def test_method_edit(self, client: Cloudflare) -> None: @parametrize def test_method_edit_with_all_params(self, client: Cloudflare) -> None: variant = client.images.v1.variants.edit( - "string", + "hero", account_id="023e105f4ecef8ad9ca31a8372d0c353", options={ "fit": "scale-down", @@ -241,7 +241,7 @@ def test_method_edit_with_all_params(self, client: Cloudflare) -> None: @parametrize def test_raw_response_edit(self, client: Cloudflare) -> None: response = client.images.v1.variants.with_raw_response.edit( - "string", + "hero", account_id="023e105f4ecef8ad9ca31a8372d0c353", options={ "fit": "scale-down", @@ -260,7 +260,7 @@ def test_raw_response_edit(self, client: Cloudflare) -> None: @parametrize def test_streaming_response_edit(self, client: Cloudflare) -> None: with client.images.v1.variants.with_streaming_response.edit( - "string", + "hero", account_id="023e105f4ecef8ad9ca31a8372d0c353", options={ "fit": "scale-down", @@ -282,7 +282,7 @@ def test_streaming_response_edit(self, client: Cloudflare) -> None: def test_path_params_edit(self, client: Cloudflare) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"): client.images.v1.variants.with_raw_response.edit( - "string", + "hero", account_id="", options={ "fit": "scale-down", @@ -308,7 +308,7 @@ def test_path_params_edit(self, client: Cloudflare) -> None: @parametrize def test_method_get(self, client: Cloudflare) -> None: variant = client.images.v1.variants.get( - "string", + "hero", account_id="023e105f4ecef8ad9ca31a8372d0c353", ) assert_matches_type(V1ImageVariant, variant, path=["response"]) @@ -317,7 +317,7 @@ def test_method_get(self, client: Cloudflare) -> None: @parametrize def test_raw_response_get(self, client: Cloudflare) -> None: response = client.images.v1.variants.with_raw_response.get( - "string", + "hero", account_id="023e105f4ecef8ad9ca31a8372d0c353", ) @@ -330,7 +330,7 @@ def test_raw_response_get(self, client: Cloudflare) -> None: @parametrize def test_streaming_response_get(self, client: Cloudflare) -> None: with client.images.v1.variants.with_streaming_response.get( - "string", + "hero", account_id="023e105f4ecef8ad9ca31a8372d0c353", ) as response: assert not response.is_closed @@ -346,7 +346,7 @@ def test_streaming_response_get(self, client: Cloudflare) -> None: def test_path_params_get(self, client: Cloudflare) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"): client.images.v1.variants.with_raw_response.get( - "string", + "hero", account_id="", ) @@ -365,7 +365,7 @@ class TestAsyncVariants: async def test_method_create(self, async_client: AsyncCloudflare) -> None: variant = await async_client.images.v1.variants.create( account_id="023e105f4ecef8ad9ca31a8372d0c353", - id="string", + id="hero", options={ "fit": "scale-down", "height": 768, @@ -380,7 +380,7 @@ async def test_method_create(self, async_client: AsyncCloudflare) -> None: async def test_method_create_with_all_params(self, async_client: AsyncCloudflare) -> None: variant = await async_client.images.v1.variants.create( account_id="023e105f4ecef8ad9ca31a8372d0c353", - id="string", + id="hero", options={ "fit": "scale-down", "height": 768, @@ -396,7 +396,7 @@ async def test_method_create_with_all_params(self, async_client: AsyncCloudflare async def test_raw_response_create(self, async_client: AsyncCloudflare) -> None: response = await async_client.images.v1.variants.with_raw_response.create( account_id="023e105f4ecef8ad9ca31a8372d0c353", - id="string", + id="hero", options={ "fit": "scale-down", "height": 768, @@ -415,7 +415,7 @@ async def test_raw_response_create(self, async_client: AsyncCloudflare) -> None: async def test_streaming_response_create(self, async_client: AsyncCloudflare) -> None: async with async_client.images.v1.variants.with_streaming_response.create( account_id="023e105f4ecef8ad9ca31a8372d0c353", - id="string", + id="hero", options={ "fit": "scale-down", "height": 768, @@ -437,7 +437,7 @@ async def test_path_params_create(self, async_client: AsyncCloudflare) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"): await async_client.images.v1.variants.with_raw_response.create( account_id="", - id="string", + id="hero", options={ "fit": "scale-down", "height": 768, @@ -492,7 +492,7 @@ async def test_path_params_list(self, async_client: AsyncCloudflare) -> None: @parametrize async def test_method_delete(self, async_client: AsyncCloudflare) -> None: variant = await async_client.images.v1.variants.delete( - "string", + "hero", account_id="023e105f4ecef8ad9ca31a8372d0c353", body={}, ) @@ -502,7 +502,7 @@ async def test_method_delete(self, async_client: AsyncCloudflare) -> None: @parametrize async def test_raw_response_delete(self, async_client: AsyncCloudflare) -> None: response = await async_client.images.v1.variants.with_raw_response.delete( - "string", + "hero", account_id="023e105f4ecef8ad9ca31a8372d0c353", body={}, ) @@ -516,7 +516,7 @@ async def test_raw_response_delete(self, async_client: AsyncCloudflare) -> None: @parametrize async def test_streaming_response_delete(self, async_client: AsyncCloudflare) -> None: async with async_client.images.v1.variants.with_streaming_response.delete( - "string", + "hero", account_id="023e105f4ecef8ad9ca31a8372d0c353", body={}, ) as response: @@ -533,7 +533,7 @@ async def test_streaming_response_delete(self, async_client: AsyncCloudflare) -> async def test_path_params_delete(self, async_client: AsyncCloudflare) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"): await async_client.images.v1.variants.with_raw_response.delete( - "string", + "hero", account_id="", body={}, ) @@ -549,7 +549,7 @@ async def test_path_params_delete(self, async_client: AsyncCloudflare) -> None: @parametrize async def test_method_edit(self, async_client: AsyncCloudflare) -> None: variant = await async_client.images.v1.variants.edit( - "string", + "hero", account_id="023e105f4ecef8ad9ca31a8372d0c353", options={ "fit": "scale-down", @@ -564,7 +564,7 @@ async def test_method_edit(self, async_client: AsyncCloudflare) -> None: @parametrize async def test_method_edit_with_all_params(self, async_client: AsyncCloudflare) -> None: variant = await async_client.images.v1.variants.edit( - "string", + "hero", account_id="023e105f4ecef8ad9ca31a8372d0c353", options={ "fit": "scale-down", @@ -580,7 +580,7 @@ async def test_method_edit_with_all_params(self, async_client: AsyncCloudflare) @parametrize async def test_raw_response_edit(self, async_client: AsyncCloudflare) -> None: response = await async_client.images.v1.variants.with_raw_response.edit( - "string", + "hero", account_id="023e105f4ecef8ad9ca31a8372d0c353", options={ "fit": "scale-down", @@ -599,7 +599,7 @@ async def test_raw_response_edit(self, async_client: AsyncCloudflare) -> None: @parametrize async def test_streaming_response_edit(self, async_client: AsyncCloudflare) -> None: async with async_client.images.v1.variants.with_streaming_response.edit( - "string", + "hero", account_id="023e105f4ecef8ad9ca31a8372d0c353", options={ "fit": "scale-down", @@ -621,7 +621,7 @@ async def test_streaming_response_edit(self, async_client: AsyncCloudflare) -> N async def test_path_params_edit(self, async_client: AsyncCloudflare) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"): await async_client.images.v1.variants.with_raw_response.edit( - "string", + "hero", account_id="", options={ "fit": "scale-down", @@ -647,7 +647,7 @@ async def test_path_params_edit(self, async_client: AsyncCloudflare) -> None: @parametrize async def test_method_get(self, async_client: AsyncCloudflare) -> None: variant = await async_client.images.v1.variants.get( - "string", + "hero", account_id="023e105f4ecef8ad9ca31a8372d0c353", ) assert_matches_type(V1ImageVariant, variant, path=["response"]) @@ -656,7 +656,7 @@ async def test_method_get(self, async_client: AsyncCloudflare) -> None: @parametrize async def test_raw_response_get(self, async_client: AsyncCloudflare) -> None: response = await async_client.images.v1.variants.with_raw_response.get( - "string", + "hero", account_id="023e105f4ecef8ad9ca31a8372d0c353", ) @@ -669,7 +669,7 @@ async def test_raw_response_get(self, async_client: AsyncCloudflare) -> None: @parametrize async def test_streaming_response_get(self, async_client: AsyncCloudflare) -> None: async with async_client.images.v1.variants.with_streaming_response.get( - "string", + "hero", account_id="023e105f4ecef8ad9ca31a8372d0c353", ) as response: assert not response.is_closed @@ -685,7 +685,7 @@ async def test_streaming_response_get(self, async_client: AsyncCloudflare) -> No async def test_path_params_get(self, async_client: AsyncCloudflare) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"): await async_client.images.v1.variants.with_raw_response.get( - "string", + "hero", account_id="", ) diff --git a/tests/api_resources/pages/projects/test_domains.py b/tests/api_resources/pages/projects/test_domains.py index d0d7abd6aab..5e2614a1a25 100644 --- a/tests/api_resources/pages/projects/test_domains.py +++ b/tests/api_resources/pages/projects/test_domains.py @@ -135,7 +135,7 @@ def test_path_params_list(self, client: Cloudflare) -> None: @parametrize def test_method_delete(self, client: Cloudflare) -> None: domain = client.pages.projects.domains.delete( - "string", + "this-is-my-domain-01.com", account_id="023e105f4ecef8ad9ca31a8372d0c353", project_name="this-is-my-project-01", body={}, @@ -146,7 +146,7 @@ def test_method_delete(self, client: Cloudflare) -> None: @parametrize def test_raw_response_delete(self, client: Cloudflare) -> None: response = client.pages.projects.domains.with_raw_response.delete( - "string", + "this-is-my-domain-01.com", account_id="023e105f4ecef8ad9ca31a8372d0c353", project_name="this-is-my-project-01", body={}, @@ -161,7 +161,7 @@ def test_raw_response_delete(self, client: Cloudflare) -> None: @parametrize def test_streaming_response_delete(self, client: Cloudflare) -> None: with client.pages.projects.domains.with_streaming_response.delete( - "string", + "this-is-my-domain-01.com", account_id="023e105f4ecef8ad9ca31a8372d0c353", project_name="this-is-my-project-01", body={}, @@ -179,7 +179,7 @@ def test_streaming_response_delete(self, client: Cloudflare) -> None: def test_path_params_delete(self, client: Cloudflare) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"): client.pages.projects.domains.with_raw_response.delete( - "string", + "this-is-my-domain-01.com", account_id="", project_name="this-is-my-project-01", body={}, @@ -187,7 +187,7 @@ def test_path_params_delete(self, client: Cloudflare) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `project_name` but received ''"): client.pages.projects.domains.with_raw_response.delete( - "string", + "this-is-my-domain-01.com", account_id="023e105f4ecef8ad9ca31a8372d0c353", project_name="", body={}, @@ -205,7 +205,7 @@ def test_path_params_delete(self, client: Cloudflare) -> None: @parametrize def test_method_edit(self, client: Cloudflare) -> None: domain = client.pages.projects.domains.edit( - "string", + "this-is-my-domain-01.com", account_id="023e105f4ecef8ad9ca31a8372d0c353", project_name="this-is-my-project-01", body={}, @@ -216,7 +216,7 @@ def test_method_edit(self, client: Cloudflare) -> None: @parametrize def test_raw_response_edit(self, client: Cloudflare) -> None: response = client.pages.projects.domains.with_raw_response.edit( - "string", + "this-is-my-domain-01.com", account_id="023e105f4ecef8ad9ca31a8372d0c353", project_name="this-is-my-project-01", body={}, @@ -231,7 +231,7 @@ def test_raw_response_edit(self, client: Cloudflare) -> None: @parametrize def test_streaming_response_edit(self, client: Cloudflare) -> None: with client.pages.projects.domains.with_streaming_response.edit( - "string", + "this-is-my-domain-01.com", account_id="023e105f4ecef8ad9ca31a8372d0c353", project_name="this-is-my-project-01", body={}, @@ -249,7 +249,7 @@ def test_streaming_response_edit(self, client: Cloudflare) -> None: def test_path_params_edit(self, client: Cloudflare) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"): client.pages.projects.domains.with_raw_response.edit( - "string", + "this-is-my-domain-01.com", account_id="", project_name="this-is-my-project-01", body={}, @@ -257,7 +257,7 @@ def test_path_params_edit(self, client: Cloudflare) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `project_name` but received ''"): client.pages.projects.domains.with_raw_response.edit( - "string", + "this-is-my-domain-01.com", account_id="023e105f4ecef8ad9ca31a8372d0c353", project_name="", body={}, @@ -275,7 +275,7 @@ def test_path_params_edit(self, client: Cloudflare) -> None: @parametrize def test_method_get(self, client: Cloudflare) -> None: domain = client.pages.projects.domains.get( - "string", + "this-is-my-domain-01.com", account_id="023e105f4ecef8ad9ca31a8372d0c353", project_name="this-is-my-project-01", ) @@ -285,7 +285,7 @@ def test_method_get(self, client: Cloudflare) -> None: @parametrize def test_raw_response_get(self, client: Cloudflare) -> None: response = client.pages.projects.domains.with_raw_response.get( - "string", + "this-is-my-domain-01.com", account_id="023e105f4ecef8ad9ca31a8372d0c353", project_name="this-is-my-project-01", ) @@ -299,7 +299,7 @@ def test_raw_response_get(self, client: Cloudflare) -> None: @parametrize def test_streaming_response_get(self, client: Cloudflare) -> None: with client.pages.projects.domains.with_streaming_response.get( - "string", + "this-is-my-domain-01.com", account_id="023e105f4ecef8ad9ca31a8372d0c353", project_name="this-is-my-project-01", ) as response: @@ -316,14 +316,14 @@ def test_streaming_response_get(self, client: Cloudflare) -> None: def test_path_params_get(self, client: Cloudflare) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"): client.pages.projects.domains.with_raw_response.get( - "string", + "this-is-my-domain-01.com", account_id="", project_name="this-is-my-project-01", ) with pytest.raises(ValueError, match=r"Expected a non-empty value for `project_name` but received ''"): client.pages.projects.domains.with_raw_response.get( - "string", + "this-is-my-domain-01.com", account_id="023e105f4ecef8ad9ca31a8372d0c353", project_name="", ) @@ -452,7 +452,7 @@ async def test_path_params_list(self, async_client: AsyncCloudflare) -> None: @parametrize async def test_method_delete(self, async_client: AsyncCloudflare) -> None: domain = await async_client.pages.projects.domains.delete( - "string", + "this-is-my-domain-01.com", account_id="023e105f4ecef8ad9ca31a8372d0c353", project_name="this-is-my-project-01", body={}, @@ -463,7 +463,7 @@ async def test_method_delete(self, async_client: AsyncCloudflare) -> None: @parametrize async def test_raw_response_delete(self, async_client: AsyncCloudflare) -> None: response = await async_client.pages.projects.domains.with_raw_response.delete( - "string", + "this-is-my-domain-01.com", account_id="023e105f4ecef8ad9ca31a8372d0c353", project_name="this-is-my-project-01", body={}, @@ -478,7 +478,7 @@ async def test_raw_response_delete(self, async_client: AsyncCloudflare) -> None: @parametrize async def test_streaming_response_delete(self, async_client: AsyncCloudflare) -> None: async with async_client.pages.projects.domains.with_streaming_response.delete( - "string", + "this-is-my-domain-01.com", account_id="023e105f4ecef8ad9ca31a8372d0c353", project_name="this-is-my-project-01", body={}, @@ -496,7 +496,7 @@ async def test_streaming_response_delete(self, async_client: AsyncCloudflare) -> async def test_path_params_delete(self, async_client: AsyncCloudflare) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"): await async_client.pages.projects.domains.with_raw_response.delete( - "string", + "this-is-my-domain-01.com", account_id="", project_name="this-is-my-project-01", body={}, @@ -504,7 +504,7 @@ async def test_path_params_delete(self, async_client: AsyncCloudflare) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `project_name` but received ''"): await async_client.pages.projects.domains.with_raw_response.delete( - "string", + "this-is-my-domain-01.com", account_id="023e105f4ecef8ad9ca31a8372d0c353", project_name="", body={}, @@ -522,7 +522,7 @@ async def test_path_params_delete(self, async_client: AsyncCloudflare) -> None: @parametrize async def test_method_edit(self, async_client: AsyncCloudflare) -> None: domain = await async_client.pages.projects.domains.edit( - "string", + "this-is-my-domain-01.com", account_id="023e105f4ecef8ad9ca31a8372d0c353", project_name="this-is-my-project-01", body={}, @@ -533,7 +533,7 @@ async def test_method_edit(self, async_client: AsyncCloudflare) -> None: @parametrize async def test_raw_response_edit(self, async_client: AsyncCloudflare) -> None: response = await async_client.pages.projects.domains.with_raw_response.edit( - "string", + "this-is-my-domain-01.com", account_id="023e105f4ecef8ad9ca31a8372d0c353", project_name="this-is-my-project-01", body={}, @@ -548,7 +548,7 @@ async def test_raw_response_edit(self, async_client: AsyncCloudflare) -> None: @parametrize async def test_streaming_response_edit(self, async_client: AsyncCloudflare) -> None: async with async_client.pages.projects.domains.with_streaming_response.edit( - "string", + "this-is-my-domain-01.com", account_id="023e105f4ecef8ad9ca31a8372d0c353", project_name="this-is-my-project-01", body={}, @@ -566,7 +566,7 @@ async def test_streaming_response_edit(self, async_client: AsyncCloudflare) -> N async def test_path_params_edit(self, async_client: AsyncCloudflare) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"): await async_client.pages.projects.domains.with_raw_response.edit( - "string", + "this-is-my-domain-01.com", account_id="", project_name="this-is-my-project-01", body={}, @@ -574,7 +574,7 @@ async def test_path_params_edit(self, async_client: AsyncCloudflare) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `project_name` but received ''"): await async_client.pages.projects.domains.with_raw_response.edit( - "string", + "this-is-my-domain-01.com", account_id="023e105f4ecef8ad9ca31a8372d0c353", project_name="", body={}, @@ -592,7 +592,7 @@ async def test_path_params_edit(self, async_client: AsyncCloudflare) -> None: @parametrize async def test_method_get(self, async_client: AsyncCloudflare) -> None: domain = await async_client.pages.projects.domains.get( - "string", + "this-is-my-domain-01.com", account_id="023e105f4ecef8ad9ca31a8372d0c353", project_name="this-is-my-project-01", ) @@ -602,7 +602,7 @@ async def test_method_get(self, async_client: AsyncCloudflare) -> None: @parametrize async def test_raw_response_get(self, async_client: AsyncCloudflare) -> None: response = await async_client.pages.projects.domains.with_raw_response.get( - "string", + "this-is-my-domain-01.com", account_id="023e105f4ecef8ad9ca31a8372d0c353", project_name="this-is-my-project-01", ) @@ -616,7 +616,7 @@ async def test_raw_response_get(self, async_client: AsyncCloudflare) -> None: @parametrize async def test_streaming_response_get(self, async_client: AsyncCloudflare) -> None: async with async_client.pages.projects.domains.with_streaming_response.get( - "string", + "this-is-my-domain-01.com", account_id="023e105f4ecef8ad9ca31a8372d0c353", project_name="this-is-my-project-01", ) as response: @@ -633,14 +633,14 @@ async def test_streaming_response_get(self, async_client: AsyncCloudflare) -> No async def test_path_params_get(self, async_client: AsyncCloudflare) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"): await async_client.pages.projects.domains.with_raw_response.get( - "string", + "this-is-my-domain-01.com", account_id="", project_name="this-is-my-project-01", ) with pytest.raises(ValueError, match=r"Expected a non-empty value for `project_name` but received ''"): await async_client.pages.projects.domains.with_raw_response.get( - "string", + "this-is-my-domain-01.com", account_id="023e105f4ecef8ad9ca31a8372d0c353", project_name="", )