@azure/arm-storage 16.1.1 → 17.0.0-alpha.20211111.1

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 (388) hide show
  1. package/CHANGELOG.md +26 -0
  2. package/{LICENSE.txt → LICENSE} +1 -1
  3. package/README.md +63 -80
  4. package/dist/index.js +10964 -0
  5. package/dist/index.js.map +1 -0
  6. package/dist/index.min.js +1 -0
  7. package/dist/index.min.js.map +1 -0
  8. package/esm/coreClientLro.d.ts +26 -0
  9. package/esm/coreClientLro.d.ts.map +1 -0
  10. package/esm/coreClientLro.js +186 -0
  11. package/esm/coreClientLro.js.map +1 -0
  12. package/esm/index.d.ts +5002 -0
  13. package/esm/index.d.ts.map +1 -0
  14. package/esm/index.js +13 -0
  15. package/esm/index.js.map +1 -0
  16. package/esm/lro/azureAsyncPolling.d.ts +3 -0
  17. package/esm/lro/azureAsyncPolling.d.ts.map +1 -0
  18. package/esm/lro/azureAsyncPolling.js +67 -0
  19. package/esm/lro/azureAsyncPolling.js.map +1 -0
  20. package/esm/lro/bodyPolling.d.ts +8 -0
  21. package/esm/lro/bodyPolling.d.ts.map +1 -0
  22. package/esm/lro/bodyPolling.js +37 -0
  23. package/esm/lro/bodyPolling.js.map +1 -0
  24. package/esm/lro/index.d.ts +4 -0
  25. package/esm/lro/index.d.ts.map +1 -0
  26. package/{src/models/operationsMappers.ts → esm/lro/index.js} +5 -10
  27. package/esm/lro/index.js.map +1 -0
  28. package/esm/lro/locationPolling.d.ts +3 -0
  29. package/esm/lro/locationPolling.d.ts.map +1 -0
  30. package/esm/lro/locationPolling.js +19 -0
  31. package/esm/lro/locationPolling.js.map +1 -0
  32. package/esm/lro/lroEngine.d.ts +14 -0
  33. package/esm/lro/lroEngine.d.ts.map +1 -0
  34. package/esm/lro/lroEngine.js +41 -0
  35. package/esm/lro/lroEngine.js.map +1 -0
  36. package/esm/lro/models.d.ts +138 -0
  37. package/esm/lro/models.d.ts.map +1 -0
  38. package/esm/lro/models.js +14 -0
  39. package/esm/lro/models.js.map +1 -0
  40. package/esm/lro/operation.d.ts +36 -0
  41. package/esm/lro/operation.d.ts.map +1 -0
  42. package/esm/lro/operation.js +82 -0
  43. package/esm/lro/operation.js.map +1 -0
  44. package/esm/lro/passthrough.d.ts +3 -0
  45. package/esm/lro/passthrough.d.ts.map +1 -0
  46. package/esm/{models/operationsMappers.js → lro/passthrough.js} +8 -2
  47. package/esm/lro/passthrough.js.map +1 -0
  48. package/esm/lro/requestUtils.d.ts +16 -0
  49. package/esm/lro/requestUtils.d.ts.map +1 -0
  50. package/esm/lro/requestUtils.js +73 -0
  51. package/esm/lro/requestUtils.js.map +1 -0
  52. package/esm/lro/stateMachine.d.ts +18 -0
  53. package/esm/lro/stateMachine.d.ts.map +1 -0
  54. package/esm/lro/stateMachine.js +84 -0
  55. package/esm/lro/stateMachine.js.map +1 -0
  56. package/esm/models/index.d.ts +2673 -4395
  57. package/esm/models/index.d.ts.map +1 -1
  58. package/esm/models/index.js +331 -0
  59. package/esm/models/index.js.map +1 -1
  60. package/esm/models/mappers.d.ts +146 -138
  61. package/esm/models/mappers.d.ts.map +1 -1
  62. package/esm/models/mappers.js +2734 -2563
  63. package/esm/models/mappers.js.map +1 -1
  64. package/esm/models/parameters.d.ts +59 -33
  65. package/esm/models/parameters.d.ts.map +1 -1
  66. package/esm/models/parameters.js +267 -159
  67. package/esm/models/parameters.js.map +1 -1
  68. package/esm/operations/blobContainers.d.ts +213 -561
  69. package/esm/operations/blobContainers.d.ts.map +1 -1
  70. package/esm/operations/blobContainers.js +578 -429
  71. package/esm/operations/blobContainers.js.map +1 -1
  72. package/esm/operations/blobInventoryPolicies.d.ts +47 -109
  73. package/esm/operations/blobInventoryPolicies.d.ts.map +1 -1
  74. package/esm/operations/blobInventoryPolicies.js +163 -105
  75. package/esm/operations/blobInventoryPolicies.js.map +1 -1
  76. package/esm/operations/blobServices.d.ts +39 -89
  77. package/esm/operations/blobServices.d.ts.map +1 -1
  78. package/esm/operations/blobServices.js +133 -89
  79. package/esm/operations/blobServices.js.map +1 -1
  80. package/esm/operations/deletedAccounts.d.ts +20 -47
  81. package/esm/operations/deletedAccounts.d.ts.map +1 -1
  82. package/esm/operations/deletedAccounts.js +111 -69
  83. package/esm/operations/deletedAccounts.js.map +1 -1
  84. package/esm/operations/encryptionScopes.d.ts +65 -166
  85. package/esm/operations/encryptionScopes.d.ts.map +1 -1
  86. package/esm/operations/encryptionScopes.js +211 -131
  87. package/esm/operations/encryptionScopes.js.map +1 -1
  88. package/esm/operations/fileServices.d.ts +25 -89
  89. package/esm/operations/fileServices.d.ts.map +1 -1
  90. package/esm/operations/fileServices.js +86 -83
  91. package/esm/operations/fileServices.js.map +1 -1
  92. package/esm/operations/fileShares.d.ts +100 -256
  93. package/esm/operations/fileShares.d.ts.map +1 -1
  94. package/esm/operations/fileShares.js +316 -164
  95. package/esm/operations/fileShares.js.map +1 -1
  96. package/esm/operations/index.d.ts.map +1 -1
  97. package/esm/operations/index.js +1 -2
  98. package/esm/operations/index.js.map +1 -1
  99. package/esm/operations/managementPolicies.d.ts +30 -89
  100. package/esm/operations/managementPolicies.d.ts.map +1 -1
  101. package/esm/operations/managementPolicies.js +89 -92
  102. package/esm/operations/managementPolicies.js.map +1 -1
  103. package/esm/operations/objectReplicationPoliciesOperations.d.ts +54 -130
  104. package/esm/operations/objectReplicationPoliciesOperations.d.ts.map +1 -1
  105. package/esm/operations/objectReplicationPoliciesOperations.js +170 -102
  106. package/esm/operations/objectReplicationPoliciesOperations.js.map +1 -1
  107. package/esm/operations/operations.d.ts +14 -15
  108. package/esm/operations/operations.d.ts.map +1 -1
  109. package/esm/operations/operations.js +67 -29
  110. package/esm/operations/operations.js.map +1 -1
  111. package/esm/operations/privateEndpointConnections.d.ts +46 -126
  112. package/esm/operations/privateEndpointConnections.d.ts.map +1 -1
  113. package/esm/operations/privateEndpointConnections.js +171 -103
  114. package/esm/operations/privateEndpointConnections.js.map +1 -1
  115. package/esm/operations/privateLinkResources.d.ts +11 -31
  116. package/esm/operations/privateLinkResources.d.ts.map +1 -1
  117. package/esm/operations/privateLinkResources.js +32 -36
  118. package/esm/operations/privateLinkResources.js.map +1 -1
  119. package/esm/operations/queue.d.ts +69 -196
  120. package/esm/operations/queue.d.ts.map +1 -1
  121. package/esm/operations/queue.js +230 -162
  122. package/esm/operations/queue.js.map +1 -1
  123. package/esm/operations/queueServices.d.ts +29 -87
  124. package/esm/operations/queueServices.d.ts.map +1 -1
  125. package/esm/operations/queueServices.js +86 -87
  126. package/esm/operations/queueServices.js.map +1 -1
  127. package/esm/operations/skus.d.ts +14 -15
  128. package/esm/operations/skus.d.ts.map +1 -1
  129. package/esm/operations/skus.js +67 -32
  130. package/esm/operations/skus.js.map +1 -1
  131. package/esm/operations/storageAccounts.d.ts +163 -381
  132. package/esm/operations/storageAccounts.d.ts.map +1 -1
  133. package/esm/operations/storageAccounts.js +605 -501
  134. package/esm/operations/storageAccounts.js.map +1 -1
  135. package/esm/operations/tableOperations.d.ts +67 -184
  136. package/esm/operations/tableOperations.d.ts.map +1 -1
  137. package/esm/operations/tableOperations.js +220 -143
  138. package/esm/operations/tableOperations.js.map +1 -1
  139. package/esm/operations/tableServices.d.ts +29 -87
  140. package/esm/operations/tableServices.d.ts.map +1 -1
  141. package/esm/operations/tableServices.js +86 -87
  142. package/esm/operations/tableServices.js.map +1 -1
  143. package/esm/operations/usages.d.ts +15 -18
  144. package/esm/operations/usages.d.ts.map +1 -1
  145. package/esm/operations/usages.js +73 -34
  146. package/esm/operations/usages.js.map +1 -1
  147. package/esm/operationsInterfaces/blobContainers.d.ts +247 -0
  148. package/esm/operationsInterfaces/blobContainers.d.ts.map +1 -0
  149. package/{src/models/usagesMappers.ts → esm/operationsInterfaces/blobContainers.js} +2 -7
  150. package/esm/operationsInterfaces/blobContainers.js.map +1 -0
  151. package/esm/operationsInterfaces/blobInventoryPolicies.d.ts +54 -0
  152. package/esm/operationsInterfaces/blobInventoryPolicies.d.ts.map +1 -0
  153. package/esm/{models/usagesMappers.js → operationsInterfaces/blobInventoryPolicies.js} +2 -2
  154. package/esm/operationsInterfaces/blobInventoryPolicies.js.map +1 -0
  155. package/esm/operationsInterfaces/blobServices.d.ts +41 -0
  156. package/esm/operationsInterfaces/blobServices.d.ts.map +1 -0
  157. package/{src/models/skusMappers.ts → esm/operationsInterfaces/blobServices.js} +2 -8
  158. package/esm/operationsInterfaces/blobServices.js.map +1 -0
  159. package/esm/operationsInterfaces/deletedAccounts.d.ts +19 -0
  160. package/esm/operationsInterfaces/deletedAccounts.d.ts.map +1 -0
  161. package/esm/{models/skusMappers.js → operationsInterfaces/deletedAccounts.js} +2 -2
  162. package/esm/operationsInterfaces/deletedAccounts.js.map +1 -0
  163. package/esm/operationsInterfaces/encryptionScopes.d.ts +64 -0
  164. package/esm/operationsInterfaces/encryptionScopes.d.ts.map +1 -0
  165. package/esm/operationsInterfaces/encryptionScopes.js +9 -0
  166. package/esm/operationsInterfaces/encryptionScopes.js.map +1 -0
  167. package/esm/operationsInterfaces/fileServices.d.ts +39 -0
  168. package/esm/operationsInterfaces/fileServices.d.ts.map +1 -0
  169. package/esm/operationsInterfaces/fileServices.js +9 -0
  170. package/esm/operationsInterfaces/fileServices.js.map +1 -0
  171. package/esm/operationsInterfaces/fileShares.d.ts +102 -0
  172. package/esm/operationsInterfaces/fileShares.d.ts.map +1 -0
  173. package/esm/operationsInterfaces/fileShares.js +9 -0
  174. package/esm/operationsInterfaces/fileShares.js.map +1 -0
  175. package/esm/operationsInterfaces/index.d.ts +20 -0
  176. package/esm/operationsInterfaces/index.d.ts.map +1 -0
  177. package/esm/operationsInterfaces/index.js +27 -0
  178. package/esm/operationsInterfaces/index.js.map +1 -0
  179. package/esm/operationsInterfaces/managementPolicies.d.ts +42 -0
  180. package/esm/operationsInterfaces/managementPolicies.d.ts.map +1 -0
  181. package/esm/operationsInterfaces/managementPolicies.js +9 -0
  182. package/esm/operationsInterfaces/managementPolicies.js.map +1 -0
  183. package/esm/operationsInterfaces/objectReplicationPoliciesOperations.d.ts +61 -0
  184. package/esm/operationsInterfaces/objectReplicationPoliciesOperations.d.ts.map +1 -0
  185. package/esm/operationsInterfaces/objectReplicationPoliciesOperations.js +9 -0
  186. package/esm/operationsInterfaces/objectReplicationPoliciesOperations.js.map +1 -0
  187. package/esm/operationsInterfaces/operations.d.ts +12 -0
  188. package/esm/operationsInterfaces/operations.d.ts.map +1 -0
  189. package/esm/operationsInterfaces/operations.js +9 -0
  190. package/esm/operationsInterfaces/operations.js.map +1 -0
  191. package/esm/operationsInterfaces/privateEndpointConnections.d.ts +54 -0
  192. package/esm/operationsInterfaces/privateEndpointConnections.d.ts.map +1 -0
  193. package/esm/operationsInterfaces/privateEndpointConnections.js +9 -0
  194. package/esm/operationsInterfaces/privateEndpointConnections.js.map +1 -0
  195. package/esm/operationsInterfaces/privateLinkResources.d.ts +15 -0
  196. package/esm/operationsInterfaces/privateLinkResources.d.ts.map +1 -0
  197. package/esm/operationsInterfaces/privateLinkResources.js +9 -0
  198. package/esm/operationsInterfaces/privateLinkResources.js.map +1 -0
  199. package/esm/operationsInterfaces/queue.d.ts +71 -0
  200. package/esm/operationsInterfaces/queue.d.ts.map +1 -0
  201. package/esm/operationsInterfaces/queue.js +9 -0
  202. package/esm/operationsInterfaces/queue.js.map +1 -0
  203. package/esm/operationsInterfaces/queueServices.d.ts +39 -0
  204. package/esm/operationsInterfaces/queueServices.d.ts.map +1 -0
  205. package/esm/operationsInterfaces/queueServices.js +9 -0
  206. package/esm/operationsInterfaces/queueServices.js.map +1 -0
  207. package/esm/operationsInterfaces/skus.d.ts +12 -0
  208. package/esm/operationsInterfaces/skus.d.ts.map +1 -0
  209. package/esm/operationsInterfaces/skus.js +9 -0
  210. package/esm/operationsInterfaces/skus.js.map +1 -0
  211. package/esm/operationsInterfaces/storageAccounts.d.ts +197 -0
  212. package/esm/operationsInterfaces/storageAccounts.d.ts.map +1 -0
  213. package/esm/operationsInterfaces/storageAccounts.js +9 -0
  214. package/esm/operationsInterfaces/storageAccounts.js.map +1 -0
  215. package/esm/operationsInterfaces/tableOperations.d.ts +69 -0
  216. package/esm/operationsInterfaces/tableOperations.d.ts.map +1 -0
  217. package/esm/operationsInterfaces/tableOperations.js +9 -0
  218. package/esm/operationsInterfaces/tableOperations.js.map +1 -0
  219. package/esm/operationsInterfaces/tableServices.d.ts +39 -0
  220. package/esm/operationsInterfaces/tableServices.d.ts.map +1 -0
  221. package/esm/operationsInterfaces/tableServices.js +9 -0
  222. package/esm/operationsInterfaces/tableServices.js.map +1 -0
  223. package/esm/operationsInterfaces/usages.d.ts +13 -0
  224. package/esm/operationsInterfaces/usages.d.ts.map +1 -0
  225. package/esm/operationsInterfaces/usages.js +9 -0
  226. package/esm/operationsInterfaces/usages.js.map +1 -0
  227. package/esm/storageManagementClient.d.ts +26 -35
  228. package/esm/storageManagementClient.d.ts.map +1 -1
  229. package/esm/storageManagementClient.js +27 -42
  230. package/esm/storageManagementClient.js.map +1 -1
  231. package/esm/storageManagementClientContext.d.ts +10 -16
  232. package/esm/storageManagementClientContext.d.ts.map +1 -1
  233. package/esm/storageManagementClientContext.js +32 -44
  234. package/esm/storageManagementClientContext.js.map +1 -1
  235. package/package.json +57 -18
  236. package/review/arm-storage.api.md +2659 -0
  237. package/rollup.config.js +181 -30
  238. package/src/coreClientLro.ts +323 -0
  239. package/src/index.ts +13 -0
  240. package/src/lro/azureAsyncPolling.ts +96 -0
  241. package/src/lro/bodyPolling.ts +54 -0
  242. package/src/lro/index.ts +26 -0
  243. package/src/lro/locationPolling.ts +30 -0
  244. package/src/lro/lroEngine.ts +61 -0
  245. package/src/lro/models.ts +173 -0
  246. package/src/lro/operation.ts +120 -0
  247. package/src/lro/passthrough.ts +23 -0
  248. package/src/lro/requestUtils.ts +105 -0
  249. package/src/lro/stateMachine.ts +138 -0
  250. package/src/models/index.ts +2813 -4492
  251. package/src/models/mappers.ts +2745 -2553
  252. package/src/models/parameters.ts +354 -160
  253. package/src/operations/blobContainers.ts +719 -1037
  254. package/src/operations/blobInventoryPolicies.ts +182 -211
  255. package/src/operations/blobServices.ts +150 -177
  256. package/src/operations/deletedAccounts.ts +111 -112
  257. package/src/operations/encryptionScopes.ts +233 -291
  258. package/src/operations/fileServices.ts +99 -171
  259. package/src/operations/fileShares.ts +335 -560
  260. package/src/operations/index.ts +1 -2
  261. package/src/operations/managementPolicies.ts +102 -175
  262. package/src/operations/objectReplicationPoliciesOperations.ts +187 -227
  263. package/src/operations/operations.ts +61 -38
  264. package/src/operations/privateEndpointConnections.ts +177 -214
  265. package/src/operations/privateLinkResources.ts +37 -60
  266. package/src/operations/queue.ts +269 -365
  267. package/src/operations/queueServices.ts +103 -173
  268. package/src/operations/skus.ts +59 -41
  269. package/src/operations/storageAccounts.ts +779 -872
  270. package/src/operations/tableOperations.ts +255 -328
  271. package/src/operations/tableServices.ts +103 -173
  272. package/src/operations/usages.ts +73 -45
  273. package/src/operationsInterfaces/blobContainers.ts +366 -0
  274. package/src/operationsInterfaces/blobInventoryPolicies.ts +92 -0
  275. package/src/operationsInterfaces/blobServices.ts +70 -0
  276. package/src/operationsInterfaces/deletedAccounts.ts +39 -0
  277. package/src/operationsInterfaces/encryptionScopes.ts +103 -0
  278. package/src/operationsInterfaces/fileServices.ts +68 -0
  279. package/src/operationsInterfaces/fileShares.ts +163 -0
  280. package/src/operationsInterfaces/index.ts +27 -0
  281. package/src/operationsInterfaces/managementPolicies.ts +74 -0
  282. package/src/operationsInterfaces/objectReplicationPoliciesOperations.ts +98 -0
  283. package/src/operationsInterfaces/operations.ts +23 -0
  284. package/src/operationsInterfaces/privateEndpointConnections.ts +91 -0
  285. package/src/operationsInterfaces/privateLinkResources.ts +30 -0
  286. package/src/operationsInterfaces/queue.ts +117 -0
  287. package/src/operationsInterfaces/queueServices.ts +68 -0
  288. package/src/operationsInterfaces/skus.ts +23 -0
  289. package/src/operationsInterfaces/storageAccounts.ts +320 -0
  290. package/src/operationsInterfaces/tableOperations.ts +112 -0
  291. package/src/operationsInterfaces/tableServices.ts +68 -0
  292. package/src/operationsInterfaces/usages.ts +25 -0
  293. package/src/storageManagementClient.ts +94 -67
  294. package/src/storageManagementClientContext.ts +42 -46
  295. package/tsconfig.json +2 -1
  296. package/dist/arm-storage.js +0 -10687
  297. package/dist/arm-storage.js.map +0 -1
  298. package/dist/arm-storage.min.js +0 -1
  299. package/dist/arm-storage.min.js.map +0 -1
  300. package/esm/models/blobContainersMappers.d.ts +0 -2
  301. package/esm/models/blobContainersMappers.d.ts.map +0 -1
  302. package/esm/models/blobContainersMappers.js +0 -9
  303. package/esm/models/blobContainersMappers.js.map +0 -1
  304. package/esm/models/blobInventoryPoliciesMappers.d.ts +0 -2
  305. package/esm/models/blobInventoryPoliciesMappers.d.ts.map +0 -1
  306. package/esm/models/blobInventoryPoliciesMappers.js +0 -9
  307. package/esm/models/blobInventoryPoliciesMappers.js.map +0 -1
  308. package/esm/models/blobServicesMappers.d.ts +0 -2
  309. package/esm/models/blobServicesMappers.d.ts.map +0 -1
  310. package/esm/models/blobServicesMappers.js +0 -9
  311. package/esm/models/blobServicesMappers.js.map +0 -1
  312. package/esm/models/deletedAccountsMappers.d.ts +0 -2
  313. package/esm/models/deletedAccountsMappers.d.ts.map +0 -1
  314. package/esm/models/deletedAccountsMappers.js +0 -9
  315. package/esm/models/deletedAccountsMappers.js.map +0 -1
  316. package/esm/models/encryptionScopesMappers.d.ts +0 -2
  317. package/esm/models/encryptionScopesMappers.d.ts.map +0 -1
  318. package/esm/models/encryptionScopesMappers.js +0 -9
  319. package/esm/models/encryptionScopesMappers.js.map +0 -1
  320. package/esm/models/fileServicesMappers.d.ts +0 -2
  321. package/esm/models/fileServicesMappers.d.ts.map +0 -1
  322. package/esm/models/fileServicesMappers.js +0 -9
  323. package/esm/models/fileServicesMappers.js.map +0 -1
  324. package/esm/models/fileSharesMappers.d.ts +0 -2
  325. package/esm/models/fileSharesMappers.d.ts.map +0 -1
  326. package/esm/models/fileSharesMappers.js +0 -9
  327. package/esm/models/fileSharesMappers.js.map +0 -1
  328. package/esm/models/managementPoliciesMappers.d.ts +0 -2
  329. package/esm/models/managementPoliciesMappers.d.ts.map +0 -1
  330. package/esm/models/managementPoliciesMappers.js +0 -9
  331. package/esm/models/managementPoliciesMappers.js.map +0 -1
  332. package/esm/models/objectReplicationPoliciesOperationsMappers.d.ts +0 -2
  333. package/esm/models/objectReplicationPoliciesOperationsMappers.d.ts.map +0 -1
  334. package/esm/models/objectReplicationPoliciesOperationsMappers.js +0 -9
  335. package/esm/models/objectReplicationPoliciesOperationsMappers.js.map +0 -1
  336. package/esm/models/operationsMappers.d.ts +0 -2
  337. package/esm/models/operationsMappers.d.ts.map +0 -1
  338. package/esm/models/operationsMappers.js.map +0 -1
  339. package/esm/models/privateEndpointConnectionsMappers.d.ts +0 -2
  340. package/esm/models/privateEndpointConnectionsMappers.d.ts.map +0 -1
  341. package/esm/models/privateEndpointConnectionsMappers.js +0 -9
  342. package/esm/models/privateEndpointConnectionsMappers.js.map +0 -1
  343. package/esm/models/privateLinkResourcesMappers.d.ts +0 -2
  344. package/esm/models/privateLinkResourcesMappers.d.ts.map +0 -1
  345. package/esm/models/privateLinkResourcesMappers.js +0 -9
  346. package/esm/models/privateLinkResourcesMappers.js.map +0 -1
  347. package/esm/models/queueMappers.d.ts +0 -2
  348. package/esm/models/queueMappers.d.ts.map +0 -1
  349. package/esm/models/queueMappers.js +0 -9
  350. package/esm/models/queueMappers.js.map +0 -1
  351. package/esm/models/queueServicesMappers.d.ts +0 -2
  352. package/esm/models/queueServicesMappers.d.ts.map +0 -1
  353. package/esm/models/queueServicesMappers.js +0 -9
  354. package/esm/models/queueServicesMappers.js.map +0 -1
  355. package/esm/models/skusMappers.d.ts +0 -2
  356. package/esm/models/skusMappers.d.ts.map +0 -1
  357. package/esm/models/skusMappers.js.map +0 -1
  358. package/esm/models/storageAccountsMappers.d.ts +0 -2
  359. package/esm/models/storageAccountsMappers.d.ts.map +0 -1
  360. package/esm/models/storageAccountsMappers.js +0 -9
  361. package/esm/models/storageAccountsMappers.js.map +0 -1
  362. package/esm/models/tableOperationsMappers.d.ts +0 -2
  363. package/esm/models/tableOperationsMappers.d.ts.map +0 -1
  364. package/esm/models/tableOperationsMappers.js +0 -9
  365. package/esm/models/tableOperationsMappers.js.map +0 -1
  366. package/esm/models/tableServicesMappers.d.ts +0 -2
  367. package/esm/models/tableServicesMappers.d.ts.map +0 -1
  368. package/esm/models/tableServicesMappers.js +0 -9
  369. package/esm/models/tableServicesMappers.js.map +0 -1
  370. package/esm/models/usagesMappers.d.ts +0 -2
  371. package/esm/models/usagesMappers.d.ts.map +0 -1
  372. package/esm/models/usagesMappers.js.map +0 -1
  373. package/src/models/blobContainersMappers.ts +0 -106
  374. package/src/models/blobInventoryPoliciesMappers.ts +0 -99
  375. package/src/models/blobServicesMappers.ts +0 -98
  376. package/src/models/deletedAccountsMappers.ts +0 -99
  377. package/src/models/encryptionScopesMappers.ts +0 -100
  378. package/src/models/fileServicesMappers.ts +0 -98
  379. package/src/models/fileSharesMappers.ts +0 -99
  380. package/src/models/managementPoliciesMappers.ts +0 -97
  381. package/src/models/objectReplicationPoliciesOperationsMappers.ts +0 -99
  382. package/src/models/privateEndpointConnectionsMappers.ts +0 -100
  383. package/src/models/privateLinkResourcesMappers.ts +0 -98
  384. package/src/models/queueMappers.ts +0 -98
  385. package/src/models/queueServicesMappers.ts +0 -98
  386. package/src/models/storageAccountsMappers.ts +0 -109
  387. package/src/models/tableOperationsMappers.ts +0 -98
  388. package/src/models/tableServicesMappers.ts +0 -98
@@ -3,640 +3,744 @@
3
3
  * Licensed under the MIT License.
4
4
  *
5
5
  * Code generated by Microsoft (R) AutoRest Code Generator.
6
- * Changes may cause incorrect behavior and will be lost if the code is
7
- * regenerated.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
8
7
  */
9
- import { __assign } from "tslib";
10
- import * as msRest from "@azure/ms-rest-js";
11
- import * as Mappers from "../models/storageAccountsMappers";
8
+ import { __asyncDelegator, __asyncGenerator, __asyncValues, __await, __awaiter } from "tslib";
9
+ import "@azure/core-paging";
10
+ import * as coreClient from "@azure/core-client";
11
+ import * as Mappers from "../models/mappers";
12
12
  import * as Parameters from "../models/parameters";
13
+ import { LroEngine } from "../lro";
14
+ import { CoreClientLro } from "../coreClientLro";
15
+ /// <reference lib="esnext.asynciterable" />
13
16
  /** Class representing a StorageAccounts. */
14
- var StorageAccounts = /** @class */ (function () {
17
+ export class StorageAccountsImpl {
15
18
  /**
16
- * Create a StorageAccounts.
17
- * @param {StorageManagementClientContext} client Reference to the service client.
19
+ * Initialize a new instance of the class StorageAccounts class.
20
+ * @param client Reference to the service client
18
21
  */
19
- function StorageAccounts(client) {
22
+ constructor(client) {
20
23
  this.client = client;
21
24
  }
22
- StorageAccounts.prototype.checkNameAvailability = function (name, options, callback) {
23
- return this.client.sendOperationRequest({
24
- name: name,
25
- options: options
26
- }, checkNameAvailabilityOperationSpec, callback);
27
- };
28
25
  /**
29
- * Asynchronously creates a new storage account with the specified parameters. If an account is
30
- * already created and a subsequent create request is issued with different properties, the account
31
- * properties will be updated. If an account is already created and a subsequent create or update
32
- * request is issued with the exact same set of properties, the request will succeed.
33
- * @param resourceGroupName The name of the resource group within the user's subscription. The name
34
- * is case insensitive.
26
+ * Lists all the storage accounts available under the subscription. Note that storage keys are not
27
+ * returned; use the ListKeys operation for this.
28
+ * @param options The options parameters.
29
+ */
30
+ list(options) {
31
+ const iter = this.listPagingAll(options);
32
+ return {
33
+ next() {
34
+ return iter.next();
35
+ },
36
+ [Symbol.asyncIterator]() {
37
+ return this;
38
+ },
39
+ byPage: () => {
40
+ return this.listPagingPage(options);
41
+ }
42
+ };
43
+ }
44
+ listPagingPage(options) {
45
+ return __asyncGenerator(this, arguments, function* listPagingPage_1() {
46
+ let result = yield __await(this._list(options));
47
+ yield yield __await(result.value || []);
48
+ let continuationToken = result.nextLink;
49
+ while (continuationToken) {
50
+ result = yield __await(this._listNext(continuationToken, options));
51
+ continuationToken = result.nextLink;
52
+ yield yield __await(result.value || []);
53
+ }
54
+ });
55
+ }
56
+ listPagingAll(options) {
57
+ return __asyncGenerator(this, arguments, function* listPagingAll_1() {
58
+ var e_1, _a;
59
+ try {
60
+ for (var _b = __asyncValues(this.listPagingPage(options)), _c; _c = yield __await(_b.next()), !_c.done;) {
61
+ const page = _c.value;
62
+ yield __await(yield* __asyncDelegator(__asyncValues(page)));
63
+ }
64
+ }
65
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
66
+ finally {
67
+ try {
68
+ if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
69
+ }
70
+ finally { if (e_1) throw e_1.error; }
71
+ }
72
+ });
73
+ }
74
+ /**
75
+ * Lists all the storage accounts available under the given resource group. Note that storage keys are
76
+ * not returned; use the ListKeys operation for this.
77
+ * @param resourceGroupName The name of the resource group within the user's subscription. The name is
78
+ * case insensitive.
79
+ * @param options The options parameters.
80
+ */
81
+ listByResourceGroup(resourceGroupName, options) {
82
+ const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);
83
+ return {
84
+ next() {
85
+ return iter.next();
86
+ },
87
+ [Symbol.asyncIterator]() {
88
+ return this;
89
+ },
90
+ byPage: () => {
91
+ return this.listByResourceGroupPagingPage(resourceGroupName, options);
92
+ }
93
+ };
94
+ }
95
+ listByResourceGroupPagingPage(resourceGroupName, options) {
96
+ return __asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
97
+ let result = yield __await(this._listByResourceGroup(resourceGroupName, options));
98
+ yield yield __await(result.value || []);
99
+ let continuationToken = result.nextLink;
100
+ while (continuationToken) {
101
+ result = yield __await(this._listByResourceGroupNext(resourceGroupName, continuationToken, options));
102
+ continuationToken = result.nextLink;
103
+ yield yield __await(result.value || []);
104
+ }
105
+ });
106
+ }
107
+ listByResourceGroupPagingAll(resourceGroupName, options) {
108
+ return __asyncGenerator(this, arguments, function* listByResourceGroupPagingAll_1() {
109
+ var e_2, _a;
110
+ try {
111
+ for (var _b = __asyncValues(this.listByResourceGroupPagingPage(resourceGroupName, options)), _c; _c = yield __await(_b.next()), !_c.done;) {
112
+ const page = _c.value;
113
+ yield __await(yield* __asyncDelegator(__asyncValues(page)));
114
+ }
115
+ }
116
+ catch (e_2_1) { e_2 = { error: e_2_1 }; }
117
+ finally {
118
+ try {
119
+ if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
120
+ }
121
+ finally { if (e_2) throw e_2.error; }
122
+ }
123
+ });
124
+ }
125
+ /**
126
+ * Checks that the storage account name is valid and is not already in use.
127
+ * @param accountName The name of the storage account within the specified resource group. Storage
128
+ * account names must be between 3 and 24 characters in length and use numbers and lower-case letters
129
+ * only.
130
+ * @param options The options parameters.
131
+ */
132
+ checkNameAvailability(accountName, options) {
133
+ return this.client.sendOperationRequest({ accountName, options }, checkNameAvailabilityOperationSpec);
134
+ }
135
+ /**
136
+ * Asynchronously creates a new storage account with the specified parameters. If an account is already
137
+ * created and a subsequent create request is issued with different properties, the account properties
138
+ * will be updated. If an account is already created and a subsequent create or update request is
139
+ * issued with the exact same set of properties, the request will succeed.
140
+ * @param resourceGroupName The name of the resource group within the user's subscription. The name is
141
+ * case insensitive.
35
142
  * @param accountName The name of the storage account within the specified resource group. Storage
36
- * account names must be between 3 and 24 characters in length and use numbers and lower-case
37
- * letters only.
143
+ * account names must be between 3 and 24 characters in length and use numbers and lower-case letters
144
+ * only.
38
145
  * @param parameters The parameters to provide for the created account.
39
- * @param [options] The optional parameters
40
- * @returns Promise<Models.StorageAccountsCreateResponse>
146
+ * @param options The options parameters.
41
147
  */
42
- StorageAccounts.prototype.create = function (resourceGroupName, accountName, parameters, options) {
43
- return this.beginCreate(resourceGroupName, accountName, parameters, options)
44
- .then(function (lroPoller) { return lroPoller.pollUntilFinished(); });
45
- };
46
- StorageAccounts.prototype.deleteMethod = function (resourceGroupName, accountName, options, callback) {
47
- return this.client.sendOperationRequest({
48
- resourceGroupName: resourceGroupName,
49
- accountName: accountName,
50
- options: options
51
- }, deleteMethodOperationSpec, callback);
52
- };
53
- StorageAccounts.prototype.getProperties = function (resourceGroupName, accountName, options, callback) {
54
- return this.client.sendOperationRequest({
55
- resourceGroupName: resourceGroupName,
56
- accountName: accountName,
57
- options: options
58
- }, getPropertiesOperationSpec, callback);
59
- };
60
- StorageAccounts.prototype.update = function (resourceGroupName, accountName, parameters, options, callback) {
61
- return this.client.sendOperationRequest({
62
- resourceGroupName: resourceGroupName,
63
- accountName: accountName,
64
- parameters: parameters,
65
- options: options
66
- }, updateOperationSpec, callback);
67
- };
68
- StorageAccounts.prototype.list = function (options, callback) {
69
- return this.client.sendOperationRequest({
70
- options: options
71
- }, listOperationSpec, callback);
72
- };
73
- StorageAccounts.prototype.listByResourceGroup = function (resourceGroupName, options, callback) {
74
- return this.client.sendOperationRequest({
75
- resourceGroupName: resourceGroupName,
76
- options: options
77
- }, listByResourceGroupOperationSpec, callback);
78
- };
79
- StorageAccounts.prototype.listKeys = function (resourceGroupName, accountName, options, callback) {
80
- return this.client.sendOperationRequest({
81
- resourceGroupName: resourceGroupName,
82
- accountName: accountName,
83
- options: options
84
- }, listKeysOperationSpec, callback);
85
- };
86
- StorageAccounts.prototype.regenerateKey = function (resourceGroupName, accountName, keyName, options, callback) {
87
- return this.client.sendOperationRequest({
88
- resourceGroupName: resourceGroupName,
89
- accountName: accountName,
90
- keyName: keyName,
91
- options: options
92
- }, regenerateKeyOperationSpec, callback);
93
- };
94
- StorageAccounts.prototype.listAccountSAS = function (resourceGroupName, accountName, parameters, options, callback) {
95
- return this.client.sendOperationRequest({
96
- resourceGroupName: resourceGroupName,
97
- accountName: accountName,
98
- parameters: parameters,
99
- options: options
100
- }, listAccountSASOperationSpec, callback);
101
- };
102
- StorageAccounts.prototype.listServiceSAS = function (resourceGroupName, accountName, parameters, options, callback) {
103
- return this.client.sendOperationRequest({
104
- resourceGroupName: resourceGroupName,
105
- accountName: accountName,
106
- parameters: parameters,
107
- options: options
108
- }, listServiceSASOperationSpec, callback);
109
- };
148
+ beginCreate(resourceGroupName, accountName, parameters, options) {
149
+ return __awaiter(this, void 0, void 0, function* () {
150
+ const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
151
+ return this.client.sendOperationRequest(args, spec);
152
+ });
153
+ const sendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
154
+ var _a;
155
+ let currentRawResponse = undefined;
156
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
157
+ const callback = (rawResponse, flatResponse) => {
158
+ currentRawResponse = rawResponse;
159
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
160
+ };
161
+ const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
162
+ const flatResponse = yield directSendOperation(updatedArgs, spec);
163
+ return {
164
+ flatResponse,
165
+ rawResponse: {
166
+ statusCode: currentRawResponse.status,
167
+ body: currentRawResponse.parsedBody,
168
+ headers: currentRawResponse.headers.toJSON()
169
+ }
170
+ };
171
+ });
172
+ const lro = new CoreClientLro(sendOperation, { resourceGroupName, accountName, parameters, options }, createOperationSpec);
173
+ return new LroEngine(lro, { intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs });
174
+ });
175
+ }
110
176
  /**
111
- * Failover request can be triggered for a storage account in case of availability issues. The
112
- * failover occurs from the storage account's primary cluster to secondary cluster for RA-GRS
113
- * accounts. The secondary cluster will become primary after failover.
114
- * @param resourceGroupName The name of the resource group within the user's subscription. The name
115
- * is case insensitive.
177
+ * Asynchronously creates a new storage account with the specified parameters. If an account is already
178
+ * created and a subsequent create request is issued with different properties, the account properties
179
+ * will be updated. If an account is already created and a subsequent create or update request is
180
+ * issued with the exact same set of properties, the request will succeed.
181
+ * @param resourceGroupName The name of the resource group within the user's subscription. The name is
182
+ * case insensitive.
116
183
  * @param accountName The name of the storage account within the specified resource group. Storage
117
- * account names must be between 3 and 24 characters in length and use numbers and lower-case
118
- * letters only.
119
- * @param [options] The optional parameters
120
- * @returns Promise<msRest.RestResponse>
184
+ * account names must be between 3 and 24 characters in length and use numbers and lower-case letters
185
+ * only.
186
+ * @param parameters The parameters to provide for the created account.
187
+ * @param options The options parameters.
121
188
  */
122
- StorageAccounts.prototype.failover = function (resourceGroupName, accountName, options) {
123
- return this.beginFailover(resourceGroupName, accountName, options)
124
- .then(function (lroPoller) { return lroPoller.pollUntilFinished(); });
125
- };
189
+ beginCreateAndWait(resourceGroupName, accountName, parameters, options) {
190
+ return __awaiter(this, void 0, void 0, function* () {
191
+ const poller = yield this.beginCreate(resourceGroupName, accountName, parameters, options);
192
+ return poller.pollUntilDone();
193
+ });
194
+ }
126
195
  /**
127
- * Restore blobs in the specified blob ranges
128
- * @param resourceGroupName The name of the resource group within the user's subscription. The name
129
- * is case insensitive.
196
+ * Deletes a storage account in Microsoft Azure.
197
+ * @param resourceGroupName The name of the resource group within the user's subscription. The name is
198
+ * case insensitive.
130
199
  * @param accountName The name of the storage account within the specified resource group. Storage
131
- * account names must be between 3 and 24 characters in length and use numbers and lower-case
132
- * letters only.
133
- * @param timeToRestore Restore blob to the specified time.
134
- * @param blobRanges Blob ranges to restore.
135
- * @param [options] The optional parameters
136
- * @returns Promise<Models.StorageAccountsRestoreBlobRangesResponse>
200
+ * account names must be between 3 and 24 characters in length and use numbers and lower-case letters
201
+ * only.
202
+ * @param options The options parameters.
137
203
  */
138
- StorageAccounts.prototype.restoreBlobRanges = function (resourceGroupName, accountName, timeToRestore, blobRanges, options) {
139
- return this.beginRestoreBlobRanges(resourceGroupName, accountName, timeToRestore, blobRanges, options)
140
- .then(function (lroPoller) { return lroPoller.pollUntilFinished(); });
141
- };
142
- StorageAccounts.prototype.revokeUserDelegationKeys = function (resourceGroupName, accountName, options, callback) {
143
- return this.client.sendOperationRequest({
144
- resourceGroupName: resourceGroupName,
145
- accountName: accountName,
146
- options: options
147
- }, revokeUserDelegationKeysOperationSpec, callback);
148
- };
204
+ delete(resourceGroupName, accountName, options) {
205
+ return this.client.sendOperationRequest({ resourceGroupName, accountName, options }, deleteOperationSpec);
206
+ }
149
207
  /**
150
- * Asynchronously creates a new storage account with the specified parameters. If an account is
151
- * already created and a subsequent create request is issued with different properties, the account
152
- * properties will be updated. If an account is already created and a subsequent create or update
153
- * request is issued with the exact same set of properties, the request will succeed.
154
- * @param resourceGroupName The name of the resource group within the user's subscription. The name
155
- * is case insensitive.
208
+ * Returns the properties for the specified storage account including but not limited to name, SKU
209
+ * name, location, and account status. The ListKeys operation should be used to retrieve storage keys.
210
+ * @param resourceGroupName The name of the resource group within the user's subscription. The name is
211
+ * case insensitive.
156
212
  * @param accountName The name of the storage account within the specified resource group. Storage
157
- * account names must be between 3 and 24 characters in length and use numbers and lower-case
158
- * letters only.
159
- * @param parameters The parameters to provide for the created account.
160
- * @param [options] The optional parameters
161
- * @returns Promise<msRestAzure.LROPoller>
213
+ * account names must be between 3 and 24 characters in length and use numbers and lower-case letters
214
+ * only.
215
+ * @param options The options parameters.
162
216
  */
163
- StorageAccounts.prototype.beginCreate = function (resourceGroupName, accountName, parameters, options) {
164
- return this.client.sendLRORequest({
165
- resourceGroupName: resourceGroupName,
166
- accountName: accountName,
167
- parameters: parameters,
168
- options: options
169
- }, beginCreateOperationSpec, options);
170
- };
217
+ getProperties(resourceGroupName, accountName, options) {
218
+ return this.client.sendOperationRequest({ resourceGroupName, accountName, options }, getPropertiesOperationSpec);
219
+ }
171
220
  /**
172
- * Failover request can be triggered for a storage account in case of availability issues. The
173
- * failover occurs from the storage account's primary cluster to secondary cluster for RA-GRS
174
- * accounts. The secondary cluster will become primary after failover.
175
- * @param resourceGroupName The name of the resource group within the user's subscription. The name
176
- * is case insensitive.
221
+ * The update operation can be used to update the SKU, encryption, access tier, or tags for a storage
222
+ * account. It can also be used to map the account to a custom domain. Only one custom domain is
223
+ * supported per storage account; the replacement/change of custom domain is not supported. In order to
224
+ * replace an old custom domain, the old value must be cleared/unregistered before a new value can be
225
+ * set. The update of multiple properties is supported. This call does not change the storage keys for
226
+ * the account. If you want to change the storage account keys, use the regenerate keys operation. The
227
+ * location and name of the storage account cannot be changed after creation.
228
+ * @param resourceGroupName The name of the resource group within the user's subscription. The name is
229
+ * case insensitive.
177
230
  * @param accountName The name of the storage account within the specified resource group. Storage
178
- * account names must be between 3 and 24 characters in length and use numbers and lower-case
179
- * letters only.
180
- * @param [options] The optional parameters
181
- * @returns Promise<msRestAzure.LROPoller>
231
+ * account names must be between 3 and 24 characters in length and use numbers and lower-case letters
232
+ * only.
233
+ * @param parameters The parameters to provide for the updated account.
234
+ * @param options The options parameters.
182
235
  */
183
- StorageAccounts.prototype.beginFailover = function (resourceGroupName, accountName, options) {
184
- return this.client.sendLRORequest({
185
- resourceGroupName: resourceGroupName,
186
- accountName: accountName,
187
- options: options
188
- }, beginFailoverOperationSpec, options);
189
- };
236
+ update(resourceGroupName, accountName, parameters, options) {
237
+ return this.client.sendOperationRequest({ resourceGroupName, accountName, parameters, options }, updateOperationSpec);
238
+ }
239
+ /**
240
+ * Lists all the storage accounts available under the subscription. Note that storage keys are not
241
+ * returned; use the ListKeys operation for this.
242
+ * @param options The options parameters.
243
+ */
244
+ _list(options) {
245
+ return this.client.sendOperationRequest({ options }, listOperationSpec);
246
+ }
247
+ /**
248
+ * Lists all the storage accounts available under the given resource group. Note that storage keys are
249
+ * not returned; use the ListKeys operation for this.
250
+ * @param resourceGroupName The name of the resource group within the user's subscription. The name is
251
+ * case insensitive.
252
+ * @param options The options parameters.
253
+ */
254
+ _listByResourceGroup(resourceGroupName, options) {
255
+ return this.client.sendOperationRequest({ resourceGroupName, options }, listByResourceGroupOperationSpec);
256
+ }
257
+ /**
258
+ * Lists the access keys or Kerberos keys (if active directory enabled) for the specified storage
259
+ * account.
260
+ * @param resourceGroupName The name of the resource group within the user's subscription. The name is
261
+ * case insensitive.
262
+ * @param accountName The name of the storage account within the specified resource group. Storage
263
+ * account names must be between 3 and 24 characters in length and use numbers and lower-case letters
264
+ * only.
265
+ * @param options The options parameters.
266
+ */
267
+ listKeys(resourceGroupName, accountName, options) {
268
+ return this.client.sendOperationRequest({ resourceGroupName, accountName, options }, listKeysOperationSpec);
269
+ }
270
+ /**
271
+ * Regenerates one of the access keys or Kerberos keys for the specified storage account.
272
+ * @param resourceGroupName The name of the resource group within the user's subscription. The name is
273
+ * case insensitive.
274
+ * @param accountName The name of the storage account within the specified resource group. Storage
275
+ * account names must be between 3 and 24 characters in length and use numbers and lower-case letters
276
+ * only.
277
+ * @param regenerateKey Specifies name of the key which should be regenerated -- key1, key2, kerb1,
278
+ * kerb2.
279
+ * @param options The options parameters.
280
+ */
281
+ regenerateKey(resourceGroupName, accountName, regenerateKey, options) {
282
+ return this.client.sendOperationRequest({ resourceGroupName, accountName, regenerateKey, options }, regenerateKeyOperationSpec);
283
+ }
284
+ /**
285
+ * List SAS credentials of a storage account.
286
+ * @param resourceGroupName The name of the resource group within the user's subscription. The name is
287
+ * case insensitive.
288
+ * @param accountName The name of the storage account within the specified resource group. Storage
289
+ * account names must be between 3 and 24 characters in length and use numbers and lower-case letters
290
+ * only.
291
+ * @param parameters The parameters to provide to list SAS credentials for the storage account.
292
+ * @param options The options parameters.
293
+ */
294
+ listAccountSAS(resourceGroupName, accountName, parameters, options) {
295
+ return this.client.sendOperationRequest({ resourceGroupName, accountName, parameters, options }, listAccountSASOperationSpec);
296
+ }
297
+ /**
298
+ * List service SAS credentials of a specific resource.
299
+ * @param resourceGroupName The name of the resource group within the user's subscription. The name is
300
+ * case insensitive.
301
+ * @param accountName The name of the storage account within the specified resource group. Storage
302
+ * account names must be between 3 and 24 characters in length and use numbers and lower-case letters
303
+ * only.
304
+ * @param parameters The parameters to provide to list service SAS credentials.
305
+ * @param options The options parameters.
306
+ */
307
+ listServiceSAS(resourceGroupName, accountName, parameters, options) {
308
+ return this.client.sendOperationRequest({ resourceGroupName, accountName, parameters, options }, listServiceSASOperationSpec);
309
+ }
310
+ /**
311
+ * Failover request can be triggered for a storage account in case of availability issues. The failover
312
+ * occurs from the storage account's primary cluster to secondary cluster for RA-GRS accounts. The
313
+ * secondary cluster will become primary after failover.
314
+ * @param resourceGroupName The name of the resource group within the user's subscription. The name is
315
+ * case insensitive.
316
+ * @param accountName The name of the storage account within the specified resource group. Storage
317
+ * account names must be between 3 and 24 characters in length and use numbers and lower-case letters
318
+ * only.
319
+ * @param options The options parameters.
320
+ */
321
+ beginFailover(resourceGroupName, accountName, options) {
322
+ return __awaiter(this, void 0, void 0, function* () {
323
+ const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
324
+ return this.client.sendOperationRequest(args, spec);
325
+ });
326
+ const sendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
327
+ var _a;
328
+ let currentRawResponse = undefined;
329
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
330
+ const callback = (rawResponse, flatResponse) => {
331
+ currentRawResponse = rawResponse;
332
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
333
+ };
334
+ const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
335
+ const flatResponse = yield directSendOperation(updatedArgs, spec);
336
+ return {
337
+ flatResponse,
338
+ rawResponse: {
339
+ statusCode: currentRawResponse.status,
340
+ body: currentRawResponse.parsedBody,
341
+ headers: currentRawResponse.headers.toJSON()
342
+ }
343
+ };
344
+ });
345
+ const lro = new CoreClientLro(sendOperation, { resourceGroupName, accountName, options }, failoverOperationSpec, "location");
346
+ return new LroEngine(lro, { intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs });
347
+ });
348
+ }
349
+ /**
350
+ * Failover request can be triggered for a storage account in case of availability issues. The failover
351
+ * occurs from the storage account's primary cluster to secondary cluster for RA-GRS accounts. The
352
+ * secondary cluster will become primary after failover.
353
+ * @param resourceGroupName The name of the resource group within the user's subscription. The name is
354
+ * case insensitive.
355
+ * @param accountName The name of the storage account within the specified resource group. Storage
356
+ * account names must be between 3 and 24 characters in length and use numbers and lower-case letters
357
+ * only.
358
+ * @param options The options parameters.
359
+ */
360
+ beginFailoverAndWait(resourceGroupName, accountName, options) {
361
+ return __awaiter(this, void 0, void 0, function* () {
362
+ const poller = yield this.beginFailover(resourceGroupName, accountName, options);
363
+ return poller.pollUntilDone();
364
+ });
365
+ }
190
366
  /**
191
367
  * Restore blobs in the specified blob ranges
192
- * @param resourceGroupName The name of the resource group within the user's subscription. The name
193
- * is case insensitive.
368
+ * @param resourceGroupName The name of the resource group within the user's subscription. The name is
369
+ * case insensitive.
194
370
  * @param accountName The name of the storage account within the specified resource group. Storage
195
- * account names must be between 3 and 24 characters in length and use numbers and lower-case
196
- * letters only.
197
- * @param timeToRestore Restore blob to the specified time.
198
- * @param blobRanges Blob ranges to restore.
199
- * @param [options] The optional parameters
200
- * @returns Promise<msRestAzure.LROPoller>
371
+ * account names must be between 3 and 24 characters in length and use numbers and lower-case letters
372
+ * only.
373
+ * @param parameters The parameters to provide for restore blob ranges.
374
+ * @param options The options parameters.
201
375
  */
202
- StorageAccounts.prototype.beginRestoreBlobRanges = function (resourceGroupName, accountName, timeToRestore, blobRanges, options) {
203
- return this.client.sendLRORequest({
204
- resourceGroupName: resourceGroupName,
205
- accountName: accountName,
206
- timeToRestore: timeToRestore,
207
- blobRanges: blobRanges,
208
- options: options
209
- }, beginRestoreBlobRangesOperationSpec, options);
210
- };
211
- StorageAccounts.prototype.listNext = function (nextPageLink, options, callback) {
212
- return this.client.sendOperationRequest({
213
- nextPageLink: nextPageLink,
214
- options: options
215
- }, listNextOperationSpec, callback);
216
- };
217
- StorageAccounts.prototype.listByResourceGroupNext = function (nextPageLink, options, callback) {
218
- return this.client.sendOperationRequest({
219
- nextPageLink: nextPageLink,
220
- options: options
221
- }, listByResourceGroupNextOperationSpec, callback);
222
- };
223
- return StorageAccounts;
224
- }());
225
- export { StorageAccounts };
376
+ beginRestoreBlobRanges(resourceGroupName, accountName, parameters, options) {
377
+ return __awaiter(this, void 0, void 0, function* () {
378
+ const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
379
+ return this.client.sendOperationRequest(args, spec);
380
+ });
381
+ const sendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
382
+ var _a;
383
+ let currentRawResponse = undefined;
384
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
385
+ const callback = (rawResponse, flatResponse) => {
386
+ currentRawResponse = rawResponse;
387
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
388
+ };
389
+ const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
390
+ const flatResponse = yield directSendOperation(updatedArgs, spec);
391
+ return {
392
+ flatResponse,
393
+ rawResponse: {
394
+ statusCode: currentRawResponse.status,
395
+ body: currentRawResponse.parsedBody,
396
+ headers: currentRawResponse.headers.toJSON()
397
+ }
398
+ };
399
+ });
400
+ const lro = new CoreClientLro(sendOperation, { resourceGroupName, accountName, parameters, options }, restoreBlobRangesOperationSpec, "location");
401
+ return new LroEngine(lro, { intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs });
402
+ });
403
+ }
404
+ /**
405
+ * Restore blobs in the specified blob ranges
406
+ * @param resourceGroupName The name of the resource group within the user's subscription. The name is
407
+ * case insensitive.
408
+ * @param accountName The name of the storage account within the specified resource group. Storage
409
+ * account names must be between 3 and 24 characters in length and use numbers and lower-case letters
410
+ * only.
411
+ * @param parameters The parameters to provide for restore blob ranges.
412
+ * @param options The options parameters.
413
+ */
414
+ beginRestoreBlobRangesAndWait(resourceGroupName, accountName, parameters, options) {
415
+ return __awaiter(this, void 0, void 0, function* () {
416
+ const poller = yield this.beginRestoreBlobRanges(resourceGroupName, accountName, parameters, options);
417
+ return poller.pollUntilDone();
418
+ });
419
+ }
420
+ /**
421
+ * Revoke user delegation keys.
422
+ * @param resourceGroupName The name of the resource group within the user's subscription. The name is
423
+ * case insensitive.
424
+ * @param accountName The name of the storage account within the specified resource group. Storage
425
+ * account names must be between 3 and 24 characters in length and use numbers and lower-case letters
426
+ * only.
427
+ * @param options The options parameters.
428
+ */
429
+ revokeUserDelegationKeys(resourceGroupName, accountName, options) {
430
+ return this.client.sendOperationRequest({ resourceGroupName, accountName, options }, revokeUserDelegationKeysOperationSpec);
431
+ }
432
+ /**
433
+ * ListNext
434
+ * @param nextLink The nextLink from the previous successful call to the List method.
435
+ * @param options The options parameters.
436
+ */
437
+ _listNext(nextLink, options) {
438
+ return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec);
439
+ }
440
+ /**
441
+ * ListByResourceGroupNext
442
+ * @param resourceGroupName The name of the resource group within the user's subscription. The name is
443
+ * case insensitive.
444
+ * @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.
445
+ * @param options The options parameters.
446
+ */
447
+ _listByResourceGroupNext(resourceGroupName, nextLink, options) {
448
+ return this.client.sendOperationRequest({ resourceGroupName, nextLink, options }, listByResourceGroupNextOperationSpec);
449
+ }
450
+ }
226
451
  // Operation Specifications
