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