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 // tslint:disable: completed-docs
22 import { NSInstanceDetails } from 'NSInstanceModel';
23 /** Interface for VimAccountDetails */
24 export interface VimAccountDetails {
26 'vim_tenant_name': string;
27 schema_version: string;
37 resources?: RESOURCES;
40 /** Interface for _ADMIN */
42 projects_write: string[];
44 operationalState: string;
46 projects_read: string[];
47 'detailed-status': string;
51 /** Interface for Deployed */
57 /** Interface for Config */
58 export interface CONFIG {
59 sdn_controller?: string;
60 use_floating_ip?: string;
62 sdn_port_mapping?: string;
63 vim_network_name?: string;
64 security_groups?: string;
65 availability_zone?: string;
68 use_existing_flavors?: string;
69 use_internal_endpoint?: string;
70 additional_conf?: string;
72 project_domain_id?: string;
73 project_domain_name?: string;
74 user_domain_id?: string;
75 user_domain_name?: string;
77 dataplane_physical_net?: string;
78 microversion?: string;
79 vpc_cidr_block?: string;
83 vcenter_port?: string;
84 admin_username?: string;
85 vcenter_user?: string;
86 admin_password?: string;
87 vcenter_password?: string;
92 nsx_password?: string;
93 vrops_password?: string;
94 subscription_id?: string;
95 resource_group?: string;
97 flavors_pattern?: string;
100 /** Interface for VIMData */
101 export interface VIMData {
105 operationalState: string;
108 instancesData?: NSInstanceDetails[];
109 resources?: RESOURCES;
111 /** Interface for VIMLOCATION */
112 export interface VIMLOCATION {
113 features: FEATURES[];
116 /** Interface for FEATURES */
117 export interface FEATURES {
120 properties: PROPERTIES;
122 /** Interface for GEOMETRY */
126 /** Interface for PROPERTIES */
127 interface PROPERTIES {
133 /** Interface for the RESOURCES */
134 export interface RESOURCES {
139 /** Interface for the RESOURCESDATA */
140 export interface RESOURCESDATA {
143 data: RESOURCESCHARTDATA[];
145 /** Interface for the RESOURCESCHARTDATA */
146 export interface RESOURCESCHARTDATA {
150 colorValues: Color[];
152 /** Interface common use for the Chart */
153 export interface CHARTVALUES {
158 /** Interface for the CHARTRANGE */
159 export interface CHARTRANGE {
164 /** Interface for the COLOR */
165 export interface Color {
166 backgroundColor?: string[] | string;
167 borderColor?: string[] | string;
169 /** Constant Values for the resources titles */
170 export enum CONFIGRESOURCESTITLE {
172 instances = 'Instances',
174 snapshots = 'Volume Snapshots',
175 storage = 'Volume Storage',
177 floating_ips = 'Floating IPs',
178 security_group = 'Security Group',
180 networks = 'Networks',
185 /** constant values for color */
186 export enum RANGECOLOR {
188 nearlyfull = '#f0ad4e',