Files
g.hnyhua.cn/TencentCloud/Clb/V20180317/Models/CreateLoadBalancerRequest.cs

131 lines
5.8 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.Clb.V20180317.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class CreateLoadBalancerRequest : AbstractModel
{
/// <summary>
/// 负载均衡实例的网络类型:
/// OPEN公网属性 INTERNAL内网属性。
/// </summary>
[JsonProperty("LoadBalancerType")]
public string LoadBalancerType{ get; set; }
/// <summary>
/// 负载均衡实例的类型。1通用的负载均衡实例目前只支持传入1
/// </summary>
[JsonProperty("Forward")]
public long? Forward{ get; set; }
/// <summary>
/// 负载均衡实例的名称只在创建一个实例的时候才会生效。规则1-50 个英文、汉字、数字、连接线“-”或下划线“_”。
/// 注意:如果名称与系统中已有负载均衡实例的名称相同,则系统将会自动生成此次创建的负载均衡实例的名称。
/// </summary>
[JsonProperty("LoadBalancerName")]
public string LoadBalancerName{ get; set; }
/// <summary>
/// 负载均衡后端目标设备所属的网络 ID如vpc-12345678可以通过 DescribeVpcEx 接口获取。 不传此参数则默认为基础网络("0")。
/// </summary>
[JsonProperty("VpcId")]
public string VpcId{ get; set; }
/// <summary>
/// 在私有网络内购买内网负载均衡实例的情况下,必须指定子网 ID内网负载均衡实例的 VIP 将从这个子网中产生。
/// </summary>
[JsonProperty("SubnetId")]
public string SubnetId{ get; set; }
/// <summary>
/// 负载均衡实例所属的项目 ID可以通过 DescribeProject 接口获取。不传此参数则视为默认项目。
/// </summary>
[JsonProperty("ProjectId")]
public long? ProjectId{ get; set; }
/// <summary>
/// 仅适用于公网负载均衡。IP版本可取值IPV4、IPV6、IPv6FullChain默认值 IPV4。
/// </summary>
[JsonProperty("AddressIPVersion")]
public string AddressIPVersion{ get; set; }
/// <summary>
/// 创建负载均衡的个数,默认值 1。
/// </summary>
[JsonProperty("Number")]
public ulong? Number{ get; set; }
/// <summary>
/// 仅适用于公网负载均衡。设置跨可用区容灾时的主可用区ID例如 100001 或 ap-guangzhou-1
/// 注:主可用区是需要承载流量的可用区,备可用区默认不承载流量,主可用区不可用时才使用备可用区,平台将为您自动选择最佳备可用区。可通过 DescribeMasterZones 接口查询一个地域的主可用区的列表。
/// </summary>
[JsonProperty("MasterZoneId")]
public string MasterZoneId{ get; set; }
/// <summary>
/// 仅适用于公网负载均衡。可用区ID指定可用区以创建负载均衡实例。如ap-guangzhou-1
/// </summary>
[JsonProperty("ZoneId")]
public string ZoneId{ get; set; }
/// <summary>
/// 仅适用于公网负载均衡。负载均衡的网络计费模式。
/// </summary>
[JsonProperty("InternetAccessible")]
public InternetAccessible InternetAccessible{ get; set; }
/// <summary>
/// 仅适用于公网负载均衡。CMCC | CTCC | CUCC分别对应 移动 | 电信 | 联通如果不指定本参数则默认使用BGP。可通过 DescribeSingleIsp 接口查询一个地域所支持的Isp。如果指定运营商则网络计费式只能使用按带宽包计费(BANDWIDTH_PACKAGE)。
/// </summary>
[JsonProperty("VipIsp")]
public string VipIsp{ get; set; }
/// <summary>
/// 购买负载均衡同时,给负载均衡打上标签
/// </summary>
[JsonProperty("Tags")]
public TagInfo[] Tags{ 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 + "LoadBalancerType", this.LoadBalancerType);
this.SetParamSimple(map, prefix + "Forward", this.Forward);
this.SetParamSimple(map, prefix + "LoadBalancerName", this.LoadBalancerName);
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 + "AddressIPVersion", this.AddressIPVersion);
this.SetParamSimple(map, prefix + "Number", this.Number);
this.SetParamSimple(map, prefix + "MasterZoneId", this.MasterZoneId);
this.SetParamSimple(map, prefix + "ZoneId", this.ZoneId);
this.SetParamObj(map, prefix + "InternetAccessible.", this.InternetAccessible);
this.SetParamSimple(map, prefix + "VipIsp", this.VipIsp);
this.SetParamArrayObj(map, prefix + "Tags.", this.Tags);
}
}
}