@awlsring/cdktf-proxmox
Version:
A package that vends generated constructs from the Proxmox Terraform provider
1,026 lines • 153 kB
JavaScript
"use strict";
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x;
Object.defineProperty(exports, "__esModule", { value: true });
exports.DataProxmoxVirtualMachines = exports.DataProxmoxVirtualMachinesVirtualMachinesList = exports.DataProxmoxVirtualMachinesVirtualMachinesOutputReference = exports.dataProxmoxVirtualMachinesVirtualMachinesToTerraform = exports.DataProxmoxVirtualMachinesVirtualMachinesPciDevicesList = exports.DataProxmoxVirtualMachinesVirtualMachinesPciDevicesOutputReference = exports.dataProxmoxVirtualMachinesVirtualMachinesPciDevicesToTerraform = exports.DataProxmoxVirtualMachinesVirtualMachinesNetworkInterfacesList = exports.DataProxmoxVirtualMachinesVirtualMachinesNetworkInterfacesOutputReference = exports.dataProxmoxVirtualMachinesVirtualMachinesNetworkInterfacesToTerraform = exports.DataProxmoxVirtualMachinesVirtualMachinesMemoryOutputReference = exports.dataProxmoxVirtualMachinesVirtualMachinesMemoryToTerraform = exports.DataProxmoxVirtualMachinesVirtualMachinesDisksList = exports.DataProxmoxVirtualMachinesVirtualMachinesDisksOutputReference = exports.dataProxmoxVirtualMachinesVirtualMachinesDisksToTerraform = exports.DataProxmoxVirtualMachinesVirtualMachinesDisksSpeedLimitsOutputReference = exports.dataProxmoxVirtualMachinesVirtualMachinesDisksSpeedLimitsToTerraform = exports.DataProxmoxVirtualMachinesVirtualMachinesCpuOutputReference = exports.dataProxmoxVirtualMachinesVirtualMachinesCpuToTerraform = exports.DataProxmoxVirtualMachinesVirtualMachinesCloudInitOutputReference = exports.dataProxmoxVirtualMachinesVirtualMachinesCloudInitToTerraform = exports.DataProxmoxVirtualMachinesVirtualMachinesCloudInitUserOutputReference = exports.dataProxmoxVirtualMachinesVirtualMachinesCloudInitUserToTerraform = exports.DataProxmoxVirtualMachinesVirtualMachinesCloudInitIpList = exports.DataProxmoxVirtualMachinesVirtualMachinesCloudInitIpOutputReference = exports.dataProxmoxVirtualMachinesVirtualMachinesCloudInitIpToTerraform = exports.DataProxmoxVirtualMachinesVirtualMachinesCloudInitIpV6OutputReference = exports.dataProxmoxVirtualMachinesVirtualMachinesCloudInitIpV6ToTerraform = exports.DataProxmoxVirtualMachinesVirtualMachinesCloudInitIpV4OutputReference = exports.dataProxmoxVirtualMachinesVirtualMachinesCloudInitIpV4ToTerraform = exports.DataProxmoxVirtualMachinesVirtualMachinesCloudInitDnsOutputReference = exports.dataProxmoxVirtualMachinesVirtualMachinesCloudInitDnsToTerraform = exports.DataProxmoxVirtualMachinesVirtualMachinesAgentOutputReference = exports.dataProxmoxVirtualMachinesVirtualMachinesAgentToTerraform = exports.DataProxmoxVirtualMachinesFiltersList = exports.DataProxmoxVirtualMachinesFiltersOutputReference = exports.dataProxmoxVirtualMachinesFiltersToTerraform = void 0;
const JSII_RTTI_SYMBOL_1 = Symbol.for("jsii.rtti");
const cdktf = require("cdktf");
function dataProxmoxVirtualMachinesFiltersToTerraform(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),
values: cdktf.listMapper(cdktf.stringToTerraform, false)(struct.values),
};
}
exports.dataProxmoxVirtualMachinesFiltersToTerraform = dataProxmoxVirtualMachinesFiltersToTerraform;
class DataProxmoxVirtualMachinesFiltersOutputReference 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._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._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._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 values() {
return this.getListAttribute('values');
}
set values(value) {
this._values = value;
}
// Temporarily expose input value. Use with caution.
get valuesInput() {
return this._values;
}
}
exports.DataProxmoxVirtualMachinesFiltersOutputReference = DataProxmoxVirtualMachinesFiltersOutputReference;
_a = JSII_RTTI_SYMBOL_1;
DataProxmoxVirtualMachinesFiltersOutputReference[_a] = { fqn: "@awlsring/cdktf-proxmox.dataProxmoxVirtualMachines.DataProxmoxVirtualMachinesFiltersOutputReference", version: "0.0.318" };
class DataProxmoxVirtualMachinesFiltersList 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 DataProxmoxVirtualMachinesFiltersOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.DataProxmoxVirtualMachinesFiltersList = DataProxmoxVirtualMachinesFiltersList;
_b = JSII_RTTI_SYMBOL_1;
DataProxmoxVirtualMachinesFiltersList[_b] = { fqn: "@awlsring/cdktf-proxmox.dataProxmoxVirtualMachines.DataProxmoxVirtualMachinesFiltersList", version: "0.0.318" };
function dataProxmoxVirtualMachinesVirtualMachinesAgentToTerraform(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.dataProxmoxVirtualMachinesVirtualMachinesAgentToTerraform = dataProxmoxVirtualMachinesVirtualMachinesAgentToTerraform;
class DataProxmoxVirtualMachinesVirtualMachinesAgentOutputReference 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() {
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;
}
}
// enabled - computed: true, optional: false, required: false
get enabled() {
return this.getBooleanAttribute('enabled');
}
// type - computed: true, optional: false, required: false
get type() {
return this.getStringAttribute('type');
}
// use_fstrim - computed: true, optional: false, required: false
get useFstrim() {
return this.getBooleanAttribute('use_fstrim');
}
}
exports.DataProxmoxVirtualMachinesVirtualMachinesAgentOutputReference = DataProxmoxVirtualMachinesVirtualMachinesAgentOutputReference;
_c = JSII_RTTI_SYMBOL_1;
DataProxmoxVirtualMachinesVirtualMachinesAgentOutputReference[_c] = { fqn: "@awlsring/cdktf-proxmox.dataProxmoxVirtualMachines.DataProxmoxVirtualMachinesVirtualMachinesAgentOutputReference", version: "0.0.318" };
function dataProxmoxVirtualMachinesVirtualMachinesCloudInitDnsToTerraform(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.dataProxmoxVirtualMachinesVirtualMachinesCloudInitDnsToTerraform = dataProxmoxVirtualMachinesVirtualMachinesCloudInitDnsToTerraform;
class DataProxmoxVirtualMachinesVirtualMachinesCloudInitDnsOutputReference 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() {
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;
}
}
// domain - computed: true, optional: false, required: false
get domain() {
return this.getStringAttribute('domain');
}
// nameserver - computed: true, optional: false, required: false
get nameserver() {
return this.getStringAttribute('nameserver');
}
}
exports.DataProxmoxVirtualMachinesVirtualMachinesCloudInitDnsOutputReference = DataProxmoxVirtualMachinesVirtualMachinesCloudInitDnsOutputReference;
_d = JSII_RTTI_SYMBOL_1;
DataProxmoxVirtualMachinesVirtualMachinesCloudInitDnsOutputReference[_d] = { fqn: "@awlsring/cdktf-proxmox.dataProxmoxVirtualMachines.DataProxmoxVirtualMachinesVirtualMachinesCloudInitDnsOutputReference", version: "0.0.318" };
function dataProxmoxVirtualMachinesVirtualMachinesCloudInitIpV4ToTerraform(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.dataProxmoxVirtualMachinesVirtualMachinesCloudInitIpV4ToTerraform = dataProxmoxVirtualMachinesVirtualMachinesCloudInitIpV4ToTerraform;
class DataProxmoxVirtualMachinesVirtualMachinesCloudInitIpV4OutputReference 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() {
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;
}
}
// address - computed: true, optional: false, required: false
get address() {
return this.getStringAttribute('address');
}
// dhcp - computed: true, optional: false, required: false
get dhcp() {
return this.getBooleanAttribute('dhcp');
}
// gateway - computed: true, optional: false, required: false
get gateway() {
return this.getStringAttribute('gateway');
}
// netmask - computed: true, optional: false, required: false
get netmask() {
return this.getStringAttribute('netmask');
}
}
exports.DataProxmoxVirtualMachinesVirtualMachinesCloudInitIpV4OutputReference = DataProxmoxVirtualMachinesVirtualMachinesCloudInitIpV4OutputReference;
_e = JSII_RTTI_SYMBOL_1;
DataProxmoxVirtualMachinesVirtualMachinesCloudInitIpV4OutputReference[_e] = { fqn: "@awlsring/cdktf-proxmox.dataProxmoxVirtualMachines.DataProxmoxVirtualMachinesVirtualMachinesCloudInitIpV4OutputReference", version: "0.0.318" };
function dataProxmoxVirtualMachinesVirtualMachinesCloudInitIpV6ToTerraform(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.dataProxmoxVirtualMachinesVirtualMachinesCloudInitIpV6ToTerraform = dataProxmoxVirtualMachinesVirtualMachinesCloudInitIpV6ToTerraform;
class DataProxmoxVirtualMachinesVirtualMachinesCloudInitIpV6OutputReference 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() {
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;
}
}
// address - computed: true, optional: false, required: false
get address() {
return this.getStringAttribute('address');
}
// dhcp - computed: true, optional: false, required: false
get dhcp() {
return this.getBooleanAttribute('dhcp');
}
// gateway - computed: true, optional: false, required: false
get gateway() {
return this.getStringAttribute('gateway');
}
// netmask - computed: true, optional: false, required: false
get netmask() {
return this.getStringAttribute('netmask');
}
}
exports.DataProxmoxVirtualMachinesVirtualMachinesCloudInitIpV6OutputReference = DataProxmoxVirtualMachinesVirtualMachinesCloudInitIpV6OutputReference;
_f = JSII_RTTI_SYMBOL_1;
DataProxmoxVirtualMachinesVirtualMachinesCloudInitIpV6OutputReference[_f] = { fqn: "@awlsring/cdktf-proxmox.dataProxmoxVirtualMachines.DataProxmoxVirtualMachinesVirtualMachinesCloudInitIpV6OutputReference", version: "0.0.318" };
function dataProxmoxVirtualMachinesVirtualMachinesCloudInitIpToTerraform(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.dataProxmoxVirtualMachinesVirtualMachinesCloudInitIpToTerraform = dataProxmoxVirtualMachinesVirtualMachinesCloudInitIpToTerraform;
class DataProxmoxVirtualMachinesVirtualMachinesCloudInitIpOutputReference 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;
// v4 - computed: true, optional: false, required: false
this._v4 = new DataProxmoxVirtualMachinesVirtualMachinesCloudInitIpV4OutputReference(this, "v4");
// v6 - computed: true, optional: false, required: false
this._v6 = new DataProxmoxVirtualMachinesVirtualMachinesCloudInitIpV6OutputReference(this, "v6");
}
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;
}
}
// position - computed: true, optional: false, required: false
get position() {
return this.getNumberAttribute('position');
}
get v4() {
return this._v4;
}
get v6() {
return this._v6;
}
}
exports.DataProxmoxVirtualMachinesVirtualMachinesCloudInitIpOutputReference = DataProxmoxVirtualMachinesVirtualMachinesCloudInitIpOutputReference;
_g = JSII_RTTI_SYMBOL_1;
DataProxmoxVirtualMachinesVirtualMachinesCloudInitIpOutputReference[_g] = { fqn: "@awlsring/cdktf-proxmox.dataProxmoxVirtualMachines.DataProxmoxVirtualMachinesVirtualMachinesCloudInitIpOutputReference", version: "0.0.318" };
class DataProxmoxVirtualMachinesVirtualMachinesCloudInitIpList 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 DataProxmoxVirtualMachinesVirtualMachinesCloudInitIpOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.DataProxmoxVirtualMachinesVirtualMachinesCloudInitIpList = DataProxmoxVirtualMachinesVirtualMachinesCloudInitIpList;
_h = JSII_RTTI_SYMBOL_1;
DataProxmoxVirtualMachinesVirtualMachinesCloudInitIpList[_h] = { fqn: "@awlsring/cdktf-proxmox.dataProxmoxVirtualMachines.DataProxmoxVirtualMachinesVirtualMachinesCloudInitIpList", version: "0.0.318" };
function dataProxmoxVirtualMachinesVirtualMachinesCloudInitUserToTerraform(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.dataProxmoxVirtualMachinesVirtualMachinesCloudInitUserToTerraform = dataProxmoxVirtualMachinesVirtualMachinesCloudInitUserToTerraform;
class DataProxmoxVirtualMachinesVirtualMachinesCloudInitUserOutputReference 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() {
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;
}
}
// name - computed: true, optional: false, required: false
get name() {
return this.getStringAttribute('name');
}
// password - computed: true, optional: false, required: false
get password() {
return this.getStringAttribute('password');
}
// public_keys - computed: true, optional: false, required: false
get publicKeys() {
return cdktf.Fn.tolist(this.getListAttribute('public_keys'));
}
}
exports.DataProxmoxVirtualMachinesVirtualMachinesCloudInitUserOutputReference = DataProxmoxVirtualMachinesVirtualMachinesCloudInitUserOutputReference;
_j = JSII_RTTI_SYMBOL_1;
DataProxmoxVirtualMachinesVirtualMachinesCloudInitUserOutputReference[_j] = { fqn: "@awlsring/cdktf-proxmox.dataProxmoxVirtualMachines.DataProxmoxVirtualMachinesVirtualMachinesCloudInitUserOutputReference", version: "0.0.318" };
function dataProxmoxVirtualMachinesVirtualMachinesCloudInitToTerraform(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.dataProxmoxVirtualMachinesVirtualMachinesCloudInitToTerraform = dataProxmoxVirtualMachinesVirtualMachinesCloudInitToTerraform;
class DataProxmoxVirtualMachinesVirtualMachinesCloudInitOutputReference 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;
// dns - computed: true, optional: false, required: false
this._dns = new DataProxmoxVirtualMachinesVirtualMachinesCloudInitDnsOutputReference(this, "dns");
// ip - computed: true, optional: false, required: false
this._ip = new DataProxmoxVirtualMachinesVirtualMachinesCloudInitIpList(this, "ip", true);
// user - computed: true, optional: false, required: false
this._user = new DataProxmoxVirtualMachinesVirtualMachinesCloudInitUserOutputReference(this, "user");
}
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 dns() {
return this._dns;
}
get ip() {
return this._ip;
}
get user() {
return this._user;
}
}
exports.DataProxmoxVirtualMachinesVirtualMachinesCloudInitOutputReference = DataProxmoxVirtualMachinesVirtualMachinesCloudInitOutputReference;
_k = JSII_RTTI_SYMBOL_1;
DataProxmoxVirtualMachinesVirtualMachinesCloudInitOutputReference[_k] = { fqn: "@awlsring/cdktf-proxmox.dataProxmoxVirtualMachines.DataProxmoxVirtualMachinesVirtualMachinesCloudInitOutputReference", version: "0.0.318" };
function dataProxmoxVirtualMachinesVirtualMachinesCpuToTerraform(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.dataProxmoxVirtualMachinesVirtualMachinesCpuToTerraform = dataProxmoxVirtualMachinesVirtualMachinesCpuToTerraform;
class DataProxmoxVirtualMachinesVirtualMachinesCpuOutputReference 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() {
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;
}
}
// architecture - computed: true, optional: false, required: false
get architecture() {
return this.getStringAttribute('architecture');
}
// cores - computed: true, optional: false, required: false
get cores() {
return this.getNumberAttribute('cores');
}
// cpu_units - computed: true, optional: false, required: false
get cpuUnits() {
return this.getNumberAttribute('cpu_units');
}
// emulated_type - computed: true, optional: false, required: false
get emulatedType() {
return this.getStringAttribute('emulated_type');
}
// sockets - computed: true, optional: false, required: false
get sockets() {
return this.getNumberAttribute('sockets');
}
}
exports.DataProxmoxVirtualMachinesVirtualMachinesCpuOutputReference = DataProxmoxVirtualMachinesVirtualMachinesCpuOutputReference;
_l = JSII_RTTI_SYMBOL_1;
DataProxmoxVirtualMachinesVirtualMachinesCpuOutputReference[_l] = { fqn: "@awlsring/cdktf-proxmox.dataProxmoxVirtualMachines.DataProxmoxVirtualMachinesVirtualMachinesCpuOutputReference", version: "0.0.318" };
function dataProxmoxVirtualMachinesVirtualMachinesDisksSpeedLimitsToTerraform(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.dataProxmoxVirtualMachinesVirtualMachinesDisksSpeedLimitsToTerraform = dataProxmoxVirtualMachinesVirtualMachinesDisksSpeedLimitsToTerraform;
class DataProxmoxVirtualMachinesVirtualMachinesDisksSpeedLimitsOutputReference 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() {
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;
}
}
// read - computed: true, optional: false, required: false
get read() {
return this.getNumberAttribute('read');
}
// read_burstable - computed: true, optional: false, required: false
get readBurstable() {
return this.getNumberAttribute('read_burstable');
}
// write - computed: true, optional: false, required: false
get write() {
return this.getNumberAttribute('write');
}
// write_burstable - computed: true, optional: false, required: false
get writeBurstable() {
return this.getNumberAttribute('write_burstable');
}
}
exports.DataProxmoxVirtualMachinesVirtualMachinesDisksSpeedLimitsOutputReference = DataProxmoxVirtualMachinesVirtualMachinesDisksSpeedLimitsOutputReference;
_m = JSII_RTTI_SYMBOL_1;
DataProxmoxVirtualMachinesVirtualMachinesDisksSpeedLimitsOutputReference[_m] = { fqn: "@awlsring/cdktf-proxmox.dataProxmoxVirtualMachines.DataProxmoxVirtualMachinesVirtualMachinesDisksSpeedLimitsOutputReference", version: "0.0.318" };
function dataProxmoxVirtualMachinesVirtualMachinesDisksToTerraform(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.dataProxmoxVirtualMachinesVirtualMachinesDisksToTerraform = dataProxmoxVirtualMachinesVirtualMachinesDisksToTerraform;
class DataProxmoxVirtualMachinesVirtualMachinesDisksOutputReference 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;
// speed_limits - computed: true, optional: false, required: false
this._speedLimits = new DataProxmoxVirtualMachinesVirtualMachinesDisksSpeedLimitsOutputReference(this, "speed_limits");
}
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;
}
}
// discard - computed: true, optional: false, required: false
get discard() {
return this.getBooleanAttribute('discard');
}
// file_format - computed: true, optional: false, required: false
get fileFormat() {
return this.getStringAttribute('file_format');
}
// interface_type - computed: true, optional: false, required: false
get interfaceType() {
return this.getStringAttribute('interface_type');
}
// name - computed: true, optional: false, required: false
get name() {
return this.getStringAttribute('name');
}
// position - computed: true, optional: false, required: false
get position() {
return this.getNumberAttribute('position');
}
// size - computed: true, optional: false, required: false
get size() {
return this.getNumberAttribute('size');
}
get speedLimits() {
return this._speedLimits;
}
// ssd_emulation - computed: true, optional: false, required: false
get ssdEmulation() {
return this.getBooleanAttribute('ssd_emulation');
}
// storage - computed: true, optional: false, required: false
get storage() {
return this.getStringAttribute('storage');
}
// use_iothread - computed: true, optional: false, required: false
get useIothread() {
return this.getBooleanAttribute('use_iothread');
}
}
exports.DataProxmoxVirtualMachinesVirtualMachinesDisksOutputReference = DataProxmoxVirtualMachinesVirtualMachinesDisksOutputReference;
_o = JSII_RTTI_SYMBOL_1;
DataProxmoxVirtualMachinesVirtualMachinesDisksOutputReference[_o] = { fqn: "@awlsring/cdktf-proxmox.dataProxmoxVirtualMachines.DataProxmoxVirtualMachinesVirtualMachinesDisksOutputReference", version: "0.0.318" };
class DataProxmoxVirtualMachinesVirtualMachinesDisksList 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 DataProxmoxVirtualMachinesVirtualMachinesDisksOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.DataProxmoxVirtualMachinesVirtualMachinesDisksList = DataProxmoxVirtualMachinesVirtualMachinesDisksList;
_p = JSII_RTTI_SYMBOL_1;
DataProxmoxVirtualMachinesVirtualMachinesDisksList[_p] = { fqn: "@awlsring/cdktf-proxmox.dataProxmoxVirtualMachines.DataProxmoxVirtualMachinesVirtualMachinesDisksList", version: "0.0.318" };
function dataProxmoxVirtualMachinesVirtualMachinesMemoryToTerraform(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.dataProxmoxVirtualMachinesVirtualMachinesMemoryToTerraform = dataProxmoxVirtualMachinesVirtualMachinesMemoryToTerraform;
class DataProxmoxVirtualMachinesVirtualMachinesMemoryOutputReference 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() {
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 - computed: true, optional: false, required: false
get dedicated() {
return this.getNumberAttribute('dedicated');
}
// floating - computed: true, optional: false, required: false
get floating() {
return this.getNumberAttribute('floating');
}
// shared - computed: true, optional: false, required: false
get shared() {
return this.getNumberAttribute('shared');
}
}
exports.DataProxmoxVirtualMachinesVirtualMachinesMemoryOutputReference = DataProxmoxVirtualMachinesVirtualMachinesMemoryOutputReference;
_q = JSII_RTTI_SYMBOL_1;
DataProxmoxVirtualMachinesVirtualMachinesMemoryOutputReference[_q] = { fqn: "@awlsring/cdktf-proxmox.dataProxmoxVirtualMachines.DataProxmoxVirtualMachinesVirtualMachinesMemoryOutputReference", version: "0.0.318" };
function dataProxmoxVirtualMachinesVirtualMachinesNetworkInterfacesToTerraform(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.dataProxmoxVirtualMachinesVirtualMachinesNetworkInterfacesToTerraform = dataProxmoxVirtualMachinesVirtualMachinesNetworkInterfacesToTerraform;
class DataProxmoxVirtualMachinesVirtualMachinesNetworkInterfacesOutputReference 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;
}
}
// bridge - computed: true, optional: false, required: false
get bridge() {
return this.getStringAttribute('bridge');
}
// enabled - computed: true, optional: false, required: false
get enabled() {
return this.getBooleanAttribute('enabled');
}
// mac_address - computed: true, optional: false, required: false
get macAddress() {
return this.getStringAttribute('mac_address');
}
// model - computed: true, optional: false, required: false
get model() {
return this.getStringAttribute('model');
}
// mtu - computed: true, optional: false, required: false
get mtu() {
return this.getNumberAttribute('mtu');
}
// position - computed: true, optional: false, required: false
get position() {
return this.getNumberAttribute('position');
}
// rate_limit - computed: true, optional: false, required: false
get rateLimit() {
return this.getNumberAttribute('rate_limit');
}
// use_firewall - computed: true, optional: false, required: false
get useFirewall() {
return this.getBooleanAttribute('use_firewall');
}
// vlan - computed: true, optional: false, required: false
get vlan() {
return this.getNumberAttribute('vlan');
}
}
exports.DataProxmoxVirtualMachinesVirtualMachinesNetworkInterfacesOutputReference = DataProxmoxVirtualMachinesVirtualMachinesNetworkInterfacesOutputReference;
_r = JSII_RTTI_SYMBOL_1;
DataProxmoxVirtualMachinesVirtualMachinesNetworkInterfacesOutputReference[_r] = { fqn: "@awlsring/cdktf-proxmox.dataProxmoxVirtualMachines.DataProxmoxVirtualMachinesVirtualMachinesNetworkInterfacesOutputReference", version: "0.0.318" };
class DataProxmoxVirtualMachinesVirtualMachinesNetworkInterfacesList 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 DataProxmoxVirtualMachinesVirtualMachinesNetworkInterfacesOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.DataProxmoxVirtualMachinesVirtualMachinesNetworkInterfacesList = DataProxmoxVirtualMachinesVirtualMachinesNetworkInterfacesList;
_s = JSII_RTTI_SYMBOL_1;
DataProxmoxVirtualMachinesVirtualMachinesNetworkInterfacesList[_s] = { fqn: "@awlsring/cdktf-proxmox.dataProxmoxVirtualMachines.DataProxmoxVirtualMachinesVirtualMachinesNetworkInterfacesList", version: "0.0.318" };
function dataProxmoxVirtualMachinesVirtualMachinesPciDevicesToTerraform(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.dataProxmoxVirtualMachinesVirtualMachinesPciDevicesToTerraform = dataProxmoxVirtualMachinesVirtualMachinesPciDevicesToTerraform;
class DataProxmoxVirtualMachinesVirtualMachinesPciDevicesOutputReference 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;
}
}
// id - computed: true, optional: false, required: false
get id() {
return this.getStringAttribute('id');
}
// mdev - computed: true, optional: false, required: false
get mdev() {
return this.getStringAttribute('mdev');
}
// name - computed: true, optional: false, required: false
get name() {
return this.getStringAttribute('name');
}
// pcie - computed: true, optional: false, required: false
get pcie() {
return this.getBooleanAttribute('pcie');
}
// primary_gpu - computed: true, optional: false, required: false
get primaryGpu() {
return this.getBooleanAttribute('primary_gpu');
}
// rom_file - computed: true, optional: false, required: false
get romFile() {
return this.getStringAttribute('rom_file');
}
// rombar - computed: true, optional: false, required: false
get rombar() {
return this.getBooleanAttribute('rombar');
}
}
exports.DataProxmoxVirtualMachinesVirtualMachinesPciDevicesOutputReference = DataProxmoxVirtualMachinesVirtualMachinesPciDevicesOutputReference;
_t = JSII_RTTI_SYMBOL_1;
DataProxmoxVirtualMachinesVirtualMachinesPciDevicesOutputReference[_t] = { fqn: "@awlsring/cdktf-proxmox.dataProxmoxVirtualMachines.DataProxmoxVirtualMachinesVirtualMachinesPciDevicesOutputReference", version: "0.0.318" };
class DataProxmoxVirtualMachinesVirtualMachinesPciDevicesList 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 DataProxmoxVirtualMachinesVirtualMachinesPciDevicesOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.DataProxmoxVirtualMachinesVirtualMachinesPciDevicesList = DataProxmoxVirtualMachinesVirtualMachinesPciDevicesList;
_u = JSII_RTTI_SYMBOL_1;
DataProxmoxVirtualMachinesVirtualMachinesPciDevicesList[_u] = { fqn: "@awlsring/cdktf-proxmox.dataProxmoxVirtualMachines.DataProxmoxVirtualMachinesVirtualMachinesPciDevicesList", version: "0.0.318" };
function dataProxmoxVirtualMachinesVirtualMachinesToTerraform(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.dataProxmoxVirtualMachinesVirtualMachinesToTerraform = dataProxmoxVirtualMachinesVirtualMachinesToTerraform;
class DataProxmoxVirtualMachinesVirtualMachinesOutputReference 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;
// agent - computed: true, optional: false, required: false
this._agent = new DataProxmoxVirtualMachinesVirtualMachinesAgentOutputReference(this, "agent");
// cloud_init - computed: true, optional: false, required: false
this._cloudInit = new DataProxmoxVirtualMachinesVirtualMachinesCloudInitOutputReference(this, "cloud_init");
// cpu - computed: true, optional: false, required: false
this._cpu = new DataProxmoxVirtualMachinesVirtualMachinesCpuOutputReference(this, "cpu");
// disks - computed: true, optional: false, required: false
this._disks = new DataProxmoxVirtualMachinesVirtualMachinesDisksList(this, "disks", true);
// memory - computed: true, optional: false, required: false
this._memory = new DataProxmoxVirtualMachinesVirtualMachinesMemoryOutputReference(this, "memory");
// network_interfaces - computed: true, optional: false, required: false
this._networkInterfaces = new DataProxmoxVirtualMachinesVirtualMachinesNetworkInterfacesList(this, "network_interfaces", true);
// pci_devices - computed: true, optional: false, required: false
this._pciDevices = new DataProxmoxVirtualMachinesVirtualMachinesPciDevicesList(this, "pci_devices", true);
}
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 agent() {
return this._agent;
}
// bios - computed: true, optional: false, required: false
get bios() {
return this.getStringAttribute('bios');
}
get cloudInit() {
return this._cloudInit;
}
get cpu() {
return this._cpu;
}
// description - computed: true, optional: false, required: false
get description() {
return this.getStringAttribute('description');
}
get disks() {
return this._disks;
}
// id - computed: true, optional: false, required: false
get id() {
return this.getNumberAttribute('id');
}
// keyboard_layout - computed: true, optional: false, required: false
get keyboardLayout() {
return this.getStringAttribute('keyboard_layout');
}
// kvm_arguments - computed: true, optional: false, required: false
get kvmArguments() {
return this.getStringAttribute('kvm_arguments');
}
// machine_type - computed: true, optional: false, required: false
get machineType() {
return this.getStringAttribute('machine_type');
}
get memory() {
return this._memory;
}
// name - computed: true, optional: false, required: false
get name() {
return this.getStringAttribute('name');
}
get networkInterfaces() {
return this._networkInterfaces;
}
// node - computed: true, optional: false, required: false
get nodeAttribute() {
return this.getStringAttribute('node');
}
get pciDevices() {
return this._pciDevices;
}
// resource_pool - computed: true, optional: false, required: false
get resourcePool() {
return this.getStringAttribute('resource_pool');
}
// start_on_node_boot -