azure-storage-blob 12.26.0b1__py3-none-any.whl → 12.27.0b1__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 (64) hide show
  1. azure/storage/blob/__init__.py +3 -2
  2. azure/storage/blob/_blob_client.py +43 -38
  3. azure/storage/blob/_blob_client_helpers.py +4 -3
  4. azure/storage/blob/_blob_service_client.py +16 -13
  5. azure/storage/blob/_container_client.py +25 -22
  6. azure/storage/blob/_deserialize.py +1 -1
  7. azure/storage/blob/_download.py +7 -7
  8. azure/storage/blob/_encryption.py +177 -184
  9. azure/storage/blob/_generated/_azure_blob_storage.py +3 -2
  10. azure/storage/blob/_generated/_configuration.py +2 -2
  11. azure/storage/blob/_generated/_utils/__init__.py +6 -0
  12. azure/storage/blob/_generated/{_serialization.py → _utils/serialization.py} +4 -22
  13. azure/storage/blob/_generated/aio/_azure_blob_storage.py +3 -2
  14. azure/storage/blob/_generated/aio/_configuration.py +2 -2
  15. azure/storage/blob/_generated/aio/operations/_append_blob_operations.py +6 -10
  16. azure/storage/blob/_generated/aio/operations/_blob_operations.py +35 -39
  17. azure/storage/blob/_generated/aio/operations/_block_blob_operations.py +9 -13
  18. azure/storage/blob/_generated/aio/operations/_container_operations.py +20 -24
  19. azure/storage/blob/_generated/aio/operations/_page_blob_operations.py +13 -17
  20. azure/storage/blob/_generated/aio/operations/_service_operations.py +10 -14
  21. azure/storage/blob/_generated/models/_models_py3.py +30 -9
  22. azure/storage/blob/_generated/operations/_append_blob_operations.py +11 -15
  23. azure/storage/blob/_generated/operations/_blob_operations.py +60 -64
  24. azure/storage/blob/_generated/operations/_block_blob_operations.py +16 -20
  25. azure/storage/blob/_generated/operations/_container_operations.py +39 -43
  26. azure/storage/blob/_generated/operations/_page_blob_operations.py +23 -27
  27. azure/storage/blob/_generated/operations/_service_operations.py +19 -23
  28. azure/storage/blob/_lease.py +1 -0
  29. azure/storage/blob/_list_blobs_helper.py +1 -1
  30. azure/storage/blob/_quick_query_helper.py +3 -3
  31. azure/storage/blob/_serialize.py +1 -0
  32. azure/storage/blob/_shared/__init__.py +7 -7
  33. azure/storage/blob/_shared/authentication.py +49 -32
  34. azure/storage/blob/_shared/avro/avro_io.py +44 -42
  35. azure/storage/blob/_shared/avro/avro_io_async.py +42 -41
  36. azure/storage/blob/_shared/avro/datafile.py +24 -21
  37. azure/storage/blob/_shared/avro/datafile_async.py +15 -15
  38. azure/storage/blob/_shared/avro/schema.py +196 -217
  39. azure/storage/blob/_shared/base_client.py +81 -59
  40. azure/storage/blob/_shared/base_client_async.py +58 -51
  41. azure/storage/blob/_shared/constants.py +1 -1
  42. azure/storage/blob/_shared/models.py +94 -92
  43. azure/storage/blob/_shared/parser.py +3 -3
  44. azure/storage/blob/_shared/policies.py +186 -147
  45. azure/storage/blob/_shared/policies_async.py +53 -65
  46. azure/storage/blob/_shared/request_handlers.py +50 -45
  47. azure/storage/blob/_shared/response_handlers.py +54 -45
  48. azure/storage/blob/_shared/shared_access_signature.py +65 -73
  49. azure/storage/blob/_shared/uploads.py +56 -49
  50. azure/storage/blob/_shared/uploads_async.py +70 -58
  51. azure/storage/blob/_version.py +1 -1
  52. azure/storage/blob/aio/__init__.py +3 -2
  53. azure/storage/blob/aio/_blob_client_async.py +53 -40
  54. azure/storage/blob/aio/_blob_service_client_async.py +13 -11
  55. azure/storage/blob/aio/_container_client_async.py +28 -25
  56. azure/storage/blob/aio/_download_async.py +7 -7
  57. azure/storage/blob/aio/_lease_async.py +1 -0
  58. azure/storage/blob/aio/_quick_query_helper_async.py +3 -3
  59. {azure_storage_blob-12.26.0b1.dist-info → azure_storage_blob-12.27.0b1.dist-info}/METADATA +3 -4
  60. azure_storage_blob-12.27.0b1.dist-info/RECORD +86 -0
  61. azure_storage_blob-12.26.0b1.dist-info/RECORD +0 -85
  62. {azure_storage_blob-12.26.0b1.dist-info → azure_storage_blob-12.27.0b1.dist-info}/LICENSE +0 -0
  63. {azure_storage_blob-12.26.0b1.dist-info → azure_storage_blob-12.27.0b1.dist-info}/WHEEL +0 -0
  64. {azure_storage_blob-12.26.0b1.dist-info → azure_storage_blob-12.27.0b1.dist-info}/top_level.txt +0 -0
@@ -6,7 +6,7 @@
6
6
  # Code generated by Microsoft (R) AutoRest Code Generator.
7
7
  # Changes may cause incorrect behavior and will be lost if the code is regenerated.
8
8
  # --------------------------------------------------------------------------
9
- import sys
9
+ from collections.abc import MutableMapping
10
10
  from typing import Any, AsyncIterator, Callable, Dict, IO, List, Literal, Optional, TypeVar, Union
11
11
 
12
12
  from azure.core import AsyncPipelineClient
@@ -26,7 +26,7 @@ from azure.core.tracing.decorator_async import distributed_trace_async
26
26
  from azure.core.utils import case_insensitive_dict
27
27
 
28
28
  from ... import models as _models
29
- from ..._serialization import Deserializer, Serializer
29
+ from ..._utils.serialization import Deserializer, Serializer
30
30
  from ...operations._container_operations import (
31
31
  build_acquire_lease_request,
32
32
  build_break_lease_request,
@@ -49,10 +49,6 @@ from ...operations._container_operations import (
49
49
  )
50
50
  from .._configuration import AzureBlobStorageConfiguration
51
51
 
52
- if sys.version_info >= (3, 9):
53
- from collections.abc import MutableMapping
54
- else:
55
- from typing import MutableMapping # type: ignore
56
52
  T = TypeVar("T")
57
53
  ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]]
58
54
 
@@ -91,7 +87,7 @@ class ContainerOperations:
91
87
 
92
88
  :param timeout: The timeout parameter is expressed in seconds. For more information, see
93
89
  :code:`<a
94
- href="https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations">Setting
90
+ href="https://learn.microsoft.com/rest/api/storageservices/setting-timeouts-for-blob-service-operations">Setting
95
91
  Timeouts for Blob Service Operations.</a>`. Default value is None.
96
92
  :type timeout: int
97
93
  :param metadata: Optional. Specifies a user-defined name-value pair associated with the blob.
@@ -188,7 +184,7 @@ class ContainerOperations:
188
184
 
189
185
  :param timeout: The timeout parameter is expressed in seconds. For more information, see
190
186
  :code:`<a
191
- href="https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations">Setting
187
+ href="https://learn.microsoft.com/rest/api/storageservices/setting-timeouts-for-blob-service-operations">Setting
192
188
  Timeouts for Blob Service Operations.</a>`. Default value is None.
193
189
  :type timeout: int
194
190
  :param request_id_parameter: Provides a client-generated, opaque value with a 1 KB character
@@ -290,7 +286,7 @@ class ContainerOperations:
290
286
 
291
287
  :param timeout: The timeout parameter is expressed in seconds. For more information, see
292
288
  :code:`<a
293
- href="https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations">Setting
289
+ href="https://learn.microsoft.com/rest/api/storageservices/setting-timeouts-for-blob-service-operations">Setting
294
290
  Timeouts for Blob Service Operations.</a>`. Default value is None.
295
291
  :type timeout: int
296
292
  :param request_id_parameter: Provides a client-generated, opaque value with a 1 KB character
@@ -379,7 +375,7 @@ class ContainerOperations:
379
375
 
380
376
  :param timeout: The timeout parameter is expressed in seconds. For more information, see
381
377
  :code:`<a
382
- href="https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations">Setting
378
+ href="https://learn.microsoft.com/rest/api/storageservices/setting-timeouts-for-blob-service-operations">Setting
383
379
  Timeouts for Blob Service Operations.</a>`. Default value is None.
384
380
  :type timeout: int
385
381
  :param metadata: Optional. Specifies a user-defined name-value pair associated with the blob.
@@ -477,7 +473,7 @@ class ContainerOperations:
477
473
 
478
474
  :param timeout: The timeout parameter is expressed in seconds. For more information, see
479
475
  :code:`<a
480
- href="https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations">Setting
476
+ href="https://learn.microsoft.com/rest/api/storageservices/setting-timeouts-for-blob-service-operations">Setting
481
477
  Timeouts for Blob Service Operations.</a>`. Default value is None.
482
478
  :type timeout: int
483
479
  :param request_id_parameter: Provides a client-generated, opaque value with a 1 KB character
@@ -570,7 +566,7 @@ class ContainerOperations:
570
566
 
571
567
  :param timeout: The timeout parameter is expressed in seconds. For more information, see
572
568
  :code:`<a
573
- href="https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations">Setting
569
+ href="https://learn.microsoft.com/rest/api/storageservices/setting-timeouts-for-blob-service-operations">Setting
574
570
  Timeouts for Blob Service Operations.</a>`. Default value is None.
575
571
  :type timeout: int
576
572
  :param access: Specifies whether data in the container may be accessed publicly and the level
@@ -678,7 +674,7 @@ class ContainerOperations:
678
674
 
679
675
  :param timeout: The timeout parameter is expressed in seconds. For more information, see
