@azure/arm-healthbot 2.1.1-alpha.20250205.1 → 2.1.1-alpha.20250206.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (283) hide show
  1. package/README.md +21 -14
  2. package/{dist-esm/src → dist/browser}/healthbotClient.d.ts +2 -2
  3. package/dist/browser/healthbotClient.d.ts.map +1 -0
  4. package/{dist-esm/src → dist/browser}/healthbotClient.js +15 -18
  5. package/dist/browser/healthbotClient.js.map +1 -0
  6. package/dist/browser/index.d.ts +5 -0
  7. package/{dist-esm/src → dist/browser}/index.d.ts.map +1 -1
  8. package/{dist-esm/src → dist/browser}/index.js +4 -4
  9. package/dist/browser/index.js.map +1 -0
  10. package/dist/browser/lroImpl.js +25 -0
  11. package/dist/browser/lroImpl.js.map +1 -0
  12. package/dist/browser/models/index.js.map +1 -0
  13. package/dist/browser/models/mappers.js.map +1 -0
  14. package/{dist-esm/src → dist/browser}/models/parameters.js +1 -1
  15. package/dist/browser/models/parameters.js.map +1 -0
  16. package/{dist-esm/src → dist/browser}/operations/bots.d.ts +3 -3
  17. package/dist/browser/operations/bots.d.ts.map +1 -0
  18. package/{dist-esm/src → dist/browser}/operations/bots.js +70 -78
  19. package/dist/browser/operations/bots.js.map +1 -0
  20. package/dist/browser/operations/index.d.ts +3 -0
  21. package/{dist-esm/src → dist/browser}/operations/index.d.ts.map +1 -1
  22. package/{dist-esm/src/operationsInterfaces → dist/browser/operations}/index.js +2 -2
  23. package/dist/browser/operations/index.js.map +1 -0
  24. package/{dist-esm/src → dist/browser}/operations/operations.d.ts +3 -3
  25. package/dist/browser/operations/operations.d.ts.map +1 -0
  26. package/{dist-esm/src → dist/browser}/operations/operations.js +3 -3
  27. package/dist/browser/operations/operations.js.map +1 -0
  28. package/{dist-esm/src → dist/browser}/operationsInterfaces/bots.d.ts +1 -1
  29. package/dist/browser/operationsInterfaces/bots.d.ts.map +1 -0
  30. package/dist/browser/operationsInterfaces/bots.js.map +1 -0
  31. package/dist/browser/operationsInterfaces/index.d.ts +3 -0
  32. package/{dist-esm/src → dist/browser}/operationsInterfaces/index.d.ts.map +1 -1
  33. package/{dist-esm/src/operations → dist/browser/operationsInterfaces}/index.js +2 -2
  34. package/dist/browser/operationsInterfaces/index.js.map +1 -0
  35. package/{dist-esm/src → dist/browser}/operationsInterfaces/operations.d.ts +1 -1
  36. package/{dist-esm/src → dist/browser}/operationsInterfaces/operations.d.ts.map +1 -1
  37. package/dist/browser/operationsInterfaces/operations.js.map +1 -0
  38. package/dist/browser/package.json +3 -0
  39. package/dist/browser/pagingHelper.js.map +1 -0
  40. package/dist/commonjs/healthbotClient.d.ts +21 -0
  41. package/dist/commonjs/healthbotClient.d.ts.map +1 -0
  42. package/dist/commonjs/healthbotClient.js +103 -0
  43. package/dist/commonjs/healthbotClient.js.map +1 -0
  44. package/dist/commonjs/index.d.ts +5 -0
  45. package/dist/commonjs/index.d.ts.map +1 -0
  46. package/dist/commonjs/index.js +19 -0
  47. package/dist/commonjs/index.js.map +1 -0
  48. package/dist/commonjs/lroImpl.d.ts +16 -0
  49. package/dist/commonjs/lroImpl.d.ts.map +1 -0
  50. package/dist/commonjs/lroImpl.js +29 -0
  51. package/dist/commonjs/lroImpl.js.map +1 -0
  52. package/{types/arm-healthbot.d.ts → dist/commonjs/models/index.d.ts} +313 -454
  53. package/dist/commonjs/models/index.d.ts.map +1 -0
  54. package/dist/commonjs/models/index.js +23 -0
  55. package/dist/commonjs/models/index.js.map +1 -0
  56. package/dist/commonjs/models/mappers.d.ts +19 -0
  57. package/dist/commonjs/models/mappers.d.ts.map +1 -0
  58. package/dist/commonjs/models/mappers.js +506 -0
  59. package/dist/commonjs/models/mappers.js.map +1 -0
  60. package/dist/commonjs/models/parameters.d.ts +12 -0
  61. package/dist/commonjs/models/parameters.d.ts.map +1 -0
  62. package/dist/commonjs/models/parameters.js +115 -0
  63. package/dist/commonjs/models/parameters.js.map +1 -0
  64. package/dist/commonjs/operations/bots.d.ts +99 -0
  65. package/dist/commonjs/operations/bots.d.ts.map +1 -0
  66. package/dist/commonjs/operations/bots.js +481 -0
  67. package/dist/commonjs/operations/bots.js.map +1 -0
  68. package/dist/commonjs/operations/index.d.ts +3 -0
  69. package/dist/commonjs/operations/index.d.ts.map +1 -0
  70. package/dist/commonjs/operations/index.js +13 -0
  71. package/dist/commonjs/operations/index.js.map +1 -0
  72. package/dist/commonjs/operations/operations.d.ts +32 -0
  73. package/dist/commonjs/operations/operations.d.ts.map +1 -0
  74. package/dist/commonjs/operations/operations.js +138 -0
  75. package/dist/commonjs/operations/operations.js.map +1 -0
  76. package/dist/commonjs/operationsInterfaces/bots.d.ts +63 -0
  77. package/dist/commonjs/operationsInterfaces/bots.d.ts.map +1 -0
  78. package/dist/commonjs/operationsInterfaces/bots.js +10 -0
  79. package/dist/commonjs/operationsInterfaces/bots.js.map +1 -0
  80. package/dist/commonjs/operationsInterfaces/index.d.ts +3 -0
  81. package/dist/commonjs/operationsInterfaces/index.d.ts.map +1 -0
  82. package/dist/commonjs/operationsInterfaces/index.js +13 -0
  83. package/dist/commonjs/operationsInterfaces/index.js.map +1 -0
  84. package/dist/commonjs/operationsInterfaces/operations.d.ts +11 -0
  85. package/dist/commonjs/operationsInterfaces/operations.d.ts.map +1 -0
  86. package/dist/commonjs/operationsInterfaces/operations.js +10 -0
  87. package/dist/commonjs/operationsInterfaces/operations.js.map +1 -0
  88. package/dist/commonjs/package.json +3 -0
  89. package/dist/commonjs/pagingHelper.d.ts +13 -0
  90. package/dist/commonjs/pagingHelper.d.ts.map +1 -0
  91. package/dist/commonjs/pagingHelper.js +36 -0
  92. package/dist/commonjs/pagingHelper.js.map +1 -0
  93. package/dist/esm/healthbotClient.d.ts +21 -0
  94. package/dist/esm/healthbotClient.d.ts.map +1 -0
  95. package/dist/esm/healthbotClient.js +98 -0
  96. package/dist/esm/healthbotClient.js.map +1 -0
  97. package/dist/esm/index.d.ts +5 -0
  98. package/dist/esm/index.d.ts.map +1 -0
  99. package/{src/index.ts → dist/esm/index.js} +5 -5
  100. package/dist/esm/index.js.map +1 -0
  101. package/dist/esm/lroImpl.d.ts +16 -0
  102. package/dist/esm/lroImpl.d.ts.map +1 -0
  103. package/dist/esm/lroImpl.js +25 -0
  104. package/dist/esm/lroImpl.js.map +1 -0
  105. package/dist/esm/models/index.d.ts +313 -0
  106. package/dist/esm/models/index.d.ts.map +1 -0
  107. package/dist/esm/models/index.js +20 -0
  108. package/dist/esm/models/index.js.map +1 -0
  109. package/dist/esm/models/mappers.d.ts +19 -0
  110. package/dist/esm/models/mappers.d.ts.map +1 -0
  111. package/dist/esm/models/mappers.js +503 -0
  112. package/dist/esm/models/mappers.js.map +1 -0
  113. package/dist/esm/models/parameters.d.ts +12 -0
  114. package/dist/esm/models/parameters.d.ts.map +1 -0
  115. package/dist/esm/models/parameters.js +112 -0
  116. package/dist/esm/models/parameters.js.map +1 -0
  117. package/dist/esm/operations/bots.d.ts +99 -0
  118. package/dist/esm/operations/bots.d.ts.map +1 -0
  119. package/dist/esm/operations/bots.js +477 -0
  120. package/dist/esm/operations/bots.js.map +1 -0
  121. package/dist/esm/operations/index.d.ts +3 -0
  122. package/dist/esm/operations/index.d.ts.map +1 -0
  123. package/dist/esm/operations/index.js +10 -0
  124. package/dist/esm/operations/index.js.map +1 -0
  125. package/dist/esm/operations/operations.d.ts +32 -0
  126. package/dist/esm/operations/operations.d.ts.map +1 -0
  127. package/dist/esm/operations/operations.js +134 -0
  128. package/dist/esm/operations/operations.js.map +1 -0
  129. package/dist/esm/operationsInterfaces/bots.d.ts +63 -0
  130. package/dist/esm/operationsInterfaces/bots.d.ts.map +1 -0
  131. package/{src/operations/index.ts → dist/esm/operationsInterfaces/bots.js} +2 -3
  132. package/dist/esm/operationsInterfaces/bots.js.map +1 -0
  133. package/dist/esm/operationsInterfaces/index.d.ts +3 -0
  134. package/dist/esm/operationsInterfaces/index.d.ts.map +1 -0
  135. package/dist/esm/operationsInterfaces/index.js +10 -0
  136. package/dist/esm/operationsInterfaces/index.js.map +1 -0
  137. package/dist/esm/operationsInterfaces/operations.d.ts +11 -0
  138. package/dist/esm/operationsInterfaces/operations.d.ts.map +1 -0
  139. package/{src/operationsInterfaces/index.ts → dist/esm/operationsInterfaces/operations.js} +2 -3
  140. package/dist/esm/operationsInterfaces/operations.js.map +1 -0
  141. package/dist/esm/package.json +3 -0
  142. package/dist/esm/pagingHelper.d.ts +13 -0
  143. package/dist/esm/pagingHelper.d.ts.map +1 -0
  144. package/dist/esm/pagingHelper.js +32 -0
  145. package/dist/esm/pagingHelper.js.map +1 -0
  146. package/dist/react-native/healthbotClient.d.ts +21 -0
  147. package/dist/react-native/healthbotClient.d.ts.map +1 -0
  148. package/dist/react-native/healthbotClient.js +98 -0
  149. package/dist/react-native/healthbotClient.js.map +1 -0
  150. package/dist/react-native/index.d.ts +5 -0
  151. package/dist/react-native/index.d.ts.map +1 -0
  152. package/dist/react-native/index.js +13 -0
  153. package/dist/react-native/index.js.map +1 -0
  154. package/dist/react-native/lroImpl.d.ts +16 -0
  155. package/dist/react-native/lroImpl.d.ts.map +1 -0
  156. package/dist/react-native/lroImpl.js +25 -0
  157. package/dist/react-native/lroImpl.js.map +1 -0
  158. package/dist/react-native/models/index.d.ts +313 -0
  159. package/dist/react-native/models/index.d.ts.map +1 -0
  160. package/dist/react-native/models/index.js +20 -0
  161. package/dist/react-native/models/index.js.map +1 -0
  162. package/dist/react-native/models/mappers.d.ts +19 -0
  163. package/dist/react-native/models/mappers.d.ts.map +1 -0
  164. package/dist/react-native/models/mappers.js +503 -0
  165. package/dist/react-native/models/mappers.js.map +1 -0
  166. package/dist/react-native/models/parameters.d.ts +12 -0
  167. package/dist/react-native/models/parameters.d.ts.map +1 -0
  168. package/dist/react-native/models/parameters.js +112 -0
  169. package/dist/react-native/models/parameters.js.map +1 -0
  170. package/dist/react-native/operations/bots.d.ts +99 -0
  171. package/dist/react-native/operations/bots.d.ts.map +1 -0
  172. package/dist/react-native/operations/bots.js +477 -0
  173. package/dist/react-native/operations/bots.js.map +1 -0
  174. package/dist/react-native/operations/index.d.ts +3 -0
  175. package/dist/react-native/operations/index.d.ts.map +1 -0
  176. package/dist/react-native/operations/index.js +10 -0
  177. package/dist/react-native/operations/index.js.map +1 -0
  178. package/dist/react-native/operations/operations.d.ts +32 -0
  179. package/dist/react-native/operations/operations.d.ts.map +1 -0
  180. package/dist/react-native/operations/operations.js +134 -0
  181. package/dist/react-native/operations/operations.js.map +1 -0
  182. package/dist/react-native/operationsInterfaces/bots.d.ts +63 -0
  183. package/dist/react-native/operationsInterfaces/bots.d.ts.map +1 -0
  184. package/dist/react-native/operationsInterfaces/bots.js +9 -0
  185. package/dist/react-native/operationsInterfaces/bots.js.map +1 -0
  186. package/dist/react-native/operationsInterfaces/index.d.ts +3 -0
  187. package/dist/react-native/operationsInterfaces/index.d.ts.map +1 -0
  188. package/dist/react-native/operationsInterfaces/index.js +10 -0
  189. package/dist/react-native/operationsInterfaces/index.js.map +1 -0
  190. package/dist/react-native/operationsInterfaces/operations.d.ts +11 -0
  191. package/dist/react-native/operationsInterfaces/operations.d.ts.map +1 -0
  192. package/dist/react-native/operationsInterfaces/operations.js +9 -0
  193. package/dist/react-native/operationsInterfaces/operations.js.map +1 -0
  194. package/dist/react-native/package.json +3 -0
  195. package/dist/react-native/pagingHelper.d.ts +13 -0
  196. package/dist/react-native/pagingHelper.d.ts.map +1 -0
  197. package/dist/react-native/pagingHelper.js +32 -0
  198. package/dist/react-native/pagingHelper.js.map +1 -0
  199. package/package.json +70 -41
  200. package/dist/index.js +0 -1451
  201. package/dist/index.js.map +0 -1
  202. package/dist/index.min.js +0 -1
  203. package/dist/index.min.js.map +0 -1
  204. package/dist-esm/samples-dev/botsCreateSample.d.ts +0 -2
  205. package/dist-esm/samples-dev/botsCreateSample.d.ts.map +0 -1
  206. package/dist-esm/samples-dev/botsCreateSample.js +0 -33
  207. package/dist-esm/samples-dev/botsCreateSample.js.map +0 -1
  208. package/dist-esm/samples-dev/botsDeleteSample.d.ts +0 -2
  209. package/dist-esm/samples-dev/botsDeleteSample.d.ts.map +0 -1
  210. package/dist-esm/samples-dev/botsDeleteSample.js +0 -29
  211. package/dist-esm/samples-dev/botsDeleteSample.js.map +0 -1
  212. package/dist-esm/samples-dev/botsGetSample.d.ts +0 -2
  213. package/dist-esm/samples-dev/botsGetSample.d.ts.map +0 -1
  214. package/dist-esm/samples-dev/botsGetSample.js +0 -29
  215. package/dist-esm/samples-dev/botsGetSample.js.map +0 -1
  216. package/dist-esm/samples-dev/botsListByResourceGroupSample.d.ts +0 -2
  217. package/dist-esm/samples-dev/botsListByResourceGroupSample.d.ts.map +0 -1
  218. package/dist-esm/samples-dev/botsListByResourceGroupSample.js +0 -44
  219. package/dist-esm/samples-dev/botsListByResourceGroupSample.js.map +0 -1
  220. package/dist-esm/samples-dev/botsListSample.d.ts +0 -2
  221. package/dist-esm/samples-dev/botsListSample.d.ts.map +0 -1
  222. package/dist-esm/samples-dev/botsListSample.js +0 -43
  223. package/dist-esm/samples-dev/botsListSample.js.map +0 -1
  224. package/dist-esm/samples-dev/botsUpdateSample.d.ts +0 -2
  225. package/dist-esm/samples-dev/botsUpdateSample.d.ts.map +0 -1
  226. package/dist-esm/samples-dev/botsUpdateSample.js +0 -23
  227. package/dist-esm/samples-dev/botsUpdateSample.js.map +0 -1
  228. package/dist-esm/samples-dev/operationsListSample.d.ts +0 -2
  229. package/dist-esm/samples-dev/operationsListSample.d.ts.map +0 -1
  230. package/dist-esm/samples-dev/operationsListSample.js +0 -43
  231. package/dist-esm/samples-dev/operationsListSample.js.map +0 -1
  232. package/dist-esm/src/healthbotClient.d.ts.map +0 -1
  233. package/dist-esm/src/healthbotClient.js.map +0 -1
  234. package/dist-esm/src/index.d.ts +0 -5
  235. package/dist-esm/src/index.js.map +0 -1
  236. package/dist-esm/src/lroImpl.js +0 -29
  237. package/dist-esm/src/lroImpl.js.map +0 -1
  238. package/dist-esm/src/models/index.js.map +0 -1
  239. package/dist-esm/src/models/mappers.js.map +0 -1
  240. package/dist-esm/src/models/parameters.js.map +0 -1
  241. package/dist-esm/src/operations/bots.d.ts.map +0 -1
  242. package/dist-esm/src/operations/bots.js.map +0 -1
  243. package/dist-esm/src/operations/index.d.ts +0 -3
  244. package/dist-esm/src/operations/index.js.map +0 -1
  245. package/dist-esm/src/operations/operations.d.ts.map +0 -1
  246. package/dist-esm/src/operations/operations.js.map +0 -1
  247. package/dist-esm/src/operationsInterfaces/bots.d.ts.map +0 -1
  248. package/dist-esm/src/operationsInterfaces/bots.js.map +0 -1
  249. package/dist-esm/src/operationsInterfaces/index.d.ts +0 -3
  250. package/dist-esm/src/operationsInterfaces/index.js.map +0 -1
  251. package/dist-esm/src/operationsInterfaces/operations.js.map +0 -1
  252. package/dist-esm/src/pagingHelper.js.map +0 -1
  253. package/dist-esm/test/sampleTest.d.ts +0 -2
  254. package/dist-esm/test/sampleTest.d.ts.map +0 -1
  255. package/dist-esm/test/sampleTest.js +0 -42
  256. package/dist-esm/test/sampleTest.js.map +0 -1
  257. package/src/healthbotClient.ts +0 -142
  258. package/src/lroImpl.ts +0 -34
  259. package/src/models/index.ts +0 -355
  260. package/src/models/mappers.ts +0 -530
  261. package/src/models/parameters.ts +0 -130
  262. package/src/operations/bots.ts +0 -619
  263. package/src/operations/operations.ts +0 -150
  264. package/src/operationsInterfaces/bots.ts +0 -116
  265. package/src/operationsInterfaces/operations.ts +0 -22
  266. package/src/pagingHelper.ts +0 -39
  267. package/tsconfig.json +0 -33
  268. /package/{dist-esm/src → dist/browser}/lroImpl.d.ts +0 -0
  269. /package/{dist-esm/src → dist/browser}/lroImpl.d.ts.map +0 -0
  270. /package/{dist-esm/src → dist/browser}/models/index.d.ts +0 -0
  271. /package/{dist-esm/src → dist/browser}/models/index.d.ts.map +0 -0
  272. /package/{dist-esm/src → dist/browser}/models/index.js +0 -0
  273. /package/{dist-esm/src → dist/browser}/models/mappers.d.ts +0 -0
  274. /package/{dist-esm/src → dist/browser}/models/mappers.d.ts.map +0 -0
  275. /package/{dist-esm/src → dist/browser}/models/mappers.js +0 -0
  276. /package/{dist-esm/src → dist/browser}/models/parameters.d.ts +0 -0
  277. /package/{dist-esm/src → dist/browser}/models/parameters.d.ts.map +0 -0
  278. /package/{dist-esm/src → dist/browser}/operationsInterfaces/bots.js +0 -0
  279. /package/{dist-esm/src → dist/browser}/operationsInterfaces/operations.js +0 -0
  280. /package/{dist-esm/src → dist/browser}/pagingHelper.d.ts +0 -0
  281. /package/{dist-esm/src → dist/browser}/pagingHelper.d.ts.map +0 -0
  282. /package/{dist-esm/src → dist/browser}/pagingHelper.js +0 -0
  283. /package/{types → dist/commonjs}/tsdoc-metadata.json +0 -0
