/* * 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.Sqlserver.V20180328.Models { using Newtonsoft.Json; using System.Collections.Generic; using TencentCloud.Common; public class MigrateSource : AbstractModel { /// /// 迁移源实例的ID,MigrateType=1(TencentDB for SQLServers)时使用,格式如:mssql-si2823jyl /// [JsonProperty("InstanceId")] public string InstanceId{ get; set; } /// /// 迁移源Cvm的ID,MigrateType=2(云服务器自建SQLServer数据库)时使用 /// [JsonProperty("CvmId")] public string CvmId{ get; set; } /// /// 迁移源Cvm的Vpc网络标识,MigrateType=2(云服务器自建SQLServer数据库)时使用,格式如:vpc-6ys9ont9 /// [JsonProperty("VpcId")] public string VpcId{ get; set; } /// /// 迁移源Cvm的Vpc下的子网标识,MigrateType=2(云服务器自建SQLServer数据库)时使用,格式如:subnet-h9extioi /// [JsonProperty("SubnetId")] public string SubnetId{ get; set; } /// /// 用户名,MigrateType=1或MigrateType=2使用 /// [JsonProperty("UserName")] public string UserName{ get; set; } /// /// 密码,MigrateType=1或MigrateType=2使用 /// [JsonProperty("Password")] public string Password{ get; set; } /// /// 迁移源Cvm自建库的内网IP,MigrateType=2(云服务器自建SQLServer数据库)时使用 /// [JsonProperty("Ip")] public string Ip{ get; set; } /// /// 迁移源Cvm自建库的端口号,MigrateType=2(云服务器自建SQLServer数据库)时使用 /// [JsonProperty("Port")] public ulong? Port{ get; set; } /// /// 离线迁移的源备份地址,MigrateType=4或MigrateType=5使用 /// [JsonProperty("Url")] public string[] Url{ get; set; } /// /// 离线迁移的源备份密码,MigrateType=4或MigrateType=5使用 /// [JsonProperty("UrlPassword")] public string UrlPassword{ 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 + "CvmId", this.CvmId); this.SetParamSimple(map, prefix + "VpcId", this.VpcId); this.SetParamSimple(map, prefix + "SubnetId", this.SubnetId); this.SetParamSimple(map, prefix + "UserName", this.UserName); this.SetParamSimple(map, prefix + "Password", this.Password); this.SetParamSimple(map, prefix + "Ip", this.Ip); this.SetParamSimple(map, prefix + "Port", this.Port); this.SetParamArraySimple(map, prefix + "Url.", this.Url); this.SetParamSimple(map, prefix + "UrlPassword", this.UrlPassword); } } }