oci-mediaservices 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 (545) 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 +27 -0
  6. package/index.js +50 -0
  7. package/index.js.map +1 -0
  8. package/lib/client.d.ts +519 -0
  9. package/lib/client.js +3240 -0
  10. package/lib/client.js.map +1 -0
  11. package/lib/mediaservices-waiter.d.ts +90 -0
  12. package/lib/mediaservices-waiter.js +154 -0
  13. package/lib/mediaservices-waiter.js.map +1 -0
  14. package/lib/model/akamai-manual-stream-cdn-config.d.ts +89 -0
  15. package/lib/model/akamai-manual-stream-cdn-config.js +77 -0
  16. package/lib/model/akamai-manual-stream-cdn-config.js.map +1 -0
  17. package/lib/model/asset-metadata-entry-details.d.ts +37 -0
  18. package/lib/model/asset-metadata-entry-details.js +59 -0
  19. package/lib/model/asset-metadata-entry-details.js.map +1 -0
  20. package/lib/model/asset-type.d.ts +37 -0
  21. package/lib/model/asset-type.js +48 -0
  22. package/lib/model/asset-type.js.map +1 -0
  23. package/lib/model/change-media-asset-compartment-details.d.ts +30 -0
  24. package/lib/model/change-media-asset-compartment-details.js +34 -0
  25. package/lib/model/change-media-asset-compartment-details.js.map +1 -0
  26. package/lib/model/change-media-workflow-compartment-details.d.ts +32 -0
  27. package/lib/model/change-media-workflow-compartment-details.js +34 -0
  28. package/lib/model/change-media-workflow-compartment-details.js.map +1 -0
  29. package/lib/model/change-media-workflow-configuration-compartment-details.d.ts +32 -0
  30. package/lib/model/change-media-workflow-configuration-compartment-details.js +34 -0
  31. package/lib/model/change-media-workflow-configuration-compartment-details.js.map +1 -0
  32. package/lib/model/change-media-workflow-job-compartment-details.d.ts +32 -0
  33. package/lib/model/change-media-workflow-job-compartment-details.js +34 -0
  34. package/lib/model/change-media-workflow-job-compartment-details.js.map +1 -0
  35. package/lib/model/change-stream-distribution-channel-compartment-details.d.ts +32 -0
  36. package/lib/model/change-stream-distribution-channel-compartment-details.js +34 -0
  37. package/lib/model/change-stream-distribution-channel-compartment-details.js.map +1 -0
  38. package/lib/model/create-media-asset-details.d.ts +109 -0
  39. package/lib/model/create-media-asset-details.js +76 -0
  40. package/lib/model/create-media-asset-details.js.map +1 -0
  41. package/lib/model/create-media-workflow-configuration-details.d.ts +62 -0
  42. package/lib/model/create-media-workflow-configuration-details.js +34 -0
  43. package/lib/model/create-media-workflow-configuration-details.js.map +1 -0
  44. package/lib/model/create-media-workflow-details.d.ts +75 -0
  45. package/lib/model/create-media-workflow-details.js +66 -0
  46. package/lib/model/create-media-workflow-details.js.map +1 -0
  47. package/lib/model/create-media-workflow-job-by-id-details.d.ts +33 -0
  48. package/lib/model/create-media-workflow-job-by-id-details.js +59 -0
  49. package/lib/model/create-media-workflow-job-by-id-details.js.map +1 -0
  50. package/lib/model/create-media-workflow-job-by-name-details.d.ts +33 -0
  51. package/lib/model/create-media-workflow-job-by-name-details.js +59 -0
  52. package/lib/model/create-media-workflow-job-by-name-details.js.map +1 -0
  53. package/lib/model/create-media-workflow-job-details.d.ts +68 -0
  54. package/lib/model/create-media-workflow-job-details.js +74 -0
  55. package/lib/model/create-media-workflow-job-details.js.map +1 -0
  56. package/lib/model/create-stream-cdn-config-details.d.ts +58 -0
  57. package/lib/model/create-stream-cdn-config-details.js +60 -0
  58. package/lib/model/create-stream-cdn-config-details.js.map +1 -0
  59. package/lib/model/create-stream-distribution-channel-details.d.ts +52 -0
  60. package/lib/model/create-stream-distribution-channel-details.js +34 -0
  61. package/lib/model/create-stream-distribution-channel-details.js.map +1 -0
  62. package/lib/model/create-stream-packaging-config-details.d.ts +66 -0
  63. package/lib/model/create-stream-packaging-config-details.js +67 -0
  64. package/lib/model/create-stream-packaging-config-details.js.map +1 -0
  65. package/lib/model/dash-stream-packaging-config.d.ts +29 -0
  66. package/lib/model/dash-stream-packaging-config.js +59 -0
  67. package/lib/model/dash-stream-packaging-config.js.map +1 -0
  68. package/lib/model/delete-mode.d.ts +28 -0
  69. package/lib/model/delete-mode.js +39 -0
  70. package/lib/model/delete-mode.js.map +1 -0
  71. package/lib/model/edge-stream-cdn-config.d.ts +29 -0
  72. package/lib/model/edge-stream-cdn-config.js +59 -0
  73. package/lib/model/edge-stream-cdn-config.js.map +1 -0
  74. package/lib/model/hls-stream-packaging-config.d.ts +29 -0
  75. package/lib/model/hls-stream-packaging-config.js +59 -0
  76. package/lib/model/hls-stream-packaging-config.js.map +1 -0
  77. package/lib/model/index.d.ts +173 -0
  78. package/lib/model/index.js +197 -0
  79. package/lib/model/index.js.map +1 -0
  80. package/lib/model/ingest-stream-distribution-channel-details.d.ts +27 -0
  81. package/lib/model/ingest-stream-distribution-channel-details.js +70 -0
  82. package/lib/model/ingest-stream-distribution-channel-details.js.map +1 -0
  83. package/lib/model/ingest-stream-distribution-channel-result.d.ts +30 -0
  84. package/lib/model/ingest-stream-distribution-channel-result.js +34 -0
  85. package/lib/model/ingest-stream-distribution-channel-result.js.map +1 -0
  86. package/lib/model/job-output.d.ts +62 -0
  87. package/lib/model/job-output.js +51 -0
  88. package/lib/model/job-output.js.map +1 -0
  89. package/lib/model/lifecycle-state.d.ts +37 -0
  90. package/lib/model/lifecycle-state.js +48 -0
  91. package/lib/model/lifecycle-state.js.map +1 -0
  92. package/lib/model/media-asset-collection.d.ts +31 -0
  93. package/lib/model/media-asset-collection.js +66 -0
  94. package/lib/model/media-asset-collection.js.map +1 -0
  95. package/lib/model/media-asset-distribution-channel-attachment-collection.d.ts +31 -0
  96. package/lib/model/media-asset-distribution-channel-attachment-collection.js +66 -0
  97. package/lib/model/media-asset-distribution-channel-attachment-collection.js.map +1 -0
  98. package/lib/model/media-asset-distribution-channel-attachment-sort-by.d.ts +30 -0
  99. package/lib/model/media-asset-distribution-channel-attachment-sort-by.js +41 -0
  100. package/lib/model/media-asset-distribution-channel-attachment-sort-by.js.map +1 -0
  101. package/lib/model/media-asset-distribution-channel-attachment-summary.d.ts +65 -0
  102. package/lib/model/media-asset-distribution-channel-attachment-summary.js +46 -0
  103. package/lib/model/media-asset-distribution-channel-attachment-summary.js.map +1 -0
  104. package/lib/model/media-asset-distribution-channel-attachment.d.ts +61 -0
  105. package/lib/model/media-asset-distribution-channel-attachment.js +46 -0
  106. package/lib/model/media-asset-distribution-channel-attachment.js.map +1 -0
  107. package/lib/model/media-asset-sort-by.d.ts +34 -0
  108. package/lib/model/media-asset-sort-by.js +45 -0
  109. package/lib/model/media-asset-sort-by.js.map +1 -0
  110. package/lib/model/media-asset-summary.d.ts +91 -0
  111. package/lib/model/media-asset-summary.js +34 -0
  112. package/lib/model/media-asset-summary.js.map +1 -0
  113. package/lib/model/media-asset-tag.d.ts +43 -0
  114. package/lib/model/media-asset-tag.js +44 -0
  115. package/lib/model/media-asset-tag.js.map +1 -0
  116. package/lib/model/media-asset.d.ts +135 -0
  117. package/lib/model/media-asset.js +76 -0
  118. package/lib/model/media-asset.js.map +1 -0
  119. package/lib/model/media-workflow-collection.d.ts +33 -0
  120. package/lib/model/media-workflow-collection.js +66 -0
  121. package/lib/model/media-workflow-collection.js.map +1 -0
  122. package/lib/model/media-workflow-configuration-collection.d.ts +31 -0
  123. package/lib/model/media-workflow-configuration-collection.js +66 -0
  124. package/lib/model/media-workflow-configuration-collection.js.map +1 -0
  125. package/lib/model/media-workflow-configuration-summary.d.ts +82 -0
  126. package/lib/model/media-workflow-configuration-summary.js +34 -0
  127. package/lib/model/media-workflow-configuration-summary.js.map +1 -0
  128. package/lib/model/media-workflow-configuration.d.ts +101 -0
  129. package/lib/model/media-workflow-configuration.js +44 -0
  130. package/lib/model/media-workflow-configuration.js.map +1 -0
  131. package/lib/model/media-workflow-job-collection.d.ts +33 -0
  132. package/lib/model/media-workflow-job-collection.js +66 -0
  133. package/lib/model/media-workflow-job-collection.js.map +1 -0
  134. package/lib/model/media-workflow-job-fact-collection.d.ts +32 -0
  135. package/lib/model/media-workflow-job-fact-collection.js +66 -0
  136. package/lib/model/media-workflow-job-fact-collection.js.map +1 -0
  137. package/lib/model/media-workflow-job-fact-sort-by.d.ts +27 -0
  138. package/lib/model/media-workflow-job-fact-sort-by.js +38 -0
  139. package/lib/model/media-workflow-job-fact-sort-by.js.map +1 -0
  140. package/lib/model/media-workflow-job-fact-summary.d.ts +43 -0
  141. package/lib/model/media-workflow-job-fact-summary.js +34 -0
  142. package/lib/model/media-workflow-job-fact-summary.js.map +1 -0
  143. package/lib/model/media-workflow-job-fact.d.ts +51 -0
  144. package/lib/model/media-workflow-job-fact.js +34 -0
  145. package/lib/model/media-workflow-job-fact.js.map +1 -0
  146. package/lib/model/media-workflow-job-sort-by.d.ts +29 -0
  147. package/lib/model/media-workflow-job-sort-by.js +40 -0
  148. package/lib/model/media-workflow-job-sort-by.js.map +1 -0
  149. package/lib/model/media-workflow-job-summary.d.ts +82 -0
  150. package/lib/model/media-workflow-job-summary.js +34 -0
  151. package/lib/model/media-workflow-job-summary.js.map +1 -0
  152. package/lib/model/media-workflow-job.d.ts +141 -0
  153. package/lib/model/media-workflow-job.js +91 -0
  154. package/lib/model/media-workflow-job.js.map +1 -0
  155. package/lib/model/media-workflow-summary.d.ts +86 -0
  156. package/lib/model/media-workflow-summary.js +34 -0
  157. package/lib/model/media-workflow-summary.js.map +1 -0
  158. package/lib/model/media-workflow-task-declaration-collection.d.ts +32 -0
  159. package/lib/model/media-workflow-task-declaration-collection.js +66 -0
  160. package/lib/model/media-workflow-task-declaration-collection.js.map +1 -0
  161. package/lib/model/media-workflow-task-declaration-sort-by.d.ts +28 -0
  162. package/lib/model/media-workflow-task-declaration-sort-by.js +39 -0
  163. package/lib/model/media-workflow-task-declaration-sort-by.js.map +1 -0
  164. package/lib/model/media-workflow-task-declaration.d.ts +54 -0
  165. package/lib/model/media-workflow-task-declaration.js +34 -0
  166. package/lib/model/media-workflow-task-declaration.js.map +1 -0
  167. package/lib/model/media-workflow-task-state.d.ts +38 -0
  168. package/lib/model/media-workflow-task-state.js +34 -0
  169. package/lib/model/media-workflow-task-state.js.map +1 -0
  170. package/lib/model/media-workflow-task.d.ts +74 -0
  171. package/lib/model/media-workflow-task.js +34 -0
  172. package/lib/model/media-workflow-task.js.map +1 -0
  173. package/lib/model/media-workflow.d.ts +121 -0
  174. package/lib/model/media-workflow.js +77 -0
  175. package/lib/model/media-workflow.js.map +1 -0
  176. package/lib/model/metadata.d.ts +30 -0
  177. package/lib/model/metadata.js +34 -0
  178. package/lib/model/metadata.js.map +1 -0
  179. package/lib/model/sort-by.d.ts +28 -0
  180. package/lib/model/sort-by.js +39 -0
  181. package/lib/model/sort-by.js.map +1 -0
  182. package/lib/model/sort-order.d.ts +28 -0
  183. package/lib/model/sort-order.js +39 -0
  184. package/lib/model/sort-order.js.map +1 -0
  185. package/lib/model/stream-cdn-config-collection.d.ts +33 -0
  186. package/lib/model/stream-cdn-config-collection.js +66 -0
  187. package/lib/model/stream-cdn-config-collection.js.map +1 -0
  188. package/lib/model/stream-cdn-config-section.d.ts +27 -0
  189. package/lib/model/stream-cdn-config-section.js +74 -0
  190. package/lib/model/stream-cdn-config-section.js.map +1 -0
  191. package/lib/model/stream-cdn-config-summary.d.ts +90 -0
  192. package/lib/model/stream-cdn-config-summary.js +34 -0
  193. package/lib/model/stream-cdn-config-summary.js.map +1 -0
  194. package/lib/model/stream-cdn-config.d.ts +102 -0
  195. package/lib/model/stream-cdn-config.js +71 -0
  196. package/lib/model/stream-cdn-config.js.map +1 -0
  197. package/lib/model/stream-distribution-channel-collection.d.ts +33 -0
  198. package/lib/model/stream-distribution-channel-collection.js +66 -0
  199. package/lib/model/stream-distribution-channel-collection.js.map +1 -0
  200. package/lib/model/stream-distribution-channel-summary.d.ts +82 -0
  201. package/lib/model/stream-distribution-channel-summary.js +34 -0
  202. package/lib/model/stream-distribution-channel-summary.js.map +1 -0
  203. package/lib/model/stream-distribution-channel.d.ts +92 -0
  204. package/lib/model/stream-distribution-channel.js +45 -0
  205. package/lib/model/stream-distribution-channel.js.map +1 -0
  206. package/lib/model/stream-packaging-config-collection.d.ts +33 -0
  207. package/lib/model/stream-packaging-config-collection.js +66 -0
  208. package/lib/model/stream-packaging-config-collection.js.map +1 -0
  209. package/lib/model/stream-packaging-config-encryption-aes128.d.ts +33 -0
  210. package/lib/model/stream-packaging-config-encryption-aes128.js +59 -0
  211. package/lib/model/stream-packaging-config-encryption-aes128.js.map +1 -0
  212. package/lib/model/stream-packaging-config-encryption-none.d.ts +29 -0
  213. package/lib/model/stream-packaging-config-encryption-none.js +59 -0
  214. package/lib/model/stream-packaging-config-encryption-none.js.map +1 -0
  215. package/lib/model/stream-packaging-config-encryption.d.ts +27 -0
  216. package/lib/model/stream-packaging-config-encryption.js +74 -0
  217. package/lib/model/stream-packaging-config-encryption.js.map +1 -0
  218. package/lib/model/stream-packaging-config-summary.d.ts +82 -0
  219. package/lib/model/stream-packaging-config-summary.js +34 -0
  220. package/lib/model/stream-packaging-config-summary.js.map +1 -0
  221. package/lib/model/stream-packaging-config.d.ts +99 -0
  222. package/lib/model/stream-packaging-config.js +93 -0
  223. package/lib/model/stream-packaging-config.js.map +1 -0
  224. package/lib/model/system-media-workflow-collection.d.ts +32 -0
  225. package/lib/model/system-media-workflow-collection.js +66 -0
  226. package/lib/model/system-media-workflow-collection.js.map +1 -0
  227. package/lib/model/system-media-workflow.d.ts +53 -0
  228. package/lib/model/system-media-workflow.js +66 -0
  229. package/lib/model/system-media-workflow.js.map +1 -0
  230. package/lib/model/update-media-asset-details.d.ts +69 -0
  231. package/lib/model/update-media-asset-details.js +76 -0
  232. package/lib/model/update-media-asset-details.js.map +1 -0
  233. package/lib/model/update-media-workflow-configuration-details.d.ts +58 -0
  234. package/lib/model/update-media-workflow-configuration-details.js +34 -0
  235. package/lib/model/update-media-workflow-configuration-details.js.map +1 -0
  236. package/lib/model/update-media-workflow-details.d.ts +71 -0
  237. package/lib/model/update-media-workflow-details.js +66 -0
  238. package/lib/model/update-media-workflow-details.js.map +1 -0
  239. package/lib/model/update-media-workflow-job-details.d.ts +48 -0
  240. package/lib/model/update-media-workflow-job-details.js +34 -0
  241. package/lib/model/update-media-workflow-job-details.js.map +1 -0
  242. package/lib/model/update-stream-cdn-config-details.d.ts +54 -0
  243. package/lib/model/update-stream-cdn-config-details.js +60 -0
  244. package/lib/model/update-stream-cdn-config-details.js.map +1 -0
  245. package/lib/model/update-stream-distribution-channel-details.d.ts +48 -0
  246. package/lib/model/update-stream-distribution-channel-details.js +34 -0
  247. package/lib/model/update-stream-distribution-channel-details.js.map +1 -0
  248. package/lib/model/update-stream-packaging-config-details.d.ts +48 -0
  249. package/lib/model/update-stream-packaging-config-details.js +34 -0
  250. package/lib/model/update-stream-packaging-config-details.js.map +1 -0
  251. package/lib/request/change-media-asset-compartment-request.d.ts +49 -0
  252. package/lib/request/change-media-asset-compartment-request.js +15 -0
  253. package/lib/request/change-media-asset-compartment-request.js.map +1 -0
  254. package/lib/request/change-media-workflow-compartment-request.d.ts +49 -0
  255. package/lib/request/change-media-workflow-compartment-request.js +15 -0
  256. package/lib/request/change-media-workflow-compartment-request.js.map +1 -0
  257. package/lib/request/change-media-workflow-configuration-compartment-request.d.ts +49 -0
  258. package/lib/request/change-media-workflow-configuration-compartment-request.js +15 -0
  259. package/lib/request/change-media-workflow-configuration-compartment-request.js.map +1 -0
  260. package/lib/request/change-media-workflow-job-compartment-request.d.ts +49 -0
  261. package/lib/request/change-media-workflow-job-compartment-request.js +15 -0
  262. package/lib/request/change-media-workflow-job-compartment-request.js.map +1 -0
  263. package/lib/request/change-stream-distribution-channel-compartment-request.d.ts +49 -0
  264. package/lib/request/change-stream-distribution-channel-compartment-request.js +15 -0
  265. package/lib/request/change-stream-distribution-channel-compartment-request.js.map +1 -0
  266. package/lib/request/create-media-asset-request.d.ts +36 -0
  267. package/lib/request/create-media-asset-request.js +15 -0
  268. package/lib/request/create-media-asset-request.js.map +1 -0
  269. package/lib/request/create-media-workflow-configuration-request.d.ts +36 -0
  270. package/lib/request/create-media-workflow-configuration-request.js +15 -0
  271. package/lib/request/create-media-workflow-configuration-request.js.map +1 -0
  272. package/lib/request/create-media-workflow-job-request.d.ts +36 -0
  273. package/lib/request/create-media-workflow-job-request.js +15 -0
  274. package/lib/request/create-media-workflow-job-request.js.map +1 -0
  275. package/lib/request/create-media-workflow-request.d.ts +36 -0
  276. package/lib/request/create-media-workflow-request.js +15 -0
  277. package/lib/request/create-media-workflow-request.js.map +1 -0
  278. package/lib/request/create-stream-cdn-config-request.d.ts +36 -0
  279. package/lib/request/create-stream-cdn-config-request.js +15 -0
  280. package/lib/request/create-stream-cdn-config-request.js.map +1 -0
  281. package/lib/request/create-stream-distribution-channel-request.d.ts +36 -0
  282. package/lib/request/create-stream-distribution-channel-request.js +15 -0
  283. package/lib/request/create-stream-distribution-channel-request.js.map +1 -0
  284. package/lib/request/create-stream-packaging-config-request.d.ts +36 -0
  285. package/lib/request/create-stream-packaging-config-request.js +15 -0
  286. package/lib/request/create-stream-packaging-config-request.js.map +1 -0
  287. package/lib/request/delete-media-asset-distribution-channel-attachment-request.d.ts +43 -0
  288. package/lib/request/delete-media-asset-distribution-channel-attachment-request.js +15 -0
  289. package/lib/request/delete-media-asset-distribution-channel-attachment-request.js.map +1 -0
  290. package/lib/request/delete-media-asset-request.d.ts +40 -0
  291. package/lib/request/delete-media-asset-request.js +15 -0
  292. package/lib/request/delete-media-asset-request.js.map +1 -0
  293. package/lib/request/delete-media-workflow-configuration-request.d.ts +35 -0
  294. package/lib/request/delete-media-workflow-configuration-request.js +15 -0
  295. package/lib/request/delete-media-workflow-configuration-request.js.map +1 -0
  296. package/lib/request/delete-media-workflow-job-request.d.ts +35 -0
  297. package/lib/request/delete-media-workflow-job-request.js +15 -0
  298. package/lib/request/delete-media-workflow-job-request.js.map +1 -0
  299. package/lib/request/delete-media-workflow-request.d.ts +35 -0
  300. package/lib/request/delete-media-workflow-request.js +15 -0
  301. package/lib/request/delete-media-workflow-request.js.map +1 -0
  302. package/lib/request/delete-stream-cdn-config-request.d.ts +35 -0
  303. package/lib/request/delete-stream-cdn-config-request.js +15 -0
  304. package/lib/request/delete-stream-cdn-config-request.js.map +1 -0
  305. package/lib/request/delete-stream-distribution-channel-request.d.ts +35 -0
  306. package/lib/request/delete-stream-distribution-channel-request.js +15 -0
  307. package/lib/request/delete-stream-distribution-channel-request.js.map +1 -0
  308. package/lib/request/delete-stream-packaging-config-request.d.ts +35 -0
  309. package/lib/request/delete-stream-packaging-config-request.js +15 -0
  310. package/lib/request/delete-stream-packaging-config-request.js.map +1 -0
  311. package/lib/request/get-media-asset-distribution-channel-attachment-request.d.ts +34 -0
  312. package/lib/request/get-media-asset-distribution-channel-attachment-request.js +15 -0
  313. package/lib/request/get-media-asset-distribution-channel-attachment-request.js.map +1 -0
  314. package/lib/request/get-media-asset-request.d.ts +26 -0
  315. package/lib/request/get-media-asset-request.js +15 -0
  316. package/lib/request/get-media-asset-request.js.map +1 -0
  317. package/lib/request/get-media-workflow-configuration-request.d.ts +26 -0
  318. package/lib/request/get-media-workflow-configuration-request.js +15 -0
  319. package/lib/request/get-media-workflow-configuration-request.js.map +1 -0
  320. package/lib/request/get-media-workflow-job-fact-request.d.ts +30 -0
  321. package/lib/request/get-media-workflow-job-fact-request.js +15 -0
  322. package/lib/request/get-media-workflow-job-fact-request.js.map +1 -0
  323. package/lib/request/get-media-workflow-job-request.d.ts +26 -0
  324. package/lib/request/get-media-workflow-job-request.js +15 -0
  325. package/lib/request/get-media-workflow-job-request.js.map +1 -0
  326. package/lib/request/get-media-workflow-request.d.ts +26 -0
  327. package/lib/request/get-media-workflow-request.js +15 -0
  328. package/lib/request/get-media-workflow-request.js.map +1 -0
  329. package/lib/request/get-stream-cdn-config-request.d.ts +26 -0
  330. package/lib/request/get-stream-cdn-config-request.js +15 -0
  331. package/lib/request/get-stream-cdn-config-request.js.map +1 -0
  332. package/lib/request/get-stream-distribution-channel-request.d.ts +26 -0
  333. package/lib/request/get-stream-distribution-channel-request.js +15 -0
  334. package/lib/request/get-stream-distribution-channel-request.js.map +1 -0
  335. package/lib/request/get-stream-packaging-config-request.d.ts +26 -0
  336. package/lib/request/get-stream-packaging-config-request.js +15 -0
  337. package/lib/request/get-stream-packaging-config-request.js.map +1 -0
  338. package/lib/request/index.d.ts +113 -0
  339. package/lib/request/index.js +42 -0
  340. package/lib/request/index.js.map +1 -0
  341. package/lib/request/ingest-stream-distribution-channel-request.d.ts +40 -0
  342. package/lib/request/ingest-stream-distribution-channel-request.js +15 -0
  343. package/lib/request/ingest-stream-distribution-channel-request.js.map +1 -0
  344. package/lib/request/list-media-asset-distribution-channel-attachments-request.d.ts +54 -0
  345. package/lib/request/list-media-asset-distribution-channel-attachments-request.js +15 -0
  346. package/lib/request/list-media-asset-distribution-channel-attachments-request.js.map +1 -0
  347. package/lib/request/list-media-assets-request.d.ts +90 -0
  348. package/lib/request/list-media-assets-request.js +15 -0
  349. package/lib/request/list-media-assets-request.js.map +1 -0
  350. package/lib/request/list-media-workflow-configurations-request.d.ts +59 -0
  351. package/lib/request/list-media-workflow-configurations-request.js +15 -0
  352. package/lib/request/list-media-workflow-configurations-request.js.map +1 -0
  353. package/lib/request/list-media-workflow-job-facts-request.d.ts +63 -0
  354. package/lib/request/list-media-workflow-job-facts-request.js +27 -0
  355. package/lib/request/list-media-workflow-job-facts-request.js.map +1 -0
  356. package/lib/request/list-media-workflow-jobs-request.d.ts +61 -0
  357. package/lib/request/list-media-workflow-jobs-request.js +15 -0
  358. package/lib/request/list-media-workflow-jobs-request.js.map +1 -0
  359. package/lib/request/list-media-workflow-task-declarations-request.d.ts +58 -0
  360. package/lib/request/list-media-workflow-task-declarations-request.js +15 -0
  361. package/lib/request/list-media-workflow-task-declarations-request.js.map +1 -0
  362. package/lib/request/list-media-workflows-request.d.ts +59 -0
  363. package/lib/request/list-media-workflows-request.js +15 -0
  364. package/lib/request/list-media-workflows-request.js.map +1 -0
  365. package/lib/request/list-stream-cdn-configs-request.d.ts +60 -0
  366. package/lib/request/list-stream-cdn-configs-request.js +15 -0
  367. package/lib/request/list-stream-cdn-configs-request.js.map +1 -0
  368. package/lib/request/list-stream-distribution-channels-request.d.ts +59 -0
  369. package/lib/request/list-stream-distribution-channels-request.js +15 -0
  370. package/lib/request/list-stream-distribution-channels-request.js.map +1 -0
  371. package/lib/request/list-stream-packaging-configs-request.d.ts +59 -0
  372. package/lib/request/list-stream-packaging-configs-request.js +15 -0
  373. package/lib/request/list-stream-packaging-configs-request.js.map +1 -0
  374. package/lib/request/list-system-media-workflows-request.d.ts +45 -0
  375. package/lib/request/list-system-media-workflows-request.js +15 -0
  376. package/lib/request/list-system-media-workflows-request.js.map +1 -0
  377. package/lib/request/update-media-asset-request.d.ts +40 -0
  378. package/lib/request/update-media-asset-request.js +15 -0
  379. package/lib/request/update-media-asset-request.js.map +1 -0
  380. package/lib/request/update-media-workflow-configuration-request.d.ts +40 -0
  381. package/lib/request/update-media-workflow-configuration-request.js +15 -0
  382. package/lib/request/update-media-workflow-configuration-request.js.map +1 -0
  383. package/lib/request/update-media-workflow-job-request.d.ts +40 -0
  384. package/lib/request/update-media-workflow-job-request.js +15 -0
  385. package/lib/request/update-media-workflow-job-request.js.map +1 -0
  386. package/lib/request/update-media-workflow-request.d.ts +40 -0
  387. package/lib/request/update-media-workflow-request.js +15 -0
  388. package/lib/request/update-media-workflow-request.js.map +1 -0
  389. package/lib/request/update-stream-cdn-config-request.d.ts +40 -0
  390. package/lib/request/update-stream-cdn-config-request.js +15 -0
  391. package/lib/request/update-stream-cdn-config-request.js.map +1 -0
  392. package/lib/request/update-stream-distribution-channel-request.d.ts +40 -0
  393. package/lib/request/update-stream-distribution-channel-request.js +15 -0
  394. package/lib/request/update-stream-distribution-channel-request.js.map +1 -0
  395. package/lib/request/update-stream-packaging-config-request.d.ts +40 -0
  396. package/lib/request/update-stream-packaging-config-request.js +15 -0
  397. package/lib/request/update-stream-packaging-config-request.js.map +1 -0
  398. package/lib/response/change-media-asset-compartment-response.d.ts +20 -0
  399. package/lib/response/change-media-asset-compartment-response.js +15 -0
  400. package/lib/response/change-media-asset-compartment-response.js.map +1 -0
  401. package/lib/response/change-media-workflow-compartment-response.d.ts +25 -0
  402. package/lib/response/change-media-workflow-compartment-response.js +15 -0
  403. package/lib/response/change-media-workflow-compartment-response.js.map +1 -0
  404. package/lib/response/change-media-workflow-configuration-compartment-response.d.ts +25 -0
  405. package/lib/response/change-media-workflow-configuration-compartment-response.js +15 -0
  406. package/lib/response/change-media-workflow-configuration-compartment-response.js.map +1 -0
  407. package/lib/response/change-media-workflow-job-compartment-response.d.ts +25 -0
  408. package/lib/response/change-media-workflow-job-compartment-response.js +15 -0
  409. package/lib/response/change-media-workflow-job-compartment-response.js.map +1 -0
  410. package/lib/response/change-stream-distribution-channel-compartment-response.d.ts +25 -0
  411. package/lib/response/change-stream-distribution-channel-compartment-response.js +15 -0
  412. package/lib/response/change-stream-distribution-channel-compartment-response.js.map +1 -0
  413. package/lib/response/create-media-asset-response.d.ts +30 -0
  414. package/lib/response/create-media-asset-response.js +15 -0
  415. package/lib/response/create-media-asset-response.js.map +1 -0
  416. package/lib/response/create-media-workflow-configuration-response.d.ts +30 -0
  417. package/lib/response/create-media-workflow-configuration-response.js +15 -0
  418. package/lib/response/create-media-workflow-configuration-response.js.map +1 -0
  419. package/lib/response/create-media-workflow-job-response.d.ts +30 -0
  420. package/lib/response/create-media-workflow-job-response.js +15 -0
  421. package/lib/response/create-media-workflow-job-response.js.map +1 -0
  422. package/lib/response/create-media-workflow-response.d.ts +30 -0
  423. package/lib/response/create-media-workflow-response.js +15 -0
  424. package/lib/response/create-media-workflow-response.js.map +1 -0
  425. package/lib/response/create-stream-cdn-config-response.d.ts +30 -0
  426. package/lib/response/create-stream-cdn-config-response.js +15 -0
  427. package/lib/response/create-stream-cdn-config-response.js.map +1 -0
  428. package/lib/response/create-stream-distribution-channel-response.d.ts +30 -0
  429. package/lib/response/create-stream-distribution-channel-response.js +15 -0
  430. package/lib/response/create-stream-distribution-channel-response.js.map +1 -0
  431. package/lib/response/create-stream-packaging-config-response.d.ts +30 -0
  432. package/lib/response/create-stream-packaging-config-response.js +15 -0
  433. package/lib/response/create-stream-packaging-config-response.js.map +1 -0
  434. package/lib/response/delete-media-asset-distribution-channel-attachment-response.d.ts +20 -0
  435. package/lib/response/delete-media-asset-distribution-channel-attachment-response.js +15 -0
  436. package/lib/response/delete-media-asset-distribution-channel-attachment-response.js.map +1 -0
  437. package/lib/response/delete-media-asset-response.d.ts +20 -0
  438. package/lib/response/delete-media-asset-response.js +15 -0
  439. package/lib/response/delete-media-asset-response.js.map +1 -0
  440. package/lib/response/delete-media-workflow-configuration-response.d.ts +25 -0
  441. package/lib/response/delete-media-workflow-configuration-response.js +15 -0
  442. package/lib/response/delete-media-workflow-configuration-response.js.map +1 -0
  443. package/lib/response/delete-media-workflow-job-response.d.ts +25 -0
  444. package/lib/response/delete-media-workflow-job-response.js +15 -0
  445. package/lib/response/delete-media-workflow-job-response.js.map +1 -0
  446. package/lib/response/delete-media-workflow-response.d.ts +20 -0
  447. package/lib/response/delete-media-workflow-response.js +15 -0
  448. package/lib/response/delete-media-workflow-response.js.map +1 -0
  449. package/lib/response/delete-stream-cdn-config-response.d.ts +20 -0
  450. package/lib/response/delete-stream-cdn-config-response.js +15 -0
  451. package/lib/response/delete-stream-cdn-config-response.js.map +1 -0
  452. package/lib/response/delete-stream-distribution-channel-response.d.ts +20 -0
  453. package/lib/response/delete-stream-distribution-channel-response.js +15 -0
  454. package/lib/response/delete-stream-distribution-channel-response.js.map +1 -0
  455. package/lib/response/delete-stream-packaging-config-response.d.ts +20 -0
  456. package/lib/response/delete-stream-packaging-config-response.js +15 -0
  457. package/lib/response/delete-stream-packaging-config-response.js.map +1 -0
  458. package/lib/response/get-media-asset-distribution-channel-attachment-response.d.ts +30 -0
  459. package/lib/response/get-media-asset-distribution-channel-attachment-response.js +15 -0
  460. package/lib/response/get-media-asset-distribution-channel-attachment-response.js.map +1 -0
  461. package/lib/response/get-media-asset-response.d.ts +30 -0
  462. package/lib/response/get-media-asset-response.js +15 -0
  463. package/lib/response/get-media-asset-response.js.map +1 -0
  464. package/lib/response/get-media-workflow-configuration-response.d.ts +30 -0
  465. package/lib/response/get-media-workflow-configuration-response.js +15 -0
  466. package/lib/response/get-media-workflow-configuration-response.js.map +1 -0
  467. package/lib/response/get-media-workflow-job-fact-response.d.ts +30 -0
  468. package/lib/response/get-media-workflow-job-fact-response.js +15 -0
  469. package/lib/response/get-media-workflow-job-fact-response.js.map +1 -0
  470. package/lib/response/get-media-workflow-job-response.d.ts +30 -0
  471. package/lib/response/get-media-workflow-job-response.js +15 -0
  472. package/lib/response/get-media-workflow-job-response.js.map +1 -0
  473. package/lib/response/get-media-workflow-response.d.ts +30 -0
  474. package/lib/response/get-media-workflow-response.js +15 -0
  475. package/lib/response/get-media-workflow-response.js.map +1 -0
  476. package/lib/response/get-stream-cdn-config-response.d.ts +30 -0
  477. package/lib/response/get-stream-cdn-config-response.js +15 -0
  478. package/lib/response/get-stream-cdn-config-response.js.map +1 -0
  479. package/lib/response/get-stream-distribution-channel-response.d.ts +30 -0
  480. package/lib/response/get-stream-distribution-channel-response.js +15 -0
  481. package/lib/response/get-stream-distribution-channel-response.js.map +1 -0
  482. package/lib/response/get-stream-packaging-config-response.d.ts +30 -0
  483. package/lib/response/get-stream-packaging-config-response.js +15 -0
  484. package/lib/response/get-stream-packaging-config-response.js.map +1 -0
  485. package/lib/response/index.d.ts +113 -0
  486. package/lib/response/index.js +20 -0
  487. package/lib/response/index.js.map +1 -0
  488. package/lib/response/ingest-stream-distribution-channel-response.d.ts +25 -0
  489. package/lib/response/ingest-stream-distribution-channel-response.js +15 -0
  490. package/lib/response/ingest-stream-distribution-channel-response.js.map +1 -0
  491. package/lib/response/list-media-asset-distribution-channel-attachments-response.d.ts +32 -0
  492. package/lib/response/list-media-asset-distribution-channel-attachments-response.js +15 -0
  493. package/lib/response/list-media-asset-distribution-channel-attachments-response.js.map +1 -0
  494. package/lib/response/list-media-assets-response.d.ts +32 -0
  495. package/lib/response/list-media-assets-response.js +15 -0
  496. package/lib/response/list-media-assets-response.js.map +1 -0
  497. package/lib/response/list-media-workflow-configurations-response.d.ts +32 -0
  498. package/lib/response/list-media-workflow-configurations-response.js +15 -0
  499. package/lib/response/list-media-workflow-configurations-response.js.map +1 -0
  500. package/lib/response/list-media-workflow-job-facts-response.d.ts +32 -0
  501. package/lib/response/list-media-workflow-job-facts-response.js +15 -0
  502. package/lib/response/list-media-workflow-job-facts-response.js.map +1 -0
  503. package/lib/response/list-media-workflow-jobs-response.d.ts +32 -0
  504. package/lib/response/list-media-workflow-jobs-response.js +15 -0
  505. package/lib/response/list-media-workflow-jobs-response.js.map +1 -0
  506. package/lib/response/list-media-workflow-task-declarations-response.d.ts +32 -0
  507. package/lib/response/list-media-workflow-task-declarations-response.js +15 -0
  508. package/lib/response/list-media-workflow-task-declarations-response.js.map +1 -0
  509. package/lib/response/list-media-workflows-response.d.ts +32 -0
  510. package/lib/response/list-media-workflows-response.js +15 -0
  511. package/lib/response/list-media-workflows-response.js.map +1 -0
  512. package/lib/response/list-stream-cdn-configs-response.d.ts +32 -0
  513. package/lib/response/list-stream-cdn-configs-response.js +15 -0
  514. package/lib/response/list-stream-cdn-configs-response.js.map +1 -0
  515. package/lib/response/list-stream-distribution-channels-response.d.ts +32 -0
  516. package/lib/response/list-stream-distribution-channels-response.js +15 -0
  517. package/lib/response/list-stream-distribution-channels-response.js.map +1 -0
  518. package/lib/response/list-stream-packaging-configs-response.d.ts +32 -0
  519. package/lib/response/list-stream-packaging-configs-response.js +15 -0
  520. package/lib/response/list-stream-packaging-configs-response.js.map +1 -0
  521. package/lib/response/list-system-media-workflows-response.d.ts +32 -0
  522. package/lib/response/list-system-media-workflows-response.js +15 -0
  523. package/lib/response/list-system-media-workflows-response.js.map +1 -0
  524. package/lib/response/update-media-asset-response.d.ts +30 -0
  525. package/lib/response/update-media-asset-response.js +15 -0
  526. package/lib/response/update-media-asset-response.js.map +1 -0
  527. package/lib/response/update-media-workflow-configuration-response.d.ts +30 -0
  528. package/lib/response/update-media-workflow-configuration-response.js +15 -0
  529. package/lib/response/update-media-workflow-configuration-response.js.map +1 -0
  530. package/lib/response/update-media-workflow-job-response.d.ts +30 -0
  531. package/lib/response/update-media-workflow-job-response.js +15 -0
  532. package/lib/response/update-media-workflow-job-response.js.map +1 -0
  533. package/lib/response/update-media-workflow-response.d.ts +30 -0
  534. package/lib/response/update-media-workflow-response.js +15 -0
  535. package/lib/response/update-media-workflow-response.js.map +1 -0
  536. package/lib/response/update-stream-cdn-config-response.d.ts +30 -0
  537. package/lib/response/update-stream-cdn-config-response.js +15 -0
  538. package/lib/response/update-stream-cdn-config-response.js.map +1 -0
  539. package/lib/response/update-stream-distribution-channel-response.d.ts +30 -0
  540. package/lib/response/update-stream-distribution-channel-response.js +15 -0
  541. package/lib/response/update-stream-distribution-channel-response.js.map +1 -0
  542. package/lib/response/update-stream-packaging-config-response.d.ts +35 -0
  543. package/lib/response/update-stream-packaging-config-response.js +15 -0
  544. package/lib/response/update-stream-packaging-config-response.js.map +1 -0
  545. package/package.json +29 -0
package/lib/client.js ADDED
@@ -0,0 +1,3240 @@
1
+ "use strict";
2
+ /**
3
+ * Media Services
4
+ * Media Services (includes Media Flow and Media Streams) is a fully managed service for processing media (video) source content. Use Media Flow and Media Streams to transcode and package digital video using configurable workflows and stream video outputs.
5
+
6
+ Use the Media Services API to configure media workflows and run Media Flow jobs, create distribution channels, ingest assets, create Preview URLs and play assets. For more information, see [Media Flow](/iaas/Content/dms-mediaflow/home.htm) and Media Streams [Media Streams](/iaas/Content/dms-mediastream/home.htm).
7
+
8
+ Use the table of contents and search tool to explore the Media Flow API and Media Streams API.
9
+
10
+ * OpenAPI spec version: 20211101
11
+ *
12
+ *
13
+ * NOTE: This class is auto generated by OracleSDKGenerator.
14
+ * Do not edit the class manually.
15
+ *
16
+ * Copyright (c) 2020, 2022, Oracle and/or its affiliates. All rights reserved.
17
+ * 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.
18
+ */
19
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
20
+ if (k2 === undefined) k2 = k;
21
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
22
+ }) : (function(o, m, k, k2) {
23
+ if (k2 === undefined) k2 = k;
24
+ o[k2] = m[k];
25
+ }));
26
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
27
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
28
+ }) : function(o, v) {
29
+ o["default"] = v;
30
+ });
31
+ var __importStar = (this && this.__importStar) || function (mod) {
32
+ if (mod && mod.__esModule) return mod;
33
+ var result = {};
34
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
35
+ __setModuleDefault(result, mod);
36
+ return result;
37
+ };
38
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
39
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
40
+ return new (P || (P = Promise))(function (resolve, reject) {
41
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
42
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
43
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
44
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
45
+ });
46
+ };
47
+ Object.defineProperty(exports, "__esModule", { value: true });
48
+ exports.MediaServicesClient = exports.MediaServicesApiKeys = void 0;
49
+ const common = require("oci-common");
50
+ const model = __importStar(require("./model"));
51
+ const mediaservices_waiter_1 = require("./mediaservices-waiter");
52
+ const oci_common_1 = require("oci-common");
53
+ // ===============================================
54
+ // This file is autogenerated - Please do not edit
55
+ // ===============================================
56
+ var MediaServicesApiKeys;
57
+ (function (MediaServicesApiKeys) {
58
+ })(MediaServicesApiKeys = exports.MediaServicesApiKeys || (exports.MediaServicesApiKeys = {}));
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 MediaServicesClient {
63
+ constructor(params, clientConfiguration) {
64
+ this["_endpoint"] = "";
65
+ this["_defaultHeaders"] = {};
66
+ this._circuitBreaker = null;
67
+ this._httpOptions = undefined;
68
+ this.targetService = "MediaServices";
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 + "/20211101";
112
+ if (this.logger)
113
+ this.logger.info(`MediaServicesClient 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(MediaServicesClient.serviceEndpointTemplate, region, MediaServicesClient.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(MediaServicesClient.serviceEndpointTemplate, regionId, MediaServicesClient.endpointServiceName);
136
+ }
137
+ /**
138
+ * Creates a new MediaServicesWaiter 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 mediaservices_waiter_1.MediaServicesWaiter(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
+ * Moves a MediaAsset resource from one compartment identifier to another.
160
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
161
+ * @param ChangeMediaAssetCompartmentRequest
162
+ * @return ChangeMediaAssetCompartmentResponse
163
+ * @throws OciError when an error occurs
164
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.35.1/mediaservices/ChangeMediaAssetCompartment.ts.html |here} to see how to use ChangeMediaAssetCompartment API.
165
+ */
166
+ changeMediaAssetCompartment(changeMediaAssetCompartmentRequest) {
167
+ return __awaiter(this, void 0, void 0, function* () {
168
+ if (this.logger)
169
+ this.logger.debug("Calling operation MediaServicesClient#changeMediaAssetCompartment.");
170
+ const operationName = "changeMediaAssetCompartment";
171
+ const apiReferenceLink = "";
172
+ const pathParams = {
173
+ "{mediaAssetId}": changeMediaAssetCompartmentRequest.mediaAssetId
174
+ };
175
+ const queryParams = {};
176
+ let headerParams = {
177
+ "Content-Type": common.Constants.APPLICATION_JSON,
178
+ "opc-retry-token": changeMediaAssetCompartmentRequest.opcRetryToken,
179
+ "if-match": changeMediaAssetCompartmentRequest.ifMatch,
180
+ "opc-request-id": changeMediaAssetCompartmentRequest.opcRequestId
181
+ };
182
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
183
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, changeMediaAssetCompartmentRequest.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: "/mediaAssets/{mediaAssetId}/actions/changeCompartment",
190
+ method: "POST",
191
+ bodyContent: common.ObjectSerializer.serialize(changeMediaAssetCompartmentRequest.changeMediaAssetCompartmentDetails, "ChangeMediaAssetCompartmentDetails", model.ChangeMediaAssetCompartmentDetails.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-request-id"),
203
+ key: "opcRequestId",
204
+ dataType: "string"
205
+ }
206
+ ]
207
+ });
208
+ return sdkResponse;
209
+ }
210
+ catch (err) {
211
+ throw err;
212
+ }
213
+ });
214
+ }
215
+ /**
216
+ * Moves a MediaWorkflow resource from one compartment identifier to another.
217
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
218
+ * @param ChangeMediaWorkflowCompartmentRequest
219
+ * @return ChangeMediaWorkflowCompartmentResponse
220
+ * @throws OciError when an error occurs
221
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.35.1/mediaservices/ChangeMediaWorkflowCompartment.ts.html |here} to see how to use ChangeMediaWorkflowCompartment API.
222
+ */
223
+ changeMediaWorkflowCompartment(changeMediaWorkflowCompartmentRequest) {
224
+ return __awaiter(this, void 0, void 0, function* () {
225
+ if (this.logger)
226
+ this.logger.debug("Calling operation MediaServicesClient#changeMediaWorkflowCompartment.");
227
+ const operationName = "changeMediaWorkflowCompartment";
228
+ const apiReferenceLink = "";
229
+ const pathParams = {
230
+ "{mediaWorkflowId}": changeMediaWorkflowCompartmentRequest.mediaWorkflowId
231
+ };
232
+ const queryParams = {};
233
+ let headerParams = {
234
+ "Content-Type": common.Constants.APPLICATION_JSON,
235
+ "opc-retry-token": changeMediaWorkflowCompartmentRequest.opcRetryToken,
236
+ "if-match": changeMediaWorkflowCompartmentRequest.ifMatch,
237
+ "opc-request-id": changeMediaWorkflowCompartmentRequest.opcRequestId
238
+ };
239
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
240
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, changeMediaWorkflowCompartmentRequest.retryConfiguration, specRetryConfiguration);
241
+ if (this.logger)
242
+ retrier.logger = this.logger;
243
+ const request = yield oci_common_1.composeRequest({
244
+ baseEndpoint: this._endpoint,
245
+ defaultHeaders: this._defaultHeaders,
246
+ path: "/mediaWorkflows/{mediaWorkflowId}/actions/changeCompartment",
247
+ method: "POST",
248
+ bodyContent: common.ObjectSerializer.serialize(changeMediaWorkflowCompartmentRequest.changeMediaWorkflowCompartmentDetails, "ChangeMediaWorkflowCompartmentDetails", model.ChangeMediaWorkflowCompartmentDetails.getJsonObj),
249
+ pathParams: pathParams,
250
+ headerParams: headerParams,
251
+ queryParams: queryParams
252
+ });
253
+ try {
254
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
255
+ const sdkResponse = oci_common_1.composeResponse({
256
+ responseObject: {},
257
+ responseHeaders: [
258
+ {
259
+ value: response.headers.get("opc-work-request-id"),
260
+ key: "opcWorkRequestId",
261
+ dataType: "string"
262
+ },
263
+ {
264
+ value: response.headers.get("opc-request-id"),
265
+ key: "opcRequestId",
266
+ dataType: "string"
267
+ }
268
+ ]
269
+ });
270
+ return sdkResponse;
271
+ }
272
+ catch (err) {
273
+ throw err;
274
+ }
275
+ });
276
+ }
277
+ /**
278
+ * Moves a MediaWorkflowConfiguration resource from one compartment identifier to another. When provided, If-Match is checked against ETag values of the resource.
279
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
280
+ * @param ChangeMediaWorkflowConfigurationCompartmentRequest
281
+ * @return ChangeMediaWorkflowConfigurationCompartmentResponse
282
+ * @throws OciError when an error occurs
283
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.35.1/mediaservices/ChangeMediaWorkflowConfigurationCompartment.ts.html |here} to see how to use ChangeMediaWorkflowConfigurationCompartment API.
284
+ */
285
+ changeMediaWorkflowConfigurationCompartment(changeMediaWorkflowConfigurationCompartmentRequest) {
286
+ return __awaiter(this, void 0, void 0, function* () {
287
+ if (this.logger)
288
+ this.logger.debug("Calling operation MediaServicesClient#changeMediaWorkflowConfigurationCompartment.");
289
+ const operationName = "changeMediaWorkflowConfigurationCompartment";
290
+ const apiReferenceLink = "";
291
+ const pathParams = {
292
+ "{mediaWorkflowConfigurationId}": changeMediaWorkflowConfigurationCompartmentRequest.mediaWorkflowConfigurationId
293
+ };
294
+ const queryParams = {};
295
+ let headerParams = {
296
+ "Content-Type": common.Constants.APPLICATION_JSON,
297
+ "opc-retry-token": changeMediaWorkflowConfigurationCompartmentRequest.opcRetryToken,
298
+ "if-match": changeMediaWorkflowConfigurationCompartmentRequest.ifMatch,
299
+ "opc-request-id": changeMediaWorkflowConfigurationCompartmentRequest.opcRequestId
300
+ };
301
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
302
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, changeMediaWorkflowConfigurationCompartmentRequest.retryConfiguration, specRetryConfiguration);
303
+ if (this.logger)
304
+ retrier.logger = this.logger;
305
+ const request = yield oci_common_1.composeRequest({
306
+ baseEndpoint: this._endpoint,
307
+ defaultHeaders: this._defaultHeaders,
308
+ path: "/mediaWorkflowConfigurations/{mediaWorkflowConfigurationId}/actions/changeCompartment",
309
+ method: "POST",
310
+ bodyContent: common.ObjectSerializer.serialize(changeMediaWorkflowConfigurationCompartmentRequest.changeMediaWorkflowConfigurationCompartmentDetails, "ChangeMediaWorkflowConfigurationCompartmentDetails", model.ChangeMediaWorkflowConfigurationCompartmentDetails.getJsonObj),
311
+ pathParams: pathParams,
312
+ headerParams: headerParams,
313
+ queryParams: queryParams
314
+ });
315
+ try {
316
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
317
+ const sdkResponse = oci_common_1.composeResponse({
318
+ responseObject: {},
319
+ responseHeaders: [
320
+ {
321
+ value: response.headers.get("opc-work-request-id"),
322
+ key: "opcWorkRequestId",
323
+ dataType: "string"
324
+ },
325
+ {
326
+ value: response.headers.get("opc-request-id"),
327
+ key: "opcRequestId",
328
+ dataType: "string"
329
+ }
330
+ ]
331
+ });
332
+ return sdkResponse;
333
+ }
334
+ catch (err) {
335
+ throw err;
336
+ }
337
+ });
338
+ }
339
+ /**
340
+ * Moves a MediaWorkflowJob resource from one compartment identifier to another.
341
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
342
+ * @param ChangeMediaWorkflowJobCompartmentRequest
343
+ * @return ChangeMediaWorkflowJobCompartmentResponse
344
+ * @throws OciError when an error occurs
345
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.35.1/mediaservices/ChangeMediaWorkflowJobCompartment.ts.html |here} to see how to use ChangeMediaWorkflowJobCompartment API.
346
+ */
347
+ changeMediaWorkflowJobCompartment(changeMediaWorkflowJobCompartmentRequest) {
348
+ return __awaiter(this, void 0, void 0, function* () {
349
+ if (this.logger)
350
+ this.logger.debug("Calling operation MediaServicesClient#changeMediaWorkflowJobCompartment.");
351
+ const operationName = "changeMediaWorkflowJobCompartment";
352
+ const apiReferenceLink = "";
353
+ const pathParams = {
354
+ "{mediaWorkflowJobId}": changeMediaWorkflowJobCompartmentRequest.mediaWorkflowJobId
355
+ };
356
+ const queryParams = {};
357
+ let headerParams = {
358
+ "Content-Type": common.Constants.APPLICATION_JSON,
359
+ "opc-retry-token": changeMediaWorkflowJobCompartmentRequest.opcRetryToken,
360
+ "if-match": changeMediaWorkflowJobCompartmentRequest.ifMatch,
361
+ "opc-request-id": changeMediaWorkflowJobCompartmentRequest.opcRequestId
362
+ };
363
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
364
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, changeMediaWorkflowJobCompartmentRequest.retryConfiguration, specRetryConfiguration);
365
+ if (this.logger)
366
+ retrier.logger = this.logger;
367
+ const request = yield oci_common_1.composeRequest({
368
+ baseEndpoint: this._endpoint,
369
+ defaultHeaders: this._defaultHeaders,
370
+ path: "/mediaWorkflowJobs/{mediaWorkflowJobId}/actions/changeCompartment",
371
+ method: "POST",
372
+ bodyContent: common.ObjectSerializer.serialize(changeMediaWorkflowJobCompartmentRequest.changeMediaWorkflowJobCompartmentDetails, "ChangeMediaWorkflowJobCompartmentDetails", model.ChangeMediaWorkflowJobCompartmentDetails.getJsonObj),
373
+ pathParams: pathParams,
374
+ headerParams: headerParams,
375
+ queryParams: queryParams
376
+ });
377
+ try {
378
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
379
+ const sdkResponse = oci_common_1.composeResponse({
380
+ responseObject: {},
381
+ responseHeaders: [
382
+ {
383
+ value: response.headers.get("opc-work-request-id"),
384
+ key: "opcWorkRequestId",
385
+ dataType: "string"
386
+ },
387
+ {
388
+ value: response.headers.get("opc-request-id"),
389
+ key: "opcRequestId",
390
+ dataType: "string"
391
+ }
392
+ ]
393
+ });
394
+ return sdkResponse;
395
+ }
396
+ catch (err) {
397
+ throw err;
398
+ }
399
+ });
400
+ }
401
+ /**
402
+ * Moves a Stream Distribution Channel resource from one compartment identifier to another.
403
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
404
+ * @param ChangeStreamDistributionChannelCompartmentRequest
405
+ * @return ChangeStreamDistributionChannelCompartmentResponse
406
+ * @throws OciError when an error occurs
407
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.35.1/mediaservices/ChangeStreamDistributionChannelCompartment.ts.html |here} to see how to use ChangeStreamDistributionChannelCompartment API.
408
+ */
409
+ changeStreamDistributionChannelCompartment(changeStreamDistributionChannelCompartmentRequest) {
410
+ return __awaiter(this, void 0, void 0, function* () {
411
+ if (this.logger)
412
+ this.logger.debug("Calling operation MediaServicesClient#changeStreamDistributionChannelCompartment.");
413
+ const operationName = "changeStreamDistributionChannelCompartment";
414
+ const apiReferenceLink = "";
415
+ const pathParams = {
416
+ "{streamDistributionChannelId}": changeStreamDistributionChannelCompartmentRequest.streamDistributionChannelId
417
+ };
418
+ const queryParams = {};
419
+ let headerParams = {
420
+ "Content-Type": common.Constants.APPLICATION_JSON,
421
+ "opc-retry-token": changeStreamDistributionChannelCompartmentRequest.opcRetryToken,
422
+ "if-match": changeStreamDistributionChannelCompartmentRequest.ifMatch,
423
+ "opc-request-id": changeStreamDistributionChannelCompartmentRequest.opcRequestId
424
+ };
425
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
426
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, changeStreamDistributionChannelCompartmentRequest.retryConfiguration, specRetryConfiguration);
427
+ if (this.logger)
428
+ retrier.logger = this.logger;
429
+ const request = yield oci_common_1.composeRequest({
430
+ baseEndpoint: this._endpoint,
431
+ defaultHeaders: this._defaultHeaders,
432
+ path: "/streamDistributionChannels/{streamDistributionChannelId}/actions/changeCompartment",
433
+ method: "POST",
434
+ bodyContent: common.ObjectSerializer.serialize(changeStreamDistributionChannelCompartmentRequest.changeStreamDistributionChannelCompartmentDetails, "ChangeStreamDistributionChannelCompartmentDetails", model.ChangeStreamDistributionChannelCompartmentDetails.getJsonObj),
435
+ pathParams: pathParams,
436
+ headerParams: headerParams,
437
+ queryParams: queryParams
438
+ });
439
+ try {
440
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
441
+ const sdkResponse = oci_common_1.composeResponse({
442
+ responseObject: {},
443
+ responseHeaders: [
444
+ {
445
+ value: response.headers.get("opc-work-request-id"),
446
+ key: "opcWorkRequestId",
447
+ dataType: "string"
448
+ },
449
+ {
450
+ value: response.headers.get("opc-request-id"),
451
+ key: "opcRequestId",
452
+ dataType: "string"
453
+ }
454
+ ]
455
+ });
456
+ return sdkResponse;
457
+ }
458
+ catch (err) {
459
+ throw err;
460
+ }
461
+ });
462
+ }
463
+ /**
464
+ * Creates a new MediaAsset.
465
+ *
466
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
467
+ * @param CreateMediaAssetRequest
468
+ * @return CreateMediaAssetResponse
469
+ * @throws OciError when an error occurs
470
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.35.1/mediaservices/CreateMediaAsset.ts.html |here} to see how to use CreateMediaAsset API.
471
+ */
472
+ createMediaAsset(createMediaAssetRequest) {
473
+ return __awaiter(this, void 0, void 0, function* () {
474
+ if (this.logger)
475
+ this.logger.debug("Calling operation MediaServicesClient#createMediaAsset.");
476
+ const operationName = "createMediaAsset";
477
+ const apiReferenceLink = "";
478
+ const pathParams = {};
479
+ const queryParams = {};
480
+ let headerParams = {
481
+ "Content-Type": common.Constants.APPLICATION_JSON,
482
+ "opc-retry-token": createMediaAssetRequest.opcRetryToken,
483
+ "opc-request-id": createMediaAssetRequest.opcRequestId
484
+ };
485
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
486
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, createMediaAssetRequest.retryConfiguration, specRetryConfiguration);
487
+ if (this.logger)
488
+ retrier.logger = this.logger;
489
+ const request = yield oci_common_1.composeRequest({
490
+ baseEndpoint: this._endpoint,
491
+ defaultHeaders: this._defaultHeaders,
492
+ path: "/mediaAssets",
493
+ method: "POST",
494
+ bodyContent: common.ObjectSerializer.serialize(createMediaAssetRequest.createMediaAssetDetails, "CreateMediaAssetDetails", model.CreateMediaAssetDetails.getJsonObj),
495
+ pathParams: pathParams,
496
+ headerParams: headerParams,
497
+ queryParams: queryParams
498
+ });
499
+ try {
500
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
501
+ const sdkResponse = oci_common_1.composeResponse({
502
+ responseObject: {},
503
+ body: yield response.json(),
504
+ bodyKey: "mediaAsset",
505
+ bodyModel: model.MediaAsset,
506
+ type: "model.MediaAsset",
507
+ responseHeaders: [
508
+ {
509
+ value: response.headers.get("etag"),
510
+ key: "etag",
511
+ dataType: "string"
512
+ },
513
+ {
514
+ value: response.headers.get("opc-request-id"),
515
+ key: "opcRequestId",
516
+ dataType: "string"
517
+ }
518
+ ]
519
+ });
520
+ return sdkResponse;
521
+ }
522
+ catch (err) {
523
+ throw err;
524
+ }
525
+ });
526
+ }
527
+ /**
528
+ * Creates a new MediaWorkflow.
529
+ *
530
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
531
+ * @param CreateMediaWorkflowRequest
532
+ * @return CreateMediaWorkflowResponse
533
+ * @throws OciError when an error occurs
534
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.35.1/mediaservices/CreateMediaWorkflow.ts.html |here} to see how to use CreateMediaWorkflow API.
535
+ */
536
+ createMediaWorkflow(createMediaWorkflowRequest) {
537
+ return __awaiter(this, void 0, void 0, function* () {
538
+ if (this.logger)
539
+ this.logger.debug("Calling operation MediaServicesClient#createMediaWorkflow.");
540
+ const operationName = "createMediaWorkflow";
541
+ const apiReferenceLink = "";
542
+ const pathParams = {};
543
+ const queryParams = {};
544
+ let headerParams = {
545
+ "Content-Type": common.Constants.APPLICATION_JSON,
546
+ "opc-retry-token": createMediaWorkflowRequest.opcRetryToken,
547
+ "opc-request-id": createMediaWorkflowRequest.opcRequestId
548
+ };
549
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
550
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, createMediaWorkflowRequest.retryConfiguration, specRetryConfiguration);
551
+ if (this.logger)
552
+ retrier.logger = this.logger;
553
+ const request = yield oci_common_1.composeRequest({
554
+ baseEndpoint: this._endpoint,
555
+ defaultHeaders: this._defaultHeaders,
556
+ path: "/mediaWorkflows",
557
+ method: "POST",
558
+ bodyContent: common.ObjectSerializer.serialize(createMediaWorkflowRequest.createMediaWorkflowDetails, "CreateMediaWorkflowDetails", model.CreateMediaWorkflowDetails.getJsonObj),
559
+ pathParams: pathParams,
560
+ headerParams: headerParams,
561
+ queryParams: queryParams
562
+ });
563
+ try {
564
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
565
+ const sdkResponse = oci_common_1.composeResponse({
566
+ responseObject: {},
567
+ body: yield response.json(),
568
+ bodyKey: "mediaWorkflow",
569
+ bodyModel: model.MediaWorkflow,
570
+ type: "model.MediaWorkflow",
571
+ responseHeaders: [
572
+ {
573
+ value: response.headers.get("etag"),
574
+ key: "etag",
575
+ dataType: "string"
576
+ },
577
+ {
578
+ value: response.headers.get("opc-request-id"),
579
+ key: "opcRequestId",
580
+ dataType: "string"
581
+ }
582
+ ]
583
+ });
584
+ return sdkResponse;
585
+ }
586
+ catch (err) {
587
+ throw err;
588
+ }
589
+ });
590
+ }
591
+ /**
592
+ * Creates a new MediaWorkflowConfiguration.
593
+ *
594
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
595
+ * @param CreateMediaWorkflowConfigurationRequest
596
+ * @return CreateMediaWorkflowConfigurationResponse
597
+ * @throws OciError when an error occurs
598
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.35.1/mediaservices/CreateMediaWorkflowConfiguration.ts.html |here} to see how to use CreateMediaWorkflowConfiguration API.
599
+ */
600
+ createMediaWorkflowConfiguration(createMediaWorkflowConfigurationRequest) {
601
+ return __awaiter(this, void 0, void 0, function* () {
602
+ if (this.logger)
603
+ this.logger.debug("Calling operation MediaServicesClient#createMediaWorkflowConfiguration.");
604
+ const operationName = "createMediaWorkflowConfiguration";
605
+ const apiReferenceLink = "";
606
+ const pathParams = {};
607
+ const queryParams = {};
608
+ let headerParams = {
609
+ "Content-Type": common.Constants.APPLICATION_JSON,
610
+ "opc-retry-token": createMediaWorkflowConfigurationRequest.opcRetryToken,
611
+ "opc-request-id": createMediaWorkflowConfigurationRequest.opcRequestId
612
+ };
613
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
614
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, createMediaWorkflowConfigurationRequest.retryConfiguration, specRetryConfiguration);
615
+ if (this.logger)
616
+ retrier.logger = this.logger;
617
+ const request = yield oci_common_1.composeRequest({
618
+ baseEndpoint: this._endpoint,
619
+ defaultHeaders: this._defaultHeaders,
620
+ path: "/mediaWorkflowConfigurations",
621
+ method: "POST",
622
+ bodyContent: common.ObjectSerializer.serialize(createMediaWorkflowConfigurationRequest.createMediaWorkflowConfigurationDetails, "CreateMediaWorkflowConfigurationDetails", model.CreateMediaWorkflowConfigurationDetails.getJsonObj),
623
+ pathParams: pathParams,
624
+ headerParams: headerParams,
625
+ queryParams: queryParams
626
+ });
627
+ try {
628
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
629
+ const sdkResponse = oci_common_1.composeResponse({
630
+ responseObject: {},
631
+ body: yield response.json(),
632
+ bodyKey: "mediaWorkflowConfiguration",
633
+ bodyModel: model.MediaWorkflowConfiguration,
634
+ type: "model.MediaWorkflowConfiguration",
635
+ responseHeaders: [
636
+ {
637
+ value: response.headers.get("etag"),
638
+ key: "etag",
639
+ dataType: "string"
640
+ },
641
+ {
642
+ value: response.headers.get("opc-request-id"),
643
+ key: "opcRequestId",
644
+ dataType: "string"
645
+ }
646
+ ]
647
+ });
648
+ return sdkResponse;
649
+ }
650
+ catch (err) {
651
+ throw err;
652
+ }
653
+ });
654
+ }
655
+ /**
656
+ * Run the MediaWorkflow according to the given mediaWorkflow definition and configuration.
657
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
658
+ * @param CreateMediaWorkflowJobRequest
659
+ * @return CreateMediaWorkflowJobResponse
660
+ * @throws OciError when an error occurs
661
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.35.1/mediaservices/CreateMediaWorkflowJob.ts.html |here} to see how to use CreateMediaWorkflowJob API.
662
+ */
663
+ createMediaWorkflowJob(createMediaWorkflowJobRequest) {
664
+ return __awaiter(this, void 0, void 0, function* () {
665
+ if (this.logger)
666
+ this.logger.debug("Calling operation MediaServicesClient#createMediaWorkflowJob.");
667
+ const operationName = "createMediaWorkflowJob";
668
+ const apiReferenceLink = "";
669
+ const pathParams = {};
670
+ const queryParams = {};
671
+ let headerParams = {
672
+ "Content-Type": common.Constants.APPLICATION_JSON,
673
+ "opc-request-id": createMediaWorkflowJobRequest.opcRequestId,
674
+ "opc-retry-token": createMediaWorkflowJobRequest.opcRetryToken
675
+ };
676
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
677
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, createMediaWorkflowJobRequest.retryConfiguration, specRetryConfiguration);
678
+ if (this.logger)
679
+ retrier.logger = this.logger;
680
+ const request = yield oci_common_1.composeRequest({
681
+ baseEndpoint: this._endpoint,
682
+ defaultHeaders: this._defaultHeaders,
683
+ path: "/mediaWorkflowJobs",
684
+ method: "POST",
685
+ bodyContent: common.ObjectSerializer.serialize(createMediaWorkflowJobRequest.createMediaWorkflowJobDetails, "CreateMediaWorkflowJobDetails", model.CreateMediaWorkflowJobDetails.getJsonObj),
686
+ pathParams: pathParams,
687
+ headerParams: headerParams,
688
+ queryParams: queryParams
689
+ });
690
+ try {
691
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
692
+ const sdkResponse = oci_common_1.composeResponse({
693
+ responseObject: {},
694
+ body: yield response.json(),
695
+ bodyKey: "mediaWorkflowJob",
696
+ bodyModel: model.MediaWorkflowJob,
697
+ type: "model.MediaWorkflowJob",
698
+ responseHeaders: [
699
+ {
700
+ value: response.headers.get("etag"),
701
+ key: "etag",
702
+ dataType: "string"
703
+ },
704
+ {
705
+ value: response.headers.get("opc-request-id"),
706
+ key: "opcRequestId",
707
+ dataType: "string"
708
+ }
709
+ ]
710
+ });
711
+ return sdkResponse;
712
+ }
713
+ catch (err) {
714
+ throw err;
715
+ }
716
+ });
717
+ }
718
+ /**
719
+ * Creates a new CDN Configuration.
720
+ *
721
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
722
+ * @param CreateStreamCdnConfigRequest
723
+ * @return CreateStreamCdnConfigResponse
724
+ * @throws OciError when an error occurs
725
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.35.1/mediaservices/CreateStreamCdnConfig.ts.html |here} to see how to use CreateStreamCdnConfig API.
726
+ */
727
+ createStreamCdnConfig(createStreamCdnConfigRequest) {
728
+ return __awaiter(this, void 0, void 0, function* () {
729
+ if (this.logger)
730
+ this.logger.debug("Calling operation MediaServicesClient#createStreamCdnConfig.");
731
+ const operationName = "createStreamCdnConfig";
732
+ const apiReferenceLink = "";
733
+ const pathParams = {};
734
+ const queryParams = {};
735
+ let headerParams = {
736
+ "Content-Type": common.Constants.APPLICATION_JSON,
737
+ "opc-retry-token": createStreamCdnConfigRequest.opcRetryToken,
738
+ "opc-request-id": createStreamCdnConfigRequest.opcRequestId
739
+ };
740
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
741
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, createStreamCdnConfigRequest.retryConfiguration, specRetryConfiguration);
742
+ if (this.logger)
743
+ retrier.logger = this.logger;
744
+ const request = yield oci_common_1.composeRequest({
745
+ baseEndpoint: this._endpoint,
746
+ defaultHeaders: this._defaultHeaders,
747
+ path: "/streamCdnConfigs",
748
+ method: "POST",
749
+ bodyContent: common.ObjectSerializer.serialize(createStreamCdnConfigRequest.createStreamCdnConfigDetails, "CreateStreamCdnConfigDetails", model.CreateStreamCdnConfigDetails.getJsonObj),
750
+ pathParams: pathParams,
751
+ headerParams: headerParams,
752
+ queryParams: queryParams
753
+ });
754
+ try {
755
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
756
+ const sdkResponse = oci_common_1.composeResponse({
757
+ responseObject: {},
758
+ body: yield response.json(),
759
+ bodyKey: "streamCdnConfig",
760
+ bodyModel: model.StreamCdnConfig,
761
+ type: "model.StreamCdnConfig",
762
+ responseHeaders: [
763
+ {
764
+ value: response.headers.get("etag"),
765
+ key: "etag",
766
+ dataType: "string"
767
+ },
768
+ {
769
+ value: response.headers.get("opc-request-id"),
770
+ key: "opcRequestId",
771
+ dataType: "string"
772
+ }
773
+ ]
774
+ });
775
+ return sdkResponse;
776
+ }
777
+ catch (err) {
778
+ throw err;
779
+ }
780
+ });
781
+ }
782
+ /**
783
+ * Creates a new Stream Distribution Channel.
784
+ *
785
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
786
+ * @param CreateStreamDistributionChannelRequest
787
+ * @return CreateStreamDistributionChannelResponse
788
+ * @throws OciError when an error occurs
789
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.35.1/mediaservices/CreateStreamDistributionChannel.ts.html |here} to see how to use CreateStreamDistributionChannel API.
790
+ */
791
+ createStreamDistributionChannel(createStreamDistributionChannelRequest) {
792
+ return __awaiter(this, void 0, void 0, function* () {
793
+ if (this.logger)
794
+ this.logger.debug("Calling operation MediaServicesClient#createStreamDistributionChannel.");
795
+ const operationName = "createStreamDistributionChannel";
796
+ const apiReferenceLink = "";
797
+ const pathParams = {};
798
+ const queryParams = {};
799
+ let headerParams = {
800
+ "Content-Type": common.Constants.APPLICATION_JSON,
801
+ "opc-retry-token": createStreamDistributionChannelRequest.opcRetryToken,
802
+ "opc-request-id": createStreamDistributionChannelRequest.opcRequestId
803
+ };
804
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
805
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, createStreamDistributionChannelRequest.retryConfiguration, specRetryConfiguration);
806
+ if (this.logger)
807
+ retrier.logger = this.logger;
808
+ const request = yield oci_common_1.composeRequest({
809
+ baseEndpoint: this._endpoint,
810
+ defaultHeaders: this._defaultHeaders,
811
+ path: "/streamDistributionChannels",
812
+ method: "POST",
813
+ bodyContent: common.ObjectSerializer.serialize(createStreamDistributionChannelRequest.createStreamDistributionChannelDetails, "CreateStreamDistributionChannelDetails", model.CreateStreamDistributionChannelDetails.getJsonObj),
814
+ pathParams: pathParams,
815
+ headerParams: headerParams,
816
+ queryParams: queryParams
817
+ });
818
+ try {
819
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
820
+ const sdkResponse = oci_common_1.composeResponse({
821
+ responseObject: {},
822
+ body: yield response.json(),
823
+ bodyKey: "streamDistributionChannel",
824
+ bodyModel: model.StreamDistributionChannel,
825
+ type: "model.StreamDistributionChannel",
826
+ responseHeaders: [
827
+ {
828
+ value: response.headers.get("etag"),
829
+ key: "etag",
830
+ dataType: "string"
831
+ },
832
+ {
833
+ value: response.headers.get("opc-request-id"),
834
+ key: "opcRequestId",
835
+ dataType: "string"
836
+ }
837
+ ]
838
+ });
839
+ return sdkResponse;
840
+ }
841
+ catch (err) {
842
+ throw err;
843
+ }
844
+ });
845
+ }
846
+ /**
847
+ * Creates a new Packaging Configuration.
848
+ *
849
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
850
+ * @param CreateStreamPackagingConfigRequest
851
+ * @return CreateStreamPackagingConfigResponse
852
+ * @throws OciError when an error occurs
853
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.35.1/mediaservices/CreateStreamPackagingConfig.ts.html |here} to see how to use CreateStreamPackagingConfig API.
854
+ */
855
+ createStreamPackagingConfig(createStreamPackagingConfigRequest) {
856
+ return __awaiter(this, void 0, void 0, function* () {
857
+ if (this.logger)
858
+ this.logger.debug("Calling operation MediaServicesClient#createStreamPackagingConfig.");
859
+ const operationName = "createStreamPackagingConfig";
860
+ const apiReferenceLink = "";
861
+ const pathParams = {};
862
+ const queryParams = {};
863
+ let headerParams = {
864
+ "Content-Type": common.Constants.APPLICATION_JSON,
865
+ "opc-retry-token": createStreamPackagingConfigRequest.opcRetryToken,
866
+ "opc-request-id": createStreamPackagingConfigRequest.opcRequestId
867
+ };
868
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
869
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, createStreamPackagingConfigRequest.retryConfiguration, specRetryConfiguration);
870
+ if (this.logger)
871
+ retrier.logger = this.logger;
872
+ const request = yield oci_common_1.composeRequest({
873
+ baseEndpoint: this._endpoint,
874
+ defaultHeaders: this._defaultHeaders,
875
+ path: "/streamPackagingConfigs",
876
+ method: "POST",
877
+ bodyContent: common.ObjectSerializer.serialize(createStreamPackagingConfigRequest.createStreamPackagingConfigDetails, "CreateStreamPackagingConfigDetails", model.CreateStreamPackagingConfigDetails.getJsonObj),
878
+ pathParams: pathParams,
879
+ headerParams: headerParams,
880
+ queryParams: queryParams
881
+ });
882
+ try {
883
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
884
+ const sdkResponse = oci_common_1.composeResponse({
885
+ responseObject: {},
886
+ body: yield response.json(),
887
+ bodyKey: "streamPackagingConfig",
888
+ bodyModel: model.StreamPackagingConfig,
889
+ type: "model.StreamPackagingConfig",
890
+ responseHeaders: [
891
+ {
892
+ value: response.headers.get("etag"),
893
+ key: "etag",
894
+ dataType: "string"
895
+ },
896
+ {
897
+ value: response.headers.get("opc-request-id"),
898
+ key: "opcRequestId",
899
+ dataType: "string"
900
+ }
901
+ ]
902
+ });
903
+ return sdkResponse;
904
+ }
905
+ catch (err) {
906
+ throw err;
907
+ }
908
+ });
909
+ }
910
+ /**
911
+ * Deletes a MediaAsset resource by identifier. If DeleteChildren is passed in as the mode, all the assets with the parentMediaAssetId matching the ID will be deleted. If DeleteDerivatives is set as the mode, all the assets with the masterMediaAssetId matching the ID will be deleted.
912
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
913
+ * @param DeleteMediaAssetRequest
914
+ * @return DeleteMediaAssetResponse
915
+ * @throws OciError when an error occurs
916
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.35.1/mediaservices/DeleteMediaAsset.ts.html |here} to see how to use DeleteMediaAsset API.
917
+ */
918
+ deleteMediaAsset(deleteMediaAssetRequest) {
919
+ return __awaiter(this, void 0, void 0, function* () {
920
+ if (this.logger)
921
+ this.logger.debug("Calling operation MediaServicesClient#deleteMediaAsset.");
922
+ const operationName = "deleteMediaAsset";
923
+ const apiReferenceLink = "";
924
+ const pathParams = {
925
+ "{mediaAssetId}": deleteMediaAssetRequest.mediaAssetId
926
+ };
927
+ const queryParams = {
928
+ "deleteMode": deleteMediaAssetRequest.deleteMode
929
+ };
930
+ let headerParams = {
931
+ "Content-Type": common.Constants.APPLICATION_JSON,
932
+ "if-match": deleteMediaAssetRequest.ifMatch,
933
+ "opc-request-id": deleteMediaAssetRequest.opcRequestId
934
+ };
935
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
936
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, deleteMediaAssetRequest.retryConfiguration, specRetryConfiguration);
937
+ if (this.logger)
938
+ retrier.logger = this.logger;
939
+ const request = yield oci_common_1.composeRequest({
940
+ baseEndpoint: this._endpoint,
941
+ defaultHeaders: this._defaultHeaders,
942
+ path: "/mediaAssets/{mediaAssetId}",
943
+ method: "DELETE",
944
+ pathParams: pathParams,
945
+ headerParams: headerParams,
946
+ queryParams: queryParams
947
+ });
948
+ try {
949
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
950
+ const sdkResponse = oci_common_1.composeResponse({
951
+ responseObject: {},
952
+ responseHeaders: [
953
+ {
954
+ value: response.headers.get("opc-request-id"),
955
+ key: "opcRequestId",
956
+ dataType: "string"
957
+ }
958
+ ]
959
+ });
960
+ return sdkResponse;
961
+ }
962
+ catch (err) {
963
+ throw err;
964
+ }
965
+ });
966
+ }
967
+ /**
968
+ * Deletes a MediaAsset from the DistributionChannel by identifiers.
969
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
970
+ * @param DeleteMediaAssetDistributionChannelAttachmentRequest
971
+ * @return DeleteMediaAssetDistributionChannelAttachmentResponse
972
+ * @throws OciError when an error occurs
973
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.35.1/mediaservices/DeleteMediaAssetDistributionChannelAttachment.ts.html |here} to see how to use DeleteMediaAssetDistributionChannelAttachment API.
974
+ */
975
+ deleteMediaAssetDistributionChannelAttachment(deleteMediaAssetDistributionChannelAttachmentRequest) {
976
+ return __awaiter(this, void 0, void 0, function* () {
977
+ if (this.logger)
978
+ this.logger.debug("Calling operation MediaServicesClient#deleteMediaAssetDistributionChannelAttachment.");
979
+ const operationName = "deleteMediaAssetDistributionChannelAttachment";
980
+ const apiReferenceLink = "";
981
+ const pathParams = {
982
+ "{mediaAssetId}": deleteMediaAssetDistributionChannelAttachmentRequest.mediaAssetId,
983
+ "{distributionChannelId}": deleteMediaAssetDistributionChannelAttachmentRequest.distributionChannelId
984
+ };
985
+ const queryParams = {
986
+ "version": deleteMediaAssetDistributionChannelAttachmentRequest.version
987
+ };
988
+ let headerParams = {
989
+ "Content-Type": common.Constants.APPLICATION_JSON,
990
+ "if-match": deleteMediaAssetDistributionChannelAttachmentRequest.ifMatch,
991
+ "opc-request-id": deleteMediaAssetDistributionChannelAttachmentRequest.opcRequestId
992
+ };
993
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
994
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, deleteMediaAssetDistributionChannelAttachmentRequest.retryConfiguration, specRetryConfiguration);
995
+ if (this.logger)
996
+ retrier.logger = this.logger;
997
+ const request = yield oci_common_1.composeRequest({
998
+ baseEndpoint: this._endpoint,
999
+ defaultHeaders: this._defaultHeaders,
1000
+ path: "/mediaAssets/{mediaAssetId}/distributionChannelAttachments/{distributionChannelId}",
1001
+ method: "DELETE",
1002
+ pathParams: pathParams,
1003
+ headerParams: headerParams,
1004
+ queryParams: queryParams
1005
+ });
1006
+ try {
1007
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
1008
+ const sdkResponse = oci_common_1.composeResponse({
1009
+ responseObject: {},
1010
+ responseHeaders: [
1011
+ {
1012
+ value: response.headers.get("opc-request-id"),
1013
+ key: "opcRequestId",
1014
+ dataType: "string"
1015
+ }
1016
+ ]
1017
+ });
1018
+ return sdkResponse;
1019
+ }
1020
+ catch (err) {
1021
+ throw err;
1022
+ }
1023
+ });
1024
+ }
1025
+ /**
1026
+ * The MediaWorkflow lifecycleState will change to DELETED.
1027
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
1028
+ * @param DeleteMediaWorkflowRequest
1029
+ * @return DeleteMediaWorkflowResponse
1030
+ * @throws OciError when an error occurs
1031
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.35.1/mediaservices/DeleteMediaWorkflow.ts.html |here} to see how to use DeleteMediaWorkflow API.
1032
+ */
1033
+ deleteMediaWorkflow(deleteMediaWorkflowRequest) {
1034
+ return __awaiter(this, void 0, void 0, function* () {
1035
+ if (this.logger)
1036
+ this.logger.debug("Calling operation MediaServicesClient#deleteMediaWorkflow.");
1037
+ const operationName = "deleteMediaWorkflow";
1038
+ const apiReferenceLink = "";
1039
+ const pathParams = {
1040
+ "{mediaWorkflowId}": deleteMediaWorkflowRequest.mediaWorkflowId
1041
+ };
1042
+ const queryParams = {};
1043
+ let headerParams = {
1044
+ "Content-Type": common.Constants.APPLICATION_JSON,
1045
+ "opc-request-id": deleteMediaWorkflowRequest.opcRequestId,
1046
+ "if-match": deleteMediaWorkflowRequest.ifMatch
1047
+ };
1048
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
1049
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, deleteMediaWorkflowRequest.retryConfiguration, specRetryConfiguration);
1050
+ if (this.logger)
1051
+ retrier.logger = this.logger;
1052
+ const request = yield oci_common_1.composeRequest({
1053
+ baseEndpoint: this._endpoint,
1054
+ defaultHeaders: this._defaultHeaders,
1055
+ path: "/mediaWorkflows/{mediaWorkflowId}",
1056
+ method: "DELETE",
1057
+ pathParams: pathParams,
1058
+ headerParams: headerParams,
1059
+ queryParams: queryParams
1060
+ });
1061
+ try {
1062
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
1063
+ const sdkResponse = oci_common_1.composeResponse({
1064
+ responseObject: {},
1065
+ responseHeaders: [
1066
+ {
1067
+ value: response.headers.get("opc-request-id"),
1068
+ key: "opcRequestId",
1069
+ dataType: "string"
1070
+ }
1071
+ ]
1072
+ });
1073
+ return sdkResponse;
1074
+ }
1075
+ catch (err) {
1076
+ throw err;
1077
+ }
1078
+ });
1079
+ }
1080
+ /**
1081
+ * Deletes a MediaWorkflowConfiguration resource by identifier.
1082
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
1083
+ * @param DeleteMediaWorkflowConfigurationRequest
1084
+ * @return DeleteMediaWorkflowConfigurationResponse
1085
+ * @throws OciError when an error occurs
1086
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.35.1/mediaservices/DeleteMediaWorkflowConfiguration.ts.html |here} to see how to use DeleteMediaWorkflowConfiguration API.
1087
+ */
1088
+ deleteMediaWorkflowConfiguration(deleteMediaWorkflowConfigurationRequest) {
1089
+ return __awaiter(this, void 0, void 0, function* () {
1090
+ if (this.logger)
1091
+ this.logger.debug("Calling operation MediaServicesClient#deleteMediaWorkflowConfiguration.");
1092
+ const operationName = "deleteMediaWorkflowConfiguration";
1093
+ const apiReferenceLink = "";
1094
+ const pathParams = {
1095
+ "{mediaWorkflowConfigurationId}": deleteMediaWorkflowConfigurationRequest.mediaWorkflowConfigurationId
1096
+ };
1097
+ const queryParams = {};
1098
+ let headerParams = {
1099
+ "Content-Type": common.Constants.APPLICATION_JSON,
1100
+ "if-match": deleteMediaWorkflowConfigurationRequest.ifMatch,
1101
+ "opc-request-id": deleteMediaWorkflowConfigurationRequest.opcRequestId
1102
+ };
1103
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
1104
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, deleteMediaWorkflowConfigurationRequest.retryConfiguration, specRetryConfiguration);
1105
+ if (this.logger)
1106
+ retrier.logger = this.logger;
1107
+ const request = yield oci_common_1.composeRequest({
1108
+ baseEndpoint: this._endpoint,
1109
+ defaultHeaders: this._defaultHeaders,
1110
+ path: "/mediaWorkflowConfigurations/{mediaWorkflowConfigurationId}",
1111
+ method: "DELETE",
1112
+ pathParams: pathParams,
1113
+ headerParams: headerParams,
1114
+ queryParams: queryParams
1115
+ });
1116
+ try {
1117
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
1118
+ const sdkResponse = oci_common_1.composeResponse({
1119
+ responseObject: {},
1120
+ responseHeaders: [
1121
+ {
1122
+ value: response.headers.get("opc-work-request-id"),
1123
+ key: "opcWorkRequestId",
1124
+ dataType: "string"
1125
+ },
1126
+ {
1127
+ value: response.headers.get("opc-request-id"),
1128
+ key: "opcRequestId",
1129
+ dataType: "string"
1130
+ }
1131
+ ]
1132
+ });
1133
+ return sdkResponse;
1134
+ }
1135
+ catch (err) {
1136
+ throw err;
1137
+ }
1138
+ });
1139
+ }
1140
+ /**
1141
+ * This is an asynchronous operation. The MediaWorkflowJob lifecycleState will change to CANCELING temporarily until the job is completely CANCELED.
1142
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
1143
+ * @param DeleteMediaWorkflowJobRequest
1144
+ * @return DeleteMediaWorkflowJobResponse
1145
+ * @throws OciError when an error occurs
1146
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.35.1/mediaservices/DeleteMediaWorkflowJob.ts.html |here} to see how to use DeleteMediaWorkflowJob API.
1147
+ */
1148
+ deleteMediaWorkflowJob(deleteMediaWorkflowJobRequest) {
1149
+ return __awaiter(this, void 0, void 0, function* () {
1150
+ if (this.logger)
1151
+ this.logger.debug("Calling operation MediaServicesClient#deleteMediaWorkflowJob.");
1152
+ const operationName = "deleteMediaWorkflowJob";
1153
+ const apiReferenceLink = "";
1154
+ const pathParams = {
1155
+ "{mediaWorkflowJobId}": deleteMediaWorkflowJobRequest.mediaWorkflowJobId
1156
+ };
1157
+ const queryParams = {};
1158
+ let headerParams = {
1159
+ "Content-Type": common.Constants.APPLICATION_JSON,
1160
+ "opc-request-id": deleteMediaWorkflowJobRequest.opcRequestId,
1161
+ "if-match": deleteMediaWorkflowJobRequest.ifMatch
1162
+ };
1163
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
1164
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, deleteMediaWorkflowJobRequest.retryConfiguration, specRetryConfiguration);
1165
+ if (this.logger)
1166
+ retrier.logger = this.logger;
1167
+ const request = yield oci_common_1.composeRequest({
1168
+ baseEndpoint: this._endpoint,
1169
+ defaultHeaders: this._defaultHeaders,
1170
+ path: "/mediaWorkflowJobs/{mediaWorkflowJobId}",
1171
+ method: "DELETE",
1172
+ pathParams: pathParams,
1173
+ headerParams: headerParams,
1174
+ queryParams: queryParams
1175
+ });
1176
+ try {
1177
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
1178
+ const sdkResponse = oci_common_1.composeResponse({
1179
+ responseObject: {},
1180
+ responseHeaders: [
1181
+ {
1182
+ value: response.headers.get("opc-work-request-id"),
1183
+ key: "opcWorkRequestId",
1184
+ dataType: "string"
1185
+ },
1186
+ {
1187
+ value: response.headers.get("opc-request-id"),
1188
+ key: "opcRequestId",
1189
+ dataType: "string"
1190
+ }
1191
+ ]
1192
+ });
1193
+ return sdkResponse;
1194
+ }
1195
+ catch (err) {
1196
+ throw err;
1197
+ }
1198
+ });
1199
+ }
1200
+ /**
1201
+ * The StreamCdnConfig lifecycleState will change to DELETED.
1202
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
1203
+ * @param DeleteStreamCdnConfigRequest
1204
+ * @return DeleteStreamCdnConfigResponse
1205
+ * @throws OciError when an error occurs
1206
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.35.1/mediaservices/DeleteStreamCdnConfig.ts.html |here} to see how to use DeleteStreamCdnConfig API.
1207
+ */
1208
+ deleteStreamCdnConfig(deleteStreamCdnConfigRequest) {
1209
+ return __awaiter(this, void 0, void 0, function* () {
1210
+ if (this.logger)
1211
+ this.logger.debug("Calling operation MediaServicesClient#deleteStreamCdnConfig.");
1212
+ const operationName = "deleteStreamCdnConfig";
1213
+ const apiReferenceLink = "";
1214
+ const pathParams = {
1215
+ "{streamCdnConfigId}": deleteStreamCdnConfigRequest.streamCdnConfigId
1216
+ };
1217
+ const queryParams = {};
1218
+ let headerParams = {
1219
+ "Content-Type": common.Constants.APPLICATION_JSON,
1220
+ "opc-request-id": deleteStreamCdnConfigRequest.opcRequestId,
1221
+ "if-match": deleteStreamCdnConfigRequest.ifMatch
1222
+ };
1223
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
1224
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, deleteStreamCdnConfigRequest.retryConfiguration, specRetryConfiguration);
1225
+ if (this.logger)
1226
+ retrier.logger = this.logger;
1227
+ const request = yield oci_common_1.composeRequest({
1228
+ baseEndpoint: this._endpoint,
1229
+ defaultHeaders: this._defaultHeaders,
1230
+ path: "/streamCdnConfigs/{streamCdnConfigId}",
1231
+ method: "DELETE",
1232
+ pathParams: pathParams,
1233
+ headerParams: headerParams,
1234
+ queryParams: queryParams
1235
+ });
1236
+ try {
1237
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
1238
+ const sdkResponse = oci_common_1.composeResponse({
1239
+ responseObject: {},
1240
+ responseHeaders: [
1241
+ {
1242
+ value: response.headers.get("opc-request-id"),
1243
+ key: "opcRequestId",
1244
+ dataType: "string"
1245
+ }
1246
+ ]
1247
+ });
1248
+ return sdkResponse;
1249
+ }
1250
+ catch (err) {
1251
+ throw err;
1252
+ }
1253
+ });
1254
+ }
1255
+ /**
1256
+ * The Stream Distribution Channel lifecycleState will change to DELETED.
1257
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
1258
+ * @param DeleteStreamDistributionChannelRequest
1259
+ * @return DeleteStreamDistributionChannelResponse
1260
+ * @throws OciError when an error occurs
1261
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.35.1/mediaservices/DeleteStreamDistributionChannel.ts.html |here} to see how to use DeleteStreamDistributionChannel API.
1262
+ */
1263
+ deleteStreamDistributionChannel(deleteStreamDistributionChannelRequest) {
1264
+ return __awaiter(this, void 0, void 0, function* () {
1265
+ if (this.logger)
1266
+ this.logger.debug("Calling operation MediaServicesClient#deleteStreamDistributionChannel.");
1267
+ const operationName = "deleteStreamDistributionChannel";
1268
+ const apiReferenceLink = "";
1269
+ const pathParams = {
1270
+ "{streamDistributionChannelId}": deleteStreamDistributionChannelRequest.streamDistributionChannelId
1271
+ };
1272
+ const queryParams = {};
1273
+ let headerParams = {
1274
+ "Content-Type": common.Constants.APPLICATION_JSON,
1275
+ "opc-request-id": deleteStreamDistributionChannelRequest.opcRequestId,
1276
+ "if-match": deleteStreamDistributionChannelRequest.ifMatch
1277
+ };
1278
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
1279
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, deleteStreamDistributionChannelRequest.retryConfiguration, specRetryConfiguration);
1280
+ if (this.logger)
1281
+ retrier.logger = this.logger;
1282
+ const request = yield oci_common_1.composeRequest({
1283
+ baseEndpoint: this._endpoint,
1284
+ defaultHeaders: this._defaultHeaders,
1285
+ path: "/streamDistributionChannels/{streamDistributionChannelId}",
1286
+ method: "DELETE",
1287
+ pathParams: pathParams,
1288
+ headerParams: headerParams,
1289
+ queryParams: queryParams
1290
+ });
1291
+ try {
1292
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
1293
+ const sdkResponse = oci_common_1.composeResponse({
1294
+ responseObject: {},
1295
+ responseHeaders: [
1296
+ {
1297
+ value: response.headers.get("opc-request-id"),
1298
+ key: "opcRequestId",
1299
+ dataType: "string"
1300
+ }
1301
+ ]
1302
+ });
1303
+ return sdkResponse;
1304
+ }
1305
+ catch (err) {
1306
+ throw err;
1307
+ }
1308
+ });
1309
+ }
1310
+ /**
1311
+ * The Stream Packaging Configuration lifecycleState will change to DELETED.
1312
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
1313
+ * @param DeleteStreamPackagingConfigRequest
1314
+ * @return DeleteStreamPackagingConfigResponse
1315
+ * @throws OciError when an error occurs
1316
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.35.1/mediaservices/DeleteStreamPackagingConfig.ts.html |here} to see how to use DeleteStreamPackagingConfig API.
1317
+ */
1318
+ deleteStreamPackagingConfig(deleteStreamPackagingConfigRequest) {
1319
+ return __awaiter(this, void 0, void 0, function* () {
1320
+ if (this.logger)
1321
+ this.logger.debug("Calling operation MediaServicesClient#deleteStreamPackagingConfig.");
1322
+ const operationName = "deleteStreamPackagingConfig";
1323
+ const apiReferenceLink = "";
1324
+ const pathParams = {
1325
+ "{streamPackagingConfigId}": deleteStreamPackagingConfigRequest.streamPackagingConfigId
1326
+ };
1327
+ const queryParams = {};
1328
+ let headerParams = {
1329
+ "Content-Type": common.Constants.APPLICATION_JSON,
1330
+ "opc-request-id": deleteStreamPackagingConfigRequest.opcRequestId,
1331
+ "if-match": deleteStreamPackagingConfigRequest.ifMatch
1332
+ };
1333
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
1334
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, deleteStreamPackagingConfigRequest.retryConfiguration, specRetryConfiguration);
1335
+ if (this.logger)
1336
+ retrier.logger = this.logger;
1337
+ const request = yield oci_common_1.composeRequest({
1338
+ baseEndpoint: this._endpoint,
1339
+ defaultHeaders: this._defaultHeaders,
1340
+ path: "/streamPackagingConfigs/{streamPackagingConfigId}",
1341
+ method: "DELETE",
1342
+ pathParams: pathParams,
1343
+ headerParams: headerParams,
1344
+ queryParams: queryParams
1345
+ });
1346
+ try {
1347
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
1348
+ const sdkResponse = oci_common_1.composeResponse({
1349
+ responseObject: {},
1350
+ responseHeaders: [
1351
+ {
1352
+ value: response.headers.get("opc-request-id"),
1353
+ key: "opcRequestId",
1354
+ dataType: "string"
1355
+ }
1356
+ ]
1357
+ });
1358
+ return sdkResponse;
1359
+ }
1360
+ catch (err) {
1361
+ throw err;
1362
+ }
1363
+ });
1364
+ }
1365
+ /**
1366
+ * Gets a MediaAsset by identifier.
1367
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
1368
+ * @param GetMediaAssetRequest
1369
+ * @return GetMediaAssetResponse
1370
+ * @throws OciError when an error occurs
1371
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.35.1/mediaservices/GetMediaAsset.ts.html |here} to see how to use GetMediaAsset API.
1372
+ */
1373
+ getMediaAsset(getMediaAssetRequest) {
1374
+ return __awaiter(this, void 0, void 0, function* () {
1375
+ if (this.logger)
1376
+ this.logger.debug("Calling operation MediaServicesClient#getMediaAsset.");
1377
+ const operationName = "getMediaAsset";
1378
+ const apiReferenceLink = "";
1379
+ const pathParams = {
1380
+ "{mediaAssetId}": getMediaAssetRequest.mediaAssetId
1381
+ };
1382
+ const queryParams = {};
1383
+ let headerParams = {
1384
+ "Content-Type": common.Constants.APPLICATION_JSON,
1385
+ "opc-request-id": getMediaAssetRequest.opcRequestId
1386
+ };
1387
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
1388
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getMediaAssetRequest.retryConfiguration, specRetryConfiguration);
1389
+ if (this.logger)
1390
+ retrier.logger = this.logger;
1391
+ const request = yield oci_common_1.composeRequest({
1392
+ baseEndpoint: this._endpoint,
1393
+ defaultHeaders: this._defaultHeaders,
1394
+ path: "/mediaAssets/{mediaAssetId}",
1395
+ method: "GET",
1396
+ pathParams: pathParams,
1397
+ headerParams: headerParams,
1398
+ queryParams: queryParams
1399
+ });
1400
+ try {
1401
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
1402
+ const sdkResponse = oci_common_1.composeResponse({
1403
+ responseObject: {},
1404
+ body: yield response.json(),
1405
+ bodyKey: "mediaAsset",
1406
+ bodyModel: model.MediaAsset,
1407
+ type: "model.MediaAsset",
1408
+ responseHeaders: [
1409
+ {
1410
+ value: response.headers.get("etag"),
1411
+ key: "etag",
1412
+ dataType: "string"
1413
+ },
1414
+ {
1415
+ value: response.headers.get("opc-request-id"),
1416
+ key: "opcRequestId",
1417
+ dataType: "string"
1418
+ }
1419
+ ]
1420
+ });
1421
+ return sdkResponse;
1422
+ }
1423
+ catch (err) {
1424
+ throw err;
1425
+ }
1426
+ });
1427
+ }
1428
+ /**
1429
+ * Gets a MediaAssetDistributionChannelAttachment for a MediaAsset by identifiers.
1430
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
1431
+ * @param GetMediaAssetDistributionChannelAttachmentRequest
1432
+ * @return GetMediaAssetDistributionChannelAttachmentResponse
1433
+ * @throws OciError when an error occurs
1434
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.35.1/mediaservices/GetMediaAssetDistributionChannelAttachment.ts.html |here} to see how to use GetMediaAssetDistributionChannelAttachment API.
1435
+ */
1436
+ getMediaAssetDistributionChannelAttachment(getMediaAssetDistributionChannelAttachmentRequest) {
1437
+ return __awaiter(this, void 0, void 0, function* () {
1438
+ if (this.logger)
1439
+ this.logger.debug("Calling operation MediaServicesClient#getMediaAssetDistributionChannelAttachment.");
1440
+ const operationName = "getMediaAssetDistributionChannelAttachment";
1441
+ const apiReferenceLink = "";
1442
+ const pathParams = {
1443
+ "{mediaAssetId}": getMediaAssetDistributionChannelAttachmentRequest.mediaAssetId,
1444
+ "{distributionChannelId}": getMediaAssetDistributionChannelAttachmentRequest.distributionChannelId
1445
+ };
1446
+ const queryParams = {
1447
+ "version": getMediaAssetDistributionChannelAttachmentRequest.version
1448
+ };
1449
+ let headerParams = {
1450
+ "Content-Type": common.Constants.APPLICATION_JSON,
1451
+ "opc-request-id": getMediaAssetDistributionChannelAttachmentRequest.opcRequestId
1452
+ };
1453
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
1454
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getMediaAssetDistributionChannelAttachmentRequest.retryConfiguration, specRetryConfiguration);
1455
+ if (this.logger)
1456
+ retrier.logger = this.logger;
1457
+ const request = yield oci_common_1.composeRequest({
1458
+ baseEndpoint: this._endpoint,
1459
+ defaultHeaders: this._defaultHeaders,
1460
+ path: "/mediaAssets/{mediaAssetId}/distributionChannelAttachments/{distributionChannelId}",
1461
+ method: "GET",
1462
+ pathParams: pathParams,
1463
+ headerParams: headerParams,
1464
+ queryParams: queryParams
1465
+ });
1466
+ try {
1467
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
1468
+ const sdkResponse = oci_common_1.composeResponse({
1469
+ responseObject: {},
1470
+ body: yield response.json(),
1471
+ bodyKey: "mediaAssetDistributionChannelAttachment",
1472
+ bodyModel: model.MediaAssetDistributionChannelAttachment,
1473
+ type: "model.MediaAssetDistributionChannelAttachment",
1474
+ responseHeaders: [
1475
+ {
1476
+ value: response.headers.get("etag"),
1477
+ key: "etag",
1478
+ dataType: "string"
1479
+ },
1480
+ {
1481
+ value: response.headers.get("opc-request-id"),
1482
+ key: "opcRequestId",
1483
+ dataType: "string"
1484
+ }
1485
+ ]
1486
+ });
1487
+ return sdkResponse;
1488
+ }
1489
+ catch (err) {
1490
+ throw err;
1491
+ }
1492
+ });
1493
+ }
1494
+ /**
1495
+ * Gets a MediaWorkflow by identifier.
1496
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
1497
+ * @param GetMediaWorkflowRequest
1498
+ * @return GetMediaWorkflowResponse
1499
+ * @throws OciError when an error occurs
1500
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.35.1/mediaservices/GetMediaWorkflow.ts.html |here} to see how to use GetMediaWorkflow API.
1501
+ */
1502
+ getMediaWorkflow(getMediaWorkflowRequest) {
1503
+ return __awaiter(this, void 0, void 0, function* () {
1504
+ if (this.logger)
1505
+ this.logger.debug("Calling operation MediaServicesClient#getMediaWorkflow.");
1506
+ const operationName = "getMediaWorkflow";
1507
+ const apiReferenceLink = "";
1508
+ const pathParams = {
1509
+ "{mediaWorkflowId}": getMediaWorkflowRequest.mediaWorkflowId
1510
+ };
1511
+ const queryParams = {};
1512
+ let headerParams = {
1513
+ "Content-Type": common.Constants.APPLICATION_JSON,
1514
+ "opc-request-id": getMediaWorkflowRequest.opcRequestId
1515
+ };
1516
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
1517
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getMediaWorkflowRequest.retryConfiguration, specRetryConfiguration);
1518
+ if (this.logger)
1519
+ retrier.logger = this.logger;
1520
+ const request = yield oci_common_1.composeRequest({
1521
+ baseEndpoint: this._endpoint,
1522
+ defaultHeaders: this._defaultHeaders,
1523
+ path: "/mediaWorkflows/{mediaWorkflowId}",
1524
+ method: "GET",
1525
+ pathParams: pathParams,
1526
+ headerParams: headerParams,
1527
+ queryParams: queryParams
1528
+ });
1529
+ try {
1530
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
1531
+ const sdkResponse = oci_common_1.composeResponse({
1532
+ responseObject: {},
1533
+ body: yield response.json(),
1534
+ bodyKey: "mediaWorkflow",
1535
+ bodyModel: model.MediaWorkflow,
1536
+ type: "model.MediaWorkflow",
1537
+ responseHeaders: [
1538
+ {
1539
+ value: response.headers.get("etag"),
1540
+ key: "etag",
1541
+ dataType: "string"
1542
+ },
1543
+ {
1544
+ value: response.headers.get("opc-request-id"),
1545
+ key: "opcRequestId",
1546
+ dataType: "string"
1547
+ }
1548
+ ]
1549
+ });
1550
+ return sdkResponse;
1551
+ }
1552
+ catch (err) {
1553
+ throw err;
1554
+ }
1555
+ });
1556
+ }
1557
+ /**
1558
+ * Gets a MediaWorkflowConfiguration by identifier
1559
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
1560
+ * @param GetMediaWorkflowConfigurationRequest
1561
+ * @return GetMediaWorkflowConfigurationResponse
1562
+ * @throws OciError when an error occurs
1563
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.35.1/mediaservices/GetMediaWorkflowConfiguration.ts.html |here} to see how to use GetMediaWorkflowConfiguration API.
1564
+ */
1565
+ getMediaWorkflowConfiguration(getMediaWorkflowConfigurationRequest) {
1566
+ return __awaiter(this, void 0, void 0, function* () {
1567
+ if (this.logger)
1568
+ this.logger.debug("Calling operation MediaServicesClient#getMediaWorkflowConfiguration.");
1569
+ const operationName = "getMediaWorkflowConfiguration";
1570
+ const apiReferenceLink = "";
1571
+ const pathParams = {
1572
+ "{mediaWorkflowConfigurationId}": getMediaWorkflowConfigurationRequest.mediaWorkflowConfigurationId
1573
+ };
1574
+ const queryParams = {};
1575
+ let headerParams = {
1576
+ "Content-Type": common.Constants.APPLICATION_JSON,
1577
+ "opc-request-id": getMediaWorkflowConfigurationRequest.opcRequestId
1578
+ };
1579
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
1580
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getMediaWorkflowConfigurationRequest.retryConfiguration, specRetryConfiguration);
1581
+ if (this.logger)
1582
+ retrier.logger = this.logger;
1583
+ const request = yield oci_common_1.composeRequest({
1584
+ baseEndpoint: this._endpoint,
1585
+ defaultHeaders: this._defaultHeaders,
1586
+ path: "/mediaWorkflowConfigurations/{mediaWorkflowConfigurationId}",
1587
+ method: "GET",
1588
+ pathParams: pathParams,
1589
+ headerParams: headerParams,
1590
+ queryParams: queryParams
1591
+ });
1592
+ try {
1593
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
1594
+ const sdkResponse = oci_common_1.composeResponse({
1595
+ responseObject: {},
1596
+ body: yield response.json(),
1597
+ bodyKey: "mediaWorkflowConfiguration",
1598
+ bodyModel: model.MediaWorkflowConfiguration,
1599
+ type: "model.MediaWorkflowConfiguration",
1600
+ responseHeaders: [
1601
+ {
1602
+ value: response.headers.get("etag"),
1603
+ key: "etag",
1604
+ dataType: "string"
1605
+ },
1606
+ {
1607
+ value: response.headers.get("opc-request-id"),
1608
+ key: "opcRequestId",
1609
+ dataType: "string"
1610
+ }
1611
+ ]
1612
+ });
1613
+ return sdkResponse;
1614
+ }
1615
+ catch (err) {
1616
+ throw err;
1617
+ }
1618
+ });
1619
+ }
1620
+ /**
1621
+ * Gets the MediaWorkflowJob.
1622
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
1623
+ * @param GetMediaWorkflowJobRequest
1624
+ * @return GetMediaWorkflowJobResponse
1625
+ * @throws OciError when an error occurs
1626
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.35.1/mediaservices/GetMediaWorkflowJob.ts.html |here} to see how to use GetMediaWorkflowJob API.
1627
+ */
1628
+ getMediaWorkflowJob(getMediaWorkflowJobRequest) {
1629
+ return __awaiter(this, void 0, void 0, function* () {
1630
+ if (this.logger)
1631
+ this.logger.debug("Calling operation MediaServicesClient#getMediaWorkflowJob.");
1632
+ const operationName = "getMediaWorkflowJob";
1633
+ const apiReferenceLink = "";
1634
+ const pathParams = {
1635
+ "{mediaWorkflowJobId}": getMediaWorkflowJobRequest.mediaWorkflowJobId
1636
+ };
1637
+ const queryParams = {};
1638
+ let headerParams = {
1639
+ "Content-Type": common.Constants.APPLICATION_JSON,
1640
+ "opc-request-id": getMediaWorkflowJobRequest.opcRequestId
1641
+ };
1642
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
1643
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getMediaWorkflowJobRequest.retryConfiguration, specRetryConfiguration);
1644
+ if (this.logger)
1645
+ retrier.logger = this.logger;
1646
+ const request = yield oci_common_1.composeRequest({
1647
+ baseEndpoint: this._endpoint,
1648
+ defaultHeaders: this._defaultHeaders,
1649
+ path: "/mediaWorkflowJobs/{mediaWorkflowJobId}",
1650
+ method: "GET",
1651
+ pathParams: pathParams,
1652
+ headerParams: headerParams,
1653
+ queryParams: queryParams
1654
+ });
1655
+ try {
1656
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
1657
+ const sdkResponse = oci_common_1.composeResponse({
1658
+ responseObject: {},
1659
+ body: yield response.json(),
1660
+ bodyKey: "mediaWorkflowJob",
1661
+ bodyModel: model.MediaWorkflowJob,
1662
+ type: "model.MediaWorkflowJob",
1663
+ responseHeaders: [
1664
+ {
1665
+ value: response.headers.get("etag"),
1666
+ key: "etag",
1667
+ dataType: "string"
1668
+ },
1669
+ {
1670
+ value: response.headers.get("opc-request-id"),
1671
+ key: "opcRequestId",
1672
+ dataType: "string"
1673
+ }
1674
+ ]
1675
+ });
1676
+ return sdkResponse;
1677
+ }
1678
+ catch (err) {
1679
+ throw err;
1680
+ }
1681
+ });
1682
+ }
1683
+ /**
1684
+ * Get the MediaWorkflowJobFact identified by the mediaWorkflowJobId and Fact ID.
1685
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
1686
+ * @param GetMediaWorkflowJobFactRequest
1687
+ * @return GetMediaWorkflowJobFactResponse
1688
+ * @throws OciError when an error occurs
1689
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.35.1/mediaservices/GetMediaWorkflowJobFact.ts.html |here} to see how to use GetMediaWorkflowJobFact API.
1690
+ */
1691
+ getMediaWorkflowJobFact(getMediaWorkflowJobFactRequest) {
1692
+ return __awaiter(this, void 0, void 0, function* () {
1693
+ if (this.logger)
1694
+ this.logger.debug("Calling operation MediaServicesClient#getMediaWorkflowJobFact.");
1695
+ const operationName = "getMediaWorkflowJobFact";
1696
+ const apiReferenceLink = "";
1697
+ const pathParams = {
1698
+ "{mediaWorkflowJobId}": getMediaWorkflowJobFactRequest.mediaWorkflowJobId,
1699
+ "{key}": getMediaWorkflowJobFactRequest.key
1700
+ };
1701
+ const queryParams = {};
1702
+ let headerParams = {
1703
+ "Content-Type": common.Constants.APPLICATION_JSON,
1704
+ "opc-request-id": getMediaWorkflowJobFactRequest.opcRequestId
1705
+ };
1706
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
1707
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getMediaWorkflowJobFactRequest.retryConfiguration, specRetryConfiguration);
1708
+ if (this.logger)
1709
+ retrier.logger = this.logger;
1710
+ const request = yield oci_common_1.composeRequest({
1711
+ baseEndpoint: this._endpoint,
1712
+ defaultHeaders: this._defaultHeaders,
1713
+ path: "/mediaWorkflowJobs/{mediaWorkflowJobId}/facts/{key}",
1714
+ method: "GET",
1715
+ pathParams: pathParams,
1716
+ headerParams: headerParams,
1717
+ queryParams: queryParams
1718
+ });
1719
+ try {
1720
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
1721
+ const sdkResponse = oci_common_1.composeResponse({
1722
+ responseObject: {},
1723
+ body: yield response.json(),
1724
+ bodyKey: "mediaWorkflowJobFact",
1725
+ bodyModel: model.MediaWorkflowJobFact,
1726
+ type: "model.MediaWorkflowJobFact",
1727
+ responseHeaders: [
1728
+ {
1729
+ value: response.headers.get("etag"),
1730
+ key: "etag",
1731
+ dataType: "string"
1732
+ },
1733
+ {
1734
+ value: response.headers.get("opc-request-id"),
1735
+ key: "opcRequestId",
1736
+ dataType: "string"
1737
+ }
1738
+ ]
1739
+ });
1740
+ return sdkResponse;
1741
+ }
1742
+ catch (err) {
1743
+ throw err;
1744
+ }
1745
+ });
1746
+ }
1747
+ /**
1748
+ * Gets a StreamCdnConfig by identifier.
1749
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
1750
+ * @param GetStreamCdnConfigRequest
1751
+ * @return GetStreamCdnConfigResponse
1752
+ * @throws OciError when an error occurs
1753
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.35.1/mediaservices/GetStreamCdnConfig.ts.html |here} to see how to use GetStreamCdnConfig API.
1754
+ */
1755
+ getStreamCdnConfig(getStreamCdnConfigRequest) {
1756
+ return __awaiter(this, void 0, void 0, function* () {
1757
+ if (this.logger)
1758
+ this.logger.debug("Calling operation MediaServicesClient#getStreamCdnConfig.");
1759
+ const operationName = "getStreamCdnConfig";
1760
+ const apiReferenceLink = "";
1761
+ const pathParams = {
1762
+ "{streamCdnConfigId}": getStreamCdnConfigRequest.streamCdnConfigId
1763
+ };
1764
+ const queryParams = {};
1765
+ let headerParams = {
1766
+ "Content-Type": common.Constants.APPLICATION_JSON,
1767
+ "opc-request-id": getStreamCdnConfigRequest.opcRequestId
1768
+ };
1769
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
1770
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getStreamCdnConfigRequest.retryConfiguration, specRetryConfiguration);
1771
+ if (this.logger)
1772
+ retrier.logger = this.logger;
1773
+ const request = yield oci_common_1.composeRequest({
1774
+ baseEndpoint: this._endpoint,
1775
+ defaultHeaders: this._defaultHeaders,
1776
+ path: "/streamCdnConfigs/{streamCdnConfigId}",
1777
+ method: "GET",
1778
+ pathParams: pathParams,
1779
+ headerParams: headerParams,
1780
+ queryParams: queryParams
1781
+ });
1782
+ try {
1783
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
1784
+ const sdkResponse = oci_common_1.composeResponse({
1785
+ responseObject: {},
1786
+ body: yield response.json(),
1787
+ bodyKey: "streamCdnConfig",
1788
+ bodyModel: model.StreamCdnConfig,
1789
+ type: "model.StreamCdnConfig",
1790
+ responseHeaders: [
1791
+ {
1792
+ value: response.headers.get("etag"),
1793
+ key: "etag",
1794
+ dataType: "string"
1795
+ },
1796
+ {
1797
+ value: response.headers.get("opc-request-id"),
1798
+ key: "opcRequestId",
1799
+ dataType: "string"
1800
+ }
1801
+ ]
1802
+ });
1803
+ return sdkResponse;
1804
+ }
1805
+ catch (err) {
1806
+ throw err;
1807
+ }
1808
+ });
1809
+ }
1810
+ /**
1811
+ * Gets a Stream Distribution Channel by identifier.
1812
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
1813
+ * @param GetStreamDistributionChannelRequest
1814
+ * @return GetStreamDistributionChannelResponse
1815
+ * @throws OciError when an error occurs
1816
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.35.1/mediaservices/GetStreamDistributionChannel.ts.html |here} to see how to use GetStreamDistributionChannel API.
1817
+ */
1818
+ getStreamDistributionChannel(getStreamDistributionChannelRequest) {
1819
+ return __awaiter(this, void 0, void 0, function* () {
1820
+ if (this.logger)
1821
+ this.logger.debug("Calling operation MediaServicesClient#getStreamDistributionChannel.");
1822
+ const operationName = "getStreamDistributionChannel";
1823
+ const apiReferenceLink = "";
1824
+ const pathParams = {
1825
+ "{streamDistributionChannelId}": getStreamDistributionChannelRequest.streamDistributionChannelId
1826
+ };
1827
+ const queryParams = {};
1828
+ let headerParams = {
1829
+ "Content-Type": common.Constants.APPLICATION_JSON,
1830
+ "opc-request-id": getStreamDistributionChannelRequest.opcRequestId
1831
+ };
1832
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
1833
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getStreamDistributionChannelRequest.retryConfiguration, specRetryConfiguration);
1834
+ if (this.logger)
1835
+ retrier.logger = this.logger;
1836
+ const request = yield oci_common_1.composeRequest({
1837
+ baseEndpoint: this._endpoint,
1838
+ defaultHeaders: this._defaultHeaders,
1839
+ path: "/streamDistributionChannels/{streamDistributionChannelId}",
1840
+ method: "GET",
1841
+ pathParams: pathParams,
1842
+ headerParams: headerParams,
1843
+ queryParams: queryParams
1844
+ });
1845
+ try {
1846
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
1847
+ const sdkResponse = oci_common_1.composeResponse({
1848
+ responseObject: {},
1849
+ body: yield response.json(),
1850
+ bodyKey: "streamDistributionChannel",
1851
+ bodyModel: model.StreamDistributionChannel,
1852
+ type: "model.StreamDistributionChannel",
1853
+ responseHeaders: [
1854
+ {
1855
+ value: response.headers.get("etag"),
1856
+ key: "etag",
1857
+ dataType: "string"
1858
+ },
1859
+ {
1860
+ value: response.headers.get("opc-request-id"),
1861
+ key: "opcRequestId",
1862
+ dataType: "string"
1863
+ }
1864
+ ]
1865
+ });
1866
+ return sdkResponse;
1867
+ }
1868
+ catch (err) {
1869
+ throw err;
1870
+ }
1871
+ });
1872
+ }
1873
+ /**
1874
+ * Gets a Stream Packaging Configuration by identifier.
1875
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
1876
+ * @param GetStreamPackagingConfigRequest
1877
+ * @return GetStreamPackagingConfigResponse
1878
+ * @throws OciError when an error occurs
1879
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.35.1/mediaservices/GetStreamPackagingConfig.ts.html |here} to see how to use GetStreamPackagingConfig API.
1880
+ */
1881
+ getStreamPackagingConfig(getStreamPackagingConfigRequest) {
1882
+ return __awaiter(this, void 0, void 0, function* () {
1883
+ if (this.logger)
1884
+ this.logger.debug("Calling operation MediaServicesClient#getStreamPackagingConfig.");
1885
+ const operationName = "getStreamPackagingConfig";
1886
+ const apiReferenceLink = "";
1887
+ const pathParams = {
1888
+ "{streamPackagingConfigId}": getStreamPackagingConfigRequest.streamPackagingConfigId
1889
+ };
1890
+ const queryParams = {};
1891
+ let headerParams = {
1892
+ "Content-Type": common.Constants.APPLICATION_JSON,
1893
+ "opc-request-id": getStreamPackagingConfigRequest.opcRequestId
1894
+ };
1895
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
1896
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getStreamPackagingConfigRequest.retryConfiguration, specRetryConfiguration);
1897
+ if (this.logger)
1898
+ retrier.logger = this.logger;
1899
+ const request = yield oci_common_1.composeRequest({
1900
+ baseEndpoint: this._endpoint,
1901
+ defaultHeaders: this._defaultHeaders,
1902
+ path: "/streamPackagingConfigs/{streamPackagingConfigId}",
1903
+ method: "GET",
1904
+ pathParams: pathParams,
1905
+ headerParams: headerParams,
1906
+ queryParams: queryParams
1907
+ });
1908
+ try {
1909
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
1910
+ const sdkResponse = oci_common_1.composeResponse({
1911
+ responseObject: {},
1912
+ body: yield response.json(),
1913
+ bodyKey: "streamPackagingConfig",
1914
+ bodyModel: model.StreamPackagingConfig,
1915
+ type: "model.StreamPackagingConfig",
1916
+ responseHeaders: [
1917
+ {
1918
+ value: response.headers.get("etag"),
1919
+ key: "etag",
1920
+ dataType: "string"
1921
+ },
1922
+ {
1923
+ value: response.headers.get("opc-request-id"),
1924
+ key: "opcRequestId",
1925
+ dataType: "string"
1926
+ }
1927
+ ]
1928
+ });
1929
+ return sdkResponse;
1930
+ }
1931
+ catch (err) {
1932
+ throw err;
1933
+ }
1934
+ });
1935
+ }
1936
+ /**
1937
+ * Ingests an Asset into a Distribution Channel.
1938
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
1939
+ * @param IngestStreamDistributionChannelRequest
1940
+ * @return IngestStreamDistributionChannelResponse
1941
+ * @throws OciError when an error occurs
1942
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.35.1/mediaservices/IngestStreamDistributionChannel.ts.html |here} to see how to use IngestStreamDistributionChannel API.
1943
+ */
1944
+ ingestStreamDistributionChannel(ingestStreamDistributionChannelRequest) {
1945
+ return __awaiter(this, void 0, void 0, function* () {
1946
+ if (this.logger)
1947
+ this.logger.debug("Calling operation MediaServicesClient#ingestStreamDistributionChannel.");
1948
+ const operationName = "ingestStreamDistributionChannel";
1949
+ const apiReferenceLink = "";
1950
+ const pathParams = {
1951
+ "{streamDistributionChannelId}": ingestStreamDistributionChannelRequest.streamDistributionChannelId
1952
+ };
1953
+ const queryParams = {};
1954
+ let headerParams = {
1955
+ "Content-Type": common.Constants.APPLICATION_JSON,
1956
+ "opc-retry-token": ingestStreamDistributionChannelRequest.opcRetryToken,
1957
+ "opc-request-id": ingestStreamDistributionChannelRequest.opcRequestId
1958
+ };
1959
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
1960
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, ingestStreamDistributionChannelRequest.retryConfiguration, specRetryConfiguration);
1961
+ if (this.logger)
1962
+ retrier.logger = this.logger;
1963
+ const request = yield oci_common_1.composeRequest({
1964
+ baseEndpoint: this._endpoint,
1965
+ defaultHeaders: this._defaultHeaders,
1966
+ path: "/streamDistributionChannels/{streamDistributionChannelId}/actions/ingest",
1967
+ method: "POST",
1968
+ bodyContent: common.ObjectSerializer.serialize(ingestStreamDistributionChannelRequest.ingestStreamDistributionChannelDetails, "IngestStreamDistributionChannelDetails", model.IngestStreamDistributionChannelDetails.getJsonObj),
1969
+ pathParams: pathParams,
1970
+ headerParams: headerParams,
1971
+ queryParams: queryParams
1972
+ });
1973
+ try {
1974
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
1975
+ const sdkResponse = oci_common_1.composeResponse({
1976
+ responseObject: {},
1977
+ body: yield response.json(),
1978
+ bodyKey: "ingestStreamDistributionChannelResult",
1979
+ bodyModel: model.IngestStreamDistributionChannelResult,
1980
+ type: "model.IngestStreamDistributionChannelResult",
1981
+ responseHeaders: [
1982
+ {
1983
+ value: response.headers.get("opc-request-id"),
1984
+ key: "opcRequestId",
1985
+ dataType: "string"
1986
+ }
1987
+ ]
1988
+ });
1989
+ return sdkResponse;
1990
+ }
1991
+ catch (err) {
1992
+ throw err;
1993
+ }
1994
+ });
1995
+ }
1996
+ /**
1997
+ * Lists the MediaAssetDistributionChannelAttachments for a MediaAsset by identifier.
1998
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
1999
+ * @param ListMediaAssetDistributionChannelAttachmentsRequest
2000
+ * @return ListMediaAssetDistributionChannelAttachmentsResponse
2001
+ * @throws OciError when an error occurs
2002
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.35.1/mediaservices/ListMediaAssetDistributionChannelAttachments.ts.html |here} to see how to use ListMediaAssetDistributionChannelAttachments API.
2003
+ */
2004
+ listMediaAssetDistributionChannelAttachments(listMediaAssetDistributionChannelAttachmentsRequest) {
2005
+ return __awaiter(this, void 0, void 0, function* () {
2006
+ if (this.logger)
2007
+ this.logger.debug("Calling operation MediaServicesClient#listMediaAssetDistributionChannelAttachments.");
2008
+ const operationName = "listMediaAssetDistributionChannelAttachments";
2009
+ const apiReferenceLink = "";
2010
+ const pathParams = {
2011
+ "{mediaAssetId}": listMediaAssetDistributionChannelAttachmentsRequest.mediaAssetId
2012
+ };
2013
+ const queryParams = {
2014
+ "displayName": listMediaAssetDistributionChannelAttachmentsRequest.displayName,
2015
+ "limit": listMediaAssetDistributionChannelAttachmentsRequest.limit,
2016
+ "page": listMediaAssetDistributionChannelAttachmentsRequest.page,
2017
+ "sortOrder": listMediaAssetDistributionChannelAttachmentsRequest.sortOrder,
2018
+ "sortBy": listMediaAssetDistributionChannelAttachmentsRequest.sortBy,
2019
+ "distributionChannelId": listMediaAssetDistributionChannelAttachmentsRequest.distributionChannelId
2020
+ };
2021
+ let headerParams = {
2022
+ "Content-Type": common.Constants.APPLICATION_JSON,
2023
+ "opc-request-id": listMediaAssetDistributionChannelAttachmentsRequest.opcRequestId
2024
+ };
2025
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
2026
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listMediaAssetDistributionChannelAttachmentsRequest.retryConfiguration, specRetryConfiguration);
2027
+ if (this.logger)
2028
+ retrier.logger = this.logger;
2029
+ const request = yield oci_common_1.composeRequest({
2030
+ baseEndpoint: this._endpoint,
2031
+ defaultHeaders: this._defaultHeaders,
2032
+ path: "/mediaAssets/{mediaAssetId}/distributionChannelAttachments",
2033
+ method: "GET",
2034
+ pathParams: pathParams,
2035
+ headerParams: headerParams,
2036
+ queryParams: queryParams
2037
+ });
2038
+ try {
2039
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
2040
+ const sdkResponse = oci_common_1.composeResponse({
2041
+ responseObject: {},
2042
+ body: yield response.json(),
2043
+ bodyKey: "mediaAssetDistributionChannelAttachmentCollection",
2044
+ bodyModel: model.MediaAssetDistributionChannelAttachmentCollection,
2045
+ type: "model.MediaAssetDistributionChannelAttachmentCollection",
2046
+ responseHeaders: [
2047
+ {
2048
+ value: response.headers.get("opc-request-id"),
2049
+ key: "opcRequestId",
2050
+ dataType: "string"
2051
+ },
2052
+ {
2053
+ value: response.headers.get("opc-next-page"),
2054
+ key: "opcNextPage",
2055
+ dataType: "string"
2056
+ }
2057
+ ]
2058
+ });
2059
+ return sdkResponse;
2060
+ }
2061
+ catch (err) {
2062
+ throw err;
2063
+ }
2064
+ });
2065
+ }
2066
+ /**
2067
+ * Returns a list of MediaAssetSummary.
2068
+ *
2069
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
2070
+ * @param ListMediaAssetsRequest
2071
+ * @return ListMediaAssetsResponse
2072
+ * @throws OciError when an error occurs
2073
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.35.1/mediaservices/ListMediaAssets.ts.html |here} to see how to use ListMediaAssets API.
2074
+ */
2075
+ listMediaAssets(listMediaAssetsRequest) {
2076
+ return __awaiter(this, void 0, void 0, function* () {
2077
+ if (this.logger)
2078
+ this.logger.debug("Calling operation MediaServicesClient#listMediaAssets.");
2079
+ const operationName = "listMediaAssets";
2080
+ const apiReferenceLink = "";
2081
+ const pathParams = {};
2082
+ const queryParams = {
2083
+ "compartmentId": listMediaAssetsRequest.compartmentId,
2084
+ "displayName": listMediaAssetsRequest.displayName,
2085
+ "limit": listMediaAssetsRequest.limit,
2086
+ "page": listMediaAssetsRequest.page,
2087
+ "lifecycleState": listMediaAssetsRequest.lifecycleState,
2088
+ "sortOrder": listMediaAssetsRequest.sortOrder,
2089
+ "sortBy": listMediaAssetsRequest.sortBy,
2090
+ "distributionChannelId": listMediaAssetsRequest.distributionChannelId,
2091
+ "parentMediaAssetId": listMediaAssetsRequest.parentMediaAssetId,
2092
+ "masterMediaAssetId": listMediaAssetsRequest.masterMediaAssetId,
2093
+ "type": listMediaAssetsRequest.type,
2094
+ "bucketName": listMediaAssetsRequest.bucketName,
2095
+ "objectName": listMediaAssetsRequest.objectName,
2096
+ "mediaWorkflowJobId": listMediaAssetsRequest.mediaWorkflowJobId,
2097
+ "sourceMediaWorkflowId": listMediaAssetsRequest.sourceMediaWorkflowId,
2098
+ "sourceMediaWorkflowVersion": listMediaAssetsRequest.sourceMediaWorkflowVersion
2099
+ };
2100
+ let headerParams = {
2101
+ "Content-Type": common.Constants.APPLICATION_JSON,
2102
+ "opc-request-id": listMediaAssetsRequest.opcRequestId
2103
+ };
2104
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
2105
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listMediaAssetsRequest.retryConfiguration, specRetryConfiguration);
2106
+ if (this.logger)
2107
+ retrier.logger = this.logger;
2108
+ const request = yield oci_common_1.composeRequest({
2109
+ baseEndpoint: this._endpoint,
2110
+ defaultHeaders: this._defaultHeaders,
2111
+ path: "/mediaAssets",
2112
+ method: "GET",
2113
+ pathParams: pathParams,
2114
+ headerParams: headerParams,
2115
+ queryParams: queryParams
2116
+ });
2117
+ try {
2118
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
2119
+ const sdkResponse = oci_common_1.composeResponse({
2120
+ responseObject: {},
2121
+ body: yield response.json(),
2122
+ bodyKey: "mediaAssetCollection",
2123
+ bodyModel: model.MediaAssetCollection,
2124
+ type: "model.MediaAssetCollection",
2125
+ responseHeaders: [
2126
+ {
2127
+ value: response.headers.get("opc-request-id"),
2128
+ key: "opcRequestId",
2129
+ dataType: "string"
2130
+ },
2131
+ {
2132
+ value: response.headers.get("opc-next-page"),
2133
+ key: "opcNextPage",
2134
+ dataType: "string"
2135
+ }
2136
+ ]
2137
+ });
2138
+ return sdkResponse;
2139
+ }
2140
+ catch (err) {
2141
+ throw err;
2142
+ }
2143
+ });
2144
+ }
2145
+ /**
2146
+ * Returns a list of MediaWorkflowConfigurations.
2147
+ *
2148
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
2149
+ * @param ListMediaWorkflowConfigurationsRequest
2150
+ * @return ListMediaWorkflowConfigurationsResponse
2151
+ * @throws OciError when an error occurs
2152
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.35.1/mediaservices/ListMediaWorkflowConfigurations.ts.html |here} to see how to use ListMediaWorkflowConfigurations API.
2153
+ */
2154
+ listMediaWorkflowConfigurations(listMediaWorkflowConfigurationsRequest) {
2155
+ return __awaiter(this, void 0, void 0, function* () {
2156
+ if (this.logger)
2157
+ this.logger.debug("Calling operation MediaServicesClient#listMediaWorkflowConfigurations.");
2158
+ const operationName = "listMediaWorkflowConfigurations";
2159
+ const apiReferenceLink = "";
2160
+ const pathParams = {};
2161
+ const queryParams = {
2162
+ "compartmentId": listMediaWorkflowConfigurationsRequest.compartmentId,
2163
+ "lifecycleState": listMediaWorkflowConfigurationsRequest.lifecycleState,
2164
+ "displayName": listMediaWorkflowConfigurationsRequest.displayName,
2165
+ "id": listMediaWorkflowConfigurationsRequest.id,
2166
+ "limit": listMediaWorkflowConfigurationsRequest.limit,
2167
+ "page": listMediaWorkflowConfigurationsRequest.page,
2168
+ "sortOrder": listMediaWorkflowConfigurationsRequest.sortOrder,
2169
+ "sortBy": listMediaWorkflowConfigurationsRequest.sortBy
2170
+ };
2171
+ let headerParams = {
2172
+ "Content-Type": common.Constants.APPLICATION_JSON,
2173
+ "opc-request-id": listMediaWorkflowConfigurationsRequest.opcRequestId
2174
+ };
2175
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
2176
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listMediaWorkflowConfigurationsRequest.retryConfiguration, specRetryConfiguration);
2177
+ if (this.logger)
2178
+ retrier.logger = this.logger;
2179
+ const request = yield oci_common_1.composeRequest({
2180
+ baseEndpoint: this._endpoint,
2181
+ defaultHeaders: this._defaultHeaders,
2182
+ path: "/mediaWorkflowConfigurations",
2183
+ method: "GET",
2184
+ pathParams: pathParams,
2185
+ headerParams: headerParams,
2186
+ queryParams: queryParams
2187
+ });
2188
+ try {
2189
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
2190
+ const sdkResponse = oci_common_1.composeResponse({
2191
+ responseObject: {},
2192
+ body: yield response.json(),
2193
+ bodyKey: "mediaWorkflowConfigurationCollection",
2194
+ bodyModel: model.MediaWorkflowConfigurationCollection,
2195
+ type: "model.MediaWorkflowConfigurationCollection",
2196
+ responseHeaders: [
2197
+ {
2198
+ value: response.headers.get("opc-request-id"),
2199
+ key: "opcRequestId",
2200
+ dataType: "string"
2201
+ },
2202
+ {
2203
+ value: response.headers.get("opc-next-page"),
2204
+ key: "opcNextPage",
2205
+ dataType: "string"
2206
+ }
2207
+ ]
2208
+ });
2209
+ return sdkResponse;
2210
+ }
2211
+ catch (err) {
2212
+ throw err;
2213
+ }
2214
+ });
2215
+ }
2216
+ /**
2217
+ * Internal API to get a point-in-time snapshot of a MediaWorkflowJob.
2218
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
2219
+ * @param ListMediaWorkflowJobFactsRequest
2220
+ * @return ListMediaWorkflowJobFactsResponse
2221
+ * @throws OciError when an error occurs
2222
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.35.1/mediaservices/ListMediaWorkflowJobFacts.ts.html |here} to see how to use ListMediaWorkflowJobFacts API.
2223
+ */
2224
+ listMediaWorkflowJobFacts(listMediaWorkflowJobFactsRequest) {
2225
+ return __awaiter(this, void 0, void 0, function* () {
2226
+ if (this.logger)
2227
+ this.logger.debug("Calling operation MediaServicesClient#listMediaWorkflowJobFacts.");
2228
+ const operationName = "listMediaWorkflowJobFacts";
2229
+ const apiReferenceLink = "";
2230
+ const pathParams = {
2231
+ "{mediaWorkflowJobId}": listMediaWorkflowJobFactsRequest.mediaWorkflowJobId
2232
+ };
2233
+ const queryParams = {
2234
+ "key": listMediaWorkflowJobFactsRequest.key,
2235
+ "type": listMediaWorkflowJobFactsRequest.type,
2236
+ "sortBy": listMediaWorkflowJobFactsRequest.sortBy,
2237
+ "sortOrder": listMediaWorkflowJobFactsRequest.sortOrder,
2238
+ "page": listMediaWorkflowJobFactsRequest.page,
2239
+ "limit": listMediaWorkflowJobFactsRequest.limit
2240
+ };
2241
+ let headerParams = {
2242
+ "Content-Type": common.Constants.APPLICATION_JSON,
2243
+ "opc-request-id": listMediaWorkflowJobFactsRequest.opcRequestId
2244
+ };
2245
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
2246
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listMediaWorkflowJobFactsRequest.retryConfiguration, specRetryConfiguration);
2247
+ if (this.logger)
2248
+ retrier.logger = this.logger;
2249
+ const request = yield oci_common_1.composeRequest({
2250
+ baseEndpoint: this._endpoint,
2251
+ defaultHeaders: this._defaultHeaders,
2252
+ path: "/mediaWorkflowJobs/{mediaWorkflowJobId}/facts",
2253
+ method: "GET",
2254
+ pathParams: pathParams,
2255
+ headerParams: headerParams,
2256
+ queryParams: queryParams
2257
+ });
2258
+ try {
2259
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
2260
+ const sdkResponse = oci_common_1.composeResponse({
2261
+ responseObject: {},
2262
+ body: yield response.json(),
2263
+ bodyKey: "mediaWorkflowJobFactCollection",
2264
+ bodyModel: model.MediaWorkflowJobFactCollection,
2265
+ type: "model.MediaWorkflowJobFactCollection",
2266
+ responseHeaders: [
2267
+ {
2268
+ value: response.headers.get("opc-request-id"),
2269
+ key: "opcRequestId",
2270
+ dataType: "string"
2271
+ },
2272
+ {
2273
+ value: response.headers.get("opc-next-page"),
2274
+ key: "opcNextPage",
2275
+ dataType: "string"
2276
+ }
2277
+ ]
2278
+ });
2279
+ return sdkResponse;
2280
+ }
2281
+ catch (err) {
2282
+ throw err;
2283
+ }
2284
+ });
2285
+ }
2286
+ /**
2287
+ * Lists the MediaWorkflowJobs.
2288
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
2289
+ * @param ListMediaWorkflowJobsRequest
2290
+ * @return ListMediaWorkflowJobsResponse
2291
+ * @throws OciError when an error occurs
2292
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.35.1/mediaservices/ListMediaWorkflowJobs.ts.html |here} to see how to use ListMediaWorkflowJobs API.
2293
+ */
2294
+ listMediaWorkflowJobs(listMediaWorkflowJobsRequest) {
2295
+ return __awaiter(this, void 0, void 0, function* () {
2296
+ if (this.logger)
2297
+ this.logger.debug("Calling operation MediaServicesClient#listMediaWorkflowJobs.");
2298
+ const operationName = "listMediaWorkflowJobs";
2299
+ const apiReferenceLink = "";
2300
+ const pathParams = {};
2301
+ const queryParams = {
2302
+ "compartmentId": listMediaWorkflowJobsRequest.compartmentId,
2303
+ "id": listMediaWorkflowJobsRequest.id,
2304
+ "mediaWorkflowId": listMediaWorkflowJobsRequest.mediaWorkflowId,
2305
+ "displayName": listMediaWorkflowJobsRequest.displayName,
2306
+ "lifecycleState": listMediaWorkflowJobsRequest.lifecycleState,
2307
+ "page": listMediaWorkflowJobsRequest.page,
2308
+ "limit": listMediaWorkflowJobsRequest.limit,
2309
+ "sortBy": listMediaWorkflowJobsRequest.sortBy,
2310
+ "sortOrder": listMediaWorkflowJobsRequest.sortOrder
2311
+ };
2312
+ let headerParams = {
2313
+ "Content-Type": common.Constants.APPLICATION_JSON,
2314
+ "opc-request-id": listMediaWorkflowJobsRequest.opcRequestId
2315
+ };
2316
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
2317
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listMediaWorkflowJobsRequest.retryConfiguration, specRetryConfiguration);
2318
+ if (this.logger)
2319
+ retrier.logger = this.logger;
2320
+ const request = yield oci_common_1.composeRequest({
2321
+ baseEndpoint: this._endpoint,
2322
+ defaultHeaders: this._defaultHeaders,
2323
+ path: "/mediaWorkflowJobs",
2324
+ method: "GET",
2325
+ pathParams: pathParams,
2326
+ headerParams: headerParams,
2327
+ queryParams: queryParams
2328
+ });
2329
+ try {
2330
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
2331
+ const sdkResponse = oci_common_1.composeResponse({
2332
+ responseObject: {},
2333
+ body: yield response.json(),
2334
+ bodyKey: "mediaWorkflowJobCollection",
2335
+ bodyModel: model.MediaWorkflowJobCollection,
2336
+ type: "model.MediaWorkflowJobCollection",
2337
+ responseHeaders: [
2338
+ {
2339
+ value: response.headers.get("opc-request-id"),
2340
+ key: "opcRequestId",
2341
+ dataType: "string"
2342
+ },
2343
+ {
2344
+ value: response.headers.get("opc-next-page"),
2345
+ key: "opcNextPage",
2346
+ dataType: "string"
2347
+ }
2348
+ ]
2349
+ });
2350
+ return sdkResponse;
2351
+ }
2352
+ catch (err) {
2353
+ throw err;
2354
+ }
2355
+ });
2356
+ }
2357
+ /**
2358
+ * Returns a list of MediaWorkflowTaskDeclarations.
2359
+ *
2360
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
2361
+ * @param ListMediaWorkflowTaskDeclarationsRequest
2362
+ * @return ListMediaWorkflowTaskDeclarationsResponse
2363
+ * @throws OciError when an error occurs
2364
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.35.1/mediaservices/ListMediaWorkflowTaskDeclarations.ts.html |here} to see how to use ListMediaWorkflowTaskDeclarations API.
2365
+ */
2366
+ listMediaWorkflowTaskDeclarations(listMediaWorkflowTaskDeclarationsRequest) {
2367
+ return __awaiter(this, void 0, void 0, function* () {
2368
+ if (this.logger)
2369
+ this.logger.debug("Calling operation MediaServicesClient#listMediaWorkflowTaskDeclarations.");
2370
+ const operationName = "listMediaWorkflowTaskDeclarations";
2371
+ const apiReferenceLink = "";
2372
+ const pathParams = {};
2373
+ const queryParams = {
2374
+ "compartmentId": listMediaWorkflowTaskDeclarationsRequest.compartmentId,
2375
+ "name": listMediaWorkflowTaskDeclarationsRequest.name,
2376
+ "version": listMediaWorkflowTaskDeclarationsRequest.version,
2377
+ "isCurrent": listMediaWorkflowTaskDeclarationsRequest.isCurrent,
2378
+ "sortBy": listMediaWorkflowTaskDeclarationsRequest.sortBy,
2379
+ "limit": listMediaWorkflowTaskDeclarationsRequest.limit,
2380
+ "page": listMediaWorkflowTaskDeclarationsRequest.page,
2381
+ "sortOrder": listMediaWorkflowTaskDeclarationsRequest.sortOrder
2382
+ };
2383
+ let headerParams = {
2384
+ "Content-Type": common.Constants.APPLICATION_JSON,
2385
+ "opc-request-id": listMediaWorkflowTaskDeclarationsRequest.opcRequestId
2386
+ };
2387
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
2388
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listMediaWorkflowTaskDeclarationsRequest.retryConfiguration, specRetryConfiguration);
2389
+ if (this.logger)
2390
+ retrier.logger = this.logger;
2391
+ const request = yield oci_common_1.composeRequest({
2392
+ baseEndpoint: this._endpoint,
2393
+ defaultHeaders: this._defaultHeaders,
2394
+ path: "/mediaWorkflowTaskDeclarations",
2395
+ method: "GET",
2396
+ pathParams: pathParams,
2397
+ headerParams: headerParams,
2398
+ queryParams: queryParams
2399
+ });
2400
+ try {
2401
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
2402
+ const sdkResponse = oci_common_1.composeResponse({
2403
+ responseObject: {},
2404
+ body: yield response.json(),
2405
+ bodyKey: "mediaWorkflowTaskDeclarationCollection",
2406
+ bodyModel: model.MediaWorkflowTaskDeclarationCollection,
2407
+ type: "model.MediaWorkflowTaskDeclarationCollection",
2408
+ responseHeaders: [
2409
+ {
2410
+ value: response.headers.get("opc-request-id"),
2411
+ key: "opcRequestId",
2412
+ dataType: "string"
2413
+ },
2414
+ {
2415
+ value: response.headers.get("opc-next-page"),
2416
+ key: "opcNextPage",
2417
+ dataType: "string"
2418
+ }
2419
+ ]
2420
+ });
2421
+ return sdkResponse;
2422
+ }
2423
+ catch (err) {
2424
+ throw err;
2425
+ }
2426
+ });
2427
+ }
2428
+ /**
2429
+ * Lists the MediaWorkflows.
2430
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
2431
+ * @param ListMediaWorkflowsRequest
2432
+ * @return ListMediaWorkflowsResponse
2433
+ * @throws OciError when an error occurs
2434
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.35.1/mediaservices/ListMediaWorkflows.ts.html |here} to see how to use ListMediaWorkflows API.
2435
+ */
2436
+ listMediaWorkflows(listMediaWorkflowsRequest) {
2437
+ return __awaiter(this, void 0, void 0, function* () {
2438
+ if (this.logger)
2439
+ this.logger.debug("Calling operation MediaServicesClient#listMediaWorkflows.");
2440
+ const operationName = "listMediaWorkflows";
2441
+ const apiReferenceLink = "";
2442
+ const pathParams = {};
2443
+ const queryParams = {
2444
+ "compartmentId": listMediaWorkflowsRequest.compartmentId,
2445
+ "id": listMediaWorkflowsRequest.id,
2446
+ "lifecycleState": listMediaWorkflowsRequest.lifecycleState,
2447
+ "displayName": listMediaWorkflowsRequest.displayName,
2448
+ "sortOrder": listMediaWorkflowsRequest.sortOrder,
2449
+ "sortBy": listMediaWorkflowsRequest.sortBy,
2450
+ "page": listMediaWorkflowsRequest.page,
2451
+ "limit": listMediaWorkflowsRequest.limit
2452
+ };
2453
+ let headerParams = {
2454
+ "Content-Type": common.Constants.APPLICATION_JSON,
2455
+ "opc-request-id": listMediaWorkflowsRequest.opcRequestId
2456
+ };
2457
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
2458
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listMediaWorkflowsRequest.retryConfiguration, specRetryConfiguration);
2459
+ if (this.logger)
2460
+ retrier.logger = this.logger;
2461
+ const request = yield oci_common_1.composeRequest({
2462
+ baseEndpoint: this._endpoint,
2463
+ defaultHeaders: this._defaultHeaders,
2464
+ path: "/mediaWorkflows",
2465
+ method: "GET",
2466
+ pathParams: pathParams,
2467
+ headerParams: headerParams,
2468
+ queryParams: queryParams
2469
+ });
2470
+ try {
2471
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
2472
+ const sdkResponse = oci_common_1.composeResponse({
2473
+ responseObject: {},
2474
+ body: yield response.json(),
2475
+ bodyKey: "mediaWorkflowCollection",
2476
+ bodyModel: model.MediaWorkflowCollection,
2477
+ type: "model.MediaWorkflowCollection",
2478
+ responseHeaders: [
2479
+ {
2480
+ value: response.headers.get("opc-request-id"),
2481
+ key: "opcRequestId",
2482
+ dataType: "string"
2483
+ },
2484
+ {
2485
+ value: response.headers.get("opc-next-page"),
2486
+ key: "opcNextPage",
2487
+ dataType: "string"
2488
+ }
2489
+ ]
2490
+ });
2491
+ return sdkResponse;
2492
+ }
2493
+ catch (err) {
2494
+ throw err;
2495
+ }
2496
+ });
2497
+ }
2498
+ /**
2499
+ * Lists the StreamCdnConfig.
2500
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
2501
+ * @param ListStreamCdnConfigsRequest
2502
+ * @return ListStreamCdnConfigsResponse
2503
+ * @throws OciError when an error occurs
2504
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.35.1/mediaservices/ListStreamCdnConfigs.ts.html |here} to see how to use ListStreamCdnConfigs API.
2505
+ */
2506
+ listStreamCdnConfigs(listStreamCdnConfigsRequest) {
2507
+ return __awaiter(this, void 0, void 0, function* () {
2508
+ if (this.logger)
2509
+ this.logger.debug("Calling operation MediaServicesClient#listStreamCdnConfigs.");
2510
+ const operationName = "listStreamCdnConfigs";
2511
+ const apiReferenceLink = "";
2512
+ const pathParams = {};
2513
+ const queryParams = {
2514
+ "distributionChannelId": listStreamCdnConfigsRequest.distributionChannelId,
2515
+ "id": listStreamCdnConfigsRequest.id,
2516
+ "lifecycleState": listStreamCdnConfigsRequest.lifecycleState,
2517
+ "displayName": listStreamCdnConfigsRequest.displayName,
2518
+ "sortOrder": listStreamCdnConfigsRequest.sortOrder,
2519
+ "sortBy": listStreamCdnConfigsRequest.sortBy,
2520
+ "page": listStreamCdnConfigsRequest.page,
2521
+ "limit": listStreamCdnConfigsRequest.limit
2522
+ };
2523
+ let headerParams = {
2524
+ "Content-Type": common.Constants.APPLICATION_JSON,
2525
+ "opc-request-id": listStreamCdnConfigsRequest.opcRequestId
2526
+ };
2527
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
2528
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listStreamCdnConfigsRequest.retryConfiguration, specRetryConfiguration);
2529
+ if (this.logger)
2530
+ retrier.logger = this.logger;
2531
+ const request = yield oci_common_1.composeRequest({
2532
+ baseEndpoint: this._endpoint,
2533
+ defaultHeaders: this._defaultHeaders,
2534
+ path: "/streamCdnConfigs",
2535
+ method: "GET",
2536
+ pathParams: pathParams,
2537
+ headerParams: headerParams,
2538
+ queryParams: queryParams
2539
+ });
2540
+ try {
2541
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
2542
+ const sdkResponse = oci_common_1.composeResponse({
2543
+ responseObject: {},
2544
+ body: yield response.json(),
2545
+ bodyKey: "streamCdnConfigCollection",
2546
+ bodyModel: model.StreamCdnConfigCollection,
2547
+ type: "model.StreamCdnConfigCollection",
2548
+ responseHeaders: [
2549
+ {
2550
+ value: response.headers.get("opc-request-id"),
2551
+ key: "opcRequestId",
2552
+ dataType: "string"
2553
+ },
2554
+ {
2555
+ value: response.headers.get("opc-next-page"),
2556
+ key: "opcNextPage",
2557
+ dataType: "string"
2558
+ }
2559
+ ]
2560
+ });
2561
+ return sdkResponse;
2562
+ }
2563
+ catch (err) {
2564
+ throw err;
2565
+ }
2566
+ });
2567
+ }
2568
+ /**
2569
+ * Lists the Stream Distribution Channels.
2570
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
2571
+ * @param ListStreamDistributionChannelsRequest
2572
+ * @return ListStreamDistributionChannelsResponse
2573
+ * @throws OciError when an error occurs
2574
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.35.1/mediaservices/ListStreamDistributionChannels.ts.html |here} to see how to use ListStreamDistributionChannels API.
2575
+ */
2576
+ listStreamDistributionChannels(listStreamDistributionChannelsRequest) {
2577
+ return __awaiter(this, void 0, void 0, function* () {
2578
+ if (this.logger)
2579
+ this.logger.debug("Calling operation MediaServicesClient#listStreamDistributionChannels.");
2580
+ const operationName = "listStreamDistributionChannels";
2581
+ const apiReferenceLink = "";
2582
+ const pathParams = {};
2583
+ const queryParams = {
2584
+ "compartmentId": listStreamDistributionChannelsRequest.compartmentId,
2585
+ "id": listStreamDistributionChannelsRequest.id,
2586
+ "lifecycleState": listStreamDistributionChannelsRequest.lifecycleState,
2587
+ "displayName": listStreamDistributionChannelsRequest.displayName,
2588
+ "sortOrder": listStreamDistributionChannelsRequest.sortOrder,
2589
+ "sortBy": listStreamDistributionChannelsRequest.sortBy,
2590
+ "page": listStreamDistributionChannelsRequest.page,
2591
+ "limit": listStreamDistributionChannelsRequest.limit
2592
+ };
2593
+ let headerParams = {
2594
+ "Content-Type": common.Constants.APPLICATION_JSON,
2595
+ "opc-request-id": listStreamDistributionChannelsRequest.opcRequestId
2596
+ };
2597
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
2598
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listStreamDistributionChannelsRequest.retryConfiguration, specRetryConfiguration);
2599
+ if (this.logger)
2600
+ retrier.logger = this.logger;
2601
+ const request = yield oci_common_1.composeRequest({
2602
+ baseEndpoint: this._endpoint,
2603
+ defaultHeaders: this._defaultHeaders,
2604
+ path: "/streamDistributionChannels",
2605
+ method: "GET",
2606
+ pathParams: pathParams,
2607
+ headerParams: headerParams,
2608
+ queryParams: queryParams
2609
+ });
2610
+ try {
2611
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
2612
+ const sdkResponse = oci_common_1.composeResponse({
2613
+ responseObject: {},
2614
+ body: yield response.json(),
2615
+ bodyKey: "streamDistributionChannelCollection",
2616
+ bodyModel: model.StreamDistributionChannelCollection,
2617
+ type: "model.StreamDistributionChannelCollection",
2618
+ responseHeaders: [
2619
+ {
2620
+ value: response.headers.get("opc-request-id"),
2621
+ key: "opcRequestId",
2622
+ dataType: "string"
2623
+ },
2624
+ {
2625
+ value: response.headers.get("opc-next-page"),
2626
+ key: "opcNextPage",
2627
+ dataType: "string"
2628
+ }
2629
+ ]
2630
+ });
2631
+ return sdkResponse;
2632
+ }
2633
+ catch (err) {
2634
+ throw err;
2635
+ }
2636
+ });
2637
+ }
2638
+ /**
2639
+ * Lists the Stream Packaging Configurations.
2640
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
2641
+ * @param ListStreamPackagingConfigsRequest
2642
+ * @return ListStreamPackagingConfigsResponse
2643
+ * @throws OciError when an error occurs
2644
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.35.1/mediaservices/ListStreamPackagingConfigs.ts.html |here} to see how to use ListStreamPackagingConfigs API.
2645
+ */
2646
+ listStreamPackagingConfigs(listStreamPackagingConfigsRequest) {
2647
+ return __awaiter(this, void 0, void 0, function* () {
2648
+ if (this.logger)
2649
+ this.logger.debug("Calling operation MediaServicesClient#listStreamPackagingConfigs.");
2650
+ const operationName = "listStreamPackagingConfigs";
2651
+ const apiReferenceLink = "";
2652
+ const pathParams = {};
2653
+ const queryParams = {
2654
+ "distributionChannelId": listStreamPackagingConfigsRequest.distributionChannelId,
2655
+ "streamPackagingConfigId": listStreamPackagingConfigsRequest.streamPackagingConfigId,
2656
+ "lifecycleState": listStreamPackagingConfigsRequest.lifecycleState,
2657
+ "displayName": listStreamPackagingConfigsRequest.displayName,
2658
+ "sortOrder": listStreamPackagingConfigsRequest.sortOrder,
2659
+ "sortBy": listStreamPackagingConfigsRequest.sortBy,
2660
+ "page": listStreamPackagingConfigsRequest.page,
2661
+ "limit": listStreamPackagingConfigsRequest.limit
2662
+ };
2663
+ let headerParams = {
2664
+ "Content-Type": common.Constants.APPLICATION_JSON,
2665
+ "opc-request-id": listStreamPackagingConfigsRequest.opcRequestId
2666
+ };
2667
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
2668
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listStreamPackagingConfigsRequest.retryConfiguration, specRetryConfiguration);
2669
+ if (this.logger)
2670
+ retrier.logger = this.logger;
2671
+ const request = yield oci_common_1.composeRequest({
2672
+ baseEndpoint: this._endpoint,
2673
+ defaultHeaders: this._defaultHeaders,
2674
+ path: "/streamPackagingConfigs",
2675
+ method: "GET",
2676
+ pathParams: pathParams,
2677
+ headerParams: headerParams,
2678
+ queryParams: queryParams
2679
+ });
2680
+ try {
2681
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
2682
+ const sdkResponse = oci_common_1.composeResponse({
2683
+ responseObject: {},
2684
+ body: yield response.json(),
2685
+ bodyKey: "streamPackagingConfigCollection",
2686
+ bodyModel: model.StreamPackagingConfigCollection,
2687
+ type: "model.StreamPackagingConfigCollection",
2688
+ responseHeaders: [
2689
+ {
2690
+ value: response.headers.get("opc-request-id"),
2691
+ key: "opcRequestId",
2692
+ dataType: "string"
2693
+ },
2694
+ {
2695
+ value: response.headers.get("opc-next-page"),
2696
+ key: "opcNextPage",
2697
+ dataType: "string"
2698
+ }
2699
+ ]
2700
+ });
2701
+ return sdkResponse;
2702
+ }
2703
+ catch (err) {
2704
+ throw err;
2705
+ }
2706
+ });
2707
+ }
2708
+ /**
2709
+ * Lists the SystemMediaWorkflows that can be used to run a job by name or as a template to create a MediaWorkflow.
2710
+ *
2711
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
2712
+ * @param ListSystemMediaWorkflowsRequest
2713
+ * @return ListSystemMediaWorkflowsResponse
2714
+ * @throws OciError when an error occurs
2715
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.35.1/mediaservices/ListSystemMediaWorkflows.ts.html |here} to see how to use ListSystemMediaWorkflows API.
2716
+ */
2717
+ listSystemMediaWorkflows(listSystemMediaWorkflowsRequest) {
2718
+ return __awaiter(this, void 0, void 0, function* () {
2719
+ if (this.logger)
2720
+ this.logger.debug("Calling operation MediaServicesClient#listSystemMediaWorkflows.");
2721
+ const operationName = "listSystemMediaWorkflows";
2722
+ const apiReferenceLink = "";
2723
+ const pathParams = {};
2724
+ const queryParams = {
2725
+ "compartmentId": listSystemMediaWorkflowsRequest.compartmentId,
2726
+ "name": listSystemMediaWorkflowsRequest.name,
2727
+ "sortOrder": listSystemMediaWorkflowsRequest.sortOrder,
2728
+ "page": listSystemMediaWorkflowsRequest.page,
2729
+ "limit": listSystemMediaWorkflowsRequest.limit
2730
+ };
2731
+ let headerParams = {
2732
+ "Content-Type": common.Constants.APPLICATION_JSON,
2733
+ "opc-request-id": listSystemMediaWorkflowsRequest.opcRequestId
2734
+ };
2735
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
2736
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listSystemMediaWorkflowsRequest.retryConfiguration, specRetryConfiguration);
2737
+ if (this.logger)
2738
+ retrier.logger = this.logger;
2739
+ const request = yield oci_common_1.composeRequest({
2740
+ baseEndpoint: this._endpoint,
2741
+ defaultHeaders: this._defaultHeaders,
2742
+ path: "/systemMediaWorkflows",
2743
+ method: "GET",
2744
+ pathParams: pathParams,
2745
+ headerParams: headerParams,
2746
+ queryParams: queryParams
2747
+ });
2748
+ try {
2749
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
2750
+ const sdkResponse = oci_common_1.composeResponse({
2751
+ responseObject: {},
2752
+ body: yield response.json(),
2753
+ bodyKey: "systemMediaWorkflowCollection",
2754
+ bodyModel: model.SystemMediaWorkflowCollection,
2755
+ type: "model.SystemMediaWorkflowCollection",
2756
+ responseHeaders: [
2757
+ {
2758
+ value: response.headers.get("opc-request-id"),
2759
+ key: "opcRequestId",
2760
+ dataType: "string"
2761
+ },
2762
+ {
2763
+ value: response.headers.get("opc-next-page"),
2764
+ key: "opcNextPage",
2765
+ dataType: "string"
2766
+ }
2767
+ ]
2768
+ });
2769
+ return sdkResponse;
2770
+ }
2771
+ catch (err) {
2772
+ throw err;
2773
+ }
2774
+ });
2775
+ }
2776
+ /**
2777
+ * Updates the MediaAsset.
2778
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
2779
+ * @param UpdateMediaAssetRequest
2780
+ * @return UpdateMediaAssetResponse
2781
+ * @throws OciError when an error occurs
2782
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.35.1/mediaservices/UpdateMediaAsset.ts.html |here} to see how to use UpdateMediaAsset API.
2783
+ */
2784
+ updateMediaAsset(updateMediaAssetRequest) {
2785
+ return __awaiter(this, void 0, void 0, function* () {
2786
+ if (this.logger)
2787
+ this.logger.debug("Calling operation MediaServicesClient#updateMediaAsset.");
2788
+ const operationName = "updateMediaAsset";
2789
+ const apiReferenceLink = "";
2790
+ const pathParams = {
2791
+ "{mediaAssetId}": updateMediaAssetRequest.mediaAssetId
2792
+ };
2793
+ const queryParams = {};
2794
+ let headerParams = {
2795
+ "Content-Type": common.Constants.APPLICATION_JSON,
2796
+ "if-match": updateMediaAssetRequest.ifMatch,
2797
+ "opc-request-id": updateMediaAssetRequest.opcRequestId
2798
+ };
2799
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
2800
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, updateMediaAssetRequest.retryConfiguration, specRetryConfiguration);
2801
+ if (this.logger)
2802
+ retrier.logger = this.logger;
2803
+ const request = yield oci_common_1.composeRequest({
2804
+ baseEndpoint: this._endpoint,
2805
+ defaultHeaders: this._defaultHeaders,
2806
+ path: "/mediaAssets/{mediaAssetId}",
2807
+ method: "PUT",
2808
+ bodyContent: common.ObjectSerializer.serialize(updateMediaAssetRequest.updateMediaAssetDetails, "UpdateMediaAssetDetails", model.UpdateMediaAssetDetails.getJsonObj),
2809
+ pathParams: pathParams,
2810
+ headerParams: headerParams,
2811
+ queryParams: queryParams
2812
+ });
2813
+ try {
2814
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
2815
+ const sdkResponse = oci_common_1.composeResponse({
2816
+ responseObject: {},
2817
+ body: yield response.json(),
2818
+ bodyKey: "mediaAsset",
2819
+ bodyModel: model.MediaAsset,
2820
+ type: "model.MediaAsset",
2821
+ responseHeaders: [
2822
+ {
2823
+ value: response.headers.get("etag"),
2824
+ key: "etag",
2825
+ dataType: "string"
2826
+ },
2827
+ {
2828
+ value: response.headers.get("opc-request-id"),
2829
+ key: "opcRequestId",
2830
+ dataType: "string"
2831
+ }
2832
+ ]
2833
+ });
2834
+ return sdkResponse;
2835
+ }
2836
+ catch (err) {
2837
+ throw err;
2838
+ }
2839
+ });
2840
+ }
2841
+ /**
2842
+ * Updates the MediaWorkflow.
2843
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
2844
+ * @param UpdateMediaWorkflowRequest
2845
+ * @return UpdateMediaWorkflowResponse
2846
+ * @throws OciError when an error occurs
2847
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.35.1/mediaservices/UpdateMediaWorkflow.ts.html |here} to see how to use UpdateMediaWorkflow API.
2848
+ */
2849
+ updateMediaWorkflow(updateMediaWorkflowRequest) {
2850
+ return __awaiter(this, void 0, void 0, function* () {
2851
+ if (this.logger)
2852
+ this.logger.debug("Calling operation MediaServicesClient#updateMediaWorkflow.");
2853
+ const operationName = "updateMediaWorkflow";
2854
+ const apiReferenceLink = "";
2855
+ const pathParams = {
2856
+ "{mediaWorkflowId}": updateMediaWorkflowRequest.mediaWorkflowId
2857
+ };
2858
+ const queryParams = {};
2859
+ let headerParams = {
2860
+ "Content-Type": common.Constants.APPLICATION_JSON,
2861
+ "if-match": updateMediaWorkflowRequest.ifMatch,
2862
+ "opc-request-id": updateMediaWorkflowRequest.opcRequestId
2863
+ };
2864
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
2865
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, updateMediaWorkflowRequest.retryConfiguration, specRetryConfiguration);
2866
+ if (this.logger)
2867
+ retrier.logger = this.logger;
2868
+ const request = yield oci_common_1.composeRequest({
2869
+ baseEndpoint: this._endpoint,
2870
+ defaultHeaders: this._defaultHeaders,
2871
+ path: "/mediaWorkflows/{mediaWorkflowId}",
2872
+ method: "PUT",
2873
+ bodyContent: common.ObjectSerializer.serialize(updateMediaWorkflowRequest.updateMediaWorkflowDetails, "UpdateMediaWorkflowDetails", model.UpdateMediaWorkflowDetails.getJsonObj),
2874
+ pathParams: pathParams,
2875
+ headerParams: headerParams,
2876
+ queryParams: queryParams
2877
+ });
2878
+ try {
2879
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
2880
+ const sdkResponse = oci_common_1.composeResponse({
2881
+ responseObject: {},
2882
+ body: yield response.json(),
2883
+ bodyKey: "mediaWorkflow",
2884
+ bodyModel: model.MediaWorkflow,
2885
+ type: "model.MediaWorkflow",
2886
+ responseHeaders: [
2887
+ {
2888
+ value: response.headers.get("etag"),
2889
+ key: "etag",
2890
+ dataType: "string"
2891
+ },
2892
+ {
2893
+ value: response.headers.get("opc-request-id"),
2894
+ key: "opcRequestId",
2895
+ dataType: "string"
2896
+ }
2897
+ ]
2898
+ });
2899
+ return sdkResponse;
2900
+ }
2901
+ catch (err) {
2902
+ throw err;
2903
+ }
2904
+ });
2905
+ }
2906
+ /**
2907
+ * Updates the MediaWorkflowConfiguration.
2908
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
2909
+ * @param UpdateMediaWorkflowConfigurationRequest
2910
+ * @return UpdateMediaWorkflowConfigurationResponse
2911
+ * @throws OciError when an error occurs
2912
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.35.1/mediaservices/UpdateMediaWorkflowConfiguration.ts.html |here} to see how to use UpdateMediaWorkflowConfiguration API.
2913
+ */
2914
+ updateMediaWorkflowConfiguration(updateMediaWorkflowConfigurationRequest) {
2915
+ return __awaiter(this, void 0, void 0, function* () {
2916
+ if (this.logger)
2917
+ this.logger.debug("Calling operation MediaServicesClient#updateMediaWorkflowConfiguration.");
2918
+ const operationName = "updateMediaWorkflowConfiguration";
2919
+ const apiReferenceLink = "";
2920
+ const pathParams = {
2921
+ "{mediaWorkflowConfigurationId}": updateMediaWorkflowConfigurationRequest.mediaWorkflowConfigurationId
2922
+ };
2923
+ const queryParams = {};
2924
+ let headerParams = {
2925
+ "Content-Type": common.Constants.APPLICATION_JSON,
2926
+ "if-match": updateMediaWorkflowConfigurationRequest.ifMatch,
2927
+ "opc-request-id": updateMediaWorkflowConfigurationRequest.opcRequestId
2928
+ };
2929
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
2930
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, updateMediaWorkflowConfigurationRequest.retryConfiguration, specRetryConfiguration);
2931
+ if (this.logger)
2932
+ retrier.logger = this.logger;
2933
+ const request = yield oci_common_1.composeRequest({
2934
+ baseEndpoint: this._endpoint,
2935
+ defaultHeaders: this._defaultHeaders,
2936
+ path: "/mediaWorkflowConfigurations/{mediaWorkflowConfigurationId}",
2937
+ method: "PUT",
2938
+ bodyContent: common.ObjectSerializer.serialize(updateMediaWorkflowConfigurationRequest.updateMediaWorkflowConfigurationDetails, "UpdateMediaWorkflowConfigurationDetails", model.UpdateMediaWorkflowConfigurationDetails.getJsonObj),
2939
+ pathParams: pathParams,
2940
+ headerParams: headerParams,
2941
+ queryParams: queryParams
2942
+ });
2943
+ try {
2944
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
2945
+ const sdkResponse = oci_common_1.composeResponse({
2946
+ responseObject: {},
2947
+ body: yield response.json(),
2948
+ bodyKey: "mediaWorkflowConfiguration",
2949
+ bodyModel: model.MediaWorkflowConfiguration,
2950
+ type: "model.MediaWorkflowConfiguration",
2951
+ responseHeaders: [
2952
+ {
2953
+ value: response.headers.get("etag"),
2954
+ key: "etag",
2955
+ dataType: "string"
2956
+ },
2957
+ {
2958
+ value: response.headers.get("opc-request-id"),
2959
+ key: "opcRequestId",
2960
+ dataType: "string"
2961
+ }
2962
+ ]
2963
+ });
2964
+ return sdkResponse;
2965
+ }
2966
+ catch (err) {
2967
+ throw err;
2968
+ }
2969
+ });
2970
+ }
2971
+ /**
2972
+ * Updates the MediaWorkflowJob.
2973
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
2974
+ * @param UpdateMediaWorkflowJobRequest
2975
+ * @return UpdateMediaWorkflowJobResponse
2976
+ * @throws OciError when an error occurs
2977
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.35.1/mediaservices/UpdateMediaWorkflowJob.ts.html |here} to see how to use UpdateMediaWorkflowJob API.
2978
+ */
2979
+ updateMediaWorkflowJob(updateMediaWorkflowJobRequest) {
2980
+ return __awaiter(this, void 0, void 0, function* () {
2981
+ if (this.logger)
2982
+ this.logger.debug("Calling operation MediaServicesClient#updateMediaWorkflowJob.");
2983
+ const operationName = "updateMediaWorkflowJob";
2984
+ const apiReferenceLink = "";
2985
+ const pathParams = {
2986
+ "{mediaWorkflowJobId}": updateMediaWorkflowJobRequest.mediaWorkflowJobId
2987
+ };
2988
+ const queryParams = {};
2989
+ let headerParams = {
2990
+ "Content-Type": common.Constants.APPLICATION_JSON,
2991
+ "if-match": updateMediaWorkflowJobRequest.ifMatch,
2992
+ "opc-request-id": updateMediaWorkflowJobRequest.opcRequestId
2993
+ };
2994
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
2995
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, updateMediaWorkflowJobRequest.retryConfiguration, specRetryConfiguration);
2996
+ if (this.logger)
2997
+ retrier.logger = this.logger;
2998
+ const request = yield oci_common_1.composeRequest({
2999
+ baseEndpoint: this._endpoint,
3000
+ defaultHeaders: this._defaultHeaders,
3001
+ path: "/mediaWorkflowJobs/{mediaWorkflowJobId}",
3002
+ method: "PUT",
3003
+ bodyContent: common.ObjectSerializer.serialize(updateMediaWorkflowJobRequest.updateMediaWorkflowJobDetails, "UpdateMediaWorkflowJobDetails", model.UpdateMediaWorkflowJobDetails.getJsonObj),
3004
+ pathParams: pathParams,
3005
+ headerParams: headerParams,
3006
+ queryParams: queryParams
3007
+ });
3008
+ try {
3009
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
3010
+ const sdkResponse = oci_common_1.composeResponse({
3011
+ responseObject: {},
3012
+ body: yield response.json(),
3013
+ bodyKey: "mediaWorkflowJob",
3014
+ bodyModel: model.MediaWorkflowJob,
3015
+ type: "model.MediaWorkflowJob",
3016
+ responseHeaders: [
3017
+ {
3018
+ value: response.headers.get("etag"),
3019
+ key: "etag",
3020
+ dataType: "string"
3021
+ },
3022
+ {
3023
+ value: response.headers.get("opc-request-id"),
3024
+ key: "opcRequestId",
3025
+ dataType: "string"
3026
+ }
3027
+ ]
3028
+ });
3029
+ return sdkResponse;
3030
+ }
3031
+ catch (err) {
3032
+ throw err;
3033
+ }
3034
+ });
3035
+ }
3036
+ /**
3037
+ * Updates the StreamCdnConfig.
3038
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
3039
+ * @param UpdateStreamCdnConfigRequest
3040
+ * @return UpdateStreamCdnConfigResponse
3041
+ * @throws OciError when an error occurs
3042
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.35.1/mediaservices/UpdateStreamCdnConfig.ts.html |here} to see how to use UpdateStreamCdnConfig API.
3043
+ */
3044
+ updateStreamCdnConfig(updateStreamCdnConfigRequest) {
3045
+ return __awaiter(this, void 0, void 0, function* () {
3046
+ if (this.logger)
3047
+ this.logger.debug("Calling operation MediaServicesClient#updateStreamCdnConfig.");
3048
+ const operationName = "updateStreamCdnConfig";
3049
+ const apiReferenceLink = "";
3050
+ const pathParams = {
3051
+ "{streamCdnConfigId}": updateStreamCdnConfigRequest.streamCdnConfigId
3052
+ };
3053
+ const queryParams = {};
3054
+ let headerParams = {
3055
+ "Content-Type": common.Constants.APPLICATION_JSON,
3056
+ "if-match": updateStreamCdnConfigRequest.ifMatch,
3057
+ "opc-request-id": updateStreamCdnConfigRequest.opcRequestId
3058
+ };
3059
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
3060
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, updateStreamCdnConfigRequest.retryConfiguration, specRetryConfiguration);
3061
+ if (this.logger)
3062
+ retrier.logger = this.logger;
3063
+ const request = yield oci_common_1.composeRequest({
3064
+ baseEndpoint: this._endpoint,
3065
+ defaultHeaders: this._defaultHeaders,
3066
+ path: "/streamCdnConfigs/{streamCdnConfigId}",
3067
+ method: "PUT",
3068
+ bodyContent: common.ObjectSerializer.serialize(updateStreamCdnConfigRequest.updateStreamCdnConfigDetails, "UpdateStreamCdnConfigDetails", model.UpdateStreamCdnConfigDetails.getJsonObj),
3069
+ pathParams: pathParams,
3070
+ headerParams: headerParams,
3071
+ queryParams: queryParams
3072
+ });
3073
+ try {
3074
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
3075
+ const sdkResponse = oci_common_1.composeResponse({
3076
+ responseObject: {},
3077
+ body: yield response.json(),
3078
+ bodyKey: "streamCdnConfig",
3079
+ bodyModel: model.StreamCdnConfig,
3080
+ type: "model.StreamCdnConfig",
3081
+ responseHeaders: [
3082
+ {
3083
+ value: response.headers.get("etag"),
3084
+ key: "etag",
3085
+ dataType: "string"
3086
+ },
3087
+ {
3088
+ value: response.headers.get("opc-request-id"),
3089
+ key: "opcRequestId",
3090
+ dataType: "string"
3091
+ }
3092
+ ]
3093
+ });
3094
+ return sdkResponse;
3095
+ }
3096
+ catch (err) {
3097
+ throw err;
3098
+ }
3099
+ });
3100
+ }
3101
+ /**
3102
+ * Updates the Stream Distribution Channel.
3103
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
3104
+ * @param UpdateStreamDistributionChannelRequest
3105
+ * @return UpdateStreamDistributionChannelResponse
3106
+ * @throws OciError when an error occurs
3107
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.35.1/mediaservices/UpdateStreamDistributionChannel.ts.html |here} to see how to use UpdateStreamDistributionChannel API.
3108
+ */
3109
+ updateStreamDistributionChannel(updateStreamDistributionChannelRequest) {
3110
+ return __awaiter(this, void 0, void 0, function* () {
3111
+ if (this.logger)
3112
+ this.logger.debug("Calling operation MediaServicesClient#updateStreamDistributionChannel.");
3113
+ const operationName = "updateStreamDistributionChannel";
3114
+ const apiReferenceLink = "";
3115
+ const pathParams = {
3116
+ "{streamDistributionChannelId}": updateStreamDistributionChannelRequest.streamDistributionChannelId
3117
+ };
3118
+ const queryParams = {};
3119
+ let headerParams = {
3120
+ "Content-Type": common.Constants.APPLICATION_JSON,
3121
+ "if-match": updateStreamDistributionChannelRequest.ifMatch,
3122
+ "opc-request-id": updateStreamDistributionChannelRequest.opcRequestId
3123
+ };
3124
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
3125
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, updateStreamDistributionChannelRequest.retryConfiguration, specRetryConfiguration);
3126
+ if (this.logger)
3127
+ retrier.logger = this.logger;
3128
+ const request = yield oci_common_1.composeRequest({
3129
+ baseEndpoint: this._endpoint,
3130
+ defaultHeaders: this._defaultHeaders,
3131
+ path: "/streamDistributionChannels/{streamDistributionChannelId}",
3132
+ method: "PUT",
3133
+ bodyContent: common.ObjectSerializer.serialize(updateStreamDistributionChannelRequest.updateStreamDistributionChannelDetails, "UpdateStreamDistributionChannelDetails", model.UpdateStreamDistributionChannelDetails.getJsonObj),
3134
+ pathParams: pathParams,
3135
+ headerParams: headerParams,
3136
+ queryParams: queryParams
3137
+ });
3138
+ try {
3139
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
3140
+ const sdkResponse = oci_common_1.composeResponse({
3141
+ responseObject: {},
3142
+ body: yield response.json(),
3143
+ bodyKey: "streamDistributionChannel",
3144
+ bodyModel: model.StreamDistributionChannel,
3145
+ type: "model.StreamDistributionChannel",
3146
+ responseHeaders: [
3147
+ {
3148
+ value: response.headers.get("etag"),
3149
+ key: "etag",
3150
+ dataType: "string"
3151
+ },
3152
+ {
3153
+ value: response.headers.get("opc-request-id"),
3154
+ key: "opcRequestId",
3155
+ dataType: "string"
3156
+ }
3157
+ ]
3158
+ });
3159
+ return sdkResponse;
3160
+ }
3161
+ catch (err) {
3162
+ throw err;
3163
+ }
3164
+ });
3165
+ }
3166
+ /**
3167
+ * Updates the Stream Packaging Configuration.
3168
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
3169
+ * @param UpdateStreamPackagingConfigRequest
3170
+ * @return UpdateStreamPackagingConfigResponse
3171
+ * @throws OciError when an error occurs
3172
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.35.1/mediaservices/UpdateStreamPackagingConfig.ts.html |here} to see how to use UpdateStreamPackagingConfig API.
3173
+ */
3174
+ updateStreamPackagingConfig(updateStreamPackagingConfigRequest) {
3175
+ return __awaiter(this, void 0, void 0, function* () {
3176
+ if (this.logger)
3177
+ this.logger.debug("Calling operation MediaServicesClient#updateStreamPackagingConfig.");
3178
+ const operationName = "updateStreamPackagingConfig";
3179
+ const apiReferenceLink = "";
3180
+ const pathParams = {
3181
+ "{streamPackagingConfigId}": updateStreamPackagingConfigRequest.streamPackagingConfigId
3182
+ };
3183
+ const queryParams = {};
3184
+ let headerParams = {
3185
+ "Content-Type": common.Constants.APPLICATION_JSON,
3186
+ "if-match": updateStreamPackagingConfigRequest.ifMatch,
3187
+ "opc-request-id": updateStreamPackagingConfigRequest.opcRequestId
3188
+ };
3189
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
3190
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, updateStreamPackagingConfigRequest.retryConfiguration, specRetryConfiguration);
3191
+ if (this.logger)
3192
+ retrier.logger = this.logger;
3193
+ const request = yield oci_common_1.composeRequest({
3194
+ baseEndpoint: this._endpoint,
3195
+ defaultHeaders: this._defaultHeaders,
3196
+ path: "/streamPackagingConfigs/{streamPackagingConfigId}",
3197
+ method: "PUT",
3198
+ bodyContent: common.ObjectSerializer.serialize(updateStreamPackagingConfigRequest.updateStreamPackagingConfigDetails, "UpdateStreamPackagingConfigDetails", model.UpdateStreamPackagingConfigDetails.getJsonObj),
3199
+ pathParams: pathParams,
3200
+ headerParams: headerParams,
3201
+ queryParams: queryParams
3202
+ });
3203
+ try {
3204
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
3205
+ const sdkResponse = oci_common_1.composeResponse({
3206
+ responseObject: {},
3207
+ body: yield response.json(),
3208
+ bodyKey: "streamPackagingConfig",
3209
+ bodyModel: model.StreamPackagingConfig,
3210
+ type: "model.StreamPackagingConfig",
3211
+ responseHeaders: [
3212
+ {
3213
+ value: response.headers.get("etag"),
3214
+ key: "etag",
3215
+ dataType: "string"
3216
+ },
3217
+ {
3218
+ value: response.headers.get("opc-work-request-id"),
3219
+ key: "opcWorkRequestId",
3220
+ dataType: "string"
3221
+ },
3222
+ {
3223
+ value: response.headers.get("opc-request-id"),
3224
+ key: "opcRequestId",
3225
+ dataType: "string"
3226
+ }
3227
+ ]
3228
+ });
3229
+ return sdkResponse;
3230
+ }
3231
+ catch (err) {
3232
+ throw err;
3233
+ }
3234
+ });
3235
+ }
3236
+ }
3237
+ exports.MediaServicesClient = MediaServicesClient;
3238
+ MediaServicesClient.serviceEndpointTemplate = "https://mediaservices.{region}.oci.{secondLevelDomain}";
3239
+ MediaServicesClient.endpointServiceName = "";
3240
+ //# sourceMappingURL=client.js.map