Files
2026-02-07 15:48:27 +08:00

133 lines
4.7 KiB
C#
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
/*
* 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.Emr.V20190103.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class Resource : AbstractModel
{
/// <summary>
/// 节点规格描述
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("Spec")]
public string Spec{ get; set; }
/// <summary>
/// 存储类型
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("StorageType")]
public long? StorageType{ get; set; }
/// <summary>
/// 磁盘类型
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("DiskType")]
public string DiskType{ get; set; }
/// <summary>
/// 内存容量,单位为M
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("MemSize")]
public long? MemSize{ get; set; }
/// <summary>
/// CPU核数
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("Cpu")]
public long? Cpu{ get; set; }
/// <summary>
/// 数据盘容量
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("DiskSize")]
public long? DiskSize{ get; set; }
/// <summary>
/// 系统盘容量
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("RootSize")]
public long? RootSize{ get; set; }
/// <summary>
/// 云盘列表当数据盘为一块云盘时直接使用DiskType和DiskSize参数超出部分使用MultiDisks
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("MultiDisks")]
public MultiDisk[] MultiDisks{ get; set; }
/// <summary>
/// 需要绑定的标签列表
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("Tags")]
public Tag[] Tags{ get; set; }
/// <summary>
/// 规格类型
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("InstanceType")]
public string InstanceType{ get; set; }
/// <summary>
/// 本地盘数量
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("LocalDiskNum")]
public ulong? LocalDiskNum{ get; set; }
/// <summary>
/// 盘数量
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("DiskNum")]
public ulong? DiskNum{ 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 + "Spec", this.Spec);
this.SetParamSimple(map, prefix + "StorageType", this.StorageType);
this.SetParamSimple(map, prefix + "DiskType", this.DiskType);
this.SetParamSimple(map, prefix + "MemSize", this.MemSize);
this.SetParamSimple(map, prefix + "Cpu", this.Cpu);
this.SetParamSimple(map, prefix + "DiskSize", this.DiskSize);
this.SetParamSimple(map, prefix + "RootSize", this.RootSize);
this.SetParamArrayObj(map, prefix + "MultiDisks.", this.MultiDisks);
this.SetParamArrayObj(map, prefix + "Tags.", this.Tags);
this.SetParamSimple(map, prefix + "InstanceType", this.InstanceType);
this.SetParamSimple(map, prefix + "LocalDiskNum", this.LocalDiskNum);
this.SetParamSimple(map, prefix + "DiskNum", this.DiskNum);
}
}
}