/** * The KVPair model module. * @module Ntnx/KVPair * @version 4.4.1 * @class KVPair */ export default class KVPair { /** * Constructs a KVPair 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/KVPair} obj Optional instance to populate. * @param callFromChild {Boolean} Flag to recognise calling instance * @return {module:Ntnx/KVPair} The populated KVPair 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 The key of the key-value pair. * @return {string} */ getName(): string; /** * Sets The key of the key-value pair. * @param {string} name The key of the key-value pair. */ setName(name: string): void; name: string; /** * Returns The value associated with the key for this key-value pair * @return {string | Number | boolean | string[] | Object | MapOfStringWrapper[] | integer[]} */ getValue(): string | number | boolean | string[] | { [x: string]: string; } | MapOfStringWrapper[] | integer[]; /** * Sets The value associated with the key for this key-value pair * @param {string | Number | boolean | string[] | Object | MapOfStringWrapper[] | integer[]} value The value associated with the key for this key-value pair */ setValue(value: string | number | boolean | string[] | { [x: string]: string; } | MapOfStringWrapper[] | integer[]): void; value: string | number | boolean | string[] | MapOfStringWrapper[] | integer[] | { [x: string]: 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 MapOfStringWrapper from "./MapOfStringWrapper"; import ValidationError from "../../../validation/ValidationError";