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
@@ -1,4 +1,4 @@
1
- # pylint: disable=too-many-lines
1
+ # pylint: disable=too-many-lines,too-many-statements
2
2
  # coding=utf-8
3
3
  # --------------------------------------------------------------------------
4
4
  # Copyright (c) Microsoft Corporation. All rights reserved.
@@ -6,8 +6,9 @@
6
6
  # Code generated by Microsoft (R) AutoRest Code Generator.
7
7
  # Changes may cause incorrect behavior and will be lost if the code is regenerated.
8
8
  # --------------------------------------------------------------------------
9
+ from io import IOBase
9
10
  import sys
10
- from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload
11
+ from typing import Any, AsyncIterable, Callable, Dict, IO, Literal, Optional, Type, TypeVar, Union, cast, overload
11
12
  import urllib.parse
12
13
 
13
14
  from azure.core.async_paging import AsyncItemPaged, AsyncList
@@ -50,10 +51,10 @@ from ...operations._storage_accounts_operations import (
50
51
  build_update_request,
51
52
  )
52
53
 
53
- if sys.version_info >= (3, 8):
54
- from typing import Literal # pylint: disable=no-name-in-module, ungrouped-imports
54
+ if sys.version_info >= (3, 9):
55
+ from collections.abc import MutableMapping
55
56
  else:
56
- from typing_extensions import Literal # type: ignore # pylint: disable=ungrouped-imports
57
+ from typing import MutableMapping # type: ignore # pylint: disable=ungrouped-imports
57
58
  T = TypeVar("T")
58
59
  ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]]
59
60
 
@@ -76,6 +77,7 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
76
77
  self._config = input_args.pop(0) if input_args else kwargs.pop("config")
77
78
  self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer")
78
79
  self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer")
80
+ self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version")
79
81
 
80
82
  @overload
81
83
  async def check_name_availability(
@@ -95,7 +97,6 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
95
97
  :keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
96
98
  Default value is "application/json".
97
99
  :paramtype content_type: str
98
- :keyword callable cls: A custom type or function that will be passed the direct response
99
100
  :return: CheckNameAvailabilityResult or the result of cls(response)
100
101
  :rtype: ~azure.mgmt.storage.v2022_09_01.models.CheckNameAvailabilityResult
101
102
  :raises ~azure.core.exceptions.HttpResponseError:
@@ -103,18 +104,17 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
103
104
 
104
105
  @overload
105
106
  async def check_name_availability(
106
- self, account_name: IO, *, content_type: str = "application/json", **kwargs: Any
107
+ self, account_name: IO[bytes], *, content_type: str = "application/json", **kwargs: Any
107
108
  ) -> _models.CheckNameAvailabilityResult:
108
109
  """Checks that the storage account name is valid and is not already in use.
109
110
 
110
111
  :param account_name: The name of the storage account within the specified resource group.
111
112
  Storage account names must be between 3 and 24 characters in length and use numbers and
112
113
  lower-case letters only. Required.
113
- :type account_name: IO
114
+ :type account_name: IO[bytes]
114
115
  :keyword content_type: Body Parameter content-type. Content type parameter for binary body.
115
116
  Default value is "application/json".
116
117
  :paramtype content_type: str
117
- :keyword callable cls: A custom type or function that will be passed the direct response
118
118
  :return: CheckNameAvailabilityResult or the result of cls(response)
119
119
  :rtype: ~azure.mgmt.storage.v2022_09_01.models.CheckNameAvailabilityResult
120
120
  :raises ~azure.core.exceptions.HttpResponseError:
@@ -122,25 +122,22 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
122
122
 
123
123
  @distributed_trace_async
124
124
  async def check_name_availability(
125
- self, account_name: Union[_models.StorageAccountCheckNameAvailabilityParameters, IO], **kwargs: Any
125
+ self, account_name: Union[_models.StorageAccountCheckNameAvailabilityParameters, IO[bytes]], **kwargs: Any
126
126
  ) -> _models.CheckNameAvailabilityResult:
127
127
  """Checks that the storage account name is valid and is not already in use.
128
128
 
129
129
  :param account_name: The name of the storage account within the specified resource group.
130
130
  Storage account names must be between 3 and 24 characters in length and use numbers and
131
- lower-case letters only. Is either a StorageAccountCheckNameAvailabilityParameters type or a IO
132
- type. Required.
131
+ lower-case letters only. Is either a StorageAccountCheckNameAvailabilityParameters type or a
132
+ IO[bytes] type. Required.
133
133
  :type account_name:
134
- ~azure.mgmt.storage.v2022_09_01.models.StorageAccountCheckNameAvailabilityParameters or IO
135
- :keyword content_type: Body Parameter content-type. Known values are: 'application/json'.
136
- Default value is None.
137
- :paramtype content_type: str
138
- :keyword callable cls: A custom type or function that will be passed the direct response
134
+ ~azure.mgmt.storage.v2022_09_01.models.StorageAccountCheckNameAvailabilityParameters or
135
+ IO[bytes]
139
136
  :return: CheckNameAvailabilityResult or the result of cls(response)
140
137
  :rtype: ~azure.mgmt.storage.v2022_09_01.models.CheckNameAvailabilityResult
141
138
  :raises ~azure.core.exceptions.HttpResponseError:
142
139
  """
143
- error_map = {
140
+ error_map: MutableMapping[int, Type[HttpResponseError]] = {
144
141
  401: ClientAuthenticationError,
145
142
  404: ResourceNotFoundError,
146
143
  409: ResourceExistsError,
@@ -151,33 +148,33 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
151
148
  _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
152
149
  _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
153
150
 
154
- api_version: Literal["2022-09-01"] = kwargs.pop("api_version", _params.pop("api-version", "2022-09-01"))
151
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-09-01"))
155
152
  content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
156
153
  cls: ClsType[_models.CheckNameAvailabilityResult] = kwargs.pop("cls", None)
157
154
 
158
155
  content_type = content_type or "application/json"
159
156
  _json = None
160
157
  _content = None
161
- if isinstance(account_name, (IO, bytes)):
158
+ if isinstance(account_name, (IOBase, bytes)):
162
159
  _content = account_name
163
160
  else:
164
161
  _json = self._serialize.body(account_name, "StorageAccountCheckNameAvailabilityParameters")
165
162
 
166
- request = build_check_name_availability_request(
163
+ _request = build_check_name_availability_request(
167
164
  subscription_id=self._config.subscription_id,
168
165
  api_version=api_version,
169
166
  content_type=content_type,
170
167
  json=_json,
171
168
  content=_content,
172
- template_url=self.check_name_availability.metadata["url"],
173
169
  headers=_headers,
174
170
  params=_params,
175
171
  )
176
- request = _convert_request(request)
177
- request.url = self._client.format_url(request.url)
172
+ _request = _convert_request(_request)
173
+ _request.url = self._client.format_url(_request.url)
178
174
 
175
+ _stream = False
179
176
  pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access
180
- request, stream=False, **kwargs
177
+ _request, stream=_stream, **kwargs
181
178
  )
182
179
 
183
180
  response = pipeline_response.http_response
@@ -189,22 +186,18 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
189
186
  deserialized = self._deserialize("CheckNameAvailabilityResult", pipeline_response)
190
187
 
191
188
  if cls:
192
- return cls(pipeline_response, deserialized, {})
193
-
194
- return deserialized
189
+ return cls(pipeline_response, deserialized, {}) # type: ignore
195
190
 
196
- check_name_availability.metadata = {
197
- "url": "/subscriptions/{subscriptionId}/providers/Microsoft.Storage/checkNameAvailability"
198
- }
191
+ return deserialized # type: ignore
199
192
 
200
193
  async def _create_initial(
201
194
  self,
202
195
  resource_group_name: str,
203
196
  account_name: str,
204
- parameters: Union[_models.StorageAccountCreateParameters, IO],
197
+ parameters: Union[_models.StorageAccountCreateParameters, IO[bytes]],
205
198
  **kwargs: Any
206
199
  ) -> Optional[_models.StorageAccount]:
207
- error_map = {
200
+ error_map: MutableMapping[int, Type[HttpResponseError]] = {
208
201
  401: ClientAuthenticationError,
209
202
  404: ResourceNotFoundError,
210
203
  409: ResourceExistsError,
@@ -215,19 +208,19 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
215
208
  _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
216
209
  _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
217
210
 
218
- api_version: Literal["2022-09-01"] = kwargs.pop("api_version", _params.pop("api-version", "2022-09-01"))
211
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-09-01"))
219
212
  content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
220
213
  cls: ClsType[Optional[_models.StorageAccount]] = kwargs.pop("cls", None)
221
214
 
222
215
  content_type = content_type or "application/json"
223
216
  _json = None
224
217
  _content = None
225
- if isinstance(parameters, (IO, bytes)):
218
+ if isinstance(parameters, (IOBase, bytes)):
226
219
  _content = parameters
227
220
  else:
228
221
  _json = self._serialize.body(parameters, "StorageAccountCreateParameters")
229
222
 
230
- request = build_create_request(
223
+ _request = build_create_request(
231
224
  resource_group_name=resource_group_name,
232
225
  account_name=account_name,
233
226
  subscription_id=self._config.subscription_id,
@@ -235,15 +228,15 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
235
228
  content_type=content_type,
236
229
  json=_json,
237
230
  content=_content,
238
- template_url=self._create_initial.metadata["url"],
239
231
  headers=_headers,
240
232
  params=_params,
241
233
  )
242
- request = _convert_request(request)
243
- request.url = self._client.format_url(request.url)
234
+ _request = _convert_request(_request)
235
+ _request.url = self._client.format_url(_request.url)
244
236
 
237
+ _stream = False
245
238
  pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access
246
- request, stream=False, **kwargs
239
+ _request, stream=_stream, **kwargs
247
240
  )
248
241
 
249
242
  response = pipeline_response.http_response
@@ -257,13 +250,9 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
257
250
  deserialized = self._deserialize("StorageAccount", pipeline_response)
258
251
 
259
252
  if cls:
260
- return cls(pipeline_response, deserialized, {})
261
-
262
- return deserialized
253
+ return cls(pipeline_response, deserialized, {}) # type: ignore
263
254
 
264
- _create_initial.metadata = {
265
- "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}"
266
- }
255
+ return deserialized # type: ignore
267
256
 
268
257
  @overload
269
258
  async def begin_create(
@@ -292,14 +281,6 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
292
281
  :keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
293
282
  Default value is "application/json".
294
283
  :paramtype content_type: str
295
- :keyword callable cls: A custom type or function that will be passed the direct response
296
- :keyword str continuation_token: A continuation token to restart a poller from a saved state.
297
- :keyword polling: By default, your polling method will be AsyncARMPolling. Pass in False for
298
- this operation to not poll, or pass in your own initialized polling object for a personal
299
- polling strategy.
300
- :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod
301
- :keyword int polling_interval: Default waiting time between two polls for LRO operations if no
302
- Retry-After header is present.
303
284
  :return: An instance of AsyncLROPoller that returns either StorageAccount or the result of
304
285
  cls(response)
305
286
  :rtype:
@@ -312,7 +293,7 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
312
293
  self,
313
294
  resource_group_name: str,
314
295
  account_name: str,
315
- parameters: IO,
296
+ parameters: IO[bytes],
316
297
  *,
317
298
  content_type: str = "application/json",
318
299
  **kwargs: Any
@@ -330,18 +311,10 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
330
311
  lower-case letters only. Required.
331
312
  :type account_name: str
332
313
  :param parameters: The parameters to provide for the created account. Required.
333
- :type parameters: IO
314
+ :type parameters: IO[bytes]
334
315
  :keyword content_type: Body Parameter content-type. Content type parameter for binary body.
335
316
  Default value is "application/json".
336
317
  :paramtype content_type: str
337
- :keyword callable cls: A custom type or function that will be passed the direct response
338
- :keyword str continuation_token: A continuation token to restart a poller from a saved state.
339
- :keyword polling: By default, your polling method will be AsyncARMPolling. Pass in False for
340
- this operation to not poll, or pass in your own initialized polling object for a personal
341
- polling strategy.
342
- :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod
343
- :keyword int polling_interval: Default waiting time between two polls for LRO operations if no
344
- Retry-After header is present.
345
318
  :return: An instance of AsyncLROPoller that returns either StorageAccount or the result of
346
319
  cls(response)
347
320
  :rtype:
@@ -354,7 +327,7 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
354
327
  self,
355
328
  resource_group_name: str,
356
329
  account_name: str,
357
- parameters: Union[_models.StorageAccountCreateParameters, IO],
330
+ parameters: Union[_models.StorageAccountCreateParameters, IO[bytes]],
358
331
  **kwargs: Any
359
332
  ) -> AsyncLROPoller[_models.StorageAccount]:
360
333
  """Asynchronously creates a new storage account with the specified parameters. If an account is
@@ -370,19 +343,9 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
370
343
  lower-case letters only. Required.
371
344
  :type account_name: str
372
345
  :param parameters: The parameters to provide for the created account. Is either a
373
- StorageAccountCreateParameters type or a IO type. Required.
374
- :type parameters: ~azure.mgmt.storage.v2022_09_01.models.StorageAccountCreateParameters or IO
375
- :keyword content_type: Body Parameter content-type. Known values are: 'application/json'.
376
- Default value is None.
377
- :paramtype content_type: str
378
- :keyword callable cls: A custom type or function that will be passed the direct response
379
- :keyword str continuation_token: A continuation token to restart a poller from a saved state.
380
- :keyword polling: By default, your polling method will be AsyncARMPolling. Pass in False for
381
- this operation to not poll, or pass in your own initialized polling object for a personal
382
- polling strategy.
383
- :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod
384
- :keyword int polling_interval: Default waiting time between two polls for LRO operations if no
385
- Retry-After header is present.
346
+ StorageAccountCreateParameters type or a IO[bytes] type. Required.
347
+ :type parameters: ~azure.mgmt.storage.v2022_09_01.models.StorageAccountCreateParameters or
348
+ IO[bytes]
386
349
  :return: An instance of AsyncLROPoller that returns either StorageAccount or the result of
387
350
  cls(response)
388
351
  :rtype:
@@ -392,7 +355,7 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
392
355
  _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
393
356
  _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
394
357
 
395
- api_version: Literal["2022-09-01"] = kwargs.pop("api_version", _params.pop("api-version", "2022-09-01"))
358
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-09-01"))
396
359
  content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
397
360
  cls: ClsType[_models.StorageAccount] = kwargs.pop("cls", None)
398
361
  polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True)
