Files
g.hnyhua.cn/TencentCloud/Vpc/V20170312/Models/CreateDirectConnectGatewayRequest.cs

70 lines
2.6 KiB
C#
Raw Normal View History

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