Files
g.hnyhua.cn/TencentCloud/Redis/V20180412/Models/CreateInstancesRequest.cs

163 lines
6.6 KiB
C#
Raw Normal View History

/*
* 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.Redis.V20180412.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class CreateInstancesRequest : AbstractModel
{
/// <summary>
/// 实例所属的可用区ID
/// </summary>
[JsonProperty("ZoneId")]
public ulong? ZoneId{ get; set; }
/// <summary>
/// 实例类型2 Redis2.8主从版3 Redis3.2主从版(CKV主从版)4 Redis3.2集群版(CKV集群版)5-Redis2.8单机版6 Redis4.0主从版7 Redis4.0集群版8 Redis5.0主从版9 Redis5.0集群版,
/// </summary>
[JsonProperty("TypeId")]
public ulong? TypeId{ get; set; }
/// <summary>
/// 实例容量单位MB 取值大小以 查询售卖规格接口返回的规格为准
/// </summary>
[JsonProperty("MemSize")]
public ulong? MemSize{ get; set; }
/// <summary>
/// 实例数量,单次购买实例数量以 查询售卖规格接口返回的规格为准
/// </summary>
[JsonProperty("GoodsNum")]
public ulong? GoodsNum{ get; set; }
/// <summary>
/// 购买时长在创建包年包月实例的时候需要填写按量计费实例填1即可单位取值范围 [1,2,3,4,5,6,7,8,9,10,11,12,24,36]
/// </summary>
[JsonProperty("Period")]
public ulong? Period{ get; set; }
/// <summary>
/// 付费方式:0-按量计费1-包年包月。
/// </summary>
[JsonProperty("BillingMode")]
public long? BillingMode{ get; set; }
/// <summary>
/// 实例密码密码规则1.长度为8-16个字符2:至少包含字母、数字和字符!@^*()中的两种(创建免密实例时,可不传入该字段,该字段内容会忽略)
/// </summary>
[JsonProperty("Password")]
public string Password{ get; set; }
/// <summary>
/// 私有网络ID如果不传则默认选择基础网络请使用私有网络列表查询vpc-sad23jfdfk
/// </summary>
[JsonProperty("VpcId")]
public string VpcId{ get; set; }
/// <summary>
/// 基础网络下, subnetId无效 vpc子网下取值以查询子网列表subnet-fdj24n34j2
/// </summary>
[JsonProperty("SubnetId")]
public string SubnetId{ get; set; }
/// <summary>
/// 项目id取值以用户账户>用户账户相关接口查询>项目列表返回的projectId为准
/// </summary>
[JsonProperty("ProjectId")]
public long? ProjectId{ get; set; }
/// <summary>
/// 自动续费标识。0 - 默认状态手动续费1 - 自动续费2 - 明确不自动续费
/// </summary>
[JsonProperty("AutoRenew")]
public ulong? AutoRenew{ get; set; }
/// <summary>
/// 安全组id数组
/// </summary>
[JsonProperty("SecurityGroupIdList")]
public string[] SecurityGroupIdList{ get; set; }
/// <summary>
/// 用户自定义的端口 不填则默认为6379范围[1024,65535]
/// </summary>
[JsonProperty("VPort")]
public ulong? VPort{ get; set; }
/// <summary>
/// 实例分片数量Redis2.8主从版、CKV主从版和Redis2.8单机版、Redis4.0主从版不需要填写
/// </summary>
[JsonProperty("RedisShardNum")]
public long? RedisShardNum{ get; set; }
/// <summary>
/// 实例副本数量Redis2.8主从版、CKV主从版和Redis2.8单机版不需要填写
/// </summary>
[JsonProperty("RedisReplicasNum")]
public long? RedisReplicasNum{ get; set; }
/// <summary>
/// 是否支持副本只读Redis2.8主从版、CKV主从版和Redis2.8单机版不需要填写
/// </summary>
[JsonProperty("ReplicasReadonly")]
public bool? ReplicasReadonly{ get; set; }
/// <summary>
/// 实例名称
/// </summary>
[JsonProperty("InstanceName")]
public string InstanceName{ get; set; }
/// <summary>
/// 是否支持免密true-免密实例false-非免密实例,默认为非免密实例
/// </summary>
[JsonProperty("NoAuth")]
public bool? NoAuth{ 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 + "ZoneId", this.ZoneId);
this.SetParamSimple(map, prefix + "TypeId", this.TypeId);
this.SetParamSimple(map, prefix + "MemSize", this.MemSize);
this.SetParamSimple(map, prefix + "GoodsNum", this.GoodsNum);
this.SetParamSimple(map, prefix + "Period", this.Period);
this.SetParamSimple(map, prefix + "BillingMode", this.BillingMode);
this.SetParamSimple(map, prefix + "Password", this.Password);
this.SetParamSimple(map, prefix + "VpcId", this.VpcId);
this.SetParamSimple(map, prefix + "SubnetId", this.SubnetId);
this.SetParamSimple(map, prefix + "ProjectId", this.ProjectId);
this.SetParamSimple(map, prefix + "AutoRenew", this.AutoRenew);
this.SetParamArraySimple(map, prefix + "SecurityGroupIdList.", this.SecurityGroupIdList);
this.SetParamSimple(map, prefix + "VPort", this.VPort);
this.SetParamSimple(map, prefix + "RedisShardNum", this.RedisShardNum);
this.SetParamSimple(map, prefix + "RedisReplicasNum", this.RedisReplicasNum);
this.SetParamSimple(map, prefix + "ReplicasReadonly", this.ReplicasReadonly);
this.SetParamSimple(map, prefix + "InstanceName", this.InstanceName);
this.SetParamSimple(map, prefix + "NoAuth", this.NoAuth);
}
}
}