diff --git a/.stats.yml b/.stats.yml
index 5d67bcc6bdc..036bd6a320f 100644
--- a/.stats.yml
+++ b/.stats.yml
@@ -1,2 +1,2 @@
configured_endpoints: 1335
-openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-5be95789763c3b4b655f44e48b2d615e059cdfb5a52d62a7e084c84ffa039fe2.yml
+openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-e83b5eb5706ca8b525141f506338cd1d465eb133815b9ddc53df612ea4a2ecef.yml
diff --git a/api.md b/api.md
index 59465cfbc9f..26ae9445536 100644
--- a/api.md
+++ b/api.md
@@ -4068,6 +4068,26 @@ Methods:
- client.magic_transit.sites.edit(site_id, \*, account_id, \*\*params) -> Site
- client.magic_transit.sites.get(site_id, \*, account_id) -> Site
+### AppConfiguration
+
+Types:
+
+```python
+from cloudflare.types.magic_transit.sites import (
+ AppConfigurationCreateResponse,
+ AppConfigurationUpdateResponse,
+ AppConfigurationListResponse,
+ AppConfigurationDeleteResponse,
+)
+```
+
+Methods:
+
+- client.magic_transit.sites.app_configuration.create(site_id, \*, account_id, \*\*params) -> Optional
+- client.magic_transit.sites.app_configuration.update(app_config_id, \*, account_id, site_id, \*\*params) -> Optional
+- client.magic_transit.sites.app_configuration.list(site_id, \*, account_id) -> SyncSinglePage[AppConfigurationListResponse]
+- client.magic_transit.sites.app_configuration.delete(app_config_id, \*, account_id, site_id) -> Optional
+
### ACLs
Types:
@@ -4127,28 +4147,6 @@ Methods:
- client.magic_transit.sites.wans.edit(wan_id, \*, account_id, site_id, \*\*params) -> WAN
- client.magic_transit.sites.wans.get(wan_id, \*, account_id, site_id) -> WAN
-### Sites
-
-#### AppConfiguration
-
-Types:
-
-```python
-from cloudflare.types.magic_transit.sites.sites import (
- AppConfigurationCreateResponse,
- AppConfigurationUpdateResponse,
- AppConfigurationListResponse,
- AppConfigurationDeleteResponse,
-)
-```
-
-Methods:
-
-- client.magic_transit.sites.sites.app_configuration.create(site_id, \*, account_id, \*\*params) -> Optional
-- client.magic_transit.sites.sites.app_configuration.update(app_config_id, \*, account_id, site_id, \*\*params) -> Optional
-- client.magic_transit.sites.sites.app_configuration.list(site_id, \*, account_id) -> SyncSinglePage[AppConfigurationListResponse]
-- client.magic_transit.sites.sites.app_configuration.delete(app_config_id, \*, account_id, site_id) -> Optional
-
## Connectors
Types:
diff --git a/src/cloudflare/resources/magic_transit/sites/__init__.py b/src/cloudflare/resources/magic_transit/sites/__init__.py
index 8a2a07f48db..91db8e47261 100644
--- a/src/cloudflare/resources/magic_transit/sites/__init__.py
+++ b/src/cloudflare/resources/magic_transit/sites/__init__.py
@@ -32,8 +32,22 @@
SitesResourceWithStreamingResponse,
AsyncSitesResourceWithStreamingResponse,
)
+from .app_configuration import (
+ AppConfigurationResource,
+ AsyncAppConfigurationResource,
+ AppConfigurationResourceWithRawResponse,
+ AsyncAppConfigurationResourceWithRawResponse,
+ AppConfigurationResourceWithStreamingResponse,
+ AsyncAppConfigurationResourceWithStreamingResponse,
+)
__all__ = [
+ "AppConfigurationResource",
+ "AsyncAppConfigurationResource",
+ "AppConfigurationResourceWithRawResponse",
+ "AsyncAppConfigurationResourceWithRawResponse",
+ "AppConfigurationResourceWithStreamingResponse",
+ "AsyncAppConfigurationResourceWithStreamingResponse",
"ACLsResource",
"AsyncACLsResource",
"ACLsResourceWithRawResponse",
diff --git a/src/cloudflare/resources/magic_transit/sites/sites/app_configuration.py b/src/cloudflare/resources/magic_transit/sites/app_configuration.py
similarity index 97%
rename from src/cloudflare/resources/magic_transit/sites/sites/app_configuration.py
rename to src/cloudflare/resources/magic_transit/sites/app_configuration.py
index 7e61a793203..ab626ae44b5 100644
--- a/src/cloudflare/resources/magic_transit/sites/sites/app_configuration.py
+++ b/src/cloudflare/resources/magic_transit/sites/app_configuration.py
@@ -6,31 +6,31 @@
import httpx
-from ....._types import NOT_GIVEN, Body, Query, Headers, NotGiven
-from ....._utils import (
+from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven
+from ...._utils import (
required_args,
maybe_transform,
async_maybe_transform,
)
-from ....._compat import cached_property
-from ....._resource import SyncAPIResource, AsyncAPIResource
-from ....._response import (
+from ...._compat import cached_property
+from ...._resource import SyncAPIResource, AsyncAPIResource
+from ...._response import (
to_raw_response_wrapper,
to_streamed_response_wrapper,
async_to_raw_response_wrapper,
async_to_streamed_response_wrapper,
)
-from ....._wrappers import ResultWrapper
-from .....pagination import SyncSinglePage, AsyncSinglePage
-from ....._base_client import (
+from ...._wrappers import ResultWrapper
+from ....pagination import SyncSinglePage, AsyncSinglePage
+from ...._base_client import (
AsyncPaginator,
make_request_options,
)
-from .....types.magic_transit.sites.sites import app_configuration_create_params, app_configuration_update_params
-from .....types.magic_transit.sites.sites.app_configuration_list_response import AppConfigurationListResponse
-from .....types.magic_transit.sites.sites.app_configuration_create_response import AppConfigurationCreateResponse
-from .....types.magic_transit.sites.sites.app_configuration_delete_response import AppConfigurationDeleteResponse
-from .....types.magic_transit.sites.sites.app_configuration_update_response import AppConfigurationUpdateResponse
+from ....types.magic_transit.sites import app_configuration_create_params, app_configuration_update_params
+from ....types.magic_transit.sites.app_configuration_list_response import AppConfigurationListResponse
+from ....types.magic_transit.sites.app_configuration_create_response import AppConfigurationCreateResponse
+from ....types.magic_transit.sites.app_configuration_delete_response import AppConfigurationDeleteResponse
+from ....types.magic_transit.sites.app_configuration_update_response import AppConfigurationUpdateResponse
__all__ = ["AppConfigurationResource", "AsyncAppConfigurationResource"]
diff --git a/src/cloudflare/resources/magic_transit/sites/sites.py b/src/cloudflare/resources/magic_transit/sites/sites.py
index c8a502834c7..2c70cc30a7d 100644
--- a/src/cloudflare/resources/magic_transit/sites/sites.py
+++ b/src/cloudflare/resources/magic_transit/sites/sites.py
@@ -30,15 +30,6 @@
WANsResourceWithStreamingResponse,
AsyncWANsResourceWithStreamingResponse,
)
-from .sites import (
- SitesResource,
- AsyncSitesResource,
- SitesResourceWithRawResponse,
- AsyncSitesResourceWithRawResponse,
- SitesResourceWithStreamingResponse,
- AsyncSitesResourceWithStreamingResponse,
- sites,
-)
from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven
from ...._utils import (
maybe_transform,
@@ -58,6 +49,14 @@
AsyncPaginator,
make_request_options,
)
+from .app_configuration import (
+ AppConfigurationResource,
+ AsyncAppConfigurationResource,
+ AppConfigurationResourceWithRawResponse,
+ AsyncAppConfigurationResourceWithRawResponse,
+ AppConfigurationResourceWithStreamingResponse,
+ AsyncAppConfigurationResourceWithStreamingResponse,
+)
from ....types.magic_transit import (
site_edit_params,
site_list_params,
@@ -71,6 +70,10 @@
class SitesResource(SyncAPIResource):
+ @cached_property
+ def app_configuration(self) -> AppConfigurationResource:
+ return AppConfigurationResource(self._client)
+
@cached_property
def acls(self) -> ACLsResource:
return ACLsResource(self._client)
@@ -83,10 +86,6 @@ def lans(self) -> LANsResource:
def wans(self) -> WANsResource:
return WANsResource(self._client)
- @cached_property
- def sites(self) -> sites.SitesResource:
- return SitesResource(self._client)
-
@cached_property
def with_raw_response(self) -> SitesResourceWithRawResponse:
return SitesResourceWithRawResponse(self)
@@ -432,6 +431,10 @@ def get(
class AsyncSitesResource(AsyncAPIResource):
+ @cached_property
+ def app_configuration(self) -> AsyncAppConfigurationResource:
+ return AsyncAppConfigurationResource(self._client)
+
@cached_property
def acls(self) -> AsyncACLsResource:
return AsyncACLsResource(self._client)
@@ -444,10 +447,6 @@ def lans(self) -> AsyncLANsResource:
def wans(self) -> AsyncWANsResource:
return AsyncWANsResource(self._client)
- @cached_property
- def sites(self) -> sites.AsyncSitesResource:
- return AsyncSitesResource(self._client)
-
@cached_property
def with_raw_response(self) -> AsyncSitesResourceWithRawResponse:
return AsyncSitesResourceWithRawResponse(self)
@@ -815,6 +814,10 @@ def __init__(self, sites: SitesResource) -> None:
sites.get,
)
+ @cached_property
+ def app_configuration(self) -> AppConfigurationResourceWithRawResponse:
+ return AppConfigurationResourceWithRawResponse(self._sites.app_configuration)
+
@cached_property
def acls(self) -> ACLsResourceWithRawResponse:
return ACLsResourceWithRawResponse(self._sites.acls)
@@ -827,10 +830,6 @@ def lans(self) -> LANsResourceWithRawResponse:
def wans(self) -> WANsResourceWithRawResponse:
return WANsResourceWithRawResponse(self._sites.wans)
- @cached_property
- def sites(self) -> SitesResourceWithRawResponse:
- return SitesResourceWithRawResponse(self._sites.sites)
-
class AsyncSitesResourceWithRawResponse:
def __init__(self, sites: AsyncSitesResource) -> None:
@@ -855,6 +854,10 @@ def __init__(self, sites: AsyncSitesResource) -> None:
sites.get,
)
+ @cached_property
+ def app_configuration(self) -> AsyncAppConfigurationResourceWithRawResponse:
+ return AsyncAppConfigurationResourceWithRawResponse(self._sites.app_configuration)
+
@cached_property
def acls(self) -> AsyncACLsResourceWithRawResponse:
return AsyncACLsResourceWithRawResponse(self._sites.acls)
@@ -867,10 +870,6 @@ def lans(self) -> AsyncLANsResourceWithRawResponse:
def wans(self) -> AsyncWANsResourceWithRawResponse:
return AsyncWANsResourceWithRawResponse(self._sites.wans)
- @cached_property
- def sites(self) -> AsyncSitesResourceWithRawResponse:
- return AsyncSitesResourceWithRawResponse(self._sites.sites)
-
class SitesResourceWithStreamingResponse:
def __init__(self, sites: SitesResource) -> None:
@@ -895,6 +894,10 @@ def __init__(self, sites: SitesResource) -> None:
sites.get,
)
+ @cached_property
+ def app_configuration(self) -> AppConfigurationResourceWithStreamingResponse:
+ return AppConfigurationResourceWithStreamingResponse(self._sites.app_configuration)
+
@cached_property
def acls(self) -> ACLsResourceWithStreamingResponse:
return ACLsResourceWithStreamingResponse(self._sites.acls)
@@ -907,10 +910,6 @@ def lans(self) -> LANsResourceWithStreamingResponse:
def wans(self) -> WANsResourceWithStreamingResponse:
return WANsResourceWithStreamingResponse(self._sites.wans)
- @cached_property
- def sites(self) -> SitesResourceWithStreamingResponse:
- return SitesResourceWithStreamingResponse(self._sites.sites)
-
class AsyncSitesResourceWithStreamingResponse:
def __init__(self, sites: AsyncSitesResource) -> None:
@@ -935,6 +934,10 @@ def __init__(self, sites: AsyncSitesResource) -> None:
sites.get,
)
+ @cached_property
+ def app_configuration(self) -> AsyncAppConfigurationResourceWithStreamingResponse:
+ return AsyncAppConfigurationResourceWithStreamingResponse(self._sites.app_configuration)
+
@cached_property
def acls(self) -> AsyncACLsResourceWithStreamingResponse:
return AsyncACLsResourceWithStreamingResponse(self._sites.acls)
@@ -946,7 +949,3 @@ def lans(self) -> AsyncLANsResourceWithStreamingResponse:
@cached_property
def wans(self) -> AsyncWANsResourceWithStreamingResponse:
return AsyncWANsResourceWithStreamingResponse(self._sites.wans)
-
- @cached_property
- def sites(self) -> AsyncSitesResourceWithStreamingResponse:
- return AsyncSitesResourceWithStreamingResponse(self._sites.sites)
diff --git a/src/cloudflare/resources/magic_transit/sites/sites/__init__.py b/src/cloudflare/resources/magic_transit/sites/sites/__init__.py
deleted file mode 100644
index 01aea158619..00000000000
--- a/src/cloudflare/resources/magic_transit/sites/sites/__init__.py
+++ /dev/null
@@ -1,33 +0,0 @@
-# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
-
-from .sites import (
- SitesResource,
- AsyncSitesResource,
- SitesResourceWithRawResponse,
- AsyncSitesResourceWithRawResponse,
- SitesResourceWithStreamingResponse,
- AsyncSitesResourceWithStreamingResponse,
-)
-from .app_configuration import (
- AppConfigurationResource,
- AsyncAppConfigurationResource,
- AppConfigurationResourceWithRawResponse,
- AsyncAppConfigurationResourceWithRawResponse,
- AppConfigurationResourceWithStreamingResponse,
- AsyncAppConfigurationResourceWithStreamingResponse,
-)
-
-__all__ = [
- "AppConfigurationResource",
- "AsyncAppConfigurationResource",
- "AppConfigurationResourceWithRawResponse",
- "AsyncAppConfigurationResourceWithRawResponse",
- "AppConfigurationResourceWithStreamingResponse",
- "AsyncAppConfigurationResourceWithStreamingResponse",
- "SitesResource",
- "AsyncSitesResource",
- "SitesResourceWithRawResponse",
- "AsyncSitesResourceWithRawResponse",
- "SitesResourceWithStreamingResponse",
- "AsyncSitesResourceWithStreamingResponse",
-]
diff --git a/src/cloudflare/resources/magic_transit/sites/sites/sites.py b/src/cloudflare/resources/magic_transit/sites/sites/sites.py
deleted file mode 100644
index 04377a5750e..00000000000
--- a/src/cloudflare/resources/magic_transit/sites/sites/sites.py
+++ /dev/null
@@ -1,80 +0,0 @@
-# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
-
-from __future__ import annotations
-
-from ....._compat import cached_property
-from ....._resource import SyncAPIResource, AsyncAPIResource
-from .app_configuration import (
- AppConfigurationResource,
- AsyncAppConfigurationResource,
- AppConfigurationResourceWithRawResponse,
- AsyncAppConfigurationResourceWithRawResponse,
- AppConfigurationResourceWithStreamingResponse,
- AsyncAppConfigurationResourceWithStreamingResponse,
-)
-
-__all__ = ["SitesResource", "AsyncSitesResource"]
-
-
-class SitesResource(SyncAPIResource):
- @cached_property
- def app_configuration(self) -> AppConfigurationResource:
- return AppConfigurationResource(self._client)
-
- @cached_property
- def with_raw_response(self) -> SitesResourceWithRawResponse:
- return SitesResourceWithRawResponse(self)
-
- @cached_property
- def with_streaming_response(self) -> SitesResourceWithStreamingResponse:
- return SitesResourceWithStreamingResponse(self)
-
-
-class AsyncSitesResource(AsyncAPIResource):
- @cached_property
- def app_configuration(self) -> AsyncAppConfigurationResource:
- return AsyncAppConfigurationResource(self._client)
-
- @cached_property
- def with_raw_response(self) -> AsyncSitesResourceWithRawResponse:
- return AsyncSitesResourceWithRawResponse(self)
-
- @cached_property
- def with_streaming_response(self) -> AsyncSitesResourceWithStreamingResponse:
- return AsyncSitesResourceWithStreamingResponse(self)
-
-
-class SitesResourceWithRawResponse:
- def __init__(self, sites: SitesResource) -> None:
- self._sites = sites
-
- @cached_property
- def app_configuration(self) -> AppConfigurationResourceWithRawResponse:
- return AppConfigurationResourceWithRawResponse(self._sites.app_configuration)
-
-
-class AsyncSitesResourceWithRawResponse:
- def __init__(self, sites: AsyncSitesResource) -> None:
- self._sites = sites
-
- @cached_property
- def app_configuration(self) -> AsyncAppConfigurationResourceWithRawResponse:
- return AsyncAppConfigurationResourceWithRawResponse(self._sites.app_configuration)
-
-
-class SitesResourceWithStreamingResponse:
- def __init__(self, sites: SitesResource) -> None:
- self._sites = sites
-
- @cached_property
- def app_configuration(self) -> AppConfigurationResourceWithStreamingResponse:
- return AppConfigurationResourceWithStreamingResponse(self._sites.app_configuration)
-
-
-class AsyncSitesResourceWithStreamingResponse:
- def __init__(self, sites: AsyncSitesResource) -> None:
- self._sites = sites
-
- @cached_property
- def app_configuration(self) -> AsyncAppConfigurationResourceWithStreamingResponse:
- return AsyncAppConfigurationResourceWithStreamingResponse(self._sites.app_configuration)
diff --git a/src/cloudflare/types/magic_transit/sites/__init__.py b/src/cloudflare/types/magic_transit/sites/__init__.py
index 38f592bb4e6..9ce9579033c 100644
--- a/src/cloudflare/types/magic_transit/sites/__init__.py
+++ b/src/cloudflare/types/magic_transit/sites/__init__.py
@@ -33,3 +33,9 @@
from .acl_configuration_param import ACLConfigurationParam as ACLConfigurationParam
from .lan_static_addressing_param import LANStaticAddressingParam as LANStaticAddressingParam
from .wan_static_addressing_param import WANStaticAddressingParam as WANStaticAddressingParam
+from .app_configuration_create_params import AppConfigurationCreateParams as AppConfigurationCreateParams
+from .app_configuration_list_response import AppConfigurationListResponse as AppConfigurationListResponse
+from .app_configuration_update_params import AppConfigurationUpdateParams as AppConfigurationUpdateParams
+from .app_configuration_create_response import AppConfigurationCreateResponse as AppConfigurationCreateResponse
+from .app_configuration_delete_response import AppConfigurationDeleteResponse as AppConfigurationDeleteResponse
+from .app_configuration_update_response import AppConfigurationUpdateResponse as AppConfigurationUpdateResponse
diff --git a/src/cloudflare/types/magic_transit/sites/sites/app_configuration_create_params.py b/src/cloudflare/types/magic_transit/sites/app_configuration_create_params.py
similarity index 100%
rename from src/cloudflare/types/magic_transit/sites/sites/app_configuration_create_params.py
rename to src/cloudflare/types/magic_transit/sites/app_configuration_create_params.py
diff --git a/src/cloudflare/types/magic_transit/sites/sites/app_configuration_create_response.py b/src/cloudflare/types/magic_transit/sites/app_configuration_create_response.py
similarity index 94%
rename from src/cloudflare/types/magic_transit/sites/sites/app_configuration_create_response.py
rename to src/cloudflare/types/magic_transit/sites/app_configuration_create_response.py
index 3b1c31a4251..84e52fc8403 100644
--- a/src/cloudflare/types/magic_transit/sites/sites/app_configuration_create_response.py
+++ b/src/cloudflare/types/magic_transit/sites/app_configuration_create_response.py
@@ -2,7 +2,7 @@
from typing import Optional
-from ....._models import BaseModel
+from ...._models import BaseModel
__all__ = ["AppConfigurationCreateResponse"]
diff --git a/src/cloudflare/types/magic_transit/sites/sites/app_configuration_delete_response.py b/src/cloudflare/types/magic_transit/sites/app_configuration_delete_response.py
similarity index 94%
rename from src/cloudflare/types/magic_transit/sites/sites/app_configuration_delete_response.py
rename to src/cloudflare/types/magic_transit/sites/app_configuration_delete_response.py
index 1c5daf9c4fc..bffa4cb833d 100644
--- a/src/cloudflare/types/magic_transit/sites/sites/app_configuration_delete_response.py
+++ b/src/cloudflare/types/magic_transit/sites/app_configuration_delete_response.py
@@ -2,7 +2,7 @@
from typing import Optional
-from ....._models import BaseModel
+from ...._models import BaseModel
__all__ = ["AppConfigurationDeleteResponse"]
diff --git a/src/cloudflare/types/magic_transit/sites/sites/app_configuration_list_response.py b/src/cloudflare/types/magic_transit/sites/app_configuration_list_response.py
similarity index 94%
rename from src/cloudflare/types/magic_transit/sites/sites/app_configuration_list_response.py
rename to src/cloudflare/types/magic_transit/sites/app_configuration_list_response.py
index 9c508e2a035..15f8a52f3eb 100644
--- a/src/cloudflare/types/magic_transit/sites/sites/app_configuration_list_response.py
+++ b/src/cloudflare/types/magic_transit/sites/app_configuration_list_response.py
@@ -2,7 +2,7 @@
from typing import Optional
-from ....._models import BaseModel
+from ...._models import BaseModel
__all__ = ["AppConfigurationListResponse"]
diff --git a/src/cloudflare/types/magic_transit/sites/sites/app_configuration_update_params.py b/src/cloudflare/types/magic_transit/sites/app_configuration_update_params.py
similarity index 100%
rename from src/cloudflare/types/magic_transit/sites/sites/app_configuration_update_params.py
rename to src/cloudflare/types/magic_transit/sites/app_configuration_update_params.py
diff --git a/src/cloudflare/types/magic_transit/sites/sites/app_configuration_update_response.py b/src/cloudflare/types/magic_transit/sites/app_configuration_update_response.py
similarity index 94%
rename from src/cloudflare/types/magic_transit/sites/sites/app_configuration_update_response.py
rename to src/cloudflare/types/magic_transit/sites/app_configuration_update_response.py
index 01ef039b4e6..4cf34ba7780 100644
--- a/src/cloudflare/types/magic_transit/sites/sites/app_configuration_update_response.py
+++ b/src/cloudflare/types/magic_transit/sites/app_configuration_update_response.py
@@ -2,7 +2,7 @@
from typing import Optional
-from ....._models import BaseModel
+from ...._models import BaseModel
__all__ = ["AppConfigurationUpdateResponse"]
diff --git a/src/cloudflare/types/magic_transit/sites/sites/__init__.py b/src/cloudflare/types/magic_transit/sites/sites/__init__.py
deleted file mode 100644
index 4b8fd25c1d0..00000000000
--- a/src/cloudflare/types/magic_transit/sites/sites/__init__.py
+++ /dev/null
@@ -1,10 +0,0 @@
-# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
-
-from __future__ import annotations
-
-from .app_configuration_create_params import AppConfigurationCreateParams as AppConfigurationCreateParams
-from .app_configuration_list_response import AppConfigurationListResponse as AppConfigurationListResponse
-from .app_configuration_update_params import AppConfigurationUpdateParams as AppConfigurationUpdateParams
-from .app_configuration_create_response import AppConfigurationCreateResponse as AppConfigurationCreateResponse
-from .app_configuration_delete_response import AppConfigurationDeleteResponse as AppConfigurationDeleteResponse
-from .app_configuration_update_response import AppConfigurationUpdateResponse as AppConfigurationUpdateResponse
diff --git a/tests/api_resources/magic_transit/sites/sites/__init__.py b/tests/api_resources/magic_transit/sites/sites/__init__.py
deleted file mode 100644
index fd8019a9a1a..00000000000
--- a/tests/api_resources/magic_transit/sites/sites/__init__.py
+++ /dev/null
@@ -1 +0,0 @@
-# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
diff --git a/tests/api_resources/magic_transit/sites/sites/test_app_configuration.py b/tests/api_resources/magic_transit/sites/test_app_configuration.py
similarity index 83%
rename from tests/api_resources/magic_transit/sites/sites/test_app_configuration.py
rename to tests/api_resources/magic_transit/sites/test_app_configuration.py
index 65670e86460..8effe5be706 100644
--- a/tests/api_resources/magic_transit/sites/sites/test_app_configuration.py
+++ b/tests/api_resources/magic_transit/sites/test_app_configuration.py
@@ -10,7 +10,7 @@
from cloudflare import Cloudflare, AsyncCloudflare
from tests.utils import assert_matches_type
from cloudflare.pagination import SyncSinglePage, AsyncSinglePage
-from cloudflare.types.magic_transit.sites.sites import (
+from cloudflare.types.magic_transit.sites import (
AppConfigurationListResponse,
AppConfigurationCreateResponse,
AppConfigurationDeleteResponse,
@@ -25,7 +25,7 @@ class TestAppConfiguration:
@parametrize
def test_method_create_overload_1(self, client: Cloudflare) -> None:
- app_configuration = client.magic_transit.sites.sites.app_configuration.create(
+ app_configuration = client.magic_transit.sites.app_configuration.create(
"023e105f4ecef8ad9ca31a8372d0c353",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
account_app_id="ac60d3d0435248289d446cedd870bcf4",
@@ -34,7 +34,7 @@ def test_method_create_overload_1(self, client: Cloudflare) -> None:
@parametrize
def test_raw_response_create_overload_1(self, client: Cloudflare) -> None:
- response = client.magic_transit.sites.sites.app_configuration.with_raw_response.create(
+ response = client.magic_transit.sites.app_configuration.with_raw_response.create(
"023e105f4ecef8ad9ca31a8372d0c353",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
account_app_id="ac60d3d0435248289d446cedd870bcf4",
@@ -47,7 +47,7 @@ def test_raw_response_create_overload_1(self, client: Cloudflare) -> None:
@parametrize
def test_streaming_response_create_overload_1(self, client: Cloudflare) -> None:
- with client.magic_transit.sites.sites.app_configuration.with_streaming_response.create(
+ with client.magic_transit.sites.app_configuration.with_streaming_response.create(
"023e105f4ecef8ad9ca31a8372d0c353",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
account_app_id="ac60d3d0435248289d446cedd870bcf4",
@@ -63,14 +63,14 @@ def test_streaming_response_create_overload_1(self, client: Cloudflare) -> None:
@parametrize
def test_path_params_create_overload_1(self, client: Cloudflare) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
- client.magic_transit.sites.sites.app_configuration.with_raw_response.create(
+ client.magic_transit.sites.app_configuration.with_raw_response.create(
"023e105f4ecef8ad9ca31a8372d0c353",
account_id="",
account_app_id="ac60d3d0435248289d446cedd870bcf4",
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `site_id` but received ''"):
- client.magic_transit.sites.sites.app_configuration.with_raw_response.create(
+ client.magic_transit.sites.app_configuration.with_raw_response.create(
"",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
account_app_id="ac60d3d0435248289d446cedd870bcf4",
@@ -78,7 +78,7 @@ def test_path_params_create_overload_1(self, client: Cloudflare) -> None:
@parametrize
def test_method_create_overload_2(self, client: Cloudflare) -> None:
- app_configuration = client.magic_transit.sites.sites.app_configuration.create(
+ app_configuration = client.magic_transit.sites.app_configuration.create(
"023e105f4ecef8ad9ca31a8372d0c353",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
managed_app_id="cloudflare",
@@ -87,7 +87,7 @@ def test_method_create_overload_2(self, client: Cloudflare) -> None:
@parametrize
def test_raw_response_create_overload_2(self, client: Cloudflare) -> None:
- response = client.magic_transit.sites.sites.app_configuration.with_raw_response.create(
+ response = client.magic_transit.sites.app_configuration.with_raw_response.create(
"023e105f4ecef8ad9ca31a8372d0c353",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
managed_app_id="cloudflare",
@@ -100,7 +100,7 @@ def test_raw_response_create_overload_2(self, client: Cloudflare) -> None:
@parametrize
def test_streaming_response_create_overload_2(self, client: Cloudflare) -> None:
- with client.magic_transit.sites.sites.app_configuration.with_streaming_response.create(
+ with client.magic_transit.sites.app_configuration.with_streaming_response.create(
"023e105f4ecef8ad9ca31a8372d0c353",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
managed_app_id="cloudflare",
@@ -116,14 +116,14 @@ def test_streaming_response_create_overload_2(self, client: Cloudflare) -> None:
@parametrize
def test_path_params_create_overload_2(self, client: Cloudflare) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
- client.magic_transit.sites.sites.app_configuration.with_raw_response.create(
+ client.magic_transit.sites.app_configuration.with_raw_response.create(
"023e105f4ecef8ad9ca31a8372d0c353",
account_id="",
managed_app_id="cloudflare",
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `site_id` but received ''"):
- client.magic_transit.sites.sites.app_configuration.with_raw_response.create(
+ client.magic_transit.sites.app_configuration.with_raw_response.create(
"",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
managed_app_id="cloudflare",
@@ -131,7 +131,7 @@ def test_path_params_create_overload_2(self, client: Cloudflare) -> None:
@parametrize
def test_method_update_overload_1(self, client: Cloudflare) -> None:
- app_configuration = client.magic_transit.sites.sites.app_configuration.update(
+ app_configuration = client.magic_transit.sites.app_configuration.update(
"023e105f4ecef8ad9ca31a8372d0c353",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
site_id="023e105f4ecef8ad9ca31a8372d0c353",
@@ -141,7 +141,7 @@ def test_method_update_overload_1(self, client: Cloudflare) -> None:
@parametrize
def test_raw_response_update_overload_1(self, client: Cloudflare) -> None:
- response = client.magic_transit.sites.sites.app_configuration.with_raw_response.update(
+ response = client.magic_transit.sites.app_configuration.with_raw_response.update(
"023e105f4ecef8ad9ca31a8372d0c353",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
site_id="023e105f4ecef8ad9ca31a8372d0c353",
@@ -155,7 +155,7 @@ def test_raw_response_update_overload_1(self, client: Cloudflare) -> None:
@parametrize
def test_streaming_response_update_overload_1(self, client: Cloudflare) -> None:
- with client.magic_transit.sites.sites.app_configuration.with_streaming_response.update(
+ with client.magic_transit.sites.app_configuration.with_streaming_response.update(
"023e105f4ecef8ad9ca31a8372d0c353",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
site_id="023e105f4ecef8ad9ca31a8372d0c353",
@@ -172,7 +172,7 @@ def test_streaming_response_update_overload_1(self, client: Cloudflare) -> None:
@parametrize
def test_path_params_update_overload_1(self, client: Cloudflare) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
- client.magic_transit.sites.sites.app_configuration.with_raw_response.update(
+ client.magic_transit.sites.app_configuration.with_raw_response.update(
"023e105f4ecef8ad9ca31a8372d0c353",
account_id="",
site_id="023e105f4ecef8ad9ca31a8372d0c353",
@@ -180,7 +180,7 @@ def test_path_params_update_overload_1(self, client: Cloudflare) -> None:
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `site_id` but received ''"):
- client.magic_transit.sites.sites.app_configuration.with_raw_response.update(
+ client.magic_transit.sites.app_configuration.with_raw_response.update(
"023e105f4ecef8ad9ca31a8372d0c353",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
site_id="",
@@ -188,7 +188,7 @@ def test_path_params_update_overload_1(self, client: Cloudflare) -> None:
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `app_config_id` but received ''"):
- client.magic_transit.sites.sites.app_configuration.with_raw_response.update(
+ client.magic_transit.sites.app_configuration.with_raw_response.update(
"",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
site_id="023e105f4ecef8ad9ca31a8372d0c353",
@@ -197,7 +197,7 @@ def test_path_params_update_overload_1(self, client: Cloudflare) -> None:
@parametrize
def test_method_update_overload_2(self, client: Cloudflare) -> None:
- app_configuration = client.magic_transit.sites.sites.app_configuration.update(
+ app_configuration = client.magic_transit.sites.app_configuration.update(
"023e105f4ecef8ad9ca31a8372d0c353",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
site_id="023e105f4ecef8ad9ca31a8372d0c353",
@@ -207,7 +207,7 @@ def test_method_update_overload_2(self, client: Cloudflare) -> None:
@parametrize
def test_raw_response_update_overload_2(self, client: Cloudflare) -> None:
- response = client.magic_transit.sites.sites.app_configuration.with_raw_response.update(
+ response = client.magic_transit.sites.app_configuration.with_raw_response.update(
"023e105f4ecef8ad9ca31a8372d0c353",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
site_id="023e105f4ecef8ad9ca31a8372d0c353",
@@ -221,7 +221,7 @@ def test_raw_response_update_overload_2(self, client: Cloudflare) -> None:
@parametrize
def test_streaming_response_update_overload_2(self, client: Cloudflare) -> None:
- with client.magic_transit.sites.sites.app_configuration.with_streaming_response.update(
+ with client.magic_transit.sites.app_configuration.with_streaming_response.update(
"023e105f4ecef8ad9ca31a8372d0c353",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
site_id="023e105f4ecef8ad9ca31a8372d0c353",
@@ -238,7 +238,7 @@ def test_streaming_response_update_overload_2(self, client: Cloudflare) -> None:
@parametrize
def test_path_params_update_overload_2(self, client: Cloudflare) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
- client.magic_transit.sites.sites.app_configuration.with_raw_response.update(
+ client.magic_transit.sites.app_configuration.with_raw_response.update(
"023e105f4ecef8ad9ca31a8372d0c353",
account_id="",
site_id="023e105f4ecef8ad9ca31a8372d0c353",
@@ -246,7 +246,7 @@ def test_path_params_update_overload_2(self, client: Cloudflare) -> None:
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `site_id` but received ''"):
- client.magic_transit.sites.sites.app_configuration.with_raw_response.update(
+ client.magic_transit.sites.app_configuration.with_raw_response.update(
"023e105f4ecef8ad9ca31a8372d0c353",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
site_id="",
@@ -254,7 +254,7 @@ def test_path_params_update_overload_2(self, client: Cloudflare) -> None:
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `app_config_id` but received ''"):
- client.magic_transit.sites.sites.app_configuration.with_raw_response.update(
+ client.magic_transit.sites.app_configuration.with_raw_response.update(
"",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
site_id="023e105f4ecef8ad9ca31a8372d0c353",
@@ -263,7 +263,7 @@ def test_path_params_update_overload_2(self, client: Cloudflare) -> None:
@parametrize
def test_method_update_overload_3(self, client: Cloudflare) -> None:
- app_configuration = client.magic_transit.sites.sites.app_configuration.update(
+ app_configuration = client.magic_transit.sites.app_configuration.update(
"023e105f4ecef8ad9ca31a8372d0c353",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
site_id="023e105f4ecef8ad9ca31a8372d0c353",
@@ -273,7 +273,7 @@ def test_method_update_overload_3(self, client: Cloudflare) -> None:
@parametrize
def test_raw_response_update_overload_3(self, client: Cloudflare) -> None:
- response = client.magic_transit.sites.sites.app_configuration.with_raw_response.update(
+ response = client.magic_transit.sites.app_configuration.with_raw_response.update(
"023e105f4ecef8ad9ca31a8372d0c353",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
site_id="023e105f4ecef8ad9ca31a8372d0c353",
@@ -287,7 +287,7 @@ def test_raw_response_update_overload_3(self, client: Cloudflare) -> None:
@parametrize
def test_streaming_response_update_overload_3(self, client: Cloudflare) -> None:
- with client.magic_transit.sites.sites.app_configuration.with_streaming_response.update(
+ with client.magic_transit.sites.app_configuration.with_streaming_response.update(
"023e105f4ecef8ad9ca31a8372d0c353",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
site_id="023e105f4ecef8ad9ca31a8372d0c353",
@@ -304,7 +304,7 @@ def test_streaming_response_update_overload_3(self, client: Cloudflare) -> None:
@parametrize
def test_path_params_update_overload_3(self, client: Cloudflare) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
- client.magic_transit.sites.sites.app_configuration.with_raw_response.update(
+ client.magic_transit.sites.app_configuration.with_raw_response.update(
"023e105f4ecef8ad9ca31a8372d0c353",
account_id="",
site_id="023e105f4ecef8ad9ca31a8372d0c353",
@@ -312,7 +312,7 @@ def test_path_params_update_overload_3(self, client: Cloudflare) -> None:
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `site_id` but received ''"):
- client.magic_transit.sites.sites.app_configuration.with_raw_response.update(
+ client.magic_transit.sites.app_configuration.with_raw_response.update(
"023e105f4ecef8ad9ca31a8372d0c353",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
site_id="",
@@ -320,7 +320,7 @@ def test_path_params_update_overload_3(self, client: Cloudflare) -> None:
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `app_config_id` but received ''"):
- client.magic_transit.sites.sites.app_configuration.with_raw_response.update(
+ client.magic_transit.sites.app_configuration.with_raw_response.update(
"",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
site_id="023e105f4ecef8ad9ca31a8372d0c353",
@@ -329,7 +329,7 @@ def test_path_params_update_overload_3(self, client: Cloudflare) -> None:
@parametrize
def test_method_update_overload_4(self, client: Cloudflare) -> None:
- app_configuration = client.magic_transit.sites.sites.app_configuration.update(
+ app_configuration = client.magic_transit.sites.app_configuration.update(
"023e105f4ecef8ad9ca31a8372d0c353",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
site_id="023e105f4ecef8ad9ca31a8372d0c353",
@@ -339,7 +339,7 @@ def test_method_update_overload_4(self, client: Cloudflare) -> None:
@parametrize
def test_raw_response_update_overload_4(self, client: Cloudflare) -> None:
- response = client.magic_transit.sites.sites.app_configuration.with_raw_response.update(
+ response = client.magic_transit.sites.app_configuration.with_raw_response.update(
"023e105f4ecef8ad9ca31a8372d0c353",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
site_id="023e105f4ecef8ad9ca31a8372d0c353",
@@ -353,7 +353,7 @@ def test_raw_response_update_overload_4(self, client: Cloudflare) -> None:
@parametrize
def test_streaming_response_update_overload_4(self, client: Cloudflare) -> None:
- with client.magic_transit.sites.sites.app_configuration.with_streaming_response.update(
+ with client.magic_transit.sites.app_configuration.with_streaming_response.update(
"023e105f4ecef8ad9ca31a8372d0c353",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
site_id="023e105f4ecef8ad9ca31a8372d0c353",
@@ -370,7 +370,7 @@ def test_streaming_response_update_overload_4(self, client: Cloudflare) -> None:
@parametrize
def test_path_params_update_overload_4(self, client: Cloudflare) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
- client.magic_transit.sites.sites.app_configuration.with_raw_response.update(
+ client.magic_transit.sites.app_configuration.with_raw_response.update(
"023e105f4ecef8ad9ca31a8372d0c353",
account_id="",
site_id="023e105f4ecef8ad9ca31a8372d0c353",
@@ -378,7 +378,7 @@ def test_path_params_update_overload_4(self, client: Cloudflare) -> None:
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `site_id` but received ''"):
- client.magic_transit.sites.sites.app_configuration.with_raw_response.update(
+ client.magic_transit.sites.app_configuration.with_raw_response.update(
"023e105f4ecef8ad9ca31a8372d0c353",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
site_id="",
@@ -386,7 +386,7 @@ def test_path_params_update_overload_4(self, client: Cloudflare) -> None:
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `app_config_id` but received ''"):
- client.magic_transit.sites.sites.app_configuration.with_raw_response.update(
+ client.magic_transit.sites.app_configuration.with_raw_response.update(
"",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
site_id="023e105f4ecef8ad9ca31a8372d0c353",
@@ -395,7 +395,7 @@ def test_path_params_update_overload_4(self, client: Cloudflare) -> None:
@parametrize
def test_method_update_overload_5(self, client: Cloudflare) -> None:
- app_configuration = client.magic_transit.sites.sites.app_configuration.update(
+ app_configuration = client.magic_transit.sites.app_configuration.update(
"023e105f4ecef8ad9ca31a8372d0c353",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
site_id="023e105f4ecef8ad9ca31a8372d0c353",
@@ -406,7 +406,7 @@ def test_method_update_overload_5(self, client: Cloudflare) -> None:
@parametrize
def test_raw_response_update_overload_5(self, client: Cloudflare) -> None:
- response = client.magic_transit.sites.sites.app_configuration.with_raw_response.update(
+ response = client.magic_transit.sites.app_configuration.with_raw_response.update(
"023e105f4ecef8ad9ca31a8372d0c353",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
site_id="023e105f4ecef8ad9ca31a8372d0c353",
@@ -421,7 +421,7 @@ def test_raw_response_update_overload_5(self, client: Cloudflare) -> None:
@parametrize
def test_streaming_response_update_overload_5(self, client: Cloudflare) -> None:
- with client.magic_transit.sites.sites.app_configuration.with_streaming_response.update(
+ with client.magic_transit.sites.app_configuration.with_streaming_response.update(
"023e105f4ecef8ad9ca31a8372d0c353",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
site_id="023e105f4ecef8ad9ca31a8372d0c353",
@@ -439,7 +439,7 @@ def test_streaming_response_update_overload_5(self, client: Cloudflare) -> None:
@parametrize
def test_path_params_update_overload_5(self, client: Cloudflare) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
- client.magic_transit.sites.sites.app_configuration.with_raw_response.update(
+ client.magic_transit.sites.app_configuration.with_raw_response.update(
"023e105f4ecef8ad9ca31a8372d0c353",
account_id="",
site_id="023e105f4ecef8ad9ca31a8372d0c353",
@@ -448,7 +448,7 @@ def test_path_params_update_overload_5(self, client: Cloudflare) -> None:
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `site_id` but received ''"):
- client.magic_transit.sites.sites.app_configuration.with_raw_response.update(
+ client.magic_transit.sites.app_configuration.with_raw_response.update(
"023e105f4ecef8ad9ca31a8372d0c353",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
site_id="",
@@ -457,7 +457,7 @@ def test_path_params_update_overload_5(self, client: Cloudflare) -> None:
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `app_config_id` but received ''"):
- client.magic_transit.sites.sites.app_configuration.with_raw_response.update(
+ client.magic_transit.sites.app_configuration.with_raw_response.update(
"",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
site_id="023e105f4ecef8ad9ca31a8372d0c353",
@@ -467,7 +467,7 @@ def test_path_params_update_overload_5(self, client: Cloudflare) -> None:
@parametrize
def test_method_update_overload_6(self, client: Cloudflare) -> None:
- app_configuration = client.magic_transit.sites.sites.app_configuration.update(
+ app_configuration = client.magic_transit.sites.app_configuration.update(
"023e105f4ecef8ad9ca31a8372d0c353",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
site_id="023e105f4ecef8ad9ca31a8372d0c353",
@@ -478,7 +478,7 @@ def test_method_update_overload_6(self, client: Cloudflare) -> None:
@parametrize
def test_raw_response_update_overload_6(self, client: Cloudflare) -> None:
- response = client.magic_transit.sites.sites.app_configuration.with_raw_response.update(
+ response = client.magic_transit.sites.app_configuration.with_raw_response.update(
"023e105f4ecef8ad9ca31a8372d0c353",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
site_id="023e105f4ecef8ad9ca31a8372d0c353",
@@ -493,7 +493,7 @@ def test_raw_response_update_overload_6(self, client: Cloudflare) -> None:
@parametrize
def test_streaming_response_update_overload_6(self, client: Cloudflare) -> None:
- with client.magic_transit.sites.sites.app_configuration.with_streaming_response.update(
+ with client.magic_transit.sites.app_configuration.with_streaming_response.update(
"023e105f4ecef8ad9ca31a8372d0c353",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
site_id="023e105f4ecef8ad9ca31a8372d0c353",
@@ -511,7 +511,7 @@ def test_streaming_response_update_overload_6(self, client: Cloudflare) -> None:
@parametrize
def test_path_params_update_overload_6(self, client: Cloudflare) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
- client.magic_transit.sites.sites.app_configuration.with_raw_response.update(
+ client.magic_transit.sites.app_configuration.with_raw_response.update(
"023e105f4ecef8ad9ca31a8372d0c353",
account_id="",
site_id="023e105f4ecef8ad9ca31a8372d0c353",
@@ -520,7 +520,7 @@ def test_path_params_update_overload_6(self, client: Cloudflare) -> None:
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `site_id` but received ''"):
- client.magic_transit.sites.sites.app_configuration.with_raw_response.update(
+ client.magic_transit.sites.app_configuration.with_raw_response.update(
"023e105f4ecef8ad9ca31a8372d0c353",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
site_id="",
@@ -529,7 +529,7 @@ def test_path_params_update_overload_6(self, client: Cloudflare) -> None:
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `app_config_id` but received ''"):
- client.magic_transit.sites.sites.app_configuration.with_raw_response.update(
+ client.magic_transit.sites.app_configuration.with_raw_response.update(
"",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
site_id="023e105f4ecef8ad9ca31a8372d0c353",
@@ -539,7 +539,7 @@ def test_path_params_update_overload_6(self, client: Cloudflare) -> None:
@parametrize
def test_method_list(self, client: Cloudflare) -> None:
- app_configuration = client.magic_transit.sites.sites.app_configuration.list(
+ app_configuration = client.magic_transit.sites.app_configuration.list(
"023e105f4ecef8ad9ca31a8372d0c353",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
)
@@ -547,7 +547,7 @@ def test_method_list(self, client: Cloudflare) -> None:
@parametrize
def test_raw_response_list(self, client: Cloudflare) -> None:
- response = client.magic_transit.sites.sites.app_configuration.with_raw_response.list(
+ response = client.magic_transit.sites.app_configuration.with_raw_response.list(
"023e105f4ecef8ad9ca31a8372d0c353",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
)
@@ -559,7 +559,7 @@ def test_raw_response_list(self, client: Cloudflare) -> None:
@parametrize
def test_streaming_response_list(self, client: Cloudflare) -> None:
- with client.magic_transit.sites.sites.app_configuration.with_streaming_response.list(
+ with client.magic_transit.sites.app_configuration.with_streaming_response.list(
"023e105f4ecef8ad9ca31a8372d0c353",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
) as response:
@@ -574,20 +574,20 @@ def test_streaming_response_list(self, client: Cloudflare) -> None:
@parametrize
def test_path_params_list(self, client: Cloudflare) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
- client.magic_transit.sites.sites.app_configuration.with_raw_response.list(
+ client.magic_transit.sites.app_configuration.with_raw_response.list(
"023e105f4ecef8ad9ca31a8372d0c353",
account_id="",
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `site_id` but received ''"):
- client.magic_transit.sites.sites.app_configuration.with_raw_response.list(
+ client.magic_transit.sites.app_configuration.with_raw_response.list(
"",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
)
@parametrize
def test_method_delete(self, client: Cloudflare) -> None:
- app_configuration = client.magic_transit.sites.sites.app_configuration.delete(
+ app_configuration = client.magic_transit.sites.app_configuration.delete(
"023e105f4ecef8ad9ca31a8372d0c353",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
site_id="023e105f4ecef8ad9ca31a8372d0c353",
@@ -596,7 +596,7 @@ def test_method_delete(self, client: Cloudflare) -> None:
@parametrize
def test_raw_response_delete(self, client: Cloudflare) -> None:
- response = client.magic_transit.sites.sites.app_configuration.with_raw_response.delete(
+ response = client.magic_transit.sites.app_configuration.with_raw_response.delete(
"023e105f4ecef8ad9ca31a8372d0c353",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
site_id="023e105f4ecef8ad9ca31a8372d0c353",
@@ -609,7 +609,7 @@ def test_raw_response_delete(self, client: Cloudflare) -> None:
@parametrize
def test_streaming_response_delete(self, client: Cloudflare) -> None:
- with client.magic_transit.sites.sites.app_configuration.with_streaming_response.delete(
+ with client.magic_transit.sites.app_configuration.with_streaming_response.delete(
"023e105f4ecef8ad9ca31a8372d0c353",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
site_id="023e105f4ecef8ad9ca31a8372d0c353",
@@ -625,21 +625,21 @@ def test_streaming_response_delete(self, client: Cloudflare) -> None:
@parametrize
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.magic_transit.sites.sites.app_configuration.with_raw_response.delete(
+ client.magic_transit.sites.app_configuration.with_raw_response.delete(
"023e105f4ecef8ad9ca31a8372d0c353",
account_id="",
site_id="023e105f4ecef8ad9ca31a8372d0c353",
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `site_id` but received ''"):
- client.magic_transit.sites.sites.app_configuration.with_raw_response.delete(
+ client.magic_transit.sites.app_configuration.with_raw_response.delete(
"023e105f4ecef8ad9ca31a8372d0c353",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
site_id="",
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `app_config_id` but received ''"):
- client.magic_transit.sites.sites.app_configuration.with_raw_response.delete(
+ client.magic_transit.sites.app_configuration.with_raw_response.delete(
"",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
site_id="023e105f4ecef8ad9ca31a8372d0c353",
@@ -651,7 +651,7 @@ class TestAsyncAppConfiguration:
@parametrize
async def test_method_create_overload_1(self, async_client: AsyncCloudflare) -> None:
- app_configuration = await async_client.magic_transit.sites.sites.app_configuration.create(
+ app_configuration = await async_client.magic_transit.sites.app_configuration.create(
"023e105f4ecef8ad9ca31a8372d0c353",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
account_app_id="ac60d3d0435248289d446cedd870bcf4",
@@ -660,7 +660,7 @@ async def test_method_create_overload_1(self, async_client: AsyncCloudflare) ->
@parametrize
async def test_raw_response_create_overload_1(self, async_client: AsyncCloudflare) -> None:
- response = await async_client.magic_transit.sites.sites.app_configuration.with_raw_response.create(
+ response = await async_client.magic_transit.sites.app_configuration.with_raw_response.create(
"023e105f4ecef8ad9ca31a8372d0c353",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
account_app_id="ac60d3d0435248289d446cedd870bcf4",
@@ -673,7 +673,7 @@ async def test_raw_response_create_overload_1(self, async_client: AsyncCloudflar
@parametrize
async def test_streaming_response_create_overload_1(self, async_client: AsyncCloudflare) -> None:
- async with async_client.magic_transit.sites.sites.app_configuration.with_streaming_response.create(
+ async with async_client.magic_transit.sites.app_configuration.with_streaming_response.create(
"023e105f4ecef8ad9ca31a8372d0c353",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
account_app_id="ac60d3d0435248289d446cedd870bcf4",
@@ -689,14 +689,14 @@ async def test_streaming_response_create_overload_1(self, async_client: AsyncClo
@parametrize
async def test_path_params_create_overload_1(self, async_client: AsyncCloudflare) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
- await async_client.magic_transit.sites.sites.app_configuration.with_raw_response.create(
+ await async_client.magic_transit.sites.app_configuration.with_raw_response.create(
"023e105f4ecef8ad9ca31a8372d0c353",
account_id="",
account_app_id="ac60d3d0435248289d446cedd870bcf4",
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `site_id` but received ''"):
- await async_client.magic_transit.sites.sites.app_configuration.with_raw_response.create(
+ await async_client.magic_transit.sites.app_configuration.with_raw_response.create(
"",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
account_app_id="ac60d3d0435248289d446cedd870bcf4",
@@ -704,7 +704,7 @@ async def test_path_params_create_overload_1(self, async_client: AsyncCloudflare
@parametrize
async def test_method_create_overload_2(self, async_client: AsyncCloudflare) -> None:
- app_configuration = await async_client.magic_transit.sites.sites.app_configuration.create(
+ app_configuration = await async_client.magic_transit.sites.app_configuration.create(
"023e105f4ecef8ad9ca31a8372d0c353",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
managed_app_id="cloudflare",
@@ -713,7 +713,7 @@ async def test_method_create_overload_2(self, async_client: AsyncCloudflare) ->
@parametrize
async def test_raw_response_create_overload_2(self, async_client: AsyncCloudflare) -> None:
- response = await async_client.magic_transit.sites.sites.app_configuration.with_raw_response.create(
+ response = await async_client.magic_transit.sites.app_configuration.with_raw_response.create(
"023e105f4ecef8ad9ca31a8372d0c353",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
managed_app_id="cloudflare",
@@ -726,7 +726,7 @@ async def test_raw_response_create_overload_2(self, async_client: AsyncCloudflar
@parametrize
async def test_streaming_response_create_overload_2(self, async_client: AsyncCloudflare) -> None:
- async with async_client.magic_transit.sites.sites.app_configuration.with_streaming_response.create(
+ async with async_client.magic_transit.sites.app_configuration.with_streaming_response.create(
"023e105f4ecef8ad9ca31a8372d0c353",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
managed_app_id="cloudflare",
@@ -742,14 +742,14 @@ async def test_streaming_response_create_overload_2(self, async_client: AsyncClo
@parametrize
async def test_path_params_create_overload_2(self, async_client: AsyncCloudflare) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
- await async_client.magic_transit.sites.sites.app_configuration.with_raw_response.create(
+ await async_client.magic_transit.sites.app_configuration.with_raw_response.create(
"023e105f4ecef8ad9ca31a8372d0c353",
account_id="",
managed_app_id="cloudflare",
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `site_id` but received ''"):
- await async_client.magic_transit.sites.sites.app_configuration.with_raw_response.create(
+ await async_client.magic_transit.sites.app_configuration.with_raw_response.create(
"",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
managed_app_id="cloudflare",
@@ -757,7 +757,7 @@ async def test_path_params_create_overload_2(self, async_client: AsyncCloudflare
@parametrize
async def test_method_update_overload_1(self, async_client: AsyncCloudflare) -> None:
- app_configuration = await async_client.magic_transit.sites.sites.app_configuration.update(
+ app_configuration = await async_client.magic_transit.sites.app_configuration.update(
"023e105f4ecef8ad9ca31a8372d0c353",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
site_id="023e105f4ecef8ad9ca31a8372d0c353",
@@ -767,7 +767,7 @@ async def test_method_update_overload_1(self, async_client: AsyncCloudflare) ->
@parametrize
async def test_raw_response_update_overload_1(self, async_client: AsyncCloudflare) -> None:
- response = await async_client.magic_transit.sites.sites.app_configuration.with_raw_response.update(
+ response = await async_client.magic_transit.sites.app_configuration.with_raw_response.update(
"023e105f4ecef8ad9ca31a8372d0c353",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
site_id="023e105f4ecef8ad9ca31a8372d0c353",
@@ -781,7 +781,7 @@ async def test_raw_response_update_overload_1(self, async_client: AsyncCloudflar
@parametrize
async def test_streaming_response_update_overload_1(self, async_client: AsyncCloudflare) -> None:
- async with async_client.magic_transit.sites.sites.app_configuration.with_streaming_response.update(
+ async with async_client.magic_transit.sites.app_configuration.with_streaming_response.update(
"023e105f4ecef8ad9ca31a8372d0c353",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
site_id="023e105f4ecef8ad9ca31a8372d0c353",
@@ -798,7 +798,7 @@ async def test_streaming_response_update_overload_1(self, async_client: AsyncClo
@parametrize
async def test_path_params_update_overload_1(self, async_client: AsyncCloudflare) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
- await async_client.magic_transit.sites.sites.app_configuration.with_raw_response.update(
+ await async_client.magic_transit.sites.app_configuration.with_raw_response.update(
"023e105f4ecef8ad9ca31a8372d0c353",
account_id="",
site_id="023e105f4ecef8ad9ca31a8372d0c353",
@@ -806,7 +806,7 @@ async def test_path_params_update_overload_1(self, async_client: AsyncCloudflare
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `site_id` but received ''"):
- await async_client.magic_transit.sites.sites.app_configuration.with_raw_response.update(
+ await async_client.magic_transit.sites.app_configuration.with_raw_response.update(
"023e105f4ecef8ad9ca31a8372d0c353",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
site_id="",
@@ -814,7 +814,7 @@ async def test_path_params_update_overload_1(self, async_client: AsyncCloudflare
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `app_config_id` but received ''"):
- await async_client.magic_transit.sites.sites.app_configuration.with_raw_response.update(
+ await async_client.magic_transit.sites.app_configuration.with_raw_response.update(
"",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
site_id="023e105f4ecef8ad9ca31a8372d0c353",
@@ -823,7 +823,7 @@ async def test_path_params_update_overload_1(self, async_client: AsyncCloudflare
@parametrize
async def test_method_update_overload_2(self, async_client: AsyncCloudflare) -> None:
- app_configuration = await async_client.magic_transit.sites.sites.app_configuration.update(
+ app_configuration = await async_client.magic_transit.sites.app_configuration.update(
"023e105f4ecef8ad9ca31a8372d0c353",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
site_id="023e105f4ecef8ad9ca31a8372d0c353",
@@ -833,7 +833,7 @@ async def test_method_update_overload_2(self, async_client: AsyncCloudflare) ->
@parametrize
async def test_raw_response_update_overload_2(self, async_client: AsyncCloudflare) -> None:
- response = await async_client.magic_transit.sites.sites.app_configuration.with_raw_response.update(
+ response = await async_client.magic_transit.sites.app_configuration.with_raw_response.update(
"023e105f4ecef8ad9ca31a8372d0c353",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
site_id="023e105f4ecef8ad9ca31a8372d0c353",
@@ -847,7 +847,7 @@ async def test_raw_response_update_overload_2(self, async_client: AsyncCloudflar
@parametrize
async def test_streaming_response_update_overload_2(self, async_client: AsyncCloudflare) -> None:
- async with async_client.magic_transit.sites.sites.app_configuration.with_streaming_response.update(
+ async with async_client.magic_transit.sites.app_configuration.with_streaming_response.update(
"023e105f4ecef8ad9ca31a8372d0c353",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
site_id="023e105f4ecef8ad9ca31a8372d0c353",
@@ -864,7 +864,7 @@ async def test_streaming_response_update_overload_2(self, async_client: AsyncClo
@parametrize
async def test_path_params_update_overload_2(self, async_client: AsyncCloudflare) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
- await async_client.magic_transit.sites.sites.app_configuration.with_raw_response.update(
+ await async_client.magic_transit.sites.app_configuration.with_raw_response.update(
"023e105f4ecef8ad9ca31a8372d0c353",
account_id="",
site_id="023e105f4ecef8ad9ca31a8372d0c353",
@@ -872,7 +872,7 @@ async def test_path_params_update_overload_2(self, async_client: AsyncCloudflare
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `site_id` but received ''"):
- await async_client.magic_transit.sites.sites.app_configuration.with_raw_response.update(
+ await async_client.magic_transit.sites.app_configuration.with_raw_response.update(
"023e105f4ecef8ad9ca31a8372d0c353",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
site_id="",
@@ -880,7 +880,7 @@ async def test_path_params_update_overload_2(self, async_client: AsyncCloudflare
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `app_config_id` but received ''"):
- await async_client.magic_transit.sites.sites.app_configuration.with_raw_response.update(
+ await async_client.magic_transit.sites.app_configuration.with_raw_response.update(
"",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
site_id="023e105f4ecef8ad9ca31a8372d0c353",
@@ -889,7 +889,7 @@ async def test_path_params_update_overload_2(self, async_client: AsyncCloudflare
@parametrize
async def test_method_update_overload_3(self, async_client: AsyncCloudflare) -> None:
- app_configuration = await async_client.magic_transit.sites.sites.app_configuration.update(
+ app_configuration = await async_client.magic_transit.sites.app_configuration.update(
"023e105f4ecef8ad9ca31a8372d0c353",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
site_id="023e105f4ecef8ad9ca31a8372d0c353",
@@ -899,7 +899,7 @@ async def test_method_update_overload_3(self, async_client: AsyncCloudflare) ->
@parametrize
async def test_raw_response_update_overload_3(self, async_client: AsyncCloudflare) -> None:
- response = await async_client.magic_transit.sites.sites.app_configuration.with_raw_response.update(
+ response = await async_client.magic_transit.sites.app_configuration.with_raw_response.update(
"023e105f4ecef8ad9ca31a8372d0c353",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
site_id="023e105f4ecef8ad9ca31a8372d0c353",
@@ -913,7 +913,7 @@ async def test_raw_response_update_overload_3(self, async_client: AsyncCloudflar
@parametrize
async def test_streaming_response_update_overload_3(self, async_client: AsyncCloudflare) -> None:
- async with async_client.magic_transit.sites.sites.app_configuration.with_streaming_response.update(
+ async with async_client.magic_transit.sites.app_configuration.with_streaming_response.update(
"023e105f4ecef8ad9ca31a8372d0c353",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
site_id="023e105f4ecef8ad9ca31a8372d0c353",
@@ -930,7 +930,7 @@ async def test_streaming_response_update_overload_3(self, async_client: AsyncClo
@parametrize
async def test_path_params_update_overload_3(self, async_client: AsyncCloudflare) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
- await async_client.magic_transit.sites.sites.app_configuration.with_raw_response.update(
+ await async_client.magic_transit.sites.app_configuration.with_raw_response.update(
"023e105f4ecef8ad9ca31a8372d0c353",
account_id="",
site_id="023e105f4ecef8ad9ca31a8372d0c353",
@@ -938,7 +938,7 @@ async def test_path_params_update_overload_3(self, async_client: AsyncCloudflare
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `site_id` but received ''"):
- await async_client.magic_transit.sites.sites.app_configuration.with_raw_response.update(
+ await async_client.magic_transit.sites.app_configuration.with_raw_response.update(
"023e105f4ecef8ad9ca31a8372d0c353",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
site_id="",
@@ -946,7 +946,7 @@ async def test_path_params_update_overload_3(self, async_client: AsyncCloudflare
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `app_config_id` but received ''"):
- await async_client.magic_transit.sites.sites.app_configuration.with_raw_response.update(
+ await async_client.magic_transit.sites.app_configuration.with_raw_response.update(
"",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
site_id="023e105f4ecef8ad9ca31a8372d0c353",
@@ -955,7 +955,7 @@ async def test_path_params_update_overload_3(self, async_client: AsyncCloudflare
@parametrize
async def test_method_update_overload_4(self, async_client: AsyncCloudflare) -> None:
- app_configuration = await async_client.magic_transit.sites.sites.app_configuration.update(
+ app_configuration = await async_client.magic_transit.sites.app_configuration.update(
"023e105f4ecef8ad9ca31a8372d0c353",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
site_id="023e105f4ecef8ad9ca31a8372d0c353",
@@ -965,7 +965,7 @@ async def test_method_update_overload_4(self, async_client: AsyncCloudflare) ->
@parametrize
async def test_raw_response_update_overload_4(self, async_client: AsyncCloudflare) -> None:
- response = await async_client.magic_transit.sites.sites.app_configuration.with_raw_response.update(
+ response = await async_client.magic_transit.sites.app_configuration.with_raw_response.update(
"023e105f4ecef8ad9ca31a8372d0c353",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
site_id="023e105f4ecef8ad9ca31a8372d0c353",
@@ -979,7 +979,7 @@ async def test_raw_response_update_overload_4(self, async_client: AsyncCloudflar
@parametrize
async def test_streaming_response_update_overload_4(self, async_client: AsyncCloudflare) -> None:
- async with async_client.magic_transit.sites.sites.app_configuration.with_streaming_response.update(
+ async with async_client.magic_transit.sites.app_configuration.with_streaming_response.update(
"023e105f4ecef8ad9ca31a8372d0c353",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
site_id="023e105f4ecef8ad9ca31a8372d0c353",
@@ -996,7 +996,7 @@ async def test_streaming_response_update_overload_4(self, async_client: AsyncClo
@parametrize
async def test_path_params_update_overload_4(self, async_client: AsyncCloudflare) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
- await async_client.magic_transit.sites.sites.app_configuration.with_raw_response.update(
+ await async_client.magic_transit.sites.app_configuration.with_raw_response.update(
"023e105f4ecef8ad9ca31a8372d0c353",
account_id="",
site_id="023e105f4ecef8ad9ca31a8372d0c353",
@@ -1004,7 +1004,7 @@ async def test_path_params_update_overload_4(self, async_client: AsyncCloudflare
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `site_id` but received ''"):
- await async_client.magic_transit.sites.sites.app_configuration.with_raw_response.update(
+ await async_client.magic_transit.sites.app_configuration.with_raw_response.update(
"023e105f4ecef8ad9ca31a8372d0c353",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
site_id="",
@@ -1012,7 +1012,7 @@ async def test_path_params_update_overload_4(self, async_client: AsyncCloudflare
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `app_config_id` but received ''"):
- await async_client.magic_transit.sites.sites.app_configuration.with_raw_response.update(
+ await async_client.magic_transit.sites.app_configuration.with_raw_response.update(
"",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
site_id="023e105f4ecef8ad9ca31a8372d0c353",
@@ -1021,7 +1021,7 @@ async def test_path_params_update_overload_4(self, async_client: AsyncCloudflare
@parametrize
async def test_method_update_overload_5(self, async_client: AsyncCloudflare) -> None:
- app_configuration = await async_client.magic_transit.sites.sites.app_configuration.update(
+ app_configuration = await async_client.magic_transit.sites.app_configuration.update(
"023e105f4ecef8ad9ca31a8372d0c353",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
site_id="023e105f4ecef8ad9ca31a8372d0c353",
@@ -1032,7 +1032,7 @@ async def test_method_update_overload_5(self, async_client: AsyncCloudflare) ->
@parametrize
async def test_raw_response_update_overload_5(self, async_client: AsyncCloudflare) -> None:
- response = await async_client.magic_transit.sites.sites.app_configuration.with_raw_response.update(
+ response = await async_client.magic_transit.sites.app_configuration.with_raw_response.update(
"023e105f4ecef8ad9ca31a8372d0c353",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
site_id="023e105f4ecef8ad9ca31a8372d0c353",
@@ -1047,7 +1047,7 @@ async def test_raw_response_update_overload_5(self, async_client: AsyncCloudflar
@parametrize
async def test_streaming_response_update_overload_5(self, async_client: AsyncCloudflare) -> None:
- async with async_client.magic_transit.sites.sites.app_configuration.with_streaming_response.update(
+ async with async_client.magic_transit.sites.app_configuration.with_streaming_response.update(
"023e105f4ecef8ad9ca31a8372d0c353",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
site_id="023e105f4ecef8ad9ca31a8372d0c353",
@@ -1065,7 +1065,7 @@ async def test_streaming_response_update_overload_5(self, async_client: AsyncClo
@parametrize
async def test_path_params_update_overload_5(self, async_client: AsyncCloudflare) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
- await async_client.magic_transit.sites.sites.app_configuration.with_raw_response.update(
+ await async_client.magic_transit.sites.app_configuration.with_raw_response.update(
"023e105f4ecef8ad9ca31a8372d0c353",
account_id="",
site_id="023e105f4ecef8ad9ca31a8372d0c353",
@@ -1074,7 +1074,7 @@ async def test_path_params_update_overload_5(self, async_client: AsyncCloudflare
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `site_id` but received ''"):
- await async_client.magic_transit.sites.sites.app_configuration.with_raw_response.update(
+ await async_client.magic_transit.sites.app_configuration.with_raw_response.update(
"023e105f4ecef8ad9ca31a8372d0c353",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
site_id="",
@@ -1083,7 +1083,7 @@ async def test_path_params_update_overload_5(self, async_client: AsyncCloudflare
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `app_config_id` but received ''"):
- await async_client.magic_transit.sites.sites.app_configuration.with_raw_response.update(
+ await async_client.magic_transit.sites.app_configuration.with_raw_response.update(
"",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
site_id="023e105f4ecef8ad9ca31a8372d0c353",
@@ -1093,7 +1093,7 @@ async def test_path_params_update_overload_5(self, async_client: AsyncCloudflare
@parametrize
async def test_method_update_overload_6(self, async_client: AsyncCloudflare) -> None:
- app_configuration = await async_client.magic_transit.sites.sites.app_configuration.update(
+ app_configuration = await async_client.magic_transit.sites.app_configuration.update(
"023e105f4ecef8ad9ca31a8372d0c353",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
site_id="023e105f4ecef8ad9ca31a8372d0c353",
@@ -1104,7 +1104,7 @@ async def test_method_update_overload_6(self, async_client: AsyncCloudflare) ->
@parametrize
async def test_raw_response_update_overload_6(self, async_client: AsyncCloudflare) -> None:
- response = await async_client.magic_transit.sites.sites.app_configuration.with_raw_response.update(
+ response = await async_client.magic_transit.sites.app_configuration.with_raw_response.update(
"023e105f4ecef8ad9ca31a8372d0c353",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
site_id="023e105f4ecef8ad9ca31a8372d0c353",
@@ -1119,7 +1119,7 @@ async def test_raw_response_update_overload_6(self, async_client: AsyncCloudflar
@parametrize
async def test_streaming_response_update_overload_6(self, async_client: AsyncCloudflare) -> None:
- async with async_client.magic_transit.sites.sites.app_configuration.with_streaming_response.update(
+ async with async_client.magic_transit.sites.app_configuration.with_streaming_response.update(
"023e105f4ecef8ad9ca31a8372d0c353",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
site_id="023e105f4ecef8ad9ca31a8372d0c353",
@@ -1137,7 +1137,7 @@ async def test_streaming_response_update_overload_6(self, async_client: AsyncClo
@parametrize
async def test_path_params_update_overload_6(self, async_client: AsyncCloudflare) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
- await async_client.magic_transit.sites.sites.app_configuration.with_raw_response.update(
+ await async_client.magic_transit.sites.app_configuration.with_raw_response.update(
"023e105f4ecef8ad9ca31a8372d0c353",
account_id="",
site_id="023e105f4ecef8ad9ca31a8372d0c353",
@@ -1146,7 +1146,7 @@ async def test_path_params_update_overload_6(self, async_client: AsyncCloudflare
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `site_id` but received ''"):
- await async_client.magic_transit.sites.sites.app_configuration.with_raw_response.update(
+ await async_client.magic_transit.sites.app_configuration.with_raw_response.update(
"023e105f4ecef8ad9ca31a8372d0c353",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
site_id="",
@@ -1155,7 +1155,7 @@ async def test_path_params_update_overload_6(self, async_client: AsyncCloudflare
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `app_config_id` but received ''"):
- await async_client.magic_transit.sites.sites.app_configuration.with_raw_response.update(
+ await async_client.magic_transit.sites.app_configuration.with_raw_response.update(
"",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
site_id="023e105f4ecef8ad9ca31a8372d0c353",
@@ -1165,7 +1165,7 @@ async def test_path_params_update_overload_6(self, async_client: AsyncCloudflare
@parametrize
async def test_method_list(self, async_client: AsyncCloudflare) -> None:
- app_configuration = await async_client.magic_transit.sites.sites.app_configuration.list(
+ app_configuration = await async_client.magic_transit.sites.app_configuration.list(
"023e105f4ecef8ad9ca31a8372d0c353",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
)
@@ -1173,7 +1173,7 @@ async def test_method_list(self, async_client: AsyncCloudflare) -> None:
@parametrize
async def test_raw_response_list(self, async_client: AsyncCloudflare) -> None:
- response = await async_client.magic_transit.sites.sites.app_configuration.with_raw_response.list(
+ response = await async_client.magic_transit.sites.app_configuration.with_raw_response.list(
"023e105f4ecef8ad9ca31a8372d0c353",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
)
@@ -1185,7 +1185,7 @@ async def test_raw_response_list(self, async_client: AsyncCloudflare) -> None:
@parametrize
async def test_streaming_response_list(self, async_client: AsyncCloudflare) -> None:
- async with async_client.magic_transit.sites.sites.app_configuration.with_streaming_response.list(
+ async with async_client.magic_transit.sites.app_configuration.with_streaming_response.list(
"023e105f4ecef8ad9ca31a8372d0c353",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
) as response:
@@ -1200,20 +1200,20 @@ async def test_streaming_response_list(self, async_client: AsyncCloudflare) -> N
@parametrize
async def test_path_params_list(self, async_client: AsyncCloudflare) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
- await async_client.magic_transit.sites.sites.app_configuration.with_raw_response.list(
+ await async_client.magic_transit.sites.app_configuration.with_raw_response.list(
"023e105f4ecef8ad9ca31a8372d0c353",
account_id="",
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `site_id` but received ''"):
- await async_client.magic_transit.sites.sites.app_configuration.with_raw_response.list(
+ await async_client.magic_transit.sites.app_configuration.with_raw_response.list(
"",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
)
@parametrize
async def test_method_delete(self, async_client: AsyncCloudflare) -> None:
- app_configuration = await async_client.magic_transit.sites.sites.app_configuration.delete(
+ app_configuration = await async_client.magic_transit.sites.app_configuration.delete(
"023e105f4ecef8ad9ca31a8372d0c353",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
site_id="023e105f4ecef8ad9ca31a8372d0c353",
@@ -1222,7 +1222,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.magic_transit.sites.sites.app_configuration.with_raw_response.delete(
+ response = await async_client.magic_transit.sites.app_configuration.with_raw_response.delete(
"023e105f4ecef8ad9ca31a8372d0c353",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
site_id="023e105f4ecef8ad9ca31a8372d0c353",
@@ -1235,7 +1235,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.magic_transit.sites.sites.app_configuration.with_streaming_response.delete(
+ async with async_client.magic_transit.sites.app_configuration.with_streaming_response.delete(
"023e105f4ecef8ad9ca31a8372d0c353",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
site_id="023e105f4ecef8ad9ca31a8372d0c353",
@@ -1251,21 +1251,21 @@ async def test_streaming_response_delete(self, async_client: AsyncCloudflare) ->
@parametrize
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.magic_transit.sites.sites.app_configuration.with_raw_response.delete(
+ await async_client.magic_transit.sites.app_configuration.with_raw_response.delete(
"023e105f4ecef8ad9ca31a8372d0c353",
account_id="",
site_id="023e105f4ecef8ad9ca31a8372d0c353",
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `site_id` but received ''"):
- await async_client.magic_transit.sites.sites.app_configuration.with_raw_response.delete(
+ await async_client.magic_transit.sites.app_configuration.with_raw_response.delete(
"023e105f4ecef8ad9ca31a8372d0c353",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
site_id="",
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `app_config_id` but received ''"):
- await async_client.magic_transit.sites.sites.app_configuration.with_raw_response.delete(
+ await async_client.magic_transit.sites.app_configuration.with_raw_response.delete(
"",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
site_id="023e105f4ecef8ad9ca31a8372d0c353",