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
@@ -16,7 +16,7 @@ from azure.core.rest import HttpRequest, HttpResponse
16
16
 
17
17
  from . import models as _models
18
18
  from ._configuration import AzureBlobStorageConfiguration
19
- from ._serialization import Deserializer, Serializer
19
+ from ._utils.serialization import Deserializer, Serializer
20
20
  from .operations import (
21
21
  AppendBlobOperations,
22
22
  BlobOperations,
@@ -48,7 +48,7 @@ class AzureBlobStorage: # pylint: disable=client-accepts-api-version-keyword
48
48
  :param base_url: Service URL. Required. Default value is "".
49
49
  :type base_url: str
50
50
  :keyword version: Specifies the version of the operation to use for this request. Default value
51
- is "2025-07-05". Note that overriding this default value may result in unsupported behavior.
51
+ is "2025-11-05". Note that overriding this default value may result in unsupported behavior.
52
52
  :paramtype version: str
53
53
  """
54
54
 
@@ -56,6 +56,7 @@ class AzureBlobStorage: # pylint: disable=client-accepts-api-version-keyword
56
56
  self, url: str, base_url: str = "", **kwargs: Any
57
57
  ) -> None:
58
58
  self._config = AzureBlobStorageConfiguration(url=url, **kwargs)
59
+
59
60
  _policies = kwargs.pop("policies", None)
60
61
  if _policies is None:
61
62
  _policies = [
@@ -23,12 +23,12 @@ class AzureBlobStorageConfiguration: # pylint: disable=too-many-instance-attrib
23
23
  desired operation. Required.
24
24
  :type url: str
25
25
  :keyword version: Specifies the version of the operation to use for this request. Default value
26
- is "2025-07-05". Note that overriding this default value may result in unsupported behavior.
26
+ is "2025-11-05". Note that overriding this default value may result in unsupported behavior.
27
27
  :paramtype version: str
28
28
  """
29
29
 
30
30
  def __init__(self, url: str, **kwargs: Any) -> None:
31
- version: Literal["2025-07-05"] = kwargs.pop("version", "2025-07-05")
31
+ version: Literal["2025-11-05"] = kwargs.pop("version", "2025-11-05")
32
32
 
33
33
  if url is None:
34
34
  raise ValueError("Parameter 'url' must not be None.")
@@ -0,0 +1,6 @@
1
+ # --------------------------------------------------------------------------
2
+ # Copyright (c) Microsoft Corporation. All rights reserved.
3
+ # Licensed under the MIT License. See License.txt in the project root for license information.
4
+ # Code generated by Microsoft (R) AutoRest Code Generator.
5
+ # Changes may cause incorrect behavior and will be lost if the code is regenerated.
6
+ # --------------------------------------------------------------------------
@@ -1,28 +1,10 @@
1
1
  # pylint: disable=line-too-long,useless-suppression,too-many-lines
2
+ # coding=utf-8
2
3
  # --------------------------------------------------------------------------
3
- #
4
4
  # Copyright (c) Microsoft Corporation. All rights reserved.
5
- #
6
- # The MIT License (MIT)
7
- #
8
- # Permission is hereby granted, free of charge, to any person obtaining a copy
9
- # of this software and associated documentation files (the ""Software""), to
10
- # deal in the Software without restriction, including without limitation the
11
- # rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
12
- # sell copies of the Software, and to permit persons to whom the Software is
13
- # furnished to do so, subject to the following conditions:
14
- #
15
- # The above copyright notice and this permission notice shall be included in
16
- # all copies or substantial portions of the Software.
17
- #
18
- # THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
19
- # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
20
- # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
21
- # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
22
- # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
23
- # FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
24
- # IN THE SOFTWARE.
25
- #
5
+ # Licensed under the MIT License. See License.txt in the project root for license information.
6
+ # Code generated by Microsoft (R) AutoRest Code Generator.
7
+ # Changes may cause incorrect behavior and will be lost if the code is regenerated.
26
8
  # --------------------------------------------------------------------------
27
9
 
28
10
  # pyright: reportUnnecessaryTypeIgnoreComment=false
@@ -15,7 +15,7 @@ from azure.core.pipeline import policies
15
15
  from azure.core.rest import AsyncHttpResponse, HttpRequest
16
16
 
17
17
  from .. import models as _models
18
- from .._serialization import Deserializer, Serializer
18
+ from .._utils.serialization import Deserializer, Serializer
19
19
  from ._configuration import AzureBlobStorageConfiguration
20
20
  from .operations import (
21
21
  AppendBlobOperations,
@@ -48,7 +48,7 @@ class AzureBlobStorage: # pylint: disable=client-accepts-api-version-keyword
48
48
  :param base_url: Service URL. Required. Default value is "".
49
49
  :type base_url: str
50
50
  :keyword version: Specifies the version of the operation to use for this request. Default value
51
- is "2025-07-05". Note that overriding this default value may result in unsupported behavior.
51
+ is "2025-11-05". Note that overriding this default value may result in unsupported behavior.
52
52
  :paramtype version: str
53
53
  """
54
54
 
@@ -56,6 +56,7 @@ class AzureBlobStorage: # pylint: disable=client-accepts-api-version-keyword
56
56
  self, url: str, base_url: str = "", **kwargs: Any
57
57
  ) -> None:
58
58
  self._config = AzureBlobStorageConfiguration(url=url, **kwargs)
59
+
59
60
  _policies = kwargs.pop("policies", None)
60
61
  if _policies is None:
61
62
  _policies = [
@@ -23,12 +23,12 @@ class AzureBlobStorageConfiguration: # pylint: disable=too-many-instance-attrib
23
23
  desired operation. Required.
24
24
  :type url: str
25
25
  :keyword version: Specifies the version of the operation to use for this request. Default value
26
- is "2025-07-05". Note that overriding this default value may result in unsupported behavior.
26
+ is "2025-11-05". Note that overriding this default value may result in unsupported behavior.
27
27
  :paramtype version: str
28
28
  """
29
29
 
30
30
  def __init__(self, url: str, **kwargs: Any) -> None:
31
- version: Literal["2025-07-05"] = kwargs.pop("version", "2025-07-05")
31
+ version: Literal["2025-11-05"] = kwargs.pop("version", "2025-11-05")
32
32
 
33
33
  if url is None:
34
34
  raise ValueError("Parameter 'url' must not be None.")
@@ -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._append_blob_operations import (
30
30
  build_append_block_from_url_request,
31
31
  build_append_block_request,
@@ -34,10 +34,6 @@ from ...operations._append_blob_operations import (
34
34
  )
35
35
  from .._configuration import AzureBlobStorageConfiguration
36
36
 
37
- if sys.version_info >= (3, 9):
38
- from collections.abc import MutableMapping
39
- else:
40
- from typing import MutableMapping # type: ignore
41
37
  T = TypeVar("T")
42
38
  ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]]
43
39
 
@@ -85,7 +81,7 @@ class AppendBlobOperations:
85
81
  :type content_length: int
86
82
  :param timeout: The timeout parameter is expressed in seconds. For more information, see
87
83
  :code:`<a
88
- href="https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations">Setting
84
+ href="https://learn.microsoft.com/rest/api/storageservices/setting-timeouts-for-blob-service-operations">Setting
89
85
  Timeouts for Blob Service Operations.</a>`. Default value is None.
90
86
  :type timeout: int
91
87
  :param metadata: Optional. Specifies a user-defined name-value pair associated with the blob.
@@ -274,7 +270,7 @@ class AppendBlobOperations:
274
270
  :type body: IO[bytes]
275
271
  :param timeout: The timeout parameter is expressed in seconds. For more information, see
276
272
  :code:`<a
277
- href="https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations">Setting
273
+ href="https://learn.microsoft.com/rest/api/storageservices/setting-timeouts-for-blob-service-operations">Setting
278
274
  Timeouts for Blob Service Operations.</a>`. Default value is None.
279
275
  :type timeout: int
280
276
  :param transactional_content_md5: Specify the transactional md5 for the body, to be validated
@@ -472,7 +468,7 @@ class AppendBlobOperations:
472
468
  :type source_contentcrc64: bytes
473
469
  :param timeout: The timeout parameter is expressed in seconds. For more information, see
474
470
  :code:`<a
475
- href="https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations">Setting
471
+ href="https://learn.microsoft.com/rest/api/storageservices/setting-timeouts-for-blob-service-operations">Setting
476
472
  Timeouts for Blob Service Operations.</a>`. Default value is None.
477
473
  :type timeout: int
478
474
  :param transactional_content_md5: Specify the transactional md5 for the body, to be validated
@@ -649,7 +645,7 @@ class AppendBlobOperations:
649
645
 
650
646
  :param timeout: The timeout parameter is expressed in seconds. For more information, see
651
647
  :code:`<a
652
- href="https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations">Setting
648
+ href="https://learn.microsoft.com/rest/api/storageservices/setting-timeouts-for-blob-service-operations">Setting
653
649
  Timeouts for Blob Service Operations.</a>`. Default value is None.
654
650
  :type timeout: int
655
651
  :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, AsyncIterator, Callable, Dict, Literal, Optional, TypeVar, Union
12
12
 
13
13
  from azure.core import AsyncPipelineClient
@@ -27,7 +27,7 @@ from azure.core.tracing.decorator_async import distributed_trace_async
27
27
  from azure.core.utils import case_insensitive_dict
28
28
 
29
29
  from ... import models as _models
30
- from ..._serialization import Deserializer, Serializer
30
+ from ..._utils.serialization import Deserializer, Serializer
31
31
  from ...operations._blob_operations import (
32
32
  build_abort_copy_from_url_request,
33
33
  build_acquire_lease_request,
@@ -56,10 +56,6 @@ from ...operations._blob_operations import (
56
56
  )
57
57
  from .._configuration import AzureBlobStorageConfiguration
58
58
 
59
- if sys.version_info >= (3, 9):
60
- from collections.abc import MutableMapping
61
- else:
62
- from typing import MutableMapping # type: ignore
63
59
  T = TypeVar("T")
64
60
  ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]]
