// 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 CreateExternalPublicationExample
{
public static async Task Main()
{
// Create a request and dependent object(s).
var createExternalPublicationDetails = new Oci.DataintegrationService.Models.CreateExternalPublicationDetails
{
ApplicationId = "ocid1.test.oc1..<unique_ID>EXAMPLE-applicationId-Value",
ApplicationCompartmentId = "ocid1.test.oc1..<unique_ID>EXAMPLE-applicationCompartmentId-Value",
DisplayName = "EXAMPLE-displayName-Value",
Description = "EXAMPLE-description-Value",
ResourceConfiguration = new Oci.DataintegrationService.Models.ResourceConfiguration
{
SparkVersion = "EXAMPLE-sparkVersion-Value",
DriverShape = "EXAMPLE-driverShape-Value",
ExecutorShape = "EXAMPLE-executorShape-Value",
TotalExecutors = 888
},
ConfigurationDetails = new Oci.DataintegrationService.Models.ConfigurationDetails
{
DataAsset = new Oci.DataintegrationService.Models.DataAssetFromLakeDetails
{
LakeId = "ocid1.test.oc1..<unique_ID>EXAMPLE-lakeId-Value",
MetastoreId = "ocid1.test.oc1..<unique_ID>EXAMPLE-metastoreId-Value",
LakeProxyEndpoint = "EXAMPLE-lakeProxyEndpoint-Value",
DefaultConnection = new Oci.DataintegrationService.Models.ConnectionFromLakeDetails
{
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 = 95,
ObjectStatus = 319,
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 = 373,
ExternalKey = "EXAMPLE-externalKey-Value",
IsHasContainers = true,
DefaultConnection = "EXAMPLE-defaultConnection-Value",
ObjectStatus = 541,
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/07/2049 21:26:59"),
TimeUpdated = DateTime.Parse("10/06/2026 22:05:28"),
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_6UevH",
"EXAMPLE_VALUE_JH80eOlpkuO92EKYFRYp"
}
},
RegistryVersion = 142,
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 = 894
}
}
}
}
},
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/08/2040 05:49:55"),
TimeUpdated = DateTime.Parse("04/09/2008 11:02:38"),
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_C5T42",
"EXAMPLE_VALUE_RPc0WasrXXQSa4nSKoK4"
}
},
RegistryVersion = 473,
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 = 315
}
}
}
}
},
Key = "EXAMPLE-key-Value",
ModelVersion = "EXAMPLE-modelVersion-Value",
Name = "EXAMPLE-name-Value",
Description = "EXAMPLE-description-Value",
ObjectStatus = 265,
Identifier = "EXAMPLE-identifier-Value",
ExternalKey = "EXAMPLE-externalKey-Value",
AssetProperties = new Dictionary<string, string>()
{
{
"EXAMPLE_KEY_2kEzQ",
"EXAMPLE_VALUE_gLJOkmZa7u9HWgswPRC8"
}
},
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 = 293,
TypeMappingTo = new Dictionary<string, string>()
{
{
"EXAMPLE_KEY_SLJ2X",
"EXAMPLE_VALUE_ZKRQsBfhd059hDf3hPID"
}
},
TypeMappingFrom = new Dictionary<string, string>()
{
{
"EXAMPLE_KEY_hNia4",
"EXAMPLE_VALUE_V1pfL1G3pgvkzEwxqbAD"
}
},
ObjectStatus = 797,
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 = 3,
ConfigParameterDefinitions = new Dictionary<string, Oci.DataintegrationService.Models.ConfigParameterDefinition>()
{
{
"EXAMPLE_KEY_SHqhg",
new Oci.DataintegrationService.Models.ConfigParameterDefinition
{
ParameterType = new Oci.DataintegrationService.Models.DynamicType
{
TypeHandler = new Oci.DataintegrationService.Models.RuleTypeConfig
{
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"
},
Scope = "EXAMPLE-scope-Value",
ScopeReference = new Oci.DataintegrationService.Models.ScopeReference
{
ReferenceObject = "EXAMPLE-referenceObject-Value",
ReferenceType = Oci.DataintegrationService.Models.ScopeReference.ReferenceTypeEnum.BoundEntityShape,
RefObjectName = "EXAMPLE-refObjectName-Value"
},
IsOrderByRule = true,
ProjectionRules = new List<Oci.DataintegrationService.Models.ProjectionRule>
{
new Oci.DataintegrationService.Models.NameListRule
{
IsSkipRemainingRulesOnMatch = true,
Scope = "EXAMPLE-scope-Value",
IsCascade = false,
MatchingStrategy = Oci.DataintegrationService.Models.NameListRule.MatchingStrategyEnum.TagsOnly,
IsCaseSensitive = true,
RuleType = Oci.DataintegrationService.Models.NameListRule.RuleTypeEnum.Include,
Names = 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"
},
IsJavaRegexSyntax = true,
ConfigValues = new Oci.DataintegrationService.Models.ConfigValues
{
ConfigParamValues = new Dictionary<string, Oci.DataintegrationService.Models.ConfigParameterValue>()
{
{
"EXAMPLE_KEY_baX2C",
new Oci.DataintegrationService.Models.ConfigParameterValue
{
StringValue = "EXAMPLE-stringValue-Value",
IntValue = 218,
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"
}
},
ObjectStatus = 173,
Description = "EXAMPLE-description-Value"
}
},
ConfigValues = new Oci.DataintegrationService.Models.ConfigValues
{
ConfigParamValues = new Dictionary<string, Oci.DataintegrationService.Models.ConfigParameterValue>()
{
{
"EXAMPLE_KEY_ubjTQ",
new Oci.DataintegrationService.Models.ConfigParameterValue
{
StringValue = "EXAMPLE-stringValue-Value",
IntValue = 315,
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"
}
},
ObjectStatus = 515
},
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 = 804,
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 = 899,
Description = "EXAMPLE-description-Value"
}
}
},
ObjectVersion = 774,
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/01/2028 10:35:41"),
TimeUpdated = DateTime.Parse("04/06/2027 10:15:07"),
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_UgN2b",
"EXAMPLE_VALUE_UPbBYlNsYuapqJ8lTqoo"
}
},
RegistryVersion = 397,
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.Folder,
ObjectCount = 596
}
}
}
},
KeyMap = new Dictionary<string, string>()
{
{
"EXAMPLE_KEY_f21Zs",
"EXAMPLE_VALUE_82R4HhC7aNsdkLcQN5Bi"
}
}
},
Connection = new Oci.DataintegrationService.Models.ConnectionFromOracleEbs
{
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 = 602,
ObjectStatus = 933,
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 = 966,
ExternalKey = "EXAMPLE-externalKey-Value",
IsHasContainers = false,
DefaultConnection = "EXAMPLE-defaultConnection-Value",
ObjectStatus = 529,
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/12/2038 08:29:43"),
TimeUpdated = DateTime.Parse("09/18/2040 07:39: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_nw0vY",
"EXAMPLE_VALUE_DKS5L0LuW3eyfLCFaeBe"
}
},
RegistryVersion = 721,
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 = 284
}
}
}
}
},
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("07/24/2028 17:43:42"),
TimeUpdated = DateTime.Parse("01/14/2010 12:50: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_inUbI",
"EXAMPLE_VALUE_L5j01FYamFc4luSAGFT2"
}
},
RegistryVersion = 368,
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 = 703
}
}
}
},
KeyMap = new Dictionary<string, string>()
{
{
"EXAMPLE_KEY_ofpDk",
"EXAMPLE_VALUE_t9vaCqeCx6iCVuAHglkr"
}
}
},
CompartmentId = "ocid1.test.oc1..<unique_ID>EXAMPLE-compartmentId-Value",
Schema = 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 = 71,
ExternalKey = "EXAMPLE-externalKey-Value",
IsHasContainers = false,
DefaultConnection = "EXAMPLE-defaultConnection-Value",
ObjectStatus = 891,
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("02/04/2041 08:12:15"),
TimeUpdated = DateTime.Parse("02/09/2043 04:51:06"),
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_LgPiN",
"EXAMPLE_VALUE_ylFXfJd9pd7HEJCaIr8e"
}
},
RegistryVersion = 923,
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 = 543
}
}
}
}
}
}
};
var createExternalPublicationRequest = new Oci.DataintegrationService.Requests.CreateExternalPublicationRequest
{
WorkspaceId = "ocid1.test.oc1..<unique_ID>EXAMPLE-workspaceId-Value",
TaskKey = "EXAMPLE-taskKey-Value",
CreateExternalPublicationDetails = createExternalPublicationDetails,
OpcRequestId = "UAADKYCVIFRGQ8UEOY3I<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.CreateExternalPublication(createExternalPublicationRequest);
// Retrieve value from the response.
var applicationIdValue = response.ExternalPublication.ApplicationId;
}
}
catch (Exception e)
{
Console.WriteLine($"CreateExternalPublication Failed with {e.Message}");
throw e;
}
}
}
}