680
676
  :code:`<a
681
- href="https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations">Setting
677
+ href="https://learn.microsoft.com/rest/api/storageservices/setting-timeouts-for-blob-service-operations">Setting
682
678
  Timeouts for Blob Service Operations.</a>`. Default value is None.
683
679
  :type timeout: int
684
680
  :param request_id_parameter: Provides a client-generated, opaque value with a 1 KB character
@@ -763,7 +759,7 @@ class ContainerOperations:
763
759
  :type source_container_name: str
764
760
  :param timeout: The timeout parameter is expressed in seconds. For more information, see
765
761
  :code:`<a
766
- href="https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations">Setting
762
+ href="https://learn.microsoft.com/rest/api/storageservices/setting-timeouts-for-blob-service-operations">Setting
767
763
  Timeouts for Blob Service Operations.</a>`. Default value is None.
768
764
  :type timeout: int
769
765
  :param request_id_parameter: Provides a client-generated, opaque value with a 1 KB character
@@ -846,7 +842,7 @@ class ContainerOperations:
846
842
  :type body: IO[bytes]
847
843
  :param timeout: The timeout parameter is expressed in seconds. For more information, see
848
844
  :code:`<a
849
- href="https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations">Setting
845
+ href="https://learn.microsoft.com/rest/api/storageservices/setting-timeouts-for-blob-service-operations">Setting
850
846
  Timeouts for Blob Service Operations.</a>`. Default value is None.
851
847
  :type timeout: int
852
848
  :param request_id_parameter: Provides a client-generated, opaque value with a 1 KB character
@@ -937,7 +933,7 @@ class ContainerOperations:
937
933
 
938
934
  :param timeout: The timeout parameter is expressed in seconds. For more information, see
939
935
  :code:`<a
940
- href="https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations">Setting
936
+ href="https://learn.microsoft.com/rest/api/storageservices/setting-timeouts-for-blob-service-operations">Setting
941
937
  Timeouts for Blob Service Operations.</a>`. Default value is None.
942
938
  :type timeout: int
943
939
  :param request_id_parameter: Provides a client-generated, opaque value with a 1 KB character
@@ -1041,7 +1037,7 @@ class ContainerOperations:
1041
1037
 
1042
1038
  :param timeout: The timeout parameter is expressed in seconds. For more information, see
1043
1039
  :code:`<a
1044
- href="https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations">Setting
1040
+ href="https://learn.microsoft.com/rest/api/storageservices/setting-timeouts-for-blob-service-operations">Setting
1045
1041
  Timeouts for Blob Service Operations.</a>`. Default value is None.
1046
1042
  :type timeout: int
1047
1043
  :param duration: Specifies the duration of the lease, in seconds, or negative one (-1) for a
@@ -1143,7 +1139,7 @@ class ContainerOperations:
1143
1139
  :type lease_id: str
1144
1140
  :param timeout: The timeout parameter is expressed in seconds. For more information, see
1145
1141
  :code:`<a
1146
- href="https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations">Setting
1142
+ href="https://learn.microsoft.com/rest/api/storageservices/setting-timeouts-for-blob-service-operations">Setting
1147
1143
  Timeouts for Blob Service Operations.</a>`. Default value is None.
1148
1144
  :type timeout: int
1149
1145
  :param request_id_parameter: Provides a client-generated, opaque value with a 1 KB character
@@ -1235,7 +1231,7 @@ class ContainerOperations:
1235
1231
  :type lease_id: str
1236
1232
  :param timeout: The timeout parameter is expressed in seconds. For more information, see
1237
1233
  :code:`<a
1238
- href="https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations">Setting
1234
+ href="https://learn.microsoft.com/rest/api/storageservices/setting-timeouts-for-blob-service-operations">Setting
1239
1235
  Timeouts for Blob Service Operations.</a>`. Default value is None.
1240
1236
  :type timeout: int
1241
1237
  :param request_id_parameter: Provides a client-generated, opaque value with a 1 KB character
@@ -1326,7 +1322,7 @@ class ContainerOperations:
1326
1322
 
1327
1323
  :param timeout: The timeout parameter is expressed in seconds. For more information, see
1328
1324
  :code:`<a
1329
- href="https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations">Setting
1325
+ href="https://learn.microsoft.com/rest/api/storageservices/setting-timeouts-for-blob-service-operations">Setting
1330
1326
  Timeouts for Blob Service Operations.</a>`. Default value is None.
1331
1327
  :type timeout: int
1332
1328
  :param break_period: For a break operation, proposed duration the lease should continue before
@@ -1432,7 +1428,7 @@ class ContainerOperations:
1432
1428
  :type proposed_lease_id: str
1433
1429
  :param timeout: The timeout parameter is expressed in seconds. For more information, see
1434
1430
  :code:`<a
1435
- href="https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations">Setting
1431
+ href="https://learn.microsoft.com/rest/api/storageservices/setting-timeouts-for-blob-service-operations">Setting
1436
1432
  Timeouts for Blob Service Operations.</a>`. Default value is None.
1437
1433
  :type timeout: int
