@azure/arm-redisenterprisecache 1.1.1 → 2.0.0-alpha.20220316.1

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 (276) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/LICENSE +21 -0
  3. package/README.md +69 -80
  4. package/dist/index.js +3012 -0
  5. package/dist/index.js.map +1 -0
  6. package/dist/index.min.js +1 -0
  7. package/dist/index.min.js.map +1 -0
  8. package/dist-esm/samples-dev/operationsStatusGet.d.ts +2 -0
  9. package/dist-esm/samples-dev/operationsStatusGet.d.ts.map +1 -0
  10. package/dist-esm/samples-dev/operationsStatusGet.js +31 -0
  11. package/dist-esm/samples-dev/operationsStatusGet.js.map +1 -0
  12. package/dist-esm/samples-dev/redisEnterpriseCreate.d.ts +2 -0
  13. package/dist-esm/samples-dev/redisEnterpriseCreate.d.ts.map +1 -0
  14. package/dist-esm/samples-dev/redisEnterpriseCreate.js +38 -0
  15. package/dist-esm/samples-dev/redisEnterpriseCreate.js.map +1 -0
  16. package/dist-esm/samples-dev/redisEnterpriseDatabasesCreate.d.ts +2 -0
  17. package/dist-esm/samples-dev/redisEnterpriseDatabasesCreate.d.ts.map +1 -0
  18. package/dist-esm/samples-dev/redisEnterpriseDatabasesCreate.js +44 -0
  19. package/dist-esm/samples-dev/redisEnterpriseDatabasesCreate.js.map +1 -0
  20. package/dist-esm/samples-dev/redisEnterpriseDatabasesDelete.d.ts +2 -0
  21. package/dist-esm/samples-dev/redisEnterpriseDatabasesDelete.d.ts.map +1 -0
  22. package/dist-esm/samples-dev/redisEnterpriseDatabasesDelete.js +32 -0
  23. package/dist-esm/samples-dev/redisEnterpriseDatabasesDelete.js.map +1 -0
  24. package/dist-esm/samples-dev/redisEnterpriseDatabasesExport.d.ts +2 -0
  25. package/dist-esm/samples-dev/redisEnterpriseDatabasesExport.d.ts.map +1 -0
  26. package/dist-esm/samples-dev/redisEnterpriseDatabasesExport.js +35 -0
  27. package/dist-esm/samples-dev/redisEnterpriseDatabasesExport.js.map +1 -0
  28. package/dist-esm/samples-dev/redisEnterpriseDatabasesGet.d.ts +2 -0
  29. package/dist-esm/samples-dev/redisEnterpriseDatabasesGet.d.ts.map +1 -0
  30. package/dist-esm/samples-dev/redisEnterpriseDatabasesGet.js +32 -0
  31. package/dist-esm/samples-dev/redisEnterpriseDatabasesGet.js.map +1 -0
  32. package/dist-esm/samples-dev/redisEnterpriseDatabasesImport.d.ts +2 -0
  33. package/dist-esm/samples-dev/redisEnterpriseDatabasesImport.d.ts.map +1 -0
  34. package/dist-esm/samples-dev/redisEnterpriseDatabasesImport.js +38 -0
  35. package/dist-esm/samples-dev/redisEnterpriseDatabasesImport.js.map +1 -0
  36. package/dist-esm/samples-dev/redisEnterpriseDatabasesListByCluster.d.ts +2 -0
  37. package/dist-esm/samples-dev/redisEnterpriseDatabasesListByCluster.d.ts.map +1 -0
  38. package/dist-esm/samples-dev/redisEnterpriseDatabasesListByCluster.js +45 -0
  39. package/dist-esm/samples-dev/redisEnterpriseDatabasesListByCluster.js.map +1 -0
  40. package/dist-esm/samples-dev/redisEnterpriseDatabasesListKeys.d.ts +2 -0
  41. package/dist-esm/samples-dev/redisEnterpriseDatabasesListKeys.d.ts.map +1 -0
  42. package/dist-esm/samples-dev/redisEnterpriseDatabasesListKeys.js +32 -0
  43. package/dist-esm/samples-dev/redisEnterpriseDatabasesListKeys.js.map +1 -0
  44. package/dist-esm/samples-dev/redisEnterpriseDatabasesRegenerateKey.d.ts +2 -0
  45. package/dist-esm/samples-dev/redisEnterpriseDatabasesRegenerateKey.d.ts.map +1 -0
  46. package/dist-esm/samples-dev/redisEnterpriseDatabasesRegenerateKey.js +33 -0
  47. package/dist-esm/samples-dev/redisEnterpriseDatabasesRegenerateKey.js.map +1 -0
  48. package/dist-esm/samples-dev/redisEnterpriseDatabasesUpdate.d.ts +2 -0
  49. package/dist-esm/samples-dev/redisEnterpriseDatabasesUpdate.d.ts.map +1 -0
  50. package/dist-esm/samples-dev/redisEnterpriseDatabasesUpdate.js +37 -0
  51. package/dist-esm/samples-dev/redisEnterpriseDatabasesUpdate.js.map +1 -0
  52. package/dist-esm/samples-dev/redisEnterpriseDelete.d.ts +2 -0
  53. package/dist-esm/samples-dev/redisEnterpriseDelete.d.ts.map +1 -0
  54. package/dist-esm/samples-dev/redisEnterpriseDelete.js +31 -0
  55. package/dist-esm/samples-dev/redisEnterpriseDelete.js.map +1 -0
  56. package/dist-esm/samples-dev/redisEnterpriseDeletePrivateEndpointConnection.d.ts +2 -0
  57. package/dist-esm/samples-dev/redisEnterpriseDeletePrivateEndpointConnection.d.ts.map +1 -0
  58. package/dist-esm/samples-dev/redisEnterpriseDeletePrivateEndpointConnection.js +32 -0
  59. package/dist-esm/samples-dev/redisEnterpriseDeletePrivateEndpointConnection.js.map +1 -0
  60. package/dist-esm/samples-dev/redisEnterpriseGet.d.ts +2 -0
  61. package/dist-esm/samples-dev/redisEnterpriseGet.d.ts.map +1 -0
  62. package/dist-esm/samples-dev/redisEnterpriseGet.js +31 -0
  63. package/dist-esm/samples-dev/redisEnterpriseGet.js.map +1 -0
  64. package/dist-esm/samples-dev/redisEnterpriseGetPrivateEndpointConnection.d.ts +2 -0
  65. package/dist-esm/samples-dev/redisEnterpriseGetPrivateEndpointConnection.d.ts.map +1 -0
  66. package/dist-esm/samples-dev/redisEnterpriseGetPrivateEndpointConnection.js +32 -0
  67. package/dist-esm/samples-dev/redisEnterpriseGetPrivateEndpointConnection.js.map +1 -0
  68. package/dist-esm/samples-dev/redisEnterpriseList.d.ts +2 -0
  69. package/dist-esm/samples-dev/redisEnterpriseList.d.ts.map +1 -0
  70. package/dist-esm/samples-dev/redisEnterpriseList.js +43 -0
  71. package/dist-esm/samples-dev/redisEnterpriseList.js.map +1 -0
  72. package/dist-esm/samples-dev/redisEnterpriseListByResourceGroup.d.ts +2 -0
  73. package/dist-esm/samples-dev/redisEnterpriseListByResourceGroup.d.ts.map +1 -0
  74. package/dist-esm/samples-dev/redisEnterpriseListByResourceGroup.js +44 -0
  75. package/dist-esm/samples-dev/redisEnterpriseListByResourceGroup.js.map +1 -0
  76. package/dist-esm/samples-dev/redisEnterpriseListPrivateEndpointConnections.d.ts +2 -0
  77. package/dist-esm/samples-dev/redisEnterpriseListPrivateEndpointConnections.d.ts.map +1 -0
  78. package/dist-esm/samples-dev/redisEnterpriseListPrivateEndpointConnections.js +45 -0
  79. package/dist-esm/samples-dev/redisEnterpriseListPrivateEndpointConnections.js.map +1 -0
  80. package/dist-esm/samples-dev/redisEnterpriseListPrivateLinkResources.d.ts +2 -0
  81. package/dist-esm/samples-dev/redisEnterpriseListPrivateLinkResources.d.ts.map +1 -0
  82. package/dist-esm/samples-dev/redisEnterpriseListPrivateLinkResources.js +45 -0
  83. package/dist-esm/samples-dev/redisEnterpriseListPrivateLinkResources.js.map +1 -0
  84. package/dist-esm/samples-dev/redisEnterprisePutPrivateEndpointConnection.d.ts +2 -0
  85. package/dist-esm/samples-dev/redisEnterprisePutPrivateEndpointConnection.d.ts.map +1 -0
  86. package/dist-esm/samples-dev/redisEnterprisePutPrivateEndpointConnection.js +38 -0
  87. package/dist-esm/samples-dev/redisEnterprisePutPrivateEndpointConnection.js.map +1 -0
  88. package/dist-esm/samples-dev/redisEnterpriseUpdate.d.ts +2 -0
  89. package/dist-esm/samples-dev/redisEnterpriseUpdate.d.ts.map +1 -0
  90. package/dist-esm/samples-dev/redisEnterpriseUpdate.js +36 -0
  91. package/dist-esm/samples-dev/redisEnterpriseUpdate.js.map +1 -0
  92. package/dist-esm/src/index.d.ts +5 -0
  93. package/dist-esm/src/index.d.ts.map +1 -0
  94. package/dist-esm/src/index.js +12 -0
  95. package/dist-esm/src/index.js.map +1 -0
  96. package/dist-esm/src/lroImpl.d.ts +16 -0
  97. package/dist-esm/src/lroImpl.d.ts.map +1 -0
  98. package/dist-esm/src/lroImpl.js +29 -0
  99. package/dist-esm/src/lroImpl.js.map +1 -0
  100. package/dist-esm/src/models/index.d.ts +818 -0
  101. package/dist-esm/src/models/index.d.ts.map +1 -0
  102. package/dist-esm/src/models/index.js +116 -0
  103. package/dist-esm/src/models/index.js.map +1 -0
  104. package/dist-esm/src/models/mappers.d.ts +31 -0
  105. package/dist-esm/src/models/mappers.d.ts.map +1 -0
  106. package/{esm → dist-esm/src}/models/mappers.js +455 -508
  107. package/dist-esm/src/models/mappers.js.map +1 -0
  108. package/dist-esm/src/models/parameters.d.ts +22 -0
  109. package/dist-esm/src/models/parameters.d.ts.map +1 -0
  110. package/dist-esm/src/models/parameters.js +173 -0
  111. package/dist-esm/src/models/parameters.js.map +1 -0
  112. package/dist-esm/src/operations/databases.d.ts +161 -0
  113. package/dist-esm/src/operations/databases.d.ts.map +1 -0
  114. package/dist-esm/src/operations/databases.js +697 -0
  115. package/dist-esm/src/operations/databases.js.map +1 -0
  116. package/{esm → dist-esm/src}/operations/index.d.ts +0 -0
  117. package/dist-esm/src/operations/index.d.ts.map +1 -0
  118. package/{esm → dist-esm/src}/operations/index.js +1 -2
  119. package/dist-esm/src/operations/index.js.map +1 -0
  120. package/dist-esm/src/operations/operations.d.ts +32 -0
  121. package/dist-esm/src/operations/operations.d.ts.map +1 -0
  122. package/dist-esm/src/operations/operations.js +120 -0
  123. package/dist-esm/src/operations/operations.js.map +1 -0
  124. package/dist-esm/src/operations/operationsStatus.d.ts +20 -0
  125. package/dist-esm/src/operations/operationsStatus.d.ts.map +1 -0
  126. package/dist-esm/src/operations/operationsStatus.js +53 -0
  127. package/dist-esm/src/operations/operationsStatus.js.map +1 -0
  128. package/dist-esm/src/operations/privateEndpointConnections.d.ts +71 -0
  129. package/dist-esm/src/operations/privateEndpointConnections.d.ts.map +1 -0
  130. package/dist-esm/src/operations/privateEndpointConnections.js +272 -0
  131. package/dist-esm/src/operations/privateEndpointConnections.js.map +1 -0
  132. package/dist-esm/src/operations/privateLinkResources.d.ts +30 -0
  133. package/dist-esm/src/operations/privateLinkResources.d.ts.map +1 -0
  134. package/dist-esm/src/operations/privateLinkResources.js +99 -0
  135. package/dist-esm/src/operations/privateLinkResources.js.map +1 -0
  136. package/dist-esm/src/operations/redisEnterprise.d.ts +107 -0
  137. package/dist-esm/src/operations/redisEnterprise.d.ts.map +1 -0
  138. package/dist-esm/src/operations/redisEnterprise.js +503 -0
  139. package/dist-esm/src/operations/redisEnterprise.js.map +1 -0
  140. package/dist-esm/src/operationsInterfaces/databases.d.ts +136 -0
  141. package/dist-esm/src/operationsInterfaces/databases.d.ts.map +1 -0
  142. package/{esm/models/index.js → dist-esm/src/operationsInterfaces/databases.js} +2 -1
  143. package/dist-esm/src/operationsInterfaces/databases.js.map +1 -0
  144. package/dist-esm/src/operationsInterfaces/index.d.ts +7 -0
  145. package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
  146. package/dist-esm/src/operationsInterfaces/index.js +14 -0
  147. package/dist-esm/src/operationsInterfaces/index.js.map +1 -0
  148. package/dist-esm/src/operationsInterfaces/operations.d.ts +11 -0
  149. package/dist-esm/src/operationsInterfaces/operations.d.ts.map +1 -0
  150. package/{src/models/operationsStatusMappers.ts → dist-esm/src/operationsInterfaces/operations.js} +2 -7
  151. package/dist-esm/src/operationsInterfaces/operations.js.map +1 -0
  152. package/dist-esm/src/operationsInterfaces/operationsStatus.d.ts +12 -0
  153. package/dist-esm/src/operationsInterfaces/operationsStatus.d.ts.map +1 -0
  154. package/{src/models/operationsMappers.ts → dist-esm/src/operationsInterfaces/operationsStatus.js} +2 -9
  155. package/dist-esm/src/operationsInterfaces/operationsStatus.js.map +1 -0
  156. package/dist-esm/src/operationsInterfaces/privateEndpointConnections.d.ts +54 -0
  157. package/dist-esm/src/operationsInterfaces/privateEndpointConnections.d.ts.map +1 -0
  158. package/{esm/models/operationsStatusMappers.js → dist-esm/src/operationsInterfaces/privateEndpointConnections.js} +2 -2
  159. package/dist-esm/src/operationsInterfaces/privateEndpointConnections.js.map +1 -0
  160. package/dist-esm/src/operationsInterfaces/privateLinkResources.d.ts +13 -0
  161. package/dist-esm/src/operationsInterfaces/privateLinkResources.d.ts.map +1 -0
  162. package/dist-esm/src/operationsInterfaces/privateLinkResources.js +9 -0
  163. package/dist-esm/src/operationsInterfaces/privateLinkResources.js.map +1 -0
  164. package/dist-esm/src/operationsInterfaces/redisEnterprise.d.ts +71 -0
  165. package/dist-esm/src/operationsInterfaces/redisEnterprise.d.ts.map +1 -0
  166. package/dist-esm/src/operationsInterfaces/redisEnterprise.js +9 -0
  167. package/dist-esm/src/operationsInterfaces/redisEnterprise.js.map +1 -0
  168. package/dist-esm/src/redisEnterpriseManagementClient.d.ts +23 -0
  169. package/dist-esm/src/redisEnterpriseManagementClient.d.ts.map +1 -0
  170. package/dist-esm/src/redisEnterpriseManagementClient.js +56 -0
  171. package/dist-esm/src/redisEnterpriseManagementClient.js.map +1 -0
  172. package/dist-esm/test/sampleTest.d.ts +2 -0
  173. package/dist-esm/test/sampleTest.d.ts.map +1 -0
  174. package/dist-esm/test/sampleTest.js +40 -0
  175. package/dist-esm/test/sampleTest.js.map +1 -0
  176. package/package.json +82 -23
  177. package/review/arm-redisenterprisecache.api.md +705 -0
  178. package/rollup.config.js +181 -30
  179. package/{esm/models/operationsMappers.js → src/index.ts} +5 -2
  180. package/src/lroImpl.ts +34 -0
  181. package/src/models/index.ts +694 -1077
  182. package/src/models/mappers.ts +447 -504
  183. package/src/models/parameters.ts +131 -47
  184. package/src/operations/databases.ts +779 -429
  185. package/src/operations/index.ts +1 -2
  186. package/src/operations/operations.ts +85 -73
  187. package/src/operations/operationsStatus.ts +37 -51
  188. package/src/operations/privateEndpointConnections.ts +252 -176
  189. package/src/operations/privateLinkResources.ts +96 -47
  190. package/src/operations/redisEnterprise.ts +517 -322
  191. package/src/operationsInterfaces/databases.ts +264 -0
  192. package/src/operationsInterfaces/index.ts +14 -0
  193. package/src/operationsInterfaces/operations.ts +22 -0
  194. package/src/operationsInterfaces/operationsStatus.ts +27 -0
  195. package/src/operationsInterfaces/privateEndpointConnections.ts +102 -0
  196. package/src/operationsInterfaces/privateLinkResources.ts +29 -0
  197. package/src/operationsInterfaces/redisEnterprise.ts +139 -0
  198. package/src/redisEnterpriseManagementClient.ts +84 -42
  199. package/tsconfig.json +5 -4
  200. package/types/arm-redisenterprisecache.d.ts +1229 -0
  201. package/types/tsdoc-metadata.json +11 -0
  202. package/dist/arm-redisenterprisecache.js +0 -2654
  203. package/dist/arm-redisenterprisecache.js.map +0 -1
  204. package/dist/arm-redisenterprisecache.min.js +0 -1
  205. package/dist/arm-redisenterprisecache.min.js.map +0 -1
  206. package/esm/models/databasesMappers.d.ts +0 -2
  207. package/esm/models/databasesMappers.d.ts.map +0 -1
  208. package/esm/models/databasesMappers.js +0 -9
  209. package/esm/models/databasesMappers.js.map +0 -1
  210. package/esm/models/index.d.ts +0 -1215
  211. package/esm/models/index.d.ts.map +0 -1
  212. package/esm/models/index.js.map +0 -1
  213. package/esm/models/mappers.d.ts +0 -34
  214. package/esm/models/mappers.d.ts.map +0 -1
  215. package/esm/models/mappers.js.map +0 -1
  216. package/esm/models/operationsMappers.d.ts +0 -2
  217. package/esm/models/operationsMappers.d.ts.map +0 -1
  218. package/esm/models/operationsMappers.js.map +0 -1
  219. package/esm/models/operationsStatusMappers.d.ts +0 -2
  220. package/esm/models/operationsStatusMappers.d.ts.map +0 -1
  221. package/esm/models/operationsStatusMappers.js.map +0 -1
  222. package/esm/models/parameters.d.ts +0 -12
  223. package/esm/models/parameters.d.ts.map +0 -1
  224. package/esm/models/parameters.js +0 -121
  225. package/esm/models/parameters.js.map +0 -1
  226. package/esm/models/privateEndpointConnectionsMappers.d.ts +0 -2
  227. package/esm/models/privateEndpointConnectionsMappers.d.ts.map +0 -1
  228. package/esm/models/privateEndpointConnectionsMappers.js +0 -9
  229. package/esm/models/privateEndpointConnectionsMappers.js.map +0 -1
  230. package/esm/models/privateLinkResourcesMappers.d.ts +0 -2
  231. package/esm/models/privateLinkResourcesMappers.d.ts.map +0 -1
  232. package/esm/models/privateLinkResourcesMappers.js +0 -9
  233. package/esm/models/privateLinkResourcesMappers.js.map +0 -1
  234. package/esm/models/redisEnterpriseMappers.d.ts +0 -2
  235. package/esm/models/redisEnterpriseMappers.d.ts.map +0 -1
  236. package/esm/models/redisEnterpriseMappers.js +0 -9
  237. package/esm/models/redisEnterpriseMappers.js.map +0 -1
  238. package/esm/operations/databases.d.ts +0 -219
  239. package/esm/operations/databases.d.ts.map +0 -1
  240. package/esm/operations/databases.js +0 -515
  241. package/esm/operations/databases.js.map +0 -1
  242. package/esm/operations/index.d.ts.map +0 -1
  243. package/esm/operations/index.js.map +0 -1
  244. package/esm/operations/operations.d.ts +0 -46
  245. package/esm/operations/operations.d.ts.map +0 -1
  246. package/esm/operations/operations.js +0 -79
  247. package/esm/operations/operations.js.map +0 -1
  248. package/esm/operations/operationsStatus.d.ts +0 -34
  249. package/esm/operations/operationsStatus.d.ts.map +0 -1
  250. package/esm/operations/operationsStatus.js +0 -57
  251. package/esm/operations/operationsStatus.js.map +0 -1
  252. package/esm/operations/privateEndpointConnections.d.ts +0 -113
  253. package/esm/operations/privateEndpointConnections.d.ts.map +0 -1
  254. package/esm/operations/privateEndpointConnections.js +0 -187
  255. package/esm/operations/privateEndpointConnections.js.map +0 -1
  256. package/esm/operations/privateLinkResources.d.ts +0 -34
  257. package/esm/operations/privateLinkResources.d.ts.map +0 -1
  258. package/esm/operations/privateLinkResources.js +0 -57
  259. package/esm/operations/privateLinkResources.js.map +0 -1
  260. package/esm/operations/redisEnterprise.d.ts +0 -156
  261. package/esm/operations/redisEnterprise.d.ts.map +0 -1
  262. package/esm/operations/redisEnterprise.js +0 -337
  263. package/esm/operations/redisEnterprise.js.map +0 -1
  264. package/esm/redisEnterpriseManagementClient.d.ts +0 -29
  265. package/esm/redisEnterpriseManagementClient.d.ts.map +0 -1
  266. package/esm/redisEnterpriseManagementClient.js +0 -42
  267. package/esm/redisEnterpriseManagementClient.js.map +0 -1
  268. package/esm/redisEnterpriseManagementClientContext.d.ts +0 -22
  269. package/esm/redisEnterpriseManagementClientContext.d.ts.map +0 -1
  270. package/esm/redisEnterpriseManagementClientContext.js +0 -60
  271. package/esm/redisEnterpriseManagementClientContext.js.map +0 -1
  272. package/src/models/databasesMappers.ts +0 -33
  273. package/src/models/privateEndpointConnectionsMappers.ts +0 -28
  274. package/src/models/privateLinkResourcesMappers.ts +0 -28
  275. package/src/models/redisEnterpriseMappers.ts +0 -29
  276. package/src/redisEnterpriseManagementClientContext.ts +0 -67
