/** * The PodNetwork model module. * @module Ntnx/PodNetwork * @version 4.4.1 * @class PodNetwork * * @param { IPSubnet } cidr */ export default class PodNetwork { /** * Constructs a PodNetwork 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/PodNetwork} obj Optional instance to populate. * @param callFromChild {Boolean} Flag to recognise calling instance * @return {module:Ntnx/PodNetwork} The populated PodNetwork 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 PodNetwork. * Pod network of the Kubernetes cluster. * @alias module:Ntnx/PodNetwork * * @param { IPSubnet } cidr */ constructor(cidr: IPSubnet); cidr: IPSubnet; $objectType: string; /** @type {object} */ $reserved: object; /** @type {object} */ $unknownFields: object; /** * @return {IPSubnet} */ getCidr(): IPSubnet; /** * @param {IPSubnet} cidr */ setCidr(cidr: IPSubnet): void; /** * Returns Host slice of the pod network. This is the slice from the pod network CIDR that is allocated to each node. For example, if the pod network CIDR is 10.0.0.0/16 and the host slice is 24, then the pod network CIDR for node1 will be 10.0.0.0/24, for node2 will be 10.0.1.0/24, and so on. This field is required and must be between 8 and 32. The default value is 24. * minimum: 8 * maximum: 32 * @return {Number} */ getHostSlice(): number; /** * Sets Host slice of the pod network. This is the slice from the pod network CIDR that is allocated to each node. For example, if the pod network CIDR is 10.0.0.0/16 and the host slice is 24, then the pod network CIDR for node1 will be 10.0.0.0/24, for node2 will be 10.0.1.0/24, and so on. This field is required and must be between 8 and 32. The default value is 24. * @param {Number} hostSlice Host slice of the pod network. This is the slice from the pod network CIDR that is allocated to each node. For example, if the pod network CIDR is 10.0.0.0/16 and the host slice is 24, then the pod network CIDR for node1 will be 10.0.0.0/24, for node2 will be 10.0.1.0/24, and so on. This field is required and must be between 8 and 32. The default value is 24. */ setHostSlice(hostSlice: number): void; hostSlice: number; 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 IPSubnet from "./IPSubnet"; import ValidationError from "../../../validation/ValidationError";