class documentation

class GetTemporaryLinkError(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 files.GetTemporaryLinkError.email_not_verified: This user's email address is not verified. This functionality is only available on accounts with a verified email address. Users can verify their email address `here <https://www.dropbox.com/help/317>`_. :ivar files.GetTemporaryLinkError.unsupported_file: Cannot get temporary link to this file type; use :meth:`dropbox.dropbox_client.Dropbox.files_export` instead. :ivar files.GetTemporaryLinkError.not_allowed: The user is not allowed to request a temporary link to the specified file. For example, this can occur if the file is restricted or if the user's links are `banned <https://help.dropbox.com/files-folders/share/banned-links>`_.

Class Method path Create an instance of this class set to the ``path`` tag with value ``val``.
Method get_path Only call this if :meth:`is_path` is true.
Method is_email_not_verified Check if the union tag is ``email_not_verified``.
Method is_not_allowed Check if the union tag is ``not_allowed``.
Method is_other Check if the union tag is ``other``.
Method is_path Check if the union tag is ``path``.
Method is_unsupported_file Check if the union tag is ``unsupported_file``.
Class Variable email_not_verified Undocumented
Class Variable not_allowed Undocumented
Class Variable other Undocumented
Class Variable unsupported_file Undocumented
Method _process_custom_annotations Undocumented
Class Variable _catch_all Undocumented
@classmethod
def path(cls, val): (source)

Create an instance of this class set to the ``path`` tag with value ``val``. :param LookupError val: :rtype: GetTemporaryLinkError

def get_path(self): (source)

Only call this if :meth:`is_path` is true. :rtype: LookupError

def is_email_not_verified(self): (source)

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

def is_not_allowed(self): (source)

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

def is_other(self): (source)

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

def is_path(self): (source)

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

def is_unsupported_file(self): (source)

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

email_not_verified = (source)

Undocumented

not_allowed = (source)

Undocumented

Undocumented

unsupported_file = (source)

Undocumented

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

Undocumented

_catch_all: str = (source)

Undocumented