summaryrefslogtreecommitdiffstats
path: root/vid-webpack-master/src/app/shared/models/serviceInstance.ts
blob: 67b8806a8c950900cad499bc1089d6325acfcf83 (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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
import {VnfInstance} from "./vnfInstance";
import {NetworkInstance} from "./networkInstance";
import {NodeInstance} from "./nodeInstance";
import {VnfGroupInstance} from "./vnfGroupInstance";
import {VnfMember} from "./VnfMember";
import {VrfInstance} from "./vrfInstance";
import {VidNotions} from "./vidNotions";
import {PnfInstance} from "./pnfInstance";

export class ServiceInstance extends NodeInstance{
  isEcompGeneratedNaming: boolean;
  globalSubscriberId: string;
  productFamilyId: string;
  subscriptionServiceType: string;
  lcpCloudRegionId: string;
  tenantId: string;
  tenantName: string;
  aicZoneId: string;
  aicZoneName: string;
  projectName: string;
  owningEntityId: string;
  owningEntityName: string;
  latestAvailableVersion: Number;
  pause: boolean;
  bulkSize: number;
  vnfs: { [vnf_module_model_name: string]: VnfInstance; };
  pnfs: { [pnf_module_model_name: string]: PnfInstance; };
  vrfs: { [vrf_model_name: string]: VrfInstance; };
  vnfGroups : {[vnf_module_model_name: string]: VnfGroupInstance; };
  networks: { [vnf_module_model_name: string]: NetworkInstance; };
  isDirty : boolean;
  isUpgraded : boolean;
  instanceParams: {[key: string]: string}[];
  rollbackOnFailure: boolean;
  subscriberName: string;
  validationCounter: number;
  existingNames:  {[key: string] : any};
  modelInavariantId?: string;
  existingVNFCounterMap : { [vnf_module_model_name: string]: number; };
  existingPNFCounterMap : { [pnf_module_model_name: string]: number; };
  existingVRFCounterMap : { [vrf_module_model_name: string]: number; };
  existingVnfGroupCounterMap : { [vnf_group_module_model_name: string]: number; };
  existingNetworksCounterMap : { [network_module_model_name: string]: number; };
  optionalGroupMembersMap?: { [path: string]: VnfMember[]; };
  statusMessage: string;
  vidNotions?: VidNotions;
  upgradedVFMSonsCounter: number;

  constructor() {
    super();
    this.isDirty = false;
    this.vnfs = {};
    this.pnfs = {};
    this.vrfs = {};
    this.instanceParams = [];
    this.validationCounter = 0;
    this.existingNames = {};
    this.existingPNFCounterMap = {};
    this.existingVNFCounterMap = {};
    this.existingVRFCounterMap = {};
    this.existingVnfGroupCounterMap = {};
    this.existingNetworksCounterMap = {};
    this.optionalGroupMembersMap = {};
    this.networks = {};
    this.vnfGroups = {};
    this.bulkSize = 1;
    this.isUpgraded = false;
    this.upgradedVFMSonsCounter = 0;
  }
}