models.principal module¶
-
class
models.principal.
Principal
(domain=None, full_name=None, object_class=None, principal_name=None, sid=None)[source]¶ Bases:
object
Implementation of the ‘Principal’ model.
Specifies information about a single Principal.
- Attributes:
- domain (string): Specifies the domain name of the where the principal’
account is maintained.
- full_name (string): Specifies the full name (first and last names) of
the principal.
- object_class (ObjectClassEnum): Specifies the object class of the
principal (either ‘kGroup’ or ‘kUser’). ‘kUser’ specifies a user object class. ‘kGroup’ specifies a group object class. ‘kComputer’ specifies a computer object class. ‘kWellKnownPrincipal’ specifies a well known principal.
principal_name (string): Specifies the name of the principal. sid (string): Specifies the unique Security id (SID) of the
principal.
-
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.