Skip to content

Commit

Permalink
Automated Spec Update (#382)
Browse files Browse the repository at this point in the history
d439f00c77d82184d4d14c783166f372c8f03dd1

 Change Notes:

files Namespace

Add api_proxy_dev_check_api_v2_service namespace
Add api_proxy_dev_check_api_v2_types namespace

Co-authored-by: Eugene Che <[email protected]>

Co-authored-by: DropboxBot <[email protected]>
Co-authored-by: Eugene Che <[email protected]>
  • Loading branch information
3 people authored Aug 26, 2021
1 parent cc8b186 commit 6f03744
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 8 deletions.
23 changes: 16 additions & 7 deletions dropbox/files.py
Original file line number Diff line number Diff line change
Expand Up @@ -10120,10 +10120,14 @@ class WriteMode(bb.Union):
:ivar files.WriteMode.overwrite: Always overwrite the existing file. The
autorename strategy is the same as it is for ``add``.
:ivar str files.WriteMode.update: Overwrite if the given "rev" matches the
existing file's "rev". The autorename strategy is to append the string
"conflicted copy" to the file name. For example, "document.txt" might
become "document (conflicted copy).txt" or "document (Panda's conflicted
copy).txt".
existing file's "rev". The supplied value should be the latest known
"rev" of the file, for example, from :type:`FileMetadata`, from when the
file was last downloaded by the app. This will cause the file on the
Dropbox servers to be overwritten if the given "rev" matches the
existing file's current "rev" on the Dropbox servers. The autorename
strategy is to append the string "conflicted copy" to the file name. For
example, "document.txt" might become "document (conflicted copy).txt" or
"document (Panda's conflicted copy).txt".
"""

_catch_all = None
Expand Down Expand Up @@ -10170,9 +10174,14 @@ def is_update(self):
def get_update(self):
"""
Overwrite if the given "rev" matches the existing file's "rev". The
autorename strategy is to append the string "conflicted copy" to the
file name. For example, "document.txt" might become "document
(conflicted copy).txt" or "document (Panda's conflicted copy).txt".
supplied value should be the latest known "rev" of the file, for
example, from :class:`FileMetadata`, from when the file was last
downloaded by the app. This will cause the file on the Dropbox servers
to be overwritten if the given "rev" matches the existing file's current
"rev" on the Dropbox servers. The autorename strategy is to append the
string "conflicted copy" to the file name. For example, "document.txt"
might become "document (conflicted copy).txt" or "document (Panda's
conflicted copy).txt".
Only call this if :meth:`is_update` is true.
Expand Down
2 changes: 1 addition & 1 deletion spec

0 comments on commit 6f03744

Please sign in to comment.