|
29 | 29 | class PermissionBody(object):
|
30 | 30 | """
|
31 | 31 |
|
32 |
| - :param accepted_permissions: |
| 32 | + :param accepted_permissions: The current list of permissions consented to on the account level. It can be an empty list if there are no account level permissions consented to. |
33 | 33 | :type accepted_permissions: (optional) list[ask_sdk_model.events.skillevents.permission.Permission]
|
| 34 | + :param accepted_person_permissions: The current list of permissions consented to on the person level. This is only present if the request contains the ```person``` object. It can be an empty list if there are no person level permissions consented to. |
| 35 | + :type accepted_person_permissions: (optional) list[ask_sdk_model.events.skillevents.permission.Permission] |
34 | 36 |
|
35 | 37 | """
|
36 | 38 | deserialized_types = {
|
37 |
| - 'accepted_permissions': 'list[ask_sdk_model.events.skillevents.permission.Permission]' |
| 39 | + 'accepted_permissions': 'list[ask_sdk_model.events.skillevents.permission.Permission]', |
| 40 | + 'accepted_person_permissions': 'list[ask_sdk_model.events.skillevents.permission.Permission]' |
38 | 41 | } # type: Dict
|
39 | 42 |
|
40 | 43 | attribute_map = {
|
41 |
| - 'accepted_permissions': 'acceptedPermissions' |
| 44 | + 'accepted_permissions': 'acceptedPermissions', |
| 45 | + 'accepted_person_permissions': 'acceptedPersonPermissions' |
42 | 46 | } # type: Dict
|
43 | 47 | supports_multiple_types = False
|
44 | 48 |
|
45 |
| - def __init__(self, accepted_permissions=None): |
46 |
| - # type: (Optional[List[Permission]]) -> None |
| 49 | + def __init__(self, accepted_permissions=None, accepted_person_permissions=None): |
| 50 | + # type: (Optional[List[Permission]], Optional[List[Permission]]) -> None |
47 | 51 | """
|
48 | 52 |
|
49 |
| - :param accepted_permissions: |
| 53 | + :param accepted_permissions: The current list of permissions consented to on the account level. It can be an empty list if there are no account level permissions consented to. |
50 | 54 | :type accepted_permissions: (optional) list[ask_sdk_model.events.skillevents.permission.Permission]
|
| 55 | + :param accepted_person_permissions: The current list of permissions consented to on the person level. This is only present if the request contains the ```person``` object. It can be an empty list if there are no person level permissions consented to. |
| 56 | + :type accepted_person_permissions: (optional) list[ask_sdk_model.events.skillevents.permission.Permission] |
51 | 57 | """
|
52 | 58 | self.__discriminator_value = None # type: str
|
53 | 59 |
|
54 | 60 | self.accepted_permissions = accepted_permissions
|
| 61 | + self.accepted_person_permissions = accepted_person_permissions |
55 | 62 |
|
56 | 63 | def to_dict(self):
|
57 | 64 | # type: () -> Dict[str, object]
|
|
0 commit comments