/* * 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.Tia.V20180226.Models { using Newtonsoft.Json; using System.Collections.Generic; using TencentCloud.Common; public class Job : AbstractModel { /// /// 任务名称 /// [JsonProperty("Name")] public string Name{ get; set; } /// /// 任务创建时间,格式为:2006-01-02 15:04:05.999999999 -0700 MST /// [JsonProperty("CreateTime")] public string CreateTime{ get; set; } /// /// 任务开始时间,格式为:2006-01-02 15:04:05.999999999 -0700 MST /// [JsonProperty("StartTime")] public string StartTime{ get; set; } /// /// 任务结束时间,格式为:2006-01-02 15:04:05.999999999 -0700 MST /// [JsonProperty("EndTime")] public string EndTime{ get; set; } /// /// 任务状态,可能的状态为Created(已创建),Running(运行中),Succeeded(运行完成:成功),Failed(运行完成:失败) /// [JsonProperty("State")] public string State{ get; set; } /// /// 任务状态信息 /// [JsonProperty("Message")] public string Message{ get; set; } /// /// 运行任务的配置信息 /// [JsonProperty("ScaleTier")] public string ScaleTier{ get; set; } /// /// (ScaleTier为Custom时)master机器类型 /// [JsonProperty("MasterType")] public string MasterType{ get; set; } /// /// (ScaleTier为Custom时)worker机器类型 /// [JsonProperty("WorkerType")] public string WorkerType{ get; set; } /// /// (ScaleTier为Custom时)parameter server机器类型 /// [JsonProperty("ParameterServerType")] public string ParameterServerType{ get; set; } /// /// (ScaleTier为Custom时)worker机器数量 /// [JsonProperty("WorkerCount")] public ulong? WorkerCount{ get; set; } /// /// (ScaleTier为Custom时)parameter server机器数量 /// [JsonProperty("ParameterServerCount")] public ulong? ParameterServerCount{ get; set; } /// /// 挂载的路径 /// [JsonProperty("PackageDir")] public string[] PackageDir{ get; set; } /// /// 任务启动命令 /// [JsonProperty("Command")] public string[] Command{ get; set; } /// /// 任务启动参数 /// [JsonProperty("Args")] public string[] Args{ get; set; } /// /// 运行任务的集群 /// [JsonProperty("Cluster")] public string Cluster{ get; set; } /// /// 运行任务的环境 /// [JsonProperty("RuntimeVersion")] public string RuntimeVersion{ get; set; } /// /// 任务删除时间,格式为:2006-01-02 15:04:05.999999999 -0700 MST /// [JsonProperty("DelTime")] public string DelTime{ get; set; } /// /// 创建任务的AppId /// [JsonProperty("AppId")] public ulong? AppId{ get; set; } /// /// 创建任务的Uin /// [JsonProperty("Uin")] public string Uin{ get; set; } /// /// 创建任务的Debug模式 /// [JsonProperty("Debug")] public bool? Debug{ get; set; } /// /// Runtime的额外配置信息 /// [JsonProperty("RuntimeConf")] public string[] RuntimeConf{ get; set; } /// /// 任务Id /// [JsonProperty("Id")] public string Id{ get; set; } /// /// For internal usage only. DO NOT USE IT. /// internal override void ToMap(Dictionary map, string prefix) { this.SetParamSimple(map, prefix + "Name", this.Name); 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 + "State", this.State); this.SetParamSimple(map, prefix + "Message", this.Message); this.SetParamSimple(map, prefix + "ScaleTier", this.ScaleTier); this.SetParamSimple(map, prefix + "MasterType", this.MasterType); this.SetParamSimple(map, prefix + "WorkerType", this.WorkerType); this.SetParamSimple(map, prefix + "ParameterServerType", this.ParameterServerType); this.SetParamSimple(map, prefix + "WorkerCount", this.WorkerCount); this.SetParamSimple(map, prefix + "ParameterServerCount", this.ParameterServerCount); this.SetParamArraySimple(map, prefix + "PackageDir.", this.PackageDir); this.SetParamArraySimple(map, prefix + "Command.", this.Command); this.SetParamArraySimple(map, prefix + "Args.", this.Args); this.SetParamSimple(map, prefix + "Cluster", this.Cluster); this.SetParamSimple(map, prefix + "RuntimeVersion", this.RuntimeVersion); this.SetParamSimple(map, prefix + "DelTime", this.DelTime); this.SetParamSimple(map, prefix + "AppId", this.AppId); this.SetParamSimple(map, prefix + "Uin", this.Uin); this.SetParamSimple(map, prefix + "Debug", this.Debug); this.SetParamArraySimple(map, prefix + "RuntimeConf.", this.RuntimeConf); this.SetParamSimple(map, prefix + "Id", this.Id); } } }