azure-mgmt-storage 21.1.0b1__py3-none-any.whl → 21.2.1__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (813) hide show
  1. azure/mgmt/storage/_configuration.py +2 -3
  2. azure/mgmt/storage/_serialization.py +66 -60
  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.1.dist-info}/METADATA +52 -13
  809. azure_mgmt_storage-21.2.1.dist-info/RECORD +979 -0
  810. {azure_mgmt_storage-21.1.0b1.dist-info → azure_mgmt_storage-21.2.1.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.1.dist-info}/LICENSE +0 -0
  813. {azure_mgmt_storage-21.1.0b1.dist-info → azure_mgmt_storage-21.2.1.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.v2021_06_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.v2021_06_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.v2021_06_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.v2021_06_01.models.StorageAccountCheckNameAvailabilityParameters or
135
+ IO[bytes]
139
136
  :return: CheckNameAvailabilityResult or the result of cls(response)
140
137
  :rtype: ~azure.mgmt.storage.v2021_06_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["2021-06-01"] = kwargs.pop("api_version", _params.pop("api-version", "2021-06-01"))
151
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2021-06-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["2021-06-01"] = kwargs.pop("api_version", _params.pop("api-version", "2021-06-01"))
211
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2021-06-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.v2021_06_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.v2021_06_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["2021-06-01"] = kwargs.pop("api_version", _params.pop("api-version", "2021-06-01"))
358
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2021-06-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["2021-06-01"] = kwargs.pop("api_version", _params.pop("api-version", "2021-06-01"))
429
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2021-06-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.v2021_06_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.v2021_06_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["2021-06-01"] = kwargs.pop("api_version", _params.pop("api-version", "2021-06-01"))
496
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2021-06-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.v2021_06_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.v2021_06_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.v2021_06_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.v2021_06_01.models.StorageAccountUpdateParameters or
628
+ IO[bytes]
683
629
  :return: StorageAccount or the result of cls(response)
684
630
  :rtype: ~azure.mgmt.storage.v2021_06_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["2021-06-01"] = kwargs.pop("api_version", _params.pop("api-version", "2021-06-01"))
644
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2021-06-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.v2021_06_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["2021-06-01"] = kwargs.pop("api_version", _params.pop("api-version", "2021-06-01"))
701
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2021-06-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.v2021_06_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["2021-06-01"] = kwargs.pop("api_version", _params.pop("api-version", "2021-06-01"))
784
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2021-06-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.v2021_06_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["2021-06-01"] = kwargs.pop("api_version", _params.pop("api-version", "2021-06-01"))
882
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2021-06-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.v2021_06_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.v2021_06_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.v2021_06_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.v2021_06_01.models.StorageAccountRegenerateKeyParameters or IO[bytes]
1074
998
  :return: StorageAccountListKeysResult or the result of cls(response)
1075
999
  :rtype: ~azure.mgmt.storage.v2021_06_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["2021-06-01"] = kwargs.pop("api_version", _params.pop("api-version", "2021-06-01"))
1013
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2021-06-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.v2021_06_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.v2021_06_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.v2021_06_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.v2021_06_01.models.AccountSasParameters or IO[bytes]
1223
1137
  :return: ListAccountSasResponse or the result of cls(response)
1224
1138
  :rtype: ~azure.mgmt.storage.v2021_06_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["2021-06-01"] = kwargs.pop("api_version", _params.pop("api-version", "2021-06-01"))
1152
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2021-06-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.v2021_06_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.v2021_06_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.v2021_06_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.v2021_06_01.models.ServiceSasParameters or IO[bytes]
1370
1274
  :return: ListServiceSasResponse or the result of cls(response)
1371
1275
  :rtype: ~azure.mgmt.storage.v2021_06_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["2021-06-01"] = kwargs.pop("api_version", _params.pop("api-version", "2021-06-01"))
1289
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2021-06-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, **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,23 +1344,23 @@ 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["2021-06-01"] = kwargs.pop("api_version", _params.pop("api-version", "2021-06-01"))
1347
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2021-06-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
  api_version=api_version,
1455
- template_url=self._failover_initial.metadata["url"],
1456
1355
  headers=_headers,
1457
1356
  params=_params,
1458
1357
  )
