Skip to content

Commit f0b00be

Browse files
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",

0 commit comments

Comments
 (0)