azure-mgmt-storage 22.2.0__py3-none-any.whl → 23.0.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 (184) hide show
  1. azure/mgmt/storage/__init__.py +19 -7
  2. azure/mgmt/storage/_configuration.py +27 -29
  3. azure/mgmt/storage/{v2016_01_01/models/_patch.py → _patch.py} +5 -4
  4. azure/mgmt/storage/_storage_management_client.py +184 -499
  5. azure/mgmt/storage/{v2016_01_01/_version.py → _utils/__init__.py} +0 -3
  6. azure/mgmt/storage/{_serialization.py → _utils/serialization.py} +46 -131
  7. azure/mgmt/storage/_version.py +1 -1
  8. azure/mgmt/storage/aio/__init__.py +21 -2
  9. azure/mgmt/storage/aio/_configuration.py +27 -29
  10. azure/mgmt/storage/{v2017_10_01/aio/operations → aio}/_patch.py +5 -4
  11. azure/mgmt/storage/aio/_storage_management_client.py +188 -497
  12. azure/mgmt/storage/{v2024_01_01/aio → aio}/operations/__init__.py +1 -0
  13. azure/mgmt/storage/{v2024_01_01/aio → aio}/operations/_blob_containers_operations.py +68 -84
  14. azure/mgmt/storage/{v2024_01_01/aio → aio}/operations/_blob_inventory_policies_operations.py +28 -36
  15. azure/mgmt/storage/{v2024_01_01/aio → aio}/operations/_blob_services_operations.py +22 -24
  16. azure/mgmt/storage/{v2024_01_01/aio → aio}/operations/_deleted_accounts_operations.py +16 -19
  17. azure/mgmt/storage/{v2024_01_01/aio → aio}/operations/_encryption_scopes_operations.py +29 -32
  18. azure/mgmt/storage/{v2024_01_01/aio → aio}/operations/_file_services_operations.py +26 -29
  19. azure/mgmt/storage/{v2024_01_01/aio → aio}/operations/_file_shares_operations.py +38 -41
  20. azure/mgmt/storage/{v2024_01_01/aio → aio}/operations/_local_users_operations.py +28 -31
  21. azure/mgmt/storage/{v2019_06_01/aio → aio}/operations/_management_policies_operations.py +23 -30
  22. azure/mgmt/storage/{v2024_01_01/aio → aio}/operations/_network_security_perimeter_configurations_operations.py +18 -21
  23. azure/mgmt/storage/{v2024_01_01/aio → aio}/operations/_object_replication_policies_operations.py +23 -25
  24. azure/mgmt/storage/{v2017_10_01/aio → aio}/operations/_operations.py +14 -17
  25. azure/mgmt/storage/{v2016_01_01/aio → aio}/operations/_patch.py +5 -4
  26. azure/mgmt/storage/{v2024_01_01/aio → aio}/operations/_private_endpoint_connections_operations.py +23 -25
  27. azure/mgmt/storage/{v2024_01_01/aio → aio}/operations/_private_link_resources_operations.py +11 -13
  28. azure/mgmt/storage/{v2024_01_01/aio → aio}/operations/_queue_operations.py +29 -32
  29. azure/mgmt/storage/{v2024_01_01/aio → aio}/operations/_queue_services_operations.py +19 -21
  30. azure/mgmt/storage/{v2024_01_01/aio → aio}/operations/_skus_operations.py +14 -17
  31. azure/mgmt/storage/{v2024_01_01/aio → aio}/operations/_storage_accounts_operations.py +83 -111
  32. azure/mgmt/storage/{v2024_01_01/aio → aio}/operations/_storage_task_assignment_instances_report_operations.py +15 -17
  33. azure/mgmt/storage/{v2024_01_01/aio → aio}/operations/_storage_task_assignments_instances_report_operations.py +15 -17
  34. azure/mgmt/storage/{v2024_01_01/aio → aio}/operations/_storage_task_assignments_operations.py +38 -44
  35. azure/mgmt/storage/{v2024_01_01/aio → aio}/operations/_table_operations.py +29 -31
  36. azure/mgmt/storage/{v2024_01_01/aio → aio}/operations/_table_services_operations.py +19 -21
  37. azure/mgmt/storage/{v2024_01_01/aio → aio}/operations/_usages_operations.py +14 -16
  38. azure/mgmt/storage/{v2024_01_01/models → models}/_models_py3.py +857 -912
  39. azure/mgmt/storage/{v2016_01_01/operations → models}/_patch.py +5 -4
  40. azure/mgmt/storage/{v2024_01_01/operations → operations}/__init__.py +1 -0
  41. azure/mgmt/storage/{v2024_01_01/operations → operations}/_blob_containers_operations.py +84 -87
  42. azure/mgmt/storage/{v2024_01_01/operations → operations}/_blob_inventory_policies_operations.py +34 -42
  43. azure/mgmt/storage/{v2024_01_01/operations → operations}/_blob_services_operations.py +27 -30
  44. azure/mgmt/storage/{v2024_01_01/operations → operations}/_deleted_accounts_operations.py +19 -21
  45. azure/mgmt/storage/{v2024_01_01/operations → operations}/_encryption_scopes_operations.py +35 -37
  46. azure/mgmt/storage/{v2024_01_01/operations → operations}/_file_services_operations.py +33 -35
  47. azure/mgmt/storage/{v2024_01_01/operations → operations}/_file_shares_operations.py +47 -50
  48. azure/mgmt/storage/{v2024_01_01/operations → operations}/_local_users_operations.py +36 -38
  49. azure/mgmt/storage/{v2024_01_01/operations → operations}/_management_policies_operations.py +28 -35
  50. azure/mgmt/storage/{v2024_01_01/operations → operations}/_network_security_perimeter_configurations_operations.py +23 -25
  51. azure/mgmt/storage/{v2024_01_01/operations → operations}/_object_replication_policies_operations.py +29 -32
  52. azure/mgmt/storage/{v2024_01_01/operations → operations}/_operations.py +15 -18
  53. azure/mgmt/storage/operations/_patch.py +21 -0
  54. azure/mgmt/storage/{v2024_01_01/operations → operations}/_private_endpoint_connections_operations.py +29 -32
  55. azure/mgmt/storage/{v2024_01_01/operations → operations}/_private_link_resources_operations.py +14 -16
  56. azure/mgmt/storage/{v2024_01_01/operations → operations}/_queue_operations.py +36 -38
  57. azure/mgmt/storage/{v2024_01_01/operations → operations}/_queue_services_operations.py +24 -26
  58. azure/mgmt/storage/{v2024_01_01/operations → operations}/_skus_operations.py +15 -18
  59. azure/mgmt/storage/{v2024_01_01/operations → operations}/_storage_accounts_operations.py +101 -109
  60. azure/mgmt/storage/{v2024_01_01/operations → operations}/_storage_task_assignment_instances_report_operations.py +17 -21
  61. azure/mgmt/storage/{v2024_01_01/operations → operations}/_storage_task_assignments_instances_report_operations.py +17 -21
  62. azure/mgmt/storage/{v2024_01_01/operations → operations}/_storage_task_assignments_operations.py +42 -53
  63. azure/mgmt/storage/{v2024_01_01/operations → operations}/_table_operations.py +36 -38
  64. azure/mgmt/storage/{v2024_01_01/operations → operations}/_table_services_operations.py +24 -26
  65. azure/mgmt/storage/{v2024_01_01/operations → operations}/_usages_operations.py +16 -19
  66. {azure_mgmt_storage-22.2.0.dist-info → azure_mgmt_storage-23.0.1.dist-info}/METADATA +17 -6
  67. azure_mgmt_storage-23.0.1.dist-info/RECORD +73 -0
  68. azure/mgmt/storage/models.py +0 -8
  69. azure/mgmt/storage/v2016_01_01/__init__.py +0 -32
  70. azure/mgmt/storage/v2016_01_01/_configuration.py +0 -65
  71. azure/mgmt/storage/v2016_01_01/_patch.py +0 -32
  72. azure/mgmt/storage/v2016_01_01/_storage_management_client.py +0 -117
  73. azure/mgmt/storage/v2016_01_01/aio/__init__.py +0 -29
  74. azure/mgmt/storage/v2016_01_01/aio/_configuration.py +0 -65
  75. azure/mgmt/storage/v2016_01_01/aio/_patch.py +0 -32
  76. azure/mgmt/storage/v2016_01_01/aio/_storage_management_client.py +0 -120
  77. azure/mgmt/storage/v2016_01_01/aio/operations/__init__.py +0 -27
  78. azure/mgmt/storage/v2016_01_01/aio/operations/_storage_accounts_operations.py +0 -1023
  79. azure/mgmt/storage/v2016_01_01/aio/operations/_usage_operations.py +0 -130
  80. azure/mgmt/storage/v2016_01_01/models/__init__.py +0 -88
  81. azure/mgmt/storage/v2016_01_01/models/_models_py3.py +0 -829
  82. azure/mgmt/storage/v2016_01_01/models/_storage_management_client_enums.py +0 -99
  83. azure/mgmt/storage/v2016_01_01/operations/__init__.py +0 -27
  84. azure/mgmt/storage/v2016_01_01/operations/_storage_accounts_operations.py +0 -1278
  85. azure/mgmt/storage/v2016_01_01/operations/_usage_operations.py +0 -157
  86. azure/mgmt/storage/v2016_01_01/py.typed +0 -1
  87. azure/mgmt/storage/v2017_10_01/__init__.py +0 -32
  88. azure/mgmt/storage/v2017_10_01/_configuration.py +0 -65
  89. azure/mgmt/storage/v2017_10_01/_patch.py +0 -32
  90. azure/mgmt/storage/v2017_10_01/_storage_management.py +0 -121
  91. azure/mgmt/storage/v2017_10_01/_version.py +0 -9
  92. azure/mgmt/storage/v2017_10_01/aio/__init__.py +0 -29
  93. azure/mgmt/storage/v2017_10_01/aio/_configuration.py +0 -65
  94. azure/mgmt/storage/v2017_10_01/aio/_patch.py +0 -32
  95. azure/mgmt/storage/v2017_10_01/aio/_storage_management.py +0 -124
  96. azure/mgmt/storage/v2017_10_01/aio/operations/__init__.py +0 -31
  97. azure/mgmt/storage/v2017_10_01/aio/operations/_skus_operations.py +0 -130
  98. azure/mgmt/storage/v2017_10_01/aio/operations/_storage_accounts_operations.py +0 -1299
  99. azure/mgmt/storage/v2017_10_01/aio/operations/_usage_operations.py +0 -130
  100. azure/mgmt/storage/v2017_10_01/models/__init__.py +0 -140
  101. azure/mgmt/storage/v2017_10_01/models/_models_py3.py +0 -1851
  102. azure/mgmt/storage/v2017_10_01/models/_patch.py +0 -20
  103. azure/mgmt/storage/v2017_10_01/models/_storage_management_enums.py +0 -192
  104. azure/mgmt/storage/v2017_10_01/operations/__init__.py +0 -31
  105. azure/mgmt/storage/v2017_10_01/operations/_operations.py +0 -151
  106. azure/mgmt/storage/v2017_10_01/operations/_patch.py +0 -20
  107. azure/mgmt/storage/v2017_10_01/operations/_skus_operations.py +0 -157
  108. azure/mgmt/storage/v2017_10_01/operations/_storage_accounts_operations.py +0 -1638
  109. azure/mgmt/storage/v2017_10_01/operations/_usage_operations.py +0 -157
  110. azure/mgmt/storage/v2017_10_01/py.typed +0 -1
  111. azure/mgmt/storage/v2019_06_01/__init__.py +0 -32
  112. azure/mgmt/storage/v2019_06_01/_configuration.py +0 -64
  113. azure/mgmt/storage/v2019_06_01/_patch.py +0 -32
  114. azure/mgmt/storage/v2019_06_01/_storage_management_client.py +0 -213
  115. azure/mgmt/storage/v2019_06_01/_version.py +0 -9
  116. azure/mgmt/storage/v2019_06_01/aio/__init__.py +0 -29
  117. azure/mgmt/storage/v2019_06_01/aio/_configuration.py +0 -64
  118. azure/mgmt/storage/v2019_06_01/aio/_patch.py +0 -32
  119. azure/mgmt/storage/v2019_06_01/aio/_storage_management_client.py +0 -217
  120. azure/mgmt/storage/v2019_06_01/aio/operations/__init__.py +0 -59
  121. azure/mgmt/storage/v2019_06_01/aio/operations/_blob_containers_operations.py +0 -1725
  122. azure/mgmt/storage/v2019_06_01/aio/operations/_blob_inventory_policies_operations.py +0 -437
  123. azure/mgmt/storage/v2019_06_01/aio/operations/_blob_services_operations.py +0 -368
  124. azure/mgmt/storage/v2019_06_01/aio/operations/_encryption_scopes_operations.py +0 -538
  125. azure/mgmt/storage/v2019_06_01/aio/operations/_file_services_operations.py +0 -335
  126. azure/mgmt/storage/v2019_06_01/aio/operations/_file_shares_operations.py +0 -771
  127. azure/mgmt/storage/v2019_06_01/aio/operations/_object_replication_policies_operations.py +0 -428
  128. azure/mgmt/storage/v2019_06_01/aio/operations/_operations.py +0 -130
  129. azure/mgmt/storage/v2019_06_01/aio/operations/_patch.py +0 -20
  130. azure/mgmt/storage/v2019_06_01/aio/operations/_private_endpoint_connections_operations.py +0 -424
  131. azure/mgmt/storage/v2019_06_01/aio/operations/_private_link_resources_operations.py +0 -113
  132. azure/mgmt/storage/v2019_06_01/aio/operations/_queue_operations.py +0 -597
  133. azure/mgmt/storage/v2019_06_01/aio/operations/_queue_services_operations.py +0 -335
  134. azure/mgmt/storage/v2019_06_01/aio/operations/_skus_operations.py +0 -131
  135. azure/mgmt/storage/v2019_06_01/aio/operations/_storage_accounts_operations.py +0 -1696
  136. azure/mgmt/storage/v2019_06_01/aio/operations/_table_operations.py +0 -394
  137. azure/mgmt/storage/v2019_06_01/aio/operations/_table_services_operations.py +0 -335
  138. azure/mgmt/storage/v2019_06_01/aio/operations/_usages_operations.py +0 -134
  139. azure/mgmt/storage/v2019_06_01/models/__init__.py +0 -364
  140. azure/mgmt/storage/v2019_06_01/models/_models_py3.py +0 -6038
  141. azure/mgmt/storage/v2019_06_01/models/_patch.py +0 -20
  142. azure/mgmt/storage/v2019_06_01/models/_storage_management_client_enums.py +0 -456
  143. azure/mgmt/storage/v2019_06_01/operations/__init__.py +0 -59
  144. azure/mgmt/storage/v2019_06_01/operations/_blob_containers_operations.py +0 -2226
  145. azure/mgmt/storage/v2019_06_01/operations/_blob_inventory_policies_operations.py +0 -582
  146. azure/mgmt/storage/v2019_06_01/operations/_blob_services_operations.py +0 -476
  147. azure/mgmt/storage/v2019_06_01/operations/_encryption_scopes_operations.py +0 -677
  148. azure/mgmt/storage/v2019_06_01/operations/_file_services_operations.py +0 -444
  149. azure/mgmt/storage/v2019_06_01/operations/_file_shares_operations.py +0 -1000
  150. azure/mgmt/storage/v2019_06_01/operations/_management_policies_operations.py +0 -453
  151. azure/mgmt/storage/v2019_06_01/operations/_object_replication_policies_operations.py +0 -567
  152. azure/mgmt/storage/v2019_06_01/operations/_operations.py +0 -151
  153. azure/mgmt/storage/v2019_06_01/operations/_patch.py +0 -20
  154. azure/mgmt/storage/v2019_06_01/operations/_private_endpoint_connections_operations.py +0 -575
  155. azure/mgmt/storage/v2019_06_01/operations/_private_link_resources_operations.py +0 -149
  156. azure/mgmt/storage/v2019_06_01/operations/_queue_operations.py +0 -805
  157. azure/mgmt/storage/v2019_06_01/operations/_queue_services_operations.py +0 -444
  158. azure/mgmt/storage/v2019_06_01/operations/_skus_operations.py +0 -157
  159. azure/mgmt/storage/v2019_06_01/operations/_storage_accounts_operations.py +0 -2122
  160. azure/mgmt/storage/v2019_06_01/operations/_table_operations.py +0 -563
  161. azure/mgmt/storage/v2019_06_01/operations/_table_services_operations.py +0 -444
  162. azure/mgmt/storage/v2019_06_01/operations/_usages_operations.py +0 -164
  163. azure/mgmt/storage/v2019_06_01/py.typed +0 -1
  164. azure/mgmt/storage/v2024_01_01/__init__.py +0 -32
  165. azure/mgmt/storage/v2024_01_01/_configuration.py +0 -64
  166. azure/mgmt/storage/v2024_01_01/_patch.py +0 -20
  167. azure/mgmt/storage/v2024_01_01/_storage_management_client.py +0 -256
  168. azure/mgmt/storage/v2024_01_01/_version.py +0 -9
  169. azure/mgmt/storage/v2024_01_01/aio/__init__.py +0 -29
  170. azure/mgmt/storage/v2024_01_01/aio/_configuration.py +0 -64
  171. azure/mgmt/storage/v2024_01_01/aio/_patch.py +0 -20
  172. azure/mgmt/storage/v2024_01_01/aio/_storage_management_client.py +0 -261
  173. azure/mgmt/storage/v2024_01_01/aio/operations/_management_policies_operations.py +0 -343
  174. azure/mgmt/storage/v2024_01_01/aio/operations/_operations.py +0 -130
  175. azure/mgmt/storage/v2024_01_01/aio/operations/_patch.py +0 -20
  176. azure/mgmt/storage/v2024_01_01/models/_patch.py +0 -20
  177. azure/mgmt/storage/v2024_01_01/operations/_patch.py +0 -20
  178. azure/mgmt/storage/v2024_01_01/py.typed +0 -1
  179. azure_mgmt_storage-22.2.0.dist-info/RECORD +0 -183
  180. /azure/mgmt/storage/{v2024_01_01/models → models}/__init__.py +0 -0
  181. /azure/mgmt/storage/{v2024_01_01/models → models}/_storage_management_client_enums.py +0 -0
  182. {azure_mgmt_storage-22.2.0.dist-info → azure_mgmt_storage-23.0.1.dist-info}/LICENSE +0 -0
  183. {azure_mgmt_storage-22.2.0.dist-info → azure_mgmt_storage-23.0.1.dist-info}/WHEEL +0 -0
  184. {azure_mgmt_storage-22.2.0.dist-info → azure_mgmt_storage-23.0.1.dist-info}/top_level.txt +0 -0
@@ -1,3 +1,4 @@
1
+ # pylint: disable=line-too-long,useless-suppression
1
2
  # coding=utf-8
2
3
  # --------------------------------------------------------------------------
3
4
  # Copyright (c) Microsoft Corporation. All rights reserved.
@@ -6,24 +6,12 @@
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
  from io import IOBase
10
- import sys
11
- from typing import (
12
- Any,
13
- AsyncIterable,
14
- AsyncIterator,
15
- Callable,
16
- Dict,
17
- IO,
18
- Literal,
19
- Optional,
20
- TypeVar,
21
- Union,
22
- cast,
23
- overload,
24
- )
11
+ from typing import Any, AsyncIterator, Callable, Dict, IO, Literal, Optional, TypeVar, Union, cast, overload
25
12
  import urllib.parse
26
13
 
14
+ from azure.core import AsyncPipelineClient
27
15
  from azure.core.async_paging import AsyncItemPaged, AsyncList
28
16
  from azure.core.exceptions import (
29
17
  ClientAuthenticationError,
@@ -45,6 +33,7 @@ from azure.mgmt.core.exceptions import ARMErrorFormat
45
33
  from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling
46
34
 
47
35
  from ... import models as _models
36
+ from ..._utils.serialization import Deserializer, Serializer
48
37
  from ...operations._blob_containers_operations import (
49
38
  build_clear_legal_hold_request,
50
39
  build_create_or_update_immutability_policy_request,
@@ -61,11 +50,8 @@ from ...operations._blob_containers_operations import (
61
50
  build_set_legal_hold_request,
62
51
  build_update_request,
63
52
  )
53
+ from .._configuration import StorageManagementClientConfiguration
64
54
 
65
- if sys.version_info >= (3, 9):
66
- from collections.abc import MutableMapping
67
- else:
68
- from typing import MutableMapping # type: ignore
69
55
  T = TypeVar("T")
70
56
  ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]]
71
57
 
@@ -76,7 +62,7 @@ class BlobContainersOperations:
76
62
  **DO NOT** instantiate this class directly.
77
63
 
78
64
  Instead, you should access the following operations through
79
- :class:`~azure.mgmt.storage.v2024_01_01.aio.StorageManagementClient`'s
65
+ :class:`~azure.mgmt.storage.aio.StorageManagementClient`'s
80
66
  :attr:`blob_containers` attribute.
81
67
  """
82
68
 
@@ -84,11 +70,10 @@ class BlobContainersOperations:
84
70
 
85
71
  def __init__(self, *args, **kwargs) -> None:
86
72
  input_args = list(args)
87
- self._client = input_args.pop(0) if input_args else kwargs.pop("client")
88
- self._config = input_args.pop(0) if input_args else kwargs.pop("config")
89
- self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer")
90
- self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer")
91
- self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version")
73
+ self._client: AsyncPipelineClient = input_args.pop(0) if input_args else kwargs.pop("client")
74
+ self._config: StorageManagementClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config")
75
+ self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer")
76
+ self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer")
92
77
 
93
78
  @distributed_trace
94
79
  def list(
@@ -99,7 +84,7 @@ class BlobContainersOperations:
99
84
  filter: Optional[str] = None,
100
85
  include: Optional[Union[str, _models.ListContainersInclude]] = None,
101
86
  **kwargs: Any
102
- ) -> AsyncIterable["_models.ListContainerItem"]:
87
+ ) -> AsyncItemPaged["_models.ListContainerItem"]:
103
88
  """Lists all containers and does not support a prefix like data plane. Also SRP today does not
104
89
  return continuation token.
105
90
 
@@ -118,16 +103,15 @@ class BlobContainersOperations:
118
103
  :type filter: str
119
104
  :param include: Optional, used to include the properties for soft deleted blob containers.
120
105
  "deleted" Default value is None.
121
- :type include: str or ~azure.mgmt.storage.v2024_01_01.models.ListContainersInclude
106
+ :type include: str or ~azure.mgmt.storage.models.ListContainersInclude
122
107
  :return: An iterator like instance of either ListContainerItem or the result of cls(response)
123
- :rtype:
124
- ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.storage.v2024_01_01.models.ListContainerItem]
108
+ :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.storage.models.ListContainerItem]
125
109
  :raises ~azure.core.exceptions.HttpResponseError:
126
110
  """
127
111
  _headers = kwargs.pop("headers", {}) or {}
128
112
  _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
129
113
 
130
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-01-01"))
114
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
131
115
  cls: ClsType[_models.ListContainerItems] = kwargs.pop("cls", None)
132
116
 
133
117
  error_map: MutableMapping = {
@@ -163,7 +147,7 @@ class BlobContainersOperations:
163
147
  for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items()
164
148
  }
165
149
  )
166
- _next_request_params["api-version"] = self._api_version
150
+ _next_request_params["api-version"] = self._config.api_version
167
151
  _request = HttpRequest(
168
152
  "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params
169
153
  )
@@ -223,12 +207,12 @@ class BlobContainersOperations:
223
207
  by a letter or number. Required.
224
208
  :type container_name: str
225
209
  :param blob_container: Properties of the blob container to create. Required.
226
- :type blob_container: ~azure.mgmt.storage.v2024_01_01.models.BlobContainer
210
+ :type blob_container: ~azure.mgmt.storage.models.BlobContainer
227
211
  :keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
228
212
  Default value is "application/json".
229
213
  :paramtype content_type: str
230
214
  :return: BlobContainer or the result of cls(response)
231
- :rtype: ~azure.mgmt.storage.v2024_01_01.models.BlobContainer
215
+ :rtype: ~azure.mgmt.storage.models.BlobContainer
232
216
  :raises ~azure.core.exceptions.HttpResponseError:
233
217
  """
234
218
 
@@ -265,7 +249,7 @@ class BlobContainersOperations:
265
249
  Default value is "application/json".
266
250
  :paramtype content_type: str
267
251
  :return: BlobContainer or the result of cls(response)
268
- :rtype: ~azure.mgmt.storage.v2024_01_01.models.BlobContainer
252
+ :rtype: ~azure.mgmt.storage.models.BlobContainer
269
253
  :raises ~azure.core.exceptions.HttpResponseError:
270
254
  """
271
255
 
@@ -296,9 +280,9 @@ class BlobContainersOperations:
296
280
  :type container_name: str
297
281
  :param blob_container: Properties of the blob container to create. Is either a BlobContainer
298
282
  type or a IO[bytes] type. Required.
299
- :type blob_container: ~azure.mgmt.storage.v2024_01_01.models.BlobContainer or IO[bytes]
283
+ :type blob_container: ~azure.mgmt.storage.models.BlobContainer or IO[bytes]
300
284
  :return: BlobContainer or the result of cls(response)
301
- :rtype: ~azure.mgmt.storage.v2024_01_01.models.BlobContainer
285
+ :rtype: ~azure.mgmt.storage.models.BlobContainer
302
286
  :raises ~azure.core.exceptions.HttpResponseError:
303
287
  """
304
288
  error_map: MutableMapping = {
@@ -312,7 +296,7 @@ class BlobContainersOperations:
312
296
  _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
313
297
  _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
314
298
 
315
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-01-01"))
299
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
316
300
  content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
317
301
  cls: ClsType[_models.BlobContainer] = kwargs.pop("cls", None)
318
302
 
@@ -383,12 +367,12 @@ class BlobContainersOperations:
383
367
  by a letter or number. Required.
384
368
  :type container_name: str
385
369
  :param blob_container: Properties to update for the blob container. Required.
386
- :type blob_container: ~azure.mgmt.storage.v2024_01_01.models.BlobContainer
370
+ :type blob_container: ~azure.mgmt.storage.models.BlobContainer
387
371
  :keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
388
372
  Default value is "application/json".
389
373
  :paramtype content_type: str
390
374
  :return: BlobContainer or the result of cls(response)
391
- :rtype: ~azure.mgmt.storage.v2024_01_01.models.BlobContainer
375
+ :rtype: ~azure.mgmt.storage.models.BlobContainer
392
376
  :raises ~azure.core.exceptions.HttpResponseError:
393
377
  """
394
378
 
@@ -424,7 +408,7 @@ class BlobContainersOperations:
424
408
  Default value is "application/json".
425
409
  :paramtype content_type: str
426
410
  :return: BlobContainer or the result of cls(response)
427
- :rtype: ~azure.mgmt.storage.v2024_01_01.models.BlobContainer
411
+ :rtype: ~azure.mgmt.storage.models.BlobContainer
428
412
  :raises ~azure.core.exceptions.HttpResponseError:
429
413
  """
430
414
 
@@ -454,9 +438,9 @@ class BlobContainersOperations:
454
438
  :type container_name: str
455
439
  :param blob_container: Properties to update for the blob container. Is either a BlobContainer
456
440
  type or a IO[bytes] type. Required.
457
- :type blob_container: ~azure.mgmt.storage.v2024_01_01.models.BlobContainer or IO[bytes]
441
+ :type blob_container: ~azure.mgmt.storage.models.BlobContainer or IO[bytes]
458
442
  :return: BlobContainer or the result of cls(response)
459
- :rtype: ~azure.mgmt.storage.v2024_01_01.models.BlobContainer
443
+ :rtype: ~azure.mgmt.storage.models.BlobContainer
460
444
  :raises ~azure.core.exceptions.HttpResponseError:
461
445
  """
462
446
  error_map: MutableMapping = {
@@ -470,7 +454,7 @@ class BlobContainersOperations:
470
454
  _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
471
455
  _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
472
456
 
473
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-01-01"))
457
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
474
458
  content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
475
459
  cls: ClsType[_models.BlobContainer] = kwargs.pop("cls", None)
476
460
 
@@ -533,7 +517,7 @@ class BlobContainersOperations:
533
517
  by a letter or number. Required.
534
518
  :type container_name: str
535
519
  :return: BlobContainer or the result of cls(response)
536
- :rtype: ~azure.mgmt.storage.v2024_01_01.models.BlobContainer
520
+ :rtype: ~azure.mgmt.storage.models.BlobContainer
537
521
  :raises ~azure.core.exceptions.HttpResponseError:
538
522
  """
539
523
  error_map: MutableMapping = {
@@ -547,7 +531,7 @@ class BlobContainersOperations:
547
531
  _headers = kwargs.pop("headers", {}) or {}
548
532
  _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
549
533
 
550
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-01-01"))
534
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
551
535
  cls: ClsType[_models.BlobContainer] = kwargs.pop("cls", None)
552
536
 
553
537
  _request = build_get_request(
@@ -610,7 +594,7 @@ class BlobContainersOperations:
610
594
  _headers = kwargs.pop("headers", {}) or {}
611
595
  _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
612
596
 
613
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-01-01"))
597
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
614
598
  cls: ClsType[None] = kwargs.pop("cls", None)
615
599
 
616
600
  _request = build_delete_request(
@@ -666,12 +650,12 @@ class BlobContainersOperations:
666
650
  by a letter or number. Required.
667
651
  :type container_name: str
668
652
  :param legal_hold: The LegalHold property that will be set to a blob container. Required.
669
- :type legal_hold: ~azure.mgmt.storage.v2024_01_01.models.LegalHold
653
+ :type legal_hold: ~azure.mgmt.storage.models.LegalHold
670
654
  :keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
671
655
  Default value is "application/json".
672
656
  :paramtype content_type: str
673
657
  :return: LegalHold or the result of cls(response)
674
- :rtype: ~azure.mgmt.storage.v2024_01_01.models.LegalHold
658
+ :rtype: ~azure.mgmt.storage.models.LegalHold
675
659
  :raises ~azure.core.exceptions.HttpResponseError:
676
660
  """
677
661
 
@@ -708,7 +692,7 @@ class BlobContainersOperations:
708
692
  Default value is "application/json".
709
693
  :paramtype content_type: str
710
694
  :return: LegalHold or the result of cls(response)
711
- :rtype: ~azure.mgmt.storage.v2024_01_01.models.LegalHold
695
+ :rtype: ~azure.mgmt.storage.models.LegalHold
712
696
  :raises ~azure.core.exceptions.HttpResponseError:
713
697
  """
714
698
 
@@ -739,9 +723,9 @@ class BlobContainersOperations:
739
723
  :type container_name: str
740
724
  :param legal_hold: The LegalHold property that will be set to a blob container. Is either a
741
725
  LegalHold type or a IO[bytes] type. Required.
742
- :type legal_hold: ~azure.mgmt.storage.v2024_01_01.models.LegalHold or IO[bytes]
726
+ :type legal_hold: ~azure.mgmt.storage.models.LegalHold or IO[bytes]
743
727
  :return: LegalHold or the result of cls(response)
744
- :rtype: ~azure.mgmt.storage.v2024_01_01.models.LegalHold
728
+ :rtype: ~azure.mgmt.storage.models.LegalHold
745
729
  :raises ~azure.core.exceptions.HttpResponseError:
746
730
  """
747
731
  error_map: MutableMapping = {
@@ -755,7 +739,7 @@ class BlobContainersOperations:
755
739
  _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
756
740
  _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
757
741
 
758
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-01-01"))
742
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
759
743
  content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
760
744
  cls: ClsType[_models.LegalHold] = kwargs.pop("cls", None)
761
745
 
@@ -826,12 +810,12 @@ class BlobContainersOperations:
826
810
  by a letter or number. Required.
827
811
  :type container_name: str
828
812
  :param legal_hold: The LegalHold property that will be clear from a blob container. Required.
829
- :type legal_hold: ~azure.mgmt.storage.v2024_01_01.models.LegalHold
813
+ :type legal_hold: ~azure.mgmt.storage.models.LegalHold
830
814
  :keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
831
815
  Default value is "application/json".
832
816
  :paramtype content_type: str
833
817
  :return: LegalHold or the result of cls(response)
834
- :rtype: ~azure.mgmt.storage.v2024_01_01.models.LegalHold
818
+ :rtype: ~azure.mgmt.storage.models.LegalHold
835
819
  :raises ~azure.core.exceptions.HttpResponseError:
836
820
  """
837
821
 
@@ -867,7 +851,7 @@ class BlobContainersOperations:
867
851
  Default value is "application/json".
868
852
  :paramtype content_type: str
869
853
  :return: LegalHold or the result of cls(response)
870
- :rtype: ~azure.mgmt.storage.v2024_01_01.models.LegalHold
854
+ :rtype: ~azure.mgmt.storage.models.LegalHold
871
855
  :raises ~azure.core.exceptions.HttpResponseError:
872
856
  """
873
857
 
@@ -897,9 +881,9 @@ class BlobContainersOperations:
897
881
  :type container_name: str
898
882
  :param legal_hold: The LegalHold property that will be clear from a blob container. Is either a
899
883
  LegalHold type or a IO[bytes] type. Required.
900
- :type legal_hold: ~azure.mgmt.storage.v2024_01_01.models.LegalHold or IO[bytes]
884
+ :type legal_hold: ~azure.mgmt.storage.models.LegalHold or IO[bytes]
901
885
  :return: LegalHold or the result of cls(response)
902
- :rtype: ~azure.mgmt.storage.v2024_01_01.models.LegalHold
886
+ :rtype: ~azure.mgmt.storage.models.LegalHold
903
887
  :raises ~azure.core.exceptions.HttpResponseError:
904
888
  """
905
889
  error_map: MutableMapping = {
@@ -913,7 +897,7 @@ class BlobContainersOperations:
913
897
  _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
914
898
  _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
915
899
 
916
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-01-01"))
900
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
917
901
  content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
918
902
  cls: ClsType[_models.LegalHold] = kwargs.pop("cls", None)
919
903
 
@@ -990,12 +974,12 @@ class BlobContainersOperations:
990
974
  :type if_match: str
991
975
  :param parameters: The ImmutabilityPolicy Properties that will be created or updated to a blob
992
976
  container. Default value is None.
993
- :type parameters: ~azure.mgmt.storage.v2024_01_01.models.ImmutabilityPolicy
977
+ :type parameters: ~azure.mgmt.storage.models.ImmutabilityPolicy
994
978
  :keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
995
979
  Default value is "application/json".
996
980
  :paramtype content_type: str
997
981
  :return: ImmutabilityPolicy or the result of cls(response)
998
- :rtype: ~azure.mgmt.storage.v2024_01_01.models.ImmutabilityPolicy
982
+ :rtype: ~azure.mgmt.storage.models.ImmutabilityPolicy
999
983
  :raises ~azure.core.exceptions.HttpResponseError:
1000
984
  """
1001
985
 
@@ -1037,7 +1021,7 @@ class BlobContainersOperations:
1037
1021
  Default value is "application/json".
1038
1022
  :paramtype content_type: str
1039
1023
  :return: ImmutabilityPolicy or the result of cls(response)
1040
- :rtype: ~azure.mgmt.storage.v2024_01_01.models.ImmutabilityPolicy
1024
+ :rtype: ~azure.mgmt.storage.models.ImmutabilityPolicy
1041
1025
  :raises ~azure.core.exceptions.HttpResponseError:
1042
1026
  """
1043
1027
 
@@ -1072,9 +1056,9 @@ class BlobContainersOperations:
1072
1056
  :type if_match: str
1073
1057
  :param parameters: The ImmutabilityPolicy Properties that will be created or updated to a blob
1074
1058
  container. Is either a ImmutabilityPolicy type or a IO[bytes] type. Default value is None.
1075
- :type parameters: ~azure.mgmt.storage.v2024_01_01.models.ImmutabilityPolicy or IO[bytes]
1059
+ :type parameters: ~azure.mgmt.storage.models.ImmutabilityPolicy or IO[bytes]
1076
1060
  :return: ImmutabilityPolicy or the result of cls(response)
1077
- :rtype: ~azure.mgmt.storage.v2024_01_01.models.ImmutabilityPolicy
1061
+ :rtype: ~azure.mgmt.storage.models.ImmutabilityPolicy
1078
1062
  :raises ~azure.core.exceptions.HttpResponseError:
1079
1063
  """
1080
1064
  error_map: MutableMapping = {
@@ -1089,7 +1073,7 @@ class BlobContainersOperations:
1089
1073
  _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
1090
1074
 
1091
1075
  immutability_policy_name: Literal["default"] = kwargs.pop("immutability_policy_name", "default")
1092
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-01-01"))
1076
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
1093
1077
  content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
1094
1078
  cls: ClsType[_models.ImmutabilityPolicy] = kwargs.pop("cls", None)
1095
1079
 
@@ -1170,7 +1154,7 @@ class BlobContainersOperations:
1170
1154
  trailing double quotes as returned by the service. Default value is None.
1171
1155
  :type if_match: str
1172
1156
  :return: ImmutabilityPolicy or the result of cls(response)
1173
- :rtype: ~azure.mgmt.storage.v2024_01_01.models.ImmutabilityPolicy
1157
+ :rtype: ~azure.mgmt.storage.models.ImmutabilityPolicy
1174
1158
  :raises ~azure.core.exceptions.HttpResponseError:
1175
1159
  """
1176
1160
  error_map: MutableMapping = {
@@ -1185,7 +1169,7 @@ class BlobContainersOperations:
1185
1169
  _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
1186
1170
 
1187
1171
  immutability_policy_name: Literal["default"] = kwargs.pop("immutability_policy_name", "default")
1188
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-01-01"))
1172
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
1189
1173
  cls: ClsType[_models.ImmutabilityPolicy] = kwargs.pop("cls", None)
1190
1174
 
1191
1175
  _request = build_get_immutability_policy_request(
@@ -1248,7 +1232,7 @@ class BlobContainersOperations:
1248
1232
  trailing double quotes as returned by the service. Required.
1249
1233
  :type if_match: str
1250
1234
  :return: ImmutabilityPolicy or the result of cls(response)
1251
- :rtype: ~azure.mgmt.storage.v2024_01_01.models.ImmutabilityPolicy
1235
+ :rtype: ~azure.mgmt.storage.models.ImmutabilityPolicy
1252
1236
  :raises ~azure.core.exceptions.HttpResponseError:
1253
1237
  """
1254
1238
  error_map: MutableMapping = {
@@ -1263,7 +1247,7 @@ class BlobContainersOperations:
1263
1247
  _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
1264
1248
 
1265
1249
  immutability_policy_name: Literal["default"] = kwargs.pop("immutability_policy_name", "default")
1266
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-01-01"))
1250
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
1267
1251
  cls: ClsType[_models.ImmutabilityPolicy] = kwargs.pop("cls", None)
1268
1252
 
1269
1253
  _request = build_delete_immutability_policy_request(
@@ -1324,7 +1308,7 @@ class BlobContainersOperations:
1324
1308
  trailing double quotes as returned by the service. Required.
1325
1309
  :type if_match: str
1326
1310
  :return: ImmutabilityPolicy or the result of cls(response)
1327
- :rtype: ~azure.mgmt.storage.v2024_01_01.models.ImmutabilityPolicy
1311
+ :rtype: ~azure.mgmt.storage.models.ImmutabilityPolicy
1328
1312
  :raises ~azure.core.exceptions.HttpResponseError:
1329
1313
  """
1330
1314
  error_map: MutableMapping = {
@@ -1338,7 +1322,7 @@ class BlobContainersOperations:
1338
1322
  _headers = kwargs.pop("headers", {}) or {}
1339
1323
  _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
1340
1324
 
1341
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-01-01"))
1325
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
1342
1326
  cls: ClsType[_models.ImmutabilityPolicy] = kwargs.pop("cls", None)
1343
1327
 
1344
1328
  _request = build_lock_immutability_policy_request(
@@ -1408,12 +1392,12 @@ class BlobContainersOperations:
1408
1392
  :type if_match: str
1409
1393
  :param parameters: The ImmutabilityPolicy Properties that will be extended for a blob
1410
1394
  container. Default value is None.
1411
- :type parameters: ~azure.mgmt.storage.v2024_01_01.models.ImmutabilityPolicy
1395
+ :type parameters: ~azure.mgmt.storage.models.ImmutabilityPolicy
1412
1396
  :keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
1413
1397
  Default value is "application/json".
1414
1398
  :paramtype content_type: str
1415
1399
  :return: ImmutabilityPolicy or the result of cls(response)
1416
- :rtype: ~azure.mgmt.storage.v2024_01_01.models.ImmutabilityPolicy
1400
+ :rtype: ~azure.mgmt.storage.models.ImmutabilityPolicy
1417
1401
  :raises ~azure.core.exceptions.HttpResponseError:
1418
1402
  """
1419
1403
 
@@ -1456,7 +1440,7 @@ class BlobContainersOperations:
1456
1440
  Default value is "application/json".
1457
1441
  :paramtype content_type: str
1458
1442
  :return: ImmutabilityPolicy or the result of cls(response)
1459
- :rtype: ~azure.mgmt.storage.v2024_01_01.models.ImmutabilityPolicy
1443
+ :rtype: ~azure.mgmt.storage.models.ImmutabilityPolicy
1460
1444
  :raises ~azure.core.exceptions.HttpResponseError:
1461
1445
  """
1462
1446
 
@@ -1492,9 +1476,9 @@ class BlobContainersOperations:
1492
1476
  :type if_match: str
1493
1477
  :param parameters: The ImmutabilityPolicy Properties that will be extended for a blob
1494
1478
  container. Is either a ImmutabilityPolicy type or a IO[bytes] type. Default value is None.
1495
- :type parameters: ~azure.mgmt.storage.v2024_01_01.models.ImmutabilityPolicy or IO[bytes]
1479
+ :type parameters: ~azure.mgmt.storage.models.ImmutabilityPolicy or IO[bytes]
1496
1480
  :return: ImmutabilityPolicy or the result of cls(response)
1497
- :rtype: ~azure.mgmt.storage.v2024_01_01.models.ImmutabilityPolicy
1481
+ :rtype: ~azure.mgmt.storage.models.ImmutabilityPolicy
1498
1482
  :raises ~azure.core.exceptions.HttpResponseError:
1499
1483
  """
1500
1484
  error_map: MutableMapping = {
@@ -1508,7 +1492,7 @@ class BlobContainersOperations:
1508
1492
  _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
1509
1493
  _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
1510
1494
 
1511
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-01-01"))
1495
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
1512
1496
  content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
1513
1497
  cls: ClsType[_models.ImmutabilityPolicy] = kwargs.pop("cls", None)
1514
1498
 
@@ -1586,12 +1570,12 @@ class BlobContainersOperations:
1586
1570
  by a letter or number. Required.
1587
1571
  :type container_name: str
1588
1572
  :param parameters: Lease Container request body. Default value is None.
1589
- :type parameters: ~azure.mgmt.storage.v2024_01_01.models.LeaseContainerRequest
1573
+ :type parameters: ~azure.mgmt.storage.models.LeaseContainerRequest
1590
1574
  :keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
1591
1575
  Default value is "application/json".
1592
1576
  :paramtype content_type: str
1593
1577
  :return: LeaseContainerResponse or the result of cls(response)
1594
- :rtype: ~azure.mgmt.storage.v2024_01_01.models.LeaseContainerResponse
1578
+ :rtype: ~azure.mgmt.storage.models.LeaseContainerResponse
1595
1579
  :raises ~azure.core.exceptions.HttpResponseError:
1596
1580
  """
1597
1581
 
@@ -1627,7 +1611,7 @@ class BlobContainersOperations:
1627
1611
  Default value is "application/json".
1628
1612
  :paramtype content_type: str
1629
1613
  :return: LeaseContainerResponse or the result of cls(response)
1630
- :rtype: ~azure.mgmt.storage.v2024_01_01.models.LeaseContainerResponse
1614
+ :rtype: ~azure.mgmt.storage.models.LeaseContainerResponse
1631
1615
  :raises ~azure.core.exceptions.HttpResponseError:
1632
1616
  """
1633
1617
 
@@ -1657,9 +1641,9 @@ class BlobContainersOperations:
1657
1641
  :type container_name: str
1658
1642
  :param parameters: Lease Container request body. Is either a LeaseContainerRequest type or a
1659
1643
  IO[bytes] type. Default value is None.
1660
- :type parameters: ~azure.mgmt.storage.v2024_01_01.models.LeaseContainerRequest or IO[bytes]
1644
+ :type parameters: ~azure.mgmt.storage.models.LeaseContainerRequest or IO[bytes]
1661
1645
  :return: LeaseContainerResponse or the result of cls(response)
1662
- :rtype: ~azure.mgmt.storage.v2024_01_01.models.LeaseContainerResponse
1646
+ :rtype: ~azure.mgmt.storage.models.LeaseContainerResponse
1663
1647
  :raises ~azure.core.exceptions.HttpResponseError:
1664
1648
  """
1665
1649
  error_map: MutableMapping = {
@@ -1673,7 +1657,7 @@ class BlobContainersOperations:
1673
1657
  _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
1674
1658
  _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
1675
1659
 
1676
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-01-01"))
1660
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
1677
1661
  content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
1678
1662
  cls: ClsType[_models.LeaseContainerResponse] = kwargs.pop("cls", None)
1679
1663
 
@@ -1734,7 +1718,7 @@ class BlobContainersOperations:
1734
1718
  _headers = kwargs.pop("headers", {}) or {}
1735
1719
  _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
1736
1720
 
1737
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-01-01"))
1721
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
1738
1722
  cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None)
1739
1723
 
1740
1724
  _request = build_object_level_worm_request(
@@ -1799,7 +1783,7 @@ class BlobContainersOperations:
1799
1783
  _headers = kwargs.pop("headers", {}) or {}
1800
1784
  _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
1801
1785
 
1802
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-01-01"))
1786
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
1803
1787
  cls: ClsType[None] = kwargs.pop("cls", None)
1804
1788
  polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True)
1805
1789
  lro_delay = kwargs.pop("polling_interval", self._config.polling_interval)