diff --git a/api.md b/api.md index 682434088174..6ab9d6562277 100644 --- a/api.md +++ b/api.md @@ -1745,7 +1745,7 @@ from cloudflare.types.firewall import ( Lockdown, LockdownCIDRConfiguration, LockdownIPConfiguration, - URLs, + LockdownURL, LockdownDeleteResponse, ) ``` @@ -1830,8 +1830,8 @@ Types: ```python from cloudflare.types.firewall.waf import ( Override, + OverrideURL, RewriteAction, - URLs, WAFRule, OverrideDeleteResponse, ) diff --git a/src/cloudflare/types/firewall/__init__.py b/src/cloudflare/types/firewall/__init__.py index bf5c4b7af42f..34842db5dd60 100644 --- a/src/cloudflare/types/firewall/__init__.py +++ b/src/cloudflare/types/firewall/__init__.py @@ -2,9 +2,9 @@ from __future__ import annotations -from .urls import URLs as URLs from .lockdown import Lockdown as Lockdown from .products import Products as Products +from .lockdown_url import LockdownURL as LockdownURL from .configuration import Configuration as Configuration from .firewall_rule import FirewallRule as FirewallRule from .deleted_filter import DeletedFilter as DeletedFilter diff --git a/src/cloudflare/types/firewall/lockdown.py b/src/cloudflare/types/firewall/lockdown.py index b8f42613b70b..7a1ea7038b59 100644 --- a/src/cloudflare/types/firewall/lockdown.py +++ b/src/cloudflare/types/firewall/lockdown.py @@ -3,8 +3,8 @@ from typing import List from datetime import datetime -from .urls import URLs from ..._models import BaseModel +from .lockdown_url import LockdownURL from .configuration import Configuration __all__ = ["Lockdown"] @@ -33,7 +33,7 @@ class Lockdown(BaseModel): paused: bool """When true, indicates that the rule is currently paused.""" - urls: List[URLs] + urls: List[LockdownURL] """The URLs to include in the rule definition. You can use wildcards. Each entered URL will be escaped before use, which means diff --git a/src/cloudflare/types/firewall/urls.py b/src/cloudflare/types/firewall/lockdown_url.py similarity index 66% rename from src/cloudflare/types/firewall/urls.py rename to src/cloudflare/types/firewall/lockdown_url.py index dff15d0b9a65..0a1b07bf3a30 100644 --- a/src/cloudflare/types/firewall/urls.py +++ b/src/cloudflare/types/firewall/lockdown_url.py @@ -1,6 +1,6 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -__all__ = ["URLs"] +__all__ = ["LockdownURL"] -URLs = str +LockdownURL = str diff --git a/src/cloudflare/types/firewall/waf/__init__.py b/src/cloudflare/types/firewall/waf/__init__.py index af8641a58cd3..a6f42971f3e2 100644 --- a/src/cloudflare/types/firewall/waf/__init__.py +++ b/src/cloudflare/types/firewall/waf/__init__.py @@ -2,9 +2,9 @@ from __future__ import annotations -from .urls import URLs as URLs from .override import Override as Override from .waf_rule import WAFRule as WAFRule +from .override_url import OverrideURL as OverrideURL from .rewrite_action import RewriteAction as RewriteAction from .package_list_params import PackageListParams as PackageListParams from .override_list_params import OverrideListParams as OverrideListParams diff --git a/src/cloudflare/types/firewall/waf/override.py b/src/cloudflare/types/firewall/waf/override.py index 134d259f80b2..a758b89d18be 100644 --- a/src/cloudflare/types/firewall/waf/override.py +++ b/src/cloudflare/types/firewall/waf/override.py @@ -2,9 +2,9 @@ from typing import Dict, List, Optional -from .urls import URLs from .waf_rule import WAFRule from ...._models import BaseModel +from .override_url import OverrideURL from .rewrite_action import RewriteAction __all__ = ["Override"] @@ -51,7 +51,7 @@ class Override(BaseModel): override, you must provide a `groups` object or a `rules` object. """ - urls: Optional[List[URLs]] = None + urls: Optional[List[OverrideURL]] = None """The URLs to include in the current WAF override. You can use wildcards. Each entered URL will be escaped before use, which means diff --git a/src/cloudflare/types/firewall/waf/urls.py b/src/cloudflare/types/firewall/waf/override_url.py similarity index 66% rename from src/cloudflare/types/firewall/waf/urls.py rename to src/cloudflare/types/firewall/waf/override_url.py index dff15d0b9a65..f18aa215408f 100644 --- a/src/cloudflare/types/firewall/waf/urls.py +++ b/src/cloudflare/types/firewall/waf/override_url.py @@ -1,6 +1,6 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -__all__ = ["URLs"] +__all__ = ["OverrideURL"] -URLs = str +OverrideURL = str