azure-storage-blob 12.24.0__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 (27) hide show
  1. azure/storage/blob/_download.py +2 -2
  2. azure/storage/blob/_generated/aio/operations/_append_blob_operations.py +4 -4
  3. azure/storage/blob/_generated/aio/operations/_blob_operations.py +33 -33
  4. azure/storage/blob/_generated/aio/operations/_block_blob_operations.py +7 -7
  5. azure/storage/blob/_generated/aio/operations/_container_operations.py +18 -18
  6. azure/storage/blob/_generated/aio/operations/_page_blob_operations.py +11 -11
  7. azure/storage/blob/_generated/aio/operations/_service_operations.py +8 -8
  8. azure/storage/blob/_generated/operations/_append_blob_operations.py +4 -4
  9. azure/storage/blob/_generated/operations/_blob_operations.py +33 -33
  10. azure/storage/blob/_generated/operations/_block_blob_operations.py +7 -7
  11. azure/storage/blob/_generated/operations/_container_operations.py +18 -18
  12. azure/storage/blob/_generated/operations/_page_blob_operations.py +11 -11
  13. azure/storage/blob/_generated/operations/_service_operations.py +8 -8
  14. azure/storage/blob/_models.py +1 -1
  15. azure/storage/blob/_shared/authentication.py +1 -1
  16. azure/storage/blob/_shared/base_client.py +1 -1
  17. azure/storage/blob/_shared/parser.py +2 -10
  18. azure/storage/blob/_shared/policies_async.py +2 -2
  19. azure/storage/blob/_shared/request_handlers.py +1 -1
  20. azure/storage/blob/_shared/shared_access_signature.py +2 -2
  21. azure/storage/blob/_version.py +1 -1
  22. azure/storage/blob/aio/_download_async.py +3 -3
  23. {azure_storage_blob-12.24.0.dist-info → azure_storage_blob-12.24.1.dist-info}/METADATA +21 -21
  24. {azure_storage_blob-12.24.0.dist-info → azure_storage_blob-12.24.1.dist-info}/RECORD +27 -27
  25. {azure_storage_blob-12.24.0.dist-info → azure_storage_blob-12.24.1.dist-info}/LICENSE +0 -0
  26. {azure_storage_blob-12.24.0.dist-info → azure_storage_blob-12.24.1.dist-info}/WHEEL +0 -0
  27. {azure_storage_blob-12.24.0.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
@@ -185,7 +185,7 @@ def serialize_batch_body(requests, batch_id):
185
185
  # final line of body MUST have \r\n at the end, or it will not be properly read by the service
186
186
  batch_body.append(newline_bytes)
187
187
 
188
- return bytes().join(batch_body)
188
+ return b"".join(batch_body)
189
189
 
190
190
 
191
191
  def _get_batch_request_delimiter(batch_id, is_prepend_dashes=False, is_append_dashes=False):
@@ -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.0"
7
+ VERSION = "12.24.1"
@@ -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
@@ -1,13 +1,13 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: azure-storage-blob
3
- Version: 12.24.0
3
+ Version: 12.24.1
4
4
  Summary: Microsoft Azure Blob Storage Client Library for Python
5
5
  Home-page: https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/storage/azure-storage-blob
6
6
  Author: Microsoft Corporation
7
7
  Author-email: ascl@microsoft.com
8
8
  License: MIT License
9
9
  Keywords: azure,azure sdk
10
- Classifier: Development Status :: 5 - Production/Stable
10
+ Classifier: Development Status :: 4 - Beta
11
11
  Classifier: Programming Language :: Python
12
12
  Classifier: Programming Language :: Python :: 3 :: Only
13
13
  Classifier: Programming Language :: Python :: 3
@@ -42,7 +42,7 @@ Blob storage is ideal for:
42
42
  | [Package (PyPI)](https://pypi.org/project/azure-storage-blob/)
43
43
  | [Package (Conda)](https://anaconda.org/microsoft/azure-storage/)
44
44
  | [API reference documentation](https://aka.ms/azsdk-python-storage-blob-ref)
45
- | [Product documentation](https://docs.microsoft.com/azure/storage/)
45
+ | [Product documentation](https://learn.microsoft.com/azure/storage/)
46
46
  | [Samples](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/storage/azure-storage-blob/samples)
47
47
 
48
48
 
@@ -51,7 +51,7 @@ Blob storage is ideal for:
51
51
  ### Prerequisites
52
52
  * Python 3.8 or later is required to use this package. For more details, please read our page on [Azure SDK for Python version support policy](https://github.com/Azure/azure-sdk-for-python/wiki/Azure-SDKs-Python-version-support-policy).
53
53
  * You must have an [Azure subscription](https://azure.microsoft.com/free/) and an
54
- [Azure storage account](https://docs.microsoft.com/azure/storage/common/storage-account-overview) to use this package.
54
+ [Azure storage account](https://learn.microsoft.com/azure/storage/common/storage-account-overview) to use this package.
55
55
 
56
56
  ### Install the package
57
57
  Install the Azure Storage Blobs client library for Python with [pip](https://pypi.org/project/pip/):
@@ -62,9 +62,9 @@ pip install azure-storage-blob
62
62
 
63
63
  ### Create a storage account
64
64
  If you wish to create a new storage account, you can use the
65
- [Azure Portal](https://docs.microsoft.com/azure/storage/common/storage-quickstart-create-account?tabs=azure-portal),
66
- [Azure PowerShell](https://docs.microsoft.com/azure/storage/common/storage-quickstart-create-account?tabs=azure-powershell),
67
- or [Azure CLI](https://docs.microsoft.com/azure/storage/common/storage-quickstart-create-account?tabs=azure-cli):
65
+ [Azure Portal](https://learn.microsoft.com/azure/storage/common/storage-quickstart-create-account?tabs=azure-portal),
66
+ [Azure PowerShell](https://learn.microsoft.com/azure/storage/common/storage-quickstart-create-account?tabs=azure-powershell),
67
+ or [Azure CLI](https://learn.microsoft.com/azure/storage/common/storage-quickstart-create-account?tabs=azure-cli):
68
68
 
69
69
  ```bash
70
70
  # Create a new resource group to hold the storage account -
@@ -89,9 +89,9 @@ service = BlobServiceClient(account_url="https://<my-storage-account-name>.blob.
89
89
 
90
90
  #### Looking up the account URL
91
91
  You can find the storage account's blob service URL using the
92
- [Azure Portal](https://docs.microsoft.com/azure/storage/common/storage-account-overview#storage-account-endpoints),
93
- [Azure PowerShell](https://docs.microsoft.com/powershell/module/az.storage/get-azstorageaccount),
94
- or [Azure CLI](https://docs.microsoft.com/cli/azure/storage/account?view=azure-cli-latest#az-storage-account-show):
92
+ [Azure Portal](https://learn.microsoft.com/azure/storage/common/storage-account-overview#storage-account-endpoints),
93
+ [Azure PowerShell](https://learn.microsoft.com/powershell/module/az.storage/get-azstorageaccount),
94
+ or [Azure CLI](https://learn.microsoft.com/cli/azure/storage/account?view=azure-cli-latest#az-storage-account-show):
95
95
 
96
96
  ```bash
97
97
  # Get the blob service account url for the storage account
@@ -100,8 +100,8 @@ az storage account show -n my-storage-account-name -g my-resource-group --query
100
100
 
101
101
  #### Types of credentials
102
102
  The `credential` parameter may be provided in a number of different forms, depending on the type of
103
- [authorization](https://docs.microsoft.com/azure/storage/common/storage-auth) you wish to use:
104
- 1. To use an [Azure Active Directory (AAD) token credential](https://docs.microsoft.com/azure/storage/common/storage-auth-aad),
103
+ [authorization](https://learn.microsoft.com/azure/storage/common/storage-auth) you wish to use:
104
+ 1. To use an [Azure Active Directory (AAD) token credential](https://learn.microsoft.com/azure/storage/common/storage-auth-aad),
105
105
  provide an instance of the desired credential type obtained from the
106
106
  [azure-identity](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/identity/azure-identity#credentials) library.
107
107
  For example, [DefaultAzureCredential](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/identity/azure-identity#defaultazurecredential)
@@ -109,8 +109,8 @@ The `credential` parameter may be provided in a number of different forms, depen
109
109
 
110
110
  This requires some initial setup:
111
111
  * [Install azure-identity](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/identity/azure-identity#install-the-package)
112
- * [Register a new AAD application](https://docs.microsoft.com/azure/active-directory/develop/quickstart-register-app) and give permissions to access Azure Storage
113
- * [Grant access](https://docs.microsoft.com/azure/storage/common/storage-auth-aad-rbac-portal) to Azure Blob data with RBAC in the Azure Portal
112
+ * [Register a new AAD application](https://learn.microsoft.com/azure/active-directory/develop/quickstart-register-app) and give permissions to access Azure Storage
113
+ * [Grant access](https://learn.microsoft.com/azure/storage/common/storage-auth-aad-rbac-portal) to Azure Blob data with RBAC in the Azure Portal
114
114
  * Set the values of the client ID, tenant ID, and client secret of the AAD application as environment variables:
115
115
  AZURE_TENANT_ID, AZURE_CLIENT_ID, AZURE_CLIENT_SECRET
116
116
 
@@ -126,7 +126,7 @@ The `credential` parameter may be provided in a number of different forms, depen
126
126
  )
127
127
  ```
128
128
 
129
- 2. To use a [shared access signature (SAS) token](https://docs.microsoft.com/azure/storage/common/storage-sas-overview),
129
+ 2. To use a [shared access signature (SAS) token](https://learn.microsoft.com/azure/storage/common/storage-sas-overview),
130
130
  provide the token as a string. If your account URL includes the SAS token, omit the credential parameter.
131
131
  You can generate a SAS token from the Azure Portal under "Shared access signature" or use one of the `generate_sas()`
132
132
  functions to create a sas token for the storage account, container, or blob:
@@ -146,7 +146,7 @@ The `credential` parameter may be provided in a number of different forms, depen
146
146
  blob_service_client = BlobServiceClient(account_url="https://<my_account_name>.blob.core.windows.net", credential=sas_token)
147
147
  ```
148
148
 
149
- 3. To use a storage account [shared key](https://docs.microsoft.com/rest/api/storageservices/authenticate-with-shared-key/)
149
+ 3. To use a storage account [shared key](https://learn.microsoft.com/rest/api/storageservices/authenticate-with-shared-key/)
150
150
  (aka account key or access key), provide the key as a string. This can be found in the Azure Portal under the "Access Keys"
151
151
  section or by running the following Azure CLI command:
152
152
 
@@ -166,7 +166,7 @@ The `credential` parameter may be provided in a number of different forms, depen
166
166
  credential={"account_name": "<your_account_name>", "account_key":"<account_access_key>"})
167
167
  ```
168
168
 
169
- 4. To use [anonymous public read access](https://docs.microsoft.com/azure/storage/blobs/storage-manage-access-to-resources),
169
+ 4. To use [anonymous public read access](https://learn.microsoft.com/azure/storage/blobs/storage-manage-access-to-resources),
170
170
  simply omit the credential parameter.
171
171
 
172
172
  #### Creating the client from a connection string
@@ -227,13 +227,13 @@ objects are async context managers and define async `close` methods.
227
227
 
228
228
  ### Blob Types
229
229
  Once you've initialized a Client, you can choose from the different types of blobs:
230
- * [Block blobs](https://docs.microsoft.com/rest/api/storageservices/understanding-block-blobs--append-blobs--and-page-blobs#about-block-blobs)
230
+ * [Block blobs](https://learn.microsoft.com/rest/api/storageservices/understanding-block-blobs--append-blobs--and-page-blobs#about-block-blobs)
231
231
  store text and binary data, up to approximately 4.75 TiB. Block blobs are made up of blocks of data that can be
232
232
  managed individually
233
- * [Append blobs](https://docs.microsoft.com/rest/api/storageservices/understanding-block-blobs--append-blobs--and-page-blobs#about-append-blobs)
233
+ * [Append blobs](https://learn.microsoft.com/rest/api/storageservices/understanding-block-blobs--append-blobs--and-page-blobs#about-append-blobs)
234
234
  are made up of blocks like block blobs, but are optimized for append operations. Append blobs are ideal for scenarios
235
235
  such as logging data from virtual machines
236
- * [Page blobs](https://docs.microsoft.com/rest/api/storageservices/understanding-block-blobs--append-blobs--and-page-blobs#about-page-blobs)
236
+ * [Page blobs](https://learn.microsoft.com/rest/api/storageservices/understanding-block-blobs--append-blobs--and-page-blobs#about-page-blobs)
237
237
  store random access files up to 8 TiB in size. Page blobs store virtual hard drive (VHD) files and serve as disks for
238
238
  Azure virtual machines
239
239
 
@@ -490,7 +490,7 @@ Several Storage Blobs Python SDK samples are available to you in the SDK's GitHu
490
490
  * Delete a single file or recursively delete a directory
491
491
 
492
492
  ### Additional documentation
493
- For more extensive documentation on Azure Blob storage, see the [Azure Blob storage documentation](https://docs.microsoft.com/azure/storage/blobs/) on docs.microsoft.com.
493
+ For more extensive documentation on Azure Blob storage, see the [Azure Blob storage documentation](https://learn.microsoft.com/azure/storage/blobs/) on learn.microsoft.com.
494
494
 
495
495
  ## Contributing
496
496
  This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit https://cla.microsoft.com.