27
27
from ..._base_client import make_request_options
28
28
from ...types .browsing_rendering import pdf_create_params
29
29
30
- __all__ = ["PdfResource " , "AsyncPdfResource " ]
30
+ __all__ = ["PDFResource " , "AsyncPDFResource " ]
31
31
32
32
33
- class PdfResource (SyncAPIResource ):
33
+ class PDFResource (SyncAPIResource ):
34
34
@cached_property
35
- def with_raw_response (self ) -> PdfResourceWithRawResponse :
35
+ def with_raw_response (self ) -> PDFResourceWithRawResponse :
36
36
"""
37
37
This property can be used as a prefix for any HTTP method call to return
38
38
the raw response object instead of the parsed content.
39
39
40
40
For more information, see https://www.github.com/cloudflare/cloudflare-python#accessing-raw-response-data-eg-headers
41
41
"""
42
- return PdfResourceWithRawResponse (self )
42
+ return PDFResourceWithRawResponse (self )
43
43
44
44
@cached_property
45
- def with_streaming_response (self ) -> PdfResourceWithStreamingResponse :
45
+ def with_streaming_response (self ) -> PDFResourceWithStreamingResponse :
46
46
"""
47
47
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
48
48
49
49
For more information, see https://www.github.com/cloudflare/cloudflare-python#with_streaming_response
50
50
"""
51
- return PdfResourceWithStreamingResponse (self )
51
+ return PDFResourceWithStreamingResponse (self )
52
52
53
53
def create (
54
54
self ,
@@ -206,38 +206,38 @@ def create(
206
206
"wait_for_selector" : wait_for_selector ,
207
207
"wait_for_timeout" : wait_for_timeout ,
208
208
},
209
- pdf_create_params .PdfCreateParams ,
209
+ pdf_create_params .PDFCreateParams ,
210
210
),
211
211
options = make_request_options (
212
212
extra_headers = extra_headers ,
213
213
extra_query = extra_query ,
214
214
extra_body = extra_body ,
215
215
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 ),
217
217
),
218
218
cast_to = BinaryAPIResponse ,
219
219
)
220
220
221
221
222
- class AsyncPdfResource (AsyncAPIResource ):
222
+ class AsyncPDFResource (AsyncAPIResource ):
223
223
@cached_property
224
- def with_raw_response (self ) -> AsyncPdfResourceWithRawResponse :
224
+ def with_raw_response (self ) -> AsyncPDFResourceWithRawResponse :
225
225
"""
226
226
This property can be used as a prefix for any HTTP method call to return
227
227
the raw response object instead of the parsed content.
228
228
229
229
For more information, see https://www.github.com/cloudflare/cloudflare-python#accessing-raw-response-data-eg-headers
230
230
"""
231
- return AsyncPdfResourceWithRawResponse (self )
231
+ return AsyncPDFResourceWithRawResponse (self )
232
232
233
233
@cached_property
234
- def with_streaming_response (self ) -> AsyncPdfResourceWithStreamingResponse :
234
+ def with_streaming_response (self ) -> AsyncPDFResourceWithStreamingResponse :
235
235
"""
236
236
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
237
237
238
238
For more information, see https://www.github.com/cloudflare/cloudflare-python#with_streaming_response
239
239
"""
240
- return AsyncPdfResourceWithStreamingResponse (self )
240
+ return AsyncPDFResourceWithStreamingResponse (self )
241
241
242
242
async def create (
243
243
self ,
@@ -395,21 +395,21 @@ async def create(
395
395
"wait_for_selector" : wait_for_selector ,
396
396
"wait_for_timeout" : wait_for_timeout ,
397
397
},
398
- pdf_create_params .PdfCreateParams ,
398
+ pdf_create_params .PDFCreateParams ,
399
399
),
400
400
options = make_request_options (
401
401
extra_headers = extra_headers ,
402
402
extra_query = extra_query ,
403
403
extra_body = extra_body ,
404
404
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 ),
406
406
),
407
407
cast_to = AsyncBinaryAPIResponse ,
408
408
)
409
409
410
410
411
- class PdfResourceWithRawResponse :
412
- def __init__ (self , pdf : PdfResource ) -> None :
411
+ class PDFResourceWithRawResponse :
412
+ def __init__ (self , pdf : PDFResource ) -> None :
413
413
self ._pdf = pdf
414
414
415
415
self .create = to_custom_raw_response_wrapper (
@@ -418,8 +418,8 @@ def __init__(self, pdf: PdfResource) -> None:
418
418
)
419
419
420
420
421
- class AsyncPdfResourceWithRawResponse :
422
- def __init__ (self , pdf : AsyncPdfResource ) -> None :
421
+ class AsyncPDFResourceWithRawResponse :
422
+ def __init__ (self , pdf : AsyncPDFResource ) -> None :
423
423
self ._pdf = pdf
424
424
425
425
self .create = async_to_custom_raw_response_wrapper (
@@ -428,8 +428,8 @@ def __init__(self, pdf: AsyncPdfResource) -> None:
428
428
)
429
429
430
430
431
- class PdfResourceWithStreamingResponse :
432
- def __init__ (self , pdf : PdfResource ) -> None :
431
+ class PDFResourceWithStreamingResponse :
432
+ def __init__ (self , pdf : PDFResource ) -> None :
433
433
self ._pdf = pdf
434
434
435
435
self .create = to_custom_streamed_response_wrapper (
@@ -438,8 +438,8 @@ def __init__(self, pdf: PdfResource) -> None:
438
438
)
439
439
440
440
441
- class AsyncPdfResourceWithStreamingResponse :
442
- def __init__ (self , pdf : AsyncPdfResource ) -> None :
441
+ class AsyncPDFResourceWithStreamingResponse :
442
+ def __init__ (self , pdf : AsyncPDFResource ) -> None :
443
443
self ._pdf = pdf
444
444
445
445
self .create = async_to_custom_streamed_response_wrapper (
0 commit comments