33from __future__ import annotations
44
55from typing import Type , Optional , cast
6+ from typing_extensions import Literal
67
78import httpx
89
@@ -46,7 +47,10 @@ def edit(
4647 foundation_dns : bool | NotGiven = NOT_GIVEN ,
4748 multi_provider : bool | NotGiven = NOT_GIVEN ,
4849 nameservers : NameserverParam | NotGiven = NOT_GIVEN ,
50+ ns_ttl : float | NotGiven = NOT_GIVEN ,
4951 secondary_overrides : bool | NotGiven = NOT_GIVEN ,
52+ soa : dns_setting_edit_params .Soa | NotGiven = NOT_GIVEN ,
53+ zone_mode : Literal ["standard" , "cdn_only" , "dns_only" ] | NotGiven = NOT_GIVEN ,
5054 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
5155 # The extra values given here take precedence over values defined on the client or passed to this method.
5256 extra_headers : Headers | None = None ,
@@ -68,9 +72,15 @@ def edit(
6872
6973 nameservers: Settings determining the nameservers through which the zone should be available.
7074
75+ ns_ttl: The time to live (TTL) of the zone's nameserver (NS) records.
76+
7177 secondary_overrides: Allows a Secondary DNS zone to use (proxied) override records and CNAME
7278 flattening at the zone apex.
7379
80+ soa: Components of the zone's SOA record.
81+
82+ zone_mode: Whether the zone mode is a regular or CDN/DNS only zone.
83+
7484 extra_headers: Send extra headers
7585
7686 extra_query: Add additional query parameters to the request
@@ -88,7 +98,10 @@ def edit(
8898 "foundation_dns" : foundation_dns ,
8999 "multi_provider" : multi_provider ,
90100 "nameservers" : nameservers ,
101+ "ns_ttl" : ns_ttl ,
91102 "secondary_overrides" : secondary_overrides ,
103+ "soa" : soa ,
104+ "zone_mode" : zone_mode ,
92105 },
93106 dns_setting_edit_params .DNSSettingEditParams ,
94107 ),
@@ -158,7 +171,10 @@ async def edit(
158171 foundation_dns : bool | NotGiven = NOT_GIVEN ,
159172 multi_provider : bool | NotGiven = NOT_GIVEN ,
160173 nameservers : NameserverParam | NotGiven = NOT_GIVEN ,
174+ ns_ttl : float | NotGiven = NOT_GIVEN ,
161175 secondary_overrides : bool | NotGiven = NOT_GIVEN ,
176+ soa : dns_setting_edit_params .Soa | NotGiven = NOT_GIVEN ,
177+ zone_mode : Literal ["standard" , "cdn_only" , "dns_only" ] | NotGiven = NOT_GIVEN ,
162178 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
163179 # The extra values given here take precedence over values defined on the client or passed to this method.
164180 extra_headers : Headers | None = None ,
@@ -180,9 +196,15 @@ async def edit(
180196
181197 nameservers: Settings determining the nameservers through which the zone should be available.
182198
199+ ns_ttl: The time to live (TTL) of the zone's nameserver (NS) records.
200+
183201 secondary_overrides: Allows a Secondary DNS zone to use (proxied) override records and CNAME
184202 flattening at the zone apex.
185203
204+ soa: Components of the zone's SOA record.
205+
206+ zone_mode: Whether the zone mode is a regular or CDN/DNS only zone.
207+
186208 extra_headers: Send extra headers
187209
188210 extra_query: Add additional query parameters to the request
@@ -200,7 +222,10 @@ async def edit(
200222 "foundation_dns" : foundation_dns ,
201223 "multi_provider" : multi_provider ,
202224 "nameservers" : nameservers ,
225+ "ns_ttl" : ns_ttl ,
203226 "secondary_overrides" : secondary_overrides ,
227+ "soa" : soa ,
228+ "zone_mode" : zone_mode ,
204229 },
205230 dns_setting_edit_params .DNSSettingEditParams ,
206231 ),
0 commit comments