/** * The EntityUpdateSpec model module. * @module Ntnx/EntityUpdateSpec * @version 4.3.1 * @class EntityUpdateSpec * * @param { string } entityUuid UUID of the LCM entity. * * @param { string } toVersion The target version that the entity will be upgraded to. */ export default class EntityUpdateSpec { /** * Constructs a EntityUpdateSpec 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/EntityUpdateSpec} obj Optional instance to populate. * @param callFromChild {Boolean} Flag to recognise calling instance * @return {module:Ntnx/EntityUpdateSpec} The populated EntityUpdateSpec 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 EntityUpdateSpec. * Specifies a single entity to upgrade and its target version. Used as the primary input element for prechecks (POST /$actions/prechecks), upgrades (POST /$actions/upgrade), recommendations (POST /$actions/compute-recommendations), and notifications (POST /$actions/compute-notifications). * @alias module:Ntnx/EntityUpdateSpec * * @param { string } entityUuid UUID of the LCM entity. * * @param { string } toVersion The target version that the entity will be upgraded to. */ constructor(entityUuid: string, toVersion: string); entityUuid: string; toVersion: string; $objectType: string; /** @type {object} */ $reserved: object; /** @type {object} */ $unknownFields: object; /** * Returns UUID of the LCM entity. * @return {string} */ getEntityUuid(): string; /** * Sets UUID of the LCM entity. * @param {string} entityUuid UUID of the LCM entity. */ setEntityUuid(entityUuid: string): void; /** * Returns The target version that the entity will be upgraded to. * @return {string} */ getToVersion(): string; /** * Sets The target version that the entity will be upgraded to. * @param {string} toVersion The target version that the entity will be upgraded to. */ setToVersion(toVersion: 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";