/** * The ApiLink model module. * @module Ntnx/ApiLink * @version 4.3.1 * @class ApiLink */ export default class ApiLink { /** * Constructs a ApiLink 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/ApiLink} obj Optional instance to populate. * @param callFromChild {Boolean} Flag to recognise calling instance * @return {module:Ntnx/ApiLink} The populated ApiLink 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 URL at which the entity described by the link can be accessed. * @return {string} */ getHref(): string; /** * Sets The URL at which the entity described by the link can be accessed. * @param {string} href The URL at which the entity described by the link can be accessed. */ setHref(href: string): void; href: string; /** * Returns A name that identifies the relationship of the link to the object that is returned by the URL. The unique value of \"self\" identifies the URL for the object. * @return {string} */ getRel(): string; /** * Sets A name that identifies the relationship of the link to the object that is returned by the URL. The unique value of \"self\" identifies the URL for the object. * @param {string} rel A name that identifies the relationship of the link to the object that is returned by the URL. The unique value of \"self\" identifies the URL for the object. */ setRel(rel: string): void; rel: 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";