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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (813) hide show
  1. azure/mgmt/storage/_configuration.py +2 -3
  2. azure/mgmt/storage/_serialization.py +66 -60
  3. azure/mgmt/storage/_storage_management_client.py +232 -26
  4. azure/mgmt/storage/_version.py +1 -1
  5. azure/mgmt/storage/aio/_configuration.py +2 -3
  6. azure/mgmt/storage/aio/_storage_management_client.py +232 -26
  7. azure/mgmt/storage/models.py +1 -1
  8. azure/mgmt/storage/v2015_06_15/_configuration.py +4 -11
  9. azure/mgmt/storage/v2015_06_15/_patch.py +1 -0
  10. azure/mgmt/storage/v2015_06_15/_storage_management.py +25 -5
  11. azure/mgmt/storage/v2015_06_15/_vendor.py +0 -14
  12. azure/mgmt/storage/v2015_06_15/_version.py +1 -1
  13. azure/mgmt/storage/v2015_06_15/aio/_configuration.py +4 -11
  14. azure/mgmt/storage/v2015_06_15/aio/_patch.py +1 -0
  15. azure/mgmt/storage/v2015_06_15/aio/_storage_management.py +27 -5
  16. azure/mgmt/storage/v2015_06_15/aio/operations/_storage_accounts_operations.py +132 -213
  17. azure/mgmt/storage/v2015_06_15/aio/operations/_usage_operations.py +20 -22
  18. azure/mgmt/storage/v2015_06_15/models/_models_py3.py +6 -6
  19. azure/mgmt/storage/v2015_06_15/operations/_storage_accounts_operations.py +151 -232
  20. azure/mgmt/storage/v2015_06_15/operations/_usage_operations.py +23 -25
  21. azure/mgmt/storage/v2016_01_01/_configuration.py +4 -11
  22. azure/mgmt/storage/v2016_01_01/_patch.py +1 -0
  23. azure/mgmt/storage/v2016_01_01/_storage_management_client.py +25 -5
  24. azure/mgmt/storage/v2016_01_01/_vendor.py +0 -14
  25. azure/mgmt/storage/v2016_01_01/_version.py +1 -1
  26. azure/mgmt/storage/v2016_01_01/aio/_configuration.py +4 -11
  27. azure/mgmt/storage/v2016_01_01/aio/_patch.py +1 -0
  28. azure/mgmt/storage/v2016_01_01/aio/_storage_management_client.py +27 -5
  29. azure/mgmt/storage/v2016_01_01/aio/operations/_storage_accounts_operations.py +132 -213
  30. azure/mgmt/storage/v2016_01_01/aio/operations/_usage_operations.py +20 -22
  31. azure/mgmt/storage/v2016_01_01/models/_models_py3.py +7 -7
  32. azure/mgmt/storage/v2016_01_01/operations/_storage_accounts_operations.py +151 -232
  33. azure/mgmt/storage/v2016_01_01/operations/_usage_operations.py +23 -25
  34. azure/mgmt/storage/v2016_12_01/_configuration.py +4 -11
  35. azure/mgmt/storage/v2016_12_01/_patch.py +1 -0
  36. azure/mgmt/storage/v2016_12_01/_storage_management.py +25 -5
  37. azure/mgmt/storage/v2016_12_01/_vendor.py +0 -14
  38. azure/mgmt/storage/v2016_12_01/_version.py +1 -1
  39. azure/mgmt/storage/v2016_12_01/aio/_configuration.py +4 -11
  40. azure/mgmt/storage/v2016_12_01/aio/_patch.py +1 -0
  41. azure/mgmt/storage/v2016_12_01/aio/_storage_management.py +27 -5
  42. azure/mgmt/storage/v2016_12_01/aio/operations/_storage_accounts_operations.py +162 -263
  43. azure/mgmt/storage/v2016_12_01/aio/operations/_usage_operations.py +20 -22
  44. azure/mgmt/storage/v2016_12_01/models/_models_py3.py +9 -9
  45. azure/mgmt/storage/v2016_12_01/operations/_storage_accounts_operations.py +185 -286
  46. azure/mgmt/storage/v2016_12_01/operations/_usage_operations.py +23 -25
  47. azure/mgmt/storage/v2017_06_01/_configuration.py +4 -11
  48. azure/mgmt/storage/v2017_06_01/_patch.py +1 -0
  49. azure/mgmt/storage/v2017_06_01/_storage_management.py +27 -7
  50. azure/mgmt/storage/v2017_06_01/_vendor.py +0 -14
  51. azure/mgmt/storage/v2017_06_01/_version.py +1 -1
  52. azure/mgmt/storage/v2017_06_01/aio/_configuration.py +4 -11
  53. azure/mgmt/storage/v2017_06_01/aio/_patch.py +1 -0
  54. azure/mgmt/storage/v2017_06_01/aio/_storage_management.py +29 -7
  55. azure/mgmt/storage/v2017_06_01/aio/operations/_operations.py +20 -22
  56. azure/mgmt/storage/v2017_06_01/aio/operations/_skus_operations.py +20 -22
  57. azure/mgmt/storage/v2017_06_01/aio/operations/_storage_accounts_operations.py +162 -263
  58. azure/mgmt/storage/v2017_06_01/aio/operations/_usage_operations.py +20 -22
  59. azure/mgmt/storage/v2017_06_01/models/_models_py3.py +16 -22
  60. azure/mgmt/storage/v2017_06_01/operations/_operations.py +21 -23
  61. azure/mgmt/storage/v2017_06_01/operations/_skus_operations.py +23 -25
  62. azure/mgmt/storage/v2017_06_01/operations/_storage_accounts_operations.py +185 -286
  63. azure/mgmt/storage/v2017_06_01/operations/_usage_operations.py +23 -25
  64. azure/mgmt/storage/v2017_10_01/_configuration.py +4 -11
  65. azure/mgmt/storage/v2017_10_01/_patch.py +1 -0
  66. azure/mgmt/storage/v2017_10_01/_storage_management.py +27 -7
  67. azure/mgmt/storage/v2017_10_01/_vendor.py +0 -14
  68. azure/mgmt/storage/v2017_10_01/_version.py +1 -1
  69. azure/mgmt/storage/v2017_10_01/aio/_configuration.py +4 -11
  70. azure/mgmt/storage/v2017_10_01/aio/_patch.py +1 -0
  71. azure/mgmt/storage/v2017_10_01/aio/_storage_management.py +29 -7
  72. azure/mgmt/storage/v2017_10_01/aio/operations/_operations.py +20 -22
  73. azure/mgmt/storage/v2017_10_01/aio/operations/_skus_operations.py +20 -22
  74. azure/mgmt/storage/v2017_10_01/aio/operations/_storage_accounts_operations.py +162 -263
  75. azure/mgmt/storage/v2017_10_01/aio/operations/_usage_operations.py +20 -22
  76. azure/mgmt/storage/v2017_10_01/models/_models_py3.py +16 -22
  77. azure/mgmt/storage/v2017_10_01/operations/_operations.py +21 -23
  78. azure/mgmt/storage/v2017_10_01/operations/_skus_operations.py +23 -25
  79. azure/mgmt/storage/v2017_10_01/operations/_storage_accounts_operations.py +185 -286
  80. azure/mgmt/storage/v2017_10_01/operations/_usage_operations.py +23 -25
  81. azure/mgmt/storage/v2018_02_01/_configuration.py +4 -11
  82. azure/mgmt/storage/v2018_02_01/_patch.py +1 -0
  83. azure/mgmt/storage/v2018_02_01/_storage_management_client.py +30 -8
  84. azure/mgmt/storage/v2018_02_01/_vendor.py +0 -14
  85. azure/mgmt/storage/v2018_02_01/_version.py +1 -1
  86. azure/mgmt/storage/v2018_02_01/aio/_configuration.py +4 -11
  87. azure/mgmt/storage/v2018_02_01/aio/_patch.py +1 -0
  88. azure/mgmt/storage/v2018_02_01/aio/_storage_management_client.py +32 -8
  89. azure/mgmt/storage/v2018_02_01/aio/operations/_blob_containers_operations.py +166 -264
  90. azure/mgmt/storage/v2018_02_01/aio/operations/_operations.py +20 -22
  91. azure/mgmt/storage/v2018_02_01/aio/operations/_skus_operations.py +20 -22
  92. azure/mgmt/storage/v2018_02_01/aio/operations/_storage_accounts_operations.py +162 -263
  93. azure/mgmt/storage/v2018_02_01/aio/operations/_usage_operations.py +34 -41
  94. azure/mgmt/storage/v2018_02_01/models/_models_py3.py +28 -34
  95. azure/mgmt/storage/v2018_02_01/models/_storage_management_client_enums.py +1 -1
  96. azure/mgmt/storage/v2018_02_01/operations/_blob_containers_operations.py +194 -292
  97. azure/mgmt/storage/v2018_02_01/operations/_operations.py +21 -23
  98. azure/mgmt/storage/v2018_02_01/operations/_skus_operations.py +23 -25
  99. azure/mgmt/storage/v2018_02_01/operations/_storage_accounts_operations.py +185 -286
  100. azure/mgmt/storage/v2018_02_01/operations/_usage_operations.py +39 -46
  101. azure/mgmt/storage/v2018_03_01_preview/_configuration.py +4 -11
  102. azure/mgmt/storage/v2018_03_01_preview/_patch.py +1 -0
  103. azure/mgmt/storage/v2018_03_01_preview/_storage_management_client.py +41 -8
  104. azure/mgmt/storage/v2018_03_01_preview/_vendor.py +0 -14
  105. azure/mgmt/storage/v2018_03_01_preview/_version.py +1 -1
  106. azure/mgmt/storage/v2018_03_01_preview/aio/_configuration.py +4 -11
  107. azure/mgmt/storage/v2018_03_01_preview/aio/_patch.py +1 -0
  108. azure/mgmt/storage/v2018_03_01_preview/aio/_storage_management_client.py +43 -8
  109. azure/mgmt/storage/v2018_03_01_preview/aio/operations/__init__.py +2 -0
  110. azure/mgmt/storage/v2018_03_01_preview/aio/operations/_blob_containers_operations.py +182 -277
  111. azure/mgmt/storage/{v2018_07_01 → v2018_03_01_preview}/aio/operations/_management_policies_operations.py +55 -72
  112. azure/mgmt/storage/v2018_03_01_preview/aio/operations/_operations.py +21 -23
  113. azure/mgmt/storage/v2018_03_01_preview/aio/operations/_skus_operations.py +21 -23
  114. azure/mgmt/storage/v2018_03_01_preview/aio/operations/_storage_accounts_operations.py +209 -330
  115. azure/mgmt/storage/v2018_03_01_preview/aio/operations/_usages_operations.py +36 -43
  116. azure/mgmt/storage/v2018_03_01_preview/models/_models_py3.py +30 -34
  117. azure/mgmt/storage/v2018_03_01_preview/models/_storage_management_client_enums.py +1 -1
  118. azure/mgmt/storage/v2018_03_01_preview/operations/__init__.py +2 -0
  119. azure/mgmt/storage/v2018_03_01_preview/operations/_blob_containers_operations.py +210 -331
  120. azure/mgmt/storage/{v2018_07_01 → v2018_03_01_preview}/operations/_management_policies_operations.py +62 -85
  121. azure/mgmt/storage/v2018_03_01_preview/operations/_operations.py +22 -26
  122. azure/mgmt/storage/v2018_03_01_preview/operations/_skus_operations.py +24 -28
  123. azure/mgmt/storage/v2018_03_01_preview/operations/_storage_accounts_operations.py +239 -388
  124. azure/mgmt/storage/v2018_03_01_preview/operations/_usages_operations.py +41 -52
  125. azure/mgmt/storage/v2018_07_01/_configuration.py +9 -4
  126. azure/mgmt/storage/v2018_07_01/_patch.py +1 -0
  127. azure/mgmt/storage/v2018_07_01/_storage_management_client.py +36 -16
  128. azure/mgmt/storage/v2018_07_01/_vendor.py +0 -14
  129. azure/mgmt/storage/v2018_07_01/_version.py +1 -1
  130. azure/mgmt/storage/v2018_07_01/aio/_configuration.py +9 -4
  131. azure/mgmt/storage/v2018_07_01/aio/_patch.py +1 -0
  132. azure/mgmt/storage/v2018_07_01/aio/_storage_management_client.py +38 -16
  133. azure/mgmt/storage/v2018_07_01/aio/operations/__init__.py +0 -2
  134. azure/mgmt/storage/v2018_07_01/aio/operations/_blob_containers_operations.py +166 -264
  135. azure/mgmt/storage/v2018_07_01/aio/operations/_blob_services_operations.py +31 -44
  136. azure/mgmt/storage/v2018_07_01/aio/operations/_operations.py +31 -21
  137. azure/mgmt/storage/v2018_07_01/aio/operations/_skus_operations.py +31 -21
  138. azure/mgmt/storage/v2018_07_01/aio/operations/_storage_accounts_operations.py +195 -289
  139. azure/mgmt/storage/v2018_07_01/aio/operations/_usages_operations.py +31 -23
  140. azure/mgmt/storage/v2018_07_01/models/__init__.py +0 -10
  141. azure/mgmt/storage/v2018_07_01/models/_models_py3.py +30 -164
  142. azure/mgmt/storage/v2018_07_01/models/_storage_management_client_enums.py +1 -7
  143. azure/mgmt/storage/v2018_07_01/operations/__init__.py +0 -2
  144. azure/mgmt/storage/v2018_07_01/operations/_blob_containers_operations.py +194 -292
  145. azure/mgmt/storage/v2018_07_01/operations/_blob_services_operations.py +36 -49
  146. azure/mgmt/storage/v2018_07_01/operations/_operations.py +32 -22
  147. azure/mgmt/storage/v2018_07_01/operations/_skus_operations.py +34 -24
  148. azure/mgmt/storage/v2018_07_01/operations/_storage_accounts_operations.py +220 -314
  149. azure/mgmt/storage/v2018_07_01/operations/_usages_operations.py +34 -26
  150. azure/mgmt/storage/v2018_11_01/_configuration.py +4 -11
  151. azure/mgmt/storage/v2018_11_01/_patch.py +1 -0
  152. azure/mgmt/storage/v2018_11_01/_storage_management_client.py +34 -10
  153. azure/mgmt/storage/v2018_11_01/_vendor.py +0 -14
  154. azure/mgmt/storage/v2018_11_01/_version.py +1 -1
  155. azure/mgmt/storage/v2018_11_01/aio/_configuration.py +4 -11
  156. azure/mgmt/storage/v2018_11_01/aio/_patch.py +1 -0
  157. azure/mgmt/storage/v2018_11_01/aio/_storage_management_client.py +36 -10
  158. azure/mgmt/storage/v2018_11_01/aio/operations/_blob_containers_operations.py +164 -262
  159. azure/mgmt/storage/v2018_11_01/aio/operations/_blob_services_operations.py +31 -44
  160. azure/mgmt/storage/v2018_11_01/aio/operations/_management_policies_operations.py +39 -57
  161. azure/mgmt/storage/v2018_11_01/aio/operations/_operations.py +20 -22
  162. azure/mgmt/storage/v2018_11_01/aio/operations/_skus_operations.py +20 -22
  163. azure/mgmt/storage/v2018_11_01/aio/operations/_storage_accounts_operations.py +182 -304
  164. azure/mgmt/storage/v2018_11_01/aio/operations/_usages_operations.py +20 -24
  165. azure/mgmt/storage/v2018_11_01/models/_models_py3.py +37 -43
  166. azure/mgmt/storage/v2018_11_01/models/_storage_management_client_enums.py +1 -1
  167. azure/mgmt/storage/v2018_11_01/operations/_blob_containers_operations.py +192 -290
  168. azure/mgmt/storage/v2018_11_01/operations/_blob_services_operations.py +36 -49
  169. azure/mgmt/storage/v2018_11_01/operations/_management_policies_operations.py +46 -64
  170. azure/mgmt/storage/v2018_11_01/operations/_operations.py +21 -23
  171. azure/mgmt/storage/v2018_11_01/operations/_skus_operations.py +23 -25
  172. azure/mgmt/storage/v2018_11_01/operations/_storage_accounts_operations.py +210 -332
  173. azure/mgmt/storage/v2018_11_01/operations/_usages_operations.py +23 -27
  174. azure/mgmt/storage/v2019_04_01/_configuration.py +4 -11
  175. azure/mgmt/storage/v2019_04_01/_patch.py +1 -0
  176. azure/mgmt/storage/v2019_04_01/_storage_management_client.py +40 -12
  177. azure/mgmt/storage/v2019_04_01/_vendor.py +0 -14
  178. azure/mgmt/storage/v2019_04_01/_version.py +1 -1
  179. azure/mgmt/storage/v2019_04_01/aio/_configuration.py +4 -11
  180. azure/mgmt/storage/v2019_04_01/aio/_patch.py +1 -0
  181. azure/mgmt/storage/v2019_04_01/aio/_storage_management_client.py +42 -12
  182. azure/mgmt/storage/v2019_04_01/aio/operations/_blob_containers_operations.py +169 -267
  183. azure/mgmt/storage/v2019_04_01/aio/operations/_blob_services_operations.py +45 -63
  184. azure/mgmt/storage/v2019_04_01/aio/operations/_file_services_operations.py +41 -59
  185. azure/mgmt/storage/v2019_04_01/aio/operations/_file_shares_operations.py +68 -101
  186. azure/mgmt/storage/v2019_04_01/aio/operations/_management_policies_operations.py +39 -57
  187. azure/mgmt/storage/v2019_04_01/aio/operations/_operations.py +20 -22
  188. azure/mgmt/storage/v2019_04_01/aio/operations/_skus_operations.py +20 -22
  189. azure/mgmt/storage/v2019_04_01/aio/operations/_storage_accounts_operations.py +183 -304
  190. azure/mgmt/storage/v2019_04_01/aio/operations/_usages_operations.py +20 -24
  191. azure/mgmt/storage/v2019_04_01/models/_models_py3.py +42 -48
  192. azure/mgmt/storage/v2019_04_01/models/_storage_management_client_enums.py +1 -1
  193. azure/mgmt/storage/v2019_04_01/operations/_blob_containers_operations.py +197 -295
  194. azure/mgmt/storage/v2019_04_01/operations/_blob_services_operations.py +52 -70
  195. azure/mgmt/storage/v2019_04_01/operations/_file_services_operations.py +48 -66
  196. azure/mgmt/storage/v2019_04_01/operations/_file_shares_operations.py +79 -112
  197. azure/mgmt/storage/v2019_04_01/operations/_management_policies_operations.py +46 -64
  198. azure/mgmt/storage/v2019_04_01/operations/_operations.py +21 -23
  199. azure/mgmt/storage/v2019_04_01/operations/_skus_operations.py +23 -25
  200. azure/mgmt/storage/v2019_04_01/operations/_storage_accounts_operations.py +211 -332
  201. azure/mgmt/storage/v2019_04_01/operations/_usages_operations.py +23 -27
  202. azure/mgmt/storage/v2019_06_01/_configuration.py +4 -11
  203. azure/mgmt/storage/v2019_06_01/_patch.py +1 -0
  204. azure/mgmt/storage/v2019_06_01/_storage_management_client.py +54 -22
  205. azure/mgmt/storage/v2019_06_01/_vendor.py +0 -14
  206. azure/mgmt/storage/v2019_06_01/_version.py +1 -1
  207. azure/mgmt/storage/v2019_06_01/aio/_configuration.py +4 -11
  208. azure/mgmt/storage/v2019_06_01/aio/_patch.py +1 -0
  209. azure/mgmt/storage/v2019_06_01/aio/_storage_management_client.py +56 -22
  210. azure/mgmt/storage/v2019_06_01/aio/operations/_blob_containers_operations.py +169 -267
  211. azure/mgmt/storage/v2019_06_01/aio/operations/_blob_inventory_policies_operations.py +53 -76
  212. azure/mgmt/storage/v2019_06_01/aio/operations/_blob_services_operations.py +45 -63
  213. azure/mgmt/storage/v2019_06_01/aio/operations/_encryption_scopes_operations.py +58 -86
  214. azure/mgmt/storage/v2019_06_01/aio/operations/_file_services_operations.py +41 -59
  215. azure/mgmt/storage/v2019_06_01/aio/operations/_file_shares_operations.py +82 -125
  216. azure/mgmt/storage/v2019_06_01/aio/operations/_management_policies_operations.py +39 -57
  217. azure/mgmt/storage/v2019_06_01/aio/operations/_object_replication_policies_operations.py +54 -76
  218. azure/mgmt/storage/v2019_06_01/aio/operations/_operations.py +20 -22
  219. azure/mgmt/storage/v2019_06_01/aio/operations/_private_endpoint_connections_operations.py +53 -76
  220. azure/mgmt/storage/v2019_06_01/aio/operations/_private_link_resources_operations.py +15 -19
  221. azure/mgmt/storage/v2019_06_01/aio/operations/_queue_operations.py +68 -101
  222. azure/mgmt/storage/v2019_06_01/aio/operations/_queue_services_operations.py +40 -58
  223. azure/mgmt/storage/v2019_06_01/aio/operations/_skus_operations.py +20 -22
  224. azure/mgmt/storage/v2019_06_01/aio/operations/_storage_accounts_operations.py +203 -357
  225. azure/mgmt/storage/v2019_06_01/aio/operations/_table_operations.py +55 -79
  226. azure/mgmt/storage/v2019_06_01/aio/operations/_table_services_operations.py +40 -58
  227. azure/mgmt/storage/v2019_06_01/aio/operations/_usages_operations.py +20 -24
  228. azure/mgmt/storage/v2019_06_01/models/_models_py3.py +62 -68
  229. azure/mgmt/storage/v2019_06_01/models/_storage_management_client_enums.py +1 -1
  230. azure/mgmt/storage/v2019_06_01/operations/_blob_containers_operations.py +197 -295
  231. azure/mgmt/storage/v2019_06_01/operations/_blob_inventory_policies_operations.py +62 -85
  232. azure/mgmt/storage/v2019_06_01/operations/_blob_services_operations.py +52 -70
  233. azure/mgmt/storage/v2019_06_01/operations/_encryption_scopes_operations.py +67 -95
  234. azure/mgmt/storage/v2019_06_01/operations/_file_services_operations.py +48 -66
  235. azure/mgmt/storage/v2019_06_01/operations/_file_shares_operations.py +95 -138
  236. azure/mgmt/storage/v2019_06_01/operations/_management_policies_operations.py +46 -64
  237. azure/mgmt/storage/v2019_06_01/operations/_object_replication_policies_operations.py +63 -85
  238. azure/mgmt/storage/v2019_06_01/operations/_operations.py +21 -23
  239. azure/mgmt/storage/v2019_06_01/operations/_private_endpoint_connections_operations.py +62 -85
  240. azure/mgmt/storage/v2019_06_01/operations/_private_link_resources_operations.py +18 -22
  241. azure/mgmt/storage/v2019_06_01/operations/_queue_operations.py +79 -112
  242. azure/mgmt/storage/v2019_06_01/operations/_queue_services_operations.py +47 -65
  243. azure/mgmt/storage/v2019_06_01/operations/_skus_operations.py +23 -25
  244. azure/mgmt/storage/v2019_06_01/operations/_storage_accounts_operations.py +233 -387
  245. azure/mgmt/storage/v2019_06_01/operations/_table_operations.py +66 -90
  246. azure/mgmt/storage/v2019_06_01/operations/_table_services_operations.py +47 -65
  247. azure/mgmt/storage/v2019_06_01/operations/_usages_operations.py +23 -27
  248. azure/mgmt/storage/v2020_08_01_preview/_configuration.py +4 -11
  249. azure/mgmt/storage/v2020_08_01_preview/_patch.py +1 -0
  250. azure/mgmt/storage/v2020_08_01_preview/_storage_management_client.py +64 -24
  251. azure/mgmt/storage/v2020_08_01_preview/_vendor.py +0 -14
  252. azure/mgmt/storage/v2020_08_01_preview/_version.py +1 -1
  253. azure/mgmt/storage/v2020_08_01_preview/aio/_configuration.py +4 -11
  254. azure/mgmt/storage/v2020_08_01_preview/aio/_patch.py +1 -0
  255. azure/mgmt/storage/v2020_08_01_preview/aio/_storage_management_client.py +66 -24
  256. azure/mgmt/storage/v2020_08_01_preview/aio/operations/_blob_containers_operations.py +185 -280
  257. azure/mgmt/storage/v2020_08_01_preview/aio/operations/_blob_inventory_policies_operations.py +58 -80
  258. azure/mgmt/storage/v2020_08_01_preview/aio/operations/_blob_services_operations.py +49 -66
  259. azure/mgmt/storage/v2020_08_01_preview/aio/operations/_deleted_accounts_operations.py +31 -38
  260. azure/mgmt/storage/v2020_08_01_preview/aio/operations/_encryption_scopes_operations.py +64 -90
  261. azure/mgmt/storage/v2020_08_01_preview/aio/operations/_file_services_operations.py +45 -62
  262. azure/mgmt/storage/v2020_08_01_preview/aio/operations/_file_shares_operations.py +88 -131
  263. azure/mgmt/storage/v2020_08_01_preview/aio/operations/_management_policies_operations.py +42 -60
  264. azure/mgmt/storage/v2020_08_01_preview/aio/operations/_object_replication_policies_operations.py +59 -80
  265. azure/mgmt/storage/v2020_08_01_preview/aio/operations/_operations.py +21 -23
  266. azure/mgmt/storage/v2020_08_01_preview/aio/operations/_private_endpoint_connections_operations.py +57 -80
  267. azure/mgmt/storage/v2020_08_01_preview/aio/operations/_private_link_resources_operations.py +16 -20
  268. azure/mgmt/storage/v2020_08_01_preview/aio/operations/_queue_operations.py +73 -106
  269. azure/mgmt/storage/v2020_08_01_preview/aio/operations/_queue_services_operations.py +44 -61
  270. azure/mgmt/storage/v2020_08_01_preview/aio/operations/_skus_operations.py +21 -23
  271. azure/mgmt/storage/v2020_08_01_preview/aio/operations/_storage_accounts_operations.py +221 -374
  272. azure/mgmt/storage/v2020_08_01_preview/aio/operations/_table_operations.py +60 -84
  273. azure/mgmt/storage/v2020_08_01_preview/aio/operations/_table_services_operations.py +44 -61
  274. azure/mgmt/storage/v2020_08_01_preview/aio/operations/_usages_operations.py +21 -25
  275. azure/mgmt/storage/v2020_08_01_preview/models/_models_py3.py +64 -86
  276. azure/mgmt/storage/v2020_08_01_preview/models/_storage_management_client_enums.py +1 -1
  277. azure/mgmt/storage/v2020_08_01_preview/operations/_blob_containers_operations.py +213 -334
  278. azure/mgmt/storage/v2020_08_01_preview/operations/_blob_inventory_policies_operations.py +67 -97
  279. azure/mgmt/storage/v2020_08_01_preview/operations/_blob_services_operations.py +56 -79
  280. azure/mgmt/storage/v2020_08_01_preview/operations/_deleted_accounts_operations.py +36 -47
  281. azure/mgmt/storage/v2020_08_01_preview/operations/_encryption_scopes_operations.py +73 -107
  282. azure/mgmt/storage/v2020_08_01_preview/operations/_file_services_operations.py +52 -75
  283. azure/mgmt/storage/v2020_08_01_preview/operations/_file_shares_operations.py +101 -156
  284. azure/mgmt/storage/v2020_08_01_preview/operations/_management_policies_operations.py +49 -73
  285. azure/mgmt/storage/v2020_08_01_preview/operations/_object_replication_policies_operations.py +68 -97
  286. azure/mgmt/storage/v2020_08_01_preview/operations/_operations.py +22 -26
  287. azure/mgmt/storage/v2020_08_01_preview/operations/_private_endpoint_connections_operations.py +66 -97
  288. azure/mgmt/storage/v2020_08_01_preview/operations/_private_link_resources_operations.py +19 -25
  289. azure/mgmt/storage/v2020_08_01_preview/operations/_queue_operations.py +84 -127
  290. azure/mgmt/storage/v2020_08_01_preview/operations/_queue_services_operations.py +51 -74
  291. azure/mgmt/storage/v2020_08_01_preview/operations/_skus_operations.py +24 -28
  292. azure/mgmt/storage/v2020_08_01_preview/operations/_storage_accounts_operations.py +251 -432
  293. azure/mgmt/storage/v2020_08_01_preview/operations/_table_operations.py +71 -105
  294. azure/mgmt/storage/v2020_08_01_preview/operations/_table_services_operations.py +51 -74
  295. azure/mgmt/storage/v2020_08_01_preview/operations/_usages_operations.py +24 -30
  296. azure/mgmt/storage/v2021_01_01/_configuration.py +4 -11
  297. azure/mgmt/storage/v2021_01_01/_patch.py +1 -0
  298. azure/mgmt/storage/v2021_01_01/_storage_management_client.py +55 -23
  299. azure/mgmt/storage/v2021_01_01/_vendor.py +0 -14
  300. azure/mgmt/storage/v2021_01_01/_version.py +1 -1
  301. azure/mgmt/storage/v2021_01_01/aio/_configuration.py +4 -11
  302. azure/mgmt/storage/v2021_01_01/aio/_patch.py +1 -0
  303. azure/mgmt/storage/v2021_01_01/aio/_storage_management_client.py +57 -23
  304. azure/mgmt/storage/v2021_01_01/aio/operations/_blob_containers_operations.py +169 -267
  305. azure/mgmt/storage/v2021_01_01/aio/operations/_blob_inventory_policies_operations.py +53 -76
  306. azure/mgmt/storage/v2021_01_01/aio/operations/_blob_services_operations.py +45 -63
  307. azure/mgmt/storage/v2021_01_01/aio/operations/_deleted_accounts_operations.py +29 -36
  308. azure/mgmt/storage/v2021_01_01/aio/operations/_encryption_scopes_operations.py +58 -86
  309. azure/mgmt/storage/v2021_01_01/aio/operations/_file_services_operations.py +41 -59
  310. azure/mgmt/storage/v2021_01_01/aio/operations/_file_shares_operations.py +82 -125
  311. azure/mgmt/storage/v2021_01_01/aio/operations/_management_policies_operations.py +39 -57
  312. azure/mgmt/storage/v2021_01_01/aio/operations/_object_replication_policies_operations.py +54 -76
  313. azure/mgmt/storage/v2021_01_01/aio/operations/_operations.py +20 -22
  314. azure/mgmt/storage/v2021_01_01/aio/operations/_private_endpoint_connections_operations.py +53 -76
  315. azure/mgmt/storage/v2021_01_01/aio/operations/_private_link_resources_operations.py +15 -19
  316. azure/mgmt/storage/v2021_01_01/aio/operations/_queue_operations.py +68 -101
  317. azure/mgmt/storage/v2021_01_01/aio/operations/_queue_services_operations.py +40 -58
  318. azure/mgmt/storage/v2021_01_01/aio/operations/_skus_operations.py +20 -22
  319. azure/mgmt/storage/v2021_01_01/aio/operations/_storage_accounts_operations.py +203 -357
  320. azure/mgmt/storage/v2021_01_01/aio/operations/_table_operations.py +55 -79
  321. azure/mgmt/storage/v2021_01_01/aio/operations/_table_services_operations.py +40 -58
  322. azure/mgmt/storage/v2021_01_01/aio/operations/_usages_operations.py +20 -24
  323. azure/mgmt/storage/v2021_01_01/models/_models_py3.py +64 -86
  324. azure/mgmt/storage/v2021_01_01/models/_storage_management_client_enums.py +1 -1
  325. azure/mgmt/storage/v2021_01_01/operations/_blob_containers_operations.py +197 -295
  326. azure/mgmt/storage/v2021_01_01/operations/_blob_inventory_policies_operations.py +62 -85
  327. azure/mgmt/storage/v2021_01_01/operations/_blob_services_operations.py +52 -70
  328. azure/mgmt/storage/v2021_01_01/operations/_deleted_accounts_operations.py +34 -41
  329. azure/mgmt/storage/v2021_01_01/operations/_encryption_scopes_operations.py +67 -95
  330. azure/mgmt/storage/v2021_01_01/operations/_file_services_operations.py +48 -66
  331. azure/mgmt/storage/v2021_01_01/operations/_file_shares_operations.py +95 -138
  332. azure/mgmt/storage/v2021_01_01/operations/_management_policies_operations.py +46 -64
  333. azure/mgmt/storage/v2021_01_01/operations/_object_replication_policies_operations.py +63 -85
  334. azure/mgmt/storage/v2021_01_01/operations/_operations.py +21 -23
  335. azure/mgmt/storage/v2021_01_01/operations/_private_endpoint_connections_operations.py +62 -85
  336. azure/mgmt/storage/v2021_01_01/operations/_private_link_resources_operations.py +18 -22
  337. azure/mgmt/storage/v2021_01_01/operations/_queue_operations.py +79 -112
  338. azure/mgmt/storage/v2021_01_01/operations/_queue_services_operations.py +47 -65
  339. azure/mgmt/storage/v2021_01_01/operations/_skus_operations.py +23 -25
  340. azure/mgmt/storage/v2021_01_01/operations/_storage_accounts_operations.py +233 -387
  341. azure/mgmt/storage/v2021_01_01/operations/_table_operations.py +66 -90
  342. azure/mgmt/storage/v2021_01_01/operations/_table_services_operations.py +47 -65
  343. azure/mgmt/storage/v2021_01_01/operations/_usages_operations.py +23 -27
  344. azure/mgmt/storage/v2021_02_01/_configuration.py +4 -11
  345. azure/mgmt/storage/v2021_02_01/_patch.py +1 -0
  346. azure/mgmt/storage/v2021_02_01/_storage_management_client.py +55 -23
  347. azure/mgmt/storage/v2021_02_01/_vendor.py +0 -14
  348. azure/mgmt/storage/v2021_02_01/_version.py +1 -1
  349. azure/mgmt/storage/v2021_02_01/aio/_configuration.py +4 -11
  350. azure/mgmt/storage/v2021_02_01/aio/_patch.py +1 -0
  351. azure/mgmt/storage/v2021_02_01/aio/_storage_management_client.py +57 -23
  352. azure/mgmt/storage/v2021_02_01/aio/operations/_blob_containers_operations.py +169 -267
  353. azure/mgmt/storage/v2021_02_01/aio/operations/_blob_inventory_policies_operations.py +53 -76
  354. azure/mgmt/storage/v2021_02_01/aio/operations/_blob_services_operations.py +45 -63
  355. azure/mgmt/storage/v2021_02_01/aio/operations/_deleted_accounts_operations.py +29 -36
  356. azure/mgmt/storage/v2021_02_01/aio/operations/_encryption_scopes_operations.py +58 -86
  357. azure/mgmt/storage/v2021_02_01/aio/operations/_file_services_operations.py +41 -59
  358. azure/mgmt/storage/v2021_02_01/aio/operations/_file_shares_operations.py +82 -125
  359. azure/mgmt/storage/v2021_02_01/aio/operations/_management_policies_operations.py +39 -57
  360. azure/mgmt/storage/v2021_02_01/aio/operations/_object_replication_policies_operations.py +54 -76
  361. azure/mgmt/storage/v2021_02_01/aio/operations/_operations.py +20 -22
  362. azure/mgmt/storage/v2021_02_01/aio/operations/_private_endpoint_connections_operations.py +53 -76
  363. azure/mgmt/storage/v2021_02_01/aio/operations/_private_link_resources_operations.py +15 -19
  364. azure/mgmt/storage/v2021_02_01/aio/operations/_queue_operations.py +68 -101
  365. azure/mgmt/storage/v2021_02_01/aio/operations/_queue_services_operations.py +40 -58
  366. azure/mgmt/storage/v2021_02_01/aio/operations/_skus_operations.py +20 -22
  367. azure/mgmt/storage/v2021_02_01/aio/operations/_storage_accounts_operations.py +203 -357
  368. azure/mgmt/storage/v2021_02_01/aio/operations/_table_operations.py +55 -79
  369. azure/mgmt/storage/v2021_02_01/aio/operations/_table_services_operations.py +40 -58
  370. azure/mgmt/storage/v2021_02_01/aio/operations/_usages_operations.py +20 -24
  371. azure/mgmt/storage/v2021_02_01/models/_models_py3.py +66 -88
  372. azure/mgmt/storage/v2021_02_01/models/_storage_management_client_enums.py +1 -1
  373. azure/mgmt/storage/v2021_02_01/operations/_blob_containers_operations.py +197 -295
  374. azure/mgmt/storage/v2021_02_01/operations/_blob_inventory_policies_operations.py +62 -85
  375. azure/mgmt/storage/v2021_02_01/operations/_blob_services_operations.py +52 -70
  376. azure/mgmt/storage/v2021_02_01/operations/_deleted_accounts_operations.py +34 -41
  377. azure/mgmt/storage/v2021_02_01/operations/_encryption_scopes_operations.py +67 -95
  378. azure/mgmt/storage/v2021_02_01/operations/_file_services_operations.py +48 -66
  379. azure/mgmt/storage/v2021_02_01/operations/_file_shares_operations.py +95 -138
  380. azure/mgmt/storage/v2021_02_01/operations/_management_policies_operations.py +46 -64
  381. azure/mgmt/storage/v2021_02_01/operations/_object_replication_policies_operations.py +63 -85
  382. azure/mgmt/storage/v2021_02_01/operations/_operations.py +21 -23
  383. azure/mgmt/storage/v2021_02_01/operations/_private_endpoint_connections_operations.py +62 -85
  384. azure/mgmt/storage/v2021_02_01/operations/_private_link_resources_operations.py +18 -22
  385. azure/mgmt/storage/v2021_02_01/operations/_queue_operations.py +79 -112
  386. azure/mgmt/storage/v2021_02_01/operations/_queue_services_operations.py +47 -65
  387. azure/mgmt/storage/v2021_02_01/operations/_skus_operations.py +23 -25
  388. azure/mgmt/storage/v2021_02_01/operations/_storage_accounts_operations.py +233 -387
  389. azure/mgmt/storage/v2021_02_01/operations/_table_operations.py +66 -90
  390. azure/mgmt/storage/v2021_02_01/operations/_table_services_operations.py +47 -65
  391. azure/mgmt/storage/v2021_02_01/operations/_usages_operations.py +23 -27
  392. azure/mgmt/storage/v2021_04_01/_configuration.py +4 -11
  393. azure/mgmt/storage/v2021_04_01/_patch.py +1 -0
  394. azure/mgmt/storage/v2021_04_01/_storage_management_client.py +55 -23
  395. azure/mgmt/storage/v2021_04_01/_vendor.py +0 -14
  396. azure/mgmt/storage/v2021_04_01/_version.py +1 -1
  397. azure/mgmt/storage/v2021_04_01/aio/_configuration.py +4 -11
  398. azure/mgmt/storage/v2021_04_01/aio/_patch.py +1 -0
  399. azure/mgmt/storage/v2021_04_01/aio/_storage_management_client.py +57 -23
  400. azure/mgmt/storage/v2021_04_01/aio/operations/_blob_containers_operations.py +181 -295
  401. azure/mgmt/storage/v2021_04_01/aio/operations/_blob_inventory_policies_operations.py +53 -76
  402. azure/mgmt/storage/v2021_04_01/aio/operations/_blob_services_operations.py +45 -63
  403. azure/mgmt/storage/v2021_04_01/aio/operations/_deleted_accounts_operations.py +29 -36
  404. azure/mgmt/storage/v2021_04_01/aio/operations/_encryption_scopes_operations.py +58 -86
  405. azure/mgmt/storage/v2021_04_01/aio/operations/_file_services_operations.py +41 -59
  406. azure/mgmt/storage/v2021_04_01/aio/operations/_file_shares_operations.py +98 -151
  407. azure/mgmt/storage/v2021_04_01/aio/operations/_management_policies_operations.py +39 -57
  408. azure/mgmt/storage/v2021_04_01/aio/operations/_object_replication_policies_operations.py +54 -76
  409. azure/mgmt/storage/v2021_04_01/aio/operations/_operations.py +20 -22
  410. azure/mgmt/storage/v2021_04_01/aio/operations/_private_endpoint_connections_operations.py +53 -76
  411. azure/mgmt/storage/v2021_04_01/aio/operations/_private_link_resources_operations.py +15 -19
  412. azure/mgmt/storage/v2021_04_01/aio/operations/_queue_operations.py +68 -101
  413. azure/mgmt/storage/v2021_04_01/aio/operations/_queue_services_operations.py +40 -58
  414. azure/mgmt/storage/v2021_04_01/aio/operations/_skus_operations.py +20 -22
  415. azure/mgmt/storage/v2021_04_01/aio/operations/_storage_accounts_operations.py +203 -357
  416. azure/mgmt/storage/v2021_04_01/aio/operations/_table_operations.py +55 -79
  417. azure/mgmt/storage/v2021_04_01/aio/operations/_table_services_operations.py +40 -58
  418. azure/mgmt/storage/v2021_04_01/aio/operations/_usages_operations.py +20 -24
  419. azure/mgmt/storage/v2021_04_01/models/_models_py3.py +66 -88
  420. azure/mgmt/storage/v2021_04_01/models/_storage_management_client_enums.py +2 -2
  421. azure/mgmt/storage/v2021_04_01/operations/_blob_containers_operations.py +211 -325
  422. azure/mgmt/storage/v2021_04_01/operations/_blob_inventory_policies_operations.py +62 -85
  423. azure/mgmt/storage/v2021_04_01/operations/_blob_services_operations.py +52 -70
  424. azure/mgmt/storage/v2021_04_01/operations/_deleted_accounts_operations.py +34 -41
  425. azure/mgmt/storage/v2021_04_01/operations/_encryption_scopes_operations.py +67 -95
  426. azure/mgmt/storage/v2021_04_01/operations/_file_services_operations.py +48 -66
  427. azure/mgmt/storage/v2021_04_01/operations/_file_shares_operations.py +113 -166
  428. azure/mgmt/storage/v2021_04_01/operations/_management_policies_operations.py +46 -64
  429. azure/mgmt/storage/v2021_04_01/operations/_object_replication_policies_operations.py +63 -85
  430. azure/mgmt/storage/v2021_04_01/operations/_operations.py +21 -23
  431. azure/mgmt/storage/v2021_04_01/operations/_private_endpoint_connections_operations.py +62 -85
  432. azure/mgmt/storage/v2021_04_01/operations/_private_link_resources_operations.py +18 -22
  433. azure/mgmt/storage/v2021_04_01/operations/_queue_operations.py +79 -112
  434. azure/mgmt/storage/v2021_04_01/operations/_queue_services_operations.py +47 -65
  435. azure/mgmt/storage/v2021_04_01/operations/_skus_operations.py +23 -25
  436. azure/mgmt/storage/v2021_04_01/operations/_storage_accounts_operations.py +233 -387
  437. azure/mgmt/storage/v2021_04_01/operations/_table_operations.py +66 -90
  438. azure/mgmt/storage/v2021_04_01/operations/_table_services_operations.py +47 -65
  439. azure/mgmt/storage/v2021_04_01/operations/_usages_operations.py +23 -27
  440. azure/mgmt/storage/v2021_06_01/_configuration.py +4 -11
  441. azure/mgmt/storage/v2021_06_01/_patch.py +1 -0
  442. azure/mgmt/storage/v2021_06_01/_storage_management_client.py +55 -23
  443. azure/mgmt/storage/v2021_06_01/_vendor.py +0 -14
  444. azure/mgmt/storage/v2021_06_01/_version.py +1 -1
  445. azure/mgmt/storage/v2021_06_01/aio/_configuration.py +4 -11
  446. azure/mgmt/storage/v2021_06_01/aio/_patch.py +1 -0
  447. azure/mgmt/storage/v2021_06_01/aio/_storage_management_client.py +57 -23
  448. azure/mgmt/storage/v2021_06_01/aio/operations/_blob_containers_operations.py +181 -315
  449. azure/mgmt/storage/v2021_06_01/aio/operations/_blob_inventory_policies_operations.py +53 -76
  450. azure/mgmt/storage/v2021_06_01/aio/operations/_blob_services_operations.py +45 -79
  451. azure/mgmt/storage/v2021_06_01/aio/operations/_deleted_accounts_operations.py +29 -36
  452. azure/mgmt/storage/v2021_06_01/aio/operations/_encryption_scopes_operations.py +58 -86
  453. azure/mgmt/storage/v2021_06_01/aio/operations/_file_services_operations.py +41 -75
  454. azure/mgmt/storage/v2021_06_01/aio/operations/_file_shares_operations.py +98 -151
  455. azure/mgmt/storage/v2021_06_01/aio/operations/_management_policies_operations.py +39 -57
  456. azure/mgmt/storage/v2021_06_01/aio/operations/_object_replication_policies_operations.py +54 -76
  457. azure/mgmt/storage/v2021_06_01/aio/operations/_operations.py +20 -22
  458. azure/mgmt/storage/v2021_06_01/aio/operations/_private_endpoint_connections_operations.py +53 -76
  459. azure/mgmt/storage/v2021_06_01/aio/operations/_private_link_resources_operations.py +15 -19
  460. azure/mgmt/storage/v2021_06_01/aio/operations/_queue_operations.py +68 -101
  461. azure/mgmt/storage/v2021_06_01/aio/operations/_queue_services_operations.py +40 -74
  462. azure/mgmt/storage/v2021_06_01/aio/operations/_skus_operations.py +20 -22
  463. azure/mgmt/storage/v2021_06_01/aio/operations/_storage_accounts_operations.py +230 -416
  464. azure/mgmt/storage/v2021_06_01/aio/operations/_table_operations.py +55 -79
  465. azure/mgmt/storage/v2021_06_01/aio/operations/_table_services_operations.py +40 -74
  466. azure/mgmt/storage/v2021_06_01/aio/operations/_usages_operations.py +20 -24
  467. azure/mgmt/storage/v2021_06_01/models/_models_py3.py +66 -88
  468. azure/mgmt/storage/v2021_06_01/models/_storage_management_client_enums.py +2 -2
  469. azure/mgmt/storage/v2021_06_01/operations/_blob_containers_operations.py +211 -345
  470. azure/mgmt/storage/v2021_06_01/operations/_blob_inventory_policies_operations.py +62 -85
  471. azure/mgmt/storage/v2021_06_01/operations/_blob_services_operations.py +52 -86
  472. azure/mgmt/storage/v2021_06_01/operations/_deleted_accounts_operations.py +34 -41
  473. azure/mgmt/storage/v2021_06_01/operations/_encryption_scopes_operations.py +67 -95
  474. azure/mgmt/storage/v2021_06_01/operations/_file_services_operations.py +48 -82
  475. azure/mgmt/storage/v2021_06_01/operations/_file_shares_operations.py +113 -166
  476. azure/mgmt/storage/v2021_06_01/operations/_management_policies_operations.py +46 -64
  477. azure/mgmt/storage/v2021_06_01/operations/_object_replication_policies_operations.py +63 -85
  478. azure/mgmt/storage/v2021_06_01/operations/_operations.py +21 -23
  479. azure/mgmt/storage/v2021_06_01/operations/_private_endpoint_connections_operations.py +62 -85
  480. azure/mgmt/storage/v2021_06_01/operations/_private_link_resources_operations.py +18 -22
  481. azure/mgmt/storage/v2021_06_01/operations/_queue_operations.py +79 -112
  482. azure/mgmt/storage/v2021_06_01/operations/_queue_services_operations.py +47 -81
  483. azure/mgmt/storage/v2021_06_01/operations/_skus_operations.py +23 -25
  484. azure/mgmt/storage/v2021_06_01/operations/_storage_accounts_operations.py +266 -452
  485. azure/mgmt/storage/v2021_06_01/operations/_table_operations.py +66 -90
  486. azure/mgmt/storage/v2021_06_01/operations/_table_services_operations.py +47 -81
  487. azure/mgmt/storage/v2021_06_01/operations/_usages_operations.py +23 -27
  488. azure/mgmt/storage/v2021_08_01/_configuration.py +4 -11
  489. azure/mgmt/storage/v2021_08_01/_patch.py +1 -0
  490. azure/mgmt/storage/v2021_08_01/_storage_management_client.py +59 -25
  491. azure/mgmt/storage/v2021_08_01/_vendor.py +0 -14
  492. azure/mgmt/storage/v2021_08_01/_version.py +1 -1
  493. azure/mgmt/storage/v2021_08_01/aio/_configuration.py +4 -11
  494. azure/mgmt/storage/v2021_08_01/aio/_patch.py +1 -0
  495. azure/mgmt/storage/v2021_08_01/aio/_storage_management_client.py +61 -25
  496. azure/mgmt/storage/v2021_08_01/aio/operations/_blob_containers_operations.py +181 -315
  497. azure/mgmt/storage/v2021_08_01/aio/operations/_blob_inventory_policies_operations.py +53 -76
  498. azure/mgmt/storage/v2021_08_01/aio/operations/_blob_services_operations.py +45 -79
  499. azure/mgmt/storage/v2021_08_01/aio/operations/_deleted_accounts_operations.py +29 -36
  500. azure/mgmt/storage/v2021_08_01/aio/operations/_encryption_scopes_operations.py +58 -86
  501. azure/mgmt/storage/v2021_08_01/aio/operations/_file_services_operations.py +41 -75
  502. azure/mgmt/storage/v2021_08_01/aio/operations/_file_shares_operations.py +98 -151
  503. azure/mgmt/storage/v2021_08_01/aio/operations/_local_users_operations.py +71 -104
  504. azure/mgmt/storage/v2021_08_01/aio/operations/_management_policies_operations.py +39 -57
  505. azure/mgmt/storage/v2021_08_01/aio/operations/_object_replication_policies_operations.py +54 -76
  506. azure/mgmt/storage/v2021_08_01/aio/operations/_operations.py +20 -22
  507. azure/mgmt/storage/v2021_08_01/aio/operations/_private_endpoint_connections_operations.py +53 -76
  508. azure/mgmt/storage/v2021_08_01/aio/operations/_private_link_resources_operations.py +15 -19
  509. azure/mgmt/storage/v2021_08_01/aio/operations/_queue_operations.py +68 -101
  510. azure/mgmt/storage/v2021_08_01/aio/operations/_queue_services_operations.py +40 -74
  511. azure/mgmt/storage/v2021_08_01/aio/operations/_skus_operations.py +20 -22
  512. azure/mgmt/storage/v2021_08_01/aio/operations/_storage_accounts_operations.py +230 -416
  513. azure/mgmt/storage/v2021_08_01/aio/operations/_table_operations.py +55 -79
  514. azure/mgmt/storage/v2021_08_01/aio/operations/_table_services_operations.py +40 -74
  515. azure/mgmt/storage/v2021_08_01/aio/operations/_usages_operations.py +20 -24
  516. azure/mgmt/storage/v2021_08_01/models/_models_py3.py +68 -90
  517. azure/mgmt/storage/v2021_08_01/models/_storage_management_client_enums.py +2 -2
  518. azure/mgmt/storage/v2021_08_01/operations/_blob_containers_operations.py +211 -345
  519. azure/mgmt/storage/v2021_08_01/operations/_blob_inventory_policies_operations.py +62 -85
  520. azure/mgmt/storage/v2021_08_01/operations/_blob_services_operations.py +52 -86
  521. azure/mgmt/storage/v2021_08_01/operations/_deleted_accounts_operations.py +34 -41
  522. azure/mgmt/storage/v2021_08_01/operations/_encryption_scopes_operations.py +67 -95
  523. azure/mgmt/storage/v2021_08_01/operations/_file_services_operations.py +48 -82
  524. azure/mgmt/storage/v2021_08_01/operations/_file_shares_operations.py +113 -166
  525. azure/mgmt/storage/v2021_08_01/operations/_local_users_operations.py +84 -117
  526. azure/mgmt/storage/v2021_08_01/operations/_management_policies_operations.py +46 -64
  527. azure/mgmt/storage/v2021_08_01/operations/_object_replication_policies_operations.py +63 -85
  528. azure/mgmt/storage/v2021_08_01/operations/_operations.py +21 -23
  529. azure/mgmt/storage/v2021_08_01/operations/_private_endpoint_connections_operations.py +62 -85
  530. azure/mgmt/storage/v2021_08_01/operations/_private_link_resources_operations.py +18 -22
  531. azure/mgmt/storage/v2021_08_01/operations/_queue_operations.py +79 -112
  532. azure/mgmt/storage/v2021_08_01/operations/_queue_services_operations.py +47 -81
  533. azure/mgmt/storage/v2021_08_01/operations/_skus_operations.py +23 -25
  534. azure/mgmt/storage/v2021_08_01/operations/_storage_accounts_operations.py +266 -452
  535. azure/mgmt/storage/v2021_08_01/operations/_table_operations.py +66 -90
  536. azure/mgmt/storage/v2021_08_01/operations/_table_services_operations.py +47 -81
  537. azure/mgmt/storage/v2021_08_01/operations/_usages_operations.py +23 -27
  538. azure/mgmt/storage/v2021_09_01/_configuration.py +4 -11
  539. azure/mgmt/storage/v2021_09_01/_patch.py +1 -0
  540. azure/mgmt/storage/v2021_09_01/_storage_management_client.py +59 -25
  541. azure/mgmt/storage/v2021_09_01/_vendor.py +0 -14
  542. azure/mgmt/storage/v2021_09_01/_version.py +1 -1
  543. azure/mgmt/storage/v2021_09_01/aio/_configuration.py +4 -11
  544. azure/mgmt/storage/v2021_09_01/aio/_patch.py +1 -0
  545. azure/mgmt/storage/v2021_09_01/aio/_storage_management_client.py +61 -25
  546. azure/mgmt/storage/v2021_09_01/aio/operations/_blob_containers_operations.py +181 -315
  547. azure/mgmt/storage/v2021_09_01/aio/operations/_blob_inventory_policies_operations.py +53 -76
  548. azure/mgmt/storage/v2021_09_01/aio/operations/_blob_services_operations.py +45 -79
  549. azure/mgmt/storage/v2021_09_01/aio/operations/_deleted_accounts_operations.py +29 -36
  550. azure/mgmt/storage/v2021_09_01/aio/operations/_encryption_scopes_operations.py +58 -86
  551. azure/mgmt/storage/v2021_09_01/aio/operations/_file_services_operations.py +41 -75
  552. azure/mgmt/storage/v2021_09_01/aio/operations/_file_shares_operations.py +98 -151
  553. azure/mgmt/storage/v2021_09_01/aio/operations/_local_users_operations.py +71 -104
  554. azure/mgmt/storage/v2021_09_01/aio/operations/_management_policies_operations.py +39 -57
  555. azure/mgmt/storage/v2021_09_01/aio/operations/_object_replication_policies_operations.py +54 -76
  556. azure/mgmt/storage/v2021_09_01/aio/operations/_operations.py +20 -22
  557. azure/mgmt/storage/v2021_09_01/aio/operations/_private_endpoint_connections_operations.py +53 -76
  558. azure/mgmt/storage/v2021_09_01/aio/operations/_private_link_resources_operations.py +15 -19
  559. azure/mgmt/storage/v2021_09_01/aio/operations/_queue_operations.py +68 -101
  560. azure/mgmt/storage/v2021_09_01/aio/operations/_queue_services_operations.py +40 -74
  561. azure/mgmt/storage/v2021_09_01/aio/operations/_skus_operations.py +20 -22
  562. azure/mgmt/storage/v2021_09_01/aio/operations/_storage_accounts_operations.py +230 -416
  563. azure/mgmt/storage/v2021_09_01/aio/operations/_table_operations.py +70 -103
  564. azure/mgmt/storage/v2021_09_01/aio/operations/_table_services_operations.py +40 -74
  565. azure/mgmt/storage/v2021_09_01/aio/operations/_usages_operations.py +20 -24
  566. azure/mgmt/storage/v2021_09_01/models/_models_py3.py +70 -92
  567. azure/mgmt/storage/v2021_09_01/models/_storage_management_client_enums.py +2 -2
  568. azure/mgmt/storage/v2021_09_01/operations/_blob_containers_operations.py +211 -345
  569. azure/mgmt/storage/v2021_09_01/operations/_blob_inventory_policies_operations.py +62 -85
  570. azure/mgmt/storage/v2021_09_01/operations/_blob_services_operations.py +52 -86
  571. azure/mgmt/storage/v2021_09_01/operations/_deleted_accounts_operations.py +34 -41
  572. azure/mgmt/storage/v2021_09_01/operations/_encryption_scopes_operations.py +67 -95
  573. azure/mgmt/storage/v2021_09_01/operations/_file_services_operations.py +48 -82
  574. azure/mgmt/storage/v2021_09_01/operations/_file_shares_operations.py +113 -166
  575. azure/mgmt/storage/v2021_09_01/operations/_local_users_operations.py +84 -117
  576. azure/mgmt/storage/v2021_09_01/operations/_management_policies_operations.py +46 -64
  577. azure/mgmt/storage/v2021_09_01/operations/_object_replication_policies_operations.py +63 -85
  578. azure/mgmt/storage/v2021_09_01/operations/_operations.py +21 -23
  579. azure/mgmt/storage/v2021_09_01/operations/_private_endpoint_connections_operations.py +62 -85
  580. azure/mgmt/storage/v2021_09_01/operations/_private_link_resources_operations.py +18 -22
  581. azure/mgmt/storage/v2021_09_01/operations/_queue_operations.py +79 -112
  582. azure/mgmt/storage/v2021_09_01/operations/_queue_services_operations.py +47 -81
  583. azure/mgmt/storage/v2021_09_01/operations/_skus_operations.py +23 -25
  584. azure/mgmt/storage/v2021_09_01/operations/_storage_accounts_operations.py +266 -452
  585. azure/mgmt/storage/v2021_09_01/operations/_table_operations.py +81 -114
  586. azure/mgmt/storage/v2021_09_01/operations/_table_services_operations.py +47 -81
  587. azure/mgmt/storage/v2021_09_01/operations/_usages_operations.py +23 -27
  588. azure/mgmt/storage/v2022_05_01/_configuration.py +4 -11
  589. azure/mgmt/storage/v2022_05_01/_storage_management_client.py +59 -25
  590. azure/mgmt/storage/v2022_05_01/_vendor.py +0 -14
  591. azure/mgmt/storage/v2022_05_01/_version.py +1 -1
  592. azure/mgmt/storage/v2022_05_01/aio/_configuration.py +4 -11
  593. azure/mgmt/storage/v2022_05_01/aio/_storage_management_client.py +61 -25
  594. azure/mgmt/storage/v2022_05_01/aio/operations/_blob_containers_operations.py +181 -315
  595. azure/mgmt/storage/v2022_05_01/aio/operations/_blob_inventory_policies_operations.py +53 -76
  596. azure/mgmt/storage/v2022_05_01/aio/operations/_blob_services_operations.py +45 -79
  597. azure/mgmt/storage/v2022_05_01/aio/operations/_deleted_accounts_operations.py +29 -36
  598. azure/mgmt/storage/v2022_05_01/aio/operations/_encryption_scopes_operations.py +58 -86
  599. azure/mgmt/storage/v2022_05_01/aio/operations/_file_services_operations.py +41 -75
  600. azure/mgmt/storage/v2022_05_01/aio/operations/_file_shares_operations.py +98 -151
  601. azure/mgmt/storage/v2022_05_01/aio/operations/_local_users_operations.py +71 -104
  602. azure/mgmt/storage/v2022_05_01/aio/operations/_management_policies_operations.py +39 -57
  603. azure/mgmt/storage/v2022_05_01/aio/operations/_object_replication_policies_operations.py +54 -76
  604. azure/mgmt/storage/v2022_05_01/aio/operations/_operations.py +20 -22
  605. azure/mgmt/storage/v2022_05_01/aio/operations/_private_endpoint_connections_operations.py +53 -76
  606. azure/mgmt/storage/v2022_05_01/aio/operations/_private_link_resources_operations.py +15 -19
  607. azure/mgmt/storage/v2022_05_01/aio/operations/_queue_operations.py +68 -101
  608. azure/mgmt/storage/v2022_05_01/aio/operations/_queue_services_operations.py +40 -74
  609. azure/mgmt/storage/v2022_05_01/aio/operations/_skus_operations.py +20 -22
  610. azure/mgmt/storage/v2022_05_01/aio/operations/_storage_accounts_operations.py +230 -416
  611. azure/mgmt/storage/v2022_05_01/aio/operations/_table_operations.py +70 -103
  612. azure/mgmt/storage/v2022_05_01/aio/operations/_table_services_operations.py +40 -74
  613. azure/mgmt/storage/v2022_05_01/aio/operations/_usages_operations.py +20 -24
  614. azure/mgmt/storage/v2022_05_01/models/_models_py3.py +69 -91
  615. azure/mgmt/storage/v2022_05_01/models/_storage_management_client_enums.py +2 -2
  616. azure/mgmt/storage/v2022_05_01/operations/_blob_containers_operations.py +211 -345
  617. azure/mgmt/storage/v2022_05_01/operations/_blob_inventory_policies_operations.py +62 -85
  618. azure/mgmt/storage/v2022_05_01/operations/_blob_services_operations.py +52 -86
  619. azure/mgmt/storage/v2022_05_01/operations/_deleted_accounts_operations.py +34 -41
  620. azure/mgmt/storage/v2022_05_01/operations/_encryption_scopes_operations.py +67 -95
  621. azure/mgmt/storage/v2022_05_01/operations/_file_services_operations.py +48 -82
  622. azure/mgmt/storage/v2022_05_01/operations/_file_shares_operations.py +113 -166
  623. azure/mgmt/storage/v2022_05_01/operations/_local_users_operations.py +84 -117
  624. azure/mgmt/storage/v2022_05_01/operations/_management_policies_operations.py +46 -64
  625. azure/mgmt/storage/v2022_05_01/operations/_object_replication_policies_operations.py +63 -85
  626. azure/mgmt/storage/v2022_05_01/operations/_operations.py +21 -23
  627. azure/mgmt/storage/v2022_05_01/operations/_private_endpoint_connections_operations.py +62 -85
  628. azure/mgmt/storage/v2022_05_01/operations/_private_link_resources_operations.py +18 -22
  629. azure/mgmt/storage/v2022_05_01/operations/_queue_operations.py +79 -112
  630. azure/mgmt/storage/v2022_05_01/operations/_queue_services_operations.py +47 -81
  631. azure/mgmt/storage/v2022_05_01/operations/_skus_operations.py +23 -25
  632. azure/mgmt/storage/v2022_05_01/operations/_storage_accounts_operations.py +266 -452
  633. azure/mgmt/storage/v2022_05_01/operations/_table_operations.py +81 -114
  634. azure/mgmt/storage/v2022_05_01/operations/_table_services_operations.py +47 -81
  635. azure/mgmt/storage/v2022_05_01/operations/_usages_operations.py +23 -27
  636. azure/mgmt/storage/v2022_09_01/_configuration.py +4 -11
  637. azure/mgmt/storage/v2022_09_01/_storage_management_client.py +59 -25
  638. azure/mgmt/storage/v2022_09_01/_vendor.py +0 -14
  639. azure/mgmt/storage/v2022_09_01/_version.py +1 -1
  640. azure/mgmt/storage/v2022_09_01/aio/_configuration.py +4 -11
  641. azure/mgmt/storage/v2022_09_01/aio/_storage_management_client.py +61 -25
  642. azure/mgmt/storage/v2022_09_01/aio/operations/_blob_containers_operations.py +181 -315
  643. azure/mgmt/storage/v2022_09_01/aio/operations/_blob_inventory_policies_operations.py +53 -76
  644. azure/mgmt/storage/v2022_09_01/aio/operations/_blob_services_operations.py +45 -79
  645. azure/mgmt/storage/v2022_09_01/aio/operations/_deleted_accounts_operations.py +29 -36
  646. azure/mgmt/storage/v2022_09_01/aio/operations/_encryption_scopes_operations.py +58 -86
  647. azure/mgmt/storage/v2022_09_01/aio/operations/_file_services_operations.py +41 -75
  648. azure/mgmt/storage/v2022_09_01/aio/operations/_file_shares_operations.py +98 -151
  649. azure/mgmt/storage/v2022_09_01/aio/operations/_local_users_operations.py +71 -104
  650. azure/mgmt/storage/v2022_09_01/aio/operations/_management_policies_operations.py +39 -57
  651. azure/mgmt/storage/v2022_09_01/aio/operations/_object_replication_policies_operations.py +54 -76
  652. azure/mgmt/storage/v2022_09_01/aio/operations/_operations.py +20 -22
  653. azure/mgmt/storage/v2022_09_01/aio/operations/_private_endpoint_connections_operations.py +53 -76
  654. azure/mgmt/storage/v2022_09_01/aio/operations/_private_link_resources_operations.py +15 -19
  655. azure/mgmt/storage/v2022_09_01/aio/operations/_queue_operations.py +68 -101
  656. azure/mgmt/storage/v2022_09_01/aio/operations/_queue_services_operations.py +40 -74
  657. azure/mgmt/storage/v2022_09_01/aio/operations/_skus_operations.py +20 -22
  658. azure/mgmt/storage/v2022_09_01/aio/operations/_storage_accounts_operations.py +230 -416
  659. azure/mgmt/storage/v2022_09_01/aio/operations/_table_operations.py +70 -103
  660. azure/mgmt/storage/v2022_09_01/aio/operations/_table_services_operations.py +40 -74
  661. azure/mgmt/storage/v2022_09_01/aio/operations/_usages_operations.py +20 -24
  662. azure/mgmt/storage/v2022_09_01/models/_models_py3.py +69 -91
  663. azure/mgmt/storage/v2022_09_01/models/_storage_management_client_enums.py +2 -2
  664. azure/mgmt/storage/v2022_09_01/operations/_blob_containers_operations.py +211 -345
  665. azure/mgmt/storage/v2022_09_01/operations/_blob_inventory_policies_operations.py +62 -85
  666. azure/mgmt/storage/v2022_09_01/operations/_blob_services_operations.py +52 -86
  667. azure/mgmt/storage/v2022_09_01/operations/_deleted_accounts_operations.py +34 -41
  668. azure/mgmt/storage/v2022_09_01/operations/_encryption_scopes_operations.py +67 -95
  669. azure/mgmt/storage/v2022_09_01/operations/_file_services_operations.py +48 -82
  670. azure/mgmt/storage/v2022_09_01/operations/_file_shares_operations.py +113 -166
  671. azure/mgmt/storage/v2022_09_01/operations/_local_users_operations.py +84 -117
  672. azure/mgmt/storage/v2022_09_01/operations/_management_policies_operations.py +46 -64
  673. azure/mgmt/storage/v2022_09_01/operations/_object_replication_policies_operations.py +63 -85
  674. azure/mgmt/storage/v2022_09_01/operations/_operations.py +21 -23
  675. azure/mgmt/storage/v2022_09_01/operations/_private_endpoint_connections_operations.py +62 -85
  676. azure/mgmt/storage/v2022_09_01/operations/_private_link_resources_operations.py +18 -22
  677. azure/mgmt/storage/v2022_09_01/operations/_queue_operations.py +79 -112
  678. azure/mgmt/storage/v2022_09_01/operations/_queue_services_operations.py +47 -81
  679. azure/mgmt/storage/v2022_09_01/operations/_skus_operations.py +23 -25
  680. azure/mgmt/storage/v2022_09_01/operations/_storage_accounts_operations.py +266 -452
  681. azure/mgmt/storage/v2022_09_01/operations/_table_operations.py +81 -114
  682. azure/mgmt/storage/v2022_09_01/operations/_table_services_operations.py +47 -81
  683. azure/mgmt/storage/v2022_09_01/operations/_usages_operations.py +23 -27
  684. azure/mgmt/storage/v2023_01_01/__init__.py +26 -0
  685. azure/mgmt/storage/v2023_01_01/_configuration.py +65 -0
  686. azure/mgmt/storage/v2023_01_01/_patch.py +20 -0
  687. azure/mgmt/storage/v2023_01_01/_storage_management_client.py +225 -0
  688. azure/mgmt/storage/v2023_01_01/_vendor.py +16 -0
  689. azure/mgmt/storage/v2023_01_01/_version.py +9 -0
  690. azure/mgmt/storage/v2023_01_01/aio/__init__.py +23 -0
  691. azure/mgmt/storage/v2023_01_01/aio/_configuration.py +65 -0
  692. azure/mgmt/storage/v2023_01_01/aio/_patch.py +20 -0
  693. azure/mgmt/storage/v2023_01_01/aio/_storage_management_client.py +230 -0
  694. azure/mgmt/storage/v2023_01_01/aio/operations/__init__.py +57 -0
  695. azure/mgmt/storage/v2023_01_01/aio/operations/_blob_containers_operations.py +1838 -0
  696. azure/mgmt/storage/v2023_01_01/aio/operations/_blob_inventory_policies_operations.py +442 -0
  697. azure/mgmt/storage/v2023_01_01/aio/operations/_blob_services_operations.py +362 -0
  698. azure/mgmt/storage/v2023_01_01/aio/operations/_deleted_accounts_operations.py +194 -0
  699. azure/mgmt/storage/v2023_01_01/aio/operations/_encryption_scopes_operations.py +568 -0
  700. azure/mgmt/storage/v2023_01_01/aio/operations/_file_services_operations.py +328 -0
  701. azure/mgmt/storage/v2023_01_01/aio/operations/_file_shares_operations.py +1003 -0
  702. azure/mgmt/storage/v2023_01_01/aio/operations/_local_users_operations.py +560 -0
  703. azure/mgmt/storage/v2023_01_01/aio/operations/_management_policies_operations.py +349 -0
  704. azure/mgmt/storage/v2023_01_01/aio/operations/_object_replication_policies_operations.py +446 -0
  705. azure/mgmt/storage/v2023_01_01/aio/operations/_operations.py +135 -0
  706. azure/mgmt/storage/v2023_01_01/aio/operations/_patch.py +20 -0
  707. azure/mgmt/storage/v2023_01_01/aio/operations/_private_endpoint_connections_operations.py +432 -0
  708. azure/mgmt/storage/v2023_01_01/aio/operations/_private_link_resources_operations.py +117 -0
  709. azure/mgmt/storage/v2023_01_01/aio/operations/_queue_operations.py +608 -0
  710. azure/mgmt/storage/v2023_01_01/aio/operations/_queue_services_operations.py +328 -0
  711. azure/mgmt/storage/v2023_01_01/aio/operations/_skus_operations.py +136 -0
  712. azure/mgmt/storage/v2023_01_01/aio/operations/_storage_accounts_operations.py +2187 -0
  713. azure/mgmt/storage/v2023_01_01/aio/operations/_table_operations.py +588 -0
  714. azure/mgmt/storage/v2023_01_01/aio/operations/_table_services_operations.py +328 -0
  715. azure/mgmt/storage/v2023_01_01/aio/operations/_usages_operations.py +139 -0
  716. azure/mgmt/storage/v2023_01_01/models/__init__.py +461 -0
  717. azure/mgmt/storage/v2023_01_01/models/_models_py3.py +8338 -0
  718. azure/mgmt/storage/v2023_01_01/models/_patch.py +20 -0
  719. azure/mgmt/storage/v2023_01_01/models/_storage_management_client_enums.py +626 -0
  720. azure/mgmt/storage/v2023_01_01/operations/__init__.py +57 -0
  721. azure/mgmt/storage/v2023_01_01/operations/_blob_containers_operations.py +2398 -0
  722. azure/mgmt/storage/v2023_01_01/operations/_blob_inventory_policies_operations.py +595 -0
  723. azure/mgmt/storage/v2023_01_01/operations/_blob_services_operations.py +470 -0
  724. azure/mgmt/storage/v2023_01_01/operations/_deleted_accounts_operations.py +250 -0
  725. azure/mgmt/storage/v2023_01_01/operations/_encryption_scopes_operations.py +732 -0
  726. azure/mgmt/storage/v2023_01_01/operations/_file_services_operations.py +437 -0
  727. azure/mgmt/storage/v2023_01_01/operations/_file_shares_operations.py +1310 -0
  728. azure/mgmt/storage/v2023_01_01/operations/_local_users_operations.py +770 -0
  729. azure/mgmt/storage/v2023_01_01/operations/_management_policies_operations.py +465 -0
  730. azure/mgmt/storage/v2023_01_01/operations/_object_replication_policies_operations.py +593 -0
  731. azure/mgmt/storage/v2023_01_01/operations/_operations.py +156 -0
  732. azure/mgmt/storage/v2023_01_01/operations/_patch.py +20 -0
  733. azure/mgmt/storage/v2023_01_01/operations/_private_endpoint_connections_operations.py +591 -0
  734. azure/mgmt/storage/v2023_01_01/operations/_private_link_resources_operations.py +155 -0
  735. azure/mgmt/storage/v2023_01_01/operations/_queue_operations.py +824 -0
  736. azure/mgmt/storage/v2023_01_01/operations/_queue_services_operations.py +437 -0
  737. azure/mgmt/storage/v2023_01_01/operations/_skus_operations.py +162 -0
  738. azure/mgmt/storage/v2023_01_01/operations/_storage_accounts_operations.py +2796 -0
  739. azure/mgmt/storage/v2023_01_01/operations/_table_operations.py +775 -0
  740. azure/mgmt/storage/v2023_01_01/operations/_table_services_operations.py +437 -0
  741. azure/mgmt/storage/v2023_01_01/operations/_usages_operations.py +169 -0
  742. azure/mgmt/storage/v2023_05_01/__init__.py +26 -0
  743. azure/mgmt/storage/v2023_05_01/_configuration.py +65 -0
  744. azure/mgmt/storage/v2023_05_01/_patch.py +20 -0
  745. azure/mgmt/storage/v2023_05_01/_storage_management_client.py +256 -0
  746. azure/mgmt/storage/v2023_05_01/_vendor.py +16 -0
  747. azure/mgmt/storage/v2023_05_01/_version.py +9 -0
  748. azure/mgmt/storage/v2023_05_01/aio/__init__.py +23 -0
  749. azure/mgmt/storage/v2023_05_01/aio/_configuration.py +65 -0
  750. azure/mgmt/storage/v2023_05_01/aio/_patch.py +20 -0
  751. azure/mgmt/storage/v2023_05_01/aio/_storage_management_client.py +261 -0
  752. azure/mgmt/storage/v2023_05_01/aio/operations/__init__.py +65 -0
  753. azure/mgmt/storage/v2023_05_01/aio/operations/_blob_containers_operations.py +1838 -0
  754. azure/mgmt/storage/v2023_05_01/aio/operations/_blob_inventory_policies_operations.py +442 -0
  755. azure/mgmt/storage/v2023_05_01/aio/operations/_blob_services_operations.py +362 -0
  756. azure/mgmt/storage/v2023_05_01/aio/operations/_deleted_accounts_operations.py +194 -0
  757. azure/mgmt/storage/v2023_05_01/aio/operations/_encryption_scopes_operations.py +568 -0
  758. azure/mgmt/storage/v2023_05_01/aio/operations/_file_services_operations.py +328 -0
  759. azure/mgmt/storage/v2023_05_01/aio/operations/_file_shares_operations.py +1003 -0
  760. azure/mgmt/storage/v2023_05_01/aio/operations/_local_users_operations.py +583 -0
  761. azure/mgmt/storage/v2023_05_01/aio/operations/_management_policies_operations.py +349 -0
  762. azure/mgmt/storage/v2023_05_01/aio/operations/_network_security_perimeter_configurations_operations.py +342 -0
  763. azure/mgmt/storage/v2023_05_01/aio/operations/_object_replication_policies_operations.py +446 -0
  764. azure/mgmt/storage/v2023_05_01/aio/operations/_operations.py +135 -0
  765. azure/mgmt/storage/v2023_05_01/aio/operations/_patch.py +20 -0
  766. azure/mgmt/storage/v2023_05_01/aio/operations/_private_endpoint_connections_operations.py +432 -0
  767. azure/mgmt/storage/v2023_05_01/aio/operations/_private_link_resources_operations.py +117 -0
  768. azure/mgmt/storage/v2023_05_01/aio/operations/_queue_operations.py +608 -0
  769. azure/mgmt/storage/v2023_05_01/aio/operations/_queue_services_operations.py +328 -0
  770. azure/mgmt/storage/v2023_05_01/aio/operations/_skus_operations.py +136 -0
  771. azure/mgmt/storage/v2023_05_01/aio/operations/_storage_accounts_operations.py +2187 -0
  772. azure/mgmt/storage/v2023_05_01/aio/operations/_storage_task_assignment_instances_report_operations.py +170 -0
  773. azure/mgmt/storage/v2023_05_01/aio/operations/_storage_task_assignments_instances_report_operations.py +164 -0
  774. azure/mgmt/storage/v2023_05_01/aio/operations/_storage_task_assignments_operations.py +802 -0
  775. azure/mgmt/storage/v2023_05_01/aio/operations/_table_operations.py +588 -0
  776. azure/mgmt/storage/v2023_05_01/aio/operations/_table_services_operations.py +328 -0
  777. azure/mgmt/storage/v2023_05_01/aio/operations/_usages_operations.py +139 -0
  778. azure/mgmt/storage/v2023_05_01/models/__init__.py +537 -0
  779. azure/mgmt/storage/v2023_05_01/models/_models_py3.py +9703 -0
  780. azure/mgmt/storage/v2023_05_01/models/_patch.py +20 -0
  781. azure/mgmt/storage/v2023_05_01/models/_storage_management_client_enums.py +706 -0
  782. azure/mgmt/storage/v2023_05_01/operations/__init__.py +65 -0
  783. azure/mgmt/storage/v2023_05_01/operations/_blob_containers_operations.py +2398 -0
  784. azure/mgmt/storage/v2023_05_01/operations/_blob_inventory_policies_operations.py +595 -0
  785. azure/mgmt/storage/v2023_05_01/operations/_blob_services_operations.py +470 -0
  786. azure/mgmt/storage/v2023_05_01/operations/_deleted_accounts_operations.py +250 -0
  787. azure/mgmt/storage/v2023_05_01/operations/_encryption_scopes_operations.py +732 -0
  788. azure/mgmt/storage/v2023_05_01/operations/_file_services_operations.py +437 -0
  789. azure/mgmt/storage/v2023_05_01/operations/_file_shares_operations.py +1310 -0
  790. azure/mgmt/storage/v2023_05_01/operations/_local_users_operations.py +808 -0
  791. azure/mgmt/storage/v2023_05_01/operations/_management_policies_operations.py +465 -0
  792. azure/mgmt/storage/v2023_05_01/operations/_network_security_perimeter_configurations_operations.py +463 -0
  793. azure/mgmt/storage/v2023_05_01/operations/_object_replication_policies_operations.py +593 -0
  794. azure/mgmt/storage/v2023_05_01/operations/_operations.py +156 -0
  795. azure/mgmt/storage/v2023_05_01/operations/_patch.py +20 -0
  796. azure/mgmt/storage/v2023_05_01/operations/_private_endpoint_connections_operations.py +591 -0
  797. azure/mgmt/storage/v2023_05_01/operations/_private_link_resources_operations.py +155 -0
  798. azure/mgmt/storage/v2023_05_01/operations/_queue_operations.py +824 -0
  799. azure/mgmt/storage/v2023_05_01/operations/_queue_services_operations.py +437 -0
  800. azure/mgmt/storage/v2023_05_01/operations/_skus_operations.py +162 -0
  801. azure/mgmt/storage/v2023_05_01/operations/_storage_accounts_operations.py +2796 -0
  802. azure/mgmt/storage/v2023_05_01/operations/_storage_task_assignment_instances_report_operations.py +227 -0
  803. azure/mgmt/storage/v2023_05_01/operations/_storage_task_assignments_instances_report_operations.py +212 -0
  804. azure/mgmt/storage/v2023_05_01/operations/_storage_task_assignments_operations.py +1018 -0
  805. azure/mgmt/storage/v2023_05_01/operations/_table_operations.py +775 -0
  806. azure/mgmt/storage/v2023_05_01/operations/_table_services_operations.py +437 -0
  807. azure/mgmt/storage/v2023_05_01/operations/_usages_operations.py +169 -0
  808. {azure_mgmt_storage-21.1.0b1.dist-info → azure_mgmt_storage-21.2.1.dist-info}/METADATA +52 -13
  809. azure_mgmt_storage-21.2.1.dist-info/RECORD +979 -0
  810. {azure_mgmt_storage-21.1.0b1.dist-info → azure_mgmt_storage-21.2.1.dist-info}/WHEEL +1 -1
  811. azure_mgmt_storage-21.1.0b1.dist-info/RECORD +0 -855
  812. {azure_mgmt_storage-21.1.0b1.dist-info → azure_mgmt_storage-21.2.1.dist-info}/LICENSE +0 -0
  813. {azure_mgmt_storage-21.1.0b1.dist-info → azure_mgmt_storage-21.2.1.dist-info}/top_level.txt +0 -0
@@ -1,4 +1,4 @@
1
- # pylint: disable=too-many-lines
1
+ # pylint: disable=too-many-lines,too-many-statements
2
2
  # coding=utf-8
3
3
  # --------------------------------------------------------------------------
4
4
  # Copyright (c) Microsoft Corporation. All rights reserved.
@@ -6,8 +6,9 @@
6
6
  # Code generated by Microsoft (R) AutoRest Code Generator.
7
7
  # Changes may cause incorrect behavior and will be lost if the code is regenerated.
8
8
  # --------------------------------------------------------------------------
9
+ from io import IOBase
9
10
  import sys
10
- from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, overload
11
+ from typing import Any, Callable, Dict, IO, Iterable, Optional, Type, TypeVar, Union, overload
11
12
  import urllib.parse
12
13
 
13
14
  from azure.core.exceptions import (
@@ -28,12 +29,12 @@ from azure.mgmt.core.exceptions import ARMErrorFormat
28
29
 
29
30
  from .. import models as _models
30
31
  from ..._serialization import Serializer
31
- from .._vendor import _convert_request, _format_url_section
32
+ from .._vendor import _convert_request
32
33
 
33
- if sys.version_info >= (3, 8):
34
- from typing import Literal # pylint: disable=no-name-in-module, ungrouped-imports
34
+ if sys.version_info >= (3, 9):
35
+ from collections.abc import MutableMapping
35
36
  else:
36
- from typing_extensions import Literal # type: ignore # pylint: disable=ungrouped-imports
37
+ from typing import MutableMapping # type: ignore # pylint: disable=ungrouped-imports
37
38
  T = TypeVar("T")
38
39
  ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]]
39
40
 
@@ -54,7 +55,7 @@ def build_list_request(
54
55
  _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
55
56
  _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
56
57
 
57
- api_version: Literal["2019-04-01"] = kwargs.pop("api_version", _params.pop("api-version", "2019-04-01"))
58
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2019-04-01"))
58
59
  accept = _headers.pop("Accept", "application/json")
59
60
 
60
61
  # Construct URL
@@ -70,7 +71,7 @@ def build_list_request(
70
71
  "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str", min_length=1),
71
72
  }
72
73
 
73
- _url: str = _format_url_section(_url, **path_format_arguments) # type: ignore
74
+ _url: str = _url.format(**path_format_arguments) # type: ignore
74
75
 
75
76
  # Construct parameters
76
77
  _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str")
@@ -93,7 +94,7 @@ def build_create_request(
93
94
  _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
94
95
  _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
95
96
 
96
- api_version: Literal["2019-04-01"] = kwargs.pop("api_version", _params.pop("api-version", "2019-04-01"))
97
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2019-04-01"))
97
98
  content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
98
99
  accept = _headers.pop("Accept", "application/json")
99
100
 
@@ -111,7 +112,7 @@ def build_create_request(
111
112
  "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str", min_length=1),
112
113
  }
113
114
 
114
- _url: str = _format_url_section(_url, **path_format_arguments) # type: ignore
115
+ _url: str = _url.format(**path_format_arguments) # type: ignore
115
116
 
116
117
  # Construct parameters
117
118
  _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str")
@@ -130,7 +131,7 @@ def build_update_request(
130
131
  _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
131
132
  _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
132
133
 
133
- api_version: Literal["2019-04-01"] = kwargs.pop("api_version", _params.pop("api-version", "2019-04-01"))
134
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2019-04-01"))
134
135
  content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
135
136
  accept = _headers.pop("Accept", "application/json")
136
137
 
@@ -148,7 +149,7 @@ def build_update_request(
148
149
  "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str", min_length=1),
149
150
  }
150
151
 
151
- _url: str = _format_url_section(_url, **path_format_arguments) # type: ignore
152
+ _url: str = _url.format(**path_format_arguments) # type: ignore
152
153
 
153
154
  # Construct parameters
154
155
  _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str")
@@ -167,7 +168,7 @@ def build_get_request(
167
168
  _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
168
169
  _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
169
170
 
170
- api_version: Literal["2019-04-01"] = kwargs.pop("api_version", _params.pop("api-version", "2019-04-01"))
171
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2019-04-01"))
171
172
  accept = _headers.pop("Accept", "application/json")
172
173
 
173
174
  # Construct URL
@@ -184,7 +185,7 @@ def build_get_request(
184
185
  "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str", min_length=1),
185
186
  }
