|
3 | 3 | from __future__ import annotations
|
4 | 4 |
|
5 | 5 | from typing import List, Type, Optional, cast
|
6 |
| -from typing_extensions import Literal |
7 | 6 |
|
8 | 7 | import httpx
|
9 | 8 |
|
10 | 9 | from ...types import (
|
11 | 10 | Healthcheck,
|
| 11 | + CheckRegionItem, |
| 12 | + TcpConfigurationParam, |
| 13 | + HTTPConfigurationParam, |
12 | 14 | HealthcheckDeleteResponse,
|
13 | 15 | healthcheck_edit_params,
|
14 | 16 | healthcheck_create_params,
|
@@ -65,35 +67,15 @@ def create(
|
65 | 67 | zone_id: str,
|
66 | 68 | address: str,
|
67 | 69 | name: str,
|
68 |
| - check_regions: Optional[ |
69 |
| - List[ |
70 |
| - Literal[ |
71 |
| - "WNAM", |
72 |
| - "ENAM", |
73 |
| - "WEU", |
74 |
| - "EEU", |
75 |
| - "NSAM", |
76 |
| - "SSAM", |
77 |
| - "OC", |
78 |
| - "ME", |
79 |
| - "NAF", |
80 |
| - "SAF", |
81 |
| - "IN", |
82 |
| - "SEAS", |
83 |
| - "NEAS", |
84 |
| - "ALL_REGIONS", |
85 |
| - ] |
86 |
| - ] |
87 |
| - ] |
88 |
| - | NotGiven = NOT_GIVEN, |
| 70 | + check_regions: Optional[List[CheckRegionItem]] | NotGiven = NOT_GIVEN, |
89 | 71 | consecutive_fails: int | NotGiven = NOT_GIVEN,
|
90 | 72 | consecutive_successes: int | NotGiven = NOT_GIVEN,
|
91 | 73 | description: str | NotGiven = NOT_GIVEN,
|
92 |
| - http_config: Optional[healthcheck_create_params.HTTPConfig] | NotGiven = NOT_GIVEN, |
| 74 | + http_config: Optional[HTTPConfigurationParam] | NotGiven = NOT_GIVEN, |
93 | 75 | interval: int | NotGiven = NOT_GIVEN,
|
94 | 76 | retries: int | NotGiven = NOT_GIVEN,
|
95 | 77 | suspended: bool | NotGiven = NOT_GIVEN,
|
96 |
| - tcp_config: Optional[healthcheck_create_params.TcpConfig] | NotGiven = NOT_GIVEN, |
| 78 | + tcp_config: Optional[TcpConfigurationParam] | NotGiven = NOT_GIVEN, |
97 | 79 | healthcheck_timeout: int | NotGiven = NOT_GIVEN,
|
98 | 80 | type: str | NotGiven = NOT_GIVEN,
|
99 | 81 | # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
@@ -190,35 +172,15 @@ def update(
|
190 | 172 | zone_id: str,
|
191 | 173 | address: str,
|
192 | 174 | name: str,
|
193 |
| - check_regions: Optional[ |
194 |
| - List[ |
195 |
| - Literal[ |
196 |
| - "WNAM", |
197 |
| - "ENAM", |
198 |
| - "WEU", |
199 |
| - "EEU", |
200 |
| - "NSAM", |
201 |
| - "SSAM", |
202 |
| - "OC", |
203 |
| - "ME", |
204 |
| - "NAF", |
205 |
| - "SAF", |
206 |
| - "IN", |
207 |
| - "SEAS", |
208 |
| - "NEAS", |
209 |
| - "ALL_REGIONS", |
210 |
| - ] |
211 |
| - ] |
212 |
| - ] |
213 |
| - | NotGiven = NOT_GIVEN, |
| 175 | + check_regions: Optional[List[CheckRegionItem]] | NotGiven = NOT_GIVEN, |
214 | 176 | consecutive_fails: int | NotGiven = NOT_GIVEN,
|
215 | 177 | consecutive_successes: int | NotGiven = NOT_GIVEN,
|
216 | 178 | description: str | NotGiven = NOT_GIVEN,
|
217 |
| - http_config: Optional[healthcheck_update_params.HTTPConfig] | NotGiven = NOT_GIVEN, |
| 179 | + http_config: Optional[HTTPConfigurationParam] | NotGiven = NOT_GIVEN, |
218 | 180 | interval: int | NotGiven = NOT_GIVEN,
|
219 | 181 | retries: int | NotGiven = NOT_GIVEN,
|
220 | 182 | suspended: bool | NotGiven = NOT_GIVEN,
|
221 |
| - tcp_config: Optional[healthcheck_update_params.TcpConfig] | NotGiven = NOT_GIVEN, |
| 183 | + tcp_config: Optional[TcpConfigurationParam] | NotGiven = NOT_GIVEN, |
222 | 184 | healthcheck_timeout: int | NotGiven = NOT_GIVEN,
|
223 | 185 | type: str | NotGiven = NOT_GIVEN,
|
224 | 186 | # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
@@ -401,35 +363,15 @@ def edit(
|
401 | 363 | zone_id: str,
|
402 | 364 | address: str,
|
403 | 365 | name: str,
|
404 |
| - check_regions: Optional[ |
405 |
| - List[ |
406 |
| - Literal[ |
407 |
| - "WNAM", |
408 |
| - "ENAM", |
409 |
| - "WEU", |
410 |
| - "EEU", |
411 |
| - "NSAM", |
412 |
| - "SSAM", |
413 |
| - "OC", |
414 |
| - "ME", |
415 |
| - "NAF", |
416 |
| - "SAF", |
417 |
| - "IN", |
418 |
| - "SEAS", |
419 |
| - "NEAS", |
420 |
| - "ALL_REGIONS", |
421 |
| - ] |
422 |
| - ] |
423 |
| - ] |
424 |
| - | NotGiven = NOT_GIVEN, |
| 366 | + check_regions: Optional[List[CheckRegionItem]] | NotGiven = NOT_GIVEN, |
425 | 367 | consecutive_fails: int | NotGiven = NOT_GIVEN,
|
426 | 368 | consecutive_successes: int | NotGiven = NOT_GIVEN,
|
427 | 369 | description: str | NotGiven = NOT_GIVEN,
|
428 |
| - http_config: Optional[healthcheck_edit_params.HTTPConfig] | NotGiven = NOT_GIVEN, |
| 370 | + http_config: Optional[HTTPConfigurationParam] | NotGiven = NOT_GIVEN, |
429 | 371 | interval: int | NotGiven = NOT_GIVEN,
|
430 | 372 | retries: int | NotGiven = NOT_GIVEN,
|
431 | 373 | suspended: bool | NotGiven = NOT_GIVEN,
|
432 |
| - tcp_config: Optional[healthcheck_edit_params.TcpConfig] | NotGiven = NOT_GIVEN, |
| 374 | + tcp_config: Optional[TcpConfigurationParam] | NotGiven = NOT_GIVEN, |
433 | 375 | healthcheck_timeout: int | NotGiven = NOT_GIVEN,
|
434 | 376 | type: str | NotGiven = NOT_GIVEN,
|
435 | 377 | # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
@@ -587,35 +529,15 @@ async def create(
|
587 | 529 | zone_id: str,
|
588 | 530 | address: str,
|
589 | 531 | name: str,
|
590 |
| - check_regions: Optional[ |
591 |
| - List[ |
592 |
| - Literal[ |
593 |
| - "WNAM", |
594 |
| - "ENAM", |
595 |
| - "WEU", |
596 |
| - "EEU", |
597 |
| - "NSAM", |
598 |
| - "SSAM", |
599 |
| - "OC", |
600 |
| - "ME", |
601 |
| - "NAF", |
602 |
| - "SAF", |
603 |
| - "IN", |
604 |
| - "SEAS", |
605 |
| - "NEAS", |
606 |
| - "ALL_REGIONS", |
607 |
| - ] |
608 |
| - ] |
609 |
| - ] |
610 |
| - | NotGiven = NOT_GIVEN, |
| 532 | + check_regions: Optional[List[CheckRegionItem]] | NotGiven = NOT_GIVEN, |
611 | 533 | consecutive_fails: int | NotGiven = NOT_GIVEN,
|
612 | 534 | consecutive_successes: int | NotGiven = NOT_GIVEN,
|
613 | 535 | description: str | NotGiven = NOT_GIVEN,
|
614 |
| - http_config: Optional[healthcheck_create_params.HTTPConfig] | NotGiven = NOT_GIVEN, |
| 536 | + http_config: Optional[HTTPConfigurationParam] | NotGiven = NOT_GIVEN, |
615 | 537 | interval: int | NotGiven = NOT_GIVEN,
|
616 | 538 | retries: int | NotGiven = NOT_GIVEN,
|
617 | 539 | suspended: bool | NotGiven = NOT_GIVEN,
|
618 |
| - tcp_config: Optional[healthcheck_create_params.TcpConfig] | NotGiven = NOT_GIVEN, |
| 540 | + tcp_config: Optional[TcpConfigurationParam] | NotGiven = NOT_GIVEN, |
619 | 541 | healthcheck_timeout: int | NotGiven = NOT_GIVEN,
|
620 | 542 | type: str | NotGiven = NOT_GIVEN,
|
621 | 543 | # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
@@ -712,35 +634,15 @@ async def update(
|
712 | 634 | zone_id: str,
|
713 | 635 | address: str,
|
714 | 636 | name: str,
|
715 |
| - check_regions: Optional[ |
716 |
| - List[ |
717 |
| - Literal[ |
718 |
| - "WNAM", |
719 |
| - "ENAM", |
720 |
| - "WEU", |
721 |
| - "EEU", |
722 |
| - "NSAM", |
723 |
| - "SSAM", |
724 |
| - "OC", |
725 |
| - "ME", |
726 |
| - "NAF", |
727 |
| - "SAF", |
728 |
| - "IN", |
729 |
| - "SEAS", |
730 |
| - "NEAS", |
731 |
| - "ALL_REGIONS", |
732 |
| - ] |
733 |
| - ] |
734 |
| - ] |
735 |
| - | NotGiven = NOT_GIVEN, |
| 637 | + check_regions: Optional[List[CheckRegionItem]] | NotGiven = NOT_GIVEN, |
736 | 638 | consecutive_fails: int | NotGiven = NOT_GIVEN,
|
737 | 639 | consecutive_successes: int | NotGiven = NOT_GIVEN,
|
738 | 640 | description: str | NotGiven = NOT_GIVEN,
|
739 |
| - http_config: Optional[healthcheck_update_params.HTTPConfig] | NotGiven = NOT_GIVEN, |
| 641 | + http_config: Optional[HTTPConfigurationParam] | NotGiven = NOT_GIVEN, |
740 | 642 | interval: int | NotGiven = NOT_GIVEN,
|
741 | 643 | retries: int | NotGiven = NOT_GIVEN,
|
742 | 644 | suspended: bool | NotGiven = NOT_GIVEN,
|
743 |
| - tcp_config: Optional[healthcheck_update_params.TcpConfig] | NotGiven = NOT_GIVEN, |
| 645 | + tcp_config: Optional[TcpConfigurationParam] | NotGiven = NOT_GIVEN, |
744 | 646 | healthcheck_timeout: int | NotGiven = NOT_GIVEN,
|
745 | 647 | type: str | NotGiven = NOT_GIVEN,
|
746 | 648 | # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
@@ -923,35 +825,15 @@ async def edit(
|
923 | 825 | zone_id: str,
|
924 | 826 | address: str,
|
925 | 827 | name: str,
|
926 |
| - check_regions: Optional[ |
927 |
| - List[ |
928 |
| - Literal[ |
929 |
| - "WNAM", |
930 |
| - "ENAM", |
931 |
| - "WEU", |
932 |
| - "EEU", |
933 |
| - "NSAM", |
934 |
| - "SSAM", |
935 |
| - "OC", |
936 |
| - "ME", |
937 |
| - "NAF", |
938 |
| - "SAF", |
939 |
| - "IN", |
940 |
| - "SEAS", |
941 |
| - "NEAS", |
942 |
| - "ALL_REGIONS", |
943 |
| - ] |
944 |
| - ] |
945 |
| - ] |
946 |
| - | NotGiven = NOT_GIVEN, |
| 828 | + check_regions: Optional[List[CheckRegionItem]] | NotGiven = NOT_GIVEN, |
947 | 829 | consecutive_fails: int | NotGiven = NOT_GIVEN,
|
948 | 830 | consecutive_successes: int | NotGiven = NOT_GIVEN,
|
949 | 831 | description: str | NotGiven = NOT_GIVEN,
|
950 |
| - http_config: Optional[healthcheck_edit_params.HTTPConfig] | NotGiven = NOT_GIVEN, |
| 832 | + http_config: Optional[HTTPConfigurationParam] | NotGiven = NOT_GIVEN, |
951 | 833 | interval: int | NotGiven = NOT_GIVEN,
|
952 | 834 | retries: int | NotGiven = NOT_GIVEN,
|
953 | 835 | suspended: bool | NotGiven = NOT_GIVEN,
|
954 |
| - tcp_config: Optional[healthcheck_edit_params.TcpConfig] | NotGiven = NOT_GIVEN, |
| 836 | + tcp_config: Optional[TcpConfigurationParam] | NotGiven = NOT_GIVEN, |
955 | 837 | healthcheck_timeout: int | NotGiven = NOT_GIVEN,
|
956 | 838 | type: str | NotGiven = NOT_GIVEN,
|
957 | 839 | # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
0 commit comments