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