// 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 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"
	var defaultValue interface{}
	defaultValue = "EXAMPLE-defaultValue-Value"
	req := dataintegration.CreateConnectionValidationRequest{CreateConnectionValidationDetails: dataintegration.CreateConnectionValidationDetails{Connection: dataintegration.CreateConnectionFromOraclePeopleSoft{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"),
		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")},
		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(934)},
		Description:  common.String("EXAMPLE-description-Value"),
		Key:          common.String("EXAMPLE-key-Value"),
		Name:         common.String("EXAMPLE-name-Value"),
		ObjectStatus: common.Int(10)},
		DataAsset: dataintegration.CreateDataAssetFromAdwc{AutonomousDbId: common.String("ocid1.test.oc1..<unique_ID>EXAMPLE-autonomousDbId-Value"),
			DefaultConnection: &dataintegration.CreateConnectionFromAdwc{Name: common.String("EXAMPLE-name-Value"),
				ObjectStatus: common.Int(895),
				PasswordSecret: &dataintegration.SensitiveAttribute{SecretConfig: dataintegration.OciVaultSecretConfig{SecretId: common.String("ocid1.test.oc1..<unique_ID>EXAMPLE-secretId-Value")},
					Value: common.String("EXAMPLE-value-Value")},
				ModelVersion: common.String("EXAMPLE-modelVersion-Value"),
				Password:     common.String("EXAMPLE-password-Value"),
				Username:     common.String("EXAMPLE-username-Value"),
				ConnectionProperties: []dataintegration.ConnectionProperty{dataintegration.ConnectionProperty{Name: common.String("EXAMPLE-name-Value"),
					Value: common.String("EXAMPLE-value-Value")}},
				Description: common.String("EXAMPLE-description-Value"),
				Key:         common.String("EXAMPLE-key-Value"),
				Identifier:  common.String("EXAMPLE-identifier-Value"),
				ParentRef: &dataintegration.ParentReference{Parent: common.String("EXAMPLE-parent-Value"),
					RootDocId: common.String("ocid1.test.oc1..<unique_ID>EXAMPLE-rootDocId-Value")},
				RegistryMetadata: &dataintegration.RegistryMetadata{Labels: []string{"EXAMPLE--Value"},
					RegistryVersion: common.Int(732),
					AggregatorKey:   common.String("EXAMPLE-aggregatorKey-Value"),
					IsFavorite:      common.Bool(true),
					Key:             common.String("EXAMPLE-key-Value")},
				TnsAlias: common.String("EXAMPLE-tnsAlias-Value"),
				TnsNames: []string{"EXAMPLE--Value"}},
			Description:  common.String("EXAMPLE-description-Value"),
			DriverClass:  common.String("EXAMPLE-driverClass-Value"),
			ObjectStatus: common.Int(786),
			StagingDataAsset: dataintegration.DataAssetFromOraclePeopleSoftDetails{AssetProperties: map[string]string{"EXAMPLE_KEY_Yuapq": "EXAMPLE_VALUE_J8lTqooPYgHvUf21Zs82"},
				DefaultConnection: &dataintegration.ConnectionFromOraclePeopleSoftDetails{Username: common.String("EXAMPLE-username-Value"),
					PrimarySchema: &dataintegration.Schema{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(false),
						Key:             common.String("EXAMPLE-key-Value"),
						Metadata: &dataintegration.ObjectMetadata{UpdatedBy: common.String("EXAMPLE-updatedBy-Value"),
							AggregatorKey: common.String("EXAMPLE-aggregatorKey-Value"),
							CountStatistics: &dataintegration.CountStatistic{ObjectTypeCountList: []dataintegration.CountStatisticSummary{dataintegration.CountStatisticSummary{ObjectCount: common.Int64(295),
								ObjectType: dataintegration.CountStatisticSummaryObjectTypeProject}}},
							CreatedBy:       common.String("EXAMPLE-createdBy-Value"),
							IdentifierPath:  common.String("EXAMPLE-identifierPath-Value"),
							Labels:          []string{"EXAMPLE--Value"},
							RegistryVersion: common.Int(491),
							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")},
							CreatedByName: common.String("EXAMPLE-createdByName-Value"),
							InfoFields:    map[string]string{"EXAMPLE_KEY_n9POt": "EXAMPLE_VALUE_wIRAal7hXaGcubjTQvye"},
							IsFavorite:    common.Bool(false),
							TimeCreated:   &common.SDKTime{Time: time.Now()},
							TimeUpdated:   &common.SDKTime{Time: time.Now()}},
						ModelVersion:      common.String("EXAMPLE-modelVersion-Value"),
						ObjectStatus:      common.Int(421),
						ResourceName:      common.String("EXAMPLE-resourceName-Value"),
						DefaultConnection: common.String("EXAMPLE-defaultConnection-Value"),
						Description:       common.String("EXAMPLE-description-Value"),
						ExternalKey:       common.String("EXAMPLE-externalKey-Value"),
						Name:              common.String("EXAMPLE-name-Value"),
						ObjectVersion:     common.Int(158)},
					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")},
					Password:      common.String("EXAMPLE-password-Value"),
					Description:   common.String("EXAMPLE-description-Value"),
					Key:           common.String("EXAMPLE-key-Value"),
					Name:          common.String("EXAMPLE-name-Value"),
					ObjectStatus:  common.Int(859),
					ObjectVersion: common.Int(635),
					PasswordSecret: &dataintegration.SensitiveAttribute{SecretConfig: dataintegration.OciVaultSecretConfig{SecretId: common.String("ocid1.test.oc1..<unique_ID>EXAMPLE-secretId-Value")},
						Value: common.String("EXAMPLE-value-Value")},
					ConnectionProperties: []dataintegration.ConnectionProperty{dataintegration.ConnectionProperty{Name: common.String("EXAMPLE-name-Value"),
						Value: common.String("EXAMPLE-value-Value")}},
					Identifier: common.String("EXAMPLE-identifier-Value"),
					Metadata: &dataintegration.ObjectMetadata{CreatedByName: common.String("EXAMPLE-createdByName-Value"),
						InfoFields:    map[string]string{"EXAMPLE_KEY_qqx0h": "EXAMPLE_VALUE_SSHqhgIxrkH2RPUUgN2b"},
						TimeCreated:   &common.SDKTime{Time: time.Now()},
						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(331),
							ObjectType: dataintegration.CountStatisticSummaryObjectTypeTask}}},
						CreatedBy:       common.String("EXAMPLE-createdBy-Value"),
						IdentifierPath:  common.String("EXAMPLE-identifierPath-Value"),
						IsFavorite:      common.Bool(true),
						Labels:          []string{"EXAMPLE--Value"},
						RegistryVersion: common.Int(478),
						UpdatedBy:       common.String("EXAMPLE-updatedBy-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")}}},
				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"),
					CreatedBy:      common.String("EXAMPLE-createdBy-Value"),
					IdentifierPath: common.String("EXAMPLE-identifierPath-Value"),
					Labels:         []string{"EXAMPLE--Value"},
					TimeCreated:    &common.SDKTime{Time: time.Now()},
					TimeUpdated:    &common.SDKTime{Time: time.Now()},
					UpdatedBy:      common.String("EXAMPLE-updatedBy-Value"),
					CountStatistics: &dataintegration.CountStatistic{ObjectTypeCountList: []dataintegration.CountStatisticSummary{dataintegration.CountStatisticSummary{ObjectCount: common.Int64(963),
						ObjectType: dataintegration.CountStatisticSummaryObjectTypeFolder}}},
					CreatedByName:   common.String("EXAMPLE-createdByName-Value"),
					InfoFields:      map[string]string{"EXAMPLE_KEY_ocN1c": "EXAMPLE_VALUE_nrY2BpN4GYxoV33FiF7Y"},
					IsFavorite:      common.Bool(false),
					RegistryVersion: common.Int(813),
					UpdatedByName:   common.String("EXAMPLE-updatedByName-Value")},
				ObjectStatus:  common.Int(496),
				ObjectVersion: common.Int(250),
				Port:          common.String("EXAMPLE-port-Value"),
				ModelVersion:  common.String("EXAMPLE-modelVersion-Value"),
				WalletPasswordSecret: &dataintegration.SensitiveAttribute{SecretConfig: dataintegration.OciVaultSecretConfig{SecretId: common.String("ocid1.test.oc1..<unique_ID>EXAMPLE-secretId-Value")},
					Value: common.String("EXAMPLE-value-Value")},
				Description: common.String("EXAMPLE-description-Value"),
				DriverClass: common.String("EXAMPLE-driverClass-Value"),
				ExternalKey: common.String("EXAMPLE-externalKey-Value"),
				Host:        common.String("EXAMPLE-host-Value"),
				Identifier:  common.String("EXAMPLE-identifier-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")},
				WalletSecret: &dataintegration.SensitiveAttribute{Value: common.String("EXAMPLE-value-Value"),
					SecretConfig: dataintegration.OciVaultSecretConfig{SecretId: common.String("ocid1.test.oc1..<unique_ID>EXAMPLE-secretId-Value")}},
				KeyMap: map[string]string{"EXAMPLE_KEY_r23dC": "EXAMPLE_VALUE_nNRC3yTD6YppARbKKr2A"},
				Name:   common.String("EXAMPLE-name-Value"),
				NativeTypeSystem: &dataintegration.TypeSystem{Description: common.String("EXAMPLE-description-Value"),
					Identifier:    common.String("EXAMPLE-identifier-Value"),
					ModelVersion:  common.String("EXAMPLE-modelVersion-Value"),
					ObjectStatus:  common.Int(457),
					ObjectVersion: common.Int(907),
					TypeMappingTo: map[string]string{"EXAMPLE_KEY_4HhC7": "EXAMPLE_VALUE_aNsdkLcQN5BiQQtSwc9S"},
					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")},
					TypeMappingFrom: map[string]string{"EXAMPLE_KEY_vgt2T": "EXAMPLE_VALUE_vlcnw0vYDKS5L0LuW3ey"},
					Types: []dataintegration.DataType{dataintegration.DataType{TypeSystemName: common.String("EXAMPLE-typeSystemName-Value"),
						Description: common.String("EXAMPLE-description-Value"),
						DtType:      dataintegration.DataTypeDtTypePrimitive,
						Name:        common.String("EXAMPLE-name-Value"),
						ConfigDefinition: &dataintegration.ConfigDefinition{ConfigParameterDefinitions: map[string]dataintegration.ConfigParameterDefinition{"EXAMPLE_KEY_jE6pg": dataintegration.ConfigParameterDefinition{IsStatic: common.Bool(true),
							ParameterName: common.String("EXAMPLE-parameterName-Value"),
							ParameterType: dataintegration.DynamicType{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{ConfigParamValues: map[string]dataintegration.ConfigParameterValue{"EXAMPLE_KEY_P1HvD": dataintegration.ConfigParameterValue{IntValue: common.Int(590),
									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")}},
									IsOrderByRule: common.Bool(false),
									Key:           common.String("EXAMPLE-key-Value"),
									ModelVersion:  common.String("EXAMPLE-modelVersion-Value"),
									ObjectStatus:  common.Int(759),
									ParentRef: &dataintegration.ParentReference{Parent: common.String("EXAMPLE-parent-Value"),
										RootDocId: common.String("ocid1.test.oc1..<unique_ID>EXAMPLE-rootDocId-Value")},
									ProjectionRules: []dataintegration.ProjectionRule{dataintegration.TypedNamePatternRule{ModelVersion: common.String("EXAMPLE-modelVersion-Value"),
										ObjectStatus:      common.Int(225),
										Description:       common.String("EXAMPLE-description-Value"),
										Names:             []string{"EXAMPLE--Value"},
										IsCascade:         common.Bool(true),
										IsCaseSensitive:   common.Bool(false),
										IsJavaRegexSyntax: common.Bool(true),
										Key:               common.String("EXAMPLE-key-Value"),
										MatchingStrategy:  dataintegration.TypedNamePatternRuleMatchingStrategyTagsOnly,
										RuleType:          dataintegration.TypedNamePatternRuleRuleTypeExclude,
										Types:             []interface{}{"EXAMPLE-types-Value"},
										ConfigValues: &dataintegration.ConfigValues{ConfigParamValues: map[string]dataintegration.ConfigParameterValue{"EXAMPLE_KEY_iNylF": dataintegration.ConfigParameterValue{RootObjectValue: &rootObjectValue,
											StringValue:    common.String("EXAMPLE-stringValue-Value"),
											IntValue:       common.Int(590),
											ObjectValue:    &objectValue,
											ParameterValue: common.String("EXAMPLE-parameterValue-Value"),
											RefValue:       &refValue}},
											ParentRef: &dataintegration.ParentReference{Parent: common.String("EXAMPLE-parent-Value"),
												RootDocId: common.String("ocid1.test.oc1..<unique_ID>EXAMPLE-rootDocId-Value")}},
										IsSkipRemainingRulesOnMatch: common.Bool(false),
										ParentRef: &dataintegration.ParentReference{RootDocId: common.String("ocid1.test.oc1..<unique_ID>EXAMPLE-rootDocId-Value"),
											Parent: common.String("EXAMPLE-parent-Value")},
										Pattern: common.String("EXAMPLE-pattern-Value"),
										Scope:   &scope}},
									Scope: &scope,
									ScopeReference: &dataintegration.ScopeReference{RefObjectName: common.String("EXAMPLE-refObjectName-Value"),
										ReferenceObject: common.String("EXAMPLE-referenceObject-Value"),
										ReferenceType:   dataintegration.ScopeReferenceReferenceTypeOciFunctionOutputShape}},
								Description:  common.String("EXAMPLE-description-Value"),
								Key:          common.String("EXAMPLE-key-Value"),
								ModelVersion: common.String("EXAMPLE-modelVersion-Value"),
								Name:         common.String("EXAMPLE-name-Value"),
								ObjectStatus: common.Int(634)},
							ClassFieldName:    common.String("EXAMPLE-classFieldName-Value"),
							DefaultValue:      &defaultValue,
							Description:       common.String("EXAMPLE-description-Value"),
							IsClassFieldValue: common.Bool(false)}},
							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(194),
							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(719),
						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"),
				Sid:         common.String("EXAMPLE-sid-Value")},
			WalletPasswordSecret: &dataintegration.SensitiveAttribute{SecretConfig: dataintegration.OciVaultSecretConfig{SecretId: common.String("ocid1.test.oc1..<unique_ID>EXAMPLE-secretId-Value")},
				Value: common.String("EXAMPLE-value-Value")},
			BucketSchema: &dataintegration.Schema{Name: common.String("EXAMPLE-name-Value"),
				ResourceName: common.String("EXAMPLE-resourceName-Value"),
				Description:  common.String("EXAMPLE-description-Value"),
				Metadata: &dataintegration.ObjectMetadata{InfoFields: map[string]string{"EXAMPLE_KEY_z2xbG": "EXAMPLE_VALUE_2vSufLhZHcDYUGdTEXYD"},
					Labels:          []string{"EXAMPLE--Value"},
					RegistryVersion: common.Int(355),
					TimeCreated:     &common.SDKTime{Time: time.Now()},
					AggregatorKey:   common.String("EXAMPLE-aggregatorKey-Value"),
					CreatedByName:   common.String("EXAMPLE-createdByName-Value"),
					IsFavorite:      common.Bool(false),
					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")},
					CountStatistics: &dataintegration.CountStatistic{ObjectTypeCountList: []dataintegration.CountStatisticSummary{dataintegration.CountStatisticSummary{ObjectCount: common.Int64(643),
						ObjectType: dataintegration.CountStatisticSummaryObjectTypeDataAsset}}},
					CreatedBy:      common.String("EXAMPLE-createdBy-Value"),
					IdentifierPath: common.String("EXAMPLE-identifierPath-Value")},
				ModelVersion:  common.String("EXAMPLE-modelVersion-Value"),
				ObjectStatus:  common.Int(584),
				ObjectVersion: common.Int(520),
				ParentRef: &dataintegration.ParentReference{RootDocId: common.String("ocid1.test.oc1..<unique_ID>EXAMPLE-rootDocId-Value"),
					Parent: common.String("EXAMPLE-parent-Value")},
				DefaultConnection: common.String("EXAMPLE-defaultConnection-Value"),
				ExternalKey:       common.String("EXAMPLE-externalKey-Value"),
				Identifier:        common.String("EXAMPLE-identifier-Value"),
				IsHasContainers:   common.Bool(false),
				Key:               common.String("EXAMPLE-key-Value")},
			ExternalKey:  common.String("EXAMPLE-externalKey-Value"),
			Key:          common.String("EXAMPLE-key-Value"),
			ModelVersion: common.String("EXAMPLE-modelVersion-Value"),
			StagingConnection: dataintegration.ConnectionFromOracleEbs{Metadata: &dataintegration.ObjectMetadata{CreatedByName: common.String("EXAMPLE-createdByName-Value"),
				IdentifierPath:  common.String("EXAMPLE-identifierPath-Value"),
				InfoFields:      map[string]string{"EXAMPLE_KEY_qQnMg": "EXAMPLE_VALUE_3NCxIW62zegW402zZAJg"},
				Labels:          []string{"EXAMPLE--Value"},
				RegistryVersion: common.Int(388),
				AggregatorKey:   common.String("EXAMPLE-aggregatorKey-Value"),
				IsFavorite:      common.Bool(false),
				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{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")},
				CountStatistics: &dataintegration.CountStatistic{ObjectTypeCountList: []dataintegration.CountStatisticSummary{dataintegration.CountStatisticSummary{ObjectCount: common.Int64(327),
					ObjectType: dataintegration.CountStatisticSummaryObjectTypeFolder}}},
				CreatedBy: common.String("EXAMPLE-createdBy-Value")},
				Name:         common.String("EXAMPLE-name-Value"),
				ObjectStatus: common.Int(739),
				PasswordSecret: &dataintegration.SensitiveAttribute{SecretConfig: dataintegration.OciVaultSecretConfig{SecretId: common.String("ocid1.test.oc1..<unique_ID>EXAMPLE-secretId-Value")},
					Value: common.String("EXAMPLE-value-Value")},
				PrimarySchema: &dataintegration.Schema{Key: common.String("EXAMPLE-key-Value"),
					ModelVersion:      common.String("EXAMPLE-modelVersion-Value"),
					Name:              common.String("EXAMPLE-name-Value"),
					ObjectVersion:     common.Int(702),
					ResourceName:      common.String("EXAMPLE-resourceName-Value"),
					DefaultConnection: common.String("EXAMPLE-defaultConnection-Value"),
					Description:       common.String("EXAMPLE-description-Value"),
					ExternalKey:       common.String("EXAMPLE-externalKey-Value"),
					Identifier:        common.String("EXAMPLE-identifier-Value"),
					IsHasContainers:   common.Bool(false),
					Metadata: &dataintegration.ObjectMetadata{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"),
						CreatedBy:      common.String("EXAMPLE-createdBy-Value"),
						CreatedByName:  common.String("EXAMPLE-createdByName-Value"),
						IdentifierPath: common.String("EXAMPLE-identifierPath-Value"),
						InfoFields:     map[string]string{"EXAMPLE_KEY_3yaUW": "EXAMPLE_VALUE_PYzY9s3HWbjyNb0ZFaRT"},
						Labels:         []string{"EXAMPLE--Value"},
						TimeCreated:    &common.SDKTime{Time: time.Now()},
						CountStatistics: &dataintegration.CountStatistic{ObjectTypeCountList: []dataintegration.CountStatisticSummary{dataintegration.CountStatisticSummary{ObjectCount: common.Int64(401),
							ObjectType: dataintegration.CountStatisticSummaryObjectTypeConnection}}},
						IsFavorite:      common.Bool(false),
						RegistryVersion: common.Int(212),
						TimeUpdated:     &common.SDKTime{Time: time.Now()},
						UpdatedBy:       common.String("EXAMPLE-updatedBy-Value")},
					ObjectStatus: common.Int(40),
					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"),
				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"),
				Password: common.String("EXAMPLE-password-Value"),
				ConnectionProperties: []dataintegration.ConnectionProperty{dataintegration.ConnectionProperty{Name: common.String("EXAMPLE-name-Value"),
					Value: common.String("EXAMPLE-value-Value")}},
				ModelVersion:  common.String("EXAMPLE-modelVersion-Value"),
				Description:   common.String("EXAMPLE-description-Value"),
				ObjectVersion: common.Int(173),
				IsDefault:     common.Bool(false),
				KeyMap:        map[string]string{"EXAMPLE_KEY_0h7po": "EXAMPLE_VALUE_8AoNnO2WKUFYwYuK12nw"}},
			CompartmentId: common.String("ocid1.test.oc1..<unique_ID>EXAMPLE-compartmentId-Value"),
			Name:          common.String("EXAMPLE-name-Value"),
			RegionId:      common.String("ocid1.test.oc1..<unique_ID>EXAMPLE-regionId-Value"),
			RegistryMetadata: &dataintegration.RegistryMetadata{RegistryVersion: common.Int(922),
				AggregatorKey: common.String("EXAMPLE-aggregatorKey-Value"),
				IsFavorite:    common.Bool(false),
				Key:           common.String("EXAMPLE-key-Value"),
				Labels:        []string{"EXAMPLE--Value"}},
			ServiceName: common.String("EXAMPLE-serviceName-Value"),
			TenancyId:   common.String("ocid1.test.oc1..<unique_ID>EXAMPLE-tenancyId-Value"),
			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_I6c6J": "EXAMPLE_VALUE_e1JBjSoUsdnGu3Iy0G3D"},
			CredentialFileContent: common.String("EXAMPLE-credentialFileContent-Value"),
			Identifier:            common.String("EXAMPLE-identifier-Value")},
		RegistryMetadata: &dataintegration.RegistryMetadata{RegistryVersion: common.Int(642),
			AggregatorKey: common.String("EXAMPLE-aggregatorKey-Value"),
			IsFavorite:    common.Bool(true),
			Key:           common.String("EXAMPLE-key-Value"),
			Labels:        []string{"EXAMPLE--Value"}}},
		OpcRequestId:  common.String("EP2K8TWAUKQP0TVPOIXT<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)
}