MCPcopy Index your code
hub / github.com/dropbox/dropbox-sdk-python / AddSecondaryEmailsError

Class AddSecondaryEmailsError

dropbox/team.py:504–551  ·  view source on GitHub ↗

Error returned when adding secondary emails fails. 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.AddSecondaryEmailsError.secondary_e

Source from the content-addressed store, hash-verified

502AddSecondaryEmailsArg_validator = bv.Struct(AddSecondaryEmailsArg)
503
504class AddSecondaryEmailsError(bb.Union):
505 """
506 Error returned when adding secondary emails fails.
507
508 This class acts as a tagged union. Only one of the ``is_*`` methods will
509 return true. To get the associated value of a tag (if one exists), use the
510 corresponding ``get_*`` method.
511
512 :ivar team.AddSecondaryEmailsError.secondary_emails_disabled: Secondary
513 emails are disabled for the team.
514 :ivar team.AddSecondaryEmailsError.too_many_emails: A maximum of 20
515 secondary emails can be added in a single call.
516 """
517
518 _catch_all = 'other'
519 # Attribute is overwritten below the class definition
520 secondary_emails_disabled = None
521 # Attribute is overwritten below the class definition
522 too_many_emails = None
523 # Attribute is overwritten below the class definition
524 other = None
525
526 def is_secondary_emails_disabled(self):
527 """
528 Check if the union tag is ``secondary_emails_disabled``.
529
530 :rtype: bool
531 """
532 return self._tag == 'secondary_emails_disabled'
533
534 def is_too_many_emails(self):
535 """
536 Check if the union tag is ``too_many_emails``.
537
538 :rtype: bool
539 """
540 return self._tag == 'too_many_emails'
541
542 def is_other(self):
543 """
544 Check if the union tag is ``other``.
545
546 :rtype: bool
547 """
548 return self._tag == 'other'
549
550 def _process_custom_annotations(self, annotation_type, field_path, processor):
551 super(AddSecondaryEmailsError, self)._process_custom_annotations(annotation_type, field_path, processor)
552
553AddSecondaryEmailsError_validator = bv.Union(AddSecondaryEmailsError)
554

Callers 1

team.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected