/* * 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 DeviceInfo : AbstractModel { /// /// 设备唯一ID /// [JsonProperty("InstanceId")] public string InstanceId{ get; set; } /// /// 私有网络ID /// [JsonProperty("VpcId")] public string VpcId{ get; set; } /// /// 子网ID /// [JsonProperty("SubnetId")] public string SubnetId{ get; set; } /// /// 设备状态ID,取值:
  • 1:申领设备中
  • 2:初始化中
  • 4:运营中
  • 7:隔离中
  • 8:已隔离
  • 10:解隔离中
  • 16:故障中
  • ///
    [JsonProperty("DeviceStatus")] public ulong? DeviceStatus{ get; set; } /// /// 设备操作状态ID,取值: ///
  • 1:运行中
  • 2:正在关机
  • 3:已关机
  • 5:正在开机
  • 7:重启中
  • 9:重装中
  • 12:绑定EIP
  • 13:解绑EIP
  • 14:绑定LB
  • 15:解绑LB
  • 19:更换IP中
  • 20:制作镜像中
  • 21:制作镜像失败
  • ///
    [JsonProperty("OperateStatus")] public ulong? OperateStatus{ get; set; } /// /// 操作系统ID,参考接口[查询操作系统信息(DescribeOsInfo)](https://cloud.tencent.com/document/product/386/32902) /// [JsonProperty("OsTypeId")] public ulong? OsTypeId{ get; set; } /// /// RAID类型ID,参考接口[查询机型RAID方式以及系统盘大小(DescribeDeviceClassPartition)](https://cloud.tencent.com/document/product/386/32910) /// [JsonProperty("RaidId")] public ulong? RaidId{ get; set; } /// /// 设备别名 /// [JsonProperty("Alias")] public string Alias{ get; set; } /// /// AppId /// [JsonProperty("AppId")] public ulong? AppId{ get; set; } /// /// 可用区 /// [JsonProperty("Zone")] public string Zone{ get; set; } /// /// 外网IP /// [JsonProperty("WanIp")] public string WanIp{ get; set; } /// /// 内网IP /// [JsonProperty("LanIp")] public string LanIp{ get; set; } /// /// 设备交付时间 /// [JsonProperty("DeliverTime")] public string DeliverTime{ get; set; } /// /// 设备到期时间 /// [JsonProperty("Deadline")] public string Deadline{ get; set; } /// /// 自动续费标识。0: 不自动续费; 1:自动续费 /// [JsonProperty("AutoRenewFlag")] public ulong? AutoRenewFlag{ get; set; } /// /// 设备类型 /// [JsonProperty("DeviceClassCode")] public string DeviceClassCode{ get; set; } /// /// 标签列表 /// [JsonProperty("Tags")] public Tag[] Tags{ get; set; } /// /// 计费模式。1: 预付费; 2: 后付费; 3:预付费转后付费中 /// [JsonProperty("CpmPayMode")] public ulong? CpmPayMode{ get; set; } /// /// 带外IP /// [JsonProperty("DhcpIp")] public string DhcpIp{ get; set; } /// /// 所在私有网络别名 /// [JsonProperty("VpcName")] public string VpcName{ get; set; } /// /// 所在子网别名 /// [JsonProperty("SubnetName")] public string SubnetName{ get; set; } /// /// 所在私有网络CIDR /// [JsonProperty("VpcCidrBlock")] public string VpcCidrBlock{ get; set; } /// /// 所在子网CIDR /// [JsonProperty("SubnetCidrBlock")] public string SubnetCidrBlock{ get; set; } /// /// 标识是否是竞价实例。0: 普通设备; 1: 竞价实例设备 /// [JsonProperty("IsLuckyDevice")] public ulong? IsLuckyDevice{ get; set; } /// /// For internal usage only. DO NOT USE IT. /// internal override void ToMap(Dictionary map, string prefix) { this.SetParamSimple(map, prefix + "InstanceId", this.InstanceId); this.SetParamSimple(map, prefix + "VpcId", this.VpcId); this.SetParamSimple(map, prefix + "SubnetId", this.SubnetId); this.SetParamSimple(map, prefix + "DeviceStatus", this.DeviceStatus); this.SetParamSimple(map, prefix + "OperateStatus", this.OperateStatus); this.SetParamSimple(map, prefix + "OsTypeId", this.OsTypeId); this.SetParamSimple(map, prefix + "RaidId", this.RaidId); this.SetParamSimple(map, prefix + "Alias", this.Alias); this.SetParamSimple(map, prefix + "AppId", this.AppId); this.SetParamSimple(map, prefix + "Zone", this.Zone); this.SetParamSimple(map, prefix + "WanIp", this.WanIp); this.SetParamSimple(map, prefix + "LanIp", this.LanIp); this.SetParamSimple(map, prefix + "DeliverTime", this.DeliverTime); this.SetParamSimple(map, prefix + "Deadline", this.Deadline); this.SetParamSimple(map, prefix + "AutoRenewFlag", this.AutoRenewFlag); this.SetParamSimple(map, prefix + "DeviceClassCode", this.DeviceClassCode); this.SetParamArrayObj(map, prefix + "Tags.", this.Tags); this.SetParamSimple(map, prefix + "CpmPayMode", this.CpmPayMode); this.SetParamSimple(map, prefix + "DhcpIp", this.DhcpIp); this.SetParamSimple(map, prefix + "VpcName", this.VpcName); this.SetParamSimple(map, prefix + "SubnetName", this.SubnetName); this.SetParamSimple(map, prefix + "VpcCidrBlock", this.VpcCidrBlock); this.SetParamSimple(map, prefix + "SubnetCidrBlock", this.SubnetCidrBlock); this.SetParamSimple(map, prefix + "IsLuckyDevice", this.IsLuckyDevice); } } }