@@ -3,26 +3,39 @@
3
3
  * Licensed under the MIT License.
4
4
  *
5
5
  * Code generated by Microsoft (R) AutoRest Code Generator.
6
- * Changes may cause incorrect behavior and will be lost if the code is
7
- * regenerated.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
8
7
  */
9
8
 
10
- import * as msRest from "@azure/ms-rest-js";
11
- import * as msRestAzure from "@azure/ms-rest-azure-js";
12
- import * as Models from "../models";
13
- import * as Mappers from "../models/privateEndpointConnectionsMappers";
9
+ import { PagedAsyncIterableIterator } from "@azure/core-paging";
10
+ import { PrivateEndpointConnections } from "../operationsInterfaces";
11
+ import * as coreClient from "@azure/core-client";
12
+ import * as Mappers from "../models/mappers";
14
13
  import * as Parameters from "../models/parameters";
15
- import { RedisEnterpriseManagementClientContext } from "../redisEnterpriseManagementClientContext";
14
+ import { RedisEnterpriseManagementClient } from "../redisEnterpriseManagementClient";
15
+ import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro";
16
+ import { LroImpl } from "../lroImpl";
17
+ import {
18
+ PrivateEndpointConnection,
19
+ PrivateEndpointConnectionsListOptionalParams,
20
+ PrivateEndpointConnectionsListResponse,
21
+ PrivateEndpointConnectionsGetOptionalParams,
22
+ PrivateEndpointConnectionsGetResponse,
23
+ PrivateEndpointConnectionsPutOptionalParams,
24
+ PrivateEndpointConnectionsPutResponse,
25
+ PrivateEndpointConnectionsDeleteOptionalParams
26
+ } from "../models";
16
27
 
