tencentcloud-sdk-python-clb 3.1.8__tar.gz → 3.1.13__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.
Files changed (17) hide show
  1. {tencentcloud_sdk_python_clb-3.1.8 → tencentcloud_sdk_python_clb-3.1.13}/PKG-INFO +2 -2
  2. {tencentcloud_sdk_python_clb-3.1.8 → tencentcloud_sdk_python_clb-3.1.13}/setup.py +1 -1
  3. {tencentcloud_sdk_python_clb-3.1.8 → tencentcloud_sdk_python_clb-3.1.13}/tencentcloud/__init__.py +1 -1
  4. {tencentcloud_sdk_python_clb-3.1.8 → tencentcloud_sdk_python_clb-3.1.13}/tencentcloud/clb/v20180317/clb_client.py +23 -0
  5. {tencentcloud_sdk_python_clb-3.1.8 → tencentcloud_sdk_python_clb-3.1.13}/tencentcloud/clb/v20180317/clb_client_async.py +18 -0
  6. {tencentcloud_sdk_python_clb-3.1.8 → tencentcloud_sdk_python_clb-3.1.13}/tencentcloud/clb/v20180317/models.py +205 -0
  7. {tencentcloud_sdk_python_clb-3.1.8 → tencentcloud_sdk_python_clb-3.1.13}/tencentcloud_sdk_python_clb.egg-info/PKG-INFO +2 -2
  8. tencentcloud_sdk_python_clb-3.1.13/tencentcloud_sdk_python_clb.egg-info/requires.txt +1 -0
  9. tencentcloud_sdk_python_clb-3.1.8/tencentcloud_sdk_python_clb.egg-info/requires.txt +0 -1
  10. {tencentcloud_sdk_python_clb-3.1.8 → tencentcloud_sdk_python_clb-3.1.13}/README.rst +0 -0
  11. {tencentcloud_sdk_python_clb-3.1.8 → tencentcloud_sdk_python_clb-3.1.13}/setup.cfg +0 -0
  12. {tencentcloud_sdk_python_clb-3.1.8 → tencentcloud_sdk_python_clb-3.1.13}/tencentcloud/clb/__init__.py +0 -0
  13. {tencentcloud_sdk_python_clb-3.1.8 → tencentcloud_sdk_python_clb-3.1.13}/tencentcloud/clb/v20180317/__init__.py +0 -0
  14. {tencentcloud_sdk_python_clb-3.1.8 → tencentcloud_sdk_python_clb-3.1.13}/tencentcloud/clb/v20180317/errorcodes.py +0 -0
  15. {tencentcloud_sdk_python_clb-3.1.8 → tencentcloud_sdk_python_clb-3.1.13}/tencentcloud_sdk_python_clb.egg-info/SOURCES.txt +0 -0
  16. {tencentcloud_sdk_python_clb-3.1.8 → tencentcloud_sdk_python_clb-3.1.13}/tencentcloud_sdk_python_clb.egg-info/dependency_links.txt +0 -0
  17. {tencentcloud_sdk_python_clb-3.1.8 → tencentcloud_sdk_python_clb-3.1.13}/tencentcloud_sdk_python_clb.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: tencentcloud-sdk-python-clb
3
- Version: 3.1.8
3
+ Version: 3.1.13
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
@@ -15,7 +15,7 @@ Classifier: Programming Language :: Python :: 2.7
15
15
  Classifier: Programming Language :: Python :: 3
16
16
  Classifier: Programming Language :: Python :: 3.6
17
17
  Classifier: Programming Language :: Python :: 3.7
18
- Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.8
18
+ Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.13
19
19
 
20
20
  ============================
21
21
  Tencent Cloud SDK for Python
@@ -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.1.8,<4.0.0"],
11
+ install_requires=["tencentcloud-sdk-python-common>=3.1.13,<4.0.0"],
12
12
 
13
13
  version=tencentcloud.__version__,
14
14
  description='Tencent Cloud Clb SDK for Python',
