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

Class ListPaperDocsSortBy

dropbox/paper.py:1024–1081  ·  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 paper.ListPaperDocsSortBy.accessed: Sorts the Paper docs by the time they were last acce

Source from the content-addressed store, hash-verified

1022ListPaperDocsResponse_validator = bv.Struct(ListPaperDocsResponse)
1023
1024class ListPaperDocsSortBy(bb.Union):
1025 """
1026 This class acts as a tagged union. Only one of the ``is_*`` methods will
1027 return true. To get the associated value of a tag (if one exists), use the
1028 corresponding ``get_*`` method.
1029
1030 :ivar paper.ListPaperDocsSortBy.accessed: Sorts the Paper docs by the time
1031 they were last accessed.
1032 :ivar paper.ListPaperDocsSortBy.modified: Sorts the Paper docs by the time
1033 they were last modified.
1034 :ivar paper.ListPaperDocsSortBy.created: Sorts the Paper docs by the
1035 creation time.
1036 """
1037
1038 _catch_all = 'other'
1039 # Attribute is overwritten below the class definition
1040 accessed = None
1041 # Attribute is overwritten below the class definition
1042 modified = None
1043 # Attribute is overwritten below the class definition
1044 created = None
1045 # Attribute is overwritten below the class definition
1046 other = None
1047
1048 def is_accessed(self):
1049 """
1050 Check if the union tag is ``accessed``.
1051
1052 :rtype: bool
1053 """
1054 return self._tag == 'accessed'
1055
1056 def is_modified(self):
1057 """
1058 Check if the union tag is ``modified``.
1059
1060 :rtype: bool
1061 """
1062 return self._tag == 'modified'
1063
1064 def is_created(self):
1065 """
1066 Check if the union tag is ``created``.
1067
1068 :rtype: bool
1069 """
1070 return self._tag == 'created'
1071
1072 def is_other(self):
1073 """
1074 Check if the union tag is ``other``.
1075
1076 :rtype: bool
1077 """
1078 return self._tag == 'other'
1079
1080 def _process_custom_annotations(self, annotation_type, field_path, processor):
1081 super(ListPaperDocsSortBy, self)._process_custom_annotations(annotation_type, field_path, processor)

Callers 1

paper.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected