/** * The ClusterUpgradeInfo model module. * @module Ntnx/ClusterUpgradeInfo * @version 4.3.1 * @class ClusterUpgradeInfo * * @param { string } clusterExtId External identifier of the cluster. * * @param { string } currentVersion Current version of the cluster. * * @param { string[] } compatibleVersions List of compatible versions for the cluster. */ export default class ClusterUpgradeInfo { /** * Constructs a ClusterUpgradeInfo 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/ClusterUpgradeInfo} obj Optional instance to populate. * @param callFromChild {Boolean} Flag to recognise calling instance * @return {module:Ntnx/ClusterUpgradeInfo} The populated ClusterUpgradeInfo 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 ClusterUpgradeInfo. * Cluster upgrade information. * @alias module:Ntnx/ClusterUpgradeInfo * * @param { string } clusterExtId External identifier of the cluster. * * @param { string } currentVersion Current version of the cluster. * * @param { string[] } compatibleVersions List of compatible versions for the cluster. */ constructor(clusterExtId: string, currentVersion: string, compatibleVersions: string[]); clusterExtId: string; currentVersion: string; compatibleVersions: string[]; $objectType: string; /** @type {object} */ $reserved: object; /** @type {object} */ $unknownFields: object; /** * Returns External identifier of the cluster. * @return {string} */ getClusterExtId(): string; /** * Sets External identifier of the cluster. * @param {string} clusterExtId External identifier of the cluster. */ setClusterExtId(clusterExtId: string): void; /** * Returns Current version of the cluster. * @return {string} */ getCurrentVersion(): string; /** * Sets Current version of the cluster. * @param {string} currentVersion Current version of the cluster. */ setCurrentVersion(currentVersion: string): void; /** * Returns List of compatible versions for the cluster. * @return {string[]} */ getCompatibleVersions(): string[]; /** * Sets List of compatible versions for the cluster. * @param {string[]} compatibleVersions List of compatible versions for the cluster. */ setCompatibleVersions(compatibleVersions: string[]): void; 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 ValidationError from "../../../validation/ValidationError";