@azure/arm-newrelicobservability 1.1.2-alpha.20251114.1 → 2.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 (462) hide show
  1. package/LICENSE +1 -1
  2. package/README.md +4 -3
  3. package/dist/browser/index.d.ts.map +1 -1
  4. package/dist/browser/index.js +4 -7
  5. package/dist/browser/index.js.map +1 -1
  6. package/dist/browser/lroImpl.d.ts +1 -1
  7. package/dist/browser/lroImpl.d.ts.map +1 -1
  8. package/dist/browser/lroImpl.js +2 -0
  9. package/dist/browser/lroImpl.js.map +1 -1
  10. package/dist/browser/models/index.d.ts +352 -282
  11. package/dist/browser/models/index.d.ts.map +1 -1
  12. package/dist/browser/models/index.js +27 -42
  13. package/dist/browser/models/index.js.map +1 -1
  14. package/dist/browser/models/mappers.d.ts +26 -23
  15. package/dist/browser/models/mappers.d.ts.map +1 -1
  16. package/dist/browser/models/mappers.js +495 -331
  17. package/dist/browser/models/mappers.js.map +1 -1
  18. package/dist/browser/models/parameters.d.ts +9 -7
  19. package/dist/browser/models/parameters.d.ts.map +1 -1
  20. package/dist/browser/models/parameters.js +50 -53
  21. package/dist/browser/models/parameters.js.map +1 -1
  22. package/dist/browser/newRelicObservability.d.ts +5 -4
  23. package/dist/browser/newRelicObservability.d.ts.map +1 -1
  24. package/dist/browser/newRelicObservability.js +13 -16
  25. package/dist/browser/newRelicObservability.js.map +1 -1
  26. package/dist/browser/operations/accounts.d.ts +8 -6
  27. package/dist/browser/operations/accounts.d.ts.map +1 -1
  28. package/dist/browser/operations/accounts.js +10 -21
  29. package/dist/browser/operations/accounts.js.map +1 -1
  30. package/dist/browser/operations/billingInfo.d.ts +4 -4
  31. package/dist/browser/operations/billingInfo.d.ts.map +1 -1
  32. package/dist/browser/operations/billingInfo.js +4 -9
  33. package/dist/browser/operations/billingInfo.js.map +1 -1
  34. package/dist/browser/operations/connectedPartnerResources.d.ts +6 -8
  35. package/dist/browser/operations/connectedPartnerResources.d.ts.map +1 -1
  36. package/dist/browser/operations/connectedPartnerResources.js +9 -16
  37. package/dist/browser/operations/connectedPartnerResources.js.map +1 -1
  38. package/dist/browser/operations/index.d.ts +2 -1
  39. package/dist/browser/operations/index.d.ts.map +1 -1
  40. package/dist/browser/operations/index.js +6 -8
  41. package/dist/browser/operations/index.js.map +1 -1
  42. package/dist/browser/operations/monitoredSubscriptions.d.ts +16 -16
  43. package/dist/browser/operations/monitoredSubscriptions.d.ts.map +1 -1
  44. package/dist/browser/operations/monitoredSubscriptions.js +30 -32
  45. package/dist/browser/operations/monitoredSubscriptions.js.map +1 -1
  46. package/dist/browser/operations/monitors.d.ts +117 -51
  47. package/dist/browser/operations/monitors.d.ts.map +1 -1
  48. package/dist/browser/operations/monitors.js +412 -117
  49. package/dist/browser/operations/monitors.js.map +1 -1
  50. package/dist/browser/operations/operations.d.ts +4 -4
  51. package/dist/browser/operations/operations.d.ts.map +1 -1
  52. package/dist/browser/operations/operations.js +4 -9
  53. package/dist/browser/operations/operations.js.map +1 -1
  54. package/dist/browser/operations/organizations.d.ts +8 -6
  55. package/dist/browser/operations/organizations.d.ts.map +1 -1
  56. package/dist/browser/operations/organizations.js +10 -21
  57. package/dist/browser/operations/organizations.js.map +1 -1
  58. package/dist/browser/operations/plans.d.ts +6 -6
  59. package/dist/browser/operations/plans.d.ts.map +1 -1
  60. package/dist/browser/operations/plans.js +8 -21
  61. package/dist/browser/operations/plans.js.map +1 -1
  62. package/dist/browser/operations/saaS.d.ts +19 -0
  63. package/dist/browser/operations/saaS.d.ts.map +1 -0
  64. package/dist/browser/operations/saaS.js +45 -0
  65. package/dist/browser/operations/saaS.js.map +1 -0
  66. package/dist/browser/operations/tagRules.d.ts +25 -17
  67. package/dist/browser/operations/tagRules.d.ts.map +1 -1
  68. package/dist/browser/operations/tagRules.js +46 -43
  69. package/dist/browser/operations/tagRules.js.map +1 -1
  70. package/dist/browser/operationsInterfaces/accounts.d.ts +4 -3
  71. package/dist/browser/operationsInterfaces/accounts.d.ts.map +1 -1
  72. package/dist/browser/operationsInterfaces/accounts.js +2 -7
  73. package/dist/browser/operationsInterfaces/accounts.js.map +1 -1
  74. package/dist/browser/operationsInterfaces/billingInfo.d.ts +2 -2
  75. package/dist/browser/operationsInterfaces/billingInfo.d.ts.map +1 -1
  76. package/dist/browser/operationsInterfaces/billingInfo.js +2 -7
  77. package/dist/browser/operationsInterfaces/billingInfo.js.map +1 -1
  78. package/dist/browser/operationsInterfaces/connectedPartnerResources.d.ts +3 -4
  79. package/dist/browser/operationsInterfaces/connectedPartnerResources.d.ts.map +1 -1
  80. package/dist/browser/operationsInterfaces/connectedPartnerResources.js +2 -7
  81. package/dist/browser/operationsInterfaces/connectedPartnerResources.js.map +1 -1
  82. package/dist/browser/operationsInterfaces/index.d.ts +2 -1
  83. package/dist/browser/operationsInterfaces/index.d.ts.map +1 -1
  84. package/dist/browser/operationsInterfaces/index.js +6 -8
  85. package/dist/browser/operationsInterfaces/index.js.map +1 -1
  86. package/dist/browser/operationsInterfaces/monitoredSubscriptions.d.ts +13 -13
  87. package/dist/browser/operationsInterfaces/monitoredSubscriptions.d.ts.map +1 -1
  88. package/dist/browser/operationsInterfaces/monitoredSubscriptions.js +2 -7
  89. package/dist/browser/operationsInterfaces/monitoredSubscriptions.js.map +1 -1
  90. package/dist/browser/operationsInterfaces/monitors.d.ts +90 -27
  91. package/dist/browser/operationsInterfaces/monitors.d.ts.map +1 -1
  92. package/dist/browser/operationsInterfaces/monitors.js +2 -7
  93. package/dist/browser/operationsInterfaces/monitors.js.map +1 -1
  94. package/dist/browser/operationsInterfaces/operations.d.ts +2 -2
  95. package/dist/browser/operationsInterfaces/operations.d.ts.map +1 -1
  96. package/dist/browser/operationsInterfaces/operations.js +2 -7
  97. package/dist/browser/operationsInterfaces/operations.js.map +1 -1
  98. package/dist/browser/operationsInterfaces/organizations.d.ts +4 -3
  99. package/dist/browser/operationsInterfaces/organizations.d.ts.map +1 -1
  100. package/dist/browser/operationsInterfaces/organizations.js +2 -7
  101. package/dist/browser/operationsInterfaces/organizations.js.map +1 -1
  102. package/dist/browser/operationsInterfaces/plans.d.ts +3 -3
  103. package/dist/browser/operationsInterfaces/plans.d.ts.map +1 -1
  104. package/dist/browser/operationsInterfaces/plans.js +2 -7
  105. package/dist/browser/operationsInterfaces/plans.js.map +1 -1
  106. package/dist/browser/operationsInterfaces/saaS.d.ts +11 -0
  107. package/dist/browser/operationsInterfaces/saaS.d.ts.map +1 -0
  108. package/dist/browser/operationsInterfaces/saaS.js +4 -0
  109. package/dist/browser/operationsInterfaces/saaS.js.map +1 -0
  110. package/dist/browser/operationsInterfaces/tagRules.d.ts +21 -14
  111. package/dist/browser/operationsInterfaces/tagRules.d.ts.map +1 -1
  112. package/dist/browser/operationsInterfaces/tagRules.js +2 -7
  113. package/dist/browser/operationsInterfaces/tagRules.js.map +1 -1
  114. package/dist/browser/pagingHelper.d.ts.map +1 -1
  115. package/dist/browser/pagingHelper.js +2 -7
  116. package/dist/browser/pagingHelper.js.map +1 -1
  117. package/dist/commonjs/index.d.ts.map +1 -1
  118. package/dist/commonjs/index.js +4 -7
  119. package/dist/commonjs/index.js.map +1 -1
  120. package/dist/commonjs/lroImpl.d.ts +1 -1
  121. package/dist/commonjs/lroImpl.d.ts.map +1 -1
  122. package/dist/commonjs/lroImpl.js +2 -0
  123. package/dist/commonjs/lroImpl.js.map +1 -1
  124. package/dist/commonjs/models/index.d.ts +352 -282
  125. package/dist/commonjs/models/index.d.ts.map +1 -1
  126. package/dist/commonjs/models/index.js +28 -43
  127. package/dist/commonjs/models/index.js.map +1 -1
  128. package/dist/commonjs/models/mappers.d.ts +26 -23
  129. package/dist/commonjs/models/mappers.d.ts.map +1 -1
  130. package/dist/commonjs/models/mappers.js +497 -333
  131. package/dist/commonjs/models/mappers.js.map +1 -1
  132. package/dist/commonjs/models/parameters.d.ts +9 -7
  133. package/dist/commonjs/models/parameters.d.ts.map +1 -1
  134. package/dist/commonjs/models/parameters.js +50 -53
  135. package/dist/commonjs/models/parameters.js.map +1 -1
  136. package/dist/commonjs/newRelicObservability.d.ts +5 -4
  137. package/dist/commonjs/newRelicObservability.d.ts.map +1 -1
  138. package/dist/commonjs/newRelicObservability.js +12 -15
  139. package/dist/commonjs/newRelicObservability.js.map +1 -1
  140. package/dist/commonjs/operations/accounts.d.ts +8 -6
  141. package/dist/commonjs/operations/accounts.d.ts.map +1 -1
  142. package/dist/commonjs/operations/accounts.js +10 -21
  143. package/dist/commonjs/operations/accounts.js.map +1 -1
  144. package/dist/commonjs/operations/billingInfo.d.ts +4 -4
  145. package/dist/commonjs/operations/billingInfo.d.ts.map +1 -1
  146. package/dist/commonjs/operations/billingInfo.js +4 -9
  147. package/dist/commonjs/operations/billingInfo.js.map +1 -1
  148. package/dist/commonjs/operations/connectedPartnerResources.d.ts +6 -8
  149. package/dist/commonjs/operations/connectedPartnerResources.d.ts.map +1 -1
  150. package/dist/commonjs/operations/connectedPartnerResources.js +9 -16
  151. package/dist/commonjs/operations/connectedPartnerResources.js.map +1 -1
  152. package/dist/commonjs/operations/index.d.ts +2 -1
  153. package/dist/commonjs/operations/index.d.ts.map +1 -1
  154. package/dist/commonjs/operations/index.js +6 -8
  155. package/dist/commonjs/operations/index.js.map +1 -1
  156. package/dist/commonjs/operations/monitoredSubscriptions.d.ts +16 -16
  157. package/dist/commonjs/operations/monitoredSubscriptions.d.ts.map +1 -1
  158. package/dist/commonjs/operations/monitoredSubscriptions.js +29 -31
  159. package/dist/commonjs/operations/monitoredSubscriptions.js.map +1 -1
  160. package/dist/commonjs/operations/monitors.d.ts +117 -51
  161. package/dist/commonjs/operations/monitors.d.ts.map +1 -1
  162. package/dist/commonjs/operations/monitors.js +411 -116
  163. package/dist/commonjs/operations/monitors.js.map +1 -1
  164. package/dist/commonjs/operations/operations.d.ts +4 -4
  165. package/dist/commonjs/operations/operations.d.ts.map +1 -1
  166. package/dist/commonjs/operations/operations.js +4 -9
  167. package/dist/commonjs/operations/operations.js.map +1 -1
  168. package/dist/commonjs/operations/organizations.d.ts +8 -6
  169. package/dist/commonjs/operations/organizations.d.ts.map +1 -1
  170. package/dist/commonjs/operations/organizations.js +10 -21
  171. package/dist/commonjs/operations/organizations.js.map +1 -1
  172. package/dist/commonjs/operations/plans.d.ts +6 -6
  173. package/dist/commonjs/operations/plans.d.ts.map +1 -1
  174. package/dist/commonjs/operations/plans.js +8 -21
  175. package/dist/commonjs/operations/plans.js.map +1 -1
  176. package/dist/commonjs/operations/saaS.d.ts +19 -0
  177. package/dist/commonjs/operations/saaS.d.ts.map +1 -0
  178. package/dist/commonjs/operations/saaS.js +50 -0
  179. package/dist/commonjs/operations/saaS.js.map +1 -0
  180. package/dist/commonjs/operations/tagRules.d.ts +25 -17
  181. package/dist/commonjs/operations/tagRules.d.ts.map +1 -1
  182. package/dist/commonjs/operations/tagRules.js +45 -42
  183. package/dist/commonjs/operations/tagRules.js.map +1 -1
  184. package/dist/commonjs/operationsInterfaces/accounts.d.ts +4 -3
  185. package/dist/commonjs/operationsInterfaces/accounts.d.ts.map +1 -1
  186. package/dist/commonjs/operationsInterfaces/accounts.js +2 -7
  187. package/dist/commonjs/operationsInterfaces/accounts.js.map +1 -1
  188. package/dist/commonjs/operationsInterfaces/billingInfo.d.ts +2 -2
  189. package/dist/commonjs/operationsInterfaces/billingInfo.d.ts.map +1 -1
  190. package/dist/commonjs/operationsInterfaces/billingInfo.js +2 -7
  191. package/dist/commonjs/operationsInterfaces/billingInfo.js.map +1 -1
  192. package/dist/commonjs/operationsInterfaces/connectedPartnerResources.d.ts +3 -4
  193. package/dist/commonjs/operationsInterfaces/connectedPartnerResources.d.ts.map +1 -1
  194. package/dist/commonjs/operationsInterfaces/connectedPartnerResources.js +2 -7
  195. package/dist/commonjs/operationsInterfaces/connectedPartnerResources.js.map +1 -1
  196. package/dist/commonjs/operationsInterfaces/index.d.ts +2 -1
  197. package/dist/commonjs/operationsInterfaces/index.d.ts.map +1 -1
  198. package/dist/commonjs/operationsInterfaces/index.js +6 -8
  199. package/dist/commonjs/operationsInterfaces/index.js.map +1 -1
  200. package/dist/commonjs/operationsInterfaces/monitoredSubscriptions.d.ts +13 -13
  201. package/dist/commonjs/operationsInterfaces/monitoredSubscriptions.d.ts.map +1 -1
  202. package/dist/commonjs/operationsInterfaces/monitoredSubscriptions.js +2 -7
  203. package/dist/commonjs/operationsInterfaces/monitoredSubscriptions.js.map +1 -1
  204. package/dist/commonjs/operationsInterfaces/monitors.d.ts +90 -27
  205. package/dist/commonjs/operationsInterfaces/monitors.d.ts.map +1 -1
  206. package/dist/commonjs/operationsInterfaces/monitors.js +2 -7
  207. package/dist/commonjs/operationsInterfaces/monitors.js.map +1 -1
  208. package/dist/commonjs/operationsInterfaces/operations.d.ts +2 -2
  209. package/dist/commonjs/operationsInterfaces/operations.d.ts.map +1 -1
  210. package/dist/commonjs/operationsInterfaces/operations.js +2 -7
  211. package/dist/commonjs/operationsInterfaces/operations.js.map +1 -1
  212. package/dist/commonjs/operationsInterfaces/organizations.d.ts +4 -3
  213. package/dist/commonjs/operationsInterfaces/organizations.d.ts.map +1 -1
  214. package/dist/commonjs/operationsInterfaces/organizations.js +2 -7
  215. package/dist/commonjs/operationsInterfaces/organizations.js.map +1 -1
  216. package/dist/commonjs/operationsInterfaces/plans.d.ts +3 -3
  217. package/dist/commonjs/operationsInterfaces/plans.d.ts.map +1 -1
  218. package/dist/commonjs/operationsInterfaces/plans.js +2 -7
  219. package/dist/commonjs/operationsInterfaces/plans.js.map +1 -1
  220. package/dist/commonjs/operationsInterfaces/saaS.d.ts +11 -0
  221. package/dist/commonjs/operationsInterfaces/saaS.d.ts.map +1 -0
  222. package/dist/commonjs/operationsInterfaces/saaS.js +5 -0
  223. package/dist/commonjs/operationsInterfaces/saaS.js.map +1 -0
  224. package/dist/commonjs/operationsInterfaces/tagRules.d.ts +21 -14
  225. package/dist/commonjs/operationsInterfaces/tagRules.d.ts.map +1 -1
  226. package/dist/commonjs/operationsInterfaces/tagRules.js +2 -7
  227. package/dist/commonjs/operationsInterfaces/tagRules.js.map +1 -1
  228. package/dist/commonjs/pagingHelper.d.ts.map +1 -1
  229. package/dist/commonjs/pagingHelper.js +2 -7
  230. package/dist/commonjs/pagingHelper.js.map +1 -1
  231. package/dist/commonjs/tsdoc-metadata.json +1 -1
  232. package/dist/esm/index.d.ts.map +1 -1
  233. package/dist/esm/index.js +4 -7
  234. package/dist/esm/index.js.map +1 -1
  235. package/dist/esm/lroImpl.d.ts +1 -1
  236. package/dist/esm/lroImpl.d.ts.map +1 -1
  237. package/dist/esm/lroImpl.js +2 -0
  238. package/dist/esm/lroImpl.js.map +1 -1
  239. package/dist/esm/models/index.d.ts +352 -282
  240. package/dist/esm/models/index.d.ts.map +1 -1
  241. package/dist/esm/models/index.js +27 -42
  242. package/dist/esm/models/index.js.map +1 -1
  243. package/dist/esm/models/mappers.d.ts +26 -23
  244. package/dist/esm/models/mappers.d.ts.map +1 -1
  245. package/dist/esm/models/mappers.js +495 -331
  246. package/dist/esm/models/mappers.js.map +1 -1
  247. package/dist/esm/models/parameters.d.ts +9 -7
  248. package/dist/esm/models/parameters.d.ts.map +1 -1
  249. package/dist/esm/models/parameters.js +50 -53
  250. package/dist/esm/models/parameters.js.map +1 -1
  251. package/dist/esm/newRelicObservability.d.ts +5 -4
  252. package/dist/esm/newRelicObservability.d.ts.map +1 -1
  253. package/dist/esm/newRelicObservability.js +13 -16
  254. package/dist/esm/newRelicObservability.js.map +1 -1
  255. package/dist/esm/operations/accounts.d.ts +8 -6
  256. package/dist/esm/operations/accounts.d.ts.map +1 -1
  257. package/dist/esm/operations/accounts.js +10 -21
  258. package/dist/esm/operations/accounts.js.map +1 -1
  259. package/dist/esm/operations/billingInfo.d.ts +4 -4
  260. package/dist/esm/operations/billingInfo.d.ts.map +1 -1
  261. package/dist/esm/operations/billingInfo.js +4 -9
  262. package/dist/esm/operations/billingInfo.js.map +1 -1
  263. package/dist/esm/operations/connectedPartnerResources.d.ts +6 -8
  264. package/dist/esm/operations/connectedPartnerResources.d.ts.map +1 -1
  265. package/dist/esm/operations/connectedPartnerResources.js +9 -16
  266. package/dist/esm/operations/connectedPartnerResources.js.map +1 -1
  267. package/dist/esm/operations/index.d.ts +2 -1
  268. package/dist/esm/operations/index.d.ts.map +1 -1
  269. package/dist/esm/operations/index.js +6 -8
  270. package/dist/esm/operations/index.js.map +1 -1
  271. package/dist/esm/operations/monitoredSubscriptions.d.ts +16 -16
  272. package/dist/esm/operations/monitoredSubscriptions.d.ts.map +1 -1
  273. package/dist/esm/operations/monitoredSubscriptions.js +30 -32
  274. package/dist/esm/operations/monitoredSubscriptions.js.map +1 -1
  275. package/dist/esm/operations/monitors.d.ts +117 -51
  276. package/dist/esm/operations/monitors.d.ts.map +1 -1
  277. package/dist/esm/operations/monitors.js +412 -117
  278. package/dist/esm/operations/monitors.js.map +1 -1
  279. package/dist/esm/operations/operations.d.ts +4 -4
  280. package/dist/esm/operations/operations.d.ts.map +1 -1
  281. package/dist/esm/operations/operations.js +4 -9
  282. package/dist/esm/operations/operations.js.map +1 -1
  283. package/dist/esm/operations/organizations.d.ts +8 -6
  284. package/dist/esm/operations/organizations.d.ts.map +1 -1
  285. package/dist/esm/operations/organizations.js +10 -21
  286. package/dist/esm/operations/organizations.js.map +1 -1
  287. package/dist/esm/operations/plans.d.ts +6 -6
  288. package/dist/esm/operations/plans.d.ts.map +1 -1
  289. package/dist/esm/operations/plans.js +8 -21
  290. package/dist/esm/operations/plans.js.map +1 -1
  291. package/dist/esm/operations/saaS.d.ts +19 -0
  292. package/dist/esm/operations/saaS.d.ts.map +1 -0
  293. package/dist/esm/operations/saaS.js +45 -0
  294. package/dist/esm/operations/saaS.js.map +1 -0
  295. package/dist/esm/operations/tagRules.d.ts +25 -17
  296. package/dist/esm/operations/tagRules.d.ts.map +1 -1
  297. package/dist/esm/operations/tagRules.js +46 -43
  298. package/dist/esm/operations/tagRules.js.map +1 -1
  299. package/dist/esm/operationsInterfaces/accounts.d.ts +4 -3
  300. package/dist/esm/operationsInterfaces/accounts.d.ts.map +1 -1
  301. package/dist/esm/operationsInterfaces/accounts.js +2 -7
  302. package/dist/esm/operationsInterfaces/accounts.js.map +1 -1
  303. package/dist/esm/operationsInterfaces/billingInfo.d.ts +2 -2
  304. package/dist/esm/operationsInterfaces/billingInfo.d.ts.map +1 -1
  305. package/dist/esm/operationsInterfaces/billingInfo.js +2 -7
  306. package/dist/esm/operationsInterfaces/billingInfo.js.map +1 -1
  307. package/dist/esm/operationsInterfaces/connectedPartnerResources.d.ts +3 -4
  308. package/dist/esm/operationsInterfaces/connectedPartnerResources.d.ts.map +1 -1
  309. package/dist/esm/operationsInterfaces/connectedPartnerResources.js +2 -7
  310. package/dist/esm/operationsInterfaces/connectedPartnerResources.js.map +1 -1
  311. package/dist/esm/operationsInterfaces/index.d.ts +2 -1
  312. package/dist/esm/operationsInterfaces/index.d.ts.map +1 -1
  313. package/dist/esm/operationsInterfaces/index.js +6 -8
  314. package/dist/esm/operationsInterfaces/index.js.map +1 -1
  315. package/dist/esm/operationsInterfaces/monitoredSubscriptions.d.ts +13 -13
  316. package/dist/esm/operationsInterfaces/monitoredSubscriptions.d.ts.map +1 -1
  317. package/dist/esm/operationsInterfaces/monitoredSubscriptions.js +2 -7
  318. package/dist/esm/operationsInterfaces/monitoredSubscriptions.js.map +1 -1
  319. package/dist/esm/operationsInterfaces/monitors.d.ts +90 -27
  320. package/dist/esm/operationsInterfaces/monitors.d.ts.map +1 -1
  321. package/dist/esm/operationsInterfaces/monitors.js +2 -7
  322. package/dist/esm/operationsInterfaces/monitors.js.map +1 -1
  323. package/dist/esm/operationsInterfaces/operations.d.ts +2 -2
  324. package/dist/esm/operationsInterfaces/operations.d.ts.map +1 -1
  325. package/dist/esm/operationsInterfaces/operations.js +2 -7
  326. package/dist/esm/operationsInterfaces/operations.js.map +1 -1
  327. package/dist/esm/operationsInterfaces/organizations.d.ts +4 -3
  328. package/dist/esm/operationsInterfaces/organizations.d.ts.map +1 -1
  329. package/dist/esm/operationsInterfaces/organizations.js +2 -7
  330. package/dist/esm/operationsInterfaces/organizations.js.map +1 -1
  331. package/dist/esm/operationsInterfaces/plans.d.ts +3 -3
  332. package/dist/esm/operationsInterfaces/plans.d.ts.map +1 -1
  333. package/dist/esm/operationsInterfaces/plans.js +2 -7
  334. package/dist/esm/operationsInterfaces/plans.js.map +1 -1
  335. package/dist/esm/operationsInterfaces/saaS.d.ts +11 -0
  336. package/dist/esm/operationsInterfaces/saaS.d.ts.map +1 -0
  337. package/dist/esm/operationsInterfaces/saaS.js +4 -0
  338. package/dist/esm/operationsInterfaces/saaS.js.map +1 -0
  339. package/dist/esm/operationsInterfaces/tagRules.d.ts +21 -14
  340. package/dist/esm/operationsInterfaces/tagRules.d.ts.map +1 -1
  341. package/dist/esm/operationsInterfaces/tagRules.js +2 -7
  342. package/dist/esm/operationsInterfaces/tagRules.js.map +1 -1
  343. package/dist/esm/pagingHelper.d.ts.map +1 -1
  344. package/dist/esm/pagingHelper.js +2 -7
  345. package/dist/esm/pagingHelper.js.map +1 -1
  346. package/dist/react-native/index.d.ts.map +1 -1
  347. package/dist/react-native/index.js +4 -7
  348. package/dist/react-native/index.js.map +1 -1
  349. package/dist/react-native/lroImpl.d.ts +1 -1
  350. package/dist/react-native/lroImpl.d.ts.map +1 -1
  351. package/dist/react-native/lroImpl.js +2 -0
  352. package/dist/react-native/lroImpl.js.map +1 -1
  353. package/dist/react-native/models/index.d.ts +352 -282
  354. package/dist/react-native/models/index.d.ts.map +1 -1
  355. package/dist/react-native/models/index.js +27 -42
  356. package/dist/react-native/models/index.js.map +1 -1
  357. package/dist/react-native/models/mappers.d.ts +26 -23
  358. package/dist/react-native/models/mappers.d.ts.map +1 -1
  359. package/dist/react-native/models/mappers.js +495 -331
  360. package/dist/react-native/models/mappers.js.map +1 -1
  361. package/dist/react-native/models/parameters.d.ts +9 -7
  362. package/dist/react-native/models/parameters.d.ts.map +1 -1
  363. package/dist/react-native/models/parameters.js +50 -53
  364. package/dist/react-native/models/parameters.js.map +1 -1
  365. package/dist/react-native/newRelicObservability.d.ts +5 -4
  366. package/dist/react-native/newRelicObservability.d.ts.map +1 -1
  367. package/dist/react-native/newRelicObservability.js +13 -16
  368. package/dist/react-native/newRelicObservability.js.map +1 -1
  369. package/dist/react-native/operations/accounts.d.ts +8 -6
  370. package/dist/react-native/operations/accounts.d.ts.map +1 -1
  371. package/dist/react-native/operations/accounts.js +10 -21
  372. package/dist/react-native/operations/accounts.js.map +1 -1
  373. package/dist/react-native/operations/billingInfo.d.ts +4 -4
  374. package/dist/react-native/operations/billingInfo.d.ts.map +1 -1
  375. package/dist/react-native/operations/billingInfo.js +4 -9
  376. package/dist/react-native/operations/billingInfo.js.map +1 -1
  377. package/dist/react-native/operations/connectedPartnerResources.d.ts +6 -8
  378. package/dist/react-native/operations/connectedPartnerResources.d.ts.map +1 -1
  379. package/dist/react-native/operations/connectedPartnerResources.js +9 -16
  380. package/dist/react-native/operations/connectedPartnerResources.js.map +1 -1
  381. package/dist/react-native/operations/index.d.ts +2 -1
  382. package/dist/react-native/operations/index.d.ts.map +1 -1
  383. package/dist/react-native/operations/index.js +6 -8
  384. package/dist/react-native/operations/index.js.map +1 -1
  385. package/dist/react-native/operations/monitoredSubscriptions.d.ts +16 -16
  386. package/dist/react-native/operations/monitoredSubscriptions.d.ts.map +1 -1
  387. package/dist/react-native/operations/monitoredSubscriptions.js +30 -32
  388. package/dist/react-native/operations/monitoredSubscriptions.js.map +1 -1
  389. package/dist/react-native/operations/monitors.d.ts +117 -51
  390. package/dist/react-native/operations/monitors.d.ts.map +1 -1
  391. package/dist/react-native/operations/monitors.js +412 -117
  392. package/dist/react-native/operations/monitors.js.map +1 -1
  393. package/dist/react-native/operations/operations.d.ts +4 -4
  394. package/dist/react-native/operations/operations.d.ts.map +1 -1
  395. package/dist/react-native/operations/operations.js +4 -9
  396. package/dist/react-native/operations/operations.js.map +1 -1
  397. package/dist/react-native/operations/organizations.d.ts +8 -6
  398. package/dist/react-native/operations/organizations.d.ts.map +1 -1
  399. package/dist/react-native/operations/organizations.js +10 -21
  400. package/dist/react-native/operations/organizations.js.map +1 -1
  401. package/dist/react-native/operations/plans.d.ts +6 -6
  402. package/dist/react-native/operations/plans.d.ts.map +1 -1
  403. package/dist/react-native/operations/plans.js +8 -21
  404. package/dist/react-native/operations/plans.js.map +1 -1
  405. package/dist/react-native/operations/saaS.d.ts +19 -0
  406. package/dist/react-native/operations/saaS.d.ts.map +1 -0
  407. package/dist/react-native/operations/saaS.js +45 -0
  408. package/dist/react-native/operations/saaS.js.map +1 -0
  409. package/dist/react-native/operations/tagRules.d.ts +25 -17
  410. package/dist/react-native/operations/tagRules.d.ts.map +1 -1
  411. package/dist/react-native/operations/tagRules.js +46 -43
  412. package/dist/react-native/operations/tagRules.js.map +1 -1
  413. package/dist/react-native/operationsInterfaces/accounts.d.ts +4 -3
  414. package/dist/react-native/operationsInterfaces/accounts.d.ts.map +1 -1
  415. package/dist/react-native/operationsInterfaces/accounts.js +2 -7
  416. package/dist/react-native/operationsInterfaces/accounts.js.map +1 -1
  417. package/dist/react-native/operationsInterfaces/billingInfo.d.ts +2 -2
  418. package/dist/react-native/operationsInterfaces/billingInfo.d.ts.map +1 -1
  419. package/dist/react-native/operationsInterfaces/billingInfo.js +2 -7
  420. package/dist/react-native/operationsInterfaces/billingInfo.js.map +1 -1
  421. package/dist/react-native/operationsInterfaces/connectedPartnerResources.d.ts +3 -4
  422. package/dist/react-native/operationsInterfaces/connectedPartnerResources.d.ts.map +1 -1
  423. package/dist/react-native/operationsInterfaces/connectedPartnerResources.js +2 -7
  424. package/dist/react-native/operationsInterfaces/connectedPartnerResources.js.map +1 -1
  425. package/dist/react-native/operationsInterfaces/index.d.ts +2 -1
  426. package/dist/react-native/operationsInterfaces/index.d.ts.map +1 -1
  427. package/dist/react-native/operationsInterfaces/index.js +6 -8
  428. package/dist/react-native/operationsInterfaces/index.js.map +1 -1
  429. package/dist/react-native/operationsInterfaces/monitoredSubscriptions.d.ts +13 -13
  430. package/dist/react-native/operationsInterfaces/monitoredSubscriptions.d.ts.map +1 -1
  431. package/dist/react-native/operationsInterfaces/monitoredSubscriptions.js +2 -7
  432. package/dist/react-native/operationsInterfaces/monitoredSubscriptions.js.map +1 -1
  433. package/dist/react-native/operationsInterfaces/monitors.d.ts +90 -27
  434. package/dist/react-native/operationsInterfaces/monitors.d.ts.map +1 -1
  435. package/dist/react-native/operationsInterfaces/monitors.js +2 -7
  436. package/dist/react-native/operationsInterfaces/monitors.js.map +1 -1
  437. package/dist/react-native/operationsInterfaces/operations.d.ts +2 -2
  438. package/dist/react-native/operationsInterfaces/operations.d.ts.map +1 -1
  439. package/dist/react-native/operationsInterfaces/operations.js +2 -7
  440. package/dist/react-native/operationsInterfaces/operations.js.map +1 -1
  441. package/dist/react-native/operationsInterfaces/organizations.d.ts +4 -3
  442. package/dist/react-native/operationsInterfaces/organizations.d.ts.map +1 -1
  443. package/dist/react-native/operationsInterfaces/organizations.js +2 -7
  444. package/dist/react-native/operationsInterfaces/organizations.js.map +1 -1
  445. package/dist/react-native/operationsInterfaces/plans.d.ts +3 -3
  446. package/dist/react-native/operationsInterfaces/plans.d.ts.map +1 -1
  447. package/dist/react-native/operationsInterfaces/plans.js +2 -7
  448. package/dist/react-native/operationsInterfaces/plans.js.map +1 -1
  449. package/dist/react-native/operationsInterfaces/saaS.d.ts +11 -0
  450. package/dist/react-native/operationsInterfaces/saaS.d.ts.map +1 -0
  451. package/dist/react-native/operationsInterfaces/saaS.js +4 -0
  452. package/dist/react-native/operationsInterfaces/saaS.js.map +1 -0
  453. package/dist/react-native/operationsInterfaces/tagRules.d.ts +21 -14
  454. package/dist/react-native/operationsInterfaces/tagRules.d.ts.map +1 -1
  455. package/dist/react-native/operationsInterfaces/tagRules.js +2 -7
  456. package/dist/react-native/operationsInterfaces/tagRules.js.map +1 -1
  457. package/dist/react-native/pagingHelper.d.ts.map +1 -1
  458. package/dist/react-native/pagingHelper.js +2 -7
  459. package/dist/react-native/pagingHelper.js.map +1 -1
  460. package/package.json +38 -37
  461. package/CHANGELOG.md +0 -76
  462. package/review/arm-newrelicobservability-node.api.md +0 -1160
