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

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