class RevokeDeviceSessionArg(bb.Union): (source)
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 |
Create an instance of this class set to the ``desktop_client`` tag with value ``val``. |
Class Method | mobile |
Create an instance of this class set to the ``mobile_client`` tag with value ``val``. |
Class Method | web |
Create an instance of this class set to the ``web_session`` tag with value ``val``. |
Method | get |
Unlink a linked desktop device. |
Method | get |
Unlink a linked mobile device. |
Method | get |
End an active session. |
Method | is |
Check if the union tag is ``desktop_client``. |
Method | is |
Check if the union tag is ``mobile_client``. |
Method | is |
Check if the union tag is ``web_session``. |
Method | _process |
Undocumented |
Class Variable | _catch |
Undocumented |
Create an instance of this class set to the ``desktop_client`` tag with value ``val``. :param RevokeDesktopClientArg val: :rtype: RevokeDeviceSessionArg
Create an instance of this class set to the ``mobile_client`` tag with value ``val``. :param DeviceSessionArg val: :rtype: RevokeDeviceSessionArg
Create an instance of this class set to the ``web_session`` tag with value ``val``. :param DeviceSessionArg val: :rtype: RevokeDeviceSessionArg
Unlink a linked desktop device. Only call this if :meth:`is_desktop_client` is true. :rtype: RevokeDesktopClientArg
Unlink a linked mobile device. Only call this if :meth:`is_mobile_client` is true. :rtype: DeviceSessionArg