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

Class DeleteError

dropbox/files.py:1385–1488  ·  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.DeleteError.too_many_write_operations: There are too many write operations in user

Source from the content-addressed store, hash-verified

1383DeleteBatchResultEntry_validator = bv.Union(DeleteBatchResultEntry)
1384
1385class DeleteError(bb.Union):
1386 """
1387 This class acts as a tagged union. Only one of the ``is_*`` methods will
1388 return true. To get the associated value of a tag (if one exists), use the
1389 corresponding ``get_*`` method.
1390
1391 :ivar files.DeleteError.too_many_write_operations: There are too many write
1392 operations in user's Dropbox. Please retry this request.
1393 :ivar files.DeleteError.too_many_files: There are too many files in one
1394 request. Please retry with fewer files.
1395 """
1396
1397 _catch_all = 'other'
1398 # Attribute is overwritten below the class definition
1399 too_many_write_operations = None
1400 # Attribute is overwritten below the class definition
1401 too_many_files = None
1402 # Attribute is overwritten below the class definition
1403 other = None
1404
1405 @classmethod
1406 def path_lookup(cls, val):
1407 """
1408 Create an instance of this class set to the ``path_lookup`` tag with
1409 value ``val``.
1410
1411 :param LookupError val:
1412 :rtype: DeleteError
1413 """
1414 return cls('path_lookup', val)
1415
1416 @classmethod
1417 def path_write(cls, val):
1418 """
1419 Create an instance of this class set to the ``path_write`` tag with
1420 value ``val``.
1421
1422 :param WriteError val:
1423 :rtype: DeleteError
1424 """
1425 return cls('path_write', val)
1426
1427 def is_path_lookup(self):
1428 """
1429 Check if the union tag is ``path_lookup``.
1430
1431 :rtype: bool
1432 """
1433 return self._tag == 'path_lookup'
1434
1435 def is_path_write(self):
1436 """
1437 Check if the union tag is ``path_write``.
1438
1439 :rtype: bool
1440 """
1441 return self._tag == 'path_write'
1442

Callers 1

files.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected