class AddSecondaryEmailResult(bb.Union): (source)
Result of trying to add a secondary email to a user. 'success' is the only value indicating that a secondary email was successfully added to a user. 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 secondary_emails.SecondaryEmail team.AddSecondaryEmailResult.success: Describes a secondary email that was successfully added to a user. :ivar str team.AddSecondaryEmailResult.unavailable: Secondary email is not available to be claimed by the user. :ivar str team.AddSecondaryEmailResult.already_pending: Secondary email is already a pending email for the user. :ivar str team.AddSecondaryEmailResult.already_owned_by_user: Secondary email is already a verified email for the user. :ivar str team.AddSecondaryEmailResult.reached_limit: User already has the maximum number of secondary emails allowed. :ivar str team.AddSecondaryEmailResult.transient_error: A transient error occurred. Please try again later. :ivar str team.AddSecondaryEmailResult.too_many_updates: An error occurred due to conflicting updates. Please try again later. :ivar str team.AddSecondaryEmailResult.unknown_error: An unknown error occurred. :ivar str team.AddSecondaryEmailResult.rate_limited: Too many emails are being sent to this email address. Please try again later.
Class Method | already |
Create an instance of this class set to the ``already_owned_by_user`` tag with value ``val``. |
Class Method | already |
Create an instance of this class set to the ``already_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 | reached |
Create an instance of this class set to the ``reached_limit`` tag with value ``val``. |
Class Method | success |
Create an instance of this class set to the ``success`` tag with value ``val``. |
Class Method | too |
Create an instance of this class set to the ``too_many_updates`` tag with value ``val``. |
Class Method | transient |
Create an instance of this class set to the ``transient_error`` tag with value ``val``. |
Class Method | unavailable |
Create an instance of this class set to the ``unavailable`` tag with value ``val``. |
Class Method | unknown |
Create an instance of this class set to the ``unknown_error`` tag with value ``val``. |
Method | get |
Secondary email is already a verified email for the user. |
Method | get |
Secondary email is already a pending email for the user. |
Method | get |
Too many emails are being sent to this email address. Please try again later. |
Method | get |
User already has the maximum number of secondary emails allowed. |
Method | get |
Describes a secondary email that was successfully added to a user. |
Method | get |
An error occurred due to conflicting updates. Please try again later. |
Method | get |
A transient error occurred. Please try again later. |
Method | get |
Secondary email is not available to be claimed by the user. |
Method | get |
An unknown error occurred. |
Method | is |
Check if the union tag is ``already_owned_by_user``. |
Method | is |
Check if the union tag is ``already_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 ``reached_limit``. |
Method | is |
Check if the union tag is ``success``. |
Method | is |
Check if the union tag is ``too_many_updates``. |
Method | is |
Check if the union tag is ``transient_error``. |
Method | is |
Check if the union tag is ``unavailable``. |
Method | is |
Check if the union tag is ``unknown_error``. |
Class Variable | other |
Undocumented |
Method | _process |
Undocumented |
Class Variable | _catch |
Undocumented |
Create an instance of this class set to the ``already_owned_by_user`` tag with value ``val``. :param str val: :rtype: AddSecondaryEmailResult
Create an instance of this class set to the ``already_pending`` tag with value ``val``. :param str val: :rtype: AddSecondaryEmailResult
Create an instance of this class set to the ``rate_limited`` tag with value ``val``. :param str val: :rtype: AddSecondaryEmailResult
Create an instance of this class set to the ``reached_limit`` tag with value ``val``. :param str val: :rtype: AddSecondaryEmailResult
Create an instance of this class set to the ``success`` tag with value ``val``. :param secondary_emails.SecondaryEmail val: :rtype: AddSecondaryEmailResult
Create an instance of this class set to the ``too_many_updates`` tag with value ``val``. :param str val: :rtype: AddSecondaryEmailResult
Create an instance of this class set to the ``transient_error`` tag with value ``val``. :param str val: :rtype: AddSecondaryEmailResult
Create an instance of this class set to the ``unavailable`` tag with value ``val``. :param str val: :rtype: AddSecondaryEmailResult
Create an instance of this class set to the ``unknown_error`` tag with value ``val``. :param str val: :rtype: AddSecondaryEmailResult
Secondary email is already a verified email for the user. Only call this if :meth:`is_already_owned_by_user` is true. :rtype: str
Secondary email is already a pending email for the user. Only call this if :meth:`is_already_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
User already has the maximum number of secondary emails allowed. Only call this if :meth:`is_reached_limit` is true. :rtype: str
Describes a secondary email that was successfully added to a user. Only call this if :meth:`is_success` is true. :rtype: secondary_emails.SecondaryEmail
An error occurred due to conflicting updates. Please try again later. Only call this if :meth:`is_too_many_updates` is true. :rtype: str
A transient error occurred. Please try again later. Only call this if :meth:`is_transient_error` is true. :rtype: str
Secondary email is not available to be claimed by the user. Only call this if :meth:`is_unavailable` is true. :rtype: str