@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
@@ -0,0 +1,765 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+ import { __asyncDelegator, __asyncGenerator, __asyncValues, __await, __awaiter } from "tslib";
9
+ import * as coreClient from "@azure/core-client";
10
+ import * as Mappers from "../models/mappers";
11
+ import * as Parameters from "../models/parameters";
12
+ import { LroEngine } from "@azure/core-lro";
13
+ import { LroImpl } from "../lroImpl";
14
+ /// <reference lib="esnext.asynciterable" />
15
+ /** Class containing SignalR operations. */
16
+ export class SignalRImpl {
17
+ /**
18
+ * Initialize a new instance of the class SignalR class.
19
+ * @param client Reference to the service client
20
+ */
21
+ constructor(client) {
22
+ this.client = client;
23
+ }
24
+ /**
25
+ * Handles requests to list all resources in a subscription.
26
+ * @param options The options parameters.
27
+ */
28
+ listBySubscription(options) {
29
+ const iter = this.listBySubscriptionPagingAll(options);
30
+ return {
31
+ next() {
32
+ return iter.next();
33
+ },
34
+ [Symbol.asyncIterator]() {
35
+ return this;
36
+ },
37
+ byPage: () => {
38
+ return this.listBySubscriptionPagingPage(options);
39
+ }
40
+ };
41
+ }
42
+ listBySubscriptionPagingPage(options) {
43
+ return __asyncGenerator(this, arguments, function* listBySubscriptionPagingPage_1() {
44
+ let result = yield __await(this._listBySubscription(options));
45
+ yield yield __await(result.value || []);
46
+ let continuationToken = result.nextLink;
47
+ while (continuationToken) {
48
+ result = yield __await(this._listBySubscriptionNext(continuationToken, options));
49
+ continuationToken = result.nextLink;
50
+ yield yield __await(result.value || []);
51
+ }
52
+ });
53
+ }
54
+ listBySubscriptionPagingAll(options) {
55
+ return __asyncGenerator(this, arguments, function* listBySubscriptionPagingAll_1() {
56
+ var e_1, _a;
57
+ try {
58
+ for (var _b = __asyncValues(this.listBySubscriptionPagingPage(options)), _c; _c = yield __await(_b.next()), !_c.done;) {
59
+ const page = _c.value;
60
+ yield __await(yield* __asyncDelegator(__asyncValues(page)));
61
+ }
62
+ }
63
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
64
+ finally {
65
+ try {
66
+ if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
67
+ }
68
+ finally { if (e_1) throw e_1.error; }
69
+ }
70
+ });
71
+ }
72
+ /**
73
+ * Handles requests to list all resources in a resource group.
74
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain
75
+ * this value from the Azure Resource Manager API or the portal.
76
+ * @param options The options parameters.
77
+ */
78
+ listByResourceGroup(resourceGroupName, options) {
79
+ const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);
80
+ return {
81
+ next() {
82
+ return iter.next();
83
+ },
84
+ [Symbol.asyncIterator]() {
85
+ return this;
86
+ },
87
+ byPage: () => {
88
+ return this.listByResourceGroupPagingPage(resourceGroupName, options);
89
+ }
90
+ };
91
+ }
92
+ listByResourceGroupPagingPage(resourceGroupName, options) {
93
+ return __asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
94
+ let result = yield __await(this._listByResourceGroup(resourceGroupName, options));
95
+ yield yield __await(result.value || []);
96
+ let continuationToken = result.nextLink;
97
+ while (continuationToken) {
98
+ result = yield __await(this._listByResourceGroupNext(resourceGroupName, continuationToken, options));
99
+ continuationToken = result.nextLink;
100
+ yield yield __await(result.value || []);
101
+ }
102
+ });
103
+ }
104
+ listByResourceGroupPagingAll(resourceGroupName, options) {
105
+ return __asyncGenerator(this, arguments, function* listByResourceGroupPagingAll_1() {
106
+ var e_2, _a;
107
+ try {
108
+ for (var _b = __asyncValues(this.listByResourceGroupPagingPage(resourceGroupName, options)), _c; _c = yield __await(_b.next()), !_c.done;) {
109
+ const page = _c.value;
110
+ yield __await(yield* __asyncDelegator(__asyncValues(page)));
111
+ }
112
+ }
113
+ catch (e_2_1) { e_2 = { error: e_2_1 }; }
114
+ finally {
115
+ try {
116
+ if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
117
+ }
118
+ finally { if (e_2) throw e_2.error; }
119
+ }
120
+ });
121
+ }
122
+ /**
123
+ * Checks that the resource name is valid and is not already in use.
124
+ * @param location the region
125
+ * @param parameters Parameters supplied to the operation.
126
+ * @param options The options parameters.
127
+ */
128
+ checkNameAvailability(location, parameters, options) {
129
+ return this.client.sendOperationRequest({ location, parameters, options }, checkNameAvailabilityOperationSpec);
130
+ }
131
+ /**
132
+ * Handles requests to list all resources in a subscription.
133
+ * @param options The options parameters.
134
+ */
135
+ _listBySubscription(options) {
136
+ return this.client.sendOperationRequest({ options }, listBySubscriptionOperationSpec);
137
+ }
138
+ /**
139
+ * Handles requests to list all resources in a resource group.
140
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain
141
+ * this value from the Azure Resource Manager API or the portal.
142
+ * @param options The options parameters.
143
+ */
144
+ _listByResourceGroup(resourceGroupName, options) {
145
+ return this.client.sendOperationRequest({ resourceGroupName, options }, listByResourceGroupOperationSpec);
146
+ }
147
+ /**
148
+ * Get the resource and its properties.
149
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain
150
+ * this value from the Azure Resource Manager API or the portal.
151
+ * @param resourceName The name of the resource.
152
+ * @param options The options parameters.
153
+ */
154
+ get(resourceGroupName, resourceName, options) {
155
+ return this.client.sendOperationRequest({ resourceGroupName, resourceName, options }, getOperationSpec);
156
+ }
157
+ /**
158
+ * Create or update a resource.
159
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain
160
+ * this value from the Azure Resource Manager API or the portal.
161
+ * @param resourceName The name of the resource.
162
+ * @param parameters Parameters for the create or update operation
163
+ * @param options The options parameters.
164
+ */
165
+ beginCreateOrUpdate(resourceGroupName, resourceName, parameters, options) {
166
+ return __awaiter(this, void 0, void 0, function* () {
167
+ const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
168
+ return this.client.sendOperationRequest(args, spec);
169
+ });
170
+ const sendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
171
+ var _a;
172
+ let currentRawResponse = undefined;
173
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
174
+ const callback = (rawResponse, flatResponse) => {
175
+ currentRawResponse = rawResponse;
176
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
177
+ };
178
+ const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
179
+ const flatResponse = yield directSendOperation(updatedArgs, spec);
180
+ return {
181
+ flatResponse,
182
+ rawResponse: {
183
+ statusCode: currentRawResponse.status,
184
+ body: currentRawResponse.parsedBody,
185
+ headers: currentRawResponse.headers.toJSON()
186
+ }
187
+ };
188
+ });
189
+ const lro = new LroImpl(sendOperation, { resourceGroupName, resourceName, parameters, options }, createOrUpdateOperationSpec);
190
+ return new LroEngine(lro, {
191
+ resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
192
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
193
+ });
194
+ });
195
+ }
196
+ /**
197
+ * Create or update a resource.
198
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain
199
+ * this value from the Azure Resource Manager API or the portal.
200
+ * @param resourceName The name of the resource.
201
+ * @param parameters Parameters for the create or update operation
202
+ * @param options The options parameters.
203
+ */
204
+ beginCreateOrUpdateAndWait(resourceGroupName, resourceName, parameters, options) {
205
+ return __awaiter(this, void 0, void 0, function* () {
206
+ const poller = yield this.beginCreateOrUpdate(resourceGroupName, resourceName, parameters, options);
207
+ return poller.pollUntilDone();
208
+ });
209
+ }
210
+ /**
211
+ * Operation to delete a resource.
212
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain
213
+ * this value from the Azure Resource Manager API or the portal.
214
+ * @param resourceName The name of the resource.
215
+ * @param options The options parameters.
216
+ */
217
+ beginDelete(resourceGroupName, resourceName, options) {
218
+ return __awaiter(this, void 0, void 0, function* () {
219
+ const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
220
+ return this.client.sendOperationRequest(args, spec);
221
+ });
222
+ const sendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
223
+ var _a;
224
+ let currentRawResponse = undefined;
225
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
226
+ const callback = (rawResponse, flatResponse) => {
227
+ currentRawResponse = rawResponse;
228
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
229
+ };
230
+ const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
231
+ const flatResponse = yield directSendOperation(updatedArgs, spec);
232
+ return {
233
+ flatResponse,
234
+ rawResponse: {
235
+ statusCode: currentRawResponse.status,
236
+ body: currentRawResponse.parsedBody,
237
+ headers: currentRawResponse.headers.toJSON()
238
+ }
239
+ };
240
+ });
241
+ const lro = new LroImpl(sendOperation, { resourceGroupName, resourceName, options }, deleteOperationSpec);
242
+ return new LroEngine(lro, {
243
+ resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
244
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
245
+ });
246
+ });
247
+ }
248
+ /**
249
+ * Operation to delete a resource.
250
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain
251
+ * this value from the Azure Resource Manager API or the portal.
252
+ * @param resourceName The name of the resource.
253
+ * @param options The options parameters.
254
+ */
255
+ beginDeleteAndWait(resourceGroupName, resourceName, options) {
256
+ return __awaiter(this, void 0, void 0, function* () {
257
+ const poller = yield this.beginDelete(resourceGroupName, resourceName, options);
258
+ return poller.pollUntilDone();
259
+ });
260
+ }
261
+ /**
262
+ * Operation to update an exiting resource.
263
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain
264
+ * this value from the Azure Resource Manager API or the portal.
265
+ * @param resourceName The name of the resource.
266
+ * @param parameters Parameters for the update operation
267
+ * @param options The options parameters.
268
+ */
269
+ beginUpdate(resourceGroupName, resourceName, parameters, options) {
270
+ return __awaiter(this, void 0, void 0, function* () {
271
+ const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
272
+ return this.client.sendOperationRequest(args, spec);
273
+ });
274
+ const sendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
275
+ var _a;
276
+ let currentRawResponse = undefined;
277
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
278
+ const callback = (rawResponse, flatResponse) => {
279
+ currentRawResponse = rawResponse;
280
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
281
+ };
282
+ const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
283
+ const flatResponse = yield directSendOperation(updatedArgs, spec);
284
+ return {
285
+ flatResponse,
286
+ rawResponse: {
287
+ statusCode: currentRawResponse.status,
288
+ body: currentRawResponse.parsedBody,
289
+ headers: currentRawResponse.headers.toJSON()
290
+ }
291
+ };
292
+ });
293
+ const lro = new LroImpl(sendOperation, { resourceGroupName, resourceName, parameters, options }, updateOperationSpec);
294
+ return new LroEngine(lro, {
295
+ resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
296
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
297
+ });
298
+ });
299
+ }
300
+ /**
301
+ * Operation to update an exiting resource.
302
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain
303
+ * this value from the Azure Resource Manager API or the portal.
304
+ * @param resourceName The name of the resource.
305
+ * @param parameters Parameters for the update operation
306
+ * @param options The options parameters.
307
+ */
308
+ beginUpdateAndWait(resourceGroupName, resourceName, parameters, options) {
309
+ return __awaiter(this, void 0, void 0, function* () {
310
+ const poller = yield this.beginUpdate(resourceGroupName, resourceName, parameters, options);
311
+ return poller.pollUntilDone();
312
+ });
313
+ }
314
+ /**
315
+ * Get the access keys of the resource.
316
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain
317
+ * this value from the Azure Resource Manager API or the portal.
318
+ * @param resourceName The name of the resource.
319
+ * @param options The options parameters.
320
+ */
321
+ listKeys(resourceGroupName, resourceName, options) {
322
+ return this.client.sendOperationRequest({ resourceGroupName, resourceName, options }, listKeysOperationSpec);
323
+ }
324
+ /**
325
+ * Regenerate the access key for the resource. PrimaryKey and SecondaryKey cannot be regenerated at the
326
+ * same time.
327
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain
328
+ * this value from the Azure Resource Manager API or the portal.
329
+ * @param resourceName The name of the resource.
330
+ * @param parameters Parameter that describes the Regenerate Key Operation.
331
+ * @param options The options parameters.
332
+ */
333
+ beginRegenerateKey(resourceGroupName, resourceName, parameters, options) {
334
+ return __awaiter(this, void 0, void 0, function* () {
335
+ const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
336
+ return this.client.sendOperationRequest(args, spec);
337
+ });
338
+ const sendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
339
+ var _a;
340
+ let currentRawResponse = undefined;
341
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
342
+ const callback = (rawResponse, flatResponse) => {
343
+ currentRawResponse = rawResponse;
344
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
345
+ };
346
+ const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
347
+ const flatResponse = yield directSendOperation(updatedArgs, spec);
348
+ return {
349
+ flatResponse,
350
+ rawResponse: {
351
+ statusCode: currentRawResponse.status,
352
+ body: currentRawResponse.parsedBody,
353
+ headers: currentRawResponse.headers.toJSON()
354
+ }
355
+ };
356
+ });
357
+ const lro = new LroImpl(sendOperation, { resourceGroupName, resourceName, parameters, options }, regenerateKeyOperationSpec);
358
+ return new LroEngine(lro, {
359
+ resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
360
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
361
+ lroResourceLocationConfig: "azure-async-operation"
362
+ });
363
+ });
364
+ }
365
+ /**
366
+ * Regenerate the access key for the resource. PrimaryKey and SecondaryKey cannot be regenerated at the
367
+ * same time.
368
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain
369
+ * this value from the Azure Resource Manager API or the portal.
370
+ * @param resourceName The name of the resource.
371
+ * @param parameters Parameter that describes the Regenerate Key Operation.
372
+ * @param options The options parameters.
373
+ */
374
+ beginRegenerateKeyAndWait(resourceGroupName, resourceName, parameters, options) {
375
+ return __awaiter(this, void 0, void 0, function* () {
376
+ const poller = yield this.beginRegenerateKey(resourceGroupName, resourceName, parameters, options);
377
+ return poller.pollUntilDone();
378
+ });
379
+ }
380
+ /**
381
+ * Operation to restart a resource.
382
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain
383
+ * this value from the Azure Resource Manager API or the portal.
384
+ * @param resourceName The name of the resource.
385
+ * @param options The options parameters.
386
+ */
387
+ beginRestart(resourceGroupName, resourceName, options) {
388
+ return __awaiter(this, void 0, void 0, function* () {
389
+ const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
390
+ return this.client.sendOperationRequest(args, spec);
391
+ });
392
+ const sendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
393
+ var _a;
394
+ let currentRawResponse = undefined;
395
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
396
+ const callback = (rawResponse, flatResponse) => {
397
+ currentRawResponse = rawResponse;
398
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
399
+ };
400
+ const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
401
+ const flatResponse = yield directSendOperation(updatedArgs, spec);
402
+ return {
403
+ flatResponse,
404
+ rawResponse: {
405
+ statusCode: currentRawResponse.status,
406
+ body: currentRawResponse.parsedBody,
407
+ headers: currentRawResponse.headers.toJSON()
408
+ }
409
+ };
410
+ });
411
+ const lro = new LroImpl(sendOperation, { resourceGroupName, resourceName, options }, restartOperationSpec);
412
+ return new LroEngine(lro, {
413
+ resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
414
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
415
+ lroResourceLocationConfig: "azure-async-operation"
416
+ });
417
+ });
418
+ }
419
+ /**
420
+ * Operation to restart a resource.
421
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain
422
+ * this value from the Azure Resource Manager API or the portal.
423
+ * @param resourceName The name of the resource.
424
+ * @param options The options parameters.
425
+ */
426
+ beginRestartAndWait(resourceGroupName, resourceName, options) {
427
+ return __awaiter(this, void 0, void 0, function* () {
428
+ const poller = yield this.beginRestart(resourceGroupName, resourceName, options);
429
+ return poller.pollUntilDone();
430
+ });
431
+ }
432
+ /**
433
+ * List all available skus of the resource.
434
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain
435
+ * this value from the Azure Resource Manager API or the portal.
436
+ * @param resourceName The name of the resource.
437
+ * @param options The options parameters.
438
+ */
439
+ listSkus(resourceGroupName, resourceName, options) {
440
+ return this.client.sendOperationRequest({ resourceGroupName, resourceName, options }, listSkusOperationSpec);
441
+ }
442
+ /**
443
+ * ListBySubscriptionNext
444
+ * @param nextLink The nextLink from the previous successful call to the ListBySubscription method.
445
+ * @param options The options parameters.
446
+ */
447
+ _listBySubscriptionNext(nextLink, options) {
448
+ return this.client.sendOperationRequest({ nextLink, options }, listBySubscriptionNextOperationSpec);
449
+ }
450
+ /**
451
+ * ListByResourceGroupNext
452
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain
453
+ * this value from the Azure Resource Manager API or the portal.
454
+ * @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.
455
+ * @param options The options parameters.
456
+ */
457
+ _listByResourceGroupNext(resourceGroupName, nextLink, options) {
458
+ return this.client.sendOperationRequest({ resourceGroupName, nextLink, options }, listByResourceGroupNextOperationSpec);
459
+ }
460
+ }
461
+ // Operation Specifications
462
+ const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
463
+ const checkNameAvailabilityOperationSpec = {
464
+ path: "/subscriptions/{subscriptionId}/providers/Microsoft.SignalRService/locations/{location}/checkNameAvailability",
465
+ httpMethod: "POST",
466
+ responses: {
467
+ 200: {
468
+ bodyMapper: Mappers.NameAvailability
469
+ },
470
+ default: {
471
+ bodyMapper: Mappers.ErrorResponse
472
+ }
473
+ },
474
+ requestBody: Parameters.parameters,
475
+ queryParameters: [Parameters.apiVersion],
476
+ urlParameters: [
477
+ Parameters.$host,
478
+ Parameters.location,
479
+ Parameters.subscriptionId
480
+ ],
481
+ headerParameters: [Parameters.accept, Parameters.contentType],
482
+ mediaType: "json",
483
+ serializer
484
+ };
485
+ const listBySubscriptionOperationSpec = {
486
+ path: "/subscriptions/{subscriptionId}/providers/Microsoft.SignalRService/signalR",
487
+ httpMethod: "GET",
488
+ responses: {
489
+ 200: {
490
+ bodyMapper: Mappers.SignalRResourceList
491
+ },
492
+ default: {
493
+ bodyMapper: Mappers.ErrorResponse
494
+ }
495
+ },
496
+ queryParameters: [Parameters.apiVersion],
497
+ urlParameters: [Parameters.$host, Parameters.subscriptionId],
498
+ headerParameters: [Parameters.accept],
499
+ serializer
500
+ };
501
+ const listByResourceGroupOperationSpec = {
502
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/signalR",
503
+ httpMethod: "GET",
504
+ responses: {
505
+ 200: {
506
+ bodyMapper: Mappers.SignalRResourceList
507
+ },
508
+ default: {
509
+ bodyMapper: Mappers.ErrorResponse
510
+ }
511
+ },
512
+ queryParameters: [Parameters.apiVersion],
513
+ urlParameters: [
514
+ Parameters.$host,
515
+ Parameters.subscriptionId,
516
+ Parameters.resourceGroupName
517
+ ],
518
+ headerParameters: [Parameters.accept],
519
+ serializer
520
+ };
521
+ const getOperationSpec = {
522
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/signalR/{resourceName}",
523
+ httpMethod: "GET",
524
+ responses: {
525
+ 200: {
526
+ bodyMapper: Mappers.SignalRResource
527
+ },
528
+ default: {
529
+ bodyMapper: Mappers.ErrorResponse
530
+ }
531
+ },
532
+ queryParameters: [Parameters.apiVersion],
533
+ urlParameters: [
534
+ Parameters.$host,
535
+ Parameters.subscriptionId,
536
+ Parameters.resourceGroupName,
537
+ Parameters.resourceName
538
+ ],
539
+ headerParameters: [Parameters.accept],
540
+ serializer
541
+ };
542
+ const createOrUpdateOperationSpec = {
543
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/signalR/{resourceName}",
544
+ httpMethod: "PUT",
545
+ responses: {
546
+ 200: {
547
+ bodyMapper: Mappers.SignalRResource
548
+ },
549
+ 201: {
550
+ bodyMapper: Mappers.SignalRResource
551
+ },
552
+ 202: {
553
+ bodyMapper: Mappers.SignalRResource
554
+ },
555
+ 204: {
556
+ bodyMapper: Mappers.SignalRResource
557
+ },
558
+ default: {
559
+ bodyMapper: Mappers.ErrorResponse
560
+ }
561
+ },
562
+ requestBody: Parameters.parameters1,
563
+ queryParameters: [Parameters.apiVersion],
564
+ urlParameters: [
565
+ Parameters.$host,
566
+ Parameters.subscriptionId,
567
+ Parameters.resourceGroupName,
568
+ Parameters.resourceName
569
+ ],
570
+ headerParameters: [Parameters.accept, Parameters.contentType],
571
+ mediaType: "json",
572
+ serializer
573
+ };
574
+ const deleteOperationSpec = {
575
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/signalR/{resourceName}",
576
+ httpMethod: "DELETE",
577
+ responses: {
578
+ 200: {},
579
+ 201: {},
580
+ 202: {},
581
+ 204: {},
582
+ default: {
583
+ bodyMapper: Mappers.ErrorResponse
584
+ }
585
+ },
586
+ queryParameters: [Parameters.apiVersion],
587
+ urlParameters: [
588
+ Parameters.$host,
589
+ Parameters.subscriptionId,
590
+ Parameters.resourceGroupName,
591
+ Parameters.resourceName
592
+ ],
593
+ headerParameters: [Parameters.accept],
594
+ serializer
595
+ };
596
+ const updateOperationSpec = {
597
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/signalR/{resourceName}",
598
+ httpMethod: "PATCH",
599
+ responses: {
600
+ 200: {
601
+ bodyMapper: Mappers.SignalRResource
602
+ },
603
+ 201: {
604
+ bodyMapper: Mappers.SignalRResource
605
+ },
606
+ 202: {
607
+ bodyMapper: Mappers.SignalRResource
608
+ },
609
+ 204: {
610
+ bodyMapper: Mappers.SignalRResource
611
+ },
612
+ default: {
613
+ bodyMapper: Mappers.ErrorResponse
614
+ }
615
+ },
616
+ requestBody: Parameters.parameters1,
617
+ queryParameters: [Parameters.apiVersion],
618
+ urlParameters: [
619
+ Parameters.$host,
620
+ Parameters.subscriptionId,
621
+ Parameters.resourceGroupName,
622
+ Parameters.resourceName
623
+ ],
624
+ headerParameters: [Parameters.accept, Parameters.contentType],
625
+ mediaType: "json",
626
+ serializer
627
+ };
628
+ const listKeysOperationSpec = {
629
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/signalR/{resourceName}/listKeys",
630
+ httpMethod: "POST",
631
+ responses: {
632
+ 200: {
633
+ bodyMapper: Mappers.SignalRKeys
634
+ },
635
+ default: {
636
+ bodyMapper: Mappers.ErrorResponse
637
+ }
638
+ },
639
+ queryParameters: [Parameters.apiVersion],
640
+ urlParameters: [
641
+ Parameters.$host,
642
+ Parameters.subscriptionId,
643
+ Parameters.resourceGroupName,
644
+ Parameters.resourceName
645
+ ],
646
+ headerParameters: [Parameters.accept],
647
+ serializer
648
+ };
649
+ const regenerateKeyOperationSpec = {
650
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/signalR/{resourceName}/regenerateKey",
651
+ httpMethod: "POST",
652
+ responses: {
653
+ 200: {
654
+ bodyMapper: Mappers.SignalRKeys
655
+ },
656
+ 201: {
657
+ bodyMapper: Mappers.SignalRKeys
658
+ },
659
+ 202: {
660
+ bodyMapper: Mappers.SignalRKeys
661
+ },
662
+ 204: {
663
+ bodyMapper: Mappers.SignalRKeys
664
+ },
665
+ default: {
666
+ bodyMapper: Mappers.ErrorResponse
667
+ }
668
+ },
669
+ requestBody: Parameters.parameters2,
670
+ queryParameters: [Parameters.apiVersion],
671
+ urlParameters: [
672
+ Parameters.$host,
673
+ Parameters.subscriptionId,
674
+ Parameters.resourceGroupName,
675
+ Parameters.resourceName
676
+ ],
677
+ headerParameters: [Parameters.accept, Parameters.contentType],
678
+ mediaType: "json",
679
+ serializer
680
+ };
681
+ const restartOperationSpec = {
682
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/signalR/{resourceName}/restart",
683
+ httpMethod: "POST",
684
+ responses: {
685
+ 200: {},
686
+ 201: {},
687
+ 202: {},
688
+ 204: {},
689
+ default: {
690
+ bodyMapper: Mappers.ErrorResponse
691
+ }
692
+ },
693
+ queryParameters: [Parameters.apiVersion],
694
+ urlParameters: [
695
+ Parameters.$host,
696
+ Parameters.subscriptionId,
697
+ Parameters.resourceGroupName,
698
+ Parameters.resourceName
699
+ ],
700
+ headerParameters: [Parameters.accept],
701
+ serializer
702
+ };
703
+ const listSkusOperationSpec = {
704
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/signalR/{resourceName}/skus",
705
+ httpMethod: "GET",
706
+ responses: {
707
+ 200: {
708
+ bodyMapper: Mappers.SkuList
709
+ },
710
+ default: {
711
+ bodyMapper: Mappers.ErrorResponse
712
+ }
713
+ },
714
+ queryParameters: [Parameters.apiVersion],
715
+ urlParameters: [
716
+ Parameters.$host,
717
+ Parameters.subscriptionId,
718
+ Parameters.resourceGroupName,
719
+ Parameters.resourceName
720
+ ],
721
+ headerParameters: [Parameters.accept],
722
+ serializer
723
+ };
724
+ const listBySubscriptionNextOperationSpec = {
725
+ path: "{nextLink}",
726
+ httpMethod: "GET",
727
+ responses: {
728
+ 200: {
729
+ bodyMapper: Mappers.SignalRResourceList
730
+ },
731
+ default: {
732
+ bodyMapper: Mappers.ErrorResponse
733
+ }
734
+ },
735
+ queryParameters: [Parameters.apiVersion],
736
+ urlParameters: [
737
+ Parameters.$host,
738
+ Parameters.nextLink,
739
+ Parameters.subscriptionId
740
+ ],
741
+ headerParameters: [Parameters.accept],
742
+ serializer
743
+ };
744
+ const listByResourceGroupNextOperationSpec = {
745
+ path: "{nextLink}",
746
+ httpMethod: "GET",
747
+ responses: {
748
+ 200: {
749
+ bodyMapper: Mappers.SignalRResourceList
750
+ },
751
+ default: {
752
+ bodyMapper: Mappers.ErrorResponse
753
+ }
754
+ },
755
+ queryParameters: [Parameters.apiVersion],
756
+ urlParameters: [
757
+ Parameters.$host,
758
+ Parameters.nextLink,
759
+ Parameters.subscriptionId,
760
+ Parameters.resourceGroupName
761
+ ],
762
+ headerParameters: [Parameters.accept],
763
+ serializer
764
+ };
765
+ //# sourceMappingURL=signalR.js.map