lib/v20170312/models.rb in tencentcloud-sdk-vpc-3.0.855 vs lib/v20170312/models.rb in tencentcloud-sdk-vpc-3.0.856

- old
+ new

@@ -5175,14 +5175,16 @@ # @type DpdAction: String # @param Route: 创建通道路由信息。 # @type Route: :class:`Tencentcloud::Vpc.v20170312.models.CreateVpnConnRoute` # @param BgpConfig: BGP配置。 # @type BgpConfig: :class:`Tencentcloud::Vpc.v20170312.models.BgpConfig` + # @param HealthCheckConfig: 健康检查NQA配置。 + # @type HealthCheckConfig: :class:`Tencentcloud::Vpc.v20170312.models.HealthCheckConfig` - attr_accessor :VpnGatewayId, :CustomerGatewayId, :VpnConnectionName, :PreShareKey, :VpcId, :SecurityPolicyDatabases, :IKEOptionsSpecification, :IPSECOptionsSpecification, :Tags, :EnableHealthCheck, :HealthCheckLocalIp, :HealthCheckRemoteIp, :RouteType, :NegotiationType, :DpdEnable, :DpdTimeout, :DpdAction, :Route, :BgpConfig + attr_accessor :VpnGatewayId, :CustomerGatewayId, :VpnConnectionName, :PreShareKey, :VpcId, :SecurityPolicyDatabases, :IKEOptionsSpecification, :IPSECOptionsSpecification, :Tags, :EnableHealthCheck, :HealthCheckLocalIp, :HealthCheckRemoteIp, :RouteType, :NegotiationType, :DpdEnable, :DpdTimeout, :DpdAction, :Route, :BgpConfig, :HealthCheckConfig - def initialize(vpngatewayid=nil, customergatewayid=nil, vpnconnectionname=nil, presharekey=nil, vpcid=nil, securitypolicydatabases=nil, ikeoptionsspecification=nil, ipsecoptionsspecification=nil, tags=nil, enablehealthcheck=nil, healthchecklocalip=nil, healthcheckremoteip=nil, routetype=nil, negotiationtype=nil, dpdenable=nil, dpdtimeout=nil, dpdaction=nil, route=nil, bgpconfig=nil) + def initialize(vpngatewayid=nil, customergatewayid=nil, vpnconnectionname=nil, presharekey=nil, vpcid=nil, securitypolicydatabases=nil, ikeoptionsspecification=nil, ipsecoptionsspecification=nil, tags=nil, enablehealthcheck=nil, healthchecklocalip=nil, healthcheckremoteip=nil, routetype=nil, negotiationtype=nil, dpdenable=nil, dpdtimeout=nil, dpdaction=nil, route=nil, bgpconfig=nil, healthcheckconfig=nil) @VpnGatewayId = vpngatewayid @CustomerGatewayId = customergatewayid @VpnConnectionName = vpnconnectionname @PreShareKey = presharekey @VpcId = vpcid @@ -5198,10 +5200,11 @@ @DpdEnable = dpdenable @DpdTimeout = dpdtimeout @DpdAction = dpdaction @Route = route @BgpConfig = bgpconfig + @HealthCheckConfig = healthcheckconfig end def deserialize(params) @VpnGatewayId = params['VpnGatewayId'] @CustomerGatewayId = params['CustomerGatewayId'] @@ -5246,10 +5249,14 @@ end unless params['BgpConfig'].nil? @BgpConfig = BgpConfig.new @BgpConfig.deserialize(params['BgpConfig']) end + unless params['HealthCheckConfig'].nil? + @HealthCheckConfig = HealthCheckConfig.new + @HealthCheckConfig.deserialize(params['HealthCheckConfig']) + end end end # CreateVpnConnection返回参数结构体 class CreateVpnConnectionResponse < TencentCloud::Common::AbstractModel @@ -15122,10 +15129,42 @@ def deserialize(params) @RequestId = params['RequestId'] end end + # VPN通道健康检查配置 + class HealthCheckConfig < TencentCloud::Common::AbstractModel + # @param ProbeType: 探测模式,默认值NQA,不可修改。 + # 注意:此字段可能返回 null,表示取不到有效值。 + # @type ProbeType: String + # @param ProbeInterval: 探测间隔,腾讯云两次健康检查间隔时间,范围【1000-5000】,单位ms。 + # 注意:此字段可能返回 null,表示取不到有效值。 + # @type ProbeInterval: Integer + # @param ProbeThreshold: 探测次数,连续N次健康检查失败后执行路由切换,范围【3-8】,单位次。 + # 注意:此字段可能返回 null,表示取不到有效值。 + # @type ProbeThreshold: Integer + # @param ProbeTimeout: 探测超时时间,范围【10-5000】,单位ms。 + # 注意:此字段可能返回 null,表示取不到有效值。 + # @type ProbeTimeout: Integer + + attr_accessor :ProbeType, :ProbeInterval, :ProbeThreshold, :ProbeTimeout + + def initialize(probetype=nil, probeinterval=nil, probethreshold=nil, probetimeout=nil) + @ProbeType = probetype + @ProbeInterval = probeinterval + @ProbeThreshold = probethreshold + @ProbeTimeout = probetimeout + end + + def deserialize(params) + @ProbeType = params['ProbeType'] + @ProbeInterval = params['ProbeInterval'] + @ProbeThreshold = params['ProbeThreshold'] + @ProbeTimeout = params['ProbeTimeout'] + end + end + # IKE配置(Internet Key Exchange,因特网密钥交换),IKE具有一套自我保护机制,用户配置网络安全协议 class IKEOptionsSpecification < TencentCloud::Common::AbstractModel # @param PropoEncryAlgorithm: 加密算法,可选值:'3DES-CBC', 'AES-CBC-128', 'AES-CBS-192', 'AES-CBC-256', 'DES-CBC','SM4', 默认为3DES-CBC # 注意:此字段可能返回 null,表示取不到有效值。 # @type PropoEncryAlgorithm: String @@ -18194,14 +18233,16 @@ # @type DpdTimeout: String # @param DpdAction: DPD超时后的动作。默认为clear。dpdEnable为1(开启)时有效。可取值为clear(断开)和restart(重试) # @type DpdAction: String # @param CustomerGatewayId: 对端网关ID,4.0及以上网关下的通道支持更新。 # @type CustomerGatewayId: String + # @param HealthCheckConfig: 健康检查配置 + # @type HealthCheckConfig: :class:`Tencentcloud::Vpc.v20170312.models.HealthCheckConfig` - attr_accessor :VpnConnectionId, :VpnConnectionName, :PreShareKey, :SecurityPolicyDatabases, :IKEOptionsSpecification, :IPSECOptionsSpecification, :EnableHealthCheck, :HealthCheckLocalIp, :HealthCheckRemoteIp, :NegotiationType, :DpdEnable, :DpdTimeout, :DpdAction, :CustomerGatewayId + attr_accessor :VpnConnectionId, :VpnConnectionName, :PreShareKey, :SecurityPolicyDatabases, :IKEOptionsSpecification, :IPSECOptionsSpecification, :EnableHealthCheck, :HealthCheckLocalIp, :HealthCheckRemoteIp, :NegotiationType, :DpdEnable, :DpdTimeout, :DpdAction, :CustomerGatewayId, :HealthCheckConfig - def initialize(vpnconnectionid=nil, vpnconnectionname=nil, presharekey=nil, securitypolicydatabases=nil, ikeoptionsspecification=nil, ipsecoptionsspecification=nil, enablehealthcheck=nil, healthchecklocalip=nil, healthcheckremoteip=nil, negotiationtype=nil, dpdenable=nil, dpdtimeout=nil, dpdaction=nil, customergatewayid=nil) + def initialize(vpnconnectionid=nil, vpnconnectionname=nil, presharekey=nil, securitypolicydatabases=nil, ikeoptionsspecification=nil, ipsecoptionsspecification=nil, enablehealthcheck=nil, healthchecklocalip=nil, healthcheckremoteip=nil, negotiationtype=nil, dpdenable=nil, dpdtimeout=nil, dpdaction=nil, customergatewayid=nil, healthcheckconfig=nil) @VpnConnectionId = vpnconnectionid @VpnConnectionName = vpnconnectionname @PreShareKey = presharekey @SecurityPolicyDatabases = securitypolicydatabases @IKEOptionsSpecification = ikeoptionsspecification @@ -18212,10 +18253,11 @@ @NegotiationType = negotiationtype @DpdEnable = dpdenable @DpdTimeout = dpdtimeout @DpdAction = dpdaction @CustomerGatewayId = customergatewayid + @HealthCheckConfig = healthcheckconfig end def deserialize(params) @VpnConnectionId = params['VpnConnectionId'] @VpnConnectionName = params['VpnConnectionName'] @@ -18242,10 +18284,14 @@ @NegotiationType = params['NegotiationType'] @DpdEnable = params['DpdEnable'] @DpdTimeout = params['DpdTimeout'] @DpdAction = params['DpdAction'] @CustomerGatewayId = params['CustomerGatewayId'] + unless params['HealthCheckConfig'].nil? + @HealthCheckConfig = HealthCheckConfig.new + @HealthCheckConfig.deserialize(params['HealthCheckConfig']) + end end end # ModifyVpnConnectionAttribute返回参数结构体 class ModifyVpnConnectionAttributeResponse < TencentCloud::Common::AbstractModel @@ -22899,14 +22945,17 @@ # 注意:此字段可能返回 null,表示取不到有效值。 # @type NegotiationType: String # @param BgpConfig: Bgp配置信息 # 注意:此字段可能返回 null,表示取不到有效值。 # @type BgpConfig: :class:`Tencentcloud::Vpc.v20170312.models.BgpConfigAndAsn` + # @param HealthCheckConfig: Nqa配置信息 + # 注意:此字段可能返回 null,表示取不到有效值。 + # @type HealthCheckConfig: :class:`Tencentcloud::Vpc.v20170312.models.HealthCheckConfig` - attr_accessor :VpnConnectionId, :VpnConnectionName, :VpcId, :VpnGatewayId, :CustomerGatewayId, :PreShareKey, :VpnProto, :EncryptProto, :RouteType, :CreatedTime, :State, :NetStatus, :SecurityPolicyDatabaseSet, :IKEOptionsSpecification, :IPSECOptionsSpecification, :EnableHealthCheck, :HealthCheckLocalIp, :HealthCheckRemoteIp, :HealthCheckStatus, :DpdEnable, :DpdTimeout, :DpdAction, :TagSet, :NegotiationType, :BgpConfig + attr_accessor :VpnConnectionId, :VpnConnectionName, :VpcId, :VpnGatewayId, :CustomerGatewayId, :PreShareKey, :VpnProto, :EncryptProto, :RouteType, :CreatedTime, :State, :NetStatus, :SecurityPolicyDatabaseSet, :IKEOptionsSpecification, :IPSECOptionsSpecification, :EnableHealthCheck, :HealthCheckLocalIp, :HealthCheckRemoteIp, :HealthCheckStatus, :DpdEnable, :DpdTimeout, :DpdAction, :TagSet, :NegotiationType, :BgpConfig, :HealthCheckConfig - def initialize(vpnconnectionid=nil, vpnconnectionname=nil, vpcid=nil, vpngatewayid=nil, customergatewayid=nil, presharekey=nil, vpnproto=nil, encryptproto=nil, routetype=nil, createdtime=nil, state=nil, netstatus=nil, securitypolicydatabaseset=nil, ikeoptionsspecification=nil, ipsecoptionsspecification=nil, enablehealthcheck=nil, healthchecklocalip=nil, healthcheckremoteip=nil, healthcheckstatus=nil, dpdenable=nil, dpdtimeout=nil, dpdaction=nil, tagset=nil, negotiationtype=nil, bgpconfig=nil) + def initialize(vpnconnectionid=nil, vpnconnectionname=nil, vpcid=nil, vpngatewayid=nil, customergatewayid=nil, presharekey=nil, vpnproto=nil, encryptproto=nil, routetype=nil, createdtime=nil, state=nil, netstatus=nil, securitypolicydatabaseset=nil, ikeoptionsspecification=nil, ipsecoptionsspecification=nil, enablehealthcheck=nil, healthchecklocalip=nil, healthcheckremoteip=nil, healthcheckstatus=nil, dpdenable=nil, dpdtimeout=nil, dpdaction=nil, tagset=nil, negotiationtype=nil, bgpconfig=nil, healthcheckconfig=nil) @VpnConnectionId = vpnconnectionid @VpnConnectionName = vpnconnectionname @VpcId = vpcid @VpnGatewayId = vpngatewayid @CustomerGatewayId = customergatewayid @@ -22928,10 +22977,11 @@ @DpdTimeout = dpdtimeout @DpdAction = dpdaction @TagSet = tagset @NegotiationType = negotiationtype @BgpConfig = bgpconfig + @HealthCheckConfig = healthcheckconfig end def deserialize(params) @VpnConnectionId = params['VpnConnectionId'] @VpnConnectionName = params['VpnConnectionName'] @@ -22978,9 +23028,13 @@ end @NegotiationType = params['NegotiationType'] unless params['BgpConfig'].nil? @BgpConfig = BgpConfigAndAsn.new @BgpConfig.deserialize(params['BgpConfig']) + end + unless params['HealthCheckConfig'].nil? + @HealthCheckConfig = HealthCheckConfig.new + @HealthCheckConfig.deserialize(params['HealthCheckConfig']) end end end # VPN网关对象。