Skip to content

Commit

Permalink
feat(api): update via SDK Studio (#301)
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 0e084cf commit c5ea97f
Show file tree
Hide file tree
Showing 13 changed files with 19 additions and 111 deletions.
2 changes: 1 addition & 1 deletion api.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
```python
from cloudflare.types import (
AuditLog,
CloudflareTunnel,
ErrorData,
Identifier,
LoadBalancerPreview,
PaginationInfo,
ResponseInfo,
Result,
Tunnel,
)
```

Expand Down
2 changes: 1 addition & 1 deletion src/cloudflare/types/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,12 @@
from .origin import Origin as Origin
from .shared import (
Result as Result,
Tunnel as Tunnel,
AuditLog as AuditLog,
ErrorData as ErrorData,
Identifier as Identifier,
ResponseInfo as ResponseInfo,
PaginationInfo as PaginationInfo,
CloudflareTunnel as CloudflareTunnel,
LoadBalancerPreview as LoadBalancerPreview,
)
from .submit import Submit as Submit
Expand Down
2 changes: 1 addition & 1 deletion src/cloudflare/types/shared/__init__.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

from .result import Result as Result
from .tunnel import Tunnel as Tunnel
from .audit_log import AuditLog as AuditLog
from .error_data import ErrorData as ErrorData
from .identifier import Identifier as Identifier
from .response_info import ResponseInfo as ResponseInfo
from .pagination_info import PaginationInfo as PaginationInfo
from .cloudflare_tunnel import CloudflareTunnel as CloudflareTunnel
from .load_balancer_preview import LoadBalancerPreview as LoadBalancerPreview
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

from ..._models import BaseModel

__all__ = ["Tunnel", "Connection"]
__all__ = ["CloudflareTunnel", "Connection"]


class Connection(BaseModel):
Expand Down Expand Up @@ -40,7 +40,7 @@ class Connection(BaseModel):
"""UUID of the Cloudflare Tunnel connection."""


class Tunnel(BaseModel):
class CloudflareTunnel(BaseModel):
id: Optional[str] = None
"""UUID of the tunnel."""

Expand Down
3 changes: 0 additions & 3 deletions src/cloudflare/types/shared_params/__init__.py

This file was deleted.

89 changes: 0 additions & 89 deletions src/cloudflare/types/shared_params/tunnel.py

This file was deleted.

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

from .shared import Tunnel
from .shared import CloudflareTunnel
from .._models import BaseModel

__all__ = ["WARPConnectorCreateResponse", "TunnelWARPConnectorTunnel", "TunnelWARPConnectorTunnelConnection"]
Expand Down Expand Up @@ -91,4 +91,4 @@ class TunnelWARPConnectorTunnel(BaseModel):
"""The type of tunnel."""


WARPConnectorCreateResponse = Union[Tunnel, TunnelWARPConnectorTunnel]
WARPConnectorCreateResponse = Union[CloudflareTunnel, TunnelWARPConnectorTunnel]
4 changes: 2 additions & 2 deletions src/cloudflare/types/warp_connector_delete_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from datetime import datetime
from typing_extensions import Literal

from .shared import Tunnel
from .shared import CloudflareTunnel
from .._models import BaseModel

__all__ = ["WARPConnectorDeleteResponse", "TunnelWARPConnectorTunnel", "TunnelWARPConnectorTunnelConnection"]
Expand Down Expand Up @@ -91,4 +91,4 @@ class TunnelWARPConnectorTunnel(BaseModel):
"""The type of tunnel."""


WARPConnectorDeleteResponse = Union[Tunnel, TunnelWARPConnectorTunnel]
WARPConnectorDeleteResponse = Union[CloudflareTunnel, TunnelWARPConnectorTunnel]
4 changes: 2 additions & 2 deletions src/cloudflare/types/warp_connector_edit_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from datetime import datetime
from typing_extensions import Literal

from .shared import Tunnel
from .shared import CloudflareTunnel
from .._models import BaseModel

__all__ = ["WARPConnectorEditResponse", "TunnelWARPConnectorTunnel", "TunnelWARPConnectorTunnelConnection"]
Expand Down Expand Up @@ -91,4 +91,4 @@ class TunnelWARPConnectorTunnel(BaseModel):
"""The type of tunnel."""


WARPConnectorEditResponse = Union[Tunnel, TunnelWARPConnectorTunnel]
WARPConnectorEditResponse = Union[CloudflareTunnel, TunnelWARPConnectorTunnel]
4 changes: 2 additions & 2 deletions src/cloudflare/types/warp_connector_get_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from datetime import datetime
from typing_extensions import Literal

from .shared import Tunnel
from .shared import CloudflareTunnel
from .._models import BaseModel

__all__ = ["WARPConnectorGetResponse", "TunnelWARPConnectorTunnel", "TunnelWARPConnectorTunnelConnection"]
Expand Down Expand Up @@ -91,4 +91,4 @@ class TunnelWARPConnectorTunnel(BaseModel):
"""The type of tunnel."""


WARPConnectorGetResponse = Union[Tunnel, TunnelWARPConnectorTunnel]
WARPConnectorGetResponse = Union[CloudflareTunnel, TunnelWARPConnectorTunnel]
4 changes: 2 additions & 2 deletions src/cloudflare/types/warp_connector_list_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from datetime import datetime
from typing_extensions import Literal

from .shared import Tunnel
from .shared import CloudflareTunnel
from .._models import BaseModel

__all__ = ["WARPConnectorListResponse", "TunnelWARPConnectorTunnel", "TunnelWARPConnectorTunnelConnection"]
Expand Down Expand Up @@ -91,4 +91,4 @@ class TunnelWARPConnectorTunnel(BaseModel):
"""The type of tunnel."""


WARPConnectorListResponse = Union[Tunnel, TunnelWARPConnectorTunnel]
WARPConnectorListResponse = Union[CloudflareTunnel, TunnelWARPConnectorTunnel]
4 changes: 2 additions & 2 deletions src/cloudflare/types/zero_trust/tunnel_edit_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from datetime import datetime
from typing_extensions import Literal

from ..shared import Tunnel
from ..shared import CloudflareTunnel
from ..._models import BaseModel

__all__ = ["TunnelEditResponse", "TunnelWARPConnectorTunnel", "TunnelWARPConnectorTunnelConnection"]
Expand Down Expand Up @@ -91,4 +91,4 @@ class TunnelWARPConnectorTunnel(BaseModel):
"""The type of tunnel."""


TunnelEditResponse = Union[Tunnel, TunnelWARPConnectorTunnel]
TunnelEditResponse = Union[CloudflareTunnel, TunnelWARPConnectorTunnel]
4 changes: 2 additions & 2 deletions src/cloudflare/types/zero_trust/tunnel_list_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from datetime import datetime
from typing_extensions import Literal

from ..shared import Tunnel
from ..shared import CloudflareTunnel
from ..._models import BaseModel

__all__ = ["TunnelListResponse", "TunnelWARPConnectorTunnel", "TunnelWARPConnectorTunnelConnection"]
Expand Down Expand Up @@ -91,4 +91,4 @@ class TunnelWARPConnectorTunnel(BaseModel):
"""The type of tunnel."""


TunnelListResponse = Union[Tunnel, TunnelWARPConnectorTunnel]
TunnelListResponse = Union[CloudflareTunnel, TunnelWARPConnectorTunnel]

0 comments on commit c5ea97f

Please sign in to comment.