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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (813) hide show
  1. azure/mgmt/storage/_configuration.py +2 -3
  2. azure/mgmt/storage/_serialization.py +66 -60
  3. azure/mgmt/storage/_storage_management_client.py +232 -26
  4. azure/mgmt/storage/_version.py +1 -1
  5. azure/mgmt/storage/aio/_configuration.py +2 -3
  6. azure/mgmt/storage/aio/_storage_management_client.py +232 -26
  7. azure/mgmt/storage/models.py +1 -1
  8. azure/mgmt/storage/v2015_06_15/_configuration.py +4 -11
  9. azure/mgmt/storage/v2015_06_15/_patch.py +1 -0
  10. azure/mgmt/storage/v2015_06_15/_storage_management.py +25 -5
  11. azure/mgmt/storage/v2015_06_15/_vendor.py +0 -14
  12. azure/mgmt/storage/v2015_06_15/_version.py +1 -1
  13. azure/mgmt/storage/v2015_06_15/aio/_configuration.py +4 -11
  14. azure/mgmt/storage/v2015_06_15/aio/_patch.py +1 -0
  15. azure/mgmt/storage/v2015_06_15/aio/_storage_management.py +27 -5
  16. azure/mgmt/storage/v2015_06_15/aio/operations/_storage_accounts_operations.py +132 -213
  17. azure/mgmt/storage/v2015_06_15/aio/operations/_usage_operations.py +20 -22
  18. azure/mgmt/storage/v2015_06_15/models/_models_py3.py +6 -6
  19. azure/mgmt/storage/v2015_06_15/operations/_storage_accounts_operations.py +151 -232
  20. azure/mgmt/storage/v2015_06_15/operations/_usage_operations.py +23 -25
  21. azure/mgmt/storage/v2016_01_01/_configuration.py +4 -11
  22. azure/mgmt/storage/v2016_01_01/_patch.py +1 -0
  23. azure/mgmt/storage/v2016_01_01/_storage_management_client.py +25 -5
  24. azure/mgmt/storage/v2016_01_01/_vendor.py +0 -14
  25. azure/mgmt/storage/v2016_01_01/_version.py +1 -1
  26. azure/mgmt/storage/v2016_01_01/aio/_configuration.py +4 -11
  27. azure/mgmt/storage/v2016_01_01/aio/_patch.py +1 -0
  28. azure/mgmt/storage/v2016_01_01/aio/_storage_management_client.py +27 -5
  29. azure/mgmt/storage/v2016_01_01/aio/operations/_storage_accounts_operations.py +132 -213
  30. azure/mgmt/storage/v2016_01_01/aio/operations/_usage_operations.py +20 -22
  31. azure/mgmt/storage/v2016_01_01/models/_models_py3.py +7 -7
  32. azure/mgmt/storage/v2016_01_01/operations/_storage_accounts_operations.py +151 -232
  33. azure/mgmt/storage/v2016_01_01/operations/_usage_operations.py +23 -25
  34. azure/mgmt/storage/v2016_12_01/_configuration.py +4 -11
  35. azure/mgmt/storage/v2016_12_01/_patch.py +1 -0
  36. azure/mgmt/storage/v2016_12_01/_storage_management.py +25 -5
  37. azure/mgmt/storage/v2016_12_01/_vendor.py +0 -14
  38. azure/mgmt/storage/v2016_12_01/_version.py +1 -1
  39. azure/mgmt/storage/v2016_12_01/aio/_configuration.py +4 -11
  40. azure/mgmt/storage/v2016_12_01/aio/_patch.py +1 -0
  41. azure/mgmt/storage/v2016_12_01/aio/_storage_management.py +27 -5
  42. azure/mgmt/storage/v2016_12_01/aio/operations/_storage_accounts_operations.py +162 -263
  43. azure/mgmt/storage/v2016_12_01/aio/operations/_usage_operations.py +20 -22
  44. azure/mgmt/storage/v2016_12_01/models/_models_py3.py +9 -9
  45. azure/mgmt/storage/v2016_12_01/operations/_storage_accounts_operations.py +185 -286
  46. azure/mgmt/storage/v2016_12_01/operations/_usage_operations.py +23 -25
  47. azure/mgmt/storage/v2017_06_01/_configuration.py +4 -11
  48. azure/mgmt/storage/v2017_06_01/_patch.py +1 -0
  49. azure/mgmt/storage/v2017_06_01/_storage_management.py +27 -7
  50. azure/mgmt/storage/v2017_06_01/_vendor.py +0 -14
  51. azure/mgmt/storage/v2017_06_01/_version.py +1 -1
  52. azure/mgmt/storage/v2017_06_01/aio/_configuration.py +4 -11
  53. azure/mgmt/storage/v2017_06_01/aio/_patch.py +1 -0
  54. azure/mgmt/storage/v2017_06_01/aio/_storage_management.py +29 -7
  55. azure/mgmt/storage/v2017_06_01/aio/operations/_operations.py +20 -22
  56. azure/mgmt/storage/v2017_06_01/aio/operations/_skus_operations.py +20 -22
  57. azure/mgmt/storage/v2017_06_01/aio/operations/_storage_accounts_operations.py +162 -263
  58. azure/mgmt/storage/v2017_06_01/aio/operations/_usage_operations.py +20 -22
  59. azure/mgmt/storage/v2017_06_01/models/_models_py3.py +16 -22
  60. azure/mgmt/storage/v2017_06_01/operations/_operations.py +21 -23
  61. azure/mgmt/storage/v2017_06_01/operations/_skus_operations.py +23 -25
  62. azure/mgmt/storage/v2017_06_01/operations/_storage_accounts_operations.py +185 -286
  63. azure/mgmt/storage/v2017_06_01/operations/_usage_operations.py +23 -25
  64. azure/mgmt/storage/v2017_10_01/_configuration.py +4 -11
  65. azure/mgmt/storage/v2017_10_01/_patch.py +1 -0
  66. azure/mgmt/storage/v2017_10_01/_storage_management.py +27 -7
  67. azure/mgmt/storage/v2017_10_01/_vendor.py +0 -14
  68. azure/mgmt/storage/v2017_10_01/_version.py +1 -1
  69. azure/mgmt/storage/v2017_10_01/aio/_configuration.py +4 -11
  70. azure/mgmt/storage/v2017_10_01/aio/_patch.py +1 -0
  71. azure/mgmt/storage/v2017_10_01/aio/_storage_management.py +29 -7
  72. azure/mgmt/storage/v2017_10_01/aio/operations/_operations.py +20 -22
  73. azure/mgmt/storage/v2017_10_01/aio/operations/_skus_operations.py +20 -22
  74. azure/mgmt/storage/v2017_10_01/aio/operations/_storage_accounts_operations.py +162 -263
  75. azure/mgmt/storage/v2017_10_01/aio/operations/_usage_operations.py +20 -22
  76. azure/mgmt/storage/v2017_10_01/models/_models_py3.py +16 -22
  77. azure/mgmt/storage/v2017_10_01/operations/_operations.py +21 -23
  78. azure/mgmt/storage/v2017_10_01/operations/_skus_operations.py +23 -25
  79. azure/mgmt/storage/v2017_10_01/operations/_storage_accounts_operations.py +185 -286
  80. azure/mgmt/storage/v2017_10_01/operations/_usage_operations.py +23 -25
  81. azure/mgmt/storage/v2018_02_01/_configuration.py +4 -11
  82. azure/mgmt/storage/v2018_02_01/_patch.py +1 -0
  83. azure/mgmt/storage/v2018_02_01/_storage_management_client.py +30 -8
  84. azure/mgmt/storage/v2018_02_01/_vendor.py +0 -14
  85. azure/mgmt/storage/v2018_02_01/_version.py +1 -1
  86. azure/mgmt/storage/v2018_02_01/aio/_configuration.py +4 -11
  87. azure/mgmt/storage/v2018_02_01/aio/_patch.py +1 -0
  88. azure/mgmt/storage/v2018_02_01/aio/_storage_management_client.py +32 -8
  89. azure/mgmt/storage/v2018_02_01/aio/operations/_blob_containers_operations.py +166 -264
  90. azure/mgmt/storage/v2018_02_01/aio/operations/_operations.py +20 -22
  91. azure/mgmt/storage/v2018_02_01/aio/operations/_skus_operations.py +20 -22
  92. azure/mgmt/storage/v2018_02_01/aio/operations/_storage_accounts_operations.py +162 -263
  93. azure/mgmt/storage/v2018_02_01/aio/operations/_usage_operations.py +34 -41
  94. azure/mgmt/storage/v2018_02_01/models/_models_py3.py +28 -34
  95. azure/mgmt/storage/v2018_02_01/models/_storage_management_client_enums.py +1 -1
  96. azure/mgmt/storage/v2018_02_01/operations/_blob_containers_operations.py +194 -292
  97. azure/mgmt/storage/v2018_02_01/operations/_operations.py +21 -23
  98. azure/mgmt/storage/v2018_02_01/operations/_skus_operations.py +23 -25
  99. azure/mgmt/storage/v2018_02_01/operations/_storage_accounts_operations.py +185 -286
  100. azure/mgmt/storage/v2018_02_01/operations/_usage_operations.py +39 -46
  101. azure/mgmt/storage/v2018_03_01_preview/_configuration.py +4 -11
  102. azure/mgmt/storage/v2018_03_01_preview/_patch.py +1 -0
  103. azure/mgmt/storage/v2018_03_01_preview/_storage_management_client.py +41 -8
  104. azure/mgmt/storage/v2018_03_01_preview/_vendor.py +0 -14
  105. azure/mgmt/storage/v2018_03_01_preview/_version.py +1 -1
  106. azure/mgmt/storage/v2018_03_01_preview/aio/_configuration.py +4 -11
  107. azure/mgmt/storage/v2018_03_01_preview/aio/_patch.py +1 -0
  108. azure/mgmt/storage/v2018_03_01_preview/aio/_storage_management_client.py +43 -8
  109. azure/mgmt/storage/v2018_03_01_preview/aio/operations/__init__.py +2 -0
  110. azure/mgmt/storage/v2018_03_01_preview/aio/operations/_blob_containers_operations.py +182 -277
  111. azure/mgmt/storage/{v2018_07_01 → v2018_03_01_preview}/aio/operations/_management_policies_operations.py +55 -72
  112. azure/mgmt/storage/v2018_03_01_preview/aio/operations/_operations.py +21 -23
  113. azure/mgmt/storage/v2018_03_01_preview/aio/operations/_skus_operations.py +21 -23
  114. azure/mgmt/storage/v2018_03_01_preview/aio/operations/_storage_accounts_operations.py +209 -330
  115. azure/mgmt/storage/v2018_03_01_preview/aio/operations/_usages_operations.py +36 -43
  116. azure/mgmt/storage/v2018_03_01_preview/models/_models_py3.py +30 -34
  117. azure/mgmt/storage/v2018_03_01_preview/models/_storage_management_client_enums.py +1 -1
  118. azure/mgmt/storage/v2018_03_01_preview/operations/__init__.py +2 -0
  119. azure/mgmt/storage/v2018_03_01_preview/operations/_blob_containers_operations.py +210 -331
  120. azure/mgmt/storage/{v2018_07_01 → v2018_03_01_preview}/operations/_management_policies_operations.py +62 -85
  121. azure/mgmt/storage/v2018_03_01_preview/operations/_operations.py +22 -26
  122. azure/mgmt/storage/v2018_03_01_preview/operations/_skus_operations.py +24 -28
  123. azure/mgmt/storage/v2018_03_01_preview/operations/_storage_accounts_operations.py +239 -388
  124. azure/mgmt/storage/v2018_03_01_preview/operations/_usages_operations.py +41 -52
  125. azure/mgmt/storage/v2018_07_01/_configuration.py +9 -4
  126. azure/mgmt/storage/v2018_07_01/_patch.py +1 -0
  127. azure/mgmt/storage/v2018_07_01/_storage_management_client.py +36 -16
  128. azure/mgmt/storage/v2018_07_01/_vendor.py +0 -14
  129. azure/mgmt/storage/v2018_07_01/_version.py +1 -1
  130. azure/mgmt/storage/v2018_07_01/aio/_configuration.py +9 -4
  131. azure/mgmt/storage/v2018_07_01/aio/_patch.py +1 -0
  132. azure/mgmt/storage/v2018_07_01/aio/_storage_management_client.py +38 -16
  133. azure/mgmt/storage/v2018_07_01/aio/operations/__init__.py +0 -2
  134. azure/mgmt/storage/v2018_07_01/aio/operations/_blob_containers_operations.py +166 -264
  135. azure/mgmt/storage/v2018_07_01/aio/operations/_blob_services_operations.py +31 -44
  136. azure/mgmt/storage/v2018_07_01/aio/operations/_operations.py +31 -21
  137. azure/mgmt/storage/v2018_07_01/aio/operations/_skus_operations.py +31 -21
  138. azure/mgmt/storage/v2018_07_01/aio/operations/_storage_accounts_operations.py +195 -289
  139. azure/mgmt/storage/v2018_07_01/aio/operations/_usages_operations.py +31 -23
  140. azure/mgmt/storage/v2018_07_01/models/__init__.py +0 -10
  141. azure/mgmt/storage/v2018_07_01/models/_models_py3.py +30 -164
  142. azure/mgmt/storage/v2018_07_01/models/_storage_management_client_enums.py +1 -7
  143. azure/mgmt/storage/v2018_07_01/operations/__init__.py +0 -2
  144. azure/mgmt/storage/v2018_07_01/operations/_blob_containers_operations.py +194 -292
  145. azure/mgmt/storage/v2018_07_01/operations/_blob_services_operations.py +36 -49
  146. azure/mgmt/storage/v2018_07_01/operations/_operations.py +32 -22
  147. azure/mgmt/storage/v2018_07_01/operations/_skus_operations.py +34 -24
  148. azure/mgmt/storage/v2018_07_01/operations/_storage_accounts_operations.py +220 -314
  149. azure/mgmt/storage/v2018_07_01/operations/_usages_operations.py +34 -26
  150. azure/mgmt/storage/v2018_11_01/_configuration.py +4 -11
  151. azure/mgmt/storage/v2018_11_01/_patch.py +1 -0
  152. azure/mgmt/storage/v2018_11_01/_storage_management_client.py +34 -10
  153. azure/mgmt/storage/v2018_11_01/_vendor.py +0 -14
  154. azure/mgmt/storage/v2018_11_01/_version.py +1 -1
  155. azure/mgmt/storage/v2018_11_01/aio/_configuration.py +4 -11
  156. azure/mgmt/storage/v2018_11_01/aio/_patch.py +1 -0
  157. azure/mgmt/storage/v2018_11_01/aio/_storage_management_client.py +36 -10
  158. azure/mgmt/storage/v2018_11_01/aio/operations/_blob_containers_operations.py +164 -262
  159. azure/mgmt/storage/v2018_11_01/aio/operations/_blob_services_operations.py +31 -44
  160. azure/mgmt/storage/v2018_11_01/aio/operations/_management_policies_operations.py +39 -57
  161. azure/mgmt/storage/v2018_11_01/aio/operations/_operations.py +20 -22
  162. azure/mgmt/storage/v2018_11_01/aio/operations/_skus_operations.py +20 -22
  163. azure/mgmt/storage/v2018_11_01/aio/operations/_storage_accounts_operations.py +182 -304
  164. azure/mgmt/storage/v2018_11_01/aio/operations/_usages_operations.py +20 -24
  165. azure/mgmt/storage/v2018_11_01/models/_models_py3.py +37 -43
  166. azure/mgmt/storage/v2018_11_01/models/_storage_management_client_enums.py +1 -1
  167. azure/mgmt/storage/v2018_11_01/operations/_blob_containers_operations.py +192 -290
  168. azure/mgmt/storage/v2018_11_01/operations/_blob_services_operations.py +36 -49
  169. azure/mgmt/storage/v2018_11_01/operations/_management_policies_operations.py +46 -64
  170. azure/mgmt/storage/v2018_11_01/operations/_operations.py +21 -23
  171. azure/mgmt/storage/v2018_11_01/operations/_skus_operations.py +23 -25
  172. azure/mgmt/storage/v2018_11_01/operations/_storage_accounts_operations.py +210 -332
  173. azure/mgmt/storage/v2018_11_01/operations/_usages_operations.py +23 -27
  174. azure/mgmt/storage/v2019_04_01/_configuration.py +4 -11
  175. azure/mgmt/storage/v2019_04_01/_patch.py +1 -0
  176. azure/mgmt/storage/v2019_04_01/_storage_management_client.py +40 -12
  177. azure/mgmt/storage/v2019_04_01/_vendor.py +0 -14
  178. azure/mgmt/storage/v2019_04_01/_version.py +1 -1
  179. azure/mgmt/storage/v2019_04_01/aio/_configuration.py +4 -11
  180. azure/mgmt/storage/v2019_04_01/aio/_patch.py +1 -0
  181. azure/mgmt/storage/v2019_04_01/aio/_storage_management_client.py +42 -12
  182. azure/mgmt/storage/v2019_04_01/aio/operations/_blob_containers_operations.py +169 -267
  183. azure/mgmt/storage/v2019_04_01/aio/operations/_blob_services_operations.py +45 -63
  184. azure/mgmt/storage/v2019_04_01/aio/operations/_file_services_operations.py +41 -59
  185. azure/mgmt/storage/v2019_04_01/aio/operations/_file_shares_operations.py +68 -101
  186. azure/mgmt/storage/v2019_04_01/aio/operations/_management_policies_operations.py +39 -57
  187. azure/mgmt/storage/v2019_04_01/aio/operations/_operations.py +20 -22
  188. azure/mgmt/storage/v2019_04_01/aio/operations/_skus_operations.py +20 -22
  189. azure/mgmt/storage/v2019_04_01/aio/operations/_storage_accounts_operations.py +183 -304
  190. azure/mgmt/storage/v2019_04_01/aio/operations/_usages_operations.py +20 -24
  191. azure/mgmt/storage/v2019_04_01/models/_models_py3.py +42 -48
  192. azure/mgmt/storage/v2019_04_01/models/_storage_management_client_enums.py +1 -1
  193. azure/mgmt/storage/v2019_04_01/operations/_blob_containers_operations.py +197 -295
  194. azure/mgmt/storage/v2019_04_01/operations/_blob_services_operations.py +52 -70
  195. azure/mgmt/storage/v2019_04_01/operations/_file_services_operations.py +48 -66
  196. azure/mgmt/storage/v2019_04_01/operations/_file_shares_operations.py +79 -112
  197. azure/mgmt/storage/v2019_04_01/operations/_management_policies_operations.py +46 -64
  198. azure/mgmt/storage/v2019_04_01/operations/_operations.py +21 -23
  199. azure/mgmt/storage/v2019_04_01/operations/_skus_operations.py +23 -25
  200. azure/mgmt/storage/v2019_04_01/operations/_storage_accounts_operations.py +211 -332
  201. azure/mgmt/storage/v2019_04_01/operations/_usages_operations.py +23 -27
  202. azure/mgmt/storage/v2019_06_01/_configuration.py +4 -11
  203. azure/mgmt/storage/v2019_06_01/_patch.py +1 -0
  204. azure/mgmt/storage/v2019_06_01/_storage_management_client.py +54 -22
  205. azure/mgmt/storage/v2019_06_01/_vendor.py +0 -14
  206. azure/mgmt/storage/v2019_06_01/_version.py +1 -1
  207. azure/mgmt/storage/v2019_06_01/aio/_configuration.py +4 -11
  208. azure/mgmt/storage/v2019_06_01/aio/_patch.py +1 -0
  209. azure/mgmt/storage/v2019_06_01/aio/_storage_management_client.py +56 -22
  210. azure/mgmt/storage/v2019_06_01/aio/operations/_blob_containers_operations.py +169 -267
  211. azure/mgmt/storage/v2019_06_01/aio/operations/_blob_inventory_policies_operations.py +53 -76
  212. azure/mgmt/storage/v2019_06_01/aio/operations/_blob_services_operations.py +45 -63
  213. azure/mgmt/storage/v2019_06_01/aio/operations/_encryption_scopes_operations.py +58 -86
  214. azure/mgmt/storage/v2019_06_01/aio/operations/_file_services_operations.py +41 -59
  215. azure/mgmt/storage/v2019_06_01/aio/operations/_file_shares_operations.py +82 -125
  216. azure/mgmt/storage/v2019_06_01/aio/operations/_management_policies_operations.py +39 -57
  217. azure/mgmt/storage/v2019_06_01/aio/operations/_object_replication_policies_operations.py +54 -76
  218. azure/mgmt/storage/v2019_06_01/aio/operations/_operations.py +20 -22
  219. azure/mgmt/storage/v2019_06_01/aio/operations/_private_endpoint_connections_operations.py +53 -76
  220. azure/mgmt/storage/v2019_06_01/aio/operations/_private_link_resources_operations.py +15 -19
  221. azure/mgmt/storage/v2019_06_01/aio/operations/_queue_operations.py +68 -101
  222. azure/mgmt/storage/v2019_06_01/aio/operations/_queue_services_operations.py +40 -58
  223. azure/mgmt/storage/v2019_06_01/aio/operations/_skus_operations.py +20 -22
  224. azure/mgmt/storage/v2019_06_01/aio/operations/_storage_accounts_operations.py +203 -357
  225. azure/mgmt/storage/v2019_06_01/aio/operations/_table_operations.py +55 -79
  226. azure/mgmt/storage/v2019_06_01/aio/operations/_table_services_operations.py +40 -58
  227. azure/mgmt/storage/v2019_06_01/aio/operations/_usages_operations.py +20 -24
  228. azure/mgmt/storage/v2019_06_01/models/_models_py3.py +62 -68
  229. azure/mgmt/storage/v2019_06_01/models/_storage_management_client_enums.py +1 -1
  230. azure/mgmt/storage/v2019_06_01/operations/_blob_containers_operations.py +197 -295
  231. azure/mgmt/storage/v2019_06_01/operations/_blob_inventory_policies_operations.py +62 -85
  232. azure/mgmt/storage/v2019_06_01/operations/_blob_services_operations.py +52 -70
  233. azure/mgmt/storage/v2019_06_01/operations/_encryption_scopes_operations.py +67 -95
  234. azure/mgmt/storage/v2019_06_01/operations/_file_services_operations.py +48 -66
  235. azure/mgmt/storage/v2019_06_01/operations/_file_shares_operations.py +95 -138
  236. azure/mgmt/storage/v2019_06_01/operations/_management_policies_operations.py +46 -64
  237. azure/mgmt/storage/v2019_06_01/operations/_object_replication_policies_operations.py +63 -85
  238. azure/mgmt/storage/v2019_06_01/operations/_operations.py +21 -23
  239. azure/mgmt/storage/v2019_06_01/operations/_private_endpoint_connections_operations.py +62 -85
  240. azure/mgmt/storage/v2019_06_01/operations/_private_link_resources_operations.py +18 -22
  241. azure/mgmt/storage/v2019_06_01/operations/_queue_operations.py +79 -112
  242. azure/mgmt/storage/v2019_06_01/operations/_queue_services_operations.py +47 -65
  243. azure/mgmt/storage/v2019_06_01/operations/_skus_operations.py +23 -25
  244. azure/mgmt/storage/v2019_06_01/operations/_storage_accounts_operations.py +233 -387
  245. azure/mgmt/storage/v2019_06_01/operations/_table_operations.py +66 -90
  246. azure/mgmt/storage/v2019_06_01/operations/_table_services_operations.py +47 -65
  247. azure/mgmt/storage/v2019_06_01/operations/_usages_operations.py +23 -27
  248. azure/mgmt/storage/v2020_08_01_preview/_configuration.py +4 -11
  249. azure/mgmt/storage/v2020_08_01_preview/_patch.py +1 -0
  250. azure/mgmt/storage/v2020_08_01_preview/_storage_management_client.py +64 -24
  251. azure/mgmt/storage/v2020_08_01_preview/_vendor.py +0 -14
  252. azure/mgmt/storage/v2020_08_01_preview/_version.py +1 -1
  253. azure/mgmt/storage/v2020_08_01_preview/aio/_configuration.py +4 -11
  254. azure/mgmt/storage/v2020_08_01_preview/aio/_patch.py +1 -0
  255. azure/mgmt/storage/v2020_08_01_preview/aio/_storage_management_client.py +66 -24
  256. azure/mgmt/storage/v2020_08_01_preview/aio/operations/_blob_containers_operations.py +185 -280
  257. azure/mgmt/storage/v2020_08_01_preview/aio/operations/_blob_inventory_policies_operations.py +58 -80
  258. azure/mgmt/storage/v2020_08_01_preview/aio/operations/_blob_services_operations.py +49 -66
  259. azure/mgmt/storage/v2020_08_01_preview/aio/operations/_deleted_accounts_operations.py +31 -38
  260. azure/mgmt/storage/v2020_08_01_preview/aio/operations/_encryption_scopes_operations.py +64 -90
  261. azure/mgmt/storage/v2020_08_01_preview/aio/operations/_file_services_operations.py +45 -62
  262. azure/mgmt/storage/v2020_08_01_preview/aio/operations/_file_shares_operations.py +88 -131
  263. azure/mgmt/storage/v2020_08_01_preview/aio/operations/_management_policies_operations.py +42 -60
  264. azure/mgmt/storage/v2020_08_01_preview/aio/operations/_object_replication_policies_operations.py +59 -80
  265. azure/mgmt/storage/v2020_08_01_preview/aio/operations/_operations.py +21 -23
  266. azure/mgmt/storage/v2020_08_01_preview/aio/operations/_private_endpoint_connections_operations.py +57 -80
  267. azure/mgmt/storage/v2020_08_01_preview/aio/operations/_private_link_resources_operations.py +16 -20
  268. azure/mgmt/storage/v2020_08_01_preview/aio/operations/_queue_operations.py +73 -106
  269. azure/mgmt/storage/v2020_08_01_preview/aio/operations/_queue_services_operations.py +44 -61
  270. azure/mgmt/storage/v2020_08_01_preview/aio/operations/_skus_operations.py +21 -23
  271. azure/mgmt/storage/v2020_08_01_preview/aio/operations/_storage_accounts_operations.py +221 -374
  272. azure/mgmt/storage/v2020_08_01_preview/aio/operations/_table_operations.py +60 -84
  273. azure/mgmt/storage/v2020_08_01_preview/aio/operations/_table_services_operations.py +44 -61
  274. azure/mgmt/storage/v2020_08_01_preview/aio/operations/_usages_operations.py +21 -25
  275. azure/mgmt/storage/v2020_08_01_preview/models/_models_py3.py +64 -86
  276. azure/mgmt/storage/v2020_08_01_preview/models/_storage_management_client_enums.py +1 -1
  277. azure/mgmt/storage/v2020_08_01_preview/operations/_blob_containers_operations.py +213 -334
  278. azure/mgmt/storage/v2020_08_01_preview/operations/_blob_inventory_policies_operations.py +67 -97
  279. azure/mgmt/storage/v2020_08_01_preview/operations/_blob_services_operations.py +56 -79
  280. azure/mgmt/storage/v2020_08_01_preview/operations/_deleted_accounts_operations.py +36 -47
  281. azure/mgmt/storage/v2020_08_01_preview/operations/_encryption_scopes_operations.py +73 -107
  282. azure/mgmt/storage/v2020_08_01_preview/operations/_file_services_operations.py +52 -75
  283. azure/mgmt/storage/v2020_08_01_preview/operations/_file_shares_operations.py +101 -156
  284. azure/mgmt/storage/v2020_08_01_preview/operations/_management_policies_operations.py +49 -73
  285. azure/mgmt/storage/v2020_08_01_preview/operations/_object_replication_policies_operations.py +68 -97
  286. azure/mgmt/storage/v2020_08_01_preview/operations/_operations.py +22 -26
  287. azure/mgmt/storage/v2020_08_01_preview/operations/_private_endpoint_connections_operations.py +66 -97
  288. azure/mgmt/storage/v2020_08_01_preview/operations/_private_link_resources_operations.py +19 -25
  289. azure/mgmt/storage/v2020_08_01_preview/operations/_queue_operations.py +84 -127
  290. azure/mgmt/storage/v2020_08_01_preview/operations/_queue_services_operations.py +51 -74
  291. azure/mgmt/storage/v2020_08_01_preview/operations/_skus_operations.py +24 -28
  292. azure/mgmt/storage/v2020_08_01_preview/operations/_storage_accounts_operations.py +251 -432
  293. azure/mgmt/storage/v2020_08_01_preview/operations/_table_operations.py +71 -105
  294. azure/mgmt/storage/v2020_08_01_preview/operations/_table_services_operations.py +51 -74
  295. azure/mgmt/storage/v2020_08_01_preview/operations/_usages_operations.py +24 -30
  296. azure/mgmt/storage/v2021_01_01/_configuration.py +4 -11
  297. azure/mgmt/storage/v2021_01_01/_patch.py +1 -0
  298. azure/mgmt/storage/v2021_01_01/_storage_management_client.py +55 -23
  299. azure/mgmt/storage/v2021_01_01/_vendor.py +0 -14
  300. azure/mgmt/storage/v2021_01_01/_version.py +1 -1
  301. azure/mgmt/storage/v2021_01_01/aio/_configuration.py +4 -11
  302. azure/mgmt/storage/v2021_01_01/aio/_patch.py +1 -0
  303. azure/mgmt/storage/v2021_01_01/aio/_storage_management_client.py +57 -23
  304. azure/mgmt/storage/v2021_01_01/aio/operations/_blob_containers_operations.py +169 -267
  305. azure/mgmt/storage/v2021_01_01/aio/operations/_blob_inventory_policies_operations.py +53 -76
  306. azure/mgmt/storage/v2021_01_01/aio/operations/_blob_services_operations.py +45 -63
  307. azure/mgmt/storage/v2021_01_01/aio/operations/_deleted_accounts_operations.py +29 -36
  308. azure/mgmt/storage/v2021_01_01/aio/operations/_encryption_scopes_operations.py +58 -86
  309. azure/mgmt/storage/v2021_01_01/aio/operations/_file_services_operations.py +41 -59
  310. azure/mgmt/storage/v2021_01_01/aio/operations/_file_shares_operations.py +82 -125
  311. azure/mgmt/storage/v2021_01_01/aio/operations/_management_policies_operations.py +39 -57
  312. azure/mgmt/storage/v2021_01_01/aio/operations/_object_replication_policies_operations.py +54 -76
  313. azure/mgmt/storage/v2021_01_01/aio/operations/_operations.py +20 -22
  314. azure/mgmt/storage/v2021_01_01/aio/operations/_private_endpoint_connections_operations.py +53 -76
  315. azure/mgmt/storage/v2021_01_01/aio/operations/_private_link_resources_operations.py +15 -19
  316. azure/mgmt/storage/v2021_01_01/aio/operations/_queue_operations.py +68 -101
  317. azure/mgmt/storage/v2021_01_01/aio/operations/_queue_services_operations.py +40 -58
  318. azure/mgmt/storage/v2021_01_01/aio/operations/_skus_operations.py +20 -22
  319. azure/mgmt/storage/v2021_01_01/aio/operations/_storage_accounts_operations.py +203 -357
  320. azure/mgmt/storage/v2021_01_01/aio/operations/_table_operations.py +55 -79
  321. azure/mgmt/storage/v2021_01_01/aio/operations/_table_services_operations.py +40 -58
  322. azure/mgmt/storage/v2021_01_01/aio/operations/_usages_operations.py +20 -24
  323. azure/mgmt/storage/v2021_01_01/models/_models_py3.py +64 -86
  324. azure/mgmt/storage/v2021_01_01/models/_storage_management_client_enums.py +1 -1
  325. azure/mgmt/storage/v2021_01_01/operations/_blob_containers_operations.py +197 -295
  326. azure/mgmt/storage/v2021_01_01/operations/_blob_inventory_policies_operations.py +62 -85
  327. azure/mgmt/storage/v2021_01_01/operations/_blob_services_operations.py +52 -70
  328. azure/mgmt/storage/v2021_01_01/operations/_deleted_accounts_operations.py +34 -41
  329. azure/mgmt/storage/v2021_01_01/operations/_encryption_scopes_operations.py +67 -95
  330. azure/mgmt/storage/v2021_01_01/operations/_file_services_operations.py +48 -66
  331. azure/mgmt/storage/v2021_01_01/operations/_file_shares_operations.py +95 -138
  332. azure/mgmt/storage/v2021_01_01/operations/_management_policies_operations.py +46 -64
  333. azure/mgmt/storage/v2021_01_01/operations/_object_replication_policies_operations.py +63 -85
  334. azure/mgmt/storage/v2021_01_01/operations/_operations.py +21 -23
  335. azure/mgmt/storage/v2021_01_01/operations/_private_endpoint_connections_operations.py +62 -85
  336. azure/mgmt/storage/v2021_01_01/operations/_private_link_resources_operations.py +18 -22
  337. azure/mgmt/storage/v2021_01_01/operations/_queue_operations.py +79 -112
  338. azure/mgmt/storage/v2021_01_01/operations/_queue_services_operations.py +47 -65
  339. azure/mgmt/storage/v2021_01_01/operations/_skus_operations.py +23 -25
  340. azure/mgmt/storage/v2021_01_01/operations/_storage_accounts_operations.py +233 -387
  341. azure/mgmt/storage/v2021_01_01/operations/_table_operations.py +66 -90
  342. azure/mgmt/storage/v2021_01_01/operations/_table_services_operations.py +47 -65
  343. azure/mgmt/storage/v2021_01_01/operations/_usages_operations.py +23 -27
  344. azure/mgmt/storage/v2021_02_01/_configuration.py +4 -11
  345. azure/mgmt/storage/v2021_02_01/_patch.py +1 -0
  346. azure/mgmt/storage/v2021_02_01/_storage_management_client.py +55 -23
  347. azure/mgmt/storage/v2021_02_01/_vendor.py +0 -14
  348. azure/mgmt/storage/v2021_02_01/_version.py +1 -1
  349. azure/mgmt/storage/v2021_02_01/aio/_configuration.py +4 -11
  350. azure/mgmt/storage/v2021_02_01/aio/_patch.py +1 -0
  351. azure/mgmt/storage/v2021_02_01/aio/_storage_management_client.py +57 -23
  352. azure/mgmt/storage/v2021_02_01/aio/operations/_blob_containers_operations.py +169 -267
  353. azure/mgmt/storage/v2021_02_01/aio/operations/_blob_inventory_policies_operations.py +53 -76
  354. azure/mgmt/storage/v2021_02_01/aio/operations/_blob_services_operations.py +45 -63
  355. azure/mgmt/storage/v2021_02_01/aio/operations/_deleted_accounts_operations.py +29 -36
  356. azure/mgmt/storage/v2021_02_01/aio/operations/_encryption_scopes_operations.py +58 -86
  357. azure/mgmt/storage/v2021_02_01/aio/operations/_file_services_operations.py +41 -59
  358. azure/mgmt/storage/v2021_02_01/aio/operations/_file_shares_operations.py +82 -125
  359. azure/mgmt/storage/v2021_02_01/aio/operations/_management_policies_operations.py +39 -57
  360. azure/mgmt/storage/v2021_02_01/aio/operations/_object_replication_policies_operations.py +54 -76
  361. azure/mgmt/storage/v2021_02_01/aio/operations/_operations.py +20 -22
  362. azure/mgmt/storage/v2021_02_01/aio/operations/_private_endpoint_connections_operations.py +53 -76
  363. azure/mgmt/storage/v2021_02_01/aio/operations/_private_link_resources_operations.py +15 -19
  364. azure/mgmt/storage/v2021_02_01/aio/operations/_queue_operations.py +68 -101
  365. azure/mgmt/storage/v2021_02_01/aio/operations/_queue_services_operations.py +40 -58
  366. azure/mgmt/storage/v2021_02_01/aio/operations/_skus_operations.py +20 -22
  367. azure/mgmt/storage/v2021_02_01/aio/operations/_storage_accounts_operations.py +203 -357
  368. azure/mgmt/storage/v2021_02_01/aio/operations/_table_operations.py +55 -79
  369. azure/mgmt/storage/v2021_02_01/aio/operations/_table_services_operations.py +40 -58
  370. azure/mgmt/storage/v2021_02_01/aio/operations/_usages_operations.py +20 -24
  371. azure/mgmt/storage/v2021_02_01/models/_models_py3.py +66 -88
  372. azure/mgmt/storage/v2021_02_01/models/_storage_management_client_enums.py +1 -1
  373. azure/mgmt/storage/v2021_02_01/operations/_blob_containers_operations.py +197 -295
  374. azure/mgmt/storage/v2021_02_01/operations/_blob_inventory_policies_operations.py +62 -85
  375. azure/mgmt/storage/v2021_02_01/operations/_blob_services_operations.py +52 -70
  376. azure/mgmt/storage/v2021_02_01/operations/_deleted_accounts_operations.py +34 -41
  377. azure/mgmt/storage/v2021_02_01/operations/_encryption_scopes_operations.py +67 -95
  378. azure/mgmt/storage/v2021_02_01/operations/_file_services_operations.py +48 -66
  379. azure/mgmt/storage/v2021_02_01/operations/_file_shares_operations.py +95 -138
  380. azure/mgmt/storage/v2021_02_01/operations/_management_policies_operations.py +46 -64
  381. azure/mgmt/storage/v2021_02_01/operations/_object_replication_policies_operations.py +63 -85
  382. azure/mgmt/storage/v2021_02_01/operations/_operations.py +21 -23
  383. azure/mgmt/storage/v2021_02_01/operations/_private_endpoint_connections_operations.py +62 -85
  384. azure/mgmt/storage/v2021_02_01/operations/_private_link_resources_operations.py +18 -22
  385. azure/mgmt/storage/v2021_02_01/operations/_queue_operations.py +79 -112
  386. azure/mgmt/storage/v2021_02_01/operations/_queue_services_operations.py +47 -65
  387. azure/mgmt/storage/v2021_02_01/operations/_skus_operations.py +23 -25
  388. azure/mgmt/storage/v2021_02_01/operations/_storage_accounts_operations.py +233 -387
  389. azure/mgmt/storage/v2021_02_01/operations/_table_operations.py +66 -90
  390. azure/mgmt/storage/v2021_02_01/operations/_table_services_operations.py +47 -65
  391. azure/mgmt/storage/v2021_02_01/operations/_usages_operations.py +23 -27
  392. azure/mgmt/storage/v2021_04_01/_configuration.py +4 -11
  393. azure/mgmt/storage/v2021_04_01/_patch.py +1 -0
  394. azure/mgmt/storage/v2021_04_01/_storage_management_client.py +55 -23
  395. azure/mgmt/storage/v2021_04_01/_vendor.py +0 -14
  396. azure/mgmt/storage/v2021_04_01/_version.py +1 -1
  397. azure/mgmt/storage/v2021_04_01/aio/_configuration.py +4 -11
  398. azure/mgmt/storage/v2021_04_01/aio/_patch.py +1 -0
  399. azure/mgmt/storage/v2021_04_01/aio/_storage_management_client.py +57 -23
  400. azure/mgmt/storage/v2021_04_01/aio/operations/_blob_containers_operations.py +181 -295
  401. azure/mgmt/storage/v2021_04_01/aio/operations/_blob_inventory_policies_operations.py +53 -76
  402. azure/mgmt/storage/v2021_04_01/aio/operations/_blob_services_operations.py +45 -63
  403. azure/mgmt/storage/v2021_04_01/aio/operations/_deleted_accounts_operations.py +29 -36
  404. azure/mgmt/storage/v2021_04_01/aio/operations/_encryption_scopes_operations.py +58 -86
  405. azure/mgmt/storage/v2021_04_01/aio/operations/_file_services_operations.py +41 -59
  406. azure/mgmt/storage/v2021_04_01/aio/operations/_file_shares_operations.py +98 -151
  407. azure/mgmt/storage/v2021_04_01/aio/operations/_management_policies_operations.py +39 -57
  408. azure/mgmt/storage/v2021_04_01/aio/operations/_object_replication_policies_operations.py +54 -76
  409. azure/mgmt/storage/v2021_04_01/aio/operations/_operations.py +20 -22
  410. azure/mgmt/storage/v2021_04_01/aio/operations/_private_endpoint_connections_operations.py +53 -76
  411. azure/mgmt/storage/v2021_04_01/aio/operations/_private_link_resources_operations.py +15 -19
  412. azure/mgmt/storage/v2021_04_01/aio/operations/_queue_operations.py +68 -101
  413. azure/mgmt/storage/v2021_04_01/aio/operations/_queue_services_operations.py +40 -58
  414. azure/mgmt/storage/v2021_04_01/aio/operations/_skus_operations.py +20 -22
  415. azure/mgmt/storage/v2021_04_01/aio/operations/_storage_accounts_operations.py +203 -357
  416. azure/mgmt/storage/v2021_04_01/aio/operations/_table_operations.py +55 -79
  417. azure/mgmt/storage/v2021_04_01/aio/operations/_table_services_operations.py +40 -58
  418. azure/mgmt/storage/v2021_04_01/aio/operations/_usages_operations.py +20 -24
  419. azure/mgmt/storage/v2021_04_01/models/_models_py3.py +66 -88
  420. azure/mgmt/storage/v2021_04_01/models/_storage_management_client_enums.py +2 -2
  421. azure/mgmt/storage/v2021_04_01/operations/_blob_containers_operations.py +211 -325
  422. azure/mgmt/storage/v2021_04_01/operations/_blob_inventory_policies_operations.py +62 -85
  423. azure/mgmt/storage/v2021_04_01/operations/_blob_services_operations.py +52 -70
  424. azure/mgmt/storage/v2021_04_01/operations/_deleted_accounts_operations.py +34 -41
  425. azure/mgmt/storage/v2021_04_01/operations/_encryption_scopes_operations.py +67 -95
  426. azure/mgmt/storage/v2021_04_01/operations/_file_services_operations.py +48 -66
  427. azure/mgmt/storage/v2021_04_01/operations/_file_shares_operations.py +113 -166
  428. azure/mgmt/storage/v2021_04_01/operations/_management_policies_operations.py +46 -64
  429. azure/mgmt/storage/v2021_04_01/operations/_object_replication_policies_operations.py +63 -85
  430. azure/mgmt/storage/v2021_04_01/operations/_operations.py +21 -23
  431. azure/mgmt/storage/v2021_04_01/operations/_private_endpoint_connections_operations.py +62 -85
  432. azure/mgmt/storage/v2021_04_01/operations/_private_link_resources_operations.py +18 -22
  433. azure/mgmt/storage/v2021_04_01/operations/_queue_operations.py +79 -112
  434. azure/mgmt/storage/v2021_04_01/operations/_queue_services_operations.py +47 -65
  435. azure/mgmt/storage/v2021_04_01/operations/_skus_operations.py +23 -25
  436. azure/mgmt/storage/v2021_04_01/operations/_storage_accounts_operations.py +233 -387
  437. azure/mgmt/storage/v2021_04_01/operations/_table_operations.py +66 -90
  438. azure/mgmt/storage/v2021_04_01/operations/_table_services_operations.py +47 -65
  439. azure/mgmt/storage/v2021_04_01/operations/_usages_operations.py +23 -27
  440. azure/mgmt/storage/v2021_06_01/_configuration.py +4 -11
  441. azure/mgmt/storage/v2021_06_01/_patch.py +1 -0
  442. azure/mgmt/storage/v2021_06_01/_storage_management_client.py +55 -23
  443. azure/mgmt/storage/v2021_06_01/_vendor.py +0 -14
  444. azure/mgmt/storage/v2021_06_01/_version.py +1 -1
  445. azure/mgmt/storage/v2021_06_01/aio/_configuration.py +4 -11
  446. azure/mgmt/storage/v2021_06_01/aio/_patch.py +1 -0
  447. azure/mgmt/storage/v2021_06_01/aio/_storage_management_client.py +57 -23
  448. azure/mgmt/storage/v2021_06_01/aio/operations/_blob_containers_operations.py +181 -315
  449. azure/mgmt/storage/v2021_06_01/aio/operations/_blob_inventory_policies_operations.py +53 -76
  450. azure/mgmt/storage/v2021_06_01/aio/operations/_blob_services_operations.py +45 -79
  451. azure/mgmt/storage/v2021_06_01/aio/operations/_deleted_accounts_operations.py +29 -36
  452. azure/mgmt/storage/v2021_06_01/aio/operations/_encryption_scopes_operations.py +58 -86
  453. azure/mgmt/storage/v2021_06_01/aio/operations/_file_services_operations.py +41 -75
  454. azure/mgmt/storage/v2021_06_01/aio/operations/_file_shares_operations.py +98 -151
  455. azure/mgmt/storage/v2021_06_01/aio/operations/_management_policies_operations.py +39 -57
  456. azure/mgmt/storage/v2021_06_01/aio/operations/_object_replication_policies_operations.py +54 -76
  457. azure/mgmt/storage/v2021_06_01/aio/operations/_operations.py +20 -22
  458. azure/mgmt/storage/v2021_06_01/aio/operations/_private_endpoint_connections_operations.py +53 -76
  459. azure/mgmt/storage/v2021_06_01/aio/operations/_private_link_resources_operations.py +15 -19
  460. azure/mgmt/storage/v2021_06_01/aio/operations/_queue_operations.py +68 -101
  461. azure/mgmt/storage/v2021_06_01/aio/operations/_queue_services_operations.py +40 -74
  462. azure/mgmt/storage/v2021_06_01/aio/operations/_skus_operations.py +20 -22
  463. azure/mgmt/storage/v2021_06_01/aio/operations/_storage_accounts_operations.py +230 -416
  464. azure/mgmt/storage/v2021_06_01/aio/operations/_table_operations.py +55 -79
  465. azure/mgmt/storage/v2021_06_01/aio/operations/_table_services_operations.py +40 -74
  466. azure/mgmt/storage/v2021_06_01/aio/operations/_usages_operations.py +20 -24
  467. azure/mgmt/storage/v2021_06_01/models/_models_py3.py +66 -88
  468. azure/mgmt/storage/v2021_06_01/models/_storage_management_client_enums.py +2 -2
  469. azure/mgmt/storage/v2021_06_01/operations/_blob_containers_operations.py +211 -345
  470. azure/mgmt/storage/v2021_06_01/operations/_blob_inventory_policies_operations.py +62 -85
  471. azure/mgmt/storage/v2021_06_01/operations/_blob_services_operations.py +52 -86
  472. azure/mgmt/storage/v2021_06_01/operations/_deleted_accounts_operations.py +34 -41
  473. azure/mgmt/storage/v2021_06_01/operations/_encryption_scopes_operations.py +67 -95
  474. azure/mgmt/storage/v2021_06_01/operations/_file_services_operations.py +48 -82
  475. azure/mgmt/storage/v2021_06_01/operations/_file_shares_operations.py +113 -166
  476. azure/mgmt/storage/v2021_06_01/operations/_management_policies_operations.py +46 -64
  477. azure/mgmt/storage/v2021_06_01/operations/_object_replication_policies_operations.py +63 -85
  478. azure/mgmt/storage/v2021_06_01/operations/_operations.py +21 -23
  479. azure/mgmt/storage/v2021_06_01/operations/_private_endpoint_connections_operations.py +62 -85
  480. azure/mgmt/storage/v2021_06_01/operations/_private_link_resources_operations.py +18 -22
  481. azure/mgmt/storage/v2021_06_01/operations/_queue_operations.py +79 -112
  482. azure/mgmt/storage/v2021_06_01/operations/_queue_services_operations.py +47 -81
  483. azure/mgmt/storage/v2021_06_01/operations/_skus_operations.py +23 -25
  484. azure/mgmt/storage/v2021_06_01/operations/_storage_accounts_operations.py +266 -452
  485. azure/mgmt/storage/v2021_06_01/operations/_table_operations.py +66 -90
  486. azure/mgmt/storage/v2021_06_01/operations/_table_services_operations.py +47 -81
  487. azure/mgmt/storage/v2021_06_01/operations/_usages_operations.py +23 -27
  488. azure/mgmt/storage/v2021_08_01/_configuration.py +4 -11
  489. azure/mgmt/storage/v2021_08_01/_patch.py +1 -0
  490. azure/mgmt/storage/v2021_08_01/_storage_management_client.py +59 -25
  491. azure/mgmt/storage/v2021_08_01/_vendor.py +0 -14
  492. azure/mgmt/storage/v2021_08_01/_version.py +1 -1
  493. azure/mgmt/storage/v2021_08_01/aio/_configuration.py +4 -11
  494. azure/mgmt/storage/v2021_08_01/aio/_patch.py +1 -0
  495. azure/mgmt/storage/v2021_08_01/aio/_storage_management_client.py +61 -25
  496. azure/mgmt/storage/v2021_08_01/aio/operations/_blob_containers_operations.py +181 -315
  497. azure/mgmt/storage/v2021_08_01/aio/operations/_blob_inventory_policies_operations.py +53 -76
  498. azure/mgmt/storage/v2021_08_01/aio/operations/_blob_services_operations.py +45 -79
  499. azure/mgmt/storage/v2021_08_01/aio/operations/_deleted_accounts_operations.py +29 -36
  500. azure/mgmt/storage/v2021_08_01/aio/operations/_encryption_scopes_operations.py +58 -86
  501. azure/mgmt/storage/v2021_08_01/aio/operations/_file_services_operations.py +41 -75
  502. azure/mgmt/storage/v2021_08_01/aio/operations/_file_shares_operations.py +98 -151
  503. azure/mgmt/storage/v2021_08_01/aio/operations/_local_users_operations.py +71 -104
  504. azure/mgmt/storage/v2021_08_01/aio/operations/_management_policies_operations.py +39 -57
  505. azure/mgmt/storage/v2021_08_01/aio/operations/_object_replication_policies_operations.py +54 -76
  506. azure/mgmt/storage/v2021_08_01/aio/operations/_operations.py +20 -22
  507. azure/mgmt/storage/v2021_08_01/aio/operations/_private_endpoint_connections_operations.py +53 -76
  508. azure/mgmt/storage/v2021_08_01/aio/operations/_private_link_resources_operations.py +15 -19
  509. azure/mgmt/storage/v2021_08_01/aio/operations/_queue_operations.py +68 -101
  510. azure/mgmt/storage/v2021_08_01/aio/operations/_queue_services_operations.py +40 -74
  511. azure/mgmt/storage/v2021_08_01/aio/operations/_skus_operations.py +20 -22
  512. azure/mgmt/storage/v2021_08_01/aio/operations/_storage_accounts_operations.py +230 -416
  513. azure/mgmt/storage/v2021_08_01/aio/operations/_table_operations.py +55 -79
  514. azure/mgmt/storage/v2021_08_01/aio/operations/_table_services_operations.py +40 -74
  515. azure/mgmt/storage/v2021_08_01/aio/operations/_usages_operations.py +20 -24
  516. azure/mgmt/storage/v2021_08_01/models/_models_py3.py +68 -90
  517. azure/mgmt/storage/v2021_08_01/models/_storage_management_client_enums.py +2 -2
  518. azure/mgmt/storage/v2021_08_01/operations/_blob_containers_operations.py +211 -345
  519. azure/mgmt/storage/v2021_08_01/operations/_blob_inventory_policies_operations.py +62 -85
  520. azure/mgmt/storage/v2021_08_01/operations/_blob_services_operations.py +52 -86
  521. azure/mgmt/storage/v2021_08_01/operations/_deleted_accounts_operations.py +34 -41
  522. azure/mgmt/storage/v2021_08_01/operations/_encryption_scopes_operations.py +67 -95
  523. azure/mgmt/storage/v2021_08_01/operations/_file_services_operations.py +48 -82
  524. azure/mgmt/storage/v2021_08_01/operations/_file_shares_operations.py +113 -166
  525. azure/mgmt/storage/v2021_08_01/operations/_local_users_operations.py +84 -117
  526. azure/mgmt/storage/v2021_08_01/operations/_management_policies_operations.py +46 -64
  527. azure/mgmt/storage/v2021_08_01/operations/_object_replication_policies_operations.py +63 -85
  528. azure/mgmt/storage/v2021_08_01/operations/_operations.py +21 -23
  529. azure/mgmt/storage/v2021_08_01/operations/_private_endpoint_connections_operations.py +62 -85
  530. azure/mgmt/storage/v2021_08_01/operations/_private_link_resources_operations.py +18 -22
  531. azure/mgmt/storage/v2021_08_01/operations/_queue_operations.py +79 -112
  532. azure/mgmt/storage/v2021_08_01/operations/_queue_services_operations.py +47 -81
  533. azure/mgmt/storage/v2021_08_01/operations/_skus_operations.py +23 -25
  534. azure/mgmt/storage/v2021_08_01/operations/_storage_accounts_operations.py +266 -452
  535. azure/mgmt/storage/v2021_08_01/operations/_table_operations.py +66 -90
  536. azure/mgmt/storage/v2021_08_01/operations/_table_services_operations.py +47 -81
  537. azure/mgmt/storage/v2021_08_01/operations/_usages_operations.py +23 -27
  538. azure/mgmt/storage/v2021_09_01/_configuration.py +4 -11
  539. azure/mgmt/storage/v2021_09_01/_patch.py +1 -0
  540. azure/mgmt/storage/v2021_09_01/_storage_management_client.py +59 -25
  541. azure/mgmt/storage/v2021_09_01/_vendor.py +0 -14
  542. azure/mgmt/storage/v2021_09_01/_version.py +1 -1
  543. azure/mgmt/storage/v2021_09_01/aio/_configuration.py +4 -11
  544. azure/mgmt/storage/v2021_09_01/aio/_patch.py +1 -0
  545. azure/mgmt/storage/v2021_09_01/aio/_storage_management_client.py +61 -25
  546. azure/mgmt/storage/v2021_09_01/aio/operations/_blob_containers_operations.py +181 -315
  547. azure/mgmt/storage/v2021_09_01/aio/operations/_blob_inventory_policies_operations.py +53 -76
  548. azure/mgmt/storage/v2021_09_01/aio/operations/_blob_services_operations.py +45 -79
  549. azure/mgmt/storage/v2021_09_01/aio/operations/_deleted_accounts_operations.py +29 -36
  550. azure/mgmt/storage/v2021_09_01/aio/operations/_encryption_scopes_operations.py +58 -86
  551. azure/mgmt/storage/v2021_09_01/aio/operations/_file_services_operations.py +41 -75
  552. azure/mgmt/storage/v2021_09_01/aio/operations/_file_shares_operations.py +98 -151
  553. azure/mgmt/storage/v2021_09_01/aio/operations/_local_users_operations.py +71 -104
  554. azure/mgmt/storage/v2021_09_01/aio/operations/_management_policies_operations.py +39 -57
  555. azure/mgmt/storage/v2021_09_01/aio/operations/_object_replication_policies_operations.py +54 -76
  556. azure/mgmt/storage/v2021_09_01/aio/operations/_operations.py +20 -22
  557. azure/mgmt/storage/v2021_09_01/aio/operations/_private_endpoint_connections_operations.py +53 -76
  558. azure/mgmt/storage/v2021_09_01/aio/operations/_private_link_resources_operations.py +15 -19
  559. azure/mgmt/storage/v2021_09_01/aio/operations/_queue_operations.py +68 -101
  560. azure/mgmt/storage/v2021_09_01/aio/operations/_queue_services_operations.py +40 -74
  561. azure/mgmt/storage/v2021_09_01/aio/operations/_skus_operations.py +20 -22
  562. azure/mgmt/storage/v2021_09_01/aio/operations/_storage_accounts_operations.py +230 -416
  563. azure/mgmt/storage/v2021_09_01/aio/operations/_table_operations.py +70 -103
  564. azure/mgmt/storage/v2021_09_01/aio/operations/_table_services_operations.py +40 -74
  565. azure/mgmt/storage/v2021_09_01/aio/operations/_usages_operations.py +20 -24
  566. azure/mgmt/storage/v2021_09_01/models/_models_py3.py +70 -92
  567. azure/mgmt/storage/v2021_09_01/models/_storage_management_client_enums.py +2 -2
  568. azure/mgmt/storage/v2021_09_01/operations/_blob_containers_operations.py +211 -345
  569. azure/mgmt/storage/v2021_09_01/operations/_blob_inventory_policies_operations.py +62 -85
  570. azure/mgmt/storage/v2021_09_01/operations/_blob_services_operations.py +52 -86
  571. azure/mgmt/storage/v2021_09_01/operations/_deleted_accounts_operations.py +34 -41
  572. azure/mgmt/storage/v2021_09_01/operations/_encryption_scopes_operations.py +67 -95
  573. azure/mgmt/storage/v2021_09_01/operations/_file_services_operations.py +48 -82
  574. azure/mgmt/storage/v2021_09_01/operations/_file_shares_operations.py +113 -166
  575. azure/mgmt/storage/v2021_09_01/operations/_local_users_operations.py +84 -117
  576. azure/mgmt/storage/v2021_09_01/operations/_management_policies_operations.py +46 -64
  577. azure/mgmt/storage/v2021_09_01/operations/_object_replication_policies_operations.py +63 -85
  578. azure/mgmt/storage/v2021_09_01/operations/_operations.py +21 -23
  579. azure/mgmt/storage/v2021_09_01/operations/_private_endpoint_connections_operations.py +62 -85
  580. azure/mgmt/storage/v2021_09_01/operations/_private_link_resources_operations.py +18 -22
  581. azure/mgmt/storage/v2021_09_01/operations/_queue_operations.py +79 -112
  582. azure/mgmt/storage/v2021_09_01/operations/_queue_services_operations.py +47 -81
  583. azure/mgmt/storage/v2021_09_01/operations/_skus_operations.py +23 -25
  584. azure/mgmt/storage/v2021_09_01/operations/_storage_accounts_operations.py +266 -452
  585. azure/mgmt/storage/v2021_09_01/operations/_table_operations.py +81 -114
  586. azure/mgmt/storage/v2021_09_01/operations/_table_services_operations.py +47 -81
  587. azure/mgmt/storage/v2021_09_01/operations/_usages_operations.py +23 -27
  588. azure/mgmt/storage/v2022_05_01/_configuration.py +4 -11
  589. azure/mgmt/storage/v2022_05_01/_storage_management_client.py +59 -25
  590. azure/mgmt/storage/v2022_05_01/_vendor.py +0 -14
  591. azure/mgmt/storage/v2022_05_01/_version.py +1 -1
  592. azure/mgmt/storage/v2022_05_01/aio/_configuration.py +4 -11
  593. azure/mgmt/storage/v2022_05_01/aio/_storage_management_client.py +61 -25
  594. azure/mgmt/storage/v2022_05_01/aio/operations/_blob_containers_operations.py +181 -315
  595. azure/mgmt/storage/v2022_05_01/aio/operations/_blob_inventory_policies_operations.py +53 -76
  596. azure/mgmt/storage/v2022_05_01/aio/operations/_blob_services_operations.py +45 -79
  597. azure/mgmt/storage/v2022_05_01/aio/operations/_deleted_accounts_operations.py +29 -36
  598. azure/mgmt/storage/v2022_05_01/aio/operations/_encryption_scopes_operations.py +58 -86
  599. azure/mgmt/storage/v2022_05_01/aio/operations/_file_services_operations.py +41 -75
  600. azure/mgmt/storage/v2022_05_01/aio/operations/_file_shares_operations.py +98 -151
  601. azure/mgmt/storage/v2022_05_01/aio/operations/_local_users_operations.py +71 -104
  602. azure/mgmt/storage/v2022_05_01/aio/operations/_management_policies_operations.py +39 -57
  603. azure/mgmt/storage/v2022_05_01/aio/operations/_object_replication_policies_operations.py +54 -76
  604. azure/mgmt/storage/v2022_05_01/aio/operations/_operations.py +20 -22
  605. azure/mgmt/storage/v2022_05_01/aio/operations/_private_endpoint_connections_operations.py +53 -76
  606. azure/mgmt/storage/v2022_05_01/aio/operations/_private_link_resources_operations.py +15 -19
  607. azure/mgmt/storage/v2022_05_01/aio/operations/_queue_operations.py +68 -101
  608. azure/mgmt/storage/v2022_05_01/aio/operations/_queue_services_operations.py +40 -74
  609. azure/mgmt/storage/v2022_05_01/aio/operations/_skus_operations.py +20 -22
  610. azure/mgmt/storage/v2022_05_01/aio/operations/_storage_accounts_operations.py +230 -416
  611. azure/mgmt/storage/v2022_05_01/aio/operations/_table_operations.py +70 -103
  612. azure/mgmt/storage/v2022_05_01/aio/operations/_table_services_operations.py +40 -74
  613. azure/mgmt/storage/v2022_05_01/aio/operations/_usages_operations.py +20 -24
  614. azure/mgmt/storage/v2022_05_01/models/_models_py3.py +69 -91
  615. azure/mgmt/storage/v2022_05_01/models/_storage_management_client_enums.py +2 -2
  616. azure/mgmt/storage/v2022_05_01/operations/_blob_containers_operations.py +211 -345
  617. azure/mgmt/storage/v2022_05_01/operations/_blob_inventory_policies_operations.py +62 -85
  618. azure/mgmt/storage/v2022_05_01/operations/_blob_services_operations.py +52 -86
  619. azure/mgmt/storage/v2022_05_01/operations/_deleted_accounts_operations.py +34 -41
  620. azure/mgmt/storage/v2022_05_01/operations/_encryption_scopes_operations.py +67 -95
  621. azure/mgmt/storage/v2022_05_01/operations/_file_services_operations.py +48 -82
  622. azure/mgmt/storage/v2022_05_01/operations/_file_shares_operations.py +113 -166
  623. azure/mgmt/storage/v2022_05_01/operations/_local_users_operations.py +84 -117
  624. azure/mgmt/storage/v2022_05_01/operations/_management_policies_operations.py +46 -64
  625. azure/mgmt/storage/v2022_05_01/operations/_object_replication_policies_operations.py +63 -85
  626. azure/mgmt/storage/v2022_05_01/operations/_operations.py +21 -23
  627. azure/mgmt/storage/v2022_05_01/operations/_private_endpoint_connections_operations.py +62 -85
  628. azure/mgmt/storage/v2022_05_01/operations/_private_link_resources_operations.py +18 -22
  629. azure/mgmt/storage/v2022_05_01/operations/_queue_operations.py +79 -112
  630. azure/mgmt/storage/v2022_05_01/operations/_queue_services_operations.py +47 -81
  631. azure/mgmt/storage/v2022_05_01/operations/_skus_operations.py +23 -25
  632. azure/mgmt/storage/v2022_05_01/operations/_storage_accounts_operations.py +266 -452
  633. azure/mgmt/storage/v2022_05_01/operations/_table_operations.py +81 -114
  634. azure/mgmt/storage/v2022_05_01/operations/_table_services_operations.py +47 -81
  635. azure/mgmt/storage/v2022_05_01/operations/_usages_operations.py +23 -27
  636. azure/mgmt/storage/v2022_09_01/_configuration.py +4 -11
  637. azure/mgmt/storage/v2022_09_01/_storage_management_client.py +59 -25
  638. azure/mgmt/storage/v2022_09_01/_vendor.py +0 -14
  639. azure/mgmt/storage/v2022_09_01/_version.py +1 -1
  640. azure/mgmt/storage/v2022_09_01/aio/_configuration.py +4 -11
  641. azure/mgmt/storage/v2022_09_01/aio/_storage_management_client.py +61 -25
  642. azure/mgmt/storage/v2022_09_01/aio/operations/_blob_containers_operations.py +181 -315
  643. azure/mgmt/storage/v2022_09_01/aio/operations/_blob_inventory_policies_operations.py +53 -76
  644. azure/mgmt/storage/v2022_09_01/aio/operations/_blob_services_operations.py +45 -79
  645. azure/mgmt/storage/v2022_09_01/aio/operations/_deleted_accounts_operations.py +29 -36
  646. azure/mgmt/storage/v2022_09_01/aio/operations/_encryption_scopes_operations.py +58 -86
  647. azure/mgmt/storage/v2022_09_01/aio/operations/_file_services_operations.py +41 -75
  648. azure/mgmt/storage/v2022_09_01/aio/operations/_file_shares_operations.py +98 -151
  649. azure/mgmt/storage/v2022_09_01/aio/operations/_local_users_operations.py +71 -104
  650. azure/mgmt/storage/v2022_09_01/aio/operations/_management_policies_operations.py +39 -57
  651. azure/mgmt/storage/v2022_09_01/aio/operations/_object_replication_policies_operations.py +54 -76
  652. azure/mgmt/storage/v2022_09_01/aio/operations/_operations.py +20 -22
  653. azure/mgmt/storage/v2022_09_01/aio/operations/_private_endpoint_connections_operations.py +53 -76
  654. azure/mgmt/storage/v2022_09_01/aio/operations/_private_link_resources_operations.py +15 -19
  655. azure/mgmt/storage/v2022_09_01/aio/operations/_queue_operations.py +68 -101
  656. azure/mgmt/storage/v2022_09_01/aio/operations/_queue_services_operations.py +40 -74
  657. azure/mgmt/storage/v2022_09_01/aio/operations/_skus_operations.py +20 -22
  658. azure/mgmt/storage/v2022_09_01/aio/operations/_storage_accounts_operations.py +230 -416
  659. azure/mgmt/storage/v2022_09_01/aio/operations/_table_operations.py +70 -103
  660. azure/mgmt/storage/v2022_09_01/aio/operations/_table_services_operations.py +40 -74
  661. azure/mgmt/storage/v2022_09_01/aio/operations/_usages_operations.py +20 -24
  662. azure/mgmt/storage/v2022_09_01/models/_models_py3.py +69 -91
  663. azure/mgmt/storage/v2022_09_01/models/_storage_management_client_enums.py +2 -2
  664. azure/mgmt/storage/v2022_09_01/operations/_blob_containers_operations.py +211 -345
  665. azure/mgmt/storage/v2022_09_01/operations/_blob_inventory_policies_operations.py +62 -85
  666. azure/mgmt/storage/v2022_09_01/operations/_blob_services_operations.py +52 -86
  667. azure/mgmt/storage/v2022_09_01/operations/_deleted_accounts_operations.py +34 -41
  668. azure/mgmt/storage/v2022_09_01/operations/_encryption_scopes_operations.py +67 -95
  669. azure/mgmt/storage/v2022_09_01/operations/_file_services_operations.py +48 -82
  670. azure/mgmt/storage/v2022_09_01/operations/_file_shares_operations.py +113 -166
  671. azure/mgmt/storage/v2022_09_01/operations/_local_users_operations.py +84 -117
  672. azure/mgmt/storage/v2022_09_01/operations/_management_policies_operations.py +46 -64
  673. azure/mgmt/storage/v2022_09_01/operations/_object_replication_policies_operations.py +63 -85
  674. azure/mgmt/storage/v2022_09_01/operations/_operations.py +21 -23
  675. azure/mgmt/storage/v2022_09_01/operations/_private_endpoint_connections_operations.py +62 -85
  676. azure/mgmt/storage/v2022_09_01/operations/_private_link_resources_operations.py +18 -22
  677. azure/mgmt/storage/v2022_09_01/operations/_queue_operations.py +79 -112
  678. azure/mgmt/storage/v2022_09_01/operations/_queue_services_operations.py +47 -81
  679. azure/mgmt/storage/v2022_09_01/operations/_skus_operations.py +23 -25
  680. azure/mgmt/storage/v2022_09_01/operations/_storage_accounts_operations.py +266 -452
  681. azure/mgmt/storage/v2022_09_01/operations/_table_operations.py +81 -114
  682. azure/mgmt/storage/v2022_09_01/operations/_table_services_operations.py +47 -81
  683. azure/mgmt/storage/v2022_09_01/operations/_usages_operations.py +23 -27
  684. azure/mgmt/storage/v2023_01_01/__init__.py +26 -0
  685. azure/mgmt/storage/v2023_01_01/_configuration.py +65 -0
  686. azure/mgmt/storage/v2023_01_01/_patch.py +20 -0
  687. azure/mgmt/storage/v2023_01_01/_storage_management_client.py +225 -0
  688. azure/mgmt/storage/v2023_01_01/_vendor.py +16 -0
  689. azure/mgmt/storage/v2023_01_01/_version.py +9 -0
  690. azure/mgmt/storage/v2023_01_01/aio/__init__.py +23 -0
  691. azure/mgmt/storage/v2023_01_01/aio/_configuration.py +65 -0
  692. azure/mgmt/storage/v2023_01_01/aio/_patch.py +20 -0
  693. azure/mgmt/storage/v2023_01_01/aio/_storage_management_client.py +230 -0
  694. azure/mgmt/storage/v2023_01_01/aio/operations/__init__.py +57 -0
  695. azure/mgmt/storage/v2023_01_01/aio/operations/_blob_containers_operations.py +1838 -0
  696. azure/mgmt/storage/v2023_01_01/aio/operations/_blob_inventory_policies_operations.py +442 -0
  697. azure/mgmt/storage/v2023_01_01/aio/operations/_blob_services_operations.py +362 -0
  698. azure/mgmt/storage/v2023_01_01/aio/operations/_deleted_accounts_operations.py +194 -0
  699. azure/mgmt/storage/v2023_01_01/aio/operations/_encryption_scopes_operations.py +568 -0
  700. azure/mgmt/storage/v2023_01_01/aio/operations/_file_services_operations.py +328 -0
  701. azure/mgmt/storage/v2023_01_01/aio/operations/_file_shares_operations.py +1003 -0
  702. azure/mgmt/storage/v2023_01_01/aio/operations/_local_users_operations.py +560 -0
  703. azure/mgmt/storage/v2023_01_01/aio/operations/_management_policies_operations.py +349 -0
  704. azure/mgmt/storage/v2023_01_01/aio/operations/_object_replication_policies_operations.py +446 -0
  705. azure/mgmt/storage/v2023_01_01/aio/operations/_operations.py +135 -0
  706. azure/mgmt/storage/v2023_01_01/aio/operations/_patch.py +20 -0
  707. azure/mgmt/storage/v2023_01_01/aio/operations/_private_endpoint_connections_operations.py +432 -0
  708. azure/mgmt/storage/v2023_01_01/aio/operations/_private_link_resources_operations.py +117 -0
  709. azure/mgmt/storage/v2023_01_01/aio/operations/_queue_operations.py +608 -0
  710. azure/mgmt/storage/v2023_01_01/aio/operations/_queue_services_operations.py +328 -0
  711. azure/mgmt/storage/v2023_01_01/aio/operations/_skus_operations.py +136 -0
  712. azure/mgmt/storage/v2023_01_01/aio/operations/_storage_accounts_operations.py +2187 -0
  713. azure/mgmt/storage/v2023_01_01/aio/operations/_table_operations.py +588 -0
  714. azure/mgmt/storage/v2023_01_01/aio/operations/_table_services_operations.py +328 -0
  715. azure/mgmt/storage/v2023_01_01/aio/operations/_usages_operations.py +139 -0
  716. azure/mgmt/storage/v2023_01_01/models/__init__.py +461 -0
  717. azure/mgmt/storage/v2023_01_01/models/_models_py3.py +8338 -0
  718. azure/mgmt/storage/v2023_01_01/models/_patch.py +20 -0
  719. azure/mgmt/storage/v2023_01_01/models/_storage_management_client_enums.py +626 -0
  720. azure/mgmt/storage/v2023_01_01/operations/__init__.py +57 -0
  721. azure/mgmt/storage/v2023_01_01/operations/_blob_containers_operations.py +2398 -0
  722. azure/mgmt/storage/v2023_01_01/operations/_blob_inventory_policies_operations.py +595 -0
  723. azure/mgmt/storage/v2023_01_01/operations/_blob_services_operations.py +470 -0
  724. azure/mgmt/storage/v2023_01_01/operations/_deleted_accounts_operations.py +250 -0
  725. azure/mgmt/storage/v2023_01_01/operations/_encryption_scopes_operations.py +732 -0
  726. azure/mgmt/storage/v2023_01_01/operations/_file_services_operations.py +437 -0
  727. azure/mgmt/storage/v2023_01_01/operations/_file_shares_operations.py +1310 -0
  728. azure/mgmt/storage/v2023_01_01/operations/_local_users_operations.py +770 -0
  729. azure/mgmt/storage/v2023_01_01/operations/_management_policies_operations.py +465 -0
  730. azure/mgmt/storage/v2023_01_01/operations/_object_replication_policies_operations.py +593 -0
  731. azure/mgmt/storage/v2023_01_01/operations/_operations.py +156 -0
  732. azure/mgmt/storage/v2023_01_01/operations/_patch.py +20 -0
  733. azure/mgmt/storage/v2023_01_01/operations/_private_endpoint_connections_operations.py +591 -0
  734. azure/mgmt/storage/v2023_01_01/operations/_private_link_resources_operations.py +155 -0
  735. azure/mgmt/storage/v2023_01_01/operations/_queue_operations.py +824 -0
  736. azure/mgmt/storage/v2023_01_01/operations/_queue_services_operations.py +437 -0
  737. azure/mgmt/storage/v2023_01_01/operations/_skus_operations.py +162 -0
  738. azure/mgmt/storage/v2023_01_01/operations/_storage_accounts_operations.py +2796 -0
  739. azure/mgmt/storage/v2023_01_01/operations/_table_operations.py +775 -0
  740. azure/mgmt/storage/v2023_01_01/operations/_table_services_operations.py +437 -0
  741. azure/mgmt/storage/v2023_01_01/operations/_usages_operations.py +169 -0
  742. azure/mgmt/storage/v2023_05_01/__init__.py +26 -0
  743. azure/mgmt/storage/v2023_05_01/_configuration.py +65 -0
  744. azure/mgmt/storage/v2023_05_01/_patch.py +20 -0
  745. azure/mgmt/storage/v2023_05_01/_storage_management_client.py +256 -0
  746. azure/mgmt/storage/v2023_05_01/_vendor.py +16 -0
  747. azure/mgmt/storage/v2023_05_01/_version.py +9 -0
  748. azure/mgmt/storage/v2023_05_01/aio/__init__.py +23 -0
  749. azure/mgmt/storage/v2023_05_01/aio/_configuration.py +65 -0
  750. azure/mgmt/storage/v2023_05_01/aio/_patch.py +20 -0
  751. azure/mgmt/storage/v2023_05_01/aio/_storage_management_client.py +261 -0
  752. azure/mgmt/storage/v2023_05_01/aio/operations/__init__.py +65 -0
  753. azure/mgmt/storage/v2023_05_01/aio/operations/_blob_containers_operations.py +1838 -0
  754. azure/mgmt/storage/v2023_05_01/aio/operations/_blob_inventory_policies_operations.py +442 -0
  755. azure/mgmt/storage/v2023_05_01/aio/operations/_blob_services_operations.py +362 -0
  756. azure/mgmt/storage/v2023_05_01/aio/operations/_deleted_accounts_operations.py +194 -0
  757. azure/mgmt/storage/v2023_05_01/aio/operations/_encryption_scopes_operations.py +568 -0
  758. azure/mgmt/storage/v2023_05_01/aio/operations/_file_services_operations.py +328 -0
  759. azure/mgmt/storage/v2023_05_01/aio/operations/_file_shares_operations.py +1003 -0
  760. azure/mgmt/storage/v2023_05_01/aio/operations/_local_users_operations.py +583 -0
  761. azure/mgmt/storage/v2023_05_01/aio/operations/_management_policies_operations.py +349 -0
  762. azure/mgmt/storage/v2023_05_01/aio/operations/_network_security_perimeter_configurations_operations.py +342 -0
  763. azure/mgmt/storage/v2023_05_01/aio/operations/_object_replication_policies_operations.py +446 -0
  764. azure/mgmt/storage/v2023_05_01/aio/operations/_operations.py +135 -0
  765. azure/mgmt/storage/v2023_05_01/aio/operations/_patch.py +20 -0
  766. azure/mgmt/storage/v2023_05_01/aio/operations/_private_endpoint_connections_operations.py +432 -0
  767. azure/mgmt/storage/v2023_05_01/aio/operations/_private_link_resources_operations.py +117 -0
  768. azure/mgmt/storage/v2023_05_01/aio/operations/_queue_operations.py +608 -0
  769. azure/mgmt/storage/v2023_05_01/aio/operations/_queue_services_operations.py +328 -0
  770. azure/mgmt/storage/v2023_05_01/aio/operations/_skus_operations.py +136 -0
  771. azure/mgmt/storage/v2023_05_01/aio/operations/_storage_accounts_operations.py +2187 -0
  772. azure/mgmt/storage/v2023_05_01/aio/operations/_storage_task_assignment_instances_report_operations.py +170 -0
  773. azure/mgmt/storage/v2023_05_01/aio/operations/_storage_task_assignments_instances_report_operations.py +164 -0
  774. azure/mgmt/storage/v2023_05_01/aio/operations/_storage_task_assignments_operations.py +802 -0
  775. azure/mgmt/storage/v2023_05_01/aio/operations/_table_operations.py +588 -0
  776. azure/mgmt/storage/v2023_05_01/aio/operations/_table_services_operations.py +328 -0
  777. azure/mgmt/storage/v2023_05_01/aio/operations/_usages_operations.py +139 -0
  778. azure/mgmt/storage/v2023_05_01/models/__init__.py +537 -0
  779. azure/mgmt/storage/v2023_05_01/models/_models_py3.py +9703 -0
  780. azure/mgmt/storage/v2023_05_01/models/_patch.py +20 -0
  781. azure/mgmt/storage/v2023_05_01/models/_storage_management_client_enums.py +706 -0
  782. azure/mgmt/storage/v2023_05_01/operations/__init__.py +65 -0
  783. azure/mgmt/storage/v2023_05_01/operations/_blob_containers_operations.py +2398 -0
  784. azure/mgmt/storage/v2023_05_01/operations/_blob_inventory_policies_operations.py +595 -0
  785. azure/mgmt/storage/v2023_05_01/operations/_blob_services_operations.py +470 -0
  786. azure/mgmt/storage/v2023_05_01/operations/_deleted_accounts_operations.py +250 -0
  787. azure/mgmt/storage/v2023_05_01/operations/_encryption_scopes_operations.py +732 -0
  788. azure/mgmt/storage/v2023_05_01/operations/_file_services_operations.py +437 -0
  789. azure/mgmt/storage/v2023_05_01/operations/_file_shares_operations.py +1310 -0
  790. azure/mgmt/storage/v2023_05_01/operations/_local_users_operations.py +808 -0
  791. azure/mgmt/storage/v2023_05_01/operations/_management_policies_operations.py +465 -0
  792. azure/mgmt/storage/v2023_05_01/operations/_network_security_perimeter_configurations_operations.py +463 -0
  793. azure/mgmt/storage/v2023_05_01/operations/_object_replication_policies_operations.py +593 -0
  794. azure/mgmt/storage/v2023_05_01/operations/_operations.py +156 -0
  795. azure/mgmt/storage/v2023_05_01/operations/_patch.py +20 -0
  796. azure/mgmt/storage/v2023_05_01/operations/_private_endpoint_connections_operations.py +591 -0
  797. azure/mgmt/storage/v2023_05_01/operations/_private_link_resources_operations.py +155 -0
  798. azure/mgmt/storage/v2023_05_01/operations/_queue_operations.py +824 -0
  799. azure/mgmt/storage/v2023_05_01/operations/_queue_services_operations.py +437 -0
  800. azure/mgmt/storage/v2023_05_01/operations/_skus_operations.py +162 -0
  801. azure/mgmt/storage/v2023_05_01/operations/_storage_accounts_operations.py +2796 -0
  802. azure/mgmt/storage/v2023_05_01/operations/_storage_task_assignment_instances_report_operations.py +227 -0
  803. azure/mgmt/storage/v2023_05_01/operations/_storage_task_assignments_instances_report_operations.py +212 -0
  804. azure/mgmt/storage/v2023_05_01/operations/_storage_task_assignments_operations.py +1018 -0
  805. azure/mgmt/storage/v2023_05_01/operations/_table_operations.py +775 -0
  806. azure/mgmt/storage/v2023_05_01/operations/_table_services_operations.py +437 -0
  807. azure/mgmt/storage/v2023_05_01/operations/_usages_operations.py +169 -0
  808. {azure_mgmt_storage-21.1.0b1.dist-info → azure_mgmt_storage-21.2.1.dist-info}/METADATA +52 -13
  809. azure_mgmt_storage-21.2.1.dist-info/RECORD +979 -0
  810. {azure_mgmt_storage-21.1.0b1.dist-info → azure_mgmt_storage-21.2.1.dist-info}/WHEEL +1 -1
  811. azure_mgmt_storage-21.1.0b1.dist-info/RECORD +0 -855
  812. {azure_mgmt_storage-21.1.0b1.dist-info → azure_mgmt_storage-21.2.1.dist-info}/LICENSE +0 -0
  813. {azure_mgmt_storage-21.1.0b1.dist-info → azure_mgmt_storage-21.2.1.dist-info}/top_level.txt +0 -0
@@ -1,4 +1,4 @@
1
- # pylint: disable=too-many-lines
1
+ # pylint: disable=too-many-lines,too-many-statements
2
2
  # coding=utf-8
3
3
  # --------------------------------------------------------------------------
4
4
  # Copyright (c) Microsoft Corporation. All rights reserved.
@@ -6,8 +6,9 @@
6
6
  # Code generated by Microsoft (R) AutoRest Code Generator.
7
7
  # Changes may cause incorrect behavior and will be lost if the code is regenerated.
8
8
  # --------------------------------------------------------------------------
9
+ from io import IOBase
9
10
  import sys
10
- from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload
11
+ from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, Type, TypeVar, Union, cast, overload
11
12
  import urllib.parse
12
13
 
13
14
  from azure.core.async_paging import AsyncItemPaged, AsyncList
@@ -48,10 +49,10 @@ from ...operations._storage_accounts_operations import (
48
49
  build_update_request,
49
50
  )
50
51
 
51
- if sys.version_info >= (3, 8):
52
- from typing import Literal # pylint: disable=no-name-in-module, ungrouped-imports
52
+ if sys.version_info >= (3, 9):
53
+ from collections.abc import MutableMapping
53
54
  else:
54
- from typing_extensions import Literal # type: ignore # pylint: disable=ungrouped-imports
55
+ from typing import MutableMapping # type: ignore # pylint: disable=ungrouped-imports
55
56
  T = TypeVar("T")
