/*
* 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.Vpc.V20170312.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class AllocateAddressesRequest : AbstractModel
{
///
/// EIP数量。默认值:1。
///
[JsonProperty("AddressCount")]
public long? AddressCount{ get; set; }
///
/// EIP线路类型。默认值:BGP。
/// - 已开通静态单线IP白名单的用户,可选值:
- CMCC:中国移动
/// - CTCC:中国电信
/// - CUCC:中国联通
注意:仅部分地域支持静态单线IP。
///
[JsonProperty("InternetServiceProvider")]
public string InternetServiceProvider{ get; set; }
///
/// EIP计费方式。
/// - 已开通带宽上移白名单的用户,可选值:
- BANDWIDTH_PACKAGE:[共享带宽包](https://cloud.tencent.com/document/product/684/15255)付费(需额外开通共享带宽包白名单)
/// - BANDWIDTH_POSTPAID_BY_HOUR:带宽按小时后付费
/// - TRAFFIC_POSTPAID_BY_HOUR:流量按小时后付费
默认值:TRAFFIC_POSTPAID_BY_HOUR。
/// - 未开通带宽上移白名单的用户,EIP计费方式与其绑定的实例的计费方式一致,无需传递此参数。
///
[JsonProperty("InternetChargeType")]
public string InternetChargeType{ get; set; }
///
/// EIP出带宽上限,单位:Mbps。
/// - 已开通带宽上移白名单的用户,可选值范围取决于EIP计费方式:
- BANDWIDTH_PACKAGE:1 Mbps 至 1000 Mbps
/// - BANDWIDTH_POSTPAID_BY_HOUR:1 Mbps 至 100 Mbps
/// - TRAFFIC_POSTPAID_BY_HOUR:1 Mbps 至 100 Mbps
默认值:1 Mbps。
/// - 未开通带宽上移白名单的用户,EIP出带宽上限取决于与其绑定的实例的公网出带宽上限,无需传递此参数。
///
[JsonProperty("InternetMaxBandwidthOut")]
public long? InternetMaxBandwidthOut{ get; set; }
///
/// EIP类型。默认值:EIP。
/// - 已开通Anycast公网加速白名单的用户,可选值:
- AnycastEIP:加速IP,可参见 [Anycast 公网加速](https://cloud.tencent.com/document/product/644)
注意:仅部分地域支持加速IP。
///
[JsonProperty("AddressType")]
public string AddressType{ get; set; }
///
/// Anycast发布域。
/// - 已开通Anycast公网加速白名单的用户,可选值:
- ANYCAST_ZONE_GLOBAL:全球发布域(需要额外开通Anycast全球加速白名单)
- ANYCAST_ZONE_OVERSEAS:境外发布域
- [已废弃] ANYCAST_ZONE_A:发布域A(已更新为全球发布域)
- [已废弃] ANYCAST_ZONE_B:发布域B(已更新为全球发布域)
默认值:ANYCAST_ZONE_OVERSEAS。
///
[JsonProperty("AnycastZone")]
public string AnycastZone{ get; set; }
///
/// [已废弃] AnycastEIP不再区分是否负载均衡。原参数说明如下:
/// AnycastEIP是否用于绑定负载均衡。
/// - 已开通Anycast公网加速白名单的用户,可选值:
- TRUE:AnycastEIP可绑定对象为负载均衡
/// - FALSE:AnycastEIP可绑定对象为云服务器、NAT网关、高可用虚拟IP等
默认值:FALSE。
///
[JsonProperty("ApplicableForCLB")]
public bool? ApplicableForCLB{ get; set; }
///
/// 需要关联的标签列表。
///
[JsonProperty("Tags")]
public Tag[] Tags{ get; set; }
///
/// BGP带宽包唯一ID参数。设定该参数且InternetChargeType为BANDWIDTH_PACKAGE,则表示创建的EIP加入该BGP带宽包并采用带宽包计费
///
[JsonProperty("BandwidthPackageId")]
public string BandwidthPackageId{ get; set; }
///
/// For internal usage only. DO NOT USE IT.
///
internal override void ToMap(Dictionary map, string prefix)
{
this.SetParamSimple(map, prefix + "AddressCount", this.AddressCount);
this.SetParamSimple(map, prefix + "InternetServiceProvider", this.InternetServiceProvider);
this.SetParamSimple(map, prefix + "InternetChargeType", this.InternetChargeType);
this.SetParamSimple(map, prefix + "InternetMaxBandwidthOut", this.InternetMaxBandwidthOut);
this.SetParamSimple(map, prefix + "AddressType", this.AddressType);
this.SetParamSimple(map, prefix + "AnycastZone", this.AnycastZone);
this.SetParamSimple(map, prefix + "ApplicableForCLB", this.ApplicableForCLB);
this.SetParamArrayObj(map, prefix + "Tags.", this.Tags);
this.SetParamSimple(map, prefix + "BandwidthPackageId", this.BandwidthPackageId);
}
}
}