@azure/arm-storage 17.0.0-alpha.20211015.4 → 17.0.0

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 (401) hide show
  1. package/CHANGELOG.md +6 -21
  2. package/README.md +15 -9
  3. package/dist/index.js +474 -591
  4. package/dist/index.js.map +1 -1
  5. package/dist/index.min.js +1 -1
  6. package/dist/index.min.js.map +1 -1
  7. package/dist-esm/src/index.d.ts +5 -0
  8. package/dist-esm/src/index.d.ts.map +1 -0
  9. package/{esm → dist-esm/src}/index.js +0 -1
  10. package/dist-esm/src/index.js.map +1 -0
  11. package/dist-esm/src/lroImpl.d.ts +16 -0
  12. package/dist-esm/src/lroImpl.d.ts.map +1 -0
  13. package/dist-esm/src/lroImpl.js +29 -0
  14. package/dist-esm/src/lroImpl.js.map +1 -0
  15. package/{esm → dist-esm/src}/models/index.d.ts +157 -51
  16. package/dist-esm/src/models/index.d.ts.map +1 -0
  17. package/{esm → dist-esm/src}/models/index.js +13 -1
  18. package/dist-esm/src/models/index.js.map +1 -0
  19. package/{esm → dist-esm/src}/models/mappers.d.ts +5 -2
  20. package/dist-esm/src/models/mappers.d.ts.map +1 -0
  21. package/{esm → dist-esm/src}/models/mappers.js +214 -32
  22. package/dist-esm/src/models/mappers.js.map +1 -0
  23. package/{esm → dist-esm/src}/models/parameters.d.ts +1 -0
  24. package/dist-esm/src/models/parameters.d.ts.map +1 -0
  25. package/{esm → dist-esm/src}/models/parameters.js +11 -1
  26. package/dist-esm/src/models/parameters.js.map +1 -0
  27. package/{esm → dist-esm/src}/operations/blobContainers.d.ts +3 -4
  28. package/dist-esm/src/operations/blobContainers.d.ts.map +1 -0
  29. package/{esm → dist-esm/src}/operations/blobContainers.js +9 -6
  30. package/dist-esm/src/operations/blobContainers.js.map +1 -0
  31. package/{esm → dist-esm/src}/operations/blobInventoryPolicies.d.ts +3 -4
  32. package/dist-esm/src/operations/blobInventoryPolicies.d.ts.map +1 -0
  33. package/{esm → dist-esm/src}/operations/blobInventoryPolicies.js +1 -2
  34. package/dist-esm/src/operations/blobInventoryPolicies.js.map +1 -0
  35. package/{esm → dist-esm/src}/operations/blobServices.d.ts +3 -4
  36. package/dist-esm/src/operations/blobServices.d.ts.map +1 -0
  37. package/{esm → dist-esm/src}/operations/blobServices.js +1 -2
  38. package/dist-esm/src/operations/blobServices.js.map +1 -0
  39. package/{esm → dist-esm/src}/operations/deletedAccounts.d.ts +3 -4
  40. package/dist-esm/src/operations/deletedAccounts.d.ts.map +1 -0
  41. package/{esm → dist-esm/src}/operations/deletedAccounts.js +1 -2
  42. package/dist-esm/src/operations/deletedAccounts.js.map +1 -0
  43. package/{esm → dist-esm/src}/operations/encryptionScopes.d.ts +3 -4
  44. package/dist-esm/src/operations/encryptionScopes.d.ts.map +1 -0
  45. package/{esm → dist-esm/src}/operations/encryptionScopes.js +1 -2
  46. package/dist-esm/src/operations/encryptionScopes.js.map +1 -0
  47. package/{esm → dist-esm/src}/operations/fileServices.d.ts +3 -3
  48. package/dist-esm/src/operations/fileServices.d.ts.map +1 -0
  49. package/{esm → dist-esm/src}/operations/fileServices.js +1 -1
  50. package/dist-esm/src/operations/fileServices.js.map +1 -0
  51. package/{esm → dist-esm/src}/operations/fileShares.d.ts +3 -4
  52. package/dist-esm/src/operations/fileShares.d.ts.map +1 -0
  53. package/{esm → dist-esm/src}/operations/fileShares.js +1 -2
  54. package/dist-esm/src/operations/fileShares.js.map +1 -0
  55. package/{esm → dist-esm/src}/operations/index.d.ts +0 -0
  56. package/dist-esm/src/operations/index.d.ts.map +1 -0
  57. package/{esm → dist-esm/src}/operations/index.js +0 -0
  58. package/dist-esm/src/operations/index.js.map +1 -0
  59. package/{esm → dist-esm/src}/operations/managementPolicies.d.ts +3 -3
  60. package/dist-esm/src/operations/managementPolicies.d.ts.map +1 -0
  61. package/{esm → dist-esm/src}/operations/managementPolicies.js +1 -1
  62. package/dist-esm/src/operations/managementPolicies.js.map +1 -0
  63. package/{esm → dist-esm/src}/operations/objectReplicationPoliciesOperations.d.ts +8 -9
  64. package/dist-esm/src/operations/objectReplicationPoliciesOperations.d.ts.map +1 -0
  65. package/{esm → dist-esm/src}/operations/objectReplicationPoliciesOperations.js +1 -2
  66. package/dist-esm/src/operations/objectReplicationPoliciesOperations.js.map +1 -0
  67. package/{esm → dist-esm/src}/operations/operations.d.ts +3 -4
  68. package/dist-esm/src/operations/operations.d.ts.map +1 -0
  69. package/{esm → dist-esm/src}/operations/operations.js +1 -2
  70. package/dist-esm/src/operations/operations.js.map +1 -0
  71. package/{esm → dist-esm/src}/operations/privateEndpointConnections.d.ts +3 -4
  72. package/dist-esm/src/operations/privateEndpointConnections.d.ts.map +1 -0
  73. package/{esm → dist-esm/src}/operations/privateEndpointConnections.js +1 -2
  74. package/dist-esm/src/operations/privateEndpointConnections.js.map +1 -0
  75. package/{esm → dist-esm/src}/operations/privateLinkResources.d.ts +3 -3
  76. package/dist-esm/src/operations/privateLinkResources.d.ts.map +1 -0
  77. package/{esm → dist-esm/src}/operations/privateLinkResources.js +1 -1
  78. package/dist-esm/src/operations/privateLinkResources.js.map +1 -0
  79. package/{esm → dist-esm/src}/operations/queue.d.ts +3 -4
  80. package/dist-esm/src/operations/queue.d.ts.map +1 -0
  81. package/{esm → dist-esm/src}/operations/queue.js +1 -2
  82. package/dist-esm/src/operations/queue.js.map +1 -0
  83. package/{esm → dist-esm/src}/operations/queueServices.d.ts +3 -3
  84. package/dist-esm/src/operations/queueServices.d.ts.map +1 -0
  85. package/{esm → dist-esm/src}/operations/queueServices.js +1 -1
  86. package/dist-esm/src/operations/queueServices.js.map +1 -0
  87. package/{esm → dist-esm/src}/operations/skus.d.ts +3 -4
  88. package/dist-esm/src/operations/skus.d.ts.map +1 -0
  89. package/{esm → dist-esm/src}/operations/skus.js +1 -2
  90. package/dist-esm/src/operations/skus.js.map +1 -0
  91. package/{esm/operationsInterfaces → dist-esm/src/operations}/storageAccounts.d.ts +91 -4
  92. package/dist-esm/src/operations/storageAccounts.d.ts.map +1 -0
  93. package/{esm → dist-esm/src}/operations/storageAccounts.js +184 -10
  94. package/dist-esm/src/operations/storageAccounts.js.map +1 -0
  95. package/{esm → dist-esm/src}/operations/tableOperations.d.ts +9 -10
  96. package/dist-esm/src/operations/tableOperations.d.ts.map +1 -0
  97. package/{esm → dist-esm/src}/operations/tableOperations.js +1 -2
  98. package/dist-esm/src/operations/tableOperations.js.map +1 -0
  99. package/{esm → dist-esm/src}/operations/tableServices.d.ts +3 -3
  100. package/dist-esm/src/operations/tableServices.d.ts.map +1 -0
  101. package/{esm → dist-esm/src}/operations/tableServices.js +1 -1
  102. package/dist-esm/src/operations/tableServices.js.map +1 -0
  103. package/{esm → dist-esm/src}/operations/usages.d.ts +3 -4
  104. package/dist-esm/src/operations/usages.d.ts.map +1 -0
  105. package/{esm → dist-esm/src}/operations/usages.js +1 -2
  106. package/dist-esm/src/operations/usages.js.map +1 -0
  107. package/{esm → dist-esm/src}/operationsInterfaces/blobContainers.d.ts +0 -1
  108. package/dist-esm/src/operationsInterfaces/blobContainers.d.ts.map +1 -0
  109. package/dist-esm/src/operationsInterfaces/blobContainers.js +9 -0
  110. package/dist-esm/src/operationsInterfaces/blobContainers.js.map +1 -0
  111. package/{esm → dist-esm/src}/operationsInterfaces/blobInventoryPolicies.d.ts +0 -1
  112. package/dist-esm/src/operationsInterfaces/blobInventoryPolicies.d.ts.map +1 -0
  113. package/dist-esm/src/operationsInterfaces/blobInventoryPolicies.js +9 -0
  114. package/dist-esm/src/operationsInterfaces/blobInventoryPolicies.js.map +1 -0
  115. package/{esm → dist-esm/src}/operationsInterfaces/blobServices.d.ts +0 -1
  116. package/dist-esm/src/operationsInterfaces/blobServices.d.ts.map +1 -0
  117. package/dist-esm/src/operationsInterfaces/blobServices.js +9 -0
  118. package/dist-esm/src/operationsInterfaces/blobServices.js.map +1 -0
  119. package/{esm → dist-esm/src}/operationsInterfaces/deletedAccounts.d.ts +0 -1
  120. package/dist-esm/src/operationsInterfaces/deletedAccounts.d.ts.map +1 -0
  121. package/dist-esm/src/operationsInterfaces/deletedAccounts.js +9 -0
  122. package/dist-esm/src/operationsInterfaces/deletedAccounts.js.map +1 -0
  123. package/{esm → dist-esm/src}/operationsInterfaces/encryptionScopes.d.ts +0 -1
  124. package/dist-esm/src/operationsInterfaces/encryptionScopes.d.ts.map +1 -0
  125. package/dist-esm/src/operationsInterfaces/encryptionScopes.js +9 -0
  126. package/dist-esm/src/operationsInterfaces/encryptionScopes.js.map +1 -0
  127. package/{esm → dist-esm/src}/operationsInterfaces/fileServices.d.ts +0 -0
  128. package/dist-esm/src/operationsInterfaces/fileServices.d.ts.map +1 -0
  129. package/{esm → dist-esm/src}/operationsInterfaces/fileServices.js +0 -0
  130. package/dist-esm/src/operationsInterfaces/fileServices.js.map +1 -0
  131. package/{esm → dist-esm/src}/operationsInterfaces/fileShares.d.ts +0 -1
  132. package/dist-esm/src/operationsInterfaces/fileShares.d.ts.map +1 -0
  133. package/dist-esm/src/operationsInterfaces/fileShares.js +9 -0
  134. package/dist-esm/src/operationsInterfaces/fileShares.js.map +1 -0
  135. package/{esm → dist-esm/src}/operationsInterfaces/index.d.ts +0 -0
  136. package/{esm/operations/index.js.map → dist-esm/src/operationsInterfaces/index.d.ts.map} +1 -1
  137. package/{esm → dist-esm/src}/operationsInterfaces/index.js +0 -0
  138. package/dist-esm/src/operationsInterfaces/index.js.map +1 -0
  139. package/{esm → dist-esm/src}/operationsInterfaces/managementPolicies.d.ts +0 -0
  140. package/dist-esm/src/operationsInterfaces/managementPolicies.d.ts.map +1 -0
  141. package/{esm → dist-esm/src}/operationsInterfaces/managementPolicies.js +0 -0
  142. package/dist-esm/src/operationsInterfaces/managementPolicies.js.map +1 -0
  143. package/{esm → dist-esm/src}/operationsInterfaces/objectReplicationPoliciesOperations.d.ts +5 -6
  144. package/dist-esm/src/operationsInterfaces/objectReplicationPoliciesOperations.d.ts.map +1 -0
  145. package/dist-esm/src/operationsInterfaces/objectReplicationPoliciesOperations.js +9 -0
  146. package/dist-esm/src/operationsInterfaces/objectReplicationPoliciesOperations.js.map +1 -0
  147. package/{esm → dist-esm/src}/operationsInterfaces/operations.d.ts +0 -1
  148. package/dist-esm/src/operationsInterfaces/operations.d.ts.map +1 -0
  149. package/dist-esm/src/operationsInterfaces/operations.js +9 -0
  150. package/dist-esm/src/operationsInterfaces/operations.js.map +1 -0
  151. package/{esm → dist-esm/src}/operationsInterfaces/privateEndpointConnections.d.ts +0 -1
  152. package/dist-esm/src/operationsInterfaces/privateEndpointConnections.d.ts.map +1 -0
  153. package/dist-esm/src/operationsInterfaces/privateEndpointConnections.js +9 -0
  154. package/dist-esm/src/operationsInterfaces/privateEndpointConnections.js.map +1 -0
  155. package/{esm → dist-esm/src}/operationsInterfaces/privateLinkResources.d.ts +0 -0
  156. package/dist-esm/src/operationsInterfaces/privateLinkResources.d.ts.map +1 -0
  157. package/{esm → dist-esm/src}/operationsInterfaces/privateLinkResources.js +0 -0
  158. package/dist-esm/src/operationsInterfaces/privateLinkResources.js.map +1 -0
  159. package/{esm → dist-esm/src}/operationsInterfaces/queue.d.ts +0 -1
  160. package/dist-esm/src/operationsInterfaces/queue.d.ts.map +1 -0
  161. package/dist-esm/src/operationsInterfaces/queue.js +9 -0
  162. package/dist-esm/src/operationsInterfaces/queue.js.map +1 -0
  163. package/{esm → dist-esm/src}/operationsInterfaces/queueServices.d.ts +0 -0
  164. package/dist-esm/src/operationsInterfaces/queueServices.d.ts.map +1 -0
  165. package/{esm → dist-esm/src}/operationsInterfaces/queueServices.js +0 -0
  166. package/dist-esm/src/operationsInterfaces/queueServices.js.map +1 -0
  167. package/{esm → dist-esm/src}/operationsInterfaces/skus.d.ts +0 -1
  168. package/dist-esm/src/operationsInterfaces/skus.d.ts.map +1 -0
  169. package/dist-esm/src/operationsInterfaces/skus.js +9 -0
  170. package/dist-esm/src/operationsInterfaces/skus.js.map +1 -0
  171. package/{esm/operations → dist-esm/src/operationsInterfaces}/storageAccounts.d.ts +51 -44
  172. package/dist-esm/src/operationsInterfaces/storageAccounts.d.ts.map +1 -0
  173. package/dist-esm/src/operationsInterfaces/storageAccounts.js +9 -0
  174. package/dist-esm/src/operationsInterfaces/storageAccounts.js.map +1 -0
  175. package/{esm → dist-esm/src}/operationsInterfaces/tableOperations.d.ts +6 -7
  176. package/dist-esm/src/operationsInterfaces/tableOperations.d.ts.map +1 -0
  177. package/dist-esm/src/operationsInterfaces/tableOperations.js +9 -0
  178. package/dist-esm/src/operationsInterfaces/tableOperations.js.map +1 -0
  179. package/{esm → dist-esm/src}/operationsInterfaces/tableServices.d.ts +0 -0
  180. package/dist-esm/src/operationsInterfaces/tableServices.d.ts.map +1 -0
  181. package/{esm → dist-esm/src}/operationsInterfaces/tableServices.js +0 -0
  182. package/dist-esm/src/operationsInterfaces/tableServices.js.map +1 -0
  183. package/{esm → dist-esm/src}/operationsInterfaces/usages.d.ts +0 -1
  184. package/dist-esm/src/operationsInterfaces/usages.d.ts.map +1 -0
  185. package/dist-esm/src/operationsInterfaces/usages.js +9 -0
  186. package/dist-esm/src/operationsInterfaces/usages.js.map +1 -0
  187. package/{esm → dist-esm/src}/storageManagementClient.d.ts +5 -2
  188. package/dist-esm/src/storageManagementClient.d.ts.map +1 -0
  189. package/{esm → dist-esm/src}/storageManagementClient.js +32 -3
  190. package/dist-esm/src/storageManagementClient.js.map +1 -0
  191. package/dist-esm/test/storage_examples.d.ts +4 -0
  192. package/dist-esm/test/storage_examples.d.ts.map +1 -0
  193. package/dist-esm/test/storage_examples.js +196 -0
  194. package/dist-esm/test/storage_examples.js.map +1 -0
  195. package/package.json +27 -33
  196. package/review/arm-storage.api.md +122 -51
  197. package/src/index.ts +0 -1
  198. package/src/lroImpl.ts +34 -0
  199. package/src/models/index.ts +167 -52
  200. package/src/models/mappers.ts +230 -37
  201. package/src/models/parameters.ts +12 -1
  202. package/src/operations/blobContainers.ts +13 -12
  203. package/src/operations/blobInventoryPolicies.ts +4 -5
  204. package/src/operations/blobServices.ts +4 -5
  205. package/src/operations/deletedAccounts.ts +4 -5
  206. package/src/operations/encryptionScopes.ts +4 -5
  207. package/src/operations/fileServices.ts +4 -4
  208. package/src/operations/fileShares.ts +4 -5
  209. package/src/operations/managementPolicies.ts +4 -4
  210. package/src/operations/objectReplicationPoliciesOperations.ts +21 -22
  211. package/src/operations/operations.ts +4 -5
  212. package/src/operations/privateEndpointConnections.ts +4 -5
  213. package/src/operations/privateLinkResources.ts +4 -4
  214. package/src/operations/queue.ts +4 -5
  215. package/src/operations/queueServices.ts +4 -4
  216. package/src/operations/skus.ts +4 -5
  217. package/src/operations/storageAccounts.ts +258 -18
  218. package/src/operations/tableOperations.ts +29 -30
  219. package/src/operations/tableServices.ts +4 -4
  220. package/src/operations/usages.ts +4 -5
  221. package/src/operationsInterfaces/blobContainers.ts +0 -1
  222. package/src/operationsInterfaces/blobInventoryPolicies.ts +0 -1
  223. package/src/operationsInterfaces/blobServices.ts +0 -1
  224. package/src/operationsInterfaces/deletedAccounts.ts +0 -1
  225. package/src/operationsInterfaces/encryptionScopes.ts +0 -1
  226. package/src/operationsInterfaces/fileShares.ts +0 -1
  227. package/src/operationsInterfaces/objectReplicationPoliciesOperations.ts +12 -13
  228. package/src/operationsInterfaces/operations.ts +0 -1
  229. package/src/operationsInterfaces/privateEndpointConnections.ts +0 -1
  230. package/src/operationsInterfaces/queue.ts +0 -1
  231. package/src/operationsInterfaces/skus.ts +0 -1
  232. package/src/operationsInterfaces/storageAccounts.ts +68 -1
  233. package/src/operationsInterfaces/tableOperations.ts +16 -17
  234. package/src/operationsInterfaces/usages.ts +0 -1
  235. package/src/storageManagementClient.ts +46 -3
  236. package/tsconfig.json +2 -3
  237. package/{esm/index.d.ts → types/arm-storage.d.ts} +247 -94
  238. package/types/tsdoc-metadata.json +11 -0
  239. package/esm/coreClientLro.d.ts +0 -26
  240. package/esm/coreClientLro.d.ts.map +0 -1
  241. package/esm/coreClientLro.js +0 -186
  242. package/esm/coreClientLro.js.map +0 -1
  243. package/esm/index.d.ts.map +0 -1
  244. package/esm/index.js.map +0 -1
  245. package/esm/lro/azureAsyncPolling.d.ts +0 -3
  246. package/esm/lro/azureAsyncPolling.d.ts.map +0 -1
  247. package/esm/lro/azureAsyncPolling.js +0 -67
  248. package/esm/lro/azureAsyncPolling.js.map +0 -1
  249. package/esm/lro/bodyPolling.d.ts +0 -8
  250. package/esm/lro/bodyPolling.d.ts.map +0 -1
  251. package/esm/lro/bodyPolling.js +0 -37
  252. package/esm/lro/bodyPolling.js.map +0 -1
  253. package/esm/lro/index.d.ts +0 -4
  254. package/esm/lro/index.d.ts.map +0 -1
  255. package/esm/lro/index.js +0 -12
  256. package/esm/lro/index.js.map +0 -1
  257. package/esm/lro/locationPolling.d.ts +0 -3
  258. package/esm/lro/locationPolling.d.ts.map +0 -1
  259. package/esm/lro/locationPolling.js +0 -19
  260. package/esm/lro/locationPolling.js.map +0 -1
  261. package/esm/lro/lroEngine.d.ts +0 -14
  262. package/esm/lro/lroEngine.d.ts.map +0 -1
  263. package/esm/lro/lroEngine.js +0 -41
  264. package/esm/lro/lroEngine.js.map +0 -1
  265. package/esm/lro/models.d.ts +0 -138
  266. package/esm/lro/models.d.ts.map +0 -1
  267. package/esm/lro/models.js +0 -14
  268. package/esm/lro/models.js.map +0 -1
  269. package/esm/lro/operation.d.ts +0 -36
  270. package/esm/lro/operation.d.ts.map +0 -1
  271. package/esm/lro/operation.js +0 -82
  272. package/esm/lro/operation.js.map +0 -1
  273. package/esm/lro/passthrough.d.ts +0 -3
  274. package/esm/lro/passthrough.d.ts.map +0 -1
  275. package/esm/lro/passthrough.js +0 -15
  276. package/esm/lro/passthrough.js.map +0 -1
  277. package/esm/lro/requestUtils.d.ts +0 -16
  278. package/esm/lro/requestUtils.d.ts.map +0 -1
  279. package/esm/lro/requestUtils.js +0 -73
  280. package/esm/lro/requestUtils.js.map +0 -1
  281. package/esm/lro/stateMachine.d.ts +0 -18
  282. package/esm/lro/stateMachine.d.ts.map +0 -1
  283. package/esm/lro/stateMachine.js +0 -84
  284. package/esm/lro/stateMachine.js.map +0 -1
  285. package/esm/models/index.d.ts.map +0 -1
  286. package/esm/models/index.js.map +0 -1
  287. package/esm/models/mappers.d.ts.map +0 -1
  288. package/esm/models/mappers.js.map +0 -1
  289. package/esm/models/parameters.d.ts.map +0 -1
  290. package/esm/models/parameters.js.map +0 -1
  291. package/esm/operations/blobContainers.d.ts.map +0 -1
  292. package/esm/operations/blobContainers.js.map +0 -1
  293. package/esm/operations/blobInventoryPolicies.d.ts.map +0 -1
  294. package/esm/operations/blobInventoryPolicies.js.map +0 -1
  295. package/esm/operations/blobServices.d.ts.map +0 -1
  296. package/esm/operations/blobServices.js.map +0 -1
  297. package/esm/operations/deletedAccounts.d.ts.map +0 -1
  298. package/esm/operations/deletedAccounts.js.map +0 -1
  299. package/esm/operations/encryptionScopes.d.ts.map +0 -1
  300. package/esm/operations/encryptionScopes.js.map +0 -1
  301. package/esm/operations/fileServices.d.ts.map +0 -1
  302. package/esm/operations/fileServices.js.map +0 -1
  303. package/esm/operations/fileShares.d.ts.map +0 -1
  304. package/esm/operations/fileShares.js.map +0 -1
  305. package/esm/operations/index.d.ts.map +0 -1
  306. package/esm/operations/managementPolicies.d.ts.map +0 -1
  307. package/esm/operations/managementPolicies.js.map +0 -1
  308. package/esm/operations/objectReplicationPoliciesOperations.d.ts.map +0 -1
  309. package/esm/operations/objectReplicationPoliciesOperations.js.map +0 -1
  310. package/esm/operations/operations.d.ts.map +0 -1
  311. package/esm/operations/operations.js.map +0 -1
  312. package/esm/operations/privateEndpointConnections.d.ts.map +0 -1
  313. package/esm/operations/privateEndpointConnections.js.map +0 -1
  314. package/esm/operations/privateLinkResources.d.ts.map +0 -1
  315. package/esm/operations/privateLinkResources.js.map +0 -1
  316. package/esm/operations/queue.d.ts.map +0 -1
  317. package/esm/operations/queue.js.map +0 -1
  318. package/esm/operations/queueServices.d.ts.map +0 -1
  319. package/esm/operations/queueServices.js.map +0 -1
  320. package/esm/operations/skus.d.ts.map +0 -1
  321. package/esm/operations/skus.js.map +0 -1
  322. package/esm/operations/storageAccounts.d.ts.map +0 -1
  323. package/esm/operations/storageAccounts.js.map +0 -1
  324. package/esm/operations/tableOperations.d.ts.map +0 -1
  325. package/esm/operations/tableOperations.js.map +0 -1
  326. package/esm/operations/tableServices.d.ts.map +0 -1
  327. package/esm/operations/tableServices.js.map +0 -1
  328. package/esm/operations/usages.d.ts.map +0 -1
  329. package/esm/operations/usages.js.map +0 -1
  330. package/esm/operationsInterfaces/blobContainers.d.ts.map +0 -1
  331. package/esm/operationsInterfaces/blobContainers.js +0 -9
  332. package/esm/operationsInterfaces/blobContainers.js.map +0 -1
  333. package/esm/operationsInterfaces/blobInventoryPolicies.d.ts.map +0 -1
  334. package/esm/operationsInterfaces/blobInventoryPolicies.js +0 -9
  335. package/esm/operationsInterfaces/blobInventoryPolicies.js.map +0 -1
  336. package/esm/operationsInterfaces/blobServices.d.ts.map +0 -1
  337. package/esm/operationsInterfaces/blobServices.js +0 -9
  338. package/esm/operationsInterfaces/blobServices.js.map +0 -1
  339. package/esm/operationsInterfaces/deletedAccounts.d.ts.map +0 -1
  340. package/esm/operationsInterfaces/deletedAccounts.js +0 -9
  341. package/esm/operationsInterfaces/deletedAccounts.js.map +0 -1
  342. package/esm/operationsInterfaces/encryptionScopes.d.ts.map +0 -1
  343. package/esm/operationsInterfaces/encryptionScopes.js +0 -9
  344. package/esm/operationsInterfaces/encryptionScopes.js.map +0 -1
  345. package/esm/operationsInterfaces/fileServices.d.ts.map +0 -1
  346. package/esm/operationsInterfaces/fileServices.js.map +0 -1
  347. package/esm/operationsInterfaces/fileShares.d.ts.map +0 -1
  348. package/esm/operationsInterfaces/fileShares.js +0 -9
  349. package/esm/operationsInterfaces/fileShares.js.map +0 -1
  350. package/esm/operationsInterfaces/index.d.ts.map +0 -1
  351. package/esm/operationsInterfaces/index.js.map +0 -1
  352. package/esm/operationsInterfaces/managementPolicies.d.ts.map +0 -1
  353. package/esm/operationsInterfaces/managementPolicies.js.map +0 -1
  354. package/esm/operationsInterfaces/objectReplicationPoliciesOperations.d.ts.map +0 -1
  355. package/esm/operationsInterfaces/objectReplicationPoliciesOperations.js +0 -9
  356. package/esm/operationsInterfaces/objectReplicationPoliciesOperations.js.map +0 -1
  357. package/esm/operationsInterfaces/operations.d.ts.map +0 -1
  358. package/esm/operationsInterfaces/operations.js +0 -9
  359. package/esm/operationsInterfaces/operations.js.map +0 -1
  360. package/esm/operationsInterfaces/privateEndpointConnections.d.ts.map +0 -1
  361. package/esm/operationsInterfaces/privateEndpointConnections.js +0 -9
  362. package/esm/operationsInterfaces/privateEndpointConnections.js.map +0 -1
  363. package/esm/operationsInterfaces/privateLinkResources.d.ts.map +0 -1
  364. package/esm/operationsInterfaces/privateLinkResources.js.map +0 -1
  365. package/esm/operationsInterfaces/queue.d.ts.map +0 -1
  366. package/esm/operationsInterfaces/queue.js +0 -9
  367. package/esm/operationsInterfaces/queue.js.map +0 -1
  368. package/esm/operationsInterfaces/queueServices.d.ts.map +0 -1
  369. package/esm/operationsInterfaces/queueServices.js.map +0 -1
  370. package/esm/operationsInterfaces/skus.d.ts.map +0 -1
  371. package/esm/operationsInterfaces/skus.js +0 -9
  372. package/esm/operationsInterfaces/skus.js.map +0 -1
  373. package/esm/operationsInterfaces/storageAccounts.d.ts.map +0 -1
  374. package/esm/operationsInterfaces/storageAccounts.js +0 -9
  375. package/esm/operationsInterfaces/storageAccounts.js.map +0 -1
  376. package/esm/operationsInterfaces/tableOperations.d.ts.map +0 -1
  377. package/esm/operationsInterfaces/tableOperations.js +0 -9
  378. package/esm/operationsInterfaces/tableOperations.js.map +0 -1
  379. package/esm/operationsInterfaces/tableServices.d.ts.map +0 -1
  380. package/esm/operationsInterfaces/tableServices.js.map +0 -1
  381. package/esm/operationsInterfaces/usages.d.ts.map +0 -1
  382. package/esm/operationsInterfaces/usages.js +0 -9
  383. package/esm/operationsInterfaces/usages.js.map +0 -1
  384. package/esm/storageManagementClient.d.ts.map +0 -1
  385. package/esm/storageManagementClient.js.map +0 -1
  386. package/esm/storageManagementClientContext.d.ts +0 -16
  387. package/esm/storageManagementClientContext.d.ts.map +0 -1
  388. package/esm/storageManagementClientContext.js +0 -49
  389. package/esm/storageManagementClientContext.js.map +0 -1
  390. package/src/coreClientLro.ts +0 -323
  391. package/src/lro/azureAsyncPolling.ts +0 -96
  392. package/src/lro/bodyPolling.ts +0 -54
  393. package/src/lro/index.ts +0 -26
  394. package/src/lro/locationPolling.ts +0 -30
  395. package/src/lro/lroEngine.ts +0 -61
  396. package/src/lro/models.ts +0 -173
  397. package/src/lro/operation.ts +0 -120
  398. package/src/lro/passthrough.ts +0 -23
  399. package/src/lro/requestUtils.ts +0 -105
  400. package/src/lro/stateMachine.ts +0 -138
  401. package/src/storageManagementClientContext.ts +0 -70
