Skip to content

Commit

Permalink
docs(storage): add document about default chunk size (#167)
Browse files Browse the repository at this point in the history
Co-authored-by: Frank Natividad <frankyn@users.noreply.github.com>
  • Loading branch information
HemangChothani and frankyn committed Jun 8, 2020
1 parent 63cc73e commit 7fa0f36
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion google/cloud/storage/blob.py
Expand Up @@ -1377,7 +1377,9 @@ def _initiate_resumable_upload(
(Optional) Chunk size to use when creating a
:class:`~google.resumable_media.requests.ResumableUpload`.
If not passed, will fall back to the chunk size on the
current blob.
current blob, if the chunk size of a current blob is also
`None`, will set the default value.
The default value of ``chunk_size`` is 100 MB.
:type if_generation_match: long
:param if_generation_match: (Optional) Make the operation conditional on whether
Expand Down Expand Up @@ -1490,6 +1492,7 @@ def _do_resumable_upload(
"""Perform a resumable upload.
Assumes ``chunk_size`` is not :data:`None` on the current blob.
The default value of ``chunk_size`` is 100 MB.
The content type of the upload will be determined in order
of precedence:
Expand Down

0 comments on commit 7fa0f36

Please sign in to comment.