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): update via SDK Studio #834

Merged
merged 1 commit into from
Jun 5, 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
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