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

Class ExcludedUsersUpdateError

dropbox/team.py:1727–1774  ·  view source on GitHub ↗

Excluded users update error. 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.ExcludedUsersUpdateError.users_not_in_team: At least one

Source from the content-addressed store, hash-verified

1725ExcludedUsersUpdateArg_validator = bv.Struct(ExcludedUsersUpdateArg)
1726
1727class ExcludedUsersUpdateError(bb.Union):
1728 """
1729 Excluded users update error.
1730
1731 This class acts as a tagged union. Only one of the ``is_*`` methods will
1732 return true. To get the associated value of a tag (if one exists), use the
1733 corresponding ``get_*`` method.
1734
1735 :ivar team.ExcludedUsersUpdateError.users_not_in_team: At least one of the
1736 users is not part of your team.
1737 :ivar team.ExcludedUsersUpdateError.too_many_users: A maximum of 1000 users
1738 for each of addition/removal can be supplied.
1739 """
1740
1741 _catch_all = 'other'
1742 # Attribute is overwritten below the class definition
1743 users_not_in_team = None
1744 # Attribute is overwritten below the class definition
1745 too_many_users = None
1746 # Attribute is overwritten below the class definition
1747 other = None
1748
1749 def is_users_not_in_team(self):
1750 """
1751 Check if the union tag is ``users_not_in_team``.
1752
1753 :rtype: bool
1754 """
1755 return self._tag == 'users_not_in_team'
1756
1757 def is_too_many_users(self):
1758 """
1759 Check if the union tag is ``too_many_users``.
1760
1761 :rtype: bool
1762 """
1763 return self._tag == 'too_many_users'
1764
1765 def is_other(self):
1766 """
1767 Check if the union tag is ``other``.
1768
1769 :rtype: bool
1770 """
1771 return self._tag == 'other'
1772
1773 def _process_custom_annotations(self, annotation_type, field_path, processor):
1774 super(ExcludedUsersUpdateError, self)._process_custom_annotations(annotation_type, field_path, processor)
1775
1776ExcludedUsersUpdateError_validator = bv.Union(ExcludedUsersUpdateError)
1777

Callers 1

team.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected