// 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"
	var scope interface{}
	scope = "EXAMPLE-scope-Value"
	var objectValue interface{}
	objectValue = "EXAMPLE-objectValue-Value"
	var refValue interface{}
	refValue = "EXAMPLE-refValue-Value"
	var rootObjectValue interface{}
	rootObjectValue = "EXAMPLE-rootObjectValue-Value"
	req := dataintegration.CreateConnectionValidationRequest{CreateConnectionValidationDetails: dataintegration.CreateConnectionValidationDetails{Connection: dataintegration.CreateConnectionFromAdwc{TnsNames: []string{"EXAMPLE--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{Labels: []string{"EXAMPLE--Value"},
			RegistryVersion: common.Int(149),
			AggregatorKey:   common.String("EXAMPLE-aggregatorKey-Value"),
			IsFavorite:      common.Bool(false),
			Key:             common.String("EXAMPLE-key-Value")},
		Username:     common.String("EXAMPLE-username-Value"),
		Description:  common.String("EXAMPLE-description-Value"),
		ObjectStatus: common.Int(840),
		ConnectionProperties: []dataintegration.ConnectionProperty{dataintegration.ConnectionProperty{Name: common.String("EXAMPLE-name-Value"),
			Value: common.String("EXAMPLE-value-Value")}},
		Name:         common.String("EXAMPLE-name-Value"),
		TnsAlias:     common.String("EXAMPLE-tnsAlias-Value"),
		Identifier:   common.String("EXAMPLE-identifier-Value"),
		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")},
		Password: common.String("EXAMPLE-password-Value")},
		DataAsset: dataintegration.CreateDataAssetFromAtp{ObjectStatus: common.Int(127),
			TenancyId: common.String("ocid1.test.oc1..<unique_ID>EXAMPLE-tenancyId-Value"),
			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{SecretConfig: dataintegration.OciVaultSecretConfig{SecretId: common.String("ocid1.test.oc1..<unique_ID>EXAMPLE-secretId-Value")},
				Value: common.String("EXAMPLE-value-Value")},
			Name: common.String("EXAMPLE-name-Value"),
			DefaultConnection: &dataintegration.CreateConnectionFromAtp{ModelVersion: common.String("EXAMPLE-modelVersion-Value"),
				ObjectStatus: common.Int(93),
				Identifier:   common.String("EXAMPLE-identifier-Value"),
				PasswordSecret: &dataintegration.SensitiveAttribute{SecretConfig: dataintegration.OciVaultSecretConfig{SecretId: common.String("ocid1.test.oc1..<unique_ID>EXAMPLE-secretId-Value")},
					Value: common.String("EXAMPLE-value-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"),
				Username:    common.String("EXAMPLE-username-Value"),
				Description: common.String("EXAMPLE-description-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(608)},
				TnsNames: []string{"EXAMPLE--Value"},
				TnsAlias: common.String("EXAMPLE-tnsAlias-Value"),
				ConnectionProperties: []dataintegration.ConnectionProperty{dataintegration.ConnectionProperty{Name: common.String("EXAMPLE-name-Value"),
					Value: common.String("EXAMPLE-value-Value")}}},
			Identifier: common.String("EXAMPLE-identifier-Value"),
			RegionId:   common.String("ocid1.test.oc1..<unique_ID>EXAMPLE-regionId-Value"),
			StagingConnection: dataintegration.ConnectionFromOAuth2{ClientId: common.String("ocid1.test.oc1..<unique_ID>EXAMPLE-clientId-Value"),
				GrantType: dataintegration.ConnectionFromOAuth2GrantTypeClientCredentials,
				Metadata: &dataintegration.ObjectMetadata{RegistryVersion: common.Int(969),
					TimeUpdated:   &common.SDKTime{Time: time.Now()},
					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")},
					CreatedBy:      common.String("EXAMPLE-createdBy-Value"),
					IdentifierPath: common.String("EXAMPLE-identifierPath-Value"),
					InfoFields:     map[string]string{"EXAMPLE_KEY_v7oB4": "EXAMPLE_VALUE_g69cmcAxg9frSBpuqZkS"},
					IsFavorite:     common.Bool(false),
					Labels:         []string{"EXAMPLE--Value"},
					TimeCreated:    &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(606),
						ObjectType: dataintegration.CountStatisticSummaryObjectTypeFolder}}},
					CreatedByName: common.String("EXAMPLE-createdByName-Value")},
				Name:         common.String("EXAMPLE-name-Value"),
				ObjectStatus: common.Int(298),
				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"),
				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")},
				AccessTokenUrl: common.String("EXAMPLE-accessTokenUrl-Value"),
				ModelVersion:   common.String("EXAMPLE-modelVersion-Value"),
				ObjectVersion:  common.Int(488),
				Scope:          common.String("EXAMPLE-scope-Value"),
				ClientSecret: &dataintegration.SensitiveAttribute{SecretConfig: dataintegration.OciVaultSecretConfig{SecretId: common.String("ocid1.test.oc1..<unique_ID>EXAMPLE-secretId-Value")},
					Value: common.String("EXAMPLE-value-Value")},
				IsDefault: common.Bool(true),
				KeyMap:    map[string]string{"EXAMPLE_KEY_EshcP": "EXAMPLE_VALUE_v84LxQ5fsLTTp41ExYJh"},
				PrimarySchema: &dataintegration.Schema{Name: common.String("EXAMPLE-name-Value"),
					ObjectStatus:  common.Int(598),
					ObjectVersion: common.Int(687),
					Description:   common.String("EXAMPLE-description-Value"),
					Identifier:    common.String("EXAMPLE-identifier-Value"),
					Key:           common.String("EXAMPLE-key-Value"),
					Metadata: &dataintegration.ObjectMetadata{TimeUpdated: &common.SDKTime{Time: time.Now()},
						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"),
						IdentifierPath: common.String("EXAMPLE-identifierPath-Value"),
						InfoFields:     map[string]string{"EXAMPLE_KEY_azYD2": "EXAMPLE_VALUE_puNHrckmkmarBVeBdx3O"},
						UpdatedBy:      common.String("EXAMPLE-updatedBy-Value"),
						AggregatorKey:  common.String("EXAMPLE-aggregatorKey-Value"),
						CountStatistics: &dataintegration.CountStatistic{ObjectTypeCountList: []dataintegration.CountStatisticSummary{dataintegration.CountStatisticSummary{ObjectCount: common.Int64(856),
							ObjectType: dataintegration.CountStatisticSummaryObjectTypeDataAsset}}},
						IsFavorite:      common.Bool(false),
						Labels:          []string{"EXAMPLE--Value"},
						RegistryVersion: common.Int(672),
						TimeCreated:     &common.SDKTime{Time: time.Now()}},
					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"),
					DefaultConnection: common.String("EXAMPLE-defaultConnection-Value"),
					ExternalKey:       common.String("EXAMPLE-externalKey-Value"),
					IsHasContainers:   common.Bool(false)}},
			CredentialFileContent: common.String("EXAMPLE-credentialFileContent-Value"),
			Description:           common.String("EXAMPLE-description-Value"),
			DriverClass:           common.String("EXAMPLE-driverClass-Value"),
			ServiceName:           common.String("EXAMPLE-serviceName-Value"),
			AssetProperties:       map[string]string{"EXAMPLE_KEY_ewIje": "EXAMPLE_VALUE_37z4YZWa6vA6a5smNkZl"},
			BucketSchema: &dataintegration.Schema{ModelVersion: common.String("EXAMPLE-modelVersion-Value"),
				Name:              common.String("EXAMPLE-name-Value"),
				ObjectStatus:      common.Int(509),
				DefaultConnection: common.String("EXAMPLE-defaultConnection-Value"),
				IsHasContainers:   common.Bool(true),
				Key:               common.String("EXAMPLE-key-Value"),
				Metadata: &dataintegration.ObjectMetadata{AggregatorKey: common.String("EXAMPLE-aggregatorKey-Value"),
					IdentifierPath: common.String("EXAMPLE-identifierPath-Value"),
					InfoFields:     map[string]string{"EXAMPLE_KEY_Ir25U": "EXAMPLE_VALUE_Bmk1WsEfz63bzxZ2xGEO"},
					IsFavorite:     common.Bool(false),
					TimeCreated:    &common.SDKTime{Time: time.Now()},
					CountStatistics: &dataintegration.CountStatistic{ObjectTypeCountList: []dataintegration.CountStatisticSummary{dataintegration.CountStatisticSummary{ObjectCount: common.Int64(93),
						ObjectType: dataintegration.CountStatisticSummaryObjectTypeApplication}}},
					CreatedBy:       common.String("EXAMPLE-createdBy-Value"),
					CreatedByName:   common.String("EXAMPLE-createdByName-Value"),
					Labels:          []string{"EXAMPLE--Value"},
					RegistryVersion: common.Int(947),
					TimeUpdated:     &common.SDKTime{Time: time.Now()},
					UpdatedBy:       common.String("EXAMPLE-updatedBy-Value"),
					UpdatedByName:   common.String("EXAMPLE-updatedByName-Value"),
					Aggregator: &dataintegration.AggregatorSummary{Key: common.String("EXAMPLE-key-Value"),
						Name:        common.String("EXAMPLE-name-Value"),
						Type:        common.String("EXAMPLE-type-Value"),
						Description: common.String("EXAMPLE-description-Value"),
						Identifier:  common.String("EXAMPLE-identifier-Value")}},
				ObjectVersion: common.Int(490),
				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"),
				Description:  common.String("EXAMPLE-description-Value"),
				ExternalKey:  common.String("EXAMPLE-externalKey-Value"),
				Identifier:   common.String("EXAMPLE-identifier-Value")},
			CompartmentId: common.String("ocid1.test.oc1..<unique_ID>EXAMPLE-compartmentId-Value"),
			ExternalKey:   common.String("EXAMPLE-externalKey-Value"),
			ModelVersion:  common.String("EXAMPLE-modelVersion-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(308)},
			StagingDataAsset: dataintegration.DataAssetFromAdwcDetails{ObjectVersion: common.Int(546),
				DriverClass:  common.String("EXAMPLE-driverClass-Value"),
				ExternalKey:  common.String("EXAMPLE-externalKey-Value"),
				ObjectStatus: common.Int(902),
				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"),
				Key:          common.String("EXAMPLE-key-Value"),
				ServiceNames: []string{"EXAMPLE--Value"},
				StagingConnection: dataintegration.ConnectionFromAtp{TnsAlias: common.String("EXAMPLE-tnsAlias-Value"),
					ConnectionProperties: []dataintegration.ConnectionProperty{dataintegration.ConnectionProperty{Name: common.String("EXAMPLE-name-Value"),
						Value: common.String("EXAMPLE-value-Value")}},
					KeyMap:       map[string]string{"EXAMPLE_KEY_Csn5s": "EXAMPLE_VALUE_8CAuF2zn1dPa4ecp6D2L"},
					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")},
					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{Metadata: &dataintegration.ObjectMetadata{IdentifierPath: common.String("EXAMPLE-identifierPath-Value"),
						InfoFields:      map[string]string{"EXAMPLE_KEY_KxuvV": "EXAMPLE_VALUE_ju2vY9pd0gI3abpfOcQw"},
						IsFavorite:      common.Bool(true),
						Labels:          []string{"EXAMPLE--Value"},
						RegistryVersion: common.Int(900),
						TimeCreated:     &common.SDKTime{Time: time.Now()},
						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(936),
							ObjectType: dataintegration.CountStatisticSummaryObjectTypeTask}}},
						CreatedBy:     common.String("EXAMPLE-createdBy-Value"),
						CreatedByName: common.String("EXAMPLE-createdByName-Value"),
						TimeUpdated:   &common.SDKTime{Time: time.Now()},
						UpdatedBy:     common.String("EXAMPLE-updatedBy-Value")},
						ModelVersion:  common.String("EXAMPLE-modelVersion-Value"),
						ExternalKey:   common.String("EXAMPLE-externalKey-Value"),
						Name:          common.String("EXAMPLE-name-Value"),
						ObjectStatus:  common.Int(868),
						ObjectVersion: common.Int(537),
						ParentRef: &dataintegration.ParentReference{Parent: common.String("EXAMPLE-parent-Value"),
							RootDocId: common.String("ocid1.test.oc1..<unique_ID>EXAMPLE-rootDocId-Value")},
						ResourceName:      common.String("EXAMPLE-resourceName-Value"),
						DefaultConnection: common.String("EXAMPLE-defaultConnection-Value"),
						Description:       common.String("EXAMPLE-description-Value"),
						Identifier:        common.String("EXAMPLE-identifier-Value"),
						IsHasContainers:   common.Bool(false),
						Key:               common.String("EXAMPLE-key-Value")},
					Username:    common.String("EXAMPLE-username-Value"),
					Identifier:  common.String("EXAMPLE-identifier-Value"),
					IsDefault:   common.Bool(true),
					Name:        common.String("EXAMPLE-name-Value"),
					Password:    common.String("EXAMPLE-password-Value"),
					Description: common.String("EXAMPLE-description-Value"),
					Key:         common.String("EXAMPLE-key-Value"),
					Metadata: &dataintegration.ObjectMetadata{UpdatedByName: common.String("EXAMPLE-updatedByName-Value"),
						CountStatistics: &dataintegration.CountStatistic{ObjectTypeCountList: []dataintegration.CountStatisticSummary{dataintegration.CountStatisticSummary{ObjectCount: common.Int64(176),
							ObjectType: dataintegration.CountStatisticSummaryObjectTypeConnection}}},
						CreatedBy:       common.String("EXAMPLE-createdBy-Value"),
						IdentifierPath:  common.String("EXAMPLE-identifierPath-Value"),
						InfoFields:      map[string]string{"EXAMPLE_KEY_akHkN": "EXAMPLE_VALUE_XDyn4qkPIRsL2IzLRbcR"},
						IsFavorite:      common.Bool(true),
						Labels:          []string{"EXAMPLE--Value"},
						RegistryVersion: common.Int(125),
						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")},
						AggregatorKey: common.String("EXAMPLE-aggregatorKey-Value"),
						CreatedByName: common.String("EXAMPLE-createdByName-Value"),
						TimeCreated:   &common.SDKTime{Time: time.Now()},
						UpdatedBy:     common.String("EXAMPLE-updatedBy-Value")},
					ObjectVersion: common.Int(819),
					TnsNames:      []string{"EXAMPLE--Value"},
					ObjectStatus:  common.Int(1)},
				AssetProperties: map[string]string{"EXAMPLE_KEY_G8qOW": "EXAMPLE_VALUE_Ez7lw1fdXjbHlgUxfhha"},
				DefaultConnection: &dataintegration.ConnectionFromAdwcDetails{ObjectStatus: common.Int(528),
					PrimarySchema: &dataintegration.Schema{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),
						Key:             common.String("EXAMPLE-key-Value"),
						ModelVersion:    common.String("EXAMPLE-modelVersion-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")},
							CountStatistics: &dataintegration.CountStatistic{ObjectTypeCountList: []dataintegration.CountStatisticSummary{dataintegration.CountStatisticSummary{ObjectType: dataintegration.CountStatisticSummaryObjectTypeConnection,
								ObjectCount: common.Int64(642)}}},
							CreatedBy:       common.String("EXAMPLE-createdBy-Value"),
							IdentifierPath:  common.String("EXAMPLE-identifierPath-Value"),
							Labels:          []string{"EXAMPLE--Value"},
							RegistryVersion: common.Int(95),
							TimeUpdated:     &common.SDKTime{Time: time.Now()},
							AggregatorKey:   common.String("EXAMPLE-aggregatorKey-Value"),
							CreatedByName:   common.String("EXAMPLE-createdByName-Value"),
							InfoFields:      map[string]string{"EXAMPLE_KEY_kuOQb": "EXAMPLE_VALUE_Or3DUzgjwofHEed1jQuJ"},
							IsFavorite:      common.Bool(true),
							TimeCreated:     &common.SDKTime{Time: time.Now()},
							UpdatedBy:       common.String("EXAMPLE-updatedBy-Value"),
							UpdatedByName:   common.String("EXAMPLE-updatedByName-Value")},
						Name:          common.String("EXAMPLE-name-Value"),
						ObjectStatus:  common.Int(222),
						ObjectVersion: common.Int(654),
						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")},
					TnsAlias: common.String("EXAMPLE-tnsAlias-Value"),
					TnsNames: []string{"EXAMPLE--Value"},
					ConnectionProperties: []dataintegration.ConnectionProperty{dataintegration.ConnectionProperty{Name: common.String("EXAMPLE-name-Value"),
						Value: common.String("EXAMPLE-value-Value")}},
					ModelVersion:  common.String("EXAMPLE-modelVersion-Value"),
					ObjectVersion: common.Int(318),
					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"),
					Key:         common.String("EXAMPLE-key-Value"),
					Metadata: &dataintegration.ObjectMetadata{CreatedBy: common.String("EXAMPLE-createdBy-Value"),
						CreatedByName: common.String("EXAMPLE-createdByName-Value"),
						InfoFields:    map[string]string{"EXAMPLE_KEY_Xpm0t": "EXAMPLE_VALUE_ie1Wx2lY3R9xUgKEliDC"},
						Labels:        []string{"EXAMPLE--Value"},
						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(104),
							ObjectType: dataintegration.CountStatisticSummaryObjectTypeUserDefinedFunction}}},
						IdentifierPath:  common.String("EXAMPLE-identifierPath-Value"),
						IsFavorite:      common.Bool(false),
						RegistryVersion: common.Int(274),
						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")}},
					Name:       common.String("EXAMPLE-name-Value"),
					Password:   common.String("EXAMPLE-password-Value"),
					Identifier: common.String("EXAMPLE-identifier-Value"),
					IsDefault:  common.Bool(true)},
				Identifier:   common.String("EXAMPLE-identifier-Value"),
				ModelVersion: common.String("EXAMPLE-modelVersion-Value"),
				ServiceName:  common.String("EXAMPLE-serviceName-Value"),
				BucketSchema: &dataintegration.Schema{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"),
					Key:          common.String("EXAMPLE-key-Value"),
					Metadata: &dataintegration.ObjectMetadata{UpdatedByName: common.String("EXAMPLE-updatedByName-Value"),
						CountStatistics: &dataintegration.CountStatistic{ObjectTypeCountList: []dataintegration.CountStatisticSummary{dataintegration.CountStatisticSummary{ObjectCount: common.Int64(282),
							ObjectType: dataintegration.CountStatisticSummaryObjectTypeFolder}}},
						CreatedBy:       common.String("EXAMPLE-createdBy-Value"),
						CreatedByName:   common.String("EXAMPLE-createdByName-Value"),
						IdentifierPath:  common.String("EXAMPLE-identifierPath-Value"),
						InfoFields:      map[string]string{"EXAMPLE_KEY_TSSd2": "EXAMPLE_VALUE_616GOXQ705ca07sihZux"},
						Labels:          []string{"EXAMPLE--Value"},
						RegistryVersion: common.Int(449),
						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"),
						IsFavorite:    common.Bool(true),
						TimeUpdated:   &common.SDKTime{Time: time.Now()},
						UpdatedBy:     common.String("EXAMPLE-updatedBy-Value")},
					Name:              common.String("EXAMPLE-name-Value"),
					ObjectStatus:      common.Int(307),
					ObjectVersion:     common.Int(443),
					DefaultConnection: common.String("EXAMPLE-defaultConnection-Value"),
					ExternalKey:       common.String("EXAMPLE-externalKey-Value"),
					Identifier:        common.String("EXAMPLE-identifier-Value"),
					IsHasContainers:   common.Bool(true)},
				KeyMap: map[string]string{"EXAMPLE_KEY_53od5": "EXAMPLE_VALUE_4PKm2zldjSMlJsaPX015"},
				Metadata: &dataintegration.ObjectMetadata{AggregatorKey: common.String("EXAMPLE-aggregatorKey-Value"),
					CountStatistics: &dataintegration.CountStatistic{ObjectTypeCountList: []dataintegration.CountStatisticSummary{dataintegration.CountStatisticSummary{ObjectType: dataintegration.CountStatisticSummaryObjectTypeDataFlow,
						ObjectCount: common.Int64(31)}}},
					CreatedBy:       common.String("EXAMPLE-createdBy-Value"),
					IdentifierPath:  common.String("EXAMPLE-identifierPath-Value"),
					RegistryVersion: common.Int(45),
					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")},
					CreatedByName: common.String("EXAMPLE-createdByName-Value"),
					InfoFields:    map[string]string{"EXAMPLE_KEY_kYPvn": "EXAMPLE_VALUE_P1kj2vPoGcA0xNriC8hy"},
					IsFavorite:    common.Bool(false),
					Labels:        []string{"EXAMPLE--Value"},
					TimeCreated:   &common.SDKTime{Time: time.Now()}},
				Name: common.String("EXAMPLE-name-Value"),
				NativeTypeSystem: &dataintegration.TypeSystem{ModelVersion: common.String("EXAMPLE-modelVersion-Value"),
					Name:          common.String("EXAMPLE-name-Value"),
					ObjectStatus:  common.Int(654),
					ObjectVersion: common.Int(711),
					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_YPqMg": "EXAMPLE_VALUE_79oTH7eEwChuOagUmp65"},
					Types: []dataintegration.DataType{dataintegration.DataType{ParentRef: &dataintegration.ParentReference{Parent: common.String("EXAMPLE-parent-Value"),
						RootDocId: common.String("ocid1.test.oc1..<unique_ID>EXAMPLE-rootDocId-Value")},
						ConfigDefinition: &dataintegration.ConfigDefinition{Name: common.String("EXAMPLE-name-Value"),
							ObjectStatus: common.Int(41),
							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_J1elc": dataintegration.ConfigParameterDefinition{ClassFieldName: common.String("EXAMPLE-classFieldName-Value"),
								DefaultValue:      &defaultValue,
								Description:       common.String("EXAMPLE-description-Value"),
								IsClassFieldValue: common.Bool(false),
								IsStatic:          common.Bool(true),
								ParameterName:     common.String("EXAMPLE-parameterName-Value"),
								ParameterType: dataintegration.DynamicType{ObjectStatus: common.Int(718),
									ParentRef: &dataintegration.ParentReference{Parent: common.String("EXAMPLE-parent-Value"),
										RootDocId: common.String("ocid1.test.oc1..<unique_ID>EXAMPLE-rootDocId-Value")},
									TypeHandler: dataintegration.RuleTypeConfig{IsOrderByRule: common.Bool(true),
										Key:          common.String("EXAMPLE-key-Value"),
										ObjectStatus: common.Int(664),
										Scope:        &scope,
										ModelVersion: common.String("EXAMPLE-modelVersion-Value"),
										ParentRef: &dataintegration.ParentReference{RootDocId: common.String("ocid1.test.oc1..<unique_ID>EXAMPLE-rootDocId-Value"),
											Parent: common.String("EXAMPLE-parent-Value")},
										ProjectionRules: []dataintegration.ProjectionRule{dataintegration.NamePatternRule{ParentRef: &dataintegration.ParentReference{Parent: common.String("EXAMPLE-parent-Value"),
											RootDocId: common.String("ocid1.test.oc1..<unique_ID>EXAMPLE-rootDocId-Value")},
											Pattern: common.String("EXAMPLE-pattern-Value"),
											ConfigValues: &dataintegration.ConfigValues{ConfigParamValues: map[string]dataintegration.ConfigParameterValue{"EXAMPLE_KEY_SqDr9": dataintegration.ConfigParameterValue{IntValue: common.Int(124),
												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")}},
											Description:                 common.String("EXAMPLE-description-Value"),
											Key:                         common.String("EXAMPLE-key-Value"),
											MatchingStrategy:            dataintegration.NamePatternRuleMatchingStrategyNameOrTags,
											RuleType:                    dataintegration.NamePatternRuleRuleTypeInclude,
											IsCascade:                   common.Bool(true),
											IsJavaRegexSyntax:           common.Bool(true),
											IsSkipRemainingRulesOnMatch: common.Bool(true),
											ModelVersion:                common.String("EXAMPLE-modelVersion-Value"),
											Scope:                       &scope,
											IsCaseSensitive:             common.Bool(true),
											ObjectStatus:                common.Int(883)}},
										ScopeReference: &dataintegration.ScopeReference{RefObjectName: common.String("EXAMPLE-refObjectName-Value"),
											ReferenceObject: common.String("EXAMPLE-referenceObject-Value"),
											ReferenceType:   dataintegration.ScopeReferenceReferenceTypeOciFunctionOutputShape},
										ConfigValues: &dataintegration.ConfigValues{ConfigParamValues: map[string]dataintegration.ConfigParameterValue{"EXAMPLE_KEY_iuJNv": dataintegration.ConfigParameterValue{IntValue: common.Int(407),
											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")}}},
									Description:  common.String("EXAMPLE-description-Value"),
									Key:          common.String("EXAMPLE-key-Value"),
									ModelVersion: common.String("EXAMPLE-modelVersion-Value"),
									Name:         common.String("EXAMPLE-name-Value")}}},
							IsContained:  common.Bool(true),
							Key:          common.String("EXAMPLE-key-Value"),
							ModelVersion: common.String("EXAMPLE-modelVersion-Value")},
						Key:            common.String("EXAMPLE-key-Value"),
						Name:           common.String("EXAMPLE-name-Value"),
						ObjectStatus:   common.Int(677),
						TypeSystemName: common.String("EXAMPLE-typeSystemName-Value"),
						Description:    common.String("EXAMPLE-description-Value"),
						DtType:         dataintegration.DataTypeDtTypeStructured,
						ModelVersion:   common.String("EXAMPLE-modelVersion-Value")}},
					Description:   common.String("EXAMPLE-description-Value"),
					Identifier:    common.String("EXAMPLE-identifier-Value"),
					Key:           common.String("EXAMPLE-key-Value"),
					TypeMappingTo: map[string]string{"EXAMPLE_KEY_VKDSV": "EXAMPLE_VALUE_D4KOf28n5lU3k2B6fkrG"}}},
			AutonomousDbId: common.String("ocid1.test.oc1..<unique_ID>EXAMPLE-autonomousDbId-Value"),
			Key:            common.String("EXAMPLE-key-Value")},
		RegistryMetadata: &dataintegration.RegistryMetadata{IsFavorite: common.Bool(false),
			Key:             common.String("EXAMPLE-key-Value"),
			Labels:          []string{"EXAMPLE--Value"},
			RegistryVersion: common.Int(607),
			AggregatorKey:   common.String("EXAMPLE-aggregatorKey-Value")}},
		OpcRequestId:  common.String("RKEJ7SLP4IUZCYRZVM1W<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)
}