2 Copyright 2020 TATA ELXSI
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
8 http://www.apache.org/licenses/LICENSE-2.0
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.
16 Author: KUMARAN M (kumaran.m@tataelxsi.co.in), RAJESH S (rajesh.s@tataelxsi.co.in), BARATH KUMAR R (barath.r@tataelxsi.co.in)
19 * @file Model for VimAccount Details related information.
21 import { NSInstanceDetails } from 'NSInstanceModel';
22 /** Interface for VimAccountDetails */
23 export interface VimAccountDetails {
25 'vim_tenant_name': string;
26 schema_version: string;
36 resources?: RESOURCES;
39 /** Interface for _ADMIN */
41 projects_write: string[];
43 operationalState: string;
45 projects_read: string[];
46 'detailed-status': string;
50 /** Interface for Deployed */
56 /** Interface for Config */
57 export interface CONFIG {
58 sdn_controller?: string;
59 use_floating_ip?: string;
61 sdn_port_mapping?: string;
62 vim_network_name?: string;
63 security_groups?: string;
64 availability_zone?: string;
67 use_existing_flavors?: string;
68 use_internal_endpoint?: string;
69 additional_conf?: string;
71 project_domain_id?: string;
72 project_domain_name?: string;
73 user_domain_id?: string;
74 user_domain_name?: string;
76 dataplane_physical_net?: string;
77 microversion?: string;
78 vpc_cidr_block?: string;
82 vcenter_port?: string;
83 admin_username?: string;
84 vcenter_user?: string;
85 admin_password?: string;
86 vcenter_password?: string;
91 nsx_password?: string;
92 vrops_password?: string;
93 subscription_id?: string;
94 resource_group?: string;
96 flavors_pattern?: string;
99 /** Interface for VIMData */
100 export interface VIMData {
104 operationalState: string;
107 instancesData?: NSInstanceDetails[];
108 resources?: RESOURCES;
110 /** Interface for VIMLOCATION */
111 export interface VIMLOCATION {
112 features: FEATURES[];
115 /** Interface for FEATURES */
116 export interface FEATURES {
119 properties: PROPERTIES;
121 /** Interface for GEOMETRY */
125 /** Interface for PROPERTIES */
126 interface PROPERTIES {
132 /** Interface for the RESOURCES */
133 export interface RESOURCES {
138 /** Interface for the RESOURCESDATA */
139 export interface RESOURCESDATA {
142 data: RESOURCESCHARTDATA[];
144 /** Interface for the RESOURCESCHARTDATA */
145 export interface RESOURCESCHARTDATA {
150 /** Interface common use for the Chart */
151 export interface CHARTDATA {
153 backgroundColor?: string[] | string;
154 hoverBackgroundColor?: string[] | string;
155 hoverBorderColor?: string[] | string;
157 /** Interface common use for the Chart */
158 export interface CHARTVALUES {
163 /** Interface for the CHARTRANGE */
164 export interface CHARTRANGE {
169 /** Interface for the COLOR */
170 export interface Color {
171 backgroundColor?: string[] | string;
172 borderColor?: string[] | string;
174 /** Constant Values for the resources titles */
175 export enum CONFIGRESOURCESTITLE {
177 instances = 'Instances',
179 snapshots = 'Volume Snapshots',
180 storage = 'Volume Storage',
182 floating_ips = 'Floating IPs',
183 security_group = 'Security Group',
185 networks = 'Networks',
190 /** constant values for color */
191 export enum RANGECOLOR {
193 nearlyfull = '#f0ad4e',