class documentation

class PathRootError(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 RootInfo PathRootError.invalid_root: The root namespace id in Dropbox-API-Path-Root header is not valid. The value of this error is the user's latest root info. :ivar common.PathRootError.no_permission: You don't have permission to access the namespace id in Dropbox-API-Path-Root header.

Class Method invalid_root Create an instance of this class set to the ``invalid_root`` tag with value ``val``.
Method get_invalid_root The root namespace id in Dropbox-API-Path-Root header is not valid. The value of this error is the user's latest root info.
Method is_invalid_root Check if the union tag is ``invalid_root``.
Method is_no_permission Check if the union tag is ``no_permission``.
Method is_other Check if the union tag is ``other``.
Class Variable no_permission Undocumented
Class Variable other Undocumented
Method _process_custom_annotations Undocumented
Class Variable _catch_all Undocumented
@classmethod
def invalid_root(cls, val): (source)

Create an instance of this class set to the ``invalid_root`` tag with value ``val``. :param RootInfo val: :rtype: PathRootError

def get_invalid_root(self): (source)

The root namespace id in Dropbox-API-Path-Root header is not valid. The value of this error is the user's latest root info. Only call this if :meth:`is_invalid_root` is true. :rtype: RootInfo

def is_invalid_root(self): (source)

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

def is_no_permission(self): (source)

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

def is_other(self): (source)

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

no_permission = (source)

Undocumented

Undocumented

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

Undocumented

_catch_all: str = (source)

Undocumented