azure-mgmt-storage 21.2.1__py3-none-any.whl → 22.1.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (963) hide show
  1. azure/mgmt/storage/_serialization.py +281 -168
  2. azure/mgmt/storage/_storage_management_client.py +90 -869
  3. azure/mgmt/storage/_version.py +1 -1
  4. azure/mgmt/storage/aio/_storage_management_client.py +90 -869
  5. azure/mgmt/storage/models.py +2 -2
  6. azure/mgmt/storage/v2016_01_01/__init__.py +9 -3
  7. azure/mgmt/storage/v2016_01_01/_configuration.py +1 -2
  8. azure/mgmt/storage/v2016_01_01/_storage_management_client.py +3 -3
  9. azure/mgmt/storage/v2016_01_01/_version.py +1 -1
  10. azure/mgmt/storage/v2016_01_01/aio/__init__.py +9 -3
  11. azure/mgmt/storage/v2016_01_01/aio/_configuration.py +1 -2
  12. azure/mgmt/storage/v2016_01_01/aio/_storage_management_client.py +3 -3
  13. azure/mgmt/storage/v2016_01_01/aio/operations/__init__.py +10 -4
  14. azure/mgmt/storage/v2016_01_01/aio/operations/_storage_accounts_operations.py +32 -41
  15. azure/mgmt/storage/v2016_01_01/aio/operations/_usage_operations.py +4 -9
  16. azure/mgmt/storage/v2016_01_01/models/__init__.py +43 -32
  17. azure/mgmt/storage/v2016_01_01/models/_models_py3.py +1 -3
  18. azure/mgmt/storage/v2016_01_01/operations/__init__.py +10 -4
  19. azure/mgmt/storage/v2016_01_01/operations/_storage_accounts_operations.py +31 -38
  20. azure/mgmt/storage/v2016_01_01/operations/_usage_operations.py +4 -9
  21. azure/mgmt/storage/v2016_01_01/py.typed +1 -0
  22. azure/mgmt/storage/v2017_10_01/__init__.py +9 -3
  23. azure/mgmt/storage/v2017_10_01/_configuration.py +1 -2
  24. azure/mgmt/storage/v2017_10_01/_storage_management.py +3 -3
  25. azure/mgmt/storage/v2017_10_01/_version.py +1 -1
  26. azure/mgmt/storage/v2017_10_01/aio/__init__.py +9 -3
  27. azure/mgmt/storage/v2017_10_01/aio/_configuration.py +1 -2
  28. azure/mgmt/storage/v2017_10_01/aio/_storage_management.py +3 -3
  29. azure/mgmt/storage/v2017_10_01/aio/operations/__init__.py +12 -6
  30. azure/mgmt/storage/v2017_10_01/aio/operations/_operations.py +4 -9
  31. azure/mgmt/storage/v2017_10_01/aio/operations/_skus_operations.py +4 -9
  32. azure/mgmt/storage/v2017_10_01/aio/operations/_storage_accounts_operations.py +36 -47
  33. azure/mgmt/storage/v2017_10_01/aio/operations/_usage_operations.py +4 -9
  34. azure/mgmt/storage/v2017_10_01/models/__init__.py +69 -58
  35. azure/mgmt/storage/v2017_10_01/models/_models_py3.py +3 -4
  36. azure/mgmt/storage/v2017_10_01/operations/__init__.py +12 -6
  37. azure/mgmt/storage/v2017_10_01/operations/_operations.py +4 -9
  38. azure/mgmt/storage/v2017_10_01/operations/_skus_operations.py +4 -9
  39. azure/mgmt/storage/v2017_10_01/operations/_storage_accounts_operations.py +35 -44
  40. azure/mgmt/storage/v2017_10_01/operations/_usage_operations.py +4 -9
  41. azure/mgmt/storage/v2017_10_01/py.typed +1 -0
  42. azure/mgmt/storage/v2019_06_01/__init__.py +9 -3
  43. azure/mgmt/storage/v2019_06_01/_configuration.py +1 -2
  44. azure/mgmt/storage/v2019_06_01/_storage_management_client.py +3 -3
  45. azure/mgmt/storage/v2019_06_01/_version.py +1 -1
  46. azure/mgmt/storage/v2019_06_01/aio/__init__.py +9 -3
  47. azure/mgmt/storage/v2019_06_01/aio/_configuration.py +1 -2
  48. azure/mgmt/storage/v2019_06_01/aio/_storage_management_client.py +3 -3
  49. azure/mgmt/storage/v2019_06_01/aio/operations/__init__.py +26 -20
  50. azure/mgmt/storage/v2019_06_01/aio/operations/_blob_containers_operations.py +29 -51
  51. azure/mgmt/storage/v2019_06_01/aio/operations/_blob_inventory_policies_operations.py +10 -18
  52. azure/mgmt/storage/v2019_06_01/aio/operations/_blob_services_operations.py +8 -15
  53. azure/mgmt/storage/v2019_06_01/aio/operations/_encryption_scopes_operations.py +10 -22
  54. azure/mgmt/storage/v2019_06_01/aio/operations/_file_services_operations.py +9 -15
  55. azure/mgmt/storage/v2019_06_01/aio/operations/_file_shares_operations.py +16 -32
  56. azure/mgmt/storage/v2019_06_01/aio/operations/_management_policies_operations.py +9 -15
  57. azure/mgmt/storage/v2019_06_01/aio/operations/_object_replication_policies_operations.py +10 -18
  58. azure/mgmt/storage/v2019_06_01/aio/operations/_operations.py +4 -9
  59. azure/mgmt/storage/v2019_06_01/aio/operations/_private_endpoint_connections_operations.py +10 -18
  60. azure/mgmt/storage/v2019_06_01/aio/operations/_private_link_resources_operations.py +5 -9
  61. azure/mgmt/storage/v2019_06_01/aio/operations/_queue_operations.py +12 -23
  62. azure/mgmt/storage/v2019_06_01/aio/operations/_queue_services_operations.py +9 -15
  63. azure/mgmt/storage/v2019_06_01/aio/operations/_skus_operations.py +4 -9
  64. azure/mgmt/storage/v2019_06_01/aio/operations/_storage_accounts_operations.py +80 -71
  65. azure/mgmt/storage/v2019_06_01/aio/operations/_table_operations.py +12 -23
  66. azure/mgmt/storage/v2019_06_01/aio/operations/_table_services_operations.py +9 -15
  67. azure/mgmt/storage/v2019_06_01/aio/operations/_usages_operations.py +4 -9
  68. azure/mgmt/storage/v2019_06_01/models/__init__.py +181 -170
  69. azure/mgmt/storage/v2019_06_01/models/_models_py3.py +12 -13
  70. azure/mgmt/storage/v2019_06_01/models/_storage_management_client_enums.py +1 -0
  71. azure/mgmt/storage/v2019_06_01/operations/__init__.py +26 -20
  72. azure/mgmt/storage/v2019_06_01/operations/_blob_containers_operations.py +28 -48
  73. azure/mgmt/storage/v2019_06_01/operations/_blob_inventory_policies_operations.py +9 -17
  74. azure/mgmt/storage/v2019_06_01/operations/_blob_services_operations.py +8 -15
  75. azure/mgmt/storage/v2019_06_01/operations/_encryption_scopes_operations.py +10 -22
  76. azure/mgmt/storage/v2019_06_01/operations/_file_services_operations.py +9 -15
  77. azure/mgmt/storage/v2019_06_01/operations/_file_shares_operations.py +14 -28
  78. azure/mgmt/storage/v2019_06_01/operations/_management_policies_operations.py +8 -14
  79. azure/mgmt/storage/v2019_06_01/operations/_object_replication_policies_operations.py +9 -17
  80. azure/mgmt/storage/v2019_06_01/operations/_operations.py +4 -9
  81. azure/mgmt/storage/v2019_06_01/operations/_private_endpoint_connections_operations.py +9 -17
  82. azure/mgmt/storage/v2019_06_01/operations/_private_link_resources_operations.py +5 -9
  83. azure/mgmt/storage/v2019_06_01/operations/_queue_operations.py +11 -20
  84. azure/mgmt/storage/v2019_06_01/operations/_queue_services_operations.py +9 -15
  85. azure/mgmt/storage/v2019_06_01/operations/_skus_operations.py +4 -9
  86. azure/mgmt/storage/v2019_06_01/operations/_storage_accounts_operations.py +64 -66
  87. azure/mgmt/storage/v2019_06_01/operations/_table_operations.py +11 -20
  88. azure/mgmt/storage/v2019_06_01/operations/_table_services_operations.py +9 -15
  89. azure/mgmt/storage/v2019_06_01/operations/_usages_operations.py +4 -9
  90. azure/mgmt/storage/v2019_06_01/py.typed +1 -0
  91. azure/mgmt/storage/{v2018_03_01_preview → v2024_01_01}/__init__.py +9 -3
  92. azure/mgmt/storage/{v2018_07_01 → v2024_01_01}/_configuration.py +3 -4
  93. azure/mgmt/storage/{v2023_05_01 → v2024_01_01}/_storage_management_client.py +52 -52
  94. azure/mgmt/storage/{v2016_12_01 → v2024_01_01}/_version.py +1 -1
  95. azure/mgmt/storage/{v2018_07_01 → v2024_01_01/aio}/__init__.py +8 -5
  96. azure/mgmt/storage/{v2019_04_01 → v2024_01_01}/aio/_configuration.py +3 -4
  97. azure/mgmt/storage/{v2023_05_01 → v2024_01_01}/aio/_storage_management_client.py +52 -52
  98. azure/mgmt/storage/{v2023_05_01 → v2024_01_01}/aio/operations/__init__.py +32 -26
  99. azure/mgmt/storage/{v2021_08_01 → v2024_01_01}/aio/operations/_blob_containers_operations.py +145 -143
  100. azure/mgmt/storage/{v2021_09_01 → v2024_01_01}/aio/operations/_blob_inventory_policies_operations.py +27 -35
  101. azure/mgmt/storage/{v2021_06_01 → v2024_01_01}/aio/operations/_blob_services_operations.py +19 -26
  102. azure/mgmt/storage/{v2021_06_01 → v2024_01_01}/aio/operations/_deleted_accounts_operations.py +11 -17
  103. azure/mgmt/storage/{v2022_09_01 → v2024_01_01}/aio/operations/_encryption_scopes_operations.py +28 -40
  104. azure/mgmt/storage/{v2021_08_01 → v2024_01_01}/aio/operations/_file_services_operations.py +181 -26
  105. azure/mgmt/storage/{v2021_08_01 → v2024_01_01}/aio/operations/_file_shares_operations.py +45 -60
  106. azure/mgmt/storage/{v2023_05_01 → v2024_01_01}/aio/operations/_local_users_operations.py +31 -43
  107. azure/mgmt/storage/{v2018_11_01 → v2024_01_01}/aio/operations/_management_policies_operations.py +24 -30
  108. azure/mgmt/storage/{v2023_05_01 → v2024_01_01}/aio/operations/_network_security_perimeter_configurations_operations.py +33 -27
  109. azure/mgmt/storage/{v2021_08_01 → v2024_01_01}/aio/operations/_object_replication_policies_operations.py +22 -30
  110. azure/mgmt/storage/{v2018_02_01 → v2024_01_01}/aio/operations/_operations.py +7 -12
  111. azure/mgmt/storage/{v2021_06_01 → v2024_01_01}/aio/operations/_private_endpoint_connections_operations.py +22 -30
  112. azure/mgmt/storage/{v2021_06_01 → v2024_01_01}/aio/operations/_private_link_resources_operations.py +8 -12
  113. azure/mgmt/storage/{v2021_02_01 → v2024_01_01}/aio/operations/_queue_operations.py +30 -41
  114. azure/mgmt/storage/{v2021_09_01 → v2024_01_01}/aio/operations/_queue_services_operations.py +20 -26
  115. azure/mgmt/storage/{v2021_06_01 → v2024_01_01}/aio/operations/_skus_operations.py +7 -12
  116. azure/mgmt/storage/{v2023_01_01 → v2024_01_01}/aio/operations/_storage_accounts_operations.py +202 -167
  117. azure/mgmt/storage/{v2023_05_01 → v2024_01_01}/aio/operations/_storage_task_assignment_instances_report_operations.py +8 -12
  118. azure/mgmt/storage/{v2023_05_01 → v2024_01_01}/aio/operations/_storage_task_assignments_instances_report_operations.py +8 -12
  119. azure/mgmt/storage/{v2023_05_01 → v2024_01_01}/aio/operations/_storage_task_assignments_operations.py +72 -64
  120. azure/mgmt/storage/{v2021_09_01 → v2024_01_01}/aio/operations/_table_operations.py +30 -41
  121. azure/mgmt/storage/{v2021_09_01 → v2024_01_01}/aio/operations/_table_services_operations.py +20 -26
  122. azure/mgmt/storage/{v2018_11_01 → v2024_01_01}/aio/operations/_usages_operations.py +7 -12
  123. azure/mgmt/storage/v2024_01_01/models/__init__.py +570 -0
  124. azure/mgmt/storage/{v2023_05_01 → v2024_01_01}/models/_models_py3.py +1150 -545
  125. azure/mgmt/storage/{v2023_05_01 → v2024_01_01}/models/_storage_management_client_enums.py +8 -0
  126. azure/mgmt/storage/{v2023_05_01 → v2024_01_01}/operations/__init__.py +32 -26
  127. azure/mgmt/storage/{v2023_01_01 → v2024_01_01}/operations/_blob_containers_operations.py +145 -154
  128. azure/mgmt/storage/{v2023_01_01 → v2024_01_01}/operations/_blob_inventory_policies_operations.py +30 -38
  129. azure/mgmt/storage/{v2023_01_01 → v2024_01_01}/operations/_blob_services_operations.py +22 -29
  130. azure/mgmt/storage/{v2021_02_01 → v2024_01_01}/operations/_deleted_accounts_operations.py +13 -19
  131. azure/mgmt/storage/{v2023_01_01 → v2024_01_01}/operations/_encryption_scopes_operations.py +32 -44
  132. azure/mgmt/storage/{v2023_01_01/operations/_table_operations.py → v2024_01_01/operations/_file_services_operations.py} +187 -293
  133. azure/mgmt/storage/{v2023_01_01 → v2024_01_01}/operations/_file_shares_operations.py +51 -65
  134. azure/mgmt/storage/{v2023_05_01 → v2024_01_01}/operations/_local_users_operations.py +36 -46
  135. azure/mgmt/storage/{v2023_01_01 → v2024_01_01}/operations/_management_policies_operations.py +26 -32
  136. azure/mgmt/storage/{v2023_05_01 → v2024_01_01}/operations/_network_security_perimeter_configurations_operations.py +35 -30
  137. azure/mgmt/storage/{v2023_01_01 → v2024_01_01}/operations/_object_replication_policies_operations.py +25 -33
  138. azure/mgmt/storage/{v2018_11_01 → v2024_01_01}/operations/_operations.py +8 -13
  139. azure/mgmt/storage/{v2023_01_01 → v2024_01_01}/operations/_private_endpoint_connections_operations.py +25 -33
  140. azure/mgmt/storage/{v2023_01_01 → v2024_01_01}/operations/_private_link_resources_operations.py +9 -13
  141. azure/mgmt/storage/{v2023_01_01 → v2024_01_01}/operations/_queue_operations.py +34 -43
  142. azure/mgmt/storage/{v2023_01_01 → v2024_01_01}/operations/_queue_services_operations.py +23 -29
  143. azure/mgmt/storage/{v2021_01_01 → v2024_01_01}/operations/_skus_operations.py +8 -13
  144. azure/mgmt/storage/{v2023_01_01 → v2024_01_01}/operations/_storage_accounts_operations.py +205 -179
  145. azure/mgmt/storage/{v2023_05_01 → v2024_01_01}/operations/_storage_task_assignment_instances_report_operations.py +9 -13
  146. azure/mgmt/storage/{v2023_05_01 → v2024_01_01}/operations/_storage_task_assignments_instances_report_operations.py +9 -13
  147. azure/mgmt/storage/{v2023_05_01 → v2024_01_01}/operations/_storage_task_assignments_operations.py +78 -69
  148. azure/mgmt/storage/{v2023_05_01 → v2024_01_01}/operations/_table_operations.py +34 -43
  149. azure/mgmt/storage/{v2023_01_01 → v2024_01_01}/operations/_table_services_operations.py +23 -29
  150. azure/mgmt/storage/{v2019_04_01 → v2024_01_01}/operations/_usages_operations.py +8 -13
  151. azure/mgmt/storage/v2024_01_01/py.typed +1 -0
  152. {azure_mgmt_storage-21.2.1.dist-info → azure_mgmt_storage-22.1.0.dist-info}/METADATA +41 -4
  153. azure_mgmt_storage-22.1.0.dist-info/RECORD +183 -0
  154. {azure_mgmt_storage-21.2.1.dist-info → azure_mgmt_storage-22.1.0.dist-info}/WHEEL +1 -1
  155. azure/mgmt/storage/v2015_06_15/__init__.py +0 -26
  156. azure/mgmt/storage/v2015_06_15/_configuration.py +0 -66
  157. azure/mgmt/storage/v2015_06_15/_patch.py +0 -32
  158. azure/mgmt/storage/v2015_06_15/_storage_management.py +0 -115
  159. azure/mgmt/storage/v2015_06_15/_vendor.py +0 -16
  160. azure/mgmt/storage/v2015_06_15/_version.py +0 -9
  161. azure/mgmt/storage/v2015_06_15/aio/__init__.py +0 -23
  162. azure/mgmt/storage/v2015_06_15/aio/_configuration.py +0 -66
  163. azure/mgmt/storage/v2015_06_15/aio/_patch.py +0 -32
  164. azure/mgmt/storage/v2015_06_15/aio/_storage_management.py +0 -118
  165. azure/mgmt/storage/v2015_06_15/aio/operations/__init__.py +0 -21
  166. azure/mgmt/storage/v2015_06_15/aio/operations/_storage_accounts_operations.py +0 -1030
  167. azure/mgmt/storage/v2015_06_15/aio/operations/_usage_operations.py +0 -135
  168. azure/mgmt/storage/v2015_06_15/models/__init__.py +0 -55
  169. azure/mgmt/storage/v2015_06_15/models/_models_py3.py +0 -660
  170. azure/mgmt/storage/v2015_06_15/models/_storage_management_enums.py +0 -59
  171. azure/mgmt/storage/v2015_06_15/operations/__init__.py +0 -21
  172. azure/mgmt/storage/v2015_06_15/operations/_storage_accounts_operations.py +0 -1297
  173. azure/mgmt/storage/v2015_06_15/operations/_usage_operations.py +0 -162
  174. azure/mgmt/storage/v2016_01_01/_vendor.py +0 -16
  175. azure/mgmt/storage/v2016_12_01/__init__.py +0 -26
  176. azure/mgmt/storage/v2016_12_01/_configuration.py +0 -66
  177. azure/mgmt/storage/v2016_12_01/_patch.py +0 -32
  178. azure/mgmt/storage/v2016_12_01/_storage_management.py +0 -115
  179. azure/mgmt/storage/v2016_12_01/_vendor.py +0 -16
  180. azure/mgmt/storage/v2016_12_01/aio/__init__.py +0 -23
  181. azure/mgmt/storage/v2016_12_01/aio/_configuration.py +0 -66
  182. azure/mgmt/storage/v2016_12_01/aio/_patch.py +0 -32
  183. azure/mgmt/storage/v2016_12_01/aio/_storage_management.py +0 -118
  184. azure/mgmt/storage/v2016_12_01/aio/operations/__init__.py +0 -21
  185. azure/mgmt/storage/v2016_12_01/aio/operations/_storage_accounts_operations.py +0 -1310
  186. azure/mgmt/storage/v2016_12_01/aio/operations/_usage_operations.py +0 -135
  187. azure/mgmt/storage/v2016_12_01/models/__init__.py +0 -97
  188. azure/mgmt/storage/v2016_12_01/models/_models_py3.py +0 -1210
  189. azure/mgmt/storage/v2016_12_01/models/_storage_management_enums.py +0 -169
  190. azure/mgmt/storage/v2016_12_01/operations/__init__.py +0 -21
  191. azure/mgmt/storage/v2016_12_01/operations/_patch.py +0 -20
  192. azure/mgmt/storage/v2016_12_01/operations/_storage_accounts_operations.py +0 -1647
  193. azure/mgmt/storage/v2016_12_01/operations/_usage_operations.py +0 -162
  194. azure/mgmt/storage/v2017_06_01/__init__.py +0 -26
  195. azure/mgmt/storage/v2017_06_01/_configuration.py +0 -66
  196. azure/mgmt/storage/v2017_06_01/_patch.py +0 -32
  197. azure/mgmt/storage/v2017_06_01/_storage_management.py +0 -121
  198. azure/mgmt/storage/v2017_06_01/_vendor.py +0 -16
  199. azure/mgmt/storage/v2017_06_01/_version.py +0 -9
  200. azure/mgmt/storage/v2017_06_01/aio/__init__.py +0 -23
  201. azure/mgmt/storage/v2017_06_01/aio/_configuration.py +0 -66
  202. azure/mgmt/storage/v2017_06_01/aio/_patch.py +0 -32
  203. azure/mgmt/storage/v2017_06_01/aio/_storage_management.py +0 -124
  204. azure/mgmt/storage/v2017_06_01/aio/operations/__init__.py +0 -25
  205. azure/mgmt/storage/v2017_06_01/aio/operations/_operations.py +0 -135
  206. azure/mgmt/storage/v2017_06_01/aio/operations/_patch.py +0 -20
  207. azure/mgmt/storage/v2017_06_01/aio/operations/_skus_operations.py +0 -135
  208. azure/mgmt/storage/v2017_06_01/aio/operations/_storage_accounts_operations.py +0 -1310
  209. azure/mgmt/storage/v2017_06_01/aio/operations/_usage_operations.py +0 -135
  210. azure/mgmt/storage/v2017_06_01/models/__init__.py +0 -129
  211. azure/mgmt/storage/v2017_06_01/models/_models_py3.py +0 -1843
  212. azure/mgmt/storage/v2017_06_01/models/_patch.py +0 -20
  213. azure/mgmt/storage/v2017_06_01/models/_storage_management_enums.py +0 -191
  214. azure/mgmt/storage/v2017_06_01/operations/__init__.py +0 -25
  215. azure/mgmt/storage/v2017_06_01/operations/_operations.py +0 -156
  216. azure/mgmt/storage/v2017_06_01/operations/_patch.py +0 -20
  217. azure/mgmt/storage/v2017_06_01/operations/_skus_operations.py +0 -162
  218. azure/mgmt/storage/v2017_06_01/operations/_storage_accounts_operations.py +0 -1647
  219. azure/mgmt/storage/v2017_06_01/operations/_usage_operations.py +0 -162
  220. azure/mgmt/storage/v2017_10_01/_vendor.py +0 -16
  221. azure/mgmt/storage/v2018_02_01/__init__.py +0 -26
  222. azure/mgmt/storage/v2018_02_01/_configuration.py +0 -65
  223. azure/mgmt/storage/v2018_02_01/_patch.py +0 -32
  224. azure/mgmt/storage/v2018_02_01/_storage_management_client.py +0 -127
  225. azure/mgmt/storage/v2018_02_01/_vendor.py +0 -16
  226. azure/mgmt/storage/v2018_02_01/_version.py +0 -9
  227. azure/mgmt/storage/v2018_02_01/aio/__init__.py +0 -23
  228. azure/mgmt/storage/v2018_02_01/aio/_configuration.py +0 -65
  229. azure/mgmt/storage/v2018_02_01/aio/_patch.py +0 -32
  230. azure/mgmt/storage/v2018_02_01/aio/_storage_management_client.py +0 -131
  231. azure/mgmt/storage/v2018_02_01/aio/operations/__init__.py +0 -27
  232. azure/mgmt/storage/v2018_02_01/aio/operations/_blob_containers_operations.py +0 -1692
  233. azure/mgmt/storage/v2018_02_01/aio/operations/_patch.py +0 -20
  234. azure/mgmt/storage/v2018_02_01/aio/operations/_skus_operations.py +0 -135
  235. azure/mgmt/storage/v2018_02_01/aio/operations/_storage_accounts_operations.py +0 -1310
  236. azure/mgmt/storage/v2018_02_01/aio/operations/_usage_operations.py +0 -215
  237. azure/mgmt/storage/v2018_02_01/models/__init__.py +0 -171
  238. azure/mgmt/storage/v2018_02_01/models/_models_py3.py +0 -2556
  239. azure/mgmt/storage/v2018_02_01/models/_patch.py +0 -20
  240. azure/mgmt/storage/v2018_02_01/models/_storage_management_client_enums.py +0 -259
  241. azure/mgmt/storage/v2018_02_01/operations/__init__.py +0 -27
  242. azure/mgmt/storage/v2018_02_01/operations/_blob_containers_operations.py +0 -2178
  243. azure/mgmt/storage/v2018_02_01/operations/_operations.py +0 -156
  244. azure/mgmt/storage/v2018_02_01/operations/_patch.py +0 -20
  245. azure/mgmt/storage/v2018_02_01/operations/_skus_operations.py +0 -162
  246. azure/mgmt/storage/v2018_02_01/operations/_storage_accounts_operations.py +0 -1647
  247. azure/mgmt/storage/v2018_02_01/operations/_usage_operations.py +0 -269
  248. azure/mgmt/storage/v2018_03_01_preview/_configuration.py +0 -65
  249. azure/mgmt/storage/v2018_03_01_preview/_patch.py +0 -32
  250. azure/mgmt/storage/v2018_03_01_preview/_storage_management_client.py +0 -146
  251. azure/mgmt/storage/v2018_03_01_preview/_vendor.py +0 -16
  252. azure/mgmt/storage/v2018_03_01_preview/_version.py +0 -9
  253. azure/mgmt/storage/v2018_03_01_preview/aio/__init__.py +0 -23
  254. azure/mgmt/storage/v2018_03_01_preview/aio/_configuration.py +0 -65
  255. azure/mgmt/storage/v2018_03_01_preview/aio/_patch.py +0 -32
  256. azure/mgmt/storage/v2018_03_01_preview/aio/_storage_management_client.py +0 -148
  257. azure/mgmt/storage/v2018_03_01_preview/aio/operations/__init__.py +0 -29
  258. azure/mgmt/storage/v2018_03_01_preview/aio/operations/_blob_containers_operations.py +0 -1721
  259. azure/mgmt/storage/v2018_03_01_preview/aio/operations/_management_policies_operations.py +0 -357
  260. azure/mgmt/storage/v2018_03_01_preview/aio/operations/_operations.py +0 -137
  261. azure/mgmt/storage/v2018_03_01_preview/aio/operations/_patch.py +0 -20
  262. azure/mgmt/storage/v2018_03_01_preview/aio/operations/_skus_operations.py +0 -138
  263. azure/mgmt/storage/v2018_03_01_preview/aio/operations/_storage_accounts_operations.py +0 -1635
  264. azure/mgmt/storage/v2018_03_01_preview/aio/operations/_usages_operations.py +0 -221
  265. azure/mgmt/storage/v2018_03_01_preview/models/__init__.py +0 -181
  266. azure/mgmt/storage/v2018_03_01_preview/models/_models_py3.py +0 -2699
  267. azure/mgmt/storage/v2018_03_01_preview/models/_patch.py +0 -20
  268. azure/mgmt/storage/v2018_03_01_preview/models/_storage_management_client_enums.py +0 -265
  269. azure/mgmt/storage/v2018_03_01_preview/operations/__init__.py +0 -29
  270. azure/mgmt/storage/v2018_03_01_preview/operations/_blob_containers_operations.py +0 -2207
  271. azure/mgmt/storage/v2018_03_01_preview/operations/_management_policies_operations.py +0 -467
  272. azure/mgmt/storage/v2018_03_01_preview/operations/_operations.py +0 -158
  273. azure/mgmt/storage/v2018_03_01_preview/operations/_patch.py +0 -20
  274. azure/mgmt/storage/v2018_03_01_preview/operations/_skus_operations.py +0 -164
  275. azure/mgmt/storage/v2018_03_01_preview/operations/_storage_accounts_operations.py +0 -2085
  276. azure/mgmt/storage/v2018_03_01_preview/operations/_usages_operations.py +0 -273
  277. azure/mgmt/storage/v2018_07_01/_patch.py +0 -32
  278. azure/mgmt/storage/v2018_07_01/_storage_management_client.py +0 -139
  279. azure/mgmt/storage/v2018_07_01/_vendor.py +0 -16
  280. azure/mgmt/storage/v2018_07_01/_version.py +0 -9
  281. azure/mgmt/storage/v2018_07_01/aio/__init__.py +0 -23
  282. azure/mgmt/storage/v2018_07_01/aio/_configuration.py +0 -65
  283. azure/mgmt/storage/v2018_07_01/aio/_patch.py +0 -32
  284. azure/mgmt/storage/v2018_07_01/aio/_storage_management_client.py +0 -143
  285. azure/mgmt/storage/v2018_07_01/aio/operations/__init__.py +0 -29
  286. azure/mgmt/storage/v2018_07_01/aio/operations/_blob_containers_operations.py +0 -1692
  287. azure/mgmt/storage/v2018_07_01/aio/operations/_blob_services_operations.py +0 -282
  288. azure/mgmt/storage/v2018_07_01/aio/operations/_operations.py +0 -135
  289. azure/mgmt/storage/v2018_07_01/aio/operations/_patch.py +0 -20
  290. azure/mgmt/storage/v2018_07_01/aio/operations/_skus_operations.py +0 -135
  291. azure/mgmt/storage/v2018_07_01/aio/operations/_storage_accounts_operations.py +0 -1420
  292. azure/mgmt/storage/v2018_07_01/aio/operations/_usages_operations.py +0 -139
  293. azure/mgmt/storage/v2018_07_01/models/__init__.py +0 -185
  294. azure/mgmt/storage/v2018_07_01/models/_models_py3.py +0 -2838
  295. azure/mgmt/storage/v2018_07_01/models/_patch.py +0 -20
  296. azure/mgmt/storage/v2018_07_01/models/_storage_management_client_enums.py +0 -287
  297. azure/mgmt/storage/v2018_07_01/operations/__init__.py +0 -29
  298. azure/mgmt/storage/v2018_07_01/operations/_blob_containers_operations.py +0 -2178
  299. azure/mgmt/storage/v2018_07_01/operations/_blob_services_operations.py +0 -361
  300. azure/mgmt/storage/v2018_07_01/operations/_operations.py +0 -156
  301. azure/mgmt/storage/v2018_07_01/operations/_patch.py +0 -20
  302. azure/mgmt/storage/v2018_07_01/operations/_skus_operations.py +0 -162
  303. azure/mgmt/storage/v2018_07_01/operations/_storage_accounts_operations.py +0 -1792
  304. azure/mgmt/storage/v2018_07_01/operations/_usages_operations.py +0 -169
  305. azure/mgmt/storage/v2018_11_01/__init__.py +0 -26
  306. azure/mgmt/storage/v2018_11_01/_configuration.py +0 -65
  307. azure/mgmt/storage/v2018_11_01/_patch.py +0 -32
  308. azure/mgmt/storage/v2018_11_01/_storage_management_client.py +0 -146
  309. azure/mgmt/storage/v2018_11_01/_vendor.py +0 -16
  310. azure/mgmt/storage/v2018_11_01/_version.py +0 -9
  311. azure/mgmt/storage/v2018_11_01/aio/__init__.py +0 -23
  312. azure/mgmt/storage/v2018_11_01/aio/_configuration.py +0 -65
  313. azure/mgmt/storage/v2018_11_01/aio/_patch.py +0 -32
  314. azure/mgmt/storage/v2018_11_01/aio/_storage_management_client.py +0 -150
  315. azure/mgmt/storage/v2018_11_01/aio/operations/__init__.py +0 -31
  316. azure/mgmt/storage/v2018_11_01/aio/operations/_blob_containers_operations.py +0 -1696
  317. azure/mgmt/storage/v2018_11_01/aio/operations/_blob_services_operations.py +0 -282
  318. azure/mgmt/storage/v2018_11_01/aio/operations/_operations.py +0 -135
  319. azure/mgmt/storage/v2018_11_01/aio/operations/_patch.py +0 -20
  320. azure/mgmt/storage/v2018_11_01/aio/operations/_skus_operations.py +0 -135
  321. azure/mgmt/storage/v2018_11_01/aio/operations/_storage_accounts_operations.py +0 -1477
  322. azure/mgmt/storage/v2018_11_01/models/__init__.py +0 -209
  323. azure/mgmt/storage/v2018_11_01/models/_models_py3.py +0 -3194
  324. azure/mgmt/storage/v2018_11_01/models/_patch.py +0 -20
  325. azure/mgmt/storage/v2018_11_01/models/_storage_management_client_enums.py +0 -299
  326. azure/mgmt/storage/v2018_11_01/operations/__init__.py +0 -31
  327. azure/mgmt/storage/v2018_11_01/operations/_blob_containers_operations.py +0 -2182
  328. azure/mgmt/storage/v2018_11_01/operations/_blob_services_operations.py +0 -361
  329. azure/mgmt/storage/v2018_11_01/operations/_management_policies_operations.py +0 -459
  330. azure/mgmt/storage/v2018_11_01/operations/_patch.py +0 -20
  331. azure/mgmt/storage/v2018_11_01/operations/_skus_operations.py +0 -162
  332. azure/mgmt/storage/v2018_11_01/operations/_storage_accounts_operations.py +0 -1875
  333. azure/mgmt/storage/v2018_11_01/operations/_usages_operations.py +0 -169
  334. azure/mgmt/storage/v2019_04_01/__init__.py +0 -26
  335. azure/mgmt/storage/v2019_04_01/_configuration.py +0 -65
  336. azure/mgmt/storage/v2019_04_01/_patch.py +0 -32
  337. azure/mgmt/storage/v2019_04_01/_storage_management_client.py +0 -158
  338. azure/mgmt/storage/v2019_04_01/_vendor.py +0 -16
  339. azure/mgmt/storage/v2019_04_01/_version.py +0 -9
  340. azure/mgmt/storage/v2019_04_01/aio/__init__.py +0 -23
  341. azure/mgmt/storage/v2019_04_01/aio/_patch.py +0 -32
  342. azure/mgmt/storage/v2019_04_01/aio/_storage_management_client.py +0 -162
  343. azure/mgmt/storage/v2019_04_01/aio/operations/__init__.py +0 -35
  344. azure/mgmt/storage/v2019_04_01/aio/operations/_blob_containers_operations.py +0 -1746
  345. azure/mgmt/storage/v2019_04_01/aio/operations/_blob_services_operations.py +0 -375
  346. azure/mgmt/storage/v2019_04_01/aio/operations/_file_services_operations.py +0 -341
  347. azure/mgmt/storage/v2019_04_01/aio/operations/_file_shares_operations.py +0 -625
  348. azure/mgmt/storage/v2019_04_01/aio/operations/_management_policies_operations.py +0 -349
  349. azure/mgmt/storage/v2019_04_01/aio/operations/_operations.py +0 -135
  350. azure/mgmt/storage/v2019_04_01/aio/operations/_patch.py +0 -20
  351. azure/mgmt/storage/v2019_04_01/aio/operations/_skus_operations.py +0 -135
  352. azure/mgmt/storage/v2019_04_01/aio/operations/_storage_accounts_operations.py +0 -1483
  353. azure/mgmt/storage/v2019_04_01/aio/operations/_usages_operations.py +0 -139
  354. azure/mgmt/storage/v2019_04_01/models/__init__.py +0 -235
  355. azure/mgmt/storage/v2019_04_01/models/_models_py3.py +0 -3799
  356. azure/mgmt/storage/v2019_04_01/models/_patch.py +0 -20
  357. azure/mgmt/storage/v2019_04_01/models/_storage_management_client_enums.py +0 -326
  358. azure/mgmt/storage/v2019_04_01/operations/__init__.py +0 -35
  359. azure/mgmt/storage/v2019_04_01/operations/_blob_containers_operations.py +0 -2245
  360. azure/mgmt/storage/v2019_04_01/operations/_blob_services_operations.py +0 -483
  361. azure/mgmt/storage/v2019_04_01/operations/_file_services_operations.py +0 -450
  362. azure/mgmt/storage/v2019_04_01/operations/_file_shares_operations.py +0 -806
  363. azure/mgmt/storage/v2019_04_01/operations/_management_policies_operations.py +0 -459
  364. azure/mgmt/storage/v2019_04_01/operations/_operations.py +0 -156
  365. azure/mgmt/storage/v2019_04_01/operations/_patch.py +0 -20
  366. azure/mgmt/storage/v2019_04_01/operations/_skus_operations.py +0 -162
  367. azure/mgmt/storage/v2019_04_01/operations/_storage_accounts_operations.py +0 -1888
  368. azure/mgmt/storage/v2019_06_01/_vendor.py +0 -16
  369. azure/mgmt/storage/v2020_08_01_preview/__init__.py +0 -26
  370. azure/mgmt/storage/v2020_08_01_preview/_configuration.py +0 -65
  371. azure/mgmt/storage/v2020_08_01_preview/_patch.py +0 -32
  372. azure/mgmt/storage/v2020_08_01_preview/_storage_management_client.py +0 -234
  373. azure/mgmt/storage/v2020_08_01_preview/_vendor.py +0 -16
  374. azure/mgmt/storage/v2020_08_01_preview/_version.py +0 -9
  375. azure/mgmt/storage/v2020_08_01_preview/aio/__init__.py +0 -23
  376. azure/mgmt/storage/v2020_08_01_preview/aio/_configuration.py +0 -65
  377. azure/mgmt/storage/v2020_08_01_preview/aio/_patch.py +0 -32
  378. azure/mgmt/storage/v2020_08_01_preview/aio/_storage_management_client.py +0 -237
  379. azure/mgmt/storage/v2020_08_01_preview/aio/operations/__init__.py +0 -55
  380. azure/mgmt/storage/v2020_08_01_preview/aio/operations/_blob_containers_operations.py +0 -1776
  381. azure/mgmt/storage/v2020_08_01_preview/aio/operations/_blob_inventory_policies_operations.py +0 -454
  382. azure/mgmt/storage/v2020_08_01_preview/aio/operations/_blob_services_operations.py +0 -382
  383. azure/mgmt/storage/v2020_08_01_preview/aio/operations/_deleted_accounts_operations.py +0 -198
  384. azure/mgmt/storage/v2020_08_01_preview/aio/operations/_encryption_scopes_operations.py +0 -560
  385. azure/mgmt/storage/v2020_08_01_preview/aio/operations/_file_services_operations.py +0 -348
  386. azure/mgmt/storage/v2020_08_01_preview/aio/operations/_file_shares_operations.py +0 -825
  387. azure/mgmt/storage/v2020_08_01_preview/aio/operations/_management_policies_operations.py +0 -355
  388. azure/mgmt/storage/v2020_08_01_preview/aio/operations/_object_replication_policies_operations.py +0 -445
  389. azure/mgmt/storage/v2020_08_01_preview/aio/operations/_operations.py +0 -137
  390. azure/mgmt/storage/v2020_08_01_preview/aio/operations/_patch.py +0 -20
  391. azure/mgmt/storage/v2020_08_01_preview/aio/operations/_private_endpoint_connections_operations.py +0 -441
  392. azure/mgmt/storage/v2020_08_01_preview/aio/operations/_private_link_resources_operations.py +0 -119
  393. azure/mgmt/storage/v2020_08_01_preview/aio/operations/_queue_operations.py +0 -618
  394. azure/mgmt/storage/v2020_08_01_preview/aio/operations/_queue_services_operations.py +0 -348
  395. azure/mgmt/storage/v2020_08_01_preview/aio/operations/_skus_operations.py +0 -138
  396. azure/mgmt/storage/v2020_08_01_preview/aio/operations/_storage_accounts_operations.py +0 -1725
  397. azure/mgmt/storage/v2020_08_01_preview/aio/operations/_table_operations.py +0 -416
  398. azure/mgmt/storage/v2020_08_01_preview/aio/operations/_table_services_operations.py +0 -348
  399. azure/mgmt/storage/v2020_08_01_preview/aio/operations/_usages_operations.py +0 -142
  400. azure/mgmt/storage/v2020_08_01_preview/models/__init__.py +0 -373
  401. azure/mgmt/storage/v2020_08_01_preview/models/_models_py3.py +0 -6344
  402. azure/mgmt/storage/v2020_08_01_preview/models/_patch.py +0 -20
  403. azure/mgmt/storage/v2020_08_01_preview/models/_storage_management_client_enums.py +0 -468
  404. azure/mgmt/storage/v2020_08_01_preview/operations/__init__.py +0 -55
  405. azure/mgmt/storage/v2020_08_01_preview/operations/_blob_containers_operations.py +0 -2276
  406. azure/mgmt/storage/v2020_08_01_preview/operations/_blob_inventory_policies_operations.py +0 -599
  407. azure/mgmt/storage/v2020_08_01_preview/operations/_blob_services_operations.py +0 -490
  408. azure/mgmt/storage/v2020_08_01_preview/operations/_deleted_accounts_operations.py +0 -255
  409. azure/mgmt/storage/v2020_08_01_preview/operations/_encryption_scopes_operations.py +0 -700
  410. azure/mgmt/storage/v2020_08_01_preview/operations/_file_services_operations.py +0 -457
  411. azure/mgmt/storage/v2020_08_01_preview/operations/_file_shares_operations.py +0 -1072
  412. azure/mgmt/storage/v2020_08_01_preview/operations/_management_policies_operations.py +0 -465
  413. azure/mgmt/storage/v2020_08_01_preview/operations/_object_replication_policies_operations.py +0 -584
  414. azure/mgmt/storage/v2020_08_01_preview/operations/_operations.py +0 -158
  415. azure/mgmt/storage/v2020_08_01_preview/operations/_patch.py +0 -20
  416. azure/mgmt/storage/v2020_08_01_preview/operations/_private_endpoint_connections_operations.py +0 -592
  417. azure/mgmt/storage/v2020_08_01_preview/operations/_private_link_resources_operations.py +0 -155
  418. azure/mgmt/storage/v2020_08_01_preview/operations/_queue_operations.py +0 -824
  419. azure/mgmt/storage/v2020_08_01_preview/operations/_queue_services_operations.py +0 -457
  420. azure/mgmt/storage/v2020_08_01_preview/operations/_skus_operations.py +0 -165
  421. azure/mgmt/storage/v2020_08_01_preview/operations/_storage_accounts_operations.py +0 -2170
  422. azure/mgmt/storage/v2020_08_01_preview/operations/_table_operations.py +0 -582
  423. azure/mgmt/storage/v2020_08_01_preview/operations/_table_services_operations.py +0 -457
  424. azure/mgmt/storage/v2020_08_01_preview/operations/_usages_operations.py +0 -171
  425. azure/mgmt/storage/v2021_01_01/__init__.py +0 -26
  426. azure/mgmt/storage/v2021_01_01/_configuration.py +0 -65
  427. azure/mgmt/storage/v2021_01_01/_patch.py +0 -32
  428. azure/mgmt/storage/v2021_01_01/_storage_management_client.py +0 -219
  429. azure/mgmt/storage/v2021_01_01/_vendor.py +0 -16
  430. azure/mgmt/storage/v2021_01_01/_version.py +0 -9
  431. azure/mgmt/storage/v2021_01_01/aio/__init__.py +0 -23
  432. azure/mgmt/storage/v2021_01_01/aio/_configuration.py +0 -65
  433. azure/mgmt/storage/v2021_01_01/aio/_patch.py +0 -32
  434. azure/mgmt/storage/v2021_01_01/aio/_storage_management_client.py +0 -224
  435. azure/mgmt/storage/v2021_01_01/aio/operations/__init__.py +0 -55
  436. azure/mgmt/storage/v2021_01_01/aio/operations/_blob_containers_operations.py +0 -1747
  437. azure/mgmt/storage/v2021_01_01/aio/operations/_blob_inventory_policies_operations.py +0 -445
  438. azure/mgmt/storage/v2021_01_01/aio/operations/_blob_services_operations.py +0 -375
  439. azure/mgmt/storage/v2021_01_01/aio/operations/_deleted_accounts_operations.py +0 -194
  440. azure/mgmt/storage/v2021_01_01/aio/operations/_encryption_scopes_operations.py +0 -550
  441. azure/mgmt/storage/v2021_01_01/aio/operations/_file_services_operations.py +0 -341
  442. azure/mgmt/storage/v2021_01_01/aio/operations/_file_shares_operations.py +0 -810
  443. azure/mgmt/storage/v2021_01_01/aio/operations/_management_policies_operations.py +0 -349
  444. azure/mgmt/storage/v2021_01_01/aio/operations/_object_replication_policies_operations.py +0 -436
  445. azure/mgmt/storage/v2021_01_01/aio/operations/_operations.py +0 -135
  446. azure/mgmt/storage/v2021_01_01/aio/operations/_patch.py +0 -20
  447. azure/mgmt/storage/v2021_01_01/aio/operations/_private_endpoint_connections_operations.py +0 -432
  448. azure/mgmt/storage/v2021_01_01/aio/operations/_private_link_resources_operations.py +0 -117
  449. azure/mgmt/storage/v2021_01_01/aio/operations/_queue_operations.py +0 -608
  450. azure/mgmt/storage/v2021_01_01/aio/operations/_queue_services_operations.py +0 -341
  451. azure/mgmt/storage/v2021_01_01/aio/operations/_skus_operations.py +0 -136
  452. azure/mgmt/storage/v2021_01_01/aio/operations/_storage_accounts_operations.py +0 -1687
  453. azure/mgmt/storage/v2021_01_01/aio/operations/_table_operations.py +0 -405
  454. azure/mgmt/storage/v2021_01_01/aio/operations/_table_services_operations.py +0 -341
  455. azure/mgmt/storage/v2021_01_01/aio/operations/_usages_operations.py +0 -139
  456. azure/mgmt/storage/v2021_01_01/models/__init__.py +0 -381
  457. azure/mgmt/storage/v2021_01_01/models/_models_py3.py +0 -6465
  458. azure/mgmt/storage/v2021_01_01/models/_patch.py +0 -20
  459. azure/mgmt/storage/v2021_01_01/models/_storage_management_client_enums.py +0 -483
  460. azure/mgmt/storage/v2021_01_01/operations/__init__.py +0 -55
  461. azure/mgmt/storage/v2021_01_01/operations/_blob_containers_operations.py +0 -2246
  462. azure/mgmt/storage/v2021_01_01/operations/_blob_inventory_policies_operations.py +0 -590
  463. azure/mgmt/storage/v2021_01_01/operations/_blob_services_operations.py +0 -483
  464. azure/mgmt/storage/v2021_01_01/operations/_deleted_accounts_operations.py +0 -250
  465. azure/mgmt/storage/v2021_01_01/operations/_encryption_scopes_operations.py +0 -689
  466. azure/mgmt/storage/v2021_01_01/operations/_file_services_operations.py +0 -450
  467. azure/mgmt/storage/v2021_01_01/operations/_file_shares_operations.py +0 -1056
  468. azure/mgmt/storage/v2021_01_01/operations/_management_policies_operations.py +0 -459
  469. azure/mgmt/storage/v2021_01_01/operations/_object_replication_policies_operations.py +0 -575
  470. azure/mgmt/storage/v2021_01_01/operations/_operations.py +0 -156
  471. azure/mgmt/storage/v2021_01_01/operations/_patch.py +0 -20
  472. azure/mgmt/storage/v2021_01_01/operations/_private_endpoint_connections_operations.py +0 -583
  473. azure/mgmt/storage/v2021_01_01/operations/_private_link_resources_operations.py +0 -153
  474. azure/mgmt/storage/v2021_01_01/operations/_queue_operations.py +0 -814
  475. azure/mgmt/storage/v2021_01_01/operations/_queue_services_operations.py +0 -450
  476. azure/mgmt/storage/v2021_01_01/operations/_storage_accounts_operations.py +0 -2124
  477. azure/mgmt/storage/v2021_01_01/operations/_table_operations.py +0 -572
  478. azure/mgmt/storage/v2021_01_01/operations/_table_services_operations.py +0 -450
  479. azure/mgmt/storage/v2021_01_01/operations/_usages_operations.py +0 -169
  480. azure/mgmt/storage/v2021_02_01/__init__.py +0 -26
  481. azure/mgmt/storage/v2021_02_01/_configuration.py +0 -65
  482. azure/mgmt/storage/v2021_02_01/_patch.py +0 -32
  483. azure/mgmt/storage/v2021_02_01/_storage_management_client.py +0 -219
  484. azure/mgmt/storage/v2021_02_01/_vendor.py +0 -16
  485. azure/mgmt/storage/v2021_02_01/_version.py +0 -9
  486. azure/mgmt/storage/v2021_02_01/aio/__init__.py +0 -23
  487. azure/mgmt/storage/v2021_02_01/aio/_configuration.py +0 -65
  488. azure/mgmt/storage/v2021_02_01/aio/_patch.py +0 -32
  489. azure/mgmt/storage/v2021_02_01/aio/_storage_management_client.py +0 -224
  490. azure/mgmt/storage/v2021_02_01/aio/operations/__init__.py +0 -55
  491. azure/mgmt/storage/v2021_02_01/aio/operations/_blob_containers_operations.py +0 -1747
  492. azure/mgmt/storage/v2021_02_01/aio/operations/_blob_inventory_policies_operations.py +0 -445
  493. azure/mgmt/storage/v2021_02_01/aio/operations/_blob_services_operations.py +0 -375
  494. azure/mgmt/storage/v2021_02_01/aio/operations/_deleted_accounts_operations.py +0 -194
  495. azure/mgmt/storage/v2021_02_01/aio/operations/_encryption_scopes_operations.py +0 -550
  496. azure/mgmt/storage/v2021_02_01/aio/operations/_file_services_operations.py +0 -341
  497. azure/mgmt/storage/v2021_02_01/aio/operations/_file_shares_operations.py +0 -810
  498. azure/mgmt/storage/v2021_02_01/aio/operations/_management_policies_operations.py +0 -349
  499. azure/mgmt/storage/v2021_02_01/aio/operations/_object_replication_policies_operations.py +0 -436
  500. azure/mgmt/storage/v2021_02_01/aio/operations/_operations.py +0 -135
  501. azure/mgmt/storage/v2021_02_01/aio/operations/_patch.py +0 -20
  502. azure/mgmt/storage/v2021_02_01/aio/operations/_private_endpoint_connections_operations.py +0 -432
  503. azure/mgmt/storage/v2021_02_01/aio/operations/_private_link_resources_operations.py +0 -117
  504. azure/mgmt/storage/v2021_02_01/aio/operations/_queue_services_operations.py +0 -341
  505. azure/mgmt/storage/v2021_02_01/aio/operations/_skus_operations.py +0 -136
  506. azure/mgmt/storage/v2021_02_01/aio/operations/_storage_accounts_operations.py +0 -1687
  507. azure/mgmt/storage/v2021_02_01/aio/operations/_table_operations.py +0 -405
  508. azure/mgmt/storage/v2021_02_01/aio/operations/_table_services_operations.py +0 -341
  509. azure/mgmt/storage/v2021_02_01/aio/operations/_usages_operations.py +0 -139
  510. azure/mgmt/storage/v2021_02_01/models/__init__.py +0 -389
  511. azure/mgmt/storage/v2021_02_01/models/_models_py3.py +0 -6606
  512. azure/mgmt/storage/v2021_02_01/models/_patch.py +0 -20
  513. azure/mgmt/storage/v2021_02_01/models/_storage_management_client_enums.py +0 -489
  514. azure/mgmt/storage/v2021_02_01/operations/__init__.py +0 -55
  515. azure/mgmt/storage/v2021_02_01/operations/_blob_containers_operations.py +0 -2246
  516. azure/mgmt/storage/v2021_02_01/operations/_blob_inventory_policies_operations.py +0 -590
  517. azure/mgmt/storage/v2021_02_01/operations/_blob_services_operations.py +0 -483
  518. azure/mgmt/storage/v2021_02_01/operations/_encryption_scopes_operations.py +0 -689
  519. azure/mgmt/storage/v2021_02_01/operations/_file_services_operations.py +0 -450
  520. azure/mgmt/storage/v2021_02_01/operations/_file_shares_operations.py +0 -1056
  521. azure/mgmt/storage/v2021_02_01/operations/_management_policies_operations.py +0 -459
  522. azure/mgmt/storage/v2021_02_01/operations/_object_replication_policies_operations.py +0 -575
  523. azure/mgmt/storage/v2021_02_01/operations/_operations.py +0 -156
  524. azure/mgmt/storage/v2021_02_01/operations/_patch.py +0 -20
  525. azure/mgmt/storage/v2021_02_01/operations/_private_endpoint_connections_operations.py +0 -583
  526. azure/mgmt/storage/v2021_02_01/operations/_private_link_resources_operations.py +0 -153
  527. azure/mgmt/storage/v2021_02_01/operations/_queue_operations.py +0 -814
  528. azure/mgmt/storage/v2021_02_01/operations/_queue_services_operations.py +0 -450
  529. azure/mgmt/storage/v2021_02_01/operations/_skus_operations.py +0 -162
  530. azure/mgmt/storage/v2021_02_01/operations/_storage_accounts_operations.py +0 -2124
  531. azure/mgmt/storage/v2021_02_01/operations/_table_operations.py +0 -572
  532. azure/mgmt/storage/v2021_02_01/operations/_table_services_operations.py +0 -450
  533. azure/mgmt/storage/v2021_02_01/operations/_usages_operations.py +0 -169
  534. azure/mgmt/storage/v2021_04_01/__init__.py +0 -26
  535. azure/mgmt/storage/v2021_04_01/_configuration.py +0 -65
  536. azure/mgmt/storage/v2021_04_01/_patch.py +0 -32
  537. azure/mgmt/storage/v2021_04_01/_storage_management_client.py +0 -219
  538. azure/mgmt/storage/v2021_04_01/_vendor.py +0 -16
  539. azure/mgmt/storage/v2021_04_01/_version.py +0 -9
  540. azure/mgmt/storage/v2021_04_01/aio/__init__.py +0 -23
  541. azure/mgmt/storage/v2021_04_01/aio/_configuration.py +0 -65
  542. azure/mgmt/storage/v2021_04_01/aio/_patch.py +0 -32
  543. azure/mgmt/storage/v2021_04_01/aio/_storage_management_client.py +0 -224
  544. azure/mgmt/storage/v2021_04_01/aio/operations/__init__.py +0 -55
  545. azure/mgmt/storage/v2021_04_01/aio/operations/_blob_containers_operations.py +0 -1860
  546. azure/mgmt/storage/v2021_04_01/aio/operations/_blob_inventory_policies_operations.py +0 -445
  547. azure/mgmt/storage/v2021_04_01/aio/operations/_blob_services_operations.py +0 -375
  548. azure/mgmt/storage/v2021_04_01/aio/operations/_deleted_accounts_operations.py +0 -194
  549. azure/mgmt/storage/v2021_04_01/aio/operations/_encryption_scopes_operations.py +0 -550
  550. azure/mgmt/storage/v2021_04_01/aio/operations/_file_services_operations.py +0 -344
  551. azure/mgmt/storage/v2021_04_01/aio/operations/_file_shares_operations.py +0 -1010
  552. azure/mgmt/storage/v2021_04_01/aio/operations/_management_policies_operations.py +0 -349
  553. azure/mgmt/storage/v2021_04_01/aio/operations/_object_replication_policies_operations.py +0 -446
  554. azure/mgmt/storage/v2021_04_01/aio/operations/_operations.py +0 -135
  555. azure/mgmt/storage/v2021_04_01/aio/operations/_patch.py +0 -20
  556. azure/mgmt/storage/v2021_04_01/aio/operations/_private_endpoint_connections_operations.py +0 -432
  557. azure/mgmt/storage/v2021_04_01/aio/operations/_private_link_resources_operations.py +0 -117
  558. azure/mgmt/storage/v2021_04_01/aio/operations/_queue_operations.py +0 -613
  559. azure/mgmt/storage/v2021_04_01/aio/operations/_queue_services_operations.py +0 -344
  560. azure/mgmt/storage/v2021_04_01/aio/operations/_skus_operations.py +0 -136
  561. azure/mgmt/storage/v2021_04_01/aio/operations/_storage_accounts_operations.py +0 -1687
  562. azure/mgmt/storage/v2021_04_01/aio/operations/_table_operations.py +0 -410
  563. azure/mgmt/storage/v2021_04_01/aio/operations/_table_services_operations.py +0 -344
  564. azure/mgmt/storage/v2021_04_01/aio/operations/_usages_operations.py +0 -139
  565. azure/mgmt/storage/v2021_04_01/models/__init__.py +0 -411
  566. azure/mgmt/storage/v2021_04_01/models/_models_py3.py +0 -7083
  567. azure/mgmt/storage/v2021_04_01/models/_patch.py +0 -20
  568. azure/mgmt/storage/v2021_04_01/models/_storage_management_client_enums.py +0 -528
  569. azure/mgmt/storage/v2021_04_01/operations/__init__.py +0 -55
  570. azure/mgmt/storage/v2021_04_01/operations/_blob_containers_operations.py +0 -2392
  571. azure/mgmt/storage/v2021_04_01/operations/_blob_inventory_policies_operations.py +0 -590
  572. azure/mgmt/storage/v2021_04_01/operations/_blob_services_operations.py +0 -483
  573. azure/mgmt/storage/v2021_04_01/operations/_deleted_accounts_operations.py +0 -250
  574. azure/mgmt/storage/v2021_04_01/operations/_encryption_scopes_operations.py +0 -689
  575. azure/mgmt/storage/v2021_04_01/operations/_file_services_operations.py +0 -453
  576. azure/mgmt/storage/v2021_04_01/operations/_file_shares_operations.py +0 -1303
  577. azure/mgmt/storage/v2021_04_01/operations/_management_policies_operations.py +0 -459
  578. azure/mgmt/storage/v2021_04_01/operations/_object_replication_policies_operations.py +0 -585
  579. azure/mgmt/storage/v2021_04_01/operations/_operations.py +0 -156
  580. azure/mgmt/storage/v2021_04_01/operations/_patch.py +0 -20
  581. azure/mgmt/storage/v2021_04_01/operations/_private_endpoint_connections_operations.py +0 -583
  582. azure/mgmt/storage/v2021_04_01/operations/_private_link_resources_operations.py +0 -153
  583. azure/mgmt/storage/v2021_04_01/operations/_queue_operations.py +0 -819
  584. azure/mgmt/storage/v2021_04_01/operations/_queue_services_operations.py +0 -453
  585. azure/mgmt/storage/v2021_04_01/operations/_skus_operations.py +0 -162
  586. azure/mgmt/storage/v2021_04_01/operations/_storage_accounts_operations.py +0 -2124
  587. azure/mgmt/storage/v2021_04_01/operations/_table_operations.py +0 -577
  588. azure/mgmt/storage/v2021_04_01/operations/_table_services_operations.py +0 -453
  589. azure/mgmt/storage/v2021_04_01/operations/_usages_operations.py +0 -169
  590. azure/mgmt/storage/v2021_06_01/__init__.py +0 -26
  591. azure/mgmt/storage/v2021_06_01/_configuration.py +0 -65
  592. azure/mgmt/storage/v2021_06_01/_patch.py +0 -32
  593. azure/mgmt/storage/v2021_06_01/_storage_management_client.py +0 -219
  594. azure/mgmt/storage/v2021_06_01/_vendor.py +0 -16
  595. azure/mgmt/storage/v2021_06_01/_version.py +0 -9
  596. azure/mgmt/storage/v2021_06_01/aio/__init__.py +0 -23
  597. azure/mgmt/storage/v2021_06_01/aio/_configuration.py +0 -65
  598. azure/mgmt/storage/v2021_06_01/aio/_patch.py +0 -32
  599. azure/mgmt/storage/v2021_06_01/aio/_storage_management_client.py +0 -224
  600. azure/mgmt/storage/v2021_06_01/aio/operations/__init__.py +0 -55
  601. azure/mgmt/storage/v2021_06_01/aio/operations/_blob_containers_operations.py +0 -1838
  602. azure/mgmt/storage/v2021_06_01/aio/operations/_blob_inventory_policies_operations.py +0 -445
  603. azure/mgmt/storage/v2021_06_01/aio/operations/_encryption_scopes_operations.py +0 -550
  604. azure/mgmt/storage/v2021_06_01/aio/operations/_file_services_operations.py +0 -331
  605. azure/mgmt/storage/v2021_06_01/aio/operations/_file_shares_operations.py +0 -1010
  606. azure/mgmt/storage/v2021_06_01/aio/operations/_management_policies_operations.py +0 -349
  607. azure/mgmt/storage/v2021_06_01/aio/operations/_object_replication_policies_operations.py +0 -446
  608. azure/mgmt/storage/v2021_06_01/aio/operations/_operations.py +0 -135
  609. azure/mgmt/storage/v2021_06_01/aio/operations/_patch.py +0 -20
  610. azure/mgmt/storage/v2021_06_01/aio/operations/_queue_operations.py +0 -613
  611. azure/mgmt/storage/v2021_06_01/aio/operations/_queue_services_operations.py +0 -331
  612. azure/mgmt/storage/v2021_06_01/aio/operations/_storage_accounts_operations.py +0 -1898
  613. azure/mgmt/storage/v2021_06_01/aio/operations/_table_operations.py +0 -410
  614. azure/mgmt/storage/v2021_06_01/aio/operations/_table_services_operations.py +0 -331
  615. azure/mgmt/storage/v2021_06_01/aio/operations/_usages_operations.py +0 -139
  616. azure/mgmt/storage/v2021_06_01/models/__init__.py +0 -419
  617. azure/mgmt/storage/v2021_06_01/models/_models_py3.py +0 -7467
  618. azure/mgmt/storage/v2021_06_01/models/_patch.py +0 -20
  619. azure/mgmt/storage/v2021_06_01/models/_storage_management_client_enums.py +0 -544
  620. azure/mgmt/storage/v2021_06_01/operations/__init__.py +0 -55
  621. azure/mgmt/storage/v2021_06_01/operations/_blob_containers_operations.py +0 -2370
  622. azure/mgmt/storage/v2021_06_01/operations/_blob_inventory_policies_operations.py +0 -590
  623. azure/mgmt/storage/v2021_06_01/operations/_blob_services_operations.py +0 -464
  624. azure/mgmt/storage/v2021_06_01/operations/_deleted_accounts_operations.py +0 -250
  625. azure/mgmt/storage/v2021_06_01/operations/_encryption_scopes_operations.py +0 -689
  626. azure/mgmt/storage/v2021_06_01/operations/_file_services_operations.py +0 -434
  627. azure/mgmt/storage/v2021_06_01/operations/_file_shares_operations.py +0 -1303
  628. azure/mgmt/storage/v2021_06_01/operations/_management_policies_operations.py +0 -459
  629. azure/mgmt/storage/v2021_06_01/operations/_object_replication_policies_operations.py +0 -585
  630. azure/mgmt/storage/v2021_06_01/operations/_operations.py +0 -156
  631. azure/mgmt/storage/v2021_06_01/operations/_patch.py +0 -20
  632. azure/mgmt/storage/v2021_06_01/operations/_private_endpoint_connections_operations.py +0 -583
  633. azure/mgmt/storage/v2021_06_01/operations/_private_link_resources_operations.py +0 -153
  634. azure/mgmt/storage/v2021_06_01/operations/_queue_operations.py +0 -819
  635. azure/mgmt/storage/v2021_06_01/operations/_queue_services_operations.py +0 -434
  636. azure/mgmt/storage/v2021_06_01/operations/_skus_operations.py +0 -162
  637. azure/mgmt/storage/v2021_06_01/operations/_storage_accounts_operations.py +0 -2400
  638. azure/mgmt/storage/v2021_06_01/operations/_table_operations.py +0 -577
  639. azure/mgmt/storage/v2021_06_01/operations/_table_services_operations.py +0 -434
  640. azure/mgmt/storage/v2021_06_01/operations/_usages_operations.py +0 -169
  641. azure/mgmt/storage/v2021_08_01/__init__.py +0 -26
  642. azure/mgmt/storage/v2021_08_01/_configuration.py +0 -65
  643. azure/mgmt/storage/v2021_08_01/_patch.py +0 -32
  644. azure/mgmt/storage/v2021_08_01/_storage_management_client.py +0 -225
  645. azure/mgmt/storage/v2021_08_01/_vendor.py +0 -16
  646. azure/mgmt/storage/v2021_08_01/_version.py +0 -9
  647. azure/mgmt/storage/v2021_08_01/aio/__init__.py +0 -23
  648. azure/mgmt/storage/v2021_08_01/aio/_configuration.py +0 -65
  649. azure/mgmt/storage/v2021_08_01/aio/_patch.py +0 -32
  650. azure/mgmt/storage/v2021_08_01/aio/_storage_management_client.py +0 -230
  651. azure/mgmt/storage/v2021_08_01/aio/operations/__init__.py +0 -57
  652. azure/mgmt/storage/v2021_08_01/aio/operations/_blob_inventory_policies_operations.py +0 -445
  653. azure/mgmt/storage/v2021_08_01/aio/operations/_blob_services_operations.py +0 -362
  654. azure/mgmt/storage/v2021_08_01/aio/operations/_deleted_accounts_operations.py +0 -194
  655. azure/mgmt/storage/v2021_08_01/aio/operations/_encryption_scopes_operations.py +0 -550
  656. azure/mgmt/storage/v2021_08_01/aio/operations/_local_users_operations.py +0 -560
  657. azure/mgmt/storage/v2021_08_01/aio/operations/_management_policies_operations.py +0 -349
  658. azure/mgmt/storage/v2021_08_01/aio/operations/_operations.py +0 -135
  659. azure/mgmt/storage/v2021_08_01/aio/operations/_patch.py +0 -20
  660. azure/mgmt/storage/v2021_08_01/aio/operations/_private_endpoint_connections_operations.py +0 -432
  661. azure/mgmt/storage/v2021_08_01/aio/operations/_private_link_resources_operations.py +0 -117
  662. azure/mgmt/storage/v2021_08_01/aio/operations/_queue_operations.py +0 -608
  663. azure/mgmt/storage/v2021_08_01/aio/operations/_queue_services_operations.py +0 -328
  664. azure/mgmt/storage/v2021_08_01/aio/operations/_skus_operations.py +0 -136
  665. azure/mgmt/storage/v2021_08_01/aio/operations/_storage_accounts_operations.py +0 -1898
  666. azure/mgmt/storage/v2021_08_01/aio/operations/_table_operations.py +0 -405
  667. azure/mgmt/storage/v2021_08_01/aio/operations/_table_services_operations.py +0 -328
  668. azure/mgmt/storage/v2021_08_01/aio/operations/_usages_operations.py +0 -139
  669. azure/mgmt/storage/v2021_08_01/models/__init__.py +0 -431
  670. azure/mgmt/storage/v2021_08_01/models/_models_py3.py +0 -7738
  671. azure/mgmt/storage/v2021_08_01/models/_patch.py +0 -20
  672. azure/mgmt/storage/v2021_08_01/models/_storage_management_client_enums.py +0 -560
  673. azure/mgmt/storage/v2021_08_01/operations/__init__.py +0 -57
  674. azure/mgmt/storage/v2021_08_01/operations/_blob_containers_operations.py +0 -2370
  675. azure/mgmt/storage/v2021_08_01/operations/_blob_inventory_policies_operations.py +0 -590
  676. azure/mgmt/storage/v2021_08_01/operations/_blob_services_operations.py +0 -464
  677. azure/mgmt/storage/v2021_08_01/operations/_deleted_accounts_operations.py +0 -250
  678. azure/mgmt/storage/v2021_08_01/operations/_encryption_scopes_operations.py +0 -689
  679. azure/mgmt/storage/v2021_08_01/operations/_file_services_operations.py +0 -431
  680. azure/mgmt/storage/v2021_08_01/operations/_file_shares_operations.py +0 -1296
  681. azure/mgmt/storage/v2021_08_01/operations/_local_users_operations.py +0 -758
  682. azure/mgmt/storage/v2021_08_01/operations/_management_policies_operations.py +0 -459
  683. azure/mgmt/storage/v2021_08_01/operations/_object_replication_policies_operations.py +0 -585
  684. azure/mgmt/storage/v2021_08_01/operations/_operations.py +0 -156
  685. azure/mgmt/storage/v2021_08_01/operations/_patch.py +0 -20
  686. azure/mgmt/storage/v2021_08_01/operations/_private_endpoint_connections_operations.py +0 -583
  687. azure/mgmt/storage/v2021_08_01/operations/_private_link_resources_operations.py +0 -153
  688. azure/mgmt/storage/v2021_08_01/operations/_queue_operations.py +0 -814
  689. azure/mgmt/storage/v2021_08_01/operations/_queue_services_operations.py +0 -431
  690. azure/mgmt/storage/v2021_08_01/operations/_skus_operations.py +0 -162
  691. azure/mgmt/storage/v2021_08_01/operations/_storage_accounts_operations.py +0 -2400
  692. azure/mgmt/storage/v2021_08_01/operations/_table_operations.py +0 -572
  693. azure/mgmt/storage/v2021_08_01/operations/_table_services_operations.py +0 -431
  694. azure/mgmt/storage/v2021_08_01/operations/_usages_operations.py +0 -169
  695. azure/mgmt/storage/v2021_09_01/__init__.py +0 -26
  696. azure/mgmt/storage/v2021_09_01/_configuration.py +0 -65
  697. azure/mgmt/storage/v2021_09_01/_patch.py +0 -32
  698. azure/mgmt/storage/v2021_09_01/_storage_management_client.py +0 -225
  699. azure/mgmt/storage/v2021_09_01/_vendor.py +0 -16
  700. azure/mgmt/storage/v2021_09_01/_version.py +0 -9
  701. azure/mgmt/storage/v2021_09_01/aio/__init__.py +0 -23
  702. azure/mgmt/storage/v2021_09_01/aio/_configuration.py +0 -65
  703. azure/mgmt/storage/v2021_09_01/aio/_patch.py +0 -32
  704. azure/mgmt/storage/v2021_09_01/aio/_storage_management_client.py +0 -230
  705. azure/mgmt/storage/v2021_09_01/aio/operations/__init__.py +0 -57
  706. azure/mgmt/storage/v2021_09_01/aio/operations/_blob_containers_operations.py +0 -1838
  707. azure/mgmt/storage/v2021_09_01/aio/operations/_blob_services_operations.py +0 -362
  708. azure/mgmt/storage/v2021_09_01/aio/operations/_deleted_accounts_operations.py +0 -194
  709. azure/mgmt/storage/v2021_09_01/aio/operations/_encryption_scopes_operations.py +0 -550
  710. azure/mgmt/storage/v2021_09_01/aio/operations/_file_services_operations.py +0 -328
  711. azure/mgmt/storage/v2021_09_01/aio/operations/_file_shares_operations.py +0 -1003
  712. azure/mgmt/storage/v2021_09_01/aio/operations/_local_users_operations.py +0 -560
  713. azure/mgmt/storage/v2021_09_01/aio/operations/_management_policies_operations.py +0 -349
  714. azure/mgmt/storage/v2021_09_01/aio/operations/_object_replication_policies_operations.py +0 -446
  715. azure/mgmt/storage/v2021_09_01/aio/operations/_operations.py +0 -135
  716. azure/mgmt/storage/v2021_09_01/aio/operations/_patch.py +0 -20
  717. azure/mgmt/storage/v2021_09_01/aio/operations/_private_endpoint_connections_operations.py +0 -432
  718. azure/mgmt/storage/v2021_09_01/aio/operations/_private_link_resources_operations.py +0 -117
  719. azure/mgmt/storage/v2021_09_01/aio/operations/_queue_operations.py +0 -608
  720. azure/mgmt/storage/v2021_09_01/aio/operations/_skus_operations.py +0 -136
  721. azure/mgmt/storage/v2021_09_01/aio/operations/_storage_accounts_operations.py +0 -1898
  722. azure/mgmt/storage/v2021_09_01/aio/operations/_usages_operations.py +0 -139
  723. azure/mgmt/storage/v2021_09_01/models/__init__.py +0 -441
  724. azure/mgmt/storage/v2021_09_01/models/_models_py3.py +0 -8069
  725. azure/mgmt/storage/v2021_09_01/models/_patch.py +0 -20
  726. azure/mgmt/storage/v2021_09_01/models/_storage_management_client_enums.py +0 -583
  727. azure/mgmt/storage/v2021_09_01/operations/__init__.py +0 -57
  728. azure/mgmt/storage/v2021_09_01/operations/_blob_containers_operations.py +0 -2370
  729. azure/mgmt/storage/v2021_09_01/operations/_blob_inventory_policies_operations.py +0 -587
  730. azure/mgmt/storage/v2021_09_01/operations/_blob_services_operations.py +0 -464
  731. azure/mgmt/storage/v2021_09_01/operations/_deleted_accounts_operations.py +0 -250
  732. azure/mgmt/storage/v2021_09_01/operations/_encryption_scopes_operations.py +0 -689
  733. azure/mgmt/storage/v2021_09_01/operations/_file_services_operations.py +0 -431
  734. azure/mgmt/storage/v2021_09_01/operations/_file_shares_operations.py +0 -1296
  735. azure/mgmt/storage/v2021_09_01/operations/_local_users_operations.py +0 -758
  736. azure/mgmt/storage/v2021_09_01/operations/_management_policies_operations.py +0 -459
  737. azure/mgmt/storage/v2021_09_01/operations/_object_replication_policies_operations.py +0 -585
  738. azure/mgmt/storage/v2021_09_01/operations/_operations.py +0 -156
  739. azure/mgmt/storage/v2021_09_01/operations/_patch.py +0 -20
  740. azure/mgmt/storage/v2021_09_01/operations/_private_endpoint_connections_operations.py +0 -583
  741. azure/mgmt/storage/v2021_09_01/operations/_private_link_resources_operations.py +0 -153
  742. azure/mgmt/storage/v2021_09_01/operations/_queue_operations.py +0 -814
  743. azure/mgmt/storage/v2021_09_01/operations/_queue_services_operations.py +0 -431
  744. azure/mgmt/storage/v2021_09_01/operations/_skus_operations.py +0 -162
  745. azure/mgmt/storage/v2021_09_01/operations/_storage_accounts_operations.py +0 -2400
  746. azure/mgmt/storage/v2021_09_01/operations/_table_operations.py +0 -765
  747. azure/mgmt/storage/v2021_09_01/operations/_table_services_operations.py +0 -431
  748. azure/mgmt/storage/v2021_09_01/operations/_usages_operations.py +0 -169
  749. azure/mgmt/storage/v2022_05_01/__init__.py +0 -26
  750. azure/mgmt/storage/v2022_05_01/_configuration.py +0 -65
  751. azure/mgmt/storage/v2022_05_01/_patch.py +0 -20
  752. azure/mgmt/storage/v2022_05_01/_storage_management_client.py +0 -225
  753. azure/mgmt/storage/v2022_05_01/_vendor.py +0 -16
  754. azure/mgmt/storage/v2022_05_01/_version.py +0 -9
  755. azure/mgmt/storage/v2022_05_01/aio/__init__.py +0 -23
  756. azure/mgmt/storage/v2022_05_01/aio/_configuration.py +0 -65
  757. azure/mgmt/storage/v2022_05_01/aio/_patch.py +0 -20
  758. azure/mgmt/storage/v2022_05_01/aio/_storage_management_client.py +0 -230
  759. azure/mgmt/storage/v2022_05_01/aio/operations/__init__.py +0 -57
  760. azure/mgmt/storage/v2022_05_01/aio/operations/_blob_containers_operations.py +0 -1838
  761. azure/mgmt/storage/v2022_05_01/aio/operations/_blob_inventory_policies_operations.py +0 -442
  762. azure/mgmt/storage/v2022_05_01/aio/operations/_blob_services_operations.py +0 -362
  763. azure/mgmt/storage/v2022_05_01/aio/operations/_deleted_accounts_operations.py +0 -194
  764. azure/mgmt/storage/v2022_05_01/aio/operations/_encryption_scopes_operations.py +0 -550
  765. azure/mgmt/storage/v2022_05_01/aio/operations/_file_services_operations.py +0 -328
  766. azure/mgmt/storage/v2022_05_01/aio/operations/_file_shares_operations.py +0 -1003
  767. azure/mgmt/storage/v2022_05_01/aio/operations/_local_users_operations.py +0 -560
  768. azure/mgmt/storage/v2022_05_01/aio/operations/_management_policies_operations.py +0 -349
  769. azure/mgmt/storage/v2022_05_01/aio/operations/_object_replication_policies_operations.py +0 -446
  770. azure/mgmt/storage/v2022_05_01/aio/operations/_operations.py +0 -135
  771. azure/mgmt/storage/v2022_05_01/aio/operations/_patch.py +0 -20
  772. azure/mgmt/storage/v2022_05_01/aio/operations/_private_endpoint_connections_operations.py +0 -432
  773. azure/mgmt/storage/v2022_05_01/aio/operations/_private_link_resources_operations.py +0 -117
  774. azure/mgmt/storage/v2022_05_01/aio/operations/_queue_operations.py +0 -608
  775. azure/mgmt/storage/v2022_05_01/aio/operations/_queue_services_operations.py +0 -328
  776. azure/mgmt/storage/v2022_05_01/aio/operations/_skus_operations.py +0 -136
  777. azure/mgmt/storage/v2022_05_01/aio/operations/_storage_accounts_operations.py +0 -1898
  778. azure/mgmt/storage/v2022_05_01/aio/operations/_table_operations.py +0 -588
  779. azure/mgmt/storage/v2022_05_01/aio/operations/_table_services_operations.py +0 -328
  780. azure/mgmt/storage/v2022_05_01/aio/operations/_usages_operations.py +0 -139
  781. azure/mgmt/storage/v2022_05_01/models/__init__.py +0 -441
  782. azure/mgmt/storage/v2022_05_01/models/_models_py3.py +0 -8057
  783. azure/mgmt/storage/v2022_05_01/models/_patch.py +0 -20
  784. azure/mgmt/storage/v2022_05_01/models/_storage_management_client_enums.py +0 -584
  785. azure/mgmt/storage/v2022_05_01/operations/__init__.py +0 -57
  786. azure/mgmt/storage/v2022_05_01/operations/_blob_containers_operations.py +0 -2370
  787. azure/mgmt/storage/v2022_05_01/operations/_blob_inventory_policies_operations.py +0 -587
  788. azure/mgmt/storage/v2022_05_01/operations/_blob_services_operations.py +0 -464
  789. azure/mgmt/storage/v2022_05_01/operations/_deleted_accounts_operations.py +0 -250
  790. azure/mgmt/storage/v2022_05_01/operations/_encryption_scopes_operations.py +0 -689
  791. azure/mgmt/storage/v2022_05_01/operations/_file_services_operations.py +0 -431
  792. azure/mgmt/storage/v2022_05_01/operations/_file_shares_operations.py +0 -1296
  793. azure/mgmt/storage/v2022_05_01/operations/_local_users_operations.py +0 -758
  794. azure/mgmt/storage/v2022_05_01/operations/_management_policies_operations.py +0 -459
  795. azure/mgmt/storage/v2022_05_01/operations/_object_replication_policies_operations.py +0 -585
  796. azure/mgmt/storage/v2022_05_01/operations/_operations.py +0 -156
  797. azure/mgmt/storage/v2022_05_01/operations/_patch.py +0 -20
  798. azure/mgmt/storage/v2022_05_01/operations/_private_endpoint_connections_operations.py +0 -583
  799. azure/mgmt/storage/v2022_05_01/operations/_private_link_resources_operations.py +0 -153
  800. azure/mgmt/storage/v2022_05_01/operations/_queue_operations.py +0 -814
  801. azure/mgmt/storage/v2022_05_01/operations/_queue_services_operations.py +0 -431
  802. azure/mgmt/storage/v2022_05_01/operations/_skus_operations.py +0 -162
  803. azure/mgmt/storage/v2022_05_01/operations/_storage_accounts_operations.py +0 -2400
  804. azure/mgmt/storage/v2022_05_01/operations/_table_operations.py +0 -765
  805. azure/mgmt/storage/v2022_05_01/operations/_table_services_operations.py +0 -431
  806. azure/mgmt/storage/v2022_05_01/operations/_usages_operations.py +0 -169
  807. azure/mgmt/storage/v2022_09_01/__init__.py +0 -26
  808. azure/mgmt/storage/v2022_09_01/_configuration.py +0 -65
  809. azure/mgmt/storage/v2022_09_01/_patch.py +0 -20
  810. azure/mgmt/storage/v2022_09_01/_storage_management_client.py +0 -225
  811. azure/mgmt/storage/v2022_09_01/_vendor.py +0 -16
  812. azure/mgmt/storage/v2022_09_01/_version.py +0 -9
  813. azure/mgmt/storage/v2022_09_01/aio/__init__.py +0 -23
  814. azure/mgmt/storage/v2022_09_01/aio/_configuration.py +0 -65
  815. azure/mgmt/storage/v2022_09_01/aio/_patch.py +0 -20
  816. azure/mgmt/storage/v2022_09_01/aio/_storage_management_client.py +0 -230
  817. azure/mgmt/storage/v2022_09_01/aio/operations/__init__.py +0 -57
  818. azure/mgmt/storage/v2022_09_01/aio/operations/_blob_containers_operations.py +0 -1838
  819. azure/mgmt/storage/v2022_09_01/aio/operations/_blob_inventory_policies_operations.py +0 -442
  820. azure/mgmt/storage/v2022_09_01/aio/operations/_blob_services_operations.py +0 -362
  821. azure/mgmt/storage/v2022_09_01/aio/operations/_deleted_accounts_operations.py +0 -194
  822. azure/mgmt/storage/v2022_09_01/aio/operations/_file_services_operations.py +0 -328
  823. azure/mgmt/storage/v2022_09_01/aio/operations/_file_shares_operations.py +0 -1003
  824. azure/mgmt/storage/v2022_09_01/aio/operations/_local_users_operations.py +0 -560
  825. azure/mgmt/storage/v2022_09_01/aio/operations/_management_policies_operations.py +0 -349
  826. azure/mgmt/storage/v2022_09_01/aio/operations/_object_replication_policies_operations.py +0 -446
  827. azure/mgmt/storage/v2022_09_01/aio/operations/_operations.py +0 -135
  828. azure/mgmt/storage/v2022_09_01/aio/operations/_patch.py +0 -20
  829. azure/mgmt/storage/v2022_09_01/aio/operations/_private_endpoint_connections_operations.py +0 -432
  830. azure/mgmt/storage/v2022_09_01/aio/operations/_private_link_resources_operations.py +0 -117
  831. azure/mgmt/storage/v2022_09_01/aio/operations/_queue_operations.py +0 -608
  832. azure/mgmt/storage/v2022_09_01/aio/operations/_queue_services_operations.py +0 -328
  833. azure/mgmt/storage/v2022_09_01/aio/operations/_skus_operations.py +0 -136
  834. azure/mgmt/storage/v2022_09_01/aio/operations/_storage_accounts_operations.py +0 -1913
  835. azure/mgmt/storage/v2022_09_01/aio/operations/_table_operations.py +0 -588
  836. azure/mgmt/storage/v2022_09_01/aio/operations/_table_services_operations.py +0 -328
  837. azure/mgmt/storage/v2022_09_01/aio/operations/_usages_operations.py +0 -139
  838. azure/mgmt/storage/v2022_09_01/models/__init__.py +0 -443
  839. azure/mgmt/storage/v2022_09_01/models/_models_py3.py +0 -8093
  840. azure/mgmt/storage/v2022_09_01/models/_patch.py +0 -20
  841. azure/mgmt/storage/v2022_09_01/models/_storage_management_client_enums.py +0 -592
  842. azure/mgmt/storage/v2022_09_01/operations/__init__.py +0 -57
  843. azure/mgmt/storage/v2022_09_01/operations/_blob_containers_operations.py +0 -2370
  844. azure/mgmt/storage/v2022_09_01/operations/_blob_inventory_policies_operations.py +0 -587
  845. azure/mgmt/storage/v2022_09_01/operations/_blob_services_operations.py +0 -464
  846. azure/mgmt/storage/v2022_09_01/operations/_deleted_accounts_operations.py +0 -250
  847. azure/mgmt/storage/v2022_09_01/operations/_encryption_scopes_operations.py +0 -724
  848. azure/mgmt/storage/v2022_09_01/operations/_file_services_operations.py +0 -431
  849. azure/mgmt/storage/v2022_09_01/operations/_file_shares_operations.py +0 -1296
  850. azure/mgmt/storage/v2022_09_01/operations/_local_users_operations.py +0 -758
  851. azure/mgmt/storage/v2022_09_01/operations/_management_policies_operations.py +0 -459
  852. azure/mgmt/storage/v2022_09_01/operations/_object_replication_policies_operations.py +0 -585
  853. azure/mgmt/storage/v2022_09_01/operations/_operations.py +0 -156
  854. azure/mgmt/storage/v2022_09_01/operations/_patch.py +0 -20
  855. azure/mgmt/storage/v2022_09_01/operations/_private_endpoint_connections_operations.py +0 -583
  856. azure/mgmt/storage/v2022_09_01/operations/_private_link_resources_operations.py +0 -153
  857. azure/mgmt/storage/v2022_09_01/operations/_queue_operations.py +0 -814
  858. azure/mgmt/storage/v2022_09_01/operations/_queue_services_operations.py +0 -431
  859. azure/mgmt/storage/v2022_09_01/operations/_skus_operations.py +0 -162
  860. azure/mgmt/storage/v2022_09_01/operations/_storage_accounts_operations.py +0 -2422
  861. azure/mgmt/storage/v2022_09_01/operations/_table_operations.py +0 -765
  862. azure/mgmt/storage/v2022_09_01/operations/_table_services_operations.py +0 -431
  863. azure/mgmt/storage/v2022_09_01/operations/_usages_operations.py +0 -169
  864. azure/mgmt/storage/v2023_01_01/__init__.py +0 -26
  865. azure/mgmt/storage/v2023_01_01/_configuration.py +0 -65
  866. azure/mgmt/storage/v2023_01_01/_patch.py +0 -20
  867. azure/mgmt/storage/v2023_01_01/_storage_management_client.py +0 -225
  868. azure/mgmt/storage/v2023_01_01/_vendor.py +0 -16
  869. azure/mgmt/storage/v2023_01_01/_version.py +0 -9
  870. azure/mgmt/storage/v2023_01_01/aio/__init__.py +0 -23
  871. azure/mgmt/storage/v2023_01_01/aio/_configuration.py +0 -65
  872. azure/mgmt/storage/v2023_01_01/aio/_patch.py +0 -20
  873. azure/mgmt/storage/v2023_01_01/aio/_storage_management_client.py +0 -230
  874. azure/mgmt/storage/v2023_01_01/aio/operations/__init__.py +0 -57
  875. azure/mgmt/storage/v2023_01_01/aio/operations/_blob_containers_operations.py +0 -1838
  876. azure/mgmt/storage/v2023_01_01/aio/operations/_blob_inventory_policies_operations.py +0 -442
  877. azure/mgmt/storage/v2023_01_01/aio/operations/_blob_services_operations.py +0 -362
  878. azure/mgmt/storage/v2023_01_01/aio/operations/_deleted_accounts_operations.py +0 -194
  879. azure/mgmt/storage/v2023_01_01/aio/operations/_encryption_scopes_operations.py +0 -568
  880. azure/mgmt/storage/v2023_01_01/aio/operations/_file_services_operations.py +0 -328
  881. azure/mgmt/storage/v2023_01_01/aio/operations/_file_shares_operations.py +0 -1003
  882. azure/mgmt/storage/v2023_01_01/aio/operations/_local_users_operations.py +0 -560
  883. azure/mgmt/storage/v2023_01_01/aio/operations/_management_policies_operations.py +0 -349
  884. azure/mgmt/storage/v2023_01_01/aio/operations/_object_replication_policies_operations.py +0 -446
  885. azure/mgmt/storage/v2023_01_01/aio/operations/_operations.py +0 -135
  886. azure/mgmt/storage/v2023_01_01/aio/operations/_patch.py +0 -20
  887. azure/mgmt/storage/v2023_01_01/aio/operations/_private_endpoint_connections_operations.py +0 -432
  888. azure/mgmt/storage/v2023_01_01/aio/operations/_private_link_resources_operations.py +0 -117
  889. azure/mgmt/storage/v2023_01_01/aio/operations/_queue_operations.py +0 -608
  890. azure/mgmt/storage/v2023_01_01/aio/operations/_queue_services_operations.py +0 -328
  891. azure/mgmt/storage/v2023_01_01/aio/operations/_skus_operations.py +0 -136
  892. azure/mgmt/storage/v2023_01_01/aio/operations/_table_operations.py +0 -588
  893. azure/mgmt/storage/v2023_01_01/aio/operations/_table_services_operations.py +0 -328
  894. azure/mgmt/storage/v2023_01_01/aio/operations/_usages_operations.py +0 -139
  895. azure/mgmt/storage/v2023_01_01/models/__init__.py +0 -461
  896. azure/mgmt/storage/v2023_01_01/models/_models_py3.py +0 -8338
  897. azure/mgmt/storage/v2023_01_01/models/_patch.py +0 -20
  898. azure/mgmt/storage/v2023_01_01/models/_storage_management_client_enums.py +0 -626
  899. azure/mgmt/storage/v2023_01_01/operations/__init__.py +0 -57
  900. azure/mgmt/storage/v2023_01_01/operations/_deleted_accounts_operations.py +0 -250
  901. azure/mgmt/storage/v2023_01_01/operations/_file_services_operations.py +0 -437
  902. azure/mgmt/storage/v2023_01_01/operations/_local_users_operations.py +0 -770
  903. azure/mgmt/storage/v2023_01_01/operations/_operations.py +0 -156
  904. azure/mgmt/storage/v2023_01_01/operations/_patch.py +0 -20
  905. azure/mgmt/storage/v2023_01_01/operations/_skus_operations.py +0 -162
  906. azure/mgmt/storage/v2023_01_01/operations/_usages_operations.py +0 -169
  907. azure/mgmt/storage/v2023_05_01/__init__.py +0 -26
  908. azure/mgmt/storage/v2023_05_01/_configuration.py +0 -65
  909. azure/mgmt/storage/v2023_05_01/_patch.py +0 -20
  910. azure/mgmt/storage/v2023_05_01/_vendor.py +0 -16
  911. azure/mgmt/storage/v2023_05_01/_version.py +0 -9
  912. azure/mgmt/storage/v2023_05_01/aio/__init__.py +0 -23
  913. azure/mgmt/storage/v2023_05_01/aio/_configuration.py +0 -65
  914. azure/mgmt/storage/v2023_05_01/aio/_patch.py +0 -20
  915. azure/mgmt/storage/v2023_05_01/aio/operations/_blob_containers_operations.py +0 -1838
  916. azure/mgmt/storage/v2023_05_01/aio/operations/_blob_inventory_policies_operations.py +0 -442
  917. azure/mgmt/storage/v2023_05_01/aio/operations/_blob_services_operations.py +0 -362
  918. azure/mgmt/storage/v2023_05_01/aio/operations/_deleted_accounts_operations.py +0 -194
  919. azure/mgmt/storage/v2023_05_01/aio/operations/_encryption_scopes_operations.py +0 -568
  920. azure/mgmt/storage/v2023_05_01/aio/operations/_file_services_operations.py +0 -328
  921. azure/mgmt/storage/v2023_05_01/aio/operations/_file_shares_operations.py +0 -1003
  922. azure/mgmt/storage/v2023_05_01/aio/operations/_management_policies_operations.py +0 -349
  923. azure/mgmt/storage/v2023_05_01/aio/operations/_object_replication_policies_operations.py +0 -446
  924. azure/mgmt/storage/v2023_05_01/aio/operations/_operations.py +0 -135
  925. azure/mgmt/storage/v2023_05_01/aio/operations/_patch.py +0 -20
  926. azure/mgmt/storage/v2023_05_01/aio/operations/_private_endpoint_connections_operations.py +0 -432
  927. azure/mgmt/storage/v2023_05_01/aio/operations/_private_link_resources_operations.py +0 -117
  928. azure/mgmt/storage/v2023_05_01/aio/operations/_queue_operations.py +0 -608
  929. azure/mgmt/storage/v2023_05_01/aio/operations/_queue_services_operations.py +0 -328
  930. azure/mgmt/storage/v2023_05_01/aio/operations/_skus_operations.py +0 -136
  931. azure/mgmt/storage/v2023_05_01/aio/operations/_storage_accounts_operations.py +0 -2187
  932. azure/mgmt/storage/v2023_05_01/aio/operations/_table_operations.py +0 -588
  933. azure/mgmt/storage/v2023_05_01/aio/operations/_table_services_operations.py +0 -328
  934. azure/mgmt/storage/v2023_05_01/aio/operations/_usages_operations.py +0 -139
  935. azure/mgmt/storage/v2023_05_01/models/__init__.py +0 -537
  936. azure/mgmt/storage/v2023_05_01/models/_patch.py +0 -20
  937. azure/mgmt/storage/v2023_05_01/operations/_blob_containers_operations.py +0 -2398
  938. azure/mgmt/storage/v2023_05_01/operations/_blob_inventory_policies_operations.py +0 -595
  939. azure/mgmt/storage/v2023_05_01/operations/_blob_services_operations.py +0 -470
  940. azure/mgmt/storage/v2023_05_01/operations/_deleted_accounts_operations.py +0 -250
  941. azure/mgmt/storage/v2023_05_01/operations/_encryption_scopes_operations.py +0 -732
  942. azure/mgmt/storage/v2023_05_01/operations/_file_services_operations.py +0 -437
  943. azure/mgmt/storage/v2023_05_01/operations/_file_shares_operations.py +0 -1310
  944. azure/mgmt/storage/v2023_05_01/operations/_management_policies_operations.py +0 -465
  945. azure/mgmt/storage/v2023_05_01/operations/_object_replication_policies_operations.py +0 -593
  946. azure/mgmt/storage/v2023_05_01/operations/_operations.py +0 -156
  947. azure/mgmt/storage/v2023_05_01/operations/_patch.py +0 -20
  948. azure/mgmt/storage/v2023_05_01/operations/_private_endpoint_connections_operations.py +0 -591
  949. azure/mgmt/storage/v2023_05_01/operations/_private_link_resources_operations.py +0 -155
  950. azure/mgmt/storage/v2023_05_01/operations/_queue_operations.py +0 -824
  951. azure/mgmt/storage/v2023_05_01/operations/_queue_services_operations.py +0 -437
  952. azure/mgmt/storage/v2023_05_01/operations/_skus_operations.py +0 -162
  953. azure/mgmt/storage/v2023_05_01/operations/_storage_accounts_operations.py +0 -2796
  954. azure/mgmt/storage/v2023_05_01/operations/_table_services_operations.py +0 -437
  955. azure/mgmt/storage/v2023_05_01/operations/_usages_operations.py +0 -169
  956. azure_mgmt_storage-21.2.1.dist-info/RECORD +0 -979
  957. /azure/mgmt/storage/{v2015_06_15/aio/operations → v2024_01_01}/_patch.py +0 -0
  958. /azure/mgmt/storage/{v2015_06_15/models → v2024_01_01/aio}/_patch.py +0 -0
  959. /azure/mgmt/storage/{v2015_06_15 → v2024_01_01/aio}/operations/_patch.py +0 -0
  960. /azure/mgmt/storage/{v2016_12_01/aio/operations → v2024_01_01/models}/_patch.py +0 -0
  961. /azure/mgmt/storage/{v2016_12_01/models → v2024_01_01/operations}/_patch.py +0 -0
  962. {azure_mgmt_storage-21.2.1.dist-info → azure_mgmt_storage-22.1.0.dist-info}/LICENSE +0 -0
  963. {azure_mgmt_storage-21.2.1.dist-info → azure_mgmt_storage-22.1.0.dist-info}/top_level.txt +0 -0
@@ -1,1776 +0,0 @@
1
- # pylint: disable=too-many-lines,too-many-statements
2
- # coding=utf-8
3
- # --------------------------------------------------------------------------
4
- # Copyright (c) Microsoft Corporation. All rights reserved.
5
- # Licensed under the MIT License. See License.txt in the project root for license information.
6
- # Code generated by Microsoft (R) AutoRest Code Generator.
7
- # Changes may cause incorrect behavior and will be lost if the code is regenerated.
8
- # --------------------------------------------------------------------------
9
- from io import IOBase
10
- import sys
11
- from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, Type, TypeVar, Union, overload
12
- import urllib.parse
13
-
14
- from azure.core.async_paging import AsyncItemPaged, AsyncList
15
- from azure.core.exceptions import (
16
- ClientAuthenticationError,
17
- HttpResponseError,
18
- ResourceExistsError,
19
- ResourceNotFoundError,
20
- ResourceNotModifiedError,
21
- map_error,
22
- )
23
- from azure.core.pipeline import PipelineResponse
24
- from azure.core.pipeline.transport import AsyncHttpResponse
25
- from azure.core.rest import HttpRequest
26
- from azure.core.tracing.decorator import distributed_trace
27
- from azure.core.tracing.decorator_async import distributed_trace_async
28
- from azure.core.utils import case_insensitive_dict
29
- from azure.mgmt.core.exceptions import ARMErrorFormat
30
-
31
- from ... import models as _models
32
- from ..._vendor import _convert_request
33
- from ...operations._blob_containers_operations import (
34
- build_clear_legal_hold_request,
35
- build_create_or_update_immutability_policy_request,
36
- build_create_request,
37
- build_delete_immutability_policy_request,
38
- build_delete_request,
39
- build_extend_immutability_policy_request,
40
- build_get_immutability_policy_request,
41
- build_get_request,
42
- build_lease_request,
43
- build_list_request,
44
- build_lock_immutability_policy_request,
45
- build_set_legal_hold_request,
46
- build_update_request,
47
- )
48
-
49
- if sys.version_info >= (3, 9):
50
- from collections.abc import MutableMapping
51
- else:
52
- from typing import MutableMapping # type: ignore # pylint: disable=ungrouped-imports
53
- T = TypeVar("T")
54
- ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]]
55
-
56
-
57
- class BlobContainersOperations:
58
- """
59
- .. warning::
60
- **DO NOT** instantiate this class directly.
61
-
62
- Instead, you should access the following operations through
63
- :class:`~azure.mgmt.storage.v2020_08_01_preview.aio.StorageManagementClient`'s
64
- :attr:`blob_containers` attribute.
65
- """
66
-
67
- models = _models
68
-
69
- def __init__(self, *args, **kwargs) -> None:
70
- input_args = list(args)
71
- self._client = input_args.pop(0) if input_args else kwargs.pop("client")
72
- self._config = input_args.pop(0) if input_args else kwargs.pop("config")
73
- self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer")
74
- self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer")
75
- self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version")
76
-
77
- @distributed_trace
78
- def list(
79
- self,
80
- resource_group_name: str,
81
- account_name: str,
82
- maxpagesize: Optional[str] = None,
83
- filter: Optional[str] = None,
84
- include: Optional[Union[str, _models.ListContainersInclude]] = None,
85
- **kwargs: Any
86
- ) -> AsyncIterable["_models.ListContainerItem"]:
87
- """Lists all containers and does not support a prefix like data plane. Also SRP today does not
88
- return continuation token.
89
-
90
- :param resource_group_name: The name of the resource group within the user's subscription. The
91
- name is case insensitive. Required.
92
- :type resource_group_name: str
93
- :param account_name: The name of the storage account within the specified resource group.
94
- Storage account names must be between 3 and 24 characters in length and use numbers and
95
- lower-case letters only. Required.
96
- :type account_name: str
97
- :param maxpagesize: Optional. Specified maximum number of containers that can be included in
98
- the list. Default value is None.
99
- :type maxpagesize: str
100
- :param filter: Optional. When specified, only container names starting with the filter will be
101
- listed. Default value is None.
102
- :type filter: str
103
- :param include: Optional, used to include the properties for soft deleted blob containers.
104
- "deleted" Default value is None.
105
- :type include: str or ~azure.mgmt.storage.v2020_08_01_preview.models.ListContainersInclude
106
- :return: An iterator like instance of either ListContainerItem or the result of cls(response)
107
- :rtype:
108
- ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.storage.v2020_08_01_preview.models.ListContainerItem]
109
- :raises ~azure.core.exceptions.HttpResponseError:
110
- """
111
- _headers = kwargs.pop("headers", {}) or {}
112
- _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
113
-
114
- api_version: str = kwargs.pop(
115
- "api_version", _params.pop("api-version", self._api_version or "2020-08-01-preview")
116
- )
117
- cls: ClsType[_models.ListContainerItems] = kwargs.pop("cls", None)
118
-
119
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
120
- 401: ClientAuthenticationError,
121
- 404: ResourceNotFoundError,
122
- 409: ResourceExistsError,
123
- 304: ResourceNotModifiedError,
124
- }
125
- error_map.update(kwargs.pop("error_map", {}) or {})
126
-
127
- def prepare_request(next_link=None):
128
- if not next_link:
129
-
130
- _request = build_list_request(
131
- resource_group_name=resource_group_name,
132
- account_name=account_name,
133
- subscription_id=self._config.subscription_id,
134
- maxpagesize=maxpagesize,
135
- filter=filter,
136
- include=include,
137
- api_version=api_version,
138
- headers=_headers,
139
- params=_params,
140
- )
141
- _request = _convert_request(_request)
142
- _request.url = self._client.format_url(_request.url)
143
-
144
- else:
145
- # make call to next link with the client's api-version
146
- _parsed_next_link = urllib.parse.urlparse(next_link)
147
- _next_request_params = case_insensitive_dict(
148
- {
149
- key: [urllib.parse.quote(v) for v in value]
150
- for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items()
151
- }
152
- )
153
- _next_request_params["api-version"] = self._api_version
154
- _request = HttpRequest(
155
- "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params
156
- )
157
- _request = _convert_request(_request)
158
- _request.url = self._client.format_url(_request.url)
159
- _request.method = "GET"
160
- return _request
161
-
162
- async def extract_data(pipeline_response):
163
- deserialized = self._deserialize("ListContainerItems", pipeline_response)
164
- list_of_elem = deserialized.value
165
- if cls:
166
- list_of_elem = cls(list_of_elem) # type: ignore
167
- return deserialized.next_link or None, AsyncList(list_of_elem)
168
-
169
- async def get_next(next_link=None):
170
- _request = prepare_request(next_link)
171
-
172
- _stream = False
173
- pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access
174
- _request, stream=_stream, **kwargs
175
- )
176
- response = pipeline_response.http_response
177
-
178
- if response.status_code not in [200]:
179
- map_error(status_code=response.status_code, response=response, error_map=error_map)
180
- raise HttpResponseError(response=response, error_format=ARMErrorFormat)
181
-
182
- return pipeline_response
183
-
184
- return AsyncItemPaged(get_next, extract_data)
185
-
186
- @overload
187
- async def create(
188
- self,
189
- resource_group_name: str,
190
- account_name: str,
191
- container_name: str,
192
- blob_container: _models.BlobContainer,
193
- *,
194
- content_type: str = "application/json",
195
- **kwargs: Any
196
- ) -> _models.BlobContainer:
197
- """Creates a new container under the specified account as described by request body. The container
198
- resource includes metadata and properties for that container. It does not include a list of the
199
- blobs contained by the container.
200
-
201
- :param resource_group_name: The name of the resource group within the user's subscription. The
202
- name is case insensitive. Required.
203
- :type resource_group_name: str
204
- :param account_name: The name of the storage account within the specified resource group.
205
- Storage account names must be between 3 and 24 characters in length and use numbers and
206
- lower-case letters only. Required.
207
- :type account_name: str
208
- :param container_name: The name of the blob container within the specified storage account.
209
- Blob container names must be between 3 and 63 characters in length and use numbers, lower-case
210
- letters and dash (-) only. Every dash (-) character must be immediately preceded and followed
211
- by a letter or number. Required.
212
- :type container_name: str
213
- :param blob_container: Properties of the blob container to create. Required.
214
- :type blob_container: ~azure.mgmt.storage.v2020_08_01_preview.models.BlobContainer
215
- :keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
216
- Default value is "application/json".
217
- :paramtype content_type: str
218
- :return: BlobContainer or the result of cls(response)
219
- :rtype: ~azure.mgmt.storage.v2020_08_01_preview.models.BlobContainer
220
- :raises ~azure.core.exceptions.HttpResponseError:
221
- """
222
-
223
- @overload
224
- async def create(
225
- self,
226
- resource_group_name: str,
227
- account_name: str,
228
- container_name: str,
229
- blob_container: IO[bytes],
230
- *,
231
- content_type: str = "application/json",
232
- **kwargs: Any
233
- ) -> _models.BlobContainer:
234
- """Creates a new container under the specified account as described by request body. The container
235
- resource includes metadata and properties for that container. It does not include a list of the
236
- blobs contained by the container.
237
-
238
- :param resource_group_name: The name of the resource group within the user's subscription. The
239
- name is case insensitive. Required.
240
- :type resource_group_name: str
241
- :param account_name: The name of the storage account within the specified resource group.
242
- Storage account names must be between 3 and 24 characters in length and use numbers and
243
- lower-case letters only. Required.
244
- :type account_name: str
245
- :param container_name: The name of the blob container within the specified storage account.
246
- Blob container names must be between 3 and 63 characters in length and use numbers, lower-case
247
- letters and dash (-) only. Every dash (-) character must be immediately preceded and followed
248
- by a letter or number. Required.
249
- :type container_name: str
250
- :param blob_container: Properties of the blob container to create. Required.
251
- :type blob_container: IO[bytes]
252
- :keyword content_type: Body Parameter content-type. Content type parameter for binary body.
253
- Default value is "application/json".
254
- :paramtype content_type: str
255
- :return: BlobContainer or the result of cls(response)
256
- :rtype: ~azure.mgmt.storage.v2020_08_01_preview.models.BlobContainer
257
- :raises ~azure.core.exceptions.HttpResponseError:
258
- """
259
-
260
- @distributed_trace_async
261
- async def create(
262
- self,
263
- resource_group_name: str,
264
- account_name: str,
265
- container_name: str,
266
- blob_container: Union[_models.BlobContainer, IO[bytes]],
267
- **kwargs: Any
268
- ) -> _models.BlobContainer:
269
- """Creates a new container under the specified account as described by request body. The container
270
- resource includes metadata and properties for that container. It does not include a list of the
271
- blobs contained by the container.
272
-
273
- :param resource_group_name: The name of the resource group within the user's subscription. The
274
- name is case insensitive. Required.
275
- :type resource_group_name: str
276
- :param account_name: The name of the storage account within the specified resource group.
277
- Storage account names must be between 3 and 24 characters in length and use numbers and
278
- lower-case letters only. Required.
279
- :type account_name: str
280
- :param container_name: The name of the blob container within the specified storage account.
281
- Blob container names must be between 3 and 63 characters in length and use numbers, lower-case
282
- letters and dash (-) only. Every dash (-) character must be immediately preceded and followed
283
- by a letter or number. Required.
284
- :type container_name: str
285
- :param blob_container: Properties of the blob container to create. Is either a BlobContainer
286
- type or a IO[bytes] type. Required.
287
- :type blob_container: ~azure.mgmt.storage.v2020_08_01_preview.models.BlobContainer or IO[bytes]
288
- :return: BlobContainer or the result of cls(response)
289
- :rtype: ~azure.mgmt.storage.v2020_08_01_preview.models.BlobContainer
290
- :raises ~azure.core.exceptions.HttpResponseError:
291
- """
292
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
293
- 401: ClientAuthenticationError,
294
- 404: ResourceNotFoundError,
295
- 409: ResourceExistsError,
296
- 304: ResourceNotModifiedError,
297
- }
298
- error_map.update(kwargs.pop("error_map", {}) or {})
299
-
300
- _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
301
- _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
302
-
303
- api_version: str = kwargs.pop(
304
- "api_version", _params.pop("api-version", self._api_version or "2020-08-01-preview")
305
- )
306
- content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
307
- cls: ClsType[_models.BlobContainer] = kwargs.pop("cls", None)
308
-
309
- content_type = content_type or "application/json"
310
- _json = None
311
- _content = None
312
- if isinstance(blob_container, (IOBase, bytes)):
313
- _content = blob_container
314
- else:
315
- _json = self._serialize.body(blob_container, "BlobContainer")
316
-
317
- _request = build_create_request(
318
- resource_group_name=resource_group_name,
319
- account_name=account_name,
320
- container_name=container_name,
321
- subscription_id=self._config.subscription_id,
322
- api_version=api_version,
323
- content_type=content_type,
324
- json=_json,
325
- content=_content,
326
- headers=_headers,
327
- params=_params,
328
- )
329
- _request = _convert_request(_request)
330
- _request.url = self._client.format_url(_request.url)
331
-
332
- _stream = False
333
- pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access
334
- _request, stream=_stream, **kwargs
335
- )
336
-
337
- response = pipeline_response.http_response
338
-
339
- if response.status_code not in [200, 201]:
340
- map_error(status_code=response.status_code, response=response, error_map=error_map)
341
- raise HttpResponseError(response=response, error_format=ARMErrorFormat)
342
-
343
- if response.status_code == 200:
344
- deserialized = self._deserialize("BlobContainer", pipeline_response)
345
-
346
- if response.status_code == 201:
347
- deserialized = self._deserialize("BlobContainer", pipeline_response)
348
-
349
- if cls:
350
- return cls(pipeline_response, deserialized, {}) # type: ignore
351
-
352
- return deserialized # type: ignore
353
-
354
- @overload
355
- async def update(
356
- self,
357
- resource_group_name: str,
358
- account_name: str,
359
- container_name: str,
360
- blob_container: _models.BlobContainer,
361
- *,
362
- content_type: str = "application/json",
363
- **kwargs: Any
364
- ) -> _models.BlobContainer:
365
- """Updates container properties as specified in request body. Properties not mentioned in the
366
- request will be unchanged. Update fails if the specified container doesn't already exist.
367
-
368
- :param resource_group_name: The name of the resource group within the user's subscription. The
369
- name is case insensitive. Required.
370
- :type resource_group_name: str
371
- :param account_name: The name of the storage account within the specified resource group.
372
- Storage account names must be between 3 and 24 characters in length and use numbers and
373
- lower-case letters only. Required.
374
- :type account_name: str
375
- :param container_name: The name of the blob container within the specified storage account.
376
- Blob container names must be between 3 and 63 characters in length and use numbers, lower-case
377
- letters and dash (-) only. Every dash (-) character must be immediately preceded and followed
378
- by a letter or number. Required.
379
- :type container_name: str
380
- :param blob_container: Properties to update for the blob container. Required.
381
- :type blob_container: ~azure.mgmt.storage.v2020_08_01_preview.models.BlobContainer
382
- :keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
383
- Default value is "application/json".
384
- :paramtype content_type: str
385
- :return: BlobContainer or the result of cls(response)
386
- :rtype: ~azure.mgmt.storage.v2020_08_01_preview.models.BlobContainer
387
- :raises ~azure.core.exceptions.HttpResponseError:
388
- """
389
-
390
- @overload
391
- async def update(
392
- self,
393
- resource_group_name: str,
394
- account_name: str,
395
- container_name: str,
396
- blob_container: IO[bytes],
397
- *,
398
- content_type: str = "application/json",
399
- **kwargs: Any
400
- ) -> _models.BlobContainer:
401
- """Updates container properties as specified in request body. Properties not mentioned in the
402
- request will be unchanged. Update fails if the specified container doesn't already exist.
403
-
404
- :param resource_group_name: The name of the resource group within the user's subscription. The
405
- name is case insensitive. Required.
406
- :type resource_group_name: str
407
- :param account_name: The name of the storage account within the specified resource group.
408
- Storage account names must be between 3 and 24 characters in length and use numbers and
409
- lower-case letters only. Required.
410
- :type account_name: str
411
- :param container_name: The name of the blob container within the specified storage account.
412
- Blob container names must be between 3 and 63 characters in length and use numbers, lower-case
413
- letters and dash (-) only. Every dash (-) character must be immediately preceded and followed
414
- by a letter or number. Required.
415
- :type container_name: str
416
- :param blob_container: Properties to update for the blob container. Required.
417
- :type blob_container: IO[bytes]
418
- :keyword content_type: Body Parameter content-type. Content type parameter for binary body.
419
- Default value is "application/json".
420
- :paramtype content_type: str
421
- :return: BlobContainer or the result of cls(response)
422
- :rtype: ~azure.mgmt.storage.v2020_08_01_preview.models.BlobContainer
423
- :raises ~azure.core.exceptions.HttpResponseError:
424
- """
425
-
426
- @distributed_trace_async
427
- async def update(
428
- self,
429
- resource_group_name: str,
430
- account_name: str,
431
- container_name: str,
432
- blob_container: Union[_models.BlobContainer, IO[bytes]],
433
- **kwargs: Any
434
- ) -> _models.BlobContainer:
435
- """Updates container properties as specified in request body. Properties not mentioned in the
436
- request will be unchanged. Update fails if the specified container doesn't already exist.
437
-
438
- :param resource_group_name: The name of the resource group within the user's subscription. The
439
- name is case insensitive. Required.
440
- :type resource_group_name: str
441
- :param account_name: The name of the storage account within the specified resource group.
442
- Storage account names must be between 3 and 24 characters in length and use numbers and
443
- lower-case letters only. Required.
444
- :type account_name: str
445
- :param container_name: The name of the blob container within the specified storage account.
446
- Blob container names must be between 3 and 63 characters in length and use numbers, lower-case
447
- letters and dash (-) only. Every dash (-) character must be immediately preceded and followed
448
- by a letter or number. Required.
449
- :type container_name: str
450
- :param blob_container: Properties to update for the blob container. Is either a BlobContainer
451
- type or a IO[bytes] type. Required.
452
- :type blob_container: ~azure.mgmt.storage.v2020_08_01_preview.models.BlobContainer or IO[bytes]
453
- :return: BlobContainer or the result of cls(response)
454
- :rtype: ~azure.mgmt.storage.v2020_08_01_preview.models.BlobContainer
455
- :raises ~azure.core.exceptions.HttpResponseError:
456
- """
457
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
458
- 401: ClientAuthenticationError,
459
- 404: ResourceNotFoundError,
460
- 409: ResourceExistsError,
461
- 304: ResourceNotModifiedError,
462
- }
463
- error_map.update(kwargs.pop("error_map", {}) or {})
464
-
465
- _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
466
- _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
467
-
468
- api_version: str = kwargs.pop(
469
- "api_version", _params.pop("api-version", self._api_version or "2020-08-01-preview")
470
- )
471
- content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
472
- cls: ClsType[_models.BlobContainer] = kwargs.pop("cls", None)
473
-
474
- content_type = content_type or "application/json"
475
- _json = None
476
- _content = None
477
- if isinstance(blob_container, (IOBase, bytes)):
478
- _content = blob_container
479
- else:
480
- _json = self._serialize.body(blob_container, "BlobContainer")
481
-
482
- _request = build_update_request(
483
- resource_group_name=resource_group_name,
484
- account_name=account_name,
485
- container_name=container_name,
486
- subscription_id=self._config.subscription_id,
487
- api_version=api_version,
488
- content_type=content_type,
489
- json=_json,
490
- content=_content,
491
- headers=_headers,
492
- params=_params,
493
- )
494
- _request = _convert_request(_request)
495
- _request.url = self._client.format_url(_request.url)
496
-
497
- _stream = False
498
- pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access
499
- _request, stream=_stream, **kwargs
500
- )
501
-
502
- response = pipeline_response.http_response
503
-
504
- if response.status_code not in [200]:
505
- map_error(status_code=response.status_code, response=response, error_map=error_map)
506
- raise HttpResponseError(response=response, error_format=ARMErrorFormat)
507
-
508
- deserialized = self._deserialize("BlobContainer", pipeline_response)
509
-
510
- if cls:
511
- return cls(pipeline_response, deserialized, {}) # type: ignore
512
-
513
- return deserialized # type: ignore
514
-
515
- @distributed_trace_async
516
- async def get(
517
- self, resource_group_name: str, account_name: str, container_name: str, **kwargs: Any
518
- ) -> _models.BlobContainer:
519
- """Gets properties of a specified container.
520
-
521
- :param resource_group_name: The name of the resource group within the user's subscription. The
522
- name is case insensitive. Required.
523
- :type resource_group_name: str
524
- :param account_name: The name of the storage account within the specified resource group.
525
- Storage account names must be between 3 and 24 characters in length and use numbers and
526
- lower-case letters only. Required.
527
- :type account_name: str
528
- :param container_name: The name of the blob container within the specified storage account.
529
- Blob container names must be between 3 and 63 characters in length and use numbers, lower-case
530
- letters and dash (-) only. Every dash (-) character must be immediately preceded and followed
531
- by a letter or number. Required.
532
- :type container_name: str
533
- :return: BlobContainer or the result of cls(response)
534
- :rtype: ~azure.mgmt.storage.v2020_08_01_preview.models.BlobContainer
535
- :raises ~azure.core.exceptions.HttpResponseError:
536
- """
537
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
538
- 401: ClientAuthenticationError,
539
- 404: ResourceNotFoundError,
540
- 409: ResourceExistsError,
541
- 304: ResourceNotModifiedError,
542
- }
543
- error_map.update(kwargs.pop("error_map", {}) or {})
544
-
545
- _headers = kwargs.pop("headers", {}) or {}
546
- _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
547
-
548
- api_version: str = kwargs.pop(
549
- "api_version", _params.pop("api-version", self._api_version or "2020-08-01-preview")
550
- )
551
- cls: ClsType[_models.BlobContainer] = kwargs.pop("cls", None)
552
-
553
- _request = build_get_request(
554
- resource_group_name=resource_group_name,
555
- account_name=account_name,
556
- container_name=container_name,
557
- subscription_id=self._config.subscription_id,
558
- api_version=api_version,
559
- headers=_headers,
560
- params=_params,
561
- )
562
- _request = _convert_request(_request)
563
- _request.url = self._client.format_url(_request.url)
564
-
565
- _stream = False
566
- pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access
567
- _request, stream=_stream, **kwargs
568
- )
569
-
570
- response = pipeline_response.http_response
571
-
572
- if response.status_code not in [200]:
573
- map_error(status_code=response.status_code, response=response, error_map=error_map)
574
- raise HttpResponseError(response=response, error_format=ARMErrorFormat)
575
-
576
- deserialized = self._deserialize("BlobContainer", pipeline_response)
577
-
578
- if cls:
579
- return cls(pipeline_response, deserialized, {}) # type: ignore
580
-
581
- return deserialized # type: ignore
582
-
583
- @distributed_trace_async
584
- async def delete( # pylint: disable=inconsistent-return-statements
585
- self, resource_group_name: str, account_name: str, container_name: str, **kwargs: Any
586
- ) -> None:
587
- """Deletes specified container under its account.
588
-
589
- :param resource_group_name: The name of the resource group within the user's subscription. The
590
- name is case insensitive. Required.
591
- :type resource_group_name: str
592
- :param account_name: The name of the storage account within the specified resource group.
593
- Storage account names must be between 3 and 24 characters in length and use numbers and
594
- lower-case letters only. Required.
595
- :type account_name: str
596
- :param container_name: The name of the blob container within the specified storage account.
597
- Blob container names must be between 3 and 63 characters in length and use numbers, lower-case
598
- letters and dash (-) only. Every dash (-) character must be immediately preceded and followed
599
- by a letter or number. Required.
600
- :type container_name: str
601
- :return: None or the result of cls(response)
602
- :rtype: None
603
- :raises ~azure.core.exceptions.HttpResponseError:
604
- """
605
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
606
- 401: ClientAuthenticationError,
607
- 404: ResourceNotFoundError,
608
- 409: ResourceExistsError,
609
- 304: ResourceNotModifiedError,
610
- }
611
- error_map.update(kwargs.pop("error_map", {}) or {})
612
-
613
- _headers = kwargs.pop("headers", {}) or {}
614
- _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
615
-
616
- api_version: str = kwargs.pop(
617
- "api_version", _params.pop("api-version", self._api_version or "2020-08-01-preview")
618
- )
619
- cls: ClsType[None] = kwargs.pop("cls", None)
620
-
621
- _request = build_delete_request(
622
- resource_group_name=resource_group_name,
623
- account_name=account_name,
624
- container_name=container_name,
625
- subscription_id=self._config.subscription_id,
626
- api_version=api_version,
627
- headers=_headers,
628
- params=_params,
629
- )
630
- _request = _convert_request(_request)
631
- _request.url = self._client.format_url(_request.url)
632
-
633
- _stream = False
634
- pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access
635
- _request, stream=_stream, **kwargs
636
- )
637
-
638
- response = pipeline_response.http_response
639
-
640
- if response.status_code not in [200, 204]:
641
- map_error(status_code=response.status_code, response=response, error_map=error_map)
642
- raise HttpResponseError(response=response, error_format=ARMErrorFormat)
643
-
644
- if cls:
645
- return cls(pipeline_response, None, {}) # type: ignore
646
-
647
- @overload
648
- async def set_legal_hold(
649
- self,
650
- resource_group_name: str,
651
- account_name: str,
652
- container_name: str,
653
- legal_hold: _models.LegalHold,
654
- *,
655
- content_type: str = "application/json",
656
- **kwargs: Any
657
- ) -> _models.LegalHold:
658
- """Sets legal hold tags. Setting the same tag results in an idempotent operation. SetLegalHold
659
- follows an append pattern and does not clear out the existing tags that are not specified in
660
- the request.
661
-
662
- :param resource_group_name: The name of the resource group within the user's subscription. The
663
- name is case insensitive. Required.
664
- :type resource_group_name: str
665
- :param account_name: The name of the storage account within the specified resource group.
666
- Storage account names must be between 3 and 24 characters in length and use numbers and
667
- lower-case letters only. Required.
668
- :type account_name: str
669
- :param container_name: The name of the blob container within the specified storage account.
670
- Blob container names must be between 3 and 63 characters in length and use numbers, lower-case
671
- letters and dash (-) only. Every dash (-) character must be immediately preceded and followed
672
- by a letter or number. Required.
673
- :type container_name: str
674
- :param legal_hold: The LegalHold property that will be set to a blob container. Required.
675
- :type legal_hold: ~azure.mgmt.storage.v2020_08_01_preview.models.LegalHold
676
- :keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
677
- Default value is "application/json".
678
- :paramtype content_type: str
679
- :return: LegalHold or the result of cls(response)
680
- :rtype: ~azure.mgmt.storage.v2020_08_01_preview.models.LegalHold
681
- :raises ~azure.core.exceptions.HttpResponseError:
682
- """
683
-
684
- @overload
685
- async def set_legal_hold(
686
- self,
687
- resource_group_name: str,
688
- account_name: str,
689
- container_name: str,
690
- legal_hold: IO[bytes],
691
- *,
692
- content_type: str = "application/json",
693
- **kwargs: Any
694
- ) -> _models.LegalHold:
695
- """Sets legal hold tags. Setting the same tag results in an idempotent operation. SetLegalHold
696
- follows an append pattern and does not clear out the existing tags that are not specified in
697
- the request.
698
-
699
- :param resource_group_name: The name of the resource group within the user's subscription. The
700
- name is case insensitive. Required.
701
- :type resource_group_name: str
702
- :param account_name: The name of the storage account within the specified resource group.
703
- Storage account names must be between 3 and 24 characters in length and use numbers and
704
- lower-case letters only. Required.
705
- :type account_name: str
706
- :param container_name: The name of the blob container within the specified storage account.
707
- Blob container names must be between 3 and 63 characters in length and use numbers, lower-case
708
- letters and dash (-) only. Every dash (-) character must be immediately preceded and followed
709
- by a letter or number. Required.
710
- :type container_name: str
711
- :param legal_hold: The LegalHold property that will be set to a blob container. Required.
712
- :type legal_hold: IO[bytes]
713
- :keyword content_type: Body Parameter content-type. Content type parameter for binary body.
714
- Default value is "application/json".
715
- :paramtype content_type: str
716
- :return: LegalHold or the result of cls(response)
717
- :rtype: ~azure.mgmt.storage.v2020_08_01_preview.models.LegalHold
718
- :raises ~azure.core.exceptions.HttpResponseError:
719
- """
720
-
721
- @distributed_trace_async
722
- async def set_legal_hold(
723
- self,
724
- resource_group_name: str,
725
- account_name: str,
726
- container_name: str,
727
- legal_hold: Union[_models.LegalHold, IO[bytes]],
728
- **kwargs: Any
729
- ) -> _models.LegalHold:
730
- """Sets legal hold tags. Setting the same tag results in an idempotent operation. SetLegalHold
731
- follows an append pattern and does not clear out the existing tags that are not specified in
732
- the request.
733
-
734
- :param resource_group_name: The name of the resource group within the user's subscription. The
735
- name is case insensitive. Required.
736
- :type resource_group_name: str
737
- :param account_name: The name of the storage account within the specified resource group.
738
- Storage account names must be between 3 and 24 characters in length and use numbers and
739
- lower-case letters only. Required.
740
- :type account_name: str
741
- :param container_name: The name of the blob container within the specified storage account.
742
- Blob container names must be between 3 and 63 characters in length and use numbers, lower-case
743
- letters and dash (-) only. Every dash (-) character must be immediately preceded and followed
744
- by a letter or number. Required.
745
- :type container_name: str
746
- :param legal_hold: The LegalHold property that will be set to a blob container. Is either a
747
- LegalHold type or a IO[bytes] type. Required.
748
- :type legal_hold: ~azure.mgmt.storage.v2020_08_01_preview.models.LegalHold or IO[bytes]
749
- :return: LegalHold or the result of cls(response)
750
- :rtype: ~azure.mgmt.storage.v2020_08_01_preview.models.LegalHold
751
- :raises ~azure.core.exceptions.HttpResponseError:
752
- """
753
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
754
- 401: ClientAuthenticationError,
755
- 404: ResourceNotFoundError,
756
- 409: ResourceExistsError,
757
- 304: ResourceNotModifiedError,
758
- }
759
- error_map.update(kwargs.pop("error_map", {}) or {})
760
-
761
- _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
762
- _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
763
-
764
- api_version: str = kwargs.pop(
765
- "api_version", _params.pop("api-version", self._api_version or "2020-08-01-preview")
766
- )
767
- content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
768
- cls: ClsType[_models.LegalHold] = kwargs.pop("cls", None)
769
-
770
- content_type = content_type or "application/json"
771
- _json = None
772
- _content = None
773
- if isinstance(legal_hold, (IOBase, bytes)):
774
- _content = legal_hold
775
- else:
776
- _json = self._serialize.body(legal_hold, "LegalHold")
777
-
778
- _request = build_set_legal_hold_request(
779
- resource_group_name=resource_group_name,
780
- account_name=account_name,
781
- container_name=container_name,
782
- subscription_id=self._config.subscription_id,
783
- api_version=api_version,
784
- content_type=content_type,
785
- json=_json,
786
- content=_content,
787
- headers=_headers,
788
- params=_params,
789
- )
790
- _request = _convert_request(_request)
791
- _request.url = self._client.format_url(_request.url)
792
-
793
- _stream = False
794
- pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access
795
- _request, stream=_stream, **kwargs
796
- )
797
-
798
- response = pipeline_response.http_response
799
-
800
- if response.status_code not in [200]:
801
- map_error(status_code=response.status_code, response=response, error_map=error_map)
802
- raise HttpResponseError(response=response, error_format=ARMErrorFormat)
803
-
804
- deserialized = self._deserialize("LegalHold", pipeline_response)
805
-
806
- if cls:
807
- return cls(pipeline_response, deserialized, {}) # type: ignore
808
-
809
- return deserialized # type: ignore
810
-
811
- @overload
812
- async def clear_legal_hold(
813
- self,
814
- resource_group_name: str,
815
- account_name: str,
816
- container_name: str,
817
- legal_hold: _models.LegalHold,
818
- *,
819
- content_type: str = "application/json",
820
- **kwargs: Any
821
- ) -> _models.LegalHold:
822
- """Clears legal hold tags. Clearing the same or non-existent tag results in an idempotent
823
- operation. ClearLegalHold clears out only the specified tags in the request.
824
-
825
- :param resource_group_name: The name of the resource group within the user's subscription. The
826
- name is case insensitive. Required.
827
- :type resource_group_name: str
828
- :param account_name: The name of the storage account within the specified resource group.
829
- Storage account names must be between 3 and 24 characters in length and use numbers and
830
- lower-case letters only. Required.
831
- :type account_name: str
832
- :param container_name: The name of the blob container within the specified storage account.
833
- Blob container names must be between 3 and 63 characters in length and use numbers, lower-case
834
- letters and dash (-) only. Every dash (-) character must be immediately preceded and followed
835
- by a letter or number. Required.
836
- :type container_name: str
837
- :param legal_hold: The LegalHold property that will be clear from a blob container. Required.
838
- :type legal_hold: ~azure.mgmt.storage.v2020_08_01_preview.models.LegalHold
839
- :keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
840
- Default value is "application/json".
841
- :paramtype content_type: str
842
- :return: LegalHold or the result of cls(response)
843
- :rtype: ~azure.mgmt.storage.v2020_08_01_preview.models.LegalHold
844
- :raises ~azure.core.exceptions.HttpResponseError:
845
- """
846
-
847
- @overload
848
- async def clear_legal_hold(
849
- self,
850
- resource_group_name: str,
851
- account_name: str,
852
- container_name: str,
853
- legal_hold: IO[bytes],
854
- *,
855
- content_type: str = "application/json",
856
- **kwargs: Any
857
- ) -> _models.LegalHold:
858
- """Clears legal hold tags. Clearing the same or non-existent tag results in an idempotent
859
- operation. ClearLegalHold clears out only the specified tags in the request.
860
-
861
- :param resource_group_name: The name of the resource group within the user's subscription. The
862
- name is case insensitive. Required.
863
- :type resource_group_name: str
864
- :param account_name: The name of the storage account within the specified resource group.
865
- Storage account names must be between 3 and 24 characters in length and use numbers and
866
- lower-case letters only. Required.
867
- :type account_name: str
868
- :param container_name: The name of the blob container within the specified storage account.
869
- Blob container names must be between 3 and 63 characters in length and use numbers, lower-case
870
- letters and dash (-) only. Every dash (-) character must be immediately preceded and followed
871
- by a letter or number. Required.
872
- :type container_name: str
873
- :param legal_hold: The LegalHold property that will be clear from a blob container. Required.
874
- :type legal_hold: IO[bytes]
875
- :keyword content_type: Body Parameter content-type. Content type parameter for binary body.
876
- Default value is "application/json".
877
- :paramtype content_type: str
878
- :return: LegalHold or the result of cls(response)
879
- :rtype: ~azure.mgmt.storage.v2020_08_01_preview.models.LegalHold
880
- :raises ~azure.core.exceptions.HttpResponseError:
881
- """
882
-
883
- @distributed_trace_async
884
- async def clear_legal_hold(
885
- self,
886
- resource_group_name: str,
887
- account_name: str,
888
- container_name: str,
889
- legal_hold: Union[_models.LegalHold, IO[bytes]],
890
- **kwargs: Any
891
- ) -> _models.LegalHold:
892
- """Clears legal hold tags. Clearing the same or non-existent tag results in an idempotent
893
- operation. ClearLegalHold clears out only the specified tags in the request.
894
-
895
- :param resource_group_name: The name of the resource group within the user's subscription. The
896
- name is case insensitive. Required.
897
- :type resource_group_name: str
898
- :param account_name: The name of the storage account within the specified resource group.
899
- Storage account names must be between 3 and 24 characters in length and use numbers and
900
- lower-case letters only. Required.
901
- :type account_name: str
902
- :param container_name: The name of the blob container within the specified storage account.
903
- Blob container names must be between 3 and 63 characters in length and use numbers, lower-case
904
- letters and dash (-) only. Every dash (-) character must be immediately preceded and followed
905
- by a letter or number. Required.
906
- :type container_name: str
907
- :param legal_hold: The LegalHold property that will be clear from a blob container. Is either a
908
- LegalHold type or a IO[bytes] type. Required.
909
- :type legal_hold: ~azure.mgmt.storage.v2020_08_01_preview.models.LegalHold or IO[bytes]
910
- :return: LegalHold or the result of cls(response)
911
- :rtype: ~azure.mgmt.storage.v2020_08_01_preview.models.LegalHold
912
- :raises ~azure.core.exceptions.HttpResponseError:
913
- """
914
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
915
- 401: ClientAuthenticationError,
916
- 404: ResourceNotFoundError,
917
- 409: ResourceExistsError,
918
- 304: ResourceNotModifiedError,
919
- }
920
- error_map.update(kwargs.pop("error_map", {}) or {})
921
-
922
- _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
923
- _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
924
-
925
- api_version: str = kwargs.pop(
926
- "api_version", _params.pop("api-version", self._api_version or "2020-08-01-preview")
927
- )
928
- content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
929
- cls: ClsType[_models.LegalHold] = kwargs.pop("cls", None)
930
-
931
- content_type = content_type or "application/json"
932
- _json = None
933
- _content = None
934
- if isinstance(legal_hold, (IOBase, bytes)):
935
- _content = legal_hold
936
- else:
937
- _json = self._serialize.body(legal_hold, "LegalHold")
938
-
939
- _request = build_clear_legal_hold_request(
940
- resource_group_name=resource_group_name,
941
- account_name=account_name,
942
- container_name=container_name,
943
- subscription_id=self._config.subscription_id,
944
- api_version=api_version,
945
- content_type=content_type,
946
- json=_json,
947
- content=_content,
948
- headers=_headers,
949
- params=_params,
950
- )
951
- _request = _convert_request(_request)
952
- _request.url = self._client.format_url(_request.url)
953
-
954
- _stream = False
955
- pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access
956
- _request, stream=_stream, **kwargs
957
- )
958
-
959
- response = pipeline_response.http_response
960
-
961
- if response.status_code not in [200]:
962
- map_error(status_code=response.status_code, response=response, error_map=error_map)
963
- raise HttpResponseError(response=response, error_format=ARMErrorFormat)
964
-
965
- deserialized = self._deserialize("LegalHold", pipeline_response)
966
-
967
- if cls:
968
- return cls(pipeline_response, deserialized, {}) # type: ignore
969
-
970
- return deserialized # type: ignore
971
-
972
- @overload
973
- async def create_or_update_immutability_policy(
974
- self,
975
- resource_group_name: str,
976
- account_name: str,
977
- container_name: str,
978
- immutability_policy_name: Union[str, _models.Enum28],
979
- if_match: Optional[str] = None,
980
- parameters: Optional[_models.ImmutabilityPolicy] = None,
981
- *,
982
- content_type: str = "application/json",
983
- **kwargs: Any
984
- ) -> _models.ImmutabilityPolicy:
985
- """Creates or updates an unlocked immutability policy. ETag in If-Match is honored if given but
986
- not required for this operation.
987
-
988
- :param resource_group_name: The name of the resource group within the user's subscription. The
989
- name is case insensitive. Required.
990
- :type resource_group_name: str
991
- :param account_name: The name of the storage account within the specified resource group.
992
- Storage account names must be between 3 and 24 characters in length and use numbers and
993
- lower-case letters only. Required.
994
- :type account_name: str
995
- :param container_name: The name of the blob container within the specified storage account.
996
- Blob container names must be between 3 and 63 characters in length and use numbers, lower-case
997
- letters and dash (-) only. Every dash (-) character must be immediately preceded and followed
998
- by a letter or number. Required.
999
- :type container_name: str
1000
- :param immutability_policy_name: The name of the blob container immutabilityPolicy within the
1001
- specified storage account. ImmutabilityPolicy Name must be 'default'. "default" Required.
1002
- :type immutability_policy_name: str or ~azure.mgmt.storage.v2020_08_01_preview.models.Enum28
1003
- :param if_match: The entity state (ETag) version of the immutability policy to update. A value
1004
- of "*" can be used to apply the operation only if the immutability policy already exists. If
1005
- omitted, this operation will always be applied. Default value is None.
1006
- :type if_match: str
1007
- :param parameters: The ImmutabilityPolicy Properties that will be created or updated to a blob
1008
- container. Default value is None.
1009
- :type parameters: ~azure.mgmt.storage.v2020_08_01_preview.models.ImmutabilityPolicy
1010
- :keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
1011
- Default value is "application/json".
1012
- :paramtype content_type: str
1013
- :return: ImmutabilityPolicy or the result of cls(response)
1014
- :rtype: ~azure.mgmt.storage.v2020_08_01_preview.models.ImmutabilityPolicy
1015
- :raises ~azure.core.exceptions.HttpResponseError:
1016
- """
1017
-
1018
- @overload
1019
- async def create_or_update_immutability_policy(
1020
- self,
1021
- resource_group_name: str,
1022
- account_name: str,
1023
- container_name: str,
1024
- immutability_policy_name: Union[str, _models.Enum28],
1025
- if_match: Optional[str] = None,
1026
- parameters: Optional[IO[bytes]] = None,
1027
- *,
1028
- content_type: str = "application/json",
1029
- **kwargs: Any
1030
- ) -> _models.ImmutabilityPolicy:
1031
- """Creates or updates an unlocked immutability policy. ETag in If-Match is honored if given but
1032
- not required for this operation.
1033
-
1034
- :param resource_group_name: The name of the resource group within the user's subscription. The
1035
- name is case insensitive. Required.
1036
- :type resource_group_name: str
1037
- :param account_name: The name of the storage account within the specified resource group.
1038
- Storage account names must be between 3 and 24 characters in length and use numbers and
1039
- lower-case letters only. Required.
1040
- :type account_name: str
1041
- :param container_name: The name of the blob container within the specified storage account.
1042
- Blob container names must be between 3 and 63 characters in length and use numbers, lower-case
1043
- letters and dash (-) only. Every dash (-) character must be immediately preceded and followed
1044
- by a letter or number. Required.
1045
- :type container_name: str
1046
- :param immutability_policy_name: The name of the blob container immutabilityPolicy within the
1047
- specified storage account. ImmutabilityPolicy Name must be 'default'. "default" Required.
1048
- :type immutability_policy_name: str or ~azure.mgmt.storage.v2020_08_01_preview.models.Enum28
1049
- :param if_match: The entity state (ETag) version of the immutability policy to update. A value
1050
- of "*" can be used to apply the operation only if the immutability policy already exists. If
1051
- omitted, this operation will always be applied. Default value is None.
1052
- :type if_match: str
1053
- :param parameters: The ImmutabilityPolicy Properties that will be created or updated to a blob
1054
- container. Default value is None.
1055
- :type parameters: IO[bytes]
1056
- :keyword content_type: Body Parameter content-type. Content type parameter for binary body.
1057
- Default value is "application/json".
1058
- :paramtype content_type: str
1059
- :return: ImmutabilityPolicy or the result of cls(response)
1060
- :rtype: ~azure.mgmt.storage.v2020_08_01_preview.models.ImmutabilityPolicy
1061
- :raises ~azure.core.exceptions.HttpResponseError:
1062
- """
1063
-
1064
- @distributed_trace_async
1065
- async def create_or_update_immutability_policy(
1066
- self,
1067
- resource_group_name: str,
1068
- account_name: str,
1069
- container_name: str,
1070
- immutability_policy_name: Union[str, _models.Enum28],
1071
- if_match: Optional[str] = None,
1072
- parameters: Optional[Union[_models.ImmutabilityPolicy, IO[bytes]]] = None,
1073
- **kwargs: Any
1074
- ) -> _models.ImmutabilityPolicy:
1075
- """Creates or updates an unlocked immutability policy. ETag in If-Match is honored if given but
1076
- not required for this operation.
1077
-
1078
- :param resource_group_name: The name of the resource group within the user's subscription. The
1079
- name is case insensitive. Required.
1080
- :type resource_group_name: str
1081
- :param account_name: The name of the storage account within the specified resource group.
1082
- Storage account names must be between 3 and 24 characters in length and use numbers and
1083
- lower-case letters only. Required.
1084
- :type account_name: str
1085
- :param container_name: The name of the blob container within the specified storage account.
1086
- Blob container names must be between 3 and 63 characters in length and use numbers, lower-case
1087
- letters and dash (-) only. Every dash (-) character must be immediately preceded and followed
1088
- by a letter or number. Required.
1089
- :type container_name: str
1090
- :param immutability_policy_name: The name of the blob container immutabilityPolicy within the
1091
- specified storage account. ImmutabilityPolicy Name must be 'default'. "default" Required.
1092
- :type immutability_policy_name: str or ~azure.mgmt.storage.v2020_08_01_preview.models.Enum28
1093
- :param if_match: The entity state (ETag) version of the immutability policy to update. A value
1094
- of "*" can be used to apply the operation only if the immutability policy already exists. If
1095
- omitted, this operation will always be applied. Default value is None.
1096
- :type if_match: str
1097
- :param parameters: The ImmutabilityPolicy Properties that will be created or updated to a blob
1098
- container. Is either a ImmutabilityPolicy type or a IO[bytes] type. Default value is None.
1099
- :type parameters: ~azure.mgmt.storage.v2020_08_01_preview.models.ImmutabilityPolicy or
1100
- IO[bytes]
1101
- :return: ImmutabilityPolicy or the result of cls(response)
1102
- :rtype: ~azure.mgmt.storage.v2020_08_01_preview.models.ImmutabilityPolicy
1103
- :raises ~azure.core.exceptions.HttpResponseError:
1104
- """
1105
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
1106
- 401: ClientAuthenticationError,
1107
- 404: ResourceNotFoundError,
1108
- 409: ResourceExistsError,
1109
- 304: ResourceNotModifiedError,
1110
- }
1111
- error_map.update(kwargs.pop("error_map", {}) or {})
1112
-
1113
- _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
1114
- _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
1115
-
1116
- api_version: str = kwargs.pop(
1117
- "api_version", _params.pop("api-version", self._api_version or "2020-08-01-preview")
1118
- )
1119
- content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
1120
- cls: ClsType[_models.ImmutabilityPolicy] = kwargs.pop("cls", None)
1121
-
1122
- content_type = content_type or "application/json"
1123
- _json = None
1124
- _content = None
1125
- if isinstance(parameters, (IOBase, bytes)):
1126
- _content = parameters
1127
- else:
1128
- if parameters is not None:
1129
- _json = self._serialize.body(parameters, "ImmutabilityPolicy")
1130
- else:
1131
- _json = None
1132
-
1133
- _request = build_create_or_update_immutability_policy_request(
1134
- resource_group_name=resource_group_name,
1135
- account_name=account_name,
1136
- container_name=container_name,
1137
- immutability_policy_name=immutability_policy_name,
1138
- subscription_id=self._config.subscription_id,
1139
- if_match=if_match,
1140
- api_version=api_version,
1141
- content_type=content_type,
1142
- json=_json,
1143
- content=_content,
1144
- headers=_headers,
1145
- params=_params,
1146
- )
1147
- _request = _convert_request(_request)
1148
- _request.url = self._client.format_url(_request.url)
1149
-
1150
- _stream = False
1151
- pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access
1152
- _request, stream=_stream, **kwargs
1153
- )
1154
-
1155
- response = pipeline_response.http_response
1156
-
1157
- if response.status_code not in [200]:
1158
- map_error(status_code=response.status_code, response=response, error_map=error_map)
1159
- raise HttpResponseError(response=response, error_format=ARMErrorFormat)
1160
-
1161
- response_headers = {}
1162
- response_headers["ETag"] = self._deserialize("str", response.headers.get("ETag"))
1163
-
1164
- deserialized = self._deserialize("ImmutabilityPolicy", pipeline_response)
1165
-
1166
- if cls:
1167
- return cls(pipeline_response, deserialized, response_headers) # type: ignore
1168
-
1169
- return deserialized # type: ignore
1170
-
1171
- @distributed_trace_async
1172
- async def get_immutability_policy(
1173
- self,
1174
- resource_group_name: str,
1175
- account_name: str,
1176
- container_name: str,
1177
- immutability_policy_name: Union[str, _models.Enum28],
1178
- if_match: Optional[str] = None,
1179
- **kwargs: Any
1180
- ) -> _models.ImmutabilityPolicy:
1181
- """Gets the existing immutability policy along with the corresponding ETag in response headers and
1182
- body.
1183
-
1184
- :param resource_group_name: The name of the resource group within the user's subscription. The
1185
- name is case insensitive. Required.
1186
- :type resource_group_name: str
1187
- :param account_name: The name of the storage account within the specified resource group.
1188
- Storage account names must be between 3 and 24 characters in length and use numbers and
1189
- lower-case letters only. Required.
1190
- :type account_name: str
1191
- :param container_name: The name of the blob container within the specified storage account.
1192
- Blob container names must be between 3 and 63 characters in length and use numbers, lower-case
1193
- letters and dash (-) only. Every dash (-) character must be immediately preceded and followed
1194
- by a letter or number. Required.
1195
- :type container_name: str
1196
- :param immutability_policy_name: The name of the blob container immutabilityPolicy within the
1197
- specified storage account. ImmutabilityPolicy Name must be 'default'. "default" Required.
1198
- :type immutability_policy_name: str or ~azure.mgmt.storage.v2020_08_01_preview.models.Enum28
1199
- :param if_match: The entity state (ETag) version of the immutability policy to update. A value
1200
- of "*" can be used to apply the operation only if the immutability policy already exists. If
1201
- omitted, this operation will always be applied. Default value is None.
1202
- :type if_match: str
1203
- :return: ImmutabilityPolicy or the result of cls(response)
1204
- :rtype: ~azure.mgmt.storage.v2020_08_01_preview.models.ImmutabilityPolicy
1205
- :raises ~azure.core.exceptions.HttpResponseError:
1206
- """
1207
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
1208
- 401: ClientAuthenticationError,
1209
- 404: ResourceNotFoundError,
1210
- 409: ResourceExistsError,
1211
- 304: ResourceNotModifiedError,
1212
- }
1213
- error_map.update(kwargs.pop("error_map", {}) or {})
1214
-
1215
- _headers = kwargs.pop("headers", {}) or {}
1216
- _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
1217
-
1218
- api_version: str = kwargs.pop(
1219
- "api_version", _params.pop("api-version", self._api_version or "2020-08-01-preview")
1220
- )
1221
- cls: ClsType[_models.ImmutabilityPolicy] = kwargs.pop("cls", None)
1222
-
1223
- _request = build_get_immutability_policy_request(
1224
- resource_group_name=resource_group_name,
1225
- account_name=account_name,
1226
- container_name=container_name,
1227
- immutability_policy_name=immutability_policy_name,
1228
- subscription_id=self._config.subscription_id,
1229
- if_match=if_match,
1230
- api_version=api_version,
1231
- headers=_headers,
1232
- params=_params,
1233
- )
1234
- _request = _convert_request(_request)
1235
- _request.url = self._client.format_url(_request.url)
1236
-
1237
- _stream = False
1238
- pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access
1239
- _request, stream=_stream, **kwargs
1240
- )
1241
-
1242
- response = pipeline_response.http_response
1243
-
1244
- if response.status_code not in [200]:
1245
- map_error(status_code=response.status_code, response=response, error_map=error_map)
1246
- raise HttpResponseError(response=response, error_format=ARMErrorFormat)
1247
-
1248
- response_headers = {}
1249
- response_headers["ETag"] = self._deserialize("str", response.headers.get("ETag"))
1250
-
1251
- deserialized = self._deserialize("ImmutabilityPolicy", pipeline_response)
1252
-
1253
- if cls:
1254
- return cls(pipeline_response, deserialized, response_headers) # type: ignore
1255
-
1256
- return deserialized # type: ignore
1257
-
1258
- @distributed_trace_async
1259
- async def delete_immutability_policy(
1260
- self,
1261
- resource_group_name: str,
1262
- account_name: str,
1263
- container_name: str,
1264
- immutability_policy_name: Union[str, _models.Enum28],
1265
- if_match: str,
1266
- **kwargs: Any
1267
- ) -> _models.ImmutabilityPolicy:
1268
- """Aborts an unlocked immutability policy. The response of delete has
1269
- immutabilityPeriodSinceCreationInDays set to 0. ETag in If-Match is required for this
1270
- operation. Deleting a locked immutability policy is not allowed, the only way is to delete the
1271
- container after deleting all expired blobs inside the policy locked container.
1272
-
1273
- :param resource_group_name: The name of the resource group within the user's subscription. The
1274
- name is case insensitive. Required.
1275
- :type resource_group_name: str
1276
- :param account_name: The name of the storage account within the specified resource group.
1277
- Storage account names must be between 3 and 24 characters in length and use numbers and
1278
- lower-case letters only. Required.
1279
- :type account_name: str
1280
- :param container_name: The name of the blob container within the specified storage account.
1281
- Blob container names must be between 3 and 63 characters in length and use numbers, lower-case
1282
- letters and dash (-) only. Every dash (-) character must be immediately preceded and followed
1283
- by a letter or number. Required.
1284
- :type container_name: str
1285
- :param immutability_policy_name: The name of the blob container immutabilityPolicy within the
1286
- specified storage account. ImmutabilityPolicy Name must be 'default'. "default" Required.
1287
- :type immutability_policy_name: str or ~azure.mgmt.storage.v2020_08_01_preview.models.Enum28
1288
- :param if_match: The entity state (ETag) version of the immutability policy to update. A value
1289
- of "*" can be used to apply the operation only if the immutability policy already exists. If
1290
- omitted, this operation will always be applied. Required.
1291
- :type if_match: str
1292
- :return: ImmutabilityPolicy or the result of cls(response)
1293
- :rtype: ~azure.mgmt.storage.v2020_08_01_preview.models.ImmutabilityPolicy
1294
- :raises ~azure.core.exceptions.HttpResponseError:
1295
- """
1296
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
1297
- 401: ClientAuthenticationError,
1298
- 404: ResourceNotFoundError,
1299
- 409: ResourceExistsError,
1300
- 304: ResourceNotModifiedError,
1301
- }
1302
- error_map.update(kwargs.pop("error_map", {}) or {})
1303
-
1304
- _headers = kwargs.pop("headers", {}) or {}
1305
- _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
1306
-
1307
- api_version: str = kwargs.pop(
1308
- "api_version", _params.pop("api-version", self._api_version or "2020-08-01-preview")
1309
- )
1310
- cls: ClsType[_models.ImmutabilityPolicy] = kwargs.pop("cls", None)
1311
-
1312
- _request = build_delete_immutability_policy_request(
1313
- resource_group_name=resource_group_name,
1314
- account_name=account_name,
1315
- container_name=container_name,
1316
- immutability_policy_name=immutability_policy_name,
1317
- subscription_id=self._config.subscription_id,
1318
- if_match=if_match,
1319
- api_version=api_version,
1320
- headers=_headers,
1321
- params=_params,
1322
- )
1323
- _request = _convert_request(_request)
1324
- _request.url = self._client.format_url(_request.url)
1325
-
1326
- _stream = False
1327
- pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access
1328
- _request, stream=_stream, **kwargs
1329
- )
1330
-
1331
- response = pipeline_response.http_response
1332
-
1333
- if response.status_code not in [200]:
1334
- map_error(status_code=response.status_code, response=response, error_map=error_map)
1335
- raise HttpResponseError(response=response, error_format=ARMErrorFormat)
1336
-
1337
- response_headers = {}
1338
- response_headers["ETag"] = self._deserialize("str", response.headers.get("ETag"))
1339
-
1340
- deserialized = self._deserialize("ImmutabilityPolicy", pipeline_response)
1341
-
1342
- if cls:
1343
- return cls(pipeline_response, deserialized, response_headers) # type: ignore
1344
-
1345
- return deserialized # type: ignore
1346
-
1347
- @distributed_trace_async
1348
- async def lock_immutability_policy(
1349
- self, resource_group_name: str, account_name: str, container_name: str, if_match: str, **kwargs: Any
1350
- ) -> _models.ImmutabilityPolicy:
1351
- """Sets the ImmutabilityPolicy to Locked state. The only action allowed on a Locked policy is
1352
- ExtendImmutabilityPolicy action. ETag in If-Match is required for this operation.
1353
-
1354
- :param resource_group_name: The name of the resource group within the user's subscription. The
1355
- name is case insensitive. Required.
1356
- :type resource_group_name: str
1357
- :param account_name: The name of the storage account within the specified resource group.
1358
- Storage account names must be between 3 and 24 characters in length and use numbers and
1359
- lower-case letters only. Required.
1360
- :type account_name: str
1361
- :param container_name: The name of the blob container within the specified storage account.
1362
- Blob container names must be between 3 and 63 characters in length and use numbers, lower-case
1363
- letters and dash (-) only. Every dash (-) character must be immediately preceded and followed
1364
- by a letter or number. Required.
1365
- :type container_name: str
1366
- :param if_match: The entity state (ETag) version of the immutability policy to update. A value
1367
- of "*" can be used to apply the operation only if the immutability policy already exists. If
1368
- omitted, this operation will always be applied. Required.
1369
- :type if_match: str
1370
- :return: ImmutabilityPolicy or the result of cls(response)
1371
- :rtype: ~azure.mgmt.storage.v2020_08_01_preview.models.ImmutabilityPolicy
1372
- :raises ~azure.core.exceptions.HttpResponseError:
1373
- """
1374
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
1375
- 401: ClientAuthenticationError,
1376
- 404: ResourceNotFoundError,
1377
- 409: ResourceExistsError,
1378
- 304: ResourceNotModifiedError,
1379
- }
1380
- error_map.update(kwargs.pop("error_map", {}) or {})
1381
-
1382
- _headers = kwargs.pop("headers", {}) or {}
1383
- _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
1384
-
1385
- api_version: str = kwargs.pop(
1386
- "api_version", _params.pop("api-version", self._api_version or "2020-08-01-preview")
1387
- )
1388
- cls: ClsType[_models.ImmutabilityPolicy] = kwargs.pop("cls", None)
1389
-
1390
- _request = build_lock_immutability_policy_request(
1391
- resource_group_name=resource_group_name,
1392
- account_name=account_name,
1393
- container_name=container_name,
1394
- subscription_id=self._config.subscription_id,
1395
- if_match=if_match,
1396
- api_version=api_version,
1397
- headers=_headers,
1398
- params=_params,
1399
- )
1400
- _request = _convert_request(_request)
1401
- _request.url = self._client.format_url(_request.url)
1402
-
1403
- _stream = False
1404
- pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access
1405
- _request, stream=_stream, **kwargs
1406
- )
1407
-
1408
- response = pipeline_response.http_response
1409
-
1410
- if response.status_code not in [200]:
1411
- map_error(status_code=response.status_code, response=response, error_map=error_map)
1412
- raise HttpResponseError(response=response, error_format=ARMErrorFormat)
1413
-
1414
- response_headers = {}
1415
- response_headers["ETag"] = self._deserialize("str", response.headers.get("ETag"))
1416
-
1417
- deserialized = self._deserialize("ImmutabilityPolicy", pipeline_response)
1418
-
1419
- if cls:
1420
- return cls(pipeline_response, deserialized, response_headers) # type: ignore
1421
-
1422
- return deserialized # type: ignore
1423
-
1424
- @overload
1425
- async def extend_immutability_policy(
1426
- self,
1427
- resource_group_name: str,
1428
- account_name: str,
1429
- container_name: str,
1430
- if_match: str,
1431
- parameters: Optional[_models.ImmutabilityPolicy] = None,
1432
- *,
1433
- content_type: str = "application/json",
1434
- **kwargs: Any
1435
- ) -> _models.ImmutabilityPolicy:
1436
- """Extends the immutabilityPeriodSinceCreationInDays of a locked immutabilityPolicy. The only
1437
- action allowed on a Locked policy will be this action. ETag in If-Match is required for this
1438
- operation.
1439
-
1440
- :param resource_group_name: The name of the resource group within the user's subscription. The
1441
- name is case insensitive. Required.
1442
- :type resource_group_name: str
1443
- :param account_name: The name of the storage account within the specified resource group.
1444
- Storage account names must be between 3 and 24 characters in length and use numbers and
1445
- lower-case letters only. Required.
1446
- :type account_name: str
1447
- :param container_name: The name of the blob container within the specified storage account.
1448
- Blob container names must be between 3 and 63 characters in length and use numbers, lower-case
1449
- letters and dash (-) only. Every dash (-) character must be immediately preceded and followed
1450
- by a letter or number. Required.
1451
- :type container_name: str
1452
- :param if_match: The entity state (ETag) version of the immutability policy to update. A value
1453
- of "*" can be used to apply the operation only if the immutability policy already exists. If
1454
- omitted, this operation will always be applied. Required.
1455
- :type if_match: str
1456
- :param parameters: The ImmutabilityPolicy Properties that will be extended for a blob
1457
- container. Default value is None.
1458
- :type parameters: ~azure.mgmt.storage.v2020_08_01_preview.models.ImmutabilityPolicy
1459
- :keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
1460
- Default value is "application/json".
1461
- :paramtype content_type: str
1462
- :return: ImmutabilityPolicy or the result of cls(response)
1463
- :rtype: ~azure.mgmt.storage.v2020_08_01_preview.models.ImmutabilityPolicy
1464
- :raises ~azure.core.exceptions.HttpResponseError:
1465
- """
1466
-
1467
- @overload
1468
- async def extend_immutability_policy(
1469
- self,
1470
- resource_group_name: str,
1471
- account_name: str,
1472
- container_name: str,
1473
- if_match: str,
1474
- parameters: Optional[IO[bytes]] = None,
1475
- *,
1476
- content_type: str = "application/json",
1477
- **kwargs: Any
1478
- ) -> _models.ImmutabilityPolicy:
1479
- """Extends the immutabilityPeriodSinceCreationInDays of a locked immutabilityPolicy. The only
1480
- action allowed on a Locked policy will be this action. ETag in If-Match is required for this
1481
- operation.
1482
-
1483
- :param resource_group_name: The name of the resource group within the user's subscription. The
1484
- name is case insensitive. Required.
1485
- :type resource_group_name: str
1486
- :param account_name: The name of the storage account within the specified resource group.
1487
- Storage account names must be between 3 and 24 characters in length and use numbers and
1488
- lower-case letters only. Required.
1489
- :type account_name: str
1490
- :param container_name: The name of the blob container within the specified storage account.
1491
- Blob container names must be between 3 and 63 characters in length and use numbers, lower-case
1492
- letters and dash (-) only. Every dash (-) character must be immediately preceded and followed
1493
- by a letter or number. Required.
1494
- :type container_name: str
1495
- :param if_match: The entity state (ETag) version of the immutability policy to update. A value
1496
- of "*" can be used to apply the operation only if the immutability policy already exists. If
1497
- omitted, this operation will always be applied. Required.
1498
- :type if_match: str
1499
- :param parameters: The ImmutabilityPolicy Properties that will be extended for a blob
1500
- container. Default value is None.
1501
- :type parameters: IO[bytes]
1502
- :keyword content_type: Body Parameter content-type. Content type parameter for binary body.
1503
- Default value is "application/json".
1504
- :paramtype content_type: str
1505
- :return: ImmutabilityPolicy or the result of cls(response)
1506
- :rtype: ~azure.mgmt.storage.v2020_08_01_preview.models.ImmutabilityPolicy
1507
- :raises ~azure.core.exceptions.HttpResponseError:
1508
- """
1509
-
1510
- @distributed_trace_async
1511
- async def extend_immutability_policy(
1512
- self,
1513
- resource_group_name: str,
1514
- account_name: str,
1515
- container_name: str,
1516
- if_match: str,
1517
- parameters: Optional[Union[_models.ImmutabilityPolicy, IO[bytes]]] = None,
1518
- **kwargs: Any
1519
- ) -> _models.ImmutabilityPolicy:
1520
- """Extends the immutabilityPeriodSinceCreationInDays of a locked immutabilityPolicy. The only
1521
- action allowed on a Locked policy will be this action. ETag in If-Match is required for this
1522
- operation.
1523
-
1524
- :param resource_group_name: The name of the resource group within the user's subscription. The
1525
- name is case insensitive. Required.
1526
- :type resource_group_name: str
1527
- :param account_name: The name of the storage account within the specified resource group.
1528
- Storage account names must be between 3 and 24 characters in length and use numbers and
1529
- lower-case letters only. Required.
1530
- :type account_name: str
1531
- :param container_name: The name of the blob container within the specified storage account.
1532
- Blob container names must be between 3 and 63 characters in length and use numbers, lower-case
1533
- letters and dash (-) only. Every dash (-) character must be immediately preceded and followed
1534
- by a letter or number. Required.
1535
- :type container_name: str
1536
- :param if_match: The entity state (ETag) version of the immutability policy to update. A value
1537
- of "*" can be used to apply the operation only if the immutability policy already exists. If
1538
- omitted, this operation will always be applied. Required.
1539
- :type if_match: str
1540
- :param parameters: The ImmutabilityPolicy Properties that will be extended for a blob
1541
- container. Is either a ImmutabilityPolicy type or a IO[bytes] type. Default value is None.
1542
- :type parameters: ~azure.mgmt.storage.v2020_08_01_preview.models.ImmutabilityPolicy or
1543
- IO[bytes]
1544
- :return: ImmutabilityPolicy or the result of cls(response)
1545
- :rtype: ~azure.mgmt.storage.v2020_08_01_preview.models.ImmutabilityPolicy
1546
- :raises ~azure.core.exceptions.HttpResponseError:
1547
- """
1548
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
1549
- 401: ClientAuthenticationError,
1550
- 404: ResourceNotFoundError,
1551
- 409: ResourceExistsError,
1552
- 304: ResourceNotModifiedError,
1553
- }
1554
- error_map.update(kwargs.pop("error_map", {}) or {})
1555
-
1556
- _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
1557
- _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
1558
-
1559
- api_version: str = kwargs.pop(
1560
- "api_version", _params.pop("api-version", self._api_version or "2020-08-01-preview")
1561
- )
1562
- content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
1563
- cls: ClsType[_models.ImmutabilityPolicy] = kwargs.pop("cls", None)
1564
-
1565
- content_type = content_type or "application/json"
1566
- _json = None
1567
- _content = None
1568
- if isinstance(parameters, (IOBase, bytes)):
1569
- _content = parameters
1570
- else:
1571
- if parameters is not None:
1572
- _json = self._serialize.body(parameters, "ImmutabilityPolicy")
1573
- else:
1574
- _json = None
1575
-
1576
- _request = build_extend_immutability_policy_request(
1577
- resource_group_name=resource_group_name,
1578
- account_name=account_name,
1579
- container_name=container_name,
1580
- subscription_id=self._config.subscription_id,
1581
- if_match=if_match,
1582
- api_version=api_version,
1583
- content_type=content_type,
1584
- json=_json,
1585
- content=_content,
1586
- headers=_headers,
1587
- params=_params,
1588
- )
1589
- _request = _convert_request(_request)
1590
- _request.url = self._client.format_url(_request.url)
1591
-
1592
- _stream = False
1593
- pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access
1594
- _request, stream=_stream, **kwargs
1595
- )
1596
-
1597
- response = pipeline_response.http_response
1598
-
1599
- if response.status_code not in [200]:
1600
- map_error(status_code=response.status_code, response=response, error_map=error_map)
1601
- raise HttpResponseError(response=response, error_format=ARMErrorFormat)
1602
-
1603
- response_headers = {}
1604
- response_headers["ETag"] = self._deserialize("str", response.headers.get("ETag"))
1605
-
1606
- deserialized = self._deserialize("ImmutabilityPolicy", pipeline_response)
1607
-
1608
- if cls:
1609
- return cls(pipeline_response, deserialized, response_headers) # type: ignore
1610
-
1611
- return deserialized # type: ignore
1612
-
1613
- @overload
1614
- async def lease(
1615
- self,
1616
- resource_group_name: str,
1617
- account_name: str,
1618
- container_name: str,
1619
- parameters: Optional[_models.LeaseContainerRequest] = None,
1620
- *,
1621
- content_type: str = "application/json",
1622
- **kwargs: Any
1623
- ) -> _models.LeaseContainerResponse:
1624
- """The Lease Container operation establishes and manages a lock on a container for delete
1625
- operations. The lock duration can be 15 to 60 seconds, or can be infinite.
1626
-
1627
- :param resource_group_name: The name of the resource group within the user's subscription. The
1628
- name is case insensitive. Required.
1629
- :type resource_group_name: str
1630
- :param account_name: The name of the storage account within the specified resource group.
1631
- Storage account names must be between 3 and 24 characters in length and use numbers and
1632
- lower-case letters only. Required.
1633
- :type account_name: str
1634
- :param container_name: The name of the blob container within the specified storage account.
1635
- Blob container names must be between 3 and 63 characters in length and use numbers, lower-case
1636
- letters and dash (-) only. Every dash (-) character must be immediately preceded and followed
1637
- by a letter or number. Required.
1638
- :type container_name: str
1639
- :param parameters: Lease Container request body. Default value is None.
1640
- :type parameters: ~azure.mgmt.storage.v2020_08_01_preview.models.LeaseContainerRequest
1641
- :keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
1642
- Default value is "application/json".
1643
- :paramtype content_type: str
1644
- :return: LeaseContainerResponse or the result of cls(response)
1645
- :rtype: ~azure.mgmt.storage.v2020_08_01_preview.models.LeaseContainerResponse
1646
- :raises ~azure.core.exceptions.HttpResponseError:
1647
- """
1648
-
1649
- @overload
1650
- async def lease(
1651
- self,
1652
- resource_group_name: str,
1653
- account_name: str,
1654
- container_name: str,
1655
- parameters: Optional[IO[bytes]] = None,
1656
- *,
1657
- content_type: str = "application/json",
1658
- **kwargs: Any
1659
- ) -> _models.LeaseContainerResponse:
1660
- """The Lease Container operation establishes and manages a lock on a container for delete
1661
- operations. The lock duration can be 15 to 60 seconds, or can be infinite.
1662
-
1663
- :param resource_group_name: The name of the resource group within the user's subscription. The
1664
- name is case insensitive. Required.
1665
- :type resource_group_name: str
1666
- :param account_name: The name of the storage account within the specified resource group.
1667
- Storage account names must be between 3 and 24 characters in length and use numbers and
1668
- lower-case letters only. Required.
1669
- :type account_name: str
1670
- :param container_name: The name of the blob container within the specified storage account.
1671
- Blob container names must be between 3 and 63 characters in length and use numbers, lower-case
1672
- letters and dash (-) only. Every dash (-) character must be immediately preceded and followed
1673
- by a letter or number. Required.
1674
- :type container_name: str
1675
- :param parameters: Lease Container request body. Default value is None.
1676
- :type parameters: IO[bytes]
1677
- :keyword content_type: Body Parameter content-type. Content type parameter for binary body.
1678
- Default value is "application/json".
1679
- :paramtype content_type: str
1680
- :return: LeaseContainerResponse or the result of cls(response)
1681
- :rtype: ~azure.mgmt.storage.v2020_08_01_preview.models.LeaseContainerResponse
1682
- :raises ~azure.core.exceptions.HttpResponseError:
1683
- """
1684
-
1685
- @distributed_trace_async
1686
- async def lease(
1687
- self,
1688
- resource_group_name: str,
1689
- account_name: str,
1690
- container_name: str,
1691
- parameters: Optional[Union[_models.LeaseContainerRequest, IO[bytes]]] = None,
1692
- **kwargs: Any
1693
- ) -> _models.LeaseContainerResponse:
1694
- """The Lease Container operation establishes and manages a lock on a container for delete
1695
- operations. The lock duration can be 15 to 60 seconds, or can be infinite.
1696
-
1697
- :param resource_group_name: The name of the resource group within the user's subscription. The
1698
- name is case insensitive. Required.
1699
- :type resource_group_name: str
1700
- :param account_name: The name of the storage account within the specified resource group.
1701
- Storage account names must be between 3 and 24 characters in length and use numbers and
1702
- lower-case letters only. Required.
1703
- :type account_name: str
1704
- :param container_name: The name of the blob container within the specified storage account.
1705
- Blob container names must be between 3 and 63 characters in length and use numbers, lower-case
1706
- letters and dash (-) only. Every dash (-) character must be immediately preceded and followed
1707
- by a letter or number. Required.
1708
- :type container_name: str
1709
- :param parameters: Lease Container request body. Is either a LeaseContainerRequest type or a
1710
- IO[bytes] type. Default value is None.
1711
- :type parameters: ~azure.mgmt.storage.v2020_08_01_preview.models.LeaseContainerRequest or
1712
- IO[bytes]
1713
- :return: LeaseContainerResponse or the result of cls(response)
1714
- :rtype: ~azure.mgmt.storage.v2020_08_01_preview.models.LeaseContainerResponse
1715
- :raises ~azure.core.exceptions.HttpResponseError:
1716
- """
1717
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
1718
- 401: ClientAuthenticationError,
1719
- 404: ResourceNotFoundError,
1720
- 409: ResourceExistsError,
1721
- 304: ResourceNotModifiedError,
1722
- }
1723
- error_map.update(kwargs.pop("error_map", {}) or {})
1724
-
1725
- _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
1726
- _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
1727
-
1728
- api_version: str = kwargs.pop(
1729
- "api_version", _params.pop("api-version", self._api_version or "2020-08-01-preview")
1730
- )
1731
- content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
1732
- cls: ClsType[_models.LeaseContainerResponse] = kwargs.pop("cls", None)
1733
-
1734
- content_type = content_type or "application/json"
1735
- _json = None
1736
- _content = None
1737
- if isinstance(parameters, (IOBase, bytes)):
1738
- _content = parameters
1739
- else:
1740
- if parameters is not None:
1741
- _json = self._serialize.body(parameters, "LeaseContainerRequest")
1742
- else:
1743
- _json = None
1744
-
1745
- _request = build_lease_request(
1746
- resource_group_name=resource_group_name,
1747
- account_name=account_name,
1748
- container_name=container_name,
1749
- subscription_id=self._config.subscription_id,
1750
- api_version=api_version,
1751
- content_type=content_type,
1752
- json=_json,
1753
- content=_content,
1754
- headers=_headers,
1755
- params=_params,
1756
- )
1757
- _request = _convert_request(_request)
1758
- _request.url = self._client.format_url(_request.url)
1759
-
1760
- _stream = False
1761
- pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access
1762
- _request, stream=_stream, **kwargs
1763
- )
1764
-
1765
- response = pipeline_response.http_response
1766
-
1767
- if response.status_code not in [200]:
1768
- map_error(status_code=response.status_code, response=response, error_map=error_map)
1769
- raise HttpResponseError(response=response, error_format=ARMErrorFormat)
1770
-
1771
- deserialized = self._deserialize("LeaseContainerResponse", pipeline_response)
1772
-
1773
- if cls:
1774
- return cls(pipeline_response, deserialized, {}) # type: ignore
1775
-
1776
- return deserialized # type: ignore