|
| 1 | +/* |
| 2 | + * TencentBlueKing is pleased to support the open source community by making 蓝鲸智云-DB管理系统(BlueKing-BK-DBM) available. |
| 3 | + * |
| 4 | + * Copyright (C) 2017-2023 THL A29 Limited; a Tencent company. All rights reserved. |
| 5 | + * |
| 6 | + * Licensed under the MIT License (the "License"); you may not use this file except in compliance with the License. |
| 7 | + * You may obtain a copy of the License at https://opensource.org/licenses/MIT |
| 8 | + * |
| 9 | + * Unless required by applicable law or agreed to in writing; software distributed under the License is distributed |
| 10 | + * on an "AS IS" BASIS; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND; either express or implied. See the License for |
| 11 | + * the specific language governing permissions and limitations under the License. |
| 12 | + */ |
| 13 | +export default class FaultOrRecycleMachine { |
| 14 | + agent_status: number; |
| 15 | + bk_biz_id: number; |
| 16 | + bk_cloud_id: number; |
| 17 | + bk_cpu: number; |
| 18 | + bk_disk: number; |
| 19 | + bk_host_id: number; |
| 20 | + bk_mem: number; |
| 21 | + city: string; |
| 22 | + create_at: string; |
| 23 | + creator: string; |
| 24 | + device_class: string; |
| 25 | + ip: string; |
| 26 | + os_name: string; |
| 27 | + pool: string; |
| 28 | + rack_id: string; |
| 29 | + sub_zone: string; |
| 30 | + ticket: string; |
| 31 | + update_at: string; |
| 32 | + updater: string; |
| 33 | + |
| 34 | + constructor(payload = {} as FaultOrRecycleMachine) { |
| 35 | + this.agent_status = payload.agent_status; |
| 36 | + this.bk_biz_id = payload.bk_biz_id; |
| 37 | + this.bk_cloud_id = payload.bk_cloud_id; |
| 38 | + this.bk_cpu = payload.bk_cpu; |
| 39 | + this.bk_disk = payload.bk_disk; |
| 40 | + this.bk_host_id = payload.bk_host_id; |
| 41 | + this.bk_mem = payload.bk_mem; |
| 42 | + this.city = payload.city; |
| 43 | + this.create_at = payload.create_at; |
| 44 | + this.creator = payload.creator; |
| 45 | + this.device_class = payload.device_class; |
| 46 | + this.ip = payload.ip; |
| 47 | + this.os_name = payload.os_name; |
| 48 | + this.pool = payload.pool; |
| 49 | + this.rack_id = payload.rack_id; |
| 50 | + this.sub_zone = payload.sub_zone; |
| 51 | + this.ticket = payload.ticket; |
| 52 | + this.update_at = payload.update_at; |
| 53 | + this.updater = payload.updater; |
| 54 | + } |
| 55 | +} |
0 commit comments