class DeleteSecondaryEmailResult(bb.Union): (source)
Result of trying to delete a secondary email address. 'success' is the only value indicating that a secondary email was successfully deleted. The other values explain the type of error that occurred, and include the email for which the error occurred. 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 str team.DeleteSecondaryEmailResult.success: The secondary email was successfully deleted. :ivar str team.DeleteSecondaryEmailResult.not_found: The email address was not found for the user. :ivar str team.DeleteSecondaryEmailResult.cannot_remove_primary: The email address is the primary email address of the user, and cannot be removed.
Class Method | cannot |
Create an instance of this class set to the ``cannot_remove_primary`` tag with value ``val``. |
Class Method | not |
Create an instance of this class set to the ``not_found`` tag with value ``val``. |
Class Method | success |
Create an instance of this class set to the ``success`` tag with value ``val``. |
Method | get |
The email address is the primary email address of the user, and cannot be removed. |
Method | get |
The email address was not found for the user. |
Method | get |
The secondary email was successfully deleted. |
Method | is |
Check if the union tag is ``cannot_remove_primary``. |
Method | is |
Check if the union tag is ``not_found``. |
Method | is |
Check if the union tag is ``other``. |
Method | is |
Check if the union tag is ``success``. |
Class Variable | other |
Undocumented |
Method | _process |
Undocumented |
Class Variable | _catch |
Undocumented |
Create an instance of this class set to the ``cannot_remove_primary`` tag with value ``val``. :param str val: :rtype: DeleteSecondaryEmailResult
Create an instance of this class set to the ``not_found`` tag with value ``val``. :param str val: :rtype: DeleteSecondaryEmailResult
Create an instance of this class set to the ``success`` tag with value ``val``. :param str val: :rtype: DeleteSecondaryEmailResult
The email address is the primary email address of the user, and cannot be removed. Only call this if :meth:`is_cannot_remove_primary` is true. :rtype: str
The email address was not found for the user. Only call this if :meth:`is_not_found` is true. :rtype: str
The secondary email was successfully deleted. Only call this if :meth:`is_success` is true. :rtype: str