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

219 lines
10 KiB
C#
Raw 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 CreateDBInstanceHourRequest : AbstractModel
{
/// <summary>
/// 实例数量,默认值为 1最小值 1最大值为 100。
/// </summary>
[JsonProperty("GoodsNum")]
public long? GoodsNum{ get; set; }
/// <summary>
/// 实例内存大小单位MB请使用 [获取云数据库可售卖规格](https://cloud.tencent.com/document/api/236/17229) 接口获取可创建的内存规格。
/// </summary>
[JsonProperty("Memory")]
public long? Memory{ get; set; }
/// <summary>
/// 实例硬盘大小单位GB请使用 [获取云数据库可售卖规格](https://cloud.tencent.com/document/api/236/17229) 接口获取可创建的硬盘范围。
/// </summary>
[JsonProperty("Volume")]
public long? Volume{ get; set; }
/// <summary>
/// MySQL 版本值包括5.5、5.6 和 5.7,请使用 [获取云数据库可售卖规格](https://cloud.tencent.com/document/api/236/17229) 接口获取可创建的实例版本。
/// </summary>
[JsonProperty("EngineVersion")]
public string EngineVersion{ get; set; }
/// <summary>
/// 私有网络 ID如果不传则默认选择基础网络请使用 [查询私有网络列表](/document/api/215/15778) 。
/// </summary>
[JsonProperty("UniqVpcId")]
public string UniqVpcId{ get; set; }
/// <summary>
/// 私有网络下的子网 ID如果设置了 UniqVpcId则 UniqSubnetId 必填,请使用[查询子网列表](/document/api/215/15784)。
/// </summary>
[JsonProperty("UniqSubnetId")]
public string UniqSubnetId{ get; set; }
/// <summary>
/// 项目 ID不填为默认项目。请使用 [查询项目列表](https://cloud.tencent.com/document/product/378/4400) 接口获取项目 ID。
/// </summary>
[JsonProperty("ProjectId")]
public long? ProjectId{ get; set; }
/// <summary>
/// 可用区信息,该参数缺省时,系统会自动选择一个可用区,请使用 [获取云数据库可售卖规格](https://cloud.tencent.com/document/api/236/17229) 接口获取可创建的可用区。
/// </summary>
[JsonProperty("Zone")]
public string Zone{ get; set; }
/// <summary>
/// 实例 ID购买只读实例或者灾备实例时必填该字段表示只读实例或者灾备实例的主实例 ID请使用 [查询实例列表](https://cloud.tencent.com/document/api/236/15872) 接口查询云数据库实例 ID。
/// </summary>
[JsonProperty("MasterInstanceId")]
public string MasterInstanceId{ get; set; }
/// <summary>
/// 实例类型,默认为 master支持值包括master - 表示主实例dr - 表示灾备实例ro - 表示只读实例。
/// </summary>
[JsonProperty("InstanceRole")]
public string InstanceRole{ get; set; }
/// <summary>
/// 主实例的可用区信息,购买灾备实例时必填。
/// </summary>
[JsonProperty("MasterRegion")]
public string MasterRegion{ get; set; }
/// <summary>
/// 自定义端口,端口支持范围:[ 1024-65535 ] 。
/// </summary>
[JsonProperty("Port")]
public long? Port{ get; set; }
/// <summary>
/// 设置 root 帐号密码密码规则8 - 64 个字符至少包含字母、数字、字符支持的字符_+-&=!@#$%^*())中的两种,购买主实例时可指定该参数,购买只读实例或者灾备实例时指定该参数无意义。
/// </summary>
[JsonProperty("Password")]
public string Password{ get; set; }
/// <summary>
/// 参数列表,参数格式如 ParamList.0.Name=auto_increment&ParamList.0.Value=1。可通过 [查询默认的可设置参数列表](https://cloud.tencent.com/document/api/236/32662) 查询支持设置的参数。
/// </summary>
[JsonProperty("ParamList")]
public ParamInfo[] ParamList{ get; set; }
/// <summary>
/// 数据复制方式,默认为 0支持值包括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 的值,购买主实例时可指定该参数,购买只读实例或者灾备实例时指定该参数无意义。
/// </summary>
[JsonProperty("SlaveZone")]
public string SlaveZone{ get; set; }
/// <summary>
/// 备库 2 的可用区信息,默认为空,购买强同步主实例时可指定该参数,购买其他类型实例时指定该参数无意义。
/// </summary>
[JsonProperty("BackupZone")]
public string BackupZone{ get; set; }
/// <summary>
/// 安全组参数,可使用 [查询项目安全组信息](https://cloud.tencent.com/document/api/236/15850) 接口查询某个项目的安全组详情。
/// </summary>
[JsonProperty("SecurityGroup")]
public string[] SecurityGroup{ get; set; }
/// <summary>
/// 只读实例信息。购买只读实例时,该参数必传。
/// </summary>
[JsonProperty("RoGroup")]
public RoGroup RoGroup{ get; set; }
/// <summary>
/// 购买按量计费实例该字段无意义。
/// </summary>
[JsonProperty("AutoRenewFlag")]
public long? AutoRenewFlag{ get; set; }
/// <summary>
/// 实例名称。
/// </summary>
[JsonProperty("InstanceName")]
public string InstanceName{ get; set; }
/// <summary>
/// 实例标签信息。
/// </summary>
[JsonProperty("ResourceTags")]
public TagInfo[] ResourceTags{ get; set; }
/// <summary>
/// 置放群组 ID。
/// </summary>
[JsonProperty("DeployGroupId")]
public string DeployGroupId{ get; set; }
/// <summary>
/// 用于保证请求幂等性的字符串。该字符串由客户生成需保证不同请求之间在当天内唯一最大值不超过64个ASCII字符。若不指定该参数则无法保证请求的幂等性。
/// </summary>
[JsonProperty("ClientToken")]
public string ClientToken{ get; set; }
/// <summary>
/// 实例类型。支持值包括: "HA" - 高可用版实例, "BASIC" - 基础版实例。 不指定则默认为高可用版。
/// </summary>
[JsonProperty("DeviceType")]
public string DeviceType{ 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 + "GoodsNum", this.GoodsNum);
this.SetParamSimple(map, prefix + "Memory", this.Memory);
this.SetParamSimple(map, prefix + "Volume", this.Volume);
this.SetParamSimple(map, prefix + "EngineVersion", this.EngineVersion);
this.SetParamSimple(map, prefix + "UniqVpcId", this.UniqVpcId);
this.SetParamSimple(map, prefix + "UniqSubnetId", this.UniqSubnetId);
this.SetParamSimple(map, prefix + "ProjectId", this.ProjectId);
this.SetParamSimple(map, prefix + "Zone", this.Zone);
this.SetParamSimple(map, prefix + "MasterInstanceId", this.MasterInstanceId);
this.SetParamSimple(map, prefix + "InstanceRole", this.InstanceRole);
this.SetParamSimple(map, prefix + "MasterRegion", this.MasterRegion);
this.SetParamSimple(map, prefix + "Port", this.Port);
this.SetParamSimple(map, prefix + "Password", this.Password);
this.SetParamArrayObj(map, prefix + "ParamList.", this.ParamList);
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 + "BackupZone", this.BackupZone);
this.SetParamArraySimple(map, prefix + "SecurityGroup.", this.SecurityGroup);
this.SetParamObj(map, prefix + "RoGroup.", this.RoGroup);
this.SetParamSimple(map, prefix + "AutoRenewFlag", this.AutoRenewFlag);
this.SetParamSimple(map, prefix + "InstanceName", this.InstanceName);
this.SetParamArrayObj(map, prefix + "ResourceTags.", this.ResourceTags);
this.SetParamSimple(map, prefix + "DeployGroupId", this.DeployGroupId);
this.SetParamSimple(map, prefix + "ClientToken", this.ClientToken);
this.SetParamSimple(map, prefix + "DeviceType", this.DeviceType);
}
}
}