/* * 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.Dts.V20180330.Models { using Newtonsoft.Json; using System.Collections.Generic; using TencentCloud.Common; public class SyncJobInfo : AbstractModel { /// /// 灾备任务id /// [JsonProperty("JobId")] public string JobId{ get; set; } /// /// 灾备任务名 /// [JsonProperty("JobName")] public string JobName{ get; set; } /// /// 任务同步 /// [JsonProperty("SyncOption")] public SyncOption SyncOption{ get; set; } /// /// 源接入类型 /// [JsonProperty("SrcAccessType")] public string SrcAccessType{ get; set; } /// /// 源数据类型 /// [JsonProperty("SrcDatabaseType")] public string SrcDatabaseType{ get; set; } /// /// 源实例信息 /// [JsonProperty("SrcInfo")] public SyncInstanceInfo SrcInfo{ get; set; } /// /// 灾备接入类型 /// [JsonProperty("DstAccessType")] public string DstAccessType{ get; set; } /// /// 灾备数据类型 /// [JsonProperty("DstDatabaseType")] public string DstDatabaseType{ get; set; } /// /// 灾备实例信息 /// [JsonProperty("DstInfo")] public SyncInstanceInfo DstInfo{ get; set; } /// /// 任务信息 /// [JsonProperty("Detail")] public SyncDetailInfo Detail{ get; set; } /// /// 任务状态 /// [JsonProperty("Status")] public long? Status{ get; set; } /// /// 迁移库表 /// [JsonProperty("DatabaseInfo")] public string DatabaseInfo{ get; set; } /// /// 创建时间 /// [JsonProperty("CreateTime")] public string CreateTime{ get; set; } /// /// 开始时间 /// [JsonProperty("StartTime")] public string StartTime{ get; set; } /// /// 结束时间 /// [JsonProperty("EndTime")] public string EndTime{ get; set; } /// /// For internal usage only. DO NOT USE IT. /// internal override void ToMap(Dictionary map, string prefix) { this.SetParamSimple(map, prefix + "JobId", this.JobId); this.SetParamSimple(map, prefix + "JobName", this.JobName); this.SetParamObj(map, prefix + "SyncOption.", this.SyncOption); this.SetParamSimple(map, prefix + "SrcAccessType", this.SrcAccessType); this.SetParamSimple(map, prefix + "SrcDatabaseType", this.SrcDatabaseType); this.SetParamObj(map, prefix + "SrcInfo.", this.SrcInfo); this.SetParamSimple(map, prefix + "DstAccessType", this.DstAccessType); this.SetParamSimple(map, prefix + "DstDatabaseType", this.DstDatabaseType); this.SetParamObj(map, prefix + "DstInfo.", this.DstInfo); this.SetParamObj(map, prefix + "Detail.", this.Detail); this.SetParamSimple(map, prefix + "Status", this.Status); this.SetParamSimple(map, prefix + "DatabaseInfo", this.DatabaseInfo); this.SetParamSimple(map, prefix + "CreateTime", this.CreateTime); this.SetParamSimple(map, prefix + "StartTime", this.StartTime); this.SetParamSimple(map, prefix + "EndTime", this.EndTime); } } }