diff --git a/api.md b/api.md
index 8fba3b38d71..acbbc6bb14b 100644
--- a/api.md
+++ b/api.md
@@ -1682,11 +1682,11 @@ from cloudflare.types.dns import (
Methods:
-- client.dns.firewall.create(\*, account_id, \*\*params) -> Firewall
-- client.dns.firewall.list(\*, account_id, \*\*params) -> SyncV4PagePaginationArray[Firewall]
+- client.dns.firewall.create(\*, account_id, \*\*params) -> Firewall
+- client.dns.firewall.list(\*, account_id, \*\*params) -> SyncV4PagePaginationArray[Firewall]
- client.dns.firewall.delete(dns_firewall_id, \*, account_id, \*\*params) -> FirewallDeleteResponse
-- client.dns.firewall.edit(dns_firewall_id, \*, account_id, \*\*params) -> Firewall
-- client.dns.firewall.get(dns_firewall_id, \*, account_id) -> Firewall
+- client.dns.firewall.edit(dns_firewall_id, \*, account_id, \*\*params) -> Firewall
+- client.dns.firewall.get(dns_firewall_id, \*, account_id) -> Firewall
### Analytics
@@ -3523,17 +3523,17 @@ Methods:
# Intel
-## ASNResource
+## ASN
Types:
```python
-from cloudflare.types.intel import ASN
+from cloudflare.types.intel import IntelASN
```
Methods:
-- client.intel.asn.get(asn, \*, account_id) -> ASN
+- client.intel.asn.get(asn, \*, account_id) -> IntelASN
### Subnets
@@ -4420,7 +4420,7 @@ from cloudflare.types.stream.captions.language import VttGetResponse
Methods:
-- client.stream.captions.language.vtt.get(language, \*, account_id, identifier, \*\*params) -> str
+- client.stream.captions.language.vtt.get(language, \*, account_id, identifier) -> str
## Downloads
diff --git a/src/cloudflare/resources/dns/firewall/firewall.py b/src/cloudflare/resources/dns/firewall/firewall.py
index 5f163be48e9..17b1335c9b3 100644
--- a/src/cloudflare/resources/dns/firewall/firewall.py
+++ b/src/cloudflare/resources/dns/firewall/firewall.py
@@ -29,7 +29,6 @@
)
from ...._wrappers import ResultWrapper
from ....types.dns import (
- Firewall,
FirewallIPsParam,
UpstreamIPsParam,
AttackMitigationParam,
@@ -45,6 +44,7 @@
make_request_options,
)
from .analytics.analytics import Analytics, AsyncAnalytics
+from ....types.dns.firewall import Firewall
__all__ = ["FirewallResource", "AsyncFirewallResource"]
diff --git a/src/cloudflare/resources/intel/__init__.py b/src/cloudflare/resources/intel/__init__.py
index 8c3c0156d55..4b66b0e2062 100644
--- a/src/cloudflare/resources/intel/__init__.py
+++ b/src/cloudflare/resources/intel/__init__.py
@@ -1,12 +1,12 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
from .asn import (
- ASNResource,
- AsyncASNResource,
- ASNResourceWithRawResponse,
- AsyncASNResourceWithRawResponse,
- ASNResourceWithStreamingResponse,
- AsyncASNResourceWithStreamingResponse,
+ ASN,
+ AsyncASN,
+ ASNWithRawResponse,
+ AsyncASNWithRawResponse,
+ ASNWithStreamingResponse,
+ AsyncASNWithStreamingResponse,
)
from .dns import (
DNS,
@@ -98,12 +98,12 @@
)
__all__ = [
- "ASNResource",
- "AsyncASNResource",
- "ASNResourceWithRawResponse",
- "AsyncASNResourceWithRawResponse",
- "ASNResourceWithStreamingResponse",
- "AsyncASNResourceWithStreamingResponse",
+ "ASN",
+ "AsyncASN",
+ "ASNWithRawResponse",
+ "AsyncASNWithRawResponse",
+ "ASNWithStreamingResponse",
+ "AsyncASNWithStreamingResponse",
"DNS",
"AsyncDNS",
"DNSWithRawResponse",
diff --git a/src/cloudflare/resources/intel/asn/__init__.py b/src/cloudflare/resources/intel/asn/__init__.py
index 6332d501529..3992bce51a8 100644
--- a/src/cloudflare/resources/intel/asn/__init__.py
+++ b/src/cloudflare/resources/intel/asn/__init__.py
@@ -1,12 +1,12 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
from .asn import (
- ASNResource,
- AsyncASNResource,
- ASNResourceWithRawResponse,
- AsyncASNResourceWithRawResponse,
- ASNResourceWithStreamingResponse,
- AsyncASNResourceWithStreamingResponse,
+ ASN,
+ AsyncASN,
+ ASNWithRawResponse,
+ AsyncASNWithRawResponse,
+ ASNWithStreamingResponse,
+ AsyncASNWithStreamingResponse,
)
from .subnets import (
Subnets,
@@ -24,10 +24,10 @@
"AsyncSubnetsWithRawResponse",
"SubnetsWithStreamingResponse",
"AsyncSubnetsWithStreamingResponse",
- "ASNResource",
- "AsyncASNResource",
- "ASNResourceWithRawResponse",
- "AsyncASNResourceWithRawResponse",
- "ASNResourceWithStreamingResponse",
- "AsyncASNResourceWithStreamingResponse",
+ "ASN",
+ "AsyncASN",
+ "ASNWithRawResponse",
+ "AsyncASNWithRawResponse",
+ "ASNWithStreamingResponse",
+ "AsyncASNWithStreamingResponse",
]
diff --git a/src/cloudflare/resources/intel/asn/asn.py b/src/cloudflare/resources/intel/asn/asn.py
index 91491f7e070..c5adda23278 100644
--- a/src/cloudflare/resources/intel/asn/asn.py
+++ b/src/cloudflare/resources/intel/asn/asn.py
@@ -24,30 +24,30 @@
async_to_streamed_response_wrapper,
)
from ...._wrappers import ResultWrapper
-from ....types.intel import ASN
+from ....types.intel import IntelASN
from ...._base_client import (
make_request_options,
)
-__all__ = ["ASNResource", "AsyncASNResource"]
+__all__ = ["ASN", "AsyncASN"]
-class ASNResource(SyncAPIResource):
+class ASN(SyncAPIResource):
@cached_property
def subnets(self) -> Subnets:
return Subnets(self._client)
@cached_property
- def with_raw_response(self) -> ASNResourceWithRawResponse:
- return ASNResourceWithRawResponse(self)
+ def with_raw_response(self) -> ASNWithRawResponse:
+ return ASNWithRawResponse(self)
@cached_property
- def with_streaming_response(self) -> ASNResourceWithStreamingResponse:
- return ASNResourceWithStreamingResponse(self)
+ def with_streaming_response(self) -> ASNWithStreamingResponse:
+ return ASNWithStreamingResponse(self)
def get(
self,
- asn: ASN,
+ asn: IntelASN,
*,
account_id: str,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -56,7 +56,7 @@ def get(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> ASN:
+ ) -> IntelASN:
"""
Get ASN Overview
@@ -80,28 +80,28 @@ def get(
extra_query=extra_query,
extra_body=extra_body,
timeout=timeout,
- post_parser=ResultWrapper[ASN]._unwrapper,
+ post_parser=ResultWrapper[IntelASN]._unwrapper,
),
- cast_to=cast(Type[ASN], ResultWrapper[int]),
+ cast_to=cast(Type[IntelASN], ResultWrapper[int]),
)
-class AsyncASNResource(AsyncAPIResource):
+class AsyncASN(AsyncAPIResource):
@cached_property
def subnets(self) -> AsyncSubnets:
return AsyncSubnets(self._client)
@cached_property
- def with_raw_response(self) -> AsyncASNResourceWithRawResponse:
- return AsyncASNResourceWithRawResponse(self)
+ def with_raw_response(self) -> AsyncASNWithRawResponse:
+ return AsyncASNWithRawResponse(self)
@cached_property
- def with_streaming_response(self) -> AsyncASNResourceWithStreamingResponse:
- return AsyncASNResourceWithStreamingResponse(self)
+ def with_streaming_response(self) -> AsyncASNWithStreamingResponse:
+ return AsyncASNWithStreamingResponse(self)
async def get(
self,
- asn: ASN,
+ asn: IntelASN,
*,
account_id: str,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -110,7 +110,7 @@ async def get(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> ASN:
+ ) -> IntelASN:
"""
Get ASN Overview
@@ -134,14 +134,14 @@ async def get(
extra_query=extra_query,
extra_body=extra_body,
timeout=timeout,
- post_parser=ResultWrapper[ASN]._unwrapper,
+ post_parser=ResultWrapper[IntelASN]._unwrapper,
),
- cast_to=cast(Type[ASN], ResultWrapper[int]),
+ cast_to=cast(Type[IntelASN], ResultWrapper[int]),
)
-class ASNResourceWithRawResponse:
- def __init__(self, asn: ASNResource) -> None:
+class ASNWithRawResponse:
+ def __init__(self, asn: ASN) -> None:
self._asn = asn
self.get = to_raw_response_wrapper(
@@ -153,8 +153,8 @@ def subnets(self) -> SubnetsWithRawResponse:
return SubnetsWithRawResponse(self._asn.subnets)
-class AsyncASNResourceWithRawResponse:
- def __init__(self, asn: AsyncASNResource) -> None:
+class AsyncASNWithRawResponse:
+ def __init__(self, asn: AsyncASN) -> None:
self._asn = asn
self.get = async_to_raw_response_wrapper(
@@ -166,8 +166,8 @@ def subnets(self) -> AsyncSubnetsWithRawResponse:
return AsyncSubnetsWithRawResponse(self._asn.subnets)
-class ASNResourceWithStreamingResponse:
- def __init__(self, asn: ASNResource) -> None:
+class ASNWithStreamingResponse:
+ def __init__(self, asn: ASN) -> None:
self._asn = asn
self.get = to_streamed_response_wrapper(
@@ -179,8 +179,8 @@ def subnets(self) -> SubnetsWithStreamingResponse:
return SubnetsWithStreamingResponse(self._asn.subnets)
-class AsyncASNResourceWithStreamingResponse:
- def __init__(self, asn: AsyncASNResource) -> None:
+class AsyncASNWithStreamingResponse:
+ def __init__(self, asn: AsyncASN) -> None:
self._asn = asn
self.get = async_to_streamed_response_wrapper(
diff --git a/src/cloudflare/resources/intel/asn/subnets.py b/src/cloudflare/resources/intel/asn/subnets.py
index 42426f5f4f3..6e47fc5da93 100644
--- a/src/cloudflare/resources/intel/asn/subnets.py
+++ b/src/cloudflare/resources/intel/asn/subnets.py
@@ -13,7 +13,7 @@
async_to_raw_response_wrapper,
async_to_streamed_response_wrapper,
)
-from ....types.intel import ASN
+from ....types.intel import IntelASN
from ...._base_client import (
make_request_options,
)
@@ -33,7 +33,7 @@ def with_streaming_response(self) -> SubnetsWithStreamingResponse:
def get(
self,
- asn: ASN,
+ asn: IntelASN,
*,
account_id: str,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -79,7 +79,7 @@ def with_streaming_response(self) -> AsyncSubnetsWithStreamingResponse:
async def get(
self,
- asn: ASN,
+ asn: IntelASN,
*,
account_id: str,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
diff --git a/src/cloudflare/resources/intel/intel.py b/src/cloudflare/resources/intel/intel.py
index e44e4e274ff..136453388e7 100644
--- a/src/cloudflare/resources/intel/intel.py
+++ b/src/cloudflare/resources/intel/intel.py
@@ -3,12 +3,12 @@
from __future__ import annotations
from .asn import (
- ASNResource,
- AsyncASNResource,
- ASNResourceWithRawResponse,
- AsyncASNResourceWithRawResponse,
- ASNResourceWithStreamingResponse,
- AsyncASNResourceWithStreamingResponse,
+ ASN,
+ AsyncASN,
+ ASNWithRawResponse,
+ AsyncASNWithRawResponse,
+ ASNWithStreamingResponse,
+ AsyncASNWithStreamingResponse,
)
from .dns import (
DNS,
@@ -34,7 +34,7 @@
WhoisWithStreamingResponse,
AsyncWhoisWithStreamingResponse,
)
-from .asn.asn import ASNResource, AsyncASNResource
+from .asn.asn import ASN, AsyncASN
from .domains import (
Domains,
AsyncDomains,
@@ -102,8 +102,8 @@
class Intel(SyncAPIResource):
@cached_property
- def asn(self) -> ASNResource:
- return ASNResource(self._client)
+ def asn(self) -> ASN:
+ return ASN(self._client)
@cached_property
def dns(self) -> DNS:
@@ -156,8 +156,8 @@ def with_streaming_response(self) -> IntelWithStreamingResponse:
class AsyncIntel(AsyncAPIResource):
@cached_property
- def asn(self) -> AsyncASNResource:
- return AsyncASNResource(self._client)
+ def asn(self) -> AsyncASN:
+ return AsyncASN(self._client)
@cached_property
def dns(self) -> AsyncDNS:
@@ -213,8 +213,8 @@ def __init__(self, intel: Intel) -> None:
self._intel = intel
@cached_property
- def asn(self) -> ASNResourceWithRawResponse:
- return ASNResourceWithRawResponse(self._intel.asn)
+ def asn(self) -> ASNWithRawResponse:
+ return ASNWithRawResponse(self._intel.asn)
@cached_property
def dns(self) -> DNSWithRawResponse:
@@ -262,8 +262,8 @@ def __init__(self, intel: AsyncIntel) -> None:
self._intel = intel
@cached_property
- def asn(self) -> AsyncASNResourceWithRawResponse:
- return AsyncASNResourceWithRawResponse(self._intel.asn)
+ def asn(self) -> AsyncASNWithRawResponse:
+ return AsyncASNWithRawResponse(self._intel.asn)
@cached_property
def dns(self) -> AsyncDNSWithRawResponse:
@@ -311,8 +311,8 @@ def __init__(self, intel: Intel) -> None:
self._intel = intel
@cached_property
- def asn(self) -> ASNResourceWithStreamingResponse:
- return ASNResourceWithStreamingResponse(self._intel.asn)
+ def asn(self) -> ASNWithStreamingResponse:
+ return ASNWithStreamingResponse(self._intel.asn)
@cached_property
def dns(self) -> DNSWithStreamingResponse:
@@ -360,8 +360,8 @@ def __init__(self, intel: AsyncIntel) -> None:
self._intel = intel
@cached_property
- def asn(self) -> AsyncASNResourceWithStreamingResponse:
- return AsyncASNResourceWithStreamingResponse(self._intel.asn)
+ def asn(self) -> AsyncASNWithStreamingResponse:
+ return AsyncASNWithStreamingResponse(self._intel.asn)
@cached_property
def dns(self) -> AsyncDNSWithStreamingResponse:
diff --git a/src/cloudflare/resources/stream/captions/language/vtt.py b/src/cloudflare/resources/stream/captions/language/vtt.py
index cbf4bbcc04d..28472ef57ef 100644
--- a/src/cloudflare/resources/stream/captions/language/vtt.py
+++ b/src/cloudflare/resources/stream/captions/language/vtt.py
@@ -35,7 +35,6 @@ def get(
*,
account_id: str,
identifier: str,
- body: object,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -92,7 +91,6 @@ async def get(
*,
account_id: str,
identifier: str,
- body: object,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
diff --git a/src/cloudflare/types/intel/__init__.py b/src/cloudflare/types/intel/__init__.py
index 0c5ee90a96a..cf0facbc1d0 100644
--- a/src/cloudflare/types/intel/__init__.py
+++ b/src/cloudflare/types/intel/__init__.py
@@ -3,13 +3,13 @@
from __future__ import annotations
from .ip import IP as IP
-from .asn import ASN as ASN
from .dns import DNS as DNS
from .whois import Whois as Whois
from .domain import Domain as Domain
from .ip_list import IPList as IPList
from .sinkhole import Sinkhole as Sinkhole
from .dns_param import DNSParam as DNSParam
+from .intel_asn import IntelASN as IntelASN
from .ip_get_params import IPGetParams as IPGetParams
from .domain_history import DomainHistory as DomainHistory
from .dns_list_params import DNSListParams as DNSListParams
diff --git a/src/cloudflare/types/intel/asn/__init__.py b/src/cloudflare/types/intel/asn/__init__.py
index f13f192c8e5..4ea670523ed 100644
--- a/src/cloudflare/types/intel/asn/__init__.py
+++ b/src/cloudflare/types/intel/asn/__init__.py
@@ -2,5 +2,4 @@
from __future__ import annotations
-from .asn import ASN as ASN
from .subnet_get_response import SubnetGetResponse as SubnetGetResponse
diff --git a/src/cloudflare/types/intel/asn/subnet_get_response.py b/src/cloudflare/types/intel/asn/subnet_get_response.py
index 5b81210a143..cb54964edf4 100644
--- a/src/cloudflare/types/intel/asn/subnet_get_response.py
+++ b/src/cloudflare/types/intel/asn/subnet_get_response.py
@@ -2,15 +2,14 @@
from typing import List, Optional
-from cloudflare.types.intel import ASN
-
from ...._models import BaseModel
+from ..intel_asn import IntelASN
__all__ = ["SubnetGetResponse"]
class SubnetGetResponse(BaseModel):
- asn: Optional[ASN] = None
+ asn: Optional[IntelASN] = None
count: Optional[float] = None
"""Total results returned based on your search parameters."""
diff --git a/src/cloudflare/types/intel/asn/asn.py b/src/cloudflare/types/intel/intel_asn.py
similarity index 70%
rename from src/cloudflare/types/intel/asn/asn.py
rename to src/cloudflare/types/intel/intel_asn.py
index 6604efb8690..dece910c602 100644
--- a/src/cloudflare/types/intel/asn/asn.py
+++ b/src/cloudflare/types/intel/intel_asn.py
@@ -1,6 +1,6 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
-__all__ = ["ASN"]
+__all__ = ["IntelASN"]
-ASN = int
+IntelASN = int
diff --git a/src/cloudflare/types/secondary_dns/incoming.py b/src/cloudflare/types/secondary_dns/incoming.py
new file mode 100644
index 00000000000..026e5c4c043
--- /dev/null
+++ b/src/cloudflare/types/secondary_dns/incoming.py
@@ -0,0 +1,35 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from typing import List, Optional
+
+from ..._models import BaseModel
+
+__all__ = ["Incoming"]
+
+
+class Incoming(BaseModel):
+ id: Optional[str] = None
+
+ auto_refresh_seconds: Optional[float] = None
+ """
+ How often should a secondary zone auto refresh regardless of DNS NOTIFY. Not
+ applicable for primary zones.
+ """
+
+ checked_time: Optional[str] = None
+ """The time for a specific event."""
+
+ created_time: Optional[str] = None
+ """The time for a specific event."""
+
+ modified_time: Optional[str] = None
+ """The time for a specific event."""
+
+ name: Optional[str] = None
+ """Zone name."""
+
+ peers: Optional[List[object]] = None
+ """A list of peer tags."""
+
+ soa_serial: Optional[float] = None
+ """The serial number of the SOA for the given zone."""
diff --git a/src/cloudflare/types/stream/captions/language/__init__.py b/src/cloudflare/types/stream/captions/language/__init__.py
index 75348af4f88..066985970d6 100644
--- a/src/cloudflare/types/stream/captions/language/__init__.py
+++ b/src/cloudflare/types/stream/captions/language/__init__.py
@@ -2,5 +2,4 @@
from __future__ import annotations
-from .vtt_get_params import VttGetParams as VttGetParams
from .vtt_get_response import VttGetResponse as VttGetResponse
diff --git a/src/cloudflare/types/stream/captions/language/vtt_get_params.py b/src/cloudflare/types/stream/captions/language/vtt_get_params.py
deleted file mode 100644
index 3a9b6648aea..00000000000
--- a/src/cloudflare/types/stream/captions/language/vtt_get_params.py
+++ /dev/null
@@ -1,17 +0,0 @@
-# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
-
-from __future__ import annotations
-
-from typing_extensions import Required, TypedDict
-
-__all__ = ["VttGetParams"]
-
-
-class VttGetParams(TypedDict, total=False):
- account_id: Required[str]
- """Identifier"""
-
- identifier: Required[str]
- """A Cloudflare-generated unique identifier for a media item."""
-
- body: Required[object]
diff --git a/tests/api_resources/dns/test_firewall.py b/tests/api_resources/dns/test_firewall.py
index e8f10dc1fae..27ba16285fd 100644
--- a/tests/api_resources/dns/test_firewall.py
+++ b/tests/api_resources/dns/test_firewall.py
@@ -10,10 +10,10 @@
from cloudflare import Cloudflare, AsyncCloudflare
from tests.utils import assert_matches_type
from cloudflare.types.dns import (
- Firewall,
FirewallDeleteResponse,
)
from cloudflare.pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray
+from cloudflare.types.dns.firewall import Firewall
base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010")
diff --git a/tests/api_resources/intel/test_asn.py b/tests/api_resources/intel/test_asn.py
index b2c1b70f746..75191ec2eb7 100644
--- a/tests/api_resources/intel/test_asn.py
+++ b/tests/api_resources/intel/test_asn.py
@@ -9,7 +9,7 @@
from cloudflare import Cloudflare, AsyncCloudflare
from tests.utils import assert_matches_type
-from cloudflare.types.intel import ASN
+from cloudflare.types.intel import IntelASN
base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010")
@@ -24,7 +24,7 @@ def test_method_get(self, client: Cloudflare) -> None:
0,
account_id="023e105f4ecef8ad9ca31a8372d0c353",
)
- assert_matches_type(ASN, asn, path=["response"])
+ assert_matches_type(IntelASN, asn, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -37,7 +37,7 @@ def test_raw_response_get(self, client: Cloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
asn = response.parse()
- assert_matches_type(ASN, asn, path=["response"])
+ assert_matches_type(IntelASN, asn, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -50,7 +50,7 @@ def test_streaming_response_get(self, client: Cloudflare) -> None:
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
asn = response.parse()
- assert_matches_type(ASN, asn, path=["response"])
+ assert_matches_type(IntelASN, asn, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -74,7 +74,7 @@ async def test_method_get(self, async_client: AsyncCloudflare) -> None:
0,
account_id="023e105f4ecef8ad9ca31a8372d0c353",
)
- assert_matches_type(ASN, asn, path=["response"])
+ assert_matches_type(IntelASN, asn, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -87,7 +87,7 @@ async def test_raw_response_get(self, async_client: AsyncCloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
asn = await response.parse()
- assert_matches_type(ASN, asn, path=["response"])
+ assert_matches_type(IntelASN, asn, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -100,7 +100,7 @@ async def test_streaming_response_get(self, async_client: AsyncCloudflare) -> No
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
asn = await response.parse()
- assert_matches_type(ASN, asn, path=["response"])
+ assert_matches_type(IntelASN, asn, path=["response"])
assert cast(Any, response.is_closed) is True
diff --git a/tests/api_resources/stream/captions/language/test_vtt.py b/tests/api_resources/stream/captions/language/test_vtt.py
index f8ec81a3422..aeb7c403fee 100644
--- a/tests/api_resources/stream/captions/language/test_vtt.py
+++ b/tests/api_resources/stream/captions/language/test_vtt.py
@@ -23,7 +23,6 @@ def test_method_get(self, client: Cloudflare) -> None:
"tr",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
identifier="ea95132c15732412d22c1476fa83f27a",
- body={},
)
assert_matches_type(str, vtt, path=["response"])
@@ -34,7 +33,6 @@ def test_raw_response_get(self, client: Cloudflare) -> None:
"tr",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
identifier="ea95132c15732412d22c1476fa83f27a",
- body={},
)
assert response.is_closed is True
@@ -49,7 +47,6 @@ def test_streaming_response_get(self, client: Cloudflare) -> None:
"tr",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
identifier="ea95132c15732412d22c1476fa83f27a",
- body={},
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -67,7 +64,6 @@ def test_path_params_get(self, client: Cloudflare) -> None:
"tr",
account_id="",
identifier="ea95132c15732412d22c1476fa83f27a",
- body={},
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `identifier` but received ''"):
@@ -75,7 +71,6 @@ def test_path_params_get(self, client: Cloudflare) -> None:
"tr",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
identifier="",
- body={},
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `language` but received ''"):
@@ -83,7 +78,6 @@ def test_path_params_get(self, client: Cloudflare) -> None:
"",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
identifier="ea95132c15732412d22c1476fa83f27a",
- body={},
)
@@ -97,7 +91,6 @@ async def test_method_get(self, async_client: AsyncCloudflare) -> None:
"tr",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
identifier="ea95132c15732412d22c1476fa83f27a",
- body={},
)
assert_matches_type(str, vtt, path=["response"])
@@ -108,7 +101,6 @@ async def test_raw_response_get(self, async_client: AsyncCloudflare) -> None:
"tr",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
identifier="ea95132c15732412d22c1476fa83f27a",
- body={},
)
assert response.is_closed is True
@@ -123,7 +115,6 @@ async def test_streaming_response_get(self, async_client: AsyncCloudflare) -> No
"tr",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
identifier="ea95132c15732412d22c1476fa83f27a",
- body={},
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -141,7 +132,6 @@ async def test_path_params_get(self, async_client: AsyncCloudflare) -> None:
"tr",
account_id="",
identifier="ea95132c15732412d22c1476fa83f27a",
- body={},
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `identifier` but received ''"):
@@ -149,7 +139,6 @@ async def test_path_params_get(self, async_client: AsyncCloudflare) -> None:
"tr",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
identifier="",
- body={},
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `language` but received ''"):
@@ -157,5 +146,4 @@ async def test_path_params_get(self, async_client: AsyncCloudflare) -> None:
"",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
identifier="ea95132c15732412d22c1476fa83f27a",
- body={},
)