/* * 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 ImportImageRequest : AbstractModel { /// /// 导入镜像的操作系统架构,`x86_64` 或 `i386` /// [JsonProperty("Architecture")] public string Architecture{ get; set; } /// /// 导入镜像的操作系统类型,通过`DescribeImportImageOs`获取 /// [JsonProperty("OsType")] public string OsType{ get; set; } /// /// 导入镜像的操作系统版本,通过`DescribeImportImageOs`获取 /// [JsonProperty("OsVersion")] public string OsVersion{ get; set; } /// /// 导入镜像存放的cos地址 /// [JsonProperty("ImageUrl")] public string ImageUrl{ get; set; } /// /// 镜像名称 /// [JsonProperty("ImageName")] public string ImageName{ get; set; } /// /// 镜像描述 /// [JsonProperty("ImageDescription")] public string ImageDescription{ get; set; } /// /// 只检查参数,不执行任务 /// [JsonProperty("DryRun")] public bool? DryRun{ get; set; } /// /// 是否强制导入,参考[强制导入镜像](https://cloud.tencent.com/document/product/213/12849) /// [JsonProperty("Force")] public bool? Force{ get; set; } /// /// For internal usage only. DO NOT USE IT. /// internal override void ToMap(Dictionary map, string prefix) { this.SetParamSimple(map, prefix + "Architecture", this.Architecture); this.SetParamSimple(map, prefix + "OsType", this.OsType); this.SetParamSimple(map, prefix + "OsVersion", this.OsVersion); this.SetParamSimple(map, prefix + "ImageUrl", this.ImageUrl); this.SetParamSimple(map, prefix + "ImageName", this.ImageName); this.SetParamSimple(map, prefix + "ImageDescription", this.ImageDescription); this.SetParamSimple(map, prefix + "DryRun", this.DryRun); this.SetParamSimple(map, prefix + "Force", this.Force); } } }