/* * 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.Bmvpc.V20180625.Models { using Newtonsoft.Json; using System.Collections.Generic; using TencentCloud.Common; public class RoutePolicy : AbstractModel { /// /// 目的网段 /// [JsonProperty("DestinationCidrBlock")] public string DestinationCidrBlock{ get; set; } /// /// 下一跳类型,目前我们支持的类型有: /// LOCAL:物理机默认路由; /// VPN:VPN网关; /// PEERCONNECTION:对等连接; /// CPM:物理机自定义路由; /// CCN:云联网; /// TGW:公网默认路由; /// SSLVPN : SSH SSL VPN网关。 /// [JsonProperty("GatewayType")] public string GatewayType{ get; set; } /// /// 下一跳地址,这里只需要指定不同下一跳类型的网关ID,系统会自动匹配到下一跳地址。 /// [JsonProperty("GatewayId")] public string GatewayId{ get; set; } /// /// 路由策略描述。 /// [JsonProperty("RouteDescription")] public string RouteDescription{ get; set; } /// /// 路由策略ID /// [JsonProperty("RoutePolicyId")] public string RoutePolicyId{ get; set; } /// /// 路由类型,目前我们支持的类型有: /// USER:用户自定义路由; /// NETD:网络探测路由,创建网络探测实例时,系统默认下发,不可编辑与删除; /// CCN:云联网路由,系统默认下发,不可编辑与删除。 /// 用户只能添加和编辑USER 类型的路由。 /// [JsonProperty("RoutePolicyType")] public string RoutePolicyType{ get; set; } /// /// 是否启用 /// [JsonProperty("Enabled")] public bool? Enabled{ get; set; } /// /// For internal usage only. DO NOT USE IT. /// internal override void ToMap(Dictionary map, string prefix) { this.SetParamSimple(map, prefix + "DestinationCidrBlock", this.DestinationCidrBlock); this.SetParamSimple(map, prefix + "GatewayType", this.GatewayType); this.SetParamSimple(map, prefix + "GatewayId", this.GatewayId); this.SetParamSimple(map, prefix + "RouteDescription", this.RouteDescription); this.SetParamSimple(map, prefix + "RoutePolicyId", this.RoutePolicyId); this.SetParamSimple(map, prefix + "RoutePolicyType", this.RoutePolicyType); this.SetParamSimple(map, prefix + "Enabled", this.Enabled); } } }