rhizo-co-terraform-provider-oci
Version:
Prebuilt oci Provider for Terraform CDK (cdktf)
932 lines (931 loc) • 151 kB
JavaScript
"use strict";
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w;
Object.defineProperty(exports, "__esModule", { value: true });
exports.DataOciAiDocumentModel = exports.DataOciAiDocumentModelValidationDatasetList = exports.DataOciAiDocumentModelValidationDatasetOutputReference = exports.dataOciAiDocumentModelValidationDatasetToHclTerraform = exports.dataOciAiDocumentModelValidationDatasetToTerraform = exports.DataOciAiDocumentModelTrainingDatasetList = exports.DataOciAiDocumentModelTrainingDatasetOutputReference = exports.dataOciAiDocumentModelTrainingDatasetToHclTerraform = exports.dataOciAiDocumentModelTrainingDatasetToTerraform = exports.DataOciAiDocumentModelTestingDatasetList = exports.DataOciAiDocumentModelTestingDatasetOutputReference = exports.dataOciAiDocumentModelTestingDatasetToHclTerraform = exports.dataOciAiDocumentModelTestingDatasetToTerraform = exports.DataOciAiDocumentModelMetricsList = exports.DataOciAiDocumentModelMetricsOutputReference = exports.dataOciAiDocumentModelMetricsToHclTerraform = exports.dataOciAiDocumentModelMetricsToTerraform = exports.DataOciAiDocumentModelMetricsOverallMetricsReportList = exports.DataOciAiDocumentModelMetricsOverallMetricsReportOutputReference = exports.dataOciAiDocumentModelMetricsOverallMetricsReportToHclTerraform = exports.dataOciAiDocumentModelMetricsOverallMetricsReportToTerraform = exports.DataOciAiDocumentModelMetricsOverallMetricsReportConfidenceEntriesList = exports.DataOciAiDocumentModelMetricsOverallMetricsReportConfidenceEntriesOutputReference = exports.dataOciAiDocumentModelMetricsOverallMetricsReportConfidenceEntriesToHclTerraform = exports.dataOciAiDocumentModelMetricsOverallMetricsReportConfidenceEntriesToTerraform = exports.DataOciAiDocumentModelMetricsLabelMetricsReportList = exports.DataOciAiDocumentModelMetricsLabelMetricsReportOutputReference = exports.dataOciAiDocumentModelMetricsLabelMetricsReportToHclTerraform = exports.dataOciAiDocumentModelMetricsLabelMetricsReportToTerraform = exports.DataOciAiDocumentModelMetricsLabelMetricsReportConfidenceEntriesList = exports.DataOciAiDocumentModelMetricsLabelMetricsReportConfidenceEntriesOutputReference = exports.dataOciAiDocumentModelMetricsLabelMetricsReportConfidenceEntriesToHclTerraform = exports.dataOciAiDocumentModelMetricsLabelMetricsReportConfidenceEntriesToTerraform = exports.DataOciAiDocumentModelMetricsDatasetSummaryList = exports.DataOciAiDocumentModelMetricsDatasetSummaryOutputReference = exports.dataOciAiDocumentModelMetricsDatasetSummaryToHclTerraform = exports.dataOciAiDocumentModelMetricsDatasetSummaryToTerraform = exports.DataOciAiDocumentModelComponentModelsList = exports.DataOciAiDocumentModelComponentModelsOutputReference = exports.dataOciAiDocumentModelComponentModelsToHclTerraform = exports.dataOciAiDocumentModelComponentModelsToTerraform = void 0;
const JSII_RTTI_SYMBOL_1 = Symbol.for("jsii.rtti");
const cdktf = require("cdktf");
function dataOciAiDocumentModelComponentModelsToTerraform(struct) {
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
return struct;
}
if (cdktf.isComplexElement(struct)) {
throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
}
return {};
}
exports.dataOciAiDocumentModelComponentModelsToTerraform = dataOciAiDocumentModelComponentModelsToTerraform;
function dataOciAiDocumentModelComponentModelsToHclTerraform(struct) {
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
return struct;
}
if (cdktf.isComplexElement(struct)) {
throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
}
const attrs = {};
return attrs;
}
exports.dataOciAiDocumentModelComponentModelsToHclTerraform = dataOciAiDocumentModelComponentModelsToHclTerraform;
class DataOciAiDocumentModelComponentModelsOutputReference extends cdktf.ComplexObject {
/**
* @param terraformResource The parent resource
* @param terraformAttribute The attribute on the parent resource this class is referencing
* @param complexObjectIndex the index of this item in the list
* @param complexObjectIsFromSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
*/
constructor(terraformResource, terraformAttribute, complexObjectIndex, complexObjectIsFromSet) {
super(terraformResource, terraformAttribute, complexObjectIsFromSet, complexObjectIndex);
this.isEmptyObject = false;
}
get internalValue() {
let hasAnyValues = this.isEmptyObject;
const internalValueResult = {};
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
}
}
// model_id - computed: true, optional: false, required: false
get modelId() {
return this.getStringAttribute('model_id');
}
}
exports.DataOciAiDocumentModelComponentModelsOutputReference = DataOciAiDocumentModelComponentModelsOutputReference;
_a = JSII_RTTI_SYMBOL_1;
DataOciAiDocumentModelComponentModelsOutputReference[_a] = { fqn: "rhizo-co-terraform-provider-oci.dataOciAiDocumentModel.DataOciAiDocumentModelComponentModelsOutputReference", version: "1.0.0" };
class DataOciAiDocumentModelComponentModelsList extends cdktf.ComplexList {
/**
* @param terraformResource The parent resource
* @param terraformAttribute The attribute on the parent resource this class is referencing
* @param wrapsSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
*/
constructor(terraformResource, terraformAttribute, wrapsSet) {
super(terraformResource, terraformAttribute, wrapsSet);
this.terraformResource = terraformResource;
this.terraformAttribute = terraformAttribute;
this.wrapsSet = wrapsSet;
}
/**
* @param index the index of the item to return
*/
get(index) {
return new DataOciAiDocumentModelComponentModelsOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.DataOciAiDocumentModelComponentModelsList = DataOciAiDocumentModelComponentModelsList;
_b = JSII_RTTI_SYMBOL_1;
DataOciAiDocumentModelComponentModelsList[_b] = { fqn: "rhizo-co-terraform-provider-oci.dataOciAiDocumentModel.DataOciAiDocumentModelComponentModelsList", version: "1.0.0" };
function dataOciAiDocumentModelMetricsDatasetSummaryToTerraform(struct) {
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
return struct;
}
if (cdktf.isComplexElement(struct)) {
throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
}
return {};
}
exports.dataOciAiDocumentModelMetricsDatasetSummaryToTerraform = dataOciAiDocumentModelMetricsDatasetSummaryToTerraform;
function dataOciAiDocumentModelMetricsDatasetSummaryToHclTerraform(struct) {
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
return struct;
}
if (cdktf.isComplexElement(struct)) {
throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
}
const attrs = {};
return attrs;
}
exports.dataOciAiDocumentModelMetricsDatasetSummaryToHclTerraform = dataOciAiDocumentModelMetricsDatasetSummaryToHclTerraform;
class DataOciAiDocumentModelMetricsDatasetSummaryOutputReference extends cdktf.ComplexObject {
/**
* @param terraformResource The parent resource
* @param terraformAttribute The attribute on the parent resource this class is referencing
* @param complexObjectIndex the index of this item in the list
* @param complexObjectIsFromSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
*/
constructor(terraformResource, terraformAttribute, complexObjectIndex, complexObjectIsFromSet) {
super(terraformResource, terraformAttribute, complexObjectIsFromSet, complexObjectIndex);
this.isEmptyObject = false;
}
get internalValue() {
let hasAnyValues = this.isEmptyObject;
const internalValueResult = {};
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
}
}
// test_sample_count - computed: true, optional: false, required: false
get testSampleCount() {
return this.getNumberAttribute('test_sample_count');
}
// training_sample_count - computed: true, optional: false, required: false
get trainingSampleCount() {
return this.getNumberAttribute('training_sample_count');
}
// validation_sample_count - computed: true, optional: false, required: false
get validationSampleCount() {
return this.getNumberAttribute('validation_sample_count');
}
}
exports.DataOciAiDocumentModelMetricsDatasetSummaryOutputReference = DataOciAiDocumentModelMetricsDatasetSummaryOutputReference;
_c = JSII_RTTI_SYMBOL_1;
DataOciAiDocumentModelMetricsDatasetSummaryOutputReference[_c] = { fqn: "rhizo-co-terraform-provider-oci.dataOciAiDocumentModel.DataOciAiDocumentModelMetricsDatasetSummaryOutputReference", version: "1.0.0" };
class DataOciAiDocumentModelMetricsDatasetSummaryList extends cdktf.ComplexList {
/**
* @param terraformResource The parent resource
* @param terraformAttribute The attribute on the parent resource this class is referencing
* @param wrapsSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
*/
constructor(terraformResource, terraformAttribute, wrapsSet) {
super(terraformResource, terraformAttribute, wrapsSet);
this.terraformResource = terraformResource;
this.terraformAttribute = terraformAttribute;
this.wrapsSet = wrapsSet;
}
/**
* @param index the index of the item to return
*/
get(index) {
return new DataOciAiDocumentModelMetricsDatasetSummaryOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.DataOciAiDocumentModelMetricsDatasetSummaryList = DataOciAiDocumentModelMetricsDatasetSummaryList;
_d = JSII_RTTI_SYMBOL_1;
DataOciAiDocumentModelMetricsDatasetSummaryList[_d] = { fqn: "rhizo-co-terraform-provider-oci.dataOciAiDocumentModel.DataOciAiDocumentModelMetricsDatasetSummaryList", version: "1.0.0" };
function dataOciAiDocumentModelMetricsLabelMetricsReportConfidenceEntriesToTerraform(struct) {
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
return struct;
}
if (cdktf.isComplexElement(struct)) {
throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
}
return {};
}
exports.dataOciAiDocumentModelMetricsLabelMetricsReportConfidenceEntriesToTerraform = dataOciAiDocumentModelMetricsLabelMetricsReportConfidenceEntriesToTerraform;
function dataOciAiDocumentModelMetricsLabelMetricsReportConfidenceEntriesToHclTerraform(struct) {
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
return struct;
}
if (cdktf.isComplexElement(struct)) {
throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
}
const attrs = {};
return attrs;
}
exports.dataOciAiDocumentModelMetricsLabelMetricsReportConfidenceEntriesToHclTerraform = dataOciAiDocumentModelMetricsLabelMetricsReportConfidenceEntriesToHclTerraform;
class DataOciAiDocumentModelMetricsLabelMetricsReportConfidenceEntriesOutputReference extends cdktf.ComplexObject {
/**
* @param terraformResource The parent resource
* @param terraformAttribute The attribute on the parent resource this class is referencing
* @param complexObjectIndex the index of this item in the list
* @param complexObjectIsFromSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
*/
constructor(terraformResource, terraformAttribute, complexObjectIndex, complexObjectIsFromSet) {
super(terraformResource, terraformAttribute, complexObjectIsFromSet, complexObjectIndex);
this.isEmptyObject = false;
}
get internalValue() {
let hasAnyValues = this.isEmptyObject;
const internalValueResult = {};
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
}
}
// accuracy - computed: true, optional: false, required: false
get accuracy() {
return this.getNumberAttribute('accuracy');
}
// f1score - computed: true, optional: false, required: false
get f1Score() {
return this.getNumberAttribute('f1score');
}
// precision - computed: true, optional: false, required: false
get precision() {
return this.getNumberAttribute('precision');
}
// recall - computed: true, optional: false, required: false
get recall() {
return this.getNumberAttribute('recall');
}
// threshold - computed: true, optional: false, required: false
get threshold() {
return this.getNumberAttribute('threshold');
}
}
exports.DataOciAiDocumentModelMetricsLabelMetricsReportConfidenceEntriesOutputReference = DataOciAiDocumentModelMetricsLabelMetricsReportConfidenceEntriesOutputReference;
_e = JSII_RTTI_SYMBOL_1;
DataOciAiDocumentModelMetricsLabelMetricsReportConfidenceEntriesOutputReference[_e] = { fqn: "rhizo-co-terraform-provider-oci.dataOciAiDocumentModel.DataOciAiDocumentModelMetricsLabelMetricsReportConfidenceEntriesOutputReference", version: "1.0.0" };
class DataOciAiDocumentModelMetricsLabelMetricsReportConfidenceEntriesList extends cdktf.ComplexList {
/**
* @param terraformResource The parent resource
* @param terraformAttribute The attribute on the parent resource this class is referencing
* @param wrapsSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
*/
constructor(terraformResource, terraformAttribute, wrapsSet) {
super(terraformResource, terraformAttribute, wrapsSet);
this.terraformResource = terraformResource;
this.terraformAttribute = terraformAttribute;
this.wrapsSet = wrapsSet;
}
/**
* @param index the index of the item to return
*/
get(index) {
return new DataOciAiDocumentModelMetricsLabelMetricsReportConfidenceEntriesOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.DataOciAiDocumentModelMetricsLabelMetricsReportConfidenceEntriesList = DataOciAiDocumentModelMetricsLabelMetricsReportConfidenceEntriesList;
_f = JSII_RTTI_SYMBOL_1;
DataOciAiDocumentModelMetricsLabelMetricsReportConfidenceEntriesList[_f] = { fqn: "rhizo-co-terraform-provider-oci.dataOciAiDocumentModel.DataOciAiDocumentModelMetricsLabelMetricsReportConfidenceEntriesList", version: "1.0.0" };
function dataOciAiDocumentModelMetricsLabelMetricsReportToTerraform(struct) {
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
return struct;
}
if (cdktf.isComplexElement(struct)) {
throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
}
return {};
}
exports.dataOciAiDocumentModelMetricsLabelMetricsReportToTerraform = dataOciAiDocumentModelMetricsLabelMetricsReportToTerraform;
function dataOciAiDocumentModelMetricsLabelMetricsReportToHclTerraform(struct) {
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
return struct;
}
if (cdktf.isComplexElement(struct)) {
throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
}
const attrs = {};
return attrs;
}
exports.dataOciAiDocumentModelMetricsLabelMetricsReportToHclTerraform = dataOciAiDocumentModelMetricsLabelMetricsReportToHclTerraform;
class DataOciAiDocumentModelMetricsLabelMetricsReportOutputReference extends cdktf.ComplexObject {
/**
* @param terraformResource The parent resource
* @param terraformAttribute The attribute on the parent resource this class is referencing
* @param complexObjectIndex the index of this item in the list
* @param complexObjectIsFromSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
*/
constructor(terraformResource, terraformAttribute, complexObjectIndex, complexObjectIsFromSet) {
super(terraformResource, terraformAttribute, complexObjectIsFromSet, complexObjectIndex);
this.isEmptyObject = false;
// confidence_entries - computed: true, optional: false, required: false
this._confidenceEntries = new DataOciAiDocumentModelMetricsLabelMetricsReportConfidenceEntriesList(this, "confidence_entries", false);
}
get internalValue() {
let hasAnyValues = this.isEmptyObject;
const internalValueResult = {};
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
}
}
get confidenceEntries() {
return this._confidenceEntries;
}
// document_count - computed: true, optional: false, required: false
get documentCount() {
return this.getNumberAttribute('document_count');
}
// label - computed: true, optional: false, required: false
get label() {
return this.getStringAttribute('label');
}
// mean_average_precision - computed: true, optional: false, required: false
get meanAveragePrecision() {
return this.getNumberAttribute('mean_average_precision');
}
}
exports.DataOciAiDocumentModelMetricsLabelMetricsReportOutputReference = DataOciAiDocumentModelMetricsLabelMetricsReportOutputReference;
_g = JSII_RTTI_SYMBOL_1;
DataOciAiDocumentModelMetricsLabelMetricsReportOutputReference[_g] = { fqn: "rhizo-co-terraform-provider-oci.dataOciAiDocumentModel.DataOciAiDocumentModelMetricsLabelMetricsReportOutputReference", version: "1.0.0" };
class DataOciAiDocumentModelMetricsLabelMetricsReportList extends cdktf.ComplexList {
/**
* @param terraformResource The parent resource
* @param terraformAttribute The attribute on the parent resource this class is referencing
* @param wrapsSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
*/
constructor(terraformResource, terraformAttribute, wrapsSet) {
super(terraformResource, terraformAttribute, wrapsSet);
this.terraformResource = terraformResource;
this.terraformAttribute = terraformAttribute;
this.wrapsSet = wrapsSet;
}
/**
* @param index the index of the item to return
*/
get(index) {
return new DataOciAiDocumentModelMetricsLabelMetricsReportOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.DataOciAiDocumentModelMetricsLabelMetricsReportList = DataOciAiDocumentModelMetricsLabelMetricsReportList;
_h = JSII_RTTI_SYMBOL_1;
DataOciAiDocumentModelMetricsLabelMetricsReportList[_h] = { fqn: "rhizo-co-terraform-provider-oci.dataOciAiDocumentModel.DataOciAiDocumentModelMetricsLabelMetricsReportList", version: "1.0.0" };
function dataOciAiDocumentModelMetricsOverallMetricsReportConfidenceEntriesToTerraform(struct) {
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
return struct;
}
if (cdktf.isComplexElement(struct)) {
throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
}
return {};
}
exports.dataOciAiDocumentModelMetricsOverallMetricsReportConfidenceEntriesToTerraform = dataOciAiDocumentModelMetricsOverallMetricsReportConfidenceEntriesToTerraform;
function dataOciAiDocumentModelMetricsOverallMetricsReportConfidenceEntriesToHclTerraform(struct) {
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
return struct;
}
if (cdktf.isComplexElement(struct)) {
throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
}
const attrs = {};
return attrs;
}
exports.dataOciAiDocumentModelMetricsOverallMetricsReportConfidenceEntriesToHclTerraform = dataOciAiDocumentModelMetricsOverallMetricsReportConfidenceEntriesToHclTerraform;
class DataOciAiDocumentModelMetricsOverallMetricsReportConfidenceEntriesOutputReference extends cdktf.ComplexObject {
/**
* @param terraformResource The parent resource
* @param terraformAttribute The attribute on the parent resource this class is referencing
* @param complexObjectIndex the index of this item in the list
* @param complexObjectIsFromSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
*/
constructor(terraformResource, terraformAttribute, complexObjectIndex, complexObjectIsFromSet) {
super(terraformResource, terraformAttribute, complexObjectIsFromSet, complexObjectIndex);
this.isEmptyObject = false;
}
get internalValue() {
let hasAnyValues = this.isEmptyObject;
const internalValueResult = {};
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
}
}
// accuracy - computed: true, optional: false, required: false
get accuracy() {
return this.getNumberAttribute('accuracy');
}
// f1score - computed: true, optional: false, required: false
get f1Score() {
return this.getNumberAttribute('f1score');
}
// precision - computed: true, optional: false, required: false
get precision() {
return this.getNumberAttribute('precision');
}
// recall - computed: true, optional: false, required: false
get recall() {
return this.getNumberAttribute('recall');
}
// threshold - computed: true, optional: false, required: false
get threshold() {
return this.getNumberAttribute('threshold');
}
}
exports.DataOciAiDocumentModelMetricsOverallMetricsReportConfidenceEntriesOutputReference = DataOciAiDocumentModelMetricsOverallMetricsReportConfidenceEntriesOutputReference;
_j = JSII_RTTI_SYMBOL_1;
DataOciAiDocumentModelMetricsOverallMetricsReportConfidenceEntriesOutputReference[_j] = { fqn: "rhizo-co-terraform-provider-oci.dataOciAiDocumentModel.DataOciAiDocumentModelMetricsOverallMetricsReportConfidenceEntriesOutputReference", version: "1.0.0" };
class DataOciAiDocumentModelMetricsOverallMetricsReportConfidenceEntriesList extends cdktf.ComplexList {
/**
* @param terraformResource The parent resource
* @param terraformAttribute The attribute on the parent resource this class is referencing
* @param wrapsSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
*/
constructor(terraformResource, terraformAttribute, wrapsSet) {
super(terraformResource, terraformAttribute, wrapsSet);
this.terraformResource = terraformResource;
this.terraformAttribute = terraformAttribute;
this.wrapsSet = wrapsSet;
}
/**
* @param index the index of the item to return
*/
get(index) {
return new DataOciAiDocumentModelMetricsOverallMetricsReportConfidenceEntriesOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.DataOciAiDocumentModelMetricsOverallMetricsReportConfidenceEntriesList = DataOciAiDocumentModelMetricsOverallMetricsReportConfidenceEntriesList;
_k = JSII_RTTI_SYMBOL_1;
DataOciAiDocumentModelMetricsOverallMetricsReportConfidenceEntriesList[_k] = { fqn: "rhizo-co-terraform-provider-oci.dataOciAiDocumentModel.DataOciAiDocumentModelMetricsOverallMetricsReportConfidenceEntriesList", version: "1.0.0" };
function dataOciAiDocumentModelMetricsOverallMetricsReportToTerraform(struct) {
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
return struct;
}
if (cdktf.isComplexElement(struct)) {
throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
}
return {};
}
exports.dataOciAiDocumentModelMetricsOverallMetricsReportToTerraform = dataOciAiDocumentModelMetricsOverallMetricsReportToTerraform;
function dataOciAiDocumentModelMetricsOverallMetricsReportToHclTerraform(struct) {
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
return struct;
}
if (cdktf.isComplexElement(struct)) {
throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
}
const attrs = {};
return attrs;
}
exports.dataOciAiDocumentModelMetricsOverallMetricsReportToHclTerraform = dataOciAiDocumentModelMetricsOverallMetricsReportToHclTerraform;
class DataOciAiDocumentModelMetricsOverallMetricsReportOutputReference extends cdktf.ComplexObject {
/**
* @param terraformResource The parent resource
* @param terraformAttribute The attribute on the parent resource this class is referencing
* @param complexObjectIndex the index of this item in the list
* @param complexObjectIsFromSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
*/
constructor(terraformResource, terraformAttribute, complexObjectIndex, complexObjectIsFromSet) {
super(terraformResource, terraformAttribute, complexObjectIsFromSet, complexObjectIndex);
this.isEmptyObject = false;
// confidence_entries - computed: true, optional: false, required: false
this._confidenceEntries = new DataOciAiDocumentModelMetricsOverallMetricsReportConfidenceEntriesList(this, "confidence_entries", false);
}
get internalValue() {
let hasAnyValues = this.isEmptyObject;
const internalValueResult = {};
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
}
}
get confidenceEntries() {
return this._confidenceEntries;
}
// document_count - computed: true, optional: false, required: false
get documentCount() {
return this.getNumberAttribute('document_count');
}
// mean_average_precision - computed: true, optional: false, required: false
get meanAveragePrecision() {
return this.getNumberAttribute('mean_average_precision');
}
}
exports.DataOciAiDocumentModelMetricsOverallMetricsReportOutputReference = DataOciAiDocumentModelMetricsOverallMetricsReportOutputReference;
_l = JSII_RTTI_SYMBOL_1;
DataOciAiDocumentModelMetricsOverallMetricsReportOutputReference[_l] = { fqn: "rhizo-co-terraform-provider-oci.dataOciAiDocumentModel.DataOciAiDocumentModelMetricsOverallMetricsReportOutputReference", version: "1.0.0" };
class DataOciAiDocumentModelMetricsOverallMetricsReportList extends cdktf.ComplexList {
/**
* @param terraformResource The parent resource
* @param terraformAttribute The attribute on the parent resource this class is referencing
* @param wrapsSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
*/
constructor(terraformResource, terraformAttribute, wrapsSet) {
super(terraformResource, terraformAttribute, wrapsSet);
this.terraformResource = terraformResource;
this.terraformAttribute = terraformAttribute;
this.wrapsSet = wrapsSet;
}
/**
* @param index the index of the item to return
*/
get(index) {
return new DataOciAiDocumentModelMetricsOverallMetricsReportOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.DataOciAiDocumentModelMetricsOverallMetricsReportList = DataOciAiDocumentModelMetricsOverallMetricsReportList;
_m = JSII_RTTI_SYMBOL_1;
DataOciAiDocumentModelMetricsOverallMetricsReportList[_m] = { fqn: "rhizo-co-terraform-provider-oci.dataOciAiDocumentModel.DataOciAiDocumentModelMetricsOverallMetricsReportList", version: "1.0.0" };
function dataOciAiDocumentModelMetricsToTerraform(struct) {
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
return struct;
}
if (cdktf.isComplexElement(struct)) {
throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
}
return {};
}
exports.dataOciAiDocumentModelMetricsToTerraform = dataOciAiDocumentModelMetricsToTerraform;
function dataOciAiDocumentModelMetricsToHclTerraform(struct) {
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
return struct;
}
if (cdktf.isComplexElement(struct)) {
throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
}
const attrs = {};
return attrs;
}
exports.dataOciAiDocumentModelMetricsToHclTerraform = dataOciAiDocumentModelMetricsToHclTerraform;
class DataOciAiDocumentModelMetricsOutputReference extends cdktf.ComplexObject {
/**
* @param terraformResource The parent resource
* @param terraformAttribute The attribute on the parent resource this class is referencing
* @param complexObjectIndex the index of this item in the list
* @param complexObjectIsFromSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
*/
constructor(terraformResource, terraformAttribute, complexObjectIndex, complexObjectIsFromSet) {
super(terraformResource, terraformAttribute, complexObjectIsFromSet, complexObjectIndex);
this.isEmptyObject = false;
// dataset_summary - computed: true, optional: false, required: false
this._datasetSummary = new DataOciAiDocumentModelMetricsDatasetSummaryList(this, "dataset_summary", false);
// label_metrics_report - computed: true, optional: false, required: false
this._labelMetricsReport = new DataOciAiDocumentModelMetricsLabelMetricsReportList(this, "label_metrics_report", false);
// overall_metrics_report - computed: true, optional: false, required: false
this._overallMetricsReport = new DataOciAiDocumentModelMetricsOverallMetricsReportList(this, "overall_metrics_report", false);
}
get internalValue() {
let hasAnyValues = this.isEmptyObject;
const internalValueResult = {};
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
}
}
get datasetSummary() {
return this._datasetSummary;
}
get labelMetricsReport() {
return this._labelMetricsReport;
}
// model_type - computed: true, optional: false, required: false
get modelType() {
return this.getStringAttribute('model_type');
}
get overallMetricsReport() {
return this._overallMetricsReport;
}
}
exports.DataOciAiDocumentModelMetricsOutputReference = DataOciAiDocumentModelMetricsOutputReference;
_o = JSII_RTTI_SYMBOL_1;
DataOciAiDocumentModelMetricsOutputReference[_o] = { fqn: "rhizo-co-terraform-provider-oci.dataOciAiDocumentModel.DataOciAiDocumentModelMetricsOutputReference", version: "1.0.0" };
class DataOciAiDocumentModelMetricsList extends cdktf.ComplexList {
/**
* @param terraformResource The parent resource
* @param terraformAttribute The attribute on the parent resource this class is referencing
* @param wrapsSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
*/
constructor(terraformResource, terraformAttribute, wrapsSet) {
super(terraformResource, terraformAttribute, wrapsSet);
this.terraformResource = terraformResource;
this.terraformAttribute = terraformAttribute;
this.wrapsSet = wrapsSet;
}
/**
* @param index the index of the item to return
*/
get(index) {
return new DataOciAiDocumentModelMetricsOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.DataOciAiDocumentModelMetricsList = DataOciAiDocumentModelMetricsList;
_p = JSII_RTTI_SYMBOL_1;
DataOciAiDocumentModelMetricsList[_p] = { fqn: "rhizo-co-terraform-provider-oci.dataOciAiDocumentModel.DataOciAiDocumentModelMetricsList", version: "1.0.0" };
function dataOciAiDocumentModelTestingDatasetToTerraform(struct) {
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
return struct;
}
if (cdktf.isComplexElement(struct)) {
throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
}
return {};
}
exports.dataOciAiDocumentModelTestingDatasetToTerraform = dataOciAiDocumentModelTestingDatasetToTerraform;
function dataOciAiDocumentModelTestingDatasetToHclTerraform(struct) {
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
return struct;
}
if (cdktf.isComplexElement(struct)) {
throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
}
const attrs = {};
return attrs;
}
exports.dataOciAiDocumentModelTestingDatasetToHclTerraform = dataOciAiDocumentModelTestingDatasetToHclTerraform;
class DataOciAiDocumentModelTestingDatasetOutputReference extends cdktf.ComplexObject {
/**
* @param terraformResource The parent resource
* @param terraformAttribute The attribute on the parent resource this class is referencing
* @param complexObjectIndex the index of this item in the list
* @param complexObjectIsFromSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
*/
constructor(terraformResource, terraformAttribute, complexObjectIndex, complexObjectIsFromSet) {
super(terraformResource, terraformAttribute, complexObjectIsFromSet, complexObjectIndex);
this.isEmptyObject = false;
}
get internalValue() {
let hasAnyValues = this.isEmptyObject;
const internalValueResult = {};
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
}
}
// bucket - computed: true, optional: false, required: false
get bucket() {
return this.getStringAttribute('bucket');
}
// dataset_id - computed: true, optional: false, required: false
get datasetId() {
return this.getStringAttribute('dataset_id');
}
// dataset_type - computed: true, optional: false, required: false
get datasetType() {
return this.getStringAttribute('dataset_type');
}
// namespace - computed: true, optional: false, required: false
get namespace() {
return this.getStringAttribute('namespace');
}
// object - computed: true, optional: false, required: false
get object() {
return this.getStringAttribute('object');
}
}
exports.DataOciAiDocumentModelTestingDatasetOutputReference = DataOciAiDocumentModelTestingDatasetOutputReference;
_q = JSII_RTTI_SYMBOL_1;
DataOciAiDocumentModelTestingDatasetOutputReference[_q] = { fqn: "rhizo-co-terraform-provider-oci.dataOciAiDocumentModel.DataOciAiDocumentModelTestingDatasetOutputReference", version: "1.0.0" };
class DataOciAiDocumentModelTestingDatasetList extends cdktf.ComplexList {
/**
* @param terraformResource The parent resource
* @param terraformAttribute The attribute on the parent resource this class is referencing
* @param wrapsSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
*/
constructor(terraformResource, terraformAttribute, wrapsSet) {
super(terraformResource, terraformAttribute, wrapsSet);
this.terraformResource = terraformResource;
this.terraformAttribute = terraformAttribute;
this.wrapsSet = wrapsSet;
}
/**
* @param index the index of the item to return
*/
get(index) {
return new DataOciAiDocumentModelTestingDatasetOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.DataOciAiDocumentModelTestingDatasetList = DataOciAiDocumentModelTestingDatasetList;
_r = JSII_RTTI_SYMBOL_1;
DataOciAiDocumentModelTestingDatasetList[_r] = { fqn: "rhizo-co-terraform-provider-oci.dataOciAiDocumentModel.DataOciAiDocumentModelTestingDatasetList", version: "1.0.0" };
function dataOciAiDocumentModelTrainingDatasetToTerraform(struct) {
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
return struct;
}
if (cdktf.isComplexElement(struct)) {
throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
}
return {};
}
exports.dataOciAiDocumentModelTrainingDatasetToTerraform = dataOciAiDocumentModelTrainingDatasetToTerraform;
function dataOciAiDocumentModelTrainingDatasetToHclTerraform(struct) {
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
return struct;
}
if (cdktf.isComplexElement(struct)) {
throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
}
const attrs = {};
return attrs;
}
exports.dataOciAiDocumentModelTrainingDatasetToHclTerraform = dataOciAiDocumentModelTrainingDatasetToHclTerraform;
class DataOciAiDocumentModelTrainingDatasetOutputReference extends cdktf.ComplexObject {
/**
* @param terraformResource The parent resource
* @param terraformAttribute The attribute on the parent resource this class is referencing
* @param complexObjectIndex the index of this item in the list
* @param complexObjectIsFromSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
*/
constructor(terraformResource, terraformAttribute, complexObjectIndex, complexObjectIsFromSet) {
super(terraformResource, terraformAttribute, complexObjectIsFromSet, complexObjectIndex);
this.isEmptyObject = false;
}
get internalValue() {
let hasAnyValues = this.isEmptyObject;
const internalValueResult = {};
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
}
}
// bucket - computed: true, optional: false, required: false
get bucket() {
return this.getStringAttribute('bucket');
}
// dataset_id - computed: true, optional: false, required: false
get datasetId() {
return this.getStringAttribute('dataset_id');
}
// dataset_type - computed: true, optional: false, required: false
get datasetType() {
return this.getStringAttribute('dataset_type');
}
// namespace - computed: true, optional: false, required: false
get namespace() {
return this.getStringAttribute('namespace');
}
// object - computed: true, optional: false, required: false
get object() {
return this.getStringAttribute('object');
}
}
exports.DataOciAiDocumentModelTrainingDatasetOutputReference = DataOciAiDocumentModelTrainingDatasetOutputReference;
_s = JSII_RTTI_SYMBOL_1;
DataOciAiDocumentModelTrainingDatasetOutputReference[_s] = { fqn: "rhizo-co-terraform-provider-oci.dataOciAiDocumentModel.DataOciAiDocumentModelTrainingDatasetOutputReference", version: "1.0.0" };
class DataOciAiDocumentModelTrainingDatasetList extends cdktf.ComplexList {
/**
* @param terraformResource The parent resource
* @param terraformAttribute The attribute on the parent resource this class is referencing
* @param wrapsSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
*/
constructor(terraformResource, terraformAttribute, wrapsSet) {
super(terraformResource, terraformAttribute, wrapsSet);
this.terraformResource = terraformResource;
this.terraformAttribute = terraformAttribute;
this.wrapsSet = wrapsSet;
}
/**
* @param index the index of the item to return
*/
get(index) {
return new DataOciAiDocumentModelTrainingDatasetOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.DataOciAiDocumentModelTrainingDatasetList = DataOciAiDocumentModelTrainingDatasetList;
_t = JSII_RTTI_SYMBOL_1;
DataOciAiDocumentModelTrainingDatasetList[_t] = { fqn: "rhizo-co-terraform-provider-oci.dataOciAiDocumentModel.DataOciAiDocumentModelTrainingDatasetList", version: "1.0.0" };
function dataOciAiDocumentModelValidationDatasetToTerraform(struct) {
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
return struct;
}
if (cdktf.isComplexElement(struct)) {
throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
}
return {};
}
exports.dataOciAiDocumentModelValidationDatasetToTerraform = dataOciAiDocumentModelValidationDatasetToTerraform;
function dataOciAiDocumentModelValidationDatasetToHclTerraform(struct) {
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
return struct;
}
if (cdktf.isComplexElement(struct)) {
throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
}
const attrs = {};
return attrs;
}
exports.dataOciAiDocumentModelValidationDatasetToHclTerraform = dataOciAiDocumentModelValidationDatasetToHclTerraform;
class DataOciAiDocumentModelValidationDatasetOutputReference extends cdktf.ComplexObject {
/**
* @param terraformResource The parent resource
* @param terraformAttribute The attribute on the parent resource this class is referencing
* @param complexObjectIndex the index of this item in the list
* @param complexObjectIsFromSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
*/
constructor(terraformResource, terraformAttribute, complexObjectIndex, complexObjectIsFromSet) {
super(terraformResource, terraformAttribute, complexObjectIsFromSet, complexObjectIndex);
this.isEmptyObject = false;
}
get internalValue() {
let hasAnyValues = this.isEmptyObject;
const internalValueResult = {};
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
}
}
// bucket - computed: true, optional: false, required: false
get bucket() {
return this.getStringAttribute('bucket');
}
// dataset_id - computed: true, optional: false, required: false
get datasetId() {
return this.getStringAttribute('dataset_id');
}
// dataset_type - computed: true, optional: false, required: false
get datasetType() {
return this.getStringAttribute('dataset_type');
}
// namespace - computed: true, optional: false, required: false
get namespace() {
return this.getStringAttribute('namespace');
}
// object - computed: true, optional: false, required: false
get object() {
return this.getStringAttribute('object');
}
}
exports.DataOciAiDocumentModelValidationDatasetOutputReference = DataOciAiDocumentModelValidationDatasetOutputReference;
_u = JSII_RTTI_SYMBOL_1;
DataOciAiDocumentModelValidationDatasetOutputReference[_u] = { fqn: "rhizo-co-terraform-provider-oci.dataOciAiDocumentModel.DataOciAiDocumentModelValidationDatasetOutputReference", version: "1.0.0" };
class DataOciAiDocumentModelValidationDatasetList extends cdktf.ComplexList {
/**
* @param terraformResource The parent resource
* @param terraformAttribute The attribute on the parent resource this class is referencing
* @param wrapsSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
*/
constructor(terraformResource, terraformAttribute, wrapsSet) {
super(terraformResource, terraformAttribute, wrapsSet);
this.terraformResource = terraformResource;
this.terraformAttribute = terraformAttribute;
this.wrapsSet = wrapsSet;
}
/**
* @param index the index of the item to return
*/
get(index) {
return new DataOciAiDocumentModelValidationDatasetOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.DataOciAiDocumentModelValidationDatasetList = DataOciAiDocumentModelValidationDatasetList;
_v = JSII_RTTI_SYMBOL_1;
DataOciAiDocumentModelValidationDatasetList[_v] = { fqn: "rhizo-co-terraform-provider-oci.dataOciAiDocumentModel.DataOciAiDocumentModelValidationDatasetList", version: "1.0.0" };
/**
* Represents a {@link https://registry.terraform.io/providers/oracle/oci/6.18.0/docs/data-sources/ai_document_model oci_ai_document_model}
*/
class DataOciAiDocumentModel extends cdktf.TerraformDataSource {
// ==============
// STATIC Methods
// ==============
/**
* Generates CDKTF code for importing a DataOciAiDocumentModel resource upon running "cdktf plan <stack-name>"
* @param scope The scope in which to define this construct
* @param importToId The construct id used in the generated config for the DataOciAiDocumentModel to import
* @param importFromId The id of the existing DataOciAiDocumentModel that should be imported. Refer to the {@link https://registry.terraform.io/providers/oracle/oci/6.18.0/docs/data-sources/ai_document_model#import import section} in the documentation of this resource for the id to use
* @param provider? Optional instance of the provider where the DataOciAiDocumentModel to import is found
*/
static generateConfigForImport(scope, importToId, importFromId, provider) {
return new cdktf.ImportableResource(scope, importToId, { terraformResourceType: "oci_ai_document_model", importId: importFromId, provider });
}
// ===========
// INITIALIZER
// ===========
/**
* Create a new {@link https://registry.terraform.io/providers/oracle/oci/6.18.0/docs/data-sources/ai_document_model oci_ai_document_model} Data Source
*
* @param scope The scope in which to define this construct
* @param id The scoped construct ID. Must be unique amongst siblings in the same scope
* @param options DataOciAiDocumentModelConfig
*/
constructor(scope, id, config) {
super(scope, id, {
terraformResourceType: 'oci_ai_document_model',
terraformGeneratorMetadata: {
providerName: 'oci',
providerVersion: '6.18.0',
providerVersionConstraint: '~> 6.18.0'
},
provider: config.provider,
dependsOn: config.dependsOn,
count: config.count,
lifecycle: config.lifecycle,
provisioners: config.provisioners,
connection: config.connection,
forEach: config.forEach
});
// component_models - computed: true, optional: false, required: false
this._componentModels = new DataOciAiDocumentModelComponentModelsList(this, "component_models", false);
// defined_tags - computed: true, optional: false, required: false
this._definedTags = new cdktf.StringMap(this, "defined_tags");
// freeform_tags - computed: true, optional: false, required: false
this._freeformTags = new cdktf.StringMap(this, "freeform_tags");
// metrics - computed: true, optional: false, required: false