Files
g.hnyhua.cn/TencentCloud/Cvm/V20170312/Models/InternetAccessible.cs

65 lines
3.1 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.Cvm.V20170312.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class InternetAccessible : AbstractModel
{
/// <summary>
/// 网络计费类型。取值范围:<br><li>BANDWIDTH_PREPAID预付费按带宽结算<br><li>TRAFFIC_POSTPAID_BY_HOUR流量按小时后付费<br><li>BANDWIDTH_POSTPAID_BY_HOUR带宽按小时后付费<br><li>BANDWIDTH_PACKAGE带宽包用户<br>默认取值:非带宽包用户默认与子机付费类型保持一致。
/// </summary>
[JsonProperty("InternetChargeType")]
public string InternetChargeType{ get; set; }
/// <summary>
/// 公网出带宽上限单位Mbps。默认值0Mbps。不同机型带宽上限范围不一致具体限制详见[购买网络带宽](https://cloud.tencent.com/document/product/213/12523)。
/// </summary>
[JsonProperty("InternetMaxBandwidthOut")]
public long? InternetMaxBandwidthOut{ get; set; }
/// <summary>
/// 是否分配公网IP。取值范围<br><li>TRUE表示分配公网IP<br><li>FALSE表示不分配公网IP<br><br>当公网带宽大于0Mbps时可自由选择开通与否默认开通公网IP当公网带宽为0则不允许分配公网IP。该参数仅在RunInstances接口中作为入参使用。
/// </summary>
[JsonProperty("PublicIpAssigned")]
public bool? PublicIpAssigned{ get; set; }
/// <summary>
/// 带宽包ID。可通过[`DescribeBandwidthPackages`](https://cloud.tencent.com/document/api/215/19209)接口返回值中的`BandwidthPackageId`获取。该参数仅在RunInstances接口中作为入参使用。
/// </summary>
[JsonProperty("BandwidthPackageId")]
public string BandwidthPackageId{ 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 + "InternetChargeType", this.InternetChargeType);
this.SetParamSimple(map, prefix + "InternetMaxBandwidthOut", this.InternetMaxBandwidthOut);
this.SetParamSimple(map, prefix + "PublicIpAssigned", this.PublicIpAssigned);
this.SetParamSimple(map, prefix + "BandwidthPackageId", this.BandwidthPackageId);
}
}
}