Skip to content

Commit a129f4c

Browse files
chore(api): update composite API spec
1 parent f2397ba commit a129f4c

6 files changed

Lines changed: 4 additions & 39 deletions

File tree

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 2069
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-d15948d48797ef406cd3ddd5fd69313b2862201c2743c18c7d1f6d8eb22681ad.yml
3-
openapi_spec_hash: fc8069cd2e6f866c53d5e104bbebf50b
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-b40ef0d3c7a30a0ca93a1bba95d7969fa60f92acaae7828f96644f79555a48ac.yml
3+
openapi_spec_hash: ef9341ce7e7944a77985565e7750c372
44
config_hash: 34baf52354265046125f5324e4b2172b

src/cloudflare/resources/dns/settings/account/account.py

Lines changed: 2 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -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,

src/cloudflare/types/dns/settings/account_edit_params.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,6 @@ class AccountEditParams(TypedDict, total=False):
1212
account_id: Required[str]
1313
"""Identifier."""
1414

15-
enforce_dns_only: bool
16-
"""Whether to enforce DNS-only records for the entire account."""
17-
1815
zone_defaults: ZoneDefaults
1916

2017

src/cloudflare/types/dns/settings/account_edit_response.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -114,9 +114,3 @@ class ZoneDefaults(BaseModel):
114114

115115
class AccountEditResponse(BaseModel):
116116
zone_defaults: ZoneDefaults
117-
118-
enforce_dns_only: Optional[bool] = None
119-
"""Whether to enforce DNS-only records for the entire account.
120-
121-
Omitted when account settings are unavailable.
122-
"""

src/cloudflare/types/dns/settings/account_get_response.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -114,9 +114,3 @@ class ZoneDefaults(BaseModel):
114114

115115
class AccountGetResponse(BaseModel):
116116
zone_defaults: ZoneDefaults
117-
118-
enforce_dns_only: Optional[bool] = None
119-
"""Whether to enforce DNS-only records for the entire account.
120-
121-
Omitted when account settings are unavailable.
122-
"""

tests/api_resources/dns/settings/test_account.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ def test_method_edit(self, client: Cloudflare) -> None:
3030
def test_method_edit_with_all_params(self, client: Cloudflare) -> None:
3131
account = client.dns.settings.account.edit(
3232
account_id="023e105f4ecef8ad9ca31a8372d0c353",
33-
enforce_dns_only=False,
3433
zone_defaults={
3534
"flatten_all_cnames": False,
3635
"foundation_dns": False,
@@ -148,7 +147,6 @@ async def test_method_edit(self, async_client: AsyncCloudflare) -> None:
148147
async def test_method_edit_with_all_params(self, async_client: AsyncCloudflare) -> None:
149148
account = await async_client.dns.settings.account.edit(
150149
account_id="023e105f4ecef8ad9ca31a8372d0c353",
151-
enforce_dns_only=False,
152150
zone_defaults={
153151
"flatten_all_cnames": False,
154152
"foundation_dns": False,

0 commit comments

Comments
 (0)