/* * 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 Job : AbstractModel { /// /// 任务 Id /// [JsonProperty("Id")] public string Id{ get; set; } /// /// 集群名 /// 注意:此字段可能返回 null,表示取不到有效值。 /// [JsonProperty("Cluster")] public string Cluster{ get; set; } /// /// Region 名 /// [JsonProperty("Region")] public string Region{ get; set; } /// /// 任务名称 /// [JsonProperty("Name")] public string Name{ get; set; } /// /// Worker 使用的运行环境 /// 注意:此字段可能返回 null,表示取不到有效值。 /// [JsonProperty("Runtime")] public string Runtime{ get; set; } /// /// 任务描述 /// 注意:此字段可能返回 null,表示取不到有效值。 /// [JsonProperty("Description")] public string Description{ get; set; } /// /// 配置 Id /// 注意:此字段可能返回 null,表示取不到有效值。 /// [JsonProperty("ConfigId")] public string ConfigId{ get; set; } /// /// 预测输入 /// 注意:此字段可能返回 null,表示取不到有效值。 /// [JsonProperty("PredictInput")] public PredictInput PredictInput{ get; set; } /// /// 任务状态 /// [JsonProperty("Status")] public JobStatus Status{ get; set; } /// /// 任务创建时间 /// [JsonProperty("CreateTime")] public string CreateTime{ get; set; } /// /// 任务开始时间 /// 注意:此字段可能返回 null,表示取不到有效值。 /// [JsonProperty("StartTime")] public string StartTime{ get; set; } /// /// 任务结束时间 /// 注意:此字段可能返回 null,表示取不到有效值。 /// [JsonProperty("EndTime")] public string EndTime{ get; set; } /// /// 任务取消时间 /// 注意:此字段可能返回 null,表示取不到有效值。 /// [JsonProperty("CancelTime")] public string CancelTime{ get; set; } /// /// 任务使用资源组 Id /// 注意:此字段可能返回 null,表示取不到有效值。 /// [JsonProperty("ResourceGroupId")] public string ResourceGroupId{ get; set; } /// /// 处理器配置, 单位为1/1000核;范围[100, 256000] /// 注意:此字段可能返回 null,表示取不到有效值。 /// [JsonProperty("Cpu")] public ulong? Cpu{ get; set; } /// /// 内存配置, 单位为1M;范围[100, 256000] /// 注意:此字段可能返回 null,表示取不到有效值。 /// [JsonProperty("Memory")] public ulong? Memory{ get; set; } /// /// GPU算力配置,单位为1/1000 卡,范围 [0, 256000] /// 注意:此字段可能返回 null,表示取不到有效值。 /// [JsonProperty("Gpu")] public ulong? Gpu{ get; set; } /// /// 显存配置, 单位为1M,范围 [0, 256000] /// 注意:此字段可能返回 null,表示取不到有效值。 /// [JsonProperty("GpuMemory")] public ulong? GpuMemory{ get; set; } /// /// 任务使用资源组名称 /// 注意:此字段可能返回 null,表示取不到有效值。 /// [JsonProperty("ResourceGroupName")] public string ResourceGroupName{ get; set; } /// /// GPU类型 /// 注意:此字段可能返回 null,表示取不到有效值。 /// [JsonProperty("GpuType")] public string GpuType{ get; set; } /// /// 配置名 /// 注意:此字段可能返回 null,表示取不到有效值。 /// [JsonProperty("ConfigName")] public string ConfigName{ get; set; } /// /// 配置版本 /// 注意:此字段可能返回 null,表示取不到有效值。 /// [JsonProperty("ConfigVersion")] public string ConfigVersion{ get; set; } /// /// Job类型 /// 注意:此字段可能返回 null,表示取不到有效值。 /// [JsonProperty("JobType")] public string JobType{ get; set; } /// /// 量化输入 /// 注意:此字段可能返回 null,表示取不到有效值。 /// [JsonProperty("QuantizationInput")] public QuantizationInput QuantizationInput{ get; set; } /// /// Cls日志主题ID /// 注意:此字段可能返回 null,表示取不到有效值。 /// [JsonProperty("LogTopicId")] public string LogTopicId{ 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 + "Cluster", this.Cluster); this.SetParamSimple(map, prefix + "Region", this.Region); this.SetParamSimple(map, prefix + "Name", this.Name); this.SetParamSimple(map, prefix + "Runtime", this.Runtime); this.SetParamSimple(map, prefix + "Description", this.Description); this.SetParamSimple(map, prefix + "ConfigId", this.ConfigId); this.SetParamObj(map, prefix + "PredictInput.", this.PredictInput); this.SetParamObj(map, prefix + "Status.", this.Status); this.SetParamSimple(map, prefix + "CreateTime", this.CreateTime); this.SetParamSimple(map, prefix + "StartTime", this.StartTime); this.SetParamSimple(map, prefix + "EndTime", this.EndTime); this.SetParamSimple(map, prefix + "CancelTime", this.CancelTime); this.SetParamSimple(map, prefix + "ResourceGroupId", this.ResourceGroupId); this.SetParamSimple(map, prefix + "Cpu", this.Cpu); this.SetParamSimple(map, prefix + "Memory", this.Memory); this.SetParamSimple(map, prefix + "Gpu", this.Gpu); this.SetParamSimple(map, prefix + "GpuMemory", this.GpuMemory); this.SetParamSimple(map, prefix + "ResourceGroupName", this.ResourceGroupName); this.SetParamSimple(map, prefix + "GpuType", this.GpuType); this.SetParamSimple(map, prefix + "ConfigName", this.ConfigName); this.SetParamSimple(map, prefix + "ConfigVersion", this.ConfigVersion); this.SetParamSimple(map, prefix + "JobType", this.JobType); this.SetParamObj(map, prefix + "QuantizationInput.", this.QuantizationInput); this.SetParamSimple(map, prefix + "LogTopicId", this.LogTopicId); } } }