/**
* The NotificationsSpec model module.
* @module Ntnx/NotificationsSpec
* @version 4.3.1
* @class NotificationsSpec
*
* @param { EntityUpdateSpec[] } notificationsSpec The computed upgrade notification result containing notification items grouped by entity and location. Each item includes the entity details, notification type, severity, and descriptive messages about the upgrade impact.
*/
export default class NotificationsSpec {
/**
* Constructs a NotificationsSpec 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/NotificationsSpec} obj Optional instance to populate.
* @param callFromChild {Boolean} Flag to recognise calling instance
* @return {module:Ntnx/NotificationsSpec} The populated NotificationsSpec 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 NotificationsSpec.
* Specification for computing upgrade notifications. Contains the list of entity update specifications (entity UUID and target version pairs) describing the intended upgrade, along with optional credentials for third-party vendor management platforms.
* @alias module:Ntnx/NotificationsSpec
*
* @param { EntityUpdateSpec[] } notificationsSpec The computed upgrade notification result containing notification items grouped by entity and location. Each item includes the entity details, notification type, severity, and descriptive messages about the upgrade impact.
*/
constructor(notificationsSpec: EntityUpdateSpec[]);
notificationsSpec: EntityUpdateSpec[];
$objectType: string;
/** @type {object} */
$reserved: object;
/** @type {object} */
$unknownFields: object;
/**
* Returns The computed upgrade notification result containing notification items grouped by entity and location. Each item includes the entity details, notification type, severity, and descriptive messages about the upgrade impact.
* @return {EntityUpdateSpec[]}
*/
getNotificationsSpec(): EntityUpdateSpec[];
/**
* Sets The computed upgrade notification result containing notification items grouped by entity and location. Each item includes the entity details, notification type, severity, and descriptive messages about the upgrade impact.
* @param {EntityUpdateSpec[]} notificationsSpec The computed upgrade notification result containing notification items grouped by entity and location. Each item includes the entity details, notification type, severity, and descriptive messages about the upgrade impact.
*/
setNotificationsSpec(notificationsSpec: EntityUpdateSpec[]): void;
/**
* Returns Credentials to be provided by the user for LCM operations that require authentication with external systems such as vCenter or Intersight.
* @return {Credential[]}
*/
getCredentials(): Credential[];
/**
* Sets Credentials to be provided by the user for LCM operations that require authentication with external systems such as vCenter or Intersight.
* @param {Credential[]} credentials Credentials to be provided by the user for LCM operations that require authentication with external systems such as vCenter or Intersight.
*/
setCredentials(credentials: Credential[]): void;
credentials: Credential[];
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 "../common/EntityUpdateSpec";
import Credential from "../common/Credential";
import ValidationError from "../../../validation/ValidationError";