1438
1434
  :param request_id_parameter: Provides a client-generated, opaque value with a 1 KB character
@@ -1545,7 +1541,7 @@ class ContainerOperations:
1545
1541
  :type include: list[str or ~azure.storage.blob.models.ListBlobsIncludeItem]
1546
1542
  :param timeout: The timeout parameter is expressed in seconds. For more information, see
1547
1543
  :code:`<a
1548
- href="https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations">Setting
1544
+ href="https://learn.microsoft.com/rest/api/storageservices/setting-timeouts-for-blob-service-operations">Setting
1549
1545
  Timeouts for Blob Service Operations.</a>`. Default value is None.
1550
1546
  :type timeout: int
1551
1547
  :param request_id_parameter: Provides a client-generated, opaque value with a 1 KB character
@@ -1656,7 +1652,7 @@ class ContainerOperations:
1656
1652
  :type include: list[str or ~azure.storage.blob.models.ListBlobsIncludeItem]
1657
1653
  :param timeout: The timeout parameter is expressed in seconds. For more information, see
1658
1654
  :code:`<a
1659
- href="https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations">Setting
1655
+ href="https://learn.microsoft.com/rest/api/storageservices/setting-timeouts-for-blob-service-operations">Setting
1660
1656
  Timeouts for Blob Service Operations.</a>`. Default value is None.
1661
1657
  :type timeout: int
1662
1658
  :param request_id_parameter: Provides a client-generated, opaque value with a 1 KB character
@@ -1735,7 +1731,7 @@ class ContainerOperations:
1735
1731
 
1736
1732
  :param timeout: The timeout parameter is expressed in seconds. For more information, see
1737
1733
  :code:`<a
1738
- href="https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations">Setting
1734
+ href="https://learn.microsoft.com/rest/api/storageservices/setting-timeouts-for-blob-service-operations">Setting
1739
1735
  Timeouts for Blob Service Operations.</a>`. Default value is None.
1740
1736
  :type timeout: int
1741
1737
  :param request_id_parameter: Provides a client-generated, opaque value with a 1 KB character
@@ -6,8 +6,8 @@
6
6
  # Code generated by Microsoft (R) AutoRest Code Generator.
7
7
  # Changes may cause incorrect behavior and will be lost if the code is regenerated.
8
8
  # --------------------------------------------------------------------------
9
+ from collections.abc import MutableMapping
9
10
  import datetime
10
- import sys
11
11
  from typing import Any, Callable, Dict, IO, Literal, Optional, TypeVar, Union
12
12
 
13
13
  from azure.core import AsyncPipelineClient
@@ -25,7 +25,7 @@ from azure.core.tracing.decorator_async import distributed_trace_async
25
25
  from azure.core.utils import case_insensitive_dict
26
26
 
27
27
  from ... import models as _models
28
- from ..._serialization import Deserializer, Serializer
28
+ from ..._utils.serialization import Deserializer, Serializer
29
29
  from ...operations._page_blob_operations import (
30
30
  build_clear_pages_request,
31
31
  build_copy_incremental_request,
@@ -39,10 +39,6 @@ from ...operations._page_blob_operations import (
39
39
  )
40
40
  from .._configuration import AzureBlobStorageConfiguration
41
41
 
42
- if sys.version_info >= (3, 9):
43
- from collections.abc import MutableMapping
44
- else:
45
- from typing import MutableMapping # type: ignore
46
42
  T = TypeVar("T")
47
43
  ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]]
48
44
 
@@ -96,7 +92,7 @@ class PageBlobOperations:
96
92
  :type blob_content_length: int
97
93
  :param timeout: The timeout parameter is expressed in seconds. For more information, see
98
94
  :code:`<a
99
- href="https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations">Setting
95
+ href="https://learn.microsoft.com/rest/api/storageservices/setting-timeouts-for-blob-service-operations">Setting
100
96
  Timeouts for Blob Service Operations.</a>`. Default value is None.
101
97
  :type timeout: int
102
98
  :param tier: Optional. Indicates the tier to be set on the page blob. Known values are: "P4",
@@ -300,7 +296,7 @@ class PageBlobOperations:
300
296
  :type transactional_content_crc64: bytes
301
297
  :param timeout: The timeout parameter is expressed in seconds. For more information, see
302
298
  :code:`<a
303
- href="https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations">Setting
299
+ href="https://learn.microsoft.com/rest/api/storageservices/setting-timeouts-for-blob-service-operations">Setting
304
300
  Timeouts for Blob Service Operations.</a>`. Default value is None.
305
301
  :type timeout: int
306
302
  :param range: Return only the bytes of the blob in the specified range. Default value is None.
@@ -479,7 +475,7 @@ class PageBlobOperations:
479
475
  :type content_length: int
480
476
  :param timeout: The timeout parameter is expressed in seconds. For more information, see
481
477
  :code:`<a
482
- href="https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations">Setting
478
+ href="https://learn.microsoft.com/rest/api/storageservices/setting-timeouts-for-blob-service-operations">Setting
483
479
  Timeouts for Blob Service Operations.</a>`. Default value is None.
