oci-opsi 2.7.0 → 2.10.0

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 (361) hide show
  1. package/lib/client.d.ts +328 -86
  2. package/lib/client.js +1838 -346
  3. package/lib/client.js.map +1 -1
  4. package/lib/model/awr-hub-lifecycle-state.d.ts +35 -0
  5. package/lib/model/awr-hub-lifecycle-state.js +46 -0
  6. package/lib/model/awr-hub-lifecycle-state.js.map +1 -0
  7. package/lib/model/awr-hub-summary-collection.d.ts +29 -0
  8. package/lib/model/awr-hub-summary-collection.js +64 -0
  9. package/lib/model/awr-hub-summary-collection.js.map +1 -0
  10. package/lib/model/awr-hub-summary.d.ts +93 -0
  11. package/lib/model/awr-hub-summary.js +32 -0
  12. package/lib/model/awr-hub-summary.js.map +1 -0
  13. package/lib/model/awr-hub.d.ts +93 -0
  14. package/lib/model/awr-hub.js +32 -0
  15. package/lib/model/awr-hub.js.map +1 -0
  16. package/lib/model/awr-hubs.d.ts +28 -0
  17. package/lib/model/awr-hubs.js +32 -0
  18. package/lib/model/awr-hubs.js.map +1 -0
  19. package/lib/model/awr-report-format-type.d.ts +31 -0
  20. package/lib/model/awr-report-format-type.js +42 -0
  21. package/lib/model/awr-report-format-type.js.map +1 -0
  22. package/lib/model/awr-report.d.ts +33 -0
  23. package/lib/model/awr-report.js +32 -0
  24. package/lib/model/awr-report.js.map +1 -0
  25. package/lib/model/awr-snapshot-collection.d.ts +29 -0
  26. package/lib/model/awr-snapshot-collection.js +64 -0
  27. package/lib/model/awr-snapshot-collection.js.map +1 -0
  28. package/lib/model/awr-snapshot-summary.d.ts +52 -0
  29. package/lib/model/awr-snapshot-summary.js +32 -0
  30. package/lib/model/awr-snapshot-summary.js.map +1 -0
  31. package/lib/model/awr-source-summary.d.ts +60 -0
  32. package/lib/model/awr-source-summary.js +32 -0
  33. package/lib/model/awr-source-summary.js.map +1 -0
  34. package/lib/model/create-awr-hub-details.d.ts +58 -0
  35. package/lib/model/create-awr-hub-details.js +32 -0
  36. package/lib/model/create-awr-hub-details.js.map +1 -0
  37. package/lib/model/create-operations-insights-warehouse-details.d.ts +60 -0
  38. package/lib/model/create-operations-insights-warehouse-details.js +32 -0
  39. package/lib/model/create-operations-insights-warehouse-details.js.map +1 -0
  40. package/lib/model/create-operations-insights-warehouse-user-details.d.ts +70 -0
  41. package/lib/model/create-operations-insights-warehouse-user-details.js +32 -0
  42. package/lib/model/create-operations-insights-warehouse-user-details.js.map +1 -0
  43. package/lib/model/database-details.d.ts +4 -0
  44. package/lib/model/database-details.js.map +1 -1
  45. package/lib/model/download-operations-insights-warehouse-wallet-details.d.ts +28 -0
  46. package/lib/model/download-operations-insights-warehouse-wallet-details.js +32 -0
  47. package/lib/model/download-operations-insights-warehouse-wallet-details.js.map +1 -0
  48. package/lib/model/em-managed-external-host-insight-summary.d.ts +1 -0
  49. package/lib/model/em-managed-external-host-insight-summary.js.map +1 -1
  50. package/lib/model/em-managed-external-host-insight.d.ts +1 -0
  51. package/lib/model/em-managed-external-host-insight.js.map +1 -1
  52. package/lib/model/host-configuration-summary.d.ts +1 -0
  53. package/lib/model/host-configuration-summary.js.map +1 -1
  54. package/lib/model/host-details.d.ts +5 -0
  55. package/lib/model/host-details.js.map +1 -1
  56. package/lib/model/host-importable-agent-entity-summary.d.ts +1 -0
  57. package/lib/model/host-importable-agent-entity-summary.js.map +1 -1
  58. package/lib/model/index.d.ts +64 -0
  59. package/lib/model/index.js +70 -5
  60. package/lib/model/index.js.map +1 -1
  61. package/lib/model/ingest-sql-stats-details.d.ts +30 -0
  62. package/lib/model/ingest-sql-stats-details.js +64 -0
  63. package/lib/model/ingest-sql-stats-details.js.map +1 -0
  64. package/lib/model/ingest-sql-stats-response-details.d.ts +30 -0
  65. package/lib/model/ingest-sql-stats-response-details.js +32 -0
  66. package/lib/model/ingest-sql-stats-response-details.js.map +1 -0
  67. package/lib/model/macs-managed-external-host-insight-summary.d.ts +1 -0
  68. package/lib/model/macs-managed-external-host-insight-summary.js.map +1 -1
  69. package/lib/model/macs-managed-external-host-insight.d.ts +1 -0
  70. package/lib/model/macs-managed-external-host-insight.js.map +1 -1
  71. package/lib/model/operation-type.d.ts +13 -0
  72. package/lib/model/operation-type.js +13 -0
  73. package/lib/model/operation-type.js.map +1 -1
  74. package/lib/model/operations-insights-warehouse-lifecycle-state.d.ts +35 -0
  75. package/lib/model/operations-insights-warehouse-lifecycle-state.js +46 -0
  76. package/lib/model/operations-insights-warehouse-lifecycle-state.js.map +1 -0
  77. package/lib/model/operations-insights-warehouse-summary-collection.d.ts +29 -0
  78. package/lib/model/operations-insights-warehouse-summary-collection.js +64 -0
  79. package/lib/model/operations-insights-warehouse-summary-collection.js.map +1 -0
  80. package/lib/model/operations-insights-warehouse-summary.d.ts +113 -0
  81. package/lib/model/operations-insights-warehouse-summary.js +32 -0
  82. package/lib/model/operations-insights-warehouse-summary.js.map +1 -0
  83. package/lib/model/operations-insights-warehouse-user-lifecycle-state.d.ts +35 -0
  84. package/lib/model/operations-insights-warehouse-user-lifecycle-state.js +46 -0
  85. package/lib/model/operations-insights-warehouse-user-lifecycle-state.js.map +1 -0
  86. package/lib/model/operations-insights-warehouse-user-summary-collection.d.ts +29 -0
  87. package/lib/model/operations-insights-warehouse-user-summary-collection.js +64 -0
  88. package/lib/model/operations-insights-warehouse-user-summary-collection.js.map +1 -0
  89. package/lib/model/operations-insights-warehouse-user-summary.d.ts +101 -0
  90. package/lib/model/operations-insights-warehouse-user-summary.js +32 -0
  91. package/lib/model/operations-insights-warehouse-user-summary.js.map +1 -0
  92. package/lib/model/operations-insights-warehouse-user.d.ts +101 -0
  93. package/lib/model/operations-insights-warehouse-user.js +32 -0
  94. package/lib/model/operations-insights-warehouse-user.js.map +1 -0
  95. package/lib/model/operations-insights-warehouse-users.d.ts +28 -0
  96. package/lib/model/operations-insights-warehouse-users.js +32 -0
  97. package/lib/model/operations-insights-warehouse-users.js.map +1 -0
  98. package/lib/model/operations-insights-warehouse.d.ts +113 -0
  99. package/lib/model/operations-insights-warehouse.js +32 -0
  100. package/lib/model/operations-insights-warehouse.js.map +1 -0
  101. package/lib/model/operations-insights-warehouses.d.ts +28 -0
  102. package/lib/model/operations-insights-warehouses.js +32 -0
  103. package/lib/model/operations-insights-warehouses.js.map +1 -0
  104. package/lib/model/sql-stats.d.ts +301 -0
  105. package/lib/model/sql-stats.js +32 -0
  106. package/lib/model/sql-stats.js.map +1 -0
  107. package/lib/model/sql-text-summary.d.ts +4 -0
  108. package/lib/model/sql-text-summary.js.map +1 -1
  109. package/lib/model/summarize-awr-sources-summaries-collection.d.ts +29 -0
  110. package/lib/model/summarize-awr-sources-summaries-collection.js +64 -0
  111. package/lib/model/summarize-awr-sources-summaries-collection.js.map +1 -0
  112. package/lib/model/summarize-operations-insights-warehouse-resource-usage-aggregation.d.ts +43 -0
  113. package/lib/model/summarize-operations-insights-warehouse-resource-usage-aggregation.js +32 -0
  114. package/lib/model/summarize-operations-insights-warehouse-resource-usage-aggregation.js.map +1 -0
  115. package/lib/model/update-awr-hub-details.d.ts +46 -0
  116. package/lib/model/update-awr-hub-details.js +32 -0
  117. package/lib/model/update-awr-hub-details.js.map +1 -0
  118. package/lib/model/update-operations-insights-warehouse-details.d.ts +56 -0
  119. package/lib/model/update-operations-insights-warehouse-details.js +32 -0
  120. package/lib/model/update-operations-insights-warehouse-details.js.map +1 -0
  121. package/lib/model/update-operations-insights-warehouse-user-details.d.ts +58 -0
  122. package/lib/model/update-operations-insights-warehouse-user-details.js +32 -0
  123. package/lib/model/update-operations-insights-warehouse-user-details.js.map +1 -0
  124. package/lib/operationsinsights-waiter.d.ts +24 -0
  125. package/lib/operationsinsights-waiter.js +36 -0
  126. package/lib/operationsinsights-waiter.js.map +1 -1
  127. package/lib/request/add-exadata-insight-members-request.d.ts +1 -1
  128. package/lib/request/change-database-insight-compartment-request.d.ts +1 -1
  129. package/lib/request/change-enterprise-manager-bridge-compartment-request.d.ts +1 -1
  130. package/lib/request/change-exadata-insight-compartment-request.d.ts +1 -1
  131. package/lib/request/change-host-insight-compartment-request.d.ts +1 -1
  132. package/lib/request/create-awr-hub-request.d.ts +39 -0
  133. package/lib/request/create-awr-hub-request.js +15 -0
  134. package/lib/request/create-awr-hub-request.js.map +1 -0
  135. package/lib/request/create-database-insight-request.d.ts +1 -1
  136. package/lib/request/create-enterprise-manager-bridge-request.d.ts +1 -1
  137. package/lib/request/create-exadata-insight-request.d.ts +1 -1
  138. package/lib/request/create-host-insight-request.d.ts +1 -1
  139. package/lib/request/create-operations-insights-warehouse-request.d.ts +39 -0
  140. package/lib/request/create-operations-insights-warehouse-request.js +15 -0
  141. package/lib/request/create-operations-insights-warehouse-request.js.map +1 -0
  142. package/lib/request/create-operations-insights-warehouse-user-request.d.ts +39 -0
  143. package/lib/request/create-operations-insights-warehouse-user-request.js +15 -0
  144. package/lib/request/create-operations-insights-warehouse-user-request.js.map +1 -0
  145. package/lib/request/delete-awr-hub-request.d.ts +35 -0
  146. package/lib/request/delete-awr-hub-request.js +15 -0
  147. package/lib/request/delete-awr-hub-request.js.map +1 -0
  148. package/lib/request/delete-database-insight-request.d.ts +1 -1
  149. package/lib/request/delete-enterprise-manager-bridge-request.d.ts +1 -1
  150. package/lib/request/delete-exadata-insight-request.d.ts +1 -1
  151. package/lib/request/delete-host-insight-request.d.ts +1 -1
  152. package/lib/request/delete-operations-insights-warehouse-request.d.ts +35 -0
  153. package/lib/request/delete-operations-insights-warehouse-request.js +15 -0
  154. package/lib/request/delete-operations-insights-warehouse-request.js.map +1 -0
  155. package/lib/request/delete-operations-insights-warehouse-user-request.d.ts +35 -0
  156. package/lib/request/delete-operations-insights-warehouse-user-request.js +15 -0
  157. package/lib/request/delete-operations-insights-warehouse-user-request.js.map +1 -0
  158. package/lib/request/disable-database-insight-request.d.ts +1 -1
  159. package/lib/request/disable-exadata-insight-request.d.ts +1 -1
  160. package/lib/request/disable-host-insight-request.d.ts +1 -1
  161. package/lib/request/download-operations-insights-warehouse-wallet-request.d.ts +43 -0
  162. package/lib/request/download-operations-insights-warehouse-wallet-request.js +15 -0
  163. package/lib/request/download-operations-insights-warehouse-wallet-request.js.map +1 -0
  164. package/lib/request/enable-database-insight-request.d.ts +1 -1
  165. package/lib/request/enable-exadata-insight-request.d.ts +1 -1
  166. package/lib/request/enable-host-insight-request.d.ts +1 -1
  167. package/lib/request/get-awr-hub-request.d.ts +28 -0
  168. package/lib/request/get-awr-hub-request.js +15 -0
  169. package/lib/request/get-awr-hub-request.js.map +1 -0
  170. package/lib/request/get-awr-report-request.d.ts +61 -0
  171. package/lib/request/get-awr-report-request.js +15 -0
  172. package/lib/request/get-awr-report-request.js.map +1 -0
  173. package/lib/request/get-database-insight-request.d.ts +1 -1
  174. package/lib/request/get-enterprise-manager-bridge-request.d.ts +1 -1
  175. package/lib/request/get-exadata-insight-request.d.ts +1 -1
  176. package/lib/request/get-host-insight-request.d.ts +1 -1
  177. package/lib/request/get-operations-insights-warehouse-request.d.ts +28 -0
  178. package/lib/request/get-operations-insights-warehouse-request.js +15 -0
  179. package/lib/request/get-operations-insights-warehouse-request.js.map +1 -0
  180. package/lib/request/get-operations-insights-warehouse-user-request.d.ts +28 -0
  181. package/lib/request/get-operations-insights-warehouse-user-request.js +15 -0
  182. package/lib/request/get-operations-insights-warehouse-user-request.js.map +1 -0
  183. package/lib/request/get-work-request-request.d.ts +1 -1
  184. package/lib/request/index.d.ts +44 -0
  185. package/lib/request/index.js +11 -1
  186. package/lib/request/index.js.map +1 -1
  187. package/lib/request/ingest-database-configuration-request.d.ts +1 -1
  188. package/lib/request/ingest-host-configuration-request.d.ts +1 -1
  189. package/lib/request/ingest-host-metrics-request.d.ts +1 -1
  190. package/lib/request/ingest-sql-bucket-request.d.ts +1 -1
  191. package/lib/request/ingest-sql-plan-lines-request.d.ts +1 -1
  192. package/lib/request/ingest-sql-stats-request.d.ts +56 -0
  193. package/lib/request/ingest-sql-stats-request.js +15 -0
  194. package/lib/request/ingest-sql-stats-request.js.map +1 -0
  195. package/lib/request/ingest-sql-text-request.d.ts +1 -1
  196. package/lib/request/list-awr-hubs-request.d.ts +77 -0
  197. package/lib/request/list-awr-hubs-request.js +24 -0
  198. package/lib/request/list-awr-hubs-request.js.map +1 -0
  199. package/lib/request/list-awr-snapshots-request.d.ts +74 -0
  200. package/lib/request/list-awr-snapshots-request.js +24 -0
  201. package/lib/request/list-awr-snapshots-request.js.map +1 -0
  202. package/lib/request/list-database-configurations-request.d.ts +6 -1
  203. package/lib/request/list-database-configurations-request.js.map +1 -1
  204. package/lib/request/list-database-insights-request.d.ts +6 -1
  205. package/lib/request/list-database-insights-request.js.map +1 -1
  206. package/lib/request/list-enterprise-manager-bridges-request.d.ts +6 -1
  207. package/lib/request/list-enterprise-manager-bridges-request.js.map +1 -1
  208. package/lib/request/list-exadata-configurations-request.d.ts +1 -1
  209. package/lib/request/list-exadata-insights-request.d.ts +6 -1
  210. package/lib/request/list-exadata-insights-request.js.map +1 -1
  211. package/lib/request/list-host-configurations-request.d.ts +6 -1
  212. package/lib/request/list-host-configurations-request.js.map +1 -1
  213. package/lib/request/list-host-insights-request.d.ts +6 -1
  214. package/lib/request/list-host-insights-request.js.map +1 -1
  215. package/lib/request/list-hosted-entities-request.d.ts +1 -1
  216. package/lib/request/list-importable-agent-entities-request.d.ts +1 -1
  217. package/lib/request/list-importable-enterprise-manager-entities-request.d.ts +1 -1
  218. package/lib/request/list-operations-insights-warehouse-users-request.d.ts +77 -0
  219. package/lib/request/list-operations-insights-warehouse-users-request.js +24 -0
  220. package/lib/request/list-operations-insights-warehouse-users-request.js.map +1 -0
  221. package/lib/request/list-operations-insights-warehouses-request.d.ts +73 -0
  222. package/lib/request/list-operations-insights-warehouses-request.js +24 -0
  223. package/lib/request/list-operations-insights-warehouses-request.js.map +1 -0
  224. package/lib/request/list-sql-plans-request.d.ts +1 -1
  225. package/lib/request/list-sql-searches-request.d.ts +6 -1
  226. package/lib/request/list-sql-texts-request.d.ts +6 -1
  227. package/lib/request/list-work-request-errors-request.d.ts +1 -1
  228. package/lib/request/list-work-request-logs-request.d.ts +1 -1
  229. package/lib/request/list-work-requests-request.d.ts +1 -1
  230. package/lib/request/rotate-operations-insights-warehouse-wallet-request.d.ts +35 -0
  231. package/lib/request/rotate-operations-insights-warehouse-wallet-request.js +15 -0
  232. package/lib/request/rotate-operations-insights-warehouse-wallet-request.js.map +1 -0
  233. package/lib/request/summarize-awr-sources-summaries-request.d.ts +70 -0
  234. package/lib/request/summarize-awr-sources-summaries-request.js +24 -0
  235. package/lib/request/summarize-awr-sources-summaries-request.js.map +1 -0
  236. package/lib/request/summarize-database-insight-resource-capacity-trend-request.d.ts +6 -1
  237. package/lib/request/summarize-database-insight-resource-capacity-trend-request.js.map +1 -1
  238. package/lib/request/summarize-database-insight-resource-forecast-trend-request.d.ts +6 -1
  239. package/lib/request/summarize-database-insight-resource-forecast-trend-request.js.map +1 -1
  240. package/lib/request/summarize-database-insight-resource-statistics-request.d.ts +6 -1
  241. package/lib/request/summarize-database-insight-resource-statistics-request.js.map +1 -1
  242. package/lib/request/summarize-database-insight-resource-usage-request.d.ts +6 -1
  243. package/lib/request/summarize-database-insight-resource-usage-request.js.map +1 -1
  244. package/lib/request/summarize-database-insight-resource-usage-trend-request.d.ts +6 -1
  245. package/lib/request/summarize-database-insight-resource-usage-trend-request.js.map +1 -1
  246. package/lib/request/summarize-database-insight-resource-utilization-insight-request.d.ts +6 -1
  247. package/lib/request/summarize-database-insight-resource-utilization-insight-request.js.map +1 -1
  248. package/lib/request/summarize-database-insight-tablespace-usage-trend-request.d.ts +1 -1
  249. package/lib/request/summarize-exadata-insight-resource-capacity-trend-aggregated-request.d.ts +1 -1
  250. package/lib/request/summarize-exadata-insight-resource-capacity-trend-request.d.ts +1 -1
  251. package/lib/request/summarize-exadata-insight-resource-forecast-trend-aggregated-request.d.ts +1 -1
  252. package/lib/request/summarize-exadata-insight-resource-forecast-trend-request.d.ts +1 -1
  253. package/lib/request/summarize-exadata-insight-resource-statistics-request.d.ts +1 -1
  254. package/lib/request/summarize-exadata-insight-resource-usage-aggregated-request.d.ts +1 -1
  255. package/lib/request/summarize-exadata-insight-resource-usage-request.d.ts +1 -1
  256. package/lib/request/summarize-exadata-insight-resource-utilization-insight-request.d.ts +1 -1
  257. package/lib/request/summarize-exadata-members-request.d.ts +1 -1
  258. package/lib/request/summarize-host-insight-resource-capacity-trend-request.d.ts +6 -1
  259. package/lib/request/summarize-host-insight-resource-capacity-trend-request.js.map +1 -1
  260. package/lib/request/summarize-host-insight-resource-forecast-trend-request.d.ts +6 -1
  261. package/lib/request/summarize-host-insight-resource-forecast-trend-request.js.map +1 -1
  262. package/lib/request/summarize-host-insight-resource-statistics-request.d.ts +6 -1
  263. package/lib/request/summarize-host-insight-resource-statistics-request.js.map +1 -1
  264. package/lib/request/summarize-host-insight-resource-usage-request.d.ts +6 -1
  265. package/lib/request/summarize-host-insight-resource-usage-request.js.map +1 -1
  266. package/lib/request/summarize-host-insight-resource-usage-trend-request.d.ts +6 -1
  267. package/lib/request/summarize-host-insight-resource-usage-trend-request.js.map +1 -1
  268. package/lib/request/summarize-host-insight-resource-utilization-insight-request.d.ts +6 -1
  269. package/lib/request/summarize-host-insight-resource-utilization-insight-request.js.map +1 -1
  270. package/lib/request/summarize-operations-insights-warehouse-resource-usage-request.d.ts +28 -0
  271. package/lib/request/summarize-operations-insights-warehouse-resource-usage-request.js +15 -0
  272. package/lib/request/summarize-operations-insights-warehouse-resource-usage-request.js.map +1 -0
  273. package/lib/request/summarize-sql-insights-request.d.ts +6 -1
  274. package/lib/request/summarize-sql-insights-request.js.map +1 -1
  275. package/lib/request/summarize-sql-plan-insights-request.d.ts +1 -1
  276. package/lib/request/summarize-sql-response-time-distributions-request.d.ts +1 -1
  277. package/lib/request/summarize-sql-statistics-request.d.ts +6 -1
  278. package/lib/request/summarize-sql-statistics-request.js.map +1 -1
  279. package/lib/request/summarize-sql-statistics-time-series-by-plan-request.d.ts +1 -1
  280. package/lib/request/summarize-sql-statistics-time-series-request.d.ts +6 -1
  281. package/lib/request/update-awr-hub-request.d.ts +40 -0
  282. package/lib/request/update-awr-hub-request.js +15 -0
  283. package/lib/request/update-awr-hub-request.js.map +1 -0
  284. package/lib/request/update-database-insight-request.d.ts +1 -1
  285. package/lib/request/update-enterprise-manager-bridge-request.d.ts +1 -1
  286. package/lib/request/update-exadata-insight-request.d.ts +1 -1
  287. package/lib/request/update-host-insight-request.d.ts +1 -1
  288. package/lib/request/update-operations-insights-warehouse-request.d.ts +40 -0
  289. package/lib/request/update-operations-insights-warehouse-request.js +15 -0
  290. package/lib/request/update-operations-insights-warehouse-request.js.map +1 -0
  291. package/lib/request/update-operations-insights-warehouse-user-request.d.ts +40 -0
  292. package/lib/request/update-operations-insights-warehouse-user-request.js +15 -0
  293. package/lib/request/update-operations-insights-warehouse-user-request.js.map +1 -0
  294. package/lib/response/create-awr-hub-response.d.ts +43 -0
  295. package/lib/response/create-awr-hub-response.js +15 -0
  296. package/lib/response/create-awr-hub-response.js.map +1 -0
  297. package/lib/response/create-operations-insights-warehouse-response.d.ts +43 -0
  298. package/lib/response/create-operations-insights-warehouse-response.js +15 -0
  299. package/lib/response/create-operations-insights-warehouse-response.js.map +1 -0
  300. package/lib/response/create-operations-insights-warehouse-user-response.d.ts +43 -0
  301. package/lib/response/create-operations-insights-warehouse-user-response.js +15 -0
  302. package/lib/response/create-operations-insights-warehouse-user-response.js.map +1 -0
  303. package/lib/response/delete-awr-hub-response.d.ts +25 -0
  304. package/lib/response/delete-awr-hub-response.js +15 -0
  305. package/lib/response/delete-awr-hub-response.js.map +1 -0
  306. package/lib/response/delete-operations-insights-warehouse-response.d.ts +25 -0
  307. package/lib/response/delete-operations-insights-warehouse-response.js +15 -0
  308. package/lib/response/delete-operations-insights-warehouse-response.js.map +1 -0
  309. package/lib/response/delete-operations-insights-warehouse-user-response.d.ts +25 -0
  310. package/lib/response/delete-operations-insights-warehouse-user-response.js +15 -0
  311. package/lib/response/delete-operations-insights-warehouse-user-response.js.map +1 -0
  312. package/lib/response/download-operations-insights-warehouse-wallet-response.d.ts +38 -0
  313. package/lib/response/download-operations-insights-warehouse-wallet-response.js +15 -0
  314. package/lib/response/download-operations-insights-warehouse-wallet-response.js.map +1 -0
  315. package/lib/response/get-awr-hub-response.d.ts +30 -0
  316. package/lib/response/get-awr-hub-response.js +15 -0
  317. package/lib/response/get-awr-hub-response.js.map +1 -0
  318. package/lib/response/get-awr-report-response.d.ts +25 -0
  319. package/lib/response/get-awr-report-response.js +15 -0
  320. package/lib/response/get-awr-report-response.js.map +1 -0
  321. package/lib/response/get-operations-insights-warehouse-response.d.ts +30 -0
  322. package/lib/response/get-operations-insights-warehouse-response.js +15 -0
  323. package/lib/response/get-operations-insights-warehouse-response.js.map +1 -0
  324. package/lib/response/get-operations-insights-warehouse-user-response.d.ts +30 -0
  325. package/lib/response/get-operations-insights-warehouse-user-response.js +15 -0
  326. package/lib/response/get-operations-insights-warehouse-user-response.js.map +1 -0
  327. package/lib/response/index.d.ts +44 -0
  328. package/lib/response/ingest-sql-stats-response.d.ts +30 -0
  329. package/lib/response/ingest-sql-stats-response.js +15 -0
  330. package/lib/response/ingest-sql-stats-response.js.map +1 -0
  331. package/lib/response/list-awr-hubs-response.d.ts +32 -0
  332. package/lib/response/list-awr-hubs-response.js +15 -0
  333. package/lib/response/list-awr-hubs-response.js.map +1 -0
  334. package/lib/response/list-awr-snapshots-response.d.ts +32 -0
  335. package/lib/response/list-awr-snapshots-response.js +15 -0
  336. package/lib/response/list-awr-snapshots-response.js.map +1 -0
  337. package/lib/response/list-operations-insights-warehouse-users-response.d.ts +32 -0
  338. package/lib/response/list-operations-insights-warehouse-users-response.js +15 -0
  339. package/lib/response/list-operations-insights-warehouse-users-response.js.map +1 -0
  340. package/lib/response/list-operations-insights-warehouses-response.d.ts +32 -0
  341. package/lib/response/list-operations-insights-warehouses-response.js +15 -0
  342. package/lib/response/list-operations-insights-warehouses-response.js.map +1 -0
  343. package/lib/response/rotate-operations-insights-warehouse-wallet-response.d.ts +25 -0
  344. package/lib/response/rotate-operations-insights-warehouse-wallet-response.js +15 -0
  345. package/lib/response/rotate-operations-insights-warehouse-wallet-response.js.map +1 -0
  346. package/lib/response/summarize-awr-sources-summaries-response.d.ts +32 -0
  347. package/lib/response/summarize-awr-sources-summaries-response.js +15 -0
  348. package/lib/response/summarize-awr-sources-summaries-response.js.map +1 -0
  349. package/lib/response/summarize-operations-insights-warehouse-resource-usage-response.d.ts +30 -0
  350. package/lib/response/summarize-operations-insights-warehouse-resource-usage-response.js +15 -0
  351. package/lib/response/summarize-operations-insights-warehouse-resource-usage-response.js.map +1 -0
  352. package/lib/response/update-awr-hub-response.d.ts +25 -0
  353. package/lib/response/update-awr-hub-response.js +15 -0
  354. package/lib/response/update-awr-hub-response.js.map +1 -0
  355. package/lib/response/update-operations-insights-warehouse-response.d.ts +25 -0
  356. package/lib/response/update-operations-insights-warehouse-response.js +15 -0
  357. package/lib/response/update-operations-insights-warehouse-response.js.map +1 -0
  358. package/lib/response/update-operations-insights-warehouse-user-response.d.ts +25 -0
  359. package/lib/response/update-operations-insights-warehouse-user-response.js +15 -0
  360. package/lib/response/update-operations-insights-warehouse-user-response.js.map +1 -0
  361. package/package.json +3 -3
package/lib/client.js CHANGED
@@ -55,7 +55,7 @@ var OperationsInsightsApiKeys;
55
55
  (function (OperationsInsightsApiKeys) {
56
56
  })(OperationsInsightsApiKeys = exports.OperationsInsightsApiKeys || (exports.OperationsInsightsApiKeys = {}));
57
57
  /**
58
- * This service client does not use circuit breakers by default if the user has not defined a circuit breaker configuration.
58
+ * This service client uses {@link common.CircuitBreaker.DefaultConfiguration} for all the operations by default if no circuit breaker configuration is defined by the user.
59
59
  */
60
60
  class OperationsInsightsClient {
61
61
  constructor(params, clientConfiguration) {
@@ -72,7 +72,7 @@ class OperationsInsightsClient {
72
72
  : null;
73
73
  }
74
74
  // if circuit breaker is not created, check if circuit breaker system is enabled to use default circuit breaker
75
- const specCircuitBreakerEnabled = false;
75
+ const specCircuitBreakerEnabled = true;
76
76
  if (!this._circuitBreaker &&
77
77
  common.utils.isCircuitBreakerSystemEnabled(clientConfiguration) &&
78
78
  (specCircuitBreakerEnabled || common.CircuitBreaker.DefaultCircuitBreakerOverriden)) {
@@ -153,7 +153,7 @@ class OperationsInsightsClient {
153
153
  * @param AddExadataInsightMembersRequest
154
154
  * @return AddExadataInsightMembersResponse
155
155
  * @throws OciError when an error occurs
156
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.7.0/opsi/AddExadataInsightMembers.ts.html |here} to see how to use AddExadataInsightMembers API.
156
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.10.0/opsi/AddExadataInsightMembers.ts.html |here} to see how to use AddExadataInsightMembers API.
157
157
  */
158
158
  addExadataInsightMembers(addExadataInsightMembersRequest) {
159
159
  return __awaiter(this, void 0, void 0, function* () {
@@ -213,7 +213,7 @@ class OperationsInsightsClient {
213
213
  * @param ChangeDatabaseInsightCompartmentRequest
214
214
  * @return ChangeDatabaseInsightCompartmentResponse
215
215
  * @throws OciError when an error occurs
216
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.7.0/opsi/ChangeDatabaseInsightCompartment.ts.html |here} to see how to use ChangeDatabaseInsightCompartment API.
216
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.10.0/opsi/ChangeDatabaseInsightCompartment.ts.html |here} to see how to use ChangeDatabaseInsightCompartment API.
217
217
  */
218
218
  changeDatabaseInsightCompartment(changeDatabaseInsightCompartmentRequest) {
219
219
  return __awaiter(this, void 0, void 0, function* () {
@@ -273,7 +273,7 @@ class OperationsInsightsClient {
273
273
  * @param ChangeEnterpriseManagerBridgeCompartmentRequest
274
274
  * @return ChangeEnterpriseManagerBridgeCompartmentResponse
275
275
  * @throws OciError when an error occurs
276
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.7.0/opsi/ChangeEnterpriseManagerBridgeCompartment.ts.html |here} to see how to use ChangeEnterpriseManagerBridgeCompartment API.
276
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.10.0/opsi/ChangeEnterpriseManagerBridgeCompartment.ts.html |here} to see how to use ChangeEnterpriseManagerBridgeCompartment API.
277
277
  */
278
278
  changeEnterpriseManagerBridgeCompartment(changeEnterpriseManagerBridgeCompartmentRequest) {
279
279
  return __awaiter(this, void 0, void 0, function* () {
@@ -332,7 +332,7 @@ class OperationsInsightsClient {
332
332
  * @param ChangeExadataInsightCompartmentRequest
333
333
  * @return ChangeExadataInsightCompartmentResponse
334
334
  * @throws OciError when an error occurs
335
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.7.0/opsi/ChangeExadataInsightCompartment.ts.html |here} to see how to use ChangeExadataInsightCompartment API.
335
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.10.0/opsi/ChangeExadataInsightCompartment.ts.html |here} to see how to use ChangeExadataInsightCompartment API.
336
336
  */
337
337
  changeExadataInsightCompartment(changeExadataInsightCompartmentRequest) {
338
338
  return __awaiter(this, void 0, void 0, function* () {
@@ -392,7 +392,7 @@ class OperationsInsightsClient {
392
392
  * @param ChangeHostInsightCompartmentRequest
393
393
  * @return ChangeHostInsightCompartmentResponse
394
394
  * @throws OciError when an error occurs
395
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.7.0/opsi/ChangeHostInsightCompartment.ts.html |here} to see how to use ChangeHostInsightCompartment API.
395
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.10.0/opsi/ChangeHostInsightCompartment.ts.html |here} to see how to use ChangeHostInsightCompartment API.
396
396
  */
397
397
  changeHostInsightCompartment(changeHostInsightCompartmentRequest) {
398
398
  return __awaiter(this, void 0, void 0, function* () {
@@ -446,6 +446,84 @@ class OperationsInsightsClient {
446
446
  }
447
447
  });
448
448
  }
449
+ /**
450
+ * Create a AWR hub resource for the tenant in Operations Insights.
451
+ * This resource will be created in root compartment.
452
+ *
453
+ * This operation does not retry by default if the user has not defined a retry configuration.
454
+ * @param CreateAwrHubRequest
455
+ * @return CreateAwrHubResponse
456
+ * @throws OciError when an error occurs
457
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.10.0/opsi/CreateAwrHub.ts.html |here} to see how to use CreateAwrHub API.
458
+ */
459
+ createAwrHub(createAwrHubRequest) {
460
+ return __awaiter(this, void 0, void 0, function* () {
461
+ if (this.logger)
462
+ this.logger.debug("Calling operation OperationsInsightsClient#createAwrHub.");
463
+ const pathParams = {};
464
+ const queryParams = {};
465
+ let headerParams = {
466
+ "Content-Type": common.Constants.APPLICATION_JSON,
467
+ "opc-retry-token": createAwrHubRequest.opcRetryToken,
468
+ "opc-request-id": createAwrHubRequest.opcRequestId
469
+ };
470
+ const specRetryConfiguration = common.NoRetryConfigurationDetails;
471
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, createAwrHubRequest.retryConfiguration, specRetryConfiguration);
472
+ if (this.logger)
473
+ retrier.logger = this.logger;
474
+ const request = yield oci_common_1.composeRequest({
475
+ baseEndpoint: this._endpoint,
476
+ defaultHeaders: this._defaultHeaders,
477
+ path: "/awrHubs",
478
+ method: "POST",
479
+ bodyContent: common.ObjectSerializer.serialize(createAwrHubRequest.createAwrHubDetails, "CreateAwrHubDetails", model.CreateAwrHubDetails.getJsonObj),
480
+ pathParams: pathParams,
481
+ headerParams: headerParams,
482
+ queryParams: queryParams
483
+ });
484
+ try {
485
+ const response = yield retrier.makeServiceCall(this._httpClient, request);
486
+ const sdkResponse = oci_common_1.composeResponse({
487
+ responseObject: {},
488
+ body: yield response.json(),
489
+ bodyKey: "awrHub",
490
+ bodyModel: model.AwrHub,
491
+ type: "model.AwrHub",
492
+ responseHeaders: [
493
+ {
494
+ value: response.headers.get("opc-work-request-id"),
495
+ key: "opcWorkRequestId",
496
+ dataType: "string"
497
+ },
498
+ {
499
+ value: response.headers.get("opc-request-id"),
500
+ key: "opcRequestId",
501
+ dataType: "string"
502
+ },
503
+ {
504
+ value: response.headers.get("location"),
505
+ key: "location",
506
+ dataType: "string"
507
+ },
508
+ {
509
+ value: response.headers.get("content-location"),
510
+ key: "contentLocation",
511
+ dataType: "string"
512
+ },
513
+ {
514
+ value: response.headers.get("etag"),
515
+ key: "etag",
516
+ dataType: "string"
517
+ }
518
+ ]
519
+ });
520
+ return sdkResponse;
521
+ }
522
+ catch (err) {
523
+ throw err;
524
+ }
525
+ });
526
+ }
449
527
  /**
450
528
  * Create a Database Insight resource for a database in Operations Insights. The database will be enabled in Operations Insights. Database metric collection and analysis will be started.
451
529
  *
@@ -453,7 +531,7 @@ class OperationsInsightsClient {
453
531
  * @param CreateDatabaseInsightRequest
454
532
  * @return CreateDatabaseInsightResponse
455
533
  * @throws OciError when an error occurs
456
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.7.0/opsi/CreateDatabaseInsight.ts.html |here} to see how to use CreateDatabaseInsight API.
534
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.10.0/opsi/CreateDatabaseInsight.ts.html |here} to see how to use CreateDatabaseInsight API.
457
535
  */
458
536
  createDatabaseInsight(createDatabaseInsightRequest) {
459
537
  return __awaiter(this, void 0, void 0, function* () {
@@ -530,7 +608,7 @@ class OperationsInsightsClient {
530
608
  * @param CreateEnterpriseManagerBridgeRequest
531
609
  * @return CreateEnterpriseManagerBridgeResponse
532
610
  * @throws OciError when an error occurs
533
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.7.0/opsi/CreateEnterpriseManagerBridge.ts.html |here} to see how to use CreateEnterpriseManagerBridge API.
611
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.10.0/opsi/CreateEnterpriseManagerBridge.ts.html |here} to see how to use CreateEnterpriseManagerBridge API.
534
612
  */
535
613
  createEnterpriseManagerBridge(createEnterpriseManagerBridgeRequest) {
536
614
  return __awaiter(this, void 0, void 0, function* () {
@@ -607,7 +685,7 @@ class OperationsInsightsClient {
607
685
  * @param CreateExadataInsightRequest
608
686
  * @return CreateExadataInsightResponse
609
687
  * @throws OciError when an error occurs
610
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.7.0/opsi/CreateExadataInsight.ts.html |here} to see how to use CreateExadataInsight API.
688
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.10.0/opsi/CreateExadataInsight.ts.html |here} to see how to use CreateExadataInsight API.
611
689
  */
612
690
  createExadataInsight(createExadataInsightRequest) {
613
691
  return __awaiter(this, void 0, void 0, function* () {
@@ -684,7 +762,7 @@ class OperationsInsightsClient {
684
762
  * @param CreateHostInsightRequest
685
763
  * @return CreateHostInsightResponse
686
764
  * @throws OciError when an error occurs
687
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.7.0/opsi/CreateHostInsight.ts.html |here} to see how to use CreateHostInsight API.
765
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.10.0/opsi/CreateHostInsight.ts.html |here} to see how to use CreateHostInsight API.
688
766
  */
689
767
  createHostInsight(createHostInsightRequest) {
690
768
  return __awaiter(this, void 0, void 0, function* () {
@@ -755,35 +833,36 @@ class OperationsInsightsClient {
755
833
  });
756
834
  }
757
835
  /**
758
- * Deletes a database insight. The database insight will be deleted and cannot be enabled again.
836
+ * Create a Operations Insights Warehouse resource for the tenant in Operations Insights. New ADW will be provisioned for this tenant.
837
+ * There is only expected to be 1 warehouse per tenant. The warehouse is expected to be in the root compartment.
838
+ *
759
839
  * This operation does not retry by default if the user has not defined a retry configuration.
760
- * @param DeleteDatabaseInsightRequest
761
- * @return DeleteDatabaseInsightResponse
840
+ * @param CreateOperationsInsightsWarehouseRequest
841
+ * @return CreateOperationsInsightsWarehouseResponse
762
842
  * @throws OciError when an error occurs
763
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.7.0/opsi/DeleteDatabaseInsight.ts.html |here} to see how to use DeleteDatabaseInsight API.
843
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.10.0/opsi/CreateOperationsInsightsWarehouse.ts.html |here} to see how to use CreateOperationsInsightsWarehouse API.
764
844
  */
765
- deleteDatabaseInsight(deleteDatabaseInsightRequest) {
845
+ createOperationsInsightsWarehouse(createOperationsInsightsWarehouseRequest) {
766
846
  return __awaiter(this, void 0, void 0, function* () {
767
847
  if (this.logger)
768
- this.logger.debug("Calling operation OperationsInsightsClient#deleteDatabaseInsight.");
769
- const pathParams = {
770
- "{databaseInsightId}": deleteDatabaseInsightRequest.databaseInsightId
771
- };
848
+ this.logger.debug("Calling operation OperationsInsightsClient#createOperationsInsightsWarehouse.");
849
+ const pathParams = {};
772
850
  const queryParams = {};
773
851
  let headerParams = {
774
852
  "Content-Type": common.Constants.APPLICATION_JSON,
775
- "if-match": deleteDatabaseInsightRequest.ifMatch,
776
- "opc-request-id": deleteDatabaseInsightRequest.opcRequestId
853
+ "opc-retry-token": createOperationsInsightsWarehouseRequest.opcRetryToken,
854
+ "opc-request-id": createOperationsInsightsWarehouseRequest.opcRequestId
777
855
  };
778
856
  const specRetryConfiguration = common.NoRetryConfigurationDetails;
779
- const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, deleteDatabaseInsightRequest.retryConfiguration, specRetryConfiguration);
857
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, createOperationsInsightsWarehouseRequest.retryConfiguration, specRetryConfiguration);
780
858
  if (this.logger)
781
859
  retrier.logger = this.logger;
782
860
  const request = yield oci_common_1.composeRequest({
783
861
  baseEndpoint: this._endpoint,
784
862
  defaultHeaders: this._defaultHeaders,
785
- path: "/databaseInsights/{databaseInsightId}",
786
- method: "DELETE",
863
+ path: "/operationsInsightsWarehouses",
864
+ method: "POST",
865
+ bodyContent: common.ObjectSerializer.serialize(createOperationsInsightsWarehouseRequest.createOperationsInsightsWarehouseDetails, "CreateOperationsInsightsWarehouseDetails", model.CreateOperationsInsightsWarehouseDetails.getJsonObj),
787
866
  pathParams: pathParams,
788
867
  headerParams: headerParams,
789
868
  queryParams: queryParams
@@ -792,6 +871,10 @@ class OperationsInsightsClient {
792
871
  const response = yield retrier.makeServiceCall(this._httpClient, request);
793
872
  const sdkResponse = oci_common_1.composeResponse({
794
873
  responseObject: {},
874
+ body: yield response.json(),
875
+ bodyKey: "operationsInsightsWarehouse",
876
+ bodyModel: model.OperationsInsightsWarehouse,
877
+ type: "model.OperationsInsightsWarehouse",
795
878
  responseHeaders: [
796
879
  {
797
880
  value: response.headers.get("opc-work-request-id"),
@@ -802,6 +885,21 @@ class OperationsInsightsClient {
802
885
  value: response.headers.get("opc-request-id"),
803
886
  key: "opcRequestId",
804
887
  dataType: "string"
888
+ },
889
+ {
890
+ value: response.headers.get("location"),
891
+ key: "location",
892
+ dataType: "string"
893
+ },
894
+ {
895
+ value: response.headers.get("content-location"),
896
+ key: "contentLocation",
897
+ dataType: "string"
898
+ },
899
+ {
900
+ value: response.headers.get("etag"),
901
+ key: "etag",
902
+ dataType: "string"
805
903
  }
806
904
  ]
807
905
  });
@@ -813,35 +911,36 @@ class OperationsInsightsClient {
813
911
  });
814
912
  }
815
913
  /**
816
- * Deletes an Operations Insights Enterprise Manager bridge. If any database insight is still referencing this bridge, the operation will fail.
914
+ * Create a Operations Insights Warehouse user resource for the tenant in Operations Insights.
915
+ * This resource will be created in root compartment.
916
+ *
817
917
  * This operation does not retry by default if the user has not defined a retry configuration.
818
- * @param DeleteEnterpriseManagerBridgeRequest
819
- * @return DeleteEnterpriseManagerBridgeResponse
918
+ * @param CreateOperationsInsightsWarehouseUserRequest
919
+ * @return CreateOperationsInsightsWarehouseUserResponse
820
920
  * @throws OciError when an error occurs
821
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.7.0/opsi/DeleteEnterpriseManagerBridge.ts.html |here} to see how to use DeleteEnterpriseManagerBridge API.
921
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.10.0/opsi/CreateOperationsInsightsWarehouseUser.ts.html |here} to see how to use CreateOperationsInsightsWarehouseUser API.
822
922
  */
823
- deleteEnterpriseManagerBridge(deleteEnterpriseManagerBridgeRequest) {
923
+ createOperationsInsightsWarehouseUser(createOperationsInsightsWarehouseUserRequest) {
824
924
  return __awaiter(this, void 0, void 0, function* () {
825
925
  if (this.logger)
826
- this.logger.debug("Calling operation OperationsInsightsClient#deleteEnterpriseManagerBridge.");
827
- const pathParams = {
828
- "{enterpriseManagerBridgeId}": deleteEnterpriseManagerBridgeRequest.enterpriseManagerBridgeId
829
- };
926
+ this.logger.debug("Calling operation OperationsInsightsClient#createOperationsInsightsWarehouseUser.");
927
+ const pathParams = {};
830
928
  const queryParams = {};
831
929
  let headerParams = {
832
930
  "Content-Type": common.Constants.APPLICATION_JSON,
833
- "if-match": deleteEnterpriseManagerBridgeRequest.ifMatch,
834
- "opc-request-id": deleteEnterpriseManagerBridgeRequest.opcRequestId
931
+ "opc-retry-token": createOperationsInsightsWarehouseUserRequest.opcRetryToken,
932
+ "opc-request-id": createOperationsInsightsWarehouseUserRequest.opcRequestId
835
933
  };
836
934
  const specRetryConfiguration = common.NoRetryConfigurationDetails;
837
- const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, deleteEnterpriseManagerBridgeRequest.retryConfiguration, specRetryConfiguration);
935
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, createOperationsInsightsWarehouseUserRequest.retryConfiguration, specRetryConfiguration);
838
936
  if (this.logger)
839
937
  retrier.logger = this.logger;
840
938
  const request = yield oci_common_1.composeRequest({
841
939
  baseEndpoint: this._endpoint,
842
940
  defaultHeaders: this._defaultHeaders,
843
- path: "/enterpriseManagerBridges/{enterpriseManagerBridgeId}",
844
- method: "DELETE",
941
+ path: "/operationsInsightsWarehouseUsers",
942
+ method: "POST",
943
+ bodyContent: common.ObjectSerializer.serialize(createOperationsInsightsWarehouseUserRequest.createOperationsInsightsWarehouseUserDetails, "CreateOperationsInsightsWarehouseUserDetails", model.CreateOperationsInsightsWarehouseUserDetails.getJsonObj),
845
944
  pathParams: pathParams,
846
945
  headerParams: headerParams,
847
946
  queryParams: queryParams
@@ -850,6 +949,10 @@ class OperationsInsightsClient {
850
949
  const response = yield retrier.makeServiceCall(this._httpClient, request);
851
950
  const sdkResponse = oci_common_1.composeResponse({
852
951
  responseObject: {},
952
+ body: yield response.json(),
953
+ bodyKey: "operationsInsightsWarehouseUser",
954
+ bodyModel: model.OperationsInsightsWarehouseUser,
955
+ type: "model.OperationsInsightsWarehouseUser",
853
956
  responseHeaders: [
854
957
  {
855
958
  value: response.headers.get("opc-work-request-id"),
@@ -860,6 +963,21 @@ class OperationsInsightsClient {
860
963
  value: response.headers.get("opc-request-id"),
861
964
  key: "opcRequestId",
862
965
  dataType: "string"
966
+ },
967
+ {
968
+ value: response.headers.get("location"),
969
+ key: "location",
970
+ dataType: "string"
971
+ },
972
+ {
973
+ value: response.headers.get("content-location"),
974
+ key: "contentLocation",
975
+ dataType: "string"
976
+ },
977
+ {
978
+ value: response.headers.get("etag"),
979
+ key: "etag",
980
+ dataType: "string"
863
981
  }
864
982
  ]
865
983
  });
@@ -871,34 +989,34 @@ class OperationsInsightsClient {
871
989
  });
872
990
  }
873
991
  /**
874
- * Deletes an Exadata insight. The Exadata insight will be deleted and cannot be enabled again.
992
+ * Deletes an AWR hub.
875
993
  * This operation does not retry by default if the user has not defined a retry configuration.
876
- * @param DeleteExadataInsightRequest
877
- * @return DeleteExadataInsightResponse
994
+ * @param DeleteAwrHubRequest
995
+ * @return DeleteAwrHubResponse
878
996
  * @throws OciError when an error occurs
879
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.7.0/opsi/DeleteExadataInsight.ts.html |here} to see how to use DeleteExadataInsight API.
997
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.10.0/opsi/DeleteAwrHub.ts.html |here} to see how to use DeleteAwrHub API.
880
998
  */
881
- deleteExadataInsight(deleteExadataInsightRequest) {
999
+ deleteAwrHub(deleteAwrHubRequest) {
882
1000
  return __awaiter(this, void 0, void 0, function* () {
883
1001
  if (this.logger)
884
- this.logger.debug("Calling operation OperationsInsightsClient#deleteExadataInsight.");
1002
+ this.logger.debug("Calling operation OperationsInsightsClient#deleteAwrHub.");
885
1003
  const pathParams = {
886
- "{exadataInsightId}": deleteExadataInsightRequest.exadataInsightId
1004
+ "{awrHubId}": deleteAwrHubRequest.awrHubId
887
1005
  };
888
1006
  const queryParams = {};
889
1007
  let headerParams = {
890
1008
  "Content-Type": common.Constants.APPLICATION_JSON,
891
- "if-match": deleteExadataInsightRequest.ifMatch,
892
- "opc-request-id": deleteExadataInsightRequest.opcRequestId
1009
+ "if-match": deleteAwrHubRequest.ifMatch,
1010
+ "opc-request-id": deleteAwrHubRequest.opcRequestId
893
1011
  };
894
1012
  const specRetryConfiguration = common.NoRetryConfigurationDetails;
895
- const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, deleteExadataInsightRequest.retryConfiguration, specRetryConfiguration);
1013
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, deleteAwrHubRequest.retryConfiguration, specRetryConfiguration);
896
1014
  if (this.logger)
897
1015
  retrier.logger = this.logger;
898
1016
  const request = yield oci_common_1.composeRequest({
899
1017
  baseEndpoint: this._endpoint,
900
1018
  defaultHeaders: this._defaultHeaders,
901
- path: "/exadataInsights/{exadataInsightId}",
1019
+ path: "/awrHubs/{awrHubId}",
902
1020
  method: "DELETE",
903
1021
  pathParams: pathParams,
904
1022
  headerParams: headerParams,
@@ -929,34 +1047,34 @@ class OperationsInsightsClient {
929
1047
  });
930
1048
  }
931
1049
  /**
932
- * Deletes a host insight. The host insight will be deleted and cannot be enabled again.
1050
+ * Deletes a database insight. The database insight will be deleted and cannot be enabled again.
933
1051
  * This operation does not retry by default if the user has not defined a retry configuration.
934
- * @param DeleteHostInsightRequest
935
- * @return DeleteHostInsightResponse
1052
+ * @param DeleteDatabaseInsightRequest
1053
+ * @return DeleteDatabaseInsightResponse
936
1054
  * @throws OciError when an error occurs
937
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.7.0/opsi/DeleteHostInsight.ts.html |here} to see how to use DeleteHostInsight API.
1055
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.10.0/opsi/DeleteDatabaseInsight.ts.html |here} to see how to use DeleteDatabaseInsight API.
938
1056
  */
939
- deleteHostInsight(deleteHostInsightRequest) {
1057
+ deleteDatabaseInsight(deleteDatabaseInsightRequest) {
940
1058
  return __awaiter(this, void 0, void 0, function* () {
941
1059
  if (this.logger)
942
- this.logger.debug("Calling operation OperationsInsightsClient#deleteHostInsight.");
1060
+ this.logger.debug("Calling operation OperationsInsightsClient#deleteDatabaseInsight.");
943
1061
  const pathParams = {
944
- "{hostInsightId}": deleteHostInsightRequest.hostInsightId
1062
+ "{databaseInsightId}": deleteDatabaseInsightRequest.databaseInsightId
945
1063
  };
946
1064
  const queryParams = {};
947
1065
  let headerParams = {
948
1066
  "Content-Type": common.Constants.APPLICATION_JSON,
949
- "if-match": deleteHostInsightRequest.ifMatch,
950
- "opc-request-id": deleteHostInsightRequest.opcRequestId
1067
+ "if-match": deleteDatabaseInsightRequest.ifMatch,
1068
+ "opc-request-id": deleteDatabaseInsightRequest.opcRequestId
951
1069
  };
952
1070
  const specRetryConfiguration = common.NoRetryConfigurationDetails;
953
- const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, deleteHostInsightRequest.retryConfiguration, specRetryConfiguration);
1071
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, deleteDatabaseInsightRequest.retryConfiguration, specRetryConfiguration);
954
1072
  if (this.logger)
955
1073
  retrier.logger = this.logger;
956
1074
  const request = yield oci_common_1.composeRequest({
957
1075
  baseEndpoint: this._endpoint,
958
1076
  defaultHeaders: this._defaultHeaders,
959
- path: "/hostInsights/{hostInsightId}",
1077
+ path: "/databaseInsights/{databaseInsightId}",
960
1078
  method: "DELETE",
961
1079
  pathParams: pathParams,
962
1080
  headerParams: headerParams,
@@ -987,36 +1105,35 @@ class OperationsInsightsClient {
987
1105
  });
988
1106
  }
989
1107
  /**
990
- * Disables a database in Operations Insights. Database metric collection and analysis will be stopped.
1108
+ * Deletes an Operations Insights Enterprise Manager bridge. If any database insight is still referencing this bridge, the operation will fail.
991
1109
  * This operation does not retry by default if the user has not defined a retry configuration.
992
- * @param DisableDatabaseInsightRequest
993
- * @return DisableDatabaseInsightResponse
1110
+ * @param DeleteEnterpriseManagerBridgeRequest
1111
+ * @return DeleteEnterpriseManagerBridgeResponse
994
1112
  * @throws OciError when an error occurs
995
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.7.0/opsi/DisableDatabaseInsight.ts.html |here} to see how to use DisableDatabaseInsight API.
1113
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.10.0/opsi/DeleteEnterpriseManagerBridge.ts.html |here} to see how to use DeleteEnterpriseManagerBridge API.
996
1114
  */
997
- disableDatabaseInsight(disableDatabaseInsightRequest) {
1115
+ deleteEnterpriseManagerBridge(deleteEnterpriseManagerBridgeRequest) {
998
1116
  return __awaiter(this, void 0, void 0, function* () {
999
1117
  if (this.logger)
1000
- this.logger.debug("Calling operation OperationsInsightsClient#disableDatabaseInsight.");
1118
+ this.logger.debug("Calling operation OperationsInsightsClient#deleteEnterpriseManagerBridge.");
1001
1119
  const pathParams = {
1002
- "{databaseInsightId}": disableDatabaseInsightRequest.databaseInsightId
1120
+ "{enterpriseManagerBridgeId}": deleteEnterpriseManagerBridgeRequest.enterpriseManagerBridgeId
1003
1121
  };
1004
1122
  const queryParams = {};
1005
1123
  let headerParams = {
1006
1124
  "Content-Type": common.Constants.APPLICATION_JSON,
1007
- "if-match": disableDatabaseInsightRequest.ifMatch,
1008
- "opc-request-id": disableDatabaseInsightRequest.opcRequestId,
1009
- "opc-retry-token": disableDatabaseInsightRequest.opcRetryToken
1125
+ "if-match": deleteEnterpriseManagerBridgeRequest.ifMatch,
1126
+ "opc-request-id": deleteEnterpriseManagerBridgeRequest.opcRequestId
1010
1127
  };
1011
1128
  const specRetryConfiguration = common.NoRetryConfigurationDetails;
1012
- const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, disableDatabaseInsightRequest.retryConfiguration, specRetryConfiguration);
1129
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, deleteEnterpriseManagerBridgeRequest.retryConfiguration, specRetryConfiguration);
1013
1130
  if (this.logger)
1014
1131
  retrier.logger = this.logger;
1015
1132
  const request = yield oci_common_1.composeRequest({
1016
1133
  baseEndpoint: this._endpoint,
1017
1134
  defaultHeaders: this._defaultHeaders,
1018
- path: "/databaseInsights/{databaseInsightId}/actions/disable",
1019
- method: "POST",
1135
+ path: "/enterpriseManagerBridges/{enterpriseManagerBridgeId}",
1136
+ method: "DELETE",
1020
1137
  pathParams: pathParams,
1021
1138
  headerParams: headerParams,
1022
1139
  queryParams: queryParams
@@ -1046,36 +1163,35 @@ class OperationsInsightsClient {
1046
1163
  });
1047
1164
  }
1048
1165
  /**
1049
- * Disables an Exadata system in Operations Insights. Exadata-related metric collection and analysis will be stopped.
1166
+ * Deletes an Exadata insight. The Exadata insight will be deleted and cannot be enabled again.
1050
1167
  * This operation does not retry by default if the user has not defined a retry configuration.
1051
- * @param DisableExadataInsightRequest
1052
- * @return DisableExadataInsightResponse
1168
+ * @param DeleteExadataInsightRequest
1169
+ * @return DeleteExadataInsightResponse
1053
1170
  * @throws OciError when an error occurs
1054
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.7.0/opsi/DisableExadataInsight.ts.html |here} to see how to use DisableExadataInsight API.
1171
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.10.0/opsi/DeleteExadataInsight.ts.html |here} to see how to use DeleteExadataInsight API.
1055
1172
  */
1056
- disableExadataInsight(disableExadataInsightRequest) {
1173
+ deleteExadataInsight(deleteExadataInsightRequest) {
1057
1174
  return __awaiter(this, void 0, void 0, function* () {
1058
1175
  if (this.logger)
1059
- this.logger.debug("Calling operation OperationsInsightsClient#disableExadataInsight.");
1176
+ this.logger.debug("Calling operation OperationsInsightsClient#deleteExadataInsight.");
1060
1177
  const pathParams = {
1061
- "{exadataInsightId}": disableExadataInsightRequest.exadataInsightId
1178
+ "{exadataInsightId}": deleteExadataInsightRequest.exadataInsightId
1062
1179
  };
1063
1180
  const queryParams = {};
1064
1181
  let headerParams = {
1065
1182
  "Content-Type": common.Constants.APPLICATION_JSON,
1066
- "if-match": disableExadataInsightRequest.ifMatch,
1067
- "opc-request-id": disableExadataInsightRequest.opcRequestId,
1068
- "opc-retry-token": disableExadataInsightRequest.opcRetryToken
1183
+ "if-match": deleteExadataInsightRequest.ifMatch,
1184
+ "opc-request-id": deleteExadataInsightRequest.opcRequestId
1069
1185
  };
1070
1186
  const specRetryConfiguration = common.NoRetryConfigurationDetails;
1071
- const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, disableExadataInsightRequest.retryConfiguration, specRetryConfiguration);
1187
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, deleteExadataInsightRequest.retryConfiguration, specRetryConfiguration);
1072
1188
  if (this.logger)
1073
1189
  retrier.logger = this.logger;
1074
1190
  const request = yield oci_common_1.composeRequest({
1075
1191
  baseEndpoint: this._endpoint,
1076
1192
  defaultHeaders: this._defaultHeaders,
1077
- path: "/exadataInsights/{exadataInsightId}/actions/disable",
1078
- method: "POST",
1193
+ path: "/exadataInsights/{exadataInsightId}",
1194
+ method: "DELETE",
1079
1195
  pathParams: pathParams,
1080
1196
  headerParams: headerParams,
1081
1197
  queryParams: queryParams
@@ -1105,36 +1221,35 @@ class OperationsInsightsClient {
1105
1221
  });
1106
1222
  }
1107
1223
  /**
1108
- * Disables a host in Operations Insights. Host metric collection and analysis will be stopped.
1224
+ * Deletes a host insight. The host insight will be deleted and cannot be enabled again.
1109
1225
  * This operation does not retry by default if the user has not defined a retry configuration.
1110
- * @param DisableHostInsightRequest
1111
- * @return DisableHostInsightResponse
1226
+ * @param DeleteHostInsightRequest
1227
+ * @return DeleteHostInsightResponse
1112
1228
  * @throws OciError when an error occurs
1113
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.7.0/opsi/DisableHostInsight.ts.html |here} to see how to use DisableHostInsight API.
1229
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.10.0/opsi/DeleteHostInsight.ts.html |here} to see how to use DeleteHostInsight API.
1114
1230
  */
1115
- disableHostInsight(disableHostInsightRequest) {
1231
+ deleteHostInsight(deleteHostInsightRequest) {
1116
1232
  return __awaiter(this, void 0, void 0, function* () {
1117
1233
  if (this.logger)
1118
- this.logger.debug("Calling operation OperationsInsightsClient#disableHostInsight.");
1234
+ this.logger.debug("Calling operation OperationsInsightsClient#deleteHostInsight.");
1119
1235
  const pathParams = {
1120
- "{hostInsightId}": disableHostInsightRequest.hostInsightId
1236
+ "{hostInsightId}": deleteHostInsightRequest.hostInsightId
1121
1237
  };
1122
1238
  const queryParams = {};
1123
1239
  let headerParams = {
1124
1240
  "Content-Type": common.Constants.APPLICATION_JSON,
1125
- "if-match": disableHostInsightRequest.ifMatch,
1126
- "opc-request-id": disableHostInsightRequest.opcRequestId,
1127
- "opc-retry-token": disableHostInsightRequest.opcRetryToken
1241
+ "if-match": deleteHostInsightRequest.ifMatch,
1242
+ "opc-request-id": deleteHostInsightRequest.opcRequestId
1128
1243
  };
1129
1244
  const specRetryConfiguration = common.NoRetryConfigurationDetails;
1130
- const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, disableHostInsightRequest.retryConfiguration, specRetryConfiguration);
1245
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, deleteHostInsightRequest.retryConfiguration, specRetryConfiguration);
1131
1246
  if (this.logger)
1132
1247
  retrier.logger = this.logger;
1133
1248
  const request = yield oci_common_1.composeRequest({
1134
1249
  baseEndpoint: this._endpoint,
1135
1250
  defaultHeaders: this._defaultHeaders,
1136
- path: "/hostInsights/{hostInsightId}/actions/disable",
1137
- method: "POST",
1251
+ path: "/hostInsights/{hostInsightId}",
1252
+ method: "DELETE",
1138
1253
  pathParams: pathParams,
1139
1254
  headerParams: headerParams,
1140
1255
  queryParams: queryParams
@@ -1164,37 +1279,39 @@ class OperationsInsightsClient {
1164
1279
  });
1165
1280
  }
1166
1281
  /**
1167
- * Enables a database in Operations Insights. Database metric collection and analysis will be started.
1282
+ * Deletes an Operations Insights Warehouse. There is only expected to be 1 warehouse per tenant.
1283
+ * The warehouse is expected to be in the root compartment.
1284
+ * User must delete AWR Hub resource for this warehouse before calling this operation.
1285
+ * User must delete the warehouse users before calling this operation.
1286
+ *
1168
1287
  * This operation does not retry by default if the user has not defined a retry configuration.
1169
- * @param EnableDatabaseInsightRequest
1170
- * @return EnableDatabaseInsightResponse
1288
+ * @param DeleteOperationsInsightsWarehouseRequest
1289
+ * @return DeleteOperationsInsightsWarehouseResponse
1171
1290
  * @throws OciError when an error occurs
1172
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.7.0/opsi/EnableDatabaseInsight.ts.html |here} to see how to use EnableDatabaseInsight API.
1291
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.10.0/opsi/DeleteOperationsInsightsWarehouse.ts.html |here} to see how to use DeleteOperationsInsightsWarehouse API.
1173
1292
  */
1174
- enableDatabaseInsight(enableDatabaseInsightRequest) {
1293
+ deleteOperationsInsightsWarehouse(deleteOperationsInsightsWarehouseRequest) {
1175
1294
  return __awaiter(this, void 0, void 0, function* () {
1176
1295
  if (this.logger)
1177
- this.logger.debug("Calling operation OperationsInsightsClient#enableDatabaseInsight.");
1296
+ this.logger.debug("Calling operation OperationsInsightsClient#deleteOperationsInsightsWarehouse.");
1178
1297
  const pathParams = {
1179
- "{databaseInsightId}": enableDatabaseInsightRequest.databaseInsightId
1298
+ "{operationsInsightsWarehouseId}": deleteOperationsInsightsWarehouseRequest.operationsInsightsWarehouseId
1180
1299
  };
1181
1300
  const queryParams = {};
1182
1301
  let headerParams = {
1183
1302
  "Content-Type": common.Constants.APPLICATION_JSON,
1184
- "if-match": enableDatabaseInsightRequest.ifMatch,
1185
- "opc-request-id": enableDatabaseInsightRequest.opcRequestId,
1186
- "opc-retry-token": enableDatabaseInsightRequest.opcRetryToken
1303
+ "if-match": deleteOperationsInsightsWarehouseRequest.ifMatch,
1304
+ "opc-request-id": deleteOperationsInsightsWarehouseRequest.opcRequestId
1187
1305
  };
1188
1306
  const specRetryConfiguration = common.NoRetryConfigurationDetails;
1189
- const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, enableDatabaseInsightRequest.retryConfiguration, specRetryConfiguration);
1307
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, deleteOperationsInsightsWarehouseRequest.retryConfiguration, specRetryConfiguration);
1190
1308
  if (this.logger)
1191
1309
  retrier.logger = this.logger;
1192
1310
  const request = yield oci_common_1.composeRequest({
1193
1311
  baseEndpoint: this._endpoint,
1194
1312
  defaultHeaders: this._defaultHeaders,
1195
- path: "/databaseInsights/{databaseInsightId}/actions/enable",
1196
- method: "POST",
1197
- bodyContent: common.ObjectSerializer.serialize(enableDatabaseInsightRequest.enableDatabaseInsightDetails, "EnableDatabaseInsightDetails", model.EnableDatabaseInsightDetails.getJsonObj),
1313
+ path: "/operationsInsightsWarehouses/{operationsInsightsWarehouseId}",
1314
+ method: "DELETE",
1198
1315
  pathParams: pathParams,
1199
1316
  headerParams: headerParams,
1200
1317
  queryParams: queryParams
@@ -1224,37 +1341,35 @@ class OperationsInsightsClient {
1224
1341
  });
1225
1342
  }
1226
1343
  /**
1227
- * Enables an Exadata system in Operations Insights. Exadata-related metric collection and analysis will be started.
1344
+ * Deletes an Operations Insights Warehouse User.
1228
1345
  * This operation does not retry by default if the user has not defined a retry configuration.
1229
- * @param EnableExadataInsightRequest
1230
- * @return EnableExadataInsightResponse
1346
+ * @param DeleteOperationsInsightsWarehouseUserRequest
1347
+ * @return DeleteOperationsInsightsWarehouseUserResponse
1231
1348
  * @throws OciError when an error occurs
1232
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.7.0/opsi/EnableExadataInsight.ts.html |here} to see how to use EnableExadataInsight API.
1349
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.10.0/opsi/DeleteOperationsInsightsWarehouseUser.ts.html |here} to see how to use DeleteOperationsInsightsWarehouseUser API.
1233
1350
  */
1234
- enableExadataInsight(enableExadataInsightRequest) {
1351
+ deleteOperationsInsightsWarehouseUser(deleteOperationsInsightsWarehouseUserRequest) {
1235
1352
  return __awaiter(this, void 0, void 0, function* () {
1236
1353
  if (this.logger)
1237
- this.logger.debug("Calling operation OperationsInsightsClient#enableExadataInsight.");
1354
+ this.logger.debug("Calling operation OperationsInsightsClient#deleteOperationsInsightsWarehouseUser.");
1238
1355
  const pathParams = {
1239
- "{exadataInsightId}": enableExadataInsightRequest.exadataInsightId
1356
+ "{operationsInsightsWarehouseUserId}": deleteOperationsInsightsWarehouseUserRequest.operationsInsightsWarehouseUserId
1240
1357
  };
1241
1358
  const queryParams = {};
1242
1359
  let headerParams = {
1243
1360
  "Content-Type": common.Constants.APPLICATION_JSON,
1244
- "if-match": enableExadataInsightRequest.ifMatch,
1245
- "opc-request-id": enableExadataInsightRequest.opcRequestId,
1246
- "opc-retry-token": enableExadataInsightRequest.opcRetryToken
1361
+ "if-match": deleteOperationsInsightsWarehouseUserRequest.ifMatch,
1362
+ "opc-request-id": deleteOperationsInsightsWarehouseUserRequest.opcRequestId
1247
1363
  };
1248
1364
  const specRetryConfiguration = common.NoRetryConfigurationDetails;
1249
- const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, enableExadataInsightRequest.retryConfiguration, specRetryConfiguration);
1365
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, deleteOperationsInsightsWarehouseUserRequest.retryConfiguration, specRetryConfiguration);
1250
1366
  if (this.logger)
1251
1367
  retrier.logger = this.logger;
1252
1368
  const request = yield oci_common_1.composeRequest({
1253
1369
  baseEndpoint: this._endpoint,
1254
1370
  defaultHeaders: this._defaultHeaders,
1255
- path: "/exadataInsights/{exadataInsightId}/actions/enable",
1256
- method: "POST",
1257
- bodyContent: common.ObjectSerializer.serialize(enableExadataInsightRequest.enableExadataInsightDetails, "EnableExadataInsightDetails", model.EnableExadataInsightDetails.getJsonObj),
1371
+ path: "/operationsInsightsWarehouseUsers/{operationsInsightsWarehouseUserId}",
1372
+ method: "DELETE",
1258
1373
  pathParams: pathParams,
1259
1374
  headerParams: headerParams,
1260
1375
  queryParams: queryParams
@@ -1284,37 +1399,651 @@ class OperationsInsightsClient {
1284
1399
  });
1285
1400
  }
1286
1401
  /**
1287
- * Enables a host in Operations Insights. Host metric collection and analysis will be started.
1402
+ * Disables a database in Operations Insights. Database metric collection and analysis will be stopped.
1403
+ * This operation does not retry by default if the user has not defined a retry configuration.
1404
+ * @param DisableDatabaseInsightRequest
1405
+ * @return DisableDatabaseInsightResponse
1406
+ * @throws OciError when an error occurs
1407
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.10.0/opsi/DisableDatabaseInsight.ts.html |here} to see how to use DisableDatabaseInsight API.
1408
+ */
1409
+ disableDatabaseInsight(disableDatabaseInsightRequest) {
1410
+ return __awaiter(this, void 0, void 0, function* () {
1411
+ if (this.logger)
1412
+ this.logger.debug("Calling operation OperationsInsightsClient#disableDatabaseInsight.");
1413
+ const pathParams = {
1414
+ "{databaseInsightId}": disableDatabaseInsightRequest.databaseInsightId
1415
+ };
1416
+ const queryParams = {};
1417
+ let headerParams = {
1418
+ "Content-Type": common.Constants.APPLICATION_JSON,
1419
+ "if-match": disableDatabaseInsightRequest.ifMatch,
1420
+ "opc-request-id": disableDatabaseInsightRequest.opcRequestId,
1421
+ "opc-retry-token": disableDatabaseInsightRequest.opcRetryToken
1422
+ };
1423
+ const specRetryConfiguration = common.NoRetryConfigurationDetails;
1424
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, disableDatabaseInsightRequest.retryConfiguration, specRetryConfiguration);
1425
+ if (this.logger)
1426
+ retrier.logger = this.logger;
1427
+ const request = yield oci_common_1.composeRequest({
1428
+ baseEndpoint: this._endpoint,
1429
+ defaultHeaders: this._defaultHeaders,
1430
+ path: "/databaseInsights/{databaseInsightId}/actions/disable",
1431
+ method: "POST",
1432
+ pathParams: pathParams,
1433
+ headerParams: headerParams,
1434
+ queryParams: queryParams
1435
+ });
1436
+ try {
1437
+ const response = yield retrier.makeServiceCall(this._httpClient, request);
1438
+ const sdkResponse = oci_common_1.composeResponse({
1439
+ responseObject: {},
1440
+ responseHeaders: [
1441
+ {
1442
+ value: response.headers.get("opc-work-request-id"),
1443
+ key: "opcWorkRequestId",
1444
+ dataType: "string"
1445
+ },
1446
+ {
1447
+ value: response.headers.get("opc-request-id"),
1448
+ key: "opcRequestId",
1449
+ dataType: "string"
1450
+ }
1451
+ ]
1452
+ });
1453
+ return sdkResponse;
1454
+ }
1455
+ catch (err) {
1456
+ throw err;
1457
+ }
1458
+ });
1459
+ }
1460
+ /**
1461
+ * Disables an Exadata system in Operations Insights. Exadata-related metric collection and analysis will be stopped.
1462
+ * This operation does not retry by default if the user has not defined a retry configuration.
1463
+ * @param DisableExadataInsightRequest
1464
+ * @return DisableExadataInsightResponse
1465
+ * @throws OciError when an error occurs
1466
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.10.0/opsi/DisableExadataInsight.ts.html |here} to see how to use DisableExadataInsight API.
1467
+ */
1468
+ disableExadataInsight(disableExadataInsightRequest) {
1469
+ return __awaiter(this, void 0, void 0, function* () {
1470
+ if (this.logger)
1471
+ this.logger.debug("Calling operation OperationsInsightsClient#disableExadataInsight.");
1472
+ const pathParams = {
1473
+ "{exadataInsightId}": disableExadataInsightRequest.exadataInsightId
1474
+ };
1475
+ const queryParams = {};
1476
+ let headerParams = {
1477
+ "Content-Type": common.Constants.APPLICATION_JSON,
1478
+ "if-match": disableExadataInsightRequest.ifMatch,
1479
+ "opc-request-id": disableExadataInsightRequest.opcRequestId,
1480
+ "opc-retry-token": disableExadataInsightRequest.opcRetryToken
1481
+ };
1482
+ const specRetryConfiguration = common.NoRetryConfigurationDetails;
1483
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, disableExadataInsightRequest.retryConfiguration, specRetryConfiguration);
1484
+ if (this.logger)
1485
+ retrier.logger = this.logger;
1486
+ const request = yield oci_common_1.composeRequest({
1487
+ baseEndpoint: this._endpoint,
1488
+ defaultHeaders: this._defaultHeaders,
1489
+ path: "/exadataInsights/{exadataInsightId}/actions/disable",
1490
+ method: "POST",
1491
+ pathParams: pathParams,
1492
+ headerParams: headerParams,
1493
+ queryParams: queryParams
1494
+ });
1495
+ try {
1496
+ const response = yield retrier.makeServiceCall(this._httpClient, request);
1497
+ const sdkResponse = oci_common_1.composeResponse({
1498
+ responseObject: {},
1499
+ responseHeaders: [
1500
+ {
1501
+ value: response.headers.get("opc-work-request-id"),
1502
+ key: "opcWorkRequestId",
1503
+ dataType: "string"
1504
+ },
1505
+ {
1506
+ value: response.headers.get("opc-request-id"),
1507
+ key: "opcRequestId",
1508
+ dataType: "string"
1509
+ }
1510
+ ]
1511
+ });
1512
+ return sdkResponse;
1513
+ }
1514
+ catch (err) {
1515
+ throw err;
1516
+ }
1517
+ });
1518
+ }
1519
+ /**
1520
+ * Disables a host in Operations Insights. Host metric collection and analysis will be stopped.
1521
+ * This operation does not retry by default if the user has not defined a retry configuration.
1522
+ * @param DisableHostInsightRequest
1523
+ * @return DisableHostInsightResponse
1524
+ * @throws OciError when an error occurs
1525
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.10.0/opsi/DisableHostInsight.ts.html |here} to see how to use DisableHostInsight API.
1526
+ */
1527
+ disableHostInsight(disableHostInsightRequest) {
1528
+ return __awaiter(this, void 0, void 0, function* () {
1529
+ if (this.logger)
1530
+ this.logger.debug("Calling operation OperationsInsightsClient#disableHostInsight.");
1531
+ const pathParams = {
1532
+ "{hostInsightId}": disableHostInsightRequest.hostInsightId
1533
+ };
1534
+ const queryParams = {};
1535
+ let headerParams = {
1536
+ "Content-Type": common.Constants.APPLICATION_JSON,
1537
+ "if-match": disableHostInsightRequest.ifMatch,
1538
+ "opc-request-id": disableHostInsightRequest.opcRequestId,
1539
+ "opc-retry-token": disableHostInsightRequest.opcRetryToken
1540
+ };
1541
+ const specRetryConfiguration = common.NoRetryConfigurationDetails;
1542
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, disableHostInsightRequest.retryConfiguration, specRetryConfiguration);
1543
+ if (this.logger)
1544
+ retrier.logger = this.logger;
1545
+ const request = yield oci_common_1.composeRequest({
1546
+ baseEndpoint: this._endpoint,
1547
+ defaultHeaders: this._defaultHeaders,
1548
+ path: "/hostInsights/{hostInsightId}/actions/disable",
1549
+ method: "POST",
1550
+ pathParams: pathParams,
1551
+ headerParams: headerParams,
1552
+ queryParams: queryParams
1553
+ });
1554
+ try {
1555
+ const response = yield retrier.makeServiceCall(this._httpClient, request);
1556
+ const sdkResponse = oci_common_1.composeResponse({
1557
+ responseObject: {},
1558
+ responseHeaders: [
1559
+ {
1560
+ value: response.headers.get("opc-work-request-id"),
1561
+ key: "opcWorkRequestId",
1562
+ dataType: "string"
1563
+ },
1564
+ {
1565
+ value: response.headers.get("opc-request-id"),
1566
+ key: "opcRequestId",
1567
+ dataType: "string"
1568
+ }
1569
+ ]
1570
+ });
1571
+ return sdkResponse;
1572
+ }
1573
+ catch (err) {
1574
+ throw err;
1575
+ }
1576
+ });
1577
+ }
1578
+ /**
1579
+ * Download the ADW wallet for Operations Insights Warehouse using which the Hub data is exposed.
1580
+ * This operation does not retry by default if the user has not defined a retry configuration.
1581
+ * @param DownloadOperationsInsightsWarehouseWalletRequest
1582
+ * @return DownloadOperationsInsightsWarehouseWalletResponse
1583
+ * @throws OciError when an error occurs
1584
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.10.0/opsi/DownloadOperationsInsightsWarehouseWallet.ts.html |here} to see how to use DownloadOperationsInsightsWarehouseWallet API.
1585
+ */
1586
+ downloadOperationsInsightsWarehouseWallet(downloadOperationsInsightsWarehouseWalletRequest) {
1587
+ return __awaiter(this, void 0, void 0, function* () {
1588
+ if (this.logger)
1589
+ this.logger.debug("Calling operation OperationsInsightsClient#downloadOperationsInsightsWarehouseWallet.");
1590
+ const pathParams = {
1591
+ "{operationsInsightsWarehouseId}": downloadOperationsInsightsWarehouseWalletRequest.operationsInsightsWarehouseId
1592
+ };
1593
+ const queryParams = {};
1594
+ let headerParams = {
1595
+ "Content-Type": common.Constants.APPLICATION_JSON,
1596
+ "opc-request-id": downloadOperationsInsightsWarehouseWalletRequest.opcRequestId,
1597
+ "opc-retry-token": downloadOperationsInsightsWarehouseWalletRequest.opcRetryToken
1598
+ };
1599
+ const specRetryConfiguration = common.NoRetryConfigurationDetails;
1600
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, downloadOperationsInsightsWarehouseWalletRequest.retryConfiguration, specRetryConfiguration);
1601
+ if (this.logger)
1602
+ retrier.logger = this.logger;
1603
+ const request = yield oci_common_1.composeRequest({
1604
+ baseEndpoint: this._endpoint,
1605
+ defaultHeaders: this._defaultHeaders,
1606
+ path: "/operationsInsightsWarehouses/{operationsInsightsWarehouseId}/actions/downloadWarehouseWallet",
1607
+ method: "POST",
1608
+ bodyContent: common.ObjectSerializer.serialize(downloadOperationsInsightsWarehouseWalletRequest.downloadOperationsInsightsWarehouseWalletDetails, "DownloadOperationsInsightsWarehouseWalletDetails", model.DownloadOperationsInsightsWarehouseWalletDetails.getJsonObj),
1609
+ pathParams: pathParams,
1610
+ headerParams: headerParams,
1611
+ queryParams: queryParams
1612
+ });
1613
+ try {
1614
+ const response = yield retrier.makeServiceCall(this._httpClient, request);
1615
+ const sdkResponse = oci_common_1.composeResponse({
1616
+ responseObject: {},
1617
+ body: response.body,
1618
+ bodyKey: "value",
1619
+ bodyModel: "string",
1620
+ responseHeaders: [
1621
+ {
1622
+ value: response.headers.get("etag"),
1623
+ key: "etag",
1624
+ dataType: "string"
1625
+ },
1626
+ {
1627
+ value: response.headers.get("opc-request-id"),
1628
+ key: "opcRequestId",
1629
+ dataType: "string"
1630
+ },
1631
+ {
1632
+ value: response.headers.get("content-length"),
1633
+ key: "contentLength",
1634
+ dataType: "number"
1635
+ },
1636
+ {
1637
+ value: response.headers.get("last-modified"),
1638
+ key: "lastModified",
1639
+ dataType: "Date"
1640
+ }
1641
+ ]
1642
+ });
1643
+ return sdkResponse;
1644
+ }
1645
+ catch (err) {
1646
+ throw err;
1647
+ }
1648
+ });
1649
+ }
1650
+ /**
1651
+ * Enables a database in Operations Insights. Database metric collection and analysis will be started.
1652
+ * This operation does not retry by default if the user has not defined a retry configuration.
1653
+ * @param EnableDatabaseInsightRequest
1654
+ * @return EnableDatabaseInsightResponse
1655
+ * @throws OciError when an error occurs
1656
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.10.0/opsi/EnableDatabaseInsight.ts.html |here} to see how to use EnableDatabaseInsight API.
1657
+ */
1658
+ enableDatabaseInsight(enableDatabaseInsightRequest) {
1659
+ return __awaiter(this, void 0, void 0, function* () {
1660
+ if (this.logger)
1661
+ this.logger.debug("Calling operation OperationsInsightsClient#enableDatabaseInsight.");
1662
+ const pathParams = {
1663
+ "{databaseInsightId}": enableDatabaseInsightRequest.databaseInsightId
1664
+ };
1665
+ const queryParams = {};
1666
+ let headerParams = {
1667
+ "Content-Type": common.Constants.APPLICATION_JSON,
1668
+ "if-match": enableDatabaseInsightRequest.ifMatch,
1669
+ "opc-request-id": enableDatabaseInsightRequest.opcRequestId,
1670
+ "opc-retry-token": enableDatabaseInsightRequest.opcRetryToken
1671
+ };
1672
+ const specRetryConfiguration = common.NoRetryConfigurationDetails;
1673
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, enableDatabaseInsightRequest.retryConfiguration, specRetryConfiguration);
1674
+ if (this.logger)
1675
+ retrier.logger = this.logger;
1676
+ const request = yield oci_common_1.composeRequest({
1677
+ baseEndpoint: this._endpoint,
1678
+ defaultHeaders: this._defaultHeaders,
1679
+ path: "/databaseInsights/{databaseInsightId}/actions/enable",
1680
+ method: "POST",
1681
+ bodyContent: common.ObjectSerializer.serialize(enableDatabaseInsightRequest.enableDatabaseInsightDetails, "EnableDatabaseInsightDetails", model.EnableDatabaseInsightDetails.getJsonObj),
1682
+ pathParams: pathParams,
1683
+ headerParams: headerParams,
1684
+ queryParams: queryParams
1685
+ });
1686
+ try {
1687
+ const response = yield retrier.makeServiceCall(this._httpClient, request);
1688
+ const sdkResponse = oci_common_1.composeResponse({
1689
+ responseObject: {},
1690
+ responseHeaders: [
1691
+ {
1692
+ value: response.headers.get("opc-work-request-id"),
1693
+ key: "opcWorkRequestId",
1694
+ dataType: "string"
1695
+ },
1696
+ {
1697
+ value: response.headers.get("opc-request-id"),
1698
+ key: "opcRequestId",
1699
+ dataType: "string"
1700
+ }
1701
+ ]
1702
+ });
1703
+ return sdkResponse;
1704
+ }
1705
+ catch (err) {
1706
+ throw err;
1707
+ }
1708
+ });
1709
+ }
1710
+ /**
1711
+ * Enables an Exadata system in Operations Insights. Exadata-related metric collection and analysis will be started.
1712
+ * This operation does not retry by default if the user has not defined a retry configuration.
1713
+ * @param EnableExadataInsightRequest
1714
+ * @return EnableExadataInsightResponse
1715
+ * @throws OciError when an error occurs
1716
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.10.0/opsi/EnableExadataInsight.ts.html |here} to see how to use EnableExadataInsight API.
1717
+ */
1718
+ enableExadataInsight(enableExadataInsightRequest) {
1719
+ return __awaiter(this, void 0, void 0, function* () {
1720
+ if (this.logger)
1721
+ this.logger.debug("Calling operation OperationsInsightsClient#enableExadataInsight.");
1722
+ const pathParams = {
1723
+ "{exadataInsightId}": enableExadataInsightRequest.exadataInsightId
1724
+ };
1725
+ const queryParams = {};
1726
+ let headerParams = {
1727
+ "Content-Type": common.Constants.APPLICATION_JSON,
1728
+ "if-match": enableExadataInsightRequest.ifMatch,
1729
+ "opc-request-id": enableExadataInsightRequest.opcRequestId,
1730
+ "opc-retry-token": enableExadataInsightRequest.opcRetryToken
1731
+ };
1732
+ const specRetryConfiguration = common.NoRetryConfigurationDetails;
1733
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, enableExadataInsightRequest.retryConfiguration, specRetryConfiguration);
1734
+ if (this.logger)
1735
+ retrier.logger = this.logger;
1736
+ const request = yield oci_common_1.composeRequest({
1737
+ baseEndpoint: this._endpoint,
1738
+ defaultHeaders: this._defaultHeaders,
1739
+ path: "/exadataInsights/{exadataInsightId}/actions/enable",
1740
+ method: "POST",
1741
+ bodyContent: common.ObjectSerializer.serialize(enableExadataInsightRequest.enableExadataInsightDetails, "EnableExadataInsightDetails", model.EnableExadataInsightDetails.getJsonObj),
1742
+ pathParams: pathParams,
1743
+ headerParams: headerParams,
1744
+ queryParams: queryParams
1745
+ });
1746
+ try {
1747
+ const response = yield retrier.makeServiceCall(this._httpClient, request);
1748
+ const sdkResponse = oci_common_1.composeResponse({
1749
+ responseObject: {},
1750
+ responseHeaders: [
1751
+ {
1752
+ value: response.headers.get("opc-work-request-id"),
1753
+ key: "opcWorkRequestId",
1754
+ dataType: "string"
1755
+ },
1756
+ {
1757
+ value: response.headers.get("opc-request-id"),
1758
+ key: "opcRequestId",
1759
+ dataType: "string"
1760
+ }
1761
+ ]
1762
+ });
1763
+ return sdkResponse;
1764
+ }
1765
+ catch (err) {
1766
+ throw err;
1767
+ }
1768
+ });
1769
+ }
1770
+ /**
1771
+ * Enables a host in Operations Insights. Host metric collection and analysis will be started.
1288
1772
  * This operation does not retry by default if the user has not defined a retry configuration.
1289
1773
  * @param EnableHostInsightRequest
1290
1774
  * @return EnableHostInsightResponse
1291
1775
  * @throws OciError when an error occurs
1292
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.7.0/opsi/EnableHostInsight.ts.html |here} to see how to use EnableHostInsight API.
1776
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.10.0/opsi/EnableHostInsight.ts.html |here} to see how to use EnableHostInsight API.
1293
1777
  */
1294
1778
  enableHostInsight(enableHostInsightRequest) {
1295
1779
  return __awaiter(this, void 0, void 0, function* () {
1296
1780
  if (this.logger)
1297
1781
  this.logger.debug("Calling operation OperationsInsightsClient#enableHostInsight.");
1298
1782
  const pathParams = {
1299
- "{hostInsightId}": enableHostInsightRequest.hostInsightId
1783
+ "{hostInsightId}": enableHostInsightRequest.hostInsightId
1784
+ };
1785
+ const queryParams = {};
1786
+ let headerParams = {
1787
+ "Content-Type": common.Constants.APPLICATION_JSON,
1788
+ "if-match": enableHostInsightRequest.ifMatch,
1789
+ "opc-request-id": enableHostInsightRequest.opcRequestId,
1790
+ "opc-retry-token": enableHostInsightRequest.opcRetryToken
1791
+ };
1792
+ const specRetryConfiguration = common.NoRetryConfigurationDetails;
1793
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, enableHostInsightRequest.retryConfiguration, specRetryConfiguration);
1794
+ if (this.logger)
1795
+ retrier.logger = this.logger;
1796
+ const request = yield oci_common_1.composeRequest({
1797
+ baseEndpoint: this._endpoint,
1798
+ defaultHeaders: this._defaultHeaders,
1799
+ path: "/hostInsights/{hostInsightId}/actions/enable",
1800
+ method: "POST",
1801
+ bodyContent: common.ObjectSerializer.serialize(enableHostInsightRequest.enableHostInsightDetails, "EnableHostInsightDetails", model.EnableHostInsightDetails.getJsonObj),
1802
+ pathParams: pathParams,
1803
+ headerParams: headerParams,
1804
+ queryParams: queryParams
1805
+ });
1806
+ try {
1807
+ const response = yield retrier.makeServiceCall(this._httpClient, request);
1808
+ const sdkResponse = oci_common_1.composeResponse({
1809
+ responseObject: {},
1810
+ responseHeaders: [
1811
+ {
1812
+ value: response.headers.get("opc-work-request-id"),
1813
+ key: "opcWorkRequestId",
1814
+ dataType: "string"
1815
+ },
1816
+ {
1817
+ value: response.headers.get("opc-request-id"),
1818
+ key: "opcRequestId",
1819
+ dataType: "string"
1820
+ }
1821
+ ]
1822
+ });
1823
+ return sdkResponse;
1824
+ }
1825
+ catch (err) {
1826
+ throw err;
1827
+ }
1828
+ });
1829
+ }
1830
+ /**
1831
+ * Gets details of an AWR hub.
1832
+ * This operation does not retry by default if the user has not defined a retry configuration.
1833
+ * @param GetAwrHubRequest
1834
+ * @return GetAwrHubResponse
1835
+ * @throws OciError when an error occurs
1836
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.10.0/opsi/GetAwrHub.ts.html |here} to see how to use GetAwrHub API.
1837
+ */
1838
+ getAwrHub(getAwrHubRequest) {
1839
+ return __awaiter(this, void 0, void 0, function* () {
1840
+ if (this.logger)
1841
+ this.logger.debug("Calling operation OperationsInsightsClient#getAwrHub.");
1842
+ const pathParams = {
1843
+ "{awrHubId}": getAwrHubRequest.awrHubId
1844
+ };
1845
+ const queryParams = {};
1846
+ let headerParams = {
1847
+ "Content-Type": common.Constants.APPLICATION_JSON,
1848
+ "opc-request-id": getAwrHubRequest.opcRequestId
1849
+ };
1850
+ const specRetryConfiguration = common.NoRetryConfigurationDetails;
1851
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getAwrHubRequest.retryConfiguration, specRetryConfiguration);
1852
+ if (this.logger)
1853
+ retrier.logger = this.logger;
1854
+ const request = yield oci_common_1.composeRequest({
1855
+ baseEndpoint: this._endpoint,
1856
+ defaultHeaders: this._defaultHeaders,
1857
+ path: "/awrHubs/{awrHubId}",
1858
+ method: "GET",
1859
+ pathParams: pathParams,
1860
+ headerParams: headerParams,
1861
+ queryParams: queryParams
1862
+ });
1863
+ try {
1864
+ const response = yield retrier.makeServiceCall(this._httpClient, request);
1865
+ const sdkResponse = oci_common_1.composeResponse({
1866
+ responseObject: {},
1867
+ body: yield response.json(),
1868
+ bodyKey: "awrHub",
1869
+ bodyModel: model.AwrHub,
1870
+ type: "model.AwrHub",
1871
+ responseHeaders: [
1872
+ {
1873
+ value: response.headers.get("etag"),
1874
+ key: "etag",
1875
+ dataType: "string"
1876
+ },
1877
+ {
1878
+ value: response.headers.get("opc-request-id"),
1879
+ key: "opcRequestId",
1880
+ dataType: "string"
1881
+ }
1882
+ ]
1883
+ });
1884
+ return sdkResponse;
1885
+ }
1886
+ catch (err) {
1887
+ throw err;
1888
+ }
1889
+ });
1890
+ }
1891
+ /**
1892
+ * Gets the AWR report for the specified source database in the AWR hub. The difference between the timeGreaterThanOrEqualTo and timeLessThanOrEqualTo should not be greater than 7 days.
1893
+ * Either beginSnapshotIdentifierGreaterThanOrEqualTo & endSnapshotIdentifierLessThanOrEqualTo params Or timeGreaterThanOrEqualTo & timeLessThanOrEqualTo params are required.
1894
+ *
1895
+ * This operation does not retry by default if the user has not defined a retry configuration.
1896
+ * @param GetAwrReportRequest
1897
+ * @return GetAwrReportResponse
1898
+ * @throws OciError when an error occurs
1899
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.10.0/opsi/GetAwrReport.ts.html |here} to see how to use GetAwrReport API.
1900
+ */
1901
+ getAwrReport(getAwrReportRequest) {
1902
+ return __awaiter(this, void 0, void 0, function* () {
1903
+ if (this.logger)
1904
+ this.logger.debug("Calling operation OperationsInsightsClient#getAwrReport.");
1905
+ const pathParams = {
1906
+ "{awrHubId}": getAwrReportRequest.awrHubId
1907
+ };
1908
+ const queryParams = {
1909
+ "awrSourceDatabaseIdentifier": getAwrReportRequest.awrSourceDatabaseIdentifier,
1910
+ "reportFormat": getAwrReportRequest.reportFormat,
1911
+ "instanceNumber": getAwrReportRequest.instanceNumber,
1912
+ "beginSnapshotIdentifierGreaterThanOrEqualTo": getAwrReportRequest.beginSnapshotIdentifierGreaterThanOrEqualTo,
1913
+ "endSnapshotIdentifierLessThanOrEqualTo": getAwrReportRequest.endSnapshotIdentifierLessThanOrEqualTo,
1914
+ "timeGreaterThanOrEqualTo": getAwrReportRequest.timeGreaterThanOrEqualTo,
1915
+ "timeLessThanOrEqualTo": getAwrReportRequest.timeLessThanOrEqualTo
1916
+ };
1917
+ let headerParams = {
1918
+ "Content-Type": common.Constants.APPLICATION_JSON,
1919
+ "opc-request-id": getAwrReportRequest.opcRequestId
1920
+ };
1921
+ const specRetryConfiguration = common.NoRetryConfigurationDetails;
1922
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getAwrReportRequest.retryConfiguration, specRetryConfiguration);
1923
+ if (this.logger)
1924
+ retrier.logger = this.logger;
1925
+ const request = yield oci_common_1.composeRequest({
1926
+ baseEndpoint: this._endpoint,
1927
+ defaultHeaders: this._defaultHeaders,
1928
+ path: "/awrHubs/{awrHubId}/awrReport",
1929
+ method: "GET",
1930
+ pathParams: pathParams,
1931
+ headerParams: headerParams,
1932
+ queryParams: queryParams
1933
+ });
1934
+ try {
1935
+ const response = yield retrier.makeServiceCall(this._httpClient, request);
1936
+ const sdkResponse = oci_common_1.composeResponse({
1937
+ responseObject: {},
1938
+ body: yield response.json(),
1939
+ bodyKey: "awrReport",
1940
+ bodyModel: model.AwrReport,
1941
+ type: "model.AwrReport",
1942
+ responseHeaders: [
1943
+ {
1944
+ value: response.headers.get("opc-request-id"),
1945
+ key: "opcRequestId",
1946
+ dataType: "string"
1947
+ }
1948
+ ]
1949
+ });
1950
+ return sdkResponse;
1951
+ }
1952
+ catch (err) {
1953
+ throw err;
1954
+ }
1955
+ });
1956
+ }
1957
+ /**
1958
+ * Gets details of a database insight.
1959
+ * This operation does not retry by default if the user has not defined a retry configuration.
1960
+ * @param GetDatabaseInsightRequest
1961
+ * @return GetDatabaseInsightResponse
1962
+ * @throws OciError when an error occurs
1963
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.10.0/opsi/GetDatabaseInsight.ts.html |here} to see how to use GetDatabaseInsight API.
1964
+ */
1965
+ getDatabaseInsight(getDatabaseInsightRequest) {
1966
+ return __awaiter(this, void 0, void 0, function* () {
1967
+ if (this.logger)
1968
+ this.logger.debug("Calling operation OperationsInsightsClient#getDatabaseInsight.");
1969
+ const pathParams = {
1970
+ "{databaseInsightId}": getDatabaseInsightRequest.databaseInsightId
1971
+ };
1972
+ const queryParams = {};
1973
+ let headerParams = {
1974
+ "Content-Type": common.Constants.APPLICATION_JSON,
1975
+ "opc-request-id": getDatabaseInsightRequest.opcRequestId
1976
+ };
1977
+ const specRetryConfiguration = common.NoRetryConfigurationDetails;
1978
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getDatabaseInsightRequest.retryConfiguration, specRetryConfiguration);
1979
+ if (this.logger)
1980
+ retrier.logger = this.logger;
1981
+ const request = yield oci_common_1.composeRequest({
1982
+ baseEndpoint: this._endpoint,
1983
+ defaultHeaders: this._defaultHeaders,
1984
+ path: "/databaseInsights/{databaseInsightId}",
1985
+ method: "GET",
1986
+ pathParams: pathParams,
1987
+ headerParams: headerParams,
1988
+ queryParams: queryParams
1989
+ });
1990
+ try {
1991
+ const response = yield retrier.makeServiceCall(this._httpClient, request);
1992
+ const sdkResponse = oci_common_1.composeResponse({
1993
+ responseObject: {},
1994
+ body: yield response.json(),
1995
+ bodyKey: "databaseInsight",
1996
+ bodyModel: model.DatabaseInsight,
1997
+ type: "model.DatabaseInsight",
1998
+ responseHeaders: [
1999
+ {
2000
+ value: response.headers.get("etag"),
2001
+ key: "etag",
2002
+ dataType: "string"
2003
+ },
2004
+ {
2005
+ value: response.headers.get("opc-request-id"),
2006
+ key: "opcRequestId",
2007
+ dataType: "string"
2008
+ }
2009
+ ]
2010
+ });
2011
+ return sdkResponse;
2012
+ }
2013
+ catch (err) {
2014
+ throw err;
2015
+ }
2016
+ });
2017
+ }
2018
+ /**
2019
+ * Gets details of an Operations Insights Enterprise Manager bridge.
2020
+ * This operation does not retry by default if the user has not defined a retry configuration.
2021
+ * @param GetEnterpriseManagerBridgeRequest
2022
+ * @return GetEnterpriseManagerBridgeResponse
2023
+ * @throws OciError when an error occurs
2024
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.10.0/opsi/GetEnterpriseManagerBridge.ts.html |here} to see how to use GetEnterpriseManagerBridge API.
2025
+ */
2026
+ getEnterpriseManagerBridge(getEnterpriseManagerBridgeRequest) {
2027
+ return __awaiter(this, void 0, void 0, function* () {
2028
+ if (this.logger)
2029
+ this.logger.debug("Calling operation OperationsInsightsClient#getEnterpriseManagerBridge.");
2030
+ const pathParams = {
2031
+ "{enterpriseManagerBridgeId}": getEnterpriseManagerBridgeRequest.enterpriseManagerBridgeId
1300
2032
  };
1301
2033
  const queryParams = {};
1302
2034
  let headerParams = {
1303
2035
  "Content-Type": common.Constants.APPLICATION_JSON,
1304
- "if-match": enableHostInsightRequest.ifMatch,
1305
- "opc-request-id": enableHostInsightRequest.opcRequestId,
1306
- "opc-retry-token": enableHostInsightRequest.opcRetryToken
2036
+ "opc-request-id": getEnterpriseManagerBridgeRequest.opcRequestId
1307
2037
  };
1308
2038
  const specRetryConfiguration = common.NoRetryConfigurationDetails;
1309
- const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, enableHostInsightRequest.retryConfiguration, specRetryConfiguration);
2039
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getEnterpriseManagerBridgeRequest.retryConfiguration, specRetryConfiguration);
1310
2040
  if (this.logger)
1311
2041
  retrier.logger = this.logger;
1312
2042
  const request = yield oci_common_1.composeRequest({
1313
2043
  baseEndpoint: this._endpoint,
1314
2044
  defaultHeaders: this._defaultHeaders,
1315
- path: "/hostInsights/{hostInsightId}/actions/enable",
1316
- method: "POST",
1317
- bodyContent: common.ObjectSerializer.serialize(enableHostInsightRequest.enableHostInsightDetails, "EnableHostInsightDetails", model.EnableHostInsightDetails.getJsonObj),
2045
+ path: "/enterpriseManagerBridges/{enterpriseManagerBridgeId}",
2046
+ method: "GET",
1318
2047
  pathParams: pathParams,
1319
2048
  headerParams: headerParams,
1320
2049
  queryParams: queryParams
@@ -1323,10 +2052,14 @@ class OperationsInsightsClient {
1323
2052
  const response = yield retrier.makeServiceCall(this._httpClient, request);
1324
2053
  const sdkResponse = oci_common_1.composeResponse({
1325
2054
  responseObject: {},
2055
+ body: yield response.json(),
2056
+ bodyKey: "enterpriseManagerBridge",
2057
+ bodyModel: model.EnterpriseManagerBridge,
2058
+ type: "model.EnterpriseManagerBridge",
1326
2059
  responseHeaders: [
1327
2060
  {
1328
- value: response.headers.get("opc-work-request-id"),
1329
- key: "opcWorkRequestId",
2061
+ value: response.headers.get("etag"),
2062
+ key: "etag",
1330
2063
  dataType: "string"
1331
2064
  },
1332
2065
  {
@@ -1344,33 +2077,33 @@ class OperationsInsightsClient {
1344
2077
  });
1345
2078
  }
1346
2079
  /**
1347
- * Gets details of a database insight.
2080
+ * Gets details of an Exadata insight.
1348
2081
  * This operation does not retry by default if the user has not defined a retry configuration.
1349
- * @param GetDatabaseInsightRequest
1350
- * @return GetDatabaseInsightResponse
2082
+ * @param GetExadataInsightRequest
2083
+ * @return GetExadataInsightResponse
1351
2084
  * @throws OciError when an error occurs
1352
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.7.0/opsi/GetDatabaseInsight.ts.html |here} to see how to use GetDatabaseInsight API.
2085
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.10.0/opsi/GetExadataInsight.ts.html |here} to see how to use GetExadataInsight API.
1353
2086
  */
1354
- getDatabaseInsight(getDatabaseInsightRequest) {
2087
+ getExadataInsight(getExadataInsightRequest) {
1355
2088
  return __awaiter(this, void 0, void 0, function* () {
1356
2089
  if (this.logger)
1357
- this.logger.debug("Calling operation OperationsInsightsClient#getDatabaseInsight.");
2090
+ this.logger.debug("Calling operation OperationsInsightsClient#getExadataInsight.");
1358
2091
  const pathParams = {
1359
- "{databaseInsightId}": getDatabaseInsightRequest.databaseInsightId
2092
+ "{exadataInsightId}": getExadataInsightRequest.exadataInsightId
1360
2093
  };
1361
2094
  const queryParams = {};
1362
2095
  let headerParams = {
1363
2096
  "Content-Type": common.Constants.APPLICATION_JSON,
1364
- "opc-request-id": getDatabaseInsightRequest.opcRequestId
2097
+ "opc-request-id": getExadataInsightRequest.opcRequestId
1365
2098
  };
1366
2099
  const specRetryConfiguration = common.NoRetryConfigurationDetails;
1367
- const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getDatabaseInsightRequest.retryConfiguration, specRetryConfiguration);
2100
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getExadataInsightRequest.retryConfiguration, specRetryConfiguration);
1368
2101
  if (this.logger)
1369
2102
  retrier.logger = this.logger;
1370
2103
  const request = yield oci_common_1.composeRequest({
1371
2104
  baseEndpoint: this._endpoint,
1372
2105
  defaultHeaders: this._defaultHeaders,
1373
- path: "/databaseInsights/{databaseInsightId}",
2106
+ path: "/exadataInsights/{exadataInsightId}",
1374
2107
  method: "GET",
1375
2108
  pathParams: pathParams,
1376
2109
  headerParams: headerParams,
@@ -1381,9 +2114,9 @@ class OperationsInsightsClient {
1381
2114
  const sdkResponse = oci_common_1.composeResponse({
1382
2115
  responseObject: {},
1383
2116
  body: yield response.json(),
1384
- bodyKey: "databaseInsight",
1385
- bodyModel: model.DatabaseInsight,
1386
- type: "model.DatabaseInsight",
2117
+ bodyKey: "exadataInsight",
2118
+ bodyModel: model.ExadataInsight,
2119
+ type: "model.ExadataInsight",
1387
2120
  responseHeaders: [
1388
2121
  {
1389
2122
  value: response.headers.get("etag"),
@@ -1405,33 +2138,33 @@ class OperationsInsightsClient {
1405
2138
  });
1406
2139
  }
1407
2140
  /**
1408
- * Gets details of an Operations Insights Enterprise Manager bridge.
2141
+ * Gets details of a host insight.
1409
2142
  * This operation does not retry by default if the user has not defined a retry configuration.
1410
- * @param GetEnterpriseManagerBridgeRequest
1411
- * @return GetEnterpriseManagerBridgeResponse
2143
+ * @param GetHostInsightRequest
2144
+ * @return GetHostInsightResponse
1412
2145
  * @throws OciError when an error occurs
1413
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.7.0/opsi/GetEnterpriseManagerBridge.ts.html |here} to see how to use GetEnterpriseManagerBridge API.
2146
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.10.0/opsi/GetHostInsight.ts.html |here} to see how to use GetHostInsight API.
1414
2147
  */
1415
- getEnterpriseManagerBridge(getEnterpriseManagerBridgeRequest) {
2148
+ getHostInsight(getHostInsightRequest) {
1416
2149
  return __awaiter(this, void 0, void 0, function* () {
1417
2150
  if (this.logger)
1418
- this.logger.debug("Calling operation OperationsInsightsClient#getEnterpriseManagerBridge.");
2151
+ this.logger.debug("Calling operation OperationsInsightsClient#getHostInsight.");
1419
2152
  const pathParams = {
1420
- "{enterpriseManagerBridgeId}": getEnterpriseManagerBridgeRequest.enterpriseManagerBridgeId
2153
+ "{hostInsightId}": getHostInsightRequest.hostInsightId
1421
2154
  };
1422
2155
  const queryParams = {};
1423
2156
  let headerParams = {
1424
2157
  "Content-Type": common.Constants.APPLICATION_JSON,
1425
- "opc-request-id": getEnterpriseManagerBridgeRequest.opcRequestId
2158
+ "opc-request-id": getHostInsightRequest.opcRequestId
1426
2159
  };
1427
2160
  const specRetryConfiguration = common.NoRetryConfigurationDetails;
1428
- const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getEnterpriseManagerBridgeRequest.retryConfiguration, specRetryConfiguration);
2161
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getHostInsightRequest.retryConfiguration, specRetryConfiguration);
1429
2162
  if (this.logger)
1430
2163
  retrier.logger = this.logger;
1431
2164
  const request = yield oci_common_1.composeRequest({
1432
2165
  baseEndpoint: this._endpoint,
1433
2166
  defaultHeaders: this._defaultHeaders,
1434
- path: "/enterpriseManagerBridges/{enterpriseManagerBridgeId}",
2167
+ path: "/hostInsights/{hostInsightId}",
1435
2168
  method: "GET",
1436
2169
  pathParams: pathParams,
1437
2170
  headerParams: headerParams,
@@ -1442,9 +2175,9 @@ class OperationsInsightsClient {
1442
2175
  const sdkResponse = oci_common_1.composeResponse({
1443
2176
  responseObject: {},
1444
2177
  body: yield response.json(),
1445
- bodyKey: "enterpriseManagerBridge",
1446
- bodyModel: model.EnterpriseManagerBridge,
1447
- type: "model.EnterpriseManagerBridge",
2178
+ bodyKey: "hostInsight",
2179
+ bodyModel: model.HostInsight,
2180
+ type: "model.HostInsight",
1448
2181
  responseHeaders: [
1449
2182
  {
1450
2183
  value: response.headers.get("etag"),
@@ -1466,33 +2199,35 @@ class OperationsInsightsClient {
1466
2199
  });
1467
2200
  }
1468
2201
  /**
1469
- * Gets details of an Exadata insight.
2202
+ * Gets details of an Operations Insights Warehouse.
2203
+ * There is only expected to be 1 warehouse per tenant. The warehouse is expected to be in the root compartment.
2204
+ *
1470
2205
  * This operation does not retry by default if the user has not defined a retry configuration.
1471
- * @param GetExadataInsightRequest
1472
- * @return GetExadataInsightResponse
2206
+ * @param GetOperationsInsightsWarehouseRequest
2207
+ * @return GetOperationsInsightsWarehouseResponse
1473
2208
  * @throws OciError when an error occurs
1474
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.7.0/opsi/GetExadataInsight.ts.html |here} to see how to use GetExadataInsight API.
2209
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.10.0/opsi/GetOperationsInsightsWarehouse.ts.html |here} to see how to use GetOperationsInsightsWarehouse API.
1475
2210
  */
1476
- getExadataInsight(getExadataInsightRequest) {
2211
+ getOperationsInsightsWarehouse(getOperationsInsightsWarehouseRequest) {
1477
2212
  return __awaiter(this, void 0, void 0, function* () {
1478
2213
  if (this.logger)
1479
- this.logger.debug("Calling operation OperationsInsightsClient#getExadataInsight.");
2214
+ this.logger.debug("Calling operation OperationsInsightsClient#getOperationsInsightsWarehouse.");
1480
2215
  const pathParams = {
1481
- "{exadataInsightId}": getExadataInsightRequest.exadataInsightId
2216
+ "{operationsInsightsWarehouseId}": getOperationsInsightsWarehouseRequest.operationsInsightsWarehouseId
1482
2217
  };
1483
2218
  const queryParams = {};
1484
2219
  let headerParams = {
1485
2220
  "Content-Type": common.Constants.APPLICATION_JSON,
1486
- "opc-request-id": getExadataInsightRequest.opcRequestId
2221
+ "opc-request-id": getOperationsInsightsWarehouseRequest.opcRequestId
1487
2222
  };
1488
2223
  const specRetryConfiguration = common.NoRetryConfigurationDetails;
1489
- const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getExadataInsightRequest.retryConfiguration, specRetryConfiguration);
2224
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getOperationsInsightsWarehouseRequest.retryConfiguration, specRetryConfiguration);
1490
2225
  if (this.logger)
1491
2226
  retrier.logger = this.logger;
1492
2227
  const request = yield oci_common_1.composeRequest({
1493
2228
  baseEndpoint: this._endpoint,
1494
2229
  defaultHeaders: this._defaultHeaders,
1495
- path: "/exadataInsights/{exadataInsightId}",
2230
+ path: "/operationsInsightsWarehouses/{operationsInsightsWarehouseId}",
1496
2231
  method: "GET",
1497
2232
  pathParams: pathParams,
1498
2233
  headerParams: headerParams,
@@ -1503,9 +2238,9 @@ class OperationsInsightsClient {
1503
2238
  const sdkResponse = oci_common_1.composeResponse({
1504
2239
  responseObject: {},
1505
2240
  body: yield response.json(),
1506
- bodyKey: "exadataInsight",
1507
- bodyModel: model.ExadataInsight,
1508
- type: "model.ExadataInsight",
2241
+ bodyKey: "operationsInsightsWarehouse",
2242
+ bodyModel: model.OperationsInsightsWarehouse,
2243
+ type: "model.OperationsInsightsWarehouse",
1509
2244
  responseHeaders: [
1510
2245
  {
1511
2246
  value: response.headers.get("etag"),
@@ -1527,33 +2262,33 @@ class OperationsInsightsClient {
1527
2262
  });
1528
2263
  }
1529
2264
  /**
1530
- * Gets details of a host insight.
2265
+ * Gets details of an Operations Insights Warehouse User.
1531
2266
  * This operation does not retry by default if the user has not defined a retry configuration.
1532
- * @param GetHostInsightRequest
1533
- * @return GetHostInsightResponse
2267
+ * @param GetOperationsInsightsWarehouseUserRequest
2268
+ * @return GetOperationsInsightsWarehouseUserResponse
1534
2269
  * @throws OciError when an error occurs
1535
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.7.0/opsi/GetHostInsight.ts.html |here} to see how to use GetHostInsight API.
2270
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.10.0/opsi/GetOperationsInsightsWarehouseUser.ts.html |here} to see how to use GetOperationsInsightsWarehouseUser API.
1536
2271
  */
1537
- getHostInsight(getHostInsightRequest) {
2272
+ getOperationsInsightsWarehouseUser(getOperationsInsightsWarehouseUserRequest) {
1538
2273
  return __awaiter(this, void 0, void 0, function* () {
1539
2274
  if (this.logger)
1540
- this.logger.debug("Calling operation OperationsInsightsClient#getHostInsight.");
2275
+ this.logger.debug("Calling operation OperationsInsightsClient#getOperationsInsightsWarehouseUser.");
1541
2276
  const pathParams = {
1542
- "{hostInsightId}": getHostInsightRequest.hostInsightId
2277
+ "{operationsInsightsWarehouseUserId}": getOperationsInsightsWarehouseUserRequest.operationsInsightsWarehouseUserId
1543
2278
  };
1544
2279
  const queryParams = {};
1545
2280
  let headerParams = {
1546
2281
  "Content-Type": common.Constants.APPLICATION_JSON,
1547
- "opc-request-id": getHostInsightRequest.opcRequestId
2282
+ "opc-request-id": getOperationsInsightsWarehouseUserRequest.opcRequestId
1548
2283
  };
1549
2284
  const specRetryConfiguration = common.NoRetryConfigurationDetails;
1550
- const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getHostInsightRequest.retryConfiguration, specRetryConfiguration);
2285
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getOperationsInsightsWarehouseUserRequest.retryConfiguration, specRetryConfiguration);
1551
2286
  if (this.logger)
1552
2287
  retrier.logger = this.logger;
1553
2288
  const request = yield oci_common_1.composeRequest({
1554
2289
  baseEndpoint: this._endpoint,
1555
2290
  defaultHeaders: this._defaultHeaders,
1556
- path: "/hostInsights/{hostInsightId}",
2291
+ path: "/operationsInsightsWarehouseUsers/{operationsInsightsWarehouseUserId}",
1557
2292
  method: "GET",
1558
2293
  pathParams: pathParams,
1559
2294
  headerParams: headerParams,
@@ -1564,9 +2299,9 @@ class OperationsInsightsClient {
1564
2299
  const sdkResponse = oci_common_1.composeResponse({
1565
2300
  responseObject: {},
1566
2301
  body: yield response.json(),
1567
- bodyKey: "hostInsight",
1568
- bodyModel: model.HostInsight,
1569
- type: "model.HostInsight",
2302
+ bodyKey: "operationsInsightsWarehouseUser",
2303
+ bodyModel: model.OperationsInsightsWarehouseUser,
2304
+ type: "model.OperationsInsightsWarehouseUser",
1570
2305
  responseHeaders: [
1571
2306
  {
1572
2307
  value: response.headers.get("etag"),
@@ -1593,7 +2328,7 @@ class OperationsInsightsClient {
1593
2328
  * @param GetWorkRequestRequest
1594
2329
  * @return GetWorkRequestResponse
1595
2330
  * @throws OciError when an error occurs
1596
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.7.0/opsi/GetWorkRequest.ts.html |here} to see how to use GetWorkRequest API.
2331
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.10.0/opsi/GetWorkRequest.ts.html |here} to see how to use GetWorkRequest API.
1597
2332
  */
1598
2333
  getWorkRequest(getWorkRequestRequest) {
1599
2334
  return __awaiter(this, void 0, void 0, function* () {
@@ -1659,7 +2394,7 @@ class OperationsInsightsClient {
1659
2394
  * @param IngestDatabaseConfigurationRequest
1660
2395
  * @return IngestDatabaseConfigurationResponse
1661
2396
  * @throws OciError when an error occurs
1662
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.7.0/opsi/IngestDatabaseConfiguration.ts.html |here} to see how to use IngestDatabaseConfiguration API.
2397
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.10.0/opsi/IngestDatabaseConfiguration.ts.html |here} to see how to use IngestDatabaseConfiguration API.
1663
2398
  */
1664
2399
  ingestDatabaseConfiguration(ingestDatabaseConfigurationRequest) {
1665
2400
  return __awaiter(this, void 0, void 0, function* () {
@@ -1724,7 +2459,7 @@ class OperationsInsightsClient {
1724
2459
  * @param IngestHostConfigurationRequest
1725
2460
  * @return IngestHostConfigurationResponse
1726
2461
  * @throws OciError when an error occurs
1727
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.7.0/opsi/IngestHostConfiguration.ts.html |here} to see how to use IngestHostConfiguration API.
2462
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.10.0/opsi/IngestHostConfiguration.ts.html |here} to see how to use IngestHostConfiguration API.
1728
2463
  */
1729
2464
  ingestHostConfiguration(ingestHostConfigurationRequest) {
1730
2465
  return __awaiter(this, void 0, void 0, function* () {
@@ -1788,7 +2523,7 @@ class OperationsInsightsClient {
1788
2523
  * @param IngestHostMetricsRequest
1789
2524
  * @return IngestHostMetricsResponse
1790
2525
  * @throws OciError when an error occurs
1791
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.7.0/opsi/IngestHostMetrics.ts.html |here} to see how to use IngestHostMetrics API.
2526
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.10.0/opsi/IngestHostMetrics.ts.html |here} to see how to use IngestHostMetrics API.
1792
2527
  */
1793
2528
  ingestHostMetrics(ingestHostMetricsRequest) {
1794
2529
  return __awaiter(this, void 0, void 0, function* () {
@@ -1854,7 +2589,7 @@ class OperationsInsightsClient {
1854
2589
  * @param IngestSqlBucketRequest
1855
2590
  * @return IngestSqlBucketResponse
1856
2591
  * @throws OciError when an error occurs
1857
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.7.0/opsi/IngestSqlBucket.ts.html |here} to see how to use IngestSqlBucket API.
2592
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.10.0/opsi/IngestSqlBucket.ts.html |here} to see how to use IngestSqlBucket API.
1858
2593
  */
1859
2594
  ingestSqlBucket(ingestSqlBucketRequest) {
1860
2595
  return __awaiter(this, void 0, void 0, function* () {
@@ -1922,7 +2657,7 @@ class OperationsInsightsClient {
1922
2657
  * @param IngestSqlPlanLinesRequest
1923
2658
  * @return IngestSqlPlanLinesResponse
1924
2659
  * @throws OciError when an error occurs
1925
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.7.0/opsi/IngestSqlPlanLines.ts.html |here} to see how to use IngestSqlPlanLines API.
2660
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.10.0/opsi/IngestSqlPlanLines.ts.html |here} to see how to use IngestSqlPlanLines API.
1926
2661
  */
1927
2662
  ingestSqlPlanLines(ingestSqlPlanLinesRequest) {
1928
2663
  return __awaiter(this, void 0, void 0, function* () {
@@ -1982,6 +2717,73 @@ class OperationsInsightsClient {
1982
2717
  }
1983
2718
  });
1984
2719
  }
2720
+ /**
2721
+ * The SQL Stats endpoint takes in a JSON payload, persists it in Operations Insights ingest pipeline.
2722
+ * Either databaseId or id must be specified.
2723
+ *
2724
+ * This operation does not retry by default if the user has not defined a retry configuration.
2725
+ * @param IngestSqlStatsRequest
2726
+ * @return IngestSqlStatsResponse
2727
+ * @throws OciError when an error occurs
2728
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.10.0/opsi/IngestSqlStats.ts.html |here} to see how to use IngestSqlStats API.
2729
+ */
2730
+ ingestSqlStats(ingestSqlStatsRequest) {
2731
+ return __awaiter(this, void 0, void 0, function* () {
2732
+ if (this.logger)
2733
+ this.logger.debug("Calling operation OperationsInsightsClient#ingestSqlStats.");
2734
+ const pathParams = {};
2735
+ const queryParams = {
2736
+ "databaseId": ingestSqlStatsRequest.databaseId,
2737
+ "id": ingestSqlStatsRequest.id
2738
+ };
2739
+ let headerParams = {
2740
+ "Content-Type": common.Constants.APPLICATION_JSON,
2741
+ "opc-request-id": ingestSqlStatsRequest.opcRequestId,
2742
+ "if-match": ingestSqlStatsRequest.ifMatch,
2743
+ "opc-retry-token": ingestSqlStatsRequest.opcRetryToken
2744
+ };
2745
+ const specRetryConfiguration = common.NoRetryConfigurationDetails;
2746
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, ingestSqlStatsRequest.retryConfiguration, specRetryConfiguration);
2747
+ if (this.logger)
2748
+ retrier.logger = this.logger;
2749
+ const request = yield oci_common_1.composeRequest({
2750
+ baseEndpoint: this._endpoint,
2751
+ defaultHeaders: this._defaultHeaders,
2752
+ path: "/databaseInsights/actions/ingestSqlStatsMetric",
2753
+ method: "POST",
2754
+ bodyContent: common.ObjectSerializer.serialize(ingestSqlStatsRequest.ingestSqlStatsDetails, "IngestSqlStatsDetails", model.IngestSqlStatsDetails.getJsonObj),
2755
+ pathParams: pathParams,
2756
+ headerParams: headerParams,
2757
+ queryParams: queryParams
2758
+ });
2759
+ try {
2760
+ const response = yield retrier.makeServiceCall(this._httpClient, request);
2761
+ const sdkResponse = oci_common_1.composeResponse({
2762
+ responseObject: {},
2763
+ body: yield response.json(),
2764
+ bodyKey: "ingestSqlStatsResponseDetails",
2765
+ bodyModel: model.IngestSqlStatsResponseDetails,
2766
+ type: "model.IngestSqlStatsResponseDetails",
2767
+ responseHeaders: [
2768
+ {
2769
+ value: response.headers.get("opc-request-id"),
2770
+ key: "opcRequestId",
2771
+ dataType: "string"
2772
+ },
2773
+ {
2774
+ value: response.headers.get("etag"),
2775
+ key: "etag",
2776
+ dataType: "string"
2777
+ }
2778
+ ]
2779
+ });
2780
+ return sdkResponse;
2781
+ }
2782
+ catch (err) {
2783
+ throw err;
2784
+ }
2785
+ });
2786
+ }
1985
2787
  /**
1986
2788
  * The SqlText endpoint takes in a JSON payload, persists it in Operation Insights ingest pipeline.
1987
2789
  * Either databaseId or id must be specified.
@@ -1991,34 +2793,175 @@ class OperationsInsightsClient {
1991
2793
  * @param IngestSqlTextRequest
1992
2794
  * @return IngestSqlTextResponse
1993
2795
  * @throws OciError when an error occurs
1994
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.7.0/opsi/IngestSqlText.ts.html |here} to see how to use IngestSqlText API.
2796
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.10.0/opsi/IngestSqlText.ts.html |here} to see how to use IngestSqlText API.
2797
+ */
2798
+ ingestSqlText(ingestSqlTextRequest) {
2799
+ return __awaiter(this, void 0, void 0, function* () {
2800
+ if (this.logger)
2801
+ this.logger.debug("Calling operation OperationsInsightsClient#ingestSqlText.");
2802
+ const pathParams = {};
2803
+ const queryParams = {
2804
+ "compartmentId": ingestSqlTextRequest.compartmentId,
2805
+ "databaseId": ingestSqlTextRequest.databaseId,
2806
+ "id": ingestSqlTextRequest.id
2807
+ };
2808
+ let headerParams = {
2809
+ "Content-Type": common.Constants.APPLICATION_JSON,
2810
+ "opc-request-id": ingestSqlTextRequest.opcRequestId,
2811
+ "if-match": ingestSqlTextRequest.ifMatch,
2812
+ "opc-retry-token": ingestSqlTextRequest.opcRetryToken
2813
+ };
2814
+ const specRetryConfiguration = common.NoRetryConfigurationDetails;
2815
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, ingestSqlTextRequest.retryConfiguration, specRetryConfiguration);
2816
+ if (this.logger)
2817
+ retrier.logger = this.logger;
2818
+ const request = yield oci_common_1.composeRequest({
2819
+ baseEndpoint: this._endpoint,
2820
+ defaultHeaders: this._defaultHeaders,
2821
+ path: "/databaseInsights/actions/ingestSqlText",
2822
+ method: "POST",
2823
+ bodyContent: common.ObjectSerializer.serialize(ingestSqlTextRequest.ingestSqlTextDetails, "IngestSqlTextDetails", model.IngestSqlTextDetails.getJsonObj),
2824
+ pathParams: pathParams,
2825
+ headerParams: headerParams,
2826
+ queryParams: queryParams
2827
+ });
2828
+ try {
2829
+ const response = yield retrier.makeServiceCall(this._httpClient, request);
2830
+ const sdkResponse = oci_common_1.composeResponse({
2831
+ responseObject: {},
2832
+ body: yield response.json(),
2833
+ bodyKey: "ingestSqlTextResponseDetails",
2834
+ bodyModel: model.IngestSqlTextResponseDetails,
2835
+ type: "model.IngestSqlTextResponseDetails",
2836
+ responseHeaders: [
2837
+ {
2838
+ value: response.headers.get("opc-request-id"),
2839
+ key: "opcRequestId",
2840
+ dataType: "string"
2841
+ },
2842
+ {
2843
+ value: response.headers.get("etag"),
2844
+ key: "etag",
2845
+ dataType: "string"
2846
+ }
2847
+ ]
2848
+ });
2849
+ return sdkResponse;
2850
+ }
2851
+ catch (err) {
2852
+ throw err;
2853
+ }
2854
+ });
2855
+ }
2856
+ /**
2857
+ * Gets a list of AWR hubs. Either compartmentId or id must be specified. All these resources are expected to be in root compartment.
2858
+ *
2859
+ * This operation does not retry by default if the user has not defined a retry configuration.
2860
+ * @param ListAwrHubsRequest
2861
+ * @return ListAwrHubsResponse
2862
+ * @throws OciError when an error occurs
2863
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.10.0/opsi/ListAwrHubs.ts.html |here} to see how to use ListAwrHubs API.
2864
+ */
2865
+ listAwrHubs(listAwrHubsRequest) {
2866
+ return __awaiter(this, void 0, void 0, function* () {
2867
+ if (this.logger)
2868
+ this.logger.debug("Calling operation OperationsInsightsClient#listAwrHubs.");
2869
+ const pathParams = {};
2870
+ const queryParams = {
2871
+ "compartmentId": listAwrHubsRequest.compartmentId,
2872
+ "displayName": listAwrHubsRequest.displayName,
2873
+ "id": listAwrHubsRequest.id,
2874
+ "operationsInsightsWarehouseId": listAwrHubsRequest.operationsInsightsWarehouseId,
2875
+ "lifecycleState": listAwrHubsRequest.lifecycleState,
2876
+ "limit": listAwrHubsRequest.limit,
2877
+ "page": listAwrHubsRequest.page,
2878
+ "sortOrder": listAwrHubsRequest.sortOrder,
2879
+ "sortBy": listAwrHubsRequest.sortBy
2880
+ };
2881
+ let headerParams = {
2882
+ "Content-Type": common.Constants.APPLICATION_JSON,
2883
+ "opc-request-id": listAwrHubsRequest.opcRequestId
2884
+ };
2885
+ const specRetryConfiguration = common.NoRetryConfigurationDetails;
2886
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listAwrHubsRequest.retryConfiguration, specRetryConfiguration);
2887
+ if (this.logger)
2888
+ retrier.logger = this.logger;
2889
+ const request = yield oci_common_1.composeRequest({
2890
+ baseEndpoint: this._endpoint,
2891
+ defaultHeaders: this._defaultHeaders,
2892
+ path: "/awrHubs",
2893
+ method: "GET",
2894
+ pathParams: pathParams,
2895
+ headerParams: headerParams,
2896
+ queryParams: queryParams
2897
+ });
2898
+ try {
2899
+ const response = yield retrier.makeServiceCall(this._httpClient, request);
2900
+ const sdkResponse = oci_common_1.composeResponse({
2901
+ responseObject: {},
2902
+ body: yield response.json(),
2903
+ bodyKey: "awrHubSummaryCollection",
2904
+ bodyModel: model.AwrHubSummaryCollection,
2905
+ type: "model.AwrHubSummaryCollection",
2906
+ responseHeaders: [
2907
+ {
2908
+ value: response.headers.get("opc-request-id"),
2909
+ key: "opcRequestId",
2910
+ dataType: "string"
2911
+ },
2912
+ {
2913
+ value: response.headers.get("opc-next-page"),
2914
+ key: "opcNextPage",
2915
+ dataType: "string"
2916
+ }
2917
+ ]
2918
+ });
2919
+ return sdkResponse;
2920
+ }
2921
+ catch (err) {
2922
+ throw err;
2923
+ }
2924
+ });
2925
+ }
2926
+ /**
2927
+ * Lists AWR snapshots for the specified source database in the AWR hub. The difference between the timeGreaterThanOrEqualTo and timeLessThanOrEqualTo should not exceed an elapsed range of 1 day.
2928
+ * The timeGreaterThanOrEqualTo & timeLessThanOrEqualTo params are optional. If these params are not provided, by default last 1 day snapshots will be returned.
2929
+ *
2930
+ * This operation does not retry by default if the user has not defined a retry configuration.
2931
+ * @param ListAwrSnapshotsRequest
2932
+ * @return ListAwrSnapshotsResponse
2933
+ * @throws OciError when an error occurs
2934
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.10.0/opsi/ListAwrSnapshots.ts.html |here} to see how to use ListAwrSnapshots API.
1995
2935
  */
1996
- ingestSqlText(ingestSqlTextRequest) {
2936
+ listAwrSnapshots(listAwrSnapshotsRequest) {
1997
2937
  return __awaiter(this, void 0, void 0, function* () {
1998
2938
  if (this.logger)
1999
- this.logger.debug("Calling operation OperationsInsightsClient#ingestSqlText.");
2000
- const pathParams = {};
2939
+ this.logger.debug("Calling operation OperationsInsightsClient#listAwrSnapshots.");
2940
+ const pathParams = {
2941
+ "{awrHubId}": listAwrSnapshotsRequest.awrHubId
2942
+ };
2001
2943
  const queryParams = {
2002
- "compartmentId": ingestSqlTextRequest.compartmentId,
2003
- "databaseId": ingestSqlTextRequest.databaseId,
2004
- "id": ingestSqlTextRequest.id
2944
+ "awrSourceDatabaseIdentifier": listAwrSnapshotsRequest.awrSourceDatabaseIdentifier,
2945
+ "timeGreaterThanOrEqualTo": listAwrSnapshotsRequest.timeGreaterThanOrEqualTo,
2946
+ "timeLessThanOrEqualTo": listAwrSnapshotsRequest.timeLessThanOrEqualTo,
2947
+ "limit": listAwrSnapshotsRequest.limit,
2948
+ "page": listAwrSnapshotsRequest.page,
2949
+ "sortOrder": listAwrSnapshotsRequest.sortOrder,
2950
+ "sortBy": listAwrSnapshotsRequest.sortBy
2005
2951
  };
2006
2952
  let headerParams = {
2007
2953
  "Content-Type": common.Constants.APPLICATION_JSON,
2008
- "opc-request-id": ingestSqlTextRequest.opcRequestId,
2009
- "if-match": ingestSqlTextRequest.ifMatch,
2010
- "opc-retry-token": ingestSqlTextRequest.opcRetryToken
2954
+ "opc-request-id": listAwrSnapshotsRequest.opcRequestId
2011
2955
  };
2012
2956
  const specRetryConfiguration = common.NoRetryConfigurationDetails;
2013
- const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, ingestSqlTextRequest.retryConfiguration, specRetryConfiguration);
2957
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listAwrSnapshotsRequest.retryConfiguration, specRetryConfiguration);
2014
2958
  if (this.logger)
2015
2959
  retrier.logger = this.logger;
2016
2960
  const request = yield oci_common_1.composeRequest({
2017
2961
  baseEndpoint: this._endpoint,
2018
2962
  defaultHeaders: this._defaultHeaders,
2019
- path: "/databaseInsights/actions/ingestSqlText",
2020
- method: "POST",
2021
- bodyContent: common.ObjectSerializer.serialize(ingestSqlTextRequest.ingestSqlTextDetails, "IngestSqlTextDetails", model.IngestSqlTextDetails.getJsonObj),
2963
+ path: "/awrHubs/{awrHubId}/awrSnapshots",
2964
+ method: "GET",
2022
2965
  pathParams: pathParams,
2023
2966
  headerParams: headerParams,
2024
2967
  queryParams: queryParams
@@ -2028,9 +2971,9 @@ class OperationsInsightsClient {
2028
2971
  const sdkResponse = oci_common_1.composeResponse({
2029
2972
  responseObject: {},
2030
2973
  body: yield response.json(),
2031
- bodyKey: "ingestSqlTextResponseDetails",
2032
- bodyModel: model.IngestSqlTextResponseDetails,
2033
- type: "model.IngestSqlTextResponseDetails",
2974
+ bodyKey: "awrSnapshotCollection",
2975
+ bodyModel: model.AwrSnapshotCollection,
2976
+ type: "model.AwrSnapshotCollection",
2034
2977
  responseHeaders: [
2035
2978
  {
2036
2979
  value: response.headers.get("opc-request-id"),
@@ -2038,8 +2981,8 @@ class OperationsInsightsClient {
2038
2981
  dataType: "string"
2039
2982
  },
2040
2983
  {
2041
- value: response.headers.get("etag"),
2042
- key: "etag",
2984
+ value: response.headers.get("opc-next-page"),
2985
+ key: "opcNextPage",
2043
2986
  dataType: "string"
2044
2987
  }
2045
2988
  ]
@@ -2053,12 +2996,13 @@ class OperationsInsightsClient {
2053
2996
  }
2054
2997
  /**
2055
2998
  * Gets a list of database insight configurations based on the query parameters specified. Either compartmentId or databaseInsightId query parameter must be specified.
2999
+ * When both compartmentId and compartmentIdInSubtree are specified, a list of database insight configurations in that compartment and in all sub-compartments will be returned.
2056
3000
  *
2057
3001
  * This operation does not retry by default if the user has not defined a retry configuration.
2058
3002
  * @param ListDatabaseConfigurationsRequest
2059
3003
  * @return ListDatabaseConfigurationsResponse
2060
3004
  * @throws OciError when an error occurs
2061
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.7.0/opsi/ListDatabaseConfigurations.ts.html |here} to see how to use ListDatabaseConfigurations API.
3005
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.10.0/opsi/ListDatabaseConfigurations.ts.html |here} to see how to use ListDatabaseConfigurations API.
2062
3006
  */
2063
3007
  listDatabaseConfigurations(listDatabaseConfigurationsRequest) {
2064
3008
  return __awaiter(this, void 0, void 0, function* () {
@@ -2081,7 +3025,8 @@ class OperationsInsightsClient {
2081
3025
  "definedTagEquals": listDatabaseConfigurationsRequest.definedTagEquals,
2082
3026
  "freeformTagEquals": listDatabaseConfigurationsRequest.freeformTagEquals,
2083
3027
  "definedTagExists": listDatabaseConfigurationsRequest.definedTagExists,
2084
- "freeformTagExists": listDatabaseConfigurationsRequest.freeformTagExists
3028
+ "freeformTagExists": listDatabaseConfigurationsRequest.freeformTagExists,
3029
+ "compartmentIdInSubtree": listDatabaseConfigurationsRequest.compartmentIdInSubtree
2085
3030
  };
2086
3031
  let headerParams = {
2087
3032
  "Content-Type": common.Constants.APPLICATION_JSON,
@@ -2135,12 +3080,13 @@ class OperationsInsightsClient {
2135
3080
  }
2136
3081
  /**
2137
3082
  * Gets a list of database insights based on the query parameters specified. Either compartmentId or id query parameter must be specified.
3083
+ * When both compartmentId and compartmentIdInSubtree are specified, a list of database insights in that compartment and in all sub-compartments will be returned.
2138
3084
  *
2139
3085
  * This operation does not retry by default if the user has not defined a retry configuration.
2140
3086
  * @param ListDatabaseInsightsRequest
2141
3087
  * @return ListDatabaseInsightsResponse
2142
3088
  * @throws OciError when an error occurs
2143
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.7.0/opsi/ListDatabaseInsights.ts.html |here} to see how to use ListDatabaseInsights API.
3089
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.10.0/opsi/ListDatabaseInsights.ts.html |here} to see how to use ListDatabaseInsights API.
2144
3090
  */
2145
3091
  listDatabaseInsights(listDatabaseInsightsRequest) {
2146
3092
  return __awaiter(this, void 0, void 0, function* () {
@@ -2160,7 +3106,8 @@ class OperationsInsightsClient {
2160
3106
  "page": listDatabaseInsightsRequest.page,
2161
3107
  "sortOrder": listDatabaseInsightsRequest.sortOrder,
2162
3108
  "sortBy": listDatabaseInsightsRequest.sortBy,
2163
- "exadataInsightId": listDatabaseInsightsRequest.exadataInsightId
3109
+ "exadataInsightId": listDatabaseInsightsRequest.exadataInsightId,
3110
+ "compartmentIdInSubtree": listDatabaseInsightsRequest.compartmentIdInSubtree
2164
3111
  };
2165
3112
  let headerParams = {
2166
3113
  "Content-Type": common.Constants.APPLICATION_JSON,
@@ -2214,12 +3161,13 @@ class OperationsInsightsClient {
2214
3161
  }
2215
3162
  /**
2216
3163
  * Gets a list of Operations Insights Enterprise Manager bridges. Either compartmentId or id must be specified.
3164
+ * When both compartmentId and compartmentIdInSubtree are specified, a list of bridges in that compartment and in all sub-compartments will be returned.
2217
3165
  *
2218
3166
  * This operation does not retry by default if the user has not defined a retry configuration.
2219
3167
  * @param ListEnterpriseManagerBridgesRequest
2220
3168
  * @return ListEnterpriseManagerBridgesResponse
2221
3169
  * @throws OciError when an error occurs
2222
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.7.0/opsi/ListEnterpriseManagerBridges.ts.html |here} to see how to use ListEnterpriseManagerBridges API.
3170
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.10.0/opsi/ListEnterpriseManagerBridges.ts.html |here} to see how to use ListEnterpriseManagerBridges API.
2223
3171
  */
2224
3172
  listEnterpriseManagerBridges(listEnterpriseManagerBridgesRequest) {
2225
3173
  return __awaiter(this, void 0, void 0, function* () {
@@ -2234,7 +3182,8 @@ class OperationsInsightsClient {
2234
3182
  "limit": listEnterpriseManagerBridgesRequest.limit,
2235
3183
  "page": listEnterpriseManagerBridgesRequest.page,
2236
3184
  "sortOrder": listEnterpriseManagerBridgesRequest.sortOrder,
2237
- "sortBy": listEnterpriseManagerBridgesRequest.sortBy
3185
+ "sortBy": listEnterpriseManagerBridgesRequest.sortBy,
3186
+ "compartmentIdInSubtree": listEnterpriseManagerBridgesRequest.compartmentIdInSubtree
2238
3187
  };
2239
3188
  let headerParams = {
2240
3189
  "Content-Type": common.Constants.APPLICATION_JSON,
@@ -2287,7 +3236,7 @@ class OperationsInsightsClient {
2287
3236
  * @param ListExadataConfigurationsRequest
2288
3237
  * @return ListExadataConfigurationsResponse
2289
3238
  * @throws OciError when an error occurs
2290
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.7.0/opsi/ListExadataConfigurations.ts.html |here} to see how to use ListExadataConfigurations API.
3239
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.10.0/opsi/ListExadataConfigurations.ts.html |here} to see how to use ListExadataConfigurations API.
2291
3240
  */
2292
3241
  listExadataConfigurations(listExadataConfigurationsRequest) {
2293
3242
  return __awaiter(this, void 0, void 0, function* () {
@@ -2359,12 +3308,13 @@ class OperationsInsightsClient {
2359
3308
  }
2360
3309
  /**
2361
3310
  * Gets a list of Exadata insights based on the query parameters specified. Either compartmentId or id query parameter must be specified.
3311
+ * When both compartmentId and compartmentIdInSubtree are specified, a list of Exadata insights in that compartment and in all sub-compartments will be returned.
2362
3312
  *
2363
3313
  * This operation does not retry by default if the user has not defined a retry configuration.
2364
3314
  * @param ListExadataInsightsRequest
2365
3315
  * @return ListExadataInsightsResponse
2366
3316
  * @throws OciError when an error occurs
2367
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.7.0/opsi/ListExadataInsights.ts.html |here} to see how to use ListExadataInsights API.
3317
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.10.0/opsi/ListExadataInsights.ts.html |here} to see how to use ListExadataInsights API.
2368
3318
  */
2369
3319
  listExadataInsights(listExadataInsightsRequest) {
2370
3320
  return __awaiter(this, void 0, void 0, function* () {
@@ -2381,7 +3331,8 @@ class OperationsInsightsClient {
2381
3331
  "limit": listExadataInsightsRequest.limit,
2382
3332
  "page": listExadataInsightsRequest.page,
2383
3333
  "sortOrder": listExadataInsightsRequest.sortOrder,
2384
- "sortBy": listExadataInsightsRequest.sortBy
3334
+ "sortBy": listExadataInsightsRequest.sortBy,
3335
+ "compartmentIdInSubtree": listExadataInsightsRequest.compartmentIdInSubtree
2385
3336
  };
2386
3337
  let headerParams = {
2387
3338
  "Content-Type": common.Constants.APPLICATION_JSON,
@@ -2441,7 +3392,7 @@ class OperationsInsightsClient {
2441
3392
  * @param ListHostConfigurationsRequest
2442
3393
  * @return ListHostConfigurationsResponse
2443
3394
  * @throws OciError when an error occurs
2444
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.7.0/opsi/ListHostConfigurations.ts.html |here} to see how to use ListHostConfigurations API.
3395
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.10.0/opsi/ListHostConfigurations.ts.html |here} to see how to use ListHostConfigurations API.
2445
3396
  */
2446
3397
  listHostConfigurations(listHostConfigurationsRequest) {
2447
3398
  return __awaiter(this, void 0, void 0, function* () {
@@ -2461,7 +3412,8 @@ class OperationsInsightsClient {
2461
3412
  "definedTagEquals": listHostConfigurationsRequest.definedTagEquals,
2462
3413
  "freeformTagEquals": listHostConfigurationsRequest.freeformTagEquals,
2463
3414
  "definedTagExists": listHostConfigurationsRequest.definedTagExists,
2464
- "freeformTagExists": listHostConfigurationsRequest.freeformTagExists
3415
+ "freeformTagExists": listHostConfigurationsRequest.freeformTagExists,
3416
+ "compartmentIdInSubtree": listHostConfigurationsRequest.compartmentIdInSubtree
2465
3417
  };
2466
3418
  let headerParams = {
2467
3419
  "Content-Type": common.Constants.APPLICATION_JSON,
@@ -2515,12 +3467,13 @@ class OperationsInsightsClient {
2515
3467
  }
2516
3468
  /**
2517
3469
  * Gets a list of host insights based on the query parameters specified. Either compartmentId or id query parameter must be specified.
3470
+ * When both compartmentId and compartmentIdInSubtree are specified, a list of host insights in that compartment and in all sub-compartments will be returned.
2518
3471
  *
2519
3472
  * This operation does not retry by default if the user has not defined a retry configuration.
2520
3473
  * @param ListHostInsightsRequest
2521
3474
  * @return ListHostInsightsResponse
2522
3475
  * @throws OciError when an error occurs
2523
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.7.0/opsi/ListHostInsights.ts.html |here} to see how to use ListHostInsights API.
3476
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.10.0/opsi/ListHostInsights.ts.html |here} to see how to use ListHostInsights API.
2524
3477
  */
2525
3478
  listHostInsights(listHostInsightsRequest) {
2526
3479
  return __awaiter(this, void 0, void 0, function* () {
@@ -2539,7 +3492,8 @@ class OperationsInsightsClient {
2539
3492
  "sortOrder": listHostInsightsRequest.sortOrder,
2540
3493
  "sortBy": listHostInsightsRequest.sortBy,
2541
3494
  "enterpriseManagerBridgeId": listHostInsightsRequest.enterpriseManagerBridgeId,
2542
- "exadataInsightId": listHostInsightsRequest.exadataInsightId
3495
+ "exadataInsightId": listHostInsightsRequest.exadataInsightId,
3496
+ "compartmentIdInSubtree": listHostInsightsRequest.compartmentIdInSubtree
2543
3497
  };
2544
3498
  let headerParams = {
2545
3499
  "Content-Type": common.Constants.APPLICATION_JSON,
@@ -2598,7 +3552,7 @@ class OperationsInsightsClient {
2598
3552
  * @param ListHostedEntitiesRequest
2599
3553
  * @return ListHostedEntitiesResponse
2600
3554
  * @throws OciError when an error occurs
2601
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.7.0/opsi/ListHostedEntities.ts.html |here} to see how to use ListHostedEntities API.
3555
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.10.0/opsi/ListHostedEntities.ts.html |here} to see how to use ListHostedEntities API.
2602
3556
  */
2603
3557
  listHostedEntities(listHostedEntitiesRequest) {
2604
3558
  return __awaiter(this, void 0, void 0, function* () {
@@ -2674,7 +3628,7 @@ class OperationsInsightsClient {
2674
3628
  * @param ListImportableAgentEntitiesRequest
2675
3629
  * @return ListImportableAgentEntitiesResponse
2676
3630
  * @throws OciError when an error occurs
2677
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.7.0/opsi/ListImportableAgentEntities.ts.html |here} to see how to use ListImportableAgentEntities API.
3631
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.10.0/opsi/ListImportableAgentEntities.ts.html |here} to see how to use ListImportableAgentEntities API.
2678
3632
  */
2679
3633
  listImportableAgentEntities(listImportableAgentEntitiesRequest) {
2680
3634
  return __awaiter(this, void 0, void 0, function* () {
@@ -2740,7 +3694,7 @@ class OperationsInsightsClient {
2740
3694
  * @param ListImportableEnterpriseManagerEntitiesRequest
2741
3695
  * @return ListImportableEnterpriseManagerEntitiesResponse
2742
3696
  * @throws OciError when an error occurs
2743
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.7.0/opsi/ListImportableEnterpriseManagerEntities.ts.html |here} to see how to use ListImportableEnterpriseManagerEntities API.
3697
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.10.0/opsi/ListImportableEnterpriseManagerEntities.ts.html |here} to see how to use ListImportableEnterpriseManagerEntities API.
2744
3698
  */
2745
3699
  listImportableEnterpriseManagerEntities(listImportableEnterpriseManagerEntitiesRequest) {
2746
3700
  return __awaiter(this, void 0, void 0, function* () {
@@ -2801,6 +3755,146 @@ class OperationsInsightsClient {
2801
3755
  }
2802
3756
  });
2803
3757
  }
3758
+ /**
3759
+ * Gets a list of Operations Insights Warehouse users. Either compartmentId or id must be specified. All these resources are expected to be in root compartment.
3760
+ *
3761
+ * This operation does not retry by default if the user has not defined a retry configuration.
3762
+ * @param ListOperationsInsightsWarehouseUsersRequest
3763
+ * @return ListOperationsInsightsWarehouseUsersResponse
3764
+ * @throws OciError when an error occurs
3765
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.10.0/opsi/ListOperationsInsightsWarehouseUsers.ts.html |here} to see how to use ListOperationsInsightsWarehouseUsers API.
3766
+ */
3767
+ listOperationsInsightsWarehouseUsers(listOperationsInsightsWarehouseUsersRequest) {
3768
+ return __awaiter(this, void 0, void 0, function* () {
3769
+ if (this.logger)
3770
+ this.logger.debug("Calling operation OperationsInsightsClient#listOperationsInsightsWarehouseUsers.");
3771
+ const pathParams = {};
3772
+ const queryParams = {
3773
+ "compartmentId": listOperationsInsightsWarehouseUsersRequest.compartmentId,
3774
+ "displayName": listOperationsInsightsWarehouseUsersRequest.displayName,
3775
+ "id": listOperationsInsightsWarehouseUsersRequest.id,
3776
+ "operationsInsightsWarehouseId": listOperationsInsightsWarehouseUsersRequest.operationsInsightsWarehouseId,
3777
+ "lifecycleState": listOperationsInsightsWarehouseUsersRequest.lifecycleState,
3778
+ "limit": listOperationsInsightsWarehouseUsersRequest.limit,
3779
+ "page": listOperationsInsightsWarehouseUsersRequest.page,
3780
+ "sortOrder": listOperationsInsightsWarehouseUsersRequest.sortOrder,
3781
+ "sortBy": listOperationsInsightsWarehouseUsersRequest.sortBy
3782
+ };
3783
+ let headerParams = {
3784
+ "Content-Type": common.Constants.APPLICATION_JSON,
3785
+ "opc-request-id": listOperationsInsightsWarehouseUsersRequest.opcRequestId
3786
+ };
3787
+ const specRetryConfiguration = common.NoRetryConfigurationDetails;
3788
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listOperationsInsightsWarehouseUsersRequest.retryConfiguration, specRetryConfiguration);
3789
+ if (this.logger)
3790
+ retrier.logger = this.logger;
3791
+ const request = yield oci_common_1.composeRequest({
3792
+ baseEndpoint: this._endpoint,
3793
+ defaultHeaders: this._defaultHeaders,
3794
+ path: "/operationsInsightsWarehouseUsers",
3795
+ method: "GET",
3796
+ pathParams: pathParams,
3797
+ headerParams: headerParams,
3798
+ queryParams: queryParams
3799
+ });
3800
+ try {
3801
+ const response = yield retrier.makeServiceCall(this._httpClient, request);
3802
+ const sdkResponse = oci_common_1.composeResponse({
3803
+ responseObject: {},
3804
+ body: yield response.json(),
3805
+ bodyKey: "operationsInsightsWarehouseUserSummaryCollection",
3806
+ bodyModel: model.OperationsInsightsWarehouseUserSummaryCollection,
3807
+ type: "model.OperationsInsightsWarehouseUserSummaryCollection",
3808
+ responseHeaders: [
3809
+ {
3810
+ value: response.headers.get("opc-request-id"),
3811
+ key: "opcRequestId",
3812
+ dataType: "string"
3813
+ },
3814
+ {
3815
+ value: response.headers.get("opc-next-page"),
3816
+ key: "opcNextPage",
3817
+ dataType: "string"
3818
+ }
3819
+ ]
3820
+ });
3821
+ return sdkResponse;
3822
+ }
3823
+ catch (err) {
3824
+ throw err;
3825
+ }
3826
+ });
3827
+ }
3828
+ /**
3829
+ * Gets a list of Operations Insights warehouses. Either compartmentId or id must be specified.
3830
+ * There is only expected to be 1 warehouse per tenant. The warehouse is expected to be in the root compartment.
3831
+ *
3832
+ * This operation does not retry by default if the user has not defined a retry configuration.
3833
+ * @param ListOperationsInsightsWarehousesRequest
3834
+ * @return ListOperationsInsightsWarehousesResponse
3835
+ * @throws OciError when an error occurs
3836
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.10.0/opsi/ListOperationsInsightsWarehouses.ts.html |here} to see how to use ListOperationsInsightsWarehouses API.
3837
+ */
3838
+ listOperationsInsightsWarehouses(listOperationsInsightsWarehousesRequest) {
3839
+ return __awaiter(this, void 0, void 0, function* () {
3840
+ if (this.logger)
3841
+ this.logger.debug("Calling operation OperationsInsightsClient#listOperationsInsightsWarehouses.");
3842
+ const pathParams = {};
3843
+ const queryParams = {
3844
+ "compartmentId": listOperationsInsightsWarehousesRequest.compartmentId,
3845
+ "displayName": listOperationsInsightsWarehousesRequest.displayName,
3846
+ "id": listOperationsInsightsWarehousesRequest.id,
3847
+ "lifecycleState": listOperationsInsightsWarehousesRequest.lifecycleState,
3848
+ "limit": listOperationsInsightsWarehousesRequest.limit,
3849
+ "page": listOperationsInsightsWarehousesRequest.page,
3850
+ "sortOrder": listOperationsInsightsWarehousesRequest.sortOrder,
3851
+ "sortBy": listOperationsInsightsWarehousesRequest.sortBy
3852
+ };
3853
+ let headerParams = {
3854
+ "Content-Type": common.Constants.APPLICATION_JSON,
3855
+ "opc-request-id": listOperationsInsightsWarehousesRequest.opcRequestId
3856
+ };
3857
+ const specRetryConfiguration = common.NoRetryConfigurationDetails;
3858
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listOperationsInsightsWarehousesRequest.retryConfiguration, specRetryConfiguration);
3859
+ if (this.logger)
3860
+ retrier.logger = this.logger;
3861
+ const request = yield oci_common_1.composeRequest({
3862
+ baseEndpoint: this._endpoint,
3863
+ defaultHeaders: this._defaultHeaders,
3864
+ path: "/operationsInsightsWarehouses",
3865
+ method: "GET",
3866
+ pathParams: pathParams,
3867
+ headerParams: headerParams,
3868
+ queryParams: queryParams
3869
+ });
3870
+ try {
3871
+ const response = yield retrier.makeServiceCall(this._httpClient, request);
3872
+ const sdkResponse = oci_common_1.composeResponse({
3873
+ responseObject: {},
3874
+ body: yield response.json(),
3875
+ bodyKey: "operationsInsightsWarehouseSummaryCollection",
3876
+ bodyModel: model.OperationsInsightsWarehouseSummaryCollection,
3877
+ type: "model.OperationsInsightsWarehouseSummaryCollection",
3878
+ responseHeaders: [
3879
+ {
3880
+ value: response.headers.get("opc-request-id"),
3881
+ key: "opcRequestId",
3882
+ dataType: "string"
3883
+ },
3884
+ {
3885
+ value: response.headers.get("opc-next-page"),
3886
+ key: "opcNextPage",
3887
+ dataType: "string"
3888
+ }
3889
+ ]
3890
+ });
3891
+ return sdkResponse;
3892
+ }
3893
+ catch (err) {
3894
+ throw err;
3895
+ }
3896
+ });
3897
+ }
2804
3898
  /**
2805
3899
  * Query SQL Warehouse to list the plan xml for a given SQL execution plan. This returns a SqlPlanCollection object, but is currently limited to a single plan.
2806
3900
  * Either databaseId or id must be specified.
@@ -2809,7 +3903,7 @@ class OperationsInsightsClient {
2809
3903
  * @param ListSqlPlansRequest
2810
3904
  * @return ListSqlPlansResponse
2811
3905
  * @throws OciError when an error occurs
2812
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.7.0/opsi/ListSqlPlans.ts.html |here} to see how to use ListSqlPlans API.
3906
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.10.0/opsi/ListSqlPlans.ts.html |here} to see how to use ListSqlPlans API.
2813
3907
  */
2814
3908
  listSqlPlans(listSqlPlansRequest) {
2815
3909
  return __awaiter(this, void 0, void 0, function* () {
@@ -2870,13 +3964,14 @@ class OperationsInsightsClient {
2870
3964
  });
2871
3965
  }
2872
3966
  /**
2873
- * Search SQL by SQL Identifier across databases and get the SQL Text and the details of the databases executing the SQL for a given time period.
3967
+ * Search SQL by SQL Identifier across databases in a compartment and in all sub-compartments if specified.
3968
+ * And get the SQL Text and the details of the databases executing the SQL for a given time period.
2874
3969
  *
2875
3970
  * This operation does not retry by default if the user has not defined a retry configuration.
2876
3971
  * @param ListSqlSearchesRequest
2877
3972
  * @return ListSqlSearchesResponse
2878
3973
  * @throws OciError when an error occurs
2879
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.7.0/opsi/ListSqlSearches.ts.html |here} to see how to use ListSqlSearches API.
3974
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.10.0/opsi/ListSqlSearches.ts.html |here} to see how to use ListSqlSearches API.
2880
3975
  */
2881
3976
  listSqlSearches(listSqlSearchesRequest) {
2882
3977
  return __awaiter(this, void 0, void 0, function* () {
@@ -2893,7 +3988,8 @@ class OperationsInsightsClient {
2893
3988
  "definedTagEquals": listSqlSearchesRequest.definedTagEquals,
2894
3989
  "freeformTagEquals": listSqlSearchesRequest.freeformTagEquals,
2895
3990
  "definedTagExists": listSqlSearchesRequest.definedTagExists,
2896
- "freeformTagExists": listSqlSearchesRequest.freeformTagExists
3991
+ "freeformTagExists": listSqlSearchesRequest.freeformTagExists,
3992
+ "compartmentIdInSubtree": listSqlSearchesRequest.compartmentIdInSubtree
2897
3993
  };
2898
3994
  let headerParams = {
2899
3995
  "Content-Type": common.Constants.APPLICATION_JSON,
@@ -2941,13 +4037,13 @@ class OperationsInsightsClient {
2941
4037
  });
2942
4038
  }
2943
4039
  /**
2944
- * Query SQL Warehouse to get the full SQL Text for a SQL.
4040
+ * Query SQL Warehouse to get the full SQL Text for a SQL in a compartment and in all sub-compartments if specified.
2945
4041
  *
2946
4042
  * This operation does not retry by default if the user has not defined a retry configuration.
2947
4043
  * @param ListSqlTextsRequest
2948
4044
  * @return ListSqlTextsResponse
2949
4045
  * @throws OciError when an error occurs
2950
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.7.0/opsi/ListSqlTexts.ts.html |here} to see how to use ListSqlTexts API.
4046
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.10.0/opsi/ListSqlTexts.ts.html |here} to see how to use ListSqlTexts API.
2951
4047
  */
2952
4048
  listSqlTexts(listSqlTextsRequest) {
2953
4049
  return __awaiter(this, void 0, void 0, function* () {
@@ -2963,7 +4059,8 @@ class OperationsInsightsClient {
2963
4059
  "definedTagEquals": listSqlTextsRequest.definedTagEquals,
2964
4060
  "freeformTagEquals": listSqlTextsRequest.freeformTagEquals,
2965
4061
  "definedTagExists": listSqlTextsRequest.definedTagExists,
2966
- "freeformTagExists": listSqlTextsRequest.freeformTagExists
4062
+ "freeformTagExists": listSqlTextsRequest.freeformTagExists,
4063
+ "compartmentIdInSubtree": listSqlTextsRequest.compartmentIdInSubtree
2967
4064
  };
2968
4065
  let headerParams = {
2969
4066
  "Content-Type": common.Constants.APPLICATION_JSON,
@@ -3017,7 +4114,7 @@ class OperationsInsightsClient {
3017
4114
  * @param ListWorkRequestErrorsRequest
3018
4115
  * @return ListWorkRequestErrorsResponse
3019
4116
  * @throws OciError when an error occurs
3020
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.7.0/opsi/ListWorkRequestErrors.ts.html |here} to see how to use ListWorkRequestErrors API.
4117
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.10.0/opsi/ListWorkRequestErrors.ts.html |here} to see how to use ListWorkRequestErrors API.
3021
4118
  */
3022
4119
  listWorkRequestErrors(listWorkRequestErrorsRequest) {
3023
4120
  return __awaiter(this, void 0, void 0, function* () {
@@ -3054,18 +4151,155 @@ class OperationsInsightsClient {
3054
4151
  const sdkResponse = oci_common_1.composeResponse({
3055
4152
  responseObject: {},
3056
4153
  body: yield response.json(),
3057
- bodyKey: "workRequestErrorCollection",
3058
- bodyModel: model.WorkRequestErrorCollection,
3059
- type: "model.WorkRequestErrorCollection",
4154
+ bodyKey: "workRequestErrorCollection",
4155
+ bodyModel: model.WorkRequestErrorCollection,
4156
+ type: "model.WorkRequestErrorCollection",
4157
+ responseHeaders: [
4158
+ {
4159
+ value: response.headers.get("opc-next-page"),
4160
+ key: "opcNextPage",
4161
+ dataType: "string"
4162
+ },
4163
+ {
4164
+ value: response.headers.get("opc-request-id"),
4165
+ key: "opcRequestId",
4166
+ dataType: "string"
4167
+ }
4168
+ ]
4169
+ });
4170
+ return sdkResponse;
4171
+ }
4172
+ catch (err) {
4173
+ throw err;
4174
+ }
4175
+ });
4176
+ }
4177
+ /**
4178
+ * Return a (paginated) list of logs for a given work request.
4179
+ *
4180
+ * This operation does not retry by default if the user has not defined a retry configuration.
4181
+ * @param ListWorkRequestLogsRequest
4182
+ * @return ListWorkRequestLogsResponse
4183
+ * @throws OciError when an error occurs
4184
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.10.0/opsi/ListWorkRequestLogs.ts.html |here} to see how to use ListWorkRequestLogs API.
4185
+ */
4186
+ listWorkRequestLogs(listWorkRequestLogsRequest) {
4187
+ return __awaiter(this, void 0, void 0, function* () {
4188
+ if (this.logger)
4189
+ this.logger.debug("Calling operation OperationsInsightsClient#listWorkRequestLogs.");
4190
+ const pathParams = {
4191
+ "{workRequestId}": listWorkRequestLogsRequest.workRequestId
4192
+ };
4193
+ const queryParams = {
4194
+ "page": listWorkRequestLogsRequest.page,
4195
+ "limit": listWorkRequestLogsRequest.limit,
4196
+ "sortBy": listWorkRequestLogsRequest.sortBy,
4197
+ "sortOrder": listWorkRequestLogsRequest.sortOrder
4198
+ };
4199
+ let headerParams = {
4200
+ "Content-Type": common.Constants.APPLICATION_JSON,
4201
+ "opc-request-id": listWorkRequestLogsRequest.opcRequestId
4202
+ };
4203
+ const specRetryConfiguration = common.NoRetryConfigurationDetails;
4204
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listWorkRequestLogsRequest.retryConfiguration, specRetryConfiguration);
4205
+ if (this.logger)
4206
+ retrier.logger = this.logger;
4207
+ const request = yield oci_common_1.composeRequest({
4208
+ baseEndpoint: this._endpoint,
4209
+ defaultHeaders: this._defaultHeaders,
4210
+ path: "/workRequests/{workRequestId}/logs",
4211
+ method: "GET",
4212
+ pathParams: pathParams,
4213
+ headerParams: headerParams,
4214
+ queryParams: queryParams
4215
+ });
4216
+ try {
4217
+ const response = yield retrier.makeServiceCall(this._httpClient, request);
4218
+ const sdkResponse = oci_common_1.composeResponse({
4219
+ responseObject: {},
4220
+ body: yield response.json(),
4221
+ bodyKey: "workRequestLogEntryCollection",
4222
+ bodyModel: model.WorkRequestLogEntryCollection,
4223
+ type: "model.WorkRequestLogEntryCollection",
4224
+ responseHeaders: [
4225
+ {
4226
+ value: response.headers.get("opc-next-page"),
4227
+ key: "opcNextPage",
4228
+ dataType: "string"
4229
+ },
4230
+ {
4231
+ value: response.headers.get("opc-request-id"),
4232
+ key: "opcRequestId",
4233
+ dataType: "string"
4234
+ }
4235
+ ]
4236
+ });
4237
+ return sdkResponse;
4238
+ }
4239
+ catch (err) {
4240
+ throw err;
4241
+ }
4242
+ });
4243
+ }
4244
+ /**
4245
+ * Lists the work requests in a compartment. Either compartmentId or id must be specified. Only one of id, resourceId or relatedResourceId can be specified optionally.
4246
+ *
4247
+ * This operation does not retry by default if the user has not defined a retry configuration.
4248
+ * @param ListWorkRequestsRequest
4249
+ * @return ListWorkRequestsResponse
4250
+ * @throws OciError when an error occurs
4251
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.10.0/opsi/ListWorkRequests.ts.html |here} to see how to use ListWorkRequests API.
4252
+ */
4253
+ listWorkRequests(listWorkRequestsRequest) {
4254
+ return __awaiter(this, void 0, void 0, function* () {
4255
+ if (this.logger)
4256
+ this.logger.debug("Calling operation OperationsInsightsClient#listWorkRequests.");
4257
+ const pathParams = {};
4258
+ const queryParams = {
4259
+ "page": listWorkRequestsRequest.page,
4260
+ "limit": listWorkRequestsRequest.limit,
4261
+ "compartmentId": listWorkRequestsRequest.compartmentId,
4262
+ "id": listWorkRequestsRequest.id,
4263
+ "status": listWorkRequestsRequest.status,
4264
+ "resourceId": listWorkRequestsRequest.resourceId,
4265
+ "relatedResourceId": listWorkRequestsRequest.relatedResourceId,
4266
+ "sortOrder": listWorkRequestsRequest.sortOrder,
4267
+ "sortBy": listWorkRequestsRequest.sortBy
4268
+ };
4269
+ let headerParams = {
4270
+ "Content-Type": common.Constants.APPLICATION_JSON,
4271
+ "opc-request-id": listWorkRequestsRequest.opcRequestId
4272
+ };
4273
+ const specRetryConfiguration = common.NoRetryConfigurationDetails;
4274
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listWorkRequestsRequest.retryConfiguration, specRetryConfiguration);
4275
+ if (this.logger)
4276
+ retrier.logger = this.logger;
4277
+ const request = yield oci_common_1.composeRequest({
4278
+ baseEndpoint: this._endpoint,
4279
+ defaultHeaders: this._defaultHeaders,
4280
+ path: "/workRequests",
4281
+ method: "GET",
4282
+ pathParams: pathParams,
4283
+ headerParams: headerParams,
4284
+ queryParams: queryParams
4285
+ });
4286
+ try {
4287
+ const response = yield retrier.makeServiceCall(this._httpClient, request);
4288
+ const sdkResponse = oci_common_1.composeResponse({
4289
+ responseObject: {},
4290
+ body: yield response.json(),
4291
+ bodyKey: "workRequestCollection",
4292
+ bodyModel: model.WorkRequestCollection,
4293
+ type: "model.WorkRequestCollection",
3060
4294
  responseHeaders: [
3061
4295
  {
3062
- value: response.headers.get("opc-next-page"),
3063
- key: "opcNextPage",
4296
+ value: response.headers.get("opc-request-id"),
4297
+ key: "opcRequestId",
3064
4298
  dataType: "string"
3065
4299
  },
3066
4300
  {
3067
- value: response.headers.get("opc-request-id"),
3068
- key: "opcRequestId",
4301
+ value: response.headers.get("opc-next-page"),
4302
+ key: "opcNextPage",
3069
4303
  dataType: "string"
3070
4304
  }
3071
4305
  ]
@@ -3078,40 +4312,35 @@ class OperationsInsightsClient {
3078
4312
  });
3079
4313
  }
3080
4314
  /**
3081
- * Return a (paginated) list of logs for a given work request.
3082
- *
4315
+ * Rotate the ADW wallet for Operations Insights Warehouse using which the Hub data is exposed.
3083
4316
  * This operation does not retry by default if the user has not defined a retry configuration.
3084
- * @param ListWorkRequestLogsRequest
3085
- * @return ListWorkRequestLogsResponse
4317
+ * @param RotateOperationsInsightsWarehouseWalletRequest
4318
+ * @return RotateOperationsInsightsWarehouseWalletResponse
3086
4319
  * @throws OciError when an error occurs
3087
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.7.0/opsi/ListWorkRequestLogs.ts.html |here} to see how to use ListWorkRequestLogs API.
4320
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.10.0/opsi/RotateOperationsInsightsWarehouseWallet.ts.html |here} to see how to use RotateOperationsInsightsWarehouseWallet API.
3088
4321
  */
3089
- listWorkRequestLogs(listWorkRequestLogsRequest) {
4322
+ rotateOperationsInsightsWarehouseWallet(rotateOperationsInsightsWarehouseWalletRequest) {
3090
4323
  return __awaiter(this, void 0, void 0, function* () {
3091
4324
  if (this.logger)
3092
- this.logger.debug("Calling operation OperationsInsightsClient#listWorkRequestLogs.");
4325
+ this.logger.debug("Calling operation OperationsInsightsClient#rotateOperationsInsightsWarehouseWallet.");
3093
4326
  const pathParams = {
3094
- "{workRequestId}": listWorkRequestLogsRequest.workRequestId
3095
- };
3096
- const queryParams = {
3097
- "page": listWorkRequestLogsRequest.page,
3098
- "limit": listWorkRequestLogsRequest.limit,
3099
- "sortBy": listWorkRequestLogsRequest.sortBy,
3100
- "sortOrder": listWorkRequestLogsRequest.sortOrder
4327
+ "{operationsInsightsWarehouseId}": rotateOperationsInsightsWarehouseWalletRequest.operationsInsightsWarehouseId
3101
4328
  };
4329
+ const queryParams = {};
3102
4330
  let headerParams = {
3103
4331
  "Content-Type": common.Constants.APPLICATION_JSON,
3104
- "opc-request-id": listWorkRequestLogsRequest.opcRequestId
4332
+ "opc-request-id": rotateOperationsInsightsWarehouseWalletRequest.opcRequestId,
4333
+ "if-match": rotateOperationsInsightsWarehouseWalletRequest.ifMatch
3105
4334
  };
3106
4335
  const specRetryConfiguration = common.NoRetryConfigurationDetails;
3107
- const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listWorkRequestLogsRequest.retryConfiguration, specRetryConfiguration);
4336
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, rotateOperationsInsightsWarehouseWalletRequest.retryConfiguration, specRetryConfiguration);
3108
4337
  if (this.logger)
3109
4338
  retrier.logger = this.logger;
3110
4339
  const request = yield oci_common_1.composeRequest({
3111
4340
  baseEndpoint: this._endpoint,
3112
4341
  defaultHeaders: this._defaultHeaders,
3113
- path: "/workRequests/{workRequestId}/logs",
3114
- method: "GET",
4342
+ path: "/operationsInsightsWarehouses/{operationsInsightsWarehouseId}/actions/rotateWarehouseWallet",
4343
+ method: "POST",
3115
4344
  pathParams: pathParams,
3116
4345
  headerParams: headerParams,
3117
4346
  queryParams: queryParams
@@ -3120,14 +4349,10 @@ class OperationsInsightsClient {
3120
4349
  const response = yield retrier.makeServiceCall(this._httpClient, request);
3121
4350
  const sdkResponse = oci_common_1.composeResponse({
3122
4351
  responseObject: {},
3123
- body: yield response.json(),
3124
- bodyKey: "workRequestLogEntryCollection",
3125
- bodyModel: model.WorkRequestLogEntryCollection,
3126
- type: "model.WorkRequestLogEntryCollection",
3127
4352
  responseHeaders: [
3128
4353
  {
3129
- value: response.headers.get("opc-next-page"),
3130
- key: "opcNextPage",
4354
+ value: response.headers.get("opc-work-request-id"),
4355
+ key: "opcWorkRequestId",
3131
4356
  dataType: "string"
3132
4357
  },
3133
4358
  {
@@ -3145,42 +4370,41 @@ class OperationsInsightsClient {
3145
4370
  });
3146
4371
  }
3147
4372
  /**
3148
- * Lists the work requests in a compartment. Either compartmentId or id must be specified. Only one of id, resourceId or relatedResourceId can be specified optionally.
4373
+ * Gets a list of summary of AWR Sources.
3149
4374
  *
3150
4375
  * This operation does not retry by default if the user has not defined a retry configuration.
3151
- * @param ListWorkRequestsRequest
3152
- * @return ListWorkRequestsResponse
4376
+ * @param SummarizeAwrSourcesSummariesRequest
4377
+ * @return SummarizeAwrSourcesSummariesResponse
3153
4378
  * @throws OciError when an error occurs
3154
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.7.0/opsi/ListWorkRequests.ts.html |here} to see how to use ListWorkRequests API.
4379
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.10.0/opsi/SummarizeAwrSourcesSummaries.ts.html |here} to see how to use SummarizeAwrSourcesSummaries API.
3155
4380
  */
3156
- listWorkRequests(listWorkRequestsRequest) {
4381
+ summarizeAwrSourcesSummaries(summarizeAwrSourcesSummariesRequest) {
3157
4382
  return __awaiter(this, void 0, void 0, function* () {
3158
4383
  if (this.logger)
3159
- this.logger.debug("Calling operation OperationsInsightsClient#listWorkRequests.");
3160
- const pathParams = {};
4384
+ this.logger.debug("Calling operation OperationsInsightsClient#summarizeAwrSourcesSummaries.");
4385
+ const pathParams = {
4386
+ "{awrHubId}": summarizeAwrSourcesSummariesRequest.awrHubId
4387
+ };
3161
4388
  const queryParams = {
3162
- "page": listWorkRequestsRequest.page,
3163
- "limit": listWorkRequestsRequest.limit,
3164
- "compartmentId": listWorkRequestsRequest.compartmentId,
3165
- "id": listWorkRequestsRequest.id,
3166
- "status": listWorkRequestsRequest.status,
3167
- "resourceId": listWorkRequestsRequest.resourceId,
3168
- "relatedResourceId": listWorkRequestsRequest.relatedResourceId,
3169
- "sortOrder": listWorkRequestsRequest.sortOrder,
3170
- "sortBy": listWorkRequestsRequest.sortBy
4389
+ "compartmentId": summarizeAwrSourcesSummariesRequest.compartmentId,
4390
+ "name": summarizeAwrSourcesSummariesRequest.name,
4391
+ "limit": summarizeAwrSourcesSummariesRequest.limit,
4392
+ "page": summarizeAwrSourcesSummariesRequest.page,
4393
+ "sortBy": summarizeAwrSourcesSummariesRequest.sortBy,
4394
+ "sortOrder": summarizeAwrSourcesSummariesRequest.sortOrder
3171
4395
  };
3172
4396
  let headerParams = {
3173
4397
  "Content-Type": common.Constants.APPLICATION_JSON,
3174
- "opc-request-id": listWorkRequestsRequest.opcRequestId
4398
+ "opc-request-id": summarizeAwrSourcesSummariesRequest.opcRequestId
3175
4399
  };
3176
4400
  const specRetryConfiguration = common.NoRetryConfigurationDetails;
3177
- const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listWorkRequestsRequest.retryConfiguration, specRetryConfiguration);
4401
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, summarizeAwrSourcesSummariesRequest.retryConfiguration, specRetryConfiguration);
3178
4402
  if (this.logger)
3179
4403
  retrier.logger = this.logger;
3180
4404
  const request = yield oci_common_1.composeRequest({
3181
4405
  baseEndpoint: this._endpoint,
3182
4406
  defaultHeaders: this._defaultHeaders,
3183
- path: "/workRequests",
4407
+ path: "/awrHubs/{awrHubId}/awrSourcesSummary",
3184
4408
  method: "GET",
3185
4409
  pathParams: pathParams,
3186
4410
  headerParams: headerParams,
@@ -3191,9 +4415,9 @@ class OperationsInsightsClient {
3191
4415
  const sdkResponse = oci_common_1.composeResponse({
3192
4416
  responseObject: {},
3193
4417
  body: yield response.json(),
3194
- bodyKey: "workRequestCollection",
3195
- bodyModel: model.WorkRequestCollection,
3196
- type: "model.WorkRequestCollection",
4418
+ bodyKey: "summarizeAwrSourcesSummariesCollection",
4419
+ bodyModel: model.SummarizeAwrSourcesSummariesCollection,
4420
+ type: "model.SummarizeAwrSourcesSummariesCollection",
3197
4421
  responseHeaders: [
3198
4422
  {
3199
4423
  value: response.headers.get("opc-request-id"),
@@ -3217,12 +4441,13 @@ class OperationsInsightsClient {
3217
4441
  /**
3218
4442
  * Returns response with time series data (endTimestamp, capacity, baseCapacity) for the time period specified.
3219
4443
  * The maximum time range for analysis is 2 years, hence this is intentionally not paginated.
4444
+ * If compartmentIdInSubtree is specified, aggregates resources in a compartment and in all sub-compartments.
3220
4445
  *
3221
4446
  * This operation does not retry by default if the user has not defined a retry configuration.
3222
4447
  * @param SummarizeDatabaseInsightResourceCapacityTrendRequest
3223
4448
  * @return SummarizeDatabaseInsightResourceCapacityTrendResponse
3224
4449
  * @throws OciError when an error occurs
3225
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.7.0/opsi/SummarizeDatabaseInsightResourceCapacityTrend.ts.html |here} to see how to use SummarizeDatabaseInsightResourceCapacityTrend API.
4450
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.10.0/opsi/SummarizeDatabaseInsightResourceCapacityTrend.ts.html |here} to see how to use SummarizeDatabaseInsightResourceCapacityTrend API.
3226
4451
  */
3227
4452
  summarizeDatabaseInsightResourceCapacityTrend(summarizeDatabaseInsightResourceCapacityTrendRequest) {
3228
4453
  return __awaiter(this, void 0, void 0, function* () {
@@ -3250,7 +4475,8 @@ class OperationsInsightsClient {
3250
4475
  "definedTagEquals": summarizeDatabaseInsightResourceCapacityTrendRequest.definedTagEquals,
3251
4476
  "freeformTagEquals": summarizeDatabaseInsightResourceCapacityTrendRequest.freeformTagEquals,
3252
4477
  "definedTagExists": summarizeDatabaseInsightResourceCapacityTrendRequest.definedTagExists,
3253
- "freeformTagExists": summarizeDatabaseInsightResourceCapacityTrendRequest.freeformTagExists
4478
+ "freeformTagExists": summarizeDatabaseInsightResourceCapacityTrendRequest.freeformTagExists,
4479
+ "compartmentIdInSubtree": summarizeDatabaseInsightResourceCapacityTrendRequest.compartmentIdInSubtree
3254
4480
  };
3255
4481
  let headerParams = {
3256
4482
  "Content-Type": common.Constants.APPLICATION_JSON,
@@ -3299,12 +4525,13 @@ class OperationsInsightsClient {
3299
4525
  }
3300
4526
  /**
3301
4527
  * Get Forecast predictions for CPU and Storage resources since a time in the past.
4528
+ * If compartmentIdInSubtree is specified, aggregates resources in a compartment and in all sub-compartments.
3302
4529
  *
3303
4530
  * This operation does not retry by default if the user has not defined a retry configuration.
3304
4531
  * @param SummarizeDatabaseInsightResourceForecastTrendRequest
3305
4532
  * @return SummarizeDatabaseInsightResourceForecastTrendResponse
3306
4533
  * @throws OciError when an error occurs
3307
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.7.0/opsi/SummarizeDatabaseInsightResourceForecastTrend.ts.html |here} to see how to use SummarizeDatabaseInsightResourceForecastTrend API.
4534
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.10.0/opsi/SummarizeDatabaseInsightResourceForecastTrend.ts.html |here} to see how to use SummarizeDatabaseInsightResourceForecastTrend API.
3308
4535
  */
3309
4536
  summarizeDatabaseInsightResourceForecastTrend(summarizeDatabaseInsightResourceForecastTrendRequest) {
3310
4537
  return __awaiter(this, void 0, void 0, function* () {
@@ -3334,7 +4561,8 @@ class OperationsInsightsClient {
3334
4561
  "definedTagEquals": summarizeDatabaseInsightResourceForecastTrendRequest.definedTagEquals,
3335
4562
  "freeformTagEquals": summarizeDatabaseInsightResourceForecastTrendRequest.freeformTagEquals,
3336
4563
  "definedTagExists": summarizeDatabaseInsightResourceForecastTrendRequest.definedTagExists,
3337
- "freeformTagExists": summarizeDatabaseInsightResourceForecastTrendRequest.freeformTagExists
4564
+ "freeformTagExists": summarizeDatabaseInsightResourceForecastTrendRequest.freeformTagExists,
4565
+ "compartmentIdInSubtree": summarizeDatabaseInsightResourceForecastTrendRequest.compartmentIdInSubtree
3338
4566
  };
3339
4567
  let headerParams = {
3340
4568
  "Content-Type": common.Constants.APPLICATION_JSON,
@@ -3383,13 +4611,13 @@ class OperationsInsightsClient {
3383
4611
  }
3384
4612
  /**
3385
4613
  * Lists the Resource statistics (usage,capacity, usage change percent, utilization percent, base capacity, isAutoScalingEnabled)
3386
- * for each database filtered by utilization level.
4614
+ * for each database filtered by utilization level in a compartment and in all sub-compartments if specified.
3387
4615
  *
3388
4616
  * This operation does not retry by default if the user has not defined a retry configuration.
3389
4617
  * @param SummarizeDatabaseInsightResourceStatisticsRequest
3390
4618
  * @return SummarizeDatabaseInsightResourceStatisticsResponse
3391
4619
  * @throws OciError when an error occurs
3392
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.7.0/opsi/SummarizeDatabaseInsightResourceStatistics.ts.html |here} to see how to use SummarizeDatabaseInsightResourceStatistics API.
4620
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.10.0/opsi/SummarizeDatabaseInsightResourceStatistics.ts.html |here} to see how to use SummarizeDatabaseInsightResourceStatistics API.
3393
4621
  */
3394
4622
  summarizeDatabaseInsightResourceStatistics(summarizeDatabaseInsightResourceStatisticsRequest) {
3395
4623
  return __awaiter(this, void 0, void 0, function* () {
@@ -3419,7 +4647,8 @@ class OperationsInsightsClient {
3419
4647
  "definedTagEquals": summarizeDatabaseInsightResourceStatisticsRequest.definedTagEquals,
3420
4648
  "freeformTagEquals": summarizeDatabaseInsightResourceStatisticsRequest.freeformTagEquals,
3421
4649
  "definedTagExists": summarizeDatabaseInsightResourceStatisticsRequest.definedTagExists,
3422
- "freeformTagExists": summarizeDatabaseInsightResourceStatisticsRequest.freeformTagExists
4650
+ "freeformTagExists": summarizeDatabaseInsightResourceStatisticsRequest.freeformTagExists,
4651
+ "compartmentIdInSubtree": summarizeDatabaseInsightResourceStatisticsRequest.compartmentIdInSubtree
3423
4652
  };
3424
4653
  let headerParams = {
3425
4654
  "Content-Type": common.Constants.APPLICATION_JSON,
@@ -3470,12 +4699,13 @@ class OperationsInsightsClient {
3470
4699
  * A cumulative distribution function is used to rank the usage data points per database within the specified time period.
3471
4700
  * For each database, the minimum data point with a ranking > the percentile value is included in the summation.
3472
4701
  * Linear regression functions are used to calculate the usage change percentage.
4702
+ * If compartmentIdInSubtree is specified, aggregates resources in a compartment and in all sub-compartments.
3473
4703
  *
3474
4704
  * This operation does not retry by default if the user has not defined a retry configuration.
3475
4705
  * @param SummarizeDatabaseInsightResourceUsageRequest
3476
4706
  * @return SummarizeDatabaseInsightResourceUsageResponse
3477
4707
  * @throws OciError when an error occurs
3478
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.7.0/opsi/SummarizeDatabaseInsightResourceUsage.ts.html |here} to see how to use SummarizeDatabaseInsightResourceUsage API.
4708
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.10.0/opsi/SummarizeDatabaseInsightResourceUsage.ts.html |here} to see how to use SummarizeDatabaseInsightResourceUsage API.
3479
4709
  */
3480
4710
  summarizeDatabaseInsightResourceUsage(summarizeDatabaseInsightResourceUsageRequest) {
3481
4711
  return __awaiter(this, void 0, void 0, function* () {
@@ -3499,7 +4729,8 @@ class OperationsInsightsClient {
3499
4729
  "definedTagEquals": summarizeDatabaseInsightResourceUsageRequest.definedTagEquals,
3500
4730
  "freeformTagEquals": summarizeDatabaseInsightResourceUsageRequest.freeformTagEquals,
3501
4731
  "definedTagExists": summarizeDatabaseInsightResourceUsageRequest.definedTagExists,
3502
- "freeformTagExists": summarizeDatabaseInsightResourceUsageRequest.freeformTagExists
4732
+ "freeformTagExists": summarizeDatabaseInsightResourceUsageRequest.freeformTagExists,
4733
+ "compartmentIdInSubtree": summarizeDatabaseInsightResourceUsageRequest.compartmentIdInSubtree
3503
4734
  };
3504
4735
  let headerParams = {
3505
4736
  "Content-Type": common.Constants.APPLICATION_JSON,
@@ -3549,12 +4780,13 @@ class OperationsInsightsClient {
3549
4780
  /**
3550
4781
  * Returns response with time series data (endTimestamp, usage, capacity) for the time period specified.
3551
4782
  * The maximum time range for analysis is 2 years, hence this is intentionally not paginated.
4783
+ * If compartmentIdInSubtree is specified, aggregates resources in a compartment and in all sub-compartments.
3552
4784
  *
3553
4785
  * This operation does not retry by default if the user has not defined a retry configuration.
3554
4786
  * @param SummarizeDatabaseInsightResourceUsageTrendRequest
3555
4787
  * @return SummarizeDatabaseInsightResourceUsageTrendResponse
3556
4788
  * @throws OciError when an error occurs
3557
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.7.0/opsi/SummarizeDatabaseInsightResourceUsageTrend.ts.html |here} to see how to use SummarizeDatabaseInsightResourceUsageTrend API.
4789
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.10.0/opsi/SummarizeDatabaseInsightResourceUsageTrend.ts.html |here} to see how to use SummarizeDatabaseInsightResourceUsageTrend API.
3558
4790
  */
3559
4791
  summarizeDatabaseInsightResourceUsageTrend(summarizeDatabaseInsightResourceUsageTrendRequest) {
3560
4792
  return __awaiter(this, void 0, void 0, function* () {
@@ -3579,7 +4811,8 @@ class OperationsInsightsClient {
3579
4811
  "definedTagEquals": summarizeDatabaseInsightResourceUsageTrendRequest.definedTagEquals,
3580
4812
  "freeformTagEquals": summarizeDatabaseInsightResourceUsageTrendRequest.freeformTagEquals,
3581
4813
  "definedTagExists": summarizeDatabaseInsightResourceUsageTrendRequest.definedTagExists,
3582
- "freeformTagExists": summarizeDatabaseInsightResourceUsageTrendRequest.freeformTagExists
4814
+ "freeformTagExists": summarizeDatabaseInsightResourceUsageTrendRequest.freeformTagExists,
4815
+ "compartmentIdInSubtree": summarizeDatabaseInsightResourceUsageTrendRequest.compartmentIdInSubtree
3583
4816
  };
3584
4817
  let headerParams = {
3585
4818
  "Content-Type": common.Constants.APPLICATION_JSON,
@@ -3628,12 +4861,13 @@ class OperationsInsightsClient {
3628
4861
  }
3629
4862
  /**
3630
4863
  * Gets resources with current utilization (high and low) and projected utilization (high and low) for a resource type over specified time period.
4864
+ * If compartmentIdInSubtree is specified, aggregates resources in a compartment and in all sub-compartments.
3631
4865
  *
3632
4866
  * This operation does not retry by default if the user has not defined a retry configuration.
3633
4867
  * @param SummarizeDatabaseInsightResourceUtilizationInsightRequest
3634
4868
  * @return SummarizeDatabaseInsightResourceUtilizationInsightResponse
3635
4869
  * @throws OciError when an error occurs
3636
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.7.0/opsi/SummarizeDatabaseInsightResourceUtilizationInsight.ts.html |here} to see how to use SummarizeDatabaseInsightResourceUtilizationInsight API.
4870
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.10.0/opsi/SummarizeDatabaseInsightResourceUtilizationInsight.ts.html |here} to see how to use SummarizeDatabaseInsightResourceUtilizationInsight API.
3637
4871
  */
3638
4872
  summarizeDatabaseInsightResourceUtilizationInsight(summarizeDatabaseInsightResourceUtilizationInsightRequest) {
3639
4873
  return __awaiter(this, void 0, void 0, function* () {
@@ -3657,7 +4891,8 @@ class OperationsInsightsClient {
3657
4891
  "definedTagEquals": summarizeDatabaseInsightResourceUtilizationInsightRequest.definedTagEquals,
3658
4892
  "freeformTagEquals": summarizeDatabaseInsightResourceUtilizationInsightRequest.freeformTagEquals,
3659
4893
  "definedTagExists": summarizeDatabaseInsightResourceUtilizationInsightRequest.definedTagExists,
3660
- "freeformTagExists": summarizeDatabaseInsightResourceUtilizationInsightRequest.freeformTagExists
4894
+ "freeformTagExists": summarizeDatabaseInsightResourceUtilizationInsightRequest.freeformTagExists,
4895
+ "compartmentIdInSubtree": summarizeDatabaseInsightResourceUtilizationInsightRequest.compartmentIdInSubtree
3661
4896
  };
3662
4897
  let headerParams = {
3663
4898
  "Content-Type": common.Constants.APPLICATION_JSON,
@@ -3713,7 +4948,7 @@ class OperationsInsightsClient {
3713
4948
  * @param SummarizeDatabaseInsightTablespaceUsageTrendRequest
3714
4949
  * @return SummarizeDatabaseInsightTablespaceUsageTrendResponse
3715
4950
  * @throws OciError when an error occurs
3716
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.7.0/opsi/SummarizeDatabaseInsightTablespaceUsageTrend.ts.html |here} to see how to use SummarizeDatabaseInsightTablespaceUsageTrend API.
4951
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.10.0/opsi/SummarizeDatabaseInsightTablespaceUsageTrend.ts.html |here} to see how to use SummarizeDatabaseInsightTablespaceUsageTrend API.
3717
4952
  */
3718
4953
  summarizeDatabaseInsightTablespaceUsageTrend(summarizeDatabaseInsightTablespaceUsageTrendRequest) {
3719
4954
  return __awaiter(this, void 0, void 0, function* () {
@@ -3789,7 +5024,7 @@ class OperationsInsightsClient {
3789
5024
  * @param SummarizeExadataInsightResourceCapacityTrendRequest
3790
5025
  * @return SummarizeExadataInsightResourceCapacityTrendResponse
3791
5026
  * @throws OciError when an error occurs
3792
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.7.0/opsi/SummarizeExadataInsightResourceCapacityTrend.ts.html |here} to see how to use SummarizeExadataInsightResourceCapacityTrend API.
5027
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.10.0/opsi/SummarizeExadataInsightResourceCapacityTrend.ts.html |here} to see how to use SummarizeExadataInsightResourceCapacityTrend API.
3793
5028
  */
3794
5029
  summarizeExadataInsightResourceCapacityTrend(summarizeExadataInsightResourceCapacityTrendRequest) {
3795
5030
  return __awaiter(this, void 0, void 0, function* () {
@@ -3871,7 +5106,7 @@ class OperationsInsightsClient {
3871
5106
  * @param SummarizeExadataInsightResourceCapacityTrendAggregatedRequest
3872
5107
  * @return SummarizeExadataInsightResourceCapacityTrendAggregatedResponse
3873
5108
  * @throws OciError when an error occurs
3874
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.7.0/opsi/SummarizeExadataInsightResourceCapacityTrendAggregated.ts.html |here} to see how to use SummarizeExadataInsightResourceCapacityTrendAggregated API.
5109
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.10.0/opsi/SummarizeExadataInsightResourceCapacityTrendAggregated.ts.html |here} to see how to use SummarizeExadataInsightResourceCapacityTrendAggregated API.
3875
5110
  */
3876
5111
  summarizeExadataInsightResourceCapacityTrendAggregated(summarizeExadataInsightResourceCapacityTrendAggregatedRequest) {
3877
5112
  return __awaiter(this, void 0, void 0, function* () {
@@ -3956,7 +5191,7 @@ class OperationsInsightsClient {
3956
5191
  * @param SummarizeExadataInsightResourceForecastTrendRequest
3957
5192
  * @return SummarizeExadataInsightResourceForecastTrendResponse
3958
5193
  * @throws OciError when an error occurs
3959
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.7.0/opsi/SummarizeExadataInsightResourceForecastTrend.ts.html |here} to see how to use SummarizeExadataInsightResourceForecastTrend API.
5194
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.10.0/opsi/SummarizeExadataInsightResourceForecastTrend.ts.html |here} to see how to use SummarizeExadataInsightResourceForecastTrend API.
3960
5195
  */
3961
5196
  summarizeExadataInsightResourceForecastTrend(summarizeExadataInsightResourceForecastTrendRequest) {
3962
5197
  return __awaiter(this, void 0, void 0, function* () {
@@ -4041,7 +5276,7 @@ class OperationsInsightsClient {
4041
5276
  * @param SummarizeExadataInsightResourceForecastTrendAggregatedRequest
4042
5277
  * @return SummarizeExadataInsightResourceForecastTrendAggregatedResponse
4043
5278
  * @throws OciError when an error occurs
4044
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.7.0/opsi/SummarizeExadataInsightResourceForecastTrendAggregated.ts.html |here} to see how to use SummarizeExadataInsightResourceForecastTrendAggregated API.
5279
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.10.0/opsi/SummarizeExadataInsightResourceForecastTrendAggregated.ts.html |here} to see how to use SummarizeExadataInsightResourceForecastTrendAggregated API.
4045
5280
  */
4046
5281
  summarizeExadataInsightResourceForecastTrendAggregated(summarizeExadataInsightResourceForecastTrendAggregatedRequest) {
4047
5282
  return __awaiter(this, void 0, void 0, function* () {
@@ -4126,7 +5361,7 @@ class OperationsInsightsClient {
4126
5361
  * @param SummarizeExadataInsightResourceStatisticsRequest
4127
5362
  * @return SummarizeExadataInsightResourceStatisticsResponse
4128
5363
  * @throws OciError when an error occurs
4129
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.7.0/opsi/SummarizeExadataInsightResourceStatistics.ts.html |here} to see how to use SummarizeExadataInsightResourceStatistics API.
5364
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.10.0/opsi/SummarizeExadataInsightResourceStatistics.ts.html |here} to see how to use SummarizeExadataInsightResourceStatistics API.
4130
5365
  */
4131
5366
  summarizeExadataInsightResourceStatistics(summarizeExadataInsightResourceStatisticsRequest) {
4132
5367
  return __awaiter(this, void 0, void 0, function* () {
@@ -4211,7 +5446,7 @@ class OperationsInsightsClient {
4211
5446
  * @param SummarizeExadataInsightResourceUsageRequest
4212
5447
  * @return SummarizeExadataInsightResourceUsageResponse
4213
5448
  * @throws OciError when an error occurs
4214
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.7.0/opsi/SummarizeExadataInsightResourceUsage.ts.html |here} to see how to use SummarizeExadataInsightResourceUsage API.
5449
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.10.0/opsi/SummarizeExadataInsightResourceUsage.ts.html |here} to see how to use SummarizeExadataInsightResourceUsage API.
4215
5450
  */
4216
5451
  summarizeExadataInsightResourceUsage(summarizeExadataInsightResourceUsageRequest) {
4217
5452
  return __awaiter(this, void 0, void 0, function* () {
@@ -4296,7 +5531,7 @@ class OperationsInsightsClient {
4296
5531
  * @param SummarizeExadataInsightResourceUsageAggregatedRequest
4297
5532
  * @return SummarizeExadataInsightResourceUsageAggregatedResponse
4298
5533
  * @throws OciError when an error occurs
4299
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.7.0/opsi/SummarizeExadataInsightResourceUsageAggregated.ts.html |here} to see how to use SummarizeExadataInsightResourceUsageAggregated API.
5534
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.10.0/opsi/SummarizeExadataInsightResourceUsageAggregated.ts.html |here} to see how to use SummarizeExadataInsightResourceUsageAggregated API.
4300
5535
  */
4301
5536
  summarizeExadataInsightResourceUsageAggregated(summarizeExadataInsightResourceUsageAggregatedRequest) {
4302
5537
  return __awaiter(this, void 0, void 0, function* () {
@@ -4372,7 +5607,7 @@ class OperationsInsightsClient {
4372
5607
  * @param SummarizeExadataInsightResourceUtilizationInsightRequest
4373
5608
  * @return SummarizeExadataInsightResourceUtilizationInsightResponse
4374
5609
  * @throws OciError when an error occurs
4375
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.7.0/opsi/SummarizeExadataInsightResourceUtilizationInsight.ts.html |here} to see how to use SummarizeExadataInsightResourceUtilizationInsight API.
5610
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.10.0/opsi/SummarizeExadataInsightResourceUtilizationInsight.ts.html |here} to see how to use SummarizeExadataInsightResourceUtilizationInsight API.
4376
5611
  */
4377
5612
  summarizeExadataInsightResourceUtilizationInsight(summarizeExadataInsightResourceUtilizationInsightRequest) {
4378
5613
  return __awaiter(this, void 0, void 0, function* () {
@@ -4455,7 +5690,7 @@ class OperationsInsightsClient {
4455
5690
  * @param SummarizeExadataMembersRequest
4456
5691
  * @return SummarizeExadataMembersResponse
4457
5692
  * @throws OciError when an error occurs
4458
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.7.0/opsi/SummarizeExadataMembers.ts.html |here} to see how to use SummarizeExadataMembers API.
5693
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.10.0/opsi/SummarizeExadataMembers.ts.html |here} to see how to use SummarizeExadataMembers API.
4459
5694
  */
4460
5695
  summarizeExadataMembers(summarizeExadataMembersRequest) {
4461
5696
  return __awaiter(this, void 0, void 0, function* () {
@@ -4523,12 +5758,13 @@ class OperationsInsightsClient {
4523
5758
  /**
4524
5759
  * Returns response with time series data (endTimestamp, capacity) for the time period specified.
4525
5760
  * The maximum time range for analysis is 2 years, hence this is intentionally not paginated.
5761
+ * If compartmentIdInSubtree is specified, aggregates resources in a compartment and in all sub-compartments.
4526
5762
  *
4527
5763
  * This operation does not retry by default if the user has not defined a retry configuration.
4528
5764
  * @param SummarizeHostInsightResourceCapacityTrendRequest
4529
5765
  * @return SummarizeHostInsightResourceCapacityTrendResponse
4530
5766
  * @throws OciError when an error occurs
4531
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.7.0/opsi/SummarizeHostInsightResourceCapacityTrend.ts.html |here} to see how to use SummarizeHostInsightResourceCapacityTrend API.
5767
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.10.0/opsi/SummarizeHostInsightResourceCapacityTrend.ts.html |here} to see how to use SummarizeHostInsightResourceCapacityTrend API.
4532
5768
  */
4533
5769
  summarizeHostInsightResourceCapacityTrend(summarizeHostInsightResourceCapacityTrendRequest) {
4534
5770
  return __awaiter(this, void 0, void 0, function* () {
@@ -4551,7 +5787,8 @@ class OperationsInsightsClient {
4551
5787
  "definedTagEquals": summarizeHostInsightResourceCapacityTrendRequest.definedTagEquals,
4552
5788
  "freeformTagEquals": summarizeHostInsightResourceCapacityTrendRequest.freeformTagEquals,
4553
5789
  "definedTagExists": summarizeHostInsightResourceCapacityTrendRequest.definedTagExists,
4554
- "freeformTagExists": summarizeHostInsightResourceCapacityTrendRequest.freeformTagExists
5790
+ "freeformTagExists": summarizeHostInsightResourceCapacityTrendRequest.freeformTagExists,
5791
+ "compartmentIdInSubtree": summarizeHostInsightResourceCapacityTrendRequest.compartmentIdInSubtree
4555
5792
  };
4556
5793
  let headerParams = {
4557
5794
  "Content-Type": common.Constants.APPLICATION_JSON,
@@ -4600,12 +5837,13 @@ class OperationsInsightsClient {
4600
5837
  }
4601
5838
  /**
4602
5839
  * Get Forecast predictions for CPU or memory resources since a time in the past.
5840
+ * If compartmentIdInSubtree is specified, aggregates resources in a compartment and in all sub-compartments.
4603
5841
  *
4604
5842
  * This operation does not retry by default if the user has not defined a retry configuration.
4605
5843
  * @param SummarizeHostInsightResourceForecastTrendRequest
4606
5844
  * @return SummarizeHostInsightResourceForecastTrendResponse
4607
5845
  * @throws OciError when an error occurs
4608
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.7.0/opsi/SummarizeHostInsightResourceForecastTrend.ts.html |here} to see how to use SummarizeHostInsightResourceForecastTrend API.
5846
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.10.0/opsi/SummarizeHostInsightResourceForecastTrend.ts.html |here} to see how to use SummarizeHostInsightResourceForecastTrend API.
4609
5847
  */
4610
5848
  summarizeHostInsightResourceForecastTrend(summarizeHostInsightResourceForecastTrendRequest) {
4611
5849
  return __awaiter(this, void 0, void 0, function* () {
@@ -4630,7 +5868,8 @@ class OperationsInsightsClient {
4630
5868
  "definedTagEquals": summarizeHostInsightResourceForecastTrendRequest.definedTagEquals,
4631
5869
  "freeformTagEquals": summarizeHostInsightResourceForecastTrendRequest.freeformTagEquals,
4632
5870
  "definedTagExists": summarizeHostInsightResourceForecastTrendRequest.definedTagExists,
4633
- "freeformTagExists": summarizeHostInsightResourceForecastTrendRequest.freeformTagExists
5871
+ "freeformTagExists": summarizeHostInsightResourceForecastTrendRequest.freeformTagExists,
5872
+ "compartmentIdInSubtree": summarizeHostInsightResourceForecastTrendRequest.compartmentIdInSubtree
4634
5873
  };
4635
5874
  let headerParams = {
4636
5875
  "Content-Type": common.Constants.APPLICATION_JSON,
@@ -4674,13 +5913,13 @@ class OperationsInsightsClient {
4674
5913
  }
4675
5914
  /**
4676
5915
  * Lists the resource statistics (usage, capacity, usage change percent, utilization percent, load) for each host filtered
4677
- * by utilization level.
5916
+ * by utilization level in a compartment and in all sub-compartments if specified.
4678
5917
  *
4679
5918
  * This operation does not retry by default if the user has not defined a retry configuration.
4680
5919
  * @param SummarizeHostInsightResourceStatisticsRequest
4681
5920
  * @return SummarizeHostInsightResourceStatisticsResponse
4682
5921
  * @throws OciError when an error occurs
4683
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.7.0/opsi/SummarizeHostInsightResourceStatistics.ts.html |here} to see how to use SummarizeHostInsightResourceStatistics API.
5922
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.10.0/opsi/SummarizeHostInsightResourceStatistics.ts.html |here} to see how to use SummarizeHostInsightResourceStatistics API.
4684
5923
  */
4685
5924
  summarizeHostInsightResourceStatistics(summarizeHostInsightResourceStatisticsRequest) {
4686
5925
  return __awaiter(this, void 0, void 0, function* () {
@@ -4706,7 +5945,8 @@ class OperationsInsightsClient {
4706
5945
  "definedTagEquals": summarizeHostInsightResourceStatisticsRequest.definedTagEquals,
4707
5946
  "freeformTagEquals": summarizeHostInsightResourceStatisticsRequest.freeformTagEquals,
4708
5947
  "definedTagExists": summarizeHostInsightResourceStatisticsRequest.definedTagExists,
4709
- "freeformTagExists": summarizeHostInsightResourceStatisticsRequest.freeformTagExists
5948
+ "freeformTagExists": summarizeHostInsightResourceStatisticsRequest.freeformTagExists,
5949
+ "compartmentIdInSubtree": summarizeHostInsightResourceStatisticsRequest.compartmentIdInSubtree
4710
5950
  };
4711
5951
  let headerParams = {
4712
5952
  "Content-Type": common.Constants.APPLICATION_JSON,
@@ -4757,12 +5997,13 @@ class OperationsInsightsClient {
4757
5997
  * A cumulative distribution function is used to rank the usage data points per host within the specified time period.
4758
5998
  * For each host, the minimum data point with a ranking > the percentile value is included in the summation.
4759
5999
  * Linear regression functions are used to calculate the usage change percentage.
6000
+ * If compartmentIdInSubtree is specified, aggregates resources in a compartment and in all sub-compartments.
4760
6001
  *
4761
6002
  * This operation does not retry by default if the user has not defined a retry configuration.
4762
6003
  * @param SummarizeHostInsightResourceUsageRequest
4763
6004
  * @return SummarizeHostInsightResourceUsageResponse
4764
6005
  * @throws OciError when an error occurs
4765
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.7.0/opsi/SummarizeHostInsightResourceUsage.ts.html |here} to see how to use SummarizeHostInsightResourceUsage API.
6006
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.10.0/opsi/SummarizeHostInsightResourceUsage.ts.html |here} to see how to use SummarizeHostInsightResourceUsage API.
4766
6007
  */
4767
6008
  summarizeHostInsightResourceUsage(summarizeHostInsightResourceUsageRequest) {
4768
6009
  return __awaiter(this, void 0, void 0, function* () {
@@ -4783,7 +6024,8 @@ class OperationsInsightsClient {
4783
6024
  "definedTagEquals": summarizeHostInsightResourceUsageRequest.definedTagEquals,
4784
6025
  "freeformTagEquals": summarizeHostInsightResourceUsageRequest.freeformTagEquals,
4785
6026
  "definedTagExists": summarizeHostInsightResourceUsageRequest.definedTagExists,
4786
- "freeformTagExists": summarizeHostInsightResourceUsageRequest.freeformTagExists
6027
+ "freeformTagExists": summarizeHostInsightResourceUsageRequest.freeformTagExists,
6028
+ "compartmentIdInSubtree": summarizeHostInsightResourceUsageRequest.compartmentIdInSubtree
4787
6029
  };
4788
6030
  let headerParams = {
4789
6031
  "Content-Type": common.Constants.APPLICATION_JSON,
@@ -4828,12 +6070,13 @@ class OperationsInsightsClient {
4828
6070
  /**
4829
6071
  * Returns response with time series data (endTimestamp, usage, capacity) for the time period specified.
4830
6072
  * The maximum time range for analysis is 2 years, hence this is intentionally not paginated.
6073
+ * If compartmentIdInSubtree is specified, aggregates resources in a compartment and in all sub-compartments.
4831
6074
  *
4832
6075
  * This operation does not retry by default if the user has not defined a retry configuration.
4833
6076
  * @param SummarizeHostInsightResourceUsageTrendRequest
4834
6077
  * @return SummarizeHostInsightResourceUsageTrendResponse
4835
6078
  * @throws OciError when an error occurs
4836
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.7.0/opsi/SummarizeHostInsightResourceUsageTrend.ts.html |here} to see how to use SummarizeHostInsightResourceUsageTrend API.
6079
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.10.0/opsi/SummarizeHostInsightResourceUsageTrend.ts.html |here} to see how to use SummarizeHostInsightResourceUsageTrend API.
4837
6080
  */
4838
6081
  summarizeHostInsightResourceUsageTrend(summarizeHostInsightResourceUsageTrendRequest) {
4839
6082
  return __awaiter(this, void 0, void 0, function* () {
@@ -4855,7 +6098,8 @@ class OperationsInsightsClient {
4855
6098
  "definedTagEquals": summarizeHostInsightResourceUsageTrendRequest.definedTagEquals,
4856
6099
  "freeformTagEquals": summarizeHostInsightResourceUsageTrendRequest.freeformTagEquals,
4857
6100
  "definedTagExists": summarizeHostInsightResourceUsageTrendRequest.definedTagExists,
4858
- "freeformTagExists": summarizeHostInsightResourceUsageTrendRequest.freeformTagExists
6101
+ "freeformTagExists": summarizeHostInsightResourceUsageTrendRequest.freeformTagExists,
6102
+ "compartmentIdInSubtree": summarizeHostInsightResourceUsageTrendRequest.compartmentIdInSubtree
4859
6103
  };
4860
6104
  let headerParams = {
4861
6105
  "Content-Type": common.Constants.APPLICATION_JSON,
@@ -4904,12 +6148,13 @@ class OperationsInsightsClient {
4904
6148
  }
4905
6149
  /**
4906
6150
  * Gets resources with current utilization (high and low) and projected utilization (high and low) for a resource type over specified time period.
6151
+ * If compartmentIdInSubtree is specified, aggregates resources in a compartment and in all sub-compartments.
4907
6152
  *
4908
6153
  * This operation does not retry by default if the user has not defined a retry configuration.
4909
6154
  * @param SummarizeHostInsightResourceUtilizationInsightRequest
4910
6155
  * @return SummarizeHostInsightResourceUtilizationInsightResponse
4911
6156
  * @throws OciError when an error occurs
4912
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.7.0/opsi/SummarizeHostInsightResourceUtilizationInsight.ts.html |here} to see how to use SummarizeHostInsightResourceUtilizationInsight API.
6157
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.10.0/opsi/SummarizeHostInsightResourceUtilizationInsight.ts.html |here} to see how to use SummarizeHostInsightResourceUtilizationInsight API.
4913
6158
  */
4914
6159
  summarizeHostInsightResourceUtilizationInsight(summarizeHostInsightResourceUtilizationInsightRequest) {
4915
6160
  return __awaiter(this, void 0, void 0, function* () {
@@ -4930,7 +6175,8 @@ class OperationsInsightsClient {
4930
6175
  "definedTagEquals": summarizeHostInsightResourceUtilizationInsightRequest.definedTagEquals,
4931
6176
  "freeformTagEquals": summarizeHostInsightResourceUtilizationInsightRequest.freeformTagEquals,
4932
6177
  "definedTagExists": summarizeHostInsightResourceUtilizationInsightRequest.definedTagExists,
4933
- "freeformTagExists": summarizeHostInsightResourceUtilizationInsightRequest.freeformTagExists
6178
+ "freeformTagExists": summarizeHostInsightResourceUtilizationInsightRequest.freeformTagExists,
6179
+ "compartmentIdInSubtree": summarizeHostInsightResourceUtilizationInsightRequest.compartmentIdInSubtree
4934
6180
  };
4935
6181
  let headerParams = {
4936
6182
  "Content-Type": common.Constants.APPLICATION_JSON,
@@ -4972,15 +6218,78 @@ class OperationsInsightsClient {
4972
6218
  }
4973
6219
  });
4974
6220
  }
6221
+ /**
6222
+ * Gets the details of resources used by an Operations Insights Warehouse.
6223
+ * There is only expected to be 1 warehouse per tenant. The warehouse is expected to be in the root compartment.
6224
+ *
6225
+ * This operation does not retry by default if the user has not defined a retry configuration.
6226
+ * @param SummarizeOperationsInsightsWarehouseResourceUsageRequest
6227
+ * @return SummarizeOperationsInsightsWarehouseResourceUsageResponse
6228
+ * @throws OciError when an error occurs
6229
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.10.0/opsi/SummarizeOperationsInsightsWarehouseResourceUsage.ts.html |here} to see how to use SummarizeOperationsInsightsWarehouseResourceUsage API.
6230
+ */
6231
+ summarizeOperationsInsightsWarehouseResourceUsage(summarizeOperationsInsightsWarehouseResourceUsageRequest) {
6232
+ return __awaiter(this, void 0, void 0, function* () {
6233
+ if (this.logger)
6234
+ this.logger.debug("Calling operation OperationsInsightsClient#summarizeOperationsInsightsWarehouseResourceUsage.");
6235
+ const pathParams = {
6236
+ "{operationsInsightsWarehouseId}": summarizeOperationsInsightsWarehouseResourceUsageRequest.operationsInsightsWarehouseId
6237
+ };
6238
+ const queryParams = {};
6239
+ let headerParams = {
6240
+ "Content-Type": common.Constants.APPLICATION_JSON,
6241
+ "opc-request-id": summarizeOperationsInsightsWarehouseResourceUsageRequest.opcRequestId
6242
+ };
6243
+ const specRetryConfiguration = common.NoRetryConfigurationDetails;
6244
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, summarizeOperationsInsightsWarehouseResourceUsageRequest.retryConfiguration, specRetryConfiguration);
6245
+ if (this.logger)
6246
+ retrier.logger = this.logger;
6247
+ const request = yield oci_common_1.composeRequest({
6248
+ baseEndpoint: this._endpoint,
6249
+ defaultHeaders: this._defaultHeaders,
6250
+ path: "/operationsInsightsWarehouses/{operationsInsightsWarehouseId}/resourceUsageSummary",
6251
+ method: "GET",
6252
+ pathParams: pathParams,
6253
+ headerParams: headerParams,
6254
+ queryParams: queryParams
6255
+ });
6256
+ try {
6257
+ const response = yield retrier.makeServiceCall(this._httpClient, request);
6258
+ const sdkResponse = oci_common_1.composeResponse({
6259
+ responseObject: {},
6260
+ body: yield response.json(),
6261
+ bodyKey: "summarizeOperationsInsightsWarehouseResourceUsageAggregation",
6262
+ bodyModel: model.SummarizeOperationsInsightsWarehouseResourceUsageAggregation,
6263
+ type: "model.SummarizeOperationsInsightsWarehouseResourceUsageAggregation",
6264
+ responseHeaders: [
6265
+ {
6266
+ value: response.headers.get("etag"),
6267
+ key: "etag",
6268
+ dataType: "string"
6269
+ },
6270
+ {
6271
+ value: response.headers.get("opc-request-id"),
6272
+ key: "opcRequestId",
6273
+ dataType: "string"
6274
+ }
6275
+ ]
6276
+ });
6277
+ return sdkResponse;
6278
+ }
6279
+ catch (err) {
6280
+ throw err;
6281
+ }
6282
+ });
6283
+ }
4975
6284
  /**
4976
6285
  * Query SQL Warehouse to get the performance insights for SQLs taking greater than X% database time for a given
4977
- * time period across the given databases or database types.
6286
+ * time period across the given databases or database types in a compartment and in all sub-compartments if specified.
4978
6287
  *
4979
6288
  * This operation does not retry by default if the user has not defined a retry configuration.
4980
6289
  * @param SummarizeSqlInsightsRequest
4981
6290
  * @return SummarizeSqlInsightsResponse
4982
6291
  * @throws OciError when an error occurs
4983
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.7.0/opsi/SummarizeSqlInsights.ts.html |here} to see how to use SummarizeSqlInsights API.
6292
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.10.0/opsi/SummarizeSqlInsights.ts.html |here} to see how to use SummarizeSqlInsights API.
4984
6293
  */
4985
6294
  summarizeSqlInsights(summarizeSqlInsightsRequest) {
4986
6295
  return __awaiter(this, void 0, void 0, function* () {
@@ -5003,7 +6312,8 @@ class OperationsInsightsClient {
5003
6312
  "definedTagEquals": summarizeSqlInsightsRequest.definedTagEquals,
5004
6313
  "freeformTagEquals": summarizeSqlInsightsRequest.freeformTagEquals,
5005
6314
  "definedTagExists": summarizeSqlInsightsRequest.definedTagExists,
5006
- "freeformTagExists": summarizeSqlInsightsRequest.freeformTagExists
6315
+ "freeformTagExists": summarizeSqlInsightsRequest.freeformTagExists,
6316
+ "compartmentIdInSubtree": summarizeSqlInsightsRequest.compartmentIdInSubtree
5007
6317
  };
5008
6318
  let headerParams = {
5009
6319
  "Content-Type": common.Constants.APPLICATION_JSON,
@@ -5058,7 +6368,7 @@ class OperationsInsightsClient {
5058
6368
  * @param SummarizeSqlPlanInsightsRequest
5059
6369
  * @return SummarizeSqlPlanInsightsResponse
5060
6370
  * @throws OciError when an error occurs
5061
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.7.0/opsi/SummarizeSqlPlanInsights.ts.html |here} to see how to use SummarizeSqlPlanInsights API.
6371
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.10.0/opsi/SummarizeSqlPlanInsights.ts.html |here} to see how to use SummarizeSqlPlanInsights API.
5062
6372
  */
5063
6373
  summarizeSqlPlanInsights(summarizeSqlPlanInsightsRequest) {
5064
6374
  return __awaiter(this, void 0, void 0, function* () {
@@ -5128,7 +6438,7 @@ class OperationsInsightsClient {
5128
6438
  * @param SummarizeSqlResponseTimeDistributionsRequest
5129
6439
  * @return SummarizeSqlResponseTimeDistributionsResponse
5130
6440
  * @throws OciError when an error occurs
5131
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.7.0/opsi/SummarizeSqlResponseTimeDistributions.ts.html |here} to see how to use SummarizeSqlResponseTimeDistributions API.
6441
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.10.0/opsi/SummarizeSqlResponseTimeDistributions.ts.html |here} to see how to use SummarizeSqlResponseTimeDistributions API.
5132
6442
  */
5133
6443
  summarizeSqlResponseTimeDistributions(summarizeSqlResponseTimeDistributionsRequest) {
5134
6444
  return __awaiter(this, void 0, void 0, function* () {
@@ -5192,13 +6502,13 @@ class OperationsInsightsClient {
5192
6502
  }
5193
6503
  /**
5194
6504
  * Query SQL Warehouse to get the performance statistics for SQLs taking greater than X% database time for a given
5195
- * time period across the given databases or database types.
6505
+ * time period across the given databases or database types in a compartment and in all sub-compartments if specified.
5196
6506
  *
5197
6507
  * This operation does not retry by default if the user has not defined a retry configuration.
5198
6508
  * @param SummarizeSqlStatisticsRequest
5199
6509
  * @return SummarizeSqlStatisticsResponse
5200
6510
  * @throws OciError when an error occurs
5201
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.7.0/opsi/SummarizeSqlStatistics.ts.html |here} to see how to use SummarizeSqlStatistics API.
6511
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.10.0/opsi/SummarizeSqlStatistics.ts.html |here} to see how to use SummarizeSqlStatistics API.
5202
6512
  */
5203
6513
  summarizeSqlStatistics(summarizeSqlStatisticsRequest) {
5204
6514
  return __awaiter(this, void 0, void 0, function* () {
@@ -5226,7 +6536,8 @@ class OperationsInsightsClient {
5226
6536
  "definedTagEquals": summarizeSqlStatisticsRequest.definedTagEquals,
5227
6537
  "freeformTagEquals": summarizeSqlStatisticsRequest.freeformTagEquals,
5228
6538
  "definedTagExists": summarizeSqlStatisticsRequest.definedTagExists,
5229
- "freeformTagExists": summarizeSqlStatisticsRequest.freeformTagExists
6539
+ "freeformTagExists": summarizeSqlStatisticsRequest.freeformTagExists,
6540
+ "compartmentIdInSubtree": summarizeSqlStatisticsRequest.compartmentIdInSubtree
5230
6541
  };
5231
6542
  let headerParams = {
5232
6543
  "Content-Type": common.Constants.APPLICATION_JSON,
@@ -5274,13 +6585,14 @@ class OperationsInsightsClient {
5274
6585
  });
5275
6586
  }
5276
6587
  /**
5277
- * Query SQL Warehouse to get the performance statistics time series for a given SQL across given databases for a given time period.
6588
+ * Query SQL Warehouse to get the performance statistics time series for a given SQL across given databases for a
6589
+ * given time period in a compartment and in all sub-compartments if specified.
5278
6590
  *
5279
6591
  * This operation does not retry by default if the user has not defined a retry configuration.
5280
6592
  * @param SummarizeSqlStatisticsTimeSeriesRequest
5281
6593
  * @return SummarizeSqlStatisticsTimeSeriesResponse
5282
6594
  * @throws OciError when an error occurs
5283
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.7.0/opsi/SummarizeSqlStatisticsTimeSeries.ts.html |here} to see how to use SummarizeSqlStatisticsTimeSeries API.
6595
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.10.0/opsi/SummarizeSqlStatisticsTimeSeries.ts.html |here} to see how to use SummarizeSqlStatisticsTimeSeries API.
5284
6596
  */
5285
6597
  summarizeSqlStatisticsTimeSeries(summarizeSqlStatisticsTimeSeriesRequest) {
5286
6598
  return __awaiter(this, void 0, void 0, function* () {
@@ -5302,7 +6614,8 @@ class OperationsInsightsClient {
5302
6614
  "definedTagEquals": summarizeSqlStatisticsTimeSeriesRequest.definedTagEquals,
5303
6615
  "freeformTagEquals": summarizeSqlStatisticsTimeSeriesRequest.freeformTagEquals,
5304
6616
  "definedTagExists": summarizeSqlStatisticsTimeSeriesRequest.definedTagExists,
5305
- "freeformTagExists": summarizeSqlStatisticsTimeSeriesRequest.freeformTagExists
6617
+ "freeformTagExists": summarizeSqlStatisticsTimeSeriesRequest.freeformTagExists,
6618
+ "compartmentIdInSubtree": summarizeSqlStatisticsTimeSeriesRequest.compartmentIdInSubtree
5306
6619
  };
5307
6620
  let headerParams = {
5308
6621
  "Content-Type": common.Constants.APPLICATION_JSON,
@@ -5357,7 +6670,7 @@ class OperationsInsightsClient {
5357
6670
  * @param SummarizeSqlStatisticsTimeSeriesByPlanRequest
5358
6671
  * @return SummarizeSqlStatisticsTimeSeriesByPlanResponse
5359
6672
  * @throws OciError when an error occurs
5360
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.7.0/opsi/SummarizeSqlStatisticsTimeSeriesByPlan.ts.html |here} to see how to use SummarizeSqlStatisticsTimeSeriesByPlan API.
6673
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.10.0/opsi/SummarizeSqlStatisticsTimeSeriesByPlan.ts.html |here} to see how to use SummarizeSqlStatisticsTimeSeriesByPlan API.
5361
6674
  */
5362
6675
  summarizeSqlStatisticsTimeSeriesByPlan(summarizeSqlStatisticsTimeSeriesByPlanRequest) {
5363
6676
  return __awaiter(this, void 0, void 0, function* () {
@@ -5419,13 +6732,72 @@ class OperationsInsightsClient {
5419
6732
  }
5420
6733
  });
5421
6734
  }
6735
+ /**
6736
+ * Updates the configuration of a hub .
6737
+ * This operation does not retry by default if the user has not defined a retry configuration.
6738
+ * @param UpdateAwrHubRequest
6739
+ * @return UpdateAwrHubResponse
6740
+ * @throws OciError when an error occurs
6741
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.10.0/opsi/UpdateAwrHub.ts.html |here} to see how to use UpdateAwrHub API.
6742
+ */
6743
+ updateAwrHub(updateAwrHubRequest) {
6744
+ return __awaiter(this, void 0, void 0, function* () {
6745
+ if (this.logger)
6746
+ this.logger.debug("Calling operation OperationsInsightsClient#updateAwrHub.");
6747
+ const pathParams = {
6748
+ "{awrHubId}": updateAwrHubRequest.awrHubId
6749
+ };
6750
+ const queryParams = {};
6751
+ let headerParams = {
6752
+ "Content-Type": common.Constants.APPLICATION_JSON,
6753
+ "if-match": updateAwrHubRequest.ifMatch,
6754
+ "opc-request-id": updateAwrHubRequest.opcRequestId
6755
+ };
6756
+ const specRetryConfiguration = common.NoRetryConfigurationDetails;
6757
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, updateAwrHubRequest.retryConfiguration, specRetryConfiguration);
6758
+ if (this.logger)
6759
+ retrier.logger = this.logger;
6760
+ const request = yield oci_common_1.composeRequest({
6761
+ baseEndpoint: this._endpoint,
6762
+ defaultHeaders: this._defaultHeaders,
6763
+ path: "/awrHubs/{awrHubId}",
6764
+ method: "PUT",
6765
+ bodyContent: common.ObjectSerializer.serialize(updateAwrHubRequest.updateAwrHubDetails, "UpdateAwrHubDetails", model.UpdateAwrHubDetails.getJsonObj),
6766
+ pathParams: pathParams,
6767
+ headerParams: headerParams,
6768
+ queryParams: queryParams
6769
+ });
6770
+ try {
6771
+ const response = yield retrier.makeServiceCall(this._httpClient, request);
6772
+ const sdkResponse = oci_common_1.composeResponse({
6773
+ responseObject: {},
6774
+ responseHeaders: [
6775
+ {
6776
+ value: response.headers.get("opc-work-request-id"),
6777
+ key: "opcWorkRequestId",
6778
+ dataType: "string"
6779
+ },
6780
+ {
6781
+ value: response.headers.get("opc-request-id"),
6782
+ key: "opcRequestId",
6783
+ dataType: "string"
6784
+ }
6785
+ ]
6786
+ });
6787
+ return sdkResponse;
6788
+ }
6789
+ catch (err) {
6790
+ throw err;
6791
+ }
6792
+ });
6793
+ }
5422
6794
  /**
5423
6795
  * Updates configuration of a database insight.
5424
6796
  * This operation does not retry by default if the user has not defined a retry configuration.
5425
6797
  * @param UpdateDatabaseInsightRequest
5426
6798
  * @return UpdateDatabaseInsightResponse
5427
6799
  * @throws OciError when an error occurs
5428
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.7.0/opsi/UpdateDatabaseInsight.ts.html |here} to see how to use UpdateDatabaseInsight API.
6800
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.10.0/opsi/UpdateDatabaseInsight.ts.html |here} to see how to use UpdateDatabaseInsight API.
5429
6801
  */
5430
6802
  updateDatabaseInsight(updateDatabaseInsightRequest) {
5431
6803
  return __awaiter(this, void 0, void 0, function* () {
@@ -5484,7 +6856,7 @@ class OperationsInsightsClient {
5484
6856
  * @param UpdateEnterpriseManagerBridgeRequest
5485
6857
  * @return UpdateEnterpriseManagerBridgeResponse
5486
6858
  * @throws OciError when an error occurs
5487
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.7.0/opsi/UpdateEnterpriseManagerBridge.ts.html |here} to see how to use UpdateEnterpriseManagerBridge API.
6859
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.10.0/opsi/UpdateEnterpriseManagerBridge.ts.html |here} to see how to use UpdateEnterpriseManagerBridge API.
5488
6860
  */
5489
6861
  updateEnterpriseManagerBridge(updateEnterpriseManagerBridgeRequest) {
5490
6862
  return __awaiter(this, void 0, void 0, function* () {
@@ -5543,7 +6915,7 @@ class OperationsInsightsClient {
5543
6915
  * @param UpdateExadataInsightRequest
5544
6916
  * @return UpdateExadataInsightResponse
5545
6917
  * @throws OciError when an error occurs
5546
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.7.0/opsi/UpdateExadataInsight.ts.html |here} to see how to use UpdateExadataInsight API.
6918
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.10.0/opsi/UpdateExadataInsight.ts.html |here} to see how to use UpdateExadataInsight API.
5547
6919
  */
5548
6920
  updateExadataInsight(updateExadataInsightRequest) {
5549
6921
  return __awaiter(this, void 0, void 0, function* () {
@@ -5602,7 +6974,7 @@ class OperationsInsightsClient {
5602
6974
  * @param UpdateHostInsightRequest
5603
6975
  * @return UpdateHostInsightResponse
5604
6976
  * @throws OciError when an error occurs
5605
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.7.0/opsi/UpdateHostInsight.ts.html |here} to see how to use UpdateHostInsight API.
6977
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.10.0/opsi/UpdateHostInsight.ts.html |here} to see how to use UpdateHostInsight API.
5606
6978
  */
5607
6979
  updateHostInsight(updateHostInsightRequest) {
5608
6980
  return __awaiter(this, void 0, void 0, function* () {
@@ -5655,6 +7027,126 @@ class OperationsInsightsClient {
5655
7027
  }
5656
7028
  });
5657
7029
  }
7030
+ /**
7031
+ * Updates the configuration of an Operations Insights Warehouse.
7032
+ * There is only expected to be 1 warehouse per tenant. The warehouse is expected to be in the root compartment.
7033
+ *
7034
+ * This operation does not retry by default if the user has not defined a retry configuration.
7035
+ * @param UpdateOperationsInsightsWarehouseRequest
7036
+ * @return UpdateOperationsInsightsWarehouseResponse
7037
+ * @throws OciError when an error occurs
7038
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.10.0/opsi/UpdateOperationsInsightsWarehouse.ts.html |here} to see how to use UpdateOperationsInsightsWarehouse API.
7039
+ */
7040
+ updateOperationsInsightsWarehouse(updateOperationsInsightsWarehouseRequest) {
7041
+ return __awaiter(this, void 0, void 0, function* () {
7042
+ if (this.logger)
7043
+ this.logger.debug("Calling operation OperationsInsightsClient#updateOperationsInsightsWarehouse.");
7044
+ const pathParams = {
7045
+ "{operationsInsightsWarehouseId}": updateOperationsInsightsWarehouseRequest.operationsInsightsWarehouseId
7046
+ };
7047
+ const queryParams = {};
7048
+ let headerParams = {
7049
+ "Content-Type": common.Constants.APPLICATION_JSON,
7050
+ "if-match": updateOperationsInsightsWarehouseRequest.ifMatch,
7051
+ "opc-request-id": updateOperationsInsightsWarehouseRequest.opcRequestId
7052
+ };
7053
+ const specRetryConfiguration = common.NoRetryConfigurationDetails;
7054
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, updateOperationsInsightsWarehouseRequest.retryConfiguration, specRetryConfiguration);
7055
+ if (this.logger)
7056
+ retrier.logger = this.logger;
7057
+ const request = yield oci_common_1.composeRequest({
7058
+ baseEndpoint: this._endpoint,
7059
+ defaultHeaders: this._defaultHeaders,
7060
+ path: "/operationsInsightsWarehouses/{operationsInsightsWarehouseId}",
7061
+ method: "PUT",
7062
+ bodyContent: common.ObjectSerializer.serialize(updateOperationsInsightsWarehouseRequest.updateOperationsInsightsWarehouseDetails, "UpdateOperationsInsightsWarehouseDetails", model.UpdateOperationsInsightsWarehouseDetails.getJsonObj),
7063
+ pathParams: pathParams,
7064
+ headerParams: headerParams,
7065
+ queryParams: queryParams
7066
+ });
7067
+ try {
7068
+ const response = yield retrier.makeServiceCall(this._httpClient, request);
7069
+ const sdkResponse = oci_common_1.composeResponse({
7070
+ responseObject: {},
7071
+ responseHeaders: [
7072
+ {
7073
+ value: response.headers.get("opc-work-request-id"),
7074
+ key: "opcWorkRequestId",
7075
+ dataType: "string"
7076
+ },
7077
+ {
7078
+ value: response.headers.get("opc-request-id"),
7079
+ key: "opcRequestId",
7080
+ dataType: "string"
7081
+ }
7082
+ ]
7083
+ });
7084
+ return sdkResponse;
7085
+ }
7086
+ catch (err) {
7087
+ throw err;
7088
+ }
7089
+ });
7090
+ }
7091
+ /**
7092
+ * Updates the configuration of an Operations Insights Warehouse User.
7093
+ * This operation does not retry by default if the user has not defined a retry configuration.
7094
+ * @param UpdateOperationsInsightsWarehouseUserRequest
7095
+ * @return UpdateOperationsInsightsWarehouseUserResponse
7096
+ * @throws OciError when an error occurs
7097
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.10.0/opsi/UpdateOperationsInsightsWarehouseUser.ts.html |here} to see how to use UpdateOperationsInsightsWarehouseUser API.
7098
+ */
7099
+ updateOperationsInsightsWarehouseUser(updateOperationsInsightsWarehouseUserRequest) {
7100
+ return __awaiter(this, void 0, void 0, function* () {
7101
+ if (this.logger)
7102
+ this.logger.debug("Calling operation OperationsInsightsClient#updateOperationsInsightsWarehouseUser.");
7103
+ const pathParams = {
7104
+ "{operationsInsightsWarehouseUserId}": updateOperationsInsightsWarehouseUserRequest.operationsInsightsWarehouseUserId
7105
+ };
7106
+ const queryParams = {};
7107
+ let headerParams = {
7108
+ "Content-Type": common.Constants.APPLICATION_JSON,
7109
+ "if-match": updateOperationsInsightsWarehouseUserRequest.ifMatch,
7110
+ "opc-request-id": updateOperationsInsightsWarehouseUserRequest.opcRequestId
7111
+ };
7112
+ const specRetryConfiguration = common.NoRetryConfigurationDetails;
7113
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, updateOperationsInsightsWarehouseUserRequest.retryConfiguration, specRetryConfiguration);
7114
+ if (this.logger)
7115
+ retrier.logger = this.logger;
7116
+ const request = yield oci_common_1.composeRequest({
7117
+ baseEndpoint: this._endpoint,
7118
+ defaultHeaders: this._defaultHeaders,
7119
+ path: "/operationsInsightsWarehouseUsers/{operationsInsightsWarehouseUserId}",
7120
+ method: "PUT",
7121
+ bodyContent: common.ObjectSerializer.serialize(updateOperationsInsightsWarehouseUserRequest.updateOperationsInsightsWarehouseUserDetails, "UpdateOperationsInsightsWarehouseUserDetails", model.UpdateOperationsInsightsWarehouseUserDetails.getJsonObj),
7122
+ pathParams: pathParams,
7123
+ headerParams: headerParams,
7124
+ queryParams: queryParams
7125
+ });
7126
+ try {
7127
+ const response = yield retrier.makeServiceCall(this._httpClient, request);
7128
+ const sdkResponse = oci_common_1.composeResponse({
7129
+ responseObject: {},
7130
+ responseHeaders: [
7131
+ {
7132
+ value: response.headers.get("opc-work-request-id"),
7133
+ key: "opcWorkRequestId",
7134
+ dataType: "string"
7135
+ },
7136
+ {
7137
+ value: response.headers.get("opc-request-id"),
7138
+ key: "opcRequestId",
7139
+ dataType: "string"
7140
+ }
7141
+ ]
7142
+ });
7143
+ return sdkResponse;
7144
+ }
7145
+ catch (err) {
7146
+ throw err;
7147
+ }
7148
+ });
7149
+ }
5658
7150
  }
5659
7151
  exports.OperationsInsightsClient = OperationsInsightsClient;
5660
7152
  OperationsInsightsClient.serviceEndpointTemplate = "https://operationsinsights.{region}.oci.{secondLevelDomain}";