/**
* The AppMessage model module.
* @module Ntnx/AppMessage
* @version 4.4.1
* @class AppMessage
*/
export default class AppMessage {
/**
* Constructs a AppMessage 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/AppMessage} obj Optional instance to populate.
* @param callFromChild {Boolean} Flag to recognise calling instance
* @return {module:Ntnx/AppMessage} The populated AppMessage 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 The message string.
* @return {string}
*/
getMessage(): string;
/**
* Sets The message string.
* @param {string} message The message string.
*/
setMessage(message: string): void;
message: string;
/**
* @return {MessageSeverity}
*/
getSeverity(): MessageSeverity;
/**
* @param {MessageSeverity} severity
*/
setSeverity(severity: MessageSeverity): void;
severity: string;
/**
* Returns The code associated with this message. This string is typically prefixed with the namespace to which the endpoint belongs. For example: VMM-40000
* @return {string}
*/
getCode(): string;
/**
* Sets The code associated with this message. This string is typically prefixed with the namespace to which the endpoint belongs. For example: VMM-40000
* @param {string} code The code associated with this message. This string is typically prefixed with the namespace to which the endpoint belongs. For example: VMM-40000
*/
setCode(code: string): void;
code: string;
/**
* Returns Locale for this message. The default locale would be 'en-US'.
* @return {string}
*/
getLocale(): string;
/**
* Sets Locale for this message. The default locale would be 'en-US'.
* @param {string} locale Locale for this message. The default locale would be 'en-US'.
*/
setLocale(locale: string): void;
locale: string;
/**
* Returns The error group associated with this message of severity ERROR.
* @return {string}
*/
getErrorGroup(): string;
/**
* Sets The error group associated with this message of severity ERROR.
* @param {string} errorGroup The error group associated with this message of severity ERROR.
*/
setErrorGroup(errorGroup: string): void;
errorGroup: string;
/**
* Returns The map of argument name to value.
* @return {Object}
*/
getArgumentsMap(): {
[x: string]: string;
};
/**
* Sets The map of argument name to value.
* @param {Object} argumentsMap The map of argument name to value.
*/
setArgumentsMap(argumentsMap: {
[x: string]: string;
}): void;
argumentsMap: {
[x: string]: string;
};
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 MessageSeverity from "../../../common/v1/config/MessageSeverity";
import ValidationError from "../../../validation/ValidationError";