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