// 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).

package main

import (
	"context"
	"fmt"
	"time"

	"github.com/oracle/oci-go-sdk/v65/common"
	"github.com/oracle/oci-go-sdk/v65/dataintegration"
	"github.com/oracle/oci-go-sdk/v65/example/helpers"
)

func ExampleUpdateExternalPublication() {
	// Create a default authentication provider that uses the DEFAULT
	// profile in the configuration file.
	// Refer to <see href="https://docs.cloud.oracle.com/en-us/iaas/Content/API/Concepts/sdkconfig.htm#SDK_and_CLI_Configuration_File>the public documentation</see> on how to prepare a configuration file.
	client, err := dataintegration.NewDataIntegrationClientWithConfigurationProvider(common.DefaultConfigProvider())
	helpers.FatalIfError(err)

	// Create a request and dependent object(s).
	var defaultValue interface{}
	defaultValue = "EXAMPLE-defaultValue-Value"
	req := dataintegration.UpdateExternalPublicationRequest{ExternalPublicationsKey: common.String("EXAMPLE-externalPublicationsKey-Value"),
		IfMatch:      common.String("EXAMPLE-ifMatch-Value"),
		OpcRequestId: common.String("GUYGNOVBU1G2WKCOOTSE<unique_ID>"),
		TaskKey:      common.String("EXAMPLE-taskKey-Value"),
		UpdateExternalPublicationDetails: dataintegration.UpdateExternalPublicationDetails{ApplicationCompartmentId: common.String("ocid1.test.oc1..<unique_ID>EXAMPLE-applicationCompartmentId-Value"),
			ApplicationId: common.String("ocid1.test.oc1..<unique_ID>EXAMPLE-applicationId-Value"),
			ConfigurationDetails: &dataintegration.ConfigurationDetails{Connection: dataintegration.ConnectionFromOracle{Description: common.String("EXAMPLE-description-Value"),
				Identifier: common.String("EXAMPLE-identifier-Value"),
				Key:        common.String("EXAMPLE-key-Value"),
				Metadata: &dataintegration.ObjectMetadata{Labels: []string{"EXAMPLE--Value"},
					RegistryVersion: common.Int(196),
					TimeUpdated:     &common.SDKTime{Time: time.Now()},
					UpdatedBy:       common.String("EXAMPLE-updatedBy-Value"),
					CountStatistics: &dataintegration.CountStatistic{ObjectTypeCountList: []dataintegration.CountStatisticSummary{dataintegration.CountStatisticSummary{ObjectCount: common.Int64(313),
						ObjectType: dataintegration.CountStatisticSummaryObjectTypeUserDefinedFunction}}},
					CreatedBy:      common.String("EXAMPLE-createdBy-Value"),
					IdentifierPath: common.String("EXAMPLE-identifierPath-Value"),
					InfoFields:     map[string]string{"EXAMPLE_KEY_b93O9": "EXAMPLE_VALUE_bG8DXIWfDfIy3dUy7HPa"},
					IsFavorite:     common.Bool(true),
					TimeCreated:    &common.SDKTime{Time: time.Now()},
					UpdatedByName:  common.String("EXAMPLE-updatedByName-Value"),
					Aggregator: &dataintegration.AggregatorSummary{Identifier: common.String("EXAMPLE-identifier-Value"),
						Key:         common.String("EXAMPLE-key-Value"),
						Name:        common.String("EXAMPLE-name-Value"),
						Type:        common.String("EXAMPLE-type-Value"),
						Description: common.String("EXAMPLE-description-Value")},
					AggregatorKey: common.String("EXAMPLE-aggregatorKey-Value"),
					CreatedByName: common.String("EXAMPLE-createdByName-Value")},
				Name: common.String("EXAMPLE-name-Value"),
				ConnectionProperties: []dataintegration.ConnectionProperty{dataintegration.ConnectionProperty{Name: common.String("EXAMPLE-name-Value"),
					Value: common.String("EXAMPLE-value-Value")}},
				Password:     common.String("EXAMPLE-password-Value"),
				ObjectStatus: common.Int(655),
				PrimarySchema: &dataintegration.Schema{ExternalKey: common.String("EXAMPLE-externalKey-Value"),
					Metadata: &dataintegration.ObjectMetadata{TimeCreated: &common.SDKTime{Time: time.Now()},
						UpdatedBy:     common.String("EXAMPLE-updatedBy-Value"),
						UpdatedByName: common.String("EXAMPLE-updatedByName-Value"),
						Aggregator: &dataintegration.AggregatorSummary{Identifier: common.String("EXAMPLE-identifier-Value"),
							Key:         common.String("EXAMPLE-key-Value"),
							Name:        common.String("EXAMPLE-name-Value"),
							Type:        common.String("EXAMPLE-type-Value"),
							Description: common.String("EXAMPLE-description-Value")},
						AggregatorKey: common.String("EXAMPLE-aggregatorKey-Value"),
						CountStatistics: &dataintegration.CountStatistic{ObjectTypeCountList: []dataintegration.CountStatisticSummary{dataintegration.CountStatisticSummary{ObjectCount: common.Int64(393),
							ObjectType: dataintegration.CountStatisticSummaryObjectTypeConnection}}},
						CreatedBy:       common.String("EXAMPLE-createdBy-Value"),
						CreatedByName:   common.String("EXAMPLE-createdByName-Value"),
						IsFavorite:      common.Bool(false),
						RegistryVersion: common.Int(370),
						TimeUpdated:     &common.SDKTime{Time: time.Now()},
						IdentifierPath:  common.String("EXAMPLE-identifierPath-Value"),
						InfoFields:      map[string]string{"EXAMPLE_KEY_1cH9r": "EXAMPLE_VALUE_BaqEMmxuFjKl1AfqSsZr"},
						Labels:          []string{"EXAMPLE--Value"}},
					Name:              common.String("EXAMPLE-name-Value"),
					ObjectStatus:      common.Int(302),
					DefaultConnection: common.String("EXAMPLE-defaultConnection-Value"),
					Identifier:        common.String("EXAMPLE-identifier-Value"),
					IsHasContainers:   common.Bool(true),
					Key:               common.String("EXAMPLE-key-Value"),
					ModelVersion:      common.String("EXAMPLE-modelVersion-Value"),
					ObjectVersion:     common.Int(826),
					ParentRef: &dataintegration.ParentReference{Parent: common.String("EXAMPLE-parent-Value"),
						RootDocId: common.String("ocid1.test.oc1..<unique_ID>EXAMPLE-rootDocId-Value")},
					ResourceName: common.String("EXAMPLE-resourceName-Value"),
					Description:  common.String("EXAMPLE-description-Value")},
				Username: common.String("EXAMPLE-username-Value"),
				KeyMap:   map[string]string{"EXAMPLE_KEY_VNHkG": "EXAMPLE_VALUE_ggEBNDWz2ucspoAnFLFC"},
				PasswordSecret: &dataintegration.SensitiveAttribute{SecretConfig: dataintegration.OciVaultSecretConfig{SecretId: common.String("ocid1.test.oc1..<unique_ID>EXAMPLE-secretId-Value")},
					Value: common.String("EXAMPLE-value-Value")},
				IsDefault:     common.Bool(true),
				ModelVersion:  common.String("EXAMPLE-modelVersion-Value"),
				ObjectVersion: common.Int(126),
				ParentRef: &dataintegration.ParentReference{Parent: common.String("EXAMPLE-parent-Value"),
					RootDocId: common.String("ocid1.test.oc1..<unique_ID>EXAMPLE-rootDocId-Value")}},
				DataAsset: dataintegration.DataAssetFromAtpDetails{AssetProperties: map[string]string{"EXAMPLE_KEY_RpjPW": "EXAMPLE_VALUE_EpyNYMaBw8AvlZru4Iy2"},
					Description: common.String("EXAMPLE-description-Value"),
					ExternalKey: common.String("EXAMPLE-externalKey-Value"),
					Metadata: &dataintegration.ObjectMetadata{UpdatedBy: common.String("EXAMPLE-updatedBy-Value"),
						UpdatedByName: common.String("EXAMPLE-updatedByName-Value"),
						Aggregator: &dataintegration.AggregatorSummary{Description: common.String("EXAMPLE-description-Value"),
							Identifier: common.String("EXAMPLE-identifier-Value"),
							Key:        common.String("EXAMPLE-key-Value"),
							Name:       common.String("EXAMPLE-name-Value"),
							Type:       common.String("EXAMPLE-type-Value")},
						CreatedBy:       common.String("EXAMPLE-createdBy-Value"),
						CreatedByName:   common.String("EXAMPLE-createdByName-Value"),
						IdentifierPath:  common.String("EXAMPLE-identifierPath-Value"),
						InfoFields:      map[string]string{"EXAMPLE_KEY_MdTpF": "EXAMPLE_VALUE_s4MweIY1GFcOorGmZYgA"},
						Labels:          []string{"EXAMPLE--Value"},
						RegistryVersion: common.Int(820),
						TimeUpdated:     &common.SDKTime{Time: time.Now()},
						AggregatorKey:   common.String("EXAMPLE-aggregatorKey-Value"),
						CountStatistics: &dataintegration.CountStatistic{ObjectTypeCountList: []dataintegration.CountStatisticSummary{dataintegration.CountStatisticSummary{ObjectCount: common.Int64(113),
							ObjectType: dataintegration.CountStatisticSummaryObjectTypeTask}}},
						IsFavorite:  common.Bool(false),
						TimeCreated: &common.SDKTime{Time: time.Now()}},
					ModelVersion: common.String("EXAMPLE-modelVersion-Value"),
					BucketSchema: &dataintegration.Schema{Identifier: common.String("EXAMPLE-identifier-Value"),
						IsHasContainers: common.Bool(true),
						ObjectStatus:    common.Int(358),
						ObjectVersion:   common.Int(565),
						Key:             common.String("EXAMPLE-key-Value"),
						Metadata: &dataintegration.ObjectMetadata{IdentifierPath: common.String("EXAMPLE-identifierPath-Value"),
							RegistryVersion: common.Int(771),
							TimeCreated:     &common.SDKTime{Time: time.Now()},
							UpdatedByName:   common.String("EXAMPLE-updatedByName-Value"),
							Aggregator: &dataintegration.AggregatorSummary{Description: common.String("EXAMPLE-description-Value"),
								Identifier: common.String("EXAMPLE-identifier-Value"),
								Key:        common.String("EXAMPLE-key-Value"),
								Name:       common.String("EXAMPLE-name-Value"),
								Type:       common.String("EXAMPLE-type-Value")},
							AggregatorKey: common.String("EXAMPLE-aggregatorKey-Value"),
							CreatedByName: common.String("EXAMPLE-createdByName-Value"),
							InfoFields:    map[string]string{"EXAMPLE_KEY_aU0du": "EXAMPLE_VALUE_GSfVL1w3caZ3j82rkWdB"},
							IsFavorite:    common.Bool(true),
							Labels:        []string{"EXAMPLE--Value"},
							TimeUpdated:   &common.SDKTime{Time: time.Now()},
							UpdatedBy:     common.String("EXAMPLE-updatedBy-Value"),
							CountStatistics: &dataintegration.CountStatistic{ObjectTypeCountList: []dataintegration.CountStatisticSummary{dataintegration.CountStatisticSummary{ObjectCount: common.Int64(207),
								ObjectType: dataintegration.CountStatisticSummaryObjectTypeApplication}}},
							CreatedBy: common.String("EXAMPLE-createdBy-Value")},
						ModelVersion: common.String("EXAMPLE-modelVersion-Value"),
						Name:         common.String("EXAMPLE-name-Value"),
						ParentRef: &dataintegration.ParentReference{Parent: common.String("EXAMPLE-parent-Value"),
							RootDocId: common.String("ocid1.test.oc1..<unique_ID>EXAMPLE-rootDocId-Value")},
						ResourceName:      common.String("EXAMPLE-resourceName-Value"),
						DefaultConnection: common.String("EXAMPLE-defaultConnection-Value"),
						Description:       common.String("EXAMPLE-description-Value"),
						ExternalKey:       common.String("EXAMPLE-externalKey-Value")},
					Identifier:    common.String("EXAMPLE-identifier-Value"),
					KeyMap:        map[string]string{"EXAMPLE_KEY_HLDll": "EXAMPLE_VALUE_YXTDkslG2okWmJMA2DIK"},
					ObjectStatus:  common.Int(654),
					ObjectVersion: common.Int(878),
					ParentRef: &dataintegration.ParentReference{RootDocId: common.String("ocid1.test.oc1..<unique_ID>EXAMPLE-rootDocId-Value"),
						Parent: common.String("EXAMPLE-parent-Value")},
					ServiceName: common.String("EXAMPLE-serviceName-Value"),
					StagingConnection: dataintegration.ConnectionFromOracleSiebel{Description: common.String("EXAMPLE-description-Value"),
						Name:         common.String("EXAMPLE-name-Value"),
						ObjectStatus: common.Int(22),
						ConnectionProperties: []dataintegration.ConnectionProperty{dataintegration.ConnectionProperty{Name: common.String("EXAMPLE-name-Value"),
							Value: common.String("EXAMPLE-value-Value")}},
						KeyMap:       map[string]string{"EXAMPLE_KEY_7h05X": "EXAMPLE_VALUE_YDFNZo0FIadKj51irwIn"},
						ModelVersion: common.String("EXAMPLE-modelVersion-Value"),
						PrimarySchema: &dataintegration.Schema{Identifier: common.String("EXAMPLE-identifier-Value"),
							IsHasContainers: common.Bool(true),
							Metadata: &dataintegration.ObjectMetadata{AggregatorKey: common.String("EXAMPLE-aggregatorKey-Value"),
								CountStatistics: &dataintegration.CountStatistic{ObjectTypeCountList: []dataintegration.CountStatisticSummary{dataintegration.CountStatisticSummary{ObjectCount: common.Int64(594),
									ObjectType: dataintegration.CountStatisticSummaryObjectTypeConnection}}},
								CreatedBy:       common.String("EXAMPLE-createdBy-Value"),
								CreatedByName:   common.String("EXAMPLE-createdByName-Value"),
								InfoFields:      map[string]string{"EXAMPLE_KEY_ZTkBT": "EXAMPLE_VALUE_5n1u8CvxvRJXeVH86r9l"},
								IsFavorite:      common.Bool(false),
								TimeCreated:     &common.SDKTime{Time: time.Now()},
								IdentifierPath:  common.String("EXAMPLE-identifierPath-Value"),
								Labels:          []string{"EXAMPLE--Value"},
								RegistryVersion: common.Int(314),
								TimeUpdated:     &common.SDKTime{Time: time.Now()},
								UpdatedBy:       common.String("EXAMPLE-updatedBy-Value"),
								UpdatedByName:   common.String("EXAMPLE-updatedByName-Value"),
								Aggregator: &dataintegration.AggregatorSummary{Name: common.String("EXAMPLE-name-Value"),
									Type:        common.String("EXAMPLE-type-Value"),
									Description: common.String("EXAMPLE-description-Value"),
									Identifier:  common.String("EXAMPLE-identifier-Value"),
									Key:         common.String("EXAMPLE-key-Value")}},
							Name: common.String("EXAMPLE-name-Value"),
							ParentRef: &dataintegration.ParentReference{Parent: common.String("EXAMPLE-parent-Value"),
								RootDocId: common.String("ocid1.test.oc1..<unique_ID>EXAMPLE-rootDocId-Value")},
							Description:       common.String("EXAMPLE-description-Value"),
							ExternalKey:       common.String("EXAMPLE-externalKey-Value"),
							Key:               common.String("EXAMPLE-key-Value"),
							ModelVersion:      common.String("EXAMPLE-modelVersion-Value"),
							ObjectStatus:      common.Int(567),
							ObjectVersion:     common.Int(766),
							ResourceName:      common.String("EXAMPLE-resourceName-Value"),
							DefaultConnection: common.String("EXAMPLE-defaultConnection-Value")},
						IsDefault: common.Bool(false),
						Metadata: &dataintegration.ObjectMetadata{TimeCreated: &common.SDKTime{Time: time.Now()},
							UpdatedBy: common.String("EXAMPLE-updatedBy-Value"),
							Aggregator: &dataintegration.AggregatorSummary{Description: common.String("EXAMPLE-description-Value"),
								Identifier: common.String("EXAMPLE-identifier-Value"),
								Key:        common.String("EXAMPLE-key-Value"),
								Name:       common.String("EXAMPLE-name-Value"),
								Type:       common.String("EXAMPLE-type-Value")},
							CountStatistics: &dataintegration.CountStatistic{ObjectTypeCountList: []dataintegration.CountStatisticSummary{dataintegration.CountStatisticSummary{ObjectType: dataintegration.CountStatisticSummaryObjectTypeDataAsset,
								ObjectCount: common.Int64(53)}}},
							CreatedByName:   common.String("EXAMPLE-createdByName-Value"),
							InfoFields:      map[string]string{"EXAMPLE_KEY_LsffF": "EXAMPLE_VALUE_O0zuZg13p6sWanzGcfPF"},
							IsFavorite:      common.Bool(false),
							RegistryVersion: common.Int(445),
							TimeUpdated:     &common.SDKTime{Time: time.Now()},
							UpdatedByName:   common.String("EXAMPLE-updatedByName-Value"),
							AggregatorKey:   common.String("EXAMPLE-aggregatorKey-Value"),
							CreatedBy:       common.String("EXAMPLE-createdBy-Value"),
							IdentifierPath:  common.String("EXAMPLE-identifierPath-Value"),
							Labels:          []string{"EXAMPLE--Value"}},
						ObjectVersion: common.Int(69),
						ParentRef: &dataintegration.ParentReference{Parent: common.String("EXAMPLE-parent-Value"),
							RootDocId: common.String("ocid1.test.oc1..<unique_ID>EXAMPLE-rootDocId-Value")},
						Password: common.String("EXAMPLE-password-Value"),
						PasswordSecret: &dataintegration.SensitiveAttribute{SecretConfig: dataintegration.OciVaultSecretConfig{SecretId: common.String("ocid1.test.oc1..<unique_ID>EXAMPLE-secretId-Value")},
							Value: common.String("EXAMPLE-value-Value")},
						Identifier: common.String("EXAMPLE-identifier-Value"),
						Key:        common.String("EXAMPLE-key-Value"),
						Username:   common.String("EXAMPLE-username-Value")},
					DefaultConnection: &dataintegration.ConnectionFromAtpDetails{ObjectVersion: common.Int(187),
						Key:          common.String("EXAMPLE-key-Value"),
						ModelVersion: common.String("EXAMPLE-modelVersion-Value"),
						PrimarySchema: &dataintegration.Schema{ObjectStatus: common.Int(867),
							ParentRef: &dataintegration.ParentReference{RootDocId: common.String("ocid1.test.oc1..<unique_ID>EXAMPLE-rootDocId-Value"),
								Parent: common.String("EXAMPLE-parent-Value")},
							DefaultConnection: common.String("EXAMPLE-defaultConnection-Value"),
							Identifier:        common.String("EXAMPLE-identifier-Value"),
							Metadata: &dataintegration.ObjectMetadata{CountStatistics: &dataintegration.CountStatistic{ObjectTypeCountList: []dataintegration.CountStatisticSummary{dataintegration.CountStatisticSummary{ObjectCount: common.Int64(267),
								ObjectType: dataintegration.CountStatisticSummaryObjectTypeProject}}},
								IdentifierPath:  common.String("EXAMPLE-identifierPath-Value"),
								Labels:          []string{"EXAMPLE--Value"},
								RegistryVersion: common.Int(660),
								TimeCreated:     &common.SDKTime{Time: time.Now()},
								TimeUpdated:     &common.SDKTime{Time: time.Now()},
								UpdatedByName:   common.String("EXAMPLE-updatedByName-Value"),
								Aggregator: &dataintegration.AggregatorSummary{Type: common.String("EXAMPLE-type-Value"),
									Description: common.String("EXAMPLE-description-Value"),
									Identifier:  common.String("EXAMPLE-identifier-Value"),
									Key:         common.String("EXAMPLE-key-Value"),
									Name:        common.String("EXAMPLE-name-Value")},
								AggregatorKey: common.String("EXAMPLE-aggregatorKey-Value"),
								CreatedBy:     common.String("EXAMPLE-createdBy-Value"),
								CreatedByName: common.String("EXAMPLE-createdByName-Value"),
								InfoFields:    map[string]string{"EXAMPLE_KEY_uv8p5": "EXAMPLE_VALUE_NEp9XVwsp6W1fcf9wqzv"},
								IsFavorite:    common.Bool(false),
								UpdatedBy:     common.String("EXAMPLE-updatedBy-Value")},
							ModelVersion:    common.String("EXAMPLE-modelVersion-Value"),
							Name:            common.String("EXAMPLE-name-Value"),
							ObjectVersion:   common.Int(269),
							ResourceName:    common.String("EXAMPLE-resourceName-Value"),
							Description:     common.String("EXAMPLE-description-Value"),
							ExternalKey:     common.String("EXAMPLE-externalKey-Value"),
							IsHasContainers: common.Bool(false),
							Key:             common.String("EXAMPLE-key-Value")},
						Password:    common.String("EXAMPLE-password-Value"),
						Description: common.String("EXAMPLE-description-Value"),
						IsDefault:   common.Bool(false),
						Metadata: &dataintegration.ObjectMetadata{AggregatorKey: common.String("EXAMPLE-aggregatorKey-Value"),
							CreatedBy:       common.String("EXAMPLE-createdBy-Value"),
							CreatedByName:   common.String("EXAMPLE-createdByName-Value"),
							InfoFields:      map[string]string{"EXAMPLE_KEY_MF7zf": "EXAMPLE_VALUE_wxMGopquyE2pCTdToxGM"},
							RegistryVersion: common.Int(835),
							TimeCreated:     &common.SDKTime{Time: time.Now()},
							TimeUpdated:     &common.SDKTime{Time: time.Now()},
							CountStatistics: &dataintegration.CountStatistic{ObjectTypeCountList: []dataintegration.CountStatisticSummary{dataintegration.CountStatisticSummary{ObjectCount: common.Int64(442),
								ObjectType: dataintegration.CountStatisticSummaryObjectTypeDataAsset}}},
							IdentifierPath: common.String("EXAMPLE-identifierPath-Value"),
							IsFavorite:     common.Bool(false),
							Labels:         []string{"EXAMPLE--Value"},
							UpdatedBy:      common.String("EXAMPLE-updatedBy-Value"),
							UpdatedByName:  common.String("EXAMPLE-updatedByName-Value"),
							Aggregator: &dataintegration.AggregatorSummary{Description: common.String("EXAMPLE-description-Value"),
								Identifier: common.String("EXAMPLE-identifier-Value"),
								Key:        common.String("EXAMPLE-key-Value"),
								Name:       common.String("EXAMPLE-name-Value"),
								Type:       common.String("EXAMPLE-type-Value")}},
						Name:     common.String("EXAMPLE-name-Value"),
						TnsAlias: common.String("EXAMPLE-tnsAlias-Value"),
						TnsNames: []string{"EXAMPLE--Value"},
						Username: common.String("EXAMPLE-username-Value"),
						ParentRef: &dataintegration.ParentReference{Parent: common.String("EXAMPLE-parent-Value"),
							RootDocId: common.String("ocid1.test.oc1..<unique_ID>EXAMPLE-rootDocId-Value")},
						PasswordSecret: &dataintegration.SensitiveAttribute{SecretConfig: dataintegration.OciVaultSecretConfig{SecretId: common.String("ocid1.test.oc1..<unique_ID>EXAMPLE-secretId-Value")},
							Value: common.String("EXAMPLE-value-Value")},
						ConnectionProperties: []dataintegration.ConnectionProperty{dataintegration.ConnectionProperty{Value: common.String("EXAMPLE-value-Value"),
							Name: common.String("EXAMPLE-name-Value")}},
						Identifier:   common.String("EXAMPLE-identifier-Value"),
						ObjectStatus: common.Int(254)},
					Name:        common.String("EXAMPLE-name-Value"),
					DriverClass: common.String("EXAMPLE-driverClass-Value"),
					Key:         common.String("EXAMPLE-key-Value"),
					NativeTypeSystem: &dataintegration.TypeSystem{Identifier: common.String("EXAMPLE-identifier-Value"),
						ModelVersion:  common.String("EXAMPLE-modelVersion-Value"),
						Name:          common.String("EXAMPLE-name-Value"),
						ObjectVersion: common.Int(483),
						ParentRef: &dataintegration.ParentReference{Parent: common.String("EXAMPLE-parent-Value"),
							RootDocId: common.String("ocid1.test.oc1..<unique_ID>EXAMPLE-rootDocId-Value")},
						TypeMappingFrom: map[string]string{"EXAMPLE_KEY_aHNlX": "EXAMPLE_VALUE_EzJrKSLGwQQQE7NG3z4c"},
						TypeMappingTo:   map[string]string{"EXAMPLE_KEY_GnJGY": "EXAMPLE_VALUE_WEzDupNzEqY5TlicH20C"},
						Description:     common.String("EXAMPLE-description-Value"),
						Key:             common.String("EXAMPLE-key-Value"),
						ObjectStatus:    common.Int(262),
						Types: []dataintegration.DataType{dataintegration.DataType{ConfigDefinition: &dataintegration.ConfigDefinition{ModelVersion: common.String("EXAMPLE-modelVersion-Value"),
							Name:         common.String("EXAMPLE-name-Value"),
							ObjectStatus: common.Int(86),
							ParentRef: &dataintegration.ParentReference{Parent: common.String("EXAMPLE-parent-Value"),
								RootDocId: common.String("ocid1.test.oc1..<unique_ID>EXAMPLE-rootDocId-Value")},
							ConfigParameterDefinitions: map[string]dataintegration.ConfigParameterDefinition{"EXAMPLE_KEY_5xmLq": dataintegration.ConfigParameterDefinition{ParameterName: common.String("EXAMPLE-parameterName-Value"),
								ParameterType: dataintegration.JavaType{Description: common.String("EXAMPLE-description-Value"),
									JavaTypeName: common.String("EXAMPLE-javaTypeName-Value"),
									Key:          common.String("EXAMPLE-key-Value"),
									ModelVersion: common.String("EXAMPLE-modelVersion-Value"),
									Name:         common.String("EXAMPLE-name-Value"),
									ObjectStatus: common.Int(796),
									ParentRef: &dataintegration.ParentReference{Parent: common.String("EXAMPLE-parent-Value"),
										RootDocId: common.String("ocid1.test.oc1..<unique_ID>EXAMPLE-rootDocId-Value")}},
								ClassFieldName:    common.String("EXAMPLE-classFieldName-Value"),
								DefaultValue:      &defaultValue,
								Description:       common.String("EXAMPLE-description-Value"),
								IsClassFieldValue: common.Bool(true),
								IsStatic:          common.Bool(true)}},
							IsContained: common.Bool(false),
							Key:         common.String("EXAMPLE-key-Value")},
							DtType:       dataintegration.DataTypeDtTypePrimitive,
							Key:          common.String("EXAMPLE-key-Value"),
							ModelVersion: common.String("EXAMPLE-modelVersion-Value"),
							Name:         common.String("EXAMPLE-name-Value"),
							ObjectStatus: common.Int(583),
							ParentRef: &dataintegration.ParentReference{Parent: common.String("EXAMPLE-parent-Value"),
								RootDocId: common.String("ocid1.test.oc1..<unique_ID>EXAMPLE-rootDocId-Value")},
							Description:    common.String("EXAMPLE-description-Value"),
							TypeSystemName: common.String("EXAMPLE-typeSystemName-Value")}}},
					ServiceNames: []string{"EXAMPLE--Value"}},
				Schema: &dataintegration.Schema{ObjectVersion: common.Int(297),
					ParentRef: &dataintegration.ParentReference{Parent: common.String("EXAMPLE-parent-Value"),
						RootDocId: common.String("ocid1.test.oc1..<unique_ID>EXAMPLE-rootDocId-Value")},
					ResourceName:      common.String("EXAMPLE-resourceName-Value"),
					DefaultConnection: common.String("EXAMPLE-defaultConnection-Value"),
					Description:       common.String("EXAMPLE-description-Value"),
					ExternalKey:       common.String("EXAMPLE-externalKey-Value"),
					Identifier:        common.String("EXAMPLE-identifier-Value"),
					IsHasContainers:   common.Bool(false),
					Metadata: &dataintegration.ObjectMetadata{UpdatedBy: common.String("EXAMPLE-updatedBy-Value"),
						CreatedBy:     common.String("EXAMPLE-createdBy-Value"),
						CreatedByName: common.String("EXAMPLE-createdByName-Value"),
						IsFavorite:    common.Bool(true),
						TimeCreated:   &common.SDKTime{Time: time.Now()},
						TimeUpdated:   &common.SDKTime{Time: time.Now()},
						UpdatedByName: common.String("EXAMPLE-updatedByName-Value"),
						Aggregator: &dataintegration.AggregatorSummary{Description: common.String("EXAMPLE-description-Value"),
							Identifier: common.String("EXAMPLE-identifier-Value"),
							Key:        common.String("EXAMPLE-key-Value"),
							Name:       common.String("EXAMPLE-name-Value"),
							Type:       common.String("EXAMPLE-type-Value")},
						AggregatorKey: common.String("EXAMPLE-aggregatorKey-Value"),
						CountStatistics: &dataintegration.CountStatistic{ObjectTypeCountList: []dataintegration.CountStatisticSummary{dataintegration.CountStatisticSummary{ObjectCount: common.Int64(0),
							ObjectType: dataintegration.CountStatisticSummaryObjectTypeDataFlow}}},
						IdentifierPath:  common.String("EXAMPLE-identifierPath-Value"),
						InfoFields:      map[string]string{"EXAMPLE_KEY_5uRvq": "EXAMPLE_VALUE_K3bvdSnrAWUHFrgvy4OO"},
						Labels:          []string{"EXAMPLE--Value"},
						RegistryVersion: common.Int(551)},
					ModelType:    common.String("EXAMPLE-modelType-Value"),
					ModelVersion: common.String("EXAMPLE-modelVersion-Value"),
					Key:          common.String("EXAMPLE-key-Value"),
					Name:         common.String("EXAMPLE-name-Value"),
					ObjectStatus: common.Int(886)},
				CompartmentId: common.String("ocid1.test.oc1..<unique_ID>EXAMPLE-compartmentId-Value")},
			Description: common.String("EXAMPLE-description-Value"),
			DisplayName: common.String("EXAMPLE-displayName-Value"),
			ResourceConfiguration: &dataintegration.ResourceConfiguration{DriverShape: common.String("EXAMPLE-driverShape-Value"),
				ExecutorShape:  common.String("EXAMPLE-executorShape-Value"),
				SparkVersion:   common.String("EXAMPLE-sparkVersion-Value"),
				TotalExecutors: common.Int(185)}},
		WorkspaceId: common.String("ocid1.test.oc1..<unique_ID>EXAMPLE-workspaceId-Value")}

	// Send the request using the service client
	resp, err := client.UpdateExternalPublication(context.Background(), req)
	helpers.FatalIfError(err)

	// Retrieve value from the response.
	fmt.Println(resp)
}