/** * The SchemaValidationError model module. * @module Ntnx/SchemaValidationError * @version 4.3.1 * @class SchemaValidationError */ export default class SchemaValidationError { /** * Constructs a SchemaValidationError 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/SchemaValidationError} obj Optional instance to populate. * @param callFromChild {Boolean} Flag to recognise calling instance * @return {module:Ntnx/SchemaValidationError} The populated SchemaValidationError 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 Timestamp of the response. * @return {Date} */ getTimestamp(): Date; /** * Sets Timestamp of the response. * @param {Date} timestamp Timestamp of the response. */ setTimestamp(timestamp: Date): void; timestamp: Date; /** * Returns The HTTP status code of the response. * @return {Number} */ getStatusCode(): number; /** * Sets The HTTP status code of the response. * @param {Number} statusCode The HTTP status code of the response. */ setStatusCode(statusCode: number): void; statusCode: number; /** * Returns The generic error message for the response. * @return {string} */ getError(): string; /** * Sets The generic error message for the response. * @param {string} error The generic error message for the response. */ setError(error: string): void; error: string; /** * Returns API path on which the request was made. * @return {string} */ getPath(): string; /** * Sets API path on which the request was made. * @param {string} path API path on which the request was made. */ setPath(path: string): void; path: string; /** * Returns List of validation error messages * @return {SchemaValidationErrorMessage[]} */ getValidationErrorMessages(): SchemaValidationErrorMessage[]; /** * Sets List of validation error messages * @param {SchemaValidationErrorMessage[]} validationErrorMessages List of validation error messages */ setValidationErrorMessages(validationErrorMessages: SchemaValidationErrorMessage[]): void; validationErrorMessages: SchemaValidationErrorMessage[]; 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 SchemaValidationErrorMessage from "./SchemaValidationErrorMessage"; import ValidationError from "../../../validation/ValidationError";