aboutsummaryrefslogtreecommitdiffstats
path: root/vid-webpack-master/src/app/shared/models/vnfGroupModel.ts
diff options
context:
space:
mode:
Diffstat (limited to 'vid-webpack-master/src/app/shared/models/vnfGroupModel.ts')
-rw-r--r--vid-webpack-master/src/app/shared/models/vnfGroupModel.ts32
1 files changed, 32 insertions, 0 deletions
diff --git a/vid-webpack-master/src/app/shared/models/vnfGroupModel.ts b/vid-webpack-master/src/app/shared/models/vnfGroupModel.ts
new file mode 100644
index 000000000..5cff86cf0
--- /dev/null
+++ b/vid-webpack-master/src/app/shared/models/vnfGroupModel.ts
@@ -0,0 +1,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;
+ }
+ }
+}