@@ -415,7 +378,7 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
415
378
  def get_long_running_output(pipeline_response):
416
379
  deserialized = self._deserialize("StorageAccount", pipeline_response)
417
380
  if cls:
418
- return cls(pipeline_response, deserialized, {})
381
+ return cls(pipeline_response, deserialized, {}) # type: ignore
419
382
  return deserialized
420
383
 
421
384
  if polling is True:
@@ -425,17 +388,15 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
425
388
  else:
426
389
  polling_method = polling
427
390
  if cont_token:
428
- return AsyncLROPoller.from_continuation_token(
391
+ return AsyncLROPoller[_models.StorageAccount].from_continuation_token(
429
392
  polling_method=polling_method,
430
393
  continuation_token=cont_token,
431
394
  client=self._client,
432
395
  deserialization_callback=get_long_running_output,
433
396
  )
434
- return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) # type: ignore
435
-
436
- begin_create.metadata = {
437
- "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}"
438
- }
397
+ return AsyncLROPoller[_models.StorageAccount](
398
+ self._client, raw_result, get_long_running_output, polling_method # type: ignore
399
+ )
439
400
 
440
401
  @distributed_trace_async
441
402
  async def delete( # pylint: disable=inconsistent-return-statements
@@ -450,12 +411,11 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
450
411
  Storage account names must be between 3 and 24 characters in length and use numbers and
451
412
  lower-case letters only. Required.
452
413
  :type account_name: str
453
- :keyword callable cls: A custom type or function that will be passed the direct response
454
414
  :return: None or the result of cls(response)
455
415
  :rtype: None
456
416
  :raises ~azure.core.exceptions.HttpResponseError:
457
417
  """
458
- error_map = {
418
+ error_map: MutableMapping[int, Type[HttpResponseError]] = {
459
419
  401: ClientAuthenticationError,
460
420
  404: ResourceNotFoundError,
461
421
  409: ResourceExistsError,
@@ -466,23 +426,23 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
466
426
  _headers = kwargs.pop("headers", {}) or {}
467
427
  _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
468
428
 
469
- api_version: Literal["2022-09-01"] = kwargs.pop("api_version", _params.pop("api-version", "2022-09-01"))
429
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-09-01"))
470
430
  cls: ClsType[None] = kwargs.pop("cls", None)
471
431
 
472
- request = build_delete_request(
432
+ _request = build_delete_request(
473
433
  resource_group_name=resource_group_name,
474
434
  account_name=account_name,
475
435
  subscription_id=self._config.subscription_id,
476
436
  api_version=api_version,
477
- template_url=self.delete.metadata["url"],
478
437
  headers=_headers,
479
438
  params=_params,
480
439
  )
481
- request = _convert_request(request)
482
- request.url = self._client.format_url(request.url)
440
+ _request = _convert_request(_request)
441
+ _request.url = self._client.format_url(_request.url)
483
442
 
443
+ _stream = False
484
444
  pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access
485
- request, stream=False, **kwargs
445
+ _request, stream=_stream, **kwargs
486
446
  )
487
447
 
488
448
  response = pipeline_response.http_response
@@ -492,11 +452,7 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
492
452
  raise HttpResponseError(response=response, error_format=ARMErrorFormat)
493
453
 
494
454
  if cls:
495
- return cls(pipeline_response, None, {})
496
-
497
- delete.metadata = {
498
- "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}"
499
- }
455
+ return cls(pipeline_response, None, {}) # type: ignore
500
456
 
501
457
  @distributed_trace_async
502
458
  async def get_properties(
@@ -522,12 +478,11 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
522
478
  and blobRestoreStatus. Known values are: "geoReplicationStats" and "blobRestoreStatus". Default
523
479
  value is None.
524
480
  :type expand: str or ~azure.mgmt.storage.v2022_09_01.models.StorageAccountExpand
525
- :keyword callable cls: A custom type or function that will be passed the direct response
526
481
  :return: StorageAccount or the result of cls(response)
527
482
  :rtype: ~azure.mgmt.storage.v2022_09_01.models.StorageAccount
528
483
  :raises ~azure.core.exceptions.HttpResponseError:
529
484
  """
530
- error_map = {
485
+ error_map: MutableMapping[int, Type[HttpResponseError]] = {
531
486
  401: ClientAuthenticationError,
532
487
  404: ResourceNotFoundError,
533
488
  409: ResourceExistsError,
@@ -538,24 +493,24 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
538
493
  _headers = kwargs.pop("headers", {}) or {}
539
494
  _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
540
495
 
541
- api_version: Literal["2022-09-01"] = kwargs.pop("api_version", _params.pop("api-version", "2022-09-01"))
496
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-09-01"))
542
497
  cls: ClsType[_models.StorageAccount] = kwargs.pop("cls", None)
543
498
 
544
- request = build_get_properties_request(
499
+ _request = build_get_properties_request(
545
500
  resource_group_name=resource_group_name,
546
501
  account_name=account_name,
547
502
  subscription_id=self._config.subscription_id,
548
503
  expand=expand,
549
504
  api_version=api_version,
550
- template_url=self.get_properties.metadata["url"],
551
505
  headers=_headers,
552
506
  params=_params,
553
507
  )
554
- request = _convert_request(request)
555
- request.url = self._client.format_url(request.url)
508
+ _request = _convert_request(_request)
509
+ _request.url = self._client.format_url(_request.url)
556
510
 
511
+ _stream = False
557
512
  pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access
558
- request, stream=False, **kwargs
513
+ _request, stream=_stream, **kwargs
559
514
  )
560
515
 
561
516
  response = pipeline_response.http_response
@@ -567,13 +522,9 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
567
522
  deserialized = self._deserialize("StorageAccount", pipeline_response)
568
523
 
569
524
  if cls:
570
- return cls(pipeline_response, deserialized, {})
571
-
572
- return deserialized
525
+ return cls(pipeline_response, deserialized, {}) # type: ignore
573
526
 
574
- get_properties.metadata = {
575
- "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}"
576
- }
527
+ return deserialized # type: ignore
577
528
 
578
529
  @overload
579
530
  async def update(
@@ -606,7 +557,6 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
606
557
  :keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
607
558
  Default value is "application/json".
608
559
  :paramtype content_type: str
609
- :keyword callable cls: A custom type or function that will be passed the direct response
610
560
  :return: StorageAccount or the result of cls(response)
611
561
  :rtype: ~azure.mgmt.storage.v2022_09_01.models.StorageAccount
612
562
  :raises ~azure.core.exceptions.HttpResponseError:
@@ -617,7 +567,7 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
617
567
  self,
618
568
  resource_group_name: str,
619
569
  account_name: str,
620
- parameters: IO,
570
+ parameters: IO[bytes],
621
571
  *,
622
572
  content_type: str = "application/json",
623
573
  **kwargs: Any
@@ -639,11 +589,10 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
639
589
  lower-case letters only. Required.
640
590
  :type account_name: str
641
591
  :param parameters: The parameters to provide for the updated account. Required.
642
- :type parameters: IO
592
+ :type parameters: IO[bytes]
643
593
  :keyword content_type: Body Parameter content-type. Content type parameter for binary body.
644
594
  Default value is "application/json".
645
595
  :paramtype content_type: str
646
- :keyword callable cls: A custom type or function that will be passed the direct response
647
596
  :return: StorageAccount or the result of cls(response)
648
597
  :rtype: ~azure.mgmt.storage.v2022_09_01.models.StorageAccount
649
598
  :raises ~azure.core.exceptions.HttpResponseError:
@@ -654,7 +603,7 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
654
603
  self,
655
604
  resource_group_name: str,
656
605
  account_name: str,
657
- parameters: Union[_models.StorageAccountUpdateParameters, IO],
606
+ parameters: Union[_models.StorageAccountUpdateParameters, IO[bytes]],
658
607
  **kwargs: Any
659
608
  ) -> _models.StorageAccount:
660
609
  """The update operation can be used to update the SKU, encryption, access tier, or tags for a
@@ -674,17 +623,14 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
674
623
  lower-case letters only. Required.
675
624
  :type account_name: str
676
625
  :param parameters: The parameters to provide for the updated account. Is either a
677
- StorageAccountUpdateParameters type or a IO type. Required.
678
- :type parameters: ~azure.mgmt.storage.v2022_09_01.models.StorageAccountUpdateParameters or IO
679
- :keyword content_type: Body Parameter content-type. Known values are: 'application/json'.
680
- Default value is None.
681
- :paramtype content_type: str
682
- :keyword callable cls: A custom type or function that will be passed the direct response
626
+ StorageAccountUpdateParameters type or a IO[bytes] type. Required.
627
+ :type parameters: ~azure.mgmt.storage.v2022_09_01.models.StorageAccountUpdateParameters or
628
+ IO[bytes]
683
629
  :return: StorageAccount or the result of cls(response)
684
630
  :rtype: ~azure.mgmt.storage.v2022_09_01.models.StorageAccount
685
631
  :raises ~azure.core.exceptions.HttpResponseError:
686
632
  """
687
- error_map = {
633
+ error_map: MutableMapping[int, Type[HttpResponseError]] = {
688
634
  401: ClientAuthenticationError,
689
635
  404: ResourceNotFoundError,
690
636
  409: ResourceExistsError,
@@ -695,19 +641,19 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
695
641
  _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
696
642
  _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
697
643
 
698
- api_version: Literal["2022-09-01"] = kwargs.pop("api_version", _params.pop("api-version", "2022-09-01"))
644
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-09-01"))
699
645
  content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
700
646
  cls: ClsType[_models.StorageAccount] = kwargs.pop("cls", None)
701
647
 
702
648
  content_type = content_type or "application/json"
703
649
  _json = None
704
650
  _content = None
705
- if isinstance(parameters, (IO, bytes)):
651
+ if isinstance(parameters, (IOBase, bytes)):
706
652
  _content = parameters
707
653
  else:
708
654
  _json = self._serialize.body(parameters, "StorageAccountUpdateParameters")
709
655
 
710
- request = build_update_request(
656
+ _request = build_update_request(
711
657
  resource_group_name=resource_group_name,
712
658
  account_name=account_name,
713
659
  subscription_id=self._config.subscription_id,
@@ -715,15 +661,15 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
715
661
  content_type=content_type,
716
662
  json=_json,
717
663
  content=_content,
718
- template_url=self.update.metadata["url"],
719
664
  headers=_headers,
720
665
  params=_params,
721
666
  )
722
- request = _convert_request(request)
723
- request.url = self._client.format_url(request.url)
667
+ _request = _convert_request(_request)
668
+ _request.url = self._client.format_url(_request.url)
724
669
 
670
+ _stream = False
725
671
  pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access
726
- request, stream=False, **kwargs
672
+ _request, stream=_stream, **kwargs
727
673
  )
728
674
 
729
675
  response = pipeline_response.http_response
@@ -735,20 +681,15 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
735
681
  deserialized = self._deserialize("StorageAccount", pipeline_response)
736
682
 
737
683
  if cls:
738
- return cls(pipeline_response, deserialized, {})
739
-
740
- return deserialized
684
+ return cls(pipeline_response, deserialized, {}) # type: ignore
741
685
 
742
- update.metadata = {
743
- "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}"
744
- }
686
+ return deserialized # type: ignore
745
687
 
746
688
  @distributed_trace
747
689
  def list(self, **kwargs: Any) -> AsyncIterable["_models.StorageAccount"]:
748
690
  """Lists all the storage accounts available under the subscription. Note that storage keys are not
749
691
  returned; use the ListKeys operation for this.
750
692
 
751
- :keyword callable cls: A custom type or function that will be passed the direct response
752
693
  :return: An iterator like instance of either StorageAccount or the result of cls(response)
753
694
  :rtype:
754
695
  ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.storage.v2022_09_01.models.StorageAccount]
@@ -757,10 +698,10 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
757
698
  _headers = kwargs.pop("headers", {}) or {}
758
699
  _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
759
700
 
760
- api_version: Literal["2022-09-01"] = kwargs.pop("api_version", _params.pop("api-version", "2022-09-01"))
701
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-09-01"))
761
702
  cls: ClsType[_models.StorageAccountListResult] = kwargs.pop("cls", None)
762
703
 
763
- error_map = {
704
+ error_map: MutableMapping[int, Type[HttpResponseError]] = {
764
705
  401: ClientAuthenticationError,
765
706
  404: ResourceNotFoundError,
766
707
  409: ResourceExistsError,
@@ -771,15 +712,14 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
771
712
  def prepare_request(next_link=None):
772
713
  if not next_link:
773
714
 
774
- request = build_list_request(
715
+ _request = build_list_request(
775
716
  subscription_id=self._config.subscription_id,
776
717
  api_version=api_version,
777
- template_url=self.list.metadata["url"],
778
718
  headers=_headers,
779
719
  params=_params,
780
720
  )
781
- request = _convert_request(request)
782
- request.url = self._client.format_url(request.url)
721
+ _request = _convert_request(_request)
722
+ _request.url = self._client.format_url(_request.url)
783
723
 
784
724
  else:
785
725
  # make call to next link with the client's api-version
@@ -790,14 +730,14 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
790
730
  for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items()
791
731
  }
792
732
  )
793
- _next_request_params["api-version"] = self._config.api_version
794
- request = HttpRequest(
733
+ _next_request_params["api-version"] = self._api_version
734
+ _request = HttpRequest(
795
735
  "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params
796
736
  )
797
- request = _convert_request(request)
798
- request.url = self._client.format_url(request.url)
799
- request.method = "GET"
800
- return request
737
+ _request = _convert_request(_request)
738
+ _request.url = self._client.format_url(_request.url)
739
+ _request.method = "GET"
740
+ return _request
801
741
 
802
742
  async def extract_data(pipeline_response):
803
743
  deserialized = self._deserialize("StorageAccountListResult", pipeline_response)
@@ -807,10 +747,11 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
807
747
  return deserialized.next_link or None, AsyncList(list_of_elem)
808
748
 
809
749
  async def get_next(next_link=None):
810
- request = prepare_request(next_link)
750
+ _request = prepare_request(next_link)
811
751
 
752
+ _stream = False
812
753
  pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access
813
- request, stream=False, **kwargs
754
+ _request, stream=_stream, **kwargs
814
755
  )
815
756
  response = pipeline_response.http_response
816
757
 
@@ -822,8 +763,6 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
822
763
 
823
764
  return AsyncItemPaged(get_next, extract_data)
824
765
 
825
- list.metadata = {"url": "/subscriptions/{subscriptionId}/providers/Microsoft.Storage/storageAccounts"}
826
-
827
766
  @distributed_trace
828
767
  def list_by_resource_group(
829
768
  self, resource_group_name: str, **kwargs: Any
@@ -834,7 +773,6 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
834
773
  :param resource_group_name: The name of the resource group within the user's subscription. The
835
774
  name is case insensitive. Required.
836
775
  :type resource_group_name: str
837
- :keyword callable cls: A custom type or function that will be passed the direct response
838
776
  :return: An iterator like instance of either StorageAccount or the result of cls(response)
839
777
  :rtype:
840
778
  ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.storage.v2022_09_01.models.StorageAccount]
@@ -843,10 +781,10 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
843
781
  _headers = kwargs.pop("headers", {}) or {}
844
782
  _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
845
783
 
846
- api_version: Literal["2022-09-01"] = kwargs.pop("api_version", _params.pop("api-version", "2022-09-01"))
784
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-09-01"))
847
785
  cls: ClsType[_models.StorageAccountListResult] = kwargs.pop("cls", None)
848
786
 
849
- error_map = {
787
+ error_map: MutableMapping[int, Type[HttpResponseError]] = {
850
788
  401: ClientAuthenticationError,
851
789
  404: ResourceNotFoundError,
852
790
  409: ResourceExistsError,
@@ -857,16 +795,15 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
857
795
  def prepare_request(next_link=None):
858
796
  if not next_link:
859
797
 
860
- request = build_list_by_resource_group_request(
798
+ _request = build_list_by_resource_group_request(
861
799
  resource_group_name=resource_group_name,
862
800
  subscription_id=self._config.subscription_id,
863
801
  api_version=api_version,
864
- template_url=self.list_by_resource_group.metadata["url"],
865
802
  headers=_headers,
866
803
  params=_params,
867
804
  )
868
- request = _convert_request(request)
869
- request.url = self._client.format_url(request.url)
805
+ _request = _convert_request(_request)
806
+ _request.url = self._client.format_url(_request.url)
870
807
 
871
808
  else:
872
809
  # make call to next link with the client's api-version
@@ -877,14 +814,14 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
877
814
  for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items()
878
815
  }
879
816
  )
880
- _next_request_params["api-version"] = self._config.api_version
881
- request = HttpRequest(
817
+ _next_request_params["api-version"] = self._api_version
818
+ _request = HttpRequest(
882
819
  "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params
883
820
  )
884
- request = _convert_request(request)
885
- request.url = self._client.format_url(request.url)
886
- request.method = "GET"
887
- return request
821
+ _request = _convert_request(_request)
822
+ _request.url = self._client.format_url(_request.url)
823
+ _request.method = "GET"
824
+ return _request
888
825
 
889
826
  async def extract_data(pipeline_response):
890
827
  deserialized = self._deserialize("StorageAccountListResult", pipeline_response)
@@ -894,10 +831,11 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
894
831
  return deserialized.next_link or None, AsyncList(list_of_elem)
895
832
 
896
833
  async def get_next(next_link=None):
897
- request = prepare_request(next_link)
834
+ _request = prepare_request(next_link)
898
835
 
836
+ _stream = False
899
837
  pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access
900
- request, stream=False, **kwargs
838
+ _request, stream=_stream, **kwargs
901
839
  )
902
840
  response = pipeline_response.http_response
903
841
 
@@ -909,10 +847,6 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
909
847
 
910
848
  return AsyncItemPaged(get_next, extract_data)
911
849
 
912
- list_by_resource_group.metadata = {
913
- "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts"
914
- }
915
-
916
850
  @distributed_trace_async
917
851
  async def list_keys(
918
852
  self, resource_group_name: str, account_name: str, expand: Literal["kerb"] = "kerb", **kwargs: Any
@@ -930,12 +864,11 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
930
864
  :param expand: Specifies type of the key to be listed. Possible value is kerb. Known values are
931
865
  "kerb" and None. Default value is "kerb".
932
866
  :type expand: str
933
- :keyword callable cls: A custom type or function that will be passed the direct response
934
867
  :return: StorageAccountListKeysResult or the result of cls(response)
935
868
  :rtype: ~azure.mgmt.storage.v2022_09_01.models.StorageAccountListKeysResult
936
869
  :raises ~azure.core.exceptions.HttpResponseError:
937
870
  """
938
- error_map = {
871
+ error_map: MutableMapping[int, Type[HttpResponseError]] = {
939
872
  401: ClientAuthenticationError,
940
873
  404: ResourceNotFoundError,
941
874
  409: ResourceExistsError,
@@ -946,24 +879,24 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
946
879
  _headers = kwargs.pop("headers", {}) or {}
947
880
  _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
948
881
 
949
- api_version: Literal["2022-09-01"] = kwargs.pop("api_version", _params.pop("api-version", "2022-09-01"))
882
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-09-01"))
950
883
  cls: ClsType[_models.StorageAccountListKeysResult] = kwargs.pop("cls", None)
951
884
 
952
- request = build_list_keys_request(
885
+ _request = build_list_keys_request(
953
886
  resource_group_name=resource_group_name,
954
887
  account_name=account_name,
955
888
  subscription_id=self._config.subscription_id,
956
889
  expand=expand,
957
890
  api_version=api_version,
958
- template_url=self.list_keys.metadata["url"],
959
891
  headers=_headers,
960
892
  params=_params,
961
893
  )
962
- request = _convert_request(request)
963
- request.url = self._client.format_url(request.url)
894
+ _request = _convert_request(_request)
895
+ _request.url = self._client.format_url(_request.url)
964
896
 
897
+ _stream = False
965
898
  pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access
966
- request, stream=False, **kwargs
899
+ _request, stream=_stream, **kwargs
967
900
  )
968
901
 
969
902
  response = pipeline_response.http_response
@@ -975,13 +908,9 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
975
908
  deserialized = self._deserialize("StorageAccountListKeysResult", pipeline_response)
976
909
 
977
910
  if cls:
978
- return cls(pipeline_response, deserialized, {})
979
-
980
- return deserialized
911
+ return cls(pipeline_response, deserialized, {}) # type: ignore
981
912
 
982
- list_keys.metadata = {
983
- "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/listKeys"
984
- }
913
+ return deserialized # type: ignore
985
914
 
986
915
  @overload
987
916
  async def regenerate_key(
@@ -1009,7 +938,6 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
1009
938
  :keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
1010
939
  Default value is "application/json".
1011
940
  :paramtype content_type: str
1012
- :keyword callable cls: A custom type or function that will be passed the direct response
1013
941
  :return: StorageAccountListKeysResult or the result of cls(response)
1014
942
  :rtype: ~azure.mgmt.storage.v2022_09_01.models.StorageAccountListKeysResult
1015
943
  :raises ~azure.core.exceptions.HttpResponseError:
@@ -1020,7 +948,7 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
1020
948
  self,
1021
949
  resource_group_name: str,
1022
950
  account_name: str,
1023
- regenerate_key: IO,
951
+ regenerate_key: IO[bytes],
1024
952
  *,
1025
953
  content_type: str = "application/json",
1026
954
  **kwargs: Any
@@ -1036,11 +964,10 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
1036
964
  :type account_name: str
1037
965
  :param regenerate_key: Specifies name of the key which should be regenerated -- key1, key2,
1038
966
  kerb1, kerb2. Required.
1039
- :type regenerate_key: IO
967
+ :type regenerate_key: IO[bytes]
1040
968
  :keyword content_type: Body Parameter content-type. Content type parameter for binary body.
1041
969
  Default value is "application/json".
1042
970
  :paramtype content_type: str
1043
- :keyword callable cls: A custom type or function that will be passed the direct response
1044
971
  :return: StorageAccountListKeysResult or the result of cls(response)
1045
972
  :rtype: ~azure.mgmt.storage.v2022_09_01.models.StorageAccountListKeysResult
1046
973
  :raises ~azure.core.exceptions.HttpResponseError:
@@ -1051,7 +978,7 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
1051
978
  self,
1052
979
  resource_group_name: str,
1053
980
  account_name: str,
1054
- regenerate_key: Union[_models.StorageAccountRegenerateKeyParameters, IO],
981
+ regenerate_key: Union[_models.StorageAccountRegenerateKeyParameters, IO[bytes]],
1055
982
  **kwargs: Any
1056
983
  ) -> _models.StorageAccountListKeysResult:
1057
984
  """Regenerates one of the access keys or Kerberos keys for the specified storage account.
@@ -1064,18 +991,15 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
1064
991
  lower-case letters only. Required.
1065
992
  :type account_name: str
1066
993
  :param regenerate_key: Specifies name of the key which should be regenerated -- key1, key2,
1067
- kerb1, kerb2. Is either a StorageAccountRegenerateKeyParameters type or a IO type. Required.
994
+ kerb1, kerb2. Is either a StorageAccountRegenerateKeyParameters type or a IO[bytes] type.
995
+ Required.
1068
996
  :type regenerate_key:
1069
- ~azure.mgmt.storage.v2022_09_01.models.StorageAccountRegenerateKeyParameters or IO
1070
- :keyword content_type: Body Parameter content-type. Known values are: 'application/json'.
1071
- Default value is None.
1072
- :paramtype content_type: str
1073
- :keyword callable cls: A custom type or function that will be passed the direct response
997
+ ~azure.mgmt.storage.v2022_09_01.models.StorageAccountRegenerateKeyParameters or IO[bytes]
1074
998
  :return: StorageAccountListKeysResult or the result of cls(response)
1075
999
  :rtype: ~azure.mgmt.storage.v2022_09_01.models.StorageAccountListKeysResult
1076
1000
  :raises ~azure.core.exceptions.HttpResponseError:
1077
1001
  """
1078
- error_map = {
1002
+ error_map: MutableMapping[int, Type[HttpResponseError]] = {
1079
1003
  401: ClientAuthenticationError,
1080
1004
  404: ResourceNotFoundError,
1081
1005
  409: ResourceExistsError,
@@ -1086,19 +1010,19 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
1086
1010
  _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
1087
1011
  _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
1088
1012
 
1089
- api_version: Literal["2022-09-01"] = kwargs.pop("api_version", _params.pop("api-version", "2022-09-01"))
1013
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-09-01"))
1090
1014
  content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
1091
1015
  cls: ClsType[_models.StorageAccountListKeysResult] = kwargs.pop("cls", None)
1092
1016
 
1093
1017
  content_type = content_type or "application/json"
1094
1018
  _json = None
1095
1019
  _content = None
1096
- if isinstance(regenerate_key, (IO, bytes)):
1020
+ if isinstance(regenerate_key, (IOBase, bytes)):
1097
1021
  _content = regenerate_key
1098
1022
  else:
1099
1023
  _json = self._serialize.body(regenerate_key, "StorageAccountRegenerateKeyParameters")
1100
1024
 
1101
- request = build_regenerate_key_request(
1025
+ _request = build_regenerate_key_request(
1102
1026
  resource_group_name=resource_group_name,
1103
1027
  account_name=account_name,
1104
1028
  subscription_id=self._config.subscription_id,
@@ -1106,15 +1030,15 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
1106
1030
  content_type=content_type,
1107
1031
  json=_json,
1108
1032
  content=_content,
1109
- template_url=self.regenerate_key.metadata["url"],
1110
1033
  headers=_headers,
1111
1034
  params=_params,
1112
1035
  )
1113
- request = _convert_request(request)
1114
- request.url = self._client.format_url(request.url)
1036
+ _request = _convert_request(_request)
1037
+ _request.url = self._client.format_url(_request.url)
1115
1038
 
1039
+ _stream = False
1116
1040
  pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access
1117
- request, stream=False, **kwargs
1041
+ _request, stream=_stream, **kwargs
1118
1042
  )
1119
1043
 
1120
1044
  response = pipeline_response.http_response
@@ -1126,13 +1050,9 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
1126
1050
  deserialized = self._deserialize("StorageAccountListKeysResult", pipeline_response)
1127
1051
 
1128
1052
  if cls:
1129
- return cls(pipeline_response, deserialized, {})
1130
-
1131
- return deserialized
1053
+ return cls(pipeline_response, deserialized, {}) # type: ignore
1132
1054
 
1133
- regenerate_key.metadata = {
1134
- "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/regenerateKey"
1135
- }
1055
+ return deserialized # type: ignore
1136
1056
 
1137
1057
  @overload
1138
1058
  async def list_account_sas(
@@ -1159,7 +1079,6 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
1159
1079
  :keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
1160
1080
  Default value is "application/json".
1161
1081
  :paramtype content_type: str
1162
- :keyword callable cls: A custom type or function that will be passed the direct response
1163
1082
  :return: ListAccountSasResponse or the result of cls(response)
1164
1083
  :rtype: ~azure.mgmt.storage.v2022_09_01.models.ListAccountSasResponse
1165
1084
  :raises ~azure.core.exceptions.HttpResponseError:
@@ -1170,7 +1089,7 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
1170
1089
  self,
1171
1090
  resource_group_name: str,
1172
1091
  account_name: str,
1173
- parameters: IO,
1092
+ parameters: IO[bytes],
1174
1093
  *,
1175
1094
  content_type: str = "application/json",
1176
1095
  **kwargs: Any
@@ -1186,11 +1105,10 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
1186
1105
  :type account_name: str
1187
1106
  :param parameters: The parameters to provide to list SAS credentials for the storage account.
1188
1107
  Required.
1189
- :type parameters: IO
1108
+ :type parameters: IO[bytes]
1190
1109
  :keyword content_type: Body Parameter content-type. Content type parameter for binary body.
1191
1110
  Default value is "application/json".
1192
1111
  :paramtype content_type: str
1193
- :keyword callable cls: A custom type or function that will be passed the direct response
1194
1112
  :return: ListAccountSasResponse or the result of cls(response)
1195
1113
  :rtype: ~azure.mgmt.storage.v2022_09_01.models.ListAccountSasResponse
1196
1114
  :raises ~azure.core.exceptions.HttpResponseError:
@@ -1201,7 +1119,7 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
1201
1119
  self,
1202
1120
  resource_group_name: str,
1203
1121
  account_name: str,
1204
- parameters: Union[_models.AccountSasParameters, IO],
1122
+ parameters: Union[_models.AccountSasParameters, IO[bytes]],
1205
1123
  **kwargs: Any
1206
1124
  ) -> _models.ListAccountSasResponse:
1207
1125
  """List SAS credentials of a storage account.
@@ -1214,17 +1132,13 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
1214
1132
  lower-case letters only. Required.
1215
1133
  :type account_name: str
1216
1134
  :param parameters: The parameters to provide to list SAS credentials for the storage account.
1217
- Is either a AccountSasParameters type or a IO type. Required.
1218
- :type parameters: ~azure.mgmt.storage.v2022_09_01.models.AccountSasParameters or IO
1219
- :keyword content_type: Body Parameter content-type. Known values are: 'application/json'.
1220
- Default value is None.
1221
- :paramtype content_type: str
1222
- :keyword callable cls: A custom type or function that will be passed the direct response
1135
+ Is either a AccountSasParameters type or a IO[bytes] type. Required.
1136
+ :type parameters: ~azure.mgmt.storage.v2022_09_01.models.AccountSasParameters or IO[bytes]
1223
1137
  :return: ListAccountSasResponse or the result of cls(response)
1224
1138
  :rtype: ~azure.mgmt.storage.v2022_09_01.models.ListAccountSasResponse
1225
1139
  :raises ~azure.core.exceptions.HttpResponseError:
1226
1140
  """
1227
- error_map = {
1141
+ error_map: MutableMapping[int, Type[HttpResponseError]] = {
1228
1142
  401: ClientAuthenticationError,
1229
1143
  404: ResourceNotFoundError,
1230
1144
  409: ResourceExistsError,
@@ -1235,19 +1149,19 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
1235
1149
  _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
1236
1150
  _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
1237
1151
 
1238
- api_version: Literal["2022-09-01"] = kwargs.pop("api_version", _params.pop("api-version", "2022-09-01"))
1152
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-09-01"))
1239
1153
  content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
1240
1154
  cls: ClsType[_models.ListAccountSasResponse] = kwargs.pop("cls", None)
1241
1155
 
1242
1156
  content_type = content_type or "application/json"
1243
1157
  _json = None
1244
1158
  _content = None
1245
- if isinstance(parameters, (IO, bytes)):
1159
+ if isinstance(parameters, (IOBase, bytes)):
1246
1160
  _content = parameters
1247
1161
  else:
1248
1162
  _json = self._serialize.body(parameters, "AccountSasParameters")
1249
1163
 
1250
- request = build_list_account_sas_request(
1164
+ _request = build_list_account_sas_request(
1251
1165
  resource_group_name=resource_group_name,
1252
1166
  account_name=account_name,
1253
1167
  subscription_id=self._config.subscription_id,
@@ -1255,15 +1169,15 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
1255
1169
  content_type=content_type,
1256
1170
  json=_json,
1257
1171
  content=_content,
1258
- template_url=self.list_account_sas.metadata["url"],
1259
1172
  headers=_headers,
1260
1173
  params=_params,
1261
1174
  )
1262
- request = _convert_request(request)
1263
- request.url = self._client.format_url(request.url)
1175
+ _request = _convert_request(_request)
1176
+ _request.url = self._client.format_url(_request.url)
1264
1177
 
1178
+ _stream = False
1265
1179
  pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access
1266
- request, stream=False, **kwargs
1180
+ _request, stream=_stream, **kwargs
1267
1181
  )
1268
1182
 
1269
1183
  response = pipeline_response.http_response
@@ -1275,13 +1189,9 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
1275
1189
  deserialized = self._deserialize("ListAccountSasResponse", pipeline_response)
1276
1190
 
1277
1191
  if cls:
1278
- return cls(pipeline_response, deserialized, {})
1279
-
1280
- return deserialized
1192
+ return cls(pipeline_response, deserialized, {}) # type: ignore
1281
1193
 
1282
- list_account_sas.metadata = {
1283
- "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/ListAccountSas"
1284
- }
1194
+ return deserialized # type: ignore
1285
1195
 
1286
1196
  @overload
1287
1197
  async def list_service_sas(
@@ -1307,7 +1217,6 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
1307
1217
  :keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
1308
1218
  Default value is "application/json".
1309
1219
  :paramtype content_type: str
1310
- :keyword callable cls: A custom type or function that will be passed the direct response
1311
1220
  :return: ListServiceSasResponse or the result of cls(response)
1312
1221
  :rtype: ~azure.mgmt.storage.v2022_09_01.models.ListServiceSasResponse
1313
1222
  :raises ~azure.core.exceptions.HttpResponseError:
@@ -1318,7 +1227,7 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
1318
1227
  self,
1319
1228
  resource_group_name: str,
1320
1229
  account_name: str,
1321
- parameters: IO,
1230
+ parameters: IO[bytes],
1322
1231
  *,
1323
1232
  content_type: str = "application/json",
1324
1233
  **kwargs: Any
@@ -1333,11 +1242,10 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
1333
1242
  lower-case letters only. Required.
1334
1243
  :type account_name: str
1335
1244
  :param parameters: The parameters to provide to list service SAS credentials. Required.
1336
- :type parameters: IO
1245
+ :type parameters: IO[bytes]
1337
1246
  :keyword content_type: Body Parameter content-type. Content type parameter for binary body.
1338
1247
  Default value is "application/json".
1339
1248
  :paramtype content_type: str
1340
- :keyword callable cls: A custom type or function that will be passed the direct response
1341
1249
  :return: ListServiceSasResponse or the result of cls(response)
1342
1250
  :rtype: ~azure.mgmt.storage.v2022_09_01.models.ListServiceSasResponse
1343
1251
  :raises ~azure.core.exceptions.HttpResponseError:
@@ -1348,7 +1256,7 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
1348
1256
  self,
1349
1257
  resource_group_name: str,
1350
1258
  account_name: str,
1351
- parameters: Union[_models.ServiceSasParameters, IO],
1259
+ parameters: Union[_models.ServiceSasParameters, IO[bytes]],
1352
1260
  **kwargs: Any
1353
1261
  ) -> _models.ListServiceSasResponse:
1354
1262
  """List service SAS credentials of a specific resource.
@@ -1361,17 +1269,13 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
1361
1269
  lower-case letters only. Required.
1362
1270
  :type account_name: str
1363
1271
  :param parameters: The parameters to provide to list service SAS credentials. Is either a
1364
- ServiceSasParameters type or a IO type. Required.
1365
- :type parameters: ~azure.mgmt.storage.v2022_09_01.models.ServiceSasParameters or IO
1366
- :keyword content_type: Body Parameter content-type. Known values are: 'application/json'.
1367
- Default value is None.
1368
- :paramtype content_type: str
1369
- :keyword callable cls: A custom type or function that will be passed the direct response
1272
+ ServiceSasParameters type or a IO[bytes] type. Required.
1273
+ :type parameters: ~azure.mgmt.storage.v2022_09_01.models.ServiceSasParameters or IO[bytes]
1370
1274
  :return: ListServiceSasResponse or the result of cls(response)
1371
1275
  :rtype: ~azure.mgmt.storage.v2022_09_01.models.ListServiceSasResponse
1372
1276
  :raises ~azure.core.exceptions.HttpResponseError:
1373
1277
  """
1374
- error_map = {
1278
+ error_map: MutableMapping[int, Type[HttpResponseError]] = {
1375
1279
  401: ClientAuthenticationError,
1376
1280
  404: ResourceNotFoundError,
1377
1281
  409: ResourceExistsError,
@@ -1382,19 +1286,19 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
1382
1286
  _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
1383
1287
  _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
1384
1288
 
1385
- api_version: Literal["2022-09-01"] = kwargs.pop("api_version", _params.pop("api-version", "2022-09-01"))
1289
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-09-01"))
1386
1290
  content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
1387
1291
  cls: ClsType[_models.ListServiceSasResponse] = kwargs.pop("cls", None)
1388
1292
 
1389
1293
  content_type = content_type or "application/json"
1390
1294
  _json = None
1391
1295
  _content = None
1392
- if isinstance(parameters, (IO, bytes)):
1296
+ if isinstance(parameters, (IOBase, bytes)):
1393
1297
  _content = parameters
1394
1298
  else:
1395
1299
  _json = self._serialize.body(parameters, "ServiceSasParameters")
1396
1300
 
1397
- request = build_list_service_sas_request(
1301
+ _request = build_list_service_sas_request(
1398
1302
  resource_group_name=resource_group_name,
1399
1303
  account_name=account_name,
1400
1304
  subscription_id=self._config.subscription_id,
@@ -1402,15 +1306,15 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
1402
1306
  content_type=content_type,
1403
1307
  json=_json,
1404
1308
  content=_content,
1405
- template_url=self.list_service_sas.metadata["url"],
1406
1309
  headers=_headers,
1407
1310
  params=_params,
1408
1311
  )
1409
- request = _convert_request(request)
1410
- request.url = self._client.format_url(request.url)
1312
+ _request = _convert_request(_request)
1313
+ _request.url = self._client.format_url(_request.url)
1411
1314
 
1315
+ _stream = False
1412
1316
  pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access
1413
- request, stream=False, **kwargs
1317
+ _request, stream=_stream, **kwargs
1414
1318
  )
1415
1319
 
1416
1320
  response = pipeline_response.http_response
@@ -1422,18 +1326,14 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
1422
1326
  deserialized = self._deserialize("ListServiceSasResponse", pipeline_response)
1423
1327
 
1424
1328
  if cls:
1425
- return cls(pipeline_response, deserialized, {})
1426
-
1427
- return deserialized
1329
+ return cls(pipeline_response, deserialized, {}) # type: ignore
1428
1330
 
1429
- list_service_sas.metadata = {
1430
- "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/ListServiceSas"
1431
- }
1331
+ return deserialized # type: ignore
1432
1332
 
1433
1333
  async def _failover_initial( # pylint: disable=inconsistent-return-statements
1434
1334
  self, resource_group_name: str, account_name: str, failover_type: Literal["Planned"] = "Planned", **kwargs: Any
1435
1335
  ) -> None:
1436
- error_map = {
1336
+ error_map: MutableMapping[int, Type[HttpResponseError]] = {
1437
1337
  401: ClientAuthenticationError,
1438
1338
  404: ResourceNotFoundError,
1439
1339
  409: ResourceExistsError,
@@ -1444,24 +1344,24 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
1444
1344
  _headers = kwargs.pop("headers", {}) or {}
1445
1345
  _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
1446
1346
 
1447
- api_version: Literal["2022-09-01"] = kwargs.pop("api_version", _params.pop("api-version", "2022-09-01"))
1347
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-09-01"))
1448
1348
  cls: ClsType[None] = kwargs.pop("cls", None)
1449
1349
 
1450
- request = build_failover_request(
1350
+ _request = build_failover_request(
1451
1351
  resource_group_name=resource_group_name,
1452
1352
  account_name=account_name,
1453
1353
  subscription_id=self._config.subscription_id,
1454
1354
  failover_type=failover_type,
1455
1355
  api_version=api_version,
1456
- template_url=self._failover_initial.metadata["url"],
1457
1356
  headers=_headers,
1458
1357
  params=_params,
1459
1358
  )
1460
- request = _convert_request(request)
1461
- request.url = self._client.format_url(request.url)
1359
+ _request = _convert_request(_request)
1360
+ _request.url = self._client.format_url(_request.url)
1462
1361
 
1362
+ _stream = False
1463
1363
  pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access
1464
- request, stream=False, **kwargs
1364
+ _request, stream=_stream, **kwargs
1465
1365
  )
1466
1366
 
1467
1367
  response = pipeline_response.http_response
@@ -1471,11 +1371,7 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
1471
1371
  raise HttpResponseError(response=response, error_format=ARMErrorFormat)
1472
1372
 
1473
1373
  if cls:
1474
- return cls(pipeline_response, None, {})
1475
-
1476
- _failover_initial.metadata = {
1477
- "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/failover"
1478
- }
1374
+ return cls(pipeline_response, None, {}) # type: ignore
1479
1375
 
1480
1376
  @distributed_trace_async
1481
1377
  async def begin_failover(
@@ -1503,14 +1399,6 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
1503
1399
  :param failover_type: The parameter is set to 'Planned' to indicate whether a Planned failover
1504
1400
  is requested. Known values are "Planned" and None. Default value is "Planned".
1505
1401
  :type failover_type: str
1506
- :keyword callable cls: A custom type or function that will be passed the direct response
1507
- :keyword str continuation_token: A continuation token to restart a poller from a saved state.
1508
- :keyword polling: By default, your polling method will be AsyncARMPolling. Pass in False for
1509
- this operation to not poll, or pass in your own initialized polling object for a personal
1510
- polling strategy.
1511
- :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod
1512
- :keyword int polling_interval: Default waiting time between two polls for LRO operations if no
1513
- Retry-After header is present.
1514
1402
  :return: An instance of AsyncLROPoller that returns either None or the result of cls(response)
1515
1403
  :rtype: ~azure.core.polling.AsyncLROPoller[None]
1516
1404
  :raises ~azure.core.exceptions.HttpResponseError:
@@ -1518,7 +1406,7 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
1518
1406
  _headers = kwargs.pop("headers", {}) or {}
1519
1407
  _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
1520
1408
 
1521
- api_version: Literal["2022-09-01"] = kwargs.pop("api_version", _params.pop("api-version", "2022-09-01"))
1409
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-09-01"))
1522
1410
  cls: ClsType[None] = kwargs.pop("cls", None)
1523
1411
  polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True)
1524
1412
  lro_delay = kwargs.pop("polling_interval", self._config.polling_interval)
@@ -1538,7 +1426,7 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
1538
1426
 
1539
1427
  def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements
1540
1428
  if cls:
1541
- return cls(pipeline_response, None, {})
1429
+ return cls(pipeline_response, None, {}) # type: ignore
1542
1430
 
1543
1431
  if polling is True:
1544
1432
  polling_method: AsyncPollingMethod = cast(
@@ -1549,22 +1437,18 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
1549
1437
  else:
1550
1438
  polling_method = polling
1551
1439
  if cont_token:
1552
- return AsyncLROPoller.from_continuation_token(
1440
+ return AsyncLROPoller[None].from_continuation_token(
1553
1441
  polling_method=polling_method,
1554
1442
  continuation_token=cont_token,
1555
1443
  client=self._client,
1556
1444
  deserialization_callback=get_long_running_output,
1557
1445
  )
1558
- return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) # type: ignore
1559
-
1560
- begin_failover.metadata = {
1561
- "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/failover"
1562
- }
1446
+ return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore
1563
1447
 
1564
- async def _hierarchical_namespace_migration_initial( # pylint: disable=inconsistent-return-statements
1448
+ async def _hierarchical_namespace_migration_initial( # pylint: disable=inconsistent-return-statements,name-too-long
1565
1449
  self, resource_group_name: str, account_name: str, request_type: str, **kwargs: Any
1566
1450
  ) -> None:
1567
- error_map = {
1451
+ error_map: MutableMapping[int, Type[HttpResponseError]] = {
1568
1452
  401: ClientAuthenticationError,
1569
1453
  404: ResourceNotFoundError,
1570
1454
  409: ResourceExistsError,
@@ -1575,24 +1459,24 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
1575
1459
  _headers = kwargs.pop("headers", {}) or {}
1576
1460
  _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
1577
1461
 
1578
- api_version: Literal["2022-09-01"] = kwargs.pop("api_version", _params.pop("api-version", "2022-09-01"))
1462
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-09-01"))
1579
1463
  cls: ClsType[None] = kwargs.pop("cls", None)
1580
1464
 
1581
- request = build_hierarchical_namespace_migration_request(
1465
+ _request = build_hierarchical_namespace_migration_request(
1582
1466
  resource_group_name=resource_group_name,
1583
1467
  account_name=account_name,
1584
1468
  subscription_id=self._config.subscription_id,
1585
1469
  request_type=request_type,
1586
1470
  api_version=api_version,
1587
- template_url=self._hierarchical_namespace_migration_initial.metadata["url"],
1588
1471
  headers=_headers,
1589
1472
  params=_params,
1590
1473
  )
1591
- request = _convert_request(request)
1592
- request.url = self._client.format_url(request.url)
1474
+ _request = _convert_request(_request)
1475
+ _request.url = self._client.format_url(_request.url)
1593
1476
 
1477
+ _stream = False
1594
1478
  pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access
1595
- request, stream=False, **kwargs
1479
+ _request, stream=_stream, **kwargs
1596
1480
  )
1597
1481
 
1598
1482
  response = pipeline_response.http_response
@@ -1603,11 +1487,7 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
1603
1487
  raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
1604
1488
 
1605
1489
  if cls:
1606
- return cls(pipeline_response, None, {})
1607
-
1608
- _hierarchical_namespace_migration_initial.metadata = {
1609
- "url": "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/hnsonmigration"
1610
- }
1490
+ return cls(pipeline_response, None, {}) # type: ignore
1611
1491
 
1612
1492
  @distributed_trace_async
1613
1493
  async def begin_hierarchical_namespace_migration(
@@ -1627,14 +1507,6 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
1627
1507
  'HnsOnHydrationRequest'. The validation request will validate the migration whereas the
1628
1508
  hydration request will migrate the account. Required.
1629
1509
  :type request_type: str
1630
- :keyword callable cls: A custom type or function that will be passed the direct response
1631
- :keyword str continuation_token: A continuation token to restart a poller from a saved state.
1632
- :keyword polling: By default, your polling method will be AsyncARMPolling. Pass in False for
1633
- this operation to not poll, or pass in your own initialized polling object for a personal
1634
- polling strategy.
1635
- :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod
1636
- :keyword int polling_interval: Default waiting time between two polls for LRO operations if no
1637
- Retry-After header is present.
1638
1510
  :return: An instance of AsyncLROPoller that returns either None or the result of cls(response)
1639
1511
  :rtype: ~azure.core.polling.AsyncLROPoller[None]
1640
1512
  :raises ~azure.core.exceptions.HttpResponseError:
@@ -1642,7 +1514,7 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
1642
1514
  _headers = kwargs.pop("headers", {}) or {}
1643
1515
  _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
1644
1516
 
1645
- api_version: Literal["2022-09-01"] = kwargs.pop("api_version", _params.pop("api-version", "2022-09-01"))
1517
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-09-01"))
1646
1518
  cls: ClsType[None] = kwargs.pop("cls", None)
1647
1519
  polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True)
1648
1520
  lro_delay = kwargs.pop("polling_interval", self._config.polling_interval)
@@ -1662,7 +1534,7 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
1662
1534
 
1663
1535
  def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements
1664
1536
  if cls:
1665
- return cls(pipeline_response, None, {})
1537
+ return cls(pipeline_response, None, {}) # type: ignore
1666
1538
 
1667
1539
  if polling is True:
1668
1540
  polling_method: AsyncPollingMethod = cast(
@@ -1673,22 +1545,18 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
1673
1545
  else:
1674
1546
  polling_method = polling
1675
1547
  if cont_token:
1676
- return AsyncLROPoller.from_continuation_token(
1548
+ return AsyncLROPoller[None].from_continuation_token(
1677
1549
  polling_method=polling_method,
1678
1550
  continuation_token=cont_token,
1679
1551
  client=self._client,
1680
1552
  deserialization_callback=get_long_running_output,
1681
1553
  )
1682
- return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) # type: ignore
1554
+ return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore
1683
1555
 
1684
- begin_hierarchical_namespace_migration.metadata = {
1685
- "url": "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/hnsonmigration"
1686
- }
1687
-
1688
- async def _abort_hierarchical_namespace_migration_initial( # pylint: disable=inconsistent-return-statements
1556
+ async def _abort_hierarchical_namespace_migration_initial( # pylint: disable=inconsistent-return-statements,name-too-long
1689
1557
  self, resource_group_name: str, account_name: str, **kwargs: Any
1690
1558
  ) -> None:
1691
- error_map = {
1559
+ error_map: MutableMapping[int, Type[HttpResponseError]] = {
1692
1560
  401: ClientAuthenticationError,
1693
1561
  404: ResourceNotFoundError,
1694
1562
  409: ResourceExistsError,
@@ -1699,23 +1567,23 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
1699
1567
  _headers = kwargs.pop("headers", {}) or {}
1700
1568
  _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
1701
1569
 
1702
- api_version: Literal["2022-09-01"] = kwargs.pop("api_version", _params.pop("api-version", "2022-09-01"))
1570
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-09-01"))
1703
1571
  cls: ClsType[None] = kwargs.pop("cls", None)
1704
1572
 
1705
- request = build_abort_hierarchical_namespace_migration_request(
1573
+ _request = build_abort_hierarchical_namespace_migration_request(
1706
1574
  resource_group_name=resource_group_name,
1707
1575
  account_name=account_name,
1708
1576
  subscription_id=self._config.subscription_id,
1709
1577
  api_version=api_version,
1710
- template_url=self._abort_hierarchical_namespace_migration_initial.metadata["url"],
1711
1578
  headers=_headers,
1712
1579
  params=_params,
1713
1580
  )
1714
- request = _convert_request(request)
1715
- request.url = self._client.format_url(request.url)
1581
+ _request = _convert_request(_request)
1582
+ _request.url = self._client.format_url(_request.url)
1716
1583
 
1584
+ _stream = False
1717
1585
  pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access
1718
- request, stream=False, **kwargs
1586
+ _request, stream=_stream, **kwargs
1719
1587
  )
1720
1588
 
1721
1589
  response = pipeline_response.http_response
@@ -1726,14 +1594,10 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
1726
1594
  raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
1727
1595
 
1728
1596
  if cls:
1729
- return cls(pipeline_response, None, {})
1730
-
1731
- _abort_hierarchical_namespace_migration_initial.metadata = {
1732
- "url": "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/aborthnsonmigration"
1733
- }
1597
+ return cls(pipeline_response, None, {}) # type: ignore
1734
1598
 
1735
1599
  @distributed_trace_async
1736
- async def begin_abort_hierarchical_namespace_migration(
1600
+ async def begin_abort_hierarchical_namespace_migration( # pylint: disable=name-too-long
1737
1601
  self, resource_group_name: str, account_name: str, **kwargs: Any
1738
1602
  ) -> AsyncLROPoller[None]:
1739
1603
  """Abort live Migration of storage account to enable Hns.
@@ -1745,14 +1609,6 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
1745
1609
  Storage account names must be between 3 and 24 characters in length and use numbers and
1746
1610
  lower-case letters only. Required.
1747
1611
  :type account_name: str
1748
- :keyword callable cls: A custom type or function that will be passed the direct response
1749
- :keyword str continuation_token: A continuation token to restart a poller from a saved state.
1750
- :keyword polling: By default, your polling method will be AsyncARMPolling. Pass in False for
1751
- this operation to not poll, or pass in your own initialized polling object for a personal
1752
- polling strategy.
1753
- :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod
1754
- :keyword int polling_interval: Default waiting time between two polls for LRO operations if no
1755
- Retry-After header is present.
1756
1612
  :return: An instance of AsyncLROPoller that returns either None or the result of cls(response)
1757
1613
  :rtype: ~azure.core.polling.AsyncLROPoller[None]
1758
1614
  :raises ~azure.core.exceptions.HttpResponseError:
@@ -1760,7 +1616,7 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
1760
1616
  _headers = kwargs.pop("headers", {}) or {}
1761
1617
  _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
1762
1618
 
1763
- api_version: Literal["2022-09-01"] = kwargs.pop("api_version", _params.pop("api-version", "2022-09-01"))
1619
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-09-01"))
1764
1620
  cls: ClsType[None] = kwargs.pop("cls", None)
1765
1621
  polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True)
1766
1622
  lro_delay = kwargs.pop("polling_interval", self._config.polling_interval)
@@ -1779,7 +1635,7 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
1779
1635
 
1780
1636
  def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements
1781
1637
  if cls:
1782
- return cls(pipeline_response, None, {})
1638
+ return cls(pipeline_response, None, {}) # type: ignore
1783
1639
 
1784
1640
  if polling is True:
1785
1641
  polling_method: AsyncPollingMethod = cast(
@@ -1790,26 +1646,22 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
1790
1646
  else:
1791
1647
  polling_method = polling
1792
1648
  if cont_token:
1793
- return AsyncLROPoller.from_continuation_token(
1649
+ return AsyncLROPoller[None].from_continuation_token(
1794
1650
  polling_method=polling_method,
1795
1651
  continuation_token=cont_token,
1796
1652
  client=self._client,
1797
1653
  deserialization_callback=get_long_running_output,
1798
1654
  )
1799
- return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) # type: ignore
1800
-
1801
- begin_abort_hierarchical_namespace_migration.metadata = {
1802
- "url": "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/aborthnsonmigration"
1803
- }
1655
+ return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore
1804
1656
 
1805
1657
  async def _restore_blob_ranges_initial(
1806
1658
  self,
1807
1659
  resource_group_name: str,
1808
1660
  account_name: str,
1809
- parameters: Union[_models.BlobRestoreParameters, IO],
1661
+ parameters: Union[_models.BlobRestoreParameters, IO[bytes]],
1810
1662
  **kwargs: Any
1811
1663
  ) -> _models.BlobRestoreStatus:
1812
- error_map = {
1664
+ error_map: MutableMapping[int, Type[HttpResponseError]] = {
1813
1665
  401: ClientAuthenticationError,
1814
1666
  404: ResourceNotFoundError,
1815
1667
  409: ResourceExistsError,
@@ -1820,19 +1672,19 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
1820
1672
  _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
1821
1673
  _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
1822
1674
 
1823
- api_version: Literal["2022-09-01"] = kwargs.pop("api_version", _params.pop("api-version", "2022-09-01"))
1675
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-09-01"))
1824
1676
  content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
1825
1677
  cls: ClsType[_models.BlobRestoreStatus] = kwargs.pop("cls", None)
1826
1678
 
1827
1679
  content_type = content_type or "application/json"
1828
1680
  _json = None
1829
1681
  _content = None
1830
- if isinstance(parameters, (IO, bytes)):
1682
+ if isinstance(parameters, (IOBase, bytes)):
1831
1683
  _content = parameters
1832
1684
  else:
1833
1685
  _json = self._serialize.body(parameters, "BlobRestoreParameters")
1834
1686
 
1835
- request = build_restore_blob_ranges_request(
1687
+ _request = build_restore_blob_ranges_request(
1836
1688
  resource_group_name=resource_group_name,
1837
1689
  account_name=account_name,
1838
1690
  subscription_id=self._config.subscription_id,
@@ -1840,15 +1692,15 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
1840
1692
  content_type=content_type,
1841
1693
  json=_json,
1842
1694
  content=_content,
1843
- template_url=self._restore_blob_ranges_initial.metadata["url"],
1844
1695
  headers=_headers,
1845
1696
  params=_params,
1846
1697
  )
1847
- request = _convert_request(request)
1848
- request.url = self._client.format_url(request.url)
1698
+ _request = _convert_request(_request)
1699
+ _request.url = self._client.format_url(_request.url)
1849
1700
 
1701
+ _stream = False
1850
1702
  pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access
1851
- request, stream=False, **kwargs
1703
+ _request, stream=_stream, **kwargs
1852
1704
  )
1853
1705
 
1854
1706
  response = pipeline_response.http_response
@@ -1868,10 +1720,6 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
1868
1720
 
1869
1721
  return deserialized # type: ignore
1870
1722
 
1871
- _restore_blob_ranges_initial.metadata = {
1872
- "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/restoreBlobRanges"
1873
- }
1874
-
1875
1723
  @overload
1876
1724
  async def begin_restore_blob_ranges(
1877
1725
  self,
@@ -1896,14 +1744,6 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
1896
1744
  :keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
1897
1745
  Default value is "application/json".
1898
1746
  :paramtype content_type: str
1899
- :keyword callable cls: A custom type or function that will be passed the direct response
1900
- :keyword str continuation_token: A continuation token to restart a poller from a saved state.
1901
- :keyword polling: By default, your polling method will be AsyncARMPolling. Pass in False for
1902
- this operation to not poll, or pass in your own initialized polling object for a personal
1903
- polling strategy.
1904
- :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod
1905
- :keyword int polling_interval: Default waiting time between two polls for LRO operations if no
1906
- Retry-After header is present.
1907
1747
  :return: An instance of AsyncLROPoller that returns either BlobRestoreStatus or the result of
1908
1748
  cls(response)
1909
1749
  :rtype:
@@ -1916,7 +1756,7 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
1916
1756
  self,
1917
1757
  resource_group_name: str,
1918
1758
  account_name: str,
1919
- parameters: IO,
1759
+ parameters: IO[bytes],
1920
1760
  *,
1921
1761
  content_type: str = "application/json",
1922
1762
  **kwargs: Any
@@ -1931,18 +1771,10 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
1931
1771
  lower-case letters only. Required.
1932
1772
  :type account_name: str
1933
1773
  :param parameters: The parameters to provide for restore blob ranges. Required.
1934
- :type parameters: IO
1774
+ :type parameters: IO[bytes]
1935
1775
  :keyword content_type: Body Parameter content-type. Content type parameter for binary body.
1936
1776
  Default value is "application/json".
1937
1777
  :paramtype content_type: str
1938
- :keyword callable cls: A custom type or function that will be passed the direct response
1939
- :keyword str continuation_token: A continuation token to restart a poller from a saved state.
1940
- :keyword polling: By default, your polling method will be AsyncARMPolling. Pass in False for
1941
- this operation to not poll, or pass in your own initialized polling object for a personal
1942
- polling strategy.
1943
- :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod
1944
- :keyword int polling_interval: Default waiting time between two polls for LRO operations if no
1945
- Retry-After header is present.
1946
1778
  :return: An instance of AsyncLROPoller that returns either BlobRestoreStatus or the result of
1947
1779
  cls(response)
1948
1780
  :rtype:
@@ -1955,7 +1787,7 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
1955
1787
  self,
1956
1788
  resource_group_name: str,
1957
1789
  account_name: str,
1958
- parameters: Union[_models.BlobRestoreParameters, IO],
1790
+ parameters: Union[_models.BlobRestoreParameters, IO[bytes]],
1959
1791
  **kwargs: Any
1960
1792
  ) -> AsyncLROPoller[_models.BlobRestoreStatus]:
1961
1793
  """Restore blobs in the specified blob ranges.
@@ -1968,19 +1800,8 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
1968
1800
  lower-case letters only. Required.
1969
1801
  :type account_name: str
1970
1802
  :param parameters: The parameters to provide for restore blob ranges. Is either a
1971
- BlobRestoreParameters type or a IO type. Required.
1972
- :type parameters: ~azure.mgmt.storage.v2022_09_01.models.BlobRestoreParameters or IO
1973
- :keyword content_type: Body Parameter content-type. Known values are: 'application/json'.
1974
- Default value is None.
1975
- :paramtype content_type: str
1976
- :keyword callable cls: A custom type or function that will be passed the direct response
1977
- :keyword str continuation_token: A continuation token to restart a poller from a saved state.
1978
- :keyword polling: By default, your polling method will be AsyncARMPolling. Pass in False for
1979
- this operation to not poll, or pass in your own initialized polling object for a personal
1980
- polling strategy.
1981
- :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod
1982
- :keyword int polling_interval: Default waiting time between two polls for LRO operations if no
1983
- Retry-After header is present.
1803
+ BlobRestoreParameters type or a IO[bytes] type. Required.
1804
+ :type parameters: ~azure.mgmt.storage.v2022_09_01.models.BlobRestoreParameters or IO[bytes]
1984
1805
  :return: An instance of AsyncLROPoller that returns either BlobRestoreStatus or the result of
1985
1806
  cls(response)
1986
1807
  :rtype:
@@ -1990,7 +1811,7 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
1990
1811
  _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
1991
1812
  _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
1992
1813
 
1993
- api_version: Literal["2022-09-01"] = kwargs.pop("api_version", _params.pop("api-version", "2022-09-01"))
1814
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-09-01"))
1994
1815
  content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
1995
1816
  cls: ClsType[_models.BlobRestoreStatus] = kwargs.pop("cls", None)
1996
1817
  polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True)
@@ -2013,7 +1834,7 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
2013
1834
  def get_long_running_output(pipeline_response):
2014
1835
  deserialized = self._deserialize("BlobRestoreStatus", pipeline_response)
2015
1836
  if cls:
2016
- return cls(pipeline_response, deserialized, {})
1837
+ return cls(pipeline_response, deserialized, {}) # type: ignore
2017
1838
  return deserialized
2018
1839
 
2019
1840
  if polling is True:
@@ -2025,17 +1846,15 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
2025
1846
  else:
2026
1847
  polling_method = polling
2027
1848
  if cont_token:
2028
- return AsyncLROPoller.from_continuation_token(
1849
+ return AsyncLROPoller[_models.BlobRestoreStatus].from_continuation_token(
2029
1850
  polling_method=polling_method,
2030
1851
  continuation_token=cont_token,
2031
1852
  client=self._client,
2032
1853
  deserialization_callback=get_long_running_output,
2033
1854
  )
2034
- return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) # type: ignore
2035
-
2036
- begin_restore_blob_ranges.metadata = {
2037
- "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/restoreBlobRanges"
2038
- }
1855
+ return AsyncLROPoller[_models.BlobRestoreStatus](
1856
+ self._client, raw_result, get_long_running_output, polling_method # type: ignore
1857
+ )
2039
1858
 
2040
1859
  @distributed_trace_async
2041
1860
  async def revoke_user_delegation_keys( # pylint: disable=inconsistent-return-statements
@@ -2050,12 +1869,11 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
2050
1869
  Storage account names must be between 3 and 24 characters in length and use numbers and
2051
1870
  lower-case letters only. Required.
2052
1871
  :type account_name: str
2053
- :keyword callable cls: A custom type or function that will be passed the direct response
2054
1872
  :return: None or the result of cls(response)
2055
1873
  :rtype: None
2056
1874
  :raises ~azure.core.exceptions.HttpResponseError:
2057
1875
  """
2058
- error_map = {
1876
+ error_map: MutableMapping[int, Type[HttpResponseError]] = {
2059
1877
  401: ClientAuthenticationError,
2060
1878
  404: ResourceNotFoundError,
2061
1879
  409: ResourceExistsError,
@@ -2066,23 +1884,23 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
2066
1884
  _headers = kwargs.pop("headers", {}) or {}
2067
1885
  _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
2068
1886
 
2069
- api_version: Literal["2022-09-01"] = kwargs.pop("api_version", _params.pop("api-version", "2022-09-01"))
1887
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-09-01"))
2070
1888
  cls: ClsType[None] = kwargs.pop("cls", None)
2071
1889
 
2072
- request = build_revoke_user_delegation_keys_request(
1890
+ _request = build_revoke_user_delegation_keys_request(
2073
1891
  resource_group_name=resource_group_name,
2074
1892
  account_name=account_name,
2075
1893
  subscription_id=self._config.subscription_id,
2076
1894
  api_version=api_version,
2077
- template_url=self.revoke_user_delegation_keys.metadata["url"],
2078
1895
  headers=_headers,
2079
1896
  params=_params,
2080
1897
  )
2081
- request = _convert_request(request)
2082
- request.url = self._client.format_url(request.url)
1898
+ _request = _convert_request(_request)
1899
+ _request.url = self._client.format_url(_request.url)
2083
1900
 
1901
+ _stream = False
2084
1902
  pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access
2085
- request, stream=False, **kwargs
1903
+ _request, stream=_stream, **kwargs
2086
1904
  )
2087
1905
 
2088
1906
  response = pipeline_response.http_response
@@ -2092,8 +1910,4 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
2092
1910
  raise HttpResponseError(response=response, error_format=ARMErrorFormat)
2093
1911
 
2094
1912
  if cls:
2095
- return cls(pipeline_response, None, {})
2096
-
2097
- revoke_user_delegation_keys.metadata = {
2098
- "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/revokeUserDelegationKeys"
2099
- }
1913
+ return cls(pipeline_response, None, {}) # type: ignore