// 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: 487,
		objectStatus: 743,
		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: "RULE_BASED_ENTITY_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_pyK6Z :{
										stringValue: "EXAMPLE-stringValue-Value",
										intValue: 642,
										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",

									}
,

								}
,
							mapType: dataintegration.models.RuleBasedEntityMap.MapType.Mapbyname,
							fromPattern: "EXAMPLE-fromPattern-Value",
							toPattern: "EXAMPLE-toPattern-Value",
							isJavaRegexSyntax: true,
							objectStatus: 788,
							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: 974,
						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: 933,
						description: "EXAMPLE-description-Value",
						port: "EXAMPLE-port-Value"

						}
						],
				operator: {
					modelType: "FILTER_OPERATOR",					filterCondition: {
						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_83b2W :{
									stringValue: "EXAMPLE-stringValue-Value",
									intValue: 726,
									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: 993,

						}
,
					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: 420,
					inputPorts: [{
							modelType: "INPUT_PORT",							portType: dataintegration.models.InputPort.PortType.Model,
							fields: [{
									modelType: "OUTPUT_FIELD",									type: {
										modelType: "COMPOSITE_TYPE",										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: 291,
											configParameterDefinitions: {
												EXAMPLE_KEY_bQJN1 :{
													parameterName: "EXAMPLE-parameterName-Value",
													description: "EXAMPLE-description-Value",
													defaultValue: "EXAMPLE-defaultValue-Value",
													classFieldName: "EXAMPLE-classFieldName-Value",
													isStatic: true,
													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: 161,
										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_d8nO1 :{
												stringValue: "EXAMPLE-stringValue-Value",
												intValue: 630,
												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: 632,
									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_5xwNI :{
										stringValue: "EXAMPLE-stringValue-Value",
										intValue: 35,
										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: 711,
							name: "EXAMPLE-name-Value",
							description: "EXAMPLE-description-Value"

							}
							],
					outputPorts: [{
							modelType: "OUTPUT_FIELD",							type: {
								modelType: "MAP_TYPE",								keyElementType: "EXAMPLE-keyElementType-Value",
								valueElementType: "EXAMPLE-valueElementType-Value",
								containsNull: 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: 798,
								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_CGmDn :{
										stringValue: "EXAMPLE-stringValue-Value",
										intValue: 368,
										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: 697,
							name: "EXAMPLE-name-Value",
							description: "EXAMPLE-description-Value"

							}
							],
					objectStatus: 422,
					identifier: "EXAMPLE-identifier-Value",
					parameters: [{
							modelType: "PARAMETER",							type: "EXAMPLE-type-Value",
							defaultValue: "EXAMPLE-defaultValue-Value",
							rootObjectDefaultValue: "EXAMPLE-rootObjectDefaultValue-Value",
							isInput: true,
							isOutput: true,
							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_1OsSC :{
										stringValue: "EXAMPLE-stringValue-Value",
										intValue: 443,
										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: 483,
							name: "EXAMPLE-name-Value",
							description: "EXAMPLE-description-Value"

							}
							],
					opConfigValues: {
						configParamValues: {
							EXAMPLE_KEY_9u3U0 :{
								stringValue: "EXAMPLE-stringValue-Value",
								intValue: 305,
								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: 885.4705,
					coordinateY: 4360.1523,

					}
,
				objectStatus: 238,

				}
				],
		parameters: [{
				modelType: "PARAMETER",				type: "EXAMPLE-type-Value",
				defaultValue: "EXAMPLE-defaultValue-Value",
				rootObjectDefaultValue: "EXAMPLE-rootObjectDefaultValue-Value",
				isInput: true,
				isOutput: true,
				outputAggregationType: dataintegration.models.Parameter.OutputAggregationType.Min,
				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_FMUkk :{
							stringValue: "EXAMPLE-stringValue-Value",
							intValue: 248,
							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: 760,
				name: "EXAMPLE-name-Value",
				description: "EXAMPLE-description-Value"

				}
				],
		flowConfigValues: {
			configParamValues: {
				EXAMPLE_KEY_0Dx3U :{
					stringValue: "EXAMPLE-stringValue-Value",
					intValue: 538,
					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: 663,
				objectStatus: 619,
				identifier: "EXAMPLE-identifier-Value",
				type: {
					modelType: "JAVA_TYPE",					javaTypeName: "EXAMPLE-javaTypeName-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: true,
						objectStatus: 997,
						configParameterDefinitions: {
							EXAMPLE_KEY_1JAVE :{
								parameterName: "EXAMPLE-parameterName-Value",
								description: "EXAMPLE-description-Value",
								defaultValue: "EXAMPLE-defaultValue-Value",
								classFieldName: "EXAMPLE-classFieldName-Value",
								isStatic: true,
								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: 37,
					description: "EXAMPLE-description-Value"

					}
,
				configValues: {
					configParamValues: {
						EXAMPLE_KEY_eiykk :{
							stringValue: "EXAMPLE-stringValue-Value",
							intValue: 1,
							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: 951,

					}
,

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

			}
,

		}

	const updatePipelineRequest: dataintegration.requests.UpdatePipelineRequest = { 
	workspaceId: "ocid1.test.oc1..<unique_ID>EXAMPLE-workspaceId-Value",
	pipelineKey: "EXAMPLE-pipelineKey-Value",
	updatePipelineDetails: updatePipelineDetails,
	opcRequestId: "AVXS4K2B4LPEOCVQLOUX<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);
     }
})();