class documentation

class LinkPassword(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 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_password Create an instance of this class set to the ``set_password`` tag with value ``val``.
Method get_set_password Set a new password or change an existing password.
Method is_other Check if the union tag is ``other``.
Method is_remove_password Check if the union tag is ``remove_password``.
Method is_set_password Check if the union tag is ``set_password``.
Class Variable other Undocumented
Class Variable remove_password Undocumented
Method _process_custom_annotations Undocumented
Class Variable _catch_all Undocumented
@classmethod
def set_password(cls, val): (source)

Create an instance of this class set to the ``set_password`` tag with value ``val``. :param str val: :rtype: LinkPassword

def get_set_password(self): (source)

Set a new password or change an existing password. Only call this if :meth:`is_set_password` is true. :rtype: str

def is_other(self): (source)

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

def is_remove_password(self): (source)

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

def is_set_password(self): (source)

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

Undocumented

remove_password = (source)

Undocumented

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

Undocumented

_catch_all: str = (source)

Undocumented