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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (813) hide show
  1. azure/mgmt/storage/_configuration.py +2 -3
  2. azure/mgmt/storage/_serialization.py +65 -59
  3. azure/mgmt/storage/_storage_management_client.py +232 -26
  4. azure/mgmt/storage/_version.py +1 -1
  5. azure/mgmt/storage/aio/_configuration.py +2 -3
  6. azure/mgmt/storage/aio/_storage_management_client.py +232 -26
  7. azure/mgmt/storage/models.py +1 -1
  8. azure/mgmt/storage/v2015_06_15/_configuration.py +4 -11
  9. azure/mgmt/storage/v2015_06_15/_patch.py +1 -0
  10. azure/mgmt/storage/v2015_06_15/_storage_management.py +25 -5
  11. azure/mgmt/storage/v2015_06_15/_vendor.py +0 -14
  12. azure/mgmt/storage/v2015_06_15/_version.py +1 -1
  13. azure/mgmt/storage/v2015_06_15/aio/_configuration.py +4 -11
  14. azure/mgmt/storage/v2015_06_15/aio/_patch.py +1 -0
  15. azure/mgmt/storage/v2015_06_15/aio/_storage_management.py +27 -5
  16. azure/mgmt/storage/v2015_06_15/aio/operations/_storage_accounts_operations.py +132 -213
  17. azure/mgmt/storage/v2015_06_15/aio/operations/_usage_operations.py +20 -22
  18. azure/mgmt/storage/v2015_06_15/models/_models_py3.py +6 -6
  19. azure/mgmt/storage/v2015_06_15/operations/_storage_accounts_operations.py +151 -232
  20. azure/mgmt/storage/v2015_06_15/operations/_usage_operations.py +23 -25
  21. azure/mgmt/storage/v2016_01_01/_configuration.py +4 -11
  22. azure/mgmt/storage/v2016_01_01/_patch.py +1 -0
  23. azure/mgmt/storage/v2016_01_01/_storage_management_client.py +25 -5
  24. azure/mgmt/storage/v2016_01_01/_vendor.py +0 -14
  25. azure/mgmt/storage/v2016_01_01/_version.py +1 -1
  26. azure/mgmt/storage/v2016_01_01/aio/_configuration.py +4 -11
  27. azure/mgmt/storage/v2016_01_01/aio/_patch.py +1 -0
  28. azure/mgmt/storage/v2016_01_01/aio/_storage_management_client.py +27 -5
  29. azure/mgmt/storage/v2016_01_01/aio/operations/_storage_accounts_operations.py +132 -213
  30. azure/mgmt/storage/v2016_01_01/aio/operations/_usage_operations.py +20 -22
  31. azure/mgmt/storage/v2016_01_01/models/_models_py3.py +7 -7
  32. azure/mgmt/storage/v2016_01_01/operations/_storage_accounts_operations.py +151 -232
  33. azure/mgmt/storage/v2016_01_01/operations/_usage_operations.py +23 -25
  34. azure/mgmt/storage/v2016_12_01/_configuration.py +4 -11
  35. azure/mgmt/storage/v2016_12_01/_patch.py +1 -0
  36. azure/mgmt/storage/v2016_12_01/_storage_management.py +25 -5
  37. azure/mgmt/storage/v2016_12_01/_vendor.py +0 -14
  38. azure/mgmt/storage/v2016_12_01/_version.py +1 -1
  39. azure/mgmt/storage/v2016_12_01/aio/_configuration.py +4 -11
  40. azure/mgmt/storage/v2016_12_01/aio/_patch.py +1 -0
  41. azure/mgmt/storage/v2016_12_01/aio/_storage_management.py +27 -5
  42. azure/mgmt/storage/v2016_12_01/aio/operations/_storage_accounts_operations.py +162 -263
  43. azure/mgmt/storage/v2016_12_01/aio/operations/_usage_operations.py +20 -22
  44. azure/mgmt/storage/v2016_12_01/models/_models_py3.py +9 -9
  45. azure/mgmt/storage/v2016_12_01/operations/_storage_accounts_operations.py +185 -286
  46. azure/mgmt/storage/v2016_12_01/operations/_usage_operations.py +23 -25
  47. azure/mgmt/storage/v2017_06_01/_configuration.py +4 -11
  48. azure/mgmt/storage/v2017_06_01/_patch.py +1 -0
  49. azure/mgmt/storage/v2017_06_01/_storage_management.py +27 -7
  50. azure/mgmt/storage/v2017_06_01/_vendor.py +0 -14
  51. azure/mgmt/storage/v2017_06_01/_version.py +1 -1
  52. azure/mgmt/storage/v2017_06_01/aio/_configuration.py +4 -11
  53. azure/mgmt/storage/v2017_06_01/aio/_patch.py +1 -0
  54. azure/mgmt/storage/v2017_06_01/aio/_storage_management.py +29 -7
  55. azure/mgmt/storage/v2017_06_01/aio/operations/_operations.py +20 -22
  56. azure/mgmt/storage/v2017_06_01/aio/operations/_skus_operations.py +20 -22
  57. azure/mgmt/storage/v2017_06_01/aio/operations/_storage_accounts_operations.py +162 -263
  58. azure/mgmt/storage/v2017_06_01/aio/operations/_usage_operations.py +20 -22
  59. azure/mgmt/storage/v2017_06_01/models/_models_py3.py +16 -22
  60. azure/mgmt/storage/v2017_06_01/operations/_operations.py +21 -23
  61. azure/mgmt/storage/v2017_06_01/operations/_skus_operations.py +23 -25
  62. azure/mgmt/storage/v2017_06_01/operations/_storage_accounts_operations.py +185 -286
  63. azure/mgmt/storage/v2017_06_01/operations/_usage_operations.py +23 -25
  64. azure/mgmt/storage/v2017_10_01/_configuration.py +4 -11
  65. azure/mgmt/storage/v2017_10_01/_patch.py +1 -0
  66. azure/mgmt/storage/v2017_10_01/_storage_management.py +27 -7
  67. azure/mgmt/storage/v2017_10_01/_vendor.py +0 -14
  68. azure/mgmt/storage/v2017_10_01/_version.py +1 -1
  69. azure/mgmt/storage/v2017_10_01/aio/_configuration.py +4 -11
  70. azure/mgmt/storage/v2017_10_01/aio/_patch.py +1 -0
  71. azure/mgmt/storage/v2017_10_01/aio/_storage_management.py +29 -7
  72. azure/mgmt/storage/v2017_10_01/aio/operations/_operations.py +20 -22
  73. azure/mgmt/storage/v2017_10_01/aio/operations/_skus_operations.py +20 -22
  74. azure/mgmt/storage/v2017_10_01/aio/operations/_storage_accounts_operations.py +162 -263
  75. azure/mgmt/storage/v2017_10_01/aio/operations/_usage_operations.py +20 -22
  76. azure/mgmt/storage/v2017_10_01/models/_models_py3.py +16 -22
  77. azure/mgmt/storage/v2017_10_01/operations/_operations.py +21 -23
  78. azure/mgmt/storage/v2017_10_01/operations/_skus_operations.py +23 -25
  79. azure/mgmt/storage/v2017_10_01/operations/_storage_accounts_operations.py +185 -286
  80. azure/mgmt/storage/v2017_10_01/operations/_usage_operations.py +23 -25
  81. azure/mgmt/storage/v2018_02_01/_configuration.py +4 -11
  82. azure/mgmt/storage/v2018_02_01/_patch.py +1 -0
  83. azure/mgmt/storage/v2018_02_01/_storage_management_client.py +30 -8
  84. azure/mgmt/storage/v2018_02_01/_vendor.py +0 -14
  85. azure/mgmt/storage/v2018_02_01/_version.py +1 -1
  86. azure/mgmt/storage/v2018_02_01/aio/_configuration.py +4 -11
  87. azure/mgmt/storage/v2018_02_01/aio/_patch.py +1 -0
  88. azure/mgmt/storage/v2018_02_01/aio/_storage_management_client.py +32 -8
  89. azure/mgmt/storage/v2018_02_01/aio/operations/_blob_containers_operations.py +166 -264
  90. azure/mgmt/storage/v2018_02_01/aio/operations/_operations.py +20 -22
  91. azure/mgmt/storage/v2018_02_01/aio/operations/_skus_operations.py +20 -22
  92. azure/mgmt/storage/v2018_02_01/aio/operations/_storage_accounts_operations.py +162 -263
  93. azure/mgmt/storage/v2018_02_01/aio/operations/_usage_operations.py +34 -41
  94. azure/mgmt/storage/v2018_02_01/models/_models_py3.py +28 -34
  95. azure/mgmt/storage/v2018_02_01/models/_storage_management_client_enums.py +1 -1
  96. azure/mgmt/storage/v2018_02_01/operations/_blob_containers_operations.py +194 -292
  97. azure/mgmt/storage/v2018_02_01/operations/_operations.py +21 -23
  98. azure/mgmt/storage/v2018_02_01/operations/_skus_operations.py +23 -25
  99. azure/mgmt/storage/v2018_02_01/operations/_storage_accounts_operations.py +185 -286
  100. azure/mgmt/storage/v2018_02_01/operations/_usage_operations.py +39 -46
  101. azure/mgmt/storage/v2018_03_01_preview/_configuration.py +4 -11
  102. azure/mgmt/storage/v2018_03_01_preview/_patch.py +1 -0
  103. azure/mgmt/storage/v2018_03_01_preview/_storage_management_client.py +41 -8
  104. azure/mgmt/storage/v2018_03_01_preview/_vendor.py +0 -14
  105. azure/mgmt/storage/v2018_03_01_preview/_version.py +1 -1
  106. azure/mgmt/storage/v2018_03_01_preview/aio/_configuration.py +4 -11
  107. azure/mgmt/storage/v2018_03_01_preview/aio/_patch.py +1 -0
  108. azure/mgmt/storage/v2018_03_01_preview/aio/_storage_management_client.py +43 -8
  109. azure/mgmt/storage/v2018_03_01_preview/aio/operations/__init__.py +2 -0
  110. azure/mgmt/storage/v2018_03_01_preview/aio/operations/_blob_containers_operations.py +182 -277
  111. azure/mgmt/storage/{v2018_07_01 → v2018_03_01_preview}/aio/operations/_management_policies_operations.py +55 -72
  112. azure/mgmt/storage/v2018_03_01_preview/aio/operations/_operations.py +21 -23
  113. azure/mgmt/storage/v2018_03_01_preview/aio/operations/_skus_operations.py +21 -23
  114. azure/mgmt/storage/v2018_03_01_preview/aio/operations/_storage_accounts_operations.py +209 -330
  115. azure/mgmt/storage/v2018_03_01_preview/aio/operations/_usages_operations.py +36 -43
  116. azure/mgmt/storage/v2018_03_01_preview/models/_models_py3.py +30 -34
  117. azure/mgmt/storage/v2018_03_01_preview/models/_storage_management_client_enums.py +1 -1
  118. azure/mgmt/storage/v2018_03_01_preview/operations/__init__.py +2 -0
  119. azure/mgmt/storage/v2018_03_01_preview/operations/_blob_containers_operations.py +210 -331
  120. azure/mgmt/storage/{v2018_07_01 → v2018_03_01_preview}/operations/_management_policies_operations.py +62 -85
  121. azure/mgmt/storage/v2018_03_01_preview/operations/_operations.py +22 -26
  122. azure/mgmt/storage/v2018_03_01_preview/operations/_skus_operations.py +24 -28
  123. azure/mgmt/storage/v2018_03_01_preview/operations/_storage_accounts_operations.py +239 -388
  124. azure/mgmt/storage/v2018_03_01_preview/operations/_usages_operations.py +41 -52
  125. azure/mgmt/storage/v2018_07_01/_configuration.py +9 -4
  126. azure/mgmt/storage/v2018_07_01/_patch.py +1 -0
  127. azure/mgmt/storage/v2018_07_01/_storage_management_client.py +36 -16
  128. azure/mgmt/storage/v2018_07_01/_vendor.py +0 -14
  129. azure/mgmt/storage/v2018_07_01/_version.py +1 -1
  130. azure/mgmt/storage/v2018_07_01/aio/_configuration.py +9 -4
  131. azure/mgmt/storage/v2018_07_01/aio/_patch.py +1 -0
  132. azure/mgmt/storage/v2018_07_01/aio/_storage_management_client.py +38 -16
  133. azure/mgmt/storage/v2018_07_01/aio/operations/__init__.py +0 -2
  134. azure/mgmt/storage/v2018_07_01/aio/operations/_blob_containers_operations.py +166 -264
  135. azure/mgmt/storage/v2018_07_01/aio/operations/_blob_services_operations.py +31 -44
  136. azure/mgmt/storage/v2018_07_01/aio/operations/_operations.py +31 -21
  137. azure/mgmt/storage/v2018_07_01/aio/operations/_skus_operations.py +31 -21
  138. azure/mgmt/storage/v2018_07_01/aio/operations/_storage_accounts_operations.py +195 -289
  139. azure/mgmt/storage/v2018_07_01/aio/operations/_usages_operations.py +31 -23
  140. azure/mgmt/storage/v2018_07_01/models/__init__.py +0 -10
  141. azure/mgmt/storage/v2018_07_01/models/_models_py3.py +30 -164
  142. azure/mgmt/storage/v2018_07_01/models/_storage_management_client_enums.py +1 -7
  143. azure/mgmt/storage/v2018_07_01/operations/__init__.py +0 -2
  144. azure/mgmt/storage/v2018_07_01/operations/_blob_containers_operations.py +194 -292
  145. azure/mgmt/storage/v2018_07_01/operations/_blob_services_operations.py +36 -49
  146. azure/mgmt/storage/v2018_07_01/operations/_operations.py +32 -22
  147. azure/mgmt/storage/v2018_07_01/operations/_skus_operations.py +34 -24
  148. azure/mgmt/storage/v2018_07_01/operations/_storage_accounts_operations.py +220 -314
  149. azure/mgmt/storage/v2018_07_01/operations/_usages_operations.py +34 -26
  150. azure/mgmt/storage/v2018_11_01/_configuration.py +4 -11
  151. azure/mgmt/storage/v2018_11_01/_patch.py +1 -0
  152. azure/mgmt/storage/v2018_11_01/_storage_management_client.py +34 -10
  153. azure/mgmt/storage/v2018_11_01/_vendor.py +0 -14
  154. azure/mgmt/storage/v2018_11_01/_version.py +1 -1
  155. azure/mgmt/storage/v2018_11_01/aio/_configuration.py +4 -11
  156. azure/mgmt/storage/v2018_11_01/aio/_patch.py +1 -0
  157. azure/mgmt/storage/v2018_11_01/aio/_storage_management_client.py +36 -10
  158. azure/mgmt/storage/v2018_11_01/aio/operations/_blob_containers_operations.py +164 -262
  159. azure/mgmt/storage/v2018_11_01/aio/operations/_blob_services_operations.py +31 -44
  160. azure/mgmt/storage/v2018_11_01/aio/operations/_management_policies_operations.py +39 -57
  161. azure/mgmt/storage/v2018_11_01/aio/operations/_operations.py +20 -22
  162. azure/mgmt/storage/v2018_11_01/aio/operations/_skus_operations.py +20 -22
  163. azure/mgmt/storage/v2018_11_01/aio/operations/_storage_accounts_operations.py +182 -304
  164. azure/mgmt/storage/v2018_11_01/aio/operations/_usages_operations.py +20 -24
  165. azure/mgmt/storage/v2018_11_01/models/_models_py3.py +37 -43
  166. azure/mgmt/storage/v2018_11_01/models/_storage_management_client_enums.py +1 -1
  167. azure/mgmt/storage/v2018_11_01/operations/_blob_containers_operations.py +192 -290
  168. azure/mgmt/storage/v2018_11_01/operations/_blob_services_operations.py +36 -49
  169. azure/mgmt/storage/v2018_11_01/operations/_management_policies_operations.py +46 -64
  170. azure/mgmt/storage/v2018_11_01/operations/_operations.py +21 -23
  171. azure/mgmt/storage/v2018_11_01/operations/_skus_operations.py +23 -25
  172. azure/mgmt/storage/v2018_11_01/operations/_storage_accounts_operations.py +210 -332
  173. azure/mgmt/storage/v2018_11_01/operations/_usages_operations.py +23 -27
  174. azure/mgmt/storage/v2019_04_01/_configuration.py +4 -11
  175. azure/mgmt/storage/v2019_04_01/_patch.py +1 -0
  176. azure/mgmt/storage/v2019_04_01/_storage_management_client.py +40 -12
  177. azure/mgmt/storage/v2019_04_01/_vendor.py +0 -14
  178. azure/mgmt/storage/v2019_04_01/_version.py +1 -1
  179. azure/mgmt/storage/v2019_04_01/aio/_configuration.py +4 -11
  180. azure/mgmt/storage/v2019_04_01/aio/_patch.py +1 -0
  181. azure/mgmt/storage/v2019_04_01/aio/_storage_management_client.py +42 -12
  182. azure/mgmt/storage/v2019_04_01/aio/operations/_blob_containers_operations.py +169 -267
  183. azure/mgmt/storage/v2019_04_01/aio/operations/_blob_services_operations.py +45 -63
  184. azure/mgmt/storage/v2019_04_01/aio/operations/_file_services_operations.py +41 -59
  185. azure/mgmt/storage/v2019_04_01/aio/operations/_file_shares_operations.py +68 -101
  186. azure/mgmt/storage/v2019_04_01/aio/operations/_management_policies_operations.py +39 -57
  187. azure/mgmt/storage/v2019_04_01/aio/operations/_operations.py +20 -22
  188. azure/mgmt/storage/v2019_04_01/aio/operations/_skus_operations.py +20 -22
  189. azure/mgmt/storage/v2019_04_01/aio/operations/_storage_accounts_operations.py +183 -304
  190. azure/mgmt/storage/v2019_04_01/aio/operations/_usages_operations.py +20 -24
  191. azure/mgmt/storage/v2019_04_01/models/_models_py3.py +42 -48
  192. azure/mgmt/storage/v2019_04_01/models/_storage_management_client_enums.py +1 -1
  193. azure/mgmt/storage/v2019_04_01/operations/_blob_containers_operations.py +197 -295
  194. azure/mgmt/storage/v2019_04_01/operations/_blob_services_operations.py +52 -70
  195. azure/mgmt/storage/v2019_04_01/operations/_file_services_operations.py +48 -66
  196. azure/mgmt/storage/v2019_04_01/operations/_file_shares_operations.py +79 -112
  197. azure/mgmt/storage/v2019_04_01/operations/_management_policies_operations.py +46 -64
  198. azure/mgmt/storage/v2019_04_01/operations/_operations.py +21 -23
  199. azure/mgmt/storage/v2019_04_01/operations/_skus_operations.py +23 -25
  200. azure/mgmt/storage/v2019_04_01/operations/_storage_accounts_operations.py +211 -332
  201. azure/mgmt/storage/v2019_04_01/operations/_usages_operations.py +23 -27
  202. azure/mgmt/storage/v2019_06_01/_configuration.py +4 -11
  203. azure/mgmt/storage/v2019_06_01/_patch.py +1 -0
  204. azure/mgmt/storage/v2019_06_01/_storage_management_client.py +54 -22
  205. azure/mgmt/storage/v2019_06_01/_vendor.py +0 -14
  206. azure/mgmt/storage/v2019_06_01/_version.py +1 -1
  207. azure/mgmt/storage/v2019_06_01/aio/_configuration.py +4 -11
  208. azure/mgmt/storage/v2019_06_01/aio/_patch.py +1 -0
  209. azure/mgmt/storage/v2019_06_01/aio/_storage_management_client.py +56 -22
  210. azure/mgmt/storage/v2019_06_01/aio/operations/_blob_containers_operations.py +169 -267
  211. azure/mgmt/storage/v2019_06_01/aio/operations/_blob_inventory_policies_operations.py +53 -76
  212. azure/mgmt/storage/v2019_06_01/aio/operations/_blob_services_operations.py +45 -63
  213. azure/mgmt/storage/v2019_06_01/aio/operations/_encryption_scopes_operations.py +58 -86
  214. azure/mgmt/storage/v2019_06_01/aio/operations/_file_services_operations.py +41 -59
  215. azure/mgmt/storage/v2019_06_01/aio/operations/_file_shares_operations.py +82 -125
  216. azure/mgmt/storage/v2019_06_01/aio/operations/_management_policies_operations.py +39 -57
  217. azure/mgmt/storage/v2019_06_01/aio/operations/_object_replication_policies_operations.py +54 -76
  218. azure/mgmt/storage/v2019_06_01/aio/operations/_operations.py +20 -22
  219. azure/mgmt/storage/v2019_06_01/aio/operations/_private_endpoint_connections_operations.py +53 -76
  220. azure/mgmt/storage/v2019_06_01/aio/operations/_private_link_resources_operations.py +15 -19
  221. azure/mgmt/storage/v2019_06_01/aio/operations/_queue_operations.py +68 -101
  222. azure/mgmt/storage/v2019_06_01/aio/operations/_queue_services_operations.py +40 -58
  223. azure/mgmt/storage/v2019_06_01/aio/operations/_skus_operations.py +20 -22
  224. azure/mgmt/storage/v2019_06_01/aio/operations/_storage_accounts_operations.py +203 -357
  225. azure/mgmt/storage/v2019_06_01/aio/operations/_table_operations.py +55 -79
  226. azure/mgmt/storage/v2019_06_01/aio/operations/_table_services_operations.py +40 -58
  227. azure/mgmt/storage/v2019_06_01/aio/operations/_usages_operations.py +20 -24
  228. azure/mgmt/storage/v2019_06_01/models/_models_py3.py +62 -68
  229. azure/mgmt/storage/v2019_06_01/models/_storage_management_client_enums.py +1 -1
  230. azure/mgmt/storage/v2019_06_01/operations/_blob_containers_operations.py +197 -295
  231. azure/mgmt/storage/v2019_06_01/operations/_blob_inventory_policies_operations.py +62 -85
  232. azure/mgmt/storage/v2019_06_01/operations/_blob_services_operations.py +52 -70
  233. azure/mgmt/storage/v2019_06_01/operations/_encryption_scopes_operations.py +67 -95
  234. azure/mgmt/storage/v2019_06_01/operations/_file_services_operations.py +48 -66
  235. azure/mgmt/storage/v2019_06_01/operations/_file_shares_operations.py +95 -138
  236. azure/mgmt/storage/v2019_06_01/operations/_management_policies_operations.py +46 -64
  237. azure/mgmt/storage/v2019_06_01/operations/_object_replication_policies_operations.py +63 -85
  238. azure/mgmt/storage/v2019_06_01/operations/_operations.py +21 -23
  239. azure/mgmt/storage/v2019_06_01/operations/_private_endpoint_connections_operations.py +62 -85
  240. azure/mgmt/storage/v2019_06_01/operations/_private_link_resources_operations.py +18 -22
  241. azure/mgmt/storage/v2019_06_01/operations/_queue_operations.py +79 -112
  242. azure/mgmt/storage/v2019_06_01/operations/_queue_services_operations.py +47 -65
  243. azure/mgmt/storage/v2019_06_01/operations/_skus_operations.py +23 -25
  244. azure/mgmt/storage/v2019_06_01/operations/_storage_accounts_operations.py +233 -387
  245. azure/mgmt/storage/v2019_06_01/operations/_table_operations.py +66 -90
  246. azure/mgmt/storage/v2019_06_01/operations/_table_services_operations.py +47 -65
  247. azure/mgmt/storage/v2019_06_01/operations/_usages_operations.py +23 -27
  248. azure/mgmt/storage/v2020_08_01_preview/_configuration.py +4 -11
  249. azure/mgmt/storage/v2020_08_01_preview/_patch.py +1 -0
  250. azure/mgmt/storage/v2020_08_01_preview/_storage_management_client.py +64 -24
  251. azure/mgmt/storage/v2020_08_01_preview/_vendor.py +0 -14
  252. azure/mgmt/storage/v2020_08_01_preview/_version.py +1 -1
  253. azure/mgmt/storage/v2020_08_01_preview/aio/_configuration.py +4 -11
  254. azure/mgmt/storage/v2020_08_01_preview/aio/_patch.py +1 -0
  255. azure/mgmt/storage/v2020_08_01_preview/aio/_storage_management_client.py +66 -24
  256. azure/mgmt/storage/v2020_08_01_preview/aio/operations/_blob_containers_operations.py +185 -280
  257. azure/mgmt/storage/v2020_08_01_preview/aio/operations/_blob_inventory_policies_operations.py +58 -80
  258. azure/mgmt/storage/v2020_08_01_preview/aio/operations/_blob_services_operations.py +49 -66
  259. azure/mgmt/storage/v2020_08_01_preview/aio/operations/_deleted_accounts_operations.py +31 -38
  260. azure/mgmt/storage/v2020_08_01_preview/aio/operations/_encryption_scopes_operations.py +64 -90
  261. azure/mgmt/storage/v2020_08_01_preview/aio/operations/_file_services_operations.py +45 -62
  262. azure/mgmt/storage/v2020_08_01_preview/aio/operations/_file_shares_operations.py +88 -131
  263. azure/mgmt/storage/v2020_08_01_preview/aio/operations/_management_policies_operations.py +42 -60
  264. azure/mgmt/storage/v2020_08_01_preview/aio/operations/_object_replication_policies_operations.py +59 -80
  265. azure/mgmt/storage/v2020_08_01_preview/aio/operations/_operations.py +21 -23
  266. azure/mgmt/storage/v2020_08_01_preview/aio/operations/_private_endpoint_connections_operations.py +57 -80
  267. azure/mgmt/storage/v2020_08_01_preview/aio/operations/_private_link_resources_operations.py +16 -20
  268. azure/mgmt/storage/v2020_08_01_preview/aio/operations/_queue_operations.py +73 -106
  269. azure/mgmt/storage/v2020_08_01_preview/aio/operations/_queue_services_operations.py +44 -61
  270. azure/mgmt/storage/v2020_08_01_preview/aio/operations/_skus_operations.py +21 -23
  271. azure/mgmt/storage/v2020_08_01_preview/aio/operations/_storage_accounts_operations.py +221 -374
  272. azure/mgmt/storage/v2020_08_01_preview/aio/operations/_table_operations.py +60 -84
  273. azure/mgmt/storage/v2020_08_01_preview/aio/operations/_table_services_operations.py +44 -61
  274. azure/mgmt/storage/v2020_08_01_preview/aio/operations/_usages_operations.py +21 -25
  275. azure/mgmt/storage/v2020_08_01_preview/models/_models_py3.py +64 -86
  276. azure/mgmt/storage/v2020_08_01_preview/models/_storage_management_client_enums.py +1 -1
  277. azure/mgmt/storage/v2020_08_01_preview/operations/_blob_containers_operations.py +213 -334
  278. azure/mgmt/storage/v2020_08_01_preview/operations/_blob_inventory_policies_operations.py +67 -97
  279. azure/mgmt/storage/v2020_08_01_preview/operations/_blob_services_operations.py +56 -79
  280. azure/mgmt/storage/v2020_08_01_preview/operations/_deleted_accounts_operations.py +36 -47
  281. azure/mgmt/storage/v2020_08_01_preview/operations/_encryption_scopes_operations.py +73 -107
  282. azure/mgmt/storage/v2020_08_01_preview/operations/_file_services_operations.py +52 -75
  283. azure/mgmt/storage/v2020_08_01_preview/operations/_file_shares_operations.py +101 -156
  284. azure/mgmt/storage/v2020_08_01_preview/operations/_management_policies_operations.py +49 -73
  285. azure/mgmt/storage/v2020_08_01_preview/operations/_object_replication_policies_operations.py +68 -97
  286. azure/mgmt/storage/v2020_08_01_preview/operations/_operations.py +22 -26
  287. azure/mgmt/storage/v2020_08_01_preview/operations/_private_endpoint_connections_operations.py +66 -97
  288. azure/mgmt/storage/v2020_08_01_preview/operations/_private_link_resources_operations.py +19 -25
  289. azure/mgmt/storage/v2020_08_01_preview/operations/_queue_operations.py +84 -127
  290. azure/mgmt/storage/v2020_08_01_preview/operations/_queue_services_operations.py +51 -74
  291. azure/mgmt/storage/v2020_08_01_preview/operations/_skus_operations.py +24 -28
  292. azure/mgmt/storage/v2020_08_01_preview/operations/_storage_accounts_operations.py +251 -432
  293. azure/mgmt/storage/v2020_08_01_preview/operations/_table_operations.py +71 -105
  294. azure/mgmt/storage/v2020_08_01_preview/operations/_table_services_operations.py +51 -74
  295. azure/mgmt/storage/v2020_08_01_preview/operations/_usages_operations.py +24 -30
  296. azure/mgmt/storage/v2021_01_01/_configuration.py +4 -11
  297. azure/mgmt/storage/v2021_01_01/_patch.py +1 -0
  298. azure/mgmt/storage/v2021_01_01/_storage_management_client.py +55 -23
  299. azure/mgmt/storage/v2021_01_01/_vendor.py +0 -14
  300. azure/mgmt/storage/v2021_01_01/_version.py +1 -1
  301. azure/mgmt/storage/v2021_01_01/aio/_configuration.py +4 -11
  302. azure/mgmt/storage/v2021_01_01/aio/_patch.py +1 -0
  303. azure/mgmt/storage/v2021_01_01/aio/_storage_management_client.py +57 -23
  304. azure/mgmt/storage/v2021_01_01/aio/operations/_blob_containers_operations.py +169 -267
  305. azure/mgmt/storage/v2021_01_01/aio/operations/_blob_inventory_policies_operations.py +53 -76
  306. azure/mgmt/storage/v2021_01_01/aio/operations/_blob_services_operations.py +45 -63
  307. azure/mgmt/storage/v2021_01_01/aio/operations/_deleted_accounts_operations.py +29 -36
  308. azure/mgmt/storage/v2021_01_01/aio/operations/_encryption_scopes_operations.py +58 -86
  309. azure/mgmt/storage/v2021_01_01/aio/operations/_file_services_operations.py +41 -59
  310. azure/mgmt/storage/v2021_01_01/aio/operations/_file_shares_operations.py +82 -125
  311. azure/mgmt/storage/v2021_01_01/aio/operations/_management_policies_operations.py +39 -57
  312. azure/mgmt/storage/v2021_01_01/aio/operations/_object_replication_policies_operations.py +54 -76
  313. azure/mgmt/storage/v2021_01_01/aio/operations/_operations.py +20 -22
  314. azure/mgmt/storage/v2021_01_01/aio/operations/_private_endpoint_connections_operations.py +53 -76
  315. azure/mgmt/storage/v2021_01_01/aio/operations/_private_link_resources_operations.py +15 -19
  316. azure/mgmt/storage/v2021_01_01/aio/operations/_queue_operations.py +68 -101
  317. azure/mgmt/storage/v2021_01_01/aio/operations/_queue_services_operations.py +40 -58
  318. azure/mgmt/storage/v2021_01_01/aio/operations/_skus_operations.py +20 -22
  319. azure/mgmt/storage/v2021_01_01/aio/operations/_storage_accounts_operations.py +203 -357
  320. azure/mgmt/storage/v2021_01_01/aio/operations/_table_operations.py +55 -79
  321. azure/mgmt/storage/v2021_01_01/aio/operations/_table_services_operations.py +40 -58
  322. azure/mgmt/storage/v2021_01_01/aio/operations/_usages_operations.py +20 -24
  323. azure/mgmt/storage/v2021_01_01/models/_models_py3.py +64 -86
  324. azure/mgmt/storage/v2021_01_01/models/_storage_management_client_enums.py +1 -1
  325. azure/mgmt/storage/v2021_01_01/operations/_blob_containers_operations.py +197 -295
  326. azure/mgmt/storage/v2021_01_01/operations/_blob_inventory_policies_operations.py +62 -85
  327. azure/mgmt/storage/v2021_01_01/operations/_blob_services_operations.py +52 -70
  328. azure/mgmt/storage/v2021_01_01/operations/_deleted_accounts_operations.py +34 -41
  329. azure/mgmt/storage/v2021_01_01/operations/_encryption_scopes_operations.py +67 -95
  330. azure/mgmt/storage/v2021_01_01/operations/_file_services_operations.py +48 -66
  331. azure/mgmt/storage/v2021_01_01/operations/_file_shares_operations.py +95 -138
  332. azure/mgmt/storage/v2021_01_01/operations/_management_policies_operations.py +46 -64
  333. azure/mgmt/storage/v2021_01_01/operations/_object_replication_policies_operations.py +63 -85
  334. azure/mgmt/storage/v2021_01_01/operations/_operations.py +21 -23
  335. azure/mgmt/storage/v2021_01_01/operations/_private_endpoint_connections_operations.py +62 -85
  336. azure/mgmt/storage/v2021_01_01/operations/_private_link_resources_operations.py +18 -22
  337. azure/mgmt/storage/v2021_01_01/operations/_queue_operations.py +79 -112
  338. azure/mgmt/storage/v2021_01_01/operations/_queue_services_operations.py +47 -65
  339. azure/mgmt/storage/v2021_01_01/operations/_skus_operations.py +23 -25
  340. azure/mgmt/storage/v2021_01_01/operations/_storage_accounts_operations.py +233 -387
  341. azure/mgmt/storage/v2021_01_01/operations/_table_operations.py +66 -90
  342. azure/mgmt/storage/v2021_01_01/operations/_table_services_operations.py +47 -65
  343. azure/mgmt/storage/v2021_01_01/operations/_usages_operations.py +23 -27
  344. azure/mgmt/storage/v2021_02_01/_configuration.py +4 -11
  345. azure/mgmt/storage/v2021_02_01/_patch.py +1 -0
  346. azure/mgmt/storage/v2021_02_01/_storage_management_client.py +55 -23
  347. azure/mgmt/storage/v2021_02_01/_vendor.py +0 -14
  348. azure/mgmt/storage/v2021_02_01/_version.py +1 -1
  349. azure/mgmt/storage/v2021_02_01/aio/_configuration.py +4 -11
  350. azure/mgmt/storage/v2021_02_01/aio/_patch.py +1 -0
  351. azure/mgmt/storage/v2021_02_01/aio/_storage_management_client.py +57 -23
  352. azure/mgmt/storage/v2021_02_01/aio/operations/_blob_containers_operations.py +169 -267
  353. azure/mgmt/storage/v2021_02_01/aio/operations/_blob_inventory_policies_operations.py +53 -76
  354. azure/mgmt/storage/v2021_02_01/aio/operations/_blob_services_operations.py +45 -63
  355. azure/mgmt/storage/v2021_02_01/aio/operations/_deleted_accounts_operations.py +29 -36
  356. azure/mgmt/storage/v2021_02_01/aio/operations/_encryption_scopes_operations.py +58 -86
  357. azure/mgmt/storage/v2021_02_01/aio/operations/_file_services_operations.py +41 -59
  358. azure/mgmt/storage/v2021_02_01/aio/operations/_file_shares_operations.py +82 -125
  359. azure/mgmt/storage/v2021_02_01/aio/operations/_management_policies_operations.py +39 -57
  360. azure/mgmt/storage/v2021_02_01/aio/operations/_object_replication_policies_operations.py +54 -76
  361. azure/mgmt/storage/v2021_02_01/aio/operations/_operations.py +20 -22
  362. azure/mgmt/storage/v2021_02_01/aio/operations/_private_endpoint_connections_operations.py +53 -76
  363. azure/mgmt/storage/v2021_02_01/aio/operations/_private_link_resources_operations.py +15 -19
  364. azure/mgmt/storage/v2021_02_01/aio/operations/_queue_operations.py +68 -101
  365. azure/mgmt/storage/v2021_02_01/aio/operations/_queue_services_operations.py +40 -58
  366. azure/mgmt/storage/v2021_02_01/aio/operations/_skus_operations.py +20 -22
  367. azure/mgmt/storage/v2021_02_01/aio/operations/_storage_accounts_operations.py +203 -357
  368. azure/mgmt/storage/v2021_02_01/aio/operations/_table_operations.py +55 -79
  369. azure/mgmt/storage/v2021_02_01/aio/operations/_table_services_operations.py +40 -58
  370. azure/mgmt/storage/v2021_02_01/aio/operations/_usages_operations.py +20 -24
  371. azure/mgmt/storage/v2021_02_01/models/_models_py3.py +66 -88
  372. azure/mgmt/storage/v2021_02_01/models/_storage_management_client_enums.py +1 -1
  373. azure/mgmt/storage/v2021_02_01/operations/_blob_containers_operations.py +197 -295
  374. azure/mgmt/storage/v2021_02_01/operations/_blob_inventory_policies_operations.py +62 -85
  375. azure/mgmt/storage/v2021_02_01/operations/_blob_services_operations.py +52 -70
  376. azure/mgmt/storage/v2021_02_01/operations/_deleted_accounts_operations.py +34 -41
  377. azure/mgmt/storage/v2021_02_01/operations/_encryption_scopes_operations.py +67 -95
  378. azure/mgmt/storage/v2021_02_01/operations/_file_services_operations.py +48 -66
  379. azure/mgmt/storage/v2021_02_01/operations/_file_shares_operations.py +95 -138
  380. azure/mgmt/storage/v2021_02_01/operations/_management_policies_operations.py +46 -64
  381. azure/mgmt/storage/v2021_02_01/operations/_object_replication_policies_operations.py +63 -85
  382. azure/mgmt/storage/v2021_02_01/operations/_operations.py +21 -23
  383. azure/mgmt/storage/v2021_02_01/operations/_private_endpoint_connections_operations.py +62 -85
  384. azure/mgmt/storage/v2021_02_01/operations/_private_link_resources_operations.py +18 -22
  385. azure/mgmt/storage/v2021_02_01/operations/_queue_operations.py +79 -112
  386. azure/mgmt/storage/v2021_02_01/operations/_queue_services_operations.py +47 -65
  387. azure/mgmt/storage/v2021_02_01/operations/_skus_operations.py +23 -25
  388. azure/mgmt/storage/v2021_02_01/operations/_storage_accounts_operations.py +233 -387
  389. azure/mgmt/storage/v2021_02_01/operations/_table_operations.py +66 -90
  390. azure/mgmt/storage/v2021_02_01/operations/_table_services_operations.py +47 -65
  391. azure/mgmt/storage/v2021_02_01/operations/_usages_operations.py +23 -27
  392. azure/mgmt/storage/v2021_04_01/_configuration.py +4 -11
  393. azure/mgmt/storage/v2021_04_01/_patch.py +1 -0
  394. azure/mgmt/storage/v2021_04_01/_storage_management_client.py +55 -23
  395. azure/mgmt/storage/v2021_04_01/_vendor.py +0 -14
  396. azure/mgmt/storage/v2021_04_01/_version.py +1 -1
  397. azure/mgmt/storage/v2021_04_01/aio/_configuration.py +4 -11
  398. azure/mgmt/storage/v2021_04_01/aio/_patch.py +1 -0
  399. azure/mgmt/storage/v2021_04_01/aio/_storage_management_client.py +57 -23
  400. azure/mgmt/storage/v2021_04_01/aio/operations/_blob_containers_operations.py +181 -295
  401. azure/mgmt/storage/v2021_04_01/aio/operations/_blob_inventory_policies_operations.py +53 -76
  402. azure/mgmt/storage/v2021_04_01/aio/operations/_blob_services_operations.py +45 -63
  403. azure/mgmt/storage/v2021_04_01/aio/operations/_deleted_accounts_operations.py +29 -36
  404. azure/mgmt/storage/v2021_04_01/aio/operations/_encryption_scopes_operations.py +58 -86
  405. azure/mgmt/storage/v2021_04_01/aio/operations/_file_services_operations.py +41 -59
  406. azure/mgmt/storage/v2021_04_01/aio/operations/_file_shares_operations.py +98 -151
  407. azure/mgmt/storage/v2021_04_01/aio/operations/_management_policies_operations.py +39 -57
  408. azure/mgmt/storage/v2021_04_01/aio/operations/_object_replication_policies_operations.py +54 -76
  409. azure/mgmt/storage/v2021_04_01/aio/operations/_operations.py +20 -22
  410. azure/mgmt/storage/v2021_04_01/aio/operations/_private_endpoint_connections_operations.py +53 -76
  411. azure/mgmt/storage/v2021_04_01/aio/operations/_private_link_resources_operations.py +15 -19
  412. azure/mgmt/storage/v2021_04_01/aio/operations/_queue_operations.py +68 -101
  413. azure/mgmt/storage/v2021_04_01/aio/operations/_queue_services_operations.py +40 -58
  414. azure/mgmt/storage/v2021_04_01/aio/operations/_skus_operations.py +20 -22
  415. azure/mgmt/storage/v2021_04_01/aio/operations/_storage_accounts_operations.py +203 -357
  416. azure/mgmt/storage/v2021_04_01/aio/operations/_table_operations.py +55 -79
  417. azure/mgmt/storage/v2021_04_01/aio/operations/_table_services_operations.py +40 -58
  418. azure/mgmt/storage/v2021_04_01/aio/operations/_usages_operations.py +20 -24
  419. azure/mgmt/storage/v2021_04_01/models/_models_py3.py +66 -88
  420. azure/mgmt/storage/v2021_04_01/models/_storage_management_client_enums.py +2 -2
  421. azure/mgmt/storage/v2021_04_01/operations/_blob_containers_operations.py +211 -325
  422. azure/mgmt/storage/v2021_04_01/operations/_blob_inventory_policies_operations.py +62 -85
  423. azure/mgmt/storage/v2021_04_01/operations/_blob_services_operations.py +52 -70
  424. azure/mgmt/storage/v2021_04_01/operations/_deleted_accounts_operations.py +34 -41
  425. azure/mgmt/storage/v2021_04_01/operations/_encryption_scopes_operations.py +67 -95
  426. azure/mgmt/storage/v2021_04_01/operations/_file_services_operations.py +48 -66
  427. azure/mgmt/storage/v2021_04_01/operations/_file_shares_operations.py +113 -166
  428. azure/mgmt/storage/v2021_04_01/operations/_management_policies_operations.py +46 -64
  429. azure/mgmt/storage/v2021_04_01/operations/_object_replication_policies_operations.py +63 -85
  430. azure/mgmt/storage/v2021_04_01/operations/_operations.py +21 -23
  431. azure/mgmt/storage/v2021_04_01/operations/_private_endpoint_connections_operations.py +62 -85
  432. azure/mgmt/storage/v2021_04_01/operations/_private_link_resources_operations.py +18 -22
  433. azure/mgmt/storage/v2021_04_01/operations/_queue_operations.py +79 -112
  434. azure/mgmt/storage/v2021_04_01/operations/_queue_services_operations.py +47 -65
  435. azure/mgmt/storage/v2021_04_01/operations/_skus_operations.py +23 -25
  436. azure/mgmt/storage/v2021_04_01/operations/_storage_accounts_operations.py +233 -387
  437. azure/mgmt/storage/v2021_04_01/operations/_table_operations.py +66 -90
  438. azure/mgmt/storage/v2021_04_01/operations/_table_services_operations.py +47 -65
  439. azure/mgmt/storage/v2021_04_01/operations/_usages_operations.py +23 -27
  440. azure/mgmt/storage/v2021_06_01/_configuration.py +4 -11
  441. azure/mgmt/storage/v2021_06_01/_patch.py +1 -0
  442. azure/mgmt/storage/v2021_06_01/_storage_management_client.py +55 -23
  443. azure/mgmt/storage/v2021_06_01/_vendor.py +0 -14
  444. azure/mgmt/storage/v2021_06_01/_version.py +1 -1
  445. azure/mgmt/storage/v2021_06_01/aio/_configuration.py +4 -11
  446. azure/mgmt/storage/v2021_06_01/aio/_patch.py +1 -0
  447. azure/mgmt/storage/v2021_06_01/aio/_storage_management_client.py +57 -23
  448. azure/mgmt/storage/v2021_06_01/aio/operations/_blob_containers_operations.py +181 -315
  449. azure/mgmt/storage/v2021_06_01/aio/operations/_blob_inventory_policies_operations.py +53 -76
  450. azure/mgmt/storage/v2021_06_01/aio/operations/_blob_services_operations.py +45 -79
  451. azure/mgmt/storage/v2021_06_01/aio/operations/_deleted_accounts_operations.py +29 -36
  452. azure/mgmt/storage/v2021_06_01/aio/operations/_encryption_scopes_operations.py +58 -86
  453. azure/mgmt/storage/v2021_06_01/aio/operations/_file_services_operations.py +41 -75
  454. azure/mgmt/storage/v2021_06_01/aio/operations/_file_shares_operations.py +98 -151
  455. azure/mgmt/storage/v2021_06_01/aio/operations/_management_policies_operations.py +39 -57
  456. azure/mgmt/storage/v2021_06_01/aio/operations/_object_replication_policies_operations.py +54 -76
  457. azure/mgmt/storage/v2021_06_01/aio/operations/_operations.py +20 -22
  458. azure/mgmt/storage/v2021_06_01/aio/operations/_private_endpoint_connections_operations.py +53 -76
  459. azure/mgmt/storage/v2021_06_01/aio/operations/_private_link_resources_operations.py +15 -19
  460. azure/mgmt/storage/v2021_06_01/aio/operations/_queue_operations.py +68 -101
  461. azure/mgmt/storage/v2021_06_01/aio/operations/_queue_services_operations.py +40 -74
  462. azure/mgmt/storage/v2021_06_01/aio/operations/_skus_operations.py +20 -22
  463. azure/mgmt/storage/v2021_06_01/aio/operations/_storage_accounts_operations.py +230 -416
  464. azure/mgmt/storage/v2021_06_01/aio/operations/_table_operations.py +55 -79
  465. azure/mgmt/storage/v2021_06_01/aio/operations/_table_services_operations.py +40 -74
  466. azure/mgmt/storage/v2021_06_01/aio/operations/_usages_operations.py +20 -24
  467. azure/mgmt/storage/v2021_06_01/models/_models_py3.py +66 -88
  468. azure/mgmt/storage/v2021_06_01/models/_storage_management_client_enums.py +2 -2
  469. azure/mgmt/storage/v2021_06_01/operations/_blob_containers_operations.py +211 -345
  470. azure/mgmt/storage/v2021_06_01/operations/_blob_inventory_policies_operations.py +62 -85
  471. azure/mgmt/storage/v2021_06_01/operations/_blob_services_operations.py +52 -86
  472. azure/mgmt/storage/v2021_06_01/operations/_deleted_accounts_operations.py +34 -41
  473. azure/mgmt/storage/v2021_06_01/operations/_encryption_scopes_operations.py +67 -95
  474. azure/mgmt/storage/v2021_06_01/operations/_file_services_operations.py +48 -82
  475. azure/mgmt/storage/v2021_06_01/operations/_file_shares_operations.py +113 -166
  476. azure/mgmt/storage/v2021_06_01/operations/_management_policies_operations.py +46 -64
  477. azure/mgmt/storage/v2021_06_01/operations/_object_replication_policies_operations.py +63 -85
  478. azure/mgmt/storage/v2021_06_01/operations/_operations.py +21 -23
  479. azure/mgmt/storage/v2021_06_01/operations/_private_endpoint_connections_operations.py +62 -85
  480. azure/mgmt/storage/v2021_06_01/operations/_private_link_resources_operations.py +18 -22
  481. azure/mgmt/storage/v2021_06_01/operations/_queue_operations.py +79 -112
  482. azure/mgmt/storage/v2021_06_01/operations/_queue_services_operations.py +47 -81
  483. azure/mgmt/storage/v2021_06_01/operations/_skus_operations.py +23 -25
  484. azure/mgmt/storage/v2021_06_01/operations/_storage_accounts_operations.py +266 -452
  485. azure/mgmt/storage/v2021_06_01/operations/_table_operations.py +66 -90
  486. azure/mgmt/storage/v2021_06_01/operations/_table_services_operations.py +47 -81
  487. azure/mgmt/storage/v2021_06_01/operations/_usages_operations.py +23 -27
  488. azure/mgmt/storage/v2021_08_01/_configuration.py +4 -11
  489. azure/mgmt/storage/v2021_08_01/_patch.py +1 -0
  490. azure/mgmt/storage/v2021_08_01/_storage_management_client.py +59 -25
  491. azure/mgmt/storage/v2021_08_01/_vendor.py +0 -14
  492. azure/mgmt/storage/v2021_08_01/_version.py +1 -1
  493. azure/mgmt/storage/v2021_08_01/aio/_configuration.py +4 -11
  494. azure/mgmt/storage/v2021_08_01/aio/_patch.py +1 -0
  495. azure/mgmt/storage/v2021_08_01/aio/_storage_management_client.py +61 -25
  496. azure/mgmt/storage/v2021_08_01/aio/operations/_blob_containers_operations.py +181 -315
  497. azure/mgmt/storage/v2021_08_01/aio/operations/_blob_inventory_policies_operations.py +53 -76
  498. azure/mgmt/storage/v2021_08_01/aio/operations/_blob_services_operations.py +45 -79
  499. azure/mgmt/storage/v2021_08_01/aio/operations/_deleted_accounts_operations.py +29 -36
  500. azure/mgmt/storage/v2021_08_01/aio/operations/_encryption_scopes_operations.py +58 -86
  501. azure/mgmt/storage/v2021_08_01/aio/operations/_file_services_operations.py +41 -75
  502. azure/mgmt/storage/v2021_08_01/aio/operations/_file_shares_operations.py +98 -151
  503. azure/mgmt/storage/v2021_08_01/aio/operations/_local_users_operations.py +71 -104
  504. azure/mgmt/storage/v2021_08_01/aio/operations/_management_policies_operations.py +39 -57
  505. azure/mgmt/storage/v2021_08_01/aio/operations/_object_replication_policies_operations.py +54 -76
  506. azure/mgmt/storage/v2021_08_01/aio/operations/_operations.py +20 -22
  507. azure/mgmt/storage/v2021_08_01/aio/operations/_private_endpoint_connections_operations.py +53 -76
  508. azure/mgmt/storage/v2021_08_01/aio/operations/_private_link_resources_operations.py +15 -19
  509. azure/mgmt/storage/v2021_08_01/aio/operations/_queue_operations.py +68 -101
  510. azure/mgmt/storage/v2021_08_01/aio/operations/_queue_services_operations.py +40 -74
  511. azure/mgmt/storage/v2021_08_01/aio/operations/_skus_operations.py +20 -22
  512. azure/mgmt/storage/v2021_08_01/aio/operations/_storage_accounts_operations.py +230 -416
  513. azure/mgmt/storage/v2021_08_01/aio/operations/_table_operations.py +55 -79
  514. azure/mgmt/storage/v2021_08_01/aio/operations/_table_services_operations.py +40 -74
  515. azure/mgmt/storage/v2021_08_01/aio/operations/_usages_operations.py +20 -24
  516. azure/mgmt/storage/v2021_08_01/models/_models_py3.py +68 -90
  517. azure/mgmt/storage/v2021_08_01/models/_storage_management_client_enums.py +2 -2
  518. azure/mgmt/storage/v2021_08_01/operations/_blob_containers_operations.py +211 -345
  519. azure/mgmt/storage/v2021_08_01/operations/_blob_inventory_policies_operations.py +62 -85
  520. azure/mgmt/storage/v2021_08_01/operations/_blob_services_operations.py +52 -86
  521. azure/mgmt/storage/v2021_08_01/operations/_deleted_accounts_operations.py +34 -41
  522. azure/mgmt/storage/v2021_08_01/operations/_encryption_scopes_operations.py +67 -95
  523. azure/mgmt/storage/v2021_08_01/operations/_file_services_operations.py +48 -82
  524. azure/mgmt/storage/v2021_08_01/operations/_file_shares_operations.py +113 -166
  525. azure/mgmt/storage/v2021_08_01/operations/_local_users_operations.py +84 -117
  526. azure/mgmt/storage/v2021_08_01/operations/_management_policies_operations.py +46 -64
  527. azure/mgmt/storage/v2021_08_01/operations/_object_replication_policies_operations.py +63 -85
  528. azure/mgmt/storage/v2021_08_01/operations/_operations.py +21 -23
  529. azure/mgmt/storage/v2021_08_01/operations/_private_endpoint_connections_operations.py +62 -85
  530. azure/mgmt/storage/v2021_08_01/operations/_private_link_resources_operations.py +18 -22
  531. azure/mgmt/storage/v2021_08_01/operations/_queue_operations.py +79 -112
  532. azure/mgmt/storage/v2021_08_01/operations/_queue_services_operations.py +47 -81
  533. azure/mgmt/storage/v2021_08_01/operations/_skus_operations.py +23 -25
  534. azure/mgmt/storage/v2021_08_01/operations/_storage_accounts_operations.py +266 -452
  535. azure/mgmt/storage/v2021_08_01/operations/_table_operations.py +66 -90
  536. azure/mgmt/storage/v2021_08_01/operations/_table_services_operations.py +47 -81
  537. azure/mgmt/storage/v2021_08_01/operations/_usages_operations.py +23 -27
  538. azure/mgmt/storage/v2021_09_01/_configuration.py +4 -11
  539. azure/mgmt/storage/v2021_09_01/_patch.py +1 -0
  540. azure/mgmt/storage/v2021_09_01/_storage_management_client.py +59 -25
  541. azure/mgmt/storage/v2021_09_01/_vendor.py +0 -14
  542. azure/mgmt/storage/v2021_09_01/_version.py +1 -1
  543. azure/mgmt/storage/v2021_09_01/aio/_configuration.py +4 -11
  544. azure/mgmt/storage/v2021_09_01/aio/_patch.py +1 -0
  545. azure/mgmt/storage/v2021_09_01/aio/_storage_management_client.py +61 -25
  546. azure/mgmt/storage/v2021_09_01/aio/operations/_blob_containers_operations.py +181 -315
  547. azure/mgmt/storage/v2021_09_01/aio/operations/_blob_inventory_policies_operations.py +53 -76
  548. azure/mgmt/storage/v2021_09_01/aio/operations/_blob_services_operations.py +45 -79
  549. azure/mgmt/storage/v2021_09_01/aio/operations/_deleted_accounts_operations.py +29 -36
  550. azure/mgmt/storage/v2021_09_01/aio/operations/_encryption_scopes_operations.py +58 -86
  551. azure/mgmt/storage/v2021_09_01/aio/operations/_file_services_operations.py +41 -75
  552. azure/mgmt/storage/v2021_09_01/aio/operations/_file_shares_operations.py +98 -151
  553. azure/mgmt/storage/v2021_09_01/aio/operations/_local_users_operations.py +71 -104
  554. azure/mgmt/storage/v2021_09_01/aio/operations/_management_policies_operations.py +39 -57
  555. azure/mgmt/storage/v2021_09_01/aio/operations/_object_replication_policies_operations.py +54 -76
  556. azure/mgmt/storage/v2021_09_01/aio/operations/_operations.py +20 -22
  557. azure/mgmt/storage/v2021_09_01/aio/operations/_private_endpoint_connections_operations.py +53 -76
  558. azure/mgmt/storage/v2021_09_01/aio/operations/_private_link_resources_operations.py +15 -19
  559. azure/mgmt/storage/v2021_09_01/aio/operations/_queue_operations.py +68 -101
  560. azure/mgmt/storage/v2021_09_01/aio/operations/_queue_services_operations.py +40 -74
  561. azure/mgmt/storage/v2021_09_01/aio/operations/_skus_operations.py +20 -22
  562. azure/mgmt/storage/v2021_09_01/aio/operations/_storage_accounts_operations.py +230 -416
  563. azure/mgmt/storage/v2021_09_01/aio/operations/_table_operations.py +70 -103
  564. azure/mgmt/storage/v2021_09_01/aio/operations/_table_services_operations.py +40 -74
  565. azure/mgmt/storage/v2021_09_01/aio/operations/_usages_operations.py +20 -24
  566. azure/mgmt/storage/v2021_09_01/models/_models_py3.py +70 -92
  567. azure/mgmt/storage/v2021_09_01/models/_storage_management_client_enums.py +2 -2
  568. azure/mgmt/storage/v2021_09_01/operations/_blob_containers_operations.py +211 -345
  569. azure/mgmt/storage/v2021_09_01/operations/_blob_inventory_policies_operations.py +62 -85
  570. azure/mgmt/storage/v2021_09_01/operations/_blob_services_operations.py +52 -86
  571. azure/mgmt/storage/v2021_09_01/operations/_deleted_accounts_operations.py +34 -41
  572. azure/mgmt/storage/v2021_09_01/operations/_encryption_scopes_operations.py +67 -95
  573. azure/mgmt/storage/v2021_09_01/operations/_file_services_operations.py +48 -82
  574. azure/mgmt/storage/v2021_09_01/operations/_file_shares_operations.py +113 -166
  575. azure/mgmt/storage/v2021_09_01/operations/_local_users_operations.py +84 -117
  576. azure/mgmt/storage/v2021_09_01/operations/_management_policies_operations.py +46 -64
  577. azure/mgmt/storage/v2021_09_01/operations/_object_replication_policies_operations.py +63 -85
  578. azure/mgmt/storage/v2021_09_01/operations/_operations.py +21 -23
  579. azure/mgmt/storage/v2021_09_01/operations/_private_endpoint_connections_operations.py +62 -85
  580. azure/mgmt/storage/v2021_09_01/operations/_private_link_resources_operations.py +18 -22
  581. azure/mgmt/storage/v2021_09_01/operations/_queue_operations.py +79 -112
  582. azure/mgmt/storage/v2021_09_01/operations/_queue_services_operations.py +47 -81
  583. azure/mgmt/storage/v2021_09_01/operations/_skus_operations.py +23 -25
  584. azure/mgmt/storage/v2021_09_01/operations/_storage_accounts_operations.py +266 -452
  585. azure/mgmt/storage/v2021_09_01/operations/_table_operations.py +81 -114
  586. azure/mgmt/storage/v2021_09_01/operations/_table_services_operations.py +47 -81
  587. azure/mgmt/storage/v2021_09_01/operations/_usages_operations.py +23 -27
  588. azure/mgmt/storage/v2022_05_01/_configuration.py +4 -11
  589. azure/mgmt/storage/v2022_05_01/_storage_management_client.py +59 -25
  590. azure/mgmt/storage/v2022_05_01/_vendor.py +0 -14
  591. azure/mgmt/storage/v2022_05_01/_version.py +1 -1
  592. azure/mgmt/storage/v2022_05_01/aio/_configuration.py +4 -11
  593. azure/mgmt/storage/v2022_05_01/aio/_storage_management_client.py +61 -25
  594. azure/mgmt/storage/v2022_05_01/aio/operations/_blob_containers_operations.py +181 -315
  595. azure/mgmt/storage/v2022_05_01/aio/operations/_blob_inventory_policies_operations.py +53 -76
  596. azure/mgmt/storage/v2022_05_01/aio/operations/_blob_services_operations.py +45 -79
  597. azure/mgmt/storage/v2022_05_01/aio/operations/_deleted_accounts_operations.py +29 -36
  598. azure/mgmt/storage/v2022_05_01/aio/operations/_encryption_scopes_operations.py +58 -86
  599. azure/mgmt/storage/v2022_05_01/aio/operations/_file_services_operations.py +41 -75
  600. azure/mgmt/storage/v2022_05_01/aio/operations/_file_shares_operations.py +98 -151
  601. azure/mgmt/storage/v2022_05_01/aio/operations/_local_users_operations.py +71 -104
  602. azure/mgmt/storage/v2022_05_01/aio/operations/_management_policies_operations.py +39 -57
  603. azure/mgmt/storage/v2022_05_01/aio/operations/_object_replication_policies_operations.py +54 -76
  604. azure/mgmt/storage/v2022_05_01/aio/operations/_operations.py +20 -22
  605. azure/mgmt/storage/v2022_05_01/aio/operations/_private_endpoint_connections_operations.py +53 -76
  606. azure/mgmt/storage/v2022_05_01/aio/operations/_private_link_resources_operations.py +15 -19
  607. azure/mgmt/storage/v2022_05_01/aio/operations/_queue_operations.py +68 -101
  608. azure/mgmt/storage/v2022_05_01/aio/operations/_queue_services_operations.py +40 -74
  609. azure/mgmt/storage/v2022_05_01/aio/operations/_skus_operations.py +20 -22
  610. azure/mgmt/storage/v2022_05_01/aio/operations/_storage_accounts_operations.py +230 -416
  611. azure/mgmt/storage/v2022_05_01/aio/operations/_table_operations.py +70 -103
  612. azure/mgmt/storage/v2022_05_01/aio/operations/_table_services_operations.py +40 -74
  613. azure/mgmt/storage/v2022_05_01/aio/operations/_usages_operations.py +20 -24
  614. azure/mgmt/storage/v2022_05_01/models/_models_py3.py +69 -91
  615. azure/mgmt/storage/v2022_05_01/models/_storage_management_client_enums.py +2 -2
  616. azure/mgmt/storage/v2022_05_01/operations/_blob_containers_operations.py +211 -345
  617. azure/mgmt/storage/v2022_05_01/operations/_blob_inventory_policies_operations.py +62 -85
  618. azure/mgmt/storage/v2022_05_01/operations/_blob_services_operations.py +52 -86
  619. azure/mgmt/storage/v2022_05_01/operations/_deleted_accounts_operations.py +34 -41
  620. azure/mgmt/storage/v2022_05_01/operations/_encryption_scopes_operations.py +67 -95
  621. azure/mgmt/storage/v2022_05_01/operations/_file_services_operations.py +48 -82
  622. azure/mgmt/storage/v2022_05_01/operations/_file_shares_operations.py +113 -166
  623. azure/mgmt/storage/v2022_05_01/operations/_local_users_operations.py +84 -117
  624. azure/mgmt/storage/v2022_05_01/operations/_management_policies_operations.py +46 -64
  625. azure/mgmt/storage/v2022_05_01/operations/_object_replication_policies_operations.py +63 -85
  626. azure/mgmt/storage/v2022_05_01/operations/_operations.py +21 -23
  627. azure/mgmt/storage/v2022_05_01/operations/_private_endpoint_connections_operations.py +62 -85
  628. azure/mgmt/storage/v2022_05_01/operations/_private_link_resources_operations.py +18 -22
  629. azure/mgmt/storage/v2022_05_01/operations/_queue_operations.py +79 -112
  630. azure/mgmt/storage/v2022_05_01/operations/_queue_services_operations.py +47 -81
  631. azure/mgmt/storage/v2022_05_01/operations/_skus_operations.py +23 -25
  632. azure/mgmt/storage/v2022_05_01/operations/_storage_accounts_operations.py +266 -452
  633. azure/mgmt/storage/v2022_05_01/operations/_table_operations.py +81 -114
  634. azure/mgmt/storage/v2022_05_01/operations/_table_services_operations.py +47 -81
  635. azure/mgmt/storage/v2022_05_01/operations/_usages_operations.py +23 -27
  636. azure/mgmt/storage/v2022_09_01/_configuration.py +4 -11
  637. azure/mgmt/storage/v2022_09_01/_storage_management_client.py +59 -25
  638. azure/mgmt/storage/v2022_09_01/_vendor.py +0 -14
  639. azure/mgmt/storage/v2022_09_01/_version.py +1 -1
  640. azure/mgmt/storage/v2022_09_01/aio/_configuration.py +4 -11
  641. azure/mgmt/storage/v2022_09_01/aio/_storage_management_client.py +61 -25
  642. azure/mgmt/storage/v2022_09_01/aio/operations/_blob_containers_operations.py +181 -315
  643. azure/mgmt/storage/v2022_09_01/aio/operations/_blob_inventory_policies_operations.py +53 -76
  644. azure/mgmt/storage/v2022_09_01/aio/operations/_blob_services_operations.py +45 -79
  645. azure/mgmt/storage/v2022_09_01/aio/operations/_deleted_accounts_operations.py +29 -36
  646. azure/mgmt/storage/v2022_09_01/aio/operations/_encryption_scopes_operations.py +58 -86
  647. azure/mgmt/storage/v2022_09_01/aio/operations/_file_services_operations.py +41 -75
  648. azure/mgmt/storage/v2022_09_01/aio/operations/_file_shares_operations.py +98 -151
  649. azure/mgmt/storage/v2022_09_01/aio/operations/_local_users_operations.py +71 -104
  650. azure/mgmt/storage/v2022_09_01/aio/operations/_management_policies_operations.py +39 -57
  651. azure/mgmt/storage/v2022_09_01/aio/operations/_object_replication_policies_operations.py +54 -76
  652. azure/mgmt/storage/v2022_09_01/aio/operations/_operations.py +20 -22
  653. azure/mgmt/storage/v2022_09_01/aio/operations/_private_endpoint_connections_operations.py +53 -76
  654. azure/mgmt/storage/v2022_09_01/aio/operations/_private_link_resources_operations.py +15 -19
  655. azure/mgmt/storage/v2022_09_01/aio/operations/_queue_operations.py +68 -101
  656. azure/mgmt/storage/v2022_09_01/aio/operations/_queue_services_operations.py +40 -74
  657. azure/mgmt/storage/v2022_09_01/aio/operations/_skus_operations.py +20 -22
  658. azure/mgmt/storage/v2022_09_01/aio/operations/_storage_accounts_operations.py +230 -416
  659. azure/mgmt/storage/v2022_09_01/aio/operations/_table_operations.py +70 -103
  660. azure/mgmt/storage/v2022_09_01/aio/operations/_table_services_operations.py +40 -74
  661. azure/mgmt/storage/v2022_09_01/aio/operations/_usages_operations.py +20 -24
  662. azure/mgmt/storage/v2022_09_01/models/_models_py3.py +69 -91
  663. azure/mgmt/storage/v2022_09_01/models/_storage_management_client_enums.py +2 -2
  664. azure/mgmt/storage/v2022_09_01/operations/_blob_containers_operations.py +211 -345
  665. azure/mgmt/storage/v2022_09_01/operations/_blob_inventory_policies_operations.py +62 -85
  666. azure/mgmt/storage/v2022_09_01/operations/_blob_services_operations.py +52 -86
  667. azure/mgmt/storage/v2022_09_01/operations/_deleted_accounts_operations.py +34 -41
  668. azure/mgmt/storage/v2022_09_01/operations/_encryption_scopes_operations.py +67 -95
  669. azure/mgmt/storage/v2022_09_01/operations/_file_services_operations.py +48 -82
  670. azure/mgmt/storage/v2022_09_01/operations/_file_shares_operations.py +113 -166
  671. azure/mgmt/storage/v2022_09_01/operations/_local_users_operations.py +84 -117
  672. azure/mgmt/storage/v2022_09_01/operations/_management_policies_operations.py +46 -64
  673. azure/mgmt/storage/v2022_09_01/operations/_object_replication_policies_operations.py +63 -85
  674. azure/mgmt/storage/v2022_09_01/operations/_operations.py +21 -23
  675. azure/mgmt/storage/v2022_09_01/operations/_private_endpoint_connections_operations.py +62 -85
  676. azure/mgmt/storage/v2022_09_01/operations/_private_link_resources_operations.py +18 -22
  677. azure/mgmt/storage/v2022_09_01/operations/_queue_operations.py +79 -112
  678. azure/mgmt/storage/v2022_09_01/operations/_queue_services_operations.py +47 -81
  679. azure/mgmt/storage/v2022_09_01/operations/_skus_operations.py +23 -25
  680. azure/mgmt/storage/v2022_09_01/operations/_storage_accounts_operations.py +266 -452
  681. azure/mgmt/storage/v2022_09_01/operations/_table_operations.py +81 -114
  682. azure/mgmt/storage/v2022_09_01/operations/_table_services_operations.py +47 -81
  683. azure/mgmt/storage/v2022_09_01/operations/_usages_operations.py +23 -27
  684. azure/mgmt/storage/v2023_01_01/__init__.py +26 -0
  685. azure/mgmt/storage/v2023_01_01/_configuration.py +65 -0
  686. azure/mgmt/storage/v2023_01_01/_patch.py +20 -0
  687. azure/mgmt/storage/v2023_01_01/_storage_management_client.py +225 -0
  688. azure/mgmt/storage/v2023_01_01/_vendor.py +16 -0
  689. azure/mgmt/storage/v2023_01_01/_version.py +9 -0
  690. azure/mgmt/storage/v2023_01_01/aio/__init__.py +23 -0
  691. azure/mgmt/storage/v2023_01_01/aio/_configuration.py +65 -0
  692. azure/mgmt/storage/v2023_01_01/aio/_patch.py +20 -0
  693. azure/mgmt/storage/v2023_01_01/aio/_storage_management_client.py +230 -0
  694. azure/mgmt/storage/v2023_01_01/aio/operations/__init__.py +57 -0
  695. azure/mgmt/storage/v2023_01_01/aio/operations/_blob_containers_operations.py +1838 -0
  696. azure/mgmt/storage/v2023_01_01/aio/operations/_blob_inventory_policies_operations.py +442 -0
  697. azure/mgmt/storage/v2023_01_01/aio/operations/_blob_services_operations.py +362 -0
  698. azure/mgmt/storage/v2023_01_01/aio/operations/_deleted_accounts_operations.py +194 -0
  699. azure/mgmt/storage/v2023_01_01/aio/operations/_encryption_scopes_operations.py +568 -0
  700. azure/mgmt/storage/v2023_01_01/aio/operations/_file_services_operations.py +328 -0
  701. azure/mgmt/storage/v2023_01_01/aio/operations/_file_shares_operations.py +1003 -0
  702. azure/mgmt/storage/v2023_01_01/aio/operations/_local_users_operations.py +560 -0
  703. azure/mgmt/storage/v2023_01_01/aio/operations/_management_policies_operations.py +349 -0
  704. azure/mgmt/storage/v2023_01_01/aio/operations/_object_replication_policies_operations.py +446 -0
  705. azure/mgmt/storage/v2023_01_01/aio/operations/_operations.py +135 -0
  706. azure/mgmt/storage/v2023_01_01/aio/operations/_patch.py +20 -0
  707. azure/mgmt/storage/v2023_01_01/aio/operations/_private_endpoint_connections_operations.py +432 -0
  708. azure/mgmt/storage/v2023_01_01/aio/operations/_private_link_resources_operations.py +117 -0
  709. azure/mgmt/storage/v2023_01_01/aio/operations/_queue_operations.py +608 -0
  710. azure/mgmt/storage/v2023_01_01/aio/operations/_queue_services_operations.py +328 -0
  711. azure/mgmt/storage/v2023_01_01/aio/operations/_skus_operations.py +136 -0
  712. azure/mgmt/storage/v2023_01_01/aio/operations/_storage_accounts_operations.py +2187 -0
  713. azure/mgmt/storage/v2023_01_01/aio/operations/_table_operations.py +588 -0
  714. azure/mgmt/storage/v2023_01_01/aio/operations/_table_services_operations.py +328 -0
  715. azure/mgmt/storage/v2023_01_01/aio/operations/_usages_operations.py +139 -0
  716. azure/mgmt/storage/v2023_01_01/models/__init__.py +461 -0
  717. azure/mgmt/storage/v2023_01_01/models/_models_py3.py +8338 -0
  718. azure/mgmt/storage/v2023_01_01/models/_patch.py +20 -0
  719. azure/mgmt/storage/v2023_01_01/models/_storage_management_client_enums.py +626 -0
  720. azure/mgmt/storage/v2023_01_01/operations/__init__.py +57 -0
  721. azure/mgmt/storage/v2023_01_01/operations/_blob_containers_operations.py +2398 -0
  722. azure/mgmt/storage/v2023_01_01/operations/_blob_inventory_policies_operations.py +595 -0
  723. azure/mgmt/storage/v2023_01_01/operations/_blob_services_operations.py +470 -0
  724. azure/mgmt/storage/v2023_01_01/operations/_deleted_accounts_operations.py +250 -0
  725. azure/mgmt/storage/v2023_01_01/operations/_encryption_scopes_operations.py +732 -0
  726. azure/mgmt/storage/v2023_01_01/operations/_file_services_operations.py +437 -0
  727. azure/mgmt/storage/v2023_01_01/operations/_file_shares_operations.py +1310 -0
  728. azure/mgmt/storage/v2023_01_01/operations/_local_users_operations.py +770 -0
  729. azure/mgmt/storage/v2023_01_01/operations/_management_policies_operations.py +465 -0
  730. azure/mgmt/storage/v2023_01_01/operations/_object_replication_policies_operations.py +593 -0
  731. azure/mgmt/storage/v2023_01_01/operations/_operations.py +156 -0
  732. azure/mgmt/storage/v2023_01_01/operations/_patch.py +20 -0
  733. azure/mgmt/storage/v2023_01_01/operations/_private_endpoint_connections_operations.py +591 -0
  734. azure/mgmt/storage/v2023_01_01/operations/_private_link_resources_operations.py +155 -0
  735. azure/mgmt/storage/v2023_01_01/operations/_queue_operations.py +824 -0
  736. azure/mgmt/storage/v2023_01_01/operations/_queue_services_operations.py +437 -0
  737. azure/mgmt/storage/v2023_01_01/operations/_skus_operations.py +162 -0
  738. azure/mgmt/storage/v2023_01_01/operations/_storage_accounts_operations.py +2796 -0
  739. azure/mgmt/storage/v2023_01_01/operations/_table_operations.py +775 -0
  740. azure/mgmt/storage/v2023_01_01/operations/_table_services_operations.py +437 -0
  741. azure/mgmt/storage/v2023_01_01/operations/_usages_operations.py +169 -0
  742. azure/mgmt/storage/v2023_05_01/__init__.py +26 -0
  743. azure/mgmt/storage/v2023_05_01/_configuration.py +65 -0
  744. azure/mgmt/storage/v2023_05_01/_patch.py +20 -0
  745. azure/mgmt/storage/v2023_05_01/_storage_management_client.py +256 -0
  746. azure/mgmt/storage/v2023_05_01/_vendor.py +16 -0
  747. azure/mgmt/storage/v2023_05_01/_version.py +9 -0
  748. azure/mgmt/storage/v2023_05_01/aio/__init__.py +23 -0
  749. azure/mgmt/storage/v2023_05_01/aio/_configuration.py +65 -0
  750. azure/mgmt/storage/v2023_05_01/aio/_patch.py +20 -0
  751. azure/mgmt/storage/v2023_05_01/aio/_storage_management_client.py +261 -0
  752. azure/mgmt/storage/v2023_05_01/aio/operations/__init__.py +65 -0
  753. azure/mgmt/storage/v2023_05_01/aio/operations/_blob_containers_operations.py +1838 -0
  754. azure/mgmt/storage/v2023_05_01/aio/operations/_blob_inventory_policies_operations.py +442 -0
  755. azure/mgmt/storage/v2023_05_01/aio/operations/_blob_services_operations.py +362 -0
  756. azure/mgmt/storage/v2023_05_01/aio/operations/_deleted_accounts_operations.py +194 -0
  757. azure/mgmt/storage/v2023_05_01/aio/operations/_encryption_scopes_operations.py +568 -0
  758. azure/mgmt/storage/v2023_05_01/aio/operations/_file_services_operations.py +328 -0
  759. azure/mgmt/storage/v2023_05_01/aio/operations/_file_shares_operations.py +1003 -0
  760. azure/mgmt/storage/v2023_05_01/aio/operations/_local_users_operations.py +583 -0
  761. azure/mgmt/storage/v2023_05_01/aio/operations/_management_policies_operations.py +349 -0
  762. azure/mgmt/storage/v2023_05_01/aio/operations/_network_security_perimeter_configurations_operations.py +342 -0
  763. azure/mgmt/storage/v2023_05_01/aio/operations/_object_replication_policies_operations.py +446 -0
  764. azure/mgmt/storage/v2023_05_01/aio/operations/_operations.py +135 -0
  765. azure/mgmt/storage/v2023_05_01/aio/operations/_patch.py +20 -0
  766. azure/mgmt/storage/v2023_05_01/aio/operations/_private_endpoint_connections_operations.py +432 -0
  767. azure/mgmt/storage/v2023_05_01/aio/operations/_private_link_resources_operations.py +117 -0
  768. azure/mgmt/storage/v2023_05_01/aio/operations/_queue_operations.py +608 -0
  769. azure/mgmt/storage/v2023_05_01/aio/operations/_queue_services_operations.py +328 -0
  770. azure/mgmt/storage/v2023_05_01/aio/operations/_skus_operations.py +136 -0
  771. azure/mgmt/storage/v2023_05_01/aio/operations/_storage_accounts_operations.py +2187 -0
  772. azure/mgmt/storage/v2023_05_01/aio/operations/_storage_task_assignment_instances_report_operations.py +170 -0
  773. azure/mgmt/storage/v2023_05_01/aio/operations/_storage_task_assignments_instances_report_operations.py +164 -0
  774. azure/mgmt/storage/v2023_05_01/aio/operations/_storage_task_assignments_operations.py +802 -0
  775. azure/mgmt/storage/v2023_05_01/aio/operations/_table_operations.py +588 -0
  776. azure/mgmt/storage/v2023_05_01/aio/operations/_table_services_operations.py +328 -0
  777. azure/mgmt/storage/v2023_05_01/aio/operations/_usages_operations.py +139 -0
  778. azure/mgmt/storage/v2023_05_01/models/__init__.py +537 -0
  779. azure/mgmt/storage/v2023_05_01/models/_models_py3.py +9703 -0
  780. azure/mgmt/storage/v2023_05_01/models/_patch.py +20 -0
  781. azure/mgmt/storage/v2023_05_01/models/_storage_management_client_enums.py +706 -0
  782. azure/mgmt/storage/v2023_05_01/operations/__init__.py +65 -0
  783. azure/mgmt/storage/v2023_05_01/operations/_blob_containers_operations.py +2398 -0
  784. azure/mgmt/storage/v2023_05_01/operations/_blob_inventory_policies_operations.py +595 -0
  785. azure/mgmt/storage/v2023_05_01/operations/_blob_services_operations.py +470 -0
  786. azure/mgmt/storage/v2023_05_01/operations/_deleted_accounts_operations.py +250 -0
  787. azure/mgmt/storage/v2023_05_01/operations/_encryption_scopes_operations.py +732 -0
  788. azure/mgmt/storage/v2023_05_01/operations/_file_services_operations.py +437 -0
  789. azure/mgmt/storage/v2023_05_01/operations/_file_shares_operations.py +1310 -0
  790. azure/mgmt/storage/v2023_05_01/operations/_local_users_operations.py +808 -0
  791. azure/mgmt/storage/v2023_05_01/operations/_management_policies_operations.py +465 -0
  792. azure/mgmt/storage/v2023_05_01/operations/_network_security_perimeter_configurations_operations.py +463 -0
  793. azure/mgmt/storage/v2023_05_01/operations/_object_replication_policies_operations.py +593 -0
  794. azure/mgmt/storage/v2023_05_01/operations/_operations.py +156 -0
  795. azure/mgmt/storage/v2023_05_01/operations/_patch.py +20 -0
  796. azure/mgmt/storage/v2023_05_01/operations/_private_endpoint_connections_operations.py +591 -0
  797. azure/mgmt/storage/v2023_05_01/operations/_private_link_resources_operations.py +155 -0
  798. azure/mgmt/storage/v2023_05_01/operations/_queue_operations.py +824 -0
  799. azure/mgmt/storage/v2023_05_01/operations/_queue_services_operations.py +437 -0
  800. azure/mgmt/storage/v2023_05_01/operations/_skus_operations.py +162 -0
  801. azure/mgmt/storage/v2023_05_01/operations/_storage_accounts_operations.py +2796 -0
  802. azure/mgmt/storage/v2023_05_01/operations/_storage_task_assignment_instances_report_operations.py +227 -0
  803. azure/mgmt/storage/v2023_05_01/operations/_storage_task_assignments_instances_report_operations.py +212 -0
  804. azure/mgmt/storage/v2023_05_01/operations/_storage_task_assignments_operations.py +1018 -0
  805. azure/mgmt/storage/v2023_05_01/operations/_table_operations.py +775 -0
  806. azure/mgmt/storage/v2023_05_01/operations/_table_services_operations.py +437 -0
  807. azure/mgmt/storage/v2023_05_01/operations/_usages_operations.py +169 -0
  808. {azure_mgmt_storage-21.1.0b1.dist-info → azure_mgmt_storage-21.2.0.dist-info}/METADATA +44 -13
  809. azure_mgmt_storage-21.2.0.dist-info/RECORD +979 -0
  810. {azure_mgmt_storage-21.1.0b1.dist-info → azure_mgmt_storage-21.2.0.dist-info}/WHEEL +1 -1
  811. azure_mgmt_storage-21.1.0b1.dist-info/RECORD +0 -855
  812. {azure_mgmt_storage-21.1.0b1.dist-info → azure_mgmt_storage-21.2.0.dist-info}/LICENSE +0 -0
  813. {azure_mgmt_storage-21.1.0b1.dist-info → azure_mgmt_storage-21.2.0.dist-info}/top_level.txt +0 -0
@@ -1,4 +1,4 @@
1
- # pylint: disable=too-many-lines
1
+ # pylint: disable=too-many-lines,too-many-statements
2
2
  # coding=utf-8
3
3
  # --------------------------------------------------------------------------
4
4
  # Copyright (c) Microsoft Corporation. All rights reserved.
@@ -6,8 +6,9 @@
6
6
  # Code generated by Microsoft (R) AutoRest Code Generator.
7
7
  # Changes may cause incorrect behavior and will be lost if the code is regenerated.
8
8
  # --------------------------------------------------------------------------
9
+ from io import IOBase
9
10
  import sys
10
- from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload
11
+ from typing import Any, Callable, Dict, IO, Iterable, Literal, Optional, Type, TypeVar, Union, cast, overload
11
12
  import urllib.parse
12
13
 
13
14
  from azure.core.exceptions import (
@@ -30,12 +31,12 @@ from azure.mgmt.core.polling.arm_polling import ARMPolling
30
31
 
31
32
  from .. import models as _models
32
33
  from ..._serialization import Serializer
33
- from .._vendor import _convert_request, _format_url_section
34
+ from .._vendor import _convert_request
34
35
 
35
- if sys.version_info >= (3, 8):
36
- from typing import Literal # pylint: disable=no-name-in-module, ungrouped-imports
36
+ if sys.version_info >= (3, 9):
37
+ from collections.abc import MutableMapping
37
38
  else:
38
- from typing_extensions import Literal # type: ignore # pylint: disable=ungrouped-imports
39
+ from typing import MutableMapping # type: ignore # pylint: disable=ungrouped-imports
39
40
  T = TypeVar("T")
40
41
  ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]]
41
42
 
@@ -47,7 +48,7 @@ def build_check_name_availability_request(subscription_id: str, **kwargs: Any) -
47
48
  _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
48
49
  _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
49
50
 
50
- api_version: Literal["2022-05-01"] = kwargs.pop("api_version", _params.pop("api-version", "2022-05-01"))
51
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-05-01"))
51
52
  content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
52
53
  accept = _headers.pop("Accept", "application/json")
53
54
 
@@ -59,7 +60,7 @@ def build_check_name_availability_request(subscription_id: str, **kwargs: Any) -
59
60
  "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str", min_length=1),
60
61
  }
61
62
 
62
- _url: str = _format_url_section(_url, **path_format_arguments) # type: ignore
63
+ _url: str = _url.format(**path_format_arguments) # type: ignore
63
64
 
64
65
  # Construct parameters
65
66
  _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str")
@@ -78,7 +79,7 @@ def build_create_request(
78
79
  _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
79
80
  _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
80
81
 
81
- api_version: Literal["2022-05-01"] = kwargs.pop("api_version", _params.pop("api-version", "2022-05-01"))
82
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-05-01"))
82
83
  content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
83
84
  accept = _headers.pop("Accept", "application/json")
84
85
 
@@ -95,7 +96,7 @@ def build_create_request(
95
96
  "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str", min_length=1),
96
97
  }