1459
- request = _convert_request(request)
1460
- request.url = self._client.format_url(request.url)
1358
+ _request = _convert_request(_request)
1359
+ _request.url = self._client.format_url(_request.url)
1461
1360
 
1361
+ _stream = False
1462
1362
  pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access
1463
- request, stream=False, **kwargs
1363
+ _request, stream=_stream, **kwargs
1464
1364
  )
1465
1365
 
1466
1366
  response = pipeline_response.http_response
@@ -1470,11 +1370,7 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
1470
1370
  raise HttpResponseError(response=response, error_format=ARMErrorFormat)
1471
1371
 
1472
1372
  if cls:
1473
- return cls(pipeline_response, None, {})
1474
-
1475
- _failover_initial.metadata = {
1476
- "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/failover"
1477
- }
1373
+ return cls(pipeline_response, None, {}) # type: ignore
1478
1374
 
1479
1375
  @distributed_trace_async
1480
1376
  async def begin_failover(self, resource_group_name: str, account_name: str, **kwargs: Any) -> AsyncLROPoller[None]:
@@ -1489,14 +1385,6 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
1489
1385
  Storage account names must be between 3 and 24 characters in length and use numbers and
1490
1386
  lower-case letters only. Required.
1491
1387
  :type account_name: str
1492
- :keyword callable cls: A custom type or function that will be passed the direct response
1493
- :keyword str continuation_token: A continuation token to restart a poller from a saved state.
1494
- :keyword polling: By default, your polling method will be AsyncARMPolling. Pass in False for
1495
- this operation to not poll, or pass in your own initialized polling object for a personal
1496
- polling strategy.
1497
- :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod
1498
- :keyword int polling_interval: Default waiting time between two polls for LRO operations if no
1499
- Retry-After header is present.
1500
1388
  :return: An instance of AsyncLROPoller that returns either None or the result of cls(response)
1501
1389
  :rtype: ~azure.core.polling.AsyncLROPoller[None]
1502
1390
  :raises ~azure.core.exceptions.HttpResponseError:
@@ -1504,7 +1392,7 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
1504
1392
  _headers = kwargs.pop("headers", {}) or {}
1505
1393
  _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
1506
1394
 
1507
- api_version: Literal["2021-06-01"] = kwargs.pop("api_version", _params.pop("api-version", "2021-06-01"))
1395
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2021-06-01"))
1508
1396
  cls: ClsType[None] = kwargs.pop("cls", None)
1509
1397
  polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True)
1510
1398
  lro_delay = kwargs.pop("polling_interval", self._config.polling_interval)
@@ -1523,7 +1411,7 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
1523
1411
 
1524
1412
  def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements
1525
1413
  if cls:
1526
- return cls(pipeline_response, None, {})
1414
+ return cls(pipeline_response, None, {}) # type: ignore
1527
1415
 
1528
1416
  if polling is True:
