/** * The UpgradeSelection model module. * @module Ntnx/UpgradeSelection * @version 4.3.1 * @class UpgradeSelection * @extends ExternalizableAbstractModel * * @param { EntityUpdateSpec[] } selectedUpgrades The list of selected entity upgrades (entity UUID and target version pairs) that the user intends to perform. */ export default class UpgradeSelection extends ExternalizableAbstractModel { /** * Constructs a new UpgradeSelection. * Represents a saved set of entity upgrade selections for a cluster. Used in dark-site workflows to capture the intended upgrades, generate download helpers for obtaining required bundles, and track readiness status. * @alias module:Ntnx/UpgradeSelection * @extends module:Ntnx/ExternalizableAbstractModel * * @param { EntityUpdateSpec[] } selectedUpgrades The list of selected entity upgrades (entity UUID and target version pairs) that the user intends to perform. */ constructor(selectedUpgrades: EntityUpdateSpec[]); selectedUpgrades: EntityUpdateSpec[]; /** * Returns The list of selected entity upgrades (entity UUID and target version pairs) that the user intends to perform. * @return {EntityUpdateSpec[]} */ getSelectedUpgrades(): EntityUpdateSpec[]; /** * Sets The list of selected entity upgrades (entity UUID and target version pairs) that the user intends to perform. * @param {EntityUpdateSpec[]} selectedUpgrades The list of selected entity upgrades (entity UUID and target version pairs) that the user intends to perform. */ setSelectedUpgrades(selectedUpgrades: EntityUpdateSpec[]): void; /** * Returns The cluster UUID on which the resource is present or the operation is being performed. * @return {string} */ getClusterExtId(): string; /** * Sets The cluster UUID on which the resource is present or the operation is being performed. * @param {string} clusterExtId The cluster UUID on which the resource is present or the operation is being performed. */ setClusterExtId(clusterExtId: string): void; clusterExtId: string; /** * @return {UpgradeSelectionStatus} */ getStatus(): UpgradeSelectionStatus; /** * @param {UpgradeSelectionStatus} status */ setStatus(status: UpgradeSelectionStatus): void; status: string; #private; } import ExternalizableAbstractModel from "../../../common/v1/response/ExternalizableAbstractModel"; import EntityUpdateSpec from "../common/EntityUpdateSpec"; import UpgradeSelectionStatus from "./UpgradeSelectionStatus";