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