/** * The UpgradeSpec model module. * @module Ntnx/UpgradeSpec * @version 4.3.1 * @class UpgradeSpec * @extends PrechecksSpec * * @param { EntityUpdateSpec[] } entityUpdateSpecs List of entity update specifications (entity UUID and target version pairs) for which to compute recommendations. */ export default class UpgradeSpec extends PrechecksSpec { /** * Returns List of automated system operations that LCM should perform during the upgrade to avoid precheck failures and restore state after the update completes. Allowed flags: - POWER_OFF_UVMS: Allows LCM to automatically power off user VMs that cannot be live-migrated to other hosts when a node enters maintenance mode, and power them back on when the update is done. - MIGRATE_POWERED_OFF_UVMS: Allows LCM to migrate powered-off VMs to other hosts in the cluster while entering maintenance mode during the upgrade. * @return {SystemAutoMgmtFlag[]} */ getAutoHandleFlags(): SystemAutoMgmtFlag[]; /** * Sets List of automated system operations that LCM should perform during the upgrade to avoid precheck failures and restore state after the update completes. Allowed flags: - POWER_OFF_UVMS: Allows LCM to automatically power off user VMs that cannot be live-migrated to other hosts when a node enters maintenance mode, and power them back on when the update is done. - MIGRATE_POWERED_OFF_UVMS: Allows LCM to migrate powered-off VMs to other hosts in the cluster while entering maintenance mode during the upgrade. * @param {SystemAutoMgmtFlag[]} autoHandleFlags List of automated system operations that LCM should perform during the upgrade to avoid precheck failures and restore state after the update completes. Allowed flags: - POWER_OFF_UVMS: Allows LCM to automatically power off user VMs that cannot be live-migrated to other hosts when a node enters maintenance mode, and power them back on when the update is done. - MIGRATE_POWERED_OFF_UVMS: Allows LCM to migrate powered-off VMs to other hosts in the cluster while entering maintenance mode during the upgrade. */ setAutoHandleFlags(autoHandleFlags: SystemAutoMgmtFlag[]): void; autoHandleFlags: string[]; /** * Returns Maximum number of seconds LCM waits for VMs to come up after a host exits maintenance mode following an upgrade. Must be between 60 and 86400 seconds (1 minute to 24 hours). * minimum: 60 * maximum: 86400 * @return {Number} */ getMaxWaitTimeInSecs(): number; /** * Sets Maximum number of seconds LCM waits for VMs to come up after a host exits maintenance mode following an upgrade. Must be between 60 and 86400 seconds (1 minute to 24 hours). * @param {Number} maxWaitTimeInSecs Maximum number of seconds LCM waits for VMs to come up after a host exits maintenance mode following an upgrade. Must be between 60 and 86400 seconds (1 minute to 24 hours). */ setMaxWaitTimeInSecs(maxWaitTimeInSecs: number): void; maxWaitTimeInSecs: number; #private; } import PrechecksSpec from "./PrechecksSpec"; import SystemAutoMgmtFlag from "./SystemAutoMgmtFlag";