Files
2026-02-07 15:48:27 +08:00

142 lines
4.9 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 VpnConnection : AbstractModel
{
/// <summary>
/// 通道实例ID。
/// </summary>
[JsonProperty("VpnConnectionId")]
public string VpnConnectionId{ get; set; }
/// <summary>
/// 通道名称。
/// </summary>
[JsonProperty("VpnConnectionName")]
public string VpnConnectionName{ get; set; }
/// <summary>
/// VPC实例ID。
/// </summary>
[JsonProperty("VpcId")]
public string VpcId{ get; set; }
/// <summary>
/// VPN网关实例ID。
/// </summary>
[JsonProperty("VpnGatewayId")]
public string VpnGatewayId{ get; set; }
/// <summary>
/// 对端网关实例ID。
/// </summary>
[JsonProperty("CustomerGatewayId")]
public string CustomerGatewayId{ get; set; }
/// <summary>
/// 预共享密钥。
/// </summary>
[JsonProperty("PreShareKey")]
public string PreShareKey{ get; set; }
/// <summary>
/// 通道传输协议。
/// </summary>
[JsonProperty("VpnProto")]
public string VpnProto{ get; set; }
/// <summary>
/// 通道加密协议。
/// </summary>
[JsonProperty("EncryptProto")]
public string EncryptProto{ get; set; }
/// <summary>
/// 路由类型。
/// </summary>
[JsonProperty("RouteType")]
public string RouteType{ get; set; }
/// <summary>
/// 创建时间。
/// </summary>
[JsonProperty("CreatedTime")]
public string CreatedTime{ get; set; }
/// <summary>
/// 通道的生产状态PENDING生产中AVAILABLE运行中DELETING删除中。
/// </summary>
[JsonProperty("State")]
public string State{ get; set; }
/// <summary>
/// 通道连接状态AVAILABLE已连接。
/// </summary>
[JsonProperty("NetStatus")]
public string NetStatus{ get; set; }
/// <summary>
/// SPD。
/// </summary>
[JsonProperty("SecurityPolicyDatabaseSet")]
public SecurityPolicyDatabase[] SecurityPolicyDatabaseSet{ get; set; }
/// <summary>
/// IKE选项。
/// </summary>
[JsonProperty("IKEOptionsSpecification")]
public IKEOptionsSpecification IKEOptionsSpecification{ get; set; }
/// <summary>
/// IPSEC选择。
/// </summary>
[JsonProperty("IPSECOptionsSpecification")]
public IPSECOptionsSpecification IPSECOptionsSpecification{ 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 + "VpnConnectionId", this.VpnConnectionId);
this.SetParamSimple(map, prefix + "VpnConnectionName", this.VpnConnectionName);
this.SetParamSimple(map, prefix + "VpcId", this.VpcId);
this.SetParamSimple(map, prefix + "VpnGatewayId", this.VpnGatewayId);
this.SetParamSimple(map, prefix + "CustomerGatewayId", this.CustomerGatewayId);
this.SetParamSimple(map, prefix + "PreShareKey", this.PreShareKey);
this.SetParamSimple(map, prefix + "VpnProto", this.VpnProto);
this.SetParamSimple(map, prefix + "EncryptProto", this.EncryptProto);
this.SetParamSimple(map, prefix + "RouteType", this.RouteType);
this.SetParamSimple(map, prefix + "CreatedTime", this.CreatedTime);
this.SetParamSimple(map, prefix + "State", this.State);
this.SetParamSimple(map, prefix + "NetStatus", this.NetStatus);
this.SetParamArrayObj(map, prefix + "SecurityPolicyDatabaseSet.", this.SecurityPolicyDatabaseSet);
this.SetParamObj(map, prefix + "IKEOptionsSpecification.", this.IKEOptionsSpecification);
this.SetParamObj(map, prefix + "IPSECOptionsSpecification.", this.IPSECOptionsSpecification);
}
}
}