// 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 ExampleCreateConnectionValidation() {
	// 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.CreateConnectionValidationRequest{CreateConnectionValidationDetails: dataintegration.CreateConnectionValidationDetails{Connection: dataintegration.CreateConnectionFromObjectStorage{PassPhrase: common.String("EXAMPLE-passPhrase-Value"),
		ConnectionProperties: []dataintegration.ConnectionProperty{dataintegration.ConnectionProperty{Name: common.String("EXAMPLE-name-Value"),
			Value: common.String("EXAMPLE-value-Value")}},
		CredentialFileContent: common.String("EXAMPLE-credentialFileContent-Value"),
		Identifier:            common.String("EXAMPLE-identifier-Value"),
		ObjectStatus:          common.Int(67),
		RegistryMetadata: &dataintegration.RegistryMetadata{AggregatorKey: common.String("EXAMPLE-aggregatorKey-Value"),
			IsFavorite:      common.Bool(false),
			Key:             common.String("EXAMPLE-key-Value"),
			Labels:          []string{"EXAMPLE--Value"},
			RegistryVersion: common.Int(771)},
		UserId:       common.String("ocid1.test.oc1..<unique_ID>EXAMPLE-userId-Value"),
		Description:  common.String("EXAMPLE-description-Value"),
		FingerPrint:  common.String("EXAMPLE-fingerPrint-Value"),
		Key:          common.String("EXAMPLE-key-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")}},
		DataAsset: dataintegration.CreateDataAssetFromAtp{WalletPasswordSecret: &dataintegration.SensitiveAttribute{SecretConfig: dataintegration.OciVaultSecretConfig{SecretId: common.String("ocid1.test.oc1..<unique_ID>EXAMPLE-secretId-Value")},
			Value: common.String("EXAMPLE-value-Value")},
			AutonomousDbId: common.String("ocid1.test.oc1..<unique_ID>EXAMPLE-autonomousDbId-Value"),
			DefaultConnection: &dataintegration.CreateConnectionFromAtp{Identifier: common.String("EXAMPLE-identifier-Value"),
				ObjectStatus: common.Int(386),
				PasswordSecret: &dataintegration.SensitiveAttribute{SecretConfig: dataintegration.OciVaultSecretConfig{SecretId: common.String("ocid1.test.oc1..<unique_ID>EXAMPLE-secretId-Value")},
					Value: common.String("EXAMPLE-value-Value")},
				TnsAlias: common.String("EXAMPLE-tnsAlias-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")},
				Password:     common.String("EXAMPLE-password-Value"),
				Description:  common.String("EXAMPLE-description-Value"),
				Key:          common.String("EXAMPLE-key-Value"),
				ModelVersion: common.String("EXAMPLE-modelVersion-Value"),
				Username:     common.String("EXAMPLE-username-Value"),
				ConnectionProperties: []dataintegration.ConnectionProperty{dataintegration.ConnectionProperty{Value: common.String("EXAMPLE-value-Value"),
					Name: common.String("EXAMPLE-name-Value")}},
				RegistryMetadata: &dataintegration.RegistryMetadata{AggregatorKey: common.String("EXAMPLE-aggregatorKey-Value"),
					IsFavorite:      common.Bool(false),
					Key:             common.String("EXAMPLE-key-Value"),
					Labels:          []string{"EXAMPLE--Value"},
					RegistryVersion: common.Int(571)},
				TnsNames: []string{"EXAMPLE--Value"}},
			StagingConnection: dataintegration.ConnectionFromLake{Name: common.String("EXAMPLE-name-Value"),
				ObjectStatus:  common.Int(696),
				ObjectVersion: common.Int(509),
				ConnectionProperties: []dataintegration.ConnectionProperty{dataintegration.ConnectionProperty{Name: common.String("EXAMPLE-name-Value"),
					Value: common.String("EXAMPLE-value-Value")}},
				IsDefault:    common.Bool(true),
				ModelVersion: common.String("EXAMPLE-modelVersion-Value"),
				ParentRef: &dataintegration.ParentReference{Parent: common.String("EXAMPLE-parent-Value"),
					RootDocId: common.String("ocid1.test.oc1..<unique_ID>EXAMPLE-rootDocId-Value")},
				PrimarySchema: &dataintegration.Schema{Key: common.String("EXAMPLE-key-Value"),
					Name:              common.String("EXAMPLE-name-Value"),
					ObjectStatus:      common.Int(598),
					DefaultConnection: common.String("EXAMPLE-defaultConnection-Value"),
					Metadata: &dataintegration.ObjectMetadata{UpdatedByName: common.String("EXAMPLE-updatedByName-Value"),
						CountStatistics: &dataintegration.CountStatistic{ObjectTypeCountList: []dataintegration.CountStatisticSummary{dataintegration.CountStatisticSummary{ObjectCount: common.Int64(391),
							ObjectType: dataintegration.CountStatisticSummaryObjectTypeConnection}}},
						CreatedBy:       common.String("EXAMPLE-createdBy-Value"),
						IdentifierPath:  common.String("EXAMPLE-identifierPath-Value"),
						InfoFields:      map[string]string{"EXAMPLE_KEY_GuYYp": "EXAMPLE_VALUE_bU26sOf0mbC1OGCabvwU"},
						RegistryVersion: common.Int(773),
						TimeCreated:     &common.SDKTime{Time: time.Now()},
						TimeUpdated:     &common.SDKTime{Time: time.Now()},
						UpdatedBy:       common.String("EXAMPLE-updatedBy-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"),
						CreatedByName: common.String("EXAMPLE-createdByName-Value"),
						IsFavorite:    common.Bool(false),
						Labels:        []string{"EXAMPLE--Value"}},
					ModelVersion:  common.String("EXAMPLE-modelVersion-Value"),
					ObjectVersion: common.Int(803),
					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"),
					ExternalKey:     common.String("EXAMPLE-externalKey-Value"),
					Identifier:      common.String("EXAMPLE-identifier-Value"),
					IsHasContainers: common.Bool(true)},
				Description: common.String("EXAMPLE-description-Value"),
				Identifier:  common.String("EXAMPLE-identifier-Value"),
				Key:         common.String("EXAMPLE-key-Value"),
				KeyMap:      map[string]string{"EXAMPLE_KEY_5Glqq": "EXAMPLE_VALUE_onsjqE3IM0YL3eGtbC6c"},
				Metadata: &dataintegration.ObjectMetadata{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"),
					CountStatistics: &dataintegration.CountStatistic{ObjectTypeCountList: []dataintegration.CountStatisticSummary{dataintegration.CountStatisticSummary{ObjectCount: common.Int64(398),
						ObjectType: dataintegration.CountStatisticSummaryObjectTypeDataAsset}}},
					IdentifierPath:  common.String("EXAMPLE-identifierPath-Value"),
					InfoFields:      map[string]string{"EXAMPLE_KEY_qANkA": "EXAMPLE_VALUE_z2IENFwiZKUJq3SzAYOr"},
					UpdatedBy:       common.String("EXAMPLE-updatedBy-Value"),
					UpdatedByName:   common.String("EXAMPLE-updatedByName-Value"),
					CreatedBy:       common.String("EXAMPLE-createdBy-Value"),
					CreatedByName:   common.String("EXAMPLE-createdByName-Value"),
					IsFavorite:      common.Bool(false),
					Labels:          []string{"EXAMPLE--Value"},
					RegistryVersion: common.Int(507),
					TimeCreated:     &common.SDKTime{Time: time.Now()},
					TimeUpdated:     &common.SDKTime{Time: time.Now()}}},
			BucketSchema: &dataintegration.Schema{Description: common.String("EXAMPLE-description-Value"),
				ExternalKey:     common.String("EXAMPLE-externalKey-Value"),
				Identifier:      common.String("EXAMPLE-identifier-Value"),
				Key:             common.String("EXAMPLE-key-Value"),
				ResourceName:    common.String("EXAMPLE-resourceName-Value"),
				IsHasContainers: common.Bool(true),
				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")},
					AggregatorKey: common.String("EXAMPLE-aggregatorKey-Value"),
					CountStatistics: &dataintegration.CountStatistic{ObjectTypeCountList: []dataintegration.CountStatisticSummary{dataintegration.CountStatisticSummary{ObjectCount: common.Int64(437),
						ObjectType: dataintegration.CountStatisticSummaryObjectTypeProject}}},
					CreatedBy:       common.String("EXAMPLE-createdBy-Value"),
					IdentifierPath:  common.String("EXAMPLE-identifierPath-Value"),
					InfoFields:      map[string]string{"EXAMPLE_KEY_JiBFx": "EXAMPLE_VALUE_V1FzYRLVbHkpLDZ5QAG9"},
					IsFavorite:      common.Bool(false),
					RegistryVersion: common.Int(171),
					CreatedByName:   common.String("EXAMPLE-createdByName-Value"),
					Labels:          []string{"EXAMPLE--Value"},
					TimeCreated:     &common.SDKTime{Time: time.Now()},
					TimeUpdated:     &common.SDKTime{Time: time.Now()}},
				ModelVersion:  common.String("EXAMPLE-modelVersion-Value"),
				Name:          common.String("EXAMPLE-name-Value"),
				ObjectStatus:  common.Int(544),
				ObjectVersion: common.Int(779),
				ParentRef: &dataintegration.ParentReference{Parent: common.String("EXAMPLE-parent-Value"),
					RootDocId: common.String("ocid1.test.oc1..<unique_ID>EXAMPLE-rootDocId-Value")},
				DefaultConnection: common.String("EXAMPLE-defaultConnection-Value")},
			CompartmentId: common.String("ocid1.test.oc1..<unique_ID>EXAMPLE-compartmentId-Value"),
			DriverClass:   common.String("EXAMPLE-driverClass-Value"),
			Identifier:    common.String("EXAMPLE-identifier-Value"),
			ModelVersion:  common.String("EXAMPLE-modelVersion-Value"),
			ObjectStatus:  common.Int(975),
			RegionId:      common.String("ocid1.test.oc1..<unique_ID>EXAMPLE-regionId-Value"),
			Description:   common.String("EXAMPLE-description-Value"),
			ExternalKey:   common.String("EXAMPLE-externalKey-Value"),
			Name:          common.String("EXAMPLE-name-Value"),
			RegistryMetadata: &dataintegration.RegistryMetadata{RegistryVersion: common.Int(714),
				AggregatorKey: common.String("EXAMPLE-aggregatorKey-Value"),
				IsFavorite:    common.Bool(false),
				Key:           common.String("EXAMPLE-key-Value"),
				Labels:        []string{"EXAMPLE--Value"}},
			StagingDataAsset: dataintegration.DataAssetFromRestDetails{ObjectStatus: common.Int(81),
				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"),
				ObjectVersion:       common.Int(669),
				Description:         common.String("EXAMPLE-description-Value"),
				ExternalKey:         common.String("EXAMPLE-externalKey-Value"),
				Identifier:          common.String("EXAMPLE-identifier-Value"),
				KeyMap:              map[string]string{"EXAMPLE_KEY_THg9Q": "EXAMPLE_VALUE_LHnK1uQpoFSoVTD52qXW"},
				ManifestFileContent: common.String("EXAMPLE-manifestFileContent-Value"),
				Metadata: &dataintegration.ObjectMetadata{InfoFields: map[string]string{"EXAMPLE_KEY_VQUV2": "EXAMPLE_VALUE_PXRVdJKl7F9FheRP8dEL"},
					Labels:          []string{"EXAMPLE--Value"},
					TimeUpdated:     &common.SDKTime{Time: time.Now()},
					UpdatedByName:   common.String("EXAMPLE-updatedByName-Value"),
					CreatedByName:   common.String("EXAMPLE-createdByName-Value"),
					IdentifierPath:  common.String("EXAMPLE-identifierPath-Value"),
					IsFavorite:      common.Bool(true),
					RegistryVersion: common.Int(385),
					TimeCreated:     &common.SDKTime{Time: time.Now()},
					UpdatedBy:       common.String("EXAMPLE-updatedBy-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"),
					CountStatistics: &dataintegration.CountStatistic{ObjectTypeCountList: []dataintegration.CountStatisticSummary{dataintegration.CountStatisticSummary{ObjectCount: common.Int64(486),
						ObjectType: dataintegration.CountStatisticSummaryObjectTypeDataFlow}}},
					CreatedBy: common.String("EXAMPLE-createdBy-Value")},
				AssetProperties: map[string]string{"EXAMPLE_KEY_8kAf1": "EXAMPLE_VALUE_uXlOB2ssDEHeknKBdh98"},
				BaseUrl:         common.String("EXAMPLE-baseUrl-Value"),
				DefaultConnection: dataintegration.ConnectionFromLakeDetails{ObjectVersion: common.Int(188),
					Identifier:   common.String("EXAMPLE-identifier-Value"),
					IsDefault:    common.Bool(false),
					ModelVersion: common.String("EXAMPLE-modelVersion-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")},
					PrimarySchema: &dataintegration.Schema{ExternalKey: common.String("EXAMPLE-externalKey-Value"),
						Identifier:      common.String("EXAMPLE-identifier-Value"),
						IsHasContainers: common.Bool(true),
						Key:             common.String("EXAMPLE-key-Value"),
						Metadata: &dataintegration.ObjectMetadata{IsFavorite: common.Bool(true),
							RegistryVersion: common.Int(235),
							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")},
							CountStatistics: &dataintegration.CountStatistic{ObjectTypeCountList: []dataintegration.CountStatisticSummary{dataintegration.CountStatisticSummary{ObjectCount: common.Int64(689),
								ObjectType: dataintegration.CountStatisticSummaryObjectTypeUserDefinedFunction}}},
							CreatedBy:      common.String("EXAMPLE-createdBy-Value"),
							IdentifierPath: common.String("EXAMPLE-identifierPath-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"),
							CreatedByName:  common.String("EXAMPLE-createdByName-Value"),
							InfoFields:     map[string]string{"EXAMPLE_KEY_RzLUH": "EXAMPLE_VALUE_6GRP1Oi4vw6JpH7DrDM5"}},
						ModelVersion:      common.String("EXAMPLE-modelVersion-Value"),
						DefaultConnection: common.String("EXAMPLE-defaultConnection-Value"),
						Description:       common.String("EXAMPLE-description-Value"),
						Name:              common.String("EXAMPLE-name-Value"),
						ObjectStatus:      common.Int(143),
						ObjectVersion:     common.Int(512),
						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{Value: common.String("EXAMPLE-value-Value"),
						Name: common.String("EXAMPLE-name-Value")}},
					Description: common.String("EXAMPLE-description-Value"),
					Key:         common.String("EXAMPLE-key-Value"),
					Metadata: &dataintegration.ObjectMetadata{UpdatedBy: common.String("EXAMPLE-updatedBy-Value"),
						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")},
						CreatedBy:     common.String("EXAMPLE-createdBy-Value"),
						CreatedByName: common.String("EXAMPLE-createdByName-Value"),
						InfoFields:    map[string]string{"EXAMPLE_KEY_5sxS0": "EXAMPLE_VALUE_IPy4ralRmj6TdF7mNNLd"},
						IsFavorite:    common.Bool(true),
						Labels:        []string{"EXAMPLE--Value"},
						TimeCreated:   &common.SDKTime{Time: time.Now()},
						TimeUpdated:   &common.SDKTime{Time: time.Now()},
						AggregatorKey: common.String("EXAMPLE-aggregatorKey-Value"),
						CountStatistics: &dataintegration.CountStatistic{ObjectTypeCountList: []dataintegration.CountStatisticSummary{dataintegration.CountStatisticSummary{ObjectCount: common.Int64(95),
							ObjectType: dataintegration.CountStatisticSummaryObjectTypeFolder}}},
						IdentifierPath:  common.String("EXAMPLE-identifierPath-Value"),
						RegistryVersion: common.Int(529)},
					Name: common.String("EXAMPLE-name-Value")},
				ModelVersion: common.String("EXAMPLE-modelVersion-Value"),
				Name:         common.String("EXAMPLE-name-Value"),
				NativeTypeSystem: &dataintegration.TypeSystem{Identifier: common.String("EXAMPLE-identifier-Value"),
					Key:           common.String("EXAMPLE-key-Value"),
					ModelVersion:  common.String("EXAMPLE-modelVersion-Value"),
					Name:          common.String("EXAMPLE-name-Value"),
					ObjectVersion: common.Int(9),
					Types: []dataintegration.DataType{dataintegration.DataType{Description: common.String("EXAMPLE-description-Value"),
						ObjectStatus: common.Int(363),
						ParentRef: &dataintegration.ParentReference{RootDocId: common.String("ocid1.test.oc1..<unique_ID>EXAMPLE-rootDocId-Value"),
							Parent: common.String("EXAMPLE-parent-Value")},
						ConfigDefinition: &dataintegration.ConfigDefinition{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_9xmGL": dataintegration.ConfigParameterDefinition{Description: common.String("EXAMPLE-description-Value"),
								IsClassFieldValue: common.Bool(false),
								IsStatic:          common.Bool(false),
								ParameterName:     common.String("EXAMPLE-parameterName-Value"),
								ParameterType: dataintegration.ArrayType{Name: common.String("EXAMPLE-name-Value"),
									ObjectStatus: common.Int(179),
									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"),
									ElementType:  common.String("EXAMPLE-elementType-Value"),
									Key:          common.String("EXAMPLE-key-Value"),
									ModelVersion: common.String("EXAMPLE-modelVersion-Value")},
								ClassFieldName: common.String("EXAMPLE-classFieldName-Value"),
								DefaultValue:   &defaultValue}},
							IsContained:  common.Bool(false),
							Key:          common.String("EXAMPLE-key-Value"),
							ModelVersion: common.String("EXAMPLE-modelVersion-Value"),
							Name:         common.String("EXAMPLE-name-Value"),
							ObjectStatus: common.Int(569)},
						DtType:         dataintegration.DataTypeDtTypeStructured,
						Key:            common.String("EXAMPLE-key-Value"),
						ModelVersion:   common.String("EXAMPLE-modelVersion-Value"),
						Name:           common.String("EXAMPLE-name-Value"),
						TypeSystemName: common.String("EXAMPLE-typeSystemName-Value")}},
					Description:  common.String("EXAMPLE-description-Value"),
					ObjectStatus: common.Int(573),
					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_dtnLk": "EXAMPLE_VALUE_lJgrrXPHBZv7F78BjGlh"},
					TypeMappingTo:   map[string]string{"EXAMPLE_KEY_Nkiv2": "EXAMPLE_VALUE_jfaMmuR19OskOJOX0vy7"}}},
			WalletSecret: &dataintegration.SensitiveAttribute{SecretConfig: dataintegration.OciVaultSecretConfig{SecretId: common.String("ocid1.test.oc1..<unique_ID>EXAMPLE-secretId-Value")},
				Value: common.String("EXAMPLE-value-Value")},
			AssetProperties:       map[string]string{"EXAMPLE_KEY_00STx": "EXAMPLE_VALUE_WRQaCIy6x1GbMdyKqVmD"},
			CredentialFileContent: common.String("EXAMPLE-credentialFileContent-Value"),
			Key:                   common.String("EXAMPLE-key-Value"),
			ServiceName:           common.String("EXAMPLE-serviceName-Value"),
			TenancyId:             common.String("ocid1.test.oc1..<unique_ID>EXAMPLE-tenancyId-Value")},
		RegistryMetadata: &dataintegration.RegistryMetadata{AggregatorKey: common.String("EXAMPLE-aggregatorKey-Value"),
			IsFavorite:      common.Bool(true),
			Key:             common.String("EXAMPLE-key-Value"),
			Labels:          []string{"EXAMPLE--Value"},
			RegistryVersion: common.Int(817)}},
		OpcRequestId:  common.String("PF5FNXBMT7OADQTZ8L3X<unique_ID>"),
		OpcRetryToken: common.String("EXAMPLE-opcRetryToken-Value"),
		WorkspaceId:   common.String("ocid1.test.oc1..<unique_ID>EXAMPLE-workspaceId-Value")}

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

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