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

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