/* * 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 MigrateOption : AbstractModel { /// /// 任务运行模式,值包括:1-立即执行,2-定时执行 /// [JsonProperty("RunMode")] public long? RunMode{ get; set; } /// /// 期望执行时间,当runMode=2时,该字段必填,时间格式:yyyy-mm-dd hh:mm:ss /// [JsonProperty("ExpectTime")] public string ExpectTime{ get; set; } /// /// 数据迁移类型,值包括:1-结构迁移,2-全量迁移,3-全量+增量迁移 /// [JsonProperty("MigrateType")] public long? MigrateType{ get; set; } /// /// 迁移对象,1-整个实例,2-指定库表 /// [JsonProperty("MigrateObject")] public long? MigrateObject{ get; set; } /// /// 抽样数据一致性检测参数,1-未配置,2-全量检测,3-抽样检测, 4-仅校验不一致表,5-不检测 /// [JsonProperty("ConsistencyType")] public long? ConsistencyType{ get; set; } /// /// 是否用源库Root账户覆盖目标库,值包括:0-不覆盖,1-覆盖,选择库表或者结构迁移时应该为0 /// [JsonProperty("IsOverrideRoot")] public long? IsOverrideRoot{ get; set; } /// /// 不同数据库用到的额外参数.以JSON格式描述. /// Redis可定义如下的参数: /// { /// "ClientOutputBufferHardLimit":512, 从机缓冲区的硬性容量限制(MB) /// "ClientOutputBufferSoftLimit":512, 从机缓冲区的软性容量限制(MB) /// "ClientOutputBufferPersistTime":60, 从机缓冲区的软性限制持续时间(秒) /// "ReplBacklogSize":512, 环形缓冲区容量限制(MB) /// "ReplTimeout":120, 复制超时时间(秒) /// } /// MongoDB可定义如下的参数: /// { /// 'SrcAuthDatabase':'admin', /// 'SrcAuthFlag': "1", /// 'SrcAuthMechanism':"SCRAM-SHA-1" /// } /// MySQL暂不支持额外参数设置。 /// [JsonProperty("ExternParams")] public string ExternParams{ get; set; } /// /// 仅用于“抽样数据一致性检测”,ConsistencyType配置为抽样检测时,必选 /// [JsonProperty("ConsistencyParams")] public ConsistencyParams ConsistencyParams{ get; set; } /// /// For internal usage only. DO NOT USE IT. /// internal override void ToMap(Dictionary map, string prefix) { this.SetParamSimple(map, prefix + "RunMode", this.RunMode); this.SetParamSimple(map, prefix + "ExpectTime", this.ExpectTime); this.SetParamSimple(map, prefix + "MigrateType", this.MigrateType); this.SetParamSimple(map, prefix + "MigrateObject", this.MigrateObject); this.SetParamSimple(map, prefix + "ConsistencyType", this.ConsistencyType); this.SetParamSimple(map, prefix + "IsOverrideRoot", this.IsOverrideRoot); this.SetParamSimple(map, prefix + "ExternParams", this.ExternParams); this.SetParamObj(map, prefix + "ConsistencyParams.", this.ConsistencyParams); } } }