Skip to content

Commit edf3d01

Browse files
stainless-app[bot]stainless-bot
authored andcommitted
feat(api): OpenAPI spec update via Stainless API (#1010)
1 parent cba721d commit edf3d01

File tree

4 files changed

+9
-1
lines changed

4 files changed

+9
-1
lines changed

.stats.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
configured_endpoints: 1348
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-60eaec2f4029582531bbb45c66bb499e91203845eeeb3d507ae7ed5675a6bbe6.yml
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-9d1a5f2de8e753867ab88ca1b88d1d1cdc944a7834fb81506a7ace10ed151624.yml

src/cloudflare/types/accounts/account.py

+3
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@
1010

1111

1212
class Settings(BaseModel):
13+
abuse_contact_email: Optional[str] = None
14+
"""Sets an abuse contact email to notify for abuse reports."""
15+
1316
default_nameservers: Optional[Literal["cloudflare.standard", "custom.account", "custom.tenant"]] = None
1417
"""
1518
Specifies the default nameservers to be used for new zones added to this

src/cloudflare/types/accounts/account_update_params.py

+3
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ class AccountUpdateParams(TypedDict, total=False):
1818

1919

2020
class Settings(TypedDict, total=False):
21+
abuse_contact_email: str
22+
"""Sets an abuse contact email to notify for abuse reports."""
23+
2124
default_nameservers: Literal["cloudflare.standard", "custom.account", "custom.tenant"]
2225
"""
2326
Specifies the default nameservers to be used for new zones added to this

tests/api_resources/test_accounts.py

+2
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ def test_method_update_with_all_params(self, client: Cloudflare) -> None:
3131
account_id={},
3232
name="Demo Account",
3333
settings={
34+
"abuse_contact_email": "string",
3435
"default_nameservers": "cloudflare.standard",
3536
"enforce_twofactor": True,
3637
"use_account_custom_ns_by_default": True,
@@ -148,6 +149,7 @@ async def test_method_update_with_all_params(self, async_client: AsyncCloudflare
148149
account_id={},
149150
name="Demo Account",
150151
settings={
152+
"abuse_contact_email": "string",
151153
"default_nameservers": "cloudflare.standard",
152154
"enforce_twofactor": True,
153155
"use_account_custom_ns_by_default": True,

0 commit comments

Comments
 (0)