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,2276 +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", "2020-08-01-preview"))
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", "2020-08-01-preview"))
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", "2020-08-01-preview"))
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", "2020-08-01-preview"))
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", "2020-08-01-preview"))
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", "2020-08-01-preview"))
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", "2020-08-01-preview"))
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.Enum28],
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", "2020-08-01-preview"))
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.Enum28],
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", "2020-08-01-preview"))
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.Enum28],
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", "2020-08-01-preview"))
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", "2020-08-01-preview"))
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", "2020-08-01-preview"))
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", "2020-08-01-preview"))
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.v2020_08_01_preview.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.v2020_08_01_preview.models.ListContainersInclude
606
- :return: An iterator like instance of either ListContainerItem or the result of cls(response)
607
- :rtype:
608
- ~azure.core.paging.ItemPaged[~azure.mgmt.storage.v2020_08_01_preview.models.ListContainerItem]
609
- :raises ~azure.core.exceptions.HttpResponseError:
610
- """
611
- _headers = kwargs.pop("headers", {}) or {}
612
- _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
613
-
614
- api_version: str = kwargs.pop(
615
- "api_version", _params.pop("api-version", self._api_version or "2020-08-01-preview")
616
- )
617
- cls: ClsType[_models.ListContainerItems] = kwargs.pop("cls", None)
618
-
619
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
620
- 401: ClientAuthenticationError,
621
- 404: ResourceNotFoundError,
622
- 409: ResourceExistsError,
623
- 304: ResourceNotModifiedError,
624
- }
625
- error_map.update(kwargs.pop("error_map", {}) or {})
626
-
627
- def prepare_request(next_link=None):
628
- if not next_link:
629
-
630
- _request = build_list_request(
631
- resource_group_name=resource_group_name,
632
- account_name=account_name,
633
- subscription_id=self._config.subscription_id,
634
- maxpagesize=maxpagesize,
635
- filter=filter,
636
- include=include,
637
- api_version=api_version,
638
- headers=_headers,
639
- params=_params,
640
- )
641
- _request = _convert_request(_request)
642
- _request.url = self._client.format_url(_request.url)
643
-
644
- else:
645
- # make call to next link with the client's api-version
646
- _parsed_next_link = urllib.parse.urlparse(next_link)
647
- _next_request_params = case_insensitive_dict(
648
- {
649
- key: [urllib.parse.quote(v) for v in value]
650
- for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items()
651
- }
652
- )
653
- _next_request_params["api-version"] = self._api_version
654
- _request = HttpRequest(
655
- "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params
656
- )
657
- _request = _convert_request(_request)
658
- _request.url = self._client.format_url(_request.url)
659
- _request.method = "GET"
660
- return _request
661
-
662
- def extract_data(pipeline_response):
663
- deserialized = self._deserialize("ListContainerItems", pipeline_response)
664
- list_of_elem = deserialized.value
665
- if cls:
666
- list_of_elem = cls(list_of_elem) # type: ignore
667
- return deserialized.next_link or None, iter(list_of_elem)
668
-
669
- def get_next(next_link=None):
670
- _request = prepare_request(next_link)
671
-
672
- _stream = False
673
- pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access
674
- _request, stream=_stream, **kwargs
675
- )
676
- response = pipeline_response.http_response
677
-
678
- if response.status_code not in [200]:
679
- map_error(status_code=response.status_code, response=response, error_map=error_map)
680
- raise HttpResponseError(response=response, error_format=ARMErrorFormat)
681
-
682
- return pipeline_response
683
-
684
- return ItemPaged(get_next, extract_data)
685
-
686
- @overload
687
- def create(
688
- self,
689
- resource_group_name: str,
690
- account_name: str,
691
- container_name: str,
692
- blob_container: _models.BlobContainer,
693
- *,
694
- content_type: str = "application/json",
695
- **kwargs: Any
696
- ) -> _models.BlobContainer:
697
- """Creates a new container under the specified account as described by request body. The container
698
- resource includes metadata and properties for that container. It does not include a list of the
699
- blobs contained by the container.
700
-
701
- :param resource_group_name: The name of the resource group within the user's subscription. The
702
- name is case insensitive. Required.
703
- :type resource_group_name: str
704
- :param account_name: The name of the storage account within the specified resource group.
705
- Storage account names must be between 3 and 24 characters in length and use numbers and
706
- lower-case letters only. Required.
707
- :type account_name: str
708
- :param container_name: The name of the blob container within the specified storage account.
709
- Blob container names must be between 3 and 63 characters in length and use numbers, lower-case
710
- letters and dash (-) only. Every dash (-) character must be immediately preceded and followed
711
- by a letter or number. Required.
712
- :type container_name: str
713
- :param blob_container: Properties of the blob container to create. Required.
714
- :type blob_container: ~azure.mgmt.storage.v2020_08_01_preview.models.BlobContainer
715
- :keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
716
- Default value is "application/json".
717
- :paramtype content_type: str
718
- :return: BlobContainer or the result of cls(response)
719
- :rtype: ~azure.mgmt.storage.v2020_08_01_preview.models.BlobContainer
720
- :raises ~azure.core.exceptions.HttpResponseError:
721
- """
722
-
723
- @overload
724
- def create(
725
- self,
726
- resource_group_name: str,
727
- account_name: str,
728
- container_name: str,
729
- blob_container: IO[bytes],
730
- *,
731
- content_type: str = "application/json",
732
- **kwargs: Any
733
- ) -> _models.BlobContainer:
734
- """Creates a new container under the specified account as described by request body. The container
735
- resource includes metadata and properties for that container. It does not include a list of the
736
- blobs contained by the container.
737
-
738
- :param resource_group_name: The name of the resource group within the user's subscription. The
739
- name is case insensitive. Required.
740
- :type resource_group_name: str
741
- :param account_name: The name of the storage account within the specified resource group.
742
- Storage account names must be between 3 and 24 characters in length and use numbers and
743
- lower-case letters only. Required.
744
- :type account_name: str
745
- :param container_name: The name of the blob container within the specified storage account.
746
- Blob container names must be between 3 and 63 characters in length and use numbers, lower-case
747
- letters and dash (-) only. Every dash (-) character must be immediately preceded and followed
748
- by a letter or number. Required.
749
- :type container_name: str
750
- :param blob_container: Properties of the blob container to create. Required.
751
- :type blob_container: IO[bytes]
752
- :keyword content_type: Body Parameter content-type. Content type parameter for binary body.
753
- Default value is "application/json".
754
- :paramtype content_type: str
755
- :return: BlobContainer or the result of cls(response)
756
- :rtype: ~azure.mgmt.storage.v2020_08_01_preview.models.BlobContainer
757
- :raises ~azure.core.exceptions.HttpResponseError:
758
- """
759
-
760
- @distributed_trace
761
- def create(
762
- self,
763
- resource_group_name: str,
764
- account_name: str,
765
- container_name: str,
766
- blob_container: Union[_models.BlobContainer, IO[bytes]],
767
- **kwargs: Any
768
- ) -> _models.BlobContainer:
769
- """Creates a new container under the specified account as described by request body. The container
770
- resource includes metadata and properties for that container. It does not include a list of the
771
- blobs contained by the container.
772
-
773
- :param resource_group_name: The name of the resource group within the user's subscription. The
774
- name is case insensitive. Required.
775
- :type resource_group_name: str
776
- :param account_name: The name of the storage account within the specified resource group.
777
- Storage account names must be between 3 and 24 characters in length and use numbers and
778
- lower-case letters only. Required.
779
- :type account_name: str
780
- :param container_name: The name of the blob container within the specified storage account.
781
- Blob container names must be between 3 and 63 characters in length and use numbers, lower-case
782
- letters and dash (-) only. Every dash (-) character must be immediately preceded and followed
783
- by a letter or number. Required.
784
- :type container_name: str
785
- :param blob_container: Properties of the blob container to create. Is either a BlobContainer
786
- type or a IO[bytes] type. Required.
787
- :type blob_container: ~azure.mgmt.storage.v2020_08_01_preview.models.BlobContainer or IO[bytes]
788
- :return: BlobContainer or the result of cls(response)
789
- :rtype: ~azure.mgmt.storage.v2020_08_01_preview.models.BlobContainer
790
- :raises ~azure.core.exceptions.HttpResponseError:
791
- """
792
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
793
- 401: ClientAuthenticationError,
794
- 404: ResourceNotFoundError,
795
- 409: ResourceExistsError,
796
- 304: ResourceNotModifiedError,
797
- }
798
- error_map.update(kwargs.pop("error_map", {}) or {})
799
-
800
- _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
801
- _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
802
-
803
- api_version: str = kwargs.pop(
804
- "api_version", _params.pop("api-version", self._api_version or "2020-08-01-preview")
805
- )
806
- content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
807
- cls: ClsType[_models.BlobContainer] = kwargs.pop("cls", None)
808
-
809
- content_type = content_type or "application/json"
810
- _json = None
811
- _content = None
812
- if isinstance(blob_container, (IOBase, bytes)):
813
- _content = blob_container
814
- else:
815
- _json = self._serialize.body(blob_container, "BlobContainer")
816
-
817
- _request = build_create_request(
818
- resource_group_name=resource_group_name,
819
- account_name=account_name,
820
- container_name=container_name,
821
- subscription_id=self._config.subscription_id,
822
- api_version=api_version,
823
- content_type=content_type,
824
- json=_json,
825
- content=_content,
826
- headers=_headers,
827
- params=_params,
828
- )
829
- _request = _convert_request(_request)
830
- _request.url = self._client.format_url(_request.url)
831
-
832
- _stream = False
833
- pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access
834
- _request, stream=_stream, **kwargs
835
- )
836
-
837
- response = pipeline_response.http_response
838
-
839
- if response.status_code not in [200, 201]:
840
- map_error(status_code=response.status_code, response=response, error_map=error_map)
841
- raise HttpResponseError(response=response, error_format=ARMErrorFormat)
842
-
843
- if response.status_code == 200:
844
- deserialized = self._deserialize("BlobContainer", pipeline_response)
845
-
846
- if response.status_code == 201:
847
- deserialized = self._deserialize("BlobContainer", pipeline_response)
848
-
849
- if cls:
850
- return cls(pipeline_response, deserialized, {}) # type: ignore
851
-
852
- return deserialized # type: ignore
853
-
854
- @overload
855
- def update(
856
- self,
857
- resource_group_name: str,
858
- account_name: str,
859
- container_name: str,
860
- blob_container: _models.BlobContainer,
861
- *,
862
- content_type: str = "application/json",
863
- **kwargs: Any
864
- ) -> _models.BlobContainer:
865
- """Updates container properties as specified in request body. Properties not mentioned in the
866
- request will be unchanged. Update fails if the specified container doesn't already exist.
867
-
868
- :param resource_group_name: The name of the resource group within the user's subscription. The
869
- name is case insensitive. Required.
870
- :type resource_group_name: str
871
- :param account_name: The name of the storage account within the specified resource group.
872
- Storage account names must be between 3 and 24 characters in length and use numbers and
873
- lower-case letters only. Required.
874
- :type account_name: str
875
- :param container_name: The name of the blob container within the specified storage account.
876
- Blob container names must be between 3 and 63 characters in length and use numbers, lower-case
877
- letters and dash (-) only. Every dash (-) character must be immediately preceded and followed
878
- by a letter or number. Required.
879
- :type container_name: str
880
- :param blob_container: Properties to update for the blob container. Required.
881
- :type blob_container: ~azure.mgmt.storage.v2020_08_01_preview.models.BlobContainer
882
- :keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
883
- Default value is "application/json".
884
- :paramtype content_type: str
885
- :return: BlobContainer or the result of cls(response)
886
- :rtype: ~azure.mgmt.storage.v2020_08_01_preview.models.BlobContainer
887
- :raises ~azure.core.exceptions.HttpResponseError:
888
- """
889
-
890
- @overload
891
- def update(
892
- self,
893
- resource_group_name: str,
894
- account_name: str,
895
- container_name: str,
896
- blob_container: IO[bytes],
897
- *,
898
- content_type: str = "application/json",
899
- **kwargs: Any
900
- ) -> _models.BlobContainer:
901
- """Updates container properties as specified in request body. Properties not mentioned in the
902
- request will be unchanged. Update fails if the specified container doesn't already exist.
903
-
904
- :param resource_group_name: The name of the resource group within the user's subscription. The
905
- name is case insensitive. Required.
906
- :type resource_group_name: str
907
- :param account_name: The name of the storage account within the specified resource group.
908
- Storage account names must be between 3 and 24 characters in length and use numbers and
909
- lower-case letters only. Required.
910
- :type account_name: str
911
- :param container_name: The name of the blob container within the specified storage account.
912
- Blob container names must be between 3 and 63 characters in length and use numbers, lower-case
913
- letters and dash (-) only. Every dash (-) character must be immediately preceded and followed
914
- by a letter or number. Required.
915
- :type container_name: str
916
- :param blob_container: Properties to update for the blob container. Required.
917
- :type blob_container: IO[bytes]
918
- :keyword content_type: Body Parameter content-type. Content type parameter for binary body.
919
- Default value is "application/json".
920
- :paramtype content_type: str
921
- :return: BlobContainer or the result of cls(response)
922
- :rtype: ~azure.mgmt.storage.v2020_08_01_preview.models.BlobContainer
923
- :raises ~azure.core.exceptions.HttpResponseError:
924
- """
925
-
926
- @distributed_trace
927
- def update(
928
- self,
929
- resource_group_name: str,
930
- account_name: str,
931
- container_name: str,
932
- blob_container: Union[_models.BlobContainer, IO[bytes]],
933
- **kwargs: Any
934
- ) -> _models.BlobContainer:
935
- """Updates container properties as specified in request body. Properties not mentioned in the
936
- request will be unchanged. Update fails if the specified container doesn't already exist.
937
-
938
- :param resource_group_name: The name of the resource group within the user's subscription. The
939
- name is case insensitive. Required.
940
- :type resource_group_name: str
941
- :param account_name: The name of the storage account within the specified resource group.
942
- Storage account names must be between 3 and 24 characters in length and use numbers and
943
- lower-case letters only. Required.
944
- :type account_name: str
945
- :param container_name: The name of the blob container within the specified storage account.
946
- Blob container names must be between 3 and 63 characters in length and use numbers, lower-case
947
- letters and dash (-) only. Every dash (-) character must be immediately preceded and followed
948
- by a letter or number. Required.
949
- :type container_name: str
950
- :param blob_container: Properties to update for the blob container. Is either a BlobContainer
951
- type or a IO[bytes] type. Required.
952
- :type blob_container: ~azure.mgmt.storage.v2020_08_01_preview.models.BlobContainer or IO[bytes]
953
- :return: BlobContainer or the result of cls(response)
954
- :rtype: ~azure.mgmt.storage.v2020_08_01_preview.models.BlobContainer
955
- :raises ~azure.core.exceptions.HttpResponseError:
956
- """
957
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
958
- 401: ClientAuthenticationError,
959
- 404: ResourceNotFoundError,
960
- 409: ResourceExistsError,
961
- 304: ResourceNotModifiedError,
962
- }
963
- error_map.update(kwargs.pop("error_map", {}) or {})
964
-
965
- _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
966
- _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
967
-
968
- api_version: str = kwargs.pop(
969
- "api_version", _params.pop("api-version", self._api_version or "2020-08-01-preview")
970
- )
971
- content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
972
- cls: ClsType[_models.BlobContainer] = kwargs.pop("cls", None)
973
-
974
- content_type = content_type or "application/json"
975
- _json = None
976
- _content = None
977
- if isinstance(blob_container, (IOBase, bytes)):
978
- _content = blob_container
979
- else:
980
- _json = self._serialize.body(blob_container, "BlobContainer")
981
-
982
- _request = build_update_request(
983
- resource_group_name=resource_group_name,
984
- account_name=account_name,
985
- container_name=container_name,
986
- subscription_id=self._config.subscription_id,
987
- api_version=api_version,
988
- content_type=content_type,
989
- json=_json,
990
- content=_content,
991
- headers=_headers,
992
- params=_params,
993
- )
994
- _request = _convert_request(_request)
995
- _request.url = self._client.format_url(_request.url)
996
-
997
- _stream = False
998
- pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access
999
- _request, stream=_stream, **kwargs
1000
- )
1001
-
1002
- response = pipeline_response.http_response
1003
-
1004
- if response.status_code not in [200]:
1005
- map_error(status_code=response.status_code, response=response, error_map=error_map)
1006
- raise HttpResponseError(response=response, error_format=ARMErrorFormat)
1007
-
1008
- deserialized = self._deserialize("BlobContainer", pipeline_response)
1009
-
1010
- if cls:
1011
- return cls(pipeline_response, deserialized, {}) # type: ignore
1012
-
1013
- return deserialized # type: ignore
1014
-
1015
- @distributed_trace
1016
- def get(
1017
- self, resource_group_name: str, account_name: str, container_name: str, **kwargs: Any
1018
- ) -> _models.BlobContainer:
1019
- """Gets properties of a specified container.
1020
-
1021
- :param resource_group_name: The name of the resource group within the user's subscription. The
1022
- name is case insensitive. Required.
1023
- :type resource_group_name: str
1024
- :param account_name: The name of the storage account within the specified resource group.
1025
- Storage account names must be between 3 and 24 characters in length and use numbers and
1026
- lower-case letters only. Required.
1027
- :type account_name: str
1028
- :param container_name: The name of the blob container within the specified storage account.
1029
- Blob container names must be between 3 and 63 characters in length and use numbers, lower-case
1030
- letters and dash (-) only. Every dash (-) character must be immediately preceded and followed
1031
- by a letter or number. Required.
1032
- :type container_name: str
1033
- :return: BlobContainer or the result of cls(response)
1034
- :rtype: ~azure.mgmt.storage.v2020_08_01_preview.models.BlobContainer
1035
- :raises ~azure.core.exceptions.HttpResponseError:
1036
- """
1037
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
1038
- 401: ClientAuthenticationError,
1039
- 404: ResourceNotFoundError,
1040
- 409: ResourceExistsError,
1041
- 304: ResourceNotModifiedError,
1042
- }
1043
- error_map.update(kwargs.pop("error_map", {}) or {})
1044
-
1045
- _headers = kwargs.pop("headers", {}) or {}
1046
- _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
1047
-
1048
- api_version: str = kwargs.pop(
1049
- "api_version", _params.pop("api-version", self._api_version or "2020-08-01-preview")
1050
- )
1051
- cls: ClsType[_models.BlobContainer] = kwargs.pop("cls", None)
1052
-
1053
- _request = build_get_request(
1054
- resource_group_name=resource_group_name,
1055
- account_name=account_name,
1056
- container_name=container_name,
1057
- subscription_id=self._config.subscription_id,
1058
- api_version=api_version,
1059
- headers=_headers,
1060
- params=_params,
1061
- )
1062
- _request = _convert_request(_request)
1063
- _request.url = self._client.format_url(_request.url)
1064
-
1065
- _stream = False
1066
- pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access
1067
- _request, stream=_stream, **kwargs
1068
- )
1069
-
1070
- response = pipeline_response.http_response
1071
-
1072
- if response.status_code not in [200]:
1073
- map_error(status_code=response.status_code, response=response, error_map=error_map)
1074
- raise HttpResponseError(response=response, error_format=ARMErrorFormat)
1075
-
1076
- deserialized = self._deserialize("BlobContainer", pipeline_response)
1077
-
1078
- if cls:
1079
- return cls(pipeline_response, deserialized, {}) # type: ignore
1080
-
1081
- return deserialized # type: ignore
1082
-
1083
- @distributed_trace
1084
- def delete( # pylint: disable=inconsistent-return-statements
1085
- self, resource_group_name: str, account_name: str, container_name: str, **kwargs: Any
1086
- ) -> None:
1087
- """Deletes specified container under its account.
1088
-
1089
- :param resource_group_name: The name of the resource group within the user's subscription. The
1090
- name is case insensitive. Required.
1091
- :type resource_group_name: str
1092
- :param account_name: The name of the storage account within the specified resource group.
1093
- Storage account names must be between 3 and 24 characters in length and use numbers and
1094
- lower-case letters only. Required.
1095
- :type account_name: str
1096
- :param container_name: The name of the blob container within the specified storage account.
1097
- Blob container names must be between 3 and 63 characters in length and use numbers, lower-case
1098
- letters and dash (-) only. Every dash (-) character must be immediately preceded and followed
1099
- by a letter or number. Required.
1100
- :type container_name: str
1101
- :return: None or the result of cls(response)
1102
- :rtype: None
1103
- :raises ~azure.core.exceptions.HttpResponseError:
1104
- """
1105
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
1106
- 401: ClientAuthenticationError,
1107
- 404: ResourceNotFoundError,
1108
- 409: ResourceExistsError,
1109
- 304: ResourceNotModifiedError,
1110
- }
1111
- error_map.update(kwargs.pop("error_map", {}) or {})
1112
-
1113
- _headers = kwargs.pop("headers", {}) or {}
1114
- _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
1115
-
1116
- api_version: str = kwargs.pop(
1117
- "api_version", _params.pop("api-version", self._api_version or "2020-08-01-preview")
1118
- )
1119
- cls: ClsType[None] = kwargs.pop("cls", None)
1120
-
1121
- _request = build_delete_request(
1122
- resource_group_name=resource_group_name,
1123
- account_name=account_name,
1124
- container_name=container_name,
1125
- subscription_id=self._config.subscription_id,
1126
- api_version=api_version,
1127
- headers=_headers,
1128
- params=_params,
1129
- )
1130
- _request = _convert_request(_request)
1131
- _request.url = self._client.format_url(_request.url)
1132
-
1133
- _stream = False
1134
- pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access
1135
- _request, stream=_stream, **kwargs
1136
- )
1137
-
1138
- response = pipeline_response.http_response
1139
-
1140
- if response.status_code not in [200, 204]:
1141
- map_error(status_code=response.status_code, response=response, error_map=error_map)
1142
- raise HttpResponseError(response=response, error_format=ARMErrorFormat)
1143
-
1144
- if cls:
1145
- return cls(pipeline_response, None, {}) # type: ignore
1146
-
1147
- @overload
1148
- def set_legal_hold(
1149
- self,
1150
- resource_group_name: str,
1151
- account_name: str,
1152
- container_name: str,
1153
- legal_hold: _models.LegalHold,
1154
- *,
1155
- content_type: str = "application/json",
1156
- **kwargs: Any
1157
- ) -> _models.LegalHold:
1158
- """Sets legal hold tags. Setting the same tag results in an idempotent operation. SetLegalHold
1159
- follows an append pattern and does not clear out the existing tags that are not specified in
1160
- the request.
1161
-
1162
- :param resource_group_name: The name of the resource group within the user's subscription. The
1163
- name is case insensitive. Required.
1164
- :type resource_group_name: str
1165
- :param account_name: The name of the storage account within the specified resource group.
1166
- Storage account names must be between 3 and 24 characters in length and use numbers and
1167
- lower-case letters only. Required.
1168
- :type account_name: str
1169
- :param container_name: The name of the blob container within the specified storage account.
1170
- Blob container names must be between 3 and 63 characters in length and use numbers, lower-case
1171
- letters and dash (-) only. Every dash (-) character must be immediately preceded and followed
1172
- by a letter or number. Required.
1173
- :type container_name: str
1174
- :param legal_hold: The LegalHold property that will be set to a blob container. Required.
1175
- :type legal_hold: ~azure.mgmt.storage.v2020_08_01_preview.models.LegalHold
1176
- :keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
1177
- Default value is "application/json".
1178
- :paramtype content_type: str
1179
- :return: LegalHold or the result of cls(response)
1180
- :rtype: ~azure.mgmt.storage.v2020_08_01_preview.models.LegalHold
1181
- :raises ~azure.core.exceptions.HttpResponseError:
1182
- """
1183
-
1184
- @overload
1185
- def set_legal_hold(
1186
- self,
1187
- resource_group_name: str,
1188
- account_name: str,
1189
- container_name: str,
1190
- legal_hold: IO[bytes],
1191
- *,
1192
- content_type: str = "application/json",
1193
- **kwargs: Any
1194
- ) -> _models.LegalHold:
1195
- """Sets legal hold tags. Setting the same tag results in an idempotent operation. SetLegalHold
1196
- follows an append pattern and does not clear out the existing tags that are not specified in
1197
- the request.
1198
-
1199
- :param resource_group_name: The name of the resource group within the user's subscription. The
1200
- name is case insensitive. Required.
1201
- :type resource_group_name: str
1202
- :param account_name: The name of the storage account within the specified resource group.
1203
- Storage account names must be between 3 and 24 characters in length and use numbers and
1204
- lower-case letters only. Required.
1205
- :type account_name: str
1206
- :param container_name: The name of the blob container within the specified storage account.
1207
- Blob container names must be between 3 and 63 characters in length and use numbers, lower-case
1208
- letters and dash (-) only. Every dash (-) character must be immediately preceded and followed
1209
- by a letter or number. Required.
1210
- :type container_name: str
1211
- :param legal_hold: The LegalHold property that will be set to a blob container. Required.
1212
- :type legal_hold: IO[bytes]
1213
- :keyword content_type: Body Parameter content-type. Content type parameter for binary body.
1214
- Default value is "application/json".
1215
- :paramtype content_type: str
1216
- :return: LegalHold or the result of cls(response)
1217
- :rtype: ~azure.mgmt.storage.v2020_08_01_preview.models.LegalHold
1218
- :raises ~azure.core.exceptions.HttpResponseError:
1219
- """
1220
-
1221
- @distributed_trace
1222
- def set_legal_hold(
1223
- self,
1224
- resource_group_name: str,
1225
- account_name: str,
1226
- container_name: str,
1227
- legal_hold: Union[_models.LegalHold, IO[bytes]],
1228
- **kwargs: Any
1229
- ) -> _models.LegalHold:
1230
- """Sets legal hold tags. Setting the same tag results in an idempotent operation. SetLegalHold
1231
- follows an append pattern and does not clear out the existing tags that are not specified in
1232
- the request.
1233
-
1234
- :param resource_group_name: The name of the resource group within the user's subscription. The
1235
- name is case insensitive. Required.
1236
- :type resource_group_name: str
1237
- :param account_name: The name of the storage account within the specified resource group.
1238
- Storage account names must be between 3 and 24 characters in length and use numbers and
1239
- lower-case letters only. Required.
1240
- :type account_name: str
1241
- :param container_name: The name of the blob container within the specified storage account.
1242
- Blob container names must be between 3 and 63 characters in length and use numbers, lower-case
1243
- letters and dash (-) only. Every dash (-) character must be immediately preceded and followed
1244
- by a letter or number. Required.
1245
- :type container_name: str
1246
- :param legal_hold: The LegalHold property that will be set to a blob container. Is either a
1247
- LegalHold type or a IO[bytes] type. Required.
1248
- :type legal_hold: ~azure.mgmt.storage.v2020_08_01_preview.models.LegalHold or IO[bytes]
1249
- :return: LegalHold or the result of cls(response)
1250
- :rtype: ~azure.mgmt.storage.v2020_08_01_preview.models.LegalHold
1251
- :raises ~azure.core.exceptions.HttpResponseError:
1252
- """
1253
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
1254
- 401: ClientAuthenticationError,
1255
- 404: ResourceNotFoundError,
1256
- 409: ResourceExistsError,
1257
- 304: ResourceNotModifiedError,
1258
- }
1259
- error_map.update(kwargs.pop("error_map", {}) or {})
1260
-
1261
- _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
1262
- _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
1263
-
1264
- api_version: str = kwargs.pop(
1265
- "api_version", _params.pop("api-version", self._api_version or "2020-08-01-preview")
1266
- )
1267
- content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
1268
- cls: ClsType[_models.LegalHold] = kwargs.pop("cls", None)
1269
-
1270
- content_type = content_type or "application/json"
1271
- _json = None
1272
- _content = None
1273
- if isinstance(legal_hold, (IOBase, bytes)):
1274
- _content = legal_hold
1275
- else:
1276
- _json = self._serialize.body(legal_hold, "LegalHold")
1277
-
1278
- _request = build_set_legal_hold_request(
1279
- resource_group_name=resource_group_name,
1280
- account_name=account_name,
1281
- container_name=container_name,
1282
- subscription_id=self._config.subscription_id,
1283
- api_version=api_version,
1284
- content_type=content_type,
1285
- json=_json,
1286
- content=_content,
1287
- headers=_headers,
1288
- params=_params,
1289
- )
1290
- _request = _convert_request(_request)
1291
- _request.url = self._client.format_url(_request.url)
1292
-
1293
- _stream = False
1294
- pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access
1295
- _request, stream=_stream, **kwargs
1296
- )
1297
-
1298
- response = pipeline_response.http_response
1299
-
1300
- if response.status_code not in [200]:
1301
- map_error(status_code=response.status_code, response=response, error_map=error_map)
1302
- raise HttpResponseError(response=response, error_format=ARMErrorFormat)
1303
-
1304
- deserialized = self._deserialize("LegalHold", pipeline_response)
1305
-
1306
- if cls:
1307
- return cls(pipeline_response, deserialized, {}) # type: ignore
1308
-
1309
- return deserialized # type: ignore
1310
-
1311
- @overload
1312
- def clear_legal_hold(
1313
- self,
1314
- resource_group_name: str,
1315
- account_name: str,
1316
- container_name: str,
1317
- legal_hold: _models.LegalHold,
1318
- *,
1319
- content_type: str = "application/json",
1320
- **kwargs: Any
1321
- ) -> _models.LegalHold:
1322
- """Clears legal hold tags. Clearing the same or non-existent tag results in an idempotent
1323
- operation. ClearLegalHold clears out only the specified tags in the request.
1324
-
1325
- :param resource_group_name: The name of the resource group within the user's subscription. The
1326
- name is case insensitive. Required.
1327
- :type resource_group_name: str
1328
- :param account_name: The name of the storage account within the specified resource group.
1329
- Storage account names must be between 3 and 24 characters in length and use numbers and
1330
- lower-case letters only. Required.
1331
- :type account_name: str
1332
- :param container_name: The name of the blob container within the specified storage account.
1333
- Blob container names must be between 3 and 63 characters in length and use numbers, lower-case
1334
- letters and dash (-) only. Every dash (-) character must be immediately preceded and followed
1335
- by a letter or number. Required.
1336
- :type container_name: str
1337
- :param legal_hold: The LegalHold property that will be clear from a blob container. Required.
1338
- :type legal_hold: ~azure.mgmt.storage.v2020_08_01_preview.models.LegalHold
1339
- :keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
1340
- Default value is "application/json".
1341
- :paramtype content_type: str
1342
- :return: LegalHold or the result of cls(response)
1343
- :rtype: ~azure.mgmt.storage.v2020_08_01_preview.models.LegalHold
1344
- :raises ~azure.core.exceptions.HttpResponseError:
1345
- """
1346
-
1347
- @overload
1348
- def clear_legal_hold(
1349
- self,
1350
- resource_group_name: str,
1351
- account_name: str,
1352
- container_name: str,
1353
- legal_hold: IO[bytes],
1354
- *,
1355
- content_type: str = "application/json",
1356
- **kwargs: Any
1357
- ) -> _models.LegalHold:
1358
- """Clears legal hold tags. Clearing the same or non-existent tag results in an idempotent
1359
- operation. ClearLegalHold clears out only the specified tags in the request.
1360
-
1361
- :param resource_group_name: The name of the resource group within the user's subscription. The
1362
- name is case insensitive. Required.
1363
- :type resource_group_name: str
1364
- :param account_name: The name of the storage account within the specified resource group.
1365
- Storage account names must be between 3 and 24 characters in length and use numbers and
1366
- lower-case letters only. Required.
1367
- :type account_name: str
1368
- :param container_name: The name of the blob container within the specified storage account.
1369
- Blob container names must be between 3 and 63 characters in length and use numbers, lower-case
1370
- letters and dash (-) only. Every dash (-) character must be immediately preceded and followed
1371
- by a letter or number. Required.
1372
- :type container_name: str
1373
- :param legal_hold: The LegalHold property that will be clear from a blob container. Required.
1374
- :type legal_hold: IO[bytes]
1375
- :keyword content_type: Body Parameter content-type. Content type parameter for binary body.
1376
- Default value is "application/json".
1377
- :paramtype content_type: str
1378
- :return: LegalHold or the result of cls(response)
1379
- :rtype: ~azure.mgmt.storage.v2020_08_01_preview.models.LegalHold
1380
- :raises ~azure.core.exceptions.HttpResponseError:
1381
- """
1382
-
1383
- @distributed_trace
1384
- def clear_legal_hold(
1385
- self,
1386
- resource_group_name: str,
1387
- account_name: str,
1388
- container_name: str,
1389
- legal_hold: Union[_models.LegalHold, IO[bytes]],
1390
- **kwargs: Any
1391
- ) -> _models.LegalHold:
1392
- """Clears legal hold tags. Clearing the same or non-existent tag results in an idempotent
1393
- operation. ClearLegalHold clears out only the specified tags in the request.
1394
-
1395
- :param resource_group_name: The name of the resource group within the user's subscription. The
1396
- name is case insensitive. Required.
1397
- :type resource_group_name: str
1398
- :param account_name: The name of the storage account within the specified resource group.
1399
- Storage account names must be between 3 and 24 characters in length and use numbers and
1400
- lower-case letters only. Required.
1401
- :type account_name: str
1402
- :param container_name: The name of the blob container within the specified storage account.
1403
- Blob container names must be between 3 and 63 characters in length and use numbers, lower-case
1404
- letters and dash (-) only. Every dash (-) character must be immediately preceded and followed
1405
- by a letter or number. Required.
1406
- :type container_name: str
1407
- :param legal_hold: The LegalHold property that will be clear from a blob container. Is either a
1408
- LegalHold type or a IO[bytes] type. Required.
1409
- :type legal_hold: ~azure.mgmt.storage.v2020_08_01_preview.models.LegalHold or IO[bytes]
1410
- :return: LegalHold or the result of cls(response)
1411
- :rtype: ~azure.mgmt.storage.v2020_08_01_preview.models.LegalHold
1412
- :raises ~azure.core.exceptions.HttpResponseError:
1413
- """
1414
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
1415
- 401: ClientAuthenticationError,
1416
- 404: ResourceNotFoundError,
1417
- 409: ResourceExistsError,
1418
- 304: ResourceNotModifiedError,
1419
- }
1420
- error_map.update(kwargs.pop("error_map", {}) or {})
1421
-
1422
- _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
1423
- _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
1424
-
1425
- api_version: str = kwargs.pop(
1426
- "api_version", _params.pop("api-version", self._api_version or "2020-08-01-preview")
1427
- )
1428
- content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
1429
- cls: ClsType[_models.LegalHold] = kwargs.pop("cls", None)
1430
-
1431
- content_type = content_type or "application/json"
1432
- _json = None
1433
- _content = None
1434
- if isinstance(legal_hold, (IOBase, bytes)):
1435
- _content = legal_hold
1436
- else:
1437
- _json = self._serialize.body(legal_hold, "LegalHold")
1438
-
1439
- _request = build_clear_legal_hold_request(
1440
- resource_group_name=resource_group_name,
1441
- account_name=account_name,
1442
- container_name=container_name,
1443
- subscription_id=self._config.subscription_id,
1444
- api_version=api_version,
1445
- content_type=content_type,
1446
- json=_json,
1447
- content=_content,
1448
- headers=_headers,
1449
- params=_params,
1450
- )
1451
- _request = _convert_request(_request)
1452
- _request.url = self._client.format_url(_request.url)
1453
-
1454
- _stream = False
1455
- pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access
1456
- _request, stream=_stream, **kwargs
1457
- )
1458
-
1459
- response = pipeline_response.http_response
1460
-
1461
- if response.status_code not in [200]:
1462
- map_error(status_code=response.status_code, response=response, error_map=error_map)
1463
- raise HttpResponseError(response=response, error_format=ARMErrorFormat)
1464
-
1465
- deserialized = self._deserialize("LegalHold", pipeline_response)
1466
-
1467
- if cls:
1468
- return cls(pipeline_response, deserialized, {}) # type: ignore
1469
-
1470
- return deserialized # type: ignore
1471
-
1472
- @overload
1473
- def create_or_update_immutability_policy(
1474
- self,
1475
- resource_group_name: str,
1476
- account_name: str,
1477
- container_name: str,
1478
- immutability_policy_name: Union[str, _models.Enum28],
1479
- if_match: Optional[str] = None,
1480
- parameters: Optional[_models.ImmutabilityPolicy] = None,
1481
- *,
1482
- content_type: str = "application/json",
1483
- **kwargs: Any
1484
- ) -> _models.ImmutabilityPolicy:
1485
- """Creates or updates an unlocked immutability policy. ETag in If-Match is honored if given but
1486
- not required for this operation.
1487
-
1488
- :param resource_group_name: The name of the resource group within the user's subscription. The
1489
- name is case insensitive. Required.
1490
- :type resource_group_name: str
1491
- :param account_name: The name of the storage account within the specified resource group.
1492
- Storage account names must be between 3 and 24 characters in length and use numbers and
1493
- lower-case letters only. Required.
1494
- :type account_name: str
1495
- :param container_name: The name of the blob container within the specified storage account.
1496
- Blob container names must be between 3 and 63 characters in length and use numbers, lower-case
1497
- letters and dash (-) only. Every dash (-) character must be immediately preceded and followed
1498
- by a letter or number. Required.
1499
- :type container_name: str
1500
- :param immutability_policy_name: The name of the blob container immutabilityPolicy within the
1501
- specified storage account. ImmutabilityPolicy Name must be 'default'. "default" Required.
1502
- :type immutability_policy_name: str or ~azure.mgmt.storage.v2020_08_01_preview.models.Enum28
1503
- :param if_match: The entity state (ETag) version of the immutability policy to update. A value
1504
- of "*" can be used to apply the operation only if the immutability policy already exists. If
1505
- omitted, this operation will always be applied. Default value is None.
1506
- :type if_match: str
1507
- :param parameters: The ImmutabilityPolicy Properties that will be created or updated to a blob
1508
- container. Default value is None.
1509
- :type parameters: ~azure.mgmt.storage.v2020_08_01_preview.models.ImmutabilityPolicy
1510
- :keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
1511
- Default value is "application/json".
1512
- :paramtype content_type: str
1513
- :return: ImmutabilityPolicy or the result of cls(response)
1514
- :rtype: ~azure.mgmt.storage.v2020_08_01_preview.models.ImmutabilityPolicy
1515
- :raises ~azure.core.exceptions.HttpResponseError:
1516
- """
1517
-
1518
- @overload
1519
- def create_or_update_immutability_policy(
1520
- self,
1521
- resource_group_name: str,
1522
- account_name: str,
1523
- container_name: str,
1524
- immutability_policy_name: Union[str, _models.Enum28],
1525
- if_match: Optional[str] = None,
1526
- parameters: Optional[IO[bytes]] = None,
1527
- *,
1528
- content_type: str = "application/json",
1529
- **kwargs: Any
1530
- ) -> _models.ImmutabilityPolicy:
1531
- """Creates or updates an unlocked immutability policy. ETag in If-Match is honored if given but
1532
- not required for this operation.
1533
-
1534
- :param resource_group_name: The name of the resource group within the user's subscription. The
1535
- name is case insensitive. Required.
1536
- :type resource_group_name: str
1537
- :param account_name: The name of the storage account within the specified resource group.
1538
- Storage account names must be between 3 and 24 characters in length and use numbers and
1539
- lower-case letters only. Required.
1540
- :type account_name: str
1541
- :param container_name: The name of the blob container within the specified storage account.
1542
- Blob container names must be between 3 and 63 characters in length and use numbers, lower-case
1543
- letters and dash (-) only. Every dash (-) character must be immediately preceded and followed
1544
- by a letter or number. Required.
1545
- :type container_name: str
1546
- :param immutability_policy_name: The name of the blob container immutabilityPolicy within the
1547
- specified storage account. ImmutabilityPolicy Name must be 'default'. "default" Required.
1548
- :type immutability_policy_name: str or ~azure.mgmt.storage.v2020_08_01_preview.models.Enum28
1549
- :param if_match: The entity state (ETag) version of the immutability policy to update. A value
1550
- of "*" can be used to apply the operation only if the immutability policy already exists. If
1551
- omitted, this operation will always be applied. Default value is None.
1552
- :type if_match: str
1553
- :param parameters: The ImmutabilityPolicy Properties that will be created or updated to a blob
1554
- container. Default value is None.
1555
- :type parameters: IO[bytes]
1556
- :keyword content_type: Body Parameter content-type. Content type parameter for binary body.
1557
- Default value is "application/json".
1558
- :paramtype content_type: str
1559
- :return: ImmutabilityPolicy or the result of cls(response)
1560
- :rtype: ~azure.mgmt.storage.v2020_08_01_preview.models.ImmutabilityPolicy
1561
- :raises ~azure.core.exceptions.HttpResponseError:
1562
- """
1563
-
1564
- @distributed_trace
1565
- def create_or_update_immutability_policy(
1566
- self,
1567
- resource_group_name: str,
1568
- account_name: str,
1569
- container_name: str,
1570
- immutability_policy_name: Union[str, _models.Enum28],
1571
- if_match: Optional[str] = None,
1572
- parameters: Optional[Union[_models.ImmutabilityPolicy, IO[bytes]]] = None,
1573
- **kwargs: Any
1574
- ) -> _models.ImmutabilityPolicy:
1575
- """Creates or updates an unlocked immutability policy. ETag in If-Match is honored if given but
1576
- not required for this operation.
1577
-
1578
- :param resource_group_name: The name of the resource group within the user's subscription. The
1579
- name is case insensitive. Required.
1580
- :type resource_group_name: str
1581
- :param account_name: The name of the storage account within the specified resource group.
1582
- Storage account names must be between 3 and 24 characters in length and use numbers and
1583
- lower-case letters only. Required.
1584
- :type account_name: str
1585
- :param container_name: The name of the blob container within the specified storage account.
1586
- Blob container names must be between 3 and 63 characters in length and use numbers, lower-case
1587
- letters and dash (-) only. Every dash (-) character must be immediately preceded and followed
1588
- by a letter or number. Required.
1589
- :type container_name: str
1590
- :param immutability_policy_name: The name of the blob container immutabilityPolicy within the
1591
- specified storage account. ImmutabilityPolicy Name must be 'default'. "default" Required.
1592
- :type immutability_policy_name: str or ~azure.mgmt.storage.v2020_08_01_preview.models.Enum28
1593
- :param if_match: The entity state (ETag) version of the immutability policy to update. A value
1594
- of "*" can be used to apply the operation only if the immutability policy already exists. If
1595
- omitted, this operation will always be applied. Default value is None.
1596
- :type if_match: str
1597
- :param parameters: The ImmutabilityPolicy Properties that will be created or updated to a blob
1598
- container. Is either a ImmutabilityPolicy type or a IO[bytes] type. Default value is None.
1599
- :type parameters: ~azure.mgmt.storage.v2020_08_01_preview.models.ImmutabilityPolicy or
1600
- IO[bytes]
1601
- :return: ImmutabilityPolicy or the result of cls(response)
1602
- :rtype: ~azure.mgmt.storage.v2020_08_01_preview.models.ImmutabilityPolicy
1603
- :raises ~azure.core.exceptions.HttpResponseError:
1604
- """
1605
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
1606
- 401: ClientAuthenticationError,
1607
- 404: ResourceNotFoundError,
1608
- 409: ResourceExistsError,
1609
- 304: ResourceNotModifiedError,
1610
- }
1611
- error_map.update(kwargs.pop("error_map", {}) or {})
1612
-
1613
- _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
1614
- _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
1615
-
1616
- api_version: str = kwargs.pop(
1617
- "api_version", _params.pop("api-version", self._api_version or "2020-08-01-preview")
1618
- )
1619
- content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
1620
- cls: ClsType[_models.ImmutabilityPolicy] = kwargs.pop("cls", None)
1621
-
1622
- content_type = content_type or "application/json"
1623
- _json = None
1624
- _content = None
1625
- if isinstance(parameters, (IOBase, bytes)):
1626
- _content = parameters
1627
- else:
1628
- if parameters is not None:
1629
- _json = self._serialize.body(parameters, "ImmutabilityPolicy")
1630
- else:
1631
- _json = None
1632
-
1633
- _request = build_create_or_update_immutability_policy_request(
1634
- resource_group_name=resource_group_name,
1635
- account_name=account_name,
1636
- container_name=container_name,
1637
- immutability_policy_name=immutability_policy_name,
1638
- subscription_id=self._config.subscription_id,
1639
- if_match=if_match,
1640
- api_version=api_version,
1641
- content_type=content_type,
1642
- json=_json,
1643
- content=_content,
1644
- headers=_headers,
1645
- params=_params,
1646
- )
1647
- _request = _convert_request(_request)
1648
- _request.url = self._client.format_url(_request.url)
1649
-
1650
- _stream = False
1651
- pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access
1652
- _request, stream=_stream, **kwargs
1653
- )
1654
-
1655
- response = pipeline_response.http_response
1656
-
1657
- if response.status_code not in [200]:
1658
- map_error(status_code=response.status_code, response=response, error_map=error_map)
1659
- raise HttpResponseError(response=response, error_format=ARMErrorFormat)
1660
-
1661
- response_headers = {}
1662
- response_headers["ETag"] = self._deserialize("str", response.headers.get("ETag"))
1663
-
1664
- deserialized = self._deserialize("ImmutabilityPolicy", pipeline_response)
1665
-
1666
- if cls:
1667
- return cls(pipeline_response, deserialized, response_headers) # type: ignore
1668
-
1669
- return deserialized # type: ignore
1670
-
1671
- @distributed_trace
1672
- def get_immutability_policy(
1673
- self,
1674
- resource_group_name: str,
1675
- account_name: str,
1676
- container_name: str,
1677
- immutability_policy_name: Union[str, _models.Enum28],
1678
- if_match: Optional[str] = None,
1679
- **kwargs: Any
1680
- ) -> _models.ImmutabilityPolicy:
1681
- """Gets the existing immutability policy along with the corresponding ETag in response headers and
1682
- body.
1683
-
1684
- :param resource_group_name: The name of the resource group within the user's subscription. The
1685
- name is case insensitive. Required.
1686
- :type resource_group_name: str
1687
- :param account_name: The name of the storage account within the specified resource group.
1688
- Storage account names must be between 3 and 24 characters in length and use numbers and
1689
- lower-case letters only. Required.
1690
- :type account_name: str
1691
- :param container_name: The name of the blob container within the specified storage account.
1692
- Blob container names must be between 3 and 63 characters in length and use numbers, lower-case
1693
- letters and dash (-) only. Every dash (-) character must be immediately preceded and followed
1694
- by a letter or number. Required.
1695
- :type container_name: str
1696
- :param immutability_policy_name: The name of the blob container immutabilityPolicy within the
1697
- specified storage account. ImmutabilityPolicy Name must be 'default'. "default" Required.
1698
- :type immutability_policy_name: str or ~azure.mgmt.storage.v2020_08_01_preview.models.Enum28
1699
- :param if_match: The entity state (ETag) version of the immutability policy to update. A value
1700
- of "*" can be used to apply the operation only if the immutability policy already exists. If
1701
- omitted, this operation will always be applied. Default value is None.
1702
- :type if_match: str
1703
- :return: ImmutabilityPolicy or the result of cls(response)
1704
- :rtype: ~azure.mgmt.storage.v2020_08_01_preview.models.ImmutabilityPolicy
1705
- :raises ~azure.core.exceptions.HttpResponseError:
1706
- """
1707
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
1708
- 401: ClientAuthenticationError,
1709
- 404: ResourceNotFoundError,
1710
- 409: ResourceExistsError,
1711
- 304: ResourceNotModifiedError,
1712
- }
1713
- error_map.update(kwargs.pop("error_map", {}) or {})
1714
-
1715
- _headers = kwargs.pop("headers", {}) or {}
1716
- _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
1717
-
1718
- api_version: str = kwargs.pop(
1719
- "api_version", _params.pop("api-version", self._api_version or "2020-08-01-preview")
1720
- )
1721
- cls: ClsType[_models.ImmutabilityPolicy] = kwargs.pop("cls", None)
1722
-
1723
- _request = build_get_immutability_policy_request(
1724
- resource_group_name=resource_group_name,
1725
- account_name=account_name,
1726
- container_name=container_name,
1727
- immutability_policy_name=immutability_policy_name,
1728
- subscription_id=self._config.subscription_id,
1729
- if_match=if_match,
1730
- api_version=api_version,
1731
- headers=_headers,
1732
- params=_params,
1733
- )
1734
- _request = _convert_request(_request)
1735
- _request.url = self._client.format_url(_request.url)
1736
-
1737
- _stream = False
1738
- pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access
1739
- _request, stream=_stream, **kwargs
1740
- )
1741
-
1742
- response = pipeline_response.http_response
1743
-
1744
- if response.status_code not in [200]:
1745
- map_error(status_code=response.status_code, response=response, error_map=error_map)
1746
- raise HttpResponseError(response=response, error_format=ARMErrorFormat)
1747
-
1748
- response_headers = {}
1749
- response_headers["ETag"] = self._deserialize("str", response.headers.get("ETag"))
1750
-
1751
- deserialized = self._deserialize("ImmutabilityPolicy", pipeline_response)
1752
-
1753
- if cls:
1754
- return cls(pipeline_response, deserialized, response_headers) # type: ignore
1755
-
1756
- return deserialized # type: ignore
1757
-
1758
- @distributed_trace
1759
- def delete_immutability_policy(
1760
- self,
1761
- resource_group_name: str,
1762
- account_name: str,
1763
- container_name: str,
1764
- immutability_policy_name: Union[str, _models.Enum28],
1765
- if_match: str,
1766
- **kwargs: Any
1767
- ) -> _models.ImmutabilityPolicy:
1768
- """Aborts an unlocked immutability policy. The response of delete has
1769
- immutabilityPeriodSinceCreationInDays set to 0. ETag in If-Match is required for this
1770
- operation. Deleting a locked immutability policy is not allowed, the only way is to delete the
1771
- container after deleting all expired blobs inside the policy locked container.
1772
-
1773
- :param resource_group_name: The name of the resource group within the user's subscription. The
1774
- name is case insensitive. Required.
1775
- :type resource_group_name: str
1776
- :param account_name: The name of the storage account within the specified resource group.
1777
- Storage account names must be between 3 and 24 characters in length and use numbers and
1778
- lower-case letters only. Required.
1779
- :type account_name: str
1780
- :param container_name: The name of the blob container within the specified storage account.
1781
- Blob container names must be between 3 and 63 characters in length and use numbers, lower-case
1782
- letters and dash (-) only. Every dash (-) character must be immediately preceded and followed
1783
- by a letter or number. Required.
1784
- :type container_name: str
1785
- :param immutability_policy_name: The name of the blob container immutabilityPolicy within the
1786
- specified storage account. ImmutabilityPolicy Name must be 'default'. "default" Required.
1787
- :type immutability_policy_name: str or ~azure.mgmt.storage.v2020_08_01_preview.models.Enum28
1788
- :param if_match: The entity state (ETag) version of the immutability policy to update. A value
1789
- of "*" can be used to apply the operation only if the immutability policy already exists. If
1790
- omitted, this operation will always be applied. Required.
1791
- :type if_match: str
1792
- :return: ImmutabilityPolicy or the result of cls(response)
1793
- :rtype: ~azure.mgmt.storage.v2020_08_01_preview.models.ImmutabilityPolicy
1794
- :raises ~azure.core.exceptions.HttpResponseError:
1795
- """
1796
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
1797
- 401: ClientAuthenticationError,
1798
- 404: ResourceNotFoundError,
1799
- 409: ResourceExistsError,
1800
- 304: ResourceNotModifiedError,
1801
- }
1802
- error_map.update(kwargs.pop("error_map", {}) or {})
1803
-
1804
- _headers = kwargs.pop("headers", {}) or {}
1805
- _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
1806
-
1807
- api_version: str = kwargs.pop(
1808
- "api_version", _params.pop("api-version", self._api_version or "2020-08-01-preview")
1809
- )
1810
- cls: ClsType[_models.ImmutabilityPolicy] = kwargs.pop("cls", None)
1811
-
1812
- _request = build_delete_immutability_policy_request(
1813
- resource_group_name=resource_group_name,
1814
- account_name=account_name,
1815
- container_name=container_name,
1816
- immutability_policy_name=immutability_policy_name,
1817
- subscription_id=self._config.subscription_id,
1818
- if_match=if_match,
1819
- api_version=api_version,
1820
- headers=_headers,
1821
- params=_params,
1822
- )
1823
- _request = _convert_request(_request)
1824
- _request.url = self._client.format_url(_request.url)
1825
-
1826
- _stream = False
1827
- pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access
1828
- _request, stream=_stream, **kwargs
1829
- )
1830
-
1831
- response = pipeline_response.http_response
1832
-
1833
- if response.status_code not in [200]:
1834
- map_error(status_code=response.status_code, response=response, error_map=error_map)
1835
- raise HttpResponseError(response=response, error_format=ARMErrorFormat)
1836
-
1837
- response_headers = {}
1838
- response_headers["ETag"] = self._deserialize("str", response.headers.get("ETag"))
1839
-
1840
- deserialized = self._deserialize("ImmutabilityPolicy", pipeline_response)
1841
-
1842
- if cls:
1843
- return cls(pipeline_response, deserialized, response_headers) # type: ignore
1844
-
1845
- return deserialized # type: ignore
1846
-
1847
- @distributed_trace
1848
- def lock_immutability_policy(
1849
- self, resource_group_name: str, account_name: str, container_name: str, if_match: str, **kwargs: Any
1850
- ) -> _models.ImmutabilityPolicy:
1851
- """Sets the ImmutabilityPolicy to Locked state. The only action allowed on a Locked policy is
1852
- ExtendImmutabilityPolicy action. ETag in If-Match is required for this operation.
1853
-
1854
- :param resource_group_name: The name of the resource group within the user's subscription. The
1855
- name is case insensitive. Required.
1856
- :type resource_group_name: str
1857
- :param account_name: The name of the storage account within the specified resource group.
1858
- Storage account names must be between 3 and 24 characters in length and use numbers and
1859
- lower-case letters only. Required.
1860
- :type account_name: str
1861
- :param container_name: The name of the blob container within the specified storage account.
1862
- Blob container names must be between 3 and 63 characters in length and use numbers, lower-case
1863
- letters and dash (-) only. Every dash (-) character must be immediately preceded and followed
1864
- by a letter or number. Required.
1865
- :type container_name: str
1866
- :param if_match: The entity state (ETag) version of the immutability policy to update. A value
1867
- of "*" can be used to apply the operation only if the immutability policy already exists. If
1868
- omitted, this operation will always be applied. Required.
1869
- :type if_match: str
1870
- :return: ImmutabilityPolicy or the result of cls(response)
1871
- :rtype: ~azure.mgmt.storage.v2020_08_01_preview.models.ImmutabilityPolicy
1872
- :raises ~azure.core.exceptions.HttpResponseError:
1873
- """
1874
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
1875
- 401: ClientAuthenticationError,
1876
- 404: ResourceNotFoundError,
1877
- 409: ResourceExistsError,
1878
- 304: ResourceNotModifiedError,
1879
- }
1880
- error_map.update(kwargs.pop("error_map", {}) or {})
1881
-
1882
- _headers = kwargs.pop("headers", {}) or {}
1883
- _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
1884
-
1885
- api_version: str = kwargs.pop(
1886
- "api_version", _params.pop("api-version", self._api_version or "2020-08-01-preview")
1887
- )
1888
- cls: ClsType[_models.ImmutabilityPolicy] = kwargs.pop("cls", None)
1889
-
1890
- _request = build_lock_immutability_policy_request(
1891
- resource_group_name=resource_group_name,
1892
- account_name=account_name,
1893
- container_name=container_name,
1894
- subscription_id=self._config.subscription_id,
1895
- if_match=if_match,
1896
- api_version=api_version,
1897
- headers=_headers,
1898
- params=_params,
1899
- )
1900
- _request = _convert_request(_request)
1901
- _request.url = self._client.format_url(_request.url)
1902
-
1903
- _stream = False
1904
- pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access
1905
- _request, stream=_stream, **kwargs
1906
- )
1907
-
1908
- response = pipeline_response.http_response
1909
-
1910
- if response.status_code not in [200]:
1911
- map_error(status_code=response.status_code, response=response, error_map=error_map)
1912
- raise HttpResponseError(response=response, error_format=ARMErrorFormat)
1913
-
1914
- response_headers = {}
1915
- response_headers["ETag"] = self._deserialize("str", response.headers.get("ETag"))
1916
-
1917
- deserialized = self._deserialize("ImmutabilityPolicy", pipeline_response)
1918
-
1919
- if cls:
1920
- return cls(pipeline_response, deserialized, response_headers) # type: ignore
1921
-
1922
- return deserialized # type: ignore
1923
-
1924
- @overload
1925
- def extend_immutability_policy(
1926
- self,
1927
- resource_group_name: str,
1928
- account_name: str,
1929
- container_name: str,
1930
- if_match: str,
1931
- parameters: Optional[_models.ImmutabilityPolicy] = None,
1932
- *,
1933
- content_type: str = "application/json",
1934
- **kwargs: Any
1935
- ) -> _models.ImmutabilityPolicy:
1936
- """Extends the immutabilityPeriodSinceCreationInDays of a locked immutabilityPolicy. The only
1937
- action allowed on a Locked policy will be this action. ETag in If-Match is required for this
1938
- operation.
1939
-
1940
- :param resource_group_name: The name of the resource group within the user's subscription. The
1941
- name is case insensitive. Required.
1942
- :type resource_group_name: str
1943
- :param account_name: The name of the storage account within the specified resource group.
1944
- Storage account names must be between 3 and 24 characters in length and use numbers and
1945
- lower-case letters only. Required.
1946
- :type account_name: str
1947
- :param container_name: The name of the blob container within the specified storage account.
1948
- Blob container names must be between 3 and 63 characters in length and use numbers, lower-case
1949
- letters and dash (-) only. Every dash (-) character must be immediately preceded and followed
1950
- by a letter or number. Required.
1951
- :type container_name: str
1952
- :param if_match: The entity state (ETag) version of the immutability policy to update. A value
1953
- of "*" can be used to apply the operation only if the immutability policy already exists. If
1954
- omitted, this operation will always be applied. Required.
1955
- :type if_match: str
1956
- :param parameters: The ImmutabilityPolicy Properties that will be extended for a blob
1957
- container. Default value is None.
1958
- :type parameters: ~azure.mgmt.storage.v2020_08_01_preview.models.ImmutabilityPolicy
1959
- :keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
1960
- Default value is "application/json".
1961
- :paramtype content_type: str
1962
- :return: ImmutabilityPolicy or the result of cls(response)
1963
- :rtype: ~azure.mgmt.storage.v2020_08_01_preview.models.ImmutabilityPolicy
1964
- :raises ~azure.core.exceptions.HttpResponseError:
1965
- """
1966
-
1967
- @overload
1968
- def extend_immutability_policy(
1969
- self,
1970
- resource_group_name: str,
1971
- account_name: str,
1972
- container_name: str,
1973
- if_match: str,
1974
- parameters: Optional[IO[bytes]] = None,
1975
- *,
1976
- content_type: str = "application/json",
1977
- **kwargs: Any
1978
- ) -> _models.ImmutabilityPolicy:
1979
- """Extends the immutabilityPeriodSinceCreationInDays of a locked immutabilityPolicy. The only
1980
- action allowed on a Locked policy will be this action. ETag in If-Match is required for this
1981
- operation.
1982
-
1983
- :param resource_group_name: The name of the resource group within the user's subscription. The
1984
- name is case insensitive. Required.
1985
- :type resource_group_name: str
1986
- :param account_name: The name of the storage account within the specified resource group.
1987
- Storage account names must be between 3 and 24 characters in length and use numbers and
1988
- lower-case letters only. Required.
1989
- :type account_name: str
1990
- :param container_name: The name of the blob container within the specified storage account.
1991
- Blob container names must be between 3 and 63 characters in length and use numbers, lower-case
1992
- letters and dash (-) only. Every dash (-) character must be immediately preceded and followed
1993
- by a letter or number. Required.
1994
- :type container_name: str
1995
- :param if_match: The entity state (ETag) version of the immutability policy to update. A value
1996
- of "*" can be used to apply the operation only if the immutability policy already exists. If
1997
- omitted, this operation will always be applied. Required.
1998
- :type if_match: str
1999
- :param parameters: The ImmutabilityPolicy Properties that will be extended for a blob
2000
- container. Default value is None.
2001
- :type parameters: IO[bytes]
2002
- :keyword content_type: Body Parameter content-type. Content type parameter for binary body.
2003
- Default value is "application/json".
2004
- :paramtype content_type: str
2005
- :return: ImmutabilityPolicy or the result of cls(response)
2006
- :rtype: ~azure.mgmt.storage.v2020_08_01_preview.models.ImmutabilityPolicy
2007
- :raises ~azure.core.exceptions.HttpResponseError:
2008
- """
2009
-
2010
- @distributed_trace
2011
- def extend_immutability_policy(
2012
- self,
2013
- resource_group_name: str,
2014
- account_name: str,
2015
- container_name: str,
2016
- if_match: str,
2017
- parameters: Optional[Union[_models.ImmutabilityPolicy, IO[bytes]]] = None,
2018
- **kwargs: Any
2019
- ) -> _models.ImmutabilityPolicy:
2020
- """Extends the immutabilityPeriodSinceCreationInDays of a locked immutabilityPolicy. The only
2021
- action allowed on a Locked policy will be this action. ETag in If-Match is required for this
2022
- operation.
2023
-
2024
- :param resource_group_name: The name of the resource group within the user's subscription. The
2025
- name is case insensitive. Required.
2026
- :type resource_group_name: str
2027
- :param account_name: The name of the storage account within the specified resource group.
2028
- Storage account names must be between 3 and 24 characters in length and use numbers and
2029
- lower-case letters only. Required.
2030
- :type account_name: str
2031
- :param container_name: The name of the blob container within the specified storage account.
2032
- Blob container names must be between 3 and 63 characters in length and use numbers, lower-case
2033
- letters and dash (-) only. Every dash (-) character must be immediately preceded and followed
2034
- by a letter or number. Required.
2035
- :type container_name: str
2036
- :param if_match: The entity state (ETag) version of the immutability policy to update. A value
2037
- of "*" can be used to apply the operation only if the immutability policy already exists. If
2038
- omitted, this operation will always be applied. Required.
2039
- :type if_match: str
2040
- :param parameters: The ImmutabilityPolicy Properties that will be extended for a blob
2041
- container. Is either a ImmutabilityPolicy type or a IO[bytes] type. Default value is None.
2042
- :type parameters: ~azure.mgmt.storage.v2020_08_01_preview.models.ImmutabilityPolicy or
2043
- IO[bytes]
2044
- :return: ImmutabilityPolicy or the result of cls(response)
2045
- :rtype: ~azure.mgmt.storage.v2020_08_01_preview.models.ImmutabilityPolicy
2046
- :raises ~azure.core.exceptions.HttpResponseError:
2047
- """
2048
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
2049
- 401: ClientAuthenticationError,
2050
- 404: ResourceNotFoundError,
2051
- 409: ResourceExistsError,
2052
- 304: ResourceNotModifiedError,
2053
- }
2054
- error_map.update(kwargs.pop("error_map", {}) or {})
2055
-
2056
- _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
2057
- _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
2058
-
2059
- api_version: str = kwargs.pop(
2060
- "api_version", _params.pop("api-version", self._api_version or "2020-08-01-preview")
2061
- )
2062
- content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
2063
- cls: ClsType[_models.ImmutabilityPolicy] = kwargs.pop("cls", None)
2064
-
2065
- content_type = content_type or "application/json"
2066
- _json = None
2067
- _content = None
2068
- if isinstance(parameters, (IOBase, bytes)):
2069
- _content = parameters
2070
- else:
2071
- if parameters is not None:
2072
- _json = self._serialize.body(parameters, "ImmutabilityPolicy")
2073
- else:
2074
- _json = None
2075
-
2076
- _request = build_extend_immutability_policy_request(
2077
- resource_group_name=resource_group_name,
2078
- account_name=account_name,
2079
- container_name=container_name,
2080
- subscription_id=self._config.subscription_id,
2081
- if_match=if_match,
2082
- api_version=api_version,
2083
- content_type=content_type,
2084
- json=_json,
2085
- content=_content,
2086
- headers=_headers,
2087
- params=_params,
2088
- )
2089
- _request = _convert_request(_request)
2090
- _request.url = self._client.format_url(_request.url)
2091
-
2092
- _stream = False
2093
- pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access
2094
- _request, stream=_stream, **kwargs
2095
- )
2096
-
2097
- response = pipeline_response.http_response
2098
-
2099
- if response.status_code not in [200]:
2100
- map_error(status_code=response.status_code, response=response, error_map=error_map)
2101
- raise HttpResponseError(response=response, error_format=ARMErrorFormat)
2102
-
2103
- response_headers = {}
2104
- response_headers["ETag"] = self._deserialize("str", response.headers.get("ETag"))
2105
-
2106
- deserialized = self._deserialize("ImmutabilityPolicy", pipeline_response)
2107
-
2108
- if cls:
2109
- return cls(pipeline_response, deserialized, response_headers) # type: ignore
2110
-
2111
- return deserialized # type: ignore
2112
-
2113
- @overload
2114
- def lease(
2115
- self,
2116
- resource_group_name: str,
2117
- account_name: str,
2118
- container_name: str,
2119
- parameters: Optional[_models.LeaseContainerRequest] = None,
2120
- *,
2121
- content_type: str = "application/json",
2122
- **kwargs: Any
2123
- ) -> _models.LeaseContainerResponse:
2124
- """The Lease Container operation establishes and manages a lock on a container for delete
2125
- operations. The lock duration can be 15 to 60 seconds, or can be infinite.
2126
-
2127
- :param resource_group_name: The name of the resource group within the user's subscription. The
2128
- name is case insensitive. Required.
2129
- :type resource_group_name: str
2130
- :param account_name: The name of the storage account within the specified resource group.
2131
- Storage account names must be between 3 and 24 characters in length and use numbers and
2132
- lower-case letters only. Required.
2133
- :type account_name: str
2134
- :param container_name: The name of the blob container within the specified storage account.
2135
- Blob container names must be between 3 and 63 characters in length and use numbers, lower-case
2136
- letters and dash (-) only. Every dash (-) character must be immediately preceded and followed
2137
- by a letter or number. Required.
2138
- :type container_name: str
2139
- :param parameters: Lease Container request body. Default value is None.
2140
- :type parameters: ~azure.mgmt.storage.v2020_08_01_preview.models.LeaseContainerRequest
2141
- :keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
2142
- Default value is "application/json".
2143
- :paramtype content_type: str
2144
- :return: LeaseContainerResponse or the result of cls(response)
2145
- :rtype: ~azure.mgmt.storage.v2020_08_01_preview.models.LeaseContainerResponse
2146
- :raises ~azure.core.exceptions.HttpResponseError:
2147
- """
2148
-
2149
- @overload
2150
- def lease(
2151
- self,
2152
- resource_group_name: str,
2153
- account_name: str,
2154
- container_name: str,
2155
- parameters: Optional[IO[bytes]] = None,
2156
- *,
2157
- content_type: str = "application/json",
2158
- **kwargs: Any
2159
- ) -> _models.LeaseContainerResponse:
2160
- """The Lease Container operation establishes and manages a lock on a container for delete
2161
- operations. The lock duration can be 15 to 60 seconds, or can be infinite.
2162
-
2163
- :param resource_group_name: The name of the resource group within the user's subscription. The
2164
- name is case insensitive. Required.
2165
- :type resource_group_name: str
2166
- :param account_name: The name of the storage account within the specified resource group.
2167
- Storage account names must be between 3 and 24 characters in length and use numbers and
2168
- lower-case letters only. Required.
2169
- :type account_name: str
2170
- :param container_name: The name of the blob container within the specified storage account.
2171
- Blob container names must be between 3 and 63 characters in length and use numbers, lower-case
2172
- letters and dash (-) only. Every dash (-) character must be immediately preceded and followed
2173
- by a letter or number. Required.
2174
- :type container_name: str
2175
- :param parameters: Lease Container request body. Default value is None.
2176
- :type parameters: IO[bytes]
2177
- :keyword content_type: Body Parameter content-type. Content type parameter for binary body.
2178
- Default value is "application/json".
2179
- :paramtype content_type: str
2180
- :return: LeaseContainerResponse or the result of cls(response)
2181
- :rtype: ~azure.mgmt.storage.v2020_08_01_preview.models.LeaseContainerResponse
2182
- :raises ~azure.core.exceptions.HttpResponseError:
2183
- """
2184
-
2185
- @distributed_trace
2186
- def lease(
2187
- self,
2188
- resource_group_name: str,
2189
- account_name: str,
2190
- container_name: str,
2191
- parameters: Optional[Union[_models.LeaseContainerRequest, IO[bytes]]] = None,
2192
- **kwargs: Any
2193
- ) -> _models.LeaseContainerResponse:
2194
- """The Lease Container operation establishes and manages a lock on a container for delete
2195
- operations. The lock duration can be 15 to 60 seconds, or can be infinite.
2196
-
2197
- :param resource_group_name: The name of the resource group within the user's subscription. The
2198
- name is case insensitive. Required.
2199
- :type resource_group_name: str
2200
- :param account_name: The name of the storage account within the specified resource group.
2201
- Storage account names must be between 3 and 24 characters in length and use numbers and
2202
- lower-case letters only. Required.
2203
- :type account_name: str
2204
- :param container_name: The name of the blob container within the specified storage account.
2205
- Blob container names must be between 3 and 63 characters in length and use numbers, lower-case
2206
- letters and dash (-) only. Every dash (-) character must be immediately preceded and followed
2207
- by a letter or number. Required.
2208
- :type container_name: str
2209
- :param parameters: Lease Container request body. Is either a LeaseContainerRequest type or a
2210
- IO[bytes] type. Default value is None.
2211
- :type parameters: ~azure.mgmt.storage.v2020_08_01_preview.models.LeaseContainerRequest or
2212
- IO[bytes]
2213
- :return: LeaseContainerResponse or the result of cls(response)
2214
- :rtype: ~azure.mgmt.storage.v2020_08_01_preview.models.LeaseContainerResponse
2215
- :raises ~azure.core.exceptions.HttpResponseError:
2216
- """
2217
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
2218
- 401: ClientAuthenticationError,
2219
- 404: ResourceNotFoundError,
2220
- 409: ResourceExistsError,
2221
- 304: ResourceNotModifiedError,
2222
- }
2223
- error_map.update(kwargs.pop("error_map", {}) or {})
2224
-
2225
- _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
2226
- _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
2227
-
2228
- api_version: str = kwargs.pop(
2229
- "api_version", _params.pop("api-version", self._api_version or "2020-08-01-preview")
2230
- )
2231
- content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
2232
- cls: ClsType[_models.LeaseContainerResponse] = kwargs.pop("cls", None)
2233
-
2234
- content_type = content_type or "application/json"
2235
- _json = None
2236
- _content = None
2237
- if isinstance(parameters, (IOBase, bytes)):
2238
- _content = parameters
2239
- else:
2240
- if parameters is not None:
2241
- _json = self._serialize.body(parameters, "LeaseContainerRequest")
2242
- else:
2243
- _json = None
2244
-
2245
- _request = build_lease_request(
2246
- resource_group_name=resource_group_name,
2247
- account_name=account_name,
2248
- container_name=container_name,
2249
- subscription_id=self._config.subscription_id,
2250
- api_version=api_version,
2251
- content_type=content_type,
2252
- json=_json,
2253
- content=_content,
2254
- headers=_headers,
2255
- params=_params,
2256
- )
2257
- _request = _convert_request(_request)
2258
- _request.url = self._client.format_url(_request.url)
2259
-
2260
- _stream = False
2261
- pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access
2262
- _request, stream=_stream, **kwargs
2263
- )
2264
-
2265
- response = pipeline_response.http_response
2266
-
2267
- if response.status_code not in [200]:
2268
- map_error(status_code=response.status_code, response=response, error_map=error_map)
2269
- raise HttpResponseError(response=response, error_format=ARMErrorFormat)
2270
-
2271
- deserialized = self._deserialize("LeaseContainerResponse", pipeline_response)
2272
-
2273
- if cls:
2274
- return cls(pipeline_response, deserialized, {}) # type: ignore
2275
-
2276
- return deserialized # type: ignore