blob: 38b4ac35d9e20c85766d00904c9368408b4c4b4d [file] [log] [blame]
Sonsino, Ofir (os0695)ff76b5e2018-07-10 15:57:37 +03001import {VnfInstance} from "./vnfInstance";
Ittay Stern6f900cc2018-08-29 17:01:32 +03002import {NetworkInstance} from "./networkInstance";
3import {NodeInstance} from "./nodeInstance";
4import {VnfGroupInstance} from "./vnfGroupInstance";
5import {VnfMember} from "./VnfMember";
Sonsino, Ofir (os0695)ff76b5e2018-07-10 15:57:37 +03006
Ittay Stern6f900cc2018-08-29 17:01:32 +03007export class ServiceInstance extends NodeInstance{
8 isEcompGeneratedNaming: boolean;
Sonsino, Ofir (os0695)ff76b5e2018-07-10 15:57:37 +03009 globalSubscriberId: string;
10 productFamilyId: string;
11 subscriptionServiceType: string;
12 lcpCloudRegionId: string;
13 tenantId: string;
14 tenantName: string;
15 aicZoneId: string;
16 aicZoneName: string;
17 projectName: string;
18 owningEntityId: string;
19 owningEntityName: string;
20 pause: boolean;
21 bulkSize: number;
Ittay Stern6f900cc2018-08-29 17:01:32 +030022 vnfs: { [vnf_module_model_name: string]: VnfInstance; };
23 vnfGroups : {[vnf_module_model_name: string]: VnfGroupInstance; };
24 networks: { [vnf_module_model_name: string]: NetworkInstance; };
25 isDirty : boolean;
26 instanceParams: {[key: string]: string}[];
27 rollbackOnFailure: boolean;
28 subscriberName: string;
29 validationCounter: number;
30 existingNames: {[key: string] : any};
31 modelInavariantId?: string;
32 existingVNFCounterMap : { [vnf_module_model_name: string]: number; };
33 existingVnfGroupCounterMap : { [vnf_group_module_model_name: string]: number; };
34 existingNetworksCounterMap : { [network_module_model_name: string]: number; };
35 optionalGroupMembersMap?: { [path: string]: VnfMember[]; };
36 isFailed: boolean;
37 statusMessage: string;
Sonsino, Ofir (os0695)ff76b5e2018-07-10 15:57:37 +030038
39 constructor() {
Ittay Stern6f900cc2018-08-29 17:01:32 +030040 super();
41 this.isDirty = false;
Sonsino, Ofir (os0695)ff76b5e2018-07-10 15:57:37 +030042 this.vnfs = {};
Ittay Stern6f900cc2018-08-29 17:01:32 +030043 this.instanceParams = [];
44 this.validationCounter = 0;
45 this.existingNames = {};
46 this.existingVNFCounterMap = {};
47 this.existingVnfGroupCounterMap = {};
48 this.existingNetworksCounterMap = {};
49 this.optionalGroupMembersMap = {};
50 this.networks = {};
51 this.vnfGroups = {};
52 this.bulkSize = 1;
Sonsino, Ofir (os0695)ff76b5e2018-07-10 15:57:37 +030053 }
Ittay Stern6f900cc2018-08-29 17:01:32 +030054
Sonsino, Ofir (os0695)ff76b5e2018-07-10 15:57:37 +030055}