/** * The DataCriteria model module. * @module Ntnx/DataCriteria * @version 4.1.1-beta-1 * @class DataCriteria */ export default class DataCriteria { /** * Constructs a DataCriteria 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/DataCriteria} obj Optional instance to populate. * @param callFromChild {Boolean} Flag to recognise calling instance * @return {module:Ntnx/DataCriteria} The populated DataCriteria 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 OData criteria that will be used to filter the returned data. * @return {string} */ getFilterCriteria(): string; /** * Sets OData criteria that will be used to filter the returned data. * @param {string} filterCriteria OData criteria that will be used to filter the returned data. */ setFilterCriteria(filterCriteria: string): void; filterCriteria: string; /** * Returns Entity Property based on which the result data is to be sorted. * @return {string} */ getSortColumn(): string; /** * Sets Entity Property based on which the result data is to be sorted. * @param {string} sortColumn Entity Property based on which the result data is to be sorted. */ setSortColumn(sortColumn: string): void; sortColumn: string; /** * @return {SortOrder} */ getSortOrder(): SortOrder; /** * @param {SortOrder} sortOrder */ setSortOrder(sortOrder: SortOrder): void; sortOrder: any; /** * Returns Limit on the maximum number of entities to be represented in the widget. * minimum: 0 * @return {Number} */ getLimit(): number; /** * Sets Limit on the maximum number of entities to be represented in the widget. * @param {Number} limit Limit on the maximum number of entities to be represented in the widget. */ setLimit(limit: number): void; limit: number; /** * @return {SortKey} */ getSortKey(): SortKey; /** * @param {SortKey} sortKey */ setSortKey(sortKey: SortKey): void; sortKey: string; /** * Returns Generic key value pair used for custom attributes. * @return {KVPair[]} */ getCustomParameters(): KVPair[]; /** * Sets Generic key value pair used for custom attributes. * @param {KVPair[]} customParameters Generic key value pair used for custom attributes. */ setCustomParameters(customParameters: KVPair[]): void; customParameters: KVPair[]; 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 SortKey from "./SortKey"; import KVPair from "../../../common/v1/config/KVPair"; import ValidationError from "../../../validation/ValidationError";