// 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{OpcRequestId: common.String("IAS8YORKPFROJSG9VJCA<unique_ID>"),
		OpcRetryToken: common.String("EXAMPLE-opcRetryToken-Value"),
		WorkspaceId:   common.String("ocid1.test.oc1..<unique_ID>EXAMPLE-workspaceId-Value"),
		CreateConnectionValidationDetails: dataintegration.CreateConnectionValidationDetails{Connection: dataintegration.CreateConnectionFromOracleEbs{Key: common.String("EXAMPLE-key-Value"),
			ObjectStatus: common.Int(920),
			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")},
			Username:     common.String("EXAMPLE-username-Value"),
			Description:  common.String("EXAMPLE-description-Value"),
			Identifier:   common.String("EXAMPLE-identifier-Value"),
			ModelVersion: common.String("EXAMPLE-modelVersion-Value"),
			Name:         common.String("EXAMPLE-name-Value"),
			Password:     common.String("EXAMPLE-password-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(821)},
			ConnectionProperties: []dataintegration.ConnectionProperty{dataintegration.ConnectionProperty{Name: common.String("EXAMPLE-name-Value"),
				Value: common.String("EXAMPLE-value-Value")}}},
			DataAsset: dataintegration.CreateDataAssetFromAtp{BucketSchema: &dataintegration.Schema{ModelVersion: common.String("EXAMPLE-modelVersion-Value"),
				Name:          common.String("EXAMPLE-name-Value"),
				ObjectVersion: common.Int(142),
				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"),
				Description:       common.String("EXAMPLE-description-Value"),
				Key:               common.String("EXAMPLE-key-Value"),
				Metadata: &dataintegration.ObjectMetadata{CountStatistics: &dataintegration.CountStatistic{ObjectTypeCountList: []dataintegration.CountStatisticSummary{dataintegration.CountStatisticSummary{ObjectCount: common.Int64(378),
					ObjectType: dataintegration.CountStatisticSummaryObjectTypeDataAsset}}},
					CreatedBy:       common.String("EXAMPLE-createdBy-Value"),
					CreatedByName:   common.String("EXAMPLE-createdByName-Value"),
					IdentifierPath:  common.String("EXAMPLE-identifierPath-Value"),
					InfoFields:      map[string]string{"EXAMPLE_KEY_IBj7o": "EXAMPLE_VALUE_BZD0pAPd1SJGSVtDNPHk"},
					IsFavorite:      common.Bool(true),
					TimeUpdated:     &common.SDKTime{Time: time.Now()},
					AggregatorKey:   common.String("EXAMPLE-aggregatorKey-Value"),
					Labels:          []string{"EXAMPLE--Value"},
					RegistryVersion: common.Int(628),
					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")}},
				ObjectStatus:    common.Int(870),
				ResourceName:    common.String("EXAMPLE-resourceName-Value"),
				ExternalKey:     common.String("EXAMPLE-externalKey-Value"),
				Identifier:      common.String("EXAMPLE-identifier-Value"),
				IsHasContainers: common.Bool(false)},
				CompartmentId:         common.String("ocid1.test.oc1..<unique_ID>EXAMPLE-compartmentId-Value"),
				CredentialFileContent: common.String("EXAMPLE-credentialFileContent-Value"),
				DefaultConnection: &dataintegration.CreateConnectionFromAtp{ConnectionProperties: []dataintegration.ConnectionProperty{dataintegration.ConnectionProperty{Name: common.String("EXAMPLE-name-Value"),
					Value: common.String("EXAMPLE-value-Value")}},
					TnsNames:     []string{"EXAMPLE--Value"},
					Identifier:   common.String("EXAMPLE-identifier-Value"),
					Key:          common.String("EXAMPLE-key-Value"),
					ModelVersion: common.String("EXAMPLE-modelVersion-Value"),
					Name:         common.String("EXAMPLE-name-Value"),
					ObjectStatus: common.Int(53),
					Password:     common.String("EXAMPLE-password-Value"),
					RegistryMetadata: &dataintegration.RegistryMetadata{RegistryVersion: common.Int(296),
						AggregatorKey: common.String("EXAMPLE-aggregatorKey-Value"),
						IsFavorite:    common.Bool(true),
						Key:           common.String("EXAMPLE-key-Value"),
						Labels:        []string{"EXAMPLE--Value"}},
					Description: common.String("EXAMPLE-description-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")},
					TnsAlias: common.String("EXAMPLE-tnsAlias-Value"),
					Username: common.String("EXAMPLE-username-Value")},
				DriverClass:  common.String("EXAMPLE-driverClass-Value"),
				ModelVersion: common.String("EXAMPLE-modelVersion-Value"),
				ServiceName:  common.String("EXAMPLE-serviceName-Value"),
				StagingDataAsset: dataintegration.DataAssetFromAdwcDetails{Identifier: common.String("EXAMPLE-identifier-Value"),
					KeyMap: map[string]string{"EXAMPLE_KEY_hLO4e": "EXAMPLE_VALUE_MoIPDZzruOwLKtvLFgNe"},
					Metadata: &dataintegration.ObjectMetadata{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")},
						CreatedByName: common.String("EXAMPLE-createdByName-Value"),
						InfoFields:    map[string]string{"EXAMPLE_KEY_sqsmb": "EXAMPLE_VALUE_qumzhFGsKaIhwpEsXpEM"},
						IsFavorite:    common.Bool(true),
						TimeUpdated:   &common.SDKTime{Time: time.Now()},
						UpdatedByName: common.String("EXAMPLE-updatedByName-Value"),
						AggregatorKey: common.String("EXAMPLE-aggregatorKey-Value"),
						CountStatistics: &dataintegration.CountStatistic{ObjectTypeCountList: []dataintegration.CountStatisticSummary{dataintegration.CountStatisticSummary{ObjectCount: common.Int64(285),
							ObjectType: dataintegration.CountStatisticSummaryObjectTypeProject}}},
						CreatedBy:       common.String("EXAMPLE-createdBy-Value"),
						IdentifierPath:  common.String("EXAMPLE-identifierPath-Value"),
						Labels:          []string{"EXAMPLE--Value"},
						RegistryVersion: common.Int(185),
						TimeCreated:     &common.SDKTime{Time: time.Now()},
						UpdatedBy:       common.String("EXAMPLE-updatedBy-Value")},
					ParentRef: &dataintegration.ParentReference{Parent: common.String("EXAMPLE-parent-Value"),
						RootDocId: common.String("ocid1.test.oc1..<unique_ID>EXAMPLE-rootDocId-Value")},
					ServiceName: common.String("EXAMPLE-serviceName-Value"),
					Description: common.String("EXAMPLE-description-Value"),
					ExternalKey: common.String("EXAMPLE-externalKey-Value"),
					Key:         common.String("EXAMPLE-key-Value"),
					StagingConnection: dataintegration.ConnectionFromAdwc{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")},
						Password: common.String("EXAMPLE-password-Value"),
						PrimarySchema: &dataintegration.Schema{Metadata: &dataintegration.ObjectMetadata{CountStatistics: &dataintegration.CountStatistic{ObjectTypeCountList: []dataintegration.CountStatisticSummary{dataintegration.CountStatisticSummary{ObjectCount: common.Int64(707),
							ObjectType: dataintegration.CountStatisticSummaryObjectTypeDataAsset}}},
							CreatedBy:     common.String("EXAMPLE-createdBy-Value"),
							TimeCreated:   &common.SDKTime{Time: time.Now()},
							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"),
							CreatedByName:   common.String("EXAMPLE-createdByName-Value"),
							IdentifierPath:  common.String("EXAMPLE-identifierPath-Value"),
							InfoFields:      map[string]string{"EXAMPLE_KEY_wUmWw": "EXAMPLE_VALUE_NOIstgwPg2xSpOJgAO9I"},
							IsFavorite:      common.Bool(false),
							Labels:          []string{"EXAMPLE--Value"},
							RegistryVersion: common.Int(967)},
							ModelVersion:      common.String("EXAMPLE-modelVersion-Value"),
							Name:              common.String("EXAMPLE-name-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"),
							Key:               common.String("EXAMPLE-key-Value"),
							ObjectStatus:      common.Int(98),
							ObjectVersion:     common.Int(910),
							ParentRef: &dataintegration.ParentReference{Parent: common.String("EXAMPLE-parent-Value"),
								RootDocId: common.String("ocid1.test.oc1..<unique_ID>EXAMPLE-rootDocId-Value")},
							Identifier:      common.String("EXAMPLE-identifier-Value"),
							IsHasContainers: common.Bool(true)},
						Description:   common.String("EXAMPLE-description-Value"),
						IsDefault:     common.Bool(true),
						ModelVersion:  common.String("EXAMPLE-modelVersion-Value"),
						ObjectVersion: common.Int(2),
						TnsNames:      []string{"EXAMPLE--Value"},
						Username:      common.String("EXAMPLE-username-Value"),
						ConnectionProperties: []dataintegration.ConnectionProperty{dataintegration.ConnectionProperty{Name: common.String("EXAMPLE-name-Value"),
							Value: common.String("EXAMPLE-value-Value")}},
						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"),
						KeyMap:   map[string]string{"EXAMPLE_KEY_T4ji9": "EXAMPLE_VALUE_OWaKzygy8Smk5XwWC4gy"},
						Metadata: &dataintegration.ObjectMetadata{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(724),
								ObjectType: dataintegration.CountStatisticSummaryObjectTypeUserDefinedFunction}}},
							IdentifierPath:  common.String("EXAMPLE-identifierPath-Value"),
							InfoFields:      map[string]string{"EXAMPLE_KEY_pFoic": "EXAMPLE_VALUE_TVZ0psBdJIRsokBQLmQ4"},
							IsFavorite:      common.Bool(true),
							Labels:          []string{"EXAMPLE--Value"},
							RegistryVersion: common.Int(400),
							CreatedBy:       common.String("EXAMPLE-createdBy-Value"),
							CreatedByName:   common.String("EXAMPLE-createdByName-Value"),
							TimeCreated:     &common.SDKTime{Time: time.Now()},
							TimeUpdated:     &common.SDKTime{Time: time.Now()},
							UpdatedBy:       common.String("EXAMPLE-updatedBy-Value"),
							UpdatedByName:   common.String("EXAMPLE-updatedByName-Value")},
						ObjectStatus: common.Int(912)},
					AssetProperties: map[string]string{"EXAMPLE_KEY_Jr97X": "EXAMPLE_VALUE_PEgyKtVMKlTooMh5VUmW"},
					ModelVersion:    common.String("EXAMPLE-modelVersion-Value"),
					ServiceNames:    []string{"EXAMPLE--Value"},
					Name:            common.String("EXAMPLE-name-Value"),
					NativeTypeSystem: &dataintegration.TypeSystem{ObjectVersion: common.Int(947),
						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_V010F": "EXAMPLE_VALUE_hhxhIIY0aaPFxItfkCx4"},
						Identifier:      common.String("EXAMPLE-identifier-Value"),
						Name:            common.String("EXAMPLE-name-Value"),
						TypeMappingTo:   map[string]string{"EXAMPLE_KEY_MkaA1": "EXAMPLE_VALUE_CRWDvVq3XnvdQnJddytq"},
						Types: []dataintegration.DataType{dataintegration.DataType{ConfigDefinition: &dataintegration.ConfigDefinition{ModelVersion: common.String("EXAMPLE-modelVersion-Value"),
							Name:         common.String("EXAMPLE-name-Value"),
							ObjectStatus: common.Int(661),
							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_wYXNm": dataintegration.ConfigParameterDefinition{ParameterName: common.String("EXAMPLE-parameterName-Value"),
								ParameterType: dataintegration.JavaType{ModelVersion: common.String("EXAMPLE-modelVersion-Value"),
									Name:         common.String("EXAMPLE-name-Value"),
									ObjectStatus: common.Int(877),
									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"),
									JavaTypeName: common.String("EXAMPLE-javaTypeName-Value"),
									Key:          common.String("EXAMPLE-key-Value")},
								ClassFieldName:    common.String("EXAMPLE-classFieldName-Value"),
								DefaultValue:      &defaultValue,
								Description:       common.String("EXAMPLE-description-Value"),
								IsClassFieldValue: common.Bool(false),
								IsStatic:          common.Bool(false)}},
							IsContained: common.Bool(false),
							Key:         common.String("EXAMPLE-key-Value")},
							Description:  common.String("EXAMPLE-description-Value"),
							DtType:       dataintegration.DataTypeDtTypePrimitive,
							ModelVersion: common.String("EXAMPLE-modelVersion-Value"),
							Name:         common.String("EXAMPLE-name-Value"),
							Key:          common.String("EXAMPLE-key-Value"),
							ObjectStatus: common.Int(678),
							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")}},
						Description:  common.String("EXAMPLE-description-Value"),
						Key:          common.String("EXAMPLE-key-Value"),
						ModelVersion: common.String("EXAMPLE-modelVersion-Value"),
						ObjectStatus: common.Int(479)},
					ObjectStatus:  common.Int(600),
					ObjectVersion: common.Int(870),
					BucketSchema: &dataintegration.Schema{Key: common.String("EXAMPLE-key-Value"),
						Metadata: &dataintegration.ObjectMetadata{CreatedByName: common.String("EXAMPLE-createdByName-Value"),
							IdentifierPath:  common.String("EXAMPLE-identifierPath-Value"),
							RegistryVersion: common.Int(892),
							TimeUpdated:     &common.SDKTime{Time: time.Now()},
							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")},
							AggregatorKey: common.String("EXAMPLE-aggregatorKey-Value"),
							CountStatistics: &dataintegration.CountStatistic{ObjectTypeCountList: []dataintegration.CountStatisticSummary{dataintegration.CountStatisticSummary{ObjectCount: common.Int64(98),
								ObjectType: dataintegration.CountStatisticSummaryObjectTypeApplication}}},
							CreatedBy:   common.String("EXAMPLE-createdBy-Value"),
							InfoFields:  map[string]string{"EXAMPLE_KEY_jpXpq": "EXAMPLE_VALUE_xUlHAB17hUIIyQrIlBje"},
							IsFavorite:  common.Bool(false),
							Labels:      []string{"EXAMPLE--Value"},
							TimeCreated: &common.SDKTime{Time: time.Now()}},
						ObjectVersion: common.Int(743),
						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"),
						IsHasContainers:   common.Bool(false),
						ModelVersion:      common.String("EXAMPLE-modelVersion-Value"),
						Name:              common.String("EXAMPLE-name-Value"),
						ObjectStatus:      common.Int(784),
						Identifier:        common.String("EXAMPLE-identifier-Value")},
					DefaultConnection: &dataintegration.ConnectionFromAdwcDetails{Password: common.String("EXAMPLE-password-Value"),
						ObjectVersion: common.Int(255),
						TnsAlias:      common.String("EXAMPLE-tnsAlias-Value"),
						Username:      common.String("EXAMPLE-username-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{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")},
							AggregatorKey:  common.String("EXAMPLE-aggregatorKey-Value"),
							IdentifierPath: common.String("EXAMPLE-identifierPath-Value"),
							InfoFields:     map[string]string{"EXAMPLE_KEY_wOpgA": "EXAMPLE_VALUE_aUC1jh67iEVUqX8R3wSa"},
							Labels:         []string{"EXAMPLE--Value"},
							TimeCreated:    &common.SDKTime{Time: time.Now()},
							TimeUpdated:    &common.SDKTime{Time: time.Now()},
							CountStatistics: &dataintegration.CountStatistic{ObjectTypeCountList: []dataintegration.CountStatisticSummary{dataintegration.CountStatisticSummary{ObjectCount: common.Int64(940),
								ObjectType: dataintegration.CountStatisticSummaryObjectTypeApplication}}},
							CreatedBy:       common.String("EXAMPLE-createdBy-Value"),
							CreatedByName:   common.String("EXAMPLE-createdByName-Value"),
							IsFavorite:      common.Bool(true),
							RegistryVersion: common.Int(841),
							UpdatedBy:       common.String("EXAMPLE-updatedBy-Value"),
							UpdatedByName:   common.String("EXAMPLE-updatedByName-Value")},
						ObjectStatus: common.Int(965),
						PrimarySchema: &dataintegration.Schema{ObjectStatus: common.Int(15),
							ObjectVersion: common.Int(318),
							Identifier:    common.String("EXAMPLE-identifier-Value"),
							Key:           common.String("EXAMPLE-key-Value"),
							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")},
							ResourceName:      common.String("EXAMPLE-resourceName-Value"),
							DefaultConnection: common.String("EXAMPLE-defaultConnection-Value"),
							Description:       common.String("EXAMPLE-description-Value"),
							ExternalKey:       common.String("EXAMPLE-externalKey-Value"),
							IsHasContainers:   common.Bool(true),
							Metadata: &dataintegration.ObjectMetadata{AggregatorKey: common.String("EXAMPLE-aggregatorKey-Value"),
								CreatedBy:       common.String("EXAMPLE-createdBy-Value"),
								IdentifierPath:  common.String("EXAMPLE-identifierPath-Value"),
								IsFavorite:      common.Bool(true),
								RegistryVersion: common.Int(453),
								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(95)}}},
								CreatedByName: common.String("EXAMPLE-createdByName-Value"),
								InfoFields:    map[string]string{"EXAMPLE_KEY_gqYNK": "EXAMPLE_VALUE_cSkn2Woxz8HOrqg01VcJ"},
								Labels:        []string{"EXAMPLE--Value"},
								UpdatedByName: common.String("EXAMPLE-updatedByName-Value")}},
						Description:  common.String("EXAMPLE-description-Value"),
						ModelVersion: common.String("EXAMPLE-modelVersion-Value"),
						PasswordSecret: &dataintegration.SensitiveAttribute{SecretConfig: dataintegration.OciVaultSecretConfig{SecretId: common.String("ocid1.test.oc1..<unique_ID>EXAMPLE-secretId-Value")},
							Value: common.String("EXAMPLE-value-Value")},
						TnsNames:  []string{"EXAMPLE--Value"},
						IsDefault: common.Bool(false),
						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")}},
					DriverClass: common.String("EXAMPLE-driverClass-Value")},
				AssetProperties: map[string]string{"EXAMPLE_KEY_E3wb5": "EXAMPLE_VALUE_MVcX8e39VHuI5wmxGT6l"},
				AutonomousDbId:  common.String("ocid1.test.oc1..<unique_ID>EXAMPLE-autonomousDbId-Value"),
				ExternalKey:     common.String("EXAMPLE-externalKey-Value"),
				Identifier:      common.String("EXAMPLE-identifier-Value"),
				Key:             common.String("EXAMPLE-key-Value"),
				ObjectStatus:    common.Int(934),
				WalletPasswordSecret: &dataintegration.SensitiveAttribute{SecretConfig: dataintegration.OciVaultSecretConfig{SecretId: common.String("ocid1.test.oc1..<unique_ID>EXAMPLE-secretId-Value")},
					Value: common.String("EXAMPLE-value-Value")},
				WalletSecret: &dataintegration.SensitiveAttribute{Value: common.String("EXAMPLE-value-Value"),
					SecretConfig: dataintegration.OciVaultSecretConfig{SecretId: common.String("ocid1.test.oc1..<unique_ID>EXAMPLE-secretId-Value")}},
				RegionId: common.String("ocid1.test.oc1..<unique_ID>EXAMPLE-regionId-Value"),
				RegistryMetadata: &dataintegration.RegistryMetadata{Key: common.String("EXAMPLE-key-Value"),
					Labels:          []string{"EXAMPLE--Value"},
					RegistryVersion: common.Int(9),
					AggregatorKey:   common.String("EXAMPLE-aggregatorKey-Value"),
					IsFavorite:      common.Bool(false)},
				Description: common.String("EXAMPLE-description-Value"),
				Name:        common.String("EXAMPLE-name-Value"),
				StagingConnection: dataintegration.ConnectionFromRestBasicAuth{KeyMap: map[string]string{"EXAMPLE_KEY_55gC5": "EXAMPLE_VALUE_fh2LLnP8xZcAPcMmm983"},
					Identifier: common.String("EXAMPLE-identifier-Value"),
					Metadata: &dataintegration.ObjectMetadata{IdentifierPath: common.String("EXAMPLE-identifierPath-Value"),
						InfoFields:    map[string]string{"EXAMPLE_KEY_yvmKe": "EXAMPLE_VALUE_NYUVEycWew30TAZPyarz"},
						Labels:        []string{"EXAMPLE--Value"},
						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(118),
							ObjectType: dataintegration.CountStatisticSummaryObjectTypeApplication}}},
						CreatedBy:       common.String("EXAMPLE-createdBy-Value"),
						CreatedByName:   common.String("EXAMPLE-createdByName-Value"),
						IsFavorite:      common.Bool(false),
						RegistryVersion: common.Int(467),
						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")},
						AggregatorKey: common.String("EXAMPLE-aggregatorKey-Value")},
					ObjectStatus:  common.Int(755),
					ObjectVersion: common.Int(182),
					PrimarySchema: &dataintegration.Schema{ObjectStatus: common.Int(914),
						ObjectVersion:     common.Int(931),
						DefaultConnection: common.String("EXAMPLE-defaultConnection-Value"),
						ExternalKey:       common.String("EXAMPLE-externalKey-Value"),
						IsHasContainers:   common.Bool(false),
						Key:               common.String("EXAMPLE-key-Value"),
						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")},
						ResourceName: common.String("EXAMPLE-resourceName-Value"),
						Description:  common.String("EXAMPLE-description-Value"),
						Identifier:   common.String("EXAMPLE-identifier-Value"),
						Metadata: &dataintegration.ObjectMetadata{CreatedByName: common.String("EXAMPLE-createdByName-Value"),
							IdentifierPath:  common.String("EXAMPLE-identifierPath-Value"),
							InfoFields:      map[string]string{"EXAMPLE_KEY_17Z4a": "EXAMPLE_VALUE_i5jPxURfVfvUip7rzbPS"},
							Labels:          []string{"EXAMPLE--Value"},
							RegistryVersion: common.Int(513),
							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")},
							AggregatorKey: common.String("EXAMPLE-aggregatorKey-Value"),
							CountStatistics: &dataintegration.CountStatistic{ObjectTypeCountList: []dataintegration.CountStatisticSummary{dataintegration.CountStatisticSummary{ObjectType: dataintegration.CountStatisticSummaryObjectTypeDataAsset,
								ObjectCount: common.Int64(460)}}},
							IsFavorite:  common.Bool(true),
							TimeCreated: &common.SDKTime{Time: time.Now()},
							TimeUpdated: &common.SDKTime{Time: time.Now()},
							CreatedBy:   common.String("EXAMPLE-createdBy-Value")},
						Name: common.String("EXAMPLE-name-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")},
					PasswordSecret: &dataintegration.SensitiveAttribute{SecretConfig: dataintegration.OciVaultSecretConfig{SecretId: common.String("ocid1.test.oc1..<unique_ID>EXAMPLE-secretId-Value")},
						Value: common.String("EXAMPLE-value-Value")},
					AuthHeader:   common.String("EXAMPLE-authHeader-Value"),
					Description:  common.String("EXAMPLE-description-Value"),
					ModelVersion: common.String("EXAMPLE-modelVersion-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),
					Key:       common.String("EXAMPLE-key-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(17)}}}

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