1529
1417
  polling_method: AsyncPollingMethod = cast(
@@ -1534,22 +1422,18 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
1534
1422
  else:
1535
1423
  polling_method = polling
1536
1424
  if cont_token:
1537
- return AsyncLROPoller.from_continuation_token(
1425
+ return AsyncLROPoller[None].from_continuation_token(
1538
1426
  polling_method=polling_method,
1539
1427
  continuation_token=cont_token,
1540
1428
  client=self._client,
1541
1429
  deserialization_callback=get_long_running_output,
1542
1430
  )
1543
- return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) # type: ignore
1544
-
1545
- begin_failover.metadata = {
1546
- "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/failover"
1547
- }
1431
+ return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore
1548
1432
 
1549
- async def _hierarchical_namespace_migration_initial( # pylint: disable=inconsistent-return-statements
1433
+ async def _hierarchical_namespace_migration_initial( # pylint: disable=inconsistent-return-statements,name-too-long
1550
1434
  self, resource_group_name: str, account_name: str, request_type: str, **kwargs: Any
1551
1435
  ) -> None:
1552
- error_map = {
1436
+ error_map: MutableMapping[int, Type[HttpResponseError]] = {
1553
1437
  401: ClientAuthenticationError,
1554
1438
  404: ResourceNotFoundError,
1555
1439
  409: ResourceExistsError,
@@ -1560,24 +1444,24 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
1560
1444
  _headers = kwargs.pop("headers", {}) or {}
1561
1445
  _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
1562
1446
 
1563
- api_version: Literal["2021-06-01"] = kwargs.pop("api_version", _params.pop("api-version", "2021-06-01"))
1447
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2021-06-01"))
1564
1448
  cls: ClsType[None] = kwargs.pop("cls", None)
1565
1449
 
1566
- request = build_hierarchical_namespace_migration_request(
1450
+ _request = build_hierarchical_namespace_migration_request(
1567
1451
  resource_group_name=resource_group_name,
1568
1452
  account_name=account_name,
1569
1453
  subscription_id=self._config.subscription_id,
1570
1454
  request_type=request_type,
1571
1455
  api_version=api_version,
1572
- template_url=self._hierarchical_namespace_migration_initial.metadata["url"],
1573
1456
  headers=_headers,
1574
1457
  params=_params,
1575
1458
  )
1576
- request = _convert_request(request)
1577
- request.url = self._client.format_url(request.url)
1459
+ _request = _convert_request(_request)
1460
+ _request.url = self._client.format_url(_request.url)
1578
1461
 
1462
+ _stream = False
1579
1463
  pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access
1580
- request, stream=False, **kwargs
1464
+ _request, stream=_stream, **kwargs
1581
1465
  )
1582
1466
 
1583
1467
  response = pipeline_response.http_response
@@ -1588,11 +1472,7 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
1588
1472
  raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
1589
1473
 
1590
1474
  if cls:
1591
- return cls(pipeline_response, None, {})
1592
-
1593
- _hierarchical_namespace_migration_initial.metadata = {
1594
- "url": "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/hnsonmigration"
1595
- }
1475
+ return cls(pipeline_response, None, {}) # type: ignore
1596
1476
 
1597
1477
  @distributed_trace_async
1598
1478
  async def begin_hierarchical_namespace_migration(
@@ -1612,14 +1492,6 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
1612
1492
  'HnsOnHydrationRequest'. The validation request will validate the migration whereas the
1613
1493
  hydration request will migrate the account. Required.
1614
1494
  :type request_type: str
1615
- :keyword callable cls: A custom type or function that will be passed the direct response
1616
- :keyword str continuation_token: A continuation token to restart a poller from a saved state.
1617
- :keyword polling: By default, your polling method will be AsyncARMPolling. Pass in False for
1618
- this operation to not poll, or pass in your own initialized polling object for a personal
1619
- polling strategy.
1620
- :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod
1621
- :keyword int polling_interval: Default waiting time between two polls for LRO operations if no
1622
- Retry-After header is present.
1623
1495
  :return: An instance of AsyncLROPoller that returns either None or the result of cls(response)
1624
1496
  :rtype: ~azure.core.polling.AsyncLROPoller[None]
1625
1497
  :raises ~azure.core.exceptions.HttpResponseError:
@@ -1627,7 +1499,7 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
1627
1499
  _headers = kwargs.pop("headers", {}) or {}
1628
1500
  _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
1629
1501
 
1630
- api_version: Literal["2021-06-01"] = kwargs.pop("api_version", _params.pop("api-version", "2021-06-01"))
1502
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2021-06-01"))
1631
1503
  cls: ClsType[None] = kwargs.pop("cls", None)
1632
1504
  polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True)
1633
1505
  lro_delay = kwargs.pop("polling_interval", self._config.polling_interval)
@@ -1647,7 +1519,7 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
1647
1519
 
1648
1520
  def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements
1649
1521
  if cls:
1650
- return cls(pipeline_response, None, {})
1522
+ return cls(pipeline_response, None, {}) # type: ignore
1651
1523
 
1652
1524
  if polling is True:
1653
1525
  polling_method: AsyncPollingMethod = cast(
@@ -1658,22 +1530,18 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
1658
1530
  else:
1659
1531
  polling_method = polling
1660
1532
  if cont_token:
1661
- return AsyncLROPoller.from_continuation_token(
1533
+ return AsyncLROPoller[None].from_continuation_token(
1662
1534
  polling_method=polling_method,
1663
1535
  continuation_token=cont_token,
1664
1536
  client=self._client,
1665
1537
  deserialization_callback=get_long_running_output,
1666
1538
  )
1667
- return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) # type: ignore
1539
+ return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore
1668
1540
 
1669
- begin_hierarchical_namespace_migration.metadata = {
1670
- "url": "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/hnsonmigration"
1671
- }
1672
-
1673
- async def _abort_hierarchical_namespace_migration_initial( # pylint: disable=inconsistent-return-statements
1541
+ async def _abort_hierarchical_namespace_migration_initial( # pylint: disable=inconsistent-return-statements,name-too-long
1674
1542
  self, resource_group_name: str, account_name: str, **kwargs: Any
1675
1543
  ) -> None:
1676
- error_map = {
1544
+ error_map: MutableMapping[int, Type[HttpResponseError]] = {
1677
1545
  401: ClientAuthenticationError,
1678
1546
  404: ResourceNotFoundError,
1679
1547
  409: ResourceExistsError,
@@ -1684,23 +1552,23 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
1684
1552
  _headers = kwargs.pop("headers", {}) or {}
1685
1553
  _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
1686
1554
 
1687
- api_version: Literal["2021-06-01"] = kwargs.pop("api_version", _params.pop("api-version", "2021-06-01"))
1555
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2021-06-01"))
1688
1556
  cls: ClsType[None] = kwargs.pop("cls", None)
1689
1557
 
1690
- request = build_abort_hierarchical_namespace_migration_request(
1558
+ _request = build_abort_hierarchical_namespace_migration_request(
1691
1559
  resource_group_name=resource_group_name,
1692
1560
  account_name=account_name,
1693
1561
  subscription_id=self._config.subscription_id,
1694
1562
  api_version=api_version,
1695
- template_url=self._abort_hierarchical_namespace_migration_initial.metadata["url"],
1696
1563
  headers=_headers,
1697
1564
  params=_params,
1698
1565
  )
1699
- request = _convert_request(request)
1700
- request.url = self._client.format_url(request.url)
1566
+ _request = _convert_request(_request)
1567
+ _request.url = self._client.format_url(_request.url)
1701
1568
 
1569
+ _stream = False
1702
1570
  pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access
1703
- request, stream=False, **kwargs
1571
+ _request, stream=_stream, **kwargs
1704
1572
  )
1705
1573
 
1706
1574
  response = pipeline_response.http_response
@@ -1711,14 +1579,10 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
1711
1579
  raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
1712
1580
 
1713
1581
  if cls:
1714
- return cls(pipeline_response, None, {})
1715
-
1716
- _abort_hierarchical_namespace_migration_initial.metadata = {
1717
- "url": "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/aborthnsonmigration"
1718
- }
1582
+ return cls(pipeline_response, None, {}) # type: ignore
1719
1583
 
1720
1584
  @distributed_trace_async
1721
- async def begin_abort_hierarchical_namespace_migration(
1585
+ async def begin_abort_hierarchical_namespace_migration( # pylint: disable=name-too-long
1722
1586
  self, resource_group_name: str, account_name: str, **kwargs: Any
1723
1587
  ) -> AsyncLROPoller[None]:
1724
1588
  """Abort live Migration of storage account to enable Hns.
@@ -1730,14 +1594,6 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
1730
1594
  Storage account names must be between 3 and 24 characters in length and use numbers and
1731
1595
  lower-case letters only. Required.
1732
1596
  :type account_name: str
1733
- :keyword callable cls: A custom type or function that will be passed the direct response
1734
- :keyword str continuation_token: A continuation token to restart a poller from a saved state.
1735
- :keyword polling: By default, your polling method will be AsyncARMPolling. Pass in False for
1736
- this operation to not poll, or pass in your own initialized polling object for a personal
1737
- polling strategy.
1738
- :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod
1739
- :keyword int polling_interval: Default waiting time between two polls for LRO operations if no
1740
- Retry-After header is present.
1741
1597
  :return: An instance of AsyncLROPoller that returns either None or the result of cls(response)
1742
1598
  :rtype: ~azure.core.polling.AsyncLROPoller[None]
1743
1599
  :raises ~azure.core.exceptions.HttpResponseError:
@@ -1745,7 +1601,7 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
1745
1601
  _headers = kwargs.pop("headers", {}) or {}
1746
1602
  _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
1747
1603
 
1748
- api_version: Literal["2021-06-01"] = kwargs.pop("api_version", _params.pop("api-version", "2021-06-01"))
1604
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2021-06-01"))
1749
1605
  cls: ClsType[None] = kwargs.pop("cls", None)
1750
1606
  polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True)
1751
1607
  lro_delay = kwargs.pop("polling_interval", self._config.polling_interval)
@@ -1764,7 +1620,7 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
1764
1620
 
1765
1621
  def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements
1766
1622
  if cls:
1767
- return cls(pipeline_response, None, {})
1623
+ return cls(pipeline_response, None, {}) # type: ignore
1768
1624
 
1769
1625
  if polling is True:
1770
1626
  polling_method: AsyncPollingMethod = cast(
@@ -1775,26 +1631,22 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
1775
1631
  else:
1776
1632
  polling_method = polling
1777
1633
  if cont_token:
1778
- return AsyncLROPoller.from_continuation_token(
1634
+ return AsyncLROPoller[None].from_continuation_token(
1779
1635
  polling_method=polling_method,
1780
1636
  continuation_token=cont_token,
1781
1637
  client=self._client,
1782
1638
  deserialization_callback=get_long_running_output,
1783
1639
  )
1784
- return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) # type: ignore
1785
-
1786
- begin_abort_hierarchical_namespace_migration.metadata = {
1787
- "url": "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/aborthnsonmigration"
1788
- }
1640
+ return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore
1789
1641
 
1790
1642
  async def _restore_blob_ranges_initial(
1791
1643
  self,
1792
1644
  resource_group_name: str,
1793
1645
  account_name: str,
1794
- parameters: Union[_models.BlobRestoreParameters, IO],
1646
+ parameters: Union[_models.BlobRestoreParameters, IO[bytes]],
1795
1647
  **kwargs: Any
1796
1648
  ) -> _models.BlobRestoreStatus:
1797
- error_map = {
1649
+ error_map: MutableMapping[int, Type[HttpResponseError]] = {
1798
1650
  401: ClientAuthenticationError,
1799
1651
  404: ResourceNotFoundError,
1800
1652
  409: ResourceExistsError,
@@ -1805,19 +1657,19 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
1805
1657
  _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
1806
1658
  _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
1807
1659
 
1808
- api_version: Literal["2021-06-01"] = kwargs.pop("api_version", _params.pop("api-version", "2021-06-01"))
1660
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2021-06-01"))
1809
1661
  content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
1810
1662
  cls: ClsType[_models.BlobRestoreStatus] = kwargs.pop("cls", None)
1811
1663
 
1812
1664
  content_type = content_type or "application/json"
1813
1665
  _json = None
1814
1666
  _content = None
1815
- if isinstance(parameters, (IO, bytes)):
1667
+ if isinstance(parameters, (IOBase, bytes)):
1816
1668
  _content = parameters
1817
1669
  else:
1818
1670
  _json = self._serialize.body(parameters, "BlobRestoreParameters")
1819
1671
 
1820
- request = build_restore_blob_ranges_request(
1672
+ _request = build_restore_blob_ranges_request(
1821
1673
  resource_group_name=resource_group_name,
1822
1674
  account_name=account_name,
1823
1675
  subscription_id=self._config.subscription_id,
@@ -1825,15 +1677,15 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
1825
1677
  content_type=content_type,
1826
1678
  json=_json,
1827
1679
  content=_content,
1828
- template_url=self._restore_blob_ranges_initial.metadata["url"],
1829
1680
  headers=_headers,
1830
1681
  params=_params,
1831
1682
  )
1832
- request = _convert_request(request)
1833
- request.url = self._client.format_url(request.url)
1683
+ _request = _convert_request(_request)
1684
+ _request.url = self._client.format_url(_request.url)
1834
1685
 
1686
+ _stream = False
1835
1687
  pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access
1836
- request, stream=False, **kwargs
1688
+ _request, stream=_stream, **kwargs
1837
1689
  )
1838
1690
 
1839
1691
  response = pipeline_response.http_response
@@ -1853,10 +1705,6 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
1853
1705
 
1854
1706
  return deserialized # type: ignore
1855
1707
 
1856
- _restore_blob_ranges_initial.metadata = {
1857
- "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/restoreBlobRanges"
1858
- }
1859
-
1860
1708
  @overload
1861
1709
  async def begin_restore_blob_ranges(
1862
1710
  self,
@@ -1881,14 +1729,6 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
1881
1729
  :keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
1882
1730
  Default value is "application/json".
1883
1731
  :paramtype content_type: str
1884
- :keyword callable cls: A custom type or function that will be passed the direct response
1885
- :keyword str continuation_token: A continuation token to restart a poller from a saved state.
1886
- :keyword polling: By default, your polling method will be AsyncARMPolling. Pass in False for
1887
- this operation to not poll, or pass in your own initialized polling object for a personal
1888
- polling strategy.
1889
- :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod
1890
- :keyword int polling_interval: Default waiting time between two polls for LRO operations if no
1891
- Retry-After header is present.
1892
1732
  :return: An instance of AsyncLROPoller that returns either BlobRestoreStatus or the result of
1893
1733
  cls(response)
1894
1734
  :rtype:
@@ -1901,7 +1741,7 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
1901
1741
  self,
1902
1742
  resource_group_name: str,
1903
1743
  account_name: str,
1904
- parameters: IO,
1744
+ parameters: IO[bytes],
1905
1745
  *,
1906
1746
  content_type: str = "application/json",
1907
1747
  **kwargs: Any
@@ -1916,18 +1756,10 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
1916
1756
  lower-case letters only. Required.
1917
1757
  :type account_name: str
1918
1758
  :param parameters: The parameters to provide for restore blob ranges. Required.
1919
- :type parameters: IO
1759
+ :type parameters: IO[bytes]
1920
1760
  :keyword content_type: Body Parameter content-type. Content type parameter for binary body.
1921
1761
  Default value is "application/json".
1922
1762
  :paramtype content_type: str
1923
- :keyword callable cls: A custom type or function that will be passed the direct response
1924
- :keyword str continuation_token: A continuation token to restart a poller from a saved state.
1925
- :keyword polling: By default, your polling method will be AsyncARMPolling. Pass in False for
1926
- this operation to not poll, or pass in your own initialized polling object for a personal
1927
- polling strategy.
1928
- :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod
1929
- :keyword int polling_interval: Default waiting time between two polls for LRO operations if no
1930
- Retry-After header is present.
1931
1763
  :return: An instance of AsyncLROPoller that returns either BlobRestoreStatus or the result of
1932
1764
  cls(response)
1933
1765
  :rtype:
@@ -1940,7 +1772,7 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
1940
1772
  self,
1941
1773
  resource_group_name: str,
1942
1774
  account_name: str,
1943
- parameters: Union[_models.BlobRestoreParameters, IO],
1775
+ parameters: Union[_models.BlobRestoreParameters, IO[bytes]],
1944
1776
  **kwargs: Any
1945
1777
  ) -> AsyncLROPoller[_models.BlobRestoreStatus]:
1946
1778
  """Restore blobs in the specified blob ranges.
@@ -1953,19 +1785,8 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
1953
1785
  lower-case letters only. Required.
1954
1786
  :type account_name: str
1955
1787
  :param parameters: The parameters to provide for restore blob ranges. Is either a
1956
- BlobRestoreParameters type or a IO type. Required.
1957
- :type parameters: ~azure.mgmt.storage.v2021_06_01.models.BlobRestoreParameters or IO
1958
- :keyword content_type: Body Parameter content-type. Known values are: 'application/json'.
1959
- Default value is None.
1960
- :paramtype content_type: str
1961
- :keyword callable cls: A custom type or function that will be passed the direct response
1962
- :keyword str continuation_token: A continuation token to restart a poller from a saved state.
1963
- :keyword polling: By default, your polling method will be AsyncARMPolling. Pass in False for
1964
- this operation to not poll, or pass in your own initialized polling object for a personal
1965
- polling strategy.
1966
- :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod
1967
- :keyword int polling_interval: Default waiting time between two polls for LRO operations if no
1968
- Retry-After header is present.
1788
+ BlobRestoreParameters type or a IO[bytes] type. Required.
1789
+ :type parameters: ~azure.mgmt.storage.v2021_06_01.models.BlobRestoreParameters or IO[bytes]
1969
1790
  :return: An instance of AsyncLROPoller that returns either BlobRestoreStatus or the result of
1970
1791
  cls(response)
1971
1792
  :rtype:
@@ -1975,7 +1796,7 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
1975
1796
  _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
1976
1797
  _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
1977
1798
 
1978
- api_version: Literal["2021-06-01"] = kwargs.pop("api_version", _params.pop("api-version", "2021-06-01"))
1799
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2021-06-01"))
1979
1800
  content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
1980
1801
  cls: ClsType[_models.BlobRestoreStatus] = kwargs.pop("cls", None)
1981
1802
  polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True)
@@ -1998,7 +1819,7 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
1998
1819
  def get_long_running_output(pipeline_response):
1999
1820
  deserialized = self._deserialize("BlobRestoreStatus", pipeline_response)
2000
1821
  if cls:
2001
- return cls(pipeline_response, deserialized, {})
1822
+ return cls(pipeline_response, deserialized, {}) # type: ignore
2002
1823
  return deserialized
2003
1824
 
2004
1825
  if polling is True:
@@ -2010,17 +1831,15 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
2010
1831
  else:
2011
1832
  polling_method = polling
2012
1833
  if cont_token:
2013
- return AsyncLROPoller.from_continuation_token(
1834
+ return AsyncLROPoller[_models.BlobRestoreStatus].from_continuation_token(
2014
1835
  polling_method=polling_method,
2015
1836
  continuation_token=cont_token,
2016
1837
  client=self._client,
2017
1838
  deserialization_callback=get_long_running_output,
2018
1839
  )
2019
- return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) # type: ignore
2020
-
2021
- begin_restore_blob_ranges.metadata = {
2022
- "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/restoreBlobRanges"
2023
- }
1840
+ return AsyncLROPoller[_models.BlobRestoreStatus](
1841
+ self._client, raw_result, get_long_running_output, polling_method # type: ignore
1842
+ )
2024
1843
 
2025
1844
  @distributed_trace_async
2026
1845
  async def revoke_user_delegation_keys( # pylint: disable=inconsistent-return-statements
@@ -2035,12 +1854,11 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
2035
1854
  Storage account names must be between 3 and 24 characters in length and use numbers and
2036
1855
  lower-case letters only. Required.
2037
1856
  :type account_name: str
2038
- :keyword callable cls: A custom type or function that will be passed the direct response
2039
1857
  :return: None or the result of cls(response)
2040
1858
  :rtype: None
2041
1859
  :raises ~azure.core.exceptions.HttpResponseError:
2042
1860
  """
2043
- error_map = {
1861
+ error_map: MutableMapping[int, Type[HttpResponseError]] = {
2044
1862
  401: ClientAuthenticationError,
2045
1863
  404: ResourceNotFoundError,
2046
1864
  409: ResourceExistsError,
@@ -2051,23 +1869,23 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
2051
1869
  _headers = kwargs.pop("headers", {}) or {}
2052
1870
  _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
2053
1871
 
2054
- api_version: Literal["2021-06-01"] = kwargs.pop("api_version", _params.pop("api-version", "2021-06-01"))
1872
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2021-06-01"))
2055
1873
  cls: ClsType[None] = kwargs.pop("cls", None)
2056
1874
 
2057
- request = build_revoke_user_delegation_keys_request(
1875
+ _request = build_revoke_user_delegation_keys_request(
2058
1876
  resource_group_name=resource_group_name,
2059
1877
  account_name=account_name,
2060
1878
  subscription_id=self._config.subscription_id,
2061
1879
  api_version=api_version,
2062
- template_url=self.revoke_user_delegation_keys.metadata["url"],
2063
1880
  headers=_headers,
2064
1881
  params=_params,
2065
1882
  )
2066
- request = _convert_request(request)
2067
- request.url = self._client.format_url(request.url)
1883
+ _request = _convert_request(_request)
1884
+ _request.url = self._client.format_url(_request.url)
2068
1885
 
1886
+ _stream = False
2069
1887
  pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access
2070
- request, stream=False, **kwargs
1888
+ _request, stream=_stream, **kwargs
2071
1889
  )
2072
1890
 
2073
1891
  response = pipeline_response.http_response
@@ -2077,8 +1895,4 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
2077
1895
  raise HttpResponseError(response=response, error_format=ARMErrorFormat)
2078
1896
 
2079
1897
  if cls:
2080
- return cls(pipeline_response, None, {})
2081
-
2082
- revoke_user_delegation_keys.metadata = {
2083
- "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/revokeUserDelegationKeys"
2084
- }
1898
+ return cls(pipeline_response, None, {}) # type: ignore