aboutsummaryrefslogtreecommitdiffstats
path: root/vid-webpack-master/src/app/shared/models/vfModuleTreeNode.ts
blob: d4cc7e9c7b77871e293dbb81987eb588e0a7abdf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import {VfModule} from "./vfModule";
import {VfModuleInstance} from "./vfModuleInstance";
import {ServiceNodeTypes} from "./ServiceNodeTypes";

export class VfModuleTreeNode {
  modelId: string;
  name: string;
  modelName: string;
  type: string;

  constructor(vfModuleInstance: VfModuleInstance, vfModuleModel: VfModule, vfModuleModelName: string){
    this.name = vfModuleInstance.instanceName || vfModuleInstance.volumeGroupName || '<Automatically Assigned>';
    this.modelId = vfModuleModel.uuid;
    this.modelName = vfModuleModelName;
    this.type = ServiceNodeTypes.VFmodule;
  }
}