@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,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAE1D,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAUtD,4CAA4C;AAC5C,iDAAiD;AACjD,MAAM,OAAO,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,QAAu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O,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,QAAQ,EAAE,OAAO,EAAE,EACrB,qBAAqB,CACtB,CAAC;IACJ,CAAC;CACF;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,OAAO,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AAC;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,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,10 +1,5 @@
1
- /*
2
- * Copyright (c) Microsoft Corporation.
3
- * Licensed under the MIT License.
4
- *
5
- * Code generated by Microsoft (R) AutoRest Code Generator.
6
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
- */
1
+ // Copyright (c) Microsoft Corporation.
2
+ // Licensed under the MIT License.
8
3
  import { setContinuationToken } from "../pagingHelper.js";
9
4
  import * as coreClient from "@azure/core-client";
10
5
  import * as Mappers from "../models/mappers.js";
@@ -21,7 +16,7 @@ export class PlansImpl {
21
16
  this.client = client;
22
17
  }
23
18
  /**
24
- * List plans data
19
+ * Lists the plans data linked to your organization, providing an overview of the available plans
25
20
  * @param options The options parameters.
26
21
  */
27
22
  list(options) {
@@ -46,7 +41,7 @@ export class PlansImpl {
46
41
  let continuationToken = settings?.continuationToken;
47
42
  if (!continuationToken) {
48
43
  result = await this._list(options);
49
- let page = result.value || [];
44
+ const page = result.value || [];
50
45
  continuationToken = result.nextLink;
51
46
  setContinuationToken(page, continuationToken);
52
47
  yield page;
@@ -54,7 +49,7 @@ export class PlansImpl {
54
49
  while (continuationToken) {
55
50
  result = await this._listNext(continuationToken, options);
56
51
  continuationToken = result.nextLink;
57
- let page = result.value || [];
52
+ const page = result.value || [];
58
53
  setContinuationToken(page, continuationToken);
59
54
  yield page;
60
55
  }
@@ -65,7 +60,7 @@ export class PlansImpl {
65
60
  }
66
61
  }
67
62
  /**
68
- * List plans data
63
+ * Lists the plans data linked to your organization, providing an overview of the available plans
69
64
  * @param options The options parameters.
70
65
  */
71
66
  _list(options) {
@@ -93,11 +88,7 @@ const listOperationSpec = {
93
88
  bodyMapper: Mappers.ErrorResponse,
94
89
  },
95
90
  },
96
- queryParameters: [
97
- Parameters.apiVersion,
98
- Parameters.accountId,
99
- Parameters.organizationId,
100
- ],
91
+ queryParameters: [Parameters.apiVersion, Parameters.accountId, Parameters.organizationId],
101
92
  urlParameters: [Parameters.$host, Parameters.subscriptionId],
102
93
  headerParameters: [Parameters.accept],
103
94
  serializer,
@@ -113,11 +104,7 @@ const listNextOperationSpec = {
113
104
  bodyMapper: Mappers.ErrorResponse,
114
105
  },
115
106
  },
116
- urlParameters: [
117
- Parameters.$host,
118
- Parameters.nextLink,
119
- Parameters.subscriptionId,
120
- ],
107
+ urlParameters: [Parameters.$host, Parameters.nextLink, Parameters.subscriptionId],
121
108
  headerParameters: [Parameters.accept],
122
109
  serializer,
123
110
  };
@@ -1 +1 @@
1
- {"version":3,"file":"plans.js","sourceRoot":"","sources":["../../../src/operations/plans.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAE1D,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAUtD,4CAA4C;AAC5C,yCAAyC;AACzC,MAAM,OAAO,SAAS;IACH,MAAM,CAAwB;IAE/C;;;OAGG;IACH,YAAY,MAA6B;QACvC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;OAGG;IACI,IA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CAAC,oBAAoB;SACzC;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 { 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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G,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,oBAAoB;SACzC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,EAAE,UAAU,CAAC,SAAS,EAAE,UAAU,CAAC,cAAc,CAAC;IACzF,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,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,45 @@
1
+ // Copyright (c) Microsoft Corporation.
2
+ // Licensed under the MIT License.
3
+ import * as coreClient from "@azure/core-client";
4
+ import * as Mappers from "../models/mappers.js";
5
+ import * as Parameters from "../models/parameters.js";
6
+ /** Class containing SaaS operations. */
7
+ export class SaaSImpl {
8
+ client;
9
+ /**
10
+ * Initialize a new instance of the class SaaS class.
11
+ * @param client Reference to the service client
12
+ */
13
+ constructor(client) {
14
+ this.client = client;
15
+ }
16
+ /**
17
+ * Resolve the token to get the SaaS resource ID and activate the SaaS resource
18
+ * @param request The request body
19
+ * @param options The options parameters.
20
+ */
21
+ activateResource(request, options) {
22
+ return this.client.sendOperationRequest({ request, options }, activateResourceOperationSpec);
23
+ }
24
+ }
25
+ // Operation Specifications
26
+ const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
27
+ const activateResourceOperationSpec = {
28
+ path: "/subscriptions/{subscriptionId}/providers/NewRelic.Observability/activateSaaS",
29
+ httpMethod: "POST",
30
+ responses: {
31
+ 200: {
32
+ bodyMapper: Mappers.SaaSResourceDetailsResponse,
33
+ },
34
+ default: {
35
+ bodyMapper: Mappers.ErrorResponse,
36
+ },
37
+ },
38
+ requestBody: Parameters.request,
39
+ queryParameters: [Parameters.apiVersion],
40
+ urlParameters: [Parameters.$host, Parameters.subscriptionId],
41
+ headerParameters: [Parameters.accept, Parameters.contentType],
42
+ mediaType: "json",
43
+ serializer,
44
+ };
45
+ //# 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,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAQtD,wCAAwC;AACxC,MAAM,OAAO,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;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":"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E,aAAa,EACzB,OAAO,CAAC,EAAE,4BAA4B,GACrC,OAAO,CAAC,sBAAsB,CAAC;IAOlC;;;;;;;OAOG;IACG,WAAW,CACf,iBAAiB,EAAE,MAAM,EACzB,WAAW,EAAE,MAAM,EACnB,WAAW,EAAE,MAAM,EACnB,OAAO,CAAC,EAAE,4BAA4B,GACrC,OAAO,CAAC,gBAAgB,CAAC,cAAc,CAAC,IAAI,CAAC,EAAE,IAAI,CAAC,CAAC;IAoDxD;;;;;;;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,15 +1,10 @@
1
- /*
2
- * Copyright (c) Microsoft Corporation.
3
- * Licensed under the MIT License.
4
- *
5
- * Code generated by Microsoft (R) AutoRest Code Generator.
6
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
- */
1
+ // Copyright (c) Microsoft Corporation.
2
+ // Licensed under the MIT License.
8
3
  import { setContinuationToken } from "../pagingHelper.js";
9
4
  import * as coreClient from "@azure/core-client";
10
5
  import * as Mappers from "../models/mappers.js";
11
6
  import * as Parameters from "../models/parameters.js";
12
- import { createHttpPoller, } from "@azure/core-lro";
7
+ import { createHttpPoller } from "@azure/core-lro";
13
8
  import { createLroSpec } from "../lroImpl.js";
14
9
  /// <reference lib="esnext.asynciterable" />
15
10
  /** Class containing TagRules operations. */
@@ -23,7 +18,8 @@ export class TagRulesImpl {
23
18
  this.client = client;
24
19
  }
25
20
  /**
26
- * List TagRule resources by NewRelicMonitorResource
21
+ * Lists all tag rules associated with a specific New Relic monitor resource, helping you manage and
22
+ * audit the rules that control resource monitoring
27
23
  * @param resourceGroupName The name of the resource group. The name is case insensitive.
28
24
  * @param monitorName Name of the Monitors resource
29
25
  * @param options The options parameters.
@@ -50,7 +46,7 @@ export class TagRulesImpl {
50
46
  let continuationToken = settings?.continuationToken;
51
47
  if (!continuationToken) {
52
48
  result = await this._listByNewRelicMonitorResource(resourceGroupName, monitorName, options);
53
- let page = result.value || [];
49
+ const page = result.value || [];
54
50
  continuationToken = result.nextLink;
55
51
  setContinuationToken(page, continuationToken);
56
52
  yield page;
@@ -58,7 +54,7 @@ export class TagRulesImpl {
58
54
  while (continuationToken) {
59
55
  result = await this._listByNewRelicMonitorResourceNext(resourceGroupName, monitorName, continuationToken, options);
60
56
  continuationToken = result.nextLink;
61
- let page = result.value || [];
57
+ const page = result.value || [];
62
58
  setContinuationToken(page, continuationToken);
63
59
  yield page;
64
60
  }
@@ -69,7 +65,8 @@ export class TagRulesImpl {
69
65
  }
70
66
  }
71
67
  /**
72
- * List TagRule resources by NewRelicMonitorResource
68
+ * Lists all tag rules associated with a specific New Relic monitor resource, helping you manage and
69
+ * audit the rules that control resource monitoring
73
70
  * @param resourceGroupName The name of the resource group. The name is case insensitive.
74
71
  * @param monitorName Name of the Monitors resource
75
72
  * @param options The options parameters.
@@ -78,7 +75,8 @@ export class TagRulesImpl {
78
75
  return this.client.sendOperationRequest({ resourceGroupName, monitorName, options }, listByNewRelicMonitorResourceOperationSpec);
79
76
  }
80
77
  /**
81
- * Get a TagRule
78
+ * Retrieves the details of the tag rules for a specific New Relic monitor resource, providing insight
79
+ * into its setup and status
82
80
  * @param resourceGroupName The name of the resource group. The name is case insensitive.
83
81
  * @param monitorName Name of the Monitors resource
84
82
  * @param ruleSetName Name of the TagRule
@@ -88,7 +86,8 @@ export class TagRulesImpl {
88
86
  return this.client.sendOperationRequest({ resourceGroupName, monitorName, ruleSetName, options }, getOperationSpec);
89
87
  }
90
88
  /**
91
- * Create a TagRule
89
+ * Creates a new set of tag rules for a specific New Relic monitor resource, determining which Azure
90
+ * resources are monitored based on their tags
92
91
  * @param resourceGroupName The name of the resource group. The name is case insensitive.
93
92
  * @param monitorName Name of the Monitors resource
94
93
  * @param ruleSetName Name of the TagRule
@@ -137,7 +136,8 @@ export class TagRulesImpl {
137
136
  return poller;
138
137
  }
139
138
  /**
140
- * Create a TagRule
139
+ * Creates a new set of tag rules for a specific New Relic monitor resource, determining which Azure
140
+ * resources are monitored based on their tags
141
141
  * @param resourceGroupName The name of the resource group. The name is case insensitive.
142
142
  * @param monitorName Name of the Monitors resource
143
143
  * @param ruleSetName Name of the TagRule
@@ -149,7 +149,20 @@ export class TagRulesImpl {
149
149
  return poller.pollUntilDone();
150
150
  }
151
151
  /**
152
- * Delete a TagRule
152
+ * Updates the tag rules for a specific New Relic monitor resource, allowing you to modify the rules
153
+ * that control which Azure resources are monitored
154
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
155
+ * @param monitorName Name of the Monitors resource
156
+ * @param ruleSetName Name of the TagRule
157
+ * @param properties The resource properties to be updated.
158
+ * @param options The options parameters.
159
+ */
160
+ update(resourceGroupName, monitorName, ruleSetName, properties, options) {
161
+ return this.client.sendOperationRequest({ resourceGroupName, monitorName, ruleSetName, properties, options }, updateOperationSpec);
162
+ }
163
+ /**
164
+ * Deletes a tag rule set for a given New Relic monitor resource, removing fine-grained control over
165
+ * observability based on resource tags
153
166
  * @param resourceGroupName The name of the resource group. The name is case insensitive.
154
167
  * @param monitorName Name of the Monitors resource
155
168
  * @param ruleSetName Name of the TagRule
@@ -197,7 +210,8 @@ export class TagRulesImpl {
197
210
  return poller;
198
211
  }
199
212
  /**
200
- * Delete a TagRule
213
+ * Deletes a tag rule set for a given New Relic monitor resource, removing fine-grained control over
214
+ * observability based on resource tags
201
215
  * @param resourceGroupName The name of the resource group. The name is case insensitive.
202
216
  * @param monitorName Name of the Monitors resource
203
217
  * @param ruleSetName Name of the TagRule
@@ -207,17 +221,6 @@ export class TagRulesImpl {
207
221
  const poller = await this.beginDelete(resourceGroupName, monitorName, ruleSetName, options);
208
222
  return poller.pollUntilDone();
209
223
  }
210
- /**
211
- * Update a TagRule
212
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
213
- * @param monitorName Name of the Monitors resource
214
- * @param ruleSetName Name of the TagRule
215
- * @param properties The resource properties to be updated.
216
- * @param options The options parameters.
217
- */
218
- update(resourceGroupName, monitorName, ruleSetName, properties, options) {
219
- return this.client.sendOperationRequest({ resourceGroupName, monitorName, ruleSetName, properties, options }, updateOperationSpec);
220
- }
221
224
  /**
222
225
  * ListByNewRelicMonitorResourceNext
223
226
  * @param resourceGroupName The name of the resource group. The name is case insensitive.
@@ -308,18 +311,18 @@ const createOrUpdateOperationSpec = {
308
311
  mediaType: "json",
309
312
  serializer,
310
313
  };
311
- const deleteOperationSpec = {
314
+ const updateOperationSpec = {
312
315
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/NewRelic.Observability/monitors/{monitorName}/tagRules/{ruleSetName}",
313
- httpMethod: "DELETE",
316
+ httpMethod: "PATCH",
314
317
  responses: {
315
- 200: {},
316
- 201: {},
317
- 202: {},
318
- 204: {},
318
+ 200: {
319
+ bodyMapper: Mappers.TagRule,
320
+ },
319
321
  default: {
320
322
  bodyMapper: Mappers.ErrorResponse,
321
323
  },
322
324
  },
325
+ requestBody: Parameters.properties1,
323
326
  queryParameters: [Parameters.apiVersion],
324
327
  urlParameters: [
325
328
  Parameters.$host,
@@ -328,21 +331,22 @@ const deleteOperationSpec = {
328
331
  Parameters.monitorName,
329
332
  Parameters.ruleSetName,
330
333
  ],
331
- headerParameters: [Parameters.accept],
334
+ headerParameters: [Parameters.accept, Parameters.contentType],
335
+ mediaType: "json",
332
336
  serializer,
333
337
  };
334
- const updateOperationSpec = {
338
+ const deleteOperationSpec = {
335
339
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/NewRelic.Observability/monitors/{monitorName}/tagRules/{ruleSetName}",
336
- httpMethod: "PATCH",
340
+ httpMethod: "DELETE",
337
341
  responses: {
338
- 200: {
339
- bodyMapper: Mappers.TagRule,
340
- },
342
+ 200: {},
343
+ 201: {},
344
+ 202: {},
345
+ 204: {},
341
346
  default: {
342
347
  bodyMapper: Mappers.ErrorResponse,
343
348
  },
344
349
  },
345
- requestBody: Parameters.properties1,
346
350
  queryParameters: [Parameters.apiVersion],
347
351
  urlParameters: [
348
352
  Parameters.$host,
@@ -351,8 +355,7 @@ const updateOperationSpec = {
351
355
  Parameters.monitorName,
352
356
  Parameters.ruleSetName,
353
357
  ],
354
- headerParameters: [Parameters.accept, Parameters.contentType],
355
- mediaType: "json",
358
+ headerParameters: [Parameters.accept],
356
359
  serializer,
357
360
  };
358
361
  const listByNewRelicMonitorResourceNextOperationSpec = {