Skip to content

Commit

Permalink
feat(api): update via SDK Studio (#288)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-app[bot] authored and stainless-bot committed Apr 22, 2024
1 parent 14b8cac commit f4891c0
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion api.md
Original file line number Diff line number Diff line change
Expand Up @@ -5430,7 +5430,7 @@ Methods:
Types:

```python
from cloudflare.types.zero_trust import Tunnel, TunnelConnection, WARPConnectorTunnel
from cloudflare.types.zero_trust import Connection, Tunnel, WARPConnectorTunnel
```

Methods:
Expand Down
6 changes: 3 additions & 3 deletions src/cloudflare/types/warp_connector.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from typing_extensions import Literal

from .._models import BaseModel
from .zero_trust import TunnelConnection
from .zero_trust import Connection

__all__ = ["WARPConnector", "TunnelCfdTunnel", "TunnelWARPConnectorTunnel"]

Expand All @@ -17,7 +17,7 @@ class TunnelCfdTunnel(BaseModel):
account_tag: Optional[str] = None
"""Cloudflare account ID"""

connections: Optional[List[TunnelConnection]] = None
connections: Optional[List[Connection]] = None
"""The Cloudflare Tunnel connections between your origin and Cloudflare's edge."""

conns_active_at: Optional[datetime] = None
Expand Down Expand Up @@ -73,7 +73,7 @@ class TunnelWARPConnectorTunnel(BaseModel):
account_tag: Optional[str] = None
"""Cloudflare account ID"""

connections: Optional[List[TunnelConnection]] = None
connections: Optional[List[Connection]] = None
"""The Cloudflare Tunnel connections between your origin and Cloudflare's edge."""

conns_active_at: Optional[datetime] = None
Expand Down
2 changes: 1 addition & 1 deletion src/cloudflare/types/zero_trust/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
from .tunnel import Tunnel as Tunnel
from .ip_rule import IPRule as IPRule
from .azure_ad import AzureAD as AzureAD
from .connection import Connection as Connection
from .email_rule import EmailRule as EmailRule
from .group_rule import GroupRule as GroupRule
from .access_rule import AccessRule as AccessRule
Expand Down Expand Up @@ -34,7 +35,6 @@
from .gsuite_group_rule import GSuiteGroupRule as GSuiteGroupRule
from .identity_provider import IdentityProvider as IdentityProvider
from .scim_config_param import ScimConfigParam as ScimConfigParam
from .tunnel_connection import TunnelConnection as TunnelConnection
from .country_rule_param import CountryRuleParam as CountryRuleParam
from .ip_list_rule_param import IPListRuleParam as IPListRuleParam
from .login_design_param import LoginDesignParam as LoginDesignParam
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@

from ..._models import BaseModel

__all__ = ["TunnelConnection"]
__all__ = ["Connection"]


class TunnelConnection(BaseModel):
class Connection(BaseModel):
id: Optional[str] = None
"""UUID of the Cloudflare Tunnel connection."""

Expand Down
4 changes: 2 additions & 2 deletions src/cloudflare/types/zero_trust/tunnels/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from datetime import datetime

from ...._models import BaseModel
from ..tunnel_connection import TunnelConnection
from ..connection import Connection

__all__ = ["Client"]

Expand All @@ -22,7 +22,7 @@ class Client(BaseModel):
Used internally to sync cloudflared with the Zero Trust dashboard.
"""

conns: Optional[List[TunnelConnection]] = None
conns: Optional[List[Connection]] = None
"""The Cloudflare Tunnel connections between your origin and Cloudflare's edge."""

features: Optional[List[str]] = None
Expand Down

0 comments on commit f4891c0

Please sign in to comment.