UNPKG

@cdktf/provider-vsphere

Version:

Prebuilt vsphere Provider for Terraform CDK (cdktf)

1,304 lines 372 kB
"use strict"; var _a, _b, _c, _d, _e, _f, _g; Object.defineProperty(exports, "__esModule", { value: true }); exports.DistributedVirtualSwitch = exports.DistributedVirtualSwitchVlanRangeList = exports.DistributedVirtualSwitchVlanRangeOutputReference = exports.DistributedVirtualSwitchPvlanMappingList = exports.DistributedVirtualSwitchPvlanMappingOutputReference = exports.DistributedVirtualSwitchHostList = exports.DistributedVirtualSwitchHostOutputReference = void 0; exports.distributedVirtualSwitchHostToTerraform = distributedVirtualSwitchHostToTerraform; exports.distributedVirtualSwitchHostToHclTerraform = distributedVirtualSwitchHostToHclTerraform; exports.distributedVirtualSwitchPvlanMappingToTerraform = distributedVirtualSwitchPvlanMappingToTerraform; exports.distributedVirtualSwitchPvlanMappingToHclTerraform = distributedVirtualSwitchPvlanMappingToHclTerraform; exports.distributedVirtualSwitchVlanRangeToTerraform = distributedVirtualSwitchVlanRangeToTerraform; exports.distributedVirtualSwitchVlanRangeToHclTerraform = distributedVirtualSwitchVlanRangeToHclTerraform; const JSII_RTTI_SYMBOL_1 = Symbol.for("jsii.rtti"); const cdktf = require("cdktf"); function distributedVirtualSwitchHostToTerraform(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 { devices: cdktf.listMapper(cdktf.stringToTerraform, false)(struct.devices), host_system_id: cdktf.stringToTerraform(struct.hostSystemId), }; } function distributedVirtualSwitchHostToHclTerraform(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 = { devices: { value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(struct.devices), isBlock: false, type: "list", storageClassType: "stringList", }, host_system_id: { value: cdktf.stringToHclTerraform(struct.hostSystemId), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } class DistributedVirtualSwitchHostOutputReference 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._devices !== undefined) { hasAnyValues = true; internalValueResult.devices = this._devices; } if (this._hostSystemId !== undefined) { hasAnyValues = true; internalValueResult.hostSystemId = this._hostSystemId; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; this._devices = undefined; this._hostSystemId = 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._devices = value.devices; this._hostSystemId = value.hostSystemId; } } get devices() { return this.getListAttribute('devices'); } set devices(value) { this._devices = value; } resetDevices() { this._devices = undefined; } // Temporarily expose input value. Use with caution. get devicesInput() { return this._devices; } get hostSystemId() { return this.getStringAttribute('host_system_id'); } set hostSystemId(value) { this._hostSystemId = value; } // Temporarily expose input value. Use with caution. get hostSystemIdInput() { return this._hostSystemId; } } exports.DistributedVirtualSwitchHostOutputReference = DistributedVirtualSwitchHostOutputReference; _a = JSII_RTTI_SYMBOL_1; DistributedVirtualSwitchHostOutputReference[_a] = { fqn: "@cdktf/provider-vsphere.distributedVirtualSwitch.DistributedVirtualSwitchHostOutputReference", version: "11.1.0" }; class DistributedVirtualSwitchHostList 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 DistributedVirtualSwitchHostOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.DistributedVirtualSwitchHostList = DistributedVirtualSwitchHostList; _b = JSII_RTTI_SYMBOL_1; DistributedVirtualSwitchHostList[_b] = { fqn: "@cdktf/provider-vsphere.distributedVirtualSwitch.DistributedVirtualSwitchHostList", version: "11.1.0" }; function distributedVirtualSwitchPvlanMappingToTerraform(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 { primary_vlan_id: cdktf.numberToTerraform(struct.primaryVlanId), pvlan_type: cdktf.stringToTerraform(struct.pvlanType), secondary_vlan_id: cdktf.numberToTerraform(struct.secondaryVlanId), }; } function distributedVirtualSwitchPvlanMappingToHclTerraform(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 = { primary_vlan_id: { value: cdktf.numberToHclTerraform(struct.primaryVlanId), isBlock: false, type: "simple", storageClassType: "number", }, pvlan_type: { value: cdktf.stringToHclTerraform(struct.pvlanType), isBlock: false, type: "simple", storageClassType: "string", }, secondary_vlan_id: { value: cdktf.numberToHclTerraform(struct.secondaryVlanId), isBlock: false, type: "simple", storageClassType: "number", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } class DistributedVirtualSwitchPvlanMappingOutputReference 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._primaryVlanId !== undefined) { hasAnyValues = true; internalValueResult.primaryVlanId = this._primaryVlanId; } if (this._pvlanType !== undefined) { hasAnyValues = true; internalValueResult.pvlanType = this._pvlanType; } if (this._secondaryVlanId !== undefined) { hasAnyValues = true; internalValueResult.secondaryVlanId = this._secondaryVlanId; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; this._primaryVlanId = undefined; this._pvlanType = undefined; this._secondaryVlanId = 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._primaryVlanId = value.primaryVlanId; this._pvlanType = value.pvlanType; this._secondaryVlanId = value.secondaryVlanId; } } get primaryVlanId() { return this.getNumberAttribute('primary_vlan_id'); } set primaryVlanId(value) { this._primaryVlanId = value; } // Temporarily expose input value. Use with caution. get primaryVlanIdInput() { return this._primaryVlanId; } get pvlanType() { return this.getStringAttribute('pvlan_type'); } set pvlanType(value) { this._pvlanType = value; } // Temporarily expose input value. Use with caution. get pvlanTypeInput() { return this._pvlanType; } get secondaryVlanId() { return this.getNumberAttribute('secondary_vlan_id'); } set secondaryVlanId(value) { this._secondaryVlanId = value; } // Temporarily expose input value. Use with caution. get secondaryVlanIdInput() { return this._secondaryVlanId; } } exports.DistributedVirtualSwitchPvlanMappingOutputReference = DistributedVirtualSwitchPvlanMappingOutputReference; _c = JSII_RTTI_SYMBOL_1; DistributedVirtualSwitchPvlanMappingOutputReference[_c] = { fqn: "@cdktf/provider-vsphere.distributedVirtualSwitch.DistributedVirtualSwitchPvlanMappingOutputReference", version: "11.1.0" }; class DistributedVirtualSwitchPvlanMappingList 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 DistributedVirtualSwitchPvlanMappingOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.DistributedVirtualSwitchPvlanMappingList = DistributedVirtualSwitchPvlanMappingList; _d = JSII_RTTI_SYMBOL_1; DistributedVirtualSwitchPvlanMappingList[_d] = { fqn: "@cdktf/provider-vsphere.distributedVirtualSwitch.DistributedVirtualSwitchPvlanMappingList", version: "11.1.0" }; function distributedVirtualSwitchVlanRangeToTerraform(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 { max_vlan: cdktf.numberToTerraform(struct.maxVlan), min_vlan: cdktf.numberToTerraform(struct.minVlan), }; } function distributedVirtualSwitchVlanRangeToHclTerraform(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 = { max_vlan: { value: cdktf.numberToHclTerraform(struct.maxVlan), isBlock: false, type: "simple", storageClassType: "number", }, min_vlan: { value: cdktf.numberToHclTerraform(struct.minVlan), isBlock: false, type: "simple", storageClassType: "number", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } class DistributedVirtualSwitchVlanRangeOutputReference 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._maxVlan !== undefined) { hasAnyValues = true; internalValueResult.maxVlan = this._maxVlan; } if (this._minVlan !== undefined) { hasAnyValues = true; internalValueResult.minVlan = this._minVlan; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; this._maxVlan = undefined; this._minVlan = 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._maxVlan = value.maxVlan; this._minVlan = value.minVlan; } } get maxVlan() { return this.getNumberAttribute('max_vlan'); } set maxVlan(value) { this._maxVlan = value; } // Temporarily expose input value. Use with caution. get maxVlanInput() { return this._maxVlan; } get minVlan() { return this.getNumberAttribute('min_vlan'); } set minVlan(value) { this._minVlan = value; } // Temporarily expose input value. Use with caution. get minVlanInput() { return this._minVlan; } } exports.DistributedVirtualSwitchVlanRangeOutputReference = DistributedVirtualSwitchVlanRangeOutputReference; _e = JSII_RTTI_SYMBOL_1; DistributedVirtualSwitchVlanRangeOutputReference[_e] = { fqn: "@cdktf/provider-vsphere.distributedVirtualSwitch.DistributedVirtualSwitchVlanRangeOutputReference", version: "11.1.0" }; class DistributedVirtualSwitchVlanRangeList 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 DistributedVirtualSwitchVlanRangeOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.DistributedVirtualSwitchVlanRangeList = DistributedVirtualSwitchVlanRangeList; _f = JSII_RTTI_SYMBOL_1; DistributedVirtualSwitchVlanRangeList[_f] = { fqn: "@cdktf/provider-vsphere.distributedVirtualSwitch.DistributedVirtualSwitchVlanRangeList", version: "11.1.0" }; /** * Represents a {@link https://registry.terraform.io/providers/vmware/vsphere/2.14.0/docs/resources/distributed_virtual_switch vsphere_distributed_virtual_switch} */ class DistributedVirtualSwitch extends cdktf.TerraformResource { // ============== // STATIC Methods // ============== /** * Generates CDKTF code for importing a DistributedVirtualSwitch 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 DistributedVirtualSwitch to import * @param importFromId The id of the existing DistributedVirtualSwitch that should be imported. Refer to the {@link https://registry.terraform.io/providers/vmware/vsphere/2.14.0/docs/resources/distributed_virtual_switch#import import section} in the documentation of this resource for the id to use * @param provider? Optional instance of the provider where the DistributedVirtualSwitch to import is found */ static generateConfigForImport(scope, importToId, importFromId, provider) { return new cdktf.ImportableResource(scope, importToId, { terraformResourceType: "vsphere_distributed_virtual_switch", importId: importFromId, provider }); } // =========== // INITIALIZER // =========== /** * Create a new {@link https://registry.terraform.io/providers/vmware/vsphere/2.14.0/docs/resources/distributed_virtual_switch vsphere_distributed_virtual_switch} 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 DistributedVirtualSwitchConfig */ constructor(scope, id, config) { super(scope, id, { terraformResourceType: 'vsphere_distributed_virtual_switch', terraformGeneratorMetadata: { providerName: 'vsphere', providerVersion: '2.14.0', providerVersionConstraint: '~> 2.13' }, provider: config.provider, dependsOn: config.dependsOn, count: config.count, lifecycle: config.lifecycle, provisioners: config.provisioners, connection: config.connection, forEach: config.forEach }); // host - computed: false, optional: true, required: false this._host = new DistributedVirtualSwitchHostList(this, "host", true); // pvlan_mapping - computed: false, optional: true, required: false this._pvlanMapping = new DistributedVirtualSwitchPvlanMappingList(this, "pvlan_mapping", true); // vlan_range - computed: false, optional: true, required: false this._vlanRange = new DistributedVirtualSwitchVlanRangeList(this, "vlan_range", true); this._activeUplinks = config.activeUplinks; this._allowForgedTransmits = config.allowForgedTransmits; this._allowMacChanges = config.allowMacChanges; this._allowPromiscuous = config.allowPromiscuous; this._backupnfcMaximumMbit = config.backupnfcMaximumMbit; this._backupnfcReservationMbit = config.backupnfcReservationMbit; this._backupnfcShareCount = config.backupnfcShareCount; this._backupnfcShareLevel = config.backupnfcShareLevel; this._blockAllPorts = config.blockAllPorts; this._checkBeacon = config.checkBeacon; this._contactDetail = config.contactDetail; this._contactName = config.contactName; this._customAttributes = config.customAttributes; this._datacenterId = config.datacenterId; this._description = config.description; this._directpathGen2Allowed = config.directpathGen2Allowed; this._egressShapingAverageBandwidth = config.egressShapingAverageBandwidth; this._egressShapingBurstSize = config.egressShapingBurstSize; this._egressShapingEnabled = config.egressShapingEnabled; this._egressShapingPeakBandwidth = config.egressShapingPeakBandwidth; this._failback = config.failback; this._faulttoleranceMaximumMbit = config.faulttoleranceMaximumMbit; this._faulttoleranceReservationMbit = config.faulttoleranceReservationMbit; this._faulttoleranceShareCount = config.faulttoleranceShareCount; this._faulttoleranceShareLevel = config.faulttoleranceShareLevel; this._folder = config.folder; this._hbrMaximumMbit = config.hbrMaximumMbit; this._hbrReservationMbit = config.hbrReservationMbit; this._hbrShareCount = config.hbrShareCount; this._hbrShareLevel = config.hbrShareLevel; this._id = config.id; this._ignoreOtherPvlanMappings = config.ignoreOtherPvlanMappings; this._ingressShapingAverageBandwidth = config.ingressShapingAverageBandwidth; this._ingressShapingBurstSize = config.ingressShapingBurstSize; this._ingressShapingEnabled = config.ingressShapingEnabled; this._ingressShapingPeakBandwidth = config.ingressShapingPeakBandwidth; this._ipv4Address = config.ipv4Address; this._iscsiMaximumMbit = config.iscsiMaximumMbit; this._iscsiReservationMbit = config.iscsiReservationMbit; this._iscsiShareCount = config.iscsiShareCount; this._iscsiShareLevel = config.iscsiShareLevel; this._lacpApiVersion = config.lacpApiVersion; this._lacpEnabled = config.lacpEnabled; this._lacpMode = config.lacpMode; this._linkDiscoveryOperation = config.linkDiscoveryOperation; this._linkDiscoveryProtocol = config.linkDiscoveryProtocol; this._managementMaximumMbit = config.managementMaximumMbit; this._managementReservationMbit = config.managementReservationMbit; this._managementShareCount = config.managementShareCount; this._managementShareLevel = config.managementShareLevel; this._maxMtu = config.maxMtu; this._multicastFilteringMode = config.multicastFilteringMode; this._name = config.name; this._netflowActiveFlowTimeout = config.netflowActiveFlowTimeout; this._netflowCollectorIpAddress = config.netflowCollectorIpAddress; this._netflowCollectorPort = config.netflowCollectorPort; this._netflowEnabled = config.netflowEnabled; this._netflowIdleFlowTimeout = config.netflowIdleFlowTimeout; this._netflowInternalFlowsOnly = config.netflowInternalFlowsOnly; this._netflowObservationDomainId = config.netflowObservationDomainId; this._netflowSamplingRate = config.netflowSamplingRate; this._networkResourceControlEnabled = config.networkResourceControlEnabled; this._networkResourceControlVersion = config.networkResourceControlVersion; this._nfsMaximumMbit = config.nfsMaximumMbit; this._nfsReservationMbit = config.nfsReservationMbit; this._nfsShareCount = config.nfsShareCount; this._nfsShareLevel = config.nfsShareLevel; this._notifySwitches = config.notifySwitches; this._portPrivateSecondaryVlanId = config.portPrivateSecondaryVlanId; this._standbyUplinks = config.standbyUplinks; this._tags = config.tags; this._teamingPolicy = config.teamingPolicy; this._txUplink = config.txUplink; this._uplinks = config.uplinks; this._vdpMaximumMbit = config.vdpMaximumMbit; this._vdpReservationMbit = config.vdpReservationMbit; this._vdpShareCount = config.vdpShareCount; this._vdpShareLevel = config.vdpShareLevel; this._version = config.version; this._virtualmachineMaximumMbit = config.virtualmachineMaximumMbit; this._virtualmachineReservationMbit = config.virtualmachineReservationMbit; this._virtualmachineShareCount = config.virtualmachineShareCount; this._virtualmachineShareLevel = config.virtualmachineShareLevel; this._vlanId = config.vlanId; this._vmotionMaximumMbit = config.vmotionMaximumMbit; this._vmotionReservationMbit = config.vmotionReservationMbit; this._vmotionShareCount = config.vmotionShareCount; this._vmotionShareLevel = config.vmotionShareLevel; this._vsanMaximumMbit = config.vsanMaximumMbit; this._vsanReservationMbit = config.vsanReservationMbit; this._vsanShareCount = config.vsanShareCount; this._vsanShareLevel = config.vsanShareLevel; this._host.internalValue = config.host; this._pvlanMapping.internalValue = config.pvlanMapping; this._vlanRange.internalValue = config.vlanRange; } get activeUplinks() { return this.getListAttribute('active_uplinks'); } set activeUplinks(value) { this._activeUplinks = value; } resetActiveUplinks() { this._activeUplinks = undefined; } // Temporarily expose input value. Use with caution. get activeUplinksInput() { return this._activeUplinks; } get allowForgedTransmits() { return this.getBooleanAttribute('allow_forged_transmits'); } set allowForgedTransmits(value) { this._allowForgedTransmits = value; } resetAllowForgedTransmits() { this._allowForgedTransmits = undefined; } // Temporarily expose input value. Use with caution. get allowForgedTransmitsInput() { return this._allowForgedTransmits; } get allowMacChanges() { return this.getBooleanAttribute('allow_mac_changes'); } set allowMacChanges(value) { this._allowMacChanges = value; } resetAllowMacChanges() { this._allowMacChanges = undefined; } // Temporarily expose input value. Use with caution. get allowMacChangesInput() { return this._allowMacChanges; } get allowPromiscuous() { return this.getBooleanAttribute('allow_promiscuous'); } set allowPromiscuous(value) { this._allowPromiscuous = value; } resetAllowPromiscuous() { this._allowPromiscuous = undefined; } // Temporarily expose input value. Use with caution. get allowPromiscuousInput() { return this._allowPromiscuous; } get backupnfcMaximumMbit() { return this.getNumberAttribute('backupnfc_maximum_mbit'); } set backupnfcMaximumMbit(value) { this._backupnfcMaximumMbit = value; } resetBackupnfcMaximumMbit() { this._backupnfcMaximumMbit = undefined; } // Temporarily expose input value. Use with caution. get backupnfcMaximumMbitInput() { return this._backupnfcMaximumMbit; } get backupnfcReservationMbit() { return this.getNumberAttribute('backupnfc_reservation_mbit'); } set backupnfcReservationMbit(value) { this._backupnfcReservationMbit = value; } resetBackupnfcReservationMbit() { this._backupnfcReservationMbit = undefined; } // Temporarily expose input value. Use with caution. get backupnfcReservationMbitInput() { return this._backupnfcReservationMbit; } get backupnfcShareCount() { return this.getNumberAttribute('backupnfc_share_count'); } set backupnfcShareCount(value) { this._backupnfcShareCount = value; } resetBackupnfcShareCount() { this._backupnfcShareCount = undefined; } // Temporarily expose input value. Use with caution. get backupnfcShareCountInput() { return this._backupnfcShareCount; } get backupnfcShareLevel() { return this.getStringAttribute('backupnfc_share_level'); } set backupnfcShareLevel(value) { this._backupnfcShareLevel = value; } resetBackupnfcShareLevel() { this._backupnfcShareLevel = undefined; } // Temporarily expose input value. Use with caution. get backupnfcShareLevelInput() { return this._backupnfcShareLevel; } get blockAllPorts() { return this.getBooleanAttribute('block_all_ports'); } set blockAllPorts(value) { this._blockAllPorts = value; } resetBlockAllPorts() { this._blockAllPorts = undefined; } // Temporarily expose input value. Use with caution. get blockAllPortsInput() { return this._blockAllPorts; } get checkBeacon() { return this.getBooleanAttribute('check_beacon'); } set checkBeacon(value) { this._checkBeacon = value; } resetCheckBeacon() { this._checkBeacon = undefined; } // Temporarily expose input value. Use with caution. get checkBeaconInput() { return this._checkBeacon; } // config_version - computed: true, optional: false, required: false get configVersion() { return this.getStringAttribute('config_version'); } get contactDetail() { return this.getStringAttribute('contact_detail'); } set contactDetail(value) { this._contactDetail = value; } resetContactDetail() { this._contactDetail = undefined; } // Temporarily expose input value. Use with caution. get contactDetailInput() { return this._contactDetail; } get contactName() { return this.getStringAttribute('contact_name'); } set contactName(value) { this._contactName = value; } resetContactName() { this._contactName = undefined; } // Temporarily expose input value. Use with caution. get contactNameInput() { return this._contactName; } get customAttributes() { return this.getStringMapAttribute('custom_attributes'); } set customAttributes(value) { this._customAttributes = value; } resetCustomAttributes() { this._customAttributes = undefined; } // Temporarily expose input value. Use with caution. get customAttributesInput() { return this._customAttributes; } get datacenterId() { return this.getStringAttribute('datacenter_id'); } set datacenterId(value) { this._datacenterId = value; } // Temporarily expose input value. Use with caution. get datacenterIdInput() { return this._datacenterId; } get description() { return this.getStringAttribute('description'); } set description(value) { this._description = value; } resetDescription() { this._description = undefined; } // Temporarily expose input value. Use with caution. get descriptionInput() { return this._description; } get directpathGen2Allowed() { return this.getBooleanAttribute('directpath_gen2_allowed'); } set directpathGen2Allowed(value) { this._directpathGen2Allowed = value; } resetDirectpathGen2Allowed() { this._directpathGen2Allowed = undefined; } // Temporarily expose input value. Use with caution. get directpathGen2AllowedInput() { return this._directpathGen2Allowed; } get egressShapingAverageBandwidth() { return this.getNumberAttribute('egress_shaping_average_bandwidth'); } set egressShapingAverageBandwidth(value) { this._egressShapingAverageBandwidth = value; } resetEgressShapingAverageBandwidth() { this._egressShapingAverageBandwidth = undefined; } // Temporarily expose input value. Use with caution. get egressShapingAverageBandwidthInput() { return this._egressShapingAverageBandwidth; } get egressShapingBurstSize() { return this.getNumberAttribute('egress_shaping_burst_size'); } set egressShapingBurstSize(value) { this._egressShapingBurstSize = value; } resetEgressShapingBurstSize() { this._egressShapingBurstSize = undefined; } // Temporarily expose input value. Use with caution. get egressShapingBurstSizeInput() { return this._egressShapingBurstSize; } get egressShapingEnabled() { return this.getBooleanAttribute('egress_shaping_enabled'); } set egressShapingEnabled(value) { this._egressShapingEnabled = value; } resetEgressShapingEnabled() { this._egressShapingEnabled = undefined; } // Temporarily expose input value. Use with caution. get egressShapingEnabledInput() { return this._egressShapingEnabled; } get egressShapingPeakBandwidth() { return this.getNumberAttribute('egress_shaping_peak_bandwidth'); } set egressShapingPeakBandwidth(value) { this._egressShapingPeakBandwidth = value; } resetEgressShapingPeakBandwidth() { this._egressShapingPeakBandwidth = undefined; } // Temporarily expose input value. Use with caution. get egressShapingPeakBandwidthInput() { return this._egressShapingPeakBandwidth; } get failback() { return this.getBooleanAttribute('failback'); } set failback(value) { this._failback = value; } resetFailback() { this._failback = undefined; } // Temporarily expose input value. Use with caution. get failbackInput() { return this._failback; } get faulttoleranceMaximumMbit() { return this.getNumberAttribute('faulttolerance_maximum_mbit'); } set faulttoleranceMaximumMbit(value) { this._faulttoleranceMaximumMbit = value; } resetFaulttoleranceMaximumMbit() { this._faulttoleranceMaximumMbit = undefined; } // Temporarily expose input value. Use with caution. get faulttoleranceMaximumMbitInput() { return this._faulttoleranceMaximumMbit; } get faulttoleranceReservationMbit() { return this.getNumberAttribute('faulttolerance_reservation_mbit'); } set faulttoleranceReservationMbit(value) { this._faulttoleranceReservationMbit = value; } resetFaulttoleranceReservationMbit() { this._faulttoleranceReservationMbit = undefined; } // Temporarily expose input value. Use with caution. get faulttoleranceReservationMbitInput() { return this._faulttoleranceReservationMbit; } get faulttoleranceShareCount() { return this.getNumberAttribute('faulttolerance_share_count'); } set faulttoleranceShareCount(value) { this._faulttoleranceShareCount = value; } resetFaulttoleranceShareCount() { this._faulttoleranceShareCount = undefined; } // Temporarily expose input value. Use with caution. get faulttoleranceShareCountInput() { return this._faulttoleranceShareCount; } get faulttoleranceShareLevel() { return this.getStringAttribute('faulttolerance_share_level'); } set faulttoleranceShareLevel(value) { this._faulttoleranceShareLevel = value; } resetFaulttoleranceShareLevel() { this._faulttoleranceShareLevel = undefined; } // Temporarily expose input value. Use with caution. get faulttoleranceShareLevelInput() { return this._faulttoleranceShareLevel; } get folder() { return this.getStringAttribute('folder'); } set folder(value) { this._folder = value; } resetFolder() { this._folder = undefined; } // Temporarily expose input value. Use with caution. get folderInput() { return this._folder; } get hbrMaximumMbit() { return this.getNumberAttribute('hbr_maximum_mbit'); } set hbrMaximumMbit(value) { this._hbrMaximumMbit = value; } resetHbrMaximumMbit() { this._hbrMaximumMbit = undefined; } // Temporarily expose input value. Use with caution. get hbrMaximumMbitInput() { return this._hbrMaximumMbit; } get hbrReservationMbit() { return this.getNumberAttribute('hbr_reservation_mbit'); } set hbrReservationMbit(value) { this._hbrReservationMbit = value; } resetHbrReservationMbit() { this._hbrReservationMbit = undefined; } // Temporarily expose input value. Use with caution. get hbrReservationMbitInput() { return this._hbrReservationMbit; } get hbrShareCount() { return this.getNumberAttribute('hbr_share_count'); } set hbrShareCount(value) { this._hbrShareCount = value; } resetHbrShareCount() { this._hbrShareCount = undefined; } // Temporarily expose input value. Use with caution. get hbrShareCountInput() { return this._hbrShareCount; } get hbrShareLevel() { return this.getStringAttribute('hbr_share_level'); } set hbrShareLevel(value) { this._hbrShareLevel = value; } resetHbrShareLevel() { this._hbrShareLevel = undefined; } // Temporarily expose input value. Use with caution. get hbrShareLevelInput() { return this._hbrShareLevel; } 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 ignoreOtherPvlanMappings() { return this.getBooleanAttribute('ignore_other_pvlan_mappings'); } set ignoreOtherPvlanMappings(value) { this._ignoreOtherPvlanMappings = value; } resetIgnoreOtherPvlanMappings() { this._ignoreOtherPvlanMappings = undefined; } // Temporarily expose input value. Use with caution. get ignoreOtherPvlanMappingsInput() { return this._ignoreOtherPvlanMappings; } get ingressShapingAverageBandwidth() { return this.getNumberAttribute('ingress_shaping_average_bandwidth'); } set ingressShapingAverageBandwidth(value) { this._ingressShapingAverageBandwidth = value; } resetIngressShapingAverageBandwidth() { this._ingressShapingAverageBandwidth = undefined; } // Temporarily expose input value. Use with caution. get ingressShapingAverageBandwidthInput() { return this._ingressShapingAverageBandwidth; } get ingressShapingBurstSize() { return this.getNumberAttribute('ingress_shaping_burst_size'); } set ingressShapingBurstSize(value) { this._ingressShapingBurstSize = value; } resetIngressShapingBurstSize() { this._ingressShapingBurstSize = undefined; } // Temporarily expose input value. Use with caution. get ingressShapingBurstSizeInput() { return this._ingressShapingBurstSize; } get ingressShapingEnabled() { return this.getBooleanAttribute('ingress_shaping_enabled'); } set ingressShapingEnabled(value) { this._ingressShapingEnabled = value; } resetIngressShapingEnabled() { this._ingressShapingEnabled = undefined; } // Temporarily expose input value. Use with caution. get ingressShapingEnabledInput() { return this._ingressShapingEnabled; } get ingressShapingPeakBandwidth() { return this.getNumberAttribute('ingress_shaping_peak_bandwidth'); } set ingressShapingPeakBandwidth(value) { this._ingressShapingPeakBandwidth = value; } resetIngressShapingPeakBandwidth() { this._ingressShapingPeakBandwidth = undefined; } // Temporarily expose input value. Use with caution. get ingressShapingPeakBandwidthInput() { return this._ingressShapingPeakBandwidth; } get ipv4Address() { return this.getStringAttribute('ipv4_address'); } set ipv4Address(value) { this._ipv4Address = value; } resetIpv4Address() { this._ipv4Address = undefined; } // Temporarily expose input value. Use with caution. get ipv4AddressInput() { return this._ipv4Address; } get iscsiMaximumMbit() { return this.getNumberAttribute('iscsi_maximum_mbit'); } set iscsiMaximumMbit(value) { this._iscsiMaximumMbit = value; } resetIscsiMaximumMbit() { this._iscsiMaximumMbit = undefined; } // Temporarily expose input value. Use with caution. get iscsiMaximumMbitInput() { return this._iscsiMaximumMbit; } get iscsiReservationMbit() { return this.getNumberAttribute('iscsi_reservation_mbit'); } set iscsiReservationMbit(value) { this._iscsiReservationMbit = value; } resetIscsiReservationMbit() { this._iscsiReservationMbit = undefined; } // Temporarily expose input value. Use with caution. get iscsiReservationMbitInput() { return this._iscsiReservationMbit; } get iscsiShareCount() { return this.getNumberAttribute('iscsi_share_count'); } set iscsiShareCount(value) { this._iscsiShareCount = value; } resetIscsiShareCount() { this._iscsiShareCount = undefined; } // Temporarily expose input value. Use with caution. get iscsiShareCountInput() { return this._iscsiShareCount; } get iscsiShareLevel() { return this.getStringAttribute('iscsi_share_level'); } set iscsiShareLevel(value) { this._iscsiShareLevel = value; } resetIscsiShareLevel() { this._iscsiShareLevel = undefined; } // Temporarily expose input value. Use with caution. get iscsiShareLevelInput() { return this._iscsiShareLevel; } get lacpApiVersion() { return this.getStringAttribute('lacp_api_version'); } set lacpApiVersion(value) { this._lacpApiVersion = value; } resetLacpApiVersion() { this._lacpApiVersion = undefined; } // Temporarily expose input value. Use with caution. get lacpApiVersionInput() { return this._lacpApiVersion; } get lacpEnabled() { return this.getBooleanAttribute('lacp_enabled'); } set lacpEnabled(value) { this._lacpEnabled = value; } resetLacpEnabled() { this._lacpEnabled = undefined; } // Temporarily expose input value. Use with caution. get lacpEnabledInput() { return this._lacpEnabled; } get lacpMode() { return this.getStringAttribute('lacp_mode'); } set lacpMode(value) { this._lacpMode = value; } resetLacpMode() { this._lacpMode = undefined; } // Temporarily expose input value. Use with caution. get lacpModeInput() { return this._lacpMode; } get linkDiscoveryOperation() { return this.getStringAttribute('link_discovery_operation'); } set linkDiscoveryOperation(value) { this._linkDiscoveryOperation = value; } resetLinkDiscoveryOperation() { this._linkDiscoveryOperation = undefined; } // Temporarily expose input value. Use with caution. get linkDiscoveryOperationInput() { return this._linkDiscoveryOperation; } get linkDiscoveryProtocol() { return this.getStringAttribute('link_discovery_protocol'); } set linkDiscoveryProtocol(value) { this._linkDiscoveryProtocol = value; } resetLinkDiscoveryProtocol() { this._linkDiscoveryProtocol = undefined; } // Temporarily expose input value. Use with caution. get linkDiscoveryProtocolInput() { return this._linkDiscoveryProtocol; } get managementMaximumMbit() { return this.getNumberAttribute('management_maximum_mbit'); } set managementMaximumMbit(value) { this._managementMaximumMbit = value; } resetManagementMaximumMbit() { this._managementMaximumMbit = undefined; } // Temporarily expose input value. Use with caution. get managementMaximumMbitInput() { return this._managementMaximumMbit; } get managementReservationMbit() { return this.getNumberAttribute('management_reservation_mbit'); } set managementReservationMbit(value) { this._managementReservationMbit = value; } resetManagementReservationMbit() { this._managementReservationMbit = undefined; } // Temporarily expose input value. Use with caution. get managementReservationMbitInput() { return this._managementReservationMbit; } get managementShareCount() { return this.getNumberAttribute('management_share_count'); } set managementShareCount(value) { this._managementShareCount = value; } resetManagementShareCount() { this._managementShareCount = undefined; } // Temporarily expose input value. Use with caution. get managementShareCountInput() { return this._managementShareCount; } get managementShareLevel() { return this.getStringAttribute('management_share_level'); } set managementShareLevel(value) { this._managementShareLevel = value; } resetManagementShareLevel() { this._managementShareLevel = undefined; } // Temporarily expose input value. Use with caution. get managementShareLevelInput() { return this._managementShareLevel; } get maxMtu() { return this.getNumberAttribute('max_mtu'); } set maxMtu(value) { this._maxMtu = value; } resetMaxMtu() { this._maxMtu = undefined; } // Temporarily expose input value. Use with caution. get maxMtuInput() { return this._maxMtu; } get multicastFilteringMode() { return this.getStringAttribute('multicast_filtering_mode'); } set multicastFilteringMode(value) { this._multicastFilteringMode = value; } resetMulticastFilteringMode() { this._multicastFilteringMode = undefined; } // Temporarily expose input value. Use with caution. get multicastFilteringModeInput() { return this._multicastFilteringMode; } 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 netflowActiveFlowTimeout() { return this.getNumberAttribute('netflow_active_flow_timeout'); } set netflowActiveFlowTimeout(value) { this._netflowActiveFlowTimeout = value; } resetNetflowActiveFlowTimeout() { this._netflowActiveFlowTimeout = undefined; } // Temporarily expose input value. Use with caution. get netflowActiveFlowTimeoutInput() { return this._netflowActiveFlowTimeout; } get netflowCollectorIpAddress() { return this.getStringAttribute('netflow_collector_ip_address'); } set netflowCollectorIpAddress(value) { this._netflowCollectorIpAddress = value; } resetNetflowCollectorIpAddress() { this._netflowCollectorIpAddress = undefined; } // Temporarily expose input value. Use with caution. get netflowCollectorIpAddressInput() { return this._netflowCollectorIpAddress; } get netflowCollectorPort() { return this.getNumberAttribute('netflow_collector_port'); } set netflowCollectorPort(value) { this._netflowCollectorPort = value; } resetNetflowCollectorPort() { this._netflowCollectorPort = undefined; } // Temporarily expose input value. Use with caution. get netflowCollectorPortInput() { return this._netflowCollectorPort; } get netflowEnabled() { return this.getBooleanAttribute('netflow_enabled'); } set netflowEnabled(value) { this._netflowEnabled = value; } resetNetflowEnabled() { this._netflowEnabled = undefined; } // Temporarily expose input value. Use with caution. get netflowEnabledInput() { return this._netflowEnabled; } get netflowIdleFlowTimeou