class UserDeleteResult(bb.Union): (source)
Result of trying to delete a user's secondary emails. 'success' is the only value indicating that a user was successfully retrieved for deleting secondary emails. The other values explain the type of error that occurred, and include the user 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 UserDeleteEmailsResult UserDeleteResult.success: Describes a user and the results for each attempt to delete a secondary email. :ivar UserSelectorArg UserDeleteResult.invalid_user: Specified user is not a valid target for deleting secondary emails.
Class Method | invalid |
Create an instance of this class set to the ``invalid_user`` tag with value ``val``. |
Class Method | success |
Create an instance of this class set to the ``success`` tag with value ``val``. |
Method | get |
Specified user is not a valid target for deleting secondary emails. |
Method | get |
Describes a user and the results for each attempt to delete a secondary email. |
Method | is |
Check if the union tag is ``invalid_user``. |
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 ``invalid_user`` tag with value ``val``. :param UserSelectorArg val: :rtype: UserDeleteResult
Create an instance of this class set to the ``success`` tag with value ``val``. :param UserDeleteEmailsResult val: :rtype: UserDeleteResult
Specified user is not a valid target for deleting secondary emails. Only call this if :meth:`is_invalid_user` is true. :rtype: UserSelectorArg
Describes a user and the results for each attempt to delete a secondary email. Only call this if :meth:`is_success` is true. :rtype: UserDeleteEmailsResult