File tree Expand file tree Collapse file tree 4 files changed +14
-2
lines changed
sdk/storage/azure-storage-blob/azure/storage/blob Expand file tree Collapse file tree 4 files changed +14
-2
lines changed Original file line number Diff line number Diff line change @@ -697,10 +697,11 @@ def upload_blob( # pylint: disable=too-many-locals
697
697
698
698
:keyword str encoding:
699
699
Defaults to UTF-8.
700
- :keyword Callable[[int, Optional[int]], None] progress_hook:
700
+ :keyword progress_hook:
701
701
A callback to track the progress of a long running upload. The signature is
702
702
function(current: int, total: Optional[int]) where current is the number of bytes transfered
703
703
so far, and total is the size of the blob or None if the size is unknown.
704
+ :paramtype progress_hook: Callable[[int, Optional[int]], None]
704
705
:keyword int timeout:
705
706
The timeout parameter is expressed in seconds. This method may make
706
707
multiple calls to the Azure service and the timeout will apply to
Original file line number Diff line number Diff line change @@ -959,6 +959,11 @@ def upload_blob(
959
959
960
960
:keyword str encoding:
961
961
Defaults to UTF-8.
962
+ :keyword progress_hook:
963
+ A callback to track the progress of a long running upload. The signature is
964
+ function(current: int, total: Optional[int]) where current is the number of bytes transfered
965
+ so far, and total is the size of the blob or None if the size is unknown.
966
+ :paramtype progress_hook: Callable[[int, Optional[int]], None]
962
967
:returns: A BlobClient to interact with the newly uploaded blob.
963
968
:rtype: ~azure.storage.blob.BlobClient
964
969
Original file line number Diff line number Diff line change @@ -366,10 +366,11 @@ async def upload_blob(
366
366
367
367
:keyword str encoding:
368
368
Defaults to UTF-8.
369
- :keyword Callable[[int, Optional[int]], None] progress_hook:
369
+ :keyword progress_hook:
370
370
A callback to track the progress of a long running upload. The signature is
371
371
function(current: int, total: Optional[int]) where current is the number of bytes transfered
372
372
so far, and total is the size of the blob or None if the size is unknown.
373
+ :paramtype progress_hook: Callable[[int, Optional[int]], None]
373
374
:keyword int timeout:
374
375
The timeout parameter is expressed in seconds. This method may make
375
376
multiple calls to the Azure service and the timeout will apply to
Original file line number Diff line number Diff line change @@ -819,6 +819,11 @@ async def upload_blob(
819
819
820
820
:keyword str encoding:
821
821
Defaults to UTF-8.
822
+ :keyword progress_hook:
823
+ A callback to track the progress of a long running upload. The signature is
824
+ function(current: int, total: Optional[int]) where current is the number of bytes transfered
825
+ so far, and total is the size of the blob or None if the size is unknown.
826
+ :paramtype progress_hook: Callable[[int, Optional[int]], None]
822
827
:returns: A BlobClient to interact with the newly uploaded blob.
823
828
:rtype: ~azure.storage.blob.aio.BlobClient
824
829
You can’t perform that action at this time.
0 commit comments