Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(api): OpenAPI spec update via Stainless API #1010

Merged
merged 1 commit into from
Jun 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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