class LegalHoldsPolicyCreateError(LegalHoldsError): (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.LegalHoldsPolicyCreateError.start_date_is_later_than_end_date: Start date must be earlier than end date. :ivar team.LegalHoldsPolicyCreateError.empty_members_list: The users list must have at least one user. :ivar team.LegalHoldsPolicyCreateError.invalid_members: Some members in the members list are not valid to be placed under legal hold. :ivar team.LegalHoldsPolicyCreateError.number_of_users_on_hold_is_greater_than_hold_limitation: You cannot add more than 5 users in a legal hold. :ivar team.LegalHoldsPolicyCreateError.transient_error: Temporary infrastructure failure, please retry. :ivar team.LegalHoldsPolicyCreateError.name_must_be_unique: The name provided is already in use by another legal hold. :ivar team.LegalHoldsPolicyCreateError.team_exceeded_legal_hold_quota: Team exceeded legal hold quota. :ivar team.LegalHoldsPolicyCreateError.invalid_date: The provided date is invalid.
Method | is |
Check if the union tag is ``empty_members_list``. |
Method | is |
Check if the union tag is ``invalid_date``. |
Method | is |
Check if the union tag is ``invalid_members``. |
Method | is |
Check if the union tag is ``name_must_be_unique``. |
Method | is |
Check if the union tag is ``number_of_users_on_hold_is_greater_than_hold_limitation``. |
Method | is |
Check if the union tag is ``start_date_is_later_than_end_date``. |
Method | is |
Check if the union tag is ``team_exceeded_legal_hold_quota``. |
Method | is |
Check if the union tag is ``transient_error``. |
Class Variable | empty |
Undocumented |
Class Variable | invalid |
Undocumented |
Class Variable | invalid |
Undocumented |
Class Variable | name |
Undocumented |
Class Variable | number |
Undocumented |
Class Variable | start |
Undocumented |
Class Variable | team |
Undocumented |
Class Variable | transient |
Undocumented |
Method | _process |
Undocumented |
Inherited from LegalHoldsError
:
Method | is |
Check if the union tag is ``insufficient_permissions``. |
Method | is |
Check if the union tag is ``other``. |
Method | is |
Check if the union tag is ``unknown_legal_hold_error``. |
Class Variable | insufficient |
Undocumented |
Class Variable | other |
Undocumented |
Class Variable | unknown |
Undocumented |
Class Variable | _catch |
Undocumented |