models.protected_object_privileges module¶
-
class
models.protected_object_privileges.
ProtectedObjectPrivileges
(protected_objectsprivileges_type=None, protection_source_ids=None)[source]¶ Bases:
object
Implementation of the ‘ProtectedObjectPrivileges’ model.
ProtectedObjectPrivileges specifies which protected objects are allowed to be accessed by an app instance.
- Attributes:
- protected_objectsprivileges_type (ProtectedObjectsprivilegesTypeEnum):
Specifies if all, none or specific protected objects are allowed to be accessed. Specifies if all, none or specific protected objects are allowed to be accessed. kNone - None of the protected objects have access. kAll - All the protected objects have access. kSpecific - Only specific protected objects have access.
- protection_source_ids (list of long|int): Specifies the ids of the
protection sources 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.