class documentation

class MembersSetPermissionsError(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.MembersSetPermissionsError.last_admin: Cannot remove the admin setting of the last admin. :ivar team.MembersSetPermissionsError.user_not_in_team: The user is not a member of the team. :ivar team.MembersSetPermissionsError.cannot_set_permissions: Cannot remove/grant permissions. :ivar team.MembersSetPermissionsError.team_license_limit: Team is full. The organization has no available licenses.

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

Check if the union tag is ``team_license_limit``. :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

team_license_limit = (source)

Undocumented

user_not_in_team = (source)

Undocumented

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