/** * The PortRange model module. * @module Ntnx/PortRange * @version 4.4.1 * @class PortRange * * @param { Number } startPort Start port of TCP/UDP port range. * * @param { Number } endPort End port of TCP/UDP port range. */ export default class PortRange { /** * Constructs a PortRange 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/PortRange} obj Optional instance to populate. * @param callFromChild {Boolean} Flag to recognise calling instance * @return {module:Ntnx/PortRange} The populated PortRange 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 PortRange. * Range of TCP/UDP ports. * @alias module:Ntnx/PortRange * * @param { Number } startPort Start port of TCP/UDP port range. * * @param { Number } endPort End port of TCP/UDP port range. */ constructor(startPort: number, endPort: number); startPort: number; endPort: number; $objectType: string; /** @type {object} */ $reserved: object; /** @type {object} */ $unknownFields: object; /** * Returns Start port of TCP/UDP port range. * minimum: 0 * maximum: 65535 * @return {Number} */ getStartPort(): number; /** * Sets Start port of TCP/UDP port range. * @param {Number} startPort Start port of TCP/UDP port range. */ setStartPort(startPort: number): void; /** * Returns End port of TCP/UDP port range. * minimum: 0 * maximum: 65535 * @return {Number} */ getEndPort(): number; /** * Sets End port of TCP/UDP port range. * @param {Number} endPort End port of TCP/UDP port range. */ setEndPort(endPort: number): void; 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";