Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit f0b00be

Browse files
committedFeb 28, 2025
chore(internal): mark VPC and PDF as initialisms (#2486)
1 parent 904614f commit f0b00be

File tree

11 files changed

+121
-121
lines changed

11 files changed

+121
-121
lines changed
 

‎api.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -3951,7 +3951,7 @@ Methods:
39513951

39523952
# MagicNetworkMonitoring
39533953

3954-
## VpcFlows
3954+
## VPCFlows
39553955

39563956
### Tokens
39573957

@@ -8942,7 +8942,7 @@ Methods:
89428942

89438943
- <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>
89448944

8945-
## Pdf
8945+
## PDF
89468946

89478947
Methods:
89488948

‎src/cloudflare/resources/browsing_rendering/__init__.py

+12-12
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
22

33
from .pdf import (
4-
PdfResource,
5-
AsyncPdfResource,
6-
PdfResourceWithRawResponse,
7-
AsyncPdfResourceWithRawResponse,
8-
PdfResourceWithStreamingResponse,
9-
AsyncPdfResourceWithStreamingResponse,
4+
PDFResource,
5+
AsyncPDFResource,
6+
PDFResourceWithRawResponse,
7+
AsyncPDFResourceWithRawResponse,
8+
PDFResourceWithStreamingResponse,
9+
AsyncPDFResourceWithStreamingResponse,
1010
)
1111
from .scrape import (
1212
ScrapeResource,
@@ -56,12 +56,12 @@
5656
"AsyncContentResourceWithRawResponse",
5757
"ContentResourceWithStreamingResponse",
5858
"AsyncContentResourceWithStreamingResponse",
59-
"PdfResource",
60-
"AsyncPdfResource",
61-
"PdfResourceWithRawResponse",
62-
"AsyncPdfResourceWithRawResponse",
63-
"PdfResourceWithStreamingResponse",
64-
"AsyncPdfResourceWithStreamingResponse",
59+
"PDFResource",
60+
"AsyncPDFResource",
61+
"PDFResourceWithRawResponse",
62+
"AsyncPDFResourceWithRawResponse",
63+
"PDFResourceWithStreamingResponse",
64+
"AsyncPDFResourceWithStreamingResponse",
6565
"ScrapeResource",
6666
"AsyncScrapeResource",
6767
"ScrapeResourceWithRawResponse",

‎src/cloudflare/resources/browsing_rendering/browsing_rendering.py

+18-18
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@
33
from __future__ import annotations
44

55
from .pdf import (
6-
PdfResource,
7-
AsyncPdfResource,
8-
PdfResourceWithRawResponse,
9-
AsyncPdfResourceWithRawResponse,
10-
PdfResourceWithStreamingResponse,
11-
AsyncPdfResourceWithStreamingResponse,
6+
PDFResource,
7+
AsyncPDFResource,
8+
PDFResourceWithRawResponse,
9+
AsyncPDFResourceWithRawResponse,
10+
PDFResourceWithStreamingResponse,
11+
AsyncPDFResourceWithStreamingResponse,
1212
)
1313
from .scrape import (
1414
ScrapeResource,
@@ -54,8 +54,8 @@ def content(self) -> ContentResource:
5454
return ContentResource(self._client)
5555

5656
@cached_property
57-
def pdf(self) -> PdfResource:
58-
return PdfResource(self._client)
57+
def pdf(self) -> PDFResource:
58+
return PDFResource(self._client)
5959

6060
@cached_property
6161
def scrape(self) -> ScrapeResource:
@@ -95,8 +95,8 @@ def content(self) -> AsyncContentResource:
9595
return AsyncContentResource(self._client)
9696

9797
@cached_property
98-
def pdf(self) -> AsyncPdfResource:
99-
return AsyncPdfResource(self._client)
98+
def pdf(self) -> AsyncPDFResource:
99+
return AsyncPDFResource(self._client)
100100

101101
@cached_property
102102
def scrape(self) -> AsyncScrapeResource:
@@ -139,8 +139,8 @@ def content(self) -> ContentResourceWithRawResponse:
139139
return ContentResourceWithRawResponse(self._browsing_rendering.content)
140140

141141
@cached_property
142-
def pdf(self) -> PdfResourceWithRawResponse:
143-
return PdfResourceWithRawResponse(self._browsing_rendering.pdf)
142+
def pdf(self) -> PDFResourceWithRawResponse:
143+
return PDFResourceWithRawResponse(self._browsing_rendering.pdf)
144144

145145
@cached_property
146146
def scrape(self) -> ScrapeResourceWithRawResponse:
@@ -164,8 +164,8 @@ def content(self) -> AsyncContentResourceWithRawResponse:
164164
return AsyncContentResourceWithRawResponse(self._browsing_rendering.content)
165165

166166
@cached_property
167-
def pdf(self) -> AsyncPdfResourceWithRawResponse:
168-
return AsyncPdfResourceWithRawResponse(self._browsing_rendering.pdf)
167+
def pdf(self) -> AsyncPDFResourceWithRawResponse:
168+
return AsyncPDFResourceWithRawResponse(self._browsing_rendering.pdf)
169169

170170
@cached_property
171171
def scrape(self) -> AsyncScrapeResourceWithRawResponse:
@@ -189,8 +189,8 @@ def content(self) -> ContentResourceWithStreamingResponse:
189189
return ContentResourceWithStreamingResponse(self._browsing_rendering.content)
190190

191191
@cached_property
192-
def pdf(self) -> PdfResourceWithStreamingResponse:
193-
return PdfResourceWithStreamingResponse(self._browsing_rendering.pdf)
192+
def pdf(self) -> PDFResourceWithStreamingResponse:
193+
return PDFResourceWithStreamingResponse(self._browsing_rendering.pdf)
194194

195195
@cached_property
196196
def scrape(self) -> ScrapeResourceWithStreamingResponse:
@@ -214,8 +214,8 @@ def content(self) -> AsyncContentResourceWithStreamingResponse:
214214
return AsyncContentResourceWithStreamingResponse(self._browsing_rendering.content)
215215

216216
@cached_property
217-
def pdf(self) -> AsyncPdfResourceWithStreamingResponse:
218-
return AsyncPdfResourceWithStreamingResponse(self._browsing_rendering.pdf)
217+
def pdf(self) -> AsyncPDFResourceWithStreamingResponse:
218+
return AsyncPDFResourceWithStreamingResponse(self._browsing_rendering.pdf)
219219

220220
@cached_property
221221
def scrape(self) -> AsyncScrapeResourceWithStreamingResponse:

‎src/cloudflare/resources/browsing_rendering/pdf.py

+23-23
Original file line numberDiff line numberDiff line change
@@ -27,28 +27,28 @@
2727
from ..._base_client import make_request_options
2828
from ...types.browsing_rendering import pdf_create_params
2929

30-
__all__ = ["PdfResource", "AsyncPdfResource"]
30+
__all__ = ["PDFResource", "AsyncPDFResource"]
3131

3232

33-
class PdfResource(SyncAPIResource):
33+
class PDFResource(SyncAPIResource):
3434
@cached_property
35-
def with_raw_response(self) -> PdfResourceWithRawResponse:
35+
def with_raw_response(self) -> PDFResourceWithRawResponse:
3636
"""
3737
This property can be used as a prefix for any HTTP method call to return
3838
the raw response object instead of the parsed content.
3939
4040
For more information, see https://www.github.com/cloudflare/cloudflare-python#accessing-raw-response-data-eg-headers
4141
"""
42-
return PdfResourceWithRawResponse(self)
42+
return PDFResourceWithRawResponse(self)
4343

4444
@cached_property
45-
def with_streaming_response(self) -> PdfResourceWithStreamingResponse:
45+
def with_streaming_response(self) -> PDFResourceWithStreamingResponse:
4646
"""
4747
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
4848
4949
For more information, see https://www.github.com/cloudflare/cloudflare-python#with_streaming_response
5050
"""
51-
return PdfResourceWithStreamingResponse(self)
51+
return PDFResourceWithStreamingResponse(self)
5252

5353
def create(
5454
self,
@@ -206,38 +206,38 @@ def create(
206206
"wait_for_selector": wait_for_selector,
207207
"wait_for_timeout": wait_for_timeout,
208208
},
209-
pdf_create_params.PdfCreateParams,
209+
pdf_create_params.PDFCreateParams,
210210
),
211211
options=make_request_options(
212212
extra_headers=extra_headers,
213213
extra_query=extra_query,
214214
extra_body=extra_body,
215215
timeout=timeout,
216-
query=maybe_transform({"cache_ttl": cache_ttl}, pdf_create_params.PdfCreateParams),
216+
query=maybe_transform({"cache_ttl": cache_ttl}, pdf_create_params.PDFCreateParams),
217217
),
218218
cast_to=BinaryAPIResponse,
219219
)
220220

221221

222-
class AsyncPdfResource(AsyncAPIResource):
222+
class AsyncPDFResource(AsyncAPIResource):
223223
@cached_property
224-
def with_raw_response(self) -> AsyncPdfResourceWithRawResponse:
224+
def with_raw_response(self) -> AsyncPDFResourceWithRawResponse:
225225
"""
226226
This property can be used as a prefix for any HTTP method call to return
227227
the raw response object instead of the parsed content.
228228
229229
For more information, see https://www.github.com/cloudflare/cloudflare-python#accessing-raw-response-data-eg-headers
230230
"""
231-
return AsyncPdfResourceWithRawResponse(self)
231+
return AsyncPDFResourceWithRawResponse(self)
232232

233233
@cached_property
234-
def with_streaming_response(self) -> AsyncPdfResourceWithStreamingResponse:
234+
def with_streaming_response(self) -> AsyncPDFResourceWithStreamingResponse:
235235
"""
236236
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
237237
238238
For more information, see https://www.github.com/cloudflare/cloudflare-python#with_streaming_response
239239
"""
240-
return AsyncPdfResourceWithStreamingResponse(self)
240+
return AsyncPDFResourceWithStreamingResponse(self)
241241

242242
async def create(
243243
self,
@@ -395,21 +395,21 @@ async def create(
395395
"wait_for_selector": wait_for_selector,
396396
"wait_for_timeout": wait_for_timeout,
397397
},
398-
pdf_create_params.PdfCreateParams,
398+
pdf_create_params.PDFCreateParams,
399399
),
400400
options=make_request_options(
401401
extra_headers=extra_headers,
402402
extra_query=extra_query,
403403
extra_body=extra_body,
404404
timeout=timeout,
405-
query=await async_maybe_transform({"cache_ttl": cache_ttl}, pdf_create_params.PdfCreateParams),
405+
query=await async_maybe_transform({"cache_ttl": cache_ttl}, pdf_create_params.PDFCreateParams),
406406
),
407407
cast_to=AsyncBinaryAPIResponse,
408408
)
409409

410410

411-
class PdfResourceWithRawResponse:
412-
def __init__(self, pdf: PdfResource) -> None:
411+
class PDFResourceWithRawResponse:
412+
def __init__(self, pdf: PDFResource) -> None:
413413
self._pdf = pdf
414414

415415
self.create = to_custom_raw_response_wrapper(
@@ -418,8 +418,8 @@ def __init__(self, pdf: PdfResource) -> None:
418418
)
419419

420420

421-
class AsyncPdfResourceWithRawResponse:
422-
def __init__(self, pdf: AsyncPdfResource) -> None:
421+
class AsyncPDFResourceWithRawResponse:
422+
def __init__(self, pdf: AsyncPDFResource) -> None:
423423
self._pdf = pdf
424424

425425
self.create = async_to_custom_raw_response_wrapper(
@@ -428,8 +428,8 @@ def __init__(self, pdf: AsyncPdfResource) -> None:
428428
)
429429

430430

431-
class PdfResourceWithStreamingResponse:
432-
def __init__(self, pdf: PdfResource) -> None:
431+
class PDFResourceWithStreamingResponse:
432+
def __init__(self, pdf: PDFResource) -> None:
433433
self._pdf = pdf
434434

435435
self.create = to_custom_streamed_response_wrapper(
@@ -438,8 +438,8 @@ def __init__(self, pdf: PdfResource) -> None:
438438
)
439439

440440

441-
class AsyncPdfResourceWithStreamingResponse:
442-
def __init__(self, pdf: AsyncPdfResource) -> None:
441+
class AsyncPDFResourceWithStreamingResponse:
442+
def __init__(self, pdf: AsyncPDFResource) -> None:
443443
self._pdf = pdf
444444

445445
self.create = async_to_custom_streamed_response_wrapper(

‎src/cloudflare/resources/magic_network_monitoring/__init__.py

+12-12
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,12 @@
1717
AsyncConfigsResourceWithStreamingResponse,
1818
)
1919
from .vpc_flows import (
20-
VpcFlowsResource,
21-
AsyncVpcFlowsResource,
22-
VpcFlowsResourceWithRawResponse,
23-
AsyncVpcFlowsResourceWithRawResponse,
24-
VpcFlowsResourceWithStreamingResponse,
25-
AsyncVpcFlowsResourceWithStreamingResponse,
20+
VPCFlowsResource,
21+
AsyncVPCFlowsResource,
22+
VPCFlowsResourceWithRawResponse,
23+
AsyncVPCFlowsResourceWithRawResponse,
24+
VPCFlowsResourceWithStreamingResponse,
25+
AsyncVPCFlowsResourceWithStreamingResponse,
2626
)
2727
from .magic_network_monitoring import (
2828
MagicNetworkMonitoringResource,
@@ -34,12 +34,12 @@
3434
)
3535

3636
__all__ = [
37-
"VpcFlowsResource",
38-
"AsyncVpcFlowsResource",
39-
"VpcFlowsResourceWithRawResponse",
40-
"AsyncVpcFlowsResourceWithRawResponse",
41-
"VpcFlowsResourceWithStreamingResponse",
42-
"AsyncVpcFlowsResourceWithStreamingResponse",
37+
"VPCFlowsResource",
38+
"AsyncVPCFlowsResource",
39+
"VPCFlowsResourceWithRawResponse",
40+
"AsyncVPCFlowsResourceWithRawResponse",
41+
"VPCFlowsResourceWithStreamingResponse",
42+
"AsyncVPCFlowsResourceWithStreamingResponse",
4343
"ConfigsResource",
4444
"AsyncConfigsResource",
4545
"ConfigsResourceWithRawResponse",

‎src/cloudflare/resources/magic_network_monitoring/magic_network_monitoring.py

+18-18
Original file line numberDiff line numberDiff line change
@@ -21,21 +21,21 @@
2121
AsyncConfigsResourceWithStreamingResponse,
2222
)
2323
from .vpc_flows.vpc_flows import (
24-
VpcFlowsResource,
25-
AsyncVpcFlowsResource,
26-
VpcFlowsResourceWithRawResponse,
27-
AsyncVpcFlowsResourceWithRawResponse,
28-
VpcFlowsResourceWithStreamingResponse,
29-
AsyncVpcFlowsResourceWithStreamingResponse,
24+
VPCFlowsResource,
25+
AsyncVPCFlowsResource,
26+
VPCFlowsResourceWithRawResponse,
27+
AsyncVPCFlowsResourceWithRawResponse,
28+
VPCFlowsResourceWithStreamingResponse,
29+
AsyncVPCFlowsResourceWithStreamingResponse,
3030
)
3131

3232
__all__ = ["MagicNetworkMonitoringResource", "AsyncMagicNetworkMonitoringResource"]
3333

3434

3535
class MagicNetworkMonitoringResource(SyncAPIResource):
3636
@cached_property
37-
def vpc_flows(self) -> VpcFlowsResource:
38-
return VpcFlowsResource(self._client)
37+
def vpc_flows(self) -> VPCFlowsResource:
38+
return VPCFlowsResource(self._client)
3939

4040
@cached_property
4141
def configs(self) -> ConfigsResource:
@@ -67,8 +67,8 @@ def with_streaming_response(self) -> MagicNetworkMonitoringResourceWithStreaming
6767

6868
class AsyncMagicNetworkMonitoringResource(AsyncAPIResource):
6969
@cached_property
70-
def vpc_flows(self) -> AsyncVpcFlowsResource:
71-
return AsyncVpcFlowsResource(self._client)
70+
def vpc_flows(self) -> AsyncVPCFlowsResource:
71+
return AsyncVPCFlowsResource(self._client)
7272

7373
@cached_property
7474
def configs(self) -> AsyncConfigsResource:
@@ -103,8 +103,8 @@ def __init__(self, magic_network_monitoring: MagicNetworkMonitoringResource) ->
103103
self._magic_network_monitoring = magic_network_monitoring
104104

105105
@cached_property
106-
def vpc_flows(self) -> VpcFlowsResourceWithRawResponse:
107-
return VpcFlowsResourceWithRawResponse(self._magic_network_monitoring.vpc_flows)
106+
def vpc_flows(self) -> VPCFlowsResourceWithRawResponse:
107+
return VPCFlowsResourceWithRawResponse(self._magic_network_monitoring.vpc_flows)
108108

109109
@cached_property
110110
def configs(self) -> ConfigsResourceWithRawResponse:
@@ -120,8 +120,8 @@ def __init__(self, magic_network_monitoring: AsyncMagicNetworkMonitoringResource
120120
self._magic_network_monitoring = magic_network_monitoring
121121

122122
@cached_property
123-
def vpc_flows(self) -> AsyncVpcFlowsResourceWithRawResponse:
124-
return AsyncVpcFlowsResourceWithRawResponse(self._magic_network_monitoring.vpc_flows)
123+
def vpc_flows(self) -> AsyncVPCFlowsResourceWithRawResponse:
124+
return AsyncVPCFlowsResourceWithRawResponse(self._magic_network_monitoring.vpc_flows)
125125

126126
@cached_property
127127
def configs(self) -> AsyncConfigsResourceWithRawResponse:
@@ -137,8 +137,8 @@ def __init__(self, magic_network_monitoring: MagicNetworkMonitoringResource) ->
137137
self._magic_network_monitoring = magic_network_monitoring
138138

139139
@cached_property
140-
def vpc_flows(self) -> VpcFlowsResourceWithStreamingResponse:
141-
return VpcFlowsResourceWithStreamingResponse(self._magic_network_monitoring.vpc_flows)
140+
def vpc_flows(self) -> VPCFlowsResourceWithStreamingResponse:
141+
return VPCFlowsResourceWithStreamingResponse(self._magic_network_monitoring.vpc_flows)
142142

143143
@cached_property
144144
def configs(self) -> ConfigsResourceWithStreamingResponse:
@@ -154,8 +154,8 @@ def __init__(self, magic_network_monitoring: AsyncMagicNetworkMonitoringResource
154154
self._magic_network_monitoring = magic_network_monitoring
155155

156156
@cached_property
157-
def vpc_flows(self) -> AsyncVpcFlowsResourceWithStreamingResponse:
158-
return AsyncVpcFlowsResourceWithStreamingResponse(self._magic_network_monitoring.vpc_flows)
157+
def vpc_flows(self) -> AsyncVPCFlowsResourceWithStreamingResponse:
158+
return AsyncVPCFlowsResourceWithStreamingResponse(self._magic_network_monitoring.vpc_flows)
159159

160160
@cached_property
161161
def configs(self) -> AsyncConfigsResourceWithStreamingResponse:

‎src/cloudflare/resources/magic_network_monitoring/vpc_flows/__init__.py

+12-12
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@
99
AsyncTokensResourceWithStreamingResponse,
1010
)
1111
from .vpc_flows import (
12-
VpcFlowsResource,
13-
AsyncVpcFlowsResource,
14-
VpcFlowsResourceWithRawResponse,
15-
AsyncVpcFlowsResourceWithRawResponse,
16-
VpcFlowsResourceWithStreamingResponse,
17-
AsyncVpcFlowsResourceWithStreamingResponse,
12+
VPCFlowsResource,
13+
AsyncVPCFlowsResource,
14+
VPCFlowsResourceWithRawResponse,
15+
AsyncVPCFlowsResourceWithRawResponse,
16+
VPCFlowsResourceWithStreamingResponse,
17+
AsyncVPCFlowsResourceWithStreamingResponse,
1818
)
1919

2020
__all__ = [
@@ -24,10 +24,10 @@
2424
"AsyncTokensResourceWithRawResponse",
2525
"TokensResourceWithStreamingResponse",
2626
"AsyncTokensResourceWithStreamingResponse",
27-
"VpcFlowsResource",
28-
"AsyncVpcFlowsResource",
29-
"VpcFlowsResourceWithRawResponse",
30-
"AsyncVpcFlowsResourceWithRawResponse",
31-
"VpcFlowsResourceWithStreamingResponse",
32-
"AsyncVpcFlowsResourceWithStreamingResponse",
27+
"VPCFlowsResource",
28+
"AsyncVPCFlowsResource",
29+
"VPCFlowsResourceWithRawResponse",
30+
"AsyncVPCFlowsResourceWithRawResponse",
31+
"VPCFlowsResourceWithStreamingResponse",
32+
"AsyncVPCFlowsResourceWithStreamingResponse",
3333
]

‎src/cloudflare/resources/magic_network_monitoring/vpc_flows/vpc_flows.py

+19-19
Original file line numberDiff line numberDiff line change
@@ -13,88 +13,88 @@
1313
from ...._compat import cached_property
1414
from ...._resource import SyncAPIResource, AsyncAPIResource
1515

16-
__all__ = ["VpcFlowsResource", "AsyncVpcFlowsResource"]
16+
__all__ = ["VPCFlowsResource", "AsyncVPCFlowsResource"]
1717

1818

19-
class VpcFlowsResource(SyncAPIResource):
19+
class VPCFlowsResource(SyncAPIResource):
2020
@cached_property
2121
def tokens(self) -> TokensResource:
2222
return TokensResource(self._client)
2323

2424
@cached_property
25-
def with_raw_response(self) -> VpcFlowsResourceWithRawResponse:
25+
def with_raw_response(self) -> VPCFlowsResourceWithRawResponse:
2626
"""
2727
This property can be used as a prefix for any HTTP method call to return
2828
the raw response object instead of the parsed content.
2929
3030
For more information, see https://www.github.com/cloudflare/cloudflare-python#accessing-raw-response-data-eg-headers
3131
"""
32-
return VpcFlowsResourceWithRawResponse(self)
32+
return VPCFlowsResourceWithRawResponse(self)
3333

3434
@cached_property
35-
def with_streaming_response(self) -> VpcFlowsResourceWithStreamingResponse:
35+
def with_streaming_response(self) -> VPCFlowsResourceWithStreamingResponse:
3636
"""
3737
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
3838
3939
For more information, see https://www.github.com/cloudflare/cloudflare-python#with_streaming_response
4040
"""
41-
return VpcFlowsResourceWithStreamingResponse(self)
41+
return VPCFlowsResourceWithStreamingResponse(self)
4242

4343

44-
class AsyncVpcFlowsResource(AsyncAPIResource):
44+
class AsyncVPCFlowsResource(AsyncAPIResource):
4545
@cached_property
4646
def tokens(self) -> AsyncTokensResource:
4747
return AsyncTokensResource(self._client)
4848

4949
@cached_property
50-
def with_raw_response(self) -> AsyncVpcFlowsResourceWithRawResponse:
50+
def with_raw_response(self) -> AsyncVPCFlowsResourceWithRawResponse:
5151
"""
5252
This property can be used as a prefix for any HTTP method call to return
5353
the raw response object instead of the parsed content.
5454
5555
For more information, see https://www.github.com/cloudflare/cloudflare-python#accessing-raw-response-data-eg-headers
5656
"""
57-
return AsyncVpcFlowsResourceWithRawResponse(self)
57+
return AsyncVPCFlowsResourceWithRawResponse(self)
5858

5959
@cached_property
60-
def with_streaming_response(self) -> AsyncVpcFlowsResourceWithStreamingResponse:
60+
def with_streaming_response(self) -> AsyncVPCFlowsResourceWithStreamingResponse:
6161
"""
6262
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
6363
6464
For more information, see https://www.github.com/cloudflare/cloudflare-python#with_streaming_response
6565
"""
66-
return AsyncVpcFlowsResourceWithStreamingResponse(self)
66+
return AsyncVPCFlowsResourceWithStreamingResponse(self)
6767

6868

69-
class VpcFlowsResourceWithRawResponse:
70-
def __init__(self, vpc_flows: VpcFlowsResource) -> None:
69+
class VPCFlowsResourceWithRawResponse:
70+
def __init__(self, vpc_flows: VPCFlowsResource) -> None:
7171
self._vpc_flows = vpc_flows
7272

7373
@cached_property
7474
def tokens(self) -> TokensResourceWithRawResponse:
7575
return TokensResourceWithRawResponse(self._vpc_flows.tokens)
7676

7777

78-
class AsyncVpcFlowsResourceWithRawResponse:
79-
def __init__(self, vpc_flows: AsyncVpcFlowsResource) -> None:
78+
class AsyncVPCFlowsResourceWithRawResponse:
79+
def __init__(self, vpc_flows: AsyncVPCFlowsResource) -> None:
8080
self._vpc_flows = vpc_flows
8181

8282
@cached_property
8383
def tokens(self) -> AsyncTokensResourceWithRawResponse:
8484
return AsyncTokensResourceWithRawResponse(self._vpc_flows.tokens)
8585

8686

87-
class VpcFlowsResourceWithStreamingResponse:
88-
def __init__(self, vpc_flows: VpcFlowsResource) -> None:
87+
class VPCFlowsResourceWithStreamingResponse:
88+
def __init__(self, vpc_flows: VPCFlowsResource) -> None:
8989
self._vpc_flows = vpc_flows
9090

9191
@cached_property
9292
def tokens(self) -> TokensResourceWithStreamingResponse:
9393
return TokensResourceWithStreamingResponse(self._vpc_flows.tokens)
9494

9595

96-
class AsyncVpcFlowsResourceWithStreamingResponse:
97-
def __init__(self, vpc_flows: AsyncVpcFlowsResource) -> None:
96+
class AsyncVPCFlowsResourceWithStreamingResponse:
97+
def __init__(self, vpc_flows: AsyncVPCFlowsResource) -> None:
9898
self._vpc_flows = vpc_flows
9999

100100
@cached_property

‎src/cloudflare/types/browsing_rendering/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
from __future__ import annotations
44

5-
from .pdf_create_params import PdfCreateParams as PdfCreateParams
5+
from .pdf_create_params import PDFCreateParams as PDFCreateParams
66
from .scrape_create_params import ScrapeCreateParams as ScrapeCreateParams
77
from .content_create_params import ContentCreateParams as ContentCreateParams
88
from .scrape_create_response import ScrapeCreateResponse as ScrapeCreateResponse

‎src/cloudflare/types/browsing_rendering/pdf_create_params.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
from ..._utils import PropertyInfo
99

1010
__all__ = [
11-
"PdfCreateParams",
11+
"PDFCreateParams",
1212
"AddScriptTag",
1313
"AddStyleTag",
1414
"Authenticate",
@@ -19,7 +19,7 @@
1919
]
2020

2121

22-
class PdfCreateParams(TypedDict, total=False):
22+
class PDFCreateParams(TypedDict, total=False):
2323
cache_ttl: Annotated[float, PropertyInfo(alias="cacheTTL")]
2424
"""Cache TTL default is 5s. Set to 0 to disable."""
2525

‎tests/api_resources/browsing_rendering/test_pdf.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010")
2121

2222

23-
class TestPdf:
23+
class TestPDF:
2424
parametrize = pytest.mark.parametrize("client", [False, True], indirect=True, ids=["loose", "strict"])
2525

2626
@parametrize
@@ -163,7 +163,7 @@ def test_path_params_create(self, client: Cloudflare) -> None:
163163
)
164164

165165

166-
class TestAsyncPdf:
166+
class TestAsyncPDF:
167167
parametrize = pytest.mark.parametrize("async_client", [False, True], indirect=True, ids=["loose", "strict"])
168168

169169
@parametrize

0 commit comments

Comments
 (0)
Please sign in to comment.