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.
@@ -5,11 +6,12 @@
5
6
  # Code generated by Microsoft (R) AutoRest Code Generator.
6
7
  # Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
8
  # --------------------------------------------------------------------------
9
+ from collections.abc import MutableMapping
8
10
  from io import IOBase
9
- import sys
10
- from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, overload
11
+ from typing import Any, Callable, Dict, IO, Optional, TypeVar, Union, overload
11
12
  import urllib.parse
12
13
 
14
+ from azure.core import PipelineClient
13
15
  from azure.core.exceptions import (
14
16
  ClientAuthenticationError,
15
17
  HttpResponseError,
@@ -26,12 +28,9 @@ from azure.core.utils import case_insensitive_dict
26
28
  from azure.mgmt.core.exceptions import ARMErrorFormat
27
29
 
28
30
  from .. import models as _models
29
- from ..._serialization import Serializer
31
+ from .._configuration import StorageManagementClientConfiguration
32
+ from .._utils.serialization import Deserializer, Serializer
30
33
 
31
- if sys.version_info >= (3, 9):
32
- from collections.abc import MutableMapping
33
- else:
34
- from typing import MutableMapping # type: ignore
35
34
  T = TypeVar("T")
36
35
  ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]]
37
36
 
@@ -56,7 +55,7 @@ def build_get_request(
56
55
  _url = kwargs.pop(
57
56
  "template_url",
58
57
  "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/inventoryPolicies/{blobInventoryPolicyName}",
59
- ) # pylint: disable=line-too-long
58
+ )
60
59
  path_format_arguments = {
61
60
  "resourceGroupName": _SERIALIZER.url(
62
61
  "resource_group_name", resource_group_name, "str", max_length=90, min_length=1, pattern=r"^[-\w\._\(\)]+$"
@@ -97,7 +96,7 @@ def build_create_or_update_request(
97
96
  _url = kwargs.pop(
98
97
  "template_url",
99
98
  "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/inventoryPolicies/{blobInventoryPolicyName}",
100
- ) # pylint: disable=line-too-long
99
+ )
101
100
  path_format_arguments = {
102
101
  "resourceGroupName": _SERIALIZER.url(
103
102
  "resource_group_name", resource_group_name, "str", max_length=90, min_length=1, pattern=r"^[-\w\._\(\)]+$"
@@ -139,7 +138,7 @@ def build_delete_request(
139
138
  _url = kwargs.pop(
140
139
  "template_url",
141
140
  "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/inventoryPolicies/{blobInventoryPolicyName}",
142
- ) # pylint: disable=line-too-long
141
+ )
143
142
  path_format_arguments = {
144
143
  "resourceGroupName": _SERIALIZER.url(
145
144
  "resource_group_name", resource_group_name, "str", max_length=90, min_length=1, pattern=r"^[-\w\._\(\)]+$"
@@ -173,7 +172,7 @@ def build_list_request(resource_group_name: str, account_name: str, subscription
173
172
  _url = kwargs.pop(
174
173
  "template_url",
175
174
  "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/inventoryPolicies",
176
- ) # pylint: disable=line-too-long
175
+ )
177
176
  path_format_arguments = {
178
177
  "resourceGroupName": _SERIALIZER.url(
179
178
  "resource_group_name", resource_group_name, "str", max_length=90, min_length=1, pattern=r"^[-\w\._\(\)]+$"
@@ -201,19 +200,18 @@ class BlobInventoryPoliciesOperations:
201
200
  **DO NOT** instantiate this class directly.
202
201
 
203
202
  Instead, you should access the following operations through
204
- :class:`~azure.mgmt.storage.v2024_01_01.StorageManagementClient`'s
203
+ :class:`~azure.mgmt.storage.StorageManagementClient`'s
205
204
  :attr:`blob_inventory_policies` attribute.
206
205
  """
207
206
 
208
207
  models = _models
209
208
 
210
- def __init__(self, *args, **kwargs):
209
+ def __init__(self, *args, **kwargs) -> None:
211
210
  input_args = list(args)
212
- self._client = input_args.pop(0) if input_args else kwargs.pop("client")
213
- self._config = input_args.pop(0) if input_args else kwargs.pop("config")
214
- self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer")
215
- self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer")
216
- self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version")
211
+ self._client: PipelineClient = input_args.pop(0) if input_args else kwargs.pop("client")
212
+ self._config: StorageManagementClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config")
213
+ self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer")
214
+ self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer")
217
215
 
218
216
  @distributed_trace
219
217
  def get(
@@ -234,10 +232,9 @@ class BlobInventoryPoliciesOperations:
234
232
  :type account_name: str
235
233
  :param blob_inventory_policy_name: The name of the storage account blob inventory policy. It
236
234
  should always be 'default'. "default" Required.
237
- :type blob_inventory_policy_name: str or
238
- ~azure.mgmt.storage.v2024_01_01.models.BlobInventoryPolicyName
235
+ :type blob_inventory_policy_name: str or ~azure.mgmt.storage.models.BlobInventoryPolicyName
239
236
  :return: BlobInventoryPolicy or the result of cls(response)
240
- :rtype: ~azure.mgmt.storage.v2024_01_01.models.BlobInventoryPolicy
237
+ :rtype: ~azure.mgmt.storage.models.BlobInventoryPolicy
241
238
  :raises ~azure.core.exceptions.HttpResponseError:
242
239
  """
243
240
  error_map: MutableMapping = {
@@ -251,7 +248,7 @@ class BlobInventoryPoliciesOperations:
251
248
  _headers = kwargs.pop("headers", {}) or {}
252
249
  _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
253
250
 
254
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-01-01"))
251
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
255
252
  cls: ClsType[_models.BlobInventoryPolicy] = kwargs.pop("cls", None)
256
253
 
257
254
  _request = build_get_request(
@@ -305,15 +302,14 @@ class BlobInventoryPoliciesOperations:
305
302
  :type account_name: str
306
303
  :param blob_inventory_policy_name: The name of the storage account blob inventory policy. It
307
304
  should always be 'default'. "default" Required.
308
- :type blob_inventory_policy_name: str or
309
- ~azure.mgmt.storage.v2024_01_01.models.BlobInventoryPolicyName
305
+ :type blob_inventory_policy_name: str or ~azure.mgmt.storage.models.BlobInventoryPolicyName
310
306
  :param properties: The blob inventory policy set to a storage account. Required.
311
- :type properties: ~azure.mgmt.storage.v2024_01_01.models.BlobInventoryPolicy
307
+ :type properties: ~azure.mgmt.storage.models.BlobInventoryPolicy
312
308
  :keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
313
309
  Default value is "application/json".
314
310
  :paramtype content_type: str
315
311
  :return: BlobInventoryPolicy or the result of cls(response)
316
- :rtype: ~azure.mgmt.storage.v2024_01_01.models.BlobInventoryPolicy
312
+ :rtype: ~azure.mgmt.storage.models.BlobInventoryPolicy
317
313
  :raises ~azure.core.exceptions.HttpResponseError:
318
314
  """
319
315
 
@@ -339,15 +335,14 @@ class BlobInventoryPoliciesOperations:
339
335
  :type account_name: str
340
336
  :param blob_inventory_policy_name: The name of the storage account blob inventory policy. It
341
337
  should always be 'default'. "default" Required.
342
- :type blob_inventory_policy_name: str or
343
- ~azure.mgmt.storage.v2024_01_01.models.BlobInventoryPolicyName
338
+ :type blob_inventory_policy_name: str or ~azure.mgmt.storage.models.BlobInventoryPolicyName
344
339
  :param properties: The blob inventory policy set to a storage account. Required.
345
340
  :type properties: IO[bytes]
346
341
  :keyword content_type: Body Parameter content-type. Content type parameter for binary body.
347
342
  Default value is "application/json".
348
343
  :paramtype content_type: str
349
344
  :return: BlobInventoryPolicy or the result of cls(response)
350
- :rtype: ~azure.mgmt.storage.v2024_01_01.models.BlobInventoryPolicy
345
+ :rtype: ~azure.mgmt.storage.models.BlobInventoryPolicy
351
346
  :raises ~azure.core.exceptions.HttpResponseError:
352
347
  """
353
348
 
@@ -371,13 +366,12 @@ class BlobInventoryPoliciesOperations:
371
366
  :type account_name: str
372
367
  :param blob_inventory_policy_name: The name of the storage account blob inventory policy. It
373
368
  should always be 'default'. "default" Required.
374
- :type blob_inventory_policy_name: str or
375
- ~azure.mgmt.storage.v2024_01_01.models.BlobInventoryPolicyName
369
+ :type blob_inventory_policy_name: str or ~azure.mgmt.storage.models.BlobInventoryPolicyName
376
370
  :param properties: The blob inventory policy set to a storage account. Is either a
377
371
  BlobInventoryPolicy type or a IO[bytes] type. Required.
378
- :type properties: ~azure.mgmt.storage.v2024_01_01.models.BlobInventoryPolicy or IO[bytes]
372
+ :type properties: ~azure.mgmt.storage.models.BlobInventoryPolicy or IO[bytes]
379
373
  :return: BlobInventoryPolicy or the result of cls(response)
380
- :rtype: ~azure.mgmt.storage.v2024_01_01.models.BlobInventoryPolicy
374
+ :rtype: ~azure.mgmt.storage.models.BlobInventoryPolicy
381
375
  :raises ~azure.core.exceptions.HttpResponseError:
382
376
  """
383
377
  error_map: MutableMapping = {
@@ -391,7 +385,7 @@ class BlobInventoryPoliciesOperations:
391
385
  _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
392
386
  _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
393
387
 
394
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-01-01"))
388
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
395
389
  content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
396
390
  cls: ClsType[_models.BlobInventoryPolicy] = kwargs.pop("cls", None)
397
391
 
@@ -454,8 +448,7 @@ class BlobInventoryPoliciesOperations:
454
448
  :type account_name: str
455
449
  :param blob_inventory_policy_name: The name of the storage account blob inventory policy. It
456
450
  should always be 'default'. "default" Required.
457
- :type blob_inventory_policy_name: str or
458
- ~azure.mgmt.storage.v2024_01_01.models.BlobInventoryPolicyName
451
+ :type blob_inventory_policy_name: str or ~azure.mgmt.storage.models.BlobInventoryPolicyName
459
452
  :return: None or the result of cls(response)
460
453
  :rtype: None
461
454
  :raises ~azure.core.exceptions.HttpResponseError:
@@ -471,7 +464,7 @@ class BlobInventoryPoliciesOperations:
471
464
  _headers = kwargs.pop("headers", {}) or {}
472
465
  _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
473
466
 
474
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-01-01"))
467
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
475
468
  cls: ClsType[None] = kwargs.pop("cls", None)
476
469
 
477
470
  _request = build_delete_request(
@@ -502,7 +495,7 @@ class BlobInventoryPoliciesOperations:
502
495
  @distributed_trace
503
496
  def list(
504
497
  self, resource_group_name: str, account_name: str, **kwargs: Any
505
- ) -> Iterable["_models.BlobInventoryPolicy"]:
498
+ ) -> ItemPaged["_models.BlobInventoryPolicy"]:
506
499
  """Gets the blob inventory policy associated with the specified storage account.
507
500
 
508
501
  :param resource_group_name: The name of the resource group within the user's subscription. The
@@ -513,14 +506,13 @@ class BlobInventoryPoliciesOperations:
513
506
  lower-case letters only. Required.
514
507
  :type account_name: str
515
508
  :return: An iterator like instance of either BlobInventoryPolicy or the result of cls(response)
516
- :rtype:
517
- ~azure.core.paging.ItemPaged[~azure.mgmt.storage.v2024_01_01.models.BlobInventoryPolicy]
509
+ :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.storage.models.BlobInventoryPolicy]
518
510
  :raises ~azure.core.exceptions.HttpResponseError:
519
511
  """
520
512
  _headers = kwargs.pop("headers", {}) or {}
521
513
  _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
522
514
 
523
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-01-01"))
515
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
524
516
  cls: ClsType[_models.ListBlobInventoryPolicy] = kwargs.pop("cls", None)
525
517
 
526
518
  error_map: MutableMapping = {
@@ -553,7 +545,7 @@ class BlobInventoryPoliciesOperations:
553
545
  for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items()
554
546
  }
555
547
  )
556
- _next_request_params["api-version"] = self._api_version
548
+ _next_request_params["api-version"] = self._config.api_version
557
549
  _request = HttpRequest(
558
550
  "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params
559
551
  )
@@ -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.
@@ -5,11 +6,12 @@
5
6
  # Code generated by Microsoft (R) AutoRest Code Generator.
6
7
  # Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
8
  # --------------------------------------------------------------------------
9
+ from collections.abc import MutableMapping
8
10
  from io import IOBase
9
- import sys
10
- from typing import Any, Callable, Dict, IO, Iterable, Literal, Optional, TypeVar, Union, overload
11
+ from typing import Any, Callable, Dict, IO, Literal, Optional, TypeVar, Union, overload
11
12
  import urllib.parse
12
13
 
14
+ from azure.core import PipelineClient
13
15
  from azure.core.exceptions import (
14
16
  ClientAuthenticationError,
15
17
  HttpResponseError,
@@ -26,12 +28,9 @@ from azure.core.utils import case_insensitive_dict
26
28
  from azure.mgmt.core.exceptions import ARMErrorFormat
27
29
 
28
30
  from .. import models as _models
29
- from ..._serialization import Serializer
31
+ from .._configuration import StorageManagementClientConfiguration
32
+ from .._utils.serialization import Deserializer, Serializer
30
33
 
31
- if sys.version_info >= (3, 9):
32
- from collections.abc import MutableMapping
33
- else:
34
- from typing import MutableMapping # type: ignore
35
34
  T = TypeVar("T")
36
35
  ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]]
37
36
 
@@ -50,7 +49,7 @@ def build_list_request(resource_group_name: str, account_name: str, subscription
50
49
  _url = kwargs.pop(
51
50
  "template_url",
52
51
  "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices",
53
- ) # pylint: disable=line-too-long
52
+ )
54
53
  path_format_arguments = {
55
54
  "resourceGroupName": _SERIALIZER.url(
56
55
  "resource_group_name", resource_group_name, "str", max_length=90, min_length=1, pattern=r"^[-\w\._\(\)]+$"
@@ -87,7 +86,7 @@ def build_set_service_properties_request(
87
86
  _url = kwargs.pop(
88
87
  "template_url",
89
88
  "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/{BlobServicesName}",
90
- ) # pylint: disable=line-too-long
89
+ )
91
90
  path_format_arguments = {
92
91
  "resourceGroupName": _SERIALIZER.url(
93
92
  "resource_group_name", resource_group_name, "str", max_length=90, min_length=1, pattern=r"^[-\w\._\(\)]+$"
@@ -126,7 +125,7 @@ def build_get_service_properties_request(
126
125
  _url = kwargs.pop(
127
126
  "template_url",
128
127
  "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/{BlobServicesName}",
129
- ) # pylint: disable=line-too-long
128
+ )
130
129
  path_format_arguments = {
131
130
  "resourceGroupName": _SERIALIZER.url(
132
131
  "resource_group_name", resource_group_name, "str", max_length=90, min_length=1, pattern=r"^[-\w\._\(\)]+$"
@@ -155,24 +154,23 @@ class BlobServicesOperations:
155
154
  **DO NOT** instantiate this class directly.
156
155
 
157
156
  Instead, you should access the following operations through
158
- :class:`~azure.mgmt.storage.v2024_01_01.StorageManagementClient`'s
157
+ :class:`~azure.mgmt.storage.StorageManagementClient`'s
159
158
  :attr:`blob_services` attribute.
160
159
  """
161
160
 
162
161
  models = _models
163
162
 
164
- def __init__(self, *args, **kwargs):
163
+ def __init__(self, *args, **kwargs) -> None:
165
164
  input_args = list(args)
166
- self._client = input_args.pop(0) if input_args else kwargs.pop("client")
167
- self._config = input_args.pop(0) if input_args else kwargs.pop("config")
168
- self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer")
169
- self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer")
170
- self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version")
165
+ self._client: PipelineClient = input_args.pop(0) if input_args else kwargs.pop("client")
166
+ self._config: StorageManagementClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config")
167
+ self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer")
168
+ self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer")
171
169
 
172
170
  @distributed_trace
173
171
  def list(
174
172
  self, resource_group_name: str, account_name: str, **kwargs: Any
175
- ) -> Iterable["_models.BlobServiceProperties"]:
173
+ ) -> ItemPaged["_models.BlobServiceProperties"]:
176
174
  """List blob services of storage account. It returns a collection of one object named default.
177
175
 
178
176
  :param resource_group_name: The name of the resource group within the user's subscription. The
@@ -184,14 +182,13 @@ class BlobServicesOperations:
184
182
  :type account_name: str
185
183
  :return: An iterator like instance of either BlobServiceProperties or the result of
186
184
  cls(response)
187
- :rtype:
188
- ~azure.core.paging.ItemPaged[~azure.mgmt.storage.v2024_01_01.models.BlobServiceProperties]
185
+ :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.storage.models.BlobServiceProperties]
189
186
  :raises ~azure.core.exceptions.HttpResponseError:
190
187
  """
191
188
  _headers = kwargs.pop("headers", {}) or {}
192
189
  _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
193
190
 
194
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-01-01"))
191
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
195
192
  cls: ClsType[_models.BlobServiceItems] = kwargs.pop("cls", None)
196
193
 
197
194
  error_map: MutableMapping = {
@@ -224,7 +221,7 @@ class BlobServicesOperations:
224
221
  for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items()
225
222
  }
226
223
  )
227
- _next_request_params["api-version"] = self._api_version
224
+ _next_request_params["api-version"] = self._config.api_version
228
225
  _request = HttpRequest(
229
226
  "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params
230
227
  )
@@ -278,12 +275,12 @@ class BlobServicesOperations:
278
275
  :type account_name: str
279
276
  :param parameters: The properties of a storage account’s Blob service, including properties for
280
277
  Storage Analytics and CORS (Cross-Origin Resource Sharing) rules. Required.
281
- :type parameters: ~azure.mgmt.storage.v2024_01_01.models.BlobServiceProperties
278
+ :type parameters: ~azure.mgmt.storage.models.BlobServiceProperties
282
279
  :keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
283
280
  Default value is "application/json".
284
281
  :paramtype content_type: str
285
282
  :return: BlobServiceProperties or the result of cls(response)
286
- :rtype: ~azure.mgmt.storage.v2024_01_01.models.BlobServiceProperties
283
+ :rtype: ~azure.mgmt.storage.models.BlobServiceProperties
287
284
  :raises ~azure.core.exceptions.HttpResponseError:
288
285
  """
289
286
 
@@ -314,7 +311,7 @@ class BlobServicesOperations:
314
311
  Default value is "application/json".
315
312
  :paramtype content_type: str
316
313
  :return: BlobServiceProperties or the result of cls(response)
317
- :rtype: ~azure.mgmt.storage.v2024_01_01.models.BlobServiceProperties
314
+ :rtype: ~azure.mgmt.storage.models.BlobServiceProperties
318
315
  :raises ~azure.core.exceptions.HttpResponseError:
319
316
  """
320
317
 
@@ -339,9 +336,9 @@ class BlobServicesOperations:
339
336
  :param parameters: The properties of a storage account’s Blob service, including properties for
340
337
  Storage Analytics and CORS (Cross-Origin Resource Sharing) rules. Is either a
341
338
  BlobServiceProperties type or a IO[bytes] type. Required.
342
- :type parameters: ~azure.mgmt.storage.v2024_01_01.models.BlobServiceProperties or IO[bytes]
339
+ :type parameters: ~azure.mgmt.storage.models.BlobServiceProperties or IO[bytes]
343
340
  :return: BlobServiceProperties or the result of cls(response)
344
- :rtype: ~azure.mgmt.storage.v2024_01_01.models.BlobServiceProperties
341
+ :rtype: ~azure.mgmt.storage.models.BlobServiceProperties
345
342
  :raises ~azure.core.exceptions.HttpResponseError:
346
343
  """
347
344
  error_map: MutableMapping = {
@@ -355,7 +352,7 @@ class BlobServicesOperations:
355
352
  _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
356
353
  _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
357
354
 
358
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-01-01"))
355
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
359
356
  blob_services_name: Literal["default"] = kwargs.pop("blob_services_name", "default")
360
357
  content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
361
358
  cls: ClsType[_models.BlobServiceProperties] = kwargs.pop("cls", None)
@@ -415,7 +412,7 @@ class BlobServicesOperations:
415
412
  lower-case letters only. Required.
416
413
  :type account_name: str
417
414
  :return: BlobServiceProperties or the result of cls(response)
418
- :rtype: ~azure.mgmt.storage.v2024_01_01.models.BlobServiceProperties
415
+ :rtype: ~azure.mgmt.storage.models.BlobServiceProperties
419
416
  :raises ~azure.core.exceptions.HttpResponseError:
420
417
  """
421
418
  error_map: MutableMapping = {
@@ -429,7 +426,7 @@ class BlobServicesOperations:
429
426
  _headers = kwargs.pop("headers", {}) or {}
430
427
  _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
431
428
 
432
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-01-01"))
429
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
433
430
  blob_services_name: Literal["default"] = kwargs.pop("blob_services_name", "default")
434
431
  cls: ClsType[_models.BlobServiceProperties] = kwargs.pop("cls", None)
435
432
 
@@ -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.
@@ -5,10 +6,11 @@
5
6
  # Code generated by Microsoft (R) AutoRest Code Generator.
6
7
  # Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
8
  # --------------------------------------------------------------------------
8
- import sys
9
- from typing import Any, Callable, Dict, Iterable, Optional, TypeVar
9
+ from collections.abc import MutableMapping
10
+ from typing import Any, Callable, Dict, Optional, TypeVar
10
11
  import urllib.parse
11
12
 
13
+ from azure.core import PipelineClient
12
14
  from azure.core.exceptions import (
13
15
  ClientAuthenticationError,
14
16
  HttpResponseError,
@@ -25,12 +27,9 @@ from azure.core.utils import case_insensitive_dict
25
27
  from azure.mgmt.core.exceptions import ARMErrorFormat
26
28
 
27
29
  from .. import models as _models
28
- from ..._serialization import Serializer
30
+ from .._configuration import StorageManagementClientConfiguration
31
+ from .._utils.serialization import Deserializer, Serializer
29
32
 
30
- if sys.version_info >= (3, 9):
31
- from collections.abc import MutableMapping
32
- else:
33
- from typing import MutableMapping # type: ignore
34
33
  T = TypeVar("T")
35
34
  ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]]
36
35
 
@@ -73,7 +72,7 @@ def build_get_request(deleted_account_name: str, location: str, subscription_id:
73
72
  _url = kwargs.pop(
74
73
  "template_url",
75
74
  "/subscriptions/{subscriptionId}/providers/Microsoft.Storage/locations/{location}/deletedAccounts/{deletedAccountName}",
76
- ) # pylint: disable=line-too-long
75
+ )
77
76
  path_format_arguments = {
78
77
  "deletedAccountName": _SERIALIZER.url(
79
78
  "deleted_account_name", deleted_account_name, "str", max_length=24, min_length=3
@@ -99,32 +98,31 @@ class DeletedAccountsOperations:
99
98
  **DO NOT** instantiate this class directly.
100
99
 
101
100
  Instead, you should access the following operations through
102
- :class:`~azure.mgmt.storage.v2024_01_01.StorageManagementClient`'s
101
+ :class:`~azure.mgmt.storage.StorageManagementClient`'s
103
102
  :attr:`deleted_accounts` attribute.
104
103
  """
105
104
 
106
105
  models = _models
107
106
 
108
- def __init__(self, *args, **kwargs):
107
+ def __init__(self, *args, **kwargs) -> None:
109
108
  input_args = list(args)
110
- self._client = input_args.pop(0) if input_args else kwargs.pop("client")
111
- self._config = input_args.pop(0) if input_args else kwargs.pop("config")
112
- self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer")
113
- self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer")
114
- self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version")
109
+ self._client: PipelineClient = input_args.pop(0) if input_args else kwargs.pop("client")
110
+ self._config: StorageManagementClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config")
111
+ self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer")
112
+ self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer")
115
113
 
116
114
  @distributed_trace
117
- def list(self, **kwargs: Any) -> Iterable["_models.DeletedAccount"]:
115
+ def list(self, **kwargs: Any) -> ItemPaged["_models.DeletedAccount"]:
118
116
  """Lists deleted accounts under the subscription.
119
117
 
120
118
  :return: An iterator like instance of either DeletedAccount or the result of cls(response)
121
- :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.storage.v2024_01_01.models.DeletedAccount]
119
+ :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.storage.models.DeletedAccount]
122
120
  :raises ~azure.core.exceptions.HttpResponseError:
123
121
  """
124
122
  _headers = kwargs.pop("headers", {}) or {}
125
123
  _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
126
124
 
127
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-01-01"))
125
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
128
126
  cls: ClsType[_models.DeletedAccountListResult] = kwargs.pop("cls", None)
129
127
 
130
128
  error_map: MutableMapping = {
@@ -155,7 +153,7 @@ class DeletedAccountsOperations:
155
153
  for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items()
156
154
  }
157
155
  )
158
- _next_request_params["api-version"] = self._api_version
156
+ _next_request_params["api-version"] = self._config.api_version
159
157
  _request = HttpRequest(
160
158
  "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params
161
159
  )
@@ -197,7 +195,7 @@ class DeletedAccountsOperations:
197
195
  :param location: The location of the deleted storage account. Required.
198
196
  :type location: str
199
197
  :return: DeletedAccount or the result of cls(response)
200
- :rtype: ~azure.mgmt.storage.v2024_01_01.models.DeletedAccount
198
+ :rtype: ~azure.mgmt.storage.models.DeletedAccount
201
199
  :raises ~azure.core.exceptions.HttpResponseError:
202
200
  """
203
201
  error_map: MutableMapping = {
@@ -211,7 +209,7 @@ class DeletedAccountsOperations:
211
209
  _headers = kwargs.pop("headers", {}) or {}
212
210
  _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
213
211
 
214
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-01-01"))
212
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
215
213
  cls: ClsType[_models.DeletedAccount] = kwargs.pop("cls", None)
216
214
 
217
215
  _request = build_get_request(