17
- /** Class representing a PrivateEndpointConnections. */
18
- export class PrivateEndpointConnections {
19
- private readonly client: RedisEnterpriseManagementClientContext;
28
+ /// <reference lib="esnext.asynciterable" />
29
+ /** Class containing PrivateEndpointConnections operations. */
30
+ export class PrivateEndpointConnectionsImpl
31
+ implements PrivateEndpointConnections {
32
+ private readonly client: RedisEnterpriseManagementClient;
20
33
 
21
34
  /**
22
- * Create a PrivateEndpointConnections.
23
- * @param {RedisEnterpriseManagementClientContext} client Reference to the service client.
35
+ * Initialize a new instance of the class PrivateEndpointConnections class.
36
+ * @param client Reference to the service client
24
37
  */
25
- constructor(client: RedisEnterpriseManagementClientContext) {
38
+ constructor(client: RedisEnterpriseManagementClient) {
26
39
  this.client = client;
27
40
  }
28
41
 
@@ -30,117 +43,211 @@ export class PrivateEndpointConnections {
30
43
  * Lists all the private endpoint connections associated with the RedisEnterprise cluster.
31
44
  * @param resourceGroupName The name of the resource group. The name is case insensitive.
32
45
  * @param clusterName The name of the RedisEnterprise cluster.
33
- * @param [options] The optional parameters
34
- * @returns Promise<Models.PrivateEndpointConnectionsListResponse>
46
+ * @param options The options parameters.
35
47
  */
36
- list(resourceGroupName: string, clusterName: string, options?: msRest.RequestOptionsBase): Promise<Models.PrivateEndpointConnectionsListResponse>;
48
+ public list(
49
+ resourceGroupName: string,
50
+ clusterName: string,
51
+ options?: PrivateEndpointConnectionsListOptionalParams
52
+ ): PagedAsyncIterableIterator<PrivateEndpointConnection> {
53
+ const iter = this.listPagingAll(resourceGroupName, clusterName, options);
54
+ return {
55
+ next() {
56
+ return iter.next();
57
+ },
58
+ [Symbol.asyncIterator]() {
59
+ return this;
60
+ },
61
+ byPage: () => {
62
+ return this.listPagingPage(resourceGroupName, clusterName, options);
63
+ }
64
+ };
65
+ }
66
+
67
+ private async *listPagingPage(
68
+ resourceGroupName: string,
69
+ clusterName: string,
70
+ options?: PrivateEndpointConnectionsListOptionalParams
71
+ ): AsyncIterableIterator<PrivateEndpointConnection[]> {
72
+ let result = await this._list(resourceGroupName, clusterName, options);
73
+ yield result.value || [];
74
+ }
75
+
76
+ private async *listPagingAll(
77
+ resourceGroupName: string,
78
+ clusterName: string,
79
+ options?: PrivateEndpointConnectionsListOptionalParams
80
+ ): AsyncIterableIterator<PrivateEndpointConnection> {
81
+ for await (const page of this.listPagingPage(
82
+ resourceGroupName,
83
+ clusterName,
84
+ options
85
+ )) {
86
+ yield* page;
87
+ }
88
+ }
89
+
37
90
  /**
91
+ * Lists all the private endpoint connections associated with the RedisEnterprise cluster.
38
92
  * @param resourceGroupName The name of the resource group. The name is case insensitive.
39
93
  * @param clusterName The name of the RedisEnterprise cluster.
40
- * @param callback The callback
94
+ * @param options The options parameters.
41
95
  */
42
- list(resourceGroupName: string, clusterName: string, callback: msRest.ServiceCallback<Models.PrivateEndpointConnectionListResult>): void;
96
+ private _list(
97
+ resourceGroupName: string,
98
+ clusterName: string,
99
+ options?: PrivateEndpointConnectionsListOptionalParams
100
+ ): Promise<PrivateEndpointConnectionsListResponse> {
101
+ return this.client.sendOperationRequest(
102
+ { resourceGroupName, clusterName, options },
103
+ listOperationSpec
104
+ );
105
+ }
106
+
43
107
  /**
108
+ * Gets the specified private endpoint connection associated with the RedisEnterprise cluster.
44
109
  * @param resourceGroupName The name of the resource group. The name is case insensitive.
45
110
  * @param clusterName The name of the RedisEnterprise cluster.
46
- * @param options The optional parameters
47
- * @param callback The callback
111
+ * @param privateEndpointConnectionName The name of the private endpoint connection associated with the
112
+ * Azure resource
113
+ * @param options The options parameters.
48
114
  */
49
- list(resourceGroupName: string, clusterName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.PrivateEndpointConnectionListResult>): void;
50
- list(resourceGroupName: string, clusterName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.PrivateEndpointConnectionListResult>, callback?: msRest.ServiceCallback<Models.PrivateEndpointConnectionListResult>): Promise<Models.PrivateEndpointConnectionsListResponse> {
115
+ get(
116
+ resourceGroupName: string,
117
+ clusterName: string,
118
+ privateEndpointConnectionName: string,
119
+ options?: PrivateEndpointConnectionsGetOptionalParams
120
+ ): Promise<PrivateEndpointConnectionsGetResponse> {
51
121
  return this.client.sendOperationRequest(
52
122
  {
53
123
  resourceGroupName,
54
124
  clusterName,
125
+ privateEndpointConnectionName,
55
126
  options
56
127
  },
57
- listOperationSpec,
58
- callback) as Promise<Models.PrivateEndpointConnectionsListResponse>;
128
+ getOperationSpec
129
+ );
59
130
  }
60
131
 
61
132
  /**
62
- * Gets the specified private endpoint connection associated with the RedisEnterprise cluster.
63
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
64
- * @param clusterName The name of the RedisEnterprise cluster.
65
- * @param privateEndpointConnectionName The name of the private endpoint connection associated with
66
- * the Azure resource
67
- * @param [options] The optional parameters
68
- * @returns Promise<Models.PrivateEndpointConnectionsGetResponse>
69
- */
70
- get(resourceGroupName: string, clusterName: string, privateEndpointConnectionName: string, options?: msRest.RequestOptionsBase): Promise<Models.PrivateEndpointConnectionsGetResponse>;
71
- /**
72
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
73
- * @param clusterName The name of the RedisEnterprise cluster.
74
- * @param privateEndpointConnectionName The name of the private endpoint connection associated with
75
- * the Azure resource
76
- * @param callback The callback
77
- */
78
- get(resourceGroupName: string, clusterName: string, privateEndpointConnectionName: string, callback: msRest.ServiceCallback<Models.PrivateEndpointConnection>): void;
79
- /**
133
+ * Updates the state of the specified private endpoint connection associated with the RedisEnterprise
134
+ * cluster.
80
135
  * @param resourceGroupName The name of the resource group. The name is case insensitive.
81
136
  * @param clusterName The name of the RedisEnterprise cluster.
82
- * @param privateEndpointConnectionName The name of the private endpoint connection associated with
83
- * the Azure resource
84
- * @param options The optional parameters
85
- * @param callback The callback
137
+ * @param privateEndpointConnectionName The name of the private endpoint connection associated with the
138
+ * Azure resource
139
+ * @param properties The private endpoint connection properties.
140
+ * @param options The options parameters.
86
141
  */
87
- get(resourceGroupName: string, clusterName: string, privateEndpointConnectionName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.PrivateEndpointConnection>): void;
88
- get(resourceGroupName: string, clusterName: string, privateEndpointConnectionName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.PrivateEndpointConnection>, callback?: msRest.ServiceCallback<Models.PrivateEndpointConnection>): Promise<Models.PrivateEndpointConnectionsGetResponse> {
89
- return this.client.sendOperationRequest(
142
+ async beginPut(
143
+ resourceGroupName: string,
144
+ clusterName: string,
145
+ privateEndpointConnectionName: string,
146
+ properties: PrivateEndpointConnection,
147
+ options?: PrivateEndpointConnectionsPutOptionalParams
148
+ ): Promise<
149
+ PollerLike<
150
+ PollOperationState<PrivateEndpointConnectionsPutResponse>,
151
+ PrivateEndpointConnectionsPutResponse
152
+ >
153
+ > {
154
+ const directSendOperation = async (
155
+ args: coreClient.OperationArguments,
156
+ spec: coreClient.OperationSpec
157
+ ): Promise<PrivateEndpointConnectionsPutResponse> => {
158
+ return this.client.sendOperationRequest(args, spec);
159
+ };
160
+ const sendOperation = async (
161
+ args: coreClient.OperationArguments,
162
+ spec: coreClient.OperationSpec
163
+ ) => {
164
+ let currentRawResponse:
165
+ | coreClient.FullOperationResponse
166
+ | undefined = undefined;
167
+ const providedCallback = args.options?.onResponse;
168
+ const callback: coreClient.RawResponseCallback = (
169
+ rawResponse: coreClient.FullOperationResponse,
170
+ flatResponse: unknown
171
+ ) => {
172
+ currentRawResponse = rawResponse;
173
+ providedCallback?.(rawResponse, flatResponse);
174
+ };
175
+ const updatedArgs = {
176
+ ...args,
177
+ options: {
178
+ ...args.options,
179
+ onResponse: callback
180
+ }
181
+ };
182
+ const flatResponse = await directSendOperation(updatedArgs, spec);
183
+ return {
184
+ flatResponse,
185
+ rawResponse: {
186
+ statusCode: currentRawResponse!.status,
187
+ body: currentRawResponse!.parsedBody,
188
+ headers: currentRawResponse!.headers.toJSON()
189
+ }
190
+ };
191
+ };
192
+
193
+ const lro = new LroImpl(
194
+ sendOperation,
90
195
  {
91
196
  resourceGroupName,
92
197
  clusterName,
93
198
  privateEndpointConnectionName,
199
+ properties,
94
200
  options
95
201
  },
96
- getOperationSpec,
97
- callback) as Promise<Models.PrivateEndpointConnectionsGetResponse>;
202
+ putOperationSpec
203
+ );
204
+ return new LroEngine(lro, {
205
+ resumeFrom: options?.resumeFrom,
206
+ intervalInMs: options?.updateIntervalInMs
207
+ });
98
208
  }
99
209
 
100
210
  /**
101
- * Updates the state of the specified private endpoint connection associated with the
102
- * RedisEnterprise cluster.
211
+ * Updates the state of the specified private endpoint connection associated with the RedisEnterprise
212
+ * cluster.
103
213
  * @param resourceGroupName The name of the resource group. The name is case insensitive.
104
214
  * @param clusterName The name of the RedisEnterprise cluster.
105
- * @param privateEndpointConnectionName The name of the private endpoint connection associated with
106
- * the Azure resource
215
+ * @param privateEndpointConnectionName The name of the private endpoint connection associated with the
216
+ * Azure resource
107
217
  * @param properties The private endpoint connection properties.
108
- * @param [options] The optional parameters
109
- * @returns Promise<Models.PrivateEndpointConnectionsPutResponse>
218
+ * @param options The options parameters.
110
219
  */
111
- put(resourceGroupName: string, clusterName: string, privateEndpointConnectionName: string, properties: Models.PrivateEndpointConnection, options?: msRest.RequestOptionsBase): Promise<Models.PrivateEndpointConnectionsPutResponse> {
112
- return this.beginPut(resourceGroupName,clusterName,privateEndpointConnectionName,properties,options)
113
- .then(lroPoller => lroPoller.pollUntilFinished()) as Promise<Models.PrivateEndpointConnectionsPutResponse>;
220
+ async beginPutAndWait(
221
+ resourceGroupName: string,
222
+ clusterName: string,
223
+ privateEndpointConnectionName: string,
224
+ properties: PrivateEndpointConnection,
225
+ options?: PrivateEndpointConnectionsPutOptionalParams
226
+ ): Promise<PrivateEndpointConnectionsPutResponse> {
227
+ const poller = await this.beginPut(
228
+ resourceGroupName,
229
+ clusterName,
230
+ privateEndpointConnectionName,
231
+ properties,
232
+ options
233
+ );
234
+ return poller.pollUntilDone();
114
235
  }
115
236
 
116
237
  /**
117
238
  * Deletes the specified private endpoint connection associated with the RedisEnterprise cluster.
118
239
  * @param resourceGroupName The name of the resource group. The name is case insensitive.
119
240
  * @param clusterName The name of the RedisEnterprise cluster.
120
- * @param privateEndpointConnectionName The name of the private endpoint connection associated with
121
- * the Azure resource
122
- * @param [options] The optional parameters
123
- * @returns Promise<msRest.RestResponse>
241
+ * @param privateEndpointConnectionName The name of the private endpoint connection associated with the
242
+ * Azure resource
243
+ * @param options The options parameters.
124
244
  */
125
- deleteMethod(resourceGroupName: string, clusterName: string, privateEndpointConnectionName: string, options?: msRest.RequestOptionsBase): Promise<msRest.RestResponse>;
126
- /**
127
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
128
- * @param clusterName The name of the RedisEnterprise cluster.
129
- * @param privateEndpointConnectionName The name of the private endpoint connection associated with
130
- * the Azure resource
131
- * @param callback The callback
132
- */
133
- deleteMethod(resourceGroupName: string, clusterName: string, privateEndpointConnectionName: string, callback: msRest.ServiceCallback<void>): void;
134
- /**
135
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
136
- * @param clusterName The name of the RedisEnterprise cluster.
137
- * @param privateEndpointConnectionName The name of the private endpoint connection associated with
138
- * the Azure resource
139
- * @param options The optional parameters
140
- * @param callback The callback
141
- */
142
- deleteMethod(resourceGroupName: string, clusterName: string, privateEndpointConnectionName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<void>): void;
143
- deleteMethod(resourceGroupName: string, clusterName: string, privateEndpointConnectionName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<void>, callback?: msRest.ServiceCallback<void>): Promise<msRest.RestResponse> {
245
+ delete(
246
+ resourceGroupName: string,
247
+ clusterName: string,
248
+ privateEndpointConnectionName: string,
249
+ options?: PrivateEndpointConnectionsDeleteOptionalParams
250
+ ): Promise<void> {
144
251
  return this.client.sendOperationRequest(
145
252
  {
146
253
  resourceGroupName,
@@ -148,51 +255,17 @@ export class PrivateEndpointConnections {
148
255
  privateEndpointConnectionName,
149
256
  options
150
257
  },
151
- deleteMethodOperationSpec,
152
- callback);
153
- }
154
-
155
- /**
156
- * Updates the state of the specified private endpoint connection associated with the
157
- * RedisEnterprise cluster.
158
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
159
- * @param clusterName The name of the RedisEnterprise cluster.
160
- * @param privateEndpointConnectionName The name of the private endpoint connection associated with
161
- * the Azure resource
162
- * @param properties The private endpoint connection properties.
163
- * @param [options] The optional parameters
164
- * @returns Promise<msRestAzure.LROPoller>
165
- */
166
- beginPut(resourceGroupName: string, clusterName: string, privateEndpointConnectionName: string, properties: Models.PrivateEndpointConnection, options?: msRest.RequestOptionsBase): Promise<msRestAzure.LROPoller> {
167
- return this.client.sendLRORequest(
168
- {
169
- resourceGroupName,
170
- clusterName,
171
- privateEndpointConnectionName,
172
- properties,
173
- options
174
- },
175
- beginPutOperationSpec,
176
- options);
258
+ deleteOperationSpec
259
+ );
177
260
  }
178
261
  }
179
-
180
262
  // Operation Specifications
181
- const serializer = new msRest.Serializer(Mappers);
182
- const listOperationSpec: msRest.OperationSpec = {
263
+ const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
264
+
265
+ const listOperationSpec: coreClient.OperationSpec = {
266
+ path:
267
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/privateEndpointConnections",
183
268
  httpMethod: "GET",
184
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/privateEndpointConnections",
185
- urlParameters: [
186
- Parameters.resourceGroupName,
187
- Parameters.clusterName,
188
- Parameters.subscriptionId
189
- ],
190
- queryParameters: [
191
- Parameters.apiVersion
192
- ],
193
- headerParameters: [
194
- Parameters.acceptLanguage
195
- ],
196
269
  responses: {
197
270
  200: {
198
271
  bodyMapper: Mappers.PrivateEndpointConnectionListResult
@@ -201,50 +274,77 @@ const listOperationSpec: msRest.OperationSpec = {
201
274
  bodyMapper: Mappers.ErrorResponse
202
275
  }
203
276
  },
277
+ queryParameters: [Parameters.apiVersion],
278
+ urlParameters: [
279
+ Parameters.$host,
280
+ Parameters.subscriptionId,
281
+ Parameters.resourceGroupName,
282
+ Parameters.clusterName
283
+ ],
284
+ headerParameters: [Parameters.accept],
204
285
  serializer
205
286
  };
206
-
207
- const getOperationSpec: msRest.OperationSpec = {
287
+ const getOperationSpec: coreClient.OperationSpec = {
288
+ path:
289
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/privateEndpointConnections/{privateEndpointConnectionName}",
208
290
  httpMethod: "GET",
209
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/privateEndpointConnections/{privateEndpointConnectionName}",
291
+ responses: {
292
+ 200: {
293
+ bodyMapper: Mappers.PrivateEndpointConnection
294
+ },
295
+ default: {
296
+ bodyMapper: Mappers.ErrorResponse
297
+ }
298
+ },
299
+ queryParameters: [Parameters.apiVersion],
210
300
  urlParameters: [
301
+ Parameters.$host,
302
+ Parameters.subscriptionId,
211
303
  Parameters.resourceGroupName,
212
304
  Parameters.clusterName,
213
- Parameters.privateEndpointConnectionName,
214
- Parameters.subscriptionId
215
- ],
216
- queryParameters: [
217
- Parameters.apiVersion
218
- ],
219
- headerParameters: [
220
- Parameters.acceptLanguage
305
+ Parameters.privateEndpointConnectionName
221
306
  ],
307
+ headerParameters: [Parameters.accept],
308
+ serializer
309
+ };
310
+ const putOperationSpec: coreClient.OperationSpec = {
311
+ path:
312
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/privateEndpointConnections/{privateEndpointConnectionName}",
313
+ httpMethod: "PUT",
222
314
  responses: {
223
315
  200: {
224
316
  bodyMapper: Mappers.PrivateEndpointConnection
225
317
  },
318
+ 201: {
319
+ bodyMapper: Mappers.PrivateEndpointConnection
320
+ },
321
+ 202: {
322
+ bodyMapper: Mappers.PrivateEndpointConnection
323
+ },
324
+ 204: {
325
+ bodyMapper: Mappers.PrivateEndpointConnection
326
+ },
226
327
  default: {
227
328
  bodyMapper: Mappers.ErrorResponse
228
329
  }
229
330
  },
230
- serializer
231
- };
232
-
233
- const deleteMethodOperationSpec: msRest.OperationSpec = {
234
- httpMethod: "DELETE",
235
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/privateEndpointConnections/{privateEndpointConnectionName}",
331
+ requestBody: Parameters.properties,
332
+ queryParameters: [Parameters.apiVersion],
236
333
  urlParameters: [
334
+ Parameters.$host,
335
+ Parameters.subscriptionId,
237
336
  Parameters.resourceGroupName,
238
337
  Parameters.clusterName,
239
- Parameters.subscriptionId,
240
338
  Parameters.privateEndpointConnectionName
241
339
  ],
242
- queryParameters: [
243
- Parameters.apiVersion
244
- ],
245
- headerParameters: [
246
- Parameters.acceptLanguage
247
- ],
340
+ headerParameters: [Parameters.accept, Parameters.contentType],
341
+ mediaType: "json",
342
+ serializer
343
+ };
344
+ const deleteOperationSpec: coreClient.OperationSpec = {
345
+ path:
346
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/privateEndpointConnections/{privateEndpointConnectionName}",
347
+ httpMethod: "DELETE",
248
348
  responses: {
249
349
  200: {},
250
350
  204: {},
@@ -252,38 +352,14 @@ const deleteMethodOperationSpec: msRest.OperationSpec = {
252
352
  bodyMapper: Mappers.ErrorResponse
253
353
  }
254
354
  },
255
- serializer
256
- };
257
-
258
- const beginPutOperationSpec: msRest.OperationSpec = {
259
- httpMethod: "PUT",
260
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/privateEndpointConnections/{privateEndpointConnectionName}",
355
+ queryParameters: [Parameters.apiVersion],
261
356
  urlParameters: [
357
+ Parameters.$host,
358
+ Parameters.subscriptionId,
262
359
  Parameters.resourceGroupName,
263
360
  Parameters.clusterName,
264
- Parameters.subscriptionId,
265
361
  Parameters.privateEndpointConnectionName
266
362
  ],
267
- queryParameters: [
268
- Parameters.apiVersion
269
- ],
270
- headerParameters: [
271
- Parameters.acceptLanguage
272
- ],
273
- requestBody: {
274
- parameterPath: "properties",
275
- mapper: {
276
- ...Mappers.PrivateEndpointConnection,
277
- required: true
278
- }
279
- },
280
- responses: {
281
- 201: {
282
- bodyMapper: Mappers.PrivateEndpointConnection
283
- },
284
- default: {
285
- bodyMapper: Mappers.ErrorResponse
286
- }
287
- },
363
+ headerParameters: [Parameters.accept],
288
364
  serializer
289
365
  };