@azure/arm-signalr 4.2.0 → 5.0.0

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