tencentcloud-sdk-clb 3.0.1122 → 3.0.1126
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/VERSION +1 -1
- data/lib/v20180317/models.rb +155 -23
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b1d0c789eeb6134142d2601649f5dda62a5df47c
|
4
|
+
data.tar.gz: afb287a5702998d0ca0915b617a16ca21fc94765
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f8c172369167b5684806a159efbb781607ef5bf6380e4f1228e1bf8d512564499cd742d688517f625dd23a83efacce465537b3d8368da5f114866a73a426a462
|
7
|
+
data.tar.gz: 45b69b66058fd508cefb4764f1224c71f17633f5bc85b32d0e5c4c279ed33fd65ffadb8cecf1a1b45b4cd6764e76b9f5569384c0ec6dfd6460b99b9a0310751a
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.1126
|
data/lib/v20180317/models.rb
CHANGED
@@ -1878,7 +1878,7 @@ module TencentCloud
|
|
1878
1878
|
class CreateTargetGroupRequest < TencentCloud::Common::AbstractModel
|
1879
1879
|
# @param TargetGroupName: 目标组名称,限定50个字符
|
1880
1880
|
# @type TargetGroupName: String
|
1881
|
-
# @param VpcId: 目标组的
|
1881
|
+
# @param VpcId: 目标组的vpcId属性,不填则使用默认vpc。
|
1882
1882
|
# @type VpcId: String
|
1883
1883
|
# @param Port: 目标组的默认端口, 后续添加服务器时可使用该默认端口。全监听目标组不支持此参数,非全监听目标组Port和TargetGroupInstances.N中的port二者必填其一。
|
1884
1884
|
# @type Port: Integer
|
@@ -1888,14 +1888,15 @@ module TencentCloud
|
|
1888
1888
|
# @type Type: String
|
1889
1889
|
# @param Protocol: 目标组后端转发协议。v2新版目标组该项必填。目前支持TCP、UDP、HTTP、HTTPS、GRPC。
|
1890
1890
|
# @type Protocol: String
|
1891
|
+
# @param HealthCheck: 健康检查。
|
1892
|
+
# @type HealthCheck: :class:`Tencentcloud::Clb.v20180317.models.TargetGroupHealthCheck`
|
1893
|
+
# @param ScheduleAlgorithm: 调度算法,仅V2新版目标组,且后端转发协议为(HTTP|HTTPS|GRPC)时该参数有效。可选值:
|
1894
|
+
# <ur><li>WRR:按权重轮询。</li><li>LEAST_CONN:最小连接数。</li><li>IP_HASH:按IP哈希。</li><li>默认为 WRR。</li><ur>
|
1895
|
+
# @type ScheduleAlgorithm: String
|
1891
1896
|
# @param Tags: 标签。
|
1892
1897
|
# @type Tags: Array
|
1893
|
-
# @param Weight:
|
1894
|
-
# <ul>
|
1895
|
-
# <li>取值范围[0, 100]</li>
|
1896
|
-
# <li>设置该值后,添加后端服务到目标组时, 若后端服务不单独设置权重, 则使用这里的默认权重。 </li>
|
1897
|
-
# </ul>
|
1898
|
-
# v1 目标组类型不支持设置 Weight 参数。
|
1898
|
+
# @param Weight: 后端服务默认权重, 其中:
|
1899
|
+
# <ul><li>取值范围[0, 100]</li><li>设置该值后,添加后端服务到目标组时, 若后端服务不单独设置权重, 则使用这里的默认权重。 </li><li>v1 目标组类型不支持设置 Weight 参数。</li></ul>
|
1899
1900
|
# @type Weight: Integer
|
1900
1901
|
# @param FullListenSwitch: 全监听目标组标识,true表示是全监听目标组,false表示不是全监听目标组。仅V2新版类型目标组支持该参数。
|
1901
1902
|
# @type FullListenSwitch: Boolean
|
@@ -1904,15 +1905,17 @@ module TencentCloud
|
|
1904
1905
|
# @param SessionExpireTime: 会话保持时间,单位:秒。可选值:30~3600,默认 0,表示不开启。仅V2新版且后端转发协议为HTTP/HTTPS/GRPC目标组支持该参数。
|
1905
1906
|
# @type SessionExpireTime: Integer
|
1906
1907
|
|
1907
|
-
attr_accessor :TargetGroupName, :VpcId, :Port, :TargetGroupInstances, :Type, :Protocol, :Tags, :Weight, :FullListenSwitch, :KeepaliveEnable, :SessionExpireTime
|
1908
|
+
attr_accessor :TargetGroupName, :VpcId, :Port, :TargetGroupInstances, :Type, :Protocol, :HealthCheck, :ScheduleAlgorithm, :Tags, :Weight, :FullListenSwitch, :KeepaliveEnable, :SessionExpireTime
|
1908
1909
|
|
1909
|
-
def initialize(targetgroupname=nil, vpcid=nil, port=nil, targetgroupinstances=nil, type=nil, protocol=nil, tags=nil, weight=nil, fulllistenswitch=nil, keepaliveenable=nil, sessionexpiretime=nil)
|
1910
|
+
def initialize(targetgroupname=nil, vpcid=nil, port=nil, targetgroupinstances=nil, type=nil, protocol=nil, healthcheck=nil, schedulealgorithm=nil, tags=nil, weight=nil, fulllistenswitch=nil, keepaliveenable=nil, sessionexpiretime=nil)
|
1910
1911
|
@TargetGroupName = targetgroupname
|
1911
1912
|
@VpcId = vpcid
|
1912
1913
|
@Port = port
|
1913
1914
|
@TargetGroupInstances = targetgroupinstances
|
1914
1915
|
@Type = type
|
1915
1916
|
@Protocol = protocol
|
1917
|
+
@HealthCheck = healthcheck
|
1918
|
+
@ScheduleAlgorithm = schedulealgorithm
|
1916
1919
|
@Tags = tags
|
1917
1920
|
@Weight = weight
|
1918
1921
|
@FullListenSwitch = fulllistenswitch
|
@@ -1934,6 +1937,11 @@ module TencentCloud
|
|
1934
1937
|
end
|
1935
1938
|
@Type = params['Type']
|
1936
1939
|
@Protocol = params['Protocol']
|
1940
|
+
unless params['HealthCheck'].nil?
|
1941
|
+
@HealthCheck = TargetGroupHealthCheck.new
|
1942
|
+
@HealthCheck.deserialize(params['HealthCheck'])
|
1943
|
+
end
|
1944
|
+
@ScheduleAlgorithm = params['ScheduleAlgorithm']
|
1937
1945
|
unless params['Tags'].nil?
|
1938
1946
|
@Tags = []
|
1939
1947
|
params['Tags'].each do |i|
|
@@ -5667,13 +5675,15 @@ module TencentCloud
|
|
5667
5675
|
# @type Exclusive: Integer
|
5668
5676
|
# @param TargetCount: 已绑定的后端服务数量。
|
5669
5677
|
# @type TargetCount: Integer
|
5678
|
+
# @param AssociateEndpoint: 负载均衡实例关联的Endpoint id。
|
5679
|
+
# @type AssociateEndpoint: String
|
5670
5680
|
|
5671
|
-
attr_accessor :LoadBalancerId, :LoadBalancerName, :LoadBalancerType, :Forward, :Domain, :LoadBalancerVips, :Status, :CreateTime, :StatusTime, :ProjectId, :VpcId, :OpenBgp, :Snat, :Isolation, :Log, :SubnetId, :Tags, :SecureGroups, :TargetRegionInfo, :AnycastZone, :AddressIPVersion, :NumericalVpcId, :VipIsp, :MasterZone, :BackupZoneSet, :IsolatedTime, :ExpireTime, :ChargeType, :NetworkAttributes, :PrepaidAttributes, :LogSetId, :LogTopicId, :AddressIPv6, :ExtraInfo, :IsDDos, :ConfigId, :LoadBalancerPassToTarget, :ExclusiveCluster, :IPv6Mode, :SnatPro, :SnatIps, :SlaType, :IsBlock, :IsBlockTime, :LocalBgp, :ClusterTag, :MixIpTarget, :Zones, :NfvInfo, :HealthLogSetId, :HealthLogTopicId, :ClusterIds, :AttributeFlags, :LoadBalancerDomain, :Egress, :Exclusive, :TargetCount
|
5681
|
+
attr_accessor :LoadBalancerId, :LoadBalancerName, :LoadBalancerType, :Forward, :Domain, :LoadBalancerVips, :Status, :CreateTime, :StatusTime, :ProjectId, :VpcId, :OpenBgp, :Snat, :Isolation, :Log, :SubnetId, :Tags, :SecureGroups, :TargetRegionInfo, :AnycastZone, :AddressIPVersion, :NumericalVpcId, :VipIsp, :MasterZone, :BackupZoneSet, :IsolatedTime, :ExpireTime, :ChargeType, :NetworkAttributes, :PrepaidAttributes, :LogSetId, :LogTopicId, :AddressIPv6, :ExtraInfo, :IsDDos, :ConfigId, :LoadBalancerPassToTarget, :ExclusiveCluster, :IPv6Mode, :SnatPro, :SnatIps, :SlaType, :IsBlock, :IsBlockTime, :LocalBgp, :ClusterTag, :MixIpTarget, :Zones, :NfvInfo, :HealthLogSetId, :HealthLogTopicId, :ClusterIds, :AttributeFlags, :LoadBalancerDomain, :Egress, :Exclusive, :TargetCount, :AssociateEndpoint
|
5672
5682
|
extend Gem::Deprecate
|
5673
5683
|
deprecate :Log, :none, 2025, 8
|
5674
5684
|
deprecate :Log=, :none, 2025, 8
|
5675
5685
|
|
5676
|
-
def initialize(loadbalancerid=nil, loadbalancername=nil, loadbalancertype=nil, forward=nil, domain=nil, loadbalancervips=nil, status=nil, createtime=nil, statustime=nil, projectid=nil, vpcid=nil, openbgp=nil, snat=nil, isolation=nil, log=nil, subnetid=nil, tags=nil, securegroups=nil, targetregioninfo=nil, anycastzone=nil, addressipversion=nil, numericalvpcid=nil, vipisp=nil, masterzone=nil, backupzoneset=nil, isolatedtime=nil, expiretime=nil, chargetype=nil, networkattributes=nil, prepaidattributes=nil, logsetid=nil, logtopicid=nil, addressipv6=nil, extrainfo=nil, isddos=nil, configid=nil, loadbalancerpasstotarget=nil, exclusivecluster=nil, ipv6mode=nil, snatpro=nil, snatips=nil, slatype=nil, isblock=nil, isblocktime=nil, localbgp=nil, clustertag=nil, mixiptarget=nil, zones=nil, nfvinfo=nil, healthlogsetid=nil, healthlogtopicid=nil, clusterids=nil, attributeflags=nil, loadbalancerdomain=nil, egress=nil, exclusive=nil, targetcount=nil)
|
5686
|
+
def initialize(loadbalancerid=nil, loadbalancername=nil, loadbalancertype=nil, forward=nil, domain=nil, loadbalancervips=nil, status=nil, createtime=nil, statustime=nil, projectid=nil, vpcid=nil, openbgp=nil, snat=nil, isolation=nil, log=nil, subnetid=nil, tags=nil, securegroups=nil, targetregioninfo=nil, anycastzone=nil, addressipversion=nil, numericalvpcid=nil, vipisp=nil, masterzone=nil, backupzoneset=nil, isolatedtime=nil, expiretime=nil, chargetype=nil, networkattributes=nil, prepaidattributes=nil, logsetid=nil, logtopicid=nil, addressipv6=nil, extrainfo=nil, isddos=nil, configid=nil, loadbalancerpasstotarget=nil, exclusivecluster=nil, ipv6mode=nil, snatpro=nil, snatips=nil, slatype=nil, isblock=nil, isblocktime=nil, localbgp=nil, clustertag=nil, mixiptarget=nil, zones=nil, nfvinfo=nil, healthlogsetid=nil, healthlogtopicid=nil, clusterids=nil, attributeflags=nil, loadbalancerdomain=nil, egress=nil, exclusive=nil, targetcount=nil, associateendpoint=nil)
|
5677
5687
|
@LoadBalancerId = loadbalancerid
|
5678
5688
|
@LoadBalancerName = loadbalancername
|
5679
5689
|
@LoadBalancerType = loadbalancertype
|
@@ -5731,6 +5741,7 @@ module TencentCloud
|
|
5731
5741
|
@Egress = egress
|
5732
5742
|
@Exclusive = exclusive
|
5733
5743
|
@TargetCount = targetcount
|
5744
|
+
@AssociateEndpoint = associateendpoint
|
5734
5745
|
end
|
5735
5746
|
|
5736
5747
|
def deserialize(params)
|
@@ -5830,6 +5841,7 @@ module TencentCloud
|
|
5830
5841
|
@Egress = params['Egress']
|
5831
5842
|
@Exclusive = params['Exclusive']
|
5832
5843
|
@TargetCount = params['TargetCount']
|
5844
|
+
@AssociateEndpoint = params['AssociateEndpoint']
|
5833
5845
|
end
|
5834
5846
|
end
|
5835
5847
|
|
@@ -6658,10 +6670,12 @@ module TencentCloud
|
|
6658
6670
|
# @type DeleteProtect: Boolean
|
6659
6671
|
# @param ModifyClassicDomain: 将负载均衡二级域名由mycloud.com改为tencentclb.com,子域名也会变换,修改后mycloud.com域名将失效。不填则不修改。
|
6660
6672
|
# @type ModifyClassicDomain: Boolean
|
6673
|
+
# @param AssociateEndpoint: 关联的终端节点Id,可通过[DescribeVpcEndPoint](https://cloud.tencent.com/document/product/215/54679)接口查询。传空字符串代表解除关联。
|
6674
|
+
# @type AssociateEndpoint: String
|
6661
6675
|
|
6662
|
-
attr_accessor :LoadBalancerId, :LoadBalancerName, :TargetRegionInfo, :InternetChargeInfo, :LoadBalancerPassToTarget, :SnatPro, :DeleteProtect, :ModifyClassicDomain
|
6676
|
+
attr_accessor :LoadBalancerId, :LoadBalancerName, :TargetRegionInfo, :InternetChargeInfo, :LoadBalancerPassToTarget, :SnatPro, :DeleteProtect, :ModifyClassicDomain, :AssociateEndpoint
|
6663
6677
|
|
6664
|
-
def initialize(loadbalancerid=nil, loadbalancername=nil, targetregioninfo=nil, internetchargeinfo=nil, loadbalancerpasstotarget=nil, snatpro=nil, deleteprotect=nil, modifyclassicdomain=nil)
|
6678
|
+
def initialize(loadbalancerid=nil, loadbalancername=nil, targetregioninfo=nil, internetchargeinfo=nil, loadbalancerpasstotarget=nil, snatpro=nil, deleteprotect=nil, modifyclassicdomain=nil, associateendpoint=nil)
|
6665
6679
|
@LoadBalancerId = loadbalancerid
|
6666
6680
|
@LoadBalancerName = loadbalancername
|
6667
6681
|
@TargetRegionInfo = targetregioninfo
|
@@ -6670,6 +6684,7 @@ module TencentCloud
|
|
6670
6684
|
@SnatPro = snatpro
|
6671
6685
|
@DeleteProtect = deleteprotect
|
6672
6686
|
@ModifyClassicDomain = modifyclassicdomain
|
6687
|
+
@AssociateEndpoint = associateendpoint
|
6673
6688
|
end
|
6674
6689
|
|
6675
6690
|
def deserialize(params)
|
@@ -6687,6 +6702,7 @@ module TencentCloud
|
|
6687
6702
|
@SnatPro = params['SnatPro']
|
6688
6703
|
@DeleteProtect = params['DeleteProtect']
|
6689
6704
|
@ModifyClassicDomain = params['ModifyClassicDomain']
|
6705
|
+
@AssociateEndpoint = params['AssociateEndpoint']
|
6690
6706
|
end
|
6691
6707
|
end
|
6692
6708
|
|
@@ -6916,24 +6932,26 @@ module TencentCloud
|
|
6916
6932
|
# @type TargetGroupName: String
|
6917
6933
|
# @param Port: 目标组的新默认端口。全监听目标组不支持此参数。
|
6918
6934
|
# @type Port: Integer
|
6919
|
-
# @param
|
6920
|
-
# <
|
6921
|
-
#
|
6922
|
-
#
|
6923
|
-
#
|
6924
|
-
# v1目标组类型不支持设置Weight
|
6935
|
+
# @param ScheduleAlgorithm: 调度算法,仅V2新版目标组,且后端转发协议为(HTTP|HTTPS|GRPC)时该参数有效。可选值:
|
6936
|
+
# <ur><li>WRR:按权重轮询。</li><li>LEAST_CONN:最小连接数。</li><li>IP_HASH:按IP哈希。</li><li>默认为 WRR。</li><ur>
|
6937
|
+
# @type ScheduleAlgorithm: String
|
6938
|
+
# @param HealthCheck: 健康检查详情。
|
6939
|
+
# @type HealthCheck: :class:`Tencentcloud::Clb.v20180317.models.TargetGroupHealthCheck`
|
6940
|
+
# @param Weight: 后端服务默认权重, 其中:<ul><li>取值范围[0, 100]</li><li>设置该值后,添加后端服务到目标组时, 若后端服务不单独设置权重, 则使用这里的默认权重。 </li><li>v1目标组类型不支持设置Weight参数。</li> </ul>
|
6925
6941
|
# @type Weight: Integer
|
6926
6942
|
# @param KeepaliveEnable: 是否开启长连接,此参数仅适用于HTTP/HTTPS目标组,true:关闭;false:开启, 默认关闭。
|
6927
6943
|
# @type KeepaliveEnable: Boolean
|
6928
6944
|
# @param SessionExpireTime: 会话保持时间,单位:秒。可选值:30~3600,默认 0,表示不开启。TCP/UDP目标组不支持该参数。
|
6929
6945
|
# @type SessionExpireTime: Integer
|
6930
6946
|
|
6931
|
-
attr_accessor :TargetGroupId, :TargetGroupName, :Port, :Weight, :KeepaliveEnable, :SessionExpireTime
|
6947
|
+
attr_accessor :TargetGroupId, :TargetGroupName, :Port, :ScheduleAlgorithm, :HealthCheck, :Weight, :KeepaliveEnable, :SessionExpireTime
|
6932
6948
|
|
6933
|
-
def initialize(targetgroupid=nil, targetgroupname=nil, port=nil, weight=nil, keepaliveenable=nil, sessionexpiretime=nil)
|
6949
|
+
def initialize(targetgroupid=nil, targetgroupname=nil, port=nil, schedulealgorithm=nil, healthcheck=nil, weight=nil, keepaliveenable=nil, sessionexpiretime=nil)
|
6934
6950
|
@TargetGroupId = targetgroupid
|
6935
6951
|
@TargetGroupName = targetgroupname
|
6936
6952
|
@Port = port
|
6953
|
+
@ScheduleAlgorithm = schedulealgorithm
|
6954
|
+
@HealthCheck = healthcheck
|
6937
6955
|
@Weight = weight
|
6938
6956
|
@KeepaliveEnable = keepaliveenable
|
6939
6957
|
@SessionExpireTime = sessionexpiretime
|
@@ -6943,6 +6961,11 @@ module TencentCloud
|
|
6943
6961
|
@TargetGroupId = params['TargetGroupId']
|
6944
6962
|
@TargetGroupName = params['TargetGroupName']
|
6945
6963
|
@Port = params['Port']
|
6964
|
+
@ScheduleAlgorithm = params['ScheduleAlgorithm']
|
6965
|
+
unless params['HealthCheck'].nil?
|
6966
|
+
@HealthCheck = TargetGroupHealthCheck.new
|
6967
|
+
@HealthCheck.deserialize(params['HealthCheck'])
|
6968
|
+
end
|
6946
6969
|
@Weight = params['Weight']
|
6947
6970
|
@KeepaliveEnable = params['KeepaliveEnable']
|
6948
6971
|
@SessionExpireTime = params['SessionExpireTime']
|
@@ -8541,6 +8564,96 @@ module TencentCloud
|
|
8541
8564
|
end
|
8542
8565
|
end
|
8543
8566
|
|
8567
|
+
# 目标组健康检查详情
|
8568
|
+
class TargetGroupHealthCheck < TencentCloud::Common::AbstractModel
|
8569
|
+
# @param HealthSwitch: 是否开启健康检查。
|
8570
|
+
# @type HealthSwitch: Boolean
|
8571
|
+
# @param Protocol: 健康检查方式, 其中仅V2新版目标组类型支持该参数, 支持取值 TCP | HTTP | HTTPS | PING | CUSTOM,其中:
|
8572
|
+
# <ur><li>当目标组后端转发协议为TCP时, 健康检查方式支持 TCP/HTTP/CUSTOM, 默认为TCP。</li><li>当目标组后端转发协议为UDP时, 健康检查方式支持 PING/CUSTOM,默认为PING。</li><li>当目标组后端转发协议为HTTP时, 健康检查方式支持 HTTP/TCP, 默认为HTTP。</li><li>当目标组后端转发协议为HTTPS时, 健康检查方式支持 HTTPS/TCP, 默认为HTTPS。</li><li>当目标组后端转发协议为GRPC时, 健康检查方式支持GRPC/TCP, 默认为GRPC。</li></ur>
|
8573
|
+
# @type Protocol: String
|
8574
|
+
# @param Port: 自定义探测相关参数。健康检查端口,默认为后端服务的端口,除非您希望指定特定端口,否则建议留空。(仅适用于TCP/UDP目标组)。
|
8575
|
+
# @type Port: Integer
|
8576
|
+
# @param Timeout: 健康检查超时时间。 默认为2秒。 可配置范围:2 - 30秒。
|
8577
|
+
# @type Timeout: Integer
|
8578
|
+
# @param GapTime: 检测间隔时间。 默认为5秒。 可配置范围:2 - 300秒。
|
8579
|
+
# @type GapTime: Integer
|
8580
|
+
# @param GoodLimit: 检测健康阈值。 默认为3秒。 可配置范围:2 - 10次。
|
8581
|
+
# @type GoodLimit: Integer
|
8582
|
+
# @param BadLimit: 检测不健康阈值。 默认为3秒。 可配置范围:2 - 10次。
|
8583
|
+
# @type BadLimit: Integer
|
8584
|
+
# @param JumboFrame: 目标组下的所有rs的探测包是否开启巨帧。默认开启。仅GWLB类型目标组支持该参数。
|
8585
|
+
# @type JumboFrame: Boolean
|
8586
|
+
# @param HttpCode: 健康检查状态码(仅适用于HTTP/HTTPS目标组、TCP目标组的HTTP健康检查方式)。可选值:1~31,默认 31,其中:<url> <li>1 表示探测后返回值 1xx 代表健康。</li><li>2 表示返回 2xx 代表健康。</li><li>4 表示返回 3xx 代表健康。</li><li>8 表示返回 4xx 代表健康。</li><li>16 表示返回 5xx 代表健康。</li></url>若希望多种返回码都可代表健康,则将相应的值相加。
|
8587
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
8588
|
+
# @type HttpCode: Integer
|
8589
|
+
# @param HttpCheckDomain: 健康检查域名, 其中:<ur><li>仅适用于HTTP/HTTPS目标组和TCP目标组的HTTP健康检查方式。</li><li>针对HTTP/HTTPS目标组,当使用HTTP健康检查方式时,该参数为必填项。</li></ur>
|
8590
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
8591
|
+
# @type HttpCheckDomain: String
|
8592
|
+
# @param HttpCheckPath: 健康检查路径(仅适用于HTTP/HTTPS转发规则、TCP监听器的HTTP健康检查方式)。
|
8593
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
8594
|
+
# @type HttpCheckPath: String
|
8595
|
+
# @param HttpCheckMethod: 健康检查方法(仅适用于HTTP/HTTPS转发规则、TCP监听器的HTTP健康检查方式),默认值:HEAD,可选值HEAD或GET。
|
8596
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
8597
|
+
# @type HttpCheckMethod: String
|
8598
|
+
# @param ContextType: 健康检查的输入格式,健康检查方式取CUSTOM时,必填此字段,可取值:HEX或TEXT,其中:<ur><li>TEXT:文本格式。</li><li>HEX:十六进制格式, SendContext和RecvContext的字符只能在0123456789ABCDEF中选取且长度必须是偶数位。</li><li>仅适用于TCP/UDP目标组。</li></ur>
|
8599
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
8600
|
+
# @type ContextType: String
|
8601
|
+
# @param SendContext: 自定义探测相关参数。健康检查协议CheckType的值取CUSTOM时,必填此字段,代表健康检查发送的请求内容,只允许ASCII可见字符,最大长度限制500。(仅适用于TCP/UDP目标组)。
|
8602
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
8603
|
+
# @type SendContext: String
|
8604
|
+
# @param RecvContext: 自定义探测相关参数。健康检查协议CheckType的值取CUSTOM时,必填此字段,代表健康检查返回的结果,只允许ASCII可见字符,最大长度限制500。(仅适用于TCP/UDP目标组)。
|
8605
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
8606
|
+
# @type RecvContext: String
|
8607
|
+
# @param HttpVersion: HTTP版本, 其中:<ur><li>健康检查协议CheckType的值取HTTP时,必传此字段。</li><li>支持配置选项:HTTP/1.0, HTTP/1.1。</li><li>仅适用于TCP目标组。</li></ur>
|
8608
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
8609
|
+
# @type HttpVersion: String
|
8610
|
+
# @param ExtendedCode: GRPC健康检查状态码(仅适用于后端转发协议为GRPC的目标组)。默认值为 12,可输入值为数值、多个数值、或者范围,例如 20 或 20,25 或 0-99。
|
8611
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
8612
|
+
# @type ExtendedCode: String
|
8613
|
+
|
8614
|
+
attr_accessor :HealthSwitch, :Protocol, :Port, :Timeout, :GapTime, :GoodLimit, :BadLimit, :JumboFrame, :HttpCode, :HttpCheckDomain, :HttpCheckPath, :HttpCheckMethod, :ContextType, :SendContext, :RecvContext, :HttpVersion, :ExtendedCode
|
8615
|
+
|
8616
|
+
def initialize(healthswitch=nil, protocol=nil, port=nil, timeout=nil, gaptime=nil, goodlimit=nil, badlimit=nil, jumboframe=nil, httpcode=nil, httpcheckdomain=nil, httpcheckpath=nil, httpcheckmethod=nil, contexttype=nil, sendcontext=nil, recvcontext=nil, httpversion=nil, extendedcode=nil)
|
8617
|
+
@HealthSwitch = healthswitch
|
8618
|
+
@Protocol = protocol
|
8619
|
+
@Port = port
|
8620
|
+
@Timeout = timeout
|
8621
|
+
@GapTime = gaptime
|
8622
|
+
@GoodLimit = goodlimit
|
8623
|
+
@BadLimit = badlimit
|
8624
|
+
@JumboFrame = jumboframe
|
8625
|
+
@HttpCode = httpcode
|
8626
|
+
@HttpCheckDomain = httpcheckdomain
|
8627
|
+
@HttpCheckPath = httpcheckpath
|
8628
|
+
@HttpCheckMethod = httpcheckmethod
|
8629
|
+
@ContextType = contexttype
|
8630
|
+
@SendContext = sendcontext
|
8631
|
+
@RecvContext = recvcontext
|
8632
|
+
@HttpVersion = httpversion
|
8633
|
+
@ExtendedCode = extendedcode
|
8634
|
+
end
|
8635
|
+
|
8636
|
+
def deserialize(params)
|
8637
|
+
@HealthSwitch = params['HealthSwitch']
|
8638
|
+
@Protocol = params['Protocol']
|
8639
|
+
@Port = params['Port']
|
8640
|
+
@Timeout = params['Timeout']
|
8641
|
+
@GapTime = params['GapTime']
|
8642
|
+
@GoodLimit = params['GoodLimit']
|
8643
|
+
@BadLimit = params['BadLimit']
|
8644
|
+
@JumboFrame = params['JumboFrame']
|
8645
|
+
@HttpCode = params['HttpCode']
|
8646
|
+
@HttpCheckDomain = params['HttpCheckDomain']
|
8647
|
+
@HttpCheckPath = params['HttpCheckPath']
|
8648
|
+
@HttpCheckMethod = params['HttpCheckMethod']
|
8649
|
+
@ContextType = params['ContextType']
|
8650
|
+
@SendContext = params['SendContext']
|
8651
|
+
@RecvContext = params['RecvContext']
|
8652
|
+
@HttpVersion = params['HttpVersion']
|
8653
|
+
@ExtendedCode = params['ExtendedCode']
|
8654
|
+
end
|
8655
|
+
end
|
8656
|
+
|
8544
8657
|
# 目标组信息
|
8545
8658
|
class TargetGroupInfo < TencentCloud::Common::AbstractModel
|
8546
8659
|
# @param TargetGroupId: 目标组ID
|
@@ -8562,6 +8675,18 @@ module TencentCloud
|
|
8562
8675
|
# @param Protocol: 目标组后端转发协议, 仅v2新版目标组返回有效值。
|
8563
8676
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
8564
8677
|
# @type Protocol: String
|
8678
|
+
# @param ScheduleAlgorithm: 调度算法,仅后端转发协议为(HTTP、HTTPS、GRPC)的目标组返回有效值, 可选值:
|
8679
|
+
# <ur>
|
8680
|
+
# <li>WRR:按权重轮询。</li>
|
8681
|
+
# <li>LEAST_CONN:最小连接数。</li>
|
8682
|
+
# <li>IP_HASH:按IP哈希。</li>
|
8683
|
+
# </ur>
|
8684
|
+
|
8685
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
8686
|
+
# @type ScheduleAlgorithm: String
|
8687
|
+
# @param HealthCheck: 健康检查详情。
|
8688
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
8689
|
+
# @type HealthCheck: :class:`Tencentcloud::Clb.v20180317.models.TargetGroupHealthCheck`
|
8565
8690
|
# @param TargetGroupType: 目标组类型,当前支持v1(旧版目标组), v2(新版目标组)。默认为v1旧版目标组。
|
8566
8691
|
# @type TargetGroupType: String
|
8567
8692
|
# @param AssociatedRuleCount: 目标组已关联的规则数。
|
@@ -8580,9 +8705,9 @@ module TencentCloud
|
|
8580
8705
|
# @param SessionExpireTime: 会话保持时间,仅后端转发协议为HTTP/HTTPS/GRPC目标组返回有效值。
|
8581
8706
|
# @type SessionExpireTime: Integer
|
8582
8707
|
|
8583
|
-
attr_accessor :TargetGroupId, :VpcId, :TargetGroupName, :Port, :CreatedTime, :UpdatedTime, :AssociatedRule, :Protocol, :TargetGroupType, :AssociatedRuleCount, :RegisteredInstancesCount, :Tag, :Weight, :FullListenSwitch, :KeepaliveEnable, :SessionExpireTime
|
8708
|
+
attr_accessor :TargetGroupId, :VpcId, :TargetGroupName, :Port, :CreatedTime, :UpdatedTime, :AssociatedRule, :Protocol, :ScheduleAlgorithm, :HealthCheck, :TargetGroupType, :AssociatedRuleCount, :RegisteredInstancesCount, :Tag, :Weight, :FullListenSwitch, :KeepaliveEnable, :SessionExpireTime
|
8584
8709
|
|
8585
|
-
def initialize(targetgroupid=nil, vpcid=nil, targetgroupname=nil, port=nil, createdtime=nil, updatedtime=nil, associatedrule=nil, protocol=nil, targetgrouptype=nil, associatedrulecount=nil, registeredinstancescount=nil, tag=nil, weight=nil, fulllistenswitch=nil, keepaliveenable=nil, sessionexpiretime=nil)
|
8710
|
+
def initialize(targetgroupid=nil, vpcid=nil, targetgroupname=nil, port=nil, createdtime=nil, updatedtime=nil, associatedrule=nil, protocol=nil, schedulealgorithm=nil, healthcheck=nil, targetgrouptype=nil, associatedrulecount=nil, registeredinstancescount=nil, tag=nil, weight=nil, fulllistenswitch=nil, keepaliveenable=nil, sessionexpiretime=nil)
|
8586
8711
|
@TargetGroupId = targetgroupid
|
8587
8712
|
@VpcId = vpcid
|
8588
8713
|
@TargetGroupName = targetgroupname
|
@@ -8591,6 +8716,8 @@ module TencentCloud
|
|
8591
8716
|
@UpdatedTime = updatedtime
|
8592
8717
|
@AssociatedRule = associatedrule
|
8593
8718
|
@Protocol = protocol
|
8719
|
+
@ScheduleAlgorithm = schedulealgorithm
|
8720
|
+
@HealthCheck = healthcheck
|
8594
8721
|
@TargetGroupType = targetgrouptype
|
8595
8722
|
@AssociatedRuleCount = associatedrulecount
|
8596
8723
|
@RegisteredInstancesCount = registeredinstancescount
|
@@ -8617,6 +8744,11 @@ module TencentCloud
|
|
8617
8744
|
end
|
8618
8745
|
end
|
8619
8746
|
@Protocol = params['Protocol']
|
8747
|
+
@ScheduleAlgorithm = params['ScheduleAlgorithm']
|
8748
|
+
unless params['HealthCheck'].nil?
|
8749
|
+
@HealthCheck = TargetGroupHealthCheck.new
|
8750
|
+
@HealthCheck.deserialize(params['HealthCheck'])
|
8751
|
+
end
|
8620
8752
|
@TargetGroupType = params['TargetGroupType']
|
8621
8753
|
@AssociatedRuleCount = params['AssociatedRuleCount']
|
8622
8754
|
@RegisteredInstancesCount = params['RegisteredInstancesCount']
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tencentcloud-sdk-clb
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.1126
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tencent Cloud
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-08-
|
11
|
+
date: 2025-08-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|