97
98
 
98
- _url: str = _format_url_section(_url, **path_format_arguments) # type: ignore
99
+ _url: str = _url.format(**path_format_arguments) # type: ignore
99
100
 
100
101
  # Construct parameters
101
102
  _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str")
@@ -113,7 +114,7 @@ def build_delete_request(
113
114
  ) -> HttpRequest:
114
115
  _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
115
116
 
116
- api_version: Literal["2022-05-01"] = kwargs.pop("api_version", _params.pop("api-version", "2022-05-01"))
117
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-05-01"))
117
118
  # Construct URL
118
119
  _url = kwargs.pop(
119
120
  "template_url",
@@ -127,7 +128,7 @@ def build_delete_request(
127
128
  "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str", min_length=1),
128
129
  }
129
130
 
130
- _url: str = _format_url_section(_url, **path_format_arguments) # type: ignore
131
+ _url: str = _url.format(**path_format_arguments) # type: ignore
131
132
 
132
133
  # Construct parameters
133
134
  _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str")
@@ -146,7 +147,7 @@ def build_get_properties_request(
146
147
  _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
147
148
  _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
148
149
 
149
- api_version: Literal["2022-05-01"] = kwargs.pop("api_version", _params.pop("api-version", "2022-05-01"))
150
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-05-01"))
150
151
  accept = _headers.pop("Accept", "application/json")
151
152
 
152
153
  # Construct URL
@@ -162,7 +163,7 @@ def build_get_properties_request(
162
163
  "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str", min_length=1),
163
164
  }
164
165
 
165
- _url: str = _format_url_section(_url, **path_format_arguments) # type: ignore
166
+ _url: str = _url.format(**path_format_arguments) # type: ignore
166
167
 
167
168
  # Construct parameters
168
169
  _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str")
@@ -181,7 +182,7 @@ def build_update_request(
181
182
  _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
182
183
  _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
183
184
 
184
- api_version: Literal["2022-05-01"] = kwargs.pop("api_version", _params.pop("api-version", "2022-05-01"))
185
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-05-01"))
185
186
  content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
186
187
  accept = _headers.pop("Accept", "application/json")
187
188
 
@@ -198,7 +199,7 @@ def build_update_request(
198
199
  "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str", min_length=1),
199
200
  }
200
201
 
201
- _url: str = _format_url_section(_url, **path_format_arguments) # type: ignore
202
+ _url: str = _url.format(**path_format_arguments) # type: ignore
202
203
 
203
204
  # Construct parameters
204
205
  _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str")
@@ -215,7 +216,7 @@ def build_list_request(subscription_id: str, **kwargs: Any) -> HttpRequest:
215
216
  _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
216
217
  _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
217
218
 
218
- api_version: Literal["2022-05-01"] = kwargs.pop("api_version", _params.pop("api-version", "2022-05-01"))
219
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-05-01"))
219
220
  accept = _headers.pop("Accept", "application/json")
220
221
 
221
222
  # Construct URL
@@ -224,7 +225,7 @@ def build_list_request(subscription_id: str, **kwargs: Any) -> HttpRequest:
224
225
  "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str", min_length=1),
225
226
  }
226
227
 
227
- _url: str = _format_url_section(_url, **path_format_arguments) # type: ignore
228
+ _url: str = _url.format(**path_format_arguments) # type: ignore
228
229
 
229
230
  # Construct parameters
230
231
  _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str")
@@ -239,7 +240,7 @@ def build_list_by_resource_group_request(resource_group_name: str, subscription_
239
240
  _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
240
241
  _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
241
242
 
242
- api_version: Literal["2022-05-01"] = kwargs.pop("api_version", _params.pop("api-version", "2022-05-01"))
243
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-05-01"))
243
244
  accept = _headers.pop("Accept", "application/json")
244
245
 
245
246
  # Construct URL
@@ -254,7 +255,7 @@ def build_list_by_resource_group_request(resource_group_name: str, subscription_
254
255
  "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str", min_length=1),
255
256
  }
256
257
 
257
- _url: str = _format_url_section(_url, **path_format_arguments) # type: ignore
258
+ _url: str = _url.format(**path_format_arguments) # type: ignore
258
259
 
259
260
  # Construct parameters
260
261
  _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str")
@@ -276,7 +277,7 @@ def build_list_keys_request(
276
277
  _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
277
278
  _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
278
279
 
279
- api_version: Literal["2022-05-01"] = kwargs.pop("api_version", _params.pop("api-version", "2022-05-01"))
280
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-05-01"))
280
281
  accept = _headers.pop("Accept", "application/json")
281
282
 
282
283
  # Construct URL
@@ -292,7 +293,7 @@ def build_list_keys_request(
292
293
  "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str", min_length=1),
293
294
  }
294
295
 
295
- _url: str = _format_url_section(_url, **path_format_arguments) # type: ignore
296
+ _url: str = _url.format(**path_format_arguments) # type: ignore
296
297
 
297
298
  # Construct parameters
298
299
  _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str")
@@ -311,7 +312,7 @@ def build_regenerate_key_request(
311
312
  _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
312
313
  _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
313
314
 
314
- api_version: Literal["2022-05-01"] = kwargs.pop("api_version", _params.pop("api-version", "2022-05-01"))
315
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-05-01"))
315
316
  content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
316
317
  accept = _headers.pop("Accept", "application/json")
317
318
 
@@ -328,7 +329,7 @@ def build_regenerate_key_request(
328
329
  "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str", min_length=1),
329
330
  }
330
331
 
331
- _url: str = _format_url_section(_url, **path_format_arguments) # type: ignore
332
+ _url: str = _url.format(**path_format_arguments) # type: ignore
332
333
 
333
334
  # Construct parameters
334
335
  _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str")
@@ -347,7 +348,7 @@ def build_list_account_sas_request(
347
348
  _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
348
349
  _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
349
350
 
350
- api_version: Literal["2022-05-01"] = kwargs.pop("api_version", _params.pop("api-version", "2022-05-01"))
351
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-05-01"))
351
352
  content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
352
353
  accept = _headers.pop("Accept", "application/json")
353
354
 
@@ -364,7 +365,7 @@ def build_list_account_sas_request(
364
365
  "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str", min_length=1),
365
366
  }
366
367
 
367
- _url: str = _format_url_section(_url, **path_format_arguments) # type: ignore
368
+ _url: str = _url.format(**path_format_arguments) # type: ignore
368
369
 
369
370
  # Construct parameters
370
371
  _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str")
@@ -383,7 +384,7 @@ def build_list_service_sas_request(
383
384
  _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
384
385
  _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
385
386
 
386
- api_version: Literal["2022-05-01"] = kwargs.pop("api_version", _params.pop("api-version", "2022-05-01"))
387
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-05-01"))
387
388
  content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
388
389
  accept = _headers.pop("Accept", "application/json")
389
390
 
@@ -400,7 +401,7 @@ def build_list_service_sas_request(
400
401
  "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str", min_length=1),
401
402
  }
402
403
 
403
- _url: str = _format_url_section(_url, **path_format_arguments) # type: ignore
404
+ _url: str = _url.format(**path_format_arguments) # type: ignore
404
405
 
405
406
  # Construct parameters
406
407
  _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str")
@@ -418,7 +419,7 @@ def build_failover_request(
418
419
  ) -> HttpRequest:
419
420
  _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
420
421
 
421
- api_version: Literal["2022-05-01"] = kwargs.pop("api_version", _params.pop("api-version", "2022-05-01"))
422
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-05-01"))
422
423
  # Construct URL
423
424
  _url = kwargs.pop(
424
425
  "template_url",
@@ -432,7 +433,7 @@ def build_failover_request(
432
433
  "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str", min_length=1),
433
434
  }
434
435
 
435
- _url: str = _format_url_section(_url, **path_format_arguments) # type: ignore
436
+ _url: str = _url.format(**path_format_arguments) # type: ignore
436
437
 
437
438
  # Construct parameters
438
439
  _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str")
