/** * The APICallDetails model module. * @module Ntnx/APICallDetails * @version 4.3.1 * @class APICallDetails * * @param { string } endpoint Endpoint path to invoke. * * @param { string } host Host of the API endpoint. * * @param { Number } port Port of the API endpoint. */ export default class APICallDetails { /** * Constructs a APICallDetails 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/APICallDetails} obj Optional instance to populate. * @param callFromChild {Boolean} Flag to recognise calling instance * @return {module:Ntnx/APICallDetails} The populated APICallDetails 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 APICallDetails. * Details of a REST API call action. * @alias module:Ntnx/APICallDetails * * @param { string } endpoint Endpoint path to invoke. * * @param { string } host Host of the API endpoint. * * @param { Number } port Port of the API endpoint. */ constructor(endpoint: string, host: string, port: number); endpoint: string; host: string; port: number; $objectType: string; /** @type {object} */ $reserved: object; /** @type {object} */ $unknownFields: object; /** * Returns Endpoint path to invoke. * @return {string} */ getEndpoint(): string; /** * Sets Endpoint path to invoke. * @param {string} endpoint Endpoint path to invoke. */ setEndpoint(endpoint: string): void; /** * Returns Host of the API endpoint. * @return {string} */ getHost(): string; /** * Sets Host of the API endpoint. * @param {string} host Host of the API endpoint. */ setHost(host: string): void; /** * Returns Port of the API endpoint. * @return {Number} */ getPort(): number; /** * Sets Port of the API endpoint. * @param {Number} port Port of the API endpoint. */ setPort(port: number): void; /** * Returns Request body sent with the API call. * @return {string} */ getRequestBody(): string; /** * Sets Request body sent with the API call. * @param {string} requestBody Request body sent with the API call. */ setRequestBody(requestBody: string): void; requestBody: 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";