/* * Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ namespace TencentCloud.Bm.V20180423.Models { using Newtonsoft.Json; using System.Collections.Generic; using TencentCloud.Common; public class TaskInfo : AbstractModel { /// /// 任务id /// [JsonProperty("TaskId")] public string TaskId{ get; set; } /// /// 主机id /// [JsonProperty("InstanceId")] public string InstanceId{ get; set; } /// /// 主机别名 /// [JsonProperty("Alias")] public string Alias{ get; set; } /// /// 故障类型id /// [JsonProperty("TaskTypeId")] public ulong? TaskTypeId{ get; set; } /// /// 任务状态id /// [JsonProperty("TaskStatus")] public ulong? TaskStatus{ get; set; } /// /// 创建时间 /// [JsonProperty("CreateTime")] public string CreateTime{ get; set; } /// /// 授权时间 /// [JsonProperty("AuthTime")] public string AuthTime{ get; set; } /// /// 结束时间 /// [JsonProperty("EndTime")] public string EndTime{ get; set; } /// /// 任务详情 /// [JsonProperty("TaskDetail")] public string TaskDetail{ get; set; } /// /// 设备状态 /// [JsonProperty("DeviceStatus")] public ulong? DeviceStatus{ get; set; } /// /// 设备操作状态 /// [JsonProperty("OperateStatus")] public ulong? OperateStatus{ get; set; } /// /// 可用区 /// [JsonProperty("Zone")] public string Zone{ get; set; } /// /// 地域 /// [JsonProperty("Region")] public string Region{ get; set; } /// /// 所属网络 /// [JsonProperty("VpcId")] public string VpcId{ get; set; } /// /// 所在子网 /// [JsonProperty("SubnetId")] public string SubnetId{ get; set; } /// /// 子网名 /// [JsonProperty("SubnetName")] public string SubnetName{ get; set; } /// /// VPC名 /// [JsonProperty("VpcName")] public string VpcName{ get; set; } /// /// VpcCidrBlock /// [JsonProperty("VpcCidrBlock")] public string VpcCidrBlock{ get; set; } /// /// SubnetCidrBlock /// [JsonProperty("SubnetCidrBlock")] public string SubnetCidrBlock{ get; set; } /// /// 公网ip /// [JsonProperty("WanIp")] public string WanIp{ get; set; } /// /// 内网IP /// [JsonProperty("LanIp")] public string LanIp{ get; set; } /// /// 管理IP /// [JsonProperty("MgtIp")] public string MgtIp{ get; set; } /// /// 故障类中文名 /// 注意:此字段可能返回 null,表示取不到有效值。 /// [JsonProperty("TaskTypeName")] public string TaskTypeName{ get; set; } /// /// 故障类型,取值:unconfirmed (不明确故障);redundancy (有冗余故障);nonredundancy (无冗余故障) /// 注意:此字段可能返回 null,表示取不到有效值。 /// [JsonProperty("TaskSubType")] public string TaskSubType{ get; set; } /// /// For internal usage only. DO NOT USE IT. /// internal override void ToMap(Dictionary map, string prefix) { this.SetParamSimple(map, prefix + "TaskId", this.TaskId); this.SetParamSimple(map, prefix + "InstanceId", this.InstanceId); this.SetParamSimple(map, prefix + "Alias", this.Alias); this.SetParamSimple(map, prefix + "TaskTypeId", this.TaskTypeId); this.SetParamSimple(map, prefix + "TaskStatus", this.TaskStatus); this.SetParamSimple(map, prefix + "CreateTime", this.CreateTime); this.SetParamSimple(map, prefix + "AuthTime", this.AuthTime); this.SetParamSimple(map, prefix + "EndTime", this.EndTime); this.SetParamSimple(map, prefix + "TaskDetail", this.TaskDetail); this.SetParamSimple(map, prefix + "DeviceStatus", this.DeviceStatus); this.SetParamSimple(map, prefix + "OperateStatus", this.OperateStatus); this.SetParamSimple(map, prefix + "Zone", this.Zone); this.SetParamSimple(map, prefix + "Region", this.Region); this.SetParamSimple(map, prefix + "VpcId", this.VpcId); this.SetParamSimple(map, prefix + "SubnetId", this.SubnetId); this.SetParamSimple(map, prefix + "SubnetName", this.SubnetName); this.SetParamSimple(map, prefix + "VpcName", this.VpcName); this.SetParamSimple(map, prefix + "VpcCidrBlock", this.VpcCidrBlock); this.SetParamSimple(map, prefix + "SubnetCidrBlock", this.SubnetCidrBlock); this.SetParamSimple(map, prefix + "WanIp", this.WanIp); this.SetParamSimple(map, prefix + "LanIp", this.LanIp); this.SetParamSimple(map, prefix + "MgtIp", this.MgtIp); this.SetParamSimple(map, prefix + "TaskTypeName", this.TaskTypeName); this.SetParamSimple(map, prefix + "TaskSubType", this.TaskSubType); } } }