To apply the shared module into the database page
[dcaegen2/services.git] / components / datalake-handler / admin / src / src / app / core / models / db.model.ts
1 /*
2  * ============LICENSE_START=======================================================
3  * ONAP : DataLake
4  * ================================================================================
5  * Copyright 2019 - 2020 QCT
6  *=================================================================================
7  * Licensed under the Apache License, Version 2.0 (the "License");
8  * you may not use this file except in compliance with the License.
9  * You may obtain a copy of the License at
10  *
11  *     http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing, software
14  * distributed under the License is distributed on an "AS IS" BASIS,
15  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16  * See the License for the specific language governing permissions and
17  * limitations under the License.
18  * ============LICENSE_END=========================================================
19  */
20
21 /**
22  *
23  * @author Ekko Chang
24  *
25  */
26
27 export class Db {
28   public id: number;
29   public name: string;
30   public enabled: boolean;
31   public host: string;
32   public port: number;
33   public database: string;
34   public encrypt: boolean;
35   public login: string;
36   public pass: string;
37   public dbTypeId: string;
38   // for UI display
39   public checkedToSave: boolean;
40 }
41
42 export class DbType {
43   public id: string;
44   public name: string;
45   public defaultPort: number;
46   public tool: boolean;
47 }