/** * The Config model module. * @module Ntnx/Config * @version 4.3.1 * @class Config * * @param { Number } numInstances * * @param { string } resourceConfigName This describes the name of the resource to be used. Actual spec is got from cluster resource configs field using this name. */ export default class Config { /** * Constructs a Config 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/Config} obj Optional instance to populate. * @param callFromChild {Boolean} Flag to recognise calling instance * @return {module:Ntnx/Config} The populated Config 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 Config. * @alias module:Ntnx/Config * * @param { Number } numInstances * * @param { string } resourceConfigName This describes the name of the resource to be used. Actual spec is got from cluster resource configs field using this name. */ constructor(numInstances: number, resourceConfigName: string); numInstances: number; resourceConfigName: string; $objectType: string; /** @type {object} */ $reserved: object; /** @type {object} */ $unknownFields: object; /** * minimum: 1 * maximum: 1024 * @return {Number} */ getNumInstances(): number; /** * @param {Number} numInstances */ setNumInstances(numInstances: number): void; /** * Returns This describes the name of the resource to be used. Actual spec is got from cluster resource configs field using this name. * @return {string} */ getResourceConfigName(): string; /** * Sets This describes the name of the resource to be used. Actual spec is got from cluster resource configs field using this name. * @param {string} resourceConfigName This describes the name of the resource to be used. Actual spec is got from cluster resource configs field using this name. */ setResourceConfigName(resourceConfigName: string): void; 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 ValidationError from "../../../validation/ValidationError";