/** * The WidgetConfig model module. * @module Ntnx/WidgetConfig * @version 4.1.1-beta-1 * @class WidgetConfig * * @param { WidgetType } type * * @param { WidgetSize } size */ export default class WidgetConfig { /** * Constructs a WidgetConfig 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/WidgetConfig} obj Optional instance to populate. * @param callFromChild {Boolean} Flag to recognise calling instance * @return {module:Ntnx/WidgetConfig} The populated WidgetConfig 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 WidgetConfig. * Configuration of the widget. * @alias module:Ntnx/WidgetConfig * * @param { WidgetType } type * * @param { WidgetSize } size */ constructor(type: WidgetType, size: WidgetSize); type: string; size: string; $objectType: string; /** @type {object} */ $reserved: object; /** @type {object} */ $unknownFields: object; /** * @return {EntityType} */ getEntityType(): EntityType; /** * @param {EntityType} entityType */ setEntityType(entityType: EntityType): void; entityType: string; /** * Returns Heading for a widget. * @return {string} */ getHeading(): string; /** * Sets Heading for a widget. * @param {string} heading Heading for a widget. */ setHeading(heading: string): void; heading: string; /** * Returns Description of the widget. * @return {string} */ getDescription(): string; /** * Sets Description of the widget. * @param {string} description Description of the widget. */ setDescription(description: string): void; description: string; /** * Returns List of selected entity attributes/metrics for the widget. * @return {WidgetField[]} */ getFields(): WidgetField[]; /** * Sets List of selected entity attributes/metrics for the widget. * @param {WidgetField[]} fields List of selected entity attributes/metrics for the widget. */ setFields(fields: WidgetField[]): void; fields: WidgetField[]; /** * @return {WidgetType} */ getType(): WidgetType; /** * @param {WidgetType} type */ setType(type: WidgetType): void; /** * @return {WidgetSize} */ getSize(): WidgetSize; /** * @param {WidgetSize} size */ setSize(size: WidgetSize): void; /** * @return {RepeatCriteria} */ getRepeatCriteria(): RepeatCriteria; /** * @param {RepeatCriteria} repeatCriteria */ setRepeatCriteria(repeatCriteria: RepeatCriteria): void; repeatCriteria: RepeatCriteria; /** * @return {DataCriteria} */ getDataCriteria(): DataCriteria; /** * @param {DataCriteria} dataCriteria */ setDataCriteria(dataCriteria: DataCriteria): void; dataCriteria: DataCriteria; /** * @return {TimeFilter} */ getTimeFilter(): TimeFilter; /** * @param {TimeFilter} timeFilter */ setTimeFilter(timeFilter: TimeFilter): void; timeFilter: string; /** * Returns Widget type specific configurations. * @return {KVPair[]} */ getTypeSpecificConfigs(): KVPair[]; /** * Sets Widget type specific configurations. * @param {KVPair[]} typeSpecificConfigs Widget type specific configurations. */ setTypeSpecificConfigs(typeSpecificConfigs: KVPair[]): void; typeSpecificConfigs: KVPair[]; /** * Returns Identifier for a predefined widget. * @return {string} */ getWidgetId(): string; /** * Sets Identifier for a predefined widget. * @param {string} widgetId Identifier for a predefined widget. */ setWidgetId(widgetId: string): void; widgetId: 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 EntityType from "./EntityType"; import WidgetField from "./WidgetField"; import WidgetType from "./WidgetType"; import WidgetSize from "./WidgetSize"; import RepeatCriteria from "./RepeatCriteria"; import DataCriteria from "./DataCriteria"; import TimeFilter from "./TimeFilter"; import KVPair from "../../../common/v1/config/KVPair"; import ValidationError from "../../../validation/ValidationError";