/* * 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.Msp.V20180319.Models { using Newtonsoft.Json; using System.Collections.Generic; using TencentCloud.Common; public class Task : AbstractModel { /// /// 任务Id /// [JsonProperty("TaskId")] public string TaskId{ get; set; } /// /// 任务名称 /// [JsonProperty("TaskName")] public string TaskName{ get; set; } /// /// 迁移类型 /// [JsonProperty("MigrationType")] public string MigrationType{ get; set; } /// /// 迁移状态 /// [JsonProperty("Status")] public string Status{ get; set; } /// /// 项目Id /// [JsonProperty("ProjectId")] public ulong? ProjectId{ get; set; } /// /// 项目名称 /// [JsonProperty("ProjectName")] public string ProjectName{ get; set; } /// /// 迁移源信息 /// [JsonProperty("SrcInfo")] public SrcInfo SrcInfo{ get; set; } /// /// 迁移时间信息 /// [JsonProperty("MigrationTimeLine")] public TimeObj MigrationTimeLine{ get; set; } /// /// 状态更新时间 /// [JsonProperty("Updated")] public string Updated{ get; set; } /// /// 迁移目的信息 /// [JsonProperty("DstInfo")] public DstInfo DstInfo{ get; set; } /// /// For internal usage only. DO NOT USE IT. /// internal override void ToMap(Dictionary map, string prefix) { this.SetParamSimple(map, prefix + "TaskId", this.TaskId); this.SetParamSimple(map, prefix + "TaskName", this.TaskName); this.SetParamSimple(map, prefix + "MigrationType", this.MigrationType); this.SetParamSimple(map, prefix + "Status", this.Status); this.SetParamSimple(map, prefix + "ProjectId", this.ProjectId); this.SetParamSimple(map, prefix + "ProjectName", this.ProjectName); this.SetParamObj(map, prefix + "SrcInfo.", this.SrcInfo); this.SetParamObj(map, prefix + "MigrationTimeLine.", this.MigrationTimeLine); this.SetParamSimple(map, prefix + "Updated", this.Updated); this.SetParamObj(map, prefix + "DstInfo.", this.DstInfo); } } }