Files
2026-02-07 15:48:27 +08:00

116 lines
4.2 KiB
C#
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
/*
* 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 NatGateway : AbstractModel
{
/// <summary>
/// NAT网关的ID。
/// </summary>
[JsonProperty("NatGatewayId")]
public string NatGatewayId{ get; set; }
/// <summary>
/// NAT网关的名称。
/// </summary>
[JsonProperty("NatGatewayName")]
public string NatGatewayName{ get; set; }
/// <summary>
/// NAT网关创建的时间。
/// </summary>
[JsonProperty("CreatedTime")]
public string CreatedTime{ get; set; }
/// <summary>
/// NAT网关的状态。
/// 'PENDING':生产中,'DELETING':删除中,'AVAILABLE':运行中,'UPDATING':升级中,
/// FAILED失败。
/// </summary>
[JsonProperty("State")]
public string State{ get; set; }
/// <summary>
/// 网关最大外网出带宽(单位:Mbps)。
/// </summary>
[JsonProperty("InternetMaxBandwidthOut")]
public ulong? InternetMaxBandwidthOut{ get; set; }
/// <summary>
/// 网关并发连接上限。
/// </summary>
[JsonProperty("MaxConcurrentConnection")]
public ulong? MaxConcurrentConnection{ get; set; }
/// <summary>
/// 绑定NAT网关的公网IP对象数组。
/// </summary>
[JsonProperty("PublicIpAddressSet")]
public NatGatewayAddress[] PublicIpAddressSet{ get; set; }
/// <summary>
/// NAT网关网络状态。“AVAILABLE”:运行中, “UNAVAILABLE”:不可用, “INSUFFICIENT”:欠费停服。
/// </summary>
[JsonProperty("NetworkState")]
public string NetworkState{ get; set; }
/// <summary>
/// NAT网关的端口转发规则。
/// </summary>
[JsonProperty("DestinationIpPortTranslationNatRuleSet")]
public DestinationIpPortTranslationNatRule[] DestinationIpPortTranslationNatRuleSet{ get; set; }
/// <summary>
/// VPC实例ID。
/// </summary>
[JsonProperty("VpcId")]
public string VpcId{ get; set; }
/// <summary>
/// NAT网关所在的可用区。
/// </summary>
[JsonProperty("Zone")]
public string Zone{ 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 + "NatGatewayId", this.NatGatewayId);
this.SetParamSimple(map, prefix + "NatGatewayName", this.NatGatewayName);
this.SetParamSimple(map, prefix + "CreatedTime", this.CreatedTime);
this.SetParamSimple(map, prefix + "State", this.State);
this.SetParamSimple(map, prefix + "InternetMaxBandwidthOut", this.InternetMaxBandwidthOut);
this.SetParamSimple(map, prefix + "MaxConcurrentConnection", this.MaxConcurrentConnection);
this.SetParamArrayObj(map, prefix + "PublicIpAddressSet.", this.PublicIpAddressSet);
this.SetParamSimple(map, prefix + "NetworkState", this.NetworkState);
this.SetParamArrayObj(map, prefix + "DestinationIpPortTranslationNatRuleSet.", this.DestinationIpPortTranslationNatRuleSet);
this.SetParamSimple(map, prefix + "VpcId", this.VpcId);
this.SetParamSimple(map, prefix + "Zone", this.Zone);
}
}
}