// This is an automatically generated code sample. 
// To make this code sample work in your Oracle Cloud tenancy, 
// please replace the values for any parameters whose current values do not fit
// your use case (such as resource IDs, strings containing ‘EXAMPLE’ or ‘unique_id’, and 
// boolean, number, and enum parameters with values not fitting your use case).

import * as dataintegration from "oci-dataintegration";
import common = require("oci-common");

// Create a default authentication provider that uses the DEFAULT
// profile in the configuration file.
// Refer to <see href="https://docs.cloud.oracle.com/en-us/iaas/Content/API/Concepts/sdkconfig.htm#SDK_and_CLI_Configuration_File>the public documentation</see> on how to prepare a configuration file.

const provider: common.ConfigFileAuthenticationDetailsProvider = new common.ConfigFileAuthenticationDetailsProvider();

(async () => {
    try {
     // Create a service client
     const client = new dataintegration.DataIntegrationClient({ authenticationDetailsProvider: provider });

     // Create a request and dependent object(s).
	const  updatePipelineDetails = {
		key: "EXAMPLE-key-Value",
		modelType: "EXAMPLE-modelType-Value",
		modelVersion: "EXAMPLE-modelVersion-Value",
		parentRef: {
			parent: "EXAMPLE-parent-Value",
			rootDocId: "ocid1.test.oc1..<unique_ID>EXAMPLE-rootDocId-Value",

			}
,
		name: "EXAMPLE-name-Value",
		description: "EXAMPLE-description-Value",
		objectVersion: 446,
		objectStatus: 103,
		identifier: "EXAMPLE-identifier-Value",
		nodes: [{
				key: "EXAMPLE-key-Value",
				modelType: "EXAMPLE-modelType-Value",
				modelVersion: "EXAMPLE-modelVersion-Value",
				parentRef: {
					parent: "EXAMPLE-parent-Value",
					rootDocId: "ocid1.test.oc1..<unique_ID>EXAMPLE-rootDocId-Value",

					}
,
				name: "EXAMPLE-name-Value",
				description: "EXAMPLE-description-Value",
				inputLinks: [{
						modelType: "INPUT_LINK",						fromLink: "EXAMPLE-fromLink-Value",
						fieldMap: {
							modelType: "COMPOSITE_FIELD_MAP",							key: "EXAMPLE-key-Value",
							modelVersion: "EXAMPLE-modelVersion-Value",
							parentRef: {
								parent: "EXAMPLE-parent-Value",
								rootDocId: "ocid1.test.oc1..<unique_ID>EXAMPLE-rootDocId-Value",

								}
,
							configValues: {
								configParamValues: {
									EXAMPLE_KEY_eBXKE :{
										stringValue: "EXAMPLE-stringValue-Value",
										intValue: 904,
										objectValue: "EXAMPLE-objectValue-Value",
										refValue: "EXAMPLE-refValue-Value",
										parameterValue: "EXAMPLE-parameterValue-Value",
										rootObjectValue: "EXAMPLE-rootObjectValue-Value",

										}

									},
								parentRef: {
									parent: "EXAMPLE-parent-Value",
									rootDocId: "ocid1.test.oc1..<unique_ID>EXAMPLE-rootDocId-Value",

									}
,

								}
,
							objectStatus: 897,
							description: "EXAMPLE-description-Value"

							}
,
						key: "EXAMPLE-key-Value",
						modelVersion: "EXAMPLE-modelVersion-Value",
						parentRef: {
							parent: "EXAMPLE-parent-Value",
							rootDocId: "ocid1.test.oc1..<unique_ID>EXAMPLE-rootDocId-Value",

							}
,
						objectStatus: 956,
						description: "EXAMPLE-description-Value",
						port: "EXAMPLE-port-Value"

						}
						],
				outputLinks: [{
						modelType: "OUTPUT_LINK",						toLinks: ["EXAMPLE--Value"								],
						key: "EXAMPLE-key-Value",
						modelVersion: "EXAMPLE-modelVersion-Value",
						parentRef: {
							parent: "EXAMPLE-parent-Value",
							rootDocId: "ocid1.test.oc1..<unique_ID>EXAMPLE-rootDocId-Value",

							}
,
						objectStatus: 507,
						description: "EXAMPLE-description-Value",
						port: "EXAMPLE-port-Value"

						}
						],
				operator: {
					modelType: "LOOKUP_OPERATOR",					lookupCondition: {
						key: "EXAMPLE-key-Value",
						modelType: "EXAMPLE-modelType-Value",
						modelVersion: "EXAMPLE-modelVersion-Value",
						parentRef: {
							parent: "EXAMPLE-parent-Value",
							rootDocId: "ocid1.test.oc1..<unique_ID>EXAMPLE-rootDocId-Value",

							}
,
						exprString: "EXAMPLE-exprString-Value",
						configValues: {
							configParamValues: {
								EXAMPLE_KEY_Zri5A :{
									stringValue: "EXAMPLE-stringValue-Value",
									intValue: 261,
									objectValue: "EXAMPLE-objectValue-Value",
									refValue: "EXAMPLE-refValue-Value",
									parameterValue: "EXAMPLE-parameterValue-Value",
									rootObjectValue: "EXAMPLE-rootObjectValue-Value",

									}

								},
							parentRef: {
								parent: "EXAMPLE-parent-Value",
								rootDocId: "ocid1.test.oc1..<unique_ID>EXAMPLE-rootDocId-Value",

								}
,

							}
,
						objectStatus: 435,

						}
,
					isSkipNoMatch: true,
					multiMatchStrategy: dataintegration.models.Lookup.MultiMatchStrategy.ReturnFirst,
					nullFillValues: {
						EXAMPLE_KEY_NrTdI :"EXAMPLE--Value"
						},
					key: "EXAMPLE-key-Value",
					modelVersion: "EXAMPLE-modelVersion-Value",
					parentRef: {
						parent: "EXAMPLE-parent-Value",
						rootDocId: "ocid1.test.oc1..<unique_ID>EXAMPLE-rootDocId-Value",

						}
,
					name: "EXAMPLE-name-Value",
					description: "EXAMPLE-description-Value",
					objectVersion: 955,
					inputPorts: [{
							modelType: "INPUT_PORT",							portType: dataintegration.models.InputPort.PortType.Control,
							fields: [{
									modelType: "MATERIALIZED_DYNAMIC_FIELD",									scope: "EXAMPLE-scope-Value",
									type: {
										modelType: "MATERIALIZED_COMPOSITE_TYPE",										elements: ["EXAMPLE--Value"												],
										pathNames: ["EXAMPLE--Value"												],
										configDefinition: {
											key: "EXAMPLE-key-Value",
											modelType: "EXAMPLE-modelType-Value",
											modelVersion: "EXAMPLE-modelVersion-Value",
											parentRef: {
												parent: "EXAMPLE-parent-Value",
												rootDocId: "ocid1.test.oc1..<unique_ID>EXAMPLE-rootDocId-Value",

												}
,
											name: "EXAMPLE-name-Value",
											isContained: false,
											objectStatus: 643,
											configParameterDefinitions: {
												EXAMPLE_KEY_qHZr4 :{
													parameterName: "EXAMPLE-parameterName-Value",
													description: "EXAMPLE-description-Value",
													defaultValue: "EXAMPLE-defaultValue-Value",
													classFieldName: "EXAMPLE-classFieldName-Value",
													isStatic: true,
													isClassFieldValue: true,

													}

												},

											}
,
										key: "EXAMPLE-key-Value",
										modelVersion: "EXAMPLE-modelVersion-Value",
										parentRef: {
											parent: "EXAMPLE-parent-Value",
											rootDocId: "ocid1.test.oc1..<unique_ID>EXAMPLE-rootDocId-Value",

											}
,
										name: "EXAMPLE-name-Value",
										objectStatus: 851,
										description: "EXAMPLE-description-Value"

										}
,
									key: "EXAMPLE-key-Value",
									modelVersion: "EXAMPLE-modelVersion-Value",
									parentRef: {
										parent: "EXAMPLE-parent-Value",
										rootDocId: "ocid1.test.oc1..<unique_ID>EXAMPLE-rootDocId-Value",

										}
,
									configValues: {
										configParamValues: {
											EXAMPLE_KEY_0vNrH :{
												stringValue: "EXAMPLE-stringValue-Value",
												intValue: 677,
												objectValue: "EXAMPLE-objectValue-Value",
												refValue: "EXAMPLE-refValue-Value",
												parameterValue: "EXAMPLE-parameterValue-Value",
												rootObjectValue: "EXAMPLE-rootObjectValue-Value",

												}

											},
										parentRef: {
											parent: "EXAMPLE-parent-Value",
											rootDocId: "ocid1.test.oc1..<unique_ID>EXAMPLE-rootDocId-Value",

											}
,

										}
,
									objectStatus: 97,
									name: "EXAMPLE-name-Value",
									description: "EXAMPLE-description-Value"

									}
									],
							key: "EXAMPLE-key-Value",
							modelVersion: "EXAMPLE-modelVersion-Value",
							parentRef: {
								parent: "EXAMPLE-parent-Value",
								rootDocId: "ocid1.test.oc1..<unique_ID>EXAMPLE-rootDocId-Value",

								}
,
							configValues: {
								configParamValues: {
									EXAMPLE_KEY_t3Aqg :{
										stringValue: "EXAMPLE-stringValue-Value",
										intValue: 213,
										objectValue: "EXAMPLE-objectValue-Value",
										refValue: "EXAMPLE-refValue-Value",
										parameterValue: "EXAMPLE-parameterValue-Value",
										rootObjectValue: "EXAMPLE-rootObjectValue-Value",

										}

									},
								parentRef: {
									parent: "EXAMPLE-parent-Value",
									rootDocId: "ocid1.test.oc1..<unique_ID>EXAMPLE-rootDocId-Value",

									}
,

								}
,
							objectStatus: 458,
							name: "EXAMPLE-name-Value",
							description: "EXAMPLE-description-Value"

							}
							],
					outputPorts: [{
							modelType: "DYNAMIC_PROXY_FIELD",							type: {
								modelType: "DYNAMIC_TYPE",								typeHandler: {
									modelType: "FLATTEN_TYPE_HANDLER",									key: "EXAMPLE-key-Value",
									modelVersion: "EXAMPLE-modelVersion-Value",
									parentRef: {
										parent: "EXAMPLE-parent-Value",
										rootDocId: "ocid1.test.oc1..<unique_ID>EXAMPLE-rootDocId-Value",

										}
,
									scope: "EXAMPLE-scope-Value",
									flattenDetails: "EXAMPLE-flattenDetails-Value",
									configValues: {
										configParamValues: {
											EXAMPLE_KEY_RXcji :{
												stringValue: "EXAMPLE-stringValue-Value",
												intValue: 959,
												objectValue: "EXAMPLE-objectValue-Value",
												refValue: "EXAMPLE-refValue-Value",
												parameterValue: "EXAMPLE-parameterValue-Value",
												rootObjectValue: "EXAMPLE-rootObjectValue-Value",

												}

											},
										parentRef: {
											parent: "EXAMPLE-parent-Value",
											rootDocId: "ocid1.test.oc1..<unique_ID>EXAMPLE-rootDocId-Value",

											}
,

										}
,
									objectStatus: 753

									}
,
								configDefinition: {
									key: "EXAMPLE-key-Value",
									modelType: "EXAMPLE-modelType-Value",
									modelVersion: "EXAMPLE-modelVersion-Value",
									parentRef: {
										parent: "EXAMPLE-parent-Value",
										rootDocId: "ocid1.test.oc1..<unique_ID>EXAMPLE-rootDocId-Value",

										}
,
									name: "EXAMPLE-name-Value",
									isContained: true,
									objectStatus: 182,
									configParameterDefinitions: {
										EXAMPLE_KEY_UeYto :{
											parameterName: "EXAMPLE-parameterName-Value",
											description: "EXAMPLE-description-Value",
											defaultValue: "EXAMPLE-defaultValue-Value",
											classFieldName: "EXAMPLE-classFieldName-Value",
											isStatic: false,
											isClassFieldValue: true,

											}

										},

									}
,
								key: "EXAMPLE-key-Value",
								modelVersion: "EXAMPLE-modelVersion-Value",
								parentRef: {
									parent: "EXAMPLE-parent-Value",
									rootDocId: "ocid1.test.oc1..<unique_ID>EXAMPLE-rootDocId-Value",

									}
,
								name: "EXAMPLE-name-Value",
								objectStatus: 89,
								description: "EXAMPLE-description-Value"

								}
,
							labels: ["EXAMPLE--Value"									],
							key: "EXAMPLE-key-Value",
							modelVersion: "EXAMPLE-modelVersion-Value",
							parentRef: {
								parent: "EXAMPLE-parent-Value",
								rootDocId: "ocid1.test.oc1..<unique_ID>EXAMPLE-rootDocId-Value",

								}
,
							configValues: {
								configParamValues: {
									EXAMPLE_KEY_UOkdc :{
										stringValue: "EXAMPLE-stringValue-Value",
										intValue: 333,
										objectValue: "EXAMPLE-objectValue-Value",
										refValue: "EXAMPLE-refValue-Value",
										parameterValue: "EXAMPLE-parameterValue-Value",
										rootObjectValue: "EXAMPLE-rootObjectValue-Value",

										}

									},
								parentRef: {
									parent: "EXAMPLE-parent-Value",
									rootDocId: "ocid1.test.oc1..<unique_ID>EXAMPLE-rootDocId-Value",

									}
,

								}
,
							objectStatus: 695,
							name: "EXAMPLE-name-Value",
							description: "EXAMPLE-description-Value"

							}
							],
					objectStatus: 710,
					identifier: "EXAMPLE-identifier-Value",
					parameters: [{
							modelType: "PARAMETER",							type: "EXAMPLE-type-Value",
							defaultValue: "EXAMPLE-defaultValue-Value",
							rootObjectDefaultValue: "EXAMPLE-rootObjectDefaultValue-Value",
							isInput: true,
							isOutput: false,
							outputAggregationType: dataintegration.models.Parameter.OutputAggregationType.Count,
							typeName: "EXAMPLE-typeName-Value",
							usedFor: "EXAMPLE-usedFor-Value",
							key: "EXAMPLE-key-Value",
							modelVersion: "EXAMPLE-modelVersion-Value",
							parentRef: {
								parent: "EXAMPLE-parent-Value",
								rootDocId: "ocid1.test.oc1..<unique_ID>EXAMPLE-rootDocId-Value",

								}
,
							configValues: {
								configParamValues: {
									EXAMPLE_KEY_nSX4f :{
										stringValue: "EXAMPLE-stringValue-Value",
										intValue: 307,
										objectValue: "EXAMPLE-objectValue-Value",
										refValue: "EXAMPLE-refValue-Value",
										parameterValue: "EXAMPLE-parameterValue-Value",
										rootObjectValue: "EXAMPLE-rootObjectValue-Value",

										}

									},
								parentRef: {
									parent: "EXAMPLE-parent-Value",
									rootDocId: "ocid1.test.oc1..<unique_ID>EXAMPLE-rootDocId-Value",

									}
,

								}
,
							objectStatus: 873,
							name: "EXAMPLE-name-Value",
							description: "EXAMPLE-description-Value"

							}
							],
					opConfigValues: {
						configParamValues: {
							EXAMPLE_KEY_WyVOy :{
								stringValue: "EXAMPLE-stringValue-Value",
								intValue: 957,
								objectValue: "EXAMPLE-objectValue-Value",
								refValue: "EXAMPLE-refValue-Value",
								parameterValue: "EXAMPLE-parameterValue-Value",
								rootObjectValue: "EXAMPLE-rootObjectValue-Value",

								}

							},
						parentRef: {
							parent: "EXAMPLE-parent-Value",
							rootDocId: "ocid1.test.oc1..<unique_ID>EXAMPLE-rootDocId-Value",

							}
,

						}


					}
,
				uiProperties: {
					coordinateX: 4426.885,
					coordinateY: 5797.948,

					}
,
				objectStatus: 266,

				}
				],
		parameters: [{
				modelType: "PARAMETER",				type: "EXAMPLE-type-Value",
				defaultValue: "EXAMPLE-defaultValue-Value",
				rootObjectDefaultValue: "EXAMPLE-rootObjectDefaultValue-Value",
				isInput: true,
				isOutput: true,
				outputAggregationType: dataintegration.models.Parameter.OutputAggregationType.Sum,
				typeName: "EXAMPLE-typeName-Value",
				usedFor: "EXAMPLE-usedFor-Value",
				key: "EXAMPLE-key-Value",
				modelVersion: "EXAMPLE-modelVersion-Value",
				parentRef: {
					parent: "EXAMPLE-parent-Value",
					rootDocId: "ocid1.test.oc1..<unique_ID>EXAMPLE-rootDocId-Value",

					}
,
				configValues: {
					configParamValues: {
						EXAMPLE_KEY_u7JC3 :{
							stringValue: "EXAMPLE-stringValue-Value",
							intValue: 902,
							objectValue: "EXAMPLE-objectValue-Value",
							refValue: "EXAMPLE-refValue-Value",
							parameterValue: "EXAMPLE-parameterValue-Value",
							rootObjectValue: "EXAMPLE-rootObjectValue-Value",

							}

						},
					parentRef: {
						parent: "EXAMPLE-parent-Value",
						rootDocId: "ocid1.test.oc1..<unique_ID>EXAMPLE-rootDocId-Value",

						}
,

					}
,
				objectStatus: 313,
				name: "EXAMPLE-name-Value",
				description: "EXAMPLE-description-Value"

				}
				],
		flowConfigValues: {
			configParamValues: {
				EXAMPLE_KEY_Qajom :{
					stringValue: "EXAMPLE-stringValue-Value",
					intValue: 475,
					objectValue: "EXAMPLE-objectValue-Value",
					refValue: "EXAMPLE-refValue-Value",
					parameterValue: "EXAMPLE-parameterValue-Value",
					rootObjectValue: "EXAMPLE-rootObjectValue-Value",

					}

				},
			parentRef: {
				parent: "EXAMPLE-parent-Value",
				rootDocId: "ocid1.test.oc1..<unique_ID>EXAMPLE-rootDocId-Value",

				}
,

			}
,
		variables: [{
				key: "EXAMPLE-key-Value",
				modelVersion: "EXAMPLE-modelVersion-Value",
				modelType: "EXAMPLE-modelType-Value",
				parentRef: {
					parent: "EXAMPLE-parent-Value",
					rootDocId: "ocid1.test.oc1..<unique_ID>EXAMPLE-rootDocId-Value",

					}
,
				name: "EXAMPLE-name-Value",
				description: "EXAMPLE-description-Value",
				objectVersion: 197,
				objectStatus: 283,
				identifier: "EXAMPLE-identifier-Value",
				type: {
					modelType: "DATA_TYPE",					dtType: dataintegration.models.DataType.DtType.Structured,
					typeSystemName: "EXAMPLE-typeSystemName-Value",
					configDefinition: {
						key: "EXAMPLE-key-Value",
						modelType: "EXAMPLE-modelType-Value",
						modelVersion: "EXAMPLE-modelVersion-Value",
						parentRef: {
							parent: "EXAMPLE-parent-Value",
							rootDocId: "ocid1.test.oc1..<unique_ID>EXAMPLE-rootDocId-Value",

							}
,
						name: "EXAMPLE-name-Value",
						isContained: false,
						objectStatus: 183,
						configParameterDefinitions: {
							EXAMPLE_KEY_SyF10 :{
								parameterName: "EXAMPLE-parameterName-Value",
								description: "EXAMPLE-description-Value",
								defaultValue: "EXAMPLE-defaultValue-Value",
								classFieldName: "EXAMPLE-classFieldName-Value",
								isStatic: false,
								isClassFieldValue: false,

								}

							},

						}
,
					key: "EXAMPLE-key-Value",
					modelVersion: "EXAMPLE-modelVersion-Value",
					parentRef: {
						parent: "EXAMPLE-parent-Value",
						rootDocId: "ocid1.test.oc1..<unique_ID>EXAMPLE-rootDocId-Value",

						}
,
					name: "EXAMPLE-name-Value",
					objectStatus: 626,
					description: "EXAMPLE-description-Value"

					}
,
				configValues: {
					configParamValues: {
						EXAMPLE_KEY_5RRxu :{
							stringValue: "EXAMPLE-stringValue-Value",
							intValue: 485,
							objectValue: "EXAMPLE-objectValue-Value",
							refValue: "EXAMPLE-refValue-Value",
							parameterValue: "EXAMPLE-parameterValue-Value",
							rootObjectValue: "EXAMPLE-rootObjectValue-Value",

							}

						},
					parentRef: {
						parent: "EXAMPLE-parent-Value",
						rootDocId: "ocid1.test.oc1..<unique_ID>EXAMPLE-rootDocId-Value",

						}
,

					}
,
				defaultValue: "EXAMPLE-defaultValue-Value",
				rootObjectDefaultValue: {
					key: "EXAMPLE-key-Value",
					modelType: "EXAMPLE-modelType-Value",
					modelVersion: "EXAMPLE-modelVersion-Value",
					parentRef: {
						parent: "EXAMPLE-parent-Value",
						rootDocId: "ocid1.test.oc1..<unique_ID>EXAMPLE-rootDocId-Value",

						}
,
					objectStatus: 12,

					}
,

				}
				],
		registryMetadata: {
			aggregatorKey: "EXAMPLE-aggregatorKey-Value",
			labels: ["EXAMPLE--Value"					],
			registryVersion: 463,
			key: "EXAMPLE-key-Value",
			isFavorite: true,

			}
,

		}

	const updatePipelineRequest: dataintegration.requests.UpdatePipelineRequest = { 
	workspaceId: "ocid1.test.oc1..<unique_ID>EXAMPLE-workspaceId-Value",
	pipelineKey: "EXAMPLE-pipelineKey-Value",
	updatePipelineDetails: updatePipelineDetails,
	opcRequestId: "TJAJEQ9JRDBBEF1ONYDX<unique_ID>",
	ifMatch: "EXAMPLE-ifMatch-Value",

		}; 


     // Send request to the Client.
     const updatePipelineResponse = await client.updatePipeline(updatePipelineRequest);
     }
     catch (error) {
         console.log("updatePipeline Failed with error  " + error);
     }
})();