|
2 | 2 |
|
3 | 3 | from __future__ import annotations |
4 | 4 |
|
5 | | -from typing import List |
6 | 5 | from typing_extensions import Literal |
7 | 6 |
|
8 | 7 | import httpx |
9 | 8 |
|
10 | | -from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven |
| 9 | +from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven, SequenceNotStr |
11 | 10 | from ..._utils import maybe_transform, async_maybe_transform |
12 | 11 | from ..._compat import cached_property |
13 | 12 | from ..._resource import SyncAPIResource, AsyncAPIResource |
@@ -58,13 +57,13 @@ def create( |
58 | 57 | self, |
59 | 58 | *, |
60 | 59 | key: str, |
61 | | - tags: List[str], |
| 60 | + tags: SequenceNotStr[str], |
62 | 61 | type: Literal["enter", "exit", "enter_and_exit", "speeding", "idle"], |
63 | 62 | cluster: Literal["america"] | NotGiven = NOT_GIVEN, |
64 | 63 | custom_id: str | NotGiven = NOT_GIVEN, |
65 | 64 | description: str | NotGiven = NOT_GIVEN, |
66 | 65 | geofence_config: monitor_create_params.GeofenceConfig | NotGiven = NOT_GIVEN, |
67 | | - geofence_ids: List[str] | NotGiven = NOT_GIVEN, |
| 66 | + geofence_ids: SequenceNotStr[str] | NotGiven = NOT_GIVEN, |
68 | 67 | idle_config: monitor_create_params.IdleConfig | NotGiven = NOT_GIVEN, |
69 | 68 | match_filter: monitor_create_params.MatchFilter | NotGiven = NOT_GIVEN, |
70 | 69 | meta_data: MetadataParam | NotGiven = NOT_GIVEN, |
@@ -255,13 +254,13 @@ def update( |
255 | 254 | key: str, |
256 | 255 | description: str | NotGiven = NOT_GIVEN, |
257 | 256 | geofence_config: monitor_update_params.GeofenceConfig | NotGiven = NOT_GIVEN, |
258 | | - geofence_ids: List[str] | NotGiven = NOT_GIVEN, |
| 257 | + geofence_ids: SequenceNotStr[str] | NotGiven = NOT_GIVEN, |
259 | 258 | idle_config: monitor_update_params.IdleConfig | NotGiven = NOT_GIVEN, |
260 | 259 | match_filter: monitor_update_params.MatchFilter | NotGiven = NOT_GIVEN, |
261 | 260 | meta_data: MetadataParam | NotGiven = NOT_GIVEN, |
262 | 261 | name: str | NotGiven = NOT_GIVEN, |
263 | 262 | speeding_config: monitor_update_params.SpeedingConfig | NotGiven = NOT_GIVEN, |
264 | | - tags: List[str] | NotGiven = NOT_GIVEN, |
| 263 | + tags: SequenceNotStr[str] | NotGiven = NOT_GIVEN, |
265 | 264 | type: Literal["enter", "exit", "enter_and_exit", "speeding", "idle"] | NotGiven = NOT_GIVEN, |
266 | 265 | # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. |
267 | 266 | # The extra values given here take precedence over values defined on the client or passed to this method. |
@@ -517,13 +516,13 @@ async def create( |
517 | 516 | self, |
518 | 517 | *, |
519 | 518 | key: str, |
520 | | - tags: List[str], |
| 519 | + tags: SequenceNotStr[str], |
521 | 520 | type: Literal["enter", "exit", "enter_and_exit", "speeding", "idle"], |
522 | 521 | cluster: Literal["america"] | NotGiven = NOT_GIVEN, |
523 | 522 | custom_id: str | NotGiven = NOT_GIVEN, |
524 | 523 | description: str | NotGiven = NOT_GIVEN, |
525 | 524 | geofence_config: monitor_create_params.GeofenceConfig | NotGiven = NOT_GIVEN, |
526 | | - geofence_ids: List[str] | NotGiven = NOT_GIVEN, |
| 525 | + geofence_ids: SequenceNotStr[str] | NotGiven = NOT_GIVEN, |
527 | 526 | idle_config: monitor_create_params.IdleConfig | NotGiven = NOT_GIVEN, |
528 | 527 | match_filter: monitor_create_params.MatchFilter | NotGiven = NOT_GIVEN, |
529 | 528 | meta_data: MetadataParam | NotGiven = NOT_GIVEN, |
@@ -714,13 +713,13 @@ async def update( |
714 | 713 | key: str, |
715 | 714 | description: str | NotGiven = NOT_GIVEN, |
716 | 715 | geofence_config: monitor_update_params.GeofenceConfig | NotGiven = NOT_GIVEN, |
717 | | - geofence_ids: List[str] | NotGiven = NOT_GIVEN, |
| 716 | + geofence_ids: SequenceNotStr[str] | NotGiven = NOT_GIVEN, |
718 | 717 | idle_config: monitor_update_params.IdleConfig | NotGiven = NOT_GIVEN, |
719 | 718 | match_filter: monitor_update_params.MatchFilter | NotGiven = NOT_GIVEN, |
720 | 719 | meta_data: MetadataParam | NotGiven = NOT_GIVEN, |
721 | 720 | name: str | NotGiven = NOT_GIVEN, |
722 | 721 | speeding_config: monitor_update_params.SpeedingConfig | NotGiven = NOT_GIVEN, |
723 | | - tags: List[str] | NotGiven = NOT_GIVEN, |
| 722 | + tags: SequenceNotStr[str] | NotGiven = NOT_GIVEN, |
724 | 723 | type: Literal["enter", "exit", "enter_and_exit", "speeding", "idle"] | NotGiven = NOT_GIVEN, |
725 | 724 | # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. |
726 | 725 | # The extra values given here take precedence over values defined on the client or passed to this method. |
|
0 commit comments