Files
g.hnyhua.cn/TencentCloud/Tiems/V20190416/Models/ResourceGroup.cs

192 lines
6.6 KiB
C#
Raw Normal View History

/*
* 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.Tiems.V20190416.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class ResourceGroup : AbstractModel
{
/// <summary>
/// 资源组 Id
/// </summary>
[JsonProperty("Id")]
public string Id{ get; set; }
/// <summary>
/// 地域
/// </summary>
[JsonProperty("Region")]
public string Region{ get; set; }
/// <summary>
/// 集群
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("Cluster")]
public string Cluster{ get; set; }
/// <summary>
/// 资源组名称
/// </summary>
[JsonProperty("Name")]
public string Name{ get; set; }
/// <summary>
/// 资源组描述
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("Description")]
public string Description{ get; set; }
/// <summary>
/// 创建时间
/// </summary>
[JsonProperty("Created")]
public string Created{ get; set; }
/// <summary>
/// 更新时间
/// </summary>
[JsonProperty("Updated")]
public string Updated{ get; set; }
/// <summary>
/// 资源组主机数量
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("InstanceCount")]
public ulong? InstanceCount{ get; set; }
/// <summary>
/// 使用资源组的服务数量
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("ServiceCount")]
public ulong? ServiceCount{ get; set; }
/// <summary>
/// 使用资源组的任务数量
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("JobCount")]
public ulong? JobCount{ get; set; }
/// <summary>
/// 资源组是否为公共资源组
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("Public")]
public bool? Public{ get; set; }
/// <summary>
/// 机器类型
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("InstanceType")]
public string InstanceType{ get; set; }
/// <summary>
/// 资源组状态
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("Status")]
public string Status{ get; set; }
/// <summary>
/// 显卡总张数
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("Gpu")]
public ulong? Gpu{ get; set; }
/// <summary>
/// 处理器总核数
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("Cpu")]
public ulong? Cpu{ get; set; }
/// <summary>
/// 内存总量单位为G
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("Memory")]
public ulong? Memory{ get; set; }
/// <summary>
/// 可用区
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("Zone")]
public string Zone{ get; set; }
/// <summary>
/// Gpu类型
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("GpuType")]
public string[] GpuType{ get; set; }
/// <summary>
/// 该资源组下是否有预付费资源
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("HasPrepaid")]
public bool? HasPrepaid{ get; set; }
/// <summary>
/// 资源组是否允许预付费或后付费模式
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("PayMode")]
public string PayMode{ 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 + "Id", this.Id);
this.SetParamSimple(map, prefix + "Region", this.Region);
this.SetParamSimple(map, prefix + "Cluster", this.Cluster);
this.SetParamSimple(map, prefix + "Name", this.Name);
this.SetParamSimple(map, prefix + "Description", this.Description);
this.SetParamSimple(map, prefix + "Created", this.Created);
this.SetParamSimple(map, prefix + "Updated", this.Updated);
this.SetParamSimple(map, prefix + "InstanceCount", this.InstanceCount);
this.SetParamSimple(map, prefix + "ServiceCount", this.ServiceCount);
this.SetParamSimple(map, prefix + "JobCount", this.JobCount);
this.SetParamSimple(map, prefix + "Public", this.Public);
this.SetParamSimple(map, prefix + "InstanceType", this.InstanceType);
this.SetParamSimple(map, prefix + "Status", this.Status);
this.SetParamSimple(map, prefix + "Gpu", this.Gpu);
this.SetParamSimple(map, prefix + "Cpu", this.Cpu);
this.SetParamSimple(map, prefix + "Memory", this.Memory);
this.SetParamSimple(map, prefix + "Zone", this.Zone);
this.SetParamArraySimple(map, prefix + "GpuType.", this.GpuType);
this.SetParamSimple(map, prefix + "HasPrepaid", this.HasPrepaid);
this.SetParamSimple(map, prefix + "PayMode", this.PayMode);
}
}
}