diff --git a/api.md b/api.md index c96e4deaa04..8f43fddb224 100644 --- a/api.md +++ b/api.md @@ -3951,7 +3951,7 @@ Methods: # MagicNetworkMonitoring -## VpcFlows +## VPCFlows ### Tokens @@ -8942,7 +8942,7 @@ Methods: - client.browsing_rendering.content.create(account_id, \*\*params) -> str -## Pdf +## PDF Methods: diff --git a/src/cloudflare/resources/browsing_rendering/__init__.py b/src/cloudflare/resources/browsing_rendering/__init__.py index 535de83381a..582d62fb1ca 100644 --- a/src/cloudflare/resources/browsing_rendering/__init__.py +++ b/src/cloudflare/resources/browsing_rendering/__init__.py @@ -1,12 +1,12 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from .pdf import ( - PdfResource, - AsyncPdfResource, - PdfResourceWithRawResponse, - AsyncPdfResourceWithRawResponse, - PdfResourceWithStreamingResponse, - AsyncPdfResourceWithStreamingResponse, + PDFResource, + AsyncPDFResource, + PDFResourceWithRawResponse, + AsyncPDFResourceWithRawResponse, + PDFResourceWithStreamingResponse, + AsyncPDFResourceWithStreamingResponse, ) from .scrape import ( ScrapeResource, @@ -56,12 +56,12 @@ "AsyncContentResourceWithRawResponse", "ContentResourceWithStreamingResponse", "AsyncContentResourceWithStreamingResponse", - "PdfResource", - "AsyncPdfResource", - "PdfResourceWithRawResponse", - "AsyncPdfResourceWithRawResponse", - "PdfResourceWithStreamingResponse", - "AsyncPdfResourceWithStreamingResponse", + "PDFResource", + "AsyncPDFResource", + "PDFResourceWithRawResponse", + "AsyncPDFResourceWithRawResponse", + "PDFResourceWithStreamingResponse", + "AsyncPDFResourceWithStreamingResponse", "ScrapeResource", "AsyncScrapeResource", "ScrapeResourceWithRawResponse", diff --git a/src/cloudflare/resources/browsing_rendering/browsing_rendering.py b/src/cloudflare/resources/browsing_rendering/browsing_rendering.py index 3291d3a8ed5..d0bccb88952 100644 --- a/src/cloudflare/resources/browsing_rendering/browsing_rendering.py +++ b/src/cloudflare/resources/browsing_rendering/browsing_rendering.py @@ -3,12 +3,12 @@ from __future__ import annotations from .pdf import ( - PdfResource, - AsyncPdfResource, - PdfResourceWithRawResponse, - AsyncPdfResourceWithRawResponse, - PdfResourceWithStreamingResponse, - AsyncPdfResourceWithStreamingResponse, + PDFResource, + AsyncPDFResource, + PDFResourceWithRawResponse, + AsyncPDFResourceWithRawResponse, + PDFResourceWithStreamingResponse, + AsyncPDFResourceWithStreamingResponse, ) from .scrape import ( ScrapeResource, @@ -54,8 +54,8 @@ def content(self) -> ContentResource: return ContentResource(self._client) @cached_property - def pdf(self) -> PdfResource: - return PdfResource(self._client) + def pdf(self) -> PDFResource: + return PDFResource(self._client) @cached_property def scrape(self) -> ScrapeResource: @@ -95,8 +95,8 @@ def content(self) -> AsyncContentResource: return AsyncContentResource(self._client) @cached_property - def pdf(self) -> AsyncPdfResource: - return AsyncPdfResource(self._client) + def pdf(self) -> AsyncPDFResource: + return AsyncPDFResource(self._client) @cached_property def scrape(self) -> AsyncScrapeResource: @@ -139,8 +139,8 @@ def content(self) -> ContentResourceWithRawResponse: return ContentResourceWithRawResponse(self._browsing_rendering.content) @cached_property - def pdf(self) -> PdfResourceWithRawResponse: - return PdfResourceWithRawResponse(self._browsing_rendering.pdf) + def pdf(self) -> PDFResourceWithRawResponse: + return PDFResourceWithRawResponse(self._browsing_rendering.pdf) @cached_property def scrape(self) -> ScrapeResourceWithRawResponse: @@ -164,8 +164,8 @@ def content(self) -> AsyncContentResourceWithRawResponse: return AsyncContentResourceWithRawResponse(self._browsing_rendering.content) @cached_property - def pdf(self) -> AsyncPdfResourceWithRawResponse: - return AsyncPdfResourceWithRawResponse(self._browsing_rendering.pdf) + def pdf(self) -> AsyncPDFResourceWithRawResponse: + return AsyncPDFResourceWithRawResponse(self._browsing_rendering.pdf) @cached_property def scrape(self) -> AsyncScrapeResourceWithRawResponse: @@ -189,8 +189,8 @@ def content(self) -> ContentResourceWithStreamingResponse: return ContentResourceWithStreamingResponse(self._browsing_rendering.content) @cached_property - def pdf(self) -> PdfResourceWithStreamingResponse: - return PdfResourceWithStreamingResponse(self._browsing_rendering.pdf) + def pdf(self) -> PDFResourceWithStreamingResponse: + return PDFResourceWithStreamingResponse(self._browsing_rendering.pdf) @cached_property def scrape(self) -> ScrapeResourceWithStreamingResponse: @@ -214,8 +214,8 @@ def content(self) -> AsyncContentResourceWithStreamingResponse: return AsyncContentResourceWithStreamingResponse(self._browsing_rendering.content) @cached_property - def pdf(self) -> AsyncPdfResourceWithStreamingResponse: - return AsyncPdfResourceWithStreamingResponse(self._browsing_rendering.pdf) + def pdf(self) -> AsyncPDFResourceWithStreamingResponse: + return AsyncPDFResourceWithStreamingResponse(self._browsing_rendering.pdf) @cached_property def scrape(self) -> AsyncScrapeResourceWithStreamingResponse: diff --git a/src/cloudflare/resources/browsing_rendering/pdf.py b/src/cloudflare/resources/browsing_rendering/pdf.py index 6fc1bf51521..d1b1129cb10 100644 --- a/src/cloudflare/resources/browsing_rendering/pdf.py +++ b/src/cloudflare/resources/browsing_rendering/pdf.py @@ -27,28 +27,28 @@ from ..._base_client import make_request_options from ...types.browsing_rendering import pdf_create_params -__all__ = ["PdfResource", "AsyncPdfResource"] +__all__ = ["PDFResource", "AsyncPDFResource"] -class PdfResource(SyncAPIResource): +class PDFResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> PdfResourceWithRawResponse: + def with_raw_response(self) -> PDFResourceWithRawResponse: """ This property can be used as a prefix for any HTTP method call to return the raw response object instead of the parsed content. For more information, see https://www.github.com/cloudflare/cloudflare-python#accessing-raw-response-data-eg-headers """ - return PdfResourceWithRawResponse(self) + return PDFResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> PdfResourceWithStreamingResponse: + def with_streaming_response(self) -> PDFResourceWithStreamingResponse: """ An alternative to `.with_raw_response` that doesn't eagerly read the response body. For more information, see https://www.github.com/cloudflare/cloudflare-python#with_streaming_response """ - return PdfResourceWithStreamingResponse(self) + return PDFResourceWithStreamingResponse(self) def create( self, @@ -206,38 +206,38 @@ def create( "wait_for_selector": wait_for_selector, "wait_for_timeout": wait_for_timeout, }, - pdf_create_params.PdfCreateParams, + pdf_create_params.PDFCreateParams, ), options=make_request_options( extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout, - query=maybe_transform({"cache_ttl": cache_ttl}, pdf_create_params.PdfCreateParams), + query=maybe_transform({"cache_ttl": cache_ttl}, pdf_create_params.PDFCreateParams), ), cast_to=BinaryAPIResponse, ) -class AsyncPdfResource(AsyncAPIResource): +class AsyncPDFResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncPdfResourceWithRawResponse: + def with_raw_response(self) -> AsyncPDFResourceWithRawResponse: """ This property can be used as a prefix for any HTTP method call to return the raw response object instead of the parsed content. For more information, see https://www.github.com/cloudflare/cloudflare-python#accessing-raw-response-data-eg-headers """ - return AsyncPdfResourceWithRawResponse(self) + return AsyncPDFResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncPdfResourceWithStreamingResponse: + def with_streaming_response(self) -> AsyncPDFResourceWithStreamingResponse: """ An alternative to `.with_raw_response` that doesn't eagerly read the response body. For more information, see https://www.github.com/cloudflare/cloudflare-python#with_streaming_response """ - return AsyncPdfResourceWithStreamingResponse(self) + return AsyncPDFResourceWithStreamingResponse(self) async def create( self, @@ -395,21 +395,21 @@ async def create( "wait_for_selector": wait_for_selector, "wait_for_timeout": wait_for_timeout, }, - pdf_create_params.PdfCreateParams, + pdf_create_params.PDFCreateParams, ), options=make_request_options( extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout, - query=await async_maybe_transform({"cache_ttl": cache_ttl}, pdf_create_params.PdfCreateParams), + query=await async_maybe_transform({"cache_ttl": cache_ttl}, pdf_create_params.PDFCreateParams), ), cast_to=AsyncBinaryAPIResponse, ) -class PdfResourceWithRawResponse: - def __init__(self, pdf: PdfResource) -> None: +class PDFResourceWithRawResponse: + def __init__(self, pdf: PDFResource) -> None: self._pdf = pdf self.create = to_custom_raw_response_wrapper( @@ -418,8 +418,8 @@ def __init__(self, pdf: PdfResource) -> None: ) -class AsyncPdfResourceWithRawResponse: - def __init__(self, pdf: AsyncPdfResource) -> None: +class AsyncPDFResourceWithRawResponse: + def __init__(self, pdf: AsyncPDFResource) -> None: self._pdf = pdf self.create = async_to_custom_raw_response_wrapper( @@ -428,8 +428,8 @@ def __init__(self, pdf: AsyncPdfResource) -> None: ) -class PdfResourceWithStreamingResponse: - def __init__(self, pdf: PdfResource) -> None: +class PDFResourceWithStreamingResponse: + def __init__(self, pdf: PDFResource) -> None: self._pdf = pdf self.create = to_custom_streamed_response_wrapper( @@ -438,8 +438,8 @@ def __init__(self, pdf: PdfResource) -> None: ) -class AsyncPdfResourceWithStreamingResponse: - def __init__(self, pdf: AsyncPdfResource) -> None: +class AsyncPDFResourceWithStreamingResponse: + def __init__(self, pdf: AsyncPDFResource) -> None: self._pdf = pdf self.create = async_to_custom_streamed_response_wrapper( diff --git a/src/cloudflare/resources/magic_network_monitoring/__init__.py b/src/cloudflare/resources/magic_network_monitoring/__init__.py index b0bdec4abc5..6d9edbdda33 100644 --- a/src/cloudflare/resources/magic_network_monitoring/__init__.py +++ b/src/cloudflare/resources/magic_network_monitoring/__init__.py @@ -17,12 +17,12 @@ AsyncConfigsResourceWithStreamingResponse, ) from .vpc_flows import ( - VpcFlowsResource, - AsyncVpcFlowsResource, - VpcFlowsResourceWithRawResponse, - AsyncVpcFlowsResourceWithRawResponse, - VpcFlowsResourceWithStreamingResponse, - AsyncVpcFlowsResourceWithStreamingResponse, + VPCFlowsResource, + AsyncVPCFlowsResource, + VPCFlowsResourceWithRawResponse, + AsyncVPCFlowsResourceWithRawResponse, + VPCFlowsResourceWithStreamingResponse, + AsyncVPCFlowsResourceWithStreamingResponse, ) from .magic_network_monitoring import ( MagicNetworkMonitoringResource, @@ -34,12 +34,12 @@ ) __all__ = [ - "VpcFlowsResource", - "AsyncVpcFlowsResource", - "VpcFlowsResourceWithRawResponse", - "AsyncVpcFlowsResourceWithRawResponse", - "VpcFlowsResourceWithStreamingResponse", - "AsyncVpcFlowsResourceWithStreamingResponse", + "VPCFlowsResource", + "AsyncVPCFlowsResource", + "VPCFlowsResourceWithRawResponse", + "AsyncVPCFlowsResourceWithRawResponse", + "VPCFlowsResourceWithStreamingResponse", + "AsyncVPCFlowsResourceWithStreamingResponse", "ConfigsResource", "AsyncConfigsResource", "ConfigsResourceWithRawResponse", diff --git a/src/cloudflare/resources/magic_network_monitoring/magic_network_monitoring.py b/src/cloudflare/resources/magic_network_monitoring/magic_network_monitoring.py index f05f0aadded..67de552c10b 100644 --- a/src/cloudflare/resources/magic_network_monitoring/magic_network_monitoring.py +++ b/src/cloudflare/resources/magic_network_monitoring/magic_network_monitoring.py @@ -21,12 +21,12 @@ AsyncConfigsResourceWithStreamingResponse, ) from .vpc_flows.vpc_flows import ( - VpcFlowsResource, - AsyncVpcFlowsResource, - VpcFlowsResourceWithRawResponse, - AsyncVpcFlowsResourceWithRawResponse, - VpcFlowsResourceWithStreamingResponse, - AsyncVpcFlowsResourceWithStreamingResponse, + VPCFlowsResource, + AsyncVPCFlowsResource, + VPCFlowsResourceWithRawResponse, + AsyncVPCFlowsResourceWithRawResponse, + VPCFlowsResourceWithStreamingResponse, + AsyncVPCFlowsResourceWithStreamingResponse, ) __all__ = ["MagicNetworkMonitoringResource", "AsyncMagicNetworkMonitoringResource"] @@ -34,8 +34,8 @@ class MagicNetworkMonitoringResource(SyncAPIResource): @cached_property - def vpc_flows(self) -> VpcFlowsResource: - return VpcFlowsResource(self._client) + def vpc_flows(self) -> VPCFlowsResource: + return VPCFlowsResource(self._client) @cached_property def configs(self) -> ConfigsResource: @@ -67,8 +67,8 @@ def with_streaming_response(self) -> MagicNetworkMonitoringResourceWithStreaming class AsyncMagicNetworkMonitoringResource(AsyncAPIResource): @cached_property - def vpc_flows(self) -> AsyncVpcFlowsResource: - return AsyncVpcFlowsResource(self._client) + def vpc_flows(self) -> AsyncVPCFlowsResource: + return AsyncVPCFlowsResource(self._client) @cached_property def configs(self) -> AsyncConfigsResource: @@ -103,8 +103,8 @@ def __init__(self, magic_network_monitoring: MagicNetworkMonitoringResource) -> self._magic_network_monitoring = magic_network_monitoring @cached_property - def vpc_flows(self) -> VpcFlowsResourceWithRawResponse: - return VpcFlowsResourceWithRawResponse(self._magic_network_monitoring.vpc_flows) + def vpc_flows(self) -> VPCFlowsResourceWithRawResponse: + return VPCFlowsResourceWithRawResponse(self._magic_network_monitoring.vpc_flows) @cached_property def configs(self) -> ConfigsResourceWithRawResponse: @@ -120,8 +120,8 @@ def __init__(self, magic_network_monitoring: AsyncMagicNetworkMonitoringResource self._magic_network_monitoring = magic_network_monitoring @cached_property - def vpc_flows(self) -> AsyncVpcFlowsResourceWithRawResponse: - return AsyncVpcFlowsResourceWithRawResponse(self._magic_network_monitoring.vpc_flows) + def vpc_flows(self) -> AsyncVPCFlowsResourceWithRawResponse: + return AsyncVPCFlowsResourceWithRawResponse(self._magic_network_monitoring.vpc_flows) @cached_property def configs(self) -> AsyncConfigsResourceWithRawResponse: @@ -137,8 +137,8 @@ def __init__(self, magic_network_monitoring: MagicNetworkMonitoringResource) -> self._magic_network_monitoring = magic_network_monitoring @cached_property - def vpc_flows(self) -> VpcFlowsResourceWithStreamingResponse: - return VpcFlowsResourceWithStreamingResponse(self._magic_network_monitoring.vpc_flows) + def vpc_flows(self) -> VPCFlowsResourceWithStreamingResponse: + return VPCFlowsResourceWithStreamingResponse(self._magic_network_monitoring.vpc_flows) @cached_property def configs(self) -> ConfigsResourceWithStreamingResponse: @@ -154,8 +154,8 @@ def __init__(self, magic_network_monitoring: AsyncMagicNetworkMonitoringResource self._magic_network_monitoring = magic_network_monitoring @cached_property - def vpc_flows(self) -> AsyncVpcFlowsResourceWithStreamingResponse: - return AsyncVpcFlowsResourceWithStreamingResponse(self._magic_network_monitoring.vpc_flows) + def vpc_flows(self) -> AsyncVPCFlowsResourceWithStreamingResponse: + return AsyncVPCFlowsResourceWithStreamingResponse(self._magic_network_monitoring.vpc_flows) @cached_property def configs(self) -> AsyncConfigsResourceWithStreamingResponse: diff --git a/src/cloudflare/resources/magic_network_monitoring/vpc_flows/__init__.py b/src/cloudflare/resources/magic_network_monitoring/vpc_flows/__init__.py index b7de80f41a1..7ded783363c 100644 --- a/src/cloudflare/resources/magic_network_monitoring/vpc_flows/__init__.py +++ b/src/cloudflare/resources/magic_network_monitoring/vpc_flows/__init__.py @@ -9,12 +9,12 @@ AsyncTokensResourceWithStreamingResponse, ) from .vpc_flows import ( - VpcFlowsResource, - AsyncVpcFlowsResource, - VpcFlowsResourceWithRawResponse, - AsyncVpcFlowsResourceWithRawResponse, - VpcFlowsResourceWithStreamingResponse, - AsyncVpcFlowsResourceWithStreamingResponse, + VPCFlowsResource, + AsyncVPCFlowsResource, + VPCFlowsResourceWithRawResponse, + AsyncVPCFlowsResourceWithRawResponse, + VPCFlowsResourceWithStreamingResponse, + AsyncVPCFlowsResourceWithStreamingResponse, ) __all__ = [ @@ -24,10 +24,10 @@ "AsyncTokensResourceWithRawResponse", "TokensResourceWithStreamingResponse", "AsyncTokensResourceWithStreamingResponse", - "VpcFlowsResource", - "AsyncVpcFlowsResource", - "VpcFlowsResourceWithRawResponse", - "AsyncVpcFlowsResourceWithRawResponse", - "VpcFlowsResourceWithStreamingResponse", - "AsyncVpcFlowsResourceWithStreamingResponse", + "VPCFlowsResource", + "AsyncVPCFlowsResource", + "VPCFlowsResourceWithRawResponse", + "AsyncVPCFlowsResourceWithRawResponse", + "VPCFlowsResourceWithStreamingResponse", + "AsyncVPCFlowsResourceWithStreamingResponse", ] diff --git a/src/cloudflare/resources/magic_network_monitoring/vpc_flows/vpc_flows.py b/src/cloudflare/resources/magic_network_monitoring/vpc_flows/vpc_flows.py index 5537a9b4cdf..69ea9bcbb7b 100644 --- a/src/cloudflare/resources/magic_network_monitoring/vpc_flows/vpc_flows.py +++ b/src/cloudflare/resources/magic_network_monitoring/vpc_flows/vpc_flows.py @@ -13,61 +13,61 @@ from ...._compat import cached_property from ...._resource import SyncAPIResource, AsyncAPIResource -__all__ = ["VpcFlowsResource", "AsyncVpcFlowsResource"] +__all__ = ["VPCFlowsResource", "AsyncVPCFlowsResource"] -class VpcFlowsResource(SyncAPIResource): +class VPCFlowsResource(SyncAPIResource): @cached_property def tokens(self) -> TokensResource: return TokensResource(self._client) @cached_property - def with_raw_response(self) -> VpcFlowsResourceWithRawResponse: + def with_raw_response(self) -> VPCFlowsResourceWithRawResponse: """ This property can be used as a prefix for any HTTP method call to return the raw response object instead of the parsed content. For more information, see https://www.github.com/cloudflare/cloudflare-python#accessing-raw-response-data-eg-headers """ - return VpcFlowsResourceWithRawResponse(self) + return VPCFlowsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> VpcFlowsResourceWithStreamingResponse: + def with_streaming_response(self) -> VPCFlowsResourceWithStreamingResponse: """ An alternative to `.with_raw_response` that doesn't eagerly read the response body. For more information, see https://www.github.com/cloudflare/cloudflare-python#with_streaming_response """ - return VpcFlowsResourceWithStreamingResponse(self) + return VPCFlowsResourceWithStreamingResponse(self) -class AsyncVpcFlowsResource(AsyncAPIResource): +class AsyncVPCFlowsResource(AsyncAPIResource): @cached_property def tokens(self) -> AsyncTokensResource: return AsyncTokensResource(self._client) @cached_property - def with_raw_response(self) -> AsyncVpcFlowsResourceWithRawResponse: + def with_raw_response(self) -> AsyncVPCFlowsResourceWithRawResponse: """ This property can be used as a prefix for any HTTP method call to return the raw response object instead of the parsed content. For more information, see https://www.github.com/cloudflare/cloudflare-python#accessing-raw-response-data-eg-headers """ - return AsyncVpcFlowsResourceWithRawResponse(self) + return AsyncVPCFlowsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncVpcFlowsResourceWithStreamingResponse: + def with_streaming_response(self) -> AsyncVPCFlowsResourceWithStreamingResponse: """ An alternative to `.with_raw_response` that doesn't eagerly read the response body. For more information, see https://www.github.com/cloudflare/cloudflare-python#with_streaming_response """ - return AsyncVpcFlowsResourceWithStreamingResponse(self) + return AsyncVPCFlowsResourceWithStreamingResponse(self) -class VpcFlowsResourceWithRawResponse: - def __init__(self, vpc_flows: VpcFlowsResource) -> None: +class VPCFlowsResourceWithRawResponse: + def __init__(self, vpc_flows: VPCFlowsResource) -> None: self._vpc_flows = vpc_flows @cached_property @@ -75,8 +75,8 @@ def tokens(self) -> TokensResourceWithRawResponse: return TokensResourceWithRawResponse(self._vpc_flows.tokens) -class AsyncVpcFlowsResourceWithRawResponse: - def __init__(self, vpc_flows: AsyncVpcFlowsResource) -> None: +class AsyncVPCFlowsResourceWithRawResponse: + def __init__(self, vpc_flows: AsyncVPCFlowsResource) -> None: self._vpc_flows = vpc_flows @cached_property @@ -84,8 +84,8 @@ def tokens(self) -> AsyncTokensResourceWithRawResponse: return AsyncTokensResourceWithRawResponse(self._vpc_flows.tokens) -class VpcFlowsResourceWithStreamingResponse: - def __init__(self, vpc_flows: VpcFlowsResource) -> None: +class VPCFlowsResourceWithStreamingResponse: + def __init__(self, vpc_flows: VPCFlowsResource) -> None: self._vpc_flows = vpc_flows @cached_property @@ -93,8 +93,8 @@ def tokens(self) -> TokensResourceWithStreamingResponse: return TokensResourceWithStreamingResponse(self._vpc_flows.tokens) -class AsyncVpcFlowsResourceWithStreamingResponse: - def __init__(self, vpc_flows: AsyncVpcFlowsResource) -> None: +class AsyncVPCFlowsResourceWithStreamingResponse: + def __init__(self, vpc_flows: AsyncVPCFlowsResource) -> None: self._vpc_flows = vpc_flows @cached_property diff --git a/src/cloudflare/types/browsing_rendering/__init__.py b/src/cloudflare/types/browsing_rendering/__init__.py index 285988e3d6b..76b38187520 100644 --- a/src/cloudflare/types/browsing_rendering/__init__.py +++ b/src/cloudflare/types/browsing_rendering/__init__.py @@ -2,7 +2,7 @@ from __future__ import annotations -from .pdf_create_params import PdfCreateParams as PdfCreateParams +from .pdf_create_params import PDFCreateParams as PDFCreateParams from .scrape_create_params import ScrapeCreateParams as ScrapeCreateParams from .content_create_params import ContentCreateParams as ContentCreateParams from .scrape_create_response import ScrapeCreateResponse as ScrapeCreateResponse diff --git a/src/cloudflare/types/browsing_rendering/pdf_create_params.py b/src/cloudflare/types/browsing_rendering/pdf_create_params.py index 8237290c013..9487bf77b72 100644 --- a/src/cloudflare/types/browsing_rendering/pdf_create_params.py +++ b/src/cloudflare/types/browsing_rendering/pdf_create_params.py @@ -8,7 +8,7 @@ from ..._utils import PropertyInfo __all__ = [ - "PdfCreateParams", + "PDFCreateParams", "AddScriptTag", "AddStyleTag", "Authenticate", @@ -19,7 +19,7 @@ ] -class PdfCreateParams(TypedDict, total=False): +class PDFCreateParams(TypedDict, total=False): cache_ttl: Annotated[float, PropertyInfo(alias="cacheTTL")] """Cache TTL default is 5s. Set to 0 to disable.""" diff --git a/tests/api_resources/browsing_rendering/test_pdf.py b/tests/api_resources/browsing_rendering/test_pdf.py index fba9cb71e0b..6672a8de35d 100644 --- a/tests/api_resources/browsing_rendering/test_pdf.py +++ b/tests/api_resources/browsing_rendering/test_pdf.py @@ -20,7 +20,7 @@ base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") -class TestPdf: +class TestPDF: parametrize = pytest.mark.parametrize("client", [False, True], indirect=True, ids=["loose", "strict"]) @parametrize @@ -163,7 +163,7 @@ def test_path_params_create(self, client: Cloudflare) -> None: ) -class TestAsyncPdf: +class TestAsyncPDF: parametrize = pytest.mark.parametrize("async_client", [False, True], indirect=True, ids=["loose", "strict"]) @parametrize