Skip to content

Commit

Permalink
feat(api): update via SDK Studio (#834)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-app[bot] authored Jun 5, 2024
1 parent bee042c commit 5dd5983
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions src/cloudflare/resources/zones/dns_settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def edit(
nameservers: NameserverParam | NotGiven = NOT_GIVEN,
ns_ttl: float | NotGiven = NOT_GIVEN,
secondary_overrides: bool | NotGiven = NOT_GIVEN,
soa: dns_setting_edit_params.Soa | NotGiven = NOT_GIVEN,
soa: dns_setting_edit_params.SOA | NotGiven = NOT_GIVEN,
zone_mode: Literal["standard", "cdn_only", "dns_only"] | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
Expand Down Expand Up @@ -173,7 +173,7 @@ async def edit(
nameservers: NameserverParam | NotGiven = NOT_GIVEN,
ns_ttl: float | NotGiven = NOT_GIVEN,
secondary_overrides: bool | NotGiven = NOT_GIVEN,
soa: dns_setting_edit_params.Soa | NotGiven = NOT_GIVEN,
soa: dns_setting_edit_params.SOA | NotGiven = NOT_GIVEN,
zone_mode: Literal["standard", "cdn_only", "dns_only"] | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
Expand Down
6 changes: 3 additions & 3 deletions src/cloudflare/types/zones/dns_setting.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@
from ..._models import BaseModel
from .nameserver import Nameserver

__all__ = ["DNSSetting", "Soa"]
__all__ = ["DNSSetting", "SOA"]


class Soa(BaseModel):
class SOA(BaseModel):
expire: float
"""
Time in seconds of being unable to query the primary server after which
Expand Down Expand Up @@ -69,7 +69,7 @@ class DNSSetting(BaseModel):
flattening at the zone apex.
"""

soa: Optional[Soa] = None
soa: Optional[SOA] = None
"""Components of the zone's SOA record."""

zone_mode: Optional[Literal["standard", "cdn_only", "dns_only"]] = None
Expand Down
6 changes: 3 additions & 3 deletions src/cloudflare/types/zones/dns_setting_edit_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

from .nameserver_param import NameserverParam

__all__ = ["DNSSettingEditParams", "Soa"]
__all__ = ["DNSSettingEditParams", "SOA"]


class DNSSettingEditParams(TypedDict, total=False):
Expand Down Expand Up @@ -37,14 +37,14 @@ class DNSSettingEditParams(TypedDict, total=False):
flattening at the zone apex.
"""

soa: Soa
soa: SOA
"""Components of the zone's SOA record."""

zone_mode: Literal["standard", "cdn_only", "dns_only"]
"""Whether the zone mode is a regular or CDN/DNS only zone."""


class Soa(TypedDict, total=False):
class SOA(TypedDict, total=False):
expire: Required[float]
"""
Time in seconds of being unable to query the primary server after which
Expand Down

0 comments on commit 5dd5983

Please sign in to comment.