|
2 | 2 |
|
3 | 3 | from __future__ import annotations |
4 | 4 |
|
5 | | -from typing import Any, Union, cast |
| 5 | +from typing import Any, List, Union, cast |
6 | 6 | from datetime import datetime |
7 | 7 | from typing_extensions import Literal |
8 | 8 |
|
@@ -82,7 +82,8 @@ def list( |
82 | 82 | page: float | NotGiven = NOT_GIVEN, |
83 | 83 | per_page: float | NotGiven = NOT_GIVEN, |
84 | 84 | status: Literal["inactive", "degraded", "healthy", "down"] | NotGiven = NOT_GIVEN, |
85 | | - tun_types: str | NotGiven = NOT_GIVEN, |
| 85 | + tun_types: List[Literal["cfd_tunnel", "warp_connector", "warp", "magic", "ip_sec", "gre", "cni"]] |
| 86 | + | NotGiven = NOT_GIVEN, |
86 | 87 | uuid: str | NotGiven = NOT_GIVEN, |
87 | 88 | was_active_at: Union[str, datetime] | NotGiven = NOT_GIVEN, |
88 | 89 | was_inactive_at: Union[str, datetime] | NotGiven = NOT_GIVEN, |
@@ -116,7 +117,7 @@ def list( |
116 | 117 | state), `healthy` (tunnel is active and able to serve traffic), or `down` |
117 | 118 | (tunnel can not serve traffic as it has no connections to the Cloudflare Edge). |
118 | 119 |
|
119 | | - tun_types: The types of tunnels to filter separated by a comma. |
| 120 | + tun_types: The types of tunnels to filter by, separated by commas. |
120 | 121 |
|
121 | 122 | uuid: UUID of the tunnel. |
122 | 123 |
|
@@ -200,7 +201,8 @@ def list( |
200 | 201 | page: float | NotGiven = NOT_GIVEN, |
201 | 202 | per_page: float | NotGiven = NOT_GIVEN, |
202 | 203 | status: Literal["inactive", "degraded", "healthy", "down"] | NotGiven = NOT_GIVEN, |
203 | | - tun_types: str | NotGiven = NOT_GIVEN, |
| 204 | + tun_types: List[Literal["cfd_tunnel", "warp_connector", "warp", "magic", "ip_sec", "gre", "cni"]] |
| 205 | + | NotGiven = NOT_GIVEN, |
204 | 206 | uuid: str | NotGiven = NOT_GIVEN, |
205 | 207 | was_active_at: Union[str, datetime] | NotGiven = NOT_GIVEN, |
206 | 208 | was_inactive_at: Union[str, datetime] | NotGiven = NOT_GIVEN, |
@@ -234,7 +236,7 @@ def list( |
234 | 236 | state), `healthy` (tunnel is active and able to serve traffic), or `down` |
235 | 237 | (tunnel can not serve traffic as it has no connections to the Cloudflare Edge). |
236 | 238 |
|
237 | | - tun_types: The types of tunnels to filter separated by a comma. |
| 239 | + tun_types: The types of tunnels to filter by, separated by commas. |
238 | 240 |
|
239 | 241 | uuid: UUID of the tunnel. |
240 | 242 |
|
|
0 commit comments