azure-mgmt-storage 21.2.1__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 +281 -168
  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 +5 -9
  118. azure/mgmt/storage/v2023_05_01/aio/operations/_storage_task_assignments_instances_report_operations.py +5 -9
  119. azure/mgmt/storage/v2023_05_01/aio/operations/_storage_task_assignments_operations.py +51 -43
  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 +5 -9
  146. azure/mgmt/storage/v2023_05_01/operations/_storage_task_assignments_instances_report_operations.py +5 -9
  147. azure/mgmt/storage/v2023_05_01/operations/_storage_task_assignments_operations.py +52 -43
  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.1.dist-info → azure_mgmt_storage-22.0.0.dist-info}/METADATA +11 -4
  153. azure_mgmt_storage-22.0.0.dist-info/RECORD +183 -0
  154. {azure_mgmt_storage-21.2.1.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.1.dist-info/RECORD +0 -979
  956. {azure_mgmt_storage-21.2.1.dist-info → azure_mgmt_storage-22.0.0.dist-info}/LICENSE +0 -0
  957. {azure_mgmt_storage-21.2.1.dist-info → azure_mgmt_storage-22.0.0.dist-info}/top_level.txt +0 -0
@@ -1,2170 +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", "2020-08-01-preview"))
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", "2020-08-01-preview"))
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", "2020-08-01-preview"))
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", "2020-08-01-preview"))
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", "2020-08-01-preview"))
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", "2020-08-01-preview"))
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", "2020-08-01-preview"))
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", "2020-08-01-preview"))
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", "2020-08-01-preview"))
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", "2020-08-01-preview"))
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", "2020-08-01-preview"))
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, account_name: str, subscription_id: str, **kwargs: Any
419
- ) -> HttpRequest:
420
- _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
421
-
422
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2020-08-01-preview"))
423
- # Construct URL
424
- _url = kwargs.pop(
425
- "template_url",
426
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/failover",
427
- ) # pylint: disable=line-too-long
428
- path_format_arguments = {
429
- "resourceGroupName": _SERIALIZER.url(
430
- "resource_group_name", resource_group_name, "str", max_length=90, min_length=1, pattern=r"^[-\w\._\(\)]+$"
431
- ),
432
- "accountName": _SERIALIZER.url("account_name", account_name, "str", max_length=24, min_length=3),
433
- "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str", min_length=1),
434
- }
435
-
436
- _url: str = _url.format(**path_format_arguments) # type: ignore
437
-
438
- # Construct parameters
439
- _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str")
440
-
441
- return HttpRequest(method="POST", url=_url, params=_params, **kwargs)
442
-
443
-
444
- def build_restore_blob_ranges_request(
445
- resource_group_name: str, account_name: str, subscription_id: str, **kwargs: Any
446
- ) -> HttpRequest:
447
- _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
448
- _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
449
-
450
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2020-08-01-preview"))
451
- content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
452
- accept = _headers.pop("Accept", "application/json")
453
-
454
- # Construct URL
455
- _url = kwargs.pop(
456
- "template_url",
457
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/restoreBlobRanges",
458
- ) # pylint: disable=line-too-long
459
- path_format_arguments = {
460
- "resourceGroupName": _SERIALIZER.url(
461
- "resource_group_name", resource_group_name, "str", max_length=90, min_length=1, pattern=r"^[-\w\._\(\)]+$"
462
- ),
463
- "accountName": _SERIALIZER.url("account_name", account_name, "str", max_length=24, min_length=3),
464
- "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str", min_length=1),
465
- }
466
-
467
- _url: str = _url.format(**path_format_arguments) # type: ignore
468
-
469
- # Construct parameters
470
- _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str")
471
-
472
- # Construct headers
473
- if content_type is not None:
474
- _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str")
475
- _headers["Accept"] = _SERIALIZER.header("accept", accept, "str")
476
-
477
- return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs)
478
-
479
-
480
- def build_revoke_user_delegation_keys_request( # pylint: disable=name-too-long
481
- resource_group_name: str, account_name: str, subscription_id: str, **kwargs: Any
482
- ) -> HttpRequest:
483
- _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
484
-
485
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2020-08-01-preview"))
486
- # Construct URL
487
- _url = kwargs.pop(
488
- "template_url",
489
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/revokeUserDelegationKeys",
490
- ) # pylint: disable=line-too-long
491
- path_format_arguments = {
492
- "resourceGroupName": _SERIALIZER.url(
493
- "resource_group_name", resource_group_name, "str", max_length=90, min_length=1, pattern=r"^[-\w\._\(\)]+$"
494
- ),
495
- "accountName": _SERIALIZER.url("account_name", account_name, "str", max_length=24, min_length=3),
496
- "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str", min_length=1),
497
- }
498
-
499
- _url: str = _url.format(**path_format_arguments) # type: ignore
500
-
501
- # Construct parameters
502
- _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str")
503
-
504
- return HttpRequest(method="POST", url=_url, params=_params, **kwargs)
505
-
506
-
507
- class StorageAccountsOperations:
508
- """
509
- .. warning::
510
- **DO NOT** instantiate this class directly.
511
-
512
- Instead, you should access the following operations through
513
- :class:`~azure.mgmt.storage.v2020_08_01_preview.StorageManagementClient`'s
514
- :attr:`storage_accounts` attribute.
515
- """
516
-
517
- models = _models
518
-
519
- def __init__(self, *args, **kwargs):
520
- input_args = list(args)
521
- self._client = input_args.pop(0) if input_args else kwargs.pop("client")
522
- self._config = input_args.pop(0) if input_args else kwargs.pop("config")
523
- self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer")
524
- self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer")
525
- self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version")
526
-
527
- @overload
528
- def check_name_availability(
529
- self,
530
- account_name: _models.StorageAccountCheckNameAvailabilityParameters,
531
- *,
532
- content_type: str = "application/json",
533
- **kwargs: Any
534
- ) -> _models.CheckNameAvailabilityResult:
535
- """Checks that the storage account name is valid and is not already in use.
536
-
537
- :param account_name: The name of the storage account within the specified resource group.
538
- Storage account names must be between 3 and 24 characters in length and use numbers and
539
- lower-case letters only. Required.
540
- :type account_name:
541
- ~azure.mgmt.storage.v2020_08_01_preview.models.StorageAccountCheckNameAvailabilityParameters
542
- :keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
543
- Default value is "application/json".
544
- :paramtype content_type: str
545
- :return: CheckNameAvailabilityResult or the result of cls(response)
546
- :rtype: ~azure.mgmt.storage.v2020_08_01_preview.models.CheckNameAvailabilityResult
547
- :raises ~azure.core.exceptions.HttpResponseError:
548
- """
549
-
550
- @overload
551
- def check_name_availability(
552
- self, account_name: IO[bytes], *, content_type: str = "application/json", **kwargs: Any
553
- ) -> _models.CheckNameAvailabilityResult:
554
- """Checks that the storage account name is valid and is not already in use.
555
-
556
- :param account_name: The name of the storage account within the specified resource group.
557
- Storage account names must be between 3 and 24 characters in length and use numbers and
558
- lower-case letters only. Required.
559
- :type account_name: IO[bytes]
560
- :keyword content_type: Body Parameter content-type. Content type parameter for binary body.
561
- Default value is "application/json".
562
- :paramtype content_type: str
563
- :return: CheckNameAvailabilityResult or the result of cls(response)
564
- :rtype: ~azure.mgmt.storage.v2020_08_01_preview.models.CheckNameAvailabilityResult
565
- :raises ~azure.core.exceptions.HttpResponseError:
566
- """
567
-
568
- @distributed_trace
569
- def check_name_availability(
570
- self, account_name: Union[_models.StorageAccountCheckNameAvailabilityParameters, IO[bytes]], **kwargs: Any
571
- ) -> _models.CheckNameAvailabilityResult:
572
- """Checks that the storage account name is valid and is not already in use.
573
-
574
- :param account_name: The name of the storage account within the specified resource group.
575
- Storage account names must be between 3 and 24 characters in length and use numbers and
576
- lower-case letters only. Is either a StorageAccountCheckNameAvailabilityParameters type or a
577
- IO[bytes] type. Required.
578
- :type account_name:
579
- ~azure.mgmt.storage.v2020_08_01_preview.models.StorageAccountCheckNameAvailabilityParameters or
580
- IO[bytes]
581
- :return: CheckNameAvailabilityResult or the result of cls(response)
582
- :rtype: ~azure.mgmt.storage.v2020_08_01_preview.models.CheckNameAvailabilityResult
583
- :raises ~azure.core.exceptions.HttpResponseError:
584
- """
585
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
586
- 401: ClientAuthenticationError,
587
- 404: ResourceNotFoundError,
588
- 409: ResourceExistsError,
589
- 304: ResourceNotModifiedError,
590
- }
591
- error_map.update(kwargs.pop("error_map", {}) or {})
592
-
593
- _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
594
- _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
595
-
596
- api_version: str = kwargs.pop(
597
- "api_version", _params.pop("api-version", self._api_version or "2020-08-01-preview")
598
- )
599
- content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
600
- cls: ClsType[_models.CheckNameAvailabilityResult] = kwargs.pop("cls", None)
601
-
602
- content_type = content_type or "application/json"
603
- _json = None
604
- _content = None
605
- if isinstance(account_name, (IOBase, bytes)):
606
- _content = account_name
607
- else:
608
- _json = self._serialize.body(account_name, "StorageAccountCheckNameAvailabilityParameters")
609
-
610
- _request = build_check_name_availability_request(
611
- subscription_id=self._config.subscription_id,
612
- api_version=api_version,
613
- content_type=content_type,
614
- json=_json,
615
- content=_content,
616
- headers=_headers,
617
- params=_params,
618
- )
619
- _request = _convert_request(_request)
620
- _request.url = self._client.format_url(_request.url)
621
-
622
- _stream = False
623
- pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access
624
- _request, stream=_stream, **kwargs
625
- )
626
-
627
- response = pipeline_response.http_response
628
-
629
- if response.status_code not in [200]:
630
- map_error(status_code=response.status_code, response=response, error_map=error_map)
631
- raise HttpResponseError(response=response, error_format=ARMErrorFormat)
632
-
633
- deserialized = self._deserialize("CheckNameAvailabilityResult", pipeline_response)
634
-
635
- if cls:
636
- return cls(pipeline_response, deserialized, {}) # type: ignore
637
-
638
- return deserialized # type: ignore
639
-
640
- def _create_initial(
641
- self,
642
- resource_group_name: str,
643
- account_name: str,
644
- parameters: Union[_models.StorageAccountCreateParameters, IO[bytes]],
645
- **kwargs: Any
646
- ) -> Optional[_models.StorageAccount]:
647
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
648
- 401: ClientAuthenticationError,
649
- 404: ResourceNotFoundError,
650
- 409: ResourceExistsError,
651
- 304: ResourceNotModifiedError,
652
- }
653
- error_map.update(kwargs.pop("error_map", {}) or {})
654
-
655
- _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
656
- _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
657
-
658
- api_version: str = kwargs.pop(
659
- "api_version", _params.pop("api-version", self._api_version or "2020-08-01-preview")
660
- )
661
- content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
662
- cls: ClsType[Optional[_models.StorageAccount]] = kwargs.pop("cls", None)
663
-
664
- content_type = content_type or "application/json"
665
- _json = None
666
- _content = None
667
- if isinstance(parameters, (IOBase, bytes)):
668
- _content = parameters
669
- else:
670
- _json = self._serialize.body(parameters, "StorageAccountCreateParameters")
671
-
672
- _request = build_create_request(
673
- resource_group_name=resource_group_name,
674
- account_name=account_name,
675
- subscription_id=self._config.subscription_id,
676
- api_version=api_version,
677
- content_type=content_type,
678
- json=_json,
679
- content=_content,
680
- headers=_headers,
681
- params=_params,
682
- )
683
- _request = _convert_request(_request)
684
- _request.url = self._client.format_url(_request.url)
685
-
686
- _stream = False
687
- pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access
688
- _request, stream=_stream, **kwargs
689
- )
690
-
691
- response = pipeline_response.http_response
692
-
693
- if response.status_code not in [200, 202]:
694
- map_error(status_code=response.status_code, response=response, error_map=error_map)
695
- raise HttpResponseError(response=response, error_format=ARMErrorFormat)
696
-
697
- deserialized = None
698
- if response.status_code == 200:
699
- deserialized = self._deserialize("StorageAccount", pipeline_response)
700
-
701
- if cls:
702
- return cls(pipeline_response, deserialized, {}) # type: ignore
703
-
704
- return deserialized # type: ignore
705
-
706
- @overload
707
- def begin_create(
708
- self,
709
- resource_group_name: str,
710
- account_name: str,
711
- parameters: _models.StorageAccountCreateParameters,
712
- *,
713
- content_type: str = "application/json",
714
- **kwargs: Any
715
- ) -> LROPoller[_models.StorageAccount]:
716
- """Asynchronously creates a new storage account with the specified parameters. If an account is
717
- already created and a subsequent create request is issued with different properties, the
718
- account properties will be updated. If an account is already created and a subsequent create or
719
- update request is issued with the exact same set of properties, the request will succeed.
720
-
721
- :param resource_group_name: The name of the resource group within the user's subscription. The
722
- name is case insensitive. Required.
723
- :type resource_group_name: str
724
- :param account_name: The name of the storage account within the specified resource group.
725
- Storage account names must be between 3 and 24 characters in length and use numbers and
726
- lower-case letters only. Required.
727
- :type account_name: str
728
- :param parameters: The parameters to provide for the created account. Required.
729
- :type parameters: ~azure.mgmt.storage.v2020_08_01_preview.models.StorageAccountCreateParameters
730
- :keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
731
- Default value is "application/json".
732
- :paramtype content_type: str
733
- :return: An instance of LROPoller that returns either StorageAccount or the result of
734
- cls(response)
735
- :rtype:
736
- ~azure.core.polling.LROPoller[~azure.mgmt.storage.v2020_08_01_preview.models.StorageAccount]
737
- :raises ~azure.core.exceptions.HttpResponseError:
738
- """
739
-
740
- @overload
741
- def begin_create(
742
- self,
743
- resource_group_name: str,
744
- account_name: str,
745
- parameters: IO[bytes],
746
- *,
747
- content_type: str = "application/json",
748
- **kwargs: Any
749
- ) -> LROPoller[_models.StorageAccount]:
750
- """Asynchronously creates a new storage account with the specified parameters. If an account is
751
- already created and a subsequent create request is issued with different properties, the
752
- account properties will be updated. If an account is already created and a subsequent create or
753
- update request is issued with the exact same set of properties, the request will succeed.
754
-
755
- :param resource_group_name: The name of the resource group within the user's subscription. The
756
- name is case insensitive. Required.
757
- :type resource_group_name: str
758
- :param account_name: The name of the storage account within the specified resource group.
759
- Storage account names must be between 3 and 24 characters in length and use numbers and
760
- lower-case letters only. Required.
761
- :type account_name: str
762
- :param parameters: The parameters to provide for the created account. Required.
763
- :type parameters: IO[bytes]
764
- :keyword content_type: Body Parameter content-type. Content type parameter for binary body.
765
- Default value is "application/json".
766
- :paramtype content_type: str
767
- :return: An instance of LROPoller that returns either StorageAccount or the result of
768
- cls(response)
769
- :rtype:
770
- ~azure.core.polling.LROPoller[~azure.mgmt.storage.v2020_08_01_preview.models.StorageAccount]
771
- :raises ~azure.core.exceptions.HttpResponseError:
772
- """
773
-
774
- @distributed_trace
775
- def begin_create(
776
- self,
777
- resource_group_name: str,
778
- account_name: str,
779
- parameters: Union[_models.StorageAccountCreateParameters, IO[bytes]],
780
- **kwargs: Any
781
- ) -> LROPoller[_models.StorageAccount]:
782
- """Asynchronously creates a new storage account with the specified parameters. If an account is
783
- already created and a subsequent create request is issued with different properties, the
784
- account properties will be updated. If an account is already created and a subsequent create or
785
- update request is issued with the exact same set of properties, the request will succeed.
786
-
787
- :param resource_group_name: The name of the resource group within the user's subscription. The
788
- name is case insensitive. Required.
789
- :type resource_group_name: str
790
- :param account_name: The name of the storage account within the specified resource group.
791
- Storage account names must be between 3 and 24 characters in length and use numbers and
792
- lower-case letters only. Required.
793
- :type account_name: str
794
- :param parameters: The parameters to provide for the created account. Is either a
795
- StorageAccountCreateParameters type or a IO[bytes] type. Required.
796
- :type parameters: ~azure.mgmt.storage.v2020_08_01_preview.models.StorageAccountCreateParameters
797
- or IO[bytes]
798
- :return: An instance of LROPoller that returns either StorageAccount or the result of
799
- cls(response)
800
- :rtype:
801
- ~azure.core.polling.LROPoller[~azure.mgmt.storage.v2020_08_01_preview.models.StorageAccount]
802
- :raises ~azure.core.exceptions.HttpResponseError:
803
- """
804
- _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
805
- _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
806
-
807
- api_version: str = kwargs.pop(
808
- "api_version", _params.pop("api-version", self._api_version or "2020-08-01-preview")
809
- )
810
- content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
811
- cls: ClsType[_models.StorageAccount] = kwargs.pop("cls", None)
812
- polling: Union[bool, PollingMethod] = kwargs.pop("polling", True)
813
- lro_delay = kwargs.pop("polling_interval", self._config.polling_interval)
814
- cont_token: Optional[str] = kwargs.pop("continuation_token", None)
815
- if cont_token is None:
816
- raw_result = self._create_initial(
817
- resource_group_name=resource_group_name,
818
- account_name=account_name,
819
- parameters=parameters,
820
- api_version=api_version,
821
- content_type=content_type,
822
- cls=lambda x, y, z: x,
823
- headers=_headers,
824
- params=_params,
825
- **kwargs
826
- )
827
- kwargs.pop("error_map", None)
828
-
829
- def get_long_running_output(pipeline_response):
830
- deserialized = self._deserialize("StorageAccount", pipeline_response)
831
- if cls:
832
- return cls(pipeline_response, deserialized, {}) # type: ignore
833
- return deserialized
834
-
835
- if polling is True:
836
- polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs))
837
- elif polling is False:
838
- polling_method = cast(PollingMethod, NoPolling())
839
- else:
840
- polling_method = polling
841
- if cont_token:
842
- return LROPoller[_models.StorageAccount].from_continuation_token(
843
- polling_method=polling_method,
844
- continuation_token=cont_token,
845
- client=self._client,
846
- deserialization_callback=get_long_running_output,
847
- )
848
- return LROPoller[_models.StorageAccount](
849
- self._client, raw_result, get_long_running_output, polling_method # type: ignore
850
- )
851
-
852
- @distributed_trace
853
- def delete( # pylint: disable=inconsistent-return-statements
854
- self, resource_group_name: str, account_name: str, **kwargs: Any
855
- ) -> None:
856
- """Deletes a storage account in Microsoft Azure.
857
-
858
- :param resource_group_name: The name of the resource group within the user's subscription. The
859
- name is case insensitive. Required.
860
- :type resource_group_name: str
861
- :param account_name: The name of the storage account within the specified resource group.
862
- Storage account names must be between 3 and 24 characters in length and use numbers and
863
- lower-case letters only. Required.
864
- :type account_name: str
865
- :return: None or the result of cls(response)
866
- :rtype: None
867
- :raises ~azure.core.exceptions.HttpResponseError:
868
- """
869
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
870
- 401: ClientAuthenticationError,
871
- 404: ResourceNotFoundError,
872
- 409: ResourceExistsError,
873
- 304: ResourceNotModifiedError,
874
- }
875
- error_map.update(kwargs.pop("error_map", {}) or {})
876
-
877
- _headers = kwargs.pop("headers", {}) or {}
878
- _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
879
-
880
- api_version: str = kwargs.pop(
881
- "api_version", _params.pop("api-version", self._api_version or "2020-08-01-preview")
882
- )
883
- cls: ClsType[None] = kwargs.pop("cls", None)
884
-
885
- _request = build_delete_request(
886
- resource_group_name=resource_group_name,
887
- account_name=account_name,
888
- subscription_id=self._config.subscription_id,
889
- api_version=api_version,
890
- headers=_headers,
891
- params=_params,
892
- )
893
- _request = _convert_request(_request)
894
- _request.url = self._client.format_url(_request.url)
895
-
896
- _stream = False
897
- pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access
898
- _request, stream=_stream, **kwargs
899
- )
900
-
901
- response = pipeline_response.http_response
902
-
903
- if response.status_code not in [200, 204]:
904
- map_error(status_code=response.status_code, response=response, error_map=error_map)
905
- raise HttpResponseError(response=response, error_format=ARMErrorFormat)
906
-
907
- if cls:
908
- return cls(pipeline_response, None, {}) # type: ignore
909
-
910
- @distributed_trace
911
- def get_properties(
912
- self,
913
- resource_group_name: str,
914
- account_name: str,
915
- expand: Optional[Union[str, _models.StorageAccountExpand]] = None,
916
- **kwargs: Any
917
- ) -> _models.StorageAccount:
918
- """Returns the properties for the specified storage account including but not limited to name, SKU
919
- name, location, and account status. The ListKeys operation should be used to retrieve storage
920
- keys.
921
-
922
- :param resource_group_name: The name of the resource group within the user's subscription. The
923
- name is case insensitive. Required.
924
- :type resource_group_name: str
925
- :param account_name: The name of the storage account within the specified resource group.
926
- Storage account names must be between 3 and 24 characters in length and use numbers and
927
- lower-case letters only. Required.
928
- :type account_name: str
929
- :param expand: May be used to expand the properties within account's properties. By default,
930
- data is not included when fetching properties. Currently we only support geoReplicationStats
931
- and blobRestoreStatus. Known values are: "geoReplicationStats" and "blobRestoreStatus". Default
932
- value is None.
933
- :type expand: str or ~azure.mgmt.storage.v2020_08_01_preview.models.StorageAccountExpand
934
- :return: StorageAccount or the result of cls(response)
935
- :rtype: ~azure.mgmt.storage.v2020_08_01_preview.models.StorageAccount
936
- :raises ~azure.core.exceptions.HttpResponseError:
937
- """
938
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
939
- 401: ClientAuthenticationError,
940
- 404: ResourceNotFoundError,
941
- 409: ResourceExistsError,
942
- 304: ResourceNotModifiedError,
943
- }
944
- error_map.update(kwargs.pop("error_map", {}) or {})
945
-
946
- _headers = kwargs.pop("headers", {}) or {}
947
- _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
948
-
949
- api_version: str = kwargs.pop(
950
- "api_version", _params.pop("api-version", self._api_version or "2020-08-01-preview")
951
- )
952
- cls: ClsType[_models.StorageAccount] = kwargs.pop("cls", None)
953
-
954
- _request = build_get_properties_request(
955
- resource_group_name=resource_group_name,
956
- account_name=account_name,
957
- subscription_id=self._config.subscription_id,
958
- expand=expand,
959
- api_version=api_version,
960
- headers=_headers,
961
- params=_params,
962
- )
963
- _request = _convert_request(_request)
964
- _request.url = self._client.format_url(_request.url)
965
-
966
- _stream = False
967
- pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access
968
- _request, stream=_stream, **kwargs
969
- )
970
-
971
- response = pipeline_response.http_response
972
-
973
- if response.status_code not in [200]:
974
- map_error(status_code=response.status_code, response=response, error_map=error_map)
975
- raise HttpResponseError(response=response, error_format=ARMErrorFormat)
976
-
977
- deserialized = self._deserialize("StorageAccount", pipeline_response)
978
-
979
- if cls:
980
- return cls(pipeline_response, deserialized, {}) # type: ignore
981
-
982
- return deserialized # type: ignore
983
-
984
- @overload
985
- def update(
986
- self,
987
- resource_group_name: str,
988
- account_name: str,
989
- parameters: _models.StorageAccountUpdateParameters,
990
- *,
991
- content_type: str = "application/json",
992
- **kwargs: Any
993
- ) -> _models.StorageAccount:
994
- """The update operation can be used to update the SKU, encryption, access tier, or tags for a
995
- storage account. It can also be used to map the account to a custom domain. Only one custom
996
- domain is supported per storage account; the replacement/change of custom domain is not
997
- supported. In order to replace an old custom domain, the old value must be cleared/unregistered
998
- before a new value can be set. The update of multiple properties is supported. This call does
999
- not change the storage keys for the account. If you want to change the storage account keys,
1000
- use the regenerate keys operation. The location and name of the storage account cannot be
1001
- changed after creation.
1002
-
1003
- :param resource_group_name: The name of the resource group within the user's subscription. The
1004
- name is case insensitive. Required.
1005
- :type resource_group_name: str
1006
- :param account_name: The name of the storage account within the specified resource group.
1007
- Storage account names must be between 3 and 24 characters in length and use numbers and
1008
- lower-case letters only. Required.
1009
- :type account_name: str
1010
- :param parameters: The parameters to provide for the updated account. Required.
1011
- :type parameters: ~azure.mgmt.storage.v2020_08_01_preview.models.StorageAccountUpdateParameters
1012
- :keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
1013
- Default value is "application/json".
1014
- :paramtype content_type: str
1015
- :return: StorageAccount or the result of cls(response)
1016
- :rtype: ~azure.mgmt.storage.v2020_08_01_preview.models.StorageAccount
1017
- :raises ~azure.core.exceptions.HttpResponseError:
1018
- """
1019
-
1020
- @overload
1021
- def update(
1022
- self,
1023
- resource_group_name: str,
1024
- account_name: str,
1025
- parameters: IO[bytes],
1026
- *,
1027
- content_type: str = "application/json",
1028
- **kwargs: Any
1029
- ) -> _models.StorageAccount:
1030
- """The update operation can be used to update the SKU, encryption, access tier, or tags for a
1031
- storage account. It can also be used to map the account to a custom domain. Only one custom
1032
- domain is supported per storage account; the replacement/change of custom domain is not
1033
- supported. In order to replace an old custom domain, the old value must be cleared/unregistered
1034
- before a new value can be set. The update of multiple properties is supported. This call does
1035
- not change the storage keys for the account. If you want to change the storage account keys,
1036
- use the regenerate keys operation. The location and name of the storage account cannot be
1037
- changed after creation.
1038
-
1039
- :param resource_group_name: The name of the resource group within the user's subscription. The
1040
- name is case insensitive. Required.
1041
- :type resource_group_name: str
1042
- :param account_name: The name of the storage account within the specified resource group.
1043
- Storage account names must be between 3 and 24 characters in length and use numbers and
1044
- lower-case letters only. Required.
1045
- :type account_name: str
1046
- :param parameters: The parameters to provide for the updated account. Required.
1047
- :type parameters: IO[bytes]
1048
- :keyword content_type: Body Parameter content-type. Content type parameter for binary body.
1049
- Default value is "application/json".
1050
- :paramtype content_type: str
1051
- :return: StorageAccount or the result of cls(response)
1052
- :rtype: ~azure.mgmt.storage.v2020_08_01_preview.models.StorageAccount
1053
- :raises ~azure.core.exceptions.HttpResponseError:
1054
- """
1055
-
1056
- @distributed_trace
1057
- def update(
1058
- self,
1059
- resource_group_name: str,
1060
- account_name: str,
1061
- parameters: Union[_models.StorageAccountUpdateParameters, IO[bytes]],
1062
- **kwargs: Any
1063
- ) -> _models.StorageAccount:
1064
- """The update operation can be used to update the SKU, encryption, access tier, or tags for a
1065
- storage account. It can also be used to map the account to a custom domain. Only one custom
1066
- domain is supported per storage account; the replacement/change of custom domain is not
1067
- supported. In order to replace an old custom domain, the old value must be cleared/unregistered
1068
- before a new value can be set. The update of multiple properties is supported. This call does
1069
- not change the storage keys for the account. If you want to change the storage account keys,
1070
- use the regenerate keys operation. The location and name of the storage account cannot be
1071
- changed after creation.
1072
-
1073
- :param resource_group_name: The name of the resource group within the user's subscription. The
1074
- name is case insensitive. Required.
1075
- :type resource_group_name: str
1076
- :param account_name: The name of the storage account within the specified resource group.
1077
- Storage account names must be between 3 and 24 characters in length and use numbers and
1078
- lower-case letters only. Required.
1079
- :type account_name: str
1080
- :param parameters: The parameters to provide for the updated account. Is either a
1081
- StorageAccountUpdateParameters type or a IO[bytes] type. Required.
1082
- :type parameters: ~azure.mgmt.storage.v2020_08_01_preview.models.StorageAccountUpdateParameters
1083
- or IO[bytes]
1084
- :return: StorageAccount or the result of cls(response)
1085
- :rtype: ~azure.mgmt.storage.v2020_08_01_preview.models.StorageAccount
1086
- :raises ~azure.core.exceptions.HttpResponseError:
1087
- """
1088
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
1089
- 401: ClientAuthenticationError,
1090
- 404: ResourceNotFoundError,
1091
- 409: ResourceExistsError,
1092
- 304: ResourceNotModifiedError,
1093
- }
1094
- error_map.update(kwargs.pop("error_map", {}) or {})
1095
-
1096
- _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
1097
- _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
1098
-
1099
- api_version: str = kwargs.pop(
1100
- "api_version", _params.pop("api-version", self._api_version or "2020-08-01-preview")
1101
- )
1102
- content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
1103
- cls: ClsType[_models.StorageAccount] = kwargs.pop("cls", None)
1104
-
1105
- content_type = content_type or "application/json"
1106
- _json = None
1107
- _content = None
1108
- if isinstance(parameters, (IOBase, bytes)):
1109
- _content = parameters
1110
- else:
1111
- _json = self._serialize.body(parameters, "StorageAccountUpdateParameters")
1112
-
1113
- _request = build_update_request(
1114
- resource_group_name=resource_group_name,
1115
- account_name=account_name,
1116
- subscription_id=self._config.subscription_id,
1117
- api_version=api_version,
1118
- content_type=content_type,
1119
- json=_json,
1120
- content=_content,
1121
- headers=_headers,
1122
- params=_params,
1123
- )
1124
- _request = _convert_request(_request)
1125
- _request.url = self._client.format_url(_request.url)
1126
-
1127
- _stream = False
1128
- pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access
1129
- _request, stream=_stream, **kwargs
1130
- )
1131
-
1132
- response = pipeline_response.http_response
1133
-
1134
- if response.status_code not in [200]:
1135
- map_error(status_code=response.status_code, response=response, error_map=error_map)
1136
- raise HttpResponseError(response=response, error_format=ARMErrorFormat)
1137
-
1138
- deserialized = self._deserialize("StorageAccount", pipeline_response)
1139
-
1140
- if cls:
1141
- return cls(pipeline_response, deserialized, {}) # type: ignore
1142
-
1143
- return deserialized # type: ignore
1144
-
1145
- @distributed_trace
1146
- def list(self, **kwargs: Any) -> Iterable["_models.StorageAccount"]:
1147
- """Lists all the storage accounts available under the subscription. Note that storage keys are not
1148
- returned; use the ListKeys operation for this.
1149
-
1150
- :return: An iterator like instance of either StorageAccount or the result of cls(response)
1151
- :rtype:
1152
- ~azure.core.paging.ItemPaged[~azure.mgmt.storage.v2020_08_01_preview.models.StorageAccount]
1153
- :raises ~azure.core.exceptions.HttpResponseError:
1154
- """
1155
- _headers = kwargs.pop("headers", {}) or {}
1156
- _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
1157
-
1158
- api_version: str = kwargs.pop(
1159
- "api_version", _params.pop("api-version", self._api_version or "2020-08-01-preview")
1160
- )
1161
- cls: ClsType[_models.StorageAccountListResult] = kwargs.pop("cls", None)
1162
-
1163
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
1164
- 401: ClientAuthenticationError,
1165
- 404: ResourceNotFoundError,
1166
- 409: ResourceExistsError,
1167
- 304: ResourceNotModifiedError,
1168
- }
1169
- error_map.update(kwargs.pop("error_map", {}) or {})
1170
-
1171
- def prepare_request(next_link=None):
1172
- if not next_link:
1173
-
1174
- _request = build_list_request(
1175
- subscription_id=self._config.subscription_id,
1176
- api_version=api_version,
1177
- headers=_headers,
1178
- params=_params,
1179
- )
1180
- _request = _convert_request(_request)
1181
- _request.url = self._client.format_url(_request.url)
1182
-
1183
- else:
1184
- # make call to next link with the client's api-version
1185
- _parsed_next_link = urllib.parse.urlparse(next_link)
1186
- _next_request_params = case_insensitive_dict(
1187
- {
1188
- key: [urllib.parse.quote(v) for v in value]
1189
- for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items()
1190
- }
1191
- )
1192
- _next_request_params["api-version"] = self._api_version
1193
- _request = HttpRequest(
1194
- "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params
1195
- )
1196
- _request = _convert_request(_request)
1197
- _request.url = self._client.format_url(_request.url)
1198
- _request.method = "GET"
1199
- return _request
1200
-
1201
- def extract_data(pipeline_response):
1202
- deserialized = self._deserialize("StorageAccountListResult", pipeline_response)
1203
- list_of_elem = deserialized.value
1204
- if cls:
1205
- list_of_elem = cls(list_of_elem) # type: ignore
1206
- return deserialized.next_link or None, iter(list_of_elem)
1207
-
1208
- def get_next(next_link=None):
1209
- _request = prepare_request(next_link)
1210
-
1211
- _stream = False
1212
- pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access
1213
- _request, stream=_stream, **kwargs
1214
- )
1215
- response = pipeline_response.http_response
1216
-
1217
- if response.status_code not in [200]:
1218
- map_error(status_code=response.status_code, response=response, error_map=error_map)
1219
- raise HttpResponseError(response=response, error_format=ARMErrorFormat)
1220
-
1221
- return pipeline_response
1222
-
1223
- return ItemPaged(get_next, extract_data)
1224
-
1225
- @distributed_trace
1226
- def list_by_resource_group(self, resource_group_name: str, **kwargs: Any) -> Iterable["_models.StorageAccount"]:
1227
- """Lists all the storage accounts available under the given resource group. Note that storage keys
1228
- are not returned; use the ListKeys operation for this.
1229
-
1230
- :param resource_group_name: The name of the resource group within the user's subscription. The
1231
- name is case insensitive. Required.
1232
- :type resource_group_name: str
1233
- :return: An iterator like instance of either StorageAccount or the result of cls(response)
1234
- :rtype:
1235
- ~azure.core.paging.ItemPaged[~azure.mgmt.storage.v2020_08_01_preview.models.StorageAccount]
1236
- :raises ~azure.core.exceptions.HttpResponseError:
1237
- """
1238
- _headers = kwargs.pop("headers", {}) or {}
1239
- _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
1240
-
1241
- api_version: str = kwargs.pop(
1242
- "api_version", _params.pop("api-version", self._api_version or "2020-08-01-preview")
1243
- )
1244
- cls: ClsType[_models.StorageAccountListResult] = kwargs.pop("cls", None)
1245
-
1246
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
1247
- 401: ClientAuthenticationError,
1248
- 404: ResourceNotFoundError,
1249
- 409: ResourceExistsError,
1250
- 304: ResourceNotModifiedError,
1251
- }
1252
- error_map.update(kwargs.pop("error_map", {}) or {})
1253
-
1254
- def prepare_request(next_link=None):
1255
- if not next_link:
1256
-
1257
- _request = build_list_by_resource_group_request(
1258
- resource_group_name=resource_group_name,
1259
- subscription_id=self._config.subscription_id,
1260
- api_version=api_version,
1261
- headers=_headers,
1262
- params=_params,
1263
- )
1264
- _request = _convert_request(_request)
1265
- _request.url = self._client.format_url(_request.url)
1266
-
1267
- else:
1268
- # make call to next link with the client's api-version
1269
- _parsed_next_link = urllib.parse.urlparse(next_link)
1270
- _next_request_params = case_insensitive_dict(
1271
- {
1272
- key: [urllib.parse.quote(v) for v in value]
1273
- for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items()
1274
- }
1275
- )
1276
- _next_request_params["api-version"] = self._api_version
1277
- _request = HttpRequest(
1278
- "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params
1279
- )
1280
- _request = _convert_request(_request)
1281
- _request.url = self._client.format_url(_request.url)
1282
- _request.method = "GET"
1283
- return _request
1284
-
1285
- def extract_data(pipeline_response):
1286
- deserialized = self._deserialize("StorageAccountListResult", pipeline_response)
1287
- list_of_elem = deserialized.value
1288
- if cls:
1289
- list_of_elem = cls(list_of_elem) # type: ignore
1290
- return deserialized.next_link or None, iter(list_of_elem)
1291
-
1292
- def get_next(next_link=None):
1293
- _request = prepare_request(next_link)
1294
-
1295
- _stream = False
1296
- pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access
1297
- _request, stream=_stream, **kwargs
1298
- )
1299
- response = pipeline_response.http_response
1300
-
1301
- if response.status_code not in [200]:
1302
- map_error(status_code=response.status_code, response=response, error_map=error_map)
1303
- raise HttpResponseError(response=response, error_format=ARMErrorFormat)
1304
-
1305
- return pipeline_response
1306
-
1307
- return ItemPaged(get_next, extract_data)
1308
-
1309
- @distributed_trace
1310
- def list_keys(
1311
- self, resource_group_name: str, account_name: str, expand: Literal["kerb"] = "kerb", **kwargs: Any
1312
- ) -> _models.StorageAccountListKeysResult:
1313
- """Lists the access keys or Kerberos keys (if active directory enabled) for the specified storage
1314
- account.
1315
-
1316
- :param resource_group_name: The name of the resource group within the user's subscription. The
1317
- name is case insensitive. Required.
1318
- :type resource_group_name: str
1319
- :param account_name: The name of the storage account within the specified resource group.
1320
- Storage account names must be between 3 and 24 characters in length and use numbers and
1321
- lower-case letters only. Required.
1322
- :type account_name: str
1323
- :param expand: Specifies type of the key to be listed. Possible value is kerb. Known values are
1324
- "kerb" and None. Default value is "kerb".
1325
- :type expand: str
1326
- :return: StorageAccountListKeysResult or the result of cls(response)
1327
- :rtype: ~azure.mgmt.storage.v2020_08_01_preview.models.StorageAccountListKeysResult
1328
- :raises ~azure.core.exceptions.HttpResponseError:
1329
- """
1330
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
1331
- 401: ClientAuthenticationError,
1332
- 404: ResourceNotFoundError,
1333
- 409: ResourceExistsError,
1334
- 304: ResourceNotModifiedError,
1335
- }
1336
- error_map.update(kwargs.pop("error_map", {}) or {})
1337
-
1338
- _headers = kwargs.pop("headers", {}) or {}
1339
- _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
1340
-
1341
- api_version: str = kwargs.pop(
1342
- "api_version", _params.pop("api-version", self._api_version or "2020-08-01-preview")
1343
- )
1344
- cls: ClsType[_models.StorageAccountListKeysResult] = kwargs.pop("cls", None)
1345
-
1346
- _request = build_list_keys_request(
1347
- resource_group_name=resource_group_name,
1348
- account_name=account_name,
1349
- subscription_id=self._config.subscription_id,
1350
- expand=expand,
1351
- api_version=api_version,
1352
- headers=_headers,
1353
- params=_params,
1354
- )
1355
- _request = _convert_request(_request)
1356
- _request.url = self._client.format_url(_request.url)
1357
-
1358
- _stream = False
1359
- pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access
1360
- _request, stream=_stream, **kwargs
1361
- )
1362
-
1363
- response = pipeline_response.http_response
1364
-
1365
- if response.status_code not in [200]:
1366
- map_error(status_code=response.status_code, response=response, error_map=error_map)
1367
- raise HttpResponseError(response=response, error_format=ARMErrorFormat)
1368
-
1369
- deserialized = self._deserialize("StorageAccountListKeysResult", pipeline_response)
1370
-
1371
- if cls:
1372
- return cls(pipeline_response, deserialized, {}) # type: ignore
1373
-
1374
- return deserialized # type: ignore
1375
-
1376
- @overload
1377
- def regenerate_key(
1378
- self,
1379
- resource_group_name: str,
1380
- account_name: str,
1381
- regenerate_key: _models.StorageAccountRegenerateKeyParameters,
1382
- *,
1383
- content_type: str = "application/json",
1384
- **kwargs: Any
1385
- ) -> _models.StorageAccountListKeysResult:
1386
- """Regenerates one of the access keys or Kerberos keys for the specified storage account.
1387
-
1388
- :param resource_group_name: The name of the resource group within the user's subscription. The
1389
- name is case insensitive. Required.
1390
- :type resource_group_name: str
1391
- :param account_name: The name of the storage account within the specified resource group.
1392
- Storage account names must be between 3 and 24 characters in length and use numbers and
1393
- lower-case letters only. Required.
1394
- :type account_name: str
1395
- :param regenerate_key: Specifies name of the key which should be regenerated -- key1, key2,
1396
- kerb1, kerb2. Required.
1397
- :type regenerate_key:
1398
- ~azure.mgmt.storage.v2020_08_01_preview.models.StorageAccountRegenerateKeyParameters
1399
- :keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
1400
- Default value is "application/json".
1401
- :paramtype content_type: str
1402
- :return: StorageAccountListKeysResult or the result of cls(response)
1403
- :rtype: ~azure.mgmt.storage.v2020_08_01_preview.models.StorageAccountListKeysResult
1404
- :raises ~azure.core.exceptions.HttpResponseError:
1405
- """
1406
-
1407
- @overload
1408
- def regenerate_key(
1409
- self,
1410
- resource_group_name: str,
1411
- account_name: str,
1412
- regenerate_key: IO[bytes],
1413
- *,
1414
- content_type: str = "application/json",
1415
- **kwargs: Any
1416
- ) -> _models.StorageAccountListKeysResult:
1417
- """Regenerates one of the access keys or Kerberos keys for the specified storage account.
1418
-
1419
- :param resource_group_name: The name of the resource group within the user's subscription. The
1420
- name is case insensitive. Required.
1421
- :type resource_group_name: str
1422
- :param account_name: The name of the storage account within the specified resource group.
1423
- Storage account names must be between 3 and 24 characters in length and use numbers and
1424
- lower-case letters only. Required.
1425
- :type account_name: str
1426
- :param regenerate_key: Specifies name of the key which should be regenerated -- key1, key2,
1427
- kerb1, kerb2. Required.
1428
- :type regenerate_key: IO[bytes]
1429
- :keyword content_type: Body Parameter content-type. Content type parameter for binary body.
1430
- Default value is "application/json".
1431
- :paramtype content_type: str
1432
- :return: StorageAccountListKeysResult or the result of cls(response)
1433
- :rtype: ~azure.mgmt.storage.v2020_08_01_preview.models.StorageAccountListKeysResult
1434
- :raises ~azure.core.exceptions.HttpResponseError:
1435
- """
1436
-
1437
- @distributed_trace
1438
- def regenerate_key(
1439
- self,
1440
- resource_group_name: str,
1441
- account_name: str,
1442
- regenerate_key: Union[_models.StorageAccountRegenerateKeyParameters, IO[bytes]],
1443
- **kwargs: Any
1444
- ) -> _models.StorageAccountListKeysResult:
1445
- """Regenerates one of the access keys or Kerberos keys for the specified storage account.
1446
-
1447
- :param resource_group_name: The name of the resource group within the user's subscription. The
1448
- name is case insensitive. Required.
1449
- :type resource_group_name: str
1450
- :param account_name: The name of the storage account within the specified resource group.
1451
- Storage account names must be between 3 and 24 characters in length and use numbers and
1452
- lower-case letters only. Required.
1453
- :type account_name: str
1454
- :param regenerate_key: Specifies name of the key which should be regenerated -- key1, key2,
1455
- kerb1, kerb2. Is either a StorageAccountRegenerateKeyParameters type or a IO[bytes] type.
1456
- Required.
1457
- :type regenerate_key:
1458
- ~azure.mgmt.storage.v2020_08_01_preview.models.StorageAccountRegenerateKeyParameters or
1459
- IO[bytes]
1460
- :return: StorageAccountListKeysResult or the result of cls(response)
1461
- :rtype: ~azure.mgmt.storage.v2020_08_01_preview.models.StorageAccountListKeysResult
1462
- :raises ~azure.core.exceptions.HttpResponseError:
1463
- """
1464
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
1465
- 401: ClientAuthenticationError,
1466
- 404: ResourceNotFoundError,
1467
- 409: ResourceExistsError,
1468
- 304: ResourceNotModifiedError,
1469
- }
1470
- error_map.update(kwargs.pop("error_map", {}) or {})
1471
-
1472
- _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
1473
- _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
1474
-
1475
- api_version: str = kwargs.pop(
1476
- "api_version", _params.pop("api-version", self._api_version or "2020-08-01-preview")
1477
- )
1478
- content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
1479
- cls: ClsType[_models.StorageAccountListKeysResult] = kwargs.pop("cls", None)
1480
-
1481
- content_type = content_type or "application/json"
1482
- _json = None
1483
- _content = None
1484
- if isinstance(regenerate_key, (IOBase, bytes)):
1485
- _content = regenerate_key
1486
- else:
1487
- _json = self._serialize.body(regenerate_key, "StorageAccountRegenerateKeyParameters")
1488
-
1489
- _request = build_regenerate_key_request(
1490
- resource_group_name=resource_group_name,
1491
- account_name=account_name,
1492
- subscription_id=self._config.subscription_id,
1493
- api_version=api_version,
1494
- content_type=content_type,
1495
- json=_json,
1496
- content=_content,
1497
- headers=_headers,
1498
- params=_params,
1499
- )
1500
- _request = _convert_request(_request)
1501
- _request.url = self._client.format_url(_request.url)
1502
-
1503
- _stream = False
1504
- pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access
1505
- _request, stream=_stream, **kwargs
1506
- )
1507
-
1508
- response = pipeline_response.http_response
1509
-
1510
- if response.status_code not in [200]:
1511
- map_error(status_code=response.status_code, response=response, error_map=error_map)
1512
- raise HttpResponseError(response=response, error_format=ARMErrorFormat)
1513
-
1514
- deserialized = self._deserialize("StorageAccountListKeysResult", pipeline_response)
1515
-
1516
- if cls:
1517
- return cls(pipeline_response, deserialized, {}) # type: ignore
1518
-
1519
- return deserialized # type: ignore
1520
-
1521
- @overload
1522
- def list_account_sas(
1523
- self,
1524
- resource_group_name: str,
1525
- account_name: str,
1526
- parameters: _models.AccountSasParameters,
1527
- *,
1528
- content_type: str = "application/json",
1529
- **kwargs: Any
1530
- ) -> _models.ListAccountSasResponse:
1531
- """List SAS credentials of a storage account.
1532
-
1533
- :param resource_group_name: The name of the resource group within the user's subscription. The
1534
- name is case insensitive. Required.
1535
- :type resource_group_name: str
1536
- :param account_name: The name of the storage account within the specified resource group.
1537
- Storage account names must be between 3 and 24 characters in length and use numbers and
1538
- lower-case letters only. Required.
1539
- :type account_name: str
1540
- :param parameters: The parameters to provide to list SAS credentials for the storage account.
1541
- Required.
1542
- :type parameters: ~azure.mgmt.storage.v2020_08_01_preview.models.AccountSasParameters
1543
- :keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
1544
- Default value is "application/json".
1545
- :paramtype content_type: str
1546
- :return: ListAccountSasResponse or the result of cls(response)
1547
- :rtype: ~azure.mgmt.storage.v2020_08_01_preview.models.ListAccountSasResponse
1548
- :raises ~azure.core.exceptions.HttpResponseError:
1549
- """
1550
-
1551
- @overload
1552
- def list_account_sas(
1553
- self,
1554
- resource_group_name: str,
1555
- account_name: str,
1556
- parameters: IO[bytes],
1557
- *,
1558
- content_type: str = "application/json",
1559
- **kwargs: Any
1560
- ) -> _models.ListAccountSasResponse:
1561
- """List SAS credentials of a storage account.
1562
-
1563
- :param resource_group_name: The name of the resource group within the user's subscription. The
1564
- name is case insensitive. Required.
1565
- :type resource_group_name: str
1566
- :param account_name: The name of the storage account within the specified resource group.
1567
- Storage account names must be between 3 and 24 characters in length and use numbers and
1568
- lower-case letters only. Required.
1569
- :type account_name: str
1570
- :param parameters: The parameters to provide to list SAS credentials for the storage account.
1571
- Required.
1572
- :type parameters: IO[bytes]
1573
- :keyword content_type: Body Parameter content-type. Content type parameter for binary body.
1574
- Default value is "application/json".
1575
- :paramtype content_type: str
1576
- :return: ListAccountSasResponse or the result of cls(response)
1577
- :rtype: ~azure.mgmt.storage.v2020_08_01_preview.models.ListAccountSasResponse
1578
- :raises ~azure.core.exceptions.HttpResponseError:
1579
- """
1580
-
1581
- @distributed_trace
1582
- def list_account_sas(
1583
- self,
1584
- resource_group_name: str,
1585
- account_name: str,
1586
- parameters: Union[_models.AccountSasParameters, IO[bytes]],
1587
- **kwargs: Any
1588
- ) -> _models.ListAccountSasResponse:
1589
- """List SAS credentials of a storage account.
1590
-
1591
- :param resource_group_name: The name of the resource group within the user's subscription. The
1592
- name is case insensitive. Required.
1593
- :type resource_group_name: str
1594
- :param account_name: The name of the storage account within the specified resource group.
1595
- Storage account names must be between 3 and 24 characters in length and use numbers and
1596
- lower-case letters only. Required.
1597
- :type account_name: str
1598
- :param parameters: The parameters to provide to list SAS credentials for the storage account.
1599
- Is either a AccountSasParameters type or a IO[bytes] type. Required.
1600
- :type parameters: ~azure.mgmt.storage.v2020_08_01_preview.models.AccountSasParameters or
1601
- IO[bytes]
1602
- :return: ListAccountSasResponse or the result of cls(response)
1603
- :rtype: ~azure.mgmt.storage.v2020_08_01_preview.models.ListAccountSasResponse
1604
- :raises ~azure.core.exceptions.HttpResponseError:
1605
- """
1606
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
1607
- 401: ClientAuthenticationError,
1608
- 404: ResourceNotFoundError,
1609
- 409: ResourceExistsError,
1610
- 304: ResourceNotModifiedError,
1611
- }
1612
- error_map.update(kwargs.pop("error_map", {}) or {})
1613
-
1614
- _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
1615
- _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
1616
-
1617
- api_version: str = kwargs.pop(
1618
- "api_version", _params.pop("api-version", self._api_version or "2020-08-01-preview")
1619
- )
1620
- content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
1621
- cls: ClsType[_models.ListAccountSasResponse] = kwargs.pop("cls", None)
1622
-
1623
- content_type = content_type or "application/json"
1624
- _json = None
1625
- _content = None
1626
- if isinstance(parameters, (IOBase, bytes)):
1627
- _content = parameters
1628
- else:
1629
- _json = self._serialize.body(parameters, "AccountSasParameters")
1630
-
1631
- _request = build_list_account_sas_request(
1632
- resource_group_name=resource_group_name,
1633
- account_name=account_name,
1634
- subscription_id=self._config.subscription_id,
1635
- api_version=api_version,
1636
- content_type=content_type,
1637
- json=_json,
1638
- content=_content,
1639
- headers=_headers,
1640
- params=_params,
1641
- )
1642
- _request = _convert_request(_request)
1643
- _request.url = self._client.format_url(_request.url)
1644
-
1645
- _stream = False
1646
- pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access
1647
- _request, stream=_stream, **kwargs
1648
- )
1649
-
1650
- response = pipeline_response.http_response
1651
-
1652
- if response.status_code not in [200]:
1653
- map_error(status_code=response.status_code, response=response, error_map=error_map)
1654
- raise HttpResponseError(response=response, error_format=ARMErrorFormat)
1655
-
1656
- deserialized = self._deserialize("ListAccountSasResponse", pipeline_response)
1657
-
1658
- if cls:
1659
- return cls(pipeline_response, deserialized, {}) # type: ignore
1660
-
1661
- return deserialized # type: ignore
1662
-
1663
- @overload
1664
- def list_service_sas(
1665
- self,
1666
- resource_group_name: str,
1667
- account_name: str,
1668
- parameters: _models.ServiceSasParameters,
1669
- *,
1670
- content_type: str = "application/json",
1671
- **kwargs: Any
1672
- ) -> _models.ListServiceSasResponse:
1673
- """List service SAS credentials of a specific resource.
1674
-
1675
- :param resource_group_name: The name of the resource group within the user's subscription. The
1676
- name is case insensitive. Required.
1677
- :type resource_group_name: str
1678
- :param account_name: The name of the storage account within the specified resource group.
1679
- Storage account names must be between 3 and 24 characters in length and use numbers and
1680
- lower-case letters only. Required.
1681
- :type account_name: str
1682
- :param parameters: The parameters to provide to list service SAS credentials. Required.
1683
- :type parameters: ~azure.mgmt.storage.v2020_08_01_preview.models.ServiceSasParameters
1684
- :keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
1685
- Default value is "application/json".
1686
- :paramtype content_type: str
1687
- :return: ListServiceSasResponse or the result of cls(response)
1688
- :rtype: ~azure.mgmt.storage.v2020_08_01_preview.models.ListServiceSasResponse
1689
- :raises ~azure.core.exceptions.HttpResponseError:
1690
- """
1691
-
1692
- @overload
1693
- def list_service_sas(
1694
- self,
1695
- resource_group_name: str,
1696
- account_name: str,
1697
- parameters: IO[bytes],
1698
- *,
1699
- content_type: str = "application/json",
1700
- **kwargs: Any
1701
- ) -> _models.ListServiceSasResponse:
1702
- """List service SAS credentials of a specific resource.
1703
-
1704
- :param resource_group_name: The name of the resource group within the user's subscription. The
1705
- name is case insensitive. Required.
1706
- :type resource_group_name: str
1707
- :param account_name: The name of the storage account within the specified resource group.
1708
- Storage account names must be between 3 and 24 characters in length and use numbers and
1709
- lower-case letters only. Required.
1710
- :type account_name: str
1711
- :param parameters: The parameters to provide to list service SAS credentials. Required.
1712
- :type parameters: IO[bytes]
1713
- :keyword content_type: Body Parameter content-type. Content type parameter for binary body.
1714
- Default value is "application/json".
1715
- :paramtype content_type: str
1716
- :return: ListServiceSasResponse or the result of cls(response)
1717
- :rtype: ~azure.mgmt.storage.v2020_08_01_preview.models.ListServiceSasResponse
1718
- :raises ~azure.core.exceptions.HttpResponseError:
1719
- """
1720
-
1721
- @distributed_trace
1722
- def list_service_sas(
1723
- self,
1724
- resource_group_name: str,
1725
- account_name: str,
1726
- parameters: Union[_models.ServiceSasParameters, IO[bytes]],
1727
- **kwargs: Any
1728
- ) -> _models.ListServiceSasResponse:
1729
- """List service SAS credentials of a specific resource.
1730
-
1731
- :param resource_group_name: The name of the resource group within the user's subscription. The
1732
- name is case insensitive. Required.
1733
- :type resource_group_name: str
1734
- :param account_name: The name of the storage account within the specified resource group.
1735
- Storage account names must be between 3 and 24 characters in length and use numbers and
1736
- lower-case letters only. Required.
1737
- :type account_name: str
1738
- :param parameters: The parameters to provide to list service SAS credentials. Is either a
1739
- ServiceSasParameters type or a IO[bytes] type. Required.
1740
- :type parameters: ~azure.mgmt.storage.v2020_08_01_preview.models.ServiceSasParameters or
1741
- IO[bytes]
1742
- :return: ListServiceSasResponse or the result of cls(response)
1743
- :rtype: ~azure.mgmt.storage.v2020_08_01_preview.models.ListServiceSasResponse
1744
- :raises ~azure.core.exceptions.HttpResponseError:
1745
- """
1746
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
1747
- 401: ClientAuthenticationError,
1748
- 404: ResourceNotFoundError,
1749
- 409: ResourceExistsError,
1750
- 304: ResourceNotModifiedError,
1751
- }
1752
- error_map.update(kwargs.pop("error_map", {}) or {})
1753
-
1754
- _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
1755
- _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
1756
-
1757
- api_version: str = kwargs.pop(
1758
- "api_version", _params.pop("api-version", self._api_version or "2020-08-01-preview")
1759
- )
1760
- content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
1761
- cls: ClsType[_models.ListServiceSasResponse] = kwargs.pop("cls", None)
1762
-
1763
- content_type = content_type or "application/json"
1764
- _json = None
1765
- _content = None
1766
- if isinstance(parameters, (IOBase, bytes)):
1767
- _content = parameters
1768
- else:
1769
- _json = self._serialize.body(parameters, "ServiceSasParameters")
1770
-
1771
- _request = build_list_service_sas_request(
1772
- resource_group_name=resource_group_name,
1773
- account_name=account_name,
1774
- subscription_id=self._config.subscription_id,
1775
- api_version=api_version,
1776
- content_type=content_type,
1777
- json=_json,
1778
- content=_content,
1779
- headers=_headers,
1780
- params=_params,
1781
- )
1782
- _request = _convert_request(_request)
1783
- _request.url = self._client.format_url(_request.url)
1784
-
1785
- _stream = False
1786
- pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access
1787
- _request, stream=_stream, **kwargs
1788
- )
1789
-
1790
- response = pipeline_response.http_response
1791
-
1792
- if response.status_code not in [200]:
1793
- map_error(status_code=response.status_code, response=response, error_map=error_map)
1794
- raise HttpResponseError(response=response, error_format=ARMErrorFormat)
1795
-
1796
- deserialized = self._deserialize("ListServiceSasResponse", pipeline_response)
1797
-
1798
- if cls:
1799
- return cls(pipeline_response, deserialized, {}) # type: ignore
1800
-
1801
- return deserialized # type: ignore
1802
-
1803
- def _failover_initial( # pylint: disable=inconsistent-return-statements
1804
- self, resource_group_name: str, account_name: str, **kwargs: Any
1805
- ) -> None:
1806
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
1807
- 401: ClientAuthenticationError,
1808
- 404: ResourceNotFoundError,
1809
- 409: ResourceExistsError,
1810
- 304: ResourceNotModifiedError,
1811
- }
1812
- error_map.update(kwargs.pop("error_map", {}) or {})
1813
-
1814
- _headers = kwargs.pop("headers", {}) or {}
1815
- _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
1816
-
1817
- api_version: str = kwargs.pop(
1818
- "api_version", _params.pop("api-version", self._api_version or "2020-08-01-preview")
1819
- )
1820
- cls: ClsType[None] = kwargs.pop("cls", None)
1821
-
1822
- _request = build_failover_request(
1823
- resource_group_name=resource_group_name,
1824
- account_name=account_name,
1825
- subscription_id=self._config.subscription_id,
1826
- api_version=api_version,
1827
- headers=_headers,
1828
- params=_params,
1829
- )
1830
- _request = _convert_request(_request)
1831
- _request.url = self._client.format_url(_request.url)
1832
-
1833
- _stream = False
1834
- pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access
1835
- _request, stream=_stream, **kwargs
1836
- )
1837
-
1838
- response = pipeline_response.http_response
1839
-
1840
- if response.status_code not in [200, 202]:
1841
- map_error(status_code=response.status_code, response=response, error_map=error_map)
1842
- raise HttpResponseError(response=response, error_format=ARMErrorFormat)
1843
-
1844
- if cls:
1845
- return cls(pipeline_response, None, {}) # type: ignore
1846
-
1847
- @distributed_trace
1848
- def begin_failover(self, resource_group_name: str, account_name: str, **kwargs: Any) -> LROPoller[None]:
1849
- """Failover request can be triggered for a storage account in case of availability issues. The
1850
- failover occurs from the storage account's primary cluster to secondary cluster for RA-GRS
1851
- accounts. The secondary cluster will become primary after failover.
1852
-
1853
- :param resource_group_name: The name of the resource group within the user's subscription. The
1854
- name is case insensitive. Required.
1855
- :type resource_group_name: str
1856
- :param account_name: The name of the storage account within the specified resource group.
1857
- Storage account names must be between 3 and 24 characters in length and use numbers and
1858
- lower-case letters only. Required.
1859
- :type account_name: str
1860
- :return: An instance of LROPoller that returns either None or the result of cls(response)
1861
- :rtype: ~azure.core.polling.LROPoller[None]
1862
- :raises ~azure.core.exceptions.HttpResponseError:
1863
- """
1864
- _headers = kwargs.pop("headers", {}) or {}
1865
- _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
1866
-
1867
- api_version: str = kwargs.pop(
1868
- "api_version", _params.pop("api-version", self._api_version or "2020-08-01-preview")
1869
- )
1870
- cls: ClsType[None] = kwargs.pop("cls", None)
1871
- polling: Union[bool, PollingMethod] = kwargs.pop("polling", True)
1872
- lro_delay = kwargs.pop("polling_interval", self._config.polling_interval)
1873
- cont_token: Optional[str] = kwargs.pop("continuation_token", None)
1874
- if cont_token is None:
1875
- raw_result = self._failover_initial( # type: ignore
1876
- resource_group_name=resource_group_name,
1877
- account_name=account_name,
1878
- api_version=api_version,
1879
- cls=lambda x, y, z: x,
1880
- headers=_headers,
1881
- params=_params,
1882
- **kwargs
1883
- )
1884
- kwargs.pop("error_map", None)
1885
-
1886
- def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements
1887
- if cls:
1888
- return cls(pipeline_response, None, {}) # type: ignore
1889
-
1890
- if polling is True:
1891
- polling_method: PollingMethod = cast(
1892
- PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "location"}, **kwargs)
1893
- )
1894
- elif polling is False:
1895
- polling_method = cast(PollingMethod, NoPolling())
1896
- else:
1897
- polling_method = polling
1898
- if cont_token:
1899
- return LROPoller[None].from_continuation_token(
1900
- polling_method=polling_method,
1901
- continuation_token=cont_token,
1902
- client=self._client,
1903
- deserialization_callback=get_long_running_output,
1904
- )
1905
- return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore
1906
-
1907
- def _restore_blob_ranges_initial(
1908
- self,
1909
- resource_group_name: str,
1910
- account_name: str,
1911
- parameters: Union[_models.BlobRestoreParameters, IO[bytes]],
1912
- **kwargs: Any
1913
- ) -> _models.BlobRestoreStatus:
1914
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
1915
- 401: ClientAuthenticationError,
1916
- 404: ResourceNotFoundError,
1917
- 409: ResourceExistsError,
1918
- 304: ResourceNotModifiedError,
1919
- }
1920
- error_map.update(kwargs.pop("error_map", {}) or {})
1921
-
1922
- _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
1923
- _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
1924
-
1925
- api_version: str = kwargs.pop(
1926
- "api_version", _params.pop("api-version", self._api_version or "2020-08-01-preview")
1927
- )
1928
- content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
1929
- cls: ClsType[_models.BlobRestoreStatus] = kwargs.pop("cls", None)
1930
-
1931
- content_type = content_type or "application/json"
1932
- _json = None
1933
- _content = None
1934
- if isinstance(parameters, (IOBase, bytes)):
1935
- _content = parameters
1936
- else:
1937
- _json = self._serialize.body(parameters, "BlobRestoreParameters")
1938
-
1939
- _request = build_restore_blob_ranges_request(
1940
- resource_group_name=resource_group_name,
1941
- account_name=account_name,
1942
- subscription_id=self._config.subscription_id,
1943
- api_version=api_version,
1944
- content_type=content_type,
1945
- json=_json,
1946
- content=_content,
1947
- headers=_headers,
1948
- params=_params,
1949
- )
1950
- _request = _convert_request(_request)
1951
- _request.url = self._client.format_url(_request.url)
1952
-
1953
- _stream = False
1954
- pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access
1955
- _request, stream=_stream, **kwargs
1956
- )
1957
-
1958
- response = pipeline_response.http_response
1959
-
1960
- if response.status_code not in [200, 202]:
1961
- map_error(status_code=response.status_code, response=response, error_map=error_map)
1962
- raise HttpResponseError(response=response, error_format=ARMErrorFormat)
1963
-
1964
- if response.status_code == 200:
1965
- deserialized = self._deserialize("BlobRestoreStatus", pipeline_response)
1966
-
1967
- if response.status_code == 202:
1968
- deserialized = self._deserialize("BlobRestoreStatus", pipeline_response)
1969
-
1970
- if cls:
1971
- return cls(pipeline_response, deserialized, {}) # type: ignore
1972
-
1973
- return deserialized # type: ignore
1974
-
1975
- @overload
1976
- def begin_restore_blob_ranges(
1977
- self,
1978
- resource_group_name: str,
1979
- account_name: str,
1980
- parameters: _models.BlobRestoreParameters,
1981
- *,
1982
- content_type: str = "application/json",
1983
- **kwargs: Any
1984
- ) -> LROPoller[_models.BlobRestoreStatus]:
1985
- """Restore blobs in the specified blob ranges.
1986
-
1987
- :param resource_group_name: The name of the resource group within the user's subscription. The
1988
- name is case insensitive. Required.
1989
- :type resource_group_name: str
1990
- :param account_name: The name of the storage account within the specified resource group.
1991
- Storage account names must be between 3 and 24 characters in length and use numbers and
1992
- lower-case letters only. Required.
1993
- :type account_name: str
1994
- :param parameters: The parameters to provide for restore blob ranges. Required.
1995
- :type parameters: ~azure.mgmt.storage.v2020_08_01_preview.models.BlobRestoreParameters
1996
- :keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
1997
- Default value is "application/json".
1998
- :paramtype content_type: str
1999
- :return: An instance of LROPoller that returns either BlobRestoreStatus or the result of
2000
- cls(response)
2001
- :rtype:
2002
- ~azure.core.polling.LROPoller[~azure.mgmt.storage.v2020_08_01_preview.models.BlobRestoreStatus]
2003
- :raises ~azure.core.exceptions.HttpResponseError:
2004
- """
2005
-
2006
- @overload
2007
- def begin_restore_blob_ranges(
2008
- self,
2009
- resource_group_name: str,
2010
- account_name: str,
2011
- parameters: IO[bytes],
2012
- *,
2013
- content_type: str = "application/json",
2014
- **kwargs: Any
2015
- ) -> LROPoller[_models.BlobRestoreStatus]:
2016
- """Restore blobs in the specified blob ranges.
2017
-
2018
- :param resource_group_name: The name of the resource group within the user's subscription. The
2019
- name is case insensitive. Required.
2020
- :type resource_group_name: str
2021
- :param account_name: The name of the storage account within the specified resource group.
2022
- Storage account names must be between 3 and 24 characters in length and use numbers and
2023
- lower-case letters only. Required.
2024
- :type account_name: str
2025
- :param parameters: The parameters to provide for restore blob ranges. Required.
2026
- :type parameters: IO[bytes]
2027
- :keyword content_type: Body Parameter content-type. Content type parameter for binary body.
2028
- Default value is "application/json".
2029
- :paramtype content_type: str
2030
- :return: An instance of LROPoller that returns either BlobRestoreStatus or the result of
2031
- cls(response)
2032
- :rtype:
2033
- ~azure.core.polling.LROPoller[~azure.mgmt.storage.v2020_08_01_preview.models.BlobRestoreStatus]
2034
- :raises ~azure.core.exceptions.HttpResponseError:
2035
- """
2036
-
2037
- @distributed_trace
2038
- def begin_restore_blob_ranges(
2039
- self,
2040
- resource_group_name: str,
2041
- account_name: str,
2042
- parameters: Union[_models.BlobRestoreParameters, IO[bytes]],
2043
- **kwargs: Any
2044
- ) -> LROPoller[_models.BlobRestoreStatus]:
2045
- """Restore blobs in the specified blob ranges.
2046
-
2047
- :param resource_group_name: The name of the resource group within the user's subscription. The
2048
- name is case insensitive. Required.
2049
- :type resource_group_name: str
2050
- :param account_name: The name of the storage account within the specified resource group.
2051
- Storage account names must be between 3 and 24 characters in length and use numbers and
2052
- lower-case letters only. Required.
2053
- :type account_name: str
2054
- :param parameters: The parameters to provide for restore blob ranges. Is either a
2055
- BlobRestoreParameters type or a IO[bytes] type. Required.
2056
- :type parameters: ~azure.mgmt.storage.v2020_08_01_preview.models.BlobRestoreParameters or
2057
- IO[bytes]
2058
- :return: An instance of LROPoller that returns either BlobRestoreStatus or the result of
2059
- cls(response)
2060
- :rtype:
2061
- ~azure.core.polling.LROPoller[~azure.mgmt.storage.v2020_08_01_preview.models.BlobRestoreStatus]
2062
- :raises ~azure.core.exceptions.HttpResponseError:
2063
- """
2064
- _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
2065
- _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
2066
-
2067
- api_version: str = kwargs.pop(
2068
- "api_version", _params.pop("api-version", self._api_version or "2020-08-01-preview")
2069
- )
2070
- content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
2071
- cls: ClsType[_models.BlobRestoreStatus] = kwargs.pop("cls", None)
2072
- polling: Union[bool, PollingMethod] = kwargs.pop("polling", True)
2073
- lro_delay = kwargs.pop("polling_interval", self._config.polling_interval)
2074
- cont_token: Optional[str] = kwargs.pop("continuation_token", None)
2075
- if cont_token is None:
2076
- raw_result = self._restore_blob_ranges_initial(
2077
- resource_group_name=resource_group_name,
2078
- account_name=account_name,
2079
- parameters=parameters,
2080
- api_version=api_version,
2081
- content_type=content_type,
2082
- cls=lambda x, y, z: x,
2083
- headers=_headers,
2084
- params=_params,
2085
- **kwargs
2086
- )
2087
- kwargs.pop("error_map", None)
2088
-
2089
- def get_long_running_output(pipeline_response):
2090
- deserialized = self._deserialize("BlobRestoreStatus", pipeline_response)
2091
- if cls:
2092
- return cls(pipeline_response, deserialized, {}) # type: ignore
2093
- return deserialized
2094
-
2095
- if polling is True:
2096
- polling_method: PollingMethod = cast(
2097
- PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "location"}, **kwargs)
2098
- )
2099
- elif polling is False:
2100
- polling_method = cast(PollingMethod, NoPolling())
2101
- else:
2102
- polling_method = polling
2103
- if cont_token:
2104
- return LROPoller[_models.BlobRestoreStatus].from_continuation_token(
2105
- polling_method=polling_method,
2106
- continuation_token=cont_token,
2107
- client=self._client,
2108
- deserialization_callback=get_long_running_output,
2109
- )
2110
- return LROPoller[_models.BlobRestoreStatus](
2111
- self._client, raw_result, get_long_running_output, polling_method # type: ignore
2112
- )
2113
-
2114
- @distributed_trace
2115
- def revoke_user_delegation_keys( # pylint: disable=inconsistent-return-statements
2116
- self, resource_group_name: str, account_name: str, **kwargs: Any
2117
- ) -> None:
2118
- """Revoke user delegation keys.
2119
-
2120
- :param resource_group_name: The name of the resource group within the user's subscription. The
2121
- name is case insensitive. Required.
2122
- :type resource_group_name: str
2123
- :param account_name: The name of the storage account within the specified resource group.
2124
- Storage account names must be between 3 and 24 characters in length and use numbers and
2125
- lower-case letters only. Required.
2126
- :type account_name: str
2127
- :return: None or the result of cls(response)
2128
- :rtype: None
2129
- :raises ~azure.core.exceptions.HttpResponseError:
2130
- """
2131
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
2132
- 401: ClientAuthenticationError,
2133
- 404: ResourceNotFoundError,
2134
- 409: ResourceExistsError,
2135
- 304: ResourceNotModifiedError,
2136
- }
2137
- error_map.update(kwargs.pop("error_map", {}) or {})
2138
-
2139
- _headers = kwargs.pop("headers", {}) or {}
2140
- _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
2141
-
2142
- api_version: str = kwargs.pop(
2143
- "api_version", _params.pop("api-version", self._api_version or "2020-08-01-preview")
2144
- )
2145
- cls: ClsType[None] = kwargs.pop("cls", None)
2146
-
2147
- _request = build_revoke_user_delegation_keys_request(
2148
- resource_group_name=resource_group_name,
2149
- account_name=account_name,
2150
- subscription_id=self._config.subscription_id,
2151
- api_version=api_version,
2152
- headers=_headers,
2153
- params=_params,
2154
- )
2155
- _request = _convert_request(_request)
2156
- _request.url = self._client.format_url(_request.url)
2157
-
2158
- _stream = False
2159
- pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access
2160
- _request, stream=_stream, **kwargs
2161
- )
2162
-
2163
- response = pipeline_response.http_response
2164
-
2165
- if response.status_code not in [200]:
2166
- map_error(status_code=response.status_code, response=response, error_map=error_map)
2167
- raise HttpResponseError(response=response, error_format=ARMErrorFormat)
2168
-
2169
- if cls:
2170
- return cls(pipeline_response, None, {}) # type: ignore