package/README.md CHANGED
@@ -48,20 +48,28 @@ Set the values of the client ID, tenant ID, and client secret of the AAD applica
48
48
 
49
49
  For more information about how to create an Azure AD Application check out [this guide](https://learn.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal).
50
50
 
51
- ```javascript
52
- const { HealthbotClient } = require("@azure/arm-healthbot");
53
- const { DefaultAzureCredential } = require("@azure/identity");
54
- // For client-side applications running in the browser, use InteractiveBrowserCredential instead of DefaultAzureCredential. See https://aka.ms/azsdk/js/identity/examples for more details.
51
+ Using Node.js and Node-like environments, you can use the `DefaultAzureCredential` class to authenticate the client.
52
+
53
+ ```ts snippet:ReadmeSampleCreateClient_Node
54
+ import { HealthbotClient } from "@azure/arm-healthbot";
55
+ import { DefaultAzureCredential } from "@azure/identity";
55
56
 
56
57
  const subscriptionId = "00000000-0000-0000-0000-000000000000";
57
58
  const client = new HealthbotClient(new DefaultAzureCredential(), subscriptionId);
59
+ ```
60
+
61
+ For browser environments, use the `InteractiveBrowserCredential` from the `@azure/identity` package to authenticate.
62
+
63
+ ```ts snippet:ReadmeSampleCreateClient_Browser
64
+ import { InteractiveBrowserCredential } from "@azure/identity";
65
+ import { HealthbotClient } from "@azure/arm-healthbot";
58
66
 
59
- // For client-side applications running in the browser, use this code instead:
60
- // const credential = new InteractiveBrowserCredential({
61
- // tenantId: "<YOUR_TENANT_ID>",
62
- // clientId: "<YOUR_CLIENT_ID>"
63
- // });
64
- // const client = new HealthbotClient(credential, subscriptionId);
67
+ const subscriptionId = "00000000-0000-0000-0000-000000000000";
68
+ const credential = new InteractiveBrowserCredential({
69
+ tenantId: "<YOUR_TENANT_ID>",
70
+ clientId: "<YOUR_CLIENT_ID>",
71
+ });
72
+ const client = new HealthbotClient(credential, subscriptionId);
65
73
  ```
66
74
 
67
75
  ### JavaScript Bundle
@@ -80,8 +88,9 @@ To use this client library in the browser, first you need to use a bundler. For
80
88
 
81
89
  Enabling logging may help uncover useful information about failures. In order to see a log of HTTP requests and responses, set the `AZURE_LOG_LEVEL` environment variable to `info`. Alternatively, logging can be enabled at runtime by calling `setLogLevel` in the `@azure/logger`:
82
90
 
83
- ```javascript
84
- const { setLogLevel } = require("@azure/logger");
91
+ ```ts snippet:SetLogLevel
92
+ import { setLogLevel } from "@azure/logger";
93
+
85
94
  setLogLevel("info");
86
95
  ```
87
96
 
@@ -99,8 +108,6 @@ If you'd like to contribute to this library, please read the [contributing guide
99
108
 
100
109
  - [Microsoft Azure SDK for JavaScript](https://github.com/Azure/azure-sdk-for-js)
101
110
 
102
- ![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-js%2Fsdk%2Fhealthbot%2Farm-healthbot%2FREADME.png)
103
-
104
111
  [azure_cli]: https://learn.microsoft.com/cli/azure
105
112
  [azure_sub]: https://azure.microsoft.com/free/
106
113
  [azure_sub]: https://azure.microsoft.com/free/
@@ -1,7 +1,7 @@
1
1
  import * as coreClient from "@azure/core-client";
2
2
  import * as coreAuth from "@azure/core-auth";
3
- import { Bots, Operations } from "./operationsInterfaces";
4
- import { HealthbotClientOptionalParams } from "./models";
3
+ import { Bots, Operations } from "./operationsInterfaces/index.js";
4
+ import { HealthbotClientOptionalParams } from "./models/index.js";
5
5
  export declare class HealthbotClient extends coreClient.ServiceClient {
6
6
  $host: string;
7
7
  subscriptionId: string;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"healthbotClient.d.ts","sourceRoot":"","sources":["../../src/healthbotClient.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AAOjD,OAAO,KAAK,QAAQ,MAAM,kBAAkB,CAAC;AAE7C,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,iCAAiC,CAAC;AACnE,OAAO,EAAE,6BAA6B,EAAE,MAAM,mBAAmB,CAAC;AAElE,qBAAa,eAAgB,SAAQ,UAAU,CAAC,aAAa;IAC3D,KAAK,EAAE,MAAM,CAAC;IACd,cAAc,EAAE,MAAM,CAAC;IACvB,UAAU,EAAE,MAAM,CAAC;IAEnB;;;;;OAKG;gBAED,WAAW,EAAE,QAAQ,CAAC,eAAe,EACrC,cAAc,EAAE,MAAM,EACtB,OAAO,CAAC,EAAE,6BAA6B;IA6EzC,8GAA8G;IAC9G,OAAO,CAAC,yBAAyB;IA2BjC,IAAI,EAAE,IAAI,CAAC;IACX,UAAU,EAAE,UAAU,CAAC;CACxB"}
@@ -5,10 +5,9 @@
5
5
  * Code generated by Microsoft (R) AutoRest Code Generator.
6
6
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
7
  */
8
- import { __awaiter } from "tslib";
9
8
  import * as coreClient from "@azure/core-client";
10
9
  import * as coreRestPipeline from "@azure/core-rest-pipeline";
11
- import { BotsImpl, OperationsImpl } from "./operations";
10
+ import { BotsImpl, OperationsImpl } from "./operations/index.js";
12
11
  export class HealthbotClient extends coreClient.ServiceClient {
13
12
  /**
14
13
  * Initializes a new instance of the HealthbotClient class.
@@ -77,22 +76,20 @@ export class HealthbotClient extends coreClient.ServiceClient {
77
76
  }
78
77
  const apiVersionPolicy = {
79
78
  name: "CustomApiVersionPolicy",
80
- sendRequest(request, next) {
81
- return __awaiter(this, void 0, void 0, function* () {
82
- const param = request.url.split("?");
83
- if (param.length > 1) {
84
- const newParams = param[1].split("&").map((item) => {
85
- if (item.indexOf("api-version") > -1) {
86
- return "api-version=" + apiVersion;
87
- }
88
- else {
89
- return item;
90
- }
91
- });
92
- request.url = param[0] + "?" + newParams.join("&");
93
- }
94
- return next(request);
95
- });
79
+ async sendRequest(request, next) {
80
+ const param = request.url.split("?");
81
+ if (param.length > 1) {
82
+ const newParams = param[1].split("&").map((item) => {
83
+ if (item.indexOf("api-version") > -1) {
84
+ return "api-version=" + apiVersion;
85
+ }
86
+ else {
87
+ return item;
88
+ }
89
+ });
90
+ request.url = param[0] + "?" + newParams.join("&");
91
+ }
92
+ return next(request);
96
93
  }
97
94
  };
98
95
  this.pipeline.addPolicy(apiVersionPolicy);
@@ -0,0 +1 @@
1
+ {"version":3,"file":"healthbotClient.js","sourceRoot":"","sources":["../../src/healthbotClient.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,gBAAgB,MAAM,2BAA2B,CAAC;AAO9D,OAAO,EAAE,QAAQ,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAIjE,MAAM,OAAO,eAAgB,SAAQ,UAAU,CAAC,aAAa;IAK3D;;;;;OAKG;IACH,YACE,WAAqC,EACrC,cAAsB,EACtB,OAAuC;;QAEvC,IAAI,WAAW,KAAK,SAAS,EAAE,CAAC;YAC9B,MAAM,IAAI,KAAK,CAAC,8BAA8B,CAAC,CAAC;QAClD,CAAC;QACD,IAAI,cAAc,KAAK,SAAS,EAAE,CAAC;YACjC,MAAM,IAAI,KAAK,CAAC,iCAAiC,CAAC,CAAC;QACrD,CAAC;QAED,0CAA0C;QAC1C,IAAI,CAAC,OAAO,EAAE,CAAC;YACb,OAAO,GAAG,EAAE,CAAC;QACf,CAAC;QACD,MAAM,QAAQ,GAAkC;YAC9C,kBAAkB,EAAE,iCAAiC;YACrD,UAAU,EAAE,WAAW;SACxB,CAAC;QAEF,MAAM,cAAc,GAAG,8BAA8B,CAAC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C;oBACH,OAAO,CAAC,GAAG,GAAG,KAAK,CAAC,CAAC,CAAC,GAAG,GAAG,GAAG,SAAS,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;gBACrD,CAAC;gBACD,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC;YACvB,CAAC;SACF,CAAC;QACF,IAAI,CAAC,QAAQ,CAAC,SAAS,CAAC,gBAAgB,CAAC,CAAC;IAC5C,CAAC;CAIF","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport * as coreClient from \"@azure/core-client\";\nimport * as coreRestPipeline from \"@azure/core-rest-pipeline\";\nimport {\n PipelineRequest,\n PipelineResponse,\n SendRequest\n} from \"@azure/core-rest-pipeline\";\nimport * as coreAuth from \"@azure/core-auth\";\nimport { BotsImpl, OperationsImpl } from \"./operations/index.js\";\nimport { Bots, Operations } from \"./operationsInterfaces/index.js\";\nimport { HealthbotClientOptionalParams } from \"./models/index.js\";\n\nexport class HealthbotClient extends coreClient.ServiceClient {\n $host: string;\n subscriptionId: string;\n apiVersion: string;\n\n /**\n * Initializes a new instance of the HealthbotClient class.\n * @param credentials Subscription credentials which uniquely identify client subscription.\n * @param subscriptionId Azure Subscription ID.\n * @param options The parameter options\n */\n constructor(\n credentials: coreAuth.TokenCredential,\n subscriptionId: string,\n options?: HealthbotClientOptionalParams\n ) {\n if (credentials === undefined) {\n throw new Error(\"'credentials' cannot be null\");\n }\n if (subscriptionId === undefined) {\n throw new Error(\"'subscriptionId' cannot be null\");\n }\n\n // Initializing default values for options\n if (!options) {\n options = {};\n }\n const defaults: HealthbotClientOptionalParams = {\n requestContentType: \"application/json; charset=utf-8\",\n credential: credentials\n };\n\n const packageDetails = `azsdk-js-arm-healthbot/2.1.1`;\n const userAgentPrefix =\n options.userAgentOptions && options.userAgentOptions.userAgentPrefix\n ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`\n : `${packageDetails}`;\n\n const optionsWithDefaults = {\n ...defaults,\n ...options,\n userAgentOptions: {\n userAgentPrefix\n },\n endpoint:\n options.endpoint ?? options.baseUri ?? \"https://management.azure.com\"\n };\n super(optionsWithDefaults);\n\n let bearerTokenAuthenticationPolicyFound: boolean = false;\n if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {\n const pipelinePolicies: coreRestPipeline.PipelinePolicy[] = options.pipeline.getOrderedPolicies();\n bearerTokenAuthenticationPolicyFound = pipelinePolicies.some(\n (pipelinePolicy) =>\n pipelinePolicy.name ===\n coreRestPipeline.bearerTokenAuthenticationPolicyName\n );\n }\n if (\n !options ||\n !options.pipeline ||\n options.pipeline.getOrderedPolicies().length == 0 ||\n !bearerTokenAuthenticationPolicyFound\n ) {\n this.pipeline.removePolicy({\n name: coreRestPipeline.bearerTokenAuthenticationPolicyName\n });\n this.pipeline.addPolicy(\n coreRestPipeline.bearerTokenAuthenticationPolicy({\n credential: credentials,\n scopes:\n optionsWithDefaults.credentialScopes ??\n `${optionsWithDefaults.endpoint}/.default`,\n challengeCallbacks: {\n authorizeRequestOnChallenge:\n coreClient.authorizeRequestOnClaimChallenge\n }\n })\n );\n }\n // Parameter assignments\n this.subscriptionId = subscriptionId;\n\n // Assigning values to Constant parameters\n this.$host = options.$host || \"https://management.azure.com\";\n this.apiVersion = options.apiVersion || \"2021-06-10\";\n this.bots = new BotsImpl(this);\n this.operations = new OperationsImpl(this);\n this.addCustomApiVersionPolicy(options.apiVersion);\n }\n\n /** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */\n private addCustomApiVersionPolicy(apiVersion?: string) {\n if (!apiVersion) {\n return;\n }\n const apiVersionPolicy = {\n name: \"CustomApiVersionPolicy\",\n async sendRequest(\n request: PipelineRequest,\n next: SendRequest\n ): Promise<PipelineResponse> {\n const param = request.url.split(\"?\");\n if (param.length > 1) {\n const newParams = param[1].split(\"&\").map((item) => {\n if (item.indexOf(\"api-version\") > -1) {\n return \"api-version=\" + apiVersion;\n } else {\n return item;\n }\n });\n request.url = param[0] + \"?\" + newParams.join(\"&\");\n }\n return next(request);\n }\n };\n this.pipeline.addPolicy(apiVersionPolicy);\n }\n\n bots: Bots;\n operations: Operations;\n}\n"]}
@@ -0,0 +1,5 @@
1
+ export { getContinuationToken } from "./pagingHelper.js";
2
+ export * from "./models/index.js";
3
+ export { HealthbotClient } from "./healthbotClient.js";
4
+ export * from "./operationsInterfaces/index.js";
5
+ //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AACtD,cAAc,UAAU,CAAC;AACzB,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,cAAc,wBAAwB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AACzD,cAAc,mBAAmB,CAAC;AAClC,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,cAAc,iCAAiC,CAAC"}
@@ -6,8 +6,8 @@
6
6
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
7
  */
8
8
  /// <reference lib="esnext.asynciterable" />
9
- export { getContinuationToken } from "./pagingHelper";
10
- export * from "./models";
11
- export { HealthbotClient } from "./healthbotClient";
12
- export * from "./operationsInterfaces";
9
+ export { getContinuationToken } from "./pagingHelper.js";
10
+ export * from "./models/index.js";
11
+ export { HealthbotClient } from "./healthbotClient.js";
12
+ export * from "./operationsInterfaces/index.js";
13
13
  //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,4CAA4C;AAC5C,OAAO,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AACzD,cAAc,mBAAmB,CAAC;AAClC,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,cAAc,iCAAiC,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\n/// <reference lib=\"esnext.asynciterable\" />\nexport { getContinuationToken } from \"./pagingHelper.js\";\nexport * from \"./models/index.js\";\nexport { HealthbotClient } from \"./healthbotClient.js\";\nexport * from \"./operationsInterfaces/index.js\";\n"]}
@@ -0,0 +1,25 @@
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 { __rest } from "tslib";
9
+ export class LroImpl {
10
+ constructor(sendOperationFn, args, spec, requestPath = spec.path, requestMethod = spec.httpMethod) {
11
+ this.sendOperationFn = sendOperationFn;
12
+ this.args = args;
13
+ this.spec = spec;
14
+ this.requestPath = requestPath;
15
+ this.requestMethod = requestMethod;
16
+ }
17
+ async sendInitialRequest() {
18
+ return this.sendOperationFn(this.args, this.spec);
19
+ }
20
+ async sendPollRequest(path) {
21
+ const _a = this.spec, { requestBody } = _a, restSpec = __rest(_a, ["requestBody"]);
22
+ return this.sendOperationFn(this.args, Object.assign(Object.assign({}, restSpec), { path, httpMethod: "GET" }));
23
+ }
24
+ }
25
+ //# sourceMappingURL=lroImpl.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"lroImpl.js","sourceRoot":"","sources":["../../src/lroImpl.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAIH,MAAM,OAAO,OAAO;IAClB,YACU,eAAkE,EAClE,IAA6B,EAC7B,IAIe,EAChB,cAAsB,IAAI,CAAC,IAAK,EAChC,gBAAwB,IAAI,CAAC,UAAU;QARtC,oBAAe,GAAf,eAAe,CAAmD;QAClE,SAAI,GAAJ,IAAI,CAAyB;QAC7B,SAAI,GAAJ,IAAI,CAIW;QAChB,gBAAW,GAAX,WAAW,CAAqB;QAChC,kBAAa,GAAb,aAAa,CAA0B;IAC7C,CAAC;IACG,KAAK,CAAC,kBAAkB;QAC7B,OAAO,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,IAAI,CAAC,CAAC;IACpD,CAAC;IACM,KAAK,CAAC,eAAe,CAAC,IAAY;QACvC,MAAM,KAA+B,IAAI,CAAC,IAAI,EAAxC,EAAE,WAAW,OAA2B,EAAtB,QAAQ,cAA1B,eAA4B,CAAY,CAAC;QAC/C,OAAO,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,IAAI,kCAChC,QAAQ,KACX,IAAI,EACJ,UAAU,EAAE,KAAK,IACjB,CAAC;IACL,CAAC;CACF","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { LongRunningOperation, LroResponse } from \"@azure/core-lro\";\n\nexport class LroImpl<T> implements LongRunningOperation<T> {\n constructor(\n private sendOperationFn: (args: any, spec: any) => Promise<LroResponse<T>>,\n private args: Record<string, unknown>,\n private spec: {\n readonly requestBody?: unknown;\n readonly path?: string;\n readonly httpMethod: string;\n } & Record<string, any>,\n public requestPath: string = spec.path!,\n public requestMethod: string = spec.httpMethod\n ) {}\n public async sendInitialRequest(): Promise<LroResponse<T>> {\n return this.sendOperationFn(this.args, this.spec);\n }\n public async sendPollRequest(path: string): Promise<LroResponse<T>> {\n const { requestBody, ...restSpec } = this.spec;\n return this.sendOperationFn(this.args, {\n ...restSpec,\n path,\n httpMethod: \"GET\"\n });\n }\n}\n"]}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/models/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AA2OH,qEAAqE;AACrE,MAAM,CAAN,IAAY,iBASX;AATD,WAAY,iBAAiB;IAC3B,WAAW;IACX,kCAAa,CAAA;IACb,kBAAkB;IAClB,gDAA2B,CAAA;IAC3B,sBAAsB;IACtB,wDAAmC,CAAA;IACnC,UAAU;IACV,gCAAW,CAAA;AACb,CAAC,EATW,iBAAiB,KAAjB,iBAAiB,QAS5B","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport * as coreClient from \"@azure/core-client\";\n\n/** The resource model definition representing SKU */\nexport interface Sku {\n /** The name of the Azure Health Bot SKU */\n name: SkuName;\n}\n\n/** Identity for the resource. */\nexport interface Identity {\n /**\n * The principal ID of resource identity. This property will only be provided for a system assigned identity.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly principalId?: string;\n /**\n * The tenant ID of resource. This property will only be provided for a system assigned identity.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly tenantId?: string;\n /** The identity type. The type 'SystemAssigned, UserAssigned' includes both an implicitly created identity and a set of user assigned identities. The type 'None' will remove any identities from the Azure Health Bot */\n type?: ResourceIdentityType;\n /**\n * The list of user identities associated with the resource. The user identity dictionary key references will be ARM resource ids in the form:\n * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'.\n *\n */\n userAssignedIdentities?: { [propertyName: string]: UserAssignedIdentity };\n}\n\n/** The details of the user assigned managed identity used by the Video Analyzer resource. */\nexport interface UserAssignedIdentity {\n /**\n * The principal ID of user assigned identity.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly principalId?: string;\n /**\n * The client ID of user assigned identity.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly clientId?: string;\n}\n\n/** The properties of a Azure Health Bot. The Health Bot Service is a cloud platform that empowers developers in Healthcare organizations to build and deploy their compliant, AI-powered virtual health assistants and health bots, that help them improve processes and reduce costs. */\nexport interface HealthBotProperties {\n /**\n * The provisioning state of the Azure Health Bot resource.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly provisioningState?: string;\n /**\n * The link.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly botManagementPortalLink?: string;\n}\n\n/** The resource model definition for a ARM tracked top level resource */\nexport interface Resource {\n /**\n * Fully qualified resource Id for the resource.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly id?: string;\n /**\n * The name of the resource\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly name?: string;\n /**\n * The type of the resource.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly type?: string;\n /**\n * Metadata pertaining to creation and last modification of the resource\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly systemData?: SystemData;\n}\n\n/** Read only system data */\nexport interface SystemData {\n /** The identity that created the resource. */\n createdBy?: string;\n /** The type of identity that created the resource */\n createdByType?: IdentityType;\n /** The timestamp of resource creation (UTC) */\n createdAt?: Date;\n /** The identity that last modified the resource. */\n lastModifiedBy?: string;\n /** The type of identity that last modified the resource */\n lastModifiedByType?: IdentityType;\n /** The timestamp of resource last modification (UTC) */\n lastModifiedAt?: Date;\n}\n\n/** The resource management error response. */\nexport interface ErrorModel {\n /** The error object. */\n error?: ErrorError;\n}\n\n/** The error object. */\nexport interface ErrorError {\n /**\n * The error code.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly code?: string;\n /**\n * The error message.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly message?: string;\n /**\n * The error target.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly target?: string;\n /**\n * The error details.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly details?: ErrorModel[];\n /**\n * The error additional info.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly additionalInfo?: ErrorAdditionalInfo[];\n}\n\n/** The resource management error additional info. */\nexport interface ErrorAdditionalInfo {\n /**\n * The additional info type.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly type?: string;\n /**\n * The additional info.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly info?: Record<string, unknown>;\n}\n\n/** Parameters for updating a Azure Health Bot. */\nexport interface HealthBotUpdateParameters {\n /** Tags for a Azure Health Bot. */\n tags?: { [propertyName: string]: string };\n /** SKU of the Azure Health Bot. */\n sku?: Sku;\n /** The identity of the Azure Health Bot. */\n identity?: Identity;\n location?: string;\n}\n\n/** The list of Azure Health Bot operation response. */\nexport interface BotResponseList {\n /**\n * The link used to get the next page of bot service resources.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly nextLink?: string;\n /**\n * Gets the list of Azure Health Bot results and their properties.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly value?: HealthBot[];\n}\n\n/** Available operations of the service */\nexport interface AvailableOperations {\n /** Collection of available operation details */\n value?: OperationDetail[];\n /**\n * URL client should use to fetch the next page (per server side paging).\n * It's null for now, added for future use.\n */\n nextLink?: string;\n}\n\n/** Operation detail payload */\nexport interface OperationDetail {\n /** Name of the operation */\n name?: string;\n /** Indicates whether the operation is a data action */\n isDataAction?: boolean;\n /** Display of the operation */\n display?: OperationDisplay;\n /** Origin of the operation */\n origin?: string;\n /** Additional properties. */\n properties?: Record<string, unknown>;\n}\n\n/** Operation display payload */\nexport interface OperationDisplay {\n /** Resource provider of the operation */\n provider?: string;\n /** Resource of the operation */\n resource?: string;\n /** Localized friendly name for the operation */\n operation?: string;\n /** Localized friendly description for the operation */\n description?: string;\n}\n\n/** The response returned from validation process */\nexport interface ValidationResult {\n /** The status code of the response validation. */\n status?: string;\n}\n\n/** The resource model definition for a ARM tracked top level resource */\nexport interface TrackedResource extends Resource {\n /** Resource tags. */\n tags?: { [propertyName: string]: string };\n /** The geo-location where the resource lives */\n location: string;\n}\n\n/** Azure Health Bot resource definition */\nexport interface HealthBot extends TrackedResource {\n /** SKU of the Azure Health Bot. */\n sku: Sku;\n /** The identity of the Azure Health Bot. */\n identity?: Identity;\n /** The set of properties specific to Azure Health Bot resource. */\n properties?: HealthBotProperties;\n}\n\n/** Known values of {@link IdentityType} that the service accepts. */\nexport enum KnownIdentityType {\n /** User */\n User = \"User\",\n /** Application */\n Application = \"Application\",\n /** ManagedIdentity */\n ManagedIdentity = \"ManagedIdentity\",\n /** Key */\n Key = \"Key\"\n}\n\n/**\n * Defines values for IdentityType. \\\n * {@link KnownIdentityType} can be used interchangeably with IdentityType,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **User** \\\n * **Application** \\\n * **ManagedIdentity** \\\n * **Key**\n */\nexport type IdentityType = string;\n/** Defines values for SkuName. */\nexport type SkuName = \"F0\" | \"S1\" | \"C0\";\n/** Defines values for ResourceIdentityType. */\nexport type ResourceIdentityType =\n | \"SystemAssigned\"\n | \"UserAssigned\"\n | \"SystemAssigned, UserAssigned\"\n | \"None\";\n\n/** Optional parameters. */\nexport interface BotsCreateOptionalParams extends coreClient.OperationOptions {\n /** Delay to wait until next poll, in milliseconds. */\n updateIntervalInMs?: number;\n /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */\n resumeFrom?: string;\n}\n\n/** Contains response data for the create operation. */\nexport type BotsCreateResponse = HealthBot;\n\n/** Optional parameters. */\nexport interface BotsGetOptionalParams extends coreClient.OperationOptions {}\n\n/** Contains response data for the get operation. */\nexport type BotsGetResponse = HealthBot;\n\n/** Optional parameters. */\nexport interface BotsUpdateOptionalParams extends coreClient.OperationOptions {}\n\n/** Contains response data for the update operation. */\nexport type BotsUpdateResponse = HealthBot;\n\n/** Optional parameters. */\nexport interface BotsDeleteOptionalParams extends coreClient.OperationOptions {\n /** Delay to wait until next poll, in milliseconds. */\n updateIntervalInMs?: number;\n /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */\n resumeFrom?: string;\n}\n\n/** Optional parameters. */\nexport interface BotsListByResourceGroupOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the listByResourceGroup operation. */\nexport type BotsListByResourceGroupResponse = BotResponseList;\n\n/** Optional parameters. */\nexport interface BotsListOptionalParams extends coreClient.OperationOptions {}\n\n/** Contains response data for the list operation. */\nexport type BotsListResponse = BotResponseList;\n\n/** Optional parameters. */\nexport interface BotsListByResourceGroupNextOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the listByResourceGroupNext operation. */\nexport type BotsListByResourceGroupNextResponse = BotResponseList;\n\n/** Optional parameters. */\nexport interface BotsListNextOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the listNext operation. */\nexport type BotsListNextResponse = BotResponseList;\n\n/** Optional parameters. */\nexport interface OperationsListOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the list operation. */\nexport type OperationsListResponse = AvailableOperations;\n\n/** Optional parameters. */\nexport interface OperationsListNextOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the listNext operation. */\nexport type OperationsListNextResponse = AvailableOperations;\n\n/** Optional parameters. */\nexport interface HealthbotClientOptionalParams\n extends coreClient.ServiceClientOptions {\n /** server parameter */\n $host?: string;\n /** Api Version */\n apiVersion?: string;\n /** Overrides client endpoint. */\n endpoint?: string;\n}\n"]}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mappers.js","sourceRoot":"","sources":["../../../src/models/mappers.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAIH,MAAM,CAAC,MAAM,GAAG,GAA+B;IAC7C,IAAI,EAAE;QACJ,IAAI,EAAE,WAAW;QACjB,SAAS,EAAE,KAAK;QAChB,eAAe,EAAE;YACf,IAAI,EAAE;gBACJ,cAAc,EAAE,MAAM;gBACtB,QAAQ,EAAE,IAAI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E;oBACJ,IAAI,EAAE,WAAW;oBACjB,SAAS,EAAE,KAAK;iBACjB;aACF,EACD,QAAQ,EAAE;gBACR,cAAc,EAAE,UAAU;gBAC1B,IAAI,EAAE;oBACJ,IAAI,EAAE,WAAW;oBACjB,SAAS,EAAE,UAAU;iBACtB;aACF,EACD,UAAU,EAAE;gBACV,cAAc,EAAE,YAAY;gBAC5B,IAAI,EAAE;oBACJ,IAAI,EAAE,WAAW;oBACjB,SAAS,EAAE,qBAAqB;iBACjC;aACF,GACF;KACF;CACF,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport * as coreClient from \"@azure/core-client\";\n\nexport const Sku: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"Sku\",\n modelProperties: {\n name: {\n serializedName: \"name\",\n required: true,\n type: {\n name: \"Enum\",\n allowedValues: [\"F0\", \"S1\", \"C0\"]\n }\n }\n }\n }\n};\n\nexport const Identity: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"Identity\",\n modelProperties: {\n principalId: {\n serializedName: \"principalId\",\n readOnly: true,\n type: {\n name: \"String\"\n }\n },\n tenantId: {\n serializedName: \"tenantId\",\n readOnly: true,\n type: {\n name: \"String\"\n }\n },\n type: {\n serializedName: \"type\",\n type: {\n name: \"Enum\",\n allowedValues: [\n \"SystemAssigned\",\n \"UserAssigned\",\n \"SystemAssigned, UserAssigned\",\n \"None\"\n ]\n }\n },\n userAssignedIdentities: {\n serializedName: \"userAssignedIdentities\",\n type: {\n name: \"Dictionary\",\n value: {\n type: { name: \"Composite\", className: \"UserAssignedIdentity\" }\n }\n }\n }\n }\n }\n};\n\nexport const UserAssignedIdentity: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"UserAssignedIdentity\",\n modelProperties: {\n principalId: {\n serializedName: \"principalId\",\n readOnly: true,\n type: {\n name: \"String\"\n }\n },\n clientId: {\n serializedName: \"clientId\",\n readOnly: true,\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const HealthBotProperties: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"HealthBotProperties\",\n modelProperties: {\n provisioningState: {\n serializedName: \"provisioningState\",\n readOnly: true,\n type: {\n name: \"String\"\n }\n },\n botManagementPortalLink: {\n serializedName: \"botManagementPortalLink\",\n readOnly: true,\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const Resource: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"Resource\",\n modelProperties: {\n id: {\n serializedName: \"id\",\n readOnly: true,\n type: {\n name: \"String\"\n }\n },\n name: {\n serializedName: \"name\",\n readOnly: true,\n type: {\n name: \"String\"\n }\n },\n type: {\n serializedName: \"type\",\n readOnly: true,\n type: {\n name: \"String\"\n }\n },\n systemData: {\n serializedName: \"systemData\",\n type: {\n name: \"Composite\",\n className: \"SystemData\"\n }\n }\n }\n }\n};\n\nexport const SystemData: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"SystemData\",\n modelProperties: {\n createdBy: {\n serializedName: \"createdBy\",\n type: {\n name: \"String\"\n }\n },\n createdByType: {\n serializedName: \"createdByType\",\n type: {\n name: \"String\"\n }\n },\n createdAt: {\n serializedName: \"createdAt\",\n type: {\n name: \"DateTime\"\n }\n },\n lastModifiedBy: {\n serializedName: \"lastModifiedBy\",\n type: {\n name: \"String\"\n }\n },\n lastModifiedByType: {\n serializedName: \"lastModifiedByType\",\n type: {\n name: \"String\"\n }\n },\n lastModifiedAt: {\n serializedName: \"lastModifiedAt\",\n type: {\n name: \"DateTime\"\n }\n }\n }\n }\n};\n\nexport const ErrorModel: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"ErrorModel\",\n modelProperties: {\n error: {\n serializedName: \"error\",\n type: {\n name: \"Composite\",\n className: \"ErrorError\"\n }\n }\n }\n }\n};\n\nexport const ErrorError: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"ErrorError\",\n modelProperties: {\n code: {\n serializedName: \"code\",\n readOnly: true,\n type: {\n name: \"String\"\n }\n },\n message: {\n serializedName: \"message\",\n readOnly: true,\n type: {\n name: \"String\"\n }\n },\n target: {\n serializedName: \"target\",\n readOnly: true,\n type: {\n name: \"String\"\n }\n },\n details: {\n serializedName: \"details\",\n readOnly: true,\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"ErrorModel\"\n }\n }\n }\n },\n additionalInfo: {\n serializedName: \"additionalInfo\",\n readOnly: true,\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"ErrorAdditionalInfo\"\n }\n }\n }\n }\n }\n }\n};\n\nexport const ErrorAdditionalInfo: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"ErrorAdditionalInfo\",\n modelProperties: {\n type: {\n serializedName: \"type\",\n readOnly: true,\n type: {\n name: \"String\"\n }\n },\n info: {\n serializedName: \"info\",\n readOnly: true,\n type: {\n name: \"Dictionary\",\n value: { type: { name: \"any\" } }\n }\n }\n }\n }\n};\n\nexport const HealthBotUpdateParameters: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"HealthBotUpdateParameters\",\n modelProperties: {\n tags: {\n serializedName: \"tags\",\n type: {\n name: \"Dictionary\",\n value: { type: { name: \"String\" } }\n }\n },\n sku: {\n serializedName: \"sku\",\n type: {\n name: \"Composite\",\n className: \"Sku\"\n }\n },\n identity: {\n serializedName: \"identity\",\n type: {\n name: \"Composite\",\n className: \"Identity\"\n }\n },\n location: {\n serializedName: \"location\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const BotResponseList: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"BotResponseList\",\n modelProperties: {\n nextLink: {\n serializedName: \"nextLink\",\n readOnly: true,\n type: {\n name: \"String\"\n }\n },\n value: {\n serializedName: \"value\",\n readOnly: true,\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"HealthBot\"\n }\n }\n }\n }\n }\n }\n};\n\nexport const AvailableOperations: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"AvailableOperations\",\n modelProperties: {\n value: {\n serializedName: \"value\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"OperationDetail\"\n }\n }\n }\n },\n nextLink: {\n serializedName: \"nextLink\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const OperationDetail: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"OperationDetail\",\n modelProperties: {\n name: {\n serializedName: \"name\",\n type: {\n name: \"String\"\n }\n },\n isDataAction: {\n serializedName: \"isDataAction\",\n type: {\n name: \"Boolean\"\n }\n },\n display: {\n serializedName: \"display\",\n type: {\n name: \"Composite\",\n className: \"OperationDisplay\"\n }\n },\n origin: {\n serializedName: \"origin\",\n type: {\n name: \"String\"\n }\n },\n properties: {\n serializedName: \"properties\",\n type: {\n name: \"Dictionary\",\n value: { type: { name: \"any\" } }\n }\n }\n }\n }\n};\n\nexport const OperationDisplay: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"OperationDisplay\",\n modelProperties: {\n provider: {\n serializedName: \"provider\",\n type: {\n name: \"String\"\n }\n },\n resource: {\n serializedName: \"resource\",\n type: {\n name: \"String\"\n }\n },\n operation: {\n serializedName: \"operation\",\n type: {\n name: \"String\"\n }\n },\n description: {\n serializedName: \"description\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const ValidationResult: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"ValidationResult\",\n modelProperties: {\n status: {\n serializedName: \"status\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const TrackedResource: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"TrackedResource\",\n modelProperties: {\n ...Resource.type.modelProperties,\n tags: {\n serializedName: \"tags\",\n type: {\n name: \"Dictionary\",\n value: { type: { name: \"String\" } }\n }\n },\n location: {\n serializedName: \"location\",\n required: true,\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const HealthBot: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"HealthBot\",\n modelProperties: {\n ...TrackedResource.type.modelProperties,\n sku: {\n serializedName: \"sku\",\n type: {\n name: \"Composite\",\n className: \"Sku\"\n }\n },\n identity: {\n serializedName: \"identity\",\n type: {\n name: \"Composite\",\n className: \"Identity\"\n }\n },\n properties: {\n serializedName: \"properties\",\n type: {\n name: \"Composite\",\n className: \"HealthBotProperties\"\n }\n }\n }\n }\n};\n"]}
@@ -5,7 +5,7 @@
5
5
  * Code generated by Microsoft (R) AutoRest Code Generator.
6
6
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
7
  */
8
- import { HealthBot as HealthBotMapper, HealthBotUpdateParameters as HealthBotUpdateParametersMapper } from "../models/mappers";
8
+ import { HealthBot as HealthBotMapper, HealthBotUpdateParameters as HealthBotUpdateParametersMapper } from "../models/mappers.js";
9
9
  export const contentType = {
10
10
  parameterPath: ["options", "contentType"],
11
11
  mapper: {
@@ -0,0 +1 @@
1
+ {"version":3,"file":"parameters.js","sourceRoot":"","sources":["../../../src/models/parameters.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAOH,OAAO,EACL,SAAS,IAAI,eAAe,EAC5B,yBAAyB,IAAI,+BAA+B,EAC7D,MAAM,sBAAsB,CAAC;AAE9B,MAAM,CAAC,MAAM,WAAW,GAAuB;IAC7C,aAAa,EAAE,CAAC,SAAS,EAAE,aAAa,CAAC;IACzC,MAAM,EAAE;QACN,YAAY,EAAE,kBAAkB;QAChC,UAAU,EAAE,IAAI;QAChB,cAAc,EAAE,cAAc;QAC9B,IAAI,EAAE;YACJ,IAAI,EAAE,QAAQ;SACf;KACF;CACF,CAAC;AAEF,MAAM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;QACD,cAAc,EAAE,SAAS;QACzB,QAAQ,EAAE,IAAI;QACd,IAAI,EAAE;YACJ,IAAI,EAAE,QAAQ;SACf;KACF;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,UAAU,GAA4B;IACjD,aAAa,EAAE,YAAY;IAC3B,MAAM,EAAE;QACN,YAAY,EAAE,YAAY;QAC1B,UAAU,EAAE,IAAI;QAChB,cAAc,EAAE,aAAa;QAC7B,IAAI,EAAE;YACJ,IAAI,EAAE,QAAQ;SACf;KACF;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,WAAW,GAAuB;IAC7C,aAAa,EAAE,YAAY;IAC3B,MAAM,EAAE,+BAA+B;CACxC,CAAC;AAEF,MAAM,CAAC,MAAM,QAAQ,GAA0B;IAC7C,aAAa,EAAE,UAAU;IACzB,MAAM,EAAE;QACN,cAAc,EAAE,UAAU;QAC1B,QAAQ,EAAE,IAAI;QACd,IAAI,EAAE;YACJ,IAAI,EAAE,QAAQ;SACf;KACF;IACD,YAAY,EAAE,IAAI;CACnB,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport {\n OperationParameter,\n OperationURLParameter,\n OperationQueryParameter\n} from \"@azure/core-client\";\nimport {\n HealthBot as HealthBotMapper,\n HealthBotUpdateParameters as HealthBotUpdateParametersMapper\n} from \"../models/mappers.js\";\n\nexport const contentType: OperationParameter = {\n parameterPath: [\"options\", \"contentType\"],\n mapper: {\n defaultValue: \"application/json\",\n isConstant: true,\n serializedName: \"Content-Type\",\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const parameters: OperationParameter = {\n parameterPath: \"parameters\",\n mapper: HealthBotMapper\n};\n\nexport const accept: OperationParameter = {\n parameterPath: \"accept\",\n mapper: {\n defaultValue: \"application/json\",\n isConstant: true,\n serializedName: \"Accept\",\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const $host: OperationURLParameter = {\n parameterPath: \"$host\",\n mapper: {\n serializedName: \"$host\",\n required: true,\n type: {\n name: \"String\"\n }\n },\n skipEncoding: true\n};\n\nexport const subscriptionId: OperationURLParameter = {\n parameterPath: \"subscriptionId\",\n mapper: {\n serializedName: \"subscriptionId\",\n required: true,\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const resourceGroupName: OperationURLParameter = {\n parameterPath: \"resourceGroupName\",\n mapper: {\n constraints: {\n Pattern: new RegExp(\"^[a-zA-Z0-9][a-zA-Z0-9_.-]*$\"),\n MaxLength: 64,\n MinLength: 2\n },\n serializedName: \"resourceGroupName\",\n required: true,\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const botName: OperationURLParameter = {\n parameterPath: \"botName\",\n mapper: {\n constraints: {\n Pattern: new RegExp(\"^[a-zA-Z0-9][a-zA-Z0-9_.-]*$\"),\n MaxLength: 64,\n MinLength: 2\n },\n serializedName: \"botName\",\n required: true,\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const apiVersion: OperationQueryParameter = {\n parameterPath: \"apiVersion\",\n mapper: {\n defaultValue: \"2021-06-10\",\n isConstant: true,\n serializedName: \"api-version\",\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const parameters1: OperationParameter = {\n parameterPath: \"parameters\",\n mapper: HealthBotUpdateParametersMapper\n};\n\nexport const nextLink: OperationURLParameter = {\n parameterPath: \"nextLink\",\n mapper: {\n serializedName: \"nextLink\",\n required: true,\n type: {\n name: \"String\"\n }\n },\n skipEncoding: true\n};\n"]}
@@ -1,8 +1,8 @@
1
1
  import { PagedAsyncIterableIterator } from "@azure/core-paging";
2
- import { Bots } from "../operationsInterfaces";
3
- import { HealthbotClient } from "../healthbotClient";
2
+ import { Bots } from "../operationsInterfaces/index.js";
3
+ import { HealthbotClient } from "../healthbotClient.js";
4
4
  import { PollerLike, PollOperationState } from "@azure/core-lro";
5
- import { HealthBot, BotsListByResourceGroupOptionalParams, BotsListOptionalParams, BotsCreateOptionalParams, BotsCreateResponse, BotsGetOptionalParams, BotsGetResponse, HealthBotUpdateParameters, BotsUpdateOptionalParams, BotsUpdateResponse, BotsDeleteOptionalParams } from "../models";
5
+ import { HealthBot, BotsListByResourceGroupOptionalParams, BotsListOptionalParams, BotsCreateOptionalParams, BotsCreateResponse, BotsGetOptionalParams, BotsGetResponse, HealthBotUpdateParameters, BotsUpdateOptionalParams, BotsUpdateResponse, BotsDeleteOptionalParams } from "../models/index.js";
6
6
  /** Class containing Bots operations. */
7
7
  export declare class BotsImpl implements Bots {
8
8
  private readonly client;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bots.d.ts","sourceRoot":"","sources":["../../../src/operations/bots.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAgB,MAAM,oBAAoB,CAAC;AAE9E,OAAO,EAAE,IAAI,EAAE,MAAM,kCAAkC,CAAC;AAIxD,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AACxD,OAAO,EAAE,UAAU,EAAE,kBAAkB,EAAa,MAAM,iBAAiB,CAAC;AAE5E,OAAO,EACL,SAAS,EAET,qCAAqC,EAGrC,sBAAsB,EAEtB,wBAAwB,EACxB,kBAAkB,EAClB,qBAAqB,EACrB,eAAe,EACf,yBAAyB,EACzB,wBAAwB,EACxB,kBAAkB,EAClB,wBAAwB,EAGzB,MAAM,oBAAoB,CAAC;AAG5B,wCAAwC;AACxC,qBAAa,QAAS,YAAW,IAAI;IACnC,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAkB;IAEzC;;;OAGG;gBACS,MAAM,EAAE,eAAe;IAInC;;;;OAIG;IACI,mBAAmB,CACxB,iBAAiB,EAAE,MAAM,EACzB,OAAO,CAAC,EAAE,qCAAqC,GAC9C,0BAA0B,CAAC,SAAS,CAAC;YAsBzB,6BAA6B;YA2B7B,4BAA4B;IAY3C;;;OAGG;IACI,IAAI,CACT,OAAO,CAAC,EAAE,sBAAsB,GAC/B,0BAA0B,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,CAAC,SAAS;CASlB"}
@@ -5,13 +5,13 @@
5
5
  * Code generated by Microsoft (R) AutoRest Code Generator.
6
6
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
7
  */
8
- import { __asyncDelegator, __asyncGenerator, __asyncValues, __await, __awaiter } from "tslib";
9
- import { setContinuationToken } from "../pagingHelper";
8
+ import { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
9
+ import { setContinuationToken } from "../pagingHelper.js";
10
10
  import * as coreClient from "@azure/core-client";
11
- import * as Mappers from "../models/mappers";
12
- import * as Parameters from "../models/parameters";
11
+ import * as Mappers from "../models/mappers.js";
12
+ import * as Parameters from "../models/parameters.js";
13
13
  import { LroEngine } from "@azure/core-lro";
14
- import { LroImpl } from "../lroImpl";
14
+ import { LroImpl } from "../lroImpl.js";
15
15
  /// <reference lib="esnext.asynciterable" />
16
16
  /** Class containing Bots operations. */
17
17
  export class BotsImpl {
@@ -152,39 +152,37 @@ export class BotsImpl {
152
152
  * @param parameters The parameters to provide for the created Azure Health Bot.
153
153
  * @param options The options parameters.
154
154
  */
155
- beginCreate(resourceGroupName, botName, parameters, options) {
156
- return __awaiter(this, void 0, void 0, function* () {
157
- const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
158
- return this.client.sendOperationRequest(args, spec);
159
- });
160
- const sendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
161
- var _a;
162
- let currentRawResponse = undefined;
163
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
164
- const callback = (rawResponse, flatResponse) => {
165
- currentRawResponse = rawResponse;
166
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
167
- };
168
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
169
- const flatResponse = yield directSendOperation(updatedArgs, spec);
170
- return {
171
- flatResponse,
172
- rawResponse: {
173
- statusCode: currentRawResponse.status,
174
- body: currentRawResponse.parsedBody,
175
- headers: currentRawResponse.headers.toJSON()
176
- }
177
- };
178
- });
179
- const lro = new LroImpl(sendOperation, { resourceGroupName, botName, parameters, options }, createOperationSpec);
180
- const poller = new LroEngine(lro, {
181
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
182
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
183
- lroResourceLocationConfig: "azure-async-operation"
184
- });
185
- yield poller.poll();
186
- return poller;
155
+ async beginCreate(resourceGroupName, botName, parameters, options) {
156
+ const directSendOperation = async (args, spec) => {
157
+ return this.client.sendOperationRequest(args, spec);
158
+ };
159
+ const sendOperation = async (args, spec) => {
160
+ var _a;
161
+ let currentRawResponse = undefined;
162
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
163
+ const callback = (rawResponse, flatResponse) => {
164
+ currentRawResponse = rawResponse;
165
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
166
+ };
167
+ const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
168
+ const flatResponse = await directSendOperation(updatedArgs, spec);
169
+ return {
170
+ flatResponse,
171
+ rawResponse: {
172
+ statusCode: currentRawResponse.status,
173
+ body: currentRawResponse.parsedBody,
174
+ headers: currentRawResponse.headers.toJSON()
175
+ }
176
+ };
177
+ };
178
+ const lro = new LroImpl(sendOperation, { resourceGroupName, botName, parameters, options }, createOperationSpec);
179
+ const poller = new LroEngine(lro, {
180
+ resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
181
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
182
+ lroResourceLocationConfig: "azure-async-operation"
187
183
  });
184
+ await poller.poll();
185
+ return poller;
188
186
  }
189
187
  /**
190
188
  * Create a new Azure Health Bot.
@@ -193,11 +191,9 @@ export class BotsImpl {
193
191
  * @param parameters The parameters to provide for the created Azure Health Bot.
194
192
  * @param options The options parameters.
195
193
  */
196
- beginCreateAndWait(resourceGroupName, botName, parameters, options) {
197
- return __awaiter(this, void 0, void 0, function* () {
198
- const poller = yield this.beginCreate(resourceGroupName, botName, parameters, options);
199
- return poller.pollUntilDone();
200
- });
194
+ async beginCreateAndWait(resourceGroupName, botName, parameters, options) {
195
+ const poller = await this.beginCreate(resourceGroupName, botName, parameters, options);
196
+ return poller.pollUntilDone();
201
197
  }
202
198
  /**
203
199
  * Get a HealthBot.
@@ -224,38 +220,36 @@ export class BotsImpl {
224
220
  * @param botName The name of the Bot resource.
225
221
  * @param options The options parameters.
226
222
  */
227
- beginDelete(resourceGroupName, botName, options) {
228
- return __awaiter(this, void 0, void 0, function* () {
229
- const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
230
- return this.client.sendOperationRequest(args, spec);
231
- });
232
- const sendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
233
- var _a;
234
- let currentRawResponse = undefined;
235
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
236
- const callback = (rawResponse, flatResponse) => {
237
- currentRawResponse = rawResponse;
238
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
239
- };
240
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
241
- const flatResponse = yield directSendOperation(updatedArgs, spec);
242
- return {
243
- flatResponse,
244
- rawResponse: {
245
- statusCode: currentRawResponse.status,
246
- body: currentRawResponse.parsedBody,
247
- headers: currentRawResponse.headers.toJSON()
248
- }
249
- };
250
- });
251
- const lro = new LroImpl(sendOperation, { resourceGroupName, botName, options }, deleteOperationSpec);
252
- const poller = new LroEngine(lro, {
253
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
254
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
255
- });
256
- yield poller.poll();
257
- return poller;
223
+ async beginDelete(resourceGroupName, botName, options) {
224
+ const directSendOperation = async (args, spec) => {
225
+ return this.client.sendOperationRequest(args, spec);
226
+ };
227
+ const sendOperation = async (args, spec) => {
228
+ var _a;
229
+ let currentRawResponse = undefined;
230
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
231
+ const callback = (rawResponse, flatResponse) => {
232
+ currentRawResponse = rawResponse;
233
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
234
+ };
235
+ const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
236
+ const flatResponse = await directSendOperation(updatedArgs, spec);
237
+ return {
238
+ flatResponse,
239
+ rawResponse: {
240
+ statusCode: currentRawResponse.status,
241
+ body: currentRawResponse.parsedBody,
242
+ headers: currentRawResponse.headers.toJSON()
243
+ }
244
+ };
245
+ };
246
+ const lro = new LroImpl(sendOperation, { resourceGroupName, botName, options }, deleteOperationSpec);
247
+ const poller = new LroEngine(lro, {
248
+ resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
249
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
258
250
  });
251
+ await poller.poll();
252
+ return poller;
259
253
  }
260
254
  /**
261
255
  * Delete a HealthBot.
@@ -263,11 +257,9 @@ export class BotsImpl {
263
257
  * @param botName The name of the Bot resource.
264
258
  * @param options The options parameters.
265
259
  */
266
- beginDeleteAndWait(resourceGroupName, botName, options) {
267
- return __awaiter(this, void 0, void 0, function* () {
268
- const poller = yield this.beginDelete(resourceGroupName, botName, options);
269
- return poller.pollUntilDone();
270
- });
260
+ async beginDeleteAndWait(resourceGroupName, botName, options) {
261
+ const poller = await this.beginDelete(resourceGroupName, botName, options);
262
+ return poller.pollUntilDone();
271
263
  }
272
264
  /**
273
265
  * Returns all the resources of a particular type belonging to a resource group
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bots.js","sourceRoot":"","sources":["../../../src/operations/bots.ts"],"names":[],"mappings":"AAAA;;;;;;G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AC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,QAAQ;KACpB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { Bots } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { HealthbotClient } from \"../healthbotClient.js\";\nimport { PollerLike, PollOperationState, LroEngine } from \"@azure/core-lro\";\nimport { LroImpl } from \"../lroImpl.js\";\nimport {\n HealthBot,\n BotsListByResourceGroupNextOptionalParams,\n BotsListByResourceGroupOptionalParams,\n BotsListByResourceGroupResponse,\n BotsListNextOptionalParams,\n BotsListOptionalParams,\n BotsListResponse,\n BotsCreateOptionalParams,\n BotsCreateResponse,\n BotsGetOptionalParams,\n BotsGetResponse,\n HealthBotUpdateParameters,\n BotsUpdateOptionalParams,\n BotsUpdateResponse,\n BotsDeleteOptionalParams,\n BotsListByResourceGroupNextResponse,\n BotsListNextResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing Bots operations. */\nexport class BotsImpl implements Bots {\n private readonly client: HealthbotClient;\n\n /**\n * Initialize a new instance of the class Bots class.\n * @param client Reference to the service client\n */\n constructor(client: HealthbotClient) {\n this.client = client;\n }\n\n /**\n * Returns all the resources of a particular type belonging to a resource group\n * @param resourceGroupName The name of the Bot resource group in the user subscription.\n * @param options The options parameters.\n */\n public listByResourceGroup(\n resourceGroupName: string,\n options?: BotsListByResourceGroupOptionalParams\n ): PagedAsyncIterableIterator<HealthBot> {\n const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listByResourceGroupPagingPage(\n resourceGroupName,\n options,\n settings\n );\n }\n };\n }\n\n private async *listByResourceGroupPagingPage(\n resourceGroupName: string,\n options?: BotsListByResourceGroupOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<HealthBot[]> {\n let result: BotsListByResourceGroupResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listByResourceGroup(resourceGroupName, options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listByResourceGroupNext(\n resourceGroupName,\n continuationToken,\n options\n );\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listByResourceGroupPagingAll(\n resourceGroupName: string,\n options?: BotsListByResourceGroupOptionalParams\n ): AsyncIterableIterator<HealthBot> {\n for await (const page of this.listByResourceGroupPagingPage(\n resourceGroupName,\n options\n )) {\n yield* page;\n }\n }\n\n /**\n * Returns all the resources of a particular type belonging to a subscription.\n * @param options The options parameters.\n */\n public list(\n options?: BotsListOptionalParams\n ): PagedAsyncIterableIterator<HealthBot> {\n const iter = this.listPagingAll(options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listPagingPage(options, settings);\n }\n };\n }\n\n private async *listPagingPage(\n options?: BotsListOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<HealthBot[]> {\n let result: BotsListResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._list(options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listNext(continuationToken, options);\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listPagingAll(\n options?: BotsListOptionalParams\n ): AsyncIterableIterator<HealthBot> {\n for await (const page of this.listPagingPage(options)) {\n yield* page;\n }\n }\n\n /**\n * Create a new Azure Health Bot.\n * @param resourceGroupName The name of the Bot resource group in the user subscription.\n * @param botName The name of the Bot resource.\n * @param parameters The parameters to provide for the created Azure Health Bot.\n * @param options The options parameters.\n */\n async beginCreate(\n resourceGroupName: string,\n botName: string,\n parameters: HealthBot,\n options?: BotsCreateOptionalParams\n ): Promise<\n PollerLike<PollOperationState<BotsCreateResponse>, BotsCreateResponse>\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ): Promise<BotsCreateResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ) => {\n let currentRawResponse:\n | coreClient.FullOperationResponse\n | undefined = undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback\n }\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON()\n }\n };\n };\n\n const lro = new LroImpl(\n sendOperation,\n { resourceGroupName, botName, parameters, options },\n createOperationSpec\n );\n const poller = new LroEngine(lro, {\n resumeFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n lroResourceLocationConfig: \"azure-async-operation\"\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Create a new Azure Health Bot.\n * @param resourceGroupName The name of the Bot resource group in the user subscription.\n * @param botName The name of the Bot resource.\n * @param parameters The parameters to provide for the created Azure Health Bot.\n * @param options The options parameters.\n */\n async beginCreateAndWait(\n resourceGroupName: string,\n botName: string,\n parameters: HealthBot,\n options?: BotsCreateOptionalParams\n ): Promise<BotsCreateResponse> {\n const poller = await this.beginCreate(\n resourceGroupName,\n botName,\n parameters,\n options\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Get a HealthBot.\n * @param resourceGroupName The name of the Bot resource group in the user subscription.\n * @param botName The name of the Bot resource.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n botName: string,\n options?: BotsGetOptionalParams\n ): Promise<BotsGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, botName, options },\n getOperationSpec\n );\n }\n\n /**\n * Patch a HealthBot.\n * @param resourceGroupName The name of the Bot resource group in the user subscription.\n * @param botName The name of the Bot resource.\n * @param parameters The parameters to provide for the required Azure Health Bot.\n * @param options The options parameters.\n */\n update(\n resourceGroupName: string,\n botName: string,\n parameters: HealthBotUpdateParameters,\n options?: BotsUpdateOptionalParams\n ): Promise<BotsUpdateResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, botName, parameters, options },\n updateOperationSpec\n );\n }\n\n /**\n * Delete a HealthBot.\n * @param resourceGroupName The name of the Bot resource group in the user subscription.\n * @param botName The name of the Bot resource.\n * @param options The options parameters.\n */\n async beginDelete(\n resourceGroupName: string,\n botName: string,\n options?: BotsDeleteOptionalParams\n ): Promise<PollerLike<PollOperationState<void>, void>> {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ): Promise<void> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ) => {\n let currentRawResponse:\n | coreClient.FullOperationResponse\n | undefined = undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback\n }\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON()\n }\n };\n };\n\n const lro = new LroImpl(\n sendOperation,\n { resourceGroupName, botName, options },\n deleteOperationSpec\n );\n const poller = new LroEngine(lro, {\n resumeFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Delete a HealthBot.\n * @param resourceGroupName The name of the Bot resource group in the user subscription.\n * @param botName The name of the Bot resource.\n * @param options The options parameters.\n */\n async beginDeleteAndWait(\n resourceGroupName: string,\n botName: string,\n options?: BotsDeleteOptionalParams\n ): Promise<void> {\n const poller = await this.beginDelete(resourceGroupName, botName, options);\n return poller.pollUntilDone();\n }\n\n /**\n * Returns all the resources of a particular type belonging to a resource group\n * @param resourceGroupName The name of the Bot resource group in the user subscription.\n * @param options The options parameters.\n */\n private _listByResourceGroup(\n resourceGroupName: string,\n options?: BotsListByResourceGroupOptionalParams\n ): Promise<BotsListByResourceGroupResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, options },\n listByResourceGroupOperationSpec\n );\n }\n\n /**\n * Returns all the resources of a particular type belonging to a subscription.\n * @param options The options parameters.\n */\n private _list(options?: BotsListOptionalParams): Promise<BotsListResponse> {\n return this.client.sendOperationRequest({ options }, listOperationSpec);\n }\n\n /**\n * ListByResourceGroupNext\n * @param resourceGroupName The name of the Bot resource group in the user subscription.\n * @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.\n * @param options The options parameters.\n */\n private _listByResourceGroupNext(\n resourceGroupName: string,\n nextLink: string,\n options?: BotsListByResourceGroupNextOptionalParams\n ): Promise<BotsListByResourceGroupNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, nextLink, options },\n listByResourceGroupNextOperationSpec\n );\n }\n\n /**\n * ListNext\n * @param nextLink The nextLink from the previous successful call to the List method.\n * @param options The options parameters.\n */\n private _listNext(\n nextLink: string,\n options?: BotsListNextOptionalParams\n ): Promise<BotsListNextResponse> {\n return this.client.sendOperationRequest(\n { nextLink, options },\n listNextOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst createOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthBot/healthBots/{botName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.HealthBot\n },\n 201: {\n bodyMapper: Mappers.HealthBot\n },\n 202: {\n bodyMapper: Mappers.HealthBot\n },\n 204: {\n bodyMapper: Mappers.HealthBot\n },\n default: {\n bodyMapper: Mappers.ErrorModel\n }\n },\n requestBody: Parameters.parameters,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.botName\n ],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthBot/healthBots/{botName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.HealthBot\n },\n default: {\n bodyMapper: Mappers.ErrorModel\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.botName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst updateOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthBot/healthBots/{botName}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.HealthBot\n },\n 201: {\n bodyMapper: Mappers.HealthBot\n },\n default: {\n bodyMapper: Mappers.ErrorModel\n }\n },\n requestBody: Parameters.parameters1,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.botName\n ],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthBot/healthBots/{botName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n 201: {},\n 202: {},\n 204: {},\n default: {\n bodyMapper: Mappers.ErrorModel\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.botName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listByResourceGroupOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthBot/healthBots\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.BotResponseList\n },\n default: {\n bodyMapper: Mappers.ErrorModel\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/providers/Microsoft.HealthBot/healthBots\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.BotResponseList\n },\n default: {\n bodyMapper: Mappers.ErrorModel\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.subscriptionId],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listByResourceGroupNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.BotResponseList\n },\n default: {\n bodyMapper: Mappers.ErrorModel\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.nextLink\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.BotResponseList\n },\n default: {\n bodyMapper: Mappers.ErrorModel\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.nextLink\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}