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