/** * The TargetEntity model module. * @module Ntnx/TargetEntity * @version 4.3.1 * @class TargetEntity * @extends EntityBaseModel * * @param { string } version The target version that this entity has been selected to upgrade to. This field is set when an upgrade selection or upgrade operation has designated a specific version for this entity. Unset if no upgrade target has been chosen. */ export default class TargetEntity extends EntityBaseModel { /** * Constructs a new TargetEntity. * Identifies a specific entity for recommendation computation using its class, model, and desired target version. Optionally includes location information and device identifier for disambiguation when multiple instances of the same entity exist. * @alias module:Ntnx/TargetEntity * @extends module:Ntnx/EntityBaseModel * * @param { string } version The target version that this entity has been selected to upgrade to. This field is set when an upgrade selection or upgrade operation has designated a specific version for this entity. Unset if no upgrade target has been chosen. */ constructor(version: string); version: string; /** * Returns The target version that this entity has been selected to upgrade to. This field is set when an upgrade selection or upgrade operation has designated a specific version for this entity. Unset if no upgrade target has been chosen. * @return {string} */ getVersion(): string; /** * Sets The target version that this entity has been selected to upgrade to. This field is set when an upgrade selection or upgrade operation has designated a specific version for this entity. Unset if no upgrade target has been chosen. * @param {string} version The target version that this entity has been selected to upgrade to. This field is set when an upgrade selection or upgrade operation has designated a specific version for this entity. Unset if no upgrade target has been chosen. */ setVersion(version: string): void; /** * @return {LocationInfo} */ getLocationInfo(): LocationInfo; /** * @param {LocationInfo} locationInfo */ setLocationInfo(locationInfo: LocationInfo): void; locationInfo: LocationInfo; /** * Returns A unique device identifier for the entity, such as a hard drive serial number, NIC serial number, or other hardware-specific identifier. * @return {string} */ getDeviceId(): string; /** * Sets A unique device identifier for the entity, such as a hard drive serial number, NIC serial number, or other hardware-specific identifier. * @param {string} deviceId A unique device identifier for the entity, such as a hard drive serial number, NIC serial number, or other hardware-specific identifier. */ setDeviceId(deviceId: string): void; deviceId: string; #private; } import EntityBaseModel from "../common/EntityBaseModel"; import LocationInfo from "../common/LocationInfo";