azure-mgmt-storage 21.2.0__py3-none-any.whl → 22.0.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 (957) hide show
  1. azure/mgmt/storage/_serialization.py +282 -169
  2. azure/mgmt/storage/_storage_management_client.py +16 -795
  3. azure/mgmt/storage/_version.py +1 -1
  4. azure/mgmt/storage/aio/_storage_management_client.py +16 -795
  5. azure/mgmt/storage/models.py +1 -1
  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/v2023_05_01/__init__.py +9 -3
  92. azure/mgmt/storage/v2023_05_01/_configuration.py +1 -2
  93. azure/mgmt/storage/v2023_05_01/_storage_management_client.py +3 -3
  94. azure/mgmt/storage/v2023_05_01/_version.py +1 -1
  95. azure/mgmt/storage/v2023_05_01/aio/__init__.py +9 -3
  96. azure/mgmt/storage/v2023_05_01/aio/_configuration.py +1 -2
  97. azure/mgmt/storage/v2023_05_01/aio/_storage_management_client.py +3 -3
  98. azure/mgmt/storage/v2023_05_01/aio/operations/__init__.py +32 -26
  99. azure/mgmt/storage/v2023_05_01/aio/operations/_blob_containers_operations.py +88 -86
  100. azure/mgmt/storage/v2023_05_01/aio/operations/_blob_inventory_policies_operations.py +10 -18
  101. azure/mgmt/storage/v2023_05_01/aio/operations/_blob_services_operations.py +8 -15
  102. azure/mgmt/storage/v2023_05_01/aio/operations/_deleted_accounts_operations.py +6 -12
  103. azure/mgmt/storage/v2023_05_01/aio/operations/_encryption_scopes_operations.py +10 -22
  104. azure/mgmt/storage/v2023_05_01/aio/operations/_file_services_operations.py +9 -15
  105. azure/mgmt/storage/v2023_05_01/aio/operations/_file_shares_operations.py +18 -33
  106. azure/mgmt/storage/v2023_05_01/aio/operations/_local_users_operations.py +14 -26
  107. azure/mgmt/storage/v2023_05_01/aio/operations/_management_policies_operations.py +9 -15
  108. azure/mgmt/storage/v2023_05_01/aio/operations/_network_security_perimeter_configurations_operations.py +26 -20
  109. azure/mgmt/storage/v2023_05_01/aio/operations/_object_replication_policies_operations.py +10 -18
  110. azure/mgmt/storage/v2023_05_01/aio/operations/_operations.py +4 -9
  111. azure/mgmt/storage/v2023_05_01/aio/operations/_private_endpoint_connections_operations.py +10 -18
  112. azure/mgmt/storage/v2023_05_01/aio/operations/_private_link_resources_operations.py +5 -9
  113. azure/mgmt/storage/v2023_05_01/aio/operations/_queue_operations.py +12 -23
  114. azure/mgmt/storage/v2023_05_01/aio/operations/_queue_services_operations.py +9 -15
  115. azure/mgmt/storage/v2023_05_01/aio/operations/_skus_operations.py +4 -9
  116. azure/mgmt/storage/v2023_05_01/aio/operations/_storage_accounts_operations.py +133 -98
  117. azure/mgmt/storage/v2023_05_01/aio/operations/_storage_task_assignment_instances_report_operations.py +7 -11
  118. azure/mgmt/storage/v2023_05_01/aio/operations/_storage_task_assignments_instances_report_operations.py +7 -11
  119. azure/mgmt/storage/v2023_05_01/aio/operations/_storage_task_assignments_operations.py +53 -45
  120. azure/mgmt/storage/v2023_05_01/aio/operations/_table_operations.py +12 -23
  121. azure/mgmt/storage/v2023_05_01/aio/operations/_table_services_operations.py +9 -15
  122. azure/mgmt/storage/v2023_05_01/aio/operations/_usages_operations.py +4 -9
  123. azure/mgmt/storage/v2023_05_01/models/__init__.py +273 -262
  124. azure/mgmt/storage/v2023_05_01/models/_models_py3.py +18 -19
  125. azure/mgmt/storage/v2023_05_01/models/_storage_management_client_enums.py +2 -0
  126. azure/mgmt/storage/v2023_05_01/operations/__init__.py +32 -26
  127. azure/mgmt/storage/v2023_05_01/operations/_blob_containers_operations.py +74 -83
  128. azure/mgmt/storage/v2023_05_01/operations/_blob_inventory_policies_operations.py +9 -17
  129. azure/mgmt/storage/v2023_05_01/operations/_blob_services_operations.py +8 -15
  130. azure/mgmt/storage/v2023_05_01/operations/_deleted_accounts_operations.py +6 -12
  131. azure/mgmt/storage/v2023_05_01/operations/_encryption_scopes_operations.py +10 -22
  132. azure/mgmt/storage/v2023_05_01/operations/_file_services_operations.py +9 -15
  133. azure/mgmt/storage/v2023_05_01/operations/_file_shares_operations.py +17 -31
  134. azure/mgmt/storage/v2023_05_01/operations/_local_users_operations.py +13 -23
  135. azure/mgmt/storage/v2023_05_01/operations/_management_policies_operations.py +8 -14
  136. azure/mgmt/storage/v2023_05_01/operations/_network_security_perimeter_configurations_operations.py +25 -20
  137. azure/mgmt/storage/v2023_05_01/operations/_object_replication_policies_operations.py +9 -17
  138. azure/mgmt/storage/v2023_05_01/operations/_operations.py +4 -9
  139. azure/mgmt/storage/v2023_05_01/operations/_private_endpoint_connections_operations.py +9 -17
  140. azure/mgmt/storage/v2023_05_01/operations/_private_link_resources_operations.py +5 -9
  141. azure/mgmt/storage/v2023_05_01/operations/_queue_operations.py +11 -20
  142. azure/mgmt/storage/v2023_05_01/operations/_queue_services_operations.py +9 -15
  143. azure/mgmt/storage/v2023_05_01/operations/_skus_operations.py +4 -9
  144. azure/mgmt/storage/v2023_05_01/operations/_storage_accounts_operations.py +118 -92
  145. azure/mgmt/storage/v2023_05_01/operations/_storage_task_assignment_instances_report_operations.py +9 -13
  146. azure/mgmt/storage/v2023_05_01/operations/_storage_task_assignments_instances_report_operations.py +9 -13
  147. azure/mgmt/storage/v2023_05_01/operations/_storage_task_assignments_operations.py +56 -47
  148. azure/mgmt/storage/v2023_05_01/operations/_table_operations.py +11 -20
  149. azure/mgmt/storage/v2023_05_01/operations/_table_services_operations.py +9 -15
  150. azure/mgmt/storage/v2023_05_01/operations/_usages_operations.py +4 -9
  151. azure/mgmt/storage/v2023_05_01/py.typed +1 -0
  152. {azure_mgmt_storage-21.2.0.dist-info → azure_mgmt_storage-22.0.0.dist-info}/METADATA +19 -4
  153. azure_mgmt_storage-22.0.0.dist-info/RECORD +183 -0
  154. {azure_mgmt_storage-21.2.0.dist-info → azure_mgmt_storage-22.0.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/_patch.py +0 -20
  167. azure/mgmt/storage/v2015_06_15/aio/operations/_storage_accounts_operations.py +0 -1030
  168. azure/mgmt/storage/v2015_06_15/aio/operations/_usage_operations.py +0 -135
  169. azure/mgmt/storage/v2015_06_15/models/__init__.py +0 -55
  170. azure/mgmt/storage/v2015_06_15/models/_models_py3.py +0 -660
  171. azure/mgmt/storage/v2015_06_15/models/_patch.py +0 -20
  172. azure/mgmt/storage/v2015_06_15/models/_storage_management_enums.py +0 -59
  173. azure/mgmt/storage/v2015_06_15/operations/__init__.py +0 -21
  174. azure/mgmt/storage/v2015_06_15/operations/_patch.py +0 -20
  175. azure/mgmt/storage/v2015_06_15/operations/_storage_accounts_operations.py +0 -1297
  176. azure/mgmt/storage/v2015_06_15/operations/_usage_operations.py +0 -162
  177. azure/mgmt/storage/v2016_01_01/_vendor.py +0 -16
  178. azure/mgmt/storage/v2016_12_01/__init__.py +0 -26
  179. azure/mgmt/storage/v2016_12_01/_configuration.py +0 -66
  180. azure/mgmt/storage/v2016_12_01/_patch.py +0 -32
  181. azure/mgmt/storage/v2016_12_01/_storage_management.py +0 -115
  182. azure/mgmt/storage/v2016_12_01/_vendor.py +0 -16
  183. azure/mgmt/storage/v2016_12_01/_version.py +0 -9
  184. azure/mgmt/storage/v2016_12_01/aio/__init__.py +0 -23
  185. azure/mgmt/storage/v2016_12_01/aio/_configuration.py +0 -66
  186. azure/mgmt/storage/v2016_12_01/aio/_patch.py +0 -32
  187. azure/mgmt/storage/v2016_12_01/aio/_storage_management.py +0 -118
  188. azure/mgmt/storage/v2016_12_01/aio/operations/__init__.py +0 -21
  189. azure/mgmt/storage/v2016_12_01/aio/operations/_patch.py +0 -20
  190. azure/mgmt/storage/v2016_12_01/aio/operations/_storage_accounts_operations.py +0 -1310
  191. azure/mgmt/storage/v2016_12_01/aio/operations/_usage_operations.py +0 -135
  192. azure/mgmt/storage/v2016_12_01/models/__init__.py +0 -97
  193. azure/mgmt/storage/v2016_12_01/models/_models_py3.py +0 -1210
  194. azure/mgmt/storage/v2016_12_01/models/_patch.py +0 -20
  195. azure/mgmt/storage/v2016_12_01/models/_storage_management_enums.py +0 -169
  196. azure/mgmt/storage/v2016_12_01/operations/__init__.py +0 -21
  197. azure/mgmt/storage/v2016_12_01/operations/_patch.py +0 -20
  198. azure/mgmt/storage/v2016_12_01/operations/_storage_accounts_operations.py +0 -1647
  199. azure/mgmt/storage/v2016_12_01/operations/_usage_operations.py +0 -162
  200. azure/mgmt/storage/v2017_06_01/__init__.py +0 -26
  201. azure/mgmt/storage/v2017_06_01/_configuration.py +0 -66
  202. azure/mgmt/storage/v2017_06_01/_patch.py +0 -32
  203. azure/mgmt/storage/v2017_06_01/_storage_management.py +0 -121
  204. azure/mgmt/storage/v2017_06_01/_vendor.py +0 -16
  205. azure/mgmt/storage/v2017_06_01/_version.py +0 -9
  206. azure/mgmt/storage/v2017_06_01/aio/__init__.py +0 -23
  207. azure/mgmt/storage/v2017_06_01/aio/_configuration.py +0 -66
  208. azure/mgmt/storage/v2017_06_01/aio/_patch.py +0 -32
  209. azure/mgmt/storage/v2017_06_01/aio/_storage_management.py +0 -124
  210. azure/mgmt/storage/v2017_06_01/aio/operations/__init__.py +0 -25
  211. azure/mgmt/storage/v2017_06_01/aio/operations/_operations.py +0 -135
  212. azure/mgmt/storage/v2017_06_01/aio/operations/_patch.py +0 -20
  213. azure/mgmt/storage/v2017_06_01/aio/operations/_skus_operations.py +0 -135
  214. azure/mgmt/storage/v2017_06_01/aio/operations/_storage_accounts_operations.py +0 -1310
  215. azure/mgmt/storage/v2017_06_01/aio/operations/_usage_operations.py +0 -135
  216. azure/mgmt/storage/v2017_06_01/models/__init__.py +0 -129
  217. azure/mgmt/storage/v2017_06_01/models/_models_py3.py +0 -1843
  218. azure/mgmt/storage/v2017_06_01/models/_patch.py +0 -20
  219. azure/mgmt/storage/v2017_06_01/models/_storage_management_enums.py +0 -191
  220. azure/mgmt/storage/v2017_06_01/operations/__init__.py +0 -25
  221. azure/mgmt/storage/v2017_06_01/operations/_operations.py +0 -156
  222. azure/mgmt/storage/v2017_06_01/operations/_patch.py +0 -20
  223. azure/mgmt/storage/v2017_06_01/operations/_skus_operations.py +0 -162
  224. azure/mgmt/storage/v2017_06_01/operations/_storage_accounts_operations.py +0 -1647
  225. azure/mgmt/storage/v2017_06_01/operations/_usage_operations.py +0 -162
  226. azure/mgmt/storage/v2017_10_01/_vendor.py +0 -16
  227. azure/mgmt/storage/v2018_02_01/__init__.py +0 -26
  228. azure/mgmt/storage/v2018_02_01/_configuration.py +0 -65
  229. azure/mgmt/storage/v2018_02_01/_patch.py +0 -32
  230. azure/mgmt/storage/v2018_02_01/_storage_management_client.py +0 -127
  231. azure/mgmt/storage/v2018_02_01/_vendor.py +0 -16
  232. azure/mgmt/storage/v2018_02_01/_version.py +0 -9
  233. azure/mgmt/storage/v2018_02_01/aio/__init__.py +0 -23
  234. azure/mgmt/storage/v2018_02_01/aio/_configuration.py +0 -65
  235. azure/mgmt/storage/v2018_02_01/aio/_patch.py +0 -32
  236. azure/mgmt/storage/v2018_02_01/aio/_storage_management_client.py +0 -131
  237. azure/mgmt/storage/v2018_02_01/aio/operations/__init__.py +0 -27
  238. azure/mgmt/storage/v2018_02_01/aio/operations/_blob_containers_operations.py +0 -1692
  239. azure/mgmt/storage/v2018_02_01/aio/operations/_operations.py +0 -135
  240. azure/mgmt/storage/v2018_02_01/aio/operations/_patch.py +0 -20
  241. azure/mgmt/storage/v2018_02_01/aio/operations/_skus_operations.py +0 -135
  242. azure/mgmt/storage/v2018_02_01/aio/operations/_storage_accounts_operations.py +0 -1310
  243. azure/mgmt/storage/v2018_02_01/aio/operations/_usage_operations.py +0 -215
  244. azure/mgmt/storage/v2018_02_01/models/__init__.py +0 -171
  245. azure/mgmt/storage/v2018_02_01/models/_models_py3.py +0 -2556
  246. azure/mgmt/storage/v2018_02_01/models/_patch.py +0 -20
  247. azure/mgmt/storage/v2018_02_01/models/_storage_management_client_enums.py +0 -259
  248. azure/mgmt/storage/v2018_02_01/operations/__init__.py +0 -27
  249. azure/mgmt/storage/v2018_02_01/operations/_blob_containers_operations.py +0 -2178
  250. azure/mgmt/storage/v2018_02_01/operations/_operations.py +0 -156
  251. azure/mgmt/storage/v2018_02_01/operations/_patch.py +0 -20
  252. azure/mgmt/storage/v2018_02_01/operations/_skus_operations.py +0 -162
  253. azure/mgmt/storage/v2018_02_01/operations/_storage_accounts_operations.py +0 -1647
  254. azure/mgmt/storage/v2018_02_01/operations/_usage_operations.py +0 -269
  255. azure/mgmt/storage/v2018_03_01_preview/__init__.py +0 -26
  256. azure/mgmt/storage/v2018_03_01_preview/_configuration.py +0 -65
  257. azure/mgmt/storage/v2018_03_01_preview/_patch.py +0 -32
  258. azure/mgmt/storage/v2018_03_01_preview/_storage_management_client.py +0 -146
  259. azure/mgmt/storage/v2018_03_01_preview/_vendor.py +0 -16
  260. azure/mgmt/storage/v2018_03_01_preview/_version.py +0 -9
  261. azure/mgmt/storage/v2018_03_01_preview/aio/__init__.py +0 -23
  262. azure/mgmt/storage/v2018_03_01_preview/aio/_configuration.py +0 -65
  263. azure/mgmt/storage/v2018_03_01_preview/aio/_patch.py +0 -32
  264. azure/mgmt/storage/v2018_03_01_preview/aio/_storage_management_client.py +0 -148
  265. azure/mgmt/storage/v2018_03_01_preview/aio/operations/__init__.py +0 -29
  266. azure/mgmt/storage/v2018_03_01_preview/aio/operations/_blob_containers_operations.py +0 -1721
  267. azure/mgmt/storage/v2018_03_01_preview/aio/operations/_management_policies_operations.py +0 -357
  268. azure/mgmt/storage/v2018_03_01_preview/aio/operations/_operations.py +0 -137
  269. azure/mgmt/storage/v2018_03_01_preview/aio/operations/_patch.py +0 -20
  270. azure/mgmt/storage/v2018_03_01_preview/aio/operations/_skus_operations.py +0 -138
  271. azure/mgmt/storage/v2018_03_01_preview/aio/operations/_storage_accounts_operations.py +0 -1635
  272. azure/mgmt/storage/v2018_03_01_preview/aio/operations/_usages_operations.py +0 -221
  273. azure/mgmt/storage/v2018_03_01_preview/models/__init__.py +0 -181
  274. azure/mgmt/storage/v2018_03_01_preview/models/_models_py3.py +0 -2699
  275. azure/mgmt/storage/v2018_03_01_preview/models/_patch.py +0 -20
  276. azure/mgmt/storage/v2018_03_01_preview/models/_storage_management_client_enums.py +0 -265
  277. azure/mgmt/storage/v2018_03_01_preview/operations/__init__.py +0 -29
  278. azure/mgmt/storage/v2018_03_01_preview/operations/_blob_containers_operations.py +0 -2207
  279. azure/mgmt/storage/v2018_03_01_preview/operations/_management_policies_operations.py +0 -467
  280. azure/mgmt/storage/v2018_03_01_preview/operations/_operations.py +0 -158
  281. azure/mgmt/storage/v2018_03_01_preview/operations/_patch.py +0 -20
  282. azure/mgmt/storage/v2018_03_01_preview/operations/_skus_operations.py +0 -164
  283. azure/mgmt/storage/v2018_03_01_preview/operations/_storage_accounts_operations.py +0 -2085
  284. azure/mgmt/storage/v2018_03_01_preview/operations/_usages_operations.py +0 -273
  285. azure/mgmt/storage/v2018_07_01/__init__.py +0 -26
  286. azure/mgmt/storage/v2018_07_01/_configuration.py +0 -65
  287. azure/mgmt/storage/v2018_07_01/_patch.py +0 -32
  288. azure/mgmt/storage/v2018_07_01/_storage_management_client.py +0 -139
  289. azure/mgmt/storage/v2018_07_01/_vendor.py +0 -16
  290. azure/mgmt/storage/v2018_07_01/_version.py +0 -9
  291. azure/mgmt/storage/v2018_07_01/aio/__init__.py +0 -23
  292. azure/mgmt/storage/v2018_07_01/aio/_configuration.py +0 -65
  293. azure/mgmt/storage/v2018_07_01/aio/_patch.py +0 -32
  294. azure/mgmt/storage/v2018_07_01/aio/_storage_management_client.py +0 -143
  295. azure/mgmt/storage/v2018_07_01/aio/operations/__init__.py +0 -29
  296. azure/mgmt/storage/v2018_07_01/aio/operations/_blob_containers_operations.py +0 -1692
  297. azure/mgmt/storage/v2018_07_01/aio/operations/_blob_services_operations.py +0 -282
  298. azure/mgmt/storage/v2018_07_01/aio/operations/_operations.py +0 -135
  299. azure/mgmt/storage/v2018_07_01/aio/operations/_patch.py +0 -20
  300. azure/mgmt/storage/v2018_07_01/aio/operations/_skus_operations.py +0 -135
  301. azure/mgmt/storage/v2018_07_01/aio/operations/_storage_accounts_operations.py +0 -1420
  302. azure/mgmt/storage/v2018_07_01/aio/operations/_usages_operations.py +0 -139
  303. azure/mgmt/storage/v2018_07_01/models/__init__.py +0 -185
  304. azure/mgmt/storage/v2018_07_01/models/_models_py3.py +0 -2838
  305. azure/mgmt/storage/v2018_07_01/models/_patch.py +0 -20
  306. azure/mgmt/storage/v2018_07_01/models/_storage_management_client_enums.py +0 -287
  307. azure/mgmt/storage/v2018_07_01/operations/__init__.py +0 -29
  308. azure/mgmt/storage/v2018_07_01/operations/_blob_containers_operations.py +0 -2178
  309. azure/mgmt/storage/v2018_07_01/operations/_blob_services_operations.py +0 -361
  310. azure/mgmt/storage/v2018_07_01/operations/_operations.py +0 -156
  311. azure/mgmt/storage/v2018_07_01/operations/_patch.py +0 -20
  312. azure/mgmt/storage/v2018_07_01/operations/_skus_operations.py +0 -162
  313. azure/mgmt/storage/v2018_07_01/operations/_storage_accounts_operations.py +0 -1792
  314. azure/mgmt/storage/v2018_07_01/operations/_usages_operations.py +0 -169
  315. azure/mgmt/storage/v2018_11_01/__init__.py +0 -26
  316. azure/mgmt/storage/v2018_11_01/_configuration.py +0 -65
  317. azure/mgmt/storage/v2018_11_01/_patch.py +0 -32
  318. azure/mgmt/storage/v2018_11_01/_storage_management_client.py +0 -146
  319. azure/mgmt/storage/v2018_11_01/_vendor.py +0 -16
  320. azure/mgmt/storage/v2018_11_01/_version.py +0 -9
  321. azure/mgmt/storage/v2018_11_01/aio/__init__.py +0 -23
  322. azure/mgmt/storage/v2018_11_01/aio/_configuration.py +0 -65
  323. azure/mgmt/storage/v2018_11_01/aio/_patch.py +0 -32
  324. azure/mgmt/storage/v2018_11_01/aio/_storage_management_client.py +0 -150
  325. azure/mgmt/storage/v2018_11_01/aio/operations/__init__.py +0 -31
  326. azure/mgmt/storage/v2018_11_01/aio/operations/_blob_containers_operations.py +0 -1696
  327. azure/mgmt/storage/v2018_11_01/aio/operations/_blob_services_operations.py +0 -282
  328. azure/mgmt/storage/v2018_11_01/aio/operations/_management_policies_operations.py +0 -349
  329. azure/mgmt/storage/v2018_11_01/aio/operations/_operations.py +0 -135
  330. azure/mgmt/storage/v2018_11_01/aio/operations/_patch.py +0 -20
  331. azure/mgmt/storage/v2018_11_01/aio/operations/_skus_operations.py +0 -135
  332. azure/mgmt/storage/v2018_11_01/aio/operations/_storage_accounts_operations.py +0 -1477
  333. azure/mgmt/storage/v2018_11_01/aio/operations/_usages_operations.py +0 -139
  334. azure/mgmt/storage/v2018_11_01/models/__init__.py +0 -209
  335. azure/mgmt/storage/v2018_11_01/models/_models_py3.py +0 -3194
  336. azure/mgmt/storage/v2018_11_01/models/_patch.py +0 -20
  337. azure/mgmt/storage/v2018_11_01/models/_storage_management_client_enums.py +0 -299
  338. azure/mgmt/storage/v2018_11_01/operations/__init__.py +0 -31
  339. azure/mgmt/storage/v2018_11_01/operations/_blob_containers_operations.py +0 -2182
  340. azure/mgmt/storage/v2018_11_01/operations/_blob_services_operations.py +0 -361
  341. azure/mgmt/storage/v2018_11_01/operations/_management_policies_operations.py +0 -459
  342. azure/mgmt/storage/v2018_11_01/operations/_operations.py +0 -156
  343. azure/mgmt/storage/v2018_11_01/operations/_patch.py +0 -20
  344. azure/mgmt/storage/v2018_11_01/operations/_skus_operations.py +0 -162
  345. azure/mgmt/storage/v2018_11_01/operations/_storage_accounts_operations.py +0 -1875
  346. azure/mgmt/storage/v2018_11_01/operations/_usages_operations.py +0 -169
  347. azure/mgmt/storage/v2019_04_01/__init__.py +0 -26
  348. azure/mgmt/storage/v2019_04_01/_configuration.py +0 -65
  349. azure/mgmt/storage/v2019_04_01/_patch.py +0 -32
  350. azure/mgmt/storage/v2019_04_01/_storage_management_client.py +0 -158
  351. azure/mgmt/storage/v2019_04_01/_vendor.py +0 -16
  352. azure/mgmt/storage/v2019_04_01/_version.py +0 -9
  353. azure/mgmt/storage/v2019_04_01/aio/__init__.py +0 -23
  354. azure/mgmt/storage/v2019_04_01/aio/_configuration.py +0 -65
  355. azure/mgmt/storage/v2019_04_01/aio/_patch.py +0 -32
  356. azure/mgmt/storage/v2019_04_01/aio/_storage_management_client.py +0 -162
  357. azure/mgmt/storage/v2019_04_01/aio/operations/__init__.py +0 -35
  358. azure/mgmt/storage/v2019_04_01/aio/operations/_blob_containers_operations.py +0 -1746
  359. azure/mgmt/storage/v2019_04_01/aio/operations/_blob_services_operations.py +0 -375
  360. azure/mgmt/storage/v2019_04_01/aio/operations/_file_services_operations.py +0 -341
  361. azure/mgmt/storage/v2019_04_01/aio/operations/_file_shares_operations.py +0 -625
  362. azure/mgmt/storage/v2019_04_01/aio/operations/_management_policies_operations.py +0 -349
  363. azure/mgmt/storage/v2019_04_01/aio/operations/_operations.py +0 -135
  364. azure/mgmt/storage/v2019_04_01/aio/operations/_patch.py +0 -20
  365. azure/mgmt/storage/v2019_04_01/aio/operations/_skus_operations.py +0 -135
  366. azure/mgmt/storage/v2019_04_01/aio/operations/_storage_accounts_operations.py +0 -1483
  367. azure/mgmt/storage/v2019_04_01/aio/operations/_usages_operations.py +0 -139
  368. azure/mgmt/storage/v2019_04_01/models/__init__.py +0 -235
  369. azure/mgmt/storage/v2019_04_01/models/_models_py3.py +0 -3799
  370. azure/mgmt/storage/v2019_04_01/models/_patch.py +0 -20
  371. azure/mgmt/storage/v2019_04_01/models/_storage_management_client_enums.py +0 -326
  372. azure/mgmt/storage/v2019_04_01/operations/__init__.py +0 -35
  373. azure/mgmt/storage/v2019_04_01/operations/_blob_containers_operations.py +0 -2245
  374. azure/mgmt/storage/v2019_04_01/operations/_blob_services_operations.py +0 -483
  375. azure/mgmt/storage/v2019_04_01/operations/_file_services_operations.py +0 -450
  376. azure/mgmt/storage/v2019_04_01/operations/_file_shares_operations.py +0 -806
  377. azure/mgmt/storage/v2019_04_01/operations/_management_policies_operations.py +0 -459
  378. azure/mgmt/storage/v2019_04_01/operations/_operations.py +0 -156
  379. azure/mgmt/storage/v2019_04_01/operations/_patch.py +0 -20
  380. azure/mgmt/storage/v2019_04_01/operations/_skus_operations.py +0 -162
  381. azure/mgmt/storage/v2019_04_01/operations/_storage_accounts_operations.py +0 -1888
  382. azure/mgmt/storage/v2019_04_01/operations/_usages_operations.py +0 -169
  383. azure/mgmt/storage/v2019_06_01/_vendor.py +0 -16
  384. azure/mgmt/storage/v2020_08_01_preview/__init__.py +0 -26
  385. azure/mgmt/storage/v2020_08_01_preview/_configuration.py +0 -65
  386. azure/mgmt/storage/v2020_08_01_preview/_patch.py +0 -32
  387. azure/mgmt/storage/v2020_08_01_preview/_storage_management_client.py +0 -234
  388. azure/mgmt/storage/v2020_08_01_preview/_vendor.py +0 -16
  389. azure/mgmt/storage/v2020_08_01_preview/_version.py +0 -9
  390. azure/mgmt/storage/v2020_08_01_preview/aio/__init__.py +0 -23
  391. azure/mgmt/storage/v2020_08_01_preview/aio/_configuration.py +0 -65
  392. azure/mgmt/storage/v2020_08_01_preview/aio/_patch.py +0 -32
  393. azure/mgmt/storage/v2020_08_01_preview/aio/_storage_management_client.py +0 -237
  394. azure/mgmt/storage/v2020_08_01_preview/aio/operations/__init__.py +0 -55
  395. azure/mgmt/storage/v2020_08_01_preview/aio/operations/_blob_containers_operations.py +0 -1776
  396. azure/mgmt/storage/v2020_08_01_preview/aio/operations/_blob_inventory_policies_operations.py +0 -454
  397. azure/mgmt/storage/v2020_08_01_preview/aio/operations/_blob_services_operations.py +0 -382
  398. azure/mgmt/storage/v2020_08_01_preview/aio/operations/_deleted_accounts_operations.py +0 -198
  399. azure/mgmt/storage/v2020_08_01_preview/aio/operations/_encryption_scopes_operations.py +0 -560
  400. azure/mgmt/storage/v2020_08_01_preview/aio/operations/_file_services_operations.py +0 -348
  401. azure/mgmt/storage/v2020_08_01_preview/aio/operations/_file_shares_operations.py +0 -825
  402. azure/mgmt/storage/v2020_08_01_preview/aio/operations/_management_policies_operations.py +0 -355
  403. azure/mgmt/storage/v2020_08_01_preview/aio/operations/_object_replication_policies_operations.py +0 -445
  404. azure/mgmt/storage/v2020_08_01_preview/aio/operations/_operations.py +0 -137
  405. azure/mgmt/storage/v2020_08_01_preview/aio/operations/_patch.py +0 -20
  406. azure/mgmt/storage/v2020_08_01_preview/aio/operations/_private_endpoint_connections_operations.py +0 -441
  407. azure/mgmt/storage/v2020_08_01_preview/aio/operations/_private_link_resources_operations.py +0 -119
  408. azure/mgmt/storage/v2020_08_01_preview/aio/operations/_queue_operations.py +0 -618
  409. azure/mgmt/storage/v2020_08_01_preview/aio/operations/_queue_services_operations.py +0 -348
  410. azure/mgmt/storage/v2020_08_01_preview/aio/operations/_skus_operations.py +0 -138
  411. azure/mgmt/storage/v2020_08_01_preview/aio/operations/_storage_accounts_operations.py +0 -1725
  412. azure/mgmt/storage/v2020_08_01_preview/aio/operations/_table_operations.py +0 -416
  413. azure/mgmt/storage/v2020_08_01_preview/aio/operations/_table_services_operations.py +0 -348
  414. azure/mgmt/storage/v2020_08_01_preview/aio/operations/_usages_operations.py +0 -142
  415. azure/mgmt/storage/v2020_08_01_preview/models/__init__.py +0 -373
  416. azure/mgmt/storage/v2020_08_01_preview/models/_models_py3.py +0 -6344
  417. azure/mgmt/storage/v2020_08_01_preview/models/_patch.py +0 -20
  418. azure/mgmt/storage/v2020_08_01_preview/models/_storage_management_client_enums.py +0 -468
  419. azure/mgmt/storage/v2020_08_01_preview/operations/__init__.py +0 -55
  420. azure/mgmt/storage/v2020_08_01_preview/operations/_blob_containers_operations.py +0 -2276
  421. azure/mgmt/storage/v2020_08_01_preview/operations/_blob_inventory_policies_operations.py +0 -599
  422. azure/mgmt/storage/v2020_08_01_preview/operations/_blob_services_operations.py +0 -490
  423. azure/mgmt/storage/v2020_08_01_preview/operations/_deleted_accounts_operations.py +0 -255
  424. azure/mgmt/storage/v2020_08_01_preview/operations/_encryption_scopes_operations.py +0 -700
  425. azure/mgmt/storage/v2020_08_01_preview/operations/_file_services_operations.py +0 -457
  426. azure/mgmt/storage/v2020_08_01_preview/operations/_file_shares_operations.py +0 -1072
  427. azure/mgmt/storage/v2020_08_01_preview/operations/_management_policies_operations.py +0 -465
  428. azure/mgmt/storage/v2020_08_01_preview/operations/_object_replication_policies_operations.py +0 -584
  429. azure/mgmt/storage/v2020_08_01_preview/operations/_operations.py +0 -158
  430. azure/mgmt/storage/v2020_08_01_preview/operations/_patch.py +0 -20
  431. azure/mgmt/storage/v2020_08_01_preview/operations/_private_endpoint_connections_operations.py +0 -592
  432. azure/mgmt/storage/v2020_08_01_preview/operations/_private_link_resources_operations.py +0 -155
  433. azure/mgmt/storage/v2020_08_01_preview/operations/_queue_operations.py +0 -824
  434. azure/mgmt/storage/v2020_08_01_preview/operations/_queue_services_operations.py +0 -457
  435. azure/mgmt/storage/v2020_08_01_preview/operations/_skus_operations.py +0 -165
  436. azure/mgmt/storage/v2020_08_01_preview/operations/_storage_accounts_operations.py +0 -2170
  437. azure/mgmt/storage/v2020_08_01_preview/operations/_table_operations.py +0 -582
  438. azure/mgmt/storage/v2020_08_01_preview/operations/_table_services_operations.py +0 -457
  439. azure/mgmt/storage/v2020_08_01_preview/operations/_usages_operations.py +0 -171
  440. azure/mgmt/storage/v2021_01_01/__init__.py +0 -26
  441. azure/mgmt/storage/v2021_01_01/_configuration.py +0 -65
  442. azure/mgmt/storage/v2021_01_01/_patch.py +0 -32
  443. azure/mgmt/storage/v2021_01_01/_storage_management_client.py +0 -219
  444. azure/mgmt/storage/v2021_01_01/_vendor.py +0 -16
  445. azure/mgmt/storage/v2021_01_01/_version.py +0 -9
  446. azure/mgmt/storage/v2021_01_01/aio/__init__.py +0 -23
  447. azure/mgmt/storage/v2021_01_01/aio/_configuration.py +0 -65
  448. azure/mgmt/storage/v2021_01_01/aio/_patch.py +0 -32
  449. azure/mgmt/storage/v2021_01_01/aio/_storage_management_client.py +0 -224
  450. azure/mgmt/storage/v2021_01_01/aio/operations/__init__.py +0 -55
  451. azure/mgmt/storage/v2021_01_01/aio/operations/_blob_containers_operations.py +0 -1747
  452. azure/mgmt/storage/v2021_01_01/aio/operations/_blob_inventory_policies_operations.py +0 -445
  453. azure/mgmt/storage/v2021_01_01/aio/operations/_blob_services_operations.py +0 -375
  454. azure/mgmt/storage/v2021_01_01/aio/operations/_deleted_accounts_operations.py +0 -194
  455. azure/mgmt/storage/v2021_01_01/aio/operations/_encryption_scopes_operations.py +0 -550
  456. azure/mgmt/storage/v2021_01_01/aio/operations/_file_services_operations.py +0 -341
  457. azure/mgmt/storage/v2021_01_01/aio/operations/_file_shares_operations.py +0 -810
  458. azure/mgmt/storage/v2021_01_01/aio/operations/_management_policies_operations.py +0 -349
  459. azure/mgmt/storage/v2021_01_01/aio/operations/_object_replication_policies_operations.py +0 -436
  460. azure/mgmt/storage/v2021_01_01/aio/operations/_operations.py +0 -135
  461. azure/mgmt/storage/v2021_01_01/aio/operations/_patch.py +0 -20
  462. azure/mgmt/storage/v2021_01_01/aio/operations/_private_endpoint_connections_operations.py +0 -432
  463. azure/mgmt/storage/v2021_01_01/aio/operations/_private_link_resources_operations.py +0 -117
  464. azure/mgmt/storage/v2021_01_01/aio/operations/_queue_operations.py +0 -608
  465. azure/mgmt/storage/v2021_01_01/aio/operations/_queue_services_operations.py +0 -341
  466. azure/mgmt/storage/v2021_01_01/aio/operations/_skus_operations.py +0 -136
  467. azure/mgmt/storage/v2021_01_01/aio/operations/_storage_accounts_operations.py +0 -1687
  468. azure/mgmt/storage/v2021_01_01/aio/operations/_table_operations.py +0 -405
  469. azure/mgmt/storage/v2021_01_01/aio/operations/_table_services_operations.py +0 -341
  470. azure/mgmt/storage/v2021_01_01/aio/operations/_usages_operations.py +0 -139
  471. azure/mgmt/storage/v2021_01_01/models/__init__.py +0 -381
  472. azure/mgmt/storage/v2021_01_01/models/_models_py3.py +0 -6465
  473. azure/mgmt/storage/v2021_01_01/models/_patch.py +0 -20
  474. azure/mgmt/storage/v2021_01_01/models/_storage_management_client_enums.py +0 -483
  475. azure/mgmt/storage/v2021_01_01/operations/__init__.py +0 -55
  476. azure/mgmt/storage/v2021_01_01/operations/_blob_containers_operations.py +0 -2246
  477. azure/mgmt/storage/v2021_01_01/operations/_blob_inventory_policies_operations.py +0 -590
  478. azure/mgmt/storage/v2021_01_01/operations/_blob_services_operations.py +0 -483
  479. azure/mgmt/storage/v2021_01_01/operations/_deleted_accounts_operations.py +0 -250
  480. azure/mgmt/storage/v2021_01_01/operations/_encryption_scopes_operations.py +0 -689
  481. azure/mgmt/storage/v2021_01_01/operations/_file_services_operations.py +0 -450
  482. azure/mgmt/storage/v2021_01_01/operations/_file_shares_operations.py +0 -1056
  483. azure/mgmt/storage/v2021_01_01/operations/_management_policies_operations.py +0 -459
  484. azure/mgmt/storage/v2021_01_01/operations/_object_replication_policies_operations.py +0 -575
  485. azure/mgmt/storage/v2021_01_01/operations/_operations.py +0 -156
  486. azure/mgmt/storage/v2021_01_01/operations/_patch.py +0 -20
  487. azure/mgmt/storage/v2021_01_01/operations/_private_endpoint_connections_operations.py +0 -583
  488. azure/mgmt/storage/v2021_01_01/operations/_private_link_resources_operations.py +0 -153
  489. azure/mgmt/storage/v2021_01_01/operations/_queue_operations.py +0 -814
  490. azure/mgmt/storage/v2021_01_01/operations/_queue_services_operations.py +0 -450
  491. azure/mgmt/storage/v2021_01_01/operations/_skus_operations.py +0 -162
  492. azure/mgmt/storage/v2021_01_01/operations/_storage_accounts_operations.py +0 -2124
  493. azure/mgmt/storage/v2021_01_01/operations/_table_operations.py +0 -572
  494. azure/mgmt/storage/v2021_01_01/operations/_table_services_operations.py +0 -450
  495. azure/mgmt/storage/v2021_01_01/operations/_usages_operations.py +0 -169
  496. azure/mgmt/storage/v2021_02_01/__init__.py +0 -26
  497. azure/mgmt/storage/v2021_02_01/_configuration.py +0 -65
  498. azure/mgmt/storage/v2021_02_01/_patch.py +0 -32
  499. azure/mgmt/storage/v2021_02_01/_storage_management_client.py +0 -219
  500. azure/mgmt/storage/v2021_02_01/_vendor.py +0 -16
  501. azure/mgmt/storage/v2021_02_01/_version.py +0 -9
  502. azure/mgmt/storage/v2021_02_01/aio/__init__.py +0 -23
  503. azure/mgmt/storage/v2021_02_01/aio/_configuration.py +0 -65
  504. azure/mgmt/storage/v2021_02_01/aio/_patch.py +0 -32
  505. azure/mgmt/storage/v2021_02_01/aio/_storage_management_client.py +0 -224
  506. azure/mgmt/storage/v2021_02_01/aio/operations/__init__.py +0 -55
  507. azure/mgmt/storage/v2021_02_01/aio/operations/_blob_containers_operations.py +0 -1747
  508. azure/mgmt/storage/v2021_02_01/aio/operations/_blob_inventory_policies_operations.py +0 -445
  509. azure/mgmt/storage/v2021_02_01/aio/operations/_blob_services_operations.py +0 -375
  510. azure/mgmt/storage/v2021_02_01/aio/operations/_deleted_accounts_operations.py +0 -194
  511. azure/mgmt/storage/v2021_02_01/aio/operations/_encryption_scopes_operations.py +0 -550
  512. azure/mgmt/storage/v2021_02_01/aio/operations/_file_services_operations.py +0 -341
  513. azure/mgmt/storage/v2021_02_01/aio/operations/_file_shares_operations.py +0 -810
  514. azure/mgmt/storage/v2021_02_01/aio/operations/_management_policies_operations.py +0 -349
  515. azure/mgmt/storage/v2021_02_01/aio/operations/_object_replication_policies_operations.py +0 -436
  516. azure/mgmt/storage/v2021_02_01/aio/operations/_operations.py +0 -135
  517. azure/mgmt/storage/v2021_02_01/aio/operations/_patch.py +0 -20
  518. azure/mgmt/storage/v2021_02_01/aio/operations/_private_endpoint_connections_operations.py +0 -432
  519. azure/mgmt/storage/v2021_02_01/aio/operations/_private_link_resources_operations.py +0 -117
  520. azure/mgmt/storage/v2021_02_01/aio/operations/_queue_operations.py +0 -608
  521. azure/mgmt/storage/v2021_02_01/aio/operations/_queue_services_operations.py +0 -341
  522. azure/mgmt/storage/v2021_02_01/aio/operations/_skus_operations.py +0 -136
  523. azure/mgmt/storage/v2021_02_01/aio/operations/_storage_accounts_operations.py +0 -1687
  524. azure/mgmt/storage/v2021_02_01/aio/operations/_table_operations.py +0 -405
  525. azure/mgmt/storage/v2021_02_01/aio/operations/_table_services_operations.py +0 -341
  526. azure/mgmt/storage/v2021_02_01/aio/operations/_usages_operations.py +0 -139
  527. azure/mgmt/storage/v2021_02_01/models/__init__.py +0 -389
  528. azure/mgmt/storage/v2021_02_01/models/_models_py3.py +0 -6606
  529. azure/mgmt/storage/v2021_02_01/models/_patch.py +0 -20
  530. azure/mgmt/storage/v2021_02_01/models/_storage_management_client_enums.py +0 -489
  531. azure/mgmt/storage/v2021_02_01/operations/__init__.py +0 -55
  532. azure/mgmt/storage/v2021_02_01/operations/_blob_containers_operations.py +0 -2246
  533. azure/mgmt/storage/v2021_02_01/operations/_blob_inventory_policies_operations.py +0 -590
  534. azure/mgmt/storage/v2021_02_01/operations/_blob_services_operations.py +0 -483
  535. azure/mgmt/storage/v2021_02_01/operations/_deleted_accounts_operations.py +0 -250
  536. azure/mgmt/storage/v2021_02_01/operations/_encryption_scopes_operations.py +0 -689
  537. azure/mgmt/storage/v2021_02_01/operations/_file_services_operations.py +0 -450
  538. azure/mgmt/storage/v2021_02_01/operations/_file_shares_operations.py +0 -1056
  539. azure/mgmt/storage/v2021_02_01/operations/_management_policies_operations.py +0 -459
  540. azure/mgmt/storage/v2021_02_01/operations/_object_replication_policies_operations.py +0 -575
  541. azure/mgmt/storage/v2021_02_01/operations/_operations.py +0 -156
  542. azure/mgmt/storage/v2021_02_01/operations/_patch.py +0 -20
  543. azure/mgmt/storage/v2021_02_01/operations/_private_endpoint_connections_operations.py +0 -583
  544. azure/mgmt/storage/v2021_02_01/operations/_private_link_resources_operations.py +0 -153
  545. azure/mgmt/storage/v2021_02_01/operations/_queue_operations.py +0 -814
  546. azure/mgmt/storage/v2021_02_01/operations/_queue_services_operations.py +0 -450
  547. azure/mgmt/storage/v2021_02_01/operations/_skus_operations.py +0 -162
  548. azure/mgmt/storage/v2021_02_01/operations/_storage_accounts_operations.py +0 -2124
  549. azure/mgmt/storage/v2021_02_01/operations/_table_operations.py +0 -572
  550. azure/mgmt/storage/v2021_02_01/operations/_table_services_operations.py +0 -450
  551. azure/mgmt/storage/v2021_02_01/operations/_usages_operations.py +0 -169
  552. azure/mgmt/storage/v2021_04_01/__init__.py +0 -26
  553. azure/mgmt/storage/v2021_04_01/_configuration.py +0 -65
  554. azure/mgmt/storage/v2021_04_01/_patch.py +0 -32
  555. azure/mgmt/storage/v2021_04_01/_storage_management_client.py +0 -219
  556. azure/mgmt/storage/v2021_04_01/_vendor.py +0 -16
  557. azure/mgmt/storage/v2021_04_01/_version.py +0 -9
  558. azure/mgmt/storage/v2021_04_01/aio/__init__.py +0 -23
  559. azure/mgmt/storage/v2021_04_01/aio/_configuration.py +0 -65
  560. azure/mgmt/storage/v2021_04_01/aio/_patch.py +0 -32
  561. azure/mgmt/storage/v2021_04_01/aio/_storage_management_client.py +0 -224
  562. azure/mgmt/storage/v2021_04_01/aio/operations/__init__.py +0 -55
  563. azure/mgmt/storage/v2021_04_01/aio/operations/_blob_containers_operations.py +0 -1860
  564. azure/mgmt/storage/v2021_04_01/aio/operations/_blob_inventory_policies_operations.py +0 -445
  565. azure/mgmt/storage/v2021_04_01/aio/operations/_blob_services_operations.py +0 -375
  566. azure/mgmt/storage/v2021_04_01/aio/operations/_deleted_accounts_operations.py +0 -194
  567. azure/mgmt/storage/v2021_04_01/aio/operations/_encryption_scopes_operations.py +0 -550
  568. azure/mgmt/storage/v2021_04_01/aio/operations/_file_services_operations.py +0 -344
  569. azure/mgmt/storage/v2021_04_01/aio/operations/_file_shares_operations.py +0 -1010
  570. azure/mgmt/storage/v2021_04_01/aio/operations/_management_policies_operations.py +0 -349
  571. azure/mgmt/storage/v2021_04_01/aio/operations/_object_replication_policies_operations.py +0 -446
  572. azure/mgmt/storage/v2021_04_01/aio/operations/_operations.py +0 -135
  573. azure/mgmt/storage/v2021_04_01/aio/operations/_patch.py +0 -20
  574. azure/mgmt/storage/v2021_04_01/aio/operations/_private_endpoint_connections_operations.py +0 -432
  575. azure/mgmt/storage/v2021_04_01/aio/operations/_private_link_resources_operations.py +0 -117
  576. azure/mgmt/storage/v2021_04_01/aio/operations/_queue_operations.py +0 -613
  577. azure/mgmt/storage/v2021_04_01/aio/operations/_queue_services_operations.py +0 -344
  578. azure/mgmt/storage/v2021_04_01/aio/operations/_skus_operations.py +0 -136
  579. azure/mgmt/storage/v2021_04_01/aio/operations/_storage_accounts_operations.py +0 -1687
  580. azure/mgmt/storage/v2021_04_01/aio/operations/_table_operations.py +0 -410
  581. azure/mgmt/storage/v2021_04_01/aio/operations/_table_services_operations.py +0 -344
  582. azure/mgmt/storage/v2021_04_01/aio/operations/_usages_operations.py +0 -139
  583. azure/mgmt/storage/v2021_04_01/models/__init__.py +0 -411
  584. azure/mgmt/storage/v2021_04_01/models/_models_py3.py +0 -7083
  585. azure/mgmt/storage/v2021_04_01/models/_patch.py +0 -20
  586. azure/mgmt/storage/v2021_04_01/models/_storage_management_client_enums.py +0 -528
  587. azure/mgmt/storage/v2021_04_01/operations/__init__.py +0 -55
  588. azure/mgmt/storage/v2021_04_01/operations/_blob_containers_operations.py +0 -2392
  589. azure/mgmt/storage/v2021_04_01/operations/_blob_inventory_policies_operations.py +0 -590
  590. azure/mgmt/storage/v2021_04_01/operations/_blob_services_operations.py +0 -483
  591. azure/mgmt/storage/v2021_04_01/operations/_deleted_accounts_operations.py +0 -250
  592. azure/mgmt/storage/v2021_04_01/operations/_encryption_scopes_operations.py +0 -689
  593. azure/mgmt/storage/v2021_04_01/operations/_file_services_operations.py +0 -453
  594. azure/mgmt/storage/v2021_04_01/operations/_file_shares_operations.py +0 -1303
  595. azure/mgmt/storage/v2021_04_01/operations/_management_policies_operations.py +0 -459
  596. azure/mgmt/storage/v2021_04_01/operations/_object_replication_policies_operations.py +0 -585
  597. azure/mgmt/storage/v2021_04_01/operations/_operations.py +0 -156
  598. azure/mgmt/storage/v2021_04_01/operations/_patch.py +0 -20
  599. azure/mgmt/storage/v2021_04_01/operations/_private_endpoint_connections_operations.py +0 -583
  600. azure/mgmt/storage/v2021_04_01/operations/_private_link_resources_operations.py +0 -153
  601. azure/mgmt/storage/v2021_04_01/operations/_queue_operations.py +0 -819
  602. azure/mgmt/storage/v2021_04_01/operations/_queue_services_operations.py +0 -453
  603. azure/mgmt/storage/v2021_04_01/operations/_skus_operations.py +0 -162
  604. azure/mgmt/storage/v2021_04_01/operations/_storage_accounts_operations.py +0 -2124
  605. azure/mgmt/storage/v2021_04_01/operations/_table_operations.py +0 -577
  606. azure/mgmt/storage/v2021_04_01/operations/_table_services_operations.py +0 -453
  607. azure/mgmt/storage/v2021_04_01/operations/_usages_operations.py +0 -169
  608. azure/mgmt/storage/v2021_06_01/__init__.py +0 -26
  609. azure/mgmt/storage/v2021_06_01/_configuration.py +0 -65
  610. azure/mgmt/storage/v2021_06_01/_patch.py +0 -32
  611. azure/mgmt/storage/v2021_06_01/_storage_management_client.py +0 -219
  612. azure/mgmt/storage/v2021_06_01/_vendor.py +0 -16
  613. azure/mgmt/storage/v2021_06_01/_version.py +0 -9
  614. azure/mgmt/storage/v2021_06_01/aio/__init__.py +0 -23
  615. azure/mgmt/storage/v2021_06_01/aio/_configuration.py +0 -65
  616. azure/mgmt/storage/v2021_06_01/aio/_patch.py +0 -32
  617. azure/mgmt/storage/v2021_06_01/aio/_storage_management_client.py +0 -224
  618. azure/mgmt/storage/v2021_06_01/aio/operations/__init__.py +0 -55
  619. azure/mgmt/storage/v2021_06_01/aio/operations/_blob_containers_operations.py +0 -1838
  620. azure/mgmt/storage/v2021_06_01/aio/operations/_blob_inventory_policies_operations.py +0 -445
  621. azure/mgmt/storage/v2021_06_01/aio/operations/_blob_services_operations.py +0 -362
  622. azure/mgmt/storage/v2021_06_01/aio/operations/_deleted_accounts_operations.py +0 -194
  623. azure/mgmt/storage/v2021_06_01/aio/operations/_encryption_scopes_operations.py +0 -550
  624. azure/mgmt/storage/v2021_06_01/aio/operations/_file_services_operations.py +0 -331
  625. azure/mgmt/storage/v2021_06_01/aio/operations/_file_shares_operations.py +0 -1010
  626. azure/mgmt/storage/v2021_06_01/aio/operations/_management_policies_operations.py +0 -349
  627. azure/mgmt/storage/v2021_06_01/aio/operations/_object_replication_policies_operations.py +0 -446
  628. azure/mgmt/storage/v2021_06_01/aio/operations/_operations.py +0 -135
  629. azure/mgmt/storage/v2021_06_01/aio/operations/_patch.py +0 -20
  630. azure/mgmt/storage/v2021_06_01/aio/operations/_private_endpoint_connections_operations.py +0 -432
  631. azure/mgmt/storage/v2021_06_01/aio/operations/_private_link_resources_operations.py +0 -117
  632. azure/mgmt/storage/v2021_06_01/aio/operations/_queue_operations.py +0 -613
  633. azure/mgmt/storage/v2021_06_01/aio/operations/_queue_services_operations.py +0 -331
  634. azure/mgmt/storage/v2021_06_01/aio/operations/_skus_operations.py +0 -136
  635. azure/mgmt/storage/v2021_06_01/aio/operations/_storage_accounts_operations.py +0 -1898
  636. azure/mgmt/storage/v2021_06_01/aio/operations/_table_operations.py +0 -410
  637. azure/mgmt/storage/v2021_06_01/aio/operations/_table_services_operations.py +0 -331
  638. azure/mgmt/storage/v2021_06_01/aio/operations/_usages_operations.py +0 -139
  639. azure/mgmt/storage/v2021_06_01/models/__init__.py +0 -419
  640. azure/mgmt/storage/v2021_06_01/models/_models_py3.py +0 -7467
  641. azure/mgmt/storage/v2021_06_01/models/_patch.py +0 -20
  642. azure/mgmt/storage/v2021_06_01/models/_storage_management_client_enums.py +0 -544
  643. azure/mgmt/storage/v2021_06_01/operations/__init__.py +0 -55
  644. azure/mgmt/storage/v2021_06_01/operations/_blob_containers_operations.py +0 -2370
  645. azure/mgmt/storage/v2021_06_01/operations/_blob_inventory_policies_operations.py +0 -590
  646. azure/mgmt/storage/v2021_06_01/operations/_blob_services_operations.py +0 -464
  647. azure/mgmt/storage/v2021_06_01/operations/_deleted_accounts_operations.py +0 -250
  648. azure/mgmt/storage/v2021_06_01/operations/_encryption_scopes_operations.py +0 -689
  649. azure/mgmt/storage/v2021_06_01/operations/_file_services_operations.py +0 -434
  650. azure/mgmt/storage/v2021_06_01/operations/_file_shares_operations.py +0 -1303
  651. azure/mgmt/storage/v2021_06_01/operations/_management_policies_operations.py +0 -459
  652. azure/mgmt/storage/v2021_06_01/operations/_object_replication_policies_operations.py +0 -585
  653. azure/mgmt/storage/v2021_06_01/operations/_operations.py +0 -156
  654. azure/mgmt/storage/v2021_06_01/operations/_patch.py +0 -20
  655. azure/mgmt/storage/v2021_06_01/operations/_private_endpoint_connections_operations.py +0 -583
  656. azure/mgmt/storage/v2021_06_01/operations/_private_link_resources_operations.py +0 -153
  657. azure/mgmt/storage/v2021_06_01/operations/_queue_operations.py +0 -819
  658. azure/mgmt/storage/v2021_06_01/operations/_queue_services_operations.py +0 -434
  659. azure/mgmt/storage/v2021_06_01/operations/_skus_operations.py +0 -162
  660. azure/mgmt/storage/v2021_06_01/operations/_storage_accounts_operations.py +0 -2400
  661. azure/mgmt/storage/v2021_06_01/operations/_table_operations.py +0 -577
  662. azure/mgmt/storage/v2021_06_01/operations/_table_services_operations.py +0 -434
  663. azure/mgmt/storage/v2021_06_01/operations/_usages_operations.py +0 -169
  664. azure/mgmt/storage/v2021_08_01/__init__.py +0 -26
  665. azure/mgmt/storage/v2021_08_01/_configuration.py +0 -65
  666. azure/mgmt/storage/v2021_08_01/_patch.py +0 -32
  667. azure/mgmt/storage/v2021_08_01/_storage_management_client.py +0 -225
  668. azure/mgmt/storage/v2021_08_01/_vendor.py +0 -16
  669. azure/mgmt/storage/v2021_08_01/_version.py +0 -9
  670. azure/mgmt/storage/v2021_08_01/aio/__init__.py +0 -23
  671. azure/mgmt/storage/v2021_08_01/aio/_configuration.py +0 -65
  672. azure/mgmt/storage/v2021_08_01/aio/_patch.py +0 -32
  673. azure/mgmt/storage/v2021_08_01/aio/_storage_management_client.py +0 -230
  674. azure/mgmt/storage/v2021_08_01/aio/operations/__init__.py +0 -57
  675. azure/mgmt/storage/v2021_08_01/aio/operations/_blob_containers_operations.py +0 -1838
  676. azure/mgmt/storage/v2021_08_01/aio/operations/_blob_inventory_policies_operations.py +0 -445
  677. azure/mgmt/storage/v2021_08_01/aio/operations/_blob_services_operations.py +0 -362
  678. azure/mgmt/storage/v2021_08_01/aio/operations/_deleted_accounts_operations.py +0 -194
  679. azure/mgmt/storage/v2021_08_01/aio/operations/_encryption_scopes_operations.py +0 -550
  680. azure/mgmt/storage/v2021_08_01/aio/operations/_file_services_operations.py +0 -328
  681. azure/mgmt/storage/v2021_08_01/aio/operations/_file_shares_operations.py +0 -1003
  682. azure/mgmt/storage/v2021_08_01/aio/operations/_local_users_operations.py +0 -560
  683. azure/mgmt/storage/v2021_08_01/aio/operations/_management_policies_operations.py +0 -349
  684. azure/mgmt/storage/v2021_08_01/aio/operations/_object_replication_policies_operations.py +0 -446
  685. azure/mgmt/storage/v2021_08_01/aio/operations/_operations.py +0 -135
  686. azure/mgmt/storage/v2021_08_01/aio/operations/_patch.py +0 -20
  687. azure/mgmt/storage/v2021_08_01/aio/operations/_private_endpoint_connections_operations.py +0 -432
  688. azure/mgmt/storage/v2021_08_01/aio/operations/_private_link_resources_operations.py +0 -117
  689. azure/mgmt/storage/v2021_08_01/aio/operations/_queue_operations.py +0 -608
  690. azure/mgmt/storage/v2021_08_01/aio/operations/_queue_services_operations.py +0 -328
  691. azure/mgmt/storage/v2021_08_01/aio/operations/_skus_operations.py +0 -136
  692. azure/mgmt/storage/v2021_08_01/aio/operations/_storage_accounts_operations.py +0 -1898
  693. azure/mgmt/storage/v2021_08_01/aio/operations/_table_operations.py +0 -405
  694. azure/mgmt/storage/v2021_08_01/aio/operations/_table_services_operations.py +0 -328
  695. azure/mgmt/storage/v2021_08_01/aio/operations/_usages_operations.py +0 -139
  696. azure/mgmt/storage/v2021_08_01/models/__init__.py +0 -431
  697. azure/mgmt/storage/v2021_08_01/models/_models_py3.py +0 -7738
  698. azure/mgmt/storage/v2021_08_01/models/_patch.py +0 -20
  699. azure/mgmt/storage/v2021_08_01/models/_storage_management_client_enums.py +0 -560
  700. azure/mgmt/storage/v2021_08_01/operations/__init__.py +0 -57
  701. azure/mgmt/storage/v2021_08_01/operations/_blob_containers_operations.py +0 -2370
  702. azure/mgmt/storage/v2021_08_01/operations/_blob_inventory_policies_operations.py +0 -590
  703. azure/mgmt/storage/v2021_08_01/operations/_blob_services_operations.py +0 -464
  704. azure/mgmt/storage/v2021_08_01/operations/_deleted_accounts_operations.py +0 -250
  705. azure/mgmt/storage/v2021_08_01/operations/_encryption_scopes_operations.py +0 -689
  706. azure/mgmt/storage/v2021_08_01/operations/_file_services_operations.py +0 -431
  707. azure/mgmt/storage/v2021_08_01/operations/_file_shares_operations.py +0 -1296
  708. azure/mgmt/storage/v2021_08_01/operations/_local_users_operations.py +0 -758
  709. azure/mgmt/storage/v2021_08_01/operations/_management_policies_operations.py +0 -459
  710. azure/mgmt/storage/v2021_08_01/operations/_object_replication_policies_operations.py +0 -585
  711. azure/mgmt/storage/v2021_08_01/operations/_operations.py +0 -156
  712. azure/mgmt/storage/v2021_08_01/operations/_patch.py +0 -20
  713. azure/mgmt/storage/v2021_08_01/operations/_private_endpoint_connections_operations.py +0 -583
  714. azure/mgmt/storage/v2021_08_01/operations/_private_link_resources_operations.py +0 -153
  715. azure/mgmt/storage/v2021_08_01/operations/_queue_operations.py +0 -814
  716. azure/mgmt/storage/v2021_08_01/operations/_queue_services_operations.py +0 -431
  717. azure/mgmt/storage/v2021_08_01/operations/_skus_operations.py +0 -162
  718. azure/mgmt/storage/v2021_08_01/operations/_storage_accounts_operations.py +0 -2400
  719. azure/mgmt/storage/v2021_08_01/operations/_table_operations.py +0 -572
  720. azure/mgmt/storage/v2021_08_01/operations/_table_services_operations.py +0 -431
  721. azure/mgmt/storage/v2021_08_01/operations/_usages_operations.py +0 -169
  722. azure/mgmt/storage/v2021_09_01/__init__.py +0 -26
  723. azure/mgmt/storage/v2021_09_01/_configuration.py +0 -65
  724. azure/mgmt/storage/v2021_09_01/_patch.py +0 -32
  725. azure/mgmt/storage/v2021_09_01/_storage_management_client.py +0 -225
  726. azure/mgmt/storage/v2021_09_01/_vendor.py +0 -16
  727. azure/mgmt/storage/v2021_09_01/_version.py +0 -9
  728. azure/mgmt/storage/v2021_09_01/aio/__init__.py +0 -23
  729. azure/mgmt/storage/v2021_09_01/aio/_configuration.py +0 -65
  730. azure/mgmt/storage/v2021_09_01/aio/_patch.py +0 -32
  731. azure/mgmt/storage/v2021_09_01/aio/_storage_management_client.py +0 -230
  732. azure/mgmt/storage/v2021_09_01/aio/operations/__init__.py +0 -57
  733. azure/mgmt/storage/v2021_09_01/aio/operations/_blob_containers_operations.py +0 -1838
  734. azure/mgmt/storage/v2021_09_01/aio/operations/_blob_inventory_policies_operations.py +0 -442
  735. azure/mgmt/storage/v2021_09_01/aio/operations/_blob_services_operations.py +0 -362
  736. azure/mgmt/storage/v2021_09_01/aio/operations/_deleted_accounts_operations.py +0 -194
  737. azure/mgmt/storage/v2021_09_01/aio/operations/_encryption_scopes_operations.py +0 -550
  738. azure/mgmt/storage/v2021_09_01/aio/operations/_file_services_operations.py +0 -328
  739. azure/mgmt/storage/v2021_09_01/aio/operations/_file_shares_operations.py +0 -1003
  740. azure/mgmt/storage/v2021_09_01/aio/operations/_local_users_operations.py +0 -560
  741. azure/mgmt/storage/v2021_09_01/aio/operations/_management_policies_operations.py +0 -349
  742. azure/mgmt/storage/v2021_09_01/aio/operations/_object_replication_policies_operations.py +0 -446
  743. azure/mgmt/storage/v2021_09_01/aio/operations/_operations.py +0 -135
  744. azure/mgmt/storage/v2021_09_01/aio/operations/_patch.py +0 -20
  745. azure/mgmt/storage/v2021_09_01/aio/operations/_private_endpoint_connections_operations.py +0 -432
  746. azure/mgmt/storage/v2021_09_01/aio/operations/_private_link_resources_operations.py +0 -117
  747. azure/mgmt/storage/v2021_09_01/aio/operations/_queue_operations.py +0 -608
  748. azure/mgmt/storage/v2021_09_01/aio/operations/_queue_services_operations.py +0 -328
  749. azure/mgmt/storage/v2021_09_01/aio/operations/_skus_operations.py +0 -136
  750. azure/mgmt/storage/v2021_09_01/aio/operations/_storage_accounts_operations.py +0 -1898
  751. azure/mgmt/storage/v2021_09_01/aio/operations/_table_operations.py +0 -588
  752. azure/mgmt/storage/v2021_09_01/aio/operations/_table_services_operations.py +0 -328
  753. azure/mgmt/storage/v2021_09_01/aio/operations/_usages_operations.py +0 -139
  754. azure/mgmt/storage/v2021_09_01/models/__init__.py +0 -441
  755. azure/mgmt/storage/v2021_09_01/models/_models_py3.py +0 -8069
  756. azure/mgmt/storage/v2021_09_01/models/_patch.py +0 -20
  757. azure/mgmt/storage/v2021_09_01/models/_storage_management_client_enums.py +0 -583
  758. azure/mgmt/storage/v2021_09_01/operations/__init__.py +0 -57
  759. azure/mgmt/storage/v2021_09_01/operations/_blob_containers_operations.py +0 -2370
  760. azure/mgmt/storage/v2021_09_01/operations/_blob_inventory_policies_operations.py +0 -587
  761. azure/mgmt/storage/v2021_09_01/operations/_blob_services_operations.py +0 -464
  762. azure/mgmt/storage/v2021_09_01/operations/_deleted_accounts_operations.py +0 -250
  763. azure/mgmt/storage/v2021_09_01/operations/_encryption_scopes_operations.py +0 -689
  764. azure/mgmt/storage/v2021_09_01/operations/_file_services_operations.py +0 -431
  765. azure/mgmt/storage/v2021_09_01/operations/_file_shares_operations.py +0 -1296
  766. azure/mgmt/storage/v2021_09_01/operations/_local_users_operations.py +0 -758
  767. azure/mgmt/storage/v2021_09_01/operations/_management_policies_operations.py +0 -459
  768. azure/mgmt/storage/v2021_09_01/operations/_object_replication_policies_operations.py +0 -585
  769. azure/mgmt/storage/v2021_09_01/operations/_operations.py +0 -156
  770. azure/mgmt/storage/v2021_09_01/operations/_patch.py +0 -20
  771. azure/mgmt/storage/v2021_09_01/operations/_private_endpoint_connections_operations.py +0 -583
  772. azure/mgmt/storage/v2021_09_01/operations/_private_link_resources_operations.py +0 -153
  773. azure/mgmt/storage/v2021_09_01/operations/_queue_operations.py +0 -814
  774. azure/mgmt/storage/v2021_09_01/operations/_queue_services_operations.py +0 -431
  775. azure/mgmt/storage/v2021_09_01/operations/_skus_operations.py +0 -162
  776. azure/mgmt/storage/v2021_09_01/operations/_storage_accounts_operations.py +0 -2400
  777. azure/mgmt/storage/v2021_09_01/operations/_table_operations.py +0 -765
  778. azure/mgmt/storage/v2021_09_01/operations/_table_services_operations.py +0 -431
  779. azure/mgmt/storage/v2021_09_01/operations/_usages_operations.py +0 -169
  780. azure/mgmt/storage/v2022_05_01/__init__.py +0 -26
  781. azure/mgmt/storage/v2022_05_01/_configuration.py +0 -65
  782. azure/mgmt/storage/v2022_05_01/_patch.py +0 -20
  783. azure/mgmt/storage/v2022_05_01/_storage_management_client.py +0 -225
  784. azure/mgmt/storage/v2022_05_01/_vendor.py +0 -16
  785. azure/mgmt/storage/v2022_05_01/_version.py +0 -9
  786. azure/mgmt/storage/v2022_05_01/aio/__init__.py +0 -23
  787. azure/mgmt/storage/v2022_05_01/aio/_configuration.py +0 -65
  788. azure/mgmt/storage/v2022_05_01/aio/_patch.py +0 -20
  789. azure/mgmt/storage/v2022_05_01/aio/_storage_management_client.py +0 -230
  790. azure/mgmt/storage/v2022_05_01/aio/operations/__init__.py +0 -57
  791. azure/mgmt/storage/v2022_05_01/aio/operations/_blob_containers_operations.py +0 -1838
  792. azure/mgmt/storage/v2022_05_01/aio/operations/_blob_inventory_policies_operations.py +0 -442
  793. azure/mgmt/storage/v2022_05_01/aio/operations/_blob_services_operations.py +0 -362
  794. azure/mgmt/storage/v2022_05_01/aio/operations/_deleted_accounts_operations.py +0 -194
  795. azure/mgmt/storage/v2022_05_01/aio/operations/_encryption_scopes_operations.py +0 -550
  796. azure/mgmt/storage/v2022_05_01/aio/operations/_file_services_operations.py +0 -328
  797. azure/mgmt/storage/v2022_05_01/aio/operations/_file_shares_operations.py +0 -1003
  798. azure/mgmt/storage/v2022_05_01/aio/operations/_local_users_operations.py +0 -560
  799. azure/mgmt/storage/v2022_05_01/aio/operations/_management_policies_operations.py +0 -349
  800. azure/mgmt/storage/v2022_05_01/aio/operations/_object_replication_policies_operations.py +0 -446
  801. azure/mgmt/storage/v2022_05_01/aio/operations/_operations.py +0 -135
  802. azure/mgmt/storage/v2022_05_01/aio/operations/_patch.py +0 -20
  803. azure/mgmt/storage/v2022_05_01/aio/operations/_private_endpoint_connections_operations.py +0 -432
  804. azure/mgmt/storage/v2022_05_01/aio/operations/_private_link_resources_operations.py +0 -117
  805. azure/mgmt/storage/v2022_05_01/aio/operations/_queue_operations.py +0 -608
  806. azure/mgmt/storage/v2022_05_01/aio/operations/_queue_services_operations.py +0 -328
  807. azure/mgmt/storage/v2022_05_01/aio/operations/_skus_operations.py +0 -136
  808. azure/mgmt/storage/v2022_05_01/aio/operations/_storage_accounts_operations.py +0 -1898
  809. azure/mgmt/storage/v2022_05_01/aio/operations/_table_operations.py +0 -588
  810. azure/mgmt/storage/v2022_05_01/aio/operations/_table_services_operations.py +0 -328
  811. azure/mgmt/storage/v2022_05_01/aio/operations/_usages_operations.py +0 -139
  812. azure/mgmt/storage/v2022_05_01/models/__init__.py +0 -441
  813. azure/mgmt/storage/v2022_05_01/models/_models_py3.py +0 -8057
  814. azure/mgmt/storage/v2022_05_01/models/_patch.py +0 -20
  815. azure/mgmt/storage/v2022_05_01/models/_storage_management_client_enums.py +0 -584
  816. azure/mgmt/storage/v2022_05_01/operations/__init__.py +0 -57
  817. azure/mgmt/storage/v2022_05_01/operations/_blob_containers_operations.py +0 -2370
  818. azure/mgmt/storage/v2022_05_01/operations/_blob_inventory_policies_operations.py +0 -587
  819. azure/mgmt/storage/v2022_05_01/operations/_blob_services_operations.py +0 -464
  820. azure/mgmt/storage/v2022_05_01/operations/_deleted_accounts_operations.py +0 -250
  821. azure/mgmt/storage/v2022_05_01/operations/_encryption_scopes_operations.py +0 -689
  822. azure/mgmt/storage/v2022_05_01/operations/_file_services_operations.py +0 -431
  823. azure/mgmt/storage/v2022_05_01/operations/_file_shares_operations.py +0 -1296
  824. azure/mgmt/storage/v2022_05_01/operations/_local_users_operations.py +0 -758
  825. azure/mgmt/storage/v2022_05_01/operations/_management_policies_operations.py +0 -459
  826. azure/mgmt/storage/v2022_05_01/operations/_object_replication_policies_operations.py +0 -585
  827. azure/mgmt/storage/v2022_05_01/operations/_operations.py +0 -156
  828. azure/mgmt/storage/v2022_05_01/operations/_patch.py +0 -20
  829. azure/mgmt/storage/v2022_05_01/operations/_private_endpoint_connections_operations.py +0 -583
  830. azure/mgmt/storage/v2022_05_01/operations/_private_link_resources_operations.py +0 -153
  831. azure/mgmt/storage/v2022_05_01/operations/_queue_operations.py +0 -814
  832. azure/mgmt/storage/v2022_05_01/operations/_queue_services_operations.py +0 -431
  833. azure/mgmt/storage/v2022_05_01/operations/_skus_operations.py +0 -162
  834. azure/mgmt/storage/v2022_05_01/operations/_storage_accounts_operations.py +0 -2400
  835. azure/mgmt/storage/v2022_05_01/operations/_table_operations.py +0 -765
  836. azure/mgmt/storage/v2022_05_01/operations/_table_services_operations.py +0 -431
  837. azure/mgmt/storage/v2022_05_01/operations/_usages_operations.py +0 -169
  838. azure/mgmt/storage/v2022_09_01/__init__.py +0 -26
  839. azure/mgmt/storage/v2022_09_01/_configuration.py +0 -65
  840. azure/mgmt/storage/v2022_09_01/_patch.py +0 -20
  841. azure/mgmt/storage/v2022_09_01/_storage_management_client.py +0 -225
  842. azure/mgmt/storage/v2022_09_01/_vendor.py +0 -16
  843. azure/mgmt/storage/v2022_09_01/_version.py +0 -9
  844. azure/mgmt/storage/v2022_09_01/aio/__init__.py +0 -23
  845. azure/mgmt/storage/v2022_09_01/aio/_configuration.py +0 -65
  846. azure/mgmt/storage/v2022_09_01/aio/_patch.py +0 -20
  847. azure/mgmt/storage/v2022_09_01/aio/_storage_management_client.py +0 -230
  848. azure/mgmt/storage/v2022_09_01/aio/operations/__init__.py +0 -57
  849. azure/mgmt/storage/v2022_09_01/aio/operations/_blob_containers_operations.py +0 -1838
  850. azure/mgmt/storage/v2022_09_01/aio/operations/_blob_inventory_policies_operations.py +0 -442
  851. azure/mgmt/storage/v2022_09_01/aio/operations/_blob_services_operations.py +0 -362
  852. azure/mgmt/storage/v2022_09_01/aio/operations/_deleted_accounts_operations.py +0 -194
  853. azure/mgmt/storage/v2022_09_01/aio/operations/_encryption_scopes_operations.py +0 -568
  854. azure/mgmt/storage/v2022_09_01/aio/operations/_file_services_operations.py +0 -328
  855. azure/mgmt/storage/v2022_09_01/aio/operations/_file_shares_operations.py +0 -1003
  856. azure/mgmt/storage/v2022_09_01/aio/operations/_local_users_operations.py +0 -560
  857. azure/mgmt/storage/v2022_09_01/aio/operations/_management_policies_operations.py +0 -349
  858. azure/mgmt/storage/v2022_09_01/aio/operations/_object_replication_policies_operations.py +0 -446
  859. azure/mgmt/storage/v2022_09_01/aio/operations/_operations.py +0 -135
  860. azure/mgmt/storage/v2022_09_01/aio/operations/_patch.py +0 -20
  861. azure/mgmt/storage/v2022_09_01/aio/operations/_private_endpoint_connections_operations.py +0 -432
  862. azure/mgmt/storage/v2022_09_01/aio/operations/_private_link_resources_operations.py +0 -117
  863. azure/mgmt/storage/v2022_09_01/aio/operations/_queue_operations.py +0 -608
  864. azure/mgmt/storage/v2022_09_01/aio/operations/_queue_services_operations.py +0 -328
  865. azure/mgmt/storage/v2022_09_01/aio/operations/_skus_operations.py +0 -136
  866. azure/mgmt/storage/v2022_09_01/aio/operations/_storage_accounts_operations.py +0 -1913
  867. azure/mgmt/storage/v2022_09_01/aio/operations/_table_operations.py +0 -588
  868. azure/mgmt/storage/v2022_09_01/aio/operations/_table_services_operations.py +0 -328
  869. azure/mgmt/storage/v2022_09_01/aio/operations/_usages_operations.py +0 -139
  870. azure/mgmt/storage/v2022_09_01/models/__init__.py +0 -443
  871. azure/mgmt/storage/v2022_09_01/models/_models_py3.py +0 -8093
  872. azure/mgmt/storage/v2022_09_01/models/_patch.py +0 -20
  873. azure/mgmt/storage/v2022_09_01/models/_storage_management_client_enums.py +0 -592
  874. azure/mgmt/storage/v2022_09_01/operations/__init__.py +0 -57
  875. azure/mgmt/storage/v2022_09_01/operations/_blob_containers_operations.py +0 -2370
  876. azure/mgmt/storage/v2022_09_01/operations/_blob_inventory_policies_operations.py +0 -587
  877. azure/mgmt/storage/v2022_09_01/operations/_blob_services_operations.py +0 -464
  878. azure/mgmt/storage/v2022_09_01/operations/_deleted_accounts_operations.py +0 -250
  879. azure/mgmt/storage/v2022_09_01/operations/_encryption_scopes_operations.py +0 -724
  880. azure/mgmt/storage/v2022_09_01/operations/_file_services_operations.py +0 -431
  881. azure/mgmt/storage/v2022_09_01/operations/_file_shares_operations.py +0 -1296
  882. azure/mgmt/storage/v2022_09_01/operations/_local_users_operations.py +0 -758
  883. azure/mgmt/storage/v2022_09_01/operations/_management_policies_operations.py +0 -459
  884. azure/mgmt/storage/v2022_09_01/operations/_object_replication_policies_operations.py +0 -585
  885. azure/mgmt/storage/v2022_09_01/operations/_operations.py +0 -156
  886. azure/mgmt/storage/v2022_09_01/operations/_patch.py +0 -20
  887. azure/mgmt/storage/v2022_09_01/operations/_private_endpoint_connections_operations.py +0 -583
  888. azure/mgmt/storage/v2022_09_01/operations/_private_link_resources_operations.py +0 -153
  889. azure/mgmt/storage/v2022_09_01/operations/_queue_operations.py +0 -814
  890. azure/mgmt/storage/v2022_09_01/operations/_queue_services_operations.py +0 -431
  891. azure/mgmt/storage/v2022_09_01/operations/_skus_operations.py +0 -162
  892. azure/mgmt/storage/v2022_09_01/operations/_storage_accounts_operations.py +0 -2422
  893. azure/mgmt/storage/v2022_09_01/operations/_table_operations.py +0 -765
  894. azure/mgmt/storage/v2022_09_01/operations/_table_services_operations.py +0 -431
  895. azure/mgmt/storage/v2022_09_01/operations/_usages_operations.py +0 -169
  896. azure/mgmt/storage/v2023_01_01/__init__.py +0 -26
  897. azure/mgmt/storage/v2023_01_01/_configuration.py +0 -65
  898. azure/mgmt/storage/v2023_01_01/_patch.py +0 -20
  899. azure/mgmt/storage/v2023_01_01/_storage_management_client.py +0 -225
  900. azure/mgmt/storage/v2023_01_01/_vendor.py +0 -16
  901. azure/mgmt/storage/v2023_01_01/_version.py +0 -9
  902. azure/mgmt/storage/v2023_01_01/aio/__init__.py +0 -23
  903. azure/mgmt/storage/v2023_01_01/aio/_configuration.py +0 -65
  904. azure/mgmt/storage/v2023_01_01/aio/_patch.py +0 -20
  905. azure/mgmt/storage/v2023_01_01/aio/_storage_management_client.py +0 -230
  906. azure/mgmt/storage/v2023_01_01/aio/operations/__init__.py +0 -57
  907. azure/mgmt/storage/v2023_01_01/aio/operations/_blob_containers_operations.py +0 -1838
  908. azure/mgmt/storage/v2023_01_01/aio/operations/_blob_inventory_policies_operations.py +0 -442
  909. azure/mgmt/storage/v2023_01_01/aio/operations/_blob_services_operations.py +0 -362
  910. azure/mgmt/storage/v2023_01_01/aio/operations/_deleted_accounts_operations.py +0 -194
  911. azure/mgmt/storage/v2023_01_01/aio/operations/_encryption_scopes_operations.py +0 -568
  912. azure/mgmt/storage/v2023_01_01/aio/operations/_file_services_operations.py +0 -328
  913. azure/mgmt/storage/v2023_01_01/aio/operations/_file_shares_operations.py +0 -1003
  914. azure/mgmt/storage/v2023_01_01/aio/operations/_local_users_operations.py +0 -560
  915. azure/mgmt/storage/v2023_01_01/aio/operations/_management_policies_operations.py +0 -349
  916. azure/mgmt/storage/v2023_01_01/aio/operations/_object_replication_policies_operations.py +0 -446
  917. azure/mgmt/storage/v2023_01_01/aio/operations/_operations.py +0 -135
  918. azure/mgmt/storage/v2023_01_01/aio/operations/_patch.py +0 -20
  919. azure/mgmt/storage/v2023_01_01/aio/operations/_private_endpoint_connections_operations.py +0 -432
  920. azure/mgmt/storage/v2023_01_01/aio/operations/_private_link_resources_operations.py +0 -117
  921. azure/mgmt/storage/v2023_01_01/aio/operations/_queue_operations.py +0 -608
  922. azure/mgmt/storage/v2023_01_01/aio/operations/_queue_services_operations.py +0 -328
  923. azure/mgmt/storage/v2023_01_01/aio/operations/_skus_operations.py +0 -136
  924. azure/mgmt/storage/v2023_01_01/aio/operations/_storage_accounts_operations.py +0 -2187
  925. azure/mgmt/storage/v2023_01_01/aio/operations/_table_operations.py +0 -588
  926. azure/mgmt/storage/v2023_01_01/aio/operations/_table_services_operations.py +0 -328
  927. azure/mgmt/storage/v2023_01_01/aio/operations/_usages_operations.py +0 -139
  928. azure/mgmt/storage/v2023_01_01/models/__init__.py +0 -461
  929. azure/mgmt/storage/v2023_01_01/models/_models_py3.py +0 -8338
  930. azure/mgmt/storage/v2023_01_01/models/_patch.py +0 -20
  931. azure/mgmt/storage/v2023_01_01/models/_storage_management_client_enums.py +0 -626
  932. azure/mgmt/storage/v2023_01_01/operations/__init__.py +0 -57
  933. azure/mgmt/storage/v2023_01_01/operations/_blob_containers_operations.py +0 -2398
  934. azure/mgmt/storage/v2023_01_01/operations/_blob_inventory_policies_operations.py +0 -595
  935. azure/mgmt/storage/v2023_01_01/operations/_blob_services_operations.py +0 -470
  936. azure/mgmt/storage/v2023_01_01/operations/_deleted_accounts_operations.py +0 -250
  937. azure/mgmt/storage/v2023_01_01/operations/_encryption_scopes_operations.py +0 -732
  938. azure/mgmt/storage/v2023_01_01/operations/_file_services_operations.py +0 -437
  939. azure/mgmt/storage/v2023_01_01/operations/_file_shares_operations.py +0 -1310
  940. azure/mgmt/storage/v2023_01_01/operations/_local_users_operations.py +0 -770
  941. azure/mgmt/storage/v2023_01_01/operations/_management_policies_operations.py +0 -465
  942. azure/mgmt/storage/v2023_01_01/operations/_object_replication_policies_operations.py +0 -593
  943. azure/mgmt/storage/v2023_01_01/operations/_operations.py +0 -156
  944. azure/mgmt/storage/v2023_01_01/operations/_patch.py +0 -20
  945. azure/mgmt/storage/v2023_01_01/operations/_private_endpoint_connections_operations.py +0 -591
  946. azure/mgmt/storage/v2023_01_01/operations/_private_link_resources_operations.py +0 -155
  947. azure/mgmt/storage/v2023_01_01/operations/_queue_operations.py +0 -824
  948. azure/mgmt/storage/v2023_01_01/operations/_queue_services_operations.py +0 -437
  949. azure/mgmt/storage/v2023_01_01/operations/_skus_operations.py +0 -162
  950. azure/mgmt/storage/v2023_01_01/operations/_storage_accounts_operations.py +0 -2796
  951. azure/mgmt/storage/v2023_01_01/operations/_table_operations.py +0 -775
  952. azure/mgmt/storage/v2023_01_01/operations/_table_services_operations.py +0 -437
  953. azure/mgmt/storage/v2023_01_01/operations/_usages_operations.py +0 -169
  954. azure/mgmt/storage/v2023_05_01/_vendor.py +0 -16
  955. azure_mgmt_storage-21.2.0.dist-info/RECORD +0 -979
  956. {azure_mgmt_storage-21.2.0.dist-info → azure_mgmt_storage-22.0.0.dist-info}/LICENSE +0 -0
  957. {azure_mgmt_storage-21.2.0.dist-info → azure_mgmt_storage-22.0.0.dist-info}/top_level.txt +0 -0
@@ -1,2422 +0,0 @@
1
- # pylint: disable=too-many-lines,too-many-statements
2
- # coding=utf-8
3
- # --------------------------------------------------------------------------
4
- # Copyright (c) Microsoft Corporation. All rights reserved.
5
- # Licensed under the MIT License. See License.txt in the project root for license information.
6
- # Code generated by Microsoft (R) AutoRest Code Generator.
7
- # Changes may cause incorrect behavior and will be lost if the code is regenerated.
8
- # --------------------------------------------------------------------------
9
- from io import IOBase
10
- import sys
11
- from typing import Any, Callable, Dict, IO, Iterable, Literal, Optional, Type, TypeVar, Union, cast, overload
12
- import urllib.parse
13
-
14
- from azure.core.exceptions import (
15
- ClientAuthenticationError,
16
- HttpResponseError,
17
- ResourceExistsError,
18
- ResourceNotFoundError,
19
- ResourceNotModifiedError,
20
- map_error,
21
- )
22
- from azure.core.paging import ItemPaged
23
- from azure.core.pipeline import PipelineResponse
24
- from azure.core.pipeline.transport import HttpResponse
25
- from azure.core.polling import LROPoller, NoPolling, PollingMethod
26
- from azure.core.rest import HttpRequest
27
- from azure.core.tracing.decorator import distributed_trace
28
- from azure.core.utils import case_insensitive_dict
29
- from azure.mgmt.core.exceptions import ARMErrorFormat
30
- from azure.mgmt.core.polling.arm_polling import ARMPolling
31
-
32
- from .. import models as _models
33
- from ..._serialization import Serializer
34
- from .._vendor import _convert_request
35
-
36
- if sys.version_info >= (3, 9):
37
- from collections.abc import MutableMapping
38
- else:
39
- from typing import MutableMapping # type: ignore # pylint: disable=ungrouped-imports
40
- T = TypeVar("T")
41
- ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]]
42
-
43
- _SERIALIZER = Serializer()
44
- _SERIALIZER.client_side_validation = False
45
-
46
-
47
- def build_check_name_availability_request(subscription_id: str, **kwargs: Any) -> HttpRequest:
48
- _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
49
- _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
50
-
51
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-09-01"))
52
- content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
53
- accept = _headers.pop("Accept", "application/json")
54
-
55
- # Construct URL
56
- _url = kwargs.pop(
57
- "template_url", "/subscriptions/{subscriptionId}/providers/Microsoft.Storage/checkNameAvailability"
58
- )
59
- path_format_arguments = {
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
- if content_type is not None:
70
- _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str")
71
- _headers["Accept"] = _SERIALIZER.header("accept", accept, "str")
72
-
73
- return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs)
74
-
75
-
76
- def build_create_request(
77
- resource_group_name: str, account_name: str, subscription_id: str, **kwargs: Any
78
- ) -> HttpRequest:
79
- _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
80
- _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
81
-
82
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-09-01"))
83
- content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
84
- accept = _headers.pop("Accept", "application/json")
85
-
86
- # Construct URL
87
- _url = kwargs.pop(
88
- "template_url",
89
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}",
90
- ) # pylint: disable=line-too-long
91
- path_format_arguments = {
92
- "resourceGroupName": _SERIALIZER.url(
93
- "resource_group_name", resource_group_name, "str", max_length=90, min_length=1, pattern=r"^[-\w\._\(\)]+$"
94
- ),
95
- "accountName": _SERIALIZER.url("account_name", account_name, "str", max_length=24, min_length=3),
96
- "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str", min_length=1),
97
- }
98
-
99
- _url: str = _url.format(**path_format_arguments) # type: ignore
100
-
101
- # Construct parameters
102
- _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str")
103
-
104
- # Construct headers
105
- if content_type is not None:
106
- _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str")
107
- _headers["Accept"] = _SERIALIZER.header("accept", accept, "str")
108
-
109
- return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs)
110
-
111
-
112
- def build_delete_request(
113
- resource_group_name: str, account_name: str, subscription_id: str, **kwargs: Any
114
- ) -> HttpRequest:
115
- _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
116
-
117
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-09-01"))
118
- # Construct URL
119
- _url = kwargs.pop(
120
- "template_url",
121
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}",
122
- ) # pylint: disable=line-too-long
123
- path_format_arguments = {
124
- "resourceGroupName": _SERIALIZER.url(
125
- "resource_group_name", resource_group_name, "str", max_length=90, min_length=1, pattern=r"^[-\w\._\(\)]+$"
126
- ),
127
- "accountName": _SERIALIZER.url("account_name", account_name, "str", max_length=24, min_length=3),
128
- "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str", min_length=1),
129
- }
130
-
131
- _url: str = _url.format(**path_format_arguments) # type: ignore
132
-
133
- # Construct parameters
134
- _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str")
135
-
136
- return HttpRequest(method="DELETE", url=_url, params=_params, **kwargs)
137
-
138
-
139
- def build_get_properties_request(
140
- resource_group_name: str,
141
- account_name: str,
142
- subscription_id: str,
143
- *,
144
- expand: Optional[Union[str, _models.StorageAccountExpand]] = None,
145
- **kwargs: Any
146
- ) -> HttpRequest:
147
- _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
148
- _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
149
-
150
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-09-01"))
151
- accept = _headers.pop("Accept", "application/json")
152
-
153
- # Construct URL
154
- _url = kwargs.pop(
155
- "template_url",
156
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}",
157
- ) # pylint: disable=line-too-long
158
- path_format_arguments = {
159
- "resourceGroupName": _SERIALIZER.url(
160
- "resource_group_name", resource_group_name, "str", max_length=90, min_length=1, pattern=r"^[-\w\._\(\)]+$"
161
- ),
162
- "accountName": _SERIALIZER.url("account_name", account_name, "str", max_length=24, min_length=3),
163
- "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str", min_length=1),
164
- }
165
-
166
- _url: str = _url.format(**path_format_arguments) # type: ignore
167
-
168
- # Construct parameters
169
- _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str")
170
- if expand is not None:
171
- _params["$expand"] = _SERIALIZER.query("expand", expand, "str")
172
-
173
- # Construct headers
174
- _headers["Accept"] = _SERIALIZER.header("accept", accept, "str")
175
-
176
- return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs)
177
-
178
-
179
- def build_update_request(
180
- resource_group_name: str, account_name: str, subscription_id: str, **kwargs: Any
181
- ) -> HttpRequest:
182
- _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
183
- _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
184
-
185
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-09-01"))
186
- content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
187
- accept = _headers.pop("Accept", "application/json")
188
-
189
- # Construct URL
190
- _url = kwargs.pop(
191
- "template_url",
192
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}",
193
- ) # pylint: disable=line-too-long
194
- path_format_arguments = {
195
- "resourceGroupName": _SERIALIZER.url(
196
- "resource_group_name", resource_group_name, "str", max_length=90, min_length=1, pattern=r"^[-\w\._\(\)]+$"
197
- ),
198
- "accountName": _SERIALIZER.url("account_name", account_name, "str", max_length=24, 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
- # Construct headers
208
- if content_type is not None:
209
- _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str")
210
- _headers["Accept"] = _SERIALIZER.header("accept", accept, "str")
211
-
212
- return HttpRequest(method="PATCH", url=_url, params=_params, headers=_headers, **kwargs)
213
-
214
-
215
- def build_list_request(subscription_id: str, **kwargs: Any) -> HttpRequest:
216
- _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
217
- _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
218
-
219
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-09-01"))
220
- accept = _headers.pop("Accept", "application/json")
221
-
222
- # Construct URL
223
- _url = kwargs.pop("template_url", "/subscriptions/{subscriptionId}/providers/Microsoft.Storage/storageAccounts")
224
- path_format_arguments = {
225
- "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str", min_length=1),
226
- }
227
-
228
- _url: str = _url.format(**path_format_arguments) # type: ignore
229
-
230
- # Construct parameters
231
- _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str")
232
-
233
- # Construct headers
234
- _headers["Accept"] = _SERIALIZER.header("accept", accept, "str")
235
-
236
- return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs)
237
-
238
-
239
- def build_list_by_resource_group_request(resource_group_name: str, subscription_id: str, **kwargs: Any) -> HttpRequest:
240
- _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
241
- _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
242
-
243
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-09-01"))
244
- accept = _headers.pop("Accept", "application/json")
245
-
246
- # Construct URL
247
- _url = kwargs.pop(
248
- "template_url",
249
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts",
250
- ) # pylint: disable=line-too-long
251
- path_format_arguments = {
252
- "resourceGroupName": _SERIALIZER.url(
253
- "resource_group_name", resource_group_name, "str", max_length=90, min_length=1, pattern=r"^[-\w\._\(\)]+$"
254
- ),
255
- "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str", min_length=1),
256
- }
257
-
258
- _url: str = _url.format(**path_format_arguments) # type: ignore
259
-
260
- # Construct parameters
261
- _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str")
262
-
263
- # Construct headers
264
- _headers["Accept"] = _SERIALIZER.header("accept", accept, "str")
265
-
266
- return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs)
267
-
268
-
269
- def build_list_keys_request(
270
- resource_group_name: str,
271
- account_name: str,
272
- subscription_id: str,
273
- *,
274
- expand: Literal["kerb"] = "kerb",
275
- **kwargs: Any
276
- ) -> HttpRequest:
277
- _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
278
- _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
279
-
280
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-09-01"))
281
- accept = _headers.pop("Accept", "application/json")
282
-
283
- # Construct URL
284
- _url = kwargs.pop(
285
- "template_url",
286
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/listKeys",
287
- ) # pylint: disable=line-too-long
288
- path_format_arguments = {
289
- "resourceGroupName": _SERIALIZER.url(
290
- "resource_group_name", resource_group_name, "str", max_length=90, min_length=1, pattern=r"^[-\w\._\(\)]+$"
291
- ),
292
- "accountName": _SERIALIZER.url("account_name", account_name, "str", max_length=24, min_length=3),
293
- "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str", min_length=1),
294
- }
295
-
296
- _url: str = _url.format(**path_format_arguments) # type: ignore
297
-
298
- # Construct parameters
299
- _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str")
300
- if expand is not None:
301
- _params["$expand"] = _SERIALIZER.query("expand", expand, "str")
302
-
303
- # Construct headers
304
- _headers["Accept"] = _SERIALIZER.header("accept", accept, "str")
305
-
306
- return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs)
307
-
308
-
309
- def build_regenerate_key_request(
310
- resource_group_name: str, account_name: str, subscription_id: str, **kwargs: Any
311
- ) -> HttpRequest:
312
- _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
313
- _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
314
-
315
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-09-01"))
316
- content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
317
- accept = _headers.pop("Accept", "application/json")
318
-
319
- # Construct URL
320
- _url = kwargs.pop(
321
- "template_url",
322
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/regenerateKey",
323
- ) # pylint: disable=line-too-long
324
- path_format_arguments = {
325
- "resourceGroupName": _SERIALIZER.url(
326
- "resource_group_name", resource_group_name, "str", max_length=90, min_length=1, pattern=r"^[-\w\._\(\)]+$"
327
- ),
328
- "accountName": _SERIALIZER.url("account_name", account_name, "str", max_length=24, min_length=3),
329
- "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str", min_length=1),
330
- }
331
-
332
- _url: str = _url.format(**path_format_arguments) # type: ignore
333
-
334
- # Construct parameters
335
- _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str")
336
-
337
- # Construct headers
338
- if content_type is not None:
339
- _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str")
340
- _headers["Accept"] = _SERIALIZER.header("accept", accept, "str")
341
-
342
- return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs)
343
-
344
-
345
- def build_list_account_sas_request(
346
- resource_group_name: str, account_name: str, subscription_id: str, **kwargs: Any
347
- ) -> HttpRequest:
348
- _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
349
- _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
350
-
351
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-09-01"))
352
- content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
353
- accept = _headers.pop("Accept", "application/json")
354
-
355
- # Construct URL
356
- _url = kwargs.pop(
357
- "template_url",
358
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/ListAccountSas",
359
- ) # pylint: disable=line-too-long
360
- path_format_arguments = {
361
- "resourceGroupName": _SERIALIZER.url(
362
- "resource_group_name", resource_group_name, "str", max_length=90, min_length=1, pattern=r"^[-\w\._\(\)]+$"
363
- ),
364
- "accountName": _SERIALIZER.url("account_name", account_name, "str", max_length=24, min_length=3),
365
- "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str", min_length=1),
366
- }
367
-
368
- _url: str = _url.format(**path_format_arguments) # type: ignore
369
-
370
- # Construct parameters
371
- _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str")
372
-
373
- # Construct headers
374
- if content_type is not None:
375
- _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str")
376
- _headers["Accept"] = _SERIALIZER.header("accept", accept, "str")
377
-
378
- return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs)
379
-
380
-
381
- def build_list_service_sas_request(
382
- resource_group_name: str, account_name: str, subscription_id: str, **kwargs: Any
383
- ) -> HttpRequest:
384
- _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
385
- _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
386
-
387
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-09-01"))
388
- content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
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}/ListServiceSas",
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
- "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str", min_length=1),
402
- }
403
-
404
- _url: str = _url.format(**path_format_arguments) # type: ignore
405
-
406
- # Construct parameters
407
- _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str")
408
-
409
- # Construct headers
410
- if content_type is not None:
411
- _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str")
412
- _headers["Accept"] = _SERIALIZER.header("accept", accept, "str")
413
-
414
- return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs)
415
-
416
-
417
- def build_failover_request(
418
- resource_group_name: str,
419
- account_name: str,
420
- subscription_id: str,
421
- *,
422
- failover_type: Literal["Planned"] = "Planned",
423
- **kwargs: Any
424
- ) -> HttpRequest:
425
- _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
426
-
427
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-09-01"))
428
- # Construct URL
429
- _url = kwargs.pop(
430
- "template_url",
431
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/failover",
432
- ) # pylint: disable=line-too-long
433
- path_format_arguments = {
434
- "resourceGroupName": _SERIALIZER.url(
435
- "resource_group_name", resource_group_name, "str", max_length=90, min_length=1, pattern=r"^[-\w\._\(\)]+$"
436
- ),
437
- "accountName": _SERIALIZER.url("account_name", account_name, "str", max_length=24, min_length=3),
438
- "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str", min_length=1),
439
- }
440
-
441
- _url: str = _url.format(**path_format_arguments) # type: ignore
442
-
443
- # Construct parameters
444
- _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str")
445
- if failover_type is not None:
446
- _params["failoverType"] = _SERIALIZER.query("failover_type", failover_type, "str")
447
-
448
- return HttpRequest(method="POST", url=_url, params=_params, **kwargs)
449
-
450
-
451
- def build_hierarchical_namespace_migration_request( # pylint: disable=name-too-long
452
- resource_group_name: str, account_name: str, subscription_id: str, *, request_type: str, **kwargs: Any
453
- ) -> HttpRequest:
454
- _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
455
- _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
456
-
457
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-09-01"))
458
- accept = _headers.pop("Accept", "application/json")
459
-
460
- # Construct URL
461
- _url = kwargs.pop(
462
- "template_url",
463
- "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/hnsonmigration",
464
- ) # pylint: disable=line-too-long
465
- path_format_arguments = {
466
- "resourceGroupName": _SERIALIZER.url(
467
- "resource_group_name", resource_group_name, "str", max_length=90, min_length=1, pattern=r"^[-\w\._\(\)]+$"
468
- ),
469
- "accountName": _SERIALIZER.url("account_name", account_name, "str", max_length=24, min_length=3),
470
- "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str", min_length=1),
471
- }
472
-
473
- _url: str = _url.format(**path_format_arguments) # type: ignore
474
-
475
- # Construct parameters
476
- _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str")
477
- _params["requestType"] = _SERIALIZER.query("request_type", request_type, "str")
478
-
479
- # Construct headers
480
- _headers["Accept"] = _SERIALIZER.header("accept", accept, "str")
481
-
482
- return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs)
483
-
484
-
485
- def build_abort_hierarchical_namespace_migration_request( # pylint: disable=name-too-long
486
- resource_group_name: str, account_name: str, subscription_id: str, **kwargs: Any
487
- ) -> HttpRequest:
488
- _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
489
- _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
490
-
491
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-09-01"))
492
- accept = _headers.pop("Accept", "application/json")
493
-
494
- # Construct URL
495
- _url = kwargs.pop(
496
- "template_url",
497
- "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/aborthnsonmigration",
498
- ) # pylint: disable=line-too-long
499
- path_format_arguments = {
500
- "resourceGroupName": _SERIALIZER.url(
501
- "resource_group_name", resource_group_name, "str", max_length=90, min_length=1, pattern=r"^[-\w\._\(\)]+$"
502
- ),
503
- "accountName": _SERIALIZER.url("account_name", account_name, "str", max_length=24, min_length=3),
504
- "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str", min_length=1),
505
- }
506
-
507
- _url: str = _url.format(**path_format_arguments) # type: ignore
508
-
509
- # Construct parameters
510
- _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str")
511
-
512
- # Construct headers
513
- _headers["Accept"] = _SERIALIZER.header("accept", accept, "str")
514
-
515
- return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs)
516
-
517
-
518
- def build_restore_blob_ranges_request(
519
- resource_group_name: str, account_name: str, subscription_id: str, **kwargs: Any
520
- ) -> HttpRequest:
521
- _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
522
- _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
523
-
524
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-09-01"))
525
- content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
526
- accept = _headers.pop("Accept", "application/json")
527
-
528
- # Construct URL
529
- _url = kwargs.pop(
530
- "template_url",
531
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/restoreBlobRanges",
532
- ) # pylint: disable=line-too-long
533
- path_format_arguments = {
534
- "resourceGroupName": _SERIALIZER.url(
535
- "resource_group_name", resource_group_name, "str", max_length=90, min_length=1, pattern=r"^[-\w\._\(\)]+$"
536
- ),
537
- "accountName": _SERIALIZER.url("account_name", account_name, "str", max_length=24, min_length=3),
538
- "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str", min_length=1),
539
- }
540
-
541
- _url: str = _url.format(**path_format_arguments) # type: ignore
542
-
543
- # Construct parameters
544
- _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str")
545
-
546
- # Construct headers
547
- if content_type is not None:
548
- _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str")
549
- _headers["Accept"] = _SERIALIZER.header("accept", accept, "str")
550
-
551
- return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs)
552
-
553
-
554
- def build_revoke_user_delegation_keys_request( # pylint: disable=name-too-long
555
- resource_group_name: str, account_name: str, subscription_id: str, **kwargs: Any
556
- ) -> HttpRequest:
557
- _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
558
-
559
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-09-01"))
560
- # Construct URL
561
- _url = kwargs.pop(
562
- "template_url",
563
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/revokeUserDelegationKeys",
564
- ) # pylint: disable=line-too-long
565
- path_format_arguments = {
566
- "resourceGroupName": _SERIALIZER.url(
567
- "resource_group_name", resource_group_name, "str", max_length=90, min_length=1, pattern=r"^[-\w\._\(\)]+$"
568
- ),
569
- "accountName": _SERIALIZER.url("account_name", account_name, "str", max_length=24, min_length=3),
570
- "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str", min_length=1),
571
- }
572
-
573
- _url: str = _url.format(**path_format_arguments) # type: ignore
574
-
575
- # Construct parameters
576
- _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str")
577
-
578
- return HttpRequest(method="POST", url=_url, params=_params, **kwargs)
579
-
580
-
581
- class StorageAccountsOperations: # pylint: disable=too-many-public-methods
582
- """
583
- .. warning::
584
- **DO NOT** instantiate this class directly.
585
-
586
- Instead, you should access the following operations through
587
- :class:`~azure.mgmt.storage.v2022_09_01.StorageManagementClient`'s
588
- :attr:`storage_accounts` attribute.
589
- """
590
-
591
- models = _models
592
-
593
- def __init__(self, *args, **kwargs):
594
- input_args = list(args)
595
- self._client = input_args.pop(0) if input_args else kwargs.pop("client")
596
- self._config = input_args.pop(0) if input_args else kwargs.pop("config")
597
- self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer")
598
- self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer")
599
- self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version")
600
-
601
- @overload
602
- def check_name_availability(
603
- self,
604
- account_name: _models.StorageAccountCheckNameAvailabilityParameters,
605
- *,
606
- content_type: str = "application/json",
607
- **kwargs: Any
608
- ) -> _models.CheckNameAvailabilityResult:
609
- """Checks that the storage account name is valid and is not already in use.
610
-
611
- :param account_name: The name of the storage account within the specified resource group.
612
- Storage account names must be between 3 and 24 characters in length and use numbers and
613
- lower-case letters only. Required.
614
- :type account_name:
615
- ~azure.mgmt.storage.v2022_09_01.models.StorageAccountCheckNameAvailabilityParameters
616
- :keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
617
- Default value is "application/json".
618
- :paramtype content_type: str
619
- :return: CheckNameAvailabilityResult or the result of cls(response)
620
- :rtype: ~azure.mgmt.storage.v2022_09_01.models.CheckNameAvailabilityResult
621
- :raises ~azure.core.exceptions.HttpResponseError:
622
- """
623
-
624
- @overload
625
- def check_name_availability(
626
- self, account_name: IO[bytes], *, content_type: str = "application/json", **kwargs: Any
627
- ) -> _models.CheckNameAvailabilityResult:
628
- """Checks that the storage account name is valid and is not already in use.
629
-
630
- :param account_name: The name of the storage account within the specified resource group.
631
- Storage account names must be between 3 and 24 characters in length and use numbers and
632
- lower-case letters only. Required.
633
- :type account_name: IO[bytes]
634
- :keyword content_type: Body Parameter content-type. Content type parameter for binary body.
635
- Default value is "application/json".
636
- :paramtype content_type: str
637
- :return: CheckNameAvailabilityResult or the result of cls(response)
638
- :rtype: ~azure.mgmt.storage.v2022_09_01.models.CheckNameAvailabilityResult
639
- :raises ~azure.core.exceptions.HttpResponseError:
640
- """
641
-
642
- @distributed_trace
643
- def check_name_availability(
644
- self, account_name: Union[_models.StorageAccountCheckNameAvailabilityParameters, IO[bytes]], **kwargs: Any
645
- ) -> _models.CheckNameAvailabilityResult:
646
- """Checks that the storage account name is valid and is not already in use.
647
-
648
- :param account_name: The name of the storage account within the specified resource group.
649
- Storage account names must be between 3 and 24 characters in length and use numbers and
650
- lower-case letters only. Is either a StorageAccountCheckNameAvailabilityParameters type or a
651
- IO[bytes] type. Required.
652
- :type account_name:
653
- ~azure.mgmt.storage.v2022_09_01.models.StorageAccountCheckNameAvailabilityParameters or
654
- IO[bytes]
655
- :return: CheckNameAvailabilityResult or the result of cls(response)
656
- :rtype: ~azure.mgmt.storage.v2022_09_01.models.CheckNameAvailabilityResult
657
- :raises ~azure.core.exceptions.HttpResponseError:
658
- """
659
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
660
- 401: ClientAuthenticationError,
661
- 404: ResourceNotFoundError,
662
- 409: ResourceExistsError,
663
- 304: ResourceNotModifiedError,
664
- }
665
- error_map.update(kwargs.pop("error_map", {}) or {})
666
-
667
- _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
668
- _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
669
-
670
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-09-01"))
671
- content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
672
- cls: ClsType[_models.CheckNameAvailabilityResult] = kwargs.pop("cls", None)
673
-
674
- content_type = content_type or "application/json"
675
- _json = None
676
- _content = None
677
- if isinstance(account_name, (IOBase, bytes)):
678
- _content = account_name
679
- else:
680
- _json = self._serialize.body(account_name, "StorageAccountCheckNameAvailabilityParameters")
681
-
682
- _request = build_check_name_availability_request(
683
- subscription_id=self._config.subscription_id,
684
- api_version=api_version,
685
- content_type=content_type,
686
- json=_json,
687
- content=_content,
688
- headers=_headers,
689
- params=_params,
690
- )
691
- _request = _convert_request(_request)
692
- _request.url = self._client.format_url(_request.url)
693
-
694
- _stream = False
695
- pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access
696
- _request, stream=_stream, **kwargs
697
- )
698
-
699
- response = pipeline_response.http_response
700
-
701
- if response.status_code not in [200]:
702
- map_error(status_code=response.status_code, response=response, error_map=error_map)
703
- raise HttpResponseError(response=response, error_format=ARMErrorFormat)
704
-
705
- deserialized = self._deserialize("CheckNameAvailabilityResult", pipeline_response)
706
-
707
- if cls:
708
- return cls(pipeline_response, deserialized, {}) # type: ignore
709
-
710
- return deserialized # type: ignore
711
-
712
- def _create_initial(
713
- self,
714
- resource_group_name: str,
715
- account_name: str,
716
- parameters: Union[_models.StorageAccountCreateParameters, IO[bytes]],
717
- **kwargs: Any
718
- ) -> Optional[_models.StorageAccount]:
719
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
720
- 401: ClientAuthenticationError,
721
- 404: ResourceNotFoundError,
722
- 409: ResourceExistsError,
723
- 304: ResourceNotModifiedError,
724
- }
725
- error_map.update(kwargs.pop("error_map", {}) or {})
726
-
727
- _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
728
- _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
729
-
730
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-09-01"))
731
- content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
732
- cls: ClsType[Optional[_models.StorageAccount]] = kwargs.pop("cls", None)
733
-
734
- content_type = content_type or "application/json"
735
- _json = None
736
- _content = None
737
- if isinstance(parameters, (IOBase, bytes)):
738
- _content = parameters
739
- else:
740
- _json = self._serialize.body(parameters, "StorageAccountCreateParameters")
741
-
742
- _request = build_create_request(
743
- resource_group_name=resource_group_name,
744
- account_name=account_name,
745
- subscription_id=self._config.subscription_id,
746
- api_version=api_version,
747
- content_type=content_type,
748
- json=_json,
749
- content=_content,
750
- headers=_headers,
751
- params=_params,
752
- )
753
- _request = _convert_request(_request)
754
- _request.url = self._client.format_url(_request.url)
755
-
756
- _stream = False
757
- pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access
758
- _request, stream=_stream, **kwargs
759
- )
760
-
761
- response = pipeline_response.http_response
762
-
763
- if response.status_code not in [200, 202]:
764
- map_error(status_code=response.status_code, response=response, error_map=error_map)
765
- raise HttpResponseError(response=response, error_format=ARMErrorFormat)
766
-
767
- deserialized = None
768
- if response.status_code == 200:
769
- deserialized = self._deserialize("StorageAccount", pipeline_response)
770
-
771
- if cls:
772
- return cls(pipeline_response, deserialized, {}) # type: ignore
773
-
774
- return deserialized # type: ignore
775
-
776
- @overload
777
- def begin_create(
778
- self,
779
- resource_group_name: str,
780
- account_name: str,
781
- parameters: _models.StorageAccountCreateParameters,
782
- *,
783
- content_type: str = "application/json",
784
- **kwargs: Any
785
- ) -> LROPoller[_models.StorageAccount]:
786
- """Asynchronously creates a new storage account with the specified parameters. If an account is
787
- already created and a subsequent create request is issued with different properties, the
788
- account properties will be updated. If an account is already created and a subsequent create or
789
- update request is issued with the exact same set of properties, the request will succeed.
790
-
791
- :param resource_group_name: The name of the resource group within the user's subscription. The
792
- name is case insensitive. Required.
793
- :type resource_group_name: str
794
- :param account_name: The name of the storage account within the specified resource group.
795
- Storage account names must be between 3 and 24 characters in length and use numbers and
796
- lower-case letters only. Required.
797
- :type account_name: str
798
- :param parameters: The parameters to provide for the created account. Required.
799
- :type parameters: ~azure.mgmt.storage.v2022_09_01.models.StorageAccountCreateParameters
800
- :keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
801
- Default value is "application/json".
802
- :paramtype content_type: str
803
- :return: An instance of LROPoller that returns either StorageAccount or the result of
804
- cls(response)
805
- :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.storage.v2022_09_01.models.StorageAccount]
806
- :raises ~azure.core.exceptions.HttpResponseError:
807
- """
808
-
809
- @overload
810
- def begin_create(
811
- self,
812
- resource_group_name: str,
813
- account_name: str,
814
- parameters: IO[bytes],
815
- *,
816
- content_type: str = "application/json",
817
- **kwargs: Any
818
- ) -> LROPoller[_models.StorageAccount]:
819
- """Asynchronously creates a new storage account with the specified parameters. If an account is
820
- already created and a subsequent create request is issued with different properties, the
821
- account properties will be updated. If an account is already created and a subsequent create or
822
- update request is issued with the exact same set of properties, the request will succeed.
823
-
824
- :param resource_group_name: The name of the resource group within the user's subscription. The
825
- name is case insensitive. Required.
826
- :type resource_group_name: str
827
- :param account_name: The name of the storage account within the specified resource group.
828
- Storage account names must be between 3 and 24 characters in length and use numbers and
829
- lower-case letters only. Required.
830
- :type account_name: str
831
- :param parameters: The parameters to provide for the created account. Required.
832
- :type parameters: IO[bytes]
833
- :keyword content_type: Body Parameter content-type. Content type parameter for binary body.
834
- Default value is "application/json".
835
- :paramtype content_type: str
836
- :return: An instance of LROPoller that returns either StorageAccount or the result of
837
- cls(response)
838
- :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.storage.v2022_09_01.models.StorageAccount]
839
- :raises ~azure.core.exceptions.HttpResponseError:
840
- """
841
-
842
- @distributed_trace
843
- def begin_create(
844
- self,
845
- resource_group_name: str,
846
- account_name: str,
847
- parameters: Union[_models.StorageAccountCreateParameters, IO[bytes]],
848
- **kwargs: Any
849
- ) -> LROPoller[_models.StorageAccount]:
850
- """Asynchronously creates a new storage account with the specified parameters. If an account is
851
- already created and a subsequent create request is issued with different properties, the
852
- account properties will be updated. If an account is already created and a subsequent create or
853
- update request is issued with the exact same set of properties, the request will succeed.
854
-
855
- :param resource_group_name: The name of the resource group within the user's subscription. The
856
- name is case insensitive. Required.
857
- :type resource_group_name: str
858
- :param account_name: The name of the storage account within the specified resource group.
859
- Storage account names must be between 3 and 24 characters in length and use numbers and
860
- lower-case letters only. Required.
861
- :type account_name: str
862
- :param parameters: The parameters to provide for the created account. Is either a
863
- StorageAccountCreateParameters type or a IO[bytes] type. Required.
864
- :type parameters: ~azure.mgmt.storage.v2022_09_01.models.StorageAccountCreateParameters or
865
- IO[bytes]
866
- :return: An instance of LROPoller that returns either StorageAccount or the result of
867
- cls(response)
868
- :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.storage.v2022_09_01.models.StorageAccount]
869
- :raises ~azure.core.exceptions.HttpResponseError:
870
- """
871
- _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
872
- _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
873
-
874
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-09-01"))
875
- content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
876
- cls: ClsType[_models.StorageAccount] = kwargs.pop("cls", None)
877
- polling: Union[bool, PollingMethod] = kwargs.pop("polling", True)
878
- lro_delay = kwargs.pop("polling_interval", self._config.polling_interval)
879
- cont_token: Optional[str] = kwargs.pop("continuation_token", None)
880
- if cont_token is None:
881
- raw_result = self._create_initial(
882
- resource_group_name=resource_group_name,
883
- account_name=account_name,
884
- parameters=parameters,
885
- api_version=api_version,
886
- content_type=content_type,
887
- cls=lambda x, y, z: x,
888
- headers=_headers,
889
- params=_params,
890
- **kwargs
891
- )
892
- kwargs.pop("error_map", None)
893
-
894
- def get_long_running_output(pipeline_response):
895
- deserialized = self._deserialize("StorageAccount", pipeline_response)
896
- if cls:
897
- return cls(pipeline_response, deserialized, {}) # type: ignore
898
- return deserialized
899
-
900
- if polling is True:
901
- polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs))
902
- elif polling is False:
903
- polling_method = cast(PollingMethod, NoPolling())
904
- else:
905
- polling_method = polling
906
- if cont_token:
907
- return LROPoller[_models.StorageAccount].from_continuation_token(
908
- polling_method=polling_method,
909
- continuation_token=cont_token,
910
- client=self._client,
911
- deserialization_callback=get_long_running_output,
912
- )
913
- return LROPoller[_models.StorageAccount](
914
- self._client, raw_result, get_long_running_output, polling_method # type: ignore
915
- )
916
-
917
- @distributed_trace
918
- def delete( # pylint: disable=inconsistent-return-statements
919
- self, resource_group_name: str, account_name: str, **kwargs: Any
920
- ) -> None:
921
- """Deletes a storage account in Microsoft Azure.
922
-
923
- :param resource_group_name: The name of the resource group within the user's subscription. The
924
- name is case insensitive. Required.
925
- :type resource_group_name: str
926
- :param account_name: The name of the storage account within the specified resource group.
927
- Storage account names must be between 3 and 24 characters in length and use numbers and
928
- lower-case letters only. Required.
929
- :type account_name: str
930
- :return: None or the result of cls(response)
931
- :rtype: None
932
- :raises ~azure.core.exceptions.HttpResponseError:
933
- """
934
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
935
- 401: ClientAuthenticationError,
936
- 404: ResourceNotFoundError,
937
- 409: ResourceExistsError,
938
- 304: ResourceNotModifiedError,
939
- }
940
- error_map.update(kwargs.pop("error_map", {}) or {})
941
-
942
- _headers = kwargs.pop("headers", {}) or {}
943
- _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
944
-
945
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-09-01"))
946
- cls: ClsType[None] = kwargs.pop("cls", None)
947
-
948
- _request = build_delete_request(
949
- resource_group_name=resource_group_name,
950
- account_name=account_name,
951
- subscription_id=self._config.subscription_id,
952
- api_version=api_version,
953
- headers=_headers,
954
- params=_params,
955
- )
956
- _request = _convert_request(_request)
957
- _request.url = self._client.format_url(_request.url)
958
-
959
- _stream = False
960
- pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access
961
- _request, stream=_stream, **kwargs
962
- )
963
-
964
- response = pipeline_response.http_response
965
-
966
- if response.status_code not in [200, 204]:
967
- map_error(status_code=response.status_code, response=response, error_map=error_map)
968
- raise HttpResponseError(response=response, error_format=ARMErrorFormat)
969
-
970
- if cls:
971
- return cls(pipeline_response, None, {}) # type: ignore
972
-
973
- @distributed_trace
974
- def get_properties(
975
- self,
976
- resource_group_name: str,
977
- account_name: str,
978
- expand: Optional[Union[str, _models.StorageAccountExpand]] = None,
979
- **kwargs: Any
980
- ) -> _models.StorageAccount:
981
- """Returns the properties for the specified storage account including but not limited to name, SKU
982
- name, location, and account status. The ListKeys operation should be used to retrieve storage
983
- keys.
984
-
985
- :param resource_group_name: The name of the resource group within the user's subscription. The
986
- name is case insensitive. Required.
987
- :type resource_group_name: str
988
- :param account_name: The name of the storage account within the specified resource group.
989
- Storage account names must be between 3 and 24 characters in length and use numbers and
990
- lower-case letters only. Required.
991
- :type account_name: str
992
- :param expand: May be used to expand the properties within account's properties. By default,
993
- data is not included when fetching properties. Currently we only support geoReplicationStats
994
- and blobRestoreStatus. Known values are: "geoReplicationStats" and "blobRestoreStatus". Default
995
- value is None.
996
- :type expand: str or ~azure.mgmt.storage.v2022_09_01.models.StorageAccountExpand
997
- :return: StorageAccount or the result of cls(response)
998
- :rtype: ~azure.mgmt.storage.v2022_09_01.models.StorageAccount
999
- :raises ~azure.core.exceptions.HttpResponseError:
1000
- """
1001
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
1002
- 401: ClientAuthenticationError,
1003
- 404: ResourceNotFoundError,
1004
- 409: ResourceExistsError,
1005
- 304: ResourceNotModifiedError,
1006
- }
1007
- error_map.update(kwargs.pop("error_map", {}) or {})
1008
-
1009
- _headers = kwargs.pop("headers", {}) or {}
1010
- _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
1011
-
1012
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-09-01"))
1013
- cls: ClsType[_models.StorageAccount] = kwargs.pop("cls", None)
1014
-
1015
- _request = build_get_properties_request(
1016
- resource_group_name=resource_group_name,
1017
- account_name=account_name,
1018
- subscription_id=self._config.subscription_id,
1019
- expand=expand,
1020
- api_version=api_version,
1021
- headers=_headers,
1022
- params=_params,
1023
- )
1024
- _request = _convert_request(_request)
1025
- _request.url = self._client.format_url(_request.url)
1026
-
1027
- _stream = False
1028
- pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access
1029
- _request, stream=_stream, **kwargs
1030
- )
1031
-
1032
- response = pipeline_response.http_response
1033
-
1034
- if response.status_code not in [200]:
1035
- map_error(status_code=response.status_code, response=response, error_map=error_map)
1036
- raise HttpResponseError(response=response, error_format=ARMErrorFormat)
1037
-
1038
- deserialized = self._deserialize("StorageAccount", pipeline_response)
1039
-
1040
- if cls:
1041
- return cls(pipeline_response, deserialized, {}) # type: ignore
1042
-
1043
- return deserialized # type: ignore
1044
-
1045
- @overload
1046
- def update(
1047
- self,
1048
- resource_group_name: str,
1049
- account_name: str,
1050
- parameters: _models.StorageAccountUpdateParameters,
1051
- *,
1052
- content_type: str = "application/json",
1053
- **kwargs: Any
1054
- ) -> _models.StorageAccount:
1055
- """The update operation can be used to update the SKU, encryption, access tier, or tags for a
1056
- storage account. It can also be used to map the account to a custom domain. Only one custom
1057
- domain is supported per storage account; the replacement/change of custom domain is not
1058
- supported. In order to replace an old custom domain, the old value must be cleared/unregistered
1059
- before a new value can be set. The update of multiple properties is supported. This call does
1060
- not change the storage keys for the account. If you want to change the storage account keys,
1061
- use the regenerate keys operation. The location and name of the storage account cannot be
1062
- changed after creation.
1063
-
1064
- :param resource_group_name: The name of the resource group within the user's subscription. The
1065
- name is case insensitive. Required.
1066
- :type resource_group_name: str
1067
- :param account_name: The name of the storage account within the specified resource group.
1068
- Storage account names must be between 3 and 24 characters in length and use numbers and
1069
- lower-case letters only. Required.
1070
- :type account_name: str
1071
- :param parameters: The parameters to provide for the updated account. Required.
1072
- :type parameters: ~azure.mgmt.storage.v2022_09_01.models.StorageAccountUpdateParameters
1073
- :keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
1074
- Default value is "application/json".
1075
- :paramtype content_type: str
1076
- :return: StorageAccount or the result of cls(response)
1077
- :rtype: ~azure.mgmt.storage.v2022_09_01.models.StorageAccount
1078
- :raises ~azure.core.exceptions.HttpResponseError:
1079
- """
1080
-
1081
- @overload
1082
- def update(
1083
- self,
1084
- resource_group_name: str,
1085
- account_name: str,
1086
- parameters: IO[bytes],
1087
- *,
1088
- content_type: str = "application/json",
1089
- **kwargs: Any
1090
- ) -> _models.StorageAccount:
1091
- """The update operation can be used to update the SKU, encryption, access tier, or tags for a
1092
- storage account. It can also be used to map the account to a custom domain. Only one custom
1093
- domain is supported per storage account; the replacement/change of custom domain is not
1094
- supported. In order to replace an old custom domain, the old value must be cleared/unregistered
1095
- before a new value can be set. The update of multiple properties is supported. This call does
1096
- not change the storage keys for the account. If you want to change the storage account keys,
1097
- use the regenerate keys operation. The location and name of the storage account cannot be
1098
- changed after creation.
1099
-
1100
- :param resource_group_name: The name of the resource group within the user's subscription. The
1101
- name is case insensitive. Required.
1102
- :type resource_group_name: str
1103
- :param account_name: The name of the storage account within the specified resource group.
1104
- Storage account names must be between 3 and 24 characters in length and use numbers and
1105
- lower-case letters only. Required.
1106
- :type account_name: str
1107
- :param parameters: The parameters to provide for the updated account. Required.
1108
- :type parameters: IO[bytes]
1109
- :keyword content_type: Body Parameter content-type. Content type parameter for binary body.
1110
- Default value is "application/json".
1111
- :paramtype content_type: str
1112
- :return: StorageAccount or the result of cls(response)
1113
- :rtype: ~azure.mgmt.storage.v2022_09_01.models.StorageAccount
1114
- :raises ~azure.core.exceptions.HttpResponseError:
1115
- """
1116
-
1117
- @distributed_trace
1118
- def update(
1119
- self,
1120
- resource_group_name: str,
1121
- account_name: str,
1122
- parameters: Union[_models.StorageAccountUpdateParameters, IO[bytes]],
1123
- **kwargs: Any
1124
- ) -> _models.StorageAccount:
1125
- """The update operation can be used to update the SKU, encryption, access tier, or tags for a
1126
- storage account. It can also be used to map the account to a custom domain. Only one custom
1127
- domain is supported per storage account; the replacement/change of custom domain is not
1128
- supported. In order to replace an old custom domain, the old value must be cleared/unregistered
1129
- before a new value can be set. The update of multiple properties is supported. This call does
1130
- not change the storage keys for the account. If you want to change the storage account keys,
1131
- use the regenerate keys operation. The location and name of the storage account cannot be
1132
- changed after creation.
1133
-
1134
- :param resource_group_name: The name of the resource group within the user's subscription. The
1135
- name is case insensitive. Required.
1136
- :type resource_group_name: str
1137
- :param account_name: The name of the storage account within the specified resource group.
1138
- Storage account names must be between 3 and 24 characters in length and use numbers and
1139
- lower-case letters only. Required.
1140
- :type account_name: str
1141
- :param parameters: The parameters to provide for the updated account. Is either a
1142
- StorageAccountUpdateParameters type or a IO[bytes] type. Required.
1143
- :type parameters: ~azure.mgmt.storage.v2022_09_01.models.StorageAccountUpdateParameters or
1144
- IO[bytes]
1145
- :return: StorageAccount or the result of cls(response)
1146
- :rtype: ~azure.mgmt.storage.v2022_09_01.models.StorageAccount
1147
- :raises ~azure.core.exceptions.HttpResponseError:
1148
- """
1149
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
1150
- 401: ClientAuthenticationError,
1151
- 404: ResourceNotFoundError,
1152
- 409: ResourceExistsError,
1153
- 304: ResourceNotModifiedError,
1154
- }
1155
- error_map.update(kwargs.pop("error_map", {}) or {})
1156
-
1157
- _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
1158
- _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
1159
-
1160
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-09-01"))
1161
- content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
1162
- cls: ClsType[_models.StorageAccount] = kwargs.pop("cls", None)
1163
-
1164
- content_type = content_type or "application/json"
1165
- _json = None
1166
- _content = None
1167
- if isinstance(parameters, (IOBase, bytes)):
1168
- _content = parameters
1169
- else:
1170
- _json = self._serialize.body(parameters, "StorageAccountUpdateParameters")
1171
-
1172
- _request = build_update_request(
1173
- resource_group_name=resource_group_name,
1174
- account_name=account_name,
1175
- subscription_id=self._config.subscription_id,
1176
- api_version=api_version,
1177
- content_type=content_type,
1178
- json=_json,
1179
- content=_content,
1180
- headers=_headers,
1181
- params=_params,
1182
- )
1183
- _request = _convert_request(_request)
1184
- _request.url = self._client.format_url(_request.url)
1185
-
1186
- _stream = False
1187
- pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access
1188
- _request, stream=_stream, **kwargs
1189
- )
1190
-
1191
- response = pipeline_response.http_response
1192
-
1193
- if response.status_code not in [200]:
1194
- map_error(status_code=response.status_code, response=response, error_map=error_map)
1195
- raise HttpResponseError(response=response, error_format=ARMErrorFormat)
1196
-
1197
- deserialized = self._deserialize("StorageAccount", pipeline_response)
1198
-
1199
- if cls:
1200
- return cls(pipeline_response, deserialized, {}) # type: ignore
1201
-
1202
- return deserialized # type: ignore
1203
-
1204
- @distributed_trace
1205
- def list(self, **kwargs: Any) -> Iterable["_models.StorageAccount"]:
1206
- """Lists all the storage accounts available under the subscription. Note that storage keys are not
1207
- returned; use the ListKeys operation for this.
1208
-
1209
- :return: An iterator like instance of either StorageAccount or the result of cls(response)
1210
- :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.storage.v2022_09_01.models.StorageAccount]
1211
- :raises ~azure.core.exceptions.HttpResponseError:
1212
- """
1213
- _headers = kwargs.pop("headers", {}) or {}
1214
- _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
1215
-
1216
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-09-01"))
1217
- cls: ClsType[_models.StorageAccountListResult] = kwargs.pop("cls", None)
1218
-
1219
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
1220
- 401: ClientAuthenticationError,
1221
- 404: ResourceNotFoundError,
1222
- 409: ResourceExistsError,
1223
- 304: ResourceNotModifiedError,
1224
- }
1225
- error_map.update(kwargs.pop("error_map", {}) or {})
1226
-
1227
- def prepare_request(next_link=None):
1228
- if not next_link:
1229
-
1230
- _request = build_list_request(
1231
- subscription_id=self._config.subscription_id,
1232
- api_version=api_version,
1233
- headers=_headers,
1234
- params=_params,
1235
- )
1236
- _request = _convert_request(_request)
1237
- _request.url = self._client.format_url(_request.url)
1238
-
1239
- else:
1240
- # make call to next link with the client's api-version
1241
- _parsed_next_link = urllib.parse.urlparse(next_link)
1242
- _next_request_params = case_insensitive_dict(
1243
- {
1244
- key: [urllib.parse.quote(v) for v in value]
1245
- for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items()
1246
- }
1247
- )
1248
- _next_request_params["api-version"] = self._api_version
1249
- _request = HttpRequest(
1250
- "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params
1251
- )
1252
- _request = _convert_request(_request)
1253
- _request.url = self._client.format_url(_request.url)
1254
- _request.method = "GET"
1255
- return _request
1256
-
1257
- def extract_data(pipeline_response):
1258
- deserialized = self._deserialize("StorageAccountListResult", pipeline_response)
1259
- list_of_elem = deserialized.value
1260
- if cls:
1261
- list_of_elem = cls(list_of_elem) # type: ignore
1262
- return deserialized.next_link or None, iter(list_of_elem)
1263
-
1264
- def get_next(next_link=None):
1265
- _request = prepare_request(next_link)
1266
-
1267
- _stream = False
1268
- pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access
1269
- _request, stream=_stream, **kwargs
1270
- )
1271
- response = pipeline_response.http_response
1272
-
1273
- if response.status_code not in [200]:
1274
- map_error(status_code=response.status_code, response=response, error_map=error_map)
1275
- raise HttpResponseError(response=response, error_format=ARMErrorFormat)
1276
-
1277
- return pipeline_response
1278
-
1279
- return ItemPaged(get_next, extract_data)
1280
-
1281
- @distributed_trace
1282
- def list_by_resource_group(self, resource_group_name: str, **kwargs: Any) -> Iterable["_models.StorageAccount"]:
1283
- """Lists all the storage accounts available under the given resource group. Note that storage keys
1284
- are not returned; use the ListKeys operation for this.
1285
-
1286
- :param resource_group_name: The name of the resource group within the user's subscription. The
1287
- name is case insensitive. Required.
1288
- :type resource_group_name: str
1289
- :return: An iterator like instance of either StorageAccount or the result of cls(response)
1290
- :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.storage.v2022_09_01.models.StorageAccount]
1291
- :raises ~azure.core.exceptions.HttpResponseError:
1292
- """
1293
- _headers = kwargs.pop("headers", {}) or {}
1294
- _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
1295
-
1296
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-09-01"))
1297
- cls: ClsType[_models.StorageAccountListResult] = kwargs.pop("cls", None)
1298
-
1299
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
1300
- 401: ClientAuthenticationError,
1301
- 404: ResourceNotFoundError,
1302
- 409: ResourceExistsError,
1303
- 304: ResourceNotModifiedError,
1304
- }
1305
- error_map.update(kwargs.pop("error_map", {}) or {})
1306
-
1307
- def prepare_request(next_link=None):
1308
- if not next_link:
1309
-
1310
- _request = build_list_by_resource_group_request(
1311
- resource_group_name=resource_group_name,
1312
- subscription_id=self._config.subscription_id,
1313
- api_version=api_version,
1314
- headers=_headers,
1315
- params=_params,
1316
- )
1317
- _request = _convert_request(_request)
1318
- _request.url = self._client.format_url(_request.url)
1319
-
1320
- else:
1321
- # make call to next link with the client's api-version
1322
- _parsed_next_link = urllib.parse.urlparse(next_link)
1323
- _next_request_params = case_insensitive_dict(
1324
- {
1325
- key: [urllib.parse.quote(v) for v in value]
1326
- for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items()
1327
- }
1328
- )
1329
- _next_request_params["api-version"] = self._api_version
1330
- _request = HttpRequest(
1331
- "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params
1332
- )
1333
- _request = _convert_request(_request)
1334
- _request.url = self._client.format_url(_request.url)
1335
- _request.method = "GET"
1336
- return _request
1337
-
1338
- def extract_data(pipeline_response):
1339
- deserialized = self._deserialize("StorageAccountListResult", pipeline_response)
1340
- list_of_elem = deserialized.value
1341
- if cls:
1342
- list_of_elem = cls(list_of_elem) # type: ignore
1343
- return deserialized.next_link or None, iter(list_of_elem)
1344
-
1345
- def get_next(next_link=None):
1346
- _request = prepare_request(next_link)
1347
-
1348
- _stream = False
1349
- pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access
1350
- _request, stream=_stream, **kwargs
1351
- )
1352
- response = pipeline_response.http_response
1353
-
1354
- if response.status_code not in [200]:
1355
- map_error(status_code=response.status_code, response=response, error_map=error_map)
1356
- raise HttpResponseError(response=response, error_format=ARMErrorFormat)
1357
-
1358
- return pipeline_response
1359
-
1360
- return ItemPaged(get_next, extract_data)
1361
-
1362
- @distributed_trace
1363
- def list_keys(
1364
- self, resource_group_name: str, account_name: str, expand: Literal["kerb"] = "kerb", **kwargs: Any
1365
- ) -> _models.StorageAccountListKeysResult:
1366
- """Lists the access keys or Kerberos keys (if active directory enabled) for the specified storage
1367
- account.
1368
-
1369
- :param resource_group_name: The name of the resource group within the user's subscription. The
1370
- name is case insensitive. Required.
1371
- :type resource_group_name: str
1372
- :param account_name: The name of the storage account within the specified resource group.
1373
- Storage account names must be between 3 and 24 characters in length and use numbers and
1374
- lower-case letters only. Required.
1375
- :type account_name: str
1376
- :param expand: Specifies type of the key to be listed. Possible value is kerb. Known values are
1377
- "kerb" and None. Default value is "kerb".
1378
- :type expand: str
1379
- :return: StorageAccountListKeysResult or the result of cls(response)
1380
- :rtype: ~azure.mgmt.storage.v2022_09_01.models.StorageAccountListKeysResult
1381
- :raises ~azure.core.exceptions.HttpResponseError:
1382
- """
1383
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
1384
- 401: ClientAuthenticationError,
1385
- 404: ResourceNotFoundError,
1386
- 409: ResourceExistsError,
1387
- 304: ResourceNotModifiedError,
1388
- }
1389
- error_map.update(kwargs.pop("error_map", {}) or {})
1390
-
1391
- _headers = kwargs.pop("headers", {}) or {}
1392
- _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
1393
-
1394
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-09-01"))
1395
- cls: ClsType[_models.StorageAccountListKeysResult] = kwargs.pop("cls", None)
1396
-
1397
- _request = build_list_keys_request(
1398
- resource_group_name=resource_group_name,
1399
- account_name=account_name,
1400
- subscription_id=self._config.subscription_id,
1401
- expand=expand,
1402
- api_version=api_version,
1403
- headers=_headers,
1404
- params=_params,
1405
- )
1406
- _request = _convert_request(_request)
1407
- _request.url = self._client.format_url(_request.url)
1408
-
1409
- _stream = False
1410
- pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access
1411
- _request, stream=_stream, **kwargs
1412
- )
1413
-
1414
- response = pipeline_response.http_response
1415
-
1416
- if response.status_code not in [200]:
1417
- map_error(status_code=response.status_code, response=response, error_map=error_map)
1418
- raise HttpResponseError(response=response, error_format=ARMErrorFormat)
1419
-
1420
- deserialized = self._deserialize("StorageAccountListKeysResult", pipeline_response)
1421
-
1422
- if cls:
1423
- return cls(pipeline_response, deserialized, {}) # type: ignore
1424
-
1425
- return deserialized # type: ignore
1426
-
1427
- @overload
1428
- def regenerate_key(
1429
- self,
1430
- resource_group_name: str,
1431
- account_name: str,
1432
- regenerate_key: _models.StorageAccountRegenerateKeyParameters,
1433
- *,
1434
- content_type: str = "application/json",
1435
- **kwargs: Any
1436
- ) -> _models.StorageAccountListKeysResult:
1437
- """Regenerates one of the access keys or Kerberos keys for the specified storage account.
1438
-
1439
- :param resource_group_name: The name of the resource group within the user's subscription. The
1440
- name is case insensitive. Required.
1441
- :type resource_group_name: str
1442
- :param account_name: The name of the storage account within the specified resource group.
1443
- Storage account names must be between 3 and 24 characters in length and use numbers and
1444
- lower-case letters only. Required.
1445
- :type account_name: str
1446
- :param regenerate_key: Specifies name of the key which should be regenerated -- key1, key2,
1447
- kerb1, kerb2. Required.
1448
- :type regenerate_key:
1449
- ~azure.mgmt.storage.v2022_09_01.models.StorageAccountRegenerateKeyParameters
1450
- :keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
1451
- Default value is "application/json".
1452
- :paramtype content_type: str
1453
- :return: StorageAccountListKeysResult or the result of cls(response)
1454
- :rtype: ~azure.mgmt.storage.v2022_09_01.models.StorageAccountListKeysResult
1455
- :raises ~azure.core.exceptions.HttpResponseError:
1456
- """
1457
-
1458
- @overload
1459
- def regenerate_key(
1460
- self,
1461
- resource_group_name: str,
1462
- account_name: str,
1463
- regenerate_key: IO[bytes],
1464
- *,
1465
- content_type: str = "application/json",
1466
- **kwargs: Any
1467
- ) -> _models.StorageAccountListKeysResult:
1468
- """Regenerates one of the access keys or Kerberos keys for the specified storage account.
1469
-
1470
- :param resource_group_name: The name of the resource group within the user's subscription. The
1471
- name is case insensitive. Required.
1472
- :type resource_group_name: str
1473
- :param account_name: The name of the storage account within the specified resource group.
1474
- Storage account names must be between 3 and 24 characters in length and use numbers and
1475
- lower-case letters only. Required.
1476
- :type account_name: str
1477
- :param regenerate_key: Specifies name of the key which should be regenerated -- key1, key2,
1478
- kerb1, kerb2. Required.
1479
- :type regenerate_key: IO[bytes]
1480
- :keyword content_type: Body Parameter content-type. Content type parameter for binary body.
1481
- Default value is "application/json".
1482
- :paramtype content_type: str
1483
- :return: StorageAccountListKeysResult or the result of cls(response)
1484
- :rtype: ~azure.mgmt.storage.v2022_09_01.models.StorageAccountListKeysResult
1485
- :raises ~azure.core.exceptions.HttpResponseError:
1486
- """
1487
-
1488
- @distributed_trace
1489
- def regenerate_key(
1490
- self,
1491
- resource_group_name: str,
1492
- account_name: str,
1493
- regenerate_key: Union[_models.StorageAccountRegenerateKeyParameters, IO[bytes]],
1494
- **kwargs: Any
1495
- ) -> _models.StorageAccountListKeysResult:
1496
- """Regenerates one of the access keys or Kerberos keys for the specified storage account.
1497
-
1498
- :param resource_group_name: The name of the resource group within the user's subscription. The
1499
- name is case insensitive. Required.
1500
- :type resource_group_name: str
1501
- :param account_name: The name of the storage account within the specified resource group.
1502
- Storage account names must be between 3 and 24 characters in length and use numbers and
1503
- lower-case letters only. Required.
1504
- :type account_name: str
1505
- :param regenerate_key: Specifies name of the key which should be regenerated -- key1, key2,
1506
- kerb1, kerb2. Is either a StorageAccountRegenerateKeyParameters type or a IO[bytes] type.
1507
- Required.
1508
- :type regenerate_key:
1509
- ~azure.mgmt.storage.v2022_09_01.models.StorageAccountRegenerateKeyParameters or IO[bytes]
1510
- :return: StorageAccountListKeysResult or the result of cls(response)
1511
- :rtype: ~azure.mgmt.storage.v2022_09_01.models.StorageAccountListKeysResult
1512
- :raises ~azure.core.exceptions.HttpResponseError:
1513
- """
1514
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
1515
- 401: ClientAuthenticationError,
1516
- 404: ResourceNotFoundError,
1517
- 409: ResourceExistsError,
1518
- 304: ResourceNotModifiedError,
1519
- }
1520
- error_map.update(kwargs.pop("error_map", {}) or {})
1521
-
1522
- _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
1523
- _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
1524
-
1525
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-09-01"))
1526
- content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
1527
- cls: ClsType[_models.StorageAccountListKeysResult] = kwargs.pop("cls", None)
1528
-
1529
- content_type = content_type or "application/json"
1530
- _json = None
1531
- _content = None
1532
- if isinstance(regenerate_key, (IOBase, bytes)):
1533
- _content = regenerate_key
1534
- else:
1535
- _json = self._serialize.body(regenerate_key, "StorageAccountRegenerateKeyParameters")
1536
-
1537
- _request = build_regenerate_key_request(
1538
- resource_group_name=resource_group_name,
1539
- account_name=account_name,
1540
- subscription_id=self._config.subscription_id,
1541
- api_version=api_version,
1542
- content_type=content_type,
1543
- json=_json,
1544
- content=_content,
1545
- headers=_headers,
1546
- params=_params,
1547
- )
1548
- _request = _convert_request(_request)
1549
- _request.url = self._client.format_url(_request.url)
1550
-
1551
- _stream = False
1552
- pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access
1553
- _request, stream=_stream, **kwargs
1554
- )
1555
-
1556
- response = pipeline_response.http_response
1557
-
1558
- if response.status_code not in [200]:
1559
- map_error(status_code=response.status_code, response=response, error_map=error_map)
1560
- raise HttpResponseError(response=response, error_format=ARMErrorFormat)
1561
-
1562
- deserialized = self._deserialize("StorageAccountListKeysResult", pipeline_response)
1563
-
1564
- if cls:
1565
- return cls(pipeline_response, deserialized, {}) # type: ignore
1566
-
1567
- return deserialized # type: ignore
1568
-
1569
- @overload
1570
- def list_account_sas(
1571
- self,
1572
- resource_group_name: str,
1573
- account_name: str,
1574
- parameters: _models.AccountSasParameters,
1575
- *,
1576
- content_type: str = "application/json",
1577
- **kwargs: Any
1578
- ) -> _models.ListAccountSasResponse:
1579
- """List SAS credentials of a storage account.
1580
-
1581
- :param resource_group_name: The name of the resource group within the user's subscription. The
1582
- name is case insensitive. Required.
1583
- :type resource_group_name: str
1584
- :param account_name: The name of the storage account within the specified resource group.
1585
- Storage account names must be between 3 and 24 characters in length and use numbers and
1586
- lower-case letters only. Required.
1587
- :type account_name: str
1588
- :param parameters: The parameters to provide to list SAS credentials for the storage account.
1589
- Required.
1590
- :type parameters: ~azure.mgmt.storage.v2022_09_01.models.AccountSasParameters
1591
- :keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
1592
- Default value is "application/json".
1593
- :paramtype content_type: str
1594
- :return: ListAccountSasResponse or the result of cls(response)
1595
- :rtype: ~azure.mgmt.storage.v2022_09_01.models.ListAccountSasResponse
1596
- :raises ~azure.core.exceptions.HttpResponseError:
1597
- """
1598
-
1599
- @overload
1600
- def list_account_sas(
1601
- self,
1602
- resource_group_name: str,
1603
- account_name: str,
1604
- parameters: IO[bytes],
1605
- *,
1606
- content_type: str = "application/json",
1607
- **kwargs: Any
1608
- ) -> _models.ListAccountSasResponse:
1609
- """List SAS credentials of a storage account.
1610
-
1611
- :param resource_group_name: The name of the resource group within the user's subscription. The
1612
- name is case insensitive. Required.
1613
- :type resource_group_name: str
1614
- :param account_name: The name of the storage account within the specified resource group.
1615
- Storage account names must be between 3 and 24 characters in length and use numbers and
1616
- lower-case letters only. Required.
1617
- :type account_name: str
1618
- :param parameters: The parameters to provide to list SAS credentials for the storage account.
1619
- Required.
1620
- :type parameters: IO[bytes]
1621
- :keyword content_type: Body Parameter content-type. Content type parameter for binary body.
1622
- Default value is "application/json".
1623
- :paramtype content_type: str
1624
- :return: ListAccountSasResponse or the result of cls(response)
1625
- :rtype: ~azure.mgmt.storage.v2022_09_01.models.ListAccountSasResponse
1626
- :raises ~azure.core.exceptions.HttpResponseError:
1627
- """
1628
-
1629
- @distributed_trace
1630
- def list_account_sas(
1631
- self,
1632
- resource_group_name: str,
1633
- account_name: str,
1634
- parameters: Union[_models.AccountSasParameters, IO[bytes]],
1635
- **kwargs: Any
1636
- ) -> _models.ListAccountSasResponse:
1637
- """List SAS credentials of a storage account.
1638
-
1639
- :param resource_group_name: The name of the resource group within the user's subscription. The
1640
- name is case insensitive. Required.
1641
- :type resource_group_name: str
1642
- :param account_name: The name of the storage account within the specified resource group.
1643
- Storage account names must be between 3 and 24 characters in length and use numbers and
1644
- lower-case letters only. Required.
1645
- :type account_name: str
1646
- :param parameters: The parameters to provide to list SAS credentials for the storage account.
1647
- Is either a AccountSasParameters type or a IO[bytes] type. Required.
1648
- :type parameters: ~azure.mgmt.storage.v2022_09_01.models.AccountSasParameters or IO[bytes]
1649
- :return: ListAccountSasResponse or the result of cls(response)
1650
- :rtype: ~azure.mgmt.storage.v2022_09_01.models.ListAccountSasResponse
1651
- :raises ~azure.core.exceptions.HttpResponseError:
1652
- """
1653
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
1654
- 401: ClientAuthenticationError,
1655
- 404: ResourceNotFoundError,
1656
- 409: ResourceExistsError,
1657
- 304: ResourceNotModifiedError,
1658
- }
1659
- error_map.update(kwargs.pop("error_map", {}) or {})
1660
-
1661
- _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
1662
- _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
1663
-
1664
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-09-01"))
1665
- content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
1666
- cls: ClsType[_models.ListAccountSasResponse] = kwargs.pop("cls", None)
1667
-
1668
- content_type = content_type or "application/json"
1669
- _json = None
1670
- _content = None
1671
- if isinstance(parameters, (IOBase, bytes)):
1672
- _content = parameters
1673
- else:
1674
- _json = self._serialize.body(parameters, "AccountSasParameters")
1675
-
1676
- _request = build_list_account_sas_request(
1677
- resource_group_name=resource_group_name,
1678
- account_name=account_name,
1679
- subscription_id=self._config.subscription_id,
1680
- api_version=api_version,
1681
- content_type=content_type,
1682
- json=_json,
1683
- content=_content,
1684
- headers=_headers,
1685
- params=_params,
1686
- )
1687
- _request = _convert_request(_request)
1688
- _request.url = self._client.format_url(_request.url)
1689
-
1690
- _stream = False
1691
- pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access
1692
- _request, stream=_stream, **kwargs
1693
- )
1694
-
1695
- response = pipeline_response.http_response
1696
-
1697
- if response.status_code not in [200]:
1698
- map_error(status_code=response.status_code, response=response, error_map=error_map)
1699
- raise HttpResponseError(response=response, error_format=ARMErrorFormat)
1700
-
1701
- deserialized = self._deserialize("ListAccountSasResponse", pipeline_response)
1702
-
1703
- if cls:
1704
- return cls(pipeline_response, deserialized, {}) # type: ignore
1705
-
1706
- return deserialized # type: ignore
1707
-
1708
- @overload
1709
- def list_service_sas(
1710
- self,
1711
- resource_group_name: str,
1712
- account_name: str,
1713
- parameters: _models.ServiceSasParameters,
1714
- *,
1715
- content_type: str = "application/json",
1716
- **kwargs: Any
1717
- ) -> _models.ListServiceSasResponse:
1718
- """List service SAS credentials of a specific resource.
1719
-
1720
- :param resource_group_name: The name of the resource group within the user's subscription. The
1721
- name is case insensitive. Required.
1722
- :type resource_group_name: str
1723
- :param account_name: The name of the storage account within the specified resource group.
1724
- Storage account names must be between 3 and 24 characters in length and use numbers and
1725
- lower-case letters only. Required.
1726
- :type account_name: str
1727
- :param parameters: The parameters to provide to list service SAS credentials. Required.
1728
- :type parameters: ~azure.mgmt.storage.v2022_09_01.models.ServiceSasParameters
1729
- :keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
1730
- Default value is "application/json".
1731
- :paramtype content_type: str
1732
- :return: ListServiceSasResponse or the result of cls(response)
1733
- :rtype: ~azure.mgmt.storage.v2022_09_01.models.ListServiceSasResponse
1734
- :raises ~azure.core.exceptions.HttpResponseError:
1735
- """
1736
-
1737
- @overload
1738
- def list_service_sas(
1739
- self,
1740
- resource_group_name: str,
1741
- account_name: str,
1742
- parameters: IO[bytes],
1743
- *,
1744
- content_type: str = "application/json",
1745
- **kwargs: Any
1746
- ) -> _models.ListServiceSasResponse:
1747
- """List service SAS credentials of a specific resource.
1748
-
1749
- :param resource_group_name: The name of the resource group within the user's subscription. The
1750
- name is case insensitive. Required.
1751
- :type resource_group_name: str
1752
- :param account_name: The name of the storage account within the specified resource group.
1753
- Storage account names must be between 3 and 24 characters in length and use numbers and
1754
- lower-case letters only. Required.
1755
- :type account_name: str
1756
- :param parameters: The parameters to provide to list service SAS credentials. Required.
1757
- :type parameters: IO[bytes]
1758
- :keyword content_type: Body Parameter content-type. Content type parameter for binary body.
1759
- Default value is "application/json".
1760
- :paramtype content_type: str
1761
- :return: ListServiceSasResponse or the result of cls(response)
1762
- :rtype: ~azure.mgmt.storage.v2022_09_01.models.ListServiceSasResponse
1763
- :raises ~azure.core.exceptions.HttpResponseError:
1764
- """
1765
-
1766
- @distributed_trace
1767
- def list_service_sas(
1768
- self,
1769
- resource_group_name: str,
1770
- account_name: str,
1771
- parameters: Union[_models.ServiceSasParameters, IO[bytes]],
1772
- **kwargs: Any
1773
- ) -> _models.ListServiceSasResponse:
1774
- """List service SAS credentials of a specific resource.
1775
-
1776
- :param resource_group_name: The name of the resource group within the user's subscription. The
1777
- name is case insensitive. Required.
1778
- :type resource_group_name: str
1779
- :param account_name: The name of the storage account within the specified resource group.
1780
- Storage account names must be between 3 and 24 characters in length and use numbers and
1781
- lower-case letters only. Required.
1782
- :type account_name: str
1783
- :param parameters: The parameters to provide to list service SAS credentials. Is either a
1784
- ServiceSasParameters type or a IO[bytes] type. Required.
1785
- :type parameters: ~azure.mgmt.storage.v2022_09_01.models.ServiceSasParameters or IO[bytes]
1786
- :return: ListServiceSasResponse or the result of cls(response)
1787
- :rtype: ~azure.mgmt.storage.v2022_09_01.models.ListServiceSasResponse
1788
- :raises ~azure.core.exceptions.HttpResponseError:
1789
- """
1790
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
1791
- 401: ClientAuthenticationError,
1792
- 404: ResourceNotFoundError,
1793
- 409: ResourceExistsError,
1794
- 304: ResourceNotModifiedError,
1795
- }
1796
- error_map.update(kwargs.pop("error_map", {}) or {})
1797
-
1798
- _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
1799
- _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
1800
-
1801
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-09-01"))
1802
- content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
1803
- cls: ClsType[_models.ListServiceSasResponse] = kwargs.pop("cls", None)
1804
-
1805
- content_type = content_type or "application/json"
1806
- _json = None
1807
- _content = None
1808
- if isinstance(parameters, (IOBase, bytes)):
1809
- _content = parameters
1810
- else:
1811
- _json = self._serialize.body(parameters, "ServiceSasParameters")
1812
-
1813
- _request = build_list_service_sas_request(
1814
- resource_group_name=resource_group_name,
1815
- account_name=account_name,
1816
- subscription_id=self._config.subscription_id,
1817
- api_version=api_version,
1818
- content_type=content_type,
1819
- json=_json,
1820
- content=_content,
1821
- headers=_headers,
1822
- params=_params,
1823
- )
1824
- _request = _convert_request(_request)
1825
- _request.url = self._client.format_url(_request.url)
1826
-
1827
- _stream = False
1828
- pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access
1829
- _request, stream=_stream, **kwargs
1830
- )
1831
-
1832
- response = pipeline_response.http_response
1833
-
1834
- if response.status_code not in [200]:
1835
- map_error(status_code=response.status_code, response=response, error_map=error_map)
1836
- raise HttpResponseError(response=response, error_format=ARMErrorFormat)
1837
-
1838
- deserialized = self._deserialize("ListServiceSasResponse", pipeline_response)
1839
-
1840
- if cls:
1841
- return cls(pipeline_response, deserialized, {}) # type: ignore
1842
-
1843
- return deserialized # type: ignore
1844
-
1845
- def _failover_initial( # pylint: disable=inconsistent-return-statements
1846
- self, resource_group_name: str, account_name: str, failover_type: Literal["Planned"] = "Planned", **kwargs: Any
1847
- ) -> None:
1848
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
1849
- 401: ClientAuthenticationError,
1850
- 404: ResourceNotFoundError,
1851
- 409: ResourceExistsError,
1852
- 304: ResourceNotModifiedError,
1853
- }
1854
- error_map.update(kwargs.pop("error_map", {}) or {})
1855
-
1856
- _headers = kwargs.pop("headers", {}) or {}
1857
- _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
1858
-
1859
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-09-01"))
1860
- cls: ClsType[None] = kwargs.pop("cls", None)
1861
-
1862
- _request = build_failover_request(
1863
- resource_group_name=resource_group_name,
1864
- account_name=account_name,
1865
- subscription_id=self._config.subscription_id,
1866
- failover_type=failover_type,
1867
- api_version=api_version,
1868
- headers=_headers,
1869
- params=_params,
1870
- )
1871
- _request = _convert_request(_request)
1872
- _request.url = self._client.format_url(_request.url)
1873
-
1874
- _stream = False
1875
- pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access
1876
- _request, stream=_stream, **kwargs
1877
- )
1878
-
1879
- response = pipeline_response.http_response
1880
-
1881
- if response.status_code not in [200, 202]:
1882
- map_error(status_code=response.status_code, response=response, error_map=error_map)
1883
- raise HttpResponseError(response=response, error_format=ARMErrorFormat)
1884
-
1885
- if cls:
1886
- return cls(pipeline_response, None, {}) # type: ignore
1887
-
1888
- @distributed_trace
1889
- def begin_failover(
1890
- self, resource_group_name: str, account_name: str, failover_type: Literal["Planned"] = "Planned", **kwargs: Any
1891
- ) -> LROPoller[None]:
1892
- """A failover request can be triggered for a storage account in the event a primary endpoint
1893
- becomes unavailable for any reason. The failover occurs from the storage account's primary
1894
- cluster to the secondary cluster for RA-GRS accounts. The secondary cluster will become primary
1895
- after failover and the account is converted to LRS. In the case of a Planned Failover, the
1896
- primary and secondary clusters are swapped after failover and the account remains
1897
- geo-replicated. Failover should continue to be used in the event of availability issues as
1898
- Planned failover is only available while the primary and secondary endpoints are available. The
1899
- primary use case of a Planned Failover is disaster recovery testing drills. This type of
1900
- failover is invoked by setting FailoverType parameter to 'Planned'. Learn more about the
1901
- failover options here-
1902
- https://learn.microsoft.com/en-us/azure/storage/common/storage-disaster-recovery-guidance.
1903
-
1904
- :param resource_group_name: The name of the resource group within the user's subscription. The
1905
- name is case insensitive. Required.
1906
- :type resource_group_name: str
1907
- :param account_name: The name of the storage account within the specified resource group.
1908
- Storage account names must be between 3 and 24 characters in length and use numbers and
1909
- lower-case letters only. Required.
1910
- :type account_name: str
1911
- :param failover_type: The parameter is set to 'Planned' to indicate whether a Planned failover
1912
- is requested. Known values are "Planned" and None. Default value is "Planned".
1913
- :type failover_type: str
1914
- :return: An instance of LROPoller that returns either None or the result of cls(response)
1915
- :rtype: ~azure.core.polling.LROPoller[None]
1916
- :raises ~azure.core.exceptions.HttpResponseError:
1917
- """
1918
- _headers = kwargs.pop("headers", {}) or {}
1919
- _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
1920
-
1921
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-09-01"))
1922
- cls: ClsType[None] = kwargs.pop("cls", None)
1923
- polling: Union[bool, PollingMethod] = kwargs.pop("polling", True)
1924
- lro_delay = kwargs.pop("polling_interval", self._config.polling_interval)
1925
- cont_token: Optional[str] = kwargs.pop("continuation_token", None)
1926
- if cont_token is None:
1927
- raw_result = self._failover_initial( # type: ignore
1928
- resource_group_name=resource_group_name,
1929
- account_name=account_name,
1930
- failover_type=failover_type,
1931
- api_version=api_version,
1932
- cls=lambda x, y, z: x,
1933
- headers=_headers,
1934
- params=_params,
1935
- **kwargs
1936
- )
1937
- kwargs.pop("error_map", None)
1938
-
1939
- def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements
1940
- if cls:
1941
- return cls(pipeline_response, None, {}) # type: ignore
1942
-
1943
- if polling is True:
1944
- polling_method: PollingMethod = cast(
1945
- PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "location"}, **kwargs)
1946
- )
1947
- elif polling is False:
1948
- polling_method = cast(PollingMethod, NoPolling())
1949
- else:
1950
- polling_method = polling
1951
- if cont_token:
1952
- return LROPoller[None].from_continuation_token(
1953
- polling_method=polling_method,
1954
- continuation_token=cont_token,
1955
- client=self._client,
1956
- deserialization_callback=get_long_running_output,
1957
- )
1958
- return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore
1959
-
1960
- def _hierarchical_namespace_migration_initial( # pylint: disable=inconsistent-return-statements,name-too-long
1961
- self, resource_group_name: str, account_name: str, request_type: str, **kwargs: Any
1962
- ) -> None:
1963
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
1964
- 401: ClientAuthenticationError,
1965
- 404: ResourceNotFoundError,
1966
- 409: ResourceExistsError,
1967
- 304: ResourceNotModifiedError,
1968
- }
1969
- error_map.update(kwargs.pop("error_map", {}) or {})
1970
-
1971
- _headers = kwargs.pop("headers", {}) or {}
1972
- _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
1973
-
1974
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-09-01"))
1975
- cls: ClsType[None] = kwargs.pop("cls", None)
1976
-
1977
- _request = build_hierarchical_namespace_migration_request(
1978
- resource_group_name=resource_group_name,
1979
- account_name=account_name,
1980
- subscription_id=self._config.subscription_id,
1981
- request_type=request_type,
1982
- api_version=api_version,
1983
- headers=_headers,
1984
- params=_params,
1985
- )
1986
- _request = _convert_request(_request)
1987
- _request.url = self._client.format_url(_request.url)
1988
-
1989
- _stream = False
1990
- pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access
1991
- _request, stream=_stream, **kwargs
1992
- )
1993
-
1994
- response = pipeline_response.http_response
1995
-
1996
- if response.status_code not in [200, 202]:
1997
- map_error(status_code=response.status_code, response=response, error_map=error_map)
1998
- error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, pipeline_response)
1999
- raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
2000
-
2001
- if cls:
2002
- return cls(pipeline_response, None, {}) # type: ignore
2003
-
2004
- @distributed_trace
2005
- def begin_hierarchical_namespace_migration(
2006
- self, resource_group_name: str, account_name: str, request_type: str, **kwargs: Any
2007
- ) -> LROPoller[None]:
2008
- """Live Migration of storage account to enable Hns.
2009
-
2010
- :param resource_group_name: The name of the resource group within the user's subscription. The
2011
- name is case insensitive. Required.
2012
- :type resource_group_name: str
2013
- :param account_name: The name of the storage account within the specified resource group.
2014
- Storage account names must be between 3 and 24 characters in length and use numbers and
2015
- lower-case letters only. Required.
2016
- :type account_name: str
2017
- :param request_type: Required. Hierarchical namespace migration type can either be a
2018
- hierarchical namespace validation request 'HnsOnValidationRequest' or a hydration request
2019
- 'HnsOnHydrationRequest'. The validation request will validate the migration whereas the
2020
- hydration request will migrate the account. Required.
2021
- :type request_type: str
2022
- :return: An instance of LROPoller that returns either None or the result of cls(response)
2023
- :rtype: ~azure.core.polling.LROPoller[None]
2024
- :raises ~azure.core.exceptions.HttpResponseError:
2025
- """
2026
- _headers = kwargs.pop("headers", {}) or {}
2027
- _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
2028
-
2029
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-09-01"))
2030
- cls: ClsType[None] = kwargs.pop("cls", None)
2031
- polling: Union[bool, PollingMethod] = kwargs.pop("polling", True)
2032
- lro_delay = kwargs.pop("polling_interval", self._config.polling_interval)
2033
- cont_token: Optional[str] = kwargs.pop("continuation_token", None)
2034
- if cont_token is None:
2035
- raw_result = self._hierarchical_namespace_migration_initial( # type: ignore
2036
- resource_group_name=resource_group_name,
2037
- account_name=account_name,
2038
- request_type=request_type,
2039
- api_version=api_version,
2040
- cls=lambda x, y, z: x,
2041
- headers=_headers,
2042
- params=_params,
2043
- **kwargs
2044
- )
2045
- kwargs.pop("error_map", None)
2046
-
2047
- def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements
2048
- if cls:
2049
- return cls(pipeline_response, None, {}) # type: ignore
2050
-
2051
- if polling is True:
2052
- polling_method: PollingMethod = cast(
2053
- PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "location"}, **kwargs)
2054
- )
2055
- elif polling is False:
2056
- polling_method = cast(PollingMethod, NoPolling())
2057
- else:
2058
- polling_method = polling
2059
- if cont_token:
2060
- return LROPoller[None].from_continuation_token(
2061
- polling_method=polling_method,
2062
- continuation_token=cont_token,
2063
- client=self._client,
2064
- deserialization_callback=get_long_running_output,
2065
- )
2066
- return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore
2067
-
2068
- def _abort_hierarchical_namespace_migration_initial( # pylint: disable=inconsistent-return-statements,name-too-long
2069
- self, resource_group_name: str, account_name: str, **kwargs: Any
2070
- ) -> None:
2071
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
2072
- 401: ClientAuthenticationError,
2073
- 404: ResourceNotFoundError,
2074
- 409: ResourceExistsError,
2075
- 304: ResourceNotModifiedError,
2076
- }
2077
- error_map.update(kwargs.pop("error_map", {}) or {})
2078
-
2079
- _headers = kwargs.pop("headers", {}) or {}
2080
- _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
2081
-
2082
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-09-01"))
2083
- cls: ClsType[None] = kwargs.pop("cls", None)
2084
-
2085
- _request = build_abort_hierarchical_namespace_migration_request(
2086
- resource_group_name=resource_group_name,
2087
- account_name=account_name,
2088
- subscription_id=self._config.subscription_id,
2089
- api_version=api_version,
2090
- headers=_headers,
2091
- params=_params,
2092
- )
2093
- _request = _convert_request(_request)
2094
- _request.url = self._client.format_url(_request.url)
2095
-
2096
- _stream = False
2097
- pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access
2098
- _request, stream=_stream, **kwargs
2099
- )
2100
-
2101
- response = pipeline_response.http_response
2102
-
2103
- if response.status_code not in [200, 202]:
2104
- map_error(status_code=response.status_code, response=response, error_map=error_map)
2105
- error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, pipeline_response)
2106
- raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
2107
-
2108
- if cls:
2109
- return cls(pipeline_response, None, {}) # type: ignore
2110
-
2111
- @distributed_trace
2112
- def begin_abort_hierarchical_namespace_migration( # pylint: disable=name-too-long
2113
- self, resource_group_name: str, account_name: str, **kwargs: Any
2114
- ) -> LROPoller[None]:
2115
- """Abort live Migration of storage account to enable Hns.
2116
-
2117
- :param resource_group_name: The name of the resource group within the user's subscription. The
2118
- name is case insensitive. Required.
2119
- :type resource_group_name: str
2120
- :param account_name: The name of the storage account within the specified resource group.
2121
- Storage account names must be between 3 and 24 characters in length and use numbers and
2122
- lower-case letters only. Required.
2123
- :type account_name: str
2124
- :return: An instance of LROPoller that returns either None or the result of cls(response)
2125
- :rtype: ~azure.core.polling.LROPoller[None]
2126
- :raises ~azure.core.exceptions.HttpResponseError:
2127
- """
2128
- _headers = kwargs.pop("headers", {}) or {}
2129
- _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
2130
-
2131
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-09-01"))
2132
- cls: ClsType[None] = kwargs.pop("cls", None)
2133
- polling: Union[bool, PollingMethod] = kwargs.pop("polling", True)
2134
- lro_delay = kwargs.pop("polling_interval", self._config.polling_interval)
2135
- cont_token: Optional[str] = kwargs.pop("continuation_token", None)
2136
- if cont_token is None:
2137
- raw_result = self._abort_hierarchical_namespace_migration_initial( # type: ignore
2138
- resource_group_name=resource_group_name,
2139
- account_name=account_name,
2140
- api_version=api_version,
2141
- cls=lambda x, y, z: x,
2142
- headers=_headers,
2143
- params=_params,
2144
- **kwargs
2145
- )
2146
- kwargs.pop("error_map", None)
2147
-
2148
- def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements
2149
- if cls:
2150
- return cls(pipeline_response, None, {}) # type: ignore
2151
-
2152
- if polling is True:
2153
- polling_method: PollingMethod = cast(
2154
- PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "location"}, **kwargs)
2155
- )
2156
- elif polling is False:
2157
- polling_method = cast(PollingMethod, NoPolling())
2158
- else:
2159
- polling_method = polling
2160
- if cont_token:
2161
- return LROPoller[None].from_continuation_token(
2162
- polling_method=polling_method,
2163
- continuation_token=cont_token,
2164
- client=self._client,
2165
- deserialization_callback=get_long_running_output,
2166
- )
2167
- return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore
2168
-
2169
- def _restore_blob_ranges_initial(
2170
- self,
2171
- resource_group_name: str,
2172
- account_name: str,
2173
- parameters: Union[_models.BlobRestoreParameters, IO[bytes]],
2174
- **kwargs: Any
2175
- ) -> _models.BlobRestoreStatus:
2176
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
2177
- 401: ClientAuthenticationError,
2178
- 404: ResourceNotFoundError,
2179
- 409: ResourceExistsError,
2180
- 304: ResourceNotModifiedError,
2181
- }
2182
- error_map.update(kwargs.pop("error_map", {}) or {})
2183
-
2184
- _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
2185
- _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
2186
-
2187
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-09-01"))
2188
- content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
2189
- cls: ClsType[_models.BlobRestoreStatus] = kwargs.pop("cls", None)
2190
-
2191
- content_type = content_type or "application/json"
2192
- _json = None
2193
- _content = None
2194
- if isinstance(parameters, (IOBase, bytes)):
2195
- _content = parameters
2196
- else:
2197
- _json = self._serialize.body(parameters, "BlobRestoreParameters")
2198
-
2199
- _request = build_restore_blob_ranges_request(
2200
- resource_group_name=resource_group_name,
2201
- account_name=account_name,
2202
- subscription_id=self._config.subscription_id,
2203
- api_version=api_version,
2204
- content_type=content_type,
2205
- json=_json,
2206
- content=_content,
2207
- headers=_headers,
2208
- params=_params,
2209
- )
2210
- _request = _convert_request(_request)
2211
- _request.url = self._client.format_url(_request.url)
2212
-
2213
- _stream = False
2214
- pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access
2215
- _request, stream=_stream, **kwargs
2216
- )
2217
-
2218
- response = pipeline_response.http_response
2219
-
2220
- if response.status_code not in [200, 202]:
2221
- map_error(status_code=response.status_code, response=response, error_map=error_map)
2222
- raise HttpResponseError(response=response, error_format=ARMErrorFormat)
2223
-
2224
- if response.status_code == 200:
2225
- deserialized = self._deserialize("BlobRestoreStatus", pipeline_response)
2226
-
2227
- if response.status_code == 202:
2228
- deserialized = self._deserialize("BlobRestoreStatus", pipeline_response)
2229
-
2230
- if cls:
2231
- return cls(pipeline_response, deserialized, {}) # type: ignore
2232
-
2233
- return deserialized # type: ignore
2234
-
2235
- @overload
2236
- def begin_restore_blob_ranges(
2237
- self,
2238
- resource_group_name: str,
2239
- account_name: str,
2240
- parameters: _models.BlobRestoreParameters,
2241
- *,
2242
- content_type: str = "application/json",
2243
- **kwargs: Any
2244
- ) -> LROPoller[_models.BlobRestoreStatus]:
2245
- """Restore blobs in the specified blob ranges.
2246
-
2247
- :param resource_group_name: The name of the resource group within the user's subscription. The
2248
- name is case insensitive. Required.
2249
- :type resource_group_name: str
2250
- :param account_name: The name of the storage account within the specified resource group.
2251
- Storage account names must be between 3 and 24 characters in length and use numbers and
2252
- lower-case letters only. Required.
2253
- :type account_name: str
2254
- :param parameters: The parameters to provide for restore blob ranges. Required.
2255
- :type parameters: ~azure.mgmt.storage.v2022_09_01.models.BlobRestoreParameters
2256
- :keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
2257
- Default value is "application/json".
2258
- :paramtype content_type: str
2259
- :return: An instance of LROPoller that returns either BlobRestoreStatus or the result of
2260
- cls(response)
2261
- :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.storage.v2022_09_01.models.BlobRestoreStatus]
2262
- :raises ~azure.core.exceptions.HttpResponseError:
2263
- """
2264
-
2265
- @overload
2266
- def begin_restore_blob_ranges(
2267
- self,
2268
- resource_group_name: str,
2269
- account_name: str,
2270
- parameters: IO[bytes],
2271
- *,
2272
- content_type: str = "application/json",
2273
- **kwargs: Any
2274
- ) -> LROPoller[_models.BlobRestoreStatus]:
2275
- """Restore blobs in the specified blob ranges.
2276
-
2277
- :param resource_group_name: The name of the resource group within the user's subscription. The
2278
- name is case insensitive. Required.
2279
- :type resource_group_name: str
2280
- :param account_name: The name of the storage account within the specified resource group.
2281
- Storage account names must be between 3 and 24 characters in length and use numbers and
2282
- lower-case letters only. Required.
2283
- :type account_name: str
2284
- :param parameters: The parameters to provide for restore blob ranges. Required.
2285
- :type parameters: IO[bytes]
2286
- :keyword content_type: Body Parameter content-type. Content type parameter for binary body.
2287
- Default value is "application/json".
2288
- :paramtype content_type: str
2289
- :return: An instance of LROPoller that returns either BlobRestoreStatus or the result of
2290
- cls(response)
2291
- :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.storage.v2022_09_01.models.BlobRestoreStatus]
2292
- :raises ~azure.core.exceptions.HttpResponseError:
2293
- """
2294
-
2295
- @distributed_trace
2296
- def begin_restore_blob_ranges(
2297
- self,
2298
- resource_group_name: str,
2299
- account_name: str,
2300
- parameters: Union[_models.BlobRestoreParameters, IO[bytes]],
2301
- **kwargs: Any
2302
- ) -> LROPoller[_models.BlobRestoreStatus]:
2303
- """Restore blobs in the specified blob ranges.
2304
-
2305
- :param resource_group_name: The name of the resource group within the user's subscription. The
2306
- name is case insensitive. Required.
2307
- :type resource_group_name: str
2308
- :param account_name: The name of the storage account within the specified resource group.
2309
- Storage account names must be between 3 and 24 characters in length and use numbers and
2310
- lower-case letters only. Required.
2311
- :type account_name: str
2312
- :param parameters: The parameters to provide for restore blob ranges. Is either a
2313
- BlobRestoreParameters type or a IO[bytes] type. Required.
2314
- :type parameters: ~azure.mgmt.storage.v2022_09_01.models.BlobRestoreParameters or IO[bytes]
2315
- :return: An instance of LROPoller that returns either BlobRestoreStatus or the result of
2316
- cls(response)
2317
- :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.storage.v2022_09_01.models.BlobRestoreStatus]
2318
- :raises ~azure.core.exceptions.HttpResponseError:
2319
- """
2320
- _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
2321
- _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
2322
-
2323
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-09-01"))
2324
- content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
2325
- cls: ClsType[_models.BlobRestoreStatus] = kwargs.pop("cls", None)
2326
- polling: Union[bool, PollingMethod] = kwargs.pop("polling", True)
2327
- lro_delay = kwargs.pop("polling_interval", self._config.polling_interval)
2328
- cont_token: Optional[str] = kwargs.pop("continuation_token", None)
2329
- if cont_token is None:
2330
- raw_result = self._restore_blob_ranges_initial(
2331
- resource_group_name=resource_group_name,
2332
- account_name=account_name,
2333
- parameters=parameters,
2334
- api_version=api_version,
2335
- content_type=content_type,
2336
- cls=lambda x, y, z: x,
2337
- headers=_headers,
2338
- params=_params,
2339
- **kwargs
2340
- )
2341
- kwargs.pop("error_map", None)
2342
-
2343
- def get_long_running_output(pipeline_response):
2344
- deserialized = self._deserialize("BlobRestoreStatus", pipeline_response)
2345
- if cls:
2346
- return cls(pipeline_response, deserialized, {}) # type: ignore
2347
- return deserialized
2348
-
2349
- if polling is True:
2350
- polling_method: PollingMethod = cast(
2351
- PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "location"}, **kwargs)
2352
- )
2353
- elif polling is False:
2354
- polling_method = cast(PollingMethod, NoPolling())
2355
- else:
2356
- polling_method = polling
2357
- if cont_token:
2358
- return LROPoller[_models.BlobRestoreStatus].from_continuation_token(
2359
- polling_method=polling_method,
2360
- continuation_token=cont_token,
2361
- client=self._client,
2362
- deserialization_callback=get_long_running_output,
2363
- )
2364
- return LROPoller[_models.BlobRestoreStatus](
2365
- self._client, raw_result, get_long_running_output, polling_method # type: ignore
2366
- )
2367
-
2368
- @distributed_trace
2369
- def revoke_user_delegation_keys( # pylint: disable=inconsistent-return-statements
2370
- self, resource_group_name: str, account_name: str, **kwargs: Any
2371
- ) -> None:
2372
- """Revoke user delegation keys.
2373
-
2374
- :param resource_group_name: The name of the resource group within the user's subscription. The
2375
- name is case insensitive. Required.
2376
- :type resource_group_name: str
2377
- :param account_name: The name of the storage account within the specified resource group.
2378
- Storage account names must be between 3 and 24 characters in length and use numbers and
2379
- lower-case letters only. Required.
2380
- :type account_name: str
2381
- :return: None or the result of cls(response)
2382
- :rtype: None
2383
- :raises ~azure.core.exceptions.HttpResponseError:
2384
- """
2385
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
2386
- 401: ClientAuthenticationError,
2387
- 404: ResourceNotFoundError,
2388
- 409: ResourceExistsError,
2389
- 304: ResourceNotModifiedError,
2390
- }
2391
- error_map.update(kwargs.pop("error_map", {}) or {})
2392
-
2393
- _headers = kwargs.pop("headers", {}) or {}
2394
- _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
2395
-
2396
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-09-01"))
2397
- cls: ClsType[None] = kwargs.pop("cls", None)
2398
-
2399
- _request = build_revoke_user_delegation_keys_request(
2400
- resource_group_name=resource_group_name,
2401
- account_name=account_name,
2402
- subscription_id=self._config.subscription_id,
2403
- api_version=api_version,
2404
- headers=_headers,
2405
- params=_params,
2406
- )
2407
- _request = _convert_request(_request)
2408
- _request.url = self._client.format_url(_request.url)
2409
-
2410
- _stream = False
2411
- pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access
2412
- _request, stream=_stream, **kwargs
2413
- )
2414
-
2415
- response = pipeline_response.http_response
2416
-
2417
- if response.status_code not in [200]:
2418
- map_error(status_code=response.status_code, response=response, error_map=error_map)
2419
- raise HttpResponseError(response=response, error_format=ARMErrorFormat)
2420
-
2421
- if cls:
2422
- return cls(pipeline_response, None, {}) # type: ignore