// 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  createPipelineDetails = {
		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",
		modelType: "EXAMPLE-modelType-Value",
		objectVersion: 640,
		objectStatus: 33,
		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: "CONDITIONAL_COMPOSITE_FIELD_MAP",							fieldMapScope: [{
									modelType: "TYPE_LIST_RULE",									isSkipRemainingRulesOnMatch: false,
									scope: "EXAMPLE-scope-Value",
									isCascade: true,
									matchingStrategy: dataintegration.models.TypeListRule.MatchingStrategy.NameOnly,
									isCaseSensitive: false,
									ruleType: dataintegration.models.TypeListRule.RuleType.Exclude,
									types: ["EXAMPLE-types-Value"											],
									key: "EXAMPLE-key-Value",
									modelVersion: "EXAMPLE-modelVersion-Value",
									parentRef: {
										parent: "EXAMPLE-parent-Value",
										rootDocId: "ocid1.test.oc1..<unique_ID>EXAMPLE-rootDocId-Value",

										}
,
									isJavaRegexSyntax: true,
									configValues: {
										configParamValues: {
											EXAMPLE_KEY_Xtla1 :{
												stringValue: "EXAMPLE-stringValue-Value",
												intValue: 679,
												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: 232,
									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_ocCS1 :{
										stringValue: "EXAMPLE-stringValue-Value",
										intValue: 339,
										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: 319,
							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: 928,
						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: 637,
						description: "EXAMPLE-description-Value",
						port: "EXAMPLE-port-Value"

						}
						],
				operator: {
					modelType: "EXPRESSION_OPERATOR",					triggerRule: dataintegration.models.ExpressionOperator.TriggerRule.AllFailed,
					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: 30,
					inputPorts: [{
							modelType: "INPUT_PORT",							portType: dataintegration.models.InputPort.PortType.Model,
							fields: [{
									modelType: "DERIVED_FIELD",									expr: {
										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_lZcQ4 :{
													stringValue: "EXAMPLE-stringValue-Value",
													intValue: 429,
													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: 238,

										}
,
									type: "EXAMPLE-type-Value",
									isUseInferredType: true,
									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_dRQxE :{
												stringValue: "EXAMPLE-stringValue-Value",
												intValue: 875,
												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: 690,
									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_tvHsE :{
										stringValue: "EXAMPLE-stringValue-Value",
										intValue: 3,
										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: 555,
							name: "EXAMPLE-name-Value",
							description: "EXAMPLE-description-Value"

							}
							],
					outputPorts: [{
							modelType: "SHAPE_FIELD",							type: "EXAMPLE-type-Value",
							labels: ["EXAMPLE--Value"									],
							nativeShapeField: {
								name: "EXAMPLE-name-Value",
								modelType: "EXAMPLE-modelType-Value",
								type: "EXAMPLE-type-Value",
								configValues: {
									configParamValues: {
										EXAMPLE_KEY_aL9LX :{
											stringValue: "EXAMPLE-stringValue-Value",
											intValue: 119,
											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",

										}
,

									}
,
								position: 842,
								defaultValueString: "EXAMPLE-defaultValueString-Value",
								isMandatory: true,

								}
,
							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_dOw84 :{
										stringValue: "EXAMPLE-stringValue-Value",
										intValue: 437,
										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: 885,
							name: "EXAMPLE-name-Value",
							description: "EXAMPLE-description-Value"

							}
							],
					objectStatus: 418,
					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.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_co7uZ :{
										stringValue: "EXAMPLE-stringValue-Value",
										intValue: 883,
										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: 542,
							name: "EXAMPLE-name-Value",
							description: "EXAMPLE-description-Value"

							}
							],
					opConfigValues: {
						configParamValues: {
							EXAMPLE_KEY_t9ovn :{
								stringValue: "EXAMPLE-stringValue-Value",
								intValue: 628,
								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: 122.470856,
					coordinateY: 515.7024,

					}
,
				objectStatus: 622,

				}
				],
		parameters: [{
				modelType: "PARAMETER",				type: "EXAMPLE-type-Value",
				defaultValue: "EXAMPLE-defaultValue-Value",
				rootObjectDefaultValue: "EXAMPLE-rootObjectDefaultValue-Value",
				isInput: true,
				isOutput: false,
				outputAggregationType: dataintegration.models.Parameter.OutputAggregationType.Max,
				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_8MQ7o :{
							stringValue: "EXAMPLE-stringValue-Value",
							intValue: 956,
							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"

				}
				],
		flowConfigValues: {
			configParamValues: {
				EXAMPLE_KEY_kuO92 :{
					stringValue: "EXAMPLE-stringValue-Value",
					intValue: 853,
					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: 458,
				objectStatus: 780,
				identifier: "EXAMPLE-identifier-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: 675,
						configParameterDefinitions: {
							EXAMPLE_KEY_0Wasr :{
								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: 505,
					description: "EXAMPLE-description-Value"

					}
,
				configValues: {
					configParamValues: {
						EXAMPLE_KEY_9hDf3 :{
							stringValue: "EXAMPLE-stringValue-Value",
							intValue: 771,
							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: 852,

					}
,

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

			}
,

		}

	const createPipelineRequest: dataintegration.requests.CreatePipelineRequest = { 
	workspaceId: "ocid1.test.oc1..<unique_ID>EXAMPLE-workspaceId-Value",
	createPipelineDetails: createPipelineDetails,
	opcRetryToken: "EXAMPLE-opcRetryToken-Value",
	opcRequestId: "ZEWXQBADFFYR9H9O1ER2<unique_ID>",

		}; 


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