/** * The NetworkMapping model module. * @module Ntnx/NetworkMapping * @version 4.3.1 * @class NetworkMapping * @extends ExternalizableAbstractModel * * @param { NetworkConfig } primaryNetwork * * @param { NetworkConfig } recoveryNetwork */ export default class NetworkMapping extends ExternalizableAbstractModel { /** * Constructs a new NetworkMapping. * Mapping between networks on primary and recovery locations. This mapping will be used to create virtual NICs on failover or failback.<br> During a failover from primary location to recovery location, virtual NICs on the `primaryNetwork` will be recreated on the `recoveryNetwork` if failover action is `PLANNED_FAILOVER`, `UNPLANNED_FAILOVER` or the `recoveryTestNetwork` if failover action is `TEST_FAILOVER`.<br> During failback, virtual NICs on the `recoveryNetwork` will be recreated on the `primaryNetwork` if the failover action is `PLANNED_FAILOVER`, `UNPLANNED_FAILOVER` or `primaryTestNetwork` if the failover action is `TEST_FAILOVER`.<br>. * @alias module:Ntnx/NetworkMapping * @extends module:Ntnx/ExternalizableAbstractModel * * @param { NetworkConfig } primaryNetwork * * @param { NetworkConfig } recoveryNetwork */ constructor(primaryNetwork: NetworkConfig, recoveryNetwork: NetworkConfig); primaryNetwork: NetworkConfig; recoveryNetwork: NetworkConfig; /** * @return {NetworkConfig} */ getPrimaryNetwork(): NetworkConfig; /** * @param {NetworkConfig} primaryNetwork */ setPrimaryNetwork(primaryNetwork: NetworkConfig): void; /** * @return {NetworkConfig} */ getRecoveryNetwork(): NetworkConfig; /** * @param {NetworkConfig} recoveryNetwork */ setRecoveryNetwork(recoveryNetwork: NetworkConfig): void; /** * @return {NetworkConfig} */ getPrimaryTestNetwork(): NetworkConfig; /** * @param {NetworkConfig} primaryTestNetwork */ setPrimaryTestNetwork(primaryTestNetwork: NetworkConfig): void; primaryTestNetwork: NetworkConfig; /** * @return {NetworkConfig} */ getRecoveryTestNetwork(): NetworkConfig; /** * @param {NetworkConfig} recoveryTestNetwork */ setRecoveryTestNetwork(recoveryTestNetwork: NetworkConfig): void; recoveryTestNetwork: NetworkConfig; /** * Returns Indicates whether the static IPs of recovered VMs should be mapped according to the target network and configured inside the guest VMs. When specified as false, VMs may recover with any IP address allocated by the DHCP server corresponding to the target network. * @return {boolean} */ getIsIpMappingEnabled(): boolean; /** * Sets Indicates whether the static IPs of recovered VMs should be mapped according to the target network and configured inside the guest VMs. When specified as false, VMs may recover with any IP address allocated by the DHCP server corresponding to the target network. * @param {boolean} isIpMappingEnabled Indicates whether the static IPs of recovered VMs should be mapped according to the target network and configured inside the guest VMs. When specified as false, VMs may recover with any IP address allocated by the DHCP server corresponding to the target network. */ setIsIpMappingEnabled(isIpMappingEnabled: boolean): void; isIpMappingEnabled: boolean; #private; } import ExternalizableAbstractModel from "../../../common/v1/response/ExternalizableAbstractModel"; import NetworkConfig from "./NetworkConfig";