Skip to content

Commit fa606b8

Browse files
DropboxBotScott Erickson
and
Scott Erickson
authored
Automated Spec Update (#373)
b343fc634be6702d3e58c2eaaf6cb622e8642512 Change Notes: shared_links Namespace: - Update comments Co-authored-by: Scott Erickson <serickson@dropbox.com> Co-authored-by: DropboxBot <DropboxBot@users.noreply.github.com> Co-authored-by: Scott Erickson <serickson@dropbox.com>
1 parent a529561 commit fa606b8

File tree

3 files changed

+8
-14
lines changed

3 files changed

+8
-14
lines changed

dropbox/base.py

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3967,17 +3967,14 @@ def sharing_create_shared_link(self,
39673967
pending_upload=None):
39683968
"""
39693969
Create a shared link. If a shared link already exists for the given
3970-
path, that link is returned. Note that in the returned
3971-
:class:`dropbox.sharing.PathLinkMetadata`, the ``PathLinkMetadata.url``
3972-
field is the shortened URL if ``CreateSharedLinkArg.short_url`` argument
3973-
is set to ``True``. Previously, it was technically possible to break a
3974-
shared link by moving or renaming the corresponding file or folder. In
3975-
the future, this will no longer be the case, so your app shouldn't rely
3976-
on this behavior. Instead, if your app needs to revoke a shared link,
3977-
use :meth:`sharing_revoke_shared_link`.
3970+
path, that link is returned. Previously, it was technically possible to
3971+
break a shared link by moving or renaming the corresponding file or
3972+
folder. In the future, this will no longer be the case, so your app
3973+
shouldn't rely on this behavior. Instead, if your app needs to revoke a
3974+
shared link, use :meth:`sharing_revoke_shared_link`.
39783975
39793976
:param str path: The path to share.
3980-
:param bool short_url: Whether to return a shortened URL.
3977+
:type short_url: bool
39813978
:param Nullable[:class:`dropbox.sharing.PendingUploadMode`]
39823979
pending_upload: If it's okay to share a path that does not yet
39833980
exist, set this to either ``PendingUploadMode.file`` or
@@ -4224,8 +4221,7 @@ def sharing_get_shared_links(self,
42244221
all shared links for the current user, including collection links, up to
42254222
a maximum of 1000 links. If a non-empty path is given, returns a list of
42264223
all shared links that allow access to the given path. Collection links
4227-
are never returned in this case. Note that the url field in the response
4228-
is never the shortened URL.
4224+
are never returned in this case.
42294225
42304226
:param Nullable[str] path: See :meth:`sharing_get_shared_links`
42314227
description.

dropbox/sharing.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1257,8 +1257,6 @@ def _process_custom_annotations(self, annotation_type, field_path, processor):
12571257
class CreateSharedLinkArg(bb.Struct):
12581258
"""
12591259
:ivar sharing.CreateSharedLinkArg.path: The path to share.
1260-
:ivar sharing.CreateSharedLinkArg.short_url: Whether to return a shortened
1261-
URL.
12621260
:ivar sharing.CreateSharedLinkArg.pending_upload: If it's okay to share a
12631261
path that does not yet exist, set this to either
12641262
``PendingUploadMode.file`` or ``PendingUploadMode.folder`` to indicate

spec

0 commit comments

Comments
 (0)