@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
@@ -0,0 +1,415 @@
1
+ "use strict";
2
+ /*
3
+ * Copyright (c) Microsoft Corporation.
4
+ * Licensed under the MIT License.
5
+ *
6
+ * Code generated by Microsoft (R) AutoRest Code Generator.
7
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
8
+ */
9
+ Object.defineProperty(exports, "__esModule", { value: true });
10
+ exports.AccessPolicyAssignmentOperationsImpl = void 0;
11
+ const tslib_1 = require("tslib");
12
+ const pagingHelper_js_1 = require("../pagingHelper.js");
13
+ const coreClient = tslib_1.__importStar(require("@azure/core-client"));
14
+ const Mappers = tslib_1.__importStar(require("../models/mappers.js"));
15
+ const Parameters = tslib_1.__importStar(require("../models/parameters.js"));
16
+ const core_lro_1 = require("@azure/core-lro");
17
+ const lroImpl_js_1 = require("../lroImpl.js");
18
+ /// <reference lib="esnext.asynciterable" />
19
+ /** Class containing AccessPolicyAssignmentOperations operations. */
20
+ class AccessPolicyAssignmentOperationsImpl {
21
+ /**
22
+ * Initialize a new instance of the class AccessPolicyAssignmentOperations class.
23
+ * @param client Reference to the service client
24
+ */
25
+ constructor(client) {
26
+ this.client = client;
27
+ }
28
+ /**
29
+ * Gets all access policy assignments..
30
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
31
+ * @param clusterName The name of the Redis Enterprise cluster. Name must be 1-60 characters long.
32
+ * Allowed characters(A-Z, a-z, 0-9) and hyphen(-). There can be no leading nor trailing nor
33
+ * consecutive hyphens
34
+ * @param databaseName The name of the Redis Enterprise database.
35
+ * @param options The options parameters.
36
+ */
37
+ list(resourceGroupName, clusterName, databaseName, options) {
38
+ const iter = this.listPagingAll(resourceGroupName, clusterName, databaseName, options);
39
+ return {
40
+ next() {
41
+ return iter.next();
42
+ },
43
+ [Symbol.asyncIterator]() {
44
+ return this;
45
+ },
46
+ byPage: (settings) => {
47
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
48
+ throw new Error("maxPageSize is not supported by this operation.");
49
+ }
50
+ return this.listPagingPage(resourceGroupName, clusterName, databaseName, options, settings);
51
+ },
52
+ };
53
+ }
54
+ listPagingPage(resourceGroupName, clusterName, databaseName, options, settings) {
55
+ return tslib_1.__asyncGenerator(this, arguments, function* listPagingPage_1() {
56
+ let result;
57
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
58
+ if (!continuationToken) {
59
+ result = yield tslib_1.__await(this._list(resourceGroupName, clusterName, databaseName, options));
60
+ let page = result.value || [];
61
+ continuationToken = result.nextLink;
62
+ (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
63
+ yield yield tslib_1.__await(page);
64
+ }
65
+ while (continuationToken) {
66
+ result = yield tslib_1.__await(this._listNext(resourceGroupName, clusterName, databaseName, continuationToken, options));
67
+ continuationToken = result.nextLink;
68
+ let page = result.value || [];
69
+ (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
70
+ yield yield tslib_1.__await(page);
71
+ }
72
+ });
73
+ }
74
+ listPagingAll(resourceGroupName, clusterName, databaseName, options) {
75
+ return tslib_1.__asyncGenerator(this, arguments, function* listPagingAll_1() {
76
+ var _a, e_1, _b, _c;
77
+ try {
78
+ for (var _d = true, _e = tslib_1.__asyncValues(this.listPagingPage(resourceGroupName, clusterName, databaseName, options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
79
+ _c = _f.value;
80
+ _d = false;
81
+ const page = _c;
82
+ yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
83
+ }
84
+ }
85
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
86
+ finally {
87
+ try {
88
+ if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
89
+ }
90
+ finally { if (e_1) throw e_1.error; }
91
+ }
92
+ });
93
+ }
94
+ /**
95
+ * Creates/Updates a particular access policy assignment for a database
96
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
97
+ * @param clusterName The name of the Redis Enterprise cluster. Name must be 1-60 characters long.
98
+ * Allowed characters(A-Z, a-z, 0-9) and hyphen(-). There can be no leading nor trailing nor
99
+ * consecutive hyphens
100
+ * @param databaseName The name of the Redis Enterprise database.
101
+ * @param accessPolicyAssignmentName The name of the Redis Enterprise database access policy
102
+ * assignment.
103
+ * @param parameters Parameters supplied to the create access policy assignment for database.
104
+ * @param options The options parameters.
105
+ */
106
+ async beginCreateUpdate(resourceGroupName, clusterName, databaseName, accessPolicyAssignmentName, parameters, options) {
107
+ const directSendOperation = async (args, spec) => {
108
+ return this.client.sendOperationRequest(args, spec);
109
+ };
110
+ const sendOperationFn = async (args, spec) => {
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 = await 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 = (0, lroImpl_js_1.createLroSpec)({
130
+ sendOperationFn,
131
+ args: {
132
+ resourceGroupName,
133
+ clusterName,
134
+ databaseName,
135
+ accessPolicyAssignmentName,
136
+ parameters,
137
+ options,
138
+ },
139
+ spec: createUpdateOperationSpec,
140
+ });
141
+ const poller = await (0, core_lro_1.createHttpPoller)(lro, {
142
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
143
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
144
+ resourceLocationConfig: "original-uri",
145
+ });
146
+ await poller.poll();
147
+ return poller;
148
+ }
149
+ /**
150
+ * Creates/Updates a particular access policy assignment for 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. Name must be 1-60 characters long.
153
+ * Allowed characters(A-Z, a-z, 0-9) and hyphen(-). There can be no leading nor trailing nor
154
+ * consecutive hyphens
155
+ * @param databaseName The name of the Redis Enterprise database.
156
+ * @param accessPolicyAssignmentName The name of the Redis Enterprise database access policy
157
+ * assignment.
158
+ * @param parameters Parameters supplied to the create access policy assignment for database.
159
+ * @param options The options parameters.
160
+ */
161
+ async beginCreateUpdateAndWait(resourceGroupName, clusterName, databaseName, accessPolicyAssignmentName, parameters, options) {
162
+ const poller = await this.beginCreateUpdate(resourceGroupName, clusterName, databaseName, accessPolicyAssignmentName, parameters, options);
163
+ return poller.pollUntilDone();
164
+ }
165
+ /**
166
+ * Gets information about access policy assignment for database.
167
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
168
+ * @param clusterName The name of the Redis Enterprise cluster. Name must be 1-60 characters long.
169
+ * Allowed characters(A-Z, a-z, 0-9) and hyphen(-). There can be no leading nor trailing nor
170
+ * consecutive hyphens
171
+ * @param databaseName The name of the Redis Enterprise database.
172
+ * @param accessPolicyAssignmentName The name of the Redis Enterprise database access policy
173
+ * assignment.
174
+ * @param options The options parameters.
175
+ */
176
+ get(resourceGroupName, clusterName, databaseName, accessPolicyAssignmentName, options) {
177
+ return this.client.sendOperationRequest({
178
+ resourceGroupName,
179
+ clusterName,
180
+ databaseName,
181
+ accessPolicyAssignmentName,
182
+ options,
183
+ }, getOperationSpec);
184
+ }
185
+ /**
186
+ * Deletes a single access policy assignment.
187
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
188
+ * @param clusterName The name of the Redis Enterprise cluster. Name must be 1-60 characters long.
189
+ * Allowed characters(A-Z, a-z, 0-9) and hyphen(-). There can be no leading nor trailing nor
190
+ * consecutive hyphens
191
+ * @param databaseName The name of the Redis Enterprise database.
192
+ * @param accessPolicyAssignmentName The name of the Redis Enterprise database access policy
193
+ * assignment.
194
+ * @param options The options parameters.
195
+ */
196
+ async beginDelete(resourceGroupName, clusterName, databaseName, accessPolicyAssignmentName, options) {
197
+ const directSendOperation = async (args, spec) => {
198
+ return this.client.sendOperationRequest(args, spec);
199
+ };
200
+ const sendOperationFn = async (args, spec) => {
201
+ var _a;
202
+ let currentRawResponse = undefined;
203
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
204
+ const callback = (rawResponse, flatResponse) => {
205
+ currentRawResponse = rawResponse;
206
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
207
+ };
208
+ const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
209
+ const flatResponse = await directSendOperation(updatedArgs, spec);
210
+ return {
211
+ flatResponse,
212
+ rawResponse: {
213
+ statusCode: currentRawResponse.status,
214
+ body: currentRawResponse.parsedBody,
215
+ headers: currentRawResponse.headers.toJSON(),
216
+ },
217
+ };
218
+ };
219
+ const lro = (0, lroImpl_js_1.createLroSpec)({
220
+ sendOperationFn,
221
+ args: {
222
+ resourceGroupName,
223
+ clusterName,
224
+ databaseName,
225
+ accessPolicyAssignmentName,
226
+ options,
227
+ },
228
+ spec: deleteOperationSpec,
229
+ });
230
+ const poller = await (0, core_lro_1.createHttpPoller)(lro, {
231
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
232
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
233
+ resourceLocationConfig: "azure-async-operation",
234
+ });
235
+ await poller.poll();
236
+ return poller;
237
+ }
238
+ /**
239
+ * Deletes a single access policy assignment.
240
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
241
+ * @param clusterName The name of the Redis Enterprise cluster. Name must be 1-60 characters long.
242
+ * Allowed characters(A-Z, a-z, 0-9) and hyphen(-). There can be no leading nor trailing nor
243
+ * consecutive hyphens
244
+ * @param databaseName The name of the Redis Enterprise database.
245
+ * @param accessPolicyAssignmentName The name of the Redis Enterprise database access policy
246
+ * assignment.
247
+ * @param options The options parameters.
248
+ */
249
+ async beginDeleteAndWait(resourceGroupName, clusterName, databaseName, accessPolicyAssignmentName, options) {
250
+ const poller = await this.beginDelete(resourceGroupName, clusterName, databaseName, accessPolicyAssignmentName, options);
251
+ return poller.pollUntilDone();
252
+ }
253
+ /**
254
+ * Gets all access policy assignments..
255
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
256
+ * @param clusterName The name of the Redis Enterprise cluster. Name must be 1-60 characters long.
257
+ * Allowed characters(A-Z, a-z, 0-9) and hyphen(-). There can be no leading nor trailing nor
258
+ * consecutive hyphens
259
+ * @param databaseName The name of the Redis Enterprise database.
260
+ * @param options The options parameters.
261
+ */
262
+ _list(resourceGroupName, clusterName, databaseName, options) {
263
+ return this.client.sendOperationRequest({ resourceGroupName, clusterName, databaseName, options }, listOperationSpec);
264
+ }
265
+ /**
266
+ * ListNext
267
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
268
+ * @param clusterName The name of the Redis Enterprise cluster. Name must be 1-60 characters long.
269
+ * Allowed characters(A-Z, a-z, 0-9) and hyphen(-). There can be no leading nor trailing nor
270
+ * consecutive hyphens
271
+ * @param databaseName The name of the Redis Enterprise database.
272
+ * @param nextLink The nextLink from the previous successful call to the List method.
273
+ * @param options The options parameters.
274
+ */
275
+ _listNext(resourceGroupName, clusterName, databaseName, nextLink, options) {
276
+ return this.client.sendOperationRequest({ resourceGroupName, clusterName, databaseName, nextLink, options }, listNextOperationSpec);
277
+ }
278
+ }
279
+ exports.AccessPolicyAssignmentOperationsImpl = AccessPolicyAssignmentOperationsImpl;
280
+ // Operation Specifications
281
+ const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
282
+ const createUpdateOperationSpec = {
283
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/databases/{databaseName}/accessPolicyAssignments/{accessPolicyAssignmentName}",
284
+ httpMethod: "PUT",
285
+ responses: {
286
+ 200: {
287
+ bodyMapper: Mappers.AccessPolicyAssignment,
288
+ },
289
+ 201: {
290
+ bodyMapper: Mappers.AccessPolicyAssignment,
291
+ },
292
+ 202: {
293
+ bodyMapper: Mappers.AccessPolicyAssignment,
294
+ },
295
+ 204: {
296
+ bodyMapper: Mappers.AccessPolicyAssignment,
297
+ },
298
+ default: {
299
+ bodyMapper: Mappers.ErrorResponse,
300
+ },
301
+ },
302
+ requestBody: Parameters.parameters10,
303
+ queryParameters: [Parameters.apiVersion],
304
+ urlParameters: [
305
+ Parameters.$host,
306
+ Parameters.subscriptionId,
307
+ Parameters.resourceGroupName,
308
+ Parameters.clusterName,
309
+ Parameters.databaseName,
310
+ Parameters.accessPolicyAssignmentName,
311
+ ],
312
+ headerParameters: [Parameters.accept, Parameters.contentType],
313
+ mediaType: "json",
314
+ serializer,
315
+ };
316
+ const getOperationSpec = {
317
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/databases/{databaseName}/accessPolicyAssignments/{accessPolicyAssignmentName}",
318
+ httpMethod: "GET",
319
+ responses: {
320
+ 200: {
321
+ bodyMapper: Mappers.AccessPolicyAssignment,
322
+ },
323
+ default: {
324
+ bodyMapper: Mappers.ErrorResponse,
325
+ },
326
+ },
327
+ queryParameters: [Parameters.apiVersion],
328
+ urlParameters: [
329
+ Parameters.$host,
330
+ Parameters.subscriptionId,
331
+ Parameters.resourceGroupName,
332
+ Parameters.clusterName,
333
+ Parameters.databaseName,
334
+ Parameters.accessPolicyAssignmentName,
335
+ ],
336
+ headerParameters: [Parameters.accept],
337
+ serializer,
338
+ };
339
+ const deleteOperationSpec = {
340
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/databases/{databaseName}/accessPolicyAssignments/{accessPolicyAssignmentName}",
341
+ httpMethod: "DELETE",
342
+ responses: {
343
+ 200: {
344
+ headersMapper: Mappers.AccessPolicyAssignmentDeleteHeaders,
345
+ },
346
+ 201: {
347
+ headersMapper: Mappers.AccessPolicyAssignmentDeleteHeaders,
348
+ },
349
+ 202: {
350
+ headersMapper: Mappers.AccessPolicyAssignmentDeleteHeaders,
351
+ },
352
+ 204: {
353
+ headersMapper: Mappers.AccessPolicyAssignmentDeleteHeaders,
354
+ },
355
+ default: {
356
+ bodyMapper: Mappers.ErrorResponse,
357
+ },
358
+ },
359
+ queryParameters: [Parameters.apiVersion],
360
+ urlParameters: [
361
+ Parameters.$host,
362
+ Parameters.subscriptionId,
363
+ Parameters.resourceGroupName,
364
+ Parameters.clusterName,
365
+ Parameters.databaseName,
366
+ Parameters.accessPolicyAssignmentName,
367
+ ],
368
+ headerParameters: [Parameters.accept],
369
+ serializer,
370
+ };
371
+ const listOperationSpec = {
372
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/databases/{databaseName}/accessPolicyAssignments",
373
+ httpMethod: "GET",
374
+ responses: {
375
+ 200: {
376
+ bodyMapper: Mappers.AccessPolicyAssignmentList,
377
+ },
378
+ default: {
379
+ bodyMapper: Mappers.ErrorResponse,
380
+ },
381
+ },
382
+ queryParameters: [Parameters.apiVersion],
383
+ urlParameters: [
384
+ Parameters.$host,
385
+ Parameters.subscriptionId,
386
+ Parameters.resourceGroupName,
387
+ Parameters.clusterName,
388
+ Parameters.databaseName,
389
+ ],
390
+ headerParameters: [Parameters.accept],
391
+ serializer,
392
+ };
393
+ const listNextOperationSpec = {
394
+ path: "{nextLink}",
395
+ httpMethod: "GET",
396
+ responses: {
397
+ 200: {
398
+ bodyMapper: Mappers.AccessPolicyAssignmentList,
399
+ },
400
+ default: {
401
+ bodyMapper: Mappers.ErrorResponse,
402
+ },
403
+ },
404
+ urlParameters: [
405
+ Parameters.$host,
406
+ Parameters.nextLink,
407
+ Parameters.subscriptionId,
408
+ Parameters.resourceGroupName,
409
+ Parameters.clusterName,
410
+ Parameters.databaseName,
411
+ ],
412
+ headerParameters: [Parameters.accept],
413
+ serializer,
414
+ };
415
+ //# sourceMappingURL=accessPolicyAssignmentOperations.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"accessPolicyAssignmentOperations.js","sourceRoot":"","sources":["../../../src/operations/accessPolicyAssignmentOperations.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,wDAA0D;AAE1D,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAEtD,8CAIyB;AACzB,8CAA8C;AAe9C,4CAA4C;AAC5C,oEAAoE;AACpE,MAAa,oCAAoC;IAK/C;;;OAGG;IACH,YAAY,MAAuC;QACjD,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;;;OAQG;IACI,IAAI,CACT,iBAAyB,EACzB,WAAmB,EACnB,YAAoB,EACpB,OAAkD;QAElD,MAAM,IAAI,GAAG,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CAAC,0BAA0B;SAC/C;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,WAAW;QACtB,UAAU,CAAC,YAAY;KACxB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,qBAAqB,GAA6B;IACtD,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,0BAA0B;SAC/C;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,QAAQ;QACnB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,WAAW;QACtB,UAAU,CAAC,YAAY;KACxB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { AccessPolicyAssignmentOperations } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { RedisEnterpriseManagementClient } from \"../redisEnterpriseManagementClient.js\";\nimport {\n SimplePollerLike,\n OperationState,\n createHttpPoller,\n} from \"@azure/core-lro\";\nimport { createLroSpec } from \"../lroImpl.js\";\nimport {\n AccessPolicyAssignment,\n AccessPolicyAssignmentListNextOptionalParams,\n AccessPolicyAssignmentListOptionalParams,\n AccessPolicyAssignmentListResponse,\n AccessPolicyAssignmentCreateUpdateOptionalParams,\n AccessPolicyAssignmentCreateUpdateResponse,\n AccessPolicyAssignmentGetOptionalParams,\n AccessPolicyAssignmentGetResponse,\n AccessPolicyAssignmentDeleteOptionalParams,\n AccessPolicyAssignmentDeleteResponse,\n AccessPolicyAssignmentListNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing AccessPolicyAssignmentOperations operations. */\nexport class AccessPolicyAssignmentOperationsImpl\n implements AccessPolicyAssignmentOperations\n{\n private readonly client: RedisEnterpriseManagementClient;\n\n /**\n * Initialize a new instance of the class AccessPolicyAssignmentOperations class.\n * @param client Reference to the service client\n */\n constructor(client: RedisEnterpriseManagementClient) {\n this.client = client;\n }\n\n /**\n * Gets all access policy assignments..\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param clusterName The name of the Redis Enterprise cluster. Name must be 1-60 characters long.\n * Allowed characters(A-Z, a-z, 0-9) and hyphen(-). There can be no leading nor trailing nor\n * consecutive hyphens\n * @param databaseName The name of the Redis Enterprise database.\n * @param options The options parameters.\n */\n public list(\n resourceGroupName: string,\n clusterName: string,\n databaseName: string,\n options?: AccessPolicyAssignmentListOptionalParams,\n ): PagedAsyncIterableIterator<AccessPolicyAssignment> {\n const iter = this.listPagingAll(\n resourceGroupName,\n clusterName,\n databaseName,\n options,\n );\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listPagingPage(\n resourceGroupName,\n clusterName,\n databaseName,\n options,\n settings,\n );\n },\n };\n }\n\n private async *listPagingPage(\n resourceGroupName: string,\n clusterName: string,\n databaseName: string,\n options?: AccessPolicyAssignmentListOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<AccessPolicyAssignment[]> {\n let result: AccessPolicyAssignmentListResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._list(\n resourceGroupName,\n clusterName,\n databaseName,\n options,\n );\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listNext(\n resourceGroupName,\n clusterName,\n databaseName,\n continuationToken,\n options,\n );\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listPagingAll(\n resourceGroupName: string,\n clusterName: string,\n databaseName: string,\n options?: AccessPolicyAssignmentListOptionalParams,\n ): AsyncIterableIterator<AccessPolicyAssignment> {\n for await (const page of this.listPagingPage(\n resourceGroupName,\n clusterName,\n databaseName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Creates/Updates a particular access policy assignment for a database\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param clusterName The name of the Redis Enterprise cluster. Name must be 1-60 characters long.\n * Allowed characters(A-Z, a-z, 0-9) and hyphen(-). There can be no leading nor trailing nor\n * consecutive hyphens\n * @param databaseName The name of the Redis Enterprise database.\n * @param accessPolicyAssignmentName The name of the Redis Enterprise database access policy\n * assignment.\n * @param parameters Parameters supplied to the create access policy assignment for database.\n * @param options The options parameters.\n */\n async beginCreateUpdate(\n resourceGroupName: string,\n clusterName: string,\n databaseName: string,\n accessPolicyAssignmentName: string,\n parameters: AccessPolicyAssignment,\n options?: AccessPolicyAssignmentCreateUpdateOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<AccessPolicyAssignmentCreateUpdateResponse>,\n AccessPolicyAssignmentCreateUpdateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<AccessPolicyAssignmentCreateUpdateResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: {\n resourceGroupName,\n clusterName,\n databaseName,\n accessPolicyAssignmentName,\n parameters,\n options,\n },\n spec: createUpdateOperationSpec,\n });\n const poller = await createHttpPoller<\n AccessPolicyAssignmentCreateUpdateResponse,\n OperationState<AccessPolicyAssignmentCreateUpdateResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"original-uri\",\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Creates/Updates a particular access policy assignment for a database\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param clusterName The name of the Redis Enterprise cluster. Name must be 1-60 characters long.\n * Allowed characters(A-Z, a-z, 0-9) and hyphen(-). There can be no leading nor trailing nor\n * consecutive hyphens\n * @param databaseName The name of the Redis Enterprise database.\n * @param accessPolicyAssignmentName The name of the Redis Enterprise database access policy\n * assignment.\n * @param parameters Parameters supplied to the create access policy assignment for database.\n * @param options The options parameters.\n */\n async beginCreateUpdateAndWait(\n resourceGroupName: string,\n clusterName: string,\n databaseName: string,\n accessPolicyAssignmentName: string,\n parameters: AccessPolicyAssignment,\n options?: AccessPolicyAssignmentCreateUpdateOptionalParams,\n ): Promise<AccessPolicyAssignmentCreateUpdateResponse> {\n const poller = await this.beginCreateUpdate(\n resourceGroupName,\n clusterName,\n databaseName,\n accessPolicyAssignmentName,\n parameters,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Gets information about access policy assignment for database.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param clusterName The name of the Redis Enterprise cluster. Name must be 1-60 characters long.\n * Allowed characters(A-Z, a-z, 0-9) and hyphen(-). There can be no leading nor trailing nor\n * consecutive hyphens\n * @param databaseName The name of the Redis Enterprise database.\n * @param accessPolicyAssignmentName The name of the Redis Enterprise database access policy\n * assignment.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n clusterName: string,\n databaseName: string,\n accessPolicyAssignmentName: string,\n options?: AccessPolicyAssignmentGetOptionalParams,\n ): Promise<AccessPolicyAssignmentGetResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n clusterName,\n databaseName,\n accessPolicyAssignmentName,\n options,\n },\n getOperationSpec,\n );\n }\n\n /**\n * Deletes a single access policy assignment.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param clusterName The name of the Redis Enterprise cluster. Name must be 1-60 characters long.\n * Allowed characters(A-Z, a-z, 0-9) and hyphen(-). There can be no leading nor trailing nor\n * consecutive hyphens\n * @param databaseName The name of the Redis Enterprise database.\n * @param accessPolicyAssignmentName The name of the Redis Enterprise database access policy\n * assignment.\n * @param options The options parameters.\n */\n async beginDelete(\n resourceGroupName: string,\n clusterName: string,\n databaseName: string,\n accessPolicyAssignmentName: string,\n options?: AccessPolicyAssignmentDeleteOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<AccessPolicyAssignmentDeleteResponse>,\n AccessPolicyAssignmentDeleteResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<AccessPolicyAssignmentDeleteResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: {\n resourceGroupName,\n clusterName,\n databaseName,\n accessPolicyAssignmentName,\n options,\n },\n spec: deleteOperationSpec,\n });\n const poller = await createHttpPoller<\n AccessPolicyAssignmentDeleteResponse,\n OperationState<AccessPolicyAssignmentDeleteResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"azure-async-operation\",\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Deletes a single access policy assignment.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param clusterName The name of the Redis Enterprise cluster. Name must be 1-60 characters long.\n * Allowed characters(A-Z, a-z, 0-9) and hyphen(-). There can be no leading nor trailing nor\n * consecutive hyphens\n * @param databaseName The name of the Redis Enterprise database.\n * @param accessPolicyAssignmentName The name of the Redis Enterprise database access policy\n * assignment.\n * @param options The options parameters.\n */\n async beginDeleteAndWait(\n resourceGroupName: string,\n clusterName: string,\n databaseName: string,\n accessPolicyAssignmentName: string,\n options?: AccessPolicyAssignmentDeleteOptionalParams,\n ): Promise<AccessPolicyAssignmentDeleteResponse> {\n const poller = await this.beginDelete(\n resourceGroupName,\n clusterName,\n databaseName,\n accessPolicyAssignmentName,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Gets all access policy assignments..\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param clusterName The name of the Redis Enterprise cluster. Name must be 1-60 characters long.\n * Allowed characters(A-Z, a-z, 0-9) and hyphen(-). There can be no leading nor trailing nor\n * consecutive hyphens\n * @param databaseName The name of the Redis Enterprise database.\n * @param options The options parameters.\n */\n private _list(\n resourceGroupName: string,\n clusterName: string,\n databaseName: string,\n options?: AccessPolicyAssignmentListOptionalParams,\n ): Promise<AccessPolicyAssignmentListResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, clusterName, databaseName, options },\n listOperationSpec,\n );\n }\n\n /**\n * ListNext\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param clusterName The name of the Redis Enterprise cluster. Name must be 1-60 characters long.\n * Allowed characters(A-Z, a-z, 0-9) and hyphen(-). There can be no leading nor trailing nor\n * consecutive hyphens\n * @param databaseName The name of the Redis Enterprise database.\n * @param nextLink The nextLink from the previous successful call to the List method.\n * @param options The options parameters.\n */\n private _listNext(\n resourceGroupName: string,\n clusterName: string,\n databaseName: string,\n nextLink: string,\n options?: AccessPolicyAssignmentListNextOptionalParams,\n ): Promise<AccessPolicyAssignmentListNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, clusterName, databaseName, nextLink, options },\n listNextOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst createUpdateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/databases/{databaseName}/accessPolicyAssignments/{accessPolicyAssignmentName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.AccessPolicyAssignment,\n },\n 201: {\n bodyMapper: Mappers.AccessPolicyAssignment,\n },\n 202: {\n bodyMapper: Mappers.AccessPolicyAssignment,\n },\n 204: {\n bodyMapper: Mappers.AccessPolicyAssignment,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.parameters10,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.clusterName,\n Parameters.databaseName,\n Parameters.accessPolicyAssignmentName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/databases/{databaseName}/accessPolicyAssignments/{accessPolicyAssignmentName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.AccessPolicyAssignment,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.clusterName,\n Parameters.databaseName,\n Parameters.accessPolicyAssignmentName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/databases/{databaseName}/accessPolicyAssignments/{accessPolicyAssignmentName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {\n headersMapper: Mappers.AccessPolicyAssignmentDeleteHeaders,\n },\n 201: {\n headersMapper: Mappers.AccessPolicyAssignmentDeleteHeaders,\n },\n 202: {\n headersMapper: Mappers.AccessPolicyAssignmentDeleteHeaders,\n },\n 204: {\n headersMapper: Mappers.AccessPolicyAssignmentDeleteHeaders,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.clusterName,\n Parameters.databaseName,\n Parameters.accessPolicyAssignmentName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/databases/{databaseName}/accessPolicyAssignments\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.AccessPolicyAssignmentList,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.clusterName,\n Parameters.databaseName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.AccessPolicyAssignmentList,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.nextLink,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.clusterName,\n Parameters.databaseName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}