// 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 updateDataFlowDetails = {
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: 729,
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_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_lpkuO: {
stringValue: "EXAMPLE-stringValue-Value",
intValue: 327,
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.BoundEntityShape,
refObjectName: "EXAMPLE-refObjectName-Value"
},
objectStatus: 458,
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: 422,
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: 780,
description: "EXAMPLE-description-Value",
port: "EXAMPLE-port-Value"
}
],
operator: {
modelType: "END_OPERATOR",
triggerRule: dataintegration.models.EndOperator.TriggerRule.AllSuccess,
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: 505,
inputPorts: [
{
modelType: "INPUT_PORT",
portType: dataintegration.models.InputPort.PortType.Control,
fields: [
{
modelType: "CONDITIONAL_OUTPUT_PORT",
portType: dataintegration.models.ConditionalOutputPort.PortType.Model,
splitCondition: {
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_L7Bbm: {
stringValue: "EXAMPLE-stringValue-Value",
intValue: 25,
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: 435
},
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_R9H9o: {
stringValue: "EXAMPLE-stringValue-Value",
intValue: 810,
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: 117,
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_mZa7u: {
stringValue: "EXAMPLE-stringValue-Value",
intValue: 599,
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: "CONDITIONAL_OUTPUT_PORT",
portType: dataintegration.models.ConditionalOutputPort.PortType.Data,
splitCondition: {
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_UalmR: {
stringValue: "EXAMPLE-stringValue-Value",
intValue: 829,
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: 391
},
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_Gu3Iy: {
stringValue: "EXAMPLE-stringValue-Value",
intValue: 657,
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: 838,
name: "EXAMPLE-name-Value",
description: "EXAMPLE-description-Value"
}
],
objectStatus: 222,
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.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_HhC7a: {
stringValue: "EXAMPLE-stringValue-Value",
intValue: 135,
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"
}
],
opConfigValues: {
configParamValues: {
EXAMPLE_KEY_1teAn: {
stringValue: "EXAMPLE-stringValue-Value",
intValue: 374,
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: 4863.235,
coordinateY: 9284.544
},
objectStatus: 2
}
],
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_Ld1im: {
stringValue: "EXAMPLE-stringValue-Value",
intValue: 336,
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: 966,
name: "EXAMPLE-name-Value",
description: "EXAMPLE-description-Value"
}
],
description: "EXAMPLE-description-Value",
flowConfigValues: {
configParamValues: {
EXAMPLE_KEY_aUWPY: {
stringValue: "EXAMPLE-stringValue-Value",
intValue: 288,
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: 363,
registryMetadata: {
aggregatorKey: "EXAMPLE-aggregatorKey-Value",
labels: ["EXAMPLE--Value"],
registryVersion: 456,
key: "EXAMPLE-key-Value",
isFavorite: false
}
};
const updateDataFlowRequest: dataintegration.requests.UpdateDataFlowRequest = {
workspaceId: "ocid1.test.oc1..<unique_ID>EXAMPLE-workspaceId-Value",
dataFlowKey: "EXAMPLE-dataFlowKey-Value",
updateDataFlowDetails: updateDataFlowDetails,
opcRequestId: "3HWBJYNB0ZFARTMOXP67<unique_ID>",
ifMatch: "EXAMPLE-ifMatch-Value"
};
// Send request to the Client.
const updateDataFlowResponse = await client.updateDataFlow(updateDataFlowRequest);
} catch (error) {
console.log("updateDataFlow Failed with error " + error);
}
})();