/** * The PreloadSpec model module. * @module Ntnx/PreloadSpec * @version 4.3.1 * @class PreloadSpec * * @param { EntityUpdateSpec[] } entityUpdateSpecs List of entity update specifications (entity UUID and target version pairs) for which to compute recommendations. */ export default class PreloadSpec { /** * Constructs a PreloadSpec 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/PreloadSpec} obj Optional instance to populate. * @param callFromChild {Boolean} Flag to recognise calling instance * @return {module:Ntnx/PreloadSpec} The populated PreloadSpec 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 PreloadSpec. * Specification for preloading upgrade artifacts. Contains a list of entity update specifications identifying which entities' images to download to the cluster ahead of an upgrade. * @alias module:Ntnx/PreloadSpec * * @param { EntityUpdateSpec[] } entityUpdateSpecs List of entity update specifications (entity UUID and target version pairs) for which to compute recommendations. */ constructor(entityUpdateSpecs: EntityUpdateSpec[]); entityUpdateSpecs: EntityUpdateSpec[]; $objectType: string; /** @type {object} */ $reserved: object; /** @type {object} */ $unknownFields: object; /** * Returns List of entity update specifications (entity UUID and target version pairs) for which to compute recommendations. * @return {EntityUpdateSpec[]} */ getEntityUpdateSpecs(): EntityUpdateSpec[]; /** * Sets List of entity update specifications (entity UUID and target version pairs) for which to compute recommendations. * @param {EntityUpdateSpec[]} entityUpdateSpecs List of entity update specifications (entity UUID and target version pairs) for which to compute recommendations. */ setEntityUpdateSpecs(entityUpdateSpecs: EntityUpdateSpec[]): 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 EntityUpdateSpec from "./EntityUpdateSpec"; import ValidationError from "../../../validation/ValidationError";