207 lines
6.6 KiB
C#
207 lines
6.6 KiB
C#
/*
|
||
* 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
|
||
{
|
||
|
||
/// <summary>
|
||
/// 任务id
|
||
/// </summary>
|
||
[JsonProperty("TaskId")]
|
||
public string TaskId{ get; set; }
|
||
|
||
/// <summary>
|
||
/// 主机id
|
||
/// </summary>
|
||
[JsonProperty("InstanceId")]
|
||
public string InstanceId{ get; set; }
|
||
|
||
/// <summary>
|
||
/// 主机别名
|
||
/// </summary>
|
||
[JsonProperty("Alias")]
|
||
public string Alias{ get; set; }
|
||
|
||
/// <summary>
|
||
/// 故障类型id
|
||
/// </summary>
|
||
[JsonProperty("TaskTypeId")]
|
||
public ulong? TaskTypeId{ get; set; }
|
||
|
||
/// <summary>
|
||
/// 任务状态id
|
||
/// </summary>
|
||
[JsonProperty("TaskStatus")]
|
||
public ulong? TaskStatus{ get; set; }
|
||
|
||
/// <summary>
|
||
/// 创建时间
|
||
/// </summary>
|
||
[JsonProperty("CreateTime")]
|
||
public string CreateTime{ get; set; }
|
||
|
||
/// <summary>
|
||
/// 授权时间
|
||
/// </summary>
|
||
[JsonProperty("AuthTime")]
|
||
public string AuthTime{ get; set; }
|
||
|
||
/// <summary>
|
||
/// 结束时间
|
||
/// </summary>
|
||
[JsonProperty("EndTime")]
|
||
public string EndTime{ get; set; }
|
||
|
||
/// <summary>
|
||
/// 任务详情
|
||
/// </summary>
|
||
[JsonProperty("TaskDetail")]
|
||
public string TaskDetail{ get; set; }
|
||
|
||
/// <summary>
|
||
/// 设备状态
|
||
/// </summary>
|
||
[JsonProperty("DeviceStatus")]
|
||
public ulong? DeviceStatus{ get; set; }
|
||
|
||
/// <summary>
|
||
/// 设备操作状态
|
||
/// </summary>
|
||
[JsonProperty("OperateStatus")]
|
||
public ulong? OperateStatus{ get; set; }
|
||
|
||
/// <summary>
|
||
/// 可用区
|
||
/// </summary>
|
||
[JsonProperty("Zone")]
|
||
public string Zone{ get; set; }
|
||
|
||
/// <summary>
|
||
/// 地域
|
||
/// </summary>
|
||
[JsonProperty("Region")]
|
||
public string Region{ get; set; }
|
||
|
||
/// <summary>
|
||
/// 所属网络
|
||
/// </summary>
|
||
[JsonProperty("VpcId")]
|
||
public string VpcId{ get; set; }
|
||
|
||
/// <summary>
|
||
/// 所在子网
|
||
/// </summary>
|
||
[JsonProperty("SubnetId")]
|
||
public string SubnetId{ get; set; }
|
||
|
||
/// <summary>
|
||
/// 子网名
|
||
/// </summary>
|
||
[JsonProperty("SubnetName")]
|
||
public string SubnetName{ get; set; }
|
||
|
||
/// <summary>
|
||
/// VPC名
|
||
/// </summary>
|
||
[JsonProperty("VpcName")]
|
||
public string VpcName{ get; set; }
|
||
|
||
/// <summary>
|
||
/// VpcCidrBlock
|
||
/// </summary>
|
||
[JsonProperty("VpcCidrBlock")]
|
||
public string VpcCidrBlock{ get; set; }
|
||
|
||
/// <summary>
|
||
/// SubnetCidrBlock
|
||
/// </summary>
|
||
[JsonProperty("SubnetCidrBlock")]
|
||
public string SubnetCidrBlock{ get; set; }
|
||
|
||
/// <summary>
|
||
/// 公网ip
|
||
/// </summary>
|
||
[JsonProperty("WanIp")]
|
||
public string WanIp{ get; set; }
|
||
|
||
/// <summary>
|
||
/// 内网IP
|
||
/// </summary>
|
||
[JsonProperty("LanIp")]
|
||
public string LanIp{ get; set; }
|
||
|
||
/// <summary>
|
||
/// 管理IP
|
||
/// </summary>
|
||
[JsonProperty("MgtIp")]
|
||
public string MgtIp{ get; set; }
|
||
|
||
/// <summary>
|
||
/// 故障类中文名
|
||
/// 注意:此字段可能返回 null,表示取不到有效值。
|
||
/// </summary>
|
||
[JsonProperty("TaskTypeName")]
|
||
public string TaskTypeName{ get; set; }
|
||
|
||
/// <summary>
|
||
/// 故障类型,取值:unconfirmed (不明确故障);redundancy (有冗余故障);nonredundancy (无冗余故障)
|
||
/// 注意:此字段可能返回 null,表示取不到有效值。
|
||
/// </summary>
|
||
[JsonProperty("TaskSubType")]
|
||
public string TaskSubType{ get; set; }
|
||
|
||
|
||
/// <summary>
|
||
/// For internal usage only. DO NOT USE IT.
|
||
/// </summary>
|
||
internal override void ToMap(Dictionary<string, string> 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);
|
||
}
|
||
}
|
||
}
|
||
|