/** * The ApiResponseMetadata model module. * @module Ntnx/ApiResponseMetadata * @version 4.3.1 * @class ApiResponseMetadata */ export default class ApiResponseMetadata { /** * Constructs a ApiResponseMetadata 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/ApiResponseMetadata} obj Optional instance to populate. * @param callFromChild {Boolean} Flag to recognise calling instance * @return {module:Ntnx/ApiResponseMetadata} The populated ApiResponseMetadata 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 An array of flags that may indicate the status of the response. For example, a flag with the name 'isPaginated' and value 'false', indicates that the response is not paginated. * @return {Flag[]} */ getFlags(): Flag[]; /** * Sets An array of flags that may indicate the status of the response. For example, a flag with the name 'isPaginated' and value 'false', indicates that the response is not paginated. * @param {Flag[]} flags An array of flags that may indicate the status of the response. For example, a flag with the name 'isPaginated' and value 'false', indicates that the response is not paginated. */ setFlags(flags: Flag[]): void; flags: Flag[]; /** * Returns An array of HATEOAS style links for the response that may also include pagination links for list operations. * @return {ApiLink[]} */ getLinks(): ApiLink[]; /** * Sets An array of HATEOAS style links for the response that may also include pagination links for list operations. * @param {ApiLink[]} links An array of HATEOAS style links for the response that may also include pagination links for list operations. */ setLinks(links: ApiLink[]): void; links: ApiLink[]; /** * Returns The total number of entities that are available on the server for this type. * @return {Number} */ getTotalAvailableResults(): number; /** * Sets The total number of entities that are available on the server for this type. * @param {Number} totalAvailableResults The total number of entities that are available on the server for this type. */ setTotalAvailableResults(totalAvailableResults: number): void; totalAvailableResults: number; /** * Returns Information, Warning or Error messages that might provide additional contextual information related to the operation. * @return {Message[]} */ getMessages(): Message[]; /** * Sets Information, Warning or Error messages that might provide additional contextual information related to the operation. * @param {Message[]} messages Information, Warning or Error messages that might provide additional contextual information related to the operation. */ setMessages(messages: Message[]): void; messages: Message[]; /** * Returns An array of entity-specific metadata * @return {KVPair[]} */ getExtraInfo(): KVPair[]; /** * Sets An array of entity-specific metadata * @param {KVPair[]} extraInfo An array of entity-specific metadata */ setExtraInfo(extraInfo: KVPair[]): void; extraInfo: KVPair[]; 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 Flag from "../config/Flag"; import ApiLink from "./ApiLink"; import Message from "../config/Message"; import KVPair from "../config/KVPair"; import ValidationError from "../../../validation/ValidationError";