Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions api.md
Original file line number Diff line number Diff line change
Expand Up @@ -3951,7 +3951,7 @@ Methods:

# MagicNetworkMonitoring

## VpcFlows
## VPCFlows

### Tokens

Expand Down Expand Up @@ -8942,7 +8942,7 @@ Methods:

- <code title="post /accounts/{accountId}/browser-rendering/content">client.browsing_rendering.content.<a href="./src/cloudflare/resources/browsing_rendering/content.py">create</a>(account_id, \*\*<a href="src/cloudflare/types/browsing_rendering/content_create_params.py">params</a>) -> <a href="./src/cloudflare/types/browsing_rendering/content_create_response.py">str</a></code>

## Pdf
## PDF

Methods:

Expand Down
24 changes: 12 additions & 12 deletions src/cloudflare/resources/browsing_rendering/__init__.py
Original file line number Diff line number Diff line change
@@ -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,
Expand Down Expand Up @@ -56,12 +56,12 @@
"AsyncContentResourceWithRawResponse",
"ContentResourceWithStreamingResponse",
"AsyncContentResourceWithStreamingResponse",
"PdfResource",
"AsyncPdfResource",
"PdfResourceWithRawResponse",
"AsyncPdfResourceWithRawResponse",
"PdfResourceWithStreamingResponse",
"AsyncPdfResourceWithStreamingResponse",
"PDFResource",
"AsyncPDFResource",
"PDFResourceWithRawResponse",
"AsyncPDFResourceWithRawResponse",
"PDFResourceWithStreamingResponse",
"AsyncPDFResourceWithStreamingResponse",
"ScrapeResource",
"AsyncScrapeResource",
"ScrapeResourceWithRawResponse",
Expand Down
36 changes: 18 additions & 18 deletions src/cloudflare/resources/browsing_rendering/browsing_rendering.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand All @@ -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:
Expand All @@ -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:
Expand All @@ -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:
Expand Down
46 changes: 23 additions & 23 deletions src/cloudflare/resources/browsing_rendering/pdf.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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(
Expand All @@ -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(
Expand All @@ -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(
Expand All @@ -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(
Expand Down
24 changes: 12 additions & 12 deletions src/cloudflare/resources/magic_network_monitoring/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -34,12 +34,12 @@
)

__all__ = [
"VpcFlowsResource",
"AsyncVpcFlowsResource",
"VpcFlowsResourceWithRawResponse",
"AsyncVpcFlowsResourceWithRawResponse",
"VpcFlowsResourceWithStreamingResponse",
"AsyncVpcFlowsResourceWithStreamingResponse",
"VPCFlowsResource",
"AsyncVPCFlowsResource",
"VPCFlowsResourceWithRawResponse",
"AsyncVPCFlowsResourceWithRawResponse",
"VPCFlowsResourceWithStreamingResponse",
"AsyncVPCFlowsResourceWithStreamingResponse",
"ConfigsResource",
"AsyncConfigsResource",
"ConfigsResourceWithRawResponse",
Expand Down
Loading