|
3 | 3 | from __future__ import annotations
|
4 | 4 |
|
5 | 5 | from typing import List, Type, cast
|
6 |
| -from typing_extensions import Literal |
7 | 6 |
|
8 | 7 | import httpx
|
9 | 8 |
|
|
28 | 27 | )
|
29 | 28 | from ....types.magic_transit.sites import (
|
30 | 29 | ACL,
|
| 30 | + AllowedProtocol, |
31 | 31 | ACLConfigurationParam,
|
32 | 32 | acl_create_params,
|
33 | 33 | acl_delete_params,
|
@@ -56,7 +56,7 @@ def create(
|
56 | 56 | name: str,
|
57 | 57 | description: str | NotGiven = NOT_GIVEN,
|
58 | 58 | forward_locally: bool | NotGiven = NOT_GIVEN,
|
59 |
| - protocols: List[Literal["tcp", "udp", "icmp"]] | NotGiven = NOT_GIVEN, |
| 59 | + protocols: List[AllowedProtocol] | NotGiven = NOT_GIVEN, |
60 | 60 | # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
61 | 61 | # The extra values given here take precedence over values defined on the client or passed to this method.
|
62 | 62 | extra_headers: Headers | None = None,
|
@@ -127,7 +127,7 @@ def update(
|
127 | 127 | lan_1: ACLConfigurationParam | NotGiven = NOT_GIVEN,
|
128 | 128 | lan_2: ACLConfigurationParam | NotGiven = NOT_GIVEN,
|
129 | 129 | name: str | NotGiven = NOT_GIVEN,
|
130 |
| - protocols: List[Literal["tcp", "udp", "icmp"]] | NotGiven = NOT_GIVEN, |
| 130 | + protocols: List[AllowedProtocol] | NotGiven = NOT_GIVEN, |
131 | 131 | # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
132 | 132 | # The extra values given here take precedence over values defined on the client or passed to this method.
|
133 | 133 | extra_headers: Headers | None = None,
|
@@ -352,7 +352,7 @@ async def create(
|
352 | 352 | name: str,
|
353 | 353 | description: str | NotGiven = NOT_GIVEN,
|
354 | 354 | forward_locally: bool | NotGiven = NOT_GIVEN,
|
355 |
| - protocols: List[Literal["tcp", "udp", "icmp"]] | NotGiven = NOT_GIVEN, |
| 355 | + protocols: List[AllowedProtocol] | NotGiven = NOT_GIVEN, |
356 | 356 | # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
357 | 357 | # The extra values given here take precedence over values defined on the client or passed to this method.
|
358 | 358 | extra_headers: Headers | None = None,
|
@@ -423,7 +423,7 @@ async def update(
|
423 | 423 | lan_1: ACLConfigurationParam | NotGiven = NOT_GIVEN,
|
424 | 424 | lan_2: ACLConfigurationParam | NotGiven = NOT_GIVEN,
|
425 | 425 | name: str | NotGiven = NOT_GIVEN,
|
426 |
| - protocols: List[Literal["tcp", "udp", "icmp"]] | NotGiven = NOT_GIVEN, |
| 426 | + protocols: List[AllowedProtocol] | NotGiven = NOT_GIVEN, |
427 | 427 | # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
428 | 428 | # The extra values given here take precedence over values defined on the client or passed to this method.
|
429 | 429 | extra_headers: Headers | None = None,
|
|
0 commit comments