blob: baa79be15ec6a480ff6e6f2c115d64256e328988 [file] [log] [blame]
kumaran.m3b4814a2020-05-01 19:48:54 +05301/*
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 */
23export 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 */
35interface NetsliceSubnet {
36 description : string;
37 id: string;
38 'is-shared-nss': string;
39 'nsd-ref': string;
40}
41
42/** Interface for SNSSAIIdentifier */
43interface SNSSAIIdentifier {
44 'slice-service-type': string;
45}
46
47/** Interface for SNSSAIIdentifier */
48interface QualityOfService {
49 id: number;
50}
51
52/** Interface for Admin */
53interface 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 */
66interface Storage {
67 fs: string;
68 folder: string;
69 descriptor: string;
70 path: string;
71}
72
73/** Interface for NetsliceVld */
74interface NetsliceVld {
75 name: string;
76 id: string;
77 'nss-connection-point-ref': NssConnectionPointRef[];
78 'mgmt-network': boolean;
kumaran.m3b4814a2020-05-01 19:48:54 +053079 type: string;
80}
81
82/** Interface for NssConnectionPointRef */
83interface NssConnectionPointRef {
84 'nss-ref': string;
85 'nsd-connection-point-ref': string;
86}
87
88/** Interface for NetworkSliceData */
89export interface NetworkSliceData {
90 name: string;
91 identifier: string;
92 usageState: string;
93}
94
95/** Interface for Network Slice instance Data */
96export interface NSTInstanceDetails {
97 name: string;
98 id: string;
99 'nst-ref': string;
100 'operational-status': string;
101 'config-status': string;
102 'detailed-status': string;
103}
104/** interface for the Network Slice instance Data in datasource Table */
105export interface NSTInstanceData {
106 name: string;
107 identifier: string;
108 NstName: string;
109 OperationalStatus: string;
110 ConfigStatus: string;
111 DetailedStatus: string;
112}