/** * The VmRecoverySetting model module. * @module Ntnx/VmRecoverySetting * @version 4.3.1 * @class VmRecoverySetting * * @param { EntityReference } vm */ export default class VmRecoverySetting { /** * Constructs a VmRecoverySetting from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. * @param {module:Ntnx/VmRecoverySetting} obj Optional instance to populate. * @param callFromChild {Boolean} Flag to recognise calling instance * @return {module:Ntnx/VmRecoverySetting} The populated VmRecoverySetting instance. */ static constructFromObject(data: any, obj?: any, callFromChild?: boolean): any; /** * Converts a given snake_case string to camelCase. * @param {string} snakeStr - The input string in snake_case format. * @returns {string} - The converted string in camelCase format. */ static snakeToCamel(snakeStr: string): string; /** * Constructs a new VmRecoverySetting. * Recovery configuration for VMs. * @alias module:Ntnx/VmRecoverySetting * * @param { EntityReference } vm */ constructor(vm: EntityReference); vm: EntityReference; $objectType: string; /** @type {object} */ $reserved: object; /** @type {object} */ $unknownFields: object; /** * @return {EntityReference} */ getVm(): EntityReference; /** * @param {EntityReference} vm */ setVm(vm: EntityReference): void; /** * @return {PowerState} */ getPowerState(): PowerState; /** * @param {PowerState} powerState */ setPowerState(powerState: PowerState): void; powerState: string; /** * @return {InGuestScriptExecutionConfig} */ getInGuestScriptExecutionConfig(): InGuestScriptExecutionConfig; /** * @param {InGuestScriptExecutionConfig} inGuestScriptExecutionConfig */ setInGuestScriptExecutionConfig(inGuestScriptExecutionConfig: InGuestScriptExecutionConfig): void; inGuestScriptExecutionConfig: InGuestScriptExecutionConfig; /** * Returns List of Volume Groups to be attached to the Virtual Machine (VM).
attachmentType(s) supported are `EXTERNAL`.
protocol(s) supported are `ISCSI` and `None`.
clientFeatures must be specified for mutual CHAP based iSCSI authentications. * @return {VolumeGroupAttachment[]} */ getVolumeGroupAttachments(): VolumeGroupAttachment[]; /** * Sets List of Volume Groups to be attached to the Virtual Machine (VM).
attachmentType(s) supported are `EXTERNAL`.
protocol(s) supported are `ISCSI` and `None`.
clientFeatures must be specified for mutual CHAP based iSCSI authentications. * @param {VolumeGroupAttachment[]} volumeGroupAttachments List of Volume Groups to be attached to the Virtual Machine (VM).
attachmentType(s) supported are `EXTERNAL`.
protocol(s) supported are `ISCSI` and `None`.
clientFeatures must be specified for mutual CHAP based iSCSI authentications. */ setVolumeGroupAttachments(volumeGroupAttachments: VolumeGroupAttachment[]): void; volumeGroupAttachments: VolumeGroupAttachment[]; /** * Returns List of static IP address mappings for the VM. In IP mappings, the prefixLength for an exact IP address should always be 32. IPv6 IP mapping and floating IP mapping is not supported. * @return {IpMapping[]} */ getIpMappings(): IpMapping[]; /** * Sets List of static IP address mappings for the VM. In IP mappings, the prefixLength for an exact IP address should always be 32. IPv6 IP mapping and floating IP mapping is not supported. * @param {IpMapping[]} ipMappings List of static IP address mappings for the VM. In IP mappings, the prefixLength for an exact IP address should always be 32. IPv6 IP mapping and floating IP mapping is not supported. */ setIpMappings(ipMappings: IpMapping[]): void; ipMappings: IpMapping[]; /** * Returns List of floating IP address associations. primaryFloatingIp and recoveryFloatingIp are the configurations for assigning floating IP to a VM after a failover or failback action on recovery plan. primaryTestFloatingIp and recoveryTestFloatingIp are the configurations for assigning floating IP to a VM after a failover or failback action on test network on recovery plan. * @return {FloatingIpAssociation[]} */ getFloatingIpAssociations(): FloatingIpAssociation[]; /** * Sets List of floating IP address associations. primaryFloatingIp and recoveryFloatingIp are the configurations for assigning floating IP to a VM after a failover or failback action on recovery plan. primaryTestFloatingIp and recoveryTestFloatingIp are the configurations for assigning floating IP to a VM after a failover or failback action on test network on recovery plan. * @param {FloatingIpAssociation[]} floatingIpAssociations List of floating IP address associations. primaryFloatingIp and recoveryFloatingIp are the configurations for assigning floating IP to a VM after a failover or failback action on recovery plan. primaryTestFloatingIp and recoveryTestFloatingIp are the configurations for assigning floating IP to a VM after a failover or failback action on test network on recovery plan. */ setFloatingIpAssociations(floatingIpAssociations: FloatingIpAssociation[]): void; floatingIpAssociations: FloatingIpAssociation[]; get$Reserved(): any; get$ObjectType(): string; get$UnknownFields(): any; toJson(forMutation: any): any; validate(scope: any, properties: any, ...args: any[]): Promise; validateProperty(scope: any, property: any): ValidationError; #private; } import EntityReference from "./EntityReference"; import PowerState from "./PowerState"; import InGuestScriptExecutionConfig from "./InGuestScriptExecutionConfig"; import VolumeGroupAttachment from "./VolumeGroupAttachment"; import IpMapping from "./IpMapping"; import FloatingIpAssociation from "./FloatingIpAssociation"; import ValidationError from "../../../validation/ValidationError";