models.view_privileges module¶
-
class
models.view_privileges.
ViewPrivileges
(privileges_type=None, view_ids=None)[source]¶ Bases:
object
Implementation of the ‘ViewPrivileges’ model.
ViewPrivileges specifies which views are allowed to be accessed by an app instance.
- Attributes:
- privileges_type (PrivilegesTypeViewPrivilegesEnum): Specifies if all,
none or specific views are allowed to be accessed. Specifies if all, none or specific views are allowed to be accessed. kNone - None of the views have access. kAll - All the views have access. kSpecific - Only specific views have access.
- view_ids (list of int): Specifies the ids of the views which are
allowed to be accessed in case the privilege type is kSpecific.
-
classmethod
from_dictionary
(dictionary)[source]¶ Creates an instance of this model from a dictionary
- Args:
dictionary (dictionary): A dictionary representation of the object as obtained from the deserialization of the server’s response. The keys MUST match property names in the API description.
- Returns:
object: An instance of this structure class.