class documentation

class MemberSelector(bb.Union): (source)

View In Hierarchy

Includes different ways to identify a member of a shared folder. 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 str sharing.MemberSelector.dropbox_id: Dropbox account, team member, or group ID of member. :ivar str sharing.MemberSelector.email: Email address of member.

Class Method dropbox_id Create an instance of this class set to the ``dropbox_id`` tag with value ``val``.
Class Method email Create an instance of this class set to the ``email`` tag with value ``val``.
Method get_dropbox_id Dropbox account, team member, or group ID of member.
Method get_email Email address of member.
Method is_dropbox_id Check if the union tag is ``dropbox_id``.
Method is_email Check if the union tag is ``email``.
Method is_other Check if the union tag is ``other``.
Class Variable other Undocumented
Method _process_custom_annotations Undocumented
Class Variable _catch_all Undocumented
@classmethod
def dropbox_id(cls, val): (source)

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

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

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

def get_dropbox_id(self): (source)

Dropbox account, team member, or group ID of member. Only call this if :meth:`is_dropbox_id` is true. :rtype: str

def get_email(self): (source)

Email address of member. Only call this if :meth:`is_email` is true. :rtype: str

def is_dropbox_id(self): (source)

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

def is_email(self): (source)

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

def is_other(self): (source)

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

Undocumented

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

Undocumented

_catch_all: str = (source)

Undocumented