484
480
  :type timeout: int
485
481
  :param range: Return only the bytes of the blob in the specified range. Default value is None.
@@ -653,7 +649,7 @@ class PageBlobOperations:
653
649
  :type source_contentcrc64: bytes
654
650
  :param timeout: The timeout parameter is expressed in seconds. For more information, see
655
651
  :code:`<a
656
- href="https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations">Setting
652
+ href="https://learn.microsoft.com/rest/api/storageservices/setting-timeouts-for-blob-service-operations">Setting
657
653
  Timeouts for Blob Service Operations.</a>`. Default value is None.
658
654
  :type timeout: int
659
655
  :param request_id_parameter: Provides a client-generated, opaque value with a 1 KB character
@@ -835,12 +831,12 @@ class PageBlobOperations:
835
831
  :param snapshot: The snapshot parameter is an opaque DateTime value that, when present,
836
832
  specifies the blob snapshot to retrieve. For more information on working with blob snapshots,
837
833
  see :code:`<a
838
- href="https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/creating-a-snapshot-of-a-blob">Creating
834
+ href="https://learn.microsoft.com/rest/api/storageservices/creating-a-snapshot-of-a-blob">Creating
839
835
  a Snapshot of a Blob.</a>`. Default value is None.
840
836
  :type snapshot: str
841
837
  :param timeout: The timeout parameter is expressed in seconds. For more information, see
842
838
  :code:`<a
843
- href="https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations">Setting
839
+ href="https://learn.microsoft.com/rest/api/storageservices/setting-timeouts-for-blob-service-operations">Setting
844
840
  Timeouts for Blob Service Operations.</a>`. Default value is None.
845
841
  :type timeout: int
846
842
  :param range: Return only the bytes of the blob in the specified range. Default value is None.
@@ -974,12 +970,12 @@ class PageBlobOperations:
974
970
  :param snapshot: The snapshot parameter is an opaque DateTime value that, when present,
975
971
  specifies the blob snapshot to retrieve. For more information on working with blob snapshots,
976
972
  see :code:`<a
977
- href="https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/creating-a-snapshot-of-a-blob">Creating
973
+ href="https://learn.microsoft.com/rest/api/storageservices/creating-a-snapshot-of-a-blob">Creating
978
974
  a Snapshot of a Blob.</a>`. Default value is None.
979
975
  :type snapshot: str
980
976
  :param timeout: The timeout parameter is expressed in seconds. For more information, see
981
977
  :code:`<a
982
- href="https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations">Setting
978
+ href="https://learn.microsoft.com/rest/api/storageservices/setting-timeouts-for-blob-service-operations">Setting
983
979
  Timeouts for Blob Service Operations.</a>`. Default value is None.
984
980
  :type timeout: int
985
981
  :param prevsnapshot: Optional in version 2015-07-08 and newer. The prevsnapshot parameter is a
@@ -1125,7 +1121,7 @@ class PageBlobOperations:
1125
1121
  :type blob_content_length: int
1126
1122
  :param timeout: The timeout parameter is expressed in seconds. For more information, see
1127
1123
  :code:`<a
1128
- 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/setting-timeouts-for-blob-service-operations">Setting
1129
1125
  Timeouts for Blob Service Operations.</a>`. Default value is None.
1130
1126
  :type timeout: int
1131
1127
  :param request_id_parameter: Provides a client-generated, opaque value with a 1 KB character
@@ -1253,7 +1249,7 @@ class PageBlobOperations:
1253
1249
  :type sequence_number_action: str or ~azure.storage.blob.models.SequenceNumberActionType
1254
1250
  :param timeout: The timeout parameter is expressed in seconds. For more information, see
1255
1251
  :code:`<a
1256
- href="https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations">Setting
1252
+ href="https://learn.microsoft.com/rest/api/storageservices/setting-timeouts-for-blob-service-operations">Setting
1257
1253
  Timeouts for Blob Service Operations.</a>`. Default value is None.
1258
1254
  :type timeout: int
1259
1255
  :param blob_sequence_number: Set for page blobs only. The sequence number is a user-controlled
@@ -1370,7 +1366,7 @@ class PageBlobOperations:
1370
1366
  :type copy_source: str
1371
1367
  :param timeout: The timeout parameter is expressed in seconds. For more information, see
1372
1368
  :code:`<a
1373
- href="https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations">Setting
1369
+ href="https://learn.microsoft.com/rest/api/storageservices/setting-timeouts-for-blob-service-operations">Setting
1374
1370
  Timeouts for Blob Service Operations.</a>`. Default value is None.
1375
1371
  :type timeout: int
1376
1372
  :param request_id_parameter: Provides a client-generated, opaque value with a 1 KB character
@@ -6,7 +6,7 @@
6
6
  # Code generated by Microsoft (R) AutoRest Code Generator.
7
7
  # Changes may cause incorrect behavior and will be lost if the code is regenerated.
8
8
  # --------------------------------------------------------------------------
9
- import sys
9
+ from collections.abc import MutableMapping
10
10
  from typing import Any, AsyncIterator, Callable, Dict, IO, List, Literal, Optional, TypeVar, Union