65
61
 
@@ -105,7 +101,7 @@ class BlobOperations: # pylint: disable=too-many-public-methods
105
101
  :param snapshot: The snapshot parameter is an opaque DateTime value that, when present,
106
102
  specifies the blob snapshot to retrieve. For more information on working with blob snapshots,
107
103
  see :code:`<a
108
- href="https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/creating-a-snapshot-of-a-blob">Creating
104
+ href="https://learn.microsoft.com/rest/api/storageservices/creating-a-snapshot-of-a-blob">Creating
109
105
  a Snapshot of a Blob.</a>`. Default value is None.
110
106
  :type snapshot: str
111
107
  :param version_id: The version id parameter is an opaque DateTime value that, when present,
@@ -114,7 +110,7 @@ class BlobOperations: # pylint: disable=too-many-public-methods
114
110
  :type version_id: str
115
111
  :param timeout: The timeout parameter is expressed in seconds. For more information, see
116
112
  :code:`<a
117
- href="https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations">Setting
113
+ href="https://learn.microsoft.com/rest/api/storageservices/setting-timeouts-for-blob-service-operations">Setting
118
114
  Timeouts for Blob Service Operations.</a>`. Default value is None.
119
115
  :type timeout: int
120
116
  :param range: Return only the bytes of the blob in the specified range. Default value is None.
