class ResendSecondaryEmailResult(bb.Union): (source)
Result of trying to resend verification email to a secondary email address. 'success' is the only value indicating that a verification email was successfully sent. 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.ResendSecondaryEmailResult.success: A verification email was successfully sent to the secondary email address. :ivar str team.ResendSecondaryEmailResult.not_pending: This secondary email address is not pending for the user. :ivar str team.ResendSecondaryEmailResult.rate_limited: Too many emails are being sent to this email address. Please try again later.
Class Method | not |
Create an instance of this class set to the ``not_pending`` tag with value ``val``. |
Class Method | rate |
Create an instance of this class set to the ``rate_limited`` tag with value ``val``. |
Class Method | success |
Create an instance of this class set to the ``success`` tag with value ``val``. |
Method | get |
This secondary email address is not pending for the user. |
Method | get |
Too many emails are being sent to this email address. Please try again later. |
Method | get |
A verification email was successfully sent to the secondary email address. |
Method | is |
Check if the union tag is ``not_pending``. |
Method | is |
Check if the union tag is ``other``. |
Method | is |
Check if the union tag is ``rate_limited``. |
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 ``not_pending`` tag with value ``val``. :param str val: :rtype: ResendSecondaryEmailResult
Create an instance of this class set to the ``rate_limited`` tag with value ``val``. :param str val: :rtype: ResendSecondaryEmailResult
Create an instance of this class set to the ``success`` tag with value ``val``. :param str val: :rtype: ResendSecondaryEmailResult
This secondary email address is not pending for the user. Only call this if :meth:`is_not_pending` is true. :rtype: str
Too many emails are being sent to this email address. Please try again later. Only call this if :meth:`is_rate_limited` is true. :rtype: str
A verification email was successfully sent to the secondary email address. Only call this if :meth:`is_success` is true. :rtype: str