186
187
 
187
- _url: str = _format_url_section(_url, **path_format_arguments) # type: ignore
188
+ _url: str = _url.format(**path_format_arguments) # type: ignore
188
189
 
189
190
  # Construct parameters
190
191
  _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str")
@@ -200,7 +201,7 @@ def build_delete_request(
200
201
  ) -> HttpRequest:
201
202
  _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
202
203
 
203
- api_version: Literal["2019-04-01"] = kwargs.pop("api_version", _params.pop("api-version", "2019-04-01"))
204
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2019-04-01"))
204
205
  # Construct URL
205
206
  _url = kwargs.pop(
206
207
  "template_url",
@@ -215,7 +216,7 @@ def build_delete_request(
215
216
  "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str", min_length=1),
216
217
  }
217
218
 
218
- _url: str = _format_url_section(_url, **path_format_arguments) # type: ignore
219
+ _url: str = _url.format(**path_format_arguments) # type: ignore
219
220
 
220
221
  # Construct parameters
221
222
  _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str")
@@ -229,7 +230,7 @@ def build_set_legal_hold_request(
229
230
  _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
230
231
  _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
231
232
 
232
- api_version: Literal["2019-04-01"] = kwargs.pop("api_version", _params.pop("api-version", "2019-04-01"))
233
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2019-04-01"))
233
234
  content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
234
235
  accept = _headers.pop("Accept", "application/json")
235
236
 
@@ -247,7 +248,7 @@ def build_set_legal_hold_request(
247
248
  "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str", min_length=1),
248
249
  }
249
250
 
250
- _url: str = _format_url_section(_url, **path_format_arguments) # type: ignore
251
+ _url: str = _url.format(**path_format_arguments) # type: ignore
251
252
 
252
253
  # Construct parameters
253
254
  _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str")
@@ -266,7 +267,7 @@ def build_clear_legal_hold_request(
266
267
  _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
267
268
  _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
268
269
 
269
- api_version: Literal["2019-04-01"] = kwargs.pop("api_version", _params.pop("api-version", "2019-04-01"))
270
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2019-04-01"))
270
271
  content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
271
272
  accept = _headers.pop("Accept", "application/json")
272
273
 
@@ -284,7 +285,7 @@ def build_clear_legal_hold_request(
284
285
  "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str", min_length=1),
285
286
  }
286
287
 
287
- _url: str = _format_url_section(_url, **path_format_arguments) # type: ignore
288
+ _url: str = _url.format(**path_format_arguments) # type: ignore
288
289
 
289
290
  # Construct parameters
290
291
  _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str")
@@ -297,7 +298,7 @@ def build_clear_legal_hold_request(
297
298
  return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs)
298
299
 
299
300
 