@@ -420,7 +416,7 @@ class BlobOperations: # pylint: disable=too-many-public-methods
420
416
  :param snapshot: The snapshot parameter is an opaque DateTime value that, when present,
421
417
  specifies the blob snapshot to retrieve. For more information on working with blob snapshots,
422
418
  see :code:`<a
423
- href="https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/creating-a-snapshot-of-a-blob">Creating
419
+ href="https://learn.microsoft.com/rest/api/storageservices/creating-a-snapshot-of-a-blob">Creating
424
420
  a Snapshot of a Blob.</a>`. Default value is None.
425
421
  :type snapshot: str
426
422
  :param version_id: The version id parameter is an opaque DateTime value that, when present,
@@ -429,7 +425,7 @@ class BlobOperations: # pylint: disable=too-many-public-methods
429
425
  :type version_id: str
430
426
  :param timeout: The timeout parameter is expressed in seconds. For more information, see
431
427
  :code:`<a
432
- href="https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations">Setting
428
+ href="https://learn.microsoft.com/rest/api/storageservices/setting-timeouts-for-blob-service-operations">Setting
433
429
  Timeouts for Blob Service Operations.</a>`. Default value is None.
434
430
  :type timeout: int
435
431
  :param request_id_parameter: Provides a client-generated, opaque value with a 1 KB character
@@ -633,7 +629,7 @@ class BlobOperations: # pylint: disable=too-many-public-methods
633
629
  :param snapshot: The snapshot parameter is an opaque DateTime value that, when present,
634
630
  specifies the blob snapshot to retrieve. For more information on working with blob snapshots,
635
631
  see :code:`<a
636
- href="https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/creating-a-snapshot-of-a-blob">Creating
632
+ href="https://learn.microsoft.com/rest/api/storageservices/creating-a-snapshot-of-a-blob">Creating
637
633
  a Snapshot of a Blob.</a>`. Default value is None.
638
634
  :type snapshot: str
639
635
  :param version_id: The version id parameter is an opaque DateTime value that, when present,
@@ -642,7 +638,7 @@ class BlobOperations: # pylint: disable=too-many-public-methods
642
638
  :type version_id: str
643
639
  :param timeout: The timeout parameter is expressed in seconds. For more information, see
