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 #1190

Merged
merged 1 commit into from
Jul 16, 2024
Merged
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: 1256
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-8698fc16cc1cd7549c7f51bf3f3118b80e198b25fee1f20e4aaeb226608dafd1.yml
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-129ae207bac48d5f0a569cefeb5ff52209e7ef746666eb4e8f72aeb08a7748aa.yml
44 changes: 32 additions & 12 deletions src/cloudflare/resources/dns/firewall/firewall.py
Original file line number Diff line number Diff line change
@@ -89,11 +89,16 @@ def create(

ecs_fallback: Forward client IP (resolver) subnet if no EDNS Client Subnet is sent.

maximum_cache_ttl: Maximum DNS Cache TTL.
maximum_cache_ttl: Maximum DNS cache TTL. This setting sets an upper bound on DNS TTLs for purposes
of caching between DNS Firewall and the upstream servers. Higher TTLs will be
decreased to the maximum defined here for caching purposes.

minimum_cache_ttl: Minimum DNS Cache TTL.
minimum_cache_ttl: Minimum DNS cache TTL. This setting sets a lower bound on DNS TTLs for purposes
of caching between DNS Firewall and the upstream servers. Lower TTLs will be
increased to the minimum defined here for caching purposes.

negative_cache_ttl: Negative DNS Cache TTL.
negative_cache_ttl: Negative DNS cache TTL. This setting controls how long DNS Firewall should cache
negative responses (e.g., NXDOMAIN) from the upstream servers.

ratelimit: Ratelimit in queries per second per datacenter (applies to DNS queries sent to
the upstream nameservers configured on the cluster).
@@ -272,15 +277,20 @@ def edit(

ecs_fallback: Forward client IP (resolver) subnet if no EDNS Client Subnet is sent.

maximum_cache_ttl: Maximum DNS Cache TTL.
maximum_cache_ttl: Maximum DNS cache TTL. This setting sets an upper bound on DNS TTLs for purposes
of caching between DNS Firewall and the upstream servers. Higher TTLs will be
decreased to the maximum defined here for caching purposes.

minimum_cache_ttl: Minimum DNS Cache TTL.
minimum_cache_ttl: Minimum DNS cache TTL. This setting sets a lower bound on DNS TTLs for purposes
of caching between DNS Firewall and the upstream servers. Lower TTLs will be
increased to the minimum defined here for caching purposes.

name: DNS Firewall Cluster Name.

attack_mitigation: Attack mitigation settings.

negative_cache_ttl: Negative DNS Cache TTL.
negative_cache_ttl: Negative DNS cache TTL. This setting controls how long DNS Firewall should cache
negative responses (e.g., NXDOMAIN) from the upstream servers.

ratelimit: Ratelimit in queries per second per datacenter (applies to DNS queries sent to
the upstream nameservers configured on the cluster).
@@ -422,11 +432,16 @@ async def create(

ecs_fallback: Forward client IP (resolver) subnet if no EDNS Client Subnet is sent.

maximum_cache_ttl: Maximum DNS Cache TTL.
maximum_cache_ttl: Maximum DNS cache TTL. This setting sets an upper bound on DNS TTLs for purposes
of caching between DNS Firewall and the upstream servers. Higher TTLs will be
decreased to the maximum defined here for caching purposes.

minimum_cache_ttl: Minimum DNS Cache TTL.
minimum_cache_ttl: Minimum DNS cache TTL. This setting sets a lower bound on DNS TTLs for purposes
of caching between DNS Firewall and the upstream servers. Lower TTLs will be
increased to the minimum defined here for caching purposes.

negative_cache_ttl: Negative DNS Cache TTL.
negative_cache_ttl: Negative DNS cache TTL. This setting controls how long DNS Firewall should cache
negative responses (e.g., NXDOMAIN) from the upstream servers.

ratelimit: Ratelimit in queries per second per datacenter (applies to DNS queries sent to
the upstream nameservers configured on the cluster).
@@ -605,15 +620,20 @@ async def edit(

ecs_fallback: Forward client IP (resolver) subnet if no EDNS Client Subnet is sent.

maximum_cache_ttl: Maximum DNS Cache TTL.
maximum_cache_ttl: Maximum DNS cache TTL. This setting sets an upper bound on DNS TTLs for purposes
of caching between DNS Firewall and the upstream servers. Higher TTLs will be
decreased to the maximum defined here for caching purposes.

minimum_cache_ttl: Minimum DNS Cache TTL.
minimum_cache_ttl: Minimum DNS cache TTL. This setting sets a lower bound on DNS TTLs for purposes
of caching between DNS Firewall and the upstream servers. Lower TTLs will be
increased to the minimum defined here for caching purposes.

name: DNS Firewall Cluster Name.

attack_mitigation: Attack mitigation settings.

negative_cache_ttl: Negative DNS Cache TTL.
negative_cache_ttl: Negative DNS cache TTL. This setting controls how long DNS Firewall should cache
negative responses (e.g., NXDOMAIN) from the upstream servers.

ratelimit: Ratelimit in queries per second per datacenter (applies to DNS queries sent to
the upstream nameservers configured on the cluster).
20 changes: 17 additions & 3 deletions src/cloudflare/types/dns/firewall/firewall.py
Original file line number Diff line number Diff line change
@@ -24,10 +24,20 @@ class Firewall(BaseModel):
"""Forward client IP (resolver) subnet if no EDNS Client Subnet is sent."""

maximum_cache_ttl: float
"""Maximum DNS Cache TTL."""
"""Maximum DNS cache TTL.

This setting sets an upper bound on DNS TTLs for purposes of caching between DNS
Firewall and the upstream servers. Higher TTLs will be decreased to the maximum
defined here for caching purposes.
"""

minimum_cache_ttl: float
"""Minimum DNS Cache TTL."""
"""Minimum DNS cache TTL.

This setting sets a lower bound on DNS TTLs for purposes of caching between DNS
Firewall and the upstream servers. Lower TTLs will be increased to the minimum
defined here for caching purposes.
"""

modified_on: datetime
"""Last modification of DNS Firewall cluster."""
@@ -41,7 +51,11 @@ class Firewall(BaseModel):
"""Attack mitigation settings."""

negative_cache_ttl: Optional[float] = None
"""Negative DNS Cache TTL."""
"""Negative DNS cache TTL.

This setting controls how long DNS Firewall should cache negative responses
(e.g., NXDOMAIN) from the upstream servers.
"""

ratelimit: Optional[float] = None
"""
20 changes: 17 additions & 3 deletions src/cloudflare/types/dns/firewall_create_params.py
Original file line number Diff line number Diff line change
@@ -30,13 +30,27 @@ class FirewallCreateParams(TypedDict, total=False):
"""Forward client IP (resolver) subnet if no EDNS Client Subnet is sent."""

maximum_cache_ttl: float
"""Maximum DNS Cache TTL."""
"""Maximum DNS cache TTL.

This setting sets an upper bound on DNS TTLs for purposes of caching between DNS
Firewall and the upstream servers. Higher TTLs will be decreased to the maximum
defined here for caching purposes.
"""

minimum_cache_ttl: float
"""Minimum DNS Cache TTL."""
"""Minimum DNS cache TTL.

This setting sets a lower bound on DNS TTLs for purposes of caching between DNS
Firewall and the upstream servers. Lower TTLs will be increased to the minimum
defined here for caching purposes.
"""

negative_cache_ttl: Optional[float]
"""Negative DNS Cache TTL."""
"""Negative DNS cache TTL.

This setting controls how long DNS Firewall should cache negative responses
(e.g., NXDOMAIN) from the upstream servers.
"""

ratelimit: Optional[float]
"""
20 changes: 17 additions & 3 deletions src/cloudflare/types/dns/firewall_edit_params.py
Original file line number Diff line number Diff line change
@@ -28,10 +28,20 @@ class FirewallEditParams(TypedDict, total=False):
"""Forward client IP (resolver) subnet if no EDNS Client Subnet is sent."""

maximum_cache_ttl: Required[float]
"""Maximum DNS Cache TTL."""
"""Maximum DNS cache TTL.

This setting sets an upper bound on DNS TTLs for purposes of caching between DNS
Firewall and the upstream servers. Higher TTLs will be decreased to the maximum
defined here for caching purposes.
"""

minimum_cache_ttl: Required[float]
"""Minimum DNS Cache TTL."""
"""Minimum DNS cache TTL.

This setting sets a lower bound on DNS TTLs for purposes of caching between DNS
Firewall and the upstream servers. Lower TTLs will be increased to the minimum
defined here for caching purposes.
"""

name: Required[str]
"""DNS Firewall Cluster Name."""
@@ -42,7 +52,11 @@ class FirewallEditParams(TypedDict, total=False):
"""Attack mitigation settings."""

negative_cache_ttl: Optional[float]
"""Negative DNS Cache TTL."""
"""Negative DNS cache TTL.

This setting controls how long DNS Firewall should cache negative responses
(e.g., NXDOMAIN) from the upstream servers.
"""

ratelimit: Optional[float]
"""