// 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.CreateDataAssetFromAdwc
				{
					ServiceName = "EXAMPLE-serviceName-Value",
					DriverClass = "EXAMPLE-driverClass-Value",
					CredentialFileContent = "EXAMPLE-credentialFileContent-Value",
					WalletSecret = new Oci.DataintegrationService.Models.SensitiveAttribute
					{
						SecretConfig = new Oci.DataintegrationService.Models.OciVaultSecretConfig
						{
							SecretId = "ocid1.test.oc1..<unique_ID>EXAMPLE-secretId-Value"
						},
						Value = "EXAMPLE-value-Value"
					},
					WalletPasswordSecret = new Oci.DataintegrationService.Models.SensitiveAttribute
					{
						SecretConfig = new Oci.DataintegrationService.Models.OciVaultSecretConfig
						{
							SecretId = "ocid1.test.oc1..<unique_ID>EXAMPLE-secretId-Value"
						},
						Value = "EXAMPLE-value-Value"
					},
					RegionId = "ocid1.test.oc1..<unique_ID>EXAMPLE-regionId-Value",
					TenancyId = "ocid1.test.oc1..<unique_ID>EXAMPLE-tenancyId-Value",
					CompartmentId = "ocid1.test.oc1..<unique_ID>EXAMPLE-compartmentId-Value",
					AutonomousDbId = "ocid1.test.oc1..<unique_ID>EXAMPLE-autonomousDbId-Value",
					DefaultConnection = new Oci.DataintegrationService.Models.CreateConnectionFromAdwc
					{
						TnsAlias = "EXAMPLE-tnsAlias-Value",
						TnsNames = new List<string>
						{
							"EXAMPLE--Value"
						},
						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 = 949,
						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 = 138,
							Key = "EXAMPLE-key-Value",
							IsFavorite = false
						}
					},
					StagingDataAsset = new Oci.DataintegrationService.Models.DataAssetFromMySQL
					{
						Host = "EXAMPLE-host-Value",
						Port = "EXAMPLE-port-Value",
						ServiceName = "EXAMPLE-serviceName-Value",
						DefaultConnection = new Oci.DataintegrationService.Models.ConnectionFromMySQLDetails
						{
							Username = "EXAMPLE-username-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 = 571,
							ObjectStatus = 866,
							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 = 944,
								ExternalKey = "EXAMPLE-externalKey-Value",
								IsHasContainers = true,
								DefaultConnection = "EXAMPLE-defaultConnection-Value",
								ObjectStatus = 318,
								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("01/17/2028 02:12:14"),
									TimeUpdated = DateTime.Parse("04/01/2034 08:27:15"),
									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_Ld38D", 
											"EXAMPLE_VALUE_QSUDjrLxCFbciqF34GSH"
										}
									},
									RegistryVersion = 456,
									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.Application,
												ObjectCount = 622
											}
										}
									}
								}
							},
							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("06/19/2034 09:30:54"),
								TimeUpdated = DateTime.Parse("09/26/2031 20:27:03"),
								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_zI4Ig", 
										"EXAMPLE_VALUE_U5L2KzUrwXXjPIjzN0BC"
									}
								},
								RegistryVersion = 725,
								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 = 358
										}
									}
								}
							}
						},
						Key = "EXAMPLE-key-Value",
						ModelVersion = "EXAMPLE-modelVersion-Value",
						Name = "EXAMPLE-name-Value",
						Description = "EXAMPLE-description-Value",
						ObjectStatus = 77,
						Identifier = "EXAMPLE-identifier-Value",
						ExternalKey = "EXAMPLE-externalKey-Value",
						AssetProperties = new Dictionary<string, string>()
						{
							{
								"EXAMPLE_KEY_Gm4EE", 
								"EXAMPLE_VALUE_gbtBczKp5imIgyg2MBO8"
							}
						},
						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 = 511,
							TypeMappingTo = new Dictionary<string, string>()
							{
								{
									"EXAMPLE_KEY_rKYo5", 
									"EXAMPLE_VALUE_qqWmCSbQlmtL1l5FUqp0"
								}
							},
							TypeMappingFrom = new Dictionary<string, string>()
							{
								{
									"EXAMPLE_KEY_3VXgZ", 
									"EXAMPLE_VALUE_OqtR4lGZbP8LAP50ncmU"
								}
							},
							ObjectStatus = 244,
							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 = 10,
										ConfigParameterDefinitions = new Dictionary<string, Oci.DataintegrationService.Models.ConfigParameterDefinition>()
										{
											{
												"EXAMPLE_KEY_eDGgE", 
												new Oci.DataintegrationService.Models.ConfigParameterDefinition
												{
													ParameterType = new Oci.DataintegrationService.Models.MaterializedCompositeType
													{
														Elements = new List<string>
														{
															"EXAMPLE--Value"
														},
														PathNames = new List<string>
														{
															"EXAMPLE--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 = 171,
														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 = 265,
									Description = "EXAMPLE-description-Value"
								}
							}
						},
						ObjectVersion = 554,
						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("06/07/2022 11:52:13"),
							TimeUpdated = DateTime.Parse("06/11/2033 00:07:49"),
							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_hSCMz", 
									"EXAMPLE_VALUE_arhiMyjaxTjcgttLla94"
								}
							},
							RegistryVersion = 774,
							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.Connection,
										ObjectCount = 90
									}
								}
							}
						},
						KeyMap = new Dictionary<string, string>()
						{
							{
								"EXAMPLE_KEY_cSduy", 
								"EXAMPLE_VALUE_t06luPrPKTMK7abwtZb9"
							}
						}
					},
					StagingConnection = new Oci.DataintegrationService.Models.ConnectionFromObjectStorage
					{
						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 = 97,
						ObjectStatus = 679,
						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 = 237,
							ExternalKey = "EXAMPLE-externalKey-Value",
							IsHasContainers = false,
							DefaultConnection = "EXAMPLE-defaultConnection-Value",
							ObjectStatus = 311,
							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("03/06/2017 15:03:38"),
								TimeUpdated = DateTime.Parse("10/27/2024 01:40:49"),
								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_gi5zK", 
										"EXAMPLE_VALUE_d1LzGkMs4siebTm6ItI7"
									}
								},
								RegistryVersion = 540,
								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.FunctionLibrary,
											ObjectCount = 504
										}
									}
								}
							}
						},
						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("01/31/2049 13:52:52"),
							TimeUpdated = DateTime.Parse("06/01/2022 11:39:02"),
							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_LB0R0", 
									"EXAMPLE_VALUE_Ljo4SdfuNLj3Q7rR5uxr"
								}
							},
							RegistryVersion = 283,
							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.Application,
										ObjectCount = 664
									}
								}
							}
						},
						KeyMap = new Dictionary<string, string>()
						{
							{
								"EXAMPLE_KEY_FTn1z", 
								"EXAMPLE_VALUE_VSlalICCceOsnkYoEKfq"
							}
						}
					},
					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 = 542,
						ExternalKey = "EXAMPLE-externalKey-Value",
						IsHasContainers = true,
						DefaultConnection = "EXAMPLE-defaultConnection-Value",
						ObjectStatus = 372,
						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("11/29/2009 01:44:59"),
							TimeUpdated = DateTime.Parse("11/25/2005 14:54:42"),
							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_9Bwp9", 
									"EXAMPLE_VALUE_hVBhZZgvISJE1AoWLeqA"
								}
							},
							RegistryVersion = 552,
							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.DataAsset,
										ObjectCount = 814
									}
								}
							}
						}
					},
					Key = "EXAMPLE-key-Value",
					ModelVersion = "EXAMPLE-modelVersion-Value",
					Name = "EXAMPLE-name-Value",
					Description = "EXAMPLE-description-Value",
					ObjectStatus = 208,
					Identifier = "EXAMPLE-identifier-Value",
					ExternalKey = "EXAMPLE-externalKey-Value",
					AssetProperties = new Dictionary<string, string>()
					{
						{
							"EXAMPLE_KEY_mmfG1", 
							"EXAMPLE_VALUE_8ppiMwfAVigZc2Bs2NKy"
						}
					},
					RegistryMetadata = new Oci.DataintegrationService.Models.RegistryMetadata
					{
						AggregatorKey = "EXAMPLE-aggregatorKey-Value",
						Labels = new List<string>
						{
							"EXAMPLE--Value"
						},
						RegistryVersion = 952,
						Key = "EXAMPLE-key-Value",
						IsFavorite = true
					}
				},
				Connection = new Oci.DataintegrationService.Models.CreateConnectionFromOracle
				{
					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 = 472,
					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 = 929,
						Key = "EXAMPLE-key-Value",
						IsFavorite = false
					}
				},
				RegistryMetadata = new Oci.DataintegrationService.Models.RegistryMetadata
				{
					AggregatorKey = "EXAMPLE-aggregatorKey-Value",
					Labels = new List<string>
					{
						"EXAMPLE--Value"
					},
					RegistryVersion = 51,
					Key = "EXAMPLE-key-Value",
					IsFavorite = false
				}
			};
			var createConnectionValidationRequest = new Oci.DataintegrationService.Requests.CreateConnectionValidationRequest
			{
				WorkspaceId = "ocid1.test.oc1..<unique_ID>EXAMPLE-workspaceId-Value",
				CreateConnectionValidationDetails = createConnectionValidationDetails,
				OpcRequestId = "ZTQLHJVP9TKTSMTL9EFE<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;
            }
        }

    }
}

Was this article helpful?