Skip to content

Commit 2bf9737

Browse files
feat(api): api update
1 parent 8619b77 commit 2bf9737

File tree

4 files changed

+5
-28
lines changed

4 files changed

+5
-28
lines changed

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 1752
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-38118aeb8d98024487e7ed131f71513d92cc2755d1fa142e0595a8f16da253f7.yml
3-
openapi_spec_hash: ac59cca36c7c1984186692bead828e03
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-d66cccbb6e68a04a563b4b97948a510c4575857b8ca14bd89490ad4a67dfcf98.yml
3+
openapi_spec_hash: 64ed30f8af381273583738989e6019bc
44
config_hash: 9e096c169b43682069730a4291c62d4a

src/cloudflare/types/zero_trust/gateway/gateway_configuration_settings.py

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33
from typing import Optional
44
from typing_extensions import Literal
55

6-
from pydantic import Field as FieldInfo
7-
86
from ...._models import BaseModel
97
from .tls_settings import TLSSettings
108
from .fips_settings import FipsSettings
@@ -17,12 +15,7 @@
1715
from .browser_isolation_settings import BrowserIsolationSettings
1816
from .custom_certificate_settings import CustomCertificateSettings
1917

20-
__all__ = ["GatewayConfigurationSettings", "AppControlSettings", "Certificate", "HostSelector", "Sandbox"]
21-
22-
23-
class AppControlSettings(BaseModel):
24-
enabled: Optional[bool] = None
25-
"""Enable App Control"""
18+
__all__ = ["GatewayConfigurationSettings", "Certificate", "HostSelector", "Sandbox"]
2619

2720

2821
class Certificate(BaseModel):
@@ -54,9 +47,6 @@ class GatewayConfigurationSettings(BaseModel):
5447
antivirus: Optional[AntiVirusSettings] = None
5548
"""Anti-virus settings."""
5649

57-
app_control_settings: Optional[AppControlSettings] = FieldInfo(alias="app-control-settings", default=None)
58-
"""Setting to enable App Control"""
59-
6050
block_page: Optional[BlockPageSettings] = None
6151
"""Block page layout settings."""
6252

src/cloudflare/types/zero_trust/gateway/gateway_configuration_settings_param.py

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,8 @@
33
from __future__ import annotations
44

55
from typing import Optional
6-
from typing_extensions import Literal, Required, Annotated, TypedDict
6+
from typing_extensions import Literal, Required, TypedDict
77

8-
from ...._utils import PropertyInfo
98
from .tls_settings_param import TLSSettingsParam
109
from .fips_settings_param import FipsSettingsParam
1110
from .protocol_detection_param import ProtocolDetectionParam
@@ -17,12 +16,7 @@
1716
from .browser_isolation_settings_param import BrowserIsolationSettingsParam
1817
from .custom_certificate_settings_param import CustomCertificateSettingsParam
1918

20-
__all__ = ["GatewayConfigurationSettingsParam", "AppControlSettings", "Certificate", "HostSelector", "Sandbox"]
21-
22-
23-
class AppControlSettings(TypedDict, total=False):
24-
enabled: bool
25-
"""Enable App Control"""
19+
__all__ = ["GatewayConfigurationSettingsParam", "Certificate", "HostSelector", "Sandbox"]
2620

2721

2822
class Certificate(TypedDict, total=False):
@@ -54,9 +48,6 @@ class GatewayConfigurationSettingsParam(TypedDict, total=False):
5448
antivirus: Optional[AntiVirusSettingsParam]
5549
"""Anti-virus settings."""
5650

57-
app_control_settings: Annotated[Optional[AppControlSettings], PropertyInfo(alias="app-control-settings")]
58-
"""Setting to enable App Control"""
59-
6051
block_page: Optional[BlockPageSettingsParam]
6152
"""Block page layout settings."""
6253

tests/api_resources/zero_trust/gateway/test_configurations.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ def test_method_update_with_all_params(self, client: Cloudflare) -> None:
4545
"support_url": "support_url",
4646
},
4747
},
48-
"app_control_settings": {"enabled": False},
4948
"block_page": {
5049
"background_color": "background_color",
5150
"enabled": True,
@@ -138,7 +137,6 @@ def test_method_edit_with_all_params(self, client: Cloudflare) -> None:
138137
"support_url": "support_url",
139138
},
140139
},
141-
"app_control_settings": {"enabled": False},
142140
"block_page": {
143141
"background_color": "background_color",
144142
"enabled": True,
@@ -275,7 +273,6 @@ async def test_method_update_with_all_params(self, async_client: AsyncCloudflare
275273
"support_url": "support_url",
276274
},
277275
},
278-
"app_control_settings": {"enabled": False},
279276
"block_page": {
280277
"background_color": "background_color",
281278
"enabled": True,
@@ -368,7 +365,6 @@ async def test_method_edit_with_all_params(self, async_client: AsyncCloudflare)
368365
"support_url": "support_url",
369366
},
370367
},
371-
"app_control_settings": {"enabled": False},
372368
"block_page": {
373369
"background_color": "background_color",
374370
"enabled": True,

0 commit comments

Comments
 (0)