// 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 refValue interface{}
	refValue = "EXAMPLE-refValue-Value"
	var rootObjectValue interface{}
	rootObjectValue = "EXAMPLE-rootObjectValue-Value"
	var objectValue interface{}
	objectValue = "EXAMPLE-objectValue-Value"
	var wrappedType interface{}
	wrappedType = "EXAMPLE-wrappedType-Value"
	var defaultValue interface{}
	defaultValue = "EXAMPLE-defaultValue-Value"
	req := dataintegration.CreateConnectionValidationRequest{CreateConnectionValidationDetails: dataintegration.CreateConnectionValidationDetails{Connection: dataintegration.CreateConnectionFromAtp{ModelVersion: common.String("EXAMPLE-modelVersion-Value"),
		Username: common.String("EXAMPLE-username-Value"),
		Key:      common.String("EXAMPLE-key-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")},
		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(889)},
		ConnectionProperties: []dataintegration.ConnectionProperty{dataintegration.ConnectionProperty{Name: common.String("EXAMPLE-name-Value"),
			Value: common.String("EXAMPLE-value-Value")}},
		Description:  common.String("EXAMPLE-description-Value"),
		Identifier:   common.String("EXAMPLE-identifier-Value"),
		ObjectStatus: common.Int(873),
		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")},
		TnsAlias: common.String("EXAMPLE-tnsAlias-Value"),
		TnsNames: []string{"EXAMPLE--Value"}},
		DataAsset: dataintegration.CreateDataAssetFromAdwc{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_bEqfA": "EXAMPLE_VALUE_7ZaJvVrUhAplavPTVV3v"},
			CompartmentId:   common.String("ocid1.test.oc1..<unique_ID>EXAMPLE-compartmentId-Value"),
			Description:     common.String("EXAMPLE-description-Value"),
			ModelVersion:    common.String("EXAMPLE-modelVersion-Value"),
			ObjectStatus:    common.Int(363),
			StagingConnection: dataintegration.ConnectionFromOraclePeopleSoft{Identifier: common.String("EXAMPLE-identifier-Value"),
				Key: common.String("EXAMPLE-key-Value"),
				Metadata: &dataintegration.ObjectMetadata{TimeUpdated: &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")},
					IdentifierPath:  common.String("EXAMPLE-identifierPath-Value"),
					Labels:          []string{"EXAMPLE--Value"},
					RegistryVersion: common.Int(365),
					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{ObjectType: dataintegration.CountStatisticSummaryObjectTypeProject,
						ObjectCount: common.Int64(625)}}},
					CreatedBy:     common.String("EXAMPLE-createdBy-Value"),
					CreatedByName: common.String("EXAMPLE-createdByName-Value"),
					InfoFields:    map[string]string{"EXAMPLE_KEY_42eov": "EXAMPLE_VALUE_BWJqY3xxNOVbuRav7ezr"},
					IsFavorite:    common.Bool(false),
					TimeCreated:   &common.SDKTime{Time: time.Now()}},
				Name:          common.String("EXAMPLE-name-Value"),
				KeyMap:        map[string]string{"EXAMPLE_KEY_HmLQ7": "EXAMPLE_VALUE_GwrmDaiVId9N3EWTVVHN"},
				ObjectVersion: common.Int(449),
				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"),
				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(169),
							ObjectType: dataintegration.CountStatisticSummaryObjectTypeDataFlow}}},
						CreatedBy:     common.String("EXAMPLE-createdBy-Value"),
						CreatedByName: common.String("EXAMPLE-createdByName-Value"),
						IsFavorite:    common.Bool(true),
						TimeCreated:   &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")},
						IdentifierPath:  common.String("EXAMPLE-identifierPath-Value"),
						InfoFields:      map[string]string{"EXAMPLE_KEY_0ORTI": "EXAMPLE_VALUE_L7OaE62OoKFZKt1qSRA6"},
						Labels:          []string{"EXAMPLE--Value"},
						RegistryVersion: common.Int(646),
						TimeUpdated:     &common.SDKTime{Time: time.Now()}},
					ObjectStatus: common.Int(609),
					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"),
					Name:              common.String("EXAMPLE-name-Value"),
					ObjectVersion:     common.Int(201),
					ResourceName:      common.String("EXAMPLE-resourceName-Value"),
					DefaultConnection: common.String("EXAMPLE-defaultConnection-Value")},
				Username: common.String("EXAMPLE-username-Value"),
				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"),
				ObjectStatus: common.Int(505),
				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")}},
			CredentialFileContent: common.String("EXAMPLE-credentialFileContent-Value"),
			Key:                   common.String("EXAMPLE-key-Value"),
			StagingDataAsset: dataintegration.DataAssetFromAmazonS3{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")},
				ExternalKey: common.String("EXAMPLE-externalKey-Value"),
				NativeTypeSystem: &dataintegration.TypeSystem{Identifier: common.String("EXAMPLE-identifier-Value"),
					ModelVersion:  common.String("EXAMPLE-modelVersion-Value"),
					Name:          common.String("EXAMPLE-name-Value"),
					ObjectStatus:  common.Int(612),
					ObjectVersion: common.Int(208),
					Types: []dataintegration.DataType{dataintegration.DataType{DtType: dataintegration.DataTypeDtTypeStructured,
						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")},
						TypeSystemName: common.String("EXAMPLE-typeSystemName-Value"),
						ConfigDefinition: &dataintegration.ConfigDefinition{ObjectStatus: common.Int(807),
							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_WoNJH": dataintegration.ConfigParameterDefinition{IsStatic: common.Bool(true),
								ParameterName: common.String("EXAMPLE-parameterName-Value"),
								ParameterType: dataintegration.ConfiguredType{Description: common.String("EXAMPLE-description-Value"),
									Name: common.String("EXAMPLE-name-Value"),
									ConfigValues: &dataintegration.ConfigValues{ConfigParamValues: map[string]dataintegration.ConfigParameterValue{"EXAMPLE_KEY_R4mcO": dataintegration.ConfigParameterValue{RefValue: &refValue,
										RootObjectValue: &rootObjectValue,
										StringValue:     common.String("EXAMPLE-stringValue-Value"),
										IntValue:        common.Int(875),
										ObjectValue:     &objectValue,
										ParameterValue:  common.String("EXAMPLE-parameterValue-Value")}},
										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"),
									ModelVersion: common.String("EXAMPLE-modelVersion-Value"),
									ObjectStatus: common.Int(936),
									ParentRef: &dataintegration.ParentReference{Parent: common.String("EXAMPLE-parent-Value"),
										RootDocId: common.String("ocid1.test.oc1..<unique_ID>EXAMPLE-rootDocId-Value")},
									WrappedType: &wrappedType},
								ClassFieldName:    common.String("EXAMPLE-classFieldName-Value"),
								DefaultValue:      &defaultValue,
								Description:       common.String("EXAMPLE-description-Value"),
								IsClassFieldValue: common.Bool(true)}},
							IsContained:  common.Bool(true),
							Key:          common.String("EXAMPLE-key-Value"),
							ModelVersion: common.String("EXAMPLE-modelVersion-Value"),
							Name:         common.String("EXAMPLE-name-Value")},
						Description:  common.String("EXAMPLE-description-Value"),
						ModelVersion: common.String("EXAMPLE-modelVersion-Value"),
						ObjectStatus: common.Int(192)}},
					Key: common.String("EXAMPLE-key-Value"),
					ParentRef: &dataintegration.ParentReference{RootDocId: common.String("ocid1.test.oc1..<unique_ID>EXAMPLE-rootDocId-Value"),
						Parent: common.String("EXAMPLE-parent-Value")},
					TypeMappingFrom: map[string]string{"EXAMPLE_KEY_h8Mgu": "EXAMPLE_VALUE_vVPOT5qlPQyYQXILxPye"},
					TypeMappingTo:   map[string]string{"EXAMPLE_KEY_C4xX9": "EXAMPLE_VALUE_3YGvaNEjK3K4CGFOhfxT"},
					Description:     common.String("EXAMPLE-description-Value")},
				ObjectStatus: common.Int(958),
				Region:       common.String("EXAMPLE-region-Value"),
				Description:  common.String("EXAMPLE-description-Value"),
				DefaultConnection: &dataintegration.ConnectionSummaryFromAmazonS3{Name: common.String("EXAMPLE-name-Value"),
					KeyMap: map[string]string{"EXAMPLE_KEY_tgUTf": "EXAMPLE_VALUE_tegMzYyEGaUtZGDoyprV"},
					ParentRef: &dataintegration.ParentReference{Parent: common.String("EXAMPLE-parent-Value"),
						RootDocId: common.String("ocid1.test.oc1..<unique_ID>EXAMPLE-rootDocId-Value")},
					ObjectVersion: common.Int(499),
					Description:   common.String("EXAMPLE-description-Value"),
					Key:           common.String("EXAMPLE-key-Value"),
					Metadata: &dataintegration.ObjectMetadata{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")},
						InfoFields:      map[string]string{"EXAMPLE_KEY_bQJN1": "EXAMPLE_VALUE_1U1U7NTXAVkEJKnHLpAB"},
						RegistryVersion: common.Int(267),
						TimeCreated:     &common.SDKTime{Time: time.Now()},
						TimeUpdated:     &common.SDKTime{Time: time.Now()},
						UpdatedBy:       common.String("EXAMPLE-updatedBy-Value"),
						AggregatorKey:   common.String("EXAMPLE-aggregatorKey-Value"),
						CountStatistics: &dataintegration.CountStatistic{ObjectTypeCountList: []dataintegration.CountStatisticSummary{dataintegration.CountStatisticSummary{ObjectCount: common.Int64(154),
							ObjectType: dataintegration.CountStatisticSummaryObjectTypeApplication}}},
						CreatedBy:      common.String("EXAMPLE-createdBy-Value"),
						CreatedByName:  common.String("EXAMPLE-createdByName-Value"),
						IdentifierPath: common.String("EXAMPLE-identifierPath-Value"),
						IsFavorite:     common.Bool(false),
						Labels:         []string{"EXAMPLE--Value"},
						UpdatedByName:  common.String("EXAMPLE-updatedByName-Value")},
					ObjectStatus: common.Int(607),
					PrimarySchema: &dataintegration.Schema{Metadata: &dataintegration.ObjectMetadata{CountStatistics: &dataintegration.CountStatistic{ObjectTypeCountList: []dataintegration.CountStatisticSummary{dataintegration.CountStatisticSummary{ObjectCount: common.Int64(715),
						ObjectType: dataintegration.CountStatisticSummaryObjectTypeConnection}}},
						CreatedByName:   common.String("EXAMPLE-createdByName-Value"),
						IdentifierPath:  common.String("EXAMPLE-identifierPath-Value"),
						InfoFields:      map[string]string{"EXAMPLE_KEY_9jJKx": "EXAMPLE_VALUE_2d8nO1kXtE2R4x5iFyOW"},
						RegistryVersion: common.Int(640),
						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")},
						CreatedBy:     common.String("EXAMPLE-createdBy-Value"),
						IsFavorite:    common.Bool(false),
						Labels:        []string{"EXAMPLE--Value"},
						TimeCreated:   &common.SDKTime{Time: time.Now()},
						UpdatedByName: common.String("EXAMPLE-updatedByName-Value"),
						AggregatorKey: common.String("EXAMPLE-aggregatorKey-Value")},
						Name:          common.String("EXAMPLE-name-Value"),
						ObjectVersion: common.Int(605),
						ParentRef: &dataintegration.ParentReference{RootDocId: common.String("ocid1.test.oc1..<unique_ID>EXAMPLE-rootDocId-Value"),
							Parent: common.String("EXAMPLE-parent-Value")},
						ResourceName:      common.String("EXAMPLE-resourceName-Value"),
						DefaultConnection: common.String("EXAMPLE-defaultConnection-Value"),
						ExternalKey:       common.String("EXAMPLE-externalKey-Value"),
						Identifier:        common.String("EXAMPLE-identifier-Value"),
						IsHasContainers:   common.Bool(false),
						Key:               common.String("EXAMPLE-key-Value"),
						ModelVersion:      common.String("EXAMPLE-modelVersion-Value"),
						ObjectStatus:      common.Int(894),
						Description:       common.String("EXAMPLE-description-Value")},
					AccessKey: &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"),
					ModelVersion: common.String("EXAMPLE-modelVersion-Value"),
					SecretKey: &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{Name: common.String("EXAMPLE-name-Value"),
						Value: common.String("EXAMPLE-value-Value")}},
					IsDefault: common.Bool(true)},
				Identifier:      common.String("EXAMPLE-identifier-Value"),
				KeyMap:          map[string]string{"EXAMPLE_KEY_n8DRy": "EXAMPLE_VALUE_J4Rh4Vy3AvzIRIJUiBuS"},
				ModelVersion:    common.String("EXAMPLE-modelVersion-Value"),
				ObjectVersion:   common.Int(724),
				AssetProperties: map[string]string{"EXAMPLE_KEY_KPgGv": "EXAMPLE_VALUE_iyxJ24qdaeUbuZpajUSY"},
				Key:             common.String("EXAMPLE-key-Value"),
				Metadata: &dataintegration.ObjectMetadata{CreatedBy: common.String("EXAMPLE-createdBy-Value"),
					InfoFields:      map[string]string{"EXAMPLE_KEY_KI1Fk": "EXAMPLE_VALUE_Q4k5xwNIBdncyTMXBaAX"},
					IsFavorite:      common.Bool(true),
					TimeCreated:     &common.SDKTime{Time: time.Now()},
					UpdatedByName:   common.String("EXAMPLE-updatedByName-Value"),
					CreatedByName:   common.String("EXAMPLE-createdByName-Value"),
					IdentifierPath:  common.String("EXAMPLE-identifierPath-Value"),
					Labels:          []string{"EXAMPLE--Value"},
					RegistryVersion: common.Int(827),
					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")},
					AggregatorKey: common.String("EXAMPLE-aggregatorKey-Value"),
					CountStatistics: &dataintegration.CountStatistic{ObjectTypeCountList: []dataintegration.CountStatisticSummary{dataintegration.CountStatisticSummary{ObjectCount: common.Int64(406),
						ObjectType: dataintegration.CountStatisticSummaryObjectTypeFolder}}}}},
			TenancyId:   common.String("ocid1.test.oc1..<unique_ID>EXAMPLE-tenancyId-Value"),
			DriverClass: common.String("EXAMPLE-driverClass-Value"),
			ExternalKey: common.String("EXAMPLE-externalKey-Value"),
			Identifier:  common.String("EXAMPLE-identifier-Value"),
			RegionId:    common.String("ocid1.test.oc1..<unique_ID>EXAMPLE-regionId-Value"),
			RegistryMetadata: &dataintegration.RegistryMetadata{IsFavorite: common.Bool(false),
				Key:             common.String("EXAMPLE-key-Value"),
				Labels:          []string{"EXAMPLE--Value"},
				RegistryVersion: common.Int(936),
				AggregatorKey:   common.String("EXAMPLE-aggregatorKey-Value")},
			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"),
			BucketSchema: &dataintegration.Schema{IsHasContainers: common.Bool(false),
				Key: common.String("EXAMPLE-key-Value"),
				Metadata: &dataintegration.ObjectMetadata{CreatedByName: common.String("EXAMPLE-createdByName-Value"),
					IdentifierPath: common.String("EXAMPLE-identifierPath-Value"),
					InfoFields:     map[string]string{"EXAMPLE_KEY_O6qKp": "EXAMPLE_VALUE_AwIoI40iKJF0NNRsOt20"},
					TimeUpdated:    &common.SDKTime{Time: time.Now()},
					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(782),
						ObjectType: dataintegration.CountStatisticSummaryObjectTypeTask}}},
					CreatedBy:       common.String("EXAMPLE-createdBy-Value"),
					IsFavorite:      common.Bool(true),
					Labels:          []string{"EXAMPLE--Value"},
					RegistryVersion: common.Int(155),
					TimeCreated:     &common.SDKTime{Time: time.Now()}},
				ModelVersion:  common.String("EXAMPLE-modelVersion-Value"),
				ObjectStatus:  common.Int(516),
				Identifier:    common.String("EXAMPLE-identifier-Value"),
				Name:          common.String("EXAMPLE-name-Value"),
				ObjectVersion: common.Int(867),
				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")},
			DefaultConnection: &dataintegration.CreateConnectionFromAdwc{ModelVersion: common.String("EXAMPLE-modelVersion-Value"),
				Name:         common.String("EXAMPLE-name-Value"),
				ObjectStatus: common.Int(979),
				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")},
				RegistryMetadata: &dataintegration.RegistryMetadata{RegistryVersion: common.Int(683),
					AggregatorKey: common.String("EXAMPLE-aggregatorKey-Value"),
					IsFavorite:    common.Bool(false),
					Key:           common.String("EXAMPLE-key-Value"),
					Labels:        []string{"EXAMPLE--Value"}},
				Key: common.String("EXAMPLE-key-Value"),
				ParentRef: &dataintegration.ParentReference{Parent: common.String("EXAMPLE-parent-Value"),
					RootDocId: common.String("ocid1.test.oc1..<unique_ID>EXAMPLE-rootDocId-Value")},
				Username:    common.String("EXAMPLE-username-Value"),
				Description: common.String("EXAMPLE-description-Value"),
				TnsNames:    []string{"EXAMPLE--Value"},
				ConnectionProperties: []dataintegration.ConnectionProperty{dataintegration.ConnectionProperty{Name: common.String("EXAMPLE-name-Value"),
					Value: common.String("EXAMPLE-value-Value")}},
				Identifier: common.String("EXAMPLE-identifier-Value"),
				TnsAlias:   common.String("EXAMPLE-tnsAlias-Value")},
			Name:        common.String("EXAMPLE-name-Value"),
			ServiceName: common.String("EXAMPLE-serviceName-Value")},
		RegistryMetadata: &dataintegration.RegistryMetadata{Labels: []string{"EXAMPLE--Value"},
			RegistryVersion: common.Int(386),
			AggregatorKey:   common.String("EXAMPLE-aggregatorKey-Value"),
			IsFavorite:      common.Bool(false),
			Key:             common.String("EXAMPLE-key-Value")}},
		OpcRequestId:  common.String("Y5O3EKNKMQGABKIWUEDV<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)
}