MCPcopy Create free account
hub / github.com/dropbox/dropbox-sdk-python / FolderSubscriptionLevel

Class FolderSubscriptionLevel

dropbox/paper.py:578–639  ·  view source on GitHub ↗

The subscription level of a Paper folder. 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 paper.FolderSubscriptionLevel.none: Not shown in

Source from the content-addressed store, hash-verified

576FolderSharingPolicyType_validator = bv.Union(FolderSharingPolicyType)
577
578class FolderSubscriptionLevel(bb.Union):
579 """
580 The subscription level of a Paper folder.
581
582 This class acts as a tagged union. Only one of the ``is_*`` methods will
583 return true. To get the associated value of a tag (if one exists), use the
584 corresponding ``get_*`` method.
585
586 :ivar paper.FolderSubscriptionLevel.none: Not shown in activity, no email
587 messages.
588 :ivar paper.FolderSubscriptionLevel.activity_only: Shown in activity, no
589 email messages.
590 :ivar paper.FolderSubscriptionLevel.daily_emails: Shown in activity, daily
591 email messages.
592 :ivar paper.FolderSubscriptionLevel.weekly_emails: Shown in activity, weekly
593 email messages.
594 """
595
596 _catch_all = None
597 # Attribute is overwritten below the class definition
598 none = None
599 # Attribute is overwritten below the class definition
600 activity_only = None
601 # Attribute is overwritten below the class definition
602 daily_emails = None
603 # Attribute is overwritten below the class definition
604 weekly_emails = None
605
606 def is_none(self):
607 """
608 Check if the union tag is ``none``.
609
610 :rtype: bool
611 """
612 return self._tag == 'none'
613
614 def is_activity_only(self):
615 """
616 Check if the union tag is ``activity_only``.
617
618 :rtype: bool
619 """
620 return self._tag == 'activity_only'
621
622 def is_daily_emails(self):
623 """
624 Check if the union tag is ``daily_emails``.
625
626 :rtype: bool
627 """
628 return self._tag == 'daily_emails'
629
630 def is_weekly_emails(self):
631 """
632 Check if the union tag is ``weekly_emails``.
633
634 :rtype: bool
635 """

Callers 1

paper.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected