Initial Commit - NG UI
[osm/NG-UI.git] / src / models / NetworkSliceModel.ts
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: KUMARAN M (kumaran.m@tataelxsi.co.in), RAJESH S (rajesh.s@tataelxsi.co.in), BARATH KUMAR R (barath.r@tataelxsi.co.in)
17  */
18 /**
19  * @file  Model for Network Slice Template related information.
20  */
21
22 /** Interface for MetricModel */
23 export interface NetworkSliceModel {
24     'netslice-subnet': NetsliceSubnet[];
25     id: string;
26     'SNSSAI-identifier': SNSSAIIdentifier;
27     'quality-of-service': QualityOfService;
28     name: string;
29     _id: string;
30     _admin: ADMIN;
31     'netslice-vld': NetsliceVld[];
32 }
33
34 /** Interface for NetsliceSubnet */
35 interface NetsliceSubnet {
36     description : string;
37     id: string;
38     'is-shared-nss': string;
39     'nsd-ref': string;
40 }
41
42 /** Interface for SNSSAIIdentifier */
43 interface SNSSAIIdentifier {
44     'slice-service-type': string;
45 }
46
47 /** Interface for SNSSAIIdentifier */
48 interface QualityOfService {
49     id: number;
50 }
51
52 /** Interface for Admin */
53 interface ADMIN {
54     operationalState: string;
55     created: string;
56     projects_write: string[];
57     projects_read: string[];
58     usageState: string;
59     modified: string;
60     onboardingState: string;
61     userDefinedData: {};
62     storage : Storage;
63 }
64
65 /** Interface for Storage */
66 interface Storage {
67     fs: string;
68     folder: string;
69     descriptor: string;
70     path: string;
71 }
72
73 /** Interface for NetsliceVld */
74 interface NetsliceVld {
75     name: string;
76     id: string;
77     'nss-connection-point-ref': NssConnectionPointRef[];
78     'mgmt-network': boolean;
79     // tslint:disable-next-line:no-reserved-keywords
80     type: string;
81 }
82
83 /** Interface for NssConnectionPointRef */
84 interface NssConnectionPointRef {
85     'nss-ref': string;
86     'nsd-connection-point-ref': string;
87 }
88
89 /** Interface for NetworkSliceData */
90 export interface NetworkSliceData {
91     name: string;
92     identifier: string;
93     usageState: string;
94 }
95
96 /** Interface for Network Slice instance Data */
97 export interface NSTInstanceDetails {
98     name: string;
99     id: string;
100     'nst-ref': string;
101     'operational-status': string;
102     'config-status': string;
103     'detailed-status': string;
104 }
105 /** interface for the Network Slice instance Data in datasource Table */
106 export interface NSTInstanceData {
107     name: string;
108     identifier: string;
109     NstName: string;
110     OperationalStatus: string;
111     ConfigStatus: string;
112     DetailedStatus: string;
113 }