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

Class CustomQuotaError

dropbox/team.py:860–895  ·  view source on GitHub ↗

Error returned when getting member custom quota. 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.CustomQuotaError.too_many_users: A ma

Source from the content-addressed store, hash-verified

858BaseTeamFolderError_validator = bv.Union(BaseTeamFolderError)
859
860class CustomQuotaError(bb.Union):
861 """
862 Error returned when getting member custom quota.
863
864 This class acts as a tagged union. Only one of the ``is_*`` methods will
865 return true. To get the associated value of a tag (if one exists), use the
866 corresponding ``get_*`` method.
867
868 :ivar team.CustomQuotaError.too_many_users: A maximum of 1000 users can be
869 set for a single call.
870 """
871
872 _catch_all = 'other'
873 # Attribute is overwritten below the class definition
874 too_many_users = None
875 # Attribute is overwritten below the class definition
876 other = None
877
878 def is_too_many_users(self):
879 """
880 Check if the union tag is ``too_many_users``.
881
882 :rtype: bool
883 """
884 return self._tag == 'too_many_users'
885
886 def is_other(self):
887 """
888 Check if the union tag is ``other``.
889
890 :rtype: bool
891 """
892 return self._tag == 'other'
893
894 def _process_custom_annotations(self, annotation_type, field_path, processor):
895 super(CustomQuotaError, self)._process_custom_annotations(annotation_type, field_path, processor)
896
897CustomQuotaError_validator = bv.Union(CustomQuotaError)
898

Callers 1

team.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected