@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,567 +3,716 @@
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/blobContainersMappers";
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 BlobContainers. */
14
- var BlobContainers = /** @class */ (function () {
17
+ export class BlobContainersImpl {
15
18
  /**
16
- * Create a BlobContainers.
17
- * @param {StorageManagementClientContext} client Reference to the service client.
19
+ * Initialize a new instance of the class BlobContainers class.
20
+ * @param client Reference to the service client
18
21
  */
19
- function BlobContainers(client) {
22
+ constructor(client) {
20
23
  this.client = client;
21
24
  }
22
- BlobContainers.prototype.list = function (resourceGroupName, accountName, options, callback) {
23
- return this.client.sendOperationRequest({
24
- resourceGroupName: resourceGroupName,
25
- accountName: accountName,
26
- options: options
27
- }, listOperationSpec, callback);
28
- };
29
- BlobContainers.prototype.create = function (resourceGroupName, accountName, containerName, blobContainer, options, callback) {
30
- return this.client.sendOperationRequest({
31
- resourceGroupName: resourceGroupName,
32
- accountName: accountName,
33
- containerName: containerName,
34
- blobContainer: blobContainer,
35
- options: options
36
- }, createOperationSpec, callback);
37
- };
38
- BlobContainers.prototype.update = function (resourceGroupName, accountName, containerName, blobContainer, options, callback) {
39
- return this.client.sendOperationRequest({
40
- resourceGroupName: resourceGroupName,
41
- accountName: accountName,
42
- containerName: containerName,
43
- blobContainer: blobContainer,
44
- options: options
45
- }, updateOperationSpec, callback);
46
- };
47
- BlobContainers.prototype.get = function (resourceGroupName, accountName, containerName, options, callback) {
48
- return this.client.sendOperationRequest({
49
- resourceGroupName: resourceGroupName,
50
- accountName: accountName,
51
- containerName: containerName,
52
- options: options
53
- }, getOperationSpec, callback);
54
- };
55
- BlobContainers.prototype.deleteMethod = function (resourceGroupName, accountName, containerName, options, callback) {
56
- return this.client.sendOperationRequest({
57
- resourceGroupName: resourceGroupName,
58
- accountName: accountName,
59
- containerName: containerName,
60
- options: options
61
- }, deleteMethodOperationSpec, callback);
62
- };
63
- BlobContainers.prototype.setLegalHold = function (resourceGroupName, accountName, containerName, tags, options, callback) {
64
- return this.client.sendOperationRequest({
65
- resourceGroupName: resourceGroupName,
66
- accountName: accountName,
67
- containerName: containerName,
68
- tags: tags,
69
- options: options
70
- }, setLegalHoldOperationSpec, callback);
71
- };
72
- BlobContainers.prototype.clearLegalHold = function (resourceGroupName, accountName, containerName, tags, options, callback) {
73
- return this.client.sendOperationRequest({
74
- resourceGroupName: resourceGroupName,
75
- accountName: accountName,
76
- containerName: containerName,
77
- tags: tags,
78
- options: options
79
- }, clearLegalHoldOperationSpec, callback);
80
- };
81
- BlobContainers.prototype.createOrUpdateImmutabilityPolicy = function (resourceGroupName, accountName, containerName, options, callback) {
82
- return this.client.sendOperationRequest({
83
- resourceGroupName: resourceGroupName,
84
- accountName: accountName,
85
- containerName: containerName,
86
- options: options
87
- }, createOrUpdateImmutabilityPolicyOperationSpec, callback);
88
- };
89
- BlobContainers.prototype.getImmutabilityPolicy = function (resourceGroupName, accountName, containerName, options, callback) {
90
- return this.client.sendOperationRequest({
91
- resourceGroupName: resourceGroupName,
92
- accountName: accountName,
93
- containerName: containerName,
94
- options: options
95
- }, getImmutabilityPolicyOperationSpec, callback);
96
- };
97
- BlobContainers.prototype.deleteImmutabilityPolicy = function (resourceGroupName, accountName, containerName, ifMatch, options, callback) {
98
- return this.client.sendOperationRequest({
99
- resourceGroupName: resourceGroupName,
100
- accountName: accountName,
101
- containerName: containerName,
102
- ifMatch: ifMatch,
103
- options: options
104
- }, deleteImmutabilityPolicyOperationSpec, callback);
105
- };
106
- BlobContainers.prototype.lockImmutabilityPolicy = function (resourceGroupName, accountName, containerName, ifMatch, options, callback) {
107
- return this.client.sendOperationRequest({
108
- resourceGroupName: resourceGroupName,
109
- accountName: accountName,
110
- containerName: containerName,
111
- ifMatch: ifMatch,
112
- options: options
113
- }, lockImmutabilityPolicyOperationSpec, callback);
114
- };
115
- BlobContainers.prototype.extendImmutabilityPolicy = function (resourceGroupName, accountName, containerName, ifMatch, options, callback) {
116
- return this.client.sendOperationRequest({
117
- resourceGroupName: resourceGroupName,
118
- accountName: accountName,
119
- containerName: containerName,
120
- ifMatch: ifMatch,
121
- options: options
122
- }, extendImmutabilityPolicyOperationSpec, callback);
123
- };
124
- BlobContainers.prototype.lease = function (resourceGroupName, accountName, containerName, options, callback) {
125
- return this.client.sendOperationRequest({
126
- resourceGroupName: resourceGroupName,
127
- accountName: accountName,
128
- containerName: containerName,
129
- options: options
130
- }, leaseOperationSpec, callback);
131
- };
132
- BlobContainers.prototype.listNext = function (nextPageLink, options, callback) {
133
- return this.client.sendOperationRequest({
134
- nextPageLink: nextPageLink,
135
- options: options
136
- }, listNextOperationSpec, callback);
137
- };
138
- return BlobContainers;
139
- }());
140
- export { BlobContainers };
25
+ /**
26
+ * Lists all containers and does not support a prefix like data plane. Also SRP today does not return
27
+ * continuation token.
28
+ * @param resourceGroupName The name of the resource group within the user's subscription. The name is
29
+ * case insensitive.
30
+ * @param accountName The name of the storage account within the specified resource group. Storage
31
+ * account names must be between 3 and 24 characters in length and use numbers and lower-case letters
32
+ * only.
33
+ * @param options The options parameters.
34
+ */
35
+ list(resourceGroupName, accountName, options) {
36
+ const iter = this.listPagingAll(resourceGroupName, accountName, options);
37
+ return {
38
+ next() {
39
+ return iter.next();
40
+ },
41
+ [Symbol.asyncIterator]() {
42
+ return this;
43
+ },
44
+ byPage: () => {
45
+ return this.listPagingPage(resourceGroupName, accountName, options);
46
+ }
47
+ };
48
+ }
49
+ listPagingPage(resourceGroupName, accountName, options) {
50
+ return __asyncGenerator(this, arguments, function* listPagingPage_1() {
51
+ let result = yield __await(this._list(resourceGroupName, accountName, options));
52
+ yield yield __await(result.value || []);
53
+ let continuationToken = result.nextLink;
54
+ while (continuationToken) {
55
+ result = yield __await(this._listNext(resourceGroupName, accountName, continuationToken, options));
56
+ continuationToken = result.nextLink;
57
+ yield yield __await(result.value || []);
58
+ }
59
+ });
60
+ }
61
+ listPagingAll(resourceGroupName, accountName, options) {
62
+ return __asyncGenerator(this, arguments, function* listPagingAll_1() {
63
+ var e_1, _a;
64
+ try {
65
+ for (var _b = __asyncValues(this.listPagingPage(resourceGroupName, accountName, options)), _c; _c = yield __await(_b.next()), !_c.done;) {
66
+ const page = _c.value;
67
+ yield __await(yield* __asyncDelegator(__asyncValues(page)));
68
+ }
69
+ }
70
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
71
+ finally {
72
+ try {
73
+ if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
74
+ }
75
+ finally { if (e_1) throw e_1.error; }
76
+ }
77
+ });
78
+ }
79
+ /**
80
+ * Lists all containers and does not support a prefix like data plane. Also SRP today does not return
81
+ * continuation token.
82
+ * @param resourceGroupName The name of the resource group within the user's subscription. The name is
83
+ * case insensitive.
84
+ * @param accountName The name of the storage account within the specified resource group. Storage
85
+ * account names must be between 3 and 24 characters in length and use numbers and lower-case letters
86
+ * only.
87
+ * @param options The options parameters.
88
+ */
89
+ _list(resourceGroupName, accountName, options) {
90
+ return this.client.sendOperationRequest({ resourceGroupName, accountName, options }, listOperationSpec);
91
+ }
92
+ /**
93
+ * Creates a new container under the specified account as described by request body. The container
94
+ * resource includes metadata and properties for that container. It does not include a list of the
95
+ * blobs contained by the container.
96
+ * @param resourceGroupName The name of the resource group within the user's subscription. The name is
97
+ * case insensitive.
98
+ * @param accountName The name of the storage account within the specified resource group. Storage
99
+ * account names must be between 3 and 24 characters in length and use numbers and lower-case letters
100
+ * only.
101
+ * @param containerName The name of the blob container within the specified storage account. Blob
102
+ * container names must be between 3 and 63 characters in length and use numbers, lower-case letters
103
+ * and dash (-) only. Every dash (-) character must be immediately preceded and followed by a letter or
104
+ * number.
105
+ * @param blobContainer Properties of the blob container to create.
106
+ * @param options The options parameters.
107
+ */
108
+ create(resourceGroupName, accountName, containerName, blobContainer, options) {
109
+ return this.client.sendOperationRequest({ resourceGroupName, accountName, containerName, blobContainer, options }, createOperationSpec);
110
+ }
111
+ /**
112
+ * Updates container properties as specified in request body. Properties not mentioned in the request
113
+ * will be unchanged. Update fails if the specified container doesn't already exist.
114
+ * @param resourceGroupName The name of the resource group within the user's subscription. The name is
115
+ * case insensitive.
116
+ * @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 letters
118
+ * only.
119
+ * @param containerName The name of the blob container within the specified storage account. Blob
120
+ * container names must be between 3 and 63 characters in length and use numbers, lower-case letters
121
+ * and dash (-) only. Every dash (-) character must be immediately preceded and followed by a letter or
122
+ * number.
123
+ * @param blobContainer Properties to update for the blob container.
124
+ * @param options The options parameters.
125
+ */
126
+ update(resourceGroupName, accountName, containerName, blobContainer, options) {
127
+ return this.client.sendOperationRequest({ resourceGroupName, accountName, containerName, blobContainer, options }, updateOperationSpec);
128
+ }
129
+ /**
130
+ * Gets properties of a specified container.
131
+ * @param resourceGroupName The name of the resource group within the user's subscription. The name is
132
+ * case insensitive.
133
+ * @param accountName The name of the storage account within the specified resource group. Storage
134
+ * account names must be between 3 and 24 characters in length and use numbers and lower-case letters
135
+ * only.
136
+ * @param containerName The name of the blob container within the specified storage account. Blob
137
+ * container names must be between 3 and 63 characters in length and use numbers, lower-case letters
138
+ * and dash (-) only. Every dash (-) character must be immediately preceded and followed by a letter or
139
+ * number.
140
+ * @param options The options parameters.
141
+ */
142
+ get(resourceGroupName, accountName, containerName, options) {
143
+ return this.client.sendOperationRequest({ resourceGroupName, accountName, containerName, options }, getOperationSpec);
144
+ }
145
+ /**
146
+ * Deletes specified container under its account.
147
+ * @param resourceGroupName The name of the resource group within the user's subscription. The name is
148
+ * case insensitive.
149
+ * @param accountName The name of the storage account within the specified resource group. Storage
150
+ * account names must be between 3 and 24 characters in length and use numbers and lower-case letters
151
+ * only.
152
+ * @param containerName The name of the blob container within the specified storage account. Blob
153
+ * container names must be between 3 and 63 characters in length and use numbers, lower-case letters
154
+ * and dash (-) only. Every dash (-) character must be immediately preceded and followed by a letter or
155
+ * number.
156
+ * @param options The options parameters.
157
+ */
158
+ delete(resourceGroupName, accountName, containerName, options) {
159
+ return this.client.sendOperationRequest({ resourceGroupName, accountName, containerName, options }, deleteOperationSpec);
160
+ }
161
+ /**
162
+ * Sets legal hold tags. Setting the same tag results in an idempotent operation. SetLegalHold follows
163
+ * an append pattern and does not clear out the existing tags that are not specified in the request.
164
+ * @param resourceGroupName The name of the resource group within the user's subscription. The name is
165
+ * case insensitive.
166
+ * @param accountName The name of the storage account within the specified resource group. Storage
167
+ * account names must be between 3 and 24 characters in length and use numbers and lower-case letters
168
+ * only.
169
+ * @param containerName The name of the blob container within the specified storage account. Blob
170
+ * container names must be between 3 and 63 characters in length and use numbers, lower-case letters
171
+ * and dash (-) only. Every dash (-) character must be immediately preceded and followed by a letter or
172
+ * number.
173
+ * @param legalHold The LegalHold property that will be set to a blob container.
174
+ * @param options The options parameters.
175
+ */
176
+ setLegalHold(resourceGroupName, accountName, containerName, legalHold, options) {
177
+ return this.client.sendOperationRequest({ resourceGroupName, accountName, containerName, legalHold, options }, setLegalHoldOperationSpec);
178
+ }
179
+ /**
180
+ * Clears legal hold tags. Clearing the same or non-existent tag results in an idempotent operation.
181
+ * ClearLegalHold clears out only the specified tags in the request.
182
+ * @param resourceGroupName The name of the resource group within the user's subscription. The name is
183
+ * case insensitive.
184
+ * @param accountName The name of the storage account within the specified resource group. Storage
185
+ * account names must be between 3 and 24 characters in length and use numbers and lower-case letters
186
+ * only.
187
+ * @param containerName The name of the blob container within the specified storage account. Blob
188
+ * container names must be between 3 and 63 characters in length and use numbers, lower-case letters
189
+ * and dash (-) only. Every dash (-) character must be immediately preceded and followed by a letter or
190
+ * number.
191
+ * @param legalHold The LegalHold property that will be clear from a blob container.
192
+ * @param options The options parameters.
193
+ */
194
+ clearLegalHold(resourceGroupName, accountName, containerName, legalHold, options) {
195
+ return this.client.sendOperationRequest({ resourceGroupName, accountName, containerName, legalHold, options }, clearLegalHoldOperationSpec);
196
+ }
197
+ /**
198
+ * Creates or updates an unlocked immutability policy. ETag in If-Match is honored if given but not
199
+ * required for this operation.
200
+ * @param resourceGroupName The name of the resource group within the user's subscription. The name is
201
+ * case insensitive.
202
+ * @param accountName The name of the storage account within the specified resource group. Storage
203
+ * account names must be between 3 and 24 characters in length and use numbers and lower-case letters
204
+ * only.
205
+ * @param containerName The name of the blob container within the specified storage account. Blob
206
+ * container names must be between 3 and 63 characters in length and use numbers, lower-case letters
207
+ * and dash (-) only. Every dash (-) character must be immediately preceded and followed by a letter or
208
+ * number.
209
+ * @param options The options parameters.
210
+ */
211
+ createOrUpdateImmutabilityPolicy(resourceGroupName, accountName, containerName, options) {
212
+ return this.client.sendOperationRequest({ resourceGroupName, accountName, containerName, options }, createOrUpdateImmutabilityPolicyOperationSpec);
213
+ }
214
+ /**
215
+ * Gets the existing immutability policy along with the corresponding ETag in response headers and
216
+ * body.
217
+ * @param resourceGroupName The name of the resource group within the user's subscription. The name is
218
+ * case insensitive.
219
+ * @param accountName The name of the storage account within the specified resource group. Storage
220
+ * account names must be between 3 and 24 characters in length and use numbers and lower-case letters
221
+ * only.
222
+ * @param containerName The name of the blob container within the specified storage account. Blob
223
+ * container names must be between 3 and 63 characters in length and use numbers, lower-case letters
224
+ * and dash (-) only. Every dash (-) character must be immediately preceded and followed by a letter or
225
+ * number.
226
+ * @param options The options parameters.
227
+ */
228
+ getImmutabilityPolicy(resourceGroupName, accountName, containerName, options) {
229
+ return this.client.sendOperationRequest({ resourceGroupName, accountName, containerName, options }, getImmutabilityPolicyOperationSpec);
230
+ }
231
+ /**
232
+ * Aborts an unlocked immutability policy. The response of delete has
233
+ * immutabilityPeriodSinceCreationInDays set to 0. ETag in If-Match is required for this operation.
234
+ * Deleting a locked immutability policy is not allowed, the only way is to delete the container after
235
+ * deleting all expired blobs inside the policy locked container.
236
+ * @param resourceGroupName The name of the resource group within the user's subscription. The name is
237
+ * case insensitive.
238
+ * @param accountName The name of the storage account within the specified resource group. Storage
239
+ * account names must be between 3 and 24 characters in length and use numbers and lower-case letters
240
+ * only.
241
+ * @param containerName The name of the blob container within the specified storage account. Blob
242
+ * container names must be between 3 and 63 characters in length and use numbers, lower-case letters
243
+ * and dash (-) only. Every dash (-) character must be immediately preceded and followed by a letter or
244
+ * number.
245
+ * @param ifMatch The entity state (ETag) version of the immutability policy to update. A value of "*"
246
+ * can be used to apply the operation only if the immutability policy already exists. If omitted, this
247
+ * operation will always be applied.
248
+ * @param options The options parameters.
249
+ */
250
+ deleteImmutabilityPolicy(resourceGroupName, accountName, containerName, ifMatch, options) {
251
+ return this.client.sendOperationRequest({ resourceGroupName, accountName, containerName, ifMatch, options }, deleteImmutabilityPolicyOperationSpec);
252
+ }
253
+ /**
254
+ * Sets the ImmutabilityPolicy to Locked state. The only action allowed on a Locked policy is
255
+ * ExtendImmutabilityPolicy action. ETag in If-Match is required for this operation.
256
+ * @param resourceGroupName The name of the resource group within the user's subscription. The name is
257
+ * case insensitive.
258
+ * @param accountName The name of the storage account within the specified resource group. Storage
259
+ * account names must be between 3 and 24 characters in length and use numbers and lower-case letters
260
+ * only.
261
+ * @param containerName The name of the blob container within the specified storage account. Blob
262
+ * container names must be between 3 and 63 characters in length and use numbers, lower-case letters
263
+ * and dash (-) only. Every dash (-) character must be immediately preceded and followed by a letter or
264
+ * number.
265
+ * @param ifMatch The entity state (ETag) version of the immutability policy to update. A value of "*"
266
+ * can be used to apply the operation only if the immutability policy already exists. If omitted, this
267
+ * operation will always be applied.
268
+ * @param options The options parameters.
269
+ */
270
+ lockImmutabilityPolicy(resourceGroupName, accountName, containerName, ifMatch, options) {
271
+ return this.client.sendOperationRequest({ resourceGroupName, accountName, containerName, ifMatch, options }, lockImmutabilityPolicyOperationSpec);
272
+ }
273
+ /**
274
+ * Extends the immutabilityPeriodSinceCreationInDays of a locked immutabilityPolicy. The only action
275
+ * allowed on a Locked policy will be this action. ETag in If-Match is required for this operation.
276
+ * @param resourceGroupName The name of the resource group within the user's subscription. The name is
277
+ * case insensitive.
278
+ * @param accountName The name of the storage account within the specified resource group. Storage
279
+ * account names must be between 3 and 24 characters in length and use numbers and lower-case letters
280
+ * only.
281
+ * @param containerName The name of the blob container within the specified storage account. Blob
282
+ * container names must be between 3 and 63 characters in length and use numbers, lower-case letters
283
+ * and dash (-) only. Every dash (-) character must be immediately preceded and followed by a letter or
284
+ * number.
285
+ * @param ifMatch The entity state (ETag) version of the immutability policy to update. A value of "*"
286
+ * can be used to apply the operation only if the immutability policy already exists. If omitted, this
287
+ * operation will always be applied.
288
+ * @param options The options parameters.
289
+ */
290
+ extendImmutabilityPolicy(resourceGroupName, accountName, containerName, ifMatch, options) {
291
+ return this.client.sendOperationRequest({ resourceGroupName, accountName, containerName, ifMatch, options }, extendImmutabilityPolicyOperationSpec);
292
+ }
293
+ /**
294
+ * The Lease Container operation establishes and manages a lock on a container for delete operations.
295
+ * The lock duration can be 15 to 60 seconds, or can be infinite.
296
+ * @param resourceGroupName The name of the resource group within the user's subscription. The name is
297
+ * case insensitive.
298
+ * @param accountName The name of the storage account within the specified resource group. Storage
299
+ * account names must be between 3 and 24 characters in length and use numbers and lower-case letters
300
+ * only.
301
+ * @param containerName The name of the blob container within the specified storage account. Blob
302
+ * container names must be between 3 and 63 characters in length and use numbers, lower-case letters
303
+ * and dash (-) only. Every dash (-) character must be immediately preceded and followed by a letter or
304
+ * number.
305
+ * @param options The options parameters.
306
+ */
307
+ lease(resourceGroupName, accountName, containerName, options) {
308
+ return this.client.sendOperationRequest({ resourceGroupName, accountName, containerName, options }, leaseOperationSpec);
309
+ }
310
+ /**
311
+ * This operation migrates a blob container from container level WORM to object level immutability
312
+ * enabled container. Prerequisites require a container level immutability policy either in locked or
313
+ * unlocked state, Account level versioning must be enabled and there should be no Legal hold on the
314
+ * container.
315
+ * @param resourceGroupName The name of the resource group within the user's subscription. The name is
316
+ * case insensitive.
317
+ * @param accountName The name of the storage account within the specified resource group. Storage
318
+ * account names must be between 3 and 24 characters in length and use numbers and lower-case letters
319
+ * only.
320
+ * @param containerName The name of the blob container within the specified storage account. Blob
321
+ * container names must be between 3 and 63 characters in length and use numbers, lower-case letters
322
+ * and dash (-) only. Every dash (-) character must be immediately preceded and followed by a letter or
323
+ * number.
324
+ * @param options The options parameters.
325
+ */
326
+ beginObjectLevelWorm(resourceGroupName, accountName, containerName, options) {
327
+ return __awaiter(this, void 0, void 0, function* () {
328
+ const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
329
+ return this.client.sendOperationRequest(args, spec);
330
+ });
331
+ const sendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
332
+ var _a;
333
+ let currentRawResponse = undefined;
334
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
335
+ const callback = (rawResponse, flatResponse) => {
336
+ currentRawResponse = rawResponse;
337
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
338
+ };
339
+ const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
340
+ const flatResponse = yield directSendOperation(updatedArgs, spec);
341
+ return {
342
+ flatResponse,
343
+ rawResponse: {
344
+ statusCode: currentRawResponse.status,
345
+ body: currentRawResponse.parsedBody,
346
+ headers: currentRawResponse.headers.toJSON()
347
+ }
348
+ };
349
+ });
350
+ const lro = new CoreClientLro(sendOperation, { resourceGroupName, accountName, containerName, options }, objectLevelWormOperationSpec, "location");
351
+ return new LroEngine(lro, { intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs });
352
+ });
353
+ }
354
+ /**
355
+ * This operation migrates a blob container from container level WORM to object level immutability
356
+ * enabled container. Prerequisites require a container level immutability policy either in locked or
357
+ * unlocked state, Account level versioning must be enabled and there should be no Legal hold on the
358
+ * container.
359
+ * @param resourceGroupName The name of the resource group within the user's subscription. The name is
360
+ * case insensitive.
361
+ * @param accountName The name of the storage account within the specified resource group. Storage
362
+ * account names must be between 3 and 24 characters in length and use numbers and lower-case letters
363
+ * only.
364
+ * @param containerName The name of the blob container within the specified storage account. Blob
365
+ * container names must be between 3 and 63 characters in length and use numbers, lower-case letters
366
+ * and dash (-) only. Every dash (-) character must be immediately preceded and followed by a letter or
367
+ * number.
368
+ * @param options The options parameters.
369
+ */
370
+ beginObjectLevelWormAndWait(resourceGroupName, accountName, containerName, options) {
371
+ return __awaiter(this, void 0, void 0, function* () {
372
+ const poller = yield this.beginObjectLevelWorm(resourceGroupName, accountName, containerName, options);
373
+ return poller.pollUntilDone();
374
+ });
375
+ }
376
+ /**
377
+ * ListNext
378
+ * @param resourceGroupName The name of the resource group within the user's subscription. The name is
379
+ * case insensitive.
380
+ * @param accountName The name of the storage account within the specified resource group. Storage
381
+ * account names must be between 3 and 24 characters in length and use numbers and lower-case letters
382
+ * only.
383
+ * @param nextLink The nextLink from the previous successful call to the List method.
384
+ * @param options The options parameters.
385
+ */
386
+ _listNext(resourceGroupName, accountName, nextLink, options) {
387
+ return this.client.sendOperationRequest({ resourceGroupName, accountName, nextLink, options }, listNextOperationSpec);
388
+ }
389
+ }
141
390
  // Operation Specifications
