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