/** * The Field model module. * @module Ntnx/Field * @version 4.1.1-beta-1 * @class Field * * @param { string } name Entity attribute/metric to be selected for the widget. */ export default class Field { /** * Constructs a Field 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/Field} obj Optional instance to populate. * @param callFromChild {Boolean} Flag to recognise calling instance * @return {module:Ntnx/Field} The populated Field 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 Field. * Description of a field in the view. Eg: CPU Usage in a VM data table. * @alias module:Ntnx/Field * * @param { string } name Entity attribute/metric to be selected for the widget. */ constructor(name: string); name: string; $objectType: string; /** @type {object} */ $reserved: object; /** @type {object} */ $unknownFields: object; /** * Returns Human-readable label for widget field. * @return {string} */ getLabel(): string; /** * Sets Human-readable label for widget field. * @param {string} label Human-readable label for widget field. */ setLabel(label: string): void; label: string; /** * Returns Entity attribute/metric to be selected for the widget. * @return {string} */ getName(): string; /** * Sets Entity attribute/metric to be selected for the widget. * @param {string} name Entity attribute/metric to be selected for the widget. */ setName(name: string): void; /** * @return {Operator} */ getAggregationOperator(): Operator; /** * @param {Operator} aggregationOperator */ setAggregationOperator(aggregationOperator: Operator): void; aggregationOperator: 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 Operator from "./Operator"; import ValidationError from "../../../validation/ValidationError";