Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 20 additions & 9 deletions dropbox/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -966,7 +966,9 @@ def files_alpha_upload(
:param bytes f: Contents to upload.
:param content_hash: A hash of the file content uploaded in this call.
If provided and the uploaded content does not match this hash, an
error will be returned. For more information see our `Content hash
error will be returned. Optional, but recommended to avoid
committing data corrupted in transit. For more information see our
`Content hash
<https://www.dropbox.com/developers/reference/content-hash>`_ page.
:type content_hash: Nullable[str]
:rtype: :class:`dropbox.files.FileMetadata`
Expand Down Expand Up @@ -3298,7 +3300,9 @@ def files_upload(
:param bytes f: Contents to upload.
:param content_hash: A hash of the file content uploaded in this call.
If provided and the uploaded content does not match this hash, an
error will be returned. For more information see our `Content hash
error will be returned. Optional, but recommended to avoid
committing data corrupted in transit. For more information see our
`Content hash
<https://www.dropbox.com/developers/reference/content-hash>`_ page.
:type content_hash: Nullable[str]
:rtype: :class:`dropbox.files.FileMetadata`
Expand Down Expand Up @@ -3389,7 +3393,9 @@ def files_upload_session_append_v2(self, f, cursor, close=False, content_hash=No
:type close: bool
:param content_hash: A hash of the file content uploaded in this call.
If provided and the uploaded content does not match this hash, an
error will be returned. For more information see our `Content hash
error will be returned. Optional, but recommended to avoid
committing data corrupted in transit. For more information see our
`Content hash
<https://www.dropbox.com/developers/reference/content-hash>`_ page.
:type content_hash: Nullable[str]
:rtype: None
Expand Down Expand Up @@ -3427,10 +3433,11 @@ def files_upload_session_append_batch(self, f, entries, content_hash=None):
:param bytes f: Contents to upload.
:param entries: Append information for each file in the batch.
:type entries: List[:class:`dropbox.files.UploadSessionAppendBatchArgEntry`]
:param content_hash: A hash of the entire request body which is all the
concatenated pieces of file content that were uploaded in this call.
If provided and the uploaded content does not match this hash, an
error will be returned. For more information see our `Content hash
:param content_hash: A single hash of all the concatenated file contents
uploaded in this call. If provided and the uploaded content does not
match this hash, an error will be returned. Optional, but
recommended to avoid committing data corrupted in transit. For more
information see our `Content hash
<https://www.dropbox.com/developers/reference/content-hash>`_ page.
:type content_hash: Nullable[str]
:rtype: :class:`dropbox.files.UploadSessionAppendBatchResult`
Expand Down Expand Up @@ -3470,7 +3477,9 @@ def files_upload_session_finish(self, f, cursor, commit, content_hash=None):
:type commit: :class:`dropbox.files.CommitInfo`
:param content_hash: A hash of the file content uploaded in this call.
If provided and the uploaded content does not match this hash, an
error will be returned. For more information see our `Content hash
error will be returned. Optional, but recommended to avoid
committing data corrupted in transit. For more information see our
`Content hash
<https://www.dropbox.com/developers/reference/content-hash>`_ page.
:type content_hash: Nullable[str]
:rtype: :class:`dropbox.files.FileMetadata`
Expand Down Expand Up @@ -3652,7 +3661,9 @@ def files_upload_session_start(self, f, close=False, session_type=None, content_
:type session_type: Nullable[:class:`dropbox.files.UploadSessionType`]
:param content_hash: A hash of the file content uploaded in this call.
If provided and the uploaded content does not match this hash, an
error will be returned. For more information see our `Content hash
error will be returned. Optional, but recommended to avoid
committing data corrupted in transit. For more information see our
`Content hash
<https://www.dropbox.com/developers/reference/content-hash>`_ page.
:type content_hash: Nullable[str]
:rtype: :class:`dropbox.files.UploadSessionStartResult`
Expand Down
12 changes: 8 additions & 4 deletions dropbox/files.py
Original file line number Diff line number Diff line change
Expand Up @@ -10181,6 +10181,7 @@ class UploadArg(CommitInfo):
:ivar UploadArg.content_hash:
A hash of the file content uploaded in this call. If provided and the
uploaded content does not match this hash, an error will be returned.
Optional, but recommended to avoid committing data corrupted in transit.
For more information see our `Content hash
<https://www.dropbox.com/developers/reference/content-hash>`_ page.
"""
Expand Down Expand Up @@ -10366,6 +10367,7 @@ class UploadSessionAppendArg(bb.Struct):
:ivar UploadSessionAppendArg.content_hash:
A hash of the file content uploaded in this call. If provided and the
uploaded content does not match this hash, an error will be returned.
Optional, but recommended to avoid committing data corrupted in transit.
For more information see our `Content hash
<https://www.dropbox.com/developers/reference/content-hash>`_ page.
"""
Expand Down Expand Up @@ -10412,10 +10414,10 @@ class UploadSessionAppendBatchArg(bb.Struct):
:ivar UploadSessionAppendBatchArg.entries:
Append information for each file in the batch.
:ivar UploadSessionAppendBatchArg.content_hash:
A hash of the entire request body which is all the concatenated pieces
of file content that were uploaded in this call. If provided and the
uploaded content does not match this hash, an error will be returned.
For more information see our `Content hash
A single hash of all the concatenated file contents uploaded in this
call. If provided and the uploaded content does not match this hash, an
error will be returned. Optional, but recommended to avoid committing
data corrupted in transit. For more information see our `Content hash
<https://www.dropbox.com/developers/reference/content-hash>`_ page.
"""

Expand Down Expand Up @@ -11000,6 +11002,7 @@ class UploadSessionFinishArg(bb.Struct):
:ivar UploadSessionFinishArg.content_hash:
A hash of the file content uploaded in this call. If provided and the
uploaded content does not match this hash, an error will be returned.
Optional, but recommended to avoid committing data corrupted in transit.
For more information see our `Content hash
<https://www.dropbox.com/developers/reference/content-hash>`_ page.
"""
Expand Down Expand Up @@ -11732,6 +11735,7 @@ class UploadSessionStartArg(bb.Struct):
:ivar UploadSessionStartArg.content_hash:
A hash of the file content uploaded in this call. If provided and the
uploaded content does not match this hash, an error will be returned.
Optional, but recommended to avoid committing data corrupted in transit.
For more information see our `Content hash
<https://www.dropbox.com/developers/reference/content-hash>`_ page.
"""
Expand Down
2 changes: 1 addition & 1 deletion spec
Submodule spec updated 1 files
+19 −15 files.stone
Loading