azure-mgmt-storage 21.1.0b1__py3-none-any.whl → 21.2.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 (813) hide show
  1. azure/mgmt/storage/_configuration.py +2 -3
  2. azure/mgmt/storage/_serialization.py +65 -59
  3. azure/mgmt/storage/_storage_management_client.py +232 -26
  4. azure/mgmt/storage/_version.py +1 -1
  5. azure/mgmt/storage/aio/_configuration.py +2 -3
  6. azure/mgmt/storage/aio/_storage_management_client.py +232 -26
  7. azure/mgmt/storage/models.py +1 -1
  8. azure/mgmt/storage/v2015_06_15/_configuration.py +4 -11
  9. azure/mgmt/storage/v2015_06_15/_patch.py +1 -0
  10. azure/mgmt/storage/v2015_06_15/_storage_management.py +25 -5
  11. azure/mgmt/storage/v2015_06_15/_vendor.py +0 -14
  12. azure/mgmt/storage/v2015_06_15/_version.py +1 -1
  13. azure/mgmt/storage/v2015_06_15/aio/_configuration.py +4 -11
  14. azure/mgmt/storage/v2015_06_15/aio/_patch.py +1 -0
  15. azure/mgmt/storage/v2015_06_15/aio/_storage_management.py +27 -5
  16. azure/mgmt/storage/v2015_06_15/aio/operations/_storage_accounts_operations.py +132 -213
  17. azure/mgmt/storage/v2015_06_15/aio/operations/_usage_operations.py +20 -22
  18. azure/mgmt/storage/v2015_06_15/models/_models_py3.py +6 -6
  19. azure/mgmt/storage/v2015_06_15/operations/_storage_accounts_operations.py +151 -232
  20. azure/mgmt/storage/v2015_06_15/operations/_usage_operations.py +23 -25
  21. azure/mgmt/storage/v2016_01_01/_configuration.py +4 -11
  22. azure/mgmt/storage/v2016_01_01/_patch.py +1 -0
  23. azure/mgmt/storage/v2016_01_01/_storage_management_client.py +25 -5
  24. azure/mgmt/storage/v2016_01_01/_vendor.py +0 -14
  25. azure/mgmt/storage/v2016_01_01/_version.py +1 -1
  26. azure/mgmt/storage/v2016_01_01/aio/_configuration.py +4 -11
  27. azure/mgmt/storage/v2016_01_01/aio/_patch.py +1 -0
  28. azure/mgmt/storage/v2016_01_01/aio/_storage_management_client.py +27 -5
  29. azure/mgmt/storage/v2016_01_01/aio/operations/_storage_accounts_operations.py +132 -213
  30. azure/mgmt/storage/v2016_01_01/aio/operations/_usage_operations.py +20 -22
  31. azure/mgmt/storage/v2016_01_01/models/_models_py3.py +7 -7
  32. azure/mgmt/storage/v2016_01_01/operations/_storage_accounts_operations.py +151 -232
  33. azure/mgmt/storage/v2016_01_01/operations/_usage_operations.py +23 -25
  34. azure/mgmt/storage/v2016_12_01/_configuration.py +4 -11
  35. azure/mgmt/storage/v2016_12_01/_patch.py +1 -0
  36. azure/mgmt/storage/v2016_12_01/_storage_management.py +25 -5
  37. azure/mgmt/storage/v2016_12_01/_vendor.py +0 -14
  38. azure/mgmt/storage/v2016_12_01/_version.py +1 -1
  39. azure/mgmt/storage/v2016_12_01/aio/_configuration.py +4 -11
  40. azure/mgmt/storage/v2016_12_01/aio/_patch.py +1 -0
  41. azure/mgmt/storage/v2016_12_01/aio/_storage_management.py +27 -5
  42. azure/mgmt/storage/v2016_12_01/aio/operations/_storage_accounts_operations.py +162 -263
  43. azure/mgmt/storage/v2016_12_01/aio/operations/_usage_operations.py +20 -22
  44. azure/mgmt/storage/v2016_12_01/models/_models_py3.py +9 -9
  45. azure/mgmt/storage/v2016_12_01/operations/_storage_accounts_operations.py +185 -286
  46. azure/mgmt/storage/v2016_12_01/operations/_usage_operations.py +23 -25
  47. azure/mgmt/storage/v2017_06_01/_configuration.py +4 -11
  48. azure/mgmt/storage/v2017_06_01/_patch.py +1 -0
  49. azure/mgmt/storage/v2017_06_01/_storage_management.py +27 -7
  50. azure/mgmt/storage/v2017_06_01/_vendor.py +0 -14
  51. azure/mgmt/storage/v2017_06_01/_version.py +1 -1
  52. azure/mgmt/storage/v2017_06_01/aio/_configuration.py +4 -11
  53. azure/mgmt/storage/v2017_06_01/aio/_patch.py +1 -0
  54. azure/mgmt/storage/v2017_06_01/aio/_storage_management.py +29 -7
  55. azure/mgmt/storage/v2017_06_01/aio/operations/_operations.py +20 -22
  56. azure/mgmt/storage/v2017_06_01/aio/operations/_skus_operations.py +20 -22
  57. azure/mgmt/storage/v2017_06_01/aio/operations/_storage_accounts_operations.py +162 -263
  58. azure/mgmt/storage/v2017_06_01/aio/operations/_usage_operations.py +20 -22
  59. azure/mgmt/storage/v2017_06_01/models/_models_py3.py +16 -22
  60. azure/mgmt/storage/v2017_06_01/operations/_operations.py +21 -23
  61. azure/mgmt/storage/v2017_06_01/operations/_skus_operations.py +23 -25
  62. azure/mgmt/storage/v2017_06_01/operations/_storage_accounts_operations.py +185 -286
  63. azure/mgmt/storage/v2017_06_01/operations/_usage_operations.py +23 -25
  64. azure/mgmt/storage/v2017_10_01/_configuration.py +4 -11
  65. azure/mgmt/storage/v2017_10_01/_patch.py +1 -0
  66. azure/mgmt/storage/v2017_10_01/_storage_management.py +27 -7
  67. azure/mgmt/storage/v2017_10_01/_vendor.py +0 -14
  68. azure/mgmt/storage/v2017_10_01/_version.py +1 -1
  69. azure/mgmt/storage/v2017_10_01/aio/_configuration.py +4 -11
  70. azure/mgmt/storage/v2017_10_01/aio/_patch.py +1 -0
  71. azure/mgmt/storage/v2017_10_01/aio/_storage_management.py +29 -7
  72. azure/mgmt/storage/v2017_10_01/aio/operations/_operations.py +20 -22
  73. azure/mgmt/storage/v2017_10_01/aio/operations/_skus_operations.py +20 -22
  74. azure/mgmt/storage/v2017_10_01/aio/operations/_storage_accounts_operations.py +162 -263
  75. azure/mgmt/storage/v2017_10_01/aio/operations/_usage_operations.py +20 -22
  76. azure/mgmt/storage/v2017_10_01/models/_models_py3.py +16 -22
  77. azure/mgmt/storage/v2017_10_01/operations/_operations.py +21 -23
  78. azure/mgmt/storage/v2017_10_01/operations/_skus_operations.py +23 -25
  79. azure/mgmt/storage/v2017_10_01/operations/_storage_accounts_operations.py +185 -286
  80. azure/mgmt/storage/v2017_10_01/operations/_usage_operations.py +23 -25
  81. azure/mgmt/storage/v2018_02_01/_configuration.py +4 -11
  82. azure/mgmt/storage/v2018_02_01/_patch.py +1 -0
  83. azure/mgmt/storage/v2018_02_01/_storage_management_client.py +30 -8
  84. azure/mgmt/storage/v2018_02_01/_vendor.py +0 -14
  85. azure/mgmt/storage/v2018_02_01/_version.py +1 -1
  86. azure/mgmt/storage/v2018_02_01/aio/_configuration.py +4 -11
  87. azure/mgmt/storage/v2018_02_01/aio/_patch.py +1 -0
  88. azure/mgmt/storage/v2018_02_01/aio/_storage_management_client.py +32 -8
  89. azure/mgmt/storage/v2018_02_01/aio/operations/_blob_containers_operations.py +166 -264
  90. azure/mgmt/storage/v2018_02_01/aio/operations/_operations.py +20 -22
  91. azure/mgmt/storage/v2018_02_01/aio/operations/_skus_operations.py +20 -22
  92. azure/mgmt/storage/v2018_02_01/aio/operations/_storage_accounts_operations.py +162 -263
  93. azure/mgmt/storage/v2018_02_01/aio/operations/_usage_operations.py +34 -41
  94. azure/mgmt/storage/v2018_02_01/models/_models_py3.py +28 -34
  95. azure/mgmt/storage/v2018_02_01/models/_storage_management_client_enums.py +1 -1
  96. azure/mgmt/storage/v2018_02_01/operations/_blob_containers_operations.py +194 -292
  97. azure/mgmt/storage/v2018_02_01/operations/_operations.py +21 -23
  98. azure/mgmt/storage/v2018_02_01/operations/_skus_operations.py +23 -25
  99. azure/mgmt/storage/v2018_02_01/operations/_storage_accounts_operations.py +185 -286
  100. azure/mgmt/storage/v2018_02_01/operations/_usage_operations.py +39 -46
  101. azure/mgmt/storage/v2018_03_01_preview/_configuration.py +4 -11
  102. azure/mgmt/storage/v2018_03_01_preview/_patch.py +1 -0
  103. azure/mgmt/storage/v2018_03_01_preview/_storage_management_client.py +41 -8
  104. azure/mgmt/storage/v2018_03_01_preview/_vendor.py +0 -14
  105. azure/mgmt/storage/v2018_03_01_preview/_version.py +1 -1
  106. azure/mgmt/storage/v2018_03_01_preview/aio/_configuration.py +4 -11
  107. azure/mgmt/storage/v2018_03_01_preview/aio/_patch.py +1 -0
  108. azure/mgmt/storage/v2018_03_01_preview/aio/_storage_management_client.py +43 -8
  109. azure/mgmt/storage/v2018_03_01_preview/aio/operations/__init__.py +2 -0
  110. azure/mgmt/storage/v2018_03_01_preview/aio/operations/_blob_containers_operations.py +182 -277
  111. azure/mgmt/storage/{v2018_07_01 → v2018_03_01_preview}/aio/operations/_management_policies_operations.py +55 -72
  112. azure/mgmt/storage/v2018_03_01_preview/aio/operations/_operations.py +21 -23
  113. azure/mgmt/storage/v2018_03_01_preview/aio/operations/_skus_operations.py +21 -23
  114. azure/mgmt/storage/v2018_03_01_preview/aio/operations/_storage_accounts_operations.py +209 -330
  115. azure/mgmt/storage/v2018_03_01_preview/aio/operations/_usages_operations.py +36 -43
  116. azure/mgmt/storage/v2018_03_01_preview/models/_models_py3.py +30 -34
  117. azure/mgmt/storage/v2018_03_01_preview/models/_storage_management_client_enums.py +1 -1
  118. azure/mgmt/storage/v2018_03_01_preview/operations/__init__.py +2 -0
  119. azure/mgmt/storage/v2018_03_01_preview/operations/_blob_containers_operations.py +210 -331
  120. azure/mgmt/storage/{v2018_07_01 → v2018_03_01_preview}/operations/_management_policies_operations.py +62 -85
  121. azure/mgmt/storage/v2018_03_01_preview/operations/_operations.py +22 -26
  122. azure/mgmt/storage/v2018_03_01_preview/operations/_skus_operations.py +24 -28
  123. azure/mgmt/storage/v2018_03_01_preview/operations/_storage_accounts_operations.py +239 -388
  124. azure/mgmt/storage/v2018_03_01_preview/operations/_usages_operations.py +41 -52
  125. azure/mgmt/storage/v2018_07_01/_configuration.py +9 -4
  126. azure/mgmt/storage/v2018_07_01/_patch.py +1 -0
  127. azure/mgmt/storage/v2018_07_01/_storage_management_client.py +36 -16
  128. azure/mgmt/storage/v2018_07_01/_vendor.py +0 -14
  129. azure/mgmt/storage/v2018_07_01/_version.py +1 -1
  130. azure/mgmt/storage/v2018_07_01/aio/_configuration.py +9 -4
  131. azure/mgmt/storage/v2018_07_01/aio/_patch.py +1 -0
  132. azure/mgmt/storage/v2018_07_01/aio/_storage_management_client.py +38 -16
  133. azure/mgmt/storage/v2018_07_01/aio/operations/__init__.py +0 -2
  134. azure/mgmt/storage/v2018_07_01/aio/operations/_blob_containers_operations.py +166 -264
  135. azure/mgmt/storage/v2018_07_01/aio/operations/_blob_services_operations.py +31 -44
  136. azure/mgmt/storage/v2018_07_01/aio/operations/_operations.py +31 -21
  137. azure/mgmt/storage/v2018_07_01/aio/operations/_skus_operations.py +31 -21
  138. azure/mgmt/storage/v2018_07_01/aio/operations/_storage_accounts_operations.py +195 -289
  139. azure/mgmt/storage/v2018_07_01/aio/operations/_usages_operations.py +31 -23
  140. azure/mgmt/storage/v2018_07_01/models/__init__.py +0 -10
  141. azure/mgmt/storage/v2018_07_01/models/_models_py3.py +30 -164
  142. azure/mgmt/storage/v2018_07_01/models/_storage_management_client_enums.py +1 -7
  143. azure/mgmt/storage/v2018_07_01/operations/__init__.py +0 -2
  144. azure/mgmt/storage/v2018_07_01/operations/_blob_containers_operations.py +194 -292
  145. azure/mgmt/storage/v2018_07_01/operations/_blob_services_operations.py +36 -49
  146. azure/mgmt/storage/v2018_07_01/operations/_operations.py +32 -22
  147. azure/mgmt/storage/v2018_07_01/operations/_skus_operations.py +34 -24
  148. azure/mgmt/storage/v2018_07_01/operations/_storage_accounts_operations.py +220 -314
  149. azure/mgmt/storage/v2018_07_01/operations/_usages_operations.py +34 -26
  150. azure/mgmt/storage/v2018_11_01/_configuration.py +4 -11
  151. azure/mgmt/storage/v2018_11_01/_patch.py +1 -0
  152. azure/mgmt/storage/v2018_11_01/_storage_management_client.py +34 -10
  153. azure/mgmt/storage/v2018_11_01/_vendor.py +0 -14
  154. azure/mgmt/storage/v2018_11_01/_version.py +1 -1
  155. azure/mgmt/storage/v2018_11_01/aio/_configuration.py +4 -11
  156. azure/mgmt/storage/v2018_11_01/aio/_patch.py +1 -0
  157. azure/mgmt/storage/v2018_11_01/aio/_storage_management_client.py +36 -10
  158. azure/mgmt/storage/v2018_11_01/aio/operations/_blob_containers_operations.py +164 -262
  159. azure/mgmt/storage/v2018_11_01/aio/operations/_blob_services_operations.py +31 -44
  160. azure/mgmt/storage/v2018_11_01/aio/operations/_management_policies_operations.py +39 -57
  161. azure/mgmt/storage/v2018_11_01/aio/operations/_operations.py +20 -22
  162. azure/mgmt/storage/v2018_11_01/aio/operations/_skus_operations.py +20 -22
  163. azure/mgmt/storage/v2018_11_01/aio/operations/_storage_accounts_operations.py +182 -304
  164. azure/mgmt/storage/v2018_11_01/aio/operations/_usages_operations.py +20 -24
  165. azure/mgmt/storage/v2018_11_01/models/_models_py3.py +37 -43
  166. azure/mgmt/storage/v2018_11_01/models/_storage_management_client_enums.py +1 -1
  167. azure/mgmt/storage/v2018_11_01/operations/_blob_containers_operations.py +192 -290
  168. azure/mgmt/storage/v2018_11_01/operations/_blob_services_operations.py +36 -49
  169. azure/mgmt/storage/v2018_11_01/operations/_management_policies_operations.py +46 -64
  170. azure/mgmt/storage/v2018_11_01/operations/_operations.py +21 -23
  171. azure/mgmt/storage/v2018_11_01/operations/_skus_operations.py +23 -25
  172. azure/mgmt/storage/v2018_11_01/operations/_storage_accounts_operations.py +210 -332
  173. azure/mgmt/storage/v2018_11_01/operations/_usages_operations.py +23 -27
  174. azure/mgmt/storage/v2019_04_01/_configuration.py +4 -11
  175. azure/mgmt/storage/v2019_04_01/_patch.py +1 -0
  176. azure/mgmt/storage/v2019_04_01/_storage_management_client.py +40 -12
  177. azure/mgmt/storage/v2019_04_01/_vendor.py +0 -14
  178. azure/mgmt/storage/v2019_04_01/_version.py +1 -1
  179. azure/mgmt/storage/v2019_04_01/aio/_configuration.py +4 -11
  180. azure/mgmt/storage/v2019_04_01/aio/_patch.py +1 -0
  181. azure/mgmt/storage/v2019_04_01/aio/_storage_management_client.py +42 -12
  182. azure/mgmt/storage/v2019_04_01/aio/operations/_blob_containers_operations.py +169 -267
  183. azure/mgmt/storage/v2019_04_01/aio/operations/_blob_services_operations.py +45 -63
  184. azure/mgmt/storage/v2019_04_01/aio/operations/_file_services_operations.py +41 -59
  185. azure/mgmt/storage/v2019_04_01/aio/operations/_file_shares_operations.py +68 -101
  186. azure/mgmt/storage/v2019_04_01/aio/operations/_management_policies_operations.py +39 -57
  187. azure/mgmt/storage/v2019_04_01/aio/operations/_operations.py +20 -22
  188. azure/mgmt/storage/v2019_04_01/aio/operations/_skus_operations.py +20 -22
  189. azure/mgmt/storage/v2019_04_01/aio/operations/_storage_accounts_operations.py +183 -304
  190. azure/mgmt/storage/v2019_04_01/aio/operations/_usages_operations.py +20 -24
  191. azure/mgmt/storage/v2019_04_01/models/_models_py3.py +42 -48
  192. azure/mgmt/storage/v2019_04_01/models/_storage_management_client_enums.py +1 -1
  193. azure/mgmt/storage/v2019_04_01/operations/_blob_containers_operations.py +197 -295
  194. azure/mgmt/storage/v2019_04_01/operations/_blob_services_operations.py +52 -70
  195. azure/mgmt/storage/v2019_04_01/operations/_file_services_operations.py +48 -66
  196. azure/mgmt/storage/v2019_04_01/operations/_file_shares_operations.py +79 -112
  197. azure/mgmt/storage/v2019_04_01/operations/_management_policies_operations.py +46 -64
  198. azure/mgmt/storage/v2019_04_01/operations/_operations.py +21 -23
  199. azure/mgmt/storage/v2019_04_01/operations/_skus_operations.py +23 -25
  200. azure/mgmt/storage/v2019_04_01/operations/_storage_accounts_operations.py +211 -332
  201. azure/mgmt/storage/v2019_04_01/operations/_usages_operations.py +23 -27
  202. azure/mgmt/storage/v2019_06_01/_configuration.py +4 -11
  203. azure/mgmt/storage/v2019_06_01/_patch.py +1 -0
  204. azure/mgmt/storage/v2019_06_01/_storage_management_client.py +54 -22
  205. azure/mgmt/storage/v2019_06_01/_vendor.py +0 -14
  206. azure/mgmt/storage/v2019_06_01/_version.py +1 -1
  207. azure/mgmt/storage/v2019_06_01/aio/_configuration.py +4 -11
  208. azure/mgmt/storage/v2019_06_01/aio/_patch.py +1 -0
  209. azure/mgmt/storage/v2019_06_01/aio/_storage_management_client.py +56 -22
  210. azure/mgmt/storage/v2019_06_01/aio/operations/_blob_containers_operations.py +169 -267
  211. azure/mgmt/storage/v2019_06_01/aio/operations/_blob_inventory_policies_operations.py +53 -76
  212. azure/mgmt/storage/v2019_06_01/aio/operations/_blob_services_operations.py +45 -63
  213. azure/mgmt/storage/v2019_06_01/aio/operations/_encryption_scopes_operations.py +58 -86
  214. azure/mgmt/storage/v2019_06_01/aio/operations/_file_services_operations.py +41 -59
  215. azure/mgmt/storage/v2019_06_01/aio/operations/_file_shares_operations.py +82 -125
  216. azure/mgmt/storage/v2019_06_01/aio/operations/_management_policies_operations.py +39 -57
  217. azure/mgmt/storage/v2019_06_01/aio/operations/_object_replication_policies_operations.py +54 -76
  218. azure/mgmt/storage/v2019_06_01/aio/operations/_operations.py +20 -22
  219. azure/mgmt/storage/v2019_06_01/aio/operations/_private_endpoint_connections_operations.py +53 -76
  220. azure/mgmt/storage/v2019_06_01/aio/operations/_private_link_resources_operations.py +15 -19
  221. azure/mgmt/storage/v2019_06_01/aio/operations/_queue_operations.py +68 -101
  222. azure/mgmt/storage/v2019_06_01/aio/operations/_queue_services_operations.py +40 -58
  223. azure/mgmt/storage/v2019_06_01/aio/operations/_skus_operations.py +20 -22
  224. azure/mgmt/storage/v2019_06_01/aio/operations/_storage_accounts_operations.py +203 -357
  225. azure/mgmt/storage/v2019_06_01/aio/operations/_table_operations.py +55 -79
  226. azure/mgmt/storage/v2019_06_01/aio/operations/_table_services_operations.py +40 -58
  227. azure/mgmt/storage/v2019_06_01/aio/operations/_usages_operations.py +20 -24
  228. azure/mgmt/storage/v2019_06_01/models/_models_py3.py +62 -68
  229. azure/mgmt/storage/v2019_06_01/models/_storage_management_client_enums.py +1 -1
  230. azure/mgmt/storage/v2019_06_01/operations/_blob_containers_operations.py +197 -295
  231. azure/mgmt/storage/v2019_06_01/operations/_blob_inventory_policies_operations.py +62 -85
  232. azure/mgmt/storage/v2019_06_01/operations/_blob_services_operations.py +52 -70
  233. azure/mgmt/storage/v2019_06_01/operations/_encryption_scopes_operations.py +67 -95
  234. azure/mgmt/storage/v2019_06_01/operations/_file_services_operations.py +48 -66
  235. azure/mgmt/storage/v2019_06_01/operations/_file_shares_operations.py +95 -138
  236. azure/mgmt/storage/v2019_06_01/operations/_management_policies_operations.py +46 -64
  237. azure/mgmt/storage/v2019_06_01/operations/_object_replication_policies_operations.py +63 -85
  238. azure/mgmt/storage/v2019_06_01/operations/_operations.py +21 -23
  239. azure/mgmt/storage/v2019_06_01/operations/_private_endpoint_connections_operations.py +62 -85
  240. azure/mgmt/storage/v2019_06_01/operations/_private_link_resources_operations.py +18 -22
  241. azure/mgmt/storage/v2019_06_01/operations/_queue_operations.py +79 -112
  242. azure/mgmt/storage/v2019_06_01/operations/_queue_services_operations.py +47 -65
  243. azure/mgmt/storage/v2019_06_01/operations/_skus_operations.py +23 -25
  244. azure/mgmt/storage/v2019_06_01/operations/_storage_accounts_operations.py +233 -387
  245. azure/mgmt/storage/v2019_06_01/operations/_table_operations.py +66 -90
  246. azure/mgmt/storage/v2019_06_01/operations/_table_services_operations.py +47 -65
  247. azure/mgmt/storage/v2019_06_01/operations/_usages_operations.py +23 -27
  248. azure/mgmt/storage/v2020_08_01_preview/_configuration.py +4 -11
  249. azure/mgmt/storage/v2020_08_01_preview/_patch.py +1 -0
  250. azure/mgmt/storage/v2020_08_01_preview/_storage_management_client.py +64 -24
  251. azure/mgmt/storage/v2020_08_01_preview/_vendor.py +0 -14
  252. azure/mgmt/storage/v2020_08_01_preview/_version.py +1 -1
  253. azure/mgmt/storage/v2020_08_01_preview/aio/_configuration.py +4 -11
  254. azure/mgmt/storage/v2020_08_01_preview/aio/_patch.py +1 -0
  255. azure/mgmt/storage/v2020_08_01_preview/aio/_storage_management_client.py +66 -24
  256. azure/mgmt/storage/v2020_08_01_preview/aio/operations/_blob_containers_operations.py +185 -280
  257. azure/mgmt/storage/v2020_08_01_preview/aio/operations/_blob_inventory_policies_operations.py +58 -80
  258. azure/mgmt/storage/v2020_08_01_preview/aio/operations/_blob_services_operations.py +49 -66
  259. azure/mgmt/storage/v2020_08_01_preview/aio/operations/_deleted_accounts_operations.py +31 -38
  260. azure/mgmt/storage/v2020_08_01_preview/aio/operations/_encryption_scopes_operations.py +64 -90
  261. azure/mgmt/storage/v2020_08_01_preview/aio/operations/_file_services_operations.py +45 -62
  262. azure/mgmt/storage/v2020_08_01_preview/aio/operations/_file_shares_operations.py +88 -131
  263. azure/mgmt/storage/v2020_08_01_preview/aio/operations/_management_policies_operations.py +42 -60
  264. azure/mgmt/storage/v2020_08_01_preview/aio/operations/_object_replication_policies_operations.py +59 -80
  265. azure/mgmt/storage/v2020_08_01_preview/aio/operations/_operations.py +21 -23
  266. azure/mgmt/storage/v2020_08_01_preview/aio/operations/_private_endpoint_connections_operations.py +57 -80
  267. azure/mgmt/storage/v2020_08_01_preview/aio/operations/_private_link_resources_operations.py +16 -20
  268. azure/mgmt/storage/v2020_08_01_preview/aio/operations/_queue_operations.py +73 -106
  269. azure/mgmt/storage/v2020_08_01_preview/aio/operations/_queue_services_operations.py +44 -61
  270. azure/mgmt/storage/v2020_08_01_preview/aio/operations/_skus_operations.py +21 -23
  271. azure/mgmt/storage/v2020_08_01_preview/aio/operations/_storage_accounts_operations.py +221 -374
  272. azure/mgmt/storage/v2020_08_01_preview/aio/operations/_table_operations.py +60 -84
  273. azure/mgmt/storage/v2020_08_01_preview/aio/operations/_table_services_operations.py +44 -61
  274. azure/mgmt/storage/v2020_08_01_preview/aio/operations/_usages_operations.py +21 -25
  275. azure/mgmt/storage/v2020_08_01_preview/models/_models_py3.py +64 -86
  276. azure/mgmt/storage/v2020_08_01_preview/models/_storage_management_client_enums.py +1 -1
  277. azure/mgmt/storage/v2020_08_01_preview/operations/_blob_containers_operations.py +213 -334
  278. azure/mgmt/storage/v2020_08_01_preview/operations/_blob_inventory_policies_operations.py +67 -97
  279. azure/mgmt/storage/v2020_08_01_preview/operations/_blob_services_operations.py +56 -79
  280. azure/mgmt/storage/v2020_08_01_preview/operations/_deleted_accounts_operations.py +36 -47
  281. azure/mgmt/storage/v2020_08_01_preview/operations/_encryption_scopes_operations.py +73 -107
  282. azure/mgmt/storage/v2020_08_01_preview/operations/_file_services_operations.py +52 -75
  283. azure/mgmt/storage/v2020_08_01_preview/operations/_file_shares_operations.py +101 -156
  284. azure/mgmt/storage/v2020_08_01_preview/operations/_management_policies_operations.py +49 -73
  285. azure/mgmt/storage/v2020_08_01_preview/operations/_object_replication_policies_operations.py +68 -97
  286. azure/mgmt/storage/v2020_08_01_preview/operations/_operations.py +22 -26
  287. azure/mgmt/storage/v2020_08_01_preview/operations/_private_endpoint_connections_operations.py +66 -97
  288. azure/mgmt/storage/v2020_08_01_preview/operations/_private_link_resources_operations.py +19 -25
  289. azure/mgmt/storage/v2020_08_01_preview/operations/_queue_operations.py +84 -127
  290. azure/mgmt/storage/v2020_08_01_preview/operations/_queue_services_operations.py +51 -74
  291. azure/mgmt/storage/v2020_08_01_preview/operations/_skus_operations.py +24 -28
  292. azure/mgmt/storage/v2020_08_01_preview/operations/_storage_accounts_operations.py +251 -432
  293. azure/mgmt/storage/v2020_08_01_preview/operations/_table_operations.py +71 -105
  294. azure/mgmt/storage/v2020_08_01_preview/operations/_table_services_operations.py +51 -74
  295. azure/mgmt/storage/v2020_08_01_preview/operations/_usages_operations.py +24 -30
  296. azure/mgmt/storage/v2021_01_01/_configuration.py +4 -11
  297. azure/mgmt/storage/v2021_01_01/_patch.py +1 -0
  298. azure/mgmt/storage/v2021_01_01/_storage_management_client.py +55 -23
  299. azure/mgmt/storage/v2021_01_01/_vendor.py +0 -14
  300. azure/mgmt/storage/v2021_01_01/_version.py +1 -1
  301. azure/mgmt/storage/v2021_01_01/aio/_configuration.py +4 -11
  302. azure/mgmt/storage/v2021_01_01/aio/_patch.py +1 -0
  303. azure/mgmt/storage/v2021_01_01/aio/_storage_management_client.py +57 -23
  304. azure/mgmt/storage/v2021_01_01/aio/operations/_blob_containers_operations.py +169 -267
  305. azure/mgmt/storage/v2021_01_01/aio/operations/_blob_inventory_policies_operations.py +53 -76
  306. azure/mgmt/storage/v2021_01_01/aio/operations/_blob_services_operations.py +45 -63
  307. azure/mgmt/storage/v2021_01_01/aio/operations/_deleted_accounts_operations.py +29 -36
  308. azure/mgmt/storage/v2021_01_01/aio/operations/_encryption_scopes_operations.py +58 -86
  309. azure/mgmt/storage/v2021_01_01/aio/operations/_file_services_operations.py +41 -59
  310. azure/mgmt/storage/v2021_01_01/aio/operations/_file_shares_operations.py +82 -125
  311. azure/mgmt/storage/v2021_01_01/aio/operations/_management_policies_operations.py +39 -57
  312. azure/mgmt/storage/v2021_01_01/aio/operations/_object_replication_policies_operations.py +54 -76
  313. azure/mgmt/storage/v2021_01_01/aio/operations/_operations.py +20 -22
  314. azure/mgmt/storage/v2021_01_01/aio/operations/_private_endpoint_connections_operations.py +53 -76
  315. azure/mgmt/storage/v2021_01_01/aio/operations/_private_link_resources_operations.py +15 -19
  316. azure/mgmt/storage/v2021_01_01/aio/operations/_queue_operations.py +68 -101
  317. azure/mgmt/storage/v2021_01_01/aio/operations/_queue_services_operations.py +40 -58
  318. azure/mgmt/storage/v2021_01_01/aio/operations/_skus_operations.py +20 -22
  319. azure/mgmt/storage/v2021_01_01/aio/operations/_storage_accounts_operations.py +203 -357
  320. azure/mgmt/storage/v2021_01_01/aio/operations/_table_operations.py +55 -79
  321. azure/mgmt/storage/v2021_01_01/aio/operations/_table_services_operations.py +40 -58
  322. azure/mgmt/storage/v2021_01_01/aio/operations/_usages_operations.py +20 -24
  323. azure/mgmt/storage/v2021_01_01/models/_models_py3.py +64 -86
  324. azure/mgmt/storage/v2021_01_01/models/_storage_management_client_enums.py +1 -1
  325. azure/mgmt/storage/v2021_01_01/operations/_blob_containers_operations.py +197 -295
  326. azure/mgmt/storage/v2021_01_01/operations/_blob_inventory_policies_operations.py +62 -85
  327. azure/mgmt/storage/v2021_01_01/operations/_blob_services_operations.py +52 -70
  328. azure/mgmt/storage/v2021_01_01/operations/_deleted_accounts_operations.py +34 -41
  329. azure/mgmt/storage/v2021_01_01/operations/_encryption_scopes_operations.py +67 -95
  330. azure/mgmt/storage/v2021_01_01/operations/_file_services_operations.py +48 -66
  331. azure/mgmt/storage/v2021_01_01/operations/_file_shares_operations.py +95 -138
  332. azure/mgmt/storage/v2021_01_01/operations/_management_policies_operations.py +46 -64
  333. azure/mgmt/storage/v2021_01_01/operations/_object_replication_policies_operations.py +63 -85
  334. azure/mgmt/storage/v2021_01_01/operations/_operations.py +21 -23
  335. azure/mgmt/storage/v2021_01_01/operations/_private_endpoint_connections_operations.py +62 -85
  336. azure/mgmt/storage/v2021_01_01/operations/_private_link_resources_operations.py +18 -22
  337. azure/mgmt/storage/v2021_01_01/operations/_queue_operations.py +79 -112
  338. azure/mgmt/storage/v2021_01_01/operations/_queue_services_operations.py +47 -65
  339. azure/mgmt/storage/v2021_01_01/operations/_skus_operations.py +23 -25
  340. azure/mgmt/storage/v2021_01_01/operations/_storage_accounts_operations.py +233 -387
  341. azure/mgmt/storage/v2021_01_01/operations/_table_operations.py +66 -90
  342. azure/mgmt/storage/v2021_01_01/operations/_table_services_operations.py +47 -65
  343. azure/mgmt/storage/v2021_01_01/operations/_usages_operations.py +23 -27
  344. azure/mgmt/storage/v2021_02_01/_configuration.py +4 -11
  345. azure/mgmt/storage/v2021_02_01/_patch.py +1 -0
  346. azure/mgmt/storage/v2021_02_01/_storage_management_client.py +55 -23
  347. azure/mgmt/storage/v2021_02_01/_vendor.py +0 -14
  348. azure/mgmt/storage/v2021_02_01/_version.py +1 -1
  349. azure/mgmt/storage/v2021_02_01/aio/_configuration.py +4 -11
  350. azure/mgmt/storage/v2021_02_01/aio/_patch.py +1 -0
  351. azure/mgmt/storage/v2021_02_01/aio/_storage_management_client.py +57 -23
  352. azure/mgmt/storage/v2021_02_01/aio/operations/_blob_containers_operations.py +169 -267
  353. azure/mgmt/storage/v2021_02_01/aio/operations/_blob_inventory_policies_operations.py +53 -76
  354. azure/mgmt/storage/v2021_02_01/aio/operations/_blob_services_operations.py +45 -63
  355. azure/mgmt/storage/v2021_02_01/aio/operations/_deleted_accounts_operations.py +29 -36
  356. azure/mgmt/storage/v2021_02_01/aio/operations/_encryption_scopes_operations.py +58 -86
  357. azure/mgmt/storage/v2021_02_01/aio/operations/_file_services_operations.py +41 -59
  358. azure/mgmt/storage/v2021_02_01/aio/operations/_file_shares_operations.py +82 -125
  359. azure/mgmt/storage/v2021_02_01/aio/operations/_management_policies_operations.py +39 -57
  360. azure/mgmt/storage/v2021_02_01/aio/operations/_object_replication_policies_operations.py +54 -76
  361. azure/mgmt/storage/v2021_02_01/aio/operations/_operations.py +20 -22
  362. azure/mgmt/storage/v2021_02_01/aio/operations/_private_endpoint_connections_operations.py +53 -76
  363. azure/mgmt/storage/v2021_02_01/aio/operations/_private_link_resources_operations.py +15 -19
  364. azure/mgmt/storage/v2021_02_01/aio/operations/_queue_operations.py +68 -101
  365. azure/mgmt/storage/v2021_02_01/aio/operations/_queue_services_operations.py +40 -58
  366. azure/mgmt/storage/v2021_02_01/aio/operations/_skus_operations.py +20 -22
  367. azure/mgmt/storage/v2021_02_01/aio/operations/_storage_accounts_operations.py +203 -357
  368. azure/mgmt/storage/v2021_02_01/aio/operations/_table_operations.py +55 -79
  369. azure/mgmt/storage/v2021_02_01/aio/operations/_table_services_operations.py +40 -58
  370. azure/mgmt/storage/v2021_02_01/aio/operations/_usages_operations.py +20 -24
  371. azure/mgmt/storage/v2021_02_01/models/_models_py3.py +66 -88
  372. azure/mgmt/storage/v2021_02_01/models/_storage_management_client_enums.py +1 -1
  373. azure/mgmt/storage/v2021_02_01/operations/_blob_containers_operations.py +197 -295
  374. azure/mgmt/storage/v2021_02_01/operations/_blob_inventory_policies_operations.py +62 -85
  375. azure/mgmt/storage/v2021_02_01/operations/_blob_services_operations.py +52 -70
  376. azure/mgmt/storage/v2021_02_01/operations/_deleted_accounts_operations.py +34 -41
  377. azure/mgmt/storage/v2021_02_01/operations/_encryption_scopes_operations.py +67 -95
  378. azure/mgmt/storage/v2021_02_01/operations/_file_services_operations.py +48 -66
  379. azure/mgmt/storage/v2021_02_01/operations/_file_shares_operations.py +95 -138
  380. azure/mgmt/storage/v2021_02_01/operations/_management_policies_operations.py +46 -64
  381. azure/mgmt/storage/v2021_02_01/operations/_object_replication_policies_operations.py +63 -85
  382. azure/mgmt/storage/v2021_02_01/operations/_operations.py +21 -23
  383. azure/mgmt/storage/v2021_02_01/operations/_private_endpoint_connections_operations.py +62 -85
  384. azure/mgmt/storage/v2021_02_01/operations/_private_link_resources_operations.py +18 -22
  385. azure/mgmt/storage/v2021_02_01/operations/_queue_operations.py +79 -112
  386. azure/mgmt/storage/v2021_02_01/operations/_queue_services_operations.py +47 -65
  387. azure/mgmt/storage/v2021_02_01/operations/_skus_operations.py +23 -25
  388. azure/mgmt/storage/v2021_02_01/operations/_storage_accounts_operations.py +233 -387
  389. azure/mgmt/storage/v2021_02_01/operations/_table_operations.py +66 -90
  390. azure/mgmt/storage/v2021_02_01/operations/_table_services_operations.py +47 -65
  391. azure/mgmt/storage/v2021_02_01/operations/_usages_operations.py +23 -27
  392. azure/mgmt/storage/v2021_04_01/_configuration.py +4 -11
  393. azure/mgmt/storage/v2021_04_01/_patch.py +1 -0
  394. azure/mgmt/storage/v2021_04_01/_storage_management_client.py +55 -23
  395. azure/mgmt/storage/v2021_04_01/_vendor.py +0 -14
  396. azure/mgmt/storage/v2021_04_01/_version.py +1 -1
  397. azure/mgmt/storage/v2021_04_01/aio/_configuration.py +4 -11
  398. azure/mgmt/storage/v2021_04_01/aio/_patch.py +1 -0
  399. azure/mgmt/storage/v2021_04_01/aio/_storage_management_client.py +57 -23
  400. azure/mgmt/storage/v2021_04_01/aio/operations/_blob_containers_operations.py +181 -295
  401. azure/mgmt/storage/v2021_04_01/aio/operations/_blob_inventory_policies_operations.py +53 -76
  402. azure/mgmt/storage/v2021_04_01/aio/operations/_blob_services_operations.py +45 -63
  403. azure/mgmt/storage/v2021_04_01/aio/operations/_deleted_accounts_operations.py +29 -36
  404. azure/mgmt/storage/v2021_04_01/aio/operations/_encryption_scopes_operations.py +58 -86
  405. azure/mgmt/storage/v2021_04_01/aio/operations/_file_services_operations.py +41 -59
  406. azure/mgmt/storage/v2021_04_01/aio/operations/_file_shares_operations.py +98 -151
  407. azure/mgmt/storage/v2021_04_01/aio/operations/_management_policies_operations.py +39 -57
  408. azure/mgmt/storage/v2021_04_01/aio/operations/_object_replication_policies_operations.py +54 -76
  409. azure/mgmt/storage/v2021_04_01/aio/operations/_operations.py +20 -22
  410. azure/mgmt/storage/v2021_04_01/aio/operations/_private_endpoint_connections_operations.py +53 -76
  411. azure/mgmt/storage/v2021_04_01/aio/operations/_private_link_resources_operations.py +15 -19
  412. azure/mgmt/storage/v2021_04_01/aio/operations/_queue_operations.py +68 -101
  413. azure/mgmt/storage/v2021_04_01/aio/operations/_queue_services_operations.py +40 -58
  414. azure/mgmt/storage/v2021_04_01/aio/operations/_skus_operations.py +20 -22
  415. azure/mgmt/storage/v2021_04_01/aio/operations/_storage_accounts_operations.py +203 -357
  416. azure/mgmt/storage/v2021_04_01/aio/operations/_table_operations.py +55 -79
  417. azure/mgmt/storage/v2021_04_01/aio/operations/_table_services_operations.py +40 -58
  418. azure/mgmt/storage/v2021_04_01/aio/operations/_usages_operations.py +20 -24
  419. azure/mgmt/storage/v2021_04_01/models/_models_py3.py +66 -88
  420. azure/mgmt/storage/v2021_04_01/models/_storage_management_client_enums.py +2 -2
  421. azure/mgmt/storage/v2021_04_01/operations/_blob_containers_operations.py +211 -325
  422. azure/mgmt/storage/v2021_04_01/operations/_blob_inventory_policies_operations.py +62 -85
  423. azure/mgmt/storage/v2021_04_01/operations/_blob_services_operations.py +52 -70
  424. azure/mgmt/storage/v2021_04_01/operations/_deleted_accounts_operations.py +34 -41
  425. azure/mgmt/storage/v2021_04_01/operations/_encryption_scopes_operations.py +67 -95
  426. azure/mgmt/storage/v2021_04_01/operations/_file_services_operations.py +48 -66
  427. azure/mgmt/storage/v2021_04_01/operations/_file_shares_operations.py +113 -166
  428. azure/mgmt/storage/v2021_04_01/operations/_management_policies_operations.py +46 -64
  429. azure/mgmt/storage/v2021_04_01/operations/_object_replication_policies_operations.py +63 -85
  430. azure/mgmt/storage/v2021_04_01/operations/_operations.py +21 -23
  431. azure/mgmt/storage/v2021_04_01/operations/_private_endpoint_connections_operations.py +62 -85
  432. azure/mgmt/storage/v2021_04_01/operations/_private_link_resources_operations.py +18 -22
  433. azure/mgmt/storage/v2021_04_01/operations/_queue_operations.py +79 -112
  434. azure/mgmt/storage/v2021_04_01/operations/_queue_services_operations.py +47 -65
  435. azure/mgmt/storage/v2021_04_01/operations/_skus_operations.py +23 -25
  436. azure/mgmt/storage/v2021_04_01/operations/_storage_accounts_operations.py +233 -387
  437. azure/mgmt/storage/v2021_04_01/operations/_table_operations.py +66 -90
  438. azure/mgmt/storage/v2021_04_01/operations/_table_services_operations.py +47 -65
  439. azure/mgmt/storage/v2021_04_01/operations/_usages_operations.py +23 -27
  440. azure/mgmt/storage/v2021_06_01/_configuration.py +4 -11
  441. azure/mgmt/storage/v2021_06_01/_patch.py +1 -0
  442. azure/mgmt/storage/v2021_06_01/_storage_management_client.py +55 -23
  443. azure/mgmt/storage/v2021_06_01/_vendor.py +0 -14
  444. azure/mgmt/storage/v2021_06_01/_version.py +1 -1
  445. azure/mgmt/storage/v2021_06_01/aio/_configuration.py +4 -11
  446. azure/mgmt/storage/v2021_06_01/aio/_patch.py +1 -0
  447. azure/mgmt/storage/v2021_06_01/aio/_storage_management_client.py +57 -23
  448. azure/mgmt/storage/v2021_06_01/aio/operations/_blob_containers_operations.py +181 -315
  449. azure/mgmt/storage/v2021_06_01/aio/operations/_blob_inventory_policies_operations.py +53 -76
  450. azure/mgmt/storage/v2021_06_01/aio/operations/_blob_services_operations.py +45 -79
  451. azure/mgmt/storage/v2021_06_01/aio/operations/_deleted_accounts_operations.py +29 -36
  452. azure/mgmt/storage/v2021_06_01/aio/operations/_encryption_scopes_operations.py +58 -86
  453. azure/mgmt/storage/v2021_06_01/aio/operations/_file_services_operations.py +41 -75
  454. azure/mgmt/storage/v2021_06_01/aio/operations/_file_shares_operations.py +98 -151
  455. azure/mgmt/storage/v2021_06_01/aio/operations/_management_policies_operations.py +39 -57
  456. azure/mgmt/storage/v2021_06_01/aio/operations/_object_replication_policies_operations.py +54 -76
  457. azure/mgmt/storage/v2021_06_01/aio/operations/_operations.py +20 -22
  458. azure/mgmt/storage/v2021_06_01/aio/operations/_private_endpoint_connections_operations.py +53 -76
  459. azure/mgmt/storage/v2021_06_01/aio/operations/_private_link_resources_operations.py +15 -19
  460. azure/mgmt/storage/v2021_06_01/aio/operations/_queue_operations.py +68 -101
  461. azure/mgmt/storage/v2021_06_01/aio/operations/_queue_services_operations.py +40 -74
  462. azure/mgmt/storage/v2021_06_01/aio/operations/_skus_operations.py +20 -22
  463. azure/mgmt/storage/v2021_06_01/aio/operations/_storage_accounts_operations.py +230 -416
  464. azure/mgmt/storage/v2021_06_01/aio/operations/_table_operations.py +55 -79
  465. azure/mgmt/storage/v2021_06_01/aio/operations/_table_services_operations.py +40 -74
  466. azure/mgmt/storage/v2021_06_01/aio/operations/_usages_operations.py +20 -24
  467. azure/mgmt/storage/v2021_06_01/models/_models_py3.py +66 -88
  468. azure/mgmt/storage/v2021_06_01/models/_storage_management_client_enums.py +2 -2
  469. azure/mgmt/storage/v2021_06_01/operations/_blob_containers_operations.py +211 -345
  470. azure/mgmt/storage/v2021_06_01/operations/_blob_inventory_policies_operations.py +62 -85
  471. azure/mgmt/storage/v2021_06_01/operations/_blob_services_operations.py +52 -86
  472. azure/mgmt/storage/v2021_06_01/operations/_deleted_accounts_operations.py +34 -41
  473. azure/mgmt/storage/v2021_06_01/operations/_encryption_scopes_operations.py +67 -95
  474. azure/mgmt/storage/v2021_06_01/operations/_file_services_operations.py +48 -82
  475. azure/mgmt/storage/v2021_06_01/operations/_file_shares_operations.py +113 -166
  476. azure/mgmt/storage/v2021_06_01/operations/_management_policies_operations.py +46 -64
  477. azure/mgmt/storage/v2021_06_01/operations/_object_replication_policies_operations.py +63 -85
  478. azure/mgmt/storage/v2021_06_01/operations/_operations.py +21 -23
  479. azure/mgmt/storage/v2021_06_01/operations/_private_endpoint_connections_operations.py +62 -85
  480. azure/mgmt/storage/v2021_06_01/operations/_private_link_resources_operations.py +18 -22
  481. azure/mgmt/storage/v2021_06_01/operations/_queue_operations.py +79 -112
  482. azure/mgmt/storage/v2021_06_01/operations/_queue_services_operations.py +47 -81
  483. azure/mgmt/storage/v2021_06_01/operations/_skus_operations.py +23 -25
  484. azure/mgmt/storage/v2021_06_01/operations/_storage_accounts_operations.py +266 -452
  485. azure/mgmt/storage/v2021_06_01/operations/_table_operations.py +66 -90
  486. azure/mgmt/storage/v2021_06_01/operations/_table_services_operations.py +47 -81
  487. azure/mgmt/storage/v2021_06_01/operations/_usages_operations.py +23 -27
  488. azure/mgmt/storage/v2021_08_01/_configuration.py +4 -11
  489. azure/mgmt/storage/v2021_08_01/_patch.py +1 -0
  490. azure/mgmt/storage/v2021_08_01/_storage_management_client.py +59 -25
  491. azure/mgmt/storage/v2021_08_01/_vendor.py +0 -14
  492. azure/mgmt/storage/v2021_08_01/_version.py +1 -1
  493. azure/mgmt/storage/v2021_08_01/aio/_configuration.py +4 -11
  494. azure/mgmt/storage/v2021_08_01/aio/_patch.py +1 -0
  495. azure/mgmt/storage/v2021_08_01/aio/_storage_management_client.py +61 -25
  496. azure/mgmt/storage/v2021_08_01/aio/operations/_blob_containers_operations.py +181 -315
  497. azure/mgmt/storage/v2021_08_01/aio/operations/_blob_inventory_policies_operations.py +53 -76
  498. azure/mgmt/storage/v2021_08_01/aio/operations/_blob_services_operations.py +45 -79
  499. azure/mgmt/storage/v2021_08_01/aio/operations/_deleted_accounts_operations.py +29 -36
  500. azure/mgmt/storage/v2021_08_01/aio/operations/_encryption_scopes_operations.py +58 -86
  501. azure/mgmt/storage/v2021_08_01/aio/operations/_file_services_operations.py +41 -75
  502. azure/mgmt/storage/v2021_08_01/aio/operations/_file_shares_operations.py +98 -151
  503. azure/mgmt/storage/v2021_08_01/aio/operations/_local_users_operations.py +71 -104
  504. azure/mgmt/storage/v2021_08_01/aio/operations/_management_policies_operations.py +39 -57
  505. azure/mgmt/storage/v2021_08_01/aio/operations/_object_replication_policies_operations.py +54 -76
  506. azure/mgmt/storage/v2021_08_01/aio/operations/_operations.py +20 -22
  507. azure/mgmt/storage/v2021_08_01/aio/operations/_private_endpoint_connections_operations.py +53 -76
  508. azure/mgmt/storage/v2021_08_01/aio/operations/_private_link_resources_operations.py +15 -19
  509. azure/mgmt/storage/v2021_08_01/aio/operations/_queue_operations.py +68 -101
  510. azure/mgmt/storage/v2021_08_01/aio/operations/_queue_services_operations.py +40 -74
  511. azure/mgmt/storage/v2021_08_01/aio/operations/_skus_operations.py +20 -22
  512. azure/mgmt/storage/v2021_08_01/aio/operations/_storage_accounts_operations.py +230 -416
  513. azure/mgmt/storage/v2021_08_01/aio/operations/_table_operations.py +55 -79
  514. azure/mgmt/storage/v2021_08_01/aio/operations/_table_services_operations.py +40 -74
  515. azure/mgmt/storage/v2021_08_01/aio/operations/_usages_operations.py +20 -24
  516. azure/mgmt/storage/v2021_08_01/models/_models_py3.py +68 -90
  517. azure/mgmt/storage/v2021_08_01/models/_storage_management_client_enums.py +2 -2
  518. azure/mgmt/storage/v2021_08_01/operations/_blob_containers_operations.py +211 -345
  519. azure/mgmt/storage/v2021_08_01/operations/_blob_inventory_policies_operations.py +62 -85
  520. azure/mgmt/storage/v2021_08_01/operations/_blob_services_operations.py +52 -86
  521. azure/mgmt/storage/v2021_08_01/operations/_deleted_accounts_operations.py +34 -41
  522. azure/mgmt/storage/v2021_08_01/operations/_encryption_scopes_operations.py +67 -95
  523. azure/mgmt/storage/v2021_08_01/operations/_file_services_operations.py +48 -82
  524. azure/mgmt/storage/v2021_08_01/operations/_file_shares_operations.py +113 -166
  525. azure/mgmt/storage/v2021_08_01/operations/_local_users_operations.py +84 -117
  526. azure/mgmt/storage/v2021_08_01/operations/_management_policies_operations.py +46 -64
  527. azure/mgmt/storage/v2021_08_01/operations/_object_replication_policies_operations.py +63 -85
  528. azure/mgmt/storage/v2021_08_01/operations/_operations.py +21 -23
  529. azure/mgmt/storage/v2021_08_01/operations/_private_endpoint_connections_operations.py +62 -85
  530. azure/mgmt/storage/v2021_08_01/operations/_private_link_resources_operations.py +18 -22
  531. azure/mgmt/storage/v2021_08_01/operations/_queue_operations.py +79 -112
  532. azure/mgmt/storage/v2021_08_01/operations/_queue_services_operations.py +47 -81
  533. azure/mgmt/storage/v2021_08_01/operations/_skus_operations.py +23 -25
  534. azure/mgmt/storage/v2021_08_01/operations/_storage_accounts_operations.py +266 -452
  535. azure/mgmt/storage/v2021_08_01/operations/_table_operations.py +66 -90
  536. azure/mgmt/storage/v2021_08_01/operations/_table_services_operations.py +47 -81
  537. azure/mgmt/storage/v2021_08_01/operations/_usages_operations.py +23 -27
  538. azure/mgmt/storage/v2021_09_01/_configuration.py +4 -11
  539. azure/mgmt/storage/v2021_09_01/_patch.py +1 -0
  540. azure/mgmt/storage/v2021_09_01/_storage_management_client.py +59 -25
  541. azure/mgmt/storage/v2021_09_01/_vendor.py +0 -14
  542. azure/mgmt/storage/v2021_09_01/_version.py +1 -1
  543. azure/mgmt/storage/v2021_09_01/aio/_configuration.py +4 -11
  544. azure/mgmt/storage/v2021_09_01/aio/_patch.py +1 -0
  545. azure/mgmt/storage/v2021_09_01/aio/_storage_management_client.py +61 -25
  546. azure/mgmt/storage/v2021_09_01/aio/operations/_blob_containers_operations.py +181 -315
  547. azure/mgmt/storage/v2021_09_01/aio/operations/_blob_inventory_policies_operations.py +53 -76
  548. azure/mgmt/storage/v2021_09_01/aio/operations/_blob_services_operations.py +45 -79
  549. azure/mgmt/storage/v2021_09_01/aio/operations/_deleted_accounts_operations.py +29 -36
  550. azure/mgmt/storage/v2021_09_01/aio/operations/_encryption_scopes_operations.py +58 -86
  551. azure/mgmt/storage/v2021_09_01/aio/operations/_file_services_operations.py +41 -75
  552. azure/mgmt/storage/v2021_09_01/aio/operations/_file_shares_operations.py +98 -151
  553. azure/mgmt/storage/v2021_09_01/aio/operations/_local_users_operations.py +71 -104
  554. azure/mgmt/storage/v2021_09_01/aio/operations/_management_policies_operations.py +39 -57
  555. azure/mgmt/storage/v2021_09_01/aio/operations/_object_replication_policies_operations.py +54 -76
  556. azure/mgmt/storage/v2021_09_01/aio/operations/_operations.py +20 -22
  557. azure/mgmt/storage/v2021_09_01/aio/operations/_private_endpoint_connections_operations.py +53 -76
  558. azure/mgmt/storage/v2021_09_01/aio/operations/_private_link_resources_operations.py +15 -19
  559. azure/mgmt/storage/v2021_09_01/aio/operations/_queue_operations.py +68 -101
  560. azure/mgmt/storage/v2021_09_01/aio/operations/_queue_services_operations.py +40 -74
  561. azure/mgmt/storage/v2021_09_01/aio/operations/_skus_operations.py +20 -22
  562. azure/mgmt/storage/v2021_09_01/aio/operations/_storage_accounts_operations.py +230 -416
  563. azure/mgmt/storage/v2021_09_01/aio/operations/_table_operations.py +70 -103
  564. azure/mgmt/storage/v2021_09_01/aio/operations/_table_services_operations.py +40 -74
  565. azure/mgmt/storage/v2021_09_01/aio/operations/_usages_operations.py +20 -24
  566. azure/mgmt/storage/v2021_09_01/models/_models_py3.py +70 -92
  567. azure/mgmt/storage/v2021_09_01/models/_storage_management_client_enums.py +2 -2
  568. azure/mgmt/storage/v2021_09_01/operations/_blob_containers_operations.py +211 -345
  569. azure/mgmt/storage/v2021_09_01/operations/_blob_inventory_policies_operations.py +62 -85
  570. azure/mgmt/storage/v2021_09_01/operations/_blob_services_operations.py +52 -86
  571. azure/mgmt/storage/v2021_09_01/operations/_deleted_accounts_operations.py +34 -41
  572. azure/mgmt/storage/v2021_09_01/operations/_encryption_scopes_operations.py +67 -95
  573. azure/mgmt/storage/v2021_09_01/operations/_file_services_operations.py +48 -82
  574. azure/mgmt/storage/v2021_09_01/operations/_file_shares_operations.py +113 -166
  575. azure/mgmt/storage/v2021_09_01/operations/_local_users_operations.py +84 -117
  576. azure/mgmt/storage/v2021_09_01/operations/_management_policies_operations.py +46 -64
  577. azure/mgmt/storage/v2021_09_01/operations/_object_replication_policies_operations.py +63 -85
  578. azure/mgmt/storage/v2021_09_01/operations/_operations.py +21 -23
  579. azure/mgmt/storage/v2021_09_01/operations/_private_endpoint_connections_operations.py +62 -85
  580. azure/mgmt/storage/v2021_09_01/operations/_private_link_resources_operations.py +18 -22
  581. azure/mgmt/storage/v2021_09_01/operations/_queue_operations.py +79 -112
  582. azure/mgmt/storage/v2021_09_01/operations/_queue_services_operations.py +47 -81
  583. azure/mgmt/storage/v2021_09_01/operations/_skus_operations.py +23 -25
  584. azure/mgmt/storage/v2021_09_01/operations/_storage_accounts_operations.py +266 -452
  585. azure/mgmt/storage/v2021_09_01/operations/_table_operations.py +81 -114
  586. azure/mgmt/storage/v2021_09_01/operations/_table_services_operations.py +47 -81
  587. azure/mgmt/storage/v2021_09_01/operations/_usages_operations.py +23 -27
  588. azure/mgmt/storage/v2022_05_01/_configuration.py +4 -11
  589. azure/mgmt/storage/v2022_05_01/_storage_management_client.py +59 -25
  590. azure/mgmt/storage/v2022_05_01/_vendor.py +0 -14
  591. azure/mgmt/storage/v2022_05_01/_version.py +1 -1
  592. azure/mgmt/storage/v2022_05_01/aio/_configuration.py +4 -11
  593. azure/mgmt/storage/v2022_05_01/aio/_storage_management_client.py +61 -25
  594. azure/mgmt/storage/v2022_05_01/aio/operations/_blob_containers_operations.py +181 -315
  595. azure/mgmt/storage/v2022_05_01/aio/operations/_blob_inventory_policies_operations.py +53 -76
  596. azure/mgmt/storage/v2022_05_01/aio/operations/_blob_services_operations.py +45 -79
  597. azure/mgmt/storage/v2022_05_01/aio/operations/_deleted_accounts_operations.py +29 -36
  598. azure/mgmt/storage/v2022_05_01/aio/operations/_encryption_scopes_operations.py +58 -86
  599. azure/mgmt/storage/v2022_05_01/aio/operations/_file_services_operations.py +41 -75
  600. azure/mgmt/storage/v2022_05_01/aio/operations/_file_shares_operations.py +98 -151
  601. azure/mgmt/storage/v2022_05_01/aio/operations/_local_users_operations.py +71 -104
  602. azure/mgmt/storage/v2022_05_01/aio/operations/_management_policies_operations.py +39 -57
  603. azure/mgmt/storage/v2022_05_01/aio/operations/_object_replication_policies_operations.py +54 -76
  604. azure/mgmt/storage/v2022_05_01/aio/operations/_operations.py +20 -22
  605. azure/mgmt/storage/v2022_05_01/aio/operations/_private_endpoint_connections_operations.py +53 -76
  606. azure/mgmt/storage/v2022_05_01/aio/operations/_private_link_resources_operations.py +15 -19
  607. azure/mgmt/storage/v2022_05_01/aio/operations/_queue_operations.py +68 -101
  608. azure/mgmt/storage/v2022_05_01/aio/operations/_queue_services_operations.py +40 -74
  609. azure/mgmt/storage/v2022_05_01/aio/operations/_skus_operations.py +20 -22
  610. azure/mgmt/storage/v2022_05_01/aio/operations/_storage_accounts_operations.py +230 -416
  611. azure/mgmt/storage/v2022_05_01/aio/operations/_table_operations.py +70 -103
  612. azure/mgmt/storage/v2022_05_01/aio/operations/_table_services_operations.py +40 -74
  613. azure/mgmt/storage/v2022_05_01/aio/operations/_usages_operations.py +20 -24
  614. azure/mgmt/storage/v2022_05_01/models/_models_py3.py +69 -91
  615. azure/mgmt/storage/v2022_05_01/models/_storage_management_client_enums.py +2 -2
  616. azure/mgmt/storage/v2022_05_01/operations/_blob_containers_operations.py +211 -345
  617. azure/mgmt/storage/v2022_05_01/operations/_blob_inventory_policies_operations.py +62 -85
  618. azure/mgmt/storage/v2022_05_01/operations/_blob_services_operations.py +52 -86
  619. azure/mgmt/storage/v2022_05_01/operations/_deleted_accounts_operations.py +34 -41
  620. azure/mgmt/storage/v2022_05_01/operations/_encryption_scopes_operations.py +67 -95
  621. azure/mgmt/storage/v2022_05_01/operations/_file_services_operations.py +48 -82
  622. azure/mgmt/storage/v2022_05_01/operations/_file_shares_operations.py +113 -166
  623. azure/mgmt/storage/v2022_05_01/operations/_local_users_operations.py +84 -117
  624. azure/mgmt/storage/v2022_05_01/operations/_management_policies_operations.py +46 -64
  625. azure/mgmt/storage/v2022_05_01/operations/_object_replication_policies_operations.py +63 -85
  626. azure/mgmt/storage/v2022_05_01/operations/_operations.py +21 -23
  627. azure/mgmt/storage/v2022_05_01/operations/_private_endpoint_connections_operations.py +62 -85
  628. azure/mgmt/storage/v2022_05_01/operations/_private_link_resources_operations.py +18 -22
  629. azure/mgmt/storage/v2022_05_01/operations/_queue_operations.py +79 -112
  630. azure/mgmt/storage/v2022_05_01/operations/_queue_services_operations.py +47 -81
  631. azure/mgmt/storage/v2022_05_01/operations/_skus_operations.py +23 -25
  632. azure/mgmt/storage/v2022_05_01/operations/_storage_accounts_operations.py +266 -452
  633. azure/mgmt/storage/v2022_05_01/operations/_table_operations.py +81 -114
  634. azure/mgmt/storage/v2022_05_01/operations/_table_services_operations.py +47 -81
  635. azure/mgmt/storage/v2022_05_01/operations/_usages_operations.py +23 -27
  636. azure/mgmt/storage/v2022_09_01/_configuration.py +4 -11
  637. azure/mgmt/storage/v2022_09_01/_storage_management_client.py +59 -25
  638. azure/mgmt/storage/v2022_09_01/_vendor.py +0 -14
  639. azure/mgmt/storage/v2022_09_01/_version.py +1 -1
  640. azure/mgmt/storage/v2022_09_01/aio/_configuration.py +4 -11
  641. azure/mgmt/storage/v2022_09_01/aio/_storage_management_client.py +61 -25
  642. azure/mgmt/storage/v2022_09_01/aio/operations/_blob_containers_operations.py +181 -315
  643. azure/mgmt/storage/v2022_09_01/aio/operations/_blob_inventory_policies_operations.py +53 -76
  644. azure/mgmt/storage/v2022_09_01/aio/operations/_blob_services_operations.py +45 -79
  645. azure/mgmt/storage/v2022_09_01/aio/operations/_deleted_accounts_operations.py +29 -36
  646. azure/mgmt/storage/v2022_09_01/aio/operations/_encryption_scopes_operations.py +58 -86
  647. azure/mgmt/storage/v2022_09_01/aio/operations/_file_services_operations.py +41 -75
  648. azure/mgmt/storage/v2022_09_01/aio/operations/_file_shares_operations.py +98 -151
  649. azure/mgmt/storage/v2022_09_01/aio/operations/_local_users_operations.py +71 -104
  650. azure/mgmt/storage/v2022_09_01/aio/operations/_management_policies_operations.py +39 -57
  651. azure/mgmt/storage/v2022_09_01/aio/operations/_object_replication_policies_operations.py +54 -76
  652. azure/mgmt/storage/v2022_09_01/aio/operations/_operations.py +20 -22
  653. azure/mgmt/storage/v2022_09_01/aio/operations/_private_endpoint_connections_operations.py +53 -76
  654. azure/mgmt/storage/v2022_09_01/aio/operations/_private_link_resources_operations.py +15 -19
  655. azure/mgmt/storage/v2022_09_01/aio/operations/_queue_operations.py +68 -101
  656. azure/mgmt/storage/v2022_09_01/aio/operations/_queue_services_operations.py +40 -74
  657. azure/mgmt/storage/v2022_09_01/aio/operations/_skus_operations.py +20 -22
  658. azure/mgmt/storage/v2022_09_01/aio/operations/_storage_accounts_operations.py +230 -416
  659. azure/mgmt/storage/v2022_09_01/aio/operations/_table_operations.py +70 -103
  660. azure/mgmt/storage/v2022_09_01/aio/operations/_table_services_operations.py +40 -74
  661. azure/mgmt/storage/v2022_09_01/aio/operations/_usages_operations.py +20 -24
  662. azure/mgmt/storage/v2022_09_01/models/_models_py3.py +69 -91
  663. azure/mgmt/storage/v2022_09_01/models/_storage_management_client_enums.py +2 -2
  664. azure/mgmt/storage/v2022_09_01/operations/_blob_containers_operations.py +211 -345
  665. azure/mgmt/storage/v2022_09_01/operations/_blob_inventory_policies_operations.py +62 -85
  666. azure/mgmt/storage/v2022_09_01/operations/_blob_services_operations.py +52 -86
  667. azure/mgmt/storage/v2022_09_01/operations/_deleted_accounts_operations.py +34 -41
  668. azure/mgmt/storage/v2022_09_01/operations/_encryption_scopes_operations.py +67 -95
  669. azure/mgmt/storage/v2022_09_01/operations/_file_services_operations.py +48 -82
  670. azure/mgmt/storage/v2022_09_01/operations/_file_shares_operations.py +113 -166
  671. azure/mgmt/storage/v2022_09_01/operations/_local_users_operations.py +84 -117
  672. azure/mgmt/storage/v2022_09_01/operations/_management_policies_operations.py +46 -64
  673. azure/mgmt/storage/v2022_09_01/operations/_object_replication_policies_operations.py +63 -85
  674. azure/mgmt/storage/v2022_09_01/operations/_operations.py +21 -23
  675. azure/mgmt/storage/v2022_09_01/operations/_private_endpoint_connections_operations.py +62 -85
  676. azure/mgmt/storage/v2022_09_01/operations/_private_link_resources_operations.py +18 -22
  677. azure/mgmt/storage/v2022_09_01/operations/_queue_operations.py +79 -112
  678. azure/mgmt/storage/v2022_09_01/operations/_queue_services_operations.py +47 -81
  679. azure/mgmt/storage/v2022_09_01/operations/_skus_operations.py +23 -25
  680. azure/mgmt/storage/v2022_09_01/operations/_storage_accounts_operations.py +266 -452
  681. azure/mgmt/storage/v2022_09_01/operations/_table_operations.py +81 -114
  682. azure/mgmt/storage/v2022_09_01/operations/_table_services_operations.py +47 -81
  683. azure/mgmt/storage/v2022_09_01/operations/_usages_operations.py +23 -27
  684. azure/mgmt/storage/v2023_01_01/__init__.py +26 -0
  685. azure/mgmt/storage/v2023_01_01/_configuration.py +65 -0
  686. azure/mgmt/storage/v2023_01_01/_patch.py +20 -0
  687. azure/mgmt/storage/v2023_01_01/_storage_management_client.py +225 -0
  688. azure/mgmt/storage/v2023_01_01/_vendor.py +16 -0
  689. azure/mgmt/storage/v2023_01_01/_version.py +9 -0
  690. azure/mgmt/storage/v2023_01_01/aio/__init__.py +23 -0
  691. azure/mgmt/storage/v2023_01_01/aio/_configuration.py +65 -0
  692. azure/mgmt/storage/v2023_01_01/aio/_patch.py +20 -0
  693. azure/mgmt/storage/v2023_01_01/aio/_storage_management_client.py +230 -0
  694. azure/mgmt/storage/v2023_01_01/aio/operations/__init__.py +57 -0
  695. azure/mgmt/storage/v2023_01_01/aio/operations/_blob_containers_operations.py +1838 -0
  696. azure/mgmt/storage/v2023_01_01/aio/operations/_blob_inventory_policies_operations.py +442 -0
  697. azure/mgmt/storage/v2023_01_01/aio/operations/_blob_services_operations.py +362 -0
  698. azure/mgmt/storage/v2023_01_01/aio/operations/_deleted_accounts_operations.py +194 -0
  699. azure/mgmt/storage/v2023_01_01/aio/operations/_encryption_scopes_operations.py +568 -0
  700. azure/mgmt/storage/v2023_01_01/aio/operations/_file_services_operations.py +328 -0
  701. azure/mgmt/storage/v2023_01_01/aio/operations/_file_shares_operations.py +1003 -0
  702. azure/mgmt/storage/v2023_01_01/aio/operations/_local_users_operations.py +560 -0
  703. azure/mgmt/storage/v2023_01_01/aio/operations/_management_policies_operations.py +349 -0
  704. azure/mgmt/storage/v2023_01_01/aio/operations/_object_replication_policies_operations.py +446 -0
  705. azure/mgmt/storage/v2023_01_01/aio/operations/_operations.py +135 -0
  706. azure/mgmt/storage/v2023_01_01/aio/operations/_patch.py +20 -0
  707. azure/mgmt/storage/v2023_01_01/aio/operations/_private_endpoint_connections_operations.py +432 -0
  708. azure/mgmt/storage/v2023_01_01/aio/operations/_private_link_resources_operations.py +117 -0
  709. azure/mgmt/storage/v2023_01_01/aio/operations/_queue_operations.py +608 -0
  710. azure/mgmt/storage/v2023_01_01/aio/operations/_queue_services_operations.py +328 -0
  711. azure/mgmt/storage/v2023_01_01/aio/operations/_skus_operations.py +136 -0
  712. azure/mgmt/storage/v2023_01_01/aio/operations/_storage_accounts_operations.py +2187 -0
  713. azure/mgmt/storage/v2023_01_01/aio/operations/_table_operations.py +588 -0
  714. azure/mgmt/storage/v2023_01_01/aio/operations/_table_services_operations.py +328 -0
  715. azure/mgmt/storage/v2023_01_01/aio/operations/_usages_operations.py +139 -0
  716. azure/mgmt/storage/v2023_01_01/models/__init__.py +461 -0
  717. azure/mgmt/storage/v2023_01_01/models/_models_py3.py +8338 -0
  718. azure/mgmt/storage/v2023_01_01/models/_patch.py +20 -0
  719. azure/mgmt/storage/v2023_01_01/models/_storage_management_client_enums.py +626 -0
  720. azure/mgmt/storage/v2023_01_01/operations/__init__.py +57 -0
  721. azure/mgmt/storage/v2023_01_01/operations/_blob_containers_operations.py +2398 -0
  722. azure/mgmt/storage/v2023_01_01/operations/_blob_inventory_policies_operations.py +595 -0
  723. azure/mgmt/storage/v2023_01_01/operations/_blob_services_operations.py +470 -0
  724. azure/mgmt/storage/v2023_01_01/operations/_deleted_accounts_operations.py +250 -0
  725. azure/mgmt/storage/v2023_01_01/operations/_encryption_scopes_operations.py +732 -0
  726. azure/mgmt/storage/v2023_01_01/operations/_file_services_operations.py +437 -0
  727. azure/mgmt/storage/v2023_01_01/operations/_file_shares_operations.py +1310 -0
  728. azure/mgmt/storage/v2023_01_01/operations/_local_users_operations.py +770 -0
  729. azure/mgmt/storage/v2023_01_01/operations/_management_policies_operations.py +465 -0
  730. azure/mgmt/storage/v2023_01_01/operations/_object_replication_policies_operations.py +593 -0
  731. azure/mgmt/storage/v2023_01_01/operations/_operations.py +156 -0
  732. azure/mgmt/storage/v2023_01_01/operations/_patch.py +20 -0
  733. azure/mgmt/storage/v2023_01_01/operations/_private_endpoint_connections_operations.py +591 -0
  734. azure/mgmt/storage/v2023_01_01/operations/_private_link_resources_operations.py +155 -0
  735. azure/mgmt/storage/v2023_01_01/operations/_queue_operations.py +824 -0
  736. azure/mgmt/storage/v2023_01_01/operations/_queue_services_operations.py +437 -0
  737. azure/mgmt/storage/v2023_01_01/operations/_skus_operations.py +162 -0
  738. azure/mgmt/storage/v2023_01_01/operations/_storage_accounts_operations.py +2796 -0
  739. azure/mgmt/storage/v2023_01_01/operations/_table_operations.py +775 -0
  740. azure/mgmt/storage/v2023_01_01/operations/_table_services_operations.py +437 -0
  741. azure/mgmt/storage/v2023_01_01/operations/_usages_operations.py +169 -0
  742. azure/mgmt/storage/v2023_05_01/__init__.py +26 -0
  743. azure/mgmt/storage/v2023_05_01/_configuration.py +65 -0
  744. azure/mgmt/storage/v2023_05_01/_patch.py +20 -0
  745. azure/mgmt/storage/v2023_05_01/_storage_management_client.py +256 -0
  746. azure/mgmt/storage/v2023_05_01/_vendor.py +16 -0
  747. azure/mgmt/storage/v2023_05_01/_version.py +9 -0
  748. azure/mgmt/storage/v2023_05_01/aio/__init__.py +23 -0
  749. azure/mgmt/storage/v2023_05_01/aio/_configuration.py +65 -0
  750. azure/mgmt/storage/v2023_05_01/aio/_patch.py +20 -0
  751. azure/mgmt/storage/v2023_05_01/aio/_storage_management_client.py +261 -0
  752. azure/mgmt/storage/v2023_05_01/aio/operations/__init__.py +65 -0
  753. azure/mgmt/storage/v2023_05_01/aio/operations/_blob_containers_operations.py +1838 -0
  754. azure/mgmt/storage/v2023_05_01/aio/operations/_blob_inventory_policies_operations.py +442 -0
  755. azure/mgmt/storage/v2023_05_01/aio/operations/_blob_services_operations.py +362 -0
  756. azure/mgmt/storage/v2023_05_01/aio/operations/_deleted_accounts_operations.py +194 -0
  757. azure/mgmt/storage/v2023_05_01/aio/operations/_encryption_scopes_operations.py +568 -0
  758. azure/mgmt/storage/v2023_05_01/aio/operations/_file_services_operations.py +328 -0
  759. azure/mgmt/storage/v2023_05_01/aio/operations/_file_shares_operations.py +1003 -0
  760. azure/mgmt/storage/v2023_05_01/aio/operations/_local_users_operations.py +583 -0
  761. azure/mgmt/storage/v2023_05_01/aio/operations/_management_policies_operations.py +349 -0
  762. azure/mgmt/storage/v2023_05_01/aio/operations/_network_security_perimeter_configurations_operations.py +342 -0
  763. azure/mgmt/storage/v2023_05_01/aio/operations/_object_replication_policies_operations.py +446 -0
  764. azure/mgmt/storage/v2023_05_01/aio/operations/_operations.py +135 -0
  765. azure/mgmt/storage/v2023_05_01/aio/operations/_patch.py +20 -0
  766. azure/mgmt/storage/v2023_05_01/aio/operations/_private_endpoint_connections_operations.py +432 -0
  767. azure/mgmt/storage/v2023_05_01/aio/operations/_private_link_resources_operations.py +117 -0
  768. azure/mgmt/storage/v2023_05_01/aio/operations/_queue_operations.py +608 -0
  769. azure/mgmt/storage/v2023_05_01/aio/operations/_queue_services_operations.py +328 -0
  770. azure/mgmt/storage/v2023_05_01/aio/operations/_skus_operations.py +136 -0
  771. azure/mgmt/storage/v2023_05_01/aio/operations/_storage_accounts_operations.py +2187 -0
  772. azure/mgmt/storage/v2023_05_01/aio/operations/_storage_task_assignment_instances_report_operations.py +170 -0
  773. azure/mgmt/storage/v2023_05_01/aio/operations/_storage_task_assignments_instances_report_operations.py +164 -0
  774. azure/mgmt/storage/v2023_05_01/aio/operations/_storage_task_assignments_operations.py +802 -0
  775. azure/mgmt/storage/v2023_05_01/aio/operations/_table_operations.py +588 -0
  776. azure/mgmt/storage/v2023_05_01/aio/operations/_table_services_operations.py +328 -0
  777. azure/mgmt/storage/v2023_05_01/aio/operations/_usages_operations.py +139 -0
  778. azure/mgmt/storage/v2023_05_01/models/__init__.py +537 -0
  779. azure/mgmt/storage/v2023_05_01/models/_models_py3.py +9703 -0
  780. azure/mgmt/storage/v2023_05_01/models/_patch.py +20 -0
  781. azure/mgmt/storage/v2023_05_01/models/_storage_management_client_enums.py +706 -0
  782. azure/mgmt/storage/v2023_05_01/operations/__init__.py +65 -0
  783. azure/mgmt/storage/v2023_05_01/operations/_blob_containers_operations.py +2398 -0
  784. azure/mgmt/storage/v2023_05_01/operations/_blob_inventory_policies_operations.py +595 -0
  785. azure/mgmt/storage/v2023_05_01/operations/_blob_services_operations.py +470 -0
  786. azure/mgmt/storage/v2023_05_01/operations/_deleted_accounts_operations.py +250 -0
  787. azure/mgmt/storage/v2023_05_01/operations/_encryption_scopes_operations.py +732 -0
  788. azure/mgmt/storage/v2023_05_01/operations/_file_services_operations.py +437 -0
  789. azure/mgmt/storage/v2023_05_01/operations/_file_shares_operations.py +1310 -0
  790. azure/mgmt/storage/v2023_05_01/operations/_local_users_operations.py +808 -0
  791. azure/mgmt/storage/v2023_05_01/operations/_management_policies_operations.py +465 -0
  792. azure/mgmt/storage/v2023_05_01/operations/_network_security_perimeter_configurations_operations.py +463 -0
  793. azure/mgmt/storage/v2023_05_01/operations/_object_replication_policies_operations.py +593 -0
  794. azure/mgmt/storage/v2023_05_01/operations/_operations.py +156 -0
  795. azure/mgmt/storage/v2023_05_01/operations/_patch.py +20 -0
  796. azure/mgmt/storage/v2023_05_01/operations/_private_endpoint_connections_operations.py +591 -0
  797. azure/mgmt/storage/v2023_05_01/operations/_private_link_resources_operations.py +155 -0
  798. azure/mgmt/storage/v2023_05_01/operations/_queue_operations.py +824 -0
  799. azure/mgmt/storage/v2023_05_01/operations/_queue_services_operations.py +437 -0
  800. azure/mgmt/storage/v2023_05_01/operations/_skus_operations.py +162 -0
  801. azure/mgmt/storage/v2023_05_01/operations/_storage_accounts_operations.py +2796 -0
  802. azure/mgmt/storage/v2023_05_01/operations/_storage_task_assignment_instances_report_operations.py +227 -0
  803. azure/mgmt/storage/v2023_05_01/operations/_storage_task_assignments_instances_report_operations.py +212 -0
  804. azure/mgmt/storage/v2023_05_01/operations/_storage_task_assignments_operations.py +1018 -0
  805. azure/mgmt/storage/v2023_05_01/operations/_table_operations.py +775 -0
  806. azure/mgmt/storage/v2023_05_01/operations/_table_services_operations.py +437 -0
  807. azure/mgmt/storage/v2023_05_01/operations/_usages_operations.py +169 -0
  808. {azure_mgmt_storage-21.1.0b1.dist-info → azure_mgmt_storage-21.2.0.dist-info}/METADATA +44 -13
  809. azure_mgmt_storage-21.2.0.dist-info/RECORD +979 -0
  810. {azure_mgmt_storage-21.1.0b1.dist-info → azure_mgmt_storage-21.2.0.dist-info}/WHEEL +1 -1
  811. azure_mgmt_storage-21.1.0b1.dist-info/RECORD +0 -855
  812. {azure_mgmt_storage-21.1.0b1.dist-info → azure_mgmt_storage-21.2.0.dist-info}/LICENSE +0 -0
  813. {azure_mgmt_storage-21.1.0b1.dist-info → azure_mgmt_storage-21.2.0.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,2187 @@
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, AsyncIterable, Callable, Dict, IO, Literal, Optional, Type, TypeVar, Union, cast, overload
12
+ import urllib.parse
13
+
14
+ from azure.core.async_paging import AsyncItemPaged, AsyncList
15
+ from azure.core.exceptions import (
16
+ ClientAuthenticationError,
17
+ HttpResponseError,
18
+ ResourceExistsError,
19
+ ResourceNotFoundError,
20
+ ResourceNotModifiedError,
21
+ map_error,
22
+ )
23
+ from azure.core.pipeline import PipelineResponse
24
+ from azure.core.pipeline.transport import AsyncHttpResponse
25
+ from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod
26
+ from azure.core.rest import HttpRequest
27
+ from azure.core.tracing.decorator import distributed_trace
28
+ from azure.core.tracing.decorator_async import distributed_trace_async
29
+ from azure.core.utils import case_insensitive_dict
30
+ from azure.mgmt.core.exceptions import ARMErrorFormat
31
+ from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling
32
+
33
+ from ... import models as _models
34
+ from ..._vendor import _convert_request
35
+ from ...operations._storage_accounts_operations import (
36
+ build_abort_hierarchical_namespace_migration_request,
37
+ build_check_name_availability_request,
38
+ build_create_request,
39
+ build_customer_initiated_migration_request,
40
+ build_delete_request,
41
+ build_failover_request,
42
+ build_get_customer_initiated_migration_request,
43
+ build_get_properties_request,
44
+ build_hierarchical_namespace_migration_request,
45
+ build_list_account_sas_request,
46
+ build_list_by_resource_group_request,
47
+ build_list_keys_request,
48
+ build_list_request,
49
+ build_list_service_sas_request,
50
+ build_regenerate_key_request,
51
+ build_restore_blob_ranges_request,
52
+ build_revoke_user_delegation_keys_request,
53
+ build_update_request,
54
+ )
55
+
56
+ if sys.version_info >= (3, 9):
57
+ from collections.abc import MutableMapping
58
+ else:
59
+ from typing import MutableMapping # type: ignore # pylint: disable=ungrouped-imports
60
+ T = TypeVar("T")
61
+ ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]]
62
+
63
+
64
+ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
65
+ """
66
+ .. warning::
67
+ **DO NOT** instantiate this class directly.
68
+
69
+ Instead, you should access the following operations through
70
+ :class:`~azure.mgmt.storage.v2023_05_01.aio.StorageManagementClient`'s
71
+ :attr:`storage_accounts` attribute.
72
+ """
73
+
74
+ models = _models
75
+
76
+ def __init__(self, *args, **kwargs) -> None:
77
+ input_args = list(args)
78
+ self._client = input_args.pop(0) if input_args else kwargs.pop("client")
79
+ self._config = input_args.pop(0) if input_args else kwargs.pop("config")
80
+ self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer")
81
+ self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer")
82
+ self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version")
83
+
84
+ @overload
85
+ async def check_name_availability(
86
+ self,
87
+ account_name: _models.StorageAccountCheckNameAvailabilityParameters,
88
+ *,
89
+ content_type: str = "application/json",
90
+ **kwargs: Any
91
+ ) -> _models.CheckNameAvailabilityResult:
92
+ """Checks that the storage account name is valid and is not already in use.
93
+
94
+ :param account_name: The name of the storage account within the specified resource group.
95
+ Storage account names must be between 3 and 24 characters in length and use numbers and
96
+ lower-case letters only. Required.
97
+ :type account_name:
98
+ ~azure.mgmt.storage.v2023_05_01.models.StorageAccountCheckNameAvailabilityParameters
99
+ :keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
100
+ Default value is "application/json".
101
+ :paramtype content_type: str
102
+ :return: CheckNameAvailabilityResult or the result of cls(response)
103
+ :rtype: ~azure.mgmt.storage.v2023_05_01.models.CheckNameAvailabilityResult
104
+ :raises ~azure.core.exceptions.HttpResponseError:
105
+ """
106
+
107
+ @overload
108
+ async def check_name_availability(
109
+ self, account_name: IO[bytes], *, content_type: str = "application/json", **kwargs: Any
110
+ ) -> _models.CheckNameAvailabilityResult:
111
+ """Checks that the storage account name is valid and is not already in use.
112
+
113
+ :param account_name: The name of the storage account within the specified resource group.
114
+ Storage account names must be between 3 and 24 characters in length and use numbers and
115
+ lower-case letters only. Required.
116
+ :type account_name: IO[bytes]
117
+ :keyword content_type: Body Parameter content-type. Content type parameter for binary body.
118
+ Default value is "application/json".
119
+ :paramtype content_type: str
120
+ :return: CheckNameAvailabilityResult or the result of cls(response)
121
+ :rtype: ~azure.mgmt.storage.v2023_05_01.models.CheckNameAvailabilityResult
122
+ :raises ~azure.core.exceptions.HttpResponseError:
123
+ """
124
+
125
+ @distributed_trace_async
126
+ async def check_name_availability(
127
+ self, account_name: Union[_models.StorageAccountCheckNameAvailabilityParameters, IO[bytes]], **kwargs: Any
128
+ ) -> _models.CheckNameAvailabilityResult:
129
+ """Checks that the storage account name is valid and is not already in use.
130
+
131
+ :param account_name: The name of the storage account within the specified resource group.
132
+ Storage account names must be between 3 and 24 characters in length and use numbers and
133
+ lower-case letters only. Is either a StorageAccountCheckNameAvailabilityParameters type or a
134
+ IO[bytes] type. Required.
135
+ :type account_name:
136
+ ~azure.mgmt.storage.v2023_05_01.models.StorageAccountCheckNameAvailabilityParameters or
137
+ IO[bytes]
138
+ :return: CheckNameAvailabilityResult or the result of cls(response)
139
+ :rtype: ~azure.mgmt.storage.v2023_05_01.models.CheckNameAvailabilityResult
140
+ :raises ~azure.core.exceptions.HttpResponseError:
141
+ """
142
+ error_map: MutableMapping[int, Type[HttpResponseError]] = {
143
+ 401: ClientAuthenticationError,
144
+ 404: ResourceNotFoundError,
145
+ 409: ResourceExistsError,
146
+ 304: ResourceNotModifiedError,
147
+ }
148
+ error_map.update(kwargs.pop("error_map", {}) or {})
149
+
150
+ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
151
+ _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
152
+
153
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-05-01"))
154
+ content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
155
+ cls: ClsType[_models.CheckNameAvailabilityResult] = kwargs.pop("cls", None)
156
+
157
+ content_type = content_type or "application/json"
158
+ _json = None
159
+ _content = None
160
+ if isinstance(account_name, (IOBase, bytes)):
161
+ _content = account_name
162
+ else:
163
+ _json = self._serialize.body(account_name, "StorageAccountCheckNameAvailabilityParameters")
164
+
165
+ _request = build_check_name_availability_request(
166
+ subscription_id=self._config.subscription_id,
167
+ api_version=api_version,
168
+ content_type=content_type,
169
+ json=_json,
170
+ content=_content,
171
+ headers=_headers,
172
+ params=_params,
173
+ )
174
+ _request = _convert_request(_request)
175
+ _request.url = self._client.format_url(_request.url)
176
+
177
+ _stream = False
178
+ pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access
179
+ _request, stream=_stream, **kwargs
180
+ )
181
+
182
+ response = pipeline_response.http_response
183
+
184
+ if response.status_code not in [200]:
185
+ map_error(status_code=response.status_code, response=response, error_map=error_map)
186
+ raise HttpResponseError(response=response, error_format=ARMErrorFormat)
187
+
188
+ deserialized = self._deserialize("CheckNameAvailabilityResult", pipeline_response)
189
+
190
+ if cls:
191
+ return cls(pipeline_response, deserialized, {}) # type: ignore
192
+
193
+ return deserialized # type: ignore
194
+
195
+ async def _create_initial(
196
+ self,
197
+ resource_group_name: str,
198
+ account_name: str,
199
+ parameters: Union[_models.StorageAccountCreateParameters, IO[bytes]],
200
+ **kwargs: Any
201
+ ) -> Optional[_models.StorageAccount]:
202
+ error_map: MutableMapping[int, Type[HttpResponseError]] = {
203
+ 401: ClientAuthenticationError,
204
+ 404: ResourceNotFoundError,
205
+ 409: ResourceExistsError,
206
+ 304: ResourceNotModifiedError,
207
+ }
208
+ error_map.update(kwargs.pop("error_map", {}) or {})
209
+
210
+ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
211
+ _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
212
+
213
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-05-01"))
214
+ content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
215
+ cls: ClsType[Optional[_models.StorageAccount]] = kwargs.pop("cls", None)
216
+
217
+ content_type = content_type or "application/json"
218
+ _json = None
219
+ _content = None
220
+ if isinstance(parameters, (IOBase, bytes)):
221
+ _content = parameters
222
+ else:
223
+ _json = self._serialize.body(parameters, "StorageAccountCreateParameters")
224
+
225
+ _request = build_create_request(
226
+ resource_group_name=resource_group_name,
227
+ account_name=account_name,
228
+ subscription_id=self._config.subscription_id,
229
+ api_version=api_version,
230
+ content_type=content_type,
231
+ json=_json,
232
+ content=_content,
233
+ headers=_headers,
234
+ params=_params,
235
+ )
236
+ _request = _convert_request(_request)
237
+ _request.url = self._client.format_url(_request.url)
238
+
239
+ _stream = False
240
+ pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access
241
+ _request, stream=_stream, **kwargs
242
+ )
243
+
244
+ response = pipeline_response.http_response
245
+
246
+ if response.status_code not in [200, 202]:
247
+ map_error(status_code=response.status_code, response=response, error_map=error_map)
248
+ raise HttpResponseError(response=response, error_format=ARMErrorFormat)
249
+
250
+ deserialized = None
251
+ if response.status_code == 200:
252
+ deserialized = self._deserialize("StorageAccount", pipeline_response)
253
+
254
+ if cls:
255
+ return cls(pipeline_response, deserialized, {}) # type: ignore
256
+
257
+ return deserialized # type: ignore
258
+
259
+ @overload
260
+ async def begin_create(
261
+ self,
262
+ resource_group_name: str,
263
+ account_name: str,
264
+ parameters: _models.StorageAccountCreateParameters,
265
+ *,
266
+ content_type: str = "application/json",
267
+ **kwargs: Any
268
+ ) -> AsyncLROPoller[_models.StorageAccount]:
269
+ """Asynchronously creates a new storage account with the specified parameters. If an account is
270
+ already created and a subsequent create request is issued with different properties, the
271
+ account properties will be updated. If an account is already created and a subsequent create or
272
+ update request is issued with the exact same set of properties, the request will succeed.
273
+
274
+ :param resource_group_name: The name of the resource group within the user's subscription. The
275
+ name is case insensitive. Required.
276
+ :type resource_group_name: str
277
+ :param account_name: The name of the storage account within the specified resource group.
278
+ Storage account names must be between 3 and 24 characters in length and use numbers and
279
+ lower-case letters only. Required.
280
+ :type account_name: str
281
+ :param parameters: The parameters to provide for the created account. Required.
282
+ :type parameters: ~azure.mgmt.storage.v2023_05_01.models.StorageAccountCreateParameters
283
+ :keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
284
+ Default value is "application/json".
285
+ :paramtype content_type: str
286
+ :return: An instance of AsyncLROPoller that returns either StorageAccount or the result of
287
+ cls(response)
288
+ :rtype:
289
+ ~azure.core.polling.AsyncLROPoller[~azure.mgmt.storage.v2023_05_01.models.StorageAccount]
290
+ :raises ~azure.core.exceptions.HttpResponseError:
291
+ """
292
+
293
+ @overload
294
+ async def begin_create(
295
+ self,
296
+ resource_group_name: str,
297
+ account_name: str,
298
+ parameters: IO[bytes],
299
+ *,
300
+ content_type: str = "application/json",
301
+ **kwargs: Any
302
+ ) -> AsyncLROPoller[_models.StorageAccount]:
303
+ """Asynchronously creates a new storage account with the specified parameters. If an account is
304
+ already created and a subsequent create request is issued with different properties, the
305
+ account properties will be updated. If an account is already created and a subsequent create or
306
+ update request is issued with the exact same set of properties, the request will succeed.
307
+
308
+ :param resource_group_name: The name of the resource group within the user's subscription. The
309
+ name is case insensitive. Required.
310
+ :type resource_group_name: str
311
+ :param account_name: The name of the storage account within the specified resource group.
312
+ Storage account names must be between 3 and 24 characters in length and use numbers and
313
+ lower-case letters only. Required.
314
+ :type account_name: str
315
+ :param parameters: The parameters to provide for the created account. Required.
316
+ :type parameters: IO[bytes]
317
+ :keyword content_type: Body Parameter content-type. Content type parameter for binary body.
318
+ Default value is "application/json".
319
+ :paramtype content_type: str
320
+ :return: An instance of AsyncLROPoller that returns either StorageAccount or the result of
321
+ cls(response)
322
+ :rtype:
323
+ ~azure.core.polling.AsyncLROPoller[~azure.mgmt.storage.v2023_05_01.models.StorageAccount]
324
+ :raises ~azure.core.exceptions.HttpResponseError:
325
+ """
326
+
327
+ @distributed_trace_async
328
+ async def begin_create(
329
+ self,
330
+ resource_group_name: str,
331
+ account_name: str,
332
+ parameters: Union[_models.StorageAccountCreateParameters, IO[bytes]],
333
+ **kwargs: Any
334
+ ) -> AsyncLROPoller[_models.StorageAccount]:
335
+ """Asynchronously creates a new storage account with the specified parameters. If an account is
336
+ already created and a subsequent create request is issued with different properties, the
337
+ account properties will be updated. If an account is already created and a subsequent create or
338
+ update request is issued with the exact same set of properties, the request will succeed.
339
+
340
+ :param resource_group_name: The name of the resource group within the user's subscription. The
341
+ name is case insensitive. Required.
342
+ :type resource_group_name: str
343
+ :param account_name: The name of the storage account within the specified resource group.
344
+ Storage account names must be between 3 and 24 characters in length and use numbers and
345
+ lower-case letters only. Required.
346
+ :type account_name: str
347
+ :param parameters: The parameters to provide for the created account. Is either a
348
+ StorageAccountCreateParameters type or a IO[bytes] type. Required.
349
+ :type parameters: ~azure.mgmt.storage.v2023_05_01.models.StorageAccountCreateParameters or
350
+ IO[bytes]
351
+ :return: An instance of AsyncLROPoller that returns either StorageAccount or the result of
352
+ cls(response)
353
+ :rtype:
354
+ ~azure.core.polling.AsyncLROPoller[~azure.mgmt.storage.v2023_05_01.models.StorageAccount]
355
+ :raises ~azure.core.exceptions.HttpResponseError:
356
+ """
357
+ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
358
+ _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
359
+
360
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-05-01"))
361
+ content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
362
+ cls: ClsType[_models.StorageAccount] = kwargs.pop("cls", None)
363
+ polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True)
364
+ lro_delay = kwargs.pop("polling_interval", self._config.polling_interval)
365
+ cont_token: Optional[str] = kwargs.pop("continuation_token", None)
366
+ if cont_token is None:
367
+ raw_result = await self._create_initial(
368
+ resource_group_name=resource_group_name,
369
+ account_name=account_name,
370
+ parameters=parameters,
371
+ api_version=api_version,
372
+ content_type=content_type,
373
+ cls=lambda x, y, z: x,
374
+ headers=_headers,
375
+ params=_params,
376
+ **kwargs
377
+ )
378
+ kwargs.pop("error_map", None)
379
+
380
+ def get_long_running_output(pipeline_response):
381
+ deserialized = self._deserialize("StorageAccount", pipeline_response)
382
+ if cls:
383
+ return cls(pipeline_response, deserialized, {}) # type: ignore
384
+ return deserialized
385
+
386
+ if polling is True:
387
+ polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs))
388
+ elif polling is False:
389
+ polling_method = cast(AsyncPollingMethod, AsyncNoPolling())
390
+ else:
391
+ polling_method = polling
392
+ if cont_token:
393
+ return AsyncLROPoller[_models.StorageAccount].from_continuation_token(
394
+ polling_method=polling_method,
395
+ continuation_token=cont_token,
396
+ client=self._client,
397
+ deserialization_callback=get_long_running_output,
398
+ )
399
+ return AsyncLROPoller[_models.StorageAccount](
400
+ self._client, raw_result, get_long_running_output, polling_method # type: ignore
401
+ )
402
+
403
+ @distributed_trace_async
404
+ async def delete( # pylint: disable=inconsistent-return-statements
405
+ self, resource_group_name: str, account_name: str, **kwargs: Any
406
+ ) -> None:
407
+ """Deletes a storage account in Microsoft Azure.
408
+
409
+ :param resource_group_name: The name of the resource group within the user's subscription. The
410
+ name is case insensitive. Required.
411
+ :type resource_group_name: str
412
+ :param account_name: The name of the storage account within the specified resource group.
413
+ Storage account names must be between 3 and 24 characters in length and use numbers and
414
+ lower-case letters only. Required.
415
+ :type account_name: str
416
+ :return: None or the result of cls(response)
417
+ :rtype: None
418
+ :raises ~azure.core.exceptions.HttpResponseError:
419
+ """
420
+ error_map: MutableMapping[int, Type[HttpResponseError]] = {
421
+ 401: ClientAuthenticationError,
422
+ 404: ResourceNotFoundError,
423
+ 409: ResourceExistsError,
424
+ 304: ResourceNotModifiedError,
425
+ }
426
+ error_map.update(kwargs.pop("error_map", {}) or {})
427
+
428
+ _headers = kwargs.pop("headers", {}) or {}
429
+ _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
430
+
431
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-05-01"))
432
+ cls: ClsType[None] = kwargs.pop("cls", None)
433
+
434
+ _request = build_delete_request(
435
+ resource_group_name=resource_group_name,
436
+ account_name=account_name,
437
+ subscription_id=self._config.subscription_id,
438
+ api_version=api_version,
439
+ headers=_headers,
440
+ params=_params,
441
+ )
442
+ _request = _convert_request(_request)
443
+ _request.url = self._client.format_url(_request.url)
444
+
445
+ _stream = False
446
+ pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access
447
+ _request, stream=_stream, **kwargs
448
+ )
449
+
450
+ response = pipeline_response.http_response
451
+
452
+ if response.status_code not in [200, 204]:
453
+ map_error(status_code=response.status_code, response=response, error_map=error_map)
454
+ raise HttpResponseError(response=response, error_format=ARMErrorFormat)
455
+
456
+ if cls:
457
+ return cls(pipeline_response, None, {}) # type: ignore
458
+
459
+ @distributed_trace_async
460
+ async def get_properties(
461
+ self,
462
+ resource_group_name: str,
463
+ account_name: str,
464
+ expand: Optional[Union[str, _models.StorageAccountExpand]] = None,
465
+ **kwargs: Any
466
+ ) -> _models.StorageAccount:
467
+ """Returns the properties for the specified storage account including but not limited to name, SKU
468
+ name, location, and account status. The ListKeys operation should be used to retrieve storage
469
+ keys.
470
+
471
+ :param resource_group_name: The name of the resource group within the user's subscription. The
472
+ name is case insensitive. Required.
473
+ :type resource_group_name: str
474
+ :param account_name: The name of the storage account within the specified resource group.
475
+ Storage account names must be between 3 and 24 characters in length and use numbers and
476
+ lower-case letters only. Required.
477
+ :type account_name: str
478
+ :param expand: May be used to expand the properties within account's properties. By default,
479
+ data is not included when fetching properties. Currently we only support geoReplicationStats
480
+ and blobRestoreStatus. Known values are: "geoReplicationStats" and "blobRestoreStatus". Default
481
+ value is None.
482
+ :type expand: str or ~azure.mgmt.storage.v2023_05_01.models.StorageAccountExpand
483
+ :return: StorageAccount or the result of cls(response)
484
+ :rtype: ~azure.mgmt.storage.v2023_05_01.models.StorageAccount
485
+ :raises ~azure.core.exceptions.HttpResponseError:
486
+ """
487
+ error_map: MutableMapping[int, Type[HttpResponseError]] = {
488
+ 401: ClientAuthenticationError,
489
+ 404: ResourceNotFoundError,
490
+ 409: ResourceExistsError,
491
+ 304: ResourceNotModifiedError,
492
+ }
493
+ error_map.update(kwargs.pop("error_map", {}) or {})
494
+
495
+ _headers = kwargs.pop("headers", {}) or {}
496
+ _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
497
+
498
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-05-01"))
499
+ cls: ClsType[_models.StorageAccount] = kwargs.pop("cls", None)
500
+
501
+ _request = build_get_properties_request(
502
+ resource_group_name=resource_group_name,
503
+ account_name=account_name,
504
+ subscription_id=self._config.subscription_id,
505
+ expand=expand,
506
+ api_version=api_version,
507
+ headers=_headers,
508
+ params=_params,
509
+ )
510
+ _request = _convert_request(_request)
511
+ _request.url = self._client.format_url(_request.url)
512
+
513
+ _stream = False
514
+ pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access
515
+ _request, stream=_stream, **kwargs
516
+ )
517
+
518
+ response = pipeline_response.http_response
519
+
520
+ if response.status_code not in [200]:
521
+ map_error(status_code=response.status_code, response=response, error_map=error_map)
522
+ raise HttpResponseError(response=response, error_format=ARMErrorFormat)
523
+
524
+ deserialized = self._deserialize("StorageAccount", pipeline_response)
525
+
526
+ if cls:
527
+ return cls(pipeline_response, deserialized, {}) # type: ignore
528
+
529
+ return deserialized # type: ignore
530
+
531
+ @overload
532
+ async def update(
533
+ self,
534
+ resource_group_name: str,
535
+ account_name: str,
536
+ parameters: _models.StorageAccountUpdateParameters,
537
+ *,
538
+ content_type: str = "application/json",
539
+ **kwargs: Any
540
+ ) -> _models.StorageAccount:
541
+ """The update operation can be used to update the SKU, encryption, access tier, or tags for a
542
+ storage account. It can also be used to map the account to a custom domain. Only one custom
543
+ domain is supported per storage account; the replacement/change of custom domain is not
544
+ supported. In order to replace an old custom domain, the old value must be cleared/unregistered
545
+ before a new value can be set. The update of multiple properties is supported. This call does
546
+ not change the storage keys for the account. If you want to change the storage account keys,
547
+ use the regenerate keys operation. The location and name of the storage account cannot be
548
+ changed after creation.
549
+
550
+ :param resource_group_name: The name of the resource group within the user's subscription. The
551
+ name is case insensitive. Required.
552
+ :type resource_group_name: str
553
+ :param account_name: The name of the storage account within the specified resource group.
554
+ Storage account names must be between 3 and 24 characters in length and use numbers and
555
+ lower-case letters only. Required.
556
+ :type account_name: str
557
+ :param parameters: The parameters to provide for the updated account. Required.
558
+ :type parameters: ~azure.mgmt.storage.v2023_05_01.models.StorageAccountUpdateParameters
559
+ :keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
560
+ Default value is "application/json".
561
+ :paramtype content_type: str
562
+ :return: StorageAccount or the result of cls(response)
563
+ :rtype: ~azure.mgmt.storage.v2023_05_01.models.StorageAccount
564
+ :raises ~azure.core.exceptions.HttpResponseError:
565
+ """
566
+
567
+ @overload
568
+ async def update(
569
+ self,
570
+ resource_group_name: str,
571
+ account_name: str,
572
+ parameters: IO[bytes],
573
+ *,
574
+ content_type: str = "application/json",
575
+ **kwargs: Any
576
+ ) -> _models.StorageAccount:
577
+ """The update operation can be used to update the SKU, encryption, access tier, or tags for a
578
+ storage account. It can also be used to map the account to a custom domain. Only one custom
579
+ domain is supported per storage account; the replacement/change of custom domain is not
580
+ supported. In order to replace an old custom domain, the old value must be cleared/unregistered
581
+ before a new value can be set. The update of multiple properties is supported. This call does
582
+ not change the storage keys for the account. If you want to change the storage account keys,
583
+ use the regenerate keys operation. The location and name of the storage account cannot be
584
+ changed after creation.
585
+
586
+ :param resource_group_name: The name of the resource group within the user's subscription. The
587
+ name is case insensitive. Required.
588
+ :type resource_group_name: str
589
+ :param account_name: The name of the storage account within the specified resource group.
590
+ Storage account names must be between 3 and 24 characters in length and use numbers and
591
+ lower-case letters only. Required.
592
+ :type account_name: str
593
+ :param parameters: The parameters to provide for the updated account. Required.
594
+ :type parameters: IO[bytes]
595
+ :keyword content_type: Body Parameter content-type. Content type parameter for binary body.
596
+ Default value is "application/json".
597
+ :paramtype content_type: str
598
+ :return: StorageAccount or the result of cls(response)
599
+ :rtype: ~azure.mgmt.storage.v2023_05_01.models.StorageAccount
600
+ :raises ~azure.core.exceptions.HttpResponseError:
601
+ """
602
+
603
+ @distributed_trace_async
604
+ async def update(
605
+ self,
606
+ resource_group_name: str,
607
+ account_name: str,
608
+ parameters: Union[_models.StorageAccountUpdateParameters, IO[bytes]],
609
+ **kwargs: Any
610
+ ) -> _models.StorageAccount:
611
+ """The update operation can be used to update the SKU, encryption, access tier, or tags for a
612
+ storage account. It can also be used to map the account to a custom domain. Only one custom
613
+ domain is supported per storage account; the replacement/change of custom domain is not
614
+ supported. In order to replace an old custom domain, the old value must be cleared/unregistered
615
+ before a new value can be set. The update of multiple properties is supported. This call does
616
+ not change the storage keys for the account. If you want to change the storage account keys,
617
+ use the regenerate keys operation. The location and name of the storage account cannot be
618
+ changed after creation.
619
+
620
+ :param resource_group_name: The name of the resource group within the user's subscription. The
621
+ name is case insensitive. Required.
622
+ :type resource_group_name: str
623
+ :param account_name: The name of the storage account within the specified resource group.
624
+ Storage account names must be between 3 and 24 characters in length and use numbers and
625
+ lower-case letters only. Required.
626
+ :type account_name: str
627
+ :param parameters: The parameters to provide for the updated account. Is either a
628
+ StorageAccountUpdateParameters type or a IO[bytes] type. Required.
629
+ :type parameters: ~azure.mgmt.storage.v2023_05_01.models.StorageAccountUpdateParameters or
630
+ IO[bytes]
631
+ :return: StorageAccount or the result of cls(response)
632
+ :rtype: ~azure.mgmt.storage.v2023_05_01.models.StorageAccount
633
+ :raises ~azure.core.exceptions.HttpResponseError:
634
+ """
635
+ error_map: MutableMapping[int, Type[HttpResponseError]] = {
636
+ 401: ClientAuthenticationError,
637
+ 404: ResourceNotFoundError,
638
+ 409: ResourceExistsError,
639
+ 304: ResourceNotModifiedError,
640
+ }
641
+ error_map.update(kwargs.pop("error_map", {}) or {})
642
+
643
+ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
644
+ _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
645
+
646
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-05-01"))
647
+ content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
648
+ cls: ClsType[_models.StorageAccount] = kwargs.pop("cls", None)
649
+
650
+ content_type = content_type or "application/json"
651
+ _json = None
652
+ _content = None
653
+ if isinstance(parameters, (IOBase, bytes)):
654
+ _content = parameters
655
+ else:
656
+ _json = self._serialize.body(parameters, "StorageAccountUpdateParameters")
657
+
658
+ _request = build_update_request(
659
+ resource_group_name=resource_group_name,
660
+ account_name=account_name,
661
+ subscription_id=self._config.subscription_id,
662
+ api_version=api_version,
663
+ content_type=content_type,
664
+ json=_json,
665
+ content=_content,
666
+ headers=_headers,
667
+ params=_params,
668
+ )
669
+ _request = _convert_request(_request)
670
+ _request.url = self._client.format_url(_request.url)
671
+
672
+ _stream = False
673
+ pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access
674
+ _request, stream=_stream, **kwargs
675
+ )
676
+
677
+ response = pipeline_response.http_response
678
+
679
+ if response.status_code not in [200]:
680
+ map_error(status_code=response.status_code, response=response, error_map=error_map)
681
+ raise HttpResponseError(response=response, error_format=ARMErrorFormat)
682
+
683
+ deserialized = self._deserialize("StorageAccount", pipeline_response)
684
+
685
+ if cls:
686
+ return cls(pipeline_response, deserialized, {}) # type: ignore
687
+
688
+ return deserialized # type: ignore
689
+
690
+ @distributed_trace
691
+ def list(self, **kwargs: Any) -> AsyncIterable["_models.StorageAccount"]:
692
+ """Lists all the storage accounts available under the subscription. Note that storage keys are not
693
+ returned; use the ListKeys operation for this.
694
+
695
+ :return: An iterator like instance of either StorageAccount or the result of cls(response)
696
+ :rtype:
697
+ ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.storage.v2023_05_01.models.StorageAccount]
698
+ :raises ~azure.core.exceptions.HttpResponseError:
699
+ """
700
+ _headers = kwargs.pop("headers", {}) or {}
701
+ _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
702
+
703
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-05-01"))
704
+ cls: ClsType[_models.StorageAccountListResult] = kwargs.pop("cls", None)
705
+
706
+ error_map: MutableMapping[int, Type[HttpResponseError]] = {
707
+ 401: ClientAuthenticationError,
708
+ 404: ResourceNotFoundError,
709
+ 409: ResourceExistsError,
710
+ 304: ResourceNotModifiedError,
711
+ }
712
+ error_map.update(kwargs.pop("error_map", {}) or {})
713
+
714
+ def prepare_request(next_link=None):
715
+ if not next_link:
716
+
717
+ _request = build_list_request(
718
+ subscription_id=self._config.subscription_id,
719
+ api_version=api_version,
720
+ headers=_headers,
721
+ params=_params,
722
+ )
723
+ _request = _convert_request(_request)
724
+ _request.url = self._client.format_url(_request.url)
725
+
726
+ else:
727
+ # make call to next link with the client's api-version
728
+ _parsed_next_link = urllib.parse.urlparse(next_link)
729
+ _next_request_params = case_insensitive_dict(
730
+ {
731
+ key: [urllib.parse.quote(v) for v in value]
732
+ for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items()
733
+ }
734
+ )
735
+ _next_request_params["api-version"] = self._api_version
736
+ _request = HttpRequest(
737
+ "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params
738
+ )
739
+ _request = _convert_request(_request)
740
+ _request.url = self._client.format_url(_request.url)
741
+ _request.method = "GET"
742
+ return _request
743
+
744
+ async def extract_data(pipeline_response):
745
+ deserialized = self._deserialize("StorageAccountListResult", pipeline_response)
746
+ list_of_elem = deserialized.value
747
+ if cls:
748
+ list_of_elem = cls(list_of_elem) # type: ignore
749
+ return deserialized.next_link or None, AsyncList(list_of_elem)
750
+
751
+ async def get_next(next_link=None):
752
+ _request = prepare_request(next_link)
753
+
754
+ _stream = False
755
+ pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access
756
+ _request, stream=_stream, **kwargs
757
+ )
758
+ response = pipeline_response.http_response
759
+
760
+ if response.status_code not in [200]:
761
+ map_error(status_code=response.status_code, response=response, error_map=error_map)
762
+ raise HttpResponseError(response=response, error_format=ARMErrorFormat)
763
+
764
+ return pipeline_response
765
+
766
+ return AsyncItemPaged(get_next, extract_data)
767
+
768
+ @distributed_trace
769
+ def list_by_resource_group(
770
+ self, resource_group_name: str, **kwargs: Any
771
+ ) -> AsyncIterable["_models.StorageAccount"]:
772
+ """Lists all the storage accounts available under the given resource group. Note that storage keys
773
+ are not returned; use the ListKeys operation for this.
774
+
775
+ :param resource_group_name: The name of the resource group within the user's subscription. The
776
+ name is case insensitive. Required.
777
+ :type resource_group_name: str
778
+ :return: An iterator like instance of either StorageAccount or the result of cls(response)
779
+ :rtype:
780
+ ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.storage.v2023_05_01.models.StorageAccount]
781
+ :raises ~azure.core.exceptions.HttpResponseError:
782
+ """
783
+ _headers = kwargs.pop("headers", {}) or {}
784
+ _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
785
+
786
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-05-01"))
787
+ cls: ClsType[_models.StorageAccountListResult] = kwargs.pop("cls", None)
788
+
789
+ error_map: MutableMapping[int, Type[HttpResponseError]] = {
790
+ 401: ClientAuthenticationError,
791
+ 404: ResourceNotFoundError,
792
+ 409: ResourceExistsError,
793
+ 304: ResourceNotModifiedError,
794
+ }
795
+ error_map.update(kwargs.pop("error_map", {}) or {})
796
+
797
+ def prepare_request(next_link=None):
798
+ if not next_link:
799
+
800
+ _request = build_list_by_resource_group_request(
801
+ resource_group_name=resource_group_name,
802
+ subscription_id=self._config.subscription_id,
803
+ api_version=api_version,
804
+ headers=_headers,
805
+ params=_params,
806
+ )
807
+ _request = _convert_request(_request)
808
+ _request.url = self._client.format_url(_request.url)
809
+
810
+ else:
811
+ # make call to next link with the client's api-version
812
+ _parsed_next_link = urllib.parse.urlparse(next_link)
813
+ _next_request_params = case_insensitive_dict(
814
+ {
815
+ key: [urllib.parse.quote(v) for v in value]
816
+ for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items()
817
+ }
818
+ )
819
+ _next_request_params["api-version"] = self._api_version
820
+ _request = HttpRequest(
821
+ "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params
822
+ )
823
+ _request = _convert_request(_request)
824
+ _request.url = self._client.format_url(_request.url)
825
+ _request.method = "GET"
826
+ return _request
827
+
828
+ async def extract_data(pipeline_response):
829
+ deserialized = self._deserialize("StorageAccountListResult", pipeline_response)
830
+ list_of_elem = deserialized.value
831
+ if cls:
832
+ list_of_elem = cls(list_of_elem) # type: ignore
833
+ return deserialized.next_link or None, AsyncList(list_of_elem)
834
+
835
+ async def get_next(next_link=None):
836
+ _request = prepare_request(next_link)
837
+
838
+ _stream = False
839
+ pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access
840
+ _request, stream=_stream, **kwargs
841
+ )
842
+ response = pipeline_response.http_response
843
+
844
+ if response.status_code not in [200]:
845
+ map_error(status_code=response.status_code, response=response, error_map=error_map)
846
+ raise HttpResponseError(response=response, error_format=ARMErrorFormat)
847
+
848
+ return pipeline_response
849
+
850
+ return AsyncItemPaged(get_next, extract_data)
851
+
852
+ @distributed_trace_async
853
+ async def list_keys(
854
+ self, resource_group_name: str, account_name: str, expand: Literal["kerb"] = "kerb", **kwargs: Any
855
+ ) -> _models.StorageAccountListKeysResult:
856
+ """Lists the access keys or Kerberos keys (if active directory enabled) for the specified storage
857
+ account.
858
+
859
+ :param resource_group_name: The name of the resource group within the user's subscription. The
860
+ name is case insensitive. Required.
861
+ :type resource_group_name: str
862
+ :param account_name: The name of the storage account within the specified resource group.
863
+ Storage account names must be between 3 and 24 characters in length and use numbers and
864
+ lower-case letters only. Required.
865
+ :type account_name: str
866
+ :param expand: Specifies type of the key to be listed. Possible value is kerb. Known values are
867
+ "kerb" and None. Default value is "kerb".
868
+ :type expand: str
869
+ :return: StorageAccountListKeysResult or the result of cls(response)
870
+ :rtype: ~azure.mgmt.storage.v2023_05_01.models.StorageAccountListKeysResult
871
+ :raises ~azure.core.exceptions.HttpResponseError:
872
+ """
873
+ error_map: MutableMapping[int, Type[HttpResponseError]] = {
874
+ 401: ClientAuthenticationError,
875
+ 404: ResourceNotFoundError,
876
+ 409: ResourceExistsError,
877
+ 304: ResourceNotModifiedError,
878
+ }
879
+ error_map.update(kwargs.pop("error_map", {}) or {})
880
+
881
+ _headers = kwargs.pop("headers", {}) or {}
882
+ _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
883
+
884
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-05-01"))
885
+ cls: ClsType[_models.StorageAccountListKeysResult] = kwargs.pop("cls", None)
886
+
887
+ _request = build_list_keys_request(
888
+ resource_group_name=resource_group_name,
889
+ account_name=account_name,
890
+ subscription_id=self._config.subscription_id,
891
+ expand=expand,
892
+ api_version=api_version,
893
+ headers=_headers,
894
+ params=_params,
895
+ )
896
+ _request = _convert_request(_request)
897
+ _request.url = self._client.format_url(_request.url)
898
+
899
+ _stream = False
900
+ pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access
901
+ _request, stream=_stream, **kwargs
902
+ )
903
+
904
+ response = pipeline_response.http_response
905
+
906
+ if response.status_code not in [200]:
907
+ map_error(status_code=response.status_code, response=response, error_map=error_map)
908
+ raise HttpResponseError(response=response, error_format=ARMErrorFormat)
909
+
910
+ deserialized = self._deserialize("StorageAccountListKeysResult", pipeline_response)
911
+
912
+ if cls:
913
+ return cls(pipeline_response, deserialized, {}) # type: ignore
914
+
915
+ return deserialized # type: ignore
916
+
917
+ @overload
918
+ async def regenerate_key(
919
+ self,
920
+ resource_group_name: str,
921
+ account_name: str,
922
+ regenerate_key: _models.StorageAccountRegenerateKeyParameters,
923
+ *,
924
+ content_type: str = "application/json",
925
+ **kwargs: Any
926
+ ) -> _models.StorageAccountListKeysResult:
927
+ """Regenerates one of the access keys or Kerberos keys for the specified storage account.
928
+
929
+ :param resource_group_name: The name of the resource group within the user's subscription. The
930
+ name is case insensitive. Required.
931
+ :type resource_group_name: str
932
+ :param account_name: The name of the storage account within the specified resource group.
933
+ Storage account names must be between 3 and 24 characters in length and use numbers and
934
+ lower-case letters only. Required.
935
+ :type account_name: str
936
+ :param regenerate_key: Specifies name of the key which should be regenerated -- key1, key2,
937
+ kerb1, kerb2. Required.
938
+ :type regenerate_key:
939
+ ~azure.mgmt.storage.v2023_05_01.models.StorageAccountRegenerateKeyParameters
940
+ :keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
941
+ Default value is "application/json".
942
+ :paramtype content_type: str
943
+ :return: StorageAccountListKeysResult or the result of cls(response)
944
+ :rtype: ~azure.mgmt.storage.v2023_05_01.models.StorageAccountListKeysResult
945
+ :raises ~azure.core.exceptions.HttpResponseError:
946
+ """
947
+
948
+ @overload
949
+ async def regenerate_key(
950
+ self,
951
+ resource_group_name: str,
952
+ account_name: str,
953
+ regenerate_key: IO[bytes],
954
+ *,
955
+ content_type: str = "application/json",
956
+ **kwargs: Any
957
+ ) -> _models.StorageAccountListKeysResult:
958
+ """Regenerates one of the access keys or Kerberos keys for the specified storage account.
959
+
960
+ :param resource_group_name: The name of the resource group within the user's subscription. The
961
+ name is case insensitive. Required.
962
+ :type resource_group_name: str
963
+ :param account_name: The name of the storage account within the specified resource group.
964
+ Storage account names must be between 3 and 24 characters in length and use numbers and
965
+ lower-case letters only. Required.
966
+ :type account_name: str
967
+ :param regenerate_key: Specifies name of the key which should be regenerated -- key1, key2,
968
+ kerb1, kerb2. Required.
969
+ :type regenerate_key: IO[bytes]
970
+ :keyword content_type: Body Parameter content-type. Content type parameter for binary body.
971
+ Default value is "application/json".
972
+ :paramtype content_type: str
973
+ :return: StorageAccountListKeysResult or the result of cls(response)
974
+ :rtype: ~azure.mgmt.storage.v2023_05_01.models.StorageAccountListKeysResult
975
+ :raises ~azure.core.exceptions.HttpResponseError:
976
+ """
977
+
978
+ @distributed_trace_async
979
+ async def regenerate_key(
980
+ self,
981
+ resource_group_name: str,
982
+ account_name: str,
983
+ regenerate_key: Union[_models.StorageAccountRegenerateKeyParameters, IO[bytes]],
984
+ **kwargs: Any
985
+ ) -> _models.StorageAccountListKeysResult:
986
+ """Regenerates one of the access keys or Kerberos keys for the specified storage account.
987
+
988
+ :param resource_group_name: The name of the resource group within the user's subscription. The
989
+ name is case insensitive. Required.
990
+ :type resource_group_name: str
991
+ :param account_name: The name of the storage account within the specified resource group.
992
+ Storage account names must be between 3 and 24 characters in length and use numbers and
993
+ lower-case letters only. Required.
994
+ :type account_name: str
995
+ :param regenerate_key: Specifies name of the key which should be regenerated -- key1, key2,
996
+ kerb1, kerb2. Is either a StorageAccountRegenerateKeyParameters type or a IO[bytes] type.
997
+ Required.
998
+ :type regenerate_key:
999
+ ~azure.mgmt.storage.v2023_05_01.models.StorageAccountRegenerateKeyParameters or IO[bytes]
1000
+ :return: StorageAccountListKeysResult or the result of cls(response)
1001
+ :rtype: ~azure.mgmt.storage.v2023_05_01.models.StorageAccountListKeysResult
1002
+ :raises ~azure.core.exceptions.HttpResponseError:
1003
+ """
1004
+ error_map: MutableMapping[int, Type[HttpResponseError]] = {
1005
+ 401: ClientAuthenticationError,
1006
+ 404: ResourceNotFoundError,
1007
+ 409: ResourceExistsError,
1008
+ 304: ResourceNotModifiedError,
1009
+ }
1010
+ error_map.update(kwargs.pop("error_map", {}) or {})
1011
+
1012
+ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
1013
+ _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
1014
+
1015
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-05-01"))
1016
+ content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
1017
+ cls: ClsType[_models.StorageAccountListKeysResult] = kwargs.pop("cls", None)
1018
+
1019
+ content_type = content_type or "application/json"
1020
+ _json = None
1021
+ _content = None
1022
+ if isinstance(regenerate_key, (IOBase, bytes)):
1023
+ _content = regenerate_key
1024
+ else:
1025
+ _json = self._serialize.body(regenerate_key, "StorageAccountRegenerateKeyParameters")
1026
+
1027
+ _request = build_regenerate_key_request(
1028
+ resource_group_name=resource_group_name,
1029
+ account_name=account_name,
1030
+ subscription_id=self._config.subscription_id,
1031
+ api_version=api_version,
1032
+ content_type=content_type,
1033
+ json=_json,
1034
+ content=_content,
1035
+ headers=_headers,
1036
+ params=_params,
1037
+ )
1038
+ _request = _convert_request(_request)
1039
+ _request.url = self._client.format_url(_request.url)
1040
+
1041
+ _stream = False
1042
+ pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access
1043
+ _request, stream=_stream, **kwargs
1044
+ )
1045
+
1046
+ response = pipeline_response.http_response
1047
+
1048
+ if response.status_code not in [200]:
1049
+ map_error(status_code=response.status_code, response=response, error_map=error_map)
1050
+ raise HttpResponseError(response=response, error_format=ARMErrorFormat)
1051
+
1052
+ deserialized = self._deserialize("StorageAccountListKeysResult", pipeline_response)
1053
+
1054
+ if cls:
1055
+ return cls(pipeline_response, deserialized, {}) # type: ignore
1056
+
1057
+ return deserialized # type: ignore
1058
+
1059
+ @overload
1060
+ async def list_account_sas(
1061
+ self,
1062
+ resource_group_name: str,
1063
+ account_name: str,
1064
+ parameters: _models.AccountSasParameters,
1065
+ *,
1066
+ content_type: str = "application/json",
1067
+ **kwargs: Any
1068
+ ) -> _models.ListAccountSasResponse:
1069
+ """List SAS credentials of a storage account.
1070
+
1071
+ :param resource_group_name: The name of the resource group within the user's subscription. The
1072
+ name is case insensitive. Required.
1073
+ :type resource_group_name: str
1074
+ :param account_name: The name of the storage account within the specified resource group.
1075
+ Storage account names must be between 3 and 24 characters in length and use numbers and
1076
+ lower-case letters only. Required.
1077
+ :type account_name: str
1078
+ :param parameters: The parameters to provide to list SAS credentials for the storage account.
1079
+ Required.
1080
+ :type parameters: ~azure.mgmt.storage.v2023_05_01.models.AccountSasParameters
1081
+ :keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
1082
+ Default value is "application/json".
1083
+ :paramtype content_type: str
1084
+ :return: ListAccountSasResponse or the result of cls(response)
1085
+ :rtype: ~azure.mgmt.storage.v2023_05_01.models.ListAccountSasResponse
1086
+ :raises ~azure.core.exceptions.HttpResponseError:
1087
+ """
1088
+
1089
+ @overload
1090
+ async def list_account_sas(
1091
+ self,
1092
+ resource_group_name: str,
1093
+ account_name: str,
1094
+ parameters: IO[bytes],
1095
+ *,
1096
+ content_type: str = "application/json",
1097
+ **kwargs: Any
1098
+ ) -> _models.ListAccountSasResponse:
1099
+ """List SAS credentials of a storage account.
1100
+
1101
+ :param resource_group_name: The name of the resource group within the user's subscription. The
1102
+ name is case insensitive. Required.
1103
+ :type resource_group_name: str
1104
+ :param account_name: The name of the storage account within the specified resource group.
1105
+ Storage account names must be between 3 and 24 characters in length and use numbers and
1106
+ lower-case letters only. Required.
1107
+ :type account_name: str
1108
+ :param parameters: The parameters to provide to list SAS credentials for the storage account.
1109
+ Required.
1110
+ :type parameters: IO[bytes]
1111
+ :keyword content_type: Body Parameter content-type. Content type parameter for binary body.
1112
+ Default value is "application/json".
1113
+ :paramtype content_type: str
1114
+ :return: ListAccountSasResponse or the result of cls(response)
1115
+ :rtype: ~azure.mgmt.storage.v2023_05_01.models.ListAccountSasResponse
1116
+ :raises ~azure.core.exceptions.HttpResponseError:
1117
+ """
1118
+
1119
+ @distributed_trace_async
1120
+ async def list_account_sas(
1121
+ self,
1122
+ resource_group_name: str,
1123
+ account_name: str,
1124
+ parameters: Union[_models.AccountSasParameters, IO[bytes]],
1125
+ **kwargs: Any
1126
+ ) -> _models.ListAccountSasResponse:
1127
+ """List SAS credentials of a storage account.
1128
+
1129
+ :param resource_group_name: The name of the resource group within the user's subscription. The
1130
+ name is case insensitive. Required.
1131
+ :type resource_group_name: str
1132
+ :param account_name: The name of the storage account within the specified resource group.
1133
+ Storage account names must be between 3 and 24 characters in length and use numbers and
1134
+ lower-case letters only. Required.
1135
+ :type account_name: str
1136
+ :param parameters: The parameters to provide to list SAS credentials for the storage account.
1137
+ Is either a AccountSasParameters type or a IO[bytes] type. Required.
1138
+ :type parameters: ~azure.mgmt.storage.v2023_05_01.models.AccountSasParameters or IO[bytes]
1139
+ :return: ListAccountSasResponse or the result of cls(response)
1140
+ :rtype: ~azure.mgmt.storage.v2023_05_01.models.ListAccountSasResponse
1141
+ :raises ~azure.core.exceptions.HttpResponseError:
1142
+ """
1143
+ error_map: MutableMapping[int, Type[HttpResponseError]] = {
1144
+ 401: ClientAuthenticationError,
1145
+ 404: ResourceNotFoundError,
1146
+ 409: ResourceExistsError,
1147
+ 304: ResourceNotModifiedError,
1148
+ }
1149
+ error_map.update(kwargs.pop("error_map", {}) or {})
1150
+
1151
+ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
1152
+ _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
1153
+
1154
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-05-01"))
1155
+ content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
1156
+ cls: ClsType[_models.ListAccountSasResponse] = kwargs.pop("cls", None)
1157
+
1158
+ content_type = content_type or "application/json"
1159
+ _json = None
1160
+ _content = None
1161
+ if isinstance(parameters, (IOBase, bytes)):
1162
+ _content = parameters
1163
+ else:
1164
+ _json = self._serialize.body(parameters, "AccountSasParameters")
1165
+
1166
+ _request = build_list_account_sas_request(
1167
+ resource_group_name=resource_group_name,
1168
+ account_name=account_name,
1169
+ subscription_id=self._config.subscription_id,
1170
+ api_version=api_version,
1171
+ content_type=content_type,
1172
+ json=_json,
1173
+ content=_content,
1174
+ headers=_headers,
1175
+ params=_params,
1176
+ )
1177
+ _request = _convert_request(_request)
1178
+ _request.url = self._client.format_url(_request.url)
1179
+
1180
+ _stream = False
1181
+ pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access
1182
+ _request, stream=_stream, **kwargs
1183
+ )
1184
+
1185
+ response = pipeline_response.http_response
1186
+
1187
+ if response.status_code not in [200]:
1188
+ map_error(status_code=response.status_code, response=response, error_map=error_map)
1189
+ raise HttpResponseError(response=response, error_format=ARMErrorFormat)
1190
+
1191
+ deserialized = self._deserialize("ListAccountSasResponse", pipeline_response)
1192
+
1193
+ if cls:
1194
+ return cls(pipeline_response, deserialized, {}) # type: ignore
1195
+
1196
+ return deserialized # type: ignore
1197
+
1198
+ @overload
1199
+ async def list_service_sas(
1200
+ self,
1201
+ resource_group_name: str,
1202
+ account_name: str,
1203
+ parameters: _models.ServiceSasParameters,
1204
+ *,
1205
+ content_type: str = "application/json",
1206
+ **kwargs: Any
1207
+ ) -> _models.ListServiceSasResponse:
1208
+ """List service SAS credentials of a specific resource.
1209
+
1210
+ :param resource_group_name: The name of the resource group within the user's subscription. The
1211
+ name is case insensitive. Required.
1212
+ :type resource_group_name: str
1213
+ :param account_name: The name of the storage account within the specified resource group.
1214
+ Storage account names must be between 3 and 24 characters in length and use numbers and
1215
+ lower-case letters only. Required.
1216
+ :type account_name: str
1217
+ :param parameters: The parameters to provide to list service SAS credentials. Required.
1218
+ :type parameters: ~azure.mgmt.storage.v2023_05_01.models.ServiceSasParameters
1219
+ :keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
1220
+ Default value is "application/json".
1221
+ :paramtype content_type: str
1222
+ :return: ListServiceSasResponse or the result of cls(response)
1223
+ :rtype: ~azure.mgmt.storage.v2023_05_01.models.ListServiceSasResponse
1224
+ :raises ~azure.core.exceptions.HttpResponseError:
1225
+ """
1226
+
1227
+ @overload
1228
+ async def list_service_sas(
1229
+ self,
1230
+ resource_group_name: str,
1231
+ account_name: str,
1232
+ parameters: IO[bytes],
1233
+ *,
1234
+ content_type: str = "application/json",
1235
+ **kwargs: Any
1236
+ ) -> _models.ListServiceSasResponse:
1237
+ """List service SAS credentials of a specific resource.
1238
+
1239
+ :param resource_group_name: The name of the resource group within the user's subscription. The
1240
+ name is case insensitive. Required.
1241
+ :type resource_group_name: str
1242
+ :param account_name: The name of the storage account within the specified resource group.
1243
+ Storage account names must be between 3 and 24 characters in length and use numbers and
1244
+ lower-case letters only. Required.
1245
+ :type account_name: str
1246
+ :param parameters: The parameters to provide to list service SAS credentials. Required.
1247
+ :type parameters: IO[bytes]
1248
+ :keyword content_type: Body Parameter content-type. Content type parameter for binary body.
1249
+ Default value is "application/json".
1250
+ :paramtype content_type: str
1251
+ :return: ListServiceSasResponse or the result of cls(response)
1252
+ :rtype: ~azure.mgmt.storage.v2023_05_01.models.ListServiceSasResponse
1253
+ :raises ~azure.core.exceptions.HttpResponseError:
1254
+ """
1255
+
1256
+ @distributed_trace_async
1257
+ async def list_service_sas(
1258
+ self,
1259
+ resource_group_name: str,
1260
+ account_name: str,
1261
+ parameters: Union[_models.ServiceSasParameters, IO[bytes]],
1262
+ **kwargs: Any
1263
+ ) -> _models.ListServiceSasResponse:
1264
+ """List service SAS credentials of a specific resource.
1265
+
1266
+ :param resource_group_name: The name of the resource group within the user's subscription. The
1267
+ name is case insensitive. Required.
1268
+ :type resource_group_name: str
1269
+ :param account_name: The name of the storage account within the specified resource group.
1270
+ Storage account names must be between 3 and 24 characters in length and use numbers and
1271
+ lower-case letters only. Required.
1272
+ :type account_name: str
1273
+ :param parameters: The parameters to provide to list service SAS credentials. Is either a
1274
+ ServiceSasParameters type or a IO[bytes] type. Required.
1275
+ :type parameters: ~azure.mgmt.storage.v2023_05_01.models.ServiceSasParameters or IO[bytes]
1276
+ :return: ListServiceSasResponse or the result of cls(response)
1277
+ :rtype: ~azure.mgmt.storage.v2023_05_01.models.ListServiceSasResponse
1278
+ :raises ~azure.core.exceptions.HttpResponseError:
1279
+ """
1280
+ error_map: MutableMapping[int, Type[HttpResponseError]] = {
1281
+ 401: ClientAuthenticationError,
1282
+ 404: ResourceNotFoundError,
1283
+ 409: ResourceExistsError,
1284
+ 304: ResourceNotModifiedError,
1285
+ }
1286
+ error_map.update(kwargs.pop("error_map", {}) or {})
1287
+
1288
+ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
1289
+ _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
1290
+
1291
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-05-01"))
1292
+ content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
1293
+ cls: ClsType[_models.ListServiceSasResponse] = kwargs.pop("cls", None)
1294
+
1295
+ content_type = content_type or "application/json"
1296
+ _json = None
1297
+ _content = None
1298
+ if isinstance(parameters, (IOBase, bytes)):
1299
+ _content = parameters
1300
+ else:
1301
+ _json = self._serialize.body(parameters, "ServiceSasParameters")
1302
+
1303
+ _request = build_list_service_sas_request(
1304
+ resource_group_name=resource_group_name,
1305
+ account_name=account_name,
1306
+ subscription_id=self._config.subscription_id,
1307
+ api_version=api_version,
1308
+ content_type=content_type,
1309
+ json=_json,
1310
+ content=_content,
1311
+ headers=_headers,
1312
+ params=_params,
1313
+ )
1314
+ _request = _convert_request(_request)
1315
+ _request.url = self._client.format_url(_request.url)
1316
+
1317
+ _stream = False
1318
+ pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access
1319
+ _request, stream=_stream, **kwargs
1320
+ )
1321
+
1322
+ response = pipeline_response.http_response
1323
+
1324
+ if response.status_code not in [200]:
1325
+ map_error(status_code=response.status_code, response=response, error_map=error_map)
1326
+ raise HttpResponseError(response=response, error_format=ARMErrorFormat)
1327
+
1328
+ deserialized = self._deserialize("ListServiceSasResponse", pipeline_response)
1329
+
1330
+ if cls:
1331
+ return cls(pipeline_response, deserialized, {}) # type: ignore
1332
+
1333
+ return deserialized # type: ignore
1334
+
1335
+ async def _failover_initial( # pylint: disable=inconsistent-return-statements
1336
+ self, resource_group_name: str, account_name: str, failover_type: Literal["Planned"] = "Planned", **kwargs: Any
1337
+ ) -> None:
1338
+ error_map: MutableMapping[int, Type[HttpResponseError]] = {
1339
+ 401: ClientAuthenticationError,
1340
+ 404: ResourceNotFoundError,
1341
+ 409: ResourceExistsError,
1342
+ 304: ResourceNotModifiedError,
1343
+ }
1344
+ error_map.update(kwargs.pop("error_map", {}) or {})
1345
+
1346
+ _headers = kwargs.pop("headers", {}) or {}
1347
+ _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
1348
+
1349
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-05-01"))
1350
+ cls: ClsType[None] = kwargs.pop("cls", None)
1351
+
1352
+ _request = build_failover_request(
1353
+ resource_group_name=resource_group_name,
1354
+ account_name=account_name,
1355
+ subscription_id=self._config.subscription_id,
1356
+ failover_type=failover_type,
1357
+ api_version=api_version,
1358
+ headers=_headers,
1359
+ params=_params,
1360
+ )
1361
+ _request = _convert_request(_request)
1362
+ _request.url = self._client.format_url(_request.url)
1363
+
1364
+ _stream = False
1365
+ pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access
1366
+ _request, stream=_stream, **kwargs
1367
+ )
1368
+
1369
+ response = pipeline_response.http_response
1370
+
1371
+ if response.status_code not in [200, 202]:
1372
+ map_error(status_code=response.status_code, response=response, error_map=error_map)
1373
+ raise HttpResponseError(response=response, error_format=ARMErrorFormat)
1374
+
1375
+ if cls:
1376
+ return cls(pipeline_response, None, {}) # type: ignore
1377
+
1378
+ @distributed_trace_async
1379
+ async def begin_failover(
1380
+ self, resource_group_name: str, account_name: str, failover_type: Literal["Planned"] = "Planned", **kwargs: Any
1381
+ ) -> AsyncLROPoller[None]:
1382
+ """A failover request can be triggered for a storage account in the event a primary endpoint
1383
+ becomes unavailable for any reason. The failover occurs from the storage account's primary
1384
+ cluster to the secondary cluster for RA-GRS accounts. The secondary cluster will become primary
1385
+ after failover and the account is converted to LRS. In the case of a Planned Failover, the
1386
+ primary and secondary clusters are swapped after failover and the account remains
1387
+ geo-replicated. Failover should continue to be used in the event of availability issues as
1388
+ Planned failover is only available while the primary and secondary endpoints are available. The
1389
+ primary use case of a Planned Failover is disaster recovery testing drills. This type of
1390
+ failover is invoked by setting FailoverType parameter to 'Planned'. Learn more about the
1391
+ failover options here-
1392
+ https://learn.microsoft.com/en-us/azure/storage/common/storage-disaster-recovery-guidance.
1393
+
1394
+ :param resource_group_name: The name of the resource group within the user's subscription. The
1395
+ name is case insensitive. Required.
1396
+ :type resource_group_name: str
1397
+ :param account_name: The name of the storage account within the specified resource group.
1398
+ Storage account names must be between 3 and 24 characters in length and use numbers and
1399
+ lower-case letters only. Required.
1400
+ :type account_name: str
1401
+ :param failover_type: The parameter is set to 'Planned' to indicate whether a Planned failover
1402
+ is requested. Known values are "Planned" and None. Default value is "Planned".
1403
+ :type failover_type: str
1404
+ :return: An instance of AsyncLROPoller that returns either None or the result of cls(response)
1405
+ :rtype: ~azure.core.polling.AsyncLROPoller[None]
1406
+ :raises ~azure.core.exceptions.HttpResponseError:
1407
+ """
1408
+ _headers = kwargs.pop("headers", {}) or {}
1409
+ _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
1410
+
1411
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-05-01"))
1412
+ cls: ClsType[None] = kwargs.pop("cls", None)
1413
+ polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True)
1414
+ lro_delay = kwargs.pop("polling_interval", self._config.polling_interval)
1415
+ cont_token: Optional[str] = kwargs.pop("continuation_token", None)
1416
+ if cont_token is None:
1417
+ raw_result = await self._failover_initial( # type: ignore
1418
+ resource_group_name=resource_group_name,
1419
+ account_name=account_name,
1420
+ failover_type=failover_type,
1421
+ api_version=api_version,
1422
+ cls=lambda x, y, z: x,
1423
+ headers=_headers,
1424
+ params=_params,
1425
+ **kwargs
1426
+ )
1427
+ kwargs.pop("error_map", None)
1428
+
1429
+ def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements
1430
+ if cls:
1431
+ return cls(pipeline_response, None, {}) # type: ignore
1432
+
1433
+ if polling is True:
1434
+ polling_method: AsyncPollingMethod = cast(
1435
+ AsyncPollingMethod, AsyncARMPolling(lro_delay, lro_options={"final-state-via": "location"}, **kwargs)
1436
+ )
1437
+ elif polling is False:
1438
+ polling_method = cast(AsyncPollingMethod, AsyncNoPolling())
1439
+ else:
1440
+ polling_method = polling
1441
+ if cont_token:
1442
+ return AsyncLROPoller[None].from_continuation_token(
1443
+ polling_method=polling_method,
1444
+ continuation_token=cont_token,
1445
+ client=self._client,
1446
+ deserialization_callback=get_long_running_output,
1447
+ )
1448
+ return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore
1449
+
1450
+ async def _hierarchical_namespace_migration_initial( # pylint: disable=inconsistent-return-statements,name-too-long
1451
+ self, resource_group_name: str, account_name: str, request_type: str, **kwargs: Any
1452
+ ) -> None:
1453
+ error_map: MutableMapping[int, Type[HttpResponseError]] = {
1454
+ 401: ClientAuthenticationError,
1455
+ 404: ResourceNotFoundError,
1456
+ 409: ResourceExistsError,
1457
+ 304: ResourceNotModifiedError,
1458
+ }
1459
+ error_map.update(kwargs.pop("error_map", {}) or {})
1460
+
1461
+ _headers = kwargs.pop("headers", {}) or {}
1462
+ _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
1463
+
1464
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-05-01"))
1465
+ cls: ClsType[None] = kwargs.pop("cls", None)
1466
+
1467
+ _request = build_hierarchical_namespace_migration_request(
1468
+ resource_group_name=resource_group_name,
1469
+ account_name=account_name,
1470
+ subscription_id=self._config.subscription_id,
1471
+ request_type=request_type,
1472
+ api_version=api_version,
1473
+ headers=_headers,
1474
+ params=_params,
1475
+ )
1476
+ _request = _convert_request(_request)
1477
+ _request.url = self._client.format_url(_request.url)
1478
+
1479
+ _stream = False
1480
+ pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access
1481
+ _request, stream=_stream, **kwargs
1482
+ )
1483
+
1484
+ response = pipeline_response.http_response
1485
+
1486
+ if response.status_code not in [200, 202]:
1487
+ map_error(status_code=response.status_code, response=response, error_map=error_map)
1488
+ error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, pipeline_response)
1489
+ raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
1490
+
1491
+ if cls:
1492
+ return cls(pipeline_response, None, {}) # type: ignore
1493
+
1494
+ @distributed_trace_async
1495
+ async def begin_hierarchical_namespace_migration(
1496
+ self, resource_group_name: str, account_name: str, request_type: str, **kwargs: Any
1497
+ ) -> AsyncLROPoller[None]:
1498
+ """Live Migration of storage account to enable Hns.
1499
+
1500
+ :param resource_group_name: The name of the resource group within the user's subscription. The
1501
+ name is case insensitive. Required.
1502
+ :type resource_group_name: str
1503
+ :param account_name: The name of the storage account within the specified resource group.
1504
+ Storage account names must be between 3 and 24 characters in length and use numbers and
1505
+ lower-case letters only. Required.
1506
+ :type account_name: str
1507
+ :param request_type: Required. Hierarchical namespace migration type can either be a
1508
+ hierarchical namespace validation request 'HnsOnValidationRequest' or a hydration request
1509
+ 'HnsOnHydrationRequest'. The validation request will validate the migration whereas the
1510
+ hydration request will migrate the account. Required.
1511
+ :type request_type: str
1512
+ :return: An instance of AsyncLROPoller that returns either None or the result of cls(response)
1513
+ :rtype: ~azure.core.polling.AsyncLROPoller[None]
1514
+ :raises ~azure.core.exceptions.HttpResponseError:
1515
+ """
1516
+ _headers = kwargs.pop("headers", {}) or {}
1517
+ _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
1518
+
1519
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-05-01"))
1520
+ cls: ClsType[None] = kwargs.pop("cls", None)
1521
+ polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True)
1522
+ lro_delay = kwargs.pop("polling_interval", self._config.polling_interval)
1523
+ cont_token: Optional[str] = kwargs.pop("continuation_token", None)
1524
+ if cont_token is None:
1525
+ raw_result = await self._hierarchical_namespace_migration_initial( # type: ignore
1526
+ resource_group_name=resource_group_name,
1527
+ account_name=account_name,
1528
+ request_type=request_type,
1529
+ api_version=api_version,
1530
+ cls=lambda x, y, z: x,
1531
+ headers=_headers,
1532
+ params=_params,
1533
+ **kwargs
1534
+ )
1535
+ kwargs.pop("error_map", None)
1536
+
1537
+ def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements
1538
+ if cls:
1539
+ return cls(pipeline_response, None, {}) # type: ignore
1540
+
1541
+ if polling is True:
1542
+ polling_method: AsyncPollingMethod = cast(
1543
+ AsyncPollingMethod, AsyncARMPolling(lro_delay, lro_options={"final-state-via": "location"}, **kwargs)
1544
+ )
1545
+ elif polling is False:
1546
+ polling_method = cast(AsyncPollingMethod, AsyncNoPolling())
1547
+ else:
1548
+ polling_method = polling
1549
+ if cont_token:
1550
+ return AsyncLROPoller[None].from_continuation_token(
1551
+ polling_method=polling_method,
1552
+ continuation_token=cont_token,
1553
+ client=self._client,
1554
+ deserialization_callback=get_long_running_output,
1555
+ )
1556
+ return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore
1557
+
1558
+ async def _abort_hierarchical_namespace_migration_initial( # pylint: disable=inconsistent-return-statements,name-too-long
1559
+ self, resource_group_name: str, account_name: str, **kwargs: Any
1560
+ ) -> None:
1561
+ error_map: MutableMapping[int, Type[HttpResponseError]] = {
1562
+ 401: ClientAuthenticationError,
1563
+ 404: ResourceNotFoundError,
1564
+ 409: ResourceExistsError,
1565
+ 304: ResourceNotModifiedError,
1566
+ }
1567
+ error_map.update(kwargs.pop("error_map", {}) or {})
1568
+
1569
+ _headers = kwargs.pop("headers", {}) or {}
1570
+ _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
1571
+
1572
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-05-01"))
1573
+ cls: ClsType[None] = kwargs.pop("cls", None)
1574
+
1575
+ _request = build_abort_hierarchical_namespace_migration_request(
1576
+ resource_group_name=resource_group_name,
1577
+ account_name=account_name,
1578
+ subscription_id=self._config.subscription_id,
1579
+ api_version=api_version,
1580
+ headers=_headers,
1581
+ params=_params,
1582
+ )
1583
+ _request = _convert_request(_request)
1584
+ _request.url = self._client.format_url(_request.url)
1585
+
1586
+ _stream = False
1587
+ pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access
1588
+ _request, stream=_stream, **kwargs
1589
+ )
1590
+
1591
+ response = pipeline_response.http_response
1592
+
1593
+ if response.status_code not in [200, 202]:
1594
+ map_error(status_code=response.status_code, response=response, error_map=error_map)
1595
+ error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, pipeline_response)
1596
+ raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
1597
+
1598
+ if cls:
1599
+ return cls(pipeline_response, None, {}) # type: ignore
1600
+
1601
+ @distributed_trace_async
1602
+ async def begin_abort_hierarchical_namespace_migration( # pylint: disable=name-too-long
1603
+ self, resource_group_name: str, account_name: str, **kwargs: Any
1604
+ ) -> AsyncLROPoller[None]:
1605
+ """Abort live Migration of storage account to enable Hns.
1606
+
1607
+ :param resource_group_name: The name of the resource group within the user's subscription. The
1608
+ name is case insensitive. Required.
1609
+ :type resource_group_name: str
1610
+ :param account_name: The name of the storage account within the specified resource group.
1611
+ Storage account names must be between 3 and 24 characters in length and use numbers and
1612
+ lower-case letters only. Required.
1613
+ :type account_name: str
1614
+ :return: An instance of AsyncLROPoller that returns either None or the result of cls(response)
1615
+ :rtype: ~azure.core.polling.AsyncLROPoller[None]
1616
+ :raises ~azure.core.exceptions.HttpResponseError:
1617
+ """
1618
+ _headers = kwargs.pop("headers", {}) or {}
1619
+ _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
1620
+
1621
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-05-01"))
1622
+ cls: ClsType[None] = kwargs.pop("cls", None)
1623
+ polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True)
1624
+ lro_delay = kwargs.pop("polling_interval", self._config.polling_interval)
1625
+ cont_token: Optional[str] = kwargs.pop("continuation_token", None)
1626
+ if cont_token is None:
1627
+ raw_result = await self._abort_hierarchical_namespace_migration_initial( # type: ignore
1628
+ resource_group_name=resource_group_name,
1629
+ account_name=account_name,
1630
+ api_version=api_version,
1631
+ cls=lambda x, y, z: x,
1632
+ headers=_headers,
1633
+ params=_params,
1634
+ **kwargs
1635
+ )
1636
+ kwargs.pop("error_map", None)
1637
+
1638
+ def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements
1639
+ if cls:
1640
+ return cls(pipeline_response, None, {}) # type: ignore
1641
+
1642
+ if polling is True:
1643
+ polling_method: AsyncPollingMethod = cast(
1644
+ AsyncPollingMethod, AsyncARMPolling(lro_delay, lro_options={"final-state-via": "location"}, **kwargs)
1645
+ )
1646
+ elif polling is False:
1647
+ polling_method = cast(AsyncPollingMethod, AsyncNoPolling())
1648
+ else:
1649
+ polling_method = polling
1650
+ if cont_token:
1651
+ return AsyncLROPoller[None].from_continuation_token(
1652
+ polling_method=polling_method,
1653
+ continuation_token=cont_token,
1654
+ client=self._client,
1655
+ deserialization_callback=get_long_running_output,
1656
+ )
1657
+ return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore
1658
+
1659
+ async def _customer_initiated_migration_initial( # pylint: disable=inconsistent-return-statements
1660
+ self,
1661
+ resource_group_name: str,
1662
+ account_name: str,
1663
+ parameters: Union[_models.StorageAccountMigration, IO[bytes]],
1664
+ **kwargs: Any
1665
+ ) -> None:
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 "2023-05-01"))
1678
+ content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
1679
+ cls: ClsType[None] = 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, "StorageAccountMigration")
1688
+
1689
+ _request = build_customer_initiated_migration_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 = await 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, 202]:
1711
+ map_error(status_code=response.status_code, response=response, error_map=error_map)
1712
+ error = self._deserialize.failsafe_deserialize(_models.ErrorResponseAutoGenerated, pipeline_response)
1713
+ raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
1714
+
1715
+ response_headers = {}
1716
+ if response.status_code == 202:
1717
+ response_headers["Location"] = self._deserialize("str", response.headers.get("Location"))
1718
+
1719
+ if cls:
1720
+ return cls(pipeline_response, None, response_headers) # type: ignore
1721
+
1722
+ @overload
1723
+ async def begin_customer_initiated_migration(
1724
+ self,
1725
+ resource_group_name: str,
1726
+ account_name: str,
1727
+ parameters: _models.StorageAccountMigration,
1728
+ *,
1729
+ content_type: str = "application/json",
1730
+ **kwargs: Any
1731
+ ) -> AsyncLROPoller[None]:
1732
+ """Account Migration request can be triggered for a storage account to change its redundancy
1733
+ level. The migration updates the non-zonal redundant storage account to a zonal redundant
1734
+ account or vice-versa in order to have better reliability and availability. Zone-redundant
1735
+ storage (ZRS) replicates your storage account synchronously across three Azure availability
1736
+ zones in the primary region.
1737
+
1738
+ :param resource_group_name: The name of the resource group within the user's subscription. The
1739
+ name is case insensitive. Required.
1740
+ :type resource_group_name: str
1741
+ :param account_name: The name of the storage account within the specified resource group.
1742
+ Storage account names must be between 3 and 24 characters in length and use numbers and
1743
+ lower-case letters only. Required.
1744
+ :type account_name: str
1745
+ :param parameters: The request parameters required to perform storage account migration.
1746
+ Required.
1747
+ :type parameters: ~azure.mgmt.storage.v2023_05_01.models.StorageAccountMigration
1748
+ :keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
1749
+ Default value is "application/json".
1750
+ :paramtype content_type: str
1751
+ :return: An instance of AsyncLROPoller that returns either None or the result of cls(response)
1752
+ :rtype: ~azure.core.polling.AsyncLROPoller[None]
1753
+ :raises ~azure.core.exceptions.HttpResponseError:
1754
+ """
1755
+
1756
+ @overload
1757
+ async def begin_customer_initiated_migration(
1758
+ self,
1759
+ resource_group_name: str,
1760
+ account_name: str,
1761
+ parameters: IO[bytes],
1762
+ *,
1763
+ content_type: str = "application/json",
1764
+ **kwargs: Any
1765
+ ) -> AsyncLROPoller[None]:
1766
+ """Account Migration request can be triggered for a storage account to change its redundancy
1767
+ level. The migration updates the non-zonal redundant storage account to a zonal redundant
1768
+ account or vice-versa in order to have better reliability and availability. Zone-redundant
1769
+ storage (ZRS) replicates your storage account synchronously across three Azure availability
1770
+ zones in the primary region.
1771
+
1772
+ :param resource_group_name: The name of the resource group within the user's subscription. The
1773
+ name is case insensitive. Required.
1774
+ :type resource_group_name: str
1775
+ :param account_name: The name of the storage account within the specified resource group.
1776
+ Storage account names must be between 3 and 24 characters in length and use numbers and
1777
+ lower-case letters only. Required.
1778
+ :type account_name: str
1779
+ :param parameters: The request parameters required to perform storage account migration.
1780
+ Required.
1781
+ :type parameters: IO[bytes]
1782
+ :keyword content_type: Body Parameter content-type. Content type parameter for binary body.
1783
+ Default value is "application/json".
1784
+ :paramtype content_type: str
1785
+ :return: An instance of AsyncLROPoller that returns either None or the result of cls(response)
1786
+ :rtype: ~azure.core.polling.AsyncLROPoller[None]
1787
+ :raises ~azure.core.exceptions.HttpResponseError:
1788
+ """
1789
+
1790
+ @distributed_trace_async
1791
+ async def begin_customer_initiated_migration(
1792
+ self,
1793
+ resource_group_name: str,
1794
+ account_name: str,
1795
+ parameters: Union[_models.StorageAccountMigration, IO[bytes]],
1796
+ **kwargs: Any
1797
+ ) -> AsyncLROPoller[None]:
1798
+ """Account Migration request can be triggered for a storage account to change its redundancy
1799
+ level. The migration updates the non-zonal redundant storage account to a zonal redundant
1800
+ account or vice-versa in order to have better reliability and availability. Zone-redundant
1801
+ storage (ZRS) replicates your storage account synchronously across three Azure availability
1802
+ zones in the primary region.
1803
+
1804
+ :param resource_group_name: The name of the resource group within the user's subscription. The
1805
+ name is case insensitive. Required.
1806
+ :type resource_group_name: str
1807
+ :param account_name: The name of the storage account within the specified resource group.
1808
+ Storage account names must be between 3 and 24 characters in length and use numbers and
1809
+ lower-case letters only. Required.
1810
+ :type account_name: str
1811
+ :param parameters: The request parameters required to perform storage account migration. Is
1812
+ either a StorageAccountMigration type or a IO[bytes] type. Required.
1813
+ :type parameters: ~azure.mgmt.storage.v2023_05_01.models.StorageAccountMigration or IO[bytes]
1814
+ :return: An instance of AsyncLROPoller that returns either None or the result of cls(response)
1815
+ :rtype: ~azure.core.polling.AsyncLROPoller[None]
1816
+ :raises ~azure.core.exceptions.HttpResponseError:
1817
+ """
1818
+ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
1819
+ _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
1820
+
1821
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-05-01"))
1822
+ content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
1823
+ cls: ClsType[None] = kwargs.pop("cls", None)
1824
+ polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True)
1825
+ lro_delay = kwargs.pop("polling_interval", self._config.polling_interval)
1826
+ cont_token: Optional[str] = kwargs.pop("continuation_token", None)
1827
+ if cont_token is None:
1828
+ raw_result = await self._customer_initiated_migration_initial( # type: ignore
1829
+ resource_group_name=resource_group_name,
1830
+ account_name=account_name,
1831
+ parameters=parameters,
1832
+ api_version=api_version,
1833
+ content_type=content_type,
1834
+ cls=lambda x, y, z: x,
1835
+ headers=_headers,
1836
+ params=_params,
1837
+ **kwargs
1838
+ )
1839
+ kwargs.pop("error_map", None)
1840
+
1841
+ def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements
1842
+ if cls:
1843
+ return cls(pipeline_response, None, {}) # type: ignore
1844
+
1845
+ if polling is True:
1846
+ polling_method: AsyncPollingMethod = cast(
1847
+ AsyncPollingMethod, AsyncARMPolling(lro_delay, lro_options={"final-state-via": "location"}, **kwargs)
1848
+ )
1849
+ elif polling is False:
1850
+ polling_method = cast(AsyncPollingMethod, AsyncNoPolling())
1851
+ else:
1852
+ polling_method = polling
1853
+ if cont_token:
1854
+ return AsyncLROPoller[None].from_continuation_token(
1855
+ polling_method=polling_method,
1856
+ continuation_token=cont_token,
1857
+ client=self._client,
1858
+ deserialization_callback=get_long_running_output,
1859
+ )
1860
+ return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore
1861
+
1862
+ @distributed_trace_async
1863
+ async def get_customer_initiated_migration(
1864
+ self,
1865
+ resource_group_name: str,
1866
+ account_name: str,
1867
+ migration_name: Union[str, _models.MigrationName],
1868
+ **kwargs: Any
1869
+ ) -> _models.StorageAccountMigration:
1870
+ """Gets the status of the ongoing migration for the specified storage account.
1871
+
1872
+ :param resource_group_name: The name of the resource group within the user's subscription. The
1873
+ name is case insensitive. Required.
1874
+ :type resource_group_name: str
1875
+ :param account_name: The name of the storage account within the specified resource group.
1876
+ Storage account names must be between 3 and 24 characters in length and use numbers and
1877
+ lower-case letters only. Required.
1878
+ :type account_name: str
1879
+ :param migration_name: The name of the Storage Account Migration. It should always be
1880
+ 'default'. "default" Required.
1881
+ :type migration_name: str or ~azure.mgmt.storage.v2023_05_01.models.MigrationName
1882
+ :return: StorageAccountMigration or the result of cls(response)
1883
+ :rtype: ~azure.mgmt.storage.v2023_05_01.models.StorageAccountMigration
1884
+ :raises ~azure.core.exceptions.HttpResponseError:
1885
+ """
1886
+ error_map: MutableMapping[int, Type[HttpResponseError]] = {
1887
+ 401: ClientAuthenticationError,
1888
+ 404: ResourceNotFoundError,
1889
+ 409: ResourceExistsError,
1890
+ 304: ResourceNotModifiedError,
1891
+ }
1892
+ error_map.update(kwargs.pop("error_map", {}) or {})
1893
+
1894
+ _headers = kwargs.pop("headers", {}) or {}
1895
+ _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
1896
+
1897
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-05-01"))
1898
+ cls: ClsType[_models.StorageAccountMigration] = kwargs.pop("cls", None)
1899
+
1900
+ _request = build_get_customer_initiated_migration_request(
1901
+ resource_group_name=resource_group_name,
1902
+ account_name=account_name,
1903
+ migration_name=migration_name,
1904
+ subscription_id=self._config.subscription_id,
1905
+ api_version=api_version,
1906
+ headers=_headers,
1907
+ params=_params,
1908
+ )
1909
+ _request = _convert_request(_request)
1910
+ _request.url = self._client.format_url(_request.url)
1911
+
1912
+ _stream = False
1913
+ pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access
1914
+ _request, stream=_stream, **kwargs
1915
+ )
1916
+
1917
+ response = pipeline_response.http_response
1918
+
1919
+ if response.status_code not in [200]:
1920
+ map_error(status_code=response.status_code, response=response, error_map=error_map)
1921
+ error = self._deserialize.failsafe_deserialize(_models.ErrorResponseAutoGenerated, pipeline_response)
1922
+ raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
1923
+
1924
+ deserialized = self._deserialize("StorageAccountMigration", pipeline_response)
1925
+
1926
+ if cls:
1927
+ return cls(pipeline_response, deserialized, {}) # type: ignore
1928
+
1929
+ return deserialized # type: ignore
1930
+
1931
+ async def _restore_blob_ranges_initial(
1932
+ self,
1933
+ resource_group_name: str,
1934
+ account_name: str,
1935
+ parameters: Union[_models.BlobRestoreParameters, IO[bytes]],
1936
+ **kwargs: Any
1937
+ ) -> _models.BlobRestoreStatus:
1938
+ error_map: MutableMapping[int, Type[HttpResponseError]] = {
1939
+ 401: ClientAuthenticationError,
1940
+ 404: ResourceNotFoundError,
1941
+ 409: ResourceExistsError,
1942
+ 304: ResourceNotModifiedError,
1943
+ }
1944
+ error_map.update(kwargs.pop("error_map", {}) or {})
1945
+
1946
+ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
1947
+ _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
1948
+
1949
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-05-01"))
1950
+ content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
1951
+ cls: ClsType[_models.BlobRestoreStatus] = kwargs.pop("cls", None)
1952
+
1953
+ content_type = content_type or "application/json"
1954
+ _json = None
1955
+ _content = None
1956
+ if isinstance(parameters, (IOBase, bytes)):
1957
+ _content = parameters
1958
+ else:
1959
+ _json = self._serialize.body(parameters, "BlobRestoreParameters")
1960
+
1961
+ _request = build_restore_blob_ranges_request(
1962
+ resource_group_name=resource_group_name,
1963
+ account_name=account_name,
1964
+ subscription_id=self._config.subscription_id,
1965
+ api_version=api_version,
1966
+ content_type=content_type,
1967
+ json=_json,
1968
+ content=_content,
1969
+ headers=_headers,
1970
+ params=_params,
1971
+ )
1972
+ _request = _convert_request(_request)
1973
+ _request.url = self._client.format_url(_request.url)
1974
+
1975
+ _stream = False
1976
+ pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access
1977
+ _request, stream=_stream, **kwargs
1978
+ )
1979
+
1980
+ response = pipeline_response.http_response
1981
+
1982
+ if response.status_code not in [200, 202]:
1983
+ map_error(status_code=response.status_code, response=response, error_map=error_map)
1984
+ raise HttpResponseError(response=response, error_format=ARMErrorFormat)
1985
+
1986
+ if response.status_code == 200:
1987
+ deserialized = self._deserialize("BlobRestoreStatus", pipeline_response)
1988
+
1989
+ if response.status_code == 202:
1990
+ deserialized = self._deserialize("BlobRestoreStatus", pipeline_response)
1991
+
1992
+ if cls:
1993
+ return cls(pipeline_response, deserialized, {}) # type: ignore
1994
+
1995
+ return deserialized # type: ignore
1996
+
1997
+ @overload
1998
+ async def begin_restore_blob_ranges(
1999
+ self,
2000
+ resource_group_name: str,
2001
+ account_name: str,
2002
+ parameters: _models.BlobRestoreParameters,
2003
+ *,
2004
+ content_type: str = "application/json",
2005
+ **kwargs: Any
2006
+ ) -> AsyncLROPoller[_models.BlobRestoreStatus]:
2007
+ """Restore blobs in the specified blob ranges.
2008
+
2009
+ :param resource_group_name: The name of the resource group within the user's subscription. The
2010
+ name is case insensitive. Required.
2011
+ :type resource_group_name: str
2012
+ :param account_name: The name of the storage account within the specified resource group.
2013
+ Storage account names must be between 3 and 24 characters in length and use numbers and
2014
+ lower-case letters only. Required.
2015
+ :type account_name: str
2016
+ :param parameters: The parameters to provide for restore blob ranges. Required.
2017
+ :type parameters: ~azure.mgmt.storage.v2023_05_01.models.BlobRestoreParameters
2018
+ :keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
2019
+ Default value is "application/json".
2020
+ :paramtype content_type: str
2021
+ :return: An instance of AsyncLROPoller that returns either BlobRestoreStatus or the result of
2022
+ cls(response)
2023
+ :rtype:
2024
+ ~azure.core.polling.AsyncLROPoller[~azure.mgmt.storage.v2023_05_01.models.BlobRestoreStatus]
2025
+ :raises ~azure.core.exceptions.HttpResponseError:
2026
+ """
2027
+
2028
+ @overload
2029
+ async def begin_restore_blob_ranges(
2030
+ self,
2031
+ resource_group_name: str,
2032
+ account_name: str,
2033
+ parameters: IO[bytes],
2034
+ *,
2035
+ content_type: str = "application/json",
2036
+ **kwargs: Any
2037
+ ) -> AsyncLROPoller[_models.BlobRestoreStatus]:
2038
+ """Restore blobs in the specified blob ranges.
2039
+
2040
+ :param resource_group_name: The name of the resource group within the user's subscription. The
2041
+ name is case insensitive. Required.
2042
+ :type resource_group_name: str
2043
+ :param account_name: The name of the storage account within the specified resource group.
2044
+ Storage account names must be between 3 and 24 characters in length and use numbers and
2045
+ lower-case letters only. Required.
2046
+ :type account_name: str
2047
+ :param parameters: The parameters to provide for restore blob ranges. Required.
2048
+ :type parameters: IO[bytes]
2049
+ :keyword content_type: Body Parameter content-type. Content type parameter for binary body.
2050
+ Default value is "application/json".
2051
+ :paramtype content_type: str
2052
+ :return: An instance of AsyncLROPoller that returns either BlobRestoreStatus or the result of
2053
+ cls(response)
2054
+ :rtype:
2055
+ ~azure.core.polling.AsyncLROPoller[~azure.mgmt.storage.v2023_05_01.models.BlobRestoreStatus]
2056
+ :raises ~azure.core.exceptions.HttpResponseError:
2057
+ """
2058
+
2059
+ @distributed_trace_async
2060
+ async def begin_restore_blob_ranges(
2061
+ self,
2062
+ resource_group_name: str,
2063
+ account_name: str,
2064
+ parameters: Union[_models.BlobRestoreParameters, IO[bytes]],
2065
+ **kwargs: Any
2066
+ ) -> AsyncLROPoller[_models.BlobRestoreStatus]:
2067
+ """Restore blobs in the specified blob ranges.
2068
+
2069
+ :param resource_group_name: The name of the resource group within the user's subscription. The
2070
+ name is case insensitive. Required.
2071
+ :type resource_group_name: str
2072
+ :param account_name: The name of the storage account within the specified resource group.
2073
+ Storage account names must be between 3 and 24 characters in length and use numbers and
2074
+ lower-case letters only. Required.
2075
+ :type account_name: str
2076
+ :param parameters: The parameters to provide for restore blob ranges. Is either a
2077
+ BlobRestoreParameters type or a IO[bytes] type. Required.
2078
+ :type parameters: ~azure.mgmt.storage.v2023_05_01.models.BlobRestoreParameters or IO[bytes]
2079
+ :return: An instance of AsyncLROPoller that returns either BlobRestoreStatus or the result of
2080
+ cls(response)
2081
+ :rtype:
2082
+ ~azure.core.polling.AsyncLROPoller[~azure.mgmt.storage.v2023_05_01.models.BlobRestoreStatus]
2083
+ :raises ~azure.core.exceptions.HttpResponseError:
2084
+ """
2085
+ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
2086
+ _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
2087
+
2088
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-05-01"))
2089
+ content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
2090
+ cls: ClsType[_models.BlobRestoreStatus] = kwargs.pop("cls", None)
2091
+ polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True)
2092
+ lro_delay = kwargs.pop("polling_interval", self._config.polling_interval)
2093
+ cont_token: Optional[str] = kwargs.pop("continuation_token", None)
2094
+ if cont_token is None:
2095
+ raw_result = await self._restore_blob_ranges_initial(
2096
+ resource_group_name=resource_group_name,
2097
+ account_name=account_name,
2098
+ parameters=parameters,
2099
+ api_version=api_version,
2100
+ content_type=content_type,
2101
+ cls=lambda x, y, z: x,
2102
+ headers=_headers,
2103
+ params=_params,
2104
+ **kwargs
2105
+ )
2106
+ kwargs.pop("error_map", None)
2107
+
2108
+ def get_long_running_output(pipeline_response):
2109
+ deserialized = self._deserialize("BlobRestoreStatus", pipeline_response)
2110
+ if cls:
2111
+ return cls(pipeline_response, deserialized, {}) # type: ignore
2112
+ return deserialized
2113
+
2114
+ if polling is True:
2115
+ polling_method: AsyncPollingMethod = cast(
2116
+ AsyncPollingMethod, AsyncARMPolling(lro_delay, lro_options={"final-state-via": "location"}, **kwargs)
2117
+ )
2118
+ elif polling is False:
2119
+ polling_method = cast(AsyncPollingMethod, AsyncNoPolling())
2120
+ else:
2121
+ polling_method = polling
2122
+ if cont_token:
2123
+ return AsyncLROPoller[_models.BlobRestoreStatus].from_continuation_token(
2124
+ polling_method=polling_method,
2125
+ continuation_token=cont_token,
2126
+ client=self._client,
2127
+ deserialization_callback=get_long_running_output,
2128
+ )
2129
+ return AsyncLROPoller[_models.BlobRestoreStatus](
2130
+ self._client, raw_result, get_long_running_output, polling_method # type: ignore
2131
+ )
2132
+
2133
+ @distributed_trace_async
2134
+ async def revoke_user_delegation_keys( # pylint: disable=inconsistent-return-statements
2135
+ self, resource_group_name: str, account_name: str, **kwargs: Any
2136
+ ) -> None:
2137
+ """Revoke user delegation keys.
2138
+
2139
+ :param resource_group_name: The name of the resource group within the user's subscription. The
2140
+ name is case insensitive. Required.
2141
+ :type resource_group_name: str
2142
+ :param account_name: The name of the storage account within the specified resource group.
2143
+ Storage account names must be between 3 and 24 characters in length and use numbers and
2144
+ lower-case letters only. Required.
2145
+ :type account_name: str
2146
+ :return: None or the result of cls(response)
2147
+ :rtype: None
2148
+ :raises ~azure.core.exceptions.HttpResponseError:
2149
+ """
2150
+ error_map: MutableMapping[int, Type[HttpResponseError]] = {
2151
+ 401: ClientAuthenticationError,
2152
+ 404: ResourceNotFoundError,
2153
+ 409: ResourceExistsError,
2154
+ 304: ResourceNotModifiedError,
2155
+ }
2156
+ error_map.update(kwargs.pop("error_map", {}) or {})
2157
+
2158
+ _headers = kwargs.pop("headers", {}) or {}
2159
+ _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
2160
+
2161
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-05-01"))
2162
+ cls: ClsType[None] = kwargs.pop("cls", None)
2163
+
2164
+ _request = build_revoke_user_delegation_keys_request(
2165
+ resource_group_name=resource_group_name,
2166
+ account_name=account_name,
2167
+ subscription_id=self._config.subscription_id,
2168
+ api_version=api_version,
2169
+ headers=_headers,
2170
+ params=_params,
2171
+ )
2172
+ _request = _convert_request(_request)
2173
+ _request.url = self._client.format_url(_request.url)
2174
+
2175
+ _stream = False
2176
+ pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access
2177
+ _request, stream=_stream, **kwargs
2178
+ )
2179
+
2180
+ response = pipeline_response.http_response
2181
+
2182
+ if response.status_code not in [200]:
2183
+ map_error(status_code=response.status_code, response=response, error_map=error_map)
2184
+ raise HttpResponseError(response=response, error_format=ARMErrorFormat)
2185
+
2186
+ if cls:
2187
+ return cls(pipeline_response, None, {}) # type: ignore