|
44 | 44 | PermissionGroupsResourceWithStreamingResponse,
|
45 | 45 | AsyncPermissionGroupsResourceWithStreamingResponse,
|
46 | 46 | )
|
| 47 | +from ....types.user.policy_param import PolicyParam |
47 | 48 | from ....types.user.token_create_response import TokenCreateResponse
|
48 | 49 | from ....types.user.token_delete_response import TokenDeleteResponse
|
49 | 50 | from ....types.user.token_verify_response import TokenVerifyResponse
|
@@ -72,7 +73,7 @@ def create(
|
72 | 73 | self,
|
73 | 74 | *,
|
74 | 75 | name: str,
|
75 |
| - policies: Iterable[token_create_params.Policy], |
| 76 | + policies: Iterable[PolicyParam], |
76 | 77 | condition: token_create_params.Condition | NotGiven = NOT_GIVEN,
|
77 | 78 | expires_on: Union[str, datetime] | NotGiven = NOT_GIVEN,
|
78 | 79 | not_before: Union[str, datetime] | NotGiven = NOT_GIVEN,
|
@@ -131,7 +132,7 @@ def update(
|
131 | 132 | token_id: object,
|
132 | 133 | *,
|
133 | 134 | name: str,
|
134 |
| - policies: Iterable[token_update_params.Policy], |
| 135 | + policies: Iterable[PolicyParam], |
135 | 136 | status: Literal["active", "disabled", "expired"],
|
136 | 137 | condition: token_update_params.Condition | NotGiven = NOT_GIVEN,
|
137 | 138 | expires_on: Union[str, datetime] | NotGiven = NOT_GIVEN,
|
@@ -355,7 +356,7 @@ async def create(
|
355 | 356 | self,
|
356 | 357 | *,
|
357 | 358 | name: str,
|
358 |
| - policies: Iterable[token_create_params.Policy], |
| 359 | + policies: Iterable[PolicyParam], |
359 | 360 | condition: token_create_params.Condition | NotGiven = NOT_GIVEN,
|
360 | 361 | expires_on: Union[str, datetime] | NotGiven = NOT_GIVEN,
|
361 | 362 | not_before: Union[str, datetime] | NotGiven = NOT_GIVEN,
|
@@ -414,7 +415,7 @@ async def update(
|
414 | 415 | token_id: object,
|
415 | 416 | *,
|
416 | 417 | name: str,
|
417 |
| - policies: Iterable[token_update_params.Policy], |
| 418 | + policies: Iterable[PolicyParam], |
418 | 419 | status: Literal["active", "disabled", "expired"],
|
419 | 420 | condition: token_update_params.Condition | NotGiven = NOT_GIVEN,
|
420 | 421 | expires_on: Union[str, datetime] | NotGiven = NOT_GIVEN,
|
|
0 commit comments