1 import {NodeModel, NodeModelResponseInterface} from "./nodeModel";
4 export interface properties{
6 maxCountInstances: number;
7 minCountInstances: number;
10 export interface VFModuleResponseInterface extends NodeModelResponseInterface {
11 customizationUuid: string;
12 modelCustomizationName: string;
13 properties: properties
16 export class VfModule extends NodeModel {
21 rollbackOnFailure:boolean;
23 customizationUuid: string;
24 modelCustomizationName: string;
26 constructor(vf?: VFModuleResponseInterface) {
29 this.customizationUuid = vf.customizationUuid;
30 this.modelCustomizationName = vf.modelCustomizationName;
32 if (vf && vf.properties) {
33 this.min = vf.properties.minCountInstances;
34 this.max = vf.properties.maxCountInstances;
35 this.initial = vf.properties.initialCount;
36 this.rollbackOnFailure = true