| SANDHYA.JS | 07decc0 | 2024-07-01 21:50:48 +0530 | [diff] [blame] | 1 | /* |
| 2 | Copyright 2020 TATA ELXSI |
| 3 | |
| 4 | Licensed under the Apache License, Version 2.0 (the 'License'); |
| 5 | you may not use this file except in compliance with the License. |
| 6 | You may obtain a copy of the License at |
| 7 | |
| 8 | http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | |
| 10 | Unless required by applicable law or agreed to in writing, software |
| 11 | distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | See the License for the specific language governing permissions and |
| 14 | limitations under the License. |
| 15 | |
| 16 | Author: SANDHYA JS (sandhya.j@tataelxsi.co.in) |
| 17 | */ |
| 18 | /** |
| 19 | * @file Model for NS Config template related information. |
| 20 | */ |
| 21 | export interface NSCONFIG { |
| 22 | _admin: ADMINDETAILS; |
| 23 | _id: string; |
| 24 | vnf: ADDITIONAL[]; |
| 25 | nsdId: string; |
| 26 | name: string; |
| 27 | } |
| 28 | |
| 29 | export interface ADMINDETAILS { |
| 30 | created?: string; |
| 31 | modified?: string; |
| 32 | onboardingState?: string; |
| 33 | operationalState?: string; |
| 34 | projects_read?: string[]; |
| 35 | projects_write?: string[]; |
| 36 | } |
| 37 | |
| 38 | export interface ADDITIONAL { |
| 39 | vdu: PARAMS[]; |
| 40 | 'member-vnf-index'?: string; |
| 41 | } |
| 42 | |
| 43 | export interface PARAMS { |
| 44 | id?: string; |
| 45 | 'vim-flavor-id'?: string; |
| 46 | } |
| 47 | |
| 48 | /** Interface for VNFData */ |
| 49 | export interface NSConfigData { |
| 50 | nsdId?: string; |
| 51 | identifier?: string; |
| 52 | created?: string; |
| 53 | modified?: string; |
| 54 | onboardingState?: string; |
| 55 | operationalState?: string; |
| 56 | name?: string; |
| 57 | config?: {}; |
| 58 | vnf?: {}; |
| 59 | additionalParamsForVnf?: {}; |
| 60 | additionalParamsForNs?: {}; |
| 61 | vld?: {}; |
| 62 | } |