# 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 'date'
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_validation_response =
data_integration_client.create_pipeline_validation(
'ocid1.test.oc1..<unique_ID>EXAMPLE-workspaceId-Value',
OCI::DataIntegration::Models::CreatePipelineValidationDetails.new(
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',
model_type: 'EXAMPLE-modelType-Value',
object_version: 668,
object_status: 398,
identifier: 'EXAMPLE-identifier-Value',
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: 350,
description: 'EXAMPLE-description-Value',
port: 'EXAMPLE-port-Value',
from_link: 'EXAMPLE-fromLink-Value',
field_map:
OCI::DataIntegration::Models::CompositeFieldMap.new(
model_type: 'COMPOSITE_FIELD_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_wVAKO' => {
'stringValue' => 'EXAMPLE-stringValue-Value',
'intValue' => 72,
'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: 834
)
)
],
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: 813,
description: 'EXAMPLE-description-Value',
port: 'EXAMPLE-port-Value',
to_links: %w[EXAMPLE--Value]
)
],
operator:
OCI::DataIntegration::Models::Intersect.new(
model_type: 'INTERSECT_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: 13,
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_Y8fQE' => {
'stringValue' => 'EXAMPLE-stringValue-Value',
'intValue' => 125,
'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: 616,
name: 'EXAMPLE-name-Value',
description: 'EXAMPLE-description-Value',
port_type: 'DATA',
fields: [
OCI::DataIntegration::Models::OutputField.new(
model_type: 'OUTPUT_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_YOQZo' => {
'stringValue' => 'EXAMPLE-stringValue-Value',
'intValue' => 786,
'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',
type:
OCI::DataIntegration::Models::DynamicType.new(
model_type: 'DYNAMIC_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: 564,
description: 'EXAMPLE-description-Value',
type_handler:
OCI::DataIntegration::Models::RuleTypeConfig.new(
model_type: 'RULE_TYPE_CONFIGS',
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'
),
scope: 'EXAMPLE-scope-Value',
scope_reference:
OCI::DataIntegration::Models::ScopeReference
.new(
reference_object:
'EXAMPLE-referenceObject-Value',
reference_type: 'OCI_FUNCTION_OUTPUT_SHAPE',
ref_object_name: 'EXAMPLE-refObjectName-Value'
),
is_order_by_rule: true,
projection_rules: [
OCI::DataIntegration::Models::NamePatternRule
.new(
model_type: 'NAME_PATTERN_RULE',
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'
),
is_java_regex_syntax: false,
config_values:
OCI::DataIntegration::Models::ConfigValues
.new(
config_param_values: {
'EXAMPLE_KEY_WS0Fn' => {
'stringValue' =>
'EXAMPLE-stringValue-Value',
'intValue' => 716,
'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: 48,
description: 'EXAMPLE-description-Value',
is_skip_remaining_rules_on_match: false,
scope: 'EXAMPLE-scope-Value',
is_cascade: true,
matching_strategy: 'NAME_ONLY',
is_case_sensitive: true,
rule_type: 'EXCLUDE',
pattern: 'EXAMPLE-pattern-Value'
)
],
config_values:
OCI::DataIntegration::Models::ConfigValues.new(
config_param_values: {
'EXAMPLE_KEY_nJATR' => {
'stringValue' =>
'EXAMPLE-stringValue-Value',
'intValue' => 728,
'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: 335
),
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: 714,
config_parameter_definitions: {
'EXAMPLE_KEY_JpdfO' => {
'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::OutputField.new(
model_type: 'OUTPUT_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_o46zj' => {
'stringValue' => 'EXAMPLE-stringValue-Value',
'intValue' => 469,
'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: 440,
name: 'EXAMPLE-name-Value',
description: 'EXAMPLE-description-Value',
type:
OCI::DataIntegration::Models::DerivedType.new(
model_type: 'DERIVED_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: 161,
description: 'EXAMPLE-description-Value'
),
labels: %w[EXAMPLE--Value]
)
],
object_status: 395,
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_zHCfL' => {
'stringValue' => 'EXAMPLE-stringValue-Value',
'intValue' => 835,
'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: 934,
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: 'MAX',
type_name: 'EXAMPLE-typeName-Value',
used_for: 'EXAMPLE-usedFor-Value'
)
],
op_config_values:
OCI::DataIntegration::Models::ConfigValues.new(
config_param_values: {
'EXAMPLE_KEY_7xrPA' => {
'stringValue' => 'EXAMPLE-stringValue-Value',
'intValue' => 199,
'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'
)
),
intersect_type: 'POSITION',
is_all: false
),
ui_properties:
OCI::DataIntegration::Models::UIProperties.new(
coordinate_x: 594.1147, coordinate_y: 7344.1577
),
object_status: 248
)
],
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_YO95L' => {
'stringValue' => 'EXAMPLE-stringValue-Value',
'intValue' => 121,
'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: 828,
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: 'COUNT',
type_name: 'EXAMPLE-typeName-Value',
used_for: 'EXAMPLE-usedFor-Value'
)
],
flow_config_values:
OCI::DataIntegration::Models::ConfigValues.new(
config_param_values: {
'EXAMPLE_KEY_YnqBe' => {
'stringValue' => 'EXAMPLE-stringValue-Value',
'intValue' => 162,
'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: 784,
object_status: 94,
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: 317,
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: false,
object_status: 924,
config_parameter_definitions: {
'EXAMPLE_KEY_SIEKX' => {
'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_z4J4K' => {
'stringValue' => 'EXAMPLE-stringValue-Value',
'intValue' => 622,
'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: 318
)
)
],
metadata:
OCI::DataIntegration::Models::ObjectMetadata.new(
created_by: 'EXAMPLE-createdBy-Value',
created_by_name: 'EXAMPLE-createdByName-Value',
updated_by: 'EXAMPLE-updatedBy-Value',
updated_by_name: 'EXAMPLE-updatedByName-Value',
time_created: DateTime.parse('2006-06-15T16:48:43.775Z'),
time_updated: DateTime.parse('2045-03-11T13:26:06.067Z'),
aggregator_key: 'EXAMPLE-aggregatorKey-Value',
aggregator:
OCI::DataIntegration::Models::AggregatorSummary.new(
type: 'EXAMPLE-type-Value',
key: 'EXAMPLE-key-Value',
name: 'EXAMPLE-name-Value',
identifier: 'EXAMPLE-identifier-Value',
description: 'EXAMPLE-description-Value'
),
identifier_path: 'EXAMPLE-identifierPath-Value',
info_fields: {
'EXAMPLE_KEY_8k4el' => 'EXAMPLE_VALUE_VNBmyP7VROl1SK1nhdrb'
},
registry_version: 556,
labels: %w[EXAMPLE--Value],
is_favorite: true,
count_statistics:
OCI::DataIntegration::Models::CountStatistic.new(
object_type_count_list: [
OCI::DataIntegration::Models::CountStatisticSummary.new(
object_type: 'FUNCTION_LIBRARY', object_count: 220
)
]
)
)
)
)
# Get the data from response
puts "#{create_pipeline_validation_response.data}"