@azure/arm-storage 16.1.2 → 17.0.0-alpha.20211206.4

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 (437) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/{LICENSE.txt → LICENSE} +1 -1
  3. package/README.md +69 -80
  4. package/dist/index.js +10847 -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/dist-esm/src/index.d.ts +5 -0
  9. package/dist-esm/src/index.d.ts.map +1 -0
  10. package/{esm/models/operationsMappers.js → dist-esm/src/index.js} +5 -2
  11. package/dist-esm/src/index.js.map +1 -0
  12. package/dist-esm/src/lroImpl.d.ts +16 -0
  13. package/dist-esm/src/lroImpl.d.ts.map +1 -0
  14. package/dist-esm/src/lroImpl.js +29 -0
  15. package/dist-esm/src/lroImpl.js.map +1 -0
  16. package/dist-esm/src/models/index.d.ts +3500 -0
  17. package/dist-esm/src/models/index.d.ts.map +1 -0
  18. package/dist-esm/src/models/index.js +351 -0
  19. package/dist-esm/src/models/index.js.map +1 -0
  20. package/dist-esm/src/models/mappers.d.ts +150 -0
  21. package/dist-esm/src/models/mappers.d.ts.map +1 -0
  22. package/{esm → dist-esm/src}/models/mappers.js +2840 -2487
  23. package/dist-esm/src/models/mappers.js.map +1 -0
  24. package/dist-esm/src/models/parameters.d.ts +61 -0
  25. package/dist-esm/src/models/parameters.d.ts.map +1 -0
  26. package/{esm → dist-esm/src}/models/parameters.js +273 -155
  27. package/dist-esm/src/models/parameters.js.map +1 -0
  28. package/dist-esm/src/operations/blobContainers.d.ts +278 -0
  29. package/dist-esm/src/operations/blobContainers.d.ts.map +1 -0
  30. package/dist-esm/src/operations/blobContainers.js +721 -0
  31. package/dist-esm/src/operations/blobContainers.js.map +1 -0
  32. package/dist-esm/src/operations/blobInventoryPolicies.d.ts +73 -0
  33. package/dist-esm/src/operations/blobInventoryPolicies.d.ts.map +1 -0
  34. package/dist-esm/src/operations/blobInventoryPolicies.js +221 -0
  35. package/dist-esm/src/operations/blobInventoryPolicies.js.map +1 -0
  36. package/dist-esm/src/operations/blobServices.d.ts +60 -0
  37. package/dist-esm/src/operations/blobServices.d.ts.map +1 -0
  38. package/dist-esm/src/operations/blobServices.js +170 -0
  39. package/dist-esm/src/operations/blobServices.js.map +1 -0
  40. package/dist-esm/src/operations/deletedAccounts.d.ts +39 -0
  41. package/dist-esm/src/operations/deletedAccounts.d.ts.map +1 -0
  42. package/dist-esm/src/operations/deletedAccounts.js +154 -0
  43. package/dist-esm/src/operations/deletedAccounts.js.map +1 -0
  44. package/dist-esm/src/operations/encryptionScopes.d.ts +94 -0
  45. package/dist-esm/src/operations/encryptionScopes.d.ts.map +1 -0
  46. package/dist-esm/src/operations/encryptionScopes.js +278 -0
  47. package/dist-esm/src/operations/encryptionScopes.js.map +1 -0
  48. package/dist-esm/src/operations/fileServices.d.ts +47 -0
  49. package/dist-esm/src/operations/fileServices.d.ts.map +1 -0
  50. package/dist-esm/src/operations/fileServices.js +130 -0
  51. package/dist-esm/src/operations/fileServices.js.map +1 -0
  52. package/dist-esm/src/operations/fileShares.d.ts +132 -0
  53. package/dist-esm/src/operations/fileShares.d.ts.map +1 -0
  54. package/dist-esm/src/operations/fileShares.js +398 -0
  55. package/dist-esm/src/operations/fileShares.js.map +1 -0
  56. package/{esm → dist-esm/src}/operations/index.d.ts +0 -0
  57. package/dist-esm/src/operations/index.d.ts.map +1 -0
  58. package/{esm → dist-esm/src}/operations/index.js +1 -2
  59. package/dist-esm/src/operations/index.js.map +1 -0
  60. package/dist-esm/src/operations/managementPolicies.d.ts +50 -0
  61. package/dist-esm/src/operations/managementPolicies.d.ts.map +1 -0
  62. package/dist-esm/src/operations/managementPolicies.js +126 -0
  63. package/dist-esm/src/operations/managementPolicies.js.map +1 -0
  64. package/dist-esm/src/operations/objectReplicationPoliciesOperations.d.ts +80 -0
  65. package/dist-esm/src/operations/objectReplicationPoliciesOperations.d.ts.map +1 -0
  66. package/dist-esm/src/operations/objectReplicationPoliciesOperations.js +228 -0
  67. package/dist-esm/src/operations/objectReplicationPoliciesOperations.js.map +1 -0
  68. package/dist-esm/src/operations/operations.d.ts +26 -0
  69. package/dist-esm/src/operations/operations.d.ts.map +1 -0
  70. package/dist-esm/src/operations/operations.js +87 -0
  71. package/dist-esm/src/operations/operations.js.map +1 -0
  72. package/dist-esm/src/operations/privateEndpointConnections.d.ts +73 -0
  73. package/dist-esm/src/operations/privateEndpointConnections.d.ts.map +1 -0
  74. package/dist-esm/src/operations/privateEndpointConnections.js +228 -0
  75. package/dist-esm/src/operations/privateEndpointConnections.js.map +1 -0
  76. package/dist-esm/src/operations/privateLinkResources.d.ts +23 -0
  77. package/dist-esm/src/operations/privateLinkResources.d.ts.map +1 -0
  78. package/dist-esm/src/operations/privateLinkResources.js +53 -0
  79. package/dist-esm/src/operations/privateLinkResources.js.map +1 -0
  80. package/dist-esm/src/operations/queue.d.ts +101 -0
  81. package/dist-esm/src/operations/queue.d.ts.map +1 -0
  82. package/dist-esm/src/operations/queue.js +306 -0
  83. package/dist-esm/src/operations/queue.js.map +1 -0
  84. package/dist-esm/src/operations/queueServices.d.ts +47 -0
  85. package/dist-esm/src/operations/queueServices.d.ts.map +1 -0
  86. package/dist-esm/src/operations/queueServices.js +130 -0
  87. package/dist-esm/src/operations/queueServices.js.map +1 -0
  88. package/dist-esm/src/operations/skus.d.ts +26 -0
  89. package/dist-esm/src/operations/skus.d.ts.map +1 -0
  90. package/dist-esm/src/operations/skus.js +87 -0
  91. package/dist-esm/src/operations/skus.js.map +1 -0
  92. package/dist-esm/src/operations/storageAccounts.d.ts +284 -0
  93. package/dist-esm/src/operations/storageAccounts.d.ts.map +1 -0
  94. package/dist-esm/src/operations/storageAccounts.js +920 -0
  95. package/dist-esm/src/operations/storageAccounts.js.map +1 -0
  96. package/dist-esm/src/operations/tableOperations.d.ts +99 -0
  97. package/dist-esm/src/operations/tableOperations.d.ts.map +1 -0
  98. package/dist-esm/src/operations/tableOperations.js +292 -0
  99. package/dist-esm/src/operations/tableOperations.js.map +1 -0
  100. package/dist-esm/src/operations/tableServices.d.ts +47 -0
  101. package/dist-esm/src/operations/tableServices.d.ts.map +1 -0
  102. package/dist-esm/src/operations/tableServices.js +130 -0
  103. package/dist-esm/src/operations/tableServices.js.map +1 -0
  104. package/dist-esm/src/operations/usages.d.ts +28 -0
  105. package/dist-esm/src/operations/usages.d.ts.map +1 -0
  106. package/dist-esm/src/operations/usages.js +93 -0
  107. package/dist-esm/src/operations/usages.js.map +1 -0
  108. package/dist-esm/src/operationsInterfaces/blobContainers.d.ts +246 -0
  109. package/dist-esm/src/operationsInterfaces/blobContainers.d.ts.map +1 -0
  110. package/{src/models/usagesMappers.ts → dist-esm/src/operationsInterfaces/blobContainers.js} +2 -7
  111. package/dist-esm/src/operationsInterfaces/blobContainers.js.map +1 -0
  112. package/dist-esm/src/operationsInterfaces/blobInventoryPolicies.d.ts +53 -0
  113. package/dist-esm/src/operationsInterfaces/blobInventoryPolicies.d.ts.map +1 -0
  114. package/{esm/models/usagesMappers.js → dist-esm/src/operationsInterfaces/blobInventoryPolicies.js} +2 -2
  115. package/dist-esm/src/operationsInterfaces/blobInventoryPolicies.js.map +1 -0
  116. package/dist-esm/src/operationsInterfaces/blobServices.d.ts +40 -0
  117. package/dist-esm/src/operationsInterfaces/blobServices.d.ts.map +1 -0
  118. package/{src/models/skusMappers.ts → dist-esm/src/operationsInterfaces/blobServices.js} +2 -8
  119. package/dist-esm/src/operationsInterfaces/blobServices.js.map +1 -0
  120. package/dist-esm/src/operationsInterfaces/deletedAccounts.d.ts +18 -0
  121. package/dist-esm/src/operationsInterfaces/deletedAccounts.d.ts.map +1 -0
  122. package/dist-esm/src/operationsInterfaces/deletedAccounts.js +9 -0
  123. package/dist-esm/src/operationsInterfaces/deletedAccounts.js.map +1 -0
  124. package/dist-esm/src/operationsInterfaces/encryptionScopes.d.ts +63 -0
  125. package/dist-esm/src/operationsInterfaces/encryptionScopes.d.ts.map +1 -0
  126. package/dist-esm/src/operationsInterfaces/encryptionScopes.js +9 -0
  127. package/dist-esm/src/operationsInterfaces/encryptionScopes.js.map +1 -0
  128. package/dist-esm/src/operationsInterfaces/fileServices.d.ts +39 -0
  129. package/dist-esm/src/operationsInterfaces/fileServices.d.ts.map +1 -0
  130. package/dist-esm/src/operationsInterfaces/fileServices.js +9 -0
  131. package/dist-esm/src/operationsInterfaces/fileServices.js.map +1 -0
  132. package/dist-esm/src/operationsInterfaces/fileShares.d.ts +101 -0
  133. package/dist-esm/src/operationsInterfaces/fileShares.d.ts.map +1 -0
  134. package/dist-esm/src/operationsInterfaces/fileShares.js +9 -0
  135. package/dist-esm/src/operationsInterfaces/fileShares.js.map +1 -0
  136. package/dist-esm/src/operationsInterfaces/index.d.ts +20 -0
  137. package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
  138. package/dist-esm/src/operationsInterfaces/index.js +27 -0
  139. package/dist-esm/src/operationsInterfaces/index.js.map +1 -0
  140. package/dist-esm/src/operationsInterfaces/managementPolicies.d.ts +42 -0
  141. package/dist-esm/src/operationsInterfaces/managementPolicies.d.ts.map +1 -0
  142. package/dist-esm/src/operationsInterfaces/managementPolicies.js +9 -0
  143. package/dist-esm/src/operationsInterfaces/managementPolicies.js.map +1 -0
  144. package/dist-esm/src/operationsInterfaces/objectReplicationPoliciesOperations.d.ts +60 -0
  145. package/dist-esm/src/operationsInterfaces/objectReplicationPoliciesOperations.d.ts.map +1 -0
  146. package/dist-esm/src/operationsInterfaces/objectReplicationPoliciesOperations.js +9 -0
  147. package/dist-esm/src/operationsInterfaces/objectReplicationPoliciesOperations.js.map +1 -0
  148. package/dist-esm/src/operationsInterfaces/operations.d.ts +11 -0
  149. package/dist-esm/src/operationsInterfaces/operations.d.ts.map +1 -0
  150. package/dist-esm/src/operationsInterfaces/operations.js +9 -0
  151. package/dist-esm/src/operationsInterfaces/operations.js.map +1 -0
  152. package/dist-esm/src/operationsInterfaces/privateEndpointConnections.d.ts +53 -0
  153. package/dist-esm/src/operationsInterfaces/privateEndpointConnections.d.ts.map +1 -0
  154. package/dist-esm/src/operationsInterfaces/privateEndpointConnections.js +9 -0
  155. package/dist-esm/src/operationsInterfaces/privateEndpointConnections.js.map +1 -0
  156. package/dist-esm/src/operationsInterfaces/privateLinkResources.d.ts +15 -0
  157. package/dist-esm/src/operationsInterfaces/privateLinkResources.d.ts.map +1 -0
  158. package/dist-esm/src/operationsInterfaces/privateLinkResources.js +9 -0
  159. package/dist-esm/src/operationsInterfaces/privateLinkResources.js.map +1 -0
  160. package/dist-esm/src/operationsInterfaces/queue.d.ts +70 -0
  161. package/dist-esm/src/operationsInterfaces/queue.d.ts.map +1 -0
  162. package/dist-esm/src/operationsInterfaces/queue.js +9 -0
  163. package/dist-esm/src/operationsInterfaces/queue.js.map +1 -0
  164. package/dist-esm/src/operationsInterfaces/queueServices.d.ts +39 -0
  165. package/dist-esm/src/operationsInterfaces/queueServices.d.ts.map +1 -0
  166. package/dist-esm/src/operationsInterfaces/queueServices.js +9 -0
  167. package/dist-esm/src/operationsInterfaces/queueServices.js.map +1 -0
  168. package/dist-esm/src/operationsInterfaces/skus.d.ts +11 -0
  169. package/dist-esm/src/operationsInterfaces/skus.d.ts.map +1 -0
  170. package/{esm/models/index.js → dist-esm/src/operationsInterfaces/skus.js} +2 -1
  171. package/dist-esm/src/operationsInterfaces/skus.js.map +1 -0
  172. package/dist-esm/src/operationsInterfaces/storageAccounts.d.ts +244 -0
  173. package/dist-esm/src/operationsInterfaces/storageAccounts.d.ts.map +1 -0
  174. package/dist-esm/src/operationsInterfaces/storageAccounts.js +9 -0
  175. package/dist-esm/src/operationsInterfaces/storageAccounts.js.map +1 -0
  176. package/dist-esm/src/operationsInterfaces/tableOperations.d.ts +68 -0
  177. package/dist-esm/src/operationsInterfaces/tableOperations.d.ts.map +1 -0
  178. package/dist-esm/src/operationsInterfaces/tableOperations.js +9 -0
  179. package/dist-esm/src/operationsInterfaces/tableOperations.js.map +1 -0
  180. package/dist-esm/src/operationsInterfaces/tableServices.d.ts +39 -0
  181. package/dist-esm/src/operationsInterfaces/tableServices.d.ts.map +1 -0
  182. package/dist-esm/src/operationsInterfaces/tableServices.js +9 -0
  183. package/dist-esm/src/operationsInterfaces/tableServices.js.map +1 -0
  184. package/dist-esm/src/operationsInterfaces/usages.d.ts +12 -0
  185. package/dist-esm/src/operationsInterfaces/usages.d.ts.map +1 -0
  186. package/dist-esm/src/operationsInterfaces/usages.js +9 -0
  187. package/dist-esm/src/operationsInterfaces/usages.js.map +1 -0
  188. package/dist-esm/src/storageManagementClient.d.ts +36 -0
  189. package/dist-esm/src/storageManagementClient.d.ts.map +1 -0
  190. package/dist-esm/src/storageManagementClient.js +69 -0
  191. package/dist-esm/src/storageManagementClient.js.map +1 -0
  192. package/dist-esm/test/storage_examples.d.ts +4 -0
  193. package/dist-esm/test/storage_examples.d.ts.map +1 -0
  194. package/dist-esm/test/storage_examples.js +196 -0
  195. package/dist-esm/test/storage_examples.js.map +1 -0
  196. package/package.json +64 -21
  197. package/review/arm-storage.api.md +2730 -0
  198. package/rollup.config.js +181 -30
  199. package/src/{models/operationsMappers.ts → index.ts} +4 -9
  200. package/src/lroImpl.ts +34 -0
  201. package/src/models/index.ts +2869 -4433
  202. package/src/models/mappers.ts +2917 -2532
  203. package/src/models/parameters.ts +361 -156
  204. package/src/operations/blobContainers.ts +724 -1041
  205. package/src/operations/blobInventoryPolicies.ts +185 -215
  206. package/src/operations/blobServices.ts +153 -181
  207. package/src/operations/deletedAccounts.ts +114 -116
  208. package/src/operations/encryptionScopes.ts +236 -295
  209. package/src/operations/fileServices.ts +103 -175
  210. package/src/operations/fileShares.ts +338 -564
  211. package/src/operations/index.ts +1 -2
  212. package/src/operations/managementPolicies.ts +106 -179
  213. package/src/operations/objectReplicationPoliciesOperations.ts +190 -231
  214. package/src/operations/operations.ts +64 -42
  215. package/src/operations/privateEndpointConnections.ts +180 -218
  216. package/src/operations/privateLinkResources.ts +41 -64
  217. package/src/operations/queue.ts +272 -369
  218. package/src/operations/queueServices.ts +107 -177
  219. package/src/operations/skus.ts +62 -45
  220. package/src/operations/storageAccounts.ts +978 -831
  221. package/src/operations/tableOperations.ts +258 -332
  222. package/src/operations/tableServices.ts +107 -177
  223. package/src/operations/usages.ts +76 -49
  224. package/src/operationsInterfaces/blobContainers.ts +365 -0
  225. package/src/operationsInterfaces/blobInventoryPolicies.ts +91 -0
  226. package/src/operationsInterfaces/blobServices.ts +69 -0
  227. package/src/operationsInterfaces/deletedAccounts.ts +38 -0
  228. package/src/operationsInterfaces/encryptionScopes.ts +102 -0
  229. package/src/operationsInterfaces/fileServices.ts +68 -0
  230. package/src/operationsInterfaces/fileShares.ts +162 -0
  231. package/src/operationsInterfaces/index.ts +27 -0
  232. package/src/operationsInterfaces/managementPolicies.ts +74 -0
  233. package/src/operationsInterfaces/objectReplicationPoliciesOperations.ts +97 -0
  234. package/src/operationsInterfaces/operations.ts +22 -0
  235. package/src/operationsInterfaces/privateEndpointConnections.ts +90 -0
  236. package/src/operationsInterfaces/privateLinkResources.ts +30 -0
  237. package/src/operationsInterfaces/queue.ts +116 -0
  238. package/src/operationsInterfaces/queueServices.ts +68 -0
  239. package/src/operationsInterfaces/skus.ts +22 -0
  240. package/src/operationsInterfaces/storageAccounts.ts +387 -0
  241. package/src/operationsInterfaces/tableOperations.ts +111 -0
  242. package/src/operationsInterfaces/tableServices.ts +68 -0
  243. package/src/operationsInterfaces/usages.ts +24 -0
  244. package/src/storageManagementClient.ts +138 -68
  245. package/tsconfig.json +3 -3
  246. package/types/arm-storage.d.ts +5155 -0
  247. package/types/tsdoc-metadata.json +11 -0
  248. package/dist/arm-storage.js +0 -10687
  249. package/dist/arm-storage.js.map +0 -1
  250. package/dist/arm-storage.min.js +0 -1
  251. package/dist/arm-storage.min.js.map +0 -1
  252. package/esm/models/blobContainersMappers.d.ts +0 -2
  253. package/esm/models/blobContainersMappers.d.ts.map +0 -1
  254. package/esm/models/blobContainersMappers.js +0 -9
  255. package/esm/models/blobContainersMappers.js.map +0 -1
  256. package/esm/models/blobInventoryPoliciesMappers.d.ts +0 -2
  257. package/esm/models/blobInventoryPoliciesMappers.d.ts.map +0 -1
  258. package/esm/models/blobInventoryPoliciesMappers.js +0 -9
  259. package/esm/models/blobInventoryPoliciesMappers.js.map +0 -1
  260. package/esm/models/blobServicesMappers.d.ts +0 -2
  261. package/esm/models/blobServicesMappers.d.ts.map +0 -1
  262. package/esm/models/blobServicesMappers.js +0 -9
  263. package/esm/models/blobServicesMappers.js.map +0 -1
  264. package/esm/models/deletedAccountsMappers.d.ts +0 -2
  265. package/esm/models/deletedAccountsMappers.d.ts.map +0 -1
  266. package/esm/models/deletedAccountsMappers.js +0 -9
  267. package/esm/models/deletedAccountsMappers.js.map +0 -1
  268. package/esm/models/encryptionScopesMappers.d.ts +0 -2
  269. package/esm/models/encryptionScopesMappers.d.ts.map +0 -1
  270. package/esm/models/encryptionScopesMappers.js +0 -9
  271. package/esm/models/encryptionScopesMappers.js.map +0 -1
  272. package/esm/models/fileServicesMappers.d.ts +0 -2
  273. package/esm/models/fileServicesMappers.d.ts.map +0 -1
  274. package/esm/models/fileServicesMappers.js +0 -9
  275. package/esm/models/fileServicesMappers.js.map +0 -1
  276. package/esm/models/fileSharesMappers.d.ts +0 -2
  277. package/esm/models/fileSharesMappers.d.ts.map +0 -1
  278. package/esm/models/fileSharesMappers.js +0 -9
  279. package/esm/models/fileSharesMappers.js.map +0 -1
  280. package/esm/models/index.d.ts +0 -5116
  281. package/esm/models/index.d.ts.map +0 -1
  282. package/esm/models/index.js.map +0 -1
  283. package/esm/models/managementPoliciesMappers.d.ts +0 -2
  284. package/esm/models/managementPoliciesMappers.d.ts.map +0 -1
  285. package/esm/models/managementPoliciesMappers.js +0 -9
  286. package/esm/models/managementPoliciesMappers.js.map +0 -1
  287. package/esm/models/mappers.d.ts +0 -139
  288. package/esm/models/mappers.d.ts.map +0 -1
  289. package/esm/models/mappers.js.map +0 -1
  290. package/esm/models/objectReplicationPoliciesOperationsMappers.d.ts +0 -2
  291. package/esm/models/objectReplicationPoliciesOperationsMappers.d.ts.map +0 -1
  292. package/esm/models/objectReplicationPoliciesOperationsMappers.js +0 -9
  293. package/esm/models/objectReplicationPoliciesOperationsMappers.js.map +0 -1
  294. package/esm/models/operationsMappers.d.ts +0 -2
  295. package/esm/models/operationsMappers.d.ts.map +0 -1
  296. package/esm/models/operationsMappers.js.map +0 -1
  297. package/esm/models/parameters.d.ts +0 -34
  298. package/esm/models/parameters.d.ts.map +0 -1
  299. package/esm/models/parameters.js.map +0 -1
  300. package/esm/models/privateEndpointConnectionsMappers.d.ts +0 -2
  301. package/esm/models/privateEndpointConnectionsMappers.d.ts.map +0 -1
  302. package/esm/models/privateEndpointConnectionsMappers.js +0 -9
  303. package/esm/models/privateEndpointConnectionsMappers.js.map +0 -1
  304. package/esm/models/privateLinkResourcesMappers.d.ts +0 -2
  305. package/esm/models/privateLinkResourcesMappers.d.ts.map +0 -1
  306. package/esm/models/privateLinkResourcesMappers.js +0 -9
  307. package/esm/models/privateLinkResourcesMappers.js.map +0 -1
  308. package/esm/models/queueMappers.d.ts +0 -2
  309. package/esm/models/queueMappers.d.ts.map +0 -1
  310. package/esm/models/queueMappers.js +0 -9
  311. package/esm/models/queueMappers.js.map +0 -1
  312. package/esm/models/queueServicesMappers.d.ts +0 -2
  313. package/esm/models/queueServicesMappers.d.ts.map +0 -1
  314. package/esm/models/queueServicesMappers.js +0 -9
  315. package/esm/models/queueServicesMappers.js.map +0 -1
  316. package/esm/models/skusMappers.d.ts +0 -2
  317. package/esm/models/skusMappers.d.ts.map +0 -1
  318. package/esm/models/skusMappers.js +0 -9
  319. package/esm/models/skusMappers.js.map +0 -1
  320. package/esm/models/storageAccountsMappers.d.ts +0 -2
  321. package/esm/models/storageAccountsMappers.d.ts.map +0 -1
  322. package/esm/models/storageAccountsMappers.js +0 -9
  323. package/esm/models/storageAccountsMappers.js.map +0 -1
  324. package/esm/models/tableOperationsMappers.d.ts +0 -2
  325. package/esm/models/tableOperationsMappers.d.ts.map +0 -1
  326. package/esm/models/tableOperationsMappers.js +0 -9
  327. package/esm/models/tableOperationsMappers.js.map +0 -1
  328. package/esm/models/tableServicesMappers.d.ts +0 -2
  329. package/esm/models/tableServicesMappers.d.ts.map +0 -1
  330. package/esm/models/tableServicesMappers.js +0 -9
  331. package/esm/models/tableServicesMappers.js.map +0 -1
  332. package/esm/models/usagesMappers.d.ts +0 -2
  333. package/esm/models/usagesMappers.d.ts.map +0 -1
  334. package/esm/models/usagesMappers.js.map +0 -1
  335. package/esm/operations/blobContainers.d.ts +0 -627
  336. package/esm/operations/blobContainers.d.ts.map +0 -1
  337. package/esm/operations/blobContainers.js +0 -569
  338. package/esm/operations/blobContainers.js.map +0 -1
  339. package/esm/operations/blobInventoryPolicies.d.ts +0 -136
  340. package/esm/operations/blobInventoryPolicies.d.ts.map +0 -1
  341. package/esm/operations/blobInventoryPolicies.js +0 -164
  342. package/esm/operations/blobInventoryPolicies.js.map +0 -1
  343. package/esm/operations/blobServices.d.ts +0 -111
  344. package/esm/operations/blobServices.d.ts.map +0 -1
  345. package/esm/operations/blobServices.js +0 -127
  346. package/esm/operations/blobServices.js.map +0 -1
  347. package/esm/operations/deletedAccounts.d.ts +0 -67
  348. package/esm/operations/deletedAccounts.d.ts.map +0 -1
  349. package/esm/operations/deletedAccounts.js +0 -113
  350. package/esm/operations/deletedAccounts.js.map +0 -1
  351. package/esm/operations/encryptionScopes.d.ts +0 -196
  352. package/esm/operations/encryptionScopes.d.ts.map +0 -1
  353. package/esm/operations/encryptionScopes.js +0 -199
  354. package/esm/operations/encryptionScopes.js.map +0 -1
  355. package/esm/operations/fileServices.d.ts +0 -111
  356. package/esm/operations/fileServices.d.ts.map +0 -1
  357. package/esm/operations/fileServices.js +0 -127
  358. package/esm/operations/fileServices.js.map +0 -1
  359. package/esm/operations/fileShares.d.ts +0 -289
  360. package/esm/operations/fileShares.d.ts.map +0 -1
  361. package/esm/operations/fileShares.js +0 -247
  362. package/esm/operations/fileShares.js.map +0 -1
  363. package/esm/operations/index.d.ts.map +0 -1
  364. package/esm/operations/index.js.map +0 -1
  365. package/esm/operations/managementPolicies.d.ts +0 -109
  366. package/esm/operations/managementPolicies.d.ts.map +0 -1
  367. package/esm/operations/managementPolicies.js +0 -129
  368. package/esm/operations/managementPolicies.js.map +0 -1
  369. package/esm/operations/objectReplicationPoliciesOperations.d.ts +0 -157
  370. package/esm/operations/objectReplicationPoliciesOperations.d.ts.map +0 -1
  371. package/esm/operations/objectReplicationPoliciesOperations.js +0 -161
  372. package/esm/operations/objectReplicationPoliciesOperations.js.map +0 -1
  373. package/esm/operations/operations.d.ts +0 -28
  374. package/esm/operations/operations.d.ts.map +0 -1
  375. package/esm/operations/operations.js +0 -50
  376. package/esm/operations/operations.js.map +0 -1
  377. package/esm/operations/privateEndpointConnections.d.ts +0 -154
  378. package/esm/operations/privateEndpointConnections.d.ts.map +0 -1
  379. package/esm/operations/privateEndpointConnections.js +0 -161
  380. package/esm/operations/privateEndpointConnections.js.map +0 -1
  381. package/esm/operations/privateLinkResources.d.ts +0 -43
  382. package/esm/operations/privateLinkResources.d.ts.map +0 -1
  383. package/esm/operations/privateLinkResources.js +0 -57
  384. package/esm/operations/privateLinkResources.js.map +0 -1
  385. package/esm/operations/queue.d.ts +0 -229
  386. package/esm/operations/queue.d.ts.map +0 -1
  387. package/esm/operations/queue.js +0 -239
  388. package/esm/operations/queue.js.map +0 -1
  389. package/esm/operations/queueServices.d.ts +0 -105
  390. package/esm/operations/queueServices.d.ts.map +0 -1
  391. package/esm/operations/queueServices.js +0 -131
  392. package/esm/operations/queueServices.js.map +0 -1
  393. package/esm/operations/skus.d.ts +0 -28
  394. package/esm/operations/skus.d.ts.map +0 -1
  395. package/esm/operations/skus.js +0 -53
  396. package/esm/operations/skus.js.map +0 -1
  397. package/esm/operations/storageAccounts.d.ts +0 -455
  398. package/esm/operations/storageAccounts.d.ts.map +0 -1
  399. package/esm/operations/storageAccounts.js +0 -642
  400. package/esm/operations/storageAccounts.js.map +0 -1
  401. package/esm/operations/tableOperations.d.ts +0 -217
  402. package/esm/operations/tableOperations.d.ts.map +0 -1
  403. package/esm/operations/tableOperations.js +0 -216
  404. package/esm/operations/tableOperations.js.map +0 -1
  405. package/esm/operations/tableServices.d.ts +0 -105
  406. package/esm/operations/tableServices.d.ts.map +0 -1
  407. package/esm/operations/tableServices.js +0 -131
  408. package/esm/operations/tableServices.js.map +0 -1
  409. package/esm/operations/usages.d.ts +0 -32
  410. package/esm/operations/usages.d.ts.map +0 -1
  411. package/esm/operations/usages.js +0 -55
  412. package/esm/operations/usages.js.map +0 -1
  413. package/esm/storageManagementClient.d.ts +0 -42
  414. package/esm/storageManagementClient.d.ts.map +0 -1
  415. package/esm/storageManagementClient.js +0 -55
  416. package/esm/storageManagementClient.js.map +0 -1
  417. package/esm/storageManagementClientContext.d.ts +0 -22
  418. package/esm/storageManagementClientContext.d.ts.map +0 -1
  419. package/esm/storageManagementClientContext.js +0 -61
  420. package/esm/storageManagementClientContext.js.map +0 -1
  421. package/src/models/blobContainersMappers.ts +0 -106
  422. package/src/models/blobInventoryPoliciesMappers.ts +0 -99
  423. package/src/models/blobServicesMappers.ts +0 -98
  424. package/src/models/deletedAccountsMappers.ts +0 -99
  425. package/src/models/encryptionScopesMappers.ts +0 -100
  426. package/src/models/fileServicesMappers.ts +0 -98
  427. package/src/models/fileSharesMappers.ts +0 -99
  428. package/src/models/managementPoliciesMappers.ts +0 -97
  429. package/src/models/objectReplicationPoliciesOperationsMappers.ts +0 -99
  430. package/src/models/privateEndpointConnectionsMappers.ts +0 -100
  431. package/src/models/privateLinkResourcesMappers.ts +0 -98
  432. package/src/models/queueMappers.ts +0 -98
  433. package/src/models/queueServicesMappers.ts +0 -98
  434. package/src/models/storageAccountsMappers.ts +0 -109
  435. package/src/models/tableOperationsMappers.ts +0 -98
  436. package/src/models/tableServicesMappers.ts +0 -98
  437. package/src/storageManagementClientContext.ts +0 -74
