# 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
update_external_publication_response =
  data_integration_client.update_external_publication(
    'ocid1.test.oc1..<unique_ID>EXAMPLE-workspaceId-Value',
    'EXAMPLE-taskKey-Value',
    'EXAMPLE-externalPublicationsKey-Value',
    OCI::DataIntegration::Models::UpdateExternalPublicationDetails.new(
      application_compartment_id:
        'ocid1.test.oc1..<unique_ID>EXAMPLE-applicationCompartmentId-Value',
      display_name: 'EXAMPLE-displayName-Value',
      application_id: 'ocid1.test.oc1..<unique_ID>EXAMPLE-applicationId-Value',
      description: 'EXAMPLE-description-Value',
      resource_configuration:
        OCI::DataIntegration::Models::ResourceConfiguration.new(
          spark_version: 'EXAMPLE-sparkVersion-Value',
          driver_shape: 'EXAMPLE-driverShape-Value',
          executor_shape: 'EXAMPLE-executorShape-Value',
          total_executors: 470
        ),
      configuration_details:
        OCI::DataIntegration::Models::ConfigurationDetails.new(
          data_asset:
            OCI::DataIntegration::Models::DataAssetFromAdwcDetails.new(
              model_type: 'ORACLE_ADWC_DATA_ASSET',
              key: 'EXAMPLE-key-Value',
              model_version: 'EXAMPLE-modelVersion-Value',
              name: 'EXAMPLE-name-Value',
              description: 'EXAMPLE-description-Value',
              object_status: 885,
              identifier: 'EXAMPLE-identifier-Value',
              external_key: 'EXAMPLE-externalKey-Value',
              asset_properties: {
                'EXAMPLE_KEY_lfTGb' => 'EXAMPLE_VALUE_LjgqzpSyF109qrHGa9M1'
              },
              native_type_system:
                OCI::DataIntegration::Models::TypeSystem.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',
                  object_version: 75,
                  type_mapping_to: {
                    'EXAMPLE_KEY_NEjrv' => 'EXAMPLE_VALUE_tux0m0jiM01XYc6dg5nR'
                  },
                  type_mapping_from: {
                    'EXAMPLE_KEY_C1rx7' => 'EXAMPLE_VALUE_JVYlg5yCprfdeGAlNyXh'
                  },
                  object_status: 5,
                  identifier: 'EXAMPLE-identifier-Value',
                  types: [
                    OCI::DataIntegration::Models::DataType.new(
                      model_type: 'DATA_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: 361,
                      description: 'EXAMPLE-description-Value',
                      dt_type: 'PRIMITIVE',
                      type_system_name: 'EXAMPLE-typeSystemName-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: 218,
                          config_parameter_definitions: {
                            'EXAMPLE_KEY_EQ9Jr' => {
                              'parameterType' => {
                                'modelType' => 'MAP_TYPE',
                                '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' => 131,
                                'description' => 'EXAMPLE-description-Value',
                                'keyElementType' =>
                                  'EXAMPLE-keyElementType-Value',
                                'valueElementType' =>
                                  'EXAMPLE-valueElementType-Value',
                                'containsNull' => True
                              },
                              'parameterName' => 'EXAMPLE-parameterName-Value',
                              'description' => 'EXAMPLE-description-Value',
                              'defaultValue' => 'EXAMPLE-defaultValue-Value',
                              'classFieldName' =>
                                'EXAMPLE-classFieldName-Value',
                              'isStatic' => False,
                              'isClassFieldValue' => True
                            }
                          }
                        )
                    )
                  ]
                ),
              object_version: 837,
              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('2039-11-13T00:08:10.946Z'),
                  time_updated: DateTime.parse('2008-01-31T08:06:32.881Z'),
                  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_XTbGg' => 'EXAMPLE_VALUE_FfOl8LPSj4Vxmc2TMIEt'
                  },
                  registry_version: 369,
                  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_FLOW', object_count: 92
                        )
                      ]
                    )
                ),
              key_map: {
                'EXAMPLE_KEY_5pRcl' => 'EXAMPLE_VALUE_L9k9ONDCHg2zHik8KMd9'
              },
              service_name: 'EXAMPLE-serviceName-Value',
              service_names: %w[EXAMPLE--Value],
              driver_class: 'EXAMPLE-driverClass-Value',
              default_connection:
                OCI::DataIntegration::Models::ConnectionFromAdwcDetails.new(
                  model_type: 'ORACLE_ADWC_CONNECTION',
                  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: 42,
                  object_status: 747,
                  identifier: 'EXAMPLE-identifier-Value',
                  primary_schema:
                    OCI::DataIntegration::Models::Schema.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',
                      resource_name: 'EXAMPLE-resourceName-Value',
                      description: 'EXAMPLE-description-Value',
                      object_version: 545,
                      external_key: 'EXAMPLE-externalKey-Value',
                      is_has_containers: false,
                      default_connection: 'EXAMPLE-defaultConnection-Value',
                      object_status: 380,
                      identifier: 'EXAMPLE-identifier-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('2026-08-29T11:54:39.442Z'),
                          time_updated:
                            DateTime.parse('2033-08-18T11:22:30.348Z'),
                          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_OUJcj' =>
                              'EXAMPLE_VALUE_1FkTDqFc9DVHxdPTIzzZ'
                          },
                          registry_version: 447,
                          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: 372
                                )
                              ]
                            )
                        )
                    ),
                  connection_properties: [
                    OCI::DataIntegration::Models::ConnectionProperty.new(
                      name: 'EXAMPLE-name-Value', value: 'EXAMPLE-value-Value'
                    )
                  ],
                  is_default: false,
                  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('2025-05-18T14:49:19.411Z'),
                      time_updated: DateTime.parse('2030-08-14T18:53:27.385Z'),
                      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_eOZHj' =>
                          'EXAMPLE_VALUE_Bhqi1hEGmtQ6fjKii6MA'
                      },
                      registry_version: 129,
                      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: 'APPLICATION', object_count: 383
                            )
                          ]
                        )
                    ),
                  tns_alias: 'EXAMPLE-tnsAlias-Value',
                  tns_names: %w[EXAMPLE--Value],
                  username: 'EXAMPLE-username-Value',
                  password: 'EXAMPLE-password-Value',
                  password_secret:
                    OCI::DataIntegration::Models::SensitiveAttribute.new(
                      secret_config:
                        OCI::DataIntegration::Models::OciVaultSecretConfig.new(
                          model_type: 'OCI_VAULT_SECRET_CONFIG',
                          secret_id:
                            'ocid1.test.oc1..<unique_ID>EXAMPLE-secretId-Value'
                        ),
                      value: 'EXAMPLE-value-Value'
                    )
                ),
              staging_connection:
                OCI::DataIntegration::Models::ConnectionFromLake.new(
                  model_type: 'LAKE_CONNECTION',
                  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: 221,
                  object_status: 759,
                  identifier: 'EXAMPLE-identifier-Value',
                  primary_schema:
                    OCI::DataIntegration::Models::Schema.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',
                      resource_name: 'EXAMPLE-resourceName-Value',
                      description: 'EXAMPLE-description-Value',
                      object_version: 229,
                      external_key: 'EXAMPLE-externalKey-Value',
                      is_has_containers: false,
                      default_connection: 'EXAMPLE-defaultConnection-Value',
                      object_status: 125,
                      identifier: 'EXAMPLE-identifier-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('2046-06-06T06:02:09.272Z'),
                          time_updated:
                            DateTime.parse('2026-04-12T01:29:44.838Z'),
                          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_4myfA' =>
                              'EXAMPLE_VALUE_YAX5MaePWfbUMr4nJ2MV'
                          },
                          registry_version: 519,
                          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: 'USER_DEFINED_FUNCTION',
                                  object_count: 266
                                )
                              ]
                            )
                        )
                    ),
                  connection_properties: [
                    OCI::DataIntegration::Models::ConnectionProperty.new(
                      name: 'EXAMPLE-name-Value', value: 'EXAMPLE-value-Value'
                    )
                  ],
                  is_default: true,
                  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('2003-12-10T12:20:06.837Z'),
                      time_updated: DateTime.parse('2030-07-09T23:11:15.973Z'),
                      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_rt2eB' =>
                          'EXAMPLE_VALUE_ZkDGEvPwdRDa07MGHlRo'
                      },
                      registry_version: 817,
                      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: 'APPLICATION', object_count: 79)
                          ]
                        )
                    ),
                  key_map: {
                    'EXAMPLE_KEY_VEct6' => 'EXAMPLE_VALUE_v4rZM2CC3amCPSvhXI9Q'
                  }
                ),
              bucket_schema:
                OCI::DataIntegration::Models::Schema.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',
                  resource_name: 'EXAMPLE-resourceName-Value',
                  description: 'EXAMPLE-description-Value',
                  object_version: 43,
                  external_key: 'EXAMPLE-externalKey-Value',
                  is_has_containers: false,
                  default_connection: 'EXAMPLE-defaultConnection-Value',
                  object_status: 668,
                  identifier: 'EXAMPLE-identifier-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('2030-07-23T23:17:20.103Z'),
                      time_updated: DateTime.parse('2022-09-08T08:42:05.952Z'),
                      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_ZDcs5' =>
                          'EXAMPLE_VALUE_YUidPD0m2cUJsTSCoIYY'
                      },
                      registry_version: 958,
                      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: 'USER_DEFINED_FUNCTION',
                              object_count: 234
                            )
                          ]
                        )
                    )
                )
            ),
          connection:
            OCI::DataIntegration::Models::ConnectionFromHdfs.new(
              model_type: 'HDFS_CONNECTION',
              hdfs_principal: 'EXAMPLE-hdfsPrincipal-Value',
              data_node_principal: 'EXAMPLE-dataNodePrincipal-Value',
              name_node_principal: 'EXAMPLE-nameNodePrincipal-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'
                ),
              name: 'EXAMPLE-name-Value',
              description: 'EXAMPLE-description-Value',
              object_version: 115,
              object_status: 140,
              identifier: 'EXAMPLE-identifier-Value',
              primary_schema:
                OCI::DataIntegration::Models::Schema.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',
                  resource_name: 'EXAMPLE-resourceName-Value',
                  description: 'EXAMPLE-description-Value',
                  object_version: 336,
                  external_key: 'EXAMPLE-externalKey-Value',
                  is_has_containers: false,
                  default_connection: 'EXAMPLE-defaultConnection-Value',
                  object_status: 279,
                  identifier: 'EXAMPLE-identifier-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('2019-09-08T01:10:12.499Z'),
                      time_updated: DateTime.parse('2001-09-13T01:21:27.894Z'),
                      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_bAV3N' =>
                          'EXAMPLE_VALUE_bY7v8VMjQpn7l7LWmRBK'
                      },
                      registry_version: 714,
                      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: 122
                            )
                          ]
                        )
                    )
                ),
              connection_properties: [
                OCI::DataIntegration::Models::ConnectionProperty.new(
                  name: 'EXAMPLE-name-Value', value: 'EXAMPLE-value-Value'
                )
              ],
              is_default: false,
              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('2018-12-06T23:57:01.555Z'),
                  time_updated: DateTime.parse('2017-03-31T12:16:05.543Z'),
                  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_rtail' => 'EXAMPLE_VALUE_z8TRJse9WZBeqYdfzWS0'
                  },
                  registry_version: 161,
                  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: 673
                        )
                      ]
                    )
                ),
              key_map: {
                'EXAMPLE_KEY_RQmDn' => 'EXAMPLE_VALUE_tam9pIGf0v5SCFFMR4TS'
              },
              realm: 'EXAMPLE-realm-Value',
              key_distribution_center: 'EXAMPLE-keyDistributionCenter-Value',
              key_tab_content:
                OCI::DataIntegration::Models::SensitiveAttribute.new(
                  secret_config:
                    OCI::DataIntegration::Models::OciVaultSecretConfig.new(
                      model_type: 'OCI_VAULT_SECRET_CONFIG',
                      secret_id:
                        'ocid1.test.oc1..<unique_ID>EXAMPLE-secretId-Value'
                    ),
                  value: 'EXAMPLE-value-Value'
                )
            ),
          compartment_id:
            'ocid1.test.oc1..<unique_ID>EXAMPLE-compartmentId-Value',
          schema:
            OCI::DataIntegration::Models::Schema.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',
              resource_name: 'EXAMPLE-resourceName-Value',
              description: 'EXAMPLE-description-Value',
              object_version: 152,
              external_key: 'EXAMPLE-externalKey-Value',
              is_has_containers: true,
              default_connection: 'EXAMPLE-defaultConnection-Value',
              object_status: 966,
              identifier: 'EXAMPLE-identifier-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-07-29T21:42:19.785Z'),
                  time_updated: DateTime.parse('2005-11-01T04:07:02.943Z'),
                  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_nJWXM' => 'EXAMPLE_VALUE_eEiB1CZHCYzxHrm2MnXy'
                  },
                  registry_version: 869,
                  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: 'USER_DEFINED_FUNCTION',
                          object_count: 809
                        )
                      ]
                    )
                )
            )
        )
    )
  )

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