@@ -100,8 +100,8 @@ def create(
100
100
101
101
validity_days: Validity Days selected for the order.
102
102
103
- cloudflare_branding: Whether or not to add Cloudflare Branding for the order. This will add
104
- sni.cloudflaressl.com as the Common Name if set true.
103
+ cloudflare_branding: Whether or not to add Cloudflare Branding for the order. This will add a
104
+ subdomain of sni.cloudflaressl.com as the Common Name if set to true.
105
105
106
106
extra_headers: Send extra headers
107
107
@@ -230,25 +230,27 @@ def edit(
230
230
certificate_pack_id : str ,
231
231
* ,
232
232
zone_id : str ,
233
- body : object ,
233
+ cloudflare_branding : bool | NotGiven = NOT_GIVEN ,
234
234
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
235
235
# The extra values given here take precedence over values defined on the client or passed to this method.
236
236
extra_headers : Headers | None = None ,
237
237
extra_query : Query | None = None ,
238
238
extra_body : Body | None = None ,
239
239
timeout : float | httpx .Timeout | None | NotGiven = NOT_GIVEN ,
240
240
) -> Optional [CertificatePackEditResponse ]:
241
- """For a given zone, restart validation for an advanced certificate pack.
242
-
243
- This is
244
- only a validation operation for a Certificate Pack in a validation_timed_out
245
- status.
241
+ """
242
+ For a given zone, restart validation or add cloudflare branding for an advanced
243
+ certificate pack. The former is only a validation operation for a Certificate
244
+ Pack in a validation_timed_out status.
246
245
247
246
Args:
248
247
zone_id: Identifier
249
248
250
249
certificate_pack_id: Identifier
251
250
251
+ cloudflare_branding: Whether or not to add Cloudflare Branding for the order. This will add a
252
+ subdomain of sni.cloudflaressl.com as the Common Name if set to true.
253
+
252
254
extra_headers: Send extra headers
253
255
254
256
extra_query: Add additional query parameters to the request
@@ -265,7 +267,9 @@ def edit(
265
267
)
266
268
return self ._patch (
267
269
f"/zones/{ zone_id } /ssl/certificate_packs/{ certificate_pack_id } " ,
268
- body = maybe_transform (body , certificate_pack_edit_params .CertificatePackEditParams ),
270
+ body = maybe_transform (
271
+ {"cloudflare_branding" : cloudflare_branding }, certificate_pack_edit_params .CertificatePackEditParams
272
+ ),
269
273
options = make_request_options (
270
274
extra_headers = extra_headers ,
271
275
extra_query = extra_query ,
@@ -383,8 +387,8 @@ async def create(
383
387
384
388
validity_days: Validity Days selected for the order.
385
389
386
- cloudflare_branding: Whether or not to add Cloudflare Branding for the order. This will add
387
- sni.cloudflaressl.com as the Common Name if set true.
390
+ cloudflare_branding: Whether or not to add Cloudflare Branding for the order. This will add a
391
+ subdomain of sni.cloudflaressl.com as the Common Name if set to true.
388
392
389
393
extra_headers: Send extra headers
390
394
@@ -513,25 +517,27 @@ async def edit(
513
517
certificate_pack_id : str ,
514
518
* ,
515
519
zone_id : str ,
516
- body : object ,
520
+ cloudflare_branding : bool | NotGiven = NOT_GIVEN ,
517
521
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
518
522
# The extra values given here take precedence over values defined on the client or passed to this method.
519
523
extra_headers : Headers | None = None ,
520
524
extra_query : Query | None = None ,
521
525
extra_body : Body | None = None ,
522
526
timeout : float | httpx .Timeout | None | NotGiven = NOT_GIVEN ,
523
527
) -> Optional [CertificatePackEditResponse ]:
524
- """For a given zone, restart validation for an advanced certificate pack.
525
-
526
- This is
527
- only a validation operation for a Certificate Pack in a validation_timed_out
528
- status.
528
+ """
529
+ For a given zone, restart validation or add cloudflare branding for an advanced
530
+ certificate pack. The former is only a validation operation for a Certificate
531
+ Pack in a validation_timed_out status.
529
532
530
533
Args:
531
534
zone_id: Identifier
532
535
533
536
certificate_pack_id: Identifier
534
537
538
+ cloudflare_branding: Whether or not to add Cloudflare Branding for the order. This will add a
539
+ subdomain of sni.cloudflaressl.com as the Common Name if set to true.
540
+
535
541
extra_headers: Send extra headers
536
542
537
543
extra_query: Add additional query parameters to the request
@@ -548,7 +554,9 @@ async def edit(
548
554
)
549
555
return await self ._patch (
550
556
f"/zones/{ zone_id } /ssl/certificate_packs/{ certificate_pack_id } " ,
551
- body = await async_maybe_transform (body , certificate_pack_edit_params .CertificatePackEditParams ),
557
+ body = await async_maybe_transform (
558
+ {"cloudflare_branding" : cloudflare_branding }, certificate_pack_edit_params .CertificatePackEditParams
559
+ ),
552
560
options = make_request_options (
553
561
extra_headers = extra_headers ,
554
562
extra_query = extra_query ,
0 commit comments