@@ -14,4 +14,4 @@
14
14
  # limitations under the License.
15
15
 
16
16
 
17
- __version__ = '3.1.8'
17
+ __version__ = '3.1.13'
@@ -1203,6 +1203,29 @@ class ClbClient(AbstractClient):
1203
1203
  raise TencentCloudSDKException(type(e).__name__, str(e))
1204
1204
 
1205
1205
 
1206
+ def DescribeTargetGroupInstanceStatus(self, request):
1207
+ r"""查询目标组后端服务状态。目前仅支持网关负载均衡类型的目标组支持查询后端服务状态。
1208
+
1209
+ :param request: Request instance for DescribeTargetGroupInstanceStatus.
1210
+ :type request: :class:`tencentcloud.clb.v20180317.models.DescribeTargetGroupInstanceStatusRequest`
1211
+ :rtype: :class:`tencentcloud.clb.v20180317.models.DescribeTargetGroupInstanceStatusResponse`
1212
+
1213
+ """
1214
+ try:
1215
+ params = request._serialize()
1216
+ headers = request.headers
1217
+ body = self.call("DescribeTargetGroupInstanceStatus", params, headers=headers)
1218
+ response = json.loads(body)
1219
+ model = models.DescribeTargetGroupInstanceStatusResponse()
1220
+ model._deserialize(response["Response"])
1221
+ return model
1222
+ except Exception as e:
1223
+ if isinstance(e, TencentCloudSDKException):
1224
+ raise
1225
+ else:
1226
+ raise TencentCloudSDKException(type(e).__name__, str(e))
1227
+
1228
+
1206
1229
  def DescribeTargetGroupInstances(self, request):
