/** * The AvailableVersion model module. * @module Ntnx/AvailableVersion * @version 4.3.1 * @class AvailableVersion */ export default class AvailableVersion { /** * Constructs a AvailableVersion 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/AvailableVersion} obj Optional instance to populate. * @param callFromChild {Boolean} Flag to recognise calling instance * @return {module:Ntnx/AvailableVersion} The populated AvailableVersion 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; $objectType: string; /** @type {object} */ $reserved: object; /** @type {object} */ $unknownFields: object; /** * Returns The latest LCM framework version available in the configured LCM repository URL. Compare with currentVersion to determine if a framework update is needed. * @return {string} */ getVersion(): string; /** * Sets The latest LCM framework version available in the configured LCM repository URL. Compare with currentVersion to determine if a framework update is needed. * @param {string} version The latest LCM framework version available in the configured LCM repository URL. Compare with currentVersion to determine if a framework update is needed. */ setVersion(version: string): void; version: string; /** * @return {AvailableVersionStatus} */ getStatus(): AvailableVersionStatus; /** * @param {AvailableVersionStatus} status */ setStatus(status: AvailableVersionStatus): void; status: string; /** * Returns Indicates whether this available version is enabled for upgrade. A version may be disabled if the cluster does not meet the requirements for the update. * @return {boolean} */ getIsEnabled(): boolean; /** * Sets Indicates whether this available version is enabled for upgrade. A version may be disabled if the cluster does not meet the requirements for the update. * @param {boolean} isEnabled Indicates whether this available version is enabled for upgrade. A version may be disabled if the cluster does not meet the requirements for the update. */ setIsEnabled(isEnabled: boolean): void; isEnabled: boolean; /** * Returns The UUID of the available version entry. * @return {string} */ getAvailableVersionUuid(): string; /** * Sets The UUID of the available version entry. * @param {string} availableVersionUuid The UUID of the available version entry. */ setAvailableVersionUuid(availableVersionUuid: string): void; availableVersionUuid: string; /** * Returns The display priority of this available version when multiple versions are present. Lower values indicate higher priority (1 = highest, up to 10000). Useful for ordering version options in a UI. * minimum: 1 * maximum: 10000 * @return {Number} */ getOrder(): number; /** * Sets The display priority of this available version when multiple versions are present. Lower values indicate higher priority (1 = highest, up to 10000). Useful for ordering version options in a UI. * @param {Number} order The display priority of this available version when multiple versions are present. Lower values indicate higher priority (1 = highest, up to 10000). Useful for ordering version options in a UI. */ setOrder(order: number): void; order: number; /** * Returns A human-readable explanation of why this available version is disabled. Only present when isEnabled is false. * @return {string} */ getDisablementReason(): string; /** * Sets A human-readable explanation of why this available version is disabled. Only present when isEnabled is false. * @param {string} disablementReason A human-readable explanation of why this available version is disabled. Only present when isEnabled is false. */ setDisablementReason(disablementReason: string): void; disablementReason: string; /** * Returns Release notes for this available version, describing the changes, fixes, and improvements included in the update. * @return {string} */ getReleaseNotes(): string; /** * Sets Release notes for this available version, describing the changes, fixes, and improvements included in the update. * @param {string} releaseNotes Release notes for this available version, describing the changes, fixes, and improvements included in the update. */ setReleaseNotes(releaseNotes: string): void; releaseNotes: string; /** * Returns The release date of this available version, in ISO 8601 date format. * @return {Date} */ getReleaseDate(): Date; /** * Sets The release date of this available version, in ISO 8601 date format. * @param {Date} releaseDate The release date of this available version, in ISO 8601 date format. */ setReleaseDate(releaseDate: Date): void; releaseDate: Date; /** * Returns A custom message from the vendor about this available version, separate from the release notes. May include advisory notices or special instructions. * @return {string} */ getCustomMessage(): string; /** * Sets A custom message from the vendor about this available version, separate from the release notes. May include advisory notices or special instructions. * @param {string} customMessage A custom message from the vendor about this available version, separate from the release notes. May include advisory notices or special instructions. */ setCustomMessage(customMessage: string): void; customMessage: string; /** * Returns Component information for payload-based entities. Lists the child entity identifiers that are bundled within this entity's upgrade payload. * @return {string[]} */ getChildEntities(): string[]; /** * Sets Component information for payload-based entities. Lists the child entity identifiers that are bundled within this entity's upgrade payload. * @param {string[]} childEntities Component information for payload-based entities. Lists the child entity identifiers that are bundled within this entity's upgrade payload. */ setChildEntities(childEntities: string[]): void; childEntities: string[]; /** * Returns UUID of the entity group that this entity belongs to. Entities in the same group are logically related and may share upgrade dependencies or ordering constraints. * @return {string} */ getGroupUuid(): string; /** * Sets UUID of the entity group that this entity belongs to. Entities in the same group are logically related and may share upgrade dependencies or ordering constraints. * @param {string} groupUuid UUID of the entity group that this entity belongs to. Entities in the same group are logically related and may share upgrade dependencies or ordering constraints. */ setGroupUuid(groupUuid: string): void; groupUuid: string; /** * Returns List of entity dependencies that must be satisfied before upgrading to this version. Each dependency identifies another entity and the version range it must be at. * @return {DependentEntity[]} */ getDependencies(): DependentEntity[]; /** * Sets List of entity dependencies that must be satisfied before upgrading to this version. Each dependency identifies another entity and the version range it must be at. * @param {DependentEntity[]} dependencies List of entity dependencies that must be satisfied before upgrading to this version. Each dependency identifies another entity and the version range it must be at. */ setDependencies(dependencies: DependentEntity[]): void; dependencies: DependentEntity[]; /** * Returns Indicates whether the upgrade image for this entity is already present on the cluster. When true, the upgrade can proceed without downloading. When false, images must be downloaded or preloaded (POST /$actions/preload-artifacts) before upgrading. * @return {boolean} */ getIsImagePresent(): boolean; /** * Sets Indicates whether the upgrade image for this entity is already present on the cluster. When true, the upgrade can proceed without downloading. When false, images must be downloaded or preloaded (POST /$actions/preload-artifacts) before upgrading. * @param {boolean} isImagePresent Indicates whether the upgrade image for this entity is already present on the cluster. When true, the upgrade can proceed without downloading. When false, images must be downloaded or preloaded (POST /$actions/preload-artifacts) before upgrading. */ setIsImagePresent(isImagePresent: boolean): void; isImagePresent: boolean; 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 AvailableVersionStatus from "../common/AvailableVersionStatus"; import DependentEntity from "./DependentEntity"; import ValidationError from "../../../validation/ValidationError";