class documentation

class ActorLogInfo(bb.Union): (source)

View In Hierarchy

The entity who performed the action. This class acts as a tagged union. Only one of the ``is_*`` methods will return true. To get the associated value of a tag (if one exists), use the corresponding ``get_*`` method. :ivar UserLogInfo ActorLogInfo.admin: The admin who did the action. :ivar team_log.ActorLogInfo.anonymous: Anonymous actor. :ivar AppLogInfo ActorLogInfo.app: The application who did the action. :ivar team_log.ActorLogInfo.dropbox: Action done by Dropbox. :ivar ResellerLogInfo ActorLogInfo.reseller: Action done by reseller. :ivar UserLogInfo ActorLogInfo.user: The user who did the action.

Class Method admin Create an instance of this class set to the ``admin`` tag with value ``val``.
Class Method app Create an instance of this class set to the ``app`` tag with value ``val``.
Class Method reseller Create an instance of this class set to the ``reseller`` tag with value ``val``.
Class Method user Create an instance of this class set to the ``user`` tag with value ``val``.
Method get_admin The admin who did the action.
Method get_app The application who did the action.
Method get_reseller Action done by reseller.
Method get_user The user who did the action.
Method is_admin Check if the union tag is ``admin``.
Method is_anonymous Check if the union tag is ``anonymous``.
Method is_app Check if the union tag is ``app``.
Method is_dropbox Check if the union tag is ``dropbox``.
Method is_other Check if the union tag is ``other``.
Method is_reseller Check if the union tag is ``reseller``.
Method is_user Check if the union tag is ``user``.
Class Variable anonymous Undocumented
Class Variable dropbox Undocumented
Class Variable other Undocumented
Method _process_custom_annotations Undocumented
Class Variable _catch_all Undocumented
@classmethod
def admin(cls, val): (source)

Create an instance of this class set to the ``admin`` tag with value ``val``. :param UserLogInfo val: :rtype: ActorLogInfo

@classmethod
def app(cls, val): (source)

Create an instance of this class set to the ``app`` tag with value ``val``. :param AppLogInfo val: :rtype: ActorLogInfo

@classmethod
def reseller(cls, val): (source)

Create an instance of this class set to the ``reseller`` tag with value ``val``. :param ResellerLogInfo val: :rtype: ActorLogInfo

@classmethod
def user(cls, val): (source)

Create an instance of this class set to the ``user`` tag with value ``val``. :param UserLogInfo val: :rtype: ActorLogInfo

def get_admin(self): (source)

The admin who did the action. Only call this if :meth:`is_admin` is true. :rtype: UserLogInfo

def get_app(self): (source)

The application who did the action. Only call this if :meth:`is_app` is true. :rtype: AppLogInfo

def get_reseller(self): (source)

Action done by reseller. Only call this if :meth:`is_reseller` is true. :rtype: ResellerLogInfo

def get_user(self): (source)

The user who did the action. Only call this if :meth:`is_user` is true. :rtype: UserLogInfo

def is_admin(self): (source)

Check if the union tag is ``admin``. :rtype: bool

def is_anonymous(self): (source)

Check if the union tag is ``anonymous``. :rtype: bool

def is_app(self): (source)

Check if the union tag is ``app``. :rtype: bool

def is_dropbox(self): (source)

Check if the union tag is ``dropbox``. :rtype: bool

def is_other(self): (source)

Check if the union tag is ``other``. :rtype: bool

def is_reseller(self): (source)

Check if the union tag is ``reseller``. :rtype: bool

def is_user(self): (source)

Check if the union tag is ``user``. :rtype: bool

anonymous = (source)

Undocumented

Undocumented

Undocumented

def _process_custom_annotations(self, annotation_type, field_path, processor): (source)

Undocumented

_catch_all: str = (source)

Undocumented