@@ -6,16 +6,14 @@
6
6
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
7
  */
8
8
 
9
- import "@azure/core-paging";
10
9
  import { PagedAsyncIterableIterator } from "@azure/core-paging";
11
10
  import { StorageAccounts } from "../operationsInterfaces";
12
11
  import * as coreClient from "@azure/core-client";
13
12
  import * as Mappers from "../models/mappers";
14
13
  import * as Parameters from "../models/parameters";
15
- import { StorageManagementClientContext } from "../storageManagementClientContext";
16
- import { PollerLike, PollOperationState } from "@azure/core-lro";
17
- import { LroEngine } from "../lro";
18
- import { CoreClientLro, shouldDeserializeLro } from "../coreClientLro";
14
+ import { StorageManagementClient } from "../storageManagementClient";
15
+ import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro";
16
+ import { LroImpl } from "../lroImpl";
19
17
  import {
20
18
  StorageAccount,
21
19
  StorageAccountsListNextOptionalParams,
@@ -48,6 +46,8 @@ import {
48
46
  StorageAccountsListServiceSASOptionalParams,
49
47
  StorageAccountsListServiceSASResponse,
50
48
  StorageAccountsFailoverOptionalParams,
49
+ StorageAccountsHierarchicalNamespaceMigrationOptionalParams,
50
+ StorageAccountsAbortHierarchicalNamespaceMigrationOptionalParams,
51
51
  BlobRestoreParameters,
52
52
  StorageAccountsRestoreBlobRangesOptionalParams,
53
53
  StorageAccountsRestoreBlobRangesResponse,
@@ -57,15 +57,15 @@ import {
57
57
  } from "../models";
58
58
 
59
59
  /// <reference lib="esnext.asynciterable" />
60
- /** Class representing a StorageAccounts. */
60
+ /** Class containing StorageAccounts operations. */
61
61
  export class StorageAccountsImpl implements StorageAccounts {
62
- private readonly client: StorageManagementClientContext;
62
+ private readonly client: StorageManagementClient;
63
63
 
64
64
  /**
65
65
  * Initialize a new instance of the class StorageAccounts class.
66
66
  * @param client Reference to the service client
67
67
  */
68
- constructor(client: StorageManagementClientContext) {
68
+ constructor(client: StorageManagementClient) {
69
69
  this.client = client;
70
70
  }
71
71
 
@@ -247,12 +247,15 @@ export class StorageAccountsImpl implements StorageAccounts {
247
247
  };
248
248
  };
249
249
 
250
- const lro = new CoreClientLro(
250
+ const lro = new LroImpl(
251
251
  sendOperation,
252
252
  { resourceGroupName, accountName, parameters, options },
253
253
  createOperationSpec
254
254
  );
255
- return new LroEngine(lro, { intervalInMs: options?.updateIntervalInMs });
255
+ return new LroEngine(lro, {
256
+ resumeFrom: options?.resumeFrom,
257
+ intervalInMs: options?.updateIntervalInMs
258
+ });
256
259
  }
257
260
 
258
261
  /**
@@ -523,13 +526,16 @@ export class StorageAccountsImpl implements StorageAccounts {
523
526
  };
524
527
  };
525
528
 
526
- const lro = new CoreClientLro(
529
+ const lro = new LroImpl(
527
530
  sendOperation,
528
531
  { resourceGroupName, accountName, options },
529
- failoverOperationSpec,
530
- "location"
532
+ failoverOperationSpec
531
533
  );
532
- return new LroEngine(lro, { intervalInMs: options?.updateIntervalInMs });
534
+ return new LroEngine(lro, {
535
+ resumeFrom: options?.resumeFrom,
536
+ intervalInMs: options?.updateIntervalInMs,
537
+ lroResourceLocationConfig: "location"
538
+ });
533
539
  }
534
540
 
535
541
  /**
@@ -556,6 +562,191 @@ export class StorageAccountsImpl implements StorageAccounts {
556
562
  return poller.pollUntilDone();
557
563
  }
558
564
 
565
+ /**
566
+ * Live Migration of storage account to enable Hns
567
+ * @param resourceGroupName The name of the resource group within the user's subscription. The name is
568
+ * case insensitive.
569
+ * @param accountName The name of the storage account within the specified resource group. Storage
570
+ * account names must be between 3 and 24 characters in length and use numbers and lower-case letters
571
+ * only.
572
+ * @param requestType Required. Hierarchical namespace migration type can either be a hierarchical
573
+ * namespace validation request 'HnsOnValidationRequest' or a hydration request
574
+ * 'HnsOnHydrationRequest'. The validation request will validate the migration whereas the hydration
575
+ * request will migrate the account.
576
+ * @param options The options parameters.
577
+ */
578
+ async beginHierarchicalNamespaceMigration(
579
+ resourceGroupName: string,
580
+ accountName: string,
581
+ requestType: string,
582
+ options?: StorageAccountsHierarchicalNamespaceMigrationOptionalParams
583
+ ): Promise<PollerLike<PollOperationState<void>, void>> {
584
+ const directSendOperation = async (
585
+ args: coreClient.OperationArguments,
586
+ spec: coreClient.OperationSpec
587
+ ): Promise<void> => {
588
+ return this.client.sendOperationRequest(args, spec);
589
+ };
590
+ const sendOperation = async (
591
+ args: coreClient.OperationArguments,
592
+ spec: coreClient.OperationSpec
593
+ ) => {
594
+ let currentRawResponse:
595
+ | coreClient.FullOperationResponse
596
+ | undefined = undefined;
597
+ const providedCallback = args.options?.onResponse;
598
+ const callback: coreClient.RawResponseCallback = (
599
+ rawResponse: coreClient.FullOperationResponse,
600
+ flatResponse: unknown
601
+ ) => {
602
+ currentRawResponse = rawResponse;
603
+ providedCallback?.(rawResponse, flatResponse);
604
+ };
605
+ const updatedArgs = {
606
+ ...args,
607
+ options: {
608
+ ...args.options,
609
+ onResponse: callback
610
+ }
611
+ };
612
+ const flatResponse = await directSendOperation(updatedArgs, spec);
613
+ return {
614
+ flatResponse,
615
+ rawResponse: {
616
+ statusCode: currentRawResponse!.status,
617
+ body: currentRawResponse!.parsedBody,
618
+ headers: currentRawResponse!.headers.toJSON()
619
+ }
620
+ };
621
+ };
622
+
623
+ const lro = new LroImpl(
624
+ sendOperation,
625
+ { resourceGroupName, accountName, requestType, options },
626
+ hierarchicalNamespaceMigrationOperationSpec
627
+ );
628
+ return new LroEngine(lro, {
629
+ resumeFrom: options?.resumeFrom,
630
+ intervalInMs: options?.updateIntervalInMs,
631
+ lroResourceLocationConfig: "location"
632
+ });
633
+ }
634
+
635
+ /**
636
+ * Live Migration of storage account to enable Hns
637
+ * @param resourceGroupName The name of the resource group within the user's subscription. The name is
638
+ * case insensitive.
639
+ * @param accountName The name of the storage account within the specified resource group. Storage
640
+ * account names must be between 3 and 24 characters in length and use numbers and lower-case letters
641
+ * only.
642
+ * @param requestType Required. Hierarchical namespace migration type can either be a hierarchical
643
+ * namespace validation request 'HnsOnValidationRequest' or a hydration request
644
+ * 'HnsOnHydrationRequest'. The validation request will validate the migration whereas the hydration
645
+ * request will migrate the account.
646
+ * @param options The options parameters.
647
+ */
648
+ async beginHierarchicalNamespaceMigrationAndWait(
649
+ resourceGroupName: string,
650
+ accountName: string,
651
+ requestType: string,
652
+ options?: StorageAccountsHierarchicalNamespaceMigrationOptionalParams
653
+ ): Promise<void> {
654
+ const poller = await this.beginHierarchicalNamespaceMigration(
655
+ resourceGroupName,
656
+ accountName,
657
+ requestType,
658
+ options
659
+ );
660
+ return poller.pollUntilDone();
661
+ }
662
+
663
+ /**
664
+ * Abort live Migration of storage account to enable Hns
665
+ * @param resourceGroupName The name of the resource group within the user's subscription. The name is
666
+ * case insensitive.
667
+ * @param accountName The name of the storage account within the specified resource group. Storage
668
+ * account names must be between 3 and 24 characters in length and use numbers and lower-case letters
669
+ * only.
670
+ * @param options The options parameters.
671
+ */
672
+ async beginAbortHierarchicalNamespaceMigration(
673
+ resourceGroupName: string,
674
+ accountName: string,
675
+ options?: StorageAccountsAbortHierarchicalNamespaceMigrationOptionalParams
676
+ ): Promise<PollerLike<PollOperationState<void>, void>> {
677
+ const directSendOperation = async (
678
+ args: coreClient.OperationArguments,
679
+ spec: coreClient.OperationSpec
680
+ ): Promise<void> => {
681
+ return this.client.sendOperationRequest(args, spec);
682
+ };
683
+ const sendOperation = async (
684
+ args: coreClient.OperationArguments,
685
+ spec: coreClient.OperationSpec
686
+ ) => {
687
+ let currentRawResponse:
688
+ | coreClient.FullOperationResponse
689
+ | undefined = undefined;
690
+ const providedCallback = args.options?.onResponse;
691
+ const callback: coreClient.RawResponseCallback = (
692
+ rawResponse: coreClient.FullOperationResponse,
693
+ flatResponse: unknown
694
+ ) => {
695
+ currentRawResponse = rawResponse;
696
+ providedCallback?.(rawResponse, flatResponse);
697
+ };
698
+ const updatedArgs = {
699
+ ...args,
700
+ options: {
701
+ ...args.options,
702
+ onResponse: callback
703
+ }
704
+ };
705
+ const flatResponse = await directSendOperation(updatedArgs, spec);
706
+ return {
707
+ flatResponse,
708
+ rawResponse: {
709
+ statusCode: currentRawResponse!.status,
710
+ body: currentRawResponse!.parsedBody,
711
+ headers: currentRawResponse!.headers.toJSON()
712
+ }
713
+ };
714
+ };
715
+
716
+ const lro = new LroImpl(
717
+ sendOperation,
718
+ { resourceGroupName, accountName, options },
719
+ abortHierarchicalNamespaceMigrationOperationSpec
720
+ );
721
+ return new LroEngine(lro, {
722
+ resumeFrom: options?.resumeFrom,
723
+ intervalInMs: options?.updateIntervalInMs,
724
+ lroResourceLocationConfig: "location"
725
+ });
726
+ }
727
+
728
+ /**
729
+ * Abort live Migration of storage account to enable Hns
730
+ * @param resourceGroupName The name of the resource group within the user's subscription. The name is
731
+ * case insensitive.
732
+ * @param accountName The name of the storage account within the specified resource group. Storage
733
+ * account names must be between 3 and 24 characters in length and use numbers and lower-case letters
734
+ * only.
735
+ * @param options The options parameters.
736
+ */
737
+ async beginAbortHierarchicalNamespaceMigrationAndWait(
738
+ resourceGroupName: string,
739
+ accountName: string,
740
+ options?: StorageAccountsAbortHierarchicalNamespaceMigrationOptionalParams
741
+ ): Promise<void> {
742
+ const poller = await this.beginAbortHierarchicalNamespaceMigration(
743
+ resourceGroupName,
744
+ accountName,
745
+ options
746
+ );
747
+ return poller.pollUntilDone();
748
+ }
749
+
559
750
  /**
560
751
  * Restore blobs in the specified blob ranges
561
752
  * @param resourceGroupName The name of the resource group within the user's subscription. The name is
@@ -616,13 +807,16 @@ export class StorageAccountsImpl implements StorageAccounts {
616
807
  };
617
808
  };
618
809
 
619
- const lro = new CoreClientLro(
810
+ const lro = new LroImpl(
620
811
  sendOperation,
621
812
  { resourceGroupName, accountName, parameters, options },
622
- restoreBlobRangesOperationSpec,
623
- "location"
813
+ restoreBlobRangesOperationSpec
624
814
  );
625
- return new LroEngine(lro, { intervalInMs: options?.updateIntervalInMs });
815
+ return new LroEngine(lro, {
816
+ resumeFrom: options?.resumeFrom,
817
+ intervalInMs: options?.updateIntervalInMs,
818
+ lroResourceLocationConfig: "location"
819
+ });
626
820
  }
627
821
 
628
822
  /**
@@ -934,6 +1128,52 @@ const failoverOperationSpec: coreClient.OperationSpec = {
934
1128
  ],
935
1129
  serializer
936
1130
  };
1131
+ const hierarchicalNamespaceMigrationOperationSpec: coreClient.OperationSpec = {
1132
+ path:
1133
+ "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/hnsonmigration",
1134
+ httpMethod: "POST",
1135
+ responses: {
1136
+ 200: {},
1137
+ 201: {},
1138
+ 202: {},
1139
+ 204: {},
1140
+ default: {
1141
+ bodyMapper: Mappers.ErrorResponse
1142
+ }
1143
+ },
1144
+ queryParameters: [Parameters.apiVersion, Parameters.requestType],
1145
+ urlParameters: [
1146
+ Parameters.$host,
1147
+ Parameters.subscriptionId,
1148
+ Parameters.resourceGroupName,
1149
+ Parameters.accountName1
1150
+ ],
1151
+ headerParameters: [Parameters.accept],
1152
+ serializer
1153
+ };
1154
+ const abortHierarchicalNamespaceMigrationOperationSpec: coreClient.OperationSpec = {
1155
+ path:
1156
+ "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/aborthnsonmigration",
1157
+ httpMethod: "POST",
1158
+ responses: {
1159
+ 200: {},
1160
+ 201: {},
1161
+ 202: {},
1162
+ 204: {},
1163
+ default: {
1164
+ bodyMapper: Mappers.ErrorResponse
1165
+ }
1166
+ },
1167
+ queryParameters: [Parameters.apiVersion],
1168
+ urlParameters: [
1169
+ Parameters.$host,
1170
+ Parameters.subscriptionId,
1171
+ Parameters.resourceGroupName,
1172
+ Parameters.accountName1
1173
+ ],
1174
+ headerParameters: [Parameters.accept],
1175
+ serializer
1176
+ };
937
1177
  const restoreBlobRangesOperationSpec: coreClient.OperationSpec = {
938
1178
  path:
939
1179
  "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/restoreBlobRanges",
@@ -6,38 +6,37 @@
6
6
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
7
  */
8
8
 
9
- import "@azure/core-paging";
10
9
  import { PagedAsyncIterableIterator } from "@azure/core-paging";
11
10
  import { TableOperations } from "../operationsInterfaces";
12
11
  import * as coreClient from "@azure/core-client";
13
12
  import * as Mappers from "../models/mappers";
14
13
  import * as Parameters from "../models/parameters";
15
- import { StorageManagementClientContext } from "../storageManagementClientContext";
14
+ import { StorageManagementClient } from "../storageManagementClient";
16
15
  import {
17
16
  Table,
18
- TableOperationsListNextOptionalParams,
19
- TableOperationsListOptionalParams,
20
- TableOperationsCreateOptionalParams,
21
- TableOperationsCreateResponse,
22
- TableOperationsUpdateOptionalParams,
23
- TableOperationsUpdateResponse,
24
- TableOperationsGetOptionalParams,
25
- TableOperationsGetResponse,
26
- TableOperationsDeleteOptionalParams,
27
- TableOperationsListResponse,
28
- TableOperationsListNextResponse
17
+ TableListNextOptionalParams,
18
+ TableListOptionalParams,
19
+ TableCreateOptionalParams,
20
+ TableCreateResponse,
21
+ TableUpdateOptionalParams,
22
+ TableUpdateResponse,
23
+ TableGetOptionalParams,
24
+ TableGetResponse,
25
+ TableDeleteOptionalParams,
26
+ TableListResponse,
27
+ TableListNextResponse
29
28
  } from "../models";
30
29
 
31
30
  /// <reference lib="esnext.asynciterable" />
32
- /** Class representing a TableOperations. */
31
+ /** Class containing TableOperations operations. */
33
32
  export class TableOperationsImpl implements TableOperations {
34
- private readonly client: StorageManagementClientContext;
33
+ private readonly client: StorageManagementClient;
35
34
 
36
35
  /**
37
36
  * Initialize a new instance of the class TableOperations class.
38
37
  * @param client Reference to the service client
39
38
  */
40
- constructor(client: StorageManagementClientContext) {
39
+ constructor(client: StorageManagementClient) {
41
40
  this.client = client;
42
41
  }
43
42
 
@@ -53,7 +52,7 @@ export class TableOperationsImpl implements TableOperations {
53
52
  public list(
54
53
  resourceGroupName: string,
55
54
  accountName: string,
56
- options?: TableOperationsListOptionalParams
55
+ options?: TableListOptionalParams
57
56
  ): PagedAsyncIterableIterator<Table> {
58
57
  const iter = this.listPagingAll(resourceGroupName, accountName, options);
59
58
  return {
@@ -72,7 +71,7 @@ export class TableOperationsImpl implements TableOperations {
72
71
  private async *listPagingPage(
73
72
  resourceGroupName: string,
74
73
  accountName: string,
75
- options?: TableOperationsListOptionalParams
74
+ options?: TableListOptionalParams
76
75
  ): AsyncIterableIterator<Table[]> {
77
76
  let result = await this._list(resourceGroupName, accountName, options);
78
77
  yield result.value || [];
@@ -92,7 +91,7 @@ export class TableOperationsImpl implements TableOperations {
92
91
  private async *listPagingAll(
93
92
  resourceGroupName: string,
94
93
  accountName: string,
95
- options?: TableOperationsListOptionalParams
94
+ options?: TableListOptionalParams
96
95
  ): AsyncIterableIterator<Table> {
97
96
  for await (const page of this.listPagingPage(
98
97
  resourceGroupName,
@@ -119,8 +118,8 @@ export class TableOperationsImpl implements TableOperations {
119
118
  resourceGroupName: string,
120
119
  accountName: string,
121
120
  tableName: string,
122
- options?: TableOperationsCreateOptionalParams
123
- ): Promise<TableOperationsCreateResponse> {
121
+ options?: TableCreateOptionalParams
122
+ ): Promise<TableCreateResponse> {
124
123
  return this.client.sendOperationRequest(
125
124
  { resourceGroupName, accountName, tableName, options },
126
125
  createOperationSpec
@@ -143,8 +142,8 @@ export class TableOperationsImpl implements TableOperations {
143
142
  resourceGroupName: string,
144
143
  accountName: string,
145
144
  tableName: string,
146
- options?: TableOperationsUpdateOptionalParams
147
- ): Promise<TableOperationsUpdateResponse> {
145
+ options?: TableUpdateOptionalParams
146
+ ): Promise<TableUpdateResponse> {
148
147
  return this.client.sendOperationRequest(
149
148
  { resourceGroupName, accountName, tableName, options },
150
149
  updateOperationSpec
@@ -167,8 +166,8 @@ export class TableOperationsImpl implements TableOperations {
167
166
  resourceGroupName: string,
168
167
  accountName: string,
169
168
  tableName: string,
170
- options?: TableOperationsGetOptionalParams
171
- ): Promise<TableOperationsGetResponse> {
169
+ options?: TableGetOptionalParams
170
+ ): Promise<TableGetResponse> {
172
171
  return this.client.sendOperationRequest(
173
172
  { resourceGroupName, accountName, tableName, options },
174
173
  getOperationSpec
@@ -191,7 +190,7 @@ export class TableOperationsImpl implements TableOperations {
191
190
  resourceGroupName: string,
192
191
  accountName: string,
193
192
  tableName: string,
194
- options?: TableOperationsDeleteOptionalParams
193
+ options?: TableDeleteOptionalParams
195
194
  ): Promise<void> {
196
195
  return this.client.sendOperationRequest(
197
196
  { resourceGroupName, accountName, tableName, options },
@@ -211,8 +210,8 @@ export class TableOperationsImpl implements TableOperations {
211
210
  private _list(
212
211
  resourceGroupName: string,
213
212
  accountName: string,
214
- options?: TableOperationsListOptionalParams
215
- ): Promise<TableOperationsListResponse> {
213
+ options?: TableListOptionalParams
214
+ ): Promise<TableListResponse> {
216
215
  return this.client.sendOperationRequest(
217
216
  { resourceGroupName, accountName, options },
218
217
  listOperationSpec
@@ -233,8 +232,8 @@ export class TableOperationsImpl implements TableOperations {
233
232
  resourceGroupName: string,
234
233
  accountName: string,
235
234
  nextLink: string,
236
- options?: TableOperationsListNextOptionalParams
237
- ): Promise<TableOperationsListNextResponse> {
235
+ options?: TableListNextOptionalParams
236
+ ): Promise<TableListNextResponse> {
238
237
  return this.client.sendOperationRequest(
239
238
  { resourceGroupName, accountName, nextLink, options },
240
239
  listNextOperationSpec
@@ -10,7 +10,7 @@ import { TableServices } from "../operationsInterfaces";
10
10
  import * as coreClient from "@azure/core-client";
11
11
  import * as Mappers from "../models/mappers";
12
12
  import * as Parameters from "../models/parameters";
13
- import { StorageManagementClientContext } from "../storageManagementClientContext";
13
+ import { StorageManagementClient } from "../storageManagementClient";
14
14
  import {
15
15
  TableServicesListOptionalParams,
16
16
  TableServicesListResponse,
@@ -21,15 +21,15 @@ import {
21
21
  TableServicesGetServicePropertiesResponse
22
22
  } from "../models";
23
23
 
24
- /** Class representing a TableServices. */
24
+ /** Class containing TableServices operations. */
25
25
  export class TableServicesImpl implements TableServices {
26
- private readonly client: StorageManagementClientContext;
26
+ private readonly client: StorageManagementClient;
27
27
 
28
28
  /**
29
29
  * Initialize a new instance of the class TableServices class.
30
30
  * @param client Reference to the service client
31
31
  */
32
- constructor(client: StorageManagementClientContext) {
32
+ constructor(client: StorageManagementClient) {
33
33
  this.client = client;
34
34
  }
35
35
 
@@ -6,13 +6,12 @@
6
6
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
7
  */
8
8
 
9
- import "@azure/core-paging";
10
9
  import { PagedAsyncIterableIterator } from "@azure/core-paging";
11
10
  import { Usages } from "../operationsInterfaces";
12
11
  import * as coreClient from "@azure/core-client";
13
12
  import * as Mappers from "../models/mappers";
14
13
  import * as Parameters from "../models/parameters";
15
- import { StorageManagementClientContext } from "../storageManagementClientContext";
14
+ import { StorageManagementClient } from "../storageManagementClient";
16
15
  import {
17
16
  Usage,
18
17
  UsagesListByLocationOptionalParams,
@@ -20,15 +19,15 @@ import {
20
19
  } from "../models";
21
20
 
22
21
  /// <reference lib="esnext.asynciterable" />
23
- /** Class representing a Usages. */
22
+ /** Class containing Usages operations. */
24
23
  export class UsagesImpl implements Usages {
25
- private readonly client: StorageManagementClientContext;
24
+ private readonly client: StorageManagementClient;
26
25
 
27
26
  /**
28
27
  * Initialize a new instance of the class Usages class.
29
28
  * @param client Reference to the service client
30
29
  */
31
- constructor(client: StorageManagementClientContext) {
30
+ constructor(client: StorageManagementClient) {
32
31
  this.client = client;
33
32
  }
34
33
 
@@ -6,7 +6,6 @@
6
6
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
7
  */
8
8
 
9
- import "@azure/core-paging";
10
9
  import { PagedAsyncIterableIterator } from "@azure/core-paging";
11
10
  import { PollerLike, PollOperationState } from "@azure/core-lro";
12
11
  import {
@@ -6,7 +6,6 @@
6
6
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
7
  */
8
8
 
9
- import "@azure/core-paging";
10
9
  import { PagedAsyncIterableIterator } from "@azure/core-paging";
11
10
  import {
12
11
  BlobInventoryPolicy,
@@ -6,7 +6,6 @@
6
6
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
7
  */
8
8
 
9
- import "@azure/core-paging";
10
9
  import { PagedAsyncIterableIterator } from "@azure/core-paging";
11
10
  import {
12
11
  BlobServiceProperties,
@@ -6,7 +6,6 @@
6
6
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
7
  */
8
8
 
9
- import "@azure/core-paging";
10
9
  import { PagedAsyncIterableIterator } from "@azure/core-paging";
11
10
  import {
12
11
  DeletedAccount,
@@ -6,7 +6,6 @@
6
6
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
7
  */
8
8
 
9
- import "@azure/core-paging";
10
9
  import { PagedAsyncIterableIterator } from "@azure/core-paging";
11
10
  import {
12
11
  EncryptionScope,
@@ -6,7 +6,6 @@
6
6
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
7
  */
8
8
 
9
- import "@azure/core-paging";
10
9
  import { PagedAsyncIterableIterator } from "@azure/core-paging";
11
10
  import {
12
11
  FileShareItem,
@@ -6,16 +6,15 @@
6
6
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
7
  */
8
8
 
9
- import "@azure/core-paging";
10
9
  import { PagedAsyncIterableIterator } from "@azure/core-paging";
11
10
  import {
12
11
  ObjectReplicationPolicy,
13
- ObjectReplicationPoliciesOperationsListOptionalParams,
14
- ObjectReplicationPoliciesOperationsGetOptionalParams,
15
- ObjectReplicationPoliciesOperationsGetResponse,
16
- ObjectReplicationPoliciesOperationsCreateOrUpdateOptionalParams,
17
- ObjectReplicationPoliciesOperationsCreateOrUpdateResponse,
18
- ObjectReplicationPoliciesOperationsDeleteOptionalParams
12
+ ObjectReplicationPoliciesListOptionalParams,
13
+ ObjectReplicationPoliciesGetOptionalParams,
14
+ ObjectReplicationPoliciesGetResponse,
15
+ ObjectReplicationPoliciesCreateOrUpdateOptionalParams,
16
+ ObjectReplicationPoliciesCreateOrUpdateResponse,
17
+ ObjectReplicationPoliciesDeleteOptionalParams
19
18
  } from "../models";
20
19
 
21
20
  /// <reference lib="esnext.asynciterable" />
@@ -33,7 +32,7 @@ export interface ObjectReplicationPoliciesOperations {
33
32
  list(
34
33
  resourceGroupName: string,
35
34
  accountName: string,
36
- options?: ObjectReplicationPoliciesOperationsListOptionalParams
35
+ options?: ObjectReplicationPoliciesListOptionalParams
37
36
  ): PagedAsyncIterableIterator<ObjectReplicationPolicy>;
38
37
  /**
39
38
  * Get the object replication policy of the storage account by policy ID.
@@ -52,8 +51,8 @@ export interface ObjectReplicationPoliciesOperations {
52
51
  resourceGroupName: string,
53
52
  accountName: string,
54
53
  objectReplicationPolicyId: string,
55
- options?: ObjectReplicationPoliciesOperationsGetOptionalParams
56
- ): Promise<ObjectReplicationPoliciesOperationsGetResponse>;
54
+ options?: ObjectReplicationPoliciesGetOptionalParams
55
+ ): Promise<ObjectReplicationPoliciesGetResponse>;
57
56
  /**
58
57
  * Create or update the object replication policy of the storage account.
59
58
  * @param resourceGroupName The name of the resource group within the user's subscription. The name is
@@ -74,8 +73,8 @@ export interface ObjectReplicationPoliciesOperations {
74
73
  accountName: string,
75
74
  objectReplicationPolicyId: string,
76
75
  properties: ObjectReplicationPolicy,
77
- options?: ObjectReplicationPoliciesOperationsCreateOrUpdateOptionalParams
78
- ): Promise<ObjectReplicationPoliciesOperationsCreateOrUpdateResponse>;
76
+ options?: ObjectReplicationPoliciesCreateOrUpdateOptionalParams
77
+ ): Promise<ObjectReplicationPoliciesCreateOrUpdateResponse>;
79
78
  /**
80
79
  * Deletes the object replication policy associated with the specified storage account.
81
80
  * @param resourceGroupName The name of the resource group within the user's subscription. The name is
@@ -93,6 +92,6 @@ export interface ObjectReplicationPoliciesOperations {
93
92
  resourceGroupName: string,
94
93
  accountName: string,
95
94
  objectReplicationPolicyId: string,
96
- options?: ObjectReplicationPoliciesOperationsDeleteOptionalParams
95
+ options?: ObjectReplicationPoliciesDeleteOptionalParams
97
96
  ): Promise<void>;
98
97
  }
@@ -6,7 +6,6 @@
6
6
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
7
  */
8
8
 
9
- import "@azure/core-paging";
10
9
  import { PagedAsyncIterableIterator } from "@azure/core-paging";
11
10
  import { Operation, OperationsListOptionalParams } from "../models";
12
11