/** * The Node model module. * @module Ntnx/Node * @version 4.3.1 * @class Node * @extends ExternalizableAbstractModel * * @param { string } manufacturer Manufacturer of the node * * @param { NodeIdentifier[] } identifiers Unique identifier array for the node (currently limited to 1 item with NODE_SERIAL type) */ export default class Node extends ExternalizableAbstractModel { /** * Constructs a new Node. * Details of a node managed by Foundation Central, including hardware, network, and lifecycle state * @alias module:Ntnx/Node * @extends module:Ntnx/ExternalizableAbstractModel * * @param { string } manufacturer Manufacturer of the node * * @param { NodeIdentifier[] } identifiers Unique identifier array for the node (currently limited to 1 item with NODE_SERIAL type) */ constructor(manufacturer: string, identifiers: NodeIdentifier[]); manufacturer: string; identifiers: NodeIdentifier[]; /** * Returns Manufacturer of the node * @return {string} */ getManufacturer(): string; /** * Sets Manufacturer of the node * @param {string} manufacturer Manufacturer of the node */ setManufacturer(manufacturer: string): void; /** * Returns Unique identifier array for the node (currently limited to 1 item with NODE_SERIAL type) * @return {NodeIdentifier[]} */ getIdentifiers(): NodeIdentifier[]; /** * Sets Unique identifier array for the node (currently limited to 1 item with NODE_SERIAL type) * @param {NodeIdentifier[]} identifiers Unique identifier array for the node (currently limited to 1 item with NODE_SERIAL type) */ setIdentifiers(identifiers: NodeIdentifier[]): void; /** * @return {HostType} */ getHostType(): HostType; /** * @param {HostType} hostType */ setHostType(hostType: HostType): void; hostType: string; /** * Returns Version of the host installed on the node * @return {string} */ getHostVersion(): string; /** * Sets Version of the host installed on the node * @param {string} hostVersion Version of the host installed on the node */ setHostVersion(hostVersion: string): void; hostVersion: string; /** * Returns Version of the AOS installed on the node * @return {string} */ getAosVersion(): string; /** * Sets Version of the AOS installed on the node * @param {string} aosVersion Version of the AOS installed on the node */ setAosVersion(aosVersion: string): void; aosVersion: string; /** * @return {NodeNetworkDetails} */ getNetworkDetails(): NodeNetworkDetails; /** * @param {NodeNetworkDetails} networkDetails */ setNetworkDetails(networkDetails: NodeNetworkDetails): void; networkDetails: NodeNetworkDetails; /** * Returns Time when the node was discovered in Foundation Central * @return {Date} */ getCreatedTime(): Date; /** * Sets Time when the node was discovered in Foundation Central * @param {Date} createdTime Time when the node was discovered in Foundation Central */ setCreatedTime(createdTime: Date): void; createdTime: Date; /** * @return {NodeState} */ getState(): NodeState; /** * @param {NodeState} state */ setState(state: NodeState): void; state: string; /** * Returns External ID of the provider of the node * @return {string} */ getProviderExtId(): string; /** * Sets External ID of the provider of the node * @param {string} providerExtId External ID of the provider of the node */ setProviderExtId(providerExtId: string): void; providerExtId: string; /** * Returns External ID of the provider connection of the node * @return {string} */ getProviderConnectionExtId(): string; /** * Sets External ID of the provider connection of the node * @param {string} providerConnectionExtId External ID of the provider connection of the node */ setProviderConnectionExtId(providerConnectionExtId: string): void; providerConnectionExtId: string; /** * @return {NodeConnectivityStatus} */ getHostConnectivityStatus(): NodeConnectivityStatus; /** * @param {NodeConnectivityStatus} hostConnectivityStatus */ setHostConnectivityStatus(hostConnectivityStatus: NodeConnectivityStatus): void; hostConnectivityStatus: string; /** * @return {NodeConnectivityStatus} */ getCvmConnectivityStatus(): NodeConnectivityStatus; /** * @param {NodeConnectivityStatus} cvmConnectivityStatus */ setCvmConnectivityStatus(cvmConnectivityStatus: NodeConnectivityStatus): void; cvmConnectivityStatus: string; /** * Returns Model of the node * @return {string} */ getModel(): string; /** * Sets Model of the node * @param {string} model Model of the node */ setModel(model: string): void; model: string; /** * @return {CpuInfo} */ getCpuInfo(): CpuInfo; /** * @param {CpuInfo} cpuInfo */ setCpuInfo(cpuInfo: CpuInfo): void; cpuInfo: CpuInfo; /** * Returns Total memory available in the node (in GB) * maximum: 1000000 * @return {Number} */ getMemoryGB(): number; /** * Sets Total memory available in the node (in GB) * @param {Number} memoryGB Total memory available in the node (in GB) */ setMemoryGB(memoryGB: number): void; memoryGB: number; /** * Returns User tags of the node * @return {string[]} */ getCustomAttributes(): string[]; /** * Sets User tags of the node * @param {string[]} customAttributes User tags of the node */ setCustomAttributes(customAttributes: string[]): void; customAttributes: string[]; /** * Returns External ID of the owner * @return {string} */ getOwnerExtId(): string; /** * Sets External ID of the owner * @param {string} ownerExtId External ID of the owner */ setOwnerExtId(ownerExtId: string): void; ownerExtId: string; /** * Returns Hostname of the node * @return {string} */ getHostname(): string; /** * Sets Hostname of the node * @param {string} hostname Hostname of the node */ setHostname(hostname: string): void; hostname: string; /** * Returns Block serial number of the node * @return {string} */ getBlockSerialNumber(): string; /** * Sets Block serial number of the node * @param {string} blockSerialNumber Block serial number of the node */ setBlockSerialNumber(blockSerialNumber: string): void; blockSerialNumber: string; /** * @return {ExtendedNodeProviderData} */ getProviderData(): ExtendedNodeProviderData; /** * @param {ExtendedNodeProviderData} providerData */ setProviderData(providerData: ExtendedNodeProviderData): void; providerData: ExtendedNodeProviderData; #private; } import ExternalizableAbstractModel from "../../../common/v1/response/ExternalizableAbstractModel"; import NodeIdentifier from "./NodeIdentifier"; import HostType from "./HostType"; import NodeNetworkDetails from "./NodeNetworkDetails"; import NodeState from "./NodeState"; import NodeConnectivityStatus from "./NodeConnectivityStatus"; import CpuInfo from "./CpuInfo"; import ExtendedNodeProviderData from "./ExtendedNodeProviderData";