Files
g.hnyhua.cn/TencentCloud/Cvm/V20170312/Models/ImportImageRequest.cs
2026-02-07 15:48:27 +08:00

93 lines
3.1 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.Cvm.V20170312.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class ImportImageRequest : AbstractModel
{
/// <summary>
/// 导入镜像的操作系统架构,`x86_64` 或 `i386`
/// </summary>
[JsonProperty("Architecture")]
public string Architecture{ get; set; }
/// <summary>
/// 导入镜像的操作系统类型,通过`DescribeImportImageOs`获取
/// </summary>
[JsonProperty("OsType")]
public string OsType{ get; set; }
/// <summary>
/// 导入镜像的操作系统版本,通过`DescribeImportImageOs`获取
/// </summary>
[JsonProperty("OsVersion")]
public string OsVersion{ get; set; }
/// <summary>
/// 导入镜像存放的cos地址
/// </summary>
[JsonProperty("ImageUrl")]
public string ImageUrl{ get; set; }
/// <summary>
/// 镜像名称
/// </summary>
[JsonProperty("ImageName")]
public string ImageName{ get; set; }
/// <summary>
/// 镜像描述
/// </summary>
[JsonProperty("ImageDescription")]
public string ImageDescription{ get; set; }
/// <summary>
/// 只检查参数,不执行任务
/// </summary>
[JsonProperty("DryRun")]
public bool? DryRun{ get; set; }
/// <summary>
/// 是否强制导入,参考[强制导入镜像](https://cloud.tencent.com/document/product/213/12849)
/// </summary>
[JsonProperty("Force")]
public bool? Force{ 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 + "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);
}
}
}