@azure/arm-redisenterprisecache 3.1.0-beta.1 → 4.0.0-alpha.20250422.2

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 (555) hide show
  1. package/CHANGELOG.md +243 -0
  2. package/LICENSE +3 -3
  3. package/README.md +24 -18
  4. package/dist/browser/index.d.ts +5 -0
  5. package/{dist-esm/src → dist/browser}/index.d.ts.map +1 -1
  6. package/{dist-esm/src → dist/browser}/index.js +4 -4
  7. package/dist/browser/index.js.map +1 -0
  8. package/dist/browser/lroImpl.js.map +1 -0
  9. package/{dist-esm/src → dist/browser}/models/index.d.ts +517 -31
  10. package/dist/browser/models/index.d.ts.map +1 -0
  11. package/{dist-esm/src → dist/browser}/models/index.js +146 -2
  12. package/dist/browser/models/index.js.map +1 -0
  13. package/{dist-esm/src → dist/browser}/models/mappers.d.ts +21 -1
  14. package/dist/browser/models/mappers.d.ts.map +1 -0
  15. package/{dist-esm/src → dist/browser}/models/mappers.js +506 -5
  16. package/dist/browser/models/mappers.js.map +1 -0
  17. package/{dist-esm/src → dist/browser}/models/parameters.d.ts +2 -0
  18. package/dist/browser/models/parameters.d.ts.map +1 -0
  19. package/{dist-esm/src → dist/browser}/models/parameters.js +22 -5
  20. package/dist/browser/models/parameters.js.map +1 -0
  21. package/dist/browser/operations/accessPolicyAssignmentOperations.d.ts +110 -0
  22. package/dist/browser/operations/accessPolicyAssignmentOperations.d.ts.map +1 -0
  23. package/dist/browser/operations/accessPolicyAssignmentOperations.js +411 -0
  24. package/dist/browser/operations/accessPolicyAssignmentOperations.js.map +1 -0
  25. package/dist/browser/operations/databases.d.ts +283 -0
  26. package/dist/browser/operations/databases.d.ts.map +1 -0
  27. package/dist/browser/operations/databases.js +1152 -0
  28. package/dist/browser/operations/databases.js.map +1 -0
  29. package/dist/browser/operations/index.d.ts +8 -0
  30. package/dist/browser/operations/index.d.ts.map +1 -0
  31. package/dist/browser/operations/index.js +15 -0
  32. package/dist/browser/operations/index.js.map +1 -0
  33. package/{dist-esm/src → dist/browser}/operations/operations.d.ts +3 -3
  34. package/dist/browser/operations/operations.d.ts.map +1 -0
  35. package/{dist-esm/src → dist/browser}/operations/operations.js +3 -3
  36. package/dist/browser/operations/operations.js.map +1 -0
  37. package/{dist-esm/src → dist/browser}/operations/operationsStatus.d.ts +3 -3
  38. package/dist/browser/operations/operationsStatus.d.ts.map +1 -0
  39. package/{dist-esm/src → dist/browser}/operations/operationsStatus.js +2 -2
  40. package/dist/browser/operations/operationsStatus.js.map +1 -0
  41. package/{dist-esm/src → dist/browser}/operations/privateEndpointConnections.d.ts +31 -17
  42. package/dist/browser/operations/privateEndpointConnections.d.ts.map +1 -0
  43. package/{dist-esm/src → dist/browser}/operations/privateEndpointConnections.js +114 -108
  44. package/dist/browser/operations/privateEndpointConnections.js.map +1 -0
  45. package/{dist-esm/src → dist/browser}/operations/privateLinkResources.d.ts +11 -7
  46. package/dist/browser/operations/privateLinkResources.d.ts.map +1 -0
  47. package/{dist-esm/src → dist/browser}/operations/privateLinkResources.js +10 -6
  48. package/dist/browser/operations/privateLinkResources.js.map +1 -0
  49. package/{dist-esm/src → dist/browser}/operations/redisEnterprise.d.ts +46 -23
  50. package/dist/browser/operations/redisEnterprise.d.ts.map +1 -0
  51. package/{dist-esm/src → dist/browser}/operations/redisEnterprise.js +182 -148
  52. package/dist/browser/operations/redisEnterprise.js.map +1 -0
  53. package/dist/browser/operationsInterfaces/accessPolicyAssignmentOperations.d.ts +79 -0
  54. package/dist/browser/operationsInterfaces/accessPolicyAssignmentOperations.d.ts.map +1 -0
  55. package/dist/browser/operationsInterfaces/accessPolicyAssignmentOperations.js +9 -0
  56. package/dist/browser/operationsInterfaces/accessPolicyAssignmentOperations.js.map +1 -0
  57. package/{dist-esm/src → dist/browser}/operationsInterfaces/databases.d.ts +77 -33
  58. package/dist/browser/operationsInterfaces/databases.d.ts.map +1 -0
  59. package/dist/browser/operationsInterfaces/databases.js.map +1 -0
  60. package/dist/browser/operationsInterfaces/index.d.ts +8 -0
  61. package/dist/browser/operationsInterfaces/index.d.ts.map +1 -0
  62. package/dist/browser/operationsInterfaces/index.js +15 -0
  63. package/dist/browser/operationsInterfaces/index.js.map +1 -0
  64. package/{dist-esm/src → dist/browser}/operationsInterfaces/operations.d.ts +1 -1
  65. package/{dist-esm/src → dist/browser}/operationsInterfaces/operations.d.ts.map +1 -1
  66. package/dist/browser/operationsInterfaces/operations.js.map +1 -0
  67. package/{dist-esm/src → dist/browser}/operationsInterfaces/operationsStatus.d.ts +1 -1
  68. package/{dist-esm/src → dist/browser}/operationsInterfaces/operationsStatus.d.ts.map +1 -1
  69. package/dist/browser/operationsInterfaces/operationsStatus.js.map +1 -0
  70. package/{dist-esm/src → dist/browser}/operationsInterfaces/privateEndpointConnections.d.ts +25 -13
  71. package/dist/browser/operationsInterfaces/privateEndpointConnections.d.ts.map +1 -0
  72. package/dist/browser/operationsInterfaces/privateEndpointConnections.js.map +1 -0
  73. package/{dist-esm/src → dist/browser}/operationsInterfaces/privateLinkResources.d.ts +5 -3
  74. package/dist/browser/operationsInterfaces/privateLinkResources.d.ts.map +1 -0
  75. package/dist/browser/operationsInterfaces/privateLinkResources.js.map +1 -0
  76. package/{dist-esm/src → dist/browser}/operationsInterfaces/redisEnterprise.d.ts +42 -19
  77. package/dist/browser/operationsInterfaces/redisEnterprise.d.ts.map +1 -0
  78. package/dist/browser/operationsInterfaces/redisEnterprise.js.map +1 -0
  79. package/dist/browser/package.json +3 -0
  80. package/dist/browser/pagingHelper.js.map +1 -0
  81. package/{dist-esm/src → dist/browser}/redisEnterpriseManagementClient.d.ts +3 -2
  82. package/dist/browser/redisEnterpriseManagementClient.d.ts.map +1 -0
  83. package/{dist-esm/src → dist/browser}/redisEnterpriseManagementClient.js +19 -20
  84. package/dist/browser/redisEnterpriseManagementClient.js.map +1 -0
  85. package/dist/commonjs/index.d.ts +5 -0
  86. package/dist/commonjs/index.d.ts.map +1 -0
  87. package/dist/commonjs/index.js +19 -0
  88. package/dist/commonjs/index.js.map +1 -0
  89. package/dist/commonjs/lroImpl.d.ts +11 -0
  90. package/dist/commonjs/lroImpl.d.ts.map +1 -0
  91. package/dist/commonjs/lroImpl.js +24 -0
  92. package/dist/commonjs/lroImpl.js.map +1 -0
  93. package/{types/arm-redisenterprisecache.d.ts → dist/commonjs/models/index.d.ts} +1624 -1671
  94. package/dist/commonjs/models/index.d.ts.map +1 -0
  95. package/dist/commonjs/models/index.js +367 -0
  96. package/dist/commonjs/models/index.js.map +1 -0
  97. package/dist/commonjs/models/mappers.d.ts +65 -0
  98. package/dist/commonjs/models/mappers.d.ts.map +1 -0
  99. package/dist/commonjs/models/mappers.js +1788 -0
  100. package/dist/commonjs/models/mappers.js.map +1 -0
  101. package/dist/commonjs/models/parameters.d.ts +27 -0
  102. package/dist/commonjs/models/parameters.d.ts.map +1 -0
  103. package/dist/commonjs/models/parameters.js +217 -0
  104. package/dist/commonjs/models/parameters.js.map +1 -0
  105. package/dist/commonjs/operations/accessPolicyAssignmentOperations.d.ts +110 -0
  106. package/dist/commonjs/operations/accessPolicyAssignmentOperations.d.ts.map +1 -0
  107. package/dist/commonjs/operations/accessPolicyAssignmentOperations.js +415 -0
  108. package/dist/commonjs/operations/accessPolicyAssignmentOperations.js.map +1 -0
  109. package/dist/commonjs/operations/databases.d.ts +283 -0
  110. package/dist/commonjs/operations/databases.d.ts.map +1 -0
  111. package/dist/commonjs/operations/databases.js +1156 -0
  112. package/dist/commonjs/operations/databases.js.map +1 -0
  113. package/dist/commonjs/operations/index.d.ts +8 -0
  114. package/dist/commonjs/operations/index.d.ts.map +1 -0
  115. package/dist/commonjs/operations/index.js +18 -0
  116. package/dist/commonjs/operations/index.js.map +1 -0
  117. package/dist/commonjs/operations/operations.d.ts +32 -0
  118. package/dist/commonjs/operations/operations.d.ts.map +1 -0
  119. package/dist/commonjs/operations/operations.js +137 -0
  120. package/dist/commonjs/operations/operations.js.map +1 -0
  121. package/dist/commonjs/operations/operationsStatus.d.ts +20 -0
  122. package/dist/commonjs/operations/operationsStatus.d.ts.map +1 -0
  123. package/dist/commonjs/operations/operationsStatus.js +58 -0
  124. package/dist/commonjs/operations/operationsStatus.js.map +1 -0
  125. package/dist/commonjs/operations/privateEndpointConnections.d.ts +94 -0
  126. package/dist/commonjs/operations/privateEndpointConnections.d.ts.map +1 -0
  127. package/dist/commonjs/operations/privateEndpointConnections.js +345 -0
  128. package/dist/commonjs/operations/privateEndpointConnections.js.map +1 -0
  129. package/dist/commonjs/operations/privateLinkResources.d.ts +34 -0
  130. package/dist/commonjs/operations/privateLinkResources.d.ts.map +1 -0
  131. package/dist/commonjs/operations/privateLinkResources.js +113 -0
  132. package/dist/commonjs/operations/privateLinkResources.js.map +1 -0
  133. package/dist/commonjs/operations/redisEnterprise.d.ts +130 -0
  134. package/dist/commonjs/operations/redisEnterprise.d.ts.map +1 -0
  135. package/dist/commonjs/operations/redisEnterprise.js +584 -0
  136. package/dist/commonjs/operations/redisEnterprise.js.map +1 -0
  137. package/dist/commonjs/operationsInterfaces/accessPolicyAssignmentOperations.d.ts +79 -0
  138. package/dist/commonjs/operationsInterfaces/accessPolicyAssignmentOperations.d.ts.map +1 -0
  139. package/dist/commonjs/operationsInterfaces/accessPolicyAssignmentOperations.js +10 -0
  140. package/dist/commonjs/operationsInterfaces/accessPolicyAssignmentOperations.js.map +1 -0
  141. package/{dist-esm/src/operations → dist/commonjs/operationsInterfaces}/databases.d.ts +79 -60
  142. package/dist/commonjs/operationsInterfaces/databases.d.ts.map +1 -0
  143. package/dist/commonjs/operationsInterfaces/databases.js +10 -0
  144. package/dist/commonjs/operationsInterfaces/databases.js.map +1 -0
  145. package/dist/commonjs/operationsInterfaces/index.d.ts +8 -0
  146. package/dist/commonjs/operationsInterfaces/index.d.ts.map +1 -0
  147. package/dist/commonjs/operationsInterfaces/index.js +18 -0
  148. package/dist/commonjs/operationsInterfaces/index.js.map +1 -0
  149. package/dist/commonjs/operationsInterfaces/operations.d.ts +11 -0
  150. package/dist/commonjs/operationsInterfaces/operations.d.ts.map +1 -0
  151. package/dist/commonjs/operationsInterfaces/operations.js +10 -0
  152. package/dist/commonjs/operationsInterfaces/operations.js.map +1 -0
  153. package/dist/commonjs/operationsInterfaces/operationsStatus.d.ts +12 -0
  154. package/dist/commonjs/operationsInterfaces/operationsStatus.d.ts.map +1 -0
  155. package/dist/commonjs/operationsInterfaces/operationsStatus.js +10 -0
  156. package/dist/commonjs/operationsInterfaces/operationsStatus.js.map +1 -0
  157. package/dist/commonjs/operationsInterfaces/privateEndpointConnections.d.ts +75 -0
  158. package/dist/commonjs/operationsInterfaces/privateEndpointConnections.d.ts.map +1 -0
  159. package/dist/commonjs/operationsInterfaces/privateEndpointConnections.js +10 -0
  160. package/dist/commonjs/operationsInterfaces/privateEndpointConnections.js.map +1 -0
  161. package/dist/commonjs/operationsInterfaces/privateLinkResources.d.ts +15 -0
  162. package/dist/commonjs/operationsInterfaces/privateLinkResources.d.ts.map +1 -0
  163. package/dist/commonjs/operationsInterfaces/privateLinkResources.js +10 -0
  164. package/dist/commonjs/operationsInterfaces/privateLinkResources.js.map +1 -0
  165. package/dist/commonjs/operationsInterfaces/redisEnterprise.d.ts +94 -0
  166. package/dist/commonjs/operationsInterfaces/redisEnterprise.d.ts.map +1 -0
  167. package/dist/commonjs/operationsInterfaces/redisEnterprise.js +10 -0
  168. package/dist/commonjs/operationsInterfaces/redisEnterprise.js.map +1 -0
  169. package/dist/commonjs/package.json +3 -0
  170. package/dist/commonjs/pagingHelper.d.ts +13 -0
  171. package/dist/commonjs/pagingHelper.d.ts.map +1 -0
  172. package/dist/commonjs/pagingHelper.js +36 -0
  173. package/dist/commonjs/pagingHelper.js.map +1 -0
  174. package/dist/commonjs/redisEnterpriseManagementClient.d.ts +26 -0
  175. package/dist/commonjs/redisEnterpriseManagementClient.d.ts.map +1 -0
  176. package/dist/commonjs/redisEnterpriseManagementClient.js +109 -0
  177. package/dist/commonjs/redisEnterpriseManagementClient.js.map +1 -0
  178. package/{types → dist/commonjs}/tsdoc-metadata.json +1 -1
  179. package/dist/esm/index.d.ts +5 -0
  180. package/dist/esm/index.d.ts.map +1 -0
  181. package/{src/index.ts → dist/esm/index.js} +5 -5
  182. package/dist/esm/index.js.map +1 -0
  183. package/dist/esm/lroImpl.d.ts +11 -0
  184. package/dist/esm/lroImpl.d.ts.map +1 -0
  185. package/dist/esm/lroImpl.js +21 -0
  186. package/dist/esm/lroImpl.js.map +1 -0
  187. package/dist/esm/models/index.d.ts +1624 -0
  188. package/dist/esm/models/index.d.ts.map +1 -0
  189. package/dist/esm/models/index.js +364 -0
  190. package/dist/esm/models/index.js.map +1 -0
  191. package/dist/esm/models/mappers.d.ts +65 -0
  192. package/dist/esm/models/mappers.d.ts.map +1 -0
  193. package/dist/esm/models/mappers.js +1784 -0
  194. package/dist/esm/models/mappers.js.map +1 -0
  195. package/dist/esm/models/parameters.d.ts +27 -0
  196. package/dist/esm/models/parameters.d.ts.map +1 -0
  197. package/dist/esm/models/parameters.js +214 -0
  198. package/dist/esm/models/parameters.js.map +1 -0
  199. package/dist/esm/operations/accessPolicyAssignmentOperations.d.ts +110 -0
  200. package/dist/esm/operations/accessPolicyAssignmentOperations.d.ts.map +1 -0
  201. package/dist/esm/operations/accessPolicyAssignmentOperations.js +411 -0
  202. package/dist/esm/operations/accessPolicyAssignmentOperations.js.map +1 -0
  203. package/dist/esm/operations/databases.d.ts +283 -0
  204. package/dist/esm/operations/databases.d.ts.map +1 -0
  205. package/dist/esm/operations/databases.js +1152 -0
  206. package/dist/esm/operations/databases.js.map +1 -0
  207. package/dist/esm/operations/index.d.ts +8 -0
  208. package/dist/esm/operations/index.d.ts.map +1 -0
  209. package/dist/esm/operations/index.js +15 -0
  210. package/dist/esm/operations/index.js.map +1 -0
  211. package/dist/esm/operations/operations.d.ts +32 -0
  212. package/dist/esm/operations/operations.d.ts.map +1 -0
  213. package/dist/esm/operations/operations.js +133 -0
  214. package/dist/esm/operations/operations.js.map +1 -0
  215. package/dist/esm/operations/operationsStatus.d.ts +20 -0
  216. package/dist/esm/operations/operationsStatus.d.ts.map +1 -0
  217. package/dist/esm/operations/operationsStatus.js +53 -0
  218. package/dist/esm/operations/operationsStatus.js.map +1 -0
  219. package/dist/esm/operations/privateEndpointConnections.d.ts +94 -0
  220. package/dist/esm/operations/privateEndpointConnections.d.ts.map +1 -0
  221. package/dist/esm/operations/privateEndpointConnections.js +341 -0
  222. package/dist/esm/operations/privateEndpointConnections.js.map +1 -0
  223. package/dist/esm/operations/privateLinkResources.d.ts +34 -0
  224. package/dist/esm/operations/privateLinkResources.d.ts.map +1 -0
  225. package/dist/esm/operations/privateLinkResources.js +109 -0
  226. package/dist/esm/operations/privateLinkResources.js.map +1 -0
  227. package/dist/esm/operations/redisEnterprise.d.ts +130 -0
  228. package/dist/esm/operations/redisEnterprise.d.ts.map +1 -0
  229. package/dist/esm/operations/redisEnterprise.js +580 -0
  230. package/dist/esm/operations/redisEnterprise.js.map +1 -0
  231. package/dist/esm/operationsInterfaces/accessPolicyAssignmentOperations.d.ts +79 -0
  232. package/dist/esm/operationsInterfaces/accessPolicyAssignmentOperations.d.ts.map +1 -0
  233. package/dist/esm/operationsInterfaces/accessPolicyAssignmentOperations.js +9 -0
  234. package/dist/esm/operationsInterfaces/accessPolicyAssignmentOperations.js.map +1 -0
  235. package/dist/esm/operationsInterfaces/databases.d.ts +254 -0
  236. package/dist/esm/operationsInterfaces/databases.d.ts.map +1 -0
  237. package/dist/esm/operationsInterfaces/databases.js +9 -0
  238. package/dist/esm/operationsInterfaces/databases.js.map +1 -0
  239. package/dist/esm/operationsInterfaces/index.d.ts +8 -0
  240. package/dist/esm/operationsInterfaces/index.d.ts.map +1 -0
  241. package/dist/esm/operationsInterfaces/index.js +15 -0
  242. package/dist/esm/operationsInterfaces/index.js.map +1 -0
  243. package/dist/esm/operationsInterfaces/operations.d.ts +11 -0
  244. package/dist/esm/operationsInterfaces/operations.d.ts.map +1 -0
  245. package/dist/esm/operationsInterfaces/operations.js +9 -0
  246. package/dist/esm/operationsInterfaces/operations.js.map +1 -0
  247. package/dist/esm/operationsInterfaces/operationsStatus.d.ts +12 -0
  248. package/dist/esm/operationsInterfaces/operationsStatus.d.ts.map +1 -0
  249. package/dist/esm/operationsInterfaces/operationsStatus.js +9 -0
  250. package/dist/esm/operationsInterfaces/operationsStatus.js.map +1 -0
  251. package/dist/esm/operationsInterfaces/privateEndpointConnections.d.ts +75 -0
  252. package/dist/esm/operationsInterfaces/privateEndpointConnections.d.ts.map +1 -0
  253. package/dist/esm/operationsInterfaces/privateEndpointConnections.js +9 -0
  254. package/dist/esm/operationsInterfaces/privateEndpointConnections.js.map +1 -0
  255. package/dist/esm/operationsInterfaces/privateLinkResources.d.ts +15 -0
  256. package/dist/esm/operationsInterfaces/privateLinkResources.d.ts.map +1 -0
  257. package/dist/esm/operationsInterfaces/privateLinkResources.js +9 -0
  258. package/dist/esm/operationsInterfaces/privateLinkResources.js.map +1 -0
  259. package/dist/esm/operationsInterfaces/redisEnterprise.d.ts +94 -0
  260. package/dist/esm/operationsInterfaces/redisEnterprise.d.ts.map +1 -0
  261. package/dist/esm/operationsInterfaces/redisEnterprise.js +9 -0
  262. package/dist/esm/operationsInterfaces/redisEnterprise.js.map +1 -0
  263. package/dist/esm/package.json +3 -0
  264. package/dist/esm/pagingHelper.d.ts +13 -0
  265. package/dist/esm/pagingHelper.d.ts.map +1 -0
  266. package/dist/esm/pagingHelper.js +32 -0
  267. package/dist/esm/pagingHelper.js.map +1 -0
  268. package/dist/esm/redisEnterpriseManagementClient.d.ts +26 -0
  269. package/dist/esm/redisEnterpriseManagementClient.d.ts.map +1 -0
  270. package/dist/esm/redisEnterpriseManagementClient.js +104 -0
  271. package/dist/esm/redisEnterpriseManagementClient.js.map +1 -0
  272. package/dist/react-native/index.d.ts +5 -0
  273. package/dist/react-native/index.d.ts.map +1 -0
  274. package/dist/react-native/index.js +13 -0
  275. package/dist/react-native/index.js.map +1 -0
  276. package/dist/react-native/lroImpl.d.ts +11 -0
  277. package/dist/react-native/lroImpl.d.ts.map +1 -0
  278. package/dist/react-native/lroImpl.js +21 -0
  279. package/dist/react-native/lroImpl.js.map +1 -0
  280. package/dist/react-native/models/index.d.ts +1624 -0
  281. package/dist/react-native/models/index.d.ts.map +1 -0
  282. package/dist/react-native/models/index.js +364 -0
  283. package/dist/react-native/models/index.js.map +1 -0
  284. package/dist/react-native/models/mappers.d.ts +65 -0
  285. package/dist/react-native/models/mappers.d.ts.map +1 -0
  286. package/dist/react-native/models/mappers.js +1784 -0
  287. package/dist/react-native/models/mappers.js.map +1 -0
  288. package/dist/react-native/models/parameters.d.ts +27 -0
  289. package/dist/react-native/models/parameters.d.ts.map +1 -0
  290. package/dist/react-native/models/parameters.js +214 -0
  291. package/dist/react-native/models/parameters.js.map +1 -0
  292. package/dist/react-native/operations/accessPolicyAssignmentOperations.d.ts +110 -0
  293. package/dist/react-native/operations/accessPolicyAssignmentOperations.d.ts.map +1 -0
  294. package/dist/react-native/operations/accessPolicyAssignmentOperations.js +411 -0
  295. package/dist/react-native/operations/accessPolicyAssignmentOperations.js.map +1 -0
  296. package/dist/react-native/operations/databases.d.ts +283 -0
  297. package/dist/react-native/operations/databases.d.ts.map +1 -0
  298. package/dist/react-native/operations/databases.js +1152 -0
  299. package/dist/react-native/operations/databases.js.map +1 -0
  300. package/dist/react-native/operations/index.d.ts +8 -0
  301. package/dist/react-native/operations/index.d.ts.map +1 -0
  302. package/dist/react-native/operations/index.js +15 -0
  303. package/dist/react-native/operations/index.js.map +1 -0
  304. package/dist/react-native/operations/operations.d.ts +32 -0
  305. package/dist/react-native/operations/operations.d.ts.map +1 -0
  306. package/dist/react-native/operations/operations.js +133 -0
  307. package/dist/react-native/operations/operations.js.map +1 -0
  308. package/dist/react-native/operations/operationsStatus.d.ts +20 -0
  309. package/dist/react-native/operations/operationsStatus.d.ts.map +1 -0
  310. package/dist/react-native/operations/operationsStatus.js +53 -0
  311. package/dist/react-native/operations/operationsStatus.js.map +1 -0
  312. package/dist/react-native/operations/privateEndpointConnections.d.ts +94 -0
  313. package/dist/react-native/operations/privateEndpointConnections.d.ts.map +1 -0
  314. package/dist/react-native/operations/privateEndpointConnections.js +341 -0
  315. package/dist/react-native/operations/privateEndpointConnections.js.map +1 -0
  316. package/dist/react-native/operations/privateLinkResources.d.ts +34 -0
  317. package/dist/react-native/operations/privateLinkResources.d.ts.map +1 -0
  318. package/dist/react-native/operations/privateLinkResources.js +109 -0
  319. package/dist/react-native/operations/privateLinkResources.js.map +1 -0
  320. package/dist/react-native/operations/redisEnterprise.d.ts +130 -0
  321. package/dist/react-native/operations/redisEnterprise.d.ts.map +1 -0
  322. package/dist/react-native/operations/redisEnterprise.js +580 -0
  323. package/dist/react-native/operations/redisEnterprise.js.map +1 -0
  324. package/dist/react-native/operationsInterfaces/accessPolicyAssignmentOperations.d.ts +79 -0
  325. package/dist/react-native/operationsInterfaces/accessPolicyAssignmentOperations.d.ts.map +1 -0
  326. package/dist/react-native/operationsInterfaces/accessPolicyAssignmentOperations.js +9 -0
  327. package/dist/react-native/operationsInterfaces/accessPolicyAssignmentOperations.js.map +1 -0
  328. package/dist/react-native/operationsInterfaces/databases.d.ts +254 -0
  329. package/dist/react-native/operationsInterfaces/databases.d.ts.map +1 -0
  330. package/dist/react-native/operationsInterfaces/databases.js +9 -0
  331. package/dist/react-native/operationsInterfaces/databases.js.map +1 -0
  332. package/dist/react-native/operationsInterfaces/index.d.ts +8 -0
  333. package/dist/react-native/operationsInterfaces/index.d.ts.map +1 -0
  334. package/dist/react-native/operationsInterfaces/index.js +15 -0
  335. package/dist/react-native/operationsInterfaces/index.js.map +1 -0
  336. package/dist/react-native/operationsInterfaces/operations.d.ts +11 -0
  337. package/dist/react-native/operationsInterfaces/operations.d.ts.map +1 -0
  338. package/dist/react-native/operationsInterfaces/operations.js +9 -0
  339. package/dist/react-native/operationsInterfaces/operations.js.map +1 -0
  340. package/dist/react-native/operationsInterfaces/operationsStatus.d.ts +12 -0
  341. package/dist/react-native/operationsInterfaces/operationsStatus.d.ts.map +1 -0
  342. package/dist/react-native/operationsInterfaces/operationsStatus.js +9 -0
  343. package/dist/react-native/operationsInterfaces/operationsStatus.js.map +1 -0
  344. package/dist/react-native/operationsInterfaces/privateEndpointConnections.d.ts +75 -0
  345. package/dist/react-native/operationsInterfaces/privateEndpointConnections.d.ts.map +1 -0
  346. package/dist/react-native/operationsInterfaces/privateEndpointConnections.js +9 -0
  347. package/dist/react-native/operationsInterfaces/privateEndpointConnections.js.map +1 -0
  348. package/dist/react-native/operationsInterfaces/privateLinkResources.d.ts +15 -0
  349. package/dist/react-native/operationsInterfaces/privateLinkResources.d.ts.map +1 -0
  350. package/dist/react-native/operationsInterfaces/privateLinkResources.js +9 -0
  351. package/dist/react-native/operationsInterfaces/privateLinkResources.js.map +1 -0
  352. package/dist/react-native/operationsInterfaces/redisEnterprise.d.ts +94 -0
  353. package/dist/react-native/operationsInterfaces/redisEnterprise.d.ts.map +1 -0
  354. package/dist/react-native/operationsInterfaces/redisEnterprise.js +9 -0
  355. package/dist/react-native/operationsInterfaces/redisEnterprise.js.map +1 -0
  356. package/dist/react-native/package.json +3 -0
  357. package/dist/react-native/pagingHelper.d.ts +13 -0
  358. package/dist/react-native/pagingHelper.d.ts.map +1 -0
  359. package/dist/react-native/pagingHelper.js +32 -0
  360. package/dist/react-native/pagingHelper.js.map +1 -0
  361. package/dist/react-native/redisEnterpriseManagementClient.d.ts +26 -0
  362. package/dist/react-native/redisEnterpriseManagementClient.d.ts.map +1 -0
  363. package/dist/react-native/redisEnterpriseManagementClient.js +104 -0
  364. package/dist/react-native/redisEnterpriseManagementClient.js.map +1 -0
  365. package/package.json +81 -55
  366. package/review/arm-redisenterprisecache.api.md +294 -6
  367. package/LICENSE.txt +0 -21
  368. package/dist/index.js +0 -4221
  369. package/dist/index.js.map +0 -1
  370. package/dist/index.min.js +0 -1
  371. package/dist/index.min.js.map +0 -1
  372. package/dist-esm/samples-dev/databasesCreateSample.d.ts +0 -2
  373. package/dist-esm/samples-dev/databasesCreateSample.d.ts.map +0 -1
  374. package/dist-esm/samples-dev/databasesCreateSample.js +0 -88
  375. package/dist-esm/samples-dev/databasesCreateSample.js.map +0 -1
  376. package/dist-esm/samples-dev/databasesDeleteSample.d.ts +0 -2
  377. package/dist-esm/samples-dev/databasesDeleteSample.d.ts.map +0 -1
  378. package/dist-esm/samples-dev/databasesDeleteSample.js +0 -39
  379. package/dist-esm/samples-dev/databasesDeleteSample.js.map +0 -1
  380. package/dist-esm/samples-dev/databasesExportSample.d.ts +0 -2
  381. package/dist-esm/samples-dev/databasesExportSample.d.ts.map +0 -1
  382. package/dist-esm/samples-dev/databasesExportSample.js +0 -42
  383. package/dist-esm/samples-dev/databasesExportSample.js.map +0 -1
  384. package/dist-esm/samples-dev/databasesFlushSample.d.ts +0 -2
  385. package/dist-esm/samples-dev/databasesFlushSample.d.ts.map +0 -1
  386. package/dist-esm/samples-dev/databasesFlushSample.js +0 -44
  387. package/dist-esm/samples-dev/databasesFlushSample.js.map +0 -1
  388. package/dist-esm/samples-dev/databasesForceLinkToReplicationGroupSample.d.ts +0 -2
  389. package/dist-esm/samples-dev/databasesForceLinkToReplicationGroupSample.d.ts.map +0 -1
  390. package/dist-esm/samples-dev/databasesForceLinkToReplicationGroupSample.js +0 -51
  391. package/dist-esm/samples-dev/databasesForceLinkToReplicationGroupSample.js.map +0 -1
  392. package/dist-esm/samples-dev/databasesForceUnlinkSample.d.ts +0 -2
  393. package/dist-esm/samples-dev/databasesForceUnlinkSample.d.ts.map +0 -1
  394. package/dist-esm/samples-dev/databasesForceUnlinkSample.js +0 -44
  395. package/dist-esm/samples-dev/databasesForceUnlinkSample.js.map +0 -1
  396. package/dist-esm/samples-dev/databasesGetSample.d.ts +0 -2
  397. package/dist-esm/samples-dev/databasesGetSample.d.ts.map +0 -1
  398. package/dist-esm/samples-dev/databasesGetSample.js +0 -39
  399. package/dist-esm/samples-dev/databasesGetSample.js.map +0 -1
  400. package/dist-esm/samples-dev/databasesImportSample.d.ts +0 -2
  401. package/dist-esm/samples-dev/databasesImportSample.d.ts.map +0 -1
  402. package/dist-esm/samples-dev/databasesImportSample.js +0 -45
  403. package/dist-esm/samples-dev/databasesImportSample.js.map +0 -1
  404. package/dist-esm/samples-dev/databasesListByClusterSample.d.ts +0 -2
  405. package/dist-esm/samples-dev/databasesListByClusterSample.d.ts.map +0 -1
  406. package/dist-esm/samples-dev/databasesListByClusterSample.js +0 -54
  407. package/dist-esm/samples-dev/databasesListByClusterSample.js.map +0 -1
  408. package/dist-esm/samples-dev/databasesListKeysSample.d.ts +0 -2
  409. package/dist-esm/samples-dev/databasesListKeysSample.d.ts.map +0 -1
  410. package/dist-esm/samples-dev/databasesListKeysSample.js +0 -39
  411. package/dist-esm/samples-dev/databasesListKeysSample.js.map +0 -1
  412. package/dist-esm/samples-dev/databasesRegenerateKeySample.d.ts +0 -2
  413. package/dist-esm/samples-dev/databasesRegenerateKeySample.d.ts.map +0 -1
  414. package/dist-esm/samples-dev/databasesRegenerateKeySample.js +0 -40
  415. package/dist-esm/samples-dev/databasesRegenerateKeySample.js.map +0 -1
  416. package/dist-esm/samples-dev/databasesUpdateSample.d.ts +0 -2
  417. package/dist-esm/samples-dev/databasesUpdateSample.d.ts.map +0 -1
  418. package/dist-esm/samples-dev/databasesUpdateSample.js +0 -44
  419. package/dist-esm/samples-dev/databasesUpdateSample.js.map +0 -1
  420. package/dist-esm/samples-dev/databasesUpgradeDbRedisVersionSample.d.ts +0 -2
  421. package/dist-esm/samples-dev/databasesUpgradeDbRedisVersionSample.d.ts.map +0 -1
  422. package/dist-esm/samples-dev/databasesUpgradeDbRedisVersionSample.js +0 -39
  423. package/dist-esm/samples-dev/databasesUpgradeDbRedisVersionSample.js.map +0 -1
  424. package/dist-esm/samples-dev/operationsListSample.d.ts +0 -2
  425. package/dist-esm/samples-dev/operationsListSample.d.ts.map +0 -1
  426. package/dist-esm/samples-dev/operationsListSample.js +0 -53
  427. package/dist-esm/samples-dev/operationsListSample.js.map +0 -1
  428. package/dist-esm/samples-dev/operationsStatusGetSample.d.ts +0 -2
  429. package/dist-esm/samples-dev/operationsStatusGetSample.d.ts.map +0 -1
  430. package/dist-esm/samples-dev/operationsStatusGetSample.js +0 -38
  431. package/dist-esm/samples-dev/operationsStatusGetSample.js.map +0 -1
  432. package/dist-esm/samples-dev/privateEndpointConnectionsDeleteSample.d.ts +0 -2
  433. package/dist-esm/samples-dev/privateEndpointConnectionsDeleteSample.d.ts.map +0 -1
  434. package/dist-esm/samples-dev/privateEndpointConnectionsDeleteSample.js +0 -39
  435. package/dist-esm/samples-dev/privateEndpointConnectionsDeleteSample.js.map +0 -1
  436. package/dist-esm/samples-dev/privateEndpointConnectionsGetSample.d.ts +0 -2
  437. package/dist-esm/samples-dev/privateEndpointConnectionsGetSample.d.ts.map +0 -1
  438. package/dist-esm/samples-dev/privateEndpointConnectionsGetSample.js +0 -39
  439. package/dist-esm/samples-dev/privateEndpointConnectionsGetSample.js.map +0 -1
  440. package/dist-esm/samples-dev/privateEndpointConnectionsListSample.d.ts +0 -2
  441. package/dist-esm/samples-dev/privateEndpointConnectionsListSample.d.ts.map +0 -1
  442. package/dist-esm/samples-dev/privateEndpointConnectionsListSample.js +0 -54
  443. package/dist-esm/samples-dev/privateEndpointConnectionsListSample.js.map +0 -1
  444. package/dist-esm/samples-dev/privateEndpointConnectionsPutSample.d.ts +0 -2
  445. package/dist-esm/samples-dev/privateEndpointConnectionsPutSample.d.ts.map +0 -1
  446. package/dist-esm/samples-dev/privateEndpointConnectionsPutSample.js +0 -45
  447. package/dist-esm/samples-dev/privateEndpointConnectionsPutSample.js.map +0 -1
  448. package/dist-esm/samples-dev/privateLinkResourcesListByClusterSample.d.ts +0 -2
  449. package/dist-esm/samples-dev/privateLinkResourcesListByClusterSample.d.ts.map +0 -1
  450. package/dist-esm/samples-dev/privateLinkResourcesListByClusterSample.js +0 -54
  451. package/dist-esm/samples-dev/privateLinkResourcesListByClusterSample.js.map +0 -1
  452. package/dist-esm/samples-dev/redisEnterpriseCreateSample.d.ts +0 -2
  453. package/dist-esm/samples-dev/redisEnterpriseCreateSample.d.ts.map +0 -1
  454. package/dist-esm/samples-dev/redisEnterpriseCreateSample.js +0 -60
  455. package/dist-esm/samples-dev/redisEnterpriseCreateSample.js.map +0 -1
  456. package/dist-esm/samples-dev/redisEnterpriseDeleteSample.d.ts +0 -2
  457. package/dist-esm/samples-dev/redisEnterpriseDeleteSample.d.ts.map +0 -1
  458. package/dist-esm/samples-dev/redisEnterpriseDeleteSample.js +0 -38
  459. package/dist-esm/samples-dev/redisEnterpriseDeleteSample.js.map +0 -1
  460. package/dist-esm/samples-dev/redisEnterpriseGetSample.d.ts +0 -2
  461. package/dist-esm/samples-dev/redisEnterpriseGetSample.d.ts.map +0 -1
  462. package/dist-esm/samples-dev/redisEnterpriseGetSample.js +0 -38
  463. package/dist-esm/samples-dev/redisEnterpriseGetSample.js.map +0 -1
  464. package/dist-esm/samples-dev/redisEnterpriseListByResourceGroupSample.d.ts +0 -2
  465. package/dist-esm/samples-dev/redisEnterpriseListByResourceGroupSample.d.ts.map +0 -1
  466. package/dist-esm/samples-dev/redisEnterpriseListByResourceGroupSample.js +0 -53
  467. package/dist-esm/samples-dev/redisEnterpriseListByResourceGroupSample.js.map +0 -1
  468. package/dist-esm/samples-dev/redisEnterpriseListSample.d.ts +0 -2
  469. package/dist-esm/samples-dev/redisEnterpriseListSample.d.ts.map +0 -1
  470. package/dist-esm/samples-dev/redisEnterpriseListSample.js +0 -52
  471. package/dist-esm/samples-dev/redisEnterpriseListSample.js.map +0 -1
  472. package/dist-esm/samples-dev/redisEnterpriseUpdateSample.d.ts +0 -2
  473. package/dist-esm/samples-dev/redisEnterpriseUpdateSample.d.ts.map +0 -1
  474. package/dist-esm/samples-dev/redisEnterpriseUpdateSample.js +0 -43
  475. package/dist-esm/samples-dev/redisEnterpriseUpdateSample.js.map +0 -1
  476. package/dist-esm/src/index.d.ts +0 -5
  477. package/dist-esm/src/index.js.map +0 -1
  478. package/dist-esm/src/lroImpl.js.map +0 -1
  479. package/dist-esm/src/models/index.d.ts.map +0 -1
  480. package/dist-esm/src/models/index.js.map +0 -1
  481. package/dist-esm/src/models/mappers.d.ts.map +0 -1
  482. package/dist-esm/src/models/mappers.js.map +0 -1
  483. package/dist-esm/src/models/parameters.d.ts.map +0 -1
  484. package/dist-esm/src/models/parameters.js.map +0 -1
  485. package/dist-esm/src/operations/databases.d.ts.map +0 -1
  486. package/dist-esm/src/operations/databases.js +0 -1150
  487. package/dist-esm/src/operations/databases.js.map +0 -1
  488. package/dist-esm/src/operations/index.d.ts +0 -7
  489. package/dist-esm/src/operations/index.d.ts.map +0 -1
  490. package/dist-esm/src/operations/index.js +0 -14
  491. package/dist-esm/src/operations/index.js.map +0 -1
  492. package/dist-esm/src/operations/operations.d.ts.map +0 -1
  493. package/dist-esm/src/operations/operations.js.map +0 -1
  494. package/dist-esm/src/operations/operationsStatus.d.ts.map +0 -1
  495. package/dist-esm/src/operations/operationsStatus.js.map +0 -1
  496. package/dist-esm/src/operations/privateEndpointConnections.d.ts.map +0 -1
  497. package/dist-esm/src/operations/privateEndpointConnections.js.map +0 -1
  498. package/dist-esm/src/operations/privateLinkResources.d.ts.map +0 -1
  499. package/dist-esm/src/operations/privateLinkResources.js.map +0 -1
  500. package/dist-esm/src/operations/redisEnterprise.d.ts.map +0 -1
  501. package/dist-esm/src/operations/redisEnterprise.js.map +0 -1
  502. package/dist-esm/src/operationsInterfaces/databases.d.ts.map +0 -1
  503. package/dist-esm/src/operationsInterfaces/databases.js.map +0 -1
  504. package/dist-esm/src/operationsInterfaces/index.d.ts +0 -7
  505. package/dist-esm/src/operationsInterfaces/index.d.ts.map +0 -1
  506. package/dist-esm/src/operationsInterfaces/index.js +0 -14
  507. package/dist-esm/src/operationsInterfaces/index.js.map +0 -1
  508. package/dist-esm/src/operationsInterfaces/operations.js.map +0 -1
  509. package/dist-esm/src/operationsInterfaces/operationsStatus.js.map +0 -1
  510. package/dist-esm/src/operationsInterfaces/privateEndpointConnections.d.ts.map +0 -1
  511. package/dist-esm/src/operationsInterfaces/privateEndpointConnections.js.map +0 -1
  512. package/dist-esm/src/operationsInterfaces/privateLinkResources.d.ts.map +0 -1
  513. package/dist-esm/src/operationsInterfaces/privateLinkResources.js.map +0 -1
  514. package/dist-esm/src/operationsInterfaces/redisEnterprise.d.ts.map +0 -1
  515. package/dist-esm/src/operationsInterfaces/redisEnterprise.js.map +0 -1
  516. package/dist-esm/src/pagingHelper.js.map +0 -1
  517. package/dist-esm/src/redisEnterpriseManagementClient.d.ts.map +0 -1
  518. package/dist-esm/src/redisEnterpriseManagementClient.js.map +0 -1
  519. package/dist-esm/test/redisenterprisecache_test.spec.d.ts +0 -4
  520. package/dist-esm/test/redisenterprisecache_test.spec.d.ts.map +0 -1
  521. package/dist-esm/test/redisenterprisecache_test.spec.js +0 -70
  522. package/dist-esm/test/redisenterprisecache_test.spec.js.map +0 -1
  523. package/src/lroImpl.ts +0 -42
  524. package/src/models/index.ts +0 -1289
  525. package/src/models/mappers.ts +0 -1375
  526. package/src/models/parameters.ts +0 -237
  527. package/src/operations/databases.ts +0 -1603
  528. package/src/operations/index.ts +0 -14
  529. package/src/operations/operations.ts +0 -149
  530. package/src/operations/operationsStatus.ts +0 -71
  531. package/src/operations/privateEndpointConnections.ts +0 -451
  532. package/src/operations/privateLinkResources.ts +0 -136
  533. package/src/operations/redisEnterprise.ts +0 -708
  534. package/src/operationsInterfaces/databases.ts +0 -403
  535. package/src/operationsInterfaces/index.ts +0 -14
  536. package/src/operationsInterfaces/operations.ts +0 -22
  537. package/src/operationsInterfaces/operationsStatus.ts +0 -27
  538. package/src/operationsInterfaces/privateEndpointConnections.ts +0 -116
  539. package/src/operationsInterfaces/privateLinkResources.ts +0 -29
  540. package/src/operationsInterfaces/redisEnterprise.ts +0 -139
  541. package/src/pagingHelper.ts +0 -39
  542. package/src/redisEnterpriseManagementClient.ts +0 -165
  543. package/tsconfig.json +0 -33
  544. /package/{dist-esm/src → dist/browser}/lroImpl.d.ts +0 -0
  545. /package/{dist-esm/src → dist/browser}/lroImpl.d.ts.map +0 -0
  546. /package/{dist-esm/src → dist/browser}/lroImpl.js +0 -0
  547. /package/{dist-esm/src → dist/browser}/operationsInterfaces/databases.js +0 -0
  548. /package/{dist-esm/src → dist/browser}/operationsInterfaces/operations.js +0 -0
  549. /package/{dist-esm/src → dist/browser}/operationsInterfaces/operationsStatus.js +0 -0
  550. /package/{dist-esm/src → dist/browser}/operationsInterfaces/privateEndpointConnections.js +0 -0
  551. /package/{dist-esm/src → dist/browser}/operationsInterfaces/privateLinkResources.js +0 -0
  552. /package/{dist-esm/src → dist/browser}/operationsInterfaces/redisEnterprise.js +0 -0
  553. /package/{dist-esm/src → dist/browser}/pagingHelper.d.ts +0 -0
  554. /package/{dist-esm/src → dist/browser}/pagingHelper.d.ts.map +0 -0
  555. /package/{dist-esm/src → dist/browser}/pagingHelper.js +0 -0
