MCPcopy Create free account
hub / github.com/dropbox/dropbox-sdk-python / DownloadZipError

Class DownloadZipError

dropbox/files.py:1782–1856  ·  view source on GitHub ↗

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.DownloadZipError.too_large: The folder or a file is too large to download. :iv

Source from the content-addressed store, hash-verified

1780DownloadZipArg_validator = bv.Struct(DownloadZipArg)
1781
1782class DownloadZipError(bb.Union):
1783 """
1784 This class acts as a tagged union. Only one of the ``is_*`` methods will
1785 return true. To get the associated value of a tag (if one exists), use the
1786 corresponding ``get_*`` method.
1787
1788 :ivar files.DownloadZipError.too_large: The folder or a file is too large to
1789 download.
1790 :ivar files.DownloadZipError.too_many_files: The folder has too many files
1791 to download.
1792 """
1793
1794 _catch_all = 'other'
1795 # Attribute is overwritten below the class definition
1796 too_large = None
1797 # Attribute is overwritten below the class definition
1798 too_many_files = None
1799 # Attribute is overwritten below the class definition
1800 other = None
1801
1802 @classmethod
1803 def path(cls, val):
1804 """
1805 Create an instance of this class set to the ``path`` tag with value
1806 ``val``.
1807
1808 :param LookupError val:
1809 :rtype: DownloadZipError
1810 """
1811 return cls('path', val)
1812
1813 def is_path(self):
1814 """
1815 Check if the union tag is ``path``.
1816
1817 :rtype: bool
1818 """
1819 return self._tag == 'path'
1820
1821 def is_too_large(self):
1822 """
1823 Check if the union tag is ``too_large``.
1824
1825 :rtype: bool
1826 """
1827 return self._tag == 'too_large'
1828
1829 def is_too_many_files(self):
1830 """
1831 Check if the union tag is ``too_many_files``.
1832
1833 :rtype: bool
1834 """
1835 return self._tag == 'too_many_files'
1836
1837 def is_other(self):
1838 """
1839 Check if the union tag is ``other``.

Callers 1

files.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected