class documentation

class LinkedDeviceLogInfo(bb.Union): (source)

View In Hierarchy

The device sessions that user is linked to. 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 DesktopDeviceSessionLogInfo LinkedDeviceLogInfo.desktop_device_session: desktop device session's details. :ivar LegacyDeviceSessionLogInfo LinkedDeviceLogInfo.legacy_device_session: legacy device session's details. :ivar MobileDeviceSessionLogInfo LinkedDeviceLogInfo.mobile_device_session: mobile device session's details. :ivar WebDeviceSessionLogInfo LinkedDeviceLogInfo.web_device_session: web device session's details.

Class Method desktop_device_session Create an instance of this class set to the ``desktop_device_session`` tag with value ``val``.
Class Method legacy_device_session Create an instance of this class set to the ``legacy_device_session`` tag with value ``val``.
Class Method mobile_device_session Create an instance of this class set to the ``mobile_device_session`` tag with value ``val``.
Class Method web_device_session Create an instance of this class set to the ``web_device_session`` tag with value ``val``.
Method get_desktop_device_session desktop device session's details.
Method get_legacy_device_session legacy device session's details.
Method get_mobile_device_session mobile device session's details.
Method get_web_device_session web device session's details.
Method is_desktop_device_session Check if the union tag is ``desktop_device_session``.
Method is_legacy_device_session Check if the union tag is ``legacy_device_session``.
Method is_mobile_device_session Check if the union tag is ``mobile_device_session``.
Method is_other Check if the union tag is ``other``.
Method is_web_device_session Check if the union tag is ``web_device_session``.
Class Variable other Undocumented
Method _process_custom_annotations Undocumented
Class Variable _catch_all Undocumented
@classmethod
def desktop_device_session(cls, val): (source)

Create an instance of this class set to the ``desktop_device_session`` tag with value ``val``. :param DesktopDeviceSessionLogInfo val: :rtype: LinkedDeviceLogInfo

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

Create an instance of this class set to the ``legacy_device_session`` tag with value ``val``. :param LegacyDeviceSessionLogInfo val: :rtype: LinkedDeviceLogInfo

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

Create an instance of this class set to the ``mobile_device_session`` tag with value ``val``. :param MobileDeviceSessionLogInfo val: :rtype: LinkedDeviceLogInfo

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

Create an instance of this class set to the ``web_device_session`` tag with value ``val``. :param WebDeviceSessionLogInfo val: :rtype: LinkedDeviceLogInfo

def get_desktop_device_session(self): (source)

desktop device session's details. Only call this if :meth:`is_desktop_device_session` is true. :rtype: DesktopDeviceSessionLogInfo

def get_legacy_device_session(self): (source)

legacy device session's details. Only call this if :meth:`is_legacy_device_session` is true. :rtype: LegacyDeviceSessionLogInfo

def get_mobile_device_session(self): (source)

mobile device session's details. Only call this if :meth:`is_mobile_device_session` is true. :rtype: MobileDeviceSessionLogInfo

def get_web_device_session(self): (source)

web device session's details. Only call this if :meth:`is_web_device_session` is true. :rtype: WebDeviceSessionLogInfo

def is_desktop_device_session(self): (source)

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

def is_legacy_device_session(self): (source)

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

def is_mobile_device_session(self): (source)

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

def is_other(self): (source)

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

def is_web_device_session(self): (source)

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

Undocumented

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

Undocumented

_catch_all: str = (source)

Undocumented