142
- var serializer = new msRest.Serializer(Mappers);
143
- var listOperationSpec = {
391
+ const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
392
+ const listOperationSpec = {
393
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/default/containers",
144
394
  httpMethod: "GET",
145
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/default/containers",
146
- urlParameters: [
147
- Parameters.resourceGroupName,
148
- Parameters.accountName,
149
- Parameters.subscriptionId
150
- ],
395
+ responses: {
396
+ 200: {
397
+ bodyMapper: Mappers.ListContainerItems
398
+ }
399
+ },
151
400
  queryParameters: [
152
401
  Parameters.apiVersion,
153
402
  Parameters.maxpagesize,
154
403
  Parameters.filter,
155
404
  Parameters.include
156
405
  ],
157
- headerParameters: [
158
- Parameters.acceptLanguage
159
- ],
160
- responses: {
161
- 200: {
162
- bodyMapper: Mappers.ListContainerItems
163
- },
164
- default: {
165
- bodyMapper: Mappers.CloudError
166
- }
167
- },
168
- serializer: serializer
169
- };
170
- var createOperationSpec = {
171
- httpMethod: "PUT",
172
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/default/containers/{containerName}",
173
406
  urlParameters: [
407
+ Parameters.$host,
408
+ Parameters.subscriptionId,
174
409
  Parameters.resourceGroupName,
175
- Parameters.accountName,
176
- Parameters.containerName,
177
- Parameters.subscriptionId
178
- ],
179
- queryParameters: [
180
- Parameters.apiVersion
181
- ],
182
- headerParameters: [
183
- Parameters.acceptLanguage
410
+ Parameters.accountName1
184
411
  ],
185
- requestBody: {
186
- parameterPath: "blobContainer",
187
- mapper: __assign(__assign({}, Mappers.BlobContainer), { required: true })
188
- },
412
+ headerParameters: [Parameters.accept],
413
+ serializer
414
+ };
415
+ const createOperationSpec = {
416
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/default/containers/{containerName}",
417
+ httpMethod: "PUT",
189
418
  responses: {
190
419
  200: {
191
420
  bodyMapper: Mappers.BlobContainer
192
421
  },
193
422
  201: {
194
423
  bodyMapper: Mappers.BlobContainer
195
- },
196
- default: {
197
- bodyMapper: Mappers.CloudError
198
424
  }
199
425
  },
200
- serializer: serializer
201
- };
202
- var updateOperationSpec = {
203
- httpMethod: "PATCH",
204
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/default/containers/{containerName}",
426
+ requestBody: Parameters.blobContainer,
427
+ queryParameters: [Parameters.apiVersion],
205
428
  urlParameters: [
429
+ Parameters.$host,
430
+ Parameters.subscriptionId,
206
431
  Parameters.resourceGroupName,
207
- Parameters.accountName,
208
- Parameters.containerName,
209
- Parameters.subscriptionId
432
+ Parameters.accountName1,
433
+ Parameters.containerName
210
434
  ],
211
- queryParameters: [
212
- Parameters.apiVersion
213
- ],
214
- headerParameters: [
215
- Parameters.acceptLanguage
216
- ],
217
- requestBody: {
218
- parameterPath: "blobContainer",
219
- mapper: __assign(__assign({}, Mappers.BlobContainer), { required: true })
220
- },
435
+ headerParameters: [Parameters.accept, Parameters.contentType],
436
+ mediaType: "json",
437
+ serializer
438
+ };
439
+ const updateOperationSpec = {
440
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/default/containers/{containerName}",
441
+ httpMethod: "PATCH",
221
442
  responses: {
222
443
  200: {
223
444
  bodyMapper: Mappers.BlobContainer
224
- },
225
- default: {
226
- bodyMapper: Mappers.CloudError
227
445
  }
228
446
  },
229
- serializer: serializer
230
- };
231
- var getOperationSpec = {
232
- httpMethod: "GET",
233
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/default/containers/{containerName}",
447
+ requestBody: Parameters.blobContainer,
448
+ queryParameters: [Parameters.apiVersion],
234
449
  urlParameters: [
450
+ Parameters.$host,
451
+ Parameters.subscriptionId,
235
452
  Parameters.resourceGroupName,
236
- Parameters.accountName,
237
- Parameters.containerName,
238
- Parameters.subscriptionId
239
- ],
240
- queryParameters: [
241
- Parameters.apiVersion
242
- ],
243
- headerParameters: [
244
- Parameters.acceptLanguage
453
+ Parameters.accountName1,
454
+ Parameters.containerName
245
455
  ],
456
+ headerParameters: [Parameters.accept, Parameters.contentType],
457
+ mediaType: "json",
458
+ serializer
459
+ };
460
+ const getOperationSpec = {
461
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/default/containers/{containerName}",
462
+ httpMethod: "GET",
246
463
  responses: {
247
464
  200: {
248
465
  bodyMapper: Mappers.BlobContainer
249
- },
250
- default: {
251
- bodyMapper: Mappers.CloudError
252
466
  }
253
467
  },
254
- serializer: serializer
255
- };
256
- var deleteMethodOperationSpec = {
257
- httpMethod: "DELETE",
258
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/default/containers/{containerName}",
468
+ queryParameters: [Parameters.apiVersion],
259
469
  urlParameters: [
470
+ Parameters.$host,
471
+ Parameters.subscriptionId,
260
472
  Parameters.resourceGroupName,
261
- Parameters.accountName,
262
- Parameters.containerName,
263
- Parameters.subscriptionId
264
- ],
265
- queryParameters: [
266
- Parameters.apiVersion
267
- ],
268
- headerParameters: [
269
- Parameters.acceptLanguage
473
+ Parameters.accountName1,
474
+ Parameters.containerName
270
475
  ],
271
- responses: {
272
- 200: {},
273
- 204: {},
274
- default: {
275
- bodyMapper: Mappers.CloudError
276
- }
277
- },
278
- serializer: serializer
476
+ headerParameters: [Parameters.accept],
477
+ serializer
279
478
  };
280
- var setLegalHoldOperationSpec = {
281
- httpMethod: "POST",
282
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/default/containers/{containerName}/setLegalHold",
479
+ const deleteOperationSpec = {
480
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/default/containers/{containerName}",
481
+ httpMethod: "DELETE",
482
+ responses: { 200: {}, 204: {} },
483
+ queryParameters: [Parameters.apiVersion],
283
484
  urlParameters: [
485
+ Parameters.$host,
486
+ Parameters.subscriptionId,
284
487
  Parameters.resourceGroupName,
285
- Parameters.accountName,
286
- Parameters.containerName,
287
- Parameters.subscriptionId
488
+ Parameters.accountName1,
489
+ Parameters.containerName
288
490
  ],
289
- queryParameters: [
290
- Parameters.apiVersion
291
- ],
292
- headerParameters: [
293
- Parameters.acceptLanguage
294
- ],
295
- requestBody: {
296
- parameterPath: {
297
- tags: "tags"
298
- },
299
- mapper: __assign(__assign({}, Mappers.LegalHold), { required: true })
300
- },
491
+ serializer
492
+ };
493
+ const setLegalHoldOperationSpec = {
494
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/default/containers/{containerName}/setLegalHold",
495
+ httpMethod: "POST",
301
496
  responses: {
302
497
  200: {
303
498
  bodyMapper: Mappers.LegalHold
304
- },
305
- default: {
306
- bodyMapper: Mappers.CloudError
307
499
  }
308
500
  },
309
- serializer: serializer
310
- };
311
- var clearLegalHoldOperationSpec = {
312
- httpMethod: "POST",
313
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/default/containers/{containerName}/clearLegalHold",
501
+ requestBody: Parameters.legalHold,
502
+ queryParameters: [Parameters.apiVersion],
314
503
  urlParameters: [
504
+ Parameters.$host,
505
+ Parameters.subscriptionId,
315
506
  Parameters.resourceGroupName,
316
- Parameters.accountName,
317
- Parameters.containerName,
318
- Parameters.subscriptionId
319
- ],
320
- queryParameters: [
321
- Parameters.apiVersion
507
+ Parameters.accountName1,
508
+ Parameters.containerName
322
509
  ],
323
- headerParameters: [
324
- Parameters.acceptLanguage
325
- ],
326
- requestBody: {
327
- parameterPath: {
328
- tags: "tags"
329
- },
330
- mapper: __assign(__assign({}, Mappers.LegalHold), { required: true })
331
- },
510
+ headerParameters: [Parameters.accept, Parameters.contentType],
511
+ mediaType: "json",
512
+ serializer
513
+ };
514
+ const clearLegalHoldOperationSpec = {
515
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/default/containers/{containerName}/clearLegalHold",
516
+ httpMethod: "POST",
332
517
  responses: {
333
518
  200: {
334
519
  bodyMapper: Mappers.LegalHold
335
- },
336
- default: {
337
- bodyMapper: Mappers.CloudError
338
520
  }
339
521
  },
340
- serializer: serializer
341
- };
342
- var createOrUpdateImmutabilityPolicyOperationSpec = {
343
- httpMethod: "PUT",
344
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/default/containers/{containerName}/immutabilityPolicies/{immutabilityPolicyName}",
522
+ requestBody: Parameters.legalHold,
523
+ queryParameters: [Parameters.apiVersion],
345
524
  urlParameters: [
525
+ Parameters.$host,
526
+ Parameters.subscriptionId,
346
527
  Parameters.resourceGroupName,
347
- Parameters.accountName,
348
- Parameters.containerName,
349
- Parameters.immutabilityPolicyName,
350
- Parameters.subscriptionId
351
- ],
352
- queryParameters: [
353
- Parameters.apiVersion
354
- ],
355
- headerParameters: [
356
- Parameters.ifMatch0,
357
- Parameters.acceptLanguage
528
+ Parameters.accountName1,
529
+ Parameters.containerName
358
530
  ],
359
- requestBody: {
360
- parameterPath: {
361
- immutabilityPeriodSinceCreationInDays: [
362
- "options",
363
- "immutabilityPeriodSinceCreationInDays"
364
- ],
365
- allowProtectedAppendWrites: [
366
- "options",
367
- "allowProtectedAppendWrites"
368
- ]
369
- },
370
- mapper: Mappers.ImmutabilityPolicy
371
- },
531
+ headerParameters: [Parameters.accept, Parameters.contentType],
532
+ mediaType: "json",
533
+ serializer
534
+ };
535
+ const createOrUpdateImmutabilityPolicyOperationSpec = {
536
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/default/containers/{containerName}/immutabilityPolicies/{immutabilityPolicyName}",
537
+ httpMethod: "PUT",
372
538
  responses: {
373
539
  200: {
374
540
  bodyMapper: Mappers.ImmutabilityPolicy,
375
541
  headersMapper: Mappers.BlobContainersCreateOrUpdateImmutabilityPolicyHeaders
376
- },
377
- default: {
378
- bodyMapper: Mappers.CloudError,
379
- headersMapper: Mappers.BlobContainersCreateOrUpdateImmutabilityPolicyHeaders
380
542
  }
381
543
  },
382
- serializer: serializer
383
- };
384
- var getImmutabilityPolicyOperationSpec = {
385
- httpMethod: "GET",
386
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/default/containers/{containerName}/immutabilityPolicies/{immutabilityPolicyName}",
544
+ requestBody: Parameters.parameters6,
545
+ queryParameters: [Parameters.apiVersion],
387
546
  urlParameters: [
547
+ Parameters.$host,
548
+ Parameters.subscriptionId,
388
549
  Parameters.resourceGroupName,
389
- Parameters.accountName,
550
+ Parameters.accountName1,
390
551
  Parameters.containerName,
391
- Parameters.immutabilityPolicyName,
392
- Parameters.subscriptionId
393
- ],
394
- queryParameters: [
395
- Parameters.apiVersion
552
+ Parameters.immutabilityPolicyName
396
553
  ],
397
554
  headerParameters: [
398
- Parameters.ifMatch0,
399
- Parameters.acceptLanguage
555
+ Parameters.accept,
556
+ Parameters.contentType,
557
+ Parameters.ifMatch
400
558
  ],
559
+ mediaType: "json",
560
+ serializer
561
+ };
562
+ const getImmutabilityPolicyOperationSpec = {
563
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/default/containers/{containerName}/immutabilityPolicies/{immutabilityPolicyName}",
564
+ httpMethod: "GET",
401
565
  responses: {
402
566
  200: {
403
567
  bodyMapper: Mappers.ImmutabilityPolicy,
404
568
  headersMapper: Mappers.BlobContainersGetImmutabilityPolicyHeaders
405
- },
406
- default: {
407
- bodyMapper: Mappers.CloudError,
408
- headersMapper: Mappers.BlobContainersGetImmutabilityPolicyHeaders
409
569
  }
410
570
  },
411
- serializer: serializer
412
- };
413
- var deleteImmutabilityPolicyOperationSpec = {
414
- httpMethod: "DELETE",
415
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/default/containers/{containerName}/immutabilityPolicies/{immutabilityPolicyName}",
571
+ queryParameters: [Parameters.apiVersion],
416
572
  urlParameters: [
573
+ Parameters.$host,
574
+ Parameters.subscriptionId,
417
575
  Parameters.resourceGroupName,
418
- Parameters.accountName,
576
+ Parameters.accountName1,
419
577
  Parameters.containerName,
420
- Parameters.immutabilityPolicyName,
421
- Parameters.subscriptionId
422
- ],
423
- queryParameters: [
424
- Parameters.apiVersion
425
- ],
426
- headerParameters: [
427
- Parameters.ifMatch1,
428
- Parameters.acceptLanguage
578
+ Parameters.immutabilityPolicyName
429
579
  ],
580
+ headerParameters: [Parameters.accept, Parameters.ifMatch],
581
+ serializer
582
+ };
583
+ const deleteImmutabilityPolicyOperationSpec = {
584
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/default/containers/{containerName}/immutabilityPolicies/{immutabilityPolicyName}",
585
+ httpMethod: "DELETE",
430
586
  responses: {
431
587
  200: {
432
588
  bodyMapper: Mappers.ImmutabilityPolicy,
433
589
  headersMapper: Mappers.BlobContainersDeleteImmutabilityPolicyHeaders
434
- },
435
- default: {
436
- bodyMapper: Mappers.CloudError,
437
- headersMapper: Mappers.BlobContainersDeleteImmutabilityPolicyHeaders
438
590
  }
439
591
  },
440
- serializer: serializer
441
- };
442
- var lockImmutabilityPolicyOperationSpec = {
443
- httpMethod: "POST",
444
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/default/containers/{containerName}/immutabilityPolicies/default/lock",
592
+ queryParameters: [Parameters.apiVersion],
445
593
  urlParameters: [
594
+ Parameters.$host,
595
+ Parameters.subscriptionId,
446
596
  Parameters.resourceGroupName,
447
- Parameters.accountName,
597
+ Parameters.accountName1,
448
598
  Parameters.containerName,
449
- Parameters.subscriptionId
450
- ],
451
- queryParameters: [
452
- Parameters.apiVersion
453
- ],
454
- headerParameters: [
455
- Parameters.ifMatch1,
456
- Parameters.acceptLanguage
599
+ Parameters.immutabilityPolicyName
457
600
  ],
601
+ headerParameters: [Parameters.accept, Parameters.ifMatch1],
602
+ serializer
603
+ };
604
+ const lockImmutabilityPolicyOperationSpec = {
605
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/default/containers/{containerName}/immutabilityPolicies/default/lock",
606
+ httpMethod: "POST",
458
607
  responses: {
459
608
  200: {
460
609
  bodyMapper: Mappers.ImmutabilityPolicy,
461
610
  headersMapper: Mappers.BlobContainersLockImmutabilityPolicyHeaders
462
- },
463
- default: {
464
- bodyMapper: Mappers.CloudError,
465
- headersMapper: Mappers.BlobContainersLockImmutabilityPolicyHeaders
466
611
  }
467
612
  },
468
- serializer: serializer
469
- };
470
- var extendImmutabilityPolicyOperationSpec = {
471
- httpMethod: "POST",
472
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/default/containers/{containerName}/immutabilityPolicies/default/extend",
613
+ queryParameters: [Parameters.apiVersion],
473
614
  urlParameters: [
615
+ Parameters.$host,
616
+ Parameters.subscriptionId,
474
617
  Parameters.resourceGroupName,
475
- Parameters.accountName,
476
- Parameters.containerName,
477
- Parameters.subscriptionId
478
- ],
479
- queryParameters: [
480
- Parameters.apiVersion
618
+ Parameters.accountName1,
619
+ Parameters.containerName
481
620
  ],
482
- headerParameters: [
483
- Parameters.ifMatch1,
484
- Parameters.acceptLanguage
485
- ],
486
- requestBody: {
487
- parameterPath: {
488
- immutabilityPeriodSinceCreationInDays: [
489
- "options",
490
- "immutabilityPeriodSinceCreationInDays"
491
- ],
492
- allowProtectedAppendWrites: [
493
- "options",
494
- "allowProtectedAppendWrites"
495
- ]
496
- },
497
- mapper: Mappers.ImmutabilityPolicy
498
- },
621
+ headerParameters: [Parameters.accept, Parameters.ifMatch1],
622
+ serializer
623
+ };
624
+ const extendImmutabilityPolicyOperationSpec = {
625
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/default/containers/{containerName}/immutabilityPolicies/default/extend",
626
+ httpMethod: "POST",
499
627
  responses: {
500
628
  200: {
501
629
  bodyMapper: Mappers.ImmutabilityPolicy,
502
630
  headersMapper: Mappers.BlobContainersExtendImmutabilityPolicyHeaders
503
- },
504
- default: {
505
- bodyMapper: Mappers.CloudError,
506
- headersMapper: Mappers.BlobContainersExtendImmutabilityPolicyHeaders
507
631
  }
508
632
  },
509
- serializer: serializer
510
- };
511
- var leaseOperationSpec = {
512
- httpMethod: "POST",
513
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/default/containers/{containerName}/lease",
633
+ requestBody: Parameters.parameters6,
634
+ queryParameters: [Parameters.apiVersion],
514
635
  urlParameters: [
636
+ Parameters.$host,
637
+ Parameters.subscriptionId,
515
638
  Parameters.resourceGroupName,
516
- Parameters.accountName,
517
- Parameters.containerName,
518
- Parameters.subscriptionId
519
- ],
520
- queryParameters: [
521
- Parameters.apiVersion
639
+ Parameters.accountName1,
640
+ Parameters.containerName
522
641
  ],
523
642
  headerParameters: [
524
- Parameters.acceptLanguage
643
+ Parameters.accept,
644
+ Parameters.contentType,
645
+ Parameters.ifMatch1
525
646
  ],
526
- requestBody: {
527
- parameterPath: [
528
- "options",
529
- "parameters"
530
- ],
531
- mapper: Mappers.LeaseContainerRequest
532
- },
647
+ mediaType: "json",
648
+ serializer
649
+ };
650
+ const leaseOperationSpec = {
651
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/default/containers/{containerName}/lease",
652
+ httpMethod: "POST",
533
653
  responses: {
534
654
  200: {
535
655
  bodyMapper: Mappers.LeaseContainerResponse
536
- },
656
+ }
657
+ },
658
+ requestBody: Parameters.parameters7,
659
+ queryParameters: [Parameters.apiVersion],
660
+ urlParameters: [
661
+ Parameters.$host,
662
+ Parameters.subscriptionId,
663
+ Parameters.resourceGroupName,
664
+ Parameters.accountName1,
665
+ Parameters.containerName
666
+ ],
667
+ headerParameters: [Parameters.accept, Parameters.contentType],
668
+ mediaType: "json",
669
+ serializer
670
+ };
671
+ const objectLevelWormOperationSpec = {
672
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/default/containers/{containerName}/migrate",
673
+ httpMethod: "POST",
674
+ responses: {
675
+ 200: {},
676
+ 201: {},
677
+ 202: {},
678
+ 204: {},
537
679
  default: {
538
680
  bodyMapper: Mappers.CloudError
539
681
  }
540
682
  },
541
- serializer: serializer
542
- };
543
- var listNextOperationSpec = {
544
- httpMethod: "GET",
545
- baseUrl: "https://management.azure.com",
546
- path: "{nextLink}",
683
+ queryParameters: [Parameters.apiVersion],
547
684
  urlParameters: [
548
- Parameters.nextPageLink
685
+ Parameters.$host,
686
+ Parameters.subscriptionId,
687
+ Parameters.resourceGroupName,
688
+ Parameters.accountName1,
689
+ Parameters.containerName
549
690
  ],
691
+ headerParameters: [Parameters.accept],
692
+ serializer
693
+ };
694
+ const listNextOperationSpec = {
695
+ path: "{nextLink}",
696
+ httpMethod: "GET",
697
+ responses: {
698
+ 200: {
699
+ bodyMapper: Mappers.ListContainerItems
700
+ }
701
+ },
550
702
  queryParameters: [
551
703
  Parameters.apiVersion,
552
704
  Parameters.maxpagesize,
553
705
  Parameters.filter,
554
706
  Parameters.include
555
707
  ],
556
- headerParameters: [
557
- Parameters.acceptLanguage
708
+ urlParameters: [
709
+ Parameters.$host,
710
+ Parameters.subscriptionId,
711
+ Parameters.resourceGroupName,
712
+ Parameters.accountName1,
713
+ Parameters.nextLink
558
714
  ],
559
- responses: {
560
- 200: {
561
- bodyMapper: Mappers.ListContainerItems
562
- },
563
- default: {
564
- bodyMapper: Mappers.CloudError
565
- }
566
- },
567
- serializer: serializer
715
+ headerParameters: [Parameters.accept],
716
+ serializer
568
717
  };
569
718
  //# sourceMappingURL=blobContainers.js.map