@@ -440,13 +441,13 @@ def build_failover_request(
440
441
  return HttpRequest(method="POST", url=_url, params=_params, **kwargs)
441
442
 
442
443
 
443
- def build_hierarchical_namespace_migration_request(
444
+ def build_hierarchical_namespace_migration_request( # pylint: disable=name-too-long
444
445
  resource_group_name: str, account_name: str, subscription_id: str, *, request_type: str, **kwargs: Any
445
446
  ) -> HttpRequest:
446
447
  _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
447
448
  _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
448
449
 
449
- api_version: Literal["2022-05-01"] = kwargs.pop("api_version", _params.pop("api-version", "2022-05-01"))
450
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-05-01"))
450
451
  accept = _headers.pop("Accept", "application/json")
451
452
 
452
453
  # Construct URL
@@ -462,7 +463,7 @@ def build_hierarchical_namespace_migration_request(
462
463
  "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str", min_length=1),
463
464
  }
464
465
 
465
- _url: str = _format_url_section(_url, **path_format_arguments) # type: ignore
466
+ _url: str = _url.format(**path_format_arguments) # type: ignore
466
467
 
467
468
  # Construct parameters
468
469
  _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str")
@@ -474,13 +475,13 @@ def build_hierarchical_namespace_migration_request(
474
475
  return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs)
475
476
 
476
477
 
477
- def build_abort_hierarchical_namespace_migration_request(
478
+ def build_abort_hierarchical_namespace_migration_request( # pylint: disable=name-too-long
478
479
  resource_group_name: str, account_name: str, subscription_id: str, **kwargs: Any
479
480
  ) -> HttpRequest:
480
481
  _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
481
482
  _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
482
483
 
483
- api_version: Literal["2022-05-01"] = kwargs.pop("api_version", _params.pop("api-version", "2022-05-01"))
484
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-05-01"))
484
485
  accept = _headers.pop("Accept", "application/json")
485
486
 
486
487
  # Construct URL
@@ -496,7 +497,7 @@ def build_abort_hierarchical_namespace_migration_request(
496
497
  "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str", min_length=1),
497
498
  }
498
499
 
499
- _url: str = _format_url_section(_url, **path_format_arguments) # type: ignore
500
+ _url: str = _url.format(**path_format_arguments) # type: ignore
500
501
 
501
502
  # Construct parameters
502
503
  _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str")
@@ -513,7 +514,7 @@ def build_restore_blob_ranges_request(
513
514
  _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
514
515
  _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
515
516
 
516
- api_version: Literal["2022-05-01"] = kwargs.pop("api_version", _params.pop("api-version", "2022-05-01"))
517
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-05-01"))
517
518
  content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
518
519
  accept = _headers.pop("Accept", "application/json")
519
520
 
@@ -530,7 +531,7 @@ def build_restore_blob_ranges_request(
530
531
  "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str", min_length=1),
531
532
  }
532
533
 
533
- _url: str = _format_url_section(_url, **path_format_arguments) # type: ignore
534
+ _url: str = _url.format(**path_format_arguments) # type: ignore
534
535
 
535
536
  # Construct parameters
536
537
  _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str")
@@ -543,12 +544,12 @@ def build_restore_blob_ranges_request(
543
544
  return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs)
544
545
 
545
546
 
546
- def build_revoke_user_delegation_keys_request(
547
+ def build_revoke_user_delegation_keys_request( # pylint: disable=name-too-long
547
548
  resource_group_name: str, account_name: str, subscription_id: str, **kwargs: Any
548
549
  ) -> HttpRequest:
549
550
  _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
550
551
 
551
- api_version: Literal["2022-05-01"] = kwargs.pop("api_version", _params.pop("api-version", "2022-05-01"))
552
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-05-01"))
552
553
  # Construct URL
553
554
  _url = kwargs.pop(
554
555
  "template_url",
@@ -562,7 +563,7 @@ def build_revoke_user_delegation_keys_request(
562
563
  "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str", min_length=1),
563
564
  }
564
565
 
565
- _url: str = _format_url_section(_url, **path_format_arguments) # type: ignore
566
+ _url: str = _url.format(**path_format_arguments) # type: ignore
566
567
 
567
568
  # Construct parameters
568
569
  _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str")
@@ -588,6 +589,7 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
588
589
  self._config = input_args.pop(0) if input_args else kwargs.pop("config")
589
590
  self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer")
590
591
  self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer")
592
+ self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version")
591
593
 
592
594
  @overload
593
595
  def check_name_availability(
@@ -607,7 +609,6 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
607
609
  :keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
608
610
  Default value is "application/json".
609
611
  :paramtype content_type: str
610
- :keyword callable cls: A custom type or function that will be passed the direct response
611
612
  :return: CheckNameAvailabilityResult or the result of cls(response)
612
613
  :rtype: ~azure.mgmt.storage.v2022_05_01.models.CheckNameAvailabilityResult
613
614
  :raises ~azure.core.exceptions.HttpResponseError:
@@ -615,18 +616,17 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
615
616
 
616
617
  @overload
617
618
  def check_name_availability(
618
- self, account_name: IO, *, content_type: str = "application/json", **kwargs: Any
619
+ self, account_name: IO[bytes], *, content_type: str = "application/json", **kwargs: Any
619
620
  ) -> _models.CheckNameAvailabilityResult:
620
621
  """Checks that the storage account name is valid and is not already in use.
621
622
 
622
623
  :param account_name: The name of the storage account within the specified resource group.
623
624
  Storage account names must be between 3 and 24 characters in length and use numbers and
624
625
  lower-case letters only. Required.
625
- :type account_name: IO
626
+ :type account_name: IO[bytes]
626
627
  :keyword content_type: Body Parameter content-type. Content type parameter for binary body.
627
628
  Default value is "application/json".
628
629
  :paramtype content_type: str
629
- :keyword callable cls: A custom type or function that will be passed the direct response
630
630
  :return: CheckNameAvailabilityResult or the result of cls(response)
631
631
  :rtype: ~azure.mgmt.storage.v2022_05_01.models.CheckNameAvailabilityResult
632
632
  :raises ~azure.core.exceptions.HttpResponseError:
@@ -634,25 +634,22 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
634
634
 
635
635
  @distributed_trace
636
636
  def check_name_availability(
637
- self, account_name: Union[_models.StorageAccountCheckNameAvailabilityParameters, IO], **kwargs: Any
637
+ self, account_name: Union[_models.StorageAccountCheckNameAvailabilityParameters, IO[bytes]], **kwargs: Any
638
638
  ) -> _models.CheckNameAvailabilityResult:
639
639
  """Checks that the storage account name is valid and is not already in use.
640
640
 
641
641
  :param account_name: The name of the storage account within the specified resource group.
642
642
  Storage account names must be between 3 and 24 characters in length and use numbers and
643
- lower-case letters only. Is either a StorageAccountCheckNameAvailabilityParameters type or a IO
644
- type. Required.
643
+ lower-case letters only. Is either a StorageAccountCheckNameAvailabilityParameters type or a
644
+ IO[bytes] type. Required.
645
645
  :type account_name:
646
- ~azure.mgmt.storage.v2022_05_01.models.StorageAccountCheckNameAvailabilityParameters or IO
647
- :keyword content_type: Body Parameter content-type. Known values are: 'application/json'.
648
- Default value is None.
649
- :paramtype content_type: str
650
- :keyword callable cls: A custom type or function that will be passed the direct response
646
+ ~azure.mgmt.storage.v2022_05_01.models.StorageAccountCheckNameAvailabilityParameters or
647
+ IO[bytes]
651
648
  :return: CheckNameAvailabilityResult or the result of cls(response)
652
649
  :rtype: ~azure.mgmt.storage.v2022_05_01.models.CheckNameAvailabilityResult
653
650
  :raises ~azure.core.exceptions.HttpResponseError:
654
651
  """
655
- error_map = {
652
+ error_map: MutableMapping[int, Type[HttpResponseError]] = {
656
653
  401: ClientAuthenticationError,
657
654
  404: ResourceNotFoundError,
658
655
  409: ResourceExistsError,
@@ -663,33 +660,33 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
663
660
  _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
664
661
  _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
665
662
 
666
- api_version: Literal["2022-05-01"] = kwargs.pop("api_version", _params.pop("api-version", "2022-05-01"))
663
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-05-01"))
667
664
  content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
668
665
  cls: ClsType[_models.CheckNameAvailabilityResult] = kwargs.pop("cls", None)
669
666
 
670
667
  content_type = content_type or "application/json"
671
668
  _json = None
672
669
  _content = None
673
- if isinstance(account_name, (IO, bytes)):
670
+ if isinstance(account_name, (IOBase, bytes)):
674
671
  _content = account_name
675
672
  else:
676
673
  _json = self._serialize.body(account_name, "StorageAccountCheckNameAvailabilityParameters")
677
674
 
678
- request = build_check_name_availability_request(
675
+ _request = build_check_name_availability_request(
679
676
  subscription_id=self._config.subscription_id,
680
677
  api_version=api_version,
681
678
  content_type=content_type,
682
679
  json=_json,
683
680
  content=_content,
684
- template_url=self.check_name_availability.metadata["url"],
685
681
  headers=_headers,
686
682
  params=_params,
687
683
  )
688
- request = _convert_request(request)
689
- request.url = self._client.format_url(request.url)
684
+ _request = _convert_request(_request)
685
+ _request.url = self._client.format_url(_request.url)
690
686
 
687
+ _stream = False
691
688
  pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access
692
- request, stream=False, **kwargs
689
+ _request, stream=_stream, **kwargs
693
690
  )
694
691
 
695
692
  response = pipeline_response.http_response
@@ -701,22 +698,18 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
701
698
  deserialized = self._deserialize("CheckNameAvailabilityResult", pipeline_response)
702
699
 
703
700
  if cls:
704
- return cls(pipeline_response, deserialized, {})
705
-
706
- return deserialized
701
+ return cls(pipeline_response, deserialized, {}) # type: ignore
707
702
 
708
- check_name_availability.metadata = {
709
- "url": "/subscriptions/{subscriptionId}/providers/Microsoft.Storage/checkNameAvailability"
710
- }
703
+ return deserialized # type: ignore
711
704
 
712
705
  def _create_initial(
713
706
  self,
714
707
  resource_group_name: str,
715
708
  account_name: str,
716
- parameters: Union[_models.StorageAccountCreateParameters, IO],
709
+ parameters: Union[_models.StorageAccountCreateParameters, IO[bytes]],
717
710
  **kwargs: Any
718
711
  ) -> Optional[_models.StorageAccount]:
719
- error_map = {
712
+ error_map: MutableMapping[int, Type[HttpResponseError]] = {
720
713
  401: ClientAuthenticationError,
721
714
  404: ResourceNotFoundError,
722
715
  409: ResourceExistsError,
@@ -727,19 +720,19 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
727
720
  _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
728
721
  _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
729
722
 
730
- api_version: Literal["2022-05-01"] = kwargs.pop("api_version", _params.pop("api-version", "2022-05-01"))
723
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-05-01"))
731
724
  content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
732
725
  cls: ClsType[Optional[_models.StorageAccount]] = kwargs.pop("cls", None)
733
726
 
734
727
  content_type = content_type or "application/json"
735
728
  _json = None
736
729
  _content = None
737
- if isinstance(parameters, (IO, bytes)):
730
+ if isinstance(parameters, (IOBase, bytes)):
738
731
  _content = parameters
739
732
  else:
740
733
  _json = self._serialize.body(parameters, "StorageAccountCreateParameters")
741
734
 
742
- request = build_create_request(
735
+ _request = build_create_request(
743
736
  resource_group_name=resource_group_name,
744
737
  account_name=account_name,
745
738
  subscription_id=self._config.subscription_id,
@@ -747,15 +740,15 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
747
740
  content_type=content_type,
748
741
  json=_json,
749
742
  content=_content,
750
- template_url=self._create_initial.metadata["url"],
751
743
  headers=_headers,
752
744
  params=_params,
753
745
  )
754
- request = _convert_request(request)
755
- request.url = self._client.format_url(request.url)
746
+ _request = _convert_request(_request)
747
+ _request.url = self._client.format_url(_request.url)
756
748
 
749
+ _stream = False
757
750
  pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access
758
- request, stream=False, **kwargs
751
+ _request, stream=_stream, **kwargs
759
752
  )
760
753
 
761
754
  response = pipeline_response.http_response
@@ -769,13 +762,9 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
769
762
  deserialized = self._deserialize("StorageAccount", pipeline_response)
770
763
 
771
764
  if cls:
772
- return cls(pipeline_response, deserialized, {})
773
-
774
- return deserialized
765
+ return cls(pipeline_response, deserialized, {}) # type: ignore
775
766
 
776
- _create_initial.metadata = {
777
- "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}"
778
- }
767
+ return deserialized # type: ignore
779
768
 
780
769
  @overload
781
770
  def begin_create(
@@ -804,14 +793,6 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
804
793
  :keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
805
794
  Default value is "application/json".
806
795
  :paramtype content_type: str
807
- :keyword callable cls: A custom type or function that will be passed the direct response
808
- :keyword str continuation_token: A continuation token to restart a poller from a saved state.
809
- :keyword polling: By default, your polling method will be ARMPolling. Pass in False for this
810
- operation to not poll, or pass in your own initialized polling object for a personal polling
811
- strategy.
812
- :paramtype polling: bool or ~azure.core.polling.PollingMethod
813
- :keyword int polling_interval: Default waiting time between two polls for LRO operations if no
814
- Retry-After header is present.
815
796
  :return: An instance of LROPoller that returns either StorageAccount or the result of
816
797
  cls(response)
817
798
  :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.storage.v2022_05_01.models.StorageAccount]
@@ -823,7 +804,7 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
823
804
  self,
824
805
  resource_group_name: str,
825
806
  account_name: str,
826
- parameters: IO,
807
+ parameters: IO[bytes],
827
808
  *,
828
809
  content_type: str = "application/json",
829
810
  **kwargs: Any
@@ -841,18 +822,10 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
841
822
  lower-case letters only. Required.
842
823
  :type account_name: str
843
824
  :param parameters: The parameters to provide for the created account. Required.
844
- :type parameters: IO
825
+ :type parameters: IO[bytes]
845
826
  :keyword content_type: Body Parameter content-type. Content type parameter for binary body.
846
827
  Default value is "application/json".
847
828
  :paramtype content_type: str
848
- :keyword callable cls: A custom type or function that will be passed the direct response
849
- :keyword str continuation_token: A continuation token to restart a poller from a saved state.
850
- :keyword polling: By default, your polling method will be ARMPolling. Pass in False for this
851
- operation to not poll, or pass in your own initialized polling object for a personal polling
852
- strategy.
853
- :paramtype polling: bool or ~azure.core.polling.PollingMethod
854
- :keyword int polling_interval: Default waiting time between two polls for LRO operations if no
855
- Retry-After header is present.
856
829
  :return: An instance of LROPoller that returns either StorageAccount or the result of
857
830
  cls(response)
858
831
  :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.storage.v2022_05_01.models.StorageAccount]
@@ -864,7 +837,7 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
864
837
  self,
865
838
  resource_group_name: str,
866
839
  account_name: str,
867
- parameters: Union[_models.StorageAccountCreateParameters, IO],
840
+ parameters: Union[_models.StorageAccountCreateParameters, IO[bytes]],
868
841
  **kwargs: Any
869
842
  ) -> LROPoller[_models.StorageAccount]:
870
843
  """Asynchronously creates a new storage account with the specified parameters. If an account is
@@ -880,19 +853,9 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
880
853
  lower-case letters only. Required.
881
854
  :type account_name: str
882
855
  :param parameters: The parameters to provide for the created account. Is either a
883
- StorageAccountCreateParameters type or a IO type. Required.
884
- :type parameters: ~azure.mgmt.storage.v2022_05_01.models.StorageAccountCreateParameters or IO
885
- :keyword content_type: Body Parameter content-type. Known values are: 'application/json'.
886
- Default value is None.
887
- :paramtype content_type: str
888
- :keyword callable cls: A custom type or function that will be passed the direct response
889
- :keyword str continuation_token: A continuation token to restart a poller from a saved state.
890
- :keyword polling: By default, your polling method will be ARMPolling. Pass in False for this
891
- operation to not poll, or pass in your own initialized polling object for a personal polling
892
- strategy.
893
- :paramtype polling: bool or ~azure.core.polling.PollingMethod
894
- :keyword int polling_interval: Default waiting time between two polls for LRO operations if no
895
- Retry-After header is present.
856
+ StorageAccountCreateParameters type or a IO[bytes] type. Required.
857
+ :type parameters: ~azure.mgmt.storage.v2022_05_01.models.StorageAccountCreateParameters or
858
+ IO[bytes]
896
859
  :return: An instance of LROPoller that returns either StorageAccount or the result of
897
860
  cls(response)
898
861
  :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.storage.v2022_05_01.models.StorageAccount]
@@ -901,7 +864,7 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
901
864
  _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
902
865
  _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
903
866
 
904
- api_version: Literal["2022-05-01"] = kwargs.pop("api_version", _params.pop("api-version", "2022-05-01"))
867
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-05-01"))
905
868
  content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
906
869
  cls: ClsType[_models.StorageAccount] = kwargs.pop("cls", None)
907
870
  polling: Union[bool, PollingMethod] = kwargs.pop("polling", True)
@@ -924,7 +887,7 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
924
887
  def get_long_running_output(pipeline_response):
925
888
  deserialized = self._deserialize("StorageAccount", pipeline_response)
926
889
  if cls:
927
- return cls(pipeline_response, deserialized, {})
890
+ return cls(pipeline_response, deserialized, {}) # type: ignore
928
891
  return deserialized
929
892
 
930
893
  if polling is True:
@@ -934,17 +897,15 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
934
897
  else:
935
898
  polling_method = polling
936
899
  if cont_token:
937
- return LROPoller.from_continuation_token(
900
+ return LROPoller[_models.StorageAccount].from_continuation_token(
938
901
  polling_method=polling_method,
939
902
  continuation_token=cont_token,
940
903
  client=self._client,
941
904
  deserialization_callback=get_long_running_output,
942
905
  )
943
- return LROPoller(self._client, raw_result, get_long_running_output, polling_method) # type: ignore
944
-
945
- begin_create.metadata = {
946
- "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}"
947
- }
906
+ return LROPoller[_models.StorageAccount](
907
+ self._client, raw_result, get_long_running_output, polling_method # type: ignore
908
+ )
948
909
 
949
910
  @distributed_trace
950
911
  def delete( # pylint: disable=inconsistent-return-statements
@@ -959,12 +920,11 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
959
920
  Storage account names must be between 3 and 24 characters in length and use numbers and
960
921
  lower-case letters only. Required.
961
922
  :type account_name: str
962
- :keyword callable cls: A custom type or function that will be passed the direct response
963
923
  :return: None or the result of cls(response)
964
924
  :rtype: None
965
925
  :raises ~azure.core.exceptions.HttpResponseError:
966
926
  """
967
- error_map = {
927
+ error_map: MutableMapping[int, Type[HttpResponseError]] = {
968
928
  401: ClientAuthenticationError,
969
929
  404: ResourceNotFoundError,
970
930
  409: ResourceExistsError,
@@ -975,23 +935,23 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
975
935
  _headers = kwargs.pop("headers", {}) or {}
976
936
  _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
977
937
 
978
- api_version: Literal["2022-05-01"] = kwargs.pop("api_version", _params.pop("api-version", "2022-05-01"))
938
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-05-01"))
979
939
  cls: ClsType[None] = kwargs.pop("cls", None)
980
940
 
981
- request = build_delete_request(
941
+ _request = build_delete_request(
982
942
  resource_group_name=resource_group_name,
983
943
  account_name=account_name,
984
944
  subscription_id=self._config.subscription_id,
985
945
  api_version=api_version,
986
- template_url=self.delete.metadata["url"],
987
946
  headers=_headers,
988
947
  params=_params,
989
948
  )
990
- request = _convert_request(request)
991
- request.url = self._client.format_url(request.url)
949
+ _request = _convert_request(_request)
950
+ _request.url = self._client.format_url(_request.url)
992
951
 
952
+ _stream = False
993
953
  pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access
994
- request, stream=False, **kwargs
954
+ _request, stream=_stream, **kwargs
995
955
  )
996
956
 
997
957
  response = pipeline_response.http_response
@@ -1001,11 +961,7 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
1001
961
  raise HttpResponseError(response=response, error_format=ARMErrorFormat)
1002
962
 
1003
963
  if cls:
1004
- return cls(pipeline_response, None, {})
1005
-
1006
- delete.metadata = {
1007
- "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}"
1008
- }
964
+ return cls(pipeline_response, None, {}) # type: ignore
1009
965
 
1010
966
  @distributed_trace
1011
967
  def get_properties(
@@ -1031,12 +987,11 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
1031
987
  and blobRestoreStatus. Known values are: "geoReplicationStats" and "blobRestoreStatus". Default
1032
988
  value is None.
1033
989
  :type expand: str or ~azure.mgmt.storage.v2022_05_01.models.StorageAccountExpand
1034
- :keyword callable cls: A custom type or function that will be passed the direct response
1035
990
  :return: StorageAccount or the result of cls(response)
1036
991
  :rtype: ~azure.mgmt.storage.v2022_05_01.models.StorageAccount
1037
992
  :raises ~azure.core.exceptions.HttpResponseError:
1038
993
  """
1039
- error_map = {
994
+ error_map: MutableMapping[int, Type[HttpResponseError]] = {
1040
995
  401: ClientAuthenticationError,
1041
996
  404: ResourceNotFoundError,
1042
997
  409: ResourceExistsError,
@@ -1047,24 +1002,24 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
1047
1002
  _headers = kwargs.pop("headers", {}) or {}
1048
1003
  _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
1049
1004
 
1050
- api_version: Literal["2022-05-01"] = kwargs.pop("api_version", _params.pop("api-version", "2022-05-01"))
1005
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-05-01"))
1051
1006
  cls: ClsType[_models.StorageAccount] = kwargs.pop("cls", None)
1052
1007
 
1053
- request = build_get_properties_request(
1008
+ _request = build_get_properties_request(
1054
1009
  resource_group_name=resource_group_name,
1055
1010
  account_name=account_name,
1056
1011
  subscription_id=self._config.subscription_id,
1057
1012
  expand=expand,
1058
1013
  api_version=api_version,
1059
- template_url=self.get_properties.metadata["url"],
1060
1014
  headers=_headers,
1061
1015
  params=_params,
1062
1016
  )
1063
- request = _convert_request(request)
1064
- request.url = self._client.format_url(request.url)
1017
+ _request = _convert_request(_request)
1018
+ _request.url = self._client.format_url(_request.url)
1065
1019
 
1020
+ _stream = False
1066
1021
  pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access
1067
- request, stream=False, **kwargs
1022
+ _request, stream=_stream, **kwargs
1068
1023
  )
1069
1024
 
1070
1025
  response = pipeline_response.http_response
@@ -1076,13 +1031,9 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
1076
1031
  deserialized = self._deserialize("StorageAccount", pipeline_response)
1077
1032
 
1078
1033
  if cls:
1079
- return cls(pipeline_response, deserialized, {})
1080
-
1081
- return deserialized
1034
+ return cls(pipeline_response, deserialized, {}) # type: ignore
1082
1035
 
1083
- get_properties.metadata = {
1084
- "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}"
1085
- }
1036
+ return deserialized # type: ignore
1086
1037
 
1087
1038
  @overload
1088
1039
  def update(
@@ -1115,7 +1066,6 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
1115
1066
  :keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
1116
1067
  Default value is "application/json".
1117
1068
  :paramtype content_type: str
1118
- :keyword callable cls: A custom type or function that will be passed the direct response
1119
1069
  :return: StorageAccount or the result of cls(response)
1120
1070
  :rtype: ~azure.mgmt.storage.v2022_05_01.models.StorageAccount
1121
1071
  :raises ~azure.core.exceptions.HttpResponseError:
@@ -1126,7 +1076,7 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
1126
1076
  self,
1127
1077
  resource_group_name: str,
1128
1078
  account_name: str,
1129
- parameters: IO,
1079
+ parameters: IO[bytes],
1130
1080
  *,
1131
1081
  content_type: str = "application/json",
1132
1082
  **kwargs: Any
@@ -1148,11 +1098,10 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
1148
1098
  lower-case letters only. Required.
1149
1099
  :type account_name: str
1150
1100
  :param parameters: The parameters to provide for the updated account. Required.
1151
- :type parameters: IO
1101
+ :type parameters: IO[bytes]
1152
1102
  :keyword content_type: Body Parameter content-type. Content type parameter for binary body.
1153
1103
  Default value is "application/json".
1154
1104
  :paramtype content_type: str
1155
- :keyword callable cls: A custom type or function that will be passed the direct response
1156
1105
  :return: StorageAccount or the result of cls(response)
1157
1106
  :rtype: ~azure.mgmt.storage.v2022_05_01.models.StorageAccount
1158
1107
  :raises ~azure.core.exceptions.HttpResponseError:
@@ -1163,7 +1112,7 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
1163
1112
  self,
1164
1113
  resource_group_name: str,
1165
1114
  account_name: str,
1166
- parameters: Union[_models.StorageAccountUpdateParameters, IO],
1115
+ parameters: Union[_models.StorageAccountUpdateParameters, IO[bytes]],
1167
1116
  **kwargs: Any
1168
1117
  ) -> _models.StorageAccount:
1169
1118
  """The update operation can be used to update the SKU, encryption, access tier, or tags for a
@@ -1183,17 +1132,14 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
1183
1132
  lower-case letters only. Required.
1184
1133
  :type account_name: str
1185
1134
  :param parameters: The parameters to provide for the updated account. Is either a
1186
- StorageAccountUpdateParameters type or a IO type. Required.
1187
- :type parameters: ~azure.mgmt.storage.v2022_05_01.models.StorageAccountUpdateParameters or IO
1188
- :keyword content_type: Body Parameter content-type. Known values are: 'application/json'.
1189
- Default value is None.
1190
- :paramtype content_type: str
1191
- :keyword callable cls: A custom type or function that will be passed the direct response
1135
+ StorageAccountUpdateParameters type or a IO[bytes] type. Required.
1136
+ :type parameters: ~azure.mgmt.storage.v2022_05_01.models.StorageAccountUpdateParameters or
1137
+ IO[bytes]
1192
1138
  :return: StorageAccount or the result of cls(response)
1193
1139
  :rtype: ~azure.mgmt.storage.v2022_05_01.models.StorageAccount
1194
1140
  :raises ~azure.core.exceptions.HttpResponseError:
1195
1141
  """
1196
- error_map = {
1142
+ error_map: MutableMapping[int, Type[HttpResponseError]] = {
1197
1143
  401: ClientAuthenticationError,
1198
1144
  404: ResourceNotFoundError,
1199
1145
  409: ResourceExistsError,
@@ -1204,19 +1150,19 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
1204
1150
  _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
1205
1151
  _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
1206
1152
 
1207
- api_version: Literal["2022-05-01"] = kwargs.pop("api_version", _params.pop("api-version", "2022-05-01"))
1153
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-05-01"))
1208
1154
  content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
1209
1155
  cls: ClsType[_models.StorageAccount] = kwargs.pop("cls", None)
1210
1156
 
1211
1157
  content_type = content_type or "application/json"
1212
1158
  _json = None
1213
1159
  _content = None
1214
- if isinstance(parameters, (IO, bytes)):
1160
+ if isinstance(parameters, (IOBase, bytes)):
1215
1161
  _content = parameters
1216
1162
  else:
1217
1163
  _json = self._serialize.body(parameters, "StorageAccountUpdateParameters")
1218
1164
 
1219
- request = build_update_request(
1165
+ _request = build_update_request(
1220
1166
  resource_group_name=resource_group_name,
1221
1167
  account_name=account_name,
1222
1168
  subscription_id=self._config.subscription_id,
@@ -1224,15 +1170,15 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
1224
1170
  content_type=content_type,
1225
1171
  json=_json,
1226
1172
  content=_content,
1227
- template_url=self.update.metadata["url"],
1228
1173
  headers=_headers,
1229
1174
  params=_params,
1230
1175
  )
1231
- request = _convert_request(request)
1232
- request.url = self._client.format_url(request.url)
1176
+ _request = _convert_request(_request)
1177
+ _request.url = self._client.format_url(_request.url)
1233
1178
 
1179
+ _stream = False
1234
1180
  pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access
1235
- request, stream=False, **kwargs
1181
+ _request, stream=_stream, **kwargs
1236
1182
  )
1237
1183
 
1238
1184
  response = pipeline_response.http_response
@@ -1244,20 +1190,15 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
1244
1190
  deserialized = self._deserialize("StorageAccount", pipeline_response)
1245
1191
 
1246
1192
  if cls:
1247
- return cls(pipeline_response, deserialized, {})
1248
-
1249
- return deserialized
1193
+ return cls(pipeline_response, deserialized, {}) # type: ignore
1250
1194
 
1251
- update.metadata = {
1252
- "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}"
1253
- }
1195
+ return deserialized # type: ignore
1254
1196
 
1255
1197
  @distributed_trace
1256
1198
  def list(self, **kwargs: Any) -> Iterable["_models.StorageAccount"]:
1257
1199
  """Lists all the storage accounts available under the subscription. Note that storage keys are not
1258
1200
  returned; use the ListKeys operation for this.
1259
1201
 
1260
- :keyword callable cls: A custom type or function that will be passed the direct response
1261
1202
  :return: An iterator like instance of either StorageAccount or the result of cls(response)
1262
1203
  :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.storage.v2022_05_01.models.StorageAccount]
1263
1204
  :raises ~azure.core.exceptions.HttpResponseError:
@@ -1265,10 +1206,10 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
1265
1206
  _headers = kwargs.pop("headers", {}) or {}
1266
1207
  _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
1267
1208
 
1268
- api_version: Literal["2022-05-01"] = kwargs.pop("api_version", _params.pop("api-version", "2022-05-01"))
1209
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-05-01"))
1269
1210
  cls: ClsType[_models.StorageAccountListResult] = kwargs.pop("cls", None)
1270
1211
 
1271
- error_map = {
1212
+ error_map: MutableMapping[int, Type[HttpResponseError]] = {
1272
1213
  401: ClientAuthenticationError,
1273
1214
  404: ResourceNotFoundError,
1274
1215
  409: ResourceExistsError,
@@ -1279,15 +1220,14 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
1279
1220
  def prepare_request(next_link=None):
1280
1221
  if not next_link:
1281
1222
 
1282
- request = build_list_request(
1223
+ _request = build_list_request(
1283
1224
  subscription_id=self._config.subscription_id,
1284
1225
  api_version=api_version,
1285
- template_url=self.list.metadata["url"],
1286
1226
  headers=_headers,
1287
1227
  params=_params,
1288
1228
  )
1289
- request = _convert_request(request)
1290
- request.url = self._client.format_url(request.url)
1229
+ _request = _convert_request(_request)
1230
+ _request.url = self._client.format_url(_request.url)
1291
1231
 
1292
1232
  else:
1293
1233
  # make call to next link with the client's api-version
@@ -1298,14 +1238,14 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
1298
1238
  for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items()
1299
1239
  }
1300
1240
  )
1301
- _next_request_params["api-version"] = self._config.api_version
1302
- request = HttpRequest(
1241
+ _next_request_params["api-version"] = self._api_version
1242
+ _request = HttpRequest(
1303
1243
  "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params
1304
1244
  )
1305
- request = _convert_request(request)
1306
- request.url = self._client.format_url(request.url)
1307
- request.method = "GET"
1308
- return request
1245
+ _request = _convert_request(_request)
1246
+ _request.url = self._client.format_url(_request.url)
1247
+ _request.method = "GET"
1248
+ return _request
1309
1249
 
1310
1250
  def extract_data(pipeline_response):
1311
1251
  deserialized = self._deserialize("StorageAccountListResult", pipeline_response)
@@ -1315,10 +1255,11 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
1315
1255
  return deserialized.next_link or None, iter(list_of_elem)
1316
1256
 
1317
1257
  def get_next(next_link=None):
1318
- request = prepare_request(next_link)
1258
+ _request = prepare_request(next_link)
1319
1259
 
1260
+ _stream = False
1320
1261
  pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access
1321
- request, stream=False, **kwargs
1262
+ _request, stream=_stream, **kwargs
1322
1263
  )
1323
1264
  response = pipeline_response.http_response
1324
1265
 
@@ -1330,8 +1271,6 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
1330
1271
 
1331
1272
  return ItemPaged(get_next, extract_data)
1332
1273
 
1333
- list.metadata = {"url": "/subscriptions/{subscriptionId}/providers/Microsoft.Storage/storageAccounts"}
1334
-
1335
1274
  @distributed_trace
1336
1275
  def list_by_resource_group(self, resource_group_name: str, **kwargs: Any) -> Iterable["_models.StorageAccount"]:
1337
1276
  """Lists all the storage accounts available under the given resource group. Note that storage keys
@@ -1340,7 +1279,6 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
1340
1279
  :param resource_group_name: The name of the resource group within the user's subscription. The
1341
1280
  name is case insensitive. Required.
1342
1281
  :type resource_group_name: str
1343
- :keyword callable cls: A custom type or function that will be passed the direct response
1344
1282
  :return: An iterator like instance of either StorageAccount or the result of cls(response)
1345
1283
  :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.storage.v2022_05_01.models.StorageAccount]
1346
1284
  :raises ~azure.core.exceptions.HttpResponseError:
@@ -1348,10 +1286,10 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
1348
1286
  _headers = kwargs.pop("headers", {}) or {}
1349
1287
  _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
1350
1288
 
1351
- api_version: Literal["2022-05-01"] = kwargs.pop("api_version", _params.pop("api-version", "2022-05-01"))
1289
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-05-01"))
1352
1290
  cls: ClsType[_models.StorageAccountListResult] = kwargs.pop("cls", None)
1353
1291
 
1354
- error_map = {
1292
+ error_map: MutableMapping[int, Type[HttpResponseError]] = {
1355
1293
  401: ClientAuthenticationError,
1356
1294
  404: ResourceNotFoundError,
1357
1295
  409: ResourceExistsError,
@@ -1362,16 +1300,15 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
1362
1300
  def prepare_request(next_link=None):
1363
1301
  if not next_link:
1364
1302
 
1365
- request = build_list_by_resource_group_request(
1303
+ _request = build_list_by_resource_group_request(
1366
1304
  resource_group_name=resource_group_name,
1367
1305
  subscription_id=self._config.subscription_id,
1368
1306
  api_version=api_version,
1369
- template_url=self.list_by_resource_group.metadata["url"],
1370
1307
  headers=_headers,
1371
1308
  params=_params,
1372
1309
  )
1373
- request = _convert_request(request)
1374
- request.url = self._client.format_url(request.url)
1310
+ _request = _convert_request(_request)
1311
+ _request.url = self._client.format_url(_request.url)
1375
1312
 
1376
1313
  else:
1377
1314
  # make call to next link with the client's api-version
@@ -1382,14 +1319,14 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
1382
1319
  for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items()
1383
1320
  }
1384
1321
  )
1385
- _next_request_params["api-version"] = self._config.api_version
1386
- request = HttpRequest(
1322
+ _next_request_params["api-version"] = self._api_version
1323
+ _request = HttpRequest(
1387
1324
  "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params
1388
1325
  )
1389
- request = _convert_request(request)
1390
- request.url = self._client.format_url(request.url)
1391
- request.method = "GET"
1392
- return request
1326
+ _request = _convert_request(_request)
1327
+ _request.url = self._client.format_url(_request.url)
1328
+ _request.method = "GET"
1329
+ return _request
1393
1330
 
1394
1331
  def extract_data(pipeline_response):
1395
1332
  deserialized = self._deserialize("StorageAccountListResult", pipeline_response)
@@ -1399,10 +1336,11 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
1399
1336
  return deserialized.next_link or None, iter(list_of_elem)
1400
1337
 
1401
1338
  def get_next(next_link=None):
1402
- request = prepare_request(next_link)
1339
+ _request = prepare_request(next_link)
1403
1340
 
1341
+ _stream = False
1404
1342
  pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access
1405
- request, stream=False, **kwargs
1343
+ _request, stream=_stream, **kwargs
1406
1344
  )
1407
1345
  response = pipeline_response.http_response
1408
1346
 
@@ -1414,10 +1352,6 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
1414
1352
 
1415
1353
  return ItemPaged(get_next, extract_data)
1416
1354
 
1417
- list_by_resource_group.metadata = {
1418
- "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts"
1419
- }
1420
-
1421
1355
  @distributed_trace
1422
1356
  def list_keys(
1423
1357
  self, resource_group_name: str, account_name: str, expand: Literal["kerb"] = "kerb", **kwargs: Any
@@ -1435,12 +1369,11 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
1435
1369
  :param expand: Specifies type of the key to be listed. Possible value is kerb. Known values are
1436
1370
  "kerb" and None. Default value is "kerb".
1437
1371
  :type expand: str
1438
- :keyword callable cls: A custom type or function that will be passed the direct response
1439
1372
  :return: StorageAccountListKeysResult or the result of cls(response)
1440
1373
  :rtype: ~azure.mgmt.storage.v2022_05_01.models.StorageAccountListKeysResult
1441
1374
  :raises ~azure.core.exceptions.HttpResponseError:
1442
1375
  """
1443
- error_map = {
1376
+ error_map: MutableMapping[int, Type[HttpResponseError]] = {
1444
1377
  401: ClientAuthenticationError,
1445
1378
  404: ResourceNotFoundError,
1446
1379
  409: ResourceExistsError,
@@ -1451,24 +1384,24 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
1451
1384
  _headers = kwargs.pop("headers", {}) or {}
1452
1385
  _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
1453
1386
 
1454
- api_version: Literal["2022-05-01"] = kwargs.pop("api_version", _params.pop("api-version", "2022-05-01"))
1387
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-05-01"))
1455
1388
  cls: ClsType[_models.StorageAccountListKeysResult] = kwargs.pop("cls", None)
1456
1389
 
1457
- request = build_list_keys_request(
1390
+ _request = build_list_keys_request(
1458
1391
  resource_group_name=resource_group_name,
1459
1392
  account_name=account_name,
1460
1393
  subscription_id=self._config.subscription_id,
1461
1394
  expand=expand,
1462
1395
  api_version=api_version,
1463
- template_url=self.list_keys.metadata["url"],
1464
1396
  headers=_headers,
1465
1397
  params=_params,
1466
1398
  )
1467
- request = _convert_request(request)
1468
- request.url = self._client.format_url(request.url)
1399
+ _request = _convert_request(_request)
1400
+ _request.url = self._client.format_url(_request.url)
1469
1401
 
1402
+ _stream = False
1470
1403
  pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access
1471
- request, stream=False, **kwargs
1404
+ _request, stream=_stream, **kwargs
1472
1405
  )
1473
1406
 
1474
1407
  response = pipeline_response.http_response
@@ -1480,13 +1413,9 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
1480
1413
  deserialized = self._deserialize("StorageAccountListKeysResult", pipeline_response)
1481
1414
 
1482
1415
  if cls:
1483
- return cls(pipeline_response, deserialized, {})
1484
-
1485
- return deserialized
1416
+ return cls(pipeline_response, deserialized, {}) # type: ignore
1486
1417
 
1487
- list_keys.metadata = {
1488
- "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/listKeys"
1489
- }
1418
+ return deserialized # type: ignore
1490
1419
 
1491
1420
  @overload
1492
1421
  def regenerate_key(
@@ -1514,7 +1443,6 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
1514
1443
  :keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
1515
1444
  Default value is "application/json".
1516
1445
  :paramtype content_type: str
1517
- :keyword callable cls: A custom type or function that will be passed the direct response
1518
1446
  :return: StorageAccountListKeysResult or the result of cls(response)
1519
1447
  :rtype: ~azure.mgmt.storage.v2022_05_01.models.StorageAccountListKeysResult
1520
1448
  :raises ~azure.core.exceptions.HttpResponseError:
@@ -1525,7 +1453,7 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
1525
1453
  self,
1526
1454
  resource_group_name: str,
1527
1455
  account_name: str,
1528
- regenerate_key: IO,
1456
+ regenerate_key: IO[bytes],
1529
1457
  *,
1530
1458
  content_type: str = "application/json",
1531
1459
  **kwargs: Any
@@ -1541,11 +1469,10 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
1541
1469
  :type account_name: str
1542
1470
  :param regenerate_key: Specifies name of the key which should be regenerated -- key1, key2,
1543
1471
  kerb1, kerb2. Required.
1544
- :type regenerate_key: IO
1472
+ :type regenerate_key: IO[bytes]
1545
1473
  :keyword content_type: Body Parameter content-type. Content type parameter for binary body.
1546
1474
  Default value is "application/json".
1547
1475
  :paramtype content_type: str
1548
- :keyword callable cls: A custom type or function that will be passed the direct response
1549
1476
  :return: StorageAccountListKeysResult or the result of cls(response)
1550
1477
  :rtype: ~azure.mgmt.storage.v2022_05_01.models.StorageAccountListKeysResult
1551
1478
  :raises ~azure.core.exceptions.HttpResponseError:
@@ -1556,7 +1483,7 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
1556
1483
  self,
1557
1484
  resource_group_name: str,
1558
1485
  account_name: str,
1559
- regenerate_key: Union[_models.StorageAccountRegenerateKeyParameters, IO],
1486
+ regenerate_key: Union[_models.StorageAccountRegenerateKeyParameters, IO[bytes]],
1560
1487
  **kwargs: Any
1561
1488
  ) -> _models.StorageAccountListKeysResult:
1562
1489
  """Regenerates one of the access keys or Kerberos keys for the specified storage account.
@@ -1569,18 +1496,15 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
1569
1496
  lower-case letters only. Required.
1570
1497
  :type account_name: str
1571
1498
  :param regenerate_key: Specifies name of the key which should be regenerated -- key1, key2,
1572
- kerb1, kerb2. Is either a StorageAccountRegenerateKeyParameters type or a IO type. Required.
1499
+ kerb1, kerb2. Is either a StorageAccountRegenerateKeyParameters type or a IO[bytes] type.
1500
+ Required.
1573
1501
  :type regenerate_key:
1574
- ~azure.mgmt.storage.v2022_05_01.models.StorageAccountRegenerateKeyParameters or IO
1575
- :keyword content_type: Body Parameter content-type. Known values are: 'application/json'.
1576
- Default value is None.
1577
- :paramtype content_type: str
1578
- :keyword callable cls: A custom type or function that will be passed the direct response
1502
+ ~azure.mgmt.storage.v2022_05_01.models.StorageAccountRegenerateKeyParameters or IO[bytes]
1579
1503
  :return: StorageAccountListKeysResult or the result of cls(response)
1580
1504
  :rtype: ~azure.mgmt.storage.v2022_05_01.models.StorageAccountListKeysResult
1581
1505
  :raises ~azure.core.exceptions.HttpResponseError:
1582
1506
  """
1583
- error_map = {
1507
+ error_map: MutableMapping[int, Type[HttpResponseError]] = {
1584
1508
  401: ClientAuthenticationError,
1585
1509
  404: ResourceNotFoundError,
1586
1510
  409: ResourceExistsError,
@@ -1591,19 +1515,19 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
1591
1515
  _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
1592
1516
  _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
1593
1517
 
1594
- api_version: Literal["2022-05-01"] = kwargs.pop("api_version", _params.pop("api-version", "2022-05-01"))
1518
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-05-01"))
1595
1519
  content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
1596
1520
  cls: ClsType[_models.StorageAccountListKeysResult] = kwargs.pop("cls", None)
1597
1521
 
1598
1522
  content_type = content_type or "application/json"
1599
1523
  _json = None
1600
1524
  _content = None
1601
- if isinstance(regenerate_key, (IO, bytes)):
1525
+ if isinstance(regenerate_key, (IOBase, bytes)):
1602
1526
  _content = regenerate_key
1603
1527
  else:
1604
1528
  _json = self._serialize.body(regenerate_key, "StorageAccountRegenerateKeyParameters")
1605
1529
 
1606
- request = build_regenerate_key_request(
1530
+ _request = build_regenerate_key_request(
1607
1531
  resource_group_name=resource_group_name,
1608
1532
  account_name=account_name,
1609
1533
  subscription_id=self._config.subscription_id,
@@ -1611,15 +1535,15 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
1611
1535
  content_type=content_type,
1612
1536
  json=_json,
1613
1537
  content=_content,
1614
- template_url=self.regenerate_key.metadata["url"],
1615
1538
  headers=_headers,
1616
1539
  params=_params,
1617
1540
  )
1618
- request = _convert_request(request)
1619
- request.url = self._client.format_url(request.url)
1541
+ _request = _convert_request(_request)
1542
+ _request.url = self._client.format_url(_request.url)
1620
1543
 
1544
+ _stream = False
1621
1545
  pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access
1622
- request, stream=False, **kwargs
1546
+ _request, stream=_stream, **kwargs
1623
1547
  )
1624
1548
 
1625
1549
  response = pipeline_response.http_response
@@ -1631,13 +1555,9 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
1631
1555
  deserialized = self._deserialize("StorageAccountListKeysResult", pipeline_response)
1632
1556
 
1633
1557
  if cls:
1634
- return cls(pipeline_response, deserialized, {})
1635
-
1636
- return deserialized
1558
+ return cls(pipeline_response, deserialized, {}) # type: ignore
1637
1559
 
1638
- regenerate_key.metadata = {
1639
- "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/regenerateKey"
1640
- }
1560
+ return deserialized # type: ignore
1641
1561
 
1642
1562
  @overload
1643
1563
  def list_account_sas(
@@ -1664,7 +1584,6 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
1664
1584
  :keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
1665
1585
  Default value is "application/json".
1666
1586
  :paramtype content_type: str
1667
- :keyword callable cls: A custom type or function that will be passed the direct response
1668
1587
  :return: ListAccountSasResponse or the result of cls(response)
1669
1588
  :rtype: ~azure.mgmt.storage.v2022_05_01.models.ListAccountSasResponse
1670
1589
  :raises ~azure.core.exceptions.HttpResponseError:
@@ -1675,7 +1594,7 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
1675
1594
  self,
1676
1595
  resource_group_name: str,
1677
1596
  account_name: str,
1678
- parameters: IO,
1597
+ parameters: IO[bytes],
1679
1598
  *,
1680
1599
  content_type: str = "application/json",
1681
1600
  **kwargs: Any
@@ -1691,11 +1610,10 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
1691
1610
  :type account_name: str
1692
1611
  :param parameters: The parameters to provide to list SAS credentials for the storage account.
1693
1612
  Required.
1694
- :type parameters: IO
1613
+ :type parameters: IO[bytes]
1695
1614
  :keyword content_type: Body Parameter content-type. Content type parameter for binary body.
1696
1615
  Default value is "application/json".
1697
1616
  :paramtype content_type: str
1698
- :keyword callable cls: A custom type or function that will be passed the direct response
1699
1617
  :return: ListAccountSasResponse or the result of cls(response)
1700
1618
  :rtype: ~azure.mgmt.storage.v2022_05_01.models.ListAccountSasResponse
1701
1619
  :raises ~azure.core.exceptions.HttpResponseError:
@@ -1706,7 +1624,7 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
1706
1624
  self,
1707
1625
  resource_group_name: str,
1708
1626
  account_name: str,
1709
- parameters: Union[_models.AccountSasParameters, IO],
1627
+ parameters: Union[_models.AccountSasParameters, IO[bytes]],
1710
1628
  **kwargs: Any
1711
1629
  ) -> _models.ListAccountSasResponse:
1712
1630
  """List SAS credentials of a storage account.
@@ -1719,17 +1637,13 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
1719
1637
  lower-case letters only. Required.
1720
1638
  :type account_name: str
1721
1639
  :param parameters: The parameters to provide to list SAS credentials for the storage account.
1722
- Is either a AccountSasParameters type or a IO type. Required.
1723
- :type parameters: ~azure.mgmt.storage.v2022_05_01.models.AccountSasParameters or IO
1724
- :keyword content_type: Body Parameter content-type. Known values are: 'application/json'.
1725
- Default value is None.
1726
- :paramtype content_type: str
1727
- :keyword callable cls: A custom type or function that will be passed the direct response
1640
+ Is either a AccountSasParameters type or a IO[bytes] type. Required.
1641
+ :type parameters: ~azure.mgmt.storage.v2022_05_01.models.AccountSasParameters or IO[bytes]
1728
1642
  :return: ListAccountSasResponse or the result of cls(response)
1729
1643
  :rtype: ~azure.mgmt.storage.v2022_05_01.models.ListAccountSasResponse
1730
1644
  :raises ~azure.core.exceptions.HttpResponseError:
1731
1645
  """
1732
- error_map = {
1646
+ error_map: MutableMapping[int, Type[HttpResponseError]] = {
1733
1647
  401: ClientAuthenticationError,
1734
1648
  404: ResourceNotFoundError,
1735
1649
  409: ResourceExistsError,
@@ -1740,19 +1654,19 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
1740
1654
  _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
1741
1655
  _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
1742
1656
 
1743
- api_version: Literal["2022-05-01"] = kwargs.pop("api_version", _params.pop("api-version", "2022-05-01"))
1657
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-05-01"))
1744
1658
  content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
1745
1659
  cls: ClsType[_models.ListAccountSasResponse] = kwargs.pop("cls", None)
1746
1660
 
1747
1661
  content_type = content_type or "application/json"
1748
1662
  _json = None
1749
1663
  _content = None
1750
- if isinstance(parameters, (IO, bytes)):
1664
+ if isinstance(parameters, (IOBase, bytes)):
1751
1665
  _content = parameters
1752
1666
  else:
1753
1667
  _json = self._serialize.body(parameters, "AccountSasParameters")
1754
1668
 
1755
- request = build_list_account_sas_request(
1669
+ _request = build_list_account_sas_request(
1756
1670
  resource_group_name=resource_group_name,
1757
1671
  account_name=account_name,
1758
1672
  subscription_id=self._config.subscription_id,
@@ -1760,15 +1674,15 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
1760
1674
  content_type=content_type,
1761
1675
  json=_json,
1762
1676
  content=_content,
1763
- template_url=self.list_account_sas.metadata["url"],
1764
1677
  headers=_headers,
1765
1678
  params=_params,
1766
1679
  )
1767
- request = _convert_request(request)
1768
- request.url = self._client.format_url(request.url)
1680
+ _request = _convert_request(_request)
1681
+ _request.url = self._client.format_url(_request.url)
1769
1682
 
1683
+ _stream = False
1770
1684
  pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access
1771
- request, stream=False, **kwargs
1685
+ _request, stream=_stream, **kwargs
1772
1686
  )
1773
1687
 
1774
1688
  response = pipeline_response.http_response
@@ -1780,13 +1694,9 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
1780
1694
  deserialized = self._deserialize("ListAccountSasResponse", pipeline_response)
1781
1695
 
1782
1696
  if cls:
1783
- return cls(pipeline_response, deserialized, {})
1784
-
1785
- return deserialized
1697
+ return cls(pipeline_response, deserialized, {}) # type: ignore
1786
1698
 
1787
- list_account_sas.metadata = {
1788
- "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/ListAccountSas"
1789
- }
1699
+ return deserialized # type: ignore
1790
1700
 
1791
1701
  @overload
1792
1702
  def list_service_sas(
@@ -1812,7 +1722,6 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
1812
1722
  :keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
1813
1723
  Default value is "application/json".
1814
1724
  :paramtype content_type: str
1815
- :keyword callable cls: A custom type or function that will be passed the direct response
1816
1725
  :return: ListServiceSasResponse or the result of cls(response)
1817
1726
  :rtype: ~azure.mgmt.storage.v2022_05_01.models.ListServiceSasResponse
1818
1727
  :raises ~azure.core.exceptions.HttpResponseError:
@@ -1823,7 +1732,7 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
1823
1732
  self,
1824
1733
  resource_group_name: str,
1825
1734
  account_name: str,
1826
- parameters: IO,
1735
+ parameters: IO[bytes],
1827
1736
  *,
1828
1737
  content_type: str = "application/json",
1829
1738
  **kwargs: Any
@@ -1838,11 +1747,10 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
1838
1747
  lower-case letters only. Required.
1839
1748
  :type account_name: str
1840
1749
  :param parameters: The parameters to provide to list service SAS credentials. Required.
1841
- :type parameters: IO
1750
+ :type parameters: IO[bytes]
1842
1751
  :keyword content_type: Body Parameter content-type. Content type parameter for binary body.
1843
1752
  Default value is "application/json".
1844
1753
  :paramtype content_type: str
1845
- :keyword callable cls: A custom type or function that will be passed the direct response
1846
1754
  :return: ListServiceSasResponse or the result of cls(response)
1847
1755
  :rtype: ~azure.mgmt.storage.v2022_05_01.models.ListServiceSasResponse
1848
1756
  :raises ~azure.core.exceptions.HttpResponseError:
@@ -1853,7 +1761,7 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
1853
1761
  self,
1854
1762
  resource_group_name: str,
1855
1763
  account_name: str,
1856
- parameters: Union[_models.ServiceSasParameters, IO],
1764
+ parameters: Union[_models.ServiceSasParameters, IO[bytes]],
1857
1765
  **kwargs: Any
1858
1766
  ) -> _models.ListServiceSasResponse:
1859
1767
  """List service SAS credentials of a specific resource.
@@ -1866,17 +1774,13 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
1866
1774
  lower-case letters only. Required.
1867
1775
  :type account_name: str
1868
1776
  :param parameters: The parameters to provide to list service SAS credentials. Is either a
1869
- ServiceSasParameters type or a IO type. Required.
1870
- :type parameters: ~azure.mgmt.storage.v2022_05_01.models.ServiceSasParameters or IO
1871
- :keyword content_type: Body Parameter content-type. Known values are: 'application/json'.
1872
- Default value is None.
1873
- :paramtype content_type: str
1874
- :keyword callable cls: A custom type or function that will be passed the direct response
1777
+ ServiceSasParameters type or a IO[bytes] type. Required.
1778
+ :type parameters: ~azure.mgmt.storage.v2022_05_01.models.ServiceSasParameters or IO[bytes]
1875
1779
  :return: ListServiceSasResponse or the result of cls(response)
1876
1780
  :rtype: ~azure.mgmt.storage.v2022_05_01.models.ListServiceSasResponse
1877
1781
  :raises ~azure.core.exceptions.HttpResponseError:
1878
1782
  """
1879
- error_map = {
1783
+ error_map: MutableMapping[int, Type[HttpResponseError]] = {
1880
1784
  401: ClientAuthenticationError,
1881
1785
  404: ResourceNotFoundError,
1882
1786
  409: ResourceExistsError,
@@ -1887,19 +1791,19 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
1887
1791
  _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
1888
1792
  _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
1889
1793
 
1890
- api_version: Literal["2022-05-01"] = kwargs.pop("api_version", _params.pop("api-version", "2022-05-01"))
1794
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-05-01"))
1891
1795
  content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
1892
1796
  cls: ClsType[_models.ListServiceSasResponse] = kwargs.pop("cls", None)
1893
1797
 
1894
1798
  content_type = content_type or "application/json"
1895
1799
  _json = None
1896
1800
  _content = None
1897
- if isinstance(parameters, (IO, bytes)):
1801
+ if isinstance(parameters, (IOBase, bytes)):
1898
1802
  _content = parameters
1899
1803
  else:
1900
1804
  _json = self._serialize.body(parameters, "ServiceSasParameters")
1901
1805
 
1902
- request = build_list_service_sas_request(
1806
+ _request = build_list_service_sas_request(
1903
1807
  resource_group_name=resource_group_name,
1904
1808
  account_name=account_name,
1905
1809
  subscription_id=self._config.subscription_id,
@@ -1907,15 +1811,15 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
1907
1811
  content_type=content_type,
1908
1812
  json=_json,
1909
1813
  content=_content,
1910
- template_url=self.list_service_sas.metadata["url"],
1911
1814
  headers=_headers,
1912
1815
  params=_params,
1913
1816
  )
1914
- request = _convert_request(request)
1915
- request.url = self._client.format_url(request.url)
1817
+ _request = _convert_request(_request)
1818
+ _request.url = self._client.format_url(_request.url)
1916
1819
 
1820
+ _stream = False
1917
1821
  pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access
1918
- request, stream=False, **kwargs
1822
+ _request, stream=_stream, **kwargs
1919
1823
  )
1920
1824
 
1921
1825
  response = pipeline_response.http_response
@@ -1927,18 +1831,14 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
1927
1831
  deserialized = self._deserialize("ListServiceSasResponse", pipeline_response)
1928
1832
 
1929
1833
  if cls:
1930
- return cls(pipeline_response, deserialized, {})
1931
-
1932
- return deserialized
1834
+ return cls(pipeline_response, deserialized, {}) # type: ignore
1933
1835
 
1934
- list_service_sas.metadata = {
1935
- "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/ListServiceSas"
1936
- }
1836
+ return deserialized # type: ignore
1937
1837
 
1938
1838
  def _failover_initial( # pylint: disable=inconsistent-return-statements
1939
1839
  self, resource_group_name: str, account_name: str, **kwargs: Any
1940
1840
  ) -> None:
1941
- error_map = {
1841
+ error_map: MutableMapping[int, Type[HttpResponseError]] = {
1942
1842
  401: ClientAuthenticationError,
1943
1843
  404: ResourceNotFoundError,
1944
1844
  409: ResourceExistsError,
@@ -1949,23 +1849,23 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
1949
1849
  _headers = kwargs.pop("headers", {}) or {}
1950
1850
  _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
1951
1851
 
1952
- api_version: Literal["2022-05-01"] = kwargs.pop("api_version", _params.pop("api-version", "2022-05-01"))
1852
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-05-01"))
1953
1853
  cls: ClsType[None] = kwargs.pop("cls", None)
1954
1854
 
1955
- request = build_failover_request(
1855
+ _request = build_failover_request(
1956
1856
  resource_group_name=resource_group_name,
1957
1857
  account_name=account_name,
1958
1858
  subscription_id=self._config.subscription_id,
1959
1859
  api_version=api_version,
1960
- template_url=self._failover_initial.metadata["url"],
1961
1860
  headers=_headers,
1962
1861
  params=_params,
1963
1862
  )
1964
- request = _convert_request(request)
1965
- request.url = self._client.format_url(request.url)
1863
+ _request = _convert_request(_request)
1864
+ _request.url = self._client.format_url(_request.url)
1966
1865
 
1866
+ _stream = False
1967
1867
  pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access
1968
- request, stream=False, **kwargs
1868
+ _request, stream=_stream, **kwargs
1969
1869
  )
1970
1870
 
1971
1871
  response = pipeline_response.http_response
@@ -1975,11 +1875,7 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
1975
1875
  raise HttpResponseError(response=response, error_format=ARMErrorFormat)
1976
1876
 
1977
1877
  if cls:
1978
- return cls(pipeline_response, None, {})
1979
-
1980
- _failover_initial.metadata = {
1981
- "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/failover"
1982
- }
1878
+ return cls(pipeline_response, None, {}) # type: ignore
1983
1879
 
1984
1880
  @distributed_trace
1985
1881
  def begin_failover(self, resource_group_name: str, account_name: str, **kwargs: Any) -> LROPoller[None]:
@@ -1994,14 +1890,6 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
1994
1890
  Storage account names must be between 3 and 24 characters in length and use numbers and
1995
1891
  lower-case letters only. Required.
1996
1892
  :type account_name: str
1997
- :keyword callable cls: A custom type or function that will be passed the direct response
1998
- :keyword str continuation_token: A continuation token to restart a poller from a saved state.
1999
- :keyword polling: By default, your polling method will be ARMPolling. Pass in False for this
2000
- operation to not poll, or pass in your own initialized polling object for a personal polling
2001
- strategy.
2002
- :paramtype polling: bool or ~azure.core.polling.PollingMethod
2003
- :keyword int polling_interval: Default waiting time between two polls for LRO operations if no
2004
- Retry-After header is present.
2005
1893
  :return: An instance of LROPoller that returns either None or the result of cls(response)
2006
1894
  :rtype: ~azure.core.polling.LROPoller[None]
2007
1895
  :raises ~azure.core.exceptions.HttpResponseError:
@@ -2009,7 +1897,7 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
2009
1897
  _headers = kwargs.pop("headers", {}) or {}
2010
1898
  _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
2011
1899
 
2012
- api_version: Literal["2022-05-01"] = kwargs.pop("api_version", _params.pop("api-version", "2022-05-01"))
1900
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-05-01"))
2013
1901
  cls: ClsType[None] = kwargs.pop("cls", None)
2014
1902
  polling: Union[bool, PollingMethod] = kwargs.pop("polling", True)
2015
1903
  lro_delay = kwargs.pop("polling_interval", self._config.polling_interval)
@@ -2028,7 +1916,7 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
2028
1916
 
2029
1917
  def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements
2030
1918
  if cls:
2031
- return cls(pipeline_response, None, {})
1919
+ return cls(pipeline_response, None, {}) # type: ignore
2032
1920
 
2033
1921
  if polling is True:
2034
1922
  polling_method: PollingMethod = cast(
@@ -2039,22 +1927,18 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
2039
1927
  else:
2040
1928
  polling_method = polling
2041
1929
  if cont_token:
2042
- return LROPoller.from_continuation_token(
1930
+ return LROPoller[None].from_continuation_token(
2043
1931
  polling_method=polling_method,
2044
1932
  continuation_token=cont_token,
2045
1933
  client=self._client,
2046
1934
  deserialization_callback=get_long_running_output,
2047
1935
  )
2048
- return LROPoller(self._client, raw_result, get_long_running_output, polling_method) # type: ignore
2049
-
2050
- begin_failover.metadata = {
2051
- "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/failover"
2052
- }
1936
+ return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore
2053
1937
 
2054
- def _hierarchical_namespace_migration_initial( # pylint: disable=inconsistent-return-statements
1938
+ def _hierarchical_namespace_migration_initial( # pylint: disable=inconsistent-return-statements,name-too-long
2055
1939
  self, resource_group_name: str, account_name: str, request_type: str, **kwargs: Any
2056
1940
  ) -> None:
2057
- error_map = {
1941
+ error_map: MutableMapping[int, Type[HttpResponseError]] = {
2058
1942
  401: ClientAuthenticationError,
2059
1943
  404: ResourceNotFoundError,
2060
1944
  409: ResourceExistsError,
@@ -2065,24 +1949,24 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
2065
1949
  _headers = kwargs.pop("headers", {}) or {}
2066
1950
  _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
2067
1951
 
2068
- api_version: Literal["2022-05-01"] = kwargs.pop("api_version", _params.pop("api-version", "2022-05-01"))
1952
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-05-01"))
2069
1953
  cls: ClsType[None] = kwargs.pop("cls", None)
2070
1954
 
2071
- request = build_hierarchical_namespace_migration_request(
1955
+ _request = build_hierarchical_namespace_migration_request(
2072
1956
  resource_group_name=resource_group_name,
2073
1957
  account_name=account_name,
2074
1958
  subscription_id=self._config.subscription_id,
2075
1959
  request_type=request_type,
2076
1960
  api_version=api_version,
2077
- template_url=self._hierarchical_namespace_migration_initial.metadata["url"],
2078
1961
  headers=_headers,
2079
1962
  params=_params,
2080
1963
  )
2081
- request = _convert_request(request)
2082
- request.url = self._client.format_url(request.url)
1964
+ _request = _convert_request(_request)
1965
+ _request.url = self._client.format_url(_request.url)
2083
1966
 
1967
+ _stream = False
2084
1968
  pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access
2085
- request, stream=False, **kwargs
1969
+ _request, stream=_stream, **kwargs
2086
1970
  )
2087
1971
 
2088
1972
  response = pipeline_response.http_response
@@ -2093,11 +1977,7 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
2093
1977
  raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
2094
1978
 
2095
1979
  if cls:
2096
- return cls(pipeline_response, None, {})
2097
-
2098
- _hierarchical_namespace_migration_initial.metadata = {
2099
- "url": "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/hnsonmigration"
2100
- }
1980
+ return cls(pipeline_response, None, {}) # type: ignore
2101
1981
 
2102
1982
  @distributed_trace
2103
1983
  def begin_hierarchical_namespace_migration(
@@ -2117,14 +1997,6 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
2117
1997
  'HnsOnHydrationRequest'. The validation request will validate the migration whereas the
2118
1998
  hydration request will migrate the account. Required.
2119
1999
  :type request_type: str
2120
- :keyword callable cls: A custom type or function that will be passed the direct response
2121
- :keyword str continuation_token: A continuation token to restart a poller from a saved state.
2122
- :keyword polling: By default, your polling method will be ARMPolling. Pass in False for this
2123
- operation to not poll, or pass in your own initialized polling object for a personal polling
2124
- strategy.
2125
- :paramtype polling: bool or ~azure.core.polling.PollingMethod
2126
- :keyword int polling_interval: Default waiting time between two polls for LRO operations if no
2127
- Retry-After header is present.
2128
2000
  :return: An instance of LROPoller that returns either None or the result of cls(response)
2129
2001
  :rtype: ~azure.core.polling.LROPoller[None]
2130
2002
  :raises ~azure.core.exceptions.HttpResponseError:
@@ -2132,7 +2004,7 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
2132
2004
  _headers = kwargs.pop("headers", {}) or {}
2133
2005
  _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
2134
2006
 
2135
- api_version: Literal["2022-05-01"] = kwargs.pop("api_version", _params.pop("api-version", "2022-05-01"))
2007
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-05-01"))
2136
2008
  cls: ClsType[None] = kwargs.pop("cls", None)
2137
2009
  polling: Union[bool, PollingMethod] = kwargs.pop("polling", True)
2138
2010
  lro_delay = kwargs.pop("polling_interval", self._config.polling_interval)
@@ -2152,7 +2024,7 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
2152
2024
 
2153
2025
  def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements
2154
2026
  if cls:
2155
- return cls(pipeline_response, None, {})
2027
+ return cls(pipeline_response, None, {}) # type: ignore
2156
2028
 
2157
2029
  if polling is True:
2158
2030
  polling_method: PollingMethod = cast(
@@ -2163,22 +2035,18 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
2163
2035
  else:
2164
2036
  polling_method = polling
2165
2037
  if cont_token:
2166
- return LROPoller.from_continuation_token(
2038
+ return LROPoller[None].from_continuation_token(
2167
2039
  polling_method=polling_method,
2168
2040
  continuation_token=cont_token,
2169
2041
  client=self._client,
2170
2042
  deserialization_callback=get_long_running_output,
2171
2043
  )
2172
- return LROPoller(self._client, raw_result, get_long_running_output, polling_method) # type: ignore
2173
-
2174
- begin_hierarchical_namespace_migration.metadata = {
2175
- "url": "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/hnsonmigration"
2176
- }
2044
+ return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore
2177
2045
 
2178
- def _abort_hierarchical_namespace_migration_initial( # pylint: disable=inconsistent-return-statements
2046
+ def _abort_hierarchical_namespace_migration_initial( # pylint: disable=inconsistent-return-statements,name-too-long
2179
2047
  self, resource_group_name: str, account_name: str, **kwargs: Any
2180
2048
  ) -> None:
2181
- error_map = {
2049
+ error_map: MutableMapping[int, Type[HttpResponseError]] = {
2182
2050
  401: ClientAuthenticationError,
2183
2051
  404: ResourceNotFoundError,
2184
2052
  409: ResourceExistsError,
@@ -2189,23 +2057,23 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
2189
2057
  _headers = kwargs.pop("headers", {}) or {}
2190
2058
  _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
2191
2059
 
2192
- api_version: Literal["2022-05-01"] = kwargs.pop("api_version", _params.pop("api-version", "2022-05-01"))
2060
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-05-01"))
2193
2061
  cls: ClsType[None] = kwargs.pop("cls", None)
2194
2062
 
2195
- request = build_abort_hierarchical_namespace_migration_request(
2063
+ _request = build_abort_hierarchical_namespace_migration_request(
2196
2064
  resource_group_name=resource_group_name,
2197
2065
  account_name=account_name,
2198
2066
  subscription_id=self._config.subscription_id,
2199
2067
  api_version=api_version,
2200
- template_url=self._abort_hierarchical_namespace_migration_initial.metadata["url"],
2201
2068
  headers=_headers,
2202
2069
  params=_params,
2203
2070
  )
2204
- request = _convert_request(request)
2205
- request.url = self._client.format_url(request.url)
2071
+ _request = _convert_request(_request)
2072
+ _request.url = self._client.format_url(_request.url)
2206
2073
 
2074
+ _stream = False
2207
2075
  pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access
2208
- request, stream=False, **kwargs
2076
+ _request, stream=_stream, **kwargs
2209
2077
  )
2210
2078
 
2211
2079
  response = pipeline_response.http_response
@@ -2216,14 +2084,10 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
2216
2084
  raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
2217
2085
 
2218
2086
  if cls:
2219
- return cls(pipeline_response, None, {})
2220
-
2221
- _abort_hierarchical_namespace_migration_initial.metadata = {
2222
- "url": "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/aborthnsonmigration"
2223
- }
2087
+ return cls(pipeline_response, None, {}) # type: ignore
2224
2088
 
2225
2089
  @distributed_trace
2226
- def begin_abort_hierarchical_namespace_migration(
2090
+ def begin_abort_hierarchical_namespace_migration( # pylint: disable=name-too-long
2227
2091
  self, resource_group_name: str, account_name: str, **kwargs: Any
2228
2092
  ) -> LROPoller[None]:
2229
2093
  """Abort live Migration of storage account to enable Hns.
@@ -2235,14 +2099,6 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
2235
2099
  Storage account names must be between 3 and 24 characters in length and use numbers and
2236
2100
  lower-case letters only. Required.
2237
2101
  :type account_name: str
2238
- :keyword callable cls: A custom type or function that will be passed the direct response
2239
- :keyword str continuation_token: A continuation token to restart a poller from a saved state.
2240
- :keyword polling: By default, your polling method will be ARMPolling. Pass in False for this
2241
- operation to not poll, or pass in your own initialized polling object for a personal polling
2242
- strategy.
2243
- :paramtype polling: bool or ~azure.core.polling.PollingMethod
2244
- :keyword int polling_interval: Default waiting time between two polls for LRO operations if no
2245
- Retry-After header is present.
2246
2102
  :return: An instance of LROPoller that returns either None or the result of cls(response)
2247
2103
  :rtype: ~azure.core.polling.LROPoller[None]
2248
2104
  :raises ~azure.core.exceptions.HttpResponseError:
@@ -2250,7 +2106,7 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
2250
2106
  _headers = kwargs.pop("headers", {}) or {}
2251
2107
  _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
2252
2108
 
2253
- api_version: Literal["2022-05-01"] = kwargs.pop("api_version", _params.pop("api-version", "2022-05-01"))
2109
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-05-01"))
2254
2110
  cls: ClsType[None] = kwargs.pop("cls", None)
2255
2111
  polling: Union[bool, PollingMethod] = kwargs.pop("polling", True)
2256
2112
  lro_delay = kwargs.pop("polling_interval", self._config.polling_interval)
@@ -2269,7 +2125,7 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
2269
2125
 
2270
2126
  def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements
2271
2127
  if cls:
2272
- return cls(pipeline_response, None, {})
2128
+ return cls(pipeline_response, None, {}) # type: ignore
2273
2129
 
2274
2130
  if polling is True:
2275
2131
  polling_method: PollingMethod = cast(
@@ -2280,26 +2136,22 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
2280
2136
  else:
2281
2137
  polling_method = polling
2282
2138
  if cont_token:
2283
- return LROPoller.from_continuation_token(
2139
+ return LROPoller[None].from_continuation_token(
2284
2140
  polling_method=polling_method,
2285
2141
  continuation_token=cont_token,
2286
2142
  client=self._client,
2287
2143
  deserialization_callback=get_long_running_output,
2288
2144
  )
2289
- return LROPoller(self._client, raw_result, get_long_running_output, polling_method) # type: ignore
2290
-
2291
- begin_abort_hierarchical_namespace_migration.metadata = {
2292
- "url": "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/aborthnsonmigration"
2293
- }
2145
+ return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore
2294
2146
 
2295
2147
  def _restore_blob_ranges_initial(
2296
2148
  self,
2297
2149
  resource_group_name: str,
2298
2150
  account_name: str,
2299
- parameters: Union[_models.BlobRestoreParameters, IO],
2151
+ parameters: Union[_models.BlobRestoreParameters, IO[bytes]],
2300
2152
  **kwargs: Any
2301
2153
  ) -> _models.BlobRestoreStatus:
2302
- error_map = {
2154
+ error_map: MutableMapping[int, Type[HttpResponseError]] = {
2303
2155
  401: ClientAuthenticationError,
2304
2156
  404: ResourceNotFoundError,
2305
2157
  409: ResourceExistsError,
@@ -2310,19 +2162,19 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
2310
2162
  _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
2311
2163
  _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
2312
2164
 
2313
- api_version: Literal["2022-05-01"] = kwargs.pop("api_version", _params.pop("api-version", "2022-05-01"))
2165
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-05-01"))
2314
2166
  content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
2315
2167
  cls: ClsType[_models.BlobRestoreStatus] = kwargs.pop("cls", None)
2316
2168
 
2317
2169
  content_type = content_type or "application/json"
2318
2170
  _json = None
2319
2171
  _content = None
2320
- if isinstance(parameters, (IO, bytes)):
2172
+ if isinstance(parameters, (IOBase, bytes)):
2321
2173
  _content = parameters
2322
2174
  else:
2323
2175
  _json = self._serialize.body(parameters, "BlobRestoreParameters")
2324
2176
 
2325
- request = build_restore_blob_ranges_request(
2177
+ _request = build_restore_blob_ranges_request(
2326
2178
  resource_group_name=resource_group_name,
2327
2179
  account_name=account_name,
2328
2180
  subscription_id=self._config.subscription_id,
@@ -2330,15 +2182,15 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
2330
2182
  content_type=content_type,
2331
2183
  json=_json,
2332
2184
  content=_content,
2333
- template_url=self._restore_blob_ranges_initial.metadata["url"],
2334
2185
  headers=_headers,
2335
2186
  params=_params,
2336
2187
  )
2337
- request = _convert_request(request)
2338
- request.url = self._client.format_url(request.url)
2188
+ _request = _convert_request(_request)
2189
+ _request.url = self._client.format_url(_request.url)
2339
2190
 
2191
+ _stream = False
2340
2192
  pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access
2341
- request, stream=False, **kwargs
2193
+ _request, stream=_stream, **kwargs
2342
2194
  )
2343
2195
 
2344
2196
  response = pipeline_response.http_response
@@ -2358,10 +2210,6 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
2358
2210
 
2359
2211
  return deserialized # type: ignore
2360
2212
 
2361
- _restore_blob_ranges_initial.metadata = {
2362
- "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/restoreBlobRanges"
2363
- }
2364
-
2365
2213
  @overload
2366
2214
  def begin_restore_blob_ranges(
2367
2215
  self,
@@ -2386,14 +2234,6 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
2386
2234
  :keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
2387
2235
  Default value is "application/json".
2388
2236
  :paramtype content_type: str
2389
- :keyword callable cls: A custom type or function that will be passed the direct response
2390
- :keyword str continuation_token: A continuation token to restart a poller from a saved state.
2391
- :keyword polling: By default, your polling method will be ARMPolling. Pass in False for this
2392
- operation to not poll, or pass in your own initialized polling object for a personal polling
2393
- strategy.
2394
- :paramtype polling: bool or ~azure.core.polling.PollingMethod
2395
- :keyword int polling_interval: Default waiting time between two polls for LRO operations if no
2396
- Retry-After header is present.
2397
2237
  :return: An instance of LROPoller that returns either BlobRestoreStatus or the result of
2398
2238
  cls(response)
2399
2239
  :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.storage.v2022_05_01.models.BlobRestoreStatus]
@@ -2405,7 +2245,7 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
2405
2245
  self,
2406
2246
  resource_group_name: str,
2407
2247
  account_name: str,
2408
- parameters: IO,
2248
+ parameters: IO[bytes],
2409
2249
  *,
2410
2250
  content_type: str = "application/json",
2411
2251
  **kwargs: Any
@@ -2420,18 +2260,10 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
2420
2260
  lower-case letters only. Required.
2421
2261
  :type account_name: str
2422
2262
  :param parameters: The parameters to provide for restore blob ranges. Required.
2423
- :type parameters: IO
2263
+ :type parameters: IO[bytes]
2424
2264
  :keyword content_type: Body Parameter content-type. Content type parameter for binary body.
2425
2265
  Default value is "application/json".
2426
2266
  :paramtype content_type: str
2427
- :keyword callable cls: A custom type or function that will be passed the direct response
2428
- :keyword str continuation_token: A continuation token to restart a poller from a saved state.
2429
- :keyword polling: By default, your polling method will be ARMPolling. Pass in False for this
2430
- operation to not poll, or pass in your own initialized polling object for a personal polling
2431
- strategy.
2432
- :paramtype polling: bool or ~azure.core.polling.PollingMethod
2433
- :keyword int polling_interval: Default waiting time between two polls for LRO operations if no
2434
- Retry-After header is present.
2435
2267
  :return: An instance of LROPoller that returns either BlobRestoreStatus or the result of
2436
2268
  cls(response)
2437
2269
  :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.storage.v2022_05_01.models.BlobRestoreStatus]
@@ -2443,7 +2275,7 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
2443
2275
  self,
2444
2276
  resource_group_name: str,
2445
2277
  account_name: str,
2446
- parameters: Union[_models.BlobRestoreParameters, IO],
2278
+ parameters: Union[_models.BlobRestoreParameters, IO[bytes]],
2447
2279
  **kwargs: Any
2448
2280
  ) -> LROPoller[_models.BlobRestoreStatus]:
2449
2281
  """Restore blobs in the specified blob ranges.
@@ -2456,19 +2288,8 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
2456
2288
  lower-case letters only. Required.
2457
2289
  :type account_name: str
2458
2290
  :param parameters: The parameters to provide for restore blob ranges. Is either a
2459
- BlobRestoreParameters type or a IO type. Required.
2460
- :type parameters: ~azure.mgmt.storage.v2022_05_01.models.BlobRestoreParameters or IO
2461
- :keyword content_type: Body Parameter content-type. Known values are: 'application/json'.
2462
- Default value is None.
2463
- :paramtype content_type: str
2464
- :keyword callable cls: A custom type or function that will be passed the direct response
2465
- :keyword str continuation_token: A continuation token to restart a poller from a saved state.
2466
- :keyword polling: By default, your polling method will be ARMPolling. Pass in False for this
2467
- operation to not poll, or pass in your own initialized polling object for a personal polling
2468
- strategy.
2469
- :paramtype polling: bool or ~azure.core.polling.PollingMethod
2470
- :keyword int polling_interval: Default waiting time between two polls for LRO operations if no
2471
- Retry-After header is present.
2291
+ BlobRestoreParameters type or a IO[bytes] type. Required.
2292
+ :type parameters: ~azure.mgmt.storage.v2022_05_01.models.BlobRestoreParameters or IO[bytes]
2472
2293
  :return: An instance of LROPoller that returns either BlobRestoreStatus or the result of
2473
2294
  cls(response)
2474
2295
  :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.storage.v2022_05_01.models.BlobRestoreStatus]
@@ -2477,7 +2298,7 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
2477
2298
  _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
2478
2299
  _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
2479
2300
 
2480
- api_version: Literal["2022-05-01"] = kwargs.pop("api_version", _params.pop("api-version", "2022-05-01"))
2301
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-05-01"))
2481
2302
  content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
2482
2303
  cls: ClsType[_models.BlobRestoreStatus] = kwargs.pop("cls", None)
2483
2304
  polling: Union[bool, PollingMethod] = kwargs.pop("polling", True)
@@ -2500,7 +2321,7 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
2500
2321
  def get_long_running_output(pipeline_response):
2501
2322
  deserialized = self._deserialize("BlobRestoreStatus", pipeline_response)
2502
2323
  if cls:
2503
- return cls(pipeline_response, deserialized, {})
2324
+ return cls(pipeline_response, deserialized, {}) # type: ignore
2504
2325
  return deserialized
2505
2326
 
2506
2327
  if polling is True:
@@ -2512,17 +2333,15 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
2512
2333
  else:
2513
2334
  polling_method = polling
2514
2335
  if cont_token:
2515
- return LROPoller.from_continuation_token(
2336
+ return LROPoller[_models.BlobRestoreStatus].from_continuation_token(
2516
2337
  polling_method=polling_method,
2517
2338
  continuation_token=cont_token,
2518
2339
  client=self._client,
2519
2340
  deserialization_callback=get_long_running_output,
2520
2341
  )
2521
- return LROPoller(self._client, raw_result, get_long_running_output, polling_method) # type: ignore
2522
-
2523
- begin_restore_blob_ranges.metadata = {
2524
- "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/restoreBlobRanges"
2525
- }
2342
+ return LROPoller[_models.BlobRestoreStatus](
2343
+ self._client, raw_result, get_long_running_output, polling_method # type: ignore
2344
+ )
2526
2345
 
2527
2346
  @distributed_trace
2528
2347
  def revoke_user_delegation_keys( # pylint: disable=inconsistent-return-statements
@@ -2537,12 +2356,11 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
2537
2356
  Storage account names must be between 3 and 24 characters in length and use numbers and
2538
2357
  lower-case letters only. Required.
2539
2358
  :type account_name: str
2540
- :keyword callable cls: A custom type or function that will be passed the direct response
2541
2359
  :return: None or the result of cls(response)
2542
2360
  :rtype: None
2543
2361
  :raises ~azure.core.exceptions.HttpResponseError:
2544
2362
  """
2545
- error_map = {
2363
+ error_map: MutableMapping[int, Type[HttpResponseError]] = {
2546
2364
  401: ClientAuthenticationError,
2547
2365
  404: ResourceNotFoundError,
2548
2366
  409: ResourceExistsError,
@@ -2553,23 +2371,23 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
2553
2371
  _headers = kwargs.pop("headers", {}) or {}
2554
2372
  _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
2555
2373
 
2556
- api_version: Literal["2022-05-01"] = kwargs.pop("api_version", _params.pop("api-version", "2022-05-01"))
2374
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-05-01"))
2557
2375
  cls: ClsType[None] = kwargs.pop("cls", None)
2558
2376
 
2559
- request = build_revoke_user_delegation_keys_request(
2377
+ _request = build_revoke_user_delegation_keys_request(
2560
2378
  resource_group_name=resource_group_name,
2561
2379
  account_name=account_name,
2562
2380
  subscription_id=self._config.subscription_id,
2563
2381
  api_version=api_version,
2564
- template_url=self.revoke_user_delegation_keys.metadata["url"],
2565
2382
  headers=_headers,
2566
2383
  params=_params,
2567
2384
  )
2568
- request = _convert_request(request)
2569
- request.url = self._client.format_url(request.url)
2385
+ _request = _convert_request(_request)
2386
+ _request.url = self._client.format_url(_request.url)
2570
2387
 
2388
+ _stream = False
2571
2389
  pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access
2572
- request, stream=False, **kwargs
2390
+ _request, stream=_stream, **kwargs
2573
2391
  )
2574
2392
 
2575
2393
  response = pipeline_response.http_response
@@ -2579,8 +2397,4 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
2579
2397
  raise HttpResponseError(response=response, error_format=ARMErrorFormat)
2580
2398
 
2581
2399
  if cls:
2582
- return cls(pipeline_response, None, {})
2583
-
2584
- revoke_user_delegation_keys.metadata = {
2585
- "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/revokeUserDelegationKeys"
2586
- }
2400
+ return cls(pipeline_response, None, {}) # type: ignore