# 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'
require 'date'

# 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_task_validation_response =
  data_integration_client.create_task_validation(
    'ocid1.test.oc1..<unique_ID>EXAMPLE-workspaceId-Value',
    OCI::DataIntegration::Models::CreateTaskValidationFromDataLoaderTask.new(
      model_type: 'DATA_LOADER_TASK',
      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: 936,
      object_status: 817,
      identifier: 'EXAMPLE-identifier-Value',
      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_hDU1H' => {
                  'stringValue' => 'EXAMPLE-stringValue-Value',
                  'intValue' => 845,
                  '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: 855,
          name: 'EXAMPLE-name-Value',
          description: 'EXAMPLE-description-Value',
          port_type: 'CONTROL',
          fields: [
            OCI::DataIntegration::Models::OutputPort.new(
              model_type: 'OUTPUT_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_fngc0' => {
                      'stringValue' => 'EXAMPLE-stringValue-Value',
                      'intValue' => 660,
                      '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: 365,
              name: 'EXAMPLE-name-Value',
              description: 'EXAMPLE-description-Value',
              port_type: 'MODEL'
            )
          ]
        )
      ],
      output_ports: [
        OCI::DataIntegration::Models::OutputPort.new(
          model_type: 'OUTPUT_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_ipshP' => {
                  'stringValue' => 'EXAMPLE-stringValue-Value',
                  'intValue' => 284,
                  '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: 430,
          name: 'EXAMPLE-name-Value',
          description: 'EXAMPLE-description-Value',
          port_type: 'MODEL',
          fields: [
            OCI::DataIntegration::Models::Shape.new(
              model_type: 'SHAPE',
              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_YJLEJ' => {
                      'stringValue' => 'EXAMPLE-stringValue-Value',
                      'intValue' => 915,
                      '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: 853,
              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: 278,
                  description: 'EXAMPLE-description-Value',
                  type_handler:
                    OCI::DataIntegration::Models::FlattenTypeHandler.new(
                      model_type: 'FLATTEN_TYPE_HANDLER',
                      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',
                      flatten_details: 'EXAMPLE-flattenDetails-Value',
                      config_values:
                        OCI::DataIntegration::Models::ConfigValues.new(
                          config_param_values: {
                            'EXAMPLE_KEY_XcJZq' => {
                              'stringValue' => 'EXAMPLE-stringValue-Value',
                              'intValue' => 914,
                              '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: 124
                    ),
                  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: 477,
                      config_parameter_definitions: {
                        'EXAMPLE_KEY_WGeVG' => {
                          'parameterName' => 'EXAMPLE-parameterName-Value',
                          'description' => 'EXAMPLE-description-Value',
                          'defaultValue' => 'EXAMPLE-defaultValue-Value',
                          'classFieldName' => 'EXAMPLE-classFieldName-Value',
                          'isStatic' => False,
                          'isClassFieldValue' => False
                        }
                      }
                    )
                )
            )
          ]
        )
      ],
      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_fnTlC' => {
                  'stringValue' => 'EXAMPLE-stringValue-Value',
                  'intValue' => 239,
                  '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: 532,
          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: false,
          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_0CNVu' => {
              'stringValue' => 'EXAMPLE-stringValue-Value',
              'intValue' => 440,
              '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'
            )
        ),
      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('2021-11-28T07:33:59.507Z'),
          time_updated: DateTime.parse('2011-12-02T10:03:18.382Z'),
          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_lxBOn' => 'EXAMPLE_VALUE_2BsDxZeoDcuEyjl97hYE'
          },
          registry_version: 425,
          labels: %w[EXAMPLE--Value],
          is_favorite: false,
          count_statistics:
            OCI::DataIntegration::Models::CountStatistic.new(
              object_type_count_list: [
                OCI::DataIntegration::Models::CountStatisticSummary.new(
                  object_type: 'DATA_ASSET', object_count: 529
                )
              ]
            )
        ),
      data_flow:
        OCI::DataIntegration::Models::DataFlow.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',
          identifier: 'EXAMPLE-identifier-Value',
          object_version: 304,
          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: 101,
                  description: 'EXAMPLE-description-Value',
                  port: 'EXAMPLE-port-Value',
                  from_link: 'EXAMPLE-fromLink-Value',
                  field_map:
                    OCI::DataIntegration::Models::NamedEntityMap.new(
                      model_type: 'NAMED_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_Xg9gI' => {
                              'stringValue' => 'EXAMPLE-stringValue-Value',
                              'intValue' => 7,
                              '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'
                            )
                        ),
                      source_entity: 'EXAMPLE-sourceEntity-Value',
                      target_entity: 'EXAMPLE-targetEntity-Value',
                      object_status: 760
                    )
                )
              ],
              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: 521,
                  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: 516,
                  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_9d9Y9' => {
                              'stringValue' => 'EXAMPLE-stringValue-Value',
                              'intValue' => 925,
                              '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: 82,
                      name: 'EXAMPLE-name-Value',
                      description: 'EXAMPLE-description-Value',
                      port_type: 'DATA',
                      fields: [
                        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_spHTV' => {
                                  'stringValue' => 'EXAMPLE-stringValue-Value',
                                  'intValue' => 10,
                                  '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: 753,
                          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: 'MIN',
                          type_name: 'EXAMPLE-typeName-Value',
                          used_for: 'EXAMPLE-usedFor-Value'
                        )
                      ]
                    )
                  ],
                  output_ports: [
                    OCI::DataIntegration::Models::DynamicProxyField.new(
                      model_type: 'DYNAMIC_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_vihyx' => {
                              'stringValue' => 'EXAMPLE-stringValue-Value',
                              'intValue' => 38,
                              '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: 643,
                      name: 'EXAMPLE-name-Value',
                      description: 'EXAMPLE-description-Value',
                      type:
                        OCI::DataIntegration::Models::ArrayType.new(
                          model_type: 'ARRAY_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: 350,
                          description: 'EXAMPLE-description-Value',
                          element_type: 'EXAMPLE-elementType-Value'
                        ),
                      labels: %w[EXAMPLE--Value]
                    )
                  ],
                  object_status: 960,
                  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_XDwNL' => {
                              'stringValue' => 'EXAMPLE-stringValue-Value',
                              'intValue' => 137,
                              '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: 687,
                      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: 'MIN',
                      type_name: 'EXAMPLE-typeName-Value',
                      used_for: 'EXAMPLE-usedFor-Value'
                    )
                  ],
                  op_config_values:
                    OCI::DataIntegration::Models::ConfigValues.new(
                      config_param_values: {
                        'EXAMPLE_KEY_fSJo7' => {
                          'stringValue' => 'EXAMPLE-stringValue-Value',
                          'intValue' => 803,
                          '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: 1992.2483, coordinate_y: 2345.13
                ),
              object_status: 907
            )
          ],
          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_CsfR5' => {
                      'stringValue' => 'EXAMPLE-stringValue-Value',
                      'intValue' => 590,
                      '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: 791,
              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: 'MAX',
              type_name: 'EXAMPLE-typeName-Value',
              used_for: 'EXAMPLE-usedFor-Value'
            )
          ],
          description: 'EXAMPLE-description-Value',
          flow_config_values:
            OCI::DataIntegration::Models::ConfigValues.new(
              config_param_values: {
                'EXAMPLE_KEY_fHpoX' => {
                  'stringValue' => 'EXAMPLE-stringValue-Value',
                  'intValue' => 616,
                  '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: 74,
          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('2005-01-03T10:14:39.125Z'),
              time_updated: DateTime.parse('2016-01-13T13:41:33.983Z'),
              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_s732D' => 'EXAMPLE_VALUE_fIS7CTYsI5bKfbetEvGH'
              },
              registry_version: 67,
              labels: %w[EXAMPLE--Value],
              is_favorite: false,
              count_statistics:
                OCI::DataIntegration::Models::CountStatistic.new(
                  object_type_count_list: [
                    OCI::DataIntegration::Models::CountStatisticSummary.new(
                      object_type: 'PROJECT', object_count: 493
                    )
                  ]
                )
            ),
          key_map: {
            'EXAMPLE_KEY_7h6Dx' => 'EXAMPLE_VALUE_v8iSVtYJRr025Wh8BgHt'
          },
          typed_object_map: {
            'EXAMPLE_KEY_dfhMf' => {
              'typedObject' => {
                'modelType' => 'FLOW_PORT',
                '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_OYFEH' => {
                      'stringValue' => 'EXAMPLE-stringValue-Value',
                      'intValue' => 27,
                      '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' => 691,
                'name' => 'EXAMPLE-name-Value',
                'description' => 'EXAMPLE-description-Value'
              }
            }
          },
          target_field_map_summary: {
            'EXAMPLE_KEY_sDCjk' => {
              'fieldMap' => {
                'modelType' => 'RULE_BASED_ENTITY_MAP',
                '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_crgXu' => {
                      'stringValue' => 'EXAMPLE-stringValue-Value',
                      'intValue' => 478,
                      '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' => 'MAPBYPATTERN',
                'fromPattern' => 'EXAMPLE-fromPattern-Value',
                'toPattern' => 'EXAMPLE-toPattern-Value',
                'isJavaRegexSyntax' => False,
                'objectStatus' => 442
              }
            }
          }
        )
    )
  )

# Get the data from response
puts "#{create_task_validation_response.data}"