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

Class DeleteBatchError

dropbox/files.py:1074–1109  ·  view source on GitHub ↗

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 files.DeleteBatchError.too_many_write_operations: Use ``DeleteError.too_many_write_opera

Source from the content-addressed store, hash-verified

1072DeleteBatchArg_validator = bv.Struct(DeleteBatchArg)
1073
1074class DeleteBatchError(bb.Union):
1075 """
1076 This class acts as a tagged union. Only one of the ``is_*`` methods will
1077 return true. To get the associated value of a tag (if one exists), use the
1078 corresponding ``get_*`` method.
1079
1080 :ivar files.DeleteBatchError.too_many_write_operations: Use
1081 ``DeleteError.too_many_write_operations``.
1082 :meth:`dropbox.dropbox_client.Dropbox.files_delete_batch` now provides
1083 smaller granularity about which entry has failed because of this.
1084 """
1085
1086 _catch_all = 'other'
1087 # Attribute is overwritten below the class definition
1088 too_many_write_operations = None
1089 # Attribute is overwritten below the class definition
1090 other = None
1091
1092 def is_too_many_write_operations(self):
1093 """
1094 Check if the union tag is ``too_many_write_operations``.
1095
1096 :rtype: bool
1097 """
1098 return self._tag == 'too_many_write_operations'
1099
1100 def is_other(self):
1101 """
1102 Check if the union tag is ``other``.
1103
1104 :rtype: bool
1105 """
1106 return self._tag == 'other'
1107
1108 def _process_custom_annotations(self, annotation_type, field_path, processor):
1109 super(DeleteBatchError, self)._process_custom_annotations(annotation_type, field_path, processor)
1110
1111DeleteBatchError_validator = bv.Union(DeleteBatchError)
1112

Callers 1

files.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected