// 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 ExampleCreateExternalPublication() {
	// 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"
	var objectValue interface{}
	objectValue = "EXAMPLE-objectValue-Value"
	var refValue interface{}
	refValue = "EXAMPLE-refValue-Value"
	var rootObjectValue interface{}
	rootObjectValue = "EXAMPLE-rootObjectValue-Value"
	var scope interface{}
	scope = "EXAMPLE-scope-Value"
	req := dataintegration.CreateExternalPublicationRequest{TaskKey: common.String("EXAMPLE-taskKey-Value"),
		WorkspaceId: common.String("ocid1.test.oc1..<unique_ID>EXAMPLE-workspaceId-Value"),
		CreateExternalPublicationDetails: dataintegration.CreateExternalPublicationDetails{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{CompartmentId: common.String("ocid1.test.oc1..<unique_ID>EXAMPLE-compartmentId-Value"),
				Connection: dataintegration.ConnectionFromOracleEbs{ObjectStatus: common.Int(933),
					Identifier: common.String("EXAMPLE-identifier-Value"),
					KeyMap:     map[string]string{"EXAMPLE_KEY_ofpDk": "EXAMPLE_VALUE_t9vaCqeCx6iCVuAHglkr"},
					Metadata: &dataintegration.ObjectMetadata{CreatedByName: common.String("EXAMPLE-createdByName-Value"),
						IsFavorite:      common.Bool(false),
						RegistryVersion: common.Int(368),
						TimeCreated:     &common.SDKTime{Time: time.Now()},
						AggregatorKey:   common.String("EXAMPLE-aggregatorKey-Value"),
						CountStatistics: &dataintegration.CountStatistic{ObjectTypeCountList: []dataintegration.CountStatisticSummary{dataintegration.CountStatisticSummary{ObjectType: dataintegration.CountStatisticSummaryObjectTypeTask,
							ObjectCount: common.Int64(703)}}},
						IdentifierPath: common.String("EXAMPLE-identifierPath-Value"),
						InfoFields:     map[string]string{"EXAMPLE_KEY_inUbI": "EXAMPLE_VALUE_L5j01FYamFc4luSAGFT2"},
						Labels:         []string{"EXAMPLE--Value"},
						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")},
						CreatedBy: common.String("EXAMPLE-createdBy-Value")},
					ConnectionProperties: []dataintegration.ConnectionProperty{dataintegration.ConnectionProperty{Value: common.String("EXAMPLE-value-Value"),
						Name: common.String("EXAMPLE-name-Value")}},
					Key:           common.String("EXAMPLE-key-Value"),
					ModelVersion:  common.String("EXAMPLE-modelVersion-Value"),
					ObjectVersion: common.Int(602),
					PasswordSecret: &dataintegration.SensitiveAttribute{SecretConfig: dataintegration.OciVaultSecretConfig{SecretId: common.String("ocid1.test.oc1..<unique_ID>EXAMPLE-secretId-Value")},
						Value: common.String("EXAMPLE-value-Value")},
					Username: common.String("EXAMPLE-username-Value"),
					Name:     common.String("EXAMPLE-name-Value"),
					Password: common.String("EXAMPLE-password-Value"),
					PrimarySchema: &dataintegration.Schema{ModelVersion: common.String("EXAMPLE-modelVersion-Value"),
						Name:          common.String("EXAMPLE-name-Value"),
						ObjectVersion: common.Int(966),
						ExternalKey:   common.String("EXAMPLE-externalKey-Value"),
						Key:           common.String("EXAMPLE-key-Value"),
						Metadata: &dataintegration.ObjectMetadata{IsFavorite: common.Bool(true),
							RegistryVersion: common.Int(721),
							UpdatedByName:   common.String("EXAMPLE-updatedByName-Value"),
							AggregatorKey:   common.String("EXAMPLE-aggregatorKey-Value"),
							CreatedBy:       common.String("EXAMPLE-createdBy-Value"),
							IdentifierPath:  common.String("EXAMPLE-identifierPath-Value"),
							InfoFields:      map[string]string{"EXAMPLE_KEY_nw0vY": "EXAMPLE_VALUE_DKS5L0LuW3eyfLCFaeBe"},
							Labels:          []string{"EXAMPLE--Value"},
							TimeCreated:     &common.SDKTime{Time: time.Now()},
							TimeUpdated:     &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.CountStatisticSummaryObjectTypeConnection,
								ObjectCount: common.Int64(284)}}},
							CreatedByName: common.String("EXAMPLE-createdByName-Value")},
						ObjectStatus: common.Int(529),
						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"),
						Identifier:        common.String("EXAMPLE-identifier-Value"),
						IsHasContainers:   common.Bool(false)},
					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"),
					IsDefault:   common.Bool(false)},
				DataAsset: dataintegration.DataAssetFromLakeDetails{Identifier: common.String("EXAMPLE-identifier-Value"),
					KeyMap:          map[string]string{"EXAMPLE_KEY_f21Zs": "EXAMPLE_VALUE_82R4HhC7aNsdkLcQN5Bi"},
					AssetProperties: map[string]string{"EXAMPLE_KEY_2kEzQ": "EXAMPLE_VALUE_gLJOkmZa7u9HWgswPRC8"},
					Description:     common.String("EXAMPLE-description-Value"),
					LakeId:          common.String("ocid1.test.oc1..<unique_ID>EXAMPLE-lakeId-Value"),
					ModelVersion:    common.String("EXAMPLE-modelVersion-Value"),
					NativeTypeSystem: &dataintegration.TypeSystem{ObjectVersion: common.Int(293),
						ParentRef: &dataintegration.ParentReference{Parent: common.String("EXAMPLE-parent-Value"),
							RootDocId: common.String("ocid1.test.oc1..<unique_ID>EXAMPLE-rootDocId-Value")},
						TypeMappingTo:   map[string]string{"EXAMPLE_KEY_SLJ2X": "EXAMPLE_VALUE_ZKRQsBfhd059hDf3hPID"},
						Description:     common.String("EXAMPLE-description-Value"),
						Identifier:      common.String("EXAMPLE-identifier-Value"),
						Name:            common.String("EXAMPLE-name-Value"),
						TypeMappingFrom: map[string]string{"EXAMPLE_KEY_hNia4": "EXAMPLE_VALUE_V1pfL1G3pgvkzEwxqbAD"},
						Types: []dataintegration.DataType{dataintegration.DataType{ModelVersion: common.String("EXAMPLE-modelVersion-Value"),
							Name: common.String("EXAMPLE-name-Value"),
							ParentRef: &dataintegration.ParentReference{RootDocId: common.String("ocid1.test.oc1..<unique_ID>EXAMPLE-rootDocId-Value"),
								Parent: common.String("EXAMPLE-parent-Value")},
							ConfigDefinition: &dataintegration.ConfigDefinition{ModelVersion: common.String("EXAMPLE-modelVersion-Value"),
								Name:         common.String("EXAMPLE-name-Value"),
								ObjectStatus: common.Int(3),
								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_SHqhg": dataintegration.ConfigParameterDefinition{ClassFieldName: common.String("EXAMPLE-classFieldName-Value"),
									DefaultValue:      &defaultValue,
									Description:       common.String("EXAMPLE-description-Value"),
									IsClassFieldValue: common.Bool(false),
									IsStatic:          common.Bool(false),
									ParameterName:     common.String("EXAMPLE-parameterName-Value"),
									ParameterType: dataintegration.DynamicType{ModelVersion: common.String("EXAMPLE-modelVersion-Value"),
										Name:         common.String("EXAMPLE-name-Value"),
										ObjectStatus: common.Int(804),
										ParentRef: &dataintegration.ParentReference{Parent: common.String("EXAMPLE-parent-Value"),
											RootDocId: common.String("ocid1.test.oc1..<unique_ID>EXAMPLE-rootDocId-Value")},
										TypeHandler: dataintegration.RuleTypeConfig{ConfigValues: &dataintegration.ConfigValues{ParentRef: &dataintegration.ParentReference{Parent: common.String("EXAMPLE-parent-Value"),
											RootDocId: common.String("ocid1.test.oc1..<unique_ID>EXAMPLE-rootDocId-Value")},
											ConfigParamValues: map[string]dataintegration.ConfigParameterValue{"EXAMPLE_KEY_ubjTQ": dataintegration.ConfigParameterValue{IntValue: common.Int(315),
												ObjectValue:     &objectValue,
												ParameterValue:  common.String("EXAMPLE-parameterValue-Value"),
												RefValue:        &refValue,
												RootObjectValue: &rootObjectValue,
												StringValue:     common.String("EXAMPLE-stringValue-Value")}}},
											IsOrderByRule: common.Bool(true),
											ObjectStatus:  common.Int(515),
											ParentRef: &dataintegration.ParentReference{RootDocId: common.String("ocid1.test.oc1..<unique_ID>EXAMPLE-rootDocId-Value"),
												Parent: common.String("EXAMPLE-parent-Value")},
											Scope:        &scope,
											Key:          common.String("EXAMPLE-key-Value"),
											ModelVersion: common.String("EXAMPLE-modelVersion-Value"),
											ProjectionRules: []dataintegration.ProjectionRule{dataintegration.NameListRule{ConfigValues: &dataintegration.ConfigValues{ConfigParamValues: map[string]dataintegration.ConfigParameterValue{"EXAMPLE_KEY_baX2C": dataintegration.ConfigParameterValue{IntValue: common.Int(218),
												ObjectValue:     &objectValue,
												ParameterValue:  common.String("EXAMPLE-parameterValue-Value"),
												RefValue:        &refValue,
												RootObjectValue: &rootObjectValue,
												StringValue:     common.String("EXAMPLE-stringValue-Value")}},
												ParentRef: &dataintegration.ParentReference{Parent: common.String("EXAMPLE-parent-Value"),
													RootDocId: common.String("ocid1.test.oc1..<unique_ID>EXAMPLE-rootDocId-Value")}},
												ParentRef: &dataintegration.ParentReference{Parent: common.String("EXAMPLE-parent-Value"),
													RootDocId: common.String("ocid1.test.oc1..<unique_ID>EXAMPLE-rootDocId-Value")},
												RuleType:                    dataintegration.NameListRuleRuleTypeInclude,
												IsSkipRemainingRulesOnMatch: common.Bool(true),
												MatchingStrategy:            dataintegration.NameListRuleMatchingStrategyTagsOnly,
												Scope:                       &scope,
												Description:                 common.String("EXAMPLE-description-Value"),
												IsJavaRegexSyntax:           common.Bool(true),
												Key:                         common.String("EXAMPLE-key-Value"),
												ModelVersion:                common.String("EXAMPLE-modelVersion-Value"),
												ObjectStatus:                common.Int(173),
												IsCascade:                   common.Bool(false),
												IsCaseSensitive:             common.Bool(true),
												Names:                       []string{"EXAMPLE--Value"}}},
											ScopeReference: &dataintegration.ScopeReference{RefObjectName: common.String("EXAMPLE-refObjectName-Value"),
												ReferenceObject: common.String("EXAMPLE-referenceObject-Value"),
												ReferenceType:   dataintegration.ScopeReferenceReferenceTypeBoundEntityShape}},
										Description: common.String("EXAMPLE-description-Value"),
										Key:         common.String("EXAMPLE-key-Value")}}},
								IsContained: common.Bool(false),
								Key:         common.String("EXAMPLE-key-Value")},
							Description:    common.String("EXAMPLE-description-Value"),
							Key:            common.String("EXAMPLE-key-Value"),
							ObjectStatus:   common.Int(899),
							TypeSystemName: common.String("EXAMPLE-typeSystemName-Value"),
							DtType:         dataintegration.DataTypeDtTypePrimitive}},
						Key:          common.String("EXAMPLE-key-Value"),
						ModelVersion: common.String("EXAMPLE-modelVersion-Value"),
						ObjectStatus: common.Int(797)},
					ObjectStatus: common.Int(265),
					ParentRef: &dataintegration.ParentReference{Parent: common.String("EXAMPLE-parent-Value"),
						RootDocId: common.String("ocid1.test.oc1..<unique_ID>EXAMPLE-rootDocId-Value")},
					Key:               common.String("EXAMPLE-key-Value"),
					MetastoreId:       common.String("ocid1.test.oc1..<unique_ID>EXAMPLE-metastoreId-Value"),
					ObjectVersion:     common.Int(774),
					LakeProxyEndpoint: common.String("EXAMPLE-lakeProxyEndpoint-Value"),
					Metadata: &dataintegration.ObjectMetadata{IdentifierPath: common.String("EXAMPLE-identifierPath-Value"),
						InfoFields:    map[string]string{"EXAMPLE_KEY_UgN2b": "EXAMPLE_VALUE_UPbBYlNsYuapqJ8lTqoo"},
						IsFavorite:    common.Bool(false),
						TimeCreated:   &common.SDKTime{Time: time.Now()},
						UpdatedByName: common.String("EXAMPLE-updatedByName-Value"),
						Aggregator: &dataintegration.AggregatorSummary{Key: common.String("EXAMPLE-key-Value"),
							Name:        common.String("EXAMPLE-name-Value"),
							Type:        common.String("EXAMPLE-type-Value"),
							Description: common.String("EXAMPLE-description-Value"),
							Identifier:  common.String("EXAMPLE-identifier-Value")},
						AggregatorKey:   common.String("EXAMPLE-aggregatorKey-Value"),
						Labels:          []string{"EXAMPLE--Value"},
						RegistryVersion: common.Int(397),
						TimeUpdated:     &common.SDKTime{Time: time.Now()},
						UpdatedBy:       common.String("EXAMPLE-updatedBy-Value"),
						CountStatistics: &dataintegration.CountStatistic{ObjectTypeCountList: []dataintegration.CountStatisticSummary{dataintegration.CountStatisticSummary{ObjectCount: common.Int64(596),
							ObjectType: dataintegration.CountStatisticSummaryObjectTypeFolder}}},
						CreatedBy:     common.String("EXAMPLE-createdBy-Value"),
						CreatedByName: common.String("EXAMPLE-createdByName-Value")},
					Name: common.String("EXAMPLE-name-Value"),
					DefaultConnection: &dataintegration.ConnectionFromLakeDetails{ModelVersion: common.String("EXAMPLE-modelVersion-Value"),
						Name: common.String("EXAMPLE-name-Value"),
						PrimarySchema: &dataintegration.Schema{DefaultConnection: common.String("EXAMPLE-defaultConnection-Value"),
							Identifier:      common.String("EXAMPLE-identifier-Value"),
							IsHasContainers: common.Bool(true),
							Key:             common.String("EXAMPLE-key-Value"),
							Metadata: &dataintegration.ObjectMetadata{IdentifierPath: common.String("EXAMPLE-identifierPath-Value"),
								InfoFields:  map[string]string{"EXAMPLE_KEY_6UevH": "EXAMPLE_VALUE_JH80eOlpkuO92EKYFRYp"},
								IsFavorite:  common.Bool(false),
								Labels:      []string{"EXAMPLE--Value"},
								TimeCreated: &common.SDKTime{Time: time.Now()},
								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"),
								RegistryVersion: common.Int(142),
								TimeUpdated:     &common.SDKTime{Time: time.Now()},
								UpdatedBy:       common.String("EXAMPLE-updatedBy-Value"),
								UpdatedByName:   common.String("EXAMPLE-updatedByName-Value"),
								CountStatistics: &dataintegration.CountStatistic{ObjectTypeCountList: []dataintegration.CountStatisticSummary{dataintegration.CountStatisticSummary{ObjectCount: common.Int64(894),
									ObjectType: dataintegration.CountStatisticSummaryObjectTypeDataFlow}}},
								CreatedBy:     common.String("EXAMPLE-createdBy-Value"),
								CreatedByName: common.String("EXAMPLE-createdByName-Value")},
							ModelVersion:  common.String("EXAMPLE-modelVersion-Value"),
							ObjectStatus:  common.Int(541),
							Description:   common.String("EXAMPLE-description-Value"),
							ExternalKey:   common.String("EXAMPLE-externalKey-Value"),
							Name:          common.String("EXAMPLE-name-Value"),
							ObjectVersion: common.Int(373),
							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")},
						ConnectionProperties: []dataintegration.ConnectionProperty{dataintegration.ConnectionProperty{Name: common.String("EXAMPLE-name-Value"),
							Value: common.String("EXAMPLE-value-Value")}},
						Identifier: common.String("EXAMPLE-identifier-Value"),
						Metadata: &dataintegration.ObjectMetadata{RegistryVersion: common.Int(473),
							TimeUpdated: &common.SDKTime{Time: time.Now()},
							Aggregator: &dataintegration.AggregatorSummary{Key: common.String("EXAMPLE-key-Value"),
								Name:        common.String("EXAMPLE-name-Value"),
								Type:        common.String("EXAMPLE-type-Value"),
								Description: common.String("EXAMPLE-description-Value"),
								Identifier:  common.String("EXAMPLE-identifier-Value")},
							CreatedBy:      common.String("EXAMPLE-createdBy-Value"),
							IdentifierPath: common.String("EXAMPLE-identifierPath-Value"),
							IsFavorite:     common.Bool(true),
							Labels:         []string{"EXAMPLE--Value"},
							TimeCreated:    &common.SDKTime{Time: time.Now()},
							UpdatedBy:      common.String("EXAMPLE-updatedBy-Value"),
							UpdatedByName:  common.String("EXAMPLE-updatedByName-Value"),
							AggregatorKey:  common.String("EXAMPLE-aggregatorKey-Value"),
							CountStatistics: &dataintegration.CountStatistic{ObjectTypeCountList: []dataintegration.CountStatisticSummary{dataintegration.CountStatisticSummary{ObjectCount: common.Int64(315),
								ObjectType: dataintegration.CountStatisticSummaryObjectTypeProject}}},
							CreatedByName: common.String("EXAMPLE-createdByName-Value"),
							InfoFields:    map[string]string{"EXAMPLE_KEY_C5T42": "EXAMPLE_VALUE_RPc0WasrXXQSa4nSKoK4"}},
						ObjectStatus:  common.Int(319),
						ObjectVersion: common.Int(95),
						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"),
						IsDefault:   common.Bool(false),
						Key:         common.String("EXAMPLE-key-Value")},
					ExternalKey: common.String("EXAMPLE-externalKey-Value")},
				Schema: &dataintegration.Schema{Identifier: common.String("EXAMPLE-identifier-Value"),
					IsHasContainers: common.Bool(false),
					Metadata: &dataintegration.ObjectMetadata{IdentifierPath: common.String("EXAMPLE-identifierPath-Value"),
						InfoFields:      map[string]string{"EXAMPLE_KEY_LgPiN": "EXAMPLE_VALUE_ylFXfJd9pd7HEJCaIr8e"},
						IsFavorite:      common.Bool(false),
						RegistryVersion: common.Int(923),
						TimeCreated:     &common.SDKTime{Time: time.Now()},
						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"),
						Labels:        []string{"EXAMPLE--Value"},
						TimeUpdated:   &common.SDKTime{Time: time.Now()},
						UpdatedBy:     common.String("EXAMPLE-updatedBy-Value"),
						UpdatedByName: common.String("EXAMPLE-updatedByName-Value"),
						AggregatorKey: common.String("EXAMPLE-aggregatorKey-Value"),
						CountStatistics: &dataintegration.CountStatistic{ObjectTypeCountList: []dataintegration.CountStatisticSummary{dataintegration.CountStatisticSummary{ObjectCount: common.Int64(543),
							ObjectType: dataintegration.CountStatisticSummaryObjectTypeFunctionLibrary}}},
						CreatedByName: common.String("EXAMPLE-createdByName-Value")},
					ObjectStatus:  common.Int(891),
					ObjectVersion: common.Int(71),
					Key:           common.String("EXAMPLE-key-Value"),
					ModelType:     common.String("EXAMPLE-modelType-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")}},
			Description: common.String("EXAMPLE-description-Value"),
			DisplayName: common.String("EXAMPLE-displayName-Value"),
			ResourceConfiguration: &dataintegration.ResourceConfiguration{ExecutorShape: common.String("EXAMPLE-executorShape-Value"),
				SparkVersion:   common.String("EXAMPLE-sparkVersion-Value"),
				TotalExecutors: common.Int(888),
				DriverShape:    common.String("EXAMPLE-driverShape-Value")}},
		OpcRequestId:  common.String("UAADKYCVIFRGQ8UEOY3I<unique_ID>"),
		OpcRetryToken: common.String("EXAMPLE-opcRetryToken-Value")}

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

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