|
2 | 2 |
|
3 | 3 | from __future__ import annotations
|
4 | 4 |
|
5 |
| -from typing import Type, cast |
| 5 | +from typing import Type, Iterable, cast |
6 | 6 | from typing_extensions import Literal
|
7 | 7 |
|
8 | 8 | import httpx
|
|
25 | 25 | )
|
26 | 26 | from ...types import (
|
27 | 27 | Ruleset,
|
28 |
| - RequestRuleParam, |
29 | 28 | RulesetGetResponse,
|
30 | 29 | RulesetCreateResponse,
|
31 | 30 | RulesetUpdateResponse,
|
@@ -116,7 +115,7 @@ def create(
|
116 | 115 | "magic_transit_ids_managed",
|
117 | 116 | "magic_transit_managed",
|
118 | 117 | ],
|
119 |
| - rules: RequestRuleParam, |
| 118 | + rules: Iterable[ruleset_create_params.Rule], |
120 | 119 | account_id: str | NotGiven = NOT_GIVEN,
|
121 | 120 | zone_id: str | NotGiven = NOT_GIVEN,
|
122 | 121 | description: str | NotGiven = NOT_GIVEN,
|
@@ -194,7 +193,7 @@ def update(
|
194 | 193 | self,
|
195 | 194 | ruleset_id: str,
|
196 | 195 | *,
|
197 |
| - rules: RequestRuleParam, |
| 196 | + rules: Iterable[ruleset_update_params.Rule], |
198 | 197 | account_id: str | NotGiven = NOT_GIVEN,
|
199 | 198 | zone_id: str | NotGiven = NOT_GIVEN,
|
200 | 199 | description: str | NotGiven = NOT_GIVEN,
|
@@ -521,7 +520,7 @@ async def create(
|
521 | 520 | "magic_transit_ids_managed",
|
522 | 521 | "magic_transit_managed",
|
523 | 522 | ],
|
524 |
| - rules: RequestRuleParam, |
| 523 | + rules: Iterable[ruleset_create_params.Rule], |
525 | 524 | account_id: str | NotGiven = NOT_GIVEN,
|
526 | 525 | zone_id: str | NotGiven = NOT_GIVEN,
|
527 | 526 | description: str | NotGiven = NOT_GIVEN,
|
@@ -599,7 +598,7 @@ async def update(
|
599 | 598 | self,
|
600 | 599 | ruleset_id: str,
|
601 | 600 | *,
|
602 |
| - rules: RequestRuleParam, |
| 601 | + rules: Iterable[ruleset_update_params.Rule], |
603 | 602 | account_id: str | NotGiven = NOT_GIVEN,
|
604 | 603 | zone_id: str | NotGiven = NOT_GIVEN,
|
605 | 604 | description: str | NotGiven = NOT_GIVEN,
|
|
0 commit comments