class documentation
class MembersSuspendError(MembersDeactivateError): (source)
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 |
Check if the union tag is ``suspend_inactive_user``. |
Method | is |
Check if the union tag is ``suspend_last_admin``. |
Method | is |
Check if the union tag is ``team_license_limit``. |
Class Variable | suspend |
Undocumented |
Class Variable | suspend |
Undocumented |
Class Variable | team |
Undocumented |
Method | _process |
Undocumented |
Inherited from MembersDeactivateError
:
Method | is |
Check if the union tag is ``other``. |
Method | is |
Check if the union tag is ``user_not_in_team``. |
Class Variable | other |
Undocumented |
Class Variable | user |
Undocumented |
Class Variable | _catch |
Undocumented |
Inherited from UserSelectorError
(via MembersDeactivateError
):
Method | is |
Check if the union tag is ``user_not_found``. |
Class Variable | user |
Undocumented |