class documentation

class SaveCopyReferenceError(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.SaveCopyReferenceError.invalid_copy_reference: The copy reference is invalid. :ivar files.SaveCopyReferenceError.no_permission: You don't have permission to save the given copy reference. Please make sure this app is same app which created the copy reference and the source user is still linked to the app. :ivar files.SaveCopyReferenceError.not_found: The file referenced by the copy reference cannot be found. :ivar files.SaveCopyReferenceError.too_many_files: The operation would involve more than 10,000 files and folders.

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_invalid_copy_reference Check if the union tag is ``invalid_copy_reference``.
Method is_no_permission Check if the union tag is ``no_permission``.
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_too_many_files Check if the union tag is ``too_many_files``.
Class Variable invalid_copy_reference Undocumented
Class Variable no_permission Undocumented
Class Variable not_found Undocumented
Class Variable other Undocumented
Class Variable too_many_files 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 WriteError val: :rtype: SaveCopyReferenceError

def get_path(self): (source)

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

def is_invalid_copy_reference(self): (source)

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

def is_no_permission(self): (source)

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

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

invalid_copy_reference = (source)

Undocumented

no_permission = (source)

Undocumented

not_found = (source)

Undocumented

Undocumented

too_many_files = (source)

Undocumented

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

Undocumented

_catch_all: str = (source)

Undocumented