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,4 +1,4 @@
1
- # pylint: disable=too-many-lines
1
+ # pylint: disable=line-too-long,useless-suppression,too-many-lines
2
2
  # coding=utf-8
3
3
  # --------------------------------------------------------------------------
4
4
  # Copyright (c) Microsoft Corporation. All rights reserved.
@@ -6,11 +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 Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, overload
11
+ from typing import Any, Callable, Dict, IO, Optional, TypeVar, Union, overload
12
12
  import urllib.parse
13
13
 
14
+ from azure.core import PipelineClient
14
15
  from azure.core.exceptions import (
15
16
  ClientAuthenticationError,
16
17
  HttpResponseError,
@@ -27,12 +28,9 @@ from azure.core.utils import case_insensitive_dict
27
28
  from azure.mgmt.core.exceptions import ARMErrorFormat
28
29
 
29
30
  from .. import models as _models
30
- from ..._serialization import Serializer
31
+ from .._configuration import StorageManagementClientConfiguration
32
+ from .._utils.serialization import Deserializer, Serializer
31
33
 
32
- if sys.version_info >= (3, 9):
33
- from collections.abc import MutableMapping
34
- else:
35
- from typing import MutableMapping # type: ignore
36
34
  T = TypeVar("T")
37
35
  ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]]
38
36
 
@@ -60,7 +58,7 @@ def build_list_request(
60
58
  _url = kwargs.pop(
61
59
  "template_url",
62
60
  "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/fileServices/default/shares",
63
- ) # pylint: disable=line-too-long
61
+ )
64
62
  path_format_arguments = {
65
63
  "resourceGroupName": _SERIALIZER.url(
66
64
  "resource_group_name", resource_group_name, "str", max_length=90, min_length=1, pattern=r"^[-\w\._\(\)]+$"
@@ -108,7 +106,7 @@ def build_create_request(
108
106
  _url = kwargs.pop(
109
107
  "template_url",
110
108
  "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/fileServices/default/shares/{shareName}",
111
- ) # pylint: disable=line-too-long
109
+ )
112
110
  path_format_arguments = {
113
111
  "resourceGroupName": _SERIALIZER.url(
114
112
  "resource_group_name", resource_group_name, "str", max_length=90, min_length=1, pattern=r"^[-\w\._\(\)]+$"
@@ -149,7 +147,7 @@ def build_update_request(
149
147
  _url = kwargs.pop(
150
148
  "template_url",
151
149
  "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/fileServices/default/shares/{shareName}",
152
- ) # pylint: disable=line-too-long
150
+ )
153
151
  path_format_arguments = {
154
152
  "resourceGroupName": _SERIALIZER.url(
155
153
  "resource_group_name", resource_group_name, "str", max_length=90, min_length=1, pattern=r"^[-\w\._\(\)]+$"
@@ -194,7 +192,7 @@ def build_get_request(
194
192
  _url = kwargs.pop(
195
193
  "template_url",
196
194
  "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/fileServices/default/shares/{shareName}",
197
- ) # pylint: disable=line-too-long
195
+ )
198
196
  path_format_arguments = {
199
197
  "resourceGroupName": _SERIALIZER.url(
200
198
  "resource_group_name", resource_group_name, "str", max_length=90, min_length=1, pattern=r"^[-\w\._\(\)]+$"
@@ -241,7 +239,7 @@ def build_delete_request(
241
239
  _url = kwargs.pop(
242
240
  "template_url",
243
241
  "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/fileServices/default/shares/{shareName}",
244
- ) # pylint: disable=line-too-long
242
+ )
245
243
  path_format_arguments = {
246
244
  "resourceGroupName": _SERIALIZER.url(
247
245
  "resource_group_name", resource_group_name, "str", max_length=90, min_length=1, pattern=r"^[-\w\._\(\)]+$"
@@ -282,7 +280,7 @@ def build_restore_request(
282
280
  _url = kwargs.pop(
283
281
  "template_url",
284
282
  "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/fileServices/default/shares/{shareName}/restore",
285
- ) # pylint: disable=line-too-long
283
+ )
286
284
  path_format_arguments = {
287
285
  "resourceGroupName": _SERIALIZER.url(
288
286
  "resource_group_name", resource_group_name, "str", max_length=90, min_length=1, pattern=r"^[-\w\._\(\)]+$"
@@ -327,7 +325,7 @@ def build_lease_request(
327
325
  _url = kwargs.pop(
328
326
  "template_url",
329
327
  "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/fileServices/default/shares/{shareName}/lease",
330
- ) # pylint: disable=line-too-long
328
+ )
331
329
  path_format_arguments = {
332
330
  "resourceGroupName": _SERIALIZER.url(
333
331
  "resource_group_name", resource_group_name, "str", max_length=90, min_length=1, pattern=r"^[-\w\._\(\)]+$"
@@ -360,19 +358,18 @@ class FileSharesOperations:
360
358
  **DO NOT** instantiate this class directly.
361
359
 
362
360
  Instead, you should access the following operations through
363
- :class:`~azure.mgmt.storage.v2024_01_01.StorageManagementClient`'s
361
+ :class:`~azure.mgmt.storage.StorageManagementClient`'s
364
362
  :attr:`file_shares` attribute.
365
363
  """
366
364
 
367
365
  models = _models
368
366
 
369
- def __init__(self, *args, **kwargs):
367
+ def __init__(self, *args, **kwargs) -> None:
370
368
  input_args = list(args)
371
- self._client = input_args.pop(0) if input_args else kwargs.pop("client")
372
- self._config = input_args.pop(0) if input_args else kwargs.pop("config")
373
- self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer")
374
- self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer")
375
- self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version")
369
+ self._client: PipelineClient = input_args.pop(0) if input_args else kwargs.pop("client")
370
+ self._config: StorageManagementClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config")
371
+ self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer")
372
+ self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer")
376
373
 
377
374
  @distributed_trace
378
375
  def list(
@@ -383,7 +380,7 @@ class FileSharesOperations:
383
380
  filter: Optional[str] = None,
384
381
  expand: Optional[str] = None,
385
382
  **kwargs: Any
386
- ) -> Iterable["_models.FileShareItem"]:
383
+ ) -> ItemPaged["_models.FileShareItem"]:
387
384
  """Lists all shares.
388
385
 
389
386
  :param resource_group_name: The name of the resource group within the user's subscription. The
@@ -404,13 +401,13 @@ class FileSharesOperations:
404
401
  None.
405
402
  :type expand: str
406
403
  :return: An iterator like instance of either FileShareItem or the result of cls(response)
407
- :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.storage.v2024_01_01.models.FileShareItem]
404
+ :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.storage.models.FileShareItem]
408
405
  :raises ~azure.core.exceptions.HttpResponseError:
409
406
  """
410
407
  _headers = kwargs.pop("headers", {}) or {}
411
408
  _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
412
409
 
413
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-01-01"))
410
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
414
411
  cls: ClsType[_models.FileShareItems] = kwargs.pop("cls", None)
415
412
 
416
413
  error_map: MutableMapping = {
@@ -446,7 +443,7 @@ class FileSharesOperations:
446
443
  for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items()
447
444
  }
448
445
  )
449
- _next_request_params["api-version"] = self._api_version
446
+ _next_request_params["api-version"] = self._config.api_version
450
447
  _request = HttpRequest(
451
448
  "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params
452
449
  )
@@ -507,7 +504,7 @@ class FileSharesOperations:
507
504
  or number. Required.
508
505
  :type share_name: str
509
506
  :param file_share: Properties of the file share to create. Required.
510
- :type file_share: ~azure.mgmt.storage.v2024_01_01.models.FileShare
507
+ :type file_share: ~azure.mgmt.storage.models.FileShare
511
508
  :param expand: Optional, used to expand the properties within share's properties. Valid values
512
509
  are: snapshots. Should be passed as a string with delimiter ','. Default value is None.
513
510
  :type expand: str
@@ -515,7 +512,7 @@ class FileSharesOperations:
515
512
  Default value is "application/json".
516
513
  :paramtype content_type: str
517
514
  :return: FileShare or the result of cls(response)
518
- :rtype: ~azure.mgmt.storage.v2024_01_01.models.FileShare
515
+ :rtype: ~azure.mgmt.storage.models.FileShare
519
516
  :raises ~azure.core.exceptions.HttpResponseError:
520
517
  """
521
518
 
@@ -556,7 +553,7 @@ class FileSharesOperations:
556
553
  Default value is "application/json".
557
554
  :paramtype content_type: str
558
555
  :return: FileShare or the result of cls(response)
559
- :rtype: ~azure.mgmt.storage.v2024_01_01.models.FileShare
556
+ :rtype: ~azure.mgmt.storage.models.FileShare
560
557
  :raises ~azure.core.exceptions.HttpResponseError:
561
558
  """
562
559
 
@@ -588,12 +585,12 @@ class FileSharesOperations:
588
585
  :type share_name: str
589
586
  :param file_share: Properties of the file share to create. Is either a FileShare type or a
590
587
  IO[bytes] type. Required.
591
- :type file_share: ~azure.mgmt.storage.v2024_01_01.models.FileShare or IO[bytes]
588
+ :type file_share: ~azure.mgmt.storage.models.FileShare or IO[bytes]
592
589
  :param expand: Optional, used to expand the properties within share's properties. Valid values
593
590
  are: snapshots. Should be passed as a string with delimiter ','. Default value is None.
594
591
  :type expand: str
595
592
  :return: FileShare or the result of cls(response)
596
- :rtype: ~azure.mgmt.storage.v2024_01_01.models.FileShare
593
+ :rtype: ~azure.mgmt.storage.models.FileShare
597
594
  :raises ~azure.core.exceptions.HttpResponseError:
598
595
  """
599
596
  error_map: MutableMapping = {
@@ -607,7 +604,7 @@ class FileSharesOperations:
607
604
  _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
608
605
  _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
609
606
 
610
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-01-01"))
607
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
611
608
  content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
612
609
  cls: ClsType[_models.FileShare] = kwargs.pop("cls", None)
613
610
 
@@ -679,12 +676,12 @@ class FileSharesOperations:
679
676
  or number. Required.
680
677
  :type share_name: str
681
678
  :param file_share: Properties to update for the file share. Required.
682
- :type file_share: ~azure.mgmt.storage.v2024_01_01.models.FileShare
679
+ :type file_share: ~azure.mgmt.storage.models.FileShare
683
680
  :keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
684
681
  Default value is "application/json".
685
682
  :paramtype content_type: str
686
683
  :return: FileShare or the result of cls(response)
687
- :rtype: ~azure.mgmt.storage.v2024_01_01.models.FileShare
684
+ :rtype: ~azure.mgmt.storage.models.FileShare
688
685
  :raises ~azure.core.exceptions.HttpResponseError:
689
686
  """
690
687
 
@@ -720,7 +717,7 @@ class FileSharesOperations:
720
717
  Default value is "application/json".
721
718
  :paramtype content_type: str
722
719
  :return: FileShare or the result of cls(response)
723
- :rtype: ~azure.mgmt.storage.v2024_01_01.models.FileShare
720
+ :rtype: ~azure.mgmt.storage.models.FileShare
724
721
  :raises ~azure.core.exceptions.HttpResponseError:
725
722
  """
726
723
 
@@ -750,9 +747,9 @@ class FileSharesOperations:
750
747
  :type share_name: str
751
748
  :param file_share: Properties to update for the file share. Is either a FileShare type or a
752
749
  IO[bytes] type. Required.
753
- :type file_share: ~azure.mgmt.storage.v2024_01_01.models.FileShare or IO[bytes]
750
+ :type file_share: ~azure.mgmt.storage.models.FileShare or IO[bytes]
754
751
  :return: FileShare or the result of cls(response)
755
- :rtype: ~azure.mgmt.storage.v2024_01_01.models.FileShare
752
+ :rtype: ~azure.mgmt.storage.models.FileShare
756
753
  :raises ~azure.core.exceptions.HttpResponseError:
757
754
  """
758
755
  error_map: MutableMapping = {
@@ -766,7 +763,7 @@ class FileSharesOperations:
766
763
  _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
767
764
  _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
768
765
 
769
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-01-01"))
766
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
770
767
  content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
771
768
  cls: ClsType[_models.FileShare] = kwargs.pop("cls", None)
772
769
 
@@ -841,7 +838,7 @@ class FileSharesOperations:
841
838
  None.
842
839
  :type x_ms_snapshot: str
843
840
  :return: FileShare or the result of cls(response)
844
- :rtype: ~azure.mgmt.storage.v2024_01_01.models.FileShare
841
+ :rtype: ~azure.mgmt.storage.models.FileShare
845
842
  :raises ~azure.core.exceptions.HttpResponseError:
846
843
  """
847
844
  error_map: MutableMapping = {
@@ -855,7 +852,7 @@ class FileSharesOperations:
855
852
  _headers = kwargs.pop("headers", {}) or {}
856
853
  _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
857
854
 
858
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-01-01"))
855
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
859
856
  cls: ClsType[_models.FileShare] = kwargs.pop("cls", None)
860
857
 
861
858
  _request = build_get_request(
@@ -938,7 +935,7 @@ class FileSharesOperations:
938
935
  _headers = kwargs.pop("headers", {}) or {}
939
936
  _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
940
937
 
941
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-01-01"))
938
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
942
939
  cls: ClsType[None] = kwargs.pop("cls", None)
943
940
 
944
941
  _request = build_delete_request(
@@ -994,7 +991,7 @@ class FileSharesOperations:
994
991
  or number. Required.
995
992
  :type share_name: str
996
993
  :param deleted_share: Required.
997
- :type deleted_share: ~azure.mgmt.storage.v2024_01_01.models.DeletedShare
994
+ :type deleted_share: ~azure.mgmt.storage.models.DeletedShare
998
995
  :keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
999
996
  Default value is "application/json".
1000
997
  :paramtype content_type: str
@@ -1062,7 +1059,7 @@ class FileSharesOperations:
1062
1059
  or number. Required.
1063
1060
  :type share_name: str
1064
1061
  :param deleted_share: Is either a DeletedShare type or a IO[bytes] type. Required.
1065
- :type deleted_share: ~azure.mgmt.storage.v2024_01_01.models.DeletedShare or IO[bytes]
1062
+ :type deleted_share: ~azure.mgmt.storage.models.DeletedShare or IO[bytes]
1066
1063
  :return: None or the result of cls(response)
1067
1064
  :rtype: None
1068
1065
  :raises ~azure.core.exceptions.HttpResponseError:
@@ -1078,7 +1075,7 @@ class FileSharesOperations:
1078
1075
  _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
1079
1076
  _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
1080
1077
 
1081
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-01-01"))
1078
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
1082
1079
  content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
1083
1080
  cls: ClsType[None] = kwargs.pop("cls", None)
1084
1081
 
@@ -1149,12 +1146,12 @@ class FileSharesOperations:
1149
1146
  None.
1150
1147
  :type x_ms_snapshot: str
1151
1148
  :param parameters: Lease Share request body. Default value is None.
1152
- :type parameters: ~azure.mgmt.storage.v2024_01_01.models.LeaseShareRequest
1149
+ :type parameters: ~azure.mgmt.storage.models.LeaseShareRequest
1153
1150
  :keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
1154
1151
  Default value is "application/json".
1155
1152
  :paramtype content_type: str
1156
1153
  :return: LeaseShareResponse or the result of cls(response)
1157
- :rtype: ~azure.mgmt.storage.v2024_01_01.models.LeaseShareResponse
1154
+ :rtype: ~azure.mgmt.storage.models.LeaseShareResponse
1158
1155
  :raises ~azure.core.exceptions.HttpResponseError:
1159
1156
  """
1160
1157
 
@@ -1194,7 +1191,7 @@ class FileSharesOperations:
1194
1191
  Default value is "application/json".
1195
1192
  :paramtype content_type: str
1196
1193
  :return: LeaseShareResponse or the result of cls(response)
1197
- :rtype: ~azure.mgmt.storage.v2024_01_01.models.LeaseShareResponse
1194
+ :rtype: ~azure.mgmt.storage.models.LeaseShareResponse
1198
1195
  :raises ~azure.core.exceptions.HttpResponseError:
1199
1196
  """
1200
1197
 
@@ -1228,9 +1225,9 @@ class FileSharesOperations:
1228
1225
  :type x_ms_snapshot: str
1229
1226
  :param parameters: Lease Share request body. Is either a LeaseShareRequest type or a IO[bytes]
1230
1227
  type. Default value is None.
1231
- :type parameters: ~azure.mgmt.storage.v2024_01_01.models.LeaseShareRequest or IO[bytes]
1228
+ :type parameters: ~azure.mgmt.storage.models.LeaseShareRequest or IO[bytes]
1232
1229
  :return: LeaseShareResponse or the result of cls(response)
1233
- :rtype: ~azure.mgmt.storage.v2024_01_01.models.LeaseShareResponse
1230
+ :rtype: ~azure.mgmt.storage.models.LeaseShareResponse
1234
1231
  :raises ~azure.core.exceptions.HttpResponseError:
1235
1232
  """
1236
1233
  error_map: MutableMapping = {
@@ -1244,7 +1241,7 @@ class FileSharesOperations:
1244
1241
  _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
1245
1242
  _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
1246
1243
 
1247
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-01-01"))
1244
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
1248
1245
  content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
1249
1246
  cls: ClsType[_models.LeaseShareResponse] = kwargs.pop("cls", None)
1250
1247
 
@@ -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
 
@@ -59,7 +58,7 @@ def build_list_request(
59
58
  _url = kwargs.pop(
60
59
  "template_url",
61
60
  "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/localUsers",
62
- ) # pylint: disable=line-too-long
61
+ )
63
62
  path_format_arguments = {
64
63
  "resourceGroupName": _SERIALIZER.url(
65
64
  "resource_group_name", resource_group_name, "str", max_length=90, min_length=1, pattern=r"^[-\w\._\(\)]+$"
@@ -100,7 +99,7 @@ def build_get_request(
100
99
  _url = kwargs.pop(
101
100
  "template_url",
102
101
  "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/localUsers/{username}",
103
- ) # pylint: disable=line-too-long
102
+ )
104
103
  path_format_arguments = {
105
104
  "resourceGroupName": _SERIALIZER.url(
106
105
  "resource_group_name", resource_group_name, "str", max_length=90, min_length=1, pattern=r"^[-\w\._\(\)]+$"
@@ -137,7 +136,7 @@ def build_create_or_update_request(
137
136
  _url = kwargs.pop(
138
137
  "template_url",
139
138
  "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/localUsers/{username}",
140
- ) # pylint: disable=line-too-long
139
+ )
141
140
  path_format_arguments = {
142
141
  "resourceGroupName": _SERIALIZER.url(
143
142
  "resource_group_name", resource_group_name, "str", max_length=90, min_length=1, pattern=r"^[-\w\._\(\)]+$"
@@ -175,7 +174,7 @@ def build_delete_request(
175
174
  _url = kwargs.pop(
176
175
  "template_url",
177
176
  "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/localUsers/{username}",
178
- ) # pylint: disable=line-too-long
177
+ )
179
178
  path_format_arguments = {
180
179
  "resourceGroupName": _SERIALIZER.url(
181
180
  "resource_group_name", resource_group_name, "str", max_length=90, min_length=1, pattern=r"^[-\w\._\(\)]+$"
@@ -211,7 +210,7 @@ def build_list_keys_request(
211
210
  _url = kwargs.pop(
212
211
  "template_url",
213
212
  "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/localUsers/{username}/listKeys",
214
- ) # pylint: disable=line-too-long
213
+ )
215
214
  path_format_arguments = {
216
215
  "resourceGroupName": _SERIALIZER.url(
217
216
  "resource_group_name", resource_group_name, "str", max_length=90, min_length=1, pattern=r"^[-\w\._\(\)]+$"
@@ -247,7 +246,7 @@ def build_regenerate_password_request(
247
246
  _url = kwargs.pop(
248
247
  "template_url",
249
248
  "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/localUsers/{username}/regeneratePassword",
250
- ) # pylint: disable=line-too-long
249
+ )
251
250
  path_format_arguments = {
252
251
  "resourceGroupName": _SERIALIZER.url(
253
252
  "resource_group_name", resource_group_name, "str", max_length=90, min_length=1, pattern=r"^[-\w\._\(\)]+$"
@@ -276,19 +275,18 @@ class LocalUsersOperations:
276
275
  **DO NOT** instantiate this class directly.
277
276
 
278
277
  Instead, you should access the following operations through
279
- :class:`~azure.mgmt.storage.v2024_01_01.StorageManagementClient`'s
278
+ :class:`~azure.mgmt.storage.StorageManagementClient`'s
280
279
  :attr:`local_users` attribute.
281
280
  """
282
281
 
283
282
  models = _models
284
283
 
285
- def __init__(self, *args, **kwargs):
284
+ def __init__(self, *args, **kwargs) -> None:
286
285
  input_args = list(args)
287
- self._client = input_args.pop(0) if input_args else kwargs.pop("client")
288
- self._config = input_args.pop(0) if input_args else kwargs.pop("config")
289
- self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer")
290
- self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer")
291
- self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version")
286
+ self._client: PipelineClient = input_args.pop(0) if input_args else kwargs.pop("client")
287
+ self._config: StorageManagementClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config")
288
+ self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer")
289
+ self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer")
292
290
 
293
291
  @distributed_trace
294
292
  def list(
@@ -299,7 +297,7 @@ class LocalUsersOperations:
299
297
  filter: Optional[str] = None,
300
298
  include: Optional[Union[str, _models.ListLocalUserIncludeParam]] = None,
301
299
  **kwargs: Any
302
- ) -> Iterable["_models.LocalUser"]:
300
+ ) -> ItemPaged["_models.LocalUser"]:
303
301
  """List the local users associated with the storage account.
304
302
 
305
303
  :param resource_group_name: The name of the resource group within the user's subscription. The
@@ -317,15 +315,15 @@ class LocalUsersOperations:
317
315
  :type filter: str
318
316
  :param include: Optional, when specified, will list local users enabled for the specific
319
317
  protocol. Lists all users by default. "nfsv3" Default value is None.
320
- :type include: str or ~azure.mgmt.storage.v2024_01_01.models.ListLocalUserIncludeParam
318
+ :type include: str or ~azure.mgmt.storage.models.ListLocalUserIncludeParam
321
319
  :return: An iterator like instance of either LocalUser or the result of cls(response)
322
- :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.storage.v2024_01_01.models.LocalUser]
320
+ :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.storage.models.LocalUser]
323
321
  :raises ~azure.core.exceptions.HttpResponseError:
324
322
  """
325
323
  _headers = kwargs.pop("headers", {}) or {}
326
324
  _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
327
325
 
328
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-01-01"))
326
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
329
327
  cls: ClsType[_models.LocalUsers] = kwargs.pop("cls", None)
330
328
 
331
329
  error_map: MutableMapping = {
@@ -361,7 +359,7 @@ class LocalUsersOperations:
361
359
  for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items()
362
360
  }
363
361
  )
364
- _next_request_params["api-version"] = self._api_version
362
+ _next_request_params["api-version"] = self._config.api_version
365
363
  _request = HttpRequest(
366
364
  "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params
367
365
  )
@@ -409,7 +407,7 @@ class LocalUsersOperations:
409
407
  numbers only. It must be unique only within the storage account. Required.
410
408
  :type username: str
411
409
  :return: LocalUser or the result of cls(response)
412
- :rtype: ~azure.mgmt.storage.v2024_01_01.models.LocalUser
410
+ :rtype: ~azure.mgmt.storage.models.LocalUser
413
411
  :raises ~azure.core.exceptions.HttpResponseError:
414
412
  """
415
413
  error_map: MutableMapping = {
@@ -423,7 +421,7 @@ class LocalUsersOperations:
423
421
  _headers = kwargs.pop("headers", {}) or {}
424
422
  _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
425
423
 
426
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-01-01"))
424
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
427
425
  cls: ClsType[_models.LocalUser] = kwargs.pop("cls", None)
428
426
 
429
427
  _request = build_get_request(
@@ -481,12 +479,12 @@ class LocalUsersOperations:
481
479
  numbers only. It must be unique only within the storage account. Required.
482
480
  :type username: str
483
481
  :param properties: The local user associated with a storage account. Required.
484
- :type properties: ~azure.mgmt.storage.v2024_01_01.models.LocalUser
482
+ :type properties: ~azure.mgmt.storage.models.LocalUser
485
483
  :keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
486
484
  Default value is "application/json".
487
485
  :paramtype content_type: str
488
486
  :return: LocalUser or the result of cls(response)
489
- :rtype: ~azure.mgmt.storage.v2024_01_01.models.LocalUser
487
+ :rtype: ~azure.mgmt.storage.models.LocalUser
490
488
  :raises ~azure.core.exceptions.HttpResponseError:
491
489
  """
492
490
 
@@ -520,7 +518,7 @@ class LocalUsersOperations:
520
518
  Default value is "application/json".
521
519
  :paramtype content_type: str
522
520
  :return: LocalUser or the result of cls(response)
523
- :rtype: ~azure.mgmt.storage.v2024_01_01.models.LocalUser
521
+ :rtype: ~azure.mgmt.storage.models.LocalUser
524
522
  :raises ~azure.core.exceptions.HttpResponseError:
525
523
  """
526
524
 
@@ -548,9 +546,9 @@ class LocalUsersOperations:
548
546
  :type username: str
549
547
  :param properties: The local user associated with a storage account. Is either a LocalUser type
550
548
  or a IO[bytes] type. Required.
551
- :type properties: ~azure.mgmt.storage.v2024_01_01.models.LocalUser or IO[bytes]
549
+ :type properties: ~azure.mgmt.storage.models.LocalUser or IO[bytes]
552
550
  :return: LocalUser or the result of cls(response)
553
- :rtype: ~azure.mgmt.storage.v2024_01_01.models.LocalUser
551
+ :rtype: ~azure.mgmt.storage.models.LocalUser
554
552
  :raises ~azure.core.exceptions.HttpResponseError:
555
553
  """
556
554
  error_map: MutableMapping = {
@@ -564,7 +562,7 @@ class LocalUsersOperations:
564
562
  _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
565
563
  _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
566
564
 
567
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-01-01"))
565
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
568
566
  content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
569
567
  cls: ClsType[_models.LocalUser] = kwargs.pop("cls", None)
570
568
 
@@ -640,7 +638,7 @@ class LocalUsersOperations:
640
638
  _headers = kwargs.pop("headers", {}) or {}
641
639
  _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
642
640
 
643
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-01-01"))
641
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
644
642
  cls: ClsType[None] = kwargs.pop("cls", None)
645
643
 
646
644
  _request = build_delete_request(
@@ -686,7 +684,7 @@ class LocalUsersOperations:
686
684
  numbers only. It must be unique only within the storage account. Required.
687
685
  :type username: str
688
686
  :return: LocalUserKeys or the result of cls(response)
689
- :rtype: ~azure.mgmt.storage.v2024_01_01.models.LocalUserKeys
687
+ :rtype: ~azure.mgmt.storage.models.LocalUserKeys
690
688
  :raises ~azure.core.exceptions.HttpResponseError:
691
689
  """
692
690
  error_map: MutableMapping = {
@@ -700,7 +698,7 @@ class LocalUsersOperations:
700
698
  _headers = kwargs.pop("headers", {}) or {}
701
699
  _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
702
700
 
703
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-01-01"))
701
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
704
702
  cls: ClsType[_models.LocalUserKeys] = kwargs.pop("cls", None)
705
703
 
706
704
  _request = build_list_keys_request(
@@ -750,7 +748,7 @@ class LocalUsersOperations:
750
748
  numbers only. It must be unique only within the storage account. Required.
751
749
  :type username: str
752
750
  :return: LocalUserRegeneratePasswordResult or the result of cls(response)
753
- :rtype: ~azure.mgmt.storage.v2024_01_01.models.LocalUserRegeneratePasswordResult
751
+ :rtype: ~azure.mgmt.storage.models.LocalUserRegeneratePasswordResult
754
752
  :raises ~azure.core.exceptions.HttpResponseError:
755
753
  """
756
754
  error_map: MutableMapping = {
@@ -764,7 +762,7 @@ class LocalUsersOperations:
764
762
  _headers = kwargs.pop("headers", {}) or {}
765
763
  _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
766
764
 
767
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-01-01"))
765
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
768
766
  cls: ClsType[_models.LocalUserRegeneratePasswordResult] = kwargs.pop("cls", None)
769
767
 
770
768
  _request = build_regenerate_password_request(