Errors for :meth:`dropbox.dropbox_client.Dropbox.sharing_add_file_member`. 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 sharing.AddFileM
| 305 | AddFileMemberArgs_validator = bv.Struct(AddFileMemberArgs) |
| 306 | |
| 307 | class AddFileMemberError(bb.Union): |
| 308 | """ |
| 309 | Errors for :meth:`dropbox.dropbox_client.Dropbox.sharing_add_file_member`. |
| 310 | |
| 311 | This class acts as a tagged union. Only one of the ``is_*`` methods will |
| 312 | return true. To get the associated value of a tag (if one exists), use the |
| 313 | corresponding ``get_*`` method. |
| 314 | |
| 315 | :ivar sharing.AddFileMemberError.rate_limit: The user has reached the rate |
| 316 | limit for invitations. |
| 317 | :ivar sharing.AddFileMemberError.invalid_comment: The custom message did not |
| 318 | pass comment permissions checks. |
| 319 | """ |
| 320 | |
| 321 | _catch_all = 'other' |
| 322 | # Attribute is overwritten below the class definition |
| 323 | rate_limit = None |
| 324 | # Attribute is overwritten below the class definition |
| 325 | invalid_comment = None |
| 326 | # Attribute is overwritten below the class definition |
| 327 | other = None |
| 328 | |
| 329 | @classmethod |
| 330 | def user_error(cls, val): |
| 331 | """ |
| 332 | Create an instance of this class set to the ``user_error`` tag with |
| 333 | value ``val``. |
| 334 | |
| 335 | :param SharingUserError val: |
| 336 | :rtype: AddFileMemberError |
| 337 | """ |
| 338 | return cls('user_error', val) |
| 339 | |
| 340 | @classmethod |
| 341 | def access_error(cls, val): |
| 342 | """ |
| 343 | Create an instance of this class set to the ``access_error`` tag with |
| 344 | value ``val``. |
| 345 | |
| 346 | :param SharingFileAccessError val: |
| 347 | :rtype: AddFileMemberError |
| 348 | """ |
| 349 | return cls('access_error', val) |
| 350 | |
| 351 | def is_user_error(self): |
| 352 | """ |
| 353 | Check if the union tag is ``user_error``. |
| 354 | |
| 355 | :rtype: bool |
| 356 | """ |
| 357 | return self._tag == 'user_error' |
| 358 | |
| 359 | def is_access_error(self): |
| 360 | """ |
| 361 | Check if the union tag is ``access_error``. |
| 362 | |
| 363 | :rtype: bool |
| 364 | """ |