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

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,481 @@
1
+ "use strict";
2
+ /*
3
+ * Copyright (c) Microsoft Corporation.
4
+ * Licensed under the MIT License.
5
+ *
6
+ * Code generated by Microsoft (R) AutoRest Code Generator.
7
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
8
+ */
9
+ Object.defineProperty(exports, "__esModule", { value: true });
10
+ exports.BotsImpl = void 0;
11
+ const tslib_1 = require("tslib");
12
+ const pagingHelper_js_1 = require("../pagingHelper.js");
13
+ const coreClient = tslib_1.__importStar(require("@azure/core-client"));
14
+ const Mappers = tslib_1.__importStar(require("../models/mappers.js"));
15
+ const Parameters = tslib_1.__importStar(require("../models/parameters.js"));
16
+ const core_lro_1 = require("@azure/core-lro");
17
+ const lroImpl_js_1 = require("../lroImpl.js");
18
+ /// <reference lib="esnext.asynciterable" />
19
+ /** Class containing Bots operations. */
20
+ class BotsImpl {
21
+ /**
22
+ * Initialize a new instance of the class Bots class.
23
+ * @param client Reference to the service client
24
+ */
25
+ constructor(client) {
26
+ this.client = client;
27
+ }
28
+ /**
29
+ * Returns all the resources of a particular type belonging to a resource group
30
+ * @param resourceGroupName The name of the Bot resource group in the user subscription.
31
+ * @param options The options parameters.
32
+ */
33
+ listByResourceGroup(resourceGroupName, options) {
34
+ const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);
35
+ return {
36
+ next() {
37
+ return iter.next();
38
+ },
39
+ [Symbol.asyncIterator]() {
40
+ return this;
41
+ },
42
+ byPage: (settings) => {
43
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
44
+ throw new Error("maxPageSize is not supported by this operation.");
45
+ }
46
+ return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
47
+ }
48
+ };
49
+ }
50
+ listByResourceGroupPagingPage(resourceGroupName, options, settings) {
51
+ return tslib_1.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
52
+ let result;
53
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
54
+ if (!continuationToken) {
55
+ result = yield tslib_1.__await(this._listByResourceGroup(resourceGroupName, options));
56
+ let page = result.value || [];
57
+ continuationToken = result.nextLink;
58
+ (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
59
+ yield yield tslib_1.__await(page);
60
+ }
61
+ while (continuationToken) {
62
+ result = yield tslib_1.__await(this._listByResourceGroupNext(resourceGroupName, continuationToken, options));
63
+ continuationToken = result.nextLink;
64
+ let page = result.value || [];
65
+ (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
66
+ yield yield tslib_1.__await(page);
67
+ }
68
+ });
69
+ }
70
+ listByResourceGroupPagingAll(resourceGroupName, options) {
71
+ return tslib_1.__asyncGenerator(this, arguments, function* listByResourceGroupPagingAll_1() {
72
+ var _a, e_1, _b, _c;
73
+ try {
74
+ for (var _d = true, _e = tslib_1.__asyncValues(this.listByResourceGroupPagingPage(resourceGroupName, options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
75
+ _c = _f.value;
76
+ _d = false;
77
+ const page = _c;
78
+ yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
79
+ }
80
+ }
81
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
82
+ finally {
83
+ try {
84
+ if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
85
+ }
86
+ finally { if (e_1) throw e_1.error; }
87
+ }
88
+ });
89
+ }
90
+ /**
91
+ * Returns all the resources of a particular type belonging to a subscription.
92
+ * @param options The options parameters.
93
+ */
94
+ list(options) {
95
+ const iter = this.listPagingAll(options);
96
+ return {
97
+ next() {
98
+ return iter.next();
99
+ },
100
+ [Symbol.asyncIterator]() {
101
+ return this;
102
+ },
103
+ byPage: (settings) => {
104
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
105
+ throw new Error("maxPageSize is not supported by this operation.");
106
+ }
107
+ return this.listPagingPage(options, settings);
108
+ }
109
+ };
110
+ }
111
+ listPagingPage(options, settings) {
112
+ return tslib_1.__asyncGenerator(this, arguments, function* listPagingPage_1() {
113
+ let result;
114
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
115
+ if (!continuationToken) {
116
+ result = yield tslib_1.__await(this._list(options));
117
+ let page = result.value || [];
118
+ continuationToken = result.nextLink;
119
+ (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
120
+ yield yield tslib_1.__await(page);
121
+ }
122
+ while (continuationToken) {
123
+ result = yield tslib_1.__await(this._listNext(continuationToken, options));
124
+ continuationToken = result.nextLink;
125
+ let page = result.value || [];
126
+ (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
127
+ yield yield tslib_1.__await(page);
128
+ }
129
+ });
130
+ }
131
+ listPagingAll(options) {
132
+ return tslib_1.__asyncGenerator(this, arguments, function* listPagingAll_1() {
133
+ var _a, e_2, _b, _c;
134
+ try {
135
+ for (var _d = true, _e = tslib_1.__asyncValues(this.listPagingPage(options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
136
+ _c = _f.value;
137
+ _d = false;
138
+ const page = _c;
139
+ yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
140
+ }
141
+ }
142
+ catch (e_2_1) { e_2 = { error: e_2_1 }; }
143
+ finally {
144
+ try {
145
+ if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
146
+ }
147
+ finally { if (e_2) throw e_2.error; }
148
+ }
149
+ });
150
+ }
151
+ /**
152
+ * Create a new Azure Health Bot.
153
+ * @param resourceGroupName The name of the Bot resource group in the user subscription.
154
+ * @param botName The name of the Bot resource.
155
+ * @param parameters The parameters to provide for the created Azure Health Bot.
156
+ * @param options The options parameters.
157
+ */
158
+ async beginCreate(resourceGroupName, botName, parameters, options) {
159
+ const directSendOperation = async (args, spec) => {
160
+ return this.client.sendOperationRequest(args, spec);
161
+ };
162
+ const sendOperation = async (args, spec) => {
163
+ var _a;
164
+ let currentRawResponse = undefined;
165
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
166
+ const callback = (rawResponse, flatResponse) => {
167
+ currentRawResponse = rawResponse;
168
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
169
+ };
170
+ const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
171
+ const flatResponse = await directSendOperation(updatedArgs, spec);
172
+ return {
173
+ flatResponse,
174
+ rawResponse: {
175
+ statusCode: currentRawResponse.status,
176
+ body: currentRawResponse.parsedBody,
177
+ headers: currentRawResponse.headers.toJSON()
178
+ }
179
+ };
180
+ };
181
+ const lro = new lroImpl_js_1.LroImpl(sendOperation, { resourceGroupName, botName, parameters, options }, createOperationSpec);
182
+ const poller = new core_lro_1.LroEngine(lro, {
183
+ resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
184
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
185
+ lroResourceLocationConfig: "azure-async-operation"
186
+ });
187
+ await poller.poll();
188
+ return poller;
189
+ }
190
+ /**
191
+ * Create a new Azure Health Bot.
192
+ * @param resourceGroupName The name of the Bot resource group in the user subscription.
193
+ * @param botName The name of the Bot resource.
194
+ * @param parameters The parameters to provide for the created Azure Health Bot.
195
+ * @param options The options parameters.
196
+ */
197
+ async beginCreateAndWait(resourceGroupName, botName, parameters, options) {
198
+ const poller = await this.beginCreate(resourceGroupName, botName, parameters, options);
199
+ return poller.pollUntilDone();
200
+ }
201
+ /**
202
+ * Get a HealthBot.
203
+ * @param resourceGroupName The name of the Bot resource group in the user subscription.
204
+ * @param botName The name of the Bot resource.
205
+ * @param options The options parameters.
206
+ */
207
+ get(resourceGroupName, botName, options) {
208
+ return this.client.sendOperationRequest({ resourceGroupName, botName, options }, getOperationSpec);
209
+ }
210
+ /**
211
+ * Patch a HealthBot.
212
+ * @param resourceGroupName The name of the Bot resource group in the user subscription.
213
+ * @param botName The name of the Bot resource.
214
+ * @param parameters The parameters to provide for the required Azure Health Bot.
215
+ * @param options The options parameters.
216
+ */
217
+ update(resourceGroupName, botName, parameters, options) {
218
+ return this.client.sendOperationRequest({ resourceGroupName, botName, parameters, options }, updateOperationSpec);
219
+ }
220
+ /**
221
+ * Delete a HealthBot.
222
+ * @param resourceGroupName The name of the Bot resource group in the user subscription.
223
+ * @param botName The name of the Bot resource.
224
+ * @param options The options parameters.
225
+ */
226
+ async beginDelete(resourceGroupName, botName, options) {
227
+ const directSendOperation = async (args, spec) => {
228
+ return this.client.sendOperationRequest(args, spec);
229
+ };
230
+ const sendOperation = async (args, spec) => {
231
+ var _a;
232
+ let currentRawResponse = undefined;
233
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
234
+ const callback = (rawResponse, flatResponse) => {
235
+ currentRawResponse = rawResponse;
236
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
237
+ };
238
+ const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
239
+ const flatResponse = await directSendOperation(updatedArgs, spec);
240
+ return {
241
+ flatResponse,
242
+ rawResponse: {
243
+ statusCode: currentRawResponse.status,
244
+ body: currentRawResponse.parsedBody,
245
+ headers: currentRawResponse.headers.toJSON()
246
+ }
247
+ };
248
+ };
249
+ const lro = new lroImpl_js_1.LroImpl(sendOperation, { resourceGroupName, botName, options }, deleteOperationSpec);
250
+ const poller = new core_lro_1.LroEngine(lro, {
251
+ resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
252
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
253
+ });
254
+ await poller.poll();
255
+ return poller;
256
+ }
257
+ /**
258
+ * Delete a HealthBot.
259
+ * @param resourceGroupName The name of the Bot resource group in the user subscription.
260
+ * @param botName The name of the Bot resource.
261
+ * @param options The options parameters.
262
+ */
263
+ async beginDeleteAndWait(resourceGroupName, botName, options) {
264
+ const poller = await this.beginDelete(resourceGroupName, botName, options);
265
+ return poller.pollUntilDone();
266
+ }
267
+ /**
268
+ * Returns all the resources of a particular type belonging to a resource group
269
+ * @param resourceGroupName The name of the Bot resource group in the user subscription.
270
+ * @param options The options parameters.
271
+ */
272
+ _listByResourceGroup(resourceGroupName, options) {
273
+ return this.client.sendOperationRequest({ resourceGroupName, options }, listByResourceGroupOperationSpec);
274
+ }
275
+ /**
276
+ * Returns all the resources of a particular type belonging to a subscription.
277
+ * @param options The options parameters.
278
+ */
279
+ _list(options) {
280
+ return this.client.sendOperationRequest({ options }, listOperationSpec);
281
+ }
282
+ /**
283
+ * ListByResourceGroupNext
284
+ * @param resourceGroupName The name of the Bot resource group in the user subscription.
285
+ * @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.
286
+ * @param options The options parameters.
287
+ */
288
+ _listByResourceGroupNext(resourceGroupName, nextLink, options) {
289
+ return this.client.sendOperationRequest({ resourceGroupName, nextLink, options }, listByResourceGroupNextOperationSpec);
290
+ }
291
+ /**
292
+ * ListNext
293
+ * @param nextLink The nextLink from the previous successful call to the List method.
294
+ * @param options The options parameters.
295
+ */
296
+ _listNext(nextLink, options) {
297
+ return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec);
298
+ }
299
+ }
300
+ exports.BotsImpl = BotsImpl;
301
+ // Operation Specifications
302
+ const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
303
+ const createOperationSpec = {
304
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthBot/healthBots/{botName}",
305
+ httpMethod: "PUT",
306
+ responses: {
307
+ 200: {
308
+ bodyMapper: Mappers.HealthBot
309
+ },
310
+ 201: {
311
+ bodyMapper: Mappers.HealthBot
312
+ },
313
+ 202: {
314
+ bodyMapper: Mappers.HealthBot
315
+ },
316
+ 204: {
317
+ bodyMapper: Mappers.HealthBot
318
+ },
319
+ default: {
320
+ bodyMapper: Mappers.ErrorModel
321
+ }
322
+ },
323
+ requestBody: Parameters.parameters,
324
+ queryParameters: [Parameters.apiVersion],
325
+ urlParameters: [
326
+ Parameters.$host,
327
+ Parameters.subscriptionId,
328
+ Parameters.resourceGroupName,
329
+ Parameters.botName
330
+ ],
331
+ headerParameters: [Parameters.contentType, Parameters.accept],
332
+ mediaType: "json",
333
+ serializer
334
+ };
335
+ const getOperationSpec = {
336
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthBot/healthBots/{botName}",
337
+ httpMethod: "GET",
338
+ responses: {
339
+ 200: {
340
+ bodyMapper: Mappers.HealthBot
341
+ },
342
+ default: {
343
+ bodyMapper: Mappers.ErrorModel
344
+ }
345
+ },
346
+ queryParameters: [Parameters.apiVersion],
347
+ urlParameters: [
348
+ Parameters.$host,
349
+ Parameters.subscriptionId,
350
+ Parameters.resourceGroupName,
351
+ Parameters.botName
352
+ ],
353
+ headerParameters: [Parameters.accept],
354
+ serializer
355
+ };
356
+ const updateOperationSpec = {
357
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthBot/healthBots/{botName}",
358
+ httpMethod: "PATCH",
359
+ responses: {
360
+ 200: {
361
+ bodyMapper: Mappers.HealthBot
362
+ },
363
+ 201: {
364
+ bodyMapper: Mappers.HealthBot
365
+ },
366
+ default: {
367
+ bodyMapper: Mappers.ErrorModel
368
+ }
369
+ },
370
+ requestBody: Parameters.parameters1,
371
+ queryParameters: [Parameters.apiVersion],
372
+ urlParameters: [
373
+ Parameters.$host,
374
+ Parameters.subscriptionId,
375
+ Parameters.resourceGroupName,
376
+ Parameters.botName
377
+ ],
378
+ headerParameters: [Parameters.contentType, Parameters.accept],
379
+ mediaType: "json",
380
+ serializer
381
+ };
382
+ const deleteOperationSpec = {
383
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthBot/healthBots/{botName}",
384
+ httpMethod: "DELETE",
385
+ responses: {
386
+ 200: {},
387
+ 201: {},
388
+ 202: {},
389
+ 204: {},
390
+ default: {
391
+ bodyMapper: Mappers.ErrorModel
392
+ }
393
+ },
394
+ queryParameters: [Parameters.apiVersion],
395
+ urlParameters: [
396
+ Parameters.$host,
397
+ Parameters.subscriptionId,
398
+ Parameters.resourceGroupName,
399
+ Parameters.botName
400
+ ],
401
+ headerParameters: [Parameters.accept],
402
+ serializer
403
+ };
404
+ const listByResourceGroupOperationSpec = {
405
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthBot/healthBots",
406
+ httpMethod: "GET",
407
+ responses: {
408
+ 200: {
409
+ bodyMapper: Mappers.BotResponseList
410
+ },
411
+ default: {
412
+ bodyMapper: Mappers.ErrorModel
413
+ }
414
+ },
415
+ queryParameters: [Parameters.apiVersion],
416
+ urlParameters: [
417
+ Parameters.$host,
418
+ Parameters.subscriptionId,
419
+ Parameters.resourceGroupName
420
+ ],
421
+ headerParameters: [Parameters.accept],
422
+ serializer
423
+ };
424
+ const listOperationSpec = {
425
+ path: "/subscriptions/{subscriptionId}/providers/Microsoft.HealthBot/healthBots",
426
+ httpMethod: "GET",
427
+ responses: {
428
+ 200: {
429
+ bodyMapper: Mappers.BotResponseList
430
+ },
431
+ default: {
432
+ bodyMapper: Mappers.ErrorModel
433
+ }
434
+ },
435
+ queryParameters: [Parameters.apiVersion],
436
+ urlParameters: [Parameters.$host, Parameters.subscriptionId],
437
+ headerParameters: [Parameters.accept],
438
+ serializer
439
+ };
440
+ const listByResourceGroupNextOperationSpec = {
441
+ path: "{nextLink}",
442
+ httpMethod: "GET",
443
+ responses: {
444
+ 200: {
445
+ bodyMapper: Mappers.BotResponseList
446
+ },
447
+ default: {
448
+ bodyMapper: Mappers.ErrorModel
449
+ }
450
+ },
451
+ queryParameters: [Parameters.apiVersion],
452
+ urlParameters: [
453
+ Parameters.$host,
454
+ Parameters.subscriptionId,
455
+ Parameters.resourceGroupName,
456
+ Parameters.nextLink
457
+ ],
458
+ headerParameters: [Parameters.accept],
459
+ serializer
460
+ };
461
+ const listNextOperationSpec = {
462
+ path: "{nextLink}",
463
+ httpMethod: "GET",
464
+ responses: {
465
+ 200: {
466
+ bodyMapper: Mappers.BotResponseList
467
+ },
468
+ default: {
469
+ bodyMapper: Mappers.ErrorModel
470
+ }
471
+ },
472
+ queryParameters: [Parameters.apiVersion],
473
+ urlParameters: [
474
+ Parameters.$host,
475
+ Parameters.subscriptionId,
476
+ Parameters.nextLink
477
+ ],
478
+ headerParameters: [Parameters.accept],
479
+ serializer
480
+ };
481
+ //# sourceMappingURL=bots.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bots.js","sourceRoot":"","sources":["../../../src/operations/bots.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,wDAA0D;AAE1D,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAEtD,8CAA4E;AAC5E,8CAAwC;AAqBxC,4CAA4C;AAC5C,wCAAwC;AACxC,MAAa,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,GA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gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,oCAAoC,GAA6B;IACrE,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,iBAAiB;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,13 @@
1
+ "use strict";
2
+ /*
3
+ * Copyright (c) Microsoft Corporation.
4
+ * Licensed under the MIT License.
5
+ *
6
+ * Code generated by Microsoft (R) AutoRest Code Generator.
7
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
8
+ */
9
+ Object.defineProperty(exports, "__esModule", { value: true });
10
+ const tslib_1 = require("tslib");
11
+ tslib_1.__exportStar(require("./bots.js"), exports);
12
+ tslib_1.__exportStar(require("./operations.js"), exports);
13
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/operations/index.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;AAEH,oDAA0B;AAC1B,0DAAgC","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\nexport * from \"./bots.js\";\nexport * from \"./operations.js\";\n"]}
@@ -0,0 +1,32 @@
1
+ import { PagedAsyncIterableIterator } from "@azure/core-paging";
2
+ import { Operations } from "../operationsInterfaces/index.js";
3
+ import { HealthbotClient } from "../healthbotClient.js";
4
+ import { OperationDetail, OperationsListOptionalParams } from "../models/index.js";
5
+ /** Class containing Operations operations. */
6
+ export declare class OperationsImpl implements Operations {
7
+ private readonly client;
8
+ /**
9
+ * Initialize a new instance of the class Operations class.
10
+ * @param client Reference to the service client
11
+ */
12
+ constructor(client: HealthbotClient);
13
+ /**
14
+ * Lists all the available Azure Health Bot operations.
15
+ * @param options The options parameters.
16
+ */
17
+ list(options?: OperationsListOptionalParams): PagedAsyncIterableIterator<OperationDetail>;
18
+ private listPagingPage;
19
+ private listPagingAll;
20
+ /**
21
+ * Lists all the available Azure Health Bot operations.
22
+ * @param options The options parameters.
23
+ */
24
+ private _list;
25
+ /**
26
+ * ListNext
27
+ * @param nextLink The nextLink from the previous successful call to the List method.
28
+ * @param options The options parameters.
29
+ */
30
+ private _listNext;
31
+ }
32
+ //# sourceMappingURL=operations.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"operations.d.ts","sourceRoot":"","sources":["../../../src/operations/operations.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAgB,MAAM,oBAAoB,CAAC;AAE9E,OAAO,EAAE,UAAU,EAAE,MAAM,kCAAkC,CAAC;AAI9D,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AACxD,OAAO,EACL,eAAe,EAEf,4BAA4B,EAG7B,MAAM,oBAAoB,CAAC;AAG5B,8CAA8C;AAC9C,qBAAa,cAAe,YAAW,UAAU;IAC/C,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAkB;IAEzC;;;OAGG;gBACS,MAAM,EAAE,eAAe;IAInC;;;OAGG;IACI,IAAI,CACT,OAAO,CAAC,EAAE,4BAA4B,GACrC,0BAA0B,CAAC,eAAe,CAAC;YAkB/B,cAAc;YAsBd,aAAa;IAQ5B;;;OAGG;IACH,OAAO,CAAC,KAAK;IAMb;;;;OAIG;IACH,OAAO,CAAC,SAAS;CASlB"}