@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
package/dist/index.js ADDED
@@ -0,0 +1,3916 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var coreClient = require('@azure/core-client');
6
+ var tslib = require('tslib');
7
+ var coreLro = require('@azure/core-lro');
8
+
9
+ /*
10
+ * Copyright (c) Microsoft Corporation.
11
+ * Licensed under the MIT License.
12
+ *
13
+ * Code generated by Microsoft (R) AutoRest Code Generator.
14
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
15
+ */
16
+ (function (KnownMetricAggregationType) {
17
+ KnownMetricAggregationType["NotSpecified"] = "NotSpecified";
18
+ KnownMetricAggregationType["None"] = "None";
19
+ KnownMetricAggregationType["Average"] = "Average";
20
+ KnownMetricAggregationType["Minimum"] = "Minimum";
21
+ KnownMetricAggregationType["Maximum"] = "Maximum";
22
+ KnownMetricAggregationType["Total"] = "Total";
23
+ KnownMetricAggregationType["Count"] = "Count";
24
+ })(exports.KnownMetricAggregationType || (exports.KnownMetricAggregationType = {}));
25
+ (function (KnownReasonCode) {
26
+ KnownReasonCode["QuotaId"] = "QuotaId";
27
+ KnownReasonCode["NotAvailableForSubscription"] = "NotAvailableForSubscription";
28
+ })(exports.KnownReasonCode || (exports.KnownReasonCode = {}));
29
+ (function (KnownCreatedByType) {
30
+ KnownCreatedByType["User"] = "User";
31
+ KnownCreatedByType["Application"] = "Application";
32
+ KnownCreatedByType["ManagedIdentity"] = "ManagedIdentity";
33
+ KnownCreatedByType["Key"] = "Key";
34
+ })(exports.KnownCreatedByType || (exports.KnownCreatedByType = {}));
35
+ (function (KnownHealthStateType) {
36
+ KnownHealthStateType["Unknown"] = "Unknown";
37
+ KnownHealthStateType["Healthy"] = "Healthy";
38
+ KnownHealthStateType["Degraded"] = "Degraded";
39
+ KnownHealthStateType["Down"] = "Down";
40
+ KnownHealthStateType["Transitioning"] = "Transitioning";
41
+ KnownHealthStateType["Stopping"] = "Stopping";
42
+ KnownHealthStateType["Stopped"] = "Stopped";
43
+ KnownHealthStateType["Upgrading"] = "Upgrading";
44
+ KnownHealthStateType["Flushing"] = "Flushing";
45
+ })(exports.KnownHealthStateType || (exports.KnownHealthStateType = {}));
46
+ (function (KnownProvisioningStateType) {
47
+ KnownProvisioningStateType["Succeeded"] = "Succeeded";
48
+ KnownProvisioningStateType["Failed"] = "Failed";
49
+ KnownProvisioningStateType["Cancelled"] = "Cancelled";
50
+ KnownProvisioningStateType["Creating"] = "Creating";
51
+ KnownProvisioningStateType["Deleting"] = "Deleting";
52
+ KnownProvisioningStateType["Updating"] = "Updating";
53
+ })(exports.KnownProvisioningStateType || (exports.KnownProvisioningStateType = {}));
54
+ (function (KnownFirmwareStatusType) {
55
+ KnownFirmwareStatusType["Available"] = "available";
56
+ KnownFirmwareStatusType["Unavailable"] = "unavailable";
57
+ })(exports.KnownFirmwareStatusType || (exports.KnownFirmwareStatusType = {}));
58
+ (function (KnownNfsAccessRuleScope) {
59
+ KnownNfsAccessRuleScope["Default"] = "default";
60
+ KnownNfsAccessRuleScope["Network"] = "network";
61
+ KnownNfsAccessRuleScope["Host"] = "host";
62
+ })(exports.KnownNfsAccessRuleScope || (exports.KnownNfsAccessRuleScope = {}));
63
+ (function (KnownNfsAccessRuleAccess) {
64
+ KnownNfsAccessRuleAccess["No"] = "no";
65
+ KnownNfsAccessRuleAccess["Ro"] = "ro";
66
+ KnownNfsAccessRuleAccess["Rw"] = "rw";
67
+ })(exports.KnownNfsAccessRuleAccess || (exports.KnownNfsAccessRuleAccess = {}));
68
+ (function (KnownDomainJoinedType) {
69
+ KnownDomainJoinedType["Yes"] = "Yes";
70
+ KnownDomainJoinedType["No"] = "No";
71
+ KnownDomainJoinedType["Error"] = "Error";
72
+ })(exports.KnownDomainJoinedType || (exports.KnownDomainJoinedType = {}));
73
+ (function (KnownUsernameSource) {
74
+ KnownUsernameSource["AD"] = "AD";
75
+ KnownUsernameSource["Ldap"] = "LDAP";
76
+ KnownUsernameSource["File"] = "File";
77
+ KnownUsernameSource["None"] = "None";
78
+ })(exports.KnownUsernameSource || (exports.KnownUsernameSource = {}));
79
+ (function (KnownUsernameDownloadedType) {
80
+ KnownUsernameDownloadedType["Yes"] = "Yes";
81
+ KnownUsernameDownloadedType["No"] = "No";
82
+ KnownUsernameDownloadedType["Error"] = "Error";
83
+ })(exports.KnownUsernameDownloadedType || (exports.KnownUsernameDownloadedType = {}));
84
+ (function (KnownStorageTargetType) {
85
+ KnownStorageTargetType["Nfs3"] = "nfs3";
86
+ KnownStorageTargetType["Clfs"] = "clfs";
87
+ KnownStorageTargetType["Unknown"] = "unknown";
88
+ KnownStorageTargetType["BlobNfs"] = "blobNfs";
89
+ })(exports.KnownStorageTargetType || (exports.KnownStorageTargetType = {}));
90
+ (function (KnownOperationalStateType) {
91
+ KnownOperationalStateType["Ready"] = "Ready";
92
+ KnownOperationalStateType["Busy"] = "Busy";
93
+ KnownOperationalStateType["Suspended"] = "Suspended";
94
+ KnownOperationalStateType["Flushing"] = "Flushing";
95
+ })(exports.KnownOperationalStateType || (exports.KnownOperationalStateType = {}));
96
+
97
+ /*
98
+ * Copyright (c) Microsoft Corporation.
99
+ * Licensed under the MIT License.
100
+ *
101
+ * Code generated by Microsoft (R) AutoRest Code Generator.
102
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
103
+ */
104
+ const ApiOperationListResult = {
105
+ type: {
106
+ name: "Composite",
107
+ className: "ApiOperationListResult",
108
+ modelProperties: {
109
+ nextLink: {
110
+ serializedName: "nextLink",
111
+ type: {
112
+ name: "String"
113
+ }
114
+ },
115
+ value: {
116
+ serializedName: "value",
117
+ type: {
118
+ name: "Sequence",
119
+ element: {
120
+ type: {
121
+ name: "Composite",
122
+ className: "ApiOperation"
123
+ }
124
+ }
125
+ }
126
+ }
127
+ }
128
+ }
129
+ };
130
+ const ApiOperation = {
131
+ type: {
132
+ name: "Composite",
133
+ className: "ApiOperation",
134
+ modelProperties: {
135
+ display: {
136
+ serializedName: "display",
137
+ type: {
138
+ name: "Composite",
139
+ className: "ApiOperationDisplay"
140
+ }
141
+ },
142
+ origin: {
143
+ serializedName: "origin",
144
+ type: {
145
+ name: "String"
146
+ }
147
+ },
148
+ isDataAction: {
149
+ serializedName: "isDataAction",
150
+ type: {
151
+ name: "Boolean"
152
+ }
153
+ },
154
+ name: {
155
+ serializedName: "name",
156
+ type: {
157
+ name: "String"
158
+ }
159
+ },
160
+ serviceSpecification: {
161
+ serializedName: "properties.serviceSpecification",
162
+ type: {
163
+ name: "Composite",
164
+ className: "ApiOperationPropertiesServiceSpecification"
165
+ }
166
+ }
167
+ }
168
+ }
169
+ };
170
+ const ApiOperationDisplay = {
171
+ type: {
172
+ name: "Composite",
173
+ className: "ApiOperationDisplay",
174
+ modelProperties: {
175
+ operation: {
176
+ serializedName: "operation",
177
+ type: {
178
+ name: "String"
179
+ }
180
+ },
181
+ provider: {
182
+ serializedName: "provider",
183
+ type: {
184
+ name: "String"
185
+ }
186
+ },
187
+ resource: {
188
+ serializedName: "resource",
189
+ type: {
190
+ name: "String"
191
+ }
192
+ },
193
+ description: {
194
+ serializedName: "description",
195
+ type: {
196
+ name: "String"
197
+ }
198
+ }
199
+ }
200
+ }
201
+ };
202
+ const ApiOperationPropertiesServiceSpecification = {
203
+ type: {
204
+ name: "Composite",
205
+ className: "ApiOperationPropertiesServiceSpecification",
206
+ modelProperties: {
207
+ metricSpecifications: {
208
+ serializedName: "metricSpecifications",
209
+ type: {
210
+ name: "Sequence",
211
+ element: {
212
+ type: {
213
+ name: "Composite",
214
+ className: "MetricSpecification"
215
+ }
216
+ }
217
+ }
218
+ }
219
+ }
220
+ }
221
+ };
222
+ const MetricSpecification = {
223
+ type: {
224
+ name: "Composite",
225
+ className: "MetricSpecification",
226
+ modelProperties: {
227
+ name: {
228
+ serializedName: "name",
229
+ type: {
230
+ name: "String"
231
+ }
232
+ },
233
+ displayName: {
234
+ serializedName: "displayName",
235
+ type: {
236
+ name: "String"
237
+ }
238
+ },
239
+ displayDescription: {
240
+ serializedName: "displayDescription",
241
+ type: {
242
+ name: "String"
243
+ }
244
+ },
245
+ unit: {
246
+ serializedName: "unit",
247
+ type: {
248
+ name: "String"
249
+ }
250
+ },
251
+ aggregationType: {
252
+ serializedName: "aggregationType",
253
+ type: {
254
+ name: "String"
255
+ }
256
+ },
257
+ supportedAggregationTypes: {
258
+ serializedName: "supportedAggregationTypes",
259
+ type: {
260
+ name: "Sequence",
261
+ element: {
262
+ type: {
263
+ name: "String"
264
+ }
265
+ }
266
+ }
267
+ },
268
+ metricClass: {
269
+ serializedName: "metricClass",
270
+ type: {
271
+ name: "String"
272
+ }
273
+ },
274
+ dimensions: {
275
+ serializedName: "dimensions",
276
+ type: {
277
+ name: "Sequence",
278
+ element: {
279
+ type: {
280
+ name: "Composite",
281
+ className: "MetricDimension"
282
+ }
283
+ }
284
+ }
285
+ }
286
+ }
287
+ }
288
+ };
289
+ const MetricDimension = {
290
+ type: {
291
+ name: "Composite",
292
+ className: "MetricDimension",
293
+ modelProperties: {
294
+ name: {
295
+ serializedName: "name",
296
+ type: {
297
+ name: "String"
298
+ }
299
+ },
300
+ displayName: {
301
+ serializedName: "displayName",
302
+ type: {
303
+ name: "String"
304
+ }
305
+ },
306
+ internalName: {
307
+ serializedName: "internalName",
308
+ type: {
309
+ name: "String"
310
+ }
311
+ },
312
+ toBeExportedForShoebox: {
313
+ serializedName: "toBeExportedForShoebox",
314
+ type: {
315
+ name: "Boolean"
316
+ }
317
+ }
318
+ }
319
+ }
320
+ };
321
+ const CloudError = {
322
+ type: {
323
+ name: "Composite",
324
+ className: "CloudError",
325
+ modelProperties: {
326
+ error: {
327
+ serializedName: "error",
328
+ type: {
329
+ name: "Composite",
330
+ className: "CloudErrorBody"
331
+ }
332
+ }
333
+ }
334
+ }
335
+ };
336
+ const CloudErrorBody = {
337
+ type: {
338
+ name: "Composite",
339
+ className: "CloudErrorBody",
340
+ modelProperties: {
341
+ code: {
342
+ serializedName: "code",
343
+ type: {
344
+ name: "String"
345
+ }
346
+ },
347
+ details: {
348
+ serializedName: "details",
349
+ type: {
350
+ name: "Sequence",
351
+ element: {
352
+ type: {
353
+ name: "Composite",
354
+ className: "CloudErrorBody"
355
+ }
356
+ }
357
+ }
358
+ },
359
+ message: {
360
+ serializedName: "message",
361
+ type: {
362
+ name: "String"
363
+ }
364
+ },
365
+ target: {
366
+ serializedName: "target",
367
+ type: {
368
+ name: "String"
369
+ }
370
+ }
371
+ }
372
+ }
373
+ };
374
+ const ResourceSkusResult = {
375
+ type: {
376
+ name: "Composite",
377
+ className: "ResourceSkusResult",
378
+ modelProperties: {
379
+ nextLink: {
380
+ serializedName: "nextLink",
381
+ type: {
382
+ name: "String"
383
+ }
384
+ },
385
+ value: {
386
+ serializedName: "value",
387
+ readOnly: true,
388
+ type: {
389
+ name: "Sequence",
390
+ element: {
391
+ type: {
392
+ name: "Composite",
393
+ className: "ResourceSku"
394
+ }
395
+ }
396
+ }
397
+ }
398
+ }
399
+ }
400
+ };
401
+ const ResourceSku = {
402
+ type: {
403
+ name: "Composite",
404
+ className: "ResourceSku",
405
+ modelProperties: {
406
+ resourceType: {
407
+ serializedName: "resourceType",
408
+ readOnly: true,
409
+ type: {
410
+ name: "String"
411
+ }
412
+ },
413
+ capabilities: {
414
+ serializedName: "capabilities",
415
+ type: {
416
+ name: "Sequence",
417
+ element: {
418
+ type: {
419
+ name: "Composite",
420
+ className: "ResourceSkuCapabilities"
421
+ }
422
+ }
423
+ }
424
+ },
425
+ locations: {
426
+ serializedName: "locations",
427
+ readOnly: true,
428
+ type: {
429
+ name: "Sequence",
430
+ element: {
431
+ type: {
432
+ name: "String"
433
+ }
434
+ }
435
+ }
436
+ },
437
+ locationInfo: {
438
+ serializedName: "locationInfo",
439
+ type: {
440
+ name: "Sequence",
441
+ element: {
442
+ type: {
443
+ name: "Composite",
444
+ className: "ResourceSkuLocationInfo"
445
+ }
446
+ }
447
+ }
448
+ },
449
+ name: {
450
+ serializedName: "name",
451
+ type: {
452
+ name: "String"
453
+ }
454
+ },
455
+ restrictions: {
456
+ serializedName: "restrictions",
457
+ type: {
458
+ name: "Sequence",
459
+ element: {
460
+ type: {
461
+ name: "Composite",
462
+ className: "Restriction"
463
+ }
464
+ }
465
+ }
466
+ }
467
+ }
468
+ }
469
+ };
470
+ const ResourceSkuCapabilities = {
471
+ type: {
472
+ name: "Composite",
473
+ className: "ResourceSkuCapabilities",
474
+ modelProperties: {
475
+ name: {
476
+ serializedName: "name",
477
+ type: {
478
+ name: "String"
479
+ }
480
+ },
481
+ value: {
482
+ serializedName: "value",
483
+ type: {
484
+ name: "String"
485
+ }
486
+ }
487
+ }
488
+ }
489
+ };
490
+ const ResourceSkuLocationInfo = {
491
+ type: {
492
+ name: "Composite",
493
+ className: "ResourceSkuLocationInfo",
494
+ modelProperties: {
495
+ location: {
496
+ serializedName: "location",
497
+ type: {
498
+ name: "String"
499
+ }
500
+ },
501
+ zones: {
502
+ serializedName: "zones",
503
+ type: {
504
+ name: "Sequence",
505
+ element: {
506
+ type: {
507
+ name: "String"
508
+ }
509
+ }
510
+ }
511
+ }
512
+ }
513
+ }
514
+ };
515
+ const Restriction = {
516
+ type: {
517
+ name: "Composite",
518
+ className: "Restriction",
519
+ modelProperties: {
520
+ type: {
521
+ serializedName: "type",
522
+ readOnly: true,
523
+ type: {
524
+ name: "String"
525
+ }
526
+ },
527
+ values: {
528
+ serializedName: "values",
529
+ readOnly: true,
530
+ type: {
531
+ name: "Sequence",
532
+ element: {
533
+ type: {
534
+ name: "String"
535
+ }
536
+ }
537
+ }
538
+ },
539
+ reasonCode: {
540
+ serializedName: "reasonCode",
541
+ type: {
542
+ name: "String"
543
+ }
544
+ }
545
+ }
546
+ }
547
+ };
548
+ const UsageModelsResult = {
549
+ type: {
550
+ name: "Composite",
551
+ className: "UsageModelsResult",
552
+ modelProperties: {
553
+ nextLink: {
554
+ serializedName: "nextLink",
555
+ type: {
556
+ name: "String"
557
+ }
558
+ },
559
+ value: {
560
+ serializedName: "value",
561
+ type: {
562
+ name: "Sequence",
563
+ element: {
564
+ type: {
565
+ name: "Composite",
566
+ className: "UsageModel"
567
+ }
568
+ }
569
+ }
570
+ }
571
+ }
572
+ }
573
+ };
574
+ const UsageModel = {
575
+ type: {
576
+ name: "Composite",
577
+ className: "UsageModel",
578
+ modelProperties: {
579
+ display: {
580
+ serializedName: "display",
581
+ type: {
582
+ name: "Composite",
583
+ className: "UsageModelDisplay"
584
+ }
585
+ },
586
+ modelName: {
587
+ serializedName: "modelName",
588
+ type: {
589
+ name: "String"
590
+ }
591
+ },
592
+ targetType: {
593
+ serializedName: "targetType",
594
+ type: {
595
+ name: "String"
596
+ }
597
+ }
598
+ }
599
+ }
600
+ };
601
+ const UsageModelDisplay = {
602
+ type: {
603
+ name: "Composite",
604
+ className: "UsageModelDisplay",
605
+ modelProperties: {
606
+ description: {
607
+ serializedName: "description",
608
+ type: {
609
+ name: "String"
610
+ }
611
+ }
612
+ }
613
+ }
614
+ };
615
+ const AscOperation = {
616
+ type: {
617
+ name: "Composite",
618
+ className: "AscOperation",
619
+ modelProperties: {
620
+ id: {
621
+ serializedName: "id",
622
+ type: {
623
+ name: "String"
624
+ }
625
+ },
626
+ name: {
627
+ serializedName: "name",
628
+ type: {
629
+ name: "String"
630
+ }
631
+ },
632
+ startTime: {
633
+ serializedName: "startTime",
634
+ type: {
635
+ name: "String"
636
+ }
637
+ },
638
+ endTime: {
639
+ serializedName: "endTime",
640
+ type: {
641
+ name: "String"
642
+ }
643
+ },
644
+ status: {
645
+ serializedName: "status",
646
+ type: {
647
+ name: "String"
648
+ }
649
+ },
650
+ error: {
651
+ serializedName: "error",
652
+ type: {
653
+ name: "Composite",
654
+ className: "ErrorResponse"
655
+ }
656
+ },
657
+ output: {
658
+ serializedName: "properties.output",
659
+ type: {
660
+ name: "Dictionary",
661
+ value: {
662
+ type: { name: "Dictionary", value: { type: { name: "any" } } }
663
+ }
664
+ }
665
+ }
666
+ }
667
+ }
668
+ };
669
+ const ErrorResponse = {
670
+ type: {
671
+ name: "Composite",
672
+ className: "ErrorResponse",
673
+ modelProperties: {
674
+ code: {
675
+ serializedName: "code",
676
+ type: {
677
+ name: "String"
678
+ }
679
+ },
680
+ message: {
681
+ serializedName: "message",
682
+ type: {
683
+ name: "String"
684
+ }
685
+ }
686
+ }
687
+ }
688
+ };
689
+ const CachesListResult = {
690
+ type: {
691
+ name: "Composite",
692
+ className: "CachesListResult",
693
+ modelProperties: {
694
+ nextLink: {
695
+ serializedName: "nextLink",
696
+ type: {
697
+ name: "String"
698
+ }
699
+ },
700
+ value: {
701
+ serializedName: "value",
702
+ type: {
703
+ name: "Sequence",
704
+ element: {
705
+ type: {
706
+ name: "Composite",
707
+ className: "Cache"
708
+ }
709
+ }
710
+ }
711
+ }
712
+ }
713
+ }
714
+ };
715
+ const Cache = {
716
+ type: {
717
+ name: "Composite",
718
+ className: "Cache",
719
+ modelProperties: {
720
+ tags: {
721
+ serializedName: "tags",
722
+ type: {
723
+ name: "Dictionary",
724
+ value: { type: { name: "String" } }
725
+ }
726
+ },
727
+ id: {
728
+ serializedName: "id",
729
+ readOnly: true,
730
+ type: {
731
+ name: "String"
732
+ }
733
+ },
734
+ location: {
735
+ serializedName: "location",
736
+ type: {
737
+ name: "String"
738
+ }
739
+ },
740
+ name: {
741
+ constraints: {
742
+ Pattern: new RegExp("^[-0-9a-zA-Z_]{1,80}$")
743
+ },
744
+ serializedName: "name",
745
+ readOnly: true,
746
+ type: {
747
+ name: "String"
748
+ }
749
+ },
750
+ type: {
751
+ serializedName: "type",
752
+ readOnly: true,
753
+ type: {
754
+ name: "String"
755
+ }
756
+ },
757
+ identity: {
758
+ serializedName: "identity",
759
+ type: {
760
+ name: "Composite",
761
+ className: "CacheIdentity"
762
+ }
763
+ },
764
+ systemData: {
765
+ serializedName: "systemData",
766
+ type: {
767
+ name: "Composite",
768
+ className: "SystemData"
769
+ }
770
+ },
771
+ sku: {
772
+ serializedName: "sku",
773
+ type: {
774
+ name: "Composite",
775
+ className: "CacheSku"
776
+ }
777
+ },
778
+ cacheSizeGB: {
779
+ serializedName: "properties.cacheSizeGB",
780
+ type: {
781
+ name: "Number"
782
+ }
783
+ },
784
+ health: {
785
+ serializedName: "properties.health",
786
+ type: {
787
+ name: "Composite",
788
+ className: "CacheHealth"
789
+ }
790
+ },
791
+ mountAddresses: {
792
+ serializedName: "properties.mountAddresses",
793
+ readOnly: true,
794
+ type: {
795
+ name: "Sequence",
796
+ element: {
797
+ type: {
798
+ name: "String"
799
+ }
800
+ }
801
+ }
802
+ },
803
+ provisioningState: {
804
+ serializedName: "properties.provisioningState",
805
+ readOnly: true,
806
+ type: {
807
+ name: "String"
808
+ }
809
+ },
810
+ subnet: {
811
+ serializedName: "properties.subnet",
812
+ type: {
813
+ name: "String"
814
+ }
815
+ },
816
+ upgradeStatus: {
817
+ serializedName: "properties.upgradeStatus",
818
+ type: {
819
+ name: "Composite",
820
+ className: "CacheUpgradeStatus"
821
+ }
822
+ },
823
+ networkSettings: {
824
+ serializedName: "properties.networkSettings",
825
+ type: {
826
+ name: "Composite",
827
+ className: "CacheNetworkSettings"
828
+ }
829
+ },
830
+ encryptionSettings: {
831
+ serializedName: "properties.encryptionSettings",
832
+ type: {
833
+ name: "Composite",
834
+ className: "CacheEncryptionSettings"
835
+ }
836
+ },
837
+ securitySettings: {
838
+ serializedName: "properties.securitySettings",
839
+ type: {
840
+ name: "Composite",
841
+ className: "CacheSecuritySettings"
842
+ }
843
+ },
844
+ directoryServicesSettings: {
845
+ serializedName: "properties.directoryServicesSettings",
846
+ type: {
847
+ name: "Composite",
848
+ className: "CacheDirectorySettings"
849
+ }
850
+ }
851
+ }
852
+ }
853
+ };
854
+ const CacheIdentity = {
855
+ type: {
856
+ name: "Composite",
857
+ className: "CacheIdentity",
858
+ modelProperties: {
859
+ principalId: {
860
+ serializedName: "principalId",
861
+ readOnly: true,
862
+ type: {
863
+ name: "String"
864
+ }
865
+ },
866
+ tenantId: {
867
+ serializedName: "tenantId",
868
+ readOnly: true,
869
+ type: {
870
+ name: "String"
871
+ }
872
+ },
873
+ type: {
874
+ serializedName: "type",
875
+ type: {
876
+ name: "Enum",
877
+ allowedValues: [
878
+ "SystemAssigned",
879
+ "UserAssigned",
880
+ "SystemAssigned, UserAssigned",
881
+ "None"
882
+ ]
883
+ }
884
+ },
885
+ userAssignedIdentities: {
886
+ serializedName: "userAssignedIdentities",
887
+ type: {
888
+ name: "Dictionary",
889
+ value: {
890
+ type: {
891
+ name: "Composite",
892
+ className: "UserAssignedIdentitiesValue"
893
+ }
894
+ }
895
+ }
896
+ }
897
+ }
898
+ }
899
+ };
900
+ const UserAssignedIdentitiesValue = {
901
+ type: {
902
+ name: "Composite",
903
+ className: "UserAssignedIdentitiesValue",
904
+ modelProperties: {
905
+ principalId: {
906
+ serializedName: "principalId",
907
+ readOnly: true,
908
+ type: {
909
+ name: "String"
910
+ }
911
+ },
912
+ clientId: {
913
+ serializedName: "clientId",
914
+ readOnly: true,
915
+ type: {
916
+ name: "String"
917
+ }
918
+ }
919
+ }
920
+ }
921
+ };
922
+ const SystemData = {
923
+ type: {
924
+ name: "Composite",
925
+ className: "SystemData",
926
+ modelProperties: {
927
+ createdBy: {
928
+ serializedName: "createdBy",
929
+ type: {
930
+ name: "String"
931
+ }
932
+ },
933
+ createdByType: {
934
+ serializedName: "createdByType",
935
+ type: {
936
+ name: "String"
937
+ }
938
+ },
939
+ createdAt: {
940
+ serializedName: "createdAt",
941
+ type: {
942
+ name: "DateTime"
943
+ }
944
+ },
945
+ lastModifiedBy: {
946
+ serializedName: "lastModifiedBy",
947
+ type: {
948
+ name: "String"
949
+ }
950
+ },
951
+ lastModifiedByType: {
952
+ serializedName: "lastModifiedByType",
953
+ type: {
954
+ name: "String"
955
+ }
956
+ },
957
+ lastModifiedAt: {
958
+ serializedName: "lastModifiedAt",
959
+ type: {
960
+ name: "DateTime"
961
+ }
962
+ }
963
+ }
964
+ }
965
+ };
966
+ const CacheHealth = {
967
+ type: {
968
+ name: "Composite",
969
+ className: "CacheHealth",
970
+ modelProperties: {
971
+ state: {
972
+ serializedName: "state",
973
+ type: {
974
+ name: "String"
975
+ }
976
+ },
977
+ statusDescription: {
978
+ serializedName: "statusDescription",
979
+ type: {
980
+ name: "String"
981
+ }
982
+ },
983
+ conditions: {
984
+ serializedName: "conditions",
985
+ readOnly: true,
986
+ type: {
987
+ name: "Sequence",
988
+ element: {
989
+ type: {
990
+ name: "Composite",
991
+ className: "Condition"
992
+ }
993
+ }
994
+ }
995
+ }
996
+ }
997
+ }
998
+ };
999
+ const Condition = {
1000
+ type: {
1001
+ name: "Composite",
1002
+ className: "Condition",
1003
+ modelProperties: {
1004
+ timestamp: {
1005
+ serializedName: "timestamp",
1006
+ readOnly: true,
1007
+ type: {
1008
+ name: "DateTime"
1009
+ }
1010
+ },
1011
+ message: {
1012
+ serializedName: "message",
1013
+ readOnly: true,
1014
+ type: {
1015
+ name: "String"
1016
+ }
1017
+ }
1018
+ }
1019
+ }
1020
+ };
1021
+ const CacheUpgradeStatus = {
1022
+ type: {
1023
+ name: "Composite",
1024
+ className: "CacheUpgradeStatus",
1025
+ modelProperties: {
1026
+ currentFirmwareVersion: {
1027
+ serializedName: "currentFirmwareVersion",
1028
+ readOnly: true,
1029
+ type: {
1030
+ name: "String"
1031
+ }
1032
+ },
1033
+ firmwareUpdateStatus: {
1034
+ serializedName: "firmwareUpdateStatus",
1035
+ readOnly: true,
1036
+ type: {
1037
+ name: "String"
1038
+ }
1039
+ },
1040
+ firmwareUpdateDeadline: {
1041
+ serializedName: "firmwareUpdateDeadline",
1042
+ readOnly: true,
1043
+ type: {
1044
+ name: "DateTime"
1045
+ }
1046
+ },
1047
+ lastFirmwareUpdate: {
1048
+ serializedName: "lastFirmwareUpdate",
1049
+ readOnly: true,
1050
+ type: {
1051
+ name: "DateTime"
1052
+ }
1053
+ },
1054
+ pendingFirmwareVersion: {
1055
+ serializedName: "pendingFirmwareVersion",
1056
+ readOnly: true,
1057
+ type: {
1058
+ name: "String"
1059
+ }
1060
+ }
1061
+ }
1062
+ }
1063
+ };
1064
+ const CacheNetworkSettings = {
1065
+ type: {
1066
+ name: "Composite",
1067
+ className: "CacheNetworkSettings",
1068
+ modelProperties: {
1069
+ mtu: {
1070
+ defaultValue: 1500,
1071
+ constraints: {
1072
+ InclusiveMaximum: 1500,
1073
+ InclusiveMinimum: 576
1074
+ },
1075
+ serializedName: "mtu",
1076
+ type: {
1077
+ name: "Number"
1078
+ }
1079
+ },
1080
+ utilityAddresses: {
1081
+ serializedName: "utilityAddresses",
1082
+ readOnly: true,
1083
+ type: {
1084
+ name: "Sequence",
1085
+ element: {
1086
+ type: {
1087
+ name: "String"
1088
+ }
1089
+ }
1090
+ }
1091
+ },
1092
+ dnsServers: {
1093
+ serializedName: "dnsServers",
1094
+ type: {
1095
+ name: "Sequence",
1096
+ element: {
1097
+ type: {
1098
+ name: "String"
1099
+ }
1100
+ }
1101
+ }
1102
+ },
1103
+ dnsSearchDomain: {
1104
+ serializedName: "dnsSearchDomain",
1105
+ type: {
1106
+ name: "String"
1107
+ }
1108
+ },
1109
+ ntpServer: {
1110
+ defaultValue: "time.windows.com",
1111
+ serializedName: "ntpServer",
1112
+ type: {
1113
+ name: "String"
1114
+ }
1115
+ }
1116
+ }
1117
+ }
1118
+ };
1119
+ const CacheEncryptionSettings = {
1120
+ type: {
1121
+ name: "Composite",
1122
+ className: "CacheEncryptionSettings",
1123
+ modelProperties: {
1124
+ keyEncryptionKey: {
1125
+ serializedName: "keyEncryptionKey",
1126
+ type: {
1127
+ name: "Composite",
1128
+ className: "KeyVaultKeyReference"
1129
+ }
1130
+ },
1131
+ rotationToLatestKeyVersionEnabled: {
1132
+ serializedName: "rotationToLatestKeyVersionEnabled",
1133
+ type: {
1134
+ name: "Boolean"
1135
+ }
1136
+ }
1137
+ }
1138
+ }
1139
+ };
1140
+ const KeyVaultKeyReference = {
1141
+ type: {
1142
+ name: "Composite",
1143
+ className: "KeyVaultKeyReference",
1144
+ modelProperties: {
1145
+ keyUrl: {
1146
+ serializedName: "keyUrl",
1147
+ required: true,
1148
+ type: {
1149
+ name: "String"
1150
+ }
1151
+ },
1152
+ sourceVault: {
1153
+ serializedName: "sourceVault",
1154
+ type: {
1155
+ name: "Composite",
1156
+ className: "KeyVaultKeyReferenceSourceVault"
1157
+ }
1158
+ }
1159
+ }
1160
+ }
1161
+ };
1162
+ const KeyVaultKeyReferenceSourceVault = {
1163
+ type: {
1164
+ name: "Composite",
1165
+ className: "KeyVaultKeyReferenceSourceVault",
1166
+ modelProperties: {
1167
+ id: {
1168
+ serializedName: "id",
1169
+ type: {
1170
+ name: "String"
1171
+ }
1172
+ }
1173
+ }
1174
+ }
1175
+ };
1176
+ const CacheSecuritySettings = {
1177
+ type: {
1178
+ name: "Composite",
1179
+ className: "CacheSecuritySettings",
1180
+ modelProperties: {
1181
+ accessPolicies: {
1182
+ serializedName: "accessPolicies",
1183
+ type: {
1184
+ name: "Sequence",
1185
+ element: {
1186
+ type: {
1187
+ name: "Composite",
1188
+ className: "NfsAccessPolicy"
1189
+ }
1190
+ }
1191
+ }
1192
+ }
1193
+ }
1194
+ }
1195
+ };
1196
+ const NfsAccessPolicy = {
1197
+ type: {
1198
+ name: "Composite",
1199
+ className: "NfsAccessPolicy",
1200
+ modelProperties: {
1201
+ name: {
1202
+ serializedName: "name",
1203
+ required: true,
1204
+ type: {
1205
+ name: "String"
1206
+ }
1207
+ },
1208
+ accessRules: {
1209
+ serializedName: "accessRules",
1210
+ required: true,
1211
+ type: {
1212
+ name: "Sequence",
1213
+ element: {
1214
+ type: {
1215
+ name: "Composite",
1216
+ className: "NfsAccessRule"
1217
+ }
1218
+ }
1219
+ }
1220
+ }
1221
+ }
1222
+ }
1223
+ };
1224
+ const NfsAccessRule = {
1225
+ type: {
1226
+ name: "Composite",
1227
+ className: "NfsAccessRule",
1228
+ modelProperties: {
1229
+ scope: {
1230
+ serializedName: "scope",
1231
+ required: true,
1232
+ type: {
1233
+ name: "String"
1234
+ }
1235
+ },
1236
+ filter: {
1237
+ serializedName: "filter",
1238
+ type: {
1239
+ name: "String"
1240
+ }
1241
+ },
1242
+ access: {
1243
+ serializedName: "access",
1244
+ required: true,
1245
+ type: {
1246
+ name: "String"
1247
+ }
1248
+ },
1249
+ suid: {
1250
+ serializedName: "suid",
1251
+ type: {
1252
+ name: "Boolean"
1253
+ }
1254
+ },
1255
+ submountAccess: {
1256
+ serializedName: "submountAccess",
1257
+ type: {
1258
+ name: "Boolean"
1259
+ }
1260
+ },
1261
+ rootSquash: {
1262
+ serializedName: "rootSquash",
1263
+ type: {
1264
+ name: "Boolean"
1265
+ }
1266
+ },
1267
+ anonymousUID: {
1268
+ serializedName: "anonymousUID",
1269
+ type: {
1270
+ name: "String"
1271
+ }
1272
+ },
1273
+ anonymousGID: {
1274
+ serializedName: "anonymousGID",
1275
+ type: {
1276
+ name: "String"
1277
+ }
1278
+ }
1279
+ }
1280
+ }
1281
+ };
1282
+ const CacheDirectorySettings = {
1283
+ type: {
1284
+ name: "Composite",
1285
+ className: "CacheDirectorySettings",
1286
+ modelProperties: {
1287
+ activeDirectory: {
1288
+ serializedName: "activeDirectory",
1289
+ type: {
1290
+ name: "Composite",
1291
+ className: "CacheActiveDirectorySettings"
1292
+ }
1293
+ },
1294
+ usernameDownload: {
1295
+ serializedName: "usernameDownload",
1296
+ type: {
1297
+ name: "Composite",
1298
+ className: "CacheUsernameDownloadSettings"
1299
+ }
1300
+ }
1301
+ }
1302
+ }
1303
+ };
1304
+ const CacheActiveDirectorySettings = {
1305
+ type: {
1306
+ name: "Composite",
1307
+ className: "CacheActiveDirectorySettings",
1308
+ modelProperties: {
1309
+ primaryDnsIpAddress: {
1310
+ serializedName: "primaryDnsIpAddress",
1311
+ required: true,
1312
+ type: {
1313
+ name: "String"
1314
+ }
1315
+ },
1316
+ secondaryDnsIpAddress: {
1317
+ serializedName: "secondaryDnsIpAddress",
1318
+ type: {
1319
+ name: "String"
1320
+ }
1321
+ },
1322
+ domainName: {
1323
+ serializedName: "domainName",
1324
+ required: true,
1325
+ type: {
1326
+ name: "String"
1327
+ }
1328
+ },
1329
+ domainNetBiosName: {
1330
+ serializedName: "domainNetBiosName",
1331
+ required: true,
1332
+ type: {
1333
+ name: "String"
1334
+ }
1335
+ },
1336
+ cacheNetBiosName: {
1337
+ constraints: {
1338
+ Pattern: new RegExp("^[-0-9a-zA-Z]{1,15}$")
1339
+ },
1340
+ serializedName: "cacheNetBiosName",
1341
+ required: true,
1342
+ type: {
1343
+ name: "String"
1344
+ }
1345
+ },
1346
+ domainJoined: {
1347
+ serializedName: "domainJoined",
1348
+ readOnly: true,
1349
+ type: {
1350
+ name: "String"
1351
+ }
1352
+ },
1353
+ credentials: {
1354
+ serializedName: "credentials",
1355
+ type: {
1356
+ name: "Composite",
1357
+ className: "CacheActiveDirectorySettingsCredentials"
1358
+ }
1359
+ }
1360
+ }
1361
+ }
1362
+ };
1363
+ const CacheActiveDirectorySettingsCredentials = {
1364
+ type: {
1365
+ name: "Composite",
1366
+ className: "CacheActiveDirectorySettingsCredentials",
1367
+ modelProperties: {
1368
+ username: {
1369
+ serializedName: "username",
1370
+ required: true,
1371
+ type: {
1372
+ name: "String"
1373
+ }
1374
+ },
1375
+ password: {
1376
+ serializedName: "password",
1377
+ required: true,
1378
+ type: {
1379
+ name: "String"
1380
+ }
1381
+ }
1382
+ }
1383
+ }
1384
+ };
1385
+ const CacheUsernameDownloadSettings = {
1386
+ type: {
1387
+ name: "Composite",
1388
+ className: "CacheUsernameDownloadSettings",
1389
+ modelProperties: {
1390
+ extendedGroups: {
1391
+ serializedName: "extendedGroups",
1392
+ type: {
1393
+ name: "Boolean"
1394
+ }
1395
+ },
1396
+ usernameSource: {
1397
+ defaultValue: "None",
1398
+ serializedName: "usernameSource",
1399
+ type: {
1400
+ name: "String"
1401
+ }
1402
+ },
1403
+ groupFileURI: {
1404
+ serializedName: "groupFileURI",
1405
+ type: {
1406
+ name: "String"
1407
+ }
1408
+ },
1409
+ userFileURI: {
1410
+ serializedName: "userFileURI",
1411
+ type: {
1412
+ name: "String"
1413
+ }
1414
+ },
1415
+ ldapServer: {
1416
+ serializedName: "ldapServer",
1417
+ type: {
1418
+ name: "String"
1419
+ }
1420
+ },
1421
+ ldapBaseDN: {
1422
+ serializedName: "ldapBaseDN",
1423
+ type: {
1424
+ name: "String"
1425
+ }
1426
+ },
1427
+ encryptLdapConnection: {
1428
+ serializedName: "encryptLdapConnection",
1429
+ type: {
1430
+ name: "Boolean"
1431
+ }
1432
+ },
1433
+ requireValidCertificate: {
1434
+ serializedName: "requireValidCertificate",
1435
+ type: {
1436
+ name: "Boolean"
1437
+ }
1438
+ },
1439
+ autoDownloadCertificate: {
1440
+ serializedName: "autoDownloadCertificate",
1441
+ type: {
1442
+ name: "Boolean"
1443
+ }
1444
+ },
1445
+ caCertificateURI: {
1446
+ serializedName: "caCertificateURI",
1447
+ type: {
1448
+ name: "String"
1449
+ }
1450
+ },
1451
+ usernameDownloaded: {
1452
+ serializedName: "usernameDownloaded",
1453
+ readOnly: true,
1454
+ type: {
1455
+ name: "String"
1456
+ }
1457
+ },
1458
+ credentials: {
1459
+ serializedName: "credentials",
1460
+ type: {
1461
+ name: "Composite",
1462
+ className: "CacheUsernameDownloadSettingsCredentials"
1463
+ }
1464
+ }
1465
+ }
1466
+ }
1467
+ };
1468
+ const CacheUsernameDownloadSettingsCredentials = {
1469
+ type: {
1470
+ name: "Composite",
1471
+ className: "CacheUsernameDownloadSettingsCredentials",
1472
+ modelProperties: {
1473
+ bindDn: {
1474
+ serializedName: "bindDn",
1475
+ type: {
1476
+ name: "String"
1477
+ }
1478
+ },
1479
+ bindPassword: {
1480
+ serializedName: "bindPassword",
1481
+ type: {
1482
+ name: "String"
1483
+ }
1484
+ }
1485
+ }
1486
+ }
1487
+ };
1488
+ const CacheSku = {
1489
+ type: {
1490
+ name: "Composite",
1491
+ className: "CacheSku",
1492
+ modelProperties: {
1493
+ name: {
1494
+ serializedName: "name",
1495
+ type: {
1496
+ name: "String"
1497
+ }
1498
+ }
1499
+ }
1500
+ }
1501
+ };
1502
+ const StorageTargetsResult = {
1503
+ type: {
1504
+ name: "Composite",
1505
+ className: "StorageTargetsResult",
1506
+ modelProperties: {
1507
+ nextLink: {
1508
+ serializedName: "nextLink",
1509
+ type: {
1510
+ name: "String"
1511
+ }
1512
+ },
1513
+ value: {
1514
+ serializedName: "value",
1515
+ type: {
1516
+ name: "Sequence",
1517
+ element: {
1518
+ type: {
1519
+ name: "Composite",
1520
+ className: "StorageTarget"
1521
+ }
1522
+ }
1523
+ }
1524
+ }
1525
+ }
1526
+ }
1527
+ };
1528
+ const NamespaceJunction = {
1529
+ type: {
1530
+ name: "Composite",
1531
+ className: "NamespaceJunction",
1532
+ modelProperties: {
1533
+ namespacePath: {
1534
+ serializedName: "namespacePath",
1535
+ type: {
1536
+ name: "String"
1537
+ }
1538
+ },
1539
+ targetPath: {
1540
+ serializedName: "targetPath",
1541
+ type: {
1542
+ name: "String"
1543
+ }
1544
+ },
1545
+ nfsExport: {
1546
+ serializedName: "nfsExport",
1547
+ type: {
1548
+ name: "String"
1549
+ }
1550
+ },
1551
+ nfsAccessPolicy: {
1552
+ defaultValue: "default",
1553
+ serializedName: "nfsAccessPolicy",
1554
+ type: {
1555
+ name: "String"
1556
+ }
1557
+ }
1558
+ }
1559
+ }
1560
+ };
1561
+ const Nfs3Target = {
1562
+ type: {
1563
+ name: "Composite",
1564
+ className: "Nfs3Target",
1565
+ modelProperties: {
1566
+ target: {
1567
+ constraints: {
1568
+ Pattern: new RegExp("^[-.,0-9a-zA-Z]+$")
1569
+ },
1570
+ serializedName: "target",
1571
+ type: {
1572
+ name: "String"
1573
+ }
1574
+ },
1575
+ usageModel: {
1576
+ serializedName: "usageModel",
1577
+ type: {
1578
+ name: "String"
1579
+ }
1580
+ }
1581
+ }
1582
+ }
1583
+ };
1584
+ const ClfsTarget = {
1585
+ type: {
1586
+ name: "Composite",
1587
+ className: "ClfsTarget",
1588
+ modelProperties: {
1589
+ target: {
1590
+ serializedName: "target",
1591
+ type: {
1592
+ name: "String"
1593
+ }
1594
+ }
1595
+ }
1596
+ }
1597
+ };
1598
+ const UnknownTarget = {
1599
+ type: {
1600
+ name: "Composite",
1601
+ className: "UnknownTarget",
1602
+ modelProperties: {
1603
+ attributes: {
1604
+ serializedName: "attributes",
1605
+ type: {
1606
+ name: "Dictionary",
1607
+ value: { type: { name: "String" } }
1608
+ }
1609
+ }
1610
+ }
1611
+ }
1612
+ };
1613
+ const BlobNfsTarget = {
1614
+ type: {
1615
+ name: "Composite",
1616
+ className: "BlobNfsTarget",
1617
+ modelProperties: {
1618
+ target: {
1619
+ serializedName: "target",
1620
+ type: {
1621
+ name: "String"
1622
+ }
1623
+ },
1624
+ usageModel: {
1625
+ serializedName: "usageModel",
1626
+ type: {
1627
+ name: "String"
1628
+ }
1629
+ }
1630
+ }
1631
+ }
1632
+ };
1633
+ const StorageTargetResource = {
1634
+ type: {
1635
+ name: "Composite",
1636
+ className: "StorageTargetResource",
1637
+ modelProperties: {
1638
+ name: {
1639
+ constraints: {
1640
+ Pattern: new RegExp("^[-0-9a-zA-Z_]{1,80}$")
1641
+ },
1642
+ serializedName: "name",
1643
+ readOnly: true,
1644
+ type: {
1645
+ name: "String"
1646
+ }
1647
+ },
1648
+ id: {
1649
+ serializedName: "id",
1650
+ readOnly: true,
1651
+ type: {
1652
+ name: "String"
1653
+ }
1654
+ },
1655
+ type: {
1656
+ serializedName: "type",
1657
+ readOnly: true,
1658
+ type: {
1659
+ name: "String"
1660
+ }
1661
+ },
1662
+ location: {
1663
+ serializedName: "location",
1664
+ readOnly: true,
1665
+ type: {
1666
+ name: "String"
1667
+ }
1668
+ },
1669
+ systemData: {
1670
+ serializedName: "systemData",
1671
+ type: {
1672
+ name: "Composite",
1673
+ className: "SystemData"
1674
+ }
1675
+ }
1676
+ }
1677
+ }
1678
+ };
1679
+ const StorageTarget = {
1680
+ type: {
1681
+ name: "Composite",
1682
+ className: "StorageTarget",
1683
+ modelProperties: Object.assign(Object.assign({}, StorageTargetResource.type.modelProperties), { junctions: {
1684
+ serializedName: "properties.junctions",
1685
+ type: {
1686
+ name: "Sequence",
1687
+ element: {
1688
+ type: {
1689
+ name: "Composite",
1690
+ className: "NamespaceJunction"
1691
+ }
1692
+ }
1693
+ }
1694
+ }, targetType: {
1695
+ serializedName: "properties.targetType",
1696
+ type: {
1697
+ name: "String"
1698
+ }
1699
+ }, provisioningState: {
1700
+ serializedName: "properties.provisioningState",
1701
+ readOnly: true,
1702
+ type: {
1703
+ name: "String"
1704
+ }
1705
+ }, state: {
1706
+ serializedName: "properties.state",
1707
+ type: {
1708
+ name: "String"
1709
+ }
1710
+ }, nfs3: {
1711
+ serializedName: "properties.nfs3",
1712
+ type: {
1713
+ name: "Composite",
1714
+ className: "Nfs3Target"
1715
+ }
1716
+ }, clfs: {
1717
+ serializedName: "properties.clfs",
1718
+ type: {
1719
+ name: "Composite",
1720
+ className: "ClfsTarget"
1721
+ }
1722
+ }, unknown: {
1723
+ serializedName: "properties.unknown",
1724
+ type: {
1725
+ name: "Composite",
1726
+ className: "UnknownTarget"
1727
+ }
1728
+ }, blobNfs: {
1729
+ serializedName: "properties.blobNfs",
1730
+ type: {
1731
+ name: "Composite",
1732
+ className: "BlobNfsTarget"
1733
+ }
1734
+ } })
1735
+ }
1736
+ };
1737
+
1738
+ var Mappers = /*#__PURE__*/Object.freeze({
1739
+ __proto__: null,
1740
+ ApiOperationListResult: ApiOperationListResult,
1741
+ ApiOperation: ApiOperation,
1742
+ ApiOperationDisplay: ApiOperationDisplay,
1743
+ ApiOperationPropertiesServiceSpecification: ApiOperationPropertiesServiceSpecification,
1744
+ MetricSpecification: MetricSpecification,
1745
+ MetricDimension: MetricDimension,
1746
+ CloudError: CloudError,
1747
+ CloudErrorBody: CloudErrorBody,
1748
+ ResourceSkusResult: ResourceSkusResult,
1749
+ ResourceSku: ResourceSku,
1750
+ ResourceSkuCapabilities: ResourceSkuCapabilities,
1751
+ ResourceSkuLocationInfo: ResourceSkuLocationInfo,
1752
+ Restriction: Restriction,
1753
+ UsageModelsResult: UsageModelsResult,
1754
+ UsageModel: UsageModel,
1755
+ UsageModelDisplay: UsageModelDisplay,
1756
+ AscOperation: AscOperation,
1757
+ ErrorResponse: ErrorResponse,
1758
+ CachesListResult: CachesListResult,
1759
+ Cache: Cache,
1760
+ CacheIdentity: CacheIdentity,
1761
+ UserAssignedIdentitiesValue: UserAssignedIdentitiesValue,
1762
+ SystemData: SystemData,
1763
+ CacheHealth: CacheHealth,
1764
+ Condition: Condition,
1765
+ CacheUpgradeStatus: CacheUpgradeStatus,
1766
+ CacheNetworkSettings: CacheNetworkSettings,
1767
+ CacheEncryptionSettings: CacheEncryptionSettings,
1768
+ KeyVaultKeyReference: KeyVaultKeyReference,
1769
+ KeyVaultKeyReferenceSourceVault: KeyVaultKeyReferenceSourceVault,
1770
+ CacheSecuritySettings: CacheSecuritySettings,
1771
+ NfsAccessPolicy: NfsAccessPolicy,
1772
+ NfsAccessRule: NfsAccessRule,
1773
+ CacheDirectorySettings: CacheDirectorySettings,
1774
+ CacheActiveDirectorySettings: CacheActiveDirectorySettings,
1775
+ CacheActiveDirectorySettingsCredentials: CacheActiveDirectorySettingsCredentials,
1776
+ CacheUsernameDownloadSettings: CacheUsernameDownloadSettings,
1777
+ CacheUsernameDownloadSettingsCredentials: CacheUsernameDownloadSettingsCredentials,
1778
+ CacheSku: CacheSku,
1779
+ StorageTargetsResult: StorageTargetsResult,
1780
+ NamespaceJunction: NamespaceJunction,
1781
+ Nfs3Target: Nfs3Target,
1782
+ ClfsTarget: ClfsTarget,
1783
+ UnknownTarget: UnknownTarget,
1784
+ BlobNfsTarget: BlobNfsTarget,
1785
+ StorageTargetResource: StorageTargetResource,
1786
+ StorageTarget: StorageTarget
1787
+ });
1788
+
1789
+ /*
1790
+ * Copyright (c) Microsoft Corporation.
1791
+ * Licensed under the MIT License.
1792
+ *
1793
+ * Code generated by Microsoft (R) AutoRest Code Generator.
1794
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
1795
+ */
1796
+ const accept = {
1797
+ parameterPath: "accept",
1798
+ mapper: {
1799
+ defaultValue: "application/json",
1800
+ isConstant: true,
1801
+ serializedName: "Accept",
1802
+ type: {
1803
+ name: "String"
1804
+ }
1805
+ }
1806
+ };
1807
+ const $host = {
1808
+ parameterPath: "$host",
1809
+ mapper: {
1810
+ serializedName: "$host",
1811
+ required: true,
1812
+ type: {
1813
+ name: "String"
1814
+ }
1815
+ },
1816
+ skipEncoding: true
1817
+ };
1818
+ const apiVersion = {
1819
+ parameterPath: "apiVersion",
1820
+ mapper: {
1821
+ defaultValue: "2021-09-01",
1822
+ isConstant: true,
1823
+ serializedName: "api-version",
1824
+ type: {
1825
+ name: "String"
1826
+ }
1827
+ }
1828
+ };
1829
+ const nextLink = {
1830
+ parameterPath: "nextLink",
1831
+ mapper: {
1832
+ serializedName: "nextLink",
1833
+ required: true,
1834
+ type: {
1835
+ name: "String"
1836
+ }
1837
+ },
1838
+ skipEncoding: true
1839
+ };
1840
+ const subscriptionId = {
1841
+ parameterPath: "subscriptionId",
1842
+ mapper: {
1843
+ serializedName: "subscriptionId",
1844
+ required: true,
1845
+ type: {
1846
+ name: "String"
1847
+ }
1848
+ }
1849
+ };
1850
+ const location = {
1851
+ parameterPath: "location",
1852
+ mapper: {
1853
+ serializedName: "location",
1854
+ required: true,
1855
+ type: {
1856
+ name: "String"
1857
+ }
1858
+ }
1859
+ };
1860
+ const operationId = {
1861
+ parameterPath: "operationId",
1862
+ mapper: {
1863
+ serializedName: "operationId",
1864
+ required: true,
1865
+ type: {
1866
+ name: "String"
1867
+ }
1868
+ }
1869
+ };
1870
+ const resourceGroupName = {
1871
+ parameterPath: "resourceGroupName",
1872
+ mapper: {
1873
+ serializedName: "resourceGroupName",
1874
+ required: true,
1875
+ type: {
1876
+ name: "String"
1877
+ }
1878
+ }
1879
+ };
1880
+ const cacheName = {
1881
+ parameterPath: "cacheName",
1882
+ mapper: {
1883
+ constraints: {
1884
+ Pattern: new RegExp("^[-0-9a-zA-Z_]{1,80}$")
1885
+ },
1886
+ serializedName: "cacheName",
1887
+ required: true,
1888
+ type: {
1889
+ name: "String"
1890
+ }
1891
+ }
1892
+ };
1893
+ const contentType = {
1894
+ parameterPath: ["options", "contentType"],
1895
+ mapper: {
1896
+ defaultValue: "application/json",
1897
+ isConstant: true,
1898
+ serializedName: "Content-Type",
1899
+ type: {
1900
+ name: "String"
1901
+ }
1902
+ }
1903
+ };
1904
+ const cache = {
1905
+ parameterPath: ["options", "cache"],
1906
+ mapper: Cache
1907
+ };
1908
+ const storageTargetName = {
1909
+ parameterPath: "storageTargetName",
1910
+ mapper: {
1911
+ constraints: {
1912
+ Pattern: new RegExp("^[-0-9a-zA-Z_]{1,80}$")
1913
+ },
1914
+ serializedName: "storageTargetName",
1915
+ required: true,
1916
+ type: {
1917
+ name: "String"
1918
+ }
1919
+ }
1920
+ };
1921
+ const force = {
1922
+ parameterPath: ["options", "force"],
1923
+ mapper: {
1924
+ serializedName: "force",
1925
+ type: {
1926
+ name: "String"
1927
+ }
1928
+ }
1929
+ };
1930
+ const storagetarget = {
1931
+ parameterPath: ["options", "storagetarget"],
1932
+ mapper: StorageTarget
1933
+ };
1934
+
1935
+ /*
1936
+ * Copyright (c) Microsoft Corporation.
1937
+ * Licensed under the MIT License.
1938
+ *
1939
+ * Code generated by Microsoft (R) AutoRest Code Generator.
1940
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
1941
+ */
1942
+ /// <reference lib="esnext.asynciterable" />
1943
+ /** Class containing Operations operations. */
1944
+ class OperationsImpl {
1945
+ /**
1946
+ * Initialize a new instance of the class Operations class.
1947
+ * @param client Reference to the service client
1948
+ */
1949
+ constructor(client) {
1950
+ this.client = client;
1951
+ }
1952
+ /**
1953
+ * Lists all of the available Resource Provider operations.
1954
+ * @param options The options parameters.
1955
+ */
1956
+ list(options) {
1957
+ const iter = this.listPagingAll(options);
1958
+ return {
1959
+ next() {
1960
+ return iter.next();
1961
+ },
1962
+ [Symbol.asyncIterator]() {
1963
+ return this;
1964
+ },
1965
+ byPage: () => {
1966
+ return this.listPagingPage(options);
1967
+ }
1968
+ };
1969
+ }
1970
+ listPagingPage(options) {
1971
+ return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
1972
+ let result = yield tslib.__await(this._list(options));
1973
+ yield yield tslib.__await(result.value || []);
1974
+ let continuationToken = result.nextLink;
1975
+ while (continuationToken) {
1976
+ result = yield tslib.__await(this._listNext(continuationToken, options));
1977
+ continuationToken = result.nextLink;
1978
+ yield yield tslib.__await(result.value || []);
1979
+ }
1980
+ });
1981
+ }
1982
+ listPagingAll(options) {
1983
+ return tslib.__asyncGenerator(this, arguments, function* listPagingAll_1() {
1984
+ var e_1, _a;
1985
+ try {
1986
+ for (var _b = tslib.__asyncValues(this.listPagingPage(options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
1987
+ const page = _c.value;
1988
+ yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
1989
+ }
1990
+ }
1991
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
1992
+ finally {
1993
+ try {
1994
+ if (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));
1995
+ }
1996
+ finally { if (e_1) throw e_1.error; }
1997
+ }
1998
+ });
1999
+ }
2000
+ /**
2001
+ * Lists all of the available Resource Provider operations.
2002
+ * @param options The options parameters.
2003
+ */
2004
+ _list(options) {
2005
+ return this.client.sendOperationRequest({ options }, listOperationSpec);
2006
+ }
2007
+ /**
2008
+ * ListNext
2009
+ * @param nextLink The nextLink from the previous successful call to the List method.
2010
+ * @param options The options parameters.
2011
+ */
2012
+ _listNext(nextLink, options) {
2013
+ return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec);
2014
+ }
2015
+ }
2016
+ // Operation Specifications
2017
+ const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
2018
+ const listOperationSpec = {
2019
+ path: "/providers/Microsoft.StorageCache/operations",
2020
+ httpMethod: "GET",
2021
+ responses: {
2022
+ 200: {
2023
+ bodyMapper: ApiOperationListResult
2024
+ },
2025
+ default: {
2026
+ bodyMapper: CloudError
2027
+ }
2028
+ },
2029
+ queryParameters: [apiVersion],
2030
+ urlParameters: [$host],
2031
+ headerParameters: [accept],
2032
+ serializer
2033
+ };
2034
+ const listNextOperationSpec = {
2035
+ path: "{nextLink}",
2036
+ httpMethod: "GET",
2037
+ responses: {
2038
+ 200: {
2039
+ bodyMapper: ApiOperationListResult
2040
+ },
2041
+ default: {
2042
+ bodyMapper: CloudError
2043
+ }
2044
+ },
2045
+ queryParameters: [apiVersion],
2046
+ urlParameters: [$host, nextLink],
2047
+ headerParameters: [accept],
2048
+ serializer
2049
+ };
2050
+
2051
+ /*
2052
+ * Copyright (c) Microsoft Corporation.
2053
+ * Licensed under the MIT License.
2054
+ *
2055
+ * Code generated by Microsoft (R) AutoRest Code Generator.
2056
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
2057
+ */
2058
+ /// <reference lib="esnext.asynciterable" />
2059
+ /** Class containing Skus operations. */
2060
+ class SkusImpl {
2061
+ /**
2062
+ * Initialize a new instance of the class Skus class.
2063
+ * @param client Reference to the service client
2064
+ */
2065
+ constructor(client) {
2066
+ this.client = client;
2067
+ }
2068
+ /**
2069
+ * Get the list of StorageCache.Cache SKUs available to this subscription.
2070
+ * @param options The options parameters.
2071
+ */
2072
+ list(options) {
2073
+ const iter = this.listPagingAll(options);
2074
+ return {
2075
+ next() {
2076
+ return iter.next();
2077
+ },
2078
+ [Symbol.asyncIterator]() {
2079
+ return this;
2080
+ },
2081
+ byPage: () => {
2082
+ return this.listPagingPage(options);
2083
+ }
2084
+ };
2085
+ }
2086
+ listPagingPage(options) {
2087
+ return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
2088
+ let result = yield tslib.__await(this._list(options));
2089
+ yield yield tslib.__await(result.value || []);
2090
+ let continuationToken = result.nextLink;
2091
+ while (continuationToken) {
2092
+ result = yield tslib.__await(this._listNext(continuationToken, options));
2093
+ continuationToken = result.nextLink;
2094
+ yield yield tslib.__await(result.value || []);
2095
+ }
2096
+ });
2097
+ }
2098
+ listPagingAll(options) {
2099
+ return tslib.__asyncGenerator(this, arguments, function* listPagingAll_1() {
2100
+ var e_1, _a;
2101
+ try {
2102
+ for (var _b = tslib.__asyncValues(this.listPagingPage(options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
2103
+ const page = _c.value;
2104
+ yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
2105
+ }
2106
+ }
2107
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
2108
+ finally {
2109
+ try {
2110
+ if (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));
2111
+ }
2112
+ finally { if (e_1) throw e_1.error; }
2113
+ }
2114
+ });
2115
+ }
2116
+ /**
2117
+ * Get the list of StorageCache.Cache SKUs available to this subscription.
2118
+ * @param options The options parameters.
2119
+ */
2120
+ _list(options) {
2121
+ return this.client.sendOperationRequest({ options }, listOperationSpec$1);
2122
+ }
2123
+ /**
2124
+ * ListNext
2125
+ * @param nextLink The nextLink from the previous successful call to the List method.
2126
+ * @param options The options parameters.
2127
+ */
2128
+ _listNext(nextLink, options) {
2129
+ return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec$1);
2130
+ }
2131
+ }
2132
+ // Operation Specifications
2133
+ const serializer$1 = coreClient.createSerializer(Mappers, /* isXml */ false);
2134
+ const listOperationSpec$1 = {
2135
+ path: "/subscriptions/{subscriptionId}/providers/Microsoft.StorageCache/skus",
2136
+ httpMethod: "GET",
2137
+ responses: {
2138
+ 200: {
2139
+ bodyMapper: ResourceSkusResult
2140
+ },
2141
+ default: {
2142
+ bodyMapper: CloudError
2143
+ }
2144
+ },
2145
+ queryParameters: [apiVersion],
2146
+ urlParameters: [$host, subscriptionId],
2147
+ headerParameters: [accept],
2148
+ serializer: serializer$1
2149
+ };
2150
+ const listNextOperationSpec$1 = {
2151
+ path: "{nextLink}",
2152
+ httpMethod: "GET",
2153
+ responses: {
2154
+ 200: {
2155
+ bodyMapper: ResourceSkusResult
2156
+ },
2157
+ default: {
2158
+ bodyMapper: CloudError
2159
+ }
2160
+ },
2161
+ queryParameters: [apiVersion],
2162
+ urlParameters: [
2163
+ $host,
2164
+ nextLink,
2165
+ subscriptionId
2166
+ ],
2167
+ headerParameters: [accept],
2168
+ serializer: serializer$1
2169
+ };
2170
+
2171
+ /*
2172
+ * Copyright (c) Microsoft Corporation.
2173
+ * Licensed under the MIT License.
2174
+ *
2175
+ * Code generated by Microsoft (R) AutoRest Code Generator.
2176
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
2177
+ */
2178
+ /// <reference lib="esnext.asynciterable" />
2179
+ /** Class containing UsageModels operations. */
2180
+ class UsageModelsImpl {
2181
+ /**
2182
+ * Initialize a new instance of the class UsageModels class.
2183
+ * @param client Reference to the service client
2184
+ */
2185
+ constructor(client) {
2186
+ this.client = client;
2187
+ }
2188
+ /**
2189
+ * Get the list of Cache Usage Models available to this subscription.
2190
+ * @param options The options parameters.
2191
+ */
2192
+ list(options) {
2193
+ const iter = this.listPagingAll(options);
2194
+ return {
2195
+ next() {
2196
+ return iter.next();
2197
+ },
2198
+ [Symbol.asyncIterator]() {
2199
+ return this;
2200
+ },
2201
+ byPage: () => {
2202
+ return this.listPagingPage(options);
2203
+ }
2204
+ };
2205
+ }
2206
+ listPagingPage(options) {
2207
+ return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
2208
+ let result = yield tslib.__await(this._list(options));
2209
+ yield yield tslib.__await(result.value || []);
2210
+ let continuationToken = result.nextLink;
2211
+ while (continuationToken) {
2212
+ result = yield tslib.__await(this._listNext(continuationToken, options));
2213
+ continuationToken = result.nextLink;
2214
+ yield yield tslib.__await(result.value || []);
2215
+ }
2216
+ });
2217
+ }
2218
+ listPagingAll(options) {
2219
+ return tslib.__asyncGenerator(this, arguments, function* listPagingAll_1() {
2220
+ var e_1, _a;
2221
+ try {
2222
+ for (var _b = tslib.__asyncValues(this.listPagingPage(options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
2223
+ const page = _c.value;
2224
+ yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
2225
+ }
2226
+ }
2227
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
2228
+ finally {
2229
+ try {
2230
+ if (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));
2231
+ }
2232
+ finally { if (e_1) throw e_1.error; }
2233
+ }
2234
+ });
2235
+ }
2236
+ /**
2237
+ * Get the list of Cache Usage Models available to this subscription.
2238
+ * @param options The options parameters.
2239
+ */
2240
+ _list(options) {
2241
+ return this.client.sendOperationRequest({ options }, listOperationSpec$2);
2242
+ }
2243
+ /**
2244
+ * ListNext
2245
+ * @param nextLink The nextLink from the previous successful call to the List method.
2246
+ * @param options The options parameters.
2247
+ */
2248
+ _listNext(nextLink, options) {
2249
+ return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec$2);
2250
+ }
2251
+ }
2252
+ // Operation Specifications
2253
+ const serializer$2 = coreClient.createSerializer(Mappers, /* isXml */ false);
2254
+ const listOperationSpec$2 = {
2255
+ path: "/subscriptions/{subscriptionId}/providers/Microsoft.StorageCache/usageModels",
2256
+ httpMethod: "GET",
2257
+ responses: {
2258
+ 200: {
2259
+ bodyMapper: UsageModelsResult
2260
+ },
2261
+ default: {
2262
+ bodyMapper: CloudError
2263
+ }
2264
+ },
2265
+ queryParameters: [apiVersion],
2266
+ urlParameters: [$host, subscriptionId],
2267
+ headerParameters: [accept],
2268
+ serializer: serializer$2
2269
+ };
2270
+ const listNextOperationSpec$2 = {
2271
+ path: "{nextLink}",
2272
+ httpMethod: "GET",
2273
+ responses: {
2274
+ 200: {
2275
+ bodyMapper: UsageModelsResult
2276
+ },
2277
+ default: {
2278
+ bodyMapper: CloudError
2279
+ }
2280
+ },
2281
+ queryParameters: [apiVersion],
2282
+ urlParameters: [
2283
+ $host,
2284
+ nextLink,
2285
+ subscriptionId
2286
+ ],
2287
+ headerParameters: [accept],
2288
+ serializer: serializer$2
2289
+ };
2290
+
2291
+ /*
2292
+ * Copyright (c) Microsoft Corporation.
2293
+ * Licensed under the MIT License.
2294
+ *
2295
+ * Code generated by Microsoft (R) AutoRest Code Generator.
2296
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
2297
+ */
2298
+ /** Class containing AscOperations operations. */
2299
+ class AscOperationsImpl {
2300
+ /**
2301
+ * Initialize a new instance of the class AscOperations class.
2302
+ * @param client Reference to the service client
2303
+ */
2304
+ constructor(client) {
2305
+ this.client = client;
2306
+ }
2307
+ /**
2308
+ * Gets the status of an asynchronous operation for the Azure HPC Cache
2309
+ * @param location The name of the region used to look up the operation.
2310
+ * @param operationId The operation id which uniquely identifies the asynchronous operation.
2311
+ * @param options The options parameters.
2312
+ */
2313
+ get(location, operationId, options) {
2314
+ return this.client.sendOperationRequest({ location, operationId, options }, getOperationSpec);
2315
+ }
2316
+ }
2317
+ // Operation Specifications
2318
+ const serializer$3 = coreClient.createSerializer(Mappers, /* isXml */ false);
2319
+ const getOperationSpec = {
2320
+ path: "/subscriptions/{subscriptionId}/providers/Microsoft.StorageCache/locations/{location}/ascOperations/{operationId}",
2321
+ httpMethod: "GET",
2322
+ responses: {
2323
+ 200: {
2324
+ bodyMapper: AscOperation
2325
+ },
2326
+ default: {
2327
+ bodyMapper: CloudError
2328
+ }
2329
+ },
2330
+ queryParameters: [apiVersion],
2331
+ urlParameters: [
2332
+ $host,
2333
+ subscriptionId,
2334
+ location,
2335
+ operationId
2336
+ ],
2337
+ headerParameters: [accept],
2338
+ serializer: serializer$3
2339
+ };
2340
+
2341
+ /*
2342
+ * Copyright (c) Microsoft Corporation.
2343
+ * Licensed under the MIT License.
2344
+ *
2345
+ * Code generated by Microsoft (R) AutoRest Code Generator.
2346
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
2347
+ */
2348
+ class LroImpl {
2349
+ constructor(sendOperationFn, args, spec, requestPath = spec.path, requestMethod = spec.httpMethod) {
2350
+ this.sendOperationFn = sendOperationFn;
2351
+ this.args = args;
2352
+ this.spec = spec;
2353
+ this.requestPath = requestPath;
2354
+ this.requestMethod = requestMethod;
2355
+ }
2356
+ sendInitialRequest() {
2357
+ return tslib.__awaiter(this, void 0, void 0, function* () {
2358
+ return this.sendOperationFn(this.args, this.spec);
2359
+ });
2360
+ }
2361
+ sendPollRequest(path) {
2362
+ return tslib.__awaiter(this, void 0, void 0, function* () {
2363
+ const _a = this.spec, restSpec = tslib.__rest(_a, ["requestBody"]);
2364
+ return this.sendOperationFn(this.args, Object.assign(Object.assign({}, restSpec), { path, httpMethod: "GET" }));
2365
+ });
2366
+ }
2367
+ }
2368
+
2369
+ /*
2370
+ * Copyright (c) Microsoft Corporation.
2371
+ * Licensed under the MIT License.
2372
+ *
2373
+ * Code generated by Microsoft (R) AutoRest Code Generator.
2374
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
2375
+ */
2376
+ /// <reference lib="esnext.asynciterable" />
2377
+ /** Class containing Caches operations. */
2378
+ class CachesImpl {
2379
+ /**
2380
+ * Initialize a new instance of the class Caches class.
2381
+ * @param client Reference to the service client
2382
+ */
2383
+ constructor(client) {
2384
+ this.client = client;
2385
+ }
2386
+ /**
2387
+ * Returns all Caches the user has access to under a subscription.
2388
+ * @param options The options parameters.
2389
+ */
2390
+ list(options) {
2391
+ const iter = this.listPagingAll(options);
2392
+ return {
2393
+ next() {
2394
+ return iter.next();
2395
+ },
2396
+ [Symbol.asyncIterator]() {
2397
+ return this;
2398
+ },
2399
+ byPage: () => {
2400
+ return this.listPagingPage(options);
2401
+ }
2402
+ };
2403
+ }
2404
+ listPagingPage(options) {
2405
+ return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
2406
+ let result = yield tslib.__await(this._list(options));
2407
+ yield yield tslib.__await(result.value || []);
2408
+ let continuationToken = result.nextLink;
2409
+ while (continuationToken) {
2410
+ result = yield tslib.__await(this._listNext(continuationToken, options));
2411
+ continuationToken = result.nextLink;
2412
+ yield yield tslib.__await(result.value || []);
2413
+ }
2414
+ });
2415
+ }
2416
+ listPagingAll(options) {
2417
+ return tslib.__asyncGenerator(this, arguments, function* listPagingAll_1() {
2418
+ var e_1, _a;
2419
+ try {
2420
+ for (var _b = tslib.__asyncValues(this.listPagingPage(options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
2421
+ const page = _c.value;
2422
+ yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
2423
+ }
2424
+ }
2425
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
2426
+ finally {
2427
+ try {
2428
+ if (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));
2429
+ }
2430
+ finally { if (e_1) throw e_1.error; }
2431
+ }
2432
+ });
2433
+ }
2434
+ /**
2435
+ * Returns all Caches the user has access to under a resource group.
2436
+ * @param resourceGroupName Target resource group.
2437
+ * @param options The options parameters.
2438
+ */
2439
+ listByResourceGroup(resourceGroupName, options) {
2440
+ const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);
2441
+ return {
2442
+ next() {
2443
+ return iter.next();
2444
+ },
2445
+ [Symbol.asyncIterator]() {
2446
+ return this;
2447
+ },
2448
+ byPage: () => {
2449
+ return this.listByResourceGroupPagingPage(resourceGroupName, options);
2450
+ }
2451
+ };
2452
+ }
2453
+ listByResourceGroupPagingPage(resourceGroupName, options) {
2454
+ return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
2455
+ let result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
2456
+ yield yield tslib.__await(result.value || []);
2457
+ let continuationToken = result.nextLink;
2458
+ while (continuationToken) {
2459
+ result = yield tslib.__await(this._listByResourceGroupNext(resourceGroupName, continuationToken, options));
2460
+ continuationToken = result.nextLink;
2461
+ yield yield tslib.__await(result.value || []);
2462
+ }
2463
+ });
2464
+ }
2465
+ listByResourceGroupPagingAll(resourceGroupName, options) {
2466
+ return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingAll_1() {
2467
+ var e_2, _a;
2468
+ try {
2469
+ for (var _b = tslib.__asyncValues(this.listByResourceGroupPagingPage(resourceGroupName, options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
2470
+ const page = _c.value;
2471
+ yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
2472
+ }
2473
+ }
2474
+ catch (e_2_1) { e_2 = { error: e_2_1 }; }
2475
+ finally {
2476
+ try {
2477
+ if (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));
2478
+ }
2479
+ finally { if (e_2) throw e_2.error; }
2480
+ }
2481
+ });
2482
+ }
2483
+ /**
2484
+ * Returns all Caches the user has access to under a subscription.
2485
+ * @param options The options parameters.
2486
+ */
2487
+ _list(options) {
2488
+ return this.client.sendOperationRequest({ options }, listOperationSpec$3);
2489
+ }
2490
+ /**
2491
+ * Returns all Caches the user has access to under a resource group.
2492
+ * @param resourceGroupName Target resource group.
2493
+ * @param options The options parameters.
2494
+ */
2495
+ _listByResourceGroup(resourceGroupName, options) {
2496
+ return this.client.sendOperationRequest({ resourceGroupName, options }, listByResourceGroupOperationSpec);
2497
+ }
2498
+ /**
2499
+ * Schedules a Cache for deletion.
2500
+ * @param resourceGroupName Target resource group.
2501
+ * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from
2502
+ * the [-0-9a-zA-Z_] char class.
2503
+ * @param options The options parameters.
2504
+ */
2505
+ beginDelete(resourceGroupName, cacheName, options) {
2506
+ return tslib.__awaiter(this, void 0, void 0, function* () {
2507
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
2508
+ return this.client.sendOperationRequest(args, spec);
2509
+ });
2510
+ const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
2511
+ var _a;
2512
+ let currentRawResponse = undefined;
2513
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
2514
+ const callback = (rawResponse, flatResponse) => {
2515
+ currentRawResponse = rawResponse;
2516
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
2517
+ };
2518
+ const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
2519
+ const flatResponse = yield directSendOperation(updatedArgs, spec);
2520
+ return {
2521
+ flatResponse,
2522
+ rawResponse: {
2523
+ statusCode: currentRawResponse.status,
2524
+ body: currentRawResponse.parsedBody,
2525
+ headers: currentRawResponse.headers.toJSON()
2526
+ }
2527
+ };
2528
+ });
2529
+ const lro = new LroImpl(sendOperation, { resourceGroupName, cacheName, options }, deleteOperationSpec);
2530
+ return new coreLro.LroEngine(lro, {
2531
+ resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
2532
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
2533
+ });
2534
+ });
2535
+ }
2536
+ /**
2537
+ * Schedules a Cache for deletion.
2538
+ * @param resourceGroupName Target resource group.
2539
+ * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from
2540
+ * the [-0-9a-zA-Z_] char class.
2541
+ * @param options The options parameters.
2542
+ */
2543
+ beginDeleteAndWait(resourceGroupName, cacheName, options) {
2544
+ return tslib.__awaiter(this, void 0, void 0, function* () {
2545
+ const poller = yield this.beginDelete(resourceGroupName, cacheName, options);
2546
+ return poller.pollUntilDone();
2547
+ });
2548
+ }
2549
+ /**
2550
+ * Returns a Cache.
2551
+ * @param resourceGroupName Target resource group.
2552
+ * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from
2553
+ * the [-0-9a-zA-Z_] char class.
2554
+ * @param options The options parameters.
2555
+ */
2556
+ get(resourceGroupName, cacheName, options) {
2557
+ return this.client.sendOperationRequest({ resourceGroupName, cacheName, options }, getOperationSpec$1);
2558
+ }
2559
+ /**
2560
+ * Create or update a Cache.
2561
+ * @param resourceGroupName Target resource group.
2562
+ * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from
2563
+ * the [-0-9a-zA-Z_] char class.
2564
+ * @param options The options parameters.
2565
+ */
2566
+ beginCreateOrUpdate(resourceGroupName, cacheName, options) {
2567
+ return tslib.__awaiter(this, void 0, void 0, function* () {
2568
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
2569
+ return this.client.sendOperationRequest(args, spec);
2570
+ });
2571
+ const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
2572
+ var _a;
2573
+ let currentRawResponse = undefined;
2574
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
2575
+ const callback = (rawResponse, flatResponse) => {
2576
+ currentRawResponse = rawResponse;
2577
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
2578
+ };
2579
+ const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
2580
+ const flatResponse = yield directSendOperation(updatedArgs, spec);
2581
+ return {
2582
+ flatResponse,
2583
+ rawResponse: {
2584
+ statusCode: currentRawResponse.status,
2585
+ body: currentRawResponse.parsedBody,
2586
+ headers: currentRawResponse.headers.toJSON()
2587
+ }
2588
+ };
2589
+ });
2590
+ const lro = new LroImpl(sendOperation, { resourceGroupName, cacheName, options }, createOrUpdateOperationSpec);
2591
+ return new coreLro.LroEngine(lro, {
2592
+ resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
2593
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
2594
+ });
2595
+ });
2596
+ }
2597
+ /**
2598
+ * Create or update a Cache.
2599
+ * @param resourceGroupName Target resource group.
2600
+ * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from
2601
+ * the [-0-9a-zA-Z_] char class.
2602
+ * @param options The options parameters.
2603
+ */
2604
+ beginCreateOrUpdateAndWait(resourceGroupName, cacheName, options) {
2605
+ return tslib.__awaiter(this, void 0, void 0, function* () {
2606
+ const poller = yield this.beginCreateOrUpdate(resourceGroupName, cacheName, options);
2607
+ return poller.pollUntilDone();
2608
+ });
2609
+ }
2610
+ /**
2611
+ * Update a Cache instance.
2612
+ * @param resourceGroupName Target resource group.
2613
+ * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from
2614
+ * the [-0-9a-zA-Z_] char class.
2615
+ * @param options The options parameters.
2616
+ */
2617
+ update(resourceGroupName, cacheName, options) {
2618
+ return this.client.sendOperationRequest({ resourceGroupName, cacheName, options }, updateOperationSpec);
2619
+ }
2620
+ /**
2621
+ * Tells a Cache to write generate debug info for support to process.
2622
+ * @param resourceGroupName Target resource group.
2623
+ * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from
2624
+ * the [-0-9a-zA-Z_] char class.
2625
+ * @param options The options parameters.
2626
+ */
2627
+ beginDebugInfo(resourceGroupName, cacheName, options) {
2628
+ return tslib.__awaiter(this, void 0, void 0, function* () {
2629
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
2630
+ return this.client.sendOperationRequest(args, spec);
2631
+ });
2632
+ const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
2633
+ var _a;
2634
+ let currentRawResponse = undefined;
2635
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
2636
+ const callback = (rawResponse, flatResponse) => {
2637
+ currentRawResponse = rawResponse;
2638
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
2639
+ };
2640
+ const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
2641
+ const flatResponse = yield directSendOperation(updatedArgs, spec);
2642
+ return {
2643
+ flatResponse,
2644
+ rawResponse: {
2645
+ statusCode: currentRawResponse.status,
2646
+ body: currentRawResponse.parsedBody,
2647
+ headers: currentRawResponse.headers.toJSON()
2648
+ }
2649
+ };
2650
+ });
2651
+ const lro = new LroImpl(sendOperation, { resourceGroupName, cacheName, options }, debugInfoOperationSpec);
2652
+ return new coreLro.LroEngine(lro, {
2653
+ resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
2654
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
2655
+ lroResourceLocationConfig: "azure-async-operation"
2656
+ });
2657
+ });
2658
+ }
2659
+ /**
2660
+ * Tells a Cache to write generate debug info for support to process.
2661
+ * @param resourceGroupName Target resource group.
2662
+ * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from
2663
+ * the [-0-9a-zA-Z_] char class.
2664
+ * @param options The options parameters.
2665
+ */
2666
+ beginDebugInfoAndWait(resourceGroupName, cacheName, options) {
2667
+ return tslib.__awaiter(this, void 0, void 0, function* () {
2668
+ const poller = yield this.beginDebugInfo(resourceGroupName, cacheName, options);
2669
+ return poller.pollUntilDone();
2670
+ });
2671
+ }
2672
+ /**
2673
+ * Tells a Cache to write all dirty data to the Storage Target(s). During the flush, clients will see
2674
+ * errors returned until the flush is complete.
2675
+ * @param resourceGroupName Target resource group.
2676
+ * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from
2677
+ * the [-0-9a-zA-Z_] char class.
2678
+ * @param options The options parameters.
2679
+ */
2680
+ beginFlush(resourceGroupName, cacheName, options) {
2681
+ return tslib.__awaiter(this, void 0, void 0, function* () {
2682
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
2683
+ return this.client.sendOperationRequest(args, spec);
2684
+ });
2685
+ const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
2686
+ var _a;
2687
+ let currentRawResponse = undefined;
2688
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
2689
+ const callback = (rawResponse, flatResponse) => {
2690
+ currentRawResponse = rawResponse;
2691
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
2692
+ };
2693
+ const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
2694
+ const flatResponse = yield directSendOperation(updatedArgs, spec);
2695
+ return {
2696
+ flatResponse,
2697
+ rawResponse: {
2698
+ statusCode: currentRawResponse.status,
2699
+ body: currentRawResponse.parsedBody,
2700
+ headers: currentRawResponse.headers.toJSON()
2701
+ }
2702
+ };
2703
+ });
2704
+ const lro = new LroImpl(sendOperation, { resourceGroupName, cacheName, options }, flushOperationSpec);
2705
+ return new coreLro.LroEngine(lro, {
2706
+ resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
2707
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
2708
+ lroResourceLocationConfig: "azure-async-operation"
2709
+ });
2710
+ });
2711
+ }
2712
+ /**
2713
+ * Tells a Cache to write all dirty data to the Storage Target(s). During the flush, clients will see
2714
+ * errors returned until the flush is complete.
2715
+ * @param resourceGroupName Target resource group.
2716
+ * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from
2717
+ * the [-0-9a-zA-Z_] char class.
2718
+ * @param options The options parameters.
2719
+ */
2720
+ beginFlushAndWait(resourceGroupName, cacheName, options) {
2721
+ return tslib.__awaiter(this, void 0, void 0, function* () {
2722
+ const poller = yield this.beginFlush(resourceGroupName, cacheName, options);
2723
+ return poller.pollUntilDone();
2724
+ });
2725
+ }
2726
+ /**
2727
+ * Tells a Stopped state Cache to transition to Active state.
2728
+ * @param resourceGroupName Target resource group.
2729
+ * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from
2730
+ * the [-0-9a-zA-Z_] char class.
2731
+ * @param options The options parameters.
2732
+ */
2733
+ beginStart(resourceGroupName, cacheName, options) {
2734
+ return tslib.__awaiter(this, void 0, void 0, function* () {
2735
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
2736
+ return this.client.sendOperationRequest(args, spec);
2737
+ });
2738
+ const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
2739
+ var _a;
2740
+ let currentRawResponse = undefined;
2741
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
2742
+ const callback = (rawResponse, flatResponse) => {
2743
+ currentRawResponse = rawResponse;
2744
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
2745
+ };
2746
+ const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
2747
+ const flatResponse = yield directSendOperation(updatedArgs, spec);
2748
+ return {
2749
+ flatResponse,
2750
+ rawResponse: {
2751
+ statusCode: currentRawResponse.status,
2752
+ body: currentRawResponse.parsedBody,
2753
+ headers: currentRawResponse.headers.toJSON()
2754
+ }
2755
+ };
2756
+ });
2757
+ const lro = new LroImpl(sendOperation, { resourceGroupName, cacheName, options }, startOperationSpec);
2758
+ return new coreLro.LroEngine(lro, {
2759
+ resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
2760
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
2761
+ lroResourceLocationConfig: "azure-async-operation"
2762
+ });
2763
+ });
2764
+ }
2765
+ /**
2766
+ * Tells a Stopped state Cache to transition to Active state.
2767
+ * @param resourceGroupName Target resource group.
2768
+ * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from
2769
+ * the [-0-9a-zA-Z_] char class.
2770
+ * @param options The options parameters.
2771
+ */
2772
+ beginStartAndWait(resourceGroupName, cacheName, options) {
2773
+ return tslib.__awaiter(this, void 0, void 0, function* () {
2774
+ const poller = yield this.beginStart(resourceGroupName, cacheName, options);
2775
+ return poller.pollUntilDone();
2776
+ });
2777
+ }
2778
+ /**
2779
+ * Tells an Active Cache to transition to Stopped state.
2780
+ * @param resourceGroupName Target resource group.
2781
+ * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from
2782
+ * the [-0-9a-zA-Z_] char class.
2783
+ * @param options The options parameters.
2784
+ */
2785
+ beginStop(resourceGroupName, cacheName, options) {
2786
+ return tslib.__awaiter(this, void 0, void 0, function* () {
2787
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
2788
+ return this.client.sendOperationRequest(args, spec);
2789
+ });
2790
+ const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
2791
+ var _a;
2792
+ let currentRawResponse = undefined;
2793
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
2794
+ const callback = (rawResponse, flatResponse) => {
2795
+ currentRawResponse = rawResponse;
2796
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
2797
+ };
2798
+ const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
2799
+ const flatResponse = yield directSendOperation(updatedArgs, spec);
2800
+ return {
2801
+ flatResponse,
2802
+ rawResponse: {
2803
+ statusCode: currentRawResponse.status,
2804
+ body: currentRawResponse.parsedBody,
2805
+ headers: currentRawResponse.headers.toJSON()
2806
+ }
2807
+ };
2808
+ });
2809
+ const lro = new LroImpl(sendOperation, { resourceGroupName, cacheName, options }, stopOperationSpec);
2810
+ return new coreLro.LroEngine(lro, {
2811
+ resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
2812
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
2813
+ lroResourceLocationConfig: "azure-async-operation"
2814
+ });
2815
+ });
2816
+ }
2817
+ /**
2818
+ * Tells an Active Cache to transition to Stopped state.
2819
+ * @param resourceGroupName Target resource group.
2820
+ * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from
2821
+ * the [-0-9a-zA-Z_] char class.
2822
+ * @param options The options parameters.
2823
+ */
2824
+ beginStopAndWait(resourceGroupName, cacheName, options) {
2825
+ return tslib.__awaiter(this, void 0, void 0, function* () {
2826
+ const poller = yield this.beginStop(resourceGroupName, cacheName, options);
2827
+ return poller.pollUntilDone();
2828
+ });
2829
+ }
2830
+ /**
2831
+ * Upgrade a Cache's firmware if a new version is available. Otherwise, this operation has no effect.
2832
+ * @param resourceGroupName Target resource group.
2833
+ * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from
2834
+ * the [-0-9a-zA-Z_] char class.
2835
+ * @param options The options parameters.
2836
+ */
2837
+ beginUpgradeFirmware(resourceGroupName, cacheName, options) {
2838
+ return tslib.__awaiter(this, void 0, void 0, function* () {
2839
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
2840
+ return this.client.sendOperationRequest(args, spec);
2841
+ });
2842
+ const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
2843
+ var _a;
2844
+ let currentRawResponse = undefined;
2845
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
2846
+ const callback = (rawResponse, flatResponse) => {
2847
+ currentRawResponse = rawResponse;
2848
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
2849
+ };
2850
+ const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
2851
+ const flatResponse = yield directSendOperation(updatedArgs, spec);
2852
+ return {
2853
+ flatResponse,
2854
+ rawResponse: {
2855
+ statusCode: currentRawResponse.status,
2856
+ body: currentRawResponse.parsedBody,
2857
+ headers: currentRawResponse.headers.toJSON()
2858
+ }
2859
+ };
2860
+ });
2861
+ const lro = new LroImpl(sendOperation, { resourceGroupName, cacheName, options }, upgradeFirmwareOperationSpec);
2862
+ return new coreLro.LroEngine(lro, {
2863
+ resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
2864
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
2865
+ lroResourceLocationConfig: "azure-async-operation"
2866
+ });
2867
+ });
2868
+ }
2869
+ /**
2870
+ * Upgrade a Cache's firmware if a new version is available. Otherwise, this operation has no effect.
2871
+ * @param resourceGroupName Target resource group.
2872
+ * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from
2873
+ * the [-0-9a-zA-Z_] char class.
2874
+ * @param options The options parameters.
2875
+ */
2876
+ beginUpgradeFirmwareAndWait(resourceGroupName, cacheName, options) {
2877
+ return tslib.__awaiter(this, void 0, void 0, function* () {
2878
+ const poller = yield this.beginUpgradeFirmware(resourceGroupName, cacheName, options);
2879
+ return poller.pollUntilDone();
2880
+ });
2881
+ }
2882
+ /**
2883
+ * ListNext
2884
+ * @param nextLink The nextLink from the previous successful call to the List method.
2885
+ * @param options The options parameters.
2886
+ */
2887
+ _listNext(nextLink, options) {
2888
+ return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec$3);
2889
+ }
2890
+ /**
2891
+ * ListByResourceGroupNext
2892
+ * @param resourceGroupName Target resource group.
2893
+ * @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.
2894
+ * @param options The options parameters.
2895
+ */
2896
+ _listByResourceGroupNext(resourceGroupName, nextLink, options) {
2897
+ return this.client.sendOperationRequest({ resourceGroupName, nextLink, options }, listByResourceGroupNextOperationSpec);
2898
+ }
2899
+ }
2900
+ // Operation Specifications
2901
+ const serializer$4 = coreClient.createSerializer(Mappers, /* isXml */ false);
2902
+ const listOperationSpec$3 = {
2903
+ path: "/subscriptions/{subscriptionId}/providers/Microsoft.StorageCache/caches",
2904
+ httpMethod: "GET",
2905
+ responses: {
2906
+ 200: {
2907
+ bodyMapper: CachesListResult
2908
+ },
2909
+ default: {
2910
+ bodyMapper: CloudError
2911
+ }
2912
+ },
2913
+ queryParameters: [apiVersion],
2914
+ urlParameters: [$host, subscriptionId],
2915
+ headerParameters: [accept],
2916
+ serializer: serializer$4
2917
+ };
2918
+ const listByResourceGroupOperationSpec = {
2919
+ path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StorageCache/caches",
2920
+ httpMethod: "GET",
2921
+ responses: {
2922
+ 200: {
2923
+ bodyMapper: CachesListResult
2924
+ },
2925
+ default: {
2926
+ bodyMapper: CloudError
2927
+ }
2928
+ },
2929
+ queryParameters: [apiVersion],
2930
+ urlParameters: [
2931
+ $host,
2932
+ subscriptionId,
2933
+ resourceGroupName
2934
+ ],
2935
+ headerParameters: [accept],
2936
+ serializer: serializer$4
2937
+ };
2938
+ const deleteOperationSpec = {
2939
+ path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StorageCache/caches/{cacheName}",
2940
+ httpMethod: "DELETE",
2941
+ responses: {
2942
+ 200: {},
2943
+ 201: {},
2944
+ 202: {},
2945
+ 204: {},
2946
+ default: {
2947
+ bodyMapper: CloudError
2948
+ }
2949
+ },
2950
+ queryParameters: [apiVersion],
2951
+ urlParameters: [
2952
+ $host,
2953
+ subscriptionId,
2954
+ resourceGroupName,
2955
+ cacheName
2956
+ ],
2957
+ headerParameters: [accept],
2958
+ serializer: serializer$4
2959
+ };
2960
+ const getOperationSpec$1 = {
2961
+ path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StorageCache/caches/{cacheName}",
2962
+ httpMethod: "GET",
2963
+ responses: {
2964
+ 200: {
2965
+ bodyMapper: Cache
2966
+ },
2967
+ default: {
2968
+ bodyMapper: CloudError
2969
+ }
2970
+ },
2971
+ queryParameters: [apiVersion],
2972
+ urlParameters: [
2973
+ $host,
2974
+ subscriptionId,
2975
+ resourceGroupName,
2976
+ cacheName
2977
+ ],
2978
+ headerParameters: [accept],
2979
+ serializer: serializer$4
2980
+ };
2981
+ const createOrUpdateOperationSpec = {
2982
+ path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StorageCache/caches/{cacheName}",
2983
+ httpMethod: "PUT",
2984
+ responses: {
2985
+ 200: {
2986
+ bodyMapper: Cache
2987
+ },
2988
+ 201: {
2989
+ bodyMapper: Cache
2990
+ },
2991
+ 202: {
2992
+ bodyMapper: Cache
2993
+ },
2994
+ 204: {
2995
+ bodyMapper: Cache
2996
+ },
2997
+ default: {
2998
+ bodyMapper: CloudError
2999
+ }
3000
+ },
3001
+ requestBody: cache,
3002
+ queryParameters: [apiVersion],
3003
+ urlParameters: [
3004
+ $host,
3005
+ subscriptionId,
3006
+ resourceGroupName,
3007
+ cacheName
3008
+ ],
3009
+ headerParameters: [accept, contentType],
3010
+ mediaType: "json",
3011
+ serializer: serializer$4
3012
+ };
3013
+ const updateOperationSpec = {
3014
+ path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StorageCache/caches/{cacheName}",
3015
+ httpMethod: "PATCH",
3016
+ responses: {
3017
+ 200: {
3018
+ bodyMapper: Cache
3019
+ },
3020
+ default: {
3021
+ bodyMapper: CloudError
3022
+ }
3023
+ },
3024
+ requestBody: cache,
3025
+ queryParameters: [apiVersion],
3026
+ urlParameters: [
3027
+ $host,
3028
+ subscriptionId,
3029
+ resourceGroupName,
3030
+ cacheName
3031
+ ],
3032
+ headerParameters: [accept, contentType],
3033
+ mediaType: "json",
3034
+ serializer: serializer$4
3035
+ };
3036
+ const debugInfoOperationSpec = {
3037
+ path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StorageCache/caches/{cacheName}/debugInfo",
3038
+ httpMethod: "POST",
3039
+ responses: {
3040
+ 200: {},
3041
+ 201: {},
3042
+ 202: {},
3043
+ 204: {},
3044
+ default: {
3045
+ bodyMapper: CloudError
3046
+ }
3047
+ },
3048
+ queryParameters: [apiVersion],
3049
+ urlParameters: [
3050
+ $host,
3051
+ subscriptionId,
3052
+ resourceGroupName,
3053
+ cacheName
3054
+ ],
3055
+ headerParameters: [accept],
3056
+ serializer: serializer$4
3057
+ };
3058
+ const flushOperationSpec = {
3059
+ path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StorageCache/caches/{cacheName}/flush",
3060
+ httpMethod: "POST",
3061
+ responses: {
3062
+ 200: {},
3063
+ 201: {},
3064
+ 202: {},
3065
+ 204: {},
3066
+ default: {
3067
+ bodyMapper: CloudError
3068
+ }
3069
+ },
3070
+ queryParameters: [apiVersion],
3071
+ urlParameters: [
3072
+ $host,
3073
+ subscriptionId,
3074
+ resourceGroupName,
3075
+ cacheName
3076
+ ],
3077
+ headerParameters: [accept],
3078
+ serializer: serializer$4
3079
+ };
3080
+ const startOperationSpec = {
3081
+ path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StorageCache/caches/{cacheName}/start",
3082
+ httpMethod: "POST",
3083
+ responses: {
3084
+ 200: {},
3085
+ 201: {},
3086
+ 202: {},
3087
+ 204: {},
3088
+ default: {
3089
+ bodyMapper: CloudError
3090
+ }
3091
+ },
3092
+ queryParameters: [apiVersion],
3093
+ urlParameters: [
3094
+ $host,
3095
+ subscriptionId,
3096
+ resourceGroupName,
3097
+ cacheName
3098
+ ],
3099
+ headerParameters: [accept],
3100
+ serializer: serializer$4
3101
+ };
3102
+ const stopOperationSpec = {
3103
+ path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StorageCache/caches/{cacheName}/stop",
3104
+ httpMethod: "POST",
3105
+ responses: {
3106
+ 200: {},
3107
+ 201: {},
3108
+ 202: {},
3109
+ 204: {},
3110
+ default: {
3111
+ bodyMapper: CloudError
3112
+ }
3113
+ },
3114
+ queryParameters: [apiVersion],
3115
+ urlParameters: [
3116
+ $host,
3117
+ subscriptionId,
3118
+ resourceGroupName,
3119
+ cacheName
3120
+ ],
3121
+ headerParameters: [accept],
3122
+ serializer: serializer$4
3123
+ };
3124
+ const upgradeFirmwareOperationSpec = {
3125
+ path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StorageCache/caches/{cacheName}/upgrade",
3126
+ httpMethod: "POST",
3127
+ responses: {
3128
+ 200: {},
3129
+ 201: {},
3130
+ 202: {},
3131
+ 204: {},
3132
+ default: {
3133
+ bodyMapper: CloudError
3134
+ }
3135
+ },
3136
+ queryParameters: [apiVersion],
3137
+ urlParameters: [
3138
+ $host,
3139
+ subscriptionId,
3140
+ resourceGroupName,
3141
+ cacheName
3142
+ ],
3143
+ headerParameters: [accept],
3144
+ serializer: serializer$4
3145
+ };
3146
+ const listNextOperationSpec$3 = {
3147
+ path: "{nextLink}",
3148
+ httpMethod: "GET",
3149
+ responses: {
3150
+ 200: {
3151
+ bodyMapper: CachesListResult
3152
+ },
3153
+ default: {
3154
+ bodyMapper: CloudError
3155
+ }
3156
+ },
3157
+ queryParameters: [apiVersion],
3158
+ urlParameters: [
3159
+ $host,
3160
+ nextLink,
3161
+ subscriptionId
3162
+ ],
3163
+ headerParameters: [accept],
3164
+ serializer: serializer$4
3165
+ };
3166
+ const listByResourceGroupNextOperationSpec = {
3167
+ path: "{nextLink}",
3168
+ httpMethod: "GET",
3169
+ responses: {
3170
+ 200: {
3171
+ bodyMapper: CachesListResult
3172
+ },
3173
+ default: {
3174
+ bodyMapper: CloudError
3175
+ }
3176
+ },
3177
+ queryParameters: [apiVersion],
3178
+ urlParameters: [
3179
+ $host,
3180
+ nextLink,
3181
+ subscriptionId,
3182
+ resourceGroupName
3183
+ ],
3184
+ headerParameters: [accept],
3185
+ serializer: serializer$4
3186
+ };
3187
+
3188
+ /*
3189
+ * Copyright (c) Microsoft Corporation.
3190
+ * Licensed under the MIT License.
3191
+ *
3192
+ * Code generated by Microsoft (R) AutoRest Code Generator.
3193
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
3194
+ */
3195
+ /// <reference lib="esnext.asynciterable" />
3196
+ /** Class containing StorageTargets operations. */
3197
+ class StorageTargetsImpl {
3198
+ /**
3199
+ * Initialize a new instance of the class StorageTargets class.
3200
+ * @param client Reference to the service client
3201
+ */
3202
+ constructor(client) {
3203
+ this.client = client;
3204
+ }
3205
+ /**
3206
+ * Returns a list of Storage Targets for the specified Cache.
3207
+ * @param resourceGroupName Target resource group.
3208
+ * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from
3209
+ * the [-0-9a-zA-Z_] char class.
3210
+ * @param options The options parameters.
3211
+ */
3212
+ listByCache(resourceGroupName, cacheName, options) {
3213
+ const iter = this.listByCachePagingAll(resourceGroupName, cacheName, options);
3214
+ return {
3215
+ next() {
3216
+ return iter.next();
3217
+ },
3218
+ [Symbol.asyncIterator]() {
3219
+ return this;
3220
+ },
3221
+ byPage: () => {
3222
+ return this.listByCachePagingPage(resourceGroupName, cacheName, options);
3223
+ }
3224
+ };
3225
+ }
3226
+ listByCachePagingPage(resourceGroupName, cacheName, options) {
3227
+ return tslib.__asyncGenerator(this, arguments, function* listByCachePagingPage_1() {
3228
+ let result = yield tslib.__await(this._listByCache(resourceGroupName, cacheName, options));
3229
+ yield yield tslib.__await(result.value || []);
3230
+ let continuationToken = result.nextLink;
3231
+ while (continuationToken) {
3232
+ result = yield tslib.__await(this._listByCacheNext(resourceGroupName, cacheName, continuationToken, options));
3233
+ continuationToken = result.nextLink;
3234
+ yield yield tslib.__await(result.value || []);
3235
+ }
3236
+ });
3237
+ }
3238
+ listByCachePagingAll(resourceGroupName, cacheName, options) {
3239
+ return tslib.__asyncGenerator(this, arguments, function* listByCachePagingAll_1() {
3240
+ var e_1, _a;
3241
+ try {
3242
+ for (var _b = tslib.__asyncValues(this.listByCachePagingPage(resourceGroupName, cacheName, options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
3243
+ const page = _c.value;
3244
+ yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
3245
+ }
3246
+ }
3247
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
3248
+ finally {
3249
+ try {
3250
+ if (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));
3251
+ }
3252
+ finally { if (e_1) throw e_1.error; }
3253
+ }
3254
+ });
3255
+ }
3256
+ /**
3257
+ * Tells a storage target to refresh its DNS information.
3258
+ * @param resourceGroupName Target resource group.
3259
+ * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from
3260
+ * the [-0-9a-zA-Z_] char class.
3261
+ * @param storageTargetName Name of Storage Target.
3262
+ * @param options The options parameters.
3263
+ */
3264
+ beginDnsRefresh(resourceGroupName, cacheName, storageTargetName, options) {
3265
+ return tslib.__awaiter(this, void 0, void 0, function* () {
3266
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
3267
+ return this.client.sendOperationRequest(args, spec);
3268
+ });
3269
+ const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
3270
+ var _a;
3271
+ let currentRawResponse = undefined;
3272
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
3273
+ const callback = (rawResponse, flatResponse) => {
3274
+ currentRawResponse = rawResponse;
3275
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
3276
+ };
3277
+ const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
3278
+ const flatResponse = yield directSendOperation(updatedArgs, spec);
3279
+ return {
3280
+ flatResponse,
3281
+ rawResponse: {
3282
+ statusCode: currentRawResponse.status,
3283
+ body: currentRawResponse.parsedBody,
3284
+ headers: currentRawResponse.headers.toJSON()
3285
+ }
3286
+ };
3287
+ });
3288
+ const lro = new LroImpl(sendOperation, { resourceGroupName, cacheName, storageTargetName, options }, dnsRefreshOperationSpec);
3289
+ return new coreLro.LroEngine(lro, {
3290
+ resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
3291
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
3292
+ lroResourceLocationConfig: "azure-async-operation"
3293
+ });
3294
+ });
3295
+ }
3296
+ /**
3297
+ * Tells a storage target to refresh its DNS information.
3298
+ * @param resourceGroupName Target resource group.
3299
+ * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from
3300
+ * the [-0-9a-zA-Z_] char class.
3301
+ * @param storageTargetName Name of Storage Target.
3302
+ * @param options The options parameters.
3303
+ */
3304
+ beginDnsRefreshAndWait(resourceGroupName, cacheName, storageTargetName, options) {
3305
+ return tslib.__awaiter(this, void 0, void 0, function* () {
3306
+ const poller = yield this.beginDnsRefresh(resourceGroupName, cacheName, storageTargetName, options);
3307
+ return poller.pollUntilDone();
3308
+ });
3309
+ }
3310
+ /**
3311
+ * Returns a list of Storage Targets for the specified Cache.
3312
+ * @param resourceGroupName Target resource group.
3313
+ * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from
3314
+ * the [-0-9a-zA-Z_] char class.
3315
+ * @param options The options parameters.
3316
+ */
3317
+ _listByCache(resourceGroupName, cacheName, options) {
3318
+ return this.client.sendOperationRequest({ resourceGroupName, cacheName, options }, listByCacheOperationSpec);
3319
+ }
3320
+ /**
3321
+ * Removes a Storage Target from a Cache. This operation is allowed at any time, but if the Cache is
3322
+ * down or unhealthy, the actual removal of the Storage Target may be delayed until the Cache is
3323
+ * healthy again. Note that if the Cache has data to flush to the Storage Target, the data will be
3324
+ * flushed before the Storage Target will be deleted.
3325
+ * @param resourceGroupName Target resource group.
3326
+ * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from
3327
+ * the [-0-9a-zA-Z_] char class.
3328
+ * @param storageTargetName Name of Storage Target.
3329
+ * @param options The options parameters.
3330
+ */
3331
+ beginDelete(resourceGroupName, cacheName, storageTargetName, options) {
3332
+ return tslib.__awaiter(this, void 0, void 0, function* () {
3333
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
3334
+ return this.client.sendOperationRequest(args, spec);
3335
+ });
3336
+ const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
3337
+ var _a;
3338
+ let currentRawResponse = undefined;
3339
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
3340
+ const callback = (rawResponse, flatResponse) => {
3341
+ currentRawResponse = rawResponse;
3342
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
3343
+ };
3344
+ const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
3345
+ const flatResponse = yield directSendOperation(updatedArgs, spec);
3346
+ return {
3347
+ flatResponse,
3348
+ rawResponse: {
3349
+ statusCode: currentRawResponse.status,
3350
+ body: currentRawResponse.parsedBody,
3351
+ headers: currentRawResponse.headers.toJSON()
3352
+ }
3353
+ };
3354
+ });
3355
+ const lro = new LroImpl(sendOperation, { resourceGroupName, cacheName, storageTargetName, options }, deleteOperationSpec$1);
3356
+ return new coreLro.LroEngine(lro, {
3357
+ resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
3358
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
3359
+ });
3360
+ });
3361
+ }
3362
+ /**
3363
+ * Removes a Storage Target from a Cache. This operation is allowed at any time, but if the Cache is
3364
+ * down or unhealthy, the actual removal of the Storage Target may be delayed until the Cache is
3365
+ * healthy again. Note that if the Cache has data to flush to the Storage Target, the data will be
3366
+ * flushed before the Storage Target will be deleted.
3367
+ * @param resourceGroupName Target resource group.
3368
+ * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from
3369
+ * the [-0-9a-zA-Z_] char class.
3370
+ * @param storageTargetName Name of Storage Target.
3371
+ * @param options The options parameters.
3372
+ */
3373
+ beginDeleteAndWait(resourceGroupName, cacheName, storageTargetName, options) {
3374
+ return tslib.__awaiter(this, void 0, void 0, function* () {
3375
+ const poller = yield this.beginDelete(resourceGroupName, cacheName, storageTargetName, options);
3376
+ return poller.pollUntilDone();
3377
+ });
3378
+ }
3379
+ /**
3380
+ * Returns a Storage Target from a Cache.
3381
+ * @param resourceGroupName Target resource group.
3382
+ * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from
3383
+ * the [-0-9a-zA-Z_] char class.
3384
+ * @param storageTargetName Name of Storage Target.
3385
+ * @param options The options parameters.
3386
+ */
3387
+ get(resourceGroupName, cacheName, storageTargetName, options) {
3388
+ return this.client.sendOperationRequest({ resourceGroupName, cacheName, storageTargetName, options }, getOperationSpec$2);
3389
+ }
3390
+ /**
3391
+ * Create or update a Storage Target. This operation is allowed at any time, but if the Cache is down
3392
+ * or unhealthy, the actual creation/modification of the Storage Target may be delayed until the Cache
3393
+ * is healthy again.
3394
+ * @param resourceGroupName Target resource group.
3395
+ * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from
3396
+ * the [-0-9a-zA-Z_] char class.
3397
+ * @param storageTargetName Name of Storage Target.
3398
+ * @param options The options parameters.
3399
+ */
3400
+ beginCreateOrUpdate(resourceGroupName, cacheName, storageTargetName, options) {
3401
+ return tslib.__awaiter(this, void 0, void 0, function* () {
3402
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
3403
+ return this.client.sendOperationRequest(args, spec);
3404
+ });
3405
+ const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
3406
+ var _a;
3407
+ let currentRawResponse = undefined;
3408
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
3409
+ const callback = (rawResponse, flatResponse) => {
3410
+ currentRawResponse = rawResponse;
3411
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
3412
+ };
3413
+ const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
3414
+ const flatResponse = yield directSendOperation(updatedArgs, spec);
3415
+ return {
3416
+ flatResponse,
3417
+ rawResponse: {
3418
+ statusCode: currentRawResponse.status,
3419
+ body: currentRawResponse.parsedBody,
3420
+ headers: currentRawResponse.headers.toJSON()
3421
+ }
3422
+ };
3423
+ });
3424
+ const lro = new LroImpl(sendOperation, { resourceGroupName, cacheName, storageTargetName, options }, createOrUpdateOperationSpec$1);
3425
+ return new coreLro.LroEngine(lro, {
3426
+ resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
3427
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
3428
+ });
3429
+ });
3430
+ }
3431
+ /**
3432
+ * Create or update a Storage Target. This operation is allowed at any time, but if the Cache is down
3433
+ * or unhealthy, the actual creation/modification of the Storage Target may be delayed until the Cache
3434
+ * is healthy again.
3435
+ * @param resourceGroupName Target resource group.
3436
+ * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from
3437
+ * the [-0-9a-zA-Z_] char class.
3438
+ * @param storageTargetName Name of Storage Target.
3439
+ * @param options The options parameters.
3440
+ */
3441
+ beginCreateOrUpdateAndWait(resourceGroupName, cacheName, storageTargetName, options) {
3442
+ return tslib.__awaiter(this, void 0, void 0, function* () {
3443
+ const poller = yield this.beginCreateOrUpdate(resourceGroupName, cacheName, storageTargetName, options);
3444
+ return poller.pollUntilDone();
3445
+ });
3446
+ }
3447
+ /**
3448
+ * ListByCacheNext
3449
+ * @param resourceGroupName Target resource group.
3450
+ * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from
3451
+ * the [-0-9a-zA-Z_] char class.
3452
+ * @param nextLink The nextLink from the previous successful call to the ListByCache method.
3453
+ * @param options The options parameters.
3454
+ */
3455
+ _listByCacheNext(resourceGroupName, cacheName, nextLink, options) {
3456
+ return this.client.sendOperationRequest({ resourceGroupName, cacheName, nextLink, options }, listByCacheNextOperationSpec);
3457
+ }
3458
+ }
3459
+ // Operation Specifications
3460
+ const serializer$5 = coreClient.createSerializer(Mappers, /* isXml */ false);
3461
+ const dnsRefreshOperationSpec = {
3462
+ path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StorageCache/caches/{cacheName}/storageTargets/{storageTargetName}/dnsRefresh",
3463
+ httpMethod: "POST",
3464
+ responses: {
3465
+ 200: {},
3466
+ 201: {},
3467
+ 202: {},
3468
+ 204: {},
3469
+ default: {
3470
+ bodyMapper: CloudError
3471
+ }
3472
+ },
3473
+ queryParameters: [apiVersion],
3474
+ urlParameters: [
3475
+ $host,
3476
+ subscriptionId,
3477
+ resourceGroupName,
3478
+ cacheName,
3479
+ storageTargetName
3480
+ ],
3481
+ headerParameters: [accept],
3482
+ serializer: serializer$5
3483
+ };
3484
+ const listByCacheOperationSpec = {
3485
+ path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StorageCache/caches/{cacheName}/storageTargets",
3486
+ httpMethod: "GET",
3487
+ responses: {
3488
+ 200: {
3489
+ bodyMapper: StorageTargetsResult
3490
+ },
3491
+ default: {
3492
+ bodyMapper: CloudError
3493
+ }
3494
+ },
3495
+ queryParameters: [apiVersion],
3496
+ urlParameters: [
3497
+ $host,
3498
+ subscriptionId,
3499
+ resourceGroupName,
3500
+ cacheName
3501
+ ],
3502
+ headerParameters: [accept],
3503
+ serializer: serializer$5
3504
+ };
3505
+ const deleteOperationSpec$1 = {
3506
+ path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StorageCache/caches/{cacheName}/storageTargets/{storageTargetName}",
3507
+ httpMethod: "DELETE",
3508
+ responses: {
3509
+ 200: {},
3510
+ 201: {},
3511
+ 202: {},
3512
+ 204: {},
3513
+ default: {
3514
+ bodyMapper: CloudError
3515
+ }
3516
+ },
3517
+ queryParameters: [apiVersion, force],
3518
+ urlParameters: [
3519
+ $host,
3520
+ subscriptionId,
3521
+ resourceGroupName,
3522
+ cacheName,
3523
+ storageTargetName
3524
+ ],
3525
+ headerParameters: [accept],
3526
+ serializer: serializer$5
3527
+ };
3528
+ const getOperationSpec$2 = {
3529
+ path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StorageCache/caches/{cacheName}/storageTargets/{storageTargetName}",
3530
+ httpMethod: "GET",
3531
+ responses: {
3532
+ 200: {
3533
+ bodyMapper: StorageTarget
3534
+ },
3535
+ default: {
3536
+ bodyMapper: CloudError
3537
+ }
3538
+ },
3539
+ queryParameters: [apiVersion],
3540
+ urlParameters: [
3541
+ $host,
3542
+ subscriptionId,
3543
+ resourceGroupName,
3544
+ cacheName,
3545
+ storageTargetName
3546
+ ],
3547
+ headerParameters: [accept],
3548
+ serializer: serializer$5
3549
+ };
3550
+ const createOrUpdateOperationSpec$1 = {
3551
+ path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StorageCache/caches/{cacheName}/storageTargets/{storageTargetName}",
3552
+ httpMethod: "PUT",
3553
+ responses: {
3554
+ 200: {
3555
+ bodyMapper: StorageTarget
3556
+ },
3557
+ 201: {
3558
+ bodyMapper: StorageTarget
3559
+ },
3560
+ 202: {
3561
+ bodyMapper: StorageTarget
3562
+ },
3563
+ 204: {
3564
+ bodyMapper: StorageTarget
3565
+ },
3566
+ default: {
3567
+ bodyMapper: CloudError
3568
+ }
3569
+ },
3570
+ requestBody: storagetarget,
3571
+ queryParameters: [apiVersion],
3572
+ urlParameters: [
3573
+ $host,
3574
+ subscriptionId,
3575
+ resourceGroupName,
3576
+ cacheName,
3577
+ storageTargetName
3578
+ ],
3579
+ headerParameters: [accept, contentType],
3580
+ mediaType: "json",
3581
+ serializer: serializer$5
3582
+ };
3583
+ const listByCacheNextOperationSpec = {
3584
+ path: "{nextLink}",
3585
+ httpMethod: "GET",
3586
+ responses: {
3587
+ 200: {
3588
+ bodyMapper: StorageTargetsResult
3589
+ },
3590
+ default: {
3591
+ bodyMapper: CloudError
3592
+ }
3593
+ },
3594
+ queryParameters: [apiVersion],
3595
+ urlParameters: [
3596
+ $host,
3597
+ nextLink,
3598
+ subscriptionId,
3599
+ resourceGroupName,
3600
+ cacheName
3601
+ ],
3602
+ headerParameters: [accept],
3603
+ serializer: serializer$5
3604
+ };
3605
+
3606
+ /*
3607
+ * Copyright (c) Microsoft Corporation.
3608
+ * Licensed under the MIT License.
3609
+ *
3610
+ * Code generated by Microsoft (R) AutoRest Code Generator.
3611
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
3612
+ */
3613
+ /** Class containing StorageTargetOperations operations. */
3614
+ class StorageTargetOperationsImpl {
3615
+ /**
3616
+ * Initialize a new instance of the class StorageTargetOperations class.
3617
+ * @param client Reference to the service client
3618
+ */
3619
+ constructor(client) {
3620
+ this.client = client;
3621
+ }
3622
+ /**
3623
+ * Tells the cache to write all dirty data to the Storage Target's backend storage. Client requests to
3624
+ * this storage target's namespace will return errors until the flush operation completes.
3625
+ * @param resourceGroupName Target resource group.
3626
+ * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from
3627
+ * the [-0-9a-zA-Z_] char class.
3628
+ * @param storageTargetName Name of Storage Target.
3629
+ * @param options The options parameters.
3630
+ */
3631
+ beginFlush(resourceGroupName, cacheName, storageTargetName, options) {
3632
+ return tslib.__awaiter(this, void 0, void 0, function* () {
3633
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
3634
+ return this.client.sendOperationRequest(args, spec);
3635
+ });
3636
+ const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
3637
+ var _a;
3638
+ let currentRawResponse = undefined;
3639
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
3640
+ const callback = (rawResponse, flatResponse) => {
3641
+ currentRawResponse = rawResponse;
3642
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
3643
+ };
3644
+ const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
3645
+ const flatResponse = yield directSendOperation(updatedArgs, spec);
3646
+ return {
3647
+ flatResponse,
3648
+ rawResponse: {
3649
+ statusCode: currentRawResponse.status,
3650
+ body: currentRawResponse.parsedBody,
3651
+ headers: currentRawResponse.headers.toJSON()
3652
+ }
3653
+ };
3654
+ });
3655
+ const lro = new LroImpl(sendOperation, { resourceGroupName, cacheName, storageTargetName, options }, flushOperationSpec$1);
3656
+ return new coreLro.LroEngine(lro, {
3657
+ resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
3658
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
3659
+ lroResourceLocationConfig: "azure-async-operation"
3660
+ });
3661
+ });
3662
+ }
3663
+ /**
3664
+ * Tells the cache to write all dirty data to the Storage Target's backend storage. Client requests to
3665
+ * this storage target's namespace will return errors until the flush operation completes.
3666
+ * @param resourceGroupName Target resource group.
3667
+ * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from
3668
+ * the [-0-9a-zA-Z_] char class.
3669
+ * @param storageTargetName Name of Storage Target.
3670
+ * @param options The options parameters.
3671
+ */
3672
+ beginFlushAndWait(resourceGroupName, cacheName, storageTargetName, options) {
3673
+ return tslib.__awaiter(this, void 0, void 0, function* () {
3674
+ const poller = yield this.beginFlush(resourceGroupName, cacheName, storageTargetName, options);
3675
+ return poller.pollUntilDone();
3676
+ });
3677
+ }
3678
+ /**
3679
+ * Suspends client access to a storage target.
3680
+ * @param resourceGroupName Target resource group.
3681
+ * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from
3682
+ * the [-0-9a-zA-Z_] char class.
3683
+ * @param storageTargetName Name of Storage Target.
3684
+ * @param options The options parameters.
3685
+ */
3686
+ beginSuspend(resourceGroupName, cacheName, storageTargetName, options) {
3687
+ return tslib.__awaiter(this, void 0, void 0, function* () {
3688
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
3689
+ return this.client.sendOperationRequest(args, spec);
3690
+ });
3691
+ const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
3692
+ var _a;
3693
+ let currentRawResponse = undefined;
3694
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
3695
+ const callback = (rawResponse, flatResponse) => {
3696
+ currentRawResponse = rawResponse;
3697
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
3698
+ };
3699
+ const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
3700
+ const flatResponse = yield directSendOperation(updatedArgs, spec);
3701
+ return {
3702
+ flatResponse,
3703
+ rawResponse: {
3704
+ statusCode: currentRawResponse.status,
3705
+ body: currentRawResponse.parsedBody,
3706
+ headers: currentRawResponse.headers.toJSON()
3707
+ }
3708
+ };
3709
+ });
3710
+ const lro = new LroImpl(sendOperation, { resourceGroupName, cacheName, storageTargetName, options }, suspendOperationSpec);
3711
+ return new coreLro.LroEngine(lro, {
3712
+ resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
3713
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
3714
+ lroResourceLocationConfig: "azure-async-operation"
3715
+ });
3716
+ });
3717
+ }
3718
+ /**
3719
+ * Suspends client access to a storage target.
3720
+ * @param resourceGroupName Target resource group.
3721
+ * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from
3722
+ * the [-0-9a-zA-Z_] char class.
3723
+ * @param storageTargetName Name of Storage Target.
3724
+ * @param options The options parameters.
3725
+ */
3726
+ beginSuspendAndWait(resourceGroupName, cacheName, storageTargetName, options) {
3727
+ return tslib.__awaiter(this, void 0, void 0, function* () {
3728
+ const poller = yield this.beginSuspend(resourceGroupName, cacheName, storageTargetName, options);
3729
+ return poller.pollUntilDone();
3730
+ });
3731
+ }
3732
+ /**
3733
+ * Resumes client access to a previously suspended storage target.
3734
+ * @param resourceGroupName Target resource group.
3735
+ * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from
3736
+ * the [-0-9a-zA-Z_] char class.
3737
+ * @param storageTargetName Name of Storage Target.
3738
+ * @param options The options parameters.
3739
+ */
3740
+ beginResume(resourceGroupName, cacheName, storageTargetName, options) {
3741
+ return tslib.__awaiter(this, void 0, void 0, function* () {
3742
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
3743
+ return this.client.sendOperationRequest(args, spec);
3744
+ });
3745
+ const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
3746
+ var _a;
3747
+ let currentRawResponse = undefined;
3748
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
3749
+ const callback = (rawResponse, flatResponse) => {
3750
+ currentRawResponse = rawResponse;
3751
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
3752
+ };
3753
+ const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
3754
+ const flatResponse = yield directSendOperation(updatedArgs, spec);
3755
+ return {
3756
+ flatResponse,
3757
+ rawResponse: {
3758
+ statusCode: currentRawResponse.status,
3759
+ body: currentRawResponse.parsedBody,
3760
+ headers: currentRawResponse.headers.toJSON()
3761
+ }
3762
+ };
3763
+ });
3764
+ const lro = new LroImpl(sendOperation, { resourceGroupName, cacheName, storageTargetName, options }, resumeOperationSpec);
3765
+ return new coreLro.LroEngine(lro, {
3766
+ resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
3767
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
3768
+ lroResourceLocationConfig: "azure-async-operation"
3769
+ });
3770
+ });
3771
+ }
3772
+ /**
3773
+ * Resumes client access to a previously suspended storage target.
3774
+ * @param resourceGroupName Target resource group.
3775
+ * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from
3776
+ * the [-0-9a-zA-Z_] char class.
3777
+ * @param storageTargetName Name of Storage Target.
3778
+ * @param options The options parameters.
3779
+ */
3780
+ beginResumeAndWait(resourceGroupName, cacheName, storageTargetName, options) {
3781
+ return tslib.__awaiter(this, void 0, void 0, function* () {
3782
+ const poller = yield this.beginResume(resourceGroupName, cacheName, storageTargetName, options);
3783
+ return poller.pollUntilDone();
3784
+ });
3785
+ }
3786
+ }
3787
+ // Operation Specifications
3788
+ const serializer$6 = coreClient.createSerializer(Mappers, /* isXml */ false);
3789
+ const flushOperationSpec$1 = {
3790
+ path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StorageCache/caches/{cacheName}/storageTargets/{storageTargetName}/flush",
3791
+ httpMethod: "POST",
3792
+ responses: {
3793
+ 200: {},
3794
+ 201: {},
3795
+ 202: {},
3796
+ 204: {},
3797
+ default: {
3798
+ bodyMapper: CloudError
3799
+ }
3800
+ },
3801
+ queryParameters: [apiVersion],
3802
+ urlParameters: [
3803
+ $host,
3804
+ subscriptionId,
3805
+ resourceGroupName,
3806
+ cacheName,
3807
+ storageTargetName
3808
+ ],
3809
+ headerParameters: [accept],
3810
+ serializer: serializer$6
3811
+ };
3812
+ const suspendOperationSpec = {
3813
+ path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StorageCache/caches/{cacheName}/storageTargets/{storageTargetName}/suspend",
3814
+ httpMethod: "POST",
3815
+ responses: {
3816
+ 200: {},
3817
+ 201: {},
3818
+ 202: {},
3819
+ 204: {},
3820
+ default: {
3821
+ bodyMapper: CloudError
3822
+ }
3823
+ },
3824
+ queryParameters: [apiVersion],
3825
+ urlParameters: [
3826
+ $host,
3827
+ subscriptionId,
3828
+ resourceGroupName,
3829
+ cacheName,
3830
+ storageTargetName
3831
+ ],
3832
+ headerParameters: [accept],
3833
+ serializer: serializer$6
3834
+ };
3835
+ const resumeOperationSpec = {
3836
+ path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StorageCache/caches/{cacheName}/storageTargets/{storageTargetName}/resume",
3837
+ httpMethod: "POST",
3838
+ responses: {
3839
+ 200: {},
3840
+ 201: {},
3841
+ 202: {},
3842
+ 204: {},
3843
+ default: {
3844
+ bodyMapper: CloudError
3845
+ }
3846
+ },
3847
+ queryParameters: [apiVersion],
3848
+ urlParameters: [
3849
+ $host,
3850
+ subscriptionId,
3851
+ resourceGroupName,
3852
+ cacheName,
3853
+ storageTargetName
3854
+ ],
3855
+ headerParameters: [accept],
3856
+ serializer: serializer$6
3857
+ };
3858
+
3859
+ /*
3860
+ * Copyright (c) Microsoft Corporation.
3861
+ * Licensed under the MIT License.
3862
+ *
3863
+ * Code generated by Microsoft (R) AutoRest Code Generator.
3864
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
3865
+ */
3866
+ class StorageCacheManagementClient extends coreClient.ServiceClient {
3867
+ /**
3868
+ * Initializes a new instance of the StorageCacheManagementClient class.
3869
+ * @param credentials Subscription credentials which uniquely identify client subscription.
3870
+ * @param subscriptionId Subscription credentials which uniquely identify Microsoft Azure subscription.
3871
+ * The subscription ID forms part of the URI for every service call.
3872
+ * @param options The parameter options
3873
+ */
3874
+ constructor(credentials, subscriptionId, options) {
3875
+ if (credentials === undefined) {
3876
+ throw new Error("'credentials' cannot be null");
3877
+ }
3878
+ if (subscriptionId === undefined) {
3879
+ throw new Error("'subscriptionId' cannot be null");
3880
+ }
3881
+ // Initializing default values for options
3882
+ if (!options) {
3883
+ options = {};
3884
+ }
3885
+ const defaults = {
3886
+ requestContentType: "application/json; charset=utf-8",
3887
+ credential: credentials
3888
+ };
3889
+ const packageDetails = `azsdk-js-arm-storagecache/5.0.0`;
3890
+ const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
3891
+ ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
3892
+ : `${packageDetails}`;
3893
+ if (!options.credentialScopes) {
3894
+ options.credentialScopes = ["https://management.azure.com/.default"];
3895
+ }
3896
+ const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
3897
+ userAgentPrefix
3898
+ }, baseUri: options.endpoint || "https://management.azure.com" });
3899
+ super(optionsWithDefaults);
3900
+ // Parameter assignments
3901
+ this.subscriptionId = subscriptionId;
3902
+ // Assigning values to Constant parameters
3903
+ this.$host = options.$host || "https://management.azure.com";
3904
+ this.apiVersion = options.apiVersion || "2021-09-01";
3905
+ this.operations = new OperationsImpl(this);
3906
+ this.skus = new SkusImpl(this);
3907
+ this.usageModels = new UsageModelsImpl(this);
3908
+ this.ascOperations = new AscOperationsImpl(this);
3909
+ this.caches = new CachesImpl(this);
3910
+ this.storageTargets = new StorageTargetsImpl(this);
3911
+ this.storageTargetOperations = new StorageTargetOperationsImpl(this);
3912
+ }
3913
+ }
3914
+
3915
+ exports.StorageCacheManagementClient = StorageCacheManagementClient;
3916
+ //# sourceMappingURL=index.js.map