UNPKG

rhizo-co-terraform-provider-oci

Version:

Prebuilt oci Provider for Terraform CDK (cdktf)

1,187 lines (1,186 loc) 205 kB
"use strict"; var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m; Object.defineProperty(exports, "__esModule", { value: true }); exports.DatascienceModel = exports.DatascienceModelTimeoutsOutputReference = exports.datascienceModelTimeoutsToHclTerraform = exports.datascienceModelTimeoutsToTerraform = exports.DatascienceModelRetentionSettingOutputReference = exports.datascienceModelRetentionSettingToHclTerraform = exports.datascienceModelRetentionSettingToTerraform = exports.DatascienceModelDefinedMetadataListStructList = exports.DatascienceModelDefinedMetadataListStructOutputReference = exports.datascienceModelDefinedMetadataListStructToHclTerraform = exports.datascienceModelDefinedMetadataListStructToTerraform = exports.DatascienceModelCustomMetadataListStructList = exports.DatascienceModelCustomMetadataListStructOutputReference = exports.datascienceModelCustomMetadataListStructToHclTerraform = exports.datascienceModelCustomMetadataListStructToTerraform = exports.DatascienceModelBackupSettingOutputReference = exports.datascienceModelBackupSettingToHclTerraform = exports.datascienceModelBackupSettingToTerraform = exports.DatascienceModelRetentionOperationDetailsList = exports.DatascienceModelRetentionOperationDetailsOutputReference = exports.datascienceModelRetentionOperationDetailsToHclTerraform = exports.datascienceModelRetentionOperationDetailsToTerraform = exports.DatascienceModelBackupOperationDetailsList = exports.DatascienceModelBackupOperationDetailsOutputReference = exports.datascienceModelBackupOperationDetailsToHclTerraform = exports.datascienceModelBackupOperationDetailsToTerraform = void 0; const JSII_RTTI_SYMBOL_1 = Symbol.for("jsii.rtti"); const cdktf = require("cdktf"); function datascienceModelBackupOperationDetailsToTerraform(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.datascienceModelBackupOperationDetailsToTerraform = datascienceModelBackupOperationDetailsToTerraform; function datascienceModelBackupOperationDetailsToHclTerraform(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.datascienceModelBackupOperationDetailsToHclTerraform = datascienceModelBackupOperationDetailsToHclTerraform; class DatascienceModelBackupOperationDetailsOutputReference 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; } } // backup_state - computed: true, optional: false, required: false get backupState() { return this.getStringAttribute('backup_state'); } // backup_state_details - computed: true, optional: false, required: false get backupStateDetails() { return this.getStringAttribute('backup_state_details'); } // time_last_backup - computed: true, optional: false, required: false get timeLastBackup() { return this.getStringAttribute('time_last_backup'); } } exports.DatascienceModelBackupOperationDetailsOutputReference = DatascienceModelBackupOperationDetailsOutputReference; _a = JSII_RTTI_SYMBOL_1; DatascienceModelBackupOperationDetailsOutputReference[_a] = { fqn: "rhizo-co-terraform-provider-oci.datascienceModel.DatascienceModelBackupOperationDetailsOutputReference", version: "1.0.0" }; class DatascienceModelBackupOperationDetailsList 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 DatascienceModelBackupOperationDetailsOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.DatascienceModelBackupOperationDetailsList = DatascienceModelBackupOperationDetailsList; _b = JSII_RTTI_SYMBOL_1; DatascienceModelBackupOperationDetailsList[_b] = { fqn: "rhizo-co-terraform-provider-oci.datascienceModel.DatascienceModelBackupOperationDetailsList", version: "1.0.0" }; function datascienceModelRetentionOperationDetailsToTerraform(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.datascienceModelRetentionOperationDetailsToTerraform = datascienceModelRetentionOperationDetailsToTerraform; function datascienceModelRetentionOperationDetailsToHclTerraform(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.datascienceModelRetentionOperationDetailsToHclTerraform = datascienceModelRetentionOperationDetailsToHclTerraform; class DatascienceModelRetentionOperationDetailsOutputReference 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; } } // archive_state - computed: true, optional: false, required: false get archiveState() { return this.getStringAttribute('archive_state'); } // archive_state_details - computed: true, optional: false, required: false get archiveStateDetails() { return this.getStringAttribute('archive_state_details'); } // delete_state - computed: true, optional: false, required: false get deleteState() { return this.getStringAttribute('delete_state'); } // delete_state_details - computed: true, optional: false, required: false get deleteStateDetails() { return this.getStringAttribute('delete_state_details'); } // time_archival_scheduled - computed: true, optional: false, required: false get timeArchivalScheduled() { return this.getStringAttribute('time_archival_scheduled'); } // time_deletion_scheduled - computed: true, optional: false, required: false get timeDeletionScheduled() { return this.getStringAttribute('time_deletion_scheduled'); } } exports.DatascienceModelRetentionOperationDetailsOutputReference = DatascienceModelRetentionOperationDetailsOutputReference; _c = JSII_RTTI_SYMBOL_1; DatascienceModelRetentionOperationDetailsOutputReference[_c] = { fqn: "rhizo-co-terraform-provider-oci.datascienceModel.DatascienceModelRetentionOperationDetailsOutputReference", version: "1.0.0" }; class DatascienceModelRetentionOperationDetailsList 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 DatascienceModelRetentionOperationDetailsOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.DatascienceModelRetentionOperationDetailsList = DatascienceModelRetentionOperationDetailsList; _d = JSII_RTTI_SYMBOL_1; DatascienceModelRetentionOperationDetailsList[_d] = { fqn: "rhizo-co-terraform-provider-oci.datascienceModel.DatascienceModelRetentionOperationDetailsList", version: "1.0.0" }; function datascienceModelBackupSettingToTerraform(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 { backup_region: cdktf.stringToTerraform(struct.backupRegion), customer_notification_type: cdktf.stringToTerraform(struct.customerNotificationType), is_backup_enabled: cdktf.booleanToTerraform(struct.isBackupEnabled), }; } exports.datascienceModelBackupSettingToTerraform = datascienceModelBackupSettingToTerraform; function datascienceModelBackupSettingToHclTerraform(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 = { backup_region: { value: cdktf.stringToHclTerraform(struct.backupRegion), isBlock: false, type: "simple", storageClassType: "string", }, customer_notification_type: { value: cdktf.stringToHclTerraform(struct.customerNotificationType), isBlock: false, type: "simple", storageClassType: "string", }, is_backup_enabled: { value: cdktf.booleanToHclTerraform(struct.isBackupEnabled), isBlock: false, type: "simple", storageClassType: "boolean", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.datascienceModelBackupSettingToHclTerraform = datascienceModelBackupSettingToHclTerraform; class DatascienceModelBackupSettingOutputReference extends cdktf.ComplexObject { /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing */ constructor(terraformResource, terraformAttribute) { super(terraformResource, terraformAttribute, false, 0); this.isEmptyObject = false; } get internalValue() { let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; if (this._backupRegion !== undefined) { hasAnyValues = true; internalValueResult.backupRegion = this._backupRegion; } if (this._customerNotificationType !== undefined) { hasAnyValues = true; internalValueResult.customerNotificationType = this._customerNotificationType; } if (this._isBackupEnabled !== undefined) { hasAnyValues = true; internalValueResult.isBackupEnabled = this._isBackupEnabled; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._backupRegion = undefined; this._customerNotificationType = undefined; this._isBackupEnabled = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._backupRegion = value.backupRegion; this._customerNotificationType = value.customerNotificationType; this._isBackupEnabled = value.isBackupEnabled; } } get backupRegion() { return this.getStringAttribute('backup_region'); } set backupRegion(value) { this._backupRegion = value; } // Temporarily expose input value. Use with caution. get backupRegionInput() { return this._backupRegion; } get customerNotificationType() { return this.getStringAttribute('customer_notification_type'); } set customerNotificationType(value) { this._customerNotificationType = value; } resetCustomerNotificationType() { this._customerNotificationType = undefined; } // Temporarily expose input value. Use with caution. get customerNotificationTypeInput() { return this._customerNotificationType; } get isBackupEnabled() { return this.getBooleanAttribute('is_backup_enabled'); } set isBackupEnabled(value) { this._isBackupEnabled = value; } // Temporarily expose input value. Use with caution. get isBackupEnabledInput() { return this._isBackupEnabled; } } exports.DatascienceModelBackupSettingOutputReference = DatascienceModelBackupSettingOutputReference; _e = JSII_RTTI_SYMBOL_1; DatascienceModelBackupSettingOutputReference[_e] = { fqn: "rhizo-co-terraform-provider-oci.datascienceModel.DatascienceModelBackupSettingOutputReference", version: "1.0.0" }; function datascienceModelCustomMetadataListStructToTerraform(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 { category: cdktf.stringToTerraform(struct.category), description: cdktf.stringToTerraform(struct.description), key: cdktf.stringToTerraform(struct.key), value: cdktf.stringToTerraform(struct.value), }; } exports.datascienceModelCustomMetadataListStructToTerraform = datascienceModelCustomMetadataListStructToTerraform; function datascienceModelCustomMetadataListStructToHclTerraform(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 = { category: { value: cdktf.stringToHclTerraform(struct.category), isBlock: false, type: "simple", storageClassType: "string", }, description: { value: cdktf.stringToHclTerraform(struct.description), isBlock: false, type: "simple", storageClassType: "string", }, key: { value: cdktf.stringToHclTerraform(struct.key), isBlock: false, type: "simple", storageClassType: "string", }, value: { value: cdktf.stringToHclTerraform(struct.value), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.datascienceModelCustomMetadataListStructToHclTerraform = datascienceModelCustomMetadataListStructToHclTerraform; class DatascienceModelCustomMetadataListStructOutputReference 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._category !== undefined) { hasAnyValues = true; internalValueResult.category = this._category; } if (this._description !== undefined) { hasAnyValues = true; internalValueResult.description = this._description; } if (this._key !== undefined) { hasAnyValues = true; internalValueResult.key = this._key; } if (this._value !== undefined) { hasAnyValues = true; internalValueResult.value = this._value; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; this._category = undefined; this._description = undefined; this._key = undefined; this._value = 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._category = value.category; this._description = value.description; this._key = value.key; this._value = value.value; } } get category() { return this.getStringAttribute('category'); } set category(value) { this._category = value; } resetCategory() { this._category = undefined; } // Temporarily expose input value. Use with caution. get categoryInput() { return this._category; } get description() { return this.getStringAttribute('description'); } set description(value) { this._description = value; } resetDescription() { this._description = undefined; } // Temporarily expose input value. Use with caution. get descriptionInput() { return this._description; } get key() { return this.getStringAttribute('key'); } set key(value) { this._key = value; } resetKey() { this._key = undefined; } // Temporarily expose input value. Use with caution. get keyInput() { return this._key; } get value() { return this.getStringAttribute('value'); } set value(value) { this._value = value; } resetValue() { this._value = undefined; } // Temporarily expose input value. Use with caution. get valueInput() { return this._value; } } exports.DatascienceModelCustomMetadataListStructOutputReference = DatascienceModelCustomMetadataListStructOutputReference; _f = JSII_RTTI_SYMBOL_1; DatascienceModelCustomMetadataListStructOutputReference[_f] = { fqn: "rhizo-co-terraform-provider-oci.datascienceModel.DatascienceModelCustomMetadataListStructOutputReference", version: "1.0.0" }; class DatascienceModelCustomMetadataListStructList 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 DatascienceModelCustomMetadataListStructOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.DatascienceModelCustomMetadataListStructList = DatascienceModelCustomMetadataListStructList; _g = JSII_RTTI_SYMBOL_1; DatascienceModelCustomMetadataListStructList[_g] = { fqn: "rhizo-co-terraform-provider-oci.datascienceModel.DatascienceModelCustomMetadataListStructList", version: "1.0.0" }; function datascienceModelDefinedMetadataListStructToTerraform(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 { category: cdktf.stringToTerraform(struct.category), description: cdktf.stringToTerraform(struct.description), key: cdktf.stringToTerraform(struct.key), value: cdktf.stringToTerraform(struct.value), }; } exports.datascienceModelDefinedMetadataListStructToTerraform = datascienceModelDefinedMetadataListStructToTerraform; function datascienceModelDefinedMetadataListStructToHclTerraform(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 = { category: { value: cdktf.stringToHclTerraform(struct.category), isBlock: false, type: "simple", storageClassType: "string", }, description: { value: cdktf.stringToHclTerraform(struct.description), isBlock: false, type: "simple", storageClassType: "string", }, key: { value: cdktf.stringToHclTerraform(struct.key), isBlock: false, type: "simple", storageClassType: "string", }, value: { value: cdktf.stringToHclTerraform(struct.value), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.datascienceModelDefinedMetadataListStructToHclTerraform = datascienceModelDefinedMetadataListStructToHclTerraform; class DatascienceModelDefinedMetadataListStructOutputReference 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._category !== undefined) { hasAnyValues = true; internalValueResult.category = this._category; } if (this._description !== undefined) { hasAnyValues = true; internalValueResult.description = this._description; } if (this._key !== undefined) { hasAnyValues = true; internalValueResult.key = this._key; } if (this._value !== undefined) { hasAnyValues = true; internalValueResult.value = this._value; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; this._category = undefined; this._description = undefined; this._key = undefined; this._value = 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._category = value.category; this._description = value.description; this._key = value.key; this._value = value.value; } } get category() { return this.getStringAttribute('category'); } set category(value) { this._category = value; } resetCategory() { this._category = undefined; } // Temporarily expose input value. Use with caution. get categoryInput() { return this._category; } get description() { return this.getStringAttribute('description'); } set description(value) { this._description = value; } resetDescription() { this._description = undefined; } // Temporarily expose input value. Use with caution. get descriptionInput() { return this._description; } get key() { return this.getStringAttribute('key'); } set key(value) { this._key = value; } resetKey() { this._key = undefined; } // Temporarily expose input value. Use with caution. get keyInput() { return this._key; } get value() { return this.getStringAttribute('value'); } set value(value) { this._value = value; } resetValue() { this._value = undefined; } // Temporarily expose input value. Use with caution. get valueInput() { return this._value; } } exports.DatascienceModelDefinedMetadataListStructOutputReference = DatascienceModelDefinedMetadataListStructOutputReference; _h = JSII_RTTI_SYMBOL_1; DatascienceModelDefinedMetadataListStructOutputReference[_h] = { fqn: "rhizo-co-terraform-provider-oci.datascienceModel.DatascienceModelDefinedMetadataListStructOutputReference", version: "1.0.0" }; class DatascienceModelDefinedMetadataListStructList 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 DatascienceModelDefinedMetadataListStructOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.DatascienceModelDefinedMetadataListStructList = DatascienceModelDefinedMetadataListStructList; _j = JSII_RTTI_SYMBOL_1; DatascienceModelDefinedMetadataListStructList[_j] = { fqn: "rhizo-co-terraform-provider-oci.datascienceModel.DatascienceModelDefinedMetadataListStructList", version: "1.0.0" }; function datascienceModelRetentionSettingToTerraform(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 { archive_after_days: cdktf.numberToTerraform(struct.archiveAfterDays), customer_notification_type: cdktf.stringToTerraform(struct.customerNotificationType), delete_after_days: cdktf.numberToTerraform(struct.deleteAfterDays), }; } exports.datascienceModelRetentionSettingToTerraform = datascienceModelRetentionSettingToTerraform; function datascienceModelRetentionSettingToHclTerraform(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 = { archive_after_days: { value: cdktf.numberToHclTerraform(struct.archiveAfterDays), isBlock: false, type: "simple", storageClassType: "number", }, customer_notification_type: { value: cdktf.stringToHclTerraform(struct.customerNotificationType), isBlock: false, type: "simple", storageClassType: "string", }, delete_after_days: { value: cdktf.numberToHclTerraform(struct.deleteAfterDays), isBlock: false, type: "simple", storageClassType: "number", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.datascienceModelRetentionSettingToHclTerraform = datascienceModelRetentionSettingToHclTerraform; class DatascienceModelRetentionSettingOutputReference extends cdktf.ComplexObject { /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing */ constructor(terraformResource, terraformAttribute) { super(terraformResource, terraformAttribute, false, 0); this.isEmptyObject = false; } get internalValue() { let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; if (this._archiveAfterDays !== undefined) { hasAnyValues = true; internalValueResult.archiveAfterDays = this._archiveAfterDays; } if (this._customerNotificationType !== undefined) { hasAnyValues = true; internalValueResult.customerNotificationType = this._customerNotificationType; } if (this._deleteAfterDays !== undefined) { hasAnyValues = true; internalValueResult.deleteAfterDays = this._deleteAfterDays; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._archiveAfterDays = undefined; this._customerNotificationType = undefined; this._deleteAfterDays = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._archiveAfterDays = value.archiveAfterDays; this._customerNotificationType = value.customerNotificationType; this._deleteAfterDays = value.deleteAfterDays; } } get archiveAfterDays() { return this.getNumberAttribute('archive_after_days'); } set archiveAfterDays(value) { this._archiveAfterDays = value; } // Temporarily expose input value. Use with caution. get archiveAfterDaysInput() { return this._archiveAfterDays; } get customerNotificationType() { return this.getStringAttribute('customer_notification_type'); } set customerNotificationType(value) { this._customerNotificationType = value; } resetCustomerNotificationType() { this._customerNotificationType = undefined; } // Temporarily expose input value. Use with caution. get customerNotificationTypeInput() { return this._customerNotificationType; } get deleteAfterDays() { return this.getNumberAttribute('delete_after_days'); } set deleteAfterDays(value) { this._deleteAfterDays = value; } resetDeleteAfterDays() { this._deleteAfterDays = undefined; } // Temporarily expose input value. Use with caution. get deleteAfterDaysInput() { return this._deleteAfterDays; } } exports.DatascienceModelRetentionSettingOutputReference = DatascienceModelRetentionSettingOutputReference; _k = JSII_RTTI_SYMBOL_1; DatascienceModelRetentionSettingOutputReference[_k] = { fqn: "rhizo-co-terraform-provider-oci.datascienceModel.DatascienceModelRetentionSettingOutputReference", version: "1.0.0" }; function datascienceModelTimeoutsToTerraform(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 { create: cdktf.stringToTerraform(struct.create), delete: cdktf.stringToTerraform(struct.delete), update: cdktf.stringToTerraform(struct.update), }; } exports.datascienceModelTimeoutsToTerraform = datascienceModelTimeoutsToTerraform; function datascienceModelTimeoutsToHclTerraform(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 = { create: { value: cdktf.stringToHclTerraform(struct.create), isBlock: false, type: "simple", storageClassType: "string", }, delete: { value: cdktf.stringToHclTerraform(struct.delete), isBlock: false, type: "simple", storageClassType: "string", }, update: { value: cdktf.stringToHclTerraform(struct.update), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.datascienceModelTimeoutsToHclTerraform = datascienceModelTimeoutsToHclTerraform; class DatascienceModelTimeoutsOutputReference extends cdktf.ComplexObject { /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing */ constructor(terraformResource, terraformAttribute) { super(terraformResource, terraformAttribute, false); this.isEmptyObject = false; } get internalValue() { if (this.resolvableValue) { return this.resolvableValue; } let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; if (this._create !== undefined) { hasAnyValues = true; internalValueResult.create = this._create; } if (this._delete !== undefined) { hasAnyValues = true; internalValueResult.delete = this._delete; } if (this._update !== undefined) { hasAnyValues = true; internalValueResult.update = this._update; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; this._create = undefined; this._delete = undefined; this._update = 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._create = value.create; this._delete = value.delete; this._update = value.update; } } get create() { return this.getStringAttribute('create'); } set create(value) { this._create = value; } resetCreate() { this._create = undefined; } // Temporarily expose input value. Use with caution. get createInput() { return this._create; } get delete() { return this.getStringAttribute('delete'); } set delete(value) { this._delete = value; } resetDelete() { this._delete = undefined; } // Temporarily expose input value. Use with caution. get deleteInput() { return this._delete; } get update() { return this.getStringAttribute('update'); } set update(value) { this._update = value; } resetUpdate() { this._update = undefined; } // Temporarily expose input value. Use with caution. get updateInput() { return this._update; } } exports.DatascienceModelTimeoutsOutputReference = DatascienceModelTimeoutsOutputReference; _l = JSII_RTTI_SYMBOL_1; DatascienceModelTimeoutsOutputReference[_l] = { fqn: "rhizo-co-terraform-provider-oci.datascienceModel.DatascienceModelTimeoutsOutputReference", version: "1.0.0" }; /** * Represents a {@link https://registry.terraform.io/providers/oracle/oci/6.18.0/docs/resources/datascience_model oci_datascience_model} */ class DatascienceModel extends cdktf.TerraformResource { // ============== // STATIC Methods // ============== /** * Generates CDKTF code for importing a DatascienceModel 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 DatascienceModel to import * @param importFromId The id of the existing DatascienceModel that should be imported. Refer to the {@link https://registry.terraform.io/providers/oracle/oci/6.18.0/docs/resources/datascience_model#import import section} in the documentation of this resource for the id to use * @param provider? Optional instance of the provider where the DatascienceModel to import is found */ static generateConfigForImport(scope, importToId, importFromId, provider) { return new cdktf.ImportableResource(scope, importToId, { terraformResourceType: "oci_datascience_model", importId: importFromId, provider }); } // =========== // INITIALIZER // =========== /** * Create a new {@link https://registry.terraform.io/providers/oracle/oci/6.18.0/docs/resources/datascience_model oci_datascience_model} Resource * * @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 DatascienceModelConfig */ constructor(scope, id, config) { super(scope, id, { terraformResourceType: 'oci_datascience_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 }); // backup_operation_details - computed: true, optional: false, required: false this._backupOperationDetails = new DatascienceModelBackupOperationDetailsList(this, "backup_operation_details", false); // retention_operation_details - computed: true, optional: false, required: false this._retentionOperationDetails = new DatascienceModelRetentionOperationDetailsList(this, "retention_operation_details", false); // backup_setting - computed: false, optional: true, required: false this._backupSetting = new DatascienceModelBackupSettingOutputReference(this, "backup_setting"); // custom_metadata_list - computed: false, optional: true, required: false this._customMetadataList = new DatascienceModelCustomMetadataListStructList(this, "custom_metadata_list", false); // defined_metadata_list - computed: false, optional: true, required: false this._definedMetadataList = new DatascienceModelDefinedMetadataListStructList(this, "defined_metadata_list", false); // retention_setting - computed: false, optional: true, required: false this._retentionSetting = new DatascienceModelRetentionSettingOutputReference(this, "retention_setting"); // timeouts - computed: false, optional: true, required: false this._timeouts = new DatascienceModelTimeoutsOutputReference(this, "timeouts"); this._artifactContentDisposition = config.artifactContentDisposition; this._artifactContentLength = config.artifactContentLength; this._compartmentId = config.compartmentId; this._definedTags = config.definedTags; this._description = config.description; this._displayName = config.displayName; this._freeformTags = config.freeformTags; this._id = config.id; this._inputSchema = config.inputSchema; this._modelArtifact = config.modelArtifact; this._modelVersionSetId = config.modelVersionSetId; this._modelVersionSetName = config.modelVersionSetName; this._outputSchema = config.outputSchema; this._projectId = config.projectId; this._state = config.state; this._versionLabel = config.versionLabel; this._backupSetting.internalValue = config.backupSetting; this._customMetadataList.internalValue = config.customMetadataList; this._definedMetadataList.internalValue = config.definedMetadataList; this._retentionSetting.internalValue = config.retentionSetting; this._timeouts.internalValue = config.timeouts; } get artifactContentDisposition() { return this.getStringAttribute('artifact_content_disposition'); } set artifactContentDisposition(value) { this._artifactContentDisposition = value; } resetArtifactContentDisposition() { this._artifactContentDisposition = undefined; } // Temporarily expose input value. Use with caution. get artifactContentDispositionInput() { return this._artifactContentDisposition; } get artifactContentLength() { return this.getStringAttribute('artifact_content_length'); } set artifactContentLength(value) { this._artifactContentLength = value; } // Temporarily expose input value. Use with caution. get artifactContentLengthInput() { return this._artifactContentLength; } // artifact_content_md5 - computed: true, optional: false, required: false get artifactContentMd5() { return this.getStringAttribute('artifact_content_md5'); } // artifact_last_modified - computed: true, optional: false, required: false get artifactLastModified() { return this.getStringAttribute('artifact_last_modified'); } get backupOperationDetails() { return this._backupOperationDetails; } 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; } // created_by - computed: true, optional: false, required: false get createdBy() { return this.getStringAttribute('created_by'); } get definedTags() { return this.getStringMapAttribute('defined_tags'); } set definedTags(value) { this._definedTags = value; } resetDefinedTags() { this._definedTags = undefined; } // Temporarily expose input value. Use with caution. get definedTagsInput() { return this._definedTags; } get description() { return this.getStringAttribute('description'); } set description(value) { this._description = value; } resetDescription() { this._description = undefined; } // Temporarily expose input value. Use with caution. get descriptionInput() { return this._description; } 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; } // empty_model - computed: true, optional: false, required: false get emptyModel() { return this.getBooleanAttribute('empty_model'); } get freeformTags() { return this.getStringMapAttribute('freeform_tags'); } set freeformTags(value) { this._freeformTags = value; } resetFreeformTags() { this._freeformTags = undefined; } // Temporarily expose input value. Use with caution. get freeformTagsInput() { return this._freeformTags; } 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 inputSchema() { return this.getStringAttribute('input_schema'); } set inputSchema(value) { this._inputSchema = value; } resetInputSchema() { this._inputSchema = undefined; } // Temporarily expose input value. Use with caution. get inputSchemaInput() { return this._inputSchema; } // lifecycle_details - computed: true, optional: false, required: false get lifecycleDetails() { return this.getStringAttribute('lifecycle_details'); } get modelArtifact() { return this.getStringAttribute('model_artifact'); } set modelArtifact(value) { this._modelArtifact = value; } // Temporarily expose input value. Use with caution. get modelArtifactInput() { return this._modelArtifact; } get modelVersionSetId() { return this.getStringAttribute('model_version_set_id'); } set modelVersionSetId(value) { this._modelVersionSetId = value; } resetModelVersionSetId() { this._modelVersionSetId = undefined; } // Temporarily expose input value. Use with caution. get modelVersionSetIdInput() { return this._modelVersionSetId; } get modelVersionSetName() { return this.getStringAttribute('model_version_set_name'); } set modelVersionSetName(value) { this._modelVersionSetName = value; } resetModelVersionSetName() { this._modelVersionSetName = undefined;