lib/v20180317/models.rb in tencentcloud-sdk-clb-3.0.485 vs lib/v20180317/models.rb in tencentcloud-sdk-clb-3.0.486
- old
+ new
@@ -515,13 +515,13 @@
class CertInfo < TencentCloud::Common::AbstractModel
# @param CertId: 证书 ID,如果不填写此项则必须上传证书内容,包括CertName, CertContent,若为服务端证书必须包含CertKey。
# @type CertId: String
# @param CertName: 上传证书的名称,如果没有 CertId,则此项必传。
# @type CertName: String
- # @param CertContent: 上传证书的公钥,如果没有 CertId,则此项必传。
+ # @param CertContent: 上传证书的公钥;如果没有 CertId,则此项必传。
# @type CertContent: String
- # @param CertKey: 上传服务端证书的私钥,如果没有 CertId,则此项必传。
+ # @param CertKey: 上传服务端证书的私钥;如果没有 CertId,则此项必传。
# @type CertKey: String
attr_accessor :CertId, :CertName, :CertContent, :CertKey
def initialize(certid=nil, certname=nil, certcontent=nil, certkey=nil)
@@ -1273,14 +1273,18 @@
# @type EndPort: Integer
# @param DeregisterTargetRst: 解绑后端目标时,是否发RST给客户端,此参数仅适用于TCP监听器。
# @type DeregisterTargetRst: Boolean
# @param MultiCertInfo: 证书信息,支持同时传入不同算法类型的多本服务端证书;此参数仅适用于未开启SNI特性的HTTPS监听器。此参数和Certificate不能同时传入。
# @type MultiCertInfo: :class:`Tencentcloud::Clb.v20180317.models.MultiCertInfo`
+ # @param MaxConn: 监听器最大连接数,只有TCP/UDP/TCP_SSL/QUIC监听器支持,不传或者传-1表示监听器维度不限速。
+ # @type MaxConn: Integer
+ # @param MaxCps: 监听器最大新增连接数,只有TCP/UDP/TCP_SSL/QUIC监听器支持,不传或者传-1表示监听器维度不限速。
+ # @type MaxCps: Integer
- attr_accessor :LoadBalancerId, :Ports, :Protocol, :ListenerNames, :HealthCheck, :Certificate, :SessionExpireTime, :Scheduler, :SniSwitch, :TargetType, :SessionType, :KeepaliveEnable, :EndPort, :DeregisterTargetRst, :MultiCertInfo
+ attr_accessor :LoadBalancerId, :Ports, :Protocol, :ListenerNames, :HealthCheck, :Certificate, :SessionExpireTime, :Scheduler, :SniSwitch, :TargetType, :SessionType, :KeepaliveEnable, :EndPort, :DeregisterTargetRst, :MultiCertInfo, :MaxConn, :MaxCps
- def initialize(loadbalancerid=nil, ports=nil, protocol=nil, listenernames=nil, healthcheck=nil, certificate=nil, sessionexpiretime=nil, scheduler=nil, sniswitch=nil, targettype=nil, sessiontype=nil, keepaliveenable=nil, endport=nil, deregistertargetrst=nil, multicertinfo=nil)
+ def initialize(loadbalancerid=nil, ports=nil, protocol=nil, listenernames=nil, healthcheck=nil, certificate=nil, sessionexpiretime=nil, scheduler=nil, sniswitch=nil, targettype=nil, sessiontype=nil, keepaliveenable=nil, endport=nil, deregistertargetrst=nil, multicertinfo=nil, maxconn=nil, maxcps=nil)
@LoadBalancerId = loadbalancerid
@Ports = ports
@Protocol = protocol
@ListenerNames = listenernames
@HealthCheck = healthcheck
@@ -1292,10 +1296,12 @@
@SessionType = sessiontype
@KeepaliveEnable = keepaliveenable
@EndPort = endport
@DeregisterTargetRst = deregistertargetrst
@MultiCertInfo = multicertinfo
+ @MaxConn = maxconn
+ @MaxCps = maxcps
end
def deserialize(params)
@LoadBalancerId = params['LoadBalancerId']
@Ports = params['Ports']
@@ -1319,10 +1325,12 @@
@DeregisterTargetRst = params['DeregisterTargetRst']
unless params['MultiCertInfo'].nil?
@MultiCertInfo = MultiCertInfo.new
@MultiCertInfo.deserialize(params['MultiCertInfo'])
end
+ @MaxConn = params['MaxConn']
+ @MaxCps = params['MaxCps']
end
end
# CreateListener返回参数结构体
class CreateListenerResponse < TencentCloud::Common::AbstractModel
@@ -4418,14 +4426,20 @@
# 注意:此字段可能返回 null,表示取不到有效值。
# @type AttrFlags: Array
# @param TargetGroupList: 绑定的目标组列表
# 注意:此字段可能返回 null,表示取不到有效值。
# @type TargetGroupList: Array
+ # @param MaxConn: 监听器最大连接数,-1表示监听器维度不限速。
+ # 注意:此字段可能返回 null,表示取不到有效值。
+ # @type MaxConn: Integer
+ # @param MaxCps: 监听器最大新增连接数,-1表示监听器维度不限速。
+ # 注意:此字段可能返回 null,表示取不到有效值。
+ # @type MaxCps: Integer
- attr_accessor :ListenerId, :Protocol, :Port, :Certificate, :HealthCheck, :Scheduler, :SessionExpireTime, :SniSwitch, :Rules, :ListenerName, :CreateTime, :EndPort, :TargetType, :TargetGroup, :SessionType, :KeepaliveEnable, :Toa, :DeregisterTargetRst, :AttrFlags, :TargetGroupList
+ attr_accessor :ListenerId, :Protocol, :Port, :Certificate, :HealthCheck, :Scheduler, :SessionExpireTime, :SniSwitch, :Rules, :ListenerName, :CreateTime, :EndPort, :TargetType, :TargetGroup, :SessionType, :KeepaliveEnable, :Toa, :DeregisterTargetRst, :AttrFlags, :TargetGroupList, :MaxConn, :MaxCps
- def initialize(listenerid=nil, protocol=nil, port=nil, certificate=nil, healthcheck=nil, scheduler=nil, sessionexpiretime=nil, sniswitch=nil, rules=nil, listenername=nil, createtime=nil, endport=nil, targettype=nil, targetgroup=nil, sessiontype=nil, keepaliveenable=nil, toa=nil, deregistertargetrst=nil, attrflags=nil, targetgrouplist=nil)
+ def initialize(listenerid=nil, protocol=nil, port=nil, certificate=nil, healthcheck=nil, scheduler=nil, sessionexpiretime=nil, sniswitch=nil, rules=nil, listenername=nil, createtime=nil, endport=nil, targettype=nil, targetgroup=nil, sessiontype=nil, keepaliveenable=nil, toa=nil, deregistertargetrst=nil, attrflags=nil, targetgrouplist=nil, maxconn=nil, maxcps=nil)
@ListenerId = listenerid
@Protocol = protocol
@Port = port
@Certificate = certificate
@HealthCheck = healthcheck
@@ -4442,10 +4456,12 @@
@KeepaliveEnable = keepaliveenable
@Toa = toa
@DeregisterTargetRst = deregistertargetrst
@AttrFlags = attrflags
@TargetGroupList = targetgrouplist
+ @MaxConn = maxconn
+ @MaxCps = maxcps
end
def deserialize(params)
@ListenerId = params['ListenerId']
@Protocol = params['Protocol']
@@ -4488,10 +4504,12 @@
basictargetgroupinfo_tmp = BasicTargetGroupInfo.new
basictargetgroupinfo_tmp.deserialize(i)
@TargetGroupList << basictargetgroupinfo_tmp
end
end
+ @MaxConn = params['MaxConn']
+ @MaxCps = params['MaxCps']
end
end
# 监听器上绑定的后端服务的信息
class ListenerBackend < TencentCloud::Common::AbstractModel
@@ -5528,14 +5546,18 @@
# @type DeregisterTargetRst: Boolean
# @param SessionType: 会话保持类型。NORMAL表示默认会话保持类型。QUIC_CID表示根据Quic Connection ID做会话保持。QUIC_CID只支持UDP协议。
# @type SessionType: String
# @param MultiCertInfo: 证书信息,支持同时传入不同算法类型的多本服务端证书;此参数仅适用于未开启SNI特性的HTTPS监听器。此参数和Certificate不能同时传入。
# @type MultiCertInfo: :class:`Tencentcloud::Clb.v20180317.models.MultiCertInfo`
+ # @param MaxConn: 监听器最大连接数,只有TCP/UDP/TCP_SSL/QUIC监听器支持,不传或者传-1表示监听器维度不限速。
+ # @type MaxConn: Integer
+ # @param MaxCps: 监听器最大连接数,只有TCP/UDP/TCP_SSL/QUIC监听器支持,不传或者传-1表示监听器维度不限速。
+ # @type MaxCps: Integer
- attr_accessor :LoadBalancerId, :ListenerId, :ListenerName, :SessionExpireTime, :HealthCheck, :Certificate, :Scheduler, :SniSwitch, :TargetType, :KeepaliveEnable, :DeregisterTargetRst, :SessionType, :MultiCertInfo
+ attr_accessor :LoadBalancerId, :ListenerId, :ListenerName, :SessionExpireTime, :HealthCheck, :Certificate, :Scheduler, :SniSwitch, :TargetType, :KeepaliveEnable, :DeregisterTargetRst, :SessionType, :MultiCertInfo, :MaxConn, :MaxCps
- def initialize(loadbalancerid=nil, listenerid=nil, listenername=nil, sessionexpiretime=nil, healthcheck=nil, certificate=nil, scheduler=nil, sniswitch=nil, targettype=nil, keepaliveenable=nil, deregistertargetrst=nil, sessiontype=nil, multicertinfo=nil)
+ def initialize(loadbalancerid=nil, listenerid=nil, listenername=nil, sessionexpiretime=nil, healthcheck=nil, certificate=nil, scheduler=nil, sniswitch=nil, targettype=nil, keepaliveenable=nil, deregistertargetrst=nil, sessiontype=nil, multicertinfo=nil, maxconn=nil, maxcps=nil)
@LoadBalancerId = loadbalancerid
@ListenerId = listenerid
@ListenerName = listenername
@SessionExpireTime = sessionexpiretime
@HealthCheck = healthcheck
@@ -5545,10 +5567,12 @@
@TargetType = targettype
@KeepaliveEnable = keepaliveenable
@DeregisterTargetRst = deregistertargetrst
@SessionType = sessiontype
@MultiCertInfo = multicertinfo
+ @MaxConn = maxconn
+ @MaxCps = maxcps
end
def deserialize(params)
@LoadBalancerId = params['LoadBalancerId']
@ListenerId = params['ListenerId']
@@ -5570,9 +5594,11 @@
@SessionType = params['SessionType']
unless params['MultiCertInfo'].nil?
@MultiCertInfo = MultiCertInfo.new
@MultiCertInfo.deserialize(params['MultiCertInfo'])
end
+ @MaxConn = params['MaxConn']
+ @MaxCps = params['MaxCps']
end
end
# ModifyListener返回参数结构体
class ModifyListenerResponse < TencentCloud::Common::AbstractModel