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,2392 +0,0 @@
1
- # pylint: disable=too-many-lines,too-many-statements
2
- # coding=utf-8
3
- # --------------------------------------------------------------------------
4
- # Copyright (c) Microsoft Corporation. All rights reserved.
5
- # Licensed under the MIT License. See License.txt in the project root for license information.
6
- # Code generated by Microsoft (R) AutoRest Code Generator.
7
- # Changes may cause incorrect behavior and will be lost if the code is regenerated.
8
- # --------------------------------------------------------------------------
9
- from io import IOBase
10
- import sys
11
- from typing import Any, Callable, Dict, IO, Iterable, Optional, Type, TypeVar, Union, 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-04-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-04-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-04-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-04-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-04-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-04-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-04-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
- immutability_policy_name: Union[str, _models.Enum35],
308
- subscription_id: str,
309
- *,
310
- if_match: Optional[str] = None,
311
- **kwargs: Any
312
- ) -> HttpRequest:
313
- _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
314
- _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
315
-
316
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2021-04-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
- immutability_policy_name: Union[str, _models.Enum35],
355
- subscription_id: str,
356
- *,
357
- if_match: Optional[str] = None,
358
- **kwargs: Any
359
- ) -> HttpRequest:
360
- _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
361
- _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
362
-
363
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2021-04-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
- immutability_policy_name: Union[str, _models.Enum35],
399
- subscription_id: str,
400
- *,
401
- if_match: str,
402
- **kwargs: Any
403
- ) -> HttpRequest:
404
- _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
405
- _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
406
-
407
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2021-04-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-04-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-04-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-04-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-04-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_04_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_04_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_04_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-04-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_04_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_04_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_04_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_04_01.models.BlobContainer or IO[bytes]
821
- :return: BlobContainer or the result of cls(response)
822
- :rtype: ~azure.mgmt.storage.v2021_04_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-04-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_04_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_04_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_04_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_04_01.models.BlobContainer or IO[bytes]
984
- :return: BlobContainer or the result of cls(response)
985
- :rtype: ~azure.mgmt.storage.v2021_04_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-04-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_04_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-04-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-04-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_04_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_04_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_04_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_04_01.models.LegalHold or IO[bytes]
1274
- :return: LegalHold or the result of cls(response)
1275
- :rtype: ~azure.mgmt.storage.v2021_04_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-04-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_04_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_04_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_04_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_04_01.models.LegalHold or IO[bytes]
1433
- :return: LegalHold or the result of cls(response)
1434
- :rtype: ~azure.mgmt.storage.v2021_04_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-04-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
- immutability_policy_name: Union[str, _models.Enum35],
1500
- if_match: Optional[str] = None,
1501
- parameters: Optional[_models.ImmutabilityPolicy] = None,
1502
- *,
1503
- content_type: str = "application/json",
1504
- **kwargs: Any
1505
- ) -> _models.ImmutabilityPolicy:
1506
- """Creates or updates an unlocked immutability policy. ETag in If-Match is honored if given but
1507
- not required for this operation.
1508
-
1509
- :param resource_group_name: The name of the resource group within the user's subscription. The
1510
- name is case insensitive. Required.
1511
- :type resource_group_name: str
1512
- :param account_name: The name of the storage account within the specified resource group.
1513
- Storage account names must be between 3 and 24 characters in length and use numbers and
1514
- lower-case letters only. Required.
1515
- :type account_name: str
1516
- :param container_name: The name of the blob container within the specified storage account.
1517
- Blob container names must be between 3 and 63 characters in length and use numbers, lower-case
1518
- letters and dash (-) only. Every dash (-) character must be immediately preceded and followed
1519
- by a letter or number. Required.
1520
- :type container_name: str
1521
- :param immutability_policy_name: The name of the blob container immutabilityPolicy within the
1522
- specified storage account. ImmutabilityPolicy Name must be 'default'. "default" Required.
1523
- :type immutability_policy_name: str or ~azure.mgmt.storage.v2021_04_01.models.Enum35
1524
- :param if_match: The entity state (ETag) version of the immutability policy to update. A value
1525
- of "*" can be used to apply the operation only if the immutability policy already exists. If
1526
- omitted, this operation will always be applied. Default value is None.
1527
- :type if_match: str
1528
- :param parameters: The ImmutabilityPolicy Properties that will be created or updated to a blob
1529
- container. Default value is None.
1530
- :type parameters: ~azure.mgmt.storage.v2021_04_01.models.ImmutabilityPolicy
1531
- :keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
1532
- Default value is "application/json".
1533
- :paramtype content_type: str
1534
- :return: ImmutabilityPolicy or the result of cls(response)
1535
- :rtype: ~azure.mgmt.storage.v2021_04_01.models.ImmutabilityPolicy
1536
- :raises ~azure.core.exceptions.HttpResponseError:
1537
- """
1538
-
1539
- @overload
1540
- def create_or_update_immutability_policy(
1541
- self,
1542
- resource_group_name: str,
1543
- account_name: str,
1544
- container_name: str,
1545
- immutability_policy_name: Union[str, _models.Enum35],
1546
- if_match: Optional[str] = None,
1547
- parameters: Optional[IO[bytes]] = None,
1548
- *,
1549
- content_type: str = "application/json",
1550
- **kwargs: Any
1551
- ) -> _models.ImmutabilityPolicy:
1552
- """Creates or updates an unlocked immutability policy. ETag in If-Match is honored if given but
1553
- not required for this operation.
1554
-
1555
- :param resource_group_name: The name of the resource group within the user's subscription. The
1556
- name is case insensitive. Required.
1557
- :type resource_group_name: str
1558
- :param account_name: The name of the storage account within the specified resource group.
1559
- Storage account names must be between 3 and 24 characters in length and use numbers and
1560
- lower-case letters only. Required.
1561
- :type account_name: str
1562
- :param container_name: The name of the blob container within the specified storage account.
1563
- Blob container names must be between 3 and 63 characters in length and use numbers, lower-case
1564
- letters and dash (-) only. Every dash (-) character must be immediately preceded and followed
1565
- by a letter or number. Required.
1566
- :type container_name: str
1567
- :param immutability_policy_name: The name of the blob container immutabilityPolicy within the
1568
- specified storage account. ImmutabilityPolicy Name must be 'default'. "default" Required.
1569
- :type immutability_policy_name: str or ~azure.mgmt.storage.v2021_04_01.models.Enum35
1570
- :param if_match: The entity state (ETag) version of the immutability policy to update. A value
1571
- of "*" can be used to apply the operation only if the immutability policy already exists. If
1572
- omitted, this operation will always be applied. Default value is None.
1573
- :type if_match: str
1574
- :param parameters: The ImmutabilityPolicy Properties that will be created or updated to a blob
1575
- container. Default value is None.
1576
- :type parameters: IO[bytes]
1577
- :keyword content_type: Body Parameter content-type. Content type parameter for binary body.
1578
- Default value is "application/json".
1579
- :paramtype content_type: str
1580
- :return: ImmutabilityPolicy or the result of cls(response)
1581
- :rtype: ~azure.mgmt.storage.v2021_04_01.models.ImmutabilityPolicy
1582
- :raises ~azure.core.exceptions.HttpResponseError:
1583
- """
1584
-
1585
- @distributed_trace
1586
- def create_or_update_immutability_policy(
1587
- self,
1588
- resource_group_name: str,
1589
- account_name: str,
1590
- container_name: str,
1591
- immutability_policy_name: Union[str, _models.Enum35],
1592
- if_match: Optional[str] = None,
1593
- parameters: Optional[Union[_models.ImmutabilityPolicy, IO[bytes]]] = None,
1594
- **kwargs: Any
1595
- ) -> _models.ImmutabilityPolicy:
1596
- """Creates or updates an unlocked immutability policy. ETag in If-Match is honored if given but
1597
- not required for this operation.
1598
-
1599
- :param resource_group_name: The name of the resource group within the user's subscription. The
1600
- name is case insensitive. Required.
1601
- :type resource_group_name: str
1602
- :param account_name: The name of the storage account within the specified resource group.
1603
- Storage account names must be between 3 and 24 characters in length and use numbers and
1604
- lower-case letters only. Required.
1605
- :type account_name: str
1606
- :param container_name: The name of the blob container within the specified storage account.
1607
- Blob container names must be between 3 and 63 characters in length and use numbers, lower-case
1608
- letters and dash (-) only. Every dash (-) character must be immediately preceded and followed
1609
- by a letter or number. Required.
1610
- :type container_name: str
1611
- :param immutability_policy_name: The name of the blob container immutabilityPolicy within the
1612
- specified storage account. ImmutabilityPolicy Name must be 'default'. "default" Required.
1613
- :type immutability_policy_name: str or ~azure.mgmt.storage.v2021_04_01.models.Enum35
1614
- :param if_match: The entity state (ETag) version of the immutability policy to update. A value
1615
- of "*" can be used to apply the operation only if the immutability policy already exists. If
1616
- omitted, this operation will always be applied. Default value is None.
1617
- :type if_match: str
1618
- :param parameters: The ImmutabilityPolicy Properties that will be created or updated to a blob
1619
- container. Is either a ImmutabilityPolicy type or a IO[bytes] type. Default value is None.
1620
- :type parameters: ~azure.mgmt.storage.v2021_04_01.models.ImmutabilityPolicy or IO[bytes]
1621
- :return: ImmutabilityPolicy or the result of cls(response)
1622
- :rtype: ~azure.mgmt.storage.v2021_04_01.models.ImmutabilityPolicy
1623
- :raises ~azure.core.exceptions.HttpResponseError:
1624
- """
1625
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
1626
- 401: ClientAuthenticationError,
1627
- 404: ResourceNotFoundError,
1628
- 409: ResourceExistsError,
1629
- 304: ResourceNotModifiedError,
1630
- }
1631
- error_map.update(kwargs.pop("error_map", {}) or {})
1632
-
1633
- _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
1634
- _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
1635
-
1636
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2021-04-01"))
1637
- content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
1638
- cls: ClsType[_models.ImmutabilityPolicy] = kwargs.pop("cls", None)
1639
-
1640
- content_type = content_type or "application/json"
1641
- _json = None
1642
- _content = None
1643
- if isinstance(parameters, (IOBase, bytes)):
1644
- _content = parameters
1645
- else:
1646
- if parameters is not None:
1647
- _json = self._serialize.body(parameters, "ImmutabilityPolicy")
1648
- else:
1649
- _json = None
1650
-
1651
- _request = build_create_or_update_immutability_policy_request(
1652
- resource_group_name=resource_group_name,
1653
- account_name=account_name,
1654
- container_name=container_name,
1655
- immutability_policy_name=immutability_policy_name,
1656
- subscription_id=self._config.subscription_id,
1657
- if_match=if_match,
1658
- api_version=api_version,
1659
- content_type=content_type,
1660
- json=_json,
1661
- content=_content,
1662
- headers=_headers,
1663
- params=_params,
1664
- )
1665
- _request = _convert_request(_request)
1666
- _request.url = self._client.format_url(_request.url)
1667
-
1668
- _stream = False
1669
- pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access
1670
- _request, stream=_stream, **kwargs
1671
- )
1672
-
1673
- response = pipeline_response.http_response
1674
-
1675
- if response.status_code not in [200]:
1676
- map_error(status_code=response.status_code, response=response, error_map=error_map)
1677
- raise HttpResponseError(response=response, error_format=ARMErrorFormat)
1678
-
1679
- response_headers = {}
1680
- response_headers["ETag"] = self._deserialize("str", response.headers.get("ETag"))
1681
-
1682
- deserialized = self._deserialize("ImmutabilityPolicy", pipeline_response)
1683
-
1684
- if cls:
1685
- return cls(pipeline_response, deserialized, response_headers) # type: ignore
1686
-
1687
- return deserialized # type: ignore
1688
-
1689
- @distributed_trace
1690
- def get_immutability_policy(
1691
- self,
1692
- resource_group_name: str,
1693
- account_name: str,
1694
- container_name: str,
1695
- immutability_policy_name: Union[str, _models.Enum35],
1696
- if_match: Optional[str] = None,
1697
- **kwargs: Any
1698
- ) -> _models.ImmutabilityPolicy:
1699
- """Gets the existing immutability policy along with the corresponding ETag in response headers and
1700
- body.
1701
-
1702
- :param resource_group_name: The name of the resource group within the user's subscription. The
1703
- name is case insensitive. Required.
1704
- :type resource_group_name: str
1705
- :param account_name: The name of the storage account within the specified resource group.
1706
- Storage account names must be between 3 and 24 characters in length and use numbers and
1707
- lower-case letters only. Required.
1708
- :type account_name: str
1709
- :param container_name: The name of the blob container within the specified storage account.
1710
- Blob container names must be between 3 and 63 characters in length and use numbers, lower-case
1711
- letters and dash (-) only. Every dash (-) character must be immediately preceded and followed
1712
- by a letter or number. Required.
1713
- :type container_name: str
1714
- :param immutability_policy_name: The name of the blob container immutabilityPolicy within the
1715
- specified storage account. ImmutabilityPolicy Name must be 'default'. "default" Required.
1716
- :type immutability_policy_name: str or ~azure.mgmt.storage.v2021_04_01.models.Enum35
1717
- :param if_match: The entity state (ETag) version of the immutability policy to update. A value
1718
- of "*" can be used to apply the operation only if the immutability policy already exists. If
1719
- omitted, this operation will always be applied. Default value is None.
1720
- :type if_match: str
1721
- :return: ImmutabilityPolicy or the result of cls(response)
1722
- :rtype: ~azure.mgmt.storage.v2021_04_01.models.ImmutabilityPolicy
1723
- :raises ~azure.core.exceptions.HttpResponseError:
1724
- """
1725
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
1726
- 401: ClientAuthenticationError,
1727
- 404: ResourceNotFoundError,
1728
- 409: ResourceExistsError,
1729
- 304: ResourceNotModifiedError,
1730
- }
1731
- error_map.update(kwargs.pop("error_map", {}) or {})
1732
-
1733
- _headers = kwargs.pop("headers", {}) or {}
1734
- _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
1735
-
1736
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2021-04-01"))
1737
- cls: ClsType[_models.ImmutabilityPolicy] = kwargs.pop("cls", None)
1738
-
1739
- _request = build_get_immutability_policy_request(
1740
- resource_group_name=resource_group_name,
1741
- account_name=account_name,
1742
- container_name=container_name,
1743
- immutability_policy_name=immutability_policy_name,
1744
- subscription_id=self._config.subscription_id,
1745
- if_match=if_match,
1746
- api_version=api_version,
1747
- headers=_headers,
1748
- params=_params,
1749
- )
1750
- _request = _convert_request(_request)
1751
- _request.url = self._client.format_url(_request.url)
1752
-
1753
- _stream = False
1754
- pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access
1755
- _request, stream=_stream, **kwargs
1756
- )
1757
-
1758
- response = pipeline_response.http_response
1759
-
1760
- if response.status_code not in [200]:
1761
- map_error(status_code=response.status_code, response=response, error_map=error_map)
1762
- raise HttpResponseError(response=response, error_format=ARMErrorFormat)
1763
-
1764
- response_headers = {}
1765
- response_headers["ETag"] = self._deserialize("str", response.headers.get("ETag"))
1766
-
1767
- deserialized = self._deserialize("ImmutabilityPolicy", pipeline_response)
1768
-
1769
- if cls:
1770
- return cls(pipeline_response, deserialized, response_headers) # type: ignore
1771
-
1772
- return deserialized # type: ignore
1773
-
1774
- @distributed_trace
1775
- def delete_immutability_policy(
1776
- self,
1777
- resource_group_name: str,
1778
- account_name: str,
1779
- container_name: str,
1780
- immutability_policy_name: Union[str, _models.Enum35],
1781
- if_match: str,
1782
- **kwargs: Any
1783
- ) -> _models.ImmutabilityPolicy:
1784
- """Aborts an unlocked immutability policy. The response of delete has
1785
- immutabilityPeriodSinceCreationInDays set to 0. ETag in If-Match is required for this
1786
- operation. Deleting a locked immutability policy is not allowed, the only way is to delete the
1787
- container after deleting all expired blobs inside the policy locked container.
1788
-
1789
- :param resource_group_name: The name of the resource group within the user's subscription. The
1790
- name is case insensitive. Required.
1791
- :type resource_group_name: str
1792
- :param account_name: The name of the storage account within the specified resource group.
1793
- Storage account names must be between 3 and 24 characters in length and use numbers and
1794
- lower-case letters only. Required.
1795
- :type account_name: str
1796
- :param container_name: The name of the blob container within the specified storage account.
1797
- Blob container names must be between 3 and 63 characters in length and use numbers, lower-case
1798
- letters and dash (-) only. Every dash (-) character must be immediately preceded and followed
1799
- by a letter or number. Required.
1800
- :type container_name: str
1801
- :param immutability_policy_name: The name of the blob container immutabilityPolicy within the
1802
- specified storage account. ImmutabilityPolicy Name must be 'default'. "default" Required.
1803
- :type immutability_policy_name: str or ~azure.mgmt.storage.v2021_04_01.models.Enum35
1804
- :param if_match: The entity state (ETag) version of the immutability policy to update. A value
1805
- of "*" can be used to apply the operation only if the immutability policy already exists. If
1806
- omitted, this operation will always be applied. Required.
1807
- :type if_match: str
1808
- :return: ImmutabilityPolicy or the result of cls(response)
1809
- :rtype: ~azure.mgmt.storage.v2021_04_01.models.ImmutabilityPolicy
1810
- :raises ~azure.core.exceptions.HttpResponseError:
1811
- """
1812
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
1813
- 401: ClientAuthenticationError,
1814
- 404: ResourceNotFoundError,
1815
- 409: ResourceExistsError,
1816
- 304: ResourceNotModifiedError,
1817
- }
1818
- error_map.update(kwargs.pop("error_map", {}) or {})
1819
-
1820
- _headers = kwargs.pop("headers", {}) or {}
1821
- _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
1822
-
1823
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2021-04-01"))
1824
- cls: ClsType[_models.ImmutabilityPolicy] = kwargs.pop("cls", None)
1825
-
1826
- _request = build_delete_immutability_policy_request(
1827
- resource_group_name=resource_group_name,
1828
- account_name=account_name,
1829
- container_name=container_name,
1830
- immutability_policy_name=immutability_policy_name,
1831
- subscription_id=self._config.subscription_id,
1832
- if_match=if_match,
1833
- api_version=api_version,
1834
- headers=_headers,
1835
- params=_params,
1836
- )
1837
- _request = _convert_request(_request)
1838
- _request.url = self._client.format_url(_request.url)
1839
-
1840
- _stream = False
1841
- pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access
1842
- _request, stream=_stream, **kwargs
1843
- )
1844
-
1845
- response = pipeline_response.http_response
1846
-
1847
- if response.status_code not in [200]:
1848
- map_error(status_code=response.status_code, response=response, error_map=error_map)
1849
- raise HttpResponseError(response=response, error_format=ARMErrorFormat)
1850
-
1851
- response_headers = {}
1852
- response_headers["ETag"] = self._deserialize("str", response.headers.get("ETag"))
1853
-
1854
- deserialized = self._deserialize("ImmutabilityPolicy", pipeline_response)
1855
-
1856
- if cls:
1857
- return cls(pipeline_response, deserialized, response_headers) # type: ignore
1858
-
1859
- return deserialized # type: ignore
1860
-
1861
- @distributed_trace
1862
- def lock_immutability_policy(
1863
- self, resource_group_name: str, account_name: str, container_name: str, if_match: str, **kwargs: Any
1864
- ) -> _models.ImmutabilityPolicy:
1865
- """Sets the ImmutabilityPolicy to Locked state. The only action allowed on a Locked policy is
1866
- ExtendImmutabilityPolicy action. ETag in If-Match is required for this operation.
1867
-
1868
- :param resource_group_name: The name of the resource group within the user's subscription. The
1869
- name is case insensitive. Required.
1870
- :type resource_group_name: str
1871
- :param account_name: The name of the storage account within the specified resource group.
1872
- Storage account names must be between 3 and 24 characters in length and use numbers and
1873
- lower-case letters only. Required.
1874
- :type account_name: str
1875
- :param container_name: The name of the blob container within the specified storage account.
1876
- Blob container names must be between 3 and 63 characters in length and use numbers, lower-case
1877
- letters and dash (-) only. Every dash (-) character must be immediately preceded and followed
1878
- by a letter or number. Required.
1879
- :type container_name: str
1880
- :param if_match: The entity state (ETag) version of the immutability policy to update. A value
1881
- of "*" can be used to apply the operation only if the immutability policy already exists. If
1882
- omitted, this operation will always be applied. Required.
1883
- :type if_match: str
1884
- :return: ImmutabilityPolicy or the result of cls(response)
1885
- :rtype: ~azure.mgmt.storage.v2021_04_01.models.ImmutabilityPolicy
1886
- :raises ~azure.core.exceptions.HttpResponseError:
1887
- """
1888
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
1889
- 401: ClientAuthenticationError,
1890
- 404: ResourceNotFoundError,
1891
- 409: ResourceExistsError,
1892
- 304: ResourceNotModifiedError,
1893
- }
1894
- error_map.update(kwargs.pop("error_map", {}) or {})
1895
-
1896
- _headers = kwargs.pop("headers", {}) or {}
1897
- _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
1898
-
1899
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2021-04-01"))
1900
- cls: ClsType[_models.ImmutabilityPolicy] = kwargs.pop("cls", None)
1901
-
1902
- _request = build_lock_immutability_policy_request(
1903
- resource_group_name=resource_group_name,
1904
- account_name=account_name,
1905
- container_name=container_name,
1906
- subscription_id=self._config.subscription_id,
1907
- if_match=if_match,
1908
- api_version=api_version,
1909
- headers=_headers,
1910
- params=_params,
1911
- )
1912
- _request = _convert_request(_request)
1913
- _request.url = self._client.format_url(_request.url)
1914
-
1915
- _stream = False
1916
- pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access
1917
- _request, stream=_stream, **kwargs
1918
- )
1919
-
1920
- response = pipeline_response.http_response
1921
-
1922
- if response.status_code not in [200]:
1923
- map_error(status_code=response.status_code, response=response, error_map=error_map)
1924
- raise HttpResponseError(response=response, error_format=ARMErrorFormat)
1925
-
1926
- response_headers = {}
1927
- response_headers["ETag"] = self._deserialize("str", response.headers.get("ETag"))
1928
-
1929
- deserialized = self._deserialize("ImmutabilityPolicy", pipeline_response)
1930
-
1931
- if cls:
1932
- return cls(pipeline_response, deserialized, response_headers) # type: ignore
1933
-
1934
- return deserialized # type: ignore
1935
-
1936
- @overload
1937
- def extend_immutability_policy(
1938
- self,
1939
- resource_group_name: str,
1940
- account_name: str,
1941
- container_name: str,
1942
- if_match: str,
1943
- parameters: Optional[_models.ImmutabilityPolicy] = None,
1944
- *,
1945
- content_type: str = "application/json",
1946
- **kwargs: Any
1947
- ) -> _models.ImmutabilityPolicy:
1948
- """Extends the immutabilityPeriodSinceCreationInDays of a locked immutabilityPolicy. The only
1949
- action allowed on a Locked policy will be this action. ETag in If-Match is required for this
1950
- operation.
1951
-
1952
- :param resource_group_name: The name of the resource group within the user's subscription. The
1953
- name is case insensitive. Required.
1954
- :type resource_group_name: str
1955
- :param account_name: The name of the storage account within the specified resource group.
1956
- Storage account names must be between 3 and 24 characters in length and use numbers and
1957
- lower-case letters only. Required.
1958
- :type account_name: str
1959
- :param container_name: The name of the blob container within the specified storage account.
1960
- Blob container names must be between 3 and 63 characters in length and use numbers, lower-case
1961
- letters and dash (-) only. Every dash (-) character must be immediately preceded and followed
1962
- by a letter or number. Required.
1963
- :type container_name: str
1964
- :param if_match: The entity state (ETag) version of the immutability policy to update. A value
1965
- of "*" can be used to apply the operation only if the immutability policy already exists. If
1966
- omitted, this operation will always be applied. Required.
1967
- :type if_match: str
1968
- :param parameters: The ImmutabilityPolicy Properties that will be extended for a blob
1969
- container. Default value is None.
1970
- :type parameters: ~azure.mgmt.storage.v2021_04_01.models.ImmutabilityPolicy
1971
- :keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
1972
- Default value is "application/json".
1973
- :paramtype content_type: str
1974
- :return: ImmutabilityPolicy or the result of cls(response)
1975
- :rtype: ~azure.mgmt.storage.v2021_04_01.models.ImmutabilityPolicy
1976
- :raises ~azure.core.exceptions.HttpResponseError:
1977
- """
1978
-
1979
- @overload
1980
- def extend_immutability_policy(
1981
- self,
1982
- resource_group_name: str,
1983
- account_name: str,
1984
- container_name: str,
1985
- if_match: str,
1986
- parameters: Optional[IO[bytes]] = None,
1987
- *,
1988
- content_type: str = "application/json",
1989
- **kwargs: Any
1990
- ) -> _models.ImmutabilityPolicy:
1991
- """Extends the immutabilityPeriodSinceCreationInDays of a locked immutabilityPolicy. The only
1992
- action allowed on a Locked policy will be this action. ETag in If-Match is required for this
1993
- operation.
1994
-
1995
- :param resource_group_name: The name of the resource group within the user's subscription. The
1996
- name is case insensitive. Required.
1997
- :type resource_group_name: str
1998
- :param account_name: The name of the storage account within the specified resource group.
1999
- Storage account names must be between 3 and 24 characters in length and use numbers and
2000
- lower-case letters only. Required.
2001
- :type account_name: str
2002
- :param container_name: The name of the blob container within the specified storage account.
2003
- Blob container names must be between 3 and 63 characters in length and use numbers, lower-case
2004
- letters and dash (-) only. Every dash (-) character must be immediately preceded and followed
2005
- by a letter or number. Required.
2006
- :type container_name: str
2007
- :param if_match: The entity state (ETag) version of the immutability policy to update. A value
2008
- of "*" can be used to apply the operation only if the immutability policy already exists. If
2009
- omitted, this operation will always be applied. Required.
2010
- :type if_match: str
2011
- :param parameters: The ImmutabilityPolicy Properties that will be extended for a blob
2012
- container. Default value is None.
2013
- :type parameters: IO[bytes]
2014
- :keyword content_type: Body Parameter content-type. Content type parameter for binary body.
2015
- Default value is "application/json".
2016
- :paramtype content_type: str
2017
- :return: ImmutabilityPolicy or the result of cls(response)
2018
- :rtype: ~azure.mgmt.storage.v2021_04_01.models.ImmutabilityPolicy
2019
- :raises ~azure.core.exceptions.HttpResponseError:
2020
- """
2021
-
2022
- @distributed_trace
2023
- def extend_immutability_policy(
2024
- self,
2025
- resource_group_name: str,
2026
- account_name: str,
2027
- container_name: str,
2028
- if_match: str,
2029
- parameters: Optional[Union[_models.ImmutabilityPolicy, IO[bytes]]] = None,
2030
- **kwargs: Any
2031
- ) -> _models.ImmutabilityPolicy:
2032
- """Extends the immutabilityPeriodSinceCreationInDays of a locked immutabilityPolicy. The only
2033
- action allowed on a Locked policy will be this action. ETag in If-Match is required for this
2034
- operation.
2035
-
2036
- :param resource_group_name: The name of the resource group within the user's subscription. The
2037
- name is case insensitive. Required.
2038
- :type resource_group_name: str
2039
- :param account_name: The name of the storage account within the specified resource group.
2040
- Storage account names must be between 3 and 24 characters in length and use numbers and
2041
- lower-case letters only. Required.
2042
- :type account_name: str
2043
- :param container_name: The name of the blob container within the specified storage account.
2044
- Blob container names must be between 3 and 63 characters in length and use numbers, lower-case
2045
- letters and dash (-) only. Every dash (-) character must be immediately preceded and followed
2046
- by a letter or number. Required.
2047
- :type container_name: str
2048
- :param if_match: The entity state (ETag) version of the immutability policy to update. A value
2049
- of "*" can be used to apply the operation only if the immutability policy already exists. If
2050
- omitted, this operation will always be applied. Required.
2051
- :type if_match: str
2052
- :param parameters: The ImmutabilityPolicy Properties that will be extended for a blob
2053
- container. Is either a ImmutabilityPolicy type or a IO[bytes] type. Default value is None.
2054
- :type parameters: ~azure.mgmt.storage.v2021_04_01.models.ImmutabilityPolicy or IO[bytes]
2055
- :return: ImmutabilityPolicy or the result of cls(response)
2056
- :rtype: ~azure.mgmt.storage.v2021_04_01.models.ImmutabilityPolicy
2057
- :raises ~azure.core.exceptions.HttpResponseError:
2058
- """
2059
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
2060
- 401: ClientAuthenticationError,
2061
- 404: ResourceNotFoundError,
2062
- 409: ResourceExistsError,
2063
- 304: ResourceNotModifiedError,
2064
- }
2065
- error_map.update(kwargs.pop("error_map", {}) or {})
2066
-
2067
- _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
2068
- _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
2069
-
2070
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2021-04-01"))
2071
- content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
2072
- cls: ClsType[_models.ImmutabilityPolicy] = kwargs.pop("cls", None)
2073
-
2074
- content_type = content_type or "application/json"
2075
- _json = None
2076
- _content = None
2077
- if isinstance(parameters, (IOBase, bytes)):
2078
- _content = parameters
2079
- else:
2080
- if parameters is not None:
2081
- _json = self._serialize.body(parameters, "ImmutabilityPolicy")
2082
- else:
2083
- _json = None
2084
-
2085
- _request = build_extend_immutability_policy_request(
2086
- resource_group_name=resource_group_name,
2087
- account_name=account_name,
2088
- container_name=container_name,
2089
- subscription_id=self._config.subscription_id,
2090
- if_match=if_match,
2091
- api_version=api_version,
2092
- content_type=content_type,
2093
- json=_json,
2094
- content=_content,
2095
- headers=_headers,
2096
- params=_params,
2097
- )
2098
- _request = _convert_request(_request)
2099
- _request.url = self._client.format_url(_request.url)
2100
-
2101
- _stream = False
2102
- pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access
2103
- _request, stream=_stream, **kwargs
2104
- )
2105
-
2106
- response = pipeline_response.http_response
2107
-
2108
- if response.status_code not in [200]:
2109
- map_error(status_code=response.status_code, response=response, error_map=error_map)
2110
- raise HttpResponseError(response=response, error_format=ARMErrorFormat)
2111
-
2112
- response_headers = {}
2113
- response_headers["ETag"] = self._deserialize("str", response.headers.get("ETag"))
2114
-
2115
- deserialized = self._deserialize("ImmutabilityPolicy", pipeline_response)
2116
-
2117
- if cls:
2118
- return cls(pipeline_response, deserialized, response_headers) # type: ignore
2119
-
2120
- return deserialized # type: ignore
2121
-
2122
- @overload
2123
- def lease(
2124
- self,
2125
- resource_group_name: str,
2126
- account_name: str,
2127
- container_name: str,
2128
- parameters: Optional[_models.LeaseContainerRequest] = None,
2129
- *,
2130
- content_type: str = "application/json",
2131
- **kwargs: Any
2132
- ) -> _models.LeaseContainerResponse:
2133
- """The Lease Container operation establishes and manages a lock on a container for delete
2134
- operations. The lock duration can be 15 to 60 seconds, or can be infinite.
2135
-
2136
- :param resource_group_name: The name of the resource group within the user's subscription. The
2137
- name is case insensitive. Required.
2138
- :type resource_group_name: str
2139
- :param account_name: The name of the storage account within the specified resource group.
2140
- Storage account names must be between 3 and 24 characters in length and use numbers and
2141
- lower-case letters only. Required.
2142
- :type account_name: str
2143
- :param container_name: The name of the blob container within the specified storage account.
2144
- Blob container names must be between 3 and 63 characters in length and use numbers, lower-case
2145
- letters and dash (-) only. Every dash (-) character must be immediately preceded and followed
2146
- by a letter or number. Required.
2147
- :type container_name: str
2148
- :param parameters: Lease Container request body. Default value is None.
2149
- :type parameters: ~azure.mgmt.storage.v2021_04_01.models.LeaseContainerRequest
2150
- :keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
2151
- Default value is "application/json".
2152
- :paramtype content_type: str
2153
- :return: LeaseContainerResponse or the result of cls(response)
2154
- :rtype: ~azure.mgmt.storage.v2021_04_01.models.LeaseContainerResponse
2155
- :raises ~azure.core.exceptions.HttpResponseError:
2156
- """
2157
-
2158
- @overload
2159
- def lease(
2160
- self,
2161
- resource_group_name: str,
2162
- account_name: str,
2163
- container_name: str,
2164
- parameters: Optional[IO[bytes]] = None,
2165
- *,
2166
- content_type: str = "application/json",
2167
- **kwargs: Any
2168
- ) -> _models.LeaseContainerResponse:
2169
- """The Lease Container operation establishes and manages a lock on a container for delete
2170
- operations. The lock duration can be 15 to 60 seconds, or can be infinite.
2171
-
2172
- :param resource_group_name: The name of the resource group within the user's subscription. The
2173
- name is case insensitive. Required.
2174
- :type resource_group_name: str
2175
- :param account_name: The name of the storage account within the specified resource group.
2176
- Storage account names must be between 3 and 24 characters in length and use numbers and
2177
- lower-case letters only. Required.
2178
- :type account_name: str
2179
- :param container_name: The name of the blob container within the specified storage account.
2180
- Blob container names must be between 3 and 63 characters in length and use numbers, lower-case
2181
- letters and dash (-) only. Every dash (-) character must be immediately preceded and followed
2182
- by a letter or number. Required.
2183
- :type container_name: str
2184
- :param parameters: Lease Container request body. Default value is None.
2185
- :type parameters: IO[bytes]
2186
- :keyword content_type: Body Parameter content-type. Content type parameter for binary body.
2187
- Default value is "application/json".
2188
- :paramtype content_type: str
2189
- :return: LeaseContainerResponse or the result of cls(response)
2190
- :rtype: ~azure.mgmt.storage.v2021_04_01.models.LeaseContainerResponse
2191
- :raises ~azure.core.exceptions.HttpResponseError:
2192
- """
2193
-
2194
- @distributed_trace
2195
- def lease(
2196
- self,
2197
- resource_group_name: str,
2198
- account_name: str,
2199
- container_name: str,
2200
- parameters: Optional[Union[_models.LeaseContainerRequest, IO[bytes]]] = None,
2201
- **kwargs: Any
2202
- ) -> _models.LeaseContainerResponse:
2203
- """The Lease Container operation establishes and manages a lock on a container for delete
2204
- operations. The lock duration can be 15 to 60 seconds, or can be infinite.
2205
-
2206
- :param resource_group_name: The name of the resource group within the user's subscription. The
2207
- name is case insensitive. Required.
2208
- :type resource_group_name: str
2209
- :param account_name: The name of the storage account within the specified resource group.
2210
- Storage account names must be between 3 and 24 characters in length and use numbers and
2211
- lower-case letters only. Required.
2212
- :type account_name: str
2213
- :param container_name: The name of the blob container within the specified storage account.
2214
- Blob container names must be between 3 and 63 characters in length and use numbers, lower-case
2215
- letters and dash (-) only. Every dash (-) character must be immediately preceded and followed
2216
- by a letter or number. Required.
2217
- :type container_name: str
2218
- :param parameters: Lease Container request body. Is either a LeaseContainerRequest type or a
2219
- IO[bytes] type. Default value is None.
2220
- :type parameters: ~azure.mgmt.storage.v2021_04_01.models.LeaseContainerRequest or IO[bytes]
2221
- :return: LeaseContainerResponse or the result of cls(response)
2222
- :rtype: ~azure.mgmt.storage.v2021_04_01.models.LeaseContainerResponse
2223
- :raises ~azure.core.exceptions.HttpResponseError:
2224
- """
2225
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
2226
- 401: ClientAuthenticationError,
2227
- 404: ResourceNotFoundError,
2228
- 409: ResourceExistsError,
2229
- 304: ResourceNotModifiedError,
2230
- }
2231
- error_map.update(kwargs.pop("error_map", {}) or {})
2232
-
2233
- _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
2234
- _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
2235
-
2236
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2021-04-01"))
2237
- content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
2238
- cls: ClsType[_models.LeaseContainerResponse] = kwargs.pop("cls", None)
2239
-
2240
- content_type = content_type or "application/json"
2241
- _json = None
2242
- _content = None
2243
- if isinstance(parameters, (IOBase, bytes)):
2244
- _content = parameters
2245
- else:
2246
- if parameters is not None:
2247
- _json = self._serialize.body(parameters, "LeaseContainerRequest")
2248
- else:
2249
- _json = None
2250
-
2251
- _request = build_lease_request(
2252
- resource_group_name=resource_group_name,
2253
- account_name=account_name,
2254
- container_name=container_name,
2255
- subscription_id=self._config.subscription_id,
2256
- api_version=api_version,
2257
- content_type=content_type,
2258
- json=_json,
2259
- content=_content,
2260
- headers=_headers,
2261
- params=_params,
2262
- )
2263
- _request = _convert_request(_request)
2264
- _request.url = self._client.format_url(_request.url)
2265
-
2266
- _stream = False
2267
- pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access
2268
- _request, stream=_stream, **kwargs
2269
- )
2270
-
2271
- response = pipeline_response.http_response
2272
-
2273
- if response.status_code not in [200]:
2274
- map_error(status_code=response.status_code, response=response, error_map=error_map)
2275
- raise HttpResponseError(response=response, error_format=ARMErrorFormat)
2276
-
2277
- deserialized = self._deserialize("LeaseContainerResponse", pipeline_response)
2278
-
2279
- if cls:
2280
- return cls(pipeline_response, deserialized, {}) # type: ignore
2281
-
2282
- return deserialized # type: ignore
2283
-
2284
- def _object_level_worm_initial( # pylint: disable=inconsistent-return-statements
2285
- self, resource_group_name: str, account_name: str, container_name: str, **kwargs: Any
2286
- ) -> None:
2287
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
2288
- 401: ClientAuthenticationError,
2289
- 404: ResourceNotFoundError,
2290
- 409: ResourceExistsError,
2291
- 304: ResourceNotModifiedError,
2292
- }
2293
- error_map.update(kwargs.pop("error_map", {}) or {})
2294
-
2295
- _headers = kwargs.pop("headers", {}) or {}
2296
- _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
2297
-
2298
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2021-04-01"))
2299
- cls: ClsType[None] = kwargs.pop("cls", None)
2300
-
2301
- _request = build_object_level_worm_request(
2302
- resource_group_name=resource_group_name,
2303
- account_name=account_name,
2304
- container_name=container_name,
2305
- subscription_id=self._config.subscription_id,
2306
- api_version=api_version,
2307
- headers=_headers,
2308
- params=_params,
2309
- )
2310
- _request = _convert_request(_request)
2311
- _request.url = self._client.format_url(_request.url)
2312
-
2313
- _stream = False
2314
- pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access
2315
- _request, stream=_stream, **kwargs
2316
- )
2317
-
2318
- response = pipeline_response.http_response
2319
-
2320
- if response.status_code not in [200, 202]:
2321
- map_error(status_code=response.status_code, response=response, error_map=error_map)
2322
- raise HttpResponseError(response=response, error_format=ARMErrorFormat)
2323
-
2324
- if cls:
2325
- return cls(pipeline_response, None, {}) # type: ignore
2326
-
2327
- @distributed_trace
2328
- def begin_object_level_worm(
2329
- self, resource_group_name: str, account_name: str, container_name: str, **kwargs: Any
2330
- ) -> LROPoller[None]:
2331
- """This operation migrates a blob container from container level WORM to object level immutability
2332
- enabled container. Prerequisites require a container level immutability policy either in locked
2333
- or unlocked state, Account level versioning must be enabled and there should be no Legal hold
2334
- on the container.
2335
-
2336
- :param resource_group_name: The name of the resource group within the user's subscription. The
2337
- name is case insensitive. Required.
2338
- :type resource_group_name: str
2339
- :param account_name: The name of the storage account within the specified resource group.
2340
- Storage account names must be between 3 and 24 characters in length and use numbers and
2341
- lower-case letters only. Required.
2342
- :type account_name: str
2343
- :param container_name: The name of the blob container within the specified storage account.
2344
- Blob container names must be between 3 and 63 characters in length and use numbers, lower-case
2345
- letters and dash (-) only. Every dash (-) character must be immediately preceded and followed
2346
- by a letter or number. Required.
2347
- :type container_name: str
2348
- :return: An instance of LROPoller that returns either None or the result of cls(response)
2349
- :rtype: ~azure.core.polling.LROPoller[None]
2350
- :raises ~azure.core.exceptions.HttpResponseError:
2351
- """
2352
- _headers = kwargs.pop("headers", {}) or {}
2353
- _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
2354
-
2355
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2021-04-01"))
2356
- cls: ClsType[None] = kwargs.pop("cls", None)
2357
- polling: Union[bool, PollingMethod] = kwargs.pop("polling", True)
2358
- lro_delay = kwargs.pop("polling_interval", self._config.polling_interval)
2359
- cont_token: Optional[str] = kwargs.pop("continuation_token", None)
2360
- if cont_token is None:
2361
- raw_result = self._object_level_worm_initial( # type: ignore
2362
- resource_group_name=resource_group_name,
2363
- account_name=account_name,
2364
- container_name=container_name,
2365
- api_version=api_version,
2366
- cls=lambda x, y, z: x,
2367
- headers=_headers,
2368
- params=_params,
2369
- **kwargs
2370
- )
2371
- kwargs.pop("error_map", None)
2372
-
2373
- def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements
2374
- if cls:
2375
- return cls(pipeline_response, None, {}) # type: ignore
2376
-
2377
- if polling is True:
2378
- polling_method: PollingMethod = cast(
2379
- PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "location"}, **kwargs)
2380
- )
2381
- elif polling is False:
2382
- polling_method = cast(PollingMethod, NoPolling())
2383
- else:
2384
- polling_method = polling
2385
- if cont_token:
2386
- return LROPoller[None].from_continuation_token(
2387
- polling_method=polling_method,
2388
- continuation_token=cont_token,
2389
- client=self._client,
2390
- deserialization_callback=get_long_running_output,
2391
- )
2392
- return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore