@azure/arm-storagecache 4.3.0 → 5.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 (312) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/LICENSE +21 -0
  3. package/README.md +70 -78
  4. package/dist/index.js +3916 -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/samples-dev/ascOperationsGet.d.ts +2 -0
  9. package/dist-esm/samples-dev/ascOperationsGet.d.ts.map +1 -0
  10. package/dist-esm/samples-dev/ascOperationsGet.js +31 -0
  11. package/dist-esm/samples-dev/ascOperationsGet.js.map +1 -0
  12. package/dist-esm/samples-dev/cachesCreateOrUpdate.d.ts +2 -0
  13. package/dist-esm/samples-dev/cachesCreateOrUpdate.d.ts.map +1 -0
  14. package/dist-esm/samples-dev/cachesCreateOrUpdate.js +89 -0
  15. package/dist-esm/samples-dev/cachesCreateOrUpdate.js.map +1 -0
  16. package/dist-esm/samples-dev/cachesCreateOrUpdateLdapOnly.d.ts +2 -0
  17. package/dist-esm/samples-dev/cachesCreateOrUpdateLdapOnly.d.ts.map +1 -0
  18. package/dist-esm/samples-dev/cachesCreateOrUpdateLdapOnly.js +75 -0
  19. package/dist-esm/samples-dev/cachesCreateOrUpdateLdapOnly.js.map +1 -0
  20. package/dist-esm/samples-dev/cachesDebugInfo.d.ts +2 -0
  21. package/dist-esm/samples-dev/cachesDebugInfo.d.ts.map +1 -0
  22. package/dist-esm/samples-dev/cachesDebugInfo.js +31 -0
  23. package/dist-esm/samples-dev/cachesDebugInfo.js.map +1 -0
  24. package/dist-esm/samples-dev/cachesDelete.d.ts +2 -0
  25. package/dist-esm/samples-dev/cachesDelete.d.ts.map +1 -0
  26. package/dist-esm/samples-dev/cachesDelete.js +31 -0
  27. package/dist-esm/samples-dev/cachesDelete.js.map +1 -0
  28. package/dist-esm/samples-dev/cachesDnsRefresh.d.ts +2 -0
  29. package/dist-esm/samples-dev/cachesDnsRefresh.d.ts.map +1 -0
  30. package/dist-esm/samples-dev/cachesDnsRefresh.js +32 -0
  31. package/dist-esm/samples-dev/cachesDnsRefresh.js.map +1 -0
  32. package/dist-esm/samples-dev/cachesFlush.d.ts +2 -0
  33. package/dist-esm/samples-dev/cachesFlush.d.ts.map +1 -0
  34. package/dist-esm/samples-dev/cachesFlush.js +31 -0
  35. package/dist-esm/samples-dev/cachesFlush.js.map +1 -0
  36. package/dist-esm/samples-dev/cachesGet.d.ts +2 -0
  37. package/dist-esm/samples-dev/cachesGet.d.ts.map +1 -0
  38. package/dist-esm/samples-dev/cachesGet.js +31 -0
  39. package/dist-esm/samples-dev/cachesGet.js.map +1 -0
  40. package/dist-esm/samples-dev/cachesList.d.ts +2 -0
  41. package/dist-esm/samples-dev/cachesList.d.ts.map +1 -0
  42. package/dist-esm/samples-dev/cachesList.js +43 -0
  43. package/dist-esm/samples-dev/cachesList.js.map +1 -0
  44. package/dist-esm/samples-dev/cachesListByResourceGroup.d.ts +2 -0
  45. package/dist-esm/samples-dev/cachesListByResourceGroup.d.ts.map +1 -0
  46. package/dist-esm/samples-dev/cachesListByResourceGroup.js +44 -0
  47. package/dist-esm/samples-dev/cachesListByResourceGroup.js.map +1 -0
  48. package/dist-esm/samples-dev/cachesStart.d.ts +2 -0
  49. package/dist-esm/samples-dev/cachesStart.d.ts.map +1 -0
  50. package/dist-esm/samples-dev/cachesStart.js +31 -0
  51. package/dist-esm/samples-dev/cachesStart.js.map +1 -0
  52. package/dist-esm/samples-dev/cachesStop.d.ts +2 -0
  53. package/dist-esm/samples-dev/cachesStop.d.ts.map +1 -0
  54. package/dist-esm/samples-dev/cachesStop.js +31 -0
  55. package/dist-esm/samples-dev/cachesStop.js.map +1 -0
  56. package/dist-esm/samples-dev/cachesUpdate.d.ts +2 -0
  57. package/dist-esm/samples-dev/cachesUpdate.d.ts.map +1 -0
  58. package/dist-esm/samples-dev/cachesUpdate.js +101 -0
  59. package/dist-esm/samples-dev/cachesUpdate.js.map +1 -0
  60. package/dist-esm/samples-dev/cachesUpdateLdapOnly.d.ts +2 -0
  61. package/dist-esm/samples-dev/cachesUpdateLdapOnly.d.ts.map +1 -0
  62. package/dist-esm/samples-dev/cachesUpdateLdapOnly.js +103 -0
  63. package/dist-esm/samples-dev/cachesUpdateLdapOnly.js.map +1 -0
  64. package/dist-esm/samples-dev/cachesUpgradeFirmware.d.ts +2 -0
  65. package/dist-esm/samples-dev/cachesUpgradeFirmware.d.ts.map +1 -0
  66. package/dist-esm/samples-dev/cachesUpgradeFirmware.js +31 -0
  67. package/dist-esm/samples-dev/cachesUpgradeFirmware.js.map +1 -0
  68. package/dist-esm/samples-dev/skusList.d.ts +2 -0
  69. package/dist-esm/samples-dev/skusList.d.ts.map +1 -0
  70. package/dist-esm/samples-dev/skusList.js +43 -0
  71. package/dist-esm/samples-dev/skusList.js.map +1 -0
  72. package/dist-esm/samples-dev/storageTargetsCreateOrUpdate.d.ts +2 -0
  73. package/dist-esm/samples-dev/storageTargetsCreateOrUpdate.d.ts.map +1 -0
  74. package/dist-esm/samples-dev/storageTargetsCreateOrUpdate.js +51 -0
  75. package/dist-esm/samples-dev/storageTargetsCreateOrUpdate.js.map +1 -0
  76. package/dist-esm/samples-dev/storageTargetsCreateOrUpdateBlobNfs.d.ts +2 -0
  77. package/dist-esm/samples-dev/storageTargetsCreateOrUpdateBlobNfs.d.ts.map +1 -0
  78. package/dist-esm/samples-dev/storageTargetsCreateOrUpdateBlobNfs.js +41 -0
  79. package/dist-esm/samples-dev/storageTargetsCreateOrUpdateBlobNfs.js.map +1 -0
  80. package/dist-esm/samples-dev/storageTargetsCreateOrUpdateNoJunctions.d.ts +2 -0
  81. package/dist-esm/samples-dev/storageTargetsCreateOrUpdateNoJunctions.d.ts.map +1 -0
  82. package/dist-esm/samples-dev/storageTargetsCreateOrUpdateNoJunctions.js +37 -0
  83. package/dist-esm/samples-dev/storageTargetsCreateOrUpdateNoJunctions.js.map +1 -0
  84. package/dist-esm/samples-dev/storageTargetsDelete.d.ts +2 -0
  85. package/dist-esm/samples-dev/storageTargetsDelete.d.ts.map +1 -0
  86. package/dist-esm/samples-dev/storageTargetsDelete.js +32 -0
  87. package/dist-esm/samples-dev/storageTargetsDelete.js.map +1 -0
  88. package/dist-esm/samples-dev/storageTargetsFlush.d.ts +2 -0
  89. package/dist-esm/samples-dev/storageTargetsFlush.d.ts.map +1 -0
  90. package/dist-esm/samples-dev/storageTargetsFlush.js +32 -0
  91. package/dist-esm/samples-dev/storageTargetsFlush.js.map +1 -0
  92. package/dist-esm/samples-dev/storageTargetsGet.d.ts +2 -0
  93. package/dist-esm/samples-dev/storageTargetsGet.d.ts.map +1 -0
  94. package/dist-esm/samples-dev/storageTargetsGet.js +32 -0
  95. package/dist-esm/samples-dev/storageTargetsGet.js.map +1 -0
  96. package/dist-esm/samples-dev/storageTargetsList.d.ts +2 -0
  97. package/dist-esm/samples-dev/storageTargetsList.d.ts.map +1 -0
  98. package/dist-esm/samples-dev/storageTargetsList.js +45 -0
  99. package/dist-esm/samples-dev/storageTargetsList.js.map +1 -0
  100. package/dist-esm/samples-dev/storageTargetsResume.d.ts +2 -0
  101. package/dist-esm/samples-dev/storageTargetsResume.d.ts.map +1 -0
  102. package/dist-esm/samples-dev/storageTargetsResume.js +32 -0
  103. package/dist-esm/samples-dev/storageTargetsResume.js.map +1 -0
  104. package/dist-esm/samples-dev/storageTargetsSuspend.d.ts +2 -0
  105. package/dist-esm/samples-dev/storageTargetsSuspend.d.ts.map +1 -0
  106. package/dist-esm/samples-dev/storageTargetsSuspend.js +32 -0
  107. package/dist-esm/samples-dev/storageTargetsSuspend.js.map +1 -0
  108. package/dist-esm/samples-dev/usageModelsList.d.ts +2 -0
  109. package/dist-esm/samples-dev/usageModelsList.d.ts.map +1 -0
  110. package/dist-esm/samples-dev/usageModelsList.js +43 -0
  111. package/dist-esm/samples-dev/usageModelsList.js.map +1 -0
  112. package/dist-esm/src/index.d.ts +5 -0
  113. package/dist-esm/src/index.d.ts.map +1 -0
  114. package/{esm/models/ascOperationsMappers.js → dist-esm/src/index.js} +5 -2
  115. package/dist-esm/src/index.js.map +1 -0
  116. package/dist-esm/src/lroImpl.d.ts +16 -0
  117. package/dist-esm/src/lroImpl.d.ts.map +1 -0
  118. package/dist-esm/src/lroImpl.js +29 -0
  119. package/dist-esm/src/lroImpl.js.map +1 -0
  120. package/dist-esm/src/models/index.d.ts +1030 -0
  121. package/dist-esm/src/models/index.d.ts.map +1 -0
  122. package/dist-esm/src/models/index.js +114 -0
  123. package/dist-esm/src/models/index.js.map +1 -0
  124. package/dist-esm/src/models/mappers.d.ts +49 -0
  125. package/dist-esm/src/models/mappers.d.ts.map +1 -0
  126. package/{esm → dist-esm/src}/models/mappers.js +848 -893
  127. package/dist-esm/src/models/mappers.js.map +1 -0
  128. package/dist-esm/src/models/parameters.d.ts +16 -0
  129. package/dist-esm/src/models/parameters.d.ts.map +1 -0
  130. package/{esm → dist-esm/src}/models/parameters.js +71 -42
  131. package/dist-esm/src/models/parameters.js.map +1 -0
  132. package/dist-esm/src/operations/ascOperations.d.ts +20 -0
  133. package/dist-esm/src/operations/ascOperations.d.ts.map +1 -0
  134. package/dist-esm/src/operations/ascOperations.js +53 -0
  135. package/dist-esm/src/operations/ascOperations.js.map +1 -0
  136. package/dist-esm/src/operations/caches.d.ts +184 -0
  137. package/dist-esm/src/operations/caches.d.ts.map +1 -0
  138. package/dist-esm/src/operations/caches.js +825 -0
  139. package/dist-esm/src/operations/caches.js.map +1 -0
  140. package/{esm → dist-esm/src}/operations/index.d.ts +0 -0
  141. package/dist-esm/src/operations/index.d.ts.map +1 -0
  142. package/{esm → dist-esm/src}/operations/index.js +1 -2
  143. package/dist-esm/src/operations/index.js.map +1 -0
  144. package/dist-esm/src/operations/operations.d.ts +32 -0
  145. package/dist-esm/src/operations/operations.d.ts.map +1 -0
  146. package/dist-esm/src/operations/operations.js +120 -0
  147. package/dist-esm/src/operations/operations.js.map +1 -0
  148. package/dist-esm/src/operations/skus.d.ts +32 -0
  149. package/dist-esm/src/operations/skus.d.ts.map +1 -0
  150. package/dist-esm/src/operations/skus.js +124 -0
  151. package/dist-esm/src/operations/skus.js.map +1 -0
  152. package/dist-esm/src/operations/storageTargetOperations.d.ts +70 -0
  153. package/dist-esm/src/operations/storageTargetOperations.d.ts.map +1 -0
  154. package/dist-esm/src/operations/storageTargetOperations.js +259 -0
  155. package/dist-esm/src/operations/storageTargetOperations.js.map +1 -0
  156. package/dist-esm/src/operations/storageTargets.d.ts +115 -0
  157. package/dist-esm/src/operations/storageTargets.d.ts.map +1 -0
  158. package/dist-esm/src/operations/storageTargets.js +424 -0
  159. package/dist-esm/src/operations/storageTargets.js.map +1 -0
  160. package/dist-esm/src/operations/usageModels.d.ts +32 -0
  161. package/dist-esm/src/operations/usageModels.d.ts.map +1 -0
  162. package/dist-esm/src/operations/usageModels.js +124 -0
  163. package/dist-esm/src/operations/usageModels.js.map +1 -0
  164. package/dist-esm/src/operationsInterfaces/ascOperations.d.ts +12 -0
  165. package/dist-esm/src/operationsInterfaces/ascOperations.d.ts.map +1 -0
  166. package/{src/models/ascOperationsMappers.ts → dist-esm/src/operationsInterfaces/ascOperations.js} +2 -6
  167. package/dist-esm/src/operationsInterfaces/ascOperations.js.map +1 -0
  168. package/dist-esm/src/operationsInterfaces/caches.d.ts +148 -0
  169. package/dist-esm/src/operationsInterfaces/caches.d.ts.map +1 -0
  170. package/{src/models/storageTargetOperationsMappers.ts → dist-esm/src/operationsInterfaces/caches.js} +2 -4
  171. package/dist-esm/src/operationsInterfaces/caches.js.map +1 -0
  172. package/dist-esm/src/operationsInterfaces/index.d.ts +8 -0
  173. package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
  174. package/dist-esm/src/operationsInterfaces/index.js +15 -0
  175. package/dist-esm/src/operationsInterfaces/index.js.map +1 -0
  176. package/dist-esm/src/operationsInterfaces/operations.d.ts +11 -0
  177. package/dist-esm/src/operationsInterfaces/operations.d.ts.map +1 -0
  178. package/{esm/models/storageTargetOperationsMappers.js → dist-esm/src/operationsInterfaces/operations.js} +2 -2
  179. package/dist-esm/src/operationsInterfaces/operations.js.map +1 -0
  180. package/dist-esm/src/operationsInterfaces/skus.d.ts +11 -0
  181. package/dist-esm/src/operationsInterfaces/skus.d.ts.map +1 -0
  182. package/{esm/models/index.js → dist-esm/src/operationsInterfaces/skus.js} +2 -1
  183. package/dist-esm/src/operationsInterfaces/skus.js.map +1 -0
  184. package/dist-esm/src/operationsInterfaces/storageTargetOperations.d.ts +62 -0
  185. package/dist-esm/src/operationsInterfaces/storageTargetOperations.d.ts.map +1 -0
  186. package/dist-esm/src/operationsInterfaces/storageTargetOperations.js +9 -0
  187. package/dist-esm/src/operationsInterfaces/storageTargetOperations.js.map +1 -0
  188. package/dist-esm/src/operationsInterfaces/storageTargets.d.ts +88 -0
  189. package/dist-esm/src/operationsInterfaces/storageTargets.d.ts.map +1 -0
  190. package/dist-esm/src/operationsInterfaces/storageTargets.js +9 -0
  191. package/dist-esm/src/operationsInterfaces/storageTargets.js.map +1 -0
  192. package/dist-esm/src/operationsInterfaces/usageModels.d.ts +11 -0
  193. package/dist-esm/src/operationsInterfaces/usageModels.d.ts.map +1 -0
  194. package/dist-esm/src/operationsInterfaces/usageModels.js +9 -0
  195. package/dist-esm/src/operationsInterfaces/usageModels.js.map +1 -0
  196. package/dist-esm/src/storageCacheManagementClient.d.ts +25 -0
  197. package/dist-esm/src/storageCacheManagementClient.d.ts.map +1 -0
  198. package/dist-esm/src/storageCacheManagementClient.js +58 -0
  199. package/dist-esm/src/storageCacheManagementClient.js.map +1 -0
  200. package/dist-esm/test/sampleTest.d.ts +2 -0
  201. package/dist-esm/test/sampleTest.d.ts.map +1 -0
  202. package/dist-esm/test/sampleTest.js +40 -0
  203. package/dist-esm/test/sampleTest.js.map +1 -0
  204. package/package.json +80 -33
  205. package/review/arm-storagecache.api.md +883 -0
  206. package/rollup.config.js +181 -30
  207. package/src/{models/skusMappers.ts → index.ts} +4 -8
  208. package/src/lroImpl.ts +34 -0
  209. package/src/models/index.ts +819 -1303
  210. package/src/models/mappers.ts +856 -900
  211. package/src/models/parameters.ts +92 -43
  212. package/src/operations/ascOperations.ts +37 -51
  213. package/src/operations/caches.ts +844 -504
  214. package/src/operations/index.ts +1 -2
  215. package/src/operations/operations.ts +85 -73
  216. package/src/operations/skus.ts +87 -76
  217. package/src/operations/storageTargetOperations.ts +284 -124
  218. package/src/operations/storageTargets.ts +458 -271
  219. package/src/operations/usageModels.ts +90 -76
  220. package/src/operationsInterfaces/ascOperations.ts +27 -0
  221. package/src/operationsInterfaces/caches.ts +245 -0
  222. package/src/{models/operationsMappers.ts → operationsInterfaces/index.ts} +7 -9
  223. package/src/operationsInterfaces/operations.ts +22 -0
  224. package/src/operationsInterfaces/skus.ts +22 -0
  225. package/src/operationsInterfaces/storageTargetOperations.ts +104 -0
  226. package/src/operationsInterfaces/storageTargets.ts +150 -0
  227. package/src/operationsInterfaces/usageModels.ts +22 -0
  228. package/src/storageCacheManagementClient.ts +90 -46
  229. package/tsconfig.json +5 -4
  230. package/types/arm-storagecache.d.ts +1507 -0
  231. package/types/tsdoc-metadata.json +11 -0
  232. package/dist/arm-storagecache.js +0 -3545
  233. package/dist/arm-storagecache.js.map +0 -1
  234. package/dist/arm-storagecache.min.js +0 -1
  235. package/dist/arm-storagecache.min.js.map +0 -1
  236. package/esm/models/ascOperationsMappers.d.ts +0 -2
  237. package/esm/models/ascOperationsMappers.d.ts.map +0 -1
  238. package/esm/models/ascOperationsMappers.js.map +0 -1
  239. package/esm/models/cachesMappers.d.ts +0 -2
  240. package/esm/models/cachesMappers.d.ts.map +0 -1
  241. package/esm/models/cachesMappers.js +0 -9
  242. package/esm/models/cachesMappers.js.map +0 -1
  243. package/esm/models/index.d.ts +0 -1541
  244. package/esm/models/index.d.ts.map +0 -1
  245. package/esm/models/index.js.map +0 -1
  246. package/esm/models/mappers.d.ts +0 -50
  247. package/esm/models/mappers.d.ts.map +0 -1
  248. package/esm/models/mappers.js.map +0 -1
  249. package/esm/models/operationsMappers.d.ts +0 -2
  250. package/esm/models/operationsMappers.d.ts.map +0 -1
  251. package/esm/models/operationsMappers.js +0 -9
  252. package/esm/models/operationsMappers.js.map +0 -1
  253. package/esm/models/parameters.d.ts +0 -12
  254. package/esm/models/parameters.d.ts.map +0 -1
  255. package/esm/models/parameters.js.map +0 -1
  256. package/esm/models/skusMappers.d.ts +0 -2
  257. package/esm/models/skusMappers.d.ts.map +0 -1
  258. package/esm/models/skusMappers.js +0 -9
  259. package/esm/models/skusMappers.js.map +0 -1
  260. package/esm/models/storageTargetOperationsMappers.d.ts +0 -2
  261. package/esm/models/storageTargetOperationsMappers.d.ts.map +0 -1
  262. package/esm/models/storageTargetOperationsMappers.js.map +0 -1
  263. package/esm/models/storageTargetsMappers.d.ts +0 -2
  264. package/esm/models/storageTargetsMappers.d.ts.map +0 -1
  265. package/esm/models/storageTargetsMappers.js +0 -9
  266. package/esm/models/storageTargetsMappers.js.map +0 -1
  267. package/esm/models/usageModelsMappers.d.ts +0 -2
  268. package/esm/models/usageModelsMappers.d.ts.map +0 -1
  269. package/esm/models/usageModelsMappers.js +0 -9
  270. package/esm/models/usageModelsMappers.js.map +0 -1
  271. package/esm/operations/ascOperations.d.ts +0 -34
  272. package/esm/operations/ascOperations.d.ts.map +0 -1
  273. package/esm/operations/ascOperations.js +0 -57
  274. package/esm/operations/ascOperations.js.map +0 -1
  275. package/esm/operations/caches.d.ts +0 -261
  276. package/esm/operations/caches.d.ts.map +0 -1
  277. package/esm/operations/caches.js +0 -581
  278. package/esm/operations/caches.js.map +0 -1
  279. package/esm/operations/index.d.ts.map +0 -1
  280. package/esm/operations/index.js.map +0 -1
  281. package/esm/operations/operations.d.ts +0 -46
  282. package/esm/operations/operations.d.ts.map +0 -1
  283. package/esm/operations/operations.js +0 -79
  284. package/esm/operations/operations.js.map +0 -1
  285. package/esm/operations/skus.d.ts +0 -46
  286. package/esm/operations/skus.d.ts.map +0 -1
  287. package/esm/operations/skus.js +0 -82
  288. package/esm/operations/skus.js.map +0 -1
  289. package/esm/operations/storageTargetOperations.d.ts +0 -75
  290. package/esm/operations/storageTargetOperations.d.ts.map +0 -1
  291. package/esm/operations/storageTargetOperations.js +0 -193
  292. package/esm/operations/storageTargetOperations.js.map +0 -1
  293. package/esm/operations/storageTargets.d.ts +0 -153
  294. package/esm/operations/storageTargets.d.ts.map +0 -1
  295. package/esm/operations/storageTargets.js +0 -305
  296. package/esm/operations/storageTargets.js.map +0 -1
  297. package/esm/operations/usageModels.d.ts +0 -46
  298. package/esm/operations/usageModels.d.ts.map +0 -1
  299. package/esm/operations/usageModels.js +0 -82
  300. package/esm/operations/usageModels.js.map +0 -1
  301. package/esm/storageCacheManagementClient.d.ts +0 -31
  302. package/esm/storageCacheManagementClient.d.ts.map +0 -1
  303. package/esm/storageCacheManagementClient.js +0 -44
  304. package/esm/storageCacheManagementClient.js.map +0 -1
  305. package/esm/storageCacheManagementClientContext.d.ts +0 -23
  306. package/esm/storageCacheManagementClientContext.d.ts.map +0 -1
  307. package/esm/storageCacheManagementClientContext.js +0 -61
  308. package/esm/storageCacheManagementClientContext.js.map +0 -1
  309. package/src/models/cachesMappers.ts +0 -40
  310. package/src/models/storageTargetsMappers.ts +0 -40
  311. package/src/models/usageModelsMappers.ts +0 -14
  312. package/src/storageCacheManagementClientContext.ts +0 -68
