Skip to content

Commit

Permalink
feat(api): OpenAPI spec update via Stainless API (#1010)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-app[bot] authored and stainless-bot committed Jun 17, 2024
1 parent cba721d commit edf3d01
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .stats.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
configured_endpoints: 1348
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-60eaec2f4029582531bbb45c66bb499e91203845eeeb3d507ae7ed5675a6bbe6.yml
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-9d1a5f2de8e753867ab88ca1b88d1d1cdc944a7834fb81506a7ace10ed151624.yml
3 changes: 3 additions & 0 deletions src/cloudflare/types/accounts/account.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@


class Settings(BaseModel):
abuse_contact_email: Optional[str] = None
"""Sets an abuse contact email to notify for abuse reports."""

default_nameservers: Optional[Literal["cloudflare.standard", "custom.account", "custom.tenant"]] = None
"""
Specifies the default nameservers to be used for new zones added to this
Expand Down
3 changes: 3 additions & 0 deletions src/cloudflare/types/accounts/account_update_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ class AccountUpdateParams(TypedDict, total=False):


class Settings(TypedDict, total=False):
abuse_contact_email: str
"""Sets an abuse contact email to notify for abuse reports."""

default_nameservers: Literal["cloudflare.standard", "custom.account", "custom.tenant"]
"""
Specifies the default nameservers to be used for new zones added to this
Expand Down
2 changes: 2 additions & 0 deletions tests/api_resources/test_accounts.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ def test_method_update_with_all_params(self, client: Cloudflare) -> None:
account_id={},
name="Demo Account",
settings={
"abuse_contact_email": "string",
"default_nameservers": "cloudflare.standard",
"enforce_twofactor": True,
"use_account_custom_ns_by_default": True,
Expand Down Expand Up @@ -148,6 +149,7 @@ async def test_method_update_with_all_params(self, async_client: AsyncCloudflare
account_id={},
name="Demo Account",
settings={
"abuse_contact_email": "string",
"default_nameservers": "cloudflare.standard",
"enforce_twofactor": True,
"use_account_custom_ns_by_default": True,
Expand Down

0 comments on commit edf3d01

Please sign in to comment.