@azure/arm-dynatrace 2.0.0 → 3.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 (535) hide show
  1. package/LICENSE +3 -3
  2. package/README.md +30 -24
  3. package/dist/browser/api/creationSupported/index.d.ts +3 -0
  4. package/dist/browser/api/creationSupported/index.js +4 -0
  5. package/dist/browser/api/creationSupported/index.js.map +1 -0
  6. package/dist/browser/api/creationSupported/operations.d.ts +13 -0
  7. package/dist/browser/api/creationSupported/operations.js +64 -0
  8. package/dist/browser/api/creationSupported/operations.js.map +1 -0
  9. package/dist/browser/api/creationSupported/options.d.ts +8 -0
  10. package/dist/browser/api/creationSupported/options.js +4 -0
  11. package/dist/browser/api/creationSupported/options.js.map +1 -0
  12. package/dist/browser/api/dynatraceObservabilityContext.d.ts +20 -0
  13. package/dist/browser/api/dynatraceObservabilityContext.js +25 -0
  14. package/dist/browser/api/dynatraceObservabilityContext.js.map +1 -0
  15. package/dist/browser/api/index.d.ts +3 -0
  16. package/dist/browser/api/index.js +4 -0
  17. package/dist/browser/api/index.js.map +1 -0
  18. package/dist/browser/api/monitoredSubscriptions/index.d.ts +3 -0
  19. package/dist/browser/api/monitoredSubscriptions/index.js +4 -0
  20. package/dist/browser/api/monitoredSubscriptions/index.js.map +1 -0
  21. package/dist/browser/api/monitoredSubscriptions/operations.d.ts +27 -0
  22. package/dist/browser/api/monitoredSubscriptions/operations.js +173 -0
  23. package/dist/browser/api/monitoredSubscriptions/operations.js.map +1 -0
  24. package/dist/browser/api/monitoredSubscriptions/options.d.ts +26 -0
  25. package/dist/browser/api/monitoredSubscriptions/options.js +4 -0
  26. package/dist/browser/api/monitoredSubscriptions/options.js.map +1 -0
  27. package/dist/browser/api/monitors/index.d.ts +3 -0
  28. package/dist/browser/api/monitors/index.js +4 -0
  29. package/dist/browser/api/monitors/index.js.map +1 -0
  30. package/dist/browser/api/monitors/operations.d.ts +75 -0
  31. package/dist/browser/api/monitors/operations.js +535 -0
  32. package/dist/browser/api/monitors/operations.js.map +1 -0
  33. package/dist/browser/api/monitors/options.d.ts +66 -0
  34. package/dist/browser/api/monitors/options.js +4 -0
  35. package/dist/browser/api/monitors/options.js.map +1 -0
  36. package/dist/browser/api/operations/index.d.ts +3 -0
  37. package/dist/browser/api/operations/index.js +4 -0
  38. package/dist/browser/api/operations/index.js.map +1 -0
  39. package/dist/browser/api/operations/operations.d.ts +10 -0
  40. package/dist/browser/api/operations/operations.js +33 -0
  41. package/dist/browser/api/operations/operations.js.map +1 -0
  42. package/dist/browser/api/operations/options.d.ts +5 -0
  43. package/dist/browser/api/operations/options.js +4 -0
  44. package/dist/browser/api/operations/options.js.map +1 -0
  45. package/dist/browser/api/singleSignOn/index.d.ts +3 -0
  46. package/dist/browser/api/singleSignOn/index.js +4 -0
  47. package/dist/browser/api/singleSignOn/index.js.map +1 -0
  48. package/dist/browser/api/singleSignOn/operations.d.ts +19 -0
  49. package/dist/browser/api/singleSignOn/operations.js +106 -0
  50. package/dist/browser/api/singleSignOn/operations.js.map +1 -0
  51. package/dist/browser/api/singleSignOn/options.d.ts +13 -0
  52. package/dist/browser/api/singleSignOn/options.js +4 -0
  53. package/dist/browser/api/singleSignOn/options.js.map +1 -0
  54. package/dist/browser/api/tagRules/index.d.ts +3 -0
  55. package/dist/browser/api/tagRules/index.js +4 -0
  56. package/dist/browser/api/tagRules/index.js.map +1 -0
  57. package/dist/browser/api/tagRules/operations.d.ts +23 -0
  58. package/dist/browser/api/tagRules/operations.js +139 -0
  59. package/dist/browser/api/tagRules/operations.js.map +1 -0
  60. package/dist/browser/api/tagRules/options.d.ts +18 -0
  61. package/dist/browser/api/tagRules/options.js +4 -0
  62. package/dist/browser/api/tagRules/options.js.map +1 -0
  63. package/dist/browser/classic/creationSupported/index.d.ts +12 -0
  64. package/dist/browser/classic/creationSupported/index.js +15 -0
  65. package/dist/browser/classic/creationSupported/index.js.map +1 -0
  66. package/dist/browser/classic/index.d.ts +7 -0
  67. package/dist/browser/classic/index.js +4 -0
  68. package/dist/browser/classic/index.js.map +1 -0
  69. package/dist/browser/classic/monitoredSubscriptions/index.d.ts +33 -0
  70. package/dist/browser/classic/monitoredSubscriptions/index.js +43 -0
  71. package/dist/browser/classic/monitoredSubscriptions/index.js.map +1 -0
  72. package/dist/browser/classic/monitors/index.d.ts +57 -0
  73. package/dist/browser/classic/monitors/index.js +55 -0
  74. package/dist/browser/classic/monitors/index.js.map +1 -0
  75. package/dist/browser/classic/operations/index.d.ts +11 -0
  76. package/dist/browser/classic/operations/index.js +14 -0
  77. package/dist/browser/classic/operations/index.js.map +1 -0
  78. package/dist/browser/classic/singleSignOn/index.d.ts +21 -0
  79. package/dist/browser/classic/singleSignOn/index.js +25 -0
  80. package/dist/browser/classic/singleSignOn/index.js.map +1 -0
  81. package/dist/browser/classic/tagRules/index.d.ts +27 -0
  82. package/dist/browser/classic/tagRules/index.js +34 -0
  83. package/dist/browser/classic/tagRules/index.js.map +1 -0
  84. package/dist/browser/dynatraceObservability.d.ts +29 -0
  85. package/dist/browser/dynatraceObservability.js +44 -0
  86. package/dist/browser/dynatraceObservability.js.map +1 -0
  87. package/dist/browser/index.d.ts +22 -0
  88. package/dist/browser/index.js +9 -0
  89. package/dist/browser/index.js.map +1 -0
  90. package/dist/browser/logger.d.ts +2 -0
  91. package/dist/browser/logger.js +5 -0
  92. package/dist/browser/logger.js.map +1 -0
  93. package/dist/browser/models/index.d.ts +3 -0
  94. package/dist/browser/models/index.js +4 -0
  95. package/dist/browser/models/index.js.map +1 -0
  96. package/dist/browser/models/models.d.ts +1218 -0
  97. package/dist/browser/models/models.js +1132 -0
  98. package/dist/browser/models/models.js.map +1 -0
  99. package/dist/browser/package.json +3 -0
  100. package/dist/browser/restorePollerHelpers.d.ts +21 -0
  101. package/dist/browser/restorePollerHelpers.js +111 -0
  102. package/dist/browser/restorePollerHelpers.js.map +1 -0
  103. package/dist/browser/static-helpers/cloudSettingHelpers.d.ts +22 -0
  104. package/dist/browser/static-helpers/cloudSettingHelpers.js +38 -0
  105. package/dist/browser/static-helpers/cloudSettingHelpers.js.map +1 -0
  106. package/dist/browser/static-helpers/pagingHelpers.d.ts +74 -0
  107. package/dist/browser/static-helpers/pagingHelpers.js +143 -0
  108. package/dist/browser/static-helpers/pagingHelpers.js.map +1 -0
  109. package/dist/browser/static-helpers/pollingHelpers.d.ts +34 -0
  110. package/dist/browser/static-helpers/pollingHelpers.js +95 -0
  111. package/dist/browser/static-helpers/pollingHelpers.js.map +1 -0
  112. package/dist/browser/static-helpers/simplePollerHelpers.d.ts +73 -0
  113. package/dist/browser/static-helpers/simplePollerHelpers.js +44 -0
  114. package/dist/browser/static-helpers/simplePollerHelpers.js.map +1 -0
  115. package/dist/browser/static-helpers/urlTemplate.d.ts +5 -0
  116. package/dist/browser/static-helpers/urlTemplate.js +200 -0
  117. package/dist/browser/static-helpers/urlTemplate.js.map +1 -0
  118. package/dist/commonjs/api/creationSupported/index.d.ts +3 -0
  119. package/dist/commonjs/api/creationSupported/index.js +30 -0
  120. package/dist/commonjs/api/creationSupported/index.js.map +7 -0
  121. package/dist/commonjs/api/creationSupported/operations.d.ts +13 -0
  122. package/dist/commonjs/api/creationSupported/operations.js +104 -0
  123. package/dist/commonjs/api/creationSupported/operations.js.map +7 -0
  124. package/dist/commonjs/api/creationSupported/options.d.ts +8 -0
  125. package/dist/commonjs/api/creationSupported/options.js +16 -0
  126. package/dist/commonjs/api/creationSupported/options.js.map +7 -0
  127. package/dist/commonjs/api/dynatraceObservabilityContext.d.ts +20 -0
  128. package/dist/commonjs/api/dynatraceObservabilityContext.js +47 -0
  129. package/dist/commonjs/api/dynatraceObservabilityContext.js.map +7 -0
  130. package/dist/commonjs/api/index.d.ts +3 -0
  131. package/dist/commonjs/api/index.js +28 -0
  132. package/dist/commonjs/api/index.js.map +7 -0
  133. package/dist/commonjs/api/monitoredSubscriptions/index.d.ts +3 -0
  134. package/dist/commonjs/api/monitoredSubscriptions/index.js +36 -0
  135. package/dist/commonjs/api/monitoredSubscriptions/index.js.map +7 -0
  136. package/dist/commonjs/api/monitoredSubscriptions/operations.d.ts +27 -0
  137. package/dist/commonjs/api/monitoredSubscriptions/operations.js +246 -0
  138. package/dist/commonjs/api/monitoredSubscriptions/operations.js.map +7 -0
  139. package/dist/commonjs/api/monitoredSubscriptions/options.d.ts +26 -0
  140. package/dist/commonjs/api/monitoredSubscriptions/options.js +16 -0
  141. package/dist/commonjs/api/monitoredSubscriptions/options.js.map +7 -0
  142. package/dist/commonjs/api/monitors/index.d.ts +3 -0
  143. package/dist/commonjs/api/monitors/index.js +60 -0
  144. package/dist/commonjs/api/monitors/index.js.map +7 -0
  145. package/dist/commonjs/api/monitors/operations.d.ts +75 -0
  146. package/dist/commonjs/api/monitors/operations.js +752 -0
  147. package/dist/commonjs/api/monitors/operations.js.map +7 -0
  148. package/dist/commonjs/api/monitors/options.d.ts +66 -0
  149. package/dist/commonjs/api/monitors/options.js +16 -0
  150. package/dist/commonjs/api/monitors/options.js.map +7 -0
  151. package/dist/commonjs/api/operations/index.d.ts +3 -0
  152. package/dist/commonjs/api/operations/index.js +28 -0
  153. package/dist/commonjs/api/operations/index.js.map +7 -0
  154. package/dist/commonjs/api/operations/operations.d.ts +10 -0
  155. package/dist/commonjs/api/operations/operations.js +70 -0
  156. package/dist/commonjs/api/operations/operations.js.map +7 -0
  157. package/dist/commonjs/api/operations/options.d.ts +5 -0
  158. package/dist/commonjs/api/operations/options.js +16 -0
  159. package/dist/commonjs/api/operations/options.js.map +7 -0
  160. package/dist/commonjs/api/singleSignOn/index.d.ts +3 -0
  161. package/dist/commonjs/api/singleSignOn/index.js +32 -0
  162. package/dist/commonjs/api/singleSignOn/index.js.map +7 -0
  163. package/dist/commonjs/api/singleSignOn/operations.d.ts +19 -0
  164. package/dist/commonjs/api/singleSignOn/operations.js +174 -0
  165. package/dist/commonjs/api/singleSignOn/operations.js.map +7 -0
  166. package/dist/commonjs/api/singleSignOn/options.d.ts +13 -0
  167. package/dist/commonjs/api/singleSignOn/options.js +16 -0
  168. package/dist/commonjs/api/singleSignOn/options.js.map +7 -0
  169. package/dist/commonjs/api/tagRules/index.d.ts +3 -0
  170. package/dist/commonjs/api/tagRules/index.js +34 -0
  171. package/dist/commonjs/api/tagRules/index.js.map +7 -0
  172. package/dist/commonjs/api/tagRules/operations.d.ts +23 -0
  173. package/dist/commonjs/api/tagRules/operations.js +203 -0
  174. package/dist/commonjs/api/tagRules/operations.js.map +7 -0
  175. package/dist/commonjs/api/tagRules/options.d.ts +18 -0
  176. package/dist/commonjs/api/tagRules/options.js +16 -0
  177. package/dist/commonjs/api/tagRules/options.js.map +7 -0
  178. package/dist/commonjs/classic/creationSupported/index.d.ts +12 -0
  179. package/dist/commonjs/classic/creationSupported/index.js +39 -0
  180. package/dist/commonjs/classic/creationSupported/index.js.map +7 -0
  181. package/dist/commonjs/classic/index.d.ts +7 -0
  182. package/dist/commonjs/classic/index.js +16 -0
  183. package/dist/commonjs/classic/index.js.map +7 -0
  184. package/dist/commonjs/classic/monitoredSubscriptions/index.d.ts +33 -0
  185. package/dist/commonjs/classic/monitoredSubscriptions/index.js +67 -0
  186. package/dist/commonjs/classic/monitoredSubscriptions/index.js.map +7 -0
  187. package/dist/commonjs/classic/monitors/index.d.ts +57 -0
  188. package/dist/commonjs/classic/monitors/index.js +79 -0
  189. package/dist/commonjs/classic/monitors/index.js.map +7 -0
  190. package/dist/commonjs/classic/operations/index.d.ts +11 -0
  191. package/dist/commonjs/classic/operations/index.js +38 -0
  192. package/dist/commonjs/classic/operations/index.js.map +7 -0
  193. package/dist/commonjs/classic/singleSignOn/index.d.ts +21 -0
  194. package/dist/commonjs/classic/singleSignOn/index.js +63 -0
  195. package/dist/commonjs/classic/singleSignOn/index.js.map +7 -0
  196. package/dist/commonjs/classic/tagRules/index.d.ts +27 -0
  197. package/dist/commonjs/classic/tagRules/index.js +72 -0
  198. package/dist/commonjs/classic/tagRules/index.js.map +7 -0
  199. package/dist/commonjs/dynatraceObservability.d.ts +29 -0
  200. package/dist/commonjs/dynatraceObservability.js +66 -0
  201. package/dist/commonjs/dynatraceObservability.js.map +7 -0
  202. package/dist/commonjs/index.d.ts +22 -0
  203. package/dist/commonjs/index.js +94 -0
  204. package/dist/commonjs/index.js.map +7 -0
  205. package/dist/commonjs/logger.d.ts +2 -0
  206. package/dist/commonjs/logger.js +29 -0
  207. package/dist/commonjs/logger.js.map +7 -0
  208. package/dist/commonjs/models/index.d.ts +3 -0
  209. package/dist/commonjs/models/index.js +80 -0
  210. package/dist/commonjs/models/index.js.map +7 -0
  211. package/dist/commonjs/models/models.d.ts +1218 -0
  212. package/dist/commonjs/models/models.js +1216 -0
  213. package/dist/commonjs/models/models.js.map +7 -0
  214. package/dist/commonjs/package.json +3 -0
  215. package/dist/commonjs/restorePollerHelpers.d.ts +21 -0
  216. package/dist/commonjs/restorePollerHelpers.js +124 -0
  217. package/dist/commonjs/restorePollerHelpers.js.map +7 -0
  218. package/dist/commonjs/static-helpers/cloudSettingHelpers.d.ts +22 -0
  219. package/dist/commonjs/static-helpers/cloudSettingHelpers.js +52 -0
  220. package/dist/commonjs/static-helpers/cloudSettingHelpers.js.map +7 -0
  221. package/dist/commonjs/static-helpers/pagingHelpers.d.ts +74 -0
  222. package/dist/commonjs/static-helpers/pagingHelpers.js +143 -0
  223. package/dist/commonjs/static-helpers/pagingHelpers.js.map +7 -0
  224. package/dist/commonjs/static-helpers/pollingHelpers.d.ts +34 -0
  225. package/dist/commonjs/static-helpers/pollingHelpers.js +101 -0
  226. package/dist/commonjs/static-helpers/pollingHelpers.js.map +7 -0
  227. package/dist/commonjs/static-helpers/simplePollerHelpers.d.ts +73 -0
  228. package/dist/commonjs/static-helpers/simplePollerHelpers.js +67 -0
  229. package/dist/commonjs/static-helpers/simplePollerHelpers.js.map +7 -0
  230. package/dist/commonjs/static-helpers/urlTemplate.d.ts +5 -0
  231. package/dist/commonjs/static-helpers/urlTemplate.js +197 -0
  232. package/dist/commonjs/static-helpers/urlTemplate.js.map +7 -0
  233. package/{types → dist/commonjs}/tsdoc-metadata.json +11 -11
  234. package/dist/esm/api/creationSupported/index.d.ts +3 -0
  235. package/dist/esm/api/creationSupported/index.js +4 -0
  236. package/dist/esm/api/creationSupported/index.js.map +1 -0
  237. package/dist/esm/api/creationSupported/operations.d.ts +13 -0
  238. package/dist/esm/api/creationSupported/operations.js +64 -0
  239. package/dist/esm/api/creationSupported/operations.js.map +1 -0
  240. package/dist/esm/api/creationSupported/options.d.ts +8 -0
  241. package/dist/esm/api/creationSupported/options.js +4 -0
  242. package/dist/esm/api/creationSupported/options.js.map +1 -0
  243. package/dist/esm/api/dynatraceObservabilityContext.d.ts +20 -0
  244. package/dist/esm/api/dynatraceObservabilityContext.js +25 -0
  245. package/dist/esm/api/dynatraceObservabilityContext.js.map +1 -0
  246. package/dist/esm/api/index.d.ts +3 -0
  247. package/dist/esm/api/index.js +4 -0
  248. package/dist/esm/api/index.js.map +1 -0
  249. package/dist/esm/api/monitoredSubscriptions/index.d.ts +3 -0
  250. package/dist/esm/api/monitoredSubscriptions/index.js +4 -0
  251. package/dist/esm/api/monitoredSubscriptions/index.js.map +1 -0
  252. package/dist/esm/api/monitoredSubscriptions/operations.d.ts +27 -0
  253. package/dist/esm/api/monitoredSubscriptions/operations.js +173 -0
  254. package/dist/esm/api/monitoredSubscriptions/operations.js.map +1 -0
  255. package/dist/esm/api/monitoredSubscriptions/options.d.ts +26 -0
  256. package/dist/esm/api/monitoredSubscriptions/options.js +4 -0
  257. package/dist/esm/api/monitoredSubscriptions/options.js.map +1 -0
  258. package/dist/esm/api/monitors/index.d.ts +3 -0
  259. package/dist/esm/api/monitors/index.js +4 -0
  260. package/dist/esm/api/monitors/index.js.map +1 -0
  261. package/dist/esm/api/monitors/operations.d.ts +75 -0
  262. package/dist/esm/api/monitors/operations.js +535 -0
  263. package/dist/esm/api/monitors/operations.js.map +1 -0
  264. package/dist/esm/api/monitors/options.d.ts +66 -0
  265. package/dist/esm/api/monitors/options.js +4 -0
  266. package/dist/esm/api/monitors/options.js.map +1 -0
  267. package/dist/esm/api/operations/index.d.ts +3 -0
  268. package/dist/esm/api/operations/index.js +4 -0
  269. package/dist/esm/api/operations/index.js.map +1 -0
  270. package/dist/esm/api/operations/operations.d.ts +10 -0
  271. package/dist/esm/api/operations/operations.js +33 -0
  272. package/dist/esm/api/operations/operations.js.map +1 -0
  273. package/dist/esm/api/operations/options.d.ts +5 -0
  274. package/dist/esm/api/operations/options.js +4 -0
  275. package/dist/esm/api/operations/options.js.map +1 -0
  276. package/dist/esm/api/singleSignOn/index.d.ts +3 -0
  277. package/dist/esm/api/singleSignOn/index.js +4 -0
  278. package/dist/esm/api/singleSignOn/index.js.map +1 -0
  279. package/dist/esm/api/singleSignOn/operations.d.ts +19 -0
  280. package/dist/esm/api/singleSignOn/operations.js +106 -0
  281. package/dist/esm/api/singleSignOn/operations.js.map +1 -0
  282. package/dist/esm/api/singleSignOn/options.d.ts +13 -0
  283. package/dist/esm/api/singleSignOn/options.js +4 -0
  284. package/dist/esm/api/singleSignOn/options.js.map +1 -0
  285. package/dist/esm/api/tagRules/index.d.ts +3 -0
  286. package/dist/esm/api/tagRules/index.js +4 -0
  287. package/dist/esm/api/tagRules/index.js.map +1 -0
  288. package/dist/esm/api/tagRules/operations.d.ts +23 -0
  289. package/dist/esm/api/tagRules/operations.js +139 -0
  290. package/dist/esm/api/tagRules/operations.js.map +1 -0
  291. package/dist/esm/api/tagRules/options.d.ts +18 -0
  292. package/dist/esm/api/tagRules/options.js +4 -0
  293. package/dist/esm/api/tagRules/options.js.map +1 -0
  294. package/dist/esm/classic/creationSupported/index.d.ts +12 -0
  295. package/dist/esm/classic/creationSupported/index.js +15 -0
  296. package/dist/esm/classic/creationSupported/index.js.map +1 -0
  297. package/dist/esm/classic/index.d.ts +7 -0
  298. package/dist/esm/classic/index.js +4 -0
  299. package/dist/esm/classic/index.js.map +1 -0
  300. package/dist/esm/classic/monitoredSubscriptions/index.d.ts +33 -0
  301. package/dist/esm/classic/monitoredSubscriptions/index.js +43 -0
  302. package/dist/esm/classic/monitoredSubscriptions/index.js.map +1 -0
  303. package/dist/esm/classic/monitors/index.d.ts +57 -0
  304. package/dist/esm/classic/monitors/index.js +55 -0
  305. package/dist/esm/classic/monitors/index.js.map +1 -0
  306. package/dist/esm/classic/operations/index.d.ts +11 -0
  307. package/dist/esm/classic/operations/index.js +14 -0
  308. package/dist/esm/classic/operations/index.js.map +1 -0
  309. package/dist/esm/classic/singleSignOn/index.d.ts +21 -0
  310. package/dist/esm/classic/singleSignOn/index.js +25 -0
  311. package/dist/esm/classic/singleSignOn/index.js.map +1 -0
  312. package/dist/esm/classic/tagRules/index.d.ts +27 -0
  313. package/dist/esm/classic/tagRules/index.js +34 -0
  314. package/dist/esm/classic/tagRules/index.js.map +1 -0
  315. package/dist/esm/dynatraceObservability.d.ts +29 -0
  316. package/dist/esm/dynatraceObservability.js +44 -0
  317. package/dist/esm/dynatraceObservability.js.map +1 -0
  318. package/dist/esm/index.d.ts +22 -0
  319. package/dist/esm/index.js +9 -0
  320. package/dist/esm/index.js.map +1 -0
  321. package/dist/esm/logger.d.ts +2 -0
  322. package/dist/esm/logger.js +5 -0
  323. package/dist/esm/logger.js.map +1 -0
  324. package/dist/esm/models/index.d.ts +3 -0
  325. package/dist/esm/models/index.js +4 -0
  326. package/dist/esm/models/index.js.map +1 -0
  327. package/dist/esm/models/models.d.ts +1218 -0
  328. package/dist/esm/models/models.js +1132 -0
  329. package/dist/esm/models/models.js.map +1 -0
  330. package/dist/esm/package.json +3 -0
  331. package/dist/esm/restorePollerHelpers.d.ts +21 -0
  332. package/dist/esm/restorePollerHelpers.js +111 -0
  333. package/dist/esm/restorePollerHelpers.js.map +1 -0
  334. package/dist/esm/static-helpers/cloudSettingHelpers.d.ts +22 -0
  335. package/dist/esm/static-helpers/cloudSettingHelpers.js +38 -0
  336. package/dist/esm/static-helpers/cloudSettingHelpers.js.map +1 -0
  337. package/dist/esm/static-helpers/pagingHelpers.d.ts +74 -0
  338. package/dist/esm/static-helpers/pagingHelpers.js +143 -0
  339. package/dist/esm/static-helpers/pagingHelpers.js.map +1 -0
  340. package/dist/esm/static-helpers/pollingHelpers.d.ts +34 -0
  341. package/dist/esm/static-helpers/pollingHelpers.js +95 -0
  342. package/dist/esm/static-helpers/pollingHelpers.js.map +1 -0
  343. package/dist/esm/static-helpers/simplePollerHelpers.d.ts +73 -0
  344. package/dist/esm/static-helpers/simplePollerHelpers.js +44 -0
  345. package/dist/esm/static-helpers/simplePollerHelpers.js.map +1 -0
  346. package/dist/esm/static-helpers/urlTemplate.d.ts +5 -0
  347. package/dist/esm/static-helpers/urlTemplate.js +200 -0
  348. package/dist/esm/static-helpers/urlTemplate.js.map +1 -0
  349. package/package.json +207 -92
  350. package/CHANGELOG.md +0 -44
  351. package/dist/index.js +0 -3880
  352. package/dist/index.js.map +0 -1
  353. package/dist/index.min.js +0 -1
  354. package/dist/index.min.js.map +0 -1
  355. package/dist-esm/samples-dev/monitorsCreateOrUpdateSample.d.ts +0 -2
  356. package/dist-esm/samples-dev/monitorsCreateOrUpdateSample.d.ts.map +0 -1
  357. package/dist-esm/samples-dev/monitorsCreateOrUpdateSample.js +0 -86
  358. package/dist-esm/samples-dev/monitorsCreateOrUpdateSample.js.map +0 -1
  359. package/dist-esm/samples-dev/monitorsDeleteSample.d.ts +0 -2
  360. package/dist-esm/samples-dev/monitorsDeleteSample.d.ts.map +0 -1
  361. package/dist-esm/samples-dev/monitorsDeleteSample.js +0 -58
  362. package/dist-esm/samples-dev/monitorsDeleteSample.js.map +0 -1
  363. package/dist-esm/samples-dev/monitorsGetMarketplaceSaaSResourceDetailsSample.d.ts +0 -2
  364. package/dist-esm/samples-dev/monitorsGetMarketplaceSaaSResourceDetailsSample.d.ts.map +0 -1
  365. package/dist-esm/samples-dev/monitorsGetMarketplaceSaaSResourceDetailsSample.js +0 -58
  366. package/dist-esm/samples-dev/monitorsGetMarketplaceSaaSResourceDetailsSample.js.map +0 -1
  367. package/dist-esm/samples-dev/monitorsGetMetricStatusSample.d.ts +0 -2
  368. package/dist-esm/samples-dev/monitorsGetMetricStatusSample.d.ts.map +0 -1
  369. package/dist-esm/samples-dev/monitorsGetMetricStatusSample.js +0 -56
  370. package/dist-esm/samples-dev/monitorsGetMetricStatusSample.js.map +0 -1
  371. package/dist-esm/samples-dev/monitorsGetSample.d.ts +0 -2
  372. package/dist-esm/samples-dev/monitorsGetSample.d.ts.map +0 -1
  373. package/dist-esm/samples-dev/monitorsGetSample.js +0 -58
  374. package/dist-esm/samples-dev/monitorsGetSample.js.map +0 -1
  375. package/dist-esm/samples-dev/monitorsGetSsoDetailsSample.d.ts +0 -2
  376. package/dist-esm/samples-dev/monitorsGetSsoDetailsSample.d.ts.map +0 -1
  377. package/dist-esm/samples-dev/monitorsGetSsoDetailsSample.js +0 -62
  378. package/dist-esm/samples-dev/monitorsGetSsoDetailsSample.js.map +0 -1
  379. package/dist-esm/samples-dev/monitorsGetVMHostPayloadSample.d.ts +0 -2
  380. package/dist-esm/samples-dev/monitorsGetVMHostPayloadSample.d.ts.map +0 -1
  381. package/dist-esm/samples-dev/monitorsGetVMHostPayloadSample.js +0 -58
  382. package/dist-esm/samples-dev/monitorsGetVMHostPayloadSample.js.map +0 -1
  383. package/dist-esm/samples-dev/monitorsListAppServicesSample.d.ts +0 -2
  384. package/dist-esm/samples-dev/monitorsListAppServicesSample.d.ts.map +0 -1
  385. package/dist-esm/samples-dev/monitorsListAppServicesSample.js +0 -100
  386. package/dist-esm/samples-dev/monitorsListAppServicesSample.js.map +0 -1
  387. package/dist-esm/samples-dev/monitorsListByResourceGroupSample.d.ts +0 -2
  388. package/dist-esm/samples-dev/monitorsListByResourceGroupSample.d.ts.map +0 -1
  389. package/dist-esm/samples-dev/monitorsListByResourceGroupSample.js +0 -98
  390. package/dist-esm/samples-dev/monitorsListByResourceGroupSample.js.map +0 -1
  391. package/dist-esm/samples-dev/monitorsListBySubscriptionIdSample.d.ts +0 -2
  392. package/dist-esm/samples-dev/monitorsListBySubscriptionIdSample.d.ts.map +0 -1
  393. package/dist-esm/samples-dev/monitorsListBySubscriptionIdSample.js +0 -96
  394. package/dist-esm/samples-dev/monitorsListBySubscriptionIdSample.js.map +0 -1
  395. package/dist-esm/samples-dev/monitorsListHostsSample.d.ts +0 -2
  396. package/dist-esm/samples-dev/monitorsListHostsSample.d.ts.map +0 -1
  397. package/dist-esm/samples-dev/monitorsListHostsSample.js +0 -100
  398. package/dist-esm/samples-dev/monitorsListHostsSample.js.map +0 -1
  399. package/dist-esm/samples-dev/monitorsListLinkableEnvironmentsSample.d.ts +0 -2
  400. package/dist-esm/samples-dev/monitorsListLinkableEnvironmentsSample.d.ts.map +0 -1
  401. package/dist-esm/samples-dev/monitorsListLinkableEnvironmentsSample.js +0 -110
  402. package/dist-esm/samples-dev/monitorsListLinkableEnvironmentsSample.js.map +0 -1
  403. package/dist-esm/samples-dev/monitorsListMonitoredResourcesSample.d.ts +0 -2
  404. package/dist-esm/samples-dev/monitorsListMonitoredResourcesSample.d.ts.map +0 -1
  405. package/dist-esm/samples-dev/monitorsListMonitoredResourcesSample.js +0 -100
  406. package/dist-esm/samples-dev/monitorsListMonitoredResourcesSample.js.map +0 -1
  407. package/dist-esm/samples-dev/monitorsUpdateSample.d.ts +0 -2
  408. package/dist-esm/samples-dev/monitorsUpdateSample.d.ts.map +0 -1
  409. package/dist-esm/samples-dev/monitorsUpdateSample.js +0 -60
  410. package/dist-esm/samples-dev/monitorsUpdateSample.js.map +0 -1
  411. package/dist-esm/samples-dev/operationsListSample.d.ts +0 -2
  412. package/dist-esm/samples-dev/operationsListSample.d.ts.map +0 -1
  413. package/dist-esm/samples-dev/operationsListSample.js +0 -96
  414. package/dist-esm/samples-dev/operationsListSample.js.map +0 -1
  415. package/dist-esm/samples-dev/singleSignOnCreateOrUpdateSample.d.ts +0 -2
  416. package/dist-esm/samples-dev/singleSignOnCreateOrUpdateSample.d.ts.map +0 -1
  417. package/dist-esm/samples-dev/singleSignOnCreateOrUpdateSample.js +0 -71
  418. package/dist-esm/samples-dev/singleSignOnCreateOrUpdateSample.js.map +0 -1
  419. package/dist-esm/samples-dev/singleSignOnGetSample.d.ts +0 -2
  420. package/dist-esm/samples-dev/singleSignOnGetSample.d.ts.map +0 -1
  421. package/dist-esm/samples-dev/singleSignOnGetSample.js +0 -60
  422. package/dist-esm/samples-dev/singleSignOnGetSample.js.map +0 -1
  423. package/dist-esm/samples-dev/singleSignOnListSample.d.ts +0 -2
  424. package/dist-esm/samples-dev/singleSignOnListSample.d.ts.map +0 -1
  425. package/dist-esm/samples-dev/singleSignOnListSample.js +0 -100
  426. package/dist-esm/samples-dev/singleSignOnListSample.js.map +0 -1
  427. package/dist-esm/samples-dev/tagRulesCreateOrUpdateSample.d.ts +0 -2
  428. package/dist-esm/samples-dev/tagRulesCreateOrUpdateSample.d.ts.map +0 -1
  429. package/dist-esm/samples-dev/tagRulesCreateOrUpdateSample.js +0 -79
  430. package/dist-esm/samples-dev/tagRulesCreateOrUpdateSample.js.map +0 -1
  431. package/dist-esm/samples-dev/tagRulesDeleteSample.d.ts +0 -2
  432. package/dist-esm/samples-dev/tagRulesDeleteSample.d.ts.map +0 -1
  433. package/dist-esm/samples-dev/tagRulesDeleteSample.js +0 -60
  434. package/dist-esm/samples-dev/tagRulesDeleteSample.js.map +0 -1
  435. package/dist-esm/samples-dev/tagRulesGetSample.d.ts +0 -2
  436. package/dist-esm/samples-dev/tagRulesGetSample.d.ts.map +0 -1
  437. package/dist-esm/samples-dev/tagRulesGetSample.js +0 -60
  438. package/dist-esm/samples-dev/tagRulesGetSample.js.map +0 -1
  439. package/dist-esm/samples-dev/tagRulesListSample.d.ts +0 -2
  440. package/dist-esm/samples-dev/tagRulesListSample.d.ts.map +0 -1
  441. package/dist-esm/samples-dev/tagRulesListSample.js +0 -100
  442. package/dist-esm/samples-dev/tagRulesListSample.js.map +0 -1
  443. package/dist-esm/src/dynatraceObservability.d.ts +0 -23
  444. package/dist-esm/src/dynatraceObservability.d.ts.map +0 -1
  445. package/dist-esm/src/dynatraceObservability.js +0 -103
  446. package/dist-esm/src/dynatraceObservability.js.map +0 -1
  447. package/dist-esm/src/index.d.ts +0 -6
  448. package/dist-esm/src/index.d.ts.map +0 -1
  449. package/dist-esm/src/index.js +0 -13
  450. package/dist-esm/src/index.js.map +0 -1
  451. package/dist-esm/src/lroImpl.d.ts +0 -11
  452. package/dist-esm/src/lroImpl.d.ts.map +0 -1
  453. package/dist-esm/src/lroImpl.js +0 -21
  454. package/dist-esm/src/lroImpl.js.map +0 -1
  455. package/dist-esm/src/models/index.d.ts +0 -1118
  456. package/dist-esm/src/models/index.d.ts.map +0 -1
  457. package/dist-esm/src/models/index.js +0 -226
  458. package/dist-esm/src/models/index.js.map +0 -1
  459. package/dist-esm/src/models/mappers.d.ts +0 -45
  460. package/dist-esm/src/models/mappers.d.ts.map +0 -1
  461. package/dist-esm/src/models/mappers.js +0 -1365
  462. package/dist-esm/src/models/mappers.js.map +0 -1
  463. package/dist-esm/src/models/parameters.d.ts +0 -19
  464. package/dist-esm/src/models/parameters.d.ts.map +0 -1
  465. package/dist-esm/src/models/parameters.js +0 -149
  466. package/dist-esm/src/models/parameters.js.map +0 -1
  467. package/dist-esm/src/operations/index.d.ts +0 -5
  468. package/dist-esm/src/operations/index.d.ts.map +0 -1
  469. package/dist-esm/src/operations/index.js +0 -12
  470. package/dist-esm/src/operations/index.js.map +0 -1
  471. package/dist-esm/src/operations/monitors.d.ts +0 -227
  472. package/dist-esm/src/operations/monitors.d.ts.map +0 -1
  473. package/dist-esm/src/operations/monitors.js +0 -1147
  474. package/dist-esm/src/operations/monitors.js.map +0 -1
  475. package/dist-esm/src/operations/operations.d.ts +0 -32
  476. package/dist-esm/src/operations/operations.d.ts.map +0 -1
  477. package/dist-esm/src/operations/operations.js +0 -138
  478. package/dist-esm/src/operations/operations.js.map +0 -1
  479. package/dist-esm/src/operations/singleSignOn.d.ts +0 -65
  480. package/dist-esm/src/operations/singleSignOn.d.ts.map +0 -1
  481. package/dist-esm/src/operations/singleSignOn.js +0 -288
  482. package/dist-esm/src/operations/singleSignOn.js.map +0 -1
  483. package/dist-esm/src/operations/tagRules.d.ts +0 -81
  484. package/dist-esm/src/operations/tagRules.d.ts.map +0 -1
  485. package/dist-esm/src/operations/tagRules.js +0 -363
  486. package/dist-esm/src/operations/tagRules.js.map +0 -1
  487. package/dist-esm/src/operationsInterfaces/index.d.ts +0 -5
  488. package/dist-esm/src/operationsInterfaces/index.d.ts.map +0 -1
  489. package/dist-esm/src/operationsInterfaces/index.js +0 -12
  490. package/dist-esm/src/operationsInterfaces/index.js.map +0 -1
  491. package/dist-esm/src/operationsInterfaces/monitors.d.ts +0 -120
  492. package/dist-esm/src/operationsInterfaces/monitors.d.ts.map +0 -1
  493. package/dist-esm/src/operationsInterfaces/monitors.js +0 -9
  494. package/dist-esm/src/operationsInterfaces/monitors.js.map +0 -1
  495. package/dist-esm/src/operationsInterfaces/operations.d.ts +0 -11
  496. package/dist-esm/src/operationsInterfaces/operations.d.ts.map +0 -1
  497. package/dist-esm/src/operationsInterfaces/operations.js +0 -9
  498. package/dist-esm/src/operationsInterfaces/operations.js.map +0 -1
  499. package/dist-esm/src/operationsInterfaces/singleSignOn.d.ts +0 -40
  500. package/dist-esm/src/operationsInterfaces/singleSignOn.d.ts.map +0 -1
  501. package/dist-esm/src/operationsInterfaces/singleSignOn.js +0 -9
  502. package/dist-esm/src/operationsInterfaces/singleSignOn.js.map +0 -1
  503. package/dist-esm/src/operationsInterfaces/tagRules.d.ts +0 -56
  504. package/dist-esm/src/operationsInterfaces/tagRules.d.ts.map +0 -1
  505. package/dist-esm/src/operationsInterfaces/tagRules.js +0 -9
  506. package/dist-esm/src/operationsInterfaces/tagRules.js.map +0 -1
  507. package/dist-esm/src/pagingHelper.d.ts +0 -13
  508. package/dist-esm/src/pagingHelper.d.ts.map +0 -1
  509. package/dist-esm/src/pagingHelper.js +0 -32
  510. package/dist-esm/src/pagingHelper.js.map +0 -1
  511. package/dist-esm/test/dynatrace_examples.spec.d.ts +0 -4
  512. package/dist-esm/test/dynatrace_examples.spec.d.ts.map +0 -1
  513. package/dist-esm/test/dynatrace_examples.spec.js +0 -172
  514. package/dist-esm/test/dynatrace_examples.spec.js.map +0 -1
  515. package/review/arm-dynatrace.api.md +0 -847
  516. package/rollup.config.js +0 -122
  517. package/src/dynatraceObservability.ts +0 -156
  518. package/src/index.ts +0 -13
  519. package/src/lroImpl.ts +0 -42
  520. package/src/models/index.ts +0 -1271
  521. package/src/models/mappers.ts +0 -1443
  522. package/src/models/parameters.ts +0 -179
  523. package/src/operations/index.ts +0 -12
  524. package/src/operations/monitors.ts +0 -1489
  525. package/src/operations/operations.ts +0 -149
  526. package/src/operations/singleSignOn.ts +0 -387
  527. package/src/operations/tagRules.ts +0 -494
  528. package/src/operationsInterfaces/index.ts +0 -12
  529. package/src/operationsInterfaces/monitors.ts +0 -228
  530. package/src/operationsInterfaces/operations.ts +0 -22
  531. package/src/operationsInterfaces/singleSignOn.ts +0 -82
  532. package/src/operationsInterfaces/tagRules.ts +0 -109
  533. package/src/pagingHelper.ts +0 -39
  534. package/tsconfig.json +0 -33
  535. package/types/arm-dynatrace.d.ts +0 -1513
