oci-datasafe 2.3.1 → 2.5.2

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 (345) hide show
  1. package/LICENSE.txt +6 -0
  2. package/lib/client.d.ts +664 -29
  3. package/lib/client.js +2905 -556
  4. package/lib/client.js.map +1 -1
  5. package/lib/datasafe-waiter.d.ts +32 -0
  6. package/lib/datasafe-waiter.js +48 -0
  7. package/lib/datasafe-waiter.js.map +1 -1
  8. package/lib/model/change-security-assessment-compartment-details.d.ts +26 -0
  9. package/lib/model/change-security-assessment-compartment-details.js +29 -0
  10. package/lib/model/change-security-assessment-compartment-details.js.map +1 -0
  11. package/lib/model/change-user-assessment-compartment-details.d.ts +26 -0
  12. package/lib/model/change-user-assessment-compartment-details.js +29 -0
  13. package/lib/model/change-user-assessment-compartment-details.js.map +1 -0
  14. package/lib/model/compare-security-assessment-details.d.ts +26 -0
  15. package/lib/model/compare-security-assessment-details.js +29 -0
  16. package/lib/model/compare-security-assessment-details.js.map +1 -0
  17. package/lib/model/compare-user-assessment-details.d.ts +26 -0
  18. package/lib/model/compare-user-assessment-details.js +29 -0
  19. package/lib/model/compare-user-assessment-details.js.map +1 -0
  20. package/lib/model/create-security-assessment-details.d.ts +77 -0
  21. package/lib/model/create-security-assessment-details.js +29 -0
  22. package/lib/model/create-security-assessment-details.js.map +1 -0
  23. package/lib/model/create-user-assessment-details.d.ts +77 -0
  24. package/lib/model/create-user-assessment-details.js +29 -0
  25. package/lib/model/create-user-assessment-details.js.map +1 -0
  26. package/lib/model/diffs.d.ts +55 -0
  27. package/lib/model/diffs.js +69 -0
  28. package/lib/model/diffs.js.map +1 -0
  29. package/lib/model/download-security-assessment-report-details.d.ts +29 -0
  30. package/lib/model/download-security-assessment-report-details.js +34 -0
  31. package/lib/model/download-security-assessment-report-details.js.map +1 -0
  32. package/lib/model/download-user-assessment-report-details.d.ts +29 -0
  33. package/lib/model/download-user-assessment-report-details.js +34 -0
  34. package/lib/model/download-user-assessment-report-details.js.map +1 -0
  35. package/lib/model/finding-summary.d.ts +71 -0
  36. package/lib/model/finding-summary.js +69 -0
  37. package/lib/model/finding-summary.js.map +1 -0
  38. package/lib/model/finding.d.ts +63 -0
  39. package/lib/model/finding.js +69 -0
  40. package/lib/model/finding.js.map +1 -0
  41. package/lib/model/generate-security-assessment-report-details.d.ts +29 -0
  42. package/lib/model/generate-security-assessment-report-details.js +34 -0
  43. package/lib/model/generate-security-assessment-report-details.js.map +1 -0
  44. package/lib/model/generate-user-assessment-report-details.d.ts +29 -0
  45. package/lib/model/generate-user-assessment-report-details.js +34 -0
  46. package/lib/model/generate-user-assessment-report-details.js.map +1 -0
  47. package/lib/model/grant-summary.d.ts +66 -0
  48. package/lib/model/grant-summary.js +53 -0
  49. package/lib/model/grant-summary.js.map +1 -0
  50. package/lib/model/index.d.ts +76 -0
  51. package/lib/model/index.js +78 -1
  52. package/lib/model/index.js.map +1 -1
  53. package/lib/model/initialization-parameter.d.ts +29 -0
  54. package/lib/model/initialization-parameter.js +29 -0
  55. package/lib/model/initialization-parameter.js.map +1 -0
  56. package/lib/model/installed-database-details.d.ts +1 -1
  57. package/lib/model/profile-details.d.ts +66 -0
  58. package/lib/model/profile-details.js +29 -0
  59. package/lib/model/profile-details.js.map +1 -0
  60. package/lib/model/references.d.ts +33 -0
  61. package/lib/model/references.js +29 -0
  62. package/lib/model/references.js.map +1 -0
  63. package/lib/model/run-security-assessment-details.d.ts +49 -0
  64. package/lib/model/run-security-assessment-details.js +29 -0
  65. package/lib/model/run-security-assessment-details.js.map +1 -0
  66. package/lib/model/run-user-assessment-details.d.ts +53 -0
  67. package/lib/model/run-user-assessment-details.js +29 -0
  68. package/lib/model/run-user-assessment-details.js.map +1 -0
  69. package/lib/model/section-statistics.d.ts +53 -0
  70. package/lib/model/section-statistics.js +29 -0
  71. package/lib/model/section-statistics.js.map +1 -0
  72. package/lib/model/security-assessment-base-line-details.d.ts +25 -0
  73. package/lib/model/security-assessment-base-line-details.js +29 -0
  74. package/lib/model/security-assessment-base-line-details.js.map +1 -0
  75. package/lib/model/security-assessment-comparison-per-target.d.ts +59 -0
  76. package/lib/model/security-assessment-comparison-per-target.js +121 -0
  77. package/lib/model/security-assessment-comparison-per-target.js.map +1 -0
  78. package/lib/model/security-assessment-comparison.d.ts +53 -0
  79. package/lib/model/security-assessment-comparison.js +72 -0
  80. package/lib/model/security-assessment-comparison.js.map +1 -0
  81. package/lib/model/security-assessment-lifecycle-state.d.ts +31 -0
  82. package/lib/model/security-assessment-lifecycle-state.js +42 -0
  83. package/lib/model/security-assessment-lifecycle-state.js.map +1 -0
  84. package/lib/model/security-assessment-statistics.d.ts +38 -0
  85. package/lib/model/security-assessment-statistics.js +75 -0
  86. package/lib/model/security-assessment-statistics.js.map +1 -0
  87. package/lib/model/security-assessment-summary.d.ts +165 -0
  88. package/lib/model/security-assessment-summary.js +79 -0
  89. package/lib/model/security-assessment-summary.js.map +1 -0
  90. package/lib/model/security-assessment.d.ts +183 -0
  91. package/lib/model/security-assessment.js +79 -0
  92. package/lib/model/security-assessment.js.map +1 -0
  93. package/lib/model/sort-orders.d.ts +23 -0
  94. package/lib/model/sort-orders.js +34 -0
  95. package/lib/model/sort-orders.js.map +1 -0
  96. package/lib/model/update-security-assessment-details.d.ts +67 -0
  97. package/lib/model/update-security-assessment-details.js +29 -0
  98. package/lib/model/update-security-assessment-details.js.map +1 -0
  99. package/lib/model/update-user-assessment-details.d.ts +67 -0
  100. package/lib/model/update-user-assessment-details.js +29 -0
  101. package/lib/model/update-user-assessment-details.js.map +1 -0
  102. package/lib/model/user-aggregation.d.ts +29 -0
  103. package/lib/model/user-aggregation.js +29 -0
  104. package/lib/model/user-aggregation.js.map +1 -0
  105. package/lib/model/user-assessment-base-line-details.d.ts +25 -0
  106. package/lib/model/user-assessment-base-line-details.js +29 -0
  107. package/lib/model/user-assessment-base-line-details.js.map +1 -0
  108. package/lib/model/user-assessment-comparison.d.ts +45 -0
  109. package/lib/model/user-assessment-comparison.js +40 -0
  110. package/lib/model/user-assessment-comparison.js.map +1 -0
  111. package/lib/model/user-assessment-lifecycle-state.d.ts +31 -0
  112. package/lib/model/user-assessment-lifecycle-state.js +42 -0
  113. package/lib/model/user-assessment-lifecycle-state.js.map +1 -0
  114. package/lib/model/user-assessment-summary.d.ts +169 -0
  115. package/lib/model/user-assessment-summary.js +51 -0
  116. package/lib/model/user-assessment-summary.js.map +1 -0
  117. package/lib/model/user-assessment.d.ts +179 -0
  118. package/lib/model/user-assessment.js +51 -0
  119. package/lib/model/user-assessment.js.map +1 -0
  120. package/lib/model/user-details.d.ts +50 -0
  121. package/lib/model/user-details.js +34 -0
  122. package/lib/model/user-details.js.map +1 -0
  123. package/lib/model/user-summary.d.ts +134 -0
  124. package/lib/model/user-summary.js +89 -0
  125. package/lib/model/user-summary.js.map +1 -0
  126. package/lib/model/work-request-summary.d.ts +23 -0
  127. package/lib/model/work-request-summary.js +23 -0
  128. package/lib/model/work-request-summary.js.map +1 -1
  129. package/lib/model/work-request.d.ts +23 -0
  130. package/lib/model/work-request.js +23 -0
  131. package/lib/model/work-request.js.map +1 -1
  132. package/lib/request/activate-target-database-request.d.ts +1 -1
  133. package/lib/request/change-data-safe-private-endpoint-compartment-request.d.ts +1 -1
  134. package/lib/request/change-on-prem-connector-compartment-request.d.ts +1 -1
  135. package/lib/request/change-security-assessment-compartment-request.d.ts +48 -0
  136. package/lib/request/change-security-assessment-compartment-request.js +15 -0
  137. package/lib/request/change-security-assessment-compartment-request.js.map +1 -0
  138. package/lib/request/change-target-database-compartment-request.d.ts +1 -1
  139. package/lib/request/change-user-assessment-compartment-request.d.ts +48 -0
  140. package/lib/request/change-user-assessment-compartment-request.js +15 -0
  141. package/lib/request/change-user-assessment-compartment-request.js.map +1 -0
  142. package/lib/request/compare-security-assessment-request.d.ts +48 -0
  143. package/lib/request/compare-security-assessment-request.js +15 -0
  144. package/lib/request/compare-security-assessment-request.js.map +1 -0
  145. package/lib/request/compare-user-assessment-request.d.ts +48 -0
  146. package/lib/request/compare-user-assessment-request.js +15 -0
  147. package/lib/request/compare-user-assessment-request.js.map +1 -0
  148. package/lib/request/create-data-safe-private-endpoint-request.d.ts +1 -1
  149. package/lib/request/create-on-prem-connector-request.d.ts +1 -1
  150. package/lib/request/create-security-assessment-request.d.ts +35 -0
  151. package/lib/request/create-security-assessment-request.js +15 -0
  152. package/lib/request/create-security-assessment-request.js.map +1 -0
  153. package/lib/request/create-target-database-request.d.ts +1 -1
  154. package/lib/request/create-user-assessment-request.d.ts +35 -0
  155. package/lib/request/create-user-assessment-request.js +15 -0
  156. package/lib/request/create-user-assessment-request.js.map +1 -0
  157. package/lib/request/deactivate-target-database-request.d.ts +1 -1
  158. package/lib/request/delete-data-safe-private-endpoint-request.d.ts +1 -1
  159. package/lib/request/delete-on-prem-connector-request.d.ts +1 -1
  160. package/lib/request/delete-security-assessment-request.d.ts +35 -0
  161. package/lib/request/delete-security-assessment-request.js +15 -0
  162. package/lib/request/delete-security-assessment-request.js.map +1 -0
  163. package/lib/request/delete-target-database-request.d.ts +1 -1
  164. package/lib/request/delete-user-assessment-request.d.ts +35 -0
  165. package/lib/request/delete-user-assessment-request.js +15 -0
  166. package/lib/request/delete-user-assessment-request.js.map +1 -0
  167. package/lib/request/download-privilege-script-request.d.ts +1 -1
  168. package/lib/request/download-security-assessment-report-request.d.ts +48 -0
  169. package/lib/request/download-security-assessment-report-request.js +15 -0
  170. package/lib/request/download-security-assessment-report-request.js.map +1 -0
  171. package/lib/request/download-user-assessment-report-request.d.ts +48 -0
  172. package/lib/request/download-user-assessment-report-request.js +15 -0
  173. package/lib/request/download-user-assessment-report-request.js.map +1 -0
  174. package/lib/request/enable-data-safe-configuration-request.d.ts +1 -1
  175. package/lib/request/generate-on-prem-connector-configuration-request.d.ts +1 -1
  176. package/lib/request/generate-security-assessment-report-request.d.ts +48 -0
  177. package/lib/request/generate-security-assessment-report-request.js +15 -0
  178. package/lib/request/generate-security-assessment-report-request.js.map +1 -0
  179. package/lib/request/generate-user-assessment-report-request.d.ts +48 -0
  180. package/lib/request/generate-user-assessment-report-request.js +15 -0
  181. package/lib/request/generate-user-assessment-report-request.js.map +1 -0
  182. package/lib/request/get-data-safe-configuration-request.d.ts +1 -1
  183. package/lib/request/get-data-safe-private-endpoint-request.d.ts +1 -1
  184. package/lib/request/get-on-prem-connector-request.d.ts +1 -1
  185. package/lib/request/get-security-assessment-comparison-request.d.ts +30 -0
  186. package/lib/request/get-security-assessment-comparison-request.js +15 -0
  187. package/lib/request/get-security-assessment-comparison-request.js.map +1 -0
  188. package/lib/request/get-security-assessment-request.d.ts +26 -0
  189. package/lib/request/get-security-assessment-request.js +15 -0
  190. package/lib/request/get-security-assessment-request.js.map +1 -0
  191. package/lib/request/get-target-database-request.d.ts +1 -1
  192. package/lib/request/get-user-assessment-comparison-request.d.ts +30 -0
  193. package/lib/request/get-user-assessment-comparison-request.js +15 -0
  194. package/lib/request/get-user-assessment-comparison-request.js.map +1 -0
  195. package/lib/request/get-user-assessment-request.d.ts +26 -0
  196. package/lib/request/get-user-assessment-request.js +15 -0
  197. package/lib/request/get-user-assessment-request.js.map +1 -0
  198. package/lib/request/get-work-request-request.d.ts +1 -1
  199. package/lib/request/index.d.ts +60 -0
  200. package/lib/request/index.js +13 -1
  201. package/lib/request/index.js.map +1 -1
  202. package/lib/request/list-data-safe-private-endpoints-request.d.ts +1 -1
  203. package/lib/request/list-findings-request.d.ts +70 -0
  204. package/lib/request/list-findings-request.js +33 -0
  205. package/lib/request/list-findings-request.js.map +1 -0
  206. package/lib/request/list-grants-request.d.ts +88 -0
  207. package/lib/request/list-grants-request.js +32 -0
  208. package/lib/request/list-grants-request.js.map +1 -0
  209. package/lib/request/list-on-prem-connectors-request.d.ts +1 -1
  210. package/lib/request/list-security-assessments-request.d.ts +135 -0
  211. package/lib/request/list-security-assessments-request.js +46 -0
  212. package/lib/request/list-security-assessments-request.js.map +1 -0
  213. package/lib/request/list-target-databases-request.d.ts +1 -1
  214. package/lib/request/list-user-analytics-request.d.ts +140 -0
  215. package/lib/request/list-user-analytics-request.js +40 -0
  216. package/lib/request/list-user-analytics-request.js.map +1 -0
  217. package/lib/request/list-user-assessments-request.d.ts +135 -0
  218. package/lib/request/list-user-assessments-request.js +46 -0
  219. package/lib/request/list-user-assessments-request.js.map +1 -0
  220. package/lib/request/list-users-request.d.ts +140 -0
  221. package/lib/request/list-users-request.js +40 -0
  222. package/lib/request/list-users-request.js.map +1 -0
  223. package/lib/request/list-work-request-errors-request.d.ts +1 -1
  224. package/lib/request/list-work-request-logs-request.d.ts +1 -1
  225. package/lib/request/list-work-requests-request.d.ts +1 -1
  226. package/lib/request/refresh-security-assessment-request.d.ts +48 -0
  227. package/lib/request/refresh-security-assessment-request.js +15 -0
  228. package/lib/request/refresh-security-assessment-request.js.map +1 -0
  229. package/lib/request/refresh-user-assessment-request.d.ts +48 -0
  230. package/lib/request/refresh-user-assessment-request.js +15 -0
  231. package/lib/request/refresh-user-assessment-request.js.map +1 -0
  232. package/lib/request/set-security-assessment-baseline-request.d.ts +48 -0
  233. package/lib/request/set-security-assessment-baseline-request.js +15 -0
  234. package/lib/request/set-security-assessment-baseline-request.js.map +1 -0
  235. package/lib/request/set-user-assessment-baseline-request.d.ts +48 -0
  236. package/lib/request/set-user-assessment-baseline-request.js +15 -0
  237. package/lib/request/set-user-assessment-baseline-request.js.map +1 -0
  238. package/lib/request/unset-security-assessment-baseline-request.d.ts +43 -0
  239. package/lib/request/unset-security-assessment-baseline-request.js +15 -0
  240. package/lib/request/unset-security-assessment-baseline-request.js.map +1 -0
  241. package/lib/request/unset-user-assessment-baseline-request.d.ts +43 -0
  242. package/lib/request/unset-user-assessment-baseline-request.js +15 -0
  243. package/lib/request/unset-user-assessment-baseline-request.js.map +1 -0
  244. package/lib/request/update-data-safe-private-endpoint-request.d.ts +1 -1
  245. package/lib/request/update-on-prem-connector-request.d.ts +1 -1
  246. package/lib/request/update-on-prem-connector-wallet-request.d.ts +1 -1
  247. package/lib/request/update-security-assessment-request.d.ts +40 -0
  248. package/lib/request/update-security-assessment-request.js +15 -0
  249. package/lib/request/update-security-assessment-request.js.map +1 -0
  250. package/lib/request/update-target-database-request.d.ts +1 -1
  251. package/lib/request/update-user-assessment-request.d.ts +40 -0
  252. package/lib/request/update-user-assessment-request.js +15 -0
  253. package/lib/request/update-user-assessment-request.js.map +1 -0
  254. package/lib/response/change-security-assessment-compartment-response.d.ts +19 -0
  255. package/lib/response/change-security-assessment-compartment-response.js +15 -0
  256. package/lib/response/change-security-assessment-compartment-response.js.map +1 -0
  257. package/lib/response/change-user-assessment-compartment-response.d.ts +19 -0
  258. package/lib/response/change-user-assessment-compartment-response.js +15 -0
  259. package/lib/response/change-user-assessment-compartment-response.js.map +1 -0
  260. package/lib/response/compare-security-assessment-response.d.ts +24 -0
  261. package/lib/response/compare-security-assessment-response.js +15 -0
  262. package/lib/response/compare-security-assessment-response.js.map +1 -0
  263. package/lib/response/compare-user-assessment-response.d.ts +24 -0
  264. package/lib/response/compare-user-assessment-response.js +15 -0
  265. package/lib/response/compare-user-assessment-response.js.map +1 -0
  266. package/lib/response/create-security-assessment-response.d.ts +39 -0
  267. package/lib/response/create-security-assessment-response.js +15 -0
  268. package/lib/response/create-security-assessment-response.js.map +1 -0
  269. package/lib/response/create-user-assessment-response.d.ts +39 -0
  270. package/lib/response/create-user-assessment-response.js +15 -0
  271. package/lib/response/create-user-assessment-response.js.map +1 -0
  272. package/lib/response/delete-security-assessment-response.d.ts +24 -0
  273. package/lib/response/delete-security-assessment-response.js +15 -0
  274. package/lib/response/delete-security-assessment-response.js.map +1 -0
  275. package/lib/response/delete-user-assessment-response.d.ts +24 -0
  276. package/lib/response/delete-user-assessment-response.js +15 -0
  277. package/lib/response/delete-user-assessment-response.js.map +1 -0
  278. package/lib/response/download-security-assessment-report-response.d.ts +34 -0
  279. package/lib/response/download-security-assessment-report-response.js +15 -0
  280. package/lib/response/download-security-assessment-report-response.js.map +1 -0
  281. package/lib/response/download-user-assessment-report-response.d.ts +34 -0
  282. package/lib/response/download-user-assessment-report-response.js +15 -0
  283. package/lib/response/download-user-assessment-report-response.js.map +1 -0
  284. package/lib/response/generate-security-assessment-report-response.d.ts +24 -0
  285. package/lib/response/generate-security-assessment-report-response.js +15 -0
  286. package/lib/response/generate-security-assessment-report-response.js.map +1 -0
  287. package/lib/response/generate-user-assessment-report-response.d.ts +24 -0
  288. package/lib/response/generate-user-assessment-report-response.js +15 -0
  289. package/lib/response/generate-user-assessment-report-response.js.map +1 -0
  290. package/lib/response/get-security-assessment-comparison-response.d.ts +29 -0
  291. package/lib/response/get-security-assessment-comparison-response.js +15 -0
  292. package/lib/response/get-security-assessment-comparison-response.js.map +1 -0
  293. package/lib/response/get-security-assessment-response.d.ts +29 -0
  294. package/lib/response/get-security-assessment-response.js +15 -0
  295. package/lib/response/get-security-assessment-response.js.map +1 -0
  296. package/lib/response/get-user-assessment-comparison-response.d.ts +24 -0
  297. package/lib/response/get-user-assessment-comparison-response.js +15 -0
  298. package/lib/response/get-user-assessment-comparison-response.js.map +1 -0
  299. package/lib/response/get-user-assessment-response.d.ts +29 -0
  300. package/lib/response/get-user-assessment-response.js +15 -0
  301. package/lib/response/get-user-assessment-response.js.map +1 -0
  302. package/lib/response/index.d.ts +60 -0
  303. package/lib/response/list-findings-response.d.ts +36 -0
  304. package/lib/response/list-findings-response.js +15 -0
  305. package/lib/response/list-findings-response.js.map +1 -0
  306. package/lib/response/list-grants-response.d.ts +36 -0
  307. package/lib/response/list-grants-response.js +15 -0
  308. package/lib/response/list-grants-response.js.map +1 -0
  309. package/lib/response/list-security-assessments-response.d.ts +36 -0
  310. package/lib/response/list-security-assessments-response.js +15 -0
  311. package/lib/response/list-security-assessments-response.js.map +1 -0
  312. package/lib/response/list-user-analytics-response.d.ts +29 -0
  313. package/lib/response/list-user-analytics-response.js +15 -0
  314. package/lib/response/list-user-analytics-response.js.map +1 -0
  315. package/lib/response/list-user-assessments-response.d.ts +36 -0
  316. package/lib/response/list-user-assessments-response.js +15 -0
  317. package/lib/response/list-user-assessments-response.js.map +1 -0
  318. package/lib/response/list-users-response.d.ts +36 -0
  319. package/lib/response/list-users-response.js +15 -0
  320. package/lib/response/list-users-response.js.map +1 -0
  321. package/lib/response/refresh-security-assessment-response.d.ts +24 -0
  322. package/lib/response/refresh-security-assessment-response.js +15 -0
  323. package/lib/response/refresh-security-assessment-response.js.map +1 -0
  324. package/lib/response/refresh-user-assessment-response.d.ts +24 -0
  325. package/lib/response/refresh-user-assessment-response.js +15 -0
  326. package/lib/response/refresh-user-assessment-response.js.map +1 -0
  327. package/lib/response/set-security-assessment-baseline-response.d.ts +24 -0
  328. package/lib/response/set-security-assessment-baseline-response.js +15 -0
  329. package/lib/response/set-security-assessment-baseline-response.js.map +1 -0
  330. package/lib/response/set-user-assessment-baseline-response.d.ts +24 -0
  331. package/lib/response/set-user-assessment-baseline-response.js +15 -0
  332. package/lib/response/set-user-assessment-baseline-response.js.map +1 -0
  333. package/lib/response/unset-security-assessment-baseline-response.d.ts +24 -0
  334. package/lib/response/unset-security-assessment-baseline-response.js +15 -0
  335. package/lib/response/unset-security-assessment-baseline-response.js.map +1 -0
  336. package/lib/response/unset-user-assessment-baseline-response.d.ts +24 -0
  337. package/lib/response/unset-user-assessment-baseline-response.js +15 -0
  338. package/lib/response/unset-user-assessment-baseline-response.js.map +1 -0
  339. package/lib/response/update-security-assessment-response.d.ts +24 -0
  340. package/lib/response/update-security-assessment-response.js +15 -0
  341. package/lib/response/update-security-assessment-response.js.map +1 -0
  342. package/lib/response/update-user-assessment-response.d.ts +24 -0
  343. package/lib/response/update-user-assessment-response.js +15 -0
  344. package/lib/response/update-user-assessment-response.js.map +1 -0
  345. package/package.json +3 -3
package/lib/client.js CHANGED
@@ -141,7 +141,7 @@ class DataSafeClient {
141
141
  * @param ActivateTargetDatabaseRequest
142
142
  * @return ActivateTargetDatabaseResponse
143
143
  * @throws OciError when an error occurs
144
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.3.1/datasafe/ActivateTargetDatabase.ts.html |here} to see how to use ActivateTargetDatabase API.
144
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.5.2/datasafe/ActivateTargetDatabase.ts.html |here} to see how to use ActivateTargetDatabase API.
145
145
  */
146
146
  activateTargetDatabase(activateTargetDatabaseRequest) {
147
147
  return __awaiter(this, void 0, void 0, function* () {
@@ -199,7 +199,7 @@ class DataSafeClient {
199
199
  * @param ChangeDataSafePrivateEndpointCompartmentRequest
200
200
  * @return ChangeDataSafePrivateEndpointCompartmentResponse
201
201
  * @throws OciError when an error occurs
202
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.3.1/datasafe/ChangeDataSafePrivateEndpointCompartment.ts.html |here} to see how to use ChangeDataSafePrivateEndpointCompartment API.
202
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.5.2/datasafe/ChangeDataSafePrivateEndpointCompartment.ts.html |here} to see how to use ChangeDataSafePrivateEndpointCompartment API.
203
203
  */
204
204
  changeDataSafePrivateEndpointCompartment(changeDataSafePrivateEndpointCompartmentRequest) {
205
205
  return __awaiter(this, void 0, void 0, function* () {
@@ -256,7 +256,7 @@ class DataSafeClient {
256
256
  * @param ChangeOnPremConnectorCompartmentRequest
257
257
  * @return ChangeOnPremConnectorCompartmentResponse
258
258
  * @throws OciError when an error occurs
259
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.3.1/datasafe/ChangeOnPremConnectorCompartment.ts.html |here} to see how to use ChangeOnPremConnectorCompartment API.
259
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.5.2/datasafe/ChangeOnPremConnectorCompartment.ts.html |here} to see how to use ChangeOnPremConnectorCompartment API.
260
260
  */
261
261
  changeOnPremConnectorCompartment(changeOnPremConnectorCompartmentRequest) {
262
262
  return __awaiter(this, void 0, void 0, function* () {
@@ -305,35 +305,40 @@ class DataSafeClient {
305
305
  });
306
306
  }
307
307
  /**
308
- * Moves the Data Safe target database to the specified compartment.
309
- * @param ChangeTargetDatabaseCompartmentRequest
310
- * @return ChangeTargetDatabaseCompartmentResponse
311
- * @throws OciError when an error occurs
312
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.3.1/datasafe/ChangeTargetDatabaseCompartment.ts.html |here} to see how to use ChangeTargetDatabaseCompartment API.
313
- */
314
- changeTargetDatabaseCompartment(changeTargetDatabaseCompartmentRequest) {
308
+ * Moves the specified saved security assessment or future scheduled assessments into a different compartment.
309
+ * <p>
310
+ To start, call first the operation ListSecurityAssessments with filters \"type = save_schedule\". This returns the scheduleAssessmentId. Then, call this changeCompartment with the scheduleAssessmentId.
311
+ * <p>
312
+ The existing saved security assessments created due to the schedule are not moved. However, all new saves will be associated with the new compartment.
313
+ *
314
+ * @param ChangeSecurityAssessmentCompartmentRequest
315
+ * @return ChangeSecurityAssessmentCompartmentResponse
316
+ * @throws OciError when an error occurs
317
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.5.2/datasafe/ChangeSecurityAssessmentCompartment.ts.html |here} to see how to use ChangeSecurityAssessmentCompartment API.
318
+ */
319
+ changeSecurityAssessmentCompartment(changeSecurityAssessmentCompartmentRequest) {
315
320
  return __awaiter(this, void 0, void 0, function* () {
316
321
  if (this.logger)
317
- this.logger.debug("Calling operation DataSafeClient#changeTargetDatabaseCompartment.");
322
+ this.logger.debug("Calling operation DataSafeClient#changeSecurityAssessmentCompartment.");
318
323
  const pathParams = {
319
- "{targetDatabaseId}": changeTargetDatabaseCompartmentRequest.targetDatabaseId
324
+ "{securityAssessmentId}": changeSecurityAssessmentCompartmentRequest.securityAssessmentId
320
325
  };
321
326
  const queryParams = {};
322
327
  let headerParams = {
323
328
  "Content-Type": common.Constants.APPLICATION_JSON,
324
- "if-match": changeTargetDatabaseCompartmentRequest.ifMatch,
325
- "opc-request-id": changeTargetDatabaseCompartmentRequest.opcRequestId,
326
- "opc-retry-token": changeTargetDatabaseCompartmentRequest.opcRetryToken
329
+ "opc-request-id": changeSecurityAssessmentCompartmentRequest.opcRequestId,
330
+ "if-match": changeSecurityAssessmentCompartmentRequest.ifMatch,
331
+ "opc-retry-token": changeSecurityAssessmentCompartmentRequest.opcRetryToken
327
332
  };
328
- const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : {}, changeTargetDatabaseCompartmentRequest.retryConfiguration);
333
+ const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : {}, changeSecurityAssessmentCompartmentRequest.retryConfiguration);
329
334
  if (this.logger)
330
335
  retrier.logger = this.logger;
331
336
  const request = yield oci_common_2.composeRequest({
332
337
  baseEndpoint: this._endpoint,
333
338
  defaultHeaders: this._defaultHeaders,
334
- path: "/targetDatabases/{targetDatabaseId}/actions/changeCompartment",
339
+ path: "/securityAssessments/{securityAssessmentId}/actions/changeCompartment",
335
340
  method: "POST",
336
- bodyContent: common.ObjectSerializer.serialize(changeTargetDatabaseCompartmentRequest.changeTargetDatabaseCompartmentDetails, "ChangeTargetDatabaseCompartmentDetails", model.ChangeTargetDatabaseCompartmentDetails.getJsonObj),
341
+ bodyContent: common.ObjectSerializer.serialize(changeSecurityAssessmentCompartmentRequest.changeSecurityAssessmentCompartmentDetails, "ChangeSecurityAssessmentCompartmentDetails", model.ChangeSecurityAssessmentCompartmentDetails.getJsonObj),
337
342
  pathParams: pathParams,
338
343
  headerParams: headerParams,
339
344
  queryParams: queryParams
@@ -358,33 +363,35 @@ class DataSafeClient {
358
363
  });
359
364
  }
360
365
  /**
361
- * Creates a new Data Safe private endpoint.
362
- *
363
- * @param CreateDataSafePrivateEndpointRequest
364
- * @return CreateDataSafePrivateEndpointResponse
366
+ * Moves the Data Safe target database to the specified compartment.
367
+ * @param ChangeTargetDatabaseCompartmentRequest
368
+ * @return ChangeTargetDatabaseCompartmentResponse
365
369
  * @throws OciError when an error occurs
366
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.3.1/datasafe/CreateDataSafePrivateEndpoint.ts.html |here} to see how to use CreateDataSafePrivateEndpoint API.
370
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.5.2/datasafe/ChangeTargetDatabaseCompartment.ts.html |here} to see how to use ChangeTargetDatabaseCompartment API.
367
371
  */
368
- createDataSafePrivateEndpoint(createDataSafePrivateEndpointRequest) {
372
+ changeTargetDatabaseCompartment(changeTargetDatabaseCompartmentRequest) {
369
373
  return __awaiter(this, void 0, void 0, function* () {
370
374
  if (this.logger)
371
- this.logger.debug("Calling operation DataSafeClient#createDataSafePrivateEndpoint.");
372
- const pathParams = {};
375
+ this.logger.debug("Calling operation DataSafeClient#changeTargetDatabaseCompartment.");
376
+ const pathParams = {
377
+ "{targetDatabaseId}": changeTargetDatabaseCompartmentRequest.targetDatabaseId
378
+ };
373
379
  const queryParams = {};
374
380
  let headerParams = {
375
381
  "Content-Type": common.Constants.APPLICATION_JSON,
376
- "opc-retry-token": createDataSafePrivateEndpointRequest.opcRetryToken,
377
- "opc-request-id": createDataSafePrivateEndpointRequest.opcRequestId
382
+ "if-match": changeTargetDatabaseCompartmentRequest.ifMatch,
383
+ "opc-request-id": changeTargetDatabaseCompartmentRequest.opcRequestId,
384
+ "opc-retry-token": changeTargetDatabaseCompartmentRequest.opcRetryToken
378
385
  };
379
- const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : {}, createDataSafePrivateEndpointRequest.retryConfiguration);
386
+ const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : {}, changeTargetDatabaseCompartmentRequest.retryConfiguration);
380
387
  if (this.logger)
381
388
  retrier.logger = this.logger;
382
389
  const request = yield oci_common_2.composeRequest({
383
390
  baseEndpoint: this._endpoint,
384
391
  defaultHeaders: this._defaultHeaders,
385
- path: "/dataSafePrivateEndpoints",
392
+ path: "/targetDatabases/{targetDatabaseId}/actions/changeCompartment",
386
393
  method: "POST",
387
- bodyContent: common.ObjectSerializer.serialize(createDataSafePrivateEndpointRequest.createDataSafePrivateEndpointDetails, "CreateDataSafePrivateEndpointDetails", model.CreateDataSafePrivateEndpointDetails.getJsonObj),
394
+ bodyContent: common.ObjectSerializer.serialize(changeTargetDatabaseCompartmentRequest.changeTargetDatabaseCompartmentDetails, "ChangeTargetDatabaseCompartmentDetails", model.ChangeTargetDatabaseCompartmentDetails.getJsonObj),
388
395
  pathParams: pathParams,
389
396
  headerParams: headerParams,
390
397
  queryParams: queryParams
@@ -393,30 +400,11 @@ class DataSafeClient {
393
400
  const response = yield retrier.makeServiceCall(this._httpClient, request);
394
401
  const sdkResponse = oci_common_2.composeResponse({
395
402
  responseObject: {},
396
- body: yield response.json(),
397
- bodyKey: "dataSafePrivateEndpoint",
398
- bodyModel: model.DataSafePrivateEndpoint,
399
- type: "model.DataSafePrivateEndpoint",
400
403
  responseHeaders: [
401
- {
402
- value: response.headers.get("etag"),
403
- key: "etag",
404
- dataType: "string"
405
- },
406
- {
407
- value: response.headers.get("opc-work-request-id"),
408
- key: "opcWorkRequestId",
409
- dataType: "string"
410
- },
411
404
  {
412
405
  value: response.headers.get("opc-request-id"),
413
406
  key: "opcRequestId",
414
407
  dataType: "string"
415
- },
416
- {
417
- value: response.headers.get("location"),
418
- key: "location",
419
- dataType: "string"
420
408
  }
421
409
  ]
422
410
  });
@@ -428,33 +416,40 @@ class DataSafeClient {
428
416
  });
429
417
  }
430
418
  /**
431
- * Creates a new on-premises connector.
419
+ * Moves the specified saved user assessment or future scheduled assessments into a different compartment.
420
+ * To start storing scheduled user assessments on a different compartment, first call the operation ListUserAssessments with
421
+ * the filters \"type = save_schedule\". That call returns the scheduleAssessmentId. Then call
422
+ * ChangeUserAssessmentCompartment with the scheduleAssessmentId. The existing saved user assessments created per the schedule
423
+ * are not be moved. However, all new saves will be associated with the new compartment.
432
424
  *
433
- * @param CreateOnPremConnectorRequest
434
- * @return CreateOnPremConnectorResponse
425
+ * @param ChangeUserAssessmentCompartmentRequest
426
+ * @return ChangeUserAssessmentCompartmentResponse
435
427
  * @throws OciError when an error occurs
436
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.3.1/datasafe/CreateOnPremConnector.ts.html |here} to see how to use CreateOnPremConnector API.
428
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.5.2/datasafe/ChangeUserAssessmentCompartment.ts.html |here} to see how to use ChangeUserAssessmentCompartment API.
437
429
  */
438
- createOnPremConnector(createOnPremConnectorRequest) {
430
+ changeUserAssessmentCompartment(changeUserAssessmentCompartmentRequest) {
439
431
  return __awaiter(this, void 0, void 0, function* () {
440
432
  if (this.logger)
441
- this.logger.debug("Calling operation DataSafeClient#createOnPremConnector.");
442
- const pathParams = {};
433
+ this.logger.debug("Calling operation DataSafeClient#changeUserAssessmentCompartment.");
434
+ const pathParams = {
435
+ "{userAssessmentId}": changeUserAssessmentCompartmentRequest.userAssessmentId
436
+ };
443
437
  const queryParams = {};
444
438
  let headerParams = {
445
439
  "Content-Type": common.Constants.APPLICATION_JSON,
446
- "opc-retry-token": createOnPremConnectorRequest.opcRetryToken,
447
- "opc-request-id": createOnPremConnectorRequest.opcRequestId
440
+ "if-match": changeUserAssessmentCompartmentRequest.ifMatch,
441
+ "opc-retry-token": changeUserAssessmentCompartmentRequest.opcRetryToken,
442
+ "opc-request-id": changeUserAssessmentCompartmentRequest.opcRequestId
448
443
  };
449
- const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : {}, createOnPremConnectorRequest.retryConfiguration);
444
+ const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : {}, changeUserAssessmentCompartmentRequest.retryConfiguration);
450
445
  if (this.logger)
451
446
  retrier.logger = this.logger;
452
447
  const request = yield oci_common_2.composeRequest({
453
448
  baseEndpoint: this._endpoint,
454
449
  defaultHeaders: this._defaultHeaders,
455
- path: "/onPremConnectors",
450
+ path: "/userAssessments/{userAssessmentId}/actions/changeCompartment",
456
451
  method: "POST",
457
- bodyContent: common.ObjectSerializer.serialize(createOnPremConnectorRequest.createOnPremConnectorDetails, "CreateOnPremConnectorDetails", model.CreateOnPremConnectorDetails.getJsonObj),
452
+ bodyContent: common.ObjectSerializer.serialize(changeUserAssessmentCompartmentRequest.changeUserAssessmentCompartmentDetails, "ChangeUserAssessmentCompartmentDetails", model.ChangeUserAssessmentCompartmentDetails.getJsonObj),
458
453
  pathParams: pathParams,
459
454
  headerParams: headerParams,
460
455
  queryParams: queryParams
@@ -463,30 +458,11 @@ class DataSafeClient {
463
458
  const response = yield retrier.makeServiceCall(this._httpClient, request);
464
459
  const sdkResponse = oci_common_2.composeResponse({
465
460
  responseObject: {},
466
- body: yield response.json(),
467
- bodyKey: "onPremConnector",
468
- bodyModel: model.OnPremConnector,
469
- type: "model.OnPremConnector",
470
461
  responseHeaders: [
471
- {
472
- value: response.headers.get("etag"),
473
- key: "etag",
474
- dataType: "string"
475
- },
476
- {
477
- value: response.headers.get("opc-work-request-id"),
478
- key: "opcWorkRequestId",
479
- dataType: "string"
480
- },
481
462
  {
482
463
  value: response.headers.get("opc-request-id"),
483
464
  key: "opcRequestId",
484
465
  dataType: "string"
485
- },
486
- {
487
- value: response.headers.get("location"),
488
- key: "location",
489
- dataType: "string"
490
466
  }
491
467
  ]
492
468
  });
@@ -498,33 +474,37 @@ class DataSafeClient {
498
474
  });
499
475
  }
500
476
  /**
501
- * Registers the specified database with Data Safe and creates a Data Safe target database in the Data Safe Console.
477
+ * Compares two security assessments. For this comparison, a security assessment can be a saved assessment, a latest assessment, or a baseline assessment.
478
+ * For example, you can compare saved assessment or a latest assessment against a baseline.
502
479
  *
503
- * @param CreateTargetDatabaseRequest
504
- * @return CreateTargetDatabaseResponse
480
+ * @param CompareSecurityAssessmentRequest
481
+ * @return CompareSecurityAssessmentResponse
505
482
  * @throws OciError when an error occurs
506
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.3.1/datasafe/CreateTargetDatabase.ts.html |here} to see how to use CreateTargetDatabase API.
483
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.5.2/datasafe/CompareSecurityAssessment.ts.html |here} to see how to use CompareSecurityAssessment API.
507
484
  */
508
- createTargetDatabase(createTargetDatabaseRequest) {
485
+ compareSecurityAssessment(compareSecurityAssessmentRequest) {
509
486
  return __awaiter(this, void 0, void 0, function* () {
510
487
  if (this.logger)
511
- this.logger.debug("Calling operation DataSafeClient#createTargetDatabase.");
512
- const pathParams = {};
488
+ this.logger.debug("Calling operation DataSafeClient#compareSecurityAssessment.");
489
+ const pathParams = {
490
+ "{securityAssessmentId}": compareSecurityAssessmentRequest.securityAssessmentId
491
+ };
513
492
  const queryParams = {};
514
493
  let headerParams = {
515
494
  "Content-Type": common.Constants.APPLICATION_JSON,
516
- "opc-retry-token": createTargetDatabaseRequest.opcRetryToken,
517
- "opc-request-id": createTargetDatabaseRequest.opcRequestId
495
+ "opc-retry-token": compareSecurityAssessmentRequest.opcRetryToken,
496
+ "opc-request-id": compareSecurityAssessmentRequest.opcRequestId,
497
+ "if-match": compareSecurityAssessmentRequest.ifMatch
518
498
  };
519
- const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : {}, createTargetDatabaseRequest.retryConfiguration);
499
+ const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : {}, compareSecurityAssessmentRequest.retryConfiguration);
520
500
  if (this.logger)
521
501
  retrier.logger = this.logger;
522
502
  const request = yield oci_common_2.composeRequest({
523
503
  baseEndpoint: this._endpoint,
524
504
  defaultHeaders: this._defaultHeaders,
525
- path: "/targetDatabases",
505
+ path: "/securityAssessments/{securityAssessmentId}/actions/compare",
526
506
  method: "POST",
527
- bodyContent: common.ObjectSerializer.serialize(createTargetDatabaseRequest.createTargetDatabaseDetails, "CreateTargetDatabaseDetails", model.CreateTargetDatabaseDetails.getJsonObj),
507
+ bodyContent: common.ObjectSerializer.serialize(compareSecurityAssessmentRequest.compareSecurityAssessmentDetails, "CompareSecurityAssessmentDetails", model.CompareSecurityAssessmentDetails.getJsonObj),
528
508
  pathParams: pathParams,
529
509
  headerParams: headerParams,
530
510
  queryParams: queryParams
@@ -533,16 +513,7 @@ class DataSafeClient {
533
513
  const response = yield retrier.makeServiceCall(this._httpClient, request);
534
514
  const sdkResponse = oci_common_2.composeResponse({
535
515
  responseObject: {},
536
- body: yield response.json(),
537
- bodyKey: "targetDatabase",
538
- bodyModel: model.TargetDatabase,
539
- type: "model.TargetDatabase",
540
516
  responseHeaders: [
541
- {
542
- value: response.headers.get("etag"),
543
- key: "etag",
544
- dataType: "string"
545
- },
546
517
  {
547
518
  value: response.headers.get("opc-work-request-id"),
548
519
  key: "opcWorkRequestId",
@@ -552,11 +523,6 @@ class DataSafeClient {
552
523
  value: response.headers.get("opc-request-id"),
553
524
  key: "opcRequestId",
554
525
  dataType: "string"
555
- },
556
- {
557
- value: response.headers.get("location"),
558
- key: "location",
559
- dataType: "string"
560
526
  }
561
527
  ]
562
528
  });
@@ -568,35 +534,37 @@ class DataSafeClient {
568
534
  });
569
535
  }
570
536
  /**
571
- * Deactivates a target database in Data Safe.
537
+ * Compares two user assessments. For this comparison, a user assessment can be a saved, a latest assessment, or a baseline.
538
+ * As an example, it can be used to compare a user assessment saved or a latest assessment with a baseline.
572
539
  *
573
- * @param DeactivateTargetDatabaseRequest
574
- * @return DeactivateTargetDatabaseResponse
540
+ * @param CompareUserAssessmentRequest
541
+ * @return CompareUserAssessmentResponse
575
542
  * @throws OciError when an error occurs
576
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.3.1/datasafe/DeactivateTargetDatabase.ts.html |here} to see how to use DeactivateTargetDatabase API.
543
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.5.2/datasafe/CompareUserAssessment.ts.html |here} to see how to use CompareUserAssessment API.
577
544
  */
578
- deactivateTargetDatabase(deactivateTargetDatabaseRequest) {
545
+ compareUserAssessment(compareUserAssessmentRequest) {
579
546
  return __awaiter(this, void 0, void 0, function* () {
580
547
  if (this.logger)
581
- this.logger.debug("Calling operation DataSafeClient#deactivateTargetDatabase.");
548
+ this.logger.debug("Calling operation DataSafeClient#compareUserAssessment.");
582
549
  const pathParams = {
583
- "{targetDatabaseId}": deactivateTargetDatabaseRequest.targetDatabaseId
550
+ "{userAssessmentId}": compareUserAssessmentRequest.userAssessmentId
584
551
  };
585
552
  const queryParams = {};
586
553
  let headerParams = {
587
554
  "Content-Type": common.Constants.APPLICATION_JSON,
588
- "opc-retry-token": deactivateTargetDatabaseRequest.opcRetryToken,
589
- "if-match": deactivateTargetDatabaseRequest.ifMatch,
590
- "opc-request-id": deactivateTargetDatabaseRequest.opcRequestId
555
+ "opc-retry-token": compareUserAssessmentRequest.opcRetryToken,
556
+ "opc-request-id": compareUserAssessmentRequest.opcRequestId,
557
+ "if-match": compareUserAssessmentRequest.ifMatch
591
558
  };
592
- const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : {}, deactivateTargetDatabaseRequest.retryConfiguration);
559
+ const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : {}, compareUserAssessmentRequest.retryConfiguration);
593
560
  if (this.logger)
594
561
  retrier.logger = this.logger;
595
562
  const request = yield oci_common_2.composeRequest({
596
563
  baseEndpoint: this._endpoint,
597
564
  defaultHeaders: this._defaultHeaders,
598
- path: "/targetDatabases/{targetDatabaseId}/actions/deactivate",
565
+ path: "/userAssessments/{userAssessmentId}/actions/compare",
599
566
  method: "POST",
567
+ bodyContent: common.ObjectSerializer.serialize(compareUserAssessmentRequest.compareUserAssessmentDetails, "CompareUserAssessmentDetails", model.CompareUserAssessmentDetails.getJsonObj),
600
568
  pathParams: pathParams,
601
569
  headerParams: headerParams,
602
570
  queryParams: queryParams
@@ -626,33 +594,33 @@ class DataSafeClient {
626
594
  });
627
595
  }
628
596
  /**
629
- * Deletes the specified Data Safe private endpoint.
630
- * @param DeleteDataSafePrivateEndpointRequest
631
- * @return DeleteDataSafePrivateEndpointResponse
597
+ * Creates a new Data Safe private endpoint.
598
+ *
599
+ * @param CreateDataSafePrivateEndpointRequest
600
+ * @return CreateDataSafePrivateEndpointResponse
632
601
  * @throws OciError when an error occurs
633
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.3.1/datasafe/DeleteDataSafePrivateEndpoint.ts.html |here} to see how to use DeleteDataSafePrivateEndpoint API.
602
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.5.2/datasafe/CreateDataSafePrivateEndpoint.ts.html |here} to see how to use CreateDataSafePrivateEndpoint API.
634
603
  */
635
- deleteDataSafePrivateEndpoint(deleteDataSafePrivateEndpointRequest) {
604
+ createDataSafePrivateEndpoint(createDataSafePrivateEndpointRequest) {
636
605
  return __awaiter(this, void 0, void 0, function* () {
637
606
  if (this.logger)
638
- this.logger.debug("Calling operation DataSafeClient#deleteDataSafePrivateEndpoint.");
639
- const pathParams = {
640
- "{dataSafePrivateEndpointId}": deleteDataSafePrivateEndpointRequest.dataSafePrivateEndpointId
641
- };
607
+ this.logger.debug("Calling operation DataSafeClient#createDataSafePrivateEndpoint.");
608
+ const pathParams = {};
642
609
  const queryParams = {};
643
610
  let headerParams = {
644
611
  "Content-Type": common.Constants.APPLICATION_JSON,
645
- "if-match": deleteDataSafePrivateEndpointRequest.ifMatch,
646
- "opc-request-id": deleteDataSafePrivateEndpointRequest.opcRequestId
612
+ "opc-retry-token": createDataSafePrivateEndpointRequest.opcRetryToken,
613
+ "opc-request-id": createDataSafePrivateEndpointRequest.opcRequestId
647
614
  };
648
- const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : {}, deleteDataSafePrivateEndpointRequest.retryConfiguration);
615
+ const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : {}, createDataSafePrivateEndpointRequest.retryConfiguration);
649
616
  if (this.logger)
650
617
  retrier.logger = this.logger;
651
618
  const request = yield oci_common_2.composeRequest({
652
619
  baseEndpoint: this._endpoint,
653
620
  defaultHeaders: this._defaultHeaders,
654
- path: "/dataSafePrivateEndpoints/{dataSafePrivateEndpointId}",
655
- method: "DELETE",
621
+ path: "/dataSafePrivateEndpoints",
622
+ method: "POST",
623
+ bodyContent: common.ObjectSerializer.serialize(createDataSafePrivateEndpointRequest.createDataSafePrivateEndpointDetails, "CreateDataSafePrivateEndpointDetails", model.CreateDataSafePrivateEndpointDetails.getJsonObj),
656
624
  pathParams: pathParams,
657
625
  headerParams: headerParams,
658
626
  queryParams: queryParams
@@ -661,7 +629,16 @@ class DataSafeClient {
661
629
  const response = yield retrier.makeServiceCall(this._httpClient, request);
662
630
  const sdkResponse = oci_common_2.composeResponse({
663
631
  responseObject: {},
632
+ body: yield response.json(),
633
+ bodyKey: "dataSafePrivateEndpoint",
634
+ bodyModel: model.DataSafePrivateEndpoint,
635
+ type: "model.DataSafePrivateEndpoint",
664
636
  responseHeaders: [
637
+ {
638
+ value: response.headers.get("etag"),
639
+ key: "etag",
640
+ dataType: "string"
641
+ },
665
642
  {
666
643
  value: response.headers.get("opc-work-request-id"),
667
644
  key: "opcWorkRequestId",
@@ -671,6 +648,11 @@ class DataSafeClient {
671
648
  value: response.headers.get("opc-request-id"),
672
649
  key: "opcRequestId",
673
650
  dataType: "string"
651
+ },
652
+ {
653
+ value: response.headers.get("location"),
654
+ key: "location",
655
+ dataType: "string"
674
656
  }
675
657
  ]
676
658
  });
@@ -682,33 +664,33 @@ class DataSafeClient {
682
664
  });
683
665
  }
684
666
  /**
685
- * Deletes the specified on-premises connector.
686
- * @param DeleteOnPremConnectorRequest
687
- * @return DeleteOnPremConnectorResponse
667
+ * Creates a new on-premises connector.
668
+ *
669
+ * @param CreateOnPremConnectorRequest
670
+ * @return CreateOnPremConnectorResponse
688
671
  * @throws OciError when an error occurs
689
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.3.1/datasafe/DeleteOnPremConnector.ts.html |here} to see how to use DeleteOnPremConnector API.
672
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.5.2/datasafe/CreateOnPremConnector.ts.html |here} to see how to use CreateOnPremConnector API.
690
673
  */
691
- deleteOnPremConnector(deleteOnPremConnectorRequest) {
674
+ createOnPremConnector(createOnPremConnectorRequest) {
692
675
  return __awaiter(this, void 0, void 0, function* () {
693
676
  if (this.logger)
694
- this.logger.debug("Calling operation DataSafeClient#deleteOnPremConnector.");
695
- const pathParams = {
696
- "{onPremConnectorId}": deleteOnPremConnectorRequest.onPremConnectorId
697
- };
677
+ this.logger.debug("Calling operation DataSafeClient#createOnPremConnector.");
678
+ const pathParams = {};
698
679
  const queryParams = {};
699
680
  let headerParams = {
700
681
  "Content-Type": common.Constants.APPLICATION_JSON,
701
- "if-match": deleteOnPremConnectorRequest.ifMatch,
702
- "opc-request-id": deleteOnPremConnectorRequest.opcRequestId
682
+ "opc-retry-token": createOnPremConnectorRequest.opcRetryToken,
683
+ "opc-request-id": createOnPremConnectorRequest.opcRequestId
703
684
  };
704
- const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : {}, deleteOnPremConnectorRequest.retryConfiguration);
685
+ const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : {}, createOnPremConnectorRequest.retryConfiguration);
705
686
  if (this.logger)
706
687
  retrier.logger = this.logger;
707
688
  const request = yield oci_common_2.composeRequest({
708
689
  baseEndpoint: this._endpoint,
709
690
  defaultHeaders: this._defaultHeaders,
710
- path: "/onPremConnectors/{onPremConnectorId}",
711
- method: "DELETE",
691
+ path: "/onPremConnectors",
692
+ method: "POST",
693
+ bodyContent: common.ObjectSerializer.serialize(createOnPremConnectorRequest.createOnPremConnectorDetails, "CreateOnPremConnectorDetails", model.CreateOnPremConnectorDetails.getJsonObj),
712
694
  pathParams: pathParams,
713
695
  headerParams: headerParams,
714
696
  queryParams: queryParams
@@ -717,7 +699,16 @@ class DataSafeClient {
717
699
  const response = yield retrier.makeServiceCall(this._httpClient, request);
718
700
  const sdkResponse = oci_common_2.composeResponse({
719
701
  responseObject: {},
702
+ body: yield response.json(),
703
+ bodyKey: "onPremConnector",
704
+ bodyModel: model.OnPremConnector,
705
+ type: "model.OnPremConnector",
720
706
  responseHeaders: [
707
+ {
708
+ value: response.headers.get("etag"),
709
+ key: "etag",
710
+ dataType: "string"
711
+ },
721
712
  {
722
713
  value: response.headers.get("opc-work-request-id"),
723
714
  key: "opcWorkRequestId",
@@ -727,6 +718,11 @@ class DataSafeClient {
727
718
  value: response.headers.get("opc-request-id"),
728
719
  key: "opcRequestId",
729
720
  dataType: "string"
721
+ },
722
+ {
723
+ value: response.headers.get("location"),
724
+ key: "location",
725
+ dataType: "string"
730
726
  }
731
727
  ]
732
728
  });
@@ -738,33 +734,35 @@ class DataSafeClient {
738
734
  });
739
735
  }
740
736
  /**
741
- * Deregisters the specified database from Data Safe and removes the target database from the Data Safe Console.
742
- * @param DeleteTargetDatabaseRequest
743
- * @return DeleteTargetDatabaseResponse
737
+ * Creates a new saved security assessment for one or multiple targets in a compartment. When this operation is performed,
738
+ * it will save the latest assessments in the specified compartment. If a schedule is passed, it will persist the latest assessments,
739
+ * at the defined date and time, in the format defined by [RFC3339](https://tools.ietf.org/html/rfc3339).
740
+ *
741
+ * @param CreateSecurityAssessmentRequest
742
+ * @return CreateSecurityAssessmentResponse
744
743
  * @throws OciError when an error occurs
745
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.3.1/datasafe/DeleteTargetDatabase.ts.html |here} to see how to use DeleteTargetDatabase API.
744
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.5.2/datasafe/CreateSecurityAssessment.ts.html |here} to see how to use CreateSecurityAssessment API.
746
745
  */
747
- deleteTargetDatabase(deleteTargetDatabaseRequest) {
746
+ createSecurityAssessment(createSecurityAssessmentRequest) {
748
747
  return __awaiter(this, void 0, void 0, function* () {
749
748
  if (this.logger)
750
- this.logger.debug("Calling operation DataSafeClient#deleteTargetDatabase.");
751
- const pathParams = {
752
- "{targetDatabaseId}": deleteTargetDatabaseRequest.targetDatabaseId
753
- };
749
+ this.logger.debug("Calling operation DataSafeClient#createSecurityAssessment.");
750
+ const pathParams = {};
754
751
  const queryParams = {};
755
752
  let headerParams = {
756
753
  "Content-Type": common.Constants.APPLICATION_JSON,
757
- "if-match": deleteTargetDatabaseRequest.ifMatch,
758
- "opc-request-id": deleteTargetDatabaseRequest.opcRequestId
754
+ "opc-retry-token": createSecurityAssessmentRequest.opcRetryToken,
755
+ "opc-request-id": createSecurityAssessmentRequest.opcRequestId
759
756
  };
760
- const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : {}, deleteTargetDatabaseRequest.retryConfiguration);
757
+ const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : {}, createSecurityAssessmentRequest.retryConfiguration);
761
758
  if (this.logger)
762
759
  retrier.logger = this.logger;
763
760
  const request = yield oci_common_2.composeRequest({
764
761
  baseEndpoint: this._endpoint,
765
762
  defaultHeaders: this._defaultHeaders,
766
- path: "/targetDatabases/{targetDatabaseId}",
767
- method: "DELETE",
763
+ path: "/securityAssessments",
764
+ method: "POST",
765
+ bodyContent: common.ObjectSerializer.serialize(createSecurityAssessmentRequest.createSecurityAssessmentDetails, "CreateSecurityAssessmentDetails", model.CreateSecurityAssessmentDetails.getJsonObj),
768
766
  pathParams: pathParams,
769
767
  headerParams: headerParams,
770
768
  queryParams: queryParams
@@ -773,7 +771,16 @@ class DataSafeClient {
773
771
  const response = yield retrier.makeServiceCall(this._httpClient, request);
774
772
  const sdkResponse = oci_common_2.composeResponse({
775
773
  responseObject: {},
774
+ body: yield response.json(),
775
+ bodyKey: "securityAssessment",
776
+ bodyModel: model.SecurityAssessment,
777
+ type: "model.SecurityAssessment",
776
778
  responseHeaders: [
779
+ {
780
+ value: response.headers.get("etag"),
781
+ key: "etag",
782
+ dataType: "string"
783
+ },
777
784
  {
778
785
  value: response.headers.get("opc-work-request-id"),
779
786
  key: "opcWorkRequestId",
@@ -783,6 +790,11 @@ class DataSafeClient {
783
790
  value: response.headers.get("opc-request-id"),
784
791
  key: "opcRequestId",
785
792
  dataType: "string"
793
+ },
794
+ {
795
+ value: response.headers.get("location"),
796
+ key: "location",
797
+ dataType: "string"
786
798
  }
787
799
  ]
788
800
  });
@@ -794,33 +806,33 @@ class DataSafeClient {
794
806
  });
795
807
  }
796
808
  /**
797
- * Downloads the privilege script to grant/revoke required roles from the Data Safe account on the target database.
809
+ * Registers the specified database with Data Safe and creates a Data Safe target database in the Data Safe Console.
798
810
  *
799
- * @param DownloadPrivilegeScriptRequest
800
- * @return DownloadPrivilegeScriptResponse
811
+ * @param CreateTargetDatabaseRequest
812
+ * @return CreateTargetDatabaseResponse
801
813
  * @throws OciError when an error occurs
802
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.3.1/datasafe/DownloadPrivilegeScript.ts.html |here} to see how to use DownloadPrivilegeScript API.
814
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.5.2/datasafe/CreateTargetDatabase.ts.html |here} to see how to use CreateTargetDatabase API.
803
815
  */
804
- downloadPrivilegeScript(downloadPrivilegeScriptRequest) {
816
+ createTargetDatabase(createTargetDatabaseRequest) {
805
817
  return __awaiter(this, void 0, void 0, function* () {
806
818
  if (this.logger)
807
- this.logger.debug("Calling operation DataSafeClient#downloadPrivilegeScript.");
819
+ this.logger.debug("Calling operation DataSafeClient#createTargetDatabase.");
808
820
  const pathParams = {};
809
821
  const queryParams = {};
810
822
  let headerParams = {
811
823
  "Content-Type": common.Constants.APPLICATION_JSON,
812
- "opc-retry-token": downloadPrivilegeScriptRequest.opcRetryToken,
813
- "opc-request-id": downloadPrivilegeScriptRequest.opcRequestId,
814
- "if-match": downloadPrivilegeScriptRequest.ifMatch
824
+ "opc-retry-token": createTargetDatabaseRequest.opcRetryToken,
825
+ "opc-request-id": createTargetDatabaseRequest.opcRequestId
815
826
  };
816
- const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : {}, downloadPrivilegeScriptRequest.retryConfiguration);
827
+ const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : {}, createTargetDatabaseRequest.retryConfiguration);
817
828
  if (this.logger)
818
829
  retrier.logger = this.logger;
819
830
  const request = yield oci_common_2.composeRequest({
820
831
  baseEndpoint: this._endpoint,
821
832
  defaultHeaders: this._defaultHeaders,
822
- path: "/actions/downloadPrivilegeScript",
833
+ path: "/targetDatabases",
823
834
  method: "POST",
835
+ bodyContent: common.ObjectSerializer.serialize(createTargetDatabaseRequest.createTargetDatabaseDetails, "CreateTargetDatabaseDetails", model.CreateTargetDatabaseDetails.getJsonObj),
824
836
  pathParams: pathParams,
825
837
  headerParams: headerParams,
826
838
  queryParams: queryParams
@@ -829,24 +841,30 @@ class DataSafeClient {
829
841
  const response = yield retrier.makeServiceCall(this._httpClient, request);
830
842
  const sdkResponse = oci_common_2.composeResponse({
831
843
  responseObject: {},
832
- body: response.body,
833
- bodyKey: "value",
834
- bodyModel: "string",
844
+ body: yield response.json(),
845
+ bodyKey: "targetDatabase",
846
+ bodyModel: model.TargetDatabase,
847
+ type: "model.TargetDatabase",
835
848
  responseHeaders: [
836
849
  {
837
- value: response.headers.get("opc-request-id"),
838
- key: "opcRequestId",
850
+ value: response.headers.get("etag"),
851
+ key: "etag",
839
852
  dataType: "string"
840
853
  },
841
854
  {
842
- value: response.headers.get("etag"),
843
- key: "etag",
855
+ value: response.headers.get("opc-work-request-id"),
856
+ key: "opcWorkRequestId",
844
857
  dataType: "string"
845
858
  },
846
859
  {
847
- value: response.headers.get("content-length"),
848
- key: "contentLength",
849
- dataType: "number"
860
+ value: response.headers.get("opc-request-id"),
861
+ key: "opcRequestId",
862
+ dataType: "string"
863
+ },
864
+ {
865
+ value: response.headers.get("location"),
866
+ key: "location",
867
+ dataType: "string"
850
868
  }
851
869
  ]
852
870
  });
@@ -858,35 +876,35 @@ class DataSafeClient {
858
876
  });
859
877
  }
860
878
  /**
861
- * Enables Data Safe in the tenancy and region.
879
+ * Creates a new saved user assessment for one or multiple targets in a compartment. It saves the latest assessments in the
880
+ * specified compartment. If a scheduled is passed in, this operation persists the latest assessments that exist at the defined
881
+ * date and time, in the format defined by [RFC3339](https://tools.ietf.org/html/rfc3339).
862
882
  *
863
- * @param EnableDataSafeConfigurationRequest
864
- * @return EnableDataSafeConfigurationResponse
883
+ * @param CreateUserAssessmentRequest
884
+ * @return CreateUserAssessmentResponse
865
885
  * @throws OciError when an error occurs
866
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.3.1/datasafe/EnableDataSafeConfiguration.ts.html |here} to see how to use EnableDataSafeConfiguration API.
886
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.5.2/datasafe/CreateUserAssessment.ts.html |here} to see how to use CreateUserAssessment API.
867
887
  */
868
- enableDataSafeConfiguration(enableDataSafeConfigurationRequest) {
888
+ createUserAssessment(createUserAssessmentRequest) {
869
889
  return __awaiter(this, void 0, void 0, function* () {
870
890
  if (this.logger)
871
- this.logger.debug("Calling operation DataSafeClient#enableDataSafeConfiguration.");
891
+ this.logger.debug("Calling operation DataSafeClient#createUserAssessment.");
872
892
  const pathParams = {};
873
- const queryParams = {
874
- "compartmentId": enableDataSafeConfigurationRequest.compartmentId
875
- };
893
+ const queryParams = {};
876
894
  let headerParams = {
877
895
  "Content-Type": common.Constants.APPLICATION_JSON,
878
- "if-match": enableDataSafeConfigurationRequest.ifMatch,
879
- "opc-request-id": enableDataSafeConfigurationRequest.opcRequestId
896
+ "opc-retry-token": createUserAssessmentRequest.opcRetryToken,
897
+ "opc-request-id": createUserAssessmentRequest.opcRequestId
880
898
  };
881
- const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : {}, enableDataSafeConfigurationRequest.retryConfiguration);
899
+ const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : {}, createUserAssessmentRequest.retryConfiguration);
882
900
  if (this.logger)
883
901
  retrier.logger = this.logger;
884
902
  const request = yield oci_common_2.composeRequest({
885
903
  baseEndpoint: this._endpoint,
886
904
  defaultHeaders: this._defaultHeaders,
887
- path: "/configuration",
888
- method: "PUT",
889
- bodyContent: common.ObjectSerializer.serialize(enableDataSafeConfigurationRequest.enableDataSafeConfigurationDetails, "EnableDataSafeConfigurationDetails", model.EnableDataSafeConfigurationDetails.getJsonObj),
905
+ path: "/userAssessments",
906
+ method: "POST",
907
+ bodyContent: common.ObjectSerializer.serialize(createUserAssessmentRequest.createUserAssessmentDetails, "CreateUserAssessmentDetails", model.CreateUserAssessmentDetails.getJsonObj),
890
908
  pathParams: pathParams,
891
909
  headerParams: headerParams,
892
910
  queryParams: queryParams
@@ -895,7 +913,16 @@ class DataSafeClient {
895
913
  const response = yield retrier.makeServiceCall(this._httpClient, request);
896
914
  const sdkResponse = oci_common_2.composeResponse({
897
915
  responseObject: {},
916
+ body: yield response.json(),
917
+ bodyKey: "userAssessment",
918
+ bodyModel: model.UserAssessment,
919
+ type: "model.UserAssessment",
898
920
  responseHeaders: [
921
+ {
922
+ value: response.headers.get("etag"),
923
+ key: "etag",
924
+ dataType: "string"
925
+ },
899
926
  {
900
927
  value: response.headers.get("opc-work-request-id"),
901
928
  key: "opcWorkRequestId",
@@ -905,6 +932,11 @@ class DataSafeClient {
905
932
  value: response.headers.get("opc-request-id"),
906
933
  key: "opcRequestId",
907
934
  dataType: "string"
935
+ },
936
+ {
937
+ value: response.headers.get("location"),
938
+ key: "location",
939
+ dataType: "string"
908
940
  }
909
941
  ]
910
942
  });
@@ -916,36 +948,35 @@ class DataSafeClient {
916
948
  });
917
949
  }
918
950
  /**
919
- * Creates and downloads the configuration of the specified on-premises connector.
951
+ * Deactivates a target database in Data Safe.
920
952
  *
921
- * @param GenerateOnPremConnectorConfigurationRequest
922
- * @return GenerateOnPremConnectorConfigurationResponse
953
+ * @param DeactivateTargetDatabaseRequest
954
+ * @return DeactivateTargetDatabaseResponse
923
955
  * @throws OciError when an error occurs
924
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.3.1/datasafe/GenerateOnPremConnectorConfiguration.ts.html |here} to see how to use GenerateOnPremConnectorConfiguration API.
956
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.5.2/datasafe/DeactivateTargetDatabase.ts.html |here} to see how to use DeactivateTargetDatabase API.
925
957
  */
926
- generateOnPremConnectorConfiguration(generateOnPremConnectorConfigurationRequest) {
958
+ deactivateTargetDatabase(deactivateTargetDatabaseRequest) {
927
959
  return __awaiter(this, void 0, void 0, function* () {
928
960
  if (this.logger)
929
- this.logger.debug("Calling operation DataSafeClient#generateOnPremConnectorConfiguration.");
961
+ this.logger.debug("Calling operation DataSafeClient#deactivateTargetDatabase.");
930
962
  const pathParams = {
931
- "{onPremConnectorId}": generateOnPremConnectorConfigurationRequest.onPremConnectorId
963
+ "{targetDatabaseId}": deactivateTargetDatabaseRequest.targetDatabaseId
932
964
  };
933
965
  const queryParams = {};
934
966
  let headerParams = {
935
967
  "Content-Type": common.Constants.APPLICATION_JSON,
936
- "opc-retry-token": generateOnPremConnectorConfigurationRequest.opcRetryToken,
937
- "opc-request-id": generateOnPremConnectorConfigurationRequest.opcRequestId,
938
- "if-match": generateOnPremConnectorConfigurationRequest.ifMatch
968
+ "opc-retry-token": deactivateTargetDatabaseRequest.opcRetryToken,
969
+ "if-match": deactivateTargetDatabaseRequest.ifMatch,
970
+ "opc-request-id": deactivateTargetDatabaseRequest.opcRequestId
939
971
  };
940
- const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : {}, generateOnPremConnectorConfigurationRequest.retryConfiguration);
972
+ const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : {}, deactivateTargetDatabaseRequest.retryConfiguration);
941
973
  if (this.logger)
942
974
  retrier.logger = this.logger;
943
975
  const request = yield oci_common_2.composeRequest({
944
976
  baseEndpoint: this._endpoint,
945
977
  defaultHeaders: this._defaultHeaders,
946
- path: "/onPremConnectors/{onPremConnectorId}/actions/generateConfiguration",
978
+ path: "/targetDatabases/{targetDatabaseId}/actions/deactivate",
947
979
  method: "POST",
948
- bodyContent: common.ObjectSerializer.serialize(generateOnPremConnectorConfigurationRequest.generateOnPremConnectorConfigurationDetails, "GenerateOnPremConnectorConfigurationDetails", model.GenerateOnPremConnectorConfigurationDetails.getJsonObj),
949
980
  pathParams: pathParams,
950
981
  headerParams: headerParams,
951
982
  queryParams: queryParams
@@ -954,24 +985,16 @@ class DataSafeClient {
954
985
  const response = yield retrier.makeServiceCall(this._httpClient, request);
955
986
  const sdkResponse = oci_common_2.composeResponse({
956
987
  responseObject: {},
957
- body: response.body,
958
- bodyKey: "value",
959
- bodyModel: "string",
960
988
  responseHeaders: [
961
989
  {
962
- value: response.headers.get("opc-request-id"),
963
- key: "opcRequestId",
990
+ value: response.headers.get("opc-work-request-id"),
991
+ key: "opcWorkRequestId",
964
992
  dataType: "string"
965
993
  },
966
994
  {
967
- value: response.headers.get("content-length"),
968
- key: "contentLength",
969
- dataType: "number"
970
- },
971
- {
972
- value: response.headers.get("last-modified"),
973
- key: "lastModified",
974
- dataType: "Date"
995
+ value: response.headers.get("opc-request-id"),
996
+ key: "opcRequestId",
997
+ dataType: "string"
975
998
  }
976
999
  ]
977
1000
  });
@@ -983,32 +1006,33 @@ class DataSafeClient {
983
1006
  });
984
1007
  }
985
1008
  /**
986
- * Gets the details of the Data Safe configuration.
987
- * @param GetDataSafeConfigurationRequest
988
- * @return GetDataSafeConfigurationResponse
1009
+ * Deletes the specified Data Safe private endpoint.
1010
+ * @param DeleteDataSafePrivateEndpointRequest
1011
+ * @return DeleteDataSafePrivateEndpointResponse
989
1012
  * @throws OciError when an error occurs
990
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.3.1/datasafe/GetDataSafeConfiguration.ts.html |here} to see how to use GetDataSafeConfiguration API.
1013
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.5.2/datasafe/DeleteDataSafePrivateEndpoint.ts.html |here} to see how to use DeleteDataSafePrivateEndpoint API.
991
1014
  */
992
- getDataSafeConfiguration(getDataSafeConfigurationRequest) {
1015
+ deleteDataSafePrivateEndpoint(deleteDataSafePrivateEndpointRequest) {
993
1016
  return __awaiter(this, void 0, void 0, function* () {
994
1017
  if (this.logger)
995
- this.logger.debug("Calling operation DataSafeClient#getDataSafeConfiguration.");
996
- const pathParams = {};
997
- const queryParams = {
998
- "compartmentId": getDataSafeConfigurationRequest.compartmentId
1018
+ this.logger.debug("Calling operation DataSafeClient#deleteDataSafePrivateEndpoint.");
1019
+ const pathParams = {
1020
+ "{dataSafePrivateEndpointId}": deleteDataSafePrivateEndpointRequest.dataSafePrivateEndpointId
999
1021
  };
1022
+ const queryParams = {};
1000
1023
  let headerParams = {
1001
1024
  "Content-Type": common.Constants.APPLICATION_JSON,
1002
- "opc-request-id": getDataSafeConfigurationRequest.opcRequestId
1025
+ "if-match": deleteDataSafePrivateEndpointRequest.ifMatch,
1026
+ "opc-request-id": deleteDataSafePrivateEndpointRequest.opcRequestId
1003
1027
  };
1004
- const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : {}, getDataSafeConfigurationRequest.retryConfiguration);
1028
+ const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : {}, deleteDataSafePrivateEndpointRequest.retryConfiguration);
1005
1029
  if (this.logger)
1006
1030
  retrier.logger = this.logger;
1007
1031
  const request = yield oci_common_2.composeRequest({
1008
1032
  baseEndpoint: this._endpoint,
1009
1033
  defaultHeaders: this._defaultHeaders,
1010
- path: "/configuration",
1011
- method: "GET",
1034
+ path: "/dataSafePrivateEndpoints/{dataSafePrivateEndpointId}",
1035
+ method: "DELETE",
1012
1036
  pathParams: pathParams,
1013
1037
  headerParams: headerParams,
1014
1038
  queryParams: queryParams
@@ -1017,14 +1041,10 @@ class DataSafeClient {
1017
1041
  const response = yield retrier.makeServiceCall(this._httpClient, request);
1018
1042
  const sdkResponse = oci_common_2.composeResponse({
1019
1043
  responseObject: {},
1020
- body: yield response.json(),
1021
- bodyKey: "dataSafeConfiguration",
1022
- bodyModel: model.DataSafeConfiguration,
1023
- type: "model.DataSafeConfiguration",
1024
1044
  responseHeaders: [
1025
1045
  {
1026
- value: response.headers.get("etag"),
1027
- key: "etag",
1046
+ value: response.headers.get("opc-work-request-id"),
1047
+ key: "opcWorkRequestId",
1028
1048
  dataType: "string"
1029
1049
  },
1030
1050
  {
@@ -1042,32 +1062,33 @@ class DataSafeClient {
1042
1062
  });
1043
1063
  }
1044
1064
  /**
1045
- * Gets the details of the specified Data Safe private endpoint.
1046
- * @param GetDataSafePrivateEndpointRequest
1047
- * @return GetDataSafePrivateEndpointResponse
1065
+ * Deletes the specified on-premises connector.
1066
+ * @param DeleteOnPremConnectorRequest
1067
+ * @return DeleteOnPremConnectorResponse
1048
1068
  * @throws OciError when an error occurs
1049
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.3.1/datasafe/GetDataSafePrivateEndpoint.ts.html |here} to see how to use GetDataSafePrivateEndpoint API.
1069
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.5.2/datasafe/DeleteOnPremConnector.ts.html |here} to see how to use DeleteOnPremConnector API.
1050
1070
  */
1051
- getDataSafePrivateEndpoint(getDataSafePrivateEndpointRequest) {
1071
+ deleteOnPremConnector(deleteOnPremConnectorRequest) {
1052
1072
  return __awaiter(this, void 0, void 0, function* () {
1053
1073
  if (this.logger)
1054
- this.logger.debug("Calling operation DataSafeClient#getDataSafePrivateEndpoint.");
1074
+ this.logger.debug("Calling operation DataSafeClient#deleteOnPremConnector.");
1055
1075
  const pathParams = {
1056
- "{dataSafePrivateEndpointId}": getDataSafePrivateEndpointRequest.dataSafePrivateEndpointId
1076
+ "{onPremConnectorId}": deleteOnPremConnectorRequest.onPremConnectorId
1057
1077
  };
1058
1078
  const queryParams = {};
1059
1079
  let headerParams = {
1060
1080
  "Content-Type": common.Constants.APPLICATION_JSON,
1061
- "opc-request-id": getDataSafePrivateEndpointRequest.opcRequestId
1081
+ "if-match": deleteOnPremConnectorRequest.ifMatch,
1082
+ "opc-request-id": deleteOnPremConnectorRequest.opcRequestId
1062
1083
  };
1063
- const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : {}, getDataSafePrivateEndpointRequest.retryConfiguration);
1084
+ const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : {}, deleteOnPremConnectorRequest.retryConfiguration);
1064
1085
  if (this.logger)
1065
1086
  retrier.logger = this.logger;
1066
1087
  const request = yield oci_common_2.composeRequest({
1067
1088
  baseEndpoint: this._endpoint,
1068
1089
  defaultHeaders: this._defaultHeaders,
1069
- path: "/dataSafePrivateEndpoints/{dataSafePrivateEndpointId}",
1070
- method: "GET",
1090
+ path: "/onPremConnectors/{onPremConnectorId}",
1091
+ method: "DELETE",
1071
1092
  pathParams: pathParams,
1072
1093
  headerParams: headerParams,
1073
1094
  queryParams: queryParams
@@ -1076,14 +1097,10 @@ class DataSafeClient {
1076
1097
  const response = yield retrier.makeServiceCall(this._httpClient, request);
1077
1098
  const sdkResponse = oci_common_2.composeResponse({
1078
1099
  responseObject: {},
1079
- body: yield response.json(),
1080
- bodyKey: "dataSafePrivateEndpoint",
1081
- bodyModel: model.DataSafePrivateEndpoint,
1082
- type: "model.DataSafePrivateEndpoint",
1083
1100
  responseHeaders: [
1084
1101
  {
1085
- value: response.headers.get("etag"),
1086
- key: "etag",
1102
+ value: response.headers.get("opc-work-request-id"),
1103
+ key: "opcWorkRequestId",
1087
1104
  dataType: "string"
1088
1105
  },
1089
1106
  {
@@ -1101,32 +1118,37 @@ class DataSafeClient {
1101
1118
  });
1102
1119
  }
1103
1120
  /**
1104
- * Gets the details of the specified on-premises connector.
1105
- * @param GetOnPremConnectorRequest
1106
- * @return GetOnPremConnectorResponse
1121
+ * Deletes the specified saved security assessment or schedule. To delete a security assessment schedule,
1122
+ * first call the operation ListSecurityAssessments with filters \"type = save_schedule\".
1123
+ * That operation returns the scheduleAssessmentId. Then, call DeleteSecurityAssessment with the scheduleAssessmentId.
1124
+ * If the assessment being deleted is the baseline for that compartment, then it will impact all baselines in the compartment.
1125
+ *
1126
+ * @param DeleteSecurityAssessmentRequest
1127
+ * @return DeleteSecurityAssessmentResponse
1107
1128
  * @throws OciError when an error occurs
1108
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.3.1/datasafe/GetOnPremConnector.ts.html |here} to see how to use GetOnPremConnector API.
1129
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.5.2/datasafe/DeleteSecurityAssessment.ts.html |here} to see how to use DeleteSecurityAssessment API.
1109
1130
  */
1110
- getOnPremConnector(getOnPremConnectorRequest) {
1131
+ deleteSecurityAssessment(deleteSecurityAssessmentRequest) {
1111
1132
  return __awaiter(this, void 0, void 0, function* () {
1112
1133
  if (this.logger)
1113
- this.logger.debug("Calling operation DataSafeClient#getOnPremConnector.");
1134
+ this.logger.debug("Calling operation DataSafeClient#deleteSecurityAssessment.");
1114
1135
  const pathParams = {
1115
- "{onPremConnectorId}": getOnPremConnectorRequest.onPremConnectorId
1136
+ "{securityAssessmentId}": deleteSecurityAssessmentRequest.securityAssessmentId
1116
1137
  };
1117
1138
  const queryParams = {};
1118
1139
  let headerParams = {
1119
1140
  "Content-Type": common.Constants.APPLICATION_JSON,
1120
- "opc-request-id": getOnPremConnectorRequest.opcRequestId
1141
+ "opc-request-id": deleteSecurityAssessmentRequest.opcRequestId,
1142
+ "if-match": deleteSecurityAssessmentRequest.ifMatch
1121
1143
  };
1122
- const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : {}, getOnPremConnectorRequest.retryConfiguration);
1144
+ const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : {}, deleteSecurityAssessmentRequest.retryConfiguration);
1123
1145
  if (this.logger)
1124
1146
  retrier.logger = this.logger;
1125
1147
  const request = yield oci_common_2.composeRequest({
1126
1148
  baseEndpoint: this._endpoint,
1127
1149
  defaultHeaders: this._defaultHeaders,
1128
- path: "/onPremConnectors/{onPremConnectorId}",
1129
- method: "GET",
1150
+ path: "/securityAssessments/{securityAssessmentId}",
1151
+ method: "DELETE",
1130
1152
  pathParams: pathParams,
1131
1153
  headerParams: headerParams,
1132
1154
  queryParams: queryParams
@@ -1135,14 +1157,10 @@ class DataSafeClient {
1135
1157
  const response = yield retrier.makeServiceCall(this._httpClient, request);
1136
1158
  const sdkResponse = oci_common_2.composeResponse({
1137
1159
  responseObject: {},
1138
- body: yield response.json(),
1139
- bodyKey: "onPremConnector",
1140
- bodyModel: model.OnPremConnector,
1141
- type: "model.OnPremConnector",
1142
1160
  responseHeaders: [
1143
1161
  {
1144
- value: response.headers.get("etag"),
1145
- key: "etag",
1162
+ value: response.headers.get("opc-work-request-id"),
1163
+ key: "opcWorkRequestId",
1146
1164
  dataType: "string"
1147
1165
  },
1148
1166
  {
@@ -1160,33 +1178,33 @@ class DataSafeClient {
1160
1178
  });
1161
1179
  }
1162
1180
  /**
1163
- * Returns the details of the specified Data Safe target database.
1164
- *
1165
- * @param GetTargetDatabaseRequest
1166
- * @return GetTargetDatabaseResponse
1181
+ * Deregisters the specified database from Data Safe and removes the target database from the Data Safe Console.
1182
+ * @param DeleteTargetDatabaseRequest
1183
+ * @return DeleteTargetDatabaseResponse
1167
1184
  * @throws OciError when an error occurs
1168
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.3.1/datasafe/GetTargetDatabase.ts.html |here} to see how to use GetTargetDatabase API.
1185
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.5.2/datasafe/DeleteTargetDatabase.ts.html |here} to see how to use DeleteTargetDatabase API.
1169
1186
  */
1170
- getTargetDatabase(getTargetDatabaseRequest) {
1187
+ deleteTargetDatabase(deleteTargetDatabaseRequest) {
1171
1188
  return __awaiter(this, void 0, void 0, function* () {
1172
1189
  if (this.logger)
1173
- this.logger.debug("Calling operation DataSafeClient#getTargetDatabase.");
1190
+ this.logger.debug("Calling operation DataSafeClient#deleteTargetDatabase.");
1174
1191
  const pathParams = {
1175
- "{targetDatabaseId}": getTargetDatabaseRequest.targetDatabaseId
1192
+ "{targetDatabaseId}": deleteTargetDatabaseRequest.targetDatabaseId
1176
1193
  };
1177
1194
  const queryParams = {};
1178
1195
  let headerParams = {
1179
1196
  "Content-Type": common.Constants.APPLICATION_JSON,
1180
- "opc-request-id": getTargetDatabaseRequest.opcRequestId
1197
+ "if-match": deleteTargetDatabaseRequest.ifMatch,
1198
+ "opc-request-id": deleteTargetDatabaseRequest.opcRequestId
1181
1199
  };
1182
- const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : {}, getTargetDatabaseRequest.retryConfiguration);
1200
+ const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : {}, deleteTargetDatabaseRequest.retryConfiguration);
1183
1201
  if (this.logger)
1184
1202
  retrier.logger = this.logger;
1185
1203
  const request = yield oci_common_2.composeRequest({
1186
1204
  baseEndpoint: this._endpoint,
1187
1205
  defaultHeaders: this._defaultHeaders,
1188
1206
  path: "/targetDatabases/{targetDatabaseId}",
1189
- method: "GET",
1207
+ method: "DELETE",
1190
1208
  pathParams: pathParams,
1191
1209
  headerParams: headerParams,
1192
1210
  queryParams: queryParams
@@ -1195,14 +1213,10 @@ class DataSafeClient {
1195
1213
  const response = yield retrier.makeServiceCall(this._httpClient, request);
1196
1214
  const sdkResponse = oci_common_2.composeResponse({
1197
1215
  responseObject: {},
1198
- body: yield response.json(),
1199
- bodyKey: "targetDatabase",
1200
- bodyModel: model.TargetDatabase,
1201
- type: "model.TargetDatabase",
1202
1216
  responseHeaders: [
1203
1217
  {
1204
- value: response.headers.get("etag"),
1205
- key: "etag",
1218
+ value: response.headers.get("opc-work-request-id"),
1219
+ key: "opcWorkRequestId",
1206
1220
  dataType: "string"
1207
1221
  },
1208
1222
  {
@@ -1220,32 +1234,37 @@ class DataSafeClient {
1220
1234
  });
1221
1235
  }
1222
1236
  /**
1223
- * Gets the details of the specified work request.
1224
- * @param GetWorkRequestRequest
1225
- * @return GetWorkRequestResponse
1237
+ * Deletes the specified saved user assessment or schedule. To delete a user assessment schedule, first call the operation
1238
+ * ListUserAssessments with filters \"type = save_schedule\".
1239
+ * That call returns the scheduleAssessmentId. Then call DeleteUserAssessment with the scheduleAssessmentId.
1240
+ * If the assessment being deleted is the baseline for that compartment, then it will impact all baselines in the compartment.
1241
+ *
1242
+ * @param DeleteUserAssessmentRequest
1243
+ * @return DeleteUserAssessmentResponse
1226
1244
  * @throws OciError when an error occurs
1227
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.3.1/datasafe/GetWorkRequest.ts.html |here} to see how to use GetWorkRequest API.
1245
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.5.2/datasafe/DeleteUserAssessment.ts.html |here} to see how to use DeleteUserAssessment API.
1228
1246
  */
1229
- getWorkRequest(getWorkRequestRequest) {
1247
+ deleteUserAssessment(deleteUserAssessmentRequest) {
1230
1248
  return __awaiter(this, void 0, void 0, function* () {
1231
1249
  if (this.logger)
1232
- this.logger.debug("Calling operation DataSafeClient#getWorkRequest.");
1250
+ this.logger.debug("Calling operation DataSafeClient#deleteUserAssessment.");
1233
1251
  const pathParams = {
1234
- "{workRequestId}": getWorkRequestRequest.workRequestId
1252
+ "{userAssessmentId}": deleteUserAssessmentRequest.userAssessmentId
1235
1253
  };
1236
1254
  const queryParams = {};
1237
1255
  let headerParams = {
1238
1256
  "Content-Type": common.Constants.APPLICATION_JSON,
1239
- "opc-request-id": getWorkRequestRequest.opcRequestId
1257
+ "if-match": deleteUserAssessmentRequest.ifMatch,
1258
+ "opc-request-id": deleteUserAssessmentRequest.opcRequestId
1240
1259
  };
1241
- const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : {}, getWorkRequestRequest.retryConfiguration);
1260
+ const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : {}, deleteUserAssessmentRequest.retryConfiguration);
1242
1261
  if (this.logger)
1243
1262
  retrier.logger = this.logger;
1244
1263
  const request = yield oci_common_2.composeRequest({
1245
1264
  baseEndpoint: this._endpoint,
1246
1265
  defaultHeaders: this._defaultHeaders,
1247
- path: "/workRequests/{workRequestId}",
1248
- method: "GET",
1266
+ path: "/userAssessments/{userAssessmentId}",
1267
+ method: "DELETE",
1249
1268
  pathParams: pathParams,
1250
1269
  headerParams: headerParams,
1251
1270
  queryParams: queryParams
@@ -1254,25 +1273,16 @@ class DataSafeClient {
1254
1273
  const response = yield retrier.makeServiceCall(this._httpClient, request);
1255
1274
  const sdkResponse = oci_common_2.composeResponse({
1256
1275
  responseObject: {},
1257
- body: yield response.json(),
1258
- bodyKey: "workRequest",
1259
- bodyModel: model.WorkRequest,
1260
- type: "model.WorkRequest",
1261
1276
  responseHeaders: [
1262
1277
  {
1263
- value: response.headers.get("etag"),
1264
- key: "etag",
1278
+ value: response.headers.get("opc-work-request-id"),
1279
+ key: "opcWorkRequestId",
1265
1280
  dataType: "string"
1266
1281
  },
1267
1282
  {
1268
1283
  value: response.headers.get("opc-request-id"),
1269
1284
  key: "opcRequestId",
1270
1285
  dataType: "string"
1271
- },
1272
- {
1273
- value: response.headers.get("retry-after"),
1274
- key: "retryAfter",
1275
- dataType: "number"
1276
1286
  }
1277
1287
  ]
1278
1288
  });
@@ -1284,33 +1294,1012 @@ class DataSafeClient {
1284
1294
  });
1285
1295
  }
1286
1296
  /**
1287
- * Gets a list of Data Safe private endpoints.
1297
+ * Downloads the privilege script to grant/revoke required roles from the Data Safe account on the target database.
1288
1298
  *
1289
- * @param ListDataSafePrivateEndpointsRequest
1290
- * @return ListDataSafePrivateEndpointsResponse
1299
+ * @param DownloadPrivilegeScriptRequest
1300
+ * @return DownloadPrivilegeScriptResponse
1291
1301
  * @throws OciError when an error occurs
1292
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.3.1/datasafe/ListDataSafePrivateEndpoints.ts.html |here} to see how to use ListDataSafePrivateEndpoints API.
1302
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.5.2/datasafe/DownloadPrivilegeScript.ts.html |here} to see how to use DownloadPrivilegeScript API.
1293
1303
  */
1294
- listDataSafePrivateEndpoints(listDataSafePrivateEndpointsRequest) {
1304
+ downloadPrivilegeScript(downloadPrivilegeScriptRequest) {
1295
1305
  return __awaiter(this, void 0, void 0, function* () {
1296
1306
  if (this.logger)
1297
- this.logger.debug("Calling operation DataSafeClient#listDataSafePrivateEndpoints.");
1307
+ this.logger.debug("Calling operation DataSafeClient#downloadPrivilegeScript.");
1298
1308
  const pathParams = {};
1299
- const queryParams = {
1300
- "compartmentId": listDataSafePrivateEndpointsRequest.compartmentId,
1301
- "displayName": listDataSafePrivateEndpointsRequest.displayName,
1302
- "vcnId": listDataSafePrivateEndpointsRequest.vcnId,
1303
- "lifecycleState": listDataSafePrivateEndpointsRequest.lifecycleState,
1304
- "limit": listDataSafePrivateEndpointsRequest.limit,
1305
- "page": listDataSafePrivateEndpointsRequest.page,
1306
- "sortOrder": listDataSafePrivateEndpointsRequest.sortOrder,
1307
- "sortBy": listDataSafePrivateEndpointsRequest.sortBy,
1308
- "compartmentIdInSubtree": listDataSafePrivateEndpointsRequest.compartmentIdInSubtree,
1309
- "accessLevel": listDataSafePrivateEndpointsRequest.accessLevel
1310
- };
1309
+ const queryParams = {};
1311
1310
  let headerParams = {
1312
1311
  "Content-Type": common.Constants.APPLICATION_JSON,
1313
- "opc-request-id": listDataSafePrivateEndpointsRequest.opcRequestId
1312
+ "opc-retry-token": downloadPrivilegeScriptRequest.opcRetryToken,
1313
+ "opc-request-id": downloadPrivilegeScriptRequest.opcRequestId,
1314
+ "if-match": downloadPrivilegeScriptRequest.ifMatch
1315
+ };
1316
+ const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : {}, downloadPrivilegeScriptRequest.retryConfiguration);
1317
+ if (this.logger)
1318
+ retrier.logger = this.logger;
1319
+ const request = yield oci_common_2.composeRequest({
1320
+ baseEndpoint: this._endpoint,
1321
+ defaultHeaders: this._defaultHeaders,
1322
+ path: "/actions/downloadPrivilegeScript",
1323
+ method: "POST",
1324
+ pathParams: pathParams,
1325
+ headerParams: headerParams,
1326
+ queryParams: queryParams
1327
+ });
1328
+ try {
1329
+ const response = yield retrier.makeServiceCall(this._httpClient, request);
1330
+ const sdkResponse = oci_common_2.composeResponse({
1331
+ responseObject: {},
1332
+ body: response.body,
1333
+ bodyKey: "value",
1334
+ bodyModel: "string",
1335
+ responseHeaders: [
1336
+ {
1337
+ value: response.headers.get("opc-request-id"),
1338
+ key: "opcRequestId",
1339
+ dataType: "string"
1340
+ },
1341
+ {
1342
+ value: response.headers.get("etag"),
1343
+ key: "etag",
1344
+ dataType: "string"
1345
+ },
1346
+ {
1347
+ value: response.headers.get("content-length"),
1348
+ key: "contentLength",
1349
+ dataType: "number"
1350
+ }
1351
+ ]
1352
+ });
1353
+ return sdkResponse;
1354
+ }
1355
+ catch (err) {
1356
+ throw err;
1357
+ }
1358
+ });
1359
+ }
1360
+ /**
1361
+ * Downloads the report of the specified security assessment. To download the security assessment report, it needs to be generated first.
1362
+ * Please use GenerateSecurityAssessmentReport to generate a downloadable report in the preferred format (PDF, XLS).
1363
+ *
1364
+ * @param DownloadSecurityAssessmentReportRequest
1365
+ * @return DownloadSecurityAssessmentReportResponse
1366
+ * @throws OciError when an error occurs
1367
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.5.2/datasafe/DownloadSecurityAssessmentReport.ts.html |here} to see how to use DownloadSecurityAssessmentReport API.
1368
+ */
1369
+ downloadSecurityAssessmentReport(downloadSecurityAssessmentReportRequest) {
1370
+ return __awaiter(this, void 0, void 0, function* () {
1371
+ if (this.logger)
1372
+ this.logger.debug("Calling operation DataSafeClient#downloadSecurityAssessmentReport.");
1373
+ const pathParams = {
1374
+ "{securityAssessmentId}": downloadSecurityAssessmentReportRequest.securityAssessmentId
1375
+ };
1376
+ const queryParams = {};
1377
+ let headerParams = {
1378
+ "Content-Type": common.Constants.APPLICATION_JSON,
1379
+ "if-match": downloadSecurityAssessmentReportRequest.ifMatch,
1380
+ "opc-retry-token": downloadSecurityAssessmentReportRequest.opcRetryToken,
1381
+ "opc-request-id": downloadSecurityAssessmentReportRequest.opcRequestId
1382
+ };
1383
+ const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : {}, downloadSecurityAssessmentReportRequest.retryConfiguration);
1384
+ if (this.logger)
1385
+ retrier.logger = this.logger;
1386
+ const request = yield oci_common_2.composeRequest({
1387
+ baseEndpoint: this._endpoint,
1388
+ defaultHeaders: this._defaultHeaders,
1389
+ path: "/securityAssessments/{securityAssessmentId}/actions/downloadReport",
1390
+ method: "POST",
1391
+ bodyContent: common.ObjectSerializer.serialize(downloadSecurityAssessmentReportRequest.downloadSecurityAssessmentReportDetails, "DownloadSecurityAssessmentReportDetails", model.DownloadSecurityAssessmentReportDetails.getJsonObj),
1392
+ pathParams: pathParams,
1393
+ headerParams: headerParams,
1394
+ queryParams: queryParams
1395
+ });
1396
+ try {
1397
+ const response = yield retrier.makeServiceCall(this._httpClient, request);
1398
+ const sdkResponse = oci_common_2.composeResponse({
1399
+ responseObject: {},
1400
+ body: response.body,
1401
+ bodyKey: "value",
1402
+ bodyModel: "string",
1403
+ responseHeaders: [
1404
+ {
1405
+ value: response.headers.get("opc-request-id"),
1406
+ key: "opcRequestId",
1407
+ dataType: "string"
1408
+ },
1409
+ {
1410
+ value: response.headers.get("etag"),
1411
+ key: "etag",
1412
+ dataType: "string"
1413
+ },
1414
+ {
1415
+ value: response.headers.get("content-length"),
1416
+ key: "contentLength",
1417
+ dataType: "number"
1418
+ }
1419
+ ]
1420
+ });
1421
+ return sdkResponse;
1422
+ }
1423
+ catch (err) {
1424
+ throw err;
1425
+ }
1426
+ });
1427
+ }
1428
+ /**
1429
+ * Downloads the report of the specified user assessment. To download the user assessment report, it needs to be generated first.
1430
+ * Please use GenerateUserAssessmentReport to generate a downloadable report in the preferred format (PDF, XLS).
1431
+ *
1432
+ * @param DownloadUserAssessmentReportRequest
1433
+ * @return DownloadUserAssessmentReportResponse
1434
+ * @throws OciError when an error occurs
1435
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.5.2/datasafe/DownloadUserAssessmentReport.ts.html |here} to see how to use DownloadUserAssessmentReport API.
1436
+ */
1437
+ downloadUserAssessmentReport(downloadUserAssessmentReportRequest) {
1438
+ return __awaiter(this, void 0, void 0, function* () {
1439
+ if (this.logger)
1440
+ this.logger.debug("Calling operation DataSafeClient#downloadUserAssessmentReport.");
1441
+ const pathParams = {
1442
+ "{userAssessmentId}": downloadUserAssessmentReportRequest.userAssessmentId
1443
+ };
1444
+ const queryParams = {};
1445
+ let headerParams = {
1446
+ "Content-Type": common.Constants.APPLICATION_JSON,
1447
+ "if-match": downloadUserAssessmentReportRequest.ifMatch,
1448
+ "opc-retry-token": downloadUserAssessmentReportRequest.opcRetryToken,
1449
+ "opc-request-id": downloadUserAssessmentReportRequest.opcRequestId
1450
+ };
1451
+ const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : {}, downloadUserAssessmentReportRequest.retryConfiguration);
1452
+ if (this.logger)
1453
+ retrier.logger = this.logger;
1454
+ const request = yield oci_common_2.composeRequest({
1455
+ baseEndpoint: this._endpoint,
1456
+ defaultHeaders: this._defaultHeaders,
1457
+ path: "/userAssessments/{userAssessmentId}/actions/downloadReport",
1458
+ method: "POST",
1459
+ bodyContent: common.ObjectSerializer.serialize(downloadUserAssessmentReportRequest.downloadUserAssessmentReportDetails, "DownloadUserAssessmentReportDetails", model.DownloadUserAssessmentReportDetails.getJsonObj),
1460
+ pathParams: pathParams,
1461
+ headerParams: headerParams,
1462
+ queryParams: queryParams
1463
+ });
1464
+ try {
1465
+ const response = yield retrier.makeServiceCall(this._httpClient, request);
1466
+ const sdkResponse = oci_common_2.composeResponse({
1467
+ responseObject: {},
1468
+ body: response.body,
1469
+ bodyKey: "value",
1470
+ bodyModel: "string",
1471
+ responseHeaders: [
1472
+ {
1473
+ value: response.headers.get("opc-request-id"),
1474
+ key: "opcRequestId",
1475
+ dataType: "string"
1476
+ },
1477
+ {
1478
+ value: response.headers.get("etag"),
1479
+ key: "etag",
1480
+ dataType: "string"
1481
+ },
1482
+ {
1483
+ value: response.headers.get("content-length"),
1484
+ key: "contentLength",
1485
+ dataType: "number"
1486
+ }
1487
+ ]
1488
+ });
1489
+ return sdkResponse;
1490
+ }
1491
+ catch (err) {
1492
+ throw err;
1493
+ }
1494
+ });
1495
+ }
1496
+ /**
1497
+ * Enables Data Safe in the tenancy and region.
1498
+ *
1499
+ * @param EnableDataSafeConfigurationRequest
1500
+ * @return EnableDataSafeConfigurationResponse
1501
+ * @throws OciError when an error occurs
1502
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.5.2/datasafe/EnableDataSafeConfiguration.ts.html |here} to see how to use EnableDataSafeConfiguration API.
1503
+ */
1504
+ enableDataSafeConfiguration(enableDataSafeConfigurationRequest) {
1505
+ return __awaiter(this, void 0, void 0, function* () {
1506
+ if (this.logger)
1507
+ this.logger.debug("Calling operation DataSafeClient#enableDataSafeConfiguration.");
1508
+ const pathParams = {};
1509
+ const queryParams = {
1510
+ "compartmentId": enableDataSafeConfigurationRequest.compartmentId
1511
+ };
1512
+ let headerParams = {
1513
+ "Content-Type": common.Constants.APPLICATION_JSON,
1514
+ "if-match": enableDataSafeConfigurationRequest.ifMatch,
1515
+ "opc-request-id": enableDataSafeConfigurationRequest.opcRequestId
1516
+ };
1517
+ const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : {}, enableDataSafeConfigurationRequest.retryConfiguration);
1518
+ if (this.logger)
1519
+ retrier.logger = this.logger;
1520
+ const request = yield oci_common_2.composeRequest({
1521
+ baseEndpoint: this._endpoint,
1522
+ defaultHeaders: this._defaultHeaders,
1523
+ path: "/configuration",
1524
+ method: "PUT",
1525
+ bodyContent: common.ObjectSerializer.serialize(enableDataSafeConfigurationRequest.enableDataSafeConfigurationDetails, "EnableDataSafeConfigurationDetails", model.EnableDataSafeConfigurationDetails.getJsonObj),
1526
+ pathParams: pathParams,
1527
+ headerParams: headerParams,
1528
+ queryParams: queryParams
1529
+ });
1530
+ try {
1531
+ const response = yield retrier.makeServiceCall(this._httpClient, request);
1532
+ const sdkResponse = oci_common_2.composeResponse({
1533
+ responseObject: {},
1534
+ responseHeaders: [
1535
+ {
1536
+ value: response.headers.get("opc-work-request-id"),
1537
+ key: "opcWorkRequestId",
1538
+ dataType: "string"
1539
+ },
1540
+ {
1541
+ value: response.headers.get("opc-request-id"),
1542
+ key: "opcRequestId",
1543
+ dataType: "string"
1544
+ }
1545
+ ]
1546
+ });
1547
+ return sdkResponse;
1548
+ }
1549
+ catch (err) {
1550
+ throw err;
1551
+ }
1552
+ });
1553
+ }
1554
+ /**
1555
+ * Creates and downloads the configuration of the specified on-premises connector.
1556
+ *
1557
+ * @param GenerateOnPremConnectorConfigurationRequest
1558
+ * @return GenerateOnPremConnectorConfigurationResponse
1559
+ * @throws OciError when an error occurs
1560
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.5.2/datasafe/GenerateOnPremConnectorConfiguration.ts.html |here} to see how to use GenerateOnPremConnectorConfiguration API.
1561
+ */
1562
+ generateOnPremConnectorConfiguration(generateOnPremConnectorConfigurationRequest) {
1563
+ return __awaiter(this, void 0, void 0, function* () {
1564
+ if (this.logger)
1565
+ this.logger.debug("Calling operation DataSafeClient#generateOnPremConnectorConfiguration.");
1566
+ const pathParams = {
1567
+ "{onPremConnectorId}": generateOnPremConnectorConfigurationRequest.onPremConnectorId
1568
+ };
1569
+ const queryParams = {};
1570
+ let headerParams = {
1571
+ "Content-Type": common.Constants.APPLICATION_JSON,
1572
+ "opc-retry-token": generateOnPremConnectorConfigurationRequest.opcRetryToken,
1573
+ "opc-request-id": generateOnPremConnectorConfigurationRequest.opcRequestId,
1574
+ "if-match": generateOnPremConnectorConfigurationRequest.ifMatch
1575
+ };
1576
+ const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : {}, generateOnPremConnectorConfigurationRequest.retryConfiguration);
1577
+ if (this.logger)
1578
+ retrier.logger = this.logger;
1579
+ const request = yield oci_common_2.composeRequest({
1580
+ baseEndpoint: this._endpoint,
1581
+ defaultHeaders: this._defaultHeaders,
1582
+ path: "/onPremConnectors/{onPremConnectorId}/actions/generateConfiguration",
1583
+ method: "POST",
1584
+ bodyContent: common.ObjectSerializer.serialize(generateOnPremConnectorConfigurationRequest.generateOnPremConnectorConfigurationDetails, "GenerateOnPremConnectorConfigurationDetails", model.GenerateOnPremConnectorConfigurationDetails.getJsonObj),
1585
+ pathParams: pathParams,
1586
+ headerParams: headerParams,
1587
+ queryParams: queryParams
1588
+ });
1589
+ try {
1590
+ const response = yield retrier.makeServiceCall(this._httpClient, request);
1591
+ const sdkResponse = oci_common_2.composeResponse({
1592
+ responseObject: {},
1593
+ body: response.body,
1594
+ bodyKey: "value",
1595
+ bodyModel: "string",
1596
+ responseHeaders: [
1597
+ {
1598
+ value: response.headers.get("opc-request-id"),
1599
+ key: "opcRequestId",
1600
+ dataType: "string"
1601
+ },
1602
+ {
1603
+ value: response.headers.get("content-length"),
1604
+ key: "contentLength",
1605
+ dataType: "number"
1606
+ },
1607
+ {
1608
+ value: response.headers.get("last-modified"),
1609
+ key: "lastModified",
1610
+ dataType: "Date"
1611
+ }
1612
+ ]
1613
+ });
1614
+ return sdkResponse;
1615
+ }
1616
+ catch (err) {
1617
+ throw err;
1618
+ }
1619
+ });
1620
+ }
1621
+ /**
1622
+ * Generates the report of the specified security assessment. You can get the report in PDF or XLS format.
1623
+ * After generating the report, use DownloadSecurityAssessmentReport to download it in the preferred format.
1624
+ *
1625
+ * @param GenerateSecurityAssessmentReportRequest
1626
+ * @return GenerateSecurityAssessmentReportResponse
1627
+ * @throws OciError when an error occurs
1628
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.5.2/datasafe/GenerateSecurityAssessmentReport.ts.html |here} to see how to use GenerateSecurityAssessmentReport API.
1629
+ */
1630
+ generateSecurityAssessmentReport(generateSecurityAssessmentReportRequest) {
1631
+ return __awaiter(this, void 0, void 0, function* () {
1632
+ if (this.logger)
1633
+ this.logger.debug("Calling operation DataSafeClient#generateSecurityAssessmentReport.");
1634
+ const pathParams = {
1635
+ "{securityAssessmentId}": generateSecurityAssessmentReportRequest.securityAssessmentId
1636
+ };
1637
+ const queryParams = {};
1638
+ let headerParams = {
1639
+ "Content-Type": common.Constants.APPLICATION_JSON,
1640
+ "if-match": generateSecurityAssessmentReportRequest.ifMatch,
1641
+ "opc-retry-token": generateSecurityAssessmentReportRequest.opcRetryToken,
1642
+ "opc-request-id": generateSecurityAssessmentReportRequest.opcRequestId
1643
+ };
1644
+ const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : {}, generateSecurityAssessmentReportRequest.retryConfiguration);
1645
+ if (this.logger)
1646
+ retrier.logger = this.logger;
1647
+ const request = yield oci_common_2.composeRequest({
1648
+ baseEndpoint: this._endpoint,
1649
+ defaultHeaders: this._defaultHeaders,
1650
+ path: "/securityAssessments/{securityAssessmentId}/actions/generateReport",
1651
+ method: "POST",
1652
+ bodyContent: common.ObjectSerializer.serialize(generateSecurityAssessmentReportRequest.generateSecurityAssessmentReportDetails, "GenerateSecurityAssessmentReportDetails", model.GenerateSecurityAssessmentReportDetails.getJsonObj),
1653
+ pathParams: pathParams,
1654
+ headerParams: headerParams,
1655
+ queryParams: queryParams
1656
+ });
1657
+ try {
1658
+ const response = yield retrier.makeServiceCall(this._httpClient, request);
1659
+ const sdkResponse = oci_common_2.composeResponse({
1660
+ responseObject: {},
1661
+ responseHeaders: [
1662
+ {
1663
+ value: response.headers.get("opc-work-request-id"),
1664
+ key: "opcWorkRequestId",
1665
+ dataType: "string"
1666
+ },
1667
+ {
1668
+ value: response.headers.get("opc-request-id"),
1669
+ key: "opcRequestId",
1670
+ dataType: "string"
1671
+ }
1672
+ ]
1673
+ });
1674
+ return sdkResponse;
1675
+ }
1676
+ catch (err) {
1677
+ throw err;
1678
+ }
1679
+ });
1680
+ }
1681
+ /**
1682
+ * Generates the report of the specified user assessment. The report is available in PDF or XLS format.
1683
+ * After generating the report, use DownloadUserAssessmentReport to download it in the preferred format.
1684
+ *
1685
+ * @param GenerateUserAssessmentReportRequest
1686
+ * @return GenerateUserAssessmentReportResponse
1687
+ * @throws OciError when an error occurs
1688
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.5.2/datasafe/GenerateUserAssessmentReport.ts.html |here} to see how to use GenerateUserAssessmentReport API.
1689
+ */
1690
+ generateUserAssessmentReport(generateUserAssessmentReportRequest) {
1691
+ return __awaiter(this, void 0, void 0, function* () {
1692
+ if (this.logger)
1693
+ this.logger.debug("Calling operation DataSafeClient#generateUserAssessmentReport.");
1694
+ const pathParams = {
1695
+ "{userAssessmentId}": generateUserAssessmentReportRequest.userAssessmentId
1696
+ };
1697
+ const queryParams = {};
1698
+ let headerParams = {
1699
+ "Content-Type": common.Constants.APPLICATION_JSON,
1700
+ "if-match": generateUserAssessmentReportRequest.ifMatch,
1701
+ "opc-retry-token": generateUserAssessmentReportRequest.opcRetryToken,
1702
+ "opc-request-id": generateUserAssessmentReportRequest.opcRequestId
1703
+ };
1704
+ const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : {}, generateUserAssessmentReportRequest.retryConfiguration);
1705
+ if (this.logger)
1706
+ retrier.logger = this.logger;
1707
+ const request = yield oci_common_2.composeRequest({
1708
+ baseEndpoint: this._endpoint,
1709
+ defaultHeaders: this._defaultHeaders,
1710
+ path: "/userAssessments/{userAssessmentId}/actions/generateReport",
1711
+ method: "POST",
1712
+ bodyContent: common.ObjectSerializer.serialize(generateUserAssessmentReportRequest.generateUserAssessmentReportDetails, "GenerateUserAssessmentReportDetails", model.GenerateUserAssessmentReportDetails.getJsonObj),
1713
+ pathParams: pathParams,
1714
+ headerParams: headerParams,
1715
+ queryParams: queryParams
1716
+ });
1717
+ try {
1718
+ const response = yield retrier.makeServiceCall(this._httpClient, request);
1719
+ const sdkResponse = oci_common_2.composeResponse({
1720
+ responseObject: {},
1721
+ responseHeaders: [
1722
+ {
1723
+ value: response.headers.get("opc-work-request-id"),
1724
+ key: "opcWorkRequestId",
1725
+ dataType: "string"
1726
+ },
1727
+ {
1728
+ value: response.headers.get("opc-request-id"),
1729
+ key: "opcRequestId",
1730
+ dataType: "string"
1731
+ }
1732
+ ]
1733
+ });
1734
+ return sdkResponse;
1735
+ }
1736
+ catch (err) {
1737
+ throw err;
1738
+ }
1739
+ });
1740
+ }
1741
+ /**
1742
+ * Gets the details of the Data Safe configuration.
1743
+ * @param GetDataSafeConfigurationRequest
1744
+ * @return GetDataSafeConfigurationResponse
1745
+ * @throws OciError when an error occurs
1746
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.5.2/datasafe/GetDataSafeConfiguration.ts.html |here} to see how to use GetDataSafeConfiguration API.
1747
+ */
1748
+ getDataSafeConfiguration(getDataSafeConfigurationRequest) {
1749
+ return __awaiter(this, void 0, void 0, function* () {
1750
+ if (this.logger)
1751
+ this.logger.debug("Calling operation DataSafeClient#getDataSafeConfiguration.");
1752
+ const pathParams = {};
1753
+ const queryParams = {
1754
+ "compartmentId": getDataSafeConfigurationRequest.compartmentId
1755
+ };
1756
+ let headerParams = {
1757
+ "Content-Type": common.Constants.APPLICATION_JSON,
1758
+ "opc-request-id": getDataSafeConfigurationRequest.opcRequestId
1759
+ };
1760
+ const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : {}, getDataSafeConfigurationRequest.retryConfiguration);
1761
+ if (this.logger)
1762
+ retrier.logger = this.logger;
1763
+ const request = yield oci_common_2.composeRequest({
1764
+ baseEndpoint: this._endpoint,
1765
+ defaultHeaders: this._defaultHeaders,
1766
+ path: "/configuration",
1767
+ method: "GET",
1768
+ pathParams: pathParams,
1769
+ headerParams: headerParams,
1770
+ queryParams: queryParams
1771
+ });
1772
+ try {
1773
+ const response = yield retrier.makeServiceCall(this._httpClient, request);
1774
+ const sdkResponse = oci_common_2.composeResponse({
1775
+ responseObject: {},
1776
+ body: yield response.json(),
1777
+ bodyKey: "dataSafeConfiguration",
1778
+ bodyModel: model.DataSafeConfiguration,
1779
+ type: "model.DataSafeConfiguration",
1780
+ responseHeaders: [
1781
+ {
1782
+ value: response.headers.get("etag"),
1783
+ key: "etag",
1784
+ dataType: "string"
1785
+ },
1786
+ {
1787
+ value: response.headers.get("opc-request-id"),
1788
+ key: "opcRequestId",
1789
+ dataType: "string"
1790
+ }
1791
+ ]
1792
+ });
1793
+ return sdkResponse;
1794
+ }
1795
+ catch (err) {
1796
+ throw err;
1797
+ }
1798
+ });
1799
+ }
1800
+ /**
1801
+ * Gets the details of the specified Data Safe private endpoint.
1802
+ * @param GetDataSafePrivateEndpointRequest
1803
+ * @return GetDataSafePrivateEndpointResponse
1804
+ * @throws OciError when an error occurs
1805
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.5.2/datasafe/GetDataSafePrivateEndpoint.ts.html |here} to see how to use GetDataSafePrivateEndpoint API.
1806
+ */
1807
+ getDataSafePrivateEndpoint(getDataSafePrivateEndpointRequest) {
1808
+ return __awaiter(this, void 0, void 0, function* () {
1809
+ if (this.logger)
1810
+ this.logger.debug("Calling operation DataSafeClient#getDataSafePrivateEndpoint.");
1811
+ const pathParams = {
1812
+ "{dataSafePrivateEndpointId}": getDataSafePrivateEndpointRequest.dataSafePrivateEndpointId
1813
+ };
1814
+ const queryParams = {};
1815
+ let headerParams = {
1816
+ "Content-Type": common.Constants.APPLICATION_JSON,
1817
+ "opc-request-id": getDataSafePrivateEndpointRequest.opcRequestId
1818
+ };
1819
+ const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : {}, getDataSafePrivateEndpointRequest.retryConfiguration);
1820
+ if (this.logger)
1821
+ retrier.logger = this.logger;
1822
+ const request = yield oci_common_2.composeRequest({
1823
+ baseEndpoint: this._endpoint,
1824
+ defaultHeaders: this._defaultHeaders,
1825
+ path: "/dataSafePrivateEndpoints/{dataSafePrivateEndpointId}",
1826
+ method: "GET",
1827
+ pathParams: pathParams,
1828
+ headerParams: headerParams,
1829
+ queryParams: queryParams
1830
+ });
1831
+ try {
1832
+ const response = yield retrier.makeServiceCall(this._httpClient, request);
1833
+ const sdkResponse = oci_common_2.composeResponse({
1834
+ responseObject: {},
1835
+ body: yield response.json(),
1836
+ bodyKey: "dataSafePrivateEndpoint",
1837
+ bodyModel: model.DataSafePrivateEndpoint,
1838
+ type: "model.DataSafePrivateEndpoint",
1839
+ responseHeaders: [
1840
+ {
1841
+ value: response.headers.get("etag"),
1842
+ key: "etag",
1843
+ dataType: "string"
1844
+ },
1845
+ {
1846
+ value: response.headers.get("opc-request-id"),
1847
+ key: "opcRequestId",
1848
+ dataType: "string"
1849
+ }
1850
+ ]
1851
+ });
1852
+ return sdkResponse;
1853
+ }
1854
+ catch (err) {
1855
+ throw err;
1856
+ }
1857
+ });
1858
+ }
1859
+ /**
1860
+ * Gets the details of the specified on-premises connector.
1861
+ * @param GetOnPremConnectorRequest
1862
+ * @return GetOnPremConnectorResponse
1863
+ * @throws OciError when an error occurs
1864
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.5.2/datasafe/GetOnPremConnector.ts.html |here} to see how to use GetOnPremConnector API.
1865
+ */
1866
+ getOnPremConnector(getOnPremConnectorRequest) {
1867
+ return __awaiter(this, void 0, void 0, function* () {
1868
+ if (this.logger)
1869
+ this.logger.debug("Calling operation DataSafeClient#getOnPremConnector.");
1870
+ const pathParams = {
1871
+ "{onPremConnectorId}": getOnPremConnectorRequest.onPremConnectorId
1872
+ };
1873
+ const queryParams = {};
1874
+ let headerParams = {
1875
+ "Content-Type": common.Constants.APPLICATION_JSON,
1876
+ "opc-request-id": getOnPremConnectorRequest.opcRequestId
1877
+ };
1878
+ const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : {}, getOnPremConnectorRequest.retryConfiguration);
1879
+ if (this.logger)
1880
+ retrier.logger = this.logger;
1881
+ const request = yield oci_common_2.composeRequest({
1882
+ baseEndpoint: this._endpoint,
1883
+ defaultHeaders: this._defaultHeaders,
1884
+ path: "/onPremConnectors/{onPremConnectorId}",
1885
+ method: "GET",
1886
+ pathParams: pathParams,
1887
+ headerParams: headerParams,
1888
+ queryParams: queryParams
1889
+ });
1890
+ try {
1891
+ const response = yield retrier.makeServiceCall(this._httpClient, request);
1892
+ const sdkResponse = oci_common_2.composeResponse({
1893
+ responseObject: {},
1894
+ body: yield response.json(),
1895
+ bodyKey: "onPremConnector",
1896
+ bodyModel: model.OnPremConnector,
1897
+ type: "model.OnPremConnector",
1898
+ responseHeaders: [
1899
+ {
1900
+ value: response.headers.get("etag"),
1901
+ key: "etag",
1902
+ dataType: "string"
1903
+ },
1904
+ {
1905
+ value: response.headers.get("opc-request-id"),
1906
+ key: "opcRequestId",
1907
+ dataType: "string"
1908
+ }
1909
+ ]
1910
+ });
1911
+ return sdkResponse;
1912
+ }
1913
+ catch (err) {
1914
+ throw err;
1915
+ }
1916
+ });
1917
+ }
1918
+ /**
1919
+ * Gets the details of the specified security assessment.
1920
+ * @param GetSecurityAssessmentRequest
1921
+ * @return GetSecurityAssessmentResponse
1922
+ * @throws OciError when an error occurs
1923
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.5.2/datasafe/GetSecurityAssessment.ts.html |here} to see how to use GetSecurityAssessment API.
1924
+ */
1925
+ getSecurityAssessment(getSecurityAssessmentRequest) {
1926
+ return __awaiter(this, void 0, void 0, function* () {
1927
+ if (this.logger)
1928
+ this.logger.debug("Calling operation DataSafeClient#getSecurityAssessment.");
1929
+ const pathParams = {
1930
+ "{securityAssessmentId}": getSecurityAssessmentRequest.securityAssessmentId
1931
+ };
1932
+ const queryParams = {};
1933
+ let headerParams = {
1934
+ "Content-Type": common.Constants.APPLICATION_JSON,
1935
+ "opc-request-id": getSecurityAssessmentRequest.opcRequestId
1936
+ };
1937
+ const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : {}, getSecurityAssessmentRequest.retryConfiguration);
1938
+ if (this.logger)
1939
+ retrier.logger = this.logger;
1940
+ const request = yield oci_common_2.composeRequest({
1941
+ baseEndpoint: this._endpoint,
1942
+ defaultHeaders: this._defaultHeaders,
1943
+ path: "/securityAssessments/{securityAssessmentId}",
1944
+ method: "GET",
1945
+ pathParams: pathParams,
1946
+ headerParams: headerParams,
1947
+ queryParams: queryParams
1948
+ });
1949
+ try {
1950
+ const response = yield retrier.makeServiceCall(this._httpClient, request);
1951
+ const sdkResponse = oci_common_2.composeResponse({
1952
+ responseObject: {},
1953
+ body: yield response.json(),
1954
+ bodyKey: "securityAssessment",
1955
+ bodyModel: model.SecurityAssessment,
1956
+ type: "model.SecurityAssessment",
1957
+ responseHeaders: [
1958
+ {
1959
+ value: response.headers.get("opc-request-id"),
1960
+ key: "opcRequestId",
1961
+ dataType: "string"
1962
+ },
1963
+ {
1964
+ value: response.headers.get("etag"),
1965
+ key: "etag",
1966
+ dataType: "string"
1967
+ }
1968
+ ]
1969
+ });
1970
+ return sdkResponse;
1971
+ }
1972
+ catch (err) {
1973
+ throw err;
1974
+ }
1975
+ });
1976
+ }
1977
+ /**
1978
+ * Gets the details of the comparison report on the security assessments submitted for comparison.
1979
+ * @param GetSecurityAssessmentComparisonRequest
1980
+ * @return GetSecurityAssessmentComparisonResponse
1981
+ * @throws OciError when an error occurs
1982
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.5.2/datasafe/GetSecurityAssessmentComparison.ts.html |here} to see how to use GetSecurityAssessmentComparison API.
1983
+ */
1984
+ getSecurityAssessmentComparison(getSecurityAssessmentComparisonRequest) {
1985
+ return __awaiter(this, void 0, void 0, function* () {
1986
+ if (this.logger)
1987
+ this.logger.debug("Calling operation DataSafeClient#getSecurityAssessmentComparison.");
1988
+ const pathParams = {
1989
+ "{securityAssessmentId}": getSecurityAssessmentComparisonRequest.securityAssessmentId,
1990
+ "{comparisonSecurityAssessmentId}": getSecurityAssessmentComparisonRequest.comparisonSecurityAssessmentId
1991
+ };
1992
+ const queryParams = {};
1993
+ let headerParams = {
1994
+ "Content-Type": common.Constants.APPLICATION_JSON,
1995
+ "opc-request-id": getSecurityAssessmentComparisonRequest.opcRequestId
1996
+ };
1997
+ const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : {}, getSecurityAssessmentComparisonRequest.retryConfiguration);
1998
+ if (this.logger)
1999
+ retrier.logger = this.logger;
2000
+ const request = yield oci_common_2.composeRequest({
2001
+ baseEndpoint: this._endpoint,
2002
+ defaultHeaders: this._defaultHeaders,
2003
+ path: "/securityAssessments/{securityAssessmentId}/comparison/{comparisonSecurityAssessmentId}",
2004
+ method: "GET",
2005
+ pathParams: pathParams,
2006
+ headerParams: headerParams,
2007
+ queryParams: queryParams
2008
+ });
2009
+ try {
2010
+ const response = yield retrier.makeServiceCall(this._httpClient, request);
2011
+ const sdkResponse = oci_common_2.composeResponse({
2012
+ responseObject: {},
2013
+ body: yield response.json(),
2014
+ bodyKey: "securityAssessmentComparison",
2015
+ bodyModel: model.SecurityAssessmentComparison,
2016
+ type: "model.SecurityAssessmentComparison",
2017
+ responseHeaders: [
2018
+ {
2019
+ value: response.headers.get("opc-request-id"),
2020
+ key: "opcRequestId",
2021
+ dataType: "string"
2022
+ },
2023
+ {
2024
+ value: response.headers.get("etag"),
2025
+ key: "etag",
2026
+ dataType: "string"
2027
+ }
2028
+ ]
2029
+ });
2030
+ return sdkResponse;
2031
+ }
2032
+ catch (err) {
2033
+ throw err;
2034
+ }
2035
+ });
2036
+ }
2037
+ /**
2038
+ * Returns the details of the specified Data Safe target database.
2039
+ *
2040
+ * @param GetTargetDatabaseRequest
2041
+ * @return GetTargetDatabaseResponse
2042
+ * @throws OciError when an error occurs
2043
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.5.2/datasafe/GetTargetDatabase.ts.html |here} to see how to use GetTargetDatabase API.
2044
+ */
2045
+ getTargetDatabase(getTargetDatabaseRequest) {
2046
+ return __awaiter(this, void 0, void 0, function* () {
2047
+ if (this.logger)
2048
+ this.logger.debug("Calling operation DataSafeClient#getTargetDatabase.");
2049
+ const pathParams = {
2050
+ "{targetDatabaseId}": getTargetDatabaseRequest.targetDatabaseId
2051
+ };
2052
+ const queryParams = {};
2053
+ let headerParams = {
2054
+ "Content-Type": common.Constants.APPLICATION_JSON,
2055
+ "opc-request-id": getTargetDatabaseRequest.opcRequestId
2056
+ };
2057
+ const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : {}, getTargetDatabaseRequest.retryConfiguration);
2058
+ if (this.logger)
2059
+ retrier.logger = this.logger;
2060
+ const request = yield oci_common_2.composeRequest({
2061
+ baseEndpoint: this._endpoint,
2062
+ defaultHeaders: this._defaultHeaders,
2063
+ path: "/targetDatabases/{targetDatabaseId}",
2064
+ method: "GET",
2065
+ pathParams: pathParams,
2066
+ headerParams: headerParams,
2067
+ queryParams: queryParams
2068
+ });
2069
+ try {
2070
+ const response = yield retrier.makeServiceCall(this._httpClient, request);
2071
+ const sdkResponse = oci_common_2.composeResponse({
2072
+ responseObject: {},
2073
+ body: yield response.json(),
2074
+ bodyKey: "targetDatabase",
2075
+ bodyModel: model.TargetDatabase,
2076
+ type: "model.TargetDatabase",
2077
+ responseHeaders: [
2078
+ {
2079
+ value: response.headers.get("etag"),
2080
+ key: "etag",
2081
+ dataType: "string"
2082
+ },
2083
+ {
2084
+ value: response.headers.get("opc-request-id"),
2085
+ key: "opcRequestId",
2086
+ dataType: "string"
2087
+ }
2088
+ ]
2089
+ });
2090
+ return sdkResponse;
2091
+ }
2092
+ catch (err) {
2093
+ throw err;
2094
+ }
2095
+ });
2096
+ }
2097
+ /**
2098
+ * Gets a user assessment by identifier.
2099
+ * @param GetUserAssessmentRequest
2100
+ * @return GetUserAssessmentResponse
2101
+ * @throws OciError when an error occurs
2102
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.5.2/datasafe/GetUserAssessment.ts.html |here} to see how to use GetUserAssessment API.
2103
+ */
2104
+ getUserAssessment(getUserAssessmentRequest) {
2105
+ return __awaiter(this, void 0, void 0, function* () {
2106
+ if (this.logger)
2107
+ this.logger.debug("Calling operation DataSafeClient#getUserAssessment.");
2108
+ const pathParams = {
2109
+ "{userAssessmentId}": getUserAssessmentRequest.userAssessmentId
2110
+ };
2111
+ const queryParams = {};
2112
+ let headerParams = {
2113
+ "Content-Type": common.Constants.APPLICATION_JSON,
2114
+ "opc-request-id": getUserAssessmentRequest.opcRequestId
2115
+ };
2116
+ const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : {}, getUserAssessmentRequest.retryConfiguration);
2117
+ if (this.logger)
2118
+ retrier.logger = this.logger;
2119
+ const request = yield oci_common_2.composeRequest({
2120
+ baseEndpoint: this._endpoint,
2121
+ defaultHeaders: this._defaultHeaders,
2122
+ path: "/userAssessments/{userAssessmentId}",
2123
+ method: "GET",
2124
+ pathParams: pathParams,
2125
+ headerParams: headerParams,
2126
+ queryParams: queryParams
2127
+ });
2128
+ try {
2129
+ const response = yield retrier.makeServiceCall(this._httpClient, request);
2130
+ const sdkResponse = oci_common_2.composeResponse({
2131
+ responseObject: {},
2132
+ body: yield response.json(),
2133
+ bodyKey: "userAssessment",
2134
+ bodyModel: model.UserAssessment,
2135
+ type: "model.UserAssessment",
2136
+ responseHeaders: [
2137
+ {
2138
+ value: response.headers.get("etag"),
2139
+ key: "etag",
2140
+ dataType: "string"
2141
+ },
2142
+ {
2143
+ value: response.headers.get("opc-request-id"),
2144
+ key: "opcRequestId",
2145
+ dataType: "string"
2146
+ }
2147
+ ]
2148
+ });
2149
+ return sdkResponse;
2150
+ }
2151
+ catch (err) {
2152
+ throw err;
2153
+ }
2154
+ });
2155
+ }
2156
+ /**
2157
+ * Gets the details of the comparison report for the user assessments provided.
2158
+ * @param GetUserAssessmentComparisonRequest
2159
+ * @return GetUserAssessmentComparisonResponse
2160
+ * @throws OciError when an error occurs
2161
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.5.2/datasafe/GetUserAssessmentComparison.ts.html |here} to see how to use GetUserAssessmentComparison API.
2162
+ */
2163
+ getUserAssessmentComparison(getUserAssessmentComparisonRequest) {
2164
+ return __awaiter(this, void 0, void 0, function* () {
2165
+ if (this.logger)
2166
+ this.logger.debug("Calling operation DataSafeClient#getUserAssessmentComparison.");
2167
+ const pathParams = {
2168
+ "{userAssessmentId}": getUserAssessmentComparisonRequest.userAssessmentId,
2169
+ "{comparisonUserAssessmentId}": getUserAssessmentComparisonRequest.comparisonUserAssessmentId
2170
+ };
2171
+ const queryParams = {};
2172
+ let headerParams = {
2173
+ "Content-Type": common.Constants.APPLICATION_JSON,
2174
+ "opc-request-id": getUserAssessmentComparisonRequest.opcRequestId
2175
+ };
2176
+ const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : {}, getUserAssessmentComparisonRequest.retryConfiguration);
2177
+ if (this.logger)
2178
+ retrier.logger = this.logger;
2179
+ const request = yield oci_common_2.composeRequest({
2180
+ baseEndpoint: this._endpoint,
2181
+ defaultHeaders: this._defaultHeaders,
2182
+ path: "/userAssessments/{userAssessmentId}/comparison/{comparisonUserAssessmentId}",
2183
+ method: "GET",
2184
+ pathParams: pathParams,
2185
+ headerParams: headerParams,
2186
+ queryParams: queryParams
2187
+ });
2188
+ try {
2189
+ const response = yield retrier.makeServiceCall(this._httpClient, request);
2190
+ const sdkResponse = oci_common_2.composeResponse({
2191
+ responseObject: {},
2192
+ body: yield response.json(),
2193
+ bodyKey: "userAssessmentComparison",
2194
+ bodyModel: model.UserAssessmentComparison,
2195
+ type: "model.UserAssessmentComparison",
2196
+ responseHeaders: [
2197
+ {
2198
+ value: response.headers.get("opc-request-id"),
2199
+ key: "opcRequestId",
2200
+ dataType: "string"
2201
+ }
2202
+ ]
2203
+ });
2204
+ return sdkResponse;
2205
+ }
2206
+ catch (err) {
2207
+ throw err;
2208
+ }
2209
+ });
2210
+ }
2211
+ /**
2212
+ * Gets the details of the specified work request.
2213
+ * @param GetWorkRequestRequest
2214
+ * @return GetWorkRequestResponse
2215
+ * @throws OciError when an error occurs
2216
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.5.2/datasafe/GetWorkRequest.ts.html |here} to see how to use GetWorkRequest API.
2217
+ */
2218
+ getWorkRequest(getWorkRequestRequest) {
2219
+ return __awaiter(this, void 0, void 0, function* () {
2220
+ if (this.logger)
2221
+ this.logger.debug("Calling operation DataSafeClient#getWorkRequest.");
2222
+ const pathParams = {
2223
+ "{workRequestId}": getWorkRequestRequest.workRequestId
2224
+ };
2225
+ const queryParams = {};
2226
+ let headerParams = {
2227
+ "Content-Type": common.Constants.APPLICATION_JSON,
2228
+ "opc-request-id": getWorkRequestRequest.opcRequestId
2229
+ };
2230
+ const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : {}, getWorkRequestRequest.retryConfiguration);
2231
+ if (this.logger)
2232
+ retrier.logger = this.logger;
2233
+ const request = yield oci_common_2.composeRequest({
2234
+ baseEndpoint: this._endpoint,
2235
+ defaultHeaders: this._defaultHeaders,
2236
+ path: "/workRequests/{workRequestId}",
2237
+ method: "GET",
2238
+ pathParams: pathParams,
2239
+ headerParams: headerParams,
2240
+ queryParams: queryParams
2241
+ });
2242
+ try {
2243
+ const response = yield retrier.makeServiceCall(this._httpClient, request);
2244
+ const sdkResponse = oci_common_2.composeResponse({
2245
+ responseObject: {},
2246
+ body: yield response.json(),
2247
+ bodyKey: "workRequest",
2248
+ bodyModel: model.WorkRequest,
2249
+ type: "model.WorkRequest",
2250
+ responseHeaders: [
2251
+ {
2252
+ value: response.headers.get("etag"),
2253
+ key: "etag",
2254
+ dataType: "string"
2255
+ },
2256
+ {
2257
+ value: response.headers.get("opc-request-id"),
2258
+ key: "opcRequestId",
2259
+ dataType: "string"
2260
+ },
2261
+ {
2262
+ value: response.headers.get("retry-after"),
2263
+ key: "retryAfter",
2264
+ dataType: "number"
2265
+ }
2266
+ ]
2267
+ });
2268
+ return sdkResponse;
2269
+ }
2270
+ catch (err) {
2271
+ throw err;
2272
+ }
2273
+ });
2274
+ }
2275
+ /**
2276
+ * Gets a list of Data Safe private endpoints.
2277
+ *
2278
+ * @param ListDataSafePrivateEndpointsRequest
2279
+ * @return ListDataSafePrivateEndpointsResponse
2280
+ * @throws OciError when an error occurs
2281
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.5.2/datasafe/ListDataSafePrivateEndpoints.ts.html |here} to see how to use ListDataSafePrivateEndpoints API.
2282
+ */
2283
+ listDataSafePrivateEndpoints(listDataSafePrivateEndpointsRequest) {
2284
+ return __awaiter(this, void 0, void 0, function* () {
2285
+ if (this.logger)
2286
+ this.logger.debug("Calling operation DataSafeClient#listDataSafePrivateEndpoints.");
2287
+ const pathParams = {};
2288
+ const queryParams = {
2289
+ "compartmentId": listDataSafePrivateEndpointsRequest.compartmentId,
2290
+ "displayName": listDataSafePrivateEndpointsRequest.displayName,
2291
+ "vcnId": listDataSafePrivateEndpointsRequest.vcnId,
2292
+ "lifecycleState": listDataSafePrivateEndpointsRequest.lifecycleState,
2293
+ "limit": listDataSafePrivateEndpointsRequest.limit,
2294
+ "page": listDataSafePrivateEndpointsRequest.page,
2295
+ "sortOrder": listDataSafePrivateEndpointsRequest.sortOrder,
2296
+ "sortBy": listDataSafePrivateEndpointsRequest.sortBy,
2297
+ "compartmentIdInSubtree": listDataSafePrivateEndpointsRequest.compartmentIdInSubtree,
2298
+ "accessLevel": listDataSafePrivateEndpointsRequest.accessLevel
2299
+ };
2300
+ let headerParams = {
2301
+ "Content-Type": common.Constants.APPLICATION_JSON,
2302
+ "opc-request-id": listDataSafePrivateEndpointsRequest.opcRequestId
1314
2303
  };
1315
2304
  const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : {}, listDataSafePrivateEndpointsRequest.retryConfiguration);
1316
2305
  if (this.logger)
@@ -1318,7 +2307,1201 @@ class DataSafeClient {
1318
2307
  const request = yield oci_common_2.composeRequest({
1319
2308
  baseEndpoint: this._endpoint,
1320
2309
  defaultHeaders: this._defaultHeaders,
1321
- path: "/dataSafePrivateEndpoints",
2310
+ path: "/dataSafePrivateEndpoints",
2311
+ method: "GET",
2312
+ pathParams: pathParams,
2313
+ headerParams: headerParams,
2314
+ queryParams: queryParams
2315
+ });
2316
+ try {
2317
+ const response = yield retrier.makeServiceCall(this._httpClient, request);
2318
+ const sdkResponse = oci_common_2.composeResponse({
2319
+ responseObject: {},
2320
+ body: yield response.json(),
2321
+ bodyKey: "items",
2322
+ bodyModel: model.DataSafePrivateEndpointSummary,
2323
+ type: "Array<model.DataSafePrivateEndpointSummary>",
2324
+ responseHeaders: [
2325
+ {
2326
+ value: response.headers.get("opc-request-id"),
2327
+ key: "opcRequestId",
2328
+ dataType: "string"
2329
+ },
2330
+ {
2331
+ value: response.headers.get("opc-next-page"),
2332
+ key: "opcNextPage",
2333
+ dataType: "string"
2334
+ }
2335
+ ]
2336
+ });
2337
+ return sdkResponse;
2338
+ }
2339
+ catch (err) {
2340
+ throw err;
2341
+ }
2342
+ });
2343
+ }
2344
+ /**
2345
+ * NOTE: This function is deprecated in favor of listDataSafePrivateEndpointsRecordIterator function.
2346
+ * Creates a new async iterator which will iterate over the models.DataSafePrivateEndpointSummary objects
2347
+ * contained in responses from the listDataSafePrivateEndpoints operation. This iterator will fetch more data from the
2348
+ * server as needed.
2349
+ *
2350
+ * @param request a request which can be sent to the service operation
2351
+ */
2352
+ listAllDataSafePrivateEndpoints(request) {
2353
+ return oci_common_1.paginateRecords(request, req => this.listDataSafePrivateEndpoints(req));
2354
+ }
2355
+ /**
2356
+ * NOTE: This function is deprecated in favor of listDataSafePrivateEndpointsResponseIterator function.
2357
+ * Creates a new async iterator which will iterate over the responses received from the listDataSafePrivateEndpoints operation. This iterator
2358
+ * will fetch more data from the server as needed.
2359
+ *
2360
+ * @param request a request which can be sent to the service operation
2361
+ */
2362
+ listAllDataSafePrivateEndpointsResponses(request) {
2363
+ return oci_common_1.paginateResponses(request, req => this.listDataSafePrivateEndpoints(req));
2364
+ }
2365
+ /**
2366
+ * Creates a new async iterator which will iterate over the models.DataSafePrivateEndpointSummary objects
2367
+ * contained in responses from the listDataSafePrivateEndpoints operation. This iterator will fetch more data from the
2368
+ * server as needed.
2369
+ *
2370
+ * @param request a request which can be sent to the service operation
2371
+ */
2372
+ listDataSafePrivateEndpointsRecordIterator(request) {
2373
+ return oci_common_1.paginateRecords(request, req => this.listDataSafePrivateEndpoints(req));
2374
+ }
2375
+ /**
2376
+ * Creates a new async iterator which will iterate over the responses received from the listDataSafePrivateEndpoints operation. This iterator
2377
+ * will fetch more data from the server as needed.
2378
+ *
2379
+ * @param request a request which can be sent to the service operation
2380
+ */
2381
+ listDataSafePrivateEndpointsResponseIterator(request) {
2382
+ return oci_common_1.paginateResponses(request, req => this.listDataSafePrivateEndpoints(req));
2383
+ }
2384
+ /**
2385
+ * List all the findings from all the targets in the specified assessment.
2386
+ *
2387
+ * @param ListFindingsRequest
2388
+ * @return ListFindingsResponse
2389
+ * @throws OciError when an error occurs
2390
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.5.2/datasafe/ListFindings.ts.html |here} to see how to use ListFindings API.
2391
+ */
2392
+ listFindings(listFindingsRequest) {
2393
+ return __awaiter(this, void 0, void 0, function* () {
2394
+ if (this.logger)
2395
+ this.logger.debug("Calling operation DataSafeClient#listFindings.");
2396
+ const pathParams = {
2397
+ "{securityAssessmentId}": listFindingsRequest.securityAssessmentId
2398
+ };
2399
+ const queryParams = {
2400
+ "severity": listFindingsRequest.severity,
2401
+ "limit": listFindingsRequest.limit,
2402
+ "page": listFindingsRequest.page,
2403
+ "compartmentIdInSubtree": listFindingsRequest.compartmentIdInSubtree,
2404
+ "accessLevel": listFindingsRequest.accessLevel,
2405
+ "findingKey": listFindingsRequest.findingKey
2406
+ };
2407
+ let headerParams = {
2408
+ "Content-Type": common.Constants.APPLICATION_JSON,
2409
+ "opc-request-id": listFindingsRequest.opcRequestId
2410
+ };
2411
+ const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : {}, listFindingsRequest.retryConfiguration);
2412
+ if (this.logger)
2413
+ retrier.logger = this.logger;
2414
+ const request = yield oci_common_2.composeRequest({
2415
+ baseEndpoint: this._endpoint,
2416
+ defaultHeaders: this._defaultHeaders,
2417
+ path: "/securityAssessments/{securityAssessmentId}/findings",
2418
+ method: "GET",
2419
+ pathParams: pathParams,
2420
+ headerParams: headerParams,
2421
+ queryParams: queryParams
2422
+ });
2423
+ try {
2424
+ const response = yield retrier.makeServiceCall(this._httpClient, request);
2425
+ const sdkResponse = oci_common_2.composeResponse({
2426
+ responseObject: {},
2427
+ body: yield response.json(),
2428
+ bodyKey: "items",
2429
+ bodyModel: model.FindingSummary,
2430
+ type: "Array<model.FindingSummary>",
2431
+ responseHeaders: [
2432
+ {
2433
+ value: response.headers.get("opc-request-id"),
2434
+ key: "opcRequestId",
2435
+ dataType: "string"
2436
+ },
2437
+ {
2438
+ value: response.headers.get("opc-next-page"),
2439
+ key: "opcNextPage",
2440
+ dataType: "string"
2441
+ },
2442
+ {
2443
+ value: response.headers.get("opc-prev-page"),
2444
+ key: "opcPrevPage",
2445
+ dataType: "string"
2446
+ }
2447
+ ]
2448
+ });
2449
+ return sdkResponse;
2450
+ }
2451
+ catch (err) {
2452
+ throw err;
2453
+ }
2454
+ });
2455
+ }
2456
+ /**
2457
+ * NOTE: This function is deprecated in favor of listFindingsRecordIterator function.
2458
+ * Creates a new async iterator which will iterate over the models.FindingSummary objects
2459
+ * contained in responses from the listFindings operation. This iterator will fetch more data from the
2460
+ * server as needed.
2461
+ *
2462
+ * @param request a request which can be sent to the service operation
2463
+ */
2464
+ listAllFindings(request) {
2465
+ return oci_common_1.paginateRecords(request, req => this.listFindings(req));
2466
+ }
2467
+ /**
2468
+ * NOTE: This function is deprecated in favor of listFindingsResponseIterator function.
2469
+ * Creates a new async iterator which will iterate over the responses received from the listFindings operation. This iterator
2470
+ * will fetch more data from the server as needed.
2471
+ *
2472
+ * @param request a request which can be sent to the service operation
2473
+ */
2474
+ listAllFindingsResponses(request) {
2475
+ return oci_common_1.paginateResponses(request, req => this.listFindings(req));
2476
+ }
2477
+ /**
2478
+ * Creates a new async iterator which will iterate over the models.FindingSummary objects
2479
+ * contained in responses from the listFindings operation. This iterator will fetch more data from the
2480
+ * server as needed.
2481
+ *
2482
+ * @param request a request which can be sent to the service operation
2483
+ */
2484
+ listFindingsRecordIterator(request) {
2485
+ return oci_common_1.paginateRecords(request, req => this.listFindings(req));
2486
+ }
2487
+ /**
2488
+ * Creates a new async iterator which will iterate over the responses received from the listFindings operation. This iterator
2489
+ * will fetch more data from the server as needed.
2490
+ *
2491
+ * @param request a request which can be sent to the service operation
2492
+ */
2493
+ listFindingsResponseIterator(request) {
2494
+ return oci_common_1.paginateResponses(request, req => this.listFindings(req));
2495
+ }
2496
+ /**
2497
+ * Gets a list of grants for a particular user in the specified user assessment. A user grant contains details such as the
2498
+ * privilege name, type, category, and depth level. The depth level indicates how deep in the hierarchy of roles granted to
2499
+ * roles a privilege grant is. The userKey in this operation is a system-generated identifier. Perform the operation ListUsers
2500
+ * to get the userKey for a particular user.
2501
+ *
2502
+ * @param ListGrantsRequest
2503
+ * @return ListGrantsResponse
2504
+ * @throws OciError when an error occurs
2505
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.5.2/datasafe/ListGrants.ts.html |here} to see how to use ListGrants API.
2506
+ */
2507
+ listGrants(listGrantsRequest) {
2508
+ return __awaiter(this, void 0, void 0, function* () {
2509
+ if (this.logger)
2510
+ this.logger.debug("Calling operation DataSafeClient#listGrants.");
2511
+ const pathParams = {
2512
+ "{userAssessmentId}": listGrantsRequest.userAssessmentId,
2513
+ "{userKey}": listGrantsRequest.userKey
2514
+ };
2515
+ const queryParams = {
2516
+ "grantKey": listGrantsRequest.grantKey,
2517
+ "grantName": listGrantsRequest.grantName,
2518
+ "privilegeType": listGrantsRequest.privilegeType,
2519
+ "privilegeCategory": listGrantsRequest.privilegeCategory,
2520
+ "depthLevel": listGrantsRequest.depthLevel,
2521
+ "depthLevelGreaterThanOrEqualTo": listGrantsRequest.depthLevelGreaterThanOrEqualTo,
2522
+ "depthLevelLessThan": listGrantsRequest.depthLevelLessThan,
2523
+ "limit": listGrantsRequest.limit,
2524
+ "page": listGrantsRequest.page,
2525
+ "sortOrder": listGrantsRequest.sortOrder,
2526
+ "sortBy": listGrantsRequest.sortBy
2527
+ };
2528
+ let headerParams = {
2529
+ "Content-Type": common.Constants.APPLICATION_JSON,
2530
+ "opc-request-id": listGrantsRequest.opcRequestId
2531
+ };
2532
+ const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : {}, listGrantsRequest.retryConfiguration);
2533
+ if (this.logger)
2534
+ retrier.logger = this.logger;
2535
+ const request = yield oci_common_2.composeRequest({
2536
+ baseEndpoint: this._endpoint,
2537
+ defaultHeaders: this._defaultHeaders,
2538
+ path: "/userAssessments/{userAssessmentId}/users/{userKey}/grants",
2539
+ method: "GET",
2540
+ pathParams: pathParams,
2541
+ headerParams: headerParams,
2542
+ queryParams: queryParams
2543
+ });
2544
+ try {
2545
+ const response = yield retrier.makeServiceCall(this._httpClient, request);
2546
+ const sdkResponse = oci_common_2.composeResponse({
2547
+ responseObject: {},
2548
+ body: yield response.json(),
2549
+ bodyKey: "items",
2550
+ bodyModel: model.GrantSummary,
2551
+ type: "Array<model.GrantSummary>",
2552
+ responseHeaders: [
2553
+ {
2554
+ value: response.headers.get("opc-request-id"),
2555
+ key: "opcRequestId",
2556
+ dataType: "string"
2557
+ },
2558
+ {
2559
+ value: response.headers.get("opc-next-page"),
2560
+ key: "opcNextPage",
2561
+ dataType: "string"
2562
+ },
2563
+ {
2564
+ value: response.headers.get("opc-prev-page"),
2565
+ key: "opcPrevPage",
2566
+ dataType: "string"
2567
+ }
2568
+ ]
2569
+ });
2570
+ return sdkResponse;
2571
+ }
2572
+ catch (err) {
2573
+ throw err;
2574
+ }
2575
+ });
2576
+ }
2577
+ /**
2578
+ * NOTE: This function is deprecated in favor of listGrantsRecordIterator function.
2579
+ * Creates a new async iterator which will iterate over the models.GrantSummary objects
2580
+ * contained in responses from the listGrants operation. This iterator will fetch more data from the
2581
+ * server as needed.
2582
+ *
2583
+ * @param request a request which can be sent to the service operation
2584
+ */
2585
+ listAllGrants(request) {
2586
+ return oci_common_1.paginateRecords(request, req => this.listGrants(req));
2587
+ }
2588
+ /**
2589
+ * NOTE: This function is deprecated in favor of listGrantsResponseIterator function.
2590
+ * Creates a new async iterator which will iterate over the responses received from the listGrants operation. This iterator
2591
+ * will fetch more data from the server as needed.
2592
+ *
2593
+ * @param request a request which can be sent to the service operation
2594
+ */
2595
+ listAllGrantsResponses(request) {
2596
+ return oci_common_1.paginateResponses(request, req => this.listGrants(req));
2597
+ }
2598
+ /**
2599
+ * Creates a new async iterator which will iterate over the models.GrantSummary objects
2600
+ * contained in responses from the listGrants operation. This iterator will fetch more data from the
2601
+ * server as needed.
2602
+ *
2603
+ * @param request a request which can be sent to the service operation
2604
+ */
2605
+ listGrantsRecordIterator(request) {
2606
+ return oci_common_1.paginateRecords(request, req => this.listGrants(req));
2607
+ }
2608
+ /**
2609
+ * Creates a new async iterator which will iterate over the responses received from the listGrants operation. This iterator
2610
+ * will fetch more data from the server as needed.
2611
+ *
2612
+ * @param request a request which can be sent to the service operation
2613
+ */
2614
+ listGrantsResponseIterator(request) {
2615
+ return oci_common_1.paginateResponses(request, req => this.listGrants(req));
2616
+ }
2617
+ /**
2618
+ * Gets a list of on-premises connectors.
2619
+ *
2620
+ * @param ListOnPremConnectorsRequest
2621
+ * @return ListOnPremConnectorsResponse
2622
+ * @throws OciError when an error occurs
2623
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.5.2/datasafe/ListOnPremConnectors.ts.html |here} to see how to use ListOnPremConnectors API.
2624
+ */
2625
+ listOnPremConnectors(listOnPremConnectorsRequest) {
2626
+ return __awaiter(this, void 0, void 0, function* () {
2627
+ if (this.logger)
2628
+ this.logger.debug("Calling operation DataSafeClient#listOnPremConnectors.");
2629
+ const pathParams = {};
2630
+ const queryParams = {
2631
+ "compartmentId": listOnPremConnectorsRequest.compartmentId,
2632
+ "onPremConnectorId": listOnPremConnectorsRequest.onPremConnectorId,
2633
+ "displayName": listOnPremConnectorsRequest.displayName,
2634
+ "onPremConnectorLifecycleState": listOnPremConnectorsRequest.onPremConnectorLifecycleState,
2635
+ "limit": listOnPremConnectorsRequest.limit,
2636
+ "page": listOnPremConnectorsRequest.page,
2637
+ "sortOrder": listOnPremConnectorsRequest.sortOrder,
2638
+ "sortBy": listOnPremConnectorsRequest.sortBy,
2639
+ "compartmentIdInSubtree": listOnPremConnectorsRequest.compartmentIdInSubtree,
2640
+ "accessLevel": listOnPremConnectorsRequest.accessLevel
2641
+ };
2642
+ let headerParams = {
2643
+ "Content-Type": common.Constants.APPLICATION_JSON,
2644
+ "opc-request-id": listOnPremConnectorsRequest.opcRequestId
2645
+ };
2646
+ const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : {}, listOnPremConnectorsRequest.retryConfiguration);
2647
+ if (this.logger)
2648
+ retrier.logger = this.logger;
2649
+ const request = yield oci_common_2.composeRequest({
2650
+ baseEndpoint: this._endpoint,
2651
+ defaultHeaders: this._defaultHeaders,
2652
+ path: "/onPremConnectors",
2653
+ method: "GET",
2654
+ pathParams: pathParams,
2655
+ headerParams: headerParams,
2656
+ queryParams: queryParams
2657
+ });
2658
+ try {
2659
+ const response = yield retrier.makeServiceCall(this._httpClient, request);
2660
+ const sdkResponse = oci_common_2.composeResponse({
2661
+ responseObject: {},
2662
+ body: yield response.json(),
2663
+ bodyKey: "items",
2664
+ bodyModel: model.OnPremConnectorSummary,
2665
+ type: "Array<model.OnPremConnectorSummary>",
2666
+ responseHeaders: [
2667
+ {
2668
+ value: response.headers.get("opc-request-id"),
2669
+ key: "opcRequestId",
2670
+ dataType: "string"
2671
+ },
2672
+ {
2673
+ value: response.headers.get("opc-next-page"),
2674
+ key: "opcNextPage",
2675
+ dataType: "string"
2676
+ }
2677
+ ]
2678
+ });
2679
+ return sdkResponse;
2680
+ }
2681
+ catch (err) {
2682
+ throw err;
2683
+ }
2684
+ });
2685
+ }
2686
+ /**
2687
+ * NOTE: This function is deprecated in favor of listOnPremConnectorsRecordIterator function.
2688
+ * Creates a new async iterator which will iterate over the models.OnPremConnectorSummary objects
2689
+ * contained in responses from the listOnPremConnectors operation. This iterator will fetch more data from the
2690
+ * server as needed.
2691
+ *
2692
+ * @param request a request which can be sent to the service operation
2693
+ */
2694
+ listAllOnPremConnectors(request) {
2695
+ return oci_common_1.paginateRecords(request, req => this.listOnPremConnectors(req));
2696
+ }
2697
+ /**
2698
+ * NOTE: This function is deprecated in favor of listOnPremConnectorsResponseIterator function.
2699
+ * Creates a new async iterator which will iterate over the responses received from the listOnPremConnectors operation. This iterator
2700
+ * will fetch more data from the server as needed.
2701
+ *
2702
+ * @param request a request which can be sent to the service operation
2703
+ */
2704
+ listAllOnPremConnectorsResponses(request) {
2705
+ return oci_common_1.paginateResponses(request, req => this.listOnPremConnectors(req));
2706
+ }
2707
+ /**
2708
+ * Creates a new async iterator which will iterate over the models.OnPremConnectorSummary objects
2709
+ * contained in responses from the listOnPremConnectors operation. This iterator will fetch more data from the
2710
+ * server as needed.
2711
+ *
2712
+ * @param request a request which can be sent to the service operation
2713
+ */
2714
+ listOnPremConnectorsRecordIterator(request) {
2715
+ return oci_common_1.paginateRecords(request, req => this.listOnPremConnectors(req));
2716
+ }
2717
+ /**
2718
+ * Creates a new async iterator which will iterate over the responses received from the listOnPremConnectors operation. This iterator
2719
+ * will fetch more data from the server as needed.
2720
+ *
2721
+ * @param request a request which can be sent to the service operation
2722
+ */
2723
+ listOnPremConnectorsResponseIterator(request) {
2724
+ return oci_common_1.paginateResponses(request, req => this.listOnPremConnectors(req));
2725
+ }
2726
+ /**
2727
+ * Gets a list of security assessments.
2728
+ * <p>
2729
+ The ListSecurityAssessments operation returns only the assessments in the specified `compartmentId`.
2730
+ * The list does not include any subcompartments of the compartmentId passed.
2731
+ * <p>
2732
+ The parameter `accessLevel` specifies whether to return only those compartments for which the
2733
+ * requestor has INSPECT permissions on at least one resource directly
2734
+ * or indirectly (ACCESSIBLE) (the resource can be in a subcompartment) or to return Not Authorized if
2735
+ * Principal doesn't have access to even one of the child compartments. This is valid only when
2736
+ * `compartmentIdInSubtree` is set to `true`.
2737
+ * <p>
2738
+ The parameter `compartmentIdInSubtree` applies when you perform ListSecurityAssessments on the
2739
+ * `compartmentId` passed and when it is set to true, the entire hierarchy of compartments can be returned.
2740
+ * To get a full list of all compartments and subcompartments in the tenancy (root compartment),
2741
+ * set the parameter `compartmentIdInSubtree` to true and `accessLevel` to ACCESSIBLE.
2742
+ *
2743
+ * @param ListSecurityAssessmentsRequest
2744
+ * @return ListSecurityAssessmentsResponse
2745
+ * @throws OciError when an error occurs
2746
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.5.2/datasafe/ListSecurityAssessments.ts.html |here} to see how to use ListSecurityAssessments API.
2747
+ */
2748
+ listSecurityAssessments(listSecurityAssessmentsRequest) {
2749
+ return __awaiter(this, void 0, void 0, function* () {
2750
+ if (this.logger)
2751
+ this.logger.debug("Calling operation DataSafeClient#listSecurityAssessments.");
2752
+ const pathParams = {};
2753
+ const queryParams = {
2754
+ "compartmentId": listSecurityAssessmentsRequest.compartmentId,
2755
+ "compartmentIdInSubtree": listSecurityAssessmentsRequest.compartmentIdInSubtree,
2756
+ "accessLevel": listSecurityAssessmentsRequest.accessLevel,
2757
+ "displayName": listSecurityAssessmentsRequest.displayName,
2758
+ "type": listSecurityAssessmentsRequest.type,
2759
+ "scheduleAssessmentId": listSecurityAssessmentsRequest.scheduleAssessmentId,
2760
+ "isScheduleAssessment": listSecurityAssessmentsRequest.isScheduleAssessment,
2761
+ "triggeredBy": listSecurityAssessmentsRequest.triggeredBy,
2762
+ "targetId": listSecurityAssessmentsRequest.targetId,
2763
+ "sortOrder": listSecurityAssessmentsRequest.sortOrder,
2764
+ "isBaseline": listSecurityAssessmentsRequest.isBaseline,
2765
+ "sortBy": listSecurityAssessmentsRequest.sortBy,
2766
+ "timeCreatedGreaterThanOrEqualTo": listSecurityAssessmentsRequest.timeCreatedGreaterThanOrEqualTo,
2767
+ "timeCreatedLessThan": listSecurityAssessmentsRequest.timeCreatedLessThan,
2768
+ "limit": listSecurityAssessmentsRequest.limit,
2769
+ "page": listSecurityAssessmentsRequest.page,
2770
+ "lifecycleState": listSecurityAssessmentsRequest.lifecycleState
2771
+ };
2772
+ let headerParams = {
2773
+ "Content-Type": common.Constants.APPLICATION_JSON,
2774
+ "opc-request-id": listSecurityAssessmentsRequest.opcRequestId
2775
+ };
2776
+ const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : {}, listSecurityAssessmentsRequest.retryConfiguration);
2777
+ if (this.logger)
2778
+ retrier.logger = this.logger;
2779
+ const request = yield oci_common_2.composeRequest({
2780
+ baseEndpoint: this._endpoint,
2781
+ defaultHeaders: this._defaultHeaders,
2782
+ path: "/securityAssessments",
2783
+ method: "GET",
2784
+ pathParams: pathParams,
2785
+ headerParams: headerParams,
2786
+ queryParams: queryParams
2787
+ });
2788
+ try {
2789
+ const response = yield retrier.makeServiceCall(this._httpClient, request);
2790
+ const sdkResponse = oci_common_2.composeResponse({
2791
+ responseObject: {},
2792
+ body: yield response.json(),
2793
+ bodyKey: "items",
2794
+ bodyModel: model.SecurityAssessmentSummary,
2795
+ type: "Array<model.SecurityAssessmentSummary>",
2796
+ responseHeaders: [
2797
+ {
2798
+ value: response.headers.get("opc-request-id"),
2799
+ key: "opcRequestId",
2800
+ dataType: "string"
2801
+ },
2802
+ {
2803
+ value: response.headers.get("opc-next-page"),
2804
+ key: "opcNextPage",
2805
+ dataType: "string"
2806
+ },
2807
+ {
2808
+ value: response.headers.get("opc-prev-page"),
2809
+ key: "opcPrevPage",
2810
+ dataType: "string"
2811
+ }
2812
+ ]
2813
+ });
2814
+ return sdkResponse;
2815
+ }
2816
+ catch (err) {
2817
+ throw err;
2818
+ }
2819
+ });
2820
+ }
2821
+ /**
2822
+ * NOTE: This function is deprecated in favor of listSecurityAssessmentsRecordIterator function.
2823
+ * Creates a new async iterator which will iterate over the models.SecurityAssessmentSummary objects
2824
+ * contained in responses from the listSecurityAssessments operation. This iterator will fetch more data from the
2825
+ * server as needed.
2826
+ *
2827
+ * @param request a request which can be sent to the service operation
2828
+ */
2829
+ listAllSecurityAssessments(request) {
2830
+ return oci_common_1.paginateRecords(request, req => this.listSecurityAssessments(req));
2831
+ }
2832
+ /**
2833
+ * NOTE: This function is deprecated in favor of listSecurityAssessmentsResponseIterator function.
2834
+ * Creates a new async iterator which will iterate over the responses received from the listSecurityAssessments operation. This iterator
2835
+ * will fetch more data from the server as needed.
2836
+ *
2837
+ * @param request a request which can be sent to the service operation
2838
+ */
2839
+ listAllSecurityAssessmentsResponses(request) {
2840
+ return oci_common_1.paginateResponses(request, req => this.listSecurityAssessments(req));
2841
+ }
2842
+ /**
2843
+ * Creates a new async iterator which will iterate over the models.SecurityAssessmentSummary objects
2844
+ * contained in responses from the listSecurityAssessments operation. This iterator will fetch more data from the
2845
+ * server as needed.
2846
+ *
2847
+ * @param request a request which can be sent to the service operation
2848
+ */
2849
+ listSecurityAssessmentsRecordIterator(request) {
2850
+ return oci_common_1.paginateRecords(request, req => this.listSecurityAssessments(req));
2851
+ }
2852
+ /**
2853
+ * Creates a new async iterator which will iterate over the responses received from the listSecurityAssessments operation. This iterator
2854
+ * will fetch more data from the server as needed.
2855
+ *
2856
+ * @param request a request which can be sent to the service operation
2857
+ */
2858
+ listSecurityAssessmentsResponseIterator(request) {
2859
+ return oci_common_1.paginateResponses(request, req => this.listSecurityAssessments(req));
2860
+ }
2861
+ /**
2862
+ * Returns the list of registered target databases in Data Safe.
2863
+ *
2864
+ * @param ListTargetDatabasesRequest
2865
+ * @return ListTargetDatabasesResponse
2866
+ * @throws OciError when an error occurs
2867
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.5.2/datasafe/ListTargetDatabases.ts.html |here} to see how to use ListTargetDatabases API.
2868
+ */
2869
+ listTargetDatabases(listTargetDatabasesRequest) {
2870
+ return __awaiter(this, void 0, void 0, function* () {
2871
+ if (this.logger)
2872
+ this.logger.debug("Calling operation DataSafeClient#listTargetDatabases.");
2873
+ const pathParams = {};
2874
+ const queryParams = {
2875
+ "compartmentId": listTargetDatabasesRequest.compartmentId,
2876
+ "targetDatabaseId": listTargetDatabasesRequest.targetDatabaseId,
2877
+ "displayName": listTargetDatabasesRequest.displayName,
2878
+ "lifecycleState": listTargetDatabasesRequest.lifecycleState,
2879
+ "databaseType": listTargetDatabasesRequest.databaseType,
2880
+ "infrastructureType": listTargetDatabasesRequest.infrastructureType,
2881
+ "limit": listTargetDatabasesRequest.limit,
2882
+ "page": listTargetDatabasesRequest.page,
2883
+ "compartmentIdInSubtree": listTargetDatabasesRequest.compartmentIdInSubtree,
2884
+ "accessLevel": listTargetDatabasesRequest.accessLevel,
2885
+ "sortOrder": listTargetDatabasesRequest.sortOrder,
2886
+ "sortBy": listTargetDatabasesRequest.sortBy
2887
+ };
2888
+ let headerParams = {
2889
+ "Content-Type": common.Constants.APPLICATION_JSON,
2890
+ "opc-request-id": listTargetDatabasesRequest.opcRequestId
2891
+ };
2892
+ const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : {}, listTargetDatabasesRequest.retryConfiguration);
2893
+ if (this.logger)
2894
+ retrier.logger = this.logger;
2895
+ const request = yield oci_common_2.composeRequest({
2896
+ baseEndpoint: this._endpoint,
2897
+ defaultHeaders: this._defaultHeaders,
2898
+ path: "/targetDatabases",
2899
+ method: "GET",
2900
+ pathParams: pathParams,
2901
+ headerParams: headerParams,
2902
+ queryParams: queryParams
2903
+ });
2904
+ try {
2905
+ const response = yield retrier.makeServiceCall(this._httpClient, request);
2906
+ const sdkResponse = oci_common_2.composeResponse({
2907
+ responseObject: {},
2908
+ body: yield response.json(),
2909
+ bodyKey: "items",
2910
+ bodyModel: model.TargetDatabaseSummary,
2911
+ type: "Array<model.TargetDatabaseSummary>",
2912
+ responseHeaders: [
2913
+ {
2914
+ value: response.headers.get("opc-request-id"),
2915
+ key: "opcRequestId",
2916
+ dataType: "string"
2917
+ },
2918
+ {
2919
+ value: response.headers.get("opc-next-page"),
2920
+ key: "opcNextPage",
2921
+ dataType: "string"
2922
+ },
2923
+ {
2924
+ value: response.headers.get("opc-prev-page"),
2925
+ key: "opcPrevPage",
2926
+ dataType: "string"
2927
+ }
2928
+ ]
2929
+ });
2930
+ return sdkResponse;
2931
+ }
2932
+ catch (err) {
2933
+ throw err;
2934
+ }
2935
+ });
2936
+ }
2937
+ /**
2938
+ * NOTE: This function is deprecated in favor of listTargetDatabasesRecordIterator function.
2939
+ * Creates a new async iterator which will iterate over the models.TargetDatabaseSummary objects
2940
+ * contained in responses from the listTargetDatabases operation. This iterator will fetch more data from the
2941
+ * server as needed.
2942
+ *
2943
+ * @param request a request which can be sent to the service operation
2944
+ */
2945
+ listAllTargetDatabases(request) {
2946
+ return oci_common_1.paginateRecords(request, req => this.listTargetDatabases(req));
2947
+ }
2948
+ /**
2949
+ * NOTE: This function is deprecated in favor of listTargetDatabasesResponseIterator function.
2950
+ * Creates a new async iterator which will iterate over the responses received from the listTargetDatabases operation. This iterator
2951
+ * will fetch more data from the server as needed.
2952
+ *
2953
+ * @param request a request which can be sent to the service operation
2954
+ */
2955
+ listAllTargetDatabasesResponses(request) {
2956
+ return oci_common_1.paginateResponses(request, req => this.listTargetDatabases(req));
2957
+ }
2958
+ /**
2959
+ * Creates a new async iterator which will iterate over the models.TargetDatabaseSummary objects
2960
+ * contained in responses from the listTargetDatabases operation. This iterator will fetch more data from the
2961
+ * server as needed.
2962
+ *
2963
+ * @param request a request which can be sent to the service operation
2964
+ */
2965
+ listTargetDatabasesRecordIterator(request) {
2966
+ return oci_common_1.paginateRecords(request, req => this.listTargetDatabases(req));
2967
+ }
2968
+ /**
2969
+ * Creates a new async iterator which will iterate over the responses received from the listTargetDatabases operation. This iterator
2970
+ * will fetch more data from the server as needed.
2971
+ *
2972
+ * @param request a request which can be sent to the service operation
2973
+ */
2974
+ listTargetDatabasesResponseIterator(request) {
2975
+ return oci_common_1.paginateResponses(request, req => this.listTargetDatabases(req));
2976
+ }
2977
+ /**
2978
+ * Gets a list of aggregated user details from the specified user assessment. This provides information about the overall state
2979
+ * of database user security. For example, the user details include how many users have the DBA role and how many users are in
2980
+ * the critical category. This data is especially useful content for dashboards or to support analytics.
2981
+ * <p>
2982
+ When you perform the ListUserAnalytics operation, if the parameter compartmentIdInSubtree is set to \"true,\" and if the
2983
+ * parameter accessLevel is set to ACCESSIBLE, then the operation returns compartments in which the requestor has INSPECT
2984
+ * permissions on at least one resource, directly or indirectly (in subcompartments). If the operation is performed at the
2985
+ * root compartment. If the requestor does not have access to at least one subcompartment of the compartment specified by
2986
+ * compartmentId, then \"Not Authorized\" is returned.
2987
+ * <p>
2988
+ The parameter compartmentIdInSubtree applies when you perform ListUserAnalytics on the compartmentId passed and when it is
2989
+ * set to true, the entire hierarchy of compartments can be returned.
2990
+ * <p>
2991
+ To use ListUserAnalytics to get a full list of all compartments and subcompartments in the tenancy from the root compartment,
2992
+ * set the parameter compartmentIdInSubtree to true and accessLevel to ACCESSIBLE.
2993
+ *
2994
+ * @param ListUserAnalyticsRequest
2995
+ * @return ListUserAnalyticsResponse
2996
+ * @throws OciError when an error occurs
2997
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.5.2/datasafe/ListUserAnalytics.ts.html |here} to see how to use ListUserAnalytics API.
2998
+ */
2999
+ listUserAnalytics(listUserAnalyticsRequest) {
3000
+ return __awaiter(this, void 0, void 0, function* () {
3001
+ if (this.logger)
3002
+ this.logger.debug("Calling operation DataSafeClient#listUserAnalytics.");
3003
+ const pathParams = {
3004
+ "{userAssessmentId}": listUserAnalyticsRequest.userAssessmentId
3005
+ };
3006
+ const queryParams = {
3007
+ "compartmentIdInSubtree": listUserAnalyticsRequest.compartmentIdInSubtree,
3008
+ "accessLevel": listUserAnalyticsRequest.accessLevel,
3009
+ "limit": listUserAnalyticsRequest.limit,
3010
+ "userCategory": listUserAnalyticsRequest.userCategory,
3011
+ "userKey": listUserAnalyticsRequest.userKey,
3012
+ "accountStatus": listUserAnalyticsRequest.accountStatus,
3013
+ "authenticationType": listUserAnalyticsRequest.authenticationType,
3014
+ "userName": listUserAnalyticsRequest.userName,
3015
+ "targetId": listUserAnalyticsRequest.targetId,
3016
+ "timeLastLoginGreaterThanOrEqualTo": listUserAnalyticsRequest.timeLastLoginGreaterThanOrEqualTo,
3017
+ "timeLastLoginLessThan": listUserAnalyticsRequest.timeLastLoginLessThan,
3018
+ "timeUserCreatedGreaterThanOrEqualTo": listUserAnalyticsRequest.timeUserCreatedGreaterThanOrEqualTo,
3019
+ "timeUserCreatedLessThan": listUserAnalyticsRequest.timeUserCreatedLessThan,
3020
+ "timePasswordLastChangedGreaterThanOrEqualTo": listUserAnalyticsRequest.timePasswordLastChangedGreaterThanOrEqualTo,
3021
+ "timePasswordLastChangedLessThan": listUserAnalyticsRequest.timePasswordLastChangedLessThan,
3022
+ "page": listUserAnalyticsRequest.page,
3023
+ "sortOrder": listUserAnalyticsRequest.sortOrder,
3024
+ "sortBy": listUserAnalyticsRequest.sortBy
3025
+ };
3026
+ let headerParams = {
3027
+ "Content-Type": common.Constants.APPLICATION_JSON,
3028
+ "opc-request-id": listUserAnalyticsRequest.opcRequestId
3029
+ };
3030
+ const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : {}, listUserAnalyticsRequest.retryConfiguration);
3031
+ if (this.logger)
3032
+ retrier.logger = this.logger;
3033
+ const request = yield oci_common_2.composeRequest({
3034
+ baseEndpoint: this._endpoint,
3035
+ defaultHeaders: this._defaultHeaders,
3036
+ path: "/userAssessments/{userAssessmentId}/userAnalytics",
3037
+ method: "GET",
3038
+ pathParams: pathParams,
3039
+ headerParams: headerParams,
3040
+ queryParams: queryParams
3041
+ });
3042
+ try {
3043
+ const response = yield retrier.makeServiceCall(this._httpClient, request);
3044
+ const sdkResponse = oci_common_2.composeResponse({
3045
+ responseObject: {},
3046
+ body: yield response.json(),
3047
+ bodyKey: "items",
3048
+ bodyModel: model.UserAggregation,
3049
+ type: "Array<model.UserAggregation>",
3050
+ responseHeaders: [
3051
+ {
3052
+ value: response.headers.get("opc-request-id"),
3053
+ key: "opcRequestId",
3054
+ dataType: "string"
3055
+ },
3056
+ {
3057
+ value: response.headers.get("opc-next-page"),
3058
+ key: "opcNextPage",
3059
+ dataType: "string"
3060
+ }
3061
+ ]
3062
+ });
3063
+ return sdkResponse;
3064
+ }
3065
+ catch (err) {
3066
+ throw err;
3067
+ }
3068
+ });
3069
+ }
3070
+ /**
3071
+ * NOTE: This function is deprecated in favor of listUserAnalyticsRecordIterator function.
3072
+ * Creates a new async iterator which will iterate over the models.UserAggregation objects
3073
+ * contained in responses from the listUserAnalytics operation. This iterator will fetch more data from the
3074
+ * server as needed.
3075
+ *
3076
+ * @param request a request which can be sent to the service operation
3077
+ */
3078
+ listAllUserAnalytics(request) {
3079
+ return oci_common_1.paginateRecords(request, req => this.listUserAnalytics(req));
3080
+ }
3081
+ /**
3082
+ * NOTE: This function is deprecated in favor of listUserAnalyticsResponseIterator function.
3083
+ * Creates a new async iterator which will iterate over the responses received from the listUserAnalytics operation. This iterator
3084
+ * will fetch more data from the server as needed.
3085
+ *
3086
+ * @param request a request which can be sent to the service operation
3087
+ */
3088
+ listAllUserAnalyticsResponses(request) {
3089
+ return oci_common_1.paginateResponses(request, req => this.listUserAnalytics(req));
3090
+ }
3091
+ /**
3092
+ * Creates a new async iterator which will iterate over the models.UserAggregation objects
3093
+ * contained in responses from the listUserAnalytics operation. This iterator will fetch more data from the
3094
+ * server as needed.
3095
+ *
3096
+ * @param request a request which can be sent to the service operation
3097
+ */
3098
+ listUserAnalyticsRecordIterator(request) {
3099
+ return oci_common_1.paginateRecords(request, req => this.listUserAnalytics(req));
3100
+ }
3101
+ /**
3102
+ * Creates a new async iterator which will iterate over the responses received from the listUserAnalytics operation. This iterator
3103
+ * will fetch more data from the server as needed.
3104
+ *
3105
+ * @param request a request which can be sent to the service operation
3106
+ */
3107
+ listUserAnalyticsResponseIterator(request) {
3108
+ return oci_common_1.paginateResponses(request, req => this.listUserAnalytics(req));
3109
+ }
3110
+ /**
3111
+ * Gets a list of user assessments.
3112
+ * <p>
3113
+ The ListUserAssessments operation returns only the assessments in the specified `compartmentId`.
3114
+ * The list does not include any subcompartments of the compartmentId passed.
3115
+ * <p>
3116
+ The parameter `accessLevel` specifies whether to return only those compartments for which the
3117
+ * requestor has INSPECT permissions on at least one resource directly
3118
+ * or indirectly (ACCESSIBLE) (the resource can be in a subcompartment) or to return Not Authorized if
3119
+ * Principal doesn't have access to even one of the child compartments. This is valid only when
3120
+ * `compartmentIdInSubtree` is set to `true`.
3121
+ * <p>
3122
+ The parameter `compartmentIdInSubtree` applies when you perform ListUserAssessments on the
3123
+ * `compartmentId` passed and when it is set to true, the entire hierarchy of compartments can be returned.
3124
+ * To get a full list of all compartments and subcompartments in the tenancy (root compartment),
3125
+ * set the parameter `compartmentIdInSubtree` to true and `accessLevel` to ACCESSIBLE.
3126
+ *
3127
+ * @param ListUserAssessmentsRequest
3128
+ * @return ListUserAssessmentsResponse
3129
+ * @throws OciError when an error occurs
3130
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.5.2/datasafe/ListUserAssessments.ts.html |here} to see how to use ListUserAssessments API.
3131
+ */
3132
+ listUserAssessments(listUserAssessmentsRequest) {
3133
+ return __awaiter(this, void 0, void 0, function* () {
3134
+ if (this.logger)
3135
+ this.logger.debug("Calling operation DataSafeClient#listUserAssessments.");
3136
+ const pathParams = {};
3137
+ const queryParams = {
3138
+ "compartmentId": listUserAssessmentsRequest.compartmentId,
3139
+ "compartmentIdInSubtree": listUserAssessmentsRequest.compartmentIdInSubtree,
3140
+ "accessLevel": listUserAssessmentsRequest.accessLevel,
3141
+ "displayName": listUserAssessmentsRequest.displayName,
3142
+ "scheduleUserAssessmentId": listUserAssessmentsRequest.scheduleUserAssessmentId,
3143
+ "isScheduleAssessment": listUserAssessmentsRequest.isScheduleAssessment,
3144
+ "isBaseline": listUserAssessmentsRequest.isBaseline,
3145
+ "targetId": listUserAssessmentsRequest.targetId,
3146
+ "type": listUserAssessmentsRequest.type,
3147
+ "triggeredBy": listUserAssessmentsRequest.triggeredBy,
3148
+ "timeCreatedGreaterThanOrEqualTo": listUserAssessmentsRequest.timeCreatedGreaterThanOrEqualTo,
3149
+ "timeCreatedLessThan": listUserAssessmentsRequest.timeCreatedLessThan,
3150
+ "limit": listUserAssessmentsRequest.limit,
3151
+ "page": listUserAssessmentsRequest.page,
3152
+ "lifecycleState": listUserAssessmentsRequest.lifecycleState,
3153
+ "sortOrder": listUserAssessmentsRequest.sortOrder,
3154
+ "sortBy": listUserAssessmentsRequest.sortBy
3155
+ };
3156
+ let headerParams = {
3157
+ "Content-Type": common.Constants.APPLICATION_JSON,
3158
+ "opc-request-id": listUserAssessmentsRequest.opcRequestId
3159
+ };
3160
+ const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : {}, listUserAssessmentsRequest.retryConfiguration);
3161
+ if (this.logger)
3162
+ retrier.logger = this.logger;
3163
+ const request = yield oci_common_2.composeRequest({
3164
+ baseEndpoint: this._endpoint,
3165
+ defaultHeaders: this._defaultHeaders,
3166
+ path: "/userAssessments",
3167
+ method: "GET",
3168
+ pathParams: pathParams,
3169
+ headerParams: headerParams,
3170
+ queryParams: queryParams
3171
+ });
3172
+ try {
3173
+ const response = yield retrier.makeServiceCall(this._httpClient, request);
3174
+ const sdkResponse = oci_common_2.composeResponse({
3175
+ responseObject: {},
3176
+ body: yield response.json(),
3177
+ bodyKey: "items",
3178
+ bodyModel: model.UserAssessmentSummary,
3179
+ type: "Array<model.UserAssessmentSummary>",
3180
+ responseHeaders: [
3181
+ {
3182
+ value: response.headers.get("opc-request-id"),
3183
+ key: "opcRequestId",
3184
+ dataType: "string"
3185
+ },
3186
+ {
3187
+ value: response.headers.get("opc-next-page"),
3188
+ key: "opcNextPage",
3189
+ dataType: "string"
3190
+ },
3191
+ {
3192
+ value: response.headers.get("opc-prev-page"),
3193
+ key: "opcPrevPage",
3194
+ dataType: "string"
3195
+ }
3196
+ ]
3197
+ });
3198
+ return sdkResponse;
3199
+ }
3200
+ catch (err) {
3201
+ throw err;
3202
+ }
3203
+ });
3204
+ }
3205
+ /**
3206
+ * NOTE: This function is deprecated in favor of listUserAssessmentsRecordIterator function.
3207
+ * Creates a new async iterator which will iterate over the models.UserAssessmentSummary objects
3208
+ * contained in responses from the listUserAssessments operation. This iterator will fetch more data from the
3209
+ * server as needed.
3210
+ *
3211
+ * @param request a request which can be sent to the service operation
3212
+ */
3213
+ listAllUserAssessments(request) {
3214
+ return oci_common_1.paginateRecords(request, req => this.listUserAssessments(req));
3215
+ }
3216
+ /**
3217
+ * NOTE: This function is deprecated in favor of listUserAssessmentsResponseIterator function.
3218
+ * Creates a new async iterator which will iterate over the responses received from the listUserAssessments operation. This iterator
3219
+ * will fetch more data from the server as needed.
3220
+ *
3221
+ * @param request a request which can be sent to the service operation
3222
+ */
3223
+ listAllUserAssessmentsResponses(request) {
3224
+ return oci_common_1.paginateResponses(request, req => this.listUserAssessments(req));
3225
+ }
3226
+ /**
3227
+ * Creates a new async iterator which will iterate over the models.UserAssessmentSummary objects
3228
+ * contained in responses from the listUserAssessments operation. This iterator will fetch more data from the
3229
+ * server as needed.
3230
+ *
3231
+ * @param request a request which can be sent to the service operation
3232
+ */
3233
+ listUserAssessmentsRecordIterator(request) {
3234
+ return oci_common_1.paginateRecords(request, req => this.listUserAssessments(req));
3235
+ }
3236
+ /**
3237
+ * Creates a new async iterator which will iterate over the responses received from the listUserAssessments operation. This iterator
3238
+ * will fetch more data from the server as needed.
3239
+ *
3240
+ * @param request a request which can be sent to the service operation
3241
+ */
3242
+ listUserAssessmentsResponseIterator(request) {
3243
+ return oci_common_1.paginateResponses(request, req => this.listUserAssessments(req));
3244
+ }
3245
+ /**
3246
+ * Gets a list of users of the specified user assessment. The result contains the database user details for each user, such
3247
+ * as user type, account status, last login time, user creation time, authentication type, user profile, and the date and time
3248
+ * of the latest password change. It also contains the user category derived from these user details as well as privileges
3249
+ * granted to each user.
3250
+ *
3251
+ * @param ListUsersRequest
3252
+ * @return ListUsersResponse
3253
+ * @throws OciError when an error occurs
3254
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.5.2/datasafe/ListUsers.ts.html |here} to see how to use ListUsers API.
3255
+ */
3256
+ listUsers(listUsersRequest) {
3257
+ return __awaiter(this, void 0, void 0, function* () {
3258
+ if (this.logger)
3259
+ this.logger.debug("Calling operation DataSafeClient#listUsers.");
3260
+ const pathParams = {
3261
+ "{userAssessmentId}": listUsersRequest.userAssessmentId
3262
+ };
3263
+ const queryParams = {
3264
+ "limit": listUsersRequest.limit,
3265
+ "compartmentIdInSubtree": listUsersRequest.compartmentIdInSubtree,
3266
+ "accessLevel": listUsersRequest.accessLevel,
3267
+ "userCategory": listUsersRequest.userCategory,
3268
+ "userKey": listUsersRequest.userKey,
3269
+ "accountStatus": listUsersRequest.accountStatus,
3270
+ "authenticationType": listUsersRequest.authenticationType,
3271
+ "userName": listUsersRequest.userName,
3272
+ "targetId": listUsersRequest.targetId,
3273
+ "timeLastLoginGreaterThanOrEqualTo": listUsersRequest.timeLastLoginGreaterThanOrEqualTo,
3274
+ "timeLastLoginLessThan": listUsersRequest.timeLastLoginLessThan,
3275
+ "timeUserCreatedGreaterThanOrEqualTo": listUsersRequest.timeUserCreatedGreaterThanOrEqualTo,
3276
+ "timeUserCreatedLessThan": listUsersRequest.timeUserCreatedLessThan,
3277
+ "timePasswordLastChangedGreaterThanOrEqualTo": listUsersRequest.timePasswordLastChangedGreaterThanOrEqualTo,
3278
+ "timePasswordLastChangedLessThan": listUsersRequest.timePasswordLastChangedLessThan,
3279
+ "page": listUsersRequest.page,
3280
+ "sortOrder": listUsersRequest.sortOrder,
3281
+ "sortBy": listUsersRequest.sortBy
3282
+ };
3283
+ let headerParams = {
3284
+ "Content-Type": common.Constants.APPLICATION_JSON,
3285
+ "opc-request-id": listUsersRequest.opcRequestId
3286
+ };
3287
+ const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : {}, listUsersRequest.retryConfiguration);
3288
+ if (this.logger)
3289
+ retrier.logger = this.logger;
3290
+ const request = yield oci_common_2.composeRequest({
3291
+ baseEndpoint: this._endpoint,
3292
+ defaultHeaders: this._defaultHeaders,
3293
+ path: "/userAssessments/{userAssessmentId}/users",
3294
+ method: "GET",
3295
+ pathParams: pathParams,
3296
+ headerParams: headerParams,
3297
+ queryParams: queryParams
3298
+ });
3299
+ try {
3300
+ const response = yield retrier.makeServiceCall(this._httpClient, request);
3301
+ const sdkResponse = oci_common_2.composeResponse({
3302
+ responseObject: {},
3303
+ body: yield response.json(),
3304
+ bodyKey: "items",
3305
+ bodyModel: model.UserSummary,
3306
+ type: "Array<model.UserSummary>",
3307
+ responseHeaders: [
3308
+ {
3309
+ value: response.headers.get("opc-request-id"),
3310
+ key: "opcRequestId",
3311
+ dataType: "string"
3312
+ },
3313
+ {
3314
+ value: response.headers.get("opc-next-page"),
3315
+ key: "opcNextPage",
3316
+ dataType: "string"
3317
+ },
3318
+ {
3319
+ value: response.headers.get("opc-prev-page"),
3320
+ key: "opcPrevPage",
3321
+ dataType: "string"
3322
+ }
3323
+ ]
3324
+ });
3325
+ return sdkResponse;
3326
+ }
3327
+ catch (err) {
3328
+ throw err;
3329
+ }
3330
+ });
3331
+ }
3332
+ /**
3333
+ * NOTE: This function is deprecated in favor of listUsersRecordIterator function.
3334
+ * Creates a new async iterator which will iterate over the models.UserSummary objects
3335
+ * contained in responses from the listUsers operation. This iterator will fetch more data from the
3336
+ * server as needed.
3337
+ *
3338
+ * @param request a request which can be sent to the service operation
3339
+ */
3340
+ listAllUsers(request) {
3341
+ return oci_common_1.paginateRecords(request, req => this.listUsers(req));
3342
+ }
3343
+ /**
3344
+ * NOTE: This function is deprecated in favor of listUsersResponseIterator function.
3345
+ * Creates a new async iterator which will iterate over the responses received from the listUsers operation. This iterator
3346
+ * will fetch more data from the server as needed.
3347
+ *
3348
+ * @param request a request which can be sent to the service operation
3349
+ */
3350
+ listAllUsersResponses(request) {
3351
+ return oci_common_1.paginateResponses(request, req => this.listUsers(req));
3352
+ }
3353
+ /**
3354
+ * Creates a new async iterator which will iterate over the models.UserSummary objects
3355
+ * contained in responses from the listUsers operation. This iterator will fetch more data from the
3356
+ * server as needed.
3357
+ *
3358
+ * @param request a request which can be sent to the service operation
3359
+ */
3360
+ listUsersRecordIterator(request) {
3361
+ return oci_common_1.paginateRecords(request, req => this.listUsers(req));
3362
+ }
3363
+ /**
3364
+ * Creates a new async iterator which will iterate over the responses received from the listUsers operation. This iterator
3365
+ * will fetch more data from the server as needed.
3366
+ *
3367
+ * @param request a request which can be sent to the service operation
3368
+ */
3369
+ listUsersResponseIterator(request) {
3370
+ return oci_common_1.paginateResponses(request, req => this.listUsers(req));
3371
+ }
3372
+ /**
3373
+ * Gets a list of errors for the specified work request.
3374
+ *
3375
+ * @param ListWorkRequestErrorsRequest
3376
+ * @return ListWorkRequestErrorsResponse
3377
+ * @throws OciError when an error occurs
3378
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.5.2/datasafe/ListWorkRequestErrors.ts.html |here} to see how to use ListWorkRequestErrors API.
3379
+ */
3380
+ listWorkRequestErrors(listWorkRequestErrorsRequest) {
3381
+ return __awaiter(this, void 0, void 0, function* () {
3382
+ if (this.logger)
3383
+ this.logger.debug("Calling operation DataSafeClient#listWorkRequestErrors.");
3384
+ const pathParams = {
3385
+ "{workRequestId}": listWorkRequestErrorsRequest.workRequestId
3386
+ };
3387
+ const queryParams = {
3388
+ "page": listWorkRequestErrorsRequest.page,
3389
+ "limit": listWorkRequestErrorsRequest.limit
3390
+ };
3391
+ let headerParams = {
3392
+ "Content-Type": common.Constants.APPLICATION_JSON,
3393
+ "opc-request-id": listWorkRequestErrorsRequest.opcRequestId
3394
+ };
3395
+ const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : {}, listWorkRequestErrorsRequest.retryConfiguration);
3396
+ if (this.logger)
3397
+ retrier.logger = this.logger;
3398
+ const request = yield oci_common_2.composeRequest({
3399
+ baseEndpoint: this._endpoint,
3400
+ defaultHeaders: this._defaultHeaders,
3401
+ path: "/workRequests/{workRequestId}/errors",
3402
+ method: "GET",
3403
+ pathParams: pathParams,
3404
+ headerParams: headerParams,
3405
+ queryParams: queryParams
3406
+ });
3407
+ try {
3408
+ const response = yield retrier.makeServiceCall(this._httpClient, request);
3409
+ const sdkResponse = oci_common_2.composeResponse({
3410
+ responseObject: {},
3411
+ body: yield response.json(),
3412
+ bodyKey: "items",
3413
+ bodyModel: model.WorkRequestError,
3414
+ type: "Array<model.WorkRequestError>",
3415
+ responseHeaders: [
3416
+ {
3417
+ value: response.headers.get("opc-request-id"),
3418
+ key: "opcRequestId",
3419
+ dataType: "string"
3420
+ },
3421
+ {
3422
+ value: response.headers.get("opc-next-page"),
3423
+ key: "opcNextPage",
3424
+ dataType: "string"
3425
+ }
3426
+ ]
3427
+ });
3428
+ return sdkResponse;
3429
+ }
3430
+ catch (err) {
3431
+ throw err;
3432
+ }
3433
+ });
3434
+ }
3435
+ /**
3436
+ * NOTE: This function is deprecated in favor of listWorkRequestErrorsRecordIterator function.
3437
+ * Creates a new async iterator which will iterate over the models.WorkRequestError objects
3438
+ * contained in responses from the listWorkRequestErrors operation. This iterator will fetch more data from the
3439
+ * server as needed.
3440
+ *
3441
+ * @param request a request which can be sent to the service operation
3442
+ */
3443
+ listAllWorkRequestErrors(request) {
3444
+ return oci_common_1.paginateRecords(request, req => this.listWorkRequestErrors(req));
3445
+ }
3446
+ /**
3447
+ * NOTE: This function is deprecated in favor of listWorkRequestErrorsResponseIterator function.
3448
+ * Creates a new async iterator which will iterate over the responses received from the listWorkRequestErrors operation. This iterator
3449
+ * will fetch more data from the server as needed.
3450
+ *
3451
+ * @param request a request which can be sent to the service operation
3452
+ */
3453
+ listAllWorkRequestErrorsResponses(request) {
3454
+ return oci_common_1.paginateResponses(request, req => this.listWorkRequestErrors(req));
3455
+ }
3456
+ /**
3457
+ * Creates a new async iterator which will iterate over the models.WorkRequestError objects
3458
+ * contained in responses from the listWorkRequestErrors operation. This iterator will fetch more data from the
3459
+ * server as needed.
3460
+ *
3461
+ * @param request a request which can be sent to the service operation
3462
+ */
3463
+ listWorkRequestErrorsRecordIterator(request) {
3464
+ return oci_common_1.paginateRecords(request, req => this.listWorkRequestErrors(req));
3465
+ }
3466
+ /**
3467
+ * Creates a new async iterator which will iterate over the responses received from the listWorkRequestErrors operation. This iterator
3468
+ * will fetch more data from the server as needed.
3469
+ *
3470
+ * @param request a request which can be sent to the service operation
3471
+ */
3472
+ listWorkRequestErrorsResponseIterator(request) {
3473
+ return oci_common_1.paginateResponses(request, req => this.listWorkRequestErrors(req));
3474
+ }
3475
+ /**
3476
+ * Gets a list of log entries for the specified work request.
3477
+ *
3478
+ * @param ListWorkRequestLogsRequest
3479
+ * @return ListWorkRequestLogsResponse
3480
+ * @throws OciError when an error occurs
3481
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.5.2/datasafe/ListWorkRequestLogs.ts.html |here} to see how to use ListWorkRequestLogs API.
3482
+ */
3483
+ listWorkRequestLogs(listWorkRequestLogsRequest) {
3484
+ return __awaiter(this, void 0, void 0, function* () {
3485
+ if (this.logger)
3486
+ this.logger.debug("Calling operation DataSafeClient#listWorkRequestLogs.");
3487
+ const pathParams = {
3488
+ "{workRequestId}": listWorkRequestLogsRequest.workRequestId
3489
+ };
3490
+ const queryParams = {
3491
+ "page": listWorkRequestLogsRequest.page,
3492
+ "limit": listWorkRequestLogsRequest.limit
3493
+ };
3494
+ let headerParams = {
3495
+ "Content-Type": common.Constants.APPLICATION_JSON,
3496
+ "opc-request-id": listWorkRequestLogsRequest.opcRequestId
3497
+ };
3498
+ const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : {}, listWorkRequestLogsRequest.retryConfiguration);
3499
+ if (this.logger)
3500
+ retrier.logger = this.logger;
3501
+ const request = yield oci_common_2.composeRequest({
3502
+ baseEndpoint: this._endpoint,
3503
+ defaultHeaders: this._defaultHeaders,
3504
+ path: "/workRequests/{workRequestId}/logs",
1322
3505
  method: "GET",
1323
3506
  pathParams: pathParams,
1324
3507
  headerParams: headerParams,
@@ -1330,8 +3513,8 @@ class DataSafeClient {
1330
3513
  responseObject: {},
1331
3514
  body: yield response.json(),
1332
3515
  bodyKey: "items",
1333
- bodyModel: model.DataSafePrivateEndpointSummary,
1334
- type: "Array<model.DataSafePrivateEndpointSummary>",
3516
+ bodyModel: model.WorkRequestLogEntry,
3517
+ type: "Array<model.WorkRequestLogEntry>",
1335
3518
  responseHeaders: [
1336
3519
  {
1337
3520
  value: response.headers.get("opc-request-id"),
@@ -1353,60 +3536,76 @@ class DataSafeClient {
1353
3536
  });
1354
3537
  }
1355
3538
  /**
1356
- * Creates a new async iterator which will iterate over the models.DataSafePrivateEndpointSummary objects
1357
- * contained in responses from the listDataSafePrivateEndpoints operation. This iterator will fetch more data from the
3539
+ * NOTE: This function is deprecated in favor of listWorkRequestLogsRecordIterator function.
3540
+ * Creates a new async iterator which will iterate over the models.WorkRequestLogEntry objects
3541
+ * contained in responses from the listWorkRequestLogs operation. This iterator will fetch more data from the
1358
3542
  * server as needed.
1359
3543
  *
1360
3544
  * @param request a request which can be sent to the service operation
1361
3545
  */
1362
- listAllDataSafePrivateEndpoints(request) {
1363
- return oci_common_1.paginateRecords(request, req => this.listDataSafePrivateEndpoints(req));
3546
+ listAllWorkRequestLogs(request) {
3547
+ return oci_common_1.paginateRecords(request, req => this.listWorkRequestLogs(req));
1364
3548
  }
1365
3549
  /**
1366
- * Creates a new async iterator which will iterate over the responses received from the listDataSafePrivateEndpoints operation. This iterator
3550
+ * NOTE: This function is deprecated in favor of listWorkRequestLogsResponseIterator function.
3551
+ * Creates a new async iterator which will iterate over the responses received from the listWorkRequestLogs operation. This iterator
1367
3552
  * will fetch more data from the server as needed.
1368
3553
  *
1369
3554
  * @param request a request which can be sent to the service operation
1370
3555
  */
1371
- listAllDataSafePrivateEndpointsResponses(request) {
1372
- return oci_common_1.paginateResponses(request, req => this.listDataSafePrivateEndpoints(req));
3556
+ listAllWorkRequestLogsResponses(request) {
3557
+ return oci_common_1.paginateResponses(request, req => this.listWorkRequestLogs(req));
1373
3558
  }
1374
3559
  /**
1375
- * Gets a list of on-premises connectors.
3560
+ * Creates a new async iterator which will iterate over the models.WorkRequestLogEntry objects
3561
+ * contained in responses from the listWorkRequestLogs operation. This iterator will fetch more data from the
3562
+ * server as needed.
1376
3563
  *
1377
- * @param ListOnPremConnectorsRequest
1378
- * @return ListOnPremConnectorsResponse
3564
+ * @param request a request which can be sent to the service operation
3565
+ */
3566
+ listWorkRequestLogsRecordIterator(request) {
3567
+ return oci_common_1.paginateRecords(request, req => this.listWorkRequestLogs(req));
3568
+ }
3569
+ /**
3570
+ * Creates a new async iterator which will iterate over the responses received from the listWorkRequestLogs operation. This iterator
3571
+ * will fetch more data from the server as needed.
3572
+ *
3573
+ * @param request a request which can be sent to the service operation
3574
+ */
3575
+ listWorkRequestLogsResponseIterator(request) {
3576
+ return oci_common_1.paginateResponses(request, req => this.listWorkRequestLogs(req));
3577
+ }
3578
+ /**
3579
+ * Gets a list of work requests.
3580
+ *
3581
+ * @param ListWorkRequestsRequest
3582
+ * @return ListWorkRequestsResponse
1379
3583
  * @throws OciError when an error occurs
1380
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.3.1/datasafe/ListOnPremConnectors.ts.html |here} to see how to use ListOnPremConnectors API.
3584
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.5.2/datasafe/ListWorkRequests.ts.html |here} to see how to use ListWorkRequests API.
1381
3585
  */
1382
- listOnPremConnectors(listOnPremConnectorsRequest) {
3586
+ listWorkRequests(listWorkRequestsRequest) {
1383
3587
  return __awaiter(this, void 0, void 0, function* () {
1384
3588
  if (this.logger)
1385
- this.logger.debug("Calling operation DataSafeClient#listOnPremConnectors.");
3589
+ this.logger.debug("Calling operation DataSafeClient#listWorkRequests.");
1386
3590
  const pathParams = {};
1387
3591
  const queryParams = {
1388
- "compartmentId": listOnPremConnectorsRequest.compartmentId,
1389
- "onPremConnectorId": listOnPremConnectorsRequest.onPremConnectorId,
1390
- "displayName": listOnPremConnectorsRequest.displayName,
1391
- "onPremConnectorLifecycleState": listOnPremConnectorsRequest.onPremConnectorLifecycleState,
1392
- "limit": listOnPremConnectorsRequest.limit,
1393
- "page": listOnPremConnectorsRequest.page,
1394
- "sortOrder": listOnPremConnectorsRequest.sortOrder,
1395
- "sortBy": listOnPremConnectorsRequest.sortBy,
1396
- "compartmentIdInSubtree": listOnPremConnectorsRequest.compartmentIdInSubtree,
1397
- "accessLevel": listOnPremConnectorsRequest.accessLevel
3592
+ "compartmentId": listWorkRequestsRequest.compartmentId,
3593
+ "operationType": listWorkRequestsRequest.operationType,
3594
+ "resourceId": listWorkRequestsRequest.resourceId,
3595
+ "page": listWorkRequestsRequest.page,
3596
+ "limit": listWorkRequestsRequest.limit
1398
3597
  };
1399
3598
  let headerParams = {
1400
3599
  "Content-Type": common.Constants.APPLICATION_JSON,
1401
- "opc-request-id": listOnPremConnectorsRequest.opcRequestId
3600
+ "opc-request-id": listWorkRequestsRequest.opcRequestId
1402
3601
  };
1403
- const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : {}, listOnPremConnectorsRequest.retryConfiguration);
3602
+ const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : {}, listWorkRequestsRequest.retryConfiguration);
1404
3603
  if (this.logger)
1405
3604
  retrier.logger = this.logger;
1406
3605
  const request = yield oci_common_2.composeRequest({
1407
3606
  baseEndpoint: this._endpoint,
1408
3607
  defaultHeaders: this._defaultHeaders,
1409
- path: "/onPremConnectors",
3608
+ path: "/workRequests",
1410
3609
  method: "GET",
1411
3610
  pathParams: pathParams,
1412
3611
  headerParams: headerParams,
@@ -1418,8 +3617,8 @@ class DataSafeClient {
1418
3617
  responseObject: {},
1419
3618
  body: yield response.json(),
1420
3619
  bodyKey: "items",
1421
- bodyModel: model.OnPremConnectorSummary,
1422
- type: "Array<model.OnPremConnectorSummary>",
3620
+ bodyModel: model.WorkRequestSummary,
3621
+ type: "Array<model.WorkRequestSummary>",
1423
3622
  responseHeaders: [
1424
3623
  {
1425
3624
  value: response.headers.get("opc-request-id"),
@@ -1441,63 +3640,77 @@ class DataSafeClient {
1441
3640
  });
1442
3641
  }
1443
3642
  /**
1444
- * Creates a new async iterator which will iterate over the models.OnPremConnectorSummary objects
1445
- * contained in responses from the listOnPremConnectors operation. This iterator will fetch more data from the
3643
+ * NOTE: This function is deprecated in favor of listWorkRequestsRecordIterator function.
3644
+ * Creates a new async iterator which will iterate over the models.WorkRequestSummary objects
3645
+ * contained in responses from the listWorkRequests operation. This iterator will fetch more data from the
1446
3646
  * server as needed.
1447
3647
  *
1448
3648
  * @param request a request which can be sent to the service operation
1449
3649
  */
1450
- listAllOnPremConnectors(request) {
1451
- return oci_common_1.paginateRecords(request, req => this.listOnPremConnectors(req));
3650
+ listAllWorkRequests(request) {
3651
+ return oci_common_1.paginateRecords(request, req => this.listWorkRequests(req));
1452
3652
  }
1453
3653
  /**
1454
- * Creates a new async iterator which will iterate over the responses received from the listOnPremConnectors operation. This iterator
3654
+ * NOTE: This function is deprecated in favor of listWorkRequestsResponseIterator function.
3655
+ * Creates a new async iterator which will iterate over the responses received from the listWorkRequests operation. This iterator
1455
3656
  * will fetch more data from the server as needed.
1456
3657
  *
1457
3658
  * @param request a request which can be sent to the service operation
1458
3659
  */
1459
- listAllOnPremConnectorsResponses(request) {
1460
- return oci_common_1.paginateResponses(request, req => this.listOnPremConnectors(req));
3660
+ listAllWorkRequestsResponses(request) {
3661
+ return oci_common_1.paginateResponses(request, req => this.listWorkRequests(req));
1461
3662
  }
1462
3663
  /**
1463
- * Returns the list of registered target databases in Data Safe.
3664
+ * Creates a new async iterator which will iterate over the models.WorkRequestSummary objects
3665
+ * contained in responses from the listWorkRequests operation. This iterator will fetch more data from the
3666
+ * server as needed.
1464
3667
  *
1465
- * @param ListTargetDatabasesRequest
1466
- * @return ListTargetDatabasesResponse
3668
+ * @param request a request which can be sent to the service operation
3669
+ */
3670
+ listWorkRequestsRecordIterator(request) {
3671
+ return oci_common_1.paginateRecords(request, req => this.listWorkRequests(req));
3672
+ }
3673
+ /**
3674
+ * Creates a new async iterator which will iterate over the responses received from the listWorkRequests operation. This iterator
3675
+ * will fetch more data from the server as needed.
3676
+ *
3677
+ * @param request a request which can be sent to the service operation
3678
+ */
3679
+ listWorkRequestsResponseIterator(request) {
3680
+ return oci_common_1.paginateResponses(request, req => this.listWorkRequests(req));
3681
+ }
3682
+ /**
3683
+ * Runs a security assessment, refreshes the latest assessment, and saves it for future reference.
3684
+ * The assessment runs with a securityAssessmentId of type LATEST. Before you start, first call the ListSecurityAssessments operation with filter \"type = latest\" to get the security assessment id for the target's latest assessment.
3685
+ *
3686
+ * @param RefreshSecurityAssessmentRequest
3687
+ * @return RefreshSecurityAssessmentResponse
1467
3688
  * @throws OciError when an error occurs
1468
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.3.1/datasafe/ListTargetDatabases.ts.html |here} to see how to use ListTargetDatabases API.
3689
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.5.2/datasafe/RefreshSecurityAssessment.ts.html |here} to see how to use RefreshSecurityAssessment API.
1469
3690
  */
1470
- listTargetDatabases(listTargetDatabasesRequest) {
3691
+ refreshSecurityAssessment(refreshSecurityAssessmentRequest) {
1471
3692
  return __awaiter(this, void 0, void 0, function* () {
1472
3693
  if (this.logger)
1473
- this.logger.debug("Calling operation DataSafeClient#listTargetDatabases.");
1474
- const pathParams = {};
1475
- const queryParams = {
1476
- "compartmentId": listTargetDatabasesRequest.compartmentId,
1477
- "targetDatabaseId": listTargetDatabasesRequest.targetDatabaseId,
1478
- "displayName": listTargetDatabasesRequest.displayName,
1479
- "lifecycleState": listTargetDatabasesRequest.lifecycleState,
1480
- "databaseType": listTargetDatabasesRequest.databaseType,
1481
- "infrastructureType": listTargetDatabasesRequest.infrastructureType,
1482
- "limit": listTargetDatabasesRequest.limit,
1483
- "page": listTargetDatabasesRequest.page,
1484
- "compartmentIdInSubtree": listTargetDatabasesRequest.compartmentIdInSubtree,
1485
- "accessLevel": listTargetDatabasesRequest.accessLevel,
1486
- "sortOrder": listTargetDatabasesRequest.sortOrder,
1487
- "sortBy": listTargetDatabasesRequest.sortBy
3694
+ this.logger.debug("Calling operation DataSafeClient#refreshSecurityAssessment.");
3695
+ const pathParams = {
3696
+ "{securityAssessmentId}": refreshSecurityAssessmentRequest.securityAssessmentId
1488
3697
  };
3698
+ const queryParams = {};
1489
3699
  let headerParams = {
1490
3700
  "Content-Type": common.Constants.APPLICATION_JSON,
1491
- "opc-request-id": listTargetDatabasesRequest.opcRequestId
3701
+ "opc-retry-token": refreshSecurityAssessmentRequest.opcRetryToken,
3702
+ "opc-request-id": refreshSecurityAssessmentRequest.opcRequestId,
3703
+ "if-match": refreshSecurityAssessmentRequest.ifMatch
1492
3704
  };
1493
- const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : {}, listTargetDatabasesRequest.retryConfiguration);
3705
+ const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : {}, refreshSecurityAssessmentRequest.retryConfiguration);
1494
3706
  if (this.logger)
1495
3707
  retrier.logger = this.logger;
1496
3708
  const request = yield oci_common_2.composeRequest({
1497
3709
  baseEndpoint: this._endpoint,
1498
3710
  defaultHeaders: this._defaultHeaders,
1499
- path: "/targetDatabases",
1500
- method: "GET",
3711
+ path: "/securityAssessments/{securityAssessmentId}/actions/refresh",
3712
+ method: "POST",
3713
+ bodyContent: common.ObjectSerializer.serialize(refreshSecurityAssessmentRequest.runSecurityAssessmentDetails, "RunSecurityAssessmentDetails", model.RunSecurityAssessmentDetails.getJsonObj),
1501
3714
  pathParams: pathParams,
1502
3715
  headerParams: headerParams,
1503
3716
  queryParams: queryParams
@@ -1506,24 +3719,134 @@ class DataSafeClient {
1506
3719
  const response = yield retrier.makeServiceCall(this._httpClient, request);
1507
3720
  const sdkResponse = oci_common_2.composeResponse({
1508
3721
  responseObject: {},
1509
- body: yield response.json(),
1510
- bodyKey: "items",
1511
- bodyModel: model.TargetDatabaseSummary,
1512
- type: "Array<model.TargetDatabaseSummary>",
1513
3722
  responseHeaders: [
3723
+ {
3724
+ value: response.headers.get("opc-work-request-id"),
3725
+ key: "opcWorkRequestId",
3726
+ dataType: "string"
3727
+ },
1514
3728
  {
1515
3729
  value: response.headers.get("opc-request-id"),
1516
3730
  key: "opcRequestId",
1517
3731
  dataType: "string"
3732
+ }
3733
+ ]
3734
+ });
3735
+ return sdkResponse;
3736
+ }
3737
+ catch (err) {
3738
+ throw err;
3739
+ }
3740
+ });
3741
+ }
3742
+ /**
3743
+ * Refreshes the latest assessment and saves it for future reference. This operation runs with a userAssessmentId of type LATEST.
3744
+ * Before you start, first call the ListUserAssessments operation with filter \"type = latest\" to get the user assessment ID for
3745
+ * the target's latest assessment.
3746
+ *
3747
+ * @param RefreshUserAssessmentRequest
3748
+ * @return RefreshUserAssessmentResponse
3749
+ * @throws OciError when an error occurs
3750
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.5.2/datasafe/RefreshUserAssessment.ts.html |here} to see how to use RefreshUserAssessment API.
3751
+ */
3752
+ refreshUserAssessment(refreshUserAssessmentRequest) {
3753
+ return __awaiter(this, void 0, void 0, function* () {
3754
+ if (this.logger)
3755
+ this.logger.debug("Calling operation DataSafeClient#refreshUserAssessment.");
3756
+ const pathParams = {
3757
+ "{userAssessmentId}": refreshUserAssessmentRequest.userAssessmentId
3758
+ };
3759
+ const queryParams = {};
3760
+ let headerParams = {
3761
+ "Content-Type": common.Constants.APPLICATION_JSON,
3762
+ "opc-retry-token": refreshUserAssessmentRequest.opcRetryToken,
3763
+ "opc-request-id": refreshUserAssessmentRequest.opcRequestId,
3764
+ "if-match": refreshUserAssessmentRequest.ifMatch
3765
+ };
3766
+ const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : {}, refreshUserAssessmentRequest.retryConfiguration);
3767
+ if (this.logger)
3768
+ retrier.logger = this.logger;
3769
+ const request = yield oci_common_2.composeRequest({
3770
+ baseEndpoint: this._endpoint,
3771
+ defaultHeaders: this._defaultHeaders,
3772
+ path: "/userAssessments/{userAssessmentId}/actions/refresh",
3773
+ method: "POST",
3774
+ bodyContent: common.ObjectSerializer.serialize(refreshUserAssessmentRequest.runUserAssessmentDetails, "RunUserAssessmentDetails", model.RunUserAssessmentDetails.getJsonObj),
3775
+ pathParams: pathParams,
3776
+ headerParams: headerParams,
3777
+ queryParams: queryParams
3778
+ });
3779
+ try {
3780
+ const response = yield retrier.makeServiceCall(this._httpClient, request);
3781
+ const sdkResponse = oci_common_2.composeResponse({
3782
+ responseObject: {},
3783
+ responseHeaders: [
3784
+ {
3785
+ value: response.headers.get("opc-work-request-id"),
3786
+ key: "opcWorkRequestId",
3787
+ dataType: "string"
1518
3788
  },
1519
3789
  {
1520
- value: response.headers.get("opc-next-page"),
1521
- key: "opcNextPage",
3790
+ value: response.headers.get("opc-request-id"),
3791
+ key: "opcRequestId",
3792
+ dataType: "string"
3793
+ }
3794
+ ]
3795
+ });
3796
+ return sdkResponse;
3797
+ }
3798
+ catch (err) {
3799
+ throw err;
3800
+ }
3801
+ });
3802
+ }
3803
+ /**
3804
+ * Sets the saved security assessment as the baseline in the compartment where the the specified assessment resides. The security assessment needs to be of type 'SAVED'.
3805
+ * @param SetSecurityAssessmentBaselineRequest
3806
+ * @return SetSecurityAssessmentBaselineResponse
3807
+ * @throws OciError when an error occurs
3808
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.5.2/datasafe/SetSecurityAssessmentBaseline.ts.html |here} to see how to use SetSecurityAssessmentBaseline API.
3809
+ */
3810
+ setSecurityAssessmentBaseline(setSecurityAssessmentBaselineRequest) {
3811
+ return __awaiter(this, void 0, void 0, function* () {
3812
+ if (this.logger)
3813
+ this.logger.debug("Calling operation DataSafeClient#setSecurityAssessmentBaseline.");
3814
+ const pathParams = {
3815
+ "{securityAssessmentId}": setSecurityAssessmentBaselineRequest.securityAssessmentId
3816
+ };
3817
+ const queryParams = {};
3818
+ let headerParams = {
3819
+ "Content-Type": common.Constants.APPLICATION_JSON,
3820
+ "if-match": setSecurityAssessmentBaselineRequest.ifMatch,
3821
+ "opc-retry-token": setSecurityAssessmentBaselineRequest.opcRetryToken,
3822
+ "opc-request-id": setSecurityAssessmentBaselineRequest.opcRequestId
3823
+ };
3824
+ const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : {}, setSecurityAssessmentBaselineRequest.retryConfiguration);
3825
+ if (this.logger)
3826
+ retrier.logger = this.logger;
3827
+ const request = yield oci_common_2.composeRequest({
3828
+ baseEndpoint: this._endpoint,
3829
+ defaultHeaders: this._defaultHeaders,
3830
+ path: "/securityAssessments/{securityAssessmentId}/actions/setBaseline",
3831
+ method: "POST",
3832
+ bodyContent: common.ObjectSerializer.serialize(setSecurityAssessmentBaselineRequest.baseLineDetails, "SecurityAssessmentBaseLineDetails", model.SecurityAssessmentBaseLineDetails.getJsonObj),
3833
+ pathParams: pathParams,
3834
+ headerParams: headerParams,
3835
+ queryParams: queryParams
3836
+ });
3837
+ try {
3838
+ const response = yield retrier.makeServiceCall(this._httpClient, request);
3839
+ const sdkResponse = oci_common_2.composeResponse({
3840
+ responseObject: {},
3841
+ responseHeaders: [
3842
+ {
3843
+ value: response.headers.get("opc-work-request-id"),
3844
+ key: "opcWorkRequestId",
1522
3845
  dataType: "string"
1523
3846
  },
1524
3847
  {
1525
- value: response.headers.get("opc-prev-page"),
1526
- key: "opcPrevPage",
3848
+ value: response.headers.get("opc-request-id"),
3849
+ key: "opcRequestId",
1527
3850
  dataType: "string"
1528
3851
  }
1529
3852
  ]
@@ -1536,55 +3859,35 @@ class DataSafeClient {
1536
3859
  });
1537
3860
  }
1538
3861
  /**
1539
- * Creates a new async iterator which will iterate over the models.TargetDatabaseSummary objects
1540
- * contained in responses from the listTargetDatabases operation. This iterator will fetch more data from the
1541
- * server as needed.
1542
- *
1543
- * @param request a request which can be sent to the service operation
1544
- */
1545
- listAllTargetDatabases(request) {
1546
- return oci_common_1.paginateRecords(request, req => this.listTargetDatabases(req));
1547
- }
1548
- /**
1549
- * Creates a new async iterator which will iterate over the responses received from the listTargetDatabases operation. This iterator
1550
- * will fetch more data from the server as needed.
1551
- *
1552
- * @param request a request which can be sent to the service operation
1553
- */
1554
- listAllTargetDatabasesResponses(request) {
1555
- return oci_common_1.paginateResponses(request, req => this.listTargetDatabases(req));
1556
- }
1557
- /**
1558
- * Gets a list of errors for the specified work request.
1559
- *
1560
- * @param ListWorkRequestErrorsRequest
1561
- * @return ListWorkRequestErrorsResponse
3862
+ * Sets the saved user assessment as the baseline in the compartment where the specified assessment resides. The user assessment needs to be of type 'SAVED'.
3863
+ * @param SetUserAssessmentBaselineRequest
3864
+ * @return SetUserAssessmentBaselineResponse
1562
3865
  * @throws OciError when an error occurs
1563
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.3.1/datasafe/ListWorkRequestErrors.ts.html |here} to see how to use ListWorkRequestErrors API.
3866
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.5.2/datasafe/SetUserAssessmentBaseline.ts.html |here} to see how to use SetUserAssessmentBaseline API.
1564
3867
  */
1565
- listWorkRequestErrors(listWorkRequestErrorsRequest) {
3868
+ setUserAssessmentBaseline(setUserAssessmentBaselineRequest) {
1566
3869
  return __awaiter(this, void 0, void 0, function* () {
1567
3870
  if (this.logger)
1568
- this.logger.debug("Calling operation DataSafeClient#listWorkRequestErrors.");
3871
+ this.logger.debug("Calling operation DataSafeClient#setUserAssessmentBaseline.");
1569
3872
  const pathParams = {
1570
- "{workRequestId}": listWorkRequestErrorsRequest.workRequestId
1571
- };
1572
- const queryParams = {
1573
- "page": listWorkRequestErrorsRequest.page,
1574
- "limit": listWorkRequestErrorsRequest.limit
3873
+ "{userAssessmentId}": setUserAssessmentBaselineRequest.userAssessmentId
1575
3874
  };
3875
+ const queryParams = {};
1576
3876
  let headerParams = {
1577
3877
  "Content-Type": common.Constants.APPLICATION_JSON,
1578
- "opc-request-id": listWorkRequestErrorsRequest.opcRequestId
3878
+ "if-match": setUserAssessmentBaselineRequest.ifMatch,
3879
+ "opc-retry-token": setUserAssessmentBaselineRequest.opcRetryToken,
3880
+ "opc-request-id": setUserAssessmentBaselineRequest.opcRequestId
1579
3881
  };
1580
- const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : {}, listWorkRequestErrorsRequest.retryConfiguration);
3882
+ const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : {}, setUserAssessmentBaselineRequest.retryConfiguration);
1581
3883
  if (this.logger)
1582
3884
  retrier.logger = this.logger;
1583
3885
  const request = yield oci_common_2.composeRequest({
1584
3886
  baseEndpoint: this._endpoint,
1585
3887
  defaultHeaders: this._defaultHeaders,
1586
- path: "/workRequests/{workRequestId}/errors",
1587
- method: "GET",
3888
+ path: "/userAssessments/{userAssessmentId}/actions/setBaseline",
3889
+ method: "POST",
3890
+ bodyContent: common.ObjectSerializer.serialize(setUserAssessmentBaselineRequest.baseLineDetails, "UserAssessmentBaseLineDetails", model.UserAssessmentBaseLineDetails.getJsonObj),
1588
3891
  pathParams: pathParams,
1589
3892
  headerParams: headerParams,
1590
3893
  queryParams: queryParams
@@ -1593,19 +3896,15 @@ class DataSafeClient {
1593
3896
  const response = yield retrier.makeServiceCall(this._httpClient, request);
1594
3897
  const sdkResponse = oci_common_2.composeResponse({
1595
3898
  responseObject: {},
1596
- body: yield response.json(),
1597
- bodyKey: "items",
1598
- bodyModel: model.WorkRequestError,
1599
- type: "Array<model.WorkRequestError>",
1600
3899
  responseHeaders: [
1601
3900
  {
1602
- value: response.headers.get("opc-request-id"),
1603
- key: "opcRequestId",
3901
+ value: response.headers.get("opc-work-request-id"),
3902
+ key: "opcWorkRequestId",
1604
3903
  dataType: "string"
1605
3904
  },
1606
3905
  {
1607
- value: response.headers.get("opc-next-page"),
1608
- key: "opcNextPage",
3906
+ value: response.headers.get("opc-request-id"),
3907
+ key: "opcRequestId",
1609
3908
  dataType: "string"
1610
3909
  }
1611
3910
  ]
@@ -1618,55 +3917,36 @@ class DataSafeClient {
1618
3917
  });
1619
3918
  }
1620
3919
  /**
1621
- * Creates a new async iterator which will iterate over the models.WorkRequestError objects
1622
- * contained in responses from the listWorkRequestErrors operation. This iterator will fetch more data from the
1623
- * server as needed.
1624
- *
1625
- * @param request a request which can be sent to the service operation
1626
- */
1627
- listAllWorkRequestErrors(request) {
1628
- return oci_common_1.paginateRecords(request, req => this.listWorkRequestErrors(req));
1629
- }
1630
- /**
1631
- * Creates a new async iterator which will iterate over the responses received from the listWorkRequestErrors operation. This iterator
1632
- * will fetch more data from the server as needed.
1633
- *
1634
- * @param request a request which can be sent to the service operation
1635
- */
1636
- listAllWorkRequestErrorsResponses(request) {
1637
- return oci_common_1.paginateResponses(request, req => this.listWorkRequestErrors(req));
1638
- }
1639
- /**
1640
- * Gets a list of log entries for the specified work request.
3920
+ * Removes the baseline setting for the saved security assessment. The saved security assessment is no longer considered a baseline.
3921
+ * Sets the if-match parameter to the value of the etag from a previous GET or POST response for that resource.
1641
3922
  *
1642
- * @param ListWorkRequestLogsRequest
1643
- * @return ListWorkRequestLogsResponse
3923
+ * @param UnsetSecurityAssessmentBaselineRequest
3924
+ * @return UnsetSecurityAssessmentBaselineResponse
1644
3925
  * @throws OciError when an error occurs
1645
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.3.1/datasafe/ListWorkRequestLogs.ts.html |here} to see how to use ListWorkRequestLogs API.
3926
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.5.2/datasafe/UnsetSecurityAssessmentBaseline.ts.html |here} to see how to use UnsetSecurityAssessmentBaseline API.
1646
3927
  */
1647
- listWorkRequestLogs(listWorkRequestLogsRequest) {
3928
+ unsetSecurityAssessmentBaseline(unsetSecurityAssessmentBaselineRequest) {
1648
3929
  return __awaiter(this, void 0, void 0, function* () {
1649
3930
  if (this.logger)
1650
- this.logger.debug("Calling operation DataSafeClient#listWorkRequestLogs.");
3931
+ this.logger.debug("Calling operation DataSafeClient#unsetSecurityAssessmentBaseline.");
1651
3932
  const pathParams = {
1652
- "{workRequestId}": listWorkRequestLogsRequest.workRequestId
1653
- };
1654
- const queryParams = {
1655
- "page": listWorkRequestLogsRequest.page,
1656
- "limit": listWorkRequestLogsRequest.limit
3933
+ "{securityAssessmentId}": unsetSecurityAssessmentBaselineRequest.securityAssessmentId
1657
3934
  };
3935
+ const queryParams = {};
1658
3936
  let headerParams = {
1659
3937
  "Content-Type": common.Constants.APPLICATION_JSON,
1660
- "opc-request-id": listWorkRequestLogsRequest.opcRequestId
3938
+ "if-match": unsetSecurityAssessmentBaselineRequest.ifMatch,
3939
+ "opc-retry-token": unsetSecurityAssessmentBaselineRequest.opcRetryToken,
3940
+ "opc-request-id": unsetSecurityAssessmentBaselineRequest.opcRequestId
1661
3941
  };
1662
- const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : {}, listWorkRequestLogsRequest.retryConfiguration);
3942
+ const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : {}, unsetSecurityAssessmentBaselineRequest.retryConfiguration);
1663
3943
  if (this.logger)
1664
3944
  retrier.logger = this.logger;
1665
3945
  const request = yield oci_common_2.composeRequest({
1666
3946
  baseEndpoint: this._endpoint,
1667
3947
  defaultHeaders: this._defaultHeaders,
1668
- path: "/workRequests/{workRequestId}/logs",
1669
- method: "GET",
3948
+ path: "/securityAssessments/{securityAssessmentId}/actions/unsetBaseline",
3949
+ method: "POST",
1670
3950
  pathParams: pathParams,
1671
3951
  headerParams: headerParams,
1672
3952
  queryParams: queryParams
@@ -1675,19 +3955,15 @@ class DataSafeClient {
1675
3955
  const response = yield retrier.makeServiceCall(this._httpClient, request);
1676
3956
  const sdkResponse = oci_common_2.composeResponse({
1677
3957
  responseObject: {},
1678
- body: yield response.json(),
1679
- bodyKey: "items",
1680
- bodyModel: model.WorkRequestLogEntry,
1681
- type: "Array<model.WorkRequestLogEntry>",
1682
3958
  responseHeaders: [
1683
3959
  {
1684
- value: response.headers.get("opc-request-id"),
1685
- key: "opcRequestId",
3960
+ value: response.headers.get("opc-work-request-id"),
3961
+ key: "opcWorkRequestId",
1686
3962
  dataType: "string"
1687
3963
  },
1688
3964
  {
1689
- value: response.headers.get("opc-next-page"),
1690
- key: "opcNextPage",
3965
+ value: response.headers.get("opc-request-id"),
3966
+ key: "opcRequestId",
1691
3967
  dataType: "string"
1692
3968
  }
1693
3969
  ]
@@ -1700,56 +3976,36 @@ class DataSafeClient {
1700
3976
  });
1701
3977
  }
1702
3978
  /**
1703
- * Creates a new async iterator which will iterate over the models.WorkRequestLogEntry objects
1704
- * contained in responses from the listWorkRequestLogs operation. This iterator will fetch more data from the
1705
- * server as needed.
1706
- *
1707
- * @param request a request which can be sent to the service operation
1708
- */
1709
- listAllWorkRequestLogs(request) {
1710
- return oci_common_1.paginateRecords(request, req => this.listWorkRequestLogs(req));
1711
- }
1712
- /**
1713
- * Creates a new async iterator which will iterate over the responses received from the listWorkRequestLogs operation. This iterator
1714
- * will fetch more data from the server as needed.
1715
- *
1716
- * @param request a request which can be sent to the service operation
1717
- */
1718
- listAllWorkRequestLogsResponses(request) {
1719
- return oci_common_1.paginateResponses(request, req => this.listWorkRequestLogs(req));
1720
- }
1721
- /**
1722
- * Gets a list of work requests.
3979
+ * Removes the baseline setting for the saved user assessment. The saved user assessment is no longer considered a baseline.
3980
+ * Sets the if-match parameter to the value of the etag from a previous GET or POST response for that resource.
1723
3981
  *
1724
- * @param ListWorkRequestsRequest
1725
- * @return ListWorkRequestsResponse
3982
+ * @param UnsetUserAssessmentBaselineRequest
3983
+ * @return UnsetUserAssessmentBaselineResponse
1726
3984
  * @throws OciError when an error occurs
1727
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.3.1/datasafe/ListWorkRequests.ts.html |here} to see how to use ListWorkRequests API.
3985
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.5.2/datasafe/UnsetUserAssessmentBaseline.ts.html |here} to see how to use UnsetUserAssessmentBaseline API.
1728
3986
  */
1729
- listWorkRequests(listWorkRequestsRequest) {
3987
+ unsetUserAssessmentBaseline(unsetUserAssessmentBaselineRequest) {
1730
3988
  return __awaiter(this, void 0, void 0, function* () {
1731
3989
  if (this.logger)
1732
- this.logger.debug("Calling operation DataSafeClient#listWorkRequests.");
1733
- const pathParams = {};
1734
- const queryParams = {
1735
- "compartmentId": listWorkRequestsRequest.compartmentId,
1736
- "operationType": listWorkRequestsRequest.operationType,
1737
- "resourceId": listWorkRequestsRequest.resourceId,
1738
- "page": listWorkRequestsRequest.page,
1739
- "limit": listWorkRequestsRequest.limit
3990
+ this.logger.debug("Calling operation DataSafeClient#unsetUserAssessmentBaseline.");
3991
+ const pathParams = {
3992
+ "{userAssessmentId}": unsetUserAssessmentBaselineRequest.userAssessmentId
1740
3993
  };
3994
+ const queryParams = {};
1741
3995
  let headerParams = {
1742
3996
  "Content-Type": common.Constants.APPLICATION_JSON,
1743
- "opc-request-id": listWorkRequestsRequest.opcRequestId
3997
+ "if-match": unsetUserAssessmentBaselineRequest.ifMatch,
3998
+ "opc-retry-token": unsetUserAssessmentBaselineRequest.opcRetryToken,
3999
+ "opc-request-id": unsetUserAssessmentBaselineRequest.opcRequestId
1744
4000
  };
1745
- const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : {}, listWorkRequestsRequest.retryConfiguration);
4001
+ const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : {}, unsetUserAssessmentBaselineRequest.retryConfiguration);
1746
4002
  if (this.logger)
1747
4003
  retrier.logger = this.logger;
1748
4004
  const request = yield oci_common_2.composeRequest({
1749
4005
  baseEndpoint: this._endpoint,
1750
4006
  defaultHeaders: this._defaultHeaders,
1751
- path: "/workRequests",
1752
- method: "GET",
4007
+ path: "/userAssessments/{userAssessmentId}/actions/unsetBaseline",
4008
+ method: "POST",
1753
4009
  pathParams: pathParams,
1754
4010
  headerParams: headerParams,
1755
4011
  queryParams: queryParams
@@ -1758,19 +4014,15 @@ class DataSafeClient {
1758
4014
  const response = yield retrier.makeServiceCall(this._httpClient, request);
1759
4015
  const sdkResponse = oci_common_2.composeResponse({
1760
4016
  responseObject: {},
1761
- body: yield response.json(),
1762
- bodyKey: "items",
1763
- bodyModel: model.WorkRequestSummary,
1764
- type: "Array<model.WorkRequestSummary>",
1765
4017
  responseHeaders: [
1766
4018
  {
1767
- value: response.headers.get("opc-request-id"),
1768
- key: "opcRequestId",
4019
+ value: response.headers.get("opc-work-request-id"),
4020
+ key: "opcWorkRequestId",
1769
4021
  dataType: "string"
1770
4022
  },
1771
4023
  {
1772
- value: response.headers.get("opc-next-page"),
1773
- key: "opcNextPage",
4024
+ value: response.headers.get("opc-request-id"),
4025
+ key: "opcRequestId",
1774
4026
  dataType: "string"
1775
4027
  }
1776
4028
  ]
@@ -1782,31 +4034,12 @@ class DataSafeClient {
1782
4034
  }
1783
4035
  });
1784
4036
  }
1785
- /**
1786
- * Creates a new async iterator which will iterate over the models.WorkRequestSummary objects
1787
- * contained in responses from the listWorkRequests operation. This iterator will fetch more data from the
1788
- * server as needed.
1789
- *
1790
- * @param request a request which can be sent to the service operation
1791
- */
1792
- listAllWorkRequests(request) {
1793
- return oci_common_1.paginateRecords(request, req => this.listWorkRequests(req));
1794
- }
1795
- /**
1796
- * Creates a new async iterator which will iterate over the responses received from the listWorkRequests operation. This iterator
1797
- * will fetch more data from the server as needed.
1798
- *
1799
- * @param request a request which can be sent to the service operation
1800
- */
1801
- listAllWorkRequestsResponses(request) {
1802
- return oci_common_1.paginateResponses(request, req => this.listWorkRequests(req));
1803
- }
1804
4037
  /**
1805
4038
  * Updates one or more attributes of the specified Data Safe private endpoint.
1806
4039
  * @param UpdateDataSafePrivateEndpointRequest
1807
4040
  * @return UpdateDataSafePrivateEndpointResponse
1808
4041
  * @throws OciError when an error occurs
1809
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.3.1/datasafe/UpdateDataSafePrivateEndpoint.ts.html |here} to see how to use UpdateDataSafePrivateEndpoint API.
4042
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.5.2/datasafe/UpdateDataSafePrivateEndpoint.ts.html |here} to see how to use UpdateDataSafePrivateEndpoint API.
1810
4043
  */
1811
4044
  updateDataSafePrivateEndpoint(updateDataSafePrivateEndpointRequest) {
1812
4045
  return __awaiter(this, void 0, void 0, function* () {
@@ -1863,7 +4096,7 @@ class DataSafeClient {
1863
4096
  * @param UpdateOnPremConnectorRequest
1864
4097
  * @return UpdateOnPremConnectorResponse
1865
4098
  * @throws OciError when an error occurs
1866
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.3.1/datasafe/UpdateOnPremConnector.ts.html |here} to see how to use UpdateOnPremConnector API.
4099
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.5.2/datasafe/UpdateOnPremConnector.ts.html |here} to see how to use UpdateOnPremConnector API.
1867
4100
  */
1868
4101
  updateOnPremConnector(updateOnPremConnectorRequest) {
1869
4102
  return __awaiter(this, void 0, void 0, function* () {
@@ -1921,7 +4154,7 @@ class DataSafeClient {
1921
4154
  * @param UpdateOnPremConnectorWalletRequest
1922
4155
  * @return UpdateOnPremConnectorWalletResponse
1923
4156
  * @throws OciError when an error occurs
1924
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.3.1/datasafe/UpdateOnPremConnectorWallet.ts.html |here} to see how to use UpdateOnPremConnectorWallet API.
4157
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.5.2/datasafe/UpdateOnPremConnectorWallet.ts.html |here} to see how to use UpdateOnPremConnectorWallet API.
1925
4158
  */
1926
4159
  updateOnPremConnectorWallet(updateOnPremConnectorWalletRequest) {
1927
4160
  return __awaiter(this, void 0, void 0, function* () {
@@ -1974,12 +4207,70 @@ class DataSafeClient {
1974
4207
  }
1975
4208
  });
1976
4209
  }
4210
+ /**
4211
+ * Updates one or more attributes of the specified security assessment. This operation allows to update the security assessment displayName, description, or schedule.
4212
+ *
4213
+ * @param UpdateSecurityAssessmentRequest
4214
+ * @return UpdateSecurityAssessmentResponse
4215
+ * @throws OciError when an error occurs
4216
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.5.2/datasafe/UpdateSecurityAssessment.ts.html |here} to see how to use UpdateSecurityAssessment API.
4217
+ */
4218
+ updateSecurityAssessment(updateSecurityAssessmentRequest) {
4219
+ return __awaiter(this, void 0, void 0, function* () {
4220
+ if (this.logger)
4221
+ this.logger.debug("Calling operation DataSafeClient#updateSecurityAssessment.");
4222
+ const pathParams = {
4223
+ "{securityAssessmentId}": updateSecurityAssessmentRequest.securityAssessmentId
4224
+ };
4225
+ const queryParams = {};
4226
+ let headerParams = {
4227
+ "Content-Type": common.Constants.APPLICATION_JSON,
4228
+ "opc-request-id": updateSecurityAssessmentRequest.opcRequestId,
4229
+ "if-match": updateSecurityAssessmentRequest.ifMatch
4230
+ };
4231
+ const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : {}, updateSecurityAssessmentRequest.retryConfiguration);
4232
+ if (this.logger)
4233
+ retrier.logger = this.logger;
4234
+ const request = yield oci_common_2.composeRequest({
4235
+ baseEndpoint: this._endpoint,
4236
+ defaultHeaders: this._defaultHeaders,
4237
+ path: "/securityAssessments/{securityAssessmentId}",
4238
+ method: "PUT",
4239
+ bodyContent: common.ObjectSerializer.serialize(updateSecurityAssessmentRequest.updateSecurityAssessmentDetails, "UpdateSecurityAssessmentDetails", model.UpdateSecurityAssessmentDetails.getJsonObj),
4240
+ pathParams: pathParams,
4241
+ headerParams: headerParams,
4242
+ queryParams: queryParams
4243
+ });
4244
+ try {
4245
+ const response = yield retrier.makeServiceCall(this._httpClient, request);
4246
+ const sdkResponse = oci_common_2.composeResponse({
4247
+ responseObject: {},
4248
+ responseHeaders: [
4249
+ {
4250
+ value: response.headers.get("opc-work-request-id"),
4251
+ key: "opcWorkRequestId",
4252
+ dataType: "string"
4253
+ },
4254
+ {
4255
+ value: response.headers.get("opc-request-id"),
4256
+ key: "opcRequestId",
4257
+ dataType: "string"
4258
+ }
4259
+ ]
4260
+ });
4261
+ return sdkResponse;
4262
+ }
4263
+ catch (err) {
4264
+ throw err;
4265
+ }
4266
+ });
4267
+ }
1977
4268
  /**
1978
4269
  * Updates one or more attributes of the specified Data Safe target database.
1979
4270
  * @param UpdateTargetDatabaseRequest
1980
4271
  * @return UpdateTargetDatabaseResponse
1981
4272
  * @throws OciError when an error occurs
1982
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.3.1/datasafe/UpdateTargetDatabase.ts.html |here} to see how to use UpdateTargetDatabase API.
4273
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.5.2/datasafe/UpdateTargetDatabase.ts.html |here} to see how to use UpdateTargetDatabase API.
1983
4274
  */
1984
4275
  updateTargetDatabase(updateTargetDatabaseRequest) {
1985
4276
  return __awaiter(this, void 0, void 0, function* () {
@@ -2032,6 +4323,64 @@ class DataSafeClient {
2032
4323
  }
2033
4324
  });
2034
4325
  }
4326
+ /**
4327
+ * Updates one or more attributes of the specified user assessment. This operation allows to update the user assessment displayName, description, or schedule.
4328
+ *
4329
+ * @param UpdateUserAssessmentRequest
4330
+ * @return UpdateUserAssessmentResponse
4331
+ * @throws OciError when an error occurs
4332
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.5.2/datasafe/UpdateUserAssessment.ts.html |here} to see how to use UpdateUserAssessment API.
4333
+ */
4334
+ updateUserAssessment(updateUserAssessmentRequest) {
4335
+ return __awaiter(this, void 0, void 0, function* () {
4336
+ if (this.logger)
4337
+ this.logger.debug("Calling operation DataSafeClient#updateUserAssessment.");
4338
+ const pathParams = {
4339
+ "{userAssessmentId}": updateUserAssessmentRequest.userAssessmentId
4340
+ };
4341
+ const queryParams = {};
4342
+ let headerParams = {
4343
+ "Content-Type": common.Constants.APPLICATION_JSON,
4344
+ "opc-request-id": updateUserAssessmentRequest.opcRequestId,
4345
+ "if-match": updateUserAssessmentRequest.ifMatch
4346
+ };
4347
+ const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : {}, updateUserAssessmentRequest.retryConfiguration);
4348
+ if (this.logger)
4349
+ retrier.logger = this.logger;
4350
+ const request = yield oci_common_2.composeRequest({
4351
+ baseEndpoint: this._endpoint,
4352
+ defaultHeaders: this._defaultHeaders,
4353
+ path: "/userAssessments/{userAssessmentId}",
4354
+ method: "PUT",
4355
+ bodyContent: common.ObjectSerializer.serialize(updateUserAssessmentRequest.updateUserAssessmentDetails, "UpdateUserAssessmentDetails", model.UpdateUserAssessmentDetails.getJsonObj),
4356
+ pathParams: pathParams,
4357
+ headerParams: headerParams,
4358
+ queryParams: queryParams
4359
+ });
4360
+ try {
4361
+ const response = yield retrier.makeServiceCall(this._httpClient, request);
4362
+ const sdkResponse = oci_common_2.composeResponse({
4363
+ responseObject: {},
4364
+ responseHeaders: [
4365
+ {
4366
+ value: response.headers.get("opc-work-request-id"),
4367
+ key: "opcWorkRequestId",
4368
+ dataType: "string"
4369
+ },
4370
+ {
4371
+ value: response.headers.get("opc-request-id"),
4372
+ key: "opcRequestId",
4373
+ dataType: "string"
4374
+ }
4375
+ ]
4376
+ });
4377
+ return sdkResponse;
4378
+ }
4379
+ catch (err) {
4380
+ throw err;
4381
+ }
4382
+ });
4383
+ }
2035
4384
  }
2036
4385
  exports.DataSafeClient = DataSafeClient;
2037
4386
  DataSafeClient.serviceEndpointTemplate = "https://datasafe.{region}.oci.{secondLevelDomain}";