|
4 | 4 |
|
5 | 5 | from typing import Any, Union, cast
|
6 | 6 | from datetime import datetime
|
| 7 | +from typing_extensions import Literal |
7 | 8 |
|
8 | 9 | import httpx
|
9 | 10 |
|
@@ -105,6 +106,7 @@ def list(
|
105 | 106 | name: str | NotGiven = NOT_GIVEN,
|
106 | 107 | page: float | NotGiven = NOT_GIVEN,
|
107 | 108 | per_page: float | NotGiven = NOT_GIVEN,
|
| 109 | + status: Literal["inactive", "degraded", "healthy", "down"] | NotGiven = NOT_GIVEN, |
108 | 110 | uuid: str | NotGiven = NOT_GIVEN,
|
109 | 111 | was_active_at: Union[str, datetime] | NotGiven = NOT_GIVEN,
|
110 | 112 | was_inactive_at: Union[str, datetime] | NotGiven = NOT_GIVEN,
|
@@ -133,6 +135,11 @@ def list(
|
133 | 135 |
|
134 | 136 | per_page: Number of results to display.
|
135 | 137 |
|
| 138 | + status: The status of the tunnel. Valid values are `inactive` (tunnel has never been |
| 139 | + run), `degraded` (tunnel is active and able to serve traffic but in an unhealthy |
| 140 | + state), `healthy` (tunnel is active and able to serve traffic), or `down` |
| 141 | + (tunnel can not serve traffic as it has no connections to the Cloudflare Edge). |
| 142 | +
|
136 | 143 | uuid: UUID of the tunnel.
|
137 | 144 |
|
138 | 145 | extra_headers: Send extra headers
|
@@ -162,6 +169,7 @@ def list(
|
162 | 169 | "name": name,
|
163 | 170 | "page": page,
|
164 | 171 | "per_page": per_page,
|
| 172 | + "status": status, |
165 | 173 | "uuid": uuid,
|
166 | 174 | "was_active_at": was_active_at,
|
167 | 175 | "was_inactive_at": was_inactive_at,
|
@@ -456,6 +464,7 @@ def list(
|
456 | 464 | name: str | NotGiven = NOT_GIVEN,
|
457 | 465 | page: float | NotGiven = NOT_GIVEN,
|
458 | 466 | per_page: float | NotGiven = NOT_GIVEN,
|
| 467 | + status: Literal["inactive", "degraded", "healthy", "down"] | NotGiven = NOT_GIVEN, |
459 | 468 | uuid: str | NotGiven = NOT_GIVEN,
|
460 | 469 | was_active_at: Union[str, datetime] | NotGiven = NOT_GIVEN,
|
461 | 470 | was_inactive_at: Union[str, datetime] | NotGiven = NOT_GIVEN,
|
@@ -484,6 +493,11 @@ def list(
|
484 | 493 |
|
485 | 494 | per_page: Number of results to display.
|
486 | 495 |
|
| 496 | + status: The status of the tunnel. Valid values are `inactive` (tunnel has never been |
| 497 | + run), `degraded` (tunnel is active and able to serve traffic but in an unhealthy |
| 498 | + state), `healthy` (tunnel is active and able to serve traffic), or `down` |
| 499 | + (tunnel can not serve traffic as it has no connections to the Cloudflare Edge). |
| 500 | +
|
487 | 501 | uuid: UUID of the tunnel.
|
488 | 502 |
|
489 | 503 | extra_headers: Send extra headers
|
@@ -513,6 +527,7 @@ def list(
|
513 | 527 | "name": name,
|
514 | 528 | "page": page,
|
515 | 529 | "per_page": per_page,
|
| 530 | + "status": status, |
516 | 531 | "uuid": uuid,
|
517 | 532 | "was_active_at": was_active_at,
|
518 | 533 | "was_inactive_at": was_inactive_at,
|
|
0 commit comments