Files

163 lines
5.9 KiB
C#
Raw Permalink 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.Vpc.V20170312.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class VpnGateway : AbstractModel
{
/// <summary>
/// 网关实例ID。
/// </summary>
[JsonProperty("VpnGatewayId")]
public string VpnGatewayId{ get; set; }
/// <summary>
/// VPC实例ID。
/// </summary>
[JsonProperty("VpcId")]
public string VpcId{ get; set; }
/// <summary>
/// 网关实例名称。
/// </summary>
[JsonProperty("VpnGatewayName")]
public string VpnGatewayName{ get; set; }
/// <summary>
/// 网关实例类型:'IPSEC', 'SSL','CCN'。
/// </summary>
[JsonProperty("Type")]
public string Type{ get; set; }
/// <summary>
/// 网关实例状态, 'PENDING':生产中,'DELETING':删除中,'AVAILABLE':运行中。
/// </summary>
[JsonProperty("State")]
public string State{ get; set; }
/// <summary>
/// 网关公网IP。
/// </summary>
[JsonProperty("PublicIpAddress")]
public string PublicIpAddress{ get; set; }
/// <summary>
/// 网关续费类型:'NOTIFY_AND_MANUAL_RENEW':手动续费,'NOTIFY_AND_AUTO_RENEW':自动续费,'NOT_NOTIFY_AND_NOT_RENEW':到期不续费。
/// </summary>
[JsonProperty("RenewFlag")]
public string RenewFlag{ get; set; }
/// <summary>
/// 网关付费类型POSTPAID_BY_HOUR按小时后付费PREPAID包年包月预付费
/// </summary>
[JsonProperty("InstanceChargeType")]
public string InstanceChargeType{ get; set; }
/// <summary>
/// 网关出带宽。
/// </summary>
[JsonProperty("InternetMaxBandwidthOut")]
public ulong? InternetMaxBandwidthOut{ get; set; }
/// <summary>
/// 创建时间。
/// </summary>
[JsonProperty("CreatedTime")]
public string CreatedTime{ get; set; }
/// <summary>
/// 预付费网关过期时间。
/// </summary>
[JsonProperty("ExpiredTime")]
public string ExpiredTime{ get; set; }
/// <summary>
/// 公网IP是否被封堵。
/// </summary>
[JsonProperty("IsAddressBlocked")]
public bool? IsAddressBlocked{ get; set; }
/// <summary>
/// 计费模式变更PREPAID_TO_POSTPAID包年包月预付费到期转按小时后付费。
/// </summary>
[JsonProperty("NewPurchasePlan")]
public string NewPurchasePlan{ get; set; }
/// <summary>
/// 网关计费装PROTECTIVELY_ISOLATED被安全隔离的实例NORMAL正常。
/// </summary>
[JsonProperty("RestrictState")]
public string RestrictState{ get; set; }
/// <summary>
/// 可用区ap-guangzhou-2
/// </summary>
[JsonProperty("Zone")]
public string Zone{ get; set; }
/// <summary>
/// 网关带宽配额信息
/// </summary>
[JsonProperty("VpnGatewayQuotaSet")]
public VpnGatewayQuota[] VpnGatewayQuotaSet{ get; set; }
/// <summary>
/// 网关实例版本信息
/// </summary>
[JsonProperty("Version")]
public string Version{ get; set; }
/// <summary>
/// Type值为CCN时该值表示云联网实例ID
/// </summary>
[JsonProperty("NetworkInstanceId")]
public string NetworkInstanceId{ 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 + "VpnGatewayId", this.VpnGatewayId);
this.SetParamSimple(map, prefix + "VpcId", this.VpcId);
this.SetParamSimple(map, prefix + "VpnGatewayName", this.VpnGatewayName);
this.SetParamSimple(map, prefix + "Type", this.Type);
this.SetParamSimple(map, prefix + "State", this.State);
this.SetParamSimple(map, prefix + "PublicIpAddress", this.PublicIpAddress);
this.SetParamSimple(map, prefix + "RenewFlag", this.RenewFlag);
this.SetParamSimple(map, prefix + "InstanceChargeType", this.InstanceChargeType);
this.SetParamSimple(map, prefix + "InternetMaxBandwidthOut", this.InternetMaxBandwidthOut);
this.SetParamSimple(map, prefix + "CreatedTime", this.CreatedTime);
this.SetParamSimple(map, prefix + "ExpiredTime", this.ExpiredTime);
this.SetParamSimple(map, prefix + "IsAddressBlocked", this.IsAddressBlocked);
this.SetParamSimple(map, prefix + "NewPurchasePlan", this.NewPurchasePlan);
this.SetParamSimple(map, prefix + "RestrictState", this.RestrictState);
this.SetParamSimple(map, prefix + "Zone", this.Zone);
this.SetParamArrayObj(map, prefix + "VpnGatewayQuotaSet.", this.VpnGatewayQuotaSet);
this.SetParamSimple(map, prefix + "Version", this.Version);
this.SetParamSimple(map, prefix + "NetworkInstanceId", this.NetworkInstanceId);
}
}
}