644
640
  :code:`<a
645
- href="https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations">Setting
641
+ href="https://learn.microsoft.com/rest/api/storageservices/setting-timeouts-for-blob-service-operations">Setting
646
642
  Timeouts for Blob Service Operations.</a>`. Default value is None.
647
643
  :type timeout: int
648
644
  :param delete_snapshots: Required if the blob has associated snapshots. Specify one of the
@@ -745,7 +741,7 @@ class BlobOperations: # pylint: disable=too-many-public-methods
745
741
 
746
742
  :param timeout: The timeout parameter is expressed in seconds. For more information, see
747
743
  :code:`<a
748
- href="https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations">Setting
744
+ href="https://learn.microsoft.com/rest/api/storageservices/setting-timeouts-for-blob-service-operations">Setting
749
745
  Timeouts for Blob Service Operations.</a>`. Default value is None.
750
746
  :type timeout: int
751
747
  :param request_id_parameter: Provides a client-generated, opaque value with a 1 KB character
@@ -820,7 +816,7 @@ class BlobOperations: # pylint: disable=too-many-public-methods
820
816
  :type expiry_options: str or ~azure.storage.blob.models.BlobExpiryOptions
821
817
  :param timeout: The timeout parameter is expressed in seconds. For more information, see
822
818
  :code:`<a
823
- href="https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations">Setting
819
+ href="https://learn.microsoft.com/rest/api/storageservices/setting-timeouts-for-blob-service-operations">Setting
824
820
  Timeouts for Blob Service Operations.</a>`. Default value is None.
825
821
  :type timeout: int
826
822
  :param request_id_parameter: Provides a client-generated, opaque value with a 1 KB character
@@ -899,7 +895,7 @@ class BlobOperations: # pylint: disable=too-many-public-methods
899
895
 
900
896
  :param timeout: The timeout parameter is expressed in seconds. For more information, see
901
897
  :code:`<a
902
- href="https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations">Setting
898
+ href="https://learn.microsoft.com/rest/api/storageservices/setting-timeouts-for-blob-service-operations">Setting
903
899
  Timeouts for Blob Service Operations.</a>`. Default value is None.
904
900
  :type timeout: int
905
901
  :param request_id_parameter: Provides a client-generated, opaque value with a 1 KB character
@@ -1025,7 +1021,7 @@ class BlobOperations: # pylint: disable=too-many-public-methods
1025
1021
 
1026
1022
  :param timeout: The timeout parameter is expressed in seconds. For more information, see
1027
1023
  :code:`<a
1028
- href="https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations">Setting
1024
+ href="https://learn.microsoft.com/rest/api/storageservices/setting-timeouts-for-blob-service-operations">Setting
1029
1025
  Timeouts for Blob Service Operations.</a>`. Default value is None.
1030
1026
  :type timeout: int
1031
1027
  :param request_id_parameter: Provides a client-generated, opaque value with a 1 KB character
@@ -1041,7 +1037,7 @@ class BlobOperations: # pylint: disable=too-many-public-methods
1041
1037
  :param snapshot: The snapshot parameter is an opaque DateTime value that, when present,
1042
1038
  specifies the blob snapshot to retrieve. For more information on working with blob snapshots,
1043
1039
  see :code:`<a
1044
- href="https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/creating-a-snapshot-of-a-blob">Creating
1040
+ href="https://learn.microsoft.com/rest/api/storageservices/creating-a-snapshot-of-a-blob">Creating
1045
1041
  a Snapshot of a Blob.</a>`. Default value is None.
1046
1042
  :type snapshot: str
1047
1043
  :param version_id: The version id parameter is an opaque DateTime value that, when present,
@@ -1130,7 +1126,7 @@ class BlobOperations: # pylint: disable=too-many-public-methods
1130
1126
 
1131
1127
  :param timeout: The timeout parameter is expressed in seconds. For more information, see
1132
1128
  :code:`<a
1133
- href="https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations">Setting
1129
+ href="https://learn.microsoft.com/rest/api/storageservices/setting-timeouts-for-blob-service-operations">Setting
1134
1130
  Timeouts for Blob Service Operations.</a>`. Default value is None.
1135
1131
  :type timeout: int
1136
1132
  :param request_id_parameter: Provides a client-generated, opaque value with a 1 KB character
@@ -1140,7 +1136,7 @@ class BlobOperations: # pylint: disable=too-many-public-methods
1140
1136
  :param snapshot: The snapshot parameter is an opaque DateTime value that, when present,
1141
1137
  specifies the blob snapshot to retrieve. For more information on working with blob snapshots,
