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