tencentcloud-sdk-python-clb 3.0.1443__tar.gz → 3.0.1447__tar.gz

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.

Potentially problematic release.


This version of tencentcloud-sdk-python-clb might be problematic. Click here for more details.

Files changed (16) hide show
  1. {tencentcloud-sdk-python-clb-3.0.1443 → tencentcloud-sdk-python-clb-3.0.1447}/PKG-INFO +1 -1
  2. {tencentcloud-sdk-python-clb-3.0.1443 → tencentcloud-sdk-python-clb-3.0.1447}/setup.py +1 -1
  3. {tencentcloud-sdk-python-clb-3.0.1443 → tencentcloud-sdk-python-clb-3.0.1447}/tencentcloud/__init__.py +1 -1
  4. {tencentcloud-sdk-python-clb-3.0.1443 → tencentcloud-sdk-python-clb-3.0.1447}/tencentcloud/clb/v20180317/models.py +452 -26
  5. {tencentcloud-sdk-python-clb-3.0.1443 → tencentcloud-sdk-python-clb-3.0.1447}/tencentcloud_sdk_python_clb.egg-info/PKG-INFO +1 -1
  6. tencentcloud-sdk-python-clb-3.0.1447/tencentcloud_sdk_python_clb.egg-info/requires.txt +1 -0
  7. tencentcloud-sdk-python-clb-3.0.1443/tencentcloud_sdk_python_clb.egg-info/requires.txt +0 -1
  8. {tencentcloud-sdk-python-clb-3.0.1443 → tencentcloud-sdk-python-clb-3.0.1447}/README.rst +0 -0
  9. {tencentcloud-sdk-python-clb-3.0.1443 → tencentcloud-sdk-python-clb-3.0.1447}/setup.cfg +0 -0
  10. {tencentcloud-sdk-python-clb-3.0.1443 → tencentcloud-sdk-python-clb-3.0.1447}/tencentcloud/clb/__init__.py +0 -0
  11. {tencentcloud-sdk-python-clb-3.0.1443 → tencentcloud-sdk-python-clb-3.0.1447}/tencentcloud/clb/v20180317/__init__.py +0 -0
  12. {tencentcloud-sdk-python-clb-3.0.1443 → tencentcloud-sdk-python-clb-3.0.1447}/tencentcloud/clb/v20180317/clb_client.py +0 -0
  13. {tencentcloud-sdk-python-clb-3.0.1443 → tencentcloud-sdk-python-clb-3.0.1447}/tencentcloud/clb/v20180317/errorcodes.py +0 -0
  14. {tencentcloud-sdk-python-clb-3.0.1443 → tencentcloud-sdk-python-clb-3.0.1447}/tencentcloud_sdk_python_clb.egg-info/SOURCES.txt +0 -0
  15. {tencentcloud-sdk-python-clb-3.0.1443 → tencentcloud-sdk-python-clb-3.0.1447}/tencentcloud_sdk_python_clb.egg-info/dependency_links.txt +0 -0
  16. {tencentcloud-sdk-python-clb-3.0.1443 → tencentcloud-sdk-python-clb-3.0.1447}/tencentcloud_sdk_python_clb.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 1.2
2
2
  Name: tencentcloud-sdk-python-clb
3
- Version: 3.0.1443
3
+ Version: 3.0.1447
4
4
  Summary: Tencent Cloud Clb SDK for Python
5
5
  Home-page: https://github.com/TencentCloud/tencentcloud-sdk-python
6
6
  Author: Tencent Cloud
@@ -8,7 +8,7 @@ ROOT = os.path.dirname(__file__)
8
8
 
9
9
  setup(
10
10
  name='tencentcloud-sdk-python-clb',
11
- install_requires=["tencentcloud-sdk-python-common>=3.0.1443,<4.0.0"],
11
+ install_requires=["tencentcloud-sdk-python-common>=3.0.1447,<4.0.0"],
12
12
  version=tencentcloud.__version__,
13
13
  description='Tencent Cloud Clb SDK for Python',
14
14
  long_description=open('README.rst').read(),
@@ -14,4 +14,4 @@
14
14
  # limitations under the License.
15
15
 
16
16
 
17
- __version__ = '3.0.1443'
17
+ __version__ = '3.0.1447'
@@ -5213,7 +5213,7 @@ class CreateTargetGroupRequest(AbstractModel):
5213
5213
  r"""
5214
5214
  :param _TargetGroupName: 目标组名称,限定50个字符
5215
5215
  :type TargetGroupName: str
5216
- :param _VpcId: 目标组的vpcid属性,不填则使用默认vpc
5216
+ :param _VpcId: 目标组的vpcId属性,不填则使用默认vpc
5217
5217
  :type VpcId: str
5218
5218
  :param _Port: 目标组的默认端口, 后续添加服务器时可使用该默认端口。全监听目标组不支持此参数,非全监听目标组Port和TargetGroupInstances.N中的port二者必填其一。
5219
5219
 
@@ -5224,14 +5224,15 @@ class CreateTargetGroupRequest(AbstractModel):
5224
5224
  :type Type: str
5225
5225
  :param _Protocol: 目标组后端转发协议。v2新版目标组该项必填。目前支持TCP、UDP、HTTP、HTTPS、GRPC。
5226
5226
  :type Protocol: str
5227
+ :param _HealthCheck: 健康检查。
5228
+ :type HealthCheck: :class:`tencentcloud.clb.v20180317.models.TargetGroupHealthCheck`
5229
+ :param _ScheduleAlgorithm: 调度算法,仅V2新版目标组,且后端转发协议为(HTTP|HTTPS|GRPC)时该参数有效。可选值:
5230
+ <ur><li>WRR:按权重轮询。</li><li>LEAST_CONN:最小连接数。</li><li>IP_HASH:按IP哈希。</li><li>默认为 WRR。</li><ur>
5231
+ :type ScheduleAlgorithm: str
5227
5232
  :param _Tags: 标签。
5228
5233
  :type Tags: list of TagInfo
5229
- :param _Weight: 后端服务默认权重。
5230
- <ul>
5231
- <li>取值范围[0, 100]</li>
5232
- <li>设置该值后,添加后端服务到目标组时, 若后端服务不单独设置权重, 则使用这里的默认权重。 </li>
5233
- </ul>
5234
- v1 目标组类型不支持设置 Weight 参数。
5234
+ :param _Weight: 后端服务默认权重, 其中:
5235
+ <ul><li>取值范围[0, 100]</li><li>设置该值后,添加后端服务到目标组时, 若后端服务不单独设置权重, 则使用这里的默认权重。 </li><li>v1 目标组类型不支持设置 Weight 参数。</li></ul>
5235
5236
  :type Weight: int
5236
5237
  :param _FullListenSwitch: 全监听目标组标识,true表示是全监听目标组,false表示不是全监听目标组。仅V2新版类型目标组支持该参数。
5237
5238
  :type FullListenSwitch: bool
@@ -5246,6 +5247,8 @@ v1 目标组类型不支持设置 Weight 参数。
5246
5247
  self._TargetGroupInstances = None
5247
5248
  self._Type = None
5248
5249
  self._Protocol = None
5250
+ self._HealthCheck = None
5251
+ self._ScheduleAlgorithm = None
5249
5252
  self._Tags = None
5250
5253
  self._Weight = None
5251
5254
  self._FullListenSwitch = None
@@ -5265,7 +5268,7 @@ v1 目标组类型不支持设置 Weight 参数。
5265
5268
 
5266
5269
  @property
5267
5270
  def VpcId(self):
5268
- """目标组的vpcid属性,不填则使用默认vpc
5271
+ """目标组的vpcId属性,不填则使用默认vpc
5269
5272
  :rtype: str
5270
5273
  """
5271
5274
  return self._VpcId
@@ -5319,6 +5322,29 @@ v1 目标组类型不支持设置 Weight 参数。
5319
5322
  def Protocol(self, Protocol):
5320
5323
  self._Protocol = Protocol
5321
5324
 
5325
+ @property
5326
+ def HealthCheck(self):
5327
+ """健康检查。
5328
+ :rtype: :class:`tencentcloud.clb.v20180317.models.TargetGroupHealthCheck`
5329
+ """
5330
+ return self._HealthCheck
5331
+
5332
+ @HealthCheck.setter
5333
+ def HealthCheck(self, HealthCheck):
5334
+ self._HealthCheck = HealthCheck
5335
+
5336
+ @property
5337
+ def ScheduleAlgorithm(self):
5338
+ """调度算法,仅V2新版目标组,且后端转发协议为(HTTP|HTTPS|GRPC)时该参数有效。可选值:
5339
+ <ur><li>WRR:按权重轮询。</li><li>LEAST_CONN:最小连接数。</li><li>IP_HASH:按IP哈希。</li><li>默认为 WRR。</li><ur>
5340
+ :rtype: str
5341
+ """
5342
+ return self._ScheduleAlgorithm
5343
+
5344
+ @ScheduleAlgorithm.setter
5345
+ def ScheduleAlgorithm(self, ScheduleAlgorithm):
5346
+ self._ScheduleAlgorithm = ScheduleAlgorithm
5347
+
5322
5348
  @property
5323
5349
  def Tags(self):
5324
5350
  """标签。
@@ -5332,12 +5358,8 @@ v1 目标组类型不支持设置 Weight 参数。
5332
5358
 
5333
5359
  @property
5334
5360
  def Weight(self):
5335
- """后端服务默认权重。
5336
- <ul>
5337
- <li>取值范围[0, 100]</li>
5338
- <li>设置该值后,添加后端服务到目标组时, 若后端服务不单独设置权重, 则使用这里的默认权重。 </li>
5339
- </ul>
5340
- v1 目标组类型不支持设置 Weight 参数。
5361
+ """后端服务默认权重, 其中:
5362
+ <ul><li>取值范围[0, 100]</li><li>设置该值后,添加后端服务到目标组时, 若后端服务不单独设置权重, 则使用这里的默认权重。 </li><li>v1 目标组类型不支持设置 Weight 参数。</li></ul>
5341
5363
  :rtype: int
5342
5364
  """
5343
5365
  return self._Weight
@@ -5392,6 +5414,10 @@ v1 目标组类型不支持设置 Weight 参数。
5392
5414
  self._TargetGroupInstances.append(obj)
5393
5415
  self._Type = params.get("Type")
5394
5416
  self._Protocol = params.get("Protocol")
5417
+ if params.get("HealthCheck") is not None:
5418
+ self._HealthCheck = TargetGroupHealthCheck()
5419
+ self._HealthCheck._deserialize(params.get("HealthCheck"))
5420
+ self._ScheduleAlgorithm = params.get("ScheduleAlgorithm")
5395
5421
  if params.get("Tags") is not None:
5396
5422
  self._Tags = []
5397
5423
  for item in params.get("Tags"):
@@ -13988,6 +14014,8 @@ ToaClean: TOA(TCP Option Address)清理,清除TCP选项中的地址信息
13988
14014
  :type Exclusive: int
13989
14015
  :param _TargetCount: 已绑定的后端服务数量。
13990
14016
  :type TargetCount: int
14017
+ :param _AssociateEndpoint: 负载均衡实例关联的Endpoint id。
14018
+ :type AssociateEndpoint: str
13991
14019
  """
13992
14020
  self._LoadBalancerId = None
13993
14021
  self._LoadBalancerName = None
@@ -14046,6 +14074,7 @@ ToaClean: TOA(TCP Option Address)清理,清除TCP选项中的地址信息
14046
14074
  self._Egress = None
14047
14075
  self._Exclusive = None
14048
14076
  self._TargetCount = None
14077
+ self._AssociateEndpoint = None
14049
14078
 
14050
14079
  @property
14051
14080
  def LoadBalancerId(self):
@@ -14731,6 +14760,17 @@ ToaClean: TOA(TCP Option Address)清理,清除TCP选项中的地址信息
14731
14760
  def TargetCount(self, TargetCount):
14732
14761
  self._TargetCount = TargetCount
14733
14762
 
14763
+ @property
14764
+ def AssociateEndpoint(self):
14765
+ """负载均衡实例关联的Endpoint id。
14766
+ :rtype: str
14767
+ """
14768
+ return self._AssociateEndpoint
14769
+
14770
+ @AssociateEndpoint.setter
14771
+ def AssociateEndpoint(self, AssociateEndpoint):
14772
+ self._AssociateEndpoint = AssociateEndpoint
14773
+
14734
14774
 
14735
14775
  def _deserialize(self, params):
14736
14776
  self._LoadBalancerId = params.get("LoadBalancerId")
@@ -14817,6 +14857,7 @@ ToaClean: TOA(TCP Option Address)清理,清除TCP选项中的地址信息
14817
14857
  self._Egress = params.get("Egress")
14818
14858
  self._Exclusive = params.get("Exclusive")
14819
14859
  self._TargetCount = params.get("TargetCount")
14860
+ self._AssociateEndpoint = params.get("AssociateEndpoint")
14820
14861
  memeber_set = set(params.keys())
14821
14862
  for name, value in vars(self).items():
14822
14863
  property_name = name[1:]
@@ -17073,6 +17114,8 @@ class ModifyLoadBalancerAttributesRequest(AbstractModel):
17073
17114
  :type DeleteProtect: bool
17074
17115
  :param _ModifyClassicDomain: 将负载均衡二级域名由mycloud.com改为tencentclb.com,子域名也会变换,修改后mycloud.com域名将失效。不填则不修改。
17075
17116
  :type ModifyClassicDomain: bool
17117
+ :param _AssociateEndpoint: 关联的终端节点Id,可通过[DescribeVpcEndPoint](https://cloud.tencent.com/document/product/215/54679)接口查询。传空字符串代表解除关联。
17118
+ :type AssociateEndpoint: str
17076
17119
  """
17077
17120
  self._LoadBalancerId = None
17078
17121
  self._LoadBalancerName = None
@@ -17082,6 +17125,7 @@ class ModifyLoadBalancerAttributesRequest(AbstractModel):
17082
17125
  self._SnatPro = None
17083
17126
  self._DeleteProtect = None
17084
17127
  self._ModifyClassicDomain = None
17128
+ self._AssociateEndpoint = None
17085
17129
 
17086
17130
  @property
17087
17131
  def LoadBalancerId(self):
@@ -17174,6 +17218,17 @@ class ModifyLoadBalancerAttributesRequest(AbstractModel):
17174
17218
  def ModifyClassicDomain(self, ModifyClassicDomain):
17175
17219
  self._ModifyClassicDomain = ModifyClassicDomain
17176
17220
 
17221
+ @property
17222
+ def AssociateEndpoint(self):
17223
+ """关联的终端节点Id,可通过[DescribeVpcEndPoint](https://cloud.tencent.com/document/product/215/54679)接口查询。传空字符串代表解除关联。
17224
+ :rtype: str
17225
+ """
17226
+ return self._AssociateEndpoint
17227
+
17228
+ @AssociateEndpoint.setter
17229
+ def AssociateEndpoint(self, AssociateEndpoint):
17230
+ self._AssociateEndpoint = AssociateEndpoint
17231
+
17177
17232
 
17178
17233
  def _deserialize(self, params):
17179
17234
  self._LoadBalancerId = params.get("LoadBalancerId")
@@ -17188,6 +17243,7 @@ class ModifyLoadBalancerAttributesRequest(AbstractModel):
17188
17243
  self._SnatPro = params.get("SnatPro")
17189
17244
  self._DeleteProtect = params.get("DeleteProtect")
17190
17245
  self._ModifyClassicDomain = params.get("ModifyClassicDomain")
17246
+ self._AssociateEndpoint = params.get("AssociateEndpoint")
17191
17247
  memeber_set = set(params.keys())
17192
17248
  for name, value in vars(self).items():
17193
17249
  property_name = name[1:]
@@ -17724,12 +17780,12 @@ class ModifyTargetGroupAttributeRequest(AbstractModel):
17724
17780
  :type TargetGroupName: str
17725
17781
  :param _Port: 目标组的新默认端口。全监听目标组不支持此参数。
17726
17782
  :type Port: int
17727
- :param _Weight: 后端服务默认权重。
17728
- <ul>
17729
- <li>取值范围[0, 100]</li>
17730
- <li>设置该值后,添加后端服务到目标组时, 若后端服务不单独设置权重, 则使用这里的默认权重。 </li>
17731
- </ul>
17732
- v1目标组类型不支持设置Weight参数。
17783
+ :param _ScheduleAlgorithm: 调度算法,仅V2新版目标组,且后端转发协议为(HTTP|HTTPS|GRPC)时该参数有效。可选值:
17784
+ <ur><li>WRR:按权重轮询。</li><li>LEAST_CONN:最小连接数。</li><li>IP_HASH:按IP哈希。</li><li>默认为 WRR。</li><ur>
17785
+ :type ScheduleAlgorithm: str
17786
+ :param _HealthCheck: 健康检查详情。
17787
+ :type HealthCheck: :class:`tencentcloud.clb.v20180317.models.TargetGroupHealthCheck`
17788
+ :param _Weight: 后端服务默认权重, 其中:<ul><li>取值范围[0, 100]</li><li>设置该值后,添加后端服务到目标组时, 若后端服务不单独设置权重, 则使用这里的默认权重。 </li><li>v1目标组类型不支持设置Weight参数。</li> </ul>
17733
17789
  :type Weight: int
17734
17790
  :param _KeepaliveEnable: 是否开启长连接,此参数仅适用于HTTP/HTTPS目标组,true:关闭;false:开启, 默认关闭。
17735
17791
  :type KeepaliveEnable: bool
@@ -17739,6 +17795,8 @@ v1目标组类型不支持设置Weight参数。
17739
17795
  self._TargetGroupId = None
17740
17796
  self._TargetGroupName = None
17741
17797
  self._Port = None
17798
+ self._ScheduleAlgorithm = None
17799
+ self._HealthCheck = None
17742
17800
  self._Weight = None
17743
17801
  self._KeepaliveEnable = None
17744
17802
  self._SessionExpireTime = None
@@ -17776,14 +17834,32 @@ v1目标组类型不支持设置Weight参数。
17776
17834
  def Port(self, Port):
17777
17835
  self._Port = Port
17778
17836
 
17837
+ @property
17838
+ def ScheduleAlgorithm(self):
17839
+ """调度算法,仅V2新版目标组,且后端转发协议为(HTTP|HTTPS|GRPC)时该参数有效。可选值:
17840
+ <ur><li>WRR:按权重轮询。</li><li>LEAST_CONN:最小连接数。</li><li>IP_HASH:按IP哈希。</li><li>默认为 WRR。</li><ur>
17841
+ :rtype: str
17842
+ """
17843
+ return self._ScheduleAlgorithm
17844
+
17845
+ @ScheduleAlgorithm.setter
17846
+ def ScheduleAlgorithm(self, ScheduleAlgorithm):
17847
+ self._ScheduleAlgorithm = ScheduleAlgorithm
17848
+
17849
+ @property
17850
+ def HealthCheck(self):
17851
+ """健康检查详情。
17852
+ :rtype: :class:`tencentcloud.clb.v20180317.models.TargetGroupHealthCheck`
17853
+ """
17854
+ return self._HealthCheck
17855
+
17856
+ @HealthCheck.setter
17857
+ def HealthCheck(self, HealthCheck):
17858
+ self._HealthCheck = HealthCheck
17859
+
17779
17860
  @property
17780
17861
  def Weight(self):
17781
- """后端服务默认权重。
17782
- <ul>
17783
- <li>取值范围[0, 100]</li>
17784
- <li>设置该值后,添加后端服务到目标组时, 若后端服务不单独设置权重, 则使用这里的默认权重。 </li>
17785
- </ul>
17786
- v1目标组类型不支持设置Weight参数。
17862
+ """后端服务默认权重, 其中:<ul><li>取值范围[0, 100]</li><li>设置该值后,添加后端服务到目标组时, 若后端服务不单独设置权重, 则使用这里的默认权重。 </li><li>v1目标组类型不支持设置Weight参数。</li> </ul>
17787
17863
  :rtype: int
17788
17864
  """
17789
17865
  return self._Weight
@@ -17819,6 +17895,10 @@ v1目标组类型不支持设置Weight参数。
17819
17895
  self._TargetGroupId = params.get("TargetGroupId")
17820
17896
  self._TargetGroupName = params.get("TargetGroupName")
17821
17897
  self._Port = params.get("Port")
17898
+ self._ScheduleAlgorithm = params.get("ScheduleAlgorithm")
17899
+ if params.get("HealthCheck") is not None:
17900
+ self._HealthCheck = TargetGroupHealthCheck()
17901
+ self._HealthCheck._deserialize(params.get("HealthCheck"))
17822
17902
  self._Weight = params.get("Weight")
17823
17903
  self._KeepaliveEnable = params.get("KeepaliveEnable")
17824
17904
  self._SessionExpireTime = params.get("SessionExpireTime")
@@ -21856,6 +21936,304 @@ class TargetGroupBackend(AbstractModel):
21856
21936
 
21857
21937
 
21858
21938
 
21939
+ class TargetGroupHealthCheck(AbstractModel):
21940
+ """目标组健康检查详情
21941
+
21942
+ """
21943
+
21944
+ def __init__(self):
21945
+ r"""
21946
+ :param _HealthSwitch: 是否开启健康检查。
21947
+ :type HealthSwitch: bool
21948
+ :param _Protocol: 健康检查方式, 其中仅V2新版目标组类型支持该参数, 支持取值 TCP | HTTP | HTTPS | PING | CUSTOM,其中:
21949
+ <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>
21950
+ :type Protocol: str
21951
+ :param _Port: 自定义探测相关参数。健康检查端口,默认为后端服务的端口,除非您希望指定特定端口,否则建议留空。(仅适用于TCP/UDP目标组)。
21952
+
21953
+ :type Port: int
21954
+ :param _Timeout: 健康检查超时时间。 默认为2秒。 可配置范围:2 - 30秒。
21955
+ :type Timeout: int
21956
+ :param _GapTime: 检测间隔时间。 默认为5秒。 可配置范围:2 - 300秒。
21957
+ :type GapTime: int
21958
+ :param _GoodLimit: 检测健康阈值。 默认为3秒。 可配置范围:2 - 10次。
21959
+ :type GoodLimit: int
21960
+ :param _BadLimit: 检测不健康阈值。 默认为3秒。 可配置范围:2 - 10次。
21961
+ :type BadLimit: int
21962
+ :param _JumboFrame: 目标组下的所有rs的探测包是否开启巨帧。默认开启。仅GWLB类型目标组支持该参数。
21963
+ :type JumboFrame: bool
21964
+ :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>若希望多种返回码都可代表健康,则将相应的值相加。
21965
+ 注意:此字段可能返回 null,表示取不到有效值。
21966
+ :type HttpCode: int
21967
+ :param _HttpCheckDomain: 健康检查域名, 其中:<ur><li>仅适用于HTTP/HTTPS目标组和TCP目标组的HTTP健康检查方式。</li><li>针对HTTP/HTTPS目标组,当使用HTTP健康检查方式时,该参数为必填项。</li></ur>
21968
+ 注意:此字段可能返回 null,表示取不到有效值。
21969
+ :type HttpCheckDomain: str
21970
+ :param _HttpCheckPath: 健康检查路径(仅适用于HTTP/HTTPS转发规则、TCP监听器的HTTP健康检查方式)。
21971
+ 注意:此字段可能返回 null,表示取不到有效值。
21972
+ :type HttpCheckPath: str
21973
+ :param _HttpCheckMethod: 健康检查方法(仅适用于HTTP/HTTPS转发规则、TCP监听器的HTTP健康检查方式),默认值:HEAD,可选值HEAD或GET。
21974
+ 注意:此字段可能返回 null,表示取不到有效值。
21975
+ :type HttpCheckMethod: str
21976
+ :param _ContextType: 健康检查的输入格式,健康检查方式取CUSTOM时,必填此字段,可取值:HEX或TEXT,其中:<ur><li>TEXT:文本格式。</li><li>HEX:十六进制格式, SendContext和RecvContext的字符只能在0123456789ABCDEF中选取且长度必须是偶数位。</li><li>仅适用于TCP/UDP目标组。</li></ur>
21977
+ 注意:此字段可能返回 null,表示取不到有效值。
21978
+ :type ContextType: str
21979
+ :param _SendContext: 自定义探测相关参数。健康检查协议CheckType的值取CUSTOM时,必填此字段,代表健康检查发送的请求内容,只允许ASCII可见字符,最大长度限制500。(仅适用于TCP/UDP目标组)。
21980
+ 注意:此字段可能返回 null,表示取不到有效值。
21981
+ :type SendContext: str
21982
+ :param _RecvContext: 自定义探测相关参数。健康检查协议CheckType的值取CUSTOM时,必填此字段,代表健康检查返回的结果,只允许ASCII可见字符,最大长度限制500。(仅适用于TCP/UDP目标组)。
21983
+ 注意:此字段可能返回 null,表示取不到有效值。
21984
+ :type RecvContext: str
21985
+ :param _HttpVersion: HTTP版本, 其中:<ur><li>健康检查协议CheckType的值取HTTP时,必传此字段。</li><li>支持配置选项:HTTP/1.0, HTTP/1.1。</li><li>仅适用于TCP目标组。</li></ur>
21986
+ 注意:此字段可能返回 null,表示取不到有效值。
21987
+ :type HttpVersion: str
21988
+ :param _ExtendedCode: GRPC健康检查状态码(仅适用于后端转发协议为GRPC的目标组)。默认值为 12,可输入值为数值、多个数值、或者范围,例如 20 或 20,25 或 0-99。
21989
+ 注意:此字段可能返回 null,表示取不到有效值。
21990
+ :type ExtendedCode: str
21991
+ """
21992
+ self._HealthSwitch = None
21993
+ self._Protocol = None
21994
+ self._Port = None
21995
+ self._Timeout = None
21996
+ self._GapTime = None
21997
+ self._GoodLimit = None
21998
+ self._BadLimit = None
21999
+ self._JumboFrame = None
22000
+ self._HttpCode = None
22001
+ self._HttpCheckDomain = None
22002
+ self._HttpCheckPath = None
22003
+ self._HttpCheckMethod = None
22004
+ self._ContextType = None
22005
+ self._SendContext = None
22006
+ self._RecvContext = None
22007
+ self._HttpVersion = None
22008
+ self._ExtendedCode = None
22009
+
22010
+ @property
22011
+ def HealthSwitch(self):
22012
+ """是否开启健康检查。
22013
+ :rtype: bool
22014
+ """
22015
+ return self._HealthSwitch
22016
+
22017
+ @HealthSwitch.setter
22018
+ def HealthSwitch(self, HealthSwitch):
22019
+ self._HealthSwitch = HealthSwitch
22020
+
22021
+ @property
22022
+ def Protocol(self):
22023
+ """健康检查方式, 其中仅V2新版目标组类型支持该参数, 支持取值 TCP | HTTP | HTTPS | PING | CUSTOM,其中:
22024
+ <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>
22025
+ :rtype: str
22026
+ """
22027
+ return self._Protocol
22028
+
22029
+ @Protocol.setter
22030
+ def Protocol(self, Protocol):
22031
+ self._Protocol = Protocol
22032
+
22033
+ @property
22034
+ def Port(self):
22035
+ """自定义探测相关参数。健康检查端口,默认为后端服务的端口,除非您希望指定特定端口,否则建议留空。(仅适用于TCP/UDP目标组)。
22036
+
22037
+ :rtype: int
22038
+ """
22039
+ return self._Port
22040
+
22041
+ @Port.setter
22042
+ def Port(self, Port):
22043
+ self._Port = Port
22044
+
22045
+ @property
22046
+ def Timeout(self):
22047
+ """健康检查超时时间。 默认为2秒。 可配置范围:2 - 30秒。
22048
+ :rtype: int
22049
+ """
22050
+ return self._Timeout
22051
+
22052
+ @Timeout.setter
22053
+ def Timeout(self, Timeout):
22054
+ self._Timeout = Timeout
22055
+
22056
+ @property
22057
+ def GapTime(self):
22058
+ """检测间隔时间。 默认为5秒。 可配置范围:2 - 300秒。
22059
+ :rtype: int
22060
+ """
22061
+ return self._GapTime
22062
+
22063
+ @GapTime.setter
22064
+ def GapTime(self, GapTime):
22065
+ self._GapTime = GapTime
22066
+
22067
+ @property
22068
+ def GoodLimit(self):
22069
+ """检测健康阈值。 默认为3秒。 可配置范围:2 - 10次。
22070
+ :rtype: int
22071
+ """
22072
+ return self._GoodLimit
22073
+
22074
+ @GoodLimit.setter
22075
+ def GoodLimit(self, GoodLimit):
22076
+ self._GoodLimit = GoodLimit
22077
+
22078
+ @property
22079
+ def BadLimit(self):
22080
+ """检测不健康阈值。 默认为3秒。 可配置范围:2 - 10次。
22081
+ :rtype: int
22082
+ """
22083
+ return self._BadLimit
22084
+
22085
+ @BadLimit.setter
22086
+ def BadLimit(self, BadLimit):
22087
+ self._BadLimit = BadLimit
22088
+
22089
+ @property
22090
+ def JumboFrame(self):
22091
+ """目标组下的所有rs的探测包是否开启巨帧。默认开启。仅GWLB类型目标组支持该参数。
22092
+ :rtype: bool
22093
+ """
22094
+ return self._JumboFrame
22095
+
22096
+ @JumboFrame.setter
22097
+ def JumboFrame(self, JumboFrame):
22098
+ self._JumboFrame = JumboFrame
22099
+
22100
+ @property
22101
+ def HttpCode(self):
22102
+ """健康检查状态码(仅适用于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>若希望多种返回码都可代表健康,则将相应的值相加。
22103
+ 注意:此字段可能返回 null,表示取不到有效值。
22104
+ :rtype: int
22105
+ """
22106
+ return self._HttpCode
22107
+
22108
+ @HttpCode.setter
22109
+ def HttpCode(self, HttpCode):
22110
+ self._HttpCode = HttpCode
22111
+
22112
+ @property
22113
+ def HttpCheckDomain(self):
22114
+ """健康检查域名, 其中:<ur><li>仅适用于HTTP/HTTPS目标组和TCP目标组的HTTP健康检查方式。</li><li>针对HTTP/HTTPS目标组,当使用HTTP健康检查方式时,该参数为必填项。</li></ur>
22115
+ 注意:此字段可能返回 null,表示取不到有效值。
22116
+ :rtype: str
22117
+ """
22118
+ return self._HttpCheckDomain
22119
+
22120
+ @HttpCheckDomain.setter
22121
+ def HttpCheckDomain(self, HttpCheckDomain):
22122
+ self._HttpCheckDomain = HttpCheckDomain
22123
+
22124
+ @property
22125
+ def HttpCheckPath(self):
22126
+ """健康检查路径(仅适用于HTTP/HTTPS转发规则、TCP监听器的HTTP健康检查方式)。
22127
+ 注意:此字段可能返回 null,表示取不到有效值。
22128
+ :rtype: str
22129
+ """
22130
+ return self._HttpCheckPath
22131
+
22132
+ @HttpCheckPath.setter
22133
+ def HttpCheckPath(self, HttpCheckPath):
22134
+ self._HttpCheckPath = HttpCheckPath
22135
+
22136
+ @property
22137
+ def HttpCheckMethod(self):
22138
+ """健康检查方法(仅适用于HTTP/HTTPS转发规则、TCP监听器的HTTP健康检查方式),默认值:HEAD,可选值HEAD或GET。
22139
+ 注意:此字段可能返回 null,表示取不到有效值。
22140
+ :rtype: str
22141
+ """
22142
+ return self._HttpCheckMethod
22143
+
22144
+ @HttpCheckMethod.setter
22145
+ def HttpCheckMethod(self, HttpCheckMethod):
22146
+ self._HttpCheckMethod = HttpCheckMethod
22147
+
22148
+ @property
22149
+ def ContextType(self):
22150
+ """健康检查的输入格式,健康检查方式取CUSTOM时,必填此字段,可取值:HEX或TEXT,其中:<ur><li>TEXT:文本格式。</li><li>HEX:十六进制格式, SendContext和RecvContext的字符只能在0123456789ABCDEF中选取且长度必须是偶数位。</li><li>仅适用于TCP/UDP目标组。</li></ur>
22151
+ 注意:此字段可能返回 null,表示取不到有效值。
22152
+ :rtype: str
22153
+ """
22154
+ return self._ContextType
22155
+
22156
+ @ContextType.setter
22157
+ def ContextType(self, ContextType):
22158
+ self._ContextType = ContextType
22159
+
22160
+ @property
22161
+ def SendContext(self):
22162
+ """自定义探测相关参数。健康检查协议CheckType的值取CUSTOM时,必填此字段,代表健康检查发送的请求内容,只允许ASCII可见字符,最大长度限制500。(仅适用于TCP/UDP目标组)。
22163
+ 注意:此字段可能返回 null,表示取不到有效值。
22164
+ :rtype: str
22165
+ """
22166
+ return self._SendContext
22167
+
22168
+ @SendContext.setter
22169
+ def SendContext(self, SendContext):
22170
+ self._SendContext = SendContext
22171
+
22172
+ @property
22173
+ def RecvContext(self):
22174
+ """自定义探测相关参数。健康检查协议CheckType的值取CUSTOM时,必填此字段,代表健康检查返回的结果,只允许ASCII可见字符,最大长度限制500。(仅适用于TCP/UDP目标组)。
22175
+ 注意:此字段可能返回 null,表示取不到有效值。
22176
+ :rtype: str
22177
+ """
22178
+ return self._RecvContext
22179
+
22180
+ @RecvContext.setter
22181
+ def RecvContext(self, RecvContext):
22182
+ self._RecvContext = RecvContext
22183
+
22184
+ @property
22185
+ def HttpVersion(self):
22186
+ """HTTP版本, 其中:<ur><li>健康检查协议CheckType的值取HTTP时,必传此字段。</li><li>支持配置选项:HTTP/1.0, HTTP/1.1。</li><li>仅适用于TCP目标组。</li></ur>
22187
+ 注意:此字段可能返回 null,表示取不到有效值。
22188
+ :rtype: str
22189
+ """
22190
+ return self._HttpVersion
22191
+
22192
+ @HttpVersion.setter
22193
+ def HttpVersion(self, HttpVersion):
22194
+ self._HttpVersion = HttpVersion
22195
+
22196
+ @property
22197
+ def ExtendedCode(self):
22198
+ """GRPC健康检查状态码(仅适用于后端转发协议为GRPC的目标组)。默认值为 12,可输入值为数值、多个数值、或者范围,例如 20 或 20,25 或 0-99。
22199
+ 注意:此字段可能返回 null,表示取不到有效值。
22200
+ :rtype: str
22201
+ """
22202
+ return self._ExtendedCode
22203
+
22204
+ @ExtendedCode.setter
22205
+ def ExtendedCode(self, ExtendedCode):
22206
+ self._ExtendedCode = ExtendedCode
22207
+
22208
+
22209
+ def _deserialize(self, params):
22210
+ self._HealthSwitch = params.get("HealthSwitch")
22211
+ self._Protocol = params.get("Protocol")
22212
+ self._Port = params.get("Port")
22213
+ self._Timeout = params.get("Timeout")
22214
+ self._GapTime = params.get("GapTime")
22215
+ self._GoodLimit = params.get("GoodLimit")
22216
+ self._BadLimit = params.get("BadLimit")
22217
+ self._JumboFrame = params.get("JumboFrame")
22218
+ self._HttpCode = params.get("HttpCode")
22219
+ self._HttpCheckDomain = params.get("HttpCheckDomain")
22220
+ self._HttpCheckPath = params.get("HttpCheckPath")
22221
+ self._HttpCheckMethod = params.get("HttpCheckMethod")
22222
+ self._ContextType = params.get("ContextType")
22223
+ self._SendContext = params.get("SendContext")
22224
+ self._RecvContext = params.get("RecvContext")
22225
+ self._HttpVersion = params.get("HttpVersion")
22226
+ self._ExtendedCode = params.get("ExtendedCode")
22227
+ memeber_set = set(params.keys())
22228
+ for name, value in vars(self).items():
22229
+ property_name = name[1:]
22230
+ if property_name in memeber_set:
22231
+ memeber_set.remove(property_name)
22232
+ if len(memeber_set) > 0:
22233
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
22234
+
22235
+
22236
+
21859
22237
  class TargetGroupInfo(AbstractModel):
21860
22238
  """目标组信息
21861
22239
 
@@ -21882,6 +22260,18 @@ class TargetGroupInfo(AbstractModel):
21882
22260
  :param _Protocol: 目标组后端转发协议, 仅v2新版目标组返回有效值。
21883
22261
  注意:此字段可能返回 null,表示取不到有效值。
21884
22262
  :type Protocol: str
22263
+ :param _ScheduleAlgorithm: 调度算法,仅后端转发协议为(HTTP、HTTPS、GRPC)的目标组返回有效值, 可选值:
22264
+ <ur>
22265
+ <li>WRR:按权重轮询。</li>
22266
+ <li>LEAST_CONN:最小连接数。</li>
22267
+ <li>IP_HASH:按IP哈希。</li>
22268
+ </ur>
22269
+
22270
+ 注意:此字段可能返回 null,表示取不到有效值。
22271
+ :type ScheduleAlgorithm: str
22272
+ :param _HealthCheck: 健康检查详情。
22273
+ 注意:此字段可能返回 null,表示取不到有效值。
22274
+ :type HealthCheck: :class:`tencentcloud.clb.v20180317.models.TargetGroupHealthCheck`
21885
22275
  :param _TargetGroupType: 目标组类型,当前支持v1(旧版目标组), v2(新版目标组)。默认为v1旧版目标组。
21886
22276
  :type TargetGroupType: str
21887
22277
  :param _AssociatedRuleCount: 目标组已关联的规则数。
@@ -21908,6 +22298,8 @@ class TargetGroupInfo(AbstractModel):
21908
22298
  self._UpdatedTime = None
21909
22299
  self._AssociatedRule = None
21910
22300
  self._Protocol = None
22301
+ self._ScheduleAlgorithm = None
22302
+ self._HealthCheck = None
21911
22303
  self._TargetGroupType = None
21912
22304
  self._AssociatedRuleCount = None
21913
22305
  self._RegisteredInstancesCount = None
@@ -22008,6 +22400,36 @@ class TargetGroupInfo(AbstractModel):
22008
22400
  def Protocol(self, Protocol):
22009
22401
  self._Protocol = Protocol
22010
22402
 
22403
+ @property
22404
+ def ScheduleAlgorithm(self):
22405
+ """调度算法,仅后端转发协议为(HTTP、HTTPS、GRPC)的目标组返回有效值, 可选值:
22406
+ <ur>
22407
+ <li>WRR:按权重轮询。</li>
22408
+ <li>LEAST_CONN:最小连接数。</li>
22409
+ <li>IP_HASH:按IP哈希。</li>
22410
+ </ur>
22411
+
22412
+ 注意:此字段可能返回 null,表示取不到有效值。
22413
+ :rtype: str
22414
+ """
22415
+ return self._ScheduleAlgorithm
22416
+
22417
+ @ScheduleAlgorithm.setter
22418
+ def ScheduleAlgorithm(self, ScheduleAlgorithm):
22419
+ self._ScheduleAlgorithm = ScheduleAlgorithm
22420
+
22421
+ @property
22422
+ def HealthCheck(self):
22423
+ """健康检查详情。
22424
+ 注意:此字段可能返回 null,表示取不到有效值。
22425
+ :rtype: :class:`tencentcloud.clb.v20180317.models.TargetGroupHealthCheck`
22426
+ """
22427
+ return self._HealthCheck
22428
+
22429
+ @HealthCheck.setter
22430
+ def HealthCheck(self, HealthCheck):
22431
+ self._HealthCheck = HealthCheck
22432
+
22011
22433
  @property
22012
22434
  def TargetGroupType(self):
22013
22435
  """目标组类型,当前支持v1(旧版目标组), v2(新版目标组)。默认为v1旧版目标组。
@@ -22112,6 +22534,10 @@ class TargetGroupInfo(AbstractModel):
22112
22534
  obj._deserialize(item)
22113
22535
  self._AssociatedRule.append(obj)
22114
22536
  self._Protocol = params.get("Protocol")
22537
+ self._ScheduleAlgorithm = params.get("ScheduleAlgorithm")
22538
+ if params.get("HealthCheck") is not None:
22539
+ self._HealthCheck = TargetGroupHealthCheck()
22540
+ self._HealthCheck._deserialize(params.get("HealthCheck"))
22115
22541
  self._TargetGroupType = params.get("TargetGroupType")
22116
22542
  self._AssociatedRuleCount = params.get("AssociatedRuleCount")
22117
22543
  self._RegisteredInstancesCount = params.get("RegisteredInstancesCount")
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 1.2
2
2
  Name: tencentcloud-sdk-python-clb
3
- Version: 3.0.1443
3
+ Version: 3.0.1447
4
4
  Summary: Tencent Cloud Clb SDK for Python
5
5
  Home-page: https://github.com/TencentCloud/tencentcloud-sdk-python
6
6
  Author: Tencent Cloud
@@ -0,0 +1 @@
1
+ tencentcloud-sdk-python-common<4.0.0,>=3.0.1447
@@ -1 +0,0 @@
1
- tencentcloud-sdk-python-common<4.0.0,>=3.0.1443