/* * 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.Cvm.V20170312.Models { using Newtonsoft.Json; using System.Collections.Generic; using TencentCloud.Common; public class Image : AbstractModel { /// /// 镜像ID /// [JsonProperty("ImageId")] public string ImageId{ get; set; } /// /// 镜像操作系统 /// [JsonProperty("OsName")] public string OsName{ get; set; } /// /// 镜像类型 /// [JsonProperty("ImageType")] public string ImageType{ get; set; } /// /// 镜像创建时间 /// [JsonProperty("CreatedTime")] public string CreatedTime{ get; set; } /// /// 镜像名称 /// [JsonProperty("ImageName")] public string ImageName{ get; set; } /// /// 镜像描述 /// [JsonProperty("ImageDescription")] public string ImageDescription{ get; set; } /// /// 镜像大小 /// [JsonProperty("ImageSize")] public long? ImageSize{ get; set; } /// /// 镜像架构 /// [JsonProperty("Architecture")] public string Architecture{ get; set; } /// /// 镜像状态: /// CREATING-创建中 /// NORMAL-正常 /// CREATEFAILED-创建失败 /// USING-使用中 /// SYNCING-同步中 /// IMPORTING-导入中 /// IMPORTFAILED-导入失败 /// [JsonProperty("ImageState")] public string ImageState{ get; set; } /// /// 镜像来源平台 /// [JsonProperty("Platform")] public string Platform{ get; set; } /// /// 镜像创建者 /// [JsonProperty("ImageCreator")] public string ImageCreator{ get; set; } /// /// 镜像来源 /// [JsonProperty("ImageSource")] public string ImageSource{ get; set; } /// /// 同步百分比 /// 注意:此字段可能返回 null,表示取不到有效值。 /// [JsonProperty("SyncPercent")] public long? SyncPercent{ get; set; } /// /// 镜像是否支持cloud-init /// 注意:此字段可能返回 null,表示取不到有效值。 /// [JsonProperty("IsSupportCloudinit")] public bool? IsSupportCloudinit{ get; set; } /// /// 镜像关联的快照信息 /// 注意:此字段可能返回 null,表示取不到有效值。 /// [JsonProperty("SnapshotSet")] public Snapshot[] SnapshotSet{ get; set; } /// /// For internal usage only. DO NOT USE IT. /// internal override void ToMap(Dictionary map, string prefix) { this.SetParamSimple(map, prefix + "ImageId", this.ImageId); this.SetParamSimple(map, prefix + "OsName", this.OsName); this.SetParamSimple(map, prefix + "ImageType", this.ImageType); this.SetParamSimple(map, prefix + "CreatedTime", this.CreatedTime); this.SetParamSimple(map, prefix + "ImageName", this.ImageName); this.SetParamSimple(map, prefix + "ImageDescription", this.ImageDescription); this.SetParamSimple(map, prefix + "ImageSize", this.ImageSize); this.SetParamSimple(map, prefix + "Architecture", this.Architecture); this.SetParamSimple(map, prefix + "ImageState", this.ImageState); this.SetParamSimple(map, prefix + "Platform", this.Platform); this.SetParamSimple(map, prefix + "ImageCreator", this.ImageCreator); this.SetParamSimple(map, prefix + "ImageSource", this.ImageSource); this.SetParamSimple(map, prefix + "SyncPercent", this.SyncPercent); this.SetParamSimple(map, prefix + "IsSupportCloudinit", this.IsSupportCloudinit); this.SetParamArrayObj(map, prefix + "SnapshotSet.", this.SnapshotSet); } } }