class documentation

class ThumbnailV2Error(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 LookupError ThumbnailV2Error.path: An error occurred when downloading metadata for the image. :ivar files.ThumbnailV2Error.unsupported_extension: The file extension doesn't allow conversion to a thumbnail. :ivar files.ThumbnailV2Error.unsupported_image: The image cannot be converted to a thumbnail. :ivar files.ThumbnailV2Error.conversion_error: An error occurred during thumbnail conversion. :ivar files.ThumbnailV2Error.access_denied: Access to this shared link is forbidden. :ivar files.ThumbnailV2Error.not_found: The shared link does not exist.

Class Method path Create an instance of this class set to the ``path`` tag with value ``val``.
Method get_path An error occurred when downloading metadata for the image.
Method is_access_denied Check if the union tag is ``access_denied``.
Method is_conversion_error Check if the union tag is ``conversion_error``.
Method is_not_found Check if the union tag is ``not_found``.
Method is_other Check if the union tag is ``other``.
Method is_path Check if the union tag is ``path``.
Method is_unsupported_extension Check if the union tag is ``unsupported_extension``.
Method is_unsupported_image Check if the union tag is ``unsupported_image``.
Class Variable access_denied Undocumented
Class Variable conversion_error Undocumented
Class Variable not_found Undocumented
Class Variable other Undocumented
Class Variable unsupported_extension Undocumented
Class Variable unsupported_image 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: ThumbnailV2Error

def get_path(self): (source)

An error occurred when downloading metadata for the image. Only call this if :meth:`is_path` is true. :rtype: LookupError

def is_access_denied(self): (source)

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

def is_conversion_error(self): (source)

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

def is_not_found(self): (source)

Check if the union tag is ``not_found``. :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_extension(self): (source)

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

def is_unsupported_image(self): (source)

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

access_denied = (source)

Undocumented

conversion_error = (source)

Undocumented

not_found = (source)

Undocumented

Undocumented

unsupported_extension = (source)

Undocumented

unsupported_image = (source)

Undocumented

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

Undocumented

_catch_all: str = (source)

Undocumented