// 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  createDataFlowValidationDetails = {
		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",
		identifier: "EXAMPLE-identifier-Value",
		objectVersion: 42,
		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: "DIRECT_NAMED_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_BBCDp :{
										stringValue: "EXAMPLE-stringValue-Value",
										intValue: 587,
										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",

									}
,

								}
,
							sourceTypedObject: "EXAMPLE-sourceTypedObject-Value",
							targetTypedObject: "EXAMPLE-targetTypedObject-Value",
							sourceScopeReference: {
								referenceObject: "EXAMPLE-referenceObject-Value",
								referenceType: dataintegration.models.ScopeReference.ReferenceType.OciFunctionInputShape,
								refObjectName: "EXAMPLE-refObjectName-Value",

								}
,
							targetScopeReference: {
								referenceObject: "EXAMPLE-referenceObject-Value",
								referenceType: dataintegration.models.ScopeReference.ReferenceType.BoundEntityShape,
								refObjectName: "EXAMPLE-refObjectName-Value",

								}
,
							sourceFieldName: "EXAMPLE-sourceFieldName-Value",
							targetFieldName: "EXAMPLE-targetFieldName-Value",
							objectStatus: 88,
							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: 651,
						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: 558,
						description: "EXAMPLE-description-Value",
						port: "EXAMPLE-port-Value"

						}
						],
				operator: {
					modelType: "UNION_OPERATOR",					unionType: dataintegration.models.Union.UnionType.Position,
					isAll: 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",
					description: "EXAMPLE-description-Value",
					objectVersion: 959,
					inputPorts: [{
							modelType: "INPUT_PORT",							portType: dataintegration.models.InputPort.PortType.Control,
							fields: [{
									modelType: "PIVOT_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_3pu4v :{
													stringValue: "EXAMPLE-stringValue-Value",
													intValue: 922,
													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: 273,

										}
,
									useType: {
										modelType: "CONFIGURED_TYPE",										wrappedType: "EXAMPLE-wrappedType-Value",
										configValues: {
											configParamValues: {
												EXAMPLE_KEY_ssnGU :{
													stringValue: "EXAMPLE-stringValue-Value",
													intValue: 585,
													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",

												}
,

											}
,
										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: 621,
											configParameterDefinitions: {
												EXAMPLE_KEY_0LvC5 :{
													parameterType: {
														modelType: "ARRAY_TYPE",														elementType: "EXAMPLE-elementType-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",
														objectStatus: 907,
														description: "EXAMPLE-description-Value"

														}
,
													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: 790,
										description: "EXAMPLE-description-Value"

										}
,
									type: {
										modelType: "ARRAY_TYPE",										elementType: "EXAMPLE-elementType-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",
										objectStatus: 434,
										description: "EXAMPLE-description-Value"

										}
,
									columnNamePattern: "EXAMPLE-columnNamePattern-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_vnjzW :{
												stringValue: "EXAMPLE-stringValue-Value",
												intValue: 740,
												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,
									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_gIz7w :{
										stringValue: "EXAMPLE-stringValue-Value",
										intValue: 662,
										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: 498,
							name: "EXAMPLE-name-Value",
							description: "EXAMPLE-description-Value"

							}
							],
					outputPorts: [{
							modelType: "INPUT_FIELD",							type: {
								modelType: "ARRAY_TYPE",								elementType: "EXAMPLE-elementType-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",
								objectStatus: 495,
								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_6ac2n :{
										stringValue: "EXAMPLE-stringValue-Value",
										intValue: 750,
										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: 15,
							name: "EXAMPLE-name-Value",
							description: "EXAMPLE-description-Value"

							}
							],
					objectStatus: 425,
					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.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_RG3Lz :{
										stringValue: "EXAMPLE-stringValue-Value",
										intValue: 910,
										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: 191,
							name: "EXAMPLE-name-Value",
							description: "EXAMPLE-description-Value"

							}
							],
					opConfigValues: {
						configParamValues: {
							EXAMPLE_KEY_6BBhh :{
								stringValue: "EXAMPLE-stringValue-Value",
								intValue: 534,
								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: 1732.7595,
					coordinateY: 9300.651,

					}
,
				objectStatus: 683,

				}
				],
		parameters: [{
				modelType: "PARAMETER",				type: "EXAMPLE-type-Value",
				defaultValue: "EXAMPLE-defaultValue-Value",
				rootObjectDefaultValue: "EXAMPLE-rootObjectDefaultValue-Value",
				isInput: false,
				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_gcvp5 :{
							stringValue: "EXAMPLE-stringValue-Value",
							intValue: 582,
							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: 102,
				name: "EXAMPLE-name-Value",
				description: "EXAMPLE-description-Value"

				}
				],
		description: "EXAMPLE-description-Value",
		flowConfigValues: {
			configParamValues: {
				EXAMPLE_KEY_xmPhd :{
					stringValue: "EXAMPLE-stringValue-Value",
					intValue: 195,
					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: 243,
		metadata: {
			createdBy: "EXAMPLE-createdBy-Value",
			createdByName: "EXAMPLE-createdByName-Value",
			updatedBy: "EXAMPLE-updatedBy-Value",
			updatedByName: "EXAMPLE-updatedByName-Value",
			timeCreated: new Date("Wed Aug 20 02:21:44 UTC 2042"),
			timeUpdated: new Date("Sat Oct 27 03:42:07 UTC 2029"),
			aggregatorKey: "EXAMPLE-aggregatorKey-Value",
			aggregator: {
				type: "EXAMPLE-type-Value",
				key: "EXAMPLE-key-Value",
				name: "EXAMPLE-name-Value",
				identifier: "EXAMPLE-identifier-Value",
				description: "EXAMPLE-description-Value",

				}
,
			identifierPath: "EXAMPLE-identifierPath-Value",
			infoFields: {
				EXAMPLE_KEY_9OpfF :"EXAMPLE_VALUE_SwJtqUdFOKDNlg6rMfOn"
				},
			registryVersion: 494,
			labels: ["EXAMPLE--Value"					],
			isFavorite: true,
			countStatistics: {
				objectTypeCountList: [{
						objectType: dataintegration.models.CountStatisticSummary.ObjectType.Task,
						objectCount: 758,

						}
						],

				}
,

			}
,
		keyMap: {
			EXAMPLE_KEY_yNACj :"EXAMPLE_VALUE_WMZxz4zu8UItbf16By2e"
			},
		typedObjectMap: {
			EXAMPLE_KEY_NkQph :{
				typedObject: {
					modelType: "FLOW_PORT",					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_yTMVY :{
								stringValue: "EXAMPLE-stringValue-Value",
								intValue: 938,
								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: 132,
					name: "EXAMPLE-name-Value",
					description: "EXAMPLE-description-Value"

					}
,

				}

			},
		targetFieldMapSummary: {
			EXAMPLE_KEY_p2LIR :{
				fieldMap: {
					modelType: "NAMED_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_GEAIC :{
								stringValue: "EXAMPLE-stringValue-Value",
								intValue: 735,
								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",

							}
,

						}
,
					sourceEntity: "EXAMPLE-sourceEntity-Value",
					targetEntity: "EXAMPLE-targetEntity-Value",
					objectStatus: 907,
					description: "EXAMPLE-description-Value"

					}
,

				}

			},

		}

	const createDataFlowValidationRequest: dataintegration.requests.CreateDataFlowValidationRequest = { 
	workspaceId: "ocid1.test.oc1..<unique_ID>EXAMPLE-workspaceId-Value",
	createDataFlowValidationDetails: createDataFlowValidationDetails,
	opcRequestId: "N0J5QR2ZVNIU9YXYNEBR<unique_ID>",
	opcRetryToken: "EXAMPLE-opcRetryToken-Value",

		}; 


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