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

Class AddPropertiesError

dropbox/file_properties.py:244–266  ·  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 file_properties.AddPropertiesError.property_group_already_exists: A property group assoc

Source from the content-addressed store, hash-verified

242InvalidPropertyGroupError_validator = bv.Union(InvalidPropertyGroupError)
243
244class AddPropertiesError(InvalidPropertyGroupError):
245 """
246 This class acts as a tagged union. Only one of the ``is_*`` methods will
247 return true. To get the associated value of a tag (if one exists), use the
248 corresponding ``get_*`` method.
249
250 :ivar file_properties.AddPropertiesError.property_group_already_exists: A
251 property group associated with this template and file already exists.
252 """
253
254 # Attribute is overwritten below the class definition
255 property_group_already_exists = None
256
257 def is_property_group_already_exists(self):
258 """
259 Check if the union tag is ``property_group_already_exists``.
260
261 :rtype: bool
262 """
263 return self._tag == 'property_group_already_exists'
264
265 def _process_custom_annotations(self, annotation_type, field_path, processor):
266 super(AddPropertiesError, self)._process_custom_annotations(annotation_type, field_path, processor)
267
268AddPropertiesError_validator = bv.Union(AddPropertiesError)
269

Callers 1

file_properties.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected