azure-mgmt-storage 22.1.1__py3-none-any.whl → 23.0.0__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 +66 -69
  14. azure/mgmt/storage/{v2024_01_01/aio → aio}/operations/_blob_inventory_policies_operations.py +26 -34
  15. azure/mgmt/storage/{v2024_01_01/aio → aio}/operations/_blob_services_operations.py +20 -22
  16. azure/mgmt/storage/{v2024_01_01/aio → aio}/operations/_deleted_accounts_operations.py +14 -17
  17. azure/mgmt/storage/{v2024_01_01/aio → aio}/operations/_encryption_scopes_operations.py +27 -30
  18. azure/mgmt/storage/{v2024_01_01/aio → aio}/operations/_file_services_operations.py +24 -27
  19. azure/mgmt/storage/{v2024_01_01/aio → aio}/operations/_file_shares_operations.py +36 -39
  20. azure/mgmt/storage/{v2024_01_01/aio → aio}/operations/_local_users_operations.py +26 -29
  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 +16 -19
  23. azure/mgmt/storage/{v2024_01_01/aio → aio}/operations/_object_replication_policies_operations.py +21 -23
  24. azure/mgmt/storage/{v2017_10_01/aio → aio}/operations/_operations.py +12 -15
  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 +21 -23
  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 +27 -30
  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 +12 -15
  31. azure/mgmt/storage/{v2024_01_01/aio → aio}/operations/_storage_accounts_operations.py +81 -96
  32. azure/mgmt/storage/{v2024_01_01/aio → aio}/operations/_storage_task_assignment_instances_report_operations.py +14 -16
  33. azure/mgmt/storage/{v2024_01_01/aio → aio}/operations/_storage_task_assignments_instances_report_operations.py +14 -16
  34. azure/mgmt/storage/{v2024_01_01/aio → aio}/operations/_storage_task_assignments_operations.py +30 -39
  35. azure/mgmt/storage/{v2024_01_01/aio → aio}/operations/_table_operations.py +27 -29
  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 +12 -14
  38. azure/mgmt/storage/{v2024_01_01/models → models}/_models_py3.py +870 -927
  39. azure/mgmt/storage/{v2016_01_01/operations → models}/_patch.py +5 -4
  40. azure/mgmt/storage/{v2024_01_01/models → models}/_storage_management_client_enums.py +1 -0
  41. azure/mgmt/storage/{v2024_01_01/operations → operations}/__init__.py +1 -0
  42. azure/mgmt/storage/{v2024_01_01/operations → operations}/_blob_containers_operations.py +81 -84
  43. azure/mgmt/storage/{v2024_01_01/operations → operations}/_blob_inventory_policies_operations.py +31 -39
  44. azure/mgmt/storage/{v2024_01_01/operations → operations}/_blob_services_operations.py +24 -27
  45. azure/mgmt/storage/{v2024_01_01/operations → operations}/_deleted_accounts_operations.py +16 -18
  46. azure/mgmt/storage/{v2024_01_01/operations → operations}/_encryption_scopes_operations.py +32 -34
  47. azure/mgmt/storage/{v2024_01_01/operations → operations}/_file_services_operations.py +30 -32
  48. azure/mgmt/storage/{v2024_01_01/operations → operations}/_file_shares_operations.py +44 -47
  49. azure/mgmt/storage/{v2024_01_01/operations → operations}/_local_users_operations.py +33 -35
  50. azure/mgmt/storage/{v2024_01_01/operations → operations}/_management_policies_operations.py +27 -34
  51. azure/mgmt/storage/{v2024_01_01/operations → operations}/_network_security_perimeter_configurations_operations.py +20 -22
  52. azure/mgmt/storage/{v2024_01_01/operations → operations}/_object_replication_policies_operations.py +26 -29
  53. azure/mgmt/storage/{v2024_01_01/operations → operations}/_operations.py +12 -15
  54. azure/mgmt/storage/operations/_patch.py +21 -0
  55. azure/mgmt/storage/{v2024_01_01/operations → operations}/_private_endpoint_connections_operations.py +26 -29
  56. azure/mgmt/storage/{v2024_01_01/operations → operations}/_private_link_resources_operations.py +13 -15
  57. azure/mgmt/storage/{v2024_01_01/operations → operations}/_queue_operations.py +33 -35
  58. azure/mgmt/storage/{v2024_01_01/operations → operations}/_queue_services_operations.py +23 -25
  59. azure/mgmt/storage/{v2024_01_01/operations → operations}/_skus_operations.py +12 -15
  60. azure/mgmt/storage/{v2024_01_01/operations → operations}/_storage_accounts_operations.py +98 -106
  61. azure/mgmt/storage/{v2024_01_01/operations → operations}/_storage_task_assignment_instances_report_operations.py +15 -19
  62. azure/mgmt/storage/{v2024_01_01/operations → operations}/_storage_task_assignments_instances_report_operations.py +15 -19
  63. azure/mgmt/storage/{v2024_01_01/operations → operations}/_storage_task_assignments_operations.py +36 -47
  64. azure/mgmt/storage/{v2024_01_01/operations → operations}/_table_operations.py +33 -35
  65. azure/mgmt/storage/{v2024_01_01/operations → operations}/_table_services_operations.py +23 -25
  66. azure/mgmt/storage/{v2024_01_01/operations → operations}/_usages_operations.py +13 -16
  67. {azure_mgmt_storage-22.1.1.dist-info → azure_mgmt_storage-23.0.0.dist-info}/METADATA +20 -10
  68. azure_mgmt_storage-23.0.0.dist-info/RECORD +73 -0
  69. {azure_mgmt_storage-22.1.1.dist-info → azure_mgmt_storage-23.0.0.dist-info}/WHEEL +1 -1
  70. azure/mgmt/storage/models.py +0 -8
  71. azure/mgmt/storage/v2016_01_01/__init__.py +0 -32
  72. azure/mgmt/storage/v2016_01_01/_configuration.py +0 -65
  73. azure/mgmt/storage/v2016_01_01/_patch.py +0 -32
  74. azure/mgmt/storage/v2016_01_01/_storage_management_client.py +0 -117
  75. azure/mgmt/storage/v2016_01_01/aio/__init__.py +0 -29
  76. azure/mgmt/storage/v2016_01_01/aio/_configuration.py +0 -65
  77. azure/mgmt/storage/v2016_01_01/aio/_patch.py +0 -32
  78. azure/mgmt/storage/v2016_01_01/aio/_storage_management_client.py +0 -120
  79. azure/mgmt/storage/v2016_01_01/aio/operations/__init__.py +0 -27
  80. azure/mgmt/storage/v2016_01_01/aio/operations/_storage_accounts_operations.py +0 -1023
  81. azure/mgmt/storage/v2016_01_01/aio/operations/_usage_operations.py +0 -130
  82. azure/mgmt/storage/v2016_01_01/models/__init__.py +0 -88
  83. azure/mgmt/storage/v2016_01_01/models/_models_py3.py +0 -829
  84. azure/mgmt/storage/v2016_01_01/models/_storage_management_client_enums.py +0 -99
  85. azure/mgmt/storage/v2016_01_01/operations/__init__.py +0 -27
  86. azure/mgmt/storage/v2016_01_01/operations/_storage_accounts_operations.py +0 -1278
  87. azure/mgmt/storage/v2016_01_01/operations/_usage_operations.py +0 -157
  88. azure/mgmt/storage/v2016_01_01/py.typed +0 -1
  89. azure/mgmt/storage/v2017_10_01/__init__.py +0 -32
  90. azure/mgmt/storage/v2017_10_01/_configuration.py +0 -65
  91. azure/mgmt/storage/v2017_10_01/_patch.py +0 -32
  92. azure/mgmt/storage/v2017_10_01/_storage_management.py +0 -121
  93. azure/mgmt/storage/v2017_10_01/_version.py +0 -9
  94. azure/mgmt/storage/v2017_10_01/aio/__init__.py +0 -29
  95. azure/mgmt/storage/v2017_10_01/aio/_configuration.py +0 -65
  96. azure/mgmt/storage/v2017_10_01/aio/_patch.py +0 -32
  97. azure/mgmt/storage/v2017_10_01/aio/_storage_management.py +0 -124
  98. azure/mgmt/storage/v2017_10_01/aio/operations/__init__.py +0 -31
  99. azure/mgmt/storage/v2017_10_01/aio/operations/_skus_operations.py +0 -130
  100. azure/mgmt/storage/v2017_10_01/aio/operations/_storage_accounts_operations.py +0 -1299
  101. azure/mgmt/storage/v2017_10_01/aio/operations/_usage_operations.py +0 -130
  102. azure/mgmt/storage/v2017_10_01/models/__init__.py +0 -140
  103. azure/mgmt/storage/v2017_10_01/models/_models_py3.py +0 -1851
  104. azure/mgmt/storage/v2017_10_01/models/_patch.py +0 -20
  105. azure/mgmt/storage/v2017_10_01/models/_storage_management_enums.py +0 -192
  106. azure/mgmt/storage/v2017_10_01/operations/__init__.py +0 -31
  107. azure/mgmt/storage/v2017_10_01/operations/_operations.py +0 -151
  108. azure/mgmt/storage/v2017_10_01/operations/_patch.py +0 -20
  109. azure/mgmt/storage/v2017_10_01/operations/_skus_operations.py +0 -157
  110. azure/mgmt/storage/v2017_10_01/operations/_storage_accounts_operations.py +0 -1638
  111. azure/mgmt/storage/v2017_10_01/operations/_usage_operations.py +0 -157
  112. azure/mgmt/storage/v2017_10_01/py.typed +0 -1
  113. azure/mgmt/storage/v2019_06_01/__init__.py +0 -32
  114. azure/mgmt/storage/v2019_06_01/_configuration.py +0 -64
  115. azure/mgmt/storage/v2019_06_01/_patch.py +0 -32
  116. azure/mgmt/storage/v2019_06_01/_storage_management_client.py +0 -213
  117. azure/mgmt/storage/v2019_06_01/_version.py +0 -9
  118. azure/mgmt/storage/v2019_06_01/aio/__init__.py +0 -29
  119. azure/mgmt/storage/v2019_06_01/aio/_configuration.py +0 -64
  120. azure/mgmt/storage/v2019_06_01/aio/_patch.py +0 -32
  121. azure/mgmt/storage/v2019_06_01/aio/_storage_management_client.py +0 -217
  122. azure/mgmt/storage/v2019_06_01/aio/operations/__init__.py +0 -59
  123. azure/mgmt/storage/v2019_06_01/aio/operations/_blob_containers_operations.py +0 -1725
  124. azure/mgmt/storage/v2019_06_01/aio/operations/_blob_inventory_policies_operations.py +0 -437
  125. azure/mgmt/storage/v2019_06_01/aio/operations/_blob_services_operations.py +0 -368
  126. azure/mgmt/storage/v2019_06_01/aio/operations/_encryption_scopes_operations.py +0 -538
  127. azure/mgmt/storage/v2019_06_01/aio/operations/_file_services_operations.py +0 -335
  128. azure/mgmt/storage/v2019_06_01/aio/operations/_file_shares_operations.py +0 -771
  129. azure/mgmt/storage/v2019_06_01/aio/operations/_object_replication_policies_operations.py +0 -428
  130. azure/mgmt/storage/v2019_06_01/aio/operations/_operations.py +0 -130
  131. azure/mgmt/storage/v2019_06_01/aio/operations/_patch.py +0 -20
  132. azure/mgmt/storage/v2019_06_01/aio/operations/_private_endpoint_connections_operations.py +0 -424
  133. azure/mgmt/storage/v2019_06_01/aio/operations/_private_link_resources_operations.py +0 -113
  134. azure/mgmt/storage/v2019_06_01/aio/operations/_queue_operations.py +0 -597
  135. azure/mgmt/storage/v2019_06_01/aio/operations/_queue_services_operations.py +0 -335
  136. azure/mgmt/storage/v2019_06_01/aio/operations/_skus_operations.py +0 -131
  137. azure/mgmt/storage/v2019_06_01/aio/operations/_storage_accounts_operations.py +0 -1696
  138. azure/mgmt/storage/v2019_06_01/aio/operations/_table_operations.py +0 -394
  139. azure/mgmt/storage/v2019_06_01/aio/operations/_table_services_operations.py +0 -335
  140. azure/mgmt/storage/v2019_06_01/aio/operations/_usages_operations.py +0 -134
  141. azure/mgmt/storage/v2019_06_01/models/__init__.py +0 -364
  142. azure/mgmt/storage/v2019_06_01/models/_models_py3.py +0 -6038
  143. azure/mgmt/storage/v2019_06_01/models/_patch.py +0 -20
  144. azure/mgmt/storage/v2019_06_01/models/_storage_management_client_enums.py +0 -456
  145. azure/mgmt/storage/v2019_06_01/operations/__init__.py +0 -59
  146. azure/mgmt/storage/v2019_06_01/operations/_blob_containers_operations.py +0 -2226
  147. azure/mgmt/storage/v2019_06_01/operations/_blob_inventory_policies_operations.py +0 -582
  148. azure/mgmt/storage/v2019_06_01/operations/_blob_services_operations.py +0 -476
  149. azure/mgmt/storage/v2019_06_01/operations/_encryption_scopes_operations.py +0 -677
  150. azure/mgmt/storage/v2019_06_01/operations/_file_services_operations.py +0 -444
  151. azure/mgmt/storage/v2019_06_01/operations/_file_shares_operations.py +0 -1000
  152. azure/mgmt/storage/v2019_06_01/operations/_management_policies_operations.py +0 -453
  153. azure/mgmt/storage/v2019_06_01/operations/_object_replication_policies_operations.py +0 -567
  154. azure/mgmt/storage/v2019_06_01/operations/_operations.py +0 -151
  155. azure/mgmt/storage/v2019_06_01/operations/_patch.py +0 -20
  156. azure/mgmt/storage/v2019_06_01/operations/_private_endpoint_connections_operations.py +0 -575
  157. azure/mgmt/storage/v2019_06_01/operations/_private_link_resources_operations.py +0 -149
  158. azure/mgmt/storage/v2019_06_01/operations/_queue_operations.py +0 -805
  159. azure/mgmt/storage/v2019_06_01/operations/_queue_services_operations.py +0 -444
  160. azure/mgmt/storage/v2019_06_01/operations/_skus_operations.py +0 -157
  161. azure/mgmt/storage/v2019_06_01/operations/_storage_accounts_operations.py +0 -2122
  162. azure/mgmt/storage/v2019_06_01/operations/_table_operations.py +0 -563
  163. azure/mgmt/storage/v2019_06_01/operations/_table_services_operations.py +0 -444
  164. azure/mgmt/storage/v2019_06_01/operations/_usages_operations.py +0 -164
  165. azure/mgmt/storage/v2019_06_01/py.typed +0 -1
  166. azure/mgmt/storage/v2024_01_01/__init__.py +0 -32
  167. azure/mgmt/storage/v2024_01_01/_configuration.py +0 -64
  168. azure/mgmt/storage/v2024_01_01/_patch.py +0 -20
  169. azure/mgmt/storage/v2024_01_01/_storage_management_client.py +0 -256
  170. azure/mgmt/storage/v2024_01_01/_version.py +0 -9
  171. azure/mgmt/storage/v2024_01_01/aio/__init__.py +0 -29
  172. azure/mgmt/storage/v2024_01_01/aio/_configuration.py +0 -64
  173. azure/mgmt/storage/v2024_01_01/aio/_patch.py +0 -20
  174. azure/mgmt/storage/v2024_01_01/aio/_storage_management_client.py +0 -261
  175. azure/mgmt/storage/v2024_01_01/aio/operations/_management_policies_operations.py +0 -343
  176. azure/mgmt/storage/v2024_01_01/aio/operations/_operations.py +0 -130
  177. azure/mgmt/storage/v2024_01_01/aio/operations/_patch.py +0 -20
  178. azure/mgmt/storage/v2024_01_01/models/_patch.py +0 -20
  179. azure/mgmt/storage/v2024_01_01/operations/_patch.py +0 -20
  180. azure/mgmt/storage/v2024_01_01/py.typed +0 -1
  181. azure_mgmt_storage-22.1.1.dist-info/RECORD +0 -183
  182. /azure/mgmt/storage/{v2024_01_01/models → models}/__init__.py +0 -0
  183. {azure_mgmt_storage-22.1.1.dist-info → azure_mgmt_storage-23.0.0.dist-info}/LICENSE +0 -0
  184. {azure_mgmt_storage-22.1.1.dist-info → azure_mgmt_storage-23.0.0.dist-info}/top_level.txt +0 -0
@@ -1,83 +1,143 @@
1
1
  # coding=utf-8
2
2
  # --------------------------------------------------------------------------
3
3
  # Copyright (c) Microsoft Corporation. All rights reserved.
4
- # Licensed under the MIT License. See License.txt in the project root for
5
- # license information.
6
- #
4
+ # Licensed under the MIT License. See License.txt in the project root for license information.
7
5
  # Code generated by Microsoft (R) AutoRest Code Generator.
8
- # Changes may cause incorrect behavior and will be lost if the code is
9
- # regenerated.
6
+ # Changes may cause incorrect behavior and will be lost if the code is regenerated.
10
7
  # --------------------------------------------------------------------------
11
8
 
12
- from typing import Any, Optional, TYPE_CHECKING
9
+ from copy import deepcopy
10
+ from typing import Any, Awaitable, Optional, TYPE_CHECKING, cast
13
11
  from typing_extensions import Self
14
12
 
15
13
  from azure.core.pipeline import policies
14
+ from azure.core.rest import AsyncHttpResponse, HttpRequest
15
+ from azure.core.settings import settings
16
16
  from azure.mgmt.core import AsyncARMPipelineClient
17
17
  from azure.mgmt.core.policies import AsyncARMAutoResourceProviderRegistrationPolicy
18
- from azure.profiles import KnownProfiles, ProfileDefinition
19
- from azure.profiles.multiapiclient import MultiApiClientMixin
18
+ from azure.mgmt.core.tools import get_arm_endpoints
20
19
 
21
- from .._serialization import Deserializer, Serializer
20
+ from .. import models as _models
21
+ from .._utils.serialization import Deserializer, Serializer
22
22
  from ._configuration import StorageManagementClientConfiguration
23
+ from .operations import (
24
+ BlobContainersOperations,
25
+ BlobInventoryPoliciesOperations,
26
+ BlobServicesOperations,
27
+ DeletedAccountsOperations,
28
+ EncryptionScopesOperations,
29
+ FileServicesOperations,
30
+ FileSharesOperations,
31
+ LocalUsersOperations,
32
+ ManagementPoliciesOperations,
33
+ NetworkSecurityPerimeterConfigurationsOperations,
34
+ ObjectReplicationPoliciesOperations,
35
+ Operations,
36
+ PrivateEndpointConnectionsOperations,
37
+ PrivateLinkResourcesOperations,
38
+ QueueOperations,
39
+ QueueServicesOperations,
40
+ SkusOperations,
41
+ StorageAccountsOperations,
42
+ StorageTaskAssignmentInstancesReportOperations,
43
+ StorageTaskAssignmentsInstancesReportOperations,
44
+ StorageTaskAssignmentsOperations,
45
+ TableOperations,
46
+ TableServicesOperations,
47
+ UsagesOperations,
48
+ )
23
49
 
24
50
  if TYPE_CHECKING:
25
- # pylint: disable=unused-import,ungrouped-imports
26
51
  from azure.core.credentials_async import AsyncTokenCredential
27
52
 
28
- class _SDKClient(object):
29
- def __init__(self, *args, **kwargs):
30
- """This is a fake class to support current implemetation of MultiApiClientMixin."
31
- Will be removed in final version of multiapi azure-core based client
32
- """
33
- pass
34
53
 
35
- class StorageManagementClient(MultiApiClientMixin, _SDKClient):
54
+ class StorageManagementClient: # pylint: disable=too-many-instance-attributes
36
55
  """The Azure Storage Management API.
37
56
 
38
- This ready contains multiple API versions, to help you deal with all of the Azure clouds
39
- (Azure Stack, Azure Government, Azure China, etc.).
40
- By default, it uses the latest API version available on public Azure.
41
- For production, you should stick to a particular api-version and/or profile.
42
- The profile sets a mapping between an operation group and its API version.
43
- The api-version parameter sets the default API version if the operation
44
- group is not described in the profile.
45
-
57
+ :ivar blob_services: BlobServicesOperations operations
58
+ :vartype blob_services: azure.mgmt.storage.aio.operations.BlobServicesOperations
59
+ :ivar blob_containers: BlobContainersOperations operations
60
+ :vartype blob_containers: azure.mgmt.storage.aio.operations.BlobContainersOperations
61
+ :ivar file_services: FileServicesOperations operations
62
+ :vartype file_services: azure.mgmt.storage.aio.operations.FileServicesOperations
63
+ :ivar file_shares: FileSharesOperations operations
64
+ :vartype file_shares: azure.mgmt.storage.aio.operations.FileSharesOperations
65
+ :ivar queue_services: QueueServicesOperations operations
66
+ :vartype queue_services: azure.mgmt.storage.aio.operations.QueueServicesOperations
67
+ :ivar queue: QueueOperations operations
68
+ :vartype queue: azure.mgmt.storage.aio.operations.QueueOperations
69
+ :ivar operations: Operations operations
70
+ :vartype operations: azure.mgmt.storage.aio.operations.Operations
71
+ :ivar skus: SkusOperations operations
72
+ :vartype skus: azure.mgmt.storage.aio.operations.SkusOperations
73
+ :ivar storage_accounts: StorageAccountsOperations operations
74
+ :vartype storage_accounts: azure.mgmt.storage.aio.operations.StorageAccountsOperations
75
+ :ivar deleted_accounts: DeletedAccountsOperations operations
76
+ :vartype deleted_accounts: azure.mgmt.storage.aio.operations.DeletedAccountsOperations
77
+ :ivar usages: UsagesOperations operations
78
+ :vartype usages: azure.mgmt.storage.aio.operations.UsagesOperations
79
+ :ivar management_policies: ManagementPoliciesOperations operations
80
+ :vartype management_policies: azure.mgmt.storage.aio.operations.ManagementPoliciesOperations
81
+ :ivar blob_inventory_policies: BlobInventoryPoliciesOperations operations
82
+ :vartype blob_inventory_policies:
83
+ azure.mgmt.storage.aio.operations.BlobInventoryPoliciesOperations
84
+ :ivar private_endpoint_connections: PrivateEndpointConnectionsOperations operations
85
+ :vartype private_endpoint_connections:
86
+ azure.mgmt.storage.aio.operations.PrivateEndpointConnectionsOperations
87
+ :ivar private_link_resources: PrivateLinkResourcesOperations operations
88
+ :vartype private_link_resources:
89
+ azure.mgmt.storage.aio.operations.PrivateLinkResourcesOperations
90
+ :ivar object_replication_policies: ObjectReplicationPoliciesOperations operations
91
+ :vartype object_replication_policies:
92
+ azure.mgmt.storage.aio.operations.ObjectReplicationPoliciesOperations
93
+ :ivar local_users: LocalUsersOperations operations
94
+ :vartype local_users: azure.mgmt.storage.aio.operations.LocalUsersOperations
95
+ :ivar encryption_scopes: EncryptionScopesOperations operations
96
+ :vartype encryption_scopes: azure.mgmt.storage.aio.operations.EncryptionScopesOperations
97
+ :ivar table_services: TableServicesOperations operations
98
+ :vartype table_services: azure.mgmt.storage.aio.operations.TableServicesOperations
99
+ :ivar table: TableOperations operations
100
+ :vartype table: azure.mgmt.storage.aio.operations.TableOperations
101
+ :ivar network_security_perimeter_configurations:
102
+ NetworkSecurityPerimeterConfigurationsOperations operations
103
+ :vartype network_security_perimeter_configurations:
104
+ azure.mgmt.storage.aio.operations.NetworkSecurityPerimeterConfigurationsOperations
105
+ :ivar storage_task_assignments: StorageTaskAssignmentsOperations operations
106
+ :vartype storage_task_assignments:
107
+ azure.mgmt.storage.aio.operations.StorageTaskAssignmentsOperations
108
+ :ivar storage_task_assignments_instances_report:
109
+ StorageTaskAssignmentsInstancesReportOperations operations
110
+ :vartype storage_task_assignments_instances_report:
111
+ azure.mgmt.storage.aio.operations.StorageTaskAssignmentsInstancesReportOperations
112
+ :ivar storage_task_assignment_instances_report: StorageTaskAssignmentInstancesReportOperations
113
+ operations
114
+ :vartype storage_task_assignment_instances_report:
115
+ azure.mgmt.storage.aio.operations.StorageTaskAssignmentInstancesReportOperations
46
116
  :param credential: Credential needed for the client to connect to Azure. Required.
47
117
  :type credential: ~azure.core.credentials_async.AsyncTokenCredential
48
118
  :param subscription_id: The ID of the target subscription. Required.
49
119
  :type subscription_id: str
50
- :param api_version: API version to use if no profile is provided, or if missing in profile.
51
- :type api_version: str
52
- :param base_url: Service URL
120
+ :param base_url: Service URL. Default value is None.
53
121
  :type base_url: str
54
- :param profile: A profile definition, from KnownProfiles to dict.
55
- :type profile: azure.profiles.KnownProfiles
56
- :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present.
122
+ :keyword api_version: Api Version. Default value is "2024-01-01". Note that overriding this
123
+ default value may result in unsupported behavior.
124
+ :paramtype api_version: str
125
+ :keyword int polling_interval: Default waiting time between two polls for LRO operations if no
126
+ Retry-After header is present.
57
127
  """
58
128
 
59
- DEFAULT_API_VERSION = '2024-01-01'
60
- _PROFILE_TAG = "azure.mgmt.storage.StorageManagementClient"
61
- LATEST_PROFILE = ProfileDefinition({
62
- _PROFILE_TAG: {
63
- None: DEFAULT_API_VERSION,
64
- 'usage': '2017-10-01',
65
- }},
66
- _PROFILE_TAG + " latest"
67
- )
68
-
69
129
  def __init__(
70
- self,
71
- credential: "AsyncTokenCredential",
72
- subscription_id: str,
73
- api_version: Optional[str] = None,
74
- base_url: str = "https://management.azure.com",
75
- profile: KnownProfiles = KnownProfiles.default,
76
- **kwargs: Any
130
+ self, credential: "AsyncTokenCredential", subscription_id: str, base_url: Optional[str] = None, **kwargs: Any
77
131
  ) -> None:
78
- if api_version:
79
- kwargs.setdefault('api_version', api_version)
80
- self._config = StorageManagementClientConfiguration(credential, subscription_id, **kwargs)
132
+ _cloud = kwargs.pop("cloud_setting", None) or settings.current.azure_cloud # type: ignore
133
+ _endpoints = get_arm_endpoints(_cloud)
134
+ if not base_url:
135
+ base_url = _endpoints["resource_manager"]
136
+ credential_scopes = kwargs.pop("credential_scopes", _endpoints["credential_scopes"])
137
+ self._config = StorageManagementClientConfiguration(
138
+ credential=credential, subscription_id=subscription_id, credential_scopes=credential_scopes, **kwargs
139
+ )
140
+
81
141
  _policies = kwargs.pop("policies", None)
82
142
  if _policies is None:
83
143
  _policies = [
@@ -96,462 +156,93 @@ class StorageManagementClient(MultiApiClientMixin, _SDKClient):
96
156
  policies.SensitiveHeaderCleanupPolicy(**kwargs) if self._config.redirect_policy else None,
97
157
  self._config.http_logging_policy,
98
158
  ]
99
- self._client: AsyncARMPipelineClient = AsyncARMPipelineClient(base_url=base_url, policies=_policies, **kwargs)
100
- super(StorageManagementClient, self).__init__(
101
- api_version=api_version,
102
- profile=profile
159
+ self._client: AsyncARMPipelineClient = AsyncARMPipelineClient(
160
+ base_url=cast(str, base_url), policies=_policies, **kwargs
103
161
  )
104
162
 
105
- @classmethod
106
- def _models_dict(cls, api_version):
107
- return {k: v for k, v in cls.models(api_version).__dict__.items() if isinstance(v, type)}
108
-
109
- @classmethod
110
- def models(cls, api_version=DEFAULT_API_VERSION):
111
- """Module depends on the API version:
112
-
113
- * 2016-01-01: :mod:`v2016_01_01.models<azure.mgmt.storage.v2016_01_01.models>`
114
- * 2017-10-01: :mod:`v2017_10_01.models<azure.mgmt.storage.v2017_10_01.models>`
115
- * 2019-06-01: :mod:`v2019_06_01.models<azure.mgmt.storage.v2019_06_01.models>`
116
- * 2024-01-01: :mod:`v2024_01_01.models<azure.mgmt.storage.v2024_01_01.models>`
117
- """
118
- if api_version == '2016-01-01':
119
- from ..v2016_01_01 import models
120
- return models
121
- elif api_version == '2017-10-01':
122
- from ..v2017_10_01 import models
123
- return models
124
- elif api_version == '2019-06-01':
125
- from ..v2019_06_01 import models
126
- return models
127
- elif api_version == '2024-01-01':
128
- from ..v2024_01_01 import models
129
- return models
130
- raise ValueError("API version {} is not available".format(api_version))
131
-
132
- @property
133
- def blob_containers(self):
134
- """Instance depends on the API version:
135
-
136
- * 2019-06-01: :class:`BlobContainersOperations<azure.mgmt.storage.v2019_06_01.aio.operations.BlobContainersOperations>`
137
- * 2024-01-01: :class:`BlobContainersOperations<azure.mgmt.storage.v2024_01_01.aio.operations.BlobContainersOperations>`
138
- """
139
- api_version = self._get_api_version('blob_containers')
140
- if api_version == '2019-06-01':
141
- from ..v2019_06_01.aio.operations import BlobContainersOperations as OperationClass
142
- elif api_version == '2024-01-01':
143
- from ..v2024_01_01.aio.operations import BlobContainersOperations as OperationClass
144
- else:
145
- raise ValueError("API version {} does not have operation group 'blob_containers'".format(api_version))
146
- self._config.api_version = api_version
147
- return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)), api_version)
148
-
149
- @property
150
- def blob_inventory_policies(self):
151
- """Instance depends on the API version:
152
-
153
- * 2019-06-01: :class:`BlobInventoryPoliciesOperations<azure.mgmt.storage.v2019_06_01.aio.operations.BlobInventoryPoliciesOperations>`
154
- * 2024-01-01: :class:`BlobInventoryPoliciesOperations<azure.mgmt.storage.v2024_01_01.aio.operations.BlobInventoryPoliciesOperations>`
155
- """
156
- api_version = self._get_api_version('blob_inventory_policies')
157
- if api_version == '2019-06-01':
158
- from ..v2019_06_01.aio.operations import BlobInventoryPoliciesOperations as OperationClass
159
- elif api_version == '2024-01-01':
160
- from ..v2024_01_01.aio.operations import BlobInventoryPoliciesOperations as OperationClass
161
- else:
162
- raise ValueError("API version {} does not have operation group 'blob_inventory_policies'".format(api_version))
163
- self._config.api_version = api_version
164
- return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)), api_version)
165
-
166
- @property
167
- def blob_services(self):
168
- """Instance depends on the API version:
169
-
170
- * 2019-06-01: :class:`BlobServicesOperations<azure.mgmt.storage.v2019_06_01.aio.operations.BlobServicesOperations>`
171
- * 2024-01-01: :class:`BlobServicesOperations<azure.mgmt.storage.v2024_01_01.aio.operations.BlobServicesOperations>`
172
- """
173
- api_version = self._get_api_version('blob_services')
174
- if api_version == '2019-06-01':
175
- from ..v2019_06_01.aio.operations import BlobServicesOperations as OperationClass
176
- elif api_version == '2024-01-01':
177
- from ..v2024_01_01.aio.operations import BlobServicesOperations as OperationClass
178
- else:
179
- raise ValueError("API version {} does not have operation group 'blob_services'".format(api_version))
180
- self._config.api_version = api_version
181
- return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)), api_version)
182
-
183
- @property
184
- def deleted_accounts(self):
185
- """Instance depends on the API version:
186
-
187
- * 2024-01-01: :class:`DeletedAccountsOperations<azure.mgmt.storage.v2024_01_01.aio.operations.DeletedAccountsOperations>`
188
- """
189
- api_version = self._get_api_version('deleted_accounts')
190
- if api_version == '2024-01-01':
191
- from ..v2024_01_01.aio.operations import DeletedAccountsOperations as OperationClass
192
- else:
193
- raise ValueError("API version {} does not have operation group 'deleted_accounts'".format(api_version))
194
- self._config.api_version = api_version
195
- return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)), api_version)
196
-
197
- @property
198
- def encryption_scopes(self):
199
- """Instance depends on the API version:
200
-
201
- * 2019-06-01: :class:`EncryptionScopesOperations<azure.mgmt.storage.v2019_06_01.aio.operations.EncryptionScopesOperations>`
202
- * 2024-01-01: :class:`EncryptionScopesOperations<azure.mgmt.storage.v2024_01_01.aio.operations.EncryptionScopesOperations>`
203
- """
204
- api_version = self._get_api_version('encryption_scopes')
205
- if api_version == '2019-06-01':
206
- from ..v2019_06_01.aio.operations import EncryptionScopesOperations as OperationClass
207
- elif api_version == '2024-01-01':
208
- from ..v2024_01_01.aio.operations import EncryptionScopesOperations as OperationClass
209
- else:
210
- raise ValueError("API version {} does not have operation group 'encryption_scopes'".format(api_version))
211
- self._config.api_version = api_version
212
- return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)), api_version)
213
-
214
- @property
215
- def file_services(self):
216
- """Instance depends on the API version:
217
-
218
- * 2019-06-01: :class:`FileServicesOperations<azure.mgmt.storage.v2019_06_01.aio.operations.FileServicesOperations>`
219
- * 2024-01-01: :class:`FileServicesOperations<azure.mgmt.storage.v2024_01_01.aio.operations.FileServicesOperations>`
220
- """
221
- api_version = self._get_api_version('file_services')
222
- if api_version == '2019-06-01':
223
- from ..v2019_06_01.aio.operations import FileServicesOperations as OperationClass
224
- elif api_version == '2024-01-01':
225
- from ..v2024_01_01.aio.operations import FileServicesOperations as OperationClass
226
- else:
227
- raise ValueError("API version {} does not have operation group 'file_services'".format(api_version))
228
- self._config.api_version = api_version
229
- return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)), api_version)
230
-
231
- @property
232
- def file_shares(self):
233
- """Instance depends on the API version:
234
-
235
- * 2019-06-01: :class:`FileSharesOperations<azure.mgmt.storage.v2019_06_01.aio.operations.FileSharesOperations>`
236
- * 2024-01-01: :class:`FileSharesOperations<azure.mgmt.storage.v2024_01_01.aio.operations.FileSharesOperations>`
237
- """
238
- api_version = self._get_api_version('file_shares')
239
- if api_version == '2019-06-01':
240
- from ..v2019_06_01.aio.operations import FileSharesOperations as OperationClass
241
- elif api_version == '2024-01-01':
242
- from ..v2024_01_01.aio.operations import FileSharesOperations as OperationClass
243
- else:
244
- raise ValueError("API version {} does not have operation group 'file_shares'".format(api_version))
245
- self._config.api_version = api_version
246
- return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)), api_version)
247
-
248
- @property
249
- def local_users(self):
250
- """Instance depends on the API version:
251
-
252
- * 2024-01-01: :class:`LocalUsersOperations<azure.mgmt.storage.v2024_01_01.aio.operations.LocalUsersOperations>`
253
- """
254
- api_version = self._get_api_version('local_users')
255
- if api_version == '2024-01-01':
256
- from ..v2024_01_01.aio.operations import LocalUsersOperations as OperationClass
257
- else:
258
- raise ValueError("API version {} does not have operation group 'local_users'".format(api_version))
259
- self._config.api_version = api_version
260
- return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)), api_version)
261
-
262
- @property
263
- def management_policies(self):
264
- """Instance depends on the API version:
265
-
266
- * 2019-06-01: :class:`ManagementPoliciesOperations<azure.mgmt.storage.v2019_06_01.aio.operations.ManagementPoliciesOperations>`
267
- * 2024-01-01: :class:`ManagementPoliciesOperations<azure.mgmt.storage.v2024_01_01.aio.operations.ManagementPoliciesOperations>`
268
- """
269
- api_version = self._get_api_version('management_policies')
270
- if api_version == '2019-06-01':
271
- from ..v2019_06_01.aio.operations import ManagementPoliciesOperations as OperationClass
272
- elif api_version == '2024-01-01':
273
- from ..v2024_01_01.aio.operations import ManagementPoliciesOperations as OperationClass
274
- else:
275
- raise ValueError("API version {} does not have operation group 'management_policies'".format(api_version))
276
- self._config.api_version = api_version
277
- return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)), api_version)
278
-
279
- @property
280
- def network_security_perimeter_configurations(self):
281
- """Instance depends on the API version:
282
-
283
- * 2024-01-01: :class:`NetworkSecurityPerimeterConfigurationsOperations<azure.mgmt.storage.v2024_01_01.aio.operations.NetworkSecurityPerimeterConfigurationsOperations>`
284
- """
285
- api_version = self._get_api_version('network_security_perimeter_configurations')
286
- if api_version == '2024-01-01':
287
- from ..v2024_01_01.aio.operations import NetworkSecurityPerimeterConfigurationsOperations as OperationClass
288
- else:
289
- raise ValueError("API version {} does not have operation group 'network_security_perimeter_configurations'".format(api_version))
290
- self._config.api_version = api_version
291
- return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)), api_version)
292
-
293
- @property
294
- def object_replication_policies(self):
295
- """Instance depends on the API version:
296
-
297
- * 2019-06-01: :class:`ObjectReplicationPoliciesOperations<azure.mgmt.storage.v2019_06_01.aio.operations.ObjectReplicationPoliciesOperations>`
298
- * 2024-01-01: :class:`ObjectReplicationPoliciesOperations<azure.mgmt.storage.v2024_01_01.aio.operations.ObjectReplicationPoliciesOperations>`
299
- """
300
- api_version = self._get_api_version('object_replication_policies')
301
- if api_version == '2019-06-01':
302
- from ..v2019_06_01.aio.operations import ObjectReplicationPoliciesOperations as OperationClass
303
- elif api_version == '2024-01-01':
304
- from ..v2024_01_01.aio.operations import ObjectReplicationPoliciesOperations as OperationClass
305
- else:
306
- raise ValueError("API version {} does not have operation group 'object_replication_policies'".format(api_version))
307
- self._config.api_version = api_version
308
- return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)), api_version)
309
-
310
- @property
311
- def operations(self):
312
- """Instance depends on the API version:
313
-
314
- * 2017-10-01: :class:`Operations<azure.mgmt.storage.v2017_10_01.aio.operations.Operations>`
315
- * 2019-06-01: :class:`Operations<azure.mgmt.storage.v2019_06_01.aio.operations.Operations>`
316
- * 2024-01-01: :class:`Operations<azure.mgmt.storage.v2024_01_01.aio.operations.Operations>`
317
- """
318
- api_version = self._get_api_version('operations')
319
- if api_version == '2017-10-01':
320
- from ..v2017_10_01.aio.operations import Operations as OperationClass
321
- elif api_version == '2019-06-01':
322
- from ..v2019_06_01.aio.operations import Operations as OperationClass
323
- elif api_version == '2024-01-01':
324
- from ..v2024_01_01.aio.operations import Operations as OperationClass
325
- else:
326
- raise ValueError("API version {} does not have operation group 'operations'".format(api_version))
327
- self._config.api_version = api_version
328
- return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)), api_version)
329
-
330
- @property
331
- def private_endpoint_connections(self):
332
- """Instance depends on the API version:
333
-
334
- * 2019-06-01: :class:`PrivateEndpointConnectionsOperations<azure.mgmt.storage.v2019_06_01.aio.operations.PrivateEndpointConnectionsOperations>`
335
- * 2024-01-01: :class:`PrivateEndpointConnectionsOperations<azure.mgmt.storage.v2024_01_01.aio.operations.PrivateEndpointConnectionsOperations>`
336
- """
337
- api_version = self._get_api_version('private_endpoint_connections')
338
- if api_version == '2019-06-01':
339
- from ..v2019_06_01.aio.operations import PrivateEndpointConnectionsOperations as OperationClass
340
- elif api_version == '2024-01-01':
341
- from ..v2024_01_01.aio.operations import PrivateEndpointConnectionsOperations as OperationClass
342
- else:
343
- raise ValueError("API version {} does not have operation group 'private_endpoint_connections'".format(api_version))
344
- self._config.api_version = api_version
345
- return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)), api_version)
346
-
347
- @property
348
- def private_link_resources(self):
349
- """Instance depends on the API version:
350
-
351
- * 2019-06-01: :class:`PrivateLinkResourcesOperations<azure.mgmt.storage.v2019_06_01.aio.operations.PrivateLinkResourcesOperations>`
352
- * 2024-01-01: :class:`PrivateLinkResourcesOperations<azure.mgmt.storage.v2024_01_01.aio.operations.PrivateLinkResourcesOperations>`
353
- """
354
- api_version = self._get_api_version('private_link_resources')
355
- if api_version == '2019-06-01':
356
- from ..v2019_06_01.aio.operations import PrivateLinkResourcesOperations as OperationClass
357
- elif api_version == '2024-01-01':
358
- from ..v2024_01_01.aio.operations import PrivateLinkResourcesOperations as OperationClass
359
- else:
360
- raise ValueError("API version {} does not have operation group 'private_link_resources'".format(api_version))
361
- self._config.api_version = api_version
362
- return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)), api_version)
363
-
364
- @property
365
- def queue(self):
366
- """Instance depends on the API version:
367
-
368
- * 2019-06-01: :class:`QueueOperations<azure.mgmt.storage.v2019_06_01.aio.operations.QueueOperations>`
369
- * 2024-01-01: :class:`QueueOperations<azure.mgmt.storage.v2024_01_01.aio.operations.QueueOperations>`
370
- """
371
- api_version = self._get_api_version('queue')
372
- if api_version == '2019-06-01':
373
- from ..v2019_06_01.aio.operations import QueueOperations as OperationClass
374
- elif api_version == '2024-01-01':
375
- from ..v2024_01_01.aio.operations import QueueOperations as OperationClass
376
- else:
377
- raise ValueError("API version {} does not have operation group 'queue'".format(api_version))
378
- self._config.api_version = api_version
379
- return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)), api_version)
380
-
381
- @property
382
- def queue_services(self):
383
- """Instance depends on the API version:
384
-
385
- * 2019-06-01: :class:`QueueServicesOperations<azure.mgmt.storage.v2019_06_01.aio.operations.QueueServicesOperations>`
386
- * 2024-01-01: :class:`QueueServicesOperations<azure.mgmt.storage.v2024_01_01.aio.operations.QueueServicesOperations>`
387
- """
388
- api_version = self._get_api_version('queue_services')
389
- if api_version == '2019-06-01':
390
- from ..v2019_06_01.aio.operations import QueueServicesOperations as OperationClass
391
- elif api_version == '2024-01-01':
392
- from ..v2024_01_01.aio.operations import QueueServicesOperations as OperationClass
393
- else:
394
- raise ValueError("API version {} does not have operation group 'queue_services'".format(api_version))
395
- self._config.api_version = api_version
396
- return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)), api_version)
397
-
398
- @property
399
- def skus(self):
400
- """Instance depends on the API version:
401
-
402
- * 2017-10-01: :class:`SkusOperations<azure.mgmt.storage.v2017_10_01.aio.operations.SkusOperations>`
403
- * 2019-06-01: :class:`SkusOperations<azure.mgmt.storage.v2019_06_01.aio.operations.SkusOperations>`
404
- * 2024-01-01: :class:`SkusOperations<azure.mgmt.storage.v2024_01_01.aio.operations.SkusOperations>`
405
- """
406
- api_version = self._get_api_version('skus')
407
- if api_version == '2017-10-01':
408
- from ..v2017_10_01.aio.operations import SkusOperations as OperationClass
409
- elif api_version == '2019-06-01':
410
- from ..v2019_06_01.aio.operations import SkusOperations as OperationClass
411
- elif api_version == '2024-01-01':
412
- from ..v2024_01_01.aio.operations import SkusOperations as OperationClass
413
- else:
414
- raise ValueError("API version {} does not have operation group 'skus'".format(api_version))
415
- self._config.api_version = api_version
416
- return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)), api_version)
417
-
418
- @property
419
- def storage_accounts(self):
420
- """Instance depends on the API version:
421
-
422
- * 2016-01-01: :class:`StorageAccountsOperations<azure.mgmt.storage.v2016_01_01.aio.operations.StorageAccountsOperations>`
423
- * 2017-10-01: :class:`StorageAccountsOperations<azure.mgmt.storage.v2017_10_01.aio.operations.StorageAccountsOperations>`
424
- * 2019-06-01: :class:`StorageAccountsOperations<azure.mgmt.storage.v2019_06_01.aio.operations.StorageAccountsOperations>`
425
- * 2024-01-01: :class:`StorageAccountsOperations<azure.mgmt.storage.v2024_01_01.aio.operations.StorageAccountsOperations>`
426
- """
427
- api_version = self._get_api_version('storage_accounts')
428
- if api_version == '2016-01-01':
429
- from ..v2016_01_01.aio.operations import StorageAccountsOperations as OperationClass
430
- elif api_version == '2017-10-01':
431
- from ..v2017_10_01.aio.operations import StorageAccountsOperations as OperationClass
432
- elif api_version == '2019-06-01':
433
- from ..v2019_06_01.aio.operations import StorageAccountsOperations as OperationClass
434
- elif api_version == '2024-01-01':
435
- from ..v2024_01_01.aio.operations import StorageAccountsOperations as OperationClass
436
- else:
437
- raise ValueError("API version {} does not have operation group 'storage_accounts'".format(api_version))
438
- self._config.api_version = api_version
439
- return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)), api_version)
440
-
441
- @property
442
- def storage_task_assignment_instances_report(self):
443
- """Instance depends on the API version:
444
-
445
- * 2024-01-01: :class:`StorageTaskAssignmentInstancesReportOperations<azure.mgmt.storage.v2024_01_01.aio.operations.StorageTaskAssignmentInstancesReportOperations>`
446
- """
447
- api_version = self._get_api_version('storage_task_assignment_instances_report')
448
- if api_version == '2024-01-01':
449
- from ..v2024_01_01.aio.operations import StorageTaskAssignmentInstancesReportOperations as OperationClass
450
- else:
451
- raise ValueError("API version {} does not have operation group 'storage_task_assignment_instances_report'".format(api_version))
452
- self._config.api_version = api_version
453
- return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)), api_version)
454
-
455
- @property
456
- def storage_task_assignments(self):
457
- """Instance depends on the API version:
458
-
459
- * 2024-01-01: :class:`StorageTaskAssignmentsOperations<azure.mgmt.storage.v2024_01_01.aio.operations.StorageTaskAssignmentsOperations>`
460
- """
461
- api_version = self._get_api_version('storage_task_assignments')
462
- if api_version == '2024-01-01':
463
- from ..v2024_01_01.aio.operations import StorageTaskAssignmentsOperations as OperationClass
464
- else:
465
- raise ValueError("API version {} does not have operation group 'storage_task_assignments'".format(api_version))
466
- self._config.api_version = api_version
467
- return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)), api_version)
468
-
469
- @property
470
- def storage_task_assignments_instances_report(self):
471
- """Instance depends on the API version:
472
-
473
- * 2024-01-01: :class:`StorageTaskAssignmentsInstancesReportOperations<azure.mgmt.storage.v2024_01_01.aio.operations.StorageTaskAssignmentsInstancesReportOperations>`
474
- """
475
- api_version = self._get_api_version('storage_task_assignments_instances_report')
476
- if api_version == '2024-01-01':
477
- from ..v2024_01_01.aio.operations import StorageTaskAssignmentsInstancesReportOperations as OperationClass
478
- else:
479
- raise ValueError("API version {} does not have operation group 'storage_task_assignments_instances_report'".format(api_version))
480
- self._config.api_version = api_version
481
- return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)), api_version)
482
-
483
- @property
484
- def table(self):
485
- """Instance depends on the API version:
486
-
487
- * 2019-06-01: :class:`TableOperations<azure.mgmt.storage.v2019_06_01.aio.operations.TableOperations>`
488
- * 2024-01-01: :class:`TableOperations<azure.mgmt.storage.v2024_01_01.aio.operations.TableOperations>`
489
- """
490
- api_version = self._get_api_version('table')
491
- if api_version == '2019-06-01':
492
- from ..v2019_06_01.aio.operations import TableOperations as OperationClass
493
- elif api_version == '2024-01-01':
494
- from ..v2024_01_01.aio.operations import TableOperations as OperationClass
495
- else:
496
- raise ValueError("API version {} does not have operation group 'table'".format(api_version))
497
- self._config.api_version = api_version
498
- return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)), api_version)
163
+ client_models = {k: v for k, v in _models.__dict__.items() if isinstance(v, type)}
164
+ self._serialize = Serializer(client_models)
165
+ self._deserialize = Deserializer(client_models)
166
+ self._serialize.client_side_validation = False
167
+ self.blob_services = BlobServicesOperations(self._client, self._config, self._serialize, self._deserialize)
168
+ self.blob_containers = BlobContainersOperations(self._client, self._config, self._serialize, self._deserialize)
169
+ self.file_services = FileServicesOperations(self._client, self._config, self._serialize, self._deserialize)
170
+ self.file_shares = FileSharesOperations(self._client, self._config, self._serialize, self._deserialize)
171
+ self.queue_services = QueueServicesOperations(self._client, self._config, self._serialize, self._deserialize)
172
+ self.queue = QueueOperations(self._client, self._config, self._serialize, self._deserialize)
173
+ self.operations = Operations(self._client, self._config, self._serialize, self._deserialize)
174
+ self.skus = SkusOperations(self._client, self._config, self._serialize, self._deserialize)
175
+ self.storage_accounts = StorageAccountsOperations(
176
+ self._client, self._config, self._serialize, self._deserialize
177
+ )
178
+ self.deleted_accounts = DeletedAccountsOperations(
179
+ self._client, self._config, self._serialize, self._deserialize
180
+ )
181
+ self.usages = UsagesOperations(self._client, self._config, self._serialize, self._deserialize)
182
+ self.management_policies = ManagementPoliciesOperations(
183
+ self._client, self._config, self._serialize, self._deserialize
184
+ )
185
+ self.blob_inventory_policies = BlobInventoryPoliciesOperations(
186
+ self._client, self._config, self._serialize, self._deserialize
187
+ )
188
+ self.private_endpoint_connections = PrivateEndpointConnectionsOperations(
189
+ self._client, self._config, self._serialize, self._deserialize
190
+ )
191
+ self.private_link_resources = PrivateLinkResourcesOperations(
192
+ self._client, self._config, self._serialize, self._deserialize
193
+ )
194
+ self.object_replication_policies = ObjectReplicationPoliciesOperations(
195
+ self._client, self._config, self._serialize, self._deserialize
196
+ )
197
+ self.local_users = LocalUsersOperations(self._client, self._config, self._serialize, self._deserialize)
198
+ self.encryption_scopes = EncryptionScopesOperations(
199
+ self._client, self._config, self._serialize, self._deserialize
200
+ )
201
+ self.table_services = TableServicesOperations(self._client, self._config, self._serialize, self._deserialize)
202
+ self.table = TableOperations(self._client, self._config, self._serialize, self._deserialize)
203
+ self.network_security_perimeter_configurations = NetworkSecurityPerimeterConfigurationsOperations(
204
+ self._client, self._config, self._serialize, self._deserialize
205
+ )
206
+ self.storage_task_assignments = StorageTaskAssignmentsOperations(
207
+ self._client, self._config, self._serialize, self._deserialize
208
+ )
209
+ self.storage_task_assignments_instances_report = StorageTaskAssignmentsInstancesReportOperations(
210
+ self._client, self._config, self._serialize, self._deserialize
211
+ )
212
+ self.storage_task_assignment_instances_report = StorageTaskAssignmentInstancesReportOperations(
213
+ self._client, self._config, self._serialize, self._deserialize
214
+ )
499
215
 
500
- @property
501
- def table_services(self):
502
- """Instance depends on the API version:
216
+ def _send_request(
217
+ self, request: HttpRequest, *, stream: bool = False, **kwargs: Any
218
+ ) -> Awaitable[AsyncHttpResponse]:
219
+ """Runs the network request through the client's chained policies.
503
220
 
504
- * 2019-06-01: :class:`TableServicesOperations<azure.mgmt.storage.v2019_06_01.aio.operations.TableServicesOperations>`
505
- * 2024-01-01: :class:`TableServicesOperations<azure.mgmt.storage.v2024_01_01.aio.operations.TableServicesOperations>`
506
- """
507
- api_version = self._get_api_version('table_services')
508
- if api_version == '2019-06-01':
509
- from ..v2019_06_01.aio.operations import TableServicesOperations as OperationClass
510
- elif api_version == '2024-01-01':
511
- from ..v2024_01_01.aio.operations import TableServicesOperations as OperationClass
512
- else:
513
- raise ValueError("API version {} does not have operation group 'table_services'".format(api_version))
514
- self._config.api_version = api_version
515
- return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)), api_version)
221
+ >>> from azure.core.rest import HttpRequest
222
+ >>> request = HttpRequest("GET", "https://www.example.org/")
223
+ <HttpRequest [GET], url: 'https://www.example.org/'>
224
+ >>> response = await client._send_request(request)
225
+ <AsyncHttpResponse: 200 OK>
516
226
 
517
- @property
518
- def usage(self):
519
- """Instance depends on the API version:
227
+ For more information on this code flow, see https://aka.ms/azsdk/dpcodegen/python/send_request
520
228
 
