class documentation
class MembersSetPermissionsError(UserSelectorError): (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.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 |
Check if the union tag is ``cannot_set_permissions``. |
Method | is |
Check if the union tag is ``last_admin``. |
Method | is |
Check if the union tag is ``other``. |
Method | is |
Check if the union tag is ``team_license_limit``. |
Method | is |
Check if the union tag is ``user_not_in_team``. |
Class Variable | cannot |
Undocumented |
Class Variable | last |
Undocumented |
Class Variable | other |
Undocumented |
Class Variable | team |
Undocumented |
Class Variable | user |
Undocumented |
Method | _process |
Undocumented |
Class Variable | _catch |
Undocumented |
Inherited from UserSelectorError
:
Method | is |
Check if the union tag is ``user_not_found``. |
Class Variable | user |
Undocumented |