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