class documentation

class MountFolderError(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 sharing.MountFolderError.inside_shared_folder: Mounting would cause a shared folder to be inside another, which is disallowed. :ivar InsufficientQuotaAmounts MountFolderError.insufficient_quota: The current user does not have enough space to mount the shared folder. :ivar sharing.MountFolderError.already_mounted: The shared folder is already mounted. :ivar sharing.MountFolderError.no_permission: The current user does not have permission to perform this action. :ivar sharing.MountFolderError.not_mountable: The shared folder is not mountable. One example where this can occur is when the shared folder belongs within a team folder in the user's Dropbox.

Class Method access_error Create an instance of this class set to the ``access_error`` tag with value ``val``.
Class Method insufficient_quota Create an instance of this class set to the ``insufficient_quota`` tag with value ``val``.
Method get_access_error Only call this if :meth:`is_access_error` is true.
Method get_insufficient_quota The current user does not have enough space to mount the shared folder.
Method is_access_error Check if the union tag is ``access_error``.
Method is_already_mounted Check if the union tag is ``already_mounted``.
Method is_inside_shared_folder Check if the union tag is ``inside_shared_folder``.
Method is_insufficient_quota Check if the union tag is ``insufficient_quota``.
Method is_no_permission Check if the union tag is ``no_permission``.
Method is_not_mountable Check if the union tag is ``not_mountable``.
Method is_other Check if the union tag is ``other``.
Class Variable already_mounted Undocumented
Class Variable inside_shared_folder Undocumented
Class Variable no_permission Undocumented
Class Variable not_mountable Undocumented
Class Variable other Undocumented
Method _process_custom_annotations Undocumented
Class Variable _catch_all Undocumented
@classmethod
def access_error(cls, val): (source)

Create an instance of this class set to the ``access_error`` tag with value ``val``. :param SharedFolderAccessError val: :rtype: MountFolderError

@classmethod
def insufficient_quota(cls, val): (source)

Create an instance of this class set to the ``insufficient_quota`` tag with value ``val``. :param InsufficientQuotaAmounts val: :rtype: MountFolderError

def get_access_error(self): (source)

Only call this if :meth:`is_access_error` is true. :rtype: SharedFolderAccessError

def get_insufficient_quota(self): (source)

The current user does not have enough space to mount the shared folder. Only call this if :meth:`is_insufficient_quota` is true. :rtype: InsufficientQuotaAmounts

def is_access_error(self): (source)

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

def is_already_mounted(self): (source)

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

def is_inside_shared_folder(self): (source)

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

def is_insufficient_quota(self): (source)

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

def is_no_permission(self): (source)

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

def is_not_mountable(self): (source)

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

def is_other(self): (source)

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

already_mounted = (source)

Undocumented

inside_shared_folder = (source)

Undocumented

no_permission = (source)

Undocumented

not_mountable = (source)

Undocumented

Undocumented

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

Undocumented

_catch_all: str = (source)

Undocumented