56
57
  ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]]
57
58
 
@@ -74,6 +75,7 @@ class StorageAccountsOperations:
74
75
  self._config = input_args.pop(0) if input_args else kwargs.pop("config")
75
76
  self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer")
76
77
  self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer")
78
+ self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version")
77
79
 
78
80
  @overload
79
81
  async def check_name_availability(
@@ -93,7 +95,6 @@ class StorageAccountsOperations:
93
95
  :keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
94
96
  Default value is "application/json".
95
97
  :paramtype content_type: str
96
- :keyword callable cls: A custom type or function that will be passed the direct response
97
98
  :return: CheckNameAvailabilityResult or the result of cls(response)
98
99
  :rtype: ~azure.mgmt.storage.v2018_03_01_preview.models.CheckNameAvailabilityResult
99
100
  :raises ~azure.core.exceptions.HttpResponseError:
@@ -101,18 +102,17 @@ class StorageAccountsOperations:
101
102
 
102
103
  @overload
103
104
  async def check_name_availability(
104
- self, account_name: IO, *, content_type: str = "application/json", **kwargs: Any
105
+ self, account_name: IO[bytes], *, content_type: str = "application/json", **kwargs: Any
105
106
  ) -> _models.CheckNameAvailabilityResult:
106
107
  """Checks that the storage account name is valid and is not already in use.
107
108
 
108
109
  :param account_name: The name of the storage account within the specified resource group.
109
110
  Storage account names must be between 3 and 24 characters in length and use numbers and
110
111
  lower-case letters only. Required.
111
- :type account_name: IO
112
+ :type account_name: IO[bytes]
112
113
  :keyword content_type: Body Parameter content-type. Content type parameter for binary body.
113
114
  Default value is "application/json".
114
115
  :paramtype content_type: str
115
- :keyword callable cls: A custom type or function that will be passed the direct response
116
116
  :return: CheckNameAvailabilityResult or the result of cls(response)
117
117
  :rtype: ~azure.mgmt.storage.v2018_03_01_preview.models.CheckNameAvailabilityResult
118
118
  :raises ~azure.core.exceptions.HttpResponseError:
@@ -120,26 +120,22 @@ class StorageAccountsOperations:
120
120
 
121
121
  @distributed_trace_async
122
122
  async def check_name_availability(
123
- self, account_name: Union[_models.StorageAccountCheckNameAvailabilityParameters, IO], **kwargs: Any
123
+ self, account_name: Union[_models.StorageAccountCheckNameAvailabilityParameters, IO[bytes]], **kwargs: Any
124
124
  ) -> _models.CheckNameAvailabilityResult:
125
125
  """Checks that the storage account name is valid and is not already in use.
126
126
 
127
127
  :param account_name: The name of the storage account within the specified resource group.
128
128
  Storage account names must be between 3 and 24 characters in length and use numbers and
129
- lower-case letters only. Is either a StorageAccountCheckNameAvailabilityParameters type or a IO
130
- type. Required.
129
+ lower-case letters only. Is either a StorageAccountCheckNameAvailabilityParameters type or a
130
+ IO[bytes] type. Required.
131
131
  :type account_name:
132
132
  ~azure.mgmt.storage.v2018_03_01_preview.models.StorageAccountCheckNameAvailabilityParameters or
133
- IO
134
- :keyword content_type: Body Parameter content-type. Known values are: 'application/json'.
135
- Default value is None.
136
- :paramtype content_type: str
137
- :keyword callable cls: A custom type or function that will be passed the direct response
133
+ IO[bytes]
138
134
  :return: CheckNameAvailabilityResult or the result of cls(response)
139
135
  :rtype: ~azure.mgmt.storage.v2018_03_01_preview.models.CheckNameAvailabilityResult
140
136
  :raises ~azure.core.exceptions.HttpResponseError:
141
137
  """
142
- error_map = {
138
+ error_map: MutableMapping[int, Type[HttpResponseError]] = {
143
139
  401: ClientAuthenticationError,
144
140
  404: ResourceNotFoundError,
145
141
  409: ResourceExistsError,
@@ -150,8 +146,8 @@ class StorageAccountsOperations:
150
146
  _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
151
147
  _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
152
148
 
153
- api_version: Literal["2018-03-01-preview"] = kwargs.pop(
154
- "api_version", _params.pop("api-version", "2018-03-01-preview")
149
+ api_version: str = kwargs.pop(
150
+ "api_version", _params.pop("api-version", self._api_version or "2018-03-01-preview")
155
151
  )
156
152
  content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
157
153
  cls: ClsType[_models.CheckNameAvailabilityResult] = kwargs.pop("cls", None)
@@ -159,26 +155,26 @@ class StorageAccountsOperations:
159
155
  content_type = content_type or "application/json"
160
156
  _json = None
161
157
  _content = None
162
- if isinstance(account_name, (IO, bytes)):
158
+ if isinstance(account_name, (IOBase, bytes)):
163
159
  _content = account_name
164
160
  else:
165
161
  _json = self._serialize.body(account_name, "StorageAccountCheckNameAvailabilityParameters")
166
162
 
167
- request = build_check_name_availability_request(
163
+ _request = build_check_name_availability_request(
168
164
  subscription_id=self._config.subscription_id,
169
165
  api_version=api_version,
170
166
  content_type=content_type,
171
167
  json=_json,
172
168
  content=_content,
173
- template_url=self.check_name_availability.metadata["url"],
174
169
  headers=_headers,
175
170
  params=_params,
176
171
  )
177
- request = _convert_request(request)
178
- request.url = self._client.format_url(request.url)
172
+ _request = _convert_request(_request)
173
+ _request.url = self._client.format_url(_request.url)
179
174
 
175
+ _stream = False
180
176
  pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access
181
- request, stream=False, **kwargs
177
+ _request, stream=_stream, **kwargs
182
178
  )
183
179
 
184
180
  response = pipeline_response.http_response
@@ -190,22 +186,18 @@ class StorageAccountsOperations:
190
186
  deserialized = self._deserialize("CheckNameAvailabilityResult", pipeline_response)
191
187
 
192
188
  if cls:
193
- return cls(pipeline_response, deserialized, {})
194
-
195
- return deserialized
189
+ return cls(pipeline_response, deserialized, {}) # type: ignore
196
190
 
197
- check_name_availability.metadata = {
198
- "url": "/subscriptions/{subscriptionId}/providers/Microsoft.Storage/checkNameAvailability"
199
- }
191
+ return deserialized # type: ignore
200
192
 
201
193
  async def _create_initial(
202
194
  self,
203
195
  resource_group_name: str,
204
196
  account_name: str,
205
- parameters: Union[_models.StorageAccountCreateParameters, IO],
197
+ parameters: Union[_models.StorageAccountCreateParameters, IO[bytes]],
206
198
  **kwargs: Any
207
199
  ) -> Optional[_models.StorageAccount]:
208
- error_map = {
200
+ error_map: MutableMapping[int, Type[HttpResponseError]] = {
209
201
  401: ClientAuthenticationError,
210
202
  404: ResourceNotFoundError,
211
203
  409: ResourceExistsError,
@@ -216,8 +208,8 @@ class StorageAccountsOperations:
216
208
  _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
217
209
  _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
218
210
 
219
- api_version: Literal["2018-03-01-preview"] = kwargs.pop(
220
- "api_version", _params.pop("api-version", "2018-03-01-preview")
211
+ api_version: str = kwargs.pop(
212
+ "api_version", _params.pop("api-version", self._api_version or "2018-03-01-preview")
221
213
  )
222
214
  content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
223
215
  cls: ClsType[Optional[_models.StorageAccount]] = kwargs.pop("cls", None)
@@ -225,12 +217,12 @@ class StorageAccountsOperations:
225
217
  content_type = content_type or "application/json"
226
218
  _json = None
227
219
  _content = None
228
- if isinstance(parameters, (IO, bytes)):
220
+ if isinstance(parameters, (IOBase, bytes)):
229
221
  _content = parameters
230
222
  else:
231
223
  _json = self._serialize.body(parameters, "StorageAccountCreateParameters")
232
224
 
233
- request = build_create_request(
225
+ _request = build_create_request(
234
226
  resource_group_name=resource_group_name,
235
227
  account_name=account_name,
236
228
  subscription_id=self._config.subscription_id,
@@ -238,15 +230,15 @@ class StorageAccountsOperations:
238
230
  content_type=content_type,
239
231
  json=_json,
240
232
  content=_content,
241
- template_url=self._create_initial.metadata["url"],
242
233
  headers=_headers,
243
234
  params=_params,
244
235
  )
245
- request = _convert_request(request)
246
- request.url = self._client.format_url(request.url)
236
+ _request = _convert_request(_request)
237
+ _request.url = self._client.format_url(_request.url)
247
238
 
239
+ _stream = False
248
240
  pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access
249
- request, stream=False, **kwargs
241
+ _request, stream=_stream, **kwargs
250
242
  )
251
243
 
252
244
  response = pipeline_response.http_response
@@ -260,13 +252,9 @@ class StorageAccountsOperations:
260
252
  deserialized = self._deserialize("StorageAccount", pipeline_response)
261
253
 
262
254
  if cls:
263
- return cls(pipeline_response, deserialized, {})
264
-
265
- return deserialized
255
+ return cls(pipeline_response, deserialized, {}) # type: ignore
266
256
 
267
- _create_initial.metadata = {
268
- "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}"
269
- }
257
+ return deserialized # type: ignore
270
258
 
271
259
  @overload
272
260
  async def begin_create(
@@ -295,14 +283,6 @@ class StorageAccountsOperations:
295
283
  :keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
296
284
  Default value is "application/json".
297
285
  :paramtype content_type: str
298
- :keyword callable cls: A custom type or function that will be passed the direct response
299
- :keyword str continuation_token: A continuation token to restart a poller from a saved state.
300
- :keyword polling: By default, your polling method will be AsyncARMPolling. Pass in False for
301
- this operation to not poll, or pass in your own initialized polling object for a personal
302
- polling strategy.
303
- :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod
304
- :keyword int polling_interval: Default waiting time between two polls for LRO operations if no
305
- Retry-After header is present.
306
286
  :return: An instance of AsyncLROPoller that returns either StorageAccount or the result of
307
287
  cls(response)
308
288
  :rtype:
@@ -315,7 +295,7 @@ class StorageAccountsOperations:
315
295
  self,
316
296
  resource_group_name: str,
317
297
  account_name: str,
318
- parameters: IO,
298
+ parameters: IO[bytes],
319
299
  *,
320
300
  content_type: str = "application/json",
321
301
  **kwargs: Any
@@ -333,18 +313,10 @@ class StorageAccountsOperations:
333
313
  lower-case letters only. Required.
334
314
  :type account_name: str
335
315
  :param parameters: The parameters to provide for the created account. Required.
336
- :type parameters: IO
316
+ :type parameters: IO[bytes]
337
317
  :keyword content_type: Body Parameter content-type. Content type parameter for binary body.
338
318
  Default value is "application/json".
339
319
  :paramtype content_type: str
340
- :keyword callable cls: A custom type or function that will be passed the direct response
341
- :keyword str continuation_token: A continuation token to restart a poller from a saved state.
342
- :keyword polling: By default, your polling method will be AsyncARMPolling. Pass in False for
343
- this operation to not poll, or pass in your own initialized polling object for a personal
344
- polling strategy.
345
- :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod
346
- :keyword int polling_interval: Default waiting time between two polls for LRO operations if no
347
- Retry-After header is present.
348
320
  :return: An instance of AsyncLROPoller that returns either StorageAccount or the result of
349
321
  cls(response)
350
322
  :rtype:
@@ -357,7 +329,7 @@ class StorageAccountsOperations:
357
329
  self,
358
330
  resource_group_name: str,
359
331
  account_name: str,
360
- parameters: Union[_models.StorageAccountCreateParameters, IO],
332
+ parameters: Union[_models.StorageAccountCreateParameters, IO[bytes]],
361
333
  **kwargs: Any
362
334
  ) -> AsyncLROPoller[_models.StorageAccount]:
363
335
  """Asynchronously creates a new storage account with the specified parameters. If an account is
@@ -373,20 +345,9 @@ class StorageAccountsOperations:
373
345
  lower-case letters only. Required.
374
346
  :type account_name: str
375
347
  :param parameters: The parameters to provide for the created account. Is either a
376
- StorageAccountCreateParameters type or a IO type. Required.
348
+ StorageAccountCreateParameters type or a IO[bytes] type. Required.
377
349
  :type parameters: ~azure.mgmt.storage.v2018_03_01_preview.models.StorageAccountCreateParameters
378
- or IO
379
- :keyword content_type: Body Parameter content-type. Known values are: 'application/json'.
380
- Default value is None.
381
- :paramtype content_type: str
382
- :keyword callable cls: A custom type or function that will be passed the direct response
383
- :keyword str continuation_token: A continuation token to restart a poller from a saved state.
384
- :keyword polling: By default, your polling method will be AsyncARMPolling. Pass in False for
385
- this operation to not poll, or pass in your own initialized polling object for a personal
386
- polling strategy.
387
- :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod
388
- :keyword int polling_interval: Default waiting time between two polls for LRO operations if no
389
- Retry-After header is present.
350
+ or IO[bytes]
390
351
  :return: An instance of AsyncLROPoller that returns either StorageAccount or the result of
391
352
  cls(response)
392
353
  :rtype:
@@ -396,8 +357,8 @@ class StorageAccountsOperations:
396
357
  _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
397
358
  _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
398
359
 
399
- api_version: Literal["2018-03-01-preview"] = kwargs.pop(
400
- "api_version", _params.pop("api-version", "2018-03-01-preview")
360
+ api_version: str = kwargs.pop(
361
+ "api_version", _params.pop("api-version", self._api_version or "2018-03-01-preview")
401
362
  )
402
363
  content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
403
364
  cls: ClsType[_models.StorageAccount] = kwargs.pop("cls", None)
@@ -421,7 +382,7 @@ class StorageAccountsOperations:
421
382
  def get_long_running_output(pipeline_response):
422
383
  deserialized = self._deserialize("StorageAccount", pipeline_response)
423
384
  if cls:
424
- return cls(pipeline_response, deserialized, {})
385
+ return cls(pipeline_response, deserialized, {}) # type: ignore
425
386
  return deserialized
426
387
 
427
388
  if polling is True:
@@ -431,17 +392,15 @@ class StorageAccountsOperations:
431
392
  else:
432
393
  polling_method = polling
433
394
  if cont_token:
434
- return AsyncLROPoller.from_continuation_token(
395
+ return AsyncLROPoller[_models.StorageAccount].from_continuation_token(
435
396
  polling_method=polling_method,
436
397
  continuation_token=cont_token,
437
398
  client=self._client,
438
399
  deserialization_callback=get_long_running_output,
439
400
  )
440
- return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) # type: ignore
441
-
442
- begin_create.metadata = {
443
- "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}"
444
- }
401
+ return AsyncLROPoller[_models.StorageAccount](
402
+ self._client, raw_result, get_long_running_output, polling_method # type: ignore
403
+ )
445
404
 
446
405
  @distributed_trace_async
447
406
  async def delete( # pylint: disable=inconsistent-return-statements
@@ -456,12 +415,11 @@ class StorageAccountsOperations:
456
415
  Storage account names must be between 3 and 24 characters in length and use numbers and
457
416
  lower-case letters only. Required.
458
417
  :type account_name: str
459
- :keyword callable cls: A custom type or function that will be passed the direct response
460
418
  :return: None or the result of cls(response)
461
419
  :rtype: None
462
420
  :raises ~azure.core.exceptions.HttpResponseError:
463
421
  """
464
- error_map = {
422
+ error_map: MutableMapping[int, Type[HttpResponseError]] = {
465
423
  401: ClientAuthenticationError,
466
424
  404: ResourceNotFoundError,
467
425
  409: ResourceExistsError,
@@ -472,25 +430,25 @@ class StorageAccountsOperations:
472
430
  _headers = kwargs.pop("headers", {}) or {}
473
431
  _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
474
432
 
475
- api_version: Literal["2018-03-01-preview"] = kwargs.pop(
476
- "api_version", _params.pop("api-version", "2018-03-01-preview")
433
+ api_version: str = kwargs.pop(
434
+ "api_version", _params.pop("api-version", self._api_version or "2018-03-01-preview")
477
435
  )
478
436
  cls: ClsType[None] = kwargs.pop("cls", None)
479
437
 
480
- request = build_delete_request(
438
+ _request = build_delete_request(
481
439
  resource_group_name=resource_group_name,
482
440
  account_name=account_name,
483
441
  subscription_id=self._config.subscription_id,
484
442
  api_version=api_version,
485
- template_url=self.delete.metadata["url"],
486
443
  headers=_headers,
487
444
  params=_params,
488
445
  )
489
- request = _convert_request(request)
490
- request.url = self._client.format_url(request.url)
446
+ _request = _convert_request(_request)
447
+ _request.url = self._client.format_url(_request.url)
491
448
 
449
+ _stream = False
492
450
  pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access
493
- request, stream=False, **kwargs
451
+ _request, stream=_stream, **kwargs
494
452
  )
495
453
 
496
454
  response = pipeline_response.http_response
@@ -500,11 +458,7 @@ class StorageAccountsOperations:
500
458
  raise HttpResponseError(response=response, error_format=ARMErrorFormat)
501
459
 
502
460
  if cls:
503
- return cls(pipeline_response, None, {})
504
-
505
- delete.metadata = {
506
- "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}"
507
- }
461
+ return cls(pipeline_response, None, {}) # type: ignore
508
462
 
509
463
  @distributed_trace_async
510
464
  async def get_properties(
@@ -521,12 +475,11 @@ class StorageAccountsOperations:
521
475
  Storage account names must be between 3 and 24 characters in length and use numbers and
522
476
  lower-case letters only. Required.
523
477
  :type account_name: str
524
- :keyword callable cls: A custom type or function that will be passed the direct response
525
478
  :return: StorageAccount or the result of cls(response)
526
479
  :rtype: ~azure.mgmt.storage.v2018_03_01_preview.models.StorageAccount
527
480
  :raises ~azure.core.exceptions.HttpResponseError:
528
481
  """
529
- error_map = {
482
+ error_map: MutableMapping[int, Type[HttpResponseError]] = {
530
483
  401: ClientAuthenticationError,
531
484
  404: ResourceNotFoundError,
532
485
  409: ResourceExistsError,
@@ -537,25 +490,25 @@ class StorageAccountsOperations:
537
490
  _headers = kwargs.pop("headers", {}) or {}
538
491
  _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
539
492
 
540
- api_version: Literal["2018-03-01-preview"] = kwargs.pop(
541
- "api_version", _params.pop("api-version", "2018-03-01-preview")
493
+ api_version: str = kwargs.pop(
494
+ "api_version", _params.pop("api-version", self._api_version or "2018-03-01-preview")
542
495
  )
543
496
  cls: ClsType[_models.StorageAccount] = kwargs.pop("cls", None)
544
497
 
545
- request = build_get_properties_request(
498
+ _request = build_get_properties_request(
546
499
  resource_group_name=resource_group_name,
547
500
  account_name=account_name,
548
501
  subscription_id=self._config.subscription_id,
549
502
  api_version=api_version,
550
- template_url=self.get_properties.metadata["url"],
551
503
  headers=_headers,
552
504
  params=_params,
553
505
  )
554
- request = _convert_request(request)
555
- request.url = self._client.format_url(request.url)
506
+ _request = _convert_request(_request)
507
+ _request.url = self._client.format_url(_request.url)
556
508
 
509
+ _stream = False
557
510
  pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access
558
- request, stream=False, **kwargs
511
+ _request, stream=_stream, **kwargs
559
512
  )
560
513
 
561
514
  response = pipeline_response.http_response
@@ -567,13 +520,9 @@ class StorageAccountsOperations:
567
520
  deserialized = self._deserialize("StorageAccount", pipeline_response)
568
521
 
569
522
  if cls:
570
- return cls(pipeline_response, deserialized, {})
571
-
572
- return deserialized
523
+ return cls(pipeline_response, deserialized, {}) # type: ignore
573
524
 
574
- get_properties.metadata = {
575
- "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}"
576
- }
525
+ return deserialized # type: ignore
577
526
 
578
527
  @overload
579
528
  async def update(
@@ -606,7 +555,6 @@ class StorageAccountsOperations:
606
555
  :keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
607
556
  Default value is "application/json".
608
557
  :paramtype content_type: str
609
- :keyword callable cls: A custom type or function that will be passed the direct response
610
558
  :return: StorageAccount or the result of cls(response)
611
559
  :rtype: ~azure.mgmt.storage.v2018_03_01_preview.models.StorageAccount
612
560
  :raises ~azure.core.exceptions.HttpResponseError:
@@ -617,7 +565,7 @@ class StorageAccountsOperations:
617
565
  self,
618
566
  resource_group_name: str,
619
567
  account_name: str,
620
- parameters: IO,
568
+ parameters: IO[bytes],
621
569
  *,
622
570
  content_type: str = "application/json",
623
571
  **kwargs: Any
@@ -639,11 +587,10 @@ class StorageAccountsOperations:
639
587
  lower-case letters only. Required.
640
588
  :type account_name: str
641
589
  :param parameters: The parameters to provide for the updated account. Required.
642
- :type parameters: IO
590
+ :type parameters: IO[bytes]
643
591
  :keyword content_type: Body Parameter content-type. Content type parameter for binary body.
644
592
  Default value is "application/json".
645
593
  :paramtype content_type: str
646
- :keyword callable cls: A custom type or function that will be passed the direct response
647
594
  :return: StorageAccount or the result of cls(response)
648
595
  :rtype: ~azure.mgmt.storage.v2018_03_01_preview.models.StorageAccount
649
596
  :raises ~azure.core.exceptions.HttpResponseError:
@@ -654,7 +601,7 @@ class StorageAccountsOperations:
654
601
  self,
655
602
  resource_group_name: str,
656
603
  account_name: str,
657
- parameters: Union[_models.StorageAccountUpdateParameters, IO],
604
+ parameters: Union[_models.StorageAccountUpdateParameters, IO[bytes]],
658
605
  **kwargs: Any
659
606
  ) -> _models.StorageAccount:
660
607
  """The update operation can be used to update the SKU, encryption, access tier, or tags for a
@@ -674,18 +621,14 @@ class StorageAccountsOperations:
674
621
  lower-case letters only. Required.
675
622
  :type account_name: str
676
623
  :param parameters: The parameters to provide for the updated account. Is either a
677
- StorageAccountUpdateParameters type or a IO type. Required.
624
+ StorageAccountUpdateParameters type or a IO[bytes] type. Required.
678
625
  :type parameters: ~azure.mgmt.storage.v2018_03_01_preview.models.StorageAccountUpdateParameters
679
- or IO
680
- :keyword content_type: Body Parameter content-type. Known values are: 'application/json'.
681
- Default value is None.
682
- :paramtype content_type: str
683
- :keyword callable cls: A custom type or function that will be passed the direct response
626
+ or IO[bytes]
684
627
  :return: StorageAccount or the result of cls(response)
685
628
  :rtype: ~azure.mgmt.storage.v2018_03_01_preview.models.StorageAccount
686
629
  :raises ~azure.core.exceptions.HttpResponseError:
687
630
  """
688
- error_map = {
631
+ error_map: MutableMapping[int, Type[HttpResponseError]] = {
689
632
  401: ClientAuthenticationError,
690
633
  404: ResourceNotFoundError,
691
634
  409: ResourceExistsError,
@@ -696,8 +639,8 @@ class StorageAccountsOperations:
696
639
  _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
697
640
  _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
698
641
 
699
- api_version: Literal["2018-03-01-preview"] = kwargs.pop(
700
- "api_version", _params.pop("api-version", "2018-03-01-preview")
642
+ api_version: str = kwargs.pop(
643
+ "api_version", _params.pop("api-version", self._api_version or "2018-03-01-preview")
701
644
  )
702
645
  content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
703
646
  cls: ClsType[_models.StorageAccount] = kwargs.pop("cls", None)
@@ -705,12 +648,12 @@ class StorageAccountsOperations:
705
648
  content_type = content_type or "application/json"
706
649
  _json = None
707
650
  _content = None
708
- if isinstance(parameters, (IO, bytes)):
651
+ if isinstance(parameters, (IOBase, bytes)):
709
652
  _content = parameters
710
653
  else:
711
654
  _json = self._serialize.body(parameters, "StorageAccountUpdateParameters")
712
655
 
713
- request = build_update_request(
656
+ _request = build_update_request(
714
657
  resource_group_name=resource_group_name,
715
658
  account_name=account_name,
716
659
  subscription_id=self._config.subscription_id,
@@ -718,15 +661,15 @@ class StorageAccountsOperations:
718
661
  content_type=content_type,
719
662
  json=_json,
720
663
  content=_content,
721
- template_url=self.update.metadata["url"],
722
664
  headers=_headers,
723
665
  params=_params,
724
666
  )
725
- request = _convert_request(request)
726
- request.url = self._client.format_url(request.url)
667
+ _request = _convert_request(_request)
668
+ _request.url = self._client.format_url(_request.url)
727
669
 
670
+ _stream = False
728
671
  pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access
729
- request, stream=False, **kwargs
672
+ _request, stream=_stream, **kwargs
730
673
  )
731
674
 
732
675
  response = pipeline_response.http_response
@@ -738,20 +681,15 @@ class StorageAccountsOperations:
738
681
  deserialized = self._deserialize("StorageAccount", pipeline_response)
739
682
 
740
683
  if cls:
741
- return cls(pipeline_response, deserialized, {})
684
+ return cls(pipeline_response, deserialized, {}) # type: ignore
742
685
 
743
- return deserialized
744
-
745
- update.metadata = {
746
- "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}"
747
- }
686
+ return deserialized # type: ignore
748
687
 
749
688
  @distributed_trace
750
689
  def list(self, **kwargs: Any) -> AsyncIterable["_models.StorageAccount"]:
751
690
  """Lists all the storage accounts available under the subscription. Note that storage keys are not
752
691
  returned; use the ListKeys operation for this.
753
692
 
754
- :keyword callable cls: A custom type or function that will be passed the direct response
755
693
  :return: An iterator like instance of either StorageAccount or the result of cls(response)
756
694
  :rtype:
757
695
  ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.storage.v2018_03_01_preview.models.StorageAccount]
@@ -760,12 +698,12 @@ class StorageAccountsOperations:
760
698
  _headers = kwargs.pop("headers", {}) or {}
761
699
  _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
762
700
 
763
- api_version: Literal["2018-03-01-preview"] = kwargs.pop(
764
- "api_version", _params.pop("api-version", "2018-03-01-preview")
701
+ api_version: str = kwargs.pop(
702
+ "api_version", _params.pop("api-version", self._api_version or "2018-03-01-preview")
765
703
  )
766
704
  cls: ClsType[_models.StorageAccountListResult] = kwargs.pop("cls", None)
767
705
 
768
- error_map = {
706
+ error_map: MutableMapping[int, Type[HttpResponseError]] = {
769
707
  401: ClientAuthenticationError,
770
708
  404: ResourceNotFoundError,
771
709
  409: ResourceExistsError,
@@ -776,15 +714,14 @@ class StorageAccountsOperations:
776
714
  def prepare_request(next_link=None):
777
715
  if not next_link:
778
716
 
779
- request = build_list_request(
717
+ _request = build_list_request(
780
718
  subscription_id=self._config.subscription_id,
781
719
  api_version=api_version,
782
- template_url=self.list.metadata["url"],
783
720
  headers=_headers,
784
721
  params=_params,
785
722
  )
786
- request = _convert_request(request)
787
- request.url = self._client.format_url(request.url)
723
+ _request = _convert_request(_request)
724
+ _request.url = self._client.format_url(_request.url)
788
725
 
789
726
  else:
790
727
  # make call to next link with the client's api-version
@@ -795,14 +732,14 @@ class StorageAccountsOperations:
795
732
  for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items()
796
733
  }
797
734
  )
798
- _next_request_params["api-version"] = self._config.api_version
799
- request = HttpRequest(
735
+ _next_request_params["api-version"] = self._api_version
736
+ _request = HttpRequest(
800
737
  "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params
801
738
  )
802
- request = _convert_request(request)
803
- request.url = self._client.format_url(request.url)
804
- request.method = "GET"
805
- return request
739
+ _request = _convert_request(_request)
740
+ _request.url = self._client.format_url(_request.url)
741
+ _request.method = "GET"
742
+ return _request
806
743
 
807
744
  async def extract_data(pipeline_response):
808
745
  deserialized = self._deserialize("StorageAccountListResult", pipeline_response)
@@ -812,10 +749,11 @@ class StorageAccountsOperations:
812
749
  return None, AsyncList(list_of_elem)
813
750
 
814
751
  async def get_next(next_link=None):
815
- request = prepare_request(next_link)
752
+ _request = prepare_request(next_link)
816
753
 
754
+ _stream = False
817
755
  pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access
818
- request, stream=False, **kwargs
756
+ _request, stream=_stream, **kwargs
819
757
  )
820
758
  response = pipeline_response.http_response
821
759
 
@@ -827,8 +765,6 @@ class StorageAccountsOperations:
827
765
 
828
766
  return AsyncItemPaged(get_next, extract_data)
829
767
 
830
- list.metadata = {"url": "/subscriptions/{subscriptionId}/providers/Microsoft.Storage/storageAccounts"}
831
-
832
768
  @distributed_trace
833
769
  def list_by_resource_group(
834
770
  self, resource_group_name: str, **kwargs: Any
@@ -839,7 +775,6 @@ class StorageAccountsOperations:
839
775
  :param resource_group_name: The name of the resource group within the user's subscription. The
840
776
  name is case insensitive. Required.
841
777
  :type resource_group_name: str
842
- :keyword callable cls: A custom type or function that will be passed the direct response
843
778
  :return: An iterator like instance of either StorageAccount or the result of cls(response)
844
779
  :rtype:
845
780
  ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.storage.v2018_03_01_preview.models.StorageAccount]
@@ -848,12 +783,12 @@ class StorageAccountsOperations:
848
783
  _headers = kwargs.pop("headers", {}) or {}
849
784
  _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
850
785
 
851
- api_version: Literal["2018-03-01-preview"] = kwargs.pop(
852
- "api_version", _params.pop("api-version", "2018-03-01-preview")
786
+ api_version: str = kwargs.pop(
787
+ "api_version", _params.pop("api-version", self._api_version or "2018-03-01-preview")
853
788
  )
854
789
  cls: ClsType[_models.StorageAccountListResult] = kwargs.pop("cls", None)
855
790
 
856
- error_map = {
791
+ error_map: MutableMapping[int, Type[HttpResponseError]] = {
857
792
  401: ClientAuthenticationError,
858
793
  404: ResourceNotFoundError,
859
794
  409: ResourceExistsError,
@@ -864,16 +799,15 @@ class StorageAccountsOperations:
864
799
  def prepare_request(next_link=None):
865
800
  if not next_link:
866
801
 
867
- request = build_list_by_resource_group_request(
802
+ _request = build_list_by_resource_group_request(
868
803
  resource_group_name=resource_group_name,
869
804
  subscription_id=self._config.subscription_id,
870
805
  api_version=api_version,
871
- template_url=self.list_by_resource_group.metadata["url"],
872
806
  headers=_headers,
873
807
  params=_params,
874
808
  )
875
- request = _convert_request(request)
876
- request.url = self._client.format_url(request.url)
809
+ _request = _convert_request(_request)
810
+ _request.url = self._client.format_url(_request.url)
877
811
 
878
812
  else:
879
813
  # make call to next link with the client's api-version
@@ -884,14 +818,14 @@ class StorageAccountsOperations:
884
818
  for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items()
885
819
  }
886
820
  )
887
- _next_request_params["api-version"] = self._config.api_version
888
- request = HttpRequest(
821
+ _next_request_params["api-version"] = self._api_version
822
+ _request = HttpRequest(
889
823
  "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params
890
824
  )
891
- request = _convert_request(request)
892
- request.url = self._client.format_url(request.url)
893
- request.method = "GET"
894
- return request
825
+ _request = _convert_request(_request)
826
+ _request.url = self._client.format_url(_request.url)
827
+ _request.method = "GET"
828
+ return _request
895
829
 
896
830
  async def extract_data(pipeline_response):
897
831
  deserialized = self._deserialize("StorageAccountListResult", pipeline_response)
@@ -901,10 +835,11 @@ class StorageAccountsOperations:
901
835
  return None, AsyncList(list_of_elem)
902
836
 
903
837
  async def get_next(next_link=None):
904
- request = prepare_request(next_link)
838
+ _request = prepare_request(next_link)
905
839
 
840
+ _stream = False
906
841
  pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access
907
- request, stream=False, **kwargs
842
+ _request, stream=_stream, **kwargs
908
843
  )
909
844
  response = pipeline_response.http_response
910
845
 
@@ -916,10 +851,6 @@ class StorageAccountsOperations:
916
851
 
917
852
  return AsyncItemPaged(get_next, extract_data)
918
853
 
919
- list_by_resource_group.metadata = {
920
- "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts"
921
- }
922
-
923
854
  @distributed_trace_async
924
855
  async def list_keys(
925
856
  self, resource_group_name: str, account_name: str, **kwargs: Any
@@ -933,12 +864,11 @@ class StorageAccountsOperations:
933
864
  Storage account names must be between 3 and 24 characters in length and use numbers and
934
865
  lower-case letters only. Required.
935
866
  :type account_name: str
936
- :keyword callable cls: A custom type or function that will be passed the direct response
937
867
  :return: StorageAccountListKeysResult or the result of cls(response)
938
868
  :rtype: ~azure.mgmt.storage.v2018_03_01_preview.models.StorageAccountListKeysResult
939
869
  :raises ~azure.core.exceptions.HttpResponseError:
940
870
  """
941
- error_map = {
871
+ error_map: MutableMapping[int, Type[HttpResponseError]] = {
942
872
  401: ClientAuthenticationError,
943
873
  404: ResourceNotFoundError,
944
874
  409: ResourceExistsError,
@@ -949,25 +879,25 @@ class StorageAccountsOperations:
949
879
  _headers = kwargs.pop("headers", {}) or {}
950
880
  _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
951
881
 
952
- api_version: Literal["2018-03-01-preview"] = kwargs.pop(
953
- "api_version", _params.pop("api-version", "2018-03-01-preview")
882
+ api_version: str = kwargs.pop(
883
+ "api_version", _params.pop("api-version", self._api_version or "2018-03-01-preview")
954
884
  )
955
885
  cls: ClsType[_models.StorageAccountListKeysResult] = kwargs.pop("cls", None)
956
886
 
957
- request = build_list_keys_request(
887
+ _request = build_list_keys_request(
958
888
  resource_group_name=resource_group_name,
959
889
  account_name=account_name,
960
890
  subscription_id=self._config.subscription_id,
961
891
  api_version=api_version,
962
- template_url=self.list_keys.metadata["url"],
963
892
  headers=_headers,
964
893
  params=_params,
965
894
  )
966
- request = _convert_request(request)
967
- request.url = self._client.format_url(request.url)
895
+ _request = _convert_request(_request)
896
+ _request.url = self._client.format_url(_request.url)
968
897
 
898
+ _stream = False
969
899
  pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access
970
- request, stream=False, **kwargs
900
+ _request, stream=_stream, **kwargs
971
901
  )
972
902
 
973
903
  response = pipeline_response.http_response
@@ -979,13 +909,9 @@ class StorageAccountsOperations:
979
909
  deserialized = self._deserialize("StorageAccountListKeysResult", pipeline_response)
980
910
 
981
911
  if cls:
982
- return cls(pipeline_response, deserialized, {})
912
+ return cls(pipeline_response, deserialized, {}) # type: ignore
983
913
 
984
- return deserialized
985
-
986
- list_keys.metadata = {
987
- "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/listKeys"
988
- }
914
+ return deserialized # type: ignore
989
915
 
990
916
  @overload
991
917
  async def regenerate_key(
@@ -1013,7 +939,6 @@ class StorageAccountsOperations:
1013
939
  :keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
1014
940
  Default value is "application/json".
1015
941
  :paramtype content_type: str
1016
- :keyword callable cls: A custom type or function that will be passed the direct response
1017
942
  :return: StorageAccountListKeysResult or the result of cls(response)
1018
943
  :rtype: ~azure.mgmt.storage.v2018_03_01_preview.models.StorageAccountListKeysResult
1019
944
  :raises ~azure.core.exceptions.HttpResponseError:
@@ -1024,7 +949,7 @@ class StorageAccountsOperations:
1024
949
  self,
1025
950
  resource_group_name: str,
1026
951
  account_name: str,
1027
- regenerate_key: IO,
952
+ regenerate_key: IO[bytes],
1028
953
  *,
1029
954
  content_type: str = "application/json",
1030
955
  **kwargs: Any
@@ -1040,11 +965,10 @@ class StorageAccountsOperations:
1040
965
  :type account_name: str
1041
966
  :param regenerate_key: Specifies name of the key which should be regenerated -- key1 or key2.
1042
967
  Required.
1043
- :type regenerate_key: IO
968
+ :type regenerate_key: IO[bytes]
1044
969
  :keyword content_type: Body Parameter content-type. Content type parameter for binary body.
1045
970
  Default value is "application/json".
1046
971
  :paramtype content_type: str
1047
- :keyword callable cls: A custom type or function that will be passed the direct response
1048
972
  :return: StorageAccountListKeysResult or the result of cls(response)
1049
973
  :rtype: ~azure.mgmt.storage.v2018_03_01_preview.models.StorageAccountListKeysResult
1050
974
  :raises ~azure.core.exceptions.HttpResponseError:
@@ -1055,7 +979,7 @@ class StorageAccountsOperations:
1055
979
  self,
1056
980
  resource_group_name: str,
1057
981
  account_name: str,
1058
- regenerate_key: Union[_models.StorageAccountRegenerateKeyParameters, IO],
982
+ regenerate_key: Union[_models.StorageAccountRegenerateKeyParameters, IO[bytes]],
1059
983
  **kwargs: Any
1060
984
  ) -> _models.StorageAccountListKeysResult:
1061
985
  """Regenerates one of the access keys for the specified storage account.
@@ -1068,18 +992,15 @@ class StorageAccountsOperations:
1068
992
  lower-case letters only. Required.
1069
993
  :type account_name: str
1070
994
  :param regenerate_key: Specifies name of the key which should be regenerated -- key1 or key2.
1071
- Is either a StorageAccountRegenerateKeyParameters type or a IO type. Required.
995
+ Is either a StorageAccountRegenerateKeyParameters type or a IO[bytes] type. Required.
1072
996
  :type regenerate_key:
1073
- ~azure.mgmt.storage.v2018_03_01_preview.models.StorageAccountRegenerateKeyParameters or IO
1074
- :keyword content_type: Body Parameter content-type. Known values are: 'application/json'.
1075
- Default value is None.
1076
- :paramtype content_type: str
1077
- :keyword callable cls: A custom type or function that will be passed the direct response
997
+ ~azure.mgmt.storage.v2018_03_01_preview.models.StorageAccountRegenerateKeyParameters or
998
+ IO[bytes]
1078
999
  :return: StorageAccountListKeysResult or the result of cls(response)
1079
1000
  :rtype: ~azure.mgmt.storage.v2018_03_01_preview.models.StorageAccountListKeysResult
1080
1001
  :raises ~azure.core.exceptions.HttpResponseError:
1081
1002
  """
1082
- error_map = {
1003
+ error_map: MutableMapping[int, Type[HttpResponseError]] = {
1083
1004
  401: ClientAuthenticationError,
1084
1005
  404: ResourceNotFoundError,
1085
1006
  409: ResourceExistsError,
@@ -1090,8 +1011,8 @@ class StorageAccountsOperations:
1090
1011
  _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
1091
1012
  _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
1092
1013
 
1093
- api_version: Literal["2018-03-01-preview"] = kwargs.pop(
1094
- "api_version", _params.pop("api-version", "2018-03-01-preview")
1014
+ api_version: str = kwargs.pop(
1015
+ "api_version", _params.pop("api-version", self._api_version or "2018-03-01-preview")
1095
1016
  )
1096
1017
  content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
1097
1018
  cls: ClsType[_models.StorageAccountListKeysResult] = kwargs.pop("cls", None)
@@ -1099,12 +1020,12 @@ class StorageAccountsOperations:
1099
1020
  content_type = content_type or "application/json"
1100
1021
  _json = None
1101
1022
  _content = None
1102
- if isinstance(regenerate_key, (IO, bytes)):
1023
+ if isinstance(regenerate_key, (IOBase, bytes)):
1103
1024
  _content = regenerate_key
1104
1025
  else:
1105
1026
  _json = self._serialize.body(regenerate_key, "StorageAccountRegenerateKeyParameters")
1106
1027
 
1107
- request = build_regenerate_key_request(
1028
+ _request = build_regenerate_key_request(
1108
1029
  resource_group_name=resource_group_name,
1109
1030
  account_name=account_name,
1110
1031
  subscription_id=self._config.subscription_id,
@@ -1112,15 +1033,15 @@ class StorageAccountsOperations:
1112
1033
  content_type=content_type,
1113
1034
  json=_json,
1114
1035
  content=_content,
1115
- template_url=self.regenerate_key.metadata["url"],
1116
1036
  headers=_headers,
1117
1037
  params=_params,
1118
1038
  )
1119
- request = _convert_request(request)
1120
- request.url = self._client.format_url(request.url)
1039
+ _request = _convert_request(_request)
1040
+ _request.url = self._client.format_url(_request.url)
1121
1041
 
1042
+ _stream = False
1122
1043
  pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access
1123
- request, stream=False, **kwargs
1044
+ _request, stream=_stream, **kwargs
1124
1045
  )
1125
1046
 
1126
1047
  response = pipeline_response.http_response
@@ -1132,13 +1053,9 @@ class StorageAccountsOperations:
1132
1053
  deserialized = self._deserialize("StorageAccountListKeysResult", pipeline_response)
1133
1054
 
1134
1055
  if cls:
1135
- return cls(pipeline_response, deserialized, {})
1136
-
1137
- return deserialized
1056
+ return cls(pipeline_response, deserialized, {}) # type: ignore
1138
1057
 
1139
- regenerate_key.metadata = {
1140
- "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/regenerateKey"
1141
- }
1058
+ return deserialized # type: ignore
1142
1059
 
1143
1060
  @overload
1144
1061
  async def list_account_sas(
@@ -1165,7 +1082,6 @@ class StorageAccountsOperations:
1165
1082
  :keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
1166
1083
  Default value is "application/json".
1167
1084
  :paramtype content_type: str
1168
- :keyword callable cls: A custom type or function that will be passed the direct response
1169
1085
  :return: ListAccountSasResponse or the result of cls(response)
1170
1086
  :rtype: ~azure.mgmt.storage.v2018_03_01_preview.models.ListAccountSasResponse
1171
1087
  :raises ~azure.core.exceptions.HttpResponseError:
@@ -1176,7 +1092,7 @@ class StorageAccountsOperations:
1176
1092
  self,
1177
1093
  resource_group_name: str,
1178
1094
  account_name: str,
1179
- parameters: IO,
1095
+ parameters: IO[bytes],
1180
1096
  *,
1181
1097
  content_type: str = "application/json",
1182
1098
  **kwargs: Any
@@ -1192,11 +1108,10 @@ class StorageAccountsOperations:
1192
1108
  :type account_name: str
1193
1109
  :param parameters: The parameters to provide to list SAS credentials for the storage account.
1194
1110
  Required.
1195
- :type parameters: IO
1111
+ :type parameters: IO[bytes]
1196
1112
  :keyword content_type: Body Parameter content-type. Content type parameter for binary body.
1197
1113
  Default value is "application/json".
1198
1114
  :paramtype content_type: str
1199
- :keyword callable cls: A custom type or function that will be passed the direct response
1200
1115
  :return: ListAccountSasResponse or the result of cls(response)
1201
1116
  :rtype: ~azure.mgmt.storage.v2018_03_01_preview.models.ListAccountSasResponse
1202
1117
  :raises ~azure.core.exceptions.HttpResponseError:
@@ -1207,7 +1122,7 @@ class StorageAccountsOperations:
1207
1122
  self,
1208
1123
  resource_group_name: str,
1209
1124
  account_name: str,
1210
- parameters: Union[_models.AccountSasParameters, IO],
1125
+ parameters: Union[_models.AccountSasParameters, IO[bytes]],
1211
1126
  **kwargs: Any
1212
1127
  ) -> _models.ListAccountSasResponse:
1213
1128
  """List SAS credentials of a storage account.
@@ -1220,17 +1135,14 @@ class StorageAccountsOperations:
1220
1135
  lower-case letters only. Required.
1221
1136
  :type account_name: str
1222
1137
  :param parameters: The parameters to provide to list SAS credentials for the storage account.
1223
- Is either a AccountSasParameters type or a IO type. Required.
1224
- :type parameters: ~azure.mgmt.storage.v2018_03_01_preview.models.AccountSasParameters or IO
1225
- :keyword content_type: Body Parameter content-type. Known values are: 'application/json'.
1226
- Default value is None.
1227
- :paramtype content_type: str
1228
- :keyword callable cls: A custom type or function that will be passed the direct response
1138
+ Is either a AccountSasParameters type or a IO[bytes] type. Required.
1139
+ :type parameters: ~azure.mgmt.storage.v2018_03_01_preview.models.AccountSasParameters or
1140
+ IO[bytes]
1229
1141
  :return: ListAccountSasResponse or the result of cls(response)
1230
1142
  :rtype: ~azure.mgmt.storage.v2018_03_01_preview.models.ListAccountSasResponse
1231
1143
  :raises ~azure.core.exceptions.HttpResponseError:
1232
1144
  """
1233
- error_map = {
1145
+ error_map: MutableMapping[int, Type[HttpResponseError]] = {
1234
1146
  401: ClientAuthenticationError,
1235
1147
  404: ResourceNotFoundError,
1236
1148
  409: ResourceExistsError,
@@ -1241,8 +1153,8 @@ class StorageAccountsOperations:
1241
1153
  _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
1242
1154
  _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
1243
1155
 
1244
- api_version: Literal["2018-03-01-preview"] = kwargs.pop(
1245
- "api_version", _params.pop("api-version", "2018-03-01-preview")
1156
+ api_version: str = kwargs.pop(
1157
+ "api_version", _params.pop("api-version", self._api_version or "2018-03-01-preview")
1246
1158
  )
1247
1159
  content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
1248
1160
  cls: ClsType[_models.ListAccountSasResponse] = kwargs.pop("cls", None)
@@ -1250,12 +1162,12 @@ class StorageAccountsOperations:
1250
1162
  content_type = content_type or "application/json"
1251
1163
  _json = None
1252
1164
  _content = None
1253
- if isinstance(parameters, (IO, bytes)):
1165
+ if isinstance(parameters, (IOBase, bytes)):
1254
1166
  _content = parameters
1255
1167
  else:
1256
1168
  _json = self._serialize.body(parameters, "AccountSasParameters")
1257
1169
 
1258
- request = build_list_account_sas_request(
1170
+ _request = build_list_account_sas_request(
1259
1171
  resource_group_name=resource_group_name,
1260
1172
  account_name=account_name,
1261
1173
  subscription_id=self._config.subscription_id,
@@ -1263,15 +1175,15 @@ class StorageAccountsOperations:
1263
1175
  content_type=content_type,
1264
1176
  json=_json,
1265
1177
  content=_content,
1266
- template_url=self.list_account_sas.metadata["url"],
1267
1178
  headers=_headers,
1268
1179
  params=_params,
1269
1180
  )
1270
- request = _convert_request(request)
1271
- request.url = self._client.format_url(request.url)
1181
+ _request = _convert_request(_request)
1182
+ _request.url = self._client.format_url(_request.url)
1272
1183
 
1184
+ _stream = False
1273
1185
  pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access
1274
- request, stream=False, **kwargs
1186
+ _request, stream=_stream, **kwargs
1275
1187
  )
1276
1188
 
1277
1189
  response = pipeline_response.http_response
@@ -1283,13 +1195,9 @@ class StorageAccountsOperations:
1283
1195
  deserialized = self._deserialize("ListAccountSasResponse", pipeline_response)
1284
1196
 
1285
1197
  if cls:
1286
- return cls(pipeline_response, deserialized, {})
1287
-
1288
- return deserialized
1198
+ return cls(pipeline_response, deserialized, {}) # type: ignore
1289
1199
 
1290
- list_account_sas.metadata = {
1291
- "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/ListAccountSas"
1292
- }
1200
+ return deserialized # type: ignore
1293
1201
 
1294
1202
  @overload
1295
1203
  async def list_service_sas(
@@ -1315,7 +1223,6 @@ class StorageAccountsOperations:
1315
1223
  :keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
1316
1224
  Default value is "application/json".
1317
1225
  :paramtype content_type: str
1318
- :keyword callable cls: A custom type or function that will be passed the direct response
1319
1226
  :return: ListServiceSasResponse or the result of cls(response)
1320
1227
  :rtype: ~azure.mgmt.storage.v2018_03_01_preview.models.ListServiceSasResponse
1321
1228
  :raises ~azure.core.exceptions.HttpResponseError:
@@ -1326,7 +1233,7 @@ class StorageAccountsOperations:
1326
1233
  self,
1327
1234
  resource_group_name: str,
1328
1235
  account_name: str,
1329
- parameters: IO,
1236
+ parameters: IO[bytes],
1330
1237
  *,
1331
1238
  content_type: str = "application/json",
1332
1239
  **kwargs: Any
@@ -1341,11 +1248,10 @@ class StorageAccountsOperations:
1341
1248
  lower-case letters only. Required.
1342
1249
  :type account_name: str
1343
1250
  :param parameters: The parameters to provide to list service SAS credentials. Required.
1344
- :type parameters: IO
1251
+ :type parameters: IO[bytes]
1345
1252
  :keyword content_type: Body Parameter content-type. Content type parameter for binary body.
1346
1253
  Default value is "application/json".
1347
1254
  :paramtype content_type: str
1348
- :keyword callable cls: A custom type or function that will be passed the direct response
1349
1255
  :return: ListServiceSasResponse or the result of cls(response)
1350
1256
  :rtype: ~azure.mgmt.storage.v2018_03_01_preview.models.ListServiceSasResponse
1351
1257
  :raises ~azure.core.exceptions.HttpResponseError:
@@ -1356,7 +1262,7 @@ class StorageAccountsOperations:
1356
1262
  self,
1357
1263
  resource_group_name: str,
1358
1264
  account_name: str,
1359
- parameters: Union[_models.ServiceSasParameters, IO],
1265
+ parameters: Union[_models.ServiceSasParameters, IO[bytes]],
1360
1266
  **kwargs: Any
1361
1267
  ) -> _models.ListServiceSasResponse:
1362
1268
  """List service SAS credentials of a specific resource.
@@ -1369,17 +1275,14 @@ class StorageAccountsOperations:
1369
1275
  lower-case letters only. Required.
1370
1276
  :type account_name: str
1371
1277
  :param parameters: The parameters to provide to list service SAS credentials. Is either a
1372
- ServiceSasParameters type or a IO type. Required.
1373
- :type parameters: ~azure.mgmt.storage.v2018_03_01_preview.models.ServiceSasParameters or IO
1374
- :keyword content_type: Body Parameter content-type. Known values are: 'application/json'.
1375
- Default value is None.
1376
- :paramtype content_type: str
1377
- :keyword callable cls: A custom type or function that will be passed the direct response
1278
+ ServiceSasParameters type or a IO[bytes] type. Required.
1279
+ :type parameters: ~azure.mgmt.storage.v2018_03_01_preview.models.ServiceSasParameters or
1280
+ IO[bytes]
1378
1281
  :return: ListServiceSasResponse or the result of cls(response)
1379
1282
  :rtype: ~azure.mgmt.storage.v2018_03_01_preview.models.ListServiceSasResponse
1380
1283
  :raises ~azure.core.exceptions.HttpResponseError:
1381
1284
  """
1382
- error_map = {
1285
+ error_map: MutableMapping[int, Type[HttpResponseError]] = {
1383
1286
  401: ClientAuthenticationError,
1384
1287
  404: ResourceNotFoundError,
1385
1288
  409: ResourceExistsError,
@@ -1390,8 +1293,8 @@ class StorageAccountsOperations:
1390
1293
  _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
1391
1294
  _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
1392
1295
 
1393
- api_version: Literal["2018-03-01-preview"] = kwargs.pop(
1394
- "api_version", _params.pop("api-version", "2018-03-01-preview")
1296
+ api_version: str = kwargs.pop(
1297
+ "api_version", _params.pop("api-version", self._api_version or "2018-03-01-preview")
1395
1298
  )
1396
1299
  content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
1397
1300
  cls: ClsType[_models.ListServiceSasResponse] = kwargs.pop("cls", None)
@@ -1399,12 +1302,12 @@ class StorageAccountsOperations:
1399
1302
  content_type = content_type or "application/json"
1400
1303
  _json = None
1401
1304
  _content = None
1402
- if isinstance(parameters, (IO, bytes)):
1305
+ if isinstance(parameters, (IOBase, bytes)):
1403
1306
  _content = parameters
1404
1307
  else:
1405
1308
  _json = self._serialize.body(parameters, "ServiceSasParameters")
1406
1309
 
1407
- request = build_list_service_sas_request(
1310
+ _request = build_list_service_sas_request(
1408
1311
  resource_group_name=resource_group_name,
1409
1312
  account_name=account_name,
1410
1313
  subscription_id=self._config.subscription_id,
@@ -1412,15 +1315,15 @@ class StorageAccountsOperations:
1412
1315
  content_type=content_type,
1413
1316
  json=_json,
1414
1317
  content=_content,
1415
- template_url=self.list_service_sas.metadata["url"],
1416
1318
  headers=_headers,
1417
1319
  params=_params,
1418
1320
  )
1419
- request = _convert_request(request)
1420
- request.url = self._client.format_url(request.url)
1321
+ _request = _convert_request(_request)
1322
+ _request.url = self._client.format_url(_request.url)
1421
1323
 
1324
+ _stream = False
1422
1325
  pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access
1423
- request, stream=False, **kwargs
1326
+ _request, stream=_stream, **kwargs
1424
1327
  )
1425
1328
 
1426
1329
  response = pipeline_response.http_response
@@ -1432,13 +1335,9 @@ class StorageAccountsOperations:
1432
1335
  deserialized = self._deserialize("ListServiceSasResponse", pipeline_response)
1433
1336
 
1434
1337
  if cls:
1435
- return cls(pipeline_response, deserialized, {})
1338
+ return cls(pipeline_response, deserialized, {}) # type: ignore
1436
1339
 
1437
- return deserialized
1438
-
1439
- list_service_sas.metadata = {
1440
- "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/ListServiceSas"
1441
- }
1340
+ return deserialized # type: ignore
1442
1341
 
1443
1342
  @distributed_trace_async
1444
1343
  async def get_management_policies(
@@ -1461,12 +1360,11 @@ class StorageAccountsOperations:
1461
1360
  always be 'default'. "default" Required.
1462
1361
  :type management_policy_name: str or
1463
1362
  ~azure.mgmt.storage.v2018_03_01_preview.models.ManagementPolicyName
1464
- :keyword callable cls: A custom type or function that will be passed the direct response
1465
1363
  :return: StorageAccountManagementPolicies or the result of cls(response)
1466
1364
  :rtype: ~azure.mgmt.storage.v2018_03_01_preview.models.StorageAccountManagementPolicies
1467
1365
  :raises ~azure.core.exceptions.HttpResponseError:
1468
1366
  """
1469
- error_map = {
1367
+ error_map: MutableMapping[int, Type[HttpResponseError]] = {
1470
1368
  401: ClientAuthenticationError,
1471
1369
  404: ResourceNotFoundError,
1472
1370
  409: ResourceExistsError,
@@ -1477,26 +1375,26 @@ class StorageAccountsOperations:
1477
1375
  _headers = kwargs.pop("headers", {}) or {}
1478
1376
  _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
1479
1377
 
1480
- api_version: Literal["2018-03-01-preview"] = kwargs.pop(
1481
- "api_version", _params.pop("api-version", "2018-03-01-preview")
1378
+ api_version: str = kwargs.pop(
1379
+ "api_version", _params.pop("api-version", self._api_version or "2018-03-01-preview")
1482
1380
  )
1483
1381
  cls: ClsType[_models.StorageAccountManagementPolicies] = kwargs.pop("cls", None)
1484
1382
 
1485
- request = build_get_management_policies_request(
1383
+ _request = build_get_management_policies_request(
1486
1384
  resource_group_name=resource_group_name,
1487
1385
  account_name=account_name,
1488
1386
  management_policy_name=management_policy_name,
1489
1387
  subscription_id=self._config.subscription_id,
1490
1388
  api_version=api_version,
1491
- template_url=self.get_management_policies.metadata["url"],
1492
1389
  headers=_headers,
1493
1390
  params=_params,
1494
1391
  )
1495
- request = _convert_request(request)
1496
- request.url = self._client.format_url(request.url)
1392
+ _request = _convert_request(_request)
1393
+ _request.url = self._client.format_url(_request.url)
1497
1394
 
1395
+ _stream = False
1498
1396
  pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access
1499
- request, stream=False, **kwargs
1397
+ _request, stream=_stream, **kwargs
1500
1398
  )
1501
1399
 
1502
1400
  response = pipeline_response.http_response
@@ -1508,13 +1406,9 @@ class StorageAccountsOperations:
1508
1406
  deserialized = self._deserialize("StorageAccountManagementPolicies", pipeline_response)
1509
1407
 
1510
1408
  if cls:
1511
- return cls(pipeline_response, deserialized, {})
1512
-
1513
- return deserialized
1409
+ return cls(pipeline_response, deserialized, {}) # type: ignore
1514
1410
 
1515
- get_management_policies.metadata = {
1516
- "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/managementPolicies/{managementPolicyName}"
1517
- }
1411
+ return deserialized # type: ignore
1518
1412
 
1519
1413
  @overload
1520
1414
  async def create_or_update_management_policies(
@@ -1546,7 +1440,6 @@ class StorageAccountsOperations:
1546
1440
  :keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
1547
1441
  Default value is "application/json".
1548
1442
  :paramtype content_type: str
1549
- :keyword callable cls: A custom type or function that will be passed the direct response
1550
1443
  :return: StorageAccountManagementPolicies or the result of cls(response)
1551
1444
  :rtype: ~azure.mgmt.storage.v2018_03_01_preview.models.StorageAccountManagementPolicies
1552
1445
  :raises ~azure.core.exceptions.HttpResponseError:
@@ -1558,7 +1451,7 @@ class StorageAccountsOperations:
1558
1451
  resource_group_name: str,
1559
1452
  account_name: str,
1560
1453
  management_policy_name: Union[str, _models.ManagementPolicyName],
1561
- properties: IO,
1454
+ properties: IO[bytes],
1562
1455
  *,
1563
1456
  content_type: str = "application/json",
1564
1457
  **kwargs: Any
@@ -1577,11 +1470,10 @@ class StorageAccountsOperations:
1577
1470
  :type management_policy_name: str or
1578
1471
  ~azure.mgmt.storage.v2018_03_01_preview.models.ManagementPolicyName
1579
1472
  :param properties: The data policy rules to set to a storage account. Required.
1580
- :type properties: IO
1473
+ :type properties: IO[bytes]
1581
1474
  :keyword content_type: Body Parameter content-type. Content type parameter for binary body.
1582
1475
  Default value is "application/json".
1583
1476
  :paramtype content_type: str
1584
- :keyword callable cls: A custom type or function that will be passed the direct response
1585
1477
  :return: StorageAccountManagementPolicies or the result of cls(response)
1586
1478
  :rtype: ~azure.mgmt.storage.v2018_03_01_preview.models.StorageAccountManagementPolicies
1587
1479
  :raises ~azure.core.exceptions.HttpResponseError:
@@ -1593,7 +1485,7 @@ class StorageAccountsOperations:
1593
1485
  resource_group_name: str,
1594
1486
  account_name: str,
1595
1487
  management_policy_name: Union[str, _models.ManagementPolicyName],
1596
- properties: Union[_models.ManagementPoliciesRulesSetParameter, IO],
1488
+ properties: Union[_models.ManagementPoliciesRulesSetParameter, IO[bytes]],
1597
1489
  **kwargs: Any
1598
1490
  ) -> _models.StorageAccountManagementPolicies:
1599
1491
  """Sets the data policy rules associated with the specified storage account.
@@ -1610,18 +1502,14 @@ class StorageAccountsOperations:
1610
1502
  :type management_policy_name: str or
1611
1503
  ~azure.mgmt.storage.v2018_03_01_preview.models.ManagementPolicyName
1612
1504
  :param properties: The data policy rules to set to a storage account. Is either a
1613
- ManagementPoliciesRulesSetParameter type or a IO type. Required.
1505
+ ManagementPoliciesRulesSetParameter type or a IO[bytes] type. Required.
1614
1506
  :type properties:
1615
- ~azure.mgmt.storage.v2018_03_01_preview.models.ManagementPoliciesRulesSetParameter or IO
1616
- :keyword content_type: Body Parameter content-type. Known values are: 'application/json'.
1617
- Default value is None.
1618
- :paramtype content_type: str
1619
- :keyword callable cls: A custom type or function that will be passed the direct response
1507
+ ~azure.mgmt.storage.v2018_03_01_preview.models.ManagementPoliciesRulesSetParameter or IO[bytes]
1620
1508
  :return: StorageAccountManagementPolicies or the result of cls(response)
1621
1509
  :rtype: ~azure.mgmt.storage.v2018_03_01_preview.models.StorageAccountManagementPolicies
1622
1510
  :raises ~azure.core.exceptions.HttpResponseError:
1623
1511
  """
1624
- error_map = {
1512
+ error_map: MutableMapping[int, Type[HttpResponseError]] = {
1625
1513
  401: ClientAuthenticationError,
1626
1514
  404: ResourceNotFoundError,
1627
1515
  409: ResourceExistsError,
@@ -1632,8 +1520,8 @@ class StorageAccountsOperations:
1632
1520
  _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
1633
1521
  _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
1634
1522
 
1635
- api_version: Literal["2018-03-01-preview"] = kwargs.pop(
1636
- "api_version", _params.pop("api-version", "2018-03-01-preview")
1523
+ api_version: str = kwargs.pop(
1524
+ "api_version", _params.pop("api-version", self._api_version or "2018-03-01-preview")
1637
1525
  )
1638
1526
  content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
1639
1527
  cls: ClsType[_models.StorageAccountManagementPolicies] = kwargs.pop("cls", None)
@@ -1641,12 +1529,12 @@ class StorageAccountsOperations:
1641
1529
  content_type = content_type or "application/json"
1642
1530
  _json = None
1643
1531
  _content = None
1644
- if isinstance(properties, (IO, bytes)):
1532
+ if isinstance(properties, (IOBase, bytes)):
1645
1533
  _content = properties
1646
1534
  else:
1647
1535
  _json = self._serialize.body(properties, "ManagementPoliciesRulesSetParameter")
1648
1536
 
1649
- request = build_create_or_update_management_policies_request(
1537
+ _request = build_create_or_update_management_policies_request(
1650
1538
  resource_group_name=resource_group_name,
1651
1539
  account_name=account_name,
1652
1540
  management_policy_name=management_policy_name,
@@ -1655,15 +1543,15 @@ class StorageAccountsOperations:
1655
1543
  content_type=content_type,
1656
1544
  json=_json,
1657
1545
  content=_content,
1658
- template_url=self.create_or_update_management_policies.metadata["url"],
1659
1546
  headers=_headers,
1660
1547
  params=_params,
1661
1548
  )
1662
- request = _convert_request(request)
1663
- request.url = self._client.format_url(request.url)
1549
+ _request = _convert_request(_request)
1550
+ _request.url = self._client.format_url(_request.url)
1664
1551
 
1552
+ _stream = False
1665
1553
  pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access
1666
- request, stream=False, **kwargs
1554
+ _request, stream=_stream, **kwargs
1667
1555
  )
1668
1556
 
1669
1557
  response = pipeline_response.http_response
@@ -1675,13 +1563,9 @@ class StorageAccountsOperations:
1675
1563
  deserialized = self._deserialize("StorageAccountManagementPolicies", pipeline_response)
1676
1564
 
1677
1565
  if cls:
1678
- return cls(pipeline_response, deserialized, {})
1566
+ return cls(pipeline_response, deserialized, {}) # type: ignore
1679
1567
 
1680
- return deserialized
1681
-
1682
- create_or_update_management_policies.metadata = {
1683
- "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/managementPolicies/{managementPolicyName}"
1684
- }
1568
+ return deserialized # type: ignore
1685
1569
 
1686
1570
  @distributed_trace_async
1687
1571
  async def delete_management_policies( # pylint: disable=inconsistent-return-statements
@@ -1704,12 +1588,11 @@ class StorageAccountsOperations:
1704
1588
  always be 'default'. "default" Required.
1705
1589
  :type management_policy_name: str or
1706
1590
  ~azure.mgmt.storage.v2018_03_01_preview.models.ManagementPolicyName
1707
- :keyword callable cls: A custom type or function that will be passed the direct response
1708
1591
  :return: None or the result of cls(response)
1709
1592
  :rtype: None
1710
1593
  :raises ~azure.core.exceptions.HttpResponseError:
1711
1594
  """
1712
- error_map = {
1595
+ error_map: MutableMapping[int, Type[HttpResponseError]] = {
1713
1596
  401: ClientAuthenticationError,
1714
1597
  404: ResourceNotFoundError,
1715
1598
  409: ResourceExistsError,
@@ -1720,26 +1603,26 @@ class StorageAccountsOperations:
1720
1603
  _headers = kwargs.pop("headers", {}) or {}
1721
1604
  _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
1722
1605
 
1723
- api_version: Literal["2018-03-01-preview"] = kwargs.pop(
1724
- "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")
1725
1608
  )
1726
1609
  cls: ClsType[None] = kwargs.pop("cls", None)
1727
1610
 
1728
- request = build_delete_management_policies_request(
1611
+ _request = build_delete_management_policies_request(
1729
1612
  resource_group_name=resource_group_name,
1730
1613
  account_name=account_name,
1731
1614
  management_policy_name=management_policy_name,
1732
1615
  subscription_id=self._config.subscription_id,
1733
1616
  api_version=api_version,
1734
- template_url=self.delete_management_policies.metadata["url"],
1735
1617
  headers=_headers,
1736
1618
  params=_params,
1737
1619
  )
1738
- request = _convert_request(request)
1739
- request.url = self._client.format_url(request.url)
1620
+ _request = _convert_request(_request)
1621
+ _request.url = self._client.format_url(_request.url)
1740
1622
 
1623
+ _stream = False
1741
1624
  pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access
1742
- request, stream=False, **kwargs
1625
+ _request, stream=_stream, **kwargs
1743
1626
  )
1744
1627
 
1745
1628
  response = pipeline_response.http_response
@@ -1749,8 +1632,4 @@ class StorageAccountsOperations:
1749
1632
  raise HttpResponseError(response=response, error_format=ARMErrorFormat)
1750
1633
 
1751
1634
  if cls:
1752
- return cls(pipeline_response, None, {})
1753
-
1754
- delete_management_policies.metadata = {
1755
- "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/managementPolicies/{managementPolicyName}"
1756
- }
1635
+ return cls(pipeline_response, None, {}) # type: ignore