Files
g.hnyhua.cn/TencentCloud/Cdb/V20170320/Models/UpgradeDBInstanceRequest.cs
2026-02-07 15:48:27 +08:00

107 lines
5.3 KiB
C#
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
/*
* 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 UpgradeDBInstanceRequest : AbstractModel
{
/// <summary>
/// 实例 ID格式如cdb-c1nl9rpv 或者 cdbro-c1nl9rpv。与云数据库控制台页面中显示的实例 ID 相同,可使用 [查询实例列表](https://cloud.tencent.com/document/api/236/15872) 接口获取,其值为输出参数中字段 InstanceId 的值。
/// </summary>
[JsonProperty("InstanceId")]
public string InstanceId{ get; set; }
/// <summary>
/// 升级后的内存大小单位MB为保证传入 Memory 值有效,请使用 [获取云数据库可售卖规格](https://cloud.tencent.com/document/product/236/17229) 接口获取可升级的内存规格。
/// </summary>
[JsonProperty("Memory")]
public long? Memory{ get; set; }
/// <summary>
/// 升级后的硬盘大小单位GB为保证传入 Volume 值有效,请使用 [获取云数据库可售卖规格](https://cloud.tencent.com/document/product/236/17229) 接口获取可升级的硬盘范围。
/// </summary>
[JsonProperty("Volume")]
public long? Volume{ get; set; }
/// <summary>
/// 数据复制方式支持值包括0 - 异步复制1 - 半同步复制2 - 强同步复制,升级主实例时可指定该参数,升级只读实例或者灾备实例时指定该参数无意义。
/// </summary>
[JsonProperty("ProtectMode")]
public long? ProtectMode{ get; set; }
/// <summary>
/// 部署模式,默认为 0支持值包括0 - 单可用区部署1 - 多可用区部署,升级主实例时可指定该参数,升级只读实例或者灾备实例时指定该参数无意义。
/// </summary>
[JsonProperty("DeployMode")]
public long? DeployMode{ get; set; }
/// <summary>
/// 备库1的可用区信息默认和实例的 Zone 参数一致,升级主实例为多可用区部署时可指定该参数,升级只读实例或者灾备实例时指定该参数无意义。可通过 [获取云数据库可售卖规格](https://cloud.tencent.com/document/product/236/17229) 接口查询支持的可用区。
/// </summary>
[JsonProperty("SlaveZone")]
public string SlaveZone{ get; set; }
/// <summary>
/// 主实例数据库引擎版本支持值包括5.5、5.6 和 5.7。
/// </summary>
[JsonProperty("EngineVersion")]
public string EngineVersion{ get; set; }
/// <summary>
/// 切换访问新实例的方式,默认为 0。支持值包括0 - 立刻切换1 - 时间窗切换;当该值为 1 时,升级中过程中,切换访问新实例的流程将会在时间窗内进行,或者用户主动调用接口 [切换访问新实例](https://cloud.tencent.com/document/product/236/15864) 触发该流程。
/// </summary>
[JsonProperty("WaitSwitch")]
public long? WaitSwitch{ get; set; }
/// <summary>
/// 备库 2 的可用区信息,默认为空,升级主实例时可指定该参数,升级只读实例或者灾备实例时指定该参数无意义。
/// </summary>
[JsonProperty("BackupZone")]
public string BackupZone{ get; set; }
/// <summary>
/// 实例类型,默认为 master支持值包括master - 表示主实例dr - 表示灾备实例ro - 表示只读实例。
/// </summary>
[JsonProperty("InstanceRole")]
public string InstanceRole{ get; set; }
/// <summary>
/// For internal usage only. DO NOT USE IT.
/// </summary>
internal override void ToMap(Dictionary<string, string> map, string prefix)
{
this.SetParamSimple(map, prefix + "InstanceId", this.InstanceId);
this.SetParamSimple(map, prefix + "Memory", this.Memory);
this.SetParamSimple(map, prefix + "Volume", this.Volume);
this.SetParamSimple(map, prefix + "ProtectMode", this.ProtectMode);
this.SetParamSimple(map, prefix + "DeployMode", this.DeployMode);
this.SetParamSimple(map, prefix + "SlaveZone", this.SlaveZone);
this.SetParamSimple(map, prefix + "EngineVersion", this.EngineVersion);
this.SetParamSimple(map, prefix + "WaitSwitch", this.WaitSwitch);
this.SetParamSimple(map, prefix + "BackupZone", this.BackupZone);
this.SetParamSimple(map, prefix + "InstanceRole", this.InstanceRole);
}
}
}