// 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: 10,
objectStatus: 823,
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: "NAME_PATTERN_RULE", isSkipRemainingRulesOnMatch: false,
scope: "EXAMPLE-scope-Value",
isCascade: false,
matchingStrategy: dataintegration.models.NamePatternRule.MatchingStrategy.NameOnly,
isCaseSensitive: true,
ruleType: dataintegration.models.NamePatternRule.RuleType.Exclude,
pattern: "EXAMPLE-pattern-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_sWjp0 :{
stringValue: "EXAMPLE-stringValue-Value",
intValue: 785,
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: 661,
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_YYBtv :{
stringValue: "EXAMPLE-stringValue-Value",
intValue: 637,
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,
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: 225,
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: 884,
description: "EXAMPLE-description-Value",
port: "EXAMPLE-port-Value"
}
],
operator: {
modelType: "DISTINCT_OPERATOR", 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: 555,
inputPorts: [{
modelType: "INPUT_PORT", portType: dataintegration.models.InputPort.PortType.Model,
fields: [{
modelType: "DYNAMIC_PROXY_FIELD", type: {
modelType: "DATA_TYPE", dtType: dataintegration.models.DataType.DtType.Primitive,
typeSystemName: "EXAMPLE-typeSystemName-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: 524,
configParameterDefinitions: {
EXAMPLE_KEY_7q0TC :{
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: 998,
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_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,
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_4PdRQ :{
stringValue: "EXAMPLE-stringValue-Value",
intValue: 510,
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: 291,
name: "EXAMPLE-name-Value",
description: "EXAMPLE-description-Value"
}
],
outputPorts: [{
modelType: "FIELD", 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_JXzLR :{
stringValue: "EXAMPLE-stringValue-Value",
intValue: 539,
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: 247,
name: "EXAMPLE-name-Value",
description: "EXAMPLE-description-Value"
}
],
objectStatus: 533,
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.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_euhMu :{
stringValue: "EXAMPLE-stringValue-Value",
intValue: 253,
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: 637,
name: "EXAMPLE-name-Value",
description: "EXAMPLE-description-Value"
}
],
opConfigValues: {
configParamValues: {
EXAMPLE_KEY_wDW2X :{
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",
}
,
}
}
,
uiProperties: {
coordinateX: 7477.8823,
coordinateY: 3233.8374,
}
,
objectStatus: 988,
}
],
parameters: [{
modelType: "PARAMETER", type: "EXAMPLE-type-Value",
defaultValue: "EXAMPLE-defaultValue-Value",
rootObjectDefaultValue: "EXAMPLE-rootObjectDefaultValue-Value",
isInput: false,
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_1DXjD :{
stringValue: "EXAMPLE-stringValue-Value",
intValue: 637,
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: 819,
name: "EXAMPLE-name-Value",
description: "EXAMPLE-description-Value"
}
],
flowConfigValues: {
configParamValues: {
EXAMPLE_KEY_BDpcT :{
stringValue: "EXAMPLE-stringValue-Value",
intValue: 450,
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: 472,
objectStatus: 967,
identifier: "EXAMPLE-identifier-Value",
type: {
modelType: "DYNAMIC_TYPE", typeHandler: {
modelType: "RULE_TYPE_CONFIGS", key: "EXAMPLE-key-Value",
modelVersion: "EXAMPLE-modelVersion-Value",
parentRef: {
parent: "EXAMPLE-parent-Value",
rootDocId: "ocid1.test.oc1..<unique_ID>EXAMPLE-rootDocId-Value",
}
,
scope: "EXAMPLE-scope-Value",
scopeReference: {
referenceObject: "EXAMPLE-referenceObject-Value",
referenceType: dataintegration.models.ScopeReference.ReferenceType.BoundEntityShapeField,
refObjectName: "EXAMPLE-refObjectName-Value",
}
,
isOrderByRule: false,
projectionRules: [{
modelType: "RENAME_RULE", isSkipRemainingRulesOnMatch: false,
fromName: "EXAMPLE-fromName-Value",
toName: "EXAMPLE-toName-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_f6GXr :{
stringValue: "EXAMPLE-stringValue-Value",
intValue: 139,
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: 35,
description: "EXAMPLE-description-Value"
}
],
configValues: {
configParamValues: {
EXAMPLE_KEY_Sa4nS :{
stringValue: "EXAMPLE-stringValue-Value",
intValue: 223,
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: 270
}
,
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: 934,
configParameterDefinitions: {
EXAMPLE_KEY_WgswP :{
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: 794,
description: "EXAMPLE-description-Value"
}
,
configValues: {
configParamValues: {
EXAMPLE_KEY_o1er2 :{
stringValue: "EXAMPLE-stringValue-Value",
intValue: 615,
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: 659,
}
,
}
],
registryMetadata: {
aggregatorKey: "EXAMPLE-aggregatorKey-Value",
labels: ["EXAMPLE--Value" ],
registryVersion: 647,
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: "HROSHVIIFOZZHEOVY8BT<unique_ID>",
};
// Send request to the Client.
const createPipelineResponse = await client.createPipeline(createPipelineRequest);
}
catch (error) {
console.log("createPipeline Failed with error " + error);
}
})();