11
11
 
12
12
  from azure.core import AsyncPipelineClient
@@ -26,7 +26,7 @@ from azure.core.tracing.decorator_async import distributed_trace_async
26
26
  from azure.core.utils import case_insensitive_dict
27
27
 
28
28
  from ... import models as _models
29
- from ..._serialization import Deserializer, Serializer
29
+ from ..._utils.serialization import Deserializer, Serializer
30
30
  from ...operations._service_operations import (
31
31
  build_filter_blobs_request,
32
32
  build_get_account_info_request,
@@ -39,10 +39,6 @@ from ...operations._service_operations import (
39
39
  )
40
40
  from .._configuration import AzureBlobStorageConfiguration
41
41
 
42
- if sys.version_info >= (3, 9):
43
- from collections.abc import MutableMapping
44
- else:
45
- from typing import MutableMapping # type: ignore
46
42
  T = TypeVar("T")
47
43
  ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]]
48
44
 
@@ -81,7 +77,7 @@ class ServiceOperations:
81
77
  :type storage_service_properties: ~azure.storage.blob.models.StorageServiceProperties
82
78
  :param timeout: The timeout parameter is expressed in seconds. For more information, see
83
79
  :code:`<a
84
- href="https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations">Setting
80
+ href="https://learn.microsoft.com/rest/api/storageservices/setting-timeouts-for-blob-service-operations">Setting
85
81
  Timeouts for Blob Service Operations.</a>`. Default value is None.
86
82
  :type timeout: int
87
83
  :param request_id_parameter: Provides a client-generated, opaque value with a 1 KB character
@@ -155,7 +151,7 @@ class ServiceOperations:
155
151
 
156
152
  :param timeout: The timeout parameter is expressed in seconds. For more information, see
157
153
  :code:`<a
158
- href="https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations">Setting
154
+ href="https://learn.microsoft.com/rest/api/storageservices/setting-timeouts-for-blob-service-operations">Setting
159
155
  Timeouts for Blob Service Operations.</a>`. Default value is None.
160
156
  :type timeout: int
161
157
  :param request_id_parameter: Provides a client-generated, opaque value with a 1 KB character
@@ -229,7 +225,7 @@ class ServiceOperations:
229
225
 
230
226
  :param timeout: The timeout parameter is expressed in seconds. For more information, see
231
227
  :code:`<a
232
- href="https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations">Setting
228
+ href="https://learn.microsoft.com/rest/api/storageservices/setting-timeouts-for-blob-service-operations">Setting
233
229
  Timeouts for Blob Service Operations.</a>`. Default value is None.
234
230
  :type timeout: int
235
231
  :param request_id_parameter: Provides a client-generated, opaque value with a 1 KB character
@@ -330,7 +326,7 @@ class ServiceOperations:
330
326
  :type include: list[str or ~azure.storage.blob.models.ListContainersIncludeType]
331
327
  :param timeout: The timeout parameter is expressed in seconds. For more information, see
332
328
  :code:`<a
333
- href="https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations">Setting
329
+ href="https://learn.microsoft.com/rest/api/storageservices/setting-timeouts-for-blob-service-operations">Setting
334
330
  Timeouts for Blob Service Operations.</a>`. Default value is None.
335
331
  :type timeout: int
336
332
  :param request_id_parameter: Provides a client-generated, opaque value with a 1 KB character
@@ -411,7 +407,7 @@ class ServiceOperations:
411
407
  :type key_info: ~azure.storage.blob.models.KeyInfo
412
408
  :param timeout: The timeout parameter is expressed in seconds. For more information, see
413
409
  :code:`<a
414
- href="https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations">Setting
410
+ href="https://learn.microsoft.com/rest/api/storageservices/setting-timeouts-for-blob-service-operations">Setting
415
411
  Timeouts for Blob Service Operations.</a>`. Default value is None.
416
412
  :type timeout: int
417
413
  :param request_id_parameter: Provides a client-generated, opaque value with a 1 KB character
@@ -489,7 +485,7 @@ class ServiceOperations:
489
485
 
490
486
  :param timeout: The timeout parameter is expressed in seconds. For more information, see
491
487
  :code:`<a
492
- href="https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations">Setting
488
+ href="https://learn.microsoft.com/rest/api/storageservices/setting-timeouts-for-blob-service-operations">Setting
493
489
  Timeouts for Blob Service Operations.</a>`. Default value is None.
494
490
  :type timeout: int
495
491
  :param request_id_parameter: Provides a client-generated, opaque value with a 1 KB character
@@ -570,7 +566,7 @@ class ServiceOperations:
570
566
  :type body: IO[bytes]
571
567
  :param timeout: The timeout parameter is expressed in seconds. For more information, see
572
568
  :code:`<a
573
- href="https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations">Setting
569
+ href="https://learn.microsoft.com/rest/api/storageservices/setting-timeouts-for-blob-service-operations">Setting
574
570
  Timeouts for Blob Service Operations.</a>`. Default value is None.
575
571
  :type timeout: int
