class documentation

class MembersSuspendError(MembersDeactivateError): (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.MembersSuspendError.suspend_inactive_user: The user is not active, so it cannot be suspended. :ivar team.MembersSuspendError.suspend_last_admin: The user is the last admin of the team, so it cannot be suspended. :ivar team.MembersSuspendError.team_license_limit: Team is full. The organization has no available licenses.

Method is_suspend_inactive_user Check if the union tag is ``suspend_inactive_user``.
Method is_suspend_last_admin Check if the union tag is ``suspend_last_admin``.
Method is_team_license_limit Check if the union tag is ``team_license_limit``.
Class Variable suspend_inactive_user Undocumented
Class Variable suspend_last_admin Undocumented
Class Variable team_license_limit Undocumented
Method _process_custom_annotations Undocumented

Inherited from MembersDeactivateError:

Method is_other Check if the union tag is ``other``.
Method is_user_not_in_team Check if the union tag is ``user_not_in_team``.
Class Variable other Undocumented
Class Variable user_not_in_team Undocumented
Class Variable _catch_all Undocumented

Inherited from UserSelectorError (via MembersDeactivateError):

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

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

def is_suspend_last_admin(self): (source)

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

def is_team_license_limit(self): (source)

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

suspend_inactive_user = (source)

Undocumented

suspend_last_admin = (source)

Undocumented

team_license_limit = (source)

Undocumented

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