X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=src%2Fmodels%2FCommonModel.ts;h=a3038f1c8ad3d6301152c1e0f28c729e4829c9a6;hb=refs%2Fheads%2Fmaster;hp=e3d44e23125ed1a4dc4ddf232b3fb139c2c1586f;hpb=3b4814aa2d3dec621dadb52f058ba95a3dc3a86a;p=osm%2FNG-UI.git diff --git a/src/models/CommonModel.ts b/src/models/CommonModel.ts index e3d44e2..a3038f1 100644 --- a/src/models/CommonModel.ts +++ b/src/models/CommonModel.ts @@ -16,10 +16,14 @@ Author: KUMARAN M (kumaran.m@tataelxsi.co.in), RAJESH S (rajesh.s@tataelxsi.co.in), BARATH KUMAR R (barath.r@tataelxsi.co.in) */ import { HttpHeaders } from '@angular/common/http'; +import { NSD } from 'NSInstanceModel'; +import { EXECUTEDACTIONS } from 'OperationalModel'; +import { VNFD } from 'VNFDModel'; /** * @file Model for Commonly used information. */ +/* eslint-disable */ /** * handle count @enum */ @@ -38,7 +42,9 @@ export enum CONSTANTNUMBER { oneMB = 1048576, paginationDefaultValue = 10, splitLongitude = 1, - splitLatitude = 2 + splitLatitude = 2, + timeOutDefaultSeconds = 5, + oneGB = 1024 } /** * handle count @enum @@ -47,6 +53,8 @@ export enum CONFIGCONSTANT { operationalStateFirstStep = 'init', operationalStateSecondStep = 'running', operationalStateThirdStep = 'failed', + operationalStateFourthStep = 'scaling', + operationalStateFifthStep = 'healing', configStateFirstStep = 'init', configStateSecondStep = 'configured', configStateThirdStep = 'failed', @@ -64,7 +72,13 @@ export enum CONFIGCONSTANT { sdnOperationalStateThirdStep = 'ERROR', k8OperationalStateFirstStep = 'PROCESSING', k8OperationalStateStateSecondStep = 'ENABLED', - k8OperationalStateThirdStep = 'ERROR' + k8OperationalStateThirdStep = 'ERROR', + done = 'done', + close = 'close', + userActive = 'active', + userLocked = 'locked', + userExpired = 'expired', + userAlwaysActive = 'always-active' } /** Interface for Post options */ export interface POSTAPIRESOURCE { @@ -107,17 +121,24 @@ export interface URLPARAMS { nsConfig?: object; projectID?: string; username?: string; + vnfID?: []; + nsID?: string; + nsd?: NSD; + data?: VNFD[]; + configs?: object; + actions?: object; + executedActions?: EXECUTEDACTIONS[]; } /** Handle the Delete params */ export interface DELETEPARAMS { identifier: string; name?: string; - shortName: string; projectName?: string; userName?: string; username?: string; page?: string; id?: string; + productName?: string; } /** Interface for the Delete Details */ @@ -150,6 +171,18 @@ export interface TARSETTINGS { 'type'?: string; readAsString?: Function; buffer: ArrayBuffer; + header_offset?: Number; + size?: number; + linkname?: string; + uname?: string; + gname?: string; +} +/** Interface for File Settings */ +export interface FILESETTINGS { + 'type'?: string; + linkname?: string; + owner?: string; + group?: string; } /** Interface for Package information */ export interface PACKAGEINFO { @@ -170,7 +203,6 @@ export interface BREADCRUMBITEM { } /** Interface For the Pagination pager in ng-smarttable */ export interface SMARTTABLECLASS { - // tslint:disable-next-line: no-reserved-keywords class: string; } /** Constants of the VIM Types */ @@ -180,7 +212,8 @@ export const VIM_TYPES: TYPESECTION[] = [ { value: 'vmware', title: 'VMware vCD' }, { value: 'openvim', title: 'OpenVIM' }, { value: 'opennebula', title: 'OpenNebula' }, - { value: 'azure', title: 'Azure' } + { value: 'azure', title: 'Azure' }, + { value: 'dummy', title: 'Dummy' } ]; /** Constants of the SDN Types */ export const SDN_TYPES: TYPESECTION[] = [ @@ -200,8 +233,123 @@ export const WIM_TYPES: TYPESECTION[] = [ { value: 'onos_vpls', title: 'ONOS vpls' }, { value: 'tapi', title: 'TAPI' } ]; +/** Constants of the OSM Repo Types */ +export const OSMREPO_TYPES: TYPESECTION[] = [ + { value: 'osm', title: 'OSM' } +]; /** Interface for List, Add WIM & SDN Types */ export interface TYPESECTION { value: string; title: string; } +/** Interface for PRIMITIVETYPES */ +export interface PRIMITIVETYPES { + title: string; + value: string; +} +/** Interface for the PRIMITIVEDATA */ +export interface PRIMITIVEDATA { + parameter: {}[]; +} +/** Constant for VIM type Openstack's Config */ +export const TYPEOPENSTACK: {} = { + sdn_controller: '', + APIversion: '', + sdn_port_mapping: '', + project_domain_id: '', + vim_network_name: '', + project_domain_name: '', + config_vim_ype: '', + user_domain_id: '', + security_groups: '', + user_domain_name: '', + availability_zone: '', + keypair: '', + region_name: '', + dataplane_physical_net: '', + insecure: '', + use_floating_ip: '', + use_internal_endpoint: '', + microversion: '', + additional_conf: '', + use_existing_flavors: '' +}; +/** Constant for VIM type AWS's Config */ +export const TYPEAWS: {} = { + sdn_controller: '', + vpc_cidr_block: '', + sdn_port_mapping: '', + security_groups: '', + vim_network_name: '', + keypair: '', + region_name: '', + flavor_info: '', + additional_conf: '' +}; +/** Constant for VIM type VMWARE's Config */ +export const TYPEVMWARE: {} = { + sdn_controller: '', + orgname: '', + sdn_port_mapping: '', + vcenter_ip: '', + vim_network_name: '', + admin_username: '', + admin_password: '', + vcenter_port: '', + vcenter_user: '', + vcenter_password: '', + nsx_manager: '', + nsx_user: '', + nsx_password: '', + vrops_site: '', + vrops_user: '', + vrops_password: '', + additional_conf: '' +}; +/** Constant for VIM type OPENVIMNEBULA's Config */ +export const TYPEOPENVIMNEBULA: {} = { + sdn_controller: '', + sdn_port_mapping: '', + vim_network_name: '', + additional_conf: '' +}; +/** Constant for VIM type AZURE's Config */ +export const TYPEAZURE: {} = { + subscription_id: '', + region_name: '', + resource_group: '', + vnet_name: '', + flavors_pattern: '' +}; +/** Constant for VIM other type Config */ +export const TYPEOTERS: {} = { + sdn_controller: '', + sdn_port_mapping: '', + vim_network_name: '', + use_floating_ip: '', + use_internal_endpoint: '', + additional_conf: '', + use_existing_flavors: '' +}; +/** Interface for Domains */ +export interface DOMAINS { + project_domain_name: string; + user_domain_name: string; +} +/** Interface for Login */ +export interface LOGINPARAMS { + username?: string; + password?: string; + old_password?: string; +} +/** Interface for the LABELVALUE */ +export interface LABELVALUE { + label: string; + value: string; +} +/** Interface for Login */ +export interface UNLOCKPARAMS { + system_admin_id?: string; + unlock?: boolean; + renew?: boolean; +}