1207
1230
  r"""获取目标组绑定的服务器信息
1208
1231
 
@@ -957,6 +957,24 @@ class ClbClient(AbstractClient):
957
957
 
958
958
  return await self.call_and_deserialize(**kwargs)
959
959
 
960
+ async def DescribeTargetGroupInstanceStatus(
961
+ self,
962
+ request: models.DescribeTargetGroupInstanceStatusRequest,
963
+ opts: Dict = None,
964
+ ) -> models.DescribeTargetGroupInstanceStatusResponse:
965
+ """
966
+ 查询目标组后端服务状态。目前仅支持网关负载均衡类型的目标组支持查询后端服务状态。
967
+ """
968
+
969
+ kwargs = {}
970
+ kwargs["action"] = "DescribeTargetGroupInstanceStatus"
971
+ kwargs["params"] = request._serialize()
972
+ kwargs["resp_cls"] = models.DescribeTargetGroupInstanceStatusResponse
973
+ kwargs["headers"] = request.headers
974
+ kwargs["opts"] = opts or {}
975
+
976
+ return await self.call_and_deserialize(**kwargs)
977
+
960
978
  async def DescribeTargetGroupInstances(
961
979
  self,
962
980
  request: models.DescribeTargetGroupInstancesRequest,
@@ -10040,6 +10040,105 @@ class DescribeRewriteResponse(AbstractModel):
10040
10040
  self._RequestId = params.get("RequestId")
10041
10041
 
10042
10042
 
10043
+ class DescribeTargetGroupInstanceStatusRequest(AbstractModel):
10044
+ r"""DescribeTargetGroupInstanceStatus请求参数结构体
10045
+
10046
+ """
10047
+
10048
+ def __init__(self):
10049
+ r"""
10050
+ :param _TargetGroupId: 目标组唯一id
10051
+ :type TargetGroupId: str
10052
+ :param _TargetGroupInstanceIps: 目标组绑定的后端服务ip列表
10053
+ :type TargetGroupInstanceIps: list of str
10054
+ """
10055
+ self._TargetGroupId = None
10056
+ self._TargetGroupInstanceIps = None
10057
+
10058
+ @property
10059
+ def TargetGroupId(self):
10060
+ r"""目标组唯一id
10061
+ :rtype: str
10062
+ """
10063
+ return self._TargetGroupId
10064
+
10065
+ @TargetGroupId.setter
10066
+ def TargetGroupId(self, TargetGroupId):
10067
+ self._TargetGroupId = TargetGroupId
10068
+
10069
+ @property
10070
+ def TargetGroupInstanceIps(self):
10071
+ r"""目标组绑定的后端服务ip列表
10072
+ :rtype: list of str
10073
+ """
10074
+ return self._TargetGroupInstanceIps
10075
+
10076
+ @TargetGroupInstanceIps.setter
10077
+ def TargetGroupInstanceIps(self, TargetGroupInstanceIps):
10078
+ self._TargetGroupInstanceIps = TargetGroupInstanceIps
10079
+
10080
+
10081
+ def _deserialize(self, params):
10082
+ self._TargetGroupId = params.get("TargetGroupId")
10083
+ self._TargetGroupInstanceIps = params.get("TargetGroupInstanceIps")
10084
+ memeber_set = set(params.keys())
10085
+ for name, value in vars(self).items():
10086
+ property_name = name[1:]
10087
+ if property_name in memeber_set:
10088
+ memeber_set.remove(property_name)
10089
+ if len(memeber_set) > 0:
10090
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
10091
+
10092
+
10093
+
10094
+ class DescribeTargetGroupInstanceStatusResponse(AbstractModel):
10095
+ r"""DescribeTargetGroupInstanceStatus返回参数结构体
10096
+
10097
+ """
10098
+
10099
+ def __init__(self):
10100
+ r"""
10101
+ :param _TargetGroupInstanceSet: 健康检查后端rs状态列表
10102
+ :type TargetGroupInstanceSet: list of TargetGroupInstanceStatus
10103
+ :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
10104
+ :type RequestId: str
10105
+ """
10106
+ self._TargetGroupInstanceSet = None
10107
+ self._RequestId = None
10108
+
10109
+ @property
10110
+ def TargetGroupInstanceSet(self):
10111
+ r"""健康检查后端rs状态列表
10112
+ :rtype: list of TargetGroupInstanceStatus
10113
+ """
10114
+ return self._TargetGroupInstanceSet
10115
+
10116
+ @TargetGroupInstanceSet.setter
10117
+ def TargetGroupInstanceSet(self, TargetGroupInstanceSet):
10118
+ self._TargetGroupInstanceSet = TargetGroupInstanceSet
10119
+
10120
+ @property
10121
+ def RequestId(self):
10122
+ r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
10123
+ :rtype: str
10124
+ """
10125
+ return self._RequestId
10126
+
10127
+ @RequestId.setter
10128
+ def RequestId(self, RequestId):
10129
+ self._RequestId = RequestId
10130
+
10131
+
10132
+ def _deserialize(self, params):
10133
+ if params.get("TargetGroupInstanceSet") is not None:
10134
+ self._TargetGroupInstanceSet = []
10135
+ for item in params.get("TargetGroupInstanceSet"):
10136
+ obj = TargetGroupInstanceStatus()
10137
+ obj._deserialize(item)
10138
+ self._TargetGroupInstanceSet.append(obj)
10139
+ self._RequestId = params.get("RequestId")
10140
+
10141
+
10043
10142
  class DescribeTargetGroupInstancesRequest(AbstractModel):