576
572
  :param request_id_parameter: Provides a client-generated, opaque value with a 1 KB character
@@ -660,7 +656,7 @@ class ServiceOperations:
660
656
 
661
657
  :param timeout: The timeout parameter is expressed in seconds. For more information, see
662
658
  :code:`<a
663
- href="https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations">Setting
659
+ href="https://learn.microsoft.com/rest/api/storageservices/setting-timeouts-for-blob-service-operations">Setting
664
660
  Timeouts for Blob Service Operations.</a>`. Default value is None.
665
661
  :type timeout: int
666
662
  :param request_id_parameter: Provides a client-generated, opaque value with a 1 KB character
@@ -7,20 +7,15 @@
7
7
  # Changes may cause incorrect behavior and will be lost if the code is regenerated.
8
8
  # --------------------------------------------------------------------------
9
9
 
10
+ from collections.abc import MutableMapping
10
11
  import datetime
11
- import sys
12
12
  from typing import Any, Dict, List, Optional, TYPE_CHECKING, Union
13
13
 
14
- from .. import _serialization
15
-
16
- if sys.version_info >= (3, 9):
17
- from collections.abc import MutableMapping
18
- else:
19
- from typing import MutableMapping # type: ignore
14
+ from .._utils import serialization as _serialization
20
15
 
21
16
  if TYPE_CHECKING:
22
17
  from .. import models as _models
23
- JSON = MutableMapping[str, Any] # pylint: disable=unsubscriptable-object
18
+ JSON = MutableMapping[str, Any]
24
19
 
25
20
 
26
21
  class AccessPolicy(_serialization.Model):
@@ -2579,19 +2574,45 @@ class StorageError(_serialization.Model):
2579
2574
 
2580
2575
  :ivar message:
2581
2576
  :vartype message: str
2577
+ :ivar copy_source_status_code:
2578
+ :vartype copy_source_status_code: int
2579
+ :ivar copy_source_error_code:
2580
+ :vartype copy_source_error_code: str
2581
+ :ivar copy_source_error_message:
2582
+ :vartype copy_source_error_message: str
2582
2583
  """
2583
2584
 
2584
2585
  _attribute_map = {
2585
2586
  "message": {"key": "Message", "type": "str"},
2587
+ "copy_source_status_code": {"key": "CopySourceStatusCode", "type": "int"},
2588
+ "copy_source_error_code": {"key": "CopySourceErrorCode", "type": "str"},
2589
+ "copy_source_error_message": {"key": "CopySourceErrorMessage", "type": "str"},
2586
2590
  }
2587
2591
 
2588
- def __init__(self, *, message: Optional[str] = None, **kwargs: Any) -> None:
2592
+ def __init__(
2593
+ self,
2594
+ *,
2595
+ message: Optional[str] = None,
2596
+ copy_source_status_code: Optional[int] = None,
2597
+ copy_source_error_code: Optional[str] = None,
2598
+ copy_source_error_message: Optional[str] = None,
2599
+ **kwargs: Any
2600
+ ) -> None:
2589
2601
  """
2590
2602
  :keyword message:
2591
2603
  :paramtype message: str
