/** * The ClientConfig model module. * @module Ntnx/ClientConfig * @version 4.3.1 * @class ClientConfig * * @param { string } name Name of the client configuration. * * @param { string } type Type of platform client. * @param { AhvClientConfig | EsxClientConfig } config * */ declare class ClientConfig { /** * Constructs a ClientConfig 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/ClientConfig} obj Optional instance to populate. * @param callFromChild {Boolean} Flag to recognise calling instance * @return {module:Ntnx/ClientConfig} The populated ClientConfig 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 ClientConfig. * Access configuration of the client used to access AHV or ESX clusters. * @alias module:Ntnx/ClientConfig * * @param { string } name Name of the client configuration. * * @param { string } type Type of platform client. * @param { AhvClientConfig | EsxClientConfig } config * */ constructor(name: string, type: string, config: AhvClientConfig | EsxClientConfig); name: string; type: string; config: AhvClientConfig | EsxClientConfig; $objectType: string; /** @type {object} */ $reserved: object; /** @type {object} */ $unknownFields: object; /** * Returns Name of the client configuration. * @return {string} */ getName(): string; /** * Sets Name of the client configuration. * @param {string} name Name of the client configuration. */ setName(name: string): void; /** * Returns Type of platform client. * @return {string} */ getType(): string; /** * Sets Type of platform client. * @param {string} type Type of platform client. */ setType(type: string): void; /** * @return {AhvClientConfig | EsxClientConfig} */ getConfig(): AhvClientConfig | EsxClientConfig; /** * @param {AhvClientConfig | EsxClientConfig} config */ setConfig(config: AhvClientConfig | EsxClientConfig): 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; } declare namespace ClientConfig { namespace TypeEnum { const AHV: string; const ESX: string; } /** * * */ type TypeEnum = string; } export default ClientConfig; import AhvClientConfig from "./AhvClientConfig"; import EsxClientConfig from "./EsxClientConfig"; import ValidationError from "../../../validation/ValidationError";