Fix Bug 2336: Manual Healing option in Ui
[osm/NG-UI.git] / src / models / NSInstanceModel.ts
index ce44122..ffa95a2 100644 (file)
@@ -18,7 +18,7 @@
 /**
  * @file  Model for NS Instance related information.
  */
-// tslint:disable: completed-docs
+/* eslint-disable */
 import { DF, VLD } from 'NSDModel';
 import { VNFDAdminDetails } from 'VNFDModel';
 
@@ -48,6 +48,9 @@ export interface NSInstanceDetails {
     instantiate_params: InstantiateParam;
     additionalParamsForNs: AdditionalParamForN;
     _id?: string;
+    vcaStatus?: object;
+    startTime?: string;
+    'create-time'?: string;
 }
 
 /** Interface for Admin */
@@ -66,7 +69,6 @@ interface ROAdmin {
 }
 
 /** Interface for _Admin */
-// tslint:disable-next-line:class-name
 interface _Admin {
     'projects_write': string[];
     deployed: DeployedAdmin;
@@ -113,7 +115,6 @@ export interface NSD {
 }
 
 /** Interface for _AdminDetails */
-// tslint:disable-next-line:class-name
 export interface _AdminDetails {
     usageState: string;
     projects_write: string[];
@@ -148,6 +149,87 @@ export interface NSDVLD {
     df: DF[];
 }
 
+/** Interface for Vm Migration */
+export interface VMMIGRATION {
+    lcmOperationType: string;
+    vnfInstanceId: string;
+    migrateToHost?: string;
+    vdu?: VDUPARAM;
+}
+
+/** Interface for vdu for Vm Migration */
+export interface VDUPARAM {
+    vduId?: string;
+    vduCountIndex?: string;
+}
+
+/** Interface for Ns Update */
+export interface NSUPDATE {
+    lcmOperationType: string;
+    updateType: string;
+    nsInstanceId: string;
+    changeVnfPackageData: CHANGEVNFDATA;
+}
+
+/** Interface for changeVnfPackageData in Ns Update */
+export interface CHANGEVNFDATA {
+    vnfdId: string;
+    vnfInstanceId: string;
+}
+
+/** Interface for terminate vnf in Ns Update */
+export interface TERMINATEVNF {
+    lcmOperationType: string;
+    updateType: string;
+    nsInstanceId: string;
+    removeVnfInstanceId: string;
+}
+
+/** Interface for Start, Stop & Rebuild */
+export interface StartStopRebuild {
+    updateType: string;
+    operateVnfData: OPERATEVNFDATA;
+}
+
+/** Interface for operateVnfData  in Start, Stop and Rebuild */
+export interface OPERATEVNFDATA {
+    additionalParam: ADDITIONALPARAMS;
+    vnfInstanceId: string;
+    changeStateTo: string;
+}
+
+/** Interface for additionalParam in Start, Stop and Rebuild */
+export interface ADDITIONALPARAMS {
+    'run-day1': boolean;
+    'vdu_id': string;
+    'count-index': string;
+}
+
+/** Interface for VerticalScaling */
+export interface VerticalScaling {
+    lcmOperationType: string;
+    verticalScale: string;
+    nsInstanceId: string;
+    changeVnfFlavorData: CHANGEVNFFLAVORDATAPARAM;
+}
+
+/** Interface for changeVnfFlavorData in Vertical Scaling */
+export interface CHANGEVNFFLAVORDATAPARAM {
+    vnfInstanceId: string;
+    additionalParams: ADDITIONALPARAM;
+
+}
+
+/** Interface for additionalParam in Vertical Scaling */
+export interface ADDITIONALPARAM {
+    vduid: string;
+    vduCountIndex: string;
+    virtualMemory: number;
+    sizeOfStorage: number;
+    numVirtualCpu: number;
+
+}
+
 /** Interface for InstantiateParam */
 interface InstantiateParam {
     nsdId: string;
@@ -179,27 +261,30 @@ export interface NSDInstanceData {
     state?: string;
     memberIndex?: DF[];
     nsConfig?: object;
+    vcaStatus?: object;
     adminDetails?: object;
     vnfID?: string[];
     nsd?: NSD;
     operationParams?: OPERATIONPARAMS;
     'nsd-id': string;
+    constituent: string[];
+    'create-time'?: string;
 }
 
 /** Interface for the operationparams */
-export interface OPERATIONPARAMS{
+export interface OPERATIONPARAMS {
     scaleType?: string;
     scaleVnfData?: SCALEVNFDATA;
 }
 
 /** Interface for the scaleVnfData */
-export interface SCALEVNFDATA{
+export interface SCALEVNFDATA {
     scaleVnfType?: string;
     scaleByStepData?: SCALEBYSTEPDATA;
 }
 
 /** Interface for the scaleByStepData */
-export interface SCALEBYSTEPDATA{
+export interface SCALEBYSTEPDATA {
     'scaling-group-descriptor'?: string;
     'member-vnf-index'?: string;
 }
@@ -293,7 +378,7 @@ export interface VLINFO {
 }
 
 /** Interface for the VNFR Info */
-export interface VNFRINFO{
+export interface VNFRINFO {
     vimID: string;
     _id: string;
     ip: string;
@@ -303,3 +388,18 @@ export interface VNFRINFO{
     vnfdId: string;
     memberIndex: string;
 }
+
+/** Interface for vdu mappings */
+export interface VDUMAP {
+    vdu_mappings?: VDUMAPPINGS[];
+}
+
+/** Interface for vdu Mappings */
+export interface VDUMAPPINGS {
+    vduId?: string;
+    'vdu-id'?: string;
+    countIndex?: string;
+    'count-index'?: string;
+    runDay1?: Boolean;
+    'run-day1'?: Boolean;
+}