class TeamFolderArchiveJobStatus(async_.PollResultBase): (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 TeamFolderMetadata TeamFolderArchiveJobStatus.complete: The archive job has finished. The value is the metadata for the resulting team folder. :ivar TeamFolderArchiveError TeamFolderArchiveJobStatus.failed: Error occurred while performing an asynchronous job from :meth:`dropbox.dropbox_client.Dropbox.team_team_folder_archive`.
Class Method | complete |
Create an instance of this class set to the ``complete`` tag with value ``val``. |
Class Method | failed |
Create an instance of this class set to the ``failed`` tag with value ``val``. |
Method | get |
The archive job has finished. The value is the metadata for the resulting team folder. |
Method | get |
Error occurred while performing an asynchronous job from :meth:`dropbox.dropbox_client.Dropbox.team_team_folder_archive`. |
Method | is |
Check if the union tag is ``complete``. |
Method | is |
Check if the union tag is ``failed``. |
Method | _process |
Undocumented |
Inherited from PollResultBase
:
Method | is |
Check if the union tag is ``in_progress``. |
Class Variable | in |
Undocumented |
Class Variable | _catch |
Undocumented |
Create an instance of this class set to the ``complete`` tag with value ``val``. :param TeamFolderMetadata val: :rtype: TeamFolderArchiveJobStatus
Create an instance of this class set to the ``failed`` tag with value ``val``. :param TeamFolderArchiveError val: :rtype: TeamFolderArchiveJobStatus
The archive job has finished. The value is the metadata for the resulting team folder. Only call this if :meth:`is_complete` is true. :rtype: TeamFolderMetadata
Error occurred while performing an asynchronous job from :meth:`dropbox.dropbox_client.Dropbox.team_team_folder_archive`. Only call this if :meth:`is_failed` is true. :rtype: TeamFolderArchiveError