1142
1138
  see :code:`<a
1143
- href="https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/creating-a-snapshot-of-a-blob">Creating
1139
+ href="https://learn.microsoft.com/rest/api/storageservices/creating-a-snapshot-of-a-blob">Creating
1144
1140
  a Snapshot of a Blob.</a>`. Default value is None.
1145
1141
  :type snapshot: str
1146
1142
  :param version_id: The version id parameter is an opaque DateTime value that, when present,
@@ -1217,7 +1213,7 @@ class BlobOperations: # pylint: disable=too-many-public-methods
1217
1213
  :type legal_hold: bool
1218
1214
  :param timeout: The timeout parameter is expressed in seconds. For more information, see
1219
1215
  :code:`<a
1220
- href="https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations">Setting
1216
+ href="https://learn.microsoft.com/rest/api/storageservices/setting-timeouts-for-blob-service-operations">Setting
1221
1217
  Timeouts for Blob Service Operations.</a>`. Default value is None.
1222
1218
  :type timeout: int
1223
1219
  :param request_id_parameter: Provides a client-generated, opaque value with a 1 KB character
@@ -1227,7 +1223,7 @@ class BlobOperations: # pylint: disable=too-many-public-methods
1227
1223
  :param snapshot: The snapshot parameter is an opaque DateTime value that, when present,
1228
1224
  specifies the blob snapshot to retrieve. For more information on working with blob snapshots,
1229
1225
  see :code:`<a
1230
- href="https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/creating-a-snapshot-of-a-blob">Creating
1226
+ href="https://learn.microsoft.com/rest/api/storageservices/creating-a-snapshot-of-a-blob">Creating
1231
1227
  a Snapshot of a Blob.</a>`. Default value is None.
1232
1228
  :type snapshot: str
1233
1229
  :param version_id: The version id parameter is an opaque DateTime value that, when present,
@@ -1307,7 +1303,7 @@ class BlobOperations: # pylint: disable=too-many-public-methods
1307
1303
 
1308
1304
  :param timeout: The timeout parameter is expressed in seconds. For more information, see
1309
1305
  :code:`<a
1310
- href="https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations">Setting
1306
+ href="https://learn.microsoft.com/rest/api/storageservices/setting-timeouts-for-blob-service-operations">Setting
1311
1307
  Timeouts for Blob Service Operations.</a>`. Default value is None.
1312
1308
  :type timeout: int
1313
1309
  :param metadata: Optional. Specifies a user-defined name-value pair associated with the blob.
@@ -1445,7 +1441,7 @@ class BlobOperations: # pylint: disable=too-many-public-methods
1445
1441
 
1446
1442
  :param timeout: The timeout parameter is expressed in seconds. For more information, see
1447
1443
  :code:`<a
1448
- href="https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations">Setting
1444
+ href="https://learn.microsoft.com/rest/api/storageservices/setting-timeouts-for-blob-service-operations">Setting
1449
1445
  Timeouts for Blob Service Operations.</a>`. Default value is None.
1450
1446
  :type timeout: int
1451
1447
  :param duration: Specifies the duration of the lease, in seconds, or negative one (-1) for a
@@ -1554,7 +1550,7 @@ class BlobOperations: # pylint: disable=too-many-public-methods
1554
1550
  :type lease_id: str
1555
1551
  :param timeout: The timeout parameter is expressed in seconds. For more information, see
1556
1552
  :code:`<a
1557
- href="https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations">Setting
1553
+ href="https://learn.microsoft.com/rest/api/storageservices/setting-timeouts-for-blob-service-operations">Setting
1558
1554
  Timeouts for Blob Service Operations.</a>`. Default value is None.
1559
1555
  :type timeout: int
1560
1556
  :param request_id_parameter: Provides a client-generated, opaque value with a 1 KB character
@@ -1653,7 +1649,7 @@ class BlobOperations: # pylint: disable=too-many-public-methods
1653
1649
  :type lease_id: str
1654
1650
  :param timeout: The timeout parameter is expressed in seconds. For more information, see
1655
1651
  :code:`<a
1656
- href="https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations">Setting
1652
+ href="https://learn.microsoft.com/rest/api/storageservices/setting-timeouts-for-blob-service-operations">Setting
1657
1653
  Timeouts for Blob Service Operations.</a>`. Default value is None.
1658
1654
  :type timeout: int
1659
1655
  :param request_id_parameter: Provides a client-generated, opaque value with a 1 KB character
@@ -1758,7 +1754,7 @@ class BlobOperations: # pylint: disable=too-many-public-methods
1758
1754
  :type proposed_lease_id: str
1759
1755
  :param timeout: The timeout parameter is expressed in seconds. For more information, see
