/** * The BasicAuth model module. * @module Ntnx/BasicAuth * @version 4.3.1 * @class BasicAuth * * @param { string } username Username for authentication */ export default class BasicAuth { /** * Constructs a BasicAuth 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/BasicAuth} obj Optional instance to populate. * @param callFromChild {Boolean} Flag to recognise calling instance * @return {module:Ntnx/BasicAuth} The populated BasicAuth 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 BasicAuth. * Basic authentication details using username and password * @alias module:Ntnx/BasicAuth * * @param { string } username Username for authentication */ constructor(username: string); username: string; $objectType: string; /** @type {object} */ $reserved: object; /** @type {object} */ $unknownFields: object; /** * Returns Username for authentication * @return {string} */ getUsername(): string; /** * Sets Username for authentication * @param {string} username Username for authentication */ setUsername(username: string): void; /** * Returns Password for authentication * @return {string} */ getPassword(): string; /** * Sets Password for authentication * @param {string} password Password for authentication */ setPassword(password: string): void; password: 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 ValidationError from "../../../validation/ValidationError";