@@ -3,451 +3,377 @@
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
8
 
10
- import * as msRest from "@azure/ms-rest-js";
11
- import * as Models from "../models";
12
- import * as Mappers from "../models/tableOperationsMappers";
9
+ import { PagedAsyncIterableIterator } from "@azure/core-paging";
10
+ import { TableOperations } from "../operationsInterfaces";
11
+ import * as coreClient from "@azure/core-client";
12
+ import * as Mappers from "../models/mappers";
13
13
  import * as Parameters from "../models/parameters";
14
- import { StorageManagementClientContext } from "../storageManagementClientContext";
14
+ import { StorageManagementClient } from "../storageManagementClient";
15
+ import {
16
+ Table,
17
+ TableListNextOptionalParams,
18
+ TableListOptionalParams,
19
+ TableCreateOptionalParams,
20
+ TableCreateResponse,
21
+ TableUpdateOptionalParams,
22
+ TableUpdateResponse,
23
+ TableGetOptionalParams,
24
+ TableGetResponse,
25
+ TableDeleteOptionalParams,
26
+ TableListResponse,
27
+ TableListNextResponse
28
+ } from "../models";
15
29
 
16
- /** Class representing a TableOperations. */
17
- export class TableOperations {
18
- private readonly client: StorageManagementClientContext;
30
+ /// <reference lib="esnext.asynciterable" />
31
+ /** Class containing TableOperations operations. */
32
+ export class TableOperationsImpl implements TableOperations {
33
+ private readonly client: StorageManagementClient;
19
34
 
20
35
  /**
21
- * Create a TableOperations.
22
- * @param {StorageManagementClientContext} client Reference to the service client.
36
+ * Initialize a new instance of the class TableOperations class.
37
+ * @param client Reference to the service client
23
38
  */
24
- constructor(client: StorageManagementClientContext) {
39
+ constructor(client: StorageManagementClient) {
25
40
  this.client = client;
26
41
  }
27
42
 
28
43
  /**
29
- * Creates a new table with the specified table name, under the specified account.
30
- * @param resourceGroupName The name of the resource group within the user's subscription. The name
31
- * is case insensitive.
32
- * @param accountName The name of the storage account within the specified resource group. Storage
33
- * account names must be between 3 and 24 characters in length and use numbers and lower-case
34
- * letters only.
35
- * @param tableName A table name must be unique within a storage account and must be between 3 and
36
- * 63 characters.The name must comprise of only alphanumeric characters and it cannot begin with a
37
- * numeric character.
38
- * @param [options] The optional parameters
39
- * @returns Promise<Models.TableCreateResponse>
40
- */
41
- create(resourceGroupName: string, accountName: string, tableName: string, options?: msRest.RequestOptionsBase): Promise<Models.TableCreateResponse>;
42
- /**
43
- * @param resourceGroupName The name of the resource group within the user's subscription. The name
44
- * is case insensitive.
45
- * @param accountName The name of the storage account within the specified resource group. Storage
46
- * account names must be between 3 and 24 characters in length and use numbers and lower-case
47
- * letters only.
48
- * @param tableName A table name must be unique within a storage account and must be between 3 and
49
- * 63 characters.The name must comprise of only alphanumeric characters and it cannot begin with a
50
- * numeric character.
51
- * @param callback The callback
52
- */
53
- create(resourceGroupName: string, accountName: string, tableName: string, callback: msRest.ServiceCallback<Models.Table>): void;
54
- /**
55
- * @param resourceGroupName The name of the resource group within the user's subscription. The name
56
- * is case insensitive.
44
+ * Gets a list of all the tables under the specified storage account
45
+ * @param resourceGroupName The name of the resource group within the user's subscription. The name is
46
+ * case insensitive.
57
47
  * @param accountName The name of the storage account within the specified resource group. Storage
58
- * account names must be between 3 and 24 characters in length and use numbers and lower-case
59
- * letters only.
60
- * @param tableName A table name must be unique within a storage account and must be between 3 and
61
- * 63 characters.The name must comprise of only alphanumeric characters and it cannot begin with a
62
- * numeric character.
63
- * @param options The optional parameters
64
- * @param callback The callback
48
+ * account names must be between 3 and 24 characters in length and use numbers and lower-case letters
49
+ * only.
50
+ * @param options The options parameters.
65
51
  */
66
- create(resourceGroupName: string, accountName: string, tableName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.Table>): void;
67
- create(resourceGroupName: string, accountName: string, tableName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.Table>, callback?: msRest.ServiceCallback<Models.Table>): Promise<Models.TableCreateResponse> {
68
- return this.client.sendOperationRequest(
69
- {
52
+ public list(
53
+ resourceGroupName: string,
54
+ accountName: string,
55
+ options?: TableListOptionalParams
56
+ ): PagedAsyncIterableIterator<Table> {
57
+ const iter = this.listPagingAll(resourceGroupName, accountName, options);
58
+ return {
59
+ next() {
60
+ return iter.next();
61
+ },
62
+ [Symbol.asyncIterator]() {
63
+ return this;
64
+ },
65
+ byPage: () => {
66
+ return this.listPagingPage(resourceGroupName, accountName, options);
67
+ }
68
+ };
69
+ }
70
+
71
+ private async *listPagingPage(
72
+ resourceGroupName: string,
73
+ accountName: string,
74
+ options?: TableListOptionalParams
75
+ ): AsyncIterableIterator<Table[]> {
76
+ let result = await this._list(resourceGroupName, accountName, options);
77
+ yield result.value || [];
78
+ let continuationToken = result.nextLink;
79
+ while (continuationToken) {
80
+ result = await this._listNext(
70
81
  resourceGroupName,
71
82
  accountName,
72
- tableName,
83
+ continuationToken,
73
84
  options
74
- },
75
- createOperationSpec,
76
- callback) as Promise<Models.TableCreateResponse>;
85
+ );
86
+ continuationToken = result.nextLink;
87
+ yield result.value || [];
88
+ }
89
+ }
90
+
91
+ private async *listPagingAll(
92
+ resourceGroupName: string,
93
+ accountName: string,
94
+ options?: TableListOptionalParams
95
+ ): AsyncIterableIterator<Table> {
96
+ for await (const page of this.listPagingPage(
97
+ resourceGroupName,
98
+ accountName,
99
+ options
100
+ )) {
101
+ yield* page;
102
+ }
77
103
  }
78
104
 
79
105
  /**
80
106
  * Creates a new table with the specified table name, under the specified account.
81
- * @param resourceGroupName The name of the resource group within the user's subscription. The name
82
- * is case insensitive.
107
+ * @param resourceGroupName The name of the resource group within the user's subscription. The name is
108
+ * case insensitive.
83
109
  * @param accountName The name of the storage account within the specified resource group. Storage
84
- * account names must be between 3 and 24 characters in length and use numbers and lower-case
85
- * letters only.
86
- * @param tableName A table name must be unique within a storage account and must be between 3 and
87
- * 63 characters.The name must comprise of only alphanumeric characters and it cannot begin with a
88
- * numeric character.
89
- * @param [options] The optional parameters
90
- * @returns Promise<Models.TableUpdateResponse>
110
+ * account names must be between 3 and 24 characters in length and use numbers and lower-case letters
111
+ * only.
112
+ * @param tableName A table name must be unique within a storage account and must be between 3 and 63
113
+ * characters.The name must comprise of only alphanumeric characters and it cannot begin with a numeric
114
+ * character.
115
+ * @param options The options parameters.
91
116
  */
92
- update(resourceGroupName: string, accountName: string, tableName: string, options?: msRest.RequestOptionsBase): Promise<Models.TableUpdateResponse>;
93
- /**
94
- * @param resourceGroupName The name of the resource group within the user's subscription. The name
95
- * is case insensitive.
96
- * @param accountName The name of the storage account within the specified resource group. Storage
97
- * account names must be between 3 and 24 characters in length and use numbers and lower-case
98
- * letters only.
99
- * @param tableName A table name must be unique within a storage account and must be between 3 and
100
- * 63 characters.The name must comprise of only alphanumeric characters and it cannot begin with a
101
- * numeric character.
102
- * @param callback The callback
103
- */
104
- update(resourceGroupName: string, accountName: string, tableName: string, callback: msRest.ServiceCallback<Models.Table>): void;
117
+ create(
118
+ resourceGroupName: string,
119
+ accountName: string,
120
+ tableName: string,
121
+ options?: TableCreateOptionalParams
122
+ ): Promise<TableCreateResponse> {
123
+ return this.client.sendOperationRequest(
124
+ { resourceGroupName, accountName, tableName, options },
125
+ createOperationSpec
126
+ );
127
+ }
128
+
105
129
  /**
106
- * @param resourceGroupName The name of the resource group within the user's subscription. The name
107
- * is case insensitive.
130
+ * Creates a new table with the specified table name, under the specified account.
131
+ * @param resourceGroupName The name of the resource group within the user's subscription. The name is
132
+ * case insensitive.
108
133
  * @param accountName The name of the storage account within the specified resource group. Storage
109
- * account names must be between 3 and 24 characters in length and use numbers and lower-case
110
- * letters only.
111
- * @param tableName A table name must be unique within a storage account and must be between 3 and
112
- * 63 characters.The name must comprise of only alphanumeric characters and it cannot begin with a
113
- * numeric character.
114
- * @param options The optional parameters
115
- * @param callback The callback
134
+ * account names must be between 3 and 24 characters in length and use numbers and lower-case letters
135
+ * only.
136
+ * @param tableName A table name must be unique within a storage account and must be between 3 and 63
137
+ * characters.The name must comprise of only alphanumeric characters and it cannot begin with a numeric
138
+ * character.
139
+ * @param options The options parameters.
116
140
  */
117
- update(resourceGroupName: string, accountName: string, tableName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.Table>): void;
118
- update(resourceGroupName: string, accountName: string, tableName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.Table>, callback?: msRest.ServiceCallback<Models.Table>): Promise<Models.TableUpdateResponse> {
141
+ update(
142
+ resourceGroupName: string,
143
+ accountName: string,
144
+ tableName: string,
145
+ options?: TableUpdateOptionalParams
146
+ ): Promise<TableUpdateResponse> {
119
147
  return this.client.sendOperationRequest(
120
- {
121
- resourceGroupName,
122
- accountName,
123
- tableName,
124
- options
125
- },
126
- updateOperationSpec,
127
- callback) as Promise<Models.TableUpdateResponse>;
148
+ { resourceGroupName, accountName, tableName, options },
149
+ updateOperationSpec
150
+ );
128
151
  }
129
152
 
130
153
  /**
131
154
  * Gets the table with the specified table name, under the specified account if it exists.
132
- * @param resourceGroupName The name of the resource group within the user's subscription. The name
133
- * is case insensitive.
134
- * @param accountName The name of the storage account within the specified resource group. Storage
135
- * account names must be between 3 and 24 characters in length and use numbers and lower-case
136
- * letters only.
137
- * @param tableName A table name must be unique within a storage account and must be between 3 and
138
- * 63 characters.The name must comprise of only alphanumeric characters and it cannot begin with a
139
- * numeric character.
140
- * @param [options] The optional parameters
141
- * @returns Promise<Models.TableGetResponse>
142
- */
143
- get(resourceGroupName: string, accountName: string, tableName: string, options?: msRest.RequestOptionsBase): Promise<Models.TableGetResponse>;
144
- /**
145
- * @param resourceGroupName The name of the resource group within the user's subscription. The name
146
- * is case insensitive.
147
- * @param accountName The name of the storage account within the specified resource group. Storage
148
- * account names must be between 3 and 24 characters in length and use numbers and lower-case
149
- * letters only.
150
- * @param tableName A table name must be unique within a storage account and must be between 3 and
151
- * 63 characters.The name must comprise of only alphanumeric characters and it cannot begin with a
152
- * numeric character.
153
- * @param callback The callback
154
- */
155
- get(resourceGroupName: string, accountName: string, tableName: string, callback: msRest.ServiceCallback<Models.Table>): void;
156
- /**
157
- * @param resourceGroupName The name of the resource group within the user's subscription. The name
158
- * is case insensitive.
155
+ * @param resourceGroupName The name of the resource group within the user's subscription. The name is
156
+ * case insensitive.
159
157
  * @param accountName The name of the storage account within the specified resource group. Storage
160
- * account names must be between 3 and 24 characters in length and use numbers and lower-case
161
- * letters only.
162
- * @param tableName A table name must be unique within a storage account and must be between 3 and
163
- * 63 characters.The name must comprise of only alphanumeric characters and it cannot begin with a
164
- * numeric character.
165
- * @param options The optional parameters
166
- * @param callback The callback
158
+ * account names must be between 3 and 24 characters in length and use numbers and lower-case letters
159
+ * only.
160
+ * @param tableName A table name must be unique within a storage account and must be between 3 and 63
161
+ * characters.The name must comprise of only alphanumeric characters and it cannot begin with a numeric
162
+ * character.
163
+ * @param options The options parameters.
167
164
  */
168
- get(resourceGroupName: string, accountName: string, tableName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.Table>): void;
169
- get(resourceGroupName: string, accountName: string, tableName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.Table>, callback?: msRest.ServiceCallback<Models.Table>): Promise<Models.TableGetResponse> {
165
+ get(
166
+ resourceGroupName: string,
167
+ accountName: string,
168
+ tableName: string,
169
+ options?: TableGetOptionalParams
170
+ ): Promise<TableGetResponse> {
170
171
  return this.client.sendOperationRequest(
171
- {
172
- resourceGroupName,
173
- accountName,
174
- tableName,
175
- options
176
- },
177
- getOperationSpec,
178
- callback) as Promise<Models.TableGetResponse>;
172
+ { resourceGroupName, accountName, tableName, options },
173
+ getOperationSpec
174
+ );
179
175
  }
180
176
 
181
177
  /**
182
178
  * Deletes the table with the specified table name, under the specified account if it exists.
183
- * @param resourceGroupName The name of the resource group within the user's subscription. The name
184
- * is case insensitive.
179
+ * @param resourceGroupName The name of the resource group within the user's subscription. The name is
180
+ * case insensitive.
185
181
  * @param accountName The name of the storage account within the specified resource group. Storage
186
- * account names must be between 3 and 24 characters in length and use numbers and lower-case
187
- * letters only.
188
- * @param tableName A table name must be unique within a storage account and must be between 3 and
189
- * 63 characters.The name must comprise of only alphanumeric characters and it cannot begin with a
190
- * numeric character.
191
- * @param [options] The optional parameters
192
- * @returns Promise<msRest.RestResponse>
182
+ * account names must be between 3 and 24 characters in length and use numbers and lower-case letters
183
+ * only.
184
+ * @param tableName A table name must be unique within a storage account and must be between 3 and 63
185
+ * characters.The name must comprise of only alphanumeric characters and it cannot begin with a numeric
186
+ * character.
187
+ * @param options The options parameters.
193
188
  */
194
- deleteMethod(resourceGroupName: string, accountName: string, tableName: string, options?: msRest.RequestOptionsBase): Promise<msRest.RestResponse>;
195
- /**
196
- * @param resourceGroupName The name of the resource group within the user's subscription. The name
197
- * is case insensitive.
198
- * @param accountName The name of the storage account within the specified resource group. Storage
199
- * account names must be between 3 and 24 characters in length and use numbers and lower-case
200
- * letters only.
201
- * @param tableName A table name must be unique within a storage account and must be between 3 and
202
- * 63 characters.The name must comprise of only alphanumeric characters and it cannot begin with a
203
- * numeric character.
204
- * @param callback The callback
205
- */
206
- deleteMethod(resourceGroupName: string, accountName: string, tableName: string, callback: msRest.ServiceCallback<void>): void;
207
- /**
208
- * @param resourceGroupName The name of the resource group within the user's subscription. The name
209
- * is case insensitive.
210
- * @param accountName The name of the storage account within the specified resource group. Storage
211
- * account names must be between 3 and 24 characters in length and use numbers and lower-case
212
- * letters only.
213
- * @param tableName A table name must be unique within a storage account and must be between 3 and
214
- * 63 characters.The name must comprise of only alphanumeric characters and it cannot begin with a
215
- * numeric character.
216
- * @param options The optional parameters
217
- * @param callback The callback
218
- */
219
- deleteMethod(resourceGroupName: string, accountName: string, tableName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<void>): void;
220
- deleteMethod(resourceGroupName: string, accountName: string, tableName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<void>, callback?: msRest.ServiceCallback<void>): Promise<msRest.RestResponse> {
189
+ delete(
190
+ resourceGroupName: string,
191
+ accountName: string,
192
+ tableName: string,
193
+ options?: TableDeleteOptionalParams
194
+ ): Promise<void> {
221
195
  return this.client.sendOperationRequest(
222
- {
223
- resourceGroupName,
224
- accountName,
225
- tableName,
226
- options
227
- },
228
- deleteMethodOperationSpec,
229
- callback);
196
+ { resourceGroupName, accountName, tableName, options },
197
+ deleteOperationSpec
198
+ );
230
199
  }
231
200
 
232
201
  /**
233
202
  * Gets a list of all the tables under the specified storage account
234
- * @param resourceGroupName The name of the resource group within the user's subscription. The name
235
- * is case insensitive.
236
- * @param accountName The name of the storage account within the specified resource group. Storage
237
- * account names must be between 3 and 24 characters in length and use numbers and lower-case
238
- * letters only.
239
- * @param [options] The optional parameters
240
- * @returns Promise<Models.TableListResponse>
241
- */
242
- list(resourceGroupName: string, accountName: string, options?: msRest.RequestOptionsBase): Promise<Models.TableListResponse>;
243
- /**
244
- * @param resourceGroupName The name of the resource group within the user's subscription. The name
245
- * is case insensitive.
203
+ * @param resourceGroupName The name of the resource group within the user's subscription. The name is
204
+ * case insensitive.
246
205
  * @param accountName The name of the storage account within the specified resource group. Storage
247
- * account names must be between 3 and 24 characters in length and use numbers and lower-case
248
- * letters only.
249
- * @param callback The callback
206
+ * account names must be between 3 and 24 characters in length and use numbers and lower-case letters
207
+ * only.
208
+ * @param options The options parameters.
250
209
  */
251
- list(resourceGroupName: string, accountName: string, callback: msRest.ServiceCallback<Models.ListTableResource>): void;
252
- /**
253
- * @param resourceGroupName The name of the resource group within the user's subscription. The name
254
- * is case insensitive.
255
- * @param accountName The name of the storage account within the specified resource group. Storage
256
- * account names must be between 3 and 24 characters in length and use numbers and lower-case
257
- * letters only.
258
- * @param options The optional parameters
259
- * @param callback The callback
260
- */
261
- list(resourceGroupName: string, accountName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.ListTableResource>): void;
262
- list(resourceGroupName: string, accountName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.ListTableResource>, callback?: msRest.ServiceCallback<Models.ListTableResource>): Promise<Models.TableListResponse> {
210
+ private _list(
211
+ resourceGroupName: string,
212
+ accountName: string,
213
+ options?: TableListOptionalParams
214
+ ): Promise<TableListResponse> {
263
215
  return this.client.sendOperationRequest(
264
- {
265
- resourceGroupName,
266
- accountName,
267
- options
268
- },
269
- listOperationSpec,
270
- callback) as Promise<Models.TableListResponse>;
216
+ { resourceGroupName, accountName, options },
217
+ listOperationSpec
218
+ );
271
219
  }
272
220
 
273
221
  /**
274
- * Gets a list of all the tables under the specified storage account
275
- * @param nextPageLink The NextLink from the previous successful call to List operation.
276
- * @param [options] The optional parameters
277
- * @returns Promise<Models.TableListNextResponse>
278
- */
279
- listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise<Models.TableListNextResponse>;
280
- /**
281
- * @param nextPageLink The NextLink from the previous successful call to List operation.
282
- * @param callback The callback
283
- */
284
- listNext(nextPageLink: string, callback: msRest.ServiceCallback<Models.ListTableResource>): void;
285
- /**
286
- * @param nextPageLink The NextLink from the previous successful call to List operation.
287
- * @param options The optional parameters
288
- * @param callback The callback
222
+ * ListNext
223
+ * @param resourceGroupName The name of the resource group within the user's subscription. The name is
224
+ * case insensitive.
225
+ * @param accountName The name of the storage account within the specified resource group. Storage
226
+ * account names must be between 3 and 24 characters in length and use numbers and lower-case letters
227
+ * only.
228
+ * @param nextLink The nextLink from the previous successful call to the List method.
229
+ * @param options The options parameters.
289
230
  */
290
- listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.ListTableResource>): void;
291
- listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.ListTableResource>, callback?: msRest.ServiceCallback<Models.ListTableResource>): Promise<Models.TableListNextResponse> {
231
+ private _listNext(
232
+ resourceGroupName: string,
233
+ accountName: string,
234
+ nextLink: string,
235
+ options?: TableListNextOptionalParams
236
+ ): Promise<TableListNextResponse> {
292
237
  return this.client.sendOperationRequest(
293
- {
294
- nextPageLink,
295
- options
296
- },
297
- listNextOperationSpec,
298
- callback) as Promise<Models.TableListNextResponse>;
238
+ { resourceGroupName, accountName, nextLink, options },
239
+ listNextOperationSpec
240
+ );
299
241
  }
300
242
  }
301
-
302
243
  // Operation Specifications
303
- const serializer = new msRest.Serializer(Mappers);
304
- const createOperationSpec: msRest.OperationSpec = {
244
+ const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
245
+
246
+ const createOperationSpec: coreClient.OperationSpec = {
247
+ path:
248
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/tableServices/default/tables/{tableName}",
305
249
  httpMethod: "PUT",
306
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/tableServices/default/tables/{tableName}",
307
- urlParameters: [
308
- Parameters.resourceGroupName,
309
- Parameters.accountName,
310
- Parameters.subscriptionId,
311
- Parameters.tableName
312
- ],
313
- queryParameters: [
314
- Parameters.apiVersion
315
- ],
316
- headerParameters: [
317
- Parameters.acceptLanguage
318
- ],
319
250
  responses: {
320
251
  200: {
321
252
  bodyMapper: Mappers.Table
322
253
  },
323
254
  default: {
324
- bodyMapper: Mappers.CloudError
255
+ bodyMapper: Mappers.CloudErrorAutoGenerated
325
256
  }
326
257
  },
327
- serializer
328
- };
329
-
330
- const updateOperationSpec: msRest.OperationSpec = {
331
- httpMethod: "PATCH",
332
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/tableServices/default/tables/{tableName}",
258
+ queryParameters: [Parameters.apiVersion],
333
259
  urlParameters: [
334
- Parameters.resourceGroupName,
335
- Parameters.accountName,
260
+ Parameters.$host,
336
261
  Parameters.subscriptionId,
262
+ Parameters.resourceGroupName,
263
+ Parameters.accountName1,
337
264
  Parameters.tableName
338
265
  ],
339
- queryParameters: [
340
- Parameters.apiVersion
341
- ],
342
- headerParameters: [
343
- Parameters.acceptLanguage
344
- ],
266
+ headerParameters: [Parameters.accept],
267
+ serializer
268
+ };
269
+ const updateOperationSpec: coreClient.OperationSpec = {
270
+ path:
271
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/tableServices/default/tables/{tableName}",
272
+ httpMethod: "PATCH",
345
273
  responses: {
346
274
  200: {
347
275
  bodyMapper: Mappers.Table
348
276
  },
349
277
  default: {
350
- bodyMapper: Mappers.CloudError
278
+ bodyMapper: Mappers.CloudErrorAutoGenerated
351
279
  }
352
280
  },
353
- serializer
354
- };
355
-
356
- const getOperationSpec: msRest.OperationSpec = {
357
- httpMethod: "GET",
358
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/tableServices/default/tables/{tableName}",
281
+ queryParameters: [Parameters.apiVersion],
359
282
  urlParameters: [
360
- Parameters.resourceGroupName,
361
- Parameters.accountName,
283
+ Parameters.$host,
362
284
  Parameters.subscriptionId,
285
+ Parameters.resourceGroupName,
286
+ Parameters.accountName1,
363
287
  Parameters.tableName
364
288
  ],
365
- queryParameters: [
366
- Parameters.apiVersion
367
- ],
368
- headerParameters: [
369
- Parameters.acceptLanguage
370
- ],
289
+ headerParameters: [Parameters.accept],
290
+ serializer
291
+ };
292
+ const getOperationSpec: coreClient.OperationSpec = {
293
+ path:
294
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/tableServices/default/tables/{tableName}",
295
+ httpMethod: "GET",
371
296
  responses: {
372
297
  200: {
373
298
  bodyMapper: Mappers.Table
374
299
  },
375
300
  default: {
376
- bodyMapper: Mappers.CloudError
301
+ bodyMapper: Mappers.CloudErrorAutoGenerated
377
302
  }
378
303
  },
379
- serializer
380
- };
381
-
382
- const deleteMethodOperationSpec: msRest.OperationSpec = {
383
- httpMethod: "DELETE",
384
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/tableServices/default/tables/{tableName}",
304
+ queryParameters: [Parameters.apiVersion],
385
305
  urlParameters: [
386
- Parameters.resourceGroupName,
387
- Parameters.accountName,
306
+ Parameters.$host,
388
307
  Parameters.subscriptionId,
308
+ Parameters.resourceGroupName,
309
+ Parameters.accountName1,
389
310
  Parameters.tableName
390
311
  ],
391
- queryParameters: [
392
- Parameters.apiVersion
393
- ],
394
- headerParameters: [
395
- Parameters.acceptLanguage
396
- ],
312
+ headerParameters: [Parameters.accept],
313
+ serializer
314
+ };
315
+ const deleteOperationSpec: coreClient.OperationSpec = {
316
+ path:
317
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/tableServices/default/tables/{tableName}",
318
+ httpMethod: "DELETE",
397
319
  responses: {
398
320
  204: {},
399
321
  default: {
400
- bodyMapper: Mappers.CloudError
322
+ bodyMapper: Mappers.CloudErrorAutoGenerated
401
323
  }
402
324
  },
403
- serializer
404
- };
405
-
406
- const listOperationSpec: msRest.OperationSpec = {
407
- httpMethod: "GET",
408
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/tableServices/default/tables",
325
+ queryParameters: [Parameters.apiVersion],
409
326
  urlParameters: [
327
+ Parameters.$host,
328
+ Parameters.subscriptionId,
410
329
  Parameters.resourceGroupName,
411
- Parameters.accountName,
412
- Parameters.subscriptionId
413
- ],
414
- queryParameters: [
415
- Parameters.apiVersion
416
- ],
417
- headerParameters: [
418
- Parameters.acceptLanguage
330
+ Parameters.accountName1,
331
+ Parameters.tableName
419
332
  ],
333
+ headerParameters: [Parameters.accept],
334
+ serializer
335
+ };
336
+ const listOperationSpec: coreClient.OperationSpec = {
337
+ path:
338
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/tableServices/default/tables",
339
+ httpMethod: "GET",
420
340
  responses: {
421
341
  200: {
422
342
  bodyMapper: Mappers.ListTableResource
423
343
  },
424
344
  default: {
425
- bodyMapper: Mappers.CloudError
345
+ bodyMapper: Mappers.CloudErrorAutoGenerated
426
346
  }
427
347
  },
348
+ queryParameters: [Parameters.apiVersion],
349
+ urlParameters: [
350
+ Parameters.$host,
351
+ Parameters.subscriptionId,
352
+ Parameters.resourceGroupName,
353
+ Parameters.accountName1
354
+ ],
355
+ headerParameters: [Parameters.accept],
428
356
  serializer
429
357
  };
430
-
431
- const listNextOperationSpec: msRest.OperationSpec = {
432
- httpMethod: "GET",
433
- baseUrl: "https://management.azure.com",
358
+ const listNextOperationSpec: coreClient.OperationSpec = {
434
359
  path: "{nextLink}",
435
- urlParameters: [
436
- Parameters.nextPageLink
437
- ],
438
- queryParameters: [
439
- Parameters.apiVersion
440
- ],
441
- headerParameters: [
442
- Parameters.acceptLanguage
443
- ],
360
+ httpMethod: "GET",
444
361
  responses: {
445
362
  200: {
446
363
  bodyMapper: Mappers.ListTableResource
447
364
  },
448
365
  default: {
449
- bodyMapper: Mappers.CloudError
366
+ bodyMapper: Mappers.CloudErrorAutoGenerated
450
367
  }
451
368
  },
369
+ queryParameters: [Parameters.apiVersion],
370
+ urlParameters: [
371
+ Parameters.$host,
372
+ Parameters.subscriptionId,
373
+ Parameters.resourceGroupName,
374
+ Parameters.accountName1,
375
+ Parameters.nextLink
376
+ ],
377
+ headerParameters: [Parameters.accept],
452
378
  serializer
453
379
  };