/**
* The PhysicalNetworkAdapterPort model module.
* @module Ntnx/PhysicalNetworkAdapterPort
* @version 4.3.1
* @class PhysicalNetworkAdapterPort
*
* @param { string } macAddress MAC address associated with this physical port
*
* @param { PhysicalNetworkAdaptorPortStatus } status
*
* @param { string } name Name of the physical port
*
* @param { Number } speedGbps Link speed of the physical port. 0 value indicates that the speed could not be determined
*
* @param { Number } position Position of the port on the physical network adapter
*/
export default class PhysicalNetworkAdapterPort {
/**
* Constructs a PhysicalNetworkAdapterPort 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/PhysicalNetworkAdapterPort} obj Optional instance to populate.
* @param callFromChild {Boolean} Flag to recognise calling instance
* @return {module:Ntnx/PhysicalNetworkAdapterPort} The populated PhysicalNetworkAdapterPort 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 PhysicalNetworkAdapterPort.
* Physical network adapter port of the discovered node
* @alias module:Ntnx/PhysicalNetworkAdapterPort
*
* @param { string } macAddress MAC address associated with this physical port
*
* @param { PhysicalNetworkAdaptorPortStatus } status
*
* @param { string } name Name of the physical port
*
* @param { Number } speedGbps Link speed of the physical port. 0 value indicates that the speed could not be determined
*
* @param { Number } position Position of the port on the physical network adapter
*/
constructor(macAddress: string, status: PhysicalNetworkAdaptorPortStatus, name: string, speedGbps: number, position: number);
macAddress: string;
status: string;
name: string;
speedGbps: number;
position: number;
$objectType: string;
/** @type {object} */
$reserved: object;
/** @type {object} */
$unknownFields: object;
/**
* Returns MAC address associated with this physical port
* @return {string}
*/
getMacAddress(): string;
/**
* Sets MAC address associated with this physical port
* @param {string} macAddress MAC address associated with this physical port
*/
setMacAddress(macAddress: string): void;
/**
* @return {PhysicalNetworkAdaptorPortStatus}
*/
getStatus(): PhysicalNetworkAdaptorPortStatus;
/**
* @param {PhysicalNetworkAdaptorPortStatus} status
*/
setStatus(status: PhysicalNetworkAdaptorPortStatus): void;
/**
* Returns Name of the physical port
* @return {string}
*/
getName(): string;
/**
* Sets Name of the physical port
* @param {string} name Name of the physical port
*/
setName(name: string): void;
/**
* Returns Link speed of the physical port. 0 value indicates that the speed could not be determined
* @return {Number}
*/
getSpeedGbps(): number;
/**
* Sets Link speed of the physical port. 0 value indicates that the speed could not be determined
* @param {Number} speedGbps Link speed of the physical port. 0 value indicates that the speed could not be determined
*/
setSpeedGbps(speedGbps: number): void;
/**
* Returns Position of the port on the physical network adapter
* minimum: 0
* maximum: 32
* @return {Number}
*/
getPosition(): number;
/**
* Sets Position of the port on the physical network adapter
* @param {Number} position Position of the port on the physical network adapter
*/
setPosition(position: 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 PhysicalNetworkAdaptorPortStatus from "./PhysicalNetworkAdaptorPortStatus";
import ValidationError from "../../../validation/ValidationError";