class GetThumbnailBatchResultEntry(bb.Union): (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 ThumbnailError GetThumbnailBatchResultEntry.failure: The result for this file if it was an error.
Class Method | failure |
Create an instance of this class set to the ``failure`` tag with value ``val``. |
Class Method | success |
Create an instance of this class set to the ``success`` tag with value ``val``. |
Method | get |
The result for this file if it was an error. |
Method | get |
Only call this if :meth:`is_success` is true. |
Method | is |
Check if the union tag is ``failure``. |
Method | is |
Check if the union tag is ``other``. |
Method | is |
Check if the union tag is ``success``. |
Class Variable | other |
Undocumented |
Method | _process |
Undocumented |
Class Variable | _catch |
Undocumented |
Create an instance of this class set to the ``failure`` tag with value ``val``. :param ThumbnailError val: :rtype: GetThumbnailBatchResultEntry
Create an instance of this class set to the ``success`` tag with value ``val``. :param GetThumbnailBatchResultData val: :rtype: GetThumbnailBatchResultEntry
The result for this file if it was an error. Only call this if :meth:`is_failure` is true. :rtype: ThumbnailError