azure-mgmt-storage 21.2.0__py3-none-any.whl → 22.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 (957) hide show
  1. azure/mgmt/storage/_serialization.py +282 -169
  2. azure/mgmt/storage/_storage_management_client.py +16 -795
  3. azure/mgmt/storage/_version.py +1 -1
  4. azure/mgmt/storage/aio/_storage_management_client.py +16 -795
  5. azure/mgmt/storage/models.py +1 -1
  6. azure/mgmt/storage/v2016_01_01/__init__.py +9 -3
  7. azure/mgmt/storage/v2016_01_01/_configuration.py +1 -2
  8. azure/mgmt/storage/v2016_01_01/_storage_management_client.py +3 -3
  9. azure/mgmt/storage/v2016_01_01/_version.py +1 -1
  10. azure/mgmt/storage/v2016_01_01/aio/__init__.py +9 -3
  11. azure/mgmt/storage/v2016_01_01/aio/_configuration.py +1 -2
  12. azure/mgmt/storage/v2016_01_01/aio/_storage_management_client.py +3 -3
  13. azure/mgmt/storage/v2016_01_01/aio/operations/__init__.py +10 -4
  14. azure/mgmt/storage/v2016_01_01/aio/operations/_storage_accounts_operations.py +32 -41
  15. azure/mgmt/storage/v2016_01_01/aio/operations/_usage_operations.py +4 -9
  16. azure/mgmt/storage/v2016_01_01/models/__init__.py +43 -32
  17. azure/mgmt/storage/v2016_01_01/models/_models_py3.py +1 -3
  18. azure/mgmt/storage/v2016_01_01/operations/__init__.py +10 -4
  19. azure/mgmt/storage/v2016_01_01/operations/_storage_accounts_operations.py +31 -38
  20. azure/mgmt/storage/v2016_01_01/operations/_usage_operations.py +4 -9
  21. azure/mgmt/storage/v2016_01_01/py.typed +1 -0
  22. azure/mgmt/storage/v2017_10_01/__init__.py +9 -3
  23. azure/mgmt/storage/v2017_10_01/_configuration.py +1 -2
  24. azure/mgmt/storage/v2017_10_01/_storage_management.py +3 -3
  25. azure/mgmt/storage/v2017_10_01/_version.py +1 -1
  26. azure/mgmt/storage/v2017_10_01/aio/__init__.py +9 -3
  27. azure/mgmt/storage/v2017_10_01/aio/_configuration.py +1 -2
  28. azure/mgmt/storage/v2017_10_01/aio/_storage_management.py +3 -3
  29. azure/mgmt/storage/v2017_10_01/aio/operations/__init__.py +12 -6
  30. azure/mgmt/storage/v2017_10_01/aio/operations/_operations.py +4 -9
  31. azure/mgmt/storage/v2017_10_01/aio/operations/_skus_operations.py +4 -9
  32. azure/mgmt/storage/v2017_10_01/aio/operations/_storage_accounts_operations.py +36 -47
  33. azure/mgmt/storage/v2017_10_01/aio/operations/_usage_operations.py +4 -9
  34. azure/mgmt/storage/v2017_10_01/models/__init__.py +69 -58
  35. azure/mgmt/storage/v2017_10_01/models/_models_py3.py +3 -4
  36. azure/mgmt/storage/v2017_10_01/operations/__init__.py +12 -6
  37. azure/mgmt/storage/v2017_10_01/operations/_operations.py +4 -9
  38. azure/mgmt/storage/v2017_10_01/operations/_skus_operations.py +4 -9
  39. azure/mgmt/storage/v2017_10_01/operations/_storage_accounts_operations.py +35 -44
  40. azure/mgmt/storage/v2017_10_01/operations/_usage_operations.py +4 -9
  41. azure/mgmt/storage/v2017_10_01/py.typed +1 -0
  42. azure/mgmt/storage/v2019_06_01/__init__.py +9 -3
  43. azure/mgmt/storage/v2019_06_01/_configuration.py +1 -2
  44. azure/mgmt/storage/v2019_06_01/_storage_management_client.py +3 -3
  45. azure/mgmt/storage/v2019_06_01/_version.py +1 -1
  46. azure/mgmt/storage/v2019_06_01/aio/__init__.py +9 -3
  47. azure/mgmt/storage/v2019_06_01/aio/_configuration.py +1 -2
  48. azure/mgmt/storage/v2019_06_01/aio/_storage_management_client.py +3 -3
  49. azure/mgmt/storage/v2019_06_01/aio/operations/__init__.py +26 -20
  50. azure/mgmt/storage/v2019_06_01/aio/operations/_blob_containers_operations.py +29 -51
  51. azure/mgmt/storage/v2019_06_01/aio/operations/_blob_inventory_policies_operations.py +10 -18
  52. azure/mgmt/storage/v2019_06_01/aio/operations/_blob_services_operations.py +8 -15
  53. azure/mgmt/storage/v2019_06_01/aio/operations/_encryption_scopes_operations.py +10 -22
  54. azure/mgmt/storage/v2019_06_01/aio/operations/_file_services_operations.py +9 -15
  55. azure/mgmt/storage/v2019_06_01/aio/operations/_file_shares_operations.py +16 -32
  56. azure/mgmt/storage/v2019_06_01/aio/operations/_management_policies_operations.py +9 -15
  57. azure/mgmt/storage/v2019_06_01/aio/operations/_object_replication_policies_operations.py +10 -18
  58. azure/mgmt/storage/v2019_06_01/aio/operations/_operations.py +4 -9
  59. azure/mgmt/storage/v2019_06_01/aio/operations/_private_endpoint_connections_operations.py +10 -18
  60. azure/mgmt/storage/v2019_06_01/aio/operations/_private_link_resources_operations.py +5 -9
  61. azure/mgmt/storage/v2019_06_01/aio/operations/_queue_operations.py +12 -23
  62. azure/mgmt/storage/v2019_06_01/aio/operations/_queue_services_operations.py +9 -15
  63. azure/mgmt/storage/v2019_06_01/aio/operations/_skus_operations.py +4 -9
  64. azure/mgmt/storage/v2019_06_01/aio/operations/_storage_accounts_operations.py +80 -71
  65. azure/mgmt/storage/v2019_06_01/aio/operations/_table_operations.py +12 -23
  66. azure/mgmt/storage/v2019_06_01/aio/operations/_table_services_operations.py +9 -15
  67. azure/mgmt/storage/v2019_06_01/aio/operations/_usages_operations.py +4 -9
  68. azure/mgmt/storage/v2019_06_01/models/__init__.py +181 -170
  69. azure/mgmt/storage/v2019_06_01/models/_models_py3.py +12 -13
  70. azure/mgmt/storage/v2019_06_01/models/_storage_management_client_enums.py +1 -0
  71. azure/mgmt/storage/v2019_06_01/operations/__init__.py +26 -20
  72. azure/mgmt/storage/v2019_06_01/operations/_blob_containers_operations.py +28 -48
  73. azure/mgmt/storage/v2019_06_01/operations/_blob_inventory_policies_operations.py +9 -17
  74. azure/mgmt/storage/v2019_06_01/operations/_blob_services_operations.py +8 -15
  75. azure/mgmt/storage/v2019_06_01/operations/_encryption_scopes_operations.py +10 -22
  76. azure/mgmt/storage/v2019_06_01/operations/_file_services_operations.py +9 -15
  77. azure/mgmt/storage/v2019_06_01/operations/_file_shares_operations.py +14 -28
  78. azure/mgmt/storage/v2019_06_01/operations/_management_policies_operations.py +8 -14
  79. azure/mgmt/storage/v2019_06_01/operations/_object_replication_policies_operations.py +9 -17
  80. azure/mgmt/storage/v2019_06_01/operations/_operations.py +4 -9
  81. azure/mgmt/storage/v2019_06_01/operations/_private_endpoint_connections_operations.py +9 -17
  82. azure/mgmt/storage/v2019_06_01/operations/_private_link_resources_operations.py +5 -9
  83. azure/mgmt/storage/v2019_06_01/operations/_queue_operations.py +11 -20
  84. azure/mgmt/storage/v2019_06_01/operations/_queue_services_operations.py +9 -15
  85. azure/mgmt/storage/v2019_06_01/operations/_skus_operations.py +4 -9
  86. azure/mgmt/storage/v2019_06_01/operations/_storage_accounts_operations.py +64 -66
  87. azure/mgmt/storage/v2019_06_01/operations/_table_operations.py +11 -20
  88. azure/mgmt/storage/v2019_06_01/operations/_table_services_operations.py +9 -15
  89. azure/mgmt/storage/v2019_06_01/operations/_usages_operations.py +4 -9
  90. azure/mgmt/storage/v2019_06_01/py.typed +1 -0
  91. azure/mgmt/storage/v2023_05_01/__init__.py +9 -3
  92. azure/mgmt/storage/v2023_05_01/_configuration.py +1 -2
  93. azure/mgmt/storage/v2023_05_01/_storage_management_client.py +3 -3
  94. azure/mgmt/storage/v2023_05_01/_version.py +1 -1
  95. azure/mgmt/storage/v2023_05_01/aio/__init__.py +9 -3
  96. azure/mgmt/storage/v2023_05_01/aio/_configuration.py +1 -2
  97. azure/mgmt/storage/v2023_05_01/aio/_storage_management_client.py +3 -3
  98. azure/mgmt/storage/v2023_05_01/aio/operations/__init__.py +32 -26
  99. azure/mgmt/storage/v2023_05_01/aio/operations/_blob_containers_operations.py +88 -86
  100. azure/mgmt/storage/v2023_05_01/aio/operations/_blob_inventory_policies_operations.py +10 -18
  101. azure/mgmt/storage/v2023_05_01/aio/operations/_blob_services_operations.py +8 -15
  102. azure/mgmt/storage/v2023_05_01/aio/operations/_deleted_accounts_operations.py +6 -12
  103. azure/mgmt/storage/v2023_05_01/aio/operations/_encryption_scopes_operations.py +10 -22
  104. azure/mgmt/storage/v2023_05_01/aio/operations/_file_services_operations.py +9 -15
  105. azure/mgmt/storage/v2023_05_01/aio/operations/_file_shares_operations.py +18 -33
  106. azure/mgmt/storage/v2023_05_01/aio/operations/_local_users_operations.py +14 -26
  107. azure/mgmt/storage/v2023_05_01/aio/operations/_management_policies_operations.py +9 -15
  108. azure/mgmt/storage/v2023_05_01/aio/operations/_network_security_perimeter_configurations_operations.py +26 -20
  109. azure/mgmt/storage/v2023_05_01/aio/operations/_object_replication_policies_operations.py +10 -18
  110. azure/mgmt/storage/v2023_05_01/aio/operations/_operations.py +4 -9
  111. azure/mgmt/storage/v2023_05_01/aio/operations/_private_endpoint_connections_operations.py +10 -18
  112. azure/mgmt/storage/v2023_05_01/aio/operations/_private_link_resources_operations.py +5 -9
  113. azure/mgmt/storage/v2023_05_01/aio/operations/_queue_operations.py +12 -23
  114. azure/mgmt/storage/v2023_05_01/aio/operations/_queue_services_operations.py +9 -15
  115. azure/mgmt/storage/v2023_05_01/aio/operations/_skus_operations.py +4 -9
  116. azure/mgmt/storage/v2023_05_01/aio/operations/_storage_accounts_operations.py +133 -98
  117. azure/mgmt/storage/v2023_05_01/aio/operations/_storage_task_assignment_instances_report_operations.py +7 -11
  118. azure/mgmt/storage/v2023_05_01/aio/operations/_storage_task_assignments_instances_report_operations.py +7 -11
  119. azure/mgmt/storage/v2023_05_01/aio/operations/_storage_task_assignments_operations.py +53 -45
  120. azure/mgmt/storage/v2023_05_01/aio/operations/_table_operations.py +12 -23
  121. azure/mgmt/storage/v2023_05_01/aio/operations/_table_services_operations.py +9 -15
  122. azure/mgmt/storage/v2023_05_01/aio/operations/_usages_operations.py +4 -9
  123. azure/mgmt/storage/v2023_05_01/models/__init__.py +273 -262
  124. azure/mgmt/storage/v2023_05_01/models/_models_py3.py +18 -19
  125. azure/mgmt/storage/v2023_05_01/models/_storage_management_client_enums.py +2 -0
  126. azure/mgmt/storage/v2023_05_01/operations/__init__.py +32 -26
  127. azure/mgmt/storage/v2023_05_01/operations/_blob_containers_operations.py +74 -83
  128. azure/mgmt/storage/v2023_05_01/operations/_blob_inventory_policies_operations.py +9 -17
  129. azure/mgmt/storage/v2023_05_01/operations/_blob_services_operations.py +8 -15
  130. azure/mgmt/storage/v2023_05_01/operations/_deleted_accounts_operations.py +6 -12
  131. azure/mgmt/storage/v2023_05_01/operations/_encryption_scopes_operations.py +10 -22
  132. azure/mgmt/storage/v2023_05_01/operations/_file_services_operations.py +9 -15
  133. azure/mgmt/storage/v2023_05_01/operations/_file_shares_operations.py +17 -31
  134. azure/mgmt/storage/v2023_05_01/operations/_local_users_operations.py +13 -23
  135. azure/mgmt/storage/v2023_05_01/operations/_management_policies_operations.py +8 -14
  136. azure/mgmt/storage/v2023_05_01/operations/_network_security_perimeter_configurations_operations.py +25 -20
  137. azure/mgmt/storage/v2023_05_01/operations/_object_replication_policies_operations.py +9 -17
  138. azure/mgmt/storage/v2023_05_01/operations/_operations.py +4 -9
  139. azure/mgmt/storage/v2023_05_01/operations/_private_endpoint_connections_operations.py +9 -17
  140. azure/mgmt/storage/v2023_05_01/operations/_private_link_resources_operations.py +5 -9
  141. azure/mgmt/storage/v2023_05_01/operations/_queue_operations.py +11 -20
  142. azure/mgmt/storage/v2023_05_01/operations/_queue_services_operations.py +9 -15
  143. azure/mgmt/storage/v2023_05_01/operations/_skus_operations.py +4 -9
  144. azure/mgmt/storage/v2023_05_01/operations/_storage_accounts_operations.py +118 -92
  145. azure/mgmt/storage/v2023_05_01/operations/_storage_task_assignment_instances_report_operations.py +9 -13
  146. azure/mgmt/storage/v2023_05_01/operations/_storage_task_assignments_instances_report_operations.py +9 -13
  147. azure/mgmt/storage/v2023_05_01/operations/_storage_task_assignments_operations.py +56 -47
  148. azure/mgmt/storage/v2023_05_01/operations/_table_operations.py +11 -20
  149. azure/mgmt/storage/v2023_05_01/operations/_table_services_operations.py +9 -15
  150. azure/mgmt/storage/v2023_05_01/operations/_usages_operations.py +4 -9
  151. azure/mgmt/storage/v2023_05_01/py.typed +1 -0
  152. {azure_mgmt_storage-21.2.0.dist-info → azure_mgmt_storage-22.0.0.dist-info}/METADATA +19 -4
  153. azure_mgmt_storage-22.0.0.dist-info/RECORD +183 -0
  154. {azure_mgmt_storage-21.2.0.dist-info → azure_mgmt_storage-22.0.0.dist-info}/WHEEL +1 -1
  155. azure/mgmt/storage/v2015_06_15/__init__.py +0 -26
  156. azure/mgmt/storage/v2015_06_15/_configuration.py +0 -66
  157. azure/mgmt/storage/v2015_06_15/_patch.py +0 -32
  158. azure/mgmt/storage/v2015_06_15/_storage_management.py +0 -115
  159. azure/mgmt/storage/v2015_06_15/_vendor.py +0 -16
  160. azure/mgmt/storage/v2015_06_15/_version.py +0 -9
  161. azure/mgmt/storage/v2015_06_15/aio/__init__.py +0 -23
  162. azure/mgmt/storage/v2015_06_15/aio/_configuration.py +0 -66
  163. azure/mgmt/storage/v2015_06_15/aio/_patch.py +0 -32
  164. azure/mgmt/storage/v2015_06_15/aio/_storage_management.py +0 -118
  165. azure/mgmt/storage/v2015_06_15/aio/operations/__init__.py +0 -21
  166. azure/mgmt/storage/v2015_06_15/aio/operations/_patch.py +0 -20
  167. azure/mgmt/storage/v2015_06_15/aio/operations/_storage_accounts_operations.py +0 -1030
  168. azure/mgmt/storage/v2015_06_15/aio/operations/_usage_operations.py +0 -135
  169. azure/mgmt/storage/v2015_06_15/models/__init__.py +0 -55
  170. azure/mgmt/storage/v2015_06_15/models/_models_py3.py +0 -660
  171. azure/mgmt/storage/v2015_06_15/models/_patch.py +0 -20
  172. azure/mgmt/storage/v2015_06_15/models/_storage_management_enums.py +0 -59
  173. azure/mgmt/storage/v2015_06_15/operations/__init__.py +0 -21
  174. azure/mgmt/storage/v2015_06_15/operations/_patch.py +0 -20
  175. azure/mgmt/storage/v2015_06_15/operations/_storage_accounts_operations.py +0 -1297
  176. azure/mgmt/storage/v2015_06_15/operations/_usage_operations.py +0 -162
  177. azure/mgmt/storage/v2016_01_01/_vendor.py +0 -16
  178. azure/mgmt/storage/v2016_12_01/__init__.py +0 -26
  179. azure/mgmt/storage/v2016_12_01/_configuration.py +0 -66
  180. azure/mgmt/storage/v2016_12_01/_patch.py +0 -32
  181. azure/mgmt/storage/v2016_12_01/_storage_management.py +0 -115
  182. azure/mgmt/storage/v2016_12_01/_vendor.py +0 -16
  183. azure/mgmt/storage/v2016_12_01/_version.py +0 -9
  184. azure/mgmt/storage/v2016_12_01/aio/__init__.py +0 -23
  185. azure/mgmt/storage/v2016_12_01/aio/_configuration.py +0 -66
  186. azure/mgmt/storage/v2016_12_01/aio/_patch.py +0 -32
  187. azure/mgmt/storage/v2016_12_01/aio/_storage_management.py +0 -118
  188. azure/mgmt/storage/v2016_12_01/aio/operations/__init__.py +0 -21
  189. azure/mgmt/storage/v2016_12_01/aio/operations/_patch.py +0 -20
  190. azure/mgmt/storage/v2016_12_01/aio/operations/_storage_accounts_operations.py +0 -1310
  191. azure/mgmt/storage/v2016_12_01/aio/operations/_usage_operations.py +0 -135
  192. azure/mgmt/storage/v2016_12_01/models/__init__.py +0 -97
  193. azure/mgmt/storage/v2016_12_01/models/_models_py3.py +0 -1210
  194. azure/mgmt/storage/v2016_12_01/models/_patch.py +0 -20
  195. azure/mgmt/storage/v2016_12_01/models/_storage_management_enums.py +0 -169
  196. azure/mgmt/storage/v2016_12_01/operations/__init__.py +0 -21
  197. azure/mgmt/storage/v2016_12_01/operations/_patch.py +0 -20
  198. azure/mgmt/storage/v2016_12_01/operations/_storage_accounts_operations.py +0 -1647
  199. azure/mgmt/storage/v2016_12_01/operations/_usage_operations.py +0 -162
  200. azure/mgmt/storage/v2017_06_01/__init__.py +0 -26
  201. azure/mgmt/storage/v2017_06_01/_configuration.py +0 -66
  202. azure/mgmt/storage/v2017_06_01/_patch.py +0 -32
  203. azure/mgmt/storage/v2017_06_01/_storage_management.py +0 -121
  204. azure/mgmt/storage/v2017_06_01/_vendor.py +0 -16
  205. azure/mgmt/storage/v2017_06_01/_version.py +0 -9
  206. azure/mgmt/storage/v2017_06_01/aio/__init__.py +0 -23
  207. azure/mgmt/storage/v2017_06_01/aio/_configuration.py +0 -66
  208. azure/mgmt/storage/v2017_06_01/aio/_patch.py +0 -32
  209. azure/mgmt/storage/v2017_06_01/aio/_storage_management.py +0 -124
  210. azure/mgmt/storage/v2017_06_01/aio/operations/__init__.py +0 -25
  211. azure/mgmt/storage/v2017_06_01/aio/operations/_operations.py +0 -135
  212. azure/mgmt/storage/v2017_06_01/aio/operations/_patch.py +0 -20
  213. azure/mgmt/storage/v2017_06_01/aio/operations/_skus_operations.py +0 -135
  214. azure/mgmt/storage/v2017_06_01/aio/operations/_storage_accounts_operations.py +0 -1310
  215. azure/mgmt/storage/v2017_06_01/aio/operations/_usage_operations.py +0 -135
  216. azure/mgmt/storage/v2017_06_01/models/__init__.py +0 -129
  217. azure/mgmt/storage/v2017_06_01/models/_models_py3.py +0 -1843
  218. azure/mgmt/storage/v2017_06_01/models/_patch.py +0 -20
  219. azure/mgmt/storage/v2017_06_01/models/_storage_management_enums.py +0 -191
  220. azure/mgmt/storage/v2017_06_01/operations/__init__.py +0 -25
  221. azure/mgmt/storage/v2017_06_01/operations/_operations.py +0 -156
  222. azure/mgmt/storage/v2017_06_01/operations/_patch.py +0 -20
  223. azure/mgmt/storage/v2017_06_01/operations/_skus_operations.py +0 -162
  224. azure/mgmt/storage/v2017_06_01/operations/_storage_accounts_operations.py +0 -1647
  225. azure/mgmt/storage/v2017_06_01/operations/_usage_operations.py +0 -162
  226. azure/mgmt/storage/v2017_10_01/_vendor.py +0 -16
  227. azure/mgmt/storage/v2018_02_01/__init__.py +0 -26
  228. azure/mgmt/storage/v2018_02_01/_configuration.py +0 -65
  229. azure/mgmt/storage/v2018_02_01/_patch.py +0 -32
  230. azure/mgmt/storage/v2018_02_01/_storage_management_client.py +0 -127
  231. azure/mgmt/storage/v2018_02_01/_vendor.py +0 -16
  232. azure/mgmt/storage/v2018_02_01/_version.py +0 -9
  233. azure/mgmt/storage/v2018_02_01/aio/__init__.py +0 -23
  234. azure/mgmt/storage/v2018_02_01/aio/_configuration.py +0 -65
  235. azure/mgmt/storage/v2018_02_01/aio/_patch.py +0 -32
  236. azure/mgmt/storage/v2018_02_01/aio/_storage_management_client.py +0 -131
  237. azure/mgmt/storage/v2018_02_01/aio/operations/__init__.py +0 -27
  238. azure/mgmt/storage/v2018_02_01/aio/operations/_blob_containers_operations.py +0 -1692
  239. azure/mgmt/storage/v2018_02_01/aio/operations/_operations.py +0 -135
  240. azure/mgmt/storage/v2018_02_01/aio/operations/_patch.py +0 -20
  241. azure/mgmt/storage/v2018_02_01/aio/operations/_skus_operations.py +0 -135
  242. azure/mgmt/storage/v2018_02_01/aio/operations/_storage_accounts_operations.py +0 -1310
  243. azure/mgmt/storage/v2018_02_01/aio/operations/_usage_operations.py +0 -215
  244. azure/mgmt/storage/v2018_02_01/models/__init__.py +0 -171
  245. azure/mgmt/storage/v2018_02_01/models/_models_py3.py +0 -2556
  246. azure/mgmt/storage/v2018_02_01/models/_patch.py +0 -20
  247. azure/mgmt/storage/v2018_02_01/models/_storage_management_client_enums.py +0 -259
  248. azure/mgmt/storage/v2018_02_01/operations/__init__.py +0 -27
  249. azure/mgmt/storage/v2018_02_01/operations/_blob_containers_operations.py +0 -2178
  250. azure/mgmt/storage/v2018_02_01/operations/_operations.py +0 -156
  251. azure/mgmt/storage/v2018_02_01/operations/_patch.py +0 -20
  252. azure/mgmt/storage/v2018_02_01/operations/_skus_operations.py +0 -162
  253. azure/mgmt/storage/v2018_02_01/operations/_storage_accounts_operations.py +0 -1647
  254. azure/mgmt/storage/v2018_02_01/operations/_usage_operations.py +0 -269
  255. azure/mgmt/storage/v2018_03_01_preview/__init__.py +0 -26
  256. azure/mgmt/storage/v2018_03_01_preview/_configuration.py +0 -65
  257. azure/mgmt/storage/v2018_03_01_preview/_patch.py +0 -32
  258. azure/mgmt/storage/v2018_03_01_preview/_storage_management_client.py +0 -146
  259. azure/mgmt/storage/v2018_03_01_preview/_vendor.py +0 -16
  260. azure/mgmt/storage/v2018_03_01_preview/_version.py +0 -9
  261. azure/mgmt/storage/v2018_03_01_preview/aio/__init__.py +0 -23
  262. azure/mgmt/storage/v2018_03_01_preview/aio/_configuration.py +0 -65
  263. azure/mgmt/storage/v2018_03_01_preview/aio/_patch.py +0 -32
  264. azure/mgmt/storage/v2018_03_01_preview/aio/_storage_management_client.py +0 -148
  265. azure/mgmt/storage/v2018_03_01_preview/aio/operations/__init__.py +0 -29
  266. azure/mgmt/storage/v2018_03_01_preview/aio/operations/_blob_containers_operations.py +0 -1721
  267. azure/mgmt/storage/v2018_03_01_preview/aio/operations/_management_policies_operations.py +0 -357
  268. azure/mgmt/storage/v2018_03_01_preview/aio/operations/_operations.py +0 -137
  269. azure/mgmt/storage/v2018_03_01_preview/aio/operations/_patch.py +0 -20
  270. azure/mgmt/storage/v2018_03_01_preview/aio/operations/_skus_operations.py +0 -138
  271. azure/mgmt/storage/v2018_03_01_preview/aio/operations/_storage_accounts_operations.py +0 -1635
  272. azure/mgmt/storage/v2018_03_01_preview/aio/operations/_usages_operations.py +0 -221
  273. azure/mgmt/storage/v2018_03_01_preview/models/__init__.py +0 -181
  274. azure/mgmt/storage/v2018_03_01_preview/models/_models_py3.py +0 -2699
  275. azure/mgmt/storage/v2018_03_01_preview/models/_patch.py +0 -20
  276. azure/mgmt/storage/v2018_03_01_preview/models/_storage_management_client_enums.py +0 -265
  277. azure/mgmt/storage/v2018_03_01_preview/operations/__init__.py +0 -29
  278. azure/mgmt/storage/v2018_03_01_preview/operations/_blob_containers_operations.py +0 -2207
  279. azure/mgmt/storage/v2018_03_01_preview/operations/_management_policies_operations.py +0 -467
  280. azure/mgmt/storage/v2018_03_01_preview/operations/_operations.py +0 -158
  281. azure/mgmt/storage/v2018_03_01_preview/operations/_patch.py +0 -20
  282. azure/mgmt/storage/v2018_03_01_preview/operations/_skus_operations.py +0 -164
  283. azure/mgmt/storage/v2018_03_01_preview/operations/_storage_accounts_operations.py +0 -2085
  284. azure/mgmt/storage/v2018_03_01_preview/operations/_usages_operations.py +0 -273
  285. azure/mgmt/storage/v2018_07_01/__init__.py +0 -26
  286. azure/mgmt/storage/v2018_07_01/_configuration.py +0 -65
  287. azure/mgmt/storage/v2018_07_01/_patch.py +0 -32
  288. azure/mgmt/storage/v2018_07_01/_storage_management_client.py +0 -139
  289. azure/mgmt/storage/v2018_07_01/_vendor.py +0 -16
  290. azure/mgmt/storage/v2018_07_01/_version.py +0 -9
  291. azure/mgmt/storage/v2018_07_01/aio/__init__.py +0 -23
  292. azure/mgmt/storage/v2018_07_01/aio/_configuration.py +0 -65
  293. azure/mgmt/storage/v2018_07_01/aio/_patch.py +0 -32
  294. azure/mgmt/storage/v2018_07_01/aio/_storage_management_client.py +0 -143
  295. azure/mgmt/storage/v2018_07_01/aio/operations/__init__.py +0 -29
  296. azure/mgmt/storage/v2018_07_01/aio/operations/_blob_containers_operations.py +0 -1692
  297. azure/mgmt/storage/v2018_07_01/aio/operations/_blob_services_operations.py +0 -282
  298. azure/mgmt/storage/v2018_07_01/aio/operations/_operations.py +0 -135
  299. azure/mgmt/storage/v2018_07_01/aio/operations/_patch.py +0 -20
  300. azure/mgmt/storage/v2018_07_01/aio/operations/_skus_operations.py +0 -135
  301. azure/mgmt/storage/v2018_07_01/aio/operations/_storage_accounts_operations.py +0 -1420
  302. azure/mgmt/storage/v2018_07_01/aio/operations/_usages_operations.py +0 -139
  303. azure/mgmt/storage/v2018_07_01/models/__init__.py +0 -185
  304. azure/mgmt/storage/v2018_07_01/models/_models_py3.py +0 -2838
  305. azure/mgmt/storage/v2018_07_01/models/_patch.py +0 -20
  306. azure/mgmt/storage/v2018_07_01/models/_storage_management_client_enums.py +0 -287
  307. azure/mgmt/storage/v2018_07_01/operations/__init__.py +0 -29
  308. azure/mgmt/storage/v2018_07_01/operations/_blob_containers_operations.py +0 -2178
  309. azure/mgmt/storage/v2018_07_01/operations/_blob_services_operations.py +0 -361
  310. azure/mgmt/storage/v2018_07_01/operations/_operations.py +0 -156
  311. azure/mgmt/storage/v2018_07_01/operations/_patch.py +0 -20
  312. azure/mgmt/storage/v2018_07_01/operations/_skus_operations.py +0 -162
  313. azure/mgmt/storage/v2018_07_01/operations/_storage_accounts_operations.py +0 -1792
  314. azure/mgmt/storage/v2018_07_01/operations/_usages_operations.py +0 -169
  315. azure/mgmt/storage/v2018_11_01/__init__.py +0 -26
  316. azure/mgmt/storage/v2018_11_01/_configuration.py +0 -65
  317. azure/mgmt/storage/v2018_11_01/_patch.py +0 -32
  318. azure/mgmt/storage/v2018_11_01/_storage_management_client.py +0 -146
  319. azure/mgmt/storage/v2018_11_01/_vendor.py +0 -16
  320. azure/mgmt/storage/v2018_11_01/_version.py +0 -9
  321. azure/mgmt/storage/v2018_11_01/aio/__init__.py +0 -23
  322. azure/mgmt/storage/v2018_11_01/aio/_configuration.py +0 -65
  323. azure/mgmt/storage/v2018_11_01/aio/_patch.py +0 -32
  324. azure/mgmt/storage/v2018_11_01/aio/_storage_management_client.py +0 -150
  325. azure/mgmt/storage/v2018_11_01/aio/operations/__init__.py +0 -31
  326. azure/mgmt/storage/v2018_11_01/aio/operations/_blob_containers_operations.py +0 -1696
  327. azure/mgmt/storage/v2018_11_01/aio/operations/_blob_services_operations.py +0 -282
  328. azure/mgmt/storage/v2018_11_01/aio/operations/_management_policies_operations.py +0 -349
  329. azure/mgmt/storage/v2018_11_01/aio/operations/_operations.py +0 -135
  330. azure/mgmt/storage/v2018_11_01/aio/operations/_patch.py +0 -20
  331. azure/mgmt/storage/v2018_11_01/aio/operations/_skus_operations.py +0 -135
  332. azure/mgmt/storage/v2018_11_01/aio/operations/_storage_accounts_operations.py +0 -1477
  333. azure/mgmt/storage/v2018_11_01/aio/operations/_usages_operations.py +0 -139
  334. azure/mgmt/storage/v2018_11_01/models/__init__.py +0 -209
  335. azure/mgmt/storage/v2018_11_01/models/_models_py3.py +0 -3194
  336. azure/mgmt/storage/v2018_11_01/models/_patch.py +0 -20
  337. azure/mgmt/storage/v2018_11_01/models/_storage_management_client_enums.py +0 -299
  338. azure/mgmt/storage/v2018_11_01/operations/__init__.py +0 -31
  339. azure/mgmt/storage/v2018_11_01/operations/_blob_containers_operations.py +0 -2182
  340. azure/mgmt/storage/v2018_11_01/operations/_blob_services_operations.py +0 -361
  341. azure/mgmt/storage/v2018_11_01/operations/_management_policies_operations.py +0 -459
  342. azure/mgmt/storage/v2018_11_01/operations/_operations.py +0 -156
  343. azure/mgmt/storage/v2018_11_01/operations/_patch.py +0 -20
  344. azure/mgmt/storage/v2018_11_01/operations/_skus_operations.py +0 -162
  345. azure/mgmt/storage/v2018_11_01/operations/_storage_accounts_operations.py +0 -1875
  346. azure/mgmt/storage/v2018_11_01/operations/_usages_operations.py +0 -169
  347. azure/mgmt/storage/v2019_04_01/__init__.py +0 -26
  348. azure/mgmt/storage/v2019_04_01/_configuration.py +0 -65
  349. azure/mgmt/storage/v2019_04_01/_patch.py +0 -32
  350. azure/mgmt/storage/v2019_04_01/_storage_management_client.py +0 -158
  351. azure/mgmt/storage/v2019_04_01/_vendor.py +0 -16
  352. azure/mgmt/storage/v2019_04_01/_version.py +0 -9
  353. azure/mgmt/storage/v2019_04_01/aio/__init__.py +0 -23
  354. azure/mgmt/storage/v2019_04_01/aio/_configuration.py +0 -65
  355. azure/mgmt/storage/v2019_04_01/aio/_patch.py +0 -32
  356. azure/mgmt/storage/v2019_04_01/aio/_storage_management_client.py +0 -162
  357. azure/mgmt/storage/v2019_04_01/aio/operations/__init__.py +0 -35
  358. azure/mgmt/storage/v2019_04_01/aio/operations/_blob_containers_operations.py +0 -1746
  359. azure/mgmt/storage/v2019_04_01/aio/operations/_blob_services_operations.py +0 -375
  360. azure/mgmt/storage/v2019_04_01/aio/operations/_file_services_operations.py +0 -341
  361. azure/mgmt/storage/v2019_04_01/aio/operations/_file_shares_operations.py +0 -625
  362. azure/mgmt/storage/v2019_04_01/aio/operations/_management_policies_operations.py +0 -349
  363. azure/mgmt/storage/v2019_04_01/aio/operations/_operations.py +0 -135
  364. azure/mgmt/storage/v2019_04_01/aio/operations/_patch.py +0 -20
  365. azure/mgmt/storage/v2019_04_01/aio/operations/_skus_operations.py +0 -135
  366. azure/mgmt/storage/v2019_04_01/aio/operations/_storage_accounts_operations.py +0 -1483
  367. azure/mgmt/storage/v2019_04_01/aio/operations/_usages_operations.py +0 -139
  368. azure/mgmt/storage/v2019_04_01/models/__init__.py +0 -235
  369. azure/mgmt/storage/v2019_04_01/models/_models_py3.py +0 -3799
  370. azure/mgmt/storage/v2019_04_01/models/_patch.py +0 -20
  371. azure/mgmt/storage/v2019_04_01/models/_storage_management_client_enums.py +0 -326
  372. azure/mgmt/storage/v2019_04_01/operations/__init__.py +0 -35
  373. azure/mgmt/storage/v2019_04_01/operations/_blob_containers_operations.py +0 -2245
  374. azure/mgmt/storage/v2019_04_01/operations/_blob_services_operations.py +0 -483
  375. azure/mgmt/storage/v2019_04_01/operations/_file_services_operations.py +0 -450
  376. azure/mgmt/storage/v2019_04_01/operations/_file_shares_operations.py +0 -806
  377. azure/mgmt/storage/v2019_04_01/operations/_management_policies_operations.py +0 -459
  378. azure/mgmt/storage/v2019_04_01/operations/_operations.py +0 -156
  379. azure/mgmt/storage/v2019_04_01/operations/_patch.py +0 -20
  380. azure/mgmt/storage/v2019_04_01/operations/_skus_operations.py +0 -162
  381. azure/mgmt/storage/v2019_04_01/operations/_storage_accounts_operations.py +0 -1888
  382. azure/mgmt/storage/v2019_04_01/operations/_usages_operations.py +0 -169
  383. azure/mgmt/storage/v2019_06_01/_vendor.py +0 -16
  384. azure/mgmt/storage/v2020_08_01_preview/__init__.py +0 -26
  385. azure/mgmt/storage/v2020_08_01_preview/_configuration.py +0 -65
  386. azure/mgmt/storage/v2020_08_01_preview/_patch.py +0 -32
  387. azure/mgmt/storage/v2020_08_01_preview/_storage_management_client.py +0 -234
  388. azure/mgmt/storage/v2020_08_01_preview/_vendor.py +0 -16
  389. azure/mgmt/storage/v2020_08_01_preview/_version.py +0 -9
  390. azure/mgmt/storage/v2020_08_01_preview/aio/__init__.py +0 -23
  391. azure/mgmt/storage/v2020_08_01_preview/aio/_configuration.py +0 -65
  392. azure/mgmt/storage/v2020_08_01_preview/aio/_patch.py +0 -32
  393. azure/mgmt/storage/v2020_08_01_preview/aio/_storage_management_client.py +0 -237
  394. azure/mgmt/storage/v2020_08_01_preview/aio/operations/__init__.py +0 -55
  395. azure/mgmt/storage/v2020_08_01_preview/aio/operations/_blob_containers_operations.py +0 -1776
  396. azure/mgmt/storage/v2020_08_01_preview/aio/operations/_blob_inventory_policies_operations.py +0 -454
  397. azure/mgmt/storage/v2020_08_01_preview/aio/operations/_blob_services_operations.py +0 -382
  398. azure/mgmt/storage/v2020_08_01_preview/aio/operations/_deleted_accounts_operations.py +0 -198
  399. azure/mgmt/storage/v2020_08_01_preview/aio/operations/_encryption_scopes_operations.py +0 -560
  400. azure/mgmt/storage/v2020_08_01_preview/aio/operations/_file_services_operations.py +0 -348
  401. azure/mgmt/storage/v2020_08_01_preview/aio/operations/_file_shares_operations.py +0 -825
  402. azure/mgmt/storage/v2020_08_01_preview/aio/operations/_management_policies_operations.py +0 -355
  403. azure/mgmt/storage/v2020_08_01_preview/aio/operations/_object_replication_policies_operations.py +0 -445
  404. azure/mgmt/storage/v2020_08_01_preview/aio/operations/_operations.py +0 -137
  405. azure/mgmt/storage/v2020_08_01_preview/aio/operations/_patch.py +0 -20
  406. azure/mgmt/storage/v2020_08_01_preview/aio/operations/_private_endpoint_connections_operations.py +0 -441
  407. azure/mgmt/storage/v2020_08_01_preview/aio/operations/_private_link_resources_operations.py +0 -119
  408. azure/mgmt/storage/v2020_08_01_preview/aio/operations/_queue_operations.py +0 -618
  409. azure/mgmt/storage/v2020_08_01_preview/aio/operations/_queue_services_operations.py +0 -348
  410. azure/mgmt/storage/v2020_08_01_preview/aio/operations/_skus_operations.py +0 -138
  411. azure/mgmt/storage/v2020_08_01_preview/aio/operations/_storage_accounts_operations.py +0 -1725
  412. azure/mgmt/storage/v2020_08_01_preview/aio/operations/_table_operations.py +0 -416
  413. azure/mgmt/storage/v2020_08_01_preview/aio/operations/_table_services_operations.py +0 -348
  414. azure/mgmt/storage/v2020_08_01_preview/aio/operations/_usages_operations.py +0 -142
  415. azure/mgmt/storage/v2020_08_01_preview/models/__init__.py +0 -373
  416. azure/mgmt/storage/v2020_08_01_preview/models/_models_py3.py +0 -6344
  417. azure/mgmt/storage/v2020_08_01_preview/models/_patch.py +0 -20
  418. azure/mgmt/storage/v2020_08_01_preview/models/_storage_management_client_enums.py +0 -468
  419. azure/mgmt/storage/v2020_08_01_preview/operations/__init__.py +0 -55
  420. azure/mgmt/storage/v2020_08_01_preview/operations/_blob_containers_operations.py +0 -2276
  421. azure/mgmt/storage/v2020_08_01_preview/operations/_blob_inventory_policies_operations.py +0 -599
  422. azure/mgmt/storage/v2020_08_01_preview/operations/_blob_services_operations.py +0 -490
  423. azure/mgmt/storage/v2020_08_01_preview/operations/_deleted_accounts_operations.py +0 -255
  424. azure/mgmt/storage/v2020_08_01_preview/operations/_encryption_scopes_operations.py +0 -700
  425. azure/mgmt/storage/v2020_08_01_preview/operations/_file_services_operations.py +0 -457
  426. azure/mgmt/storage/v2020_08_01_preview/operations/_file_shares_operations.py +0 -1072
  427. azure/mgmt/storage/v2020_08_01_preview/operations/_management_policies_operations.py +0 -465
  428. azure/mgmt/storage/v2020_08_01_preview/operations/_object_replication_policies_operations.py +0 -584
  429. azure/mgmt/storage/v2020_08_01_preview/operations/_operations.py +0 -158
  430. azure/mgmt/storage/v2020_08_01_preview/operations/_patch.py +0 -20
  431. azure/mgmt/storage/v2020_08_01_preview/operations/_private_endpoint_connections_operations.py +0 -592
  432. azure/mgmt/storage/v2020_08_01_preview/operations/_private_link_resources_operations.py +0 -155
  433. azure/mgmt/storage/v2020_08_01_preview/operations/_queue_operations.py +0 -824
  434. azure/mgmt/storage/v2020_08_01_preview/operations/_queue_services_operations.py +0 -457
  435. azure/mgmt/storage/v2020_08_01_preview/operations/_skus_operations.py +0 -165
  436. azure/mgmt/storage/v2020_08_01_preview/operations/_storage_accounts_operations.py +0 -2170
  437. azure/mgmt/storage/v2020_08_01_preview/operations/_table_operations.py +0 -582
  438. azure/mgmt/storage/v2020_08_01_preview/operations/_table_services_operations.py +0 -457
  439. azure/mgmt/storage/v2020_08_01_preview/operations/_usages_operations.py +0 -171
  440. azure/mgmt/storage/v2021_01_01/__init__.py +0 -26
  441. azure/mgmt/storage/v2021_01_01/_configuration.py +0 -65
  442. azure/mgmt/storage/v2021_01_01/_patch.py +0 -32
  443. azure/mgmt/storage/v2021_01_01/_storage_management_client.py +0 -219
  444. azure/mgmt/storage/v2021_01_01/_vendor.py +0 -16
  445. azure/mgmt/storage/v2021_01_01/_version.py +0 -9
  446. azure/mgmt/storage/v2021_01_01/aio/__init__.py +0 -23
  447. azure/mgmt/storage/v2021_01_01/aio/_configuration.py +0 -65
  448. azure/mgmt/storage/v2021_01_01/aio/_patch.py +0 -32
  449. azure/mgmt/storage/v2021_01_01/aio/_storage_management_client.py +0 -224
  450. azure/mgmt/storage/v2021_01_01/aio/operations/__init__.py +0 -55
  451. azure/mgmt/storage/v2021_01_01/aio/operations/_blob_containers_operations.py +0 -1747
  452. azure/mgmt/storage/v2021_01_01/aio/operations/_blob_inventory_policies_operations.py +0 -445
  453. azure/mgmt/storage/v2021_01_01/aio/operations/_blob_services_operations.py +0 -375
  454. azure/mgmt/storage/v2021_01_01/aio/operations/_deleted_accounts_operations.py +0 -194
  455. azure/mgmt/storage/v2021_01_01/aio/operations/_encryption_scopes_operations.py +0 -550
  456. azure/mgmt/storage/v2021_01_01/aio/operations/_file_services_operations.py +0 -341
  457. azure/mgmt/storage/v2021_01_01/aio/operations/_file_shares_operations.py +0 -810
  458. azure/mgmt/storage/v2021_01_01/aio/operations/_management_policies_operations.py +0 -349
  459. azure/mgmt/storage/v2021_01_01/aio/operations/_object_replication_policies_operations.py +0 -436
  460. azure/mgmt/storage/v2021_01_01/aio/operations/_operations.py +0 -135
  461. azure/mgmt/storage/v2021_01_01/aio/operations/_patch.py +0 -20
  462. azure/mgmt/storage/v2021_01_01/aio/operations/_private_endpoint_connections_operations.py +0 -432
  463. azure/mgmt/storage/v2021_01_01/aio/operations/_private_link_resources_operations.py +0 -117
  464. azure/mgmt/storage/v2021_01_01/aio/operations/_queue_operations.py +0 -608
  465. azure/mgmt/storage/v2021_01_01/aio/operations/_queue_services_operations.py +0 -341
  466. azure/mgmt/storage/v2021_01_01/aio/operations/_skus_operations.py +0 -136
  467. azure/mgmt/storage/v2021_01_01/aio/operations/_storage_accounts_operations.py +0 -1687
  468. azure/mgmt/storage/v2021_01_01/aio/operations/_table_operations.py +0 -405
  469. azure/mgmt/storage/v2021_01_01/aio/operations/_table_services_operations.py +0 -341
  470. azure/mgmt/storage/v2021_01_01/aio/operations/_usages_operations.py +0 -139
  471. azure/mgmt/storage/v2021_01_01/models/__init__.py +0 -381
  472. azure/mgmt/storage/v2021_01_01/models/_models_py3.py +0 -6465
  473. azure/mgmt/storage/v2021_01_01/models/_patch.py +0 -20
  474. azure/mgmt/storage/v2021_01_01/models/_storage_management_client_enums.py +0 -483
  475. azure/mgmt/storage/v2021_01_01/operations/__init__.py +0 -55
  476. azure/mgmt/storage/v2021_01_01/operations/_blob_containers_operations.py +0 -2246
  477. azure/mgmt/storage/v2021_01_01/operations/_blob_inventory_policies_operations.py +0 -590
  478. azure/mgmt/storage/v2021_01_01/operations/_blob_services_operations.py +0 -483
  479. azure/mgmt/storage/v2021_01_01/operations/_deleted_accounts_operations.py +0 -250
  480. azure/mgmt/storage/v2021_01_01/operations/_encryption_scopes_operations.py +0 -689
  481. azure/mgmt/storage/v2021_01_01/operations/_file_services_operations.py +0 -450
  482. azure/mgmt/storage/v2021_01_01/operations/_file_shares_operations.py +0 -1056
  483. azure/mgmt/storage/v2021_01_01/operations/_management_policies_operations.py +0 -459
  484. azure/mgmt/storage/v2021_01_01/operations/_object_replication_policies_operations.py +0 -575
  485. azure/mgmt/storage/v2021_01_01/operations/_operations.py +0 -156
  486. azure/mgmt/storage/v2021_01_01/operations/_patch.py +0 -20
  487. azure/mgmt/storage/v2021_01_01/operations/_private_endpoint_connections_operations.py +0 -583
  488. azure/mgmt/storage/v2021_01_01/operations/_private_link_resources_operations.py +0 -153
  489. azure/mgmt/storage/v2021_01_01/operations/_queue_operations.py +0 -814
  490. azure/mgmt/storage/v2021_01_01/operations/_queue_services_operations.py +0 -450
  491. azure/mgmt/storage/v2021_01_01/operations/_skus_operations.py +0 -162
  492. azure/mgmt/storage/v2021_01_01/operations/_storage_accounts_operations.py +0 -2124
  493. azure/mgmt/storage/v2021_01_01/operations/_table_operations.py +0 -572
  494. azure/mgmt/storage/v2021_01_01/operations/_table_services_operations.py +0 -450
  495. azure/mgmt/storage/v2021_01_01/operations/_usages_operations.py +0 -169
  496. azure/mgmt/storage/v2021_02_01/__init__.py +0 -26
  497. azure/mgmt/storage/v2021_02_01/_configuration.py +0 -65
  498. azure/mgmt/storage/v2021_02_01/_patch.py +0 -32
  499. azure/mgmt/storage/v2021_02_01/_storage_management_client.py +0 -219
  500. azure/mgmt/storage/v2021_02_01/_vendor.py +0 -16
  501. azure/mgmt/storage/v2021_02_01/_version.py +0 -9
  502. azure/mgmt/storage/v2021_02_01/aio/__init__.py +0 -23
  503. azure/mgmt/storage/v2021_02_01/aio/_configuration.py +0 -65
  504. azure/mgmt/storage/v2021_02_01/aio/_patch.py +0 -32
  505. azure/mgmt/storage/v2021_02_01/aio/_storage_management_client.py +0 -224
  506. azure/mgmt/storage/v2021_02_01/aio/operations/__init__.py +0 -55
  507. azure/mgmt/storage/v2021_02_01/aio/operations/_blob_containers_operations.py +0 -1747
  508. azure/mgmt/storage/v2021_02_01/aio/operations/_blob_inventory_policies_operations.py +0 -445
  509. azure/mgmt/storage/v2021_02_01/aio/operations/_blob_services_operations.py +0 -375
  510. azure/mgmt/storage/v2021_02_01/aio/operations/_deleted_accounts_operations.py +0 -194
  511. azure/mgmt/storage/v2021_02_01/aio/operations/_encryption_scopes_operations.py +0 -550
  512. azure/mgmt/storage/v2021_02_01/aio/operations/_file_services_operations.py +0 -341
  513. azure/mgmt/storage/v2021_02_01/aio/operations/_file_shares_operations.py +0 -810
  514. azure/mgmt/storage/v2021_02_01/aio/operations/_management_policies_operations.py +0 -349
  515. azure/mgmt/storage/v2021_02_01/aio/operations/_object_replication_policies_operations.py +0 -436
  516. azure/mgmt/storage/v2021_02_01/aio/operations/_operations.py +0 -135
  517. azure/mgmt/storage/v2021_02_01/aio/operations/_patch.py +0 -20
  518. azure/mgmt/storage/v2021_02_01/aio/operations/_private_endpoint_connections_operations.py +0 -432
  519. azure/mgmt/storage/v2021_02_01/aio/operations/_private_link_resources_operations.py +0 -117
  520. azure/mgmt/storage/v2021_02_01/aio/operations/_queue_operations.py +0 -608
  521. azure/mgmt/storage/v2021_02_01/aio/operations/_queue_services_operations.py +0 -341
  522. azure/mgmt/storage/v2021_02_01/aio/operations/_skus_operations.py +0 -136
  523. azure/mgmt/storage/v2021_02_01/aio/operations/_storage_accounts_operations.py +0 -1687
  524. azure/mgmt/storage/v2021_02_01/aio/operations/_table_operations.py +0 -405
  525. azure/mgmt/storage/v2021_02_01/aio/operations/_table_services_operations.py +0 -341
  526. azure/mgmt/storage/v2021_02_01/aio/operations/_usages_operations.py +0 -139
  527. azure/mgmt/storage/v2021_02_01/models/__init__.py +0 -389
  528. azure/mgmt/storage/v2021_02_01/models/_models_py3.py +0 -6606
  529. azure/mgmt/storage/v2021_02_01/models/_patch.py +0 -20
  530. azure/mgmt/storage/v2021_02_01/models/_storage_management_client_enums.py +0 -489
  531. azure/mgmt/storage/v2021_02_01/operations/__init__.py +0 -55
  532. azure/mgmt/storage/v2021_02_01/operations/_blob_containers_operations.py +0 -2246
  533. azure/mgmt/storage/v2021_02_01/operations/_blob_inventory_policies_operations.py +0 -590
  534. azure/mgmt/storage/v2021_02_01/operations/_blob_services_operations.py +0 -483
  535. azure/mgmt/storage/v2021_02_01/operations/_deleted_accounts_operations.py +0 -250
  536. azure/mgmt/storage/v2021_02_01/operations/_encryption_scopes_operations.py +0 -689
  537. azure/mgmt/storage/v2021_02_01/operations/_file_services_operations.py +0 -450
  538. azure/mgmt/storage/v2021_02_01/operations/_file_shares_operations.py +0 -1056
  539. azure/mgmt/storage/v2021_02_01/operations/_management_policies_operations.py +0 -459
  540. azure/mgmt/storage/v2021_02_01/operations/_object_replication_policies_operations.py +0 -575
  541. azure/mgmt/storage/v2021_02_01/operations/_operations.py +0 -156
  542. azure/mgmt/storage/v2021_02_01/operations/_patch.py +0 -20
  543. azure/mgmt/storage/v2021_02_01/operations/_private_endpoint_connections_operations.py +0 -583
  544. azure/mgmt/storage/v2021_02_01/operations/_private_link_resources_operations.py +0 -153
  545. azure/mgmt/storage/v2021_02_01/operations/_queue_operations.py +0 -814
  546. azure/mgmt/storage/v2021_02_01/operations/_queue_services_operations.py +0 -450
  547. azure/mgmt/storage/v2021_02_01/operations/_skus_operations.py +0 -162
  548. azure/mgmt/storage/v2021_02_01/operations/_storage_accounts_operations.py +0 -2124
  549. azure/mgmt/storage/v2021_02_01/operations/_table_operations.py +0 -572
  550. azure/mgmt/storage/v2021_02_01/operations/_table_services_operations.py +0 -450
  551. azure/mgmt/storage/v2021_02_01/operations/_usages_operations.py +0 -169
  552. azure/mgmt/storage/v2021_04_01/__init__.py +0 -26
  553. azure/mgmt/storage/v2021_04_01/_configuration.py +0 -65
  554. azure/mgmt/storage/v2021_04_01/_patch.py +0 -32
  555. azure/mgmt/storage/v2021_04_01/_storage_management_client.py +0 -219
  556. azure/mgmt/storage/v2021_04_01/_vendor.py +0 -16
  557. azure/mgmt/storage/v2021_04_01/_version.py +0 -9
  558. azure/mgmt/storage/v2021_04_01/aio/__init__.py +0 -23
  559. azure/mgmt/storage/v2021_04_01/aio/_configuration.py +0 -65
  560. azure/mgmt/storage/v2021_04_01/aio/_patch.py +0 -32
  561. azure/mgmt/storage/v2021_04_01/aio/_storage_management_client.py +0 -224
  562. azure/mgmt/storage/v2021_04_01/aio/operations/__init__.py +0 -55
  563. azure/mgmt/storage/v2021_04_01/aio/operations/_blob_containers_operations.py +0 -1860
  564. azure/mgmt/storage/v2021_04_01/aio/operations/_blob_inventory_policies_operations.py +0 -445
  565. azure/mgmt/storage/v2021_04_01/aio/operations/_blob_services_operations.py +0 -375
  566. azure/mgmt/storage/v2021_04_01/aio/operations/_deleted_accounts_operations.py +0 -194
  567. azure/mgmt/storage/v2021_04_01/aio/operations/_encryption_scopes_operations.py +0 -550
  568. azure/mgmt/storage/v2021_04_01/aio/operations/_file_services_operations.py +0 -344
  569. azure/mgmt/storage/v2021_04_01/aio/operations/_file_shares_operations.py +0 -1010
  570. azure/mgmt/storage/v2021_04_01/aio/operations/_management_policies_operations.py +0 -349
  571. azure/mgmt/storage/v2021_04_01/aio/operations/_object_replication_policies_operations.py +0 -446
  572. azure/mgmt/storage/v2021_04_01/aio/operations/_operations.py +0 -135
  573. azure/mgmt/storage/v2021_04_01/aio/operations/_patch.py +0 -20
  574. azure/mgmt/storage/v2021_04_01/aio/operations/_private_endpoint_connections_operations.py +0 -432
  575. azure/mgmt/storage/v2021_04_01/aio/operations/_private_link_resources_operations.py +0 -117
  576. azure/mgmt/storage/v2021_04_01/aio/operations/_queue_operations.py +0 -613
  577. azure/mgmt/storage/v2021_04_01/aio/operations/_queue_services_operations.py +0 -344
  578. azure/mgmt/storage/v2021_04_01/aio/operations/_skus_operations.py +0 -136
  579. azure/mgmt/storage/v2021_04_01/aio/operations/_storage_accounts_operations.py +0 -1687
  580. azure/mgmt/storage/v2021_04_01/aio/operations/_table_operations.py +0 -410
  581. azure/mgmt/storage/v2021_04_01/aio/operations/_table_services_operations.py +0 -344
  582. azure/mgmt/storage/v2021_04_01/aio/operations/_usages_operations.py +0 -139
  583. azure/mgmt/storage/v2021_04_01/models/__init__.py +0 -411
  584. azure/mgmt/storage/v2021_04_01/models/_models_py3.py +0 -7083
  585. azure/mgmt/storage/v2021_04_01/models/_patch.py +0 -20
  586. azure/mgmt/storage/v2021_04_01/models/_storage_management_client_enums.py +0 -528
  587. azure/mgmt/storage/v2021_04_01/operations/__init__.py +0 -55
  588. azure/mgmt/storage/v2021_04_01/operations/_blob_containers_operations.py +0 -2392
  589. azure/mgmt/storage/v2021_04_01/operations/_blob_inventory_policies_operations.py +0 -590
  590. azure/mgmt/storage/v2021_04_01/operations/_blob_services_operations.py +0 -483
  591. azure/mgmt/storage/v2021_04_01/operations/_deleted_accounts_operations.py +0 -250
  592. azure/mgmt/storage/v2021_04_01/operations/_encryption_scopes_operations.py +0 -689
  593. azure/mgmt/storage/v2021_04_01/operations/_file_services_operations.py +0 -453
  594. azure/mgmt/storage/v2021_04_01/operations/_file_shares_operations.py +0 -1303
  595. azure/mgmt/storage/v2021_04_01/operations/_management_policies_operations.py +0 -459
  596. azure/mgmt/storage/v2021_04_01/operations/_object_replication_policies_operations.py +0 -585
  597. azure/mgmt/storage/v2021_04_01/operations/_operations.py +0 -156
  598. azure/mgmt/storage/v2021_04_01/operations/_patch.py +0 -20
  599. azure/mgmt/storage/v2021_04_01/operations/_private_endpoint_connections_operations.py +0 -583
  600. azure/mgmt/storage/v2021_04_01/operations/_private_link_resources_operations.py +0 -153
  601. azure/mgmt/storage/v2021_04_01/operations/_queue_operations.py +0 -819
  602. azure/mgmt/storage/v2021_04_01/operations/_queue_services_operations.py +0 -453
  603. azure/mgmt/storage/v2021_04_01/operations/_skus_operations.py +0 -162
  604. azure/mgmt/storage/v2021_04_01/operations/_storage_accounts_operations.py +0 -2124
  605. azure/mgmt/storage/v2021_04_01/operations/_table_operations.py +0 -577
  606. azure/mgmt/storage/v2021_04_01/operations/_table_services_operations.py +0 -453
  607. azure/mgmt/storage/v2021_04_01/operations/_usages_operations.py +0 -169
  608. azure/mgmt/storage/v2021_06_01/__init__.py +0 -26
  609. azure/mgmt/storage/v2021_06_01/_configuration.py +0 -65
  610. azure/mgmt/storage/v2021_06_01/_patch.py +0 -32
  611. azure/mgmt/storage/v2021_06_01/_storage_management_client.py +0 -219
  612. azure/mgmt/storage/v2021_06_01/_vendor.py +0 -16
  613. azure/mgmt/storage/v2021_06_01/_version.py +0 -9
  614. azure/mgmt/storage/v2021_06_01/aio/__init__.py +0 -23
  615. azure/mgmt/storage/v2021_06_01/aio/_configuration.py +0 -65
  616. azure/mgmt/storage/v2021_06_01/aio/_patch.py +0 -32
  617. azure/mgmt/storage/v2021_06_01/aio/_storage_management_client.py +0 -224
  618. azure/mgmt/storage/v2021_06_01/aio/operations/__init__.py +0 -55
  619. azure/mgmt/storage/v2021_06_01/aio/operations/_blob_containers_operations.py +0 -1838
  620. azure/mgmt/storage/v2021_06_01/aio/operations/_blob_inventory_policies_operations.py +0 -445
  621. azure/mgmt/storage/v2021_06_01/aio/operations/_blob_services_operations.py +0 -362
  622. azure/mgmt/storage/v2021_06_01/aio/operations/_deleted_accounts_operations.py +0 -194
  623. azure/mgmt/storage/v2021_06_01/aio/operations/_encryption_scopes_operations.py +0 -550
  624. azure/mgmt/storage/v2021_06_01/aio/operations/_file_services_operations.py +0 -331
  625. azure/mgmt/storage/v2021_06_01/aio/operations/_file_shares_operations.py +0 -1010
  626. azure/mgmt/storage/v2021_06_01/aio/operations/_management_policies_operations.py +0 -349
  627. azure/mgmt/storage/v2021_06_01/aio/operations/_object_replication_policies_operations.py +0 -446
  628. azure/mgmt/storage/v2021_06_01/aio/operations/_operations.py +0 -135
  629. azure/mgmt/storage/v2021_06_01/aio/operations/_patch.py +0 -20
  630. azure/mgmt/storage/v2021_06_01/aio/operations/_private_endpoint_connections_operations.py +0 -432
  631. azure/mgmt/storage/v2021_06_01/aio/operations/_private_link_resources_operations.py +0 -117
  632. azure/mgmt/storage/v2021_06_01/aio/operations/_queue_operations.py +0 -613
  633. azure/mgmt/storage/v2021_06_01/aio/operations/_queue_services_operations.py +0 -331
  634. azure/mgmt/storage/v2021_06_01/aio/operations/_skus_operations.py +0 -136
  635. azure/mgmt/storage/v2021_06_01/aio/operations/_storage_accounts_operations.py +0 -1898
  636. azure/mgmt/storage/v2021_06_01/aio/operations/_table_operations.py +0 -410
  637. azure/mgmt/storage/v2021_06_01/aio/operations/_table_services_operations.py +0 -331
  638. azure/mgmt/storage/v2021_06_01/aio/operations/_usages_operations.py +0 -139
  639. azure/mgmt/storage/v2021_06_01/models/__init__.py +0 -419
  640. azure/mgmt/storage/v2021_06_01/models/_models_py3.py +0 -7467
  641. azure/mgmt/storage/v2021_06_01/models/_patch.py +0 -20
  642. azure/mgmt/storage/v2021_06_01/models/_storage_management_client_enums.py +0 -544
  643. azure/mgmt/storage/v2021_06_01/operations/__init__.py +0 -55
  644. azure/mgmt/storage/v2021_06_01/operations/_blob_containers_operations.py +0 -2370
  645. azure/mgmt/storage/v2021_06_01/operations/_blob_inventory_policies_operations.py +0 -590
  646. azure/mgmt/storage/v2021_06_01/operations/_blob_services_operations.py +0 -464
  647. azure/mgmt/storage/v2021_06_01/operations/_deleted_accounts_operations.py +0 -250
  648. azure/mgmt/storage/v2021_06_01/operations/_encryption_scopes_operations.py +0 -689
  649. azure/mgmt/storage/v2021_06_01/operations/_file_services_operations.py +0 -434
  650. azure/mgmt/storage/v2021_06_01/operations/_file_shares_operations.py +0 -1303
  651. azure/mgmt/storage/v2021_06_01/operations/_management_policies_operations.py +0 -459
  652. azure/mgmt/storage/v2021_06_01/operations/_object_replication_policies_operations.py +0 -585
  653. azure/mgmt/storage/v2021_06_01/operations/_operations.py +0 -156
  654. azure/mgmt/storage/v2021_06_01/operations/_patch.py +0 -20
  655. azure/mgmt/storage/v2021_06_01/operations/_private_endpoint_connections_operations.py +0 -583
  656. azure/mgmt/storage/v2021_06_01/operations/_private_link_resources_operations.py +0 -153
  657. azure/mgmt/storage/v2021_06_01/operations/_queue_operations.py +0 -819
  658. azure/mgmt/storage/v2021_06_01/operations/_queue_services_operations.py +0 -434
  659. azure/mgmt/storage/v2021_06_01/operations/_skus_operations.py +0 -162
  660. azure/mgmt/storage/v2021_06_01/operations/_storage_accounts_operations.py +0 -2400
  661. azure/mgmt/storage/v2021_06_01/operations/_table_operations.py +0 -577
  662. azure/mgmt/storage/v2021_06_01/operations/_table_services_operations.py +0 -434
  663. azure/mgmt/storage/v2021_06_01/operations/_usages_operations.py +0 -169
  664. azure/mgmt/storage/v2021_08_01/__init__.py +0 -26
  665. azure/mgmt/storage/v2021_08_01/_configuration.py +0 -65
  666. azure/mgmt/storage/v2021_08_01/_patch.py +0 -32
  667. azure/mgmt/storage/v2021_08_01/_storage_management_client.py +0 -225
  668. azure/mgmt/storage/v2021_08_01/_vendor.py +0 -16
  669. azure/mgmt/storage/v2021_08_01/_version.py +0 -9
  670. azure/mgmt/storage/v2021_08_01/aio/__init__.py +0 -23
  671. azure/mgmt/storage/v2021_08_01/aio/_configuration.py +0 -65
  672. azure/mgmt/storage/v2021_08_01/aio/_patch.py +0 -32
  673. azure/mgmt/storage/v2021_08_01/aio/_storage_management_client.py +0 -230
  674. azure/mgmt/storage/v2021_08_01/aio/operations/__init__.py +0 -57
  675. azure/mgmt/storage/v2021_08_01/aio/operations/_blob_containers_operations.py +0 -1838
  676. azure/mgmt/storage/v2021_08_01/aio/operations/_blob_inventory_policies_operations.py +0 -445
  677. azure/mgmt/storage/v2021_08_01/aio/operations/_blob_services_operations.py +0 -362
  678. azure/mgmt/storage/v2021_08_01/aio/operations/_deleted_accounts_operations.py +0 -194
  679. azure/mgmt/storage/v2021_08_01/aio/operations/_encryption_scopes_operations.py +0 -550
  680. azure/mgmt/storage/v2021_08_01/aio/operations/_file_services_operations.py +0 -328
  681. azure/mgmt/storage/v2021_08_01/aio/operations/_file_shares_operations.py +0 -1003
  682. azure/mgmt/storage/v2021_08_01/aio/operations/_local_users_operations.py +0 -560
  683. azure/mgmt/storage/v2021_08_01/aio/operations/_management_policies_operations.py +0 -349
  684. azure/mgmt/storage/v2021_08_01/aio/operations/_object_replication_policies_operations.py +0 -446
  685. azure/mgmt/storage/v2021_08_01/aio/operations/_operations.py +0 -135
  686. azure/mgmt/storage/v2021_08_01/aio/operations/_patch.py +0 -20
  687. azure/mgmt/storage/v2021_08_01/aio/operations/_private_endpoint_connections_operations.py +0 -432
  688. azure/mgmt/storage/v2021_08_01/aio/operations/_private_link_resources_operations.py +0 -117
  689. azure/mgmt/storage/v2021_08_01/aio/operations/_queue_operations.py +0 -608
  690. azure/mgmt/storage/v2021_08_01/aio/operations/_queue_services_operations.py +0 -328
  691. azure/mgmt/storage/v2021_08_01/aio/operations/_skus_operations.py +0 -136
  692. azure/mgmt/storage/v2021_08_01/aio/operations/_storage_accounts_operations.py +0 -1898
  693. azure/mgmt/storage/v2021_08_01/aio/operations/_table_operations.py +0 -405
  694. azure/mgmt/storage/v2021_08_01/aio/operations/_table_services_operations.py +0 -328
  695. azure/mgmt/storage/v2021_08_01/aio/operations/_usages_operations.py +0 -139
  696. azure/mgmt/storage/v2021_08_01/models/__init__.py +0 -431
  697. azure/mgmt/storage/v2021_08_01/models/_models_py3.py +0 -7738
  698. azure/mgmt/storage/v2021_08_01/models/_patch.py +0 -20
  699. azure/mgmt/storage/v2021_08_01/models/_storage_management_client_enums.py +0 -560
  700. azure/mgmt/storage/v2021_08_01/operations/__init__.py +0 -57
  701. azure/mgmt/storage/v2021_08_01/operations/_blob_containers_operations.py +0 -2370
  702. azure/mgmt/storage/v2021_08_01/operations/_blob_inventory_policies_operations.py +0 -590
  703. azure/mgmt/storage/v2021_08_01/operations/_blob_services_operations.py +0 -464
  704. azure/mgmt/storage/v2021_08_01/operations/_deleted_accounts_operations.py +0 -250
  705. azure/mgmt/storage/v2021_08_01/operations/_encryption_scopes_operations.py +0 -689
  706. azure/mgmt/storage/v2021_08_01/operations/_file_services_operations.py +0 -431
  707. azure/mgmt/storage/v2021_08_01/operations/_file_shares_operations.py +0 -1296
  708. azure/mgmt/storage/v2021_08_01/operations/_local_users_operations.py +0 -758
  709. azure/mgmt/storage/v2021_08_01/operations/_management_policies_operations.py +0 -459
  710. azure/mgmt/storage/v2021_08_01/operations/_object_replication_policies_operations.py +0 -585
  711. azure/mgmt/storage/v2021_08_01/operations/_operations.py +0 -156
  712. azure/mgmt/storage/v2021_08_01/operations/_patch.py +0 -20
  713. azure/mgmt/storage/v2021_08_01/operations/_private_endpoint_connections_operations.py +0 -583
  714. azure/mgmt/storage/v2021_08_01/operations/_private_link_resources_operations.py +0 -153
  715. azure/mgmt/storage/v2021_08_01/operations/_queue_operations.py +0 -814
  716. azure/mgmt/storage/v2021_08_01/operations/_queue_services_operations.py +0 -431
  717. azure/mgmt/storage/v2021_08_01/operations/_skus_operations.py +0 -162
  718. azure/mgmt/storage/v2021_08_01/operations/_storage_accounts_operations.py +0 -2400
  719. azure/mgmt/storage/v2021_08_01/operations/_table_operations.py +0 -572
  720. azure/mgmt/storage/v2021_08_01/operations/_table_services_operations.py +0 -431
  721. azure/mgmt/storage/v2021_08_01/operations/_usages_operations.py +0 -169
  722. azure/mgmt/storage/v2021_09_01/__init__.py +0 -26
  723. azure/mgmt/storage/v2021_09_01/_configuration.py +0 -65
  724. azure/mgmt/storage/v2021_09_01/_patch.py +0 -32
  725. azure/mgmt/storage/v2021_09_01/_storage_management_client.py +0 -225
  726. azure/mgmt/storage/v2021_09_01/_vendor.py +0 -16
  727. azure/mgmt/storage/v2021_09_01/_version.py +0 -9
  728. azure/mgmt/storage/v2021_09_01/aio/__init__.py +0 -23
  729. azure/mgmt/storage/v2021_09_01/aio/_configuration.py +0 -65
  730. azure/mgmt/storage/v2021_09_01/aio/_patch.py +0 -32
  731. azure/mgmt/storage/v2021_09_01/aio/_storage_management_client.py +0 -230
  732. azure/mgmt/storage/v2021_09_01/aio/operations/__init__.py +0 -57
  733. azure/mgmt/storage/v2021_09_01/aio/operations/_blob_containers_operations.py +0 -1838
  734. azure/mgmt/storage/v2021_09_01/aio/operations/_blob_inventory_policies_operations.py +0 -442
  735. azure/mgmt/storage/v2021_09_01/aio/operations/_blob_services_operations.py +0 -362
  736. azure/mgmt/storage/v2021_09_01/aio/operations/_deleted_accounts_operations.py +0 -194
  737. azure/mgmt/storage/v2021_09_01/aio/operations/_encryption_scopes_operations.py +0 -550
  738. azure/mgmt/storage/v2021_09_01/aio/operations/_file_services_operations.py +0 -328
  739. azure/mgmt/storage/v2021_09_01/aio/operations/_file_shares_operations.py +0 -1003
  740. azure/mgmt/storage/v2021_09_01/aio/operations/_local_users_operations.py +0 -560
  741. azure/mgmt/storage/v2021_09_01/aio/operations/_management_policies_operations.py +0 -349
  742. azure/mgmt/storage/v2021_09_01/aio/operations/_object_replication_policies_operations.py +0 -446
  743. azure/mgmt/storage/v2021_09_01/aio/operations/_operations.py +0 -135
  744. azure/mgmt/storage/v2021_09_01/aio/operations/_patch.py +0 -20
  745. azure/mgmt/storage/v2021_09_01/aio/operations/_private_endpoint_connections_operations.py +0 -432
  746. azure/mgmt/storage/v2021_09_01/aio/operations/_private_link_resources_operations.py +0 -117
  747. azure/mgmt/storage/v2021_09_01/aio/operations/_queue_operations.py +0 -608
  748. azure/mgmt/storage/v2021_09_01/aio/operations/_queue_services_operations.py +0 -328
  749. azure/mgmt/storage/v2021_09_01/aio/operations/_skus_operations.py +0 -136
  750. azure/mgmt/storage/v2021_09_01/aio/operations/_storage_accounts_operations.py +0 -1898
  751. azure/mgmt/storage/v2021_09_01/aio/operations/_table_operations.py +0 -588
  752. azure/mgmt/storage/v2021_09_01/aio/operations/_table_services_operations.py +0 -328
  753. azure/mgmt/storage/v2021_09_01/aio/operations/_usages_operations.py +0 -139
  754. azure/mgmt/storage/v2021_09_01/models/__init__.py +0 -441
  755. azure/mgmt/storage/v2021_09_01/models/_models_py3.py +0 -8069
  756. azure/mgmt/storage/v2021_09_01/models/_patch.py +0 -20
  757. azure/mgmt/storage/v2021_09_01/models/_storage_management_client_enums.py +0 -583
  758. azure/mgmt/storage/v2021_09_01/operations/__init__.py +0 -57
  759. azure/mgmt/storage/v2021_09_01/operations/_blob_containers_operations.py +0 -2370
  760. azure/mgmt/storage/v2021_09_01/operations/_blob_inventory_policies_operations.py +0 -587
  761. azure/mgmt/storage/v2021_09_01/operations/_blob_services_operations.py +0 -464
  762. azure/mgmt/storage/v2021_09_01/operations/_deleted_accounts_operations.py +0 -250
  763. azure/mgmt/storage/v2021_09_01/operations/_encryption_scopes_operations.py +0 -689
  764. azure/mgmt/storage/v2021_09_01/operations/_file_services_operations.py +0 -431
  765. azure/mgmt/storage/v2021_09_01/operations/_file_shares_operations.py +0 -1296
  766. azure/mgmt/storage/v2021_09_01/operations/_local_users_operations.py +0 -758
  767. azure/mgmt/storage/v2021_09_01/operations/_management_policies_operations.py +0 -459
  768. azure/mgmt/storage/v2021_09_01/operations/_object_replication_policies_operations.py +0 -585
  769. azure/mgmt/storage/v2021_09_01/operations/_operations.py +0 -156
  770. azure/mgmt/storage/v2021_09_01/operations/_patch.py +0 -20
  771. azure/mgmt/storage/v2021_09_01/operations/_private_endpoint_connections_operations.py +0 -583
  772. azure/mgmt/storage/v2021_09_01/operations/_private_link_resources_operations.py +0 -153
  773. azure/mgmt/storage/v2021_09_01/operations/_queue_operations.py +0 -814
  774. azure/mgmt/storage/v2021_09_01/operations/_queue_services_operations.py +0 -431
  775. azure/mgmt/storage/v2021_09_01/operations/_skus_operations.py +0 -162
  776. azure/mgmt/storage/v2021_09_01/operations/_storage_accounts_operations.py +0 -2400
  777. azure/mgmt/storage/v2021_09_01/operations/_table_operations.py +0 -765
  778. azure/mgmt/storage/v2021_09_01/operations/_table_services_operations.py +0 -431
  779. azure/mgmt/storage/v2021_09_01/operations/_usages_operations.py +0 -169
  780. azure/mgmt/storage/v2022_05_01/__init__.py +0 -26
  781. azure/mgmt/storage/v2022_05_01/_configuration.py +0 -65
  782. azure/mgmt/storage/v2022_05_01/_patch.py +0 -20
  783. azure/mgmt/storage/v2022_05_01/_storage_management_client.py +0 -225
  784. azure/mgmt/storage/v2022_05_01/_vendor.py +0 -16
  785. azure/mgmt/storage/v2022_05_01/_version.py +0 -9
  786. azure/mgmt/storage/v2022_05_01/aio/__init__.py +0 -23
  787. azure/mgmt/storage/v2022_05_01/aio/_configuration.py +0 -65
  788. azure/mgmt/storage/v2022_05_01/aio/_patch.py +0 -20
  789. azure/mgmt/storage/v2022_05_01/aio/_storage_management_client.py +0 -230
  790. azure/mgmt/storage/v2022_05_01/aio/operations/__init__.py +0 -57
  791. azure/mgmt/storage/v2022_05_01/aio/operations/_blob_containers_operations.py +0 -1838
  792. azure/mgmt/storage/v2022_05_01/aio/operations/_blob_inventory_policies_operations.py +0 -442
  793. azure/mgmt/storage/v2022_05_01/aio/operations/_blob_services_operations.py +0 -362
  794. azure/mgmt/storage/v2022_05_01/aio/operations/_deleted_accounts_operations.py +0 -194
  795. azure/mgmt/storage/v2022_05_01/aio/operations/_encryption_scopes_operations.py +0 -550
  796. azure/mgmt/storage/v2022_05_01/aio/operations/_file_services_operations.py +0 -328
  797. azure/mgmt/storage/v2022_05_01/aio/operations/_file_shares_operations.py +0 -1003
  798. azure/mgmt/storage/v2022_05_01/aio/operations/_local_users_operations.py +0 -560
  799. azure/mgmt/storage/v2022_05_01/aio/operations/_management_policies_operations.py +0 -349
  800. azure/mgmt/storage/v2022_05_01/aio/operations/_object_replication_policies_operations.py +0 -446
  801. azure/mgmt/storage/v2022_05_01/aio/operations/_operations.py +0 -135
  802. azure/mgmt/storage/v2022_05_01/aio/operations/_patch.py +0 -20
  803. azure/mgmt/storage/v2022_05_01/aio/operations/_private_endpoint_connections_operations.py +0 -432
  804. azure/mgmt/storage/v2022_05_01/aio/operations/_private_link_resources_operations.py +0 -117
  805. azure/mgmt/storage/v2022_05_01/aio/operations/_queue_operations.py +0 -608
  806. azure/mgmt/storage/v2022_05_01/aio/operations/_queue_services_operations.py +0 -328
  807. azure/mgmt/storage/v2022_05_01/aio/operations/_skus_operations.py +0 -136
  808. azure/mgmt/storage/v2022_05_01/aio/operations/_storage_accounts_operations.py +0 -1898
  809. azure/mgmt/storage/v2022_05_01/aio/operations/_table_operations.py +0 -588
  810. azure/mgmt/storage/v2022_05_01/aio/operations/_table_services_operations.py +0 -328
  811. azure/mgmt/storage/v2022_05_01/aio/operations/_usages_operations.py +0 -139
  812. azure/mgmt/storage/v2022_05_01/models/__init__.py +0 -441
  813. azure/mgmt/storage/v2022_05_01/models/_models_py3.py +0 -8057
  814. azure/mgmt/storage/v2022_05_01/models/_patch.py +0 -20
  815. azure/mgmt/storage/v2022_05_01/models/_storage_management_client_enums.py +0 -584
  816. azure/mgmt/storage/v2022_05_01/operations/__init__.py +0 -57
  817. azure/mgmt/storage/v2022_05_01/operations/_blob_containers_operations.py +0 -2370
  818. azure/mgmt/storage/v2022_05_01/operations/_blob_inventory_policies_operations.py +0 -587
  819. azure/mgmt/storage/v2022_05_01/operations/_blob_services_operations.py +0 -464
  820. azure/mgmt/storage/v2022_05_01/operations/_deleted_accounts_operations.py +0 -250
  821. azure/mgmt/storage/v2022_05_01/operations/_encryption_scopes_operations.py +0 -689
  822. azure/mgmt/storage/v2022_05_01/operations/_file_services_operations.py +0 -431
  823. azure/mgmt/storage/v2022_05_01/operations/_file_shares_operations.py +0 -1296
  824. azure/mgmt/storage/v2022_05_01/operations/_local_users_operations.py +0 -758
  825. azure/mgmt/storage/v2022_05_01/operations/_management_policies_operations.py +0 -459
  826. azure/mgmt/storage/v2022_05_01/operations/_object_replication_policies_operations.py +0 -585
  827. azure/mgmt/storage/v2022_05_01/operations/_operations.py +0 -156
  828. azure/mgmt/storage/v2022_05_01/operations/_patch.py +0 -20
  829. azure/mgmt/storage/v2022_05_01/operations/_private_endpoint_connections_operations.py +0 -583
  830. azure/mgmt/storage/v2022_05_01/operations/_private_link_resources_operations.py +0 -153
  831. azure/mgmt/storage/v2022_05_01/operations/_queue_operations.py +0 -814
  832. azure/mgmt/storage/v2022_05_01/operations/_queue_services_operations.py +0 -431
  833. azure/mgmt/storage/v2022_05_01/operations/_skus_operations.py +0 -162
  834. azure/mgmt/storage/v2022_05_01/operations/_storage_accounts_operations.py +0 -2400
  835. azure/mgmt/storage/v2022_05_01/operations/_table_operations.py +0 -765
  836. azure/mgmt/storage/v2022_05_01/operations/_table_services_operations.py +0 -431
  837. azure/mgmt/storage/v2022_05_01/operations/_usages_operations.py +0 -169
  838. azure/mgmt/storage/v2022_09_01/__init__.py +0 -26
  839. azure/mgmt/storage/v2022_09_01/_configuration.py +0 -65
  840. azure/mgmt/storage/v2022_09_01/_patch.py +0 -20
  841. azure/mgmt/storage/v2022_09_01/_storage_management_client.py +0 -225
  842. azure/mgmt/storage/v2022_09_01/_vendor.py +0 -16
  843. azure/mgmt/storage/v2022_09_01/_version.py +0 -9
  844. azure/mgmt/storage/v2022_09_01/aio/__init__.py +0 -23
  845. azure/mgmt/storage/v2022_09_01/aio/_configuration.py +0 -65
  846. azure/mgmt/storage/v2022_09_01/aio/_patch.py +0 -20
  847. azure/mgmt/storage/v2022_09_01/aio/_storage_management_client.py +0 -230
  848. azure/mgmt/storage/v2022_09_01/aio/operations/__init__.py +0 -57
  849. azure/mgmt/storage/v2022_09_01/aio/operations/_blob_containers_operations.py +0 -1838
  850. azure/mgmt/storage/v2022_09_01/aio/operations/_blob_inventory_policies_operations.py +0 -442
  851. azure/mgmt/storage/v2022_09_01/aio/operations/_blob_services_operations.py +0 -362
  852. azure/mgmt/storage/v2022_09_01/aio/operations/_deleted_accounts_operations.py +0 -194
  853. azure/mgmt/storage/v2022_09_01/aio/operations/_encryption_scopes_operations.py +0 -568
  854. azure/mgmt/storage/v2022_09_01/aio/operations/_file_services_operations.py +0 -328
  855. azure/mgmt/storage/v2022_09_01/aio/operations/_file_shares_operations.py +0 -1003
  856. azure/mgmt/storage/v2022_09_01/aio/operations/_local_users_operations.py +0 -560
  857. azure/mgmt/storage/v2022_09_01/aio/operations/_management_policies_operations.py +0 -349
  858. azure/mgmt/storage/v2022_09_01/aio/operations/_object_replication_policies_operations.py +0 -446
  859. azure/mgmt/storage/v2022_09_01/aio/operations/_operations.py +0 -135
  860. azure/mgmt/storage/v2022_09_01/aio/operations/_patch.py +0 -20
  861. azure/mgmt/storage/v2022_09_01/aio/operations/_private_endpoint_connections_operations.py +0 -432
  862. azure/mgmt/storage/v2022_09_01/aio/operations/_private_link_resources_operations.py +0 -117
  863. azure/mgmt/storage/v2022_09_01/aio/operations/_queue_operations.py +0 -608
  864. azure/mgmt/storage/v2022_09_01/aio/operations/_queue_services_operations.py +0 -328
  865. azure/mgmt/storage/v2022_09_01/aio/operations/_skus_operations.py +0 -136
  866. azure/mgmt/storage/v2022_09_01/aio/operations/_storage_accounts_operations.py +0 -1913
  867. azure/mgmt/storage/v2022_09_01/aio/operations/_table_operations.py +0 -588
  868. azure/mgmt/storage/v2022_09_01/aio/operations/_table_services_operations.py +0 -328
  869. azure/mgmt/storage/v2022_09_01/aio/operations/_usages_operations.py +0 -139
  870. azure/mgmt/storage/v2022_09_01/models/__init__.py +0 -443
  871. azure/mgmt/storage/v2022_09_01/models/_models_py3.py +0 -8093
  872. azure/mgmt/storage/v2022_09_01/models/_patch.py +0 -20
  873. azure/mgmt/storage/v2022_09_01/models/_storage_management_client_enums.py +0 -592
  874. azure/mgmt/storage/v2022_09_01/operations/__init__.py +0 -57
  875. azure/mgmt/storage/v2022_09_01/operations/_blob_containers_operations.py +0 -2370
  876. azure/mgmt/storage/v2022_09_01/operations/_blob_inventory_policies_operations.py +0 -587
  877. azure/mgmt/storage/v2022_09_01/operations/_blob_services_operations.py +0 -464
  878. azure/mgmt/storage/v2022_09_01/operations/_deleted_accounts_operations.py +0 -250
  879. azure/mgmt/storage/v2022_09_01/operations/_encryption_scopes_operations.py +0 -724
  880. azure/mgmt/storage/v2022_09_01/operations/_file_services_operations.py +0 -431
  881. azure/mgmt/storage/v2022_09_01/operations/_file_shares_operations.py +0 -1296
  882. azure/mgmt/storage/v2022_09_01/operations/_local_users_operations.py +0 -758
  883. azure/mgmt/storage/v2022_09_01/operations/_management_policies_operations.py +0 -459
  884. azure/mgmt/storage/v2022_09_01/operations/_object_replication_policies_operations.py +0 -585
  885. azure/mgmt/storage/v2022_09_01/operations/_operations.py +0 -156
  886. azure/mgmt/storage/v2022_09_01/operations/_patch.py +0 -20
  887. azure/mgmt/storage/v2022_09_01/operations/_private_endpoint_connections_operations.py +0 -583
  888. azure/mgmt/storage/v2022_09_01/operations/_private_link_resources_operations.py +0 -153
  889. azure/mgmt/storage/v2022_09_01/operations/_queue_operations.py +0 -814
  890. azure/mgmt/storage/v2022_09_01/operations/_queue_services_operations.py +0 -431
  891. azure/mgmt/storage/v2022_09_01/operations/_skus_operations.py +0 -162
  892. azure/mgmt/storage/v2022_09_01/operations/_storage_accounts_operations.py +0 -2422
  893. azure/mgmt/storage/v2022_09_01/operations/_table_operations.py +0 -765
  894. azure/mgmt/storage/v2022_09_01/operations/_table_services_operations.py +0 -431
  895. azure/mgmt/storage/v2022_09_01/operations/_usages_operations.py +0 -169
  896. azure/mgmt/storage/v2023_01_01/__init__.py +0 -26
  897. azure/mgmt/storage/v2023_01_01/_configuration.py +0 -65
  898. azure/mgmt/storage/v2023_01_01/_patch.py +0 -20
  899. azure/mgmt/storage/v2023_01_01/_storage_management_client.py +0 -225
  900. azure/mgmt/storage/v2023_01_01/_vendor.py +0 -16
  901. azure/mgmt/storage/v2023_01_01/_version.py +0 -9
  902. azure/mgmt/storage/v2023_01_01/aio/__init__.py +0 -23
  903. azure/mgmt/storage/v2023_01_01/aio/_configuration.py +0 -65
  904. azure/mgmt/storage/v2023_01_01/aio/_patch.py +0 -20
  905. azure/mgmt/storage/v2023_01_01/aio/_storage_management_client.py +0 -230
  906. azure/mgmt/storage/v2023_01_01/aio/operations/__init__.py +0 -57
  907. azure/mgmt/storage/v2023_01_01/aio/operations/_blob_containers_operations.py +0 -1838
  908. azure/mgmt/storage/v2023_01_01/aio/operations/_blob_inventory_policies_operations.py +0 -442
  909. azure/mgmt/storage/v2023_01_01/aio/operations/_blob_services_operations.py +0 -362
  910. azure/mgmt/storage/v2023_01_01/aio/operations/_deleted_accounts_operations.py +0 -194
  911. azure/mgmt/storage/v2023_01_01/aio/operations/_encryption_scopes_operations.py +0 -568
  912. azure/mgmt/storage/v2023_01_01/aio/operations/_file_services_operations.py +0 -328
  913. azure/mgmt/storage/v2023_01_01/aio/operations/_file_shares_operations.py +0 -1003
  914. azure/mgmt/storage/v2023_01_01/aio/operations/_local_users_operations.py +0 -560
  915. azure/mgmt/storage/v2023_01_01/aio/operations/_management_policies_operations.py +0 -349
  916. azure/mgmt/storage/v2023_01_01/aio/operations/_object_replication_policies_operations.py +0 -446
  917. azure/mgmt/storage/v2023_01_01/aio/operations/_operations.py +0 -135
  918. azure/mgmt/storage/v2023_01_01/aio/operations/_patch.py +0 -20
  919. azure/mgmt/storage/v2023_01_01/aio/operations/_private_endpoint_connections_operations.py +0 -432
  920. azure/mgmt/storage/v2023_01_01/aio/operations/_private_link_resources_operations.py +0 -117
  921. azure/mgmt/storage/v2023_01_01/aio/operations/_queue_operations.py +0 -608
  922. azure/mgmt/storage/v2023_01_01/aio/operations/_queue_services_operations.py +0 -328
  923. azure/mgmt/storage/v2023_01_01/aio/operations/_skus_operations.py +0 -136
  924. azure/mgmt/storage/v2023_01_01/aio/operations/_storage_accounts_operations.py +0 -2187
  925. azure/mgmt/storage/v2023_01_01/aio/operations/_table_operations.py +0 -588
  926. azure/mgmt/storage/v2023_01_01/aio/operations/_table_services_operations.py +0 -328
  927. azure/mgmt/storage/v2023_01_01/aio/operations/_usages_operations.py +0 -139
  928. azure/mgmt/storage/v2023_01_01/models/__init__.py +0 -461
  929. azure/mgmt/storage/v2023_01_01/models/_models_py3.py +0 -8338
  930. azure/mgmt/storage/v2023_01_01/models/_patch.py +0 -20
  931. azure/mgmt/storage/v2023_01_01/models/_storage_management_client_enums.py +0 -626
  932. azure/mgmt/storage/v2023_01_01/operations/__init__.py +0 -57
  933. azure/mgmt/storage/v2023_01_01/operations/_blob_containers_operations.py +0 -2398
  934. azure/mgmt/storage/v2023_01_01/operations/_blob_inventory_policies_operations.py +0 -595
  935. azure/mgmt/storage/v2023_01_01/operations/_blob_services_operations.py +0 -470
  936. azure/mgmt/storage/v2023_01_01/operations/_deleted_accounts_operations.py +0 -250
  937. azure/mgmt/storage/v2023_01_01/operations/_encryption_scopes_operations.py +0 -732
  938. azure/mgmt/storage/v2023_01_01/operations/_file_services_operations.py +0 -437
  939. azure/mgmt/storage/v2023_01_01/operations/_file_shares_operations.py +0 -1310
  940. azure/mgmt/storage/v2023_01_01/operations/_local_users_operations.py +0 -770
  941. azure/mgmt/storage/v2023_01_01/operations/_management_policies_operations.py +0 -465
  942. azure/mgmt/storage/v2023_01_01/operations/_object_replication_policies_operations.py +0 -593
  943. azure/mgmt/storage/v2023_01_01/operations/_operations.py +0 -156
  944. azure/mgmt/storage/v2023_01_01/operations/_patch.py +0 -20
  945. azure/mgmt/storage/v2023_01_01/operations/_private_endpoint_connections_operations.py +0 -591
  946. azure/mgmt/storage/v2023_01_01/operations/_private_link_resources_operations.py +0 -155
  947. azure/mgmt/storage/v2023_01_01/operations/_queue_operations.py +0 -824
  948. azure/mgmt/storage/v2023_01_01/operations/_queue_services_operations.py +0 -437
  949. azure/mgmt/storage/v2023_01_01/operations/_skus_operations.py +0 -162
  950. azure/mgmt/storage/v2023_01_01/operations/_storage_accounts_operations.py +0 -2796
  951. azure/mgmt/storage/v2023_01_01/operations/_table_operations.py +0 -775
  952. azure/mgmt/storage/v2023_01_01/operations/_table_services_operations.py +0 -437
  953. azure/mgmt/storage/v2023_01_01/operations/_usages_operations.py +0 -169
  954. azure/mgmt/storage/v2023_05_01/_vendor.py +0 -16
  955. azure_mgmt_storage-21.2.0.dist-info/RECORD +0 -979
  956. {azure_mgmt_storage-21.2.0.dist-info → azure_mgmt_storage-22.0.0.dist-info}/LICENSE +0 -0
  957. {azure_mgmt_storage-21.2.0.dist-info → azure_mgmt_storage-22.0.0.dist-info}/top_level.txt +0 -0
@@ -1,1875 +0,0 @@
1
- # pylint: disable=too-many-lines,too-many-statements
2
- # coding=utf-8
3
- # --------------------------------------------------------------------------
4
- # Copyright (c) Microsoft Corporation. All rights reserved.
5
- # Licensed under the MIT License. See License.txt in the project root for license information.
6
- # Code generated by Microsoft (R) AutoRest Code Generator.
7
- # Changes may cause incorrect behavior and will be lost if the code is regenerated.
8
- # --------------------------------------------------------------------------
9
- from io import IOBase
10
- import sys
11
- from typing import Any, Callable, Dict, IO, Iterable, Literal, Optional, Type, TypeVar, Union, cast, overload
12
- import urllib.parse
13
-
14
- from azure.core.exceptions import (
15
- ClientAuthenticationError,
16
- HttpResponseError,
17
- ResourceExistsError,
18
- ResourceNotFoundError,
19
- ResourceNotModifiedError,
20
- map_error,
21
- )
22
- from azure.core.paging import ItemPaged
23
- from azure.core.pipeline import PipelineResponse
24
- from azure.core.pipeline.transport import HttpResponse
25
- from azure.core.polling import LROPoller, NoPolling, PollingMethod
26
- from azure.core.rest import HttpRequest
27
- from azure.core.tracing.decorator import distributed_trace
28
- from azure.core.utils import case_insensitive_dict
29
- from azure.mgmt.core.exceptions import ARMErrorFormat
30
- from azure.mgmt.core.polling.arm_polling import ARMPolling
31
-
32
- from .. import models as _models
33
- from ..._serialization import Serializer
34
- from .._vendor import _convert_request
35
-
36
- if sys.version_info >= (3, 9):
37
- from collections.abc import MutableMapping
38
- else:
39
- from typing import MutableMapping # type: ignore # pylint: disable=ungrouped-imports
40
- T = TypeVar("T")
41
- ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]]
42
-
43
- _SERIALIZER = Serializer()
44
- _SERIALIZER.client_side_validation = False
45
-
46
-
47
- def build_check_name_availability_request(subscription_id: str, **kwargs: Any) -> HttpRequest:
48
- _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
49
- _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
50
-
51
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-11-01"))
52
- content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
53
- accept = _headers.pop("Accept", "application/json")
54
-
55
- # Construct URL
56
- _url = kwargs.pop(
57
- "template_url", "/subscriptions/{subscriptionId}/providers/Microsoft.Storage/checkNameAvailability"
58
- )
59
- path_format_arguments = {
60
- "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str", min_length=1),
61
- }
62
-
63
- _url: str = _url.format(**path_format_arguments) # type: ignore
64
-
65
- # Construct parameters
66
- _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str")
67
-
68
- # Construct headers
69
- if content_type is not None:
70
- _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str")
71
- _headers["Accept"] = _SERIALIZER.header("accept", accept, "str")
72
-
73
- return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs)
74
-
75
-
76
- def build_create_request(
77
- resource_group_name: str, account_name: str, subscription_id: str, **kwargs: Any
78
- ) -> HttpRequest:
79
- _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
80
- _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
81
-
82
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-11-01"))
83
- content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
84
- accept = _headers.pop("Accept", "application/json")
85
-
86
- # Construct URL
87
- _url = kwargs.pop(
88
- "template_url",
89
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}",
90
- ) # pylint: disable=line-too-long
91
- path_format_arguments = {
92
- "resourceGroupName": _SERIALIZER.url(
93
- "resource_group_name", resource_group_name, "str", max_length=90, min_length=1, pattern=r"^[-\w\._\(\)]+$"
94
- ),
95
- "accountName": _SERIALIZER.url("account_name", account_name, "str", max_length=24, min_length=3),
96
- "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str", min_length=1),
97
- }
98
-
99
- _url: str = _url.format(**path_format_arguments) # type: ignore
100
-
101
- # Construct parameters
102
- _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str")
103
-
104
- # Construct headers
105
- if content_type is not None:
106
- _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str")
107
- _headers["Accept"] = _SERIALIZER.header("accept", accept, "str")
108
-
109
- return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs)
110
-
111
-
112
- def build_delete_request(
113
- resource_group_name: str, account_name: str, subscription_id: str, **kwargs: Any
114
- ) -> HttpRequest:
115
- _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
116
-
117
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-11-01"))
118
- # Construct URL
119
- _url = kwargs.pop(
120
- "template_url",
121
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}",
122
- ) # pylint: disable=line-too-long
123
- path_format_arguments = {
124
- "resourceGroupName": _SERIALIZER.url(
125
- "resource_group_name", resource_group_name, "str", max_length=90, min_length=1, pattern=r"^[-\w\._\(\)]+$"
126
- ),
127
- "accountName": _SERIALIZER.url("account_name", account_name, "str", max_length=24, min_length=3),
128
- "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str", min_length=1),
129
- }
130
-
131
- _url: str = _url.format(**path_format_arguments) # type: ignore
132
-
133
- # Construct parameters
134
- _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str")
135
-
136
- return HttpRequest(method="DELETE", url=_url, params=_params, **kwargs)
137
-
138
-
139
- def build_get_properties_request(
140
- resource_group_name: str,
141
- account_name: str,
142
- subscription_id: str,
143
- *,
144
- expand: Literal["geoReplicationStats"] = "geoReplicationStats",
145
- **kwargs: Any
146
- ) -> HttpRequest:
147
- _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
148
- _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
149
-
150
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-11-01"))
151
- accept = _headers.pop("Accept", "application/json")
152
-
153
- # Construct URL
154
- _url = kwargs.pop(
155
- "template_url",
156
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}",
157
- ) # pylint: disable=line-too-long
158
- path_format_arguments = {
159
- "resourceGroupName": _SERIALIZER.url(
160
- "resource_group_name", resource_group_name, "str", max_length=90, min_length=1, pattern=r"^[-\w\._\(\)]+$"
161
- ),
162
- "accountName": _SERIALIZER.url("account_name", account_name, "str", max_length=24, min_length=3),
163
- "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str", min_length=1),
164
- }
165
-
166
- _url: str = _url.format(**path_format_arguments) # type: ignore
167
-
168
- # Construct parameters
169
- _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str")
170
- if expand is not None:
171
- _params["$expand"] = _SERIALIZER.query("expand", expand, "str")
172
-
173
- # Construct headers
174
- _headers["Accept"] = _SERIALIZER.header("accept", accept, "str")
175
-
176
- return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs)
177
-
178
-
179
- def build_update_request(
180
- resource_group_name: str, account_name: str, subscription_id: str, **kwargs: Any
181
- ) -> HttpRequest:
182
- _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
183
- _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
184
-
185
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-11-01"))
186
- content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
187
- accept = _headers.pop("Accept", "application/json")
188
-
189
- # Construct URL
190
- _url = kwargs.pop(
191
- "template_url",
192
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}",
193
- ) # pylint: disable=line-too-long
194
- path_format_arguments = {
195
- "resourceGroupName": _SERIALIZER.url(
196
- "resource_group_name", resource_group_name, "str", max_length=90, min_length=1, pattern=r"^[-\w\._\(\)]+$"
197
- ),
198
- "accountName": _SERIALIZER.url("account_name", account_name, "str", max_length=24, min_length=3),
199
- "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str", min_length=1),
200
- }
201
-
202
- _url: str = _url.format(**path_format_arguments) # type: ignore
203
-
204
- # Construct parameters
205
- _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str")
206
-
207
- # Construct headers
208
- if content_type is not None:
209
- _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str")
210
- _headers["Accept"] = _SERIALIZER.header("accept", accept, "str")
211
-
212
- return HttpRequest(method="PATCH", url=_url, params=_params, headers=_headers, **kwargs)
213
-
214
-
215
- def build_list_request(subscription_id: str, **kwargs: Any) -> HttpRequest:
216
- _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
217
- _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
218
-
219
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-11-01"))
220
- accept = _headers.pop("Accept", "application/json")
221
-
222
- # Construct URL
223
- _url = kwargs.pop("template_url", "/subscriptions/{subscriptionId}/providers/Microsoft.Storage/storageAccounts")
224
- path_format_arguments = {
225
- "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str", min_length=1),
226
- }
227
-
228
- _url: str = _url.format(**path_format_arguments) # type: ignore
229
-
230
- # Construct parameters
231
- _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str")
232
-
233
- # Construct headers
234
- _headers["Accept"] = _SERIALIZER.header("accept", accept, "str")
235
-
236
- return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs)
237
-
238
-
239
- def build_list_by_resource_group_request(resource_group_name: str, subscription_id: str, **kwargs: Any) -> HttpRequest:
240
- _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
241
- _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
242
-
243
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-11-01"))
244
- accept = _headers.pop("Accept", "application/json")
245
-
246
- # Construct URL
247
- _url = kwargs.pop(
248
- "template_url",
249
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts",
250
- ) # pylint: disable=line-too-long
251
- path_format_arguments = {
252
- "resourceGroupName": _SERIALIZER.url(
253
- "resource_group_name", resource_group_name, "str", max_length=90, min_length=1, pattern=r"^[-\w\._\(\)]+$"
254
- ),
255
- "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str", min_length=1),
256
- }
257
-
258
- _url: str = _url.format(**path_format_arguments) # type: ignore
259
-
260
- # Construct parameters
261
- _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str")
262
-
263
- # Construct headers
264
- _headers["Accept"] = _SERIALIZER.header("accept", accept, "str")
265
-
266
- return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs)
267
-
268
-
269
- def build_list_keys_request(
270
- resource_group_name: str, account_name: str, subscription_id: str, **kwargs: Any
271
- ) -> HttpRequest:
272
- _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
273
- _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
274
-
275
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-11-01"))
276
- accept = _headers.pop("Accept", "application/json")
277
-
278
- # Construct URL
279
- _url = kwargs.pop(
280
- "template_url",
281
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/listKeys",
282
- ) # pylint: disable=line-too-long
283
- path_format_arguments = {
284
- "resourceGroupName": _SERIALIZER.url(
285
- "resource_group_name", resource_group_name, "str", max_length=90, min_length=1, pattern=r"^[-\w\._\(\)]+$"
286
- ),
287
- "accountName": _SERIALIZER.url("account_name", account_name, "str", max_length=24, min_length=3),
288
- "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str", min_length=1),
289
- }
290
-
291
- _url: str = _url.format(**path_format_arguments) # type: ignore
292
-
293
- # Construct parameters
294
- _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str")
295
-
296
- # Construct headers
297
- _headers["Accept"] = _SERIALIZER.header("accept", accept, "str")
298
-
299
- return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs)
300
-
301
-
302
- def build_regenerate_key_request(
303
- resource_group_name: str, account_name: str, subscription_id: str, **kwargs: Any
304
- ) -> HttpRequest:
305
- _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
306
- _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
307
-
308
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-11-01"))
309
- content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
310
- accept = _headers.pop("Accept", "application/json")
311
-
312
- # Construct URL
313
- _url = kwargs.pop(
314
- "template_url",
315
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/regenerateKey",
316
- ) # pylint: disable=line-too-long
317
- path_format_arguments = {
318
- "resourceGroupName": _SERIALIZER.url(
319
- "resource_group_name", resource_group_name, "str", max_length=90, min_length=1, pattern=r"^[-\w\._\(\)]+$"
320
- ),
321
- "accountName": _SERIALIZER.url("account_name", account_name, "str", max_length=24, min_length=3),
322
- "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str", min_length=1),
323
- }
324
-
325
- _url: str = _url.format(**path_format_arguments) # type: ignore
326
-
327
- # Construct parameters
328
- _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str")
329
-
330
- # Construct headers
331
- if content_type is not None:
332
- _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str")
333
- _headers["Accept"] = _SERIALIZER.header("accept", accept, "str")
334
-
335
- return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs)
336
-
337
-
338
- def build_list_account_sas_request(
339
- resource_group_name: str, account_name: str, subscription_id: str, **kwargs: Any
340
- ) -> HttpRequest:
341
- _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
342
- _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
343
-
344
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-11-01"))
345
- content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
346
- accept = _headers.pop("Accept", "application/json")
347
-
348
- # Construct URL
349
- _url = kwargs.pop(
350
- "template_url",
351
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/ListAccountSas",
352
- ) # pylint: disable=line-too-long
353
- path_format_arguments = {
354
- "resourceGroupName": _SERIALIZER.url(
355
- "resource_group_name", resource_group_name, "str", max_length=90, min_length=1, pattern=r"^[-\w\._\(\)]+$"
356
- ),
357
- "accountName": _SERIALIZER.url("account_name", account_name, "str", max_length=24, min_length=3),
358
- "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str", min_length=1),
359
- }
360
-
361
- _url: str = _url.format(**path_format_arguments) # type: ignore
362
-
363
- # Construct parameters
364
- _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str")
365
-
366
- # Construct headers
367
- if content_type is not None:
368
- _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str")
369
- _headers["Accept"] = _SERIALIZER.header("accept", accept, "str")
370
-
371
- return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs)
372
-
373
-
374
- def build_list_service_sas_request(
375
- resource_group_name: str, account_name: str, subscription_id: str, **kwargs: Any
376
- ) -> HttpRequest:
377
- _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
378
- _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
379
-
380
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-11-01"))
381
- content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
382
- accept = _headers.pop("Accept", "application/json")
383
-
384
- # Construct URL
385
- _url = kwargs.pop(
386
- "template_url",
387
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/ListServiceSas",
388
- ) # pylint: disable=line-too-long
389
- path_format_arguments = {
390
- "resourceGroupName": _SERIALIZER.url(
391
- "resource_group_name", resource_group_name, "str", max_length=90, min_length=1, pattern=r"^[-\w\._\(\)]+$"
392
- ),
393
- "accountName": _SERIALIZER.url("account_name", account_name, "str", max_length=24, min_length=3),
394
- "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str", min_length=1),
395
- }
396
-
397
- _url: str = _url.format(**path_format_arguments) # type: ignore
398
-
399
- # Construct parameters
400
- _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str")
401
-
402
- # Construct headers
403
- if content_type is not None:
404
- _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str")
405
- _headers["Accept"] = _SERIALIZER.header("accept", accept, "str")
406
-
407
- return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs)
408
-
409
-
410
- def build_failover_request(
411
- resource_group_name: str, account_name: str, subscription_id: str, **kwargs: Any
412
- ) -> HttpRequest:
413
- _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
414
-
415
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-11-01"))
416
- # Construct URL
417
- _url = kwargs.pop(
418
- "template_url",
419
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/failover",
420
- ) # pylint: disable=line-too-long
421
- path_format_arguments = {
422
- "resourceGroupName": _SERIALIZER.url(
423
- "resource_group_name", resource_group_name, "str", max_length=90, min_length=1, pattern=r"^[-\w\._\(\)]+$"
424
- ),
425
- "accountName": _SERIALIZER.url("account_name", account_name, "str", max_length=24, min_length=3),
426
- "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str", min_length=1),
427
- }
428
-
429
- _url: str = _url.format(**path_format_arguments) # type: ignore
430
-
431
- # Construct parameters
432
- _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str")
433
-
434
- return HttpRequest(method="POST", url=_url, params=_params, **kwargs)
435
-
436
-
437
- def build_revoke_user_delegation_keys_request( # pylint: disable=name-too-long
438
- resource_group_name: str, account_name: str, subscription_id: str, **kwargs: Any
439
- ) -> HttpRequest:
440
- _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
441
-
442
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-11-01"))
443
- # Construct URL
444
- _url = kwargs.pop(
445
- "template_url",
446
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/revokeUserDelegationKeys",
447
- ) # pylint: disable=line-too-long
448
- path_format_arguments = {
449
- "resourceGroupName": _SERIALIZER.url(
450
- "resource_group_name", resource_group_name, "str", max_length=90, min_length=1, pattern=r"^[-\w\._\(\)]+$"
451
- ),
452
- "accountName": _SERIALIZER.url("account_name", account_name, "str", max_length=24, min_length=3),
453
- "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str", min_length=1),
454
- }
455
-
456
- _url: str = _url.format(**path_format_arguments) # type: ignore
457
-
458
- # Construct parameters
459
- _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str")
460
-
461
- return HttpRequest(method="POST", url=_url, params=_params, **kwargs)
462
-
463
-
464
- class StorageAccountsOperations:
465
- """
466
- .. warning::
467
- **DO NOT** instantiate this class directly.
468
-
469
- Instead, you should access the following operations through
470
- :class:`~azure.mgmt.storage.v2018_11_01.StorageManagementClient`'s
471
- :attr:`storage_accounts` attribute.
472
- """
473
-
474
- models = _models
475
-
476
- def __init__(self, *args, **kwargs):
477
- input_args = list(args)
478
- self._client = input_args.pop(0) if input_args else kwargs.pop("client")
479
- self._config = input_args.pop(0) if input_args else kwargs.pop("config")
480
- self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer")
481
- self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer")
482
- self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version")
483
-
484
- @overload
485
- def check_name_availability(
486
- self,
487
- account_name: _models.StorageAccountCheckNameAvailabilityParameters,
488
- *,
489
- content_type: str = "application/json",
490
- **kwargs: Any
491
- ) -> _models.CheckNameAvailabilityResult:
492
- """Checks that the storage account name is valid and is not already in use.
493
-
494
- :param account_name: The name of the storage account within the specified resource group.
495
- Storage account names must be between 3 and 24 characters in length and use numbers and
496
- lower-case letters only. Required.
497
- :type account_name:
498
- ~azure.mgmt.storage.v2018_11_01.models.StorageAccountCheckNameAvailabilityParameters
499
- :keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
500
- Default value is "application/json".
501
- :paramtype content_type: str
502
- :return: CheckNameAvailabilityResult or the result of cls(response)
503
- :rtype: ~azure.mgmt.storage.v2018_11_01.models.CheckNameAvailabilityResult
504
- :raises ~azure.core.exceptions.HttpResponseError:
505
- """
506
-
507
- @overload
508
- def check_name_availability(
509
- self, account_name: IO[bytes], *, content_type: str = "application/json", **kwargs: Any
510
- ) -> _models.CheckNameAvailabilityResult:
511
- """Checks that the storage account name is valid and is not already in use.
512
-
513
- :param account_name: The name of the storage account within the specified resource group.
514
- Storage account names must be between 3 and 24 characters in length and use numbers and
515
- lower-case letters only. Required.
516
- :type account_name: IO[bytes]
517
- :keyword content_type: Body Parameter content-type. Content type parameter for binary body.
518
- Default value is "application/json".
519
- :paramtype content_type: str
520
- :return: CheckNameAvailabilityResult or the result of cls(response)
521
- :rtype: ~azure.mgmt.storage.v2018_11_01.models.CheckNameAvailabilityResult
522
- :raises ~azure.core.exceptions.HttpResponseError:
523
- """
524
-
525
- @distributed_trace
526
- def check_name_availability(
527
- self, account_name: Union[_models.StorageAccountCheckNameAvailabilityParameters, IO[bytes]], **kwargs: Any
528
- ) -> _models.CheckNameAvailabilityResult:
529
- """Checks that the storage account name is valid and is not already in use.
530
-
531
- :param account_name: The name of the storage account within the specified resource group.
532
- Storage account names must be between 3 and 24 characters in length and use numbers and
533
- lower-case letters only. Is either a StorageAccountCheckNameAvailabilityParameters type or a
534
- IO[bytes] type. Required.
535
- :type account_name:
536
- ~azure.mgmt.storage.v2018_11_01.models.StorageAccountCheckNameAvailabilityParameters or
537
- IO[bytes]
538
- :return: CheckNameAvailabilityResult or the result of cls(response)
539
- :rtype: ~azure.mgmt.storage.v2018_11_01.models.CheckNameAvailabilityResult
540
- :raises ~azure.core.exceptions.HttpResponseError:
541
- """
542
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
543
- 401: ClientAuthenticationError,
544
- 404: ResourceNotFoundError,
545
- 409: ResourceExistsError,
546
- 304: ResourceNotModifiedError,
547
- }
548
- error_map.update(kwargs.pop("error_map", {}) or {})
549
-
550
- _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
551
- _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
552
-
553
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2018-11-01"))
554
- content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
555
- cls: ClsType[_models.CheckNameAvailabilityResult] = kwargs.pop("cls", None)
556
-
557
- content_type = content_type or "application/json"
558
- _json = None
559
- _content = None
560
- if isinstance(account_name, (IOBase, bytes)):
561
- _content = account_name
562
- else:
563
- _json = self._serialize.body(account_name, "StorageAccountCheckNameAvailabilityParameters")
564
-
565
- _request = build_check_name_availability_request(
566
- subscription_id=self._config.subscription_id,
567
- api_version=api_version,
568
- content_type=content_type,
569
- json=_json,
570
- content=_content,
571
- headers=_headers,
572
- params=_params,
573
- )
574
- _request = _convert_request(_request)
575
- _request.url = self._client.format_url(_request.url)
576
-
577
- _stream = False
578
- pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access
579
- _request, stream=_stream, **kwargs
580
- )
581
-
582
- response = pipeline_response.http_response
583
-
584
- if response.status_code not in [200]:
585
- map_error(status_code=response.status_code, response=response, error_map=error_map)
586
- raise HttpResponseError(response=response, error_format=ARMErrorFormat)
587
-
588
- deserialized = self._deserialize("CheckNameAvailabilityResult", pipeline_response)
589
-
590
- if cls:
591
- return cls(pipeline_response, deserialized, {}) # type: ignore
592
-
593
- return deserialized # type: ignore
594
-
595
- def _create_initial(
596
- self,
597
- resource_group_name: str,
598
- account_name: str,
599
- parameters: Union[_models.StorageAccountCreateParameters, IO[bytes]],
600
- **kwargs: Any
601
- ) -> Optional[_models.StorageAccount]:
602
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
603
- 401: ClientAuthenticationError,
604
- 404: ResourceNotFoundError,
605
- 409: ResourceExistsError,
606
- 304: ResourceNotModifiedError,
607
- }
608
- error_map.update(kwargs.pop("error_map", {}) or {})
609
-
610
- _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
611
- _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
612
-
613
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2018-11-01"))
614
- content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
615
- cls: ClsType[Optional[_models.StorageAccount]] = kwargs.pop("cls", None)
616
-
617
- content_type = content_type or "application/json"
618
- _json = None
619
- _content = None
620
- if isinstance(parameters, (IOBase, bytes)):
621
- _content = parameters
622
- else:
623
- _json = self._serialize.body(parameters, "StorageAccountCreateParameters")
624
-
625
- _request = build_create_request(
626
- resource_group_name=resource_group_name,
627
- account_name=account_name,
628
- subscription_id=self._config.subscription_id,
629
- api_version=api_version,
630
- content_type=content_type,
631
- json=_json,
632
- content=_content,
633
- headers=_headers,
634
- params=_params,
635
- )
636
- _request = _convert_request(_request)
637
- _request.url = self._client.format_url(_request.url)
638
-
639
- _stream = False
640
- pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access
641
- _request, stream=_stream, **kwargs
642
- )
643
-
644
- response = pipeline_response.http_response
645
-
646
- if response.status_code not in [200, 202]:
647
- map_error(status_code=response.status_code, response=response, error_map=error_map)
648
- raise HttpResponseError(response=response, error_format=ARMErrorFormat)
649
-
650
- deserialized = None
651
- if response.status_code == 200:
652
- deserialized = self._deserialize("StorageAccount", pipeline_response)
653
-
654
- if cls:
655
- return cls(pipeline_response, deserialized, {}) # type: ignore
656
-
657
- return deserialized # type: ignore
658
-
659
- @overload
660
- def begin_create(
661
- self,
662
- resource_group_name: str,
663
- account_name: str,
664
- parameters: _models.StorageAccountCreateParameters,
665
- *,
666
- content_type: str = "application/json",
667
- **kwargs: Any
668
- ) -> LROPoller[_models.StorageAccount]:
669
- """Asynchronously creates a new storage account with the specified parameters. If an account is
670
- already created and a subsequent create request is issued with different properties, the
671
- account properties will be updated. If an account is already created and a subsequent create or
672
- update request is issued with the exact same set of properties, the request will succeed.
673
-
674
- :param resource_group_name: The name of the resource group within the user's subscription. The
675
- name is case insensitive. Required.
676
- :type resource_group_name: str
677
- :param account_name: The name of the storage account within the specified resource group.
678
- Storage account names must be between 3 and 24 characters in length and use numbers and
679
- lower-case letters only. Required.
680
- :type account_name: str
681
- :param parameters: The parameters to provide for the created account. Required.
682
- :type parameters: ~azure.mgmt.storage.v2018_11_01.models.StorageAccountCreateParameters
683
- :keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
684
- Default value is "application/json".
685
- :paramtype content_type: str
686
- :return: An instance of LROPoller that returns either StorageAccount or the result of
687
- cls(response)
688
- :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.storage.v2018_11_01.models.StorageAccount]
689
- :raises ~azure.core.exceptions.HttpResponseError:
690
- """
691
-
692
- @overload
693
- def begin_create(
694
- self,
695
- resource_group_name: str,
696
- account_name: str,
697
- parameters: IO[bytes],
698
- *,
699
- content_type: str = "application/json",
700
- **kwargs: Any
701
- ) -> LROPoller[_models.StorageAccount]:
702
- """Asynchronously creates a new storage account with the specified parameters. If an account is
703
- already created and a subsequent create request is issued with different properties, the
704
- account properties will be updated. If an account is already created and a subsequent create or
705
- update request is issued with the exact same set of properties, the request will succeed.
706
-
707
- :param resource_group_name: The name of the resource group within the user's subscription. The
708
- name is case insensitive. Required.
709
- :type resource_group_name: str
710
- :param account_name: The name of the storage account within the specified resource group.
711
- Storage account names must be between 3 and 24 characters in length and use numbers and
712
- lower-case letters only. Required.
713
- :type account_name: str
714
- :param parameters: The parameters to provide for the created account. Required.
715
- :type parameters: IO[bytes]
716
- :keyword content_type: Body Parameter content-type. Content type parameter for binary body.
717
- Default value is "application/json".
718
- :paramtype content_type: str
719
- :return: An instance of LROPoller that returns either StorageAccount or the result of
720
- cls(response)
721
- :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.storage.v2018_11_01.models.StorageAccount]
722
- :raises ~azure.core.exceptions.HttpResponseError:
723
- """
724
-
725
- @distributed_trace
726
- def begin_create(
727
- self,
728
- resource_group_name: str,
729
- account_name: str,
730
- parameters: Union[_models.StorageAccountCreateParameters, IO[bytes]],
731
- **kwargs: Any
732
- ) -> LROPoller[_models.StorageAccount]:
733
- """Asynchronously creates a new storage account with the specified parameters. If an account is
734
- already created and a subsequent create request is issued with different properties, the
735
- account properties will be updated. If an account is already created and a subsequent create or
736
- update request is issued with the exact same set of properties, the request will succeed.
737
-
738
- :param resource_group_name: The name of the resource group within the user's subscription. The
739
- name is case insensitive. Required.
740
- :type resource_group_name: str
741
- :param account_name: The name of the storage account within the specified resource group.
742
- Storage account names must be between 3 and 24 characters in length and use numbers and
743
- lower-case letters only. Required.
744
- :type account_name: str
745
- :param parameters: The parameters to provide for the created account. Is either a
746
- StorageAccountCreateParameters type or a IO[bytes] type. Required.
747
- :type parameters: ~azure.mgmt.storage.v2018_11_01.models.StorageAccountCreateParameters or
748
- IO[bytes]
749
- :return: An instance of LROPoller that returns either StorageAccount or the result of
750
- cls(response)
751
- :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.storage.v2018_11_01.models.StorageAccount]
752
- :raises ~azure.core.exceptions.HttpResponseError:
753
- """
754
- _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
755
- _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
756
-
757
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2018-11-01"))
758
- content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
759
- cls: ClsType[_models.StorageAccount] = kwargs.pop("cls", None)
760
- polling: Union[bool, PollingMethod] = kwargs.pop("polling", True)
761
- lro_delay = kwargs.pop("polling_interval", self._config.polling_interval)
762
- cont_token: Optional[str] = kwargs.pop("continuation_token", None)
763
- if cont_token is None:
764
- raw_result = self._create_initial(
765
- resource_group_name=resource_group_name,
766
- account_name=account_name,
767
- parameters=parameters,
768
- api_version=api_version,
769
- content_type=content_type,
770
- cls=lambda x, y, z: x,
771
- headers=_headers,
772
- params=_params,
773
- **kwargs
774
- )
775
- kwargs.pop("error_map", None)
776
-
777
- def get_long_running_output(pipeline_response):
778
- deserialized = self._deserialize("StorageAccount", pipeline_response)
779
- if cls:
780
- return cls(pipeline_response, deserialized, {}) # type: ignore
781
- return deserialized
782
-
783
- if polling is True:
784
- polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs))
785
- elif polling is False:
786
- polling_method = cast(PollingMethod, NoPolling())
787
- else:
788
- polling_method = polling
789
- if cont_token:
790
- return LROPoller[_models.StorageAccount].from_continuation_token(
791
- polling_method=polling_method,
792
- continuation_token=cont_token,
793
- client=self._client,
794
- deserialization_callback=get_long_running_output,
795
- )
796
- return LROPoller[_models.StorageAccount](
797
- self._client, raw_result, get_long_running_output, polling_method # type: ignore
798
- )
799
-
800
- @distributed_trace
801
- def delete( # pylint: disable=inconsistent-return-statements
802
- self, resource_group_name: str, account_name: str, **kwargs: Any
803
- ) -> None:
804
- """Deletes a storage account in Microsoft Azure.
805
-
806
- :param resource_group_name: The name of the resource group within the user's subscription. The
807
- name is case insensitive. Required.
808
- :type resource_group_name: str
809
- :param account_name: The name of the storage account within the specified resource group.
810
- Storage account names must be between 3 and 24 characters in length and use numbers and
811
- lower-case letters only. Required.
812
- :type account_name: str
813
- :return: None or the result of cls(response)
814
- :rtype: None
815
- :raises ~azure.core.exceptions.HttpResponseError:
816
- """
817
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
818
- 401: ClientAuthenticationError,
819
- 404: ResourceNotFoundError,
820
- 409: ResourceExistsError,
821
- 304: ResourceNotModifiedError,
822
- }
823
- error_map.update(kwargs.pop("error_map", {}) or {})
824
-
825
- _headers = kwargs.pop("headers", {}) or {}
826
- _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
827
-
828
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2018-11-01"))
829
- cls: ClsType[None] = kwargs.pop("cls", None)
830
-
831
- _request = build_delete_request(
832
- resource_group_name=resource_group_name,
833
- account_name=account_name,
834
- subscription_id=self._config.subscription_id,
835
- api_version=api_version,
836
- headers=_headers,
837
- params=_params,
838
- )
839
- _request = _convert_request(_request)
840
- _request.url = self._client.format_url(_request.url)
841
-
842
- _stream = False
843
- pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access
844
- _request, stream=_stream, **kwargs
845
- )
846
-
847
- response = pipeline_response.http_response
848
-
849
- if response.status_code not in [200, 204]:
850
- map_error(status_code=response.status_code, response=response, error_map=error_map)
851
- raise HttpResponseError(response=response, error_format=ARMErrorFormat)
852
-
853
- if cls:
854
- return cls(pipeline_response, None, {}) # type: ignore
855
-
856
- @distributed_trace
857
- def get_properties(
858
- self,
859
- resource_group_name: str,
860
- account_name: str,
861
- expand: Literal["geoReplicationStats"] = "geoReplicationStats",
862
- **kwargs: Any
863
- ) -> _models.StorageAccount:
864
- """Returns the properties for the specified storage account including but not limited to name, SKU
865
- name, location, and account status. The ListKeys operation should be used to retrieve storage
866
- keys.
867
-
868
- :param resource_group_name: The name of the resource group within the user's subscription. The
869
- name is case insensitive. Required.
870
- :type resource_group_name: str
871
- :param account_name: The name of the storage account within the specified resource group.
872
- Storage account names must be between 3 and 24 characters in length and use numbers and
873
- lower-case letters only. Required.
874
- :type account_name: str
875
- :param expand: May be used to expand the properties within account's properties. By default,
876
- data is not included when fetching properties. Currently we only support geoReplicationStats.
877
- Known values are "geoReplicationStats" and None. Default value is "geoReplicationStats".
878
- :type expand: str
879
- :return: StorageAccount or the result of cls(response)
880
- :rtype: ~azure.mgmt.storage.v2018_11_01.models.StorageAccount
881
- :raises ~azure.core.exceptions.HttpResponseError:
882
- """
883
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
884
- 401: ClientAuthenticationError,
885
- 404: ResourceNotFoundError,
886
- 409: ResourceExistsError,
887
- 304: ResourceNotModifiedError,
888
- }
889
- error_map.update(kwargs.pop("error_map", {}) or {})
890
-
891
- _headers = kwargs.pop("headers", {}) or {}
892
- _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
893
-
894
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2018-11-01"))
895
- cls: ClsType[_models.StorageAccount] = kwargs.pop("cls", None)
896
-
897
- _request = build_get_properties_request(
898
- resource_group_name=resource_group_name,
899
- account_name=account_name,
900
- subscription_id=self._config.subscription_id,
901
- expand=expand,
902
- api_version=api_version,
903
- headers=_headers,
904
- params=_params,
905
- )
906
- _request = _convert_request(_request)
907
- _request.url = self._client.format_url(_request.url)
908
-
909
- _stream = False
910
- pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access
911
- _request, stream=_stream, **kwargs
912
- )
913
-
914
- response = pipeline_response.http_response
915
-
916
- if response.status_code not in [200]:
917
- map_error(status_code=response.status_code, response=response, error_map=error_map)
918
- raise HttpResponseError(response=response, error_format=ARMErrorFormat)
919
-
920
- deserialized = self._deserialize("StorageAccount", pipeline_response)
921
-
922
- if cls:
923
- return cls(pipeline_response, deserialized, {}) # type: ignore
924
-
925
- return deserialized # type: ignore
926
-
927
- @overload
928
- def update(
929
- self,
930
- resource_group_name: str,
931
- account_name: str,
932
- parameters: _models.StorageAccountUpdateParameters,
933
- *,
934
- content_type: str = "application/json",
935
- **kwargs: Any
936
- ) -> _models.StorageAccount:
937
- """The update operation can be used to update the SKU, encryption, access tier, or tags for a
938
- storage account. It can also be used to map the account to a custom domain. Only one custom
939
- domain is supported per storage account; the replacement/change of custom domain is not
940
- supported. In order to replace an old custom domain, the old value must be cleared/unregistered
941
- before a new value can be set. The update of multiple properties is supported. This call does
942
- not change the storage keys for the account. If you want to change the storage account keys,
943
- use the regenerate keys operation. The location and name of the storage account cannot be
944
- changed after creation.
945
-
946
- :param resource_group_name: The name of the resource group within the user's subscription. The
947
- name is case insensitive. Required.
948
- :type resource_group_name: str
949
- :param account_name: The name of the storage account within the specified resource group.
950
- Storage account names must be between 3 and 24 characters in length and use numbers and
951
- lower-case letters only. Required.
952
- :type account_name: str
953
- :param parameters: The parameters to provide for the updated account. Required.
954
- :type parameters: ~azure.mgmt.storage.v2018_11_01.models.StorageAccountUpdateParameters
955
- :keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
956
- Default value is "application/json".
957
- :paramtype content_type: str
958
- :return: StorageAccount or the result of cls(response)
959
- :rtype: ~azure.mgmt.storage.v2018_11_01.models.StorageAccount
960
- :raises ~azure.core.exceptions.HttpResponseError:
961
- """
962
-
963
- @overload
964
- def update(
965
- self,
966
- resource_group_name: str,
967
- account_name: str,
968
- parameters: IO[bytes],
969
- *,
970
- content_type: str = "application/json",
971
- **kwargs: Any
972
- ) -> _models.StorageAccount:
973
- """The update operation can be used to update the SKU, encryption, access tier, or tags for a
974
- storage account. It can also be used to map the account to a custom domain. Only one custom
975
- domain is supported per storage account; the replacement/change of custom domain is not
976
- supported. In order to replace an old custom domain, the old value must be cleared/unregistered
977
- before a new value can be set. The update of multiple properties is supported. This call does
978
- not change the storage keys for the account. If you want to change the storage account keys,
979
- use the regenerate keys operation. The location and name of the storage account cannot be
980
- changed after creation.
981
-
982
- :param resource_group_name: The name of the resource group within the user's subscription. The
983
- name is case insensitive. Required.
984
- :type resource_group_name: str
985
- :param account_name: The name of the storage account within the specified resource group.
986
- Storage account names must be between 3 and 24 characters in length and use numbers and
987
- lower-case letters only. Required.
988
- :type account_name: str
989
- :param parameters: The parameters to provide for the updated account. Required.
990
- :type parameters: IO[bytes]
991
- :keyword content_type: Body Parameter content-type. Content type parameter for binary body.
992
- Default value is "application/json".
993
- :paramtype content_type: str
994
- :return: StorageAccount or the result of cls(response)
995
- :rtype: ~azure.mgmt.storage.v2018_11_01.models.StorageAccount
996
- :raises ~azure.core.exceptions.HttpResponseError:
997
- """
998
-
999
- @distributed_trace
1000
- def update(
1001
- self,
1002
- resource_group_name: str,
1003
- account_name: str,
1004
- parameters: Union[_models.StorageAccountUpdateParameters, IO[bytes]],
1005
- **kwargs: Any
1006
- ) -> _models.StorageAccount:
1007
- """The update operation can be used to update the SKU, encryption, access tier, or tags for a
1008
- storage account. It can also be used to map the account to a custom domain. Only one custom
1009
- domain is supported per storage account; the replacement/change of custom domain is not
1010
- supported. In order to replace an old custom domain, the old value must be cleared/unregistered
1011
- before a new value can be set. The update of multiple properties is supported. This call does
1012
- not change the storage keys for the account. If you want to change the storage account keys,
1013
- use the regenerate keys operation. The location and name of the storage account cannot be
1014
- changed after creation.
1015
-
1016
- :param resource_group_name: The name of the resource group within the user's subscription. The
1017
- name is case insensitive. Required.
1018
- :type resource_group_name: str
1019
- :param account_name: The name of the storage account within the specified resource group.
1020
- Storage account names must be between 3 and 24 characters in length and use numbers and
1021
- lower-case letters only. Required.
1022
- :type account_name: str
1023
- :param parameters: The parameters to provide for the updated account. Is either a
1024
- StorageAccountUpdateParameters type or a IO[bytes] type. Required.
1025
- :type parameters: ~azure.mgmt.storage.v2018_11_01.models.StorageAccountUpdateParameters or
1026
- IO[bytes]
1027
- :return: StorageAccount or the result of cls(response)
1028
- :rtype: ~azure.mgmt.storage.v2018_11_01.models.StorageAccount
1029
- :raises ~azure.core.exceptions.HttpResponseError:
1030
- """
1031
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
1032
- 401: ClientAuthenticationError,
1033
- 404: ResourceNotFoundError,
1034
- 409: ResourceExistsError,
1035
- 304: ResourceNotModifiedError,
1036
- }
1037
- error_map.update(kwargs.pop("error_map", {}) or {})
1038
-
1039
- _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
1040
- _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
1041
-
1042
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2018-11-01"))
1043
- content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
1044
- cls: ClsType[_models.StorageAccount] = kwargs.pop("cls", None)
1045
-
1046
- content_type = content_type or "application/json"
1047
- _json = None
1048
- _content = None
1049
- if isinstance(parameters, (IOBase, bytes)):
1050
- _content = parameters
1051
- else:
1052
- _json = self._serialize.body(parameters, "StorageAccountUpdateParameters")
1053
-
1054
- _request = build_update_request(
1055
- resource_group_name=resource_group_name,
1056
- account_name=account_name,
1057
- subscription_id=self._config.subscription_id,
1058
- api_version=api_version,
1059
- content_type=content_type,
1060
- json=_json,
1061
- content=_content,
1062
- headers=_headers,
1063
- params=_params,
1064
- )
1065
- _request = _convert_request(_request)
1066
- _request.url = self._client.format_url(_request.url)
1067
-
1068
- _stream = False
1069
- pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access
1070
- _request, stream=_stream, **kwargs
1071
- )
1072
-
1073
- response = pipeline_response.http_response
1074
-
1075
- if response.status_code not in [200]:
1076
- map_error(status_code=response.status_code, response=response, error_map=error_map)
1077
- raise HttpResponseError(response=response, error_format=ARMErrorFormat)
1078
-
1079
- deserialized = self._deserialize("StorageAccount", pipeline_response)
1080
-
1081
- if cls:
1082
- return cls(pipeline_response, deserialized, {}) # type: ignore
1083
-
1084
- return deserialized # type: ignore
1085
-
1086
- @distributed_trace
1087
- def list(self, **kwargs: Any) -> Iterable["_models.StorageAccount"]:
1088
- """Lists all the storage accounts available under the subscription. Note that storage keys are not
1089
- returned; use the ListKeys operation for this.
1090
-
1091
- :return: An iterator like instance of either StorageAccount or the result of cls(response)
1092
- :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.storage.v2018_11_01.models.StorageAccount]
1093
- :raises ~azure.core.exceptions.HttpResponseError:
1094
- """
1095
- _headers = kwargs.pop("headers", {}) or {}
1096
- _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
1097
-
1098
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2018-11-01"))
1099
- cls: ClsType[_models.StorageAccountListResult] = kwargs.pop("cls", None)
1100
-
1101
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
1102
- 401: ClientAuthenticationError,
1103
- 404: ResourceNotFoundError,
1104
- 409: ResourceExistsError,
1105
- 304: ResourceNotModifiedError,
1106
- }
1107
- error_map.update(kwargs.pop("error_map", {}) or {})
1108
-
1109
- def prepare_request(next_link=None):
1110
- if not next_link:
1111
-
1112
- _request = build_list_request(
1113
- subscription_id=self._config.subscription_id,
1114
- api_version=api_version,
1115
- headers=_headers,
1116
- params=_params,
1117
- )
1118
- _request = _convert_request(_request)
1119
- _request.url = self._client.format_url(_request.url)
1120
-
1121
- else:
1122
- # make call to next link with the client's api-version
1123
- _parsed_next_link = urllib.parse.urlparse(next_link)
1124
- _next_request_params = case_insensitive_dict(
1125
- {
1126
- key: [urllib.parse.quote(v) for v in value]
1127
- for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items()
1128
- }
1129
- )
1130
- _next_request_params["api-version"] = self._api_version
1131
- _request = HttpRequest(
1132
- "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params
1133
- )
1134
- _request = _convert_request(_request)
1135
- _request.url = self._client.format_url(_request.url)
1136
- _request.method = "GET"
1137
- return _request
1138
-
1139
- def extract_data(pipeline_response):
1140
- deserialized = self._deserialize("StorageAccountListResult", pipeline_response)
1141
- list_of_elem = deserialized.value
1142
- if cls:
1143
- list_of_elem = cls(list_of_elem) # type: ignore
1144
- return None, iter(list_of_elem)
1145
-
1146
- def get_next(next_link=None):
1147
- _request = prepare_request(next_link)
1148
-
1149
- _stream = False
1150
- pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access
1151
- _request, stream=_stream, **kwargs
1152
- )
1153
- response = pipeline_response.http_response
1154
-
1155
- if response.status_code not in [200]:
1156
- map_error(status_code=response.status_code, response=response, error_map=error_map)
1157
- raise HttpResponseError(response=response, error_format=ARMErrorFormat)
1158
-
1159
- return pipeline_response
1160
-
1161
- return ItemPaged(get_next, extract_data)
1162
-
1163
- @distributed_trace
1164
- def list_by_resource_group(self, resource_group_name: str, **kwargs: Any) -> Iterable["_models.StorageAccount"]:
1165
- """Lists all the storage accounts available under the given resource group. Note that storage keys
1166
- are not returned; use the ListKeys operation for this.
1167
-
1168
- :param resource_group_name: The name of the resource group within the user's subscription. The
1169
- name is case insensitive. Required.
1170
- :type resource_group_name: str
1171
- :return: An iterator like instance of either StorageAccount or the result of cls(response)
1172
- :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.storage.v2018_11_01.models.StorageAccount]
1173
- :raises ~azure.core.exceptions.HttpResponseError:
1174
- """
1175
- _headers = kwargs.pop("headers", {}) or {}
1176
- _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
1177
-
1178
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2018-11-01"))
1179
- cls: ClsType[_models.StorageAccountListResult] = kwargs.pop("cls", None)
1180
-
1181
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
1182
- 401: ClientAuthenticationError,
1183
- 404: ResourceNotFoundError,
1184
- 409: ResourceExistsError,
1185
- 304: ResourceNotModifiedError,
1186
- }
1187
- error_map.update(kwargs.pop("error_map", {}) or {})
1188
-
1189
- def prepare_request(next_link=None):
1190
- if not next_link:
1191
-
1192
- _request = build_list_by_resource_group_request(
1193
- resource_group_name=resource_group_name,
1194
- subscription_id=self._config.subscription_id,
1195
- api_version=api_version,
1196
- headers=_headers,
1197
- params=_params,
1198
- )
1199
- _request = _convert_request(_request)
1200
- _request.url = self._client.format_url(_request.url)
1201
-
1202
- else:
1203
- # make call to next link with the client's api-version
1204
- _parsed_next_link = urllib.parse.urlparse(next_link)
1205
- _next_request_params = case_insensitive_dict(
1206
- {
1207
- key: [urllib.parse.quote(v) for v in value]
1208
- for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items()
1209
- }
1210
- )
1211
- _next_request_params["api-version"] = self._api_version
1212
- _request = HttpRequest(
1213
- "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params
1214
- )
1215
- _request = _convert_request(_request)
1216
- _request.url = self._client.format_url(_request.url)
1217
- _request.method = "GET"
1218
- return _request
1219
-
1220
- def extract_data(pipeline_response):
1221
- deserialized = self._deserialize("StorageAccountListResult", pipeline_response)
1222
- list_of_elem = deserialized.value
1223
- if cls:
1224
- list_of_elem = cls(list_of_elem) # type: ignore
1225
- return None, iter(list_of_elem)
1226
-
1227
- def get_next(next_link=None):
1228
- _request = prepare_request(next_link)
1229
-
1230
- _stream = False
1231
- pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access
1232
- _request, stream=_stream, **kwargs
1233
- )
1234
- response = pipeline_response.http_response
1235
-
1236
- if response.status_code not in [200]:
1237
- map_error(status_code=response.status_code, response=response, error_map=error_map)
1238
- raise HttpResponseError(response=response, error_format=ARMErrorFormat)
1239
-
1240
- return pipeline_response
1241
-
1242
- return ItemPaged(get_next, extract_data)
1243
-
1244
- @distributed_trace
1245
- def list_keys(
1246
- self, resource_group_name: str, account_name: str, **kwargs: Any
1247
- ) -> _models.StorageAccountListKeysResult:
1248
- """Lists the access keys for the specified storage account.
1249
-
1250
- :param resource_group_name: The name of the resource group within the user's subscription. The
1251
- name is case insensitive. Required.
1252
- :type resource_group_name: str
1253
- :param account_name: The name of the storage account within the specified resource group.
1254
- Storage account names must be between 3 and 24 characters in length and use numbers and
1255
- lower-case letters only. Required.
1256
- :type account_name: str
1257
- :return: StorageAccountListKeysResult or the result of cls(response)
1258
- :rtype: ~azure.mgmt.storage.v2018_11_01.models.StorageAccountListKeysResult
1259
- :raises ~azure.core.exceptions.HttpResponseError:
1260
- """
1261
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
1262
- 401: ClientAuthenticationError,
1263
- 404: ResourceNotFoundError,
1264
- 409: ResourceExistsError,
1265
- 304: ResourceNotModifiedError,
1266
- }
1267
- error_map.update(kwargs.pop("error_map", {}) or {})
1268
-
1269
- _headers = kwargs.pop("headers", {}) or {}
1270
- _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
1271
-
1272
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2018-11-01"))
1273
- cls: ClsType[_models.StorageAccountListKeysResult] = kwargs.pop("cls", None)
1274
-
1275
- _request = build_list_keys_request(
1276
- resource_group_name=resource_group_name,
1277
- account_name=account_name,
1278
- subscription_id=self._config.subscription_id,
1279
- api_version=api_version,
1280
- headers=_headers,
1281
- params=_params,
1282
- )
1283
- _request = _convert_request(_request)
1284
- _request.url = self._client.format_url(_request.url)
1285
-
1286
- _stream = False
1287
- pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access
1288
- _request, stream=_stream, **kwargs
1289
- )
1290
-
1291
- response = pipeline_response.http_response
1292
-
1293
- if response.status_code not in [200]:
1294
- map_error(status_code=response.status_code, response=response, error_map=error_map)
1295
- raise HttpResponseError(response=response, error_format=ARMErrorFormat)
1296
-
1297
- deserialized = self._deserialize("StorageAccountListKeysResult", pipeline_response)
1298
-
1299
- if cls:
1300
- return cls(pipeline_response, deserialized, {}) # type: ignore
1301
-
1302
- return deserialized # type: ignore
1303
-
1304
- @overload
1305
- def regenerate_key(
1306
- self,
1307
- resource_group_name: str,
1308
- account_name: str,
1309
- regenerate_key: _models.StorageAccountRegenerateKeyParameters,
1310
- *,
1311
- content_type: str = "application/json",
1312
- **kwargs: Any
1313
- ) -> _models.StorageAccountListKeysResult:
1314
- """Regenerates one of the access keys for the specified storage account.
1315
-
1316
- :param resource_group_name: The name of the resource group within the user's subscription. The
1317
- name is case insensitive. Required.
1318
- :type resource_group_name: str
1319
- :param account_name: The name of the storage account within the specified resource group.
1320
- Storage account names must be between 3 and 24 characters in length and use numbers and
1321
- lower-case letters only. Required.
1322
- :type account_name: str
1323
- :param regenerate_key: Specifies name of the key which should be regenerated -- key1 or key2.
1324
- Required.
1325
- :type regenerate_key:
1326
- ~azure.mgmt.storage.v2018_11_01.models.StorageAccountRegenerateKeyParameters
1327
- :keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
1328
- Default value is "application/json".
1329
- :paramtype content_type: str
1330
- :return: StorageAccountListKeysResult or the result of cls(response)
1331
- :rtype: ~azure.mgmt.storage.v2018_11_01.models.StorageAccountListKeysResult
1332
- :raises ~azure.core.exceptions.HttpResponseError:
1333
- """
1334
-
1335
- @overload
1336
- def regenerate_key(
1337
- self,
1338
- resource_group_name: str,
1339
- account_name: str,
1340
- regenerate_key: IO[bytes],
1341
- *,
1342
- content_type: str = "application/json",
1343
- **kwargs: Any
1344
- ) -> _models.StorageAccountListKeysResult:
1345
- """Regenerates one of the access keys for the specified storage account.
1346
-
1347
- :param resource_group_name: The name of the resource group within the user's subscription. The
1348
- name is case insensitive. Required.
1349
- :type resource_group_name: str
1350
- :param account_name: The name of the storage account within the specified resource group.
1351
- Storage account names must be between 3 and 24 characters in length and use numbers and
1352
- lower-case letters only. Required.
1353
- :type account_name: str
1354
- :param regenerate_key: Specifies name of the key which should be regenerated -- key1 or key2.
1355
- Required.
1356
- :type regenerate_key: IO[bytes]
1357
- :keyword content_type: Body Parameter content-type. Content type parameter for binary body.
1358
- Default value is "application/json".
1359
- :paramtype content_type: str
1360
- :return: StorageAccountListKeysResult or the result of cls(response)
1361
- :rtype: ~azure.mgmt.storage.v2018_11_01.models.StorageAccountListKeysResult
1362
- :raises ~azure.core.exceptions.HttpResponseError:
1363
- """
1364
-
1365
- @distributed_trace
1366
- def regenerate_key(
1367
- self,
1368
- resource_group_name: str,
1369
- account_name: str,
1370
- regenerate_key: Union[_models.StorageAccountRegenerateKeyParameters, IO[bytes]],
1371
- **kwargs: Any
1372
- ) -> _models.StorageAccountListKeysResult:
1373
- """Regenerates one of the access keys for the specified storage account.
1374
-
1375
- :param resource_group_name: The name of the resource group within the user's subscription. The
1376
- name is case insensitive. Required.
1377
- :type resource_group_name: str
1378
- :param account_name: The name of the storage account within the specified resource group.
1379
- Storage account names must be between 3 and 24 characters in length and use numbers and
1380
- lower-case letters only. Required.
1381
- :type account_name: str
1382
- :param regenerate_key: Specifies name of the key which should be regenerated -- key1 or key2.
1383
- Is either a StorageAccountRegenerateKeyParameters type or a IO[bytes] type. Required.
1384
- :type regenerate_key:
1385
- ~azure.mgmt.storage.v2018_11_01.models.StorageAccountRegenerateKeyParameters or IO[bytes]
1386
- :return: StorageAccountListKeysResult or the result of cls(response)
1387
- :rtype: ~azure.mgmt.storage.v2018_11_01.models.StorageAccountListKeysResult
1388
- :raises ~azure.core.exceptions.HttpResponseError:
1389
- """
1390
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
1391
- 401: ClientAuthenticationError,
1392
- 404: ResourceNotFoundError,
1393
- 409: ResourceExistsError,
1394
- 304: ResourceNotModifiedError,
1395
- }
1396
- error_map.update(kwargs.pop("error_map", {}) or {})
1397
-
1398
- _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
1399
- _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
1400
-
1401
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2018-11-01"))
1402
- content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
1403
- cls: ClsType[_models.StorageAccountListKeysResult] = kwargs.pop("cls", None)
1404
-
1405
- content_type = content_type or "application/json"
1406
- _json = None
1407
- _content = None
1408
- if isinstance(regenerate_key, (IOBase, bytes)):
1409
- _content = regenerate_key
1410
- else:
1411
- _json = self._serialize.body(regenerate_key, "StorageAccountRegenerateKeyParameters")
1412
-
1413
- _request = build_regenerate_key_request(
1414
- resource_group_name=resource_group_name,
1415
- account_name=account_name,
1416
- subscription_id=self._config.subscription_id,
1417
- api_version=api_version,
1418
- content_type=content_type,
1419
- json=_json,
1420
- content=_content,
1421
- headers=_headers,
1422
- params=_params,
1423
- )
1424
- _request = _convert_request(_request)
1425
- _request.url = self._client.format_url(_request.url)
1426
-
1427
- _stream = False
1428
- pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access
1429
- _request, stream=_stream, **kwargs
1430
- )
1431
-
1432
- response = pipeline_response.http_response
1433
-
1434
- if response.status_code not in [200]:
1435
- map_error(status_code=response.status_code, response=response, error_map=error_map)
1436
- raise HttpResponseError(response=response, error_format=ARMErrorFormat)
1437
-
1438
- deserialized = self._deserialize("StorageAccountListKeysResult", pipeline_response)
1439
-
1440
- if cls:
1441
- return cls(pipeline_response, deserialized, {}) # type: ignore
1442
-
1443
- return deserialized # type: ignore
1444
-
1445
- @overload
1446
- def list_account_sas(
1447
- self,
1448
- resource_group_name: str,
1449
- account_name: str,
1450
- parameters: _models.AccountSasParameters,
1451
- *,
1452
- content_type: str = "application/json",
1453
- **kwargs: Any
1454
- ) -> _models.ListAccountSasResponse:
1455
- """List SAS credentials of a storage account.
1456
-
1457
- :param resource_group_name: The name of the resource group within the user's subscription. The
1458
- name is case insensitive. Required.
1459
- :type resource_group_name: str
1460
- :param account_name: The name of the storage account within the specified resource group.
1461
- Storage account names must be between 3 and 24 characters in length and use numbers and
1462
- lower-case letters only. Required.
1463
- :type account_name: str
1464
- :param parameters: The parameters to provide to list SAS credentials for the storage account.
1465
- Required.
1466
- :type parameters: ~azure.mgmt.storage.v2018_11_01.models.AccountSasParameters
1467
- :keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
1468
- Default value is "application/json".
1469
- :paramtype content_type: str
1470
- :return: ListAccountSasResponse or the result of cls(response)
1471
- :rtype: ~azure.mgmt.storage.v2018_11_01.models.ListAccountSasResponse
1472
- :raises ~azure.core.exceptions.HttpResponseError:
1473
- """
1474
-
1475
- @overload
1476
- def list_account_sas(
1477
- self,
1478
- resource_group_name: str,
1479
- account_name: str,
1480
- parameters: IO[bytes],
1481
- *,
1482
- content_type: str = "application/json",
1483
- **kwargs: Any
1484
- ) -> _models.ListAccountSasResponse:
1485
- """List SAS credentials of a storage account.
1486
-
1487
- :param resource_group_name: The name of the resource group within the user's subscription. The
1488
- name is case insensitive. Required.
1489
- :type resource_group_name: str
1490
- :param account_name: The name of the storage account within the specified resource group.
1491
- Storage account names must be between 3 and 24 characters in length and use numbers and
1492
- lower-case letters only. Required.
1493
- :type account_name: str
1494
- :param parameters: The parameters to provide to list SAS credentials for the storage account.
1495
- Required.
1496
- :type parameters: IO[bytes]
1497
- :keyword content_type: Body Parameter content-type. Content type parameter for binary body.
1498
- Default value is "application/json".
1499
- :paramtype content_type: str
1500
- :return: ListAccountSasResponse or the result of cls(response)
1501
- :rtype: ~azure.mgmt.storage.v2018_11_01.models.ListAccountSasResponse
1502
- :raises ~azure.core.exceptions.HttpResponseError:
1503
- """
1504
-
1505
- @distributed_trace
1506
- def list_account_sas(
1507
- self,
1508
- resource_group_name: str,
1509
- account_name: str,
1510
- parameters: Union[_models.AccountSasParameters, IO[bytes]],
1511
- **kwargs: Any
1512
- ) -> _models.ListAccountSasResponse:
1513
- """List SAS credentials of a storage account.
1514
-
1515
- :param resource_group_name: The name of the resource group within the user's subscription. The
1516
- name is case insensitive. Required.
1517
- :type resource_group_name: str
1518
- :param account_name: The name of the storage account within the specified resource group.
1519
- Storage account names must be between 3 and 24 characters in length and use numbers and
1520
- lower-case letters only. Required.
1521
- :type account_name: str
1522
- :param parameters: The parameters to provide to list SAS credentials for the storage account.
1523
- Is either a AccountSasParameters type or a IO[bytes] type. Required.
1524
- :type parameters: ~azure.mgmt.storage.v2018_11_01.models.AccountSasParameters or IO[bytes]
1525
- :return: ListAccountSasResponse or the result of cls(response)
1526
- :rtype: ~azure.mgmt.storage.v2018_11_01.models.ListAccountSasResponse
1527
- :raises ~azure.core.exceptions.HttpResponseError:
1528
- """
1529
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
1530
- 401: ClientAuthenticationError,
1531
- 404: ResourceNotFoundError,
1532
- 409: ResourceExistsError,
1533
- 304: ResourceNotModifiedError,
1534
- }
1535
- error_map.update(kwargs.pop("error_map", {}) or {})
1536
-
1537
- _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
1538
- _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
1539
-
1540
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2018-11-01"))
1541
- content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
1542
- cls: ClsType[_models.ListAccountSasResponse] = kwargs.pop("cls", None)
1543
-
1544
- content_type = content_type or "application/json"
1545
- _json = None
1546
- _content = None
1547
- if isinstance(parameters, (IOBase, bytes)):
1548
- _content = parameters
1549
- else:
1550
- _json = self._serialize.body(parameters, "AccountSasParameters")
1551
-
1552
- _request = build_list_account_sas_request(
1553
- resource_group_name=resource_group_name,
1554
- account_name=account_name,
1555
- subscription_id=self._config.subscription_id,
1556
- api_version=api_version,
1557
- content_type=content_type,
1558
- json=_json,
1559
- content=_content,
1560
- headers=_headers,
1561
- params=_params,
1562
- )
1563
- _request = _convert_request(_request)
1564
- _request.url = self._client.format_url(_request.url)
1565
-
1566
- _stream = False
1567
- pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access
1568
- _request, stream=_stream, **kwargs
1569
- )
1570
-
1571
- response = pipeline_response.http_response
1572
-
1573
- if response.status_code not in [200]:
1574
- map_error(status_code=response.status_code, response=response, error_map=error_map)
1575
- raise HttpResponseError(response=response, error_format=ARMErrorFormat)
1576
-
1577
- deserialized = self._deserialize("ListAccountSasResponse", pipeline_response)
1578
-
1579
- if cls:
1580
- return cls(pipeline_response, deserialized, {}) # type: ignore
1581
-
1582
- return deserialized # type: ignore
1583
-
1584
- @overload
1585
- def list_service_sas(
1586
- self,
1587
- resource_group_name: str,
1588
- account_name: str,
1589
- parameters: _models.ServiceSasParameters,
1590
- *,
1591
- content_type: str = "application/json",
1592
- **kwargs: Any
1593
- ) -> _models.ListServiceSasResponse:
1594
- """List service SAS credentials of a specific resource.
1595
-
1596
- :param resource_group_name: The name of the resource group within the user's subscription. The
1597
- name is case insensitive. Required.
1598
- :type resource_group_name: str
1599
- :param account_name: The name of the storage account within the specified resource group.
1600
- Storage account names must be between 3 and 24 characters in length and use numbers and
1601
- lower-case letters only. Required.
1602
- :type account_name: str
1603
- :param parameters: The parameters to provide to list service SAS credentials. Required.
1604
- :type parameters: ~azure.mgmt.storage.v2018_11_01.models.ServiceSasParameters
1605
- :keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
1606
- Default value is "application/json".
1607
- :paramtype content_type: str
1608
- :return: ListServiceSasResponse or the result of cls(response)
1609
- :rtype: ~azure.mgmt.storage.v2018_11_01.models.ListServiceSasResponse
1610
- :raises ~azure.core.exceptions.HttpResponseError:
1611
- """
1612
-
1613
- @overload
1614
- def list_service_sas(
1615
- self,
1616
- resource_group_name: str,
1617
- account_name: str,
1618
- parameters: IO[bytes],
1619
- *,
1620
- content_type: str = "application/json",
1621
- **kwargs: Any
1622
- ) -> _models.ListServiceSasResponse:
1623
- """List service SAS credentials of a specific resource.
1624
-
1625
- :param resource_group_name: The name of the resource group within the user's subscription. The
1626
- name is case insensitive. Required.
1627
- :type resource_group_name: str
1628
- :param account_name: The name of the storage account within the specified resource group.
1629
- Storage account names must be between 3 and 24 characters in length and use numbers and
1630
- lower-case letters only. Required.
1631
- :type account_name: str
1632
- :param parameters: The parameters to provide to list service SAS credentials. Required.
1633
- :type parameters: IO[bytes]
1634
- :keyword content_type: Body Parameter content-type. Content type parameter for binary body.
1635
- Default value is "application/json".
1636
- :paramtype content_type: str
1637
- :return: ListServiceSasResponse or the result of cls(response)
1638
- :rtype: ~azure.mgmt.storage.v2018_11_01.models.ListServiceSasResponse
1639
- :raises ~azure.core.exceptions.HttpResponseError:
1640
- """
1641
-
1642
- @distributed_trace
1643
- def list_service_sas(
1644
- self,
1645
- resource_group_name: str,
1646
- account_name: str,
1647
- parameters: Union[_models.ServiceSasParameters, IO[bytes]],
1648
- **kwargs: Any
1649
- ) -> _models.ListServiceSasResponse:
1650
- """List service SAS credentials of a specific resource.
1651
-
1652
- :param resource_group_name: The name of the resource group within the user's subscription. The
1653
- name is case insensitive. Required.
1654
- :type resource_group_name: str
1655
- :param account_name: The name of the storage account within the specified resource group.
1656
- Storage account names must be between 3 and 24 characters in length and use numbers and
1657
- lower-case letters only. Required.
1658
- :type account_name: str
1659
- :param parameters: The parameters to provide to list service SAS credentials. Is either a
1660
- ServiceSasParameters type or a IO[bytes] type. Required.
1661
- :type parameters: ~azure.mgmt.storage.v2018_11_01.models.ServiceSasParameters or IO[bytes]
1662
- :return: ListServiceSasResponse or the result of cls(response)
1663
- :rtype: ~azure.mgmt.storage.v2018_11_01.models.ListServiceSasResponse
1664
- :raises ~azure.core.exceptions.HttpResponseError:
1665
- """
1666
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
1667
- 401: ClientAuthenticationError,
1668
- 404: ResourceNotFoundError,
1669
- 409: ResourceExistsError,
1670
- 304: ResourceNotModifiedError,
1671
- }
1672
- error_map.update(kwargs.pop("error_map", {}) or {})
1673
-
1674
- _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
1675
- _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
1676
-
1677
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2018-11-01"))
1678
- content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
1679
- cls: ClsType[_models.ListServiceSasResponse] = kwargs.pop("cls", None)
1680
-
1681
- content_type = content_type or "application/json"
1682
- _json = None
1683
- _content = None
1684
- if isinstance(parameters, (IOBase, bytes)):
1685
- _content = parameters
1686
- else:
1687
- _json = self._serialize.body(parameters, "ServiceSasParameters")
1688
-
1689
- _request = build_list_service_sas_request(
1690
- resource_group_name=resource_group_name,
1691
- account_name=account_name,
1692
- subscription_id=self._config.subscription_id,
1693
- api_version=api_version,
1694
- content_type=content_type,
1695
- json=_json,
1696
- content=_content,
1697
- headers=_headers,
1698
- params=_params,
1699
- )
1700
- _request = _convert_request(_request)
1701
- _request.url = self._client.format_url(_request.url)
1702
-
1703
- _stream = False
1704
- pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access
1705
- _request, stream=_stream, **kwargs
1706
- )
1707
-
1708
- response = pipeline_response.http_response
1709
-
1710
- if response.status_code not in [200]:
1711
- map_error(status_code=response.status_code, response=response, error_map=error_map)
1712
- raise HttpResponseError(response=response, error_format=ARMErrorFormat)
1713
-
1714
- deserialized = self._deserialize("ListServiceSasResponse", pipeline_response)
1715
-
1716
- if cls:
1717
- return cls(pipeline_response, deserialized, {}) # type: ignore
1718
-
1719
- return deserialized # type: ignore
1720
-
1721
- def _failover_initial( # pylint: disable=inconsistent-return-statements
1722
- self, resource_group_name: str, account_name: str, **kwargs: Any
1723
- ) -> None:
1724
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
1725
- 401: ClientAuthenticationError,
1726
- 404: ResourceNotFoundError,
1727
- 409: ResourceExistsError,
1728
- 304: ResourceNotModifiedError,
1729
- }
1730
- error_map.update(kwargs.pop("error_map", {}) or {})
1731
-
1732
- _headers = kwargs.pop("headers", {}) or {}
1733
- _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
1734
-
1735
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2018-11-01"))
1736
- cls: ClsType[None] = kwargs.pop("cls", None)
1737
-
1738
- _request = build_failover_request(
1739
- resource_group_name=resource_group_name,
1740
- account_name=account_name,
1741
- subscription_id=self._config.subscription_id,
1742
- api_version=api_version,
1743
- headers=_headers,
1744
- params=_params,
1745
- )
1746
- _request = _convert_request(_request)
1747
- _request.url = self._client.format_url(_request.url)
1748
-
1749
- _stream = False
1750
- pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access
1751
- _request, stream=_stream, **kwargs
1752
- )
1753
-
1754
- response = pipeline_response.http_response
1755
-
1756
- if response.status_code not in [200, 202]:
1757
- map_error(status_code=response.status_code, response=response, error_map=error_map)
1758
- raise HttpResponseError(response=response, error_format=ARMErrorFormat)
1759
-
1760
- if cls:
1761
- return cls(pipeline_response, None, {}) # type: ignore
1762
-
1763
- @distributed_trace
1764
- def begin_failover(self, resource_group_name: str, account_name: str, **kwargs: Any) -> LROPoller[None]:
1765
- """Failover request can be triggered for a storage account in case of availability issues. The
1766
- failover occurs from the storage account's primary cluster to secondary cluster for RA-GRS
1767
- accounts. The secondary cluster will become primary after failover.
1768
-
1769
- :param resource_group_name: The name of the resource group within the user's subscription. The
1770
- name is case insensitive. Required.
1771
- :type resource_group_name: str
1772
- :param account_name: The name of the storage account within the specified resource group.
1773
- Storage account names must be between 3 and 24 characters in length and use numbers and
1774
- lower-case letters only. Required.
1775
- :type account_name: str
1776
- :return: An instance of LROPoller that returns either None or the result of cls(response)
1777
- :rtype: ~azure.core.polling.LROPoller[None]
1778
- :raises ~azure.core.exceptions.HttpResponseError:
1779
- """
1780
- _headers = kwargs.pop("headers", {}) or {}
1781
- _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
1782
-
1783
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2018-11-01"))
1784
- cls: ClsType[None] = kwargs.pop("cls", None)
1785
- polling: Union[bool, PollingMethod] = kwargs.pop("polling", True)
1786
- lro_delay = kwargs.pop("polling_interval", self._config.polling_interval)
1787
- cont_token: Optional[str] = kwargs.pop("continuation_token", None)
1788
- if cont_token is None:
1789
- raw_result = self._failover_initial( # type: ignore
1790
- resource_group_name=resource_group_name,
1791
- account_name=account_name,
1792
- api_version=api_version,
1793
- cls=lambda x, y, z: x,
1794
- headers=_headers,
1795
- params=_params,
1796
- **kwargs
1797
- )
1798
- kwargs.pop("error_map", None)
1799
-
1800
- def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements
1801
- if cls:
1802
- return cls(pipeline_response, None, {}) # type: ignore
1803
-
1804
- if polling is True:
1805
- polling_method: PollingMethod = cast(
1806
- PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "location"}, **kwargs)
1807
- )
1808
- elif polling is False:
1809
- polling_method = cast(PollingMethod, NoPolling())
1810
- else:
1811
- polling_method = polling
1812
- if cont_token:
1813
- return LROPoller[None].from_continuation_token(
1814
- polling_method=polling_method,
1815
- continuation_token=cont_token,
1816
- client=self._client,
1817
- deserialization_callback=get_long_running_output,
1818
- )
1819
- return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore
1820
-
1821
- @distributed_trace
1822
- def revoke_user_delegation_keys( # pylint: disable=inconsistent-return-statements
1823
- self, resource_group_name: str, account_name: str, **kwargs: Any
1824
- ) -> None:
1825
- """Revoke user delegation keys.
1826
-
1827
- :param resource_group_name: The name of the resource group within the user's subscription. The
1828
- name is case insensitive. Required.
1829
- :type resource_group_name: str
1830
- :param account_name: The name of the storage account within the specified resource group.
1831
- Storage account names must be between 3 and 24 characters in length and use numbers and
1832
- lower-case letters only. Required.
1833
- :type account_name: str
1834
- :return: None or the result of cls(response)
1835
- :rtype: None
1836
- :raises ~azure.core.exceptions.HttpResponseError:
1837
- """
1838
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
1839
- 401: ClientAuthenticationError,
1840
- 404: ResourceNotFoundError,
1841
- 409: ResourceExistsError,
1842
- 304: ResourceNotModifiedError,
1843
- }
1844
- error_map.update(kwargs.pop("error_map", {}) or {})
1845
-
1846
- _headers = kwargs.pop("headers", {}) or {}
1847
- _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
1848
-
1849
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2018-11-01"))
1850
- cls: ClsType[None] = kwargs.pop("cls", None)
1851
-
1852
- _request = build_revoke_user_delegation_keys_request(
1853
- resource_group_name=resource_group_name,
1854
- account_name=account_name,
1855
- subscription_id=self._config.subscription_id,
1856
- api_version=api_version,
1857
- headers=_headers,
1858
- params=_params,
1859
- )
1860
- _request = _convert_request(_request)
1861
- _request.url = self._client.format_url(_request.url)
1862
-
1863
- _stream = False
1864
- pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access
1865
- _request, stream=_stream, **kwargs
1866
- )
1867
-
1868
- response = pipeline_response.http_response
1869
-
1870
- if response.status_code not in [200]:
1871
- map_error(status_code=response.status_code, response=response, error_map=error_map)
1872
- raise HttpResponseError(response=response, error_format=ARMErrorFormat)
1873
-
1874
- if cls:
1875
- return cls(pipeline_response, None, {}) # type: ignore