class documentation
class LinkPassword(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 sharing.LinkPassword.remove_password: Remove the currently set password for the link. :ivar str sharing.LinkPassword.set_password: Set a new password or change an existing password.
Class Method | set |
Create an instance of this class set to the ``set_password`` tag with value ``val``. |
Method | get |
Set a new password or change an existing password. |
Method | is |
Check if the union tag is ``other``. |
Method | is |
Check if the union tag is ``remove_password``. |
Method | is |
Check if the union tag is ``set_password``. |
Class Variable | other |
Undocumented |
Class Variable | remove |
Undocumented |
Method | _process |
Undocumented |
Class Variable | _catch |
Undocumented |
Create an instance of this class set to the ``set_password`` tag with value ``val``. :param str val: :rtype: LinkPassword
Set a new password or change an existing password. Only call this if :meth:`is_set_password` is true. :rtype: str