22
33from __future__ import annotations
44
5- from typing import Type , cast
5+ from typing import List , Type , cast
66from typing_extensions import Literal
77
88import httpx
@@ -57,6 +57,7 @@ def create(
5757 domain : str ,
5858 enabled : bool ,
5959 zone_id : str ,
60+ ciphers : List [str ] | NotGiven = NOT_GIVEN ,
6061 min_tls : Literal ["1.0" , "1.1" , "1.2" , "1.3" ] | NotGiven = NOT_GIVEN ,
6162 jurisdiction : Literal ["default" , "eu" , "fedramp" ] | NotGiven = NOT_GIVEN ,
6263 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -81,6 +82,9 @@ def create(
8182
8283 zone_id: Zone ID of the custom domain.
8384
85+ ciphers: An allowlist of ciphers for TLS termination. These ciphers must be in the
86+ BoringSSL format.
87+
8488 min_tls: Minimum TLS Version the custom domain will accept for incoming connections. If
8589 not set, defaults to 1.0.
8690
@@ -109,6 +113,7 @@ def create(
109113 "domain" : domain ,
110114 "enabled" : enabled ,
111115 "zone_id" : zone_id ,
116+ "ciphers" : ciphers ,
112117 "min_tls" : min_tls ,
113118 },
114119 custom_create_params .CustomCreateParams ,
@@ -129,6 +134,7 @@ def update(
129134 * ,
130135 account_id : str ,
131136 bucket_name : str ,
137+ ciphers : List [str ] | NotGiven = NOT_GIVEN ,
132138 enabled : bool | NotGiven = NOT_GIVEN ,
133139 min_tls : Literal ["1.0" , "1.1" , "1.2" , "1.3" ] | NotGiven = NOT_GIVEN ,
134140 jurisdiction : Literal ["default" , "eu" , "fedramp" ] | NotGiven = NOT_GIVEN ,
@@ -149,6 +155,9 @@ def update(
149155
150156 domain: Name of the custom domain.
151157
158+ ciphers: An allowlist of ciphers for TLS termination. These ciphers must be in the
159+ BoringSSL format.
160+
152161 enabled: Whether to enable public bucket access at the specified custom domain.
153162
154163 min_tls: Minimum TLS Version the custom domain will accept for incoming connections. If
@@ -178,6 +187,7 @@ def update(
178187 f"/accounts/{ account_id } /r2/buckets/{ bucket_name } /domains/custom/{ domain } " ,
179188 body = maybe_transform (
180189 {
190+ "ciphers" : ciphers ,
181191 "enabled" : enabled ,
182192 "min_tls" : min_tls ,
183193 },
@@ -385,6 +395,7 @@ async def create(
385395 domain : str ,
386396 enabled : bool ,
387397 zone_id : str ,
398+ ciphers : List [str ] | NotGiven = NOT_GIVEN ,
388399 min_tls : Literal ["1.0" , "1.1" , "1.2" , "1.3" ] | NotGiven = NOT_GIVEN ,
389400 jurisdiction : Literal ["default" , "eu" , "fedramp" ] | NotGiven = NOT_GIVEN ,
390401 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -409,6 +420,9 @@ async def create(
409420
410421 zone_id: Zone ID of the custom domain.
411422
423+ ciphers: An allowlist of ciphers for TLS termination. These ciphers must be in the
424+ BoringSSL format.
425+
412426 min_tls: Minimum TLS Version the custom domain will accept for incoming connections. If
413427 not set, defaults to 1.0.
414428
@@ -437,6 +451,7 @@ async def create(
437451 "domain" : domain ,
438452 "enabled" : enabled ,
439453 "zone_id" : zone_id ,
454+ "ciphers" : ciphers ,
440455 "min_tls" : min_tls ,
441456 },
442457 custom_create_params .CustomCreateParams ,
@@ -457,6 +472,7 @@ async def update(
457472 * ,
458473 account_id : str ,
459474 bucket_name : str ,
475+ ciphers : List [str ] | NotGiven = NOT_GIVEN ,
460476 enabled : bool | NotGiven = NOT_GIVEN ,
461477 min_tls : Literal ["1.0" , "1.1" , "1.2" , "1.3" ] | NotGiven = NOT_GIVEN ,
462478 jurisdiction : Literal ["default" , "eu" , "fedramp" ] | NotGiven = NOT_GIVEN ,
@@ -477,6 +493,9 @@ async def update(
477493
478494 domain: Name of the custom domain.
479495
496+ ciphers: An allowlist of ciphers for TLS termination. These ciphers must be in the
497+ BoringSSL format.
498+
480499 enabled: Whether to enable public bucket access at the specified custom domain.
481500
482501 min_tls: Minimum TLS Version the custom domain will accept for incoming connections. If
@@ -506,6 +525,7 @@ async def update(
506525 f"/accounts/{ account_id } /r2/buckets/{ bucket_name } /domains/custom/{ domain } " ,
507526 body = await async_maybe_transform (
508527 {
528+ "ciphers" : ciphers ,
509529 "enabled" : enabled ,
510530 "min_tls" : min_tls ,
511531 },
0 commit comments