300
- def build_create_or_update_immutability_policy_request(
301
+ def build_create_or_update_immutability_policy_request( # pylint: disable=name-too-long
301
302
  resource_group_name: str,
302
303
  account_name: str,
303
304
  container_name: str,
@@ -310,7 +311,7 @@ def build_create_or_update_immutability_policy_request(
310
311
  _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
311
312
  _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
312
313
 
313
- api_version: Literal["2019-04-01"] = kwargs.pop("api_version", _params.pop("api-version", "2019-04-01"))
314
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2019-04-01"))
314
315
  content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
315
316
  accept = _headers.pop("Accept", "application/json")
316
317
 
@@ -329,7 +330,7 @@ def build_create_or_update_immutability_policy_request(
329
330
  "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str", min_length=1),
330
331
  }
331
332
 
332
- _url: str = _format_url_section(_url, **path_format_arguments) # type: ignore
333
+ _url: str = _url.format(**path_format_arguments) # type: ignore
333
334
 
334
335
  # Construct parameters
335
336
  _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str")
@@ -357,7 +358,7 @@ def build_get_immutability_policy_request(
357
358
  _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
358
359
  _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
359
360
 
360
- api_version: Literal["2019-04-01"] = kwargs.pop("api_version", _params.pop("api-version", "2019-04-01"))
361
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2019-04-01"))
361
362
  accept = _headers.pop("Accept", "application/json")
362
363
 
363
364
  # Construct URL
@@ -375,7 +376,7 @@ def build_get_immutability_policy_request(
375
376
  "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str", min_length=1),
376
377
  }
377
378
 
378
- _url: str = _format_url_section(_url, **path_format_arguments) # type: ignore
379
+ _url: str = _url.format(**path_format_arguments) # type: ignore
379
380
 
380
381
  # Construct parameters
381
382
  _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str")
@@ -401,7 +402,7 @@ def build_delete_immutability_policy_request(
401
402
  _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
402
403
  _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
403
404
 
404
- api_version: Literal["2019-04-01"] = kwargs.pop("api_version", _params.pop("api-version", "2019-04-01"))
405
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2019-04-01"))
405
406
  accept = _headers.pop("Accept", "application/json")
406
407
 
407
408
  # Construct URL
@@ -419,7 +420,7 @@ def build_delete_immutability_policy_request(
419
420
  "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str", min_length=1),
420
421
  }
421
422
 
422
- _url: str = _format_url_section(_url, **path_format_arguments) # type: ignore
423
+ _url: str = _url.format(**path_format_arguments) # type: ignore
423
424
 
424
425
  # Construct parameters
425
426
  _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str")
@@ -443,7 +444,7 @@ def build_lock_immutability_policy_request(
443
444
  _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
444
445
  _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
445
446
 
446
- api_version: Literal["2019-04-01"] = kwargs.pop("api_version", _params.pop("api-version", "2019-04-01"))
447
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2019-04-01"))
447
448
  accept = _headers.pop("Accept", "application/json")
448
449
 
449
450
  # Construct URL
@@ -460,7 +461,7 @@ def build_lock_immutability_policy_request(
460
461
  "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str", min_length=1),
461
462
  }
462
463
 
463
- _url: str = _format_url_section(_url, **path_format_arguments) # type: ignore
464
+ _url: str = _url.format(**path_format_arguments) # type: ignore
464
465
 
465
466
  # Construct parameters
466
467
  _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str")
@@ -484,7 +485,7 @@ def build_extend_immutability_policy_request(
484
485
  _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
485
486
  _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
486
487
 
487
- api_version: Literal["2019-04-01"] = kwargs.pop("api_version", _params.pop("api-version", "2019-04-01"))
488
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2019-04-01"))
488
489
  content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
489
490
  accept = _headers.pop("Accept", "application/json")
490
491
 
@@ -502,7 +503,7 @@ def build_extend_immutability_policy_request(
502
503
  "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str", min_length=1),
503
504
  }
504
505
 
505
- _url: str = _format_url_section(_url, **path_format_arguments) # type: ignore
506
+ _url: str = _url.format(**path_format_arguments) # type: ignore
506
507
 
507
508
  # Construct parameters
508
509
  _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str")
@@ -522,7 +523,7 @@ def build_lease_request(
522
523
  _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
523
524
  _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
524
525
 
525
- api_version: Literal["2019-04-01"] = kwargs.pop("api_version", _params.pop("api-version", "2019-04-01"))
526
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2019-04-01"))
526
527
  content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
527
528
  accept = _headers.pop("Accept", "application/json")
528
529
 
@@ -540,7 +541,7 @@ def build_lease_request(
540
541
  "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str", min_length=1),
541
542
  }
542
543
 
543
- _url: str = _format_url_section(_url, **path_format_arguments) # type: ignore
544
+ _url: str = _url.format(**path_format_arguments) # type: ignore
544
545
 
545
546
  # Construct parameters
546
547
  _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str")
@@ -571,6 +572,7 @@ class BlobContainersOperations:
571
572
  self._config = input_args.pop(0) if input_args else kwargs.pop("config")
572
573
  self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer")
573
574
  self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer")
575
+ self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version")
574
576
 
575
577
  @distributed_trace
576
578
  def list(
@@ -600,7 +602,6 @@ class BlobContainersOperations:
600
602
  :param filter: Optional. When specified, only container names starting with the filter will be
601
603
  listed. Default value is None.
602
604
  :type filter: str
603
- :keyword callable cls: A custom type or function that will be passed the direct response
604
605
  :return: An iterator like instance of either ListContainerItem or the result of cls(response)
605
606
  :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.storage.v2019_04_01.models.ListContainerItem]
606
607
  :raises ~azure.core.exceptions.HttpResponseError:
@@ -608,10 +609,10 @@ class BlobContainersOperations:
608
609
  _headers = kwargs.pop("headers", {}) or {}
609
610
  _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
610
611
 
611
- api_version: Literal["2019-04-01"] = kwargs.pop("api_version", _params.pop("api-version", "2019-04-01"))
612
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2019-04-01"))
612
613
  cls: ClsType[_models.ListContainerItems] = kwargs.pop("cls", None)
613
614
 
614
- error_map = {
615
+ error_map: MutableMapping[int, Type[HttpResponseError]] = {
615
616
  401: ClientAuthenticationError,
616
617
  404: ResourceNotFoundError,
617
618
  409: ResourceExistsError,
@@ -622,7 +623,7 @@ class BlobContainersOperations:
622
623
  def prepare_request(next_link=None):
623
624
  if not next_link:
624
625
 
625
- request = build_list_request(
626
+ _request = build_list_request(
626
627
  resource_group_name=resource_group_name,
627
628
  account_name=account_name,
628
629
  subscription_id=self._config.subscription_id,
@@ -630,12 +631,11 @@ class BlobContainersOperations:
630
631
  maxpagesize=maxpagesize,
631
632
  filter=filter,
632
633
  api_version=api_version,
633
- template_url=self.list.metadata["url"],
634
634
  headers=_headers,
635
635
  params=_params,
636
636
  )
637
- request = _convert_request(request)
638
- request.url = self._client.format_url(request.url)
637
+ _request = _convert_request(_request)
638
+ _request.url = self._client.format_url(_request.url)
639
639
 
640
640
  else:
641
641
  # make call to next link with the client's api-version
@@ -646,14 +646,14 @@ class BlobContainersOperations:
646
646
  for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items()
647
647
  }
648
648
  )
649
- _next_request_params["api-version"] = self._config.api_version
650
- request = HttpRequest(
649
+ _next_request_params["api-version"] = self._api_version
650
+ _request = HttpRequest(
651
651
  "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params
652
652
  )
653
- request = _convert_request(request)
654
- request.url = self._client.format_url(request.url)
655
- request.method = "GET"
656
- return request
653
+ _request = _convert_request(_request)
654
+ _request.url = self._client.format_url(_request.url)
655
+ _request.method = "GET"
656
+ return _request
657
657
 
658
658
  def extract_data(pipeline_response):
659
659
  deserialized = self._deserialize("ListContainerItems", pipeline_response)
@@ -663,10 +663,11 @@ class BlobContainersOperations:
663
663
  return deserialized.next_link or None, iter(list_of_elem)
664
664
 
665
665
  def get_next(next_link=None):
666
- request = prepare_request(next_link)
666
+ _request = prepare_request(next_link)
667
667
 
668
+ _stream = False
668
669
  pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access
669
- request, stream=False, **kwargs
670
+ _request, stream=_stream, **kwargs
670
671
  )
671
672
  response = pipeline_response.http_response
672
673
 
@@ -678,10 +679,6 @@ class BlobContainersOperations:
678
679
 
679
680
  return ItemPaged(get_next, extract_data)
680
681
 
681
- list.metadata = {
682
- "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/default/containers"
683
- }
684
-
685
682
  @overload
686
683
  def create(
687
684
  self,
@@ -714,7 +711,6 @@ class BlobContainersOperations:
714
711
  :keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
715
712
  Default value is "application/json".
716
713
  :paramtype content_type: str
717
- :keyword callable cls: A custom type or function that will be passed the direct response
718
714
  :return: BlobContainer or the result of cls(response)
719
715
  :rtype: ~azure.mgmt.storage.v2019_04_01.models.BlobContainer
720
716
  :raises ~azure.core.exceptions.HttpResponseError:
@@ -726,7 +722,7 @@ class BlobContainersOperations:
726
722
  resource_group_name: str,
727
723
  account_name: str,
728
724
  container_name: str,
729
- blob_container: IO,
725
+ blob_container: IO[bytes],
730
726
  *,
731
727
  content_type: str = "application/json",
732
728
  **kwargs: Any
@@ -748,11 +744,10 @@ class BlobContainersOperations:
748
744
  by a letter or number. Required.
749
745
  :type container_name: str
750
746
  :param blob_container: Properties of the blob container to create. Required.
751
- :type blob_container: IO
747
+ :type blob_container: IO[bytes]
752
748
  :keyword content_type: Body Parameter content-type. Content type parameter for binary body.
753
749
  Default value is "application/json".
754
750
  :paramtype content_type: str
755
- :keyword callable cls: A custom type or function that will be passed the direct response
756
751
  :return: BlobContainer or the result of cls(response)
757
752
  :rtype: ~azure.mgmt.storage.v2019_04_01.models.BlobContainer
758
753
  :raises ~azure.core.exceptions.HttpResponseError:
@@ -764,7 +759,7 @@ class BlobContainersOperations:
764
759
  resource_group_name: str,
765
760
  account_name: str,
766
761
  container_name: str,
767
- blob_container: Union[_models.BlobContainer, IO],
762
+ blob_container: Union[_models.BlobContainer, IO[bytes]],
768
763
  **kwargs: Any
769
764
  ) -> _models.BlobContainer:
770
765
  """Creates a new container under the specified account as described by request body. The container
@@ -784,17 +779,13 @@ class BlobContainersOperations:
784
779
  by a letter or number. Required.
785
780
  :type container_name: str
786
781
  :param blob_container: Properties of the blob container to create. Is either a BlobContainer
787
- type or a IO type. Required.
788
- :type blob_container: ~azure.mgmt.storage.v2019_04_01.models.BlobContainer or IO
789
- :keyword content_type: Body Parameter content-type. Known values are: 'application/json'.
790
- Default value is None.
791
- :paramtype content_type: str
792
- :keyword callable cls: A custom type or function that will be passed the direct response
782
+ type or a IO[bytes] type. Required.
783
+ :type blob_container: ~azure.mgmt.storage.v2019_04_01.models.BlobContainer or IO[bytes]
793
784
  :return: BlobContainer or the result of cls(response)
794
785
  :rtype: ~azure.mgmt.storage.v2019_04_01.models.BlobContainer
795
786
  :raises ~azure.core.exceptions.HttpResponseError:
796
787
  """
797
- error_map = {
788
+ error_map: MutableMapping[int, Type[HttpResponseError]] = {
798
789
  401: ClientAuthenticationError,
799
790
  404: ResourceNotFoundError,
800
791
  409: ResourceExistsError,
@@ -805,19 +796,19 @@ class BlobContainersOperations:
805
796
  _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
806
797
  _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
807
798
 
808
- api_version: Literal["2019-04-01"] = kwargs.pop("api_version", _params.pop("api-version", "2019-04-01"))
799
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2019-04-01"))
809
800
  content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
810
801
  cls: ClsType[_models.BlobContainer] = kwargs.pop("cls", None)
811
802
 
812
803
  content_type = content_type or "application/json"
813
804
  _json = None
814
805
  _content = None
815
- if isinstance(blob_container, (IO, bytes)):
806
+ if isinstance(blob_container, (IOBase, bytes)):
816
807
  _content = blob_container
817
808
  else:
818
809
  _json = self._serialize.body(blob_container, "BlobContainer")
819
810
 
820
- request = build_create_request(
811
+ _request = build_create_request(
821
812
  resource_group_name=resource_group_name,
822
813
  account_name=account_name,
823
814
  container_name=container_name,
@@ -826,15 +817,15 @@ class BlobContainersOperations:
826
817
  content_type=content_type,
827
818
  json=_json,
828
819
  content=_content,
829
- template_url=self.create.metadata["url"],
830
820
  headers=_headers,
831
821
  params=_params,
832
822
  )
833
- request = _convert_request(request)
834
- request.url = self._client.format_url(request.url)
823
+ _request = _convert_request(_request)
824
+ _request.url = self._client.format_url(_request.url)
835
825
 
826
+ _stream = False
836
827
  pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access
837
- request, stream=False, **kwargs
828
+ _request, stream=_stream, **kwargs
838
829
  )
839
830
 
840
831
  response = pipeline_response.http_response
@@ -854,10 +845,6 @@ class BlobContainersOperations:
854
845
 
855
846
  return deserialized # type: ignore
856
847
 
857
- create.metadata = {
858
- "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/default/containers/{containerName}"
859
- }
860
-
861
848
  @overload
862
849
  def update(
863
850
  self,
@@ -889,7 +876,6 @@ class BlobContainersOperations:
889
876
  :keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
890
877
  Default value is "application/json".
891
878
  :paramtype content_type: str
892
- :keyword callable cls: A custom type or function that will be passed the direct response
893
879
  :return: BlobContainer or the result of cls(response)
894
880
  :rtype: ~azure.mgmt.storage.v2019_04_01.models.BlobContainer
895
881
  :raises ~azure.core.exceptions.HttpResponseError:
@@ -901,7 +887,7 @@ class BlobContainersOperations:
901
887
  resource_group_name: str,
902
888
  account_name: str,
903
889
  container_name: str,
904
- blob_container: IO,
890
+ blob_container: IO[bytes],
905
891
  *,
906
892
  content_type: str = "application/json",
907
893
  **kwargs: Any
@@ -922,11 +908,10 @@ class BlobContainersOperations:
922
908
  by a letter or number. Required.
923
909
  :type container_name: str
924
910
  :param blob_container: Properties to update for the blob container. Required.
925
- :type blob_container: IO
911
+ :type blob_container: IO[bytes]
926
912
  :keyword content_type: Body Parameter content-type. Content type parameter for binary body.
927
913
  Default value is "application/json".
928
914
  :paramtype content_type: str
929
- :keyword callable cls: A custom type or function that will be passed the direct response
930
915
  :return: BlobContainer or the result of cls(response)
931
916
  :rtype: ~azure.mgmt.storage.v2019_04_01.models.BlobContainer
932
917
  :raises ~azure.core.exceptions.HttpResponseError:
@@ -938,7 +923,7 @@ class BlobContainersOperations:
938
923
  resource_group_name: str,
939
924
  account_name: str,
940
925
  container_name: str,
941
- blob_container: Union[_models.BlobContainer, IO],
926
+ blob_container: Union[_models.BlobContainer, IO[bytes]],
942
927
  **kwargs: Any
943
928
  ) -> _models.BlobContainer:
944
929
  """Updates container properties as specified in request body. Properties not mentioned in the
@@ -957,17 +942,13 @@ class BlobContainersOperations:
957
942
  by a letter or number. Required.
958
943
  :type container_name: str
959
944
  :param blob_container: Properties to update for the blob container. Is either a BlobContainer
960
- type or a IO type. Required.
961
- :type blob_container: ~azure.mgmt.storage.v2019_04_01.models.BlobContainer or IO
962
- :keyword content_type: Body Parameter content-type. Known values are: 'application/json'.
963
- Default value is None.
964
- :paramtype content_type: str
965
- :keyword callable cls: A custom type or function that will be passed the direct response
945
+ type or a IO[bytes] type. Required.
946
+ :type blob_container: ~azure.mgmt.storage.v2019_04_01.models.BlobContainer or IO[bytes]
966
947
  :return: BlobContainer or the result of cls(response)
967
948
  :rtype: ~azure.mgmt.storage.v2019_04_01.models.BlobContainer
968
949
  :raises ~azure.core.exceptions.HttpResponseError:
969
950
  """
970
- error_map = {
951
+ error_map: MutableMapping[int, Type[HttpResponseError]] = {
971
952
  401: ClientAuthenticationError,
972
953
  404: ResourceNotFoundError,
973
954
  409: ResourceExistsError,
@@ -978,19 +959,19 @@ class BlobContainersOperations:
978
959
  _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
979
960
  _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
980
961
 
981
- api_version: Literal["2019-04-01"] = kwargs.pop("api_version", _params.pop("api-version", "2019-04-01"))
962
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2019-04-01"))
982
963
  content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
983
964
  cls: ClsType[_models.BlobContainer] = kwargs.pop("cls", None)
984
965
 
985
966
  content_type = content_type or "application/json"
986
967
  _json = None
987
968
  _content = None
988
- if isinstance(blob_container, (IO, bytes)):
969
+ if isinstance(blob_container, (IOBase, bytes)):
989
970
  _content = blob_container
990
971
  else:
991
972
  _json = self._serialize.body(blob_container, "BlobContainer")
992
973
 
993
- request = build_update_request(
974
+ _request = build_update_request(
994
975
  resource_group_name=resource_group_name,
995
976
  account_name=account_name,
996
977
  container_name=container_name,
@@ -999,15 +980,15 @@ class BlobContainersOperations:
999
980
  content_type=content_type,
1000
981
  json=_json,
1001
982
  content=_content,
1002
- template_url=self.update.metadata["url"],
1003
983
  headers=_headers,
1004
984
  params=_params,
1005
985
  )
1006
- request = _convert_request(request)
1007
- request.url = self._client.format_url(request.url)
986
+ _request = _convert_request(_request)
987
+ _request.url = self._client.format_url(_request.url)
1008
988
 
989
+ _stream = False
1009
990
  pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access
1010
- request, stream=False, **kwargs
991
+ _request, stream=_stream, **kwargs
1011
992
  )
1012
993
 
1013
994
  response = pipeline_response.http_response
@@ -1019,13 +1000,9 @@ class BlobContainersOperations:
1019
1000
  deserialized = self._deserialize("BlobContainer", pipeline_response)
1020
1001
 
1021
1002
  if cls:
1022
- return cls(pipeline_response, deserialized, {})
1023
-
1024
- return deserialized
1003
+ return cls(pipeline_response, deserialized, {}) # type: ignore
1025
1004
 
1026
- update.metadata = {
1027
- "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/default/containers/{containerName}"
1028
- }
1005
+ return deserialized # type: ignore
1029
1006
 
1030
1007
  @distributed_trace
1031
1008
  def get(
@@ -1045,12 +1022,11 @@ class BlobContainersOperations:
1045
1022
  letters and dash (-) only. Every dash (-) character must be immediately preceded and followed
1046
1023
  by a letter or number. Required.
1047
1024
  :type container_name: str
1048
- :keyword callable cls: A custom type or function that will be passed the direct response
1049
1025
  :return: BlobContainer or the result of cls(response)
1050
1026
  :rtype: ~azure.mgmt.storage.v2019_04_01.models.BlobContainer
1051
1027
  :raises ~azure.core.exceptions.HttpResponseError:
1052
1028
  """
1053
- error_map = {
1029
+ error_map: MutableMapping[int, Type[HttpResponseError]] = {
1054
1030
  401: ClientAuthenticationError,
1055
1031
  404: ResourceNotFoundError,
1056
1032
  409: ResourceExistsError,
@@ -1061,24 +1037,24 @@ class BlobContainersOperations:
1061
1037
  _headers = kwargs.pop("headers", {}) or {}
1062
1038
  _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
1063
1039
 
1064
- api_version: Literal["2019-04-01"] = kwargs.pop("api_version", _params.pop("api-version", "2019-04-01"))
1040
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2019-04-01"))
1065
1041
  cls: ClsType[_models.BlobContainer] = kwargs.pop("cls", None)
1066
1042
 
1067
- request = build_get_request(
1043
+ _request = build_get_request(
1068
1044
  resource_group_name=resource_group_name,
1069
1045
  account_name=account_name,
1070
1046
  container_name=container_name,
1071
1047
  subscription_id=self._config.subscription_id,
1072
1048
  api_version=api_version,
1073
- template_url=self.get.metadata["url"],
1074
1049
  headers=_headers,
1075
1050
  params=_params,
1076
1051
  )
1077
- request = _convert_request(request)
1078
- request.url = self._client.format_url(request.url)
1052
+ _request = _convert_request(_request)
1053
+ _request.url = self._client.format_url(_request.url)
1079
1054
 
1055
+ _stream = False
1080
1056
  pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access
1081
- request, stream=False, **kwargs
1057
+ _request, stream=_stream, **kwargs
1082
1058
  )
1083
1059
 
1084
1060
  response = pipeline_response.http_response
@@ -1090,13 +1066,9 @@ class BlobContainersOperations:
1090
1066
  deserialized = self._deserialize("BlobContainer", pipeline_response)
1091
1067
 
1092
1068
  if cls:
1093
- return cls(pipeline_response, deserialized, {})
1094
-
1095
- return deserialized
1069
+ return cls(pipeline_response, deserialized, {}) # type: ignore
1096
1070
 
1097
- get.metadata = {
1098
- "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/default/containers/{containerName}"
1099
- }
1071
+ return deserialized # type: ignore
1100
1072
 
1101
1073
  @distributed_trace
1102
1074
  def delete( # pylint: disable=inconsistent-return-statements
@@ -1116,12 +1088,11 @@ class BlobContainersOperations:
1116
1088
  letters and dash (-) only. Every dash (-) character must be immediately preceded and followed
1117
1089
  by a letter or number. Required.
1118
1090
  :type container_name: str
1119
- :keyword callable cls: A custom type or function that will be passed the direct response
1120
1091
  :return: None or the result of cls(response)
1121
1092
  :rtype: None
1122
1093
  :raises ~azure.core.exceptions.HttpResponseError:
1123
1094
  """
1124
- error_map = {
1095
+ error_map: MutableMapping[int, Type[HttpResponseError]] = {
1125
1096
  401: ClientAuthenticationError,
1126
1097
  404: ResourceNotFoundError,
1127
1098
  409: ResourceExistsError,
@@ -1132,24 +1103,24 @@ class BlobContainersOperations:
1132
1103
  _headers = kwargs.pop("headers", {}) or {}
1133
1104
  _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
1134
1105
 
1135
- api_version: Literal["2019-04-01"] = kwargs.pop("api_version", _params.pop("api-version", "2019-04-01"))
1106
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2019-04-01"))
1136
1107
  cls: ClsType[None] = kwargs.pop("cls", None)
1137
1108
 
1138
- request = build_delete_request(
1109
+ _request = build_delete_request(
1139
1110
  resource_group_name=resource_group_name,
1140
1111
  account_name=account_name,
1141
1112
  container_name=container_name,
1142
1113
  subscription_id=self._config.subscription_id,
1143
1114
  api_version=api_version,
1144
- template_url=self.delete.metadata["url"],
1145
1115
  headers=_headers,
1146
1116
  params=_params,
1147
1117
  )
1148
- request = _convert_request(request)
1149
- request.url = self._client.format_url(request.url)
1118
+ _request = _convert_request(_request)
1119
+ _request.url = self._client.format_url(_request.url)
1150
1120
 
1121
+ _stream = False
1151
1122
  pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access
1152
- request, stream=False, **kwargs
1123
+ _request, stream=_stream, **kwargs
1153
1124
  )
1154
1125
 
1155
1126
  response = pipeline_response.http_response
@@ -1159,11 +1130,7 @@ class BlobContainersOperations:
1159
1130
  raise HttpResponseError(response=response, error_format=ARMErrorFormat)
1160
1131
 
1161
1132
  if cls:
1162
- return cls(pipeline_response, None, {})
1163
-
1164
- delete.metadata = {
1165
- "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/default/containers/{containerName}"
1166
- }
1133
+ return cls(pipeline_response, None, {}) # type: ignore
1167
1134
 
1168
1135
  @overload
1169
1136
  def set_legal_hold(
@@ -1197,7 +1164,6 @@ class BlobContainersOperations:
1197
1164
  :keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
1198
1165
  Default value is "application/json".
1199
1166
  :paramtype content_type: str
1200
- :keyword callable cls: A custom type or function that will be passed the direct response
1201
1167
  :return: LegalHold or the result of cls(response)
1202
1168
  :rtype: ~azure.mgmt.storage.v2019_04_01.models.LegalHold
1203
1169
  :raises ~azure.core.exceptions.HttpResponseError:
@@ -1209,7 +1175,7 @@ class BlobContainersOperations:
1209
1175
  resource_group_name: str,
1210
1176
  account_name: str,
1211
1177
  container_name: str,
1212
- legal_hold: IO,
1178
+ legal_hold: IO[bytes],
1213
1179
  *,
1214
1180
  content_type: str = "application/json",
1215
1181
  **kwargs: Any
@@ -1231,11 +1197,10 @@ class BlobContainersOperations:
1231
1197
  by a letter or number. Required.
1232
1198
  :type container_name: str
1233
1199
  :param legal_hold: The LegalHold property that will be set to a blob container. Required.
1234
- :type legal_hold: IO
1200
+ :type legal_hold: IO[bytes]
1235
1201
  :keyword content_type: Body Parameter content-type. Content type parameter for binary body.
1236
1202
  Default value is "application/json".
1237
1203
  :paramtype content_type: str
1238
- :keyword callable cls: A custom type or function that will be passed the direct response
1239
1204
  :return: LegalHold or the result of cls(response)
1240
1205
  :rtype: ~azure.mgmt.storage.v2019_04_01.models.LegalHold
1241
1206
  :raises ~azure.core.exceptions.HttpResponseError:
@@ -1247,7 +1212,7 @@ class BlobContainersOperations:
1247
1212
  resource_group_name: str,
1248
1213
  account_name: str,
1249
1214
  container_name: str,
1250
- legal_hold: Union[_models.LegalHold, IO],
1215
+ legal_hold: Union[_models.LegalHold, IO[bytes]],
1251
1216
  **kwargs: Any
1252
1217
  ) -> _models.LegalHold:
1253
1218
  """Sets legal hold tags. Setting the same tag results in an idempotent operation. SetLegalHold
@@ -1267,17 +1232,13 @@ class BlobContainersOperations:
1267
1232
  by a letter or number. Required.
1268
1233
  :type container_name: str
1269
1234
  :param legal_hold: The LegalHold property that will be set to a blob container. Is either a
1270
- LegalHold type or a IO type. Required.
1271
- :type legal_hold: ~azure.mgmt.storage.v2019_04_01.models.LegalHold or IO
1272
- :keyword content_type: Body Parameter content-type. Known values are: 'application/json'.
1273
- Default value is None.
1274
- :paramtype content_type: str
1275
- :keyword callable cls: A custom type or function that will be passed the direct response
1235
+ LegalHold type or a IO[bytes] type. Required.
1236
+ :type legal_hold: ~azure.mgmt.storage.v2019_04_01.models.LegalHold or IO[bytes]
1276
1237
  :return: LegalHold or the result of cls(response)
1277
1238
  :rtype: ~azure.mgmt.storage.v2019_04_01.models.LegalHold
1278
1239
  :raises ~azure.core.exceptions.HttpResponseError:
1279
1240
  """
1280
- error_map = {
1241
+ error_map: MutableMapping[int, Type[HttpResponseError]] = {
1281
1242
  401: ClientAuthenticationError,
1282
1243
  404: ResourceNotFoundError,
1283
1244
  409: ResourceExistsError,
@@ -1288,19 +1249,19 @@ class BlobContainersOperations:
1288
1249
  _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
1289
1250
  _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
1290
1251
 
1291
- api_version: Literal["2019-04-01"] = kwargs.pop("api_version", _params.pop("api-version", "2019-04-01"))
1252
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2019-04-01"))
1292
1253
  content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
1293
1254
  cls: ClsType[_models.LegalHold] = kwargs.pop("cls", None)
1294
1255
 
1295
1256
  content_type = content_type or "application/json"
1296
1257
  _json = None
1297
1258
  _content = None
1298
- if isinstance(legal_hold, (IO, bytes)):
1259
+ if isinstance(legal_hold, (IOBase, bytes)):
1299
1260
  _content = legal_hold
1300
1261
  else:
1301
1262
  _json = self._serialize.body(legal_hold, "LegalHold")
1302
1263
 
1303
- request = build_set_legal_hold_request(
1264
+ _request = build_set_legal_hold_request(
1304
1265
  resource_group_name=resource_group_name,
1305
1266
  account_name=account_name,
1306
1267
  container_name=container_name,
@@ -1309,15 +1270,15 @@ class BlobContainersOperations:
1309
1270
  content_type=content_type,
1310
1271
  json=_json,
1311
1272
  content=_content,
1312
- template_url=self.set_legal_hold.metadata["url"],
1313
1273
  headers=_headers,
1314
1274
  params=_params,
1315
1275
  )
1316
- request = _convert_request(request)
1317
- request.url = self._client.format_url(request.url)
1276
+ _request = _convert_request(_request)
1277
+ _request.url = self._client.format_url(_request.url)
1318
1278
 
1279
+ _stream = False
1319
1280
  pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access
1320
- request, stream=False, **kwargs
1281
+ _request, stream=_stream, **kwargs
1321
1282
  )
1322
1283
 
1323
1284
  response = pipeline_response.http_response
@@ -1329,13 +1290,9 @@ class BlobContainersOperations:
1329
1290
  deserialized = self._deserialize("LegalHold", pipeline_response)
1330
1291
 
1331
1292
  if cls:
1332
- return cls(pipeline_response, deserialized, {})
1333
-
1334
- return deserialized
1293
+ return cls(pipeline_response, deserialized, {}) # type: ignore
1335
1294
 
1336
- set_legal_hold.metadata = {
1337
- "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/default/containers/{containerName}/setLegalHold"
1338
- }
1295
+ return deserialized # type: ignore
1339
1296
 
1340
1297
  @overload
1341
1298
  def clear_legal_hold(
@@ -1368,7 +1325,6 @@ class BlobContainersOperations:
1368
1325
  :keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
1369
1326
  Default value is "application/json".
1370
1327
  :paramtype content_type: str
1371
- :keyword callable cls: A custom type or function that will be passed the direct response
1372
1328
  :return: LegalHold or the result of cls(response)
1373
1329
  :rtype: ~azure.mgmt.storage.v2019_04_01.models.LegalHold
1374
1330
  :raises ~azure.core.exceptions.HttpResponseError:
@@ -1380,7 +1336,7 @@ class BlobContainersOperations:
1380
1336
  resource_group_name: str,
1381
1337
  account_name: str,
1382
1338
  container_name: str,
1383
- legal_hold: IO,
1339
+ legal_hold: IO[bytes],
1384
1340
  *,
1385
1341
  content_type: str = "application/json",
1386
1342
  **kwargs: Any
@@ -1401,11 +1357,10 @@ class BlobContainersOperations:
1401
1357
  by a letter or number. Required.
1402
1358
  :type container_name: str
1403
1359
  :param legal_hold: The LegalHold property that will be clear from a blob container. Required.
1404
- :type legal_hold: IO
1360
+ :type legal_hold: IO[bytes]
1405
1361
  :keyword content_type: Body Parameter content-type. Content type parameter for binary body.
1406
1362
  Default value is "application/json".
1407
1363
  :paramtype content_type: str
1408
- :keyword callable cls: A custom type or function that will be passed the direct response
1409
1364
  :return: LegalHold or the result of cls(response)
1410
1365
  :rtype: ~azure.mgmt.storage.v2019_04_01.models.LegalHold
1411
1366
  :raises ~azure.core.exceptions.HttpResponseError:
@@ -1417,7 +1372,7 @@ class BlobContainersOperations:
1417
1372
  resource_group_name: str,
1418
1373
  account_name: str,
1419
1374
  container_name: str,
1420
- legal_hold: Union[_models.LegalHold, IO],
1375
+ legal_hold: Union[_models.LegalHold, IO[bytes]],
1421
1376
  **kwargs: Any
1422
1377
  ) -> _models.LegalHold:
1423
1378
  """Clears legal hold tags. Clearing the same or non-existent tag results in an idempotent
@@ -1436,17 +1391,13 @@ class BlobContainersOperations:
1436
1391
  by a letter or number. Required.
1437
1392
  :type container_name: str
1438
1393
  :param legal_hold: The LegalHold property that will be clear from a blob container. Is either a
1439
- LegalHold type or a IO type. Required.
1440
- :type legal_hold: ~azure.mgmt.storage.v2019_04_01.models.LegalHold or IO
1441
- :keyword content_type: Body Parameter content-type. Known values are: 'application/json'.
1442
- Default value is None.
1443
- :paramtype content_type: str
1444
- :keyword callable cls: A custom type or function that will be passed the direct response
1394
+ LegalHold type or a IO[bytes] type. Required.
1395
+ :type legal_hold: ~azure.mgmt.storage.v2019_04_01.models.LegalHold or IO[bytes]
1445
1396
  :return: LegalHold or the result of cls(response)
1446
1397
  :rtype: ~azure.mgmt.storage.v2019_04_01.models.LegalHold
1447
1398
  :raises ~azure.core.exceptions.HttpResponseError:
1448
1399
  """
1449
- error_map = {
1400
+ error_map: MutableMapping[int, Type[HttpResponseError]] = {
1450
1401
  401: ClientAuthenticationError,
1451
1402
  404: ResourceNotFoundError,
1452
1403
  409: ResourceExistsError,
@@ -1457,19 +1408,19 @@ class BlobContainersOperations:
1457
1408
  _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
1458
1409
  _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
1459
1410
 
1460
- api_version: Literal["2019-04-01"] = kwargs.pop("api_version", _params.pop("api-version", "2019-04-01"))
1411
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2019-04-01"))
1461
1412
  content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
1462
1413
  cls: ClsType[_models.LegalHold] = kwargs.pop("cls", None)
1463
1414
 
1464
1415
  content_type = content_type or "application/json"
1465
1416
  _json = None
1466
1417
  _content = None
1467
- if isinstance(legal_hold, (IO, bytes)):
1418
+ if isinstance(legal_hold, (IOBase, bytes)):
1468
1419
  _content = legal_hold
1469
1420
  else:
1470
1421
  _json = self._serialize.body(legal_hold, "LegalHold")
1471
1422
 
1472
- request = build_clear_legal_hold_request(
1423
+ _request = build_clear_legal_hold_request(
1473
1424
  resource_group_name=resource_group_name,
1474
1425
  account_name=account_name,
1475
1426
  container_name=container_name,
@@ -1478,15 +1429,15 @@ class BlobContainersOperations:
1478
1429
  content_type=content_type,
1479
1430
  json=_json,
1480
1431
  content=_content,
1481
- template_url=self.clear_legal_hold.metadata["url"],
1482
1432
  headers=_headers,
1483
1433
  params=_params,
1484
1434
  )
1485
- request = _convert_request(request)
1486
- request.url = self._client.format_url(request.url)
1435
+ _request = _convert_request(_request)
1436
+ _request.url = self._client.format_url(_request.url)
1487
1437
 
1438
+ _stream = False
1488
1439
  pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access
1489
- request, stream=False, **kwargs
1440
+ _request, stream=_stream, **kwargs
1490
1441
  )
1491
1442
 
1492
1443
  response = pipeline_response.http_response
@@ -1498,13 +1449,9 @@ class BlobContainersOperations:
1498
1449
  deserialized = self._deserialize("LegalHold", pipeline_response)
1499
1450
 
1500
1451
  if cls:
1501
- return cls(pipeline_response, deserialized, {})
1502
-
1503
- return deserialized
1452
+ return cls(pipeline_response, deserialized, {}) # type: ignore
1504
1453
 
1505
- clear_legal_hold.metadata = {
1506
- "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/default/containers/{containerName}/clearLegalHold"
1507
- }
1454
+ return deserialized # type: ignore
1508
1455
 
1509
1456
  @overload
1510
1457
  def create_or_update_immutability_policy(
@@ -1547,7 +1494,6 @@ class BlobContainersOperations:
1547
1494
  :keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
1548
1495
  Default value is "application/json".
1549
1496
  :paramtype content_type: str
1550
- :keyword callable cls: A custom type or function that will be passed the direct response
1551
1497
  :return: ImmutabilityPolicy or the result of cls(response)
1552
1498
  :rtype: ~azure.mgmt.storage.v2019_04_01.models.ImmutabilityPolicy
1553
1499
  :raises ~azure.core.exceptions.HttpResponseError:
@@ -1561,7 +1507,7 @@ class BlobContainersOperations:
1561
1507
  container_name: str,
1562
1508
  immutability_policy_name: Union[str, _models.Enum16],
1563
1509
  if_match: Optional[str] = None,
1564
- parameters: Optional[IO] = None,
1510
+ parameters: Optional[IO[bytes]] = None,
1565
1511
  *,
1566
1512
  content_type: str = "application/json",
1567
1513
  **kwargs: Any
@@ -1590,11 +1536,10 @@ class BlobContainersOperations:
1590
1536
  :type if_match: str
1591
1537
  :param parameters: The ImmutabilityPolicy Properties that will be created or updated to a blob
1592
1538
  container. Default value is None.
1593
- :type parameters: IO
1539
+ :type parameters: IO[bytes]
1594
1540
  :keyword content_type: Body Parameter content-type. Content type parameter for binary body.
1595
1541
  Default value is "application/json".
1596
1542
  :paramtype content_type: str
1597
- :keyword callable cls: A custom type or function that will be passed the direct response
1598
1543
  :return: ImmutabilityPolicy or the result of cls(response)
1599
1544
  :rtype: ~azure.mgmt.storage.v2019_04_01.models.ImmutabilityPolicy
1600
1545
  :raises ~azure.core.exceptions.HttpResponseError:
@@ -1608,7 +1553,7 @@ class BlobContainersOperations:
1608
1553
  container_name: str,
1609
1554
  immutability_policy_name: Union[str, _models.Enum16],
1610
1555
  if_match: Optional[str] = None,
1611
- parameters: Optional[Union[_models.ImmutabilityPolicy, IO]] = None,
1556
+ parameters: Optional[Union[_models.ImmutabilityPolicy, IO[bytes]]] = None,
1612
1557
  **kwargs: Any
1613
1558
  ) -> _models.ImmutabilityPolicy:
1614
1559
  """Creates or updates an unlocked immutability policy. ETag in If-Match is honored if given but
@@ -1634,17 +1579,13 @@ class BlobContainersOperations:
1634
1579
  omitted, this operation will always be applied. Default value is None.
1635
1580
  :type if_match: str
1636
1581
  :param parameters: The ImmutabilityPolicy Properties that will be created or updated to a blob
1637
- container. Is either a ImmutabilityPolicy type or a IO type. Default value is None.
1638
- :type parameters: ~azure.mgmt.storage.v2019_04_01.models.ImmutabilityPolicy or IO
1639
- :keyword content_type: Body Parameter content-type. Known values are: 'application/json'.
1640
- Default value is None.
1641
- :paramtype content_type: str
1642
- :keyword callable cls: A custom type or function that will be passed the direct response
1582
+ container. Is either a ImmutabilityPolicy type or a IO[bytes] type. Default value is None.
1583
+ :type parameters: ~azure.mgmt.storage.v2019_04_01.models.ImmutabilityPolicy or IO[bytes]
1643
1584
  :return: ImmutabilityPolicy or the result of cls(response)
1644
1585
  :rtype: ~azure.mgmt.storage.v2019_04_01.models.ImmutabilityPolicy
1645
1586
  :raises ~azure.core.exceptions.HttpResponseError:
1646
1587
  """
1647
- error_map = {
1588
+ error_map: MutableMapping[int, Type[HttpResponseError]] = {
1648
1589
  401: ClientAuthenticationError,
1649
1590
  404: ResourceNotFoundError,
1650
1591
  409: ResourceExistsError,
@@ -1655,14 +1596,14 @@ class BlobContainersOperations:
1655
1596
  _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
1656
1597
  _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
1657
1598
 
1658
- api_version: Literal["2019-04-01"] = kwargs.pop("api_version", _params.pop("api-version", "2019-04-01"))
1599
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2019-04-01"))
1659
1600
  content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
1660
1601
  cls: ClsType[_models.ImmutabilityPolicy] = kwargs.pop("cls", None)
1661
1602
 
1662
1603
  content_type = content_type or "application/json"
1663
1604
  _json = None
1664
1605
  _content = None
1665
- if isinstance(parameters, (IO, bytes)):
1606
+ if isinstance(parameters, (IOBase, bytes)):
1666
1607
  _content = parameters
1667
1608
  else:
1668
1609
  if parameters is not None:
@@ -1670,7 +1611,7 @@ class BlobContainersOperations:
1670
1611
  else:
1671
1612
  _json = None
1672
1613
 
1673
- request = build_create_or_update_immutability_policy_request(
1614
+ _request = build_create_or_update_immutability_policy_request(
1674
1615
  resource_group_name=resource_group_name,
1675
1616
  account_name=account_name,
1676
1617
  container_name=container_name,
@@ -1681,15 +1622,15 @@ class BlobContainersOperations:
1681
1622
  content_type=content_type,
1682
1623
  json=_json,
1683
1624
  content=_content,
1684
- template_url=self.create_or_update_immutability_policy.metadata["url"],
1685
1625
  headers=_headers,
1686
1626
  params=_params,
1687
1627
  )
1688
- request = _convert_request(request)
1689
- request.url = self._client.format_url(request.url)
1628
+ _request = _convert_request(_request)
1629
+ _request.url = self._client.format_url(_request.url)
1690
1630
 
1631
+ _stream = False
1691
1632
  pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access
1692
- request, stream=False, **kwargs
1633
+ _request, stream=_stream, **kwargs
1693
1634
  )
1694
1635
 
1695
1636
  response = pipeline_response.http_response
@@ -1704,13 +1645,9 @@ class BlobContainersOperations:
1704
1645
  deserialized = self._deserialize("ImmutabilityPolicy", pipeline_response)
1705
1646
 
1706
1647
  if cls:
1707
- return cls(pipeline_response, deserialized, response_headers)
1648
+ return cls(pipeline_response, deserialized, response_headers) # type: ignore
1708
1649
 
1709
- return deserialized
1710
-
1711
- create_or_update_immutability_policy.metadata = {
1712
- "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/default/containers/{containerName}/immutabilityPolicies/{immutabilityPolicyName}"
1713
- }
1650
+ return deserialized # type: ignore
1714
1651
 
1715
1652
  @distributed_trace
1716
1653
  def get_immutability_policy(
@@ -1744,12 +1681,11 @@ class BlobContainersOperations:
1744
1681
  of "*" can be used to apply the operation only if the immutability policy already exists. If
1745
1682
  omitted, this operation will always be applied. Default value is None.
1746
1683
  :type if_match: str
1747
- :keyword callable cls: A custom type or function that will be passed the direct response
1748
1684
  :return: ImmutabilityPolicy or the result of cls(response)
1749
1685
  :rtype: ~azure.mgmt.storage.v2019_04_01.models.ImmutabilityPolicy
1750
1686
  :raises ~azure.core.exceptions.HttpResponseError:
1751
1687
  """
1752
- error_map = {
1688
+ error_map: MutableMapping[int, Type[HttpResponseError]] = {
1753
1689
  401: ClientAuthenticationError,
1754
1690
  404: ResourceNotFoundError,
1755
1691
  409: ResourceExistsError,
@@ -1760,10 +1696,10 @@ class BlobContainersOperations:
1760
1696
  _headers = kwargs.pop("headers", {}) or {}
1761
1697
  _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
1762
1698
 
1763
- api_version: Literal["2019-04-01"] = kwargs.pop("api_version", _params.pop("api-version", "2019-04-01"))
1699
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2019-04-01"))
1764
1700
  cls: ClsType[_models.ImmutabilityPolicy] = kwargs.pop("cls", None)
1765
1701
 
1766
- request = build_get_immutability_policy_request(
1702
+ _request = build_get_immutability_policy_request(
1767
1703
  resource_group_name=resource_group_name,
1768
1704
  account_name=account_name,
1769
1705
  container_name=container_name,
@@ -1771,15 +1707,15 @@ class BlobContainersOperations:
1771
1707
  subscription_id=self._config.subscription_id,
1772
1708
  if_match=if_match,
1773
1709
  api_version=api_version,
1774
- template_url=self.get_immutability_policy.metadata["url"],
1775
1710
  headers=_headers,
1776
1711
  params=_params,
1777
1712
  )
1778
- request = _convert_request(request)
1779
- request.url = self._client.format_url(request.url)
1713
+ _request = _convert_request(_request)
1714
+ _request.url = self._client.format_url(_request.url)
1780
1715
 
1716
+ _stream = False
1781
1717
  pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access
1782
- request, stream=False, **kwargs
1718
+ _request, stream=_stream, **kwargs
1783
1719
  )
1784
1720
 
1785
1721
  response = pipeline_response.http_response
@@ -1794,13 +1730,9 @@ class BlobContainersOperations:
1794
1730
  deserialized = self._deserialize("ImmutabilityPolicy", pipeline_response)
1795
1731
 
1796
1732
  if cls:
1797
- return cls(pipeline_response, deserialized, response_headers)
1733
+ return cls(pipeline_response, deserialized, response_headers) # type: ignore
1798
1734
 
1799
- return deserialized
1800
-
1801
- get_immutability_policy.metadata = {
1802
- "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/default/containers/{containerName}/immutabilityPolicies/{immutabilityPolicyName}"
1803
- }
1735
+ return deserialized # type: ignore
1804
1736
 
1805
1737
  @distributed_trace
1806
1738
  def delete_immutability_policy(
@@ -1836,12 +1768,11 @@ class BlobContainersOperations:
1836
1768
  of "*" can be used to apply the operation only if the immutability policy already exists. If
1837
1769
  omitted, this operation will always be applied. Required.
1838
1770
  :type if_match: str
1839
- :keyword callable cls: A custom type or function that will be passed the direct response
1840
1771
  :return: ImmutabilityPolicy or the result of cls(response)
1841
1772
  :rtype: ~azure.mgmt.storage.v2019_04_01.models.ImmutabilityPolicy
1842
1773
  :raises ~azure.core.exceptions.HttpResponseError:
1843
1774
  """
1844
- error_map = {
1775
+ error_map: MutableMapping[int, Type[HttpResponseError]] = {
1845
1776
  401: ClientAuthenticationError,
1846
1777
  404: ResourceNotFoundError,
1847
1778
  409: ResourceExistsError,
@@ -1852,10 +1783,10 @@ class BlobContainersOperations:
1852
1783
  _headers = kwargs.pop("headers", {}) or {}
1853
1784
  _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
1854
1785
 
1855
- api_version: Literal["2019-04-01"] = kwargs.pop("api_version", _params.pop("api-version", "2019-04-01"))
1786
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2019-04-01"))
1856
1787
  cls: ClsType[_models.ImmutabilityPolicy] = kwargs.pop("cls", None)
1857
1788
 
1858
- request = build_delete_immutability_policy_request(
1789
+ _request = build_delete_immutability_policy_request(
1859
1790
  resource_group_name=resource_group_name,
1860
1791
  account_name=account_name,
1861
1792
  container_name=container_name,
@@ -1863,15 +1794,15 @@ class BlobContainersOperations:
1863
1794
  subscription_id=self._config.subscription_id,
1864
1795
  if_match=if_match,
1865
1796
  api_version=api_version,
1866
- template_url=self.delete_immutability_policy.metadata["url"],
1867
1797
  headers=_headers,
1868
1798
  params=_params,
1869
1799
  )
1870
- request = _convert_request(request)
1871
- request.url = self._client.format_url(request.url)
1800
+ _request = _convert_request(_request)
1801
+ _request.url = self._client.format_url(_request.url)
1872
1802
 
1803
+ _stream = False
1873
1804
  pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access
1874
- request, stream=False, **kwargs
1805
+ _request, stream=_stream, **kwargs
1875
1806
  )
1876
1807
 
1877
1808
  response = pipeline_response.http_response
@@ -1886,13 +1817,9 @@ class BlobContainersOperations:
1886
1817
  deserialized = self._deserialize("ImmutabilityPolicy", pipeline_response)
1887
1818
 
1888
1819
  if cls:
1889
- return cls(pipeline_response, deserialized, response_headers)
1820
+ return cls(pipeline_response, deserialized, response_headers) # type: ignore
1890
1821
 
1891
- return deserialized
1892
-
1893
- delete_immutability_policy.metadata = {
1894
- "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/default/containers/{containerName}/immutabilityPolicies/{immutabilityPolicyName}"
1895
- }
1822
+ return deserialized # type: ignore
1896
1823
 
1897
1824
  @distributed_trace
1898
1825
  def lock_immutability_policy(
@@ -1917,12 +1844,11 @@ class BlobContainersOperations:
1917
1844
  of "*" can be used to apply the operation only if the immutability policy already exists. If
1918
1845
  omitted, this operation will always be applied. Required.
1919
1846
  :type if_match: str
1920
- :keyword callable cls: A custom type or function that will be passed the direct response
1921
1847
  :return: ImmutabilityPolicy or the result of cls(response)
1922
1848
  :rtype: ~azure.mgmt.storage.v2019_04_01.models.ImmutabilityPolicy
1923
1849
  :raises ~azure.core.exceptions.HttpResponseError:
1924
1850
  """
1925
- error_map = {
1851
+ error_map: MutableMapping[int, Type[HttpResponseError]] = {
1926
1852
  401: ClientAuthenticationError,
1927
1853
  404: ResourceNotFoundError,
1928
1854
  409: ResourceExistsError,
@@ -1933,25 +1859,25 @@ class BlobContainersOperations:
1933
1859
  _headers = kwargs.pop("headers", {}) or {}
1934
1860
  _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
1935
1861
 
1936
- api_version: Literal["2019-04-01"] = kwargs.pop("api_version", _params.pop("api-version", "2019-04-01"))
1862
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2019-04-01"))
1937
1863
  cls: ClsType[_models.ImmutabilityPolicy] = kwargs.pop("cls", None)
1938
1864
 
1939
- request = build_lock_immutability_policy_request(
1865
+ _request = build_lock_immutability_policy_request(
1940
1866
  resource_group_name=resource_group_name,
1941
1867
  account_name=account_name,
1942
1868
  container_name=container_name,
1943
1869
  subscription_id=self._config.subscription_id,
1944
1870
  if_match=if_match,
1945
1871
  api_version=api_version,
1946
- template_url=self.lock_immutability_policy.metadata["url"],
1947
1872
  headers=_headers,
1948
1873
  params=_params,
1949
1874
  )
1950
- request = _convert_request(request)
1951
- request.url = self._client.format_url(request.url)
1875
+ _request = _convert_request(_request)
1876
+ _request.url = self._client.format_url(_request.url)
1952
1877
 
1878
+ _stream = False
1953
1879
  pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access
1954
- request, stream=False, **kwargs
1880
+ _request, stream=_stream, **kwargs
1955
1881
  )
1956
1882
 
1957
1883
  response = pipeline_response.http_response
@@ -1966,13 +1892,9 @@ class BlobContainersOperations:
1966
1892
  deserialized = self._deserialize("ImmutabilityPolicy", pipeline_response)
1967
1893
 
1968
1894
  if cls:
1969
- return cls(pipeline_response, deserialized, response_headers)
1895
+ return cls(pipeline_response, deserialized, response_headers) # type: ignore
1970
1896
 
1971
- return deserialized
1972
-
1973
- lock_immutability_policy.metadata = {
1974
- "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/default/containers/{containerName}/immutabilityPolicies/default/lock"
1975
- }
1897
+ return deserialized # type: ignore
1976
1898
 
1977
1899
  @overload
1978
1900
  def extend_immutability_policy(
@@ -2012,7 +1934,6 @@ class BlobContainersOperations:
2012
1934
  :keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
2013
1935
  Default value is "application/json".
2014
1936
  :paramtype content_type: str
2015
- :keyword callable cls: A custom type or function that will be passed the direct response
2016
1937
  :return: ImmutabilityPolicy or the result of cls(response)
2017
1938
  :rtype: ~azure.mgmt.storage.v2019_04_01.models.ImmutabilityPolicy
2018
1939
  :raises ~azure.core.exceptions.HttpResponseError:
@@ -2025,7 +1946,7 @@ class BlobContainersOperations:
2025
1946
  account_name: str,
2026
1947
  container_name: str,
2027
1948
  if_match: str,
2028
- parameters: Optional[IO] = None,
1949
+ parameters: Optional[IO[bytes]] = None,
2029
1950
  *,
2030
1951
  content_type: str = "application/json",
2031
1952
  **kwargs: Any
@@ -2052,11 +1973,10 @@ class BlobContainersOperations:
2052
1973
  :type if_match: str
2053
1974
  :param parameters: The ImmutabilityPolicy Properties that will be extended for a blob
2054
1975
  container. Default value is None.
2055
- :type parameters: IO
1976
+ :type parameters: IO[bytes]
2056
1977
  :keyword content_type: Body Parameter content-type. Content type parameter for binary body.
2057
1978
  Default value is "application/json".
2058
1979
  :paramtype content_type: str
2059
- :keyword callable cls: A custom type or function that will be passed the direct response
2060
1980
  :return: ImmutabilityPolicy or the result of cls(response)
2061
1981
  :rtype: ~azure.mgmt.storage.v2019_04_01.models.ImmutabilityPolicy
2062
1982
  :raises ~azure.core.exceptions.HttpResponseError:
@@ -2069,7 +1989,7 @@ class BlobContainersOperations:
2069
1989
  account_name: str,
2070
1990
  container_name: str,
2071
1991
  if_match: str,
2072
- parameters: Optional[Union[_models.ImmutabilityPolicy, IO]] = None,
1992
+ parameters: Optional[Union[_models.ImmutabilityPolicy, IO[bytes]]] = None,
2073
1993
  **kwargs: Any
2074
1994
  ) -> _models.ImmutabilityPolicy:
2075
1995
  """Extends the immutabilityPeriodSinceCreationInDays of a locked immutabilityPolicy. The only
@@ -2093,17 +2013,13 @@ class BlobContainersOperations:
2093
2013
  omitted, this operation will always be applied. Required.
2094
2014
  :type if_match: str
2095
2015
  :param parameters: The ImmutabilityPolicy Properties that will be extended for a blob
2096
- container. Is either a ImmutabilityPolicy type or a IO type. Default value is None.
2097
- :type parameters: ~azure.mgmt.storage.v2019_04_01.models.ImmutabilityPolicy or IO
2098
- :keyword content_type: Body Parameter content-type. Known values are: 'application/json'.
2099
- Default value is None.
2100
- :paramtype content_type: str
2101
- :keyword callable cls: A custom type or function that will be passed the direct response
2016
+ container. Is either a ImmutabilityPolicy type or a IO[bytes] type. Default value is None.
2017
+ :type parameters: ~azure.mgmt.storage.v2019_04_01.models.ImmutabilityPolicy or IO[bytes]
2102
2018
  :return: ImmutabilityPolicy or the result of cls(response)
2103
2019
  :rtype: ~azure.mgmt.storage.v2019_04_01.models.ImmutabilityPolicy
2104
2020
  :raises ~azure.core.exceptions.HttpResponseError:
2105
2021
  """
2106
- error_map = {
2022
+ error_map: MutableMapping[int, Type[HttpResponseError]] = {
2107
2023
  401: ClientAuthenticationError,
2108
2024
  404: ResourceNotFoundError,
2109
2025
  409: ResourceExistsError,
@@ -2114,14 +2030,14 @@ class BlobContainersOperations:
2114
2030
  _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
2115
2031
  _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
2116
2032
 
2117
- api_version: Literal["2019-04-01"] = kwargs.pop("api_version", _params.pop("api-version", "2019-04-01"))
2033
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2019-04-01"))
2118
2034
  content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
2119
2035
  cls: ClsType[_models.ImmutabilityPolicy] = kwargs.pop("cls", None)
2120
2036
 
2121
2037
  content_type = content_type or "application/json"
2122
2038
  _json = None
2123
2039
  _content = None
2124
- if isinstance(parameters, (IO, bytes)):
2040
+ if isinstance(parameters, (IOBase, bytes)):
2125
2041
  _content = parameters
2126
2042
  else:
2127
2043
  if parameters is not None:
@@ -2129,7 +2045,7 @@ class BlobContainersOperations:
2129
2045
  else:
2130
2046
  _json = None
2131
2047
 
2132
- request = build_extend_immutability_policy_request(
2048
+ _request = build_extend_immutability_policy_request(
2133
2049
  resource_group_name=resource_group_name,
2134
2050
  account_name=account_name,
2135
2051
  container_name=container_name,
@@ -2139,15 +2055,15 @@ class BlobContainersOperations:
2139
2055
  content_type=content_type,
2140
2056
  json=_json,
2141
2057
  content=_content,
2142
- template_url=self.extend_immutability_policy.metadata["url"],
2143
2058
  headers=_headers,
2144
2059
  params=_params,
2145
2060
  )
2146
- request = _convert_request(request)
2147
- request.url = self._client.format_url(request.url)
2061
+ _request = _convert_request(_request)
2062
+ _request.url = self._client.format_url(_request.url)
2148
2063
 
2064
+ _stream = False
2149
2065
  pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access
2150
- request, stream=False, **kwargs
2066
+ _request, stream=_stream, **kwargs
2151
2067
  )
2152
2068
 
2153
2069
  response = pipeline_response.http_response
@@ -2162,13 +2078,9 @@ class BlobContainersOperations:
2162
2078
  deserialized = self._deserialize("ImmutabilityPolicy", pipeline_response)
2163
2079
 
2164
2080
  if cls:
2165
- return cls(pipeline_response, deserialized, response_headers)
2166
-
2167
- return deserialized
2081
+ return cls(pipeline_response, deserialized, response_headers) # type: ignore
2168
2082
 
2169
- extend_immutability_policy.metadata = {
2170
- "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/default/containers/{containerName}/immutabilityPolicies/default/extend"
2171
- }
2083
+ return deserialized # type: ignore
2172
2084
 
2173
2085
  @overload
2174
2086
  def lease(
@@ -2201,7 +2113,6 @@ class BlobContainersOperations:
2201
2113
  :keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
2202
2114
  Default value is "application/json".
2203
2115
  :paramtype content_type: str
2204
- :keyword callable cls: A custom type or function that will be passed the direct response
2205
2116
  :return: LeaseContainerResponse or the result of cls(response)
2206
2117
  :rtype: ~azure.mgmt.storage.v2019_04_01.models.LeaseContainerResponse
2207
2118
  :raises ~azure.core.exceptions.HttpResponseError:
@@ -2213,7 +2124,7 @@ class BlobContainersOperations:
2213
2124
  resource_group_name: str,
2214
2125
  account_name: str,
2215
2126
  container_name: str,
2216
- parameters: Optional[IO] = None,
2127
+ parameters: Optional[IO[bytes]] = None,
2217
2128
  *,
2218
2129
  content_type: str = "application/json",
2219
2130
  **kwargs: Any
@@ -2234,11 +2145,10 @@ class BlobContainersOperations:
2234
2145
  by a letter or number. Required.
2235
2146
  :type container_name: str
2236
2147
  :param parameters: Lease Container request body. Default value is None.
2237
- :type parameters: IO
2148
+ :type parameters: IO[bytes]
2238
2149
  :keyword content_type: Body Parameter content-type. Content type parameter for binary body.
2239
2150
  Default value is "application/json".
2240
2151
  :paramtype content_type: str
2241
- :keyword callable cls: A custom type or function that will be passed the direct response
2242
2152
  :return: LeaseContainerResponse or the result of cls(response)
2243
2153
  :rtype: ~azure.mgmt.storage.v2019_04_01.models.LeaseContainerResponse
2244
2154
  :raises ~azure.core.exceptions.HttpResponseError:
@@ -2250,7 +2160,7 @@ class BlobContainersOperations:
2250
2160
  resource_group_name: str,
2251
2161
  account_name: str,
2252
2162
  container_name: str,
2253
- parameters: Optional[Union[_models.LeaseContainerRequest, IO]] = None,
2163
+ parameters: Optional[Union[_models.LeaseContainerRequest, IO[bytes]]] = None,
2254
2164
  **kwargs: Any
2255
2165
  ) -> _models.LeaseContainerResponse:
2256
2166
  """The Lease Container operation establishes and manages a lock on a container for delete
@@ -2268,18 +2178,14 @@ class BlobContainersOperations:
2268
2178
  letters and dash (-) only. Every dash (-) character must be immediately preceded and followed
2269
2179
  by a letter or number. Required.
2270
2180
  :type container_name: str
2271
- :param parameters: Lease Container request body. Is either a LeaseContainerRequest type or a IO
2272
- type. Default value is None.
2273
- :type parameters: ~azure.mgmt.storage.v2019_04_01.models.LeaseContainerRequest or IO
2274
- :keyword content_type: Body Parameter content-type. Known values are: 'application/json'.
2275
- Default value is None.
2276
- :paramtype content_type: str
2277
- :keyword callable cls: A custom type or function that will be passed the direct response
2181
+ :param parameters: Lease Container request body. Is either a LeaseContainerRequest type or a
2182
+ IO[bytes] type. Default value is None.
2183
+ :type parameters: ~azure.mgmt.storage.v2019_04_01.models.LeaseContainerRequest or IO[bytes]
2278
2184
  :return: LeaseContainerResponse or the result of cls(response)
2279
2185
  :rtype: ~azure.mgmt.storage.v2019_04_01.models.LeaseContainerResponse
2280
2186
  :raises ~azure.core.exceptions.HttpResponseError:
2281
2187
  """
2282
- error_map = {
2188
+ error_map: MutableMapping[int, Type[HttpResponseError]] = {
2283
2189
  401: ClientAuthenticationError,
2284
2190
  404: ResourceNotFoundError,
2285
2191
  409: ResourceExistsError,
@@ -2290,14 +2196,14 @@ class BlobContainersOperations:
2290
2196
  _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
2291
2197
  _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
2292
2198
 
2293
- api_version: Literal["2019-04-01"] = kwargs.pop("api_version", _params.pop("api-version", "2019-04-01"))
2199
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2019-04-01"))
2294
2200
  content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
2295
2201
  cls: ClsType[_models.LeaseContainerResponse] = kwargs.pop("cls", None)
2296
2202
 
2297
2203
  content_type = content_type or "application/json"
2298
2204
  _json = None
2299
2205
  _content = None
2300
- if isinstance(parameters, (IO, bytes)):
2206
+ if isinstance(parameters, (IOBase, bytes)):
2301
2207
  _content = parameters
2302
2208
  else:
2303
2209
  if parameters is not None:
@@ -2305,7 +2211,7 @@ class BlobContainersOperations:
2305
2211
  else:
2306
2212
  _json = None
2307
2213
 
2308
- request = build_lease_request(
2214
+ _request = build_lease_request(
2309
2215
  resource_group_name=resource_group_name,
2310
2216
  account_name=account_name,
2311
2217
  container_name=container_name,
@@ -2314,15 +2220,15 @@ class BlobContainersOperations:
2314
2220
  content_type=content_type,
2315
2221
  json=_json,
2316
2222
  content=_content,
2317
- template_url=self.lease.metadata["url"],
2318
2223
  headers=_headers,
2319
2224
  params=_params,
2320
2225
  )
2321
- request = _convert_request(request)
2322
- request.url = self._client.format_url(request.url)
2226
+ _request = _convert_request(_request)
2227
+ _request.url = self._client.format_url(_request.url)
2323
2228
 
2229
+ _stream = False
2324
2230
  pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access
2325
- request, stream=False, **kwargs
2231
+ _request, stream=_stream, **kwargs
2326
2232
  )
2327
2233
 
2328
2234
  response = pipeline_response.http_response
@@ -2334,10 +2240,6 @@ class BlobContainersOperations:
2334
2240
  deserialized = self._deserialize("LeaseContainerResponse", pipeline_response)
2335
2241
 
2336
2242
  if cls:
2337
- return cls(pipeline_response, deserialized, {})
2338
-
2339
- return deserialized
2243
+ return cls(pipeline_response, deserialized, {}) # type: ignore
2340
2244
 
2341
- lease.metadata = {
2342
- "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/default/containers/{containerName}/lease"
2343
- }
2245
+ return deserialized # type: ignore