@@ -1,1150 +0,0 @@
1
- /*
2
- * Copyright (c) Microsoft Corporation.
3
- * Licensed under the MIT License.
4
- *
5
- * Code generated by Microsoft (R) AutoRest Code Generator.
6
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
- */
8
- import { __asyncDelegator, __asyncGenerator, __asyncValues, __await, __awaiter } from "tslib";
9
- import { setContinuationToken } from "../pagingHelper";
10
- import * as coreClient from "@azure/core-client";
11
- import * as Mappers from "../models/mappers";
12
- import * as Parameters from "../models/parameters";
13
- import { createHttpPoller, } from "@azure/core-lro";
14
- import { createLroSpec } from "../lroImpl";
15
- /// <reference lib="esnext.asynciterable" />
16
- /** Class containing Databases operations. */
17
- export class DatabasesImpl {
18
- /**
19
- * Initialize a new instance of the class Databases class.
20
- * @param client Reference to the service client
21
- */
22
- constructor(client) {
23
- this.client = client;
24
- }
25
- /**
26
- * Gets all databases in the specified RedisEnterprise cluster.
27
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
28
- * @param clusterName The name of the Redis Enterprise cluster.
29
- * @param options The options parameters.
30
- */
31
- listByCluster(resourceGroupName, clusterName, options) {
32
- const iter = this.listByClusterPagingAll(resourceGroupName, clusterName, options);
33
- return {
34
- next() {
35
- return iter.next();
36
- },
37
- [Symbol.asyncIterator]() {
38
- return this;
39
- },
40
- byPage: (settings) => {
41
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
42
- throw new Error("maxPageSize is not supported by this operation.");
43
- }
44
- return this.listByClusterPagingPage(resourceGroupName, clusterName, options, settings);
45
- },
46
- };
47
- }
48
- listByClusterPagingPage(resourceGroupName, clusterName, options, settings) {
49
- return __asyncGenerator(this, arguments, function* listByClusterPagingPage_1() {
50
- let result;
51
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
52
- if (!continuationToken) {
53
- result = yield __await(this._listByCluster(resourceGroupName, clusterName, options));
54
- let page = result.value || [];
55
- continuationToken = result.nextLink;
56
- setContinuationToken(page, continuationToken);
57
- yield yield __await(page);
58
- }
59
- while (continuationToken) {
60
- result = yield __await(this._listByClusterNext(resourceGroupName, clusterName, continuationToken, options));
61
- continuationToken = result.nextLink;
62
- let page = result.value || [];
63
- setContinuationToken(page, continuationToken);
64
- yield yield __await(page);
65
- }
66
- });
67
- }
68
- listByClusterPagingAll(resourceGroupName, clusterName, options) {
69
- return __asyncGenerator(this, arguments, function* listByClusterPagingAll_1() {
70
- var _a, e_1, _b, _c;
71
- try {
72
- for (var _d = true, _e = __asyncValues(this.listByClusterPagingPage(resourceGroupName, clusterName, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
73
- _c = _f.value;
74
- _d = false;
75
- const page = _c;
76
- yield __await(yield* __asyncDelegator(__asyncValues(page)));
77
- }
78
- }
79
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
80
- finally {
81
- try {
82
- if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
83
- }
84
- finally { if (e_1) throw e_1.error; }
85
- }
86
- });
87
- }
88
- /**
89
- * Gets all databases in the specified RedisEnterprise cluster.
90
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
91
- * @param clusterName The name of the Redis Enterprise cluster.
92
- * @param options The options parameters.
93
- */
94
- _listByCluster(resourceGroupName, clusterName, options) {
95
- return this.client.sendOperationRequest({ resourceGroupName, clusterName, options }, listByClusterOperationSpec);
96
- }
97
- /**
98
- * Creates a database
99
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
100
- * @param clusterName The name of the Redis Enterprise cluster.
101
- * @param databaseName The name of the Redis Enterprise database.
102
- * @param parameters Parameters supplied to the create or update database operation.
103
- * @param options The options parameters.
104
- */
105
- beginCreate(resourceGroupName, clusterName, databaseName, parameters, options) {
106
- return __awaiter(this, void 0, void 0, function* () {
107
- const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
108
- return this.client.sendOperationRequest(args, spec);
109
- });
110
- const sendOperationFn = (args, spec) => __awaiter(this, void 0, void 0, function* () {
111
- var _a;
112
- let currentRawResponse = undefined;
113
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
114
- const callback = (rawResponse, flatResponse) => {
115
- currentRawResponse = rawResponse;
116
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
117
- };
118
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
119
- const flatResponse = yield directSendOperation(updatedArgs, spec);
120
- return {
121
- flatResponse,
122
- rawResponse: {
123
- statusCode: currentRawResponse.status,
124
- body: currentRawResponse.parsedBody,
125
- headers: currentRawResponse.headers.toJSON(),
126
- },
127
- };
128
- });
129
- const lro = createLroSpec({
130
- sendOperationFn,
131
- args: {
132
- resourceGroupName,
133
- clusterName,
134
- databaseName,
135
- parameters,
136
- options,
137
- },
138
- spec: createOperationSpec,
139
- });
140
- const poller = yield createHttpPoller(lro, {
141
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
142
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
143
- resourceLocationConfig: "original-uri",
144
- });
145
- yield poller.poll();
146
- return poller;
147
- });
148
- }
149
- /**
150
- * Creates a database
151
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
152
- * @param clusterName The name of the Redis Enterprise cluster.
153
- * @param databaseName The name of the Redis Enterprise database.
154
- * @param parameters Parameters supplied to the create or update database operation.
155
- * @param options The options parameters.
156
- */
157
- beginCreateAndWait(resourceGroupName, clusterName, databaseName, parameters, options) {
158
- return __awaiter(this, void 0, void 0, function* () {
159
- const poller = yield this.beginCreate(resourceGroupName, clusterName, databaseName, parameters, options);
160
- return poller.pollUntilDone();
161
- });
162
- }
163
- /**
164
- * Updates a database
165
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
166
- * @param clusterName The name of the Redis Enterprise cluster.
167
- * @param databaseName The name of the Redis Enterprise database.
168
- * @param parameters Parameters supplied to the create or update database operation.
169
- * @param options The options parameters.
170
- */
171
- beginUpdate(resourceGroupName, clusterName, databaseName, parameters, options) {
172
- return __awaiter(this, void 0, void 0, function* () {
173
- const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
174
- return this.client.sendOperationRequest(args, spec);
175
- });
176
- const sendOperationFn = (args, spec) => __awaiter(this, void 0, void 0, function* () {
177
- var _a;
178
- let currentRawResponse = undefined;
179
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
180
- const callback = (rawResponse, flatResponse) => {
181
- currentRawResponse = rawResponse;
182
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
183
- };
184
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
185
- const flatResponse = yield directSendOperation(updatedArgs, spec);
186
- return {
187
- flatResponse,
188
- rawResponse: {
189
- statusCode: currentRawResponse.status,
190
- body: currentRawResponse.parsedBody,
191
- headers: currentRawResponse.headers.toJSON(),
192
- },
193
- };
194
- });
195
- const lro = createLroSpec({
196
- sendOperationFn,
197
- args: {
198
- resourceGroupName,
199
- clusterName,
200
- databaseName,
201
- parameters,
202
- options,
203
- },
204
- spec: updateOperationSpec,
205
- });
206
- const poller = yield createHttpPoller(lro, {
207
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
208
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
209
- resourceLocationConfig: "azure-async-operation",
210
- });
211
- yield poller.poll();
212
- return poller;
213
- });
214
- }
215
- /**
216
- * Updates a database
217
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
218
- * @param clusterName The name of the Redis Enterprise cluster.
219
- * @param databaseName The name of the Redis Enterprise database.
220
- * @param parameters Parameters supplied to the create or update database operation.
221
- * @param options The options parameters.
222
- */
223
- beginUpdateAndWait(resourceGroupName, clusterName, databaseName, parameters, options) {
224
- return __awaiter(this, void 0, void 0, function* () {
225
- const poller = yield this.beginUpdate(resourceGroupName, clusterName, databaseName, parameters, options);
226
- return poller.pollUntilDone();
227
- });
228
- }
229
- /**
230
- * Gets information about a database in a RedisEnterprise cluster.
231
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
232
- * @param clusterName The name of the Redis Enterprise cluster.
233
- * @param databaseName The name of the Redis Enterprise database.
234
- * @param options The options parameters.
235
- */
236
- get(resourceGroupName, clusterName, databaseName, options) {
237
- return this.client.sendOperationRequest({ resourceGroupName, clusterName, databaseName, options }, getOperationSpec);
238
- }
239
- /**
240
- * Deletes a single database
241
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
242
- * @param clusterName The name of the Redis Enterprise cluster.
243
- * @param databaseName The name of the Redis Enterprise database.
244
- * @param options The options parameters.
245
- */
246
- beginDelete(resourceGroupName, clusterName, databaseName, options) {
247
- return __awaiter(this, void 0, void 0, function* () {
248
- const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
249
- return this.client.sendOperationRequest(args, spec);
250
- });
251
- const sendOperationFn = (args, spec) => __awaiter(this, void 0, void 0, function* () {
252
- var _a;
253
- let currentRawResponse = undefined;
254
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
255
- const callback = (rawResponse, flatResponse) => {
256
- currentRawResponse = rawResponse;
257
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
258
- };
259
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
260
- const flatResponse = yield directSendOperation(updatedArgs, spec);
261
- return {
262
- flatResponse,
263
- rawResponse: {
264
- statusCode: currentRawResponse.status,
265
- body: currentRawResponse.parsedBody,
266
- headers: currentRawResponse.headers.toJSON(),
267
- },
268
- };
269
- });
270
- const lro = createLroSpec({
271
- sendOperationFn,
272
- args: { resourceGroupName, clusterName, databaseName, options },
273
- spec: deleteOperationSpec,
274
- });
275
- const poller = yield createHttpPoller(lro, {
276
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
277
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
278
- resourceLocationConfig: "azure-async-operation",
279
- });
280
- yield poller.poll();
281
- return poller;
282
- });
283
- }
284
- /**
285
- * Deletes a single database
286
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
287
- * @param clusterName The name of the Redis Enterprise cluster.
288
- * @param databaseName The name of the Redis Enterprise database.
289
- * @param options The options parameters.
290
- */
291
- beginDeleteAndWait(resourceGroupName, clusterName, databaseName, options) {
292
- return __awaiter(this, void 0, void 0, function* () {
293
- const poller = yield this.beginDelete(resourceGroupName, clusterName, databaseName, options);
294
- return poller.pollUntilDone();
295
- });
296
- }
297
- /**
298
- * Retrieves the access keys for the RedisEnterprise database.
299
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
300
- * @param clusterName The name of the Redis Enterprise cluster.
301
- * @param databaseName The name of the Redis Enterprise database.
302
- * @param options The options parameters.
303
- */
304
- listKeys(resourceGroupName, clusterName, databaseName, options) {
305
- return this.client.sendOperationRequest({ resourceGroupName, clusterName, databaseName, options }, listKeysOperationSpec);
306
- }
307
- /**
308
- * Regenerates the RedisEnterprise database's access keys.
309
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
310
- * @param clusterName The name of the Redis Enterprise cluster.
311
- * @param databaseName The name of the Redis Enterprise database.
312
- * @param parameters Specifies which key to regenerate.
313
- * @param options The options parameters.
314
- */
315
- beginRegenerateKey(resourceGroupName, clusterName, databaseName, parameters, options) {
316
- return __awaiter(this, void 0, void 0, function* () {
317
- const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
318
- return this.client.sendOperationRequest(args, spec);
319
- });
320
- const sendOperationFn = (args, spec) => __awaiter(this, void 0, void 0, function* () {
321
- var _a;
322
- let currentRawResponse = undefined;
323
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
324
- const callback = (rawResponse, flatResponse) => {
325
- currentRawResponse = rawResponse;
326
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
327
- };
328
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
329
- const flatResponse = yield directSendOperation(updatedArgs, spec);
330
- return {
331
- flatResponse,
332
- rawResponse: {
333
- statusCode: currentRawResponse.status,
334
- body: currentRawResponse.parsedBody,
335
- headers: currentRawResponse.headers.toJSON(),
336
- },
337
- };
338
- });
339
- const lro = createLroSpec({
340
- sendOperationFn,
341
- args: {
342
- resourceGroupName,
343
- clusterName,
344
- databaseName,
345
- parameters,
346
- options,
347
- },
348
- spec: regenerateKeyOperationSpec,
349
- });
350
- const poller = yield createHttpPoller(lro, {
351
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
352
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
353
- resourceLocationConfig: "azure-async-operation",
354
- });
355
- yield poller.poll();
356
- return poller;
357
- });
358
- }
359
- /**
360
- * Regenerates the RedisEnterprise database's access keys.
361
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
362
- * @param clusterName The name of the Redis Enterprise cluster.
363
- * @param databaseName The name of the Redis Enterprise database.
364
- * @param parameters Specifies which key to regenerate.
365
- * @param options The options parameters.
366
- */
367
- beginRegenerateKeyAndWait(resourceGroupName, clusterName, databaseName, parameters, options) {
368
- return __awaiter(this, void 0, void 0, function* () {
369
- const poller = yield this.beginRegenerateKey(resourceGroupName, clusterName, databaseName, parameters, options);
370
- return poller.pollUntilDone();
371
- });
372
- }
373
- /**
374
- * Imports database files to target database.
375
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
376
- * @param clusterName The name of the Redis Enterprise cluster.
377
- * @param databaseName The name of the Redis Enterprise database.
378
- * @param parameters Storage information for importing into the cluster
379
- * @param options The options parameters.
380
- */
381
- beginImport(resourceGroupName, clusterName, databaseName, parameters, options) {
382
- return __awaiter(this, void 0, void 0, function* () {
383
- const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
384
- return this.client.sendOperationRequest(args, spec);
385
- });
386
- const sendOperationFn = (args, spec) => __awaiter(this, void 0, void 0, function* () {
387
- var _a;
388
- let currentRawResponse = undefined;
389
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
390
- const callback = (rawResponse, flatResponse) => {
391
- currentRawResponse = rawResponse;
392
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
393
- };
394
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
395
- const flatResponse = yield directSendOperation(updatedArgs, spec);
396
- return {
397
- flatResponse,
398
- rawResponse: {
399
- statusCode: currentRawResponse.status,
400
- body: currentRawResponse.parsedBody,
401
- headers: currentRawResponse.headers.toJSON(),
402
- },
403
- };
404
- });
405
- const lro = createLroSpec({
406
- sendOperationFn,
407
- args: {
408
- resourceGroupName,
409
- clusterName,
410
- databaseName,
411
- parameters,
412
- options,
413
- },
414
- spec: importOperationSpec,
415
- });
416
- const poller = yield createHttpPoller(lro, {
417
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
418
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
419
- resourceLocationConfig: "azure-async-operation",
420
- });
421
- yield poller.poll();
422
- return poller;
423
- });
424
- }
425
- /**
426
- * Imports database files to target database.
427
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
428
- * @param clusterName The name of the Redis Enterprise cluster.
429
- * @param databaseName The name of the Redis Enterprise database.
430
- * @param parameters Storage information for importing into the cluster
431
- * @param options The options parameters.
432
- */
433
- beginImportAndWait(resourceGroupName, clusterName, databaseName, parameters, options) {
434
- return __awaiter(this, void 0, void 0, function* () {
435
- const poller = yield this.beginImport(resourceGroupName, clusterName, databaseName, parameters, options);
436
- return poller.pollUntilDone();
437
- });
438
- }
439
- /**
440
- * Exports a database file from target database.
441
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
442
- * @param clusterName The name of the Redis Enterprise cluster.
443
- * @param databaseName The name of the Redis Enterprise database.
444
- * @param parameters Storage information for exporting into the cluster
445
- * @param options The options parameters.
446
- */
447
- beginExport(resourceGroupName, clusterName, databaseName, parameters, options) {
448
- return __awaiter(this, void 0, void 0, function* () {
449
- const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
450
- return this.client.sendOperationRequest(args, spec);
451
- });
452
- const sendOperationFn = (args, spec) => __awaiter(this, void 0, void 0, function* () {
453
- var _a;
454
- let currentRawResponse = undefined;
455
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
456
- const callback = (rawResponse, flatResponse) => {
457
- currentRawResponse = rawResponse;
458
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
459
- };
460
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
461
- const flatResponse = yield directSendOperation(updatedArgs, spec);
462
- return {
463
- flatResponse,
464
- rawResponse: {
465
- statusCode: currentRawResponse.status,
466
- body: currentRawResponse.parsedBody,
467
- headers: currentRawResponse.headers.toJSON(),
468
- },
469
- };
470
- });
471
- const lro = createLroSpec({
472
- sendOperationFn,
473
- args: {
474
- resourceGroupName,
475
- clusterName,
476
- databaseName,
477
- parameters,
478
- options,
479
- },
480
- spec: exportOperationSpec,
481
- });
482
- const poller = yield createHttpPoller(lro, {
483
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
484
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
485
- resourceLocationConfig: "azure-async-operation",
486
- });
487
- yield poller.poll();
488
- return poller;
489
- });
490
- }
491
- /**
492
- * Exports a database file from target database.
493
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
494
- * @param clusterName The name of the Redis Enterprise cluster.
495
- * @param databaseName The name of the Redis Enterprise database.
496
- * @param parameters Storage information for exporting into the cluster
497
- * @param options The options parameters.
498
- */
499
- beginExportAndWait(resourceGroupName, clusterName, databaseName, parameters, options) {
500
- return __awaiter(this, void 0, void 0, function* () {
501
- const poller = yield this.beginExport(resourceGroupName, clusterName, databaseName, parameters, options);
502
- return poller.pollUntilDone();
503
- });
504
- }
505
- /**
506
- * Forcibly removes the link to the specified database resource.
507
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
508
- * @param clusterName The name of the Redis Enterprise cluster.
509
- * @param databaseName The name of the Redis Enterprise database.
510
- * @param parameters Information identifying the database to be unlinked.
511
- * @param options The options parameters.
512
- */
513
- beginForceUnlink(resourceGroupName, clusterName, databaseName, parameters, options) {
514
- return __awaiter(this, void 0, void 0, function* () {
515
- const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
516
- return this.client.sendOperationRequest(args, spec);
517
- });
518
- const sendOperationFn = (args, spec) => __awaiter(this, void 0, void 0, function* () {
519
- var _a;
520
- let currentRawResponse = undefined;
521
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
522
- const callback = (rawResponse, flatResponse) => {
523
- currentRawResponse = rawResponse;
524
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
525
- };
526
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
527
- const flatResponse = yield directSendOperation(updatedArgs, spec);
528
- return {
529
- flatResponse,
530
- rawResponse: {
531
- statusCode: currentRawResponse.status,
532
- body: currentRawResponse.parsedBody,
533
- headers: currentRawResponse.headers.toJSON(),
534
- },
535
- };
536
- });
537
- const lro = createLroSpec({
538
- sendOperationFn,
539
- args: {
540
- resourceGroupName,
541
- clusterName,
542
- databaseName,
543
- parameters,
544
- options,
545
- },
546
- spec: forceUnlinkOperationSpec,
547
- });
548
- const poller = yield createHttpPoller(lro, {
549
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
550
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
551
- resourceLocationConfig: "azure-async-operation",
552
- });
553
- yield poller.poll();
554
- return poller;
555
- });
556
- }
557
- /**
558
- * Forcibly removes the link to the specified database resource.
559
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
560
- * @param clusterName The name of the Redis Enterprise cluster.
561
- * @param databaseName The name of the Redis Enterprise database.
562
- * @param parameters Information identifying the database to be unlinked.
563
- * @param options The options parameters.
564
- */
565
- beginForceUnlinkAndWait(resourceGroupName, clusterName, databaseName, parameters, options) {
566
- return __awaiter(this, void 0, void 0, function* () {
567
- const poller = yield this.beginForceUnlink(resourceGroupName, clusterName, databaseName, parameters, options);
568
- return poller.pollUntilDone();
569
- });
570
- }
571
- /**
572
- * Forcibly recreates an existing database on the specified cluster, and rejoins it to an existing
573
- * replication group. **IMPORTANT NOTE:** All data in this database will be discarded, and the database
574
- * will temporarily be unavailable while rejoining the replication group.
575
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
576
- * @param clusterName The name of the Redis Enterprise cluster.
577
- * @param databaseName The name of the Redis Enterprise database.
578
- * @param parameters Information identifying the database to be unlinked.
579
- * @param options The options parameters.
580
- */
581
- beginForceLinkToReplicationGroup(resourceGroupName, clusterName, databaseName, parameters, options) {
582
- return __awaiter(this, void 0, void 0, function* () {
583
- const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
584
- return this.client.sendOperationRequest(args, spec);
585
- });
586
- const sendOperationFn = (args, spec) => __awaiter(this, void 0, void 0, function* () {
587
- var _a;
588
- let currentRawResponse = undefined;
589
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
590
- const callback = (rawResponse, flatResponse) => {
591
- currentRawResponse = rawResponse;
592
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
593
- };
594
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
595
- const flatResponse = yield directSendOperation(updatedArgs, spec);
596
- return {
597
- flatResponse,
598
- rawResponse: {
599
- statusCode: currentRawResponse.status,
600
- body: currentRawResponse.parsedBody,
601
- headers: currentRawResponse.headers.toJSON(),
602
- },
603
- };
604
- });
605
- const lro = createLroSpec({
606
- sendOperationFn,
607
- args: {
608
- resourceGroupName,
609
- clusterName,
610
- databaseName,
611
- parameters,
612
- options,
613
- },
614
- spec: forceLinkToReplicationGroupOperationSpec,
615
- });
616
- const poller = yield createHttpPoller(lro, {
617
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
618
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
619
- resourceLocationConfig: "azure-async-operation",
620
- });
621
- yield poller.poll();
622
- return poller;
623
- });
624
- }
625
- /**
626
- * Forcibly recreates an existing database on the specified cluster, and rejoins it to an existing
627
- * replication group. **IMPORTANT NOTE:** All data in this database will be discarded, and the database
628
- * will temporarily be unavailable while rejoining the replication group.
629
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
630
- * @param clusterName The name of the Redis Enterprise cluster.
631
- * @param databaseName The name of the Redis Enterprise database.
632
- * @param parameters Information identifying the database to be unlinked.
633
- * @param options The options parameters.
634
- */
635
- beginForceLinkToReplicationGroupAndWait(resourceGroupName, clusterName, databaseName, parameters, options) {
636
- return __awaiter(this, void 0, void 0, function* () {
637
- const poller = yield this.beginForceLinkToReplicationGroup(resourceGroupName, clusterName, databaseName, parameters, options);
638
- return poller.pollUntilDone();
639
- });
640
- }
641
- /**
642
- * Flushes all the keys in this database and also from its linked databases.
643
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
644
- * @param clusterName The name of the Redis Enterprise cluster.
645
- * @param databaseName The name of the Redis Enterprise database.
646
- * @param parameters Information identifying the databases to be flushed
647
- * @param options The options parameters.
648
- */
649
- beginFlush(resourceGroupName, clusterName, databaseName, parameters, options) {
650
- return __awaiter(this, void 0, void 0, function* () {
651
- const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
652
- return this.client.sendOperationRequest(args, spec);
653
- });
654
- const sendOperationFn = (args, spec) => __awaiter(this, void 0, void 0, function* () {
655
- var _a;
656
- let currentRawResponse = undefined;
657
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
658
- const callback = (rawResponse, flatResponse) => {
659
- currentRawResponse = rawResponse;
660
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
661
- };
662
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
663
- const flatResponse = yield directSendOperation(updatedArgs, spec);
664
- return {
665
- flatResponse,
666
- rawResponse: {
667
- statusCode: currentRawResponse.status,
668
- body: currentRawResponse.parsedBody,
669
- headers: currentRawResponse.headers.toJSON(),
670
- },
671
- };
672
- });
673
- const lro = createLroSpec({
674
- sendOperationFn,
675
- args: {
676
- resourceGroupName,
677
- clusterName,
678
- databaseName,
679
- parameters,
680
- options,
681
- },
682
- spec: flushOperationSpec,
683
- });
684
- const poller = yield createHttpPoller(lro, {
685
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
686
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
687
- resourceLocationConfig: "location",
688
- });
689
- yield poller.poll();
690
- return poller;
691
- });
692
- }
693
- /**
694
- * Flushes all the keys in this database and also from its linked databases.
695
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
696
- * @param clusterName The name of the Redis Enterprise cluster.
697
- * @param databaseName The name of the Redis Enterprise database.
698
- * @param parameters Information identifying the databases to be flushed
699
- * @param options The options parameters.
700
- */
701
- beginFlushAndWait(resourceGroupName, clusterName, databaseName, parameters, options) {
702
- return __awaiter(this, void 0, void 0, function* () {
703
- const poller = yield this.beginFlush(resourceGroupName, clusterName, databaseName, parameters, options);
704
- return poller.pollUntilDone();
705
- });
706
- }
707
- /**
708
- * Upgrades the database Redis version to the latest available.
709
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
710
- * @param clusterName The name of the Redis Enterprise cluster.
711
- * @param databaseName The name of the Redis Enterprise database.
712
- * @param options The options parameters.
713
- */
714
- beginUpgradeDBRedisVersion(resourceGroupName, clusterName, databaseName, options) {
715
- return __awaiter(this, void 0, void 0, function* () {
716
- const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
717
- return this.client.sendOperationRequest(args, spec);
718
- });
719
- const sendOperationFn = (args, spec) => __awaiter(this, void 0, void 0, function* () {
720
- var _a;
721
- let currentRawResponse = undefined;
722
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
723
- const callback = (rawResponse, flatResponse) => {
724
- currentRawResponse = rawResponse;
725
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
726
- };
727
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
728
- const flatResponse = yield directSendOperation(updatedArgs, spec);
729
- return {
730
- flatResponse,
731
- rawResponse: {
732
- statusCode: currentRawResponse.status,
733
- body: currentRawResponse.parsedBody,
734
- headers: currentRawResponse.headers.toJSON(),
735
- },
736
- };
737
- });
738
- const lro = createLroSpec({
739
- sendOperationFn,
740
- args: { resourceGroupName, clusterName, databaseName, options },
741
- spec: upgradeDBRedisVersionOperationSpec,
742
- });
743
- const poller = yield createHttpPoller(lro, {
744
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
745
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
746
- resourceLocationConfig: "location",
747
- });
748
- yield poller.poll();
749
- return poller;
750
- });
751
- }
752
- /**
753
- * Upgrades the database Redis version to the latest available.
754
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
755
- * @param clusterName The name of the Redis Enterprise cluster.
756
- * @param databaseName The name of the Redis Enterprise database.
757
- * @param options The options parameters.
758
- */
759
- beginUpgradeDBRedisVersionAndWait(resourceGroupName, clusterName, databaseName, options) {
760
- return __awaiter(this, void 0, void 0, function* () {
761
- const poller = yield this.beginUpgradeDBRedisVersion(resourceGroupName, clusterName, databaseName, options);
762
- return poller.pollUntilDone();
763
- });
764
- }
765
- /**
766
- * ListByClusterNext
767
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
768
- * @param clusterName The name of the Redis Enterprise cluster.
769
- * @param nextLink The nextLink from the previous successful call to the ListByCluster method.
770
- * @param options The options parameters.
771
- */
772
- _listByClusterNext(resourceGroupName, clusterName, nextLink, options) {
773
- return this.client.sendOperationRequest({ resourceGroupName, clusterName, nextLink, options }, listByClusterNextOperationSpec);
774
- }
775
- }
776
- // Operation Specifications
777
- const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
778
- const listByClusterOperationSpec = {
779
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/databases",
780
- httpMethod: "GET",
781
- responses: {
782
- 200: {
783
- bodyMapper: Mappers.DatabaseList,
784
- },
785
- default: {
786
- bodyMapper: Mappers.ErrorResponse,
787
- },
788
- },
789
- queryParameters: [Parameters.apiVersion],
790
- urlParameters: [
791
- Parameters.$host,
792
- Parameters.subscriptionId,
793
- Parameters.resourceGroupName,
794
- Parameters.clusterName,
795
- ],
796
- headerParameters: [Parameters.accept],
797
- serializer,
798
- };
799
- const createOperationSpec = {
800
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/databases/{databaseName}",
801
- httpMethod: "PUT",
802
- responses: {
803
- 200: {
804
- bodyMapper: Mappers.Database,
805
- },
806
- 201: {
807
- bodyMapper: Mappers.Database,
808
- },
809
- 202: {
810
- bodyMapper: Mappers.Database,
811
- },
812
- 204: {
813
- bodyMapper: Mappers.Database,
814
- },
815
- default: {
816
- bodyMapper: Mappers.ErrorResponse,
817
- },
818
- },
819
- requestBody: Parameters.parameters2,
820
- queryParameters: [Parameters.apiVersion],
821
- urlParameters: [
822
- Parameters.$host,
823
- Parameters.subscriptionId,
824
- Parameters.resourceGroupName,
825
- Parameters.clusterName,
826
- Parameters.databaseName,
827
- ],
828
- headerParameters: [Parameters.accept, Parameters.contentType],
829
- mediaType: "json",
830
- serializer,
831
- };
832
- const updateOperationSpec = {
833
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/databases/{databaseName}",
834
- httpMethod: "PATCH",
835
- responses: {
836
- 200: {
837
- bodyMapper: Mappers.Database,
838
- },
839
- 201: {
840
- bodyMapper: Mappers.Database,
841
- },
842
- 202: {
843
- bodyMapper: Mappers.Database,
844
- },
845
- 204: {
846
- bodyMapper: Mappers.Database,
847
- },
848
- default: {
849
- bodyMapper: Mappers.ErrorResponse,
850
- },
851
- },
852
- requestBody: Parameters.parameters3,
853
- queryParameters: [Parameters.apiVersion],
854
- urlParameters: [
855
- Parameters.$host,
856
- Parameters.subscriptionId,
857
- Parameters.resourceGroupName,
858
- Parameters.clusterName,
859
- Parameters.databaseName,
860
- ],
861
- headerParameters: [Parameters.accept, Parameters.contentType],
862
- mediaType: "json",
863
- serializer,
864
- };
865
- const getOperationSpec = {
866
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/databases/{databaseName}",
867
- httpMethod: "GET",
868
- responses: {
869
- 200: {
870
- bodyMapper: Mappers.Database,
871
- },
872
- default: {
873
- bodyMapper: Mappers.ErrorResponse,
874
- },
875
- },
876
- queryParameters: [Parameters.apiVersion],
877
- urlParameters: [
878
- Parameters.$host,
879
- Parameters.subscriptionId,
880
- Parameters.resourceGroupName,
881
- Parameters.clusterName,
882
- Parameters.databaseName,
883
- ],
884
- headerParameters: [Parameters.accept],
885
- serializer,
886
- };
887
- const deleteOperationSpec = {
888
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/databases/{databaseName}",
889
- httpMethod: "DELETE",
890
- responses: {
891
- 200: {},
892
- 201: {},
893
- 202: {},
894
- 204: {},
895
- default: {
896
- bodyMapper: Mappers.ErrorResponse,
897
- },
898
- },
899
- queryParameters: [Parameters.apiVersion],
900
- urlParameters: [
901
- Parameters.$host,
902
- Parameters.subscriptionId,
903
- Parameters.resourceGroupName,
904
- Parameters.clusterName,
905
- Parameters.databaseName,
906
- ],
907
- headerParameters: [Parameters.accept],
908
- serializer,
909
- };
910
- const listKeysOperationSpec = {
911
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/databases/{databaseName}/listKeys",
912
- httpMethod: "POST",
913
- responses: {
914
- 200: {
915
- bodyMapper: Mappers.AccessKeys,
916
- },
917
- default: {
918
- bodyMapper: Mappers.ErrorResponse,
919
- },
920
- },
921
- queryParameters: [Parameters.apiVersion],
922
- urlParameters: [
923
- Parameters.$host,
924
- Parameters.subscriptionId,
925
- Parameters.resourceGroupName,
926
- Parameters.clusterName,
927
- Parameters.databaseName,
928
- ],
929
- headerParameters: [Parameters.accept],
930
- serializer,
931
- };
932
- const regenerateKeyOperationSpec = {
933
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/databases/{databaseName}/regenerateKey",
934
- httpMethod: "POST",
935
- responses: {
936
- 200: {
937
- bodyMapper: Mappers.AccessKeys,
938
- },
939
- 201: {
940
- bodyMapper: Mappers.AccessKeys,
941
- },
942
- 202: {
943
- bodyMapper: Mappers.AccessKeys,
944
- },
945
- 204: {
946
- bodyMapper: Mappers.AccessKeys,
947
- },
948
- default: {
949
- bodyMapper: Mappers.ErrorResponse,
950
- },
951
- },
952
- requestBody: Parameters.parameters4,
953
- queryParameters: [Parameters.apiVersion],
954
- urlParameters: [
955
- Parameters.$host,
956
- Parameters.subscriptionId,
957
- Parameters.resourceGroupName,
958
- Parameters.clusterName,
959
- Parameters.databaseName,
960
- ],
961
- headerParameters: [Parameters.accept, Parameters.contentType],
962
- mediaType: "json",
963
- serializer,
964
- };
965
- const importOperationSpec = {
966
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/databases/{databaseName}/import",
967
- httpMethod: "POST",
968
- responses: {
969
- 200: {},
970
- 201: {},
971
- 202: {},
972
- 204: {},
973
- default: {
974
- bodyMapper: Mappers.ErrorResponse,
975
- },
976
- },
977
- requestBody: Parameters.parameters5,
978
- queryParameters: [Parameters.apiVersion],
979
- urlParameters: [
980
- Parameters.$host,
981
- Parameters.subscriptionId,
982
- Parameters.resourceGroupName,
983
- Parameters.clusterName,
984
- Parameters.databaseName,
985
- ],
986
- headerParameters: [Parameters.accept, Parameters.contentType],
987
- mediaType: "json",
988
- serializer,
989
- };
990
- const exportOperationSpec = {
991
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/databases/{databaseName}/export",
992
- httpMethod: "POST",
993
- responses: {
994
- 200: {},
995
- 201: {},
996
- 202: {},
997
- 204: {},
998
- default: {
999
- bodyMapper: Mappers.ErrorResponse,
1000
- },
1001
- },
1002
- requestBody: Parameters.parameters6,
1003
- queryParameters: [Parameters.apiVersion],
1004
- urlParameters: [
1005
- Parameters.$host,
1006
- Parameters.subscriptionId,
1007
- Parameters.resourceGroupName,
1008
- Parameters.clusterName,
1009
- Parameters.databaseName,
1010
- ],
1011
- headerParameters: [Parameters.accept, Parameters.contentType],
1012
- mediaType: "json",
1013
- serializer,
1014
- };
1015
- const forceUnlinkOperationSpec = {
1016
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/databases/{databaseName}/forceUnlink",
1017
- httpMethod: "POST",
1018
- responses: {
1019
- 200: {},
1020
- 201: {},
1021
- 202: {},
1022
- 204: {},
1023
- default: {
1024
- bodyMapper: Mappers.ErrorResponse,
1025
- },
1026
- },
1027
- requestBody: Parameters.parameters7,
1028
- queryParameters: [Parameters.apiVersion],
1029
- urlParameters: [
1030
- Parameters.$host,
1031
- Parameters.subscriptionId,
1032
- Parameters.resourceGroupName,
1033
- Parameters.clusterName,
1034
- Parameters.databaseName,
1035
- ],
1036
- headerParameters: [Parameters.accept, Parameters.contentType],
1037
- mediaType: "json",
1038
- serializer,
1039
- };
1040
- const forceLinkToReplicationGroupOperationSpec = {
1041
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/databases/{databaseName}/forceLinkToReplicationGroup",
1042
- httpMethod: "POST",
1043
- responses: {
1044
- 200: {
1045
- headersMapper: Mappers.DatabasesForceLinkToReplicationGroupHeaders,
1046
- },
1047
- 201: {
1048
- headersMapper: Mappers.DatabasesForceLinkToReplicationGroupHeaders,
1049
- },
1050
- 202: {
1051
- headersMapper: Mappers.DatabasesForceLinkToReplicationGroupHeaders,
1052
- },
1053
- 204: {
1054
- headersMapper: Mappers.DatabasesForceLinkToReplicationGroupHeaders,
1055
- },
1056
- default: {
1057
- bodyMapper: Mappers.ErrorResponse,
1058
- },
1059
- },
1060
- requestBody: Parameters.parameters8,
1061
- queryParameters: [Parameters.apiVersion],
1062
- urlParameters: [
1063
- Parameters.$host,
1064
- Parameters.subscriptionId,
1065
- Parameters.resourceGroupName,
1066
- Parameters.clusterName,
1067
- Parameters.databaseName,
1068
- ],
1069
- headerParameters: [Parameters.accept, Parameters.contentType],
1070
- mediaType: "json",
1071
- serializer,
1072
- };
1073
- const flushOperationSpec = {
1074
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/databases/{databaseName}/flush",
1075
- httpMethod: "POST",
1076
- responses: {
1077
- 200: {},
1078
- 201: {},
1079
- 202: {},
1080
- 204: {},
1081
- default: {
1082
- bodyMapper: Mappers.ErrorResponse,
1083
- },
1084
- },
1085
- requestBody: Parameters.parameters9,
1086
- queryParameters: [Parameters.apiVersion],
1087
- urlParameters: [
1088
- Parameters.$host,
1089
- Parameters.subscriptionId,
1090
- Parameters.resourceGroupName,
1091
- Parameters.clusterName,
1092
- Parameters.databaseName,
1093
- ],
1094
- headerParameters: [Parameters.accept, Parameters.contentType],
1095
- mediaType: "json",
1096
- serializer,
1097
- };
1098
- const upgradeDBRedisVersionOperationSpec = {
1099
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/databases/{databaseName}/upgradeDBRedisVersion",
1100
- httpMethod: "POST",
1101
- responses: {
1102
- 200: {
1103
- headersMapper: Mappers.DatabasesUpgradeDBRedisVersionHeaders,
1104
- },
1105
- 201: {
1106
- headersMapper: Mappers.DatabasesUpgradeDBRedisVersionHeaders,
1107
- },
1108
- 202: {
1109
- headersMapper: Mappers.DatabasesUpgradeDBRedisVersionHeaders,
1110
- },
1111
- 204: {
1112
- headersMapper: Mappers.DatabasesUpgradeDBRedisVersionHeaders,
1113
- },
1114
- default: {
1115
- bodyMapper: Mappers.ErrorResponse,
1116
- },
1117
- },
1118
- queryParameters: [Parameters.apiVersion],
1119
- urlParameters: [
1120
- Parameters.$host,
1121
- Parameters.subscriptionId,
1122
- Parameters.resourceGroupName,
1123
- Parameters.clusterName,
1124
- Parameters.databaseName,
1125
- ],
1126
- headerParameters: [Parameters.accept],
1127
- serializer,
1128
- };
1129
- const listByClusterNextOperationSpec = {
1130
- path: "{nextLink}",
1131
- httpMethod: "GET",
1132
- responses: {
1133
- 200: {
1134
- bodyMapper: Mappers.DatabaseList,
1135
- },
1136
- default: {
1137
- bodyMapper: Mappers.ErrorResponse,
1138
- },
1139
- },
1140
- urlParameters: [
1141
- Parameters.$host,
1142
- Parameters.nextLink,
1143
- Parameters.subscriptionId,
1144
- Parameters.resourceGroupName,
1145
- Parameters.clusterName,
1146
- ],
1147
- headerParameters: [Parameters.accept],
1148
- serializer,
1149
- };
1150
- //# sourceMappingURL=databases.js.map