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

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