@@ -1 +1 @@
1
- {"version":3,"file":"organizations.js","sourceRoot":"","sources":["../../../src/operations/organizations.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,wDAA0D;AAE1D,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAUtD,4CAA4C;AAC5C,iDAAiD;AACjD,MAAa,iBAAiB;IACX,MAAM,CAAwB;IAE/C;;;OAGG;IACH,YAAY,MAA6B;QACvC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;OAKG;IACI,IAAI,CACT,SAAiB,EACjB,QAAgB,EAChB,OAAyC;QAEzC,MAAM,IAAI,GAAG,IAAI,CAAC,aAAa,CAAC,SAAS,EAAE,QAAQ,EAAE,OAAO,CAAC,CAAC;QAC9D,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAAC,MAAM,CAAC,aAAa,CAAC;gBACpB,OAAO,IAAI,CAAC;YACd,CAAC;YACD,MAAM,EAAE,CAAC,QAAuB,EAAE,EAAE;gBAClC,IAAI,QAAQ,EAAE,WAAW,EAAE,CAAC;oBAC1B,MAAM,IAAI,KAAK,CAAC,iDAAiD,CAAC,CAAC;gBACrE,CAAC;gBACD,OAAO,IAAI,CAAC,cAAc,CAAC,SAAS,EAAE,QAAQ,EAAE,OAAO,EAAE,QAAQ,CAAC,CAAC;YACrE,CAAC;SACF,CAAC;IACJ,CAAC;IAEO,KAAK,CAAC,CAAC,cAAc,CAC3B,SAAiB,EACjB,QAAgB,EAChB,OAAyC,EACzC,QAAuB;QAEvB,IAAI,MAA0C,CAAC;QAC/C,IAAI,iBAAiB,GAAG,QAAQ,EAAE,iBAAiB,CAAC;QACpD,IAAI,CAAC,iBAAiB,EAAE,CAAC;YACvB,MA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GD,8CA4GC;AACD,2BAA2B;AAC3B,MAAM,UAAU,GAAG,UAAU,CAAC,gBAAgB,CAAC,OAAO,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC;AAE3E,MAAM,iBAAiB,GAA6B;IAClD,IAAI,EAAE,gFAAgF;IACtF,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,yBAAyB;SAC9C;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,eAAe,EAAE;QACf,UAAU,CAAC,UAAU;QACrB,UAAU,CAAC,SAAS;QACpB,UAAU,CAAC,QAAQ;KACpB;IACD,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,EAAE,UAAU,CAAC,cAAc,CAAC;IAC5D,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,qBAAqB,GAA6B;IACtD,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,yBAAyB;SAC9C;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,QAAQ;QACnB,UAAU,CAAC,cAAc;KAC1B;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { Organizations } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { NewRelicObservability } from \"../newRelicObservability.js\";\nimport {\n OrganizationResource,\n OrganizationsListNextOptionalParams,\n OrganizationsListOptionalParams,\n OrganizationsListOperationResponse,\n OrganizationsListNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing Organizations operations. */\nexport class OrganizationsImpl implements Organizations {\n private readonly client: NewRelicObservability;\n\n /**\n * Initialize a new instance of the class Organizations class.\n * @param client Reference to the service client\n */\n constructor(client: NewRelicObservability) {\n this.client = client;\n }\n\n /**\n * List all the existing organizations\n * @param userEmail User Email.\n * @param location Location for NewRelic.\n * @param options The options parameters.\n */\n public list(\n userEmail: string,\n location: string,\n options?: OrganizationsListOptionalParams,\n ): PagedAsyncIterableIterator<OrganizationResource> {\n const iter = this.listPagingAll(userEmail, location, options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listPagingPage(userEmail, location, options, settings);\n },\n };\n }\n\n private async *listPagingPage(\n userEmail: string,\n location: string,\n options?: OrganizationsListOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<OrganizationResource[]> {\n let result: OrganizationsListOperationResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._list(userEmail, location, options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listNext(continuationToken, options);\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listPagingAll(\n userEmail: string,\n location: string,\n options?: OrganizationsListOptionalParams,\n ): AsyncIterableIterator<OrganizationResource> {\n for await (const page of this.listPagingPage(\n userEmail,\n location,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * List all the existing organizations\n * @param userEmail User Email.\n * @param location Location for NewRelic.\n * @param options The options parameters.\n */\n private _list(\n userEmail: string,\n location: string,\n options?: OrganizationsListOptionalParams,\n ): Promise<OrganizationsListOperationResponse> {\n return this.client.sendOperationRequest(\n { userEmail, location, options },\n listOperationSpec,\n );\n }\n\n /**\n * ListNext\n * @param nextLink The nextLink from the previous successful call to the List method.\n * @param options The options parameters.\n */\n private _listNext(\n nextLink: string,\n options?: OrganizationsListNextOptionalParams,\n ): Promise<OrganizationsListNextResponse> {\n return this.client.sendOperationRequest(\n { nextLink, options },\n listNextOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/providers/NewRelic.Observability/organizations\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.OrganizationsListResponse,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [\n Parameters.apiVersion,\n Parameters.userEmail,\n Parameters.location,\n ],\n urlParameters: [Parameters.$host, Parameters.subscriptionId],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.OrganizationsListResponse,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.nextLink,\n Parameters.subscriptionId,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
1
+ {"version":3,"file":"organizations.js","sourceRoot":"","sources":["../../../src/operations/organizations.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;;AAMlC,wDAA0D;AAE1D,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAUtD,4CAA4C;AAC5C,iDAAiD;AACjD,MAAa,iBAAiB;I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,aAAa;SAClC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,EAAE,UAAU,CAAC,SAAS,EAAE,UAAU,CAAC,QAAQ,CAAC;IACnF,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,EAAE,UAAU,CAAC,cAAc,CAAC;IAC5D,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,qBAAqB,GAA6B;IACtD,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,yBAAyB;SAC9C;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,EAAE,UAAU,CAAC,QAAQ,EAAE,UAAU,CAAC,cAAc,CAAC;IACjF,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\n// Code generated by Microsoft (R) AutoRest Code Generator.\n// Changes may cause incorrect behavior and will be lost if the code is regenerated.\n\nimport type { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport type { Organizations } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport type { NewRelicObservability } from \"../newRelicObservability.js\";\nimport type {\n OrganizationResource,\n OrganizationsListNextOptionalParams,\n OrganizationsListOptionalParams,\n OrganizationsListOperationResponse,\n OrganizationsListNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing Organizations operations. */\nexport class OrganizationsImpl implements Organizations {\n private readonly client: NewRelicObservability;\n\n /**\n * Initialize a new instance of the class Organizations class.\n * @param client Reference to the service client\n */\n constructor(client: NewRelicObservability) {\n this.client = client;\n }\n\n /**\n * Lists all the New Relic organizations linked to your email address, helping you understand the\n * existing organizations that have been created\n * @param userEmail User Email.\n * @param location Location for NewRelic.\n * @param options The options parameters.\n */\n public list(\n userEmail: string,\n location: string,\n options?: OrganizationsListOptionalParams,\n ): PagedAsyncIterableIterator<OrganizationResource> {\n const iter = this.listPagingAll(userEmail, location, options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listPagingPage(userEmail, location, options, settings);\n },\n };\n }\n\n private async *listPagingPage(\n userEmail: string,\n location: string,\n options?: OrganizationsListOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<OrganizationResource[]> {\n let result: OrganizationsListOperationResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._list(userEmail, location, options);\n const page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listNext(continuationToken, options);\n continuationToken = result.nextLink;\n const page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listPagingAll(\n userEmail: string,\n location: string,\n options?: OrganizationsListOptionalParams,\n ): AsyncIterableIterator<OrganizationResource> {\n for await (const page of this.listPagingPage(userEmail, location, options)) {\n yield* page;\n }\n }\n\n /**\n * Lists all the New Relic organizations linked to your email address, helping you understand the\n * existing organizations that have been created\n * @param userEmail User Email.\n * @param location Location for NewRelic.\n * @param options The options parameters.\n */\n private _list(\n userEmail: string,\n location: string,\n options?: OrganizationsListOptionalParams,\n ): Promise<OrganizationsListOperationResponse> {\n return this.client.sendOperationRequest({ userEmail, location, options }, listOperationSpec);\n }\n\n /**\n * ListNext\n * @param nextLink The nextLink from the previous successful call to the List method.\n * @param options The options parameters.\n */\n private _listNext(\n nextLink: string,\n options?: OrganizationsListNextOptionalParams,\n ): Promise<OrganizationsListNextResponse> {\n return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec);\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/providers/NewRelic.Observability/organizations\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.OrganizationsListResponse,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion, Parameters.userEmail, Parameters.location],\n urlParameters: [Parameters.$host, Parameters.subscriptionId],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.OrganizationsListResponse,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n urlParameters: [Parameters.$host, Parameters.nextLink, Parameters.subscriptionId],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
@@ -1,7 +1,7 @@
1
- import { PagedAsyncIterableIterator } from "@azure/core-paging";
2
- import { Plans } from "../operationsInterfaces/index.js";
3
- import { NewRelicObservability } from "../newRelicObservability.js";
4
- import { PlanDataResource, PlansListOptionalParams } from "../models/index.js";
1
+ import type { PagedAsyncIterableIterator } from "@azure/core-paging";
2
+ import type { Plans } from "../operationsInterfaces/index.js";
3
+ import type { NewRelicObservability } from "../newRelicObservability.js";
4
+ import type { PlanDataResource, PlansListOptionalParams } from "../models/index.js";
5
5
  /** Class containing Plans operations. */
6
6
  export declare class PlansImpl implements Plans {
7
7
  private readonly client;
@@ -11,14 +11,14 @@ export declare class PlansImpl implements Plans {
11
11
  */
12
12
  constructor(client: NewRelicObservability);
13
13
  /**
14
- * List plans data
14
+ * Lists the plans data linked to your organization, providing an overview of the available plans
15
15
  * @param options The options parameters.
16
16
  */
17
17
  list(options?: PlansListOptionalParams): PagedAsyncIterableIterator<PlanDataResource>;
18
18
  private listPagingPage;
19
19
  private listPagingAll;
20
20
  /**
21
- * List plans data
21
+ * Lists the plans data linked to your organization, providing an overview of the available plans
22
22
  * @param options The options parameters.
23
23
  */
24
24
  private _list;
@@ -1 +1 @@
1
- {"version":3,"file":"plans.d.ts","sourceRoot":"","sources":["../../../src/operations/plans.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAgB,MAAM,oBAAoB,CAAC;AAE9E,OAAO,EAAE,KAAK,EAAE,MAAM,kCAAkC,CAAC;AAIzD,OAAO,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAC;AACpE,OAAO,EACL,gBAAgB,EAEhB,uBAAuB,EAGxB,MAAM,oBAAoB,CAAC;AAG5B,yCAAyC;AACzC,qBAAa,SAAU,YAAW,KAAK;IACrC,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAwB;IAE/C;;;OAGG;gBACS,MAAM,EAAE,qBAAqB;IAIzC;;;OAGG;IACI,IAAI,CACT,OAAO,CAAC,EAAE,uBAAuB,GAChC,0BAA0B,CAAC,gBAAgB,CAAC;YAkBhC,cAAc;YAsBd,aAAa;IAQ5B;;;OAGG;IACH,OAAO,CAAC,KAAK;IAIb;;;;OAIG;IACH,OAAO,CAAC,SAAS;CASlB"}
1
+ {"version":3,"file":"plans.d.ts","sourceRoot":"","sources":["../../../src/operations/plans.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,0BAA0B,EAAgB,MAAM,oBAAoB,CAAC;AAEnF,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,kCAAkC,CAAC;AAI9D,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAC;AACzE,OAAO,KAAK,EACV,gBAAgB,EAEhB,uBAAuB,EAGxB,MAAM,oBAAoB,CAAC;AAG5B,yCAAyC;AACzC,qBAAa,SAAU,YAAW,KAAK;IACrC,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAwB;IAE/C;;;OAGG;gBACS,MAAM,EAAE,qBAAqB;IAIzC;;;OAGG;IACI,IAAI,CAAC,OAAO,CAAC,EAAE,uBAAuB,GAAG,0BAA0B,CAAC,gBAAgB,CAAC;YAkB7E,cAAc;YAsBd,aAAa;IAQ5B;;;OAGG;IACH,OAAO,CAAC,KAAK;IAIb;;;;OAIG;IACH,OAAO,CAAC,SAAS;CAMlB"}
@@ -1,11 +1,6 @@
1
1
  "use strict";
2
- /*
3
- * Copyright (c) Microsoft Corporation.
4
- * Licensed under the MIT License.
5
- *
6
- * Code generated by Microsoft (R) AutoRest Code Generator.
7
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
8
- */
2
+ // Copyright (c) Microsoft Corporation.
3
+ // Licensed under the MIT License.
9
4
  Object.defineProperty(exports, "__esModule", { value: true });
10
5
  exports.PlansImpl = void 0;
11
6
  const tslib_1 = require("tslib");
@@ -25,7 +20,7 @@ class PlansImpl {
25
20
  this.client = client;
26
21
  }
27
22
  /**
28
- * List plans data
23
+ * Lists the plans data linked to your organization, providing an overview of the available plans
29
24
  * @param options The options parameters.
30
25
  */
31
26
  list(options) {
@@ -50,7 +45,7 @@ class PlansImpl {
50
45
  let continuationToken = settings?.continuationToken;
51
46
  if (!continuationToken) {
52
47
  result = await this._list(options);
53
- let page = result.value || [];
48
+ const page = result.value || [];
54
49
  continuationToken = result.nextLink;
55
50
  (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
56
51
  yield page;
@@ -58,7 +53,7 @@ class PlansImpl {
58
53
  while (continuationToken) {
59
54
  result = await this._listNext(continuationToken, options);
60
55
  continuationToken = result.nextLink;
61
- let page = result.value || [];
56
+ const page = result.value || [];
62
57
  (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
63
58
  yield page;
64
59
  }
@@ -69,7 +64,7 @@ class PlansImpl {
69
64
  }
70
65
  }
71
66
  /**
72
- * List plans data
67
+ * Lists the plans data linked to your organization, providing an overview of the available plans
73
68
  * @param options The options parameters.
74
69
  */
75
70
  _list(options) {
@@ -98,11 +93,7 @@ const listOperationSpec = {
98
93
  bodyMapper: Mappers.ErrorResponse,
99
94
  },
100
95
  },
101
- queryParameters: [
102
- Parameters.apiVersion,
103
- Parameters.accountId,
104
- Parameters.organizationId,
105
- ],
96
+ queryParameters: [Parameters.apiVersion, Parameters.accountId, Parameters.organizationId],
106
97
  urlParameters: [Parameters.$host, Parameters.subscriptionId],
107
98
  headerParameters: [Parameters.accept],
108
99
  serializer,
@@ -118,11 +109,7 @@ const listNextOperationSpec = {
118
109
  bodyMapper: Mappers.ErrorResponse,
119
110
  },
120
111
  },
121
- urlParameters: [
122
- Parameters.$host,
123
- Parameters.nextLink,
124
- Parameters.subscriptionId,
125
- ],
112
+ urlParameters: [Parameters.$host, Parameters.nextLink, Parameters.subscriptionId],
126
113
  headerParameters: [Parameters.accept],
127
114
  serializer,
128
115
  };
@@ -1 +1 @@
1
- {"version":3,"file":"plans.js","sourceRoot":"","sources":["../../../src/operations/plans.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,wDAA0D;AAE1D,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAUtD,4CAA4C;AAC5C,yCAAyC;AACzC,MAAa,SAAS;IACH,MAAM,CAAwB;IAE/C;;;OAGG;IACH,YAAY,MAA6B;QACvC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;OAGG;IACI,IAAI,CACT,OAAiC;QAEjC,MAAM,IAAI,GAAG,IAAI,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC;QACzC,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAAC,MAAM,CAAC,aAAa,CAAC;gBACpB,OAAO,IAAI,CAAC;YACd,CAAC;YACD,MAAM,EAAE,CAAC,QAAuB,EAAE,EAAE;gBAClC,IAAI,QAAQ,EAAE,WA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) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { Plans } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { NewRelicObservability } from \"../newRelicObservability.js\";\nimport {\n PlanDataResource,\n PlansListNextOptionalParams,\n PlansListOptionalParams,\n PlansListResponse,\n PlansListNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing Plans operations. */\nexport class PlansImpl implements Plans {\n private readonly client: NewRelicObservability;\n\n /**\n * Initialize a new instance of the class Plans class.\n * @param client Reference to the service client\n */\n constructor(client: NewRelicObservability) {\n this.client = client;\n }\n\n /**\n * List plans data\n * @param options The options parameters.\n */\n public list(\n options?: PlansListOptionalParams,\n ): PagedAsyncIterableIterator<PlanDataResource> {\n const iter = this.listPagingAll(options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listPagingPage(options, settings);\n },\n };\n }\n\n private async *listPagingPage(\n options?: PlansListOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<PlanDataResource[]> {\n let result: PlansListResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._list(options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listNext(continuationToken, options);\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listPagingAll(\n options?: PlansListOptionalParams,\n ): AsyncIterableIterator<PlanDataResource> {\n for await (const page of this.listPagingPage(options)) {\n yield* page;\n }\n }\n\n /**\n * List plans data\n * @param options The options parameters.\n */\n private _list(options?: PlansListOptionalParams): Promise<PlansListResponse> {\n return this.client.sendOperationRequest({ options }, listOperationSpec);\n }\n\n /**\n * ListNext\n * @param nextLink The nextLink from the previous successful call to the List method.\n * @param options The options parameters.\n */\n private _listNext(\n nextLink: string,\n options?: PlansListNextOptionalParams,\n ): Promise<PlansListNextResponse> {\n return this.client.sendOperationRequest(\n { nextLink, options },\n listNextOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/providers/NewRelic.Observability/plans\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.PlanDataListResponse,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [\n Parameters.apiVersion,\n Parameters.accountId,\n Parameters.organizationId,\n ],\n urlParameters: [Parameters.$host, Parameters.subscriptionId],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.PlanDataListResponse,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.nextLink,\n Parameters.subscriptionId,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
1
+ {"version":3,"file":"plans.js","sourceRoot":"","sources":["../../../src/operations/plans.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;;AAMlC,wDAA0D;AAE1D,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAUtD,4CAA4C;AAC5C,yCAAyC;AACzC,MAAa,SAAS;IACH,MAAM,CAAwB;IAE/C;;;OAGG;IACH,YAAY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A6B;IACtD,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,oBAAoB;SACzC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,EAAE,UAAU,CAAC,QAAQ,EAAE,UAAU,CAAC,cAAc,CAAC;IACjF,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\n// Code generated by Microsoft (R) AutoRest Code Generator.\n// Changes may cause incorrect behavior and will be lost if the code is regenerated.\n\nimport type { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport type { Plans } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport type { NewRelicObservability } from \"../newRelicObservability.js\";\nimport type {\n PlanDataResource,\n PlansListNextOptionalParams,\n PlansListOptionalParams,\n PlansListResponse,\n PlansListNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing Plans operations. */\nexport class PlansImpl implements Plans {\n private readonly client: NewRelicObservability;\n\n /**\n * Initialize a new instance of the class Plans class.\n * @param client Reference to the service client\n */\n constructor(client: NewRelicObservability) {\n this.client = client;\n }\n\n /**\n * Lists the plans data linked to your organization, providing an overview of the available plans\n * @param options The options parameters.\n */\n public list(options?: PlansListOptionalParams): PagedAsyncIterableIterator<PlanDataResource> {\n const iter = this.listPagingAll(options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listPagingPage(options, settings);\n },\n };\n }\n\n private async *listPagingPage(\n options?: PlansListOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<PlanDataResource[]> {\n let result: PlansListResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._list(options);\n const page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listNext(continuationToken, options);\n continuationToken = result.nextLink;\n const page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listPagingAll(\n options?: PlansListOptionalParams,\n ): AsyncIterableIterator<PlanDataResource> {\n for await (const page of this.listPagingPage(options)) {\n yield* page;\n }\n }\n\n /**\n * Lists the plans data linked to your organization, providing an overview of the available plans\n * @param options The options parameters.\n */\n private _list(options?: PlansListOptionalParams): Promise<PlansListResponse> {\n return this.client.sendOperationRequest({ options }, listOperationSpec);\n }\n\n /**\n * ListNext\n * @param nextLink The nextLink from the previous successful call to the List method.\n * @param options The options parameters.\n */\n private _listNext(\n nextLink: string,\n options?: PlansListNextOptionalParams,\n ): Promise<PlansListNextResponse> {\n return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec);\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/providers/NewRelic.Observability/plans\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.PlanDataListResponse,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion, Parameters.accountId, Parameters.organizationId],\n urlParameters: [Parameters.$host, Parameters.subscriptionId],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.PlanDataListResponse,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n urlParameters: [Parameters.$host, Parameters.nextLink, Parameters.subscriptionId],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
@@ -0,0 +1,19 @@
1
+ import type { SaaS } from "../operationsInterfaces/index.js";
2
+ import type { NewRelicObservability } from "../newRelicObservability.js";
3
+ import type { ActivateSaaSParameterRequest, SaaSActivateResourceOptionalParams, SaaSActivateResourceResponse } from "../models/index.js";
4
+ /** Class containing SaaS operations. */
5
+ export declare class SaaSImpl implements SaaS {
6
+ private readonly client;
7
+ /**
8
+ * Initialize a new instance of the class SaaS class.
9
+ * @param client Reference to the service client
10
+ */
11
+ constructor(client: NewRelicObservability);
12
+ /**
13
+ * Resolve the token to get the SaaS resource ID and activate the SaaS resource
14
+ * @param request The request body
15
+ * @param options The options parameters.
16
+ */
17
+ activateResource(request: ActivateSaaSParameterRequest, options?: SaaSActivateResourceOptionalParams): Promise<SaaSActivateResourceResponse>;
18
+ }
19
+ //# sourceMappingURL=saaS.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"saaS.d.ts","sourceRoot":"","sources":["../../../src/operations/saaS.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,kCAAkC,CAAC;AAI7D,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAC;AACzE,OAAO,KAAK,EACV,4BAA4B,EAC5B,kCAAkC,EAClC,4BAA4B,EAC7B,MAAM,oBAAoB,CAAC;AAE5B,wCAAwC;AACxC,qBAAa,QAAS,YAAW,IAAI;IACnC,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAwB;IAE/C;;;OAGG;gBACS,MAAM,EAAE,qBAAqB;IAIzC;;;;OAIG;IACH,gBAAgB,CACd,OAAO,EAAE,4BAA4B,EACrC,OAAO,CAAC,EAAE,kCAAkC,GAC3C,OAAO,CAAC,4BAA4B,CAAC;CAGzC"}
@@ -0,0 +1,50 @@
1
+ "use strict";
2
+ // Copyright (c) Microsoft Corporation.
3
+ // Licensed under the MIT License.
4
+ Object.defineProperty(exports, "__esModule", { value: true });
5
+ exports.SaaSImpl = void 0;
6
+ const tslib_1 = require("tslib");
7
+ const coreClient = tslib_1.__importStar(require("@azure/core-client"));
8
+ const Mappers = tslib_1.__importStar(require("../models/mappers.js"));
9
+ const Parameters = tslib_1.__importStar(require("../models/parameters.js"));
10
+ /** Class containing SaaS operations. */
11
+ class SaaSImpl {
12
+ client;
13
+ /**
14
+ * Initialize a new instance of the class SaaS class.
15
+ * @param client Reference to the service client
16
+ */
17
+ constructor(client) {
18
+ this.client = client;
19
+ }
20
+ /**
21
+ * Resolve the token to get the SaaS resource ID and activate the SaaS resource
22
+ * @param request The request body
23
+ * @param options The options parameters.
24
+ */
25
+ activateResource(request, options) {
26
+ return this.client.sendOperationRequest({ request, options }, activateResourceOperationSpec);
27
+ }
28
+ }
29
+ exports.SaaSImpl = SaaSImpl;
30
+ // Operation Specifications
31
+ const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
32
+ const activateResourceOperationSpec = {
33
+ path: "/subscriptions/{subscriptionId}/providers/NewRelic.Observability/activateSaaS",
34
+ httpMethod: "POST",
35
+ responses: {
36
+ 200: {
37
+ bodyMapper: Mappers.SaaSResourceDetailsResponse,
38
+ },
39
+ default: {
40
+ bodyMapper: Mappers.ErrorResponse,
41
+ },
42
+ },
43
+ requestBody: Parameters.request,
44
+ queryParameters: [Parameters.apiVersion],
45
+ urlParameters: [Parameters.$host, Parameters.subscriptionId],
46
+ headerParameters: [Parameters.accept, Parameters.contentType],
47
+ mediaType: "json",
48
+ serializer,
49
+ };
50
+ //# sourceMappingURL=saaS.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"saaS.js","sourceRoot":"","sources":["../../../src/operations/saaS.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;;AAMlC,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAQtD,wCAAwC;AACxC,MAAa,QAAQ;IACF,MAAM,CAAwB;IAE/C;;;OAGG;IACH,YAAY,MAA6B;QACvC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;OAIG;IACH,gBAAgB,CACd,OAAqC,EACrC,OAA4C;QAE5C,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CAAC,EAAE,OAAO,EAAE,OAAO,EAAE,EAAE,6BAA6B,CAAC,CAAC;IAC/F,CAAC;CACF;AAtBD,4BAsBC;AACD,2BAA2B;AAC3B,MAAM,UAAU,GAAG,UAAU,CAAC,gBAAgB,CAAC,OAAO,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC;AAE3E,MAAM,6BAA6B,GAA6B;IAC9D,IAAI,EAAE,+EAA+E;IACrF,UAAU,EAAE,MAAM;IAClB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,2BAA2B;SAChD;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,WAAW,EAAE,UAAU,CAAC,OAAO;IAC/B,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,EAAE,UAAU,CAAC,cAAc,CAAC;IAC5D,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,EAAE,UAAU,CAAC,WAAW,CAAC;IAC7D,SAAS,EAAE,MAAM;IACjB,UAAU;CACX,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\n// Code generated by Microsoft (R) AutoRest Code Generator.\n// Changes may cause incorrect behavior and will be lost if the code is regenerated.\n\nimport type { SaaS } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport type { NewRelicObservability } from \"../newRelicObservability.js\";\nimport type {\n ActivateSaaSParameterRequest,\n SaaSActivateResourceOptionalParams,\n SaaSActivateResourceResponse,\n} from \"../models/index.js\";\n\n/** Class containing SaaS operations. */\nexport class SaaSImpl implements SaaS {\n private readonly client: NewRelicObservability;\n\n /**\n * Initialize a new instance of the class SaaS class.\n * @param client Reference to the service client\n */\n constructor(client: NewRelicObservability) {\n this.client = client;\n }\n\n /**\n * Resolve the token to get the SaaS resource ID and activate the SaaS resource\n * @param request The request body\n * @param options The options parameters.\n */\n activateResource(\n request: ActivateSaaSParameterRequest,\n options?: SaaSActivateResourceOptionalParams,\n ): Promise<SaaSActivateResourceResponse> {\n return this.client.sendOperationRequest({ request, options }, activateResourceOperationSpec);\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst activateResourceOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/providers/NewRelic.Observability/activateSaaS\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.SaaSResourceDetailsResponse,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.request,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.subscriptionId],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\n"]}
@@ -1,8 +1,8 @@
1
- import { PagedAsyncIterableIterator } from "@azure/core-paging";
2
- import { TagRules } from "../operationsInterfaces/index.js";
3
- import { NewRelicObservability } from "../newRelicObservability.js";
4
- import { SimplePollerLike, OperationState } from "@azure/core-lro";
5
- import { TagRule, TagRulesListByNewRelicMonitorResourceOptionalParams, TagRulesGetOptionalParams, TagRulesGetResponse, TagRulesCreateOrUpdateOptionalParams, TagRulesCreateOrUpdateResponse, TagRulesDeleteOptionalParams, TagRuleUpdate, TagRulesUpdateOptionalParams, TagRulesUpdateResponse } from "../models/index.js";
1
+ import type { PagedAsyncIterableIterator } from "@azure/core-paging";
2
+ import type { TagRules } from "../operationsInterfaces/index.js";
3
+ import type { NewRelicObservability } from "../newRelicObservability.js";
4
+ import type { SimplePollerLike, OperationState } from "@azure/core-lro";
5
+ import type { TagRule, TagRulesListByNewRelicMonitorResourceOptionalParams, TagRulesGetOptionalParams, TagRulesGetResponse, TagRulesCreateOrUpdateOptionalParams, TagRulesCreateOrUpdateResponse, TagRuleUpdate, TagRulesUpdateOptionalParams, TagRulesUpdateResponse, TagRulesDeleteOptionalParams } from "../models/index.js";
6
6
  /** Class containing TagRules operations. */
7
7
  export declare class TagRulesImpl implements TagRules {
8
8
  private readonly client;
@@ -12,7 +12,8 @@ export declare class TagRulesImpl implements TagRules {
12
12
  */
13
13
  constructor(client: NewRelicObservability);
14
14
  /**
15
- * List TagRule resources by NewRelicMonitorResource
15
+ * Lists all tag rules associated with a specific New Relic monitor resource, helping you manage and
16
+ * audit the rules that control resource monitoring
16
17
  * @param resourceGroupName The name of the resource group. The name is case insensitive.
17
18
  * @param monitorName Name of the Monitors resource
18
19
  * @param options The options parameters.
@@ -21,14 +22,16 @@ export declare class TagRulesImpl implements TagRules {
21
22
  private listByNewRelicMonitorResourcePagingPage;
22
23
  private listByNewRelicMonitorResourcePagingAll;
23
24
  /**
24
- * List TagRule resources by NewRelicMonitorResource
25
+ * Lists all tag rules associated with a specific New Relic monitor resource, helping you manage and
26
+ * audit the rules that control resource monitoring
25
27
  * @param resourceGroupName The name of the resource group. The name is case insensitive.
26
28
  * @param monitorName Name of the Monitors resource
27
29
  * @param options The options parameters.
28
30
  */
29
31
  private _listByNewRelicMonitorResource;
30
32
  /**
31
- * Get a TagRule
33
+ * Retrieves the details of the tag rules for a specific New Relic monitor resource, providing insight
34
+ * into its setup and status
32
35
  * @param resourceGroupName The name of the resource group. The name is case insensitive.
33
36
  * @param monitorName Name of the Monitors resource
34
37
  * @param ruleSetName Name of the TagRule
@@ -36,7 +39,8 @@ export declare class TagRulesImpl implements TagRules {
36
39
  */
37
40
  get(resourceGroupName: string, monitorName: string, ruleSetName: string, options?: TagRulesGetOptionalParams): Promise<TagRulesGetResponse>;
38
41
  /**
39
- * Create a TagRule
42
+ * Creates a new set of tag rules for a specific New Relic monitor resource, determining which Azure
43
+ * resources are monitored based on their tags
40
44
  * @param resourceGroupName The name of the resource group. The name is case insensitive.
41
45
  * @param monitorName Name of the Monitors resource
42
46
  * @param ruleSetName Name of the TagRule
@@ -45,7 +49,8 @@ export declare class TagRulesImpl implements TagRules {
45
49
  */
46
50
  beginCreateOrUpdate(resourceGroupName: string, monitorName: string, ruleSetName: string, resource: TagRule, options?: TagRulesCreateOrUpdateOptionalParams): Promise<SimplePollerLike<OperationState<TagRulesCreateOrUpdateResponse>, TagRulesCreateOrUpdateResponse>>;
47
51
  /**
48
- * Create a TagRule
52
+ * Creates a new set of tag rules for a specific New Relic monitor resource, determining which Azure
53
+ * resources are monitored based on their tags
49
54
  * @param resourceGroupName The name of the resource group. The name is case insensitive.
50
55
  * @param monitorName Name of the Monitors resource
51
56
  * @param ruleSetName Name of the TagRule
@@ -54,30 +59,33 @@ export declare class TagRulesImpl implements TagRules {
54
59
  */
55
60
  beginCreateOrUpdateAndWait(resourceGroupName: string, monitorName: string, ruleSetName: string, resource: TagRule, options?: TagRulesCreateOrUpdateOptionalParams): Promise<TagRulesCreateOrUpdateResponse>;
56
61
  /**
57
- * Delete a TagRule
62
+ * Updates the tag rules for a specific New Relic monitor resource, allowing you to modify the rules
63
+ * that control which Azure resources are monitored
58
64
  * @param resourceGroupName The name of the resource group. The name is case insensitive.
59
65
  * @param monitorName Name of the Monitors resource
60
66
  * @param ruleSetName Name of the TagRule
67
+ * @param properties The resource properties to be updated.
61
68
  * @param options The options parameters.
62
69
  */
63
- beginDelete(resourceGroupName: string, monitorName: string, ruleSetName: string, options?: TagRulesDeleteOptionalParams): Promise<SimplePollerLike<OperationState<void>, void>>;
70
+ update(resourceGroupName: string, monitorName: string, ruleSetName: string, properties: TagRuleUpdate, options?: TagRulesUpdateOptionalParams): Promise<TagRulesUpdateResponse>;
64
71
  /**
65
- * Delete a TagRule
72
+ * Deletes a tag rule set for a given New Relic monitor resource, removing fine-grained control over
73
+ * observability based on resource tags
66
74
  * @param resourceGroupName The name of the resource group. The name is case insensitive.
67
75
  * @param monitorName Name of the Monitors resource
68
76
  * @param ruleSetName Name of the TagRule
69
77
  * @param options The options parameters.
70
78
  */
71
- beginDeleteAndWait(resourceGroupName: string, monitorName: string, ruleSetName: string, options?: TagRulesDeleteOptionalParams): Promise<void>;
79
+ beginDelete(resourceGroupName: string, monitorName: string, ruleSetName: string, options?: TagRulesDeleteOptionalParams): Promise<SimplePollerLike<OperationState<void>, void>>;
72
80
  /**
73
- * Update a TagRule
81
+ * Deletes a tag rule set for a given New Relic monitor resource, removing fine-grained control over
82
+ * observability based on resource tags
74
83
  * @param resourceGroupName The name of the resource group. The name is case insensitive.
75
84
  * @param monitorName Name of the Monitors resource
76
85
  * @param ruleSetName Name of the TagRule
77
- * @param properties The resource properties to be updated.
78
86
  * @param options The options parameters.
79
87
  */
80
- update(resourceGroupName: string, monitorName: string, ruleSetName: string, properties: TagRuleUpdate, options?: TagRulesUpdateOptionalParams): Promise<TagRulesUpdateResponse>;
88
+ beginDeleteAndWait(resourceGroupName: string, monitorName: string, ruleSetName: string, options?: TagRulesDeleteOptionalParams): Promise<void>;
81
89
  /**
82
90
  * ListByNewRelicMonitorResourceNext
83
91
  * @param resourceGroupName The name of the resource group. The name is case insensitive.
@@ -1 +1 @@
1
- {"version":3,"file":"tagRules.d.ts","sourceRoot":"","sources":["../../../src/operations/tagRules.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAgB,MAAM,oBAAoB,CAAC;AAE9E,OAAO,EAAE,QAAQ,EAAE,MAAM,kCAAkC,CAAC;AAI5D,OAAO,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAC;AACpE,OAAO,EACL,gBAAgB,EAChB,cAAc,EAEf,MAAM,iBAAiB,CAAC;AAEzB,OAAO,EACL,OAAO,EAEP,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DxD;;;;;;;OAOG;IACG,kBAAkB,CACtB,iBAAiB,EAAE,MAAM,EACzB,WAAW,EAAE,MAAM,EACnB,WAAW,EAAE,MAAM,EACnB,OAAO,CAAC,EAAE,4BAA4B,GACrC,OAAO,CAAC,IAAI,CAAC;IAKhB;;;;;;;OAOG;IACH,OAAO,CAAC,kCAAkC;CAW3C"}
@@ -1,11 +1,6 @@
1
1
  "use strict";
2
- /*
3
- * Copyright (c) Microsoft Corporation.
4
- * Licensed under the MIT License.
5
- *
6
- * Code generated by Microsoft (R) AutoRest Code Generator.
7
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
8
- */
2
+ // Copyright (c) Microsoft Corporation.
3
+ // Licensed under the MIT License.
9
4
  Object.defineProperty(exports, "__esModule", { value: true });
10
5
  exports.TagRulesImpl = void 0;
11
6
  const tslib_1 = require("tslib");
@@ -27,7 +22,8 @@ class TagRulesImpl {
27
22
  this.client = client;
28
23
  }
29
24
  /**
30
- * List TagRule resources by NewRelicMonitorResource
25
+ * Lists all tag rules associated with a specific New Relic monitor resource, helping you manage and
26
+ * audit the rules that control resource monitoring
31
27
  * @param resourceGroupName The name of the resource group. The name is case insensitive.
32
28
  * @param monitorName Name of the Monitors resource
33
29
  * @param options The options parameters.
@@ -54,7 +50,7 @@ class TagRulesImpl {
54
50
  let continuationToken = settings?.continuationToken;
55
51
  if (!continuationToken) {
56
52
  result = await this._listByNewRelicMonitorResource(resourceGroupName, monitorName, options);
57
- let page = result.value || [];
53
+ const page = result.value || [];
58
54
  continuationToken = result.nextLink;
59
55
  (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
60
56
  yield page;
@@ -62,7 +58,7 @@ class TagRulesImpl {
62
58
  while (continuationToken) {
63
59
  result = await this._listByNewRelicMonitorResourceNext(resourceGroupName, monitorName, continuationToken, options);
64
60
  continuationToken = result.nextLink;
65
- let page = result.value || [];
61
+ const page = result.value || [];
66
62
  (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
67
63
  yield page;
68
64
  }
@@ -73,7 +69,8 @@ class TagRulesImpl {
73
69
  }
74
70
  }
75
71
  /**
76
- * List TagRule resources by NewRelicMonitorResource
72
+ * Lists all tag rules associated with a specific New Relic monitor resource, helping you manage and
73
+ * audit the rules that control resource monitoring
77
74
  * @param resourceGroupName The name of the resource group. The name is case insensitive.
78
75
  * @param monitorName Name of the Monitors resource
79
76
  * @param options The options parameters.
@@ -82,7 +79,8 @@ class TagRulesImpl {
82
79
  return this.client.sendOperationRequest({ resourceGroupName, monitorName, options }, listByNewRelicMonitorResourceOperationSpec);
83
80
  }
84
81
  /**
85
- * Get a TagRule
82
+ * Retrieves the details of the tag rules for a specific New Relic monitor resource, providing insight
83
+ * into its setup and status
86
84
  * @param resourceGroupName The name of the resource group. The name is case insensitive.
87
85
  * @param monitorName Name of the Monitors resource
88
86
  * @param ruleSetName Name of the TagRule
@@ -92,7 +90,8 @@ class TagRulesImpl {
92
90
  return this.client.sendOperationRequest({ resourceGroupName, monitorName, ruleSetName, options }, getOperationSpec);
93
91
  }
94
92
  /**
95
- * Create a TagRule
93
+ * Creates a new set of tag rules for a specific New Relic monitor resource, determining which Azure
94
+ * resources are monitored based on their tags
96
95
  * @param resourceGroupName The name of the resource group. The name is case insensitive.
97
96
  * @param monitorName Name of the Monitors resource
98
97
  * @param ruleSetName Name of the TagRule
@@ -141,7 +140,8 @@ class TagRulesImpl {
141
140
  return poller;
142
141
  }
143
142
  /**
144
- * Create a TagRule
143
+ * Creates a new set of tag rules for a specific New Relic monitor resource, determining which Azure
144
+ * resources are monitored based on their tags
145
145
  * @param resourceGroupName The name of the resource group. The name is case insensitive.
146
146
  * @param monitorName Name of the Monitors resource
147
147
  * @param ruleSetName Name of the TagRule
@@ -153,7 +153,20 @@ class TagRulesImpl {
153
153
  return poller.pollUntilDone();
154
154
  }
155
155
  /**
156
- * Delete a TagRule
156
+ * Updates the tag rules for a specific New Relic monitor resource, allowing you to modify the rules
157
+ * that control which Azure resources are monitored
158
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
159
+ * @param monitorName Name of the Monitors resource
160
+ * @param ruleSetName Name of the TagRule
161
+ * @param properties The resource properties to be updated.
162
+ * @param options The options parameters.
163
+ */
164
+ update(resourceGroupName, monitorName, ruleSetName, properties, options) {
165
+ return this.client.sendOperationRequest({ resourceGroupName, monitorName, ruleSetName, properties, options }, updateOperationSpec);
166
+ }
167
+ /**
168
+ * Deletes a tag rule set for a given New Relic monitor resource, removing fine-grained control over
169
+ * observability based on resource tags
157
170
  * @param resourceGroupName The name of the resource group. The name is case insensitive.
158
171
  * @param monitorName Name of the Monitors resource
159
172
  * @param ruleSetName Name of the TagRule
@@ -201,7 +214,8 @@ class TagRulesImpl {
201
214
  return poller;
202
215
  }
203
216
  /**
204
- * Delete a TagRule
217
+ * Deletes a tag rule set for a given New Relic monitor resource, removing fine-grained control over
218
+ * observability based on resource tags
205
219
  * @param resourceGroupName The name of the resource group. The name is case insensitive.
206
220
  * @param monitorName Name of the Monitors resource
207
221
  * @param ruleSetName Name of the TagRule
@@ -211,17 +225,6 @@ class TagRulesImpl {
211
225
  const poller = await this.beginDelete(resourceGroupName, monitorName, ruleSetName, options);
212
226
  return poller.pollUntilDone();
213
227
  }
214
- /**
215
- * Update a TagRule
216
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
217
- * @param monitorName Name of the Monitors resource
218
- * @param ruleSetName Name of the TagRule
219
- * @param properties The resource properties to be updated.
220
- * @param options The options parameters.
221
- */
222
- update(resourceGroupName, monitorName, ruleSetName, properties, options) {
223
- return this.client.sendOperationRequest({ resourceGroupName, monitorName, ruleSetName, properties, options }, updateOperationSpec);
224
- }
225
228
  /**
226
229
  * ListByNewRelicMonitorResourceNext
227
230
  * @param resourceGroupName The name of the resource group. The name is case insensitive.
@@ -313,18 +316,18 @@ const createOrUpdateOperationSpec = {
313
316
  mediaType: "json",
314
317
  serializer,
315
318
  };
316
- const deleteOperationSpec = {
319
+ const updateOperationSpec = {
317
320
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/NewRelic.Observability/monitors/{monitorName}/tagRules/{ruleSetName}",
318
- httpMethod: "DELETE",
321
+ httpMethod: "PATCH",
319
322
  responses: {
320
- 200: {},
321
- 201: {},
322
- 202: {},
323
- 204: {},
323
+ 200: {
324
+ bodyMapper: Mappers.TagRule,
325
+ },
324
326
  default: {
325
327
  bodyMapper: Mappers.ErrorResponse,
326
328
  },
327
329
  },
330
+ requestBody: Parameters.properties1,
328
331
  queryParameters: [Parameters.apiVersion],
329
332
  urlParameters: [
330
333
  Parameters.$host,
@@ -333,21 +336,22 @@ const deleteOperationSpec = {
333
336
  Parameters.monitorName,
334
337
  Parameters.ruleSetName,
335
338
  ],
336
- headerParameters: [Parameters.accept],
339
+ headerParameters: [Parameters.accept, Parameters.contentType],
340
+ mediaType: "json",
337
341
  serializer,
338
342
  };
339
- const updateOperationSpec = {
343
+ const deleteOperationSpec = {
340
344
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/NewRelic.Observability/monitors/{monitorName}/tagRules/{ruleSetName}",
341
- httpMethod: "PATCH",
345
+ httpMethod: "DELETE",
342
346
  responses: {
343
- 200: {
344
- bodyMapper: Mappers.TagRule,
345
- },
347
+ 200: {},
348
+ 201: {},
349
+ 202: {},
350
+ 204: {},
346
351
  default: {
347
352
  bodyMapper: Mappers.ErrorResponse,
348
353
  },
349
354
  },
350
- requestBody: Parameters.properties1,
351
355
  queryParameters: [Parameters.apiVersion],
352
356
  urlParameters: [
353
357
  Parameters.$host,
@@ -356,8 +360,7 @@ const updateOperationSpec = {
356
360
  Parameters.monitorName,
357
361
  Parameters.ruleSetName,
358
362
  ],
359
- headerParameters: [Parameters.accept, Parameters.contentType],
360
- mediaType: "json",
363
+ headerParameters: [Parameters.accept],
361
364
  serializer,
362
365
  };
363
366
  const listByNewRelicMonitorResourceNextOperationSpec = {