rhizo-co-terraform-provider-oci
Version:
Prebuilt oci Provider for Terraform CDK (cdktf)
1,228 lines • 174 kB
JavaScript
"use strict";
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
Object.defineProperty(exports, "__esModule", { value: true });
exports.OcvpCluster = exports.OcvpClusterTimeoutsOutputReference = exports.ocvpClusterTimeoutsToHclTerraform = exports.ocvpClusterTimeoutsToTerraform = exports.OcvpClusterNetworkConfigurationOutputReference = exports.ocvpClusterNetworkConfigurationToHclTerraform = exports.ocvpClusterNetworkConfigurationToTerraform = exports.OcvpClusterDatastoresList = exports.OcvpClusterDatastoresOutputReference = exports.ocvpClusterDatastoresToHclTerraform = exports.ocvpClusterDatastoresToTerraform = exports.OcvpClusterVsphereUpgradeObjectsList = exports.OcvpClusterVsphereUpgradeObjectsOutputReference = exports.ocvpClusterVsphereUpgradeObjectsToHclTerraform = exports.ocvpClusterVsphereUpgradeObjectsToTerraform = exports.OcvpClusterUpgradeLicensesList = exports.OcvpClusterUpgradeLicensesOutputReference = exports.ocvpClusterUpgradeLicensesToHclTerraform = exports.ocvpClusterUpgradeLicensesToTerraform = void 0;
const JSII_RTTI_SYMBOL_1 = Symbol.for("jsii.rtti");
const cdktf = require("cdktf");
function ocvpClusterUpgradeLicensesToTerraform(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.ocvpClusterUpgradeLicensesToTerraform = ocvpClusterUpgradeLicensesToTerraform;
function ocvpClusterUpgradeLicensesToHclTerraform(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.ocvpClusterUpgradeLicensesToHclTerraform = ocvpClusterUpgradeLicensesToHclTerraform;
class OcvpClusterUpgradeLicensesOutputReference 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;
}
}
// license_key - computed: true, optional: false, required: false
get licenseKey() {
return this.getStringAttribute('license_key');
}
// license_type - computed: true, optional: false, required: false
get licenseType() {
return this.getStringAttribute('license_type');
}
}
exports.OcvpClusterUpgradeLicensesOutputReference = OcvpClusterUpgradeLicensesOutputReference;
_a = JSII_RTTI_SYMBOL_1;
OcvpClusterUpgradeLicensesOutputReference[_a] = { fqn: "rhizo-co-terraform-provider-oci.ocvpCluster.OcvpClusterUpgradeLicensesOutputReference", version: "1.0.0" };
class OcvpClusterUpgradeLicensesList 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 OcvpClusterUpgradeLicensesOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.OcvpClusterUpgradeLicensesList = OcvpClusterUpgradeLicensesList;
_b = JSII_RTTI_SYMBOL_1;
OcvpClusterUpgradeLicensesList[_b] = { fqn: "rhizo-co-terraform-provider-oci.ocvpCluster.OcvpClusterUpgradeLicensesList", version: "1.0.0" };
function ocvpClusterVsphereUpgradeObjectsToTerraform(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.ocvpClusterVsphereUpgradeObjectsToTerraform = ocvpClusterVsphereUpgradeObjectsToTerraform;
function ocvpClusterVsphereUpgradeObjectsToHclTerraform(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.ocvpClusterVsphereUpgradeObjectsToHclTerraform = ocvpClusterVsphereUpgradeObjectsToHclTerraform;
class OcvpClusterVsphereUpgradeObjectsOutputReference 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;
}
}
// download_link - computed: true, optional: false, required: false
get downloadLink() {
return this.getStringAttribute('download_link');
}
// link_description - computed: true, optional: false, required: false
get linkDescription() {
return this.getStringAttribute('link_description');
}
}
exports.OcvpClusterVsphereUpgradeObjectsOutputReference = OcvpClusterVsphereUpgradeObjectsOutputReference;
_c = JSII_RTTI_SYMBOL_1;
OcvpClusterVsphereUpgradeObjectsOutputReference[_c] = { fqn: "rhizo-co-terraform-provider-oci.ocvpCluster.OcvpClusterVsphereUpgradeObjectsOutputReference", version: "1.0.0" };
class OcvpClusterVsphereUpgradeObjectsList 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 OcvpClusterVsphereUpgradeObjectsOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.OcvpClusterVsphereUpgradeObjectsList = OcvpClusterVsphereUpgradeObjectsList;
_d = JSII_RTTI_SYMBOL_1;
OcvpClusterVsphereUpgradeObjectsList[_d] = { fqn: "rhizo-co-terraform-provider-oci.ocvpCluster.OcvpClusterVsphereUpgradeObjectsList", version: "1.0.0" };
function ocvpClusterDatastoresToTerraform(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 {
block_volume_ids: cdktf.listMapper(cdktf.stringToTerraform, false)(struct.blockVolumeIds),
datastore_type: cdktf.stringToTerraform(struct.datastoreType),
};
}
exports.ocvpClusterDatastoresToTerraform = ocvpClusterDatastoresToTerraform;
function ocvpClusterDatastoresToHclTerraform(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 = {
block_volume_ids: {
value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(struct.blockVolumeIds),
isBlock: false,
type: "list",
storageClassType: "stringList",
},
datastore_type: {
value: cdktf.stringToHclTerraform(struct.datastoreType),
isBlock: false,
type: "simple",
storageClassType: "string",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
exports.ocvpClusterDatastoresToHclTerraform = ocvpClusterDatastoresToHclTerraform;
class OcvpClusterDatastoresOutputReference 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._blockVolumeIds !== undefined) {
hasAnyValues = true;
internalValueResult.blockVolumeIds = this._blockVolumeIds;
}
if (this._datastoreType !== undefined) {
hasAnyValues = true;
internalValueResult.datastoreType = this._datastoreType;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this.resolvableValue = undefined;
this._blockVolumeIds = undefined;
this._datastoreType = 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._blockVolumeIds = value.blockVolumeIds;
this._datastoreType = value.datastoreType;
}
}
get blockVolumeIds() {
return this.getListAttribute('block_volume_ids');
}
set blockVolumeIds(value) {
this._blockVolumeIds = value;
}
// Temporarily expose input value. Use with caution.
get blockVolumeIdsInput() {
return this._blockVolumeIds;
}
// capacity - computed: true, optional: false, required: false
get capacity() {
return this.getNumberAttribute('capacity');
}
get datastoreType() {
return this.getStringAttribute('datastore_type');
}
set datastoreType(value) {
this._datastoreType = value;
}
// Temporarily expose input value. Use with caution.
get datastoreTypeInput() {
return this._datastoreType;
}
}
exports.OcvpClusterDatastoresOutputReference = OcvpClusterDatastoresOutputReference;
_e = JSII_RTTI_SYMBOL_1;
OcvpClusterDatastoresOutputReference[_e] = { fqn: "rhizo-co-terraform-provider-oci.ocvpCluster.OcvpClusterDatastoresOutputReference", version: "1.0.0" };
class OcvpClusterDatastoresList 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 OcvpClusterDatastoresOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.OcvpClusterDatastoresList = OcvpClusterDatastoresList;
_f = JSII_RTTI_SYMBOL_1;
OcvpClusterDatastoresList[_f] = { fqn: "rhizo-co-terraform-provider-oci.ocvpCluster.OcvpClusterDatastoresList", version: "1.0.0" };
function ocvpClusterNetworkConfigurationToTerraform(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 {
hcx_vlan_id: cdktf.stringToTerraform(struct.hcxVlanId),
nsx_edge_uplink1vlan_id: cdktf.stringToTerraform(struct.nsxEdgeUplink1VlanId),
nsx_edge_uplink2vlan_id: cdktf.stringToTerraform(struct.nsxEdgeUplink2VlanId),
nsx_edge_vtep_vlan_id: cdktf.stringToTerraform(struct.nsxEdgeVtepVlanId),
nsx_vtep_vlan_id: cdktf.stringToTerraform(struct.nsxVtepVlanId),
provisioning_subnet_id: cdktf.stringToTerraform(struct.provisioningSubnetId),
provisioning_vlan_id: cdktf.stringToTerraform(struct.provisioningVlanId),
replication_vlan_id: cdktf.stringToTerraform(struct.replicationVlanId),
vmotion_vlan_id: cdktf.stringToTerraform(struct.vmotionVlanId),
vsan_vlan_id: cdktf.stringToTerraform(struct.vsanVlanId),
vsphere_vlan_id: cdktf.stringToTerraform(struct.vsphereVlanId),
};
}
exports.ocvpClusterNetworkConfigurationToTerraform = ocvpClusterNetworkConfigurationToTerraform;
function ocvpClusterNetworkConfigurationToHclTerraform(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 = {
hcx_vlan_id: {
value: cdktf.stringToHclTerraform(struct.hcxVlanId),
isBlock: false,
type: "simple",
storageClassType: "string",
},
nsx_edge_uplink1vlan_id: {
value: cdktf.stringToHclTerraform(struct.nsxEdgeUplink1VlanId),
isBlock: false,
type: "simple",
storageClassType: "string",
},
nsx_edge_uplink2vlan_id: {
value: cdktf.stringToHclTerraform(struct.nsxEdgeUplink2VlanId),
isBlock: false,
type: "simple",
storageClassType: "string",
},
nsx_edge_vtep_vlan_id: {
value: cdktf.stringToHclTerraform(struct.nsxEdgeVtepVlanId),
isBlock: false,
type: "simple",
storageClassType: "string",
},
nsx_vtep_vlan_id: {
value: cdktf.stringToHclTerraform(struct.nsxVtepVlanId),
isBlock: false,
type: "simple",
storageClassType: "string",
},
provisioning_subnet_id: {
value: cdktf.stringToHclTerraform(struct.provisioningSubnetId),
isBlock: false,
type: "simple",
storageClassType: "string",
},
provisioning_vlan_id: {
value: cdktf.stringToHclTerraform(struct.provisioningVlanId),
isBlock: false,
type: "simple",
storageClassType: "string",
},
replication_vlan_id: {
value: cdktf.stringToHclTerraform(struct.replicationVlanId),
isBlock: false,
type: "simple",
storageClassType: "string",
},
vmotion_vlan_id: {
value: cdktf.stringToHclTerraform(struct.vmotionVlanId),
isBlock: false,
type: "simple",
storageClassType: "string",
},
vsan_vlan_id: {
value: cdktf.stringToHclTerraform(struct.vsanVlanId),
isBlock: false,
type: "simple",
storageClassType: "string",
},
vsphere_vlan_id: {
value: cdktf.stringToHclTerraform(struct.vsphereVlanId),
isBlock: false,
type: "simple",
storageClassType: "string",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
exports.ocvpClusterNetworkConfigurationToHclTerraform = ocvpClusterNetworkConfigurationToHclTerraform;
class OcvpClusterNetworkConfigurationOutputReference 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._hcxVlanId !== undefined) {
hasAnyValues = true;
internalValueResult.hcxVlanId = this._hcxVlanId;
}
if (this._nsxEdgeUplink1VlanId !== undefined) {
hasAnyValues = true;
internalValueResult.nsxEdgeUplink1VlanId = this._nsxEdgeUplink1VlanId;
}
if (this._nsxEdgeUplink2VlanId !== undefined) {
hasAnyValues = true;
internalValueResult.nsxEdgeUplink2VlanId = this._nsxEdgeUplink2VlanId;
}
if (this._nsxEdgeVtepVlanId !== undefined) {
hasAnyValues = true;
internalValueResult.nsxEdgeVtepVlanId = this._nsxEdgeVtepVlanId;
}
if (this._nsxVtepVlanId !== undefined) {
hasAnyValues = true;
internalValueResult.nsxVtepVlanId = this._nsxVtepVlanId;
}
if (this._provisioningSubnetId !== undefined) {
hasAnyValues = true;
internalValueResult.provisioningSubnetId = this._provisioningSubnetId;
}
if (this._provisioningVlanId !== undefined) {
hasAnyValues = true;
internalValueResult.provisioningVlanId = this._provisioningVlanId;
}
if (this._replicationVlanId !== undefined) {
hasAnyValues = true;
internalValueResult.replicationVlanId = this._replicationVlanId;
}
if (this._vmotionVlanId !== undefined) {
hasAnyValues = true;
internalValueResult.vmotionVlanId = this._vmotionVlanId;
}
if (this._vsanVlanId !== undefined) {
hasAnyValues = true;
internalValueResult.vsanVlanId = this._vsanVlanId;
}
if (this._vsphereVlanId !== undefined) {
hasAnyValues = true;
internalValueResult.vsphereVlanId = this._vsphereVlanId;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._hcxVlanId = undefined;
this._nsxEdgeUplink1VlanId = undefined;
this._nsxEdgeUplink2VlanId = undefined;
this._nsxEdgeVtepVlanId = undefined;
this._nsxVtepVlanId = undefined;
this._provisioningSubnetId = undefined;
this._provisioningVlanId = undefined;
this._replicationVlanId = undefined;
this._vmotionVlanId = undefined;
this._vsanVlanId = undefined;
this._vsphereVlanId = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._hcxVlanId = value.hcxVlanId;
this._nsxEdgeUplink1VlanId = value.nsxEdgeUplink1VlanId;
this._nsxEdgeUplink2VlanId = value.nsxEdgeUplink2VlanId;
this._nsxEdgeVtepVlanId = value.nsxEdgeVtepVlanId;
this._nsxVtepVlanId = value.nsxVtepVlanId;
this._provisioningSubnetId = value.provisioningSubnetId;
this._provisioningVlanId = value.provisioningVlanId;
this._replicationVlanId = value.replicationVlanId;
this._vmotionVlanId = value.vmotionVlanId;
this._vsanVlanId = value.vsanVlanId;
this._vsphereVlanId = value.vsphereVlanId;
}
}
get hcxVlanId() {
return this.getStringAttribute('hcx_vlan_id');
}
set hcxVlanId(value) {
this._hcxVlanId = value;
}
resetHcxVlanId() {
this._hcxVlanId = undefined;
}
// Temporarily expose input value. Use with caution.
get hcxVlanIdInput() {
return this._hcxVlanId;
}
get nsxEdgeUplink1VlanId() {
return this.getStringAttribute('nsx_edge_uplink1vlan_id');
}
set nsxEdgeUplink1VlanId(value) {
this._nsxEdgeUplink1VlanId = value;
}
resetNsxEdgeUplink1VlanId() {
this._nsxEdgeUplink1VlanId = undefined;
}
// Temporarily expose input value. Use with caution.
get nsxEdgeUplink1VlanIdInput() {
return this._nsxEdgeUplink1VlanId;
}
get nsxEdgeUplink2VlanId() {
return this.getStringAttribute('nsx_edge_uplink2vlan_id');
}
set nsxEdgeUplink2VlanId(value) {
this._nsxEdgeUplink2VlanId = value;
}
resetNsxEdgeUplink2VlanId() {
this._nsxEdgeUplink2VlanId = undefined;
}
// Temporarily expose input value. Use with caution.
get nsxEdgeUplink2VlanIdInput() {
return this._nsxEdgeUplink2VlanId;
}
get nsxEdgeVtepVlanId() {
return this.getStringAttribute('nsx_edge_vtep_vlan_id');
}
set nsxEdgeVtepVlanId(value) {
this._nsxEdgeVtepVlanId = value;
}
// Temporarily expose input value. Use with caution.
get nsxEdgeVtepVlanIdInput() {
return this._nsxEdgeVtepVlanId;
}
get nsxVtepVlanId() {
return this.getStringAttribute('nsx_vtep_vlan_id');
}
set nsxVtepVlanId(value) {
this._nsxVtepVlanId = value;
}
// Temporarily expose input value. Use with caution.
get nsxVtepVlanIdInput() {
return this._nsxVtepVlanId;
}
get provisioningSubnetId() {
return this.getStringAttribute('provisioning_subnet_id');
}
set provisioningSubnetId(value) {
this._provisioningSubnetId = value;
}
// Temporarily expose input value. Use with caution.
get provisioningSubnetIdInput() {
return this._provisioningSubnetId;
}
get provisioningVlanId() {
return this.getStringAttribute('provisioning_vlan_id');
}
set provisioningVlanId(value) {
this._provisioningVlanId = value;
}
resetProvisioningVlanId() {
this._provisioningVlanId = undefined;
}
// Temporarily expose input value. Use with caution.
get provisioningVlanIdInput() {
return this._provisioningVlanId;
}
get replicationVlanId() {
return this.getStringAttribute('replication_vlan_id');
}
set replicationVlanId(value) {
this._replicationVlanId = value;
}
resetReplicationVlanId() {
this._replicationVlanId = undefined;
}
// Temporarily expose input value. Use with caution.
get replicationVlanIdInput() {
return this._replicationVlanId;
}
get vmotionVlanId() {
return this.getStringAttribute('vmotion_vlan_id');
}
set vmotionVlanId(value) {
this._vmotionVlanId = value;
}
// Temporarily expose input value. Use with caution.
get vmotionVlanIdInput() {
return this._vmotionVlanId;
}
get vsanVlanId() {
return this.getStringAttribute('vsan_vlan_id');
}
set vsanVlanId(value) {
this._vsanVlanId = value;
}
// Temporarily expose input value. Use with caution.
get vsanVlanIdInput() {
return this._vsanVlanId;
}
get vsphereVlanId() {
return this.getStringAttribute('vsphere_vlan_id');
}
set vsphereVlanId(value) {
this._vsphereVlanId = value;
}
resetVsphereVlanId() {
this._vsphereVlanId = undefined;
}
// Temporarily expose input value. Use with caution.
get vsphereVlanIdInput() {
return this._vsphereVlanId;
}
}
exports.OcvpClusterNetworkConfigurationOutputReference = OcvpClusterNetworkConfigurationOutputReference;
_g = JSII_RTTI_SYMBOL_1;
OcvpClusterNetworkConfigurationOutputReference[_g] = { fqn: "rhizo-co-terraform-provider-oci.ocvpCluster.OcvpClusterNetworkConfigurationOutputReference", version: "1.0.0" };
function ocvpClusterTimeoutsToTerraform(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.ocvpClusterTimeoutsToTerraform = ocvpClusterTimeoutsToTerraform;
function ocvpClusterTimeoutsToHclTerraform(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.ocvpClusterTimeoutsToHclTerraform = ocvpClusterTimeoutsToHclTerraform;
class OcvpClusterTimeoutsOutputReference 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.OcvpClusterTimeoutsOutputReference = OcvpClusterTimeoutsOutputReference;
_h = JSII_RTTI_SYMBOL_1;
OcvpClusterTimeoutsOutputReference[_h] = { fqn: "rhizo-co-terraform-provider-oci.ocvpCluster.OcvpClusterTimeoutsOutputReference", version: "1.0.0" };
/**
* Represents a {@link https://registry.terraform.io/providers/oracle/oci/6.18.0/docs/resources/ocvp_cluster oci_ocvp_cluster}
*/
class OcvpCluster extends cdktf.TerraformResource {
// ==============
// STATIC Methods
// ==============
/**
* Generates CDKTF code for importing a OcvpCluster 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 OcvpCluster to import
* @param importFromId The id of the existing OcvpCluster that should be imported. Refer to the {@link https://registry.terraform.io/providers/oracle/oci/6.18.0/docs/resources/ocvp_cluster#import import section} in the documentation of this resource for the id to use
* @param provider? Optional instance of the provider where the OcvpCluster to import is found
*/
static generateConfigForImport(scope, importToId, importFromId, provider) {
return new cdktf.ImportableResource(scope, importToId, { terraformResourceType: "oci_ocvp_cluster", importId: importFromId, provider });
}
// ===========
// INITIALIZER
// ===========
/**
* Create a new {@link https://registry.terraform.io/providers/oracle/oci/6.18.0/docs/resources/ocvp_cluster oci_ocvp_cluster} 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 OcvpClusterConfig
*/
constructor(scope, id, config) {
super(scope, id, {
terraformResourceType: 'oci_ocvp_cluster',
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
});
// upgrade_licenses - computed: true, optional: false, required: false
this._upgradeLicenses = new OcvpClusterUpgradeLicensesList(this, "upgrade_licenses", false);
// vsphere_upgrade_objects - computed: true, optional: false, required: false
this._vsphereUpgradeObjects = new OcvpClusterVsphereUpgradeObjectsList(this, "vsphere_upgrade_objects", false);
// datastores - computed: false, optional: true, required: false
this._datastores = new OcvpClusterDatastoresList(this, "datastores", false);
// network_configuration - computed: false, optional: false, required: true
this._networkConfiguration = new OcvpClusterNetworkConfigurationOutputReference(this, "network_configuration");
// timeouts - computed: false, optional: true, required: false
this._timeouts = new OcvpClusterTimeoutsOutputReference(this, "timeouts");
this._capacityReservationId = config.capacityReservationId;
this._computeAvailabilityDomain = config.computeAvailabilityDomain;
this._definedTags = config.definedTags;
this._displayName = config.displayName;
this._esxiHostsCount = config.esxiHostsCount;
this._esxiSoftwareVersion = config.esxiSoftwareVersion;
this._freeformTags = config.freeformTags;
this._id = config.id;
this._initialCommitment = config.initialCommitment;
this._initialHostOcpuCount = config.initialHostOcpuCount;
this._initialHostShapeName = config.initialHostShapeName;
this._instanceDisplayNamePrefix = config.instanceDisplayNamePrefix;
this._isShieldedInstanceEnabled = config.isShieldedInstanceEnabled;
this._sddcId = config.sddcId;
this._vmwareSoftwareVersion = config.vmwareSoftwareVersion;
this._workloadNetworkCidr = config.workloadNetworkCidr;
this._datastores.internalValue = config.datastores;
this._networkConfiguration.internalValue = config.networkConfiguration;
this._timeouts.internalValue = config.timeouts;
}
// ==========
// ATTRIBUTES
// ==========
// actual_esxi_hosts_count - computed: true, optional: false, required: false
get actualEsxiHostsCount() {
return this.getNumberAttribute('actual_esxi_hosts_count');
}
get capacityReservationId() {
return this.getStringAttribute('capacity_reservation_id');
}
set capacityReservationId(value) {
this._capacityReservationId = value;
}
resetCapacityReservationId() {
this._capacityReservationId = undefined;
}
// Temporarily expose input value. Use with caution.
get capacityReservationIdInput() {
return this._capacityReservationId;
}
// compartment_id - computed: true, optional: false, required: false
get compartmentId() {
return this.getStringAttribute('compartment_id');
}
get computeAvailabilityDomain() {
return this.getStringAttribute('compute_availability_domain');
}
set computeAvailabilityDomain(value) {
this._computeAvailabilityDomain = value;
}
// Temporarily expose input value. Use with caution.
get computeAvailabilityDomainInput() {
return this._computeAvailabilityDomain;
}
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 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 esxiHostsCount() {
return this.getNumberAttribute('esxi_hosts_count');
}
set esxiHostsCount(value) {
this._esxiHostsCount = value;
}
// Temporarily expose input value. Use with caution.
get esxiHostsCountInput() {
return this._esxiHostsCount;
}
get esxiSoftwareVersion() {
return this.getStringAttribute('esxi_software_version');
}
set esxiSoftwareVersion(value) {
this._esxiSoftwareVersion = value;
}
resetEsxiSoftwareVersion() {
this._esxiSoftwareVersion = undefined;
}
// Temporarily expose input value. Use with caution.
get esxiSoftwareVersionInput() {
return this._esxiSoftwareVersion;
}
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 initialCommitment() {
return this.getStringAttribute('initial_commitment');
}
set initialCommitment(value) {
this._initialCommitment = value;
}
resetInitialCommitment() {
this._initialCommitment = undefined;
}
// Temporarily expose input value. Use with caution.
get initialCommitmentInput() {
return this._initialCommitment;
}
get initialHostOcpuCount() {
return this.getNumberAttribute('initial_host_ocpu_count');
}
set initialHostOcpuCount(value) {
this._initialHostOcpuCount = value;
}
resetInitialHostOcpuCount() {
this._initialHostOcpuCount = undefined;
}
// Temporarily expose input value. Use with caution.
get initialHostOcpuCountInput() {
return this._initialHostOcpuCount;
}
get initialHostShapeName() {
return this.getStringAttribute('initial_host_shape_name');
}
set initialHostShapeName(value) {
this._initialHostShapeName = value;
}
resetInitialHostShapeName() {
this._initialHostShapeName = undefined;
}
// Temporarily expose input value. Use with caution.
get initialHostShapeNameInput() {
return this._initialHostShapeName;
}
get instanceDisplayNamePrefix() {
return this.getStringAttribute('instance_display_name_prefix');
}
set instanceDisplayNamePrefix(value) {
this._instanceDisplayNamePrefix = value;
}
resetInstanceDisplayNamePrefix() {
this._instanceDisplayNamePrefix = undefined;
}
// Temporarily expose input value. Use with caution.
get instanceDisplayNamePrefixInput() {
return this._instanceDisplayNamePrefix;
}
get isShieldedInstanceEnabled() {
return this.getBooleanAttribute('is_shielded_instance_enabled');
}
set isShieldedInstanceEnabled(value) {
this._isShieldedInstanceEnabled = value;
}
resetIsShieldedInstanceEnabled() {
this._isShieldedInstanceEnabled = undefined;
}
// Temporarily expose input value. Use with caution.
get isShieldedInstanceEnabledInput() {
return this._isShieldedInstanceEnabled;
}
get sddcId() {
return this.getStringAttribute('sddc_id');
}
set sddcId(value) {
this._sddcId = value;
}
// Temporarily expose input value. Use with caution.
get sddcIdInput() {
return this._sddcId;
}
// state - computed: true, optional: false, required: false
get state() {
return this.getStringAttribute('state');
}
// time_created - computed: true, optional: false, required: false
get timeCreated() {
return this.getStringAttribute('time_created');
}
// time_updated - computed: true, optional: false, required: false
get timeUpdated() {
return this.getStringAttribute('time_updated');
}
get upgradeLicenses() {
return this._upgradeLicenses;
}
get vmwareSoftwareVersion() {
return this.getStringAttribute('vmware_software_version');
}
set vmwareSoftwareVersion(value) {
this._vmwareSoftwareVersion = value;
}
resetVmwareSoftwareVersion() {
this._vmwareSoftwareVersion = undefined;
}
// Temporarily expose input value. Use with caution.
get vmwareSoftwareVersionInput() {
return this._vmwareSoftwareVersion;
}
// vsphere_type - computed: true, optional: false, required: false
get vsphereType() {
return this.getStringAttribute('vsphere_type');
}
get vsphereUpgradeObjects() {
return this._vsphereUpgradeObjects;
}
get workloadNetworkCidr() {
return this.getStringAttribute('workload_network_cidr');
}
set workloadNetworkCidr(value) {
this._workloadNetworkCidr = value;
}
resetWorkloadNetworkCidr() {
this._workloadNetworkCidr = undefined;
}
// Temporarily expose input value. Use with caution.
get workloadNetworkCidrInput() {
return this._workloadNetworkCidr;
}
get datastores() {
return this._datastores;
}
putDatastores(value) {
this._datastores.internalValue = value;
}
resetDatastores() {
this._datastores.internalValue = undefined;
}
// Temporarily expose input value. Use with caution.
get datastoresInput() {
return this._datastores.internalValue;
}
get networkConfiguration() {
return this._networkConfiguration;
}
putNetworkConfiguration(value) {
this._networkConfiguration.internalValue = value;
}
// Temporarily expose input value. Use with caution.
get networkConfigurationInput() {
return this._networkConfiguration.internalValue;
}
get timeouts() {
return this._timeouts;
}
putTimeouts(value) {
this._timeouts.internalValue = value;
}
resetTimeouts() {
this._timeouts.internalValue = undefined;
}
// Temporarily expose input value. Use with caution.
get timeoutsInput() {
return this._timeouts.internalValue;
}
// =========
// SYNTHESIS
// =========
synthesizeAttributes() {
return {
capacity_reservation_id: cdktf.stringToTerraform(this._capacityReservationId),
compute_availability_domain: cdktf.stringToTerraform(this._computeAvailabilityDomain),
defined_tags: cdktf.hashMapper(cdktf.stringToTerraform)(this._definedTags),
display_name: cdktf.stringToTerraform(this._displayName),
esxi_hosts_count: cdktf.numberToTerraform(this._esxiHostsCount),
esxi_software_version: cdktf.stringToTerraform(this._esxiSoftwareVersion),
freeform_tags: cdktf.hashMapper(cdktf.stringToTerraform)(this._freeformTags),
id: cdktf.stringToTerraform(this._id),
initial_commitment: cdktf.stringToTerraform(this._initialCommitment),
initial_host_ocpu_count: cdktf.numberToTerraform(this._initialHostOcpuCount),
initial_host_shape_name: cdktf.stringToTerraform(this._initialHostShapeName),
instance_display_name_prefix: cdktf.stringToTerraform(this._instanceDisplayNamePrefix),
is_shielded_instance_enabled: cdktf.booleanToTerraform(this._isShieldedInstanceEnabled),
sddc_id: cdktf.stringToTerraform(this._sddcId),
vmware_software_version: cdktf.stringToTerraform(this._vmwareSoftwareVersion),
workload_network_cidr: cdktf.stringToTerraform(this._workloadNetworkCidr),
datastores: cdktf.listMapper(ocvpClusterDatastoresToTerraform, true)(this._datastores.internalValue),
network_configuration: ocvpClusterNetworkConfigurationToTerraform(this._networkConfiguration.internalValue),
timeouts: ocvpClusterTimeoutsToTerraform(this._timeouts.internalValue),
};
}
synthesizeHclAttributes() {
const attrs = {
capacity_reservation_id: {
value: cdktf.stringToHclTerraform(this._capacityReservationId),
isBlock: false,
type: "simple",
storageClassType: "string",
},
compute_availability_domain: {
value: cdktf.stringToHclTerraform(this._computeAvailabilityDomain),
isBlock: false,
type: "simple",
storageClassType: "string",
},
defined_tags: {
value: cdktf.hashMapperHcl(cdktf.stringToHclTerraform)(this._definedTags),
isBlock: false,
type: "map",
storageClassType: "stringMap",
},
display_name: {
value: cdktf.stringToHclTerraform(this._displayName),
isBlock: false,
type: "simple",
storageClassType: "string",
},
esxi_hosts_count: {
value: cdktf.numberToHclTerraform(this._esxiHostsCount),
isBlock: false,
type: "simple",
storageClassType: "number",
},
esxi_software_version: {
value: cdktf.stringToHclTerraform(this._esxiSoftwareVersion),
isBlock: false,
type: "simple",
storageClassType: "string",
},
freeform_tags: {
value: cdktf.hashMapperHcl(cdktf.stringToHclTerraform)(this._freeformTags),
isBlock: false,
type: "map",
storageClassType: "stringMap",
},
id: {
value: cdktf.stringToHclTerraform(this._id),
isBlock: false,
type: "simple",
storageClassType: "string",
},
initial_commitment: {
value: cdktf.stringToHclTerraform(this._initialCommitment),
isBlock: false,
type: "simple",
storageClassType: "string",
},
initial_host_ocpu_count: {
value: cdktf.numberToHclTerraform(this._initialHostOcpuCount),
isBlock: false,
type: "simple",
storageClassType: "number",
},
initial_host_shape_name: {
value: cdktf.stringToHclTerraform(this._initialHostShapeName),
isBlock: false,
type: "simple",
storageClassType: "string",
},
instance_display_name_prefix: {
value: cdktf.stringToHclTerraform(this._instanceDisplayNamePrefix),
isBlock: false,
type: "simple",
storageClassType: "string",
},
is_shielded_instance_enabled: {
value: cdktf.booleanToHclTerraform(this._isShieldedInstanceEnabled),
isBlock: false,
type: "simple",
storageClassType: "boolean",
},
sddc_id: {
value: cdktf.stringToHclTerraform(this._sddcId),
isBlock: false,
type: "simple",
storageClassType: "string",
},
vmware_software_version: {
value: cdktf.stringToHclTerraform(this._vmwareSoftwareVersion),
isBlock: false,
type: "simple",
storageClassType: "string",
},
workload_network_cidr: {
value: cdktf.stringToHclTerraform(this._workloadNetworkCidr),
isBlock: false,
type: "simple",
storageClassType: "string",
},
datastores: {
value: cdktf.listMapperHcl(ocvpClusterDatastoresToHclTerraform, true)(this._datastores.internalValue),
isBlock: true,
type: "list",
storageClassType: "OcvpClusterDatastoresList",
},
network_configuration: {
value: ocvpClusterNetworkConfigurationToHclTerraform(this