/* * 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.Iotvideo.V20191126.Models { using Newtonsoft.Json; using System.Collections.Generic; using TencentCloud.Common; public class VersionData : AbstractModel { /// /// 产品ID /// 注意:此字段可能返回 null,表示取不到有效值。 /// [JsonProperty("ProductId")] public string ProductId{ get; set; } /// /// 固件版本号 /// 注意:此字段可能返回 null,表示取不到有效值。 /// [JsonProperty("OtaVersion")] public string OtaVersion{ get; set; } /// /// 版本类型 1未发布 2测试发布 3正式发布 4禁用 /// 注意:此字段可能返回 null,表示取不到有效值。 /// [JsonProperty("PubStatus")] public ulong? PubStatus{ get; set; } /// /// 固件版本存储路径URL /// 注意:此字段可能返回 null,表示取不到有效值。 /// [JsonProperty("VersionUrl")] public string VersionUrl{ get; set; } /// /// 文件大小,byte /// 注意:此字段可能返回 null,表示取不到有效值。 /// [JsonProperty("FileSize")] public ulong? FileSize{ get; set; } /// /// 文件校验码 /// 注意:此字段可能返回 null,表示取不到有效值。 /// [JsonProperty("Md5")] public string Md5{ get; set; } /// /// 指定的允许升级的旧版本,PubStatus=3时有效 /// 注意:此字段可能返回 null,表示取不到有效值。 /// [JsonProperty("OldVersions")] public string OldVersions{ get; set; } /// /// 指定的允许升级的旧设备id,PubStatus=2时有效 /// 注意:此字段可能返回 null,表示取不到有效值。 /// [JsonProperty("Tids")] public string Tids{ get; set; } /// /// 灰度值(0-100),PubStatus=3时有效,表示n%的升级总量 /// 注意:此字段可能返回 null,表示取不到有效值。 /// [JsonProperty("GrayValue")] public ulong? GrayValue{ get; set; } /// /// 最近一次发布时间,UNIX时间戳,单位秒 /// 注意:此字段可能返回 null,表示取不到有效值。 /// [JsonProperty("PublishTime")] public ulong? PublishTime{ get; set; } /// /// 此版本激活的设备总数 /// 注意:此字段可能返回 null,表示取不到有效值。 /// [JsonProperty("ActiveCount")] public long? ActiveCount{ get; set; } /// /// 此版本在线的设备总数 /// 注意:此字段可能返回 null,表示取不到有效值。 /// [JsonProperty("OnlineCount")] public long? OnlineCount{ get; set; } /// /// 上传固件文件的时间,UNIX时间戳,单位秒 /// 注意:此字段可能返回 null,表示取不到有效值。 /// [JsonProperty("UpdateTime")] public ulong? UpdateTime{ get; set; } /// /// 发布记录的最后变更时间,UNIX时间戳,单位秒 /// 注意:此字段可能返回 null,表示取不到有效值。 /// [JsonProperty("UploadTime")] public ulong? UploadTime{ get; set; } /// /// 该固件版本发布的变更次数 /// 注意:此字段可能返回 null,表示取不到有效值。 /// [JsonProperty("ModifyTimes")] public ulong? ModifyTimes{ get; set; } /// /// For internal usage only. DO NOT USE IT. /// internal override void ToMap(Dictionary map, string prefix) { this.SetParamSimple(map, prefix + "ProductId", this.ProductId); this.SetParamSimple(map, prefix + "OtaVersion", this.OtaVersion); this.SetParamSimple(map, prefix + "PubStatus", this.PubStatus); this.SetParamSimple(map, prefix + "VersionUrl", this.VersionUrl); this.SetParamSimple(map, prefix + "FileSize", this.FileSize); this.SetParamSimple(map, prefix + "Md5", this.Md5); this.SetParamSimple(map, prefix + "OldVersions", this.OldVersions); this.SetParamSimple(map, prefix + "Tids", this.Tids); this.SetParamSimple(map, prefix + "GrayValue", this.GrayValue); this.SetParamSimple(map, prefix + "PublishTime", this.PublishTime); this.SetParamSimple(map, prefix + "ActiveCount", this.ActiveCount); this.SetParamSimple(map, prefix + "OnlineCount", this.OnlineCount); this.SetParamSimple(map, prefix + "UpdateTime", this.UpdateTime); this.SetParamSimple(map, prefix + "UploadTime", this.UploadTime); this.SetParamSimple(map, prefix + "ModifyTimes", this.ModifyTimes); } } }