blob: eda0b924891a0eb570d6dbe0efae2873dd443db5 [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;
79 // tslint:disable-next-line:no-reserved-keywords
80 type: string;
81}
82
83/** Interface for NssConnectionPointRef */
84interface NssConnectionPointRef {
85 'nss-ref': string;
86 'nsd-connection-point-ref': string;
87}
88
89/** Interface for NetworkSliceData */
90export interface NetworkSliceData {
91 name: string;
92 identifier: string;
93 usageState: string;
94}
95
96/** Interface for Network Slice instance Data */
97export 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 */
106export interface NSTInstanceData {
107 name: string;
108 identifier: string;
109 NstName: string;
110 OperationalStatus: string;
111 ConfigStatus: string;
112 DetailedStatus: string;
113}