/** * The IPv4Subnet model module. * @module Ntnx/IPv4Subnet * @version 4.4.1 * @class IPv4Subnet * * @param { IPv4Address } ip * * @param { Number } prefixLength Prefix length of the IPv4 subnet. */ export default class IPv4Subnet { /** * Constructs a IPv4Subnet 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/IPv4Subnet} obj Optional instance to populate. * @param callFromChild {Boolean} Flag to recognise calling instance * @return {module:Ntnx/IPv4Subnet} The populated IPv4Subnet 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 IPv4Subnet. * IPv4 subnet. * @alias module:Ntnx/IPv4Subnet * * @param { IPv4Address } ip * * @param { Number } prefixLength Prefix length of the IPv4 subnet. */ constructor(ip: IPv4Address, prefixLength: number); ip: IPv4Address; prefixLength: number; $objectType: string; /** @type {object} */ $reserved: object; /** @type {object} */ $unknownFields: object; /** * @return {IPv4Address} */ getIp(): IPv4Address; /** * @param {IPv4Address} ip */ setIp(ip: IPv4Address): void; /** * Returns Prefix length of the IPv4 subnet. * minimum: 0 * maximum: 32 * @return {Number} */ getPrefixLength(): number; /** * Sets Prefix length of the IPv4 subnet. * @param {Number} prefixLength Prefix length of the IPv4 subnet. */ setPrefixLength(prefixLength: 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 IPv4Address from "../../../common/v1/config/IPv4Address"; import ValidationError from "../../../validation/ValidationError";