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

Class ListUsersCursorError

dropbox/paper.py:1134–1185  ·  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.ListUsersCursorError.doc_not_found: The required doc was not found.

Source from the content-addressed store, hash-verified

1132ListPaperDocsSortOrder_validator = bv.Union(ListPaperDocsSortOrder)
1133
1134class ListUsersCursorError(PaperApiBaseError):
1135 """
1136 This class acts as a tagged union. Only one of the ``is_*`` methods will
1137 return true. To get the associated value of a tag (if one exists), use the
1138 corresponding ``get_*`` method.
1139
1140 :ivar paper.ListUsersCursorError.doc_not_found: The required doc was not
1141 found.
1142 """
1143
1144 # Attribute is overwritten below the class definition
1145 doc_not_found = None
1146
1147 @classmethod
1148 def cursor_error(cls, val):
1149 """
1150 Create an instance of this class set to the ``cursor_error`` tag with
1151 value ``val``.
1152
1153 :param PaperApiCursorError val:
1154 :rtype: ListUsersCursorError
1155 """
1156 return cls('cursor_error', val)
1157
1158 def is_doc_not_found(self):
1159 """
1160 Check if the union tag is ``doc_not_found``.
1161
1162 :rtype: bool
1163 """
1164 return self._tag == 'doc_not_found'
1165
1166 def is_cursor_error(self):
1167 """
1168 Check if the union tag is ``cursor_error``.
1169
1170 :rtype: bool
1171 """
1172 return self._tag == 'cursor_error'
1173
1174 def get_cursor_error(self):
1175 """
1176 Only call this if :meth:`is_cursor_error` is true.
1177
1178 :rtype: PaperApiCursorError
1179 """
1180 if not self.is_cursor_error():
1181 raise AttributeError("tag 'cursor_error' not set")
1182 return self._value
1183
1184 def _process_custom_annotations(self, annotation_type, field_path, processor):
1185 super(ListUsersCursorError, self)._process_custom_annotations(annotation_type, field_path, processor)
1186
1187ListUsersCursorError_validator = bv.Union(ListUsersCursorError)
1188

Callers 1

paper.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected