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.CreateSharedLinkWithSettingsError.email_not_verified: This user's email address
| 1416 | CreateSharedLinkWithSettingsArg_validator = bv.Struct(CreateSharedLinkWithSettingsArg) |
| 1417 | |
| 1418 | class CreateSharedLinkWithSettingsError(bb.Union): |
| 1419 | """ |
| 1420 | This class acts as a tagged union. Only one of the ``is_*`` methods will |
| 1421 | return true. To get the associated value of a tag (if one exists), use the |
| 1422 | corresponding ``get_*`` method. |
| 1423 | |
| 1424 | :ivar sharing.CreateSharedLinkWithSettingsError.email_not_verified: This |
| 1425 | user's email address is not verified. This functionality is only |
| 1426 | available on accounts with a verified email address. Users can verify |
| 1427 | their email address `here <https://www.dropbox.com/help/317>`_. |
| 1428 | :ivar Optional[SharedLinkAlreadyExistsMetadata] |
| 1429 | sharing.CreateSharedLinkWithSettingsError.shared_link_already_exists: |
| 1430 | The shared link already exists. You can call :route:`list_shared_links` |
| 1431 | to get the existing link, or use the provided metadata if it is |
| 1432 | returned. |
| 1433 | :ivar SharedLinkSettingsError |
| 1434 | CreateSharedLinkWithSettingsError.settings_error: There is an error with |
| 1435 | the given settings. |
| 1436 | :ivar sharing.CreateSharedLinkWithSettingsError.access_denied: The user is |
| 1437 | not allowed to create a shared link to the specified file. For example, |
| 1438 | this can occur if the file is restricted or if the user's links are |
| 1439 | `banned <https://help.dropbox.com/files-folders/share/banned-links>`_. |
| 1440 | """ |
| 1441 | |
| 1442 | _catch_all = None |
| 1443 | # Attribute is overwritten below the class definition |
| 1444 | email_not_verified = None |
| 1445 | # Attribute is overwritten below the class definition |
| 1446 | access_denied = None |
| 1447 | |
| 1448 | @classmethod |
| 1449 | def path(cls, val): |
| 1450 | """ |
| 1451 | Create an instance of this class set to the ``path`` tag with value |
| 1452 | ``val``. |
| 1453 | |
| 1454 | :param files.LookupError val: |
| 1455 | :rtype: CreateSharedLinkWithSettingsError |
| 1456 | """ |
| 1457 | return cls('path', val) |
| 1458 | |
| 1459 | @classmethod |
| 1460 | def shared_link_already_exists(cls, val): |
| 1461 | """ |
| 1462 | Create an instance of this class set to the |
| 1463 | ``shared_link_already_exists`` tag with value ``val``. |
| 1464 | |
| 1465 | :param SharedLinkAlreadyExistsMetadata val: |
| 1466 | :rtype: CreateSharedLinkWithSettingsError |
| 1467 | """ |
| 1468 | return cls('shared_link_already_exists', val) |
| 1469 | |
| 1470 | @classmethod |
| 1471 | def settings_error(cls, val): |
| 1472 | """ |
| 1473 | Create an instance of this class set to the ``settings_error`` tag with |
| 1474 | value ``val``. |
| 1475 |