tencentcloud-sdk-python-clb 3.0.1393__tar.gz → 3.0.1399__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.
- {tencentcloud-sdk-python-clb-3.0.1393 → tencentcloud-sdk-python-clb-3.0.1399}/PKG-INFO +1 -1
- {tencentcloud-sdk-python-clb-3.0.1393 → tencentcloud-sdk-python-clb-3.0.1399}/setup.py +1 -1
- {tencentcloud-sdk-python-clb-3.0.1393 → tencentcloud-sdk-python-clb-3.0.1399}/tencentcloud/__init__.py +1 -1
- {tencentcloud-sdk-python-clb-3.0.1393 → tencentcloud-sdk-python-clb-3.0.1399}/tencentcloud/clb/v20180317/clb_client.py +23 -0
- {tencentcloud-sdk-python-clb-3.0.1393 → tencentcloud-sdk-python-clb-3.0.1399}/tencentcloud/clb/v20180317/models.py +216 -0
- {tencentcloud-sdk-python-clb-3.0.1393 → tencentcloud-sdk-python-clb-3.0.1399}/tencentcloud_sdk_python_clb.egg-info/PKG-INFO +1 -1
- tencentcloud-sdk-python-clb-3.0.1399/tencentcloud_sdk_python_clb.egg-info/requires.txt +1 -0
- tencentcloud-sdk-python-clb-3.0.1393/tencentcloud_sdk_python_clb.egg-info/requires.txt +0 -1
- {tencentcloud-sdk-python-clb-3.0.1393 → tencentcloud-sdk-python-clb-3.0.1399}/README.rst +0 -0
- {tencentcloud-sdk-python-clb-3.0.1393 → tencentcloud-sdk-python-clb-3.0.1399}/setup.cfg +0 -0
- {tencentcloud-sdk-python-clb-3.0.1393 → tencentcloud-sdk-python-clb-3.0.1399}/tencentcloud/clb/__init__.py +0 -0
- {tencentcloud-sdk-python-clb-3.0.1393 → tencentcloud-sdk-python-clb-3.0.1399}/tencentcloud/clb/v20180317/__init__.py +0 -0
- {tencentcloud-sdk-python-clb-3.0.1393 → tencentcloud-sdk-python-clb-3.0.1399}/tencentcloud/clb/v20180317/errorcodes.py +0 -0
- {tencentcloud-sdk-python-clb-3.0.1393 → tencentcloud-sdk-python-clb-3.0.1399}/tencentcloud_sdk_python_clb.egg-info/SOURCES.txt +0 -0
- {tencentcloud-sdk-python-clb-3.0.1393 → tencentcloud-sdk-python-clb-3.0.1399}/tencentcloud_sdk_python_clb.egg-info/dependency_links.txt +0 -0
- {tencentcloud-sdk-python-clb-3.0.1393 → tencentcloud-sdk-python-clb-3.0.1399}/tencentcloud_sdk_python_clb.egg-info/top_level.txt +0 -0
|
@@ -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.
|
|
11
|
+
install_requires=["tencentcloud-sdk-python-common==3.0.1399"],
|
|
12
12
|
version=tencentcloud.__version__,
|
|
13
13
|
description='Tencent Cloud Clb SDK for Python',
|
|
14
14
|
long_description=open('README.rst').read(),
|
|
@@ -1042,6 +1042,29 @@ class ClbClient(AbstractClient):
|
|
|
1042
1042
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
1043
1043
|
|
|
1044
1044
|
|
|
1045
|
+
def DescribeLBOperateProtect(self, request):
|
|
1046
|
+
"""查询负载均衡的操作保护信息。
|
|
1047
|
+
|
|
1048
|
+
:param request: Request instance for DescribeLBOperateProtect.
|
|
1049
|
+
:type request: :class:`tencentcloud.clb.v20180317.models.DescribeLBOperateProtectRequest`
|
|
1050
|
+
:rtype: :class:`tencentcloud.clb.v20180317.models.DescribeLBOperateProtectResponse`
|
|
1051
|
+
|
|
1052
|
+
"""
|
|
1053
|
+
try:
|
|
1054
|
+
params = request._serialize()
|
|
1055
|
+
headers = request.headers
|
|
1056
|
+
body = self.call("DescribeLBOperateProtect", params, headers=headers)
|
|
1057
|
+
response = json.loads(body)
|
|
1058
|
+
model = models.DescribeLBOperateProtectResponse()
|
|
1059
|
+
model._deserialize(response["Response"])
|
|
1060
|
+
return model
|
|
1061
|
+
except Exception as e:
|
|
1062
|
+
if isinstance(e, TencentCloudSDKException):
|
|
1063
|
+
raise
|
|
1064
|
+
else:
|
|
1065
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
1066
|
+
|
|
1067
|
+
|
|
1045
1068
|
def DescribeListeners(self, request):
|
|
1046
1069
|
"""DescribeListeners 接口可根据负载均衡器 ID、监听器的协议或端口作为过滤条件获取监听器列表。如果不指定任何过滤条件,则返回该负载均衡实例下的所有监听器。
|
|
1047
1070
|
|
|
@@ -3998,6 +3998,8 @@ class CreateListenerRequest(AbstractModel):
|
|
|
3998
3998
|
:type MaxCps: int
|
|
3999
3999
|
:param _IdleConnectTimeout: 空闲连接超时时间,此参数仅适用于TCP监听器,单位:秒。取值范围:共享型实例和独占型实例支持:300-900,性能容量型实例支持:300-1980。如需设置请通过 [工单申请](https://console.cloud.tencent.com/workorder/category)。
|
|
4000
4000
|
:type IdleConnectTimeout: int
|
|
4001
|
+
:param _ProxyProtocol: TCP_SSL和QUIC是否支持PP
|
|
4002
|
+
:type ProxyProtocol: bool
|
|
4001
4003
|
:param _SnatEnable: 是否开启SNAT,True(开启)、False(关闭)。
|
|
4002
4004
|
默认为关闭。
|
|
4003
4005
|
:type SnatEnable: bool
|
|
@@ -4030,6 +4032,7 @@ class CreateListenerRequest(AbstractModel):
|
|
|
4030
4032
|
self._MaxConn = None
|
|
4031
4033
|
self._MaxCps = None
|
|
4032
4034
|
self._IdleConnectTimeout = None
|
|
4035
|
+
self._ProxyProtocol = None
|
|
4033
4036
|
self._SnatEnable = None
|
|
4034
4037
|
self._FullEndPorts = None
|
|
4035
4038
|
self._H2cSwitch = None
|
|
@@ -4241,6 +4244,17 @@ class CreateListenerRequest(AbstractModel):
|
|
|
4241
4244
|
def IdleConnectTimeout(self, IdleConnectTimeout):
|
|
4242
4245
|
self._IdleConnectTimeout = IdleConnectTimeout
|
|
4243
4246
|
|
|
4247
|
+
@property
|
|
4248
|
+
def ProxyProtocol(self):
|
|
4249
|
+
"""TCP_SSL和QUIC是否支持PP
|
|
4250
|
+
:rtype: bool
|
|
4251
|
+
"""
|
|
4252
|
+
return self._ProxyProtocol
|
|
4253
|
+
|
|
4254
|
+
@ProxyProtocol.setter
|
|
4255
|
+
def ProxyProtocol(self, ProxyProtocol):
|
|
4256
|
+
self._ProxyProtocol = ProxyProtocol
|
|
4257
|
+
|
|
4244
4258
|
@property
|
|
4245
4259
|
def SnatEnable(self):
|
|
4246
4260
|
"""是否开启SNAT,True(开启)、False(关闭)。
|
|
@@ -4325,6 +4339,7 @@ class CreateListenerRequest(AbstractModel):
|
|
|
4325
4339
|
self._MaxConn = params.get("MaxConn")
|
|
4326
4340
|
self._MaxCps = params.get("MaxCps")
|
|
4327
4341
|
self._IdleConnectTimeout = params.get("IdleConnectTimeout")
|
|
4342
|
+
self._ProxyProtocol = params.get("ProxyProtocol")
|
|
4328
4343
|
self._SnatEnable = params.get("SnatEnable")
|
|
4329
4344
|
self._FullEndPorts = params.get("FullEndPorts")
|
|
4330
4345
|
self._H2cSwitch = params.get("H2cSwitch")
|
|
@@ -8549,6 +8564,90 @@ class DescribeLBListenersResponse(AbstractModel):
|
|
|
8549
8564
|
self._RequestId = params.get("RequestId")
|
|
8550
8565
|
|
|
8551
8566
|
|
|
8567
|
+
class DescribeLBOperateProtectRequest(AbstractModel):
|
|
8568
|
+
"""DescribeLBOperateProtect请求参数结构体
|
|
8569
|
+
|
|
8570
|
+
"""
|
|
8571
|
+
|
|
8572
|
+
def __init__(self):
|
|
8573
|
+
r"""
|
|
8574
|
+
:param _LoadBalancerIds: 负载均衡实例ID。
|
|
8575
|
+
:type LoadBalancerIds: list of str
|
|
8576
|
+
"""
|
|
8577
|
+
self._LoadBalancerIds = None
|
|
8578
|
+
|
|
8579
|
+
@property
|
|
8580
|
+
def LoadBalancerIds(self):
|
|
8581
|
+
"""负载均衡实例ID。
|
|
8582
|
+
:rtype: list of str
|
|
8583
|
+
"""
|
|
8584
|
+
return self._LoadBalancerIds
|
|
8585
|
+
|
|
8586
|
+
@LoadBalancerIds.setter
|
|
8587
|
+
def LoadBalancerIds(self, LoadBalancerIds):
|
|
8588
|
+
self._LoadBalancerIds = LoadBalancerIds
|
|
8589
|
+
|
|
8590
|
+
|
|
8591
|
+
def _deserialize(self, params):
|
|
8592
|
+
self._LoadBalancerIds = params.get("LoadBalancerIds")
|
|
8593
|
+
memeber_set = set(params.keys())
|
|
8594
|
+
for name, value in vars(self).items():
|
|
8595
|
+
property_name = name[1:]
|
|
8596
|
+
if property_name in memeber_set:
|
|
8597
|
+
memeber_set.remove(property_name)
|
|
8598
|
+
if len(memeber_set) > 0:
|
|
8599
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
8600
|
+
|
|
8601
|
+
|
|
8602
|
+
|
|
8603
|
+
class DescribeLBOperateProtectResponse(AbstractModel):
|
|
8604
|
+
"""DescribeLBOperateProtect返回参数结构体
|
|
8605
|
+
|
|
8606
|
+
"""
|
|
8607
|
+
|
|
8608
|
+
def __init__(self):
|
|
8609
|
+
r"""
|
|
8610
|
+
:param _LoadBalancerSet: 返回的负载均衡操作保护信息数组。
|
|
8611
|
+
:type LoadBalancerSet: list of LBOperateProtectInfo
|
|
8612
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
8613
|
+
:type RequestId: str
|
|
8614
|
+
"""
|
|
8615
|
+
self._LoadBalancerSet = None
|
|
8616
|
+
self._RequestId = None
|
|
8617
|
+
|
|
8618
|
+
@property
|
|
8619
|
+
def LoadBalancerSet(self):
|
|
8620
|
+
"""返回的负载均衡操作保护信息数组。
|
|
8621
|
+
:rtype: list of LBOperateProtectInfo
|
|
8622
|
+
"""
|
|
8623
|
+
return self._LoadBalancerSet
|
|
8624
|
+
|
|
8625
|
+
@LoadBalancerSet.setter
|
|
8626
|
+
def LoadBalancerSet(self, LoadBalancerSet):
|
|
8627
|
+
self._LoadBalancerSet = LoadBalancerSet
|
|
8628
|
+
|
|
8629
|
+
@property
|
|
8630
|
+
def RequestId(self):
|
|
8631
|
+
"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
8632
|
+
:rtype: str
|
|
8633
|
+
"""
|
|
8634
|
+
return self._RequestId
|
|
8635
|
+
|
|
8636
|
+
@RequestId.setter
|
|
8637
|
+
def RequestId(self, RequestId):
|
|
8638
|
+
self._RequestId = RequestId
|
|
8639
|
+
|
|
8640
|
+
|
|
8641
|
+
def _deserialize(self, params):
|
|
8642
|
+
if params.get("LoadBalancerSet") is not None:
|
|
8643
|
+
self._LoadBalancerSet = []
|
|
8644
|
+
for item in params.get("LoadBalancerSet"):
|
|
8645
|
+
obj = LBOperateProtectInfo()
|
|
8646
|
+
obj._deserialize(item)
|
|
8647
|
+
self._LoadBalancerSet.append(obj)
|
|
8648
|
+
self._RequestId = params.get("RequestId")
|
|
8649
|
+
|
|
8650
|
+
|
|
8552
8651
|
class DescribeListenersRequest(AbstractModel):
|
|
8553
8652
|
"""DescribeListeners请求参数结构体
|
|
8554
8653
|
|
|
@@ -12653,6 +12752,108 @@ class LBItem(AbstractModel):
|
|
|
12653
12752
|
|
|
12654
12753
|
|
|
12655
12754
|
|
|
12755
|
+
class LBOperateProtectInfo(AbstractModel):
|
|
12756
|
+
"""负载均衡的操作保护信息
|
|
12757
|
+
|
|
12758
|
+
"""
|
|
12759
|
+
|
|
12760
|
+
def __init__(self):
|
|
12761
|
+
r"""
|
|
12762
|
+
:param _LoadBalancerId: 负载均衡实例 ID。
|
|
12763
|
+
:type LoadBalancerId: str
|
|
12764
|
+
:param _ProtectState: 保护状态,true:表示开启了操作保护,false:表示未开启操作保护。
|
|
12765
|
+
:type ProtectState: bool
|
|
12766
|
+
:param _OperatorUin: 操作保护的设置uin。
|
|
12767
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
12768
|
+
:type OperatorUin: str
|
|
12769
|
+
:param _Description: 设置操作保护时的描述信息。
|
|
12770
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
12771
|
+
:type Description: str
|
|
12772
|
+
:param _ModifyTime: 最后修改时间。
|
|
12773
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
12774
|
+
:type ModifyTime: str
|
|
12775
|
+
"""
|
|
12776
|
+
self._LoadBalancerId = None
|
|
12777
|
+
self._ProtectState = None
|
|
12778
|
+
self._OperatorUin = None
|
|
12779
|
+
self._Description = None
|
|
12780
|
+
self._ModifyTime = None
|
|
12781
|
+
|
|
12782
|
+
@property
|
|
12783
|
+
def LoadBalancerId(self):
|
|
12784
|
+
"""负载均衡实例 ID。
|
|
12785
|
+
:rtype: str
|
|
12786
|
+
"""
|
|
12787
|
+
return self._LoadBalancerId
|
|
12788
|
+
|
|
12789
|
+
@LoadBalancerId.setter
|
|
12790
|
+
def LoadBalancerId(self, LoadBalancerId):
|
|
12791
|
+
self._LoadBalancerId = LoadBalancerId
|
|
12792
|
+
|
|
12793
|
+
@property
|
|
12794
|
+
def ProtectState(self):
|
|
12795
|
+
"""保护状态,true:表示开启了操作保护,false:表示未开启操作保护。
|
|
12796
|
+
:rtype: bool
|
|
12797
|
+
"""
|
|
12798
|
+
return self._ProtectState
|
|
12799
|
+
|
|
12800
|
+
@ProtectState.setter
|
|
12801
|
+
def ProtectState(self, ProtectState):
|
|
12802
|
+
self._ProtectState = ProtectState
|
|
12803
|
+
|
|
12804
|
+
@property
|
|
12805
|
+
def OperatorUin(self):
|
|
12806
|
+
"""操作保护的设置uin。
|
|
12807
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
12808
|
+
:rtype: str
|
|
12809
|
+
"""
|
|
12810
|
+
return self._OperatorUin
|
|
12811
|
+
|
|
12812
|
+
@OperatorUin.setter
|
|
12813
|
+
def OperatorUin(self, OperatorUin):
|
|
12814
|
+
self._OperatorUin = OperatorUin
|
|
12815
|
+
|
|
12816
|
+
@property
|
|
12817
|
+
def Description(self):
|
|
12818
|
+
"""设置操作保护时的描述信息。
|
|
12819
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
12820
|
+
:rtype: str
|
|
12821
|
+
"""
|
|
12822
|
+
return self._Description
|
|
12823
|
+
|
|
12824
|
+
@Description.setter
|
|
12825
|
+
def Description(self, Description):
|
|
12826
|
+
self._Description = Description
|
|
12827
|
+
|
|
12828
|
+
@property
|
|
12829
|
+
def ModifyTime(self):
|
|
12830
|
+
"""最后修改时间。
|
|
12831
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
12832
|
+
:rtype: str
|
|
12833
|
+
"""
|
|
12834
|
+
return self._ModifyTime
|
|
12835
|
+
|
|
12836
|
+
@ModifyTime.setter
|
|
12837
|
+
def ModifyTime(self, ModifyTime):
|
|
12838
|
+
self._ModifyTime = ModifyTime
|
|
12839
|
+
|
|
12840
|
+
|
|
12841
|
+
def _deserialize(self, params):
|
|
12842
|
+
self._LoadBalancerId = params.get("LoadBalancerId")
|
|
12843
|
+
self._ProtectState = params.get("ProtectState")
|
|
12844
|
+
self._OperatorUin = params.get("OperatorUin")
|
|
12845
|
+
self._Description = params.get("Description")
|
|
12846
|
+
self._ModifyTime = params.get("ModifyTime")
|
|
12847
|
+
memeber_set = set(params.keys())
|
|
12848
|
+
for name, value in vars(self).items():
|
|
12849
|
+
property_name = name[1:]
|
|
12850
|
+
if property_name in memeber_set:
|
|
12851
|
+
memeber_set.remove(property_name)
|
|
12852
|
+
if len(memeber_set) > 0:
|
|
12853
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
12854
|
+
|
|
12855
|
+
|
|
12856
|
+
|
|
12656
12857
|
class LbRsItem(AbstractModel):
|
|
12657
12858
|
"""查询类型
|
|
12658
12859
|
|
|
@@ -16503,6 +16704,8 @@ True表示发送 RST 给客户端,False表示不发送 RST 给客户端。
|
|
|
16503
16704
|
:type MaxCps: int
|
|
16504
16705
|
:param _IdleConnectTimeout: 空闲连接超时时间,此参数仅适用于TCP监听器,单位:秒。默认值:900,取值范围:共享型实例和独占型实例支持:300~900,性能容量型实例支持:300~1980。如需设置超过2000s,请通过 [工单申请](https://console.cloud.tencent.com/workorder/category),最大可设置到3600s。
|
|
16505
16706
|
:type IdleConnectTimeout: int
|
|
16707
|
+
:param _ProxyProtocol: TCP_SSL和QUIC是否支持PP
|
|
16708
|
+
:type ProxyProtocol: bool
|
|
16506
16709
|
:param _SnatEnable: 是否开启SNAT, True 表示开启 SNAT,False 表示不开启 SNAT。
|
|
16507
16710
|
不传则表示不修改。
|
|
16508
16711
|
:type SnatEnable: bool
|
|
@@ -16525,6 +16728,7 @@ True表示发送 RST 给客户端,False表示不发送 RST 给客户端。
|
|
|
16525
16728
|
self._MaxConn = None
|
|
16526
16729
|
self._MaxCps = None
|
|
16527
16730
|
self._IdleConnectTimeout = None
|
|
16731
|
+
self._ProxyProtocol = None
|
|
16528
16732
|
self._SnatEnable = None
|
|
16529
16733
|
self._DataCompressMode = None
|
|
16530
16734
|
|
|
@@ -16714,6 +16918,17 @@ True表示发送 RST 给客户端,False表示不发送 RST 给客户端。
|
|
|
16714
16918
|
def IdleConnectTimeout(self, IdleConnectTimeout):
|
|
16715
16919
|
self._IdleConnectTimeout = IdleConnectTimeout
|
|
16716
16920
|
|
|
16921
|
+
@property
|
|
16922
|
+
def ProxyProtocol(self):
|
|
16923
|
+
"""TCP_SSL和QUIC是否支持PP
|
|
16924
|
+
:rtype: bool
|
|
16925
|
+
"""
|
|
16926
|
+
return self._ProxyProtocol
|
|
16927
|
+
|
|
16928
|
+
@ProxyProtocol.setter
|
|
16929
|
+
def ProxyProtocol(self, ProxyProtocol):
|
|
16930
|
+
self._ProxyProtocol = ProxyProtocol
|
|
16931
|
+
|
|
16717
16932
|
@property
|
|
16718
16933
|
def SnatEnable(self):
|
|
16719
16934
|
"""是否开启SNAT, True 表示开启 SNAT,False 表示不开启 SNAT。
|
|
@@ -16761,6 +16976,7 @@ True表示发送 RST 给客户端,False表示不发送 RST 给客户端。
|
|
|
16761
16976
|
self._MaxConn = params.get("MaxConn")
|
|
16762
16977
|
self._MaxCps = params.get("MaxCps")
|
|
16763
16978
|
self._IdleConnectTimeout = params.get("IdleConnectTimeout")
|
|
16979
|
+
self._ProxyProtocol = params.get("ProxyProtocol")
|
|
16764
16980
|
self._SnatEnable = params.get("SnatEnable")
|
|
16765
16981
|
self._DataCompressMode = params.get("DataCompressMode")
|
|
16766
16982
|
memeber_set = set(params.keys())
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
tencentcloud-sdk-python-common==3.0.1399
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
tencentcloud-sdk-python-common==3.0.1393
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|