class documentation

class RevokeDeviceSessionArg(bb.Union): (source)

View In Hierarchy

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 DeviceSessionArg RevokeDeviceSessionArg.web_session: End an active session. :ivar RevokeDesktopClientArg RevokeDeviceSessionArg.desktop_client: Unlink a linked desktop device. :ivar DeviceSessionArg RevokeDeviceSessionArg.mobile_client: Unlink a linked mobile device.

Class Method desktop_client Create an instance of this class set to the ``desktop_client`` tag with value ``val``.
Class Method mobile_client Create an instance of this class set to the ``mobile_client`` tag with value ``val``.
Class Method web_session Create an instance of this class set to the ``web_session`` tag with value ``val``.
Method get_desktop_client Unlink a linked desktop device.
Method get_mobile_client Unlink a linked mobile device.
Method get_web_session End an active session.
Method is_desktop_client Check if the union tag is ``desktop_client``.
Method is_mobile_client Check if the union tag is ``mobile_client``.
Method is_web_session Check if the union tag is ``web_session``.
Method _process_custom_annotations Undocumented
Class Variable _catch_all Undocumented
@classmethod
def desktop_client(cls, val): (source)

Create an instance of this class set to the ``desktop_client`` tag with value ``val``. :param RevokeDesktopClientArg val: :rtype: RevokeDeviceSessionArg

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

Create an instance of this class set to the ``mobile_client`` tag with value ``val``. :param DeviceSessionArg val: :rtype: RevokeDeviceSessionArg

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

Create an instance of this class set to the ``web_session`` tag with value ``val``. :param DeviceSessionArg val: :rtype: RevokeDeviceSessionArg

def get_desktop_client(self): (source)

Unlink a linked desktop device. Only call this if :meth:`is_desktop_client` is true. :rtype: RevokeDesktopClientArg

def get_mobile_client(self): (source)

Unlink a linked mobile device. Only call this if :meth:`is_mobile_client` is true. :rtype: DeviceSessionArg

def get_web_session(self): (source)

End an active session. Only call this if :meth:`is_web_session` is true. :rtype: DeviceSessionArg

def is_desktop_client(self): (source)

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

def is_mobile_client(self): (source)

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

def is_web_session(self): (source)

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

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

Undocumented

_catch_all = (source)

Undocumented