@@ -41,7 +41,10 @@ def edit(
41
41
self ,
42
42
* ,
43
43
zone_id : str ,
44
+ foundation_dns : bool | NotGiven = NOT_GIVEN ,
45
+ multi_provider : bool | NotGiven = NOT_GIVEN ,
44
46
nameservers : NameserverParam | NotGiven = NOT_GIVEN ,
47
+ secondary_overrides : bool | NotGiven = NOT_GIVEN ,
45
48
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
46
49
# The extra values given here take precedence over values defined on the client or passed to this method.
47
50
extra_headers : Headers | None = None ,
@@ -55,8 +58,17 @@ def edit(
55
58
Args:
56
59
zone_id: Identifier
57
60
61
+ foundation_dns: Whether to enable Foundation DNS Advanced Nameservers on the zone.
62
+
63
+ multi_provider: Whether to enable multi-provider DNS, which causes Cloudflare to activate the
64
+ zone even when non-Cloudflare NS records exist, and to respect NS records at the
65
+ zone apex during outbound zone transfers.
66
+
58
67
nameservers: Settings determining the nameservers through which the zone should be available.
59
68
69
+ secondary_overrides: Allows a Secondary DNS zone to use (proxied) override records and CNAME
70
+ flattening at the zone apex.
71
+
60
72
extra_headers: Send extra headers
61
73
62
74
extra_query: Add additional query parameters to the request
@@ -69,7 +81,15 @@ def edit(
69
81
raise ValueError (f"Expected a non-empty value for `zone_id` but received { zone_id !r} " )
70
82
return self ._patch (
71
83
f"/zones/{ zone_id } /dns_settings" ,
72
- body = maybe_transform ({"nameservers" : nameservers }, dns_setting_edit_params .DNSSettingEditParams ),
84
+ body = maybe_transform (
85
+ {
86
+ "foundation_dns" : foundation_dns ,
87
+ "multi_provider" : multi_provider ,
88
+ "nameservers" : nameservers ,
89
+ "secondary_overrides" : secondary_overrides ,
90
+ },
91
+ dns_setting_edit_params .DNSSettingEditParams ,
92
+ ),
73
93
options = make_request_options (
74
94
extra_headers = extra_headers ,
75
95
extra_query = extra_query ,
@@ -133,7 +153,10 @@ async def edit(
133
153
self ,
134
154
* ,
135
155
zone_id : str ,
156
+ foundation_dns : bool | NotGiven = NOT_GIVEN ,
157
+ multi_provider : bool | NotGiven = NOT_GIVEN ,
136
158
nameservers : NameserverParam | NotGiven = NOT_GIVEN ,
159
+ secondary_overrides : bool | NotGiven = NOT_GIVEN ,
137
160
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
138
161
# The extra values given here take precedence over values defined on the client or passed to this method.
139
162
extra_headers : Headers | None = None ,
@@ -147,8 +170,17 @@ async def edit(
147
170
Args:
148
171
zone_id: Identifier
149
172
173
+ foundation_dns: Whether to enable Foundation DNS Advanced Nameservers on the zone.
174
+
175
+ multi_provider: Whether to enable multi-provider DNS, which causes Cloudflare to activate the
176
+ zone even when non-Cloudflare NS records exist, and to respect NS records at the
177
+ zone apex during outbound zone transfers.
178
+
150
179
nameservers: Settings determining the nameservers through which the zone should be available.
151
180
181
+ secondary_overrides: Allows a Secondary DNS zone to use (proxied) override records and CNAME
182
+ flattening at the zone apex.
183
+
152
184
extra_headers: Send extra headers
153
185
154
186
extra_query: Add additional query parameters to the request
@@ -162,7 +194,13 @@ async def edit(
162
194
return await self ._patch (
163
195
f"/zones/{ zone_id } /dns_settings" ,
164
196
body = await async_maybe_transform (
165
- {"nameservers" : nameservers }, dns_setting_edit_params .DNSSettingEditParams
197
+ {
198
+ "foundation_dns" : foundation_dns ,
199
+ "multi_provider" : multi_provider ,
200
+ "nameservers" : nameservers ,
201
+ "secondary_overrides" : secondary_overrides ,
202
+ },
203
+ dns_setting_edit_params .DNSSettingEditParams ,
166
204
),
167
205
options = make_request_options (
168
206
extra_headers = extra_headers ,
0 commit comments