Files
g.hnyhua.cn/TencentCloud/Vpc/V20170312/Models/DirectConnectGateway.cs
2026-02-07 15:48:27 +08:00

130 lines
4.7 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 DirectConnectGateway : AbstractModel
{
/// <summary>
/// 专线网关`ID`。
/// </summary>
[JsonProperty("DirectConnectGatewayId")]
public string DirectConnectGatewayId{ get; set; }
/// <summary>
/// 专线网关名称。
/// </summary>
[JsonProperty("DirectConnectGatewayName")]
public string DirectConnectGatewayName{ get; set; }
/// <summary>
/// 专线网关关联`VPC`实例`ID`。
/// </summary>
[JsonProperty("VpcId")]
public string VpcId{ get; set; }
/// <summary>
/// 关联网络类型:
/// <li>`VPC` - 私有网络</li>
/// <li>`CCN` - 云联网</li>
/// </summary>
[JsonProperty("NetworkType")]
public string NetworkType{ get; set; }
/// <summary>
/// 关联网络实例`ID`
/// <li>`NetworkType`为`VPC`时,这里为私有网络实例`ID`</li>
/// <li>`NetworkType`为`CCN`时,这里为云联网实例`ID`</li>
/// </summary>
[JsonProperty("NetworkInstanceId")]
public string NetworkInstanceId{ get; set; }
/// <summary>
/// 网关类型:
/// <li>NORMAL - 标准型,注:云联网只支持标准型</li>
/// <li>NAT - NAT型</li>
/// NAT类型支持网络地址转换配置类型确定后不能修改一个私有网络可以创建一个NAT类型的专线网关和一个非NAT类型的专线网关
/// </summary>
[JsonProperty("GatewayType")]
public string GatewayType{ get; set; }
/// <summary>
/// 创建时间。
/// </summary>
[JsonProperty("CreateTime")]
public string CreateTime{ get; set; }
/// <summary>
/// 专线网关IP。
/// </summary>
[JsonProperty("DirectConnectGatewayIp")]
public string DirectConnectGatewayIp{ get; set; }
/// <summary>
/// 专线网关关联`CCN`实例`ID`。
/// </summary>
[JsonProperty("CcnId")]
public string CcnId{ get; set; }
/// <summary>
/// 云联网路由学习类型:
/// <li>`BGP` - 自动学习。</li>
/// <li>`STATIC` - 静态,即用户配置。</li>
/// </summary>
[JsonProperty("CcnRouteType")]
public string CcnRouteType{ get; set; }
/// <summary>
/// 是否启用BGP。
/// </summary>
[JsonProperty("EnableBGP")]
public bool? EnableBGP{ get; set; }
/// <summary>
/// 开启和关闭BGP的community属性。
/// </summary>
[JsonProperty("EnableBGPCommunity")]
public bool? EnableBGPCommunity{ 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 + "DirectConnectGatewayId", this.DirectConnectGatewayId);
this.SetParamSimple(map, prefix + "DirectConnectGatewayName", this.DirectConnectGatewayName);
this.SetParamSimple(map, prefix + "VpcId", this.VpcId);
this.SetParamSimple(map, prefix + "NetworkType", this.NetworkType);
this.SetParamSimple(map, prefix + "NetworkInstanceId", this.NetworkInstanceId);
this.SetParamSimple(map, prefix + "GatewayType", this.GatewayType);
this.SetParamSimple(map, prefix + "CreateTime", this.CreateTime);
this.SetParamSimple(map, prefix + "DirectConnectGatewayIp", this.DirectConnectGatewayIp);
this.SetParamSimple(map, prefix + "CcnId", this.CcnId);
this.SetParamSimple(map, prefix + "CcnRouteType", this.CcnRouteType);
this.SetParamSimple(map, prefix + "EnableBGP", this.EnableBGP);
this.SetParamSimple(map, prefix + "EnableBGPCommunity", this.EnableBGPCommunity);
}
}
}