@azure/arm-databasewatcher 1.0.0-beta.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 (395) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/LICENSE +21 -0
  3. package/README.md +114 -0
  4. package/dist/browser/api/alertRuleResources/index.d.ts +21 -0
  5. package/dist/browser/api/alertRuleResources/index.d.ts.map +1 -0
  6. package/dist/browser/api/alertRuleResources/index.js +93 -0
  7. package/dist/browser/api/alertRuleResources/index.js.map +1 -0
  8. package/dist/browser/api/databaseWatcherContext.d.ts +17 -0
  9. package/dist/browser/api/databaseWatcherContext.d.ts.map +1 -0
  10. package/dist/browser/api/databaseWatcherContext.js +35 -0
  11. package/dist/browser/api/databaseWatcherContext.js.map +1 -0
  12. package/dist/browser/api/healthValidations/index.d.ts +18 -0
  13. package/dist/browser/api/healthValidations/index.d.ts.map +1 -0
  14. package/dist/browser/api/healthValidations/index.js +74 -0
  15. package/dist/browser/api/healthValidations/index.js.map +1 -0
  16. package/dist/browser/api/index.d.ts +9 -0
  17. package/dist/browser/api/index.d.ts.map +1 -0
  18. package/dist/browser/api/index.js +10 -0
  19. package/dist/browser/api/index.js.map +1 -0
  20. package/dist/browser/api/operations/index.d.ts +9 -0
  21. package/dist/browser/api/operations/index.d.ts.map +1 -0
  22. package/dist/browser/api/operations/index.js +23 -0
  23. package/dist/browser/api/operations/index.js.map +1 -0
  24. package/dist/browser/api/options.d.ts +90 -0
  25. package/dist/browser/api/options.d.ts.map +1 -0
  26. package/dist/browser/api/options.js +4 -0
  27. package/dist/browser/api/options.js.map +1 -0
  28. package/dist/browser/api/sharedPrivateLinkResources/index.d.ts +22 -0
  29. package/dist/browser/api/sharedPrivateLinkResources/index.d.ts.map +1 -0
  30. package/dist/browser/api/sharedPrivateLinkResources/index.js +106 -0
  31. package/dist/browser/api/sharedPrivateLinkResources/index.js.map +1 -0
  32. package/dist/browser/api/targets/index.d.ts +21 -0
  33. package/dist/browser/api/targets/index.d.ts.map +1 -0
  34. package/dist/browser/api/targets/index.js +85 -0
  35. package/dist/browser/api/targets/index.js.map +1 -0
  36. package/dist/browser/api/watchers/index.d.ts +38 -0
  37. package/dist/browser/api/watchers/index.d.ts.map +1 -0
  38. package/dist/browser/api/watchers/index.js +185 -0
  39. package/dist/browser/api/watchers/index.js.map +1 -0
  40. package/dist/browser/classic/alertRuleResources/index.d.ts +17 -0
  41. package/dist/browser/classic/alertRuleResources/index.d.ts.map +1 -0
  42. package/dist/browser/classic/alertRuleResources/index.js +15 -0
  43. package/dist/browser/classic/alertRuleResources/index.js.map +1 -0
  44. package/dist/browser/classic/healthValidations/index.d.ts +16 -0
  45. package/dist/browser/classic/healthValidations/index.d.ts.map +1 -0
  46. package/dist/browser/classic/healthValidations/index.js +14 -0
  47. package/dist/browser/classic/healthValidations/index.js.map +1 -0
  48. package/dist/browser/classic/index.d.ts +7 -0
  49. package/dist/browser/classic/index.d.ts.map +1 -0
  50. package/dist/browser/classic/index.js +4 -0
  51. package/dist/browser/classic/index.js.map +1 -0
  52. package/dist/browser/classic/operations/index.d.ts +11 -0
  53. package/dist/browser/classic/operations/index.d.ts.map +1 -0
  54. package/dist/browser/classic/operations/index.js +12 -0
  55. package/dist/browser/classic/operations/index.js.map +1 -0
  56. package/dist/browser/classic/sharedPrivateLinkResources/index.d.ts +18 -0
  57. package/dist/browser/classic/sharedPrivateLinkResources/index.d.ts.map +1 -0
  58. package/dist/browser/classic/sharedPrivateLinkResources/index.js +15 -0
  59. package/dist/browser/classic/sharedPrivateLinkResources/index.js.map +1 -0
  60. package/dist/browser/classic/targets/index.d.ts +17 -0
  61. package/dist/browser/classic/targets/index.d.ts.map +1 -0
  62. package/dist/browser/classic/targets/index.js +15 -0
  63. package/dist/browser/classic/targets/index.js.map +1 -0
  64. package/dist/browser/classic/watchers/index.d.ts +26 -0
  65. package/dist/browser/classic/watchers/index.d.ts.map +1 -0
  66. package/dist/browser/classic/watchers/index.js +19 -0
  67. package/dist/browser/classic/watchers/index.js.map +1 -0
  68. package/dist/browser/databaseWatcherClient.d.ts +29 -0
  69. package/dist/browser/databaseWatcherClient.d.ts.map +1 -0
  70. package/dist/browser/databaseWatcherClient.js +27 -0
  71. package/dist/browser/databaseWatcherClient.js.map +1 -0
  72. package/dist/browser/index.d.ts +8 -0
  73. package/dist/browser/index.d.ts.map +1 -0
  74. package/dist/browser/index.js +6 -0
  75. package/dist/browser/index.js.map +1 -0
  76. package/dist/browser/logger.d.ts +2 -0
  77. package/dist/browser/logger.d.ts.map +1 -0
  78. package/dist/browser/logger.js +5 -0
  79. package/dist/browser/logger.js.map +1 -0
  80. package/dist/browser/models/index.d.ts +2 -0
  81. package/dist/browser/models/index.d.ts.map +1 -0
  82. package/dist/browser/models/index.js +4 -0
  83. package/dist/browser/models/index.js.map +1 -0
  84. package/dist/browser/models/models.d.ts +652 -0
  85. package/dist/browser/models/models.d.ts.map +1 -0
  86. package/dist/browser/models/models.js +725 -0
  87. package/dist/browser/models/models.js.map +1 -0
  88. package/dist/browser/package.json +3 -0
  89. package/dist/browser/restorePollerHelpers.d.ts +21 -0
  90. package/dist/browser/restorePollerHelpers.d.ts.map +1 -0
  91. package/dist/browser/restorePollerHelpers.js +123 -0
  92. package/dist/browser/restorePollerHelpers.js.map +1 -0
  93. package/dist/browser/static-helpers/pagingHelpers.d.ts +72 -0
  94. package/dist/browser/static-helpers/pagingHelpers.d.ts.map +1 -0
  95. package/dist/browser/static-helpers/pagingHelpers.js +137 -0
  96. package/dist/browser/static-helpers/pagingHelpers.js.map +1 -0
  97. package/dist/browser/static-helpers/pollingHelpers.d.ts +30 -0
  98. package/dist/browser/static-helpers/pollingHelpers.d.ts.map +1 -0
  99. package/dist/browser/static-helpers/pollingHelpers.js +76 -0
  100. package/dist/browser/static-helpers/pollingHelpers.js.map +1 -0
  101. package/dist/commonjs/api/alertRuleResources/index.d.ts +21 -0
  102. package/dist/commonjs/api/alertRuleResources/index.d.ts.map +1 -0
  103. package/dist/commonjs/api/alertRuleResources/index.js +107 -0
  104. package/dist/commonjs/api/alertRuleResources/index.js.map +1 -0
  105. package/dist/commonjs/api/databaseWatcherContext.d.ts +17 -0
  106. package/dist/commonjs/api/databaseWatcherContext.d.ts.map +1 -0
  107. package/dist/commonjs/api/databaseWatcherContext.js +38 -0
  108. package/dist/commonjs/api/databaseWatcherContext.js.map +1 -0
  109. package/dist/commonjs/api/healthValidations/index.d.ts +18 -0
  110. package/dist/commonjs/api/healthValidations/index.d.ts.map +1 -0
  111. package/dist/commonjs/api/healthValidations/index.js +85 -0
  112. package/dist/commonjs/api/healthValidations/index.js.map +1 -0
  113. package/dist/commonjs/api/index.d.ts +9 -0
  114. package/dist/commonjs/api/index.d.ts.map +1 -0
  115. package/dist/commonjs/api/index.js +38 -0
  116. package/dist/commonjs/api/index.js.map +1 -0
  117. package/dist/commonjs/api/operations/index.d.ts +9 -0
  118. package/dist/commonjs/api/operations/index.d.ts.map +1 -0
  119. package/dist/commonjs/api/operations/index.js +28 -0
  120. package/dist/commonjs/api/operations/index.js.map +1 -0
  121. package/dist/commonjs/api/options.d.ts +90 -0
  122. package/dist/commonjs/api/options.d.ts.map +1 -0
  123. package/dist/commonjs/api/options.js +5 -0
  124. package/dist/commonjs/api/options.js.map +1 -0
  125. package/dist/commonjs/api/sharedPrivateLinkResources/index.d.ts +22 -0
  126. package/dist/commonjs/api/sharedPrivateLinkResources/index.d.ts.map +1 -0
  127. package/dist/commonjs/api/sharedPrivateLinkResources/index.js +120 -0
  128. package/dist/commonjs/api/sharedPrivateLinkResources/index.js.map +1 -0
  129. package/dist/commonjs/api/targets/index.d.ts +21 -0
  130. package/dist/commonjs/api/targets/index.d.ts.map +1 -0
  131. package/dist/commonjs/api/targets/index.js +99 -0
  132. package/dist/commonjs/api/targets/index.js.map +1 -0
  133. package/dist/commonjs/api/watchers/index.d.ts +38 -0
  134. package/dist/commonjs/api/watchers/index.d.ts.map +1 -0
  135. package/dist/commonjs/api/watchers/index.js +211 -0
  136. package/dist/commonjs/api/watchers/index.js.map +1 -0
  137. package/dist/commonjs/classic/alertRuleResources/index.d.ts +17 -0
  138. package/dist/commonjs/classic/alertRuleResources/index.d.ts.map +1 -0
  139. package/dist/commonjs/classic/alertRuleResources/index.js +18 -0
  140. package/dist/commonjs/classic/alertRuleResources/index.js.map +1 -0
  141. package/dist/commonjs/classic/healthValidations/index.d.ts +16 -0
  142. package/dist/commonjs/classic/healthValidations/index.d.ts.map +1 -0
  143. package/dist/commonjs/classic/healthValidations/index.js +17 -0
  144. package/dist/commonjs/classic/healthValidations/index.js.map +1 -0
  145. package/dist/commonjs/classic/index.d.ts +7 -0
  146. package/dist/commonjs/classic/index.d.ts.map +1 -0
  147. package/dist/commonjs/classic/index.js +5 -0
  148. package/dist/commonjs/classic/index.js.map +1 -0
  149. package/dist/commonjs/classic/operations/index.d.ts +11 -0
  150. package/dist/commonjs/classic/operations/index.d.ts.map +1 -0
  151. package/dist/commonjs/classic/operations/index.js +15 -0
  152. package/dist/commonjs/classic/operations/index.js.map +1 -0
  153. package/dist/commonjs/classic/sharedPrivateLinkResources/index.d.ts +18 -0
  154. package/dist/commonjs/classic/sharedPrivateLinkResources/index.d.ts.map +1 -0
  155. package/dist/commonjs/classic/sharedPrivateLinkResources/index.js +18 -0
  156. package/dist/commonjs/classic/sharedPrivateLinkResources/index.js.map +1 -0
  157. package/dist/commonjs/classic/targets/index.d.ts +17 -0
  158. package/dist/commonjs/classic/targets/index.d.ts.map +1 -0
  159. package/dist/commonjs/classic/targets/index.js +18 -0
  160. package/dist/commonjs/classic/targets/index.js.map +1 -0
  161. package/dist/commonjs/classic/watchers/index.d.ts +26 -0
  162. package/dist/commonjs/classic/watchers/index.d.ts.map +1 -0
  163. package/dist/commonjs/classic/watchers/index.js +22 -0
  164. package/dist/commonjs/classic/watchers/index.js.map +1 -0
  165. package/dist/commonjs/databaseWatcherClient.d.ts +29 -0
  166. package/dist/commonjs/databaseWatcherClient.d.ts.map +1 -0
  167. package/dist/commonjs/databaseWatcherClient.js +31 -0
  168. package/dist/commonjs/databaseWatcherClient.js.map +1 -0
  169. package/dist/commonjs/index.d.ts +8 -0
  170. package/dist/commonjs/index.d.ts.map +1 -0
  171. package/dist/commonjs/index.js +24 -0
  172. package/dist/commonjs/index.js.map +1 -0
  173. package/dist/commonjs/logger.d.ts +2 -0
  174. package/dist/commonjs/logger.d.ts.map +1 -0
  175. package/dist/commonjs/logger.js +8 -0
  176. package/dist/commonjs/logger.js.map +1 -0
  177. package/dist/commonjs/models/index.d.ts +2 -0
  178. package/dist/commonjs/models/index.d.ts.map +1 -0
  179. package/dist/commonjs/models/index.js +20 -0
  180. package/dist/commonjs/models/index.js.map +1 -0
  181. package/dist/commonjs/models/models.d.ts +652 -0
  182. package/dist/commonjs/models/models.d.ts.map +1 -0
  183. package/dist/commonjs/models/models.js +799 -0
  184. package/dist/commonjs/models/models.js.map +1 -0
  185. package/dist/commonjs/package.json +3 -0
  186. package/dist/commonjs/restorePollerHelpers.d.ts +21 -0
  187. package/dist/commonjs/restorePollerHelpers.d.ts.map +1 -0
  188. package/dist/commonjs/restorePollerHelpers.js +126 -0
  189. package/dist/commonjs/restorePollerHelpers.js.map +1 -0
  190. package/dist/commonjs/static-helpers/pagingHelpers.d.ts +72 -0
  191. package/dist/commonjs/static-helpers/pagingHelpers.d.ts.map +1 -0
  192. package/dist/commonjs/static-helpers/pagingHelpers.js +140 -0
  193. package/dist/commonjs/static-helpers/pagingHelpers.js.map +1 -0
  194. package/dist/commonjs/static-helpers/pollingHelpers.d.ts +30 -0
  195. package/dist/commonjs/static-helpers/pollingHelpers.d.ts.map +1 -0
  196. package/dist/commonjs/static-helpers/pollingHelpers.js +79 -0
  197. package/dist/commonjs/static-helpers/pollingHelpers.js.map +1 -0
  198. package/dist/commonjs/tsdoc-metadata.json +11 -0
  199. package/dist/esm/api/alertRuleResources/index.d.ts +21 -0
  200. package/dist/esm/api/alertRuleResources/index.d.ts.map +1 -0
  201. package/dist/esm/api/alertRuleResources/index.js +93 -0
  202. package/dist/esm/api/alertRuleResources/index.js.map +1 -0
  203. package/dist/esm/api/databaseWatcherContext.d.ts +17 -0
  204. package/dist/esm/api/databaseWatcherContext.d.ts.map +1 -0
  205. package/dist/esm/api/databaseWatcherContext.js +35 -0
  206. package/dist/esm/api/databaseWatcherContext.js.map +1 -0
  207. package/dist/esm/api/healthValidations/index.d.ts +18 -0
  208. package/dist/esm/api/healthValidations/index.d.ts.map +1 -0
  209. package/dist/esm/api/healthValidations/index.js +74 -0
  210. package/dist/esm/api/healthValidations/index.js.map +1 -0
  211. package/dist/esm/api/index.d.ts +9 -0
  212. package/dist/esm/api/index.d.ts.map +1 -0
  213. package/dist/esm/api/index.js +10 -0
  214. package/dist/esm/api/index.js.map +1 -0
  215. package/dist/esm/api/operations/index.d.ts +9 -0
  216. package/dist/esm/api/operations/index.d.ts.map +1 -0
  217. package/dist/esm/api/operations/index.js +23 -0
  218. package/dist/esm/api/operations/index.js.map +1 -0
  219. package/dist/esm/api/options.d.ts +90 -0
  220. package/dist/esm/api/options.d.ts.map +1 -0
  221. package/dist/esm/api/options.js +4 -0
  222. package/dist/esm/api/options.js.map +1 -0
  223. package/dist/esm/api/sharedPrivateLinkResources/index.d.ts +22 -0
  224. package/dist/esm/api/sharedPrivateLinkResources/index.d.ts.map +1 -0
  225. package/dist/esm/api/sharedPrivateLinkResources/index.js +106 -0
  226. package/dist/esm/api/sharedPrivateLinkResources/index.js.map +1 -0
  227. package/dist/esm/api/targets/index.d.ts +21 -0
  228. package/dist/esm/api/targets/index.d.ts.map +1 -0
  229. package/dist/esm/api/targets/index.js +85 -0
  230. package/dist/esm/api/targets/index.js.map +1 -0
  231. package/dist/esm/api/watchers/index.d.ts +38 -0
  232. package/dist/esm/api/watchers/index.d.ts.map +1 -0
  233. package/dist/esm/api/watchers/index.js +185 -0
  234. package/dist/esm/api/watchers/index.js.map +1 -0
  235. package/dist/esm/classic/alertRuleResources/index.d.ts +17 -0
  236. package/dist/esm/classic/alertRuleResources/index.d.ts.map +1 -0
  237. package/dist/esm/classic/alertRuleResources/index.js +15 -0
  238. package/dist/esm/classic/alertRuleResources/index.js.map +1 -0
  239. package/dist/esm/classic/healthValidations/index.d.ts +16 -0
  240. package/dist/esm/classic/healthValidations/index.d.ts.map +1 -0
  241. package/dist/esm/classic/healthValidations/index.js +14 -0
  242. package/dist/esm/classic/healthValidations/index.js.map +1 -0
  243. package/dist/esm/classic/index.d.ts +7 -0
  244. package/dist/esm/classic/index.d.ts.map +1 -0
  245. package/dist/esm/classic/index.js +4 -0
  246. package/dist/esm/classic/index.js.map +1 -0
  247. package/dist/esm/classic/operations/index.d.ts +11 -0
  248. package/dist/esm/classic/operations/index.d.ts.map +1 -0
  249. package/dist/esm/classic/operations/index.js +12 -0
  250. package/dist/esm/classic/operations/index.js.map +1 -0
  251. package/dist/esm/classic/sharedPrivateLinkResources/index.d.ts +18 -0
  252. package/dist/esm/classic/sharedPrivateLinkResources/index.d.ts.map +1 -0
  253. package/dist/esm/classic/sharedPrivateLinkResources/index.js +15 -0
  254. package/dist/esm/classic/sharedPrivateLinkResources/index.js.map +1 -0
  255. package/dist/esm/classic/targets/index.d.ts +17 -0
  256. package/dist/esm/classic/targets/index.d.ts.map +1 -0
  257. package/dist/esm/classic/targets/index.js +15 -0
  258. package/dist/esm/classic/targets/index.js.map +1 -0
  259. package/dist/esm/classic/watchers/index.d.ts +26 -0
  260. package/dist/esm/classic/watchers/index.d.ts.map +1 -0
  261. package/dist/esm/classic/watchers/index.js +19 -0
  262. package/dist/esm/classic/watchers/index.js.map +1 -0
  263. package/dist/esm/databaseWatcherClient.d.ts +29 -0
  264. package/dist/esm/databaseWatcherClient.d.ts.map +1 -0
  265. package/dist/esm/databaseWatcherClient.js +27 -0
  266. package/dist/esm/databaseWatcherClient.js.map +1 -0
  267. package/dist/esm/index.d.ts +8 -0
  268. package/dist/esm/index.d.ts.map +1 -0
  269. package/dist/esm/index.js +6 -0
  270. package/dist/esm/index.js.map +1 -0
  271. package/dist/esm/logger.d.ts +2 -0
  272. package/dist/esm/logger.d.ts.map +1 -0
  273. package/dist/esm/logger.js +5 -0
  274. package/dist/esm/logger.js.map +1 -0
  275. package/dist/esm/models/index.d.ts +2 -0
  276. package/dist/esm/models/index.d.ts.map +1 -0
  277. package/dist/esm/models/index.js +4 -0
  278. package/dist/esm/models/index.js.map +1 -0
  279. package/dist/esm/models/models.d.ts +652 -0
  280. package/dist/esm/models/models.d.ts.map +1 -0
  281. package/dist/esm/models/models.js +725 -0
  282. package/dist/esm/models/models.js.map +1 -0
  283. package/dist/esm/package.json +3 -0
  284. package/dist/esm/restorePollerHelpers.d.ts +21 -0
  285. package/dist/esm/restorePollerHelpers.d.ts.map +1 -0
  286. package/dist/esm/restorePollerHelpers.js +123 -0
  287. package/dist/esm/restorePollerHelpers.js.map +1 -0
  288. package/dist/esm/static-helpers/pagingHelpers.d.ts +72 -0
  289. package/dist/esm/static-helpers/pagingHelpers.d.ts.map +1 -0
  290. package/dist/esm/static-helpers/pagingHelpers.js +137 -0
  291. package/dist/esm/static-helpers/pagingHelpers.js.map +1 -0
  292. package/dist/esm/static-helpers/pollingHelpers.d.ts +30 -0
  293. package/dist/esm/static-helpers/pollingHelpers.d.ts.map +1 -0
  294. package/dist/esm/static-helpers/pollingHelpers.js +76 -0
  295. package/dist/esm/static-helpers/pollingHelpers.js.map +1 -0
  296. package/dist/react-native/api/alertRuleResources/index.d.ts +21 -0
  297. package/dist/react-native/api/alertRuleResources/index.d.ts.map +1 -0
  298. package/dist/react-native/api/alertRuleResources/index.js +93 -0
  299. package/dist/react-native/api/alertRuleResources/index.js.map +1 -0
  300. package/dist/react-native/api/databaseWatcherContext.d.ts +17 -0
  301. package/dist/react-native/api/databaseWatcherContext.d.ts.map +1 -0
  302. package/dist/react-native/api/databaseWatcherContext.js +35 -0
  303. package/dist/react-native/api/databaseWatcherContext.js.map +1 -0
  304. package/dist/react-native/api/healthValidations/index.d.ts +18 -0
  305. package/dist/react-native/api/healthValidations/index.d.ts.map +1 -0
  306. package/dist/react-native/api/healthValidations/index.js +74 -0
  307. package/dist/react-native/api/healthValidations/index.js.map +1 -0
  308. package/dist/react-native/api/index.d.ts +9 -0
  309. package/dist/react-native/api/index.d.ts.map +1 -0
  310. package/dist/react-native/api/index.js +10 -0
  311. package/dist/react-native/api/index.js.map +1 -0
  312. package/dist/react-native/api/operations/index.d.ts +9 -0
  313. package/dist/react-native/api/operations/index.d.ts.map +1 -0
  314. package/dist/react-native/api/operations/index.js +23 -0
  315. package/dist/react-native/api/operations/index.js.map +1 -0
  316. package/dist/react-native/api/options.d.ts +90 -0
  317. package/dist/react-native/api/options.d.ts.map +1 -0
  318. package/dist/react-native/api/options.js +4 -0
  319. package/dist/react-native/api/options.js.map +1 -0
  320. package/dist/react-native/api/sharedPrivateLinkResources/index.d.ts +22 -0
  321. package/dist/react-native/api/sharedPrivateLinkResources/index.d.ts.map +1 -0
  322. package/dist/react-native/api/sharedPrivateLinkResources/index.js +106 -0
  323. package/dist/react-native/api/sharedPrivateLinkResources/index.js.map +1 -0
  324. package/dist/react-native/api/targets/index.d.ts +21 -0
  325. package/dist/react-native/api/targets/index.d.ts.map +1 -0
  326. package/dist/react-native/api/targets/index.js +85 -0
  327. package/dist/react-native/api/targets/index.js.map +1 -0
  328. package/dist/react-native/api/watchers/index.d.ts +38 -0
  329. package/dist/react-native/api/watchers/index.d.ts.map +1 -0
  330. package/dist/react-native/api/watchers/index.js +185 -0
  331. package/dist/react-native/api/watchers/index.js.map +1 -0
  332. package/dist/react-native/classic/alertRuleResources/index.d.ts +17 -0
  333. package/dist/react-native/classic/alertRuleResources/index.d.ts.map +1 -0
  334. package/dist/react-native/classic/alertRuleResources/index.js +15 -0
  335. package/dist/react-native/classic/alertRuleResources/index.js.map +1 -0
  336. package/dist/react-native/classic/healthValidations/index.d.ts +16 -0
  337. package/dist/react-native/classic/healthValidations/index.d.ts.map +1 -0
  338. package/dist/react-native/classic/healthValidations/index.js +14 -0
  339. package/dist/react-native/classic/healthValidations/index.js.map +1 -0
  340. package/dist/react-native/classic/index.d.ts +7 -0
  341. package/dist/react-native/classic/index.d.ts.map +1 -0
  342. package/dist/react-native/classic/index.js +4 -0
  343. package/dist/react-native/classic/index.js.map +1 -0
  344. package/dist/react-native/classic/operations/index.d.ts +11 -0
  345. package/dist/react-native/classic/operations/index.d.ts.map +1 -0
  346. package/dist/react-native/classic/operations/index.js +12 -0
  347. package/dist/react-native/classic/operations/index.js.map +1 -0
  348. package/dist/react-native/classic/sharedPrivateLinkResources/index.d.ts +18 -0
  349. package/dist/react-native/classic/sharedPrivateLinkResources/index.d.ts.map +1 -0
  350. package/dist/react-native/classic/sharedPrivateLinkResources/index.js +15 -0
  351. package/dist/react-native/classic/sharedPrivateLinkResources/index.js.map +1 -0
  352. package/dist/react-native/classic/targets/index.d.ts +17 -0
  353. package/dist/react-native/classic/targets/index.d.ts.map +1 -0
  354. package/dist/react-native/classic/targets/index.js +15 -0
  355. package/dist/react-native/classic/targets/index.js.map +1 -0
  356. package/dist/react-native/classic/watchers/index.d.ts +26 -0
  357. package/dist/react-native/classic/watchers/index.d.ts.map +1 -0
  358. package/dist/react-native/classic/watchers/index.js +19 -0
  359. package/dist/react-native/classic/watchers/index.js.map +1 -0
  360. package/dist/react-native/databaseWatcherClient.d.ts +29 -0
  361. package/dist/react-native/databaseWatcherClient.d.ts.map +1 -0
  362. package/dist/react-native/databaseWatcherClient.js +27 -0
  363. package/dist/react-native/databaseWatcherClient.js.map +1 -0
  364. package/dist/react-native/index.d.ts +8 -0
  365. package/dist/react-native/index.d.ts.map +1 -0
  366. package/dist/react-native/index.js +6 -0
  367. package/dist/react-native/index.js.map +1 -0
  368. package/dist/react-native/logger.d.ts +2 -0
  369. package/dist/react-native/logger.d.ts.map +1 -0
  370. package/dist/react-native/logger.js +5 -0
  371. package/dist/react-native/logger.js.map +1 -0
  372. package/dist/react-native/models/index.d.ts +2 -0
  373. package/dist/react-native/models/index.d.ts.map +1 -0
  374. package/dist/react-native/models/index.js +4 -0
  375. package/dist/react-native/models/index.js.map +1 -0
  376. package/dist/react-native/models/models.d.ts +652 -0
  377. package/dist/react-native/models/models.d.ts.map +1 -0
  378. package/dist/react-native/models/models.js +725 -0
  379. package/dist/react-native/models/models.js.map +1 -0
  380. package/dist/react-native/package.json +3 -0
  381. package/dist/react-native/restorePollerHelpers.d.ts +21 -0
  382. package/dist/react-native/restorePollerHelpers.d.ts.map +1 -0
  383. package/dist/react-native/restorePollerHelpers.js +123 -0
  384. package/dist/react-native/restorePollerHelpers.js.map +1 -0
  385. package/dist/react-native/static-helpers/pagingHelpers.d.ts +72 -0
  386. package/dist/react-native/static-helpers/pagingHelpers.d.ts.map +1 -0
  387. package/dist/react-native/static-helpers/pagingHelpers.js +137 -0
  388. package/dist/react-native/static-helpers/pagingHelpers.js.map +1 -0
  389. package/dist/react-native/static-helpers/pollingHelpers.d.ts +30 -0
  390. package/dist/react-native/static-helpers/pollingHelpers.d.ts.map +1 -0
  391. package/dist/react-native/static-helpers/pollingHelpers.js +76 -0
  392. package/dist/react-native/static-helpers/pollingHelpers.js.map +1 -0
  393. package/package.json +164 -0
  394. package/review/arm-databasewatcher-models.api.md +357 -0
  395. package/review/arm-databasewatcher.api.md +562 -0
@@ -0,0 +1,30 @@
1
+ import { PollerLike, OperationState, ResourceLocationConfig } from "@azure/core-lro";
2
+ import { Client, PathUncheckedResponse } from "@azure-rest/core-client";
3
+ import { AbortSignalLike } from "@azure/abort-controller";
4
+ export interface GetLongRunningPollerOptions<TResponse> {
5
+ /** Delay to wait until next poll, in milliseconds. */
6
+ updateIntervalInMs?: number;
7
+ /**
8
+ * The signal which can be used to abort requests.
9
+ */
10
+ abortSignal?: AbortSignalLike;
11
+ /**
12
+ * The potential location of the result of the LRO if specified by the LRO extension in the swagger.
13
+ */
14
+ resourceLocationConfig?: ResourceLocationConfig;
15
+ /**
16
+ * The original url of the LRO
17
+ * Should not be null when restoreFrom is set
18
+ */
19
+ initialRequestUrl?: string;
20
+ /**
21
+ * A serialized poller which can be used to resume an existing paused Long-Running-Operation.
22
+ */
23
+ restoreFrom?: string;
24
+ /**
25
+ * The function to get the initial response
26
+ */
27
+ getInitialResponse?: () => PromiseLike<TResponse>;
28
+ }
29
+ export declare function getLongRunningPoller<TResponse extends PathUncheckedResponse, TResult = void>(client: Client, processResponseBody: (result: TResponse) => Promise<TResult>, expectedStatuses: string[], options: GetLongRunningPollerOptions<TResponse>): PollerLike<OperationState<TResult>, TResult>;
30
+ //# sourceMappingURL=pollingHelpers.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pollingHelpers.d.ts","sourceRoot":"","sources":["../../../src/static-helpers/pollingHelpers.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,UAAU,EACV,cAAc,EACd,sBAAsB,EAIvB,MAAM,iBAAiB,CAAC;AAEzB,OAAO,EAAE,MAAM,EAAE,qBAAqB,EAAmB,MAAM,yBAAyB,CAAC;AACzF,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAE1D,MAAM,WAAW,2BAA2B,CAAC,SAAS;IACpD,sDAAsD;IACtD,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B;;OAEG;IACH,WAAW,CAAC,EAAE,eAAe,CAAC;IAC9B;;OAEG;IACH,sBAAsB,CAAC,EAAE,sBAAsB,CAAC;IAChD;;;OAGG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,kBAAkB,CAAC,EAAE,MAAM,WAAW,CAAC,SAAS,CAAC,CAAC;CACnD;AACD,wBAAgB,oBAAoB,CAAC,SAAS,SAAS,qBAAqB,EAAE,OAAO,GAAG,IAAI,EAC1F,MAAM,EAAE,MAAM,EACd,mBAAmB,EAAE,CAAC,MAAM,EAAE,SAAS,KAAK,OAAO,CAAC,OAAO,CAAC,EAC5D,gBAAgB,EAAE,MAAM,EAAE,EAC1B,OAAO,EAAE,2BAA2B,CAAC,SAAS,CAAC,GAC9C,UAAU,CAAC,cAAc,CAAC,OAAO,CAAC,EAAE,OAAO,CAAC,CAyD9C"}
@@ -0,0 +1,79 @@
1
+ "use strict";
2
+ // Copyright (c) Microsoft Corporation.
3
+ // Licensed under the MIT License.
4
+ Object.defineProperty(exports, "__esModule", { value: true });
5
+ exports.getLongRunningPoller = getLongRunningPoller;
6
+ const core_lro_1 = require("@azure/core-lro");
7
+ const core_client_1 = require("@azure-rest/core-client");
8
+ function getLongRunningPoller(client, processResponseBody, expectedStatuses, options) {
9
+ const { restoreFrom, getInitialResponse } = options;
10
+ if (!restoreFrom && !getInitialResponse) {
11
+ throw new Error("Either restoreFrom or getInitialResponse must be specified");
12
+ }
13
+ let initialResponse = undefined;
14
+ const pollAbortController = new AbortController();
15
+ const poller = {
16
+ sendInitialRequest: async () => {
17
+ if (!getInitialResponse) {
18
+ throw new Error("getInitialResponse is required when initializing a new poller");
19
+ }
20
+ initialResponse = await getInitialResponse();
21
+ return getLroResponse(initialResponse, expectedStatuses);
22
+ },
23
+ sendPollRequest: async (path, pollOptions) => {
24
+ var _a, _b, _c, _d, _e, _f;
25
+ // The poll request would both listen to the user provided abort signal and the poller's own abort signal
26
+ function abortListener() {
27
+ pollAbortController.abort();
28
+ }
29
+ const abortSignal = pollAbortController.signal;
30
+ if ((_a = options.abortSignal) === null || _a === void 0 ? void 0 : _a.aborted) {
31
+ pollAbortController.abort();
32
+ }
33
+ else if ((_b = pollOptions === null || pollOptions === void 0 ? void 0 : pollOptions.abortSignal) === null || _b === void 0 ? void 0 : _b.aborted) {
34
+ pollAbortController.abort();
35
+ }
36
+ else if (!abortSignal.aborted) {
37
+ (_c = options.abortSignal) === null || _c === void 0 ? void 0 : _c.addEventListener("abort", abortListener, {
38
+ once: true,
39
+ });
40
+ (_d = pollOptions === null || pollOptions === void 0 ? void 0 : pollOptions.abortSignal) === null || _d === void 0 ? void 0 : _d.addEventListener("abort", abortListener, {
41
+ once: true,
42
+ });
43
+ }
44
+ let response;
45
+ try {
46
+ response = await client.pathUnchecked(path).get({ abortSignal });
47
+ }
48
+ finally {
49
+ (_e = options.abortSignal) === null || _e === void 0 ? void 0 : _e.removeEventListener("abort", abortListener);
50
+ (_f = pollOptions === null || pollOptions === void 0 ? void 0 : pollOptions.abortSignal) === null || _f === void 0 ? void 0 : _f.removeEventListener("abort", abortListener);
51
+ }
52
+ return getLroResponse(response, expectedStatuses);
53
+ },
54
+ };
55
+ return (0, core_lro_1.createHttpPoller)(poller, {
56
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
57
+ resourceLocationConfig: options === null || options === void 0 ? void 0 : options.resourceLocationConfig,
58
+ restoreFrom: options === null || options === void 0 ? void 0 : options.restoreFrom,
59
+ processResult: (result) => {
60
+ return processResponseBody(result);
61
+ },
62
+ });
63
+ }
64
+ /**
65
+ * Converts a Rest Client response to a response that the LRO implementation understands
66
+ * @param response - a rest client http response
67
+ * @param deserializeFn - deserialize function to convert Rest response to modular output
68
+ * @returns - An LRO response that the LRO implementation understands
69
+ */
70
+ function getLroResponse(response, expectedStatuses) {
71
+ if (!expectedStatuses.includes(response.status)) {
72
+ throw (0, core_client_1.createRestError)(response);
73
+ }
74
+ return {
75
+ flatResponse: response,
76
+ rawResponse: Object.assign(Object.assign({}, response), { statusCode: Number.parseInt(response.status), body: response.body }),
77
+ };
78
+ }
79
+ //# sourceMappingURL=pollingHelpers.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pollingHelpers.js","sourceRoot":"","sources":["../../../src/static-helpers/pollingHelpers.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AAuClC,oDA8DC;AAnGD,8CAOyB;AAEzB,yDAAyF;AA4BzF,SAAgB,oBAAoB,CAClC,MAAc,EACd,mBAA4D,EAC5D,gBAA0B,EAC1B,OAA+C;IAE/C,MAAM,EAAE,WAAW,EAAE,kBAAkB,EAAE,GAAG,OAAO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,GACpB;KACF,CAAC;AACJ,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport {\n PollerLike,\n OperationState,\n ResourceLocationConfig,\n RunningOperation,\n createHttpPoller,\n OperationResponse,\n} from \"@azure/core-lro\";\n\nimport { Client, PathUncheckedResponse, createRestError } from \"@azure-rest/core-client\";\nimport { AbortSignalLike } from \"@azure/abort-controller\";\n\nexport interface GetLongRunningPollerOptions<TResponse> {\n /** Delay to wait until next poll, in milliseconds. */\n updateIntervalInMs?: number;\n /**\n * The signal which can be used to abort requests.\n */\n abortSignal?: AbortSignalLike;\n /**\n * The potential location of the result of the LRO if specified by the LRO extension in the swagger.\n */\n resourceLocationConfig?: ResourceLocationConfig;\n /**\n * The original url of the LRO\n * Should not be null when restoreFrom is set\n */\n initialRequestUrl?: string;\n /**\n * A serialized poller which can be used to resume an existing paused Long-Running-Operation.\n */\n restoreFrom?: string;\n /**\n * The function to get the initial response\n */\n getInitialResponse?: () => PromiseLike<TResponse>;\n}\nexport function getLongRunningPoller<TResponse extends PathUncheckedResponse, TResult = void>(\n client: Client,\n processResponseBody: (result: TResponse) => Promise<TResult>,\n expectedStatuses: string[],\n options: GetLongRunningPollerOptions<TResponse>,\n): PollerLike<OperationState<TResult>, TResult> {\n const { restoreFrom, getInitialResponse } = options;\n if (!restoreFrom && !getInitialResponse) {\n throw new Error(\"Either restoreFrom or getInitialResponse must be specified\");\n }\n let initialResponse: TResponse | undefined = undefined;\n const pollAbortController = new AbortController();\n const poller: RunningOperation<TResponse> = {\n sendInitialRequest: async () => {\n if (!getInitialResponse) {\n throw new Error(\"getInitialResponse is required when initializing a new poller\");\n }\n initialResponse = await getInitialResponse();\n return getLroResponse(initialResponse, expectedStatuses);\n },\n sendPollRequest: async (\n path: string,\n pollOptions?: {\n abortSignal?: AbortSignalLike;\n },\n ) => {\n // The poll request would both listen to the user provided abort signal and the poller's own abort signal\n function abortListener(): void {\n pollAbortController.abort();\n }\n const abortSignal = pollAbortController.signal;\n if (options.abortSignal?.aborted) {\n pollAbortController.abort();\n } else if (pollOptions?.abortSignal?.aborted) {\n pollAbortController.abort();\n } else if (!abortSignal.aborted) {\n options.abortSignal?.addEventListener(\"abort\", abortListener, {\n once: true,\n });\n pollOptions?.abortSignal?.addEventListener(\"abort\", abortListener, {\n once: true,\n });\n }\n let response;\n try {\n response = await client.pathUnchecked(path).get({ abortSignal });\n } finally {\n options.abortSignal?.removeEventListener(\"abort\", abortListener);\n pollOptions?.abortSignal?.removeEventListener(\"abort\", abortListener);\n }\n\n return getLroResponse(response as TResponse, expectedStatuses);\n },\n };\n return createHttpPoller(poller, {\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: options?.resourceLocationConfig,\n restoreFrom: options?.restoreFrom,\n processResult: (result: unknown) => {\n return processResponseBody(result as TResponse);\n },\n });\n}\n/**\n * Converts a Rest Client response to a response that the LRO implementation understands\n * @param response - a rest client http response\n * @param deserializeFn - deserialize function to convert Rest response to modular output\n * @returns - An LRO response that the LRO implementation understands\n */\nfunction getLroResponse<TResponse extends PathUncheckedResponse>(\n response: TResponse,\n expectedStatuses: string[],\n): OperationResponse<TResponse> {\n if (!expectedStatuses.includes(response.status)) {\n throw createRestError(response);\n }\n\n return {\n flatResponse: response,\n rawResponse: {\n ...response,\n statusCode: Number.parseInt(response.status),\n body: response.body,\n },\n };\n}\n"]}
@@ -0,0 +1,11 @@
1
+ // This file is read by tools that parse documentation comments conforming to the TSDoc standard.
2
+ // It should be published with your NPM package. It should not be tracked by Git.
3
+ {
4
+ "tsdocVersion": "0.12",
5
+ "toolPackages": [
6
+ {
7
+ "packageName": "@microsoft/api-extractor",
8
+ "packageVersion": "7.50.1"
9
+ }
10
+ ]
11
+ }
@@ -0,0 +1,21 @@
1
+ import { AlertRuleResourcesCreateOrUpdateOptionalParams, AlertRuleResourcesDeleteOptionalParams, AlertRuleResourcesGetOptionalParams, AlertRuleResourcesListByParentOptionalParams, DatabaseWatcherContext as Client } from "../index.js";
2
+ import { AlertRuleResource, _AlertRuleResourceListResult } from "../../models/models.js";
3
+ import { PagedAsyncIterableIterator } from "../../static-helpers/pagingHelpers.js";
4
+ import { StreamableMethod, PathUncheckedResponse } from "@azure-rest/core-client";
5
+ export declare function _alertRuleResourcesListByParentSend(context: Client, resourceGroupName: string, watcherName: string, options?: AlertRuleResourcesListByParentOptionalParams): StreamableMethod;
6
+ export declare function _alertRuleResourcesListByParentDeserialize(result: PathUncheckedResponse): Promise<_AlertRuleResourceListResult>;
7
+ /** List AlertRuleResource resources by Watcher */
8
+ export declare function alertRuleResourcesListByParent(context: Client, resourceGroupName: string, watcherName: string, options?: AlertRuleResourcesListByParentOptionalParams): PagedAsyncIterableIterator<AlertRuleResource>;
9
+ export declare function _alertRuleResourcesDeleteSend(context: Client, resourceGroupName: string, watcherName: string, alertRuleResourceName: string, options?: AlertRuleResourcesDeleteOptionalParams): StreamableMethod;
10
+ export declare function _alertRuleResourcesDeleteDeserialize(result: PathUncheckedResponse): Promise<void>;
11
+ /** Delete a AlertRuleResource */
12
+ export declare function alertRuleResourcesDelete(context: Client, resourceGroupName: string, watcherName: string, alertRuleResourceName: string, options?: AlertRuleResourcesDeleteOptionalParams): Promise<void>;
13
+ export declare function _alertRuleResourcesCreateOrUpdateSend(context: Client, resourceGroupName: string, watcherName: string, alertRuleResourceName: string, resource: AlertRuleResource, options?: AlertRuleResourcesCreateOrUpdateOptionalParams): StreamableMethod;
14
+ export declare function _alertRuleResourcesCreateOrUpdateDeserialize(result: PathUncheckedResponse): Promise<AlertRuleResource>;
15
+ /** Create a AlertRuleResource */
16
+ export declare function alertRuleResourcesCreateOrUpdate(context: Client, resourceGroupName: string, watcherName: string, alertRuleResourceName: string, resource: AlertRuleResource, options?: AlertRuleResourcesCreateOrUpdateOptionalParams): Promise<AlertRuleResource>;
17
+ export declare function _alertRuleResourcesGetSend(context: Client, resourceGroupName: string, watcherName: string, alertRuleResourceName: string, options?: AlertRuleResourcesGetOptionalParams): StreamableMethod;
18
+ export declare function _alertRuleResourcesGetDeserialize(result: PathUncheckedResponse): Promise<AlertRuleResource>;
19
+ /** Get a AlertRuleResource */
20
+ export declare function alertRuleResourcesGet(context: Client, resourceGroupName: string, watcherName: string, alertRuleResourceName: string, options?: AlertRuleResourcesGetOptionalParams): Promise<AlertRuleResource>;
21
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/api/alertRuleResources/index.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,8CAA8C,EAC9C,sCAAsC,EACtC,mCAAmC,EACnC,4CAA4C,EAC5C,sBAAsB,IAAI,MAAM,EACjC,MAAM,aAAa,CAAC;AACrB,OAAO,EAEL,iBAAiB,EAGjB,4BAA4B,EAE7B,MAAM,wBAAwB,CAAC;AAChC,OAAO,EACL,0BAA0B,EAE3B,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EACL,gBAAgB,EAChB,qBAAqB,EAGtB,MAAM,yBAAyB,CAAC;AAEjC,wBAAgB,mCAAmC,CACjD,OAAO,EAAE,MAAM,EACf,iBAAiB,EAAE,MAAM,EACzB,WAAW,EAAE,MAAM,EACnB,OAAO,GAAE,4CAER,GACA,gBAAgB,CAgBlB;AAED,wBAAsB,0CAA0C,CAC9D,MAAM,EAAE,qBAAqB,GAC5B,OAAO,CAAC,4BAA4B,CAAC,CASvC;AAED,kDAAkD;AAClD,wBAAgB,8BAA8B,CAC5C,OAAO,EAAE,MAAM,EACf,iBAAiB,EAAE,MAAM,EACzB,WAAW,EAAE,MAAM,EACnB,OAAO,GAAE,4CAER,GACA,0BAA0B,CAAC,iBAAiB,CAAC,CAQ/C;AAED,wBAAgB,6BAA6B,CAC3C,OAAO,EAAE,MAAM,EACf,iBAAiB,EAAE,MAAM,EACzB,WAAW,EAAE,MAAM,EACnB,qBAAqB,EAAE,MAAM,EAC7B,OAAO,GAAE,sCAA+D,GACvE,gBAAgB,CAiBlB;AAED,w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AAC,iBAAiB,CAAC,CAS5B"}
@@ -0,0 +1,93 @@
1
+ // Copyright (c) Microsoft Corporation.
2
+ // Licensed under the MIT License.
3
+ import { errorResponseDeserializer, alertRuleResourceSerializer, alertRuleResourceDeserializer, _alertRuleResourceListResultDeserializer, } from "../../models/models.js";
4
+ import { buildPagedAsyncIterator, } from "../../static-helpers/pagingHelpers.js";
5
+ import { createRestError, operationOptionsToRequestParameters, } from "@azure-rest/core-client";
6
+ export function _alertRuleResourcesListByParentSend(context, resourceGroupName, watcherName, options = {
7
+ requestOptions: {},
8
+ }) {
9
+ var _a;
10
+ return context
11
+ .path("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DatabaseWatcher/watchers/{watcherName}/alertRuleResources", context.subscriptionId, resourceGroupName, watcherName)
12
+ .get(Object.assign(Object.assign({}, operationOptionsToRequestParameters(options)), { headers: Object.assign({ accept: "application/json" }, (_a = options.requestOptions) === null || _a === void 0 ? void 0 : _a.headers), queryParameters: { "api-version": context.apiVersion } }));
13
+ }
14
+ export async function _alertRuleResourcesListByParentDeserialize(result) {
15
+ const expectedStatuses = ["200"];
16
+ if (!expectedStatuses.includes(result.status)) {
17
+ const error = createRestError(result);
18
+ error.details = errorResponseDeserializer(result.body);
19
+ throw error;
20
+ }
21
+ return _alertRuleResourceListResultDeserializer(result.body);
22
+ }
23
+ /** List AlertRuleResource resources by Watcher */
24
+ export function alertRuleResourcesListByParent(context, resourceGroupName, watcherName, options = {
25
+ requestOptions: {},
26
+ }) {
27
+ return buildPagedAsyncIterator(context, () => _alertRuleResourcesListByParentSend(context, resourceGroupName, watcherName, options), _alertRuleResourcesListByParentDeserialize, ["200"], { itemName: "value", nextLinkName: "nextLink" });
28
+ }
29
+ export function _alertRuleResourcesDeleteSend(context, resourceGroupName, watcherName, alertRuleResourceName, options = { requestOptions: {} }) {
30
+ var _a;
31
+ return context
32
+ .path("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DatabaseWatcher/watchers/{watcherName}/alertRuleResources/{alertRuleResourceName}", context.subscriptionId, resourceGroupName, watcherName, alertRuleResourceName)
33
+ .delete(Object.assign(Object.assign({}, operationOptionsToRequestParameters(options)), { headers: Object.assign({ accept: "application/json" }, (_a = options.requestOptions) === null || _a === void 0 ? void 0 : _a.headers), queryParameters: { "api-version": context.apiVersion } }));
34
+ }
35
+ export async function _alertRuleResourcesDeleteDeserialize(result) {
36
+ const expectedStatuses = ["200", "204"];
37
+ if (!expectedStatuses.includes(result.status)) {
38
+ const error = createRestError(result);
39
+ error.details = errorResponseDeserializer(result.body);
40
+ throw error;
41
+ }
42
+ return;
43
+ }
44
+ /** Delete a AlertRuleResource */
45
+ export async function alertRuleResourcesDelete(context, resourceGroupName, watcherName, alertRuleResourceName, options = { requestOptions: {} }) {
46
+ const result = await _alertRuleResourcesDeleteSend(context, resourceGroupName, watcherName, alertRuleResourceName, options);
47
+ return _alertRuleResourcesDeleteDeserialize(result);
48
+ }
49
+ export function _alertRuleResourcesCreateOrUpdateSend(context, resourceGroupName, watcherName, alertRuleResourceName, resource, options = {
50
+ requestOptions: {},
51
+ }) {
52
+ var _a;
53
+ return context
54
+ .path("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DatabaseWatcher/watchers/{watcherName}/alertRuleResources/{alertRuleResourceName}", context.subscriptionId, resourceGroupName, watcherName, alertRuleResourceName)
55
+ .put(Object.assign(Object.assign({}, operationOptionsToRequestParameters(options)), { contentType: "application/json", headers: Object.assign({ accept: "application/json" }, (_a = options.requestOptions) === null || _a === void 0 ? void 0 : _a.headers), queryParameters: { "api-version": context.apiVersion }, body: alertRuleResourceSerializer(resource) }));
56
+ }
57
+ export async function _alertRuleResourcesCreateOrUpdateDeserialize(result) {
58
+ const expectedStatuses = ["200", "201"];
59
+ if (!expectedStatuses.includes(result.status)) {
60
+ const error = createRestError(result);
61
+ error.details = errorResponseDeserializer(result.body);
62
+ throw error;
63
+ }
64
+ return alertRuleResourceDeserializer(result.body);
65
+ }
66
+ /** Create a AlertRuleResource */
67
+ export async function alertRuleResourcesCreateOrUpdate(context, resourceGroupName, watcherName, alertRuleResourceName, resource, options = {
68
+ requestOptions: {},
69
+ }) {
70
+ const result = await _alertRuleResourcesCreateOrUpdateSend(context, resourceGroupName, watcherName, alertRuleResourceName, resource, options);
71
+ return _alertRuleResourcesCreateOrUpdateDeserialize(result);
72
+ }
73
+ export function _alertRuleResourcesGetSend(context, resourceGroupName, watcherName, alertRuleResourceName, options = { requestOptions: {} }) {
74
+ var _a;
75
+ return context
76
+ .path("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DatabaseWatcher/watchers/{watcherName}/alertRuleResources/{alertRuleResourceName}", context.subscriptionId, resourceGroupName, watcherName, alertRuleResourceName)
77
+ .get(Object.assign(Object.assign({}, operationOptionsToRequestParameters(options)), { headers: Object.assign({ accept: "application/json" }, (_a = options.requestOptions) === null || _a === void 0 ? void 0 : _a.headers), queryParameters: { "api-version": context.apiVersion } }));
78
+ }
79
+ export async function _alertRuleResourcesGetDeserialize(result) {
80
+ const expectedStatuses = ["200"];
81
+ if (!expectedStatuses.includes(result.status)) {
82
+ const error = createRestError(result);
83
+ error.details = errorResponseDeserializer(result.body);
84
+ throw error;
85
+ }
86
+ return alertRuleResourceDeserializer(result.body);
87
+ }
88
+ /** Get a AlertRuleResource */
89
+ export async function alertRuleResourcesGet(context, resourceGroupName, watcherName, alertRuleResourceName, options = { requestOptions: {} }) {
90
+ const result = await _alertRuleResourcesGetSend(context, resourceGroupName, watcherName, alertRuleResourceName, options);
91
+ return _alertRuleResourcesGetDeserialize(result);
92
+ }
93
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/api/alertRuleResources/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AASlC,OAAO,EACL,yBAAyB,EAEzB,2BAA2B,EAC3B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,qBAAqB,EACrB,OAAO,CACR,CAAC;IACF,OAAO,iCAAiC,CAAC,MAAM,CAAC,CAAC;AACnD,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport {\n AlertRuleResourcesCreateOrUpdateOptionalParams,\n AlertRuleResourcesDeleteOptionalParams,\n AlertRuleResourcesGetOptionalParams,\n AlertRuleResourcesListByParentOptionalParams,\n DatabaseWatcherContext as Client,\n} from \"../index.js\";\nimport {\n errorResponseDeserializer,\n AlertRuleResource,\n alertRuleResourceSerializer,\n alertRuleResourceDeserializer,\n _AlertRuleResourceListResult,\n _alertRuleResourceListResultDeserializer,\n} from \"../../models/models.js\";\nimport {\n PagedAsyncIterableIterator,\n buildPagedAsyncIterator,\n} from \"../../static-helpers/pagingHelpers.js\";\nimport {\n StreamableMethod,\n PathUncheckedResponse,\n createRestError,\n operationOptionsToRequestParameters,\n} from \"@azure-rest/core-client\";\n\nexport function _alertRuleResourcesListByParentSend(\n context: Client,\n resourceGroupName: string,\n watcherName: string,\n options: AlertRuleResourcesListByParentOptionalParams = {\n requestOptions: {},\n },\n): StreamableMethod {\n return context\n .path(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DatabaseWatcher/watchers/{watcherName}/alertRuleResources\",\n context.subscriptionId,\n resourceGroupName,\n watcherName,\n )\n .get({\n ...operationOptionsToRequestParameters(options),\n headers: {\n accept: \"application/json\",\n ...options.requestOptions?.headers,\n },\n queryParameters: { \"api-version\": context.apiVersion },\n });\n}\n\nexport async function _alertRuleResourcesListByParentDeserialize(\n result: PathUncheckedResponse,\n): Promise<_AlertRuleResourceListResult> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n error.details = errorResponseDeserializer(result.body);\n throw error;\n }\n\n return _alertRuleResourceListResultDeserializer(result.body);\n}\n\n/** List AlertRuleResource resources by Watcher */\nexport function alertRuleResourcesListByParent(\n context: Client,\n resourceGroupName: string,\n watcherName: string,\n options: AlertRuleResourcesListByParentOptionalParams = {\n requestOptions: {},\n },\n): PagedAsyncIterableIterator<AlertRuleResource> {\n return buildPagedAsyncIterator(\n context,\n () => _alertRuleResourcesListByParentSend(context, resourceGroupName, watcherName, options),\n _alertRuleResourcesListByParentDeserialize,\n [\"200\"],\n { itemName: \"value\", nextLinkName: \"nextLink\" },\n );\n}\n\nexport function _alertRuleResourcesDeleteSend(\n context: Client,\n resourceGroupName: string,\n watcherName: string,\n alertRuleResourceName: string,\n options: AlertRuleResourcesDeleteOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n return context\n .path(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DatabaseWatcher/watchers/{watcherName}/alertRuleResources/{alertRuleResourceName}\",\n context.subscriptionId,\n resourceGroupName,\n watcherName,\n alertRuleResourceName,\n )\n .delete({\n ...operationOptionsToRequestParameters(options),\n headers: {\n accept: \"application/json\",\n ...options.requestOptions?.headers,\n },\n queryParameters: { \"api-version\": context.apiVersion },\n });\n}\n\nexport async function _alertRuleResourcesDeleteDeserialize(\n result: PathUncheckedResponse,\n): Promise<void> {\n const expectedStatuses = [\"200\", \"204\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n error.details = errorResponseDeserializer(result.body);\n throw error;\n }\n\n return;\n}\n\n/** Delete a AlertRuleResource */\nexport async function alertRuleResourcesDelete(\n context: Client,\n resourceGroupName: string,\n watcherName: string,\n alertRuleResourceName: string,\n options: AlertRuleResourcesDeleteOptionalParams = { requestOptions: {} },\n): Promise<void> {\n const result = await _alertRuleResourcesDeleteSend(\n context,\n resourceGroupName,\n watcherName,\n alertRuleResourceName,\n options,\n );\n return _alertRuleResourcesDeleteDeserialize(result);\n}\n\nexport function _alertRuleResourcesCreateOrUpdateSend(\n context: Client,\n resourceGroupName: string,\n watcherName: string,\n alertRuleResourceName: string,\n resource: AlertRuleResource,\n options: AlertRuleResourcesCreateOrUpdateOptionalParams = {\n requestOptions: {},\n },\n): StreamableMethod {\n return context\n .path(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DatabaseWatcher/watchers/{watcherName}/alertRuleResources/{alertRuleResourceName}\",\n context.subscriptionId,\n resourceGroupName,\n watcherName,\n alertRuleResourceName,\n )\n .put({\n ...operationOptionsToRequestParameters(options),\n contentType: \"application/json\",\n headers: {\n accept: \"application/json\",\n ...options.requestOptions?.headers,\n },\n queryParameters: { \"api-version\": context.apiVersion },\n body: alertRuleResourceSerializer(resource),\n });\n}\n\nexport async function _alertRuleResourcesCreateOrUpdateDeserialize(\n result: PathUncheckedResponse,\n): Promise<AlertRuleResource> {\n const expectedStatuses = [\"200\", \"201\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n error.details = errorResponseDeserializer(result.body);\n throw error;\n }\n\n return alertRuleResourceDeserializer(result.body);\n}\n\n/** Create a AlertRuleResource */\nexport async function alertRuleResourcesCreateOrUpdate(\n context: Client,\n resourceGroupName: string,\n watcherName: string,\n alertRuleResourceName: string,\n resource: AlertRuleResource,\n options: AlertRuleResourcesCreateOrUpdateOptionalParams = {\n requestOptions: {},\n },\n): Promise<AlertRuleResource> {\n const result = await _alertRuleResourcesCreateOrUpdateSend(\n context,\n resourceGroupName,\n watcherName,\n alertRuleResourceName,\n resource,\n options,\n );\n return _alertRuleResourcesCreateOrUpdateDeserialize(result);\n}\n\nexport function _alertRuleResourcesGetSend(\n context: Client,\n resourceGroupName: string,\n watcherName: string,\n alertRuleResourceName: string,\n options: AlertRuleResourcesGetOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n return context\n .path(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DatabaseWatcher/watchers/{watcherName}/alertRuleResources/{alertRuleResourceName}\",\n context.subscriptionId,\n resourceGroupName,\n watcherName,\n alertRuleResourceName,\n )\n .get({\n ...operationOptionsToRequestParameters(options),\n headers: {\n accept: \"application/json\",\n ...options.requestOptions?.headers,\n },\n queryParameters: { \"api-version\": context.apiVersion },\n });\n}\n\nexport async function _alertRuleResourcesGetDeserialize(\n result: PathUncheckedResponse,\n): Promise<AlertRuleResource> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n error.details = errorResponseDeserializer(result.body);\n throw error;\n }\n\n return alertRuleResourceDeserializer(result.body);\n}\n\n/** Get a AlertRuleResource */\nexport async function alertRuleResourcesGet(\n context: Client,\n resourceGroupName: string,\n watcherName: string,\n alertRuleResourceName: string,\n options: AlertRuleResourcesGetOptionalParams = { requestOptions: {} },\n): Promise<AlertRuleResource> {\n const result = await _alertRuleResourcesGetSend(\n context,\n resourceGroupName,\n watcherName,\n alertRuleResourceName,\n options,\n );\n return _alertRuleResourcesGetDeserialize(result);\n}\n"]}
@@ -0,0 +1,17 @@
1
+ import { Client, ClientOptions } from "@azure-rest/core-client";
2
+ import { TokenCredential } from "@azure/core-auth";
3
+ export interface DatabaseWatcherContext extends Client {
4
+ /** The API version to use for this operation. */
5
+ /** Known values of {@link KnownVersions} that the service accepts. */
6
+ apiVersion: string;
7
+ /** The ID of the target subscription. The value must be an UUID. */
8
+ subscriptionId: string;
9
+ }
10
+ /** Optional parameters for the client. */
11
+ export interface DatabaseWatcherClientOptionalParams extends ClientOptions {
12
+ /** The API version to use for this operation. */
13
+ /** Known values of {@link KnownVersions} that the service accepts. */
14
+ apiVersion?: string;
15
+ }
16
+ export declare function createDatabaseWatcher(credential: TokenCredential, subscriptionId: string, options?: DatabaseWatcherClientOptionalParams): DatabaseWatcherContext;
17
+ //# sourceMappingURL=databaseWatcherContext.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"databaseWatcherContext.d.ts","sourceRoot":"","sources":["../../../src/api/databaseWatcherContext.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,MAAM,EAAE,aAAa,EAAa,MAAM,yBAAyB,CAAC;AAC3E,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAEnD,MAAM,WAAW,sBAAuB,SAAQ,MAAM;IACpD,iDAAiD;IACjD,sEAAsE;IACtE,UAAU,EAAE,MAAM,CAAC;IACnB,oEAAoE;IACpE,cAAc,EAAE,MAAM,CAAC;CACxB;AAED,0CAA0C;AAC1C,MAAM,WAAW,mCAAoC,SAAQ,aAAa;IACxE,iDAAiD;IACjD,sEAAsE;IACtE,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,wBAAgB,qBAAqB,CACnC,UAAU,EAAE,eAAe,EAC3B,cAAc,EAAE,MAAM,EACtB,OAAO,GAAE,mCAAwC,GAChD,sBAAsB,CAsCxB"}
@@ -0,0 +1,35 @@
1
+ // Copyright (c) Microsoft Corporation.
2
+ // Licensed under the MIT License.
3
+ import { __rest } from "tslib";
4
+ import { logger } from "../logger.js";
5
+ import { getClient } from "@azure-rest/core-client";
6
+ export function createDatabaseWatcher(credential, subscriptionId, options = {}) {
7
+ var _a, _b, _c, _d, _e, _f, _g, _h;
8
+ const endpointUrl = (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUrl) !== null && _b !== void 0 ? _b : "https://management.azure.com";
9
+ const prefixFromOptions = (_c = options === null || options === void 0 ? void 0 : options.userAgentOptions) === null || _c === void 0 ? void 0 : _c.userAgentPrefix;
10
+ const userAgentInfo = `azsdk-js-arm-databasewatcher/1.0.0-beta.1`;
11
+ const userAgentPrefix = prefixFromOptions
12
+ ? `${prefixFromOptions} azsdk-js-api ${userAgentInfo}`
13
+ : `azsdk-js-api ${userAgentInfo}`;
14
+ const _j = Object.assign(Object.assign({}, options), { userAgentOptions: { userAgentPrefix }, loggingOptions: { logger: (_e = (_d = options.loggingOptions) === null || _d === void 0 ? void 0 : _d.logger) !== null && _e !== void 0 ? _e : logger.info }, credentials: {
15
+ scopes: (_g = (_f = options.credentials) === null || _f === void 0 ? void 0 : _f.scopes) !== null && _g !== void 0 ? _g : [`${endpointUrl}/.default`],
16
+ } }), { apiVersion: _ } = _j, updatedOptions = __rest(_j, ["apiVersion"]);
17
+ const clientContext = getClient(endpointUrl, credential, updatedOptions);
18
+ clientContext.pipeline.removePolicy({ name: "ApiVersionPolicy" });
19
+ const apiVersion = (_h = options.apiVersion) !== null && _h !== void 0 ? _h : "2025-01-02";
20
+ clientContext.pipeline.addPolicy({
21
+ name: "ClientApiVersionPolicy",
22
+ sendRequest: (req, next) => {
23
+ // Use the apiVersion defined in request url directly
24
+ // Append one if there is no apiVersion and we have one at client options
25
+ const url = new URL(req.url);
26
+ if (!url.searchParams.get("api-version")) {
27
+ req.url = `${req.url}${Array.from(url.searchParams.keys()).length > 0 ? "&" : "?"}api-version=${apiVersion}`;
28
+ }
29
+ return next(req);
30
+ },
31
+ });
32
+ return Object.assign(Object.assign({}, clientContext), { apiVersion,
33
+ subscriptionId });
34
+ }
35
+ //# sourceMappingURL=databaseWatcherContext.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"databaseWatcherContext.js","sourceRoot":"","sources":["../../../src/api/databaseWatcherContext.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;;AAElC,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAEtC,OAAO,EAAyB,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAkB3E,MAAM,UAAU,qBAAqB,CACnC,UAA2B,EAC3B,cAAsB,EACtB,UAA+C,EAAE;;IAEjD,MAAM,WAAW,GAAG,MAAA,MAAA,OAAO,CAAC,QAAQ,mCAAI,OAAO,CAAC,OAAO,mCAAI,8BAA8B,CAAC;IAC1F,MAAM,iBAAiB,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,gBAAgB,0CAAE,eAAe,CAAC;IACrE,MAAM,aAAa,GAAG,2CAA2C,CAAC;IAClE,MAAM,eAAe,GAAG,iBAAiB;QACvC,CAAC,CAAC,GAAG,iBAAiB,iBAAiB,aAAa,EAAE;QACtD,CAAC,CAAC,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KACF,CAAC,CAAC;IACH,OAAO,gCACF,aAAa,KAChB,UAAU;QACV,cAAc,GACW,CAAC;AAC9B,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { logger } from \"../logger.js\";\nimport { KnownVersions } from \"../models/models.js\";\nimport { Client, ClientOptions, getClient } from \"@azure-rest/core-client\";\nimport { TokenCredential } from \"@azure/core-auth\";\n\nexport interface DatabaseWatcherContext extends Client {\n /** The API version to use for this operation. */\n /** Known values of {@link KnownVersions} that the service accepts. */\n apiVersion: string;\n /** The ID of the target subscription. The value must be an UUID. */\n subscriptionId: string;\n}\n\n/** Optional parameters for the client. */\nexport interface DatabaseWatcherClientOptionalParams extends ClientOptions {\n /** The API version to use for this operation. */\n /** Known values of {@link KnownVersions} that the service accepts. */\n apiVersion?: string;\n}\n\nexport function createDatabaseWatcher(\n credential: TokenCredential,\n subscriptionId: string,\n options: DatabaseWatcherClientOptionalParams = {},\n): DatabaseWatcherContext {\n const endpointUrl = options.endpoint ?? options.baseUrl ?? \"https://management.azure.com\";\n const prefixFromOptions = options?.userAgentOptions?.userAgentPrefix;\n const userAgentInfo = `azsdk-js-arm-databasewatcher/1.0.0-beta.1`;\n const userAgentPrefix = prefixFromOptions\n ? `${prefixFromOptions} azsdk-js-api ${userAgentInfo}`\n : `azsdk-js-api ${userAgentInfo}`;\n const { apiVersion: _, ...updatedOptions } = {\n ...options,\n userAgentOptions: { userAgentPrefix },\n loggingOptions: { logger: options.loggingOptions?.logger ?? logger.info },\n credentials: {\n scopes: options.credentials?.scopes ?? [`${endpointUrl}/.default`],\n },\n };\n const clientContext = getClient(endpointUrl, credential, updatedOptions);\n clientContext.pipeline.removePolicy({ name: \"ApiVersionPolicy\" });\n const apiVersion = options.apiVersion ?? \"2025-01-02\";\n clientContext.pipeline.addPolicy({\n name: \"ClientApiVersionPolicy\",\n sendRequest: (req, next) => {\n // Use the apiVersion defined in request url directly\n // Append one if there is no apiVersion and we have one at client options\n const url = new URL(req.url);\n if (!url.searchParams.get(\"api-version\")) {\n req.url = `${req.url}${\n Array.from(url.searchParams.keys()).length > 0 ? \"&\" : \"?\"\n }api-version=${apiVersion}`;\n }\n\n return next(req);\n },\n });\n return {\n ...clientContext,\n apiVersion,\n subscriptionId,\n } as DatabaseWatcherContext;\n}\n"]}
@@ -0,0 +1,18 @@
1
+ import { DatabaseWatcherContext as Client, HealthValidationsGetOptionalParams, HealthValidationsListByParentOptionalParams, HealthValidationsStartValidationOptionalParams } from "../index.js";
2
+ import { HealthValidation, _HealthValidationListResult } from "../../models/models.js";
3
+ import { PagedAsyncIterableIterator } from "../../static-helpers/pagingHelpers.js";
4
+ import { StreamableMethod, PathUncheckedResponse } from "@azure-rest/core-client";
5
+ import { PollerLike, OperationState } from "@azure/core-lro";
6
+ export declare function _healthValidationsStartValidationSend(context: Client, resourceGroupName: string, watcherName: string, healthValidationName: string, options?: HealthValidationsStartValidationOptionalParams): StreamableMethod;
7
+ export declare function _healthValidationsStartValidationDeserialize(result: PathUncheckedResponse): Promise<HealthValidation>;
8
+ /** Starts health validation for a watcher. */
9
+ export declare function healthValidationsStartValidation(context: Client, resourceGroupName: string, watcherName: string, healthValidationName: string, options?: HealthValidationsStartValidationOptionalParams): PollerLike<OperationState<HealthValidation>, HealthValidation>;
10
+ export declare function _healthValidationsListByParentSend(context: Client, resourceGroupName: string, watcherName: string, options?: HealthValidationsListByParentOptionalParams): StreamableMethod;
11
+ export declare function _healthValidationsListByParentDeserialize(result: PathUncheckedResponse): Promise<_HealthValidationListResult>;
12
+ /** List HealthValidation resources by Watcher */
13
+ export declare function healthValidationsListByParent(context: Client, resourceGroupName: string, watcherName: string, options?: HealthValidationsListByParentOptionalParams): PagedAsyncIterableIterator<HealthValidation>;
14
+ export declare function _healthValidationsGetSend(context: Client, resourceGroupName: string, watcherName: string, healthValidationName: string, options?: HealthValidationsGetOptionalParams): StreamableMethod;
15
+ export declare function _healthValidationsGetDeserialize(result: PathUncheckedResponse): Promise<HealthValidation>;
16
+ /** Get a HealthValidation */
17
+ export declare function healthValidationsGet(context: Client, resourceGroupName: string, watcherName: string, healthValidationName: string, options?: HealthValidationsGetOptionalParams): Promise<HealthValidation>;
18
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/api/healthValidations/index.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,sBAAsB,IAAI,MAAM,EAChC,kCAAkC,EAClC,2CAA2C,EAC3C,8CAA8C,EAC/C,MAAM,aAAa,CAAC;AACrB,OAAO,EAEL,gBAAgB,EAEhB,2BAA2B,EAE5B,MAAM,wBAAwB,CAAC;AAChC,OAAO,EACL,0BAA0B,EAE3B,MAAM,uCAAuC,CAAC;AAE/C,OAAO,EACL,gBAAgB,EAChB,qBAAqB,EAGtB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAE7D,wBAAgB,qCAAqC,CACnD,OAAO,EAAE,MAAM,EACf,iBAAiB,EAAE,MAAM,EACzB,WAAW,EAAE,MAAM,EACnB,oBAAoB,EAAE,MAAM,EAC5B,OAAO,GAAE,8CAER,GACA,gBAAgB,CAiBlB;AAED,wBAAsB,4CAA4C,CAChE,MAAM,EAAE,qBAAqB,GAC5B,OAAO,CAAC,gBAAgB,CAAC,CAS3B;AAED,8CAA8C;AAC9C,wBAAgB,gCAAgC,CAC9C,OAAO,EAAE,MAAM,EACf,iBAAiB,EAAE,MAAM,EACzB,WAAW,EAAE,MAAM,EACnB,oBAAoB,EAAE,MAAM,EAC5B,OAAO,GAAE,8CAER,GACA,UAAU,CAAC,cAAc,CAAC,gBAAgB,CAAC,EAAE,gBAAgB,CAAC,CAmBhE;AAED,wBAAgB,kCAAkC,CAChD,OAAO,EAAE,MAAM,EACf,iBAAiB,EAAE,MAAM,EACzB,WAAW,EAAE,MAAM,EACnB,OAAO,GAAE,2CAAoE,GAC5E,gBAAgB,CAgBlB;AAED,wBAAsB,yCAAyC,CAC7D,MAAM,EAAE,qBAAqB,GAC5B,OAAO,CAAC,2BAA2B,CAAC,CAStC;AAED,iDAAiD;AACjD,wBAAgB,6BAA6B,CAC3C,OAAO,EAAE,MAAM,EACf,iBAAiB,EAAE,MAAM,EACzB,WAAW,EAAE,MAAM,EACnB,OAAO,GAAE,2CAAoE,GAC5E,0BAA0B,CAAC,gBAAgB,CAAC,CAQ9C;AAED,wBAAgB,yBAAyB,CACvC,OAAO,EAAE,MAAM,EACf,iBAAiB,EAAE,MAAM,EACzB,WAAW,EAAE,MAAM,EACnB,oBAAoB,EAAE,MAAM,EAC5B,OAAO,GAAE,kCAA2D,GACnE,gBAAgB,CAiBlB;AAED,wBAAsB,gCAAgC,CACpD,MAAM,EAAE,qBAAqB,GAC5B,OAAO,CAAC,gBAAgB,CAAC,CAS3B;AAED,6BAA6B;AAC7B,wBAAsB,oBAAoB,CACxC,OAAO,EAAE,MAAM,EACf,iBAAiB,EAAE,MAAM,EACzB,WAAW,EAAE,MAAM,EACnB,oBAAoB,EAAE,MAAM,EAC5B,OAAO,GAAE,kCAA2D,GACnE,OAAO,CAAC,gBAAgB,CAAC,CAS3B"}
@@ -0,0 +1,74 @@
1
+ // Copyright (c) Microsoft Corporation.
2
+ // Licensed under the MIT License.
3
+ import { errorResponseDeserializer, healthValidationDeserializer, _healthValidationListResultDeserializer, } from "../../models/models.js";
4
+ import { buildPagedAsyncIterator, } from "../../static-helpers/pagingHelpers.js";
5
+ import { getLongRunningPoller } from "../../static-helpers/pollingHelpers.js";
6
+ import { createRestError, operationOptionsToRequestParameters, } from "@azure-rest/core-client";
7
+ export function _healthValidationsStartValidationSend(context, resourceGroupName, watcherName, healthValidationName, options = {
8
+ requestOptions: {},
9
+ }) {
10
+ var _a;
11
+ return context
12
+ .path("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DatabaseWatcher/watchers/{watcherName}/healthValidations/{healthValidationName}/startValidation", context.subscriptionId, resourceGroupName, watcherName, healthValidationName)
13
+ .post(Object.assign(Object.assign({}, operationOptionsToRequestParameters(options)), { headers: Object.assign({ accept: "application/json" }, (_a = options.requestOptions) === null || _a === void 0 ? void 0 : _a.headers), queryParameters: { "api-version": context.apiVersion } }));
14
+ }
15
+ export async function _healthValidationsStartValidationDeserialize(result) {
16
+ const expectedStatuses = ["202", "200"];
17
+ if (!expectedStatuses.includes(result.status)) {
18
+ const error = createRestError(result);
19
+ error.details = errorResponseDeserializer(result.body);
20
+ throw error;
21
+ }
22
+ return healthValidationDeserializer(result.body);
23
+ }
24
+ /** Starts health validation for a watcher. */
25
+ export function healthValidationsStartValidation(context, resourceGroupName, watcherName, healthValidationName, options = {
26
+ requestOptions: {},
27
+ }) {
28
+ return getLongRunningPoller(context, _healthValidationsStartValidationDeserialize, ["202", "200"], {
29
+ updateIntervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
30
+ abortSignal: options === null || options === void 0 ? void 0 : options.abortSignal,
31
+ getInitialResponse: () => _healthValidationsStartValidationSend(context, resourceGroupName, watcherName, healthValidationName, options),
32
+ resourceLocationConfig: "location",
33
+ });
34
+ }
35
+ export function _healthValidationsListByParentSend(context, resourceGroupName, watcherName, options = { requestOptions: {} }) {
36
+ var _a;
37
+ return context
38
+ .path("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DatabaseWatcher/watchers/{watcherName}/healthValidations", context.subscriptionId, resourceGroupName, watcherName)
39
+ .get(Object.assign(Object.assign({}, operationOptionsToRequestParameters(options)), { headers: Object.assign({ accept: "application/json" }, (_a = options.requestOptions) === null || _a === void 0 ? void 0 : _a.headers), queryParameters: { "api-version": context.apiVersion } }));
40
+ }
41
+ export async function _healthValidationsListByParentDeserialize(result) {
42
+ const expectedStatuses = ["200"];
43
+ if (!expectedStatuses.includes(result.status)) {
44
+ const error = createRestError(result);
45
+ error.details = errorResponseDeserializer(result.body);
46
+ throw error;
47
+ }
48
+ return _healthValidationListResultDeserializer(result.body);
49
+ }
50
+ /** List HealthValidation resources by Watcher */
51
+ export function healthValidationsListByParent(context, resourceGroupName, watcherName, options = { requestOptions: {} }) {
52
+ return buildPagedAsyncIterator(context, () => _healthValidationsListByParentSend(context, resourceGroupName, watcherName, options), _healthValidationsListByParentDeserialize, ["200"], { itemName: "value", nextLinkName: "nextLink" });
53
+ }
54
+ export function _healthValidationsGetSend(context, resourceGroupName, watcherName, healthValidationName, options = { requestOptions: {} }) {
55
+ var _a;
56
+ return context
57
+ .path("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DatabaseWatcher/watchers/{watcherName}/healthValidations/{healthValidationName}", context.subscriptionId, resourceGroupName, watcherName, healthValidationName)
58
+ .get(Object.assign(Object.assign({}, operationOptionsToRequestParameters(options)), { headers: Object.assign({ accept: "application/json" }, (_a = options.requestOptions) === null || _a === void 0 ? void 0 : _a.headers), queryParameters: { "api-version": context.apiVersion } }));
59
+ }
60
+ export async function _healthValidationsGetDeserialize(result) {
61
+ const expectedStatuses = ["200"];
62
+ if (!expectedStatuses.includes(result.status)) {
63
+ const error = createRestError(result);
64
+ error.details = errorResponseDeserializer(result.body);
65
+ throw error;
66
+ }
67
+ return healthValidationDeserializer(result.body);
68
+ }
69
+ /** Get a HealthValidation */
70
+ export async function healthValidationsGet(context, resourceGroupName, watcherName, healthValidationName, options = { requestOptions: {} }) {
71
+ const result = await _healthValidationsGetSend(context, resourceGroupName, watcherName, healthValidationName, options);
72
+ return _healthValidationsGetDeserialize(result);
73
+ }
74
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/api/healthValidations/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAQlC,OAAO,EACL,yBAAyB,EAEzB,4BAA4B,EAE5B,uCAAuC,GACxC,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAEL,uBAA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yB,EACzB,WAAmB,EACnB,oBAA4B,EAC5B,UAA8C,EAAE,cAAc,EAAE,EAAE,EAAE;IAEpE,MAAM,MAAM,GAAG,MAAM,yBAAyB,CAC5C,OAAO,EACP,iBAAiB,EACjB,WAAW,EACX,oBAAoB,EACpB,OAAO,CACR,CAAC;IACF,OAAO,gCAAgC,CAAC,MAAM,CAAC,CAAC;AAClD,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport {\n DatabaseWatcherContext as Client,\n HealthValidationsGetOptionalParams,\n HealthValidationsListByParentOptionalParams,\n HealthValidationsStartValidationOptionalParams,\n} from \"../index.js\";\nimport {\n errorResponseDeserializer,\n HealthValidation,\n healthValidationDeserializer,\n _HealthValidationListResult,\n _healthValidationListResultDeserializer,\n} from \"../../models/models.js\";\nimport {\n PagedAsyncIterableIterator,\n buildPagedAsyncIterator,\n} from \"../../static-helpers/pagingHelpers.js\";\nimport { getLongRunningPoller } from \"../../static-helpers/pollingHelpers.js\";\nimport {\n StreamableMethod,\n PathUncheckedResponse,\n createRestError,\n operationOptionsToRequestParameters,\n} from \"@azure-rest/core-client\";\nimport { PollerLike, OperationState } from \"@azure/core-lro\";\n\nexport function _healthValidationsStartValidationSend(\n context: Client,\n resourceGroupName: string,\n watcherName: string,\n healthValidationName: string,\n options: HealthValidationsStartValidationOptionalParams = {\n requestOptions: {},\n },\n): StreamableMethod {\n return context\n .path(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DatabaseWatcher/watchers/{watcherName}/healthValidations/{healthValidationName}/startValidation\",\n context.subscriptionId,\n resourceGroupName,\n watcherName,\n healthValidationName,\n )\n .post({\n ...operationOptionsToRequestParameters(options),\n headers: {\n accept: \"application/json\",\n ...options.requestOptions?.headers,\n },\n queryParameters: { \"api-version\": context.apiVersion },\n });\n}\n\nexport async function _healthValidationsStartValidationDeserialize(\n result: PathUncheckedResponse,\n): Promise<HealthValidation> {\n const expectedStatuses = [\"202\", \"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n error.details = errorResponseDeserializer(result.body);\n throw error;\n }\n\n return healthValidationDeserializer(result.body);\n}\n\n/** Starts health validation for a watcher. */\nexport function healthValidationsStartValidation(\n context: Client,\n resourceGroupName: string,\n watcherName: string,\n healthValidationName: string,\n options: HealthValidationsStartValidationOptionalParams = {\n requestOptions: {},\n },\n): PollerLike<OperationState<HealthValidation>, HealthValidation> {\n return getLongRunningPoller(\n context,\n _healthValidationsStartValidationDeserialize,\n [\"202\", \"200\"],\n {\n updateIntervalInMs: options?.updateIntervalInMs,\n abortSignal: options?.abortSignal,\n getInitialResponse: () =>\n _healthValidationsStartValidationSend(\n context,\n resourceGroupName,\n watcherName,\n healthValidationName,\n options,\n ),\n resourceLocationConfig: \"location\",\n },\n ) as PollerLike<OperationState<HealthValidation>, HealthValidation>;\n}\n\nexport function _healthValidationsListByParentSend(\n context: Client,\n resourceGroupName: string,\n watcherName: string,\n options: HealthValidationsListByParentOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n return context\n .path(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DatabaseWatcher/watchers/{watcherName}/healthValidations\",\n context.subscriptionId,\n resourceGroupName,\n watcherName,\n )\n .get({\n ...operationOptionsToRequestParameters(options),\n headers: {\n accept: \"application/json\",\n ...options.requestOptions?.headers,\n },\n queryParameters: { \"api-version\": context.apiVersion },\n });\n}\n\nexport async function _healthValidationsListByParentDeserialize(\n result: PathUncheckedResponse,\n): Promise<_HealthValidationListResult> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n error.details = errorResponseDeserializer(result.body);\n throw error;\n }\n\n return _healthValidationListResultDeserializer(result.body);\n}\n\n/** List HealthValidation resources by Watcher */\nexport function healthValidationsListByParent(\n context: Client,\n resourceGroupName: string,\n watcherName: string,\n options: HealthValidationsListByParentOptionalParams = { requestOptions: {} },\n): PagedAsyncIterableIterator<HealthValidation> {\n return buildPagedAsyncIterator(\n context,\n () => _healthValidationsListByParentSend(context, resourceGroupName, watcherName, options),\n _healthValidationsListByParentDeserialize,\n [\"200\"],\n { itemName: \"value\", nextLinkName: \"nextLink\" },\n );\n}\n\nexport function _healthValidationsGetSend(\n context: Client,\n resourceGroupName: string,\n watcherName: string,\n healthValidationName: string,\n options: HealthValidationsGetOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n return context\n .path(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DatabaseWatcher/watchers/{watcherName}/healthValidations/{healthValidationName}\",\n context.subscriptionId,\n resourceGroupName,\n watcherName,\n healthValidationName,\n )\n .get({\n ...operationOptionsToRequestParameters(options),\n headers: {\n accept: \"application/json\",\n ...options.requestOptions?.headers,\n },\n queryParameters: { \"api-version\": context.apiVersion },\n });\n}\n\nexport async function _healthValidationsGetDeserialize(\n result: PathUncheckedResponse,\n): Promise<HealthValidation> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n error.details = errorResponseDeserializer(result.body);\n throw error;\n }\n\n return healthValidationDeserializer(result.body);\n}\n\n/** Get a HealthValidation */\nexport async function healthValidationsGet(\n context: Client,\n resourceGroupName: string,\n watcherName: string,\n healthValidationName: string,\n options: HealthValidationsGetOptionalParams = { requestOptions: {} },\n): Promise<HealthValidation> {\n const result = await _healthValidationsGetSend(\n context,\n resourceGroupName,\n watcherName,\n healthValidationName,\n options,\n );\n return _healthValidationsGetDeserialize(result);\n}\n"]}
@@ -0,0 +1,9 @@
1
+ export { createDatabaseWatcher, DatabaseWatcherContext, DatabaseWatcherClientOptionalParams, } from "./databaseWatcherContext.js";
2
+ export { SharedPrivateLinkResourcesListByWatcherOptionalParams, SharedPrivateLinkResourcesDeleteOptionalParams, SharedPrivateLinkResourcesCreateOptionalParams, SharedPrivateLinkResourcesGetOptionalParams, TargetsListByWatcherOptionalParams, TargetsDeleteOptionalParams, TargetsCreateOrUpdateOptionalParams, TargetsGetOptionalParams, HealthValidationsStartValidationOptionalParams, HealthValidationsListByParentOptionalParams, HealthValidationsGetOptionalParams, AlertRuleResourcesListByParentOptionalParams, AlertRuleResourcesDeleteOptionalParams, AlertRuleResourcesCreateOrUpdateOptionalParams, AlertRuleResourcesGetOptionalParams, WatchersStopOptionalParams, WatchersStartOptionalParams, WatchersListBySubscriptionOptionalParams, WatchersListByResourceGroupOptionalParams, WatchersDeleteOptionalParams, WatchersUpdateOptionalParams, WatchersCreateOrUpdateOptionalParams, WatchersGetOptionalParams, OperationsListOptionalParams, } from "./options.js";
3
+ export { alertRuleResourcesListByParent, alertRuleResourcesDelete, alertRuleResourcesCreateOrUpdate, alertRuleResourcesGet, } from "./alertRuleResources/index.js";
4
+ export { healthValidationsStartValidation, healthValidationsListByParent, healthValidationsGet, } from "./healthValidations/index.js";
5
+ export { operationsList } from "./operations/index.js";
6
+ export { sharedPrivateLinkResourcesListByWatcher, sharedPrivateLinkResourcesDelete, sharedPrivateLinkResourcesCreate, sharedPrivateLinkResourcesGet, } from "./sharedPrivateLinkResources/index.js";
7
+ export { targetsListByWatcher, targetsDelete, targetsCreateOrUpdate, targetsGet, } from "./targets/index.js";
8
+ export { watchersStop, watchersStart, watchersListBySubscription, watchersListByResourceGroup, watchersDelete, watchersUpdate, watchersCreateOrUpdate, watchersGet, } from "./watchers/index.js";
9
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/api/index.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,qBAAqB,EACrB,sBAAsB,EACtB,mCAAmC,GACpC,MAAM,6BAA6B,CAAC;AACrC,OAAO,EACL,qDAAqD,EACrD,8CAA8C,EAC9C,8CAA8C,EAC9C,2CAA2C,EAC3C,kCAAkC,EAClC,2BAA2B,EAC3B,mCAAmC,EACnC,wBAAwB,EACxB,8CAA8C,EAC9C,2CAA2C,EAC3C,kCAAkC,EAClC,4CAA4C,EAC5C,sCAAsC,EACtC,8CAA8C,EAC9C,mCAAmC,EACnC,0BAA0B,EAC1B,2BAA2B,EAC3B,wCAAwC,EACxC,yCAAyC,EACzC,4BAA4B,EAC5B,4BAA4B,EAC5B,oCAAoC,EACpC,yBAAyB,EACzB,4BAA4B,GAC7B,MAAM,cAAc,CAAC;AACtB,OAAO,EACL,8BAA8B,EAC9B,wBAAwB,EACxB,gCAAgC,EAChC,qBAAqB,GACtB,MAAM,+BAA+B,CAAC;AACvC,OAAO,EACL,gCAAgC,EAChC,6BAA6B,EAC7B,oBAAoB,GACrB,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AACvD,OAAO,EACL,uCAAuC,EACvC,gCAAgC,EAChC,gCAAgC,EAChC,6BAA6B,GAC9B,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EACL,oBAAoB,EACpB,aAAa,EACb,qBAAqB,EACrB,UAAU,GACX,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EACL,YAAY,EACZ,aAAa,EACb,0BAA0B,EAC1B,2BAA2B,EAC3B,cAAc,EACd,cAAc,EACd,sBAAsB,EACtB,WAAW,GACZ,MAAM,qBAAqB,CAAC"}
@@ -0,0 +1,10 @@
1
+ // Copyright (c) Microsoft Corporation.
2
+ // Licensed under the MIT License.
3
+ export { createDatabaseWatcher, } from "./databaseWatcherContext.js";
4
+ export { alertRuleResourcesListByParent, alertRuleResourcesDelete, alertRuleResourcesCreateOrUpdate, alertRuleResourcesGet, } from "./alertRuleResources/index.js";
5
+ export { healthValidationsStartValidation, healthValidationsListByParent, healthValidationsGet, } from "./healthValidations/index.js";
6
+ export { operationsList } from "./operations/index.js";
7
+ export { sharedPrivateLinkResourcesListByWatcher, sharedPrivateLinkResourcesDelete, sharedPrivateLinkResourcesCreate, sharedPrivateLinkResourcesGet, } from "./sharedPrivateLinkResources/index.js";
8
+ export { targetsListByWatcher, targetsDelete, targetsCreateOrUpdate, targetsGet, } from "./targets/index.js";
9
+ export { watchersStop, watchersStart, watchersListBySubscription, watchersListByResourceGroup, watchersDelete, watchersUpdate, watchersCreateOrUpdate, watchersGet, } from "./watchers/index.js";
10
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/api/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EACL,qBAAqB,GAGtB,MAAM,6BAA6B,CAAC;AA2BrC,OAAO,EACL,8BAA8B,EAC9B,wBAAwB,EACxB,gCAAgC,EAChC,qBAAqB,GACtB,MAAM,+BAA+B,CAAC;AACvC,OAAO,EACL,gCAAgC,EAChC,6BAA6B,EAC7B,oBAAoB,GACrB,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AACvD,OAAO,EACL,uCAAuC,EACvC,gCAAgC,EAChC,gCAAgC,EAChC,6BAA6B,GAC9B,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EACL,oBAAoB,EACpB,aAAa,EACb,qBAAqB,EACrB,UAAU,GACX,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EACL,YAAY,EACZ,aAAa,EACb,0BAA0B,EAC1B,2BAA2B,EAC3B,cAAc,EACd,cAAc,EACd,sBAAsB,EACtB,WAAW,GACZ,MAAM,qBAAqB,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nexport {\n createDatabaseWatcher,\n DatabaseWatcherContext,\n DatabaseWatcherClientOptionalParams,\n} from \"./databaseWatcherContext.js\";\nexport {\n SharedPrivateLinkResourcesListByWatcherOptionalParams,\n SharedPrivateLinkResourcesDeleteOptionalParams,\n SharedPrivateLinkResourcesCreateOptionalParams,\n SharedPrivateLinkResourcesGetOptionalParams,\n TargetsListByWatcherOptionalParams,\n TargetsDeleteOptionalParams,\n TargetsCreateOrUpdateOptionalParams,\n TargetsGetOptionalParams,\n HealthValidationsStartValidationOptionalParams,\n HealthValidationsListByParentOptionalParams,\n HealthValidationsGetOptionalParams,\n AlertRuleResourcesListByParentOptionalParams,\n AlertRuleResourcesDeleteOptionalParams,\n AlertRuleResourcesCreateOrUpdateOptionalParams,\n AlertRuleResourcesGetOptionalParams,\n WatchersStopOptionalParams,\n WatchersStartOptionalParams,\n WatchersListBySubscriptionOptionalParams,\n WatchersListByResourceGroupOptionalParams,\n WatchersDeleteOptionalParams,\n WatchersUpdateOptionalParams,\n WatchersCreateOrUpdateOptionalParams,\n WatchersGetOptionalParams,\n OperationsListOptionalParams,\n} from \"./options.js\";\nexport {\n alertRuleResourcesListByParent,\n alertRuleResourcesDelete,\n alertRuleResourcesCreateOrUpdate,\n alertRuleResourcesGet,\n} from \"./alertRuleResources/index.js\";\nexport {\n healthValidationsStartValidation,\n healthValidationsListByParent,\n healthValidationsGet,\n} from \"./healthValidations/index.js\";\nexport { operationsList } from \"./operations/index.js\";\nexport {\n sharedPrivateLinkResourcesListByWatcher,\n sharedPrivateLinkResourcesDelete,\n sharedPrivateLinkResourcesCreate,\n sharedPrivateLinkResourcesGet,\n} from \"./sharedPrivateLinkResources/index.js\";\nexport {\n targetsListByWatcher,\n targetsDelete,\n targetsCreateOrUpdate,\n targetsGet,\n} from \"./targets/index.js\";\nexport {\n watchersStop,\n watchersStart,\n watchersListBySubscription,\n watchersListByResourceGroup,\n watchersDelete,\n watchersUpdate,\n watchersCreateOrUpdate,\n watchersGet,\n} from \"./watchers/index.js\";\n"]}
@@ -0,0 +1,9 @@
1
+ import { DatabaseWatcherContext as Client, OperationsListOptionalParams } from "../index.js";
2
+ import { _OperationListResult, Operation } from "../../models/models.js";
3
+ import { PagedAsyncIterableIterator } from "../../static-helpers/pagingHelpers.js";
4
+ import { StreamableMethod, PathUncheckedResponse } from "@azure-rest/core-client";
5
+ export declare function _operationsListSend(context: Client, options?: OperationsListOptionalParams): StreamableMethod;
6
+ export declare function _operationsListDeserialize(result: PathUncheckedResponse): Promise<_OperationListResult>;
7
+ /** List the operations for the provider */
8
+ export declare function operationsList(context: Client, options?: OperationsListOptionalParams): PagedAsyncIterableIterator<Operation>;
9
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/api/operations/index.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,sBAAsB,IAAI,MAAM,EAAE,4BAA4B,EAAE,MAAM,aAAa,CAAC;AAC7F,OAAO,EAEL,oBAAoB,EAEpB,SAAS,EACV,MAAM,wBAAwB,CAAC;AAChC,OAAO,EACL,0BAA0B,EAE3B,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EACL,gBAAgB,EAChB,qBAAqB,EAGtB,MAAM,yBAAyB,CAAC;AAEjC,wBAAgB,mBAAmB,CACjC,OAAO,EAAE,MAAM,EACf,OAAO,GAAE,4BAAqD,GAC7D,gBAAgB,CASlB;AAED,wBAAsB,0BAA0B,CAC9C,MAAM,EAAE,qBAAqB,GAC5B,OAAO,CAAC,oBAAoB,CAAC,CAS/B;AAED,2CAA2C;AAC3C,wBAAgB,cAAc,CAC5B,OAAO,EAAE,MAAM,EACf,OAAO,GAAE,4BAAqD,GAC7D,0BAA0B,CAAC,SAAS,CAAC,CAQvC"}
@@ -0,0 +1,23 @@
1
+ // Copyright (c) Microsoft Corporation.
2
+ // Licensed under the MIT License.
3
+ import { errorResponseDeserializer, _operationListResultDeserializer, } from "../../models/models.js";
4
+ import { buildPagedAsyncIterator, } from "../../static-helpers/pagingHelpers.js";
5
+ import { createRestError, operationOptionsToRequestParameters, } from "@azure-rest/core-client";
6
+ export function _operationsListSend(context, options = { requestOptions: {} }) {
7
+ var _a;
8
+ return context.path("/providers/Microsoft.DatabaseWatcher/operations").get(Object.assign(Object.assign({}, operationOptionsToRequestParameters(options)), { headers: Object.assign({ accept: "application/json" }, (_a = options.requestOptions) === null || _a === void 0 ? void 0 : _a.headers), queryParameters: { "api-version": context.apiVersion } }));
9
+ }
10
+ export async function _operationsListDeserialize(result) {
11
+ const expectedStatuses = ["200"];
12
+ if (!expectedStatuses.includes(result.status)) {
13
+ const error = createRestError(result);
14
+ error.details = errorResponseDeserializer(result.body);
15
+ throw error;
16
+ }
17
+ return _operationListResultDeserializer(result.body);
18
+ }
19
+ /** List the operations for the provider */
20
+ export function operationsList(context, options = { requestOptions: {} }) {
21
+ return buildPagedAsyncIterator(context, () => _operationsListSend(context, options), _operationsListDeserialize, ["200"], { itemName: "value", nextLinkName: "nextLink" });
22
+ }
23
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/api/operations/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAGlC,OAAO,EACL,yBAAyB,EAEzB,gCAAgC,GAEjC,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAEL,uBAAuB,GACxB,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EAGL,eAAe,EACf,mCAAmC,GACpC,MAAM,yBAAyB,CAAC;AAEjC,MAAM,UAAU,mBAAmB,CACjC,OAAe,EACf,UAAwC,EAAE,cAAc,EAAE,EAAE,EAAE;;IAE9D,OAAO,OAAO,CAAC,IAAI,CAAC,iDAAiD,CAAC,CAAC,GAAG,iCACrE,mCAAmC,CAAC,OAAO,CAAC,KAC/C,OAAO,kBACL,MAAM,EAAE,kBAAkB,IACvB,MAAA,OAAO,CAAC,cAAc,0CAAE,OAAO,GAEpC,eAAe,EAAE,EAAE,aAAa,EAAE,OAAO,CAAC,UAAU,EAAE,IACtD,CAAC;AACL,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,0BAA0B,CAC9C,MAA6B;IAE7B,MAAM,gBAAgB,GAAG,CAAC,KAAK,CAAC,CAAC;IACjC,IAAI,CAAC,gBAAgB,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC;QAC9C,MAAM,KAAK,GAAG,eAAe,CAAC,MAAM,CAAC,CAAC;QACtC,KAAK,CAAC,OAAO,GAAG,yBAAyB,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;QACvD,MAAM,KAAK,CAAC;IACd,CAAC;IAED,OAAO,gCAAgC,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;AACvD,CAAC;AAED,2CAA2C;AAC3C,MAAM,UAAU,cAAc,CAC5B,OAAe,EACf,UAAwC,EAAE,cAAc,EAAE,EAAE,EAAE;IAE9D,OAAO,uBAAuB,CAC5B,OAAO,EACP,GAAG,EAAE,CAAC,mBAAmB,CAAC,OAAO,EAAE,OAAO,CAAC,EAC3C,0BAA0B,EAC1B,CAAC,KAAK,CAAC,EACP,EAAE,QAAQ,EAAE,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,CAChD,CAAC;AACJ,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { DatabaseWatcherContext as Client, OperationsListOptionalParams } from \"../index.js\";\nimport {\n errorResponseDeserializer,\n _OperationListResult,\n _operationListResultDeserializer,\n Operation,\n} from \"../../models/models.js\";\nimport {\n PagedAsyncIterableIterator,\n buildPagedAsyncIterator,\n} from \"../../static-helpers/pagingHelpers.js\";\nimport {\n StreamableMethod,\n PathUncheckedResponse,\n createRestError,\n operationOptionsToRequestParameters,\n} from \"@azure-rest/core-client\";\n\nexport function _operationsListSend(\n context: Client,\n options: OperationsListOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n return context.path(\"/providers/Microsoft.DatabaseWatcher/operations\").get({\n ...operationOptionsToRequestParameters(options),\n headers: {\n accept: \"application/json\",\n ...options.requestOptions?.headers,\n },\n queryParameters: { \"api-version\": context.apiVersion },\n });\n}\n\nexport async function _operationsListDeserialize(\n result: PathUncheckedResponse,\n): Promise<_OperationListResult> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n error.details = errorResponseDeserializer(result.body);\n throw error;\n }\n\n return _operationListResultDeserializer(result.body);\n}\n\n/** List the operations for the provider */\nexport function operationsList(\n context: Client,\n options: OperationsListOptionalParams = { requestOptions: {} },\n): PagedAsyncIterableIterator<Operation> {\n return buildPagedAsyncIterator(\n context,\n () => _operationsListSend(context, options),\n _operationsListDeserialize,\n [\"200\"],\n { itemName: \"value\", nextLinkName: \"nextLink\" },\n );\n}\n"]}