Skip to content

Commit ecddba4

Browse files
feat(api): api update
1 parent a507923 commit ecddba4

File tree

7 files changed

+16
-2
lines changed

7 files changed

+16
-2
lines changed

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 1794
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-4096a646793b8ba7ec0a3e195f74b2b168e22f22f41ab33301d418aa9293873d.yml
3-
openapi_spec_hash: bc95f4bb6fd9f998fffe4166cbfc8a7d
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-77786eea81979d72d8f88c63d13966b653995957130715122172d3a0d98e208b.yml
3+
openapi_spec_hash: 8631b9bcc5628b51eaa9bc574112050e
44
config_hash: 14ab8e50e701fb810517a2ab075abfa4

src/cloudflare/resources/email_security/settings/domains.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -233,6 +233,7 @@ def edit(
233233
folder: Literal["AllItems", "Inbox"] | NotGiven = NOT_GIVEN,
234234
integration_id: str | NotGiven = NOT_GIVEN,
235235
lookback_hops: int | NotGiven = NOT_GIVEN,
236+
regions: List[Literal["GLOBAL", "AU", "DE", "IN", "US"]] | NotGiven = NOT_GIVEN,
236237
require_tls_inbound: bool | NotGiven = NOT_GIVEN,
237238
require_tls_outbound: bool | NotGiven = NOT_GIVEN,
238239
transport: str | NotGiven = NOT_GIVEN,
@@ -272,6 +273,7 @@ def edit(
272273
"folder": folder,
273274
"integration_id": integration_id,
274275
"lookback_hops": lookback_hops,
276+
"regions": regions,
275277
"require_tls_inbound": require_tls_inbound,
276278
"require_tls_outbound": require_tls_outbound,
277279
"transport": transport,
@@ -534,6 +536,7 @@ async def edit(
534536
folder: Literal["AllItems", "Inbox"] | NotGiven = NOT_GIVEN,
535537
integration_id: str | NotGiven = NOT_GIVEN,
536538
lookback_hops: int | NotGiven = NOT_GIVEN,
539+
regions: List[Literal["GLOBAL", "AU", "DE", "IN", "US"]] | NotGiven = NOT_GIVEN,
537540
require_tls_inbound: bool | NotGiven = NOT_GIVEN,
538541
require_tls_outbound: bool | NotGiven = NOT_GIVEN,
539542
transport: str | NotGiven = NOT_GIVEN,
@@ -573,6 +576,7 @@ async def edit(
573576
"folder": folder,
574577
"integration_id": integration_id,
575578
"lookback_hops": lookback_hops,
579+
"regions": regions,
576580
"require_tls_inbound": require_tls_inbound,
577581
"require_tls_outbound": require_tls_outbound,
578582
"transport": transport,

src/cloudflare/types/email_security/settings/domain_edit_params.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@ class DomainEditParams(TypedDict, total=False):
3939

4040
lookback_hops: int
4141

42+
regions: List[Literal["GLOBAL", "AU", "DE", "IN", "US"]]
43+
4244
require_tls_inbound: bool
4345

4446
require_tls_outbound: bool

src/cloudflare/types/email_security/settings/domain_edit_response.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,8 @@ class DomainEditResponse(BaseModel):
5656

5757
lookback_hops: int
5858

59+
regions: List[Literal["GLOBAL", "AU", "DE", "IN", "US"]]
60+
5961
transport: str
6062

6163
authorization: Optional[Authorization] = None

src/cloudflare/types/email_security/settings/domain_get_response.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,8 @@ class DomainGetResponse(BaseModel):
5656

5757
lookback_hops: int
5858

59+
regions: List[Literal["GLOBAL", "AU", "DE", "IN", "US"]]
60+
5961
transport: str
6062

6163
authorization: Optional[Authorization] = None

src/cloudflare/types/email_security/settings/domain_list_response.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,8 @@ class DomainListResponse(BaseModel):
5656

5757
lookback_hops: int
5858

59+
regions: List[Literal["GLOBAL", "AU", "DE", "IN", "US"]]
60+
5961
transport: str
6062

6163
authorization: Optional[Authorization] = None

tests/api_resources/email_security/settings/test_domains.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,7 @@ def test_method_edit_with_all_params(self, client: Cloudflare) -> None:
178178
folder="AllItems",
179179
integration_id="182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
180180
lookback_hops=1,
181+
regions=["GLOBAL"],
181182
require_tls_inbound=True,
182183
require_tls_outbound=True,
183184
transport="transport",
@@ -423,6 +424,7 @@ async def test_method_edit_with_all_params(self, async_client: AsyncCloudflare)
423424
folder="AllItems",
424425
integration_id="182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
425426
lookback_hops=1,
427+
regions=["GLOBAL"],
426428
require_tls_inbound=True,
427429
require_tls_outbound=True,
428430
transport="transport",

0 commit comments

Comments
 (0)