UNPKG

rhizo-co-terraform-provider-oci

Version:

Prebuilt oci Provider for Terraform CDK (cdktf)

980 lines 139 kB
"use strict"; var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q; Object.defineProperty(exports, "__esModule", { value: true }); exports.DataOciGenerativeAiModels = exports.DataOciGenerativeAiModelsFilterList = exports.DataOciGenerativeAiModelsFilterOutputReference = exports.dataOciGenerativeAiModelsFilterToHclTerraform = exports.dataOciGenerativeAiModelsFilterToTerraform = exports.DataOciGenerativeAiModelsModelCollectionList = exports.DataOciGenerativeAiModelsModelCollectionOutputReference = exports.dataOciGenerativeAiModelsModelCollectionToHclTerraform = exports.dataOciGenerativeAiModelsModelCollectionToTerraform = exports.DataOciGenerativeAiModelsModelCollectionItemsList = exports.DataOciGenerativeAiModelsModelCollectionItemsOutputReference = exports.dataOciGenerativeAiModelsModelCollectionItemsToHclTerraform = exports.dataOciGenerativeAiModelsModelCollectionItemsToTerraform = exports.DataOciGenerativeAiModelsModelCollectionItemsModelMetricsList = exports.DataOciGenerativeAiModelsModelCollectionItemsModelMetricsOutputReference = exports.dataOciGenerativeAiModelsModelCollectionItemsModelMetricsToHclTerraform = exports.dataOciGenerativeAiModelsModelCollectionItemsModelMetricsToTerraform = exports.DataOciGenerativeAiModelsModelCollectionItemsFineTuneDetailsList = exports.DataOciGenerativeAiModelsModelCollectionItemsFineTuneDetailsOutputReference = exports.dataOciGenerativeAiModelsModelCollectionItemsFineTuneDetailsToHclTerraform = exports.dataOciGenerativeAiModelsModelCollectionItemsFineTuneDetailsToTerraform = exports.DataOciGenerativeAiModelsModelCollectionItemsFineTuneDetailsTrainingDatasetList = exports.DataOciGenerativeAiModelsModelCollectionItemsFineTuneDetailsTrainingDatasetOutputReference = exports.dataOciGenerativeAiModelsModelCollectionItemsFineTuneDetailsTrainingDatasetToHclTerraform = exports.dataOciGenerativeAiModelsModelCollectionItemsFineTuneDetailsTrainingDatasetToTerraform = exports.DataOciGenerativeAiModelsModelCollectionItemsFineTuneDetailsTrainingConfigList = exports.DataOciGenerativeAiModelsModelCollectionItemsFineTuneDetailsTrainingConfigOutputReference = exports.dataOciGenerativeAiModelsModelCollectionItemsFineTuneDetailsTrainingConfigToHclTerraform = exports.dataOciGenerativeAiModelsModelCollectionItemsFineTuneDetailsTrainingConfigToTerraform = void 0; const JSII_RTTI_SYMBOL_1 = Symbol.for("jsii.rtti"); const cdktf = require("cdktf"); function dataOciGenerativeAiModelsModelCollectionItemsFineTuneDetailsTrainingConfigToTerraform(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.dataOciGenerativeAiModelsModelCollectionItemsFineTuneDetailsTrainingConfigToTerraform = dataOciGenerativeAiModelsModelCollectionItemsFineTuneDetailsTrainingConfigToTerraform; function dataOciGenerativeAiModelsModelCollectionItemsFineTuneDetailsTrainingConfigToHclTerraform(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.dataOciGenerativeAiModelsModelCollectionItemsFineTuneDetailsTrainingConfigToHclTerraform = dataOciGenerativeAiModelsModelCollectionItemsFineTuneDetailsTrainingConfigToHclTerraform; class DataOciGenerativeAiModelsModelCollectionItemsFineTuneDetailsTrainingConfigOutputReference 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; } } // early_stopping_patience - computed: true, optional: false, required: false get earlyStoppingPatience() { return this.getNumberAttribute('early_stopping_patience'); } // early_stopping_threshold - computed: true, optional: false, required: false get earlyStoppingThreshold() { return this.getNumberAttribute('early_stopping_threshold'); } // learning_rate - computed: true, optional: false, required: false get learningRate() { return this.getNumberAttribute('learning_rate'); } // log_model_metrics_interval_in_steps - computed: true, optional: false, required: false get logModelMetricsIntervalInSteps() { return this.getNumberAttribute('log_model_metrics_interval_in_steps'); } // lora_alpha - computed: true, optional: false, required: false get loraAlpha() { return this.getNumberAttribute('lora_alpha'); } // lora_dropout - computed: true, optional: false, required: false get loraDropout() { return this.getNumberAttribute('lora_dropout'); } // lora_r - computed: true, optional: false, required: false get loraR() { return this.getNumberAttribute('lora_r'); } // num_of_last_layers - computed: true, optional: false, required: false get numOfLastLayers() { return this.getNumberAttribute('num_of_last_layers'); } // total_training_epochs - computed: true, optional: false, required: false get totalTrainingEpochs() { return this.getNumberAttribute('total_training_epochs'); } // training_batch_size - computed: true, optional: false, required: false get trainingBatchSize() { return this.getNumberAttribute('training_batch_size'); } // training_config_type - computed: true, optional: false, required: false get trainingConfigType() { return this.getStringAttribute('training_config_type'); } } exports.DataOciGenerativeAiModelsModelCollectionItemsFineTuneDetailsTrainingConfigOutputReference = DataOciGenerativeAiModelsModelCollectionItemsFineTuneDetailsTrainingConfigOutputReference; _a = JSII_RTTI_SYMBOL_1; DataOciGenerativeAiModelsModelCollectionItemsFineTuneDetailsTrainingConfigOutputReference[_a] = { fqn: "rhizo-co-terraform-provider-oci.dataOciGenerativeAiModels.DataOciGenerativeAiModelsModelCollectionItemsFineTuneDetailsTrainingConfigOutputReference", version: "1.0.0" }; class DataOciGenerativeAiModelsModelCollectionItemsFineTuneDetailsTrainingConfigList 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 DataOciGenerativeAiModelsModelCollectionItemsFineTuneDetailsTrainingConfigOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.DataOciGenerativeAiModelsModelCollectionItemsFineTuneDetailsTrainingConfigList = DataOciGenerativeAiModelsModelCollectionItemsFineTuneDetailsTrainingConfigList; _b = JSII_RTTI_SYMBOL_1; DataOciGenerativeAiModelsModelCollectionItemsFineTuneDetailsTrainingConfigList[_b] = { fqn: "rhizo-co-terraform-provider-oci.dataOciGenerativeAiModels.DataOciGenerativeAiModelsModelCollectionItemsFineTuneDetailsTrainingConfigList", version: "1.0.0" }; function dataOciGenerativeAiModelsModelCollectionItemsFineTuneDetailsTrainingDatasetToTerraform(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.dataOciGenerativeAiModelsModelCollectionItemsFineTuneDetailsTrainingDatasetToTerraform = dataOciGenerativeAiModelsModelCollectionItemsFineTuneDetailsTrainingDatasetToTerraform; function dataOciGenerativeAiModelsModelCollectionItemsFineTuneDetailsTrainingDatasetToHclTerraform(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.dataOciGenerativeAiModelsModelCollectionItemsFineTuneDetailsTrainingDatasetToHclTerraform = dataOciGenerativeAiModelsModelCollectionItemsFineTuneDetailsTrainingDatasetToHclTerraform; class DataOciGenerativeAiModelsModelCollectionItemsFineTuneDetailsTrainingDatasetOutputReference 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_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.DataOciGenerativeAiModelsModelCollectionItemsFineTuneDetailsTrainingDatasetOutputReference = DataOciGenerativeAiModelsModelCollectionItemsFineTuneDetailsTrainingDatasetOutputReference; _c = JSII_RTTI_SYMBOL_1; DataOciGenerativeAiModelsModelCollectionItemsFineTuneDetailsTrainingDatasetOutputReference[_c] = { fqn: "rhizo-co-terraform-provider-oci.dataOciGenerativeAiModels.DataOciGenerativeAiModelsModelCollectionItemsFineTuneDetailsTrainingDatasetOutputReference", version: "1.0.0" }; class DataOciGenerativeAiModelsModelCollectionItemsFineTuneDetailsTrainingDatasetList 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 DataOciGenerativeAiModelsModelCollectionItemsFineTuneDetailsTrainingDatasetOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.DataOciGenerativeAiModelsModelCollectionItemsFineTuneDetailsTrainingDatasetList = DataOciGenerativeAiModelsModelCollectionItemsFineTuneDetailsTrainingDatasetList; _d = JSII_RTTI_SYMBOL_1; DataOciGenerativeAiModelsModelCollectionItemsFineTuneDetailsTrainingDatasetList[_d] = { fqn: "rhizo-co-terraform-provider-oci.dataOciGenerativeAiModels.DataOciGenerativeAiModelsModelCollectionItemsFineTuneDetailsTrainingDatasetList", version: "1.0.0" }; function dataOciGenerativeAiModelsModelCollectionItemsFineTuneDetailsToTerraform(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.dataOciGenerativeAiModelsModelCollectionItemsFineTuneDetailsToTerraform = dataOciGenerativeAiModelsModelCollectionItemsFineTuneDetailsToTerraform; function dataOciGenerativeAiModelsModelCollectionItemsFineTuneDetailsToHclTerraform(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.dataOciGenerativeAiModelsModelCollectionItemsFineTuneDetailsToHclTerraform = dataOciGenerativeAiModelsModelCollectionItemsFineTuneDetailsToHclTerraform; class DataOciGenerativeAiModelsModelCollectionItemsFineTuneDetailsOutputReference 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; // training_config - computed: true, optional: false, required: false this._trainingConfig = new DataOciGenerativeAiModelsModelCollectionItemsFineTuneDetailsTrainingConfigList(this, "training_config", false); // training_dataset - computed: true, optional: false, required: false this._trainingDataset = new DataOciGenerativeAiModelsModelCollectionItemsFineTuneDetailsTrainingDatasetList(this, "training_dataset", 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; } } // dedicated_ai_cluster_id - computed: true, optional: false, required: false get dedicatedAiClusterId() { return this.getStringAttribute('dedicated_ai_cluster_id'); } get trainingConfig() { return this._trainingConfig; } get trainingDataset() { return this._trainingDataset; } } exports.DataOciGenerativeAiModelsModelCollectionItemsFineTuneDetailsOutputReference = DataOciGenerativeAiModelsModelCollectionItemsFineTuneDetailsOutputReference; _e = JSII_RTTI_SYMBOL_1; DataOciGenerativeAiModelsModelCollectionItemsFineTuneDetailsOutputReference[_e] = { fqn: "rhizo-co-terraform-provider-oci.dataOciGenerativeAiModels.DataOciGenerativeAiModelsModelCollectionItemsFineTuneDetailsOutputReference", version: "1.0.0" }; class DataOciGenerativeAiModelsModelCollectionItemsFineTuneDetailsList 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 DataOciGenerativeAiModelsModelCollectionItemsFineTuneDetailsOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.DataOciGenerativeAiModelsModelCollectionItemsFineTuneDetailsList = DataOciGenerativeAiModelsModelCollectionItemsFineTuneDetailsList; _f = JSII_RTTI_SYMBOL_1; DataOciGenerativeAiModelsModelCollectionItemsFineTuneDetailsList[_f] = { fqn: "rhizo-co-terraform-provider-oci.dataOciGenerativeAiModels.DataOciGenerativeAiModelsModelCollectionItemsFineTuneDetailsList", version: "1.0.0" }; function dataOciGenerativeAiModelsModelCollectionItemsModelMetricsToTerraform(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.dataOciGenerativeAiModelsModelCollectionItemsModelMetricsToTerraform = dataOciGenerativeAiModelsModelCollectionItemsModelMetricsToTerraform; function dataOciGenerativeAiModelsModelCollectionItemsModelMetricsToHclTerraform(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.dataOciGenerativeAiModelsModelCollectionItemsModelMetricsToHclTerraform = dataOciGenerativeAiModelsModelCollectionItemsModelMetricsToHclTerraform; class DataOciGenerativeAiModelsModelCollectionItemsModelMetricsOutputReference 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; } } // final_accuracy - computed: true, optional: false, required: false get finalAccuracy() { return this.getNumberAttribute('final_accuracy'); } // final_loss - computed: true, optional: false, required: false get finalLoss() { return this.getNumberAttribute('final_loss'); } // model_metrics_type - computed: true, optional: false, required: false get modelMetricsType() { return this.getStringAttribute('model_metrics_type'); } } exports.DataOciGenerativeAiModelsModelCollectionItemsModelMetricsOutputReference = DataOciGenerativeAiModelsModelCollectionItemsModelMetricsOutputReference; _g = JSII_RTTI_SYMBOL_1; DataOciGenerativeAiModelsModelCollectionItemsModelMetricsOutputReference[_g] = { fqn: "rhizo-co-terraform-provider-oci.dataOciGenerativeAiModels.DataOciGenerativeAiModelsModelCollectionItemsModelMetricsOutputReference", version: "1.0.0" }; class DataOciGenerativeAiModelsModelCollectionItemsModelMetricsList 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 DataOciGenerativeAiModelsModelCollectionItemsModelMetricsOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.DataOciGenerativeAiModelsModelCollectionItemsModelMetricsList = DataOciGenerativeAiModelsModelCollectionItemsModelMetricsList; _h = JSII_RTTI_SYMBOL_1; DataOciGenerativeAiModelsModelCollectionItemsModelMetricsList[_h] = { fqn: "rhizo-co-terraform-provider-oci.dataOciGenerativeAiModels.DataOciGenerativeAiModelsModelCollectionItemsModelMetricsList", version: "1.0.0" }; function dataOciGenerativeAiModelsModelCollectionItemsToTerraform(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.dataOciGenerativeAiModelsModelCollectionItemsToTerraform = dataOciGenerativeAiModelsModelCollectionItemsToTerraform; function dataOciGenerativeAiModelsModelCollectionItemsToHclTerraform(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.dataOciGenerativeAiModelsModelCollectionItemsToHclTerraform = dataOciGenerativeAiModelsModelCollectionItemsToHclTerraform; class DataOciGenerativeAiModelsModelCollectionItemsOutputReference 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; // defined_tags - computed: true, optional: false, required: false this._definedTags = new cdktf.StringMap(this, "defined_tags"); // fine_tune_details - computed: true, optional: false, required: false this._fineTuneDetails = new DataOciGenerativeAiModelsModelCollectionItemsFineTuneDetailsList(this, "fine_tune_details", false); // freeform_tags - computed: true, optional: false, required: false this._freeformTags = new cdktf.StringMap(this, "freeform_tags"); // model_metrics - computed: true, optional: false, required: false this._modelMetrics = new DataOciGenerativeAiModelsModelCollectionItemsModelMetricsList(this, "model_metrics", false); // system_tags - computed: true, optional: false, required: false this._systemTags = new cdktf.StringMap(this, "system_tags"); } 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; } } // base_model_id - computed: true, optional: false, required: false get baseModelId() { return this.getStringAttribute('base_model_id'); } // capabilities - computed: true, optional: false, required: false get capabilities() { return this.getListAttribute('capabilities'); } // compartment_id - computed: true, optional: false, required: false get compartmentId() { return this.getStringAttribute('compartment_id'); } get definedTags() { return this._definedTags; } // description - computed: true, optional: false, required: false get description() { return this.getStringAttribute('description'); } // display_name - computed: true, optional: false, required: false get displayName() { return this.getStringAttribute('display_name'); } get fineTuneDetails() { return this._fineTuneDetails; } get freeformTags() { return this._freeformTags; } // id - computed: true, optional: false, required: false get id() { return this.getStringAttribute('id'); } // is_long_term_supported - computed: true, optional: false, required: false get isLongTermSupported() { return this.getBooleanAttribute('is_long_term_supported'); } // lifecycle_details - computed: true, optional: false, required: false get lifecycleDetails() { return this.getStringAttribute('lifecycle_details'); } get modelMetrics() { return this._modelMetrics; } // state - computed: true, optional: false, required: false get state() { return this.getStringAttribute('state'); } get systemTags() { return this._systemTags; } // time_created - computed: true, optional: false, required: false get timeCreated() { return this.getStringAttribute('time_created'); } // time_deprecated - computed: true, optional: false, required: false get timeDeprecated() { return this.getStringAttribute('time_deprecated'); } // time_updated - computed: true, optional: false, required: false get timeUpdated() { return this.getStringAttribute('time_updated'); } // type - computed: true, optional: false, required: false get type() { return this.getStringAttribute('type'); } // vendor - computed: true, optional: false, required: false get vendor() { return this.getStringAttribute('vendor'); } // version - computed: true, optional: false, required: false get version() { return this.getStringAttribute('version'); } } exports.DataOciGenerativeAiModelsModelCollectionItemsOutputReference = DataOciGenerativeAiModelsModelCollectionItemsOutputReference; _j = JSII_RTTI_SYMBOL_1; DataOciGenerativeAiModelsModelCollectionItemsOutputReference[_j] = { fqn: "rhizo-co-terraform-provider-oci.dataOciGenerativeAiModels.DataOciGenerativeAiModelsModelCollectionItemsOutputReference", version: "1.0.0" }; class DataOciGenerativeAiModelsModelCollectionItemsList 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 DataOciGenerativeAiModelsModelCollectionItemsOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.DataOciGenerativeAiModelsModelCollectionItemsList = DataOciGenerativeAiModelsModelCollectionItemsList; _k = JSII_RTTI_SYMBOL_1; DataOciGenerativeAiModelsModelCollectionItemsList[_k] = { fqn: "rhizo-co-terraform-provider-oci.dataOciGenerativeAiModels.DataOciGenerativeAiModelsModelCollectionItemsList", version: "1.0.0" }; function dataOciGenerativeAiModelsModelCollectionToTerraform(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.dataOciGenerativeAiModelsModelCollectionToTerraform = dataOciGenerativeAiModelsModelCollectionToTerraform; function dataOciGenerativeAiModelsModelCollectionToHclTerraform(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.dataOciGenerativeAiModelsModelCollectionToHclTerraform = dataOciGenerativeAiModelsModelCollectionToHclTerraform; class DataOciGenerativeAiModelsModelCollectionOutputReference 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; // items - computed: true, optional: false, required: false this._items = new DataOciGenerativeAiModelsModelCollectionItemsList(this, "items", 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 items() { return this._items; } } exports.DataOciGenerativeAiModelsModelCollectionOutputReference = DataOciGenerativeAiModelsModelCollectionOutputReference; _l = JSII_RTTI_SYMBOL_1; DataOciGenerativeAiModelsModelCollectionOutputReference[_l] = { fqn: "rhizo-co-terraform-provider-oci.dataOciGenerativeAiModels.DataOciGenerativeAiModelsModelCollectionOutputReference", version: "1.0.0" }; class DataOciGenerativeAiModelsModelCollectionList 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 DataOciGenerativeAiModelsModelCollectionOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.DataOciGenerativeAiModelsModelCollectionList = DataOciGenerativeAiModelsModelCollectionList; _m = JSII_RTTI_SYMBOL_1; DataOciGenerativeAiModelsModelCollectionList[_m] = { fqn: "rhizo-co-terraform-provider-oci.dataOciGenerativeAiModels.DataOciGenerativeAiModelsModelCollectionList", version: "1.0.0" }; function dataOciGenerativeAiModelsFilterToTerraform(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 { name: cdktf.stringToTerraform(struct.name), regex: cdktf.booleanToTerraform(struct.regex), values: cdktf.listMapper(cdktf.stringToTerraform, false)(struct.values), }; } exports.dataOciGenerativeAiModelsFilterToTerraform = dataOciGenerativeAiModelsFilterToTerraform; function dataOciGenerativeAiModelsFilterToHclTerraform(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 = { name: { value: cdktf.stringToHclTerraform(struct.name), isBlock: false, type: "simple", storageClassType: "string", }, regex: { value: cdktf.booleanToHclTerraform(struct.regex), isBlock: false, type: "simple", storageClassType: "boolean", }, values: { value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(struct.values), isBlock: false, type: "list", storageClassType: "stringList", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.dataOciGenerativeAiModelsFilterToHclTerraform = dataOciGenerativeAiModelsFilterToHclTerraform; class DataOciGenerativeAiModelsFilterOutputReference 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() { if (this.resolvableValue) { return this.resolvableValue; } let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; if (this._name !== undefined) { hasAnyValues = true; internalValueResult.name = this._name; } if (this._regex !== undefined) { hasAnyValues = true; internalValueResult.regex = this._regex; } if (this._values !== undefined) { hasAnyValues = true; internalValueResult.values = this._values; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; this._name = undefined; this._regex = undefined; this._values = undefined; } else if (cdktf.Tokenization.isResolvable(value)) { this.isEmptyObject = false; this.resolvableValue = value; } else { this.isEmptyObject = Object.keys(value).length === 0; this.resolvableValue = undefined; this._name = value.name; this._regex = value.regex; this._values = value.values; } } get name() { return this.getStringAttribute('name'); } set name(value) { this._name = value; } // Temporarily expose input value. Use with caution. get nameInput() { return this._name; } get regex() { return this.getBooleanAttribute('regex'); } set regex(value) { this._regex = value; } resetRegex() { this._regex = undefined; } // Temporarily expose input value. Use with caution. get regexInput() { return this._regex; } get values() { return this.getListAttribute('values'); } set values(value) { this._values = value; } // Temporarily expose input value. Use with caution. get valuesInput() { return this._values; } } exports.DataOciGenerativeAiModelsFilterOutputReference = DataOciGenerativeAiModelsFilterOutputReference; _o = JSII_RTTI_SYMBOL_1; DataOciGenerativeAiModelsFilterOutputReference[_o] = { fqn: "rhizo-co-terraform-provider-oci.dataOciGenerativeAiModels.DataOciGenerativeAiModelsFilterOutputReference", version: "1.0.0" }; class DataOciGenerativeAiModelsFilterList 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 DataOciGenerativeAiModelsFilterOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.DataOciGenerativeAiModelsFilterList = DataOciGenerativeAiModelsFilterList; _p = JSII_RTTI_SYMBOL_1; DataOciGenerativeAiModelsFilterList[_p] = { fqn: "rhizo-co-terraform-provider-oci.dataOciGenerativeAiModels.DataOciGenerativeAiModelsFilterList", version: "1.0.0" }; /** * Represents a {@link https://registry.terraform.io/providers/oracle/oci/6.18.0/docs/data-sources/generative_ai_models oci_generative_ai_models} */ class DataOciGenerativeAiModels extends cdktf.TerraformDataSource { // ============== // STATIC Methods // ============== /** * Generates CDKTF code for importing a DataOciGenerativeAiModels 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 DataOciGenerativeAiModels to import * @param importFromId The id of the existing DataOciGenerativeAiModels that should be imported. Refer to the {@link https://registry.terraform.io/providers/oracle/oci/6.18.0/docs/data-sources/generative_ai_models#import import section} in the documentation of this resource for the id to use * @param provider? Optional instance of the provider where the DataOciGenerativeAiModels to import is found */ static generateConfigForImport(scope, importToId, importFromId, provider) { return new cdktf.ImportableResource(scope, importToId, { terraformResourceType: "oci_generative_ai_models", importId: importFromId, provider }); } // =========== // INITIALIZER // =========== /** * Create a new {@link https://registry.terraform.io/providers/oracle/oci/6.18.0/docs/data-sources/generative_ai_models oci_generative_ai_models} 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 DataOciGenerativeAiModelsConfig */ constructor(scope, id, config) { super(scope, id, { terraformResourceType: 'oci_generative_ai_models', 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 }); // model_collection - computed: true, optional: false, required: false this._modelCollection = new DataOciGenerativeAiModelsModelCollectionList(this, "model_collection", false); // filter - computed: false, optional: true, required: false this._filter = new DataOciGenerativeAiModelsFilterList(this, "filter", true); this._capability = config.capability; this._compartmentId = config.compartmentId; this._displayName = config.displayName; this._id = config.id; this._state = config.state; this._vendor = config.vendor; this._filter.internalValue = config.filter; } get capability() { return this.getListAttribute('capability'); } set capability(value) { this._capability = value; } resetCapability() { this._capability = undefined; } // Temporarily expose input value. Use with caution. get capabilityInput() { return this._capability; } get compartmentId() { return this.getStringAttribute('compartment_id'); } set compartmentId(value) { this._compartmentId = value; } // Temporarily expose input value. Use with caution. get compartmentIdInput() { return this._compartmentId; } get displayName() { return this.getStringAttribute('display_name'); } set displayName(value) { this._displayName = value; } resetDisplayName() { this._displayName = undefined; } // Temporarily expose input value. Use with caution. get displayNameInput() { return this._displayName; } get id() { return this.getStringAttribute('id'); } set id(value) { this._id = value; } resetId() { this._id = undefined; } // Temporarily expose input value. Use with caution. get idInput() { return this._id; } get modelCollection() { return this._modelCollection; } get state() { return this.getStringAttribute('state'); } set state(value) { this._state = value; } resetState() { this._state = undefined; } // Temporarily expose input value. Use with caution. get stateInput() { return this._state; } get vendor() { return this.getStringAttribute('vendor'); } set vendor(value) { this._vendor = value; } resetVendor() { this._vendor = undefined; } // Temporarily expose input value. Use with caution. get vendorInput() { return this._vendor; } get filter() { return this._filter; } putFilter(value) { this._filter.internalValue = value; } resetFilter() { this._filter.internalValue = undefined; } // Temporarily expose input value. Use with caution. get filterInput() { return this._filter.internalValue; } // ========= // SYNTHESIS // ========= synthesizeAttributes() { return { capability: cdktf.listMapper(cdktf.stringToTerraform, false)(this._capability), compartment_id: cdktf.stringToTerraform(this._compartmentId), display_name: cdktf.stringToTerraform(this._displayName), id: cdktf.stringToTerraform(this._id), state: cdktf.stringToTerraform(this._state), vendor: cdktf.stringToTerraform(this._vendor), filter: cdktf.listMapper(dataOciGenerativeAiModelsFilterToTerraform, true)(this._filter.internalValue), }; } synthesizeHclAttributes() { const attrs = { capability: { value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(this._capability), isBlock: false, type: "list", storageClassType: "stringList", }, compartment_id: { value: cdktf.stringToHclTerraform(this._compartmentId), isBlock: false, type: "simple", storageClassType: "string", }, display_name: { value: cdktf.stringToHclTerraform(this._displayName), isBlock: false, type: "simple", storageClassType: "string", }, id: { value: cdktf.stringToHclTerraform(this._id), isBlock: false, type: "simple", storageClassType: "string", }, state: { value: cdktf.stringToHclTerraform(this._state), isBlock: false, type: "simple", storageClassType: "string", }, vendor: { value: cdktf.stringToHclTerraform(this._vendor), isBlock: false, type: "simple", storageClassType: "string", }, filter: { value: cdktf.listMapperHcl(dataOciGenerativeAiModelsFilterToHclTerraform, true)(this._filter.internalValue), isBlock: true, type: "set", storageClassType: "DataOciGenerativeAiModelsFilterList", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } } exports.DataOciGenerativeAiModels = DataOciGenerativeAiModels; _q = JSII_RTTI_SYMBOL_1; DataOciGenerativeAiModels[_q] = { fqn: "rhizo-co-terraform-provider-oci.dataOciGenerativeAiModels.DataOciGenerativeAiModels", version: "1.0.0" }; // ================= // STATIC PROPERTIES // ================= DataOciGenerativeAiModels.tfResourceType = "oci_generative_ai_models"; //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvZGF0YS1vY2ktZ2VuZXJhdGl2ZS1haS1tb2RlbHMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7QUFJQSwrQkFBK0I7QUEwQy9CLFNBQWdCLHFGQUFxRixDQUFDLE1BQW1GO0lBQ3ZMLElBQUksQ0FBQyxLQUFLLENBQUMsVUFBVSxDQUFDLE1BQU0sQ0FBQyxJQUFJLEtBQUssQ0FBQyxZQUFZLENBQUMsWUFBWSxDQUFDLE1BQU0sQ0FBQyxFQUFFLENBQUM7UUFBQyxPQUFPLE1BQU0sQ0FBQztJQUFDLENBQUM7SUFDNUYsSUFBSSxLQUFLLENBQUMsZ0JBQWdCLENBQUMsTUFBTSxDQUFDLEVBQUUsQ0FBQztRQUNuQyxNQUFNLElBQUksS0FBSyxDQUFDLG9IQUFvSCxDQUFDLENBQUM7SUFDeEksQ0FBQztJQUNELE9BQU8sRUFDTixDQUFBO0FBQ0gsQ0FBQztBQVBELHNMQU9DO0FBR0QsU0FBZ0Isd0ZBQXdGLENBQUMsTUFBbUY7SUFDMUwsSUFBSSxDQUFDLEtBQUssQ0FBQyxVQUFVLENBQUMsTUFBTSxDQUFDLElBQUksS0FBSyxDQUFDLFlBQVksQ0FBQyxZQUFZLENBQUMsTUFBTSxDQUFDLEVBQUUsQ0FBQztRQUFDLE9BQU8sTUFBTSxDQUFDO0lBQUMsQ0FBQztJQUM1RixJQUFJLEtBQUssQ0FBQyxnQkFBZ0IsQ0FBQyxNQUFNLENBQUMsRUFBRSxDQUFDO1FBQ25DLE1BQU0sSUFBSSxLQUFLLENBQUMsb0hBQW9ILENBQUMsQ0FBQztJQUN4SSxDQUFDO0lBQ0QsTUFBTSxLQUFLLEdBQUcsRUFDYixDQUFDO0lBQ0YsT0FBTyxLQUFLLENBQUM7QUFDZixDQUFDO0FBUkQsNExBUUM7QUFFRCxNQUFhLHlGQUEwRixTQUFRLEtBQUssQ0FBQyxhQUFhO0lBR2hJOzs7OztNQUtFO0lBQ0YsWUFBbUIsaUJBQTZDLEVBQUUsa0JBQTBCLEVBQUUsa0JBQTBCLEVBQUUsc0JBQStCO1FBQ3ZKLEtBQUssQ0FBQyxpQkFBaUIsRUFBRSxrQkFBa0IsRUFBRSxzQkFBc0IsRUFBRSxrQkFBa0IsQ0FBQyxDQUFDO1FBVG5GLGtCQUFhLEdBQUcsS0FBSyxDQUFDO0lBVTlCLENBQUM7SUFFRCxJQUFXLGFBQWE7UUFDdEIsSUFBSSxZQUFZLEdBQUcsSUFBSSxDQUFDLGFBQWEsQ0FBQztRQUN0QyxNQUFNLG1CQUFtQixHQUFRLEVBQUUsQ0FBQztRQUNwQyxPQUFPLFlBQVksQ0FBQyxDQUFDLENBQUMsbUJBQW1CLENBQUMsQ0FBQyxDQUFDLFNBQVMsQ0FBQztJQUN4RCxDQUFDO0lBRUQsSUFBVyxhQUFhLENBQUMsS0FBNkY7UUFDcEgsSUFBSSxLQUFLLEtBQUssU0FBUyxFQUFFLENBQUM7WUFDeEIsSUFBSSxDQUFDLGFBQWEsR0FBRyxLQUFLLENBQUM7UUFDN0IsQ0FBQzthQUNJLENBQUM7WUFDSixJQUFJLENBQUMsYUFBYSxHQUFHLE1BQU0sQ0FBQyxJQUFJLENBQUMsS0FBSyxDQUFDLENBQUMsTUFBTSxLQUFLLENBQUMsQ0FBQztRQUN2RCxD