/** * The ComponentDetails model module. * @module Ntnx/ComponentDetails * @version 4.3.1 * @class ComponentDetails */ export default class ComponentDetails { /** * Constructs a ComponentDetails 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/ComponentDetails} obj Optional instance to populate. * @param callFromChild {Boolean} Flag to recognise calling instance * @return {module:Ntnx/ComponentDetails} The populated ComponentDetails 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 Messages published by the component. * @return {string[]} */ getMessages(): string[]; /** * Sets Messages published by the component. * @param {string[]} messages Messages published by the component. */ setMessages(messages: string[]): void; messages: string[]; /** * Returns Error details if any. * @return {string} */ getErrorMessage(): string; /** * Sets Error details if any. * @param {string} errorMessage Error details if any. */ setErrorMessage(errorMessage: string): void; errorMessage: string; /** * Returns Time when the health is checked. * @return {Date} */ getTimestamp(): Date; /** * Sets Time when the health is checked. * @param {Date} timestamp Time when the health is checked. */ setTimestamp(timestamp: Date): void; timestamp: Date; /** * Returns Number of failures since the last success. * @return {Number} */ getNumFailures(): number; /** * Sets Number of failures since the last success. * @param {Number} numFailures Number of failures since the last success. */ setNumFailures(numFailures: number): void; numFailures: number; /** * Returns Time when the first health failure is seen. * @return {Date} */ getFirstFailureTime(): Date; /** * Sets Time when the first health failure is seen. * @param {Date} firstFailureTime Time when the first health failure is seen. */ setFirstFailureTime(firstFailureTime: Date): void; firstFailureTime: Date; 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";