package/dist/index.js DELETED
@@ -1,3880 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- var tslib = require('tslib');
6
- var coreClient = require('@azure/core-client');
7
- var coreRestPipeline = require('@azure/core-rest-pipeline');
8
- var coreLro = require('@azure/core-lro');
9
-
10
- function _interopNamespace(e) {
11
- if (e && e.__esModule) return e;
12
- var n = Object.create(null);
13
- if (e) {
14
- Object.keys(e).forEach(function (k) {
15
- if (k !== 'default') {
16
- var d = Object.getOwnPropertyDescriptor(e, k);
17
- Object.defineProperty(n, k, d.get ? d : {
18
- enumerable: true,
19
- get: function () { return e[k]; }
20
- });
21
- }
22
- });
23
- }
24
- n["default"] = e;
25
- return Object.freeze(n);
26
- }
27
-
28
- var coreClient__namespace = /*#__PURE__*/_interopNamespace(coreClient);
29
- var coreRestPipeline__namespace = /*#__PURE__*/_interopNamespace(coreRestPipeline);
30
-
31
- /*
32
- * Copyright (c) Microsoft Corporation.
33
- * Licensed under the MIT License.
34
- *
35
- * Code generated by Microsoft (R) AutoRest Code Generator.
36
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
37
- */
38
- const pageMap = new WeakMap();
39
- /**
40
- * Given the last `.value` produced by the `byPage` iterator,
41
- * returns a continuation token that can be used to begin paging from
42
- * that point later.
43
- * @param page An object from accessing `value` on the IteratorResult from a `byPage` iterator.
44
- * @returns The continuation token that can be passed into byPage() during future calls.
45
- */
46
- function getContinuationToken(page) {
47
- var _a;
48
- if (typeof page !== "object" || page === null) {
49
- return undefined;
50
- }
51
- return (_a = pageMap.get(page)) === null || _a === void 0 ? void 0 : _a.continuationToken;
52
- }
53
- function setContinuationToken(page, continuationToken) {
54
- var _a;
55
- if (typeof page !== "object" || page === null || !continuationToken) {
56
- return;
57
- }
58
- const pageInfo = (_a = pageMap.get(page)) !== null && _a !== void 0 ? _a : {};
59
- pageInfo.continuationToken = continuationToken;
60
- pageMap.set(page, pageInfo);
61
- }
62
-
63
- /*
64
- * Copyright (c) Microsoft Corporation.
65
- * Licensed under the MIT License.
66
- *
67
- * Code generated by Microsoft (R) AutoRest Code Generator.
68
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
69
- */
70
- /** Known values of {@link SendingMetricsStatus} that the service accepts. */
71
- exports.KnownSendingMetricsStatus = void 0;
72
- (function (KnownSendingMetricsStatus) {
73
- /** Enabled */
74
- KnownSendingMetricsStatus["Enabled"] = "Enabled";
75
- /** Disabled */
76
- KnownSendingMetricsStatus["Disabled"] = "Disabled";
77
- })(exports.KnownSendingMetricsStatus || (exports.KnownSendingMetricsStatus = {}));
78
- /** Known values of {@link SendingLogsStatus} that the service accepts. */
79
- exports.KnownSendingLogsStatus = void 0;
80
- (function (KnownSendingLogsStatus) {
81
- /** Enabled */
82
- KnownSendingLogsStatus["Enabled"] = "Enabled";
83
- /** Disabled */
84
- KnownSendingLogsStatus["Disabled"] = "Disabled";
85
- })(exports.KnownSendingLogsStatus || (exports.KnownSendingLogsStatus = {}));
86
- /** Known values of {@link MonitoringStatus} that the service accepts. */
87
- exports.KnownMonitoringStatus = void 0;
88
- (function (KnownMonitoringStatus) {
89
- /** Enabled */
90
- KnownMonitoringStatus["Enabled"] = "Enabled";
91
- /** Disabled */
92
- KnownMonitoringStatus["Disabled"] = "Disabled";
93
- })(exports.KnownMonitoringStatus || (exports.KnownMonitoringStatus = {}));
94
- /** Known values of {@link MarketplaceSubscriptionStatus} that the service accepts. */
95
- exports.KnownMarketplaceSubscriptionStatus = void 0;
96
- (function (KnownMarketplaceSubscriptionStatus) {
97
- /** Active */
98
- KnownMarketplaceSubscriptionStatus["Active"] = "Active";
99
- /** Suspended */
100
- KnownMarketplaceSubscriptionStatus["Suspended"] = "Suspended";
101
- })(exports.KnownMarketplaceSubscriptionStatus || (exports.KnownMarketplaceSubscriptionStatus = {}));
102
- /** Known values of {@link SingleSignOnStates} that the service accepts. */
103
- exports.KnownSingleSignOnStates = void 0;
104
- (function (KnownSingleSignOnStates) {
105
- /** Initial */
106
- KnownSingleSignOnStates["Initial"] = "Initial";
107
- /** Enable */
108
- KnownSingleSignOnStates["Enable"] = "Enable";
109
- /** Disable */
110
- KnownSingleSignOnStates["Disable"] = "Disable";
111
- /** Existing */
112
- KnownSingleSignOnStates["Existing"] = "Existing";
113
- })(exports.KnownSingleSignOnStates || (exports.KnownSingleSignOnStates = {}));
114
- /** Known values of {@link ProvisioningState} that the service accepts. */
115
- exports.KnownProvisioningState = void 0;
116
- (function (KnownProvisioningState) {
117
- /** Accepted */
118
- KnownProvisioningState["Accepted"] = "Accepted";
119
- /** Creating */
120
- KnownProvisioningState["Creating"] = "Creating";
121
- /** Updating */
122
- KnownProvisioningState["Updating"] = "Updating";
123
- /** Deleting */
124
- KnownProvisioningState["Deleting"] = "Deleting";
125
- /** Succeeded */
126
- KnownProvisioningState["Succeeded"] = "Succeeded";
127
- /** Failed */
128
- KnownProvisioningState["Failed"] = "Failed";
129
- /** Canceled */
130
- KnownProvisioningState["Canceled"] = "Canceled";
131
- /** Deleted */
132
- KnownProvisioningState["Deleted"] = "Deleted";
133
- /** NotSpecified */
134
- KnownProvisioningState["NotSpecified"] = "NotSpecified";
135
- })(exports.KnownProvisioningState || (exports.KnownProvisioningState = {}));
136
- /** Known values of {@link LiftrResourceCategories} that the service accepts. */
137
- exports.KnownLiftrResourceCategories = void 0;
138
- (function (KnownLiftrResourceCategories) {
139
- /** Unknown */
140
- KnownLiftrResourceCategories["Unknown"] = "Unknown";
141
- /** MonitorLogs */
142
- KnownLiftrResourceCategories["MonitorLogs"] = "MonitorLogs";
143
- })(exports.KnownLiftrResourceCategories || (exports.KnownLiftrResourceCategories = {}));
144
- /** Known values of {@link CreatedByType} that the service accepts. */
145
- exports.KnownCreatedByType = void 0;
146
- (function (KnownCreatedByType) {
147
- /** User */
148
- KnownCreatedByType["User"] = "User";
149
- /** Application */
150
- KnownCreatedByType["Application"] = "Application";
151
- /** ManagedIdentity */
152
- KnownCreatedByType["ManagedIdentity"] = "ManagedIdentity";
153
- /** Key */
154
- KnownCreatedByType["Key"] = "Key";
155
- })(exports.KnownCreatedByType || (exports.KnownCreatedByType = {}));
156
- /** Known values of {@link ManagedIdentityType} that the service accepts. */
157
- exports.KnownManagedIdentityType = void 0;
158
- (function (KnownManagedIdentityType) {
159
- /** SystemAssigned */
160
- KnownManagedIdentityType["SystemAssigned"] = "SystemAssigned";
161
- /** UserAssigned */
162
- KnownManagedIdentityType["UserAssigned"] = "UserAssigned";
163
- /** SystemAndUserAssigned */
164
- KnownManagedIdentityType["SystemAndUserAssigned"] = "SystemAndUserAssigned";
165
- })(exports.KnownManagedIdentityType || (exports.KnownManagedIdentityType = {}));
166
- /** Known values of {@link Origin} that the service accepts. */
167
- exports.KnownOrigin = void 0;
168
- (function (KnownOrigin) {
169
- /** User */
170
- KnownOrigin["User"] = "user";
171
- /** System */
172
- KnownOrigin["System"] = "system";
173
- /** UserSystem */
174
- KnownOrigin["UserSystem"] = "user,system";
175
- })(exports.KnownOrigin || (exports.KnownOrigin = {}));
176
- /** Known values of {@link ActionType} that the service accepts. */
177
- exports.KnownActionType = void 0;
178
- (function (KnownActionType) {
179
- /** Internal */
180
- KnownActionType["Internal"] = "Internal";
181
- })(exports.KnownActionType || (exports.KnownActionType = {}));
182
- /** Known values of {@link SendAadLogsStatus} that the service accepts. */
183
- exports.KnownSendAadLogsStatus = void 0;
184
- (function (KnownSendAadLogsStatus) {
185
- /** Enabled */
186
- KnownSendAadLogsStatus["Enabled"] = "Enabled";
187
- /** Disabled */
188
- KnownSendAadLogsStatus["Disabled"] = "Disabled";
189
- })(exports.KnownSendAadLogsStatus || (exports.KnownSendAadLogsStatus = {}));
190
- /** Known values of {@link SendSubscriptionLogsStatus} that the service accepts. */
191
- exports.KnownSendSubscriptionLogsStatus = void 0;
192
- (function (KnownSendSubscriptionLogsStatus) {
193
- /** Enabled */
194
- KnownSendSubscriptionLogsStatus["Enabled"] = "Enabled";
195
- /** Disabled */
196
- KnownSendSubscriptionLogsStatus["Disabled"] = "Disabled";
197
- })(exports.KnownSendSubscriptionLogsStatus || (exports.KnownSendSubscriptionLogsStatus = {}));
198
- /** Known values of {@link SendActivityLogsStatus} that the service accepts. */
199
- exports.KnownSendActivityLogsStatus = void 0;
200
- (function (KnownSendActivityLogsStatus) {
201
- /** Enabled */
202
- KnownSendActivityLogsStatus["Enabled"] = "Enabled";
203
- /** Disabled */
204
- KnownSendActivityLogsStatus["Disabled"] = "Disabled";
205
- })(exports.KnownSendActivityLogsStatus || (exports.KnownSendActivityLogsStatus = {}));
206
- /** Known values of {@link TagAction} that the service accepts. */
207
- exports.KnownTagAction = void 0;
208
- (function (KnownTagAction) {
209
- /** Include */
210
- KnownTagAction["Include"] = "Include";
211
- /** Exclude */
212
- KnownTagAction["Exclude"] = "Exclude";
213
- })(exports.KnownTagAction || (exports.KnownTagAction = {}));
214
- /** Known values of {@link MonitoringType} that the service accepts. */
215
- exports.KnownMonitoringType = void 0;
216
- (function (KnownMonitoringType) {
217
- /** CloudInfrastructure */
218
- KnownMonitoringType["CloudInfrastructure"] = "CLOUD_INFRASTRUCTURE";
219
- /** FullStack */
220
- KnownMonitoringType["FullStack"] = "FULL_STACK";
221
- })(exports.KnownMonitoringType || (exports.KnownMonitoringType = {}));
222
- /** Known values of {@link AutoUpdateSetting} that the service accepts. */
223
- exports.KnownAutoUpdateSetting = void 0;
224
- (function (KnownAutoUpdateSetting) {
225
- /** Enabled */
226
- KnownAutoUpdateSetting["Enabled"] = "ENABLED";
227
- /** Disabled */
228
- KnownAutoUpdateSetting["Disabled"] = "DISABLED";
229
- })(exports.KnownAutoUpdateSetting || (exports.KnownAutoUpdateSetting = {}));
230
- /** Known values of {@link UpdateStatus} that the service accepts. */
231
- exports.KnownUpdateStatus = void 0;
232
- (function (KnownUpdateStatus) {
233
- /** Incompatible */
234
- KnownUpdateStatus["Incompatible"] = "INCOMPATIBLE";
235
- /** Outdated */
236
- KnownUpdateStatus["Outdated"] = "OUTDATED";
237
- /** Scheduled */
238
- KnownUpdateStatus["Scheduled"] = "SCHEDULED";
239
- /** Suppressed */
240
- KnownUpdateStatus["Suppressed"] = "SUPPRESSED";
241
- /** Unknown */
242
- KnownUpdateStatus["Unknown"] = "UNKNOWN";
243
- /** UP2Date */
244
- KnownUpdateStatus["UP2Date"] = "UP2DATE";
245
- /** UpdateINProgress */
246
- KnownUpdateStatus["UpdateINProgress"] = "UPDATE_IN_PROGRESS";
247
- /** UpdatePending */
248
- KnownUpdateStatus["UpdatePending"] = "UPDATE_PENDING";
249
- /** UpdateProblem */
250
- KnownUpdateStatus["UpdateProblem"] = "UPDATE_PROBLEM";
251
- })(exports.KnownUpdateStatus || (exports.KnownUpdateStatus = {}));
252
- /** Known values of {@link AvailabilityState} that the service accepts. */
253
- exports.KnownAvailabilityState = void 0;
254
- (function (KnownAvailabilityState) {
255
- /** Crashed */
256
- KnownAvailabilityState["Crashed"] = "CRASHED";
257
- /** Lost */
258
- KnownAvailabilityState["Lost"] = "LOST";
259
- /** Monitored */
260
- KnownAvailabilityState["Monitored"] = "MONITORED";
261
- /** PREMonitored */
262
- KnownAvailabilityState["PREMonitored"] = "PRE_MONITORED";
263
- /** Shutdown */
264
- KnownAvailabilityState["Shutdown"] = "SHUTDOWN";
265
- /** UnexpectedShutdown */
266
- KnownAvailabilityState["UnexpectedShutdown"] = "UNEXPECTED_SHUTDOWN";
267
- /** Unknown */
268
- KnownAvailabilityState["Unknown"] = "UNKNOWN";
269
- /** Unmonitored */
270
- KnownAvailabilityState["Unmonitored"] = "UNMONITORED";
271
- })(exports.KnownAvailabilityState || (exports.KnownAvailabilityState = {}));
272
- /** Known values of {@link LogModule} that the service accepts. */
273
- exports.KnownLogModule = void 0;
274
- (function (KnownLogModule) {
275
- /** Enabled */
276
- KnownLogModule["Enabled"] = "ENABLED";
277
- /** Disabled */
278
- KnownLogModule["Disabled"] = "DISABLED";
279
- })(exports.KnownLogModule || (exports.KnownLogModule = {}));
280
- /** Known values of {@link SSOStatus} that the service accepts. */
281
- exports.KnownSSOStatus = void 0;
282
- (function (KnownSSOStatus) {
283
- /** Enabled */
284
- KnownSSOStatus["Enabled"] = "Enabled";
285
- /** Disabled */
286
- KnownSSOStatus["Disabled"] = "Disabled";
287
- })(exports.KnownSSOStatus || (exports.KnownSSOStatus = {}));
288
-
289
- /*
290
- * Copyright (c) Microsoft Corporation.
291
- * Licensed under the MIT License.
292
- *
293
- * Code generated by Microsoft (R) AutoRest Code Generator.
294
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
295
- */
296
- const MonitoredResourceListResponse = {
297
- type: {
298
- name: "Composite",
299
- className: "MonitoredResourceListResponse",
300
- modelProperties: {
301
- value: {
302
- serializedName: "value",
303
- type: {
304
- name: "Sequence",
305
- element: {
306
- type: {
307
- name: "Composite",
308
- className: "MonitoredResource"
309
- }
310
- }
311
- }
312
- },
313
- nextLink: {
314
- serializedName: "nextLink",
315
- type: {
316
- name: "String"
317
- }
318
- }
319
- }
320
- }
321
- };
322
- const MonitoredResource = {
323
- type: {
324
- name: "Composite",
325
- className: "MonitoredResource",
326
- modelProperties: {
327
- id: {
328
- serializedName: "id",
329
- type: {
330
- name: "String"
331
- }
332
- },
333
- sendingMetrics: {
334
- serializedName: "sendingMetrics",
335
- type: {
336
- name: "String"
337
- }
338
- },
339
- reasonForMetricsStatus: {
340
- serializedName: "reasonForMetricsStatus",
341
- type: {
342
- name: "String"
343
- }
344
- },
345
- sendingLogs: {
346
- serializedName: "sendingLogs",
347
- type: {
348
- name: "String"
349
- }
350
- },
351
- reasonForLogsStatus: {
352
- serializedName: "reasonForLogsStatus",
353
- type: {
354
- name: "String"
355
- }
356
- }
357
- }
358
- }
359
- };
360
- const ErrorResponse = {
361
- type: {
362
- name: "Composite",
363
- className: "ErrorResponse",
364
- modelProperties: {
365
- error: {
366
- serializedName: "error",
367
- type: {
368
- name: "Composite",
369
- className: "ErrorDetail"
370
- }
371
- }
372
- }
373
- }
374
- };
375
- const ErrorDetail = {
376
- type: {
377
- name: "Composite",
378
- className: "ErrorDetail",
379
- modelProperties: {
380
- code: {
381
- serializedName: "code",
382
- readOnly: true,
383
- type: {
384
- name: "String"
385
- }
386
- },
387
- message: {
388
- serializedName: "message",
389
- readOnly: true,
390
- type: {
391
- name: "String"
392
- }
393
- },
394
- target: {
395
- serializedName: "target",
396
- readOnly: true,
397
- type: {
398
- name: "String"
399
- }
400
- },
401
- details: {
402
- serializedName: "details",
403
- readOnly: true,
404
- type: {
405
- name: "Sequence",
406
- element: {
407
- type: {
408
- name: "Composite",
409
- className: "ErrorDetail"
410
- }
411
- }
412
- }
413
- },
414
- additionalInfo: {
415
- serializedName: "additionalInfo",
416
- readOnly: true,
417
- type: {
418
- name: "Sequence",
419
- element: {
420
- type: {
421
- name: "Composite",
422
- className: "ErrorAdditionalInfo"
423
- }
424
- }
425
- }
426
- }
427
- }
428
- }
429
- };
430
- const ErrorAdditionalInfo = {
431
- type: {
432
- name: "Composite",
433
- className: "ErrorAdditionalInfo",
434
- modelProperties: {
435
- type: {
436
- serializedName: "type",
437
- readOnly: true,
438
- type: {
439
- name: "String"
440
- }
441
- },
442
- info: {
443
- serializedName: "info",
444
- readOnly: true,
445
- type: {
446
- name: "Dictionary",
447
- value: { type: { name: "any" } }
448
- }
449
- }
450
- }
451
- }
452
- };
453
- const VMExtensionPayload = {
454
- type: {
455
- name: "Composite",
456
- className: "VMExtensionPayload",
457
- modelProperties: {
458
- ingestionKey: {
459
- serializedName: "ingestionKey",
460
- type: {
461
- name: "String"
462
- }
463
- },
464
- environmentId: {
465
- serializedName: "environmentId",
466
- type: {
467
- name: "String"
468
- }
469
- }
470
- }
471
- }
472
- };
473
- const DynatraceEnvironmentProperties = {
474
- type: {
475
- name: "Composite",
476
- className: "DynatraceEnvironmentProperties",
477
- modelProperties: {
478
- userId: {
479
- serializedName: "userId",
480
- type: {
481
- name: "String"
482
- }
483
- },
484
- accountInfo: {
485
- serializedName: "accountInfo",
486
- type: {
487
- name: "Composite",
488
- className: "AccountInfo"
489
- }
490
- },
491
- environmentInfo: {
492
- serializedName: "environmentInfo",
493
- type: {
494
- name: "Composite",
495
- className: "EnvironmentInfo"
496
- }
497
- },
498
- singleSignOnProperties: {
499
- serializedName: "singleSignOnProperties",
500
- type: {
501
- name: "Composite",
502
- className: "DynatraceSingleSignOnProperties"
503
- }
504
- }
505
- }
506
- }
507
- };
508
- const AccountInfo = {
509
- type: {
510
- name: "Composite",
511
- className: "AccountInfo",
512
- modelProperties: {
513
- accountId: {
514
- serializedName: "accountId",
515
- type: {
516
- name: "String"
517
- }
518
- },
519
- regionId: {
520
- serializedName: "regionId",
521
- type: {
522
- name: "String"
523
- }
524
- }
525
- }
526
- }
527
- };
528
- const EnvironmentInfo = {
529
- type: {
530
- name: "Composite",
531
- className: "EnvironmentInfo",
532
- modelProperties: {
533
- environmentId: {
534
- serializedName: "environmentId",
535
- type: {
536
- name: "String"
537
- }
538
- },
539
- ingestionKey: {
540
- serializedName: "ingestionKey",
541
- type: {
542
- name: "String"
543
- }
544
- },
545
- logsIngestionEndpoint: {
546
- serializedName: "logsIngestionEndpoint",
547
- type: {
548
- name: "String"
549
- }
550
- },
551
- landingURL: {
552
- serializedName: "landingURL",
553
- type: {
554
- name: "String"
555
- }
556
- }
557
- }
558
- }
559
- };
560
- const DynatraceSingleSignOnProperties = {
561
- type: {
562
- name: "Composite",
563
- className: "DynatraceSingleSignOnProperties",
564
- modelProperties: {
565
- singleSignOnState: {
566
- serializedName: "singleSignOnState",
567
- type: {
568
- name: "String"
569
- }
570
- },
571
- enterpriseAppId: {
572
- serializedName: "enterpriseAppId",
573
- type: {
574
- name: "String"
575
- }
576
- },
577
- singleSignOnUrl: {
578
- serializedName: "singleSignOnUrl",
579
- type: {
580
- name: "String"
581
- }
582
- },
583
- aadDomains: {
584
- serializedName: "aadDomains",
585
- type: {
586
- name: "Sequence",
587
- element: {
588
- type: {
589
- name: "String"
590
- }
591
- }
592
- }
593
- },
594
- provisioningState: {
595
- serializedName: "provisioningState",
596
- readOnly: true,
597
- type: {
598
- name: "String"
599
- }
600
- }
601
- }
602
- }
603
- };
604
- const UserInfo = {
605
- type: {
606
- name: "Composite",
607
- className: "UserInfo",
608
- modelProperties: {
609
- firstName: {
610
- serializedName: "firstName",
611
- type: {
612
- name: "String"
613
- }
614
- },
615
- lastName: {
616
- serializedName: "lastName",
617
- type: {
618
- name: "String"
619
- }
620
- },
621
- emailAddress: {
622
- constraints: {
623
- Pattern: new RegExp("^[A-Za-z0-9._%+-]+@(?:[A-Za-z0-9-]+\\.)+[A-Za-z]{2,}$")
624
- },
625
- serializedName: "emailAddress",
626
- type: {
627
- name: "String"
628
- }
629
- },
630
- phoneNumber: {
631
- constraints: {
632
- MaxLength: 40
633
- },
634
- serializedName: "phoneNumber",
635
- type: {
636
- name: "String"
637
- }
638
- },
639
- country: {
640
- serializedName: "country",
641
- type: {
642
- name: "String"
643
- }
644
- }
645
- }
646
- }
647
- };
648
- const PlanData = {
649
- type: {
650
- name: "Composite",
651
- className: "PlanData",
652
- modelProperties: {
653
- usageType: {
654
- serializedName: "usageType",
655
- type: {
656
- name: "String"
657
- }
658
- },
659
- billingCycle: {
660
- serializedName: "billingCycle",
661
- type: {
662
- name: "String"
663
- }
664
- },
665
- planDetails: {
666
- serializedName: "planDetails",
667
- type: {
668
- name: "String"
669
- }
670
- },
671
- effectiveDate: {
672
- serializedName: "effectiveDate",
673
- type: {
674
- name: "DateTime"
675
- }
676
- }
677
- }
678
- }
679
- };
680
- const SystemData = {
681
- type: {
682
- name: "Composite",
683
- className: "SystemData",
684
- modelProperties: {
685
- createdBy: {
686
- serializedName: "createdBy",
687
- type: {
688
- name: "String"
689
- }
690
- },
691
- createdByType: {
692
- serializedName: "createdByType",
693
- type: {
694
- name: "String"
695
- }
696
- },
697
- createdAt: {
698
- serializedName: "createdAt",
699
- type: {
700
- name: "DateTime"
701
- }
702
- },
703
- lastModifiedBy: {
704
- serializedName: "lastModifiedBy",
705
- type: {
706
- name: "String"
707
- }
708
- },
709
- lastModifiedByType: {
710
- serializedName: "lastModifiedByType",
711
- type: {
712
- name: "String"
713
- }
714
- },
715
- lastModifiedAt: {
716
- serializedName: "lastModifiedAt",
717
- type: {
718
- name: "DateTime"
719
- }
720
- }
721
- }
722
- }
723
- };
724
- const IdentityProperties = {
725
- type: {
726
- name: "Composite",
727
- className: "IdentityProperties",
728
- modelProperties: {
729
- tenantId: {
730
- serializedName: "tenantId",
731
- readOnly: true,
732
- type: {
733
- name: "String"
734
- }
735
- },
736
- principalId: {
737
- serializedName: "principalId",
738
- readOnly: true,
739
- type: {
740
- name: "String"
741
- }
742
- },
743
- type: {
744
- serializedName: "type",
745
- required: true,
746
- type: {
747
- name: "String"
748
- }
749
- },
750
- userAssignedIdentities: {
751
- serializedName: "userAssignedIdentities",
752
- type: {
753
- name: "Dictionary",
754
- value: {
755
- type: { name: "Composite", className: "UserAssignedIdentity" }
756
- }
757
- }
758
- }
759
- }
760
- }
761
- };
762
- const UserAssignedIdentity = {
763
- type: {
764
- name: "Composite",
765
- className: "UserAssignedIdentity",
766
- modelProperties: {
767
- clientId: {
768
- serializedName: "clientId",
769
- required: true,
770
- type: {
771
- name: "String"
772
- }
773
- },
774
- principalId: {
775
- serializedName: "principalId",
776
- required: true,
777
- type: {
778
- name: "String"
779
- }
780
- }
781
- }
782
- }
783
- };
784
- const Resource = {
785
- type: {
786
- name: "Composite",
787
- className: "Resource",
788
- modelProperties: {
789
- id: {
790
- serializedName: "id",
791
- readOnly: true,
792
- type: {
793
- name: "String"
794
- }
795
- },
796
- name: {
797
- serializedName: "name",
798
- readOnly: true,
799
- type: {
800
- name: "String"
801
- }
802
- },
803
- type: {
804
- serializedName: "type",
805
- readOnly: true,
806
- type: {
807
- name: "String"
808
- }
809
- }
810
- }
811
- }
812
- };
813
- const MonitorResourceUpdate = {
814
- type: {
815
- name: "Composite",
816
- className: "MonitorResourceUpdate",
817
- modelProperties: {
818
- tags: {
819
- serializedName: "tags",
820
- type: {
821
- name: "Dictionary",
822
- value: { type: { name: "String" } }
823
- }
824
- }
825
- }
826
- }
827
- };
828
- const OperationListResult = {
829
- type: {
830
- name: "Composite",
831
- className: "OperationListResult",
832
- modelProperties: {
833
- value: {
834
- serializedName: "value",
835
- readOnly: true,
836
- type: {
837
- name: "Sequence",
838
- element: {
839
- type: {
840
- name: "Composite",
841
- className: "Operation"
842
- }
843
- }
844
- }
845
- },
846
- nextLink: {
847
- serializedName: "nextLink",
848
- readOnly: true,
849
- type: {
850
- name: "String"
851
- }
852
- }
853
- }
854
- }
855
- };
856
- const Operation = {
857
- type: {
858
- name: "Composite",
859
- className: "Operation",
860
- modelProperties: {
861
- name: {
862
- serializedName: "name",
863
- readOnly: true,
864
- type: {
865
- name: "String"
866
- }
867
- },
868
- isDataAction: {
869
- serializedName: "isDataAction",
870
- readOnly: true,
871
- type: {
872
- name: "Boolean"
873
- }
874
- },
875
- display: {
876
- serializedName: "display",
877
- type: {
878
- name: "Composite",
879
- className: "OperationDisplay"
880
- }
881
- },
882
- origin: {
883
- serializedName: "origin",
884
- readOnly: true,
885
- type: {
886
- name: "String"
887
- }
888
- },
889
- actionType: {
890
- serializedName: "actionType",
891
- readOnly: true,
892
- type: {
893
- name: "String"
894
- }
895
- }
896
- }
897
- }
898
- };
899
- const OperationDisplay = {
900
- type: {
901
- name: "Composite",
902
- className: "OperationDisplay",
903
- modelProperties: {
904
- provider: {
905
- serializedName: "provider",
906
- readOnly: true,
907
- type: {
908
- name: "String"
909
- }
910
- },
911
- resource: {
912
- serializedName: "resource",
913
- readOnly: true,
914
- type: {
915
- name: "String"
916
- }
917
- },
918
- operation: {
919
- serializedName: "operation",
920
- readOnly: true,
921
- type: {
922
- name: "String"
923
- }
924
- },
925
- description: {
926
- serializedName: "description",
927
- readOnly: true,
928
- type: {
929
- name: "String"
930
- }
931
- }
932
- }
933
- }
934
- };
935
- const MonitorResourceListResult = {
936
- type: {
937
- name: "Composite",
938
- className: "MonitorResourceListResult",
939
- modelProperties: {
940
- value: {
941
- serializedName: "value",
942
- required: true,
943
- type: {
944
- name: "Sequence",
945
- element: {
946
- type: {
947
- name: "Composite",
948
- className: "MonitorResource"
949
- }
950
- }
951
- }
952
- },
953
- nextLink: {
954
- serializedName: "nextLink",
955
- type: {
956
- name: "String"
957
- }
958
- }
959
- }
960
- }
961
- };
962
- const LogRules = {
963
- type: {
964
- name: "Composite",
965
- className: "LogRules",
966
- modelProperties: {
967
- sendAadLogs: {
968
- serializedName: "sendAadLogs",
969
- type: {
970
- name: "String"
971
- }
972
- },
973
- sendSubscriptionLogs: {
974
- serializedName: "sendSubscriptionLogs",
975
- type: {
976
- name: "String"
977
- }
978
- },
979
- sendActivityLogs: {
980
- serializedName: "sendActivityLogs",
981
- type: {
982
- name: "String"
983
- }
984
- },
985
- filteringTags: {
986
- serializedName: "filteringTags",
987
- type: {
988
- name: "Sequence",
989
- element: {
990
- type: {
991
- name: "Composite",
992
- className: "FilteringTag"
993
- }
994
- }
995
- }
996
- }
997
- }
998
- }
999
- };
1000
- const FilteringTag = {
1001
- type: {
1002
- name: "Composite",
1003
- className: "FilteringTag",
1004
- modelProperties: {
1005
- name: {
1006
- serializedName: "name",
1007
- type: {
1008
- name: "String"
1009
- }
1010
- },
1011
- value: {
1012
- serializedName: "value",
1013
- type: {
1014
- name: "String"
1015
- }
1016
- },
1017
- action: {
1018
- serializedName: "action",
1019
- type: {
1020
- name: "String"
1021
- }
1022
- }
1023
- }
1024
- }
1025
- };
1026
- const MetricRules = {
1027
- type: {
1028
- name: "Composite",
1029
- className: "MetricRules",
1030
- modelProperties: {
1031
- sendingMetrics: {
1032
- serializedName: "sendingMetrics",
1033
- type: {
1034
- name: "String"
1035
- }
1036
- },
1037
- filteringTags: {
1038
- serializedName: "filteringTags",
1039
- type: {
1040
- name: "Sequence",
1041
- element: {
1042
- type: {
1043
- name: "Composite",
1044
- className: "FilteringTag"
1045
- }
1046
- }
1047
- }
1048
- }
1049
- }
1050
- }
1051
- };
1052
- const TagRuleListResult = {
1053
- type: {
1054
- name: "Composite",
1055
- className: "TagRuleListResult",
1056
- modelProperties: {
1057
- value: {
1058
- serializedName: "value",
1059
- required: true,
1060
- type: {
1061
- name: "Sequence",
1062
- element: {
1063
- type: {
1064
- name: "Composite",
1065
- className: "TagRule"
1066
- }
1067
- }
1068
- }
1069
- },
1070
- nextLink: {
1071
- serializedName: "nextLink",
1072
- type: {
1073
- name: "String"
1074
- }
1075
- }
1076
- }
1077
- }
1078
- };
1079
- const MarketplaceSaaSResourceDetailsRequest = {
1080
- type: {
1081
- name: "Composite",
1082
- className: "MarketplaceSaaSResourceDetailsRequest",
1083
- modelProperties: {
1084
- tenantId: {
1085
- serializedName: "tenantId",
1086
- required: true,
1087
- type: {
1088
- name: "String"
1089
- }
1090
- }
1091
- }
1092
- }
1093
- };
1094
- const MarketplaceSaaSResourceDetailsResponse = {
1095
- type: {
1096
- name: "Composite",
1097
- className: "MarketplaceSaaSResourceDetailsResponse",
1098
- modelProperties: {
1099
- marketplaceSaaSResourceId: {
1100
- serializedName: "marketplaceSaaSResourceId",
1101
- type: {
1102
- name: "String"
1103
- }
1104
- },
1105
- planId: {
1106
- serializedName: "planId",
1107
- type: {
1108
- name: "String"
1109
- }
1110
- },
1111
- marketplaceSubscriptionStatus: {
1112
- serializedName: "marketplaceSubscriptionStatus",
1113
- type: {
1114
- name: "String"
1115
- }
1116
- }
1117
- }
1118
- }
1119
- };
1120
- const DynatraceSingleSignOnResourceListResult = {
1121
- type: {
1122
- name: "Composite",
1123
- className: "DynatraceSingleSignOnResourceListResult",
1124
- modelProperties: {
1125
- value: {
1126
- serializedName: "value",
1127
- required: true,
1128
- type: {
1129
- name: "Sequence",
1130
- element: {
1131
- type: {
1132
- name: "Composite",
1133
- className: "DynatraceSingleSignOnResource"
1134
- }
1135
- }
1136
- }
1137
- },
1138
- nextLink: {
1139
- serializedName: "nextLink",
1140
- type: {
1141
- name: "String"
1142
- }
1143
- }
1144
- }
1145
- }
1146
- };
1147
- const VMHostsListResponse = {
1148
- type: {
1149
- name: "Composite",
1150
- className: "VMHostsListResponse",
1151
- modelProperties: {
1152
- value: {
1153
- serializedName: "value",
1154
- type: {
1155
- name: "Sequence",
1156
- element: {
1157
- type: {
1158
- name: "Composite",
1159
- className: "VMInfo"
1160
- }
1161
- }
1162
- }
1163
- },
1164
- nextLink: {
1165
- serializedName: "nextLink",
1166
- type: {
1167
- name: "String"
1168
- }
1169
- }
1170
- }
1171
- }
1172
- };
1173
- const VMInfo = {
1174
- type: {
1175
- name: "Composite",
1176
- className: "VMInfo",
1177
- modelProperties: {
1178
- resourceId: {
1179
- serializedName: "resourceId",
1180
- type: {
1181
- name: "String"
1182
- }
1183
- },
1184
- version: {
1185
- serializedName: "version",
1186
- type: {
1187
- name: "String"
1188
- }
1189
- },
1190
- monitoringType: {
1191
- serializedName: "monitoringType",
1192
- type: {
1193
- name: "String"
1194
- }
1195
- },
1196
- autoUpdateSetting: {
1197
- serializedName: "autoUpdateSetting",
1198
- type: {
1199
- name: "String"
1200
- }
1201
- },
1202
- updateStatus: {
1203
- serializedName: "updateStatus",
1204
- type: {
1205
- name: "String"
1206
- }
1207
- },
1208
- availabilityState: {
1209
- serializedName: "availabilityState",
1210
- type: {
1211
- name: "String"
1212
- }
1213
- },
1214
- logModule: {
1215
- serializedName: "logModule",
1216
- type: {
1217
- name: "String"
1218
- }
1219
- },
1220
- hostGroup: {
1221
- serializedName: "hostGroup",
1222
- type: {
1223
- name: "String"
1224
- }
1225
- },
1226
- hostName: {
1227
- serializedName: "hostName",
1228
- type: {
1229
- name: "String"
1230
- }
1231
- }
1232
- }
1233
- }
1234
- };
1235
- const MetricsStatusResponse = {
1236
- type: {
1237
- name: "Composite",
1238
- className: "MetricsStatusResponse",
1239
- modelProperties: {
1240
- azureResourceIds: {
1241
- serializedName: "azureResourceIds",
1242
- type: {
1243
- name: "Sequence",
1244
- element: {
1245
- type: {
1246
- name: "String"
1247
- }
1248
- }
1249
- }
1250
- }
1251
- }
1252
- }
1253
- };
1254
- const AppServiceListResponse = {
1255
- type: {
1256
- name: "Composite",
1257
- className: "AppServiceListResponse",
1258
- modelProperties: {
1259
- value: {
1260
- serializedName: "value",
1261
- type: {
1262
- name: "Sequence",
1263
- element: {
1264
- type: {
1265
- name: "Composite",
1266
- className: "AppServiceInfo"
1267
- }
1268
- }
1269
- }
1270
- },
1271
- nextLink: {
1272
- serializedName: "nextLink",
1273
- type: {
1274
- name: "String"
1275
- }
1276
- }
1277
- }
1278
- }
1279
- };
1280
- const AppServiceInfo = {
1281
- type: {
1282
- name: "Composite",
1283
- className: "AppServiceInfo",
1284
- modelProperties: {
1285
- resourceId: {
1286
- serializedName: "resourceId",
1287
- type: {
1288
- name: "String"
1289
- }
1290
- },
1291
- version: {
1292
- serializedName: "version",
1293
- type: {
1294
- name: "String"
1295
- }
1296
- },
1297
- monitoringType: {
1298
- serializedName: "monitoringType",
1299
- type: {
1300
- name: "String"
1301
- }
1302
- },
1303
- autoUpdateSetting: {
1304
- serializedName: "autoUpdateSetting",
1305
- type: {
1306
- name: "String"
1307
- }
1308
- },
1309
- updateStatus: {
1310
- serializedName: "updateStatus",
1311
- type: {
1312
- name: "String"
1313
- }
1314
- },
1315
- availabilityState: {
1316
- serializedName: "availabilityState",
1317
- type: {
1318
- name: "String"
1319
- }
1320
- },
1321
- logModule: {
1322
- serializedName: "logModule",
1323
- type: {
1324
- name: "String"
1325
- }
1326
- },
1327
- hostGroup: {
1328
- serializedName: "hostGroup",
1329
- type: {
1330
- name: "String"
1331
- }
1332
- },
1333
- hostName: {
1334
- serializedName: "hostName",
1335
- type: {
1336
- name: "String"
1337
- }
1338
- }
1339
- }
1340
- }
1341
- };
1342
- const SSODetailsRequest = {
1343
- type: {
1344
- name: "Composite",
1345
- className: "SSODetailsRequest",
1346
- modelProperties: {
1347
- userPrincipal: {
1348
- serializedName: "userPrincipal",
1349
- required: true,
1350
- type: {
1351
- name: "String"
1352
- }
1353
- }
1354
- }
1355
- }
1356
- };
1357
- const SSODetailsResponse = {
1358
- type: {
1359
- name: "Composite",
1360
- className: "SSODetailsResponse",
1361
- modelProperties: {
1362
- isSsoEnabled: {
1363
- serializedName: "isSsoEnabled",
1364
- type: {
1365
- name: "String"
1366
- }
1367
- },
1368
- metadataUrl: {
1369
- serializedName: "metadataUrl",
1370
- type: {
1371
- name: "String"
1372
- }
1373
- },
1374
- singleSignOnUrl: {
1375
- serializedName: "singleSignOnUrl",
1376
- type: {
1377
- name: "String"
1378
- }
1379
- },
1380
- aadDomains: {
1381
- serializedName: "aadDomains",
1382
- type: {
1383
- name: "Sequence",
1384
- element: {
1385
- type: {
1386
- name: "String"
1387
- }
1388
- }
1389
- }
1390
- },
1391
- adminUsers: {
1392
- serializedName: "adminUsers",
1393
- type: {
1394
- name: "Sequence",
1395
- element: {
1396
- type: {
1397
- name: "String"
1398
- }
1399
- }
1400
- }
1401
- }
1402
- }
1403
- }
1404
- };
1405
- const LinkableEnvironmentRequest = {
1406
- type: {
1407
- name: "Composite",
1408
- className: "LinkableEnvironmentRequest",
1409
- modelProperties: {
1410
- tenantId: {
1411
- serializedName: "tenantId",
1412
- required: true,
1413
- type: {
1414
- name: "String"
1415
- }
1416
- },
1417
- userPrincipal: {
1418
- serializedName: "userPrincipal",
1419
- required: true,
1420
- type: {
1421
- name: "String"
1422
- }
1423
- },
1424
- region: {
1425
- serializedName: "region",
1426
- required: true,
1427
- type: {
1428
- name: "String"
1429
- }
1430
- }
1431
- }
1432
- }
1433
- };
1434
- const LinkableEnvironmentListResponse = {
1435
- type: {
1436
- name: "Composite",
1437
- className: "LinkableEnvironmentListResponse",
1438
- modelProperties: {
1439
- value: {
1440
- serializedName: "value",
1441
- type: {
1442
- name: "Sequence",
1443
- element: {
1444
- type: {
1445
- name: "Composite",
1446
- className: "LinkableEnvironmentResponse"
1447
- }
1448
- }
1449
- }
1450
- },
1451
- nextLink: {
1452
- serializedName: "nextLink",
1453
- type: {
1454
- name: "String"
1455
- }
1456
- }
1457
- }
1458
- }
1459
- };
1460
- const LinkableEnvironmentResponse = {
1461
- type: {
1462
- name: "Composite",
1463
- className: "LinkableEnvironmentResponse",
1464
- modelProperties: {
1465
- environmentId: {
1466
- serializedName: "environmentId",
1467
- type: {
1468
- name: "String"
1469
- }
1470
- },
1471
- environmentName: {
1472
- serializedName: "environmentName",
1473
- type: {
1474
- name: "String"
1475
- }
1476
- },
1477
- planData: {
1478
- serializedName: "planData",
1479
- type: {
1480
- name: "Composite",
1481
- className: "PlanData"
1482
- }
1483
- }
1484
- }
1485
- }
1486
- };
1487
- const TrackedResource = {
1488
- type: {
1489
- name: "Composite",
1490
- className: "TrackedResource",
1491
- modelProperties: Object.assign(Object.assign({}, Resource.type.modelProperties), { tags: {
1492
- serializedName: "tags",
1493
- type: {
1494
- name: "Dictionary",
1495
- value: { type: { name: "String" } }
1496
- }
1497
- }, location: {
1498
- serializedName: "location",
1499
- required: true,
1500
- type: {
1501
- name: "String"
1502
- }
1503
- } })
1504
- }
1505
- };
1506
- const ProxyResource = {
1507
- type: {
1508
- name: "Composite",
1509
- className: "ProxyResource",
1510
- modelProperties: Object.assign({}, Resource.type.modelProperties)
1511
- }
1512
- };
1513
- const MonitorResource = {
1514
- type: {
1515
- name: "Composite",
1516
- className: "MonitorResource",
1517
- modelProperties: Object.assign(Object.assign({}, TrackedResource.type.modelProperties), { systemData: {
1518
- serializedName: "systemData",
1519
- type: {
1520
- name: "Composite",
1521
- className: "SystemData"
1522
- }
1523
- }, identity: {
1524
- serializedName: "identity",
1525
- type: {
1526
- name: "Composite",
1527
- className: "IdentityProperties"
1528
- }
1529
- }, monitoringStatus: {
1530
- serializedName: "properties.monitoringStatus",
1531
- type: {
1532
- name: "String"
1533
- }
1534
- }, marketplaceSubscriptionStatus: {
1535
- serializedName: "properties.marketplaceSubscriptionStatus",
1536
- type: {
1537
- name: "String"
1538
- }
1539
- }, dynatraceEnvironmentProperties: {
1540
- serializedName: "properties.dynatraceEnvironmentProperties",
1541
- type: {
1542
- name: "Composite",
1543
- className: "DynatraceEnvironmentProperties"
1544
- }
1545
- }, userInfo: {
1546
- serializedName: "properties.userInfo",
1547
- type: {
1548
- name: "Composite",
1549
- className: "UserInfo"
1550
- }
1551
- }, planData: {
1552
- serializedName: "properties.planData",
1553
- type: {
1554
- name: "Composite",
1555
- className: "PlanData"
1556
- }
1557
- }, liftrResourceCategory: {
1558
- serializedName: "properties.liftrResourceCategory",
1559
- readOnly: true,
1560
- type: {
1561
- name: "String"
1562
- }
1563
- }, liftrResourcePreference: {
1564
- serializedName: "properties.liftrResourcePreference",
1565
- readOnly: true,
1566
- type: {
1567
- name: "Number"
1568
- }
1569
- }, provisioningState: {
1570
- serializedName: "properties.provisioningState",
1571
- readOnly: true,
1572
- type: {
1573
- name: "String"
1574
- }
1575
- } })
1576
- }
1577
- };
1578
- const TagRule = {
1579
- type: {
1580
- name: "Composite",
1581
- className: "TagRule",
1582
- modelProperties: Object.assign(Object.assign({}, ProxyResource.type.modelProperties), { systemData: {
1583
- serializedName: "systemData",
1584
- type: {
1585
- name: "Composite",
1586
- className: "SystemData"
1587
- }
1588
- }, logRules: {
1589
- serializedName: "properties.logRules",
1590
- type: {
1591
- name: "Composite",
1592
- className: "LogRules"
1593
- }
1594
- }, metricRules: {
1595
- serializedName: "properties.metricRules",
1596
- type: {
1597
- name: "Composite",
1598
- className: "MetricRules"
1599
- }
1600
- }, provisioningState: {
1601
- serializedName: "properties.provisioningState",
1602
- readOnly: true,
1603
- type: {
1604
- name: "String"
1605
- }
1606
- } })
1607
- }
1608
- };
1609
- const DynatraceSingleSignOnResource = {
1610
- type: {
1611
- name: "Composite",
1612
- className: "DynatraceSingleSignOnResource",
1613
- modelProperties: Object.assign(Object.assign({}, ProxyResource.type.modelProperties), { systemData: {
1614
- serializedName: "systemData",
1615
- type: {
1616
- name: "Composite",
1617
- className: "SystemData"
1618
- }
1619
- }, singleSignOnState: {
1620
- serializedName: "properties.singleSignOnState",
1621
- type: {
1622
- name: "String"
1623
- }
1624
- }, enterpriseAppId: {
1625
- serializedName: "properties.enterpriseAppId",
1626
- type: {
1627
- name: "String"
1628
- }
1629
- }, singleSignOnUrl: {
1630
- serializedName: "properties.singleSignOnUrl",
1631
- type: {
1632
- name: "String"
1633
- }
1634
- }, aadDomains: {
1635
- serializedName: "properties.aadDomains",
1636
- type: {
1637
- name: "Sequence",
1638
- element: {
1639
- type: {
1640
- name: "String"
1641
- }
1642
- }
1643
- }
1644
- }, provisioningState: {
1645
- serializedName: "properties.provisioningState",
1646
- readOnly: true,
1647
- type: {
1648
- name: "String"
1649
- }
1650
- } })
1651
- }
1652
- };
1653
-
1654
- var Mappers = /*#__PURE__*/Object.freeze({
1655
- __proto__: null,
1656
- MonitoredResourceListResponse: MonitoredResourceListResponse,
1657
- MonitoredResource: MonitoredResource,
1658
- ErrorResponse: ErrorResponse,
1659
- ErrorDetail: ErrorDetail,
1660
- ErrorAdditionalInfo: ErrorAdditionalInfo,
1661
- VMExtensionPayload: VMExtensionPayload,
1662
- DynatraceEnvironmentProperties: DynatraceEnvironmentProperties,
1663
- AccountInfo: AccountInfo,
1664
- EnvironmentInfo: EnvironmentInfo,
1665
- DynatraceSingleSignOnProperties: DynatraceSingleSignOnProperties,
1666
- UserInfo: UserInfo,
1667
- PlanData: PlanData,
1668
- SystemData: SystemData,
1669
- IdentityProperties: IdentityProperties,
1670
- UserAssignedIdentity: UserAssignedIdentity,
1671
- Resource: Resource,
1672
- MonitorResourceUpdate: MonitorResourceUpdate,
1673
- OperationListResult: OperationListResult,
1674
- Operation: Operation,
1675
- OperationDisplay: OperationDisplay,
1676
- MonitorResourceListResult: MonitorResourceListResult,
1677
- LogRules: LogRules,
1678
- FilteringTag: FilteringTag,
1679
- MetricRules: MetricRules,
1680
- TagRuleListResult: TagRuleListResult,
1681
- MarketplaceSaaSResourceDetailsRequest: MarketplaceSaaSResourceDetailsRequest,
1682
- MarketplaceSaaSResourceDetailsResponse: MarketplaceSaaSResourceDetailsResponse,
1683
- DynatraceSingleSignOnResourceListResult: DynatraceSingleSignOnResourceListResult,
1684
- VMHostsListResponse: VMHostsListResponse,
1685
- VMInfo: VMInfo,
1686
- MetricsStatusResponse: MetricsStatusResponse,
1687
- AppServiceListResponse: AppServiceListResponse,
1688
- AppServiceInfo: AppServiceInfo,
1689
- SSODetailsRequest: SSODetailsRequest,
1690
- SSODetailsResponse: SSODetailsResponse,
1691
- LinkableEnvironmentRequest: LinkableEnvironmentRequest,
1692
- LinkableEnvironmentListResponse: LinkableEnvironmentListResponse,
1693
- LinkableEnvironmentResponse: LinkableEnvironmentResponse,
1694
- TrackedResource: TrackedResource,
1695
- ProxyResource: ProxyResource,
1696
- MonitorResource: MonitorResource,
1697
- TagRule: TagRule,
1698
- DynatraceSingleSignOnResource: DynatraceSingleSignOnResource
1699
- });
1700
-
1701
- /*
1702
- * Copyright (c) Microsoft Corporation.
1703
- * Licensed under the MIT License.
1704
- *
1705
- * Code generated by Microsoft (R) AutoRest Code Generator.
1706
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
1707
- */
1708
- const accept = {
1709
- parameterPath: "accept",
1710
- mapper: {
1711
- defaultValue: "application/json",
1712
- isConstant: true,
1713
- serializedName: "Accept",
1714
- type: {
1715
- name: "String"
1716
- }
1717
- }
1718
- };
1719
- const $host = {
1720
- parameterPath: "$host",
1721
- mapper: {
1722
- serializedName: "$host",
1723
- required: true,
1724
- type: {
1725
- name: "String"
1726
- }
1727
- },
1728
- skipEncoding: true
1729
- };
1730
- const apiVersion = {
1731
- parameterPath: "apiVersion",
1732
- mapper: {
1733
- defaultValue: "2023-04-27",
1734
- isConstant: true,
1735
- serializedName: "api-version",
1736
- type: {
1737
- name: "String"
1738
- }
1739
- }
1740
- };
1741
- const subscriptionId = {
1742
- parameterPath: "subscriptionId",
1743
- mapper: {
1744
- constraints: {
1745
- MinLength: 1
1746
- },
1747
- serializedName: "subscriptionId",
1748
- required: true,
1749
- type: {
1750
- name: "String"
1751
- }
1752
- }
1753
- };
1754
- const resourceGroupName = {
1755
- parameterPath: "resourceGroupName",
1756
- mapper: {
1757
- constraints: {
1758
- MaxLength: 90,
1759
- MinLength: 1
1760
- },
1761
- serializedName: "resourceGroupName",
1762
- required: true,
1763
- type: {
1764
- name: "String"
1765
- }
1766
- }
1767
- };
1768
- const monitorName = {
1769
- parameterPath: "monitorName",
1770
- mapper: {
1771
- serializedName: "monitorName",
1772
- required: true,
1773
- type: {
1774
- name: "String"
1775
- }
1776
- }
1777
- };
1778
- const contentType = {
1779
- parameterPath: ["options", "contentType"],
1780
- mapper: {
1781
- defaultValue: "application/json",
1782
- isConstant: true,
1783
- serializedName: "Content-Type",
1784
- type: {
1785
- name: "String"
1786
- }
1787
- }
1788
- };
1789
- const resource = {
1790
- parameterPath: "resource",
1791
- mapper: MonitorResource
1792
- };
1793
- const resource1 = {
1794
- parameterPath: "resource",
1795
- mapper: MonitorResourceUpdate
1796
- };
1797
- const request = {
1798
- parameterPath: "request",
1799
- mapper: MarketplaceSaaSResourceDetailsRequest
1800
- };
1801
- const request1 = {
1802
- parameterPath: ["options", "request"],
1803
- mapper: SSODetailsRequest
1804
- };
1805
- const request2 = {
1806
- parameterPath: "request",
1807
- mapper: LinkableEnvironmentRequest
1808
- };
1809
- const nextLink = {
1810
- parameterPath: "nextLink",
1811
- mapper: {
1812
- serializedName: "nextLink",
1813
- required: true,
1814
- type: {
1815
- name: "String"
1816
- }
1817
- },
1818
- skipEncoding: true
1819
- };
1820
- const ruleSetName = {
1821
- parameterPath: "ruleSetName",
1822
- mapper: {
1823
- serializedName: "ruleSetName",
1824
- required: true,
1825
- type: {
1826
- name: "String"
1827
- }
1828
- }
1829
- };
1830
- const resource2 = {
1831
- parameterPath: "resource",
1832
- mapper: TagRule
1833
- };
1834
- const resource3 = {
1835
- parameterPath: "resource",
1836
- mapper: DynatraceSingleSignOnResource
1837
- };
1838
- const configurationName = {
1839
- parameterPath: "configurationName",
1840
- mapper: {
1841
- serializedName: "configurationName",
1842
- required: true,
1843
- type: {
1844
- name: "String"
1845
- }
1846
- }
1847
- };
1848
-
1849
- /*
1850
- * Copyright (c) Microsoft Corporation.
1851
- * Licensed under the MIT License.
1852
- *
1853
- * Code generated by Microsoft (R) AutoRest Code Generator.
1854
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
1855
- */
1856
- function createLroSpec(inputs) {
1857
- const { args, spec, sendOperationFn } = inputs;
1858
- return {
1859
- requestMethod: spec.httpMethod,
1860
- requestPath: spec.path,
1861
- sendInitialRequest: () => sendOperationFn(args, spec),
1862
- sendPollRequest: (path, options) => {
1863
- const restSpec = tslib.__rest(spec, ["requestBody"]);
1864
- return sendOperationFn(args, Object.assign(Object.assign({}, restSpec), { httpMethod: "GET", path, abortSignal: options === null || options === void 0 ? void 0 : options.abortSignal }));
1865
- }
1866
- };
1867
- }
1868
-
1869
- /*
1870
- * Copyright (c) Microsoft Corporation.
1871
- * Licensed under the MIT License.
1872
- *
1873
- * Code generated by Microsoft (R) AutoRest Code Generator.
1874
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
1875
- */
1876
- /// <reference lib="esnext.asynciterable" />
1877
- /** Class containing Monitors operations. */
1878
- class MonitorsImpl {
1879
- /**
1880
- * Initialize a new instance of the class Monitors class.
1881
- * @param client Reference to the service client
1882
- */
1883
- constructor(client) {
1884
- this.client = client;
1885
- }
1886
- /**
1887
- * List the resources currently being monitored by the Dynatrace monitor resource.
1888
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
1889
- * @param monitorName Monitor resource name
1890
- * @param options The options parameters.
1891
- */
1892
- listMonitoredResources(resourceGroupName, monitorName, options) {
1893
- const iter = this.listMonitoredResourcesPagingAll(resourceGroupName, monitorName, options);
1894
- return {
1895
- next() {
1896
- return iter.next();
1897
- },
1898
- [Symbol.asyncIterator]() {
1899
- return this;
1900
- },
1901
- byPage: (settings) => {
1902
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
1903
- throw new Error("maxPageSize is not supported by this operation.");
1904
- }
1905
- return this.listMonitoredResourcesPagingPage(resourceGroupName, monitorName, options, settings);
1906
- }
1907
- };
1908
- }
1909
- listMonitoredResourcesPagingPage(resourceGroupName, monitorName, options, settings) {
1910
- return tslib.__asyncGenerator(this, arguments, function* listMonitoredResourcesPagingPage_1() {
1911
- let result;
1912
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
1913
- if (!continuationToken) {
1914
- result = yield tslib.__await(this._listMonitoredResources(resourceGroupName, monitorName, options));
1915
- let page = result.value || [];
1916
- continuationToken = result.nextLink;
1917
- setContinuationToken(page, continuationToken);
1918
- yield yield tslib.__await(page);
1919
- }
1920
- while (continuationToken) {
1921
- result = yield tslib.__await(this._listMonitoredResourcesNext(resourceGroupName, monitorName, continuationToken, options));
1922
- continuationToken = result.nextLink;
1923
- let page = result.value || [];
1924
- setContinuationToken(page, continuationToken);
1925
- yield yield tslib.__await(page);
1926
- }
1927
- });
1928
- }
1929
- listMonitoredResourcesPagingAll(resourceGroupName, monitorName, options) {
1930
- return tslib.__asyncGenerator(this, arguments, function* listMonitoredResourcesPagingAll_1() {
1931
- var _a, e_1, _b, _c;
1932
- try {
1933
- for (var _d = true, _e = tslib.__asyncValues(this.listMonitoredResourcesPagingPage(resourceGroupName, monitorName, options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a;) {
1934
- _c = _f.value;
1935
- _d = false;
1936
- try {
1937
- const page = _c;
1938
- yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
1939
- }
1940
- finally {
1941
- _d = true;
1942
- }
1943
- }
1944
- }
1945
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
1946
- finally {
1947
- try {
1948
- if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
1949
- }
1950
- finally { if (e_1) throw e_1.error; }
1951
- }
1952
- });
1953
- }
1954
- /**
1955
- * List all MonitorResource by subscriptionId
1956
- * @param options The options parameters.
1957
- */
1958
- listBySubscriptionId(options) {
1959
- const iter = this.listBySubscriptionIdPagingAll(options);
1960
- return {
1961
- next() {
1962
- return iter.next();
1963
- },
1964
- [Symbol.asyncIterator]() {
1965
- return this;
1966
- },
1967
- byPage: (settings) => {
1968
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
1969
- throw new Error("maxPageSize is not supported by this operation.");
1970
- }
1971
- return this.listBySubscriptionIdPagingPage(options, settings);
1972
- }
1973
- };
1974
- }
1975
- listBySubscriptionIdPagingPage(options, settings) {
1976
- return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionIdPagingPage_1() {
1977
- let result;
1978
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
1979
- if (!continuationToken) {
1980
- result = yield tslib.__await(this._listBySubscriptionId(options));
1981
- let page = result.value || [];
1982
- continuationToken = result.nextLink;
1983
- setContinuationToken(page, continuationToken);
1984
- yield yield tslib.__await(page);
1985
- }
1986
- while (continuationToken) {
1987
- result = yield tslib.__await(this._listBySubscriptionIdNext(continuationToken, options));
1988
- continuationToken = result.nextLink;
1989
- let page = result.value || [];
1990
- setContinuationToken(page, continuationToken);
1991
- yield yield tslib.__await(page);
1992
- }
1993
- });
1994
- }
1995
- listBySubscriptionIdPagingAll(options) {
1996
- return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionIdPagingAll_1() {
1997
- var _a, e_2, _b, _c;
1998
- try {
1999
- for (var _d = true, _e = tslib.__asyncValues(this.listBySubscriptionIdPagingPage(options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a;) {
2000
- _c = _f.value;
2001
- _d = false;
2002
- try {
2003
- const page = _c;
2004
- yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
2005
- }
2006
- finally {
2007
- _d = true;
2008
- }
2009
- }
2010
- }
2011
- catch (e_2_1) { e_2 = { error: e_2_1 }; }
2012
- finally {
2013
- try {
2014
- if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
2015
- }
2016
- finally { if (e_2) throw e_2.error; }
2017
- }
2018
- });
2019
- }
2020
- /**
2021
- * List MonitorResource resources by resource group
2022
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
2023
- * @param options The options parameters.
2024
- */
2025
- listByResourceGroup(resourceGroupName, options) {
2026
- const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);
2027
- return {
2028
- next() {
2029
- return iter.next();
2030
- },
2031
- [Symbol.asyncIterator]() {
2032
- return this;
2033
- },
2034
- byPage: (settings) => {
2035
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
2036
- throw new Error("maxPageSize is not supported by this operation.");
2037
- }
2038
- return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
2039
- }
2040
- };
2041
- }
2042
- listByResourceGroupPagingPage(resourceGroupName, options, settings) {
2043
- return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
2044
- let result;
2045
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
2046
- if (!continuationToken) {
2047
- result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
2048
- let page = result.value || [];
2049
- continuationToken = result.nextLink;
2050
- setContinuationToken(page, continuationToken);
2051
- yield yield tslib.__await(page);
2052
- }
2053
- while (continuationToken) {
2054
- result = yield tslib.__await(this._listByResourceGroupNext(resourceGroupName, continuationToken, options));
2055
- continuationToken = result.nextLink;
2056
- let page = result.value || [];
2057
- setContinuationToken(page, continuationToken);
2058
- yield yield tslib.__await(page);
2059
- }
2060
- });
2061
- }
2062
- listByResourceGroupPagingAll(resourceGroupName, options) {
2063
- return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingAll_1() {
2064
- var _a, e_3, _b, _c;
2065
- try {
2066
- for (var _d = true, _e = tslib.__asyncValues(this.listByResourceGroupPagingPage(resourceGroupName, options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a;) {
2067
- _c = _f.value;
2068
- _d = false;
2069
- try {
2070
- const page = _c;
2071
- yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
2072
- }
2073
- finally {
2074
- _d = true;
2075
- }
2076
- }
2077
- }
2078
- catch (e_3_1) { e_3 = { error: e_3_1 }; }
2079
- finally {
2080
- try {
2081
- if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
2082
- }
2083
- finally { if (e_3) throw e_3.error; }
2084
- }
2085
- });
2086
- }
2087
- /**
2088
- * List the VM/VMSS resources currently being monitored by the Dynatrace resource.
2089
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
2090
- * @param monitorName Monitor resource name
2091
- * @param options The options parameters.
2092
- */
2093
- listHosts(resourceGroupName, monitorName, options) {
2094
- const iter = this.listHostsPagingAll(resourceGroupName, monitorName, options);
2095
- return {
2096
- next() {
2097
- return iter.next();
2098
- },
2099
- [Symbol.asyncIterator]() {
2100
- return this;
2101
- },
2102
- byPage: (settings) => {
2103
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
2104
- throw new Error("maxPageSize is not supported by this operation.");
2105
- }
2106
- return this.listHostsPagingPage(resourceGroupName, monitorName, options, settings);
2107
- }
2108
- };
2109
- }
2110
- listHostsPagingPage(resourceGroupName, monitorName, options, settings) {
2111
- return tslib.__asyncGenerator(this, arguments, function* listHostsPagingPage_1() {
2112
- let result;
2113
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
2114
- if (!continuationToken) {
2115
- result = yield tslib.__await(this._listHosts(resourceGroupName, monitorName, options));
2116
- let page = result.value || [];
2117
- continuationToken = result.nextLink;
2118
- setContinuationToken(page, continuationToken);
2119
- yield yield tslib.__await(page);
2120
- }
2121
- while (continuationToken) {
2122
- result = yield tslib.__await(this._listHostsNext(resourceGroupName, monitorName, continuationToken, options));
2123
- continuationToken = result.nextLink;
2124
- let page = result.value || [];
2125
- setContinuationToken(page, continuationToken);
2126
- yield yield tslib.__await(page);
2127
- }
2128
- });
2129
- }
2130
- listHostsPagingAll(resourceGroupName, monitorName, options) {
2131
- return tslib.__asyncGenerator(this, arguments, function* listHostsPagingAll_1() {
2132
- var _a, e_4, _b, _c;
2133
- try {
2134
- for (var _d = true, _e = tslib.__asyncValues(this.listHostsPagingPage(resourceGroupName, monitorName, options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a;) {
2135
- _c = _f.value;
2136
- _d = false;
2137
- try {
2138
- const page = _c;
2139
- yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
2140
- }
2141
- finally {
2142
- _d = true;
2143
- }
2144
- }
2145
- }
2146
- catch (e_4_1) { e_4 = { error: e_4_1 }; }
2147
- finally {
2148
- try {
2149
- if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
2150
- }
2151
- finally { if (e_4) throw e_4.error; }
2152
- }
2153
- });
2154
- }
2155
- /**
2156
- * Gets list of App Services with Dynatrace PaaS OneAgent enabled
2157
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
2158
- * @param monitorName Monitor resource name
2159
- * @param options The options parameters.
2160
- */
2161
- listAppServices(resourceGroupName, monitorName, options) {
2162
- const iter = this.listAppServicesPagingAll(resourceGroupName, monitorName, options);
2163
- return {
2164
- next() {
2165
- return iter.next();
2166
- },
2167
- [Symbol.asyncIterator]() {
2168
- return this;
2169
- },
2170
- byPage: (settings) => {
2171
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
2172
- throw new Error("maxPageSize is not supported by this operation.");
2173
- }
2174
- return this.listAppServicesPagingPage(resourceGroupName, monitorName, options, settings);
2175
- }
2176
- };
2177
- }
2178
- listAppServicesPagingPage(resourceGroupName, monitorName, options, settings) {
2179
- return tslib.__asyncGenerator(this, arguments, function* listAppServicesPagingPage_1() {
2180
- let result;
2181
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
2182
- if (!continuationToken) {
2183
- result = yield tslib.__await(this._listAppServices(resourceGroupName, monitorName, options));
2184
- let page = result.value || [];
2185
- continuationToken = result.nextLink;
2186
- setContinuationToken(page, continuationToken);
2187
- yield yield tslib.__await(page);
2188
- }
2189
- while (continuationToken) {
2190
- result = yield tslib.__await(this._listAppServicesNext(resourceGroupName, monitorName, continuationToken, options));
2191
- continuationToken = result.nextLink;
2192
- let page = result.value || [];
2193
- setContinuationToken(page, continuationToken);
2194
- yield yield tslib.__await(page);
2195
- }
2196
- });
2197
- }
2198
- listAppServicesPagingAll(resourceGroupName, monitorName, options) {
2199
- return tslib.__asyncGenerator(this, arguments, function* listAppServicesPagingAll_1() {
2200
- var _a, e_5, _b, _c;
2201
- try {
2202
- for (var _d = true, _e = tslib.__asyncValues(this.listAppServicesPagingPage(resourceGroupName, monitorName, options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a;) {
2203
- _c = _f.value;
2204
- _d = false;
2205
- try {
2206
- const page = _c;
2207
- yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
2208
- }
2209
- finally {
2210
- _d = true;
2211
- }
2212
- }
2213
- }
2214
- catch (e_5_1) { e_5 = { error: e_5_1 }; }
2215
- finally {
2216
- try {
2217
- if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
2218
- }
2219
- finally { if (e_5) throw e_5.error; }
2220
- }
2221
- });
2222
- }
2223
- /**
2224
- * Gets all the Dynatrace environments that a user can link a azure resource to
2225
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
2226
- * @param monitorName Monitor resource name
2227
- * @param request The details of the linkable environment request.
2228
- * @param options The options parameters.
2229
- */
2230
- listLinkableEnvironments(resourceGroupName, monitorName, request, options) {
2231
- const iter = this.listLinkableEnvironmentsPagingAll(resourceGroupName, monitorName, request, options);
2232
- return {
2233
- next() {
2234
- return iter.next();
2235
- },
2236
- [Symbol.asyncIterator]() {
2237
- return this;
2238
- },
2239
- byPage: (settings) => {
2240
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
2241
- throw new Error("maxPageSize is not supported by this operation.");
2242
- }
2243
- return this.listLinkableEnvironmentsPagingPage(resourceGroupName, monitorName, request, options, settings);
2244
- }
2245
- };
2246
- }
2247
- listLinkableEnvironmentsPagingPage(resourceGroupName, monitorName, request, options, settings) {
2248
- return tslib.__asyncGenerator(this, arguments, function* listLinkableEnvironmentsPagingPage_1() {
2249
- let result;
2250
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
2251
- if (!continuationToken) {
2252
- result = yield tslib.__await(this._listLinkableEnvironments(resourceGroupName, monitorName, request, options));
2253
- let page = result.value || [];
2254
- continuationToken = result.nextLink;
2255
- setContinuationToken(page, continuationToken);
2256
- yield yield tslib.__await(page);
2257
- }
2258
- while (continuationToken) {
2259
- result = yield tslib.__await(this._listLinkableEnvironmentsNext(resourceGroupName, monitorName, request, continuationToken, options));
2260
- continuationToken = result.nextLink;
2261
- let page = result.value || [];
2262
- setContinuationToken(page, continuationToken);
2263
- yield yield tslib.__await(page);
2264
- }
2265
- });
2266
- }
2267
- listLinkableEnvironmentsPagingAll(resourceGroupName, monitorName, request, options) {
2268
- return tslib.__asyncGenerator(this, arguments, function* listLinkableEnvironmentsPagingAll_1() {
2269
- var _a, e_6, _b, _c;
2270
- try {
2271
- for (var _d = true, _e = tslib.__asyncValues(this.listLinkableEnvironmentsPagingPage(resourceGroupName, monitorName, request, options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a;) {
2272
- _c = _f.value;
2273
- _d = false;
2274
- try {
2275
- const page = _c;
2276
- yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
2277
- }
2278
- finally {
2279
- _d = true;
2280
- }
2281
- }
2282
- }
2283
- catch (e_6_1) { e_6 = { error: e_6_1 }; }
2284
- finally {
2285
- try {
2286
- if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
2287
- }
2288
- finally { if (e_6) throw e_6.error; }
2289
- }
2290
- });
2291
- }
2292
- /**
2293
- * List the resources currently being monitored by the Dynatrace monitor resource.
2294
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
2295
- * @param monitorName Monitor resource name
2296
- * @param options The options parameters.
2297
- */
2298
- _listMonitoredResources(resourceGroupName, monitorName, options) {
2299
- return this.client.sendOperationRequest({ resourceGroupName, monitorName, options }, listMonitoredResourcesOperationSpec);
2300
- }
2301
- /**
2302
- * Returns the payload that needs to be passed in the request body for installing Dynatrace agent on a
2303
- * VM.
2304
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
2305
- * @param monitorName Monitor resource name
2306
- * @param options The options parameters.
2307
- */
2308
- getVMHostPayload(resourceGroupName, monitorName, options) {
2309
- return this.client.sendOperationRequest({ resourceGroupName, monitorName, options }, getVMHostPayloadOperationSpec);
2310
- }
2311
- /**
2312
- * Get a MonitorResource
2313
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
2314
- * @param monitorName Monitor resource name
2315
- * @param options The options parameters.
2316
- */
2317
- get(resourceGroupName, monitorName, options) {
2318
- return this.client.sendOperationRequest({ resourceGroupName, monitorName, options }, getOperationSpec$2);
2319
- }
2320
- /**
2321
- * Create a MonitorResource
2322
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
2323
- * @param monitorName Monitor resource name
2324
- * @param resource Resource create parameters.
2325
- * @param options The options parameters.
2326
- */
2327
- beginCreateOrUpdate(resourceGroupName, monitorName, resource, options) {
2328
- return tslib.__awaiter(this, void 0, void 0, function* () {
2329
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
2330
- return this.client.sendOperationRequest(args, spec);
2331
- });
2332
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
2333
- var _a;
2334
- let currentRawResponse = undefined;
2335
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
2336
- const callback = (rawResponse, flatResponse) => {
2337
- currentRawResponse = rawResponse;
2338
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
2339
- };
2340
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
2341
- const flatResponse = yield directSendOperation(updatedArgs, spec);
2342
- return {
2343
- flatResponse,
2344
- rawResponse: {
2345
- statusCode: currentRawResponse.status,
2346
- body: currentRawResponse.parsedBody,
2347
- headers: currentRawResponse.headers.toJSON()
2348
- }
2349
- };
2350
- });
2351
- const lro = createLroSpec({
2352
- sendOperationFn,
2353
- args: { resourceGroupName, monitorName, resource, options },
2354
- spec: createOrUpdateOperationSpec$2
2355
- });
2356
- const poller = yield coreLro.createHttpPoller(lro, {
2357
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
2358
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
2359
- resourceLocationConfig: "azure-async-operation"
2360
- });
2361
- yield poller.poll();
2362
- return poller;
2363
- });
2364
- }
2365
- /**
2366
- * Create a MonitorResource
2367
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
2368
- * @param monitorName Monitor resource name
2369
- * @param resource Resource create parameters.
2370
- * @param options The options parameters.
2371
- */
2372
- beginCreateOrUpdateAndWait(resourceGroupName, monitorName, resource, options) {
2373
- return tslib.__awaiter(this, void 0, void 0, function* () {
2374
- const poller = yield this.beginCreateOrUpdate(resourceGroupName, monitorName, resource, options);
2375
- return poller.pollUntilDone();
2376
- });
2377
- }
2378
- /**
2379
- * Update a MonitorResource
2380
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
2381
- * @param monitorName Monitor resource name
2382
- * @param resource The resource properties to be updated.
2383
- * @param options The options parameters.
2384
- */
2385
- update(resourceGroupName, monitorName, resource, options) {
2386
- return this.client.sendOperationRequest({ resourceGroupName, monitorName, resource, options }, updateOperationSpec);
2387
- }
2388
- /**
2389
- * Delete a MonitorResource
2390
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
2391
- * @param monitorName Monitor resource name
2392
- * @param options The options parameters.
2393
- */
2394
- beginDelete(resourceGroupName, monitorName, options) {
2395
- return tslib.__awaiter(this, void 0, void 0, function* () {
2396
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
2397
- return this.client.sendOperationRequest(args, spec);
2398
- });
2399
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
2400
- var _a;
2401
- let currentRawResponse = undefined;
2402
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
2403
- const callback = (rawResponse, flatResponse) => {
2404
- currentRawResponse = rawResponse;
2405
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
2406
- };
2407
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
2408
- const flatResponse = yield directSendOperation(updatedArgs, spec);
2409
- return {
2410
- flatResponse,
2411
- rawResponse: {
2412
- statusCode: currentRawResponse.status,
2413
- body: currentRawResponse.parsedBody,
2414
- headers: currentRawResponse.headers.toJSON()
2415
- }
2416
- };
2417
- });
2418
- const lro = createLroSpec({
2419
- sendOperationFn,
2420
- args: { resourceGroupName, monitorName, options },
2421
- spec: deleteOperationSpec$1
2422
- });
2423
- const poller = yield coreLro.createHttpPoller(lro, {
2424
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
2425
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
2426
- resourceLocationConfig: "azure-async-operation"
2427
- });
2428
- yield poller.poll();
2429
- return poller;
2430
- });
2431
- }
2432
- /**
2433
- * Delete a MonitorResource
2434
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
2435
- * @param monitorName Monitor resource name
2436
- * @param options The options parameters.
2437
- */
2438
- beginDeleteAndWait(resourceGroupName, monitorName, options) {
2439
- return tslib.__awaiter(this, void 0, void 0, function* () {
2440
- const poller = yield this.beginDelete(resourceGroupName, monitorName, options);
2441
- return poller.pollUntilDone();
2442
- });
2443
- }
2444
- /**
2445
- * List all MonitorResource by subscriptionId
2446
- * @param options The options parameters.
2447
- */
2448
- _listBySubscriptionId(options) {
2449
- return this.client.sendOperationRequest({ options }, listBySubscriptionIdOperationSpec);
2450
- }
2451
- /**
2452
- * List MonitorResource resources by resource group
2453
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
2454
- * @param options The options parameters.
2455
- */
2456
- _listByResourceGroup(resourceGroupName, options) {
2457
- return this.client.sendOperationRequest({ resourceGroupName, options }, listByResourceGroupOperationSpec);
2458
- }
2459
- /**
2460
- * Get Marketplace SaaS resource details of a tenant under a specific subscription
2461
- * @param request Tenant Id
2462
- * @param options The options parameters.
2463
- */
2464
- getMarketplaceSaaSResourceDetails(request, options) {
2465
- return this.client.sendOperationRequest({ request, options }, getMarketplaceSaaSResourceDetailsOperationSpec);
2466
- }
2467
- /**
2468
- * List the VM/VMSS resources currently being monitored by the Dynatrace resource.
2469
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
2470
- * @param monitorName Monitor resource name
2471
- * @param options The options parameters.
2472
- */
2473
- _listHosts(resourceGroupName, monitorName, options) {
2474
- return this.client.sendOperationRequest({ resourceGroupName, monitorName, options }, listHostsOperationSpec);
2475
- }
2476
- /**
2477
- * Get metric status
2478
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
2479
- * @param monitorName Name of the Monitor resource
2480
- * @param options The options parameters.
2481
- */
2482
- getMetricStatus(resourceGroupName, monitorName, options) {
2483
- return this.client.sendOperationRequest({ resourceGroupName, monitorName, options }, getMetricStatusOperationSpec);
2484
- }
2485
- /**
2486
- * Gets list of App Services with Dynatrace PaaS OneAgent enabled
2487
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
2488
- * @param monitorName Monitor resource name
2489
- * @param options The options parameters.
2490
- */
2491
- _listAppServices(resourceGroupName, monitorName, options) {
2492
- return this.client.sendOperationRequest({ resourceGroupName, monitorName, options }, listAppServicesOperationSpec);
2493
- }
2494
- /**
2495
- * Gets the SSO configuration details from the partner.
2496
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
2497
- * @param monitorName Monitor resource name
2498
- * @param options The options parameters.
2499
- */
2500
- getSSODetails(resourceGroupName, monitorName, options) {
2501
- return this.client.sendOperationRequest({ resourceGroupName, monitorName, options }, getSSODetailsOperationSpec);
2502
- }
2503
- /**
2504
- * Gets all the Dynatrace environments that a user can link a azure resource to
2505
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
2506
- * @param monitorName Monitor resource name
2507
- * @param request The details of the linkable environment request.
2508
- * @param options The options parameters.
2509
- */
2510
- _listLinkableEnvironments(resourceGroupName, monitorName, request, options) {
2511
- return this.client.sendOperationRequest({ resourceGroupName, monitorName, request, options }, listLinkableEnvironmentsOperationSpec);
2512
- }
2513
- /**
2514
- * ListMonitoredResourcesNext
2515
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
2516
- * @param monitorName Monitor resource name
2517
- * @param nextLink The nextLink from the previous successful call to the ListMonitoredResources method.
2518
- * @param options The options parameters.
2519
- */
2520
- _listMonitoredResourcesNext(resourceGroupName, monitorName, nextLink, options) {
2521
- return this.client.sendOperationRequest({ resourceGroupName, monitorName, nextLink, options }, listMonitoredResourcesNextOperationSpec);
2522
- }
2523
- /**
2524
- * ListBySubscriptionIdNext
2525
- * @param nextLink The nextLink from the previous successful call to the ListBySubscriptionId method.
2526
- * @param options The options parameters.
2527
- */
2528
- _listBySubscriptionIdNext(nextLink, options) {
2529
- return this.client.sendOperationRequest({ nextLink, options }, listBySubscriptionIdNextOperationSpec);
2530
- }
2531
- /**
2532
- * ListByResourceGroupNext
2533
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
2534
- * @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.
2535
- * @param options The options parameters.
2536
- */
2537
- _listByResourceGroupNext(resourceGroupName, nextLink, options) {
2538
- return this.client.sendOperationRequest({ resourceGroupName, nextLink, options }, listByResourceGroupNextOperationSpec);
2539
- }
2540
- /**
2541
- * ListHostsNext
2542
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
2543
- * @param monitorName Monitor resource name
2544
- * @param nextLink The nextLink from the previous successful call to the ListHosts method.
2545
- * @param options The options parameters.
2546
- */
2547
- _listHostsNext(resourceGroupName, monitorName, nextLink, options) {
2548
- return this.client.sendOperationRequest({ resourceGroupName, monitorName, nextLink, options }, listHostsNextOperationSpec);
2549
- }
2550
- /**
2551
- * ListAppServicesNext
2552
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
2553
- * @param monitorName Monitor resource name
2554
- * @param nextLink The nextLink from the previous successful call to the ListAppServices method.
2555
- * @param options The options parameters.
2556
- */
2557
- _listAppServicesNext(resourceGroupName, monitorName, nextLink, options) {
2558
- return this.client.sendOperationRequest({ resourceGroupName, monitorName, nextLink, options }, listAppServicesNextOperationSpec);
2559
- }
2560
- /**
2561
- * ListLinkableEnvironmentsNext
2562
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
2563
- * @param monitorName Monitor resource name
2564
- * @param request The details of the linkable environment request.
2565
- * @param nextLink The nextLink from the previous successful call to the ListLinkableEnvironments
2566
- * method.
2567
- * @param options The options parameters.
2568
- */
2569
- _listLinkableEnvironmentsNext(resourceGroupName, monitorName, request, nextLink, options) {
2570
- return this.client.sendOperationRequest({ resourceGroupName, monitorName, request, nextLink, options }, listLinkableEnvironmentsNextOperationSpec);
2571
- }
2572
- }
2573
- // Operation Specifications
2574
- const serializer$3 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
2575
- const listMonitoredResourcesOperationSpec = {
2576
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Dynatrace.Observability/monitors/{monitorName}/listMonitoredResources",
2577
- httpMethod: "POST",
2578
- responses: {
2579
- 200: {
2580
- bodyMapper: MonitoredResourceListResponse
2581
- },
2582
- default: {
2583
- bodyMapper: ErrorResponse
2584
- }
2585
- },
2586
- queryParameters: [apiVersion],
2587
- urlParameters: [
2588
- $host,
2589
- subscriptionId,
2590
- resourceGroupName,
2591
- monitorName
2592
- ],
2593
- headerParameters: [accept],
2594
- serializer: serializer$3
2595
- };
2596
- const getVMHostPayloadOperationSpec = {
2597
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Dynatrace.Observability/monitors/{monitorName}/getVMHostPayload",
2598
- httpMethod: "POST",
2599
- responses: {
2600
- 200: {
2601
- bodyMapper: VMExtensionPayload
2602
- },
2603
- default: {
2604
- bodyMapper: ErrorResponse
2605
- }
2606
- },
2607
- queryParameters: [apiVersion],
2608
- urlParameters: [
2609
- $host,
2610
- subscriptionId,
2611
- resourceGroupName,
2612
- monitorName
2613
- ],
2614
- headerParameters: [accept],
2615
- serializer: serializer$3
2616
- };
2617
- const getOperationSpec$2 = {
2618
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Dynatrace.Observability/monitors/{monitorName}",
2619
- httpMethod: "GET",
2620
- responses: {
2621
- 200: {
2622
- bodyMapper: MonitorResource
2623
- },
2624
- default: {
2625
- bodyMapper: ErrorResponse
2626
- }
2627
- },
2628
- queryParameters: [apiVersion],
2629
- urlParameters: [
2630
- $host,
2631
- subscriptionId,
2632
- resourceGroupName,
2633
- monitorName
2634
- ],
2635
- headerParameters: [accept],
2636
- serializer: serializer$3
2637
- };
2638
- const createOrUpdateOperationSpec$2 = {
2639
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Dynatrace.Observability/monitors/{monitorName}",
2640
- httpMethod: "PUT",
2641
- responses: {
2642
- 200: {
2643
- bodyMapper: MonitorResource
2644
- },
2645
- 201: {
2646
- bodyMapper: MonitorResource
2647
- },
2648
- 202: {
2649
- bodyMapper: MonitorResource
2650
- },
2651
- 204: {
2652
- bodyMapper: MonitorResource
2653
- },
2654
- default: {
2655
- bodyMapper: ErrorResponse
2656
- }
2657
- },
2658
- requestBody: resource,
2659
- queryParameters: [apiVersion],
2660
- urlParameters: [
2661
- $host,
2662
- subscriptionId,
2663
- resourceGroupName,
2664
- monitorName
2665
- ],
2666
- headerParameters: [accept, contentType],
2667
- mediaType: "json",
2668
- serializer: serializer$3
2669
- };
2670
- const updateOperationSpec = {
2671
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Dynatrace.Observability/monitors/{monitorName}",
2672
- httpMethod: "PATCH",
2673
- responses: {
2674
- 200: {
2675
- bodyMapper: MonitorResource
2676
- },
2677
- default: {
2678
- bodyMapper: ErrorResponse
2679
- }
2680
- },
2681
- requestBody: resource1,
2682
- queryParameters: [apiVersion],
2683
- urlParameters: [
2684
- $host,
2685
- subscriptionId,
2686
- resourceGroupName,
2687
- monitorName
2688
- ],
2689
- headerParameters: [accept, contentType],
2690
- mediaType: "json",
2691
- serializer: serializer$3
2692
- };
2693
- const deleteOperationSpec$1 = {
2694
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Dynatrace.Observability/monitors/{monitorName}",
2695
- httpMethod: "DELETE",
2696
- responses: {
2697
- 200: {},
2698
- 201: {},
2699
- 202: {},
2700
- 204: {},
2701
- default: {
2702
- bodyMapper: ErrorResponse
2703
- }
2704
- },
2705
- queryParameters: [apiVersion],
2706
- urlParameters: [
2707
- $host,
2708
- subscriptionId,
2709
- resourceGroupName,
2710
- monitorName
2711
- ],
2712
- headerParameters: [accept],
2713
- serializer: serializer$3
2714
- };
2715
- const listBySubscriptionIdOperationSpec = {
2716
- path: "/subscriptions/{subscriptionId}/providers/Dynatrace.Observability/monitors",
2717
- httpMethod: "GET",
2718
- responses: {
2719
- 200: {
2720
- bodyMapper: MonitorResourceListResult
2721
- },
2722
- default: {
2723
- bodyMapper: ErrorResponse
2724
- }
2725
- },
2726
- queryParameters: [apiVersion],
2727
- urlParameters: [$host, subscriptionId],
2728
- headerParameters: [accept],
2729
- serializer: serializer$3
2730
- };
2731
- const listByResourceGroupOperationSpec = {
2732
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Dynatrace.Observability/monitors",
2733
- httpMethod: "GET",
2734
- responses: {
2735
- 200: {
2736
- bodyMapper: MonitorResourceListResult
2737
- },
2738
- default: {
2739
- bodyMapper: ErrorResponse
2740
- }
2741
- },
2742
- queryParameters: [apiVersion],
2743
- urlParameters: [
2744
- $host,
2745
- subscriptionId,
2746
- resourceGroupName
2747
- ],
2748
- headerParameters: [accept],
2749
- serializer: serializer$3
2750
- };
2751
- const getMarketplaceSaaSResourceDetailsOperationSpec = {
2752
- path: "/subscriptions/{subscriptionId}/providers/Dynatrace.Observability/getMarketplaceSaaSResourceDetails",
2753
- httpMethod: "POST",
2754
- responses: {
2755
- 200: {
2756
- bodyMapper: MarketplaceSaaSResourceDetailsResponse
2757
- },
2758
- 404: {
2759
- isError: true
2760
- },
2761
- default: {
2762
- bodyMapper: ErrorResponse
2763
- }
2764
- },
2765
- requestBody: request,
2766
- queryParameters: [apiVersion],
2767
- urlParameters: [$host, subscriptionId],
2768
- headerParameters: [accept, contentType],
2769
- mediaType: "json",
2770
- serializer: serializer$3
2771
- };
2772
- const listHostsOperationSpec = {
2773
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Dynatrace.Observability/monitors/{monitorName}/listHosts",
2774
- httpMethod: "POST",
2775
- responses: {
2776
- 200: {
2777
- bodyMapper: VMHostsListResponse
2778
- },
2779
- default: {
2780
- bodyMapper: ErrorResponse
2781
- }
2782
- },
2783
- queryParameters: [apiVersion],
2784
- urlParameters: [
2785
- $host,
2786
- subscriptionId,
2787
- resourceGroupName,
2788
- monitorName
2789
- ],
2790
- headerParameters: [accept],
2791
- serializer: serializer$3
2792
- };
2793
- const getMetricStatusOperationSpec = {
2794
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Dynatrace.Observability/monitors/{monitorName}/getMetricStatus",
2795
- httpMethod: "POST",
2796
- responses: {
2797
- 200: {
2798
- bodyMapper: MetricsStatusResponse
2799
- },
2800
- default: {
2801
- bodyMapper: ErrorResponse
2802
- }
2803
- },
2804
- queryParameters: [apiVersion],
2805
- urlParameters: [
2806
- $host,
2807
- subscriptionId,
2808
- resourceGroupName,
2809
- monitorName
2810
- ],
2811
- headerParameters: [accept],
2812
- serializer: serializer$3
2813
- };
2814
- const listAppServicesOperationSpec = {
2815
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Dynatrace.Observability/monitors/{monitorName}/listAppServices",
2816
- httpMethod: "POST",
2817
- responses: {
2818
- 200: {
2819
- bodyMapper: AppServiceListResponse
2820
- },
2821
- default: {
2822
- bodyMapper: ErrorResponse
2823
- }
2824
- },
2825
- queryParameters: [apiVersion],
2826
- urlParameters: [
2827
- $host,
2828
- subscriptionId,
2829
- resourceGroupName,
2830
- monitorName
2831
- ],
2832
- headerParameters: [accept],
2833
- serializer: serializer$3
2834
- };
2835
- const getSSODetailsOperationSpec = {
2836
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Dynatrace.Observability/monitors/{monitorName}/getSSODetails",
2837
- httpMethod: "POST",
2838
- responses: {
2839
- 200: {
2840
- bodyMapper: SSODetailsResponse
2841
- },
2842
- 401: {
2843
- isError: true
2844
- },
2845
- default: {
2846
- bodyMapper: ErrorResponse
2847
- }
2848
- },
2849
- requestBody: request1,
2850
- queryParameters: [apiVersion],
2851
- urlParameters: [
2852
- $host,
2853
- subscriptionId,
2854
- resourceGroupName,
2855
- monitorName
2856
- ],
2857
- headerParameters: [accept, contentType],
2858
- mediaType: "json",
2859
- serializer: serializer$3
2860
- };
2861
- const listLinkableEnvironmentsOperationSpec = {
2862
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Dynatrace.Observability/monitors/{monitorName}/listLinkableEnvironments",
2863
- httpMethod: "POST",
2864
- responses: {
2865
- 200: {
2866
- bodyMapper: LinkableEnvironmentListResponse
2867
- },
2868
- default: {
2869
- bodyMapper: ErrorResponse
2870
- }
2871
- },
2872
- requestBody: request2,
2873
- queryParameters: [apiVersion],
2874
- urlParameters: [
2875
- $host,
2876
- subscriptionId,
2877
- resourceGroupName,
2878
- monitorName
2879
- ],
2880
- headerParameters: [accept, contentType],
2881
- mediaType: "json",
2882
- serializer: serializer$3
2883
- };
2884
- const listMonitoredResourcesNextOperationSpec = {
2885
- path: "{nextLink}",
2886
- httpMethod: "GET",
2887
- responses: {
2888
- 200: {
2889
- bodyMapper: MonitoredResourceListResponse
2890
- },
2891
- default: {
2892
- bodyMapper: ErrorResponse
2893
- }
2894
- },
2895
- urlParameters: [
2896
- $host,
2897
- subscriptionId,
2898
- resourceGroupName,
2899
- monitorName,
2900
- nextLink
2901
- ],
2902
- headerParameters: [accept],
2903
- serializer: serializer$3
2904
- };
2905
- const listBySubscriptionIdNextOperationSpec = {
2906
- path: "{nextLink}",
2907
- httpMethod: "GET",
2908
- responses: {
2909
- 200: {
2910
- bodyMapper: MonitorResourceListResult
2911
- },
2912
- default: {
2913
- bodyMapper: ErrorResponse
2914
- }
2915
- },
2916
- urlParameters: [
2917
- $host,
2918
- subscriptionId,
2919
- nextLink
2920
- ],
2921
- headerParameters: [accept],
2922
- serializer: serializer$3
2923
- };
2924
- const listByResourceGroupNextOperationSpec = {
2925
- path: "{nextLink}",
2926
- httpMethod: "GET",
2927
- responses: {
2928
- 200: {
2929
- bodyMapper: MonitorResourceListResult
2930
- },
2931
- default: {
2932
- bodyMapper: ErrorResponse
2933
- }
2934
- },
2935
- urlParameters: [
2936
- $host,
2937
- subscriptionId,
2938
- resourceGroupName,
2939
- nextLink
2940
- ],
2941
- headerParameters: [accept],
2942
- serializer: serializer$3
2943
- };
2944
- const listHostsNextOperationSpec = {
2945
- path: "{nextLink}",
2946
- httpMethod: "GET",
2947
- responses: {
2948
- 200: {
2949
- bodyMapper: VMHostsListResponse
2950
- },
2951
- default: {
2952
- bodyMapper: ErrorResponse
2953
- }
2954
- },
2955
- urlParameters: [
2956
- $host,
2957
- subscriptionId,
2958
- resourceGroupName,
2959
- monitorName,
2960
- nextLink
2961
- ],
2962
- headerParameters: [accept],
2963
- serializer: serializer$3
2964
- };
2965
- const listAppServicesNextOperationSpec = {
2966
- path: "{nextLink}",
2967
- httpMethod: "GET",
2968
- responses: {
2969
- 200: {
2970
- bodyMapper: AppServiceListResponse
2971
- },
2972
- default: {
2973
- bodyMapper: ErrorResponse
2974
- }
2975
- },
2976
- urlParameters: [
2977
- $host,
2978
- subscriptionId,
2979
- resourceGroupName,
2980
- monitorName,
2981
- nextLink
2982
- ],
2983
- headerParameters: [accept],
2984
- serializer: serializer$3
2985
- };
2986
- const listLinkableEnvironmentsNextOperationSpec = {
2987
- path: "{nextLink}",
2988
- httpMethod: "GET",
2989
- responses: {
2990
- 200: {
2991
- bodyMapper: LinkableEnvironmentListResponse
2992
- },
2993
- default: {
2994
- bodyMapper: ErrorResponse
2995
- }
2996
- },
2997
- urlParameters: [
2998
- $host,
2999
- subscriptionId,
3000
- resourceGroupName,
3001
- monitorName,
3002
- nextLink
3003
- ],
3004
- headerParameters: [accept, contentType],
3005
- mediaType: "json",
3006
- serializer: serializer$3
3007
- };
3008
-
3009
- /*
3010
- * Copyright (c) Microsoft Corporation.
3011
- * Licensed under the MIT License.
3012
- *
3013
- * Code generated by Microsoft (R) AutoRest Code Generator.
3014
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
3015
- */
3016
- /// <reference lib="esnext.asynciterable" />
3017
- /** Class containing Operations operations. */
3018
- class OperationsImpl {
3019
- /**
3020
- * Initialize a new instance of the class Operations class.
3021
- * @param client Reference to the service client
3022
- */
3023
- constructor(client) {
3024
- this.client = client;
3025
- }
3026
- /**
3027
- * List the operations for Dynatrace.Observability
3028
- * @param options The options parameters.
3029
- */
3030
- list(options) {
3031
- const iter = this.listPagingAll(options);
3032
- return {
3033
- next() {
3034
- return iter.next();
3035
- },
3036
- [Symbol.asyncIterator]() {
3037
- return this;
3038
- },
3039
- byPage: (settings) => {
3040
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
3041
- throw new Error("maxPageSize is not supported by this operation.");
3042
- }
3043
- return this.listPagingPage(options, settings);
3044
- }
3045
- };
3046
- }
3047
- listPagingPage(options, settings) {
3048
- return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
3049
- let result;
3050
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
3051
- if (!continuationToken) {
3052
- result = yield tslib.__await(this._list(options));
3053
- let page = result.value || [];
3054
- continuationToken = result.nextLink;
3055
- setContinuationToken(page, continuationToken);
3056
- yield yield tslib.__await(page);
3057
- }
3058
- while (continuationToken) {
3059
- result = yield tslib.__await(this._listNext(continuationToken, options));
3060
- continuationToken = result.nextLink;
3061
- let page = result.value || [];
3062
- setContinuationToken(page, continuationToken);
3063
- yield yield tslib.__await(page);
3064
- }
3065
- });
3066
- }
3067
- listPagingAll(options) {
3068
- return tslib.__asyncGenerator(this, arguments, function* listPagingAll_1() {
3069
- var _a, e_1, _b, _c;
3070
- try {
3071
- for (var _d = true, _e = tslib.__asyncValues(this.listPagingPage(options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a;) {
3072
- _c = _f.value;
3073
- _d = false;
3074
- try {
3075
- const page = _c;
3076
- yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
3077
- }
3078
- finally {
3079
- _d = true;
3080
- }
3081
- }
3082
- }
3083
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
3084
- finally {
3085
- try {
3086
- if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
3087
- }
3088
- finally { if (e_1) throw e_1.error; }
3089
- }
3090
- });
3091
- }
3092
- /**
3093
- * List the operations for Dynatrace.Observability
3094
- * @param options The options parameters.
3095
- */
3096
- _list(options) {
3097
- return this.client.sendOperationRequest({ options }, listOperationSpec$2);
3098
- }
3099
- /**
3100
- * ListNext
3101
- * @param nextLink The nextLink from the previous successful call to the List method.
3102
- * @param options The options parameters.
3103
- */
3104
- _listNext(nextLink, options) {
3105
- return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec$2);
3106
- }
3107
- }
3108
- // Operation Specifications
3109
- const serializer$2 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
3110
- const listOperationSpec$2 = {
3111
- path: "/providers/Dynatrace.Observability/operations",
3112
- httpMethod: "GET",
3113
- responses: {
3114
- 200: {
3115
- bodyMapper: OperationListResult
3116
- },
3117
- default: {
3118
- bodyMapper: ErrorResponse
3119
- }
3120
- },
3121
- queryParameters: [apiVersion],
3122
- urlParameters: [$host],
3123
- headerParameters: [accept],
3124
- serializer: serializer$2
3125
- };
3126
- const listNextOperationSpec$2 = {
3127
- path: "{nextLink}",
3128
- httpMethod: "GET",
3129
- responses: {
3130
- 200: {
3131
- bodyMapper: OperationListResult
3132
- },
3133
- default: {
3134
- bodyMapper: ErrorResponse
3135
- }
3136
- },
3137
- urlParameters: [$host, nextLink],
3138
- headerParameters: [accept],
3139
- serializer: serializer$2
3140
- };
3141
-
3142
- /*
3143
- * Copyright (c) Microsoft Corporation.
3144
- * Licensed under the MIT License.
3145
- *
3146
- * Code generated by Microsoft (R) AutoRest Code Generator.
3147
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
3148
- */
3149
- /// <reference lib="esnext.asynciterable" />
3150
- /** Class containing TagRules operations. */
3151
- class TagRulesImpl {
3152
- /**
3153
- * Initialize a new instance of the class TagRules class.
3154
- * @param client Reference to the service client
3155
- */
3156
- constructor(client) {
3157
- this.client = client;
3158
- }
3159
- /**
3160
- * List all TagRule by monitorName
3161
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
3162
- * @param monitorName Monitor resource name
3163
- * @param options The options parameters.
3164
- */
3165
- list(resourceGroupName, monitorName, options) {
3166
- const iter = this.listPagingAll(resourceGroupName, monitorName, options);
3167
- return {
3168
- next() {
3169
- return iter.next();
3170
- },
3171
- [Symbol.asyncIterator]() {
3172
- return this;
3173
- },
3174
- byPage: (settings) => {
3175
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
3176
- throw new Error("maxPageSize is not supported by this operation.");
3177
- }
3178
- return this.listPagingPage(resourceGroupName, monitorName, options, settings);
3179
- }
3180
- };
3181
- }
3182
- listPagingPage(resourceGroupName, monitorName, options, settings) {
3183
- return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
3184
- let result;
3185
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
3186
- if (!continuationToken) {
3187
- result = yield tslib.__await(this._list(resourceGroupName, monitorName, options));
3188
- let page = result.value || [];
3189
- continuationToken = result.nextLink;
3190
- setContinuationToken(page, continuationToken);
3191
- yield yield tslib.__await(page);
3192
- }
3193
- while (continuationToken) {
3194
- result = yield tslib.__await(this._listNext(resourceGroupName, monitorName, continuationToken, options));
3195
- continuationToken = result.nextLink;
3196
- let page = result.value || [];
3197
- setContinuationToken(page, continuationToken);
3198
- yield yield tslib.__await(page);
3199
- }
3200
- });
3201
- }
3202
- listPagingAll(resourceGroupName, monitorName, options) {
3203
- return tslib.__asyncGenerator(this, arguments, function* listPagingAll_1() {
3204
- var _a, e_1, _b, _c;
3205
- try {
3206
- for (var _d = true, _e = tslib.__asyncValues(this.listPagingPage(resourceGroupName, monitorName, options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a;) {
3207
- _c = _f.value;
3208
- _d = false;
3209
- try {
3210
- const page = _c;
3211
- yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
3212
- }
3213
- finally {
3214
- _d = true;
3215
- }
3216
- }
3217
- }
3218
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
3219
- finally {
3220
- try {
3221
- if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
3222
- }
3223
- finally { if (e_1) throw e_1.error; }
3224
- }
3225
- });
3226
- }
3227
- /**
3228
- * Get a TagRule
3229
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
3230
- * @param monitorName Monitor resource name
3231
- * @param ruleSetName Monitor resource name
3232
- * @param options The options parameters.
3233
- */
3234
- get(resourceGroupName, monitorName, ruleSetName, options) {
3235
- return this.client.sendOperationRequest({ resourceGroupName, monitorName, ruleSetName, options }, getOperationSpec$1);
3236
- }
3237
- /**
3238
- * Create a TagRule
3239
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
3240
- * @param monitorName Monitor resource name
3241
- * @param ruleSetName Monitor resource name
3242
- * @param resource Resource create parameters.
3243
- * @param options The options parameters.
3244
- */
3245
- beginCreateOrUpdate(resourceGroupName, monitorName, ruleSetName, resource, options) {
3246
- return tslib.__awaiter(this, void 0, void 0, function* () {
3247
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
3248
- return this.client.sendOperationRequest(args, spec);
3249
- });
3250
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
3251
- var _a;
3252
- let currentRawResponse = undefined;
3253
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
3254
- const callback = (rawResponse, flatResponse) => {
3255
- currentRawResponse = rawResponse;
3256
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
3257
- };
3258
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
3259
- const flatResponse = yield directSendOperation(updatedArgs, spec);
3260
- return {
3261
- flatResponse,
3262
- rawResponse: {
3263
- statusCode: currentRawResponse.status,
3264
- body: currentRawResponse.parsedBody,
3265
- headers: currentRawResponse.headers.toJSON()
3266
- }
3267
- };
3268
- });
3269
- const lro = createLroSpec({
3270
- sendOperationFn,
3271
- args: { resourceGroupName, monitorName, ruleSetName, resource, options },
3272
- spec: createOrUpdateOperationSpec$1
3273
- });
3274
- const poller = yield coreLro.createHttpPoller(lro, {
3275
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
3276
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
3277
- resourceLocationConfig: "azure-async-operation"
3278
- });
3279
- yield poller.poll();
3280
- return poller;
3281
- });
3282
- }
3283
- /**
3284
- * Create a TagRule
3285
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
3286
- * @param monitorName Monitor resource name
3287
- * @param ruleSetName Monitor resource name
3288
- * @param resource Resource create parameters.
3289
- * @param options The options parameters.
3290
- */
3291
- beginCreateOrUpdateAndWait(resourceGroupName, monitorName, ruleSetName, resource, options) {
3292
- return tslib.__awaiter(this, void 0, void 0, function* () {
3293
- const poller = yield this.beginCreateOrUpdate(resourceGroupName, monitorName, ruleSetName, resource, options);
3294
- return poller.pollUntilDone();
3295
- });
3296
- }
3297
- /**
3298
- * Delete a TagRule
3299
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
3300
- * @param monitorName Monitor resource name
3301
- * @param ruleSetName Monitor resource name
3302
- * @param options The options parameters.
3303
- */
3304
- beginDelete(resourceGroupName, monitorName, ruleSetName, options) {
3305
- return tslib.__awaiter(this, void 0, void 0, function* () {
3306
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
3307
- return this.client.sendOperationRequest(args, spec);
3308
- });
3309
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
3310
- var _a;
3311
- let currentRawResponse = undefined;
3312
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
3313
- const callback = (rawResponse, flatResponse) => {
3314
- currentRawResponse = rawResponse;
3315
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
3316
- };
3317
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
3318
- const flatResponse = yield directSendOperation(updatedArgs, spec);
3319
- return {
3320
- flatResponse,
3321
- rawResponse: {
3322
- statusCode: currentRawResponse.status,
3323
- body: currentRawResponse.parsedBody,
3324
- headers: currentRawResponse.headers.toJSON()
3325
- }
3326
- };
3327
- });
3328
- const lro = createLroSpec({
3329
- sendOperationFn,
3330
- args: { resourceGroupName, monitorName, ruleSetName, options },
3331
- spec: deleteOperationSpec
3332
- });
3333
- const poller = yield coreLro.createHttpPoller(lro, {
3334
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
3335
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
3336
- resourceLocationConfig: "azure-async-operation"
3337
- });
3338
- yield poller.poll();
3339
- return poller;
3340
- });
3341
- }
3342
- /**
3343
- * Delete a TagRule
3344
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
3345
- * @param monitorName Monitor resource name
3346
- * @param ruleSetName Monitor resource name
3347
- * @param options The options parameters.
3348
- */
3349
- beginDeleteAndWait(resourceGroupName, monitorName, ruleSetName, options) {
3350
- return tslib.__awaiter(this, void 0, void 0, function* () {
3351
- const poller = yield this.beginDelete(resourceGroupName, monitorName, ruleSetName, options);
3352
- return poller.pollUntilDone();
3353
- });
3354
- }
3355
- /**
3356
- * List all TagRule by monitorName
3357
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
3358
- * @param monitorName Monitor resource name
3359
- * @param options The options parameters.
3360
- */
3361
- _list(resourceGroupName, monitorName, options) {
3362
- return this.client.sendOperationRequest({ resourceGroupName, monitorName, options }, listOperationSpec$1);
3363
- }
3364
- /**
3365
- * ListNext
3366
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
3367
- * @param monitorName Monitor resource name
3368
- * @param nextLink The nextLink from the previous successful call to the List method.
3369
- * @param options The options parameters.
3370
- */
3371
- _listNext(resourceGroupName, monitorName, nextLink, options) {
3372
- return this.client.sendOperationRequest({ resourceGroupName, monitorName, nextLink, options }, listNextOperationSpec$1);
3373
- }
3374
- }
3375
- // Operation Specifications
3376
- const serializer$1 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
3377
- const getOperationSpec$1 = {
3378
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Dynatrace.Observability/monitors/{monitorName}/tagRules/{ruleSetName}",
3379
- httpMethod: "GET",
3380
- responses: {
3381
- 200: {
3382
- bodyMapper: TagRule
3383
- },
3384
- default: {
3385
- bodyMapper: ErrorResponse
3386
- }
3387
- },
3388
- queryParameters: [apiVersion],
3389
- urlParameters: [
3390
- $host,
3391
- subscriptionId,
3392
- resourceGroupName,
3393
- monitorName,
3394
- ruleSetName
3395
- ],
3396
- headerParameters: [accept],
3397
- serializer: serializer$1
3398
- };
3399
- const createOrUpdateOperationSpec$1 = {
3400
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Dynatrace.Observability/monitors/{monitorName}/tagRules/{ruleSetName}",
3401
- httpMethod: "PUT",
3402
- responses: {
3403
- 200: {
3404
- bodyMapper: TagRule
3405
- },
3406
- 201: {
3407
- bodyMapper: TagRule
3408
- },
3409
- 202: {
3410
- bodyMapper: TagRule
3411
- },
3412
- 204: {
3413
- bodyMapper: TagRule
3414
- },
3415
- default: {
3416
- bodyMapper: ErrorResponse
3417
- }
3418
- },
3419
- requestBody: resource2,
3420
- queryParameters: [apiVersion],
3421
- urlParameters: [
3422
- $host,
3423
- subscriptionId,
3424
- resourceGroupName,
3425
- monitorName,
3426
- ruleSetName
3427
- ],
3428
- headerParameters: [accept, contentType],
3429
- mediaType: "json",
3430
- serializer: serializer$1
3431
- };
3432
- const deleteOperationSpec = {
3433
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Dynatrace.Observability/monitors/{monitorName}/tagRules/{ruleSetName}",
3434
- httpMethod: "DELETE",
3435
- responses: {
3436
- 200: {},
3437
- 201: {},
3438
- 202: {},
3439
- 204: {},
3440
- default: {
3441
- bodyMapper: ErrorResponse
3442
- }
3443
- },
3444
- queryParameters: [apiVersion],
3445
- urlParameters: [
3446
- $host,
3447
- subscriptionId,
3448
- resourceGroupName,
3449
- monitorName,
3450
- ruleSetName
3451
- ],
3452
- headerParameters: [accept],
3453
- serializer: serializer$1
3454
- };
3455
- const listOperationSpec$1 = {
3456
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Dynatrace.Observability/monitors/{monitorName}/tagRules",
3457
- httpMethod: "GET",
3458
- responses: {
3459
- 200: {
3460
- bodyMapper: TagRuleListResult
3461
- },
3462
- default: {
3463
- bodyMapper: ErrorResponse
3464
- }
3465
- },
3466
- queryParameters: [apiVersion],
3467
- urlParameters: [
3468
- $host,
3469
- subscriptionId,
3470
- resourceGroupName,
3471
- monitorName
3472
- ],
3473
- headerParameters: [accept],
3474
- serializer: serializer$1
3475
- };
3476
- const listNextOperationSpec$1 = {
3477
- path: "{nextLink}",
3478
- httpMethod: "GET",
3479
- responses: {
3480
- 200: {
3481
- bodyMapper: TagRuleListResult
3482
- },
3483
- default: {
3484
- bodyMapper: ErrorResponse
3485
- }
3486
- },
3487
- urlParameters: [
3488
- $host,
3489
- subscriptionId,
3490
- resourceGroupName,
3491
- monitorName,
3492
- nextLink
3493
- ],
3494
- headerParameters: [accept],
3495
- serializer: serializer$1
3496
- };
3497
-
3498
- /*
3499
- * Copyright (c) Microsoft Corporation.
3500
- * Licensed under the MIT License.
3501
- *
3502
- * Code generated by Microsoft (R) AutoRest Code Generator.
3503
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
3504
- */
3505
- /// <reference lib="esnext.asynciterable" />
3506
- /** Class containing SingleSignOn operations. */
3507
- class SingleSignOnImpl {
3508
- /**
3509
- * Initialize a new instance of the class SingleSignOn class.
3510
- * @param client Reference to the service client
3511
- */
3512
- constructor(client) {
3513
- this.client = client;
3514
- }
3515
- /**
3516
- * List all DynatraceSingleSignOnResource by monitorName
3517
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
3518
- * @param monitorName Monitor resource name
3519
- * @param options The options parameters.
3520
- */
3521
- list(resourceGroupName, monitorName, options) {
3522
- const iter = this.listPagingAll(resourceGroupName, monitorName, options);
3523
- return {
3524
- next() {
3525
- return iter.next();
3526
- },
3527
- [Symbol.asyncIterator]() {
3528
- return this;
3529
- },
3530
- byPage: (settings) => {
3531
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
3532
- throw new Error("maxPageSize is not supported by this operation.");
3533
- }
3534
- return this.listPagingPage(resourceGroupName, monitorName, options, settings);
3535
- }
3536
- };
3537
- }
3538
- listPagingPage(resourceGroupName, monitorName, options, settings) {
3539
- return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
3540
- let result;
3541
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
3542
- if (!continuationToken) {
3543
- result = yield tslib.__await(this._list(resourceGroupName, monitorName, options));
3544
- let page = result.value || [];
3545
- continuationToken = result.nextLink;
3546
- setContinuationToken(page, continuationToken);
3547
- yield yield tslib.__await(page);
3548
- }
3549
- while (continuationToken) {
3550
- result = yield tslib.__await(this._listNext(resourceGroupName, monitorName, continuationToken, options));
3551
- continuationToken = result.nextLink;
3552
- let page = result.value || [];
3553
- setContinuationToken(page, continuationToken);
3554
- yield yield tslib.__await(page);
3555
- }
3556
- });
3557
- }
3558
- listPagingAll(resourceGroupName, monitorName, options) {
3559
- return tslib.__asyncGenerator(this, arguments, function* listPagingAll_1() {
3560
- var _a, e_1, _b, _c;
3561
- try {
3562
- for (var _d = true, _e = tslib.__asyncValues(this.listPagingPage(resourceGroupName, monitorName, options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a;) {
3563
- _c = _f.value;
3564
- _d = false;
3565
- try {
3566
- const page = _c;
3567
- yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
3568
- }
3569
- finally {
3570
- _d = true;
3571
- }
3572
- }
3573
- }
3574
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
3575
- finally {
3576
- try {
3577
- if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
3578
- }
3579
- finally { if (e_1) throw e_1.error; }
3580
- }
3581
- });
3582
- }
3583
- /**
3584
- * Create a DynatraceSingleSignOnResource
3585
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
3586
- * @param monitorName Monitor resource name
3587
- * @param configurationName Single Sign On Configuration Name
3588
- * @param resource Resource create parameters.
3589
- * @param options The options parameters.
3590
- */
3591
- beginCreateOrUpdate(resourceGroupName, monitorName, configurationName, resource, options) {
3592
- return tslib.__awaiter(this, void 0, void 0, function* () {
3593
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
3594
- return this.client.sendOperationRequest(args, spec);
3595
- });
3596
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
3597
- var _a;
3598
- let currentRawResponse = undefined;
3599
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
3600
- const callback = (rawResponse, flatResponse) => {
3601
- currentRawResponse = rawResponse;
3602
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
3603
- };
3604
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
3605
- const flatResponse = yield directSendOperation(updatedArgs, spec);
3606
- return {
3607
- flatResponse,
3608
- rawResponse: {
3609
- statusCode: currentRawResponse.status,
3610
- body: currentRawResponse.parsedBody,
3611
- headers: currentRawResponse.headers.toJSON()
3612
- }
3613
- };
3614
- });
3615
- const lro = createLroSpec({
3616
- sendOperationFn,
3617
- args: {
3618
- resourceGroupName,
3619
- monitorName,
3620
- configurationName,
3621
- resource,
3622
- options
3623
- },
3624
- spec: createOrUpdateOperationSpec
3625
- });
3626
- const poller = yield coreLro.createHttpPoller(lro, {
3627
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
3628
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
3629
- resourceLocationConfig: "azure-async-operation"
3630
- });
3631
- yield poller.poll();
3632
- return poller;
3633
- });
3634
- }
3635
- /**
3636
- * Create a DynatraceSingleSignOnResource
3637
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
3638
- * @param monitorName Monitor resource name
3639
- * @param configurationName Single Sign On Configuration Name
3640
- * @param resource Resource create parameters.
3641
- * @param options The options parameters.
3642
- */
3643
- beginCreateOrUpdateAndWait(resourceGroupName, monitorName, configurationName, resource, options) {
3644
- return tslib.__awaiter(this, void 0, void 0, function* () {
3645
- const poller = yield this.beginCreateOrUpdate(resourceGroupName, monitorName, configurationName, resource, options);
3646
- return poller.pollUntilDone();
3647
- });
3648
- }
3649
- /**
3650
- * Get a DynatraceSingleSignOnResource
3651
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
3652
- * @param monitorName Monitor resource name
3653
- * @param configurationName Single Sign On Configuration Name
3654
- * @param options The options parameters.
3655
- */
3656
- get(resourceGroupName, monitorName, configurationName, options) {
3657
- return this.client.sendOperationRequest({ resourceGroupName, monitorName, configurationName, options }, getOperationSpec);
3658
- }
3659
- /**
3660
- * List all DynatraceSingleSignOnResource by monitorName
3661
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
3662
- * @param monitorName Monitor resource name
3663
- * @param options The options parameters.
3664
- */
3665
- _list(resourceGroupName, monitorName, options) {
3666
- return this.client.sendOperationRequest({ resourceGroupName, monitorName, options }, listOperationSpec);
3667
- }
3668
- /**
3669
- * ListNext
3670
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
3671
- * @param monitorName Monitor resource name
3672
- * @param nextLink The nextLink from the previous successful call to the List method.
3673
- * @param options The options parameters.
3674
- */
3675
- _listNext(resourceGroupName, monitorName, nextLink, options) {
3676
- return this.client.sendOperationRequest({ resourceGroupName, monitorName, nextLink, options }, listNextOperationSpec);
3677
- }
3678
- }
3679
- // Operation Specifications
3680
- const serializer = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
3681
- const createOrUpdateOperationSpec = {
3682
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Dynatrace.Observability/monitors/{monitorName}/singleSignOnConfigurations/{configurationName}",
3683
- httpMethod: "PUT",
3684
- responses: {
3685
- 200: {
3686
- bodyMapper: DynatraceSingleSignOnResource
3687
- },
3688
- 201: {
3689
- bodyMapper: DynatraceSingleSignOnResource
3690
- },
3691
- 202: {
3692
- bodyMapper: DynatraceSingleSignOnResource
3693
- },
3694
- 204: {
3695
- bodyMapper: DynatraceSingleSignOnResource
3696
- },
3697
- default: {
3698
- bodyMapper: ErrorResponse
3699
- }
3700
- },
3701
- requestBody: resource3,
3702
- queryParameters: [apiVersion],
3703
- urlParameters: [
3704
- $host,
3705
- subscriptionId,
3706
- resourceGroupName,
3707
- monitorName,
3708
- configurationName
3709
- ],
3710
- headerParameters: [accept, contentType],
3711
- mediaType: "json",
3712
- serializer
3713
- };
3714
- const getOperationSpec = {
3715
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Dynatrace.Observability/monitors/{monitorName}/singleSignOnConfigurations/{configurationName}",
3716
- httpMethod: "GET",
3717
- responses: {
3718
- 200: {
3719
- bodyMapper: DynatraceSingleSignOnResource
3720
- },
3721
- default: {
3722
- bodyMapper: ErrorResponse
3723
- }
3724
- },
3725
- queryParameters: [apiVersion],
3726
- urlParameters: [
3727
- $host,
3728
- subscriptionId,
3729
- resourceGroupName,
3730
- monitorName,
3731
- configurationName
3732
- ],
3733
- headerParameters: [accept],
3734
- serializer
3735
- };
3736
- const listOperationSpec = {
3737
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Dynatrace.Observability/monitors/{monitorName}/singleSignOnConfigurations",
3738
- httpMethod: "GET",
3739
- responses: {
3740
- 200: {
3741
- bodyMapper: DynatraceSingleSignOnResourceListResult
3742
- },
3743
- default: {
3744
- bodyMapper: ErrorResponse
3745
- }
3746
- },
3747
- queryParameters: [apiVersion],
3748
- urlParameters: [
3749
- $host,
3750
- subscriptionId,
3751
- resourceGroupName,
3752
- monitorName
3753
- ],
3754
- headerParameters: [accept],
3755
- serializer
3756
- };
3757
- const listNextOperationSpec = {
3758
- path: "{nextLink}",
3759
- httpMethod: "GET",
3760
- responses: {
3761
- 200: {
3762
- bodyMapper: DynatraceSingleSignOnResourceListResult
3763
- },
3764
- default: {
3765
- bodyMapper: ErrorResponse
3766
- }
3767
- },
3768
- urlParameters: [
3769
- $host,
3770
- subscriptionId,
3771
- resourceGroupName,
3772
- monitorName,
3773
- nextLink
3774
- ],
3775
- headerParameters: [accept],
3776
- serializer
3777
- };
3778
-
3779
- /*
3780
- * Copyright (c) Microsoft Corporation.
3781
- * Licensed under the MIT License.
3782
- *
3783
- * Code generated by Microsoft (R) AutoRest Code Generator.
3784
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
3785
- */
3786
- class DynatraceObservability extends coreClient__namespace.ServiceClient {
3787
- /**
3788
- * Initializes a new instance of the DynatraceObservability class.
3789
- * @param credentials Subscription credentials which uniquely identify client subscription.
3790
- * @param subscriptionId The ID of the target subscription.
3791
- * @param options The parameter options
3792
- */
3793
- constructor(credentials, subscriptionId, options) {
3794
- var _a, _b, _c;
3795
- if (credentials === undefined) {
3796
- throw new Error("'credentials' cannot be null");
3797
- }
3798
- if (subscriptionId === undefined) {
3799
- throw new Error("'subscriptionId' cannot be null");
3800
- }
3801
- // Initializing default values for options
3802
- if (!options) {
3803
- options = {};
3804
- }
3805
- const defaults = {
3806
- requestContentType: "application/json; charset=utf-8",
3807
- credential: credentials
3808
- };
3809
- const packageDetails = `azsdk-js-arm-dynatrace/2.0.0`;
3810
- const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
3811
- ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
3812
- : `${packageDetails}`;
3813
- const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
3814
- userAgentPrefix
3815
- }, endpoint: (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUri) !== null && _b !== void 0 ? _b : "https://management.azure.com" });
3816
- super(optionsWithDefaults);
3817
- let bearerTokenAuthenticationPolicyFound = false;
3818
- if ((options === null || options === void 0 ? void 0 : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
3819
- const pipelinePolicies = options.pipeline.getOrderedPolicies();
3820
- bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
3821
- coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName);
3822
- }
3823
- if (!options ||
3824
- !options.pipeline ||
3825
- options.pipeline.getOrderedPolicies().length == 0 ||
3826
- !bearerTokenAuthenticationPolicyFound) {
3827
- this.pipeline.removePolicy({
3828
- name: coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName
3829
- });
3830
- this.pipeline.addPolicy(coreRestPipeline__namespace.bearerTokenAuthenticationPolicy({
3831
- credential: credentials,
3832
- scopes: (_c = optionsWithDefaults.credentialScopes) !== null && _c !== void 0 ? _c : `${optionsWithDefaults.endpoint}/.default`,
3833
- challengeCallbacks: {
3834
- authorizeRequestOnChallenge: coreClient__namespace.authorizeRequestOnClaimChallenge
3835
- }
3836
- }));
3837
- }
3838
- // Parameter assignments
3839
- this.subscriptionId = subscriptionId;
3840
- // Assigning values to Constant parameters
3841
- this.$host = options.$host || "https://management.azure.com";
3842
- this.apiVersion = options.apiVersion || "2023-04-27";
3843
- this.monitors = new MonitorsImpl(this);
3844
- this.operations = new OperationsImpl(this);
3845
- this.tagRules = new TagRulesImpl(this);
3846
- this.singleSignOn = new SingleSignOnImpl(this);
3847
- this.addCustomApiVersionPolicy(options.apiVersion);
3848
- }
3849
- /** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */
3850
- addCustomApiVersionPolicy(apiVersion) {
3851
- if (!apiVersion) {
3852
- return;
3853
- }
3854
- const apiVersionPolicy = {
3855
- name: "CustomApiVersionPolicy",
3856
- sendRequest(request, next) {
3857
- return tslib.__awaiter(this, void 0, void 0, function* () {
3858
- const param = request.url.split("?");
3859
- if (param.length > 1) {
3860
- const newParams = param[1].split("&").map((item) => {
3861
- if (item.indexOf("api-version") > -1) {
3862
- return "api-version=" + apiVersion;
3863
- }
3864
- else {
3865
- return item;
3866
- }
3867
- });
3868
- request.url = param[0] + "?" + newParams.join("&");
3869
- }
3870
- return next(request);
3871
- });
3872
- }
3873
- };
3874
- this.pipeline.addPolicy(apiVersionPolicy);
3875
- }
3876
- }
3877
-
3878
- exports.DynatraceObservability = DynatraceObservability;
3879
- exports.getContinuationToken = getContinuationToken;
3880
- //# sourceMappingURL=index.js.map