@azure/arm-redisenterprisecache 1.1.1 → 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (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 +80 -33
  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
@@ -1,2654 +0,0 @@
1
- /*
2
- * Copyright (c) Microsoft Corporation.
3
- * Licensed under the MIT License.
4
- *
5
- * Code generated by Microsoft (R) AutoRest Code Generator.
6
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
- */
8
- (function (global, factory) {
9
- typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@azure/ms-rest-azure-js'), require('@azure/ms-rest-js')) :
10
- typeof define === 'function' && define.amd ? define(['exports', '@azure/ms-rest-azure-js', '@azure/ms-rest-js'], factory) :
11
- (global = global || self, factory((global.Azure = global.Azure || {}, global.Azure.ArmRedisenterprisecache = {}), global.msRestAzure, global.msRest));
12
- }(this, (function (exports, msRestAzure, msRest) { 'use strict';
13
-
14
- /*! *****************************************************************************
15
- Copyright (c) Microsoft Corporation.
16
-
17
- Permission to use, copy, modify, and/or distribute this software for any
18
- purpose with or without fee is hereby granted.
19
-
20
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
21
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
22
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
23
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
24
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
25
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
26
- PERFORMANCE OF THIS SOFTWARE.
27
- ***************************************************************************** */
28
- /* global Reflect, Promise */
29
-
30
- var extendStatics = function(d, b) {
31
- extendStatics = Object.setPrototypeOf ||
32
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
33
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
34
- return extendStatics(d, b);
35
- };
36
-
37
- function __extends(d, b) {
38
- extendStatics(d, b);
39
- function __() { this.constructor = d; }
40
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
41
- }
42
-
43
- var __assign = function() {
44
- __assign = Object.assign || function __assign(t) {
45
- for (var s, i = 1, n = arguments.length; i < n; i++) {
46
- s = arguments[i];
47
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
48
- }
49
- return t;
50
- };
51
- return __assign.apply(this, arguments);
52
- };
53
-
54
- /*
55
- * Copyright (c) Microsoft Corporation.
56
- * Licensed under the MIT License.
57
- *
58
- * Code generated by Microsoft (R) AutoRest Code Generator.
59
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
60
- */
61
-
62
- var index = /*#__PURE__*/Object.freeze({
63
- __proto__: null
64
- });
65
-
66
- /*
67
- * Copyright (c) Microsoft Corporation.
68
- * Licensed under the MIT License.
69
- *
70
- * Code generated by Microsoft (R) AutoRest Code Generator.
71
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
72
- */
73
- var CloudError = msRestAzure.CloudErrorMapper;
74
- var BaseResource = msRestAzure.BaseResourceMapper;
75
- var Sku = {
76
- serializedName: "Sku",
77
- type: {
78
- name: "Composite",
79
- className: "Sku",
80
- modelProperties: {
81
- name: {
82
- required: true,
83
- serializedName: "name",
84
- type: {
85
- name: "String"
86
- }
87
- },
88
- capacity: {
89
- serializedName: "capacity",
90
- type: {
91
- name: "Number"
92
- }
93
- }
94
- }
95
- }
96
- };
97
- var PrivateEndpoint = {
98
- serializedName: "PrivateEndpoint",
99
- type: {
100
- name: "Composite",
101
- className: "PrivateEndpoint",
102
- modelProperties: {
103
- id: {
104
- readOnly: true,
105
- serializedName: "id",
106
- type: {
107
- name: "String"
108
- }
109
- }
110
- }
111
- }
112
- };
113
- var PrivateLinkServiceConnectionState = {
114
- serializedName: "PrivateLinkServiceConnectionState",
115
- type: {
116
- name: "Composite",
117
- className: "PrivateLinkServiceConnectionState",
118
- modelProperties: {
119
- status: {
120
- serializedName: "status",
121
- type: {
122
- name: "String"
123
- }
124
- },
125
- description: {
126
- serializedName: "description",
127
- type: {
128
- name: "String"
129
- }
130
- },
131
- actionsRequired: {
132
- serializedName: "actionsRequired",
133
- type: {
134
- name: "String"
135
- }
136
- }
137
- }
138
- }
139
- };
140
- var Resource = {
141
- serializedName: "Resource",
142
- type: {
143
- name: "Composite",
144
- className: "Resource",
145
- modelProperties: {
146
- id: {
147
- readOnly: true,
148
- serializedName: "id",
149
- type: {
150
- name: "String"
151
- }
152
- },
153
- name: {
154
- readOnly: true,
155
- serializedName: "name",
156
- type: {
157
- name: "String"
158
- }
159
- },
160
- type: {
161
- readOnly: true,
162
- serializedName: "type",
163
- type: {
164
- name: "String"
165
- }
166
- }
167
- }
168
- }
169
- };
170
- var PrivateEndpointConnection = {
171
- serializedName: "PrivateEndpointConnection",
172
- type: {
173
- name: "Composite",
174
- className: "PrivateEndpointConnection",
175
- modelProperties: __assign(__assign({}, Resource.type.modelProperties), { privateEndpoint: {
176
- serializedName: "properties.privateEndpoint",
177
- type: {
178
- name: "Composite",
179
- className: "PrivateEndpoint"
180
- }
181
- }, privateLinkServiceConnectionState: {
182
- required: true,
183
- serializedName: "properties.privateLinkServiceConnectionState",
184
- type: {
185
- name: "Composite",
186
- className: "PrivateLinkServiceConnectionState"
187
- }
188
- }, provisioningState: {
189
- serializedName: "properties.provisioningState",
190
- type: {
191
- name: "String"
192
- }
193
- } })
194
- }
195
- };
196
- var TrackedResource = {
197
- serializedName: "TrackedResource",
198
- type: {
199
- name: "Composite",
200
- className: "TrackedResource",
201
- modelProperties: __assign(__assign({}, Resource.type.modelProperties), { tags: {
202
- serializedName: "tags",
203
- type: {
204
- name: "Dictionary",
205
- value: {
206
- type: {
207
- name: "String"
208
- }
209
- }
210
- }
211
- }, location: {
212
- required: true,
213
- serializedName: "location",
214
- type: {
215
- name: "String"
216
- }
217
- } })
218
- }
219
- };
220
- var Cluster = {
221
- serializedName: "Cluster",
222
- type: {
223
- name: "Composite",
224
- className: "Cluster",
225
- modelProperties: __assign(__assign({}, TrackedResource.type.modelProperties), { sku: {
226
- required: true,
227
- serializedName: "sku",
228
- type: {
229
- name: "Composite",
230
- className: "Sku"
231
- }
232
- }, zones: {
233
- serializedName: "zones",
234
- type: {
235
- name: "Sequence",
236
- element: {
237
- type: {
238
- name: "String"
239
- }
240
- }
241
- }
242
- }, minimumTlsVersion: {
243
- serializedName: "properties.minimumTlsVersion",
244
- type: {
245
- name: "String"
246
- }
247
- }, hostName: {
248
- readOnly: true,
249
- serializedName: "properties.hostName",
250
- type: {
251
- name: "String"
252
- }
253
- }, provisioningState: {
254
- readOnly: true,
255
- serializedName: "properties.provisioningState",
256
- type: {
257
- name: "String"
258
- }
259
- }, resourceState: {
260
- readOnly: true,
261
- serializedName: "properties.resourceState",
262
- type: {
263
- name: "String"
264
- }
265
- }, redisVersion: {
266
- readOnly: true,
267
- serializedName: "properties.redisVersion",
268
- type: {
269
- name: "String"
270
- }
271
- }, privateEndpointConnections: {
272
- readOnly: true,
273
- serializedName: "properties.privateEndpointConnections",
274
- type: {
275
- name: "Sequence",
276
- element: {
277
- type: {
278
- name: "Composite",
279
- className: "PrivateEndpointConnection"
280
- }
281
- }
282
- }
283
- } })
284
- }
285
- };
286
- var ClusterUpdate = {
287
- serializedName: "ClusterUpdate",
288
- type: {
289
- name: "Composite",
290
- className: "ClusterUpdate",
291
- modelProperties: {
292
- sku: {
293
- serializedName: "sku",
294
- type: {
295
- name: "Composite",
296
- className: "Sku"
297
- }
298
- },
299
- minimumTlsVersion: {
300
- serializedName: "properties.minimumTlsVersion",
301
- type: {
302
- name: "String"
303
- }
304
- },
305
- hostName: {
306
- readOnly: true,
307
- serializedName: "properties.hostName",
308
- type: {
309
- name: "String"
310
- }
311
- },
312
- provisioningState: {
313
- readOnly: true,
314
- serializedName: "properties.provisioningState",
315
- type: {
316
- name: "String"
317
- }
318
- },
319
- resourceState: {
320
- readOnly: true,
321
- serializedName: "properties.resourceState",
322
- type: {
323
- name: "String"
324
- }
325
- },
326
- redisVersion: {
327
- readOnly: true,
328
- serializedName: "properties.redisVersion",
329
- type: {
330
- name: "String"
331
- }
332
- },
333
- privateEndpointConnections: {
334
- readOnly: true,
335
- serializedName: "properties.privateEndpointConnections",
336
- type: {
337
- name: "Sequence",
338
- element: {
339
- type: {
340
- name: "Composite",
341
- className: "PrivateEndpointConnection"
342
- }
343
- }
344
- }
345
- },
346
- tags: {
347
- serializedName: "tags",
348
- type: {
349
- name: "Dictionary",
350
- value: {
351
- type: {
352
- name: "String"
353
- }
354
- }
355
- }
356
- }
357
- }
358
- }
359
- };
360
- var Persistence = {
361
- serializedName: "Persistence",
362
- type: {
363
- name: "Composite",
364
- className: "Persistence",
365
- modelProperties: {
366
- aofEnabled: {
367
- serializedName: "aofEnabled",
368
- type: {
369
- name: "Boolean"
370
- }
371
- },
372
- rdbEnabled: {
373
- serializedName: "rdbEnabled",
374
- type: {
375
- name: "Boolean"
376
- }
377
- },
378
- aofFrequency: {
379
- serializedName: "aofFrequency",
380
- type: {
381
- name: "String"
382
- }
383
- },
384
- rdbFrequency: {
385
- serializedName: "rdbFrequency",
386
- type: {
387
- name: "String"
388
- }
389
- }
390
- }
391
- }
392
- };
393
- var Module = {
394
- serializedName: "Module",
395
- type: {
396
- name: "Composite",
397
- className: "Module",
398
- modelProperties: {
399
- name: {
400
- required: true,
401
- serializedName: "name",
402
- type: {
403
- name: "String"
404
- }
405
- },
406
- args: {
407
- serializedName: "args",
408
- type: {
409
- name: "String"
410
- }
411
- },
412
- version: {
413
- readOnly: true,
414
- serializedName: "version",
415
- type: {
416
- name: "String"
417
- }
418
- }
419
- }
420
- }
421
- };
422
- var ProxyResource = {
423
- serializedName: "ProxyResource",
424
- type: {
425
- name: "Composite",
426
- className: "ProxyResource",
427
- modelProperties: __assign({}, Resource.type.modelProperties)
428
- }
429
- };
430
- var Database = {
431
- serializedName: "Database",
432
- type: {
433
- name: "Composite",
434
- className: "Database",
435
- modelProperties: __assign(__assign({}, ProxyResource.type.modelProperties), { clientProtocol: {
436
- serializedName: "properties.clientProtocol",
437
- type: {
438
- name: "String"
439
- }
440
- }, port: {
441
- serializedName: "properties.port",
442
- type: {
443
- name: "Number"
444
- }
445
- }, provisioningState: {
446
- readOnly: true,
447
- serializedName: "properties.provisioningState",
448
- type: {
449
- name: "String"
450
- }
451
- }, resourceState: {
452
- readOnly: true,
453
- serializedName: "properties.resourceState",
454
- type: {
455
- name: "String"
456
- }
457
- }, clusteringPolicy: {
458
- serializedName: "properties.clusteringPolicy",
459
- type: {
460
- name: "String"
461
- }
462
- }, evictionPolicy: {
463
- serializedName: "properties.evictionPolicy",
464
- type: {
465
- name: "String"
466
- }
467
- }, persistence: {
468
- serializedName: "properties.persistence",
469
- type: {
470
- name: "Composite",
471
- className: "Persistence"
472
- }
473
- }, modules: {
474
- serializedName: "properties.modules",
475
- type: {
476
- name: "Sequence",
477
- element: {
478
- type: {
479
- name: "Composite",
480
- className: "Module"
481
- }
482
- }
483
- }
484
- } })
485
- }
486
- };
487
- var DatabaseUpdate = {
488
- serializedName: "DatabaseUpdate",
489
- type: {
490
- name: "Composite",
491
- className: "DatabaseUpdate",
492
- modelProperties: {
493
- clientProtocol: {
494
- serializedName: "properties.clientProtocol",
495
- type: {
496
- name: "String"
497
- }
498
- },
499
- port: {
500
- serializedName: "properties.port",
501
- type: {
502
- name: "Number"
503
- }
504
- },
505
- provisioningState: {
506
- readOnly: true,
507
- serializedName: "properties.provisioningState",
508
- type: {
509
- name: "String"
510
- }
511
- },
512
- resourceState: {
513
- readOnly: true,
514
- serializedName: "properties.resourceState",
515
- type: {
516
- name: "String"
517
- }
518
- },
519
- clusteringPolicy: {
520
- serializedName: "properties.clusteringPolicy",
521
- type: {
522
- name: "String"
523
- }
524
- },
525
- evictionPolicy: {
526
- serializedName: "properties.evictionPolicy",
527
- type: {
528
- name: "String"
529
- }
530
- },
531
- persistence: {
532
- serializedName: "properties.persistence",
533
- type: {
534
- name: "Composite",
535
- className: "Persistence"
536
- }
537
- },
538
- modules: {
539
- serializedName: "properties.modules",
540
- type: {
541
- name: "Sequence",
542
- element: {
543
- type: {
544
- name: "Composite",
545
- className: "Module"
546
- }
547
- }
548
- }
549
- }
550
- }
551
- }
552
- };
553
- var AccessKeys = {
554
- serializedName: "AccessKeys",
555
- type: {
556
- name: "Composite",
557
- className: "AccessKeys",
558
- modelProperties: {
559
- primaryKey: {
560
- readOnly: true,
561
- serializedName: "primaryKey",
562
- type: {
563
- name: "String"
564
- }
565
- },
566
- secondaryKey: {
567
- readOnly: true,
568
- serializedName: "secondaryKey",
569
- type: {
570
- name: "String"
571
- }
572
- }
573
- }
574
- }
575
- };
576
- var RegenerateKeyParameters = {
577
- serializedName: "RegenerateKeyParameters",
578
- type: {
579
- name: "Composite",
580
- className: "RegenerateKeyParameters",
581
- modelProperties: {
582
- keyType: {
583
- required: true,
584
- serializedName: "keyType",
585
- type: {
586
- name: "Enum",
587
- allowedValues: [
588
- "Primary",
589
- "Secondary"
590
- ]
591
- }
592
- }
593
- }
594
- }
595
- };
596
- var ImportClusterParameters = {
597
- serializedName: "ImportClusterParameters",
598
- type: {
599
- name: "Composite",
600
- className: "ImportClusterParameters",
601
- modelProperties: {
602
- sasUri: {
603
- required: true,
604
- serializedName: "sasUri",
605
- type: {
606
- name: "String"
607
- }
608
- }
609
- }
610
- }
611
- };
612
- var ExportClusterParameters = {
613
- serializedName: "ExportClusterParameters",
614
- type: {
615
- name: "Composite",
616
- className: "ExportClusterParameters",
617
- modelProperties: {
618
- sasUri: {
619
- required: true,
620
- serializedName: "sasUri",
621
- type: {
622
- name: "String"
623
- }
624
- }
625
- }
626
- }
627
- };
628
- var ErrorAdditionalInfo = {
629
- serializedName: "ErrorAdditionalInfo",
630
- type: {
631
- name: "Composite",
632
- className: "ErrorAdditionalInfo",
633
- modelProperties: {
634
- type: {
635
- readOnly: true,
636
- serializedName: "type",
637
- type: {
638
- name: "String"
639
- }
640
- },
641
- info: {
642
- readOnly: true,
643
- serializedName: "info",
644
- type: {
645
- name: "Object"
646
- }
647
- }
648
- }
649
- }
650
- };
651
- var ErrorDetail = {
652
- serializedName: "ErrorDetail",
653
- type: {
654
- name: "Composite",
655
- className: "ErrorDetail",
656
- modelProperties: {
657
- code: {
658
- readOnly: true,
659
- serializedName: "code",
660
- type: {
661
- name: "String"
662
- }
663
- },
664
- message: {
665
- readOnly: true,
666
- serializedName: "message",
667
- type: {
668
- name: "String"
669
- }
670
- },
671
- target: {
672
- readOnly: true,
673
- serializedName: "target",
674
- type: {
675
- name: "String"
676
- }
677
- },
678
- details: {
679
- readOnly: true,
680
- serializedName: "details",
681
- type: {
682
- name: "Sequence",
683
- element: {
684
- type: {
685
- name: "Composite",
686
- className: "ErrorDetail"
687
- }
688
- }
689
- }
690
- },
691
- additionalInfo: {
692
- readOnly: true,
693
- serializedName: "additionalInfo",
694
- type: {
695
- name: "Sequence",
696
- element: {
697
- type: {
698
- name: "Composite",
699
- className: "ErrorAdditionalInfo"
700
- }
701
- }
702
- }
703
- }
704
- }
705
- }
706
- };
707
- var ErrorResponse = {
708
- serializedName: "ErrorResponse",
709
- type: {
710
- name: "Composite",
711
- className: "ErrorResponse",
712
- modelProperties: {
713
- error: {
714
- serializedName: "error",
715
- type: {
716
- name: "Composite",
717
- className: "ErrorDetail"
718
- }
719
- }
720
- }
721
- }
722
- };
723
- var OperationStatus = {
724
- serializedName: "OperationStatus",
725
- type: {
726
- name: "Composite",
727
- className: "OperationStatus",
728
- modelProperties: {
729
- id: {
730
- serializedName: "id",
731
- type: {
732
- name: "String"
733
- }
734
- },
735
- name: {
736
- serializedName: "name",
737
- type: {
738
- name: "String"
739
- }
740
- },
741
- startTime: {
742
- serializedName: "startTime",
743
- type: {
744
- name: "String"
745
- }
746
- },
747
- endTime: {
748
- serializedName: "endTime",
749
- type: {
750
- name: "String"
751
- }
752
- },
753
- status: {
754
- serializedName: "status",
755
- type: {
756
- name: "String"
757
- }
758
- },
759
- error: {
760
- serializedName: "error",
761
- type: {
762
- name: "Composite",
763
- className: "ErrorResponse"
764
- }
765
- }
766
- }
767
- }
768
- };
769
- var AzureEntityResource = {
770
- serializedName: "AzureEntityResource",
771
- type: {
772
- name: "Composite",
773
- className: "AzureEntityResource",
774
- modelProperties: __assign(__assign({}, Resource.type.modelProperties), { etag: {
775
- readOnly: true,
776
- serializedName: "etag",
777
- type: {
778
- name: "String"
779
- }
780
- } })
781
- }
782
- };
783
- var PrivateLinkResource = {
784
- serializedName: "PrivateLinkResource",
785
- type: {
786
- name: "Composite",
787
- className: "PrivateLinkResource",
788
- modelProperties: __assign(__assign({}, Resource.type.modelProperties), { groupId: {
789
- readOnly: true,
790
- serializedName: "properties.groupId",
791
- type: {
792
- name: "String"
793
- }
794
- }, requiredMembers: {
795
- readOnly: true,
796
- serializedName: "properties.requiredMembers",
797
- type: {
798
- name: "Sequence",
799
- element: {
800
- type: {
801
- name: "String"
802
- }
803
- }
804
- }
805
- }, requiredZoneNames: {
806
- serializedName: "properties.requiredZoneNames",
807
- type: {
808
- name: "Sequence",
809
- element: {
810
- type: {
811
- name: "String"
812
- }
813
- }
814
- }
815
- } })
816
- }
817
- };
818
- var OperationDisplay = {
819
- serializedName: "Operation_display",
820
- type: {
821
- name: "Composite",
822
- className: "OperationDisplay",
823
- modelProperties: {
824
- provider: {
825
- readOnly: true,
826
- serializedName: "provider",
827
- type: {
828
- name: "String"
829
- }
830
- },
831
- resource: {
832
- readOnly: true,
833
- serializedName: "resource",
834
- type: {
835
- name: "String"
836
- }
837
- },
838
- operation: {
839
- readOnly: true,
840
- serializedName: "operation",
841
- type: {
842
- name: "String"
843
- }
844
- },
845
- description: {
846
- readOnly: true,
847
- serializedName: "description",
848
- type: {
849
- name: "String"
850
- }
851
- }
852
- }
853
- }
854
- };
855
- var Operation = {
856
- serializedName: "Operation",
857
- type: {
858
- name: "Composite",
859
- className: "Operation",
860
- modelProperties: {
861
- name: {
862
- readOnly: true,
863
- serializedName: "name",
864
- type: {
865
- name: "String"
866
- }
867
- },
868
- isDataAction: {
869
- readOnly: true,
870
- serializedName: "isDataAction",
871
- type: {
872
- name: "Boolean"
873
- }
874
- },
875
- display: {
876
- serializedName: "display",
877
- type: {
878
- name: "Composite",
879
- className: "OperationDisplay"
880
- }
881
- },
882
- origin: {
883
- readOnly: true,
884
- serializedName: "origin",
885
- type: {
886
- name: "String"
887
- }
888
- },
889
- actionType: {
890
- readOnly: true,
891
- serializedName: "actionType",
892
- type: {
893
- name: "String"
894
- }
895
- }
896
- }
897
- }
898
- };
899
- var OperationListResult = {
900
- serializedName: "OperationListResult",
901
- type: {
902
- name: "Composite",
903
- className: "OperationListResult",
904
- modelProperties: {
905
- value: {
906
- readOnly: true,
907
- serializedName: "",
908
- type: {
909
- name: "Sequence",
910
- element: {
911
- type: {
912
- name: "Composite",
913
- className: "Operation"
914
- }
915
- }
916
- }
917
- },
918
- nextLink: {
919
- readOnly: true,
920
- serializedName: "nextLink",
921
- type: {
922
- name: "String"
923
- }
924
- }
925
- }
926
- }
927
- };
928
- var ClusterList = {
929
- serializedName: "ClusterList",
930
- type: {
931
- name: "Composite",
932
- className: "ClusterList",
933
- modelProperties: {
934
- value: {
935
- serializedName: "",
936
- type: {
937
- name: "Sequence",
938
- element: {
939
- type: {
940
- name: "Composite",
941
- className: "Cluster"
942
- }
943
- }
944
- }
945
- },
946
- nextLink: {
947
- readOnly: true,
948
- serializedName: "nextLink",
949
- type: {
950
- name: "String"
951
- }
952
- }
953
- }
954
- }
955
- };
956
- var DatabaseList = {
957
- serializedName: "DatabaseList",
958
- type: {
959
- name: "Composite",
960
- className: "DatabaseList",
961
- modelProperties: {
962
- value: {
963
- serializedName: "",
964
- type: {
965
- name: "Sequence",
966
- element: {
967
- type: {
968
- name: "Composite",
969
- className: "Database"
970
- }
971
- }
972
- }
973
- },
974
- nextLink: {
975
- readOnly: true,
976
- serializedName: "nextLink",
977
- type: {
978
- name: "String"
979
- }
980
- }
981
- }
982
- }
983
- };
984
- var PrivateEndpointConnectionListResult = {
985
- serializedName: "PrivateEndpointConnectionListResult",
986
- type: {
987
- name: "Composite",
988
- className: "PrivateEndpointConnectionListResult",
989
- modelProperties: {
990
- value: {
991
- serializedName: "",
992
- type: {
993
- name: "Sequence",
994
- element: {
995
- type: {
996
- name: "Composite",
997
- className: "PrivateEndpointConnection"
998
- }
999
- }
1000
- }
1001
- }
1002
- }
1003
- }
1004
- };
1005
- var PrivateLinkResourceListResult = {
1006
- serializedName: "PrivateLinkResourceListResult",
1007
- type: {
1008
- name: "Composite",
1009
- className: "PrivateLinkResourceListResult",
1010
- modelProperties: {
1011
- value: {
1012
- serializedName: "",
1013
- type: {
1014
- name: "Sequence",
1015
- element: {
1016
- type: {
1017
- name: "Composite",
1018
- className: "PrivateLinkResource"
1019
- }
1020
- }
1021
- }
1022
- }
1023
- }
1024
- }
1025
- };
1026
-
1027
- var mappers = /*#__PURE__*/Object.freeze({
1028
- __proto__: null,
1029
- CloudError: CloudError,
1030
- BaseResource: BaseResource,
1031
- Sku: Sku,
1032
- PrivateEndpoint: PrivateEndpoint,
1033
- PrivateLinkServiceConnectionState: PrivateLinkServiceConnectionState,
1034
- Resource: Resource,
1035
- PrivateEndpointConnection: PrivateEndpointConnection,
1036
- TrackedResource: TrackedResource,
1037
- Cluster: Cluster,
1038
- ClusterUpdate: ClusterUpdate,
1039
- Persistence: Persistence,
1040
- Module: Module,
1041
- ProxyResource: ProxyResource,
1042
- Database: Database,
1043
- DatabaseUpdate: DatabaseUpdate,
1044
- AccessKeys: AccessKeys,
1045
- RegenerateKeyParameters: RegenerateKeyParameters,
1046
- ImportClusterParameters: ImportClusterParameters,
1047
- ExportClusterParameters: ExportClusterParameters,
1048
- ErrorAdditionalInfo: ErrorAdditionalInfo,
1049
- ErrorDetail: ErrorDetail,
1050
- ErrorResponse: ErrorResponse,
1051
- OperationStatus: OperationStatus,
1052
- AzureEntityResource: AzureEntityResource,
1053
- PrivateLinkResource: PrivateLinkResource,
1054
- OperationDisplay: OperationDisplay,
1055
- Operation: Operation,
1056
- OperationListResult: OperationListResult,
1057
- ClusterList: ClusterList,
1058
- DatabaseList: DatabaseList,
1059
- PrivateEndpointConnectionListResult: PrivateEndpointConnectionListResult,
1060
- PrivateLinkResourceListResult: PrivateLinkResourceListResult
1061
- });
1062
-
1063
- /*
1064
- * Copyright (c) Microsoft Corporation.
1065
- * Licensed under the MIT License.
1066
- *
1067
- * Code generated by Microsoft (R) AutoRest Code Generator.
1068
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
1069
- */
1070
-
1071
- var Mappers = /*#__PURE__*/Object.freeze({
1072
- __proto__: null,
1073
- ErrorAdditionalInfo: ErrorAdditionalInfo,
1074
- ErrorDetail: ErrorDetail,
1075
- ErrorResponse: ErrorResponse,
1076
- Operation: Operation,
1077
- OperationDisplay: OperationDisplay,
1078
- OperationListResult: OperationListResult
1079
- });
1080
-
1081
- /*
1082
- * Copyright (c) Microsoft Corporation.
1083
- * Licensed under the MIT License.
1084
- *
1085
- * Code generated by Microsoft (R) AutoRest Code Generator.
1086
- * Changes may cause incorrect behavior and will be lost if the code is
1087
- * regenerated.
1088
- */
1089
- var acceptLanguage = {
1090
- parameterPath: "acceptLanguage",
1091
- mapper: {
1092
- serializedName: "accept-language",
1093
- defaultValue: 'en-US',
1094
- type: {
1095
- name: "String"
1096
- }
1097
- }
1098
- };
1099
- var apiVersion = {
1100
- parameterPath: "apiVersion",
1101
- mapper: {
1102
- required: true,
1103
- serializedName: "api-version",
1104
- constraints: {
1105
- MinLength: 1
1106
- },
1107
- type: {
1108
- name: "String"
1109
- }
1110
- }
1111
- };
1112
- var clusterName = {
1113
- parameterPath: "clusterName",
1114
- mapper: {
1115
- required: true,
1116
- serializedName: "clusterName",
1117
- type: {
1118
- name: "String"
1119
- }
1120
- }
1121
- };
1122
- var databaseName = {
1123
- parameterPath: "databaseName",
1124
- mapper: {
1125
- required: true,
1126
- serializedName: "databaseName",
1127
- type: {
1128
- name: "String"
1129
- }
1130
- }
1131
- };
1132
- var location = {
1133
- parameterPath: "location",
1134
- mapper: {
1135
- required: true,
1136
- serializedName: "location",
1137
- type: {
1138
- name: "String"
1139
- }
1140
- }
1141
- };
1142
- var nextPageLink = {
1143
- parameterPath: "nextPageLink",
1144
- mapper: {
1145
- required: true,
1146
- serializedName: "nextLink",
1147
- type: {
1148
- name: "String"
1149
- }
1150
- },
1151
- skipEncoding: true
1152
- };
1153
- var operationId = {
1154
- parameterPath: "operationId",
1155
- mapper: {
1156
- required: true,
1157
- serializedName: "operationId",
1158
- type: {
1159
- name: "String"
1160
- }
1161
- }
1162
- };
1163
- var privateEndpointConnectionName = {
1164
- parameterPath: "privateEndpointConnectionName",
1165
- mapper: {
1166
- required: true,
1167
- serializedName: "privateEndpointConnectionName",
1168
- type: {
1169
- name: "String"
1170
- }
1171
- }
1172
- };
1173
- var resourceGroupName = {
1174
- parameterPath: "resourceGroupName",
1175
- mapper: {
1176
- required: true,
1177
- serializedName: "resourceGroupName",
1178
- constraints: {
1179
- MaxLength: 90,
1180
- MinLength: 1,
1181
- Pattern: /^[-\w\._\(\)]+$/
1182
- },
1183
- type: {
1184
- name: "String"
1185
- }
1186
- }
1187
- };
1188
- var subscriptionId = {
1189
- parameterPath: "subscriptionId",
1190
- mapper: {
1191
- required: true,
1192
- serializedName: "subscriptionId",
1193
- constraints: {
1194
- MinLength: 1
1195
- },
1196
- type: {
1197
- name: "String"
1198
- }
1199
- }
1200
- };
1201
-
1202
- /*
1203
- * Copyright (c) Microsoft Corporation.
1204
- * Licensed under the MIT License.
1205
- *
1206
- * Code generated by Microsoft (R) AutoRest Code Generator.
1207
- * Changes may cause incorrect behavior and will be lost if the code is
1208
- * regenerated.
1209
- */
1210
- /** Class representing a Operations. */
1211
- var Operations = /** @class */ (function () {
1212
- /**
1213
- * Create a Operations.
1214
- * @param {RedisEnterpriseManagementClientContext} client Reference to the service client.
1215
- */
1216
- function Operations(client) {
1217
- this.client = client;
1218
- }
1219
- Operations.prototype.list = function (options, callback) {
1220
- return this.client.sendOperationRequest({
1221
- options: options
1222
- }, listOperationSpec, callback);
1223
- };
1224
- Operations.prototype.listNext = function (nextPageLink, options, callback) {
1225
- return this.client.sendOperationRequest({
1226
- nextPageLink: nextPageLink,
1227
- options: options
1228
- }, listNextOperationSpec, callback);
1229
- };
1230
- return Operations;
1231
- }());
1232
- // Operation Specifications
1233
- var serializer = new msRest.Serializer(Mappers);
1234
- var listOperationSpec = {
1235
- httpMethod: "GET",
1236
- path: "providers/Microsoft.Cache/operations",
1237
- queryParameters: [
1238
- apiVersion
1239
- ],
1240
- headerParameters: [
1241
- acceptLanguage
1242
- ],
1243
- responses: {
1244
- 200: {
1245
- bodyMapper: OperationListResult
1246
- },
1247
- default: {
1248
- bodyMapper: ErrorResponse
1249
- }
1250
- },
1251
- serializer: serializer
1252
- };
1253
- var listNextOperationSpec = {
1254
- httpMethod: "GET",
1255
- baseUrl: "https://management.azure.com",
1256
- path: "{nextLink}",
1257
- urlParameters: [
1258
- nextPageLink
1259
- ],
1260
- queryParameters: [
1261
- apiVersion
1262
- ],
1263
- headerParameters: [
1264
- acceptLanguage
1265
- ],
1266
- responses: {
1267
- 200: {
1268
- bodyMapper: OperationListResult
1269
- },
1270
- default: {
1271
- bodyMapper: ErrorResponse
1272
- }
1273
- },
1274
- serializer: serializer
1275
- };
1276
-
1277
- /*
1278
- * Copyright (c) Microsoft Corporation.
1279
- * Licensed under the MIT License.
1280
- *
1281
- * Code generated by Microsoft (R) AutoRest Code Generator.
1282
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
1283
- */
1284
-
1285
- var Mappers$1 = /*#__PURE__*/Object.freeze({
1286
- __proto__: null,
1287
- ErrorAdditionalInfo: ErrorAdditionalInfo,
1288
- ErrorDetail: ErrorDetail,
1289
- ErrorResponse: ErrorResponse,
1290
- OperationStatus: OperationStatus
1291
- });
1292
-
1293
- /*
1294
- * Copyright (c) Microsoft Corporation.
1295
- * Licensed under the MIT License.
1296
- *
1297
- * Code generated by Microsoft (R) AutoRest Code Generator.
1298
- * Changes may cause incorrect behavior and will be lost if the code is
1299
- * regenerated.
1300
- */
1301
- /** Class representing a OperationsStatus. */
1302
- var OperationsStatus = /** @class */ (function () {
1303
- /**
1304
- * Create a OperationsStatus.
1305
- * @param {RedisEnterpriseManagementClientContext} client Reference to the service client.
1306
- */
1307
- function OperationsStatus(client) {
1308
- this.client = client;
1309
- }
1310
- OperationsStatus.prototype.get = function (location, operationId, options, callback) {
1311
- return this.client.sendOperationRequest({
1312
- location: location,
1313
- operationId: operationId,
1314
- options: options
1315
- }, getOperationSpec, callback);
1316
- };
1317
- return OperationsStatus;
1318
- }());
1319
- // Operation Specifications
1320
- var serializer$1 = new msRest.Serializer(Mappers$1);
1321
- var getOperationSpec = {
1322
- httpMethod: "GET",
1323
- path: "subscriptions/{subscriptionId}/providers/Microsoft.Cache/locations/{location}/operationsStatus/{operationId}",
1324
- urlParameters: [
1325
- location,
1326
- operationId,
1327
- subscriptionId
1328
- ],
1329
- queryParameters: [
1330
- apiVersion
1331
- ],
1332
- headerParameters: [
1333
- acceptLanguage
1334
- ],
1335
- responses: {
1336
- 200: {
1337
- bodyMapper: OperationStatus
1338
- },
1339
- default: {
1340
- bodyMapper: ErrorResponse
1341
- }
1342
- },
1343
- serializer: serializer$1
1344
- };
1345
-
1346
- /*
1347
- * Copyright (c) Microsoft Corporation.
1348
- * Licensed under the MIT License.
1349
- *
1350
- * Code generated by Microsoft (R) AutoRest Code Generator.
1351
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
1352
- */
1353
-
1354
- var Mappers$2 = /*#__PURE__*/Object.freeze({
1355
- __proto__: null,
1356
- AzureEntityResource: AzureEntityResource,
1357
- BaseResource: BaseResource,
1358
- Cluster: Cluster,
1359
- ClusterList: ClusterList,
1360
- ClusterUpdate: ClusterUpdate,
1361
- Database: Database,
1362
- ErrorAdditionalInfo: ErrorAdditionalInfo,
1363
- ErrorDetail: ErrorDetail,
1364
- ErrorResponse: ErrorResponse,
1365
- Module: Module,
1366
- Persistence: Persistence,
1367
- PrivateEndpoint: PrivateEndpoint,
1368
- PrivateEndpointConnection: PrivateEndpointConnection,
1369
- PrivateLinkResource: PrivateLinkResource,
1370
- PrivateLinkServiceConnectionState: PrivateLinkServiceConnectionState,
1371
- ProxyResource: ProxyResource,
1372
- Resource: Resource,
1373
- Sku: Sku,
1374
- TrackedResource: TrackedResource
1375
- });
1376
-
1377
- /*
1378
- * Copyright (c) Microsoft Corporation.
1379
- * Licensed under the MIT License.
1380
- *
1381
- * Code generated by Microsoft (R) AutoRest Code Generator.
1382
- * Changes may cause incorrect behavior and will be lost if the code is
1383
- * regenerated.
1384
- */
1385
- /** Class representing a RedisEnterprise. */
1386
- var RedisEnterprise = /** @class */ (function () {
1387
- /**
1388
- * Create a RedisEnterprise.
1389
- * @param {RedisEnterpriseManagementClientContext} client Reference to the service client.
1390
- */
1391
- function RedisEnterprise(client) {
1392
- this.client = client;
1393
- }
1394
- /**
1395
- * Creates or updates an existing (overwrite/recreate, with potential downtime) cache cluster
1396
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
1397
- * @param clusterName The name of the RedisEnterprise cluster.
1398
- * @param parameters Parameters supplied to the Create RedisEnterprise operation.
1399
- * @param [options] The optional parameters
1400
- * @returns Promise<Models.RedisEnterpriseCreateResponse>
1401
- */
1402
- RedisEnterprise.prototype.create = function (resourceGroupName, clusterName, parameters, options) {
1403
- return this.beginCreate(resourceGroupName, clusterName, parameters, options)
1404
- .then(function (lroPoller) { return lroPoller.pollUntilFinished(); });
1405
- };
1406
- /**
1407
- * Updates an existing RedisEnterprise cluster
1408
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
1409
- * @param clusterName The name of the RedisEnterprise cluster.
1410
- * @param parameters Parameters supplied to the Update RedisEnterprise operation.
1411
- * @param [options] The optional parameters
1412
- * @returns Promise<Models.RedisEnterpriseUpdateResponse>
1413
- */
1414
- RedisEnterprise.prototype.update = function (resourceGroupName, clusterName, parameters, options) {
1415
- return this.beginUpdate(resourceGroupName, clusterName, parameters, options)
1416
- .then(function (lroPoller) { return lroPoller.pollUntilFinished(); });
1417
- };
1418
- /**
1419
- * Deletes a RedisEnterprise cache cluster.
1420
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
1421
- * @param clusterName The name of the RedisEnterprise cluster.
1422
- * @param [options] The optional parameters
1423
- * @returns Promise<msRest.RestResponse>
1424
- */
1425
- RedisEnterprise.prototype.deleteMethod = function (resourceGroupName, clusterName, options) {
1426
- return this.beginDeleteMethod(resourceGroupName, clusterName, options)
1427
- .then(function (lroPoller) { return lroPoller.pollUntilFinished(); });
1428
- };
1429
- RedisEnterprise.prototype.get = function (resourceGroupName, clusterName, options, callback) {
1430
- return this.client.sendOperationRequest({
1431
- resourceGroupName: resourceGroupName,
1432
- clusterName: clusterName,
1433
- options: options
1434
- }, getOperationSpec$1, callback);
1435
- };
1436
- RedisEnterprise.prototype.listByResourceGroup = function (resourceGroupName, options, callback) {
1437
- return this.client.sendOperationRequest({
1438
- resourceGroupName: resourceGroupName,
1439
- options: options
1440
- }, listByResourceGroupOperationSpec, callback);
1441
- };
1442
- RedisEnterprise.prototype.list = function (options, callback) {
1443
- return this.client.sendOperationRequest({
1444
- options: options
1445
- }, listOperationSpec$1, callback);
1446
- };
1447
- /**
1448
- * Creates or updates an existing (overwrite/recreate, with potential downtime) cache cluster
1449
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
1450
- * @param clusterName The name of the RedisEnterprise cluster.
1451
- * @param parameters Parameters supplied to the Create RedisEnterprise operation.
1452
- * @param [options] The optional parameters
1453
- * @returns Promise<msRestAzure.LROPoller>
1454
- */
1455
- RedisEnterprise.prototype.beginCreate = function (resourceGroupName, clusterName, parameters, options) {
1456
- return this.client.sendLRORequest({
1457
- resourceGroupName: resourceGroupName,
1458
- clusterName: clusterName,
1459
- parameters: parameters,
1460
- options: options
1461
- }, beginCreateOperationSpec, options);
1462
- };
1463
- /**
1464
- * Updates an existing RedisEnterprise cluster
1465
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
1466
- * @param clusterName The name of the RedisEnterprise cluster.
1467
- * @param parameters Parameters supplied to the Update RedisEnterprise operation.
1468
- * @param [options] The optional parameters
1469
- * @returns Promise<msRestAzure.LROPoller>
1470
- */
1471
- RedisEnterprise.prototype.beginUpdate = function (resourceGroupName, clusterName, parameters, options) {
1472
- return this.client.sendLRORequest({
1473
- resourceGroupName: resourceGroupName,
1474
- clusterName: clusterName,
1475
- parameters: parameters,
1476
- options: options
1477
- }, beginUpdateOperationSpec, options);
1478
- };
1479
- /**
1480
- * Deletes a RedisEnterprise cache cluster.
1481
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
1482
- * @param clusterName The name of the RedisEnterprise cluster.
1483
- * @param [options] The optional parameters
1484
- * @returns Promise<msRestAzure.LROPoller>
1485
- */
1486
- RedisEnterprise.prototype.beginDeleteMethod = function (resourceGroupName, clusterName, options) {
1487
- return this.client.sendLRORequest({
1488
- resourceGroupName: resourceGroupName,
1489
- clusterName: clusterName,
1490
- options: options
1491
- }, beginDeleteMethodOperationSpec, options);
1492
- };
1493
- RedisEnterprise.prototype.listByResourceGroupNext = function (nextPageLink, options, callback) {
1494
- return this.client.sendOperationRequest({
1495
- nextPageLink: nextPageLink,
1496
- options: options
1497
- }, listByResourceGroupNextOperationSpec, callback);
1498
- };
1499
- RedisEnterprise.prototype.listNext = function (nextPageLink, options, callback) {
1500
- return this.client.sendOperationRequest({
1501
- nextPageLink: nextPageLink,
1502
- options: options
1503
- }, listNextOperationSpec$1, callback);
1504
- };
1505
- return RedisEnterprise;
1506
- }());
1507
- // Operation Specifications
1508
- var serializer$2 = new msRest.Serializer(Mappers$2);
1509
- var getOperationSpec$1 = {
1510
- httpMethod: "GET",
1511
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}",
1512
- urlParameters: [
1513
- resourceGroupName,
1514
- clusterName,
1515
- subscriptionId
1516
- ],
1517
- queryParameters: [
1518
- apiVersion
1519
- ],
1520
- headerParameters: [
1521
- acceptLanguage
1522
- ],
1523
- responses: {
1524
- 200: {
1525
- bodyMapper: Cluster
1526
- },
1527
- default: {
1528
- bodyMapper: ErrorResponse
1529
- }
1530
- },
1531
- serializer: serializer$2
1532
- };
1533
- var listByResourceGroupOperationSpec = {
1534
- httpMethod: "GET",
1535
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise",
1536
- urlParameters: [
1537
- resourceGroupName,
1538
- subscriptionId
1539
- ],
1540
- queryParameters: [
1541
- apiVersion
1542
- ],
1543
- headerParameters: [
1544
- acceptLanguage
1545
- ],
1546
- responses: {
1547
- 200: {
1548
- bodyMapper: ClusterList
1549
- },
1550
- default: {
1551
- bodyMapper: ErrorResponse
1552
- }
1553
- },
1554
- serializer: serializer$2
1555
- };
1556
- var listOperationSpec$1 = {
1557
- httpMethod: "GET",
1558
- path: "subscriptions/{subscriptionId}/providers/Microsoft.Cache/redisEnterprise",
1559
- urlParameters: [
1560
- subscriptionId
1561
- ],
1562
- queryParameters: [
1563
- apiVersion
1564
- ],
1565
- headerParameters: [
1566
- acceptLanguage
1567
- ],
1568
- responses: {
1569
- 200: {
1570
- bodyMapper: ClusterList
1571
- },
1572
- default: {
1573
- bodyMapper: ErrorResponse
1574
- }
1575
- },
1576
- serializer: serializer$2
1577
- };
1578
- var beginCreateOperationSpec = {
1579
- httpMethod: "PUT",
1580
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}",
1581
- urlParameters: [
1582
- resourceGroupName,
1583
- clusterName,
1584
- subscriptionId
1585
- ],
1586
- queryParameters: [
1587
- apiVersion
1588
- ],
1589
- headerParameters: [
1590
- acceptLanguage
1591
- ],
1592
- requestBody: {
1593
- parameterPath: "parameters",
1594
- mapper: __assign(__assign({}, Cluster), { required: true })
1595
- },
1596
- responses: {
1597
- 200: {
1598
- bodyMapper: Cluster
1599
- },
1600
- 201: {
1601
- bodyMapper: Cluster
1602
- },
1603
- default: {
1604
- bodyMapper: ErrorResponse
1605
- }
1606
- },
1607
- serializer: serializer$2
1608
- };
1609
- var beginUpdateOperationSpec = {
1610
- httpMethod: "PATCH",
1611
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}",
1612
- urlParameters: [
1613
- resourceGroupName,
1614
- clusterName,
1615
- subscriptionId
1616
- ],
1617
- queryParameters: [
1618
- apiVersion
1619
- ],
1620
- headerParameters: [
1621
- acceptLanguage
1622
- ],
1623
- requestBody: {
1624
- parameterPath: "parameters",
1625
- mapper: __assign(__assign({}, ClusterUpdate), { required: true })
1626
- },
1627
- responses: {
1628
- 200: {
1629
- bodyMapper: Cluster
1630
- },
1631
- 202: {},
1632
- default: {
1633
- bodyMapper: ErrorResponse
1634
- }
1635
- },
1636
- serializer: serializer$2
1637
- };
1638
- var beginDeleteMethodOperationSpec = {
1639
- httpMethod: "DELETE",
1640
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}",
1641
- urlParameters: [
1642
- resourceGroupName,
1643
- clusterName,
1644
- subscriptionId
1645
- ],
1646
- queryParameters: [
1647
- apiVersion
1648
- ],
1649
- headerParameters: [
1650
- acceptLanguage
1651
- ],
1652
- responses: {
1653
- 200: {},
1654
- 202: {},
1655
- 204: {},
1656
- default: {
1657
- bodyMapper: ErrorResponse
1658
- }
1659
- },
1660
- serializer: serializer$2
1661
- };
1662
- var listByResourceGroupNextOperationSpec = {
1663
- httpMethod: "GET",
1664
- baseUrl: "https://management.azure.com",
1665
- path: "{nextLink}",
1666
- urlParameters: [
1667
- nextPageLink
1668
- ],
1669
- queryParameters: [
1670
- apiVersion
1671
- ],
1672
- headerParameters: [
1673
- acceptLanguage
1674
- ],
1675
- responses: {
1676
- 200: {
1677
- bodyMapper: ClusterList
1678
- },
1679
- default: {
1680
- bodyMapper: ErrorResponse
1681
- }
1682
- },
1683
- serializer: serializer$2
1684
- };
1685
- var listNextOperationSpec$1 = {
1686
- httpMethod: "GET",
1687
- baseUrl: "https://management.azure.com",
1688
- path: "{nextLink}",
1689
- urlParameters: [
1690
- nextPageLink
1691
- ],
1692
- queryParameters: [
1693
- apiVersion
1694
- ],
1695
- headerParameters: [
1696
- acceptLanguage
1697
- ],
1698
- responses: {
1699
- 200: {
1700
- bodyMapper: ClusterList
1701
- },
1702
- default: {
1703
- bodyMapper: ErrorResponse
1704
- }
1705
- },
1706
- serializer: serializer$2
1707
- };
1708
-
1709
- /*
1710
- * Copyright (c) Microsoft Corporation.
1711
- * Licensed under the MIT License.
1712
- *
1713
- * Code generated by Microsoft (R) AutoRest Code Generator.
1714
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
1715
- */
1716
-
1717
- var Mappers$3 = /*#__PURE__*/Object.freeze({
1718
- __proto__: null,
1719
- AccessKeys: AccessKeys,
1720
- AzureEntityResource: AzureEntityResource,
1721
- BaseResource: BaseResource,
1722
- Cluster: Cluster,
1723
- Database: Database,
1724
- DatabaseList: DatabaseList,
1725
- DatabaseUpdate: DatabaseUpdate,
1726
- ErrorAdditionalInfo: ErrorAdditionalInfo,
1727
- ErrorDetail: ErrorDetail,
1728
- ErrorResponse: ErrorResponse,
1729
- ExportClusterParameters: ExportClusterParameters,
1730
- ImportClusterParameters: ImportClusterParameters,
1731
- Module: Module,
1732
- Persistence: Persistence,
1733
- PrivateEndpoint: PrivateEndpoint,
1734
- PrivateEndpointConnection: PrivateEndpointConnection,
1735
- PrivateLinkResource: PrivateLinkResource,
1736
- PrivateLinkServiceConnectionState: PrivateLinkServiceConnectionState,
1737
- ProxyResource: ProxyResource,
1738
- RegenerateKeyParameters: RegenerateKeyParameters,
1739
- Resource: Resource,
1740
- Sku: Sku,
1741
- TrackedResource: TrackedResource
1742
- });
1743
-
1744
- /*
1745
- * Copyright (c) Microsoft Corporation.
1746
- * Licensed under the MIT License.
1747
- *
1748
- * Code generated by Microsoft (R) AutoRest Code Generator.
1749
- * Changes may cause incorrect behavior and will be lost if the code is
1750
- * regenerated.
1751
- */
1752
- /** Class representing a Databases. */
1753
- var Databases = /** @class */ (function () {
1754
- /**
1755
- * Create a Databases.
1756
- * @param {RedisEnterpriseManagementClientContext} client Reference to the service client.
1757
- */
1758
- function Databases(client) {
1759
- this.client = client;
1760
- }
1761
- Databases.prototype.listByCluster = function (resourceGroupName, clusterName, options, callback) {
1762
- return this.client.sendOperationRequest({
1763
- resourceGroupName: resourceGroupName,
1764
- clusterName: clusterName,
1765
- options: options
1766
- }, listByClusterOperationSpec, callback);
1767
- };
1768
- /**
1769
- * Creates a database
1770
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
1771
- * @param clusterName The name of the RedisEnterprise cluster.
1772
- * @param databaseName The name of the database.
1773
- * @param parameters Parameters supplied to the create or update database operation.
1774
- * @param [options] The optional parameters
1775
- * @returns Promise<Models.DatabasesCreateResponse>
1776
- */
1777
- Databases.prototype.create = function (resourceGroupName, clusterName, databaseName, parameters, options) {
1778
- return this.beginCreate(resourceGroupName, clusterName, databaseName, parameters, options)
1779
- .then(function (lroPoller) { return lroPoller.pollUntilFinished(); });
1780
- };
1781
- /**
1782
- * Updates a database
1783
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
1784
- * @param clusterName The name of the RedisEnterprise cluster.
1785
- * @param databaseName The name of the database.
1786
- * @param parameters Parameters supplied to the create or update database operation.
1787
- * @param [options] The optional parameters
1788
- * @returns Promise<Models.DatabasesUpdateResponse>
1789
- */
1790
- Databases.prototype.update = function (resourceGroupName, clusterName, databaseName, parameters, options) {
1791
- return this.beginUpdate(resourceGroupName, clusterName, databaseName, parameters, options)
1792
- .then(function (lroPoller) { return lroPoller.pollUntilFinished(); });
1793
- };
1794
- Databases.prototype.get = function (resourceGroupName, clusterName, databaseName, options, callback) {
1795
- return this.client.sendOperationRequest({
1796
- resourceGroupName: resourceGroupName,
1797
- clusterName: clusterName,
1798
- databaseName: databaseName,
1799
- options: options
1800
- }, getOperationSpec$2, callback);
1801
- };
1802
- /**
1803
- * Deletes a single database
1804
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
1805
- * @param clusterName The name of the RedisEnterprise cluster.
1806
- * @param databaseName The name of the database.
1807
- * @param [options] The optional parameters
1808
- * @returns Promise<msRest.RestResponse>
1809
- */
1810
- Databases.prototype.deleteMethod = function (resourceGroupName, clusterName, databaseName, options) {
1811
- return this.beginDeleteMethod(resourceGroupName, clusterName, databaseName, options)
1812
- .then(function (lroPoller) { return lroPoller.pollUntilFinished(); });
1813
- };
1814
- Databases.prototype.listKeys = function (resourceGroupName, clusterName, databaseName, options, callback) {
1815
- return this.client.sendOperationRequest({
1816
- resourceGroupName: resourceGroupName,
1817
- clusterName: clusterName,
1818
- databaseName: databaseName,
1819
- options: options
1820
- }, listKeysOperationSpec, callback);
1821
- };
1822
- /**
1823
- * Regenerates the RedisEnterprise database's access keys.
1824
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
1825
- * @param clusterName The name of the RedisEnterprise cluster.
1826
- * @param databaseName The name of the database.
1827
- * @param keyType Which access key to regenerate. Possible values include: 'Primary', 'Secondary'
1828
- * @param [options] The optional parameters
1829
- * @returns Promise<Models.DatabasesRegenerateKeyResponse>
1830
- */
1831
- Databases.prototype.regenerateKey = function (resourceGroupName, clusterName, databaseName, keyType, options) {
1832
- return this.beginRegenerateKey(resourceGroupName, clusterName, databaseName, keyType, options)
1833
- .then(function (lroPoller) { return lroPoller.pollUntilFinished(); });
1834
- };
1835
- /**
1836
- * Imports a database file to target database.
1837
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
1838
- * @param clusterName The name of the RedisEnterprise cluster.
1839
- * @param databaseName The name of the database.
1840
- * @param sasUri SAS URI for the target blob to import from
1841
- * @param [options] The optional parameters
1842
- * @returns Promise<msRest.RestResponse>
1843
- */
1844
- Databases.prototype.importMethod = function (resourceGroupName, clusterName, databaseName, sasUri, options) {
1845
- return this.beginImportMethod(resourceGroupName, clusterName, databaseName, sasUri, options)
1846
- .then(function (lroPoller) { return lroPoller.pollUntilFinished(); });
1847
- };
1848
- /**
1849
- * Exports a database file from target database.
1850
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
1851
- * @param clusterName The name of the RedisEnterprise cluster.
1852
- * @param databaseName The name of the database.
1853
- * @param sasUri SAS URI for the target directory to export to
1854
- * @param [options] The optional parameters
1855
- * @returns Promise<msRest.RestResponse>
1856
- */
1857
- Databases.prototype.exportMethod = function (resourceGroupName, clusterName, databaseName, sasUri, options) {
1858
- return this.beginExportMethod(resourceGroupName, clusterName, databaseName, sasUri, options)
1859
- .then(function (lroPoller) { return lroPoller.pollUntilFinished(); });
1860
- };
1861
- /**
1862
- * Creates a database
1863
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
1864
- * @param clusterName The name of the RedisEnterprise cluster.
1865
- * @param databaseName The name of the database.
1866
- * @param parameters Parameters supplied to the create or update database operation.
1867
- * @param [options] The optional parameters
1868
- * @returns Promise<msRestAzure.LROPoller>
1869
- */
1870
- Databases.prototype.beginCreate = function (resourceGroupName, clusterName, databaseName, parameters, options) {
1871
- return this.client.sendLRORequest({
1872
- resourceGroupName: resourceGroupName,
1873
- clusterName: clusterName,
1874
- databaseName: databaseName,
1875
- parameters: parameters,
1876
- options: options
1877
- }, beginCreateOperationSpec$1, options);
1878
- };
1879
- /**
1880
- * Updates a database
1881
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
1882
- * @param clusterName The name of the RedisEnterprise cluster.
1883
- * @param databaseName The name of the database.
1884
- * @param parameters Parameters supplied to the create or update database operation.
1885
- * @param [options] The optional parameters
1886
- * @returns Promise<msRestAzure.LROPoller>
1887
- */
1888
- Databases.prototype.beginUpdate = function (resourceGroupName, clusterName, databaseName, parameters, options) {
1889
- return this.client.sendLRORequest({
1890
- resourceGroupName: resourceGroupName,
1891
- clusterName: clusterName,
1892
- databaseName: databaseName,
1893
- parameters: parameters,
1894
- options: options
1895
- }, beginUpdateOperationSpec$1, options);
1896
- };
1897
- /**
1898
- * Deletes a single database
1899
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
1900
- * @param clusterName The name of the RedisEnterprise cluster.
1901
- * @param databaseName The name of the database.
1902
- * @param [options] The optional parameters
1903
- * @returns Promise<msRestAzure.LROPoller>
1904
- */
1905
- Databases.prototype.beginDeleteMethod = function (resourceGroupName, clusterName, databaseName, options) {
1906
- return this.client.sendLRORequest({
1907
- resourceGroupName: resourceGroupName,
1908
- clusterName: clusterName,
1909
- databaseName: databaseName,
1910
- options: options
1911
- }, beginDeleteMethodOperationSpec$1, options);
1912
- };
1913
- /**
1914
- * Regenerates the RedisEnterprise database's access keys.
1915
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
1916
- * @param clusterName The name of the RedisEnterprise cluster.
1917
- * @param databaseName The name of the database.
1918
- * @param keyType Which access key to regenerate. Possible values include: 'Primary', 'Secondary'
1919
- * @param [options] The optional parameters
1920
- * @returns Promise<msRestAzure.LROPoller>
1921
- */
1922
- Databases.prototype.beginRegenerateKey = function (resourceGroupName, clusterName, databaseName, keyType, options) {
1923
- return this.client.sendLRORequest({
1924
- resourceGroupName: resourceGroupName,
1925
- clusterName: clusterName,
1926
- databaseName: databaseName,
1927
- keyType: keyType,
1928
- options: options
1929
- }, beginRegenerateKeyOperationSpec, options);
1930
- };
1931
- /**
1932
- * Imports a database file to target database.
1933
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
1934
- * @param clusterName The name of the RedisEnterprise cluster.
1935
- * @param databaseName The name of the database.
1936
- * @param sasUri SAS URI for the target blob to import from
1937
- * @param [options] The optional parameters
1938
- * @returns Promise<msRestAzure.LROPoller>
1939
- */
1940
- Databases.prototype.beginImportMethod = function (resourceGroupName, clusterName, databaseName, sasUri, options) {
1941
- return this.client.sendLRORequest({
1942
- resourceGroupName: resourceGroupName,
1943
- clusterName: clusterName,
1944
- databaseName: databaseName,
1945
- sasUri: sasUri,
1946
- options: options
1947
- }, beginImportMethodOperationSpec, options);
1948
- };
1949
- /**
1950
- * Exports a database file from target database.
1951
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
1952
- * @param clusterName The name of the RedisEnterprise cluster.
1953
- * @param databaseName The name of the database.
1954
- * @param sasUri SAS URI for the target directory to export to
1955
- * @param [options] The optional parameters
1956
- * @returns Promise<msRestAzure.LROPoller>
1957
- */
1958
- Databases.prototype.beginExportMethod = function (resourceGroupName, clusterName, databaseName, sasUri, options) {
1959
- return this.client.sendLRORequest({
1960
- resourceGroupName: resourceGroupName,
1961
- clusterName: clusterName,
1962
- databaseName: databaseName,
1963
- sasUri: sasUri,
1964
- options: options
1965
- }, beginExportMethodOperationSpec, options);
1966
- };
1967
- Databases.prototype.listByClusterNext = function (nextPageLink, options, callback) {
1968
- return this.client.sendOperationRequest({
1969
- nextPageLink: nextPageLink,
1970
- options: options
1971
- }, listByClusterNextOperationSpec, callback);
1972
- };
1973
- return Databases;
1974
- }());
1975
- // Operation Specifications
1976
- var serializer$3 = new msRest.Serializer(Mappers$3);
1977
- var listByClusterOperationSpec = {
1978
- httpMethod: "GET",
1979
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/databases",
1980
- urlParameters: [
1981
- subscriptionId,
1982
- resourceGroupName,
1983
- clusterName
1984
- ],
1985
- queryParameters: [
1986
- apiVersion
1987
- ],
1988
- headerParameters: [
1989
- acceptLanguage
1990
- ],
1991
- responses: {
1992
- 200: {
1993
- bodyMapper: DatabaseList
1994
- },
1995
- default: {
1996
- bodyMapper: ErrorResponse
1997
- }
1998
- },
1999
- serializer: serializer$3
2000
- };
2001
- var getOperationSpec$2 = {
2002
- httpMethod: "GET",
2003
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/databases/{databaseName}",
2004
- urlParameters: [
2005
- resourceGroupName,
2006
- clusterName,
2007
- databaseName,
2008
- subscriptionId
2009
- ],
2010
- queryParameters: [
2011
- apiVersion
2012
- ],
2013
- headerParameters: [
2014
- acceptLanguage
2015
- ],
2016
- responses: {
2017
- 200: {
2018
- bodyMapper: Database
2019
- },
2020
- default: {
2021
- bodyMapper: ErrorResponse
2022
- }
2023
- },
2024
- serializer: serializer$3
2025
- };
2026
- var listKeysOperationSpec = {
2027
- httpMethod: "POST",
2028
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/databases/{databaseName}/listKeys",
2029
- urlParameters: [
2030
- resourceGroupName,
2031
- clusterName,
2032
- databaseName,
2033
- subscriptionId
2034
- ],
2035
- queryParameters: [
2036
- apiVersion
2037
- ],
2038
- headerParameters: [
2039
- acceptLanguage
2040
- ],
2041
- responses: {
2042
- 200: {
2043
- bodyMapper: AccessKeys
2044
- },
2045
- default: {
2046
- bodyMapper: ErrorResponse
2047
- }
2048
- },
2049
- serializer: serializer$3
2050
- };
2051
- var beginCreateOperationSpec$1 = {
2052
- httpMethod: "PUT",
2053
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/databases/{databaseName}",
2054
- urlParameters: [
2055
- resourceGroupName,
2056
- clusterName,
2057
- databaseName,
2058
- subscriptionId
2059
- ],
2060
- queryParameters: [
2061
- apiVersion
2062
- ],
2063
- headerParameters: [
2064
- acceptLanguage
2065
- ],
2066
- requestBody: {
2067
- parameterPath: "parameters",
2068
- mapper: __assign(__assign({}, Database), { required: true })
2069
- },
2070
- responses: {
2071
- 200: {
2072
- bodyMapper: Database
2073
- },
2074
- 201: {
2075
- bodyMapper: Database
2076
- },
2077
- default: {
2078
- bodyMapper: ErrorResponse
2079
- }
2080
- },
2081
- serializer: serializer$3
2082
- };
2083
- var beginUpdateOperationSpec$1 = {
2084
- httpMethod: "PATCH",
2085
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/databases/{databaseName}",
2086
- urlParameters: [
2087
- resourceGroupName,
2088
- clusterName,
2089
- databaseName,
2090
- subscriptionId
2091
- ],
2092
- queryParameters: [
2093
- apiVersion
2094
- ],
2095
- headerParameters: [
2096
- acceptLanguage
2097
- ],
2098
- requestBody: {
2099
- parameterPath: "parameters",
2100
- mapper: __assign(__assign({}, DatabaseUpdate), { required: true })
2101
- },
2102
- responses: {
2103
- 200: {
2104
- bodyMapper: Database
2105
- },
2106
- 202: {},
2107
- default: {
2108
- bodyMapper: ErrorResponse
2109
- }
2110
- },
2111
- serializer: serializer$3
2112
- };
2113
- var beginDeleteMethodOperationSpec$1 = {
2114
- httpMethod: "DELETE",
2115
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/databases/{databaseName}",
2116
- urlParameters: [
2117
- resourceGroupName,
2118
- clusterName,
2119
- databaseName,
2120
- subscriptionId
2121
- ],
2122
- queryParameters: [
2123
- apiVersion
2124
- ],
2125
- headerParameters: [
2126
- acceptLanguage
2127
- ],
2128
- responses: {
2129
- 200: {},
2130
- 202: {},
2131
- 204: {},
2132
- default: {
2133
- bodyMapper: ErrorResponse
2134
- }
2135
- },
2136
- serializer: serializer$3
2137
- };
2138
- var beginRegenerateKeyOperationSpec = {
2139
- httpMethod: "POST",
2140
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/databases/{databaseName}/regenerateKey",
2141
- urlParameters: [
2142
- resourceGroupName,
2143
- clusterName,
2144
- databaseName,
2145
- subscriptionId
2146
- ],
2147
- queryParameters: [
2148
- apiVersion
2149
- ],
2150
- headerParameters: [
2151
- acceptLanguage
2152
- ],
2153
- requestBody: {
2154
- parameterPath: {
2155
- keyType: "keyType"
2156
- },
2157
- mapper: __assign(__assign({}, RegenerateKeyParameters), { required: true })
2158
- },
2159
- responses: {
2160
- 200: {
2161
- bodyMapper: AccessKeys
2162
- },
2163
- 202: {},
2164
- default: {
2165
- bodyMapper: ErrorResponse
2166
- }
2167
- },
2168
- serializer: serializer$3
2169
- };
2170
- var beginImportMethodOperationSpec = {
2171
- httpMethod: "POST",
2172
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/databases/{databaseName}/import",
2173
- urlParameters: [
2174
- resourceGroupName,
2175
- clusterName,
2176
- databaseName,
2177
- subscriptionId
2178
- ],
2179
- queryParameters: [
2180
- apiVersion
2181
- ],
2182
- headerParameters: [
2183
- acceptLanguage
2184
- ],
2185
- requestBody: {
2186
- parameterPath: {
2187
- sasUri: "sasUri"
2188
- },
2189
- mapper: __assign(__assign({}, ImportClusterParameters), { required: true })
2190
- },
2191
- responses: {
2192
- 200: {},
2193
- 202: {},
2194
- default: {
2195
- bodyMapper: ErrorResponse
2196
- }
2197
- },
2198
- serializer: serializer$3
2199
- };
2200
- var beginExportMethodOperationSpec = {
2201
- httpMethod: "POST",
2202
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/databases/{databaseName}/export",
2203
- urlParameters: [
2204
- resourceGroupName,
2205
- clusterName,
2206
- databaseName,
2207
- subscriptionId
2208
- ],
2209
- queryParameters: [
2210
- apiVersion
2211
- ],
2212
- headerParameters: [
2213
- acceptLanguage
2214
- ],
2215
- requestBody: {
2216
- parameterPath: {
2217
- sasUri: "sasUri"
2218
- },
2219
- mapper: __assign(__assign({}, ExportClusterParameters), { required: true })
2220
- },
2221
- responses: {
2222
- 200: {},
2223
- 202: {},
2224
- default: {
2225
- bodyMapper: ErrorResponse
2226
- }
2227
- },
2228
- serializer: serializer$3
2229
- };
2230
- var listByClusterNextOperationSpec = {
2231
- httpMethod: "GET",
2232
- baseUrl: "https://management.azure.com",
2233
- path: "{nextLink}",
2234
- urlParameters: [
2235
- nextPageLink
2236
- ],
2237
- queryParameters: [
2238
- apiVersion
2239
- ],
2240
- headerParameters: [
2241
- acceptLanguage
2242
- ],
2243
- responses: {
2244
- 200: {
2245
- bodyMapper: DatabaseList
2246
- },
2247
- default: {
2248
- bodyMapper: ErrorResponse
2249
- }
2250
- },
2251
- serializer: serializer$3
2252
- };
2253
-
2254
- /*
2255
- * Copyright (c) Microsoft Corporation.
2256
- * Licensed under the MIT License.
2257
- *
2258
- * Code generated by Microsoft (R) AutoRest Code Generator.
2259
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
2260
- */
2261
-
2262
- var Mappers$4 = /*#__PURE__*/Object.freeze({
2263
- __proto__: null,
2264
- AzureEntityResource: AzureEntityResource,
2265
- BaseResource: BaseResource,
2266
- Cluster: Cluster,
2267
- Database: Database,
2268
- ErrorAdditionalInfo: ErrorAdditionalInfo,
2269
- ErrorDetail: ErrorDetail,
2270
- ErrorResponse: ErrorResponse,
2271
- Module: Module,
2272
- Persistence: Persistence,
2273
- PrivateEndpoint: PrivateEndpoint,
2274
- PrivateEndpointConnection: PrivateEndpointConnection,
2275
- PrivateEndpointConnectionListResult: PrivateEndpointConnectionListResult,
2276
- PrivateLinkResource: PrivateLinkResource,
2277
- PrivateLinkServiceConnectionState: PrivateLinkServiceConnectionState,
2278
- ProxyResource: ProxyResource,
2279
- Resource: Resource,
2280
- Sku: Sku,
2281
- TrackedResource: TrackedResource
2282
- });
2283
-
2284
- /*
2285
- * Copyright (c) Microsoft Corporation.
2286
- * Licensed under the MIT License.
2287
- *
2288
- * Code generated by Microsoft (R) AutoRest Code Generator.
2289
- * Changes may cause incorrect behavior and will be lost if the code is
2290
- * regenerated.
2291
- */
2292
- /** Class representing a PrivateEndpointConnections. */
2293
- var PrivateEndpointConnections = /** @class */ (function () {
2294
- /**
2295
- * Create a PrivateEndpointConnections.
2296
- * @param {RedisEnterpriseManagementClientContext} client Reference to the service client.
2297
- */
2298
- function PrivateEndpointConnections(client) {
2299
- this.client = client;
2300
- }
2301
- PrivateEndpointConnections.prototype.list = function (resourceGroupName, clusterName, options, callback) {
2302
- return this.client.sendOperationRequest({
2303
- resourceGroupName: resourceGroupName,
2304
- clusterName: clusterName,
2305
- options: options
2306
- }, listOperationSpec$2, callback);
2307
- };
2308
- PrivateEndpointConnections.prototype.get = function (resourceGroupName, clusterName, privateEndpointConnectionName, options, callback) {
2309
- return this.client.sendOperationRequest({
2310
- resourceGroupName: resourceGroupName,
2311
- clusterName: clusterName,
2312
- privateEndpointConnectionName: privateEndpointConnectionName,
2313
- options: options
2314
- }, getOperationSpec$3, callback);
2315
- };
2316
- /**
2317
- * Updates the state of the specified private endpoint connection associated with the
2318
- * RedisEnterprise cluster.
2319
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
2320
- * @param clusterName The name of the RedisEnterprise cluster.
2321
- * @param privateEndpointConnectionName The name of the private endpoint connection associated with
2322
- * the Azure resource
2323
- * @param properties The private endpoint connection properties.
2324
- * @param [options] The optional parameters
2325
- * @returns Promise<Models.PrivateEndpointConnectionsPutResponse>
2326
- */
2327
- PrivateEndpointConnections.prototype.put = function (resourceGroupName, clusterName, privateEndpointConnectionName, properties, options) {
2328
- return this.beginPut(resourceGroupName, clusterName, privateEndpointConnectionName, properties, options)
2329
- .then(function (lroPoller) { return lroPoller.pollUntilFinished(); });
2330
- };
2331
- PrivateEndpointConnections.prototype.deleteMethod = function (resourceGroupName, clusterName, privateEndpointConnectionName, options, callback) {
2332
- return this.client.sendOperationRequest({
2333
- resourceGroupName: resourceGroupName,
2334
- clusterName: clusterName,
2335
- privateEndpointConnectionName: privateEndpointConnectionName,
2336
- options: options
2337
- }, deleteMethodOperationSpec, callback);
2338
- };
2339
- /**
2340
- * Updates the state of the specified private endpoint connection associated with the
2341
- * RedisEnterprise cluster.
2342
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
2343
- * @param clusterName The name of the RedisEnterprise cluster.
2344
- * @param privateEndpointConnectionName The name of the private endpoint connection associated with
2345
- * the Azure resource
2346
- * @param properties The private endpoint connection properties.
2347
- * @param [options] The optional parameters
2348
- * @returns Promise<msRestAzure.LROPoller>
2349
- */
2350
- PrivateEndpointConnections.prototype.beginPut = function (resourceGroupName, clusterName, privateEndpointConnectionName, properties, options) {
2351
- return this.client.sendLRORequest({
2352
- resourceGroupName: resourceGroupName,
2353
- clusterName: clusterName,
2354
- privateEndpointConnectionName: privateEndpointConnectionName,
2355
- properties: properties,
2356
- options: options
2357
- }, beginPutOperationSpec, options);
2358
- };
2359
- return PrivateEndpointConnections;
2360
- }());
2361
- // Operation Specifications
2362
- var serializer$4 = new msRest.Serializer(Mappers$4);
2363
- var listOperationSpec$2 = {
2364
- httpMethod: "GET",
2365
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/privateEndpointConnections",
2366
- urlParameters: [
2367
- resourceGroupName,
2368
- clusterName,
2369
- subscriptionId
2370
- ],
2371
- queryParameters: [
2372
- apiVersion
2373
- ],
2374
- headerParameters: [
2375
- acceptLanguage
2376
- ],
2377
- responses: {
2378
- 200: {
2379
- bodyMapper: PrivateEndpointConnectionListResult
2380
- },
2381
- default: {
2382
- bodyMapper: ErrorResponse
2383
- }
2384
- },
2385
- serializer: serializer$4
2386
- };
2387
- var getOperationSpec$3 = {
2388
- httpMethod: "GET",
2389
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/privateEndpointConnections/{privateEndpointConnectionName}",
2390
- urlParameters: [
2391
- resourceGroupName,
2392
- clusterName,
2393
- privateEndpointConnectionName,
2394
- subscriptionId
2395
- ],
2396
- queryParameters: [
2397
- apiVersion
2398
- ],
2399
- headerParameters: [
2400
- acceptLanguage
2401
- ],
2402
- responses: {
2403
- 200: {
2404
- bodyMapper: PrivateEndpointConnection
2405
- },
2406
- default: {
2407
- bodyMapper: ErrorResponse
2408
- }
2409
- },
2410
- serializer: serializer$4
2411
- };
2412
- var deleteMethodOperationSpec = {
2413
- httpMethod: "DELETE",
2414
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/privateEndpointConnections/{privateEndpointConnectionName}",
2415
- urlParameters: [
2416
- resourceGroupName,
2417
- clusterName,
2418
- subscriptionId,
2419
- privateEndpointConnectionName
2420
- ],
2421
- queryParameters: [
2422
- apiVersion
2423
- ],
2424
- headerParameters: [
2425
- acceptLanguage
2426
- ],
2427
- responses: {
2428
- 200: {},
2429
- 204: {},
2430
- default: {
2431
- bodyMapper: ErrorResponse
2432
- }
2433
- },
2434
- serializer: serializer$4
2435
- };
2436
- var beginPutOperationSpec = {
2437
- httpMethod: "PUT",
2438
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/privateEndpointConnections/{privateEndpointConnectionName}",
2439
- urlParameters: [
2440
- resourceGroupName,
2441
- clusterName,
2442
- subscriptionId,
2443
- privateEndpointConnectionName
2444
- ],
2445
- queryParameters: [
2446
- apiVersion
2447
- ],
2448
- headerParameters: [
2449
- acceptLanguage
2450
- ],
2451
- requestBody: {
2452
- parameterPath: "properties",
2453
- mapper: __assign(__assign({}, PrivateEndpointConnection), { required: true })
2454
- },
2455
- responses: {
2456
- 201: {
2457
- bodyMapper: PrivateEndpointConnection
2458
- },
2459
- default: {
2460
- bodyMapper: ErrorResponse
2461
- }
2462
- },
2463
- serializer: serializer$4
2464
- };
2465
-
2466
- /*
2467
- * Copyright (c) Microsoft Corporation.
2468
- * Licensed under the MIT License.
2469
- *
2470
- * Code generated by Microsoft (R) AutoRest Code Generator.
2471
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
2472
- */
2473
-
2474
- var Mappers$5 = /*#__PURE__*/Object.freeze({
2475
- __proto__: null,
2476
- AzureEntityResource: AzureEntityResource,
2477
- BaseResource: BaseResource,
2478
- Cluster: Cluster,
2479
- Database: Database,
2480
- ErrorAdditionalInfo: ErrorAdditionalInfo,
2481
- ErrorDetail: ErrorDetail,
2482
- ErrorResponse: ErrorResponse,
2483
- Module: Module,
2484
- Persistence: Persistence,
2485
- PrivateEndpoint: PrivateEndpoint,
2486
- PrivateEndpointConnection: PrivateEndpointConnection,
2487
- PrivateLinkResource: PrivateLinkResource,
2488
- PrivateLinkResourceListResult: PrivateLinkResourceListResult,
2489
- PrivateLinkServiceConnectionState: PrivateLinkServiceConnectionState,
2490
- ProxyResource: ProxyResource,
2491
- Resource: Resource,
2492
- Sku: Sku,
2493
- TrackedResource: TrackedResource
2494
- });
2495
-
2496
- /*
2497
- * Copyright (c) Microsoft Corporation.
2498
- * Licensed under the MIT License.
2499
- *
2500
- * Code generated by Microsoft (R) AutoRest Code Generator.
2501
- * Changes may cause incorrect behavior and will be lost if the code is
2502
- * regenerated.
2503
- */
2504
- /** Class representing a PrivateLinkResources. */
2505
- var PrivateLinkResources = /** @class */ (function () {
2506
- /**
2507
- * Create a PrivateLinkResources.
2508
- * @param {RedisEnterpriseManagementClientContext} client Reference to the service client.
2509
- */
2510
- function PrivateLinkResources(client) {
2511
- this.client = client;
2512
- }
2513
- PrivateLinkResources.prototype.listByCluster = function (resourceGroupName, clusterName, options, callback) {
2514
- return this.client.sendOperationRequest({
2515
- resourceGroupName: resourceGroupName,
2516
- clusterName: clusterName,
2517
- options: options
2518
- }, listByClusterOperationSpec$1, callback);
2519
- };
2520
- return PrivateLinkResources;
2521
- }());
2522
- // Operation Specifications
2523
- var serializer$5 = new msRest.Serializer(Mappers$5);
2524
- var listByClusterOperationSpec$1 = {
2525
- httpMethod: "GET",
2526
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/privateLinkResources",
2527
- urlParameters: [
2528
- resourceGroupName,
2529
- clusterName,
2530
- subscriptionId
2531
- ],
2532
- queryParameters: [
2533
- apiVersion
2534
- ],
2535
- headerParameters: [
2536
- acceptLanguage
2537
- ],
2538
- responses: {
2539
- 200: {
2540
- bodyMapper: PrivateLinkResourceListResult
2541
- },
2542
- default: {
2543
- bodyMapper: ErrorResponse
2544
- }
2545
- },
2546
- serializer: serializer$5
2547
- };
2548
-
2549
- /*
2550
- * Copyright (c) Microsoft Corporation.
2551
- * Licensed under the MIT License.
2552
- *
2553
- * Code generated by Microsoft (R) AutoRest Code Generator.
2554
- * Changes may cause incorrect behavior and will be lost if the code is
2555
- * regenerated.
2556
- */
2557
- var packageName = "@azure/arm-redisenterprisecache";
2558
- var packageVersion = "1.1.1";
2559
- var RedisEnterpriseManagementClientContext = /** @class */ (function (_super) {
2560
- __extends(RedisEnterpriseManagementClientContext, _super);
2561
- /**
2562
- * Initializes a new instance of the RedisEnterpriseManagementClient class.
2563
- * @param credentials Credentials needed for the client to connect to Azure. Credentials
2564
- * implementing the TokenCredential interface from the @azure/identity package are recommended. For
2565
- * more information about these credentials, see
2566
- * {@link https://www.npmjs.com/package/@azure/identity}. Credentials implementing the
2567
- * ServiceClientCredentials interface from the older packages @azure/ms-rest-nodeauth and
2568
- * @azure/ms-rest-browserauth are also supported.
2569
- * @param subscriptionId The ID of the target subscription.
2570
- * @param [options] The parameter options
2571
- */
2572
- function RedisEnterpriseManagementClientContext(credentials, subscriptionId, options) {
2573
- var _this = this;
2574
- if (credentials == undefined) {
2575
- throw new Error('\'credentials\' cannot be null.');
2576
- }
2577
- if (subscriptionId == undefined) {
2578
- throw new Error('\'subscriptionId\' cannot be null.');
2579
- }
2580
- if (!options) {
2581
- options = {};
2582
- }
2583
- if (!options.userAgent) {
2584
- var defaultUserAgent = msRestAzure.getDefaultUserAgentValue();
2585
- options.userAgent = packageName + "/" + packageVersion + " " + defaultUserAgent;
2586
- }
2587
- _this = _super.call(this, credentials, options) || this;
2588
- _this.apiVersion = '2021-03-01';
2589
- _this.acceptLanguage = 'en-US';
2590
- _this.longRunningOperationRetryTimeout = 30;
2591
- _this.baseUri = options.baseUri || _this.baseUri || "https://management.azure.com";
2592
- _this.requestContentType = "application/json; charset=utf-8";
2593
- _this.credentials = credentials;
2594
- _this.subscriptionId = subscriptionId;
2595
- if (options.acceptLanguage !== null && options.acceptLanguage !== undefined) {
2596
- _this.acceptLanguage = options.acceptLanguage;
2597
- }
2598
- if (options.longRunningOperationRetryTimeout !== null && options.longRunningOperationRetryTimeout !== undefined) {
2599
- _this.longRunningOperationRetryTimeout = options.longRunningOperationRetryTimeout;
2600
- }
2601
- return _this;
2602
- }
2603
- return RedisEnterpriseManagementClientContext;
2604
- }(msRestAzure.AzureServiceClient));
2605
-
2606
- /*
2607
- * Copyright (c) Microsoft Corporation.
2608
- * Licensed under the MIT License.
2609
- *
2610
- * Code generated by Microsoft (R) AutoRest Code Generator.
2611
- * Changes may cause incorrect behavior and will be lost if the code is
2612
- * regenerated.
2613
- */
2614
- var RedisEnterpriseManagementClient = /** @class */ (function (_super) {
2615
- __extends(RedisEnterpriseManagementClient, _super);
2616
- /**
2617
- * Initializes a new instance of the RedisEnterpriseManagementClient class.
2618
- * @param credentials Credentials needed for the client to connect to Azure. Credentials
2619
- * implementing the TokenCredential interface from the @azure/identity package are recommended. For
2620
- * more information about these credentials, see
2621
- * {@link https://www.npmjs.com/package/@azure/identity}. Credentials implementing the
2622
- * ServiceClientCredentials interface from the older packages @azure/ms-rest-nodeauth and
2623
- * @azure/ms-rest-browserauth are also supported.
2624
- * @param subscriptionId The ID of the target subscription.
2625
- * @param [options] The parameter options
2626
- */
2627
- function RedisEnterpriseManagementClient(credentials, subscriptionId, options) {
2628
- var _this = _super.call(this, credentials, subscriptionId, options) || this;
2629
- _this.operations = new Operations(_this);
2630
- _this.operationsStatus = new OperationsStatus(_this);
2631
- _this.redisEnterprise = new RedisEnterprise(_this);
2632
- _this.databases = new Databases(_this);
2633
- _this.privateEndpointConnections = new PrivateEndpointConnections(_this);
2634
- _this.privateLinkResources = new PrivateLinkResources(_this);
2635
- return _this;
2636
- }
2637
- return RedisEnterpriseManagementClient;
2638
- }(RedisEnterpriseManagementClientContext));
2639
-
2640
- exports.Databases = Databases;
2641
- exports.Operations = Operations;
2642
- exports.OperationsStatus = OperationsStatus;
2643
- exports.PrivateEndpointConnections = PrivateEndpointConnections;
2644
- exports.PrivateLinkResources = PrivateLinkResources;
2645
- exports.RedisEnterprise = RedisEnterprise;
2646
- exports.RedisEnterpriseManagementClient = RedisEnterpriseManagementClient;
2647
- exports.RedisEnterpriseManagementClientContext = RedisEnterpriseManagementClientContext;
2648
- exports.RedisEnterpriseManagementMappers = mappers;
2649
- exports.RedisEnterpriseManagementModels = index;
2650
-
2651
- Object.defineProperty(exports, '__esModule', { value: true });
2652
-
2653
- })));
2654
- //# sourceMappingURL=arm-redisenterprisecache.js.map