10044
10143
  r"""DescribeTargetGroupInstances请求参数结构体
10045
10144
 
@@ -22485,6 +22584,112 @@ v2目标组需要配置权重,调用CreateTargetGroup接口创建目标组时
22485
22584
 
22486
22585
 
22487
22586
 
22587
+ class TargetGroupInstanceStatus(AbstractModel):
22588
+ r"""用于目标组后端rs健康检查状态。
22589
+
22590
+ """
22591
+
22592
+ def __init__(self):
22593
+ r"""
22594
+ :param _InstanceIp: 后端rs的IP
22595
+ :type InstanceIp: str
22596
+ :param _Status: 健康检查状态,参数值及含义如下:
22597
+ ● on:表示探测中。
22598
+ ● off:表示健康检查关闭。
22599
+ ● health:表示健康。
22600
+ ● unhealth:表示异常。
22601
+ :type Status: str
22602
+ :param _InstanceId: 实例ID
22603
+ :type InstanceId: str
22604
+ :param _Port: 端口
22605
+ :type Port: int
22606
+ :param _EniId: 网卡ID
22607
+ 注意:此字段可能返回 null,表示取不到有效值。
22608
+ :type EniId: str
22609
+ """
22610
+ self._InstanceIp = None
22611
+ self._Status = None
22612
+ self._InstanceId = None
22613
+ self._Port = None
22614
+ self._EniId = None
22615
+
22616
+ @property
22617
+ def InstanceIp(self):
22618
+ r"""后端rs的IP
22619
+ :rtype: str
22620
+ """
22621
+ return self._InstanceIp
22622
+
22623
+ @InstanceIp.setter
22624
+ def InstanceIp(self, InstanceIp):
22625
+ self._InstanceIp = InstanceIp
22626
+
22627
+ @property
22628
+ def Status(self):
22629
+ r"""健康检查状态,参数值及含义如下:
22630
+ ● on:表示探测中。
22631
+ ● off:表示健康检查关闭。
22632
+ ● health:表示健康。
22633
+ ● unhealth:表示异常。
22634
+ :rtype: str
22635
+ """
22636
+ return self._Status
22637
+
22638
+ @Status.setter
22639
+ def Status(self, Status):
22640
+ self._Status = Status
22641
+
22642
+ @property
22643
+ def InstanceId(self):
22644
+ r"""实例ID
22645
+ :rtype: str
22646
+ """
22647
+ return self._InstanceId
22648
+
22649
+ @InstanceId.setter
22650
+ def InstanceId(self, InstanceId):
22651
+ self._InstanceId = InstanceId
22652
+
22653
+ @property
22654
+ def Port(self):
22655
+ r"""端口
22656
+ :rtype: int
22657
+ """
22658
+ return self._Port
22659
+
22660
+ @Port.setter
22661
+ def Port(self, Port):
22662
+ self._Port = Port
22663
+
22664
+ @property
22665
+ def EniId(self):
22666
+ r"""网卡ID
22667
+ 注意:此字段可能返回 null,表示取不到有效值。
22668
+ :rtype: str
22669
+ """
22670
+ return self._EniId
22671
+
22672
+ @EniId.setter
22673
+ def EniId(self, EniId):
22674
+ self._EniId = EniId
22675
+
22676
+
22677
+ def _deserialize(self, params):
22678
+ self._InstanceIp = params.get("InstanceIp")
22679
+ self._Status = params.get("Status")
22680
+ self._InstanceId = params.get("InstanceId")
22681
+ self._Port = params.get("Port")
22682
+ self._EniId = params.get("EniId")
22683
+ memeber_set = set(params.keys())
22684
+ for name, value in vars(self).items():
22685
+ property_name = name[1:]
22686
+ if property_name in memeber_set:
22687
+ memeber_set.remove(property_name)
22688
+ if len(memeber_set) > 0:
22689
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
22690
+
22691
+
22692
+
22488
22693
  class TargetHealth(AbstractModel):
22489
22694
  r"""描述一个Target的健康信息
22490
22695
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: tencentcloud-sdk-python-clb
3
- Version: 3.1.8
3
+ Version: 3.1.13
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
@@ -15,7 +15,7 @@ Classifier: Programming Language :: Python :: 2.7
15
15
  Classifier: Programming Language :: Python :: 3
16
16
  Classifier: Programming Language :: Python :: 3.6
17
17
  Classifier: Programming Language :: Python :: 3.7
18
- Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.8
18
+ Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.13
19
19
 
20
20
  ============================
21
21
  Tencent Cloud SDK for Python
@@ -0,0 +1 @@
1
+ tencentcloud-sdk-python-common<4.0.0,>=3.1.13
@@ -1 +0,0 @@
1
- tencentcloud-sdk-python-common<4.0.0,>=3.1.8