2604
+ :keyword copy_source_status_code:
2605
+ :paramtype copy_source_status_code: int
2606
+ :keyword copy_source_error_code:
2607
+ :paramtype copy_source_error_code: str
2608
+ :keyword copy_source_error_message:
2609
+ :paramtype copy_source_error_message: str
2592
2610
  """
2593
2611
  super().__init__(**kwargs)
2594
2612
  self.message = message
2613
+ self.copy_source_status_code = copy_source_status_code
2614
+ self.copy_source_error_code = copy_source_error_code
2615
+ self.copy_source_error_message = copy_source_error_message
2595
2616
 
2596
2617
 
2597
2618
  class StorageServiceProperties(_serialization.Model):
@@ -6,8 +6,8 @@
6
6
  # Code generated by Microsoft (R) AutoRest Code Generator.
7
7
  # Changes may cause incorrect behavior and will be lost if the code is regenerated.
8
8
  # --------------------------------------------------------------------------
9
+ from collections.abc import MutableMapping
9
10
  import datetime
10
- import sys
11
11
  from typing import Any, Callable, Dict, IO, Literal, Optional, TypeVar, Union
12
12
 
13
13
  from azure.core import PipelineClient
@@ -26,12 +26,8 @@ from azure.core.utils import case_insensitive_dict
26
26
 
27
27
  from .. import models as _models
28
28
  from .._configuration import AzureBlobStorageConfiguration
29
- from .._serialization import Deserializer, Serializer
29
+ from .._utils.serialization import Deserializer, Serializer
30
30
 
31
- if sys.version_info >= (3, 9):
32
- from collections.abc import MutableMapping
33
- else:
34
- from typing import MutableMapping # type: ignore
35
31
  T = TypeVar("T")
36
32
  ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]]
37
33
 
@@ -72,7 +68,7 @@ def build_create_request(
72
68
  _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
73
69
 
74
70
  blob_type: Literal["AppendBlob"] = kwargs.pop("blob_type", _headers.pop("x-ms-blob-type", "AppendBlob"))
75
- version: Literal["2025-07-05"] = kwargs.pop("version", _headers.pop("x-ms-version", "2025-07-05"))
71
+ version: Literal["2025-11-05"] = kwargs.pop("version", _headers.pop("x-ms-version", "2025-11-05"))
76
72
  accept = _headers.pop("Accept", "application/xml")
77
73
 
78
74
  # Construct URL
@@ -182,7 +178,7 @@ def build_append_block_request(
182
178
 
183
179
  comp: Literal["appendblock"] = kwargs.pop("comp", _params.pop("comp", "appendblock"))
184
180
  content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
185
- version: Literal["2025-07-05"] = kwargs.pop("version", _headers.pop("x-ms-version", "2025-07-05"))
181
+ version: Literal["2025-11-05"] = kwargs.pop("version", _headers.pop("x-ms-version", "2025-11-05"))
186
182
  accept = _headers.pop("Accept", "application/xml")
187
183
 
188
184
  # Construct URL
@@ -285,7 +281,7 @@ def build_append_block_from_url_request(
285
281
  _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
286
282
 
287
283
  comp: Literal["appendblock"] = kwargs.pop("comp", _params.pop("comp", "appendblock"))
288
- version: Literal["2025-07-05"] = kwargs.pop("version", _headers.pop("x-ms-version", "2025-07-05"))
284
+ version: Literal["2025-11-05"] = kwargs.pop("version", _headers.pop("x-ms-version", "2025-11-05"))
289
285
  accept = _headers.pop("Accept", "application/xml")
290
286
 
291
287
  # Construct URL
@@ -385,7 +381,7 @@ def build_seal_request(
385
381
  _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
386
382
 
387
383
  comp: Literal["seal"] = kwargs.pop("comp", _params.pop("comp", "seal"))
388
- version: Literal["2025-07-05"] = kwargs.pop("version", _headers.pop("x-ms-version", "2025-07-05"))
384
+ version: Literal["2025-11-05"] = kwargs.pop("version", _headers.pop("x-ms-version", "2025-11-05"))
389
385
  accept = _headers.pop("Accept", "application/xml")
390
386
 
391
387
  # Construct URL
@@ -434,7 +430,7 @@ class AppendBlobOperations:
434
430
 
435
431
  models = _models
436
432
 
437
- def __init__(self, *args, **kwargs):
433
+ def __init__(self, *args, **kwargs) -> None:
438
434
  input_args = list(args)
439
435
  self._client: PipelineClient = input_args.pop(0) if input_args else kwargs.pop("client")
440
436
  self._config: AzureBlobStorageConfiguration = input_args.pop(0) if input_args else kwargs.pop("config")
@@ -465,7 +461,7 @@ class AppendBlobOperations:
465
461
  :type content_length: int
466
462
  :param timeout: The timeout parameter is expressed in seconds. For more information, see
467
463
  :code:`<a
468
- href="https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations">Setting
464
+ href="https://learn.microsoft.com/rest/api/storageservices/setting-timeouts-for-blob-service-operations">Setting
469
465
  Timeouts for Blob Service Operations.</a>`. Default value is None.
470
466
  :type timeout: int
471
467
  :param metadata: Optional. Specifies a user-defined name-value pair associated with the blob.
@@ -654,7 +650,7 @@ class AppendBlobOperations:
654
650
  :type body: IO[bytes]
655
651
  :param timeout: The timeout parameter is expressed in seconds. For more information, see
656
652
  :code:`<a
657
- href="https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations">Setting
653
+ href="https://learn.microsoft.com/rest/api/storageservices/setting-timeouts-for-blob-service-operations">Setting
658
654
  Timeouts for Blob Service Operations.</a>`. Default value is None.
659
655
  :type timeout: int
660
656
  :param transactional_content_md5: Specify the transactional md5 for the body, to be validated
@@ -852,7 +848,7 @@ class AppendBlobOperations:
852
848
  :type source_contentcrc64: bytes
853
849
  :param timeout: The timeout parameter is expressed in seconds. For more information, see
854
850
  :code:`<a
855
- href="https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations">Setting
851
+ href="https://learn.microsoft.com/rest/api/storageservices/setting-timeouts-for-blob-service-operations">Setting
856
852
  Timeouts for Blob Service Operations.</a>`. Default value is None.
857
853
  :type timeout: int
858
854
  :param transactional_content_md5: Specify the transactional md5 for the body, to be validated
@@ -1029,7 +1025,7 @@ class AppendBlobOperations:
1029
1025
 
1030
1026
  :param timeout: The timeout parameter is expressed in seconds. For more information, see
1031
1027
  :code:`<a
1032
- href="https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations">Setting
1028
+ href="https://learn.microsoft.com/rest/api/storageservices/setting-timeouts-for-blob-service-operations">Setting
1033
1029
  Timeouts for Blob Service Operations.</a>`. Default value is None.
1034
1030
  :type timeout: int
1035
1031
  :param request_id_parameter: Provides a client-generated, opaque value with a 1 KB character