/** * The FloatingIp model module. * @module Ntnx/FloatingIp * @version 4.3.1 * @class FloatingIp * * @param { boolean } shouldAllocateDynamically Indicates whether to dynamically allocate a new floating IP address. If specified as true, the floating IP will be allocated from available floating IP addresses in the specified locations. Otherwise, the floating IP address specified in `ipAddress` field will be assigned to the VM. */ export default class FloatingIp { /** * Constructs a FloatingIp 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/FloatingIp} obj Optional instance to populate. * @param callFromChild {Boolean} Flag to recognise calling instance * @return {module:Ntnx/FloatingIp} The populated FloatingIp 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 FloatingIp. * Floating IP configuration. * @alias module:Ntnx/FloatingIp * * @param { boolean } shouldAllocateDynamically Indicates whether to dynamically allocate a new floating IP address. If specified as true, the floating IP will be allocated from available floating IP addresses in the specified locations. Otherwise, the floating IP address specified in `ipAddress` field will be assigned to the VM. */ constructor(shouldAllocateDynamically: boolean); shouldAllocateDynamically: boolean; $objectType: string; /** @type {object} */ $reserved: object; /** @type {object} */ $unknownFields: object; /** * Returns Indicates whether to dynamically allocate a new floating IP address. If specified as true, the floating IP will be allocated from available floating IP addresses in the specified locations. Otherwise, the floating IP address specified in `ipAddress` field will be assigned to the VM. * @return {boolean} */ getShouldAllocateDynamically(): boolean; /** * Sets Indicates whether to dynamically allocate a new floating IP address. If specified as true, the floating IP will be allocated from available floating IP addresses in the specified locations. Otherwise, the floating IP address specified in `ipAddress` field will be assigned to the VM. * @param {boolean} shouldAllocateDynamically Indicates whether to dynamically allocate a new floating IP address. If specified as true, the floating IP will be allocated from available floating IP addresses in the specified locations. Otherwise, the floating IP address specified in `ipAddress` field will be assigned to the VM. */ setShouldAllocateDynamically(shouldAllocateDynamically: boolean): void; /** * @return {IPAddress} */ getIpAddress(): IPAddress; /** * @param {IPAddress} ipAddress */ setIpAddress(ipAddress: IPAddress): void; ipAddress: IPAddress; 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 IPAddress from "../../../common/v1/config/IPAddress"; import ValidationError from "../../../validation/ValidationError";