1760
1756
  :code:`<a
1761
- href="https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations">Setting
1757
+ href="https://learn.microsoft.com/rest/api/storageservices/setting-timeouts-for-blob-service-operations">Setting
1762
1758
  Timeouts for Blob Service Operations.</a>`. Default value is None.
1763
1759
  :type timeout: int
1764
1760
  :param request_id_parameter: Provides a client-generated, opaque value with a 1 KB character
@@ -1857,7 +1853,7 @@ class BlobOperations: # pylint: disable=too-many-public-methods
1857
1853
 
1858
1854
  :param timeout: The timeout parameter is expressed in seconds. For more information, see
1859
1855
  :code:`<a
1860
- href="https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations">Setting
1856
+ href="https://learn.microsoft.com/rest/api/storageservices/setting-timeouts-for-blob-service-operations">Setting
1861
1857
  Timeouts for Blob Service Operations.</a>`. Default value is None.
1862
1858
  :type timeout: int
1863
1859
  :param break_period: For a break operation, proposed duration the lease should continue before
@@ -1965,7 +1961,7 @@ class BlobOperations: # pylint: disable=too-many-public-methods
1965
1961
 
1966
1962
  :param timeout: The timeout parameter is expressed in seconds. For more information, see
1967
1963
  :code:`<a
1968
- href="https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations">Setting
1964
+ href="https://learn.microsoft.com/rest/api/storageservices/setting-timeouts-for-blob-service-operations">Setting
1969
1965
  Timeouts for Blob Service Operations.</a>`. Default value is None.
1970
1966
  :type timeout: int
1971
1967
  :param metadata: Optional. Specifies a user-defined name-value pair associated with the blob.
@@ -2111,7 +2107,7 @@ class BlobOperations: # pylint: disable=too-many-public-methods
2111
2107
  :type copy_source: str
2112
2108
  :param timeout: The timeout parameter is expressed in seconds. For more information, see
2113
2109
  :code:`<a
2114
- href="https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations">Setting
2110
+ href="https://learn.microsoft.com/rest/api/storageservices/setting-timeouts-for-blob-service-operations">Setting
2115
2111
  Timeouts for Blob Service Operations.</a>`. Default value is None.
2116
2112
  :type timeout: int
2117
2113
  :param metadata: Optional. Specifies a user-defined name-value pair associated with the blob.
@@ -2287,7 +2283,7 @@ class BlobOperations: # pylint: disable=too-many-public-methods
2287
2283
  :type copy_source: str
2288
2284
  :param timeout: The timeout parameter is expressed in seconds. For more information, see
2289
2285
  :code:`<a
2290
- href="https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations">Setting
2286
+ href="https://learn.microsoft.com/rest/api/storageservices/setting-timeouts-for-blob-service-operations">Setting
2291
2287
  Timeouts for Blob Service Operations.</a>`. Default value is None.
2292
2288
  :type timeout: int
2293
2289
  :param metadata: Optional. Specifies a user-defined name-value pair associated with the blob.
@@ -2470,7 +2466,7 @@ class BlobOperations: # pylint: disable=too-many-public-methods
2470
2466
  :type copy_id: str
2471
2467
  :param timeout: The timeout parameter is expressed in seconds. For more information, see
2472
2468
  :code:`<a
2473
- href="https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations">Setting
2469
+ href="https://learn.microsoft.com/rest/api/storageservices/setting-timeouts-for-blob-service-operations">Setting
2474
2470
  Timeouts for Blob Service Operations.</a>`. Default value is None.
2475
2471
  :type timeout: int
2476
2472
  :param request_id_parameter: Provides a client-generated, opaque value with a 1 KB character
@@ -2567,7 +2563,7 @@ class BlobOperations: # pylint: disable=too-many-public-methods
2567
2563
  :param snapshot: The snapshot parameter is an opaque DateTime value that, when present,
2568
2564
  specifies the blob snapshot to retrieve. For more information on working with blob snapshots,
2569
2565
  see :code:`<a
2570
- href="https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/creating-a-snapshot-of-a-blob">Creating
2566
+ href="https://learn.microsoft.com/rest/api/storageservices/creating-a-snapshot-of-a-blob">Creating
2571
2567
  a Snapshot of a Blob.</a>`. Default value is None.
2572
2568
  :type snapshot: str
2573
2569
  :param version_id: The version id parameter is an opaque DateTime value that, when present,
@@ -2576,7 +2572,7 @@ class BlobOperations: # pylint: disable=too-many-public-methods
2576
2572
  :type version_id: str
