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,217 +0,0 @@
1
- # coding=utf-8
2
- # --------------------------------------------------------------------------
3
- # Copyright (c) Microsoft Corporation. All rights reserved.
4
- # Licensed under the MIT License. See License.txt in the project root for license information.
5
- # Code generated by Microsoft (R) AutoRest Code Generator.
6
- # Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
- # --------------------------------------------------------------------------
8
-
9
- from copy import deepcopy
10
- from typing import Any, Awaitable, TYPE_CHECKING
11
- from typing_extensions import Self
12
-
13
- from azure.core.pipeline import policies
14
- from azure.core.rest import AsyncHttpResponse, HttpRequest
15
- from azure.mgmt.core import AsyncARMPipelineClient
16
- from azure.mgmt.core.policies import AsyncARMAutoResourceProviderRegistrationPolicy
17
-
18
- from .. import models as _models
19
- from ..._serialization import Deserializer, Serializer
20
- from ._configuration import StorageManagementClientConfiguration
21
- from .operations import (
22
- BlobContainersOperations,
23
- BlobInventoryPoliciesOperations,
24
- BlobServicesOperations,
25
- EncryptionScopesOperations,
26
- FileServicesOperations,
27
- FileSharesOperations,
28
- ManagementPoliciesOperations,
29
- ObjectReplicationPoliciesOperations,
30
- Operations,
31
- PrivateEndpointConnectionsOperations,
32
- PrivateLinkResourcesOperations,
33
- QueueOperations,
34
- QueueServicesOperations,
35
- SkusOperations,
36
- StorageAccountsOperations,
37
- TableOperations,
38
- TableServicesOperations,
39
- UsagesOperations,
40
- )
41
-
42
- if TYPE_CHECKING:
43
- from azure.core.credentials_async import AsyncTokenCredential
44
-
45
-
46
- class StorageManagementClient: # pylint: disable=too-many-instance-attributes
47
- """The Azure Storage Management API.
48
-
49
- :ivar operations: Operations operations
50
- :vartype operations: azure.mgmt.storage.v2019_06_01.aio.operations.Operations
51
- :ivar skus: SkusOperations operations
52
- :vartype skus: azure.mgmt.storage.v2019_06_01.aio.operations.SkusOperations
53
- :ivar storage_accounts: StorageAccountsOperations operations
54
- :vartype storage_accounts:
55
- azure.mgmt.storage.v2019_06_01.aio.operations.StorageAccountsOperations
56
- :ivar usages: UsagesOperations operations
57
- :vartype usages: azure.mgmt.storage.v2019_06_01.aio.operations.UsagesOperations
58
- :ivar management_policies: ManagementPoliciesOperations operations
59
- :vartype management_policies:
60
- azure.mgmt.storage.v2019_06_01.aio.operations.ManagementPoliciesOperations
61
- :ivar blob_inventory_policies: BlobInventoryPoliciesOperations operations
62
- :vartype blob_inventory_policies:
63
- azure.mgmt.storage.v2019_06_01.aio.operations.BlobInventoryPoliciesOperations
64
- :ivar private_endpoint_connections: PrivateEndpointConnectionsOperations operations
65
- :vartype private_endpoint_connections:
66
- azure.mgmt.storage.v2019_06_01.aio.operations.PrivateEndpointConnectionsOperations
67
- :ivar private_link_resources: PrivateLinkResourcesOperations operations
68
- :vartype private_link_resources:
69
- azure.mgmt.storage.v2019_06_01.aio.operations.PrivateLinkResourcesOperations
70
- :ivar object_replication_policies: ObjectReplicationPoliciesOperations operations
71
- :vartype object_replication_policies:
72
- azure.mgmt.storage.v2019_06_01.aio.operations.ObjectReplicationPoliciesOperations
73
- :ivar encryption_scopes: EncryptionScopesOperations operations
74
- :vartype encryption_scopes:
75
- azure.mgmt.storage.v2019_06_01.aio.operations.EncryptionScopesOperations
76
- :ivar blob_services: BlobServicesOperations operations
77
- :vartype blob_services: azure.mgmt.storage.v2019_06_01.aio.operations.BlobServicesOperations
78
- :ivar blob_containers: BlobContainersOperations operations
79
- :vartype blob_containers:
80
- azure.mgmt.storage.v2019_06_01.aio.operations.BlobContainersOperations
81
- :ivar file_services: FileServicesOperations operations
82
- :vartype file_services: azure.mgmt.storage.v2019_06_01.aio.operations.FileServicesOperations
83
- :ivar file_shares: FileSharesOperations operations
84
- :vartype file_shares: azure.mgmt.storage.v2019_06_01.aio.operations.FileSharesOperations
85
- :ivar queue_services: QueueServicesOperations operations
86
- :vartype queue_services: azure.mgmt.storage.v2019_06_01.aio.operations.QueueServicesOperations
87
- :ivar queue: QueueOperations operations
88
- :vartype queue: azure.mgmt.storage.v2019_06_01.aio.operations.QueueOperations
89
- :ivar table_services: TableServicesOperations operations
90
- :vartype table_services: azure.mgmt.storage.v2019_06_01.aio.operations.TableServicesOperations
91
- :ivar table: TableOperations operations
92
- :vartype table: azure.mgmt.storage.v2019_06_01.aio.operations.TableOperations
93
- :param credential: Credential needed for the client to connect to Azure. Required.
94
- :type credential: ~azure.core.credentials_async.AsyncTokenCredential
95
- :param subscription_id: The ID of the target subscription. Required.
96
- :type subscription_id: str
97
- :param base_url: Service URL. Default value is "https://management.azure.com".
98
- :type base_url: str
99
- :keyword api_version: Api Version. Default value is "2019-06-01". Note that overriding this
100
- default value may result in unsupported behavior.
101
- :paramtype api_version: str
102
- :keyword int polling_interval: Default waiting time between two polls for LRO operations if no
103
- Retry-After header is present.
104
- """
105
-
106
- def __init__(
107
- self,
108
- credential: "AsyncTokenCredential",
109
- subscription_id: str,
110
- base_url: str = "https://management.azure.com",
111
- **kwargs: Any
112
- ) -> None:
113
- self._config = StorageManagementClientConfiguration(
114
- credential=credential, subscription_id=subscription_id, **kwargs
115
- )
116
- _policies = kwargs.pop("policies", None)
117
- if _policies is None:
118
- _policies = [
119
- policies.RequestIdPolicy(**kwargs),
120
- self._config.headers_policy,
121
- self._config.user_agent_policy,
122
- self._config.proxy_policy,
123
- policies.ContentDecodePolicy(**kwargs),
124
- AsyncARMAutoResourceProviderRegistrationPolicy(),
125
- self._config.redirect_policy,
126
- self._config.retry_policy,
127
- self._config.authentication_policy,
128
- self._config.custom_hook_policy,
129
- self._config.logging_policy,
130
- policies.DistributedTracingPolicy(**kwargs),
131
- policies.SensitiveHeaderCleanupPolicy(**kwargs) if self._config.redirect_policy else None,
132
- self._config.http_logging_policy,
133
- ]
134
- self._client: AsyncARMPipelineClient = AsyncARMPipelineClient(base_url=base_url, policies=_policies, **kwargs)
135
-
136
- client_models = {k: v for k, v in _models.__dict__.items() if isinstance(v, type)}
137
- self._serialize = Serializer(client_models)
138
- self._deserialize = Deserializer(client_models)
139
- self._serialize.client_side_validation = False
140
- self.operations = Operations(self._client, self._config, self._serialize, self._deserialize, "2019-06-01")
141
- self.skus = SkusOperations(self._client, self._config, self._serialize, self._deserialize, "2019-06-01")
142
- self.storage_accounts = StorageAccountsOperations(
143
- self._client, self._config, self._serialize, self._deserialize, "2019-06-01"
144
- )
145
- self.usages = UsagesOperations(self._client, self._config, self._serialize, self._deserialize, "2019-06-01")
146
- self.management_policies = ManagementPoliciesOperations(
147
- self._client, self._config, self._serialize, self._deserialize, "2019-06-01"
148
- )
149
- self.blob_inventory_policies = BlobInventoryPoliciesOperations(
150
- self._client, self._config, self._serialize, self._deserialize, "2019-06-01"
151
- )
152
- self.private_endpoint_connections = PrivateEndpointConnectionsOperations(
153
- self._client, self._config, self._serialize, self._deserialize, "2019-06-01"
154
- )
155
- self.private_link_resources = PrivateLinkResourcesOperations(
156
- self._client, self._config, self._serialize, self._deserialize, "2019-06-01"
157
- )
158
- self.object_replication_policies = ObjectReplicationPoliciesOperations(
159
- self._client, self._config, self._serialize, self._deserialize, "2019-06-01"
160
- )
161
- self.encryption_scopes = EncryptionScopesOperations(
162
- self._client, self._config, self._serialize, self._deserialize, "2019-06-01"
163
- )
164
- self.blob_services = BlobServicesOperations(
165
- self._client, self._config, self._serialize, self._deserialize, "2019-06-01"
166
- )
167
- self.blob_containers = BlobContainersOperations(
168
- self._client, self._config, self._serialize, self._deserialize, "2019-06-01"
169
- )
170
- self.file_services = FileServicesOperations(
171
- self._client, self._config, self._serialize, self._deserialize, "2019-06-01"
172
- )
173
- self.file_shares = FileSharesOperations(
174
- self._client, self._config, self._serialize, self._deserialize, "2019-06-01"
175
- )
176
- self.queue_services = QueueServicesOperations(
177
- self._client, self._config, self._serialize, self._deserialize, "2019-06-01"
178
- )
179
- self.queue = QueueOperations(self._client, self._config, self._serialize, self._deserialize, "2019-06-01")
180
- self.table_services = TableServicesOperations(
181
- self._client, self._config, self._serialize, self._deserialize, "2019-06-01"
182
- )
183
- self.table = TableOperations(self._client, self._config, self._serialize, self._deserialize, "2019-06-01")
184
-
185
- def _send_request(
186
- self, request: HttpRequest, *, stream: bool = False, **kwargs: Any
187
- ) -> Awaitable[AsyncHttpResponse]:
188
- """Runs the network request through the client's chained policies.
189
-
190
- >>> from azure.core.rest import HttpRequest
191
- >>> request = HttpRequest("GET", "https://www.example.org/")
192
- <HttpRequest [GET], url: 'https://www.example.org/'>
193
- >>> response = await client._send_request(request)
194
- <AsyncHttpResponse: 200 OK>
195
-
196
- For more information on this code flow, see https://aka.ms/azsdk/dpcodegen/python/send_request
197
-
198
- :param request: The network request you want to make. Required.
199
- :type request: ~azure.core.rest.HttpRequest
200
- :keyword bool stream: Whether the response payload will be streamed. Defaults to False.
201
- :return: The response of your network call. Does not do error handling on your response.
202
- :rtype: ~azure.core.rest.AsyncHttpResponse
203
- """
204
-
205
- request_copy = deepcopy(request)
206
- request_copy.url = self._client.format_url(request_copy.url)
207
- return self._client.send_request(request_copy, stream=stream, **kwargs) # type: ignore
208
-
209
- async def close(self) -> None:
210
- await self._client.close()
211
-
212
- async def __aenter__(self) -> Self:
213
- await self._client.__aenter__()
214
- return self
215
-
216
- async def __aexit__(self, *exc_details: Any) -> None:
217
- await self._client.__aexit__(*exc_details)
@@ -1,59 +0,0 @@
1
- # coding=utf-8
2
- # --------------------------------------------------------------------------
3
- # Copyright (c) Microsoft Corporation. All rights reserved.
4
- # Licensed under the MIT License. See License.txt in the project root for license information.
5
- # Code generated by Microsoft (R) AutoRest Code Generator.
6
- # Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
- # --------------------------------------------------------------------------
8
- # pylint: disable=wrong-import-position
9
-
10
- from typing import TYPE_CHECKING
11
-
12
- if TYPE_CHECKING:
13
- from ._patch import * # pylint: disable=unused-wildcard-import
14
-
15
- from ._operations import Operations # type: ignore
16
- from ._skus_operations import SkusOperations # type: ignore
17
- from ._storage_accounts_operations import StorageAccountsOperations # type: ignore
18
- from ._usages_operations import UsagesOperations # type: ignore
19
- from ._management_policies_operations import ManagementPoliciesOperations # type: ignore
20
- from ._blob_inventory_policies_operations import BlobInventoryPoliciesOperations # type: ignore
21
- from ._private_endpoint_connections_operations import PrivateEndpointConnectionsOperations # type: ignore
22
- from ._private_link_resources_operations import PrivateLinkResourcesOperations # type: ignore
23
- from ._object_replication_policies_operations import ObjectReplicationPoliciesOperations # type: ignore
24
- from ._encryption_scopes_operations import EncryptionScopesOperations # type: ignore
25
- from ._blob_services_operations import BlobServicesOperations # type: ignore
26
- from ._blob_containers_operations import BlobContainersOperations # type: ignore
27
- from ._file_services_operations import FileServicesOperations # type: ignore
28
- from ._file_shares_operations import FileSharesOperations # type: ignore
29
- from ._queue_services_operations import QueueServicesOperations # type: ignore
30
- from ._queue_operations import QueueOperations # type: ignore
31
- from ._table_services_operations import TableServicesOperations # type: ignore
32
- from ._table_operations import TableOperations # type: ignore
33
-
34
- from ._patch import __all__ as _patch_all
35
- from ._patch import *
36
- from ._patch import patch_sdk as _patch_sdk
37
-
38
- __all__ = [
39
- "Operations",
40
- "SkusOperations",
41
- "StorageAccountsOperations",
42
- "UsagesOperations",
43
- "ManagementPoliciesOperations",
44
- "BlobInventoryPoliciesOperations",
45
- "PrivateEndpointConnectionsOperations",
46
- "PrivateLinkResourcesOperations",
47
- "ObjectReplicationPoliciesOperations",
48
- "EncryptionScopesOperations",
49
- "BlobServicesOperations",
50
- "BlobContainersOperations",
51
- "FileServicesOperations",
52
- "FileSharesOperations",
53
- "QueueServicesOperations",
54
- "QueueOperations",
55
- "TableServicesOperations",
56
- "TableOperations",
57
- ]
58
- __all__.extend([p for p in _patch_all if p not in __all__]) # pyright: ignore
59
- _patch_sdk()