|
6 | 6 | from pubnub.enums import HttpMethod, PNOperationType |
7 | 7 | from pubnub.models.consumer.common import PNStatus |
8 | 8 | from pubnub.models.consumer.v3.access_manager import PNGrantTokenResult |
| 9 | +from pubnub.models.consumer.v3.channel import Channel |
| 10 | +from pubnub.models.consumer.v3.group import Group |
| 11 | +from pubnub.models.consumer.v3.space import Space |
| 12 | +from pubnub.models.consumer.v3.user import User |
| 13 | +from pubnub.models.consumer.v3.uuid import UUID |
9 | 14 | from pubnub.structures import Envelope |
10 | 15 |
|
11 | 16 |
|
@@ -55,23 +60,23 @@ def authorized_user(self, user) -> 'GrantToken': |
55 | 60 | self._authorized_uuid = user |
56 | 61 | return self |
57 | 62 |
|
58 | | - def spaces(self, spaces: Union[str, List[str]]) -> 'GrantToken': |
| 63 | + def spaces(self, spaces: List[Space]) -> 'GrantToken': |
59 | 64 | self._channels = spaces |
60 | 65 | return self |
61 | 66 |
|
62 | | - def users(self, users: Union[str, List[str]]) -> 'GrantToken': |
| 67 | + def users(self, users: List[User]) -> 'GrantToken': |
63 | 68 | self._uuids = users |
64 | 69 | return self |
65 | 70 |
|
66 | | - def channels(self, channels: Union[str, List[str]]) -> 'GrantToken': |
| 71 | + def channels(self, channels: List[Channel]) -> 'GrantToken': |
67 | 72 | self._channels = channels |
68 | 73 | return self |
69 | 74 |
|
70 | | - def groups(self, groups: Union[str, List[str]]) -> 'GrantToken': |
| 75 | + def groups(self, groups: List[Group]) -> 'GrantToken': |
71 | 76 | self._groups = groups |
72 | 77 | return self |
73 | 78 |
|
74 | | - def uuids(self, uuids: Union[str, List[str]]) -> 'GrantToken': |
| 79 | + def uuids(self, uuids: List[UUID]) -> 'GrantToken': |
75 | 80 | self._uuids = uuids |
76 | 81 | return self |
77 | 82 |
|
|
0 commit comments