Skip to content

Commit

Permalink
feat(api): update via SDK Studio (#247)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-app[bot] authored Apr 9, 2024
1 parent 106db2e commit ec10b08
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 12 deletions.
4 changes: 2 additions & 2 deletions api.md
Original file line number Diff line number Diff line change
Expand Up @@ -1745,7 +1745,7 @@ from cloudflare.types.firewall import (
Lockdown,
LockdownCIDRConfiguration,
LockdownIPConfiguration,
URLs,
LockdownURL,
LockdownDeleteResponse,
)
```
Expand Down Expand Up @@ -1830,8 +1830,8 @@ Types:
```python
from cloudflare.types.firewall.waf import (
Override,
OverrideURL,
RewriteAction,
URLs,
WAFRule,
OverrideDeleteResponse,
)
Expand Down
2 changes: 1 addition & 1 deletion src/cloudflare/types/firewall/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions src/cloudflare/types/firewall/lockdown.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand Down Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion src/cloudflare/types/firewall/waf/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions src/cloudflare/types/firewall/waf/override.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand Down Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit ec10b08

Please sign in to comment.