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

Class CreateFolderBatchError

dropbox/files.py:568–601  ·  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.CreateFolderBatchError.too_many_files: The operation would involve too many files

Source from the content-addressed store, hash-verified

566CreateFolderBatchArg_validator = bv.Struct(CreateFolderBatchArg)
567
568class CreateFolderBatchError(bb.Union):
569 """
570 This class acts as a tagged union. Only one of the ``is_*`` methods will
571 return true. To get the associated value of a tag (if one exists), use the
572 corresponding ``get_*`` method.
573
574 :ivar files.CreateFolderBatchError.too_many_files: The operation would
575 involve too many files or folders.
576 """
577
578 _catch_all = 'other'
579 # Attribute is overwritten below the class definition
580 too_many_files = None
581 # Attribute is overwritten below the class definition
582 other = None
583
584 def is_too_many_files(self):
585 """
586 Check if the union tag is ``too_many_files``.
587
588 :rtype: bool
589 """
590 return self._tag == 'too_many_files'
591
592 def is_other(self):
593 """
594 Check if the union tag is ``other``.
595
596 :rtype: bool
597 """
598 return self._tag == 'other'
599
600 def _process_custom_annotations(self, annotation_type, field_path, processor):
601 super(CreateFolderBatchError, self)._process_custom_annotations(annotation_type, field_path, processor)
602
603CreateFolderBatchError_validator = bv.Union(CreateFolderBatchError)
604

Callers 1

files.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected