azure-storage-blob 12.24.0b1__py3-none-any.whl → 12.24.1__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (30) hide show
  1. azure/storage/blob/_blob_client.py +6 -3
  2. azure/storage/blob/_download.py +2 -2
  3. azure/storage/blob/_generated/aio/operations/_append_blob_operations.py +4 -4
  4. azure/storage/blob/_generated/aio/operations/_blob_operations.py +33 -33
  5. azure/storage/blob/_generated/aio/operations/_block_blob_operations.py +7 -7
  6. azure/storage/blob/_generated/aio/operations/_container_operations.py +18 -18
  7. azure/storage/blob/_generated/aio/operations/_page_blob_operations.py +11 -11
  8. azure/storage/blob/_generated/aio/operations/_service_operations.py +8 -8
  9. azure/storage/blob/_generated/operations/_append_blob_operations.py +4 -4
  10. azure/storage/blob/_generated/operations/_blob_operations.py +33 -33
  11. azure/storage/blob/_generated/operations/_block_blob_operations.py +7 -7
  12. azure/storage/blob/_generated/operations/_container_operations.py +18 -18
  13. azure/storage/blob/_generated/operations/_page_blob_operations.py +11 -11
  14. azure/storage/blob/_generated/operations/_service_operations.py +8 -8
  15. azure/storage/blob/_models.py +1 -1
  16. azure/storage/blob/_shared/authentication.py +1 -1
  17. azure/storage/blob/_shared/base_client.py +1 -1
  18. azure/storage/blob/_shared/parser.py +2 -10
  19. azure/storage/blob/_shared/policies_async.py +2 -2
  20. azure/storage/blob/_shared/request_handlers.py +3 -4
  21. azure/storage/blob/_shared/response_handlers.py +2 -2
  22. azure/storage/blob/_shared/shared_access_signature.py +2 -2
  23. azure/storage/blob/_version.py +1 -1
  24. azure/storage/blob/aio/_blob_client_async.py +6 -3
  25. azure/storage/blob/aio/_download_async.py +3 -3
  26. {azure_storage_blob-12.24.0b1.dist-info → azure_storage_blob-12.24.1.dist-info}/METADATA +20 -20
  27. {azure_storage_blob-12.24.0b1.dist-info → azure_storage_blob-12.24.1.dist-info}/RECORD +30 -30
  28. {azure_storage_blob-12.24.0b1.dist-info → azure_storage_blob-12.24.1.dist-info}/WHEEL +1 -1
  29. {azure_storage_blob-12.24.0b1.dist-info → azure_storage_blob-12.24.1.dist-info}/LICENSE +0 -0
  30. {azure_storage_blob-12.24.0b1.dist-info → azure_storage_blob-12.24.1.dist-info}/top_level.txt +0 -0
@@ -920,7 +920,7 @@ class ContainerOperations:
920
920
 
921
921
  :param timeout: The timeout parameter is expressed in seconds. For more information, see
922
922
  :code:`<a
923
- href="https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations">Setting
923
+ href="https://learn.microsoft.com/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations">Setting
924
924
  Timeouts for Blob Service Operations.</a>`. Default value is None.
925
925
  :type timeout: int
926
926
  :param metadata: Optional. Specifies a user-defined name-value pair associated with the blob.
@@ -1018,7 +1018,7 @@ class ContainerOperations:
1018
1018
 
1019
1019
  :param timeout: The timeout parameter is expressed in seconds. For more information, see
1020
1020
  :code:`<a
1021
- href="https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations">Setting
1021
+ href="https://learn.microsoft.com/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations">Setting
1022
1022
  Timeouts for Blob Service Operations.</a>`. Default value is None.
1023
1023
  :type timeout: int
1024
1024
  :param request_id_parameter: Provides a client-generated, opaque value with a 1 KB character
@@ -1121,7 +1121,7 @@ class ContainerOperations:
1121
1121
 
1122
1122
  :param timeout: The timeout parameter is expressed in seconds. For more information, see
1123
1123
  :code:`<a
1124
- href="https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations">Setting
1124
+ href="https://learn.microsoft.com/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations">Setting
1125
1125
  Timeouts for Blob Service Operations.</a>`. Default value is None.
1126
1126
  :type timeout: int
1127
1127
  :param request_id_parameter: Provides a client-generated, opaque value with a 1 KB character
@@ -1211,7 +1211,7 @@ class ContainerOperations:
1211
1211
 
1212
1212
  :param timeout: The timeout parameter is expressed in seconds. For more information, see
1213
1213
  :code:`<a
1214
- href="https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations">Setting
1214
+ href="https://learn.microsoft.com/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations">Setting
1215
1215
  Timeouts for Blob Service Operations.</a>`. Default value is None.
1216
1216
  :type timeout: int
1217
1217
  :param metadata: Optional. Specifies a user-defined name-value pair associated with the blob.
@@ -1310,7 +1310,7 @@ class ContainerOperations:
1310
1310
 
1311
1311
  :param timeout: The timeout parameter is expressed in seconds. For more information, see
1312
1312
  :code:`<a
1313
- href="https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations">Setting
1313
+ href="https://learn.microsoft.com/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations">Setting
1314
1314
  Timeouts for Blob Service Operations.</a>`. Default value is None.
1315
1315
  :type timeout: int
1316
1316
  :param request_id_parameter: Provides a client-generated, opaque value with a 1 KB character
@@ -1404,7 +1404,7 @@ class ContainerOperations:
1404
1404
 
1405
1405
  :param timeout: The timeout parameter is expressed in seconds. For more information, see
1406
1406
  :code:`<a
1407
- href="https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations">Setting
1407
+ href="https://learn.microsoft.com/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations">Setting
1408
1408
  Timeouts for Blob Service Operations.</a>`. Default value is None.
1409
1409
  :type timeout: int
1410
1410
  :param access: Specifies whether data in the container may be accessed publicly and the level
@@ -1513,7 +1513,7 @@ class ContainerOperations:
1513
1513
 
1514
1514
  :param timeout: The timeout parameter is expressed in seconds. For more information, see
1515
1515
  :code:`<a
1516
- href="https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations">Setting
1516
+ href="https://learn.microsoft.com/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations">Setting
1517
1517
  Timeouts for Blob Service Operations.</a>`. Default value is None.
1518
1518
  :type timeout: int
1519
1519
  :param request_id_parameter: Provides a client-generated, opaque value with a 1 KB character
@@ -1599,7 +1599,7 @@ class ContainerOperations:
1599
1599
  :type source_container_name: str
1600
1600
  :param timeout: The timeout parameter is expressed in seconds. For more information, see
1601
1601
  :code:`<a
1602
- href="https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations">Setting
1602
+ href="https://learn.microsoft.com/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations">Setting
1603
1603
  Timeouts for Blob Service Operations.</a>`. Default value is None.
1604
1604
  :type timeout: int
1605
1605
  :param request_id_parameter: Provides a client-generated, opaque value with a 1 KB character
@@ -1683,7 +1683,7 @@ class ContainerOperations:
1683
1683
  :type body: IO[bytes]
1684
1684
  :param timeout: The timeout parameter is expressed in seconds. For more information, see
1685
1685
  :code:`<a
1686
- href="https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations">Setting
1686
+ href="https://learn.microsoft.com/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations">Setting
1687
1687
  Timeouts for Blob Service Operations.</a>`. Default value is None.
1688
1688
  :type timeout: int
1689
1689
  :param request_id_parameter: Provides a client-generated, opaque value with a 1 KB character
@@ -1775,7 +1775,7 @@ class ContainerOperations:
1775
1775
 
1776
1776
  :param timeout: The timeout parameter is expressed in seconds. For more information, see
1777
1777
  :code:`<a
1778
- href="https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations">Setting
1778
+ href="https://learn.microsoft.com/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations">Setting
1779
1779
  Timeouts for Blob Service Operations.</a>`. Default value is None.
1780
1780
  :type timeout: int
1781
1781
  :param request_id_parameter: Provides a client-generated, opaque value with a 1 KB character
@@ -1880,7 +1880,7 @@ class ContainerOperations:
1880
1880
 
1881
1881
  :param timeout: The timeout parameter is expressed in seconds. For more information, see
1882
1882
  :code:`<a
1883
- href="https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations">Setting
1883
+ href="https://learn.microsoft.com/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations">Setting
1884
1884
  Timeouts for Blob Service Operations.</a>`. Default value is None.
1885
1885
  :type timeout: int
1886
1886
  :param duration: Specifies the duration of the lease, in seconds, or negative one (-1) for a
@@ -1983,7 +1983,7 @@ class ContainerOperations:
1983
1983
  :type lease_id: str
1984
1984
  :param timeout: The timeout parameter is expressed in seconds. For more information, see
1985
1985
  :code:`<a
1986
- href="https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations">Setting
1986
+ href="https://learn.microsoft.com/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations">Setting
1987
1987
  Timeouts for Blob Service Operations.</a>`. Default value is None.
1988
1988
  :type timeout: int
1989
1989
  :param request_id_parameter: Provides a client-generated, opaque value with a 1 KB character
@@ -2076,7 +2076,7 @@ class ContainerOperations:
2076
2076
  :type lease_id: str
2077
2077
  :param timeout: The timeout parameter is expressed in seconds. For more information, see
2078
2078
  :code:`<a
2079
- href="https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations">Setting
2079
+ href="https://learn.microsoft.com/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations">Setting
2080
2080
  Timeouts for Blob Service Operations.</a>`. Default value is None.
2081
2081
  :type timeout: int
2082
2082
  :param request_id_parameter: Provides a client-generated, opaque value with a 1 KB character
@@ -2168,7 +2168,7 @@ class ContainerOperations:
2168
2168
 
2169
2169
  :param timeout: The timeout parameter is expressed in seconds. For more information, see
2170
2170
  :code:`<a
2171
- href="https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations">Setting
2171
+ href="https://learn.microsoft.com/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations">Setting
2172
2172
  Timeouts for Blob Service Operations.</a>`. Default value is None.
2173
2173
  :type timeout: int
2174
2174
  :param break_period: For a break operation, proposed duration the lease should continue before
@@ -2275,7 +2275,7 @@ class ContainerOperations:
2275
2275
  :type proposed_lease_id: str
2276
2276
  :param timeout: The timeout parameter is expressed in seconds. For more information, see
2277
2277
  :code:`<a
2278
- href="https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations">Setting
2278
+ href="https://learn.microsoft.com/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations">Setting
2279
2279
  Timeouts for Blob Service Operations.</a>`. Default value is None.
2280
2280
  :type timeout: int
2281
2281
  :param request_id_parameter: Provides a client-generated, opaque value with a 1 KB character
@@ -2389,7 +2389,7 @@ class ContainerOperations:
2389
2389
  :type include: list[str or ~azure.storage.blob.models.ListBlobsIncludeItem]
2390
2390
  :param timeout: The timeout parameter is expressed in seconds. For more information, see
2391
2391
  :code:`<a
2392
- href="https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations">Setting
2392
+ href="https://learn.microsoft.com/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations">Setting
2393
2393
  Timeouts for Blob Service Operations.</a>`. Default value is None.
2394
2394
  :type timeout: int
2395
2395
  :param request_id_parameter: Provides a client-generated, opaque value with a 1 KB character
@@ -2501,7 +2501,7 @@ class ContainerOperations:
2501
2501
  :type include: list[str or ~azure.storage.blob.models.ListBlobsIncludeItem]
2502
2502
  :param timeout: The timeout parameter is expressed in seconds. For more information, see
2503
2503
  :code:`<a
2504
- href="https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations">Setting
2504
+ href="https://learn.microsoft.com/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations">Setting
2505
2505
  Timeouts for Blob Service Operations.</a>`. Default value is None.
2506
2506
  :type timeout: int
2507
2507
  :param request_id_parameter: Provides a client-generated, opaque value with a 1 KB character
@@ -2581,7 +2581,7 @@ class ContainerOperations:
2581
2581
 
2582
2582
  :param timeout: The timeout parameter is expressed in seconds. For more information, see
2583
2583
  :code:`<a
2584
- href="https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations">Setting
2584
+ href="https://learn.microsoft.com/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations">Setting
2585
2585
  Timeouts for Blob Service Operations.</a>`. Default value is None.
2586
2586
  :type timeout: int
2587
2587
  :param request_id_parameter: Provides a client-generated, opaque value with a 1 KB character
@@ -854,7 +854,7 @@ class PageBlobOperations:
854
854
  :type blob_content_length: int
855
855
  :param timeout: The timeout parameter is expressed in seconds. For more information, see
856
856
  :code:`<a
857
- href="https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations">Setting
857
+ href="https://learn.microsoft.com/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations">Setting
858
858
  Timeouts for Blob Service Operations.</a>`. Default value is None.
859
859
  :type timeout: int
860
860
  :param tier: Optional. Indicates the tier to be set on the page blob. Known values are: "P4",
@@ -1059,7 +1059,7 @@ class PageBlobOperations:
1059
1059
  :type transactional_content_crc64: bytes
1060
1060
  :param timeout: The timeout parameter is expressed in seconds. For more information, see
1061
1061
  :code:`<a
1062
- href="https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations">Setting
1062
+ href="https://learn.microsoft.com/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations">Setting
1063
1063
  Timeouts for Blob Service Operations.</a>`. Default value is None.
1064
1064
  :type timeout: int
1065
1065
  :param range: Return only the bytes of the blob in the specified range. Default value is None.
@@ -1239,7 +1239,7 @@ class PageBlobOperations:
1239
1239
  :type content_length: int
1240
1240
  :param timeout: The timeout parameter is expressed in seconds. For more information, see
1241
1241
  :code:`<a
1242
- href="https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations">Setting
1242
+ href="https://learn.microsoft.com/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations">Setting
1243
1243
  Timeouts for Blob Service Operations.</a>`. Default value is None.
1244
1244
  :type timeout: int
1245
1245
  :param range: Return only the bytes of the blob in the specified range. Default value is None.
@@ -1413,7 +1413,7 @@ class PageBlobOperations:
1413
1413
  :type source_contentcrc64: bytes
1414
1414
  :param timeout: The timeout parameter is expressed in seconds. For more information, see
1415
1415
  :code:`<a
1416
- href="https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations">Setting
1416
+ href="https://learn.microsoft.com/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations">Setting
1417
1417
  Timeouts for Blob Service Operations.</a>`. Default value is None.
1418
1418
  :type timeout: int
1419
1419
  :param request_id_parameter: Provides a client-generated, opaque value with a 1 KB character
@@ -1593,12 +1593,12 @@ class PageBlobOperations:
1593
1593
  :param snapshot: The snapshot parameter is an opaque DateTime value that, when present,
1594
1594
  specifies the blob snapshot to retrieve. For more information on working with blob snapshots,
1595
1595
  see :code:`<a
1596
- href="https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/creating-a-snapshot-of-a-blob">Creating
1596
+ href="https://learn.microsoft.com/rest/api/storageservices/fileservices/creating-a-snapshot-of-a-blob">Creating
1597
1597
  a Snapshot of a Blob.</a>`. Default value is None.
1598
1598
  :type snapshot: str
1599
1599
  :param timeout: The timeout parameter is expressed in seconds. For more information, see
1600
1600
  :code:`<a
1601
- href="https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations">Setting
1601
+ href="https://learn.microsoft.com/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations">Setting
1602
1602
  Timeouts for Blob Service Operations.</a>`. Default value is None.
1603
1603
  :type timeout: int
1604
1604
  :param range: Return only the bytes of the blob in the specified range. Default value is None.
@@ -1733,12 +1733,12 @@ class PageBlobOperations:
1733
1733
  :param snapshot: The snapshot parameter is an opaque DateTime value that, when present,
1734
1734
  specifies the blob snapshot to retrieve. For more information on working with blob snapshots,
1735
1735
  see :code:`<a
1736
- href="https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/creating-a-snapshot-of-a-blob">Creating
1736
+ href="https://learn.microsoft.com/rest/api/storageservices/fileservices/creating-a-snapshot-of-a-blob">Creating
1737
1737
  a Snapshot of a Blob.</a>`. Default value is None.
1738
1738
  :type snapshot: str
1739
1739
  :param timeout: The timeout parameter is expressed in seconds. For more information, see
1740
1740
  :code:`<a
1741
- href="https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations">Setting
1741
+ href="https://learn.microsoft.com/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations">Setting
1742
1742
  Timeouts for Blob Service Operations.</a>`. Default value is None.
1743
1743
  :type timeout: int
1744
1744
  :param prevsnapshot: Optional in version 2015-07-08 and newer. The prevsnapshot parameter is a
@@ -1885,7 +1885,7 @@ class PageBlobOperations:
1885
1885
  :type blob_content_length: int
1886
1886
  :param timeout: The timeout parameter is expressed in seconds. For more information, see
1887
1887
  :code:`<a
1888
- href="https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations">Setting
1888
+ href="https://learn.microsoft.com/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations">Setting
1889
1889
  Timeouts for Blob Service Operations.</a>`. Default value is None.
1890
1890
  :type timeout: int
1891
1891
  :param request_id_parameter: Provides a client-generated, opaque value with a 1 KB character
@@ -2014,7 +2014,7 @@ class PageBlobOperations:
2014
2014
  :type sequence_number_action: str or ~azure.storage.blob.models.SequenceNumberActionType
2015
2015
  :param timeout: The timeout parameter is expressed in seconds. For more information, see
2016
2016
  :code:`<a
2017
- href="https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations">Setting
2017
+ href="https://learn.microsoft.com/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations">Setting
2018
2018
  Timeouts for Blob Service Operations.</a>`. Default value is None.
2019
2019
  :type timeout: int
2020
2020
  :param blob_sequence_number: Set for page blobs only. The sequence number is a user-controlled
@@ -2132,7 +2132,7 @@ class PageBlobOperations:
2132
2132
  :type copy_source: str
2133
2133
  :param timeout: The timeout parameter is expressed in seconds. For more information, see
2134
2134
  :code:`<a
2135
- href="https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations">Setting
2135
+ href="https://learn.microsoft.com/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations">Setting
2136
2136
  Timeouts for Blob Service Operations.</a>`. Default value is None.
2137
2137
  :type timeout: int
2138
2138
  :param request_id_parameter: Provides a client-generated, opaque value with a 1 KB character
@@ -387,7 +387,7 @@ class ServiceOperations:
387
387
  :type storage_service_properties: ~azure.storage.blob.models.StorageServiceProperties
388
388
  :param timeout: The timeout parameter is expressed in seconds. For more information, see
389
389
  :code:`<a
390
- href="https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations">Setting
390
+ href="https://learn.microsoft.com/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations">Setting
391
391
  Timeouts for Blob Service Operations.</a>`. Default value is None.
392
392
  :type timeout: int
393
393
  :param request_id_parameter: Provides a client-generated, opaque value with a 1 KB character
@@ -462,7 +462,7 @@ class ServiceOperations:
462
462
 
463
463
  :param timeout: The timeout parameter is expressed in seconds. For more information, see
464
464
  :code:`<a
465
- href="https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations">Setting
465
+ href="https://learn.microsoft.com/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations">Setting
466
466
  Timeouts for Blob Service Operations.</a>`. Default value is None.
467
467
  :type timeout: int
468
468
  :param request_id_parameter: Provides a client-generated, opaque value with a 1 KB character
@@ -537,7 +537,7 @@ class ServiceOperations:
537
537
 
538
538
  :param timeout: The timeout parameter is expressed in seconds. For more information, see
539
539
  :code:`<a
540
- href="https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations">Setting
540
+ href="https://learn.microsoft.com/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations">Setting
541
541
  Timeouts for Blob Service Operations.</a>`. Default value is None.
542
542
  :type timeout: int
543
543
  :param request_id_parameter: Provides a client-generated, opaque value with a 1 KB character
@@ -639,7 +639,7 @@ class ServiceOperations:
639
639
  :type include: list[str or ~azure.storage.blob.models.ListContainersIncludeType]
640
640
  :param timeout: The timeout parameter is expressed in seconds. For more information, see
641
641
  :code:`<a
642
- href="https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations">Setting
642
+ href="https://learn.microsoft.com/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations">Setting
643
643
  Timeouts for Blob Service Operations.</a>`. Default value is None.
644
644
  :type timeout: int
645
645
  :param request_id_parameter: Provides a client-generated, opaque value with a 1 KB character
@@ -721,7 +721,7 @@ class ServiceOperations:
721
721
  :type key_info: ~azure.storage.blob.models.KeyInfo
722
722
  :param timeout: The timeout parameter is expressed in seconds. For more information, see
723
723
  :code:`<a
724
- href="https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations">Setting
724
+ href="https://learn.microsoft.com/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations">Setting
725
725
  Timeouts for Blob Service Operations.</a>`. Default value is None.
726
726
  :type timeout: int
727
727
  :param request_id_parameter: Provides a client-generated, opaque value with a 1 KB character
@@ -800,7 +800,7 @@ class ServiceOperations:
800
800
 
801
801
  :param timeout: The timeout parameter is expressed in seconds. For more information, see
802
802
  :code:`<a
803
- href="https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations">Setting
803
+ href="https://learn.microsoft.com/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations">Setting
804
804
  Timeouts for Blob Service Operations.</a>`. Default value is None.
805
805
  :type timeout: int
806
806
  :param request_id_parameter: Provides a client-generated, opaque value with a 1 KB character
@@ -882,7 +882,7 @@ class ServiceOperations:
882
882
  :type body: IO[bytes]
883
883
  :param timeout: The timeout parameter is expressed in seconds. For more information, see
884
884
  :code:`<a
885
- href="https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations">Setting
885
+ href="https://learn.microsoft.com/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations">Setting
886
886
  Timeouts for Blob Service Operations.</a>`. Default value is None.
887
887
  :type timeout: int
888
888
  :param request_id_parameter: Provides a client-generated, opaque value with a 1 KB character
@@ -973,7 +973,7 @@ class ServiceOperations:
973
973
 
974
974
  :param timeout: The timeout parameter is expressed in seconds. For more information, see
975
975
  :code:`<a
976
- href="https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations">Setting
976
+ href="https://learn.microsoft.com/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations">Setting
977
977
  Timeouts for Blob Service Operations.</a>`. Default value is None.
978
978
  :type timeout: int
979
979
  :param request_id_parameter: Provides a client-generated, opaque value with a 1 KB character
@@ -95,7 +95,7 @@ class PremiumPageBlobTier(str, Enum, metaclass=CaseInsensitiveEnumMeta):
95
95
  """
96
96
  Specifies the page blob tier to set the blob to. This is only applicable to page
97
97
  blobs on premium storage accounts. Please take a look at:
98
- https://docs.microsoft.com/en-us/azure/storage/storage-premium-storage#scalability-and-performance-targets
98
+ https://learn.microsoft.com/azure/storage/storage-premium-storage#scalability-and-performance-targets
99
99
  for detailed information on the corresponding IOPS and throughput per PageBlobTier.
100
100
  """
101
101
 
@@ -121,7 +121,7 @@ class AzureSigningError(ClientAuthenticationError):
121
121
  """
122
122
  Represents a fatal error when attempting to sign a request.
123
123
  In general, the cause of this exception is user error. For example, the given account key is not valid.
124
- Please visit https://docs.microsoft.com/en-us/azure/storage/common/storage-create-storage-account for more info.
124
+ Please visit https://learn.microsoft.com/azure/storage/common/storage-create-storage-account for more info.
125
125
  """
126
126
 
127
127
 
@@ -363,7 +363,7 @@ class TransportWrapper(HttpTransport):
363
363
 
364
364
 
365
365
  def _format_shared_key_credential(
366
- account_name: str,
366
+ account_name: Optional[str],
367
367
  credential: Optional[Union[str, Dict[str, str], AzureNamedKeyCredential, AzureSasCredential, "AsyncTokenCredential", TokenCredential]] = None # pylint: disable=line-too-long
368
368
  ) -> Any:
369
369
  if isinstance(credential, str):
@@ -4,26 +4,17 @@
4
4
  # license information.
5
5
  # --------------------------------------------------------------------------
6
6
 
7
- import sys
8
7
  from datetime import datetime, timezone
9
8
  from typing import Optional
10
9
 
11
10
  EPOCH_AS_FILETIME = 116444736000000000 # January 1, 1970 as MS filetime
12
11
  HUNDREDS_OF_NANOSECONDS = 10000000
13
12
 
14
- if sys.version_info < (3,):
15
- def _str(value):
16
- if isinstance(value, unicode): # pylint: disable=undefined-variable
17
- return value.encode('utf-8')
18
-
19
- return str(value)
20
- else:
21
- _str = str
22
-
23
13
 
24
14
  def _to_utc_datetime(value: datetime) -> str:
25
15
  return value.strftime('%Y-%m-%dT%H:%M:%SZ')
26
16
 
17
+
27
18
  def _rfc_1123_to_datetime(rfc_1123: str) -> Optional[datetime]:
28
19
  """Converts an RFC 1123 date string to a UTC datetime.
29
20
 
@@ -36,6 +27,7 @@ def _rfc_1123_to_datetime(rfc_1123: str) -> Optional[datetime]:
36
27
 
37
28
  return datetime.strptime(rfc_1123, "%a, %d %b %Y %H:%M:%S %Z")
38
29
 
30
+
39
31
  def _filetime_to_datetime(filetime: str) -> Optional[datetime]:
40
32
  """Converts an MS filetime string to a UTC datetime. "0" indicates None.
41
33
  If parsing MS Filetime fails, tries RFC 1123 as backup.
@@ -46,11 +46,11 @@ async def is_checksum_retry(response):
46
46
  # retry if invalid content md5
47
47
  if response.context.get('validate_content', False) and response.http_response.headers.get('content-md5'):
48
48
  try:
49
- await response.http_response.read() # Load the body in memory and close the socket
49
+ await response.http_response.load_body() # Load the body in memory and close the socket
50
50
  except (StreamClosedError, StreamConsumedError):
51
51
  pass
52
52
  computed_md5 = response.http_request.headers.get('content-md5', None) or \
53
- encode_base64(StorageContentValidation.get_content_md5(response.http_response.content))
53
+ encode_base64(StorageContentValidation.get_content_md5(response.http_response.body()))
54
54
  if response.http_response.headers['content-md5'] != computed_md5:
55
55
  return True
56
56
  return False
@@ -4,12 +4,11 @@
4
4
  # license information.
5
5
  # --------------------------------------------------------------------------
6
6
 
7
- from typing import Dict, Optional
8
-
9
7
  import logging
10
- from os import fstat
11
8
  import stat
12
9
  from io import (SEEK_END, SEEK_SET, UnsupportedOperation)
10
+ from os import fstat
11
+ from typing import Dict, Optional
13
12
 
14
13
  import isodate
15
14
 
@@ -186,7 +185,7 @@ def serialize_batch_body(requests, batch_id):
186
185
  # final line of body MUST have \r\n at the end, or it will not be properly read by the service
187
186
  batch_body.append(newline_bytes)
188
187
 
189
- return bytes().join(batch_body)
188
+ return b"".join(batch_body)
190
189
 
191
190
 
192
191
  def _get_batch_request_delimiter(batch_id, is_prepend_dashes=False, is_append_dashes=False):
@@ -60,9 +60,9 @@ def normalize_headers(headers):
60
60
 
61
61
  def deserialize_metadata(response, obj, headers): # pylint: disable=unused-argument
62
62
  try:
63
- raw_metadata = {k: v for k, v in response.http_response.headers.items() if k.startswith("x-ms-meta-")}
63
+ raw_metadata = {k: v for k, v in response.http_response.headers.items() if k.lower().startswith('x-ms-meta-')}
64
64
  except AttributeError:
65
- raw_metadata = {k: v for k, v in response.headers.items() if k.startswith("x-ms-meta-")}
65
+ raw_metadata = {k: v for k, v in response.headers.items() if k.lower().startswith('x-ms-meta-')}
66
66
  return {k[10:]: v for k, v in raw_metadata.items()}
67
67
 
68
68
 
@@ -7,7 +7,7 @@
7
7
 
8
8
  from datetime import date
9
9
 
10
- from .parser import _str, _to_utc_datetime
10
+ from .parser import _to_utc_datetime
11
11
  from .constants import X_MS_VERSION
12
12
  from . import sign_string, url_quote
13
13
 
@@ -187,7 +187,7 @@ class _SharedAccessHelper(object):
187
187
 
188
188
  def _add_query(self, name, val):
189
189
  if val:
190
- self.query_dict[name] = _str(val) if val is not None else None
190
+ self.query_dict[name] = str(val) if val is not None else None
191
191
 
192
192
  def add_encryption_scope(self, **kwargs):
193
193
  self._add_query(QueryStringConstants.SIGNED_ENCRYPTION_SCOPE, kwargs.pop('encryption_scope', None))
@@ -4,4 +4,4 @@
4
4
  # license information.
5
5
  # --------------------------------------------------------------------------
6
6
 
7
- VERSION = "12.24.0b1"
7
+ VERSION = "12.24.1"
@@ -530,8 +530,9 @@ class BlobClient(AsyncStorageAccountHostsMixin, StorageAccountHostsMixin, Storag
530
530
  value specified in this header, the request will fail with
531
531
  MaxBlobSizeConditionNotMet error (HTTP status code 412 - Precondition Failed).
532
532
  :keyword int max_concurrency:
533
- Maximum number of parallel connections to use when the blob size exceeds
534
- 64MB.
533
+ Maximum number of parallel connections to use when transferring the blob in chunks.
534
+ This option does not affect the underlying connection pool, and may
535
+ require a separate configuration of the connection pool.
535
536
  :keyword ~azure.storage.blob.CustomerProvidedEncryptionKey cpk:
536
537
  Encrypts the data on the service-side with the given key.
537
538
  Use of customer-provided keys must be done over HTTPS.
@@ -687,7 +688,9 @@ class BlobClient(AsyncStorageAccountHostsMixin, StorageAccountHostsMixin, Storag
687
688
  As the encryption key itself is provided in the request,
688
689
  a secure connection must be established to transfer the key.
689
690
  :keyword int max_concurrency:
690
- The number of parallel connections with which to download.
691
+ Maximum number of parallel connections to use when transferring the blob in chunks.
692
+ This option does not affect the underlying connection pool, and may
693
+ require a separate configuration of the connection pool.
691
694
  :keyword str encoding:
692
695
  Encoding to decode the downloaded bytes. Default is None, i.e. no decoding.
693
696
  :keyword progress_hook:
@@ -46,8 +46,8 @@ T = TypeVar('T', bytes, str)
46
46
  async def process_content(data: Any, start_offset: int, end_offset: int, encryption: Dict[str, Any]) -> bytes:
47
47
  if data is None:
48
48
  raise ValueError("Response cannot be None.")
49
- await data.response.read()
50
- content = cast(bytes, data.response.content)
49
+ await data.response.load_body()
50
+ content = cast(bytes, data.response.body())
51
51
  if encryption.get('key') is not None or encryption.get('resolver') is not None:
52
52
  try:
53
53
  return decrypt_blob(
@@ -558,7 +558,7 @@ class StorageStreamDownloader(Generic[T]): # pylint: disable=too-many-instance-
558
558
  output_stream: Union[BytesIO, StringIO]
559
559
  if self._text_mode:
560
560
  output_stream = StringIO()
561
- size = chars if chars else sys.maxsize
561
+ size = sys.maxsize if chars is None or chars <= 0 else chars
562
562
  else:
563
563
  output_stream = BytesIO()
564
564
  size = size if size > 0 else sys.maxsize