@@ -3,95 +3,110 @@
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/usageModelsMappers";
9
+ import { PagedAsyncIterableIterator } from "@azure/core-paging";
10
+ import { UsageModels } 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 { StorageCacheManagementClientContext } from "../storageCacheManagementClientContext";
14
+ import { StorageCacheManagementClient } from "../storageCacheManagementClient";
15
+ import {
16
+ UsageModel,
17
+ UsageModelsListNextOptionalParams,
18
+ UsageModelsListOptionalParams,
19
+ UsageModelsListResponse,
20
+ UsageModelsListNextResponse
21
+ } from "../models";
15
22
 
16
- /** Class representing a UsageModels. */
17
- export class UsageModels {
18
- private readonly client: StorageCacheManagementClientContext;
23
+ /// <reference lib="esnext.asynciterable" />
24
+ /** Class containing UsageModels operations. */
25
+ export class UsageModelsImpl implements UsageModels {
26
+ private readonly client: StorageCacheManagementClient;
19
27
 
20
28
  /**
21
- * Create a UsageModels.
22
- * @param {StorageCacheManagementClientContext} client Reference to the service client.
29
+ * Initialize a new instance of the class UsageModels class.
30
+ * @param client Reference to the service client
23
31
  */
24
- constructor(client: StorageCacheManagementClientContext) {
32
+ constructor(client: StorageCacheManagementClient) {
25
33
  this.client = client;
26
34
  }
27
35
 
28
36
  /**
29
37
  * Get the list of Cache Usage Models available to this subscription.
30
- * @param [options] The optional parameters
31
- * @returns Promise<Models.UsageModelsListResponse>
38
+ * @param options The options parameters.
32
39
  */
33
- list(options?: msRest.RequestOptionsBase): Promise<Models.UsageModelsListResponse>;
34
- /**
35
- * @param callback The callback
36
- */
37
- list(callback: msRest.ServiceCallback<Models.UsageModelsResult>): void;
38
- /**
39
- * @param options The optional parameters
40
- * @param callback The callback
41
- */
42
- list(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.UsageModelsResult>): void;
43
- list(options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.UsageModelsResult>, callback?: msRest.ServiceCallback<Models.UsageModelsResult>): Promise<Models.UsageModelsListResponse> {
44
- return this.client.sendOperationRequest(
45
- {
46
- options
40
+ public list(
41
+ options?: UsageModelsListOptionalParams
42
+ ): PagedAsyncIterableIterator<UsageModel> {
43
+ const iter = this.listPagingAll(options);
44
+ return {
45
+ next() {
46
+ return iter.next();
47
47
  },
48
- listOperationSpec,
49
- callback) as Promise<Models.UsageModelsListResponse>;
48
+ [Symbol.asyncIterator]() {
49
+ return this;
50
+ },
51
+ byPage: () => {
52
+ return this.listPagingPage(options);
53
+ }
54
+ };
55
+ }
56
+
57
+ private async *listPagingPage(
58
+ options?: UsageModelsListOptionalParams
59
+ ): AsyncIterableIterator<UsageModel[]> {
60
+ let result = await this._list(options);
61
+ yield result.value || [];
62
+ let continuationToken = result.nextLink;
63
+ while (continuationToken) {
64
+ result = await this._listNext(continuationToken, options);
65
+ continuationToken = result.nextLink;
66
+ yield result.value || [];
67
+ }
68
+ }
69
+
70
+ private async *listPagingAll(
71
+ options?: UsageModelsListOptionalParams
72
+ ): AsyncIterableIterator<UsageModel> {
73
+ for await (const page of this.listPagingPage(options)) {
74
+ yield* page;
75
+ }
50
76
  }
51
77
 
52
78
  /**
53
79
  * Get the list of Cache Usage Models available to this subscription.
54
- * @param nextPageLink The NextLink from the previous successful call to List operation.
55
- * @param [options] The optional parameters
56
- * @returns Promise<Models.UsageModelsListNextResponse>
57
- */
58
- listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise<Models.UsageModelsListNextResponse>;
59
- /**
60
- * @param nextPageLink The NextLink from the previous successful call to List operation.
61
- * @param callback The callback
80
+ * @param options The options parameters.
62
81
  */
63
- listNext(nextPageLink: string, callback: msRest.ServiceCallback<Models.UsageModelsResult>): void;
82
+ private _list(
83
+ options?: UsageModelsListOptionalParams
84
+ ): Promise<UsageModelsListResponse> {
85
+ return this.client.sendOperationRequest({ options }, listOperationSpec);
86
+ }
87
+
64
88
  /**
65
- * @param nextPageLink The NextLink from the previous successful call to List operation.
66
- * @param options The optional parameters
67
- * @param callback The callback
89
+ * ListNext
90
+ * @param nextLink The nextLink from the previous successful call to the List method.
91
+ * @param options The options parameters.
68
92
  */
69
- listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.UsageModelsResult>): void;
70
- listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.UsageModelsResult>, callback?: msRest.ServiceCallback<Models.UsageModelsResult>): Promise<Models.UsageModelsListNextResponse> {
93
+ private _listNext(
94
+ nextLink: string,
95
+ options?: UsageModelsListNextOptionalParams
96
+ ): Promise<UsageModelsListNextResponse> {
71
97
  return this.client.sendOperationRequest(
72
- {
73
- nextPageLink,
74
- options
75
- },
76
- listNextOperationSpec,
77
- callback) as Promise<Models.UsageModelsListNextResponse>;
98
+ { nextLink, options },
99
+ listNextOperationSpec
100
+ );
78
101
  }
79
102
  }
80
-
81
103
  // Operation Specifications
82
- const serializer = new msRest.Serializer(Mappers);
83
- const listOperationSpec: msRest.OperationSpec = {
104
+ const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
105
+
106
+ const listOperationSpec: coreClient.OperationSpec = {
107
+ path:
108
+ "/subscriptions/{subscriptionId}/providers/Microsoft.StorageCache/usageModels",
84
109
  httpMethod: "GET",
85
- path: "subscriptions/{subscriptionId}/providers/Microsoft.StorageCache/usageModels",
86
- urlParameters: [
87
- Parameters.subscriptionId
88
- ],
89
- queryParameters: [
90
- Parameters.apiVersion
91
- ],
92
- headerParameters: [
93
- Parameters.acceptLanguage
94
- ],
95
110
  responses: {
96
111
  200: {
97
112
  bodyMapper: Mappers.UsageModelsResult
@@ -100,22 +115,14 @@ const listOperationSpec: msRest.OperationSpec = {
100
115
  bodyMapper: Mappers.CloudError
101
116
  }
102
117
  },
118
+ queryParameters: [Parameters.apiVersion],
119
+ urlParameters: [Parameters.$host, Parameters.subscriptionId],
120
+ headerParameters: [Parameters.accept],
103
121
  serializer
104
122
  };
105
-
106
- const listNextOperationSpec: msRest.OperationSpec = {
107
- httpMethod: "GET",
108
- baseUrl: "https://management.azure.com",
123
+ const listNextOperationSpec: coreClient.OperationSpec = {
109
124
  path: "{nextLink}",
110
- urlParameters: [
111
- Parameters.nextPageLink
112
- ],
113
- queryParameters: [
114
- Parameters.apiVersion
115
- ],
116
- headerParameters: [
117
- Parameters.acceptLanguage
118
- ],
125
+ httpMethod: "GET",
119
126
  responses: {
120
127
  200: {
121
128
  bodyMapper: Mappers.UsageModelsResult
@@ -124,5 +131,12 @@ const listNextOperationSpec: msRest.OperationSpec = {
124
131
  bodyMapper: Mappers.CloudError
125
132
  }
126
133
  },
134
+ queryParameters: [Parameters.apiVersion],
135
+ urlParameters: [
136
+ Parameters.$host,
137
+ Parameters.nextLink,
138
+ Parameters.subscriptionId
139
+ ],
140
+ headerParameters: [Parameters.accept],
127
141
  serializer
128
142
  };
@@ -0,0 +1,27 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+
9
+ import {
10
+ AscOperationsGetOptionalParams,
11
+ AscOperationsGetResponse
12
+ } from "../models";
13
+
14
+ /** Interface representing a AscOperations. */
15
+ export interface AscOperations {
16
+ /**
17
+ * Gets the status of an asynchronous operation for the Azure HPC Cache
18
+ * @param location The name of the region used to look up the operation.
19
+ * @param operationId The operation id which uniquely identifies the asynchronous operation.
20
+ * @param options The options parameters.
21
+ */
22
+ get(
23
+ location: string,
24
+ operationId: string,
25
+ options?: AscOperationsGetOptionalParams
26
+ ): Promise<AscOperationsGetResponse>;
27
+ }
@@ -0,0 +1,245 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+
9
+ import { PagedAsyncIterableIterator } from "@azure/core-paging";
10
+ import { PollerLike, PollOperationState } from "@azure/core-lro";
11
+ import {
12
+ Cache,
13
+ CachesListOptionalParams,
14
+ CachesListByResourceGroupOptionalParams,
15
+ CachesDeleteOptionalParams,
16
+ CachesGetOptionalParams,
17
+ CachesGetResponse,
18
+ CachesCreateOrUpdateOptionalParams,
19
+ CachesCreateOrUpdateResponse,
20
+ CachesUpdateOptionalParams,
21
+ CachesUpdateResponse,
22
+ CachesDebugInfoOptionalParams,
23
+ CachesFlushOptionalParams,
24
+ CachesStartOptionalParams,
25
+ CachesStopOptionalParams,
26
+ CachesUpgradeFirmwareOptionalParams
27
+ } from "../models";
28
+
29
+ /// <reference lib="esnext.asynciterable" />
30
+ /** Interface representing a Caches. */
31
+ export interface Caches {
32
+ /**
33
+ * Returns all Caches the user has access to under a subscription.
34
+ * @param options The options parameters.
35
+ */
36
+ list(options?: CachesListOptionalParams): PagedAsyncIterableIterator<Cache>;
37
+ /**
38
+ * Returns all Caches the user has access to under a resource group.
39
+ * @param resourceGroupName Target resource group.
40
+ * @param options The options parameters.
41
+ */
42
+ listByResourceGroup(
43
+ resourceGroupName: string,
44
+ options?: CachesListByResourceGroupOptionalParams
45
+ ): PagedAsyncIterableIterator<Cache>;
46
+ /**
47
+ * Schedules a Cache for deletion.
48
+ * @param resourceGroupName Target resource group.
49
+ * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from
50
+ * the [-0-9a-zA-Z_] char class.
51
+ * @param options The options parameters.
52
+ */
53
+ beginDelete(
54
+ resourceGroupName: string,
55
+ cacheName: string,
56
+ options?: CachesDeleteOptionalParams
57
+ ): Promise<PollerLike<PollOperationState<void>, void>>;
58
+ /**
59
+ * Schedules a Cache for deletion.
60
+ * @param resourceGroupName Target resource group.
61
+ * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from
62
+ * the [-0-9a-zA-Z_] char class.
63
+ * @param options The options parameters.
64
+ */
65
+ beginDeleteAndWait(
66
+ resourceGroupName: string,
67
+ cacheName: string,
68
+ options?: CachesDeleteOptionalParams
69
+ ): Promise<void>;
70
+ /**
71
+ * Returns a Cache.
72
+ * @param resourceGroupName Target resource group.
73
+ * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from
74
+ * the [-0-9a-zA-Z_] char class.
75
+ * @param options The options parameters.
76
+ */
77
+ get(
78
+ resourceGroupName: string,
79
+ cacheName: string,
80
+ options?: CachesGetOptionalParams
81
+ ): Promise<CachesGetResponse>;
82
+ /**
83
+ * Create or update a Cache.
84
+ * @param resourceGroupName Target resource group.
85
+ * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from
86
+ * the [-0-9a-zA-Z_] char class.
87
+ * @param options The options parameters.
88
+ */
89
+ beginCreateOrUpdate(
90
+ resourceGroupName: string,
91
+ cacheName: string,
92
+ options?: CachesCreateOrUpdateOptionalParams
93
+ ): Promise<
94
+ PollerLike<
95
+ PollOperationState<CachesCreateOrUpdateResponse>,
96
+ CachesCreateOrUpdateResponse
97
+ >
98
+ >;
99
+ /**
100
+ * Create or update a Cache.
101
+ * @param resourceGroupName Target resource group.
102
+ * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from
103
+ * the [-0-9a-zA-Z_] char class.
104
+ * @param options The options parameters.
105
+ */
106
+ beginCreateOrUpdateAndWait(
107
+ resourceGroupName: string,
108
+ cacheName: string,
109
+ options?: CachesCreateOrUpdateOptionalParams
110
+ ): Promise<CachesCreateOrUpdateResponse>;
111
+ /**
112
+ * Update a Cache instance.
113
+ * @param resourceGroupName Target resource group.
114
+ * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from
115
+ * the [-0-9a-zA-Z_] char class.
116
+ * @param options The options parameters.
117
+ */
118
+ update(
119
+ resourceGroupName: string,
120
+ cacheName: string,
121
+ options?: CachesUpdateOptionalParams
122
+ ): Promise<CachesUpdateResponse>;
123
+ /**
124
+ * Tells a Cache to write generate debug info for support to process.
125
+ * @param resourceGroupName Target resource group.
126
+ * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from
127
+ * the [-0-9a-zA-Z_] char class.
128
+ * @param options The options parameters.
129
+ */
130
+ beginDebugInfo(
131
+ resourceGroupName: string,
132
+ cacheName: string,
133
+ options?: CachesDebugInfoOptionalParams
134
+ ): Promise<PollerLike<PollOperationState<void>, void>>;
135
+ /**
136
+ * Tells a Cache to write generate debug info for support to process.
137
+ * @param resourceGroupName Target resource group.
138
+ * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from
139
+ * the [-0-9a-zA-Z_] char class.
140
+ * @param options The options parameters.
141
+ */
142
+ beginDebugInfoAndWait(
143
+ resourceGroupName: string,
144
+ cacheName: string,
145
+ options?: CachesDebugInfoOptionalParams
146
+ ): Promise<void>;
147
+ /**
148
+ * Tells a Cache to write all dirty data to the Storage Target(s). During the flush, clients will see
149
+ * errors returned until the flush is complete.
150
+ * @param resourceGroupName Target resource group.
151
+ * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from
152
+ * the [-0-9a-zA-Z_] char class.
153
+ * @param options The options parameters.
154
+ */
155
+ beginFlush(
156
+ resourceGroupName: string,
157
+ cacheName: string,
158
+ options?: CachesFlushOptionalParams
159
+ ): Promise<PollerLike<PollOperationState<void>, void>>;
160
+ /**
161
+ * Tells a Cache to write all dirty data to the Storage Target(s). During the flush, clients will see
162
+ * errors returned until the flush is complete.
163
+ * @param resourceGroupName Target resource group.
164
+ * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from
165
+ * the [-0-9a-zA-Z_] char class.
166
+ * @param options The options parameters.
167
+ */
168
+ beginFlushAndWait(
169
+ resourceGroupName: string,
170
+ cacheName: string,
171
+ options?: CachesFlushOptionalParams
172
+ ): Promise<void>;
173
+ /**
174
+ * Tells a Stopped state Cache to transition to Active state.
175
+ * @param resourceGroupName Target resource group.
176
+ * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from
177
+ * the [-0-9a-zA-Z_] char class.
178
+ * @param options The options parameters.
179
+ */
180
+ beginStart(
181
+ resourceGroupName: string,
182
+ cacheName: string,
183
+ options?: CachesStartOptionalParams
184
+ ): Promise<PollerLike<PollOperationState<void>, void>>;
185
+ /**
186
+ * Tells a Stopped state Cache to transition to Active state.
187
+ * @param resourceGroupName Target resource group.
188
+ * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from
189
+ * the [-0-9a-zA-Z_] char class.
190
+ * @param options The options parameters.
191
+ */
192
+ beginStartAndWait(
193
+ resourceGroupName: string,
194
+ cacheName: string,
195
+ options?: CachesStartOptionalParams
196
+ ): Promise<void>;
197
+ /**
198
+ * Tells an Active Cache to transition to Stopped state.
199
+ * @param resourceGroupName Target resource group.
200
+ * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from
201
+ * the [-0-9a-zA-Z_] char class.
202
+ * @param options The options parameters.
203
+ */
204
+ beginStop(
205
+ resourceGroupName: string,
206
+ cacheName: string,
207
+ options?: CachesStopOptionalParams
208
+ ): Promise<PollerLike<PollOperationState<void>, void>>;
209
+ /**
210
+ * Tells an Active Cache to transition to Stopped state.
211
+ * @param resourceGroupName Target resource group.
212
+ * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from
213
+ * the [-0-9a-zA-Z_] char class.
214
+ * @param options The options parameters.
215
+ */
216
+ beginStopAndWait(
217
+ resourceGroupName: string,
218
+ cacheName: string,
219
+ options?: CachesStopOptionalParams
220
+ ): Promise<void>;
221
+ /**
222
+ * Upgrade a Cache's firmware if a new version is available. Otherwise, this operation has no effect.
223
+ * @param resourceGroupName Target resource group.
224
+ * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from
225
+ * the [-0-9a-zA-Z_] char class.
226
+ * @param options The options parameters.
227
+ */
228
+ beginUpgradeFirmware(
229
+ resourceGroupName: string,
230
+ cacheName: string,
231
+ options?: CachesUpgradeFirmwareOptionalParams
232
+ ): Promise<PollerLike<PollOperationState<void>, void>>;
233
+ /**
234
+ * Upgrade a Cache's firmware if a new version is available. Otherwise, this operation has no effect.
235
+ * @param resourceGroupName Target resource group.
236
+ * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from
237
+ * the [-0-9a-zA-Z_] char class.
238
+ * @param options The options parameters.
239
+ */
240
+ beginUpgradeFirmwareAndWait(
241
+ resourceGroupName: string,
242
+ cacheName: string,
243
+ options?: CachesUpgradeFirmwareOptionalParams
244
+ ): Promise<void>;
245
+ }
@@ -6,12 +6,10 @@
6
6
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
7
  */
8
8
 
9
- export {
10
- ApiOperation,
11
- ApiOperationDisplay,
12
- ApiOperationListResult,
13
- ApiOperationPropertiesServiceSpecification,
14
- CloudError,
15
- MetricDimension,
16
- MetricSpecification
17
- } from "../models/mappers";
9
+ export * from "./operations";
10
+ export * from "./skus";
11
+ export * from "./usageModels";
12
+ export * from "./ascOperations";
13
+ export * from "./caches";
14
+ export * from "./storageTargets";
15
+ export * from "./storageTargetOperations";
@@ -0,0 +1,22 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+
9
+ import { PagedAsyncIterableIterator } from "@azure/core-paging";
10
+ import { ApiOperation, OperationsListOptionalParams } from "../models";
11
+
12
+ /// <reference lib="esnext.asynciterable" />
13
+ /** Interface representing a Operations. */
14
+ export interface Operations {
15
+ /**
16
+ * Lists all of the available Resource Provider operations.
17
+ * @param options The options parameters.
18
+ */
19
+ list(
20
+ options?: OperationsListOptionalParams
21
+ ): PagedAsyncIterableIterator<ApiOperation>;
22
+ }
@@ -0,0 +1,22 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+
9
+ import { PagedAsyncIterableIterator } from "@azure/core-paging";
10
+ import { ResourceSku, SkusListOptionalParams } from "../models";
11
+
12
+ /// <reference lib="esnext.asynciterable" />
13
+ /** Interface representing a Skus. */
14
+ export interface Skus {
15
+ /**
16
+ * Get the list of StorageCache.Cache SKUs available to this subscription.
17
+ * @param options The options parameters.
18
+ */
19
+ list(
20
+ options?: SkusListOptionalParams
21
+ ): PagedAsyncIterableIterator<ResourceSku>;
22
+ }
@@ -0,0 +1,104 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+
9
+ import { PollerLike, PollOperationState } from "@azure/core-lro";
10
+ import {
11
+ StorageTargetFlushOptionalParams,
12
+ StorageTargetSuspendOptionalParams,
13
+ StorageTargetResumeOptionalParams
14
+ } from "../models";
15
+
16
+ /** Interface representing a StorageTargetOperations. */
17
+ export interface StorageTargetOperations {
18
+ /**
19
+ * Tells the cache to write all dirty data to the Storage Target's backend storage. Client requests to
20
+ * this storage target's namespace will return errors until the flush operation completes.
21
+ * @param resourceGroupName Target resource group.
22
+ * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from
23
+ * the [-0-9a-zA-Z_] char class.
24
+ * @param storageTargetName Name of Storage Target.
25
+ * @param options The options parameters.
26
+ */
27
+ beginFlush(
28
+ resourceGroupName: string,
29
+ cacheName: string,
30
+ storageTargetName: string,
31
+ options?: StorageTargetFlushOptionalParams
32
+ ): Promise<PollerLike<PollOperationState<void>, void>>;
33
+ /**
34
+ * Tells the cache to write all dirty data to the Storage Target's backend storage. Client requests to
35
+ * this storage target's namespace will return errors until the flush operation completes.
36
+ * @param resourceGroupName Target resource group.
37
+ * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from
38
+ * the [-0-9a-zA-Z_] char class.
39
+ * @param storageTargetName Name of Storage Target.
40
+ * @param options The options parameters.
41
+ */
42
+ beginFlushAndWait(
43
+ resourceGroupName: string,
44
+ cacheName: string,
45
+ storageTargetName: string,
46
+ options?: StorageTargetFlushOptionalParams
47
+ ): Promise<void>;
48
+ /**
49
+ * Suspends client access to a storage target.
50
+ * @param resourceGroupName Target resource group.
51
+ * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from
52
+ * the [-0-9a-zA-Z_] char class.
53
+ * @param storageTargetName Name of Storage Target.
54
+ * @param options The options parameters.
55
+ */
56
+ beginSuspend(
57
+ resourceGroupName: string,
58
+ cacheName: string,
59
+ storageTargetName: string,
60
+ options?: StorageTargetSuspendOptionalParams
61
+ ): Promise<PollerLike<PollOperationState<void>, void>>;
62
+ /**
63
+ * Suspends client access to a storage target.
64
+ * @param resourceGroupName Target resource group.
65
+ * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from
66
+ * the [-0-9a-zA-Z_] char class.
67
+ * @param storageTargetName Name of Storage Target.
68
+ * @param options The options parameters.
69
+ */
70
+ beginSuspendAndWait(
71
+ resourceGroupName: string,
72
+ cacheName: string,
73
+ storageTargetName: string,
74
+ options?: StorageTargetSuspendOptionalParams
75
+ ): Promise<void>;
76
+ /**
77
+ * Resumes client access to a previously suspended storage target.
78
+ * @param resourceGroupName Target resource group.
79
+ * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from
80
+ * the [-0-9a-zA-Z_] char class.
81
+ * @param storageTargetName Name of Storage Target.
82
+ * @param options The options parameters.
83
+ */
84
+ beginResume(
85
+ resourceGroupName: string,
86
+ cacheName: string,
87
+ storageTargetName: string,
88
+ options?: StorageTargetResumeOptionalParams
89
+ ): Promise<PollerLike<PollOperationState<void>, void>>;
90
+ /**
91
+ * Resumes client access to a previously suspended storage target.
92
+ * @param resourceGroupName Target resource group.
93
+ * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from
94
+ * the [-0-9a-zA-Z_] char class.
95
+ * @param storageTargetName Name of Storage Target.
96
+ * @param options The options parameters.
97
+ */
98
+ beginResumeAndWait(
99
+ resourceGroupName: string,
100
+ cacheName: string,
101
+ storageTargetName: string,
102
+ options?: StorageTargetResumeOptionalParams
103
+ ): Promise<void>;
104
+ }