// 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 CreateDataAssetExample
{
public static async Task Main()
{
// Create a request and dependent object(s).
var createDataAssetDetails = new Oci.DataintegrationService.Models.CreateDataAssetFromAtp
{
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.CreateConnectionFromAtp
{
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 = 476,
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 = 606,
Key = "EXAMPLE-key-Value",
IsFavorite = false
}
},
StagingDataAsset = new Oci.DataintegrationService.Models.DataAssetFromOraclePeopleSoftDetails
{
Host = "EXAMPLE-host-Value",
Port = "EXAMPLE-port-Value",
ServiceName = "EXAMPLE-serviceName-Value",
DriverClass = "EXAMPLE-driverClass-Value",
Sid = "EXAMPLE-sid-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"
},
DefaultConnection = new Oci.DataintegrationService.Models.ConnectionFromOraclePeopleSoftDetails
{
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",
ObjectVersion = 323,
ObjectStatus = 786,
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 = 729,
ExternalKey = "EXAMPLE-externalKey-Value",
IsHasContainers = true,
DefaultConnection = "EXAMPLE-defaultConnection-Value",
ObjectStatus = 739,
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/09/2035 19:31:56"),
TimeUpdated = DateTime.Parse("09/24/2013 01:58:36"),
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_fq269",
"EXAMPLE_VALUE_M85tbknTcpPgoJCj39hl"
}
},
RegistryVersion = 151,
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.Connection,
ObjectCount = 439
}
}
}
}
},
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/10/2020 23:30:56"),
TimeUpdated = DateTime.Parse("01/13/2006 23:48:13"),
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_7rvo5",
"EXAMPLE_VALUE_Lr19hMBL4HpstoCMFqXx"
}
},
RegistryVersion = 707,
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.Folder,
ObjectCount = 981
}
}
}
}
},
Key = "EXAMPLE-key-Value",
ModelVersion = "EXAMPLE-modelVersion-Value",
Name = "EXAMPLE-name-Value",
Description = "EXAMPLE-description-Value",
ObjectStatus = 650,
Identifier = "EXAMPLE-identifier-Value",
ExternalKey = "EXAMPLE-externalKey-Value",
AssetProperties = new Dictionary<string, string>()
{
{
"EXAMPLE_KEY_u7GwV",
"EXAMPLE_VALUE_toXd3DQ51qTuV4Tuix5R"
}
},
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 = 555,
TypeMappingTo = new Dictionary<string, string>()
{
{
"EXAMPLE_KEY_WKPdO",
"EXAMPLE_VALUE_w84T6qhn0abt87jqgvgX"
}
},
TypeMappingFrom = new Dictionary<string, string>()
{
{
"EXAMPLE_KEY_R7Ccr",
"EXAMPLE_VALUE_4vJ8GNJXzLRzfpwhYbd5"
}
},
ObjectStatus = 51,
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 = 634,
ConfigParameterDefinitions = new Dictionary<string, Oci.DataintegrationService.Models.ConfigParameterDefinition>()
{
{
"EXAMPLE_KEY_K6bJU",
new Oci.DataintegrationService.Models.ConfigParameterDefinition
{
ParameterType = new Oci.DataintegrationService.Models.ArrayType
{
ElementType = "EXAMPLE-elementType-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 = 82,
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 = 16,
Description = "EXAMPLE-description-Value"
}
}
},
ObjectVersion = 298,
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("05/06/2043 03:28:09"),
TimeUpdated = DateTime.Parse("07/21/2001 11:56:17"),
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_PArPL",
"EXAMPLE_VALUE_VSseuhMuhaL9LXEWsEB8"
}
},
RegistryVersion = 387,
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.Connection,
ObjectCount = 775
}
}
}
},
KeyMap = new Dictionary<string, string>()
{
{
"EXAMPLE_KEY_6UdeT",
"EXAMPLE_VALUE_XqLhtdr4pn3dAj5LmMrY"
}
}
},
StagingConnection = new Oci.DataintegrationService.Models.ConnectionFromJdbc
{
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 = 491,
ObjectStatus = 486,
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 = 306,
ExternalKey = "EXAMPLE-externalKey-Value",
IsHasContainers = false,
DefaultConnection = "EXAMPLE-defaultConnection-Value",
ObjectStatus = 855,
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("04/11/2034 20:57:03"),
TimeUpdated = DateTime.Parse("07/14/2047 03:16: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_qjBGu",
"EXAMPLE_VALUE_xPiR50co7uZACcvMXuw1"
}
},
RegistryVersion = 464,
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.Task,
ObjectCount = 527
}
}
}
}
},
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("06/30/2002 19:03:06"),
TimeUpdated = DateTime.Parse("03/16/2042 06:22:34"),
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_qUQC8",
"EXAMPLE_VALUE_tp20ykDf8vxFB9DzQT7a"
}
},
RegistryVersion = 60,
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 = 735
}
}
}
},
KeyMap = new Dictionary<string, string>()
{
{
"EXAMPLE_KEY_ZKl36",
"EXAMPLE_VALUE_SMv4V0a9dKVA0IMnxCbE"
}
}
},
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 = 415,
ExternalKey = "EXAMPLE-externalKey-Value",
IsHasContainers = false,
DefaultConnection = "EXAMPLE-defaultConnection-Value",
ObjectStatus = 802,
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/19/2040 05:24:59"),
TimeUpdated = DateTime.Parse("08/09/2006 00:55:14"),
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_VyAoM",
"EXAMPLE_VALUE_QFnlrQXCYzP5jGOc45tH"
}
},
RegistryVersion = 513,
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.Connection,
ObjectCount = 297
}
}
}
}
},
Key = "EXAMPLE-key-Value",
ModelVersion = "EXAMPLE-modelVersion-Value",
Name = "EXAMPLE-name-Value",
Description = "EXAMPLE-description-Value",
ObjectStatus = 613,
Identifier = "EXAMPLE-identifier-Value",
ExternalKey = "EXAMPLE-externalKey-Value",
AssetProperties = new Dictionary<string, string>()
{
{
"EXAMPLE_KEY_y6KYZ",
"EXAMPLE_VALUE_VYap74oR14PdRQxEAjZW"
}
},
RegistryMetadata = new Oci.DataintegrationService.Models.RegistryMetadata
{
AggregatorKey = "EXAMPLE-aggregatorKey-Value",
Labels = new List<string>
{
"EXAMPLE--Value"
},
RegistryVersion = 701,
Key = "EXAMPLE-key-Value",
IsFavorite = true
}
};
var createDataAssetRequest = new Oci.DataintegrationService.Requests.CreateDataAssetRequest
{
WorkspaceId = "ocid1.test.oc1..<unique_ID>EXAMPLE-workspaceId-Value",
CreateDataAssetDetails = createDataAssetDetails,
OpcRequestId = "5DST9OVNCLPFPEDSR9R2<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.CreateDataAsset(createDataAssetRequest);
// Retrieve value from the response.
var keyValue = response.DataAsset.Key;
}
}
catch (Exception e)
{
Console.WriteLine($"CreateDataAsset Failed with {e.Message}");
throw e;
}
}
}
}