/**
* The NicTarget model module.
* @module Ntnx/NicTarget
* @version 4.4.1
* @class NicTarget
*/
export default class NicTarget {
/**
* Constructs a NicTarget 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/NicTarget} obj Optional instance to populate.
* @param callFromChild {Boolean} Flag to recognise calling instance
* @return {module:Ntnx/NicTarget} The populated NicTarget 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;
$objectType: string;
/** @type {object} */
$reserved: object;
/** @type {object} */
$unknownFields: object;
/**
* Returns UUID of the virtual NIC of the load balancer session target.
* @return {string}
*/
getVirtualNicReference(): string;
/**
* Sets UUID of the virtual NIC of the load balancer session target.
* @param {string} virtualNicReference UUID of the virtual NIC of the load balancer session target.
*/
setVirtualNicReference(virtualNicReference: string): void;
virtualNicReference: string;
/**
* Returns Port value of the load balancer session target. If not specified, traffic is forwarded to the same port as listener's port. When listener port ranges are empty (listening on all ports 1-65535), target ports must not be specified.
* minimum: 1
* maximum: 65535
* @return {Number}
*/
getPort(): number;
/**
* Sets Port value of the load balancer session target. If not specified, traffic is forwarded to the same port as listener's port. When listener port ranges are empty (listening on all ports 1-65535), target ports must not be specified.
* @param {Number} port Port value of the load balancer session target. If not specified, traffic is forwarded to the same port as listener's port. When listener port ranges are empty (listening on all ports 1-65535), target ports must not be specified.
*/
setPort(port: number): void;
port: number;
/**
* Returns UUID of the VM of the load balancer session target.
* @return {string}
*/
getVmReference(): string;
/**
* Sets UUID of the VM of the load balancer session target.
* @param {string} vmReference UUID of the VM of the load balancer session target.
*/
setVmReference(vmReference: string): void;
vmReference: string;
/**
* @return {TargetHealth}
*/
getHealth(): TargetHealth;
/**
* @param {TargetHealth} health
*/
setHealth(health: TargetHealth): void;
health: 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 TargetHealth from "./TargetHealth";
import ValidationError from "../../../validation/ValidationError";