@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
@@ -0,0 +1,99 @@
1
+ import { PagedAsyncIterableIterator } from "@azure/core-paging";
2
+ import { Bots } from "../operationsInterfaces/index.js";
3
+ import { HealthbotClient } from "../healthbotClient.js";
4
+ import { PollerLike, PollOperationState } from "@azure/core-lro";
5
+ import { HealthBot, BotsListByResourceGroupOptionalParams, BotsListOptionalParams, BotsCreateOptionalParams, BotsCreateResponse, BotsGetOptionalParams, BotsGetResponse, HealthBotUpdateParameters, BotsUpdateOptionalParams, BotsUpdateResponse, BotsDeleteOptionalParams } from "../models/index.js";
6
+ /** Class containing Bots operations. */
7
+ export declare class BotsImpl implements Bots {
8
+ private readonly client;
9
+ /**
10
+ * Initialize a new instance of the class Bots class.
11
+ * @param client Reference to the service client
12
+ */
13
+ constructor(client: HealthbotClient);
14
+ /**
15
+ * Returns all the resources of a particular type belonging to a resource group
16
+ * @param resourceGroupName The name of the Bot resource group in the user subscription.
17
+ * @param options The options parameters.
18
+ */
19
+ listByResourceGroup(resourceGroupName: string, options?: BotsListByResourceGroupOptionalParams): PagedAsyncIterableIterator<HealthBot>;
20
+ private listByResourceGroupPagingPage;
21
+ private listByResourceGroupPagingAll;
22
+ /**
23
+ * Returns all the resources of a particular type belonging to a subscription.
24
+ * @param options The options parameters.
25
+ */
26
+ list(options?: BotsListOptionalParams): PagedAsyncIterableIterator<HealthBot>;
27
+ private listPagingPage;
28
+ private listPagingAll;
29
+ /**
30
+ * Create a new Azure Health Bot.
31
+ * @param resourceGroupName The name of the Bot resource group in the user subscription.
32
+ * @param botName The name of the Bot resource.
33
+ * @param parameters The parameters to provide for the created Azure Health Bot.
34
+ * @param options The options parameters.
35
+ */
36
+ beginCreate(resourceGroupName: string, botName: string, parameters: HealthBot, options?: BotsCreateOptionalParams): Promise<PollerLike<PollOperationState<BotsCreateResponse>, BotsCreateResponse>>;
37
+ /**
38
+ * Create a new Azure Health Bot.
39
+ * @param resourceGroupName The name of the Bot resource group in the user subscription.
40
+ * @param botName The name of the Bot resource.
41
+ * @param parameters The parameters to provide for the created Azure Health Bot.
42
+ * @param options The options parameters.
43
+ */
44
+ beginCreateAndWait(resourceGroupName: string, botName: string, parameters: HealthBot, options?: BotsCreateOptionalParams): Promise<BotsCreateResponse>;
45
+ /**
46
+ * Get a HealthBot.
47
+ * @param resourceGroupName The name of the Bot resource group in the user subscription.
48
+ * @param botName The name of the Bot resource.
49
+ * @param options The options parameters.
50
+ */
51
+ get(resourceGroupName: string, botName: string, options?: BotsGetOptionalParams): Promise<BotsGetResponse>;
52
+ /**
53
+ * Patch a HealthBot.
54
+ * @param resourceGroupName The name of the Bot resource group in the user subscription.
55
+ * @param botName The name of the Bot resource.
56
+ * @param parameters The parameters to provide for the required Azure Health Bot.
57
+ * @param options The options parameters.
58
+ */
59
+ update(resourceGroupName: string, botName: string, parameters: HealthBotUpdateParameters, options?: BotsUpdateOptionalParams): Promise<BotsUpdateResponse>;
60
+ /**
61
+ * Delete a HealthBot.
62
+ * @param resourceGroupName The name of the Bot resource group in the user subscription.
63
+ * @param botName The name of the Bot resource.
64
+ * @param options The options parameters.
65
+ */
66
+ beginDelete(resourceGroupName: string, botName: string, options?: BotsDeleteOptionalParams): Promise<PollerLike<PollOperationState<void>, void>>;
67
+ /**
68
+ * Delete a HealthBot.
69
+ * @param resourceGroupName The name of the Bot resource group in the user subscription.
70
+ * @param botName The name of the Bot resource.
71
+ * @param options The options parameters.
72
+ */
73
+ beginDeleteAndWait(resourceGroupName: string, botName: string, options?: BotsDeleteOptionalParams): Promise<void>;
74
+ /**
75
+ * Returns all the resources of a particular type belonging to a resource group
76
+ * @param resourceGroupName The name of the Bot resource group in the user subscription.
77
+ * @param options The options parameters.
78
+ */
79
+ private _listByResourceGroup;
80
+ /**
81
+ * Returns all the resources of a particular type belonging to a subscription.
82
+ * @param options The options parameters.
83
+ */
84
+ private _list;
85
+ /**
86
+ * ListByResourceGroupNext
87
+ * @param resourceGroupName The name of the Bot resource group in the user subscription.
88
+ * @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.
89
+ * @param options The options parameters.
90
+ */
91
+ private _listByResourceGroupNext;
92
+ /**
93
+ * ListNext
94
+ * @param nextLink The nextLink from the previous successful call to the List method.
95
+ * @param options The options parameters.
96
+ */
97
+ private _listNext;
98
+ }
99
+ //# sourceMappingURL=bots.d.ts.map
@@ -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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BAAiB,EAAE,MAAM,EACzB,OAAO,EAAE,MAAM,EACf,OAAO,CAAC,EAAE,wBAAwB,GACjC,OAAO,CAAC,IAAI,CAAC;IAKhB;;;;OAIG;IACH,OAAO,CAAC,oBAAoB;IAU5B;;;OAGG;IACH,OAAO,CAAC,KAAK;IAIb;;;;;OAKG;IACH,OAAO,CAAC,wBAAwB;IAWhC;;;;OAIG;IACH,OAAO,CAAC,SAAS;CASlB"}
@@ -0,0 +1,477 @@
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 } from "tslib";
9
+ import { setContinuationToken } from "../pagingHelper.js";
10
+ import * as coreClient from "@azure/core-client";
11
+ import * as Mappers from "../models/mappers.js";
12
+ import * as Parameters from "../models/parameters.js";
13
+ import { LroEngine } from "@azure/core-lro";
14
+ import { LroImpl } from "../lroImpl.js";
15
+ /// <reference lib="esnext.asynciterable" />
16
+ /** Class containing Bots operations. */
17
+ export class BotsImpl {
18
+ /**
19
+ * Initialize a new instance of the class Bots class.
20
+ * @param client Reference to the service client
21
+ */
22
+ constructor(client) {
23
+ this.client = client;
24
+ }
25
+ /**
26
+ * Returns all the resources of a particular type belonging to a resource group
27
+ * @param resourceGroupName The name of the Bot resource group in the user subscription.
28
+ * @param options The options parameters.
29
+ */
30
+ listByResourceGroup(resourceGroupName, options) {
31
+ const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);
32
+ return {
33
+ next() {
34
+ return iter.next();
35
+ },
36
+ [Symbol.asyncIterator]() {
37
+ return this;
38
+ },
39
+ byPage: (settings) => {
40
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
41
+ throw new Error("maxPageSize is not supported by this operation.");
42
+ }
43
+ return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
44
+ }
45
+ };
46
+ }
47
+ listByResourceGroupPagingPage(resourceGroupName, options, settings) {
48
+ return __asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
49
+ let result;
50
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
51
+ if (!continuationToken) {
52
+ result = yield __await(this._listByResourceGroup(resourceGroupName, options));
53
+ let page = result.value || [];
54
+ continuationToken = result.nextLink;
55
+ setContinuationToken(page, continuationToken);
56
+ yield yield __await(page);
57
+ }
58
+ while (continuationToken) {
59
+ result = yield __await(this._listByResourceGroupNext(resourceGroupName, continuationToken, options));
60
+ continuationToken = result.nextLink;
61
+ let page = result.value || [];
62
+ setContinuationToken(page, continuationToken);
63
+ yield yield __await(page);
64
+ }
65
+ });
66
+ }
67
+ listByResourceGroupPagingAll(resourceGroupName, options) {
68
+ return __asyncGenerator(this, arguments, function* listByResourceGroupPagingAll_1() {
69
+ var _a, e_1, _b, _c;
70
+ try {
71
+ for (var _d = true, _e = __asyncValues(this.listByResourceGroupPagingPage(resourceGroupName, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
72
+ _c = _f.value;
73
+ _d = false;
74
+ const page = _c;
75
+ yield __await(yield* __asyncDelegator(__asyncValues(page)));
76
+ }
77
+ }
78
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
79
+ finally {
80
+ try {
81
+ if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
82
+ }
83
+ finally { if (e_1) throw e_1.error; }
84
+ }
85
+ });
86
+ }
87
+ /**
88
+ * Returns all the resources of a particular type belonging to a subscription.
89
+ * @param options The options parameters.
90
+ */
91
+ list(options) {
92
+ const iter = this.listPagingAll(options);
93
+ return {
94
+ next() {
95
+ return iter.next();
96
+ },
97
+ [Symbol.asyncIterator]() {
98
+ return this;
99
+ },
100
+ byPage: (settings) => {
101
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
102
+ throw new Error("maxPageSize is not supported by this operation.");
103
+ }
104
+ return this.listPagingPage(options, settings);
105
+ }
106
+ };
107
+ }
108
+ listPagingPage(options, settings) {
109
+ return __asyncGenerator(this, arguments, function* listPagingPage_1() {
110
+ let result;
111
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
112
+ if (!continuationToken) {
113
+ result = yield __await(this._list(options));
114
+ let page = result.value || [];
115
+ continuationToken = result.nextLink;
116
+ setContinuationToken(page, continuationToken);
117
+ yield yield __await(page);
118
+ }
119
+ while (continuationToken) {
120
+ result = yield __await(this._listNext(continuationToken, options));
121
+ continuationToken = result.nextLink;
122
+ let page = result.value || [];
123
+ setContinuationToken(page, continuationToken);
124
+ yield yield __await(page);
125
+ }
126
+ });
127
+ }
128
+ listPagingAll(options) {
129
+ return __asyncGenerator(this, arguments, function* listPagingAll_1() {
130
+ var _a, e_2, _b, _c;
131
+ try {
132
+ for (var _d = true, _e = __asyncValues(this.listPagingPage(options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
133
+ _c = _f.value;
134
+ _d = false;
135
+ const page = _c;
136
+ yield __await(yield* __asyncDelegator(__asyncValues(page)));
137
+ }
138
+ }
139
+ catch (e_2_1) { e_2 = { error: e_2_1 }; }
140
+ finally {
141
+ try {
142
+ if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
143
+ }
144
+ finally { if (e_2) throw e_2.error; }
145
+ }
146
+ });
147
+ }
148
+ /**
149
+ * Create a new Azure Health Bot.
150
+ * @param resourceGroupName The name of the Bot resource group in the user subscription.
151
+ * @param botName The name of the Bot resource.
152
+ * @param parameters The parameters to provide for the created Azure Health Bot.
153
+ * @param options The options parameters.
154
+ */
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"
183
+ });
184
+ await poller.poll();
185
+ return poller;
186
+ }
187
+ /**
188
+ * Create a new Azure Health Bot.
189
+ * @param resourceGroupName The name of the Bot resource group in the user subscription.
190
+ * @param botName The name of the Bot resource.
191
+ * @param parameters The parameters to provide for the created Azure Health Bot.
192
+ * @param options The options parameters.
193
+ */
194
+ async beginCreateAndWait(resourceGroupName, botName, parameters, options) {
195
+ const poller = await this.beginCreate(resourceGroupName, botName, parameters, options);
196
+ return poller.pollUntilDone();
197
+ }
198
+ /**
199
+ * Get a HealthBot.
200
+ * @param resourceGroupName The name of the Bot resource group in the user subscription.
201
+ * @param botName The name of the Bot resource.
202
+ * @param options The options parameters.
203
+ */
204
+ get(resourceGroupName, botName, options) {
205
+ return this.client.sendOperationRequest({ resourceGroupName, botName, options }, getOperationSpec);
206
+ }
207
+ /**
208
+ * Patch a HealthBot.
209
+ * @param resourceGroupName The name of the Bot resource group in the user subscription.
210
+ * @param botName The name of the Bot resource.
211
+ * @param parameters The parameters to provide for the required Azure Health Bot.
212
+ * @param options The options parameters.
213
+ */
214
+ update(resourceGroupName, botName, parameters, options) {
215
+ return this.client.sendOperationRequest({ resourceGroupName, botName, parameters, options }, updateOperationSpec);
216
+ }
217
+ /**
218
+ * Delete a HealthBot.
219
+ * @param resourceGroupName The name of the Bot resource group in the user subscription.
220
+ * @param botName The name of the Bot resource.
221
+ * @param options The options parameters.
222
+ */
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
250
+ });
251
+ await poller.poll();
252
+ return poller;
253
+ }
254
+ /**
255
+ * Delete a HealthBot.
256
+ * @param resourceGroupName The name of the Bot resource group in the user subscription.
257
+ * @param botName The name of the Bot resource.
258
+ * @param options The options parameters.
259
+ */
260
+ async beginDeleteAndWait(resourceGroupName, botName, options) {
261
+ const poller = await this.beginDelete(resourceGroupName, botName, options);
262
+ return poller.pollUntilDone();
263
+ }
264
+ /**
265
+ * Returns all the resources of a particular type belonging to a resource group
266
+ * @param resourceGroupName The name of the Bot resource group in the user subscription.
267
+ * @param options The options parameters.
268
+ */
269
+ _listByResourceGroup(resourceGroupName, options) {
270
+ return this.client.sendOperationRequest({ resourceGroupName, options }, listByResourceGroupOperationSpec);
271
+ }
272
+ /**
273
+ * Returns all the resources of a particular type belonging to a subscription.
274
+ * @param options The options parameters.
275
+ */
276
+ _list(options) {
277
+ return this.client.sendOperationRequest({ options }, listOperationSpec);
278
+ }
279
+ /**
280
+ * ListByResourceGroupNext
281
+ * @param resourceGroupName The name of the Bot resource group in the user subscription.
282
+ * @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.
283
+ * @param options The options parameters.
284
+ */
285
+ _listByResourceGroupNext(resourceGroupName, nextLink, options) {
286
+ return this.client.sendOperationRequest({ resourceGroupName, nextLink, options }, listByResourceGroupNextOperationSpec);
287
+ }
288
+ /**
289
+ * ListNext
290
+ * @param nextLink The nextLink from the previous successful call to the List method.
291
+ * @param options The options parameters.
292
+ */
293
+ _listNext(nextLink, options) {
294
+ return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec);
295
+ }
296
+ }
297
+ // Operation Specifications
298
+ const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
299
+ const createOperationSpec = {
300
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthBot/healthBots/{botName}",
301
+ httpMethod: "PUT",
302
+ responses: {
303
+ 200: {
304
+ bodyMapper: Mappers.HealthBot
305
+ },
306
+ 201: {
307
+ bodyMapper: Mappers.HealthBot
308
+ },
309
+ 202: {
310
+ bodyMapper: Mappers.HealthBot
311
+ },
312
+ 204: {
313
+ bodyMapper: Mappers.HealthBot
314
+ },
315
+ default: {
316
+ bodyMapper: Mappers.ErrorModel
317
+ }
318
+ },
319
+ requestBody: Parameters.parameters,
320
+ queryParameters: [Parameters.apiVersion],
321
+ urlParameters: [
322
+ Parameters.$host,
323
+ Parameters.subscriptionId,
324
+ Parameters.resourceGroupName,
325
+ Parameters.botName
326
+ ],
327
+ headerParameters: [Parameters.contentType, Parameters.accept],
328
+ mediaType: "json",
329
+ serializer
330
+ };
331
+ const getOperationSpec = {
332
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthBot/healthBots/{botName}",
333
+ httpMethod: "GET",
334
+ responses: {
335
+ 200: {
336
+ bodyMapper: Mappers.HealthBot
337
+ },
338
+ default: {
339
+ bodyMapper: Mappers.ErrorModel
340
+ }
341
+ },
342
+ queryParameters: [Parameters.apiVersion],
343
+ urlParameters: [
344
+ Parameters.$host,
345
+ Parameters.subscriptionId,
346
+ Parameters.resourceGroupName,
347
+ Parameters.botName
348
+ ],
349
+ headerParameters: [Parameters.accept],
350
+ serializer
351
+ };
352
+ const updateOperationSpec = {
353
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthBot/healthBots/{botName}",
354
+ httpMethod: "PATCH",
355
+ responses: {
356
+ 200: {
357
+ bodyMapper: Mappers.HealthBot
358
+ },
359
+ 201: {
360
+ bodyMapper: Mappers.HealthBot
361
+ },
362
+ default: {
363
+ bodyMapper: Mappers.ErrorModel
364
+ }
365
+ },
366
+ requestBody: Parameters.parameters1,
367
+ queryParameters: [Parameters.apiVersion],
368
+ urlParameters: [
369
+ Parameters.$host,
370
+ Parameters.subscriptionId,
371
+ Parameters.resourceGroupName,
372
+ Parameters.botName
373
+ ],
374
+ headerParameters: [Parameters.contentType, Parameters.accept],
375
+ mediaType: "json",
376
+ serializer
377
+ };
378
+ const deleteOperationSpec = {
379
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthBot/healthBots/{botName}",
380
+ httpMethod: "DELETE",
381
+ responses: {
382
+ 200: {},
383
+ 201: {},
384
+ 202: {},
385
+ 204: {},
386
+ default: {
387
+ bodyMapper: Mappers.ErrorModel
388
+ }
389
+ },
390
+ queryParameters: [Parameters.apiVersion],
391
+ urlParameters: [
392
+ Parameters.$host,
393
+ Parameters.subscriptionId,
394
+ Parameters.resourceGroupName,
395
+ Parameters.botName
396
+ ],
397
+ headerParameters: [Parameters.accept],
398
+ serializer
399
+ };
400
+ const listByResourceGroupOperationSpec = {
401
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthBot/healthBots",
402
+ httpMethod: "GET",
403
+ responses: {
404
+ 200: {
405
+ bodyMapper: Mappers.BotResponseList
406
+ },
407
+ default: {
408
+ bodyMapper: Mappers.ErrorModel
409
+ }
410
+ },
411
+ queryParameters: [Parameters.apiVersion],
412
+ urlParameters: [
413
+ Parameters.$host,
414
+ Parameters.subscriptionId,
415
+ Parameters.resourceGroupName
416
+ ],
417
+ headerParameters: [Parameters.accept],
418
+ serializer
419
+ };
420
+ const listOperationSpec = {
421
+ path: "/subscriptions/{subscriptionId}/providers/Microsoft.HealthBot/healthBots",
422
+ httpMethod: "GET",
423
+ responses: {
424
+ 200: {
425
+ bodyMapper: Mappers.BotResponseList
426
+ },
427
+ default: {
428
+ bodyMapper: Mappers.ErrorModel
429
+ }
430
+ },
431
+ queryParameters: [Parameters.apiVersion],
432
+ urlParameters: [Parameters.$host, Parameters.subscriptionId],
433
+ headerParameters: [Parameters.accept],
434
+ serializer
435
+ };
436
+ const listByResourceGroupNextOperationSpec = {
437
+ path: "{nextLink}",
438
+ httpMethod: "GET",
439
+ responses: {
440
+ 200: {
441
+ bodyMapper: Mappers.BotResponseList
442
+ },
443
+ default: {
444
+ bodyMapper: Mappers.ErrorModel
445
+ }
446
+ },
447
+ queryParameters: [Parameters.apiVersion],
448
+ urlParameters: [
449
+ Parameters.$host,
450
+ Parameters.subscriptionId,
451
+ Parameters.resourceGroupName,
452
+ Parameters.nextLink
453
+ ],
454
+ headerParameters: [Parameters.accept],
455
+ serializer
456
+ };
457
+ const listNextOperationSpec = {
458
+ path: "{nextLink}",
459
+ httpMethod: "GET",
460
+ responses: {
461
+ 200: {
462
+ bodyMapper: Mappers.BotResponseList
463
+ },
464
+ default: {
465
+ bodyMapper: Mappers.ErrorModel
466
+ }
467
+ },
468
+ queryParameters: [Parameters.apiVersion],
469
+ urlParameters: [
470
+ Parameters.$host,
471
+ Parameters.subscriptionId,
472
+ Parameters.nextLink
473
+ ],
474
+ headerParameters: [Parameters.accept],
475
+ serializer
476
+ };
477
+ //# sourceMappingURL=bots.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bots.js","sourceRoot":"","sources":["../../../src/operations/bots.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAGH,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAE1D,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAEtD,OAAO,EAAkC,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5E,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAqBxC,4CAA4C;AAC5C,wCAAwC;AACxC,MAAM,OAAO,QAAQ;IAGnB;;;OAGG;IACH,YAAY,MAAuB;QACjC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;OAIG;IACI,mBAAmB,CACxB,iBAAyB,EACzB,OAA+C;QAE/C,MAAM,IAAI,GAAG,IAAI,CAAC,4BAA4B,CAAC,iBAAiB,EAAE,OAAO,CAAC,CAAC;QAC3E,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAAC,MAAM,CAAC,aAAa,CAAC;gBACpB,OAAO,IAAI,CAAC;YACd,CAAC;YACD,MAAM,EAAE,CAAC,QAAuB,EAAE,EAAE;gBAClC,IAAI,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,WAAW,EAAE,CAAC;oBAC1B,MAAM,IAAI,KAAK,CAAC,i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iB;QAC5B,UAAU,CAAC,QAAQ;KACpB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,qBAAqB,GAA6B;IACtD,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,eAAe;SACpC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,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"]}
@@ -0,0 +1,3 @@
1
+ export * from "./bots.js";
2
+ export * from "./operations.js";
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/operations/index.ts"],"names":[],"mappings":"AAQA,cAAc,WAAW,CAAC;AAC1B,cAAc,iBAAiB,CAAC"}
@@ -0,0 +1,10 @@
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
+ export * from "./bots.js";
9
+ export * from "./operations.js";
10
+ //# sourceMappingURL=index.js.map