oci-fusionapps 2.35.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (458) hide show
  1. package/LICENSE.txt +89 -0
  2. package/NOTICE.txt +1 -0
  3. package/README.md +22 -0
  4. package/THIRD_PARTY_LICENSES.txt +576 -0
  5. package/index.d.ts +37 -0
  6. package/index.js +60 -0
  7. package/index.js.map +1 -0
  8. package/lib/client.d.ts +680 -0
  9. package/lib/client.js +2891 -0
  10. package/lib/client.js.map +1 -0
  11. package/lib/datamaskingactivity-waiter.d.ts +29 -0
  12. package/lib/datamaskingactivity-waiter.js +45 -0
  13. package/lib/datamaskingactivity-waiter.js.map +1 -0
  14. package/lib/fusionenvironment-waiter.d.ts +36 -0
  15. package/lib/fusionenvironment-waiter.js +76 -0
  16. package/lib/fusionenvironment-waiter.js.map +1 -0
  17. package/lib/fusionenvironmentfamily-waiter.d.ts +29 -0
  18. package/lib/fusionenvironmentfamily-waiter.js +65 -0
  19. package/lib/fusionenvironmentfamily-waiter.js.map +1 -0
  20. package/lib/model/action.d.ts +46 -0
  21. package/lib/model/action.js +86 -0
  22. package/lib/model/action.js.map +1 -0
  23. package/lib/model/admin-user-collection.d.ts +26 -0
  24. package/lib/model/admin-user-collection.js +61 -0
  25. package/lib/model/admin-user-collection.js.map +1 -0
  26. package/lib/model/admin-user-summary.d.ts +37 -0
  27. package/lib/model/admin-user-summary.js +29 -0
  28. package/lib/model/admin-user-summary.js.map +1 -0
  29. package/lib/model/allow-rule.d.ts +41 -0
  30. package/lib/model/allow-rule.js +62 -0
  31. package/lib/model/allow-rule.js.map +1 -0
  32. package/lib/model/attach-existing-instance-details.d.ts +54 -0
  33. package/lib/model/attach-existing-instance-details.js +59 -0
  34. package/lib/model/attach-existing-instance-details.js.map +1 -0
  35. package/lib/model/capabilities.d.ts +33 -0
  36. package/lib/model/capabilities.js +29 -0
  37. package/lib/model/capabilities.js.map +1 -0
  38. package/lib/model/change-fusion-environment-compartment-details.d.ts +26 -0
  39. package/lib/model/change-fusion-environment-compartment-details.js +29 -0
  40. package/lib/model/change-fusion-environment-compartment-details.js.map +1 -0
  41. package/lib/model/change-fusion-environment-family-compartment-details.d.ts +26 -0
  42. package/lib/model/change-fusion-environment-family-compartment-details.js +29 -0
  43. package/lib/model/change-fusion-environment-family-compartment-details.js.map +1 -0
  44. package/lib/model/create-data-masking-activity-details.d.ts +25 -0
  45. package/lib/model/create-data-masking-activity-details.js +29 -0
  46. package/lib/model/create-data-masking-activity-details.js.map +1 -0
  47. package/lib/model/create-fusion-environment-admin-user-details.d.ts +41 -0
  48. package/lib/model/create-fusion-environment-admin-user-details.js +29 -0
  49. package/lib/model/create-fusion-environment-admin-user-details.js.map +1 -0
  50. package/lib/model/create-fusion-environment-details.d.ts +74 -0
  51. package/lib/model/create-fusion-environment-details.js +73 -0
  52. package/lib/model/create-fusion-environment-details.js.map +1 -0
  53. package/lib/model/create-fusion-environment-family-details.d.ts +53 -0
  54. package/lib/model/create-fusion-environment-family-details.js +57 -0
  55. package/lib/model/create-fusion-environment-family-details.js.map +1 -0
  56. package/lib/model/create-new-instance-details.d.ts +43 -0
  57. package/lib/model/create-new-instance-details.js +62 -0
  58. package/lib/model/create-new-instance-details.js.map +1 -0
  59. package/lib/model/create-oax-service-instance-details.d.ts +36 -0
  60. package/lib/model/create-oax-service-instance-details.js +64 -0
  61. package/lib/model/create-oax-service-instance-details.js.map +1 -0
  62. package/lib/model/create-oic-service-instance-details.d.ts +36 -0
  63. package/lib/model/create-oic-service-instance-details.js +59 -0
  64. package/lib/model/create-oic-service-instance-details.js.map +1 -0
  65. package/lib/model/create-refresh-activity-details.d.ts +26 -0
  66. package/lib/model/create-refresh-activity-details.js +29 -0
  67. package/lib/model/create-refresh-activity-details.js.map +1 -0
  68. package/lib/model/create-service-attachment-details.d.ts +22 -0
  69. package/lib/model/create-service-attachment-details.js +69 -0
  70. package/lib/model/create-service-attachment-details.js.map +1 -0
  71. package/lib/model/create-service-instance-details.d.ts +30 -0
  72. package/lib/model/create-service-instance-details.js +69 -0
  73. package/lib/model/create-service-instance-details.js.map +1 -0
  74. package/lib/model/data-masking-activity-collection.d.ts +26 -0
  75. package/lib/model/data-masking-activity-collection.js +61 -0
  76. package/lib/model/data-masking-activity-collection.js.map +1 -0
  77. package/lib/model/data-masking-activity-summary.d.ts +37 -0
  78. package/lib/model/data-masking-activity-summary.js +29 -0
  79. package/lib/model/data-masking-activity-summary.js.map +1 -0
  80. package/lib/model/data-masking-activity.d.ts +53 -0
  81. package/lib/model/data-masking-activity.js +42 -0
  82. package/lib/model/data-masking-activity.js.map +1 -0
  83. package/lib/model/family-maintenance-policy.d.ts +43 -0
  84. package/lib/model/family-maintenance-policy.js +40 -0
  85. package/lib/model/family-maintenance-policy.js.map +1 -0
  86. package/lib/model/faw-admin-info-details.d.ts +33 -0
  87. package/lib/model/faw-admin-info-details.js +29 -0
  88. package/lib/model/faw-admin-info-details.js.map +1 -0
  89. package/lib/model/fusion-environment-collection.d.ts +26 -0
  90. package/lib/model/fusion-environment-collection.js +61 -0
  91. package/lib/model/fusion-environment-collection.js.map +1 -0
  92. package/lib/model/fusion-environment-family-collection.d.ts +26 -0
  93. package/lib/model/fusion-environment-family-collection.js +61 -0
  94. package/lib/model/fusion-environment-family-collection.js.map +1 -0
  95. package/lib/model/fusion-environment-family-limits-and-usage.d.ts +25 -0
  96. package/lib/model/fusion-environment-family-limits-and-usage.js +69 -0
  97. package/lib/model/fusion-environment-family-limits-and-usage.js.map +1 -0
  98. package/lib/model/fusion-environment-family-summary.d.ts +77 -0
  99. package/lib/model/fusion-environment-family-summary.js +57 -0
  100. package/lib/model/fusion-environment-family-summary.js.map +1 -0
  101. package/lib/model/fusion-environment-family.d.ts +90 -0
  102. package/lib/model/fusion-environment-family.js +71 -0
  103. package/lib/model/fusion-environment-family.js.map +1 -0
  104. package/lib/model/fusion-environment-status.d.ts +38 -0
  105. package/lib/model/fusion-environment-status.js +43 -0
  106. package/lib/model/fusion-environment-status.js.map +1 -0
  107. package/lib/model/fusion-environment-summary.d.ts +105 -0
  108. package/lib/model/fusion-environment-summary.js +57 -0
  109. package/lib/model/fusion-environment-summary.js.map +1 -0
  110. package/lib/model/fusion-environment.d.ts +154 -0
  111. package/lib/model/fusion-environment.js +97 -0
  112. package/lib/model/fusion-environment.js.map +1 -0
  113. package/lib/model/get-maintenance-policy-details.d.ts +31 -0
  114. package/lib/model/get-maintenance-policy-details.js +57 -0
  115. package/lib/model/get-maintenance-policy-details.js.map +1 -0
  116. package/lib/model/index.d.ts +156 -0
  117. package/lib/model/index.js +180 -0
  118. package/lib/model/index.js.map +1 -0
  119. package/lib/model/kms-key-info.d.ts +55 -0
  120. package/lib/model/kms-key-info.js +36 -0
  121. package/lib/model/kms-key-info.js.map +1 -0
  122. package/lib/model/limit-and-usage.d.ts +29 -0
  123. package/lib/model/limit-and-usage.js +29 -0
  124. package/lib/model/limit-and-usage.js.map +1 -0
  125. package/lib/model/maintenance-policy.d.ts +39 -0
  126. package/lib/model/maintenance-policy.js +41 -0
  127. package/lib/model/maintenance-policy.js.map +1 -0
  128. package/lib/model/patch-action.d.ts +55 -0
  129. package/lib/model/patch-action.js +71 -0
  130. package/lib/model/patch-action.js.map +1 -0
  131. package/lib/model/quarterly-upgrade-begin-times.d.ts +38 -0
  132. package/lib/model/quarterly-upgrade-begin-times.js +39 -0
  133. package/lib/model/quarterly-upgrade-begin-times.js.map +1 -0
  134. package/lib/model/refresh-activity-collection.d.ts +26 -0
  135. package/lib/model/refresh-activity-collection.js +61 -0
  136. package/lib/model/refresh-activity-collection.js.map +1 -0
  137. package/lib/model/refresh-activity-summary.d.ts +69 -0
  138. package/lib/model/refresh-activity-summary.js +29 -0
  139. package/lib/model/refresh-activity-summary.js.map +1 -0
  140. package/lib/model/refresh-activity.d.ts +102 -0
  141. package/lib/model/refresh-activity.js +65 -0
  142. package/lib/model/refresh-activity.js.map +1 -0
  143. package/lib/model/refresh-details.d.ts +33 -0
  144. package/lib/model/refresh-details.js +29 -0
  145. package/lib/model/refresh-details.js.map +1 -0
  146. package/lib/model/reset-fusion-environment-password-details.d.ts +25 -0
  147. package/lib/model/reset-fusion-environment-password-details.js +29 -0
  148. package/lib/model/reset-fusion-environment-password-details.js.map +1 -0
  149. package/lib/model/rule-condition.d.ts +22 -0
  150. package/lib/model/rule-condition.js +73 -0
  151. package/lib/model/rule-condition.js.map +1 -0
  152. package/lib/model/rule.d.ts +22 -0
  153. package/lib/model/rule.js +65 -0
  154. package/lib/model/rule.js.map +1 -0
  155. package/lib/model/scheduled-activity-collection.d.ts +26 -0
  156. package/lib/model/scheduled-activity-collection.js +61 -0
  157. package/lib/model/scheduled-activity-collection.js.map +1 -0
  158. package/lib/model/scheduled-activity-summary.d.ts +96 -0
  159. package/lib/model/scheduled-activity-summary.js +61 -0
  160. package/lib/model/scheduled-activity-summary.js.map +1 -0
  161. package/lib/model/scheduled-activity.d.ts +122 -0
  162. package/lib/model/scheduled-activity.js +109 -0
  163. package/lib/model/scheduled-activity.js.map +1 -0
  164. package/lib/model/service-attachment-collection.d.ts +26 -0
  165. package/lib/model/service-attachment-collection.js +61 -0
  166. package/lib/model/service-attachment-collection.js.map +1 -0
  167. package/lib/model/service-attachment-summary.d.ts +79 -0
  168. package/lib/model/service-attachment-summary.js +29 -0
  169. package/lib/model/service-attachment-summary.js.map +1 -0
  170. package/lib/model/service-attachment.d.ts +108 -0
  171. package/lib/model/service-attachment.js +56 -0
  172. package/lib/model/service-attachment.js.map +1 -0
  173. package/lib/model/source-ip-address-condition.d.ts +33 -0
  174. package/lib/model/source-ip-address-condition.js +54 -0
  175. package/lib/model/source-ip-address-condition.js.map +1 -0
  176. package/lib/model/source-vcn-id-condition.d.ts +33 -0
  177. package/lib/model/source-vcn-id-condition.js +52 -0
  178. package/lib/model/source-vcn-id-condition.js.map +1 -0
  179. package/lib/model/source-vcn-ip-address-condition.d.ts +34 -0
  180. package/lib/model/source-vcn-ip-address-condition.js +54 -0
  181. package/lib/model/source-vcn-ip-address-condition.js.map +1 -0
  182. package/lib/model/subscription-detail.d.ts +26 -0
  183. package/lib/model/subscription-detail.js +61 -0
  184. package/lib/model/subscription-detail.js.map +1 -0
  185. package/lib/model/subscription-sku.d.ts +41 -0
  186. package/lib/model/subscription-sku.js +29 -0
  187. package/lib/model/subscription-sku.js.map +1 -0
  188. package/lib/model/subscription.d.ts +38 -0
  189. package/lib/model/subscription.js +61 -0
  190. package/lib/model/subscription.js.map +1 -0
  191. package/lib/model/time-available-for-refresh-collection.d.ts +26 -0
  192. package/lib/model/time-available-for-refresh-collection.js +61 -0
  193. package/lib/model/time-available-for-refresh-collection.js.map +1 -0
  194. package/lib/model/time-available-for-refresh-summary.d.ts +25 -0
  195. package/lib/model/time-available-for-refresh-summary.js +29 -0
  196. package/lib/model/time-available-for-refresh-summary.js.map +1 -0
  197. package/lib/model/time-available-for-refresh.d.ts +25 -0
  198. package/lib/model/time-available-for-refresh.js +29 -0
  199. package/lib/model/time-available-for-refresh.js.map +1 -0
  200. package/lib/model/update-family-maintenance-policy-details.d.ts +29 -0
  201. package/lib/model/update-family-maintenance-policy-details.js +29 -0
  202. package/lib/model/update-family-maintenance-policy-details.js.map +1 -0
  203. package/lib/model/update-fusion-environment-details.d.ts +57 -0
  204. package/lib/model/update-fusion-environment-details.js +67 -0
  205. package/lib/model/update-fusion-environment-details.js.map +1 -0
  206. package/lib/model/update-fusion-environment-family-details.d.ts +49 -0
  207. package/lib/model/update-fusion-environment-family-details.js +57 -0
  208. package/lib/model/update-fusion-environment-family-details.js.map +1 -0
  209. package/lib/model/upgrade-action.d.ts +32 -0
  210. package/lib/model/upgrade-action.js +50 -0
  211. package/lib/model/upgrade-action.js.map +1 -0
  212. package/lib/model/vertex-action.d.ts +28 -0
  213. package/lib/model/vertex-action.js +50 -0
  214. package/lib/model/vertex-action.js.map +1 -0
  215. package/lib/model/work-request-error-collection.d.ts +26 -0
  216. package/lib/model/work-request-error-collection.js +61 -0
  217. package/lib/model/work-request-error-collection.js.map +1 -0
  218. package/lib/model/work-request-error.d.ts +35 -0
  219. package/lib/model/work-request-error.js +29 -0
  220. package/lib/model/work-request-error.js.map +1 -0
  221. package/lib/model/work-request-log-entry-collection.d.ts +26 -0
  222. package/lib/model/work-request-log-entry-collection.js +61 -0
  223. package/lib/model/work-request-log-entry-collection.js.map +1 -0
  224. package/lib/model/work-request-log-entry.d.ts +29 -0
  225. package/lib/model/work-request-log-entry.js +29 -0
  226. package/lib/model/work-request-log-entry.js.map +1 -0
  227. package/lib/model/work-request-resource.d.ts +54 -0
  228. package/lib/model/work-request-resource.js +43 -0
  229. package/lib/model/work-request-resource.js.map +1 -0
  230. package/lib/model/work-request-summary-collection.d.ts +26 -0
  231. package/lib/model/work-request-summary-collection.js +61 -0
  232. package/lib/model/work-request-summary-collection.js.map +1 -0
  233. package/lib/model/work-request-summary.d.ts +67 -0
  234. package/lib/model/work-request-summary.js +61 -0
  235. package/lib/model/work-request-summary.js.map +1 -0
  236. package/lib/model/work-request.d.ts +107 -0
  237. package/lib/model/work-request.js +103 -0
  238. package/lib/model/work-request.js.map +1 -0
  239. package/lib/refreshactivity-waiter.d.ts +29 -0
  240. package/lib/refreshactivity-waiter.js +45 -0
  241. package/lib/refreshactivity-waiter.js.map +1 -0
  242. package/lib/request/change-fusion-environment-compartment-request.d.ts +49 -0
  243. package/lib/request/change-fusion-environment-compartment-request.js +15 -0
  244. package/lib/request/change-fusion-environment-compartment-request.js.map +1 -0
  245. package/lib/request/change-fusion-environment-family-compartment-request.d.ts +49 -0
  246. package/lib/request/change-fusion-environment-family-compartment-request.js +15 -0
  247. package/lib/request/change-fusion-environment-family-compartment-request.js.map +1 -0
  248. package/lib/request/create-data-masking-activity-request.d.ts +40 -0
  249. package/lib/request/create-data-masking-activity-request.js +15 -0
  250. package/lib/request/create-data-masking-activity-request.js.map +1 -0
  251. package/lib/request/create-fusion-environment-admin-user-request.d.ts +40 -0
  252. package/lib/request/create-fusion-environment-admin-user-request.js +15 -0
  253. package/lib/request/create-fusion-environment-admin-user-request.js.map +1 -0
  254. package/lib/request/create-fusion-environment-family-request.d.ts +40 -0
  255. package/lib/request/create-fusion-environment-family-request.js +15 -0
  256. package/lib/request/create-fusion-environment-family-request.js.map +1 -0
  257. package/lib/request/create-fusion-environment-request.d.ts +36 -0
  258. package/lib/request/create-fusion-environment-request.js +15 -0
  259. package/lib/request/create-fusion-environment-request.js.map +1 -0
  260. package/lib/request/create-refresh-activity-request.d.ts +40 -0
  261. package/lib/request/create-refresh-activity-request.js +15 -0
  262. package/lib/request/create-refresh-activity-request.js.map +1 -0
  263. package/lib/request/delete-fusion-environment-admin-user-request.d.ts +39 -0
  264. package/lib/request/delete-fusion-environment-admin-user-request.js +15 -0
  265. package/lib/request/delete-fusion-environment-admin-user-request.js.map +1 -0
  266. package/lib/request/delete-fusion-environment-family-request.d.ts +35 -0
  267. package/lib/request/delete-fusion-environment-family-request.js +15 -0
  268. package/lib/request/delete-fusion-environment-family-request.js.map +1 -0
  269. package/lib/request/delete-fusion-environment-request.d.ts +35 -0
  270. package/lib/request/delete-fusion-environment-request.js +15 -0
  271. package/lib/request/delete-fusion-environment-request.js.map +1 -0
  272. package/lib/request/get-data-masking-activity-request.d.ts +30 -0
  273. package/lib/request/get-data-masking-activity-request.js +15 -0
  274. package/lib/request/get-data-masking-activity-request.js.map +1 -0
  275. package/lib/request/get-fusion-environment-family-limits-and-usage-request.d.ts +26 -0
  276. package/lib/request/get-fusion-environment-family-limits-and-usage-request.js +15 -0
  277. package/lib/request/get-fusion-environment-family-limits-and-usage-request.js.map +1 -0
  278. package/lib/request/get-fusion-environment-family-request.d.ts +26 -0
  279. package/lib/request/get-fusion-environment-family-request.js +15 -0
  280. package/lib/request/get-fusion-environment-family-request.js.map +1 -0
  281. package/lib/request/get-fusion-environment-family-subscription-detail-request.d.ts +26 -0
  282. package/lib/request/get-fusion-environment-family-subscription-detail-request.js +15 -0
  283. package/lib/request/get-fusion-environment-family-subscription-detail-request.js.map +1 -0
  284. package/lib/request/get-fusion-environment-request.d.ts +26 -0
  285. package/lib/request/get-fusion-environment-request.js +15 -0
  286. package/lib/request/get-fusion-environment-request.js.map +1 -0
  287. package/lib/request/get-fusion-environment-status-request.d.ts +26 -0
  288. package/lib/request/get-fusion-environment-status-request.js +15 -0
  289. package/lib/request/get-fusion-environment-status-request.js.map +1 -0
  290. package/lib/request/get-refresh-activity-request.d.ts +30 -0
  291. package/lib/request/get-refresh-activity-request.js +15 -0
  292. package/lib/request/get-refresh-activity-request.js.map +1 -0
  293. package/lib/request/get-scheduled-activity-request.d.ts +30 -0
  294. package/lib/request/get-scheduled-activity-request.js +15 -0
  295. package/lib/request/get-scheduled-activity-request.js.map +1 -0
  296. package/lib/request/get-service-attachment-request.d.ts +30 -0
  297. package/lib/request/get-service-attachment-request.js +15 -0
  298. package/lib/request/get-service-attachment-request.js.map +1 -0
  299. package/lib/request/get-work-request-request.d.ts +26 -0
  300. package/lib/request/get-work-request-request.js +15 -0
  301. package/lib/request/get-work-request-request.js.map +1 -0
  302. package/lib/request/index.d.ts +80 -0
  303. package/lib/request/index.js +55 -0
  304. package/lib/request/index.js.map +1 -0
  305. package/lib/request/list-admin-users-request.d.ts +26 -0
  306. package/lib/request/list-admin-users-request.js +15 -0
  307. package/lib/request/list-admin-users-request.js.map +1 -0
  308. package/lib/request/list-data-masking-activities-request.d.ts +57 -0
  309. package/lib/request/list-data-masking-activities-request.js +29 -0
  310. package/lib/request/list-data-masking-activities-request.js.map +1 -0
  311. package/lib/request/list-fusion-environment-families-request.d.ts +65 -0
  312. package/lib/request/list-fusion-environment-families-request.js +29 -0
  313. package/lib/request/list-fusion-environment-families-request.js.map +1 -0
  314. package/lib/request/list-fusion-environments-request.d.ts +65 -0
  315. package/lib/request/list-fusion-environments-request.js +29 -0
  316. package/lib/request/list-fusion-environments-request.js.map +1 -0
  317. package/lib/request/list-refresh-activities-request.d.ts +69 -0
  318. package/lib/request/list-refresh-activities-request.js +29 -0
  319. package/lib/request/list-refresh-activities-request.js.map +1 -0
  320. package/lib/request/list-scheduled-activities-request.d.ts +73 -0
  321. package/lib/request/list-scheduled-activities-request.js +29 -0
  322. package/lib/request/list-scheduled-activities-request.js.map +1 -0
  323. package/lib/request/list-service-attachments-request.d.ts +65 -0
  324. package/lib/request/list-service-attachments-request.js +29 -0
  325. package/lib/request/list-service-attachments-request.js.map +1 -0
  326. package/lib/request/list-time-available-for-refreshes-request.d.ts +53 -0
  327. package/lib/request/list-time-available-for-refreshes-request.js +29 -0
  328. package/lib/request/list-time-available-for-refreshes-request.js.map +1 -0
  329. package/lib/request/list-work-request-errors-request.d.ts +52 -0
  330. package/lib/request/list-work-request-errors-request.js +28 -0
  331. package/lib/request/list-work-request-errors-request.js.map +1 -0
  332. package/lib/request/list-work-request-logs-request.d.ts +52 -0
  333. package/lib/request/list-work-request-logs-request.js +28 -0
  334. package/lib/request/list-work-request-logs-request.js.map +1 -0
  335. package/lib/request/list-work-requests-request.d.ts +60 -0
  336. package/lib/request/list-work-requests-request.js +28 -0
  337. package/lib/request/list-work-requests-request.js.map +1 -0
  338. package/lib/request/reset-fusion-environment-password-request.d.ts +53 -0
  339. package/lib/request/reset-fusion-environment-password-request.js +15 -0
  340. package/lib/request/reset-fusion-environment-password-request.js.map +1 -0
  341. package/lib/request/update-fusion-environment-family-request.d.ts +40 -0
  342. package/lib/request/update-fusion-environment-family-request.js +15 -0
  343. package/lib/request/update-fusion-environment-family-request.js.map +1 -0
  344. package/lib/request/update-fusion-environment-request.d.ts +40 -0
  345. package/lib/request/update-fusion-environment-request.js +15 -0
  346. package/lib/request/update-fusion-environment-request.js.map +1 -0
  347. package/lib/response/change-fusion-environment-compartment-response.d.ts +24 -0
  348. package/lib/response/change-fusion-environment-compartment-response.js +15 -0
  349. package/lib/response/change-fusion-environment-compartment-response.js.map +1 -0
  350. package/lib/response/change-fusion-environment-family-compartment-response.d.ts +24 -0
  351. package/lib/response/change-fusion-environment-family-compartment-response.js +15 -0
  352. package/lib/response/change-fusion-environment-family-compartment-response.js.map +1 -0
  353. package/lib/response/create-data-masking-activity-response.d.ts +25 -0
  354. package/lib/response/create-data-masking-activity-response.js +15 -0
  355. package/lib/response/create-data-masking-activity-response.js.map +1 -0
  356. package/lib/response/create-fusion-environment-admin-user-response.d.ts +24 -0
  357. package/lib/response/create-fusion-environment-admin-user-response.js +15 -0
  358. package/lib/response/create-fusion-environment-admin-user-response.js.map +1 -0
  359. package/lib/response/create-fusion-environment-family-response.d.ts +25 -0
  360. package/lib/response/create-fusion-environment-family-response.js +15 -0
  361. package/lib/response/create-fusion-environment-family-response.js.map +1 -0
  362. package/lib/response/create-fusion-environment-response.d.ts +25 -0
  363. package/lib/response/create-fusion-environment-response.js +15 -0
  364. package/lib/response/create-fusion-environment-response.js.map +1 -0
  365. package/lib/response/create-refresh-activity-response.d.ts +25 -0
  366. package/lib/response/create-refresh-activity-response.js +15 -0
  367. package/lib/response/create-refresh-activity-response.js.map +1 -0
  368. package/lib/response/delete-fusion-environment-admin-user-response.d.ts +24 -0
  369. package/lib/response/delete-fusion-environment-admin-user-response.js +15 -0
  370. package/lib/response/delete-fusion-environment-admin-user-response.js.map +1 -0
  371. package/lib/response/delete-fusion-environment-family-response.d.ts +25 -0
  372. package/lib/response/delete-fusion-environment-family-response.js +15 -0
  373. package/lib/response/delete-fusion-environment-family-response.js.map +1 -0
  374. package/lib/response/delete-fusion-environment-response.d.ts +25 -0
  375. package/lib/response/delete-fusion-environment-response.js +15 -0
  376. package/lib/response/delete-fusion-environment-response.js.map +1 -0
  377. package/lib/response/get-data-masking-activity-response.d.ts +30 -0
  378. package/lib/response/get-data-masking-activity-response.js +15 -0
  379. package/lib/response/get-data-masking-activity-response.js.map +1 -0
  380. package/lib/response/get-fusion-environment-family-limits-and-usage-response.d.ts +30 -0
  381. package/lib/response/get-fusion-environment-family-limits-and-usage-response.js +15 -0
  382. package/lib/response/get-fusion-environment-family-limits-and-usage-response.js.map +1 -0
  383. package/lib/response/get-fusion-environment-family-response.d.ts +30 -0
  384. package/lib/response/get-fusion-environment-family-response.js +15 -0
  385. package/lib/response/get-fusion-environment-family-response.js.map +1 -0
  386. package/lib/response/get-fusion-environment-family-subscription-detail-response.d.ts +30 -0
  387. package/lib/response/get-fusion-environment-family-subscription-detail-response.js +15 -0
  388. package/lib/response/get-fusion-environment-family-subscription-detail-response.js.map +1 -0
  389. package/lib/response/get-fusion-environment-response.d.ts +30 -0
  390. package/lib/response/get-fusion-environment-response.js +15 -0
  391. package/lib/response/get-fusion-environment-response.js.map +1 -0
  392. package/lib/response/get-fusion-environment-status-response.d.ts +25 -0
  393. package/lib/response/get-fusion-environment-status-response.js +15 -0
  394. package/lib/response/get-fusion-environment-status-response.js.map +1 -0
  395. package/lib/response/get-refresh-activity-response.d.ts +30 -0
  396. package/lib/response/get-refresh-activity-response.js +15 -0
  397. package/lib/response/get-refresh-activity-response.js.map +1 -0
  398. package/lib/response/get-scheduled-activity-response.d.ts +30 -0
  399. package/lib/response/get-scheduled-activity-response.js +15 -0
  400. package/lib/response/get-scheduled-activity-response.js.map +1 -0
  401. package/lib/response/get-service-attachment-response.d.ts +30 -0
  402. package/lib/response/get-service-attachment-response.js +15 -0
  403. package/lib/response/get-service-attachment-response.js.map +1 -0
  404. package/lib/response/get-work-request-response.d.ts +29 -0
  405. package/lib/response/get-work-request-response.js +15 -0
  406. package/lib/response/get-work-request-response.js.map +1 -0
  407. package/lib/response/index.d.ts +80 -0
  408. package/lib/response/index.js +15 -0
  409. package/lib/response/index.js.map +1 -0
  410. package/lib/response/list-admin-users-response.d.ts +32 -0
  411. package/lib/response/list-admin-users-response.js +15 -0
  412. package/lib/response/list-admin-users-response.js.map +1 -0
  413. package/lib/response/list-data-masking-activities-response.d.ts +32 -0
  414. package/lib/response/list-data-masking-activities-response.js +15 -0
  415. package/lib/response/list-data-masking-activities-response.js.map +1 -0
  416. package/lib/response/list-fusion-environment-families-response.d.ts +32 -0
  417. package/lib/response/list-fusion-environment-families-response.js +15 -0
  418. package/lib/response/list-fusion-environment-families-response.js.map +1 -0
  419. package/lib/response/list-fusion-environments-response.d.ts +32 -0
  420. package/lib/response/list-fusion-environments-response.js +15 -0
  421. package/lib/response/list-fusion-environments-response.js.map +1 -0
  422. package/lib/response/list-refresh-activities-response.d.ts +32 -0
  423. package/lib/response/list-refresh-activities-response.js +15 -0
  424. package/lib/response/list-refresh-activities-response.js.map +1 -0
  425. package/lib/response/list-scheduled-activities-response.d.ts +32 -0
  426. package/lib/response/list-scheduled-activities-response.js +15 -0
  427. package/lib/response/list-scheduled-activities-response.js.map +1 -0
  428. package/lib/response/list-service-attachments-response.d.ts +32 -0
  429. package/lib/response/list-service-attachments-response.js +15 -0
  430. package/lib/response/list-service-attachments-response.js.map +1 -0
  431. package/lib/response/list-time-available-for-refreshes-response.d.ts +32 -0
  432. package/lib/response/list-time-available-for-refreshes-response.js +15 -0
  433. package/lib/response/list-time-available-for-refreshes-response.js.map +1 -0
  434. package/lib/response/list-work-request-errors-response.d.ts +32 -0
  435. package/lib/response/list-work-request-errors-response.js +15 -0
  436. package/lib/response/list-work-request-errors-response.js.map +1 -0
  437. package/lib/response/list-work-request-logs-response.d.ts +32 -0
  438. package/lib/response/list-work-request-logs-response.js +15 -0
  439. package/lib/response/list-work-request-logs-response.js.map +1 -0
  440. package/lib/response/list-work-requests-response.d.ts +32 -0
  441. package/lib/response/list-work-requests-response.js +15 -0
  442. package/lib/response/list-work-requests-response.js.map +1 -0
  443. package/lib/response/reset-fusion-environment-password-response.d.ts +24 -0
  444. package/lib/response/reset-fusion-environment-password-response.js +15 -0
  445. package/lib/response/reset-fusion-environment-password-response.js.map +1 -0
  446. package/lib/response/update-fusion-environment-family-response.d.ts +25 -0
  447. package/lib/response/update-fusion-environment-family-response.js +15 -0
  448. package/lib/response/update-fusion-environment-family-response.js.map +1 -0
  449. package/lib/response/update-fusion-environment-response.d.ts +25 -0
  450. package/lib/response/update-fusion-environment-response.js +15 -0
  451. package/lib/response/update-fusion-environment-response.js.map +1 -0
  452. package/lib/scheduledactivity-waiter.d.ts +29 -0
  453. package/lib/scheduledactivity-waiter.js +45 -0
  454. package/lib/scheduledactivity-waiter.js.map +1 -0
  455. package/lib/serviceattachment-waiter.d.ts +29 -0
  456. package/lib/serviceattachment-waiter.js +65 -0
  457. package/lib/serviceattachment-waiter.js.map +1 -0
  458. package/package.json +29 -0
package/lib/client.js ADDED
@@ -0,0 +1,2891 @@
1
+ "use strict";
2
+ /**
3
+ * Fusion Applications Environment Management API
4
+ * Use the Fusion Applications Environment Management API to manage the environments where your Fusion Applications run. For more information, see the [Fusion Applications Environment Management documentation](/iaas/Content/Identity/fusion-applications/home.htm).
5
+ * OpenAPI spec version: 20211201
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OracleSDKGenerator.
9
+ * Do not edit the class manually.
10
+ *
11
+ * Copyright (c) 2020, 2022, Oracle and/or its affiliates. All rights reserved.
12
+ * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
13
+ */
14
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
15
+ if (k2 === undefined) k2 = k;
16
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
17
+ }) : (function(o, m, k, k2) {
18
+ if (k2 === undefined) k2 = k;
19
+ o[k2] = m[k];
20
+ }));
21
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
22
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
23
+ }) : function(o, v) {
24
+ o["default"] = v;
25
+ });
26
+ var __importStar = (this && this.__importStar) || function (mod) {
27
+ if (mod && mod.__esModule) return mod;
28
+ var result = {};
29
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
30
+ __setModuleDefault(result, mod);
31
+ return result;
32
+ };
33
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
34
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
35
+ return new (P || (P = Promise))(function (resolve, reject) {
36
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
37
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
38
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
39
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
40
+ });
41
+ };
42
+ Object.defineProperty(exports, "__esModule", { value: true });
43
+ exports.ServiceAttachmentClient = exports.ServiceAttachmentApiKeys = exports.ScheduledActivityClient = exports.ScheduledActivityApiKeys = exports.RefreshActivityClient = exports.RefreshActivityApiKeys = exports.FusionEnvironmentFamilyClient = exports.FusionEnvironmentFamilyApiKeys = exports.FusionEnvironmentClient = exports.FusionEnvironmentApiKeys = exports.DataMaskingActivityClient = exports.DataMaskingActivityApiKeys = void 0;
44
+ const common = require("oci-common");
45
+ const model = __importStar(require("./model"));
46
+ const datamaskingactivity_waiter_1 = require("./datamaskingactivity-waiter");
47
+ const fusionenvironment_waiter_1 = require("./fusionenvironment-waiter");
48
+ const fusionenvironmentfamily_waiter_1 = require("./fusionenvironmentfamily-waiter");
49
+ const refreshactivity_waiter_1 = require("./refreshactivity-waiter");
50
+ const scheduledactivity_waiter_1 = require("./scheduledactivity-waiter");
51
+ const serviceattachment_waiter_1 = require("./serviceattachment-waiter");
52
+ const oci_common_1 = require("oci-common");
53
+ // ===============================================
54
+ // This file is autogenerated - Please do not edit
55
+ // ===============================================
56
+ var DataMaskingActivityApiKeys;
57
+ (function (DataMaskingActivityApiKeys) {
58
+ })(DataMaskingActivityApiKeys = exports.DataMaskingActivityApiKeys || (exports.DataMaskingActivityApiKeys = {}));
59
+ /**
60
+ * This service client uses {@link common.CircuitBreaker.DefaultConfiguration} for all the operations by default if no circuit breaker configuration is defined by the user.
61
+ */
62
+ class DataMaskingActivityClient {
63
+ constructor(params, clientConfiguration) {
64
+ this["_endpoint"] = "";
65
+ this["_defaultHeaders"] = {};
66
+ this._circuitBreaker = null;
67
+ this._httpOptions = undefined;
68
+ this.targetService = "DataMaskingActivity";
69
+ const requestSigner = params.authenticationDetailsProvider
70
+ ? new common.DefaultRequestSigner(params.authenticationDetailsProvider)
71
+ : null;
72
+ if (clientConfiguration) {
73
+ this._clientConfiguration = clientConfiguration;
74
+ this._circuitBreaker = clientConfiguration.circuitBreaker
75
+ ? clientConfiguration.circuitBreaker.circuit
76
+ : null;
77
+ this._httpOptions = clientConfiguration.httpOptions
78
+ ? clientConfiguration.httpOptions
79
+ : undefined;
80
+ }
81
+ // if circuit breaker is not created, check if circuit breaker system is enabled to use default circuit breaker
82
+ const specCircuitBreakerEnabled = true;
83
+ if (!this._circuitBreaker &&
84
+ common.utils.isCircuitBreakerSystemEnabled(clientConfiguration) &&
85
+ (specCircuitBreakerEnabled || common.CircuitBreaker.DefaultCircuitBreakerOverriden)) {
86
+ this._circuitBreaker = new common.CircuitBreaker().circuit;
87
+ }
88
+ this._httpClient =
89
+ params.httpClient ||
90
+ new common.FetchHttpClient(requestSigner, this._circuitBreaker, this._httpOptions);
91
+ if (params.authenticationDetailsProvider &&
92
+ common.isRegionProvider(params.authenticationDetailsProvider)) {
93
+ const provider = params.authenticationDetailsProvider;
94
+ if (provider.getRegion()) {
95
+ this.region = provider.getRegion();
96
+ }
97
+ }
98
+ }
99
+ /**
100
+ * Get the endpoint that is being used to call (ex, https://www.example.com).
101
+ */
102
+ get endpoint() {
103
+ return this._endpoint;
104
+ }
105
+ /**
106
+ * Sets the endpoint to call (ex, https://www.example.com).
107
+ * @param endpoint The endpoint of the service.
108
+ */
109
+ set endpoint(endpoint) {
110
+ this._endpoint = endpoint;
111
+ this._endpoint = this._endpoint + "/20211201";
112
+ if (this.logger)
113
+ this.logger.info(`DataMaskingActivityClient endpoint set to ${this._endpoint}`);
114
+ }
115
+ get logger() {
116
+ return common.LOG.logger;
117
+ }
118
+ /**
119
+ * Sets the region to call (ex, Region.US_PHOENIX_1).
120
+ * Note, this will call {@link #endpoint(String) endpoint} after resolving the endpoint.
121
+ * @param region The region of the service.
122
+ */
123
+ set region(region) {
124
+ this.endpoint = common.EndpointBuilder.createEndpointFromRegion(DataMaskingActivityClient.serviceEndpointTemplate, region, DataMaskingActivityClient.endpointServiceName);
125
+ }
126
+ /**
127
+ * Sets the regionId to call (ex, 'us-phoenix-1').
128
+ *
129
+ * Note, this will first try to map the region ID to a known Region and call {@link #region(Region) region}.
130
+ * If no known Region could be determined, it will create an endpoint assuming its in default Realm OC1
131
+ * and then call {@link #endpoint(String) endpoint}.
132
+ * @param regionId The public region ID.
133
+ */
134
+ set regionId(regionId) {
135
+ this.endpoint = common.EndpointBuilder.createEndpointFromRegionId(DataMaskingActivityClient.serviceEndpointTemplate, regionId, DataMaskingActivityClient.endpointServiceName);
136
+ }
137
+ /**
138
+ * Creates a new DataMaskingActivityWaiter for resources for this service.
139
+ *
140
+ * @param config The waiter configuration for termination and delay strategy
141
+ * @return The service waiters.
142
+ */
143
+ createWaiters(config) {
144
+ this._waiters = new datamaskingactivity_waiter_1.DataMaskingActivityWaiter(this, config);
145
+ return this._waiters;
146
+ }
147
+ /**
148
+ * Gets the waiters available for resources for this service.
149
+ *
150
+ * @return The service waiters.
151
+ */
152
+ getWaiters() {
153
+ if (this._waiters) {
154
+ return this._waiters;
155
+ }
156
+ throw Error("Waiters do not exist. Please create waiters.");
157
+ }
158
+ /**
159
+ * Creates a new DataMaskingActivity.
160
+ *
161
+ * This operation does not retry by default if the user has not defined a retry configuration.
162
+ * @param CreateDataMaskingActivityRequest
163
+ * @return CreateDataMaskingActivityResponse
164
+ * @throws OciError when an error occurs
165
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.35.1/fusionapps/CreateDataMaskingActivity.ts.html |here} to see how to use CreateDataMaskingActivity API.
166
+ */
167
+ createDataMaskingActivity(createDataMaskingActivityRequest) {
168
+ return __awaiter(this, void 0, void 0, function* () {
169
+ if (this.logger)
170
+ this.logger.debug("Calling operation DataMaskingActivityClient#createDataMaskingActivity.");
171
+ const operationName = "createDataMaskingActivity";
172
+ const apiReferenceLink = "";
173
+ const pathParams = {
174
+ "{fusionEnvironmentId}": createDataMaskingActivityRequest.fusionEnvironmentId
175
+ };
176
+ const queryParams = {};
177
+ let headerParams = {
178
+ "Content-Type": common.Constants.APPLICATION_JSON,
179
+ "opc-retry-token": createDataMaskingActivityRequest.opcRetryToken,
180
+ "opc-request-id": createDataMaskingActivityRequest.opcRequestId
181
+ };
182
+ const specRetryConfiguration = common.NoRetryConfigurationDetails;
183
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, createDataMaskingActivityRequest.retryConfiguration, specRetryConfiguration);
184
+ if (this.logger)
185
+ retrier.logger = this.logger;
186
+ const request = yield oci_common_1.composeRequest({
187
+ baseEndpoint: this._endpoint,
188
+ defaultHeaders: this._defaultHeaders,
189
+ path: "/fusionEnvironments/{fusionEnvironmentId}/dataMaskingActivities",
190
+ method: "POST",
191
+ bodyContent: common.ObjectSerializer.serialize(createDataMaskingActivityRequest.createDataMaskingActivityDetails, "CreateDataMaskingActivityDetails", model.CreateDataMaskingActivityDetails.getJsonObj),
192
+ pathParams: pathParams,
193
+ headerParams: headerParams,
194
+ queryParams: queryParams
195
+ });
196
+ try {
197
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
198
+ const sdkResponse = oci_common_1.composeResponse({
199
+ responseObject: {},
200
+ responseHeaders: [
201
+ {
202
+ value: response.headers.get("opc-work-request-id"),
203
+ key: "opcWorkRequestId",
204
+ dataType: "string"
205
+ },
206
+ {
207
+ value: response.headers.get("opc-request-id"),
208
+ key: "opcRequestId",
209
+ dataType: "string"
210
+ }
211
+ ]
212
+ });
213
+ return sdkResponse;
214
+ }
215
+ catch (err) {
216
+ throw err;
217
+ }
218
+ });
219
+ }
220
+ /**
221
+ * Gets a DataMaskingActivity by identifier
222
+ * This operation does not retry by default if the user has not defined a retry configuration.
223
+ * @param GetDataMaskingActivityRequest
224
+ * @return GetDataMaskingActivityResponse
225
+ * @throws OciError when an error occurs
226
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.35.1/fusionapps/GetDataMaskingActivity.ts.html |here} to see how to use GetDataMaskingActivity API.
227
+ */
228
+ getDataMaskingActivity(getDataMaskingActivityRequest) {
229
+ return __awaiter(this, void 0, void 0, function* () {
230
+ if (this.logger)
231
+ this.logger.debug("Calling operation DataMaskingActivityClient#getDataMaskingActivity.");
232
+ const operationName = "getDataMaskingActivity";
233
+ const apiReferenceLink = "";
234
+ const pathParams = {
235
+ "{fusionEnvironmentId}": getDataMaskingActivityRequest.fusionEnvironmentId,
236
+ "{dataMaskingActivityId}": getDataMaskingActivityRequest.dataMaskingActivityId
237
+ };
238
+ const queryParams = {};
239
+ let headerParams = {
240
+ "Content-Type": common.Constants.APPLICATION_JSON,
241
+ "opc-request-id": getDataMaskingActivityRequest.opcRequestId
242
+ };
243
+ const specRetryConfiguration = common.NoRetryConfigurationDetails;
244
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getDataMaskingActivityRequest.retryConfiguration, specRetryConfiguration);
245
+ if (this.logger)
246
+ retrier.logger = this.logger;
247
+ const request = yield oci_common_1.composeRequest({
248
+ baseEndpoint: this._endpoint,
249
+ defaultHeaders: this._defaultHeaders,
250
+ path: "/fusionEnvironments/{fusionEnvironmentId}/dataMaskingActivities/{dataMaskingActivityId}",
251
+ method: "GET",
252
+ pathParams: pathParams,
253
+ headerParams: headerParams,
254
+ queryParams: queryParams
255
+ });
256
+ try {
257
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
258
+ const sdkResponse = oci_common_1.composeResponse({
259
+ responseObject: {},
260
+ body: yield response.json(),
261
+ bodyKey: "dataMaskingActivity",
262
+ bodyModel: model.DataMaskingActivity,
263
+ type: "model.DataMaskingActivity",
264
+ responseHeaders: [
265
+ {
266
+ value: response.headers.get("etag"),
267
+ key: "etag",
268
+ dataType: "string"
269
+ },
270
+ {
271
+ value: response.headers.get("opc-request-id"),
272
+ key: "opcRequestId",
273
+ dataType: "string"
274
+ }
275
+ ]
276
+ });
277
+ return sdkResponse;
278
+ }
279
+ catch (err) {
280
+ throw err;
281
+ }
282
+ });
283
+ }
284
+ /**
285
+ * Returns a list of DataMaskingActivities.
286
+ *
287
+ * This operation does not retry by default if the user has not defined a retry configuration.
288
+ * @param ListDataMaskingActivitiesRequest
289
+ * @return ListDataMaskingActivitiesResponse
290
+ * @throws OciError when an error occurs
291
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.35.1/fusionapps/ListDataMaskingActivities.ts.html |here} to see how to use ListDataMaskingActivities API.
292
+ */
293
+ listDataMaskingActivities(listDataMaskingActivitiesRequest) {
294
+ return __awaiter(this, void 0, void 0, function* () {
295
+ if (this.logger)
296
+ this.logger.debug("Calling operation DataMaskingActivityClient#listDataMaskingActivities.");
297
+ const operationName = "listDataMaskingActivities";
298
+ const apiReferenceLink = "";
299
+ const pathParams = {
300
+ "{fusionEnvironmentId}": listDataMaskingActivitiesRequest.fusionEnvironmentId
301
+ };
302
+ const queryParams = {
303
+ "lifecycleState": listDataMaskingActivitiesRequest.lifecycleState,
304
+ "limit": listDataMaskingActivitiesRequest.limit,
305
+ "page": listDataMaskingActivitiesRequest.page,
306
+ "sortOrder": listDataMaskingActivitiesRequest.sortOrder,
307
+ "sortBy": listDataMaskingActivitiesRequest.sortBy
308
+ };
309
+ let headerParams = {
310
+ "Content-Type": common.Constants.APPLICATION_JSON,
311
+ "opc-request-id": listDataMaskingActivitiesRequest.opcRequestId
312
+ };
313
+ const specRetryConfiguration = common.NoRetryConfigurationDetails;
314
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listDataMaskingActivitiesRequest.retryConfiguration, specRetryConfiguration);
315
+ if (this.logger)
316
+ retrier.logger = this.logger;
317
+ const request = yield oci_common_1.composeRequest({
318
+ baseEndpoint: this._endpoint,
319
+ defaultHeaders: this._defaultHeaders,
320
+ path: "/fusionEnvironments/{fusionEnvironmentId}/dataMaskingActivities",
321
+ method: "GET",
322
+ pathParams: pathParams,
323
+ headerParams: headerParams,
324
+ queryParams: queryParams
325
+ });
326
+ try {
327
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
328
+ const sdkResponse = oci_common_1.composeResponse({
329
+ responseObject: {},
330
+ body: yield response.json(),
331
+ bodyKey: "dataMaskingActivityCollection",
332
+ bodyModel: model.DataMaskingActivityCollection,
333
+ type: "model.DataMaskingActivityCollection",
334
+ responseHeaders: [
335
+ {
336
+ value: response.headers.get("opc-request-id"),
337
+ key: "opcRequestId",
338
+ dataType: "string"
339
+ },
340
+ {
341
+ value: response.headers.get("opc-next-page"),
342
+ key: "opcNextPage",
343
+ dataType: "string"
344
+ }
345
+ ]
346
+ });
347
+ return sdkResponse;
348
+ }
349
+ catch (err) {
350
+ throw err;
351
+ }
352
+ });
353
+ }
354
+ }
355
+ exports.DataMaskingActivityClient = DataMaskingActivityClient;
356
+ DataMaskingActivityClient.serviceEndpointTemplate = "https://fusionapps.{region}.oci.{secondLevelDomain}";
357
+ DataMaskingActivityClient.endpointServiceName = "";
358
+ var FusionEnvironmentApiKeys;
359
+ (function (FusionEnvironmentApiKeys) {
360
+ })(FusionEnvironmentApiKeys = exports.FusionEnvironmentApiKeys || (exports.FusionEnvironmentApiKeys = {}));
361
+ /**
362
+ * This service client uses {@link common.CircuitBreaker.DefaultConfiguration} for all the operations by default if no circuit breaker configuration is defined by the user.
363
+ */
364
+ class FusionEnvironmentClient {
365
+ constructor(params, clientConfiguration) {
366
+ this["_endpoint"] = "";
367
+ this["_defaultHeaders"] = {};
368
+ this._circuitBreaker = null;
369
+ this._httpOptions = undefined;
370
+ this.targetService = "FusionEnvironment";
371
+ const requestSigner = params.authenticationDetailsProvider
372
+ ? new common.DefaultRequestSigner(params.authenticationDetailsProvider)
373
+ : null;
374
+ if (clientConfiguration) {
375
+ this._clientConfiguration = clientConfiguration;
376
+ this._circuitBreaker = clientConfiguration.circuitBreaker
377
+ ? clientConfiguration.circuitBreaker.circuit
378
+ : null;
379
+ this._httpOptions = clientConfiguration.httpOptions
380
+ ? clientConfiguration.httpOptions
381
+ : undefined;
382
+ }
383
+ // if circuit breaker is not created, check if circuit breaker system is enabled to use default circuit breaker
384
+ const specCircuitBreakerEnabled = true;
385
+ if (!this._circuitBreaker &&
386
+ common.utils.isCircuitBreakerSystemEnabled(clientConfiguration) &&
387
+ (specCircuitBreakerEnabled || common.CircuitBreaker.DefaultCircuitBreakerOverriden)) {
388
+ this._circuitBreaker = new common.CircuitBreaker().circuit;
389
+ }
390
+ this._httpClient =
391
+ params.httpClient ||
392
+ new common.FetchHttpClient(requestSigner, this._circuitBreaker, this._httpOptions);
393
+ if (params.authenticationDetailsProvider &&
394
+ common.isRegionProvider(params.authenticationDetailsProvider)) {
395
+ const provider = params.authenticationDetailsProvider;
396
+ if (provider.getRegion()) {
397
+ this.region = provider.getRegion();
398
+ }
399
+ }
400
+ }
401
+ /**
402
+ * Get the endpoint that is being used to call (ex, https://www.example.com).
403
+ */
404
+ get endpoint() {
405
+ return this._endpoint;
406
+ }
407
+ /**
408
+ * Sets the endpoint to call (ex, https://www.example.com).
409
+ * @param endpoint The endpoint of the service.
410
+ */
411
+ set endpoint(endpoint) {
412
+ this._endpoint = endpoint;
413
+ this._endpoint = this._endpoint + "/20211201";
414
+ if (this.logger)
415
+ this.logger.info(`FusionEnvironmentClient endpoint set to ${this._endpoint}`);
416
+ }
417
+ get logger() {
418
+ return common.LOG.logger;
419
+ }
420
+ /**
421
+ * Sets the region to call (ex, Region.US_PHOENIX_1).
422
+ * Note, this will call {@link #endpoint(String) endpoint} after resolving the endpoint.
423
+ * @param region The region of the service.
424
+ */
425
+ set region(region) {
426
+ this.endpoint = common.EndpointBuilder.createEndpointFromRegion(FusionEnvironmentClient.serviceEndpointTemplate, region, FusionEnvironmentClient.endpointServiceName);
427
+ }
428
+ /**
429
+ * Sets the regionId to call (ex, 'us-phoenix-1').
430
+ *
431
+ * Note, this will first try to map the region ID to a known Region and call {@link #region(Region) region}.
432
+ * If no known Region could be determined, it will create an endpoint assuming its in default Realm OC1
433
+ * and then call {@link #endpoint(String) endpoint}.
434
+ * @param regionId The public region ID.
435
+ */
436
+ set regionId(regionId) {
437
+ this.endpoint = common.EndpointBuilder.createEndpointFromRegionId(FusionEnvironmentClient.serviceEndpointTemplate, regionId, FusionEnvironmentClient.endpointServiceName);
438
+ }
439
+ /**
440
+ * Creates a new FusionEnvironmentWaiter for resources for this service.
441
+ *
442
+ * @param config The waiter configuration for termination and delay strategy
443
+ * @return The service waiters.
444
+ */
445
+ createWaiters(config) {
446
+ this._waiters = new fusionenvironment_waiter_1.FusionEnvironmentWaiter(this, config);
447
+ return this._waiters;
448
+ }
449
+ /**
450
+ * Gets the waiters available for resources for this service.
451
+ *
452
+ * @return The service waiters.
453
+ */
454
+ getWaiters() {
455
+ if (this._waiters) {
456
+ return this._waiters;
457
+ }
458
+ throw Error("Waiters do not exist. Please create waiters.");
459
+ }
460
+ /**
461
+ * Moves a FusionEnvironment into a different compartment. When provided, If-Match is checked against ETag
462
+ * values of the resource.
463
+ *
464
+ * This operation does not retry by default if the user has not defined a retry configuration.
465
+ * @param ChangeFusionEnvironmentCompartmentRequest
466
+ * @return ChangeFusionEnvironmentCompartmentResponse
467
+ * @throws OciError when an error occurs
468
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.35.1/fusionapps/ChangeFusionEnvironmentCompartment.ts.html |here} to see how to use ChangeFusionEnvironmentCompartment API.
469
+ */
470
+ changeFusionEnvironmentCompartment(changeFusionEnvironmentCompartmentRequest) {
471
+ return __awaiter(this, void 0, void 0, function* () {
472
+ if (this.logger)
473
+ this.logger.debug("Calling operation FusionEnvironmentClient#changeFusionEnvironmentCompartment.");
474
+ const operationName = "changeFusionEnvironmentCompartment";
475
+ const apiReferenceLink = "";
476
+ const pathParams = {
477
+ "{fusionEnvironmentId}": changeFusionEnvironmentCompartmentRequest.fusionEnvironmentId
478
+ };
479
+ const queryParams = {};
480
+ let headerParams = {
481
+ "Content-Type": common.Constants.APPLICATION_JSON,
482
+ "if-match": changeFusionEnvironmentCompartmentRequest.ifMatch,
483
+ "opc-request-id": changeFusionEnvironmentCompartmentRequest.opcRequestId,
484
+ "opc-retry-token": changeFusionEnvironmentCompartmentRequest.opcRetryToken
485
+ };
486
+ const specRetryConfiguration = common.NoRetryConfigurationDetails;
487
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, changeFusionEnvironmentCompartmentRequest.retryConfiguration, specRetryConfiguration);
488
+ if (this.logger)
489
+ retrier.logger = this.logger;
490
+ const request = yield oci_common_1.composeRequest({
491
+ baseEndpoint: this._endpoint,
492
+ defaultHeaders: this._defaultHeaders,
493
+ path: "/fusionEnvironments/{fusionEnvironmentId}/actions/changeCompartment",
494
+ method: "POST",
495
+ bodyContent: common.ObjectSerializer.serialize(changeFusionEnvironmentCompartmentRequest.changeFusionEnvironmentCompartmentDetails, "ChangeFusionEnvironmentCompartmentDetails", model.ChangeFusionEnvironmentCompartmentDetails.getJsonObj),
496
+ pathParams: pathParams,
497
+ headerParams: headerParams,
498
+ queryParams: queryParams
499
+ });
500
+ try {
501
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
502
+ const sdkResponse = oci_common_1.composeResponse({
503
+ responseObject: {},
504
+ responseHeaders: [
505
+ {
506
+ value: response.headers.get("opc-request-id"),
507
+ key: "opcRequestId",
508
+ dataType: "string"
509
+ },
510
+ {
511
+ value: response.headers.get("opc-work-request-id"),
512
+ key: "opcWorkRequestId",
513
+ dataType: "string"
514
+ }
515
+ ]
516
+ });
517
+ return sdkResponse;
518
+ }
519
+ catch (err) {
520
+ throw err;
521
+ }
522
+ });
523
+ }
524
+ /**
525
+ * Creates a new FusionEnvironment.
526
+ *
527
+ * This operation does not retry by default if the user has not defined a retry configuration.
528
+ * @param CreateFusionEnvironmentRequest
529
+ * @return CreateFusionEnvironmentResponse
530
+ * @throws OciError when an error occurs
531
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.35.1/fusionapps/CreateFusionEnvironment.ts.html |here} to see how to use CreateFusionEnvironment API.
532
+ */
533
+ createFusionEnvironment(createFusionEnvironmentRequest) {
534
+ return __awaiter(this, void 0, void 0, function* () {
535
+ if (this.logger)
536
+ this.logger.debug("Calling operation FusionEnvironmentClient#createFusionEnvironment.");
537
+ const operationName = "createFusionEnvironment";
538
+ const apiReferenceLink = "";
539
+ const pathParams = {};
540
+ const queryParams = {};
541
+ let headerParams = {
542
+ "Content-Type": common.Constants.APPLICATION_JSON,
543
+ "opc-retry-token": createFusionEnvironmentRequest.opcRetryToken,
544
+ "opc-request-id": createFusionEnvironmentRequest.opcRequestId
545
+ };
546
+ const specRetryConfiguration = common.NoRetryConfigurationDetails;
547
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, createFusionEnvironmentRequest.retryConfiguration, specRetryConfiguration);
548
+ if (this.logger)
549
+ retrier.logger = this.logger;
550
+ const request = yield oci_common_1.composeRequest({
551
+ baseEndpoint: this._endpoint,
552
+ defaultHeaders: this._defaultHeaders,
553
+ path: "/fusionEnvironments",
554
+ method: "POST",
555
+ bodyContent: common.ObjectSerializer.serialize(createFusionEnvironmentRequest.createFusionEnvironmentDetails, "CreateFusionEnvironmentDetails", model.CreateFusionEnvironmentDetails.getJsonObj),
556
+ pathParams: pathParams,
557
+ headerParams: headerParams,
558
+ queryParams: queryParams
559
+ });
560
+ try {
561
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
562
+ const sdkResponse = oci_common_1.composeResponse({
563
+ responseObject: {},
564
+ responseHeaders: [
565
+ {
566
+ value: response.headers.get("opc-work-request-id"),
567
+ key: "opcWorkRequestId",
568
+ dataType: "string"
569
+ },
570
+ {
571
+ value: response.headers.get("opc-request-id"),
572
+ key: "opcRequestId",
573
+ dataType: "string"
574
+ }
575
+ ]
576
+ });
577
+ return sdkResponse;
578
+ }
579
+ catch (err) {
580
+ throw err;
581
+ }
582
+ });
583
+ }
584
+ /**
585
+ * Create a FusionEnvironment admin user
586
+ * This operation does not retry by default if the user has not defined a retry configuration.
587
+ * @param CreateFusionEnvironmentAdminUserRequest
588
+ * @return CreateFusionEnvironmentAdminUserResponse
589
+ * @throws OciError when an error occurs
590
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.35.1/fusionapps/CreateFusionEnvironmentAdminUser.ts.html |here} to see how to use CreateFusionEnvironmentAdminUser API.
591
+ */
592
+ createFusionEnvironmentAdminUser(createFusionEnvironmentAdminUserRequest) {
593
+ return __awaiter(this, void 0, void 0, function* () {
594
+ if (this.logger)
595
+ this.logger.debug("Calling operation FusionEnvironmentClient#createFusionEnvironmentAdminUser.");
596
+ const operationName = "createFusionEnvironmentAdminUser";
597
+ const apiReferenceLink = "";
598
+ const pathParams = {
599
+ "{fusionEnvironmentId}": createFusionEnvironmentAdminUserRequest.fusionEnvironmentId
600
+ };
601
+ const queryParams = {};
602
+ let headerParams = {
603
+ "Content-Type": common.Constants.APPLICATION_JSON,
604
+ "opc-retry-token": createFusionEnvironmentAdminUserRequest.opcRetryToken,
605
+ "opc-request-id": createFusionEnvironmentAdminUserRequest.opcRequestId
606
+ };
607
+ const specRetryConfiguration = common.NoRetryConfigurationDetails;
608
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, createFusionEnvironmentAdminUserRequest.retryConfiguration, specRetryConfiguration);
609
+ if (this.logger)
610
+ retrier.logger = this.logger;
611
+ const request = yield oci_common_1.composeRequest({
612
+ baseEndpoint: this._endpoint,
613
+ defaultHeaders: this._defaultHeaders,
614
+ path: "/fusionEnvironments/{fusionEnvironmentId}/adminUsers",
615
+ method: "POST",
616
+ bodyContent: common.ObjectSerializer.serialize(createFusionEnvironmentAdminUserRequest.createFusionEnvironmentAdminUserDetails, "CreateFusionEnvironmentAdminUserDetails", model.CreateFusionEnvironmentAdminUserDetails.getJsonObj),
617
+ pathParams: pathParams,
618
+ headerParams: headerParams,
619
+ queryParams: queryParams
620
+ });
621
+ try {
622
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
623
+ const sdkResponse = oci_common_1.composeResponse({
624
+ responseObject: {},
625
+ responseHeaders: [
626
+ {
627
+ value: response.headers.get("opc-request-id"),
628
+ key: "opcRequestId",
629
+ dataType: "string"
630
+ },
631
+ {
632
+ value: response.headers.get("opc-work-request-id"),
633
+ key: "opcWorkRequestId",
634
+ dataType: "string"
635
+ }
636
+ ]
637
+ });
638
+ return sdkResponse;
639
+ }
640
+ catch (err) {
641
+ throw err;
642
+ }
643
+ });
644
+ }
645
+ /**
646
+ * Deletes the Fusion environment identified by it's OCID.
647
+ * This operation does not retry by default if the user has not defined a retry configuration.
648
+ * @param DeleteFusionEnvironmentRequest
649
+ * @return DeleteFusionEnvironmentResponse
650
+ * @throws OciError when an error occurs
651
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.35.1/fusionapps/DeleteFusionEnvironment.ts.html |here} to see how to use DeleteFusionEnvironment API.
652
+ */
653
+ deleteFusionEnvironment(deleteFusionEnvironmentRequest) {
654
+ return __awaiter(this, void 0, void 0, function* () {
655
+ if (this.logger)
656
+ this.logger.debug("Calling operation FusionEnvironmentClient#deleteFusionEnvironment.");
657
+ const operationName = "deleteFusionEnvironment";
658
+ const apiReferenceLink = "";
659
+ const pathParams = {
660
+ "{fusionEnvironmentId}": deleteFusionEnvironmentRequest.fusionEnvironmentId
661
+ };
662
+ const queryParams = {};
663
+ let headerParams = {
664
+ "Content-Type": common.Constants.APPLICATION_JSON,
665
+ "if-match": deleteFusionEnvironmentRequest.ifMatch,
666
+ "opc-request-id": deleteFusionEnvironmentRequest.opcRequestId
667
+ };
668
+ const specRetryConfiguration = common.NoRetryConfigurationDetails;
669
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, deleteFusionEnvironmentRequest.retryConfiguration, specRetryConfiguration);
670
+ if (this.logger)
671
+ retrier.logger = this.logger;
672
+ const request = yield oci_common_1.composeRequest({
673
+ baseEndpoint: this._endpoint,
674
+ defaultHeaders: this._defaultHeaders,
675
+ path: "/fusionEnvironments/{fusionEnvironmentId}",
676
+ method: "DELETE",
677
+ pathParams: pathParams,
678
+ headerParams: headerParams,
679
+ queryParams: queryParams
680
+ });
681
+ try {
682
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
683
+ const sdkResponse = oci_common_1.composeResponse({
684
+ responseObject: {},
685
+ responseHeaders: [
686
+ {
687
+ value: response.headers.get("opc-work-request-id"),
688
+ key: "opcWorkRequestId",
689
+ dataType: "string"
690
+ },
691
+ {
692
+ value: response.headers.get("opc-request-id"),
693
+ key: "opcRequestId",
694
+ dataType: "string"
695
+ }
696
+ ]
697
+ });
698
+ return sdkResponse;
699
+ }
700
+ catch (err) {
701
+ throw err;
702
+ }
703
+ });
704
+ }
705
+ /**
706
+ * Deletes the FusionEnvironment administrator user identified by the username.
707
+ * This operation does not retry by default if the user has not defined a retry configuration.
708
+ * @param DeleteFusionEnvironmentAdminUserRequest
709
+ * @return DeleteFusionEnvironmentAdminUserResponse
710
+ * @throws OciError when an error occurs
711
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.35.1/fusionapps/DeleteFusionEnvironmentAdminUser.ts.html |here} to see how to use DeleteFusionEnvironmentAdminUser API.
712
+ */
713
+ deleteFusionEnvironmentAdminUser(deleteFusionEnvironmentAdminUserRequest) {
714
+ return __awaiter(this, void 0, void 0, function* () {
715
+ if (this.logger)
716
+ this.logger.debug("Calling operation FusionEnvironmentClient#deleteFusionEnvironmentAdminUser.");
717
+ const operationName = "deleteFusionEnvironmentAdminUser";
718
+ const apiReferenceLink = "";
719
+ const pathParams = {
720
+ "{adminUsername}": deleteFusionEnvironmentAdminUserRequest.adminUsername,
721
+ "{fusionEnvironmentId}": deleteFusionEnvironmentAdminUserRequest.fusionEnvironmentId
722
+ };
723
+ const queryParams = {};
724
+ let headerParams = {
725
+ "Content-Type": common.Constants.APPLICATION_JSON,
726
+ "if-match": deleteFusionEnvironmentAdminUserRequest.ifMatch,
727
+ "opc-request-id": deleteFusionEnvironmentAdminUserRequest.opcRequestId
728
+ };
729
+ const specRetryConfiguration = common.NoRetryConfigurationDetails;
730
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, deleteFusionEnvironmentAdminUserRequest.retryConfiguration, specRetryConfiguration);
731
+ if (this.logger)
732
+ retrier.logger = this.logger;
733
+ const request = yield oci_common_1.composeRequest({
734
+ baseEndpoint: this._endpoint,
735
+ defaultHeaders: this._defaultHeaders,
736
+ path: "/fusionEnvironments/{fusionEnvironmentId}/adminUsers/{adminUsername}",
737
+ method: "DELETE",
738
+ pathParams: pathParams,
739
+ headerParams: headerParams,
740
+ queryParams: queryParams
741
+ });
742
+ try {
743
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
744
+ const sdkResponse = oci_common_1.composeResponse({
745
+ responseObject: {},
746
+ responseHeaders: [
747
+ {
748
+ value: response.headers.get("opc-request-id"),
749
+ key: "opcRequestId",
750
+ dataType: "string"
751
+ },
752
+ {
753
+ value: response.headers.get("opc-work-request-id"),
754
+ key: "opcWorkRequestId",
755
+ dataType: "string"
756
+ }
757
+ ]
758
+ });
759
+ return sdkResponse;
760
+ }
761
+ catch (err) {
762
+ throw err;
763
+ }
764
+ });
765
+ }
766
+ /**
767
+ * Gets a FusionEnvironment by identifier
768
+ * This operation does not retry by default if the user has not defined a retry configuration.
769
+ * @param GetFusionEnvironmentRequest
770
+ * @return GetFusionEnvironmentResponse
771
+ * @throws OciError when an error occurs
772
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.35.1/fusionapps/GetFusionEnvironment.ts.html |here} to see how to use GetFusionEnvironment API.
773
+ */
774
+ getFusionEnvironment(getFusionEnvironmentRequest) {
775
+ return __awaiter(this, void 0, void 0, function* () {
776
+ if (this.logger)
777
+ this.logger.debug("Calling operation FusionEnvironmentClient#getFusionEnvironment.");
778
+ const operationName = "getFusionEnvironment";
779
+ const apiReferenceLink = "";
780
+ const pathParams = {
781
+ "{fusionEnvironmentId}": getFusionEnvironmentRequest.fusionEnvironmentId
782
+ };
783
+ const queryParams = {};
784
+ let headerParams = {
785
+ "Content-Type": common.Constants.APPLICATION_JSON,
786
+ "opc-request-id": getFusionEnvironmentRequest.opcRequestId
787
+ };
788
+ const specRetryConfiguration = common.NoRetryConfigurationDetails;
789
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getFusionEnvironmentRequest.retryConfiguration, specRetryConfiguration);
790
+ if (this.logger)
791
+ retrier.logger = this.logger;
792
+ const request = yield oci_common_1.composeRequest({
793
+ baseEndpoint: this._endpoint,
794
+ defaultHeaders: this._defaultHeaders,
795
+ path: "/fusionEnvironments/{fusionEnvironmentId}",
796
+ method: "GET",
797
+ pathParams: pathParams,
798
+ headerParams: headerParams,
799
+ queryParams: queryParams
800
+ });
801
+ try {
802
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
803
+ const sdkResponse = oci_common_1.composeResponse({
804
+ responseObject: {},
805
+ body: yield response.json(),
806
+ bodyKey: "fusionEnvironment",
807
+ bodyModel: model.FusionEnvironment,
808
+ type: "model.FusionEnvironment",
809
+ responseHeaders: [
810
+ {
811
+ value: response.headers.get("etag"),
812
+ key: "etag",
813
+ dataType: "string"
814
+ },
815
+ {
816
+ value: response.headers.get("opc-request-id"),
817
+ key: "opcRequestId",
818
+ dataType: "string"
819
+ }
820
+ ]
821
+ });
822
+ return sdkResponse;
823
+ }
824
+ catch (err) {
825
+ throw err;
826
+ }
827
+ });
828
+ }
829
+ /**
830
+ * Gets the status of a Fusion environment identified by its OCID.
831
+ * This operation does not retry by default if the user has not defined a retry configuration.
832
+ * @param GetFusionEnvironmentStatusRequest
833
+ * @return GetFusionEnvironmentStatusResponse
834
+ * @throws OciError when an error occurs
835
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.35.1/fusionapps/GetFusionEnvironmentStatus.ts.html |here} to see how to use GetFusionEnvironmentStatus API.
836
+ */
837
+ getFusionEnvironmentStatus(getFusionEnvironmentStatusRequest) {
838
+ return __awaiter(this, void 0, void 0, function* () {
839
+ if (this.logger)
840
+ this.logger.debug("Calling operation FusionEnvironmentClient#getFusionEnvironmentStatus.");
841
+ const operationName = "getFusionEnvironmentStatus";
842
+ const apiReferenceLink = "";
843
+ const pathParams = {
844
+ "{fusionEnvironmentId}": getFusionEnvironmentStatusRequest.fusionEnvironmentId
845
+ };
846
+ const queryParams = {};
847
+ let headerParams = {
848
+ "Content-Type": common.Constants.APPLICATION_JSON,
849
+ "opc-request-id": getFusionEnvironmentStatusRequest.opcRequestId
850
+ };
851
+ const specRetryConfiguration = common.NoRetryConfigurationDetails;
852
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getFusionEnvironmentStatusRequest.retryConfiguration, specRetryConfiguration);
853
+ if (this.logger)
854
+ retrier.logger = this.logger;
855
+ const request = yield oci_common_1.composeRequest({
856
+ baseEndpoint: this._endpoint,
857
+ defaultHeaders: this._defaultHeaders,
858
+ path: "/fusionEnvironments/{fusionEnvironmentId}/status",
859
+ method: "GET",
860
+ pathParams: pathParams,
861
+ headerParams: headerParams,
862
+ queryParams: queryParams
863
+ });
864
+ try {
865
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
866
+ const sdkResponse = oci_common_1.composeResponse({
867
+ responseObject: {},
868
+ body: yield response.json(),
869
+ bodyKey: "fusionEnvironmentStatus",
870
+ bodyModel: model.FusionEnvironmentStatus,
871
+ type: "model.FusionEnvironmentStatus",
872
+ responseHeaders: [
873
+ {
874
+ value: response.headers.get("opc-request-id"),
875
+ key: "opcRequestId",
876
+ dataType: "string"
877
+ }
878
+ ]
879
+ });
880
+ return sdkResponse;
881
+ }
882
+ catch (err) {
883
+ throw err;
884
+ }
885
+ });
886
+ }
887
+ /**
888
+ * Gets the status of the work request with the given ID.
889
+ * This operation does not retry by default if the user has not defined a retry configuration.
890
+ * @param GetWorkRequestRequest
891
+ * @return GetWorkRequestResponse
892
+ * @throws OciError when an error occurs
893
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.35.1/fusionapps/GetWorkRequest.ts.html |here} to see how to use GetWorkRequest API.
894
+ */
895
+ getWorkRequest(getWorkRequestRequest) {
896
+ return __awaiter(this, void 0, void 0, function* () {
897
+ if (this.logger)
898
+ this.logger.debug("Calling operation FusionEnvironmentClient#getWorkRequest.");
899
+ const operationName = "getWorkRequest";
900
+ const apiReferenceLink = "";
901
+ const pathParams = {
902
+ "{workRequestId}": getWorkRequestRequest.workRequestId
903
+ };
904
+ const queryParams = {};
905
+ let headerParams = {
906
+ "Content-Type": common.Constants.APPLICATION_JSON,
907
+ "opc-request-id": getWorkRequestRequest.opcRequestId
908
+ };
909
+ const specRetryConfiguration = common.NoRetryConfigurationDetails;
910
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getWorkRequestRequest.retryConfiguration, specRetryConfiguration);
911
+ if (this.logger)
912
+ retrier.logger = this.logger;
913
+ const request = yield oci_common_1.composeRequest({
914
+ baseEndpoint: this._endpoint,
915
+ defaultHeaders: this._defaultHeaders,
916
+ path: "/workRequests/{workRequestId}",
917
+ method: "GET",
918
+ pathParams: pathParams,
919
+ headerParams: headerParams,
920
+ queryParams: queryParams
921
+ });
922
+ try {
923
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
924
+ const sdkResponse = oci_common_1.composeResponse({
925
+ responseObject: {},
926
+ body: yield response.json(),
927
+ bodyKey: "workRequest",
928
+ bodyModel: model.WorkRequest,
929
+ type: "model.WorkRequest",
930
+ responseHeaders: [
931
+ {
932
+ value: response.headers.get("opc-request-id"),
933
+ key: "opcRequestId",
934
+ dataType: "string"
935
+ },
936
+ {
937
+ value: response.headers.get("retry-after"),
938
+ key: "retryAfter",
939
+ dataType: "number"
940
+ }
941
+ ]
942
+ });
943
+ return sdkResponse;
944
+ }
945
+ catch (err) {
946
+ throw err;
947
+ }
948
+ });
949
+ }
950
+ /**
951
+ * List all FusionEnvironment admin users
952
+ * This operation does not retry by default if the user has not defined a retry configuration.
953
+ * @param ListAdminUsersRequest
954
+ * @return ListAdminUsersResponse
955
+ * @throws OciError when an error occurs
956
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.35.1/fusionapps/ListAdminUsers.ts.html |here} to see how to use ListAdminUsers API.
957
+ */
958
+ listAdminUsers(listAdminUsersRequest) {
959
+ return __awaiter(this, void 0, void 0, function* () {
960
+ if (this.logger)
961
+ this.logger.debug("Calling operation FusionEnvironmentClient#listAdminUsers.");
962
+ const operationName = "listAdminUsers";
963
+ const apiReferenceLink = "";
964
+ const pathParams = {
965
+ "{fusionEnvironmentId}": listAdminUsersRequest.fusionEnvironmentId
966
+ };
967
+ const queryParams = {};
968
+ let headerParams = {
969
+ "Content-Type": common.Constants.APPLICATION_JSON,
970
+ "opc-request-id": listAdminUsersRequest.opcRequestId
971
+ };
972
+ const specRetryConfiguration = common.NoRetryConfigurationDetails;
973
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listAdminUsersRequest.retryConfiguration, specRetryConfiguration);
974
+ if (this.logger)
975
+ retrier.logger = this.logger;
976
+ const request = yield oci_common_1.composeRequest({
977
+ baseEndpoint: this._endpoint,
978
+ defaultHeaders: this._defaultHeaders,
979
+ path: "/fusionEnvironments/{fusionEnvironmentId}/adminUsers",
980
+ method: "GET",
981
+ pathParams: pathParams,
982
+ headerParams: headerParams,
983
+ queryParams: queryParams
984
+ });
985
+ try {
986
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
987
+ const sdkResponse = oci_common_1.composeResponse({
988
+ responseObject: {},
989
+ body: yield response.json(),
990
+ bodyKey: "adminUserCollection",
991
+ bodyModel: model.AdminUserCollection,
992
+ type: "model.AdminUserCollection",
993
+ responseHeaders: [
994
+ {
995
+ value: response.headers.get("opc-request-id"),
996
+ key: "opcRequestId",
997
+ dataType: "string"
998
+ },
999
+ {
1000
+ value: response.headers.get("opc-next-page"),
1001
+ key: "opcNextPage",
1002
+ dataType: "string"
1003
+ }
1004
+ ]
1005
+ });
1006
+ return sdkResponse;
1007
+ }
1008
+ catch (err) {
1009
+ throw err;
1010
+ }
1011
+ });
1012
+ }
1013
+ /**
1014
+ * Returns a list of FusionEnvironments.
1015
+ *
1016
+ * This operation does not retry by default if the user has not defined a retry configuration.
1017
+ * @param ListFusionEnvironmentsRequest
1018
+ * @return ListFusionEnvironmentsResponse
1019
+ * @throws OciError when an error occurs
1020
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.35.1/fusionapps/ListFusionEnvironments.ts.html |here} to see how to use ListFusionEnvironments API.
1021
+ */
1022
+ listFusionEnvironments(listFusionEnvironmentsRequest) {
1023
+ return __awaiter(this, void 0, void 0, function* () {
1024
+ if (this.logger)
1025
+ this.logger.debug("Calling operation FusionEnvironmentClient#listFusionEnvironments.");
1026
+ const operationName = "listFusionEnvironments";
1027
+ const apiReferenceLink = "";
1028
+ const pathParams = {};
1029
+ const queryParams = {
1030
+ "compartmentId": listFusionEnvironmentsRequest.compartmentId,
1031
+ "fusionEnvironmentFamilyId": listFusionEnvironmentsRequest.fusionEnvironmentFamilyId,
1032
+ "displayName": listFusionEnvironmentsRequest.displayName,
1033
+ "lifecycleState": listFusionEnvironmentsRequest.lifecycleState,
1034
+ "limit": listFusionEnvironmentsRequest.limit,
1035
+ "page": listFusionEnvironmentsRequest.page,
1036
+ "sortOrder": listFusionEnvironmentsRequest.sortOrder,
1037
+ "sortBy": listFusionEnvironmentsRequest.sortBy
1038
+ };
1039
+ let headerParams = {
1040
+ "Content-Type": common.Constants.APPLICATION_JSON,
1041
+ "opc-request-id": listFusionEnvironmentsRequest.opcRequestId
1042
+ };
1043
+ const specRetryConfiguration = common.NoRetryConfigurationDetails;
1044
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listFusionEnvironmentsRequest.retryConfiguration, specRetryConfiguration);
1045
+ if (this.logger)
1046
+ retrier.logger = this.logger;
1047
+ const request = yield oci_common_1.composeRequest({
1048
+ baseEndpoint: this._endpoint,
1049
+ defaultHeaders: this._defaultHeaders,
1050
+ path: "/fusionEnvironments",
1051
+ method: "GET",
1052
+ pathParams: pathParams,
1053
+ headerParams: headerParams,
1054
+ queryParams: queryParams
1055
+ });
1056
+ try {
1057
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
1058
+ const sdkResponse = oci_common_1.composeResponse({
1059
+ responseObject: {},
1060
+ body: yield response.json(),
1061
+ bodyKey: "fusionEnvironmentCollection",
1062
+ bodyModel: model.FusionEnvironmentCollection,
1063
+ type: "model.FusionEnvironmentCollection",
1064
+ responseHeaders: [
1065
+ {
1066
+ value: response.headers.get("opc-request-id"),
1067
+ key: "opcRequestId",
1068
+ dataType: "string"
1069
+ },
1070
+ {
1071
+ value: response.headers.get("opc-next-page"),
1072
+ key: "opcNextPage",
1073
+ dataType: "string"
1074
+ }
1075
+ ]
1076
+ });
1077
+ return sdkResponse;
1078
+ }
1079
+ catch (err) {
1080
+ throw err;
1081
+ }
1082
+ });
1083
+ }
1084
+ /**
1085
+ * Return a (paginated) list of errors for a given work request.
1086
+ *
1087
+ * This operation does not retry by default if the user has not defined a retry configuration.
1088
+ * @param ListWorkRequestErrorsRequest
1089
+ * @return ListWorkRequestErrorsResponse
1090
+ * @throws OciError when an error occurs
1091
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.35.1/fusionapps/ListWorkRequestErrors.ts.html |here} to see how to use ListWorkRequestErrors API.
1092
+ */
1093
+ listWorkRequestErrors(listWorkRequestErrorsRequest) {
1094
+ return __awaiter(this, void 0, void 0, function* () {
1095
+ if (this.logger)
1096
+ this.logger.debug("Calling operation FusionEnvironmentClient#listWorkRequestErrors.");
1097
+ const operationName = "listWorkRequestErrors";
1098
+ const apiReferenceLink = "";
1099
+ const pathParams = {
1100
+ "{workRequestId}": listWorkRequestErrorsRequest.workRequestId
1101
+ };
1102
+ const queryParams = {
1103
+ "sortBy": listWorkRequestErrorsRequest.sortBy,
1104
+ "sortOrder": listWorkRequestErrorsRequest.sortOrder,
1105
+ "page": listWorkRequestErrorsRequest.page,
1106
+ "limit": listWorkRequestErrorsRequest.limit
1107
+ };
1108
+ let headerParams = {
1109
+ "Content-Type": common.Constants.APPLICATION_JSON,
1110
+ "opc-request-id": listWorkRequestErrorsRequest.opcRequestId
1111
+ };
1112
+ const specRetryConfiguration = common.NoRetryConfigurationDetails;
1113
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listWorkRequestErrorsRequest.retryConfiguration, specRetryConfiguration);
1114
+ if (this.logger)
1115
+ retrier.logger = this.logger;
1116
+ const request = yield oci_common_1.composeRequest({
1117
+ baseEndpoint: this._endpoint,
1118
+ defaultHeaders: this._defaultHeaders,
1119
+ path: "/workRequests/{workRequestId}/errors",
1120
+ method: "GET",
1121
+ pathParams: pathParams,
1122
+ headerParams: headerParams,
1123
+ queryParams: queryParams
1124
+ });
1125
+ try {
1126
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
1127
+ const sdkResponse = oci_common_1.composeResponse({
1128
+ responseObject: {},
1129
+ body: yield response.json(),
1130
+ bodyKey: "workRequestErrorCollection",
1131
+ bodyModel: model.WorkRequestErrorCollection,
1132
+ type: "model.WorkRequestErrorCollection",
1133
+ responseHeaders: [
1134
+ {
1135
+ value: response.headers.get("opc-next-page"),
1136
+ key: "opcNextPage",
1137
+ dataType: "string"
1138
+ },
1139
+ {
1140
+ value: response.headers.get("opc-request-id"),
1141
+ key: "opcRequestId",
1142
+ dataType: "string"
1143
+ }
1144
+ ]
1145
+ });
1146
+ return sdkResponse;
1147
+ }
1148
+ catch (err) {
1149
+ throw err;
1150
+ }
1151
+ });
1152
+ }
1153
+ /**
1154
+ * Return a (paginated) list of logs for a given work request.
1155
+ *
1156
+ * This operation does not retry by default if the user has not defined a retry configuration.
1157
+ * @param ListWorkRequestLogsRequest
1158
+ * @return ListWorkRequestLogsResponse
1159
+ * @throws OciError when an error occurs
1160
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.35.1/fusionapps/ListWorkRequestLogs.ts.html |here} to see how to use ListWorkRequestLogs API.
1161
+ */
1162
+ listWorkRequestLogs(listWorkRequestLogsRequest) {
1163
+ return __awaiter(this, void 0, void 0, function* () {
1164
+ if (this.logger)
1165
+ this.logger.debug("Calling operation FusionEnvironmentClient#listWorkRequestLogs.");
1166
+ const operationName = "listWorkRequestLogs";
1167
+ const apiReferenceLink = "";
1168
+ const pathParams = {
1169
+ "{workRequestId}": listWorkRequestLogsRequest.workRequestId
1170
+ };
1171
+ const queryParams = {
1172
+ "page": listWorkRequestLogsRequest.page,
1173
+ "limit": listWorkRequestLogsRequest.limit,
1174
+ "sortBy": listWorkRequestLogsRequest.sortBy,
1175
+ "sortOrder": listWorkRequestLogsRequest.sortOrder
1176
+ };
1177
+ let headerParams = {
1178
+ "Content-Type": common.Constants.APPLICATION_JSON,
1179
+ "opc-request-id": listWorkRequestLogsRequest.opcRequestId
1180
+ };
1181
+ const specRetryConfiguration = common.NoRetryConfigurationDetails;
1182
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listWorkRequestLogsRequest.retryConfiguration, specRetryConfiguration);
1183
+ if (this.logger)
1184
+ retrier.logger = this.logger;
1185
+ const request = yield oci_common_1.composeRequest({
1186
+ baseEndpoint: this._endpoint,
1187
+ defaultHeaders: this._defaultHeaders,
1188
+ path: "/workRequests/{workRequestId}/logs",
1189
+ method: "GET",
1190
+ pathParams: pathParams,
1191
+ headerParams: headerParams,
1192
+ queryParams: queryParams
1193
+ });
1194
+ try {
1195
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
1196
+ const sdkResponse = oci_common_1.composeResponse({
1197
+ responseObject: {},
1198
+ body: yield response.json(),
1199
+ bodyKey: "workRequestLogEntryCollection",
1200
+ bodyModel: model.WorkRequestLogEntryCollection,
1201
+ type: "model.WorkRequestLogEntryCollection",
1202
+ responseHeaders: [
1203
+ {
1204
+ value: response.headers.get("opc-next-page"),
1205
+ key: "opcNextPage",
1206
+ dataType: "string"
1207
+ },
1208
+ {
1209
+ value: response.headers.get("opc-request-id"),
1210
+ key: "opcRequestId",
1211
+ dataType: "string"
1212
+ }
1213
+ ]
1214
+ });
1215
+ return sdkResponse;
1216
+ }
1217
+ catch (err) {
1218
+ throw err;
1219
+ }
1220
+ });
1221
+ }
1222
+ /**
1223
+ * Lists the work requests in a compartment.
1224
+ *
1225
+ * This operation does not retry by default if the user has not defined a retry configuration.
1226
+ * @param ListWorkRequestsRequest
1227
+ * @return ListWorkRequestsResponse
1228
+ * @throws OciError when an error occurs
1229
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.35.1/fusionapps/ListWorkRequests.ts.html |here} to see how to use ListWorkRequests API.
1230
+ */
1231
+ listWorkRequests(listWorkRequestsRequest) {
1232
+ return __awaiter(this, void 0, void 0, function* () {
1233
+ if (this.logger)
1234
+ this.logger.debug("Calling operation FusionEnvironmentClient#listWorkRequests.");
1235
+ const operationName = "listWorkRequests";
1236
+ const apiReferenceLink = "";
1237
+ const pathParams = {};
1238
+ const queryParams = {
1239
+ "compartmentId": listWorkRequestsRequest.compartmentId,
1240
+ "status": listWorkRequestsRequest.status,
1241
+ "sortBy": listWorkRequestsRequest.sortBy,
1242
+ "sortOrder": listWorkRequestsRequest.sortOrder,
1243
+ "resourceId": listWorkRequestsRequest.resourceId,
1244
+ "page": listWorkRequestsRequest.page,
1245
+ "limit": listWorkRequestsRequest.limit
1246
+ };
1247
+ let headerParams = {
1248
+ "Content-Type": common.Constants.APPLICATION_JSON,
1249
+ "opc-request-id": listWorkRequestsRequest.opcRequestId
1250
+ };
1251
+ const specRetryConfiguration = common.NoRetryConfigurationDetails;
1252
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listWorkRequestsRequest.retryConfiguration, specRetryConfiguration);
1253
+ if (this.logger)
1254
+ retrier.logger = this.logger;
1255
+ const request = yield oci_common_1.composeRequest({
1256
+ baseEndpoint: this._endpoint,
1257
+ defaultHeaders: this._defaultHeaders,
1258
+ path: "/workRequests",
1259
+ method: "GET",
1260
+ pathParams: pathParams,
1261
+ headerParams: headerParams,
1262
+ queryParams: queryParams
1263
+ });
1264
+ try {
1265
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
1266
+ const sdkResponse = oci_common_1.composeResponse({
1267
+ responseObject: {},
1268
+ body: yield response.json(),
1269
+ bodyKey: "workRequestSummaryCollection",
1270
+ bodyModel: model.WorkRequestSummaryCollection,
1271
+ type: "model.WorkRequestSummaryCollection",
1272
+ responseHeaders: [
1273
+ {
1274
+ value: response.headers.get("opc-request-id"),
1275
+ key: "opcRequestId",
1276
+ dataType: "string"
1277
+ },
1278
+ {
1279
+ value: response.headers.get("opc-next-page"),
1280
+ key: "opcNextPage",
1281
+ dataType: "string"
1282
+ }
1283
+ ]
1284
+ });
1285
+ return sdkResponse;
1286
+ }
1287
+ catch (err) {
1288
+ throw err;
1289
+ }
1290
+ });
1291
+ }
1292
+ /**
1293
+ * Resets the password of the Fusion Environment Administrator.
1294
+ * This operation does not retry by default if the user has not defined a retry configuration.
1295
+ * @param ResetFusionEnvironmentPasswordRequest
1296
+ * @return ResetFusionEnvironmentPasswordResponse
1297
+ * @throws OciError when an error occurs
1298
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.35.1/fusionapps/ResetFusionEnvironmentPassword.ts.html |here} to see how to use ResetFusionEnvironmentPassword API.
1299
+ */
1300
+ resetFusionEnvironmentPassword(resetFusionEnvironmentPasswordRequest) {
1301
+ return __awaiter(this, void 0, void 0, function* () {
1302
+ if (this.logger)
1303
+ this.logger.debug("Calling operation FusionEnvironmentClient#resetFusionEnvironmentPassword.");
1304
+ const operationName = "resetFusionEnvironmentPassword";
1305
+ const apiReferenceLink = "";
1306
+ const pathParams = {
1307
+ "{fusionEnvironmentId}": resetFusionEnvironmentPasswordRequest.fusionEnvironmentId,
1308
+ "{adminUsername}": resetFusionEnvironmentPasswordRequest.adminUsername
1309
+ };
1310
+ const queryParams = {};
1311
+ let headerParams = {
1312
+ "Content-Type": common.Constants.APPLICATION_JSON,
1313
+ "opc-retry-token": resetFusionEnvironmentPasswordRequest.opcRetryToken,
1314
+ "opc-request-id": resetFusionEnvironmentPasswordRequest.opcRequestId,
1315
+ "if-match": resetFusionEnvironmentPasswordRequest.ifMatch
1316
+ };
1317
+ const specRetryConfiguration = common.NoRetryConfigurationDetails;
1318
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, resetFusionEnvironmentPasswordRequest.retryConfiguration, specRetryConfiguration);
1319
+ if (this.logger)
1320
+ retrier.logger = this.logger;
1321
+ const request = yield oci_common_1.composeRequest({
1322
+ baseEndpoint: this._endpoint,
1323
+ defaultHeaders: this._defaultHeaders,
1324
+ path: "/fusionEnvironments/{fusionEnvironmentId}/adminUsers/{adminUsername}/actions/resetPassword",
1325
+ method: "POST",
1326
+ bodyContent: common.ObjectSerializer.serialize(resetFusionEnvironmentPasswordRequest.resetFusionEnvironmentPasswordDetails, "ResetFusionEnvironmentPasswordDetails", model.ResetFusionEnvironmentPasswordDetails.getJsonObj),
1327
+ pathParams: pathParams,
1328
+ headerParams: headerParams,
1329
+ queryParams: queryParams
1330
+ });
1331
+ try {
1332
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
1333
+ const sdkResponse = oci_common_1.composeResponse({
1334
+ responseObject: {},
1335
+ responseHeaders: [
1336
+ {
1337
+ value: response.headers.get("opc-request-id"),
1338
+ key: "opcRequestId",
1339
+ dataType: "string"
1340
+ },
1341
+ {
1342
+ value: response.headers.get("opc-work-request-id"),
1343
+ key: "opcWorkRequestId",
1344
+ dataType: "string"
1345
+ }
1346
+ ]
1347
+ });
1348
+ return sdkResponse;
1349
+ }
1350
+ catch (err) {
1351
+ throw err;
1352
+ }
1353
+ });
1354
+ }
1355
+ /**
1356
+ * Updates the FusionEnvironment
1357
+ * This operation does not retry by default if the user has not defined a retry configuration.
1358
+ * @param UpdateFusionEnvironmentRequest
1359
+ * @return UpdateFusionEnvironmentResponse
1360
+ * @throws OciError when an error occurs
1361
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.35.1/fusionapps/UpdateFusionEnvironment.ts.html |here} to see how to use UpdateFusionEnvironment API.
1362
+ */
1363
+ updateFusionEnvironment(updateFusionEnvironmentRequest) {
1364
+ return __awaiter(this, void 0, void 0, function* () {
1365
+ if (this.logger)
1366
+ this.logger.debug("Calling operation FusionEnvironmentClient#updateFusionEnvironment.");
1367
+ const operationName = "updateFusionEnvironment";
1368
+ const apiReferenceLink = "";
1369
+ const pathParams = {
1370
+ "{fusionEnvironmentId}": updateFusionEnvironmentRequest.fusionEnvironmentId
1371
+ };
1372
+ const queryParams = {};
1373
+ let headerParams = {
1374
+ "Content-Type": common.Constants.APPLICATION_JSON,
1375
+ "if-match": updateFusionEnvironmentRequest.ifMatch,
1376
+ "opc-request-id": updateFusionEnvironmentRequest.opcRequestId
1377
+ };
1378
+ const specRetryConfiguration = common.NoRetryConfigurationDetails;
1379
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, updateFusionEnvironmentRequest.retryConfiguration, specRetryConfiguration);
1380
+ if (this.logger)
1381
+ retrier.logger = this.logger;
1382
+ const request = yield oci_common_1.composeRequest({
1383
+ baseEndpoint: this._endpoint,
1384
+ defaultHeaders: this._defaultHeaders,
1385
+ path: "/fusionEnvironments/{fusionEnvironmentId}",
1386
+ method: "PUT",
1387
+ bodyContent: common.ObjectSerializer.serialize(updateFusionEnvironmentRequest.updateFusionEnvironmentDetails, "UpdateFusionEnvironmentDetails", model.UpdateFusionEnvironmentDetails.getJsonObj),
1388
+ pathParams: pathParams,
1389
+ headerParams: headerParams,
1390
+ queryParams: queryParams
1391
+ });
1392
+ try {
1393
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
1394
+ const sdkResponse = oci_common_1.composeResponse({
1395
+ responseObject: {},
1396
+ responseHeaders: [
1397
+ {
1398
+ value: response.headers.get("opc-work-request-id"),
1399
+ key: "opcWorkRequestId",
1400
+ dataType: "string"
1401
+ },
1402
+ {
1403
+ value: response.headers.get("opc-request-id"),
1404
+ key: "opcRequestId",
1405
+ dataType: "string"
1406
+ }
1407
+ ]
1408
+ });
1409
+ return sdkResponse;
1410
+ }
1411
+ catch (err) {
1412
+ throw err;
1413
+ }
1414
+ });
1415
+ }
1416
+ }
1417
+ exports.FusionEnvironmentClient = FusionEnvironmentClient;
1418
+ FusionEnvironmentClient.serviceEndpointTemplate = "https://fusionapps.{region}.oci.{secondLevelDomain}";
1419
+ FusionEnvironmentClient.endpointServiceName = "";
1420
+ var FusionEnvironmentFamilyApiKeys;
1421
+ (function (FusionEnvironmentFamilyApiKeys) {
1422
+ })(FusionEnvironmentFamilyApiKeys = exports.FusionEnvironmentFamilyApiKeys || (exports.FusionEnvironmentFamilyApiKeys = {}));
1423
+ /**
1424
+ * This service client uses {@link common.CircuitBreaker.DefaultConfiguration} for all the operations by default if no circuit breaker configuration is defined by the user.
1425
+ */
1426
+ class FusionEnvironmentFamilyClient {
1427
+ constructor(params, clientConfiguration) {
1428
+ this["_endpoint"] = "";
1429
+ this["_defaultHeaders"] = {};
1430
+ this._circuitBreaker = null;
1431
+ this._httpOptions = undefined;
1432
+ this.targetService = "FusionEnvironmentFamily";
1433
+ const requestSigner = params.authenticationDetailsProvider
1434
+ ? new common.DefaultRequestSigner(params.authenticationDetailsProvider)
1435
+ : null;
1436
+ if (clientConfiguration) {
1437
+ this._clientConfiguration = clientConfiguration;
1438
+ this._circuitBreaker = clientConfiguration.circuitBreaker
1439
+ ? clientConfiguration.circuitBreaker.circuit
1440
+ : null;
1441
+ this._httpOptions = clientConfiguration.httpOptions
1442
+ ? clientConfiguration.httpOptions
1443
+ : undefined;
1444
+ }
1445
+ // if circuit breaker is not created, check if circuit breaker system is enabled to use default circuit breaker
1446
+ const specCircuitBreakerEnabled = true;
1447
+ if (!this._circuitBreaker &&
1448
+ common.utils.isCircuitBreakerSystemEnabled(clientConfiguration) &&
1449
+ (specCircuitBreakerEnabled || common.CircuitBreaker.DefaultCircuitBreakerOverriden)) {
1450
+ this._circuitBreaker = new common.CircuitBreaker().circuit;
1451
+ }
1452
+ this._httpClient =
1453
+ params.httpClient ||
1454
+ new common.FetchHttpClient(requestSigner, this._circuitBreaker, this._httpOptions);
1455
+ if (params.authenticationDetailsProvider &&
1456
+ common.isRegionProvider(params.authenticationDetailsProvider)) {
1457
+ const provider = params.authenticationDetailsProvider;
1458
+ if (provider.getRegion()) {
1459
+ this.region = provider.getRegion();
1460
+ }
1461
+ }
1462
+ }
1463
+ /**
1464
+ * Get the endpoint that is being used to call (ex, https://www.example.com).
1465
+ */
1466
+ get endpoint() {
1467
+ return this._endpoint;
1468
+ }
1469
+ /**
1470
+ * Sets the endpoint to call (ex, https://www.example.com).
1471
+ * @param endpoint The endpoint of the service.
1472
+ */
1473
+ set endpoint(endpoint) {
1474
+ this._endpoint = endpoint;
1475
+ this._endpoint = this._endpoint + "/20211201";
1476
+ if (this.logger)
1477
+ this.logger.info(`FusionEnvironmentFamilyClient endpoint set to ${this._endpoint}`);
1478
+ }
1479
+ get logger() {
1480
+ return common.LOG.logger;
1481
+ }
1482
+ /**
1483
+ * Sets the region to call (ex, Region.US_PHOENIX_1).
1484
+ * Note, this will call {@link #endpoint(String) endpoint} after resolving the endpoint.
1485
+ * @param region The region of the service.
1486
+ */
1487
+ set region(region) {
1488
+ this.endpoint = common.EndpointBuilder.createEndpointFromRegion(FusionEnvironmentFamilyClient.serviceEndpointTemplate, region, FusionEnvironmentFamilyClient.endpointServiceName);
1489
+ }
1490
+ /**
1491
+ * Sets the regionId to call (ex, 'us-phoenix-1').
1492
+ *
1493
+ * Note, this will first try to map the region ID to a known Region and call {@link #region(Region) region}.
1494
+ * If no known Region could be determined, it will create an endpoint assuming its in default Realm OC1
1495
+ * and then call {@link #endpoint(String) endpoint}.
1496
+ * @param regionId The public region ID.
1497
+ */
1498
+ set regionId(regionId) {
1499
+ this.endpoint = common.EndpointBuilder.createEndpointFromRegionId(FusionEnvironmentFamilyClient.serviceEndpointTemplate, regionId, FusionEnvironmentFamilyClient.endpointServiceName);
1500
+ }
1501
+ /**
1502
+ * Creates a new FusionEnvironmentFamilyWaiter for resources for this service.
1503
+ *
1504
+ * @param config The waiter configuration for termination and delay strategy
1505
+ * @return The service waiters.
1506
+ */
1507
+ createWaiters(config) {
1508
+ this._waiters = new fusionenvironmentfamily_waiter_1.FusionEnvironmentFamilyWaiter(this, config);
1509
+ return this._waiters;
1510
+ }
1511
+ /**
1512
+ * Gets the waiters available for resources for this service.
1513
+ *
1514
+ * @return The service waiters.
1515
+ */
1516
+ getWaiters() {
1517
+ if (this._waiters) {
1518
+ return this._waiters;
1519
+ }
1520
+ throw Error("Waiters do not exist. Please create waiters.");
1521
+ }
1522
+ /**
1523
+ * Moves a FusionEnvironmentFamily into a different compartment. When provided, If-Match is checked against ETag
1524
+ * values of the resource.
1525
+ *
1526
+ * This operation does not retry by default if the user has not defined a retry configuration.
1527
+ * @param ChangeFusionEnvironmentFamilyCompartmentRequest
1528
+ * @return ChangeFusionEnvironmentFamilyCompartmentResponse
1529
+ * @throws OciError when an error occurs
1530
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.35.1/fusionapps/ChangeFusionEnvironmentFamilyCompartment.ts.html |here} to see how to use ChangeFusionEnvironmentFamilyCompartment API.
1531
+ */
1532
+ changeFusionEnvironmentFamilyCompartment(changeFusionEnvironmentFamilyCompartmentRequest) {
1533
+ return __awaiter(this, void 0, void 0, function* () {
1534
+ if (this.logger)
1535
+ this.logger.debug("Calling operation FusionEnvironmentFamilyClient#changeFusionEnvironmentFamilyCompartment.");
1536
+ const operationName = "changeFusionEnvironmentFamilyCompartment";
1537
+ const apiReferenceLink = "";
1538
+ const pathParams = {
1539
+ "{fusionEnvironmentFamilyId}": changeFusionEnvironmentFamilyCompartmentRequest.fusionEnvironmentFamilyId
1540
+ };
1541
+ const queryParams = {};
1542
+ let headerParams = {
1543
+ "Content-Type": common.Constants.APPLICATION_JSON,
1544
+ "if-match": changeFusionEnvironmentFamilyCompartmentRequest.ifMatch,
1545
+ "opc-request-id": changeFusionEnvironmentFamilyCompartmentRequest.opcRequestId,
1546
+ "opc-retry-token": changeFusionEnvironmentFamilyCompartmentRequest.opcRetryToken
1547
+ };
1548
+ const specRetryConfiguration = common.NoRetryConfigurationDetails;
1549
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, changeFusionEnvironmentFamilyCompartmentRequest.retryConfiguration, specRetryConfiguration);
1550
+ if (this.logger)
1551
+ retrier.logger = this.logger;
1552
+ const request = yield oci_common_1.composeRequest({
1553
+ baseEndpoint: this._endpoint,
1554
+ defaultHeaders: this._defaultHeaders,
1555
+ path: "/fusionEnvironmentFamilies/{fusionEnvironmentFamilyId}/actions/changeCompartment",
1556
+ method: "POST",
1557
+ bodyContent: common.ObjectSerializer.serialize(changeFusionEnvironmentFamilyCompartmentRequest.changeFusionEnvironmentFamilyCompartmentDetails, "ChangeFusionEnvironmentFamilyCompartmentDetails", model.ChangeFusionEnvironmentFamilyCompartmentDetails.getJsonObj),
1558
+ pathParams: pathParams,
1559
+ headerParams: headerParams,
1560
+ queryParams: queryParams
1561
+ });
1562
+ try {
1563
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
1564
+ const sdkResponse = oci_common_1.composeResponse({
1565
+ responseObject: {},
1566
+ responseHeaders: [
1567
+ {
1568
+ value: response.headers.get("opc-request-id"),
1569
+ key: "opcRequestId",
1570
+ dataType: "string"
1571
+ },
1572
+ {
1573
+ value: response.headers.get("opc-work-request-id"),
1574
+ key: "opcWorkRequestId",
1575
+ dataType: "string"
1576
+ }
1577
+ ]
1578
+ });
1579
+ return sdkResponse;
1580
+ }
1581
+ catch (err) {
1582
+ throw err;
1583
+ }
1584
+ });
1585
+ }
1586
+ /**
1587
+ * Creates a new FusionEnvironmentFamily.
1588
+ *
1589
+ * This operation does not retry by default if the user has not defined a retry configuration.
1590
+ * @param CreateFusionEnvironmentFamilyRequest
1591
+ * @return CreateFusionEnvironmentFamilyResponse
1592
+ * @throws OciError when an error occurs
1593
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.35.1/fusionapps/CreateFusionEnvironmentFamily.ts.html |here} to see how to use CreateFusionEnvironmentFamily API.
1594
+ */
1595
+ createFusionEnvironmentFamily(createFusionEnvironmentFamilyRequest) {
1596
+ return __awaiter(this, void 0, void 0, function* () {
1597
+ if (this.logger)
1598
+ this.logger.debug("Calling operation FusionEnvironmentFamilyClient#createFusionEnvironmentFamily.");
1599
+ const operationName = "createFusionEnvironmentFamily";
1600
+ const apiReferenceLink = "";
1601
+ const pathParams = {};
1602
+ const queryParams = {};
1603
+ let headerParams = {
1604
+ "Content-Type": common.Constants.APPLICATION_JSON,
1605
+ "opc-provision-option": createFusionEnvironmentFamilyRequest.opcProvisionOption,
1606
+ "opc-retry-token": createFusionEnvironmentFamilyRequest.opcRetryToken,
1607
+ "opc-request-id": createFusionEnvironmentFamilyRequest.opcRequestId
1608
+ };
1609
+ const specRetryConfiguration = common.NoRetryConfigurationDetails;
1610
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, createFusionEnvironmentFamilyRequest.retryConfiguration, specRetryConfiguration);
1611
+ if (this.logger)
1612
+ retrier.logger = this.logger;
1613
+ const request = yield oci_common_1.composeRequest({
1614
+ baseEndpoint: this._endpoint,
1615
+ defaultHeaders: this._defaultHeaders,
1616
+ path: "/fusionEnvironmentFamilies",
1617
+ method: "POST",
1618
+ bodyContent: common.ObjectSerializer.serialize(createFusionEnvironmentFamilyRequest.createFusionEnvironmentFamilyDetails, "CreateFusionEnvironmentFamilyDetails", model.CreateFusionEnvironmentFamilyDetails.getJsonObj),
1619
+ pathParams: pathParams,
1620
+ headerParams: headerParams,
1621
+ queryParams: queryParams
1622
+ });
1623
+ try {
1624
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
1625
+ const sdkResponse = oci_common_1.composeResponse({
1626
+ responseObject: {},
1627
+ responseHeaders: [
1628
+ {
1629
+ value: response.headers.get("opc-work-request-id"),
1630
+ key: "opcWorkRequestId",
1631
+ dataType: "string"
1632
+ },
1633
+ {
1634
+ value: response.headers.get("opc-request-id"),
1635
+ key: "opcRequestId",
1636
+ dataType: "string"
1637
+ }
1638
+ ]
1639
+ });
1640
+ return sdkResponse;
1641
+ }
1642
+ catch (err) {
1643
+ throw err;
1644
+ }
1645
+ });
1646
+ }
1647
+ /**
1648
+ * Deletes a FusionEnvironmentFamily resource by identifier
1649
+ * This operation does not retry by default if the user has not defined a retry configuration.
1650
+ * @param DeleteFusionEnvironmentFamilyRequest
1651
+ * @return DeleteFusionEnvironmentFamilyResponse
1652
+ * @throws OciError when an error occurs
1653
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.35.1/fusionapps/DeleteFusionEnvironmentFamily.ts.html |here} to see how to use DeleteFusionEnvironmentFamily API.
1654
+ */
1655
+ deleteFusionEnvironmentFamily(deleteFusionEnvironmentFamilyRequest) {
1656
+ return __awaiter(this, void 0, void 0, function* () {
1657
+ if (this.logger)
1658
+ this.logger.debug("Calling operation FusionEnvironmentFamilyClient#deleteFusionEnvironmentFamily.");
1659
+ const operationName = "deleteFusionEnvironmentFamily";
1660
+ const apiReferenceLink = "";
1661
+ const pathParams = {
1662
+ "{fusionEnvironmentFamilyId}": deleteFusionEnvironmentFamilyRequest.fusionEnvironmentFamilyId
1663
+ };
1664
+ const queryParams = {};
1665
+ let headerParams = {
1666
+ "Content-Type": common.Constants.APPLICATION_JSON,
1667
+ "if-match": deleteFusionEnvironmentFamilyRequest.ifMatch,
1668
+ "opc-request-id": deleteFusionEnvironmentFamilyRequest.opcRequestId
1669
+ };
1670
+ const specRetryConfiguration = common.NoRetryConfigurationDetails;
1671
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, deleteFusionEnvironmentFamilyRequest.retryConfiguration, specRetryConfiguration);
1672
+ if (this.logger)
1673
+ retrier.logger = this.logger;
1674
+ const request = yield oci_common_1.composeRequest({
1675
+ baseEndpoint: this._endpoint,
1676
+ defaultHeaders: this._defaultHeaders,
1677
+ path: "/fusionEnvironmentFamilies/{fusionEnvironmentFamilyId}",
1678
+ method: "DELETE",
1679
+ pathParams: pathParams,
1680
+ headerParams: headerParams,
1681
+ queryParams: queryParams
1682
+ });
1683
+ try {
1684
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
1685
+ const sdkResponse = oci_common_1.composeResponse({
1686
+ responseObject: {},
1687
+ responseHeaders: [
1688
+ {
1689
+ value: response.headers.get("opc-work-request-id"),
1690
+ key: "opcWorkRequestId",
1691
+ dataType: "string"
1692
+ },
1693
+ {
1694
+ value: response.headers.get("opc-request-id"),
1695
+ key: "opcRequestId",
1696
+ dataType: "string"
1697
+ }
1698
+ ]
1699
+ });
1700
+ return sdkResponse;
1701
+ }
1702
+ catch (err) {
1703
+ throw err;
1704
+ }
1705
+ });
1706
+ }
1707
+ /**
1708
+ * Retrieves a fusion environment family identified by its OCID.
1709
+ * This operation does not retry by default if the user has not defined a retry configuration.
1710
+ * @param GetFusionEnvironmentFamilyRequest
1711
+ * @return GetFusionEnvironmentFamilyResponse
1712
+ * @throws OciError when an error occurs
1713
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.35.1/fusionapps/GetFusionEnvironmentFamily.ts.html |here} to see how to use GetFusionEnvironmentFamily API.
1714
+ */
1715
+ getFusionEnvironmentFamily(getFusionEnvironmentFamilyRequest) {
1716
+ return __awaiter(this, void 0, void 0, function* () {
1717
+ if (this.logger)
1718
+ this.logger.debug("Calling operation FusionEnvironmentFamilyClient#getFusionEnvironmentFamily.");
1719
+ const operationName = "getFusionEnvironmentFamily";
1720
+ const apiReferenceLink = "";
1721
+ const pathParams = {
1722
+ "{fusionEnvironmentFamilyId}": getFusionEnvironmentFamilyRequest.fusionEnvironmentFamilyId
1723
+ };
1724
+ const queryParams = {};
1725
+ let headerParams = {
1726
+ "Content-Type": common.Constants.APPLICATION_JSON,
1727
+ "opc-request-id": getFusionEnvironmentFamilyRequest.opcRequestId
1728
+ };
1729
+ const specRetryConfiguration = common.NoRetryConfigurationDetails;
1730
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getFusionEnvironmentFamilyRequest.retryConfiguration, specRetryConfiguration);
1731
+ if (this.logger)
1732
+ retrier.logger = this.logger;
1733
+ const request = yield oci_common_1.composeRequest({
1734
+ baseEndpoint: this._endpoint,
1735
+ defaultHeaders: this._defaultHeaders,
1736
+ path: "/fusionEnvironmentFamilies/{fusionEnvironmentFamilyId}",
1737
+ method: "GET",
1738
+ pathParams: pathParams,
1739
+ headerParams: headerParams,
1740
+ queryParams: queryParams
1741
+ });
1742
+ try {
1743
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
1744
+ const sdkResponse = oci_common_1.composeResponse({
1745
+ responseObject: {},
1746
+ body: yield response.json(),
1747
+ bodyKey: "fusionEnvironmentFamily",
1748
+ bodyModel: model.FusionEnvironmentFamily,
1749
+ type: "model.FusionEnvironmentFamily",
1750
+ responseHeaders: [
1751
+ {
1752
+ value: response.headers.get("etag"),
1753
+ key: "etag",
1754
+ dataType: "string"
1755
+ },
1756
+ {
1757
+ value: response.headers.get("opc-request-id"),
1758
+ key: "opcRequestId",
1759
+ dataType: "string"
1760
+ }
1761
+ ]
1762
+ });
1763
+ return sdkResponse;
1764
+ }
1765
+ catch (err) {
1766
+ throw err;
1767
+ }
1768
+ });
1769
+ }
1770
+ /**
1771
+ * Gets the number of environments (usage) of each type in the fusion environment family, as well as the limit that's allowed to be created based on the group's associated subscriptions.
1772
+ * This operation does not retry by default if the user has not defined a retry configuration.
1773
+ * @param GetFusionEnvironmentFamilyLimitsAndUsageRequest
1774
+ * @return GetFusionEnvironmentFamilyLimitsAndUsageResponse
1775
+ * @throws OciError when an error occurs
1776
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.35.1/fusionapps/GetFusionEnvironmentFamilyLimitsAndUsage.ts.html |here} to see how to use GetFusionEnvironmentFamilyLimitsAndUsage API.
1777
+ */
1778
+ getFusionEnvironmentFamilyLimitsAndUsage(getFusionEnvironmentFamilyLimitsAndUsageRequest) {
1779
+ return __awaiter(this, void 0, void 0, function* () {
1780
+ if (this.logger)
1781
+ this.logger.debug("Calling operation FusionEnvironmentFamilyClient#getFusionEnvironmentFamilyLimitsAndUsage.");
1782
+ const operationName = "getFusionEnvironmentFamilyLimitsAndUsage";
1783
+ const apiReferenceLink = "";
1784
+ const pathParams = {
1785
+ "{fusionEnvironmentFamilyId}": getFusionEnvironmentFamilyLimitsAndUsageRequest.fusionEnvironmentFamilyId
1786
+ };
1787
+ const queryParams = {};
1788
+ let headerParams = {
1789
+ "Content-Type": common.Constants.APPLICATION_JSON,
1790
+ "opc-request-id": getFusionEnvironmentFamilyLimitsAndUsageRequest.opcRequestId
1791
+ };
1792
+ const specRetryConfiguration = common.NoRetryConfigurationDetails;
1793
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getFusionEnvironmentFamilyLimitsAndUsageRequest.retryConfiguration, specRetryConfiguration);
1794
+ if (this.logger)
1795
+ retrier.logger = this.logger;
1796
+ const request = yield oci_common_1.composeRequest({
1797
+ baseEndpoint: this._endpoint,
1798
+ defaultHeaders: this._defaultHeaders,
1799
+ path: "/fusionEnvironmentFamilies/{fusionEnvironmentFamilyId}/limitsAndUsage",
1800
+ method: "GET",
1801
+ pathParams: pathParams,
1802
+ headerParams: headerParams,
1803
+ queryParams: queryParams
1804
+ });
1805
+ try {
1806
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
1807
+ const sdkResponse = oci_common_1.composeResponse({
1808
+ responseObject: {},
1809
+ body: yield response.json(),
1810
+ bodyKey: "fusionEnvironmentFamilyLimitsAndUsage",
1811
+ bodyModel: model.FusionEnvironmentFamilyLimitsAndUsage,
1812
+ type: "model.FusionEnvironmentFamilyLimitsAndUsage",
1813
+ responseHeaders: [
1814
+ {
1815
+ value: response.headers.get("etag"),
1816
+ key: "etag",
1817
+ dataType: "string"
1818
+ },
1819
+ {
1820
+ value: response.headers.get("opc-request-id"),
1821
+ key: "opcRequestId",
1822
+ dataType: "string"
1823
+ }
1824
+ ]
1825
+ });
1826
+ return sdkResponse;
1827
+ }
1828
+ catch (err) {
1829
+ throw err;
1830
+ }
1831
+ });
1832
+ }
1833
+ /**
1834
+ * Gets the subscription details of an fusion environment family.
1835
+ * This operation does not retry by default if the user has not defined a retry configuration.
1836
+ * @param GetFusionEnvironmentFamilySubscriptionDetailRequest
1837
+ * @return GetFusionEnvironmentFamilySubscriptionDetailResponse
1838
+ * @throws OciError when an error occurs
1839
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.35.1/fusionapps/GetFusionEnvironmentFamilySubscriptionDetail.ts.html |here} to see how to use GetFusionEnvironmentFamilySubscriptionDetail API.
1840
+ */
1841
+ getFusionEnvironmentFamilySubscriptionDetail(getFusionEnvironmentFamilySubscriptionDetailRequest) {
1842
+ return __awaiter(this, void 0, void 0, function* () {
1843
+ if (this.logger)
1844
+ this.logger.debug("Calling operation FusionEnvironmentFamilyClient#getFusionEnvironmentFamilySubscriptionDetail.");
1845
+ const operationName = "getFusionEnvironmentFamilySubscriptionDetail";
1846
+ const apiReferenceLink = "";
1847
+ const pathParams = {
1848
+ "{fusionEnvironmentFamilyId}": getFusionEnvironmentFamilySubscriptionDetailRequest.fusionEnvironmentFamilyId
1849
+ };
1850
+ const queryParams = {};
1851
+ let headerParams = {
1852
+ "Content-Type": common.Constants.APPLICATION_JSON,
1853
+ "opc-request-id": getFusionEnvironmentFamilySubscriptionDetailRequest.opcRequestId
1854
+ };
1855
+ const specRetryConfiguration = common.NoRetryConfigurationDetails;
1856
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getFusionEnvironmentFamilySubscriptionDetailRequest.retryConfiguration, specRetryConfiguration);
1857
+ if (this.logger)
1858
+ retrier.logger = this.logger;
1859
+ const request = yield oci_common_1.composeRequest({
1860
+ baseEndpoint: this._endpoint,
1861
+ defaultHeaders: this._defaultHeaders,
1862
+ path: "/fusionEnvironmentFamilies/{fusionEnvironmentFamilyId}/subscriptionDetails",
1863
+ method: "GET",
1864
+ pathParams: pathParams,
1865
+ headerParams: headerParams,
1866
+ queryParams: queryParams
1867
+ });
1868
+ try {
1869
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
1870
+ const sdkResponse = oci_common_1.composeResponse({
1871
+ responseObject: {},
1872
+ body: yield response.json(),
1873
+ bodyKey: "subscriptionDetail",
1874
+ bodyModel: model.SubscriptionDetail,
1875
+ type: "model.SubscriptionDetail",
1876
+ responseHeaders: [
1877
+ {
1878
+ value: response.headers.get("etag"),
1879
+ key: "etag",
1880
+ dataType: "string"
1881
+ },
1882
+ {
1883
+ value: response.headers.get("opc-request-id"),
1884
+ key: "opcRequestId",
1885
+ dataType: "string"
1886
+ }
1887
+ ]
1888
+ });
1889
+ return sdkResponse;
1890
+ }
1891
+ catch (err) {
1892
+ throw err;
1893
+ }
1894
+ });
1895
+ }
1896
+ /**
1897
+ * Returns a list of FusionEnvironmentFamilies.
1898
+ *
1899
+ * This operation does not retry by default if the user has not defined a retry configuration.
1900
+ * @param ListFusionEnvironmentFamiliesRequest
1901
+ * @return ListFusionEnvironmentFamiliesResponse
1902
+ * @throws OciError when an error occurs
1903
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.35.1/fusionapps/ListFusionEnvironmentFamilies.ts.html |here} to see how to use ListFusionEnvironmentFamilies API.
1904
+ */
1905
+ listFusionEnvironmentFamilies(listFusionEnvironmentFamiliesRequest) {
1906
+ return __awaiter(this, void 0, void 0, function* () {
1907
+ if (this.logger)
1908
+ this.logger.debug("Calling operation FusionEnvironmentFamilyClient#listFusionEnvironmentFamilies.");
1909
+ const operationName = "listFusionEnvironmentFamilies";
1910
+ const apiReferenceLink = "";
1911
+ const pathParams = {};
1912
+ const queryParams = {
1913
+ "fusionEnvironmentFamilyId": listFusionEnvironmentFamiliesRequest.fusionEnvironmentFamilyId,
1914
+ "compartmentId": listFusionEnvironmentFamiliesRequest.compartmentId,
1915
+ "displayName": listFusionEnvironmentFamiliesRequest.displayName,
1916
+ "lifecycleState": listFusionEnvironmentFamiliesRequest.lifecycleState,
1917
+ "limit": listFusionEnvironmentFamiliesRequest.limit,
1918
+ "page": listFusionEnvironmentFamiliesRequest.page,
1919
+ "sortOrder": listFusionEnvironmentFamiliesRequest.sortOrder,
1920
+ "sortBy": listFusionEnvironmentFamiliesRequest.sortBy
1921
+ };
1922
+ let headerParams = {
1923
+ "Content-Type": common.Constants.APPLICATION_JSON,
1924
+ "opc-request-id": listFusionEnvironmentFamiliesRequest.opcRequestId
1925
+ };
1926
+ const specRetryConfiguration = common.NoRetryConfigurationDetails;
1927
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listFusionEnvironmentFamiliesRequest.retryConfiguration, specRetryConfiguration);
1928
+ if (this.logger)
1929
+ retrier.logger = this.logger;
1930
+ const request = yield oci_common_1.composeRequest({
1931
+ baseEndpoint: this._endpoint,
1932
+ defaultHeaders: this._defaultHeaders,
1933
+ path: "/fusionEnvironmentFamilies",
1934
+ method: "GET",
1935
+ pathParams: pathParams,
1936
+ headerParams: headerParams,
1937
+ queryParams: queryParams
1938
+ });
1939
+ try {
1940
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
1941
+ const sdkResponse = oci_common_1.composeResponse({
1942
+ responseObject: {},
1943
+ body: yield response.json(),
1944
+ bodyKey: "fusionEnvironmentFamilyCollection",
1945
+ bodyModel: model.FusionEnvironmentFamilyCollection,
1946
+ type: "model.FusionEnvironmentFamilyCollection",
1947
+ responseHeaders: [
1948
+ {
1949
+ value: response.headers.get("opc-request-id"),
1950
+ key: "opcRequestId",
1951
+ dataType: "string"
1952
+ },
1953
+ {
1954
+ value: response.headers.get("opc-next-page"),
1955
+ key: "opcNextPage",
1956
+ dataType: "string"
1957
+ }
1958
+ ]
1959
+ });
1960
+ return sdkResponse;
1961
+ }
1962
+ catch (err) {
1963
+ throw err;
1964
+ }
1965
+ });
1966
+ }
1967
+ /**
1968
+ * Updates the FusionEnvironmentFamily
1969
+ * This operation does not retry by default if the user has not defined a retry configuration.
1970
+ * @param UpdateFusionEnvironmentFamilyRequest
1971
+ * @return UpdateFusionEnvironmentFamilyResponse
1972
+ * @throws OciError when an error occurs
1973
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.35.1/fusionapps/UpdateFusionEnvironmentFamily.ts.html |here} to see how to use UpdateFusionEnvironmentFamily API.
1974
+ */
1975
+ updateFusionEnvironmentFamily(updateFusionEnvironmentFamilyRequest) {
1976
+ return __awaiter(this, void 0, void 0, function* () {
1977
+ if (this.logger)
1978
+ this.logger.debug("Calling operation FusionEnvironmentFamilyClient#updateFusionEnvironmentFamily.");
1979
+ const operationName = "updateFusionEnvironmentFamily";
1980
+ const apiReferenceLink = "";
1981
+ const pathParams = {
1982
+ "{fusionEnvironmentFamilyId}": updateFusionEnvironmentFamilyRequest.fusionEnvironmentFamilyId
1983
+ };
1984
+ const queryParams = {};
1985
+ let headerParams = {
1986
+ "Content-Type": common.Constants.APPLICATION_JSON,
1987
+ "if-match": updateFusionEnvironmentFamilyRequest.ifMatch,
1988
+ "opc-request-id": updateFusionEnvironmentFamilyRequest.opcRequestId
1989
+ };
1990
+ const specRetryConfiguration = common.NoRetryConfigurationDetails;
1991
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, updateFusionEnvironmentFamilyRequest.retryConfiguration, specRetryConfiguration);
1992
+ if (this.logger)
1993
+ retrier.logger = this.logger;
1994
+ const request = yield oci_common_1.composeRequest({
1995
+ baseEndpoint: this._endpoint,
1996
+ defaultHeaders: this._defaultHeaders,
1997
+ path: "/fusionEnvironmentFamilies/{fusionEnvironmentFamilyId}",
1998
+ method: "PUT",
1999
+ bodyContent: common.ObjectSerializer.serialize(updateFusionEnvironmentFamilyRequest.updateFusionEnvironmentFamilyDetails, "UpdateFusionEnvironmentFamilyDetails", model.UpdateFusionEnvironmentFamilyDetails.getJsonObj),
2000
+ pathParams: pathParams,
2001
+ headerParams: headerParams,
2002
+ queryParams: queryParams
2003
+ });
2004
+ try {
2005
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
2006
+ const sdkResponse = oci_common_1.composeResponse({
2007
+ responseObject: {},
2008
+ responseHeaders: [
2009
+ {
2010
+ value: response.headers.get("opc-work-request-id"),
2011
+ key: "opcWorkRequestId",
2012
+ dataType: "string"
2013
+ },
2014
+ {
2015
+ value: response.headers.get("opc-request-id"),
2016
+ key: "opcRequestId",
2017
+ dataType: "string"
2018
+ }
2019
+ ]
2020
+ });
2021
+ return sdkResponse;
2022
+ }
2023
+ catch (err) {
2024
+ throw err;
2025
+ }
2026
+ });
2027
+ }
2028
+ }
2029
+ exports.FusionEnvironmentFamilyClient = FusionEnvironmentFamilyClient;
2030
+ FusionEnvironmentFamilyClient.serviceEndpointTemplate = "https://fusionapps.{region}.oci.{secondLevelDomain}";
2031
+ FusionEnvironmentFamilyClient.endpointServiceName = "";
2032
+ var RefreshActivityApiKeys;
2033
+ (function (RefreshActivityApiKeys) {
2034
+ })(RefreshActivityApiKeys = exports.RefreshActivityApiKeys || (exports.RefreshActivityApiKeys = {}));
2035
+ /**
2036
+ * This service client uses {@link common.CircuitBreaker.DefaultConfiguration} for all the operations by default if no circuit breaker configuration is defined by the user.
2037
+ */
2038
+ class RefreshActivityClient {
2039
+ constructor(params, clientConfiguration) {
2040
+ this["_endpoint"] = "";
2041
+ this["_defaultHeaders"] = {};
2042
+ this._circuitBreaker = null;
2043
+ this._httpOptions = undefined;
2044
+ this.targetService = "RefreshActivity";
2045
+ const requestSigner = params.authenticationDetailsProvider
2046
+ ? new common.DefaultRequestSigner(params.authenticationDetailsProvider)
2047
+ : null;
2048
+ if (clientConfiguration) {
2049
+ this._clientConfiguration = clientConfiguration;
2050
+ this._circuitBreaker = clientConfiguration.circuitBreaker
2051
+ ? clientConfiguration.circuitBreaker.circuit
2052
+ : null;
2053
+ this._httpOptions = clientConfiguration.httpOptions
2054
+ ? clientConfiguration.httpOptions
2055
+ : undefined;
2056
+ }
2057
+ // if circuit breaker is not created, check if circuit breaker system is enabled to use default circuit breaker
2058
+ const specCircuitBreakerEnabled = true;
2059
+ if (!this._circuitBreaker &&
2060
+ common.utils.isCircuitBreakerSystemEnabled(clientConfiguration) &&
2061
+ (specCircuitBreakerEnabled || common.CircuitBreaker.DefaultCircuitBreakerOverriden)) {
2062
+ this._circuitBreaker = new common.CircuitBreaker().circuit;
2063
+ }
2064
+ this._httpClient =
2065
+ params.httpClient ||
2066
+ new common.FetchHttpClient(requestSigner, this._circuitBreaker, this._httpOptions);
2067
+ if (params.authenticationDetailsProvider &&
2068
+ common.isRegionProvider(params.authenticationDetailsProvider)) {
2069
+ const provider = params.authenticationDetailsProvider;
2070
+ if (provider.getRegion()) {
2071
+ this.region = provider.getRegion();
2072
+ }
2073
+ }
2074
+ }
2075
+ /**
2076
+ * Get the endpoint that is being used to call (ex, https://www.example.com).
2077
+ */
2078
+ get endpoint() {
2079
+ return this._endpoint;
2080
+ }
2081
+ /**
2082
+ * Sets the endpoint to call (ex, https://www.example.com).
2083
+ * @param endpoint The endpoint of the service.
2084
+ */
2085
+ set endpoint(endpoint) {
2086
+ this._endpoint = endpoint;
2087
+ this._endpoint = this._endpoint + "/20211201";
2088
+ if (this.logger)
2089
+ this.logger.info(`RefreshActivityClient endpoint set to ${this._endpoint}`);
2090
+ }
2091
+ get logger() {
2092
+ return common.LOG.logger;
2093
+ }
2094
+ /**
2095
+ * Sets the region to call (ex, Region.US_PHOENIX_1).
2096
+ * Note, this will call {@link #endpoint(String) endpoint} after resolving the endpoint.
2097
+ * @param region The region of the service.
2098
+ */
2099
+ set region(region) {
2100
+ this.endpoint = common.EndpointBuilder.createEndpointFromRegion(RefreshActivityClient.serviceEndpointTemplate, region, RefreshActivityClient.endpointServiceName);
2101
+ }
2102
+ /**
2103
+ * Sets the regionId to call (ex, 'us-phoenix-1').
2104
+ *
2105
+ * Note, this will first try to map the region ID to a known Region and call {@link #region(Region) region}.
2106
+ * If no known Region could be determined, it will create an endpoint assuming its in default Realm OC1
2107
+ * and then call {@link #endpoint(String) endpoint}.
2108
+ * @param regionId The public region ID.
2109
+ */
2110
+ set regionId(regionId) {
2111
+ this.endpoint = common.EndpointBuilder.createEndpointFromRegionId(RefreshActivityClient.serviceEndpointTemplate, regionId, RefreshActivityClient.endpointServiceName);
2112
+ }
2113
+ /**
2114
+ * Creates a new RefreshActivityWaiter for resources for this service.
2115
+ *
2116
+ * @param config The waiter configuration for termination and delay strategy
2117
+ * @return The service waiters.
2118
+ */
2119
+ createWaiters(config) {
2120
+ this._waiters = new refreshactivity_waiter_1.RefreshActivityWaiter(this, config);
2121
+ return this._waiters;
2122
+ }
2123
+ /**
2124
+ * Gets the waiters available for resources for this service.
2125
+ *
2126
+ * @return The service waiters.
2127
+ */
2128
+ getWaiters() {
2129
+ if (this._waiters) {
2130
+ return this._waiters;
2131
+ }
2132
+ throw Error("Waiters do not exist. Please create waiters.");
2133
+ }
2134
+ /**
2135
+ * Creates a new RefreshActivity.
2136
+ *
2137
+ * This operation does not retry by default if the user has not defined a retry configuration.
2138
+ * @param CreateRefreshActivityRequest
2139
+ * @return CreateRefreshActivityResponse
2140
+ * @throws OciError when an error occurs
2141
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.35.1/fusionapps/CreateRefreshActivity.ts.html |here} to see how to use CreateRefreshActivity API.
2142
+ */
2143
+ createRefreshActivity(createRefreshActivityRequest) {
2144
+ return __awaiter(this, void 0, void 0, function* () {
2145
+ if (this.logger)
2146
+ this.logger.debug("Calling operation RefreshActivityClient#createRefreshActivity.");
2147
+ const operationName = "createRefreshActivity";
2148
+ const apiReferenceLink = "";
2149
+ const pathParams = {
2150
+ "{fusionEnvironmentId}": createRefreshActivityRequest.fusionEnvironmentId
2151
+ };
2152
+ const queryParams = {};
2153
+ let headerParams = {
2154
+ "Content-Type": common.Constants.APPLICATION_JSON,
2155
+ "opc-retry-token": createRefreshActivityRequest.opcRetryToken,
2156
+ "opc-request-id": createRefreshActivityRequest.opcRequestId
2157
+ };
2158
+ const specRetryConfiguration = common.NoRetryConfigurationDetails;
2159
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, createRefreshActivityRequest.retryConfiguration, specRetryConfiguration);
2160
+ if (this.logger)
2161
+ retrier.logger = this.logger;
2162
+ const request = yield oci_common_1.composeRequest({
2163
+ baseEndpoint: this._endpoint,
2164
+ defaultHeaders: this._defaultHeaders,
2165
+ path: "/fusionEnvironments/{fusionEnvironmentId}/refreshActivities",
2166
+ method: "POST",
2167
+ bodyContent: common.ObjectSerializer.serialize(createRefreshActivityRequest.createRefreshActivityDetails, "CreateRefreshActivityDetails", model.CreateRefreshActivityDetails.getJsonObj),
2168
+ pathParams: pathParams,
2169
+ headerParams: headerParams,
2170
+ queryParams: queryParams
2171
+ });
2172
+ try {
2173
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
2174
+ const sdkResponse = oci_common_1.composeResponse({
2175
+ responseObject: {},
2176
+ responseHeaders: [
2177
+ {
2178
+ value: response.headers.get("opc-work-request-id"),
2179
+ key: "opcWorkRequestId",
2180
+ dataType: "string"
2181
+ },
2182
+ {
2183
+ value: response.headers.get("opc-request-id"),
2184
+ key: "opcRequestId",
2185
+ dataType: "string"
2186
+ }
2187
+ ]
2188
+ });
2189
+ return sdkResponse;
2190
+ }
2191
+ catch (err) {
2192
+ throw err;
2193
+ }
2194
+ });
2195
+ }
2196
+ /**
2197
+ * Gets a RefreshActivity by identifier
2198
+ * This operation does not retry by default if the user has not defined a retry configuration.
2199
+ * @param GetRefreshActivityRequest
2200
+ * @return GetRefreshActivityResponse
2201
+ * @throws OciError when an error occurs
2202
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.35.1/fusionapps/GetRefreshActivity.ts.html |here} to see how to use GetRefreshActivity API.
2203
+ */
2204
+ getRefreshActivity(getRefreshActivityRequest) {
2205
+ return __awaiter(this, void 0, void 0, function* () {
2206
+ if (this.logger)
2207
+ this.logger.debug("Calling operation RefreshActivityClient#getRefreshActivity.");
2208
+ const operationName = "getRefreshActivity";
2209
+ const apiReferenceLink = "";
2210
+ const pathParams = {
2211
+ "{fusionEnvironmentId}": getRefreshActivityRequest.fusionEnvironmentId,
2212
+ "{refreshActivityId}": getRefreshActivityRequest.refreshActivityId
2213
+ };
2214
+ const queryParams = {};
2215
+ let headerParams = {
2216
+ "Content-Type": common.Constants.APPLICATION_JSON,
2217
+ "opc-request-id": getRefreshActivityRequest.opcRequestId
2218
+ };
2219
+ const specRetryConfiguration = common.NoRetryConfigurationDetails;
2220
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getRefreshActivityRequest.retryConfiguration, specRetryConfiguration);
2221
+ if (this.logger)
2222
+ retrier.logger = this.logger;
2223
+ const request = yield oci_common_1.composeRequest({
2224
+ baseEndpoint: this._endpoint,
2225
+ defaultHeaders: this._defaultHeaders,
2226
+ path: "/fusionEnvironments/{fusionEnvironmentId}/refreshActivities/{refreshActivityId}",
2227
+ method: "GET",
2228
+ pathParams: pathParams,
2229
+ headerParams: headerParams,
2230
+ queryParams: queryParams
2231
+ });
2232
+ try {
2233
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
2234
+ const sdkResponse = oci_common_1.composeResponse({
2235
+ responseObject: {},
2236
+ body: yield response.json(),
2237
+ bodyKey: "refreshActivity",
2238
+ bodyModel: model.RefreshActivity,
2239
+ type: "model.RefreshActivity",
2240
+ responseHeaders: [
2241
+ {
2242
+ value: response.headers.get("etag"),
2243
+ key: "etag",
2244
+ dataType: "string"
2245
+ },
2246
+ {
2247
+ value: response.headers.get("opc-request-id"),
2248
+ key: "opcRequestId",
2249
+ dataType: "string"
2250
+ }
2251
+ ]
2252
+ });
2253
+ return sdkResponse;
2254
+ }
2255
+ catch (err) {
2256
+ throw err;
2257
+ }
2258
+ });
2259
+ }
2260
+ /**
2261
+ * Returns a list of RefreshActivities.
2262
+ *
2263
+ * This operation does not retry by default if the user has not defined a retry configuration.
2264
+ * @param ListRefreshActivitiesRequest
2265
+ * @return ListRefreshActivitiesResponse
2266
+ * @throws OciError when an error occurs
2267
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.35.1/fusionapps/ListRefreshActivities.ts.html |here} to see how to use ListRefreshActivities API.
2268
+ */
2269
+ listRefreshActivities(listRefreshActivitiesRequest) {
2270
+ return __awaiter(this, void 0, void 0, function* () {
2271
+ if (this.logger)
2272
+ this.logger.debug("Calling operation RefreshActivityClient#listRefreshActivities.");
2273
+ const operationName = "listRefreshActivities";
2274
+ const apiReferenceLink = "";
2275
+ const pathParams = {
2276
+ "{fusionEnvironmentId}": listRefreshActivitiesRequest.fusionEnvironmentId
2277
+ };
2278
+ const queryParams = {
2279
+ "displayName": listRefreshActivitiesRequest.displayName,
2280
+ "timeScheduledStartGreaterThanOrEqualTo": listRefreshActivitiesRequest.timeScheduledStartGreaterThanOrEqualTo,
2281
+ "timeExpectedFinishLessThanOrEqualTo": listRefreshActivitiesRequest.timeExpectedFinishLessThanOrEqualTo,
2282
+ "lifecycleState": listRefreshActivitiesRequest.lifecycleState,
2283
+ "limit": listRefreshActivitiesRequest.limit,
2284
+ "page": listRefreshActivitiesRequest.page,
2285
+ "sortOrder": listRefreshActivitiesRequest.sortOrder,
2286
+ "sortBy": listRefreshActivitiesRequest.sortBy
2287
+ };
2288
+ let headerParams = {
2289
+ "Content-Type": common.Constants.APPLICATION_JSON,
2290
+ "opc-request-id": listRefreshActivitiesRequest.opcRequestId
2291
+ };
2292
+ const specRetryConfiguration = common.NoRetryConfigurationDetails;
2293
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listRefreshActivitiesRequest.retryConfiguration, specRetryConfiguration);
2294
+ if (this.logger)
2295
+ retrier.logger = this.logger;
2296
+ const request = yield oci_common_1.composeRequest({
2297
+ baseEndpoint: this._endpoint,
2298
+ defaultHeaders: this._defaultHeaders,
2299
+ path: "/fusionEnvironments/{fusionEnvironmentId}/refreshActivities",
2300
+ method: "GET",
2301
+ pathParams: pathParams,
2302
+ headerParams: headerParams,
2303
+ queryParams: queryParams
2304
+ });
2305
+ try {
2306
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
2307
+ const sdkResponse = oci_common_1.composeResponse({
2308
+ responseObject: {},
2309
+ body: yield response.json(),
2310
+ bodyKey: "refreshActivityCollection",
2311
+ bodyModel: model.RefreshActivityCollection,
2312
+ type: "model.RefreshActivityCollection",
2313
+ responseHeaders: [
2314
+ {
2315
+ value: response.headers.get("opc-request-id"),
2316
+ key: "opcRequestId",
2317
+ dataType: "string"
2318
+ },
2319
+ {
2320
+ value: response.headers.get("opc-next-page"),
2321
+ key: "opcNextPage",
2322
+ dataType: "string"
2323
+ }
2324
+ ]
2325
+ });
2326
+ return sdkResponse;
2327
+ }
2328
+ catch (err) {
2329
+ throw err;
2330
+ }
2331
+ });
2332
+ }
2333
+ /**
2334
+ * Gets available refresh time for this fusion environment
2335
+ * This operation does not retry by default if the user has not defined a retry configuration.
2336
+ * @param ListTimeAvailableForRefreshesRequest
2337
+ * @return ListTimeAvailableForRefreshesResponse
2338
+ * @throws OciError when an error occurs
2339
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.35.1/fusionapps/ListTimeAvailableForRefreshes.ts.html |here} to see how to use ListTimeAvailableForRefreshes API.
2340
+ */
2341
+ listTimeAvailableForRefreshes(listTimeAvailableForRefreshesRequest) {
2342
+ return __awaiter(this, void 0, void 0, function* () {
2343
+ if (this.logger)
2344
+ this.logger.debug("Calling operation RefreshActivityClient#listTimeAvailableForRefreshes.");
2345
+ const operationName = "listTimeAvailableForRefreshes";
2346
+ const apiReferenceLink = "";
2347
+ const pathParams = {
2348
+ "{fusionEnvironmentId}": listTimeAvailableForRefreshesRequest.fusionEnvironmentId
2349
+ };
2350
+ const queryParams = {
2351
+ "limit": listTimeAvailableForRefreshesRequest.limit,
2352
+ "page": listTimeAvailableForRefreshesRequest.page,
2353
+ "sortOrder": listTimeAvailableForRefreshesRequest.sortOrder,
2354
+ "sortBy": listTimeAvailableForRefreshesRequest.sortBy
2355
+ };
2356
+ let headerParams = {
2357
+ "Content-Type": common.Constants.APPLICATION_JSON,
2358
+ "opc-request-id": listTimeAvailableForRefreshesRequest.opcRequestId
2359
+ };
2360
+ const specRetryConfiguration = common.NoRetryConfigurationDetails;
2361
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listTimeAvailableForRefreshesRequest.retryConfiguration, specRetryConfiguration);
2362
+ if (this.logger)
2363
+ retrier.logger = this.logger;
2364
+ const request = yield oci_common_1.composeRequest({
2365
+ baseEndpoint: this._endpoint,
2366
+ defaultHeaders: this._defaultHeaders,
2367
+ path: "/fusionEnvironments/{fusionEnvironmentId}/timeAvailableForRefresh",
2368
+ method: "GET",
2369
+ pathParams: pathParams,
2370
+ headerParams: headerParams,
2371
+ queryParams: queryParams
2372
+ });
2373
+ try {
2374
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
2375
+ const sdkResponse = oci_common_1.composeResponse({
2376
+ responseObject: {},
2377
+ body: yield response.json(),
2378
+ bodyKey: "timeAvailableForRefreshCollection",
2379
+ bodyModel: model.TimeAvailableForRefreshCollection,
2380
+ type: "model.TimeAvailableForRefreshCollection",
2381
+ responseHeaders: [
2382
+ {
2383
+ value: response.headers.get("opc-request-id"),
2384
+ key: "opcRequestId",
2385
+ dataType: "string"
2386
+ },
2387
+ {
2388
+ value: response.headers.get("opc-next-page"),
2389
+ key: "opcNextPage",
2390
+ dataType: "string"
2391
+ }
2392
+ ]
2393
+ });
2394
+ return sdkResponse;
2395
+ }
2396
+ catch (err) {
2397
+ throw err;
2398
+ }
2399
+ });
2400
+ }
2401
+ }
2402
+ exports.RefreshActivityClient = RefreshActivityClient;
2403
+ RefreshActivityClient.serviceEndpointTemplate = "https://fusionapps.{region}.oci.{secondLevelDomain}";
2404
+ RefreshActivityClient.endpointServiceName = "";
2405
+ var ScheduledActivityApiKeys;
2406
+ (function (ScheduledActivityApiKeys) {
2407
+ })(ScheduledActivityApiKeys = exports.ScheduledActivityApiKeys || (exports.ScheduledActivityApiKeys = {}));
2408
+ /**
2409
+ * This service client uses {@link common.CircuitBreaker.DefaultConfiguration} for all the operations by default if no circuit breaker configuration is defined by the user.
2410
+ */
2411
+ class ScheduledActivityClient {
2412
+ constructor(params, clientConfiguration) {
2413
+ this["_endpoint"] = "";
2414
+ this["_defaultHeaders"] = {};
2415
+ this._circuitBreaker = null;
2416
+ this._httpOptions = undefined;
2417
+ this.targetService = "ScheduledActivity";
2418
+ const requestSigner = params.authenticationDetailsProvider
2419
+ ? new common.DefaultRequestSigner(params.authenticationDetailsProvider)
2420
+ : null;
2421
+ if (clientConfiguration) {
2422
+ this._clientConfiguration = clientConfiguration;
2423
+ this._circuitBreaker = clientConfiguration.circuitBreaker
2424
+ ? clientConfiguration.circuitBreaker.circuit
2425
+ : null;
2426
+ this._httpOptions = clientConfiguration.httpOptions
2427
+ ? clientConfiguration.httpOptions
2428
+ : undefined;
2429
+ }
2430
+ // if circuit breaker is not created, check if circuit breaker system is enabled to use default circuit breaker
2431
+ const specCircuitBreakerEnabled = true;
2432
+ if (!this._circuitBreaker &&
2433
+ common.utils.isCircuitBreakerSystemEnabled(clientConfiguration) &&
2434
+ (specCircuitBreakerEnabled || common.CircuitBreaker.DefaultCircuitBreakerOverriden)) {
2435
+ this._circuitBreaker = new common.CircuitBreaker().circuit;
2436
+ }
2437
+ this._httpClient =
2438
+ params.httpClient ||
2439
+ new common.FetchHttpClient(requestSigner, this._circuitBreaker, this._httpOptions);
2440
+ if (params.authenticationDetailsProvider &&
2441
+ common.isRegionProvider(params.authenticationDetailsProvider)) {
2442
+ const provider = params.authenticationDetailsProvider;
2443
+ if (provider.getRegion()) {
2444
+ this.region = provider.getRegion();
2445
+ }
2446
+ }
2447
+ }
2448
+ /**
2449
+ * Get the endpoint that is being used to call (ex, https://www.example.com).
2450
+ */
2451
+ get endpoint() {
2452
+ return this._endpoint;
2453
+ }
2454
+ /**
2455
+ * Sets the endpoint to call (ex, https://www.example.com).
2456
+ * @param endpoint The endpoint of the service.
2457
+ */
2458
+ set endpoint(endpoint) {
2459
+ this._endpoint = endpoint;
2460
+ this._endpoint = this._endpoint + "/20211201";
2461
+ if (this.logger)
2462
+ this.logger.info(`ScheduledActivityClient endpoint set to ${this._endpoint}`);
2463
+ }
2464
+ get logger() {
2465
+ return common.LOG.logger;
2466
+ }
2467
+ /**
2468
+ * Sets the region to call (ex, Region.US_PHOENIX_1).
2469
+ * Note, this will call {@link #endpoint(String) endpoint} after resolving the endpoint.
2470
+ * @param region The region of the service.
2471
+ */
2472
+ set region(region) {
2473
+ this.endpoint = common.EndpointBuilder.createEndpointFromRegion(ScheduledActivityClient.serviceEndpointTemplate, region, ScheduledActivityClient.endpointServiceName);
2474
+ }
2475
+ /**
2476
+ * Sets the regionId to call (ex, 'us-phoenix-1').
2477
+ *
2478
+ * Note, this will first try to map the region ID to a known Region and call {@link #region(Region) region}.
2479
+ * If no known Region could be determined, it will create an endpoint assuming its in default Realm OC1
2480
+ * and then call {@link #endpoint(String) endpoint}.
2481
+ * @param regionId The public region ID.
2482
+ */
2483
+ set regionId(regionId) {
2484
+ this.endpoint = common.EndpointBuilder.createEndpointFromRegionId(ScheduledActivityClient.serviceEndpointTemplate, regionId, ScheduledActivityClient.endpointServiceName);
2485
+ }
2486
+ /**
2487
+ * Creates a new ScheduledActivityWaiter for resources for this service.
2488
+ *
2489
+ * @param config The waiter configuration for termination and delay strategy
2490
+ * @return The service waiters.
2491
+ */
2492
+ createWaiters(config) {
2493
+ this._waiters = new scheduledactivity_waiter_1.ScheduledActivityWaiter(this, config);
2494
+ return this._waiters;
2495
+ }
2496
+ /**
2497
+ * Gets the waiters available for resources for this service.
2498
+ *
2499
+ * @return The service waiters.
2500
+ */
2501
+ getWaiters() {
2502
+ if (this._waiters) {
2503
+ return this._waiters;
2504
+ }
2505
+ throw Error("Waiters do not exist. Please create waiters.");
2506
+ }
2507
+ /**
2508
+ * Gets a ScheduledActivity by identifier
2509
+ * This operation does not retry by default if the user has not defined a retry configuration.
2510
+ * @param GetScheduledActivityRequest
2511
+ * @return GetScheduledActivityResponse
2512
+ * @throws OciError when an error occurs
2513
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.35.1/fusionapps/GetScheduledActivity.ts.html |here} to see how to use GetScheduledActivity API.
2514
+ */
2515
+ getScheduledActivity(getScheduledActivityRequest) {
2516
+ return __awaiter(this, void 0, void 0, function* () {
2517
+ if (this.logger)
2518
+ this.logger.debug("Calling operation ScheduledActivityClient#getScheduledActivity.");
2519
+ const operationName = "getScheduledActivity";
2520
+ const apiReferenceLink = "";
2521
+ const pathParams = {
2522
+ "{fusionEnvironmentId}": getScheduledActivityRequest.fusionEnvironmentId,
2523
+ "{scheduledActivityId}": getScheduledActivityRequest.scheduledActivityId
2524
+ };
2525
+ const queryParams = {};
2526
+ let headerParams = {
2527
+ "Content-Type": common.Constants.APPLICATION_JSON,
2528
+ "opc-request-id": getScheduledActivityRequest.opcRequestId
2529
+ };
2530
+ const specRetryConfiguration = common.NoRetryConfigurationDetails;
2531
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getScheduledActivityRequest.retryConfiguration, specRetryConfiguration);
2532
+ if (this.logger)
2533
+ retrier.logger = this.logger;
2534
+ const request = yield oci_common_1.composeRequest({
2535
+ baseEndpoint: this._endpoint,
2536
+ defaultHeaders: this._defaultHeaders,
2537
+ path: "/fusionEnvironments/{fusionEnvironmentId}/scheduledActivities/{scheduledActivityId}",
2538
+ method: "GET",
2539
+ pathParams: pathParams,
2540
+ headerParams: headerParams,
2541
+ queryParams: queryParams
2542
+ });
2543
+ try {
2544
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
2545
+ const sdkResponse = oci_common_1.composeResponse({
2546
+ responseObject: {},
2547
+ body: yield response.json(),
2548
+ bodyKey: "scheduledActivity",
2549
+ bodyModel: model.ScheduledActivity,
2550
+ type: "model.ScheduledActivity",
2551
+ responseHeaders: [
2552
+ {
2553
+ value: response.headers.get("etag"),
2554
+ key: "etag",
2555
+ dataType: "string"
2556
+ },
2557
+ {
2558
+ value: response.headers.get("opc-request-id"),
2559
+ key: "opcRequestId",
2560
+ dataType: "string"
2561
+ }
2562
+ ]
2563
+ });
2564
+ return sdkResponse;
2565
+ }
2566
+ catch (err) {
2567
+ throw err;
2568
+ }
2569
+ });
2570
+ }
2571
+ /**
2572
+ * Returns a list of ScheduledActivities.
2573
+ *
2574
+ * This operation does not retry by default if the user has not defined a retry configuration.
2575
+ * @param ListScheduledActivitiesRequest
2576
+ * @return ListScheduledActivitiesResponse
2577
+ * @throws OciError when an error occurs
2578
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.35.1/fusionapps/ListScheduledActivities.ts.html |here} to see how to use ListScheduledActivities API.
2579
+ */
2580
+ listScheduledActivities(listScheduledActivitiesRequest) {
2581
+ return __awaiter(this, void 0, void 0, function* () {
2582
+ if (this.logger)
2583
+ this.logger.debug("Calling operation ScheduledActivityClient#listScheduledActivities.");
2584
+ const operationName = "listScheduledActivities";
2585
+ const apiReferenceLink = "";
2586
+ const pathParams = {
2587
+ "{fusionEnvironmentId}": listScheduledActivitiesRequest.fusionEnvironmentId
2588
+ };
2589
+ const queryParams = {
2590
+ "displayName": listScheduledActivitiesRequest.displayName,
2591
+ "timeScheduledStartGreaterThanOrEqualTo": listScheduledActivitiesRequest.timeScheduledStartGreaterThanOrEqualTo,
2592
+ "timeExpectedFinishLessThanOrEqualTo": listScheduledActivitiesRequest.timeExpectedFinishLessThanOrEqualTo,
2593
+ "runCycle": listScheduledActivitiesRequest.runCycle,
2594
+ "lifecycleState": listScheduledActivitiesRequest.lifecycleState,
2595
+ "limit": listScheduledActivitiesRequest.limit,
2596
+ "page": listScheduledActivitiesRequest.page,
2597
+ "sortOrder": listScheduledActivitiesRequest.sortOrder,
2598
+ "sortBy": listScheduledActivitiesRequest.sortBy
2599
+ };
2600
+ let headerParams = {
2601
+ "Content-Type": common.Constants.APPLICATION_JSON,
2602
+ "opc-request-id": listScheduledActivitiesRequest.opcRequestId
2603
+ };
2604
+ const specRetryConfiguration = common.NoRetryConfigurationDetails;
2605
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listScheduledActivitiesRequest.retryConfiguration, specRetryConfiguration);
2606
+ if (this.logger)
2607
+ retrier.logger = this.logger;
2608
+ const request = yield oci_common_1.composeRequest({
2609
+ baseEndpoint: this._endpoint,
2610
+ defaultHeaders: this._defaultHeaders,
2611
+ path: "/fusionEnvironments/{fusionEnvironmentId}/scheduledActivities",
2612
+ method: "GET",
2613
+ pathParams: pathParams,
2614
+ headerParams: headerParams,
2615
+ queryParams: queryParams
2616
+ });
2617
+ try {
2618
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
2619
+ const sdkResponse = oci_common_1.composeResponse({
2620
+ responseObject: {},
2621
+ body: yield response.json(),
2622
+ bodyKey: "scheduledActivityCollection",
2623
+ bodyModel: model.ScheduledActivityCollection,
2624
+ type: "model.ScheduledActivityCollection",
2625
+ responseHeaders: [
2626
+ {
2627
+ value: response.headers.get("opc-request-id"),
2628
+ key: "opcRequestId",
2629
+ dataType: "string"
2630
+ },
2631
+ {
2632
+ value: response.headers.get("opc-next-page"),
2633
+ key: "opcNextPage",
2634
+ dataType: "string"
2635
+ }
2636
+ ]
2637
+ });
2638
+ return sdkResponse;
2639
+ }
2640
+ catch (err) {
2641
+ throw err;
2642
+ }
2643
+ });
2644
+ }
2645
+ }
2646
+ exports.ScheduledActivityClient = ScheduledActivityClient;
2647
+ ScheduledActivityClient.serviceEndpointTemplate = "https://fusionapps.{region}.oci.{secondLevelDomain}";
2648
+ ScheduledActivityClient.endpointServiceName = "";
2649
+ var ServiceAttachmentApiKeys;
2650
+ (function (ServiceAttachmentApiKeys) {
2651
+ })(ServiceAttachmentApiKeys = exports.ServiceAttachmentApiKeys || (exports.ServiceAttachmentApiKeys = {}));
2652
+ /**
2653
+ * This service client uses {@link common.CircuitBreaker.DefaultConfiguration} for all the operations by default if no circuit breaker configuration is defined by the user.
2654
+ */
2655
+ class ServiceAttachmentClient {
2656
+ constructor(params, clientConfiguration) {
2657
+ this["_endpoint"] = "";
2658
+ this["_defaultHeaders"] = {};
2659
+ this._circuitBreaker = null;
2660
+ this._httpOptions = undefined;
2661
+ this.targetService = "ServiceAttachment";
2662
+ const requestSigner = params.authenticationDetailsProvider
2663
+ ? new common.DefaultRequestSigner(params.authenticationDetailsProvider)
2664
+ : null;
2665
+ if (clientConfiguration) {
2666
+ this._clientConfiguration = clientConfiguration;
2667
+ this._circuitBreaker = clientConfiguration.circuitBreaker
2668
+ ? clientConfiguration.circuitBreaker.circuit
2669
+ : null;
2670
+ this._httpOptions = clientConfiguration.httpOptions
2671
+ ? clientConfiguration.httpOptions
2672
+ : undefined;
2673
+ }
2674
+ // if circuit breaker is not created, check if circuit breaker system is enabled to use default circuit breaker
2675
+ const specCircuitBreakerEnabled = true;
2676
+ if (!this._circuitBreaker &&
2677
+ common.utils.isCircuitBreakerSystemEnabled(clientConfiguration) &&
2678
+ (specCircuitBreakerEnabled || common.CircuitBreaker.DefaultCircuitBreakerOverriden)) {
2679
+ this._circuitBreaker = new common.CircuitBreaker().circuit;
2680
+ }
2681
+ this._httpClient =
2682
+ params.httpClient ||
2683
+ new common.FetchHttpClient(requestSigner, this._circuitBreaker, this._httpOptions);
2684
+ if (params.authenticationDetailsProvider &&
2685
+ common.isRegionProvider(params.authenticationDetailsProvider)) {
2686
+ const provider = params.authenticationDetailsProvider;
2687
+ if (provider.getRegion()) {
2688
+ this.region = provider.getRegion();
2689
+ }
2690
+ }
2691
+ }
2692
+ /**
2693
+ * Get the endpoint that is being used to call (ex, https://www.example.com).
2694
+ */
2695
+ get endpoint() {
2696
+ return this._endpoint;
2697
+ }
2698
+ /**
2699
+ * Sets the endpoint to call (ex, https://www.example.com).
2700
+ * @param endpoint The endpoint of the service.
2701
+ */
2702
+ set endpoint(endpoint) {
2703
+ this._endpoint = endpoint;
2704
+ this._endpoint = this._endpoint + "/20211201";
2705
+ if (this.logger)
2706
+ this.logger.info(`ServiceAttachmentClient endpoint set to ${this._endpoint}`);
2707
+ }
2708
+ get logger() {
2709
+ return common.LOG.logger;
2710
+ }
2711
+ /**
2712
+ * Sets the region to call (ex, Region.US_PHOENIX_1).
2713
+ * Note, this will call {@link #endpoint(String) endpoint} after resolving the endpoint.
2714
+ * @param region The region of the service.
2715
+ */
2716
+ set region(region) {
2717
+ this.endpoint = common.EndpointBuilder.createEndpointFromRegion(ServiceAttachmentClient.serviceEndpointTemplate, region, ServiceAttachmentClient.endpointServiceName);
2718
+ }
2719
+ /**
2720
+ * Sets the regionId to call (ex, 'us-phoenix-1').
2721
+ *
2722
+ * Note, this will first try to map the region ID to a known Region and call {@link #region(Region) region}.
2723
+ * If no known Region could be determined, it will create an endpoint assuming its in default Realm OC1
2724
+ * and then call {@link #endpoint(String) endpoint}.
2725
+ * @param regionId The public region ID.
2726
+ */
2727
+ set regionId(regionId) {
2728
+ this.endpoint = common.EndpointBuilder.createEndpointFromRegionId(ServiceAttachmentClient.serviceEndpointTemplate, regionId, ServiceAttachmentClient.endpointServiceName);
2729
+ }
2730
+ /**
2731
+ * Creates a new ServiceAttachmentWaiter for resources for this service.
2732
+ *
2733
+ * @param config The waiter configuration for termination and delay strategy
2734
+ * @return The service waiters.
2735
+ */
2736
+ createWaiters(config) {
2737
+ this._waiters = new serviceattachment_waiter_1.ServiceAttachmentWaiter(this, config);
2738
+ return this._waiters;
2739
+ }
2740
+ /**
2741
+ * Gets the waiters available for resources for this service.
2742
+ *
2743
+ * @return The service waiters.
2744
+ */
2745
+ getWaiters() {
2746
+ if (this._waiters) {
2747
+ return this._waiters;
2748
+ }
2749
+ throw Error("Waiters do not exist. Please create waiters.");
2750
+ }
2751
+ /**
2752
+ * Gets a Service Attachment by identifier
2753
+ * This operation does not retry by default if the user has not defined a retry configuration.
2754
+ * @param GetServiceAttachmentRequest
2755
+ * @return GetServiceAttachmentResponse
2756
+ * @throws OciError when an error occurs
2757
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.35.1/fusionapps/GetServiceAttachment.ts.html |here} to see how to use GetServiceAttachment API.
2758
+ */
2759
+ getServiceAttachment(getServiceAttachmentRequest) {
2760
+ return __awaiter(this, void 0, void 0, function* () {
2761
+ if (this.logger)
2762
+ this.logger.debug("Calling operation ServiceAttachmentClient#getServiceAttachment.");
2763
+ const operationName = "getServiceAttachment";
2764
+ const apiReferenceLink = "";
2765
+ const pathParams = {
2766
+ "{fusionEnvironmentId}": getServiceAttachmentRequest.fusionEnvironmentId,
2767
+ "{serviceAttachmentId}": getServiceAttachmentRequest.serviceAttachmentId
2768
+ };
2769
+ const queryParams = {};
2770
+ let headerParams = {
2771
+ "Content-Type": common.Constants.APPLICATION_JSON,
2772
+ "opc-request-id": getServiceAttachmentRequest.opcRequestId
2773
+ };
2774
+ const specRetryConfiguration = common.NoRetryConfigurationDetails;
2775
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getServiceAttachmentRequest.retryConfiguration, specRetryConfiguration);
2776
+ if (this.logger)
2777
+ retrier.logger = this.logger;
2778
+ const request = yield oci_common_1.composeRequest({
2779
+ baseEndpoint: this._endpoint,
2780
+ defaultHeaders: this._defaultHeaders,
2781
+ path: "/fusionEnvironments/{fusionEnvironmentId}/serviceAttachments/{serviceAttachmentId}",
2782
+ method: "GET",
2783
+ pathParams: pathParams,
2784
+ headerParams: headerParams,
2785
+ queryParams: queryParams
2786
+ });
2787
+ try {
2788
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
2789
+ const sdkResponse = oci_common_1.composeResponse({
2790
+ responseObject: {},
2791
+ body: yield response.json(),
2792
+ bodyKey: "serviceAttachment",
2793
+ bodyModel: model.ServiceAttachment,
2794
+ type: "model.ServiceAttachment",
2795
+ responseHeaders: [
2796
+ {
2797
+ value: response.headers.get("etag"),
2798
+ key: "etag",
2799
+ dataType: "string"
2800
+ },
2801
+ {
2802
+ value: response.headers.get("opc-request-id"),
2803
+ key: "opcRequestId",
2804
+ dataType: "string"
2805
+ }
2806
+ ]
2807
+ });
2808
+ return sdkResponse;
2809
+ }
2810
+ catch (err) {
2811
+ throw err;
2812
+ }
2813
+ });
2814
+ }
2815
+ /**
2816
+ * Returns a list of service attachments.
2817
+ *
2818
+ * This operation does not retry by default if the user has not defined a retry configuration.
2819
+ * @param ListServiceAttachmentsRequest
2820
+ * @return ListServiceAttachmentsResponse
2821
+ * @throws OciError when an error occurs
2822
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.35.1/fusionapps/ListServiceAttachments.ts.html |here} to see how to use ListServiceAttachments API.
2823
+ */
2824
+ listServiceAttachments(listServiceAttachmentsRequest) {
2825
+ return __awaiter(this, void 0, void 0, function* () {
2826
+ if (this.logger)
2827
+ this.logger.debug("Calling operation ServiceAttachmentClient#listServiceAttachments.");
2828
+ const operationName = "listServiceAttachments";
2829
+ const apiReferenceLink = "";
2830
+ const pathParams = {
2831
+ "{fusionEnvironmentId}": listServiceAttachmentsRequest.fusionEnvironmentId
2832
+ };
2833
+ const queryParams = {
2834
+ "displayName": listServiceAttachmentsRequest.displayName,
2835
+ "lifecycleState": listServiceAttachmentsRequest.lifecycleState,
2836
+ "serviceInstanceType": listServiceAttachmentsRequest.serviceInstanceType,
2837
+ "limit": listServiceAttachmentsRequest.limit,
2838
+ "page": listServiceAttachmentsRequest.page,
2839
+ "sortOrder": listServiceAttachmentsRequest.sortOrder,
2840
+ "sortBy": listServiceAttachmentsRequest.sortBy
2841
+ };
2842
+ let headerParams = {
2843
+ "Content-Type": common.Constants.APPLICATION_JSON,
2844
+ "opc-request-id": listServiceAttachmentsRequest.opcRequestId
2845
+ };
2846
+ const specRetryConfiguration = common.NoRetryConfigurationDetails;
2847
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listServiceAttachmentsRequest.retryConfiguration, specRetryConfiguration);
2848
+ if (this.logger)
2849
+ retrier.logger = this.logger;
2850
+ const request = yield oci_common_1.composeRequest({
2851
+ baseEndpoint: this._endpoint,
2852
+ defaultHeaders: this._defaultHeaders,
2853
+ path: "/fusionEnvironments/{fusionEnvironmentId}/serviceAttachments",
2854
+ method: "GET",
2855
+ pathParams: pathParams,
2856
+ headerParams: headerParams,
2857
+ queryParams: queryParams
2858
+ });
2859
+ try {
2860
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
2861
+ const sdkResponse = oci_common_1.composeResponse({
2862
+ responseObject: {},
2863
+ body: yield response.json(),
2864
+ bodyKey: "serviceAttachmentCollection",
2865
+ bodyModel: model.ServiceAttachmentCollection,
2866
+ type: "model.ServiceAttachmentCollection",
2867
+ responseHeaders: [
2868
+ {
2869
+ value: response.headers.get("opc-request-id"),
2870
+ key: "opcRequestId",
2871
+ dataType: "string"
2872
+ },
2873
+ {
2874
+ value: response.headers.get("opc-next-page"),
2875
+ key: "opcNextPage",
2876
+ dataType: "string"
2877
+ }
2878
+ ]
2879
+ });
2880
+ return sdkResponse;
2881
+ }
2882
+ catch (err) {
2883
+ throw err;
2884
+ }
2885
+ });
2886
+ }
2887
+ }
2888
+ exports.ServiceAttachmentClient = ServiceAttachmentClient;
2889
+ ServiceAttachmentClient.serviceEndpointTemplate = "https://fusionapps.{region}.oci.{secondLevelDomain}";
2890
+ ServiceAttachmentClient.endpointServiceName = "";
2891
+ //# sourceMappingURL=client.js.map