/* * 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 CreateDirectConnectGatewayRequest : AbstractModel { /// /// 专线网关名称 /// [JsonProperty("DirectConnectGatewayName")] public string DirectConnectGatewayName{ get; set; } /// /// 关联网络类型,可选值: ///
  • VPC - 私有网络
  • ///
  • CCN - 云联网
  • ///
    [JsonProperty("NetworkType")] public string NetworkType{ get; set; } /// ///
  • 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; } /// /// For internal usage only. DO NOT USE IT. /// internal override void ToMap(Dictionary map, string prefix) { this.SetParamSimple(map, prefix + "DirectConnectGatewayName", this.DirectConnectGatewayName); this.SetParamSimple(map, prefix + "NetworkType", this.NetworkType); this.SetParamSimple(map, prefix + "NetworkInstanceId", this.NetworkInstanceId); this.SetParamSimple(map, prefix + "GatewayType", this.GatewayType); } } }