@@ -61,6 +61,7 @@ def edit(
6161 self ,
6262 * ,
6363 account_id : str | None = None ,
64+ enforce_dns_only : bool | Omit = omit ,
6465 zone_defaults : account_edit_params .ZoneDefaults | Omit = omit ,
6566 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
6667 # The extra values given here take precedence over values defined on the client or passed to this method.
@@ -75,6 +76,12 @@ def edit(
7576 Args:
7677 account_id: Identifier.
7778
79+ enforce_dns_only: When enabled, forces all proxied DNS records in the account to behave as
80+ DNS-only at the edge, regardless of each record's individual proxy setting. Note
81+ that this account-level override does not modify the records themselves; it only
82+ affects how they are served at the edge. See more on
83+ [Enforce DNS-only](https://developers.cloudflare.com/dns/proxy-status/enforce-dns-only).
84+
7885 extra_headers: Send extra headers
7986
8087 extra_query: Add additional query parameters to the request
@@ -89,7 +96,13 @@ def edit(
8996 raise ValueError (f"Expected a non-empty value for `account_id` but received { account_id !r} " )
9097 return self ._patch (
9198 path_template ("/accounts/{account_id}/dns_settings" , account_id = account_id ),
92- body = maybe_transform ({"zone_defaults" : zone_defaults }, account_edit_params .AccountEditParams ),
99+ body = maybe_transform (
100+ {
101+ "enforce_dns_only" : enforce_dns_only ,
102+ "zone_defaults" : zone_defaults ,
103+ },
104+ account_edit_params .AccountEditParams ,
105+ ),
93106 options = make_request_options (
94107 extra_headers = extra_headers ,
95108 extra_query = extra_query ,
@@ -170,6 +183,7 @@ async def edit(
170183 self ,
171184 * ,
172185 account_id : str | None = None ,
186+ enforce_dns_only : bool | Omit = omit ,
173187 zone_defaults : account_edit_params .ZoneDefaults | Omit = omit ,
174188 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
175189 # The extra values given here take precedence over values defined on the client or passed to this method.
@@ -184,6 +198,12 @@ async def edit(
184198 Args:
185199 account_id: Identifier.
186200
201+ enforce_dns_only: When enabled, forces all proxied DNS records in the account to behave as
202+ DNS-only at the edge, regardless of each record's individual proxy setting. Note
203+ that this account-level override does not modify the records themselves; it only
204+ affects how they are served at the edge. See more on
205+ [Enforce DNS-only](https://developers.cloudflare.com/dns/proxy-status/enforce-dns-only).
206+
187207 extra_headers: Send extra headers
188208
189209 extra_query: Add additional query parameters to the request
@@ -198,7 +218,13 @@ async def edit(
198218 raise ValueError (f"Expected a non-empty value for `account_id` but received { account_id !r} " )
199219 return await self ._patch (
200220 path_template ("/accounts/{account_id}/dns_settings" , account_id = account_id ),
201- body = await async_maybe_transform ({"zone_defaults" : zone_defaults }, account_edit_params .AccountEditParams ),
221+ body = await async_maybe_transform (
222+ {
223+ "enforce_dns_only" : enforce_dns_only ,
224+ "zone_defaults" : zone_defaults ,
225+ },
226+ account_edit_params .AccountEditParams ,
227+ ),
202228 options = make_request_options (
203229 extra_headers = extra_headers ,
204230 extra_query = extra_query ,
0 commit comments