// 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: 507,
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_w7srV :{
stringValue: "EXAMPLE-stringValue-Value",
intValue: 671,
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.BoundEntityShapeField,
refObjectName: "EXAMPLE-refObjectName-Value",
}
,
targetScopeReference: {
referenceObject: "EXAMPLE-referenceObject-Value",
referenceType: dataintegration.models.ScopeReference.ReferenceType.OciFunctionInputShape,
refObjectName: "EXAMPLE-refObjectName-Value",
}
,
sourceFieldName: "EXAMPLE-sourceFieldName-Value",
targetFieldName: "EXAMPLE-targetFieldName-Value",
objectStatus: 687,
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: 5,
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: 683,
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_T1HhF :{
stringValue: "EXAMPLE-stringValue-Value",
intValue: 836,
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: 533,
}
,
isSkipNoMatch: true,
multiMatchStrategy: dataintegration.models.Lookup.MultiMatchStrategy.ReturnLast,
nullFillValues: {
EXAMPLE_KEY_3HG7P :"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: 923,
inputPorts: [{
modelType: "INPUT_PORT", portType: dataintegration.models.InputPort.PortType.Model,
fields: [{
modelType: "PROXY_FIELD", scope: "EXAMPLE-scope-Value",
scopeReference: {
referenceObject: "EXAMPLE-referenceObject-Value",
referenceType: dataintegration.models.ScopeReference.ReferenceType.OciFunctionInputShape,
refObjectName: "EXAMPLE-refObjectName-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: false,
objectStatus: 637,
configParameterDefinitions: {
EXAMPLE_KEY_nMDNP :{
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: 684,
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_BZ5sx :{
stringValue: "EXAMPLE-stringValue-Value",
intValue: 18,
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: 429,
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_AhRWC :{
stringValue: "EXAMPLE-stringValue-Value",
intValue: 373,
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"
}
],
outputPorts: [{
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_VspJc :{
stringValue: "EXAMPLE-stringValue-Value",
intValue: 601,
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: 824,
name: "EXAMPLE-name-Value",
description: "EXAMPLE-description-Value"
}
],
objectStatus: 370,
identifier: "EXAMPLE-identifier-Value",
parameters: [{
modelType: "PARAMETER", type: "EXAMPLE-type-Value",
defaultValue: "EXAMPLE-defaultValue-Value",
rootObjectDefaultValue: "EXAMPLE-rootObjectDefaultValue-Value",
isInput: false,
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_9LFip :{
stringValue: "EXAMPLE-stringValue-Value",
intValue: 110,
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: 101,
name: "EXAMPLE-name-Value",
description: "EXAMPLE-description-Value"
}
],
opConfigValues: {
configParamValues: {
EXAMPLE_KEY_DUERK :{
stringValue: "EXAMPLE-stringValue-Value",
intValue: 723,
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: 816.22125,
coordinateY: 1688.2599,
}
,
objectStatus: 842,
}
],
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_F1X6H :{
stringValue: "EXAMPLE-stringValue-Value",
intValue: 638,
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: 516,
name: "EXAMPLE-name-Value",
description: "EXAMPLE-description-Value"
}
],
description: "EXAMPLE-description-Value",
flowConfigValues: {
configParamValues: {
EXAMPLE_KEY_7WRB2 :{
stringValue: "EXAMPLE-stringValue-Value",
intValue: 444,
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: 921,
metadata: {
createdBy: "EXAMPLE-createdBy-Value",
createdByName: "EXAMPLE-createdByName-Value",
updatedBy: "EXAMPLE-updatedBy-Value",
updatedByName: "EXAMPLE-updatedByName-Value",
timeCreated: new Date("Tue Oct 04 05:01:37 UTC 2005"),
timeUpdated: new Date("Fri Jan 14 01:51:38 UTC 2000"),
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_m9lee :"EXAMPLE_VALUE_IG9k9KTitA1oBpeowZnw"
},
registryVersion: 176,
labels: ["EXAMPLE--Value" ],
isFavorite: false,
countStatistics: {
objectTypeCountList: [{
objectType: dataintegration.models.CountStatisticSummary.ObjectType.Project,
objectCount: 337,
}
],
}
,
}
,
keyMap: {
EXAMPLE_KEY_r1bs3 :"EXAMPLE_VALUE_QqxjhGbjHhrxn4HEO6Ui"
},
typedObjectMap: {
EXAMPLE_KEY_QFgTH :{
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_9Zr7q :{
stringValue: "EXAMPLE-stringValue-Value",
intValue: 394,
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: 29,
name: "EXAMPLE-name-Value",
description: "EXAMPLE-description-Value"
}
,
}
},
targetFieldMapSummary: {
EXAMPLE_KEY_kFLcW :{
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_mfrQE :{
stringValue: "EXAMPLE-stringValue-Value",
intValue: 156,
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: "BVG82MFABMZJTP2M8OGR<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);
}
})();