// 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 createPipelineValidationDetails = {
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: 965,
objectStatus: 638,
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_PfFfv :{
stringValue: "EXAMPLE-stringValue-Value",
intValue: 635,
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: 837,
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: 449,
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: 593,
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_heyKL :{
stringValue: "EXAMPLE-stringValue-Value",
intValue: 331,
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: 924,
}
,
isSkipNoMatch: false,
multiMatchStrategy: dataintegration.models.Lookup.MultiMatchStrategy.ReturnAny,
nullFillValues: {
EXAMPLE_KEY_aOe4v :"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: 472,
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_5hL0d :{
stringValue: "EXAMPLE-stringValue-Value",
intValue: 290,
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: 163,
}
,
useType: {
modelType: "CONFIGURED_TYPE", wrappedType: "EXAMPLE-wrappedType-Value",
configValues: {
configParamValues: {
EXAMPLE_KEY_Ulr5u :{
stringValue: "EXAMPLE-stringValue-Value",
intValue: 419,
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: 752,
configParameterDefinitions: {
EXAMPLE_KEY_6s0qt :{
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: 4,
description: "EXAMPLE-description-Value"
}
,
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: 968,
description: "EXAMPLE-description-Value"
}
,
type: {
modelType: "CONFIGURED_TYPE", wrappedType: "EXAMPLE-wrappedType-Value",
configValues: {
configParamValues: {
EXAMPLE_KEY_jO1pb :{
stringValue: "EXAMPLE-stringValue-Value",
intValue: 148,
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: 462,
configParameterDefinitions: {
EXAMPLE_KEY_218GZ :{
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: 343,
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_LmhKI :{
stringValue: "EXAMPLE-stringValue-Value",
intValue: 325,
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: 224,
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_OIU73 :{
stringValue: "EXAMPLE-stringValue-Value",
intValue: 271,
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: 831,
name: "EXAMPLE-name-Value",
description: "EXAMPLE-description-Value"
}
],
outputPorts: [{
modelType: "DYNAMIC_PROXY_FIELD", type: {
modelType: "DERIVED_TYPE", 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: 224,
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_RUr6w :{
stringValue: "EXAMPLE-stringValue-Value",
intValue: 398,
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: 157,
name: "EXAMPLE-name-Value",
description: "EXAMPLE-description-Value"
}
],
objectStatus: 163,
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.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_8ekaz :{
stringValue: "EXAMPLE-stringValue-Value",
intValue: 401,
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: 323,
name: "EXAMPLE-name-Value",
description: "EXAMPLE-description-Value"
}
],
opConfigValues: {
configParamValues: {
EXAMPLE_KEY_D8WQ0 :{
stringValue: "EXAMPLE-stringValue-Value",
intValue: 484,
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: 5836.5684,
coordinateY: 2644.9585,
}
,
objectStatus: 515,
}
],
parameters: [{
modelType: "PARAMETER", type: "EXAMPLE-type-Value",
defaultValue: "EXAMPLE-defaultValue-Value",
rootObjectDefaultValue: "EXAMPLE-rootObjectDefaultValue-Value",
isInput: false,
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_g9tTo :{
stringValue: "EXAMPLE-stringValue-Value",
intValue: 677,
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: 39,
name: "EXAMPLE-name-Value",
description: "EXAMPLE-description-Value"
}
],
flowConfigValues: {
configParamValues: {
EXAMPLE_KEY_K6kSX :{
stringValue: "EXAMPLE-stringValue-Value",
intValue: 254,
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: 421,
objectStatus: 450,
identifier: "EXAMPLE-identifier-Value",
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: 949,
description: "EXAMPLE-description-Value"
}
,
configValues: {
configParamValues: {
EXAMPLE_KEY_Xlekg :{
stringValue: "EXAMPLE-stringValue-Value",
intValue: 178,
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: 150,
}
,
}
],
metadata: {
createdBy: "EXAMPLE-createdBy-Value",
createdByName: "EXAMPLE-createdByName-Value",
updatedBy: "EXAMPLE-updatedBy-Value",
updatedByName: "EXAMPLE-updatedByName-Value",
timeCreated: new Date("Thu May 18 21:13:32 UTC 2023"),
timeUpdated: new Date("Tue Jan 18 04:08:34 UTC 2011"),
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_AMWeD :"EXAMPLE_VALUE_TAFqNzm1VAEd8YaoodFs"
},
registryVersion: 564,
labels: ["EXAMPLE--Value" ],
isFavorite: false,
countStatistics: {
objectTypeCountList: [{
objectType: dataintegration.models.CountStatisticSummary.ObjectType.Task,
objectCount: 763,
}
],
}
,
}
,
}
const createPipelineValidationRequest: dataintegration.requests.CreatePipelineValidationRequest = {
workspaceId: "ocid1.test.oc1..<unique_ID>EXAMPLE-workspaceId-Value",
createPipelineValidationDetails: createPipelineValidationDetails,
opcRequestId: "7GTVKHHK3KFUZH0MRPTV<unique_ID>",
opcRetryToken: "EXAMPLE-opcRetryToken-Value",
};
// Send request to the Client.
const createPipelineValidationResponse = await client.createPipelineValidation(createPipelineValidationRequest);
}
catch (error) {
console.log("createPipelineValidation Failed with error " + error);
}
})();