/* * 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 { /// /// 资源组 Id /// [JsonProperty("Id")] public string Id{ get; set; } /// /// 地域 /// [JsonProperty("Region")] public string Region{ get; set; } /// /// 集群 /// 注意:此字段可能返回 null,表示取不到有效值。 /// [JsonProperty("Cluster")] public string Cluster{ get; set; } /// /// 资源组名称 /// [JsonProperty("Name")] public string Name{ get; set; } /// /// 资源组描述 /// 注意:此字段可能返回 null,表示取不到有效值。 /// [JsonProperty("Description")] public string Description{ get; set; } /// /// 创建时间 /// [JsonProperty("Created")] public string Created{ get; set; } /// /// 更新时间 /// [JsonProperty("Updated")] public string Updated{ get; set; } /// /// 资源组主机数量 /// 注意:此字段可能返回 null,表示取不到有效值。 /// [JsonProperty("InstanceCount")] public ulong? InstanceCount{ get; set; } /// /// 使用资源组的服务数量 /// 注意:此字段可能返回 null,表示取不到有效值。 /// [JsonProperty("ServiceCount")] public ulong? ServiceCount{ get; set; } /// /// 使用资源组的任务数量 /// 注意:此字段可能返回 null,表示取不到有效值。 /// [JsonProperty("JobCount")] public ulong? JobCount{ get; set; } /// /// 资源组是否为公共资源组 /// 注意:此字段可能返回 null,表示取不到有效值。 /// [JsonProperty("Public")] public bool? Public{ get; set; } /// /// 机器类型 /// 注意:此字段可能返回 null,表示取不到有效值。 /// [JsonProperty("InstanceType")] public string InstanceType{ get; set; } /// /// 资源组状态 /// 注意:此字段可能返回 null,表示取不到有效值。 /// [JsonProperty("Status")] public string Status{ get; set; } /// /// 显卡总张数 /// 注意:此字段可能返回 null,表示取不到有效值。 /// [JsonProperty("Gpu")] public ulong? Gpu{ get; set; } /// /// 处理器总核数 /// 注意:此字段可能返回 null,表示取不到有效值。 /// [JsonProperty("Cpu")] public ulong? Cpu{ get; set; } /// /// 内存总量,单位为G /// 注意:此字段可能返回 null,表示取不到有效值。 /// [JsonProperty("Memory")] public ulong? Memory{ get; set; } /// /// 可用区 /// 注意:此字段可能返回 null,表示取不到有效值。 /// [JsonProperty("Zone")] public string Zone{ get; set; } /// /// Gpu类型 /// 注意:此字段可能返回 null,表示取不到有效值。 /// [JsonProperty("GpuType")] public string[] GpuType{ get; set; } /// /// 该资源组下是否有预付费资源 /// 注意:此字段可能返回 null,表示取不到有效值。 /// [JsonProperty("HasPrepaid")] public bool? HasPrepaid{ get; set; } /// /// 资源组是否允许预付费或后付费模式 /// 注意:此字段可能返回 null,表示取不到有效值。 /// [JsonProperty("PayMode")] public string PayMode{ get; set; } /// /// For internal usage only. DO NOT USE IT. /// internal override void ToMap(Dictionary 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); } } }