Sonsino, Ofir (os0695) | ff76b5e | 2018-07-10 15:57:37 +0300 | [diff] [blame] | 1 | import {VfModule} from "./vfModule"; |
| 2 | import {VfModuleInstance} from "./vfModuleInstance"; |
| 3 | import {ServiceNodeTypes} from "./ServiceNodeTypes"; |
| 4 | |
| 5 | export class VfModuleTreeNode { |
| 6 | modelId: string; |
| 7 | name: string; |
| 8 | modelName: string; |
| 9 | type: string; |
| 10 | |
| 11 | constructor(vfModuleInstance: VfModuleInstance, vfModuleModel: VfModule, vfModuleModelName: string){ |
| 12 | this.name = vfModuleInstance.instanceName || vfModuleInstance.volumeGroupName || '<Automatically Assigned>'; |
| 13 | this.modelId = vfModuleModel.uuid; |
| 14 | this.modelName = vfModuleModelName; |
| 15 | this.type = ServiceNodeTypes.VFmodule; |
| 16 | } |
| 17 | } |