2577
2573
  :param timeout: The timeout parameter is expressed in seconds. For more information, see
2578
2574
  :code:`<a
2579
- href="https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations">Setting
2575
+ href="https://learn.microsoft.com/rest/api/storageservices/setting-timeouts-for-blob-service-operations">Setting
2580
2576
  Timeouts for Blob Service Operations.</a>`. Default value is None.
2581
2577
  :type timeout: int
2582
2578
  :param rehydrate_priority: Optional: Indicates the priority with which to rehydrate an archived
@@ -2662,7 +2658,7 @@ class BlobOperations: # pylint: disable=too-many-public-methods
2662
2658
 
2663
2659
  :param timeout: The timeout parameter is expressed in seconds. For more information, see
2664
2660
  :code:`<a
2665
- href="https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations">Setting
2661
+ href="https://learn.microsoft.com/rest/api/storageservices/setting-timeouts-for-blob-service-operations">Setting
2666
2662
  Timeouts for Blob Service Operations.</a>`. Default value is None.
2667
2663
  :type timeout: int
2668
2664
  :param request_id_parameter: Provides a client-generated, opaque value with a 1 KB character
@@ -2744,12 +2740,12 @@ class BlobOperations: # pylint: disable=too-many-public-methods
2744
2740
  :param snapshot: The snapshot parameter is an opaque DateTime value that, when present,
2745
2741
  specifies the blob snapshot to retrieve. For more information on working with blob snapshots,
2746
2742
  see :code:`<a
2747
- href="https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/creating-a-snapshot-of-a-blob">Creating
2743
+ href="https://learn.microsoft.com/rest/api/storageservices/creating-a-snapshot-of-a-blob">Creating
2748
2744
  a Snapshot of a Blob.</a>`. Default value is None.
2749
2745
  :type snapshot: str
2750
2746
  :param timeout: The timeout parameter is expressed in seconds. For more information, see
2751
2747
  :code:`<a
2752
- href="https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations">Setting
2748
+ href="https://learn.microsoft.com/rest/api/storageservices/setting-timeouts-for-blob-service-operations">Setting
2753
2749
  Timeouts for Blob Service Operations.</a>`. Default value is None.
2754
2750
  :type timeout: int
2755
2751
  :param request_id_parameter: Provides a client-generated, opaque value with a 1 KB character
@@ -2991,7 +2987,7 @@ class BlobOperations: # pylint: disable=too-many-public-methods
2991
2987
 
2992
2988
  :param timeout: The timeout parameter is expressed in seconds. For more information, see
2993
2989
  :code:`<a
2994
- href="https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations">Setting
2990
+ href="https://learn.microsoft.com/rest/api/storageservices/setting-timeouts-for-blob-service-operations">Setting
2995
2991
  Timeouts for Blob Service Operations.</a>`. Default value is None.
2996
2992
  :type timeout: int
2997
2993
  :param request_id_parameter: Provides a client-generated, opaque value with a 1 KB character
@@ -3001,7 +2997,7 @@ class BlobOperations: # pylint: disable=too-many-public-methods
3001
2997
  :param snapshot: The snapshot parameter is an opaque DateTime value that, when present,
3002
2998
  specifies the blob snapshot to retrieve. For more information on working with blob snapshots,
3003
2999
  see :code:`<a
3004
- href="https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/creating-a-snapshot-of-a-blob">Creating
3000
+ href="https://learn.microsoft.com/rest/api/storageservices/creating-a-snapshot-of-a-blob">Creating
3005
3001
  a Snapshot of a Blob.</a>`. Default value is None.
3006
3002
  :type snapshot: str
3007
3003
  :param version_id: The version id parameter is an opaque DateTime value that, when present,
@@ -3096,7 +3092,7 @@ class BlobOperations: # pylint: disable=too-many-public-methods
3096
3092
 
3097
3093
  :param timeout: The timeout parameter is expressed in seconds. For more information, see
3098
3094
  :code:`<a
3099
- href="https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations">Setting
3095
+ href="https://learn.microsoft.com/rest/api/storageservices/setting-timeouts-for-blob-service-operations">Setting
3100
3096
  Timeouts for Blob Service Operations.</a>`. Default value is None.
3101
3097
  :type timeout: int
3102
3098
  :param version_id: The version id parameter is an opaque DateTime value that, when present,
@@ -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._block_blob_operations import (
30
30
  build_commit_block_list_request,
31
31
  build_get_block_list_request,
@@ -36,10 +36,6 @@ from ...operations._block_blob_operations import (
36
36
  )
37
37
  from .._configuration import AzureBlobStorageConfiguration
38
38
 
39
- if sys.version_info >= (3, 9):
40
- from collections.abc import MutableMapping
41
- else:
42
- from typing import MutableMapping # type: ignore
43
39
  T = TypeVar("T")
44
40
  ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]]
45
41
 
@@ -99,7 +95,7 @@ class BlockBlobOperations:
99
95
  :type body: IO[bytes]
100
96
  :param timeout: The timeout parameter is expressed in seconds. For more information, see
101
97
  :code:`<a
102
- href="https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations">Setting
98
+ href="https://learn.microsoft.com/rest/api/storageservices/setting-timeouts-for-blob-service-operations">Setting
103
99
  Timeouts for Blob Service Operations.</a>`. Default value is None.
104
100
  :type timeout: int
105
101
  :param transactional_content_md5: Specify the transactional md5 for the body, to be validated
@@ -328,7 +324,7 @@ class BlockBlobOperations:
328
324
  :type copy_source: str
329
325
  :param timeout: The timeout parameter is expressed in seconds. For more information, see
330
326
  :code:`<a
331
- href="https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations">Setting
327
+ href="https://learn.microsoft.com/rest/api/storageservices/setting-timeouts-for-blob-service-operations">Setting
332
328
  Timeouts for Blob Service Operations.</a>`. Default value is None.
333
329
  :type timeout: int
334
330
  :param transactional_content_md5: Specify the transactional md5 for the body, to be validated
@@ -562,7 +558,7 @@ class BlockBlobOperations:
562
558
  :type transactional_content_crc64: bytes
563
559
  :param timeout: The timeout parameter is expressed in seconds. For more information, see
564
560
  :code:`<a
565
- href="https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations">Setting
561
+ href="https://learn.microsoft.com/rest/api/storageservices/setting-timeouts-for-blob-service-operations">Setting
566
562
  Timeouts for Blob Service Operations.</a>`. Default value is None.
567
563
  :type timeout: int
568
564
  :param request_id_parameter: Provides a client-generated, opaque value with a 1 KB character
@@ -719,7 +715,7 @@ class BlockBlobOperations:
719
715
  :type source_contentcrc64: bytes
720
716
  :param timeout: The timeout parameter is expressed in seconds. For more information, see
721
717
  :code:`<a
722
- href="https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations">Setting
718
+ href="https://learn.microsoft.com/rest/api/storageservices/setting-timeouts-for-blob-service-operations">Setting
723
719
  Timeouts for Blob Service Operations.</a>`. Default value is None.
724
720
  :type timeout: int
725
721
  :param request_id_parameter: Provides a client-generated, opaque value with a 1 KB character
@@ -878,7 +874,7 @@ class BlockBlobOperations:
878
874
  :type blocks: ~azure.storage.blob.models.BlockLookupList
879
875
  :param timeout: The timeout parameter is expressed in seconds. For more information, see
880
876
  :code:`<a
881
- href="https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations">Setting
877
+ href="https://learn.microsoft.com/rest/api/storageservices/setting-timeouts-for-blob-service-operations">Setting
882
878
  Timeouts for Blob Service Operations.</a>`. Default value is None.
883
879
  :type timeout: int
884
880
  :param transactional_content_md5: Specify the transactional md5 for the body, to be validated
@@ -1075,7 +1071,7 @@ class BlockBlobOperations:
1075
1071
  :param snapshot: The snapshot parameter is an opaque DateTime value that, when present,
1076
1072
  specifies the blob snapshot to retrieve. For more information on working with blob snapshots,
1077
1073
  see :code:`<a
1078
- href="https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/creating-a-snapshot-of-a-blob">Creating
1074
+ href="https://learn.microsoft.com/rest/api/storageservices/creating-a-snapshot-of-a-blob">Creating
1079
1075
  a Snapshot of a Blob.</a>`. Default value is None.
1080
1076
  :type snapshot: str
1081
1077
  :param list_type: Specifies whether to return the list of committed blocks, the list of
@@ -1084,7 +1080,7 @@ class BlockBlobOperations:
1084
1080
  :type list_type: str or ~azure.storage.blob.models.BlockListType
1085
1081
  :param timeout: The timeout parameter is expressed in seconds. For more information, see
1086
1082
  :code:`<a
1087
- href="https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations">Setting
1083
+ href="https://learn.microsoft.com/rest/api/storageservices/setting-timeouts-for-blob-service-operations">Setting
1088
1084
  Timeouts for Blob Service Operations.</a>`. Default value is None.
1089
1085
  :type timeout: int
1090
1086
  :param request_id_parameter: Provides a client-generated, opaque value with a 1 KB character