/** * The KeyBasedAuth model module. * @module Ntnx/KeyBasedAuth * @version 4.3.1 * @class KeyBasedAuth * * @param { string } apiKey Intersight connection API key. * * @param { string } secretKey Secret key of the Intersight connection. */ export default class KeyBasedAuth { /** * Constructs a KeyBasedAuth 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/KeyBasedAuth} obj Optional instance to populate. * @param callFromChild {Boolean} Flag to recognise calling instance * @return {module:Ntnx/KeyBasedAuth} The populated KeyBasedAuth 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 KeyBasedAuth. * Secret fields of a Key based Authencation credential. * @alias module:Ntnx/KeyBasedAuth * * @param { string } apiKey Intersight connection API key. * * @param { string } secretKey Secret key of the Intersight connection. */ constructor(apiKey: string, secretKey: string); apiKey: string; secretKey: string; $objectType: string; /** @type {object} */ $reserved: object; /** @type {object} */ $unknownFields: object; /** * Returns Intersight connection API key. * @return {string} */ getApiKey(): string; /** * Sets Intersight connection API key. * @param {string} apiKey Intersight connection API key. */ setApiKey(apiKey: string): void; /** * Returns Secret key of the Intersight connection. * @return {string} */ getSecretKey(): string; /** * Sets Secret key of the Intersight connection. * @param {string} secretKey Secret key of the Intersight connection. */ setSecretKey(secretKey: 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";