227
- var serializer = new msRest.Serializer(Mappers);
228
- var checkNameAvailabilityOperationSpec = {
452
+ const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
453
+ const checkNameAvailabilityOperationSpec = {
454
+ path: "/subscriptions/{subscriptionId}/providers/Microsoft.Storage/checkNameAvailability",
229
455
  httpMethod: "POST",
230
- path: "subscriptions/{subscriptionId}/providers/Microsoft.Storage/checkNameAvailability",
231
- urlParameters: [
232
- Parameters.subscriptionId
233
- ],
234
- queryParameters: [
235
- Parameters.apiVersion
236
- ],
237
- headerParameters: [
238
- Parameters.acceptLanguage
239
- ],
240
- requestBody: {
241
- parameterPath: {
242
- name: "name"
243
- },
244
- mapper: __assign(__assign({}, Mappers.StorageAccountCheckNameAvailabilityParameters), { required: true })
245
- },
246
456
  responses: {
247
457
  200: {
248
458
  bodyMapper: Mappers.CheckNameAvailabilityResult
249
- },
250
- default: {
251
- bodyMapper: Mappers.CloudError
252
459
  }
253
460
  },
254
- serializer: serializer
461
+ requestBody: Parameters.accountName,
462
+ queryParameters: [Parameters.apiVersion],
463
+ urlParameters: [Parameters.$host, Parameters.subscriptionId],
464
+ headerParameters: [Parameters.accept, Parameters.contentType],
465
+ mediaType: "json",
466
+ serializer
255
467
  };
256
- var deleteMethodOperationSpec = {
257
- httpMethod: "DELETE",
258
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}",
259
- urlParameters: [
260
- Parameters.resourceGroupName,
261
- Parameters.accountName,
262
- Parameters.subscriptionId
263
- ],
264
- queryParameters: [
265
- Parameters.apiVersion
266
- ],
267
- headerParameters: [
268
- Parameters.acceptLanguage
269
- ],
468
+ const createOperationSpec = {
469
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}",
470
+ httpMethod: "PUT",
270
471
  responses: {
271
- 200: {},
272
- 204: {},
273
- default: {
274
- bodyMapper: Mappers.CloudError
472
+ 200: {
473
+ bodyMapper: Mappers.StorageAccount
474
+ },
475
+ 201: {
476
+ bodyMapper: Mappers.StorageAccount
477
+ },
478
+ 202: {
479
+ bodyMapper: Mappers.StorageAccount
480
+ },
481
+ 204: {
482
+ bodyMapper: Mappers.StorageAccount
275
483
  }
276
484
  },
277
- serializer: serializer
278
- };
279
- var getPropertiesOperationSpec = {
280
- httpMethod: "GET",
281
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}",
485
+ requestBody: Parameters.parameters,
486
+ queryParameters: [Parameters.apiVersion],
282
487
  urlParameters: [
488
+ Parameters.$host,
489
+ Parameters.subscriptionId,
283
490
  Parameters.resourceGroupName,
284
- Parameters.accountName,
285
- Parameters.subscriptionId
491
+ Parameters.accountName1
286
492
  ],
287
- queryParameters: [
288
- Parameters.apiVersion,
289
- Parameters.expand0
290
- ],
291
- headerParameters: [
292
- Parameters.acceptLanguage
493
+ headerParameters: [Parameters.accept, Parameters.contentType],
494
+ mediaType: "json",
495
+ serializer
496
+ };
497
+ const deleteOperationSpec = {
498
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}",
499
+ httpMethod: "DELETE",
500
+ responses: { 200: {}, 204: {} },
501
+ queryParameters: [Parameters.apiVersion],
502
+ urlParameters: [
503
+ Parameters.$host,
504
+ Parameters.subscriptionId,
505
+ Parameters.resourceGroupName,
506
+ Parameters.accountName1
293
507
  ],
508
+ serializer
509
+ };
510
+ const getPropertiesOperationSpec = {
511
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}",
512
+ httpMethod: "GET",
294
513
  responses: {
295
514
  200: {
296
515
  bodyMapper: Mappers.StorageAccount
297
- },
298
- default: {
299
- bodyMapper: Mappers.CloudError
300
516
  }
301
517
  },
302
- serializer: serializer
303
- };
304
- var updateOperationSpec = {
305
- httpMethod: "PATCH",
306
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}",
518
+ queryParameters: [Parameters.apiVersion, Parameters.expand],
307
519
  urlParameters: [
520
+ Parameters.$host,
521
+ Parameters.subscriptionId,
308
522
  Parameters.resourceGroupName,
309
- Parameters.accountName,
310
- Parameters.subscriptionId
523
+ Parameters.accountName1
311
524
  ],
312
- queryParameters: [
313
- Parameters.apiVersion
314
- ],
315
- headerParameters: [
316
- Parameters.acceptLanguage
317
- ],
318
- requestBody: {
319
- parameterPath: "parameters",
320
- mapper: __assign(__assign({}, Mappers.StorageAccountUpdateParameters), { required: true })
321
- },
525
+ headerParameters: [Parameters.accept],
526
+ serializer
527
+ };
528
+ const updateOperationSpec = {
529
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}",
530
+ httpMethod: "PATCH",
322
531
  responses: {
323
532
  200: {
324
533
  bodyMapper: Mappers.StorageAccount
325
- },
326
- default: {
327
- bodyMapper: Mappers.CloudError
328
534
  }
329
535
  },
330
- serializer: serializer
331
- };
332
- var listOperationSpec = {
333
- httpMethod: "GET",
334
- path: "subscriptions/{subscriptionId}/providers/Microsoft.Storage/storageAccounts",
536
+ requestBody: Parameters.parameters1,
537
+ queryParameters: [Parameters.apiVersion],
335
538
  urlParameters: [
336
- Parameters.subscriptionId
337
- ],
338
- queryParameters: [
339
- Parameters.apiVersion
340
- ],
341
- headerParameters: [
342
- Parameters.acceptLanguage
539
+ Parameters.$host,
540
+ Parameters.subscriptionId,
541
+ Parameters.resourceGroupName,
542
+ Parameters.accountName1
343
543
  ],
544
+ headerParameters: [Parameters.accept, Parameters.contentType],
545
+ mediaType: "json",
546
+ serializer
547
+ };
548
+ const listOperationSpec = {
549
+ path: "/subscriptions/{subscriptionId}/providers/Microsoft.Storage/storageAccounts",
550
+ httpMethod: "GET",
344
551
  responses: {
345
552
  200: {
346
553
  bodyMapper: Mappers.StorageAccountListResult
347
- },
348
- default: {
349
- bodyMapper: Mappers.CloudError
350
554
  }
351
555
  },
352
- serializer: serializer
556
+ queryParameters: [Parameters.apiVersion],
557
+ urlParameters: [Parameters.$host, Parameters.subscriptionId],
558
+ headerParameters: [Parameters.accept],
559
+ serializer
353
560
  };
354
- var listByResourceGroupOperationSpec = {
561
+ const listByResourceGroupOperationSpec = {
562
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts",
355
563
  httpMethod: "GET",
356
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts",
357
- urlParameters: [
358
- Parameters.resourceGroupName,
359
- Parameters.subscriptionId
360
- ],
361
- queryParameters: [
362
- Parameters.apiVersion
363
- ],
364
- headerParameters: [
365
- Parameters.acceptLanguage
366
- ],
367
564
  responses: {
368
565
  200: {
369
566
  bodyMapper: Mappers.StorageAccountListResult
370
- },
371
- default: {
372
- bodyMapper: Mappers.CloudError
373
567
  }
374
568
  },
375
- serializer: serializer
376
- };
377
- var listKeysOperationSpec = {
378
- httpMethod: "POST",
379
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/listKeys",
569
+ queryParameters: [Parameters.apiVersion],
380
570
  urlParameters: [
381
- Parameters.resourceGroupName,
382
- Parameters.accountName,
383
- Parameters.subscriptionId
384
- ],
385
- queryParameters: [
386
- Parameters.apiVersion,
387
- Parameters.expand1
388
- ],
389
- headerParameters: [
390
- Parameters.acceptLanguage
571
+ Parameters.$host,
572
+ Parameters.subscriptionId,
573
+ Parameters.resourceGroupName
391
574
  ],
575
+ headerParameters: [Parameters.accept],
576
+ serializer
577
+ };
578
+ const listKeysOperationSpec = {
579
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/listKeys",
580
+ httpMethod: "POST",
392
581
  responses: {
393
582
  200: {
394
583
  bodyMapper: Mappers.StorageAccountListKeysResult
395
- },
396
- default: {
397
- bodyMapper: Mappers.CloudError
398
584
  }
399
585
  },
400
- serializer: serializer
401
- };
402
- var regenerateKeyOperationSpec = {
403
- httpMethod: "POST",
404
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/regenerateKey",
586
+ queryParameters: [Parameters.apiVersion, Parameters.expand1],
405
587
  urlParameters: [
588
+ Parameters.$host,
589
+ Parameters.subscriptionId,
406
590
  Parameters.resourceGroupName,
407
- Parameters.accountName,
408
- Parameters.subscriptionId
591
+ Parameters.accountName1
409
592
  ],
410
- queryParameters: [
411
- Parameters.apiVersion
412
- ],
413
- headerParameters: [
414
- Parameters.acceptLanguage
415
- ],
416
- requestBody: {
417
- parameterPath: {
418
- keyName: "keyName"
419
- },
420
- mapper: __assign(__assign({}, Mappers.StorageAccountRegenerateKeyParameters), { required: true })
421
- },
593
+ headerParameters: [Parameters.accept],
594
+ serializer
595
+ };
596
+ const regenerateKeyOperationSpec = {
597
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/regenerateKey",
598
+ httpMethod: "POST",
422
599
  responses: {
423
600
  200: {
424
601
  bodyMapper: Mappers.StorageAccountListKeysResult
425
- },
426
- default: {
427
- bodyMapper: Mappers.CloudError
428
602
  }
429
603
  },
430
- serializer: serializer
431
- };
432
- var listAccountSASOperationSpec = {
433
- httpMethod: "POST",
434
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/ListAccountSas",
604
+ requestBody: Parameters.regenerateKey,
605
+ queryParameters: [Parameters.apiVersion],
435
606
  urlParameters: [
607
+ Parameters.$host,
608
+ Parameters.subscriptionId,
436
609
  Parameters.resourceGroupName,
437
- Parameters.accountName,
438
- Parameters.subscriptionId
439
- ],
440
- queryParameters: [
441
- Parameters.apiVersion
610
+ Parameters.accountName1
442
611
  ],
443
- headerParameters: [
444
- Parameters.acceptLanguage
445
- ],
446
- requestBody: {
447
- parameterPath: "parameters",
448
- mapper: __assign(__assign({}, Mappers.AccountSasParameters), { required: true })
449
- },
612
+ headerParameters: [Parameters.accept, Parameters.contentType],
613
+ mediaType: "json",
614
+ serializer
615
+ };
616
+ const listAccountSASOperationSpec = {
617
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/ListAccountSas",
618
+ httpMethod: "POST",
450
619
  responses: {
451
620
  200: {
452
621
  bodyMapper: Mappers.ListAccountSasResponse
453
- },
454
- default: {
455
- bodyMapper: Mappers.CloudError
456
622
  }
457
623
  },
458
- serializer: serializer
459
- };
460
- var listServiceSASOperationSpec = {
461
- httpMethod: "POST",
462
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/ListServiceSas",
624
+ requestBody: Parameters.parameters2,
625
+ queryParameters: [Parameters.apiVersion],
463
626
  urlParameters: [
627
+ Parameters.$host,
628
+ Parameters.subscriptionId,
464
629
  Parameters.resourceGroupName,
465
- Parameters.accountName,
466
- Parameters.subscriptionId
630
+ Parameters.accountName1
467
631
  ],
468
- queryParameters: [
469
- Parameters.apiVersion
470
- ],
471
- headerParameters: [
472
- Parameters.acceptLanguage
473
- ],
474
- requestBody: {
475
- parameterPath: "parameters",
476
- mapper: __assign(__assign({}, Mappers.ServiceSasParameters), { required: true })
477
- },
478
- responses: {
479
- 200: {
480
- bodyMapper: Mappers.ListServiceSasResponse
481
- },
482
- default: {
483
- bodyMapper: Mappers.CloudError
484
- }
485
- },
486
- serializer: serializer
632
+ headerParameters: [Parameters.accept, Parameters.contentType],
633
+ mediaType: "json",
634
+ serializer
487
635
  };
488
- var revokeUserDelegationKeysOperationSpec = {
636
+ const listServiceSASOperationSpec = {
637
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/ListServiceSas",
489
638
  httpMethod: "POST",
490
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/revokeUserDelegationKeys",
491
- urlParameters: [
492
- Parameters.resourceGroupName,
493
- Parameters.accountName,
494
- Parameters.subscriptionId
495
- ],
496
- queryParameters: [
497
- Parameters.apiVersion
498
- ],
499
- headerParameters: [
500
- Parameters.acceptLanguage
501
- ],
502
639
  responses: {
503
- 200: {},
504
- default: {
505
- bodyMapper: Mappers.CloudError
640
+ 200: {
641
+ bodyMapper: Mappers.ListServiceSasResponse
506
642
  }
507
643
  },
508
- serializer: serializer
509
- };
510
- var beginCreateOperationSpec = {
511
- httpMethod: "PUT",
512
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}",
644
+ requestBody: Parameters.parameters3,
645
+ queryParameters: [Parameters.apiVersion],
513
646
  urlParameters: [
647
+ Parameters.$host,
648
+ Parameters.subscriptionId,
514
649
  Parameters.resourceGroupName,
515
- Parameters.accountName,
516
- Parameters.subscriptionId
517
- ],
518
- queryParameters: [
519
- Parameters.apiVersion
520
- ],
521
- headerParameters: [
522
- Parameters.acceptLanguage
650
+ Parameters.accountName1
523
651
  ],
524
- requestBody: {
525
- parameterPath: "parameters",
526
- mapper: __assign(__assign({}, Mappers.StorageAccountCreateParameters), { required: true })
527
- },
528
- responses: {
529
- 200: {
530
- bodyMapper: Mappers.StorageAccount
531
- },
532
- 202: {},
533
- default: {
534
- bodyMapper: Mappers.CloudError
535
- }
536
- },
537
- serializer: serializer
652
+ headerParameters: [Parameters.accept, Parameters.contentType],
653
+ mediaType: "json",
654
+ serializer
538
655
  };
539
- var beginFailoverOperationSpec = {
656
+ const failoverOperationSpec = {
657
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/failover",
540
658
  httpMethod: "POST",
541
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/failover",
659
+ responses: { 200: {}, 201: {}, 202: {}, 204: {} },
660
+ queryParameters: [Parameters.apiVersion],
542
661
  urlParameters: [
662
+ Parameters.$host,
663
+ Parameters.subscriptionId,
543
664
  Parameters.resourceGroupName,
544
- Parameters.accountName,
545
- Parameters.subscriptionId
665
+ Parameters.accountName1
546
666
  ],
547
- queryParameters: [
548
- Parameters.apiVersion
549
- ],
550
- headerParameters: [
551
- Parameters.acceptLanguage
552
- ],
553
- responses: {
554
- 200: {},
555
- 202: {},
556
- default: {
557
- bodyMapper: Mappers.CloudError
558
- }
559
- },
560
- serializer: serializer
667
+ serializer
561
668
  };
562
- var beginRestoreBlobRangesOperationSpec = {
669
+ const restoreBlobRangesOperationSpec = {
670
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/restoreBlobRanges",
563
671
  httpMethod: "POST",
564
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/restoreBlobRanges",
565
- urlParameters: [
566
- Parameters.resourceGroupName,
567
- Parameters.accountName,
568
- Parameters.subscriptionId
569
- ],
570
- queryParameters: [
571
- Parameters.apiVersion
572
- ],
573
- headerParameters: [
574
- Parameters.acceptLanguage
575
- ],
576
- requestBody: {
577
- parameterPath: {
578
- timeToRestore: "timeToRestore",
579
- blobRanges: "blobRanges"
580
- },
581
- mapper: __assign(__assign({}, Mappers.BlobRestoreParameters), { required: true })
582
- },
583
672
  responses: {
584
673
  200: {
585
674
  bodyMapper: Mappers.BlobRestoreStatus
586
675
  },
676
+ 201: {
677
+ bodyMapper: Mappers.BlobRestoreStatus
678
+ },
587
679
  202: {
588
680
  bodyMapper: Mappers.BlobRestoreStatus
589
681
  },
590
- default: {
591
- bodyMapper: Mappers.CloudError
682
+ 204: {
683
+ bodyMapper: Mappers.BlobRestoreStatus
592
684
  }
593
685
  },
594
- serializer: serializer
595
- };
596
- var listNextOperationSpec = {
597
- httpMethod: "GET",
598
- baseUrl: "https://management.azure.com",
599
- path: "{nextLink}",
686
+ requestBody: Parameters.parameters4,
687
+ queryParameters: [Parameters.apiVersion],
600
688
  urlParameters: [
601
- Parameters.nextPageLink
602
- ],
603
- queryParameters: [
604
- Parameters.apiVersion
689
+ Parameters.$host,
690
+ Parameters.subscriptionId,
691
+ Parameters.resourceGroupName,
692
+ Parameters.accountName1
605
693
  ],
606
- headerParameters: [
607
- Parameters.acceptLanguage
694
+ headerParameters: [Parameters.accept, Parameters.contentType],
695
+ mediaType: "json",
696
+ serializer
697
+ };
698
+ const revokeUserDelegationKeysOperationSpec = {
699
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/revokeUserDelegationKeys",
700
+ httpMethod: "POST",
701
+ responses: { 200: {} },
702
+ queryParameters: [Parameters.apiVersion],
703
+ urlParameters: [
704
+ Parameters.$host,
705
+ Parameters.subscriptionId,
706
+ Parameters.resourceGroupName,
707
+ Parameters.accountName1
608
708
  ],
709
+ serializer
710
+ };
711
+ const listNextOperationSpec = {
712
+ path: "{nextLink}",
713
+ httpMethod: "GET",
609
714
  responses: {
610
715
  200: {
611
716
  bodyMapper: Mappers.StorageAccountListResult
612
- },
613
- default: {
614
- bodyMapper: Mappers.CloudError
615
717
  }
616
718
  },
617
- serializer: serializer
618
- };
619
- var listByResourceGroupNextOperationSpec = {
620
- httpMethod: "GET",
621
- baseUrl: "https://management.azure.com",
622
- path: "{nextLink}",
719
+ queryParameters: [Parameters.apiVersion],
623
720
  urlParameters: [
624
- Parameters.nextPageLink
625
- ],
626
- queryParameters: [
627
- Parameters.apiVersion
628
- ],
629
- headerParameters: [
630
- Parameters.acceptLanguage
721
+ Parameters.$host,
722
+ Parameters.subscriptionId,
723
+ Parameters.nextLink
631
724
  ],
725
+ headerParameters: [Parameters.accept],
726
+ serializer
727
+ };
728
+ const listByResourceGroupNextOperationSpec = {
729
+ path: "{nextLink}",
730
+ httpMethod: "GET",
632
731
  responses: {
633
732
  200: {
634
733
  bodyMapper: Mappers.StorageAccountListResult
635
- },
636
- default: {
637
- bodyMapper: Mappers.CloudError
638
734
  }
639
735
  },
640
- serializer: serializer
736
+ queryParameters: [Parameters.apiVersion],
737
+ urlParameters: [
738
+ Parameters.$host,
739
+ Parameters.subscriptionId,
740
+ Parameters.resourceGroupName,
741
+ Parameters.nextLink
742
+ ],
743
+ headerParameters: [Parameters.accept],
744
+ serializer
641
745
  };
642
746
  //# sourceMappingURL=storageAccounts.js.map