521
- * 2016-01-01: :class:`UsageOperations<azure.mgmt.storage.v2016_01_01.aio.operations.UsageOperations>`
522
- * 2017-10-01: :class:`UsageOperations<azure.mgmt.storage.v2017_10_01.aio.operations.UsageOperations>`
229
+ :param request: The network request you want to make. Required.
230
+ :type request: ~azure.core.rest.HttpRequest
231
+ :keyword bool stream: Whether the response payload will be streamed. Defaults to False.
232
+ :return: The response of your network call. Does not do error handling on your response.
233
+ :rtype: ~azure.core.rest.AsyncHttpResponse
523
234
  """
524
- api_version = self._get_api_version('usage')
525
- if api_version == '2016-01-01':
526
- from ..v2016_01_01.aio.operations import UsageOperations as OperationClass
527
- elif api_version == '2017-10-01':
528
- from ..v2017_10_01.aio.operations import UsageOperations as OperationClass
529
- else:
530
- raise ValueError("API version {} does not have operation group 'usage'".format(api_version))
531
- self._config.api_version = api_version
532
- return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)), api_version)
533
-
534
- @property
535
- def usages(self):
536
- """Instance depends on the API version:
537
235
 
538
- * 2019-06-01: :class:`UsagesOperations<azure.mgmt.storage.v2019_06_01.aio.operations.UsagesOperations>`
539
- * 2024-01-01: :class:`UsagesOperations<azure.mgmt.storage.v2024_01_01.aio.operations.UsagesOperations>`
540
- """
541
- api_version = self._get_api_version('usages')
542
- if api_version == '2019-06-01':
543
- from ..v2019_06_01.aio.operations import UsagesOperations as OperationClass
544
- elif api_version == '2024-01-01':
545
- from ..v2024_01_01.aio.operations import UsagesOperations as OperationClass
546
- else:
547
- raise ValueError("API version {} does not have operation group 'usages'".format(api_version))
548
- self._config.api_version = api_version
549
- return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)), api_version)
236
+ request_copy = deepcopy(request)
237
+ request_copy.url = self._client.format_url(request_copy.url)
238
+ return self._client.send_request(request_copy, stream=stream, **kwargs) # type: ignore
550
239
 
551
- async def close(self):
240
+ async def close(self) -> None:
552
241
  await self._client.close()
553
- async def __aenter__(self):
242
+
243
+ async def __aenter__(self) -> Self:
554
244
  await self._client.__aenter__()
555
245
  return self
556
- async def __aexit__(self, *exc_details):
246
+
247
+ async def __aexit__(self, *exc_details: Any) -> None:
557
248
  await self._client.__aexit__(*exc_details)