class documentation

class MembersSetPermissions2Error(UserSelectorError): (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 team.MembersSetPermissions2Error.last_admin: Cannot remove the admin setting of the last admin. :ivar team.MembersSetPermissions2Error.user_not_in_team: The user is not a member of the team. :ivar team.MembersSetPermissions2Error.cannot_set_permissions: Cannot remove/grant permissions. This can happen if the team member is suspended. :ivar team.MembersSetPermissions2Error.role_not_found: No matching role found. At least one of the provided new_roles does not exist on this team.

Method is_cannot_set_permissions Check if the union tag is ``cannot_set_permissions``.
Method is_last_admin Check if the union tag is ``last_admin``.
Method is_other Check if the union tag is ``other``.
Method is_role_not_found Check if the union tag is ``role_not_found``.
Method is_user_not_in_team Check if the union tag is ``user_not_in_team``.
Class Variable cannot_set_permissions Undocumented
Class Variable last_admin Undocumented
Class Variable other Undocumented
Class Variable role_not_found Undocumented
Class Variable user_not_in_team Undocumented
Method _process_custom_annotations Undocumented
Class Variable _catch_all Undocumented

Inherited from UserSelectorError:

Method is_user_not_found Check if the union tag is ``user_not_found``.
Class Variable user_not_found Undocumented
def is_cannot_set_permissions(self): (source)

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

def is_last_admin(self): (source)

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

def is_other(self): (source)

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

def is_role_not_found(self): (source)

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

def is_user_not_in_team(self): (source)

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

cannot_set_permissions = (source)

Undocumented

last_admin = (source)

Undocumented

Undocumented

role_not_found = (source)

Undocumented

user_not_in_team = (source)

Undocumented

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