class CreateSharedLinkWithSettingsError(bb.Union): (source)
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 is not verified. This functionality is only available on accounts with a verified email address. Users can verify their email address `here <https://www.dropbox.com/help/317>`_. :ivar Optional[SharedLinkAlreadyExistsMetadata] sharing.CreateSharedLinkWithSettingsError.shared_link_already_exists: The shared link already exists. You can call :route:`list_shared_links` to get the existing link, or use the provided metadata if it is returned. :ivar SharedLinkSettingsError CreateSharedLinkWithSettingsError.settings_error: There is an error with the given settings. :ivar sharing.CreateSharedLinkWithSettingsError.access_denied: The user is not allowed to create a shared link to the specified file. For example, this can occur if the file is restricted or if the user's links are `banned <https://help.dropbox.com/files-folders/share/banned-links>`_.
Class Method | path |
Create an instance of this class set to the ``path`` tag with value ``val``. |
Class Method | settings |
Create an instance of this class set to the ``settings_error`` tag with value ``val``. |
Class Method | shared |
Create an instance of this class set to the ``shared_link_already_exists`` tag with value ``val``. |
Method | get |
Only call this if :meth:`is_path` is true. |
Method | get |
There is an error with the given settings. |
Method | get |
The shared link already exists. You can call :meth:`dropbox.dropbox_client.Dropbox.sharing_list_shared_links` to get the existing link, or use the provided metadata if it is returned. |
Method | is |
Check if the union tag is ``access_denied``. |
Method | is |
Check if the union tag is ``email_not_verified``. |
Method | is |
Check if the union tag is ``path``. |
Method | is |
Check if the union tag is ``settings_error``. |
Method | is |
Check if the union tag is ``shared_link_already_exists``. |
Class Variable | access |
Undocumented |
Class Variable | email |
Undocumented |
Method | _process |
Undocumented |
Class Variable | _catch |
Undocumented |
Create an instance of this class set to the ``path`` tag with value ``val``. :param files.LookupError val: :rtype: CreateSharedLinkWithSettingsError
Create an instance of this class set to the ``settings_error`` tag with value ``val``. :param SharedLinkSettingsError val: :rtype: CreateSharedLinkWithSettingsError
Create an instance of this class set to the ``shared_link_already_exists`` tag with value ``val``. :param SharedLinkAlreadyExistsMetadata val: :rtype: CreateSharedLinkWithSettingsError
There is an error with the given settings. Only call this if :meth:`is_settings_error` is true. :rtype: SharedLinkSettingsError
The shared link already exists. You can call :meth:`dropbox.dropbox_client.Dropbox.sharing_list_shared_links` to get the existing link, or use the provided metadata if it is returned. Only call this if :meth:`is_shared_link_already_exists` is true. :rtype: SharedLinkAlreadyExistsMetadata