summaryrefslogtreecommitdiffstats
path: root/vid-webpack-master/src/app/shared/models/vnfGroupModel.ts
blob: 5cff86cf0e56a1556094622689b9bb8ac365d93c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
import {
  Level1Model,
  Level1ModelProperties,
  Level1ModelResponseInterface
} from "./nodeModel";
import {ServiceProxyModel} from "./serviceProxyModel";


export interface VnfGroupProperties extends Level1ModelProperties{
  ecomp_generated_naming: string;
  role?: string;
  type?: string;
  quantity?: number;
}

export interface VnfGroupModelResponseInterface extends Level1ModelResponseInterface{
  properties: VnfGroupProperties;
  members: {[key: string]: ServiceProxyModel};
}

export class VnfGroupModel extends Level1Model{
  properties: VnfGroupProperties;
  members: {[key: string]: ServiceProxyModel};

    constructor(vnfGoupJson?: VnfGroupModelResponseInterface) {
    super(vnfGoupJson);
    if (vnfGoupJson) {
      this.properties = vnfGoupJson.properties;
      this.members = vnfGoupJson.members;
    }
  }
}