# 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).
require 'oci'
# Create a default config using DEFAULT profile in default location
# Refer to https://docs.cloud.oracle.com/en-us/iaas/Content/API/Concepts/sdkconfig.htm#SDK_and_CLI_Configuration_File for more info
config = OCI::ConfigFileLoader.load_config
# Initialize service client with default config file
data_integration_client =
OCI::DataIntegration::DataIntegrationClient.new(config: config)
# Send the request to service, some parameters are not required, see API doc for more info
create_pipeline_response =
data_integration_client.create_pipeline(
'ocid1.test.oc1..<unique_ID>EXAMPLE-workspaceId-Value',
OCI::DataIntegration::Models::CreatePipelineDetails.new(
name: 'EXAMPLE-name-Value',
identifier: 'EXAMPLE-identifier-Value',
registry_metadata:
OCI::DataIntegration::Models::RegistryMetadata.new(
aggregator_key: 'EXAMPLE-aggregatorKey-Value',
labels: %w[EXAMPLE--Value],
registry_version: 641,
key: 'EXAMPLE-key-Value',
is_favorite: true
),
key: 'EXAMPLE-key-Value',
model_version: 'EXAMPLE-modelVersion-Value',
parent_ref:
OCI::DataIntegration::Models::ParentReference.new(
parent: 'EXAMPLE-parent-Value',
root_doc_id: 'ocid1.test.oc1..<unique_ID>EXAMPLE-rootDocId-Value'
),
description: 'EXAMPLE-description-Value',
model_type: 'EXAMPLE-modelType-Value',
object_version: 503,
object_status: 519,
nodes: [
OCI::DataIntegration::Models::FlowNode.new(
key: 'EXAMPLE-key-Value',
model_type: 'EXAMPLE-modelType-Value',
model_version: 'EXAMPLE-modelVersion-Value',
parent_ref:
OCI::DataIntegration::Models::ParentReference.new(
parent: 'EXAMPLE-parent-Value',
root_doc_id: 'ocid1.test.oc1..<unique_ID>EXAMPLE-rootDocId-Value'
),
name: 'EXAMPLE-name-Value',
description: 'EXAMPLE-description-Value',
input_links: [
OCI::DataIntegration::Models::InputLink.new(
model_type: 'INPUT_LINK',
key: 'EXAMPLE-key-Value',
model_version: 'EXAMPLE-modelVersion-Value',
parent_ref:
OCI::DataIntegration::Models::ParentReference.new(
parent: 'EXAMPLE-parent-Value',
root_doc_id:
'ocid1.test.oc1..<unique_ID>EXAMPLE-rootDocId-Value'
),
object_status: 506,
description: 'EXAMPLE-description-Value',
port: 'EXAMPLE-port-Value',
from_link: 'EXAMPLE-fromLink-Value',
field_map:
OCI::DataIntegration::Models::RuleBasedEntityMap.new(
model_type: 'RULE_BASED_ENTITY_MAP',
description: 'EXAMPLE-description-Value',
key: 'EXAMPLE-key-Value',
model_version: 'EXAMPLE-modelVersion-Value',
parent_ref:
OCI::DataIntegration::Models::ParentReference.new(
parent: 'EXAMPLE-parent-Value',
root_doc_id:
'ocid1.test.oc1..<unique_ID>EXAMPLE-rootDocId-Value'
),
config_values:
OCI::DataIntegration::Models::ConfigValues.new(
config_param_values: {
'EXAMPLE_KEY_XRSFA' => {
'stringValue' => 'EXAMPLE-stringValue-Value',
'intValue' => 818,
'objectValue' => 'EXAMPLE-objectValue-Value',
'refValue' => 'EXAMPLE-refValue-Value',
'parameterValue' => 'EXAMPLE-parameterValue-Value',
'rootObjectValue' => 'EXAMPLE-rootObjectValue-Value'
}
},
parent_ref:
OCI::DataIntegration::Models::ParentReference.new(
parent: 'EXAMPLE-parent-Value',
root_doc_id:
'ocid1.test.oc1..<unique_ID>EXAMPLE-rootDocId-Value'
)
),
map_type: 'MAPBYPATTERN',
from_pattern: 'EXAMPLE-fromPattern-Value',
to_pattern: 'EXAMPLE-toPattern-Value',
is_java_regex_syntax: true,
object_status: 625
)
)
],
output_links: [
OCI::DataIntegration::Models::OutputLink.new(
model_type: 'OUTPUT_LINK',
key: 'EXAMPLE-key-Value',
model_version: 'EXAMPLE-modelVersion-Value',
parent_ref:
OCI::DataIntegration::Models::ParentReference.new(
parent: 'EXAMPLE-parent-Value',
root_doc_id:
'ocid1.test.oc1..<unique_ID>EXAMPLE-rootDocId-Value'
),
object_status: 386,
description: 'EXAMPLE-description-Value',
port: 'EXAMPLE-port-Value',
to_links: %w[EXAMPLE--Value]
)
],
operator:
OCI::DataIntegration::Models::DecisionOperator.new(
model_type: 'DECISION_OPERATOR',
key: 'EXAMPLE-key-Value',
model_version: 'EXAMPLE-modelVersion-Value',
parent_ref:
OCI::DataIntegration::Models::ParentReference.new(
parent: 'EXAMPLE-parent-Value',
root_doc_id:
'ocid1.test.oc1..<unique_ID>EXAMPLE-rootDocId-Value'
),
name: 'EXAMPLE-name-Value',
description: 'EXAMPLE-description-Value',
object_version: 263,
input_ports: [
OCI::DataIntegration::Models::InputPort.new(
model_type: 'INPUT_PORT',
key: 'EXAMPLE-key-Value',
model_version: 'EXAMPLE-modelVersion-Value',
parent_ref:
OCI::DataIntegration::Models::ParentReference.new(
parent: 'EXAMPLE-parent-Value',
root_doc_id:
'ocid1.test.oc1..<unique_ID>EXAMPLE-rootDocId-Value'
),
config_values:
OCI::DataIntegration::Models::ConfigValues.new(
config_param_values: {
'EXAMPLE_KEY_7HmK6' => {
'stringValue' => 'EXAMPLE-stringValue-Value',
'intValue' => 451,
'objectValue' => 'EXAMPLE-objectValue-Value',
'refValue' => 'EXAMPLE-refValue-Value',
'parameterValue' => 'EXAMPLE-parameterValue-Value',
'rootObjectValue' => 'EXAMPLE-rootObjectValue-Value'
}
},
parent_ref:
OCI::DataIntegration::Models::ParentReference.new(
parent: 'EXAMPLE-parent-Value',
root_doc_id:
'ocid1.test.oc1..<unique_ID>EXAMPLE-rootDocId-Value'
)
),
object_status: 353,
name: 'EXAMPLE-name-Value',
description: 'EXAMPLE-description-Value',
port_type: 'MODEL',
fields: [
OCI::DataIntegration::Models::ProxyField.new(
model_type: 'PROXY_FIELD',
key: 'EXAMPLE-key-Value',
model_version: 'EXAMPLE-modelVersion-Value',
parent_ref:
OCI::DataIntegration::Models::ParentReference.new(
parent: 'EXAMPLE-parent-Value',
root_doc_id:
'ocid1.test.oc1..<unique_ID>EXAMPLE-rootDocId-Value'
),
config_values:
OCI::DataIntegration::Models::ConfigValues.new(
config_param_values: {
'EXAMPLE_KEY_9cBVV' => {
'stringValue' => 'EXAMPLE-stringValue-Value',
'intValue' => 226,
'objectValue' => 'EXAMPLE-objectValue-Value',
'refValue' => 'EXAMPLE-refValue-Value',
'parameterValue' =>
'EXAMPLE-parameterValue-Value',
'rootObjectValue' =>
'EXAMPLE-rootObjectValue-Value'
}
},
parent_ref:
OCI::DataIntegration::Models::ParentReference.new(
parent: 'EXAMPLE-parent-Value',
root_doc_id:
'ocid1.test.oc1..<unique_ID>EXAMPLE-rootDocId-Value'
)
),
object_status: 120,
name: 'EXAMPLE-name-Value',
description: 'EXAMPLE-description-Value',
scope: 'EXAMPLE-scope-Value',
scope_reference:
OCI::DataIntegration::Models::ScopeReference.new(
reference_object: 'EXAMPLE-referenceObject-Value',
reference_type: 'OCI_FUNCTION_INPUT_SHAPE',
ref_object_name: 'EXAMPLE-refObjectName-Value'
),
type:
OCI::DataIntegration::Models::MaterializedCompositeType
.new(
model_type: 'MATERIALIZED_COMPOSITE_TYPE',
key: 'EXAMPLE-key-Value',
model_version: 'EXAMPLE-modelVersion-Value',
parent_ref:
OCI::DataIntegration::Models::ParentReference.new(
parent: 'EXAMPLE-parent-Value',
root_doc_id:
'ocid1.test.oc1..<unique_ID>EXAMPLE-rootDocId-Value'
),
name: 'EXAMPLE-name-Value',
object_status: 985,
description: 'EXAMPLE-description-Value',
elements: %w[EXAMPLE--Value],
path_names: %w[EXAMPLE--Value],
config_definition:
OCI::DataIntegration::Models::ConfigDefinition.new(
key: 'EXAMPLE-key-Value',
model_type: 'EXAMPLE-modelType-Value',
model_version: 'EXAMPLE-modelVersion-Value',
parent_ref:
OCI::DataIntegration::Models::ParentReference
.new(
parent: 'EXAMPLE-parent-Value',
root_doc_id:
'ocid1.test.oc1..<unique_ID>EXAMPLE-rootDocId-Value'
),
name: 'EXAMPLE-name-Value',
is_contained: false,
object_status: 11,
config_parameter_definitions: {
'EXAMPLE_KEY_goCxI' => {
'parameterName' =>
'EXAMPLE-parameterName-Value',
'description' => 'EXAMPLE-description-Value',
'defaultValue' =>
'EXAMPLE-defaultValue-Value',
'classFieldName' =>
'EXAMPLE-classFieldName-Value',
'isStatic' => True,
'isClassFieldValue' => False
}
}
)
),
labels: %w[EXAMPLE--Value]
)
]
)
],
output_ports: [
OCI::DataIntegration::Models::DerivedField.new(
model_type: 'DERIVED_FIELD',
key: 'EXAMPLE-key-Value',
model_version: 'EXAMPLE-modelVersion-Value',
parent_ref:
OCI::DataIntegration::Models::ParentReference.new(
parent: 'EXAMPLE-parent-Value',
root_doc_id:
'ocid1.test.oc1..<unique_ID>EXAMPLE-rootDocId-Value'
),
config_values:
OCI::DataIntegration::Models::ConfigValues.new(
config_param_values: {
'EXAMPLE_KEY_UNTWs' => {
'stringValue' => 'EXAMPLE-stringValue-Value',
'intValue' => 837,
'objectValue' => 'EXAMPLE-objectValue-Value',
'refValue' => 'EXAMPLE-refValue-Value',
'parameterValue' => 'EXAMPLE-parameterValue-Value',
'rootObjectValue' => 'EXAMPLE-rootObjectValue-Value'
}
},
parent_ref:
OCI::DataIntegration::Models::ParentReference.new(
parent: 'EXAMPLE-parent-Value',
root_doc_id:
'ocid1.test.oc1..<unique_ID>EXAMPLE-rootDocId-Value'
)
),
object_status: 373,
name: 'EXAMPLE-name-Value',
description: 'EXAMPLE-description-Value',
expr:
OCI::DataIntegration::Models::Expression.new(
key: 'EXAMPLE-key-Value',
model_type: 'EXAMPLE-modelType-Value',
model_version: 'EXAMPLE-modelVersion-Value',
parent_ref:
OCI::DataIntegration::Models::ParentReference.new(
parent: 'EXAMPLE-parent-Value',
root_doc_id:
'ocid1.test.oc1..<unique_ID>EXAMPLE-rootDocId-Value'
),
expr_string: 'EXAMPLE-exprString-Value',
config_values:
OCI::DataIntegration::Models::ConfigValues.new(
config_param_values: {
'EXAMPLE_KEY_SmZts' => {
'stringValue' => 'EXAMPLE-stringValue-Value',
'intValue' => 753,
'objectValue' => 'EXAMPLE-objectValue-Value',
'refValue' => 'EXAMPLE-refValue-Value',
'parameterValue' =>
'EXAMPLE-parameterValue-Value',
'rootObjectValue' =>
'EXAMPLE-rootObjectValue-Value'
}
},
parent_ref:
OCI::DataIntegration::Models::ParentReference.new(
parent: 'EXAMPLE-parent-Value',
root_doc_id:
'ocid1.test.oc1..<unique_ID>EXAMPLE-rootDocId-Value'
)
),
object_status: 747
),
type: 'EXAMPLE-type-Value',
is_use_inferred_type: true,
labels: %w[EXAMPLE--Value]
)
],
object_status: 823,
identifier: 'EXAMPLE-identifier-Value',
parameters: [
OCI::DataIntegration::Models::Parameter.new(
model_type: 'PARAMETER',
key: 'EXAMPLE-key-Value',
model_version: 'EXAMPLE-modelVersion-Value',
parent_ref:
OCI::DataIntegration::Models::ParentReference.new(
parent: 'EXAMPLE-parent-Value',
root_doc_id:
'ocid1.test.oc1..<unique_ID>EXAMPLE-rootDocId-Value'
),
config_values:
OCI::DataIntegration::Models::ConfigValues.new(
config_param_values: {
'EXAMPLE_KEY_Z8Cv7' => {
'stringValue' => 'EXAMPLE-stringValue-Value',
'intValue' => 42,
'objectValue' => 'EXAMPLE-objectValue-Value',
'refValue' => 'EXAMPLE-refValue-Value',
'parameterValue' => 'EXAMPLE-parameterValue-Value',
'rootObjectValue' => 'EXAMPLE-rootObjectValue-Value'
}
},
parent_ref:
OCI::DataIntegration::Models::ParentReference.new(
parent: 'EXAMPLE-parent-Value',
root_doc_id:
'ocid1.test.oc1..<unique_ID>EXAMPLE-rootDocId-Value'
)
),
object_status: 781,
name: 'EXAMPLE-name-Value',
description: 'EXAMPLE-description-Value',
type: 'EXAMPLE-type-Value',
default_value: 'EXAMPLE-defaultValue-Value',
root_object_default_value:
'EXAMPLE-rootObjectDefaultValue-Value',
is_input: true,
is_output: true,
output_aggregation_type: 'COUNT',
type_name: 'EXAMPLE-typeName-Value',
used_for: 'EXAMPLE-usedFor-Value'
)
],
op_config_values:
OCI::DataIntegration::Models::ConfigValues.new(
config_param_values: {
'EXAMPLE_KEY_GdVPm' => {
'stringValue' => 'EXAMPLE-stringValue-Value',
'intValue' => 213,
'objectValue' => 'EXAMPLE-objectValue-Value',
'refValue' => 'EXAMPLE-refValue-Value',
'parameterValue' => 'EXAMPLE-parameterValue-Value',
'rootObjectValue' => 'EXAMPLE-rootObjectValue-Value'
}
},
parent_ref:
OCI::DataIntegration::Models::ParentReference.new(
parent: 'EXAMPLE-parent-Value',
root_doc_id:
'ocid1.test.oc1..<unique_ID>EXAMPLE-rootDocId-Value'
)
),
trigger_rule: 'ALL_SUCCESS'
),
ui_properties:
OCI::DataIntegration::Models::UIProperties.new(
coordinate_x: 1352.5302, coordinate_y: 469.92303
),
object_status: 663
)
],
parameters: [
OCI::DataIntegration::Models::Parameter.new(
model_type: 'PARAMETER',
key: 'EXAMPLE-key-Value',
model_version: 'EXAMPLE-modelVersion-Value',
parent_ref:
OCI::DataIntegration::Models::ParentReference.new(
parent: 'EXAMPLE-parent-Value',
root_doc_id: 'ocid1.test.oc1..<unique_ID>EXAMPLE-rootDocId-Value'
),
config_values:
OCI::DataIntegration::Models::ConfigValues.new(
config_param_values: {
'EXAMPLE_KEY_83QUW' => {
'stringValue' => 'EXAMPLE-stringValue-Value',
'intValue' => 944,
'objectValue' => 'EXAMPLE-objectValue-Value',
'refValue' => 'EXAMPLE-refValue-Value',
'parameterValue' => 'EXAMPLE-parameterValue-Value',
'rootObjectValue' => 'EXAMPLE-rootObjectValue-Value'
}
},
parent_ref:
OCI::DataIntegration::Models::ParentReference.new(
parent: 'EXAMPLE-parent-Value',
root_doc_id:
'ocid1.test.oc1..<unique_ID>EXAMPLE-rootDocId-Value'
)
),
object_status: 406,
name: 'EXAMPLE-name-Value',
description: 'EXAMPLE-description-Value',
type: 'EXAMPLE-type-Value',
default_value: 'EXAMPLE-defaultValue-Value',
root_object_default_value: 'EXAMPLE-rootObjectDefaultValue-Value',
is_input: false,
is_output: false,
output_aggregation_type: 'SUM',
type_name: 'EXAMPLE-typeName-Value',
used_for: 'EXAMPLE-usedFor-Value'
)
],
flow_config_values:
OCI::DataIntegration::Models::ConfigValues.new(
config_param_values: {
'EXAMPLE_KEY_bTlTP' => {
'stringValue' => 'EXAMPLE-stringValue-Value',
'intValue' => 549,
'objectValue' => 'EXAMPLE-objectValue-Value',
'refValue' => 'EXAMPLE-refValue-Value',
'parameterValue' => 'EXAMPLE-parameterValue-Value',
'rootObjectValue' => 'EXAMPLE-rootObjectValue-Value'
}
},
parent_ref:
OCI::DataIntegration::Models::ParentReference.new(
parent: 'EXAMPLE-parent-Value',
root_doc_id: 'ocid1.test.oc1..<unique_ID>EXAMPLE-rootDocId-Value'
)
),
variables: [
OCI::DataIntegration::Models::Variable.new(
key: 'EXAMPLE-key-Value',
model_version: 'EXAMPLE-modelVersion-Value',
model_type: 'EXAMPLE-modelType-Value',
parent_ref:
OCI::DataIntegration::Models::ParentReference.new(
parent: 'EXAMPLE-parent-Value',
root_doc_id: 'ocid1.test.oc1..<unique_ID>EXAMPLE-rootDocId-Value'
),
name: 'EXAMPLE-name-Value',
description: 'EXAMPLE-description-Value',
object_version: 723,
object_status: 187,
identifier: 'EXAMPLE-identifier-Value',
type:
OCI::DataIntegration::Models::JavaType.new(
model_type: 'JAVA_TYPE',
key: 'EXAMPLE-key-Value',
model_version: 'EXAMPLE-modelVersion-Value',
parent_ref:
OCI::DataIntegration::Models::ParentReference.new(
parent: 'EXAMPLE-parent-Value',
root_doc_id:
'ocid1.test.oc1..<unique_ID>EXAMPLE-rootDocId-Value'
),
name: 'EXAMPLE-name-Value',
object_status: 184,
description: 'EXAMPLE-description-Value',
java_type_name: 'EXAMPLE-javaTypeName-Value',
config_definition:
OCI::DataIntegration::Models::ConfigDefinition.new(
key: 'EXAMPLE-key-Value',
model_type: 'EXAMPLE-modelType-Value',
model_version: 'EXAMPLE-modelVersion-Value',
parent_ref:
OCI::DataIntegration::Models::ParentReference.new(
parent: 'EXAMPLE-parent-Value',
root_doc_id:
'ocid1.test.oc1..<unique_ID>EXAMPLE-rootDocId-Value'
),
name: 'EXAMPLE-name-Value',
is_contained: true,
object_status: 55,
config_parameter_definitions: {
'EXAMPLE_KEY_YLfyP' => {
'parameterName' => 'EXAMPLE-parameterName-Value',
'description' => 'EXAMPLE-description-Value',
'defaultValue' => 'EXAMPLE-defaultValue-Value',
'classFieldName' => 'EXAMPLE-classFieldName-Value',
'isStatic' => True,
'isClassFieldValue' => False
}
}
)
),
config_values:
OCI::DataIntegration::Models::ConfigValues.new(
config_param_values: {
'EXAMPLE_KEY_AjXk6' => {
'stringValue' => 'EXAMPLE-stringValue-Value',
'intValue' => 1,
'objectValue' => 'EXAMPLE-objectValue-Value',
'refValue' => 'EXAMPLE-refValue-Value',
'parameterValue' => 'EXAMPLE-parameterValue-Value',
'rootObjectValue' => 'EXAMPLE-rootObjectValue-Value'
}
},
parent_ref:
OCI::DataIntegration::Models::ParentReference.new(
parent: 'EXAMPLE-parent-Value',
root_doc_id:
'ocid1.test.oc1..<unique_ID>EXAMPLE-rootDocId-Value'
)
),
default_value: 'EXAMPLE-defaultValue-Value',
root_object_default_value:
OCI::DataIntegration::Models::RootObject.new(
key: 'EXAMPLE-key-Value',
model_type: 'EXAMPLE-modelType-Value',
model_version: 'EXAMPLE-modelVersion-Value',
parent_ref:
OCI::DataIntegration::Models::ParentReference.new(
parent: 'EXAMPLE-parent-Value',
root_doc_id:
'ocid1.test.oc1..<unique_ID>EXAMPLE-rootDocId-Value'
),
object_status: 940
)
)
]
)
)
# Get the data from response
puts "#{create_pipeline_response.data}"