@@ -61,7 +61,6 @@ def edit(
6161 self ,
6262 * ,
6363 account_id : str ,
64- enforce_dns_only : bool | Omit = omit ,
6564 zone_defaults : account_edit_params .ZoneDefaults | Omit = omit ,
6665 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
6766 # The extra values given here take precedence over values defined on the client or passed to this method.
@@ -76,8 +75,6 @@ def edit(
7675 Args:
7776 account_id: Identifier.
7877
79- enforce_dns_only: Whether to enforce DNS-only records for the entire account.
80-
8178 extra_headers: Send extra headers
8279
8380 extra_query: Add additional query parameters to the request
@@ -90,13 +87,7 @@ def edit(
9087 raise ValueError (f"Expected a non-empty value for `account_id` but received { account_id !r} " )
9188 return self ._patch (
9289 f"/accounts/{ account_id } /dns_settings" ,
93- body = maybe_transform (
94- {
95- "enforce_dns_only" : enforce_dns_only ,
96- "zone_defaults" : zone_defaults ,
97- },
98- account_edit_params .AccountEditParams ,
99- ),
90+ body = maybe_transform ({"zone_defaults" : zone_defaults }, account_edit_params .AccountEditParams ),
10091 options = make_request_options (
10192 extra_headers = extra_headers ,
10293 extra_query = extra_query ,
@@ -175,7 +166,6 @@ async def edit(
175166 self ,
176167 * ,
177168 account_id : str ,
178- enforce_dns_only : bool | Omit = omit ,
179169 zone_defaults : account_edit_params .ZoneDefaults | Omit = omit ,
180170 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
181171 # The extra values given here take precedence over values defined on the client or passed to this method.
@@ -190,8 +180,6 @@ async def edit(
190180 Args:
191181 account_id: Identifier.
192182
193- enforce_dns_only: Whether to enforce DNS-only records for the entire account.
194-
195183 extra_headers: Send extra headers
196184
197185 extra_query: Add additional query parameters to the request
@@ -204,13 +192,7 @@ async def edit(
204192 raise ValueError (f"Expected a non-empty value for `account_id` but received { account_id !r} " )
205193 return await self ._patch (
206194 f"/accounts/{ account_id } /dns_settings" ,
207- body = await async_maybe_transform (
208- {
209- "enforce_dns_only" : enforce_dns_only ,
210- "zone_defaults" : zone_defaults ,
211- },
212- account_edit_params .AccountEditParams ,
213- ),
195+ body = await async_maybe_transform ({"zone_defaults" : zone_defaults }, account_edit_params .AccountEditParams ),
214196 options = make_request_options (
215197 extra_headers = extra_headers ,
216198 extra_query = extra_query ,
0 commit comments