79 lines
3.2 KiB
C#
79 lines
3.2 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.Cbs.V20170312.Models
|
||
{
|
||
using Newtonsoft.Json;
|
||
using System.Collections.Generic;
|
||
using TencentCloud.Common;
|
||
|
||
public class ModifyDiskAttributesRequest : AbstractModel
|
||
{
|
||
|
||
/// <summary>
|
||
/// 一个或多个待操作的云硬盘ID。如果传入多个云盘ID,仅支持所有云盘修改为同一属性。
|
||
/// </summary>
|
||
[JsonProperty("DiskIds")]
|
||
public string[] DiskIds{ get; set; }
|
||
|
||
/// <summary>
|
||
/// 新的云硬盘项目ID,只支持修改弹性云盘的项目ID。通过[DescribeProject](/document/api/378/4400)接口查询可用项目及其ID。
|
||
/// </summary>
|
||
[JsonProperty("ProjectId")]
|
||
public ulong? ProjectId{ get; set; }
|
||
|
||
/// <summary>
|
||
/// 新的云硬盘名称。
|
||
/// </summary>
|
||
[JsonProperty("DiskName")]
|
||
public string DiskName{ get; set; }
|
||
|
||
/// <summary>
|
||
/// 是否为弹性云盘,FALSE表示非弹性云盘,TRUE表示弹性云盘。仅支持非弹性云盘修改为弹性云盘。
|
||
/// </summary>
|
||
[JsonProperty("Portable")]
|
||
public bool? Portable{ get; set; }
|
||
|
||
/// <summary>
|
||
/// 成功挂载到云主机后该云硬盘是否随云主机销毁,TRUE表示随云主机销毁,FALSE表示不随云主机销毁。仅支持按量计费云硬盘数据盘。
|
||
/// </summary>
|
||
[JsonProperty("DeleteWithInstance")]
|
||
public bool? DeleteWithInstance{ get; set; }
|
||
|
||
/// <summary>
|
||
/// 变更云盘类型时,可传入该参数,表示变更的目标类型,取值范围:<br><li>CLOUD_PREMIUM:表示高性能云硬盘<br><li>CLOUD_SSD:表示SSD云硬盘。<br>当前不支持批量变更类型,即传入DiskType时,DiskIds仅支持传入一块云盘;<br>变更云盘类型时不支持同时变更其他属性。
|
||
/// </summary>
|
||
[JsonProperty("DiskType")]
|
||
public string DiskType{ get; set; }
|
||
|
||
|
||
/// <summary>
|
||
/// For internal usage only. DO NOT USE IT.
|
||
/// </summary>
|
||
internal override void ToMap(Dictionary<string, string> map, string prefix)
|
||
{
|
||
this.SetParamArraySimple(map, prefix + "DiskIds.", this.DiskIds);
|
||
this.SetParamSimple(map, prefix + "ProjectId", this.ProjectId);
|
||
this.SetParamSimple(map, prefix + "DiskName", this.DiskName);
|
||
this.SetParamSimple(map, prefix + "Portable", this.Portable);
|
||
this.SetParamSimple(map, prefix + "DeleteWithInstance", this.DeleteWithInstance);
|
||
this.SetParamSimple(map, prefix + "DiskType", this.DiskType);
|
||
}
|
||
}
|
||
}
|
||
|