// 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.CreateDataAssetFromFusionApp
{
ServiceUrl = "EXAMPLE-serviceUrl-Value",
DefaultConnection = new Oci.DataintegrationService.Models.CreateConnectionFromOAuth2
{
AccessTokenUrl = "EXAMPLE-accessTokenUrl-Value",
ClientId = "ocid1.test.oc1..<unique_ID>EXAMPLE-clientId-Value",
ClientSecret = new Oci.DataintegrationService.Models.SensitiveAttribute
{
SecretConfig = new Oci.DataintegrationService.Models.OciVaultSecretConfig
{
SecretId = "ocid1.test.oc1..<unique_ID>EXAMPLE-secretId-Value"
},
Value = "EXAMPLE-value-Value"
},
Scope = "EXAMPLE-scope-Value",
GrantType = Oci.DataintegrationService.Models.CreateConnectionFromOAuth2.GrantTypeEnum.ClientCredentials,
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 = 168,
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 = 277,
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 = 812,
ObjectStatus = 192,
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 = 691,
ExternalKey = "EXAMPLE-externalKey-Value",
IsHasContainers = true,
DefaultConnection = "EXAMPLE-defaultConnection-Value",
ObjectStatus = 445,
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/30/2037 00:50:27"),
TimeUpdated = DateTime.Parse("01/10/2038 21:57: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_Bxtwz",
"EXAMPLE_VALUE_ZlZdQYBklOFe6i1OIIsO"
}
},
RegistryVersion = 55,
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 = 325
}
}
}
}
},
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("02/09/2000 19:15:02"),
TimeUpdated = DateTime.Parse("06/29/2001 05:30:19"),
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_e4sKj",
"EXAMPLE_VALUE_6nf5pUR2YgTV5aLS3Qug"
}
},
RegistryVersion = 663,
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.DataFlow,
ObjectCount = 603
}
}
}
},
KeyMap = new Dictionary<string, string>()
{
{
"EXAMPLE_KEY_wya4e",
"EXAMPLE_VALUE_CBah5ZbM4zzGj8ShkTMZ"
}
}
},
Key = "EXAMPLE-key-Value",
ModelVersion = "EXAMPLE-modelVersion-Value",
Name = "EXAMPLE-name-Value",
Description = "EXAMPLE-description-Value",
ObjectStatus = 145,
Identifier = "EXAMPLE-identifier-Value",
ExternalKey = "EXAMPLE-externalKey-Value",
AssetProperties = new Dictionary<string, string>()
{
{
"EXAMPLE_KEY_CSIF7",
"EXAMPLE_VALUE_VsgieoAwdSLazFmRjR93"
}
},
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 = 582,
TypeMappingTo = new Dictionary<string, string>()
{
{
"EXAMPLE_KEY_2I6wU",
"EXAMPLE_VALUE_iqqk4F6ItV5d9jidE1eY"
}
},
TypeMappingFrom = new Dictionary<string, string>()
{
{
"EXAMPLE_KEY_f3lDw",
"EXAMPLE_VALUE_Wzs2poYMPICqCBVo77uw"
}
},
ObjectStatus = 618,
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 = 878,
ConfigParameterDefinitions = new Dictionary<string, Oci.DataintegrationService.Models.ConfigParameterDefinition>()
{
{
"EXAMPLE_KEY_Rr3l0",
new Oci.DataintegrationService.Models.ConfigParameterDefinition
{
ParameterType = new Oci.DataintegrationService.Models.ConfiguredType
{
WrappedType = "EXAMPLE-wrappedType-Value",
ConfigValues = new Oci.DataintegrationService.Models.ConfigValues
{
ConfigParamValues = new Dictionary<string, Oci.DataintegrationService.Models.ConfigParameterValue>()
{
{
"EXAMPLE_KEY_v7H5h",
new Oci.DataintegrationService.Models.ConfigParameterValue
{
StringValue = "EXAMPLE-stringValue-Value",
IntValue = 452,
ObjectValue = "EXAMPLE-objectValue-Value",
RefValue = "EXAMPLE-refValue-Value",
ParameterValue = "EXAMPLE-parameterValue-Value",
RootObjectValue = "EXAMPLE-rootObjectValue-Value"
}
}
},
ParentRef = new Oci.DataintegrationService.Models.ParentReference
{
Parent = "EXAMPLE-parent-Value",
RootDocId = "ocid1.test.oc1..<unique_ID>EXAMPLE-rootDocId-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 = 470,
Description = "EXAMPLE-description-Value"
},
ParameterName = "EXAMPLE-parameterName-Value",
Description = "EXAMPLE-description-Value",
DefaultValue = "EXAMPLE-defaultValue-Value",
ClassFieldName = "EXAMPLE-classFieldName-Value",
IsStatic = false,
IsClassFieldValue = true
}
}
}
},
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 = 196,
Description = "EXAMPLE-description-Value"
}
}
},
ObjectVersion = 442,
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("03/31/2019 23:58:32"),
TimeUpdated = DateTime.Parse("03/07/2028 22:34:24"),
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_Y7a05",
"EXAMPLE_VALUE_ungAjimt4eMsqRdwy7nk"
}
},
RegistryVersion = 612,
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 = 787
}
}
}
}
},
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 = 945,
ObjectStatus = 372,
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 = 809,
ExternalKey = "EXAMPLE-externalKey-Value",
IsHasContainers = false,
DefaultConnection = "EXAMPLE-defaultConnection-Value",
ObjectStatus = 454,
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/30/2045 11:47:30"),
TimeUpdated = DateTime.Parse("03/09/2015 02:22:09"),
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_OH4kv",
"EXAMPLE_VALUE_OCzOza1c87WjobqTjyQd"
}
},
RegistryVersion = 522,
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 = 46
}
}
}
}
},
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("03/18/2007 11:29:50"),
TimeUpdated = DateTime.Parse("12/13/2042 15:57:27"),
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_eqYqc",
"EXAMPLE_VALUE_IAT5HptLESNC3twGCDr1"
}
},
RegistryVersion = 888,
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 = 862
}
}
}
},
KeyMap = new Dictionary<string, string>()
{
{
"EXAMPLE_KEY_MwcF1",
"EXAMPLE_VALUE_IvHNxirfNh39EbzscJrz"
}
}
},
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 = 778,
ExternalKey = "EXAMPLE-externalKey-Value",
IsHasContainers = true,
DefaultConnection = "EXAMPLE-defaultConnection-Value",
ObjectStatus = 91,
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("10/20/2049 05:31:06"),
TimeUpdated = DateTime.Parse("09/24/2029 21:15:32"),
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_QzP2o",
"EXAMPLE_VALUE_a0b9Iw7D6DtnBytnWl7P"
}
},
RegistryVersion = 806,
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 = 9
}
}
}
}
},
Key = "EXAMPLE-key-Value",
ModelVersion = "EXAMPLE-modelVersion-Value",
Name = "EXAMPLE-name-Value",
Description = "EXAMPLE-description-Value",
ObjectStatus = 643,
Identifier = "EXAMPLE-identifier-Value",
ExternalKey = "EXAMPLE-externalKey-Value",
AssetProperties = new Dictionary<string, string>()
{
{
"EXAMPLE_KEY_yNzFY",
"EXAMPLE_VALUE_cfcSdmt6IdYtgErdzgvM"
}
},
RegistryMetadata = new Oci.DataintegrationService.Models.RegistryMetadata
{
AggregatorKey = "EXAMPLE-aggregatorKey-Value",
Labels = new List<string>
{
"EXAMPLE--Value"
},
RegistryVersion = 134,
Key = "EXAMPLE-key-Value",
IsFavorite = false
}
};
var createDataAssetRequest = new Oci.DataintegrationService.Requests.CreateDataAssetRequest
{
WorkspaceId = "ocid1.test.oc1..<unique_ID>EXAMPLE-workspaceId-Value",
CreateDataAssetDetails = createDataAssetDetails,
OpcRequestId = "PQKH9LIURDLPJICJ6BZN<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;
}
}
}
}