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

using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using Oci.DataintegrationService;
using Oci.Common;
using Oci.Common.Auth;

namespace Oci.Sdk.DotNet.Example.Dataintegration
{
    public class CreateConnectionValidationExample
    {
        public static async Task Main()
        {
            // Create a request and dependent object(s).
			var createConnectionValidationDetails = new Oci.DataintegrationService.Models.CreateConnectionValidationDetails
			{
				DataAsset = new Oci.DataintegrationService.Models.CreateDataAssetFromFusionApp
				{
					ServiceUrl = "EXAMPLE-serviceUrl-Value",
					DefaultConnection = new Oci.DataintegrationService.Models.CreateConnectionFromOracleSiebel
					{
						Username = "EXAMPLE-username-Value",
						Password = "EXAMPLE-password-Value",
						PasswordSecret = new Oci.DataintegrationService.Models.SensitiveAttribute
						{
							SecretConfig = new Oci.DataintegrationService.Models.OciVaultSecretConfig
							{
								SecretId = "ocid1.test.oc1..<unique_ID>EXAMPLE-secretId-Value"
							},
							Value = "EXAMPLE-value-Value"
						},
						Key = "EXAMPLE-key-Value",
						ModelVersion = "EXAMPLE-modelVersion-Value",
						ParentRef = new Oci.DataintegrationService.Models.ParentReference
						{
							Parent = "EXAMPLE-parent-Value",
							RootDocId = "ocid1.test.oc1..<unique_ID>EXAMPLE-rootDocId-Value"
						},
						Name = "EXAMPLE-name-Value",
						Description = "EXAMPLE-description-Value",
						ObjectStatus = 43,
						Identifier = "EXAMPLE-identifier-Value",
						ConnectionProperties = new List<Oci.DataintegrationService.Models.ConnectionProperty>
						{
							new Oci.DataintegrationService.Models.ConnectionProperty
							{
								Name = "EXAMPLE-name-Value",
								Value = "EXAMPLE-value-Value"
							}
						},
						RegistryMetadata = new Oci.DataintegrationService.Models.RegistryMetadata
						{
							AggregatorKey = "EXAMPLE-aggregatorKey-Value",
							Labels = new List<string>
							{
								"EXAMPLE--Value"
							},
							RegistryVersion = 525,
							Key = "EXAMPLE-key-Value",
							IsFavorite = false
						}
					},
					StagingDataAsset = new Oci.DataintegrationService.Models.DataAssetSummaryFromObjectStorage
					{
						OciRegion = "EXAMPLE-ociRegion-Value",
						Url = "EXAMPLE-url-Value",
						TenancyId = "ocid1.test.oc1..<unique_ID>EXAMPLE-tenancyId-Value",
						Namespace = "EXAMPLE-namespace-Value",
						DefaultConnection = new Oci.DataintegrationService.Models.ConnectionSummaryFromObjectStorage
						{
							CredentialFileContent = "EXAMPLE-credentialFileContent-Value",
							UserId = "ocid1.test.oc1..<unique_ID>EXAMPLE-userId-Value",
							FingerPrint = "EXAMPLE-fingerPrint-Value",
							PassPhrase = "EXAMPLE-passPhrase-Value",
							Key = "EXAMPLE-key-Value",
							ModelVersion = "EXAMPLE-modelVersion-Value",
							ParentRef = new Oci.DataintegrationService.Models.ParentReference
							{
								Parent = "EXAMPLE-parent-Value",
								RootDocId = "ocid1.test.oc1..<unique_ID>EXAMPLE-rootDocId-Value"
							},
							Name = "EXAMPLE-name-Value",
							Description = "EXAMPLE-description-Value",
							ObjectVersion = 259,
							ObjectStatus = 379,
							Identifier = "EXAMPLE-identifier-Value",
							PrimarySchema = new Oci.DataintegrationService.Models.Schema
							{
								Key = "EXAMPLE-key-Value",
								ModelType = "EXAMPLE-modelType-Value",
								ModelVersion = "EXAMPLE-modelVersion-Value",
								ParentRef = new Oci.DataintegrationService.Models.ParentReference
								{
									Parent = "EXAMPLE-parent-Value",
									RootDocId = "ocid1.test.oc1..<unique_ID>EXAMPLE-rootDocId-Value"
								},
								Name = "EXAMPLE-name-Value",
								ResourceName = "EXAMPLE-resourceName-Value",
								Description = "EXAMPLE-description-Value",
								ObjectVersion = 198,
								ExternalKey = "EXAMPLE-externalKey-Value",
								IsHasContainers = true,
								DefaultConnection = "EXAMPLE-defaultConnection-Value",
								ObjectStatus = 775,
								Identifier = "EXAMPLE-identifier-Value",
								Metadata = new Oci.DataintegrationService.Models.ObjectMetadata
								{
									CreatedBy = "EXAMPLE-createdBy-Value",
									CreatedByName = "EXAMPLE-createdByName-Value",
									UpdatedBy = "EXAMPLE-updatedBy-Value",
									UpdatedByName = "EXAMPLE-updatedByName-Value",
									TimeCreated = DateTime.Parse("09/09/2038 02:10:00"),
									TimeUpdated = DateTime.Parse("09/14/2019 11:51:01"),
									AggregatorKey = "EXAMPLE-aggregatorKey-Value",
									Aggregator = new Oci.DataintegrationService.Models.AggregatorSummary
									{
										Type = "EXAMPLE-type-Value",
										Key = "EXAMPLE-key-Value",
										Name = "EXAMPLE-name-Value",
										Identifier = "EXAMPLE-identifier-Value",
										Description = "EXAMPLE-description-Value"
									},
									IdentifierPath = "EXAMPLE-identifierPath-Value",
									InfoFields = new Dictionary<string, string>()
									{
										{
											"EXAMPLE_KEY_A0IMn", 
											"EXAMPLE_VALUE_xCbErcqKqs3QuyvFVyAo"
										}
									},
									RegistryVersion = 436,
									Labels = new List<string>
									{
										"EXAMPLE--Value"
									},
									IsFavorite = true,
									CountStatistics = new Oci.DataintegrationService.Models.CountStatistic
									{
										ObjectTypeCountList = new List<Oci.DataintegrationService.Models.CountStatisticSummary>
										{
											new Oci.DataintegrationService.Models.CountStatisticSummary
											{
												ObjectType = Oci.DataintegrationService.Models.CountStatisticSummary.ObjectTypeEnum.FunctionLibrary,
												ObjectCount = 209
											}
										}
									}
								}
							},
							ConnectionProperties = new List<Oci.DataintegrationService.Models.ConnectionProperty>
							{
								new Oci.DataintegrationService.Models.ConnectionProperty
								{
									Name = "EXAMPLE-name-Value",
									Value = "EXAMPLE-value-Value"
								}
							},
							IsDefault = true,
							Metadata = new Oci.DataintegrationService.Models.ObjectMetadata
							{
								CreatedBy = "EXAMPLE-createdBy-Value",
								CreatedByName = "EXAMPLE-createdByName-Value",
								UpdatedBy = "EXAMPLE-updatedBy-Value",
								UpdatedByName = "EXAMPLE-updatedByName-Value",
								TimeCreated = DateTime.Parse("07/29/2024 12:07:45"),
								TimeUpdated = DateTime.Parse("04/15/2030 21:12:12"),
								AggregatorKey = "EXAMPLE-aggregatorKey-Value",
								Aggregator = new Oci.DataintegrationService.Models.AggregatorSummary
								{
									Type = "EXAMPLE-type-Value",
									Key = "EXAMPLE-key-Value",
									Name = "EXAMPLE-name-Value",
									Identifier = "EXAMPLE-identifier-Value",
									Description = "EXAMPLE-description-Value"
								},
								IdentifierPath = "EXAMPLE-identifierPath-Value",
								InfoFields = new Dictionary<string, string>()
								{
									{
										"EXAMPLE_KEY_c45tH", 
										"EXAMPLE_VALUE_xbGEZI5Dst9ovncLPfPe"
									}
								},
								RegistryVersion = 757,
								Labels = new List<string>
								{
									"EXAMPLE--Value"
								},
								IsFavorite = false,
								CountStatistics = new Oci.DataintegrationService.Models.CountStatistic
								{
									ObjectTypeCountList = new List<Oci.DataintegrationService.Models.CountStatisticSummary>
									{
										new Oci.DataintegrationService.Models.CountStatisticSummary
										{
											ObjectType = Oci.DataintegrationService.Models.CountStatisticSummary.ObjectTypeEnum.Application,
											ObjectCount = 852
										}
									}
								}
							},
							KeyMap = new Dictionary<string, string>()
							{
								{
									"EXAMPLE_KEY_qJcZw", 
									"EXAMPLE_VALUE_ptZ8FSjKypuYUG6y1DXj"
								}
							}
						},
						Key = "EXAMPLE-key-Value",
						ModelVersion = "EXAMPLE-modelVersion-Value",
						Name = "EXAMPLE-name-Value",
						Description = "EXAMPLE-description-Value",
						ObjectStatus = 489,
						Identifier = "EXAMPLE-identifier-Value",
						ExternalKey = "EXAMPLE-externalKey-Value",
						AssetProperties = new Dictionary<string, string>()
						{
							{
								"EXAMPLE_KEY_0ORpw", 
								"EXAMPLE_VALUE_sPArPLVSseuhMuhaL9LX"
							}
						},
						NativeTypeSystem = new Oci.DataintegrationService.Models.TypeSystem
						{
							Key = "EXAMPLE-key-Value",
							ModelType = "EXAMPLE-modelType-Value",
							ModelVersion = "EXAMPLE-modelVersion-Value",
							ParentRef = new Oci.DataintegrationService.Models.ParentReference
							{
								Parent = "EXAMPLE-parent-Value",
								RootDocId = "ocid1.test.oc1..<unique_ID>EXAMPLE-rootDocId-Value"
							},
							Name = "EXAMPLE-name-Value",
							Description = "EXAMPLE-description-Value",
							ObjectVersion = 842,
							TypeMappingTo = new Dictionary<string, string>()
							{
								{
									"EXAMPLE_KEY_WsEB8", 
									"EXAMPLE_VALUE_t1dIPE6UdeTXqLhtdr4p"
								}
							},
							TypeMappingFrom = new Dictionary<string, string>()
							{
								{
									"EXAMPLE_KEY_n3dAj", 
									"EXAMPLE_VALUE_5LmMrYxNSPcGAdl52LPg"
								}
							},
							ObjectStatus = 198,
							Identifier = "EXAMPLE-identifier-Value",
							Types = new List<Oci.DataintegrationService.Models.DataType>
							{
								new Oci.DataintegrationService.Models.DataType
								{
									DtType = Oci.DataintegrationService.Models.DataType.DtTypeEnum.Primitive,
									TypeSystemName = "EXAMPLE-typeSystemName-Value",
									ConfigDefinition = new Oci.DataintegrationService.Models.ConfigDefinition
									{
										Key = "EXAMPLE-key-Value",
										ModelType = "EXAMPLE-modelType-Value",
										ModelVersion = "EXAMPLE-modelVersion-Value",
										ParentRef = new Oci.DataintegrationService.Models.ParentReference
										{
											Parent = "EXAMPLE-parent-Value",
											RootDocId = "ocid1.test.oc1..<unique_ID>EXAMPLE-rootDocId-Value"
										},
										Name = "EXAMPLE-name-Value",
										IsContained = false,
										ObjectStatus = 307,
										ConfigParameterDefinitions = new Dictionary<string, Oci.DataintegrationService.Models.ConfigParameterDefinition>()
										{
											{
												"EXAMPLE_KEY_ateoq", 
												new Oci.DataintegrationService.Models.ConfigParameterDefinition
												{
													ParameterType = new Oci.DataintegrationService.Models.JavaType
													{
														JavaTypeName = "EXAMPLE-javaTypeName-Value",
														Key = "EXAMPLE-key-Value",
														ModelVersion = "EXAMPLE-modelVersion-Value",
														ParentRef = new Oci.DataintegrationService.Models.ParentReference
														{
															Parent = "EXAMPLE-parent-Value",
															RootDocId = "ocid1.test.oc1..<unique_ID>EXAMPLE-rootDocId-Value"
														},
														Name = "EXAMPLE-name-Value",
														ObjectStatus = 436,
														Description = "EXAMPLE-description-Value"
													},
													ParameterName = "EXAMPLE-parameterName-Value",
													Description = "EXAMPLE-description-Value",
													DefaultValue = "EXAMPLE-defaultValue-Value",
													ClassFieldName = "EXAMPLE-classFieldName-Value",
													IsStatic = false,
													IsClassFieldValue = false
												}
											}
										}
									},
									Key = "EXAMPLE-key-Value",
									ModelVersion = "EXAMPLE-modelVersion-Value",
									ParentRef = new Oci.DataintegrationService.Models.ParentReference
									{
										Parent = "EXAMPLE-parent-Value",
										RootDocId = "ocid1.test.oc1..<unique_ID>EXAMPLE-rootDocId-Value"
									},
									Name = "EXAMPLE-name-Value",
									ObjectStatus = 723,
									Description = "EXAMPLE-description-Value"
								}
							}
						},
						ObjectVersion = 793,
						ParentRef = new Oci.DataintegrationService.Models.ParentReference
						{
							Parent = "EXAMPLE-parent-Value",
							RootDocId = "ocid1.test.oc1..<unique_ID>EXAMPLE-rootDocId-Value"
						},
						Metadata = new Oci.DataintegrationService.Models.ObjectMetadata
						{
							CreatedBy = "EXAMPLE-createdBy-Value",
							CreatedByName = "EXAMPLE-createdByName-Value",
							UpdatedBy = "EXAMPLE-updatedBy-Value",
							UpdatedByName = "EXAMPLE-updatedByName-Value",
							TimeCreated = DateTime.Parse("09/26/2046 02:58:20"),
							TimeUpdated = DateTime.Parse("12/02/2022 17:51:18"),
							AggregatorKey = "EXAMPLE-aggregatorKey-Value",
							Aggregator = new Oci.DataintegrationService.Models.AggregatorSummary
							{
								Type = "EXAMPLE-type-Value",
								Key = "EXAMPLE-key-Value",
								Name = "EXAMPLE-name-Value",
								Identifier = "EXAMPLE-identifier-Value",
								Description = "EXAMPLE-description-Value"
							},
							IdentifierPath = "EXAMPLE-identifierPath-Value",
							InfoFields = new Dictionary<string, string>()
							{
								{
									"EXAMPLE_KEY_QC8tp", 
									"EXAMPLE_VALUE_20ykDf8vxFB9DzQT7acw"
								}
							},
							RegistryVersion = 7,
							Labels = new List<string>
							{
								"EXAMPLE--Value"
							},
							IsFavorite = true,
							CountStatistics = new Oci.DataintegrationService.Models.CountStatistic
							{
								ObjectTypeCountList = new List<Oci.DataintegrationService.Models.CountStatisticSummary>
								{
									new Oci.DataintegrationService.Models.CountStatisticSummary
									{
										ObjectType = Oci.DataintegrationService.Models.CountStatisticSummary.ObjectTypeEnum.Project,
										ObjectCount = 747
									}
								}
							}
						}
					},
					StagingConnection = new Oci.DataintegrationService.Models.ConnectionSummaryFromObjectStorage
					{
						CredentialFileContent = "EXAMPLE-credentialFileContent-Value",
						UserId = "ocid1.test.oc1..<unique_ID>EXAMPLE-userId-Value",
						FingerPrint = "EXAMPLE-fingerPrint-Value",
						PassPhrase = "EXAMPLE-passPhrase-Value",
						Key = "EXAMPLE-key-Value",
						ModelVersion = "EXAMPLE-modelVersion-Value",
						ParentRef = new Oci.DataintegrationService.Models.ParentReference
						{
							Parent = "EXAMPLE-parent-Value",
							RootDocId = "ocid1.test.oc1..<unique_ID>EXAMPLE-rootDocId-Value"
						},
						Name = "EXAMPLE-name-Value",
						Description = "EXAMPLE-description-Value",
						ObjectVersion = 835,
						ObjectStatus = 819,
						Identifier = "EXAMPLE-identifier-Value",
						PrimarySchema = new Oci.DataintegrationService.Models.Schema
						{
							Key = "EXAMPLE-key-Value",
							ModelType = "EXAMPLE-modelType-Value",
							ModelVersion = "EXAMPLE-modelVersion-Value",
							ParentRef = new Oci.DataintegrationService.Models.ParentReference
							{
								Parent = "EXAMPLE-parent-Value",
								RootDocId = "ocid1.test.oc1..<unique_ID>EXAMPLE-rootDocId-Value"
							},
							Name = "EXAMPLE-name-Value",
							ResourceName = "EXAMPLE-resourceName-Value",
							Description = "EXAMPLE-description-Value",
							ObjectVersion = 30,
							ExternalKey = "EXAMPLE-externalKey-Value",
							IsHasContainers = false,
							DefaultConnection = "EXAMPLE-defaultConnection-Value",
							ObjectStatus = 355,
							Identifier = "EXAMPLE-identifier-Value",
							Metadata = new Oci.DataintegrationService.Models.ObjectMetadata
							{
								CreatedBy = "EXAMPLE-createdBy-Value",
								CreatedByName = "EXAMPLE-createdByName-Value",
								UpdatedBy = "EXAMPLE-updatedBy-Value",
								UpdatedByName = "EXAMPLE-updatedByName-Value",
								TimeCreated = DateTime.Parse("05/14/2031 03:56:11"),
								TimeUpdated = DateTime.Parse("05/12/2037 14:57:22"),
								AggregatorKey = "EXAMPLE-aggregatorKey-Value",
								Aggregator = new Oci.DataintegrationService.Models.AggregatorSummary
								{
									Type = "EXAMPLE-type-Value",
									Key = "EXAMPLE-key-Value",
									Name = "EXAMPLE-name-Value",
									Identifier = "EXAMPLE-identifier-Value",
									Description = "EXAMPLE-description-Value"
								},
								IdentifierPath = "EXAMPLE-identifierPath-Value",
								InfoFields = new Dictionary<string, string>()
								{
									{
										"EXAMPLE_KEY_xbsUF", 
										"EXAMPLE_VALUE_k5o51UTpx8wHGG04QsGV"
									}
								},
								RegistryVersion = 616,
								Labels = new List<string>
								{
									"EXAMPLE--Value"
								},
								IsFavorite = true,
								CountStatistics = new Oci.DataintegrationService.Models.CountStatistic
								{
									ObjectTypeCountList = new List<Oci.DataintegrationService.Models.CountStatisticSummary>
									{
										new Oci.DataintegrationService.Models.CountStatisticSummary
										{
											ObjectType = Oci.DataintegrationService.Models.CountStatisticSummary.ObjectTypeEnum.FunctionLibrary,
											ObjectCount = 2
										}
									}
								}
							}
						},
						ConnectionProperties = new List<Oci.DataintegrationService.Models.ConnectionProperty>
						{
							new Oci.DataintegrationService.Models.ConnectionProperty
							{
								Name = "EXAMPLE-name-Value",
								Value = "EXAMPLE-value-Value"
							}
						},
						IsDefault = false,
						Metadata = new Oci.DataintegrationService.Models.ObjectMetadata
						{
							CreatedBy = "EXAMPLE-createdBy-Value",
							CreatedByName = "EXAMPLE-createdByName-Value",
							UpdatedBy = "EXAMPLE-updatedBy-Value",
							UpdatedByName = "EXAMPLE-updatedByName-Value",
							TimeCreated = DateTime.Parse("09/15/2020 21:58:49"),
							TimeUpdated = DateTime.Parse("07/21/2008 22:44:45"),
							AggregatorKey = "EXAMPLE-aggregatorKey-Value",
							Aggregator = new Oci.DataintegrationService.Models.AggregatorSummary
							{
								Type = "EXAMPLE-type-Value",
								Key = "EXAMPLE-key-Value",
								Name = "EXAMPLE-name-Value",
								Identifier = "EXAMPLE-identifier-Value",
								Description = "EXAMPLE-description-Value"
							},
							IdentifierPath = "EXAMPLE-identifierPath-Value",
							InfoFields = new Dictionary<string, string>()
							{
								{
									"EXAMPLE_KEY_gyFf5", 
									"EXAMPLE_VALUE_UATS3Cq7EyOIWIoDZPPV"
								}
							},
							RegistryVersion = 258,
							Labels = new List<string>
							{
								"EXAMPLE--Value"
							},
							IsFavorite = false,
							CountStatistics = new Oci.DataintegrationService.Models.CountStatistic
							{
								ObjectTypeCountList = new List<Oci.DataintegrationService.Models.CountStatisticSummary>
								{
									new Oci.DataintegrationService.Models.CountStatisticSummary
									{
										ObjectType = Oci.DataintegrationService.Models.CountStatisticSummary.ObjectTypeEnum.DataAsset,
										ObjectCount = 605
									}
								}
							}
						},
						KeyMap = new Dictionary<string, string>()
						{
							{
								"EXAMPLE_KEY_LwWgk", 
								"EXAMPLE_VALUE_zMYSgGEfA9pZo9j1CSzE"
							}
						}
					},
					BucketSchema = new Oci.DataintegrationService.Models.Schema
					{
						Key = "EXAMPLE-key-Value",
						ModelType = "EXAMPLE-modelType-Value",
						ModelVersion = "EXAMPLE-modelVersion-Value",
						ParentRef = new Oci.DataintegrationService.Models.ParentReference
						{
							Parent = "EXAMPLE-parent-Value",
							RootDocId = "ocid1.test.oc1..<unique_ID>EXAMPLE-rootDocId-Value"
						},
						Name = "EXAMPLE-name-Value",
						ResourceName = "EXAMPLE-resourceName-Value",
						Description = "EXAMPLE-description-Value",
						ObjectVersion = 947,
						ExternalKey = "EXAMPLE-externalKey-Value",
						IsHasContainers = false,
						DefaultConnection = "EXAMPLE-defaultConnection-Value",
						ObjectStatus = 754,
						Identifier = "EXAMPLE-identifier-Value",
						Metadata = new Oci.DataintegrationService.Models.ObjectMetadata
						{
							CreatedBy = "EXAMPLE-createdBy-Value",
							CreatedByName = "EXAMPLE-createdByName-Value",
							UpdatedBy = "EXAMPLE-updatedBy-Value",
							UpdatedByName = "EXAMPLE-updatedByName-Value",
							TimeCreated = DateTime.Parse("06/20/2013 16:20:02"),
							TimeUpdated = DateTime.Parse("03/28/2008 14:25:40"),
							AggregatorKey = "EXAMPLE-aggregatorKey-Value",
							Aggregator = new Oci.DataintegrationService.Models.AggregatorSummary
							{
								Type = "EXAMPLE-type-Value",
								Key = "EXAMPLE-key-Value",
								Name = "EXAMPLE-name-Value",
								Identifier = "EXAMPLE-identifier-Value",
								Description = "EXAMPLE-description-Value"
							},
							IdentifierPath = "EXAMPLE-identifierPath-Value",
							InfoFields = new Dictionary<string, string>()
							{
								{
									"EXAMPLE_KEY_6SfLB", 
									"EXAMPLE_VALUE_DpcTwXHs7Riwfce6b6MD"
								}
							},
							RegistryVersion = 259,
							Labels = new List<string>
							{
								"EXAMPLE--Value"
							},
							IsFavorite = true,
							CountStatistics = new Oci.DataintegrationService.Models.CountStatistic
							{
								ObjectTypeCountList = new List<Oci.DataintegrationService.Models.CountStatisticSummary>
								{
									new Oci.DataintegrationService.Models.CountStatisticSummary
									{
										ObjectType = Oci.DataintegrationService.Models.CountStatisticSummary.ObjectTypeEnum.Task,
										ObjectCount = 724
									}
								}
							}
						}
					},
					Key = "EXAMPLE-key-Value",
					ModelVersion = "EXAMPLE-modelVersion-Value",
					Name = "EXAMPLE-name-Value",
					Description = "EXAMPLE-description-Value",
					ObjectStatus = 215,
					Identifier = "EXAMPLE-identifier-Value",
					ExternalKey = "EXAMPLE-externalKey-Value",
					AssetProperties = new Dictionary<string, string>()
					{
						{
							"EXAMPLE_KEY_QX07X", 
							"EXAMPLE_VALUE_F4MoMBj7dkVsKuHLPUkY"
						}
					},
					RegistryMetadata = new Oci.DataintegrationService.Models.RegistryMetadata
					{
						AggregatorKey = "EXAMPLE-aggregatorKey-Value",
						Labels = new List<string>
						{
							"EXAMPLE--Value"
						},
						RegistryVersion = 795,
						Key = "EXAMPLE-key-Value",
						IsFavorite = false
					}
				},
				Connection = new Oci.DataintegrationService.Models.CreateConnectionFromMySQL
				{
					Username = "EXAMPLE-username-Value",
					Password = "EXAMPLE-password-Value",
					PasswordSecret = new Oci.DataintegrationService.Models.SensitiveAttribute
					{
						SecretConfig = new Oci.DataintegrationService.Models.OciVaultSecretConfig
						{
							SecretId = "ocid1.test.oc1..<unique_ID>EXAMPLE-secretId-Value"
						},
						Value = "EXAMPLE-value-Value"
					},
					Key = "EXAMPLE-key-Value",
					ModelVersion = "EXAMPLE-modelVersion-Value",
					ParentRef = new Oci.DataintegrationService.Models.ParentReference
					{
						Parent = "EXAMPLE-parent-Value",
						RootDocId = "ocid1.test.oc1..<unique_ID>EXAMPLE-rootDocId-Value"
					},
					Name = "EXAMPLE-name-Value",
					Description = "EXAMPLE-description-Value",
					ObjectStatus = 652,
					Identifier = "EXAMPLE-identifier-Value",
					ConnectionProperties = new List<Oci.DataintegrationService.Models.ConnectionProperty>
					{
						new Oci.DataintegrationService.Models.ConnectionProperty
						{
							Name = "EXAMPLE-name-Value",
							Value = "EXAMPLE-value-Value"
						}
					},
					RegistryMetadata = new Oci.DataintegrationService.Models.RegistryMetadata
					{
						AggregatorKey = "EXAMPLE-aggregatorKey-Value",
						Labels = new List<string>
						{
							"EXAMPLE--Value"
						},
						RegistryVersion = 647,
						Key = "EXAMPLE-key-Value",
						IsFavorite = false
					}
				},
				RegistryMetadata = new Oci.DataintegrationService.Models.RegistryMetadata
				{
					AggregatorKey = "EXAMPLE-aggregatorKey-Value",
					Labels = new List<string>
					{
						"EXAMPLE--Value"
					},
					RegistryVersion = 440,
					Key = "EXAMPLE-key-Value",
					IsFavorite = true
				}
			};
			var createConnectionValidationRequest = new Oci.DataintegrationService.Requests.CreateConnectionValidationRequest
			{
				WorkspaceId = "ocid1.test.oc1..<unique_ID>EXAMPLE-workspaceId-Value",
				CreateConnectionValidationDetails = createConnectionValidationDetails,
				OpcRequestId = "L52UMG1TH2FY5FG6RLBS<unique_ID>",
				OpcRetryToken = "EXAMPLE-opcRetryToken-Value"
			};

            // 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. 
            var provider = new ConfigFileAuthenticationDetailsProvider("DEFAULT");
            try
            {
                // Create a service client and send the request.
				using (var client = new DataIntegrationClient(provider, new ClientConfiguration()))
				{
					var response = await client.CreateConnectionValidation(createConnectionValidationRequest);
					// Retrieve value from the response.
					var validationMessageValue = response.ConnectionValidation.ValidationMessage;
				}
            }
            catch (Exception e)
            {
                Console.WriteLine($"CreateConnectionValidation Failed with {e.Message}");
                throw e;
            }
        }

    }
}