/* * 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.Cdb.V20170320.Models { using Newtonsoft.Json; using System.Collections.Generic; using TencentCloud.Common; public class RollbackInstancesInfo : AbstractModel { /// /// 云数据库实例ID /// 注意:此字段可能返回 null,表示取不到有效值。 /// [JsonProperty("InstanceId")] public string InstanceId{ get; set; } /// /// 回档策略。可选值为:table、db、full;默认值为full。table - 急速回档模式,仅导入所选中表级别的备份和binlog,如有跨表操作,且关联表未被同时选中,将会导致回档失败,该模式下参数Databases必须为空;db - 快速模式,仅导入所选中库级别的备份和binlog,如有跨库操作,且关联库未被同时选中,将会导致回档失败;full - 普通回档模式,将导入整个实例的备份和binlog,速度较慢。 /// [JsonProperty("Strategy")] public string Strategy{ get; set; } /// /// 数据库回档时间,时间格式为:yyyy-mm-dd hh:mm:ss /// [JsonProperty("RollbackTime")] public string RollbackTime{ get; set; } /// /// 待回档的数据库信息,表示整库回档 /// 注意:此字段可能返回 null,表示取不到有效值。 /// [JsonProperty("Databases")] public RollbackDBName[] Databases{ get; set; } /// /// 待回档的数据库表信息,表示按表回档 /// 注意:此字段可能返回 null,表示取不到有效值。 /// [JsonProperty("Tables")] public RollbackTables[] Tables{ get; set; } /// /// For internal usage only. DO NOT USE IT. /// internal override void ToMap(Dictionary map, string prefix) { this.SetParamSimple(map, prefix + "InstanceId", this.InstanceId); this.SetParamSimple(map, prefix + "Strategy", this.Strategy); this.SetParamSimple(map, prefix + "RollbackTime", this.RollbackTime); this.SetParamArrayObj(map, prefix + "Databases.", this.Databases); this.SetParamArrayObj(map, prefix + "Tables.", this.Tables); } } }