class documentation

class PermissionDeniedReason(bb.Union): (source)

View In Hierarchy

Possible reasons the user is denied a permission. 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.PermissionDeniedReason.user_not_same_team_as_owner: User is not on the same team as the folder owner. :ivar sharing.PermissionDeniedReason.user_not_allowed_by_owner: User is prohibited by the owner from taking the action. :ivar sharing.PermissionDeniedReason.target_is_indirect_member: Target is indirectly a member of the folder, for example by being part of a group. :ivar sharing.PermissionDeniedReason.target_is_owner: Target is the owner of the folder. :ivar sharing.PermissionDeniedReason.target_is_self: Target is the user itself. :ivar sharing.PermissionDeniedReason.target_not_active: Target is not an active member of the team. :ivar sharing.PermissionDeniedReason.folder_is_limited_team_folder: Folder is team folder for a limited team. :ivar sharing.PermissionDeniedReason.owner_not_on_team: The content owner needs to be on a Dropbox team to perform this action. :ivar sharing.PermissionDeniedReason.permission_denied: The user does not have permission to perform this action on the link. :ivar sharing.PermissionDeniedReason.restricted_by_team: The user's team policy prevents performing this action on the link. :ivar sharing.PermissionDeniedReason.user_account_type: The user's account type does not support this action. :ivar sharing.PermissionDeniedReason.user_not_on_team: The user needs to be on a Dropbox team to perform this action. :ivar sharing.PermissionDeniedReason.folder_is_inside_shared_folder: Folder is inside of another shared folder. :ivar sharing.PermissionDeniedReason.restricted_by_parent_folder: Policy cannot be changed due to restrictions from parent folder.

Class Method insufficient_plan Create an instance of this class set to the ``insufficient_plan`` tag with value ``val``.
Method get_insufficient_plan Only call this if :meth:`is_insufficient_plan` is true.
Method is_folder_is_inside_shared_folder Check if the union tag is ``folder_is_inside_shared_folder``.
Method is_folder_is_limited_team_folder Check if the union tag is ``folder_is_limited_team_folder``.
Method is_insufficient_plan Check if the union tag is ``insufficient_plan``.
Method is_other Check if the union tag is ``other``.
Method is_owner_not_on_team Check if the union tag is ``owner_not_on_team``.
Method is_permission_denied Check if the union tag is ``permission_denied``.
Method is_restricted_by_parent_folder Check if the union tag is ``restricted_by_parent_folder``.
Method is_restricted_by_team Check if the union tag is ``restricted_by_team``.
Method is_target_is_indirect_member Check if the union tag is ``target_is_indirect_member``.
Method is_target_is_owner Check if the union tag is ``target_is_owner``.
Method is_target_is_self Check if the union tag is ``target_is_self``.
Method is_target_not_active Check if the union tag is ``target_not_active``.
Method is_user_account_type Check if the union tag is ``user_account_type``.
Method is_user_not_allowed_by_owner Check if the union tag is ``user_not_allowed_by_owner``.
Method is_user_not_on_team Check if the union tag is ``user_not_on_team``.
Method is_user_not_same_team_as_owner Check if the union tag is ``user_not_same_team_as_owner``.
Class Variable folder_is_inside_shared_folder Undocumented
Class Variable folder_is_limited_team_folder Undocumented
Class Variable other Undocumented
Class Variable owner_not_on_team Undocumented
Class Variable permission_denied Undocumented
Class Variable restricted_by_parent_folder Undocumented
Class Variable restricted_by_team Undocumented
Class Variable target_is_indirect_member Undocumented
Class Variable target_is_owner Undocumented
Class Variable target_is_self Undocumented
Class Variable target_not_active Undocumented
Class Variable user_account_type Undocumented
Class Variable user_not_allowed_by_owner Undocumented
Class Variable user_not_on_team Undocumented
Class Variable user_not_same_team_as_owner Undocumented
Method _process_custom_annotations Undocumented
Class Variable _catch_all Undocumented
@classmethod
def insufficient_plan(cls, val): (source)

Create an instance of this class set to the ``insufficient_plan`` tag with value ``val``. :param InsufficientPlan val: :rtype: PermissionDeniedReason

def get_insufficient_plan(self): (source)

Only call this if :meth:`is_insufficient_plan` is true. :rtype: InsufficientPlan

def is_folder_is_inside_shared_folder(self): (source)

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

def is_folder_is_limited_team_folder(self): (source)

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

def is_insufficient_plan(self): (source)

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

def is_other(self): (source)

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

def is_owner_not_on_team(self): (source)

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

def is_permission_denied(self): (source)

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

def is_restricted_by_parent_folder(self): (source)

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

def is_restricted_by_team(self): (source)

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

def is_target_is_indirect_member(self): (source)

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

def is_target_is_owner(self): (source)

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

def is_target_is_self(self): (source)

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

def is_target_not_active(self): (source)

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

def is_user_account_type(self): (source)

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

def is_user_not_allowed_by_owner(self): (source)

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

def is_user_not_on_team(self): (source)

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

def is_user_not_same_team_as_owner(self): (source)

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

folder_is_inside_shared_folder = (source)

Undocumented

folder_is_limited_team_folder = (source)

Undocumented

Undocumented

owner_not_on_team = (source)

Undocumented

permission_denied = (source)

Undocumented

restricted_by_parent_folder = (source)

Undocumented

restricted_by_team = (source)

Undocumented

target_is_indirect_member = (source)

Undocumented

target_is_owner = (source)

Undocumented

target_is_self = (source)

Undocumented

target_not_active = (source)

Undocumented

user_account_type = (source)

Undocumented

user_not_allowed_by_owner = (source)

Undocumented

user_not_on_team = (source)

Undocumented

user_not_same_team_as_owner = (source)

Undocumented

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

Undocumented

_catch_all: str = (source)

Undocumented