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