Sonsino, Ofir (os0695) | ff76b5e | 2018-07-10 15:57:37 +0300 | [diff] [blame] | 1 | import {VnfInstance} from "./vnfInstance"; |
Ittay Stern | 6f900cc | 2018-08-29 17:01:32 +0300 | [diff] [blame] | 2 | import {NetworkInstance} from "./networkInstance"; |
| 3 | import {NodeInstance} from "./nodeInstance"; |
| 4 | import {VnfGroupInstance} from "./vnfGroupInstance"; |
| 5 | import {VnfMember} from "./VnfMember"; |
Ittay Stern | f792671 | 2019-07-07 19:23:03 +0300 | [diff] [blame] | 6 | import {VrfInstance} from "./vrfInstance"; |
| 7 | import {VidNotions} from "./vidNotions"; |
Mateusz Gołuchowski | 1b93f30 | 2020-10-07 12:06:13 +0200 | [diff] [blame] | 8 | import {PnfInstance} from "./pnfInstance"; |
Sonsino, Ofir (os0695) | ff76b5e | 2018-07-10 15:57:37 +0300 | [diff] [blame] | 9 | |
Ittay Stern | 6f900cc | 2018-08-29 17:01:32 +0300 | [diff] [blame] | 10 | export class ServiceInstance extends NodeInstance{ |
| 11 | isEcompGeneratedNaming: boolean; |
Sonsino, Ofir (os0695) | ff76b5e | 2018-07-10 15:57:37 +0300 | [diff] [blame] | 12 | globalSubscriberId: string; |
| 13 | productFamilyId: string; |
| 14 | subscriptionServiceType: string; |
| 15 | lcpCloudRegionId: string; |
| 16 | tenantId: string; |
| 17 | tenantName: string; |
| 18 | aicZoneId: string; |
| 19 | aicZoneName: string; |
| 20 | projectName: string; |
| 21 | owningEntityId: string; |
| 22 | owningEntityName: string; |
Einat Vinouze | e1f7974 | 2019-08-27 16:01:01 +0300 | [diff] [blame] | 23 | latestAvailableVersion: Number; |
Sonsino, Ofir (os0695) | ff76b5e | 2018-07-10 15:57:37 +0300 | [diff] [blame] | 24 | pause: boolean; |
| 25 | bulkSize: number; |
Ittay Stern | 6f900cc | 2018-08-29 17:01:32 +0300 | [diff] [blame] | 26 | vnfs: { [vnf_module_model_name: string]: VnfInstance; }; |
Mateusz Gołuchowski | d74f6cc | 2020-11-05 10:11:08 +0100 | [diff] [blame^] | 27 | pnfs: { [pnf_module_model_name: string]: PnfInstance; }; |
Ittay Stern | f792671 | 2019-07-07 19:23:03 +0300 | [diff] [blame] | 28 | vrfs: { [vrf_model_name: string]: VrfInstance; }; |
Ittay Stern | 6f900cc | 2018-08-29 17:01:32 +0300 | [diff] [blame] | 29 | vnfGroups : {[vnf_module_model_name: string]: VnfGroupInstance; }; |
| 30 | networks: { [vnf_module_model_name: string]: NetworkInstance; }; |
| 31 | isDirty : boolean; |
Einat Vinouze | e1f7974 | 2019-08-27 16:01:01 +0300 | [diff] [blame] | 32 | isUpgraded : boolean; |
Ittay Stern | 6f900cc | 2018-08-29 17:01:32 +0300 | [diff] [blame] | 33 | instanceParams: {[key: string]: string}[]; |
| 34 | rollbackOnFailure: boolean; |
| 35 | subscriberName: string; |
| 36 | validationCounter: number; |
| 37 | existingNames: {[key: string] : any}; |
| 38 | modelInavariantId?: string; |
| 39 | existingVNFCounterMap : { [vnf_module_model_name: string]: number; }; |
Mateusz Gołuchowski | d74f6cc | 2020-11-05 10:11:08 +0100 | [diff] [blame^] | 40 | existingPNFCounterMap : { [pnf_module_model_name: string]: number; }; |
Ittay Stern | f792671 | 2019-07-07 19:23:03 +0300 | [diff] [blame] | 41 | existingVRFCounterMap : { [vrf_module_model_name: string]: number; }; |
Ittay Stern | 6f900cc | 2018-08-29 17:01:32 +0300 | [diff] [blame] | 42 | existingVnfGroupCounterMap : { [vnf_group_module_model_name: string]: number; }; |
| 43 | existingNetworksCounterMap : { [network_module_model_name: string]: number; }; |
| 44 | optionalGroupMembersMap?: { [path: string]: VnfMember[]; }; |
Ittay Stern | 6f900cc | 2018-08-29 17:01:32 +0300 | [diff] [blame] | 45 | statusMessage: string; |
Ittay Stern | f792671 | 2019-07-07 19:23:03 +0300 | [diff] [blame] | 46 | vidNotions?: VidNotions; |
Einat Vinouze | e1f7974 | 2019-08-27 16:01:01 +0300 | [diff] [blame] | 47 | upgradedVFMSonsCounter: number; |
Sonsino, Ofir (os0695) | ff76b5e | 2018-07-10 15:57:37 +0300 | [diff] [blame] | 48 | |
| 49 | constructor() { |
Ittay Stern | 6f900cc | 2018-08-29 17:01:32 +0300 | [diff] [blame] | 50 | super(); |
| 51 | this.isDirty = false; |
Sonsino, Ofir (os0695) | ff76b5e | 2018-07-10 15:57:37 +0300 | [diff] [blame] | 52 | this.vnfs = {}; |
Mateusz Gołuchowski | 1b93f30 | 2020-10-07 12:06:13 +0200 | [diff] [blame] | 53 | this.pnfs = {}; |
Ittay Stern | f792671 | 2019-07-07 19:23:03 +0300 | [diff] [blame] | 54 | this.vrfs = {}; |
Ittay Stern | 6f900cc | 2018-08-29 17:01:32 +0300 | [diff] [blame] | 55 | this.instanceParams = []; |
| 56 | this.validationCounter = 0; |
| 57 | this.existingNames = {}; |
Mateusz Gołuchowski | 1b93f30 | 2020-10-07 12:06:13 +0200 | [diff] [blame] | 58 | this.existingPNFCounterMap = {}; |
Ittay Stern | 6f900cc | 2018-08-29 17:01:32 +0300 | [diff] [blame] | 59 | this.existingVNFCounterMap = {}; |
Ittay Stern | f792671 | 2019-07-07 19:23:03 +0300 | [diff] [blame] | 60 | this.existingVRFCounterMap = {}; |
Ittay Stern | 6f900cc | 2018-08-29 17:01:32 +0300 | [diff] [blame] | 61 | this.existingVnfGroupCounterMap = {}; |
| 62 | this.existingNetworksCounterMap = {}; |
| 63 | this.optionalGroupMembersMap = {}; |
| 64 | this.networks = {}; |
| 65 | this.vnfGroups = {}; |
| 66 | this.bulkSize = 1; |
Einat Vinouze | e1f7974 | 2019-08-27 16:01:01 +0300 | [diff] [blame] | 67 | this.isUpgraded = false; |
| 68 | this.upgradedVFMSonsCounter = 0; |
Sonsino, Ofir (os0695) | ff76b5e | 2018-07-10 15:57:37 +0300 | [diff] [blame] | 69 | } |
Sonsino, Ofir (os0695) | ff76b5e | 2018-07-10 15:57:37 +0300 | [diff] [blame] | 70 | } |