// 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: 594,
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_TxHOO: {
stringValue: "EXAMPLE-stringValue-Value",
intValue: 424,
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.Mapbypattern,
fromPattern: "EXAMPLE-fromPattern-Value",
toPattern: "EXAMPLE-toPattern-Value",
isJavaRegexSyntax: false,
objectStatus: 254,
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: 138,
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: 205,
description: "EXAMPLE-description-Value",
port: "EXAMPLE-port-Value"
}
],
operator: {
modelType: "MERGE_OPERATOR",
triggerRule: dataintegration.models.MergeOperator.TriggerRule.OneSuccess,
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: 205,
inputPorts: [
{
modelType: "INPUT_PORT",
portType: dataintegration.models.InputPort.PortType.Control,
fields: [
{
modelType: "INPUT_FIELD",
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: 778,
configParameterDefinitions: {
EXAMPLE_KEY_yRM7Y: {
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: 350,
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_WAj1r: {
stringValue: "EXAMPLE-stringValue-Value",
intValue: 125,
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: 679,
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_LzgRI: {
stringValue: "EXAMPLE-stringValue-Value",
intValue: 466,
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: 480,
name: "EXAMPLE-name-Value",
description: "EXAMPLE-description-Value"
}
],
outputPorts: [
{
modelType: "MACRO_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_kdOjk: {
stringValue: "EXAMPLE-stringValue-Value",
intValue: 524,
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: 236
},
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: false,
objectStatus: 603,
configParameterDefinitions: {
EXAMPLE_KEY_BaaVv: {
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: 366,
description: "EXAMPLE-description-Value"
},
isUseSourceType: true,
useType: {
modelType: "CONFIGURED_TYPE",
wrappedType: "EXAMPLE-wrappedType-Value",
configValues: {
configParamValues: {
EXAMPLE_KEY_cnfZb: {
stringValue: "EXAMPLE-stringValue-Value",
intValue: 685,
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: false,
objectStatus: 622,
configParameterDefinitions: {
EXAMPLE_KEY_35bGP: {
parameterType: {
modelType: "MAP_TYPE",
keyElementType: "EXAMPLE-keyElementType-Value",
valueElementType: "EXAMPLE-valueElementType-Value",
containsNull: 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: 754,
description: "EXAMPLE-description-Value"
},
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: 746,
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_f0iXX: {
stringValue: "EXAMPLE-stringValue-Value",
intValue: 972,
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: 704,
name: "EXAMPLE-name-Value",
description: "EXAMPLE-description-Value"
}
],
objectStatus: 279,
identifier: "EXAMPLE-identifier-Value",
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_OEIw3: {
stringValue: "EXAMPLE-stringValue-Value",
intValue: 945,
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: 336,
name: "EXAMPLE-name-Value",
description: "EXAMPLE-description-Value"
}
],
opConfigValues: {
configParamValues: {
EXAMPLE_KEY_jDeD4: {
stringValue: "EXAMPLE-stringValue-Value",
intValue: 395,
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: 8525.992,
coordinateY: 633.111
},
objectStatus: 182
}
],
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_NvWYl: {
stringValue: "EXAMPLE-stringValue-Value",
intValue: 798,
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: 170,
name: "EXAMPLE-name-Value",
description: "EXAMPLE-description-Value"
}
],
description: "EXAMPLE-description-Value",
flowConfigValues: {
configParamValues: {
EXAMPLE_KEY_je37z: {
stringValue: "EXAMPLE-stringValue-Value",
intValue: 739,
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: 286,
metadata: {
createdBy: "EXAMPLE-createdBy-Value",
createdByName: "EXAMPLE-createdByName-Value",
updatedBy: "EXAMPLE-updatedBy-Value",
updatedByName: "EXAMPLE-updatedByName-Value",
timeCreated: new Date("Tue May 18 01:51:10 UTC 2004"),
timeUpdated: new Date("Mon Mar 11 19:53:35 UTC 2002"),
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_a5smN: "EXAMPLE_VALUE_kZl27gHBJEZXOakG8qOW"
},
registryVersion: 910,
labels: ["EXAMPLE--Value"],
isFavorite: true,
countStatistics: {
objectTypeCountList: [
{
objectType: dataintegration.models.CountStatisticSummary.ObjectType.Folder,
objectCount: 60
}
]
}
},
keyMap: {
EXAMPLE_KEY_fdXjb: "EXAMPLE_VALUE_HlgUxfhhapVKDSVD4KOf"
},
typedObjectMap: {
EXAMPLE_KEY_XRJ7q: {
typedObject: {
modelType: "DYNAMIC_PROXY_FIELD",
type: {
modelType: "CONFIGURED_TYPE",
wrappedType: "EXAMPLE-wrappedType-Value",
configValues: {
configParamValues: {
EXAMPLE_KEY_70Byb: {
stringValue: "EXAMPLE-stringValue-Value",
intValue: 215,
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: false,
objectStatus: 888,
configParameterDefinitions: {
EXAMPLE_KEY_o0V7Z: {
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: 439,
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_KmpYF: {
stringValue: "EXAMPLE-stringValue-Value",
intValue: 896,
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: 733,
name: "EXAMPLE-name-Value",
description: "EXAMPLE-description-Value"
}
}
},
targetFieldMapSummary: {
EXAMPLE_KEY_J1elc: {
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_47x5f: {
stringValue: "EXAMPLE-stringValue-Value",
intValue: 97,
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: 104,
description: "EXAMPLE-description-Value"
}
}
}
};
const createDataFlowValidationRequest: dataintegration.requests.CreateDataFlowValidationRequest = {
workspaceId: "ocid1.test.oc1..<unique_ID>EXAMPLE-workspaceId-Value",
createDataFlowValidationDetails: createDataFlowValidationDetails,
opcRequestId: "IMQI9RLKSKYPVNP1KJ2V<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);
}
})();