diff --git a/api.md b/api.md index e0c7137075e..df675871040 100644 --- a/api.md +++ b/api.md @@ -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: diff --git a/src/cloudflare/types/warp_connector.py b/src/cloudflare/types/warp_connector.py index 2b449e055c9..33a4b1983b1 100644 --- a/src/cloudflare/types/warp_connector.py +++ b/src/cloudflare/types/warp_connector.py @@ -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"] @@ -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 @@ -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 diff --git a/src/cloudflare/types/zero_trust/__init__.py b/src/cloudflare/types/zero_trust/__init__.py index 2930717e831..6f258fdf90a 100644 --- a/src/cloudflare/types/zero_trust/__init__.py +++ b/src/cloudflare/types/zero_trust/__init__.py @@ -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 @@ -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 diff --git a/src/cloudflare/types/zero_trust/tunnel_connection.py b/src/cloudflare/types/zero_trust/connection.py similarity index 94% rename from src/cloudflare/types/zero_trust/tunnel_connection.py rename to src/cloudflare/types/zero_trust/connection.py index d1c6ac1e6fa..2232f4d460b 100644 --- a/src/cloudflare/types/zero_trust/tunnel_connection.py +++ b/src/cloudflare/types/zero_trust/connection.py @@ -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.""" diff --git a/src/cloudflare/types/zero_trust/tunnels/client.py b/src/cloudflare/types/zero_trust/tunnels/client.py index c77730f9f6a..cbeedebf117 100644 --- a/src/cloudflare/types/zero_trust/tunnels/client.py +++ b/src/cloudflare/types/zero_trust/tunnels/client.py @@ -4,7 +4,7 @@ from datetime import datetime from ...._models import BaseModel -from ..tunnel_connection import TunnelConnection +from ..connection import Connection __all__ = ["Client"] @@ -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