@awlsring/cdktf-proxmox
Version:
A package that vends generated constructs from the Proxmox Terraform provider
1,076 lines • 148 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.DataProxmoxTemplates = exports.DataProxmoxTemplatesTemplatesList = exports.DataProxmoxTemplatesTemplatesOutputReference = exports.dataProxmoxTemplatesTemplatesToTerraform = exports.DataProxmoxTemplatesTemplatesPciDevicesList = exports.DataProxmoxTemplatesTemplatesPciDevicesOutputReference = exports.dataProxmoxTemplatesTemplatesPciDevicesToTerraform = exports.DataProxmoxTemplatesTemplatesNetworkInterfacesList = exports.DataProxmoxTemplatesTemplatesNetworkInterfacesOutputReference = exports.dataProxmoxTemplatesTemplatesNetworkInterfacesToTerraform = exports.DataProxmoxTemplatesTemplatesMemoryOutputReference = exports.dataProxmoxTemplatesTemplatesMemoryToTerraform = exports.DataProxmoxTemplatesTemplatesDisksList = exports.DataProxmoxTemplatesTemplatesDisksOutputReference = exports.dataProxmoxTemplatesTemplatesDisksToTerraform = exports.DataProxmoxTemplatesTemplatesDisksSpeedLimitsOutputReference = exports.dataProxmoxTemplatesTemplatesDisksSpeedLimitsToTerraform = exports.DataProxmoxTemplatesTemplatesCpuOutputReference = exports.dataProxmoxTemplatesTemplatesCpuToTerraform = exports.DataProxmoxTemplatesTemplatesCloudInitOutputReference = exports.dataProxmoxTemplatesTemplatesCloudInitToTerraform = exports.DataProxmoxTemplatesTemplatesCloudInitUserOutputReference = exports.dataProxmoxTemplatesTemplatesCloudInitUserToTerraform = exports.DataProxmoxTemplatesTemplatesCloudInitIpList = exports.DataProxmoxTemplatesTemplatesCloudInitIpOutputReference = exports.dataProxmoxTemplatesTemplatesCloudInitIpToTerraform = exports.DataProxmoxTemplatesTemplatesCloudInitIpV6OutputReference = exports.dataProxmoxTemplatesTemplatesCloudInitIpV6ToTerraform = exports.DataProxmoxTemplatesTemplatesCloudInitIpV4OutputReference = exports.dataProxmoxTemplatesTemplatesCloudInitIpV4ToTerraform = exports.DataProxmoxTemplatesTemplatesCloudInitDnsOutputReference = exports.dataProxmoxTemplatesTemplatesCloudInitDnsToTerraform = exports.DataProxmoxTemplatesTemplatesAgentOutputReference = exports.dataProxmoxTemplatesTemplatesAgentToTerraform = exports.DataProxmoxTemplatesFiltersList = exports.DataProxmoxTemplatesFiltersOutputReference = exports.dataProxmoxTemplatesFiltersToTerraform = void 0;
const JSII_RTTI_SYMBOL_1 = Symbol.for("jsii.rtti");
const cdktf = require("cdktf");
function dataProxmoxTemplatesFiltersToTerraform(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.dataProxmoxTemplatesFiltersToTerraform = dataProxmoxTemplatesFiltersToTerraform;
class DataProxmoxTemplatesFiltersOutputReference 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.DataProxmoxTemplatesFiltersOutputReference = DataProxmoxTemplatesFiltersOutputReference;
_a = JSII_RTTI_SYMBOL_1;
DataProxmoxTemplatesFiltersOutputReference[_a] = { fqn: "@awlsring/cdktf-proxmox.dataProxmoxTemplates.DataProxmoxTemplatesFiltersOutputReference", version: "0.0.318" };
class DataProxmoxTemplatesFiltersList 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 DataProxmoxTemplatesFiltersOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.DataProxmoxTemplatesFiltersList = DataProxmoxTemplatesFiltersList;
_b = JSII_RTTI_SYMBOL_1;
DataProxmoxTemplatesFiltersList[_b] = { fqn: "@awlsring/cdktf-proxmox.dataProxmoxTemplates.DataProxmoxTemplatesFiltersList", version: "0.0.318" };
function dataProxmoxTemplatesTemplatesAgentToTerraform(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.dataProxmoxTemplatesTemplatesAgentToTerraform = dataProxmoxTemplatesTemplatesAgentToTerraform;
class DataProxmoxTemplatesTemplatesAgentOutputReference 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.DataProxmoxTemplatesTemplatesAgentOutputReference = DataProxmoxTemplatesTemplatesAgentOutputReference;
_c = JSII_RTTI_SYMBOL_1;
DataProxmoxTemplatesTemplatesAgentOutputReference[_c] = { fqn: "@awlsring/cdktf-proxmox.dataProxmoxTemplates.DataProxmoxTemplatesTemplatesAgentOutputReference", version: "0.0.318" };
function dataProxmoxTemplatesTemplatesCloudInitDnsToTerraform(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.dataProxmoxTemplatesTemplatesCloudInitDnsToTerraform = dataProxmoxTemplatesTemplatesCloudInitDnsToTerraform;
class DataProxmoxTemplatesTemplatesCloudInitDnsOutputReference 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.DataProxmoxTemplatesTemplatesCloudInitDnsOutputReference = DataProxmoxTemplatesTemplatesCloudInitDnsOutputReference;
_d = JSII_RTTI_SYMBOL_1;
DataProxmoxTemplatesTemplatesCloudInitDnsOutputReference[_d] = { fqn: "@awlsring/cdktf-proxmox.dataProxmoxTemplates.DataProxmoxTemplatesTemplatesCloudInitDnsOutputReference", version: "0.0.318" };
function dataProxmoxTemplatesTemplatesCloudInitIpV4ToTerraform(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.dataProxmoxTemplatesTemplatesCloudInitIpV4ToTerraform = dataProxmoxTemplatesTemplatesCloudInitIpV4ToTerraform;
class DataProxmoxTemplatesTemplatesCloudInitIpV4OutputReference 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.DataProxmoxTemplatesTemplatesCloudInitIpV4OutputReference = DataProxmoxTemplatesTemplatesCloudInitIpV4OutputReference;
_e = JSII_RTTI_SYMBOL_1;
DataProxmoxTemplatesTemplatesCloudInitIpV4OutputReference[_e] = { fqn: "@awlsring/cdktf-proxmox.dataProxmoxTemplates.DataProxmoxTemplatesTemplatesCloudInitIpV4OutputReference", version: "0.0.318" };
function dataProxmoxTemplatesTemplatesCloudInitIpV6ToTerraform(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.dataProxmoxTemplatesTemplatesCloudInitIpV6ToTerraform = dataProxmoxTemplatesTemplatesCloudInitIpV6ToTerraform;
class DataProxmoxTemplatesTemplatesCloudInitIpV6OutputReference 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.DataProxmoxTemplatesTemplatesCloudInitIpV6OutputReference = DataProxmoxTemplatesTemplatesCloudInitIpV6OutputReference;
_f = JSII_RTTI_SYMBOL_1;
DataProxmoxTemplatesTemplatesCloudInitIpV6OutputReference[_f] = { fqn: "@awlsring/cdktf-proxmox.dataProxmoxTemplates.DataProxmoxTemplatesTemplatesCloudInitIpV6OutputReference", version: "0.0.318" };
function dataProxmoxTemplatesTemplatesCloudInitIpToTerraform(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.dataProxmoxTemplatesTemplatesCloudInitIpToTerraform = dataProxmoxTemplatesTemplatesCloudInitIpToTerraform;
class DataProxmoxTemplatesTemplatesCloudInitIpOutputReference 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 DataProxmoxTemplatesTemplatesCloudInitIpV4OutputReference(this, "v4");
// v6 - computed: true, optional: false, required: false
this._v6 = new DataProxmoxTemplatesTemplatesCloudInitIpV6OutputReference(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.DataProxmoxTemplatesTemplatesCloudInitIpOutputReference = DataProxmoxTemplatesTemplatesCloudInitIpOutputReference;
_g = JSII_RTTI_SYMBOL_1;
DataProxmoxTemplatesTemplatesCloudInitIpOutputReference[_g] = { fqn: "@awlsring/cdktf-proxmox.dataProxmoxTemplates.DataProxmoxTemplatesTemplatesCloudInitIpOutputReference", version: "0.0.318" };
class DataProxmoxTemplatesTemplatesCloudInitIpList 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 DataProxmoxTemplatesTemplatesCloudInitIpOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.DataProxmoxTemplatesTemplatesCloudInitIpList = DataProxmoxTemplatesTemplatesCloudInitIpList;
_h = JSII_RTTI_SYMBOL_1;
DataProxmoxTemplatesTemplatesCloudInitIpList[_h] = { fqn: "@awlsring/cdktf-proxmox.dataProxmoxTemplates.DataProxmoxTemplatesTemplatesCloudInitIpList", version: "0.0.318" };
function dataProxmoxTemplatesTemplatesCloudInitUserToTerraform(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.dataProxmoxTemplatesTemplatesCloudInitUserToTerraform = dataProxmoxTemplatesTemplatesCloudInitUserToTerraform;
class DataProxmoxTemplatesTemplatesCloudInitUserOutputReference 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.DataProxmoxTemplatesTemplatesCloudInitUserOutputReference = DataProxmoxTemplatesTemplatesCloudInitUserOutputReference;
_j = JSII_RTTI_SYMBOL_1;
DataProxmoxTemplatesTemplatesCloudInitUserOutputReference[_j] = { fqn: "@awlsring/cdktf-proxmox.dataProxmoxTemplates.DataProxmoxTemplatesTemplatesCloudInitUserOutputReference", version: "0.0.318" };
function dataProxmoxTemplatesTemplatesCloudInitToTerraform(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.dataProxmoxTemplatesTemplatesCloudInitToTerraform = dataProxmoxTemplatesTemplatesCloudInitToTerraform;
class DataProxmoxTemplatesTemplatesCloudInitOutputReference 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 DataProxmoxTemplatesTemplatesCloudInitDnsOutputReference(this, "dns");
// ip - computed: true, optional: false, required: false
this._ip = new DataProxmoxTemplatesTemplatesCloudInitIpList(this, "ip", true);
// user - computed: true, optional: false, required: false
this._user = new DataProxmoxTemplatesTemplatesCloudInitUserOutputReference(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.DataProxmoxTemplatesTemplatesCloudInitOutputReference = DataProxmoxTemplatesTemplatesCloudInitOutputReference;
_k = JSII_RTTI_SYMBOL_1;
DataProxmoxTemplatesTemplatesCloudInitOutputReference[_k] = { fqn: "@awlsring/cdktf-proxmox.dataProxmoxTemplates.DataProxmoxTemplatesTemplatesCloudInitOutputReference", version: "0.0.318" };
function dataProxmoxTemplatesTemplatesCpuToTerraform(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.dataProxmoxTemplatesTemplatesCpuToTerraform = dataProxmoxTemplatesTemplatesCpuToTerraform;
class DataProxmoxTemplatesTemplatesCpuOutputReference 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.DataProxmoxTemplatesTemplatesCpuOutputReference = DataProxmoxTemplatesTemplatesCpuOutputReference;
_l = JSII_RTTI_SYMBOL_1;
DataProxmoxTemplatesTemplatesCpuOutputReference[_l] = { fqn: "@awlsring/cdktf-proxmox.dataProxmoxTemplates.DataProxmoxTemplatesTemplatesCpuOutputReference", version: "0.0.318" };
function dataProxmoxTemplatesTemplatesDisksSpeedLimitsToTerraform(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.dataProxmoxTemplatesTemplatesDisksSpeedLimitsToTerraform = dataProxmoxTemplatesTemplatesDisksSpeedLimitsToTerraform;
class DataProxmoxTemplatesTemplatesDisksSpeedLimitsOutputReference 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.DataProxmoxTemplatesTemplatesDisksSpeedLimitsOutputReference = DataProxmoxTemplatesTemplatesDisksSpeedLimitsOutputReference;
_m = JSII_RTTI_SYMBOL_1;
DataProxmoxTemplatesTemplatesDisksSpeedLimitsOutputReference[_m] = { fqn: "@awlsring/cdktf-proxmox.dataProxmoxTemplates.DataProxmoxTemplatesTemplatesDisksSpeedLimitsOutputReference", version: "0.0.318" };
function dataProxmoxTemplatesTemplatesDisksToTerraform(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.dataProxmoxTemplatesTemplatesDisksToTerraform = dataProxmoxTemplatesTemplatesDisksToTerraform;
class DataProxmoxTemplatesTemplatesDisksOutputReference 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 DataProxmoxTemplatesTemplatesDisksSpeedLimitsOutputReference(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.DataProxmoxTemplatesTemplatesDisksOutputReference = DataProxmoxTemplatesTemplatesDisksOutputReference;
_o = JSII_RTTI_SYMBOL_1;
DataProxmoxTemplatesTemplatesDisksOutputReference[_o] = { fqn: "@awlsring/cdktf-proxmox.dataProxmoxTemplates.DataProxmoxTemplatesTemplatesDisksOutputReference", version: "0.0.318" };
class DataProxmoxTemplatesTemplatesDisksList 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 DataProxmoxTemplatesTemplatesDisksOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.DataProxmoxTemplatesTemplatesDisksList = DataProxmoxTemplatesTemplatesDisksList;
_p = JSII_RTTI_SYMBOL_1;
DataProxmoxTemplatesTemplatesDisksList[_p] = { fqn: "@awlsring/cdktf-proxmox.dataProxmoxTemplates.DataProxmoxTemplatesTemplatesDisksList", version: "0.0.318" };
function dataProxmoxTemplatesTemplatesMemoryToTerraform(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.dataProxmoxTemplatesTemplatesMemoryToTerraform = dataProxmoxTemplatesTemplatesMemoryToTerraform;
class DataProxmoxTemplatesTemplatesMemoryOutputReference 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.DataProxmoxTemplatesTemplatesMemoryOutputReference = DataProxmoxTemplatesTemplatesMemoryOutputReference;
_q = JSII_RTTI_SYMBOL_1;
DataProxmoxTemplatesTemplatesMemoryOutputReference[_q] = { fqn: "@awlsring/cdktf-proxmox.dataProxmoxTemplates.DataProxmoxTemplatesTemplatesMemoryOutputReference", version: "0.0.318" };
function dataProxmoxTemplatesTemplatesNetworkInterfacesToTerraform(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.dataProxmoxTemplatesTemplatesNetworkInterfacesToTerraform = dataProxmoxTemplatesTemplatesNetworkInterfacesToTerraform;
class DataProxmoxTemplatesTemplatesNetworkInterfacesOutputReference 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.DataProxmoxTemplatesTemplatesNetworkInterfacesOutputReference = DataProxmoxTemplatesTemplatesNetworkInterfacesOutputReference;
_r = JSII_RTTI_SYMBOL_1;
DataProxmoxTemplatesTemplatesNetworkInterfacesOutputReference[_r] = { fqn: "@awlsring/cdktf-proxmox.dataProxmoxTemplates.DataProxmoxTemplatesTemplatesNetworkInterfacesOutputReference", version: "0.0.318" };
class DataProxmoxTemplatesTemplatesNetworkInterfacesList 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 DataProxmoxTemplatesTemplatesNetworkInterfacesOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.DataProxmoxTemplatesTemplatesNetworkInterfacesList = DataProxmoxTemplatesTemplatesNetworkInterfacesList;
_s = JSII_RTTI_SYMBOL_1;
DataProxmoxTemplatesTemplatesNetworkInterfacesList[_s] = { fqn: "@awlsring/cdktf-proxmox.dataProxmoxTemplates.DataProxmoxTemplatesTemplatesNetworkInterfacesList", version: "0.0.318" };
function dataProxmoxTemplatesTemplatesPciDevicesToTerraform(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.dataProxmoxTemplatesTemplatesPciDevicesToTerraform = dataProxmoxTemplatesTemplatesPciDevicesToTerraform;
class DataProxmoxTemplatesTemplatesPciDevicesOutputReference 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.DataProxmoxTemplatesTemplatesPciDevicesOutputReference = DataProxmoxTemplatesTemplatesPciDevicesOutputReference;
_t = JSII_RTTI_SYMBOL_1;
DataProxmoxTemplatesTemplatesPciDevicesOutputReference[_t] = { fqn: "@awlsring/cdktf-proxmox.dataProxmoxTemplates.DataProxmoxTemplatesTemplatesPciDevicesOutputReference", version: "0.0.318" };
class DataProxmoxTemplatesTemplatesPciDevicesList 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 DataProxmoxTemplatesTemplatesPciDevicesOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.DataProxmoxTemplatesTemplatesPciDevicesList = DataProxmoxTemplatesTemplatesPciDevicesList;
_u = JSII_RTTI_SYMBOL_1;
DataProxmoxTemplatesTemplatesPciDevicesList[_u] = { fqn: "@awlsring/cdktf-proxmox.dataProxmoxTemplates.DataProxmoxTemplatesTemplatesPciDevicesList", version: "0.0.318" };
function dataProxmoxTemplatesTemplatesToTerraform(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.dataProxmoxTemplatesTemplatesToTerraform = dataProxmoxTemplatesTemplatesToTerraform;
class DataProxmoxTemplatesTemplatesOutputReference 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 DataProxmoxTemplatesTemplatesAgentOutputReference(this, "agent");
// cloud_init - computed: true, optional: false, required: false
this._cloudInit = new DataProxmoxTemplatesTemplatesCloudInitOutputReference(this, "cloud_init");
// cpu - computed: true, optional: false, required: false
this._cpu = new DataProxmoxTemplatesTemplatesCpuOutputReference(this, "cpu");
// disks - computed: true, optional: false, required: false
this._disks = new DataProxmoxTemplatesTemplatesDisksList(this, "disks", true);
// memory - computed: true, optional: false, required: false
this._memory = new DataProxmoxTemplatesTemplatesMemoryOutputReference(this, "memory");
// network_interfaces - computed: true, optional: false, required: false
this._networkInterfaces = new DataProxmoxTemplatesTemplatesNetworkInterfacesList(this, "network_interfaces", true);
// pci_devices - computed: true, optional: false, required: false
this._pciDevices = new DataProxmoxTemplatesTemplatesPciDevicesList(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 - computed: true, optional: false, required: false
get startOnNodeBoot() {
return this.getBooleanAttribute('start_on_node_boot');
}
// tags - computed: true, optional: false, required: false
get tags() {
return cdktf.Fn.tolist(this.getListAttribute('tags'));
}
// type - computed: true, optional: false, required: false
get type() {
return this.getStringAttribute('type');
}
}
exports.DataProxmoxTemplatesTemplatesOutputReference = DataProxmoxTemplatesTemplatesOutputReference;
_v = JSII_RTTI_SYMBOL_1;
DataProxmoxTemplatesTemplatesOutputReference[_v] = { fqn: "@awlsring/cdktf-proxmox.dataProxmoxTemplates.DataProxmoxTemplatesTemplatesOutputReference", version: "0.0.318" };
class DataProxmoxTemplatesTemplatesList 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 DataProxmoxTemplatesTemplatesOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.DataProxmoxTemplatesTemplatesList = DataProxmoxTemplatesTemplatesList;
_w = JSII_RTTI_SYMBOL_1;
DataProxmoxTemplatesTemplatesList[_w] = { fqn: "@awlsring/cdktf-proxmox.dataProxmoxTemplates.DataProxmoxTemplatesTemplatesList", version: "0.0.318" };
/**
* Represents a {@link https://www.terraform.io/docs/providers/proxmox/d/templates proxmox_templates}
*/
class DataProxmoxTemplates extends cdktf.TerraformDataSource {
// ===========
// INITIALIZER
// ===========
/**
* Create a new {@link https://www.terraform.io/docs/providers/proxmox/d/templates proxmox_templates} Data Source
*
* @param scope The scope in which to define this construct
* @param id The scoped construct ID. Must be unique amongst siblings in the same scope
* @p