tencentcloud-sdk-python 3.0.1249__py2.py3-none-any.whl → 3.0.1251__py2.py3-none-any.whl

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 (40) hide show
  1. tencentcloud/__init__.py +1 -1
  2. tencentcloud/batch/v20170312/models.py +8 -1
  3. tencentcloud/ccc/v20200210/models.py +117 -0
  4. tencentcloud/cls/v20201016/cls_client.py +92 -0
  5. tencentcloud/cls/v20201016/models.py +797 -28
  6. tencentcloud/cynosdb/v20190107/models.py +13 -0
  7. tencentcloud/dc/v20180410/dc_client.py +23 -0
  8. tencentcloud/dc/v20180410/models.py +426 -0
  9. tencentcloud/dlc/v20210125/dlc_client.py +23 -0
  10. tencentcloud/dlc/v20210125/models.py +388 -0
  11. tencentcloud/emr/v20190103/errorcodes.py +1 -1
  12. tencentcloud/emr/v20190103/models.py +2 -94
  13. tencentcloud/ess/v20201111/ess_client.py +35 -6
  14. tencentcloud/ess/v20201111/models.py +32 -10
  15. tencentcloud/essbasic/v20210526/models.py +2 -3
  16. tencentcloud/faceid/v20180301/models.py +28 -1
  17. tencentcloud/gwlb/__init__.py +0 -0
  18. tencentcloud/gwlb/v20240906/__init__.py +0 -0
  19. tencentcloud/gwlb/v20240906/errorcodes.py +48 -0
  20. tencentcloud/gwlb/v20240906/gwlb_client.py +448 -0
  21. tencentcloud/gwlb/v20240906/models.py +2834 -0
  22. tencentcloud/privatedns/v20201028/errorcodes.py +18 -0
  23. tencentcloud/privatedns/v20201028/models.py +142 -0
  24. tencentcloud/privatedns/v20201028/privatedns_client.py +23 -0
  25. tencentcloud/sms/v20190711/errorcodes.py +3 -0
  26. tencentcloud/sms/v20210111/errorcodes.py +3 -0
  27. tencentcloud/teo/v20220901/models.py +8 -5
  28. tencentcloud/tke/v20180525/models.py +2 -108
  29. tencentcloud/tke/v20180525/tke_client.py +0 -25
  30. tencentcloud/vclm/v20240523/models.py +12 -0
  31. tencentcloud/vod/v20180717/vod_client.py +1 -0
  32. tencentcloud/vpc/v20170312/errorcodes.py +6 -0
  33. tencentcloud/vpc/v20170312/models.py +16 -4
  34. tencentcloud/vpc/v20170312/vpc_client.py +1 -1
  35. tencentcloud/vtc/v20240223/models.py +12 -0
  36. {tencentcloud_sdk_python-3.0.1249.dist-info → tencentcloud_sdk_python-3.0.1251.dist-info}/METADATA +1 -1
  37. {tencentcloud_sdk_python-3.0.1249.dist-info → tencentcloud_sdk_python-3.0.1251.dist-info}/RECORD +40 -35
  38. {tencentcloud_sdk_python-3.0.1249.dist-info → tencentcloud_sdk_python-3.0.1251.dist-info}/LICENSE +0 -0
  39. {tencentcloud_sdk_python-3.0.1249.dist-info → tencentcloud_sdk_python-3.0.1251.dist-info}/WHEEL +0 -0
  40. {tencentcloud_sdk_python-3.0.1249.dist-info → tencentcloud_sdk_python-3.0.1251.dist-info}/top_level.txt +0 -0
@@ -845,10 +845,15 @@ class ArchiveDynamicApproverData(AbstractModel):
845
845
 
846
846
  def __init__(self):
847
847
  r"""
848
- :param _SignId: 签署参与人在本流程中的编号ID(每个流程不同),可用此ID来定位签署参与人在本流程的签署节点,也可用于后续创建签署链接等操作。 注意:不指定该字段时默认为发起方
848
+ :param _SignId: 签署方唯一编号,一个全局唯一的标识符,不同的流程不会出现冲突。
849
+
850
+ 可以使用签署方的唯一编号来生成签署链接(也可以通过RecipientId来生成签署链接)。
849
851
  注意:此字段可能返回 null,表示取不到有效值。
850
852
  :type SignId: str
851
- :param _RecipientId: 签署方经办人在模板中配置的参与方ID,与控件绑定,是控件的归属方,ID为32位字符串。 模板发起合同时,该参数为必填项。 文件发起合同是,该参数无需传值。 如果开发者后序用合同模板发起合同,建议保存此值,在用合同模板发起合同中需此值绑定对应的签署经办人 。
853
+ :param _RecipientId: 签署方角色编号,签署方角色编号是用于区分同一个流程中不同签署方的唯一标识。不同的流程会出现同样的签署方角色编号。
854
+
855
+ 填写控件和签署控件都与特定的角色编号关联。
856
+
852
857
  注意:此字段可能返回 null,表示取不到有效值。
853
858
  :type RecipientId: str
854
859
  """
@@ -1258,10 +1263,9 @@ class AutoSignConfig(AbstractModel):
1258
1263
  <ul><li>如果是小程序开通链接,支持传 WEIXINAPP / TELECOM。为空默认 WEIXINAPP</li>
1259
1264
  <li>如果是 H5 开通链接,支持传 INSIGHT / TELECOM。为空默认 INSIGHT </li></ul>
1260
1265
  :type VerifyChannels: list of str
1261
- :param _LicenseType: 设置用户开通自动签时是否绑定个人自动签账号许可。
1266
+ :param _LicenseType: 设置用户自动签合同的扣费方式。
1262
1267
 
1263
- <ul><li>**0**: (默认) 使用个人自动签账号许可进行开通,个人自动签账号许可有效期1年,注: `不可解绑释放更换他人`</li>
1264
- <li>**1**: 不绑定自动签账号许可开通,后续使用合同份额进行合同发起</li></ul>
1268
+ <ul><li><b>1</b>: (默认)使用合同份额进行扣减</li></ul>
1265
1269
  :type LicenseType: int
1266
1270
  :param _JumpUrl: 开通成功后前端页面跳转的url,此字段的用法场景请联系客户经理确认。
1267
1271
 
@@ -16391,13 +16395,31 @@ class DynamicFlowApproverResult(AbstractModel):
16391
16395
 
16392
16396
  def __init__(self):
16393
16397
  r"""
16394
- :param _RecipientId: 签署方角色编号
16398
+ :param _RecipientId: 签署方角色编号,签署方角色编号是用于区分同一个流程中不同签署方的唯一标识。不同的流程会出现同样的签署方角色编号。
16399
+
16400
+ 填写控件和签署控件都与特定的角色编号关联。
16401
+
16402
+ 在进行新增签署方操作时,建议记录下该签署方的角色编号。后续可以拉取流程信息,用来判断该签署方的当前状态。
16403
+
16395
16404
  注意:此字段可能返回 null,表示取不到有效值。
16396
16405
  :type RecipientId: str
16397
- :param _SignId: 签署方唯一编号
16406
+ :param _SignId: 签署方唯一编号,一个全局唯一的标识符,不同的流程不会出现冲突。
16407
+
16408
+ 可以使用签署方的唯一编号来生成签署链接(也可以通过RecipientId来生成签署链接)。
16398
16409
  注意:此字段可能返回 null,表示取不到有效值。
16399
16410
  :type SignId: str
16400
- :param _ApproverStatus: 签署方当前状态
16411
+ :param _ApproverStatus: 签署方当前状态,会出现下面的状态
16412
+
16413
+ 2:待签署
16414
+ 3:已签署
16415
+ 4:已拒绝
16416
+ 5:已过期
16417
+ 6:已撤销
16418
+ 8:待填写
16419
+ 9:因为各种原因(签署人改名等)而终止
16420
+ 10:填写完成
16421
+ 15:已解除
16422
+ 19:转他人处理
16401
16423
  注意:此字段可能返回 null,表示取不到有效值。
16402
16424
  :type ApproverStatus: int
16403
16425
  """
@@ -20575,8 +20597,8 @@ class ModifyExtendedServiceResponse(AbstractModel):
20575
20597
  <li><strong>有跳转链接返回的情况:</strong> 当操作类型为“OPEN”(开通服务),并且扩展服务类型为以下之一时, 系统将返回一个操作链接。当前操作人(超级管理员或法人)需要点击此链接,以完成服务的开通操作。
20576
20598
 
20577
20599
  <ul>
20578
- <li><strong>OPEN_SERVER_SIGN</strong>(开放服务器签名)</li>
20579
- <li><strong>OVERSEA_SIGN</strong>(海外签名)</li>
20600
+ <li><strong>OPEN_SERVER_SIGN</strong>(企业自动签署)</li>
20601
+ <li><strong>OVERSEA_SIGN</strong>(企业与港澳台居民签署合同)</li>
20580
20602
  </ul></li></li>
20581
20603
  </ul>
20582
20604
  :type OperateUrl: str
@@ -611,8 +611,7 @@ class AutoSignConfig(AbstractModel):
611
611
  :type VerifyChannels: list of str
612
612
  :param _LicenseType: 设置用户开通自动签时是否绑定个人自动签账号许可。
613
613
 
614
- <ul><li>**0**: (默认) 使用个人自动签账号许可进行开通,个人自动签账号许可有效期1年,注: `不可解绑释放更换他人`</li>
615
- <li>**1**: 不绑定自动签账号许可开通,后续使用合同份额进行合同发起</li></ul>
614
+ <ul><li><b>1</b>: (默认)不绑定自动签账号许可开通,开通后一直有效, 后续使用合同份额进行合同发起</li></ul>
616
615
  :type LicenseType: int
617
616
  :param _JumpUrl: 开通成功后前端页面跳转的url,此字段的用法场景请联系客户经理确认。
618
617
 
@@ -17624,7 +17623,7 @@ class ModifyExtendedServiceResponse(AbstractModel):
17624
17623
  :param _OperateUrl: 操作跳转链接
17625
17624
  <ul><li><strong>链接有效期:</strong> 跳转链接的有效期为24小时。</li>
17626
17625
  <li><strong>没有返回链接的情形:</strong> 如果在操作时没有返回跳转链接,说明此次操作无需进行跳转,服务将会直接被开通或关闭。</li>
17627
- <li><strong>返回链接的情形:</strong> 当操作类型为“OPEN”(开通服务),并且扩展服务类型为“AUTO_SIGN”(自动签名)、“DOWNLOAD_FLOW”(下载流程)或“OVERSEA_SIGN”(海外签名)时,系统将返回一个操作链接。收到操作链接后,贵方需主动联系超级管理员(超管)或法人。由超管或法人点击链接,以完成服务的开通操作。</li>
17626
+ <li><strong>返回链接的情形:</strong> 当操作类型为<b>OPEN(开通服务)</b>,并且扩展服务类型为<b>AUTO_SIGN( 企业自动签署)</b>、<b>DOWNLOAD_FLOW(授权渠道下载合同)</b>或<b>OVERSEA_SIGN(企业与港澳台居民签署合同)</b>时,系统将返回一个操作链接。收到操作链接后,贵方需主动联系超级管理员(超管)或法人。<font color="red"><b>由超管或法人点击链接</b></font>,以完成服务的开通操作。</li>
17628
17627
  </ul>
17629
17628
 
17630
17629
 
@@ -31,7 +31,7 @@ SuspectedSynthesisImage:疑似合成图片
31
31
  SuspectedSynthesisVideo:疑似合成视频
32
32
  SuspectedeAnomalyAttack:人脸特征疑似非真人
33
33
  SuspectedAdversarialAttack:疑似对抗样本攻击
34
- SuspectedBlackIndustry:疑似黑产攻击
34
+ SuspectedBlackIndustry:疑似黑产批量模版攻击
35
35
  SuspectedWatermark:疑似存在水印
36
36
  注意:此字段可能返回 null,表示取不到有效值。
37
37
  :type Type: str
@@ -2290,6 +2290,23 @@ class DetectInfoText(AbstractModel):
2290
2290
  :param _LivenessDetail: 本次流程进行的活体一比一流水。
2291
2291
  注意:此字段可能返回 null,表示取不到有效值。
2292
2292
  :type LivenessDetail: list of DetectDetail
2293
+ :param _LivenessInfoTag: 描述当前请求活体阶段被拒绝的详细原因,详情如下:
2294
+ 01-用户全程闭眼
2295
+ 02-用户未完成指定动作
2296
+ 03-疑似翻拍攻击
2297
+ 04-疑似合成攻击
2298
+ 05-疑似黑产模版
2299
+ 06-疑似存在水印
2300
+ 07-反光校验未通过
2301
+ 08-疑似中途换人
2302
+ 09-人脸质量过差
2303
+ 10-距离校验不通过
2304
+ 11-疑似对抗样本攻击
2305
+ 12-嘴巴区域疑似存在攻击痕迹
2306
+ 13-眼睛区域疑似存在攻击痕迹
2307
+ 14-眼睛或嘴巴被遮挡
2308
+ 注意:此字段可能返回 null,表示取不到有效值。
2309
+ :type LivenessInfoTag: list of str
2293
2310
  :param _Mobile: 手机号码。
2294
2311
  注意:此字段可能返回 null,表示取不到有效值。
2295
2312
  :type Mobile: str
@@ -2343,6 +2360,7 @@ class DetectInfoText(AbstractModel):
2343
2360
  self._Location = None
2344
2361
  self._Extra = None
2345
2362
  self._LivenessDetail = None
2363
+ self._LivenessInfoTag = None
2346
2364
  self._Mobile = None
2347
2365
  self._CompareLibType = None
2348
2366
  self._LivenessMode = None
@@ -2527,6 +2545,14 @@ class DetectInfoText(AbstractModel):
2527
2545
  def LivenessDetail(self, LivenessDetail):
2528
2546
  self._LivenessDetail = LivenessDetail
2529
2547
 
2548
+ @property
2549
+ def LivenessInfoTag(self):
2550
+ return self._LivenessInfoTag
2551
+
2552
+ @LivenessInfoTag.setter
2553
+ def LivenessInfoTag(self, LivenessInfoTag):
2554
+ self._LivenessInfoTag = LivenessInfoTag
2555
+
2530
2556
  @property
2531
2557
  def Mobile(self):
2532
2558
  return self._Mobile
@@ -2612,6 +2638,7 @@ class DetectInfoText(AbstractModel):
2612
2638
  obj = DetectDetail()
2613
2639
  obj._deserialize(item)
2614
2640
  self._LivenessDetail.append(obj)
2641
+ self._LivenessInfoTag = params.get("LivenessInfoTag")
2615
2642
  self._Mobile = params.get("Mobile")
2616
2643
  self._CompareLibType = params.get("CompareLibType")
2617
2644
  self._LivenessMode = params.get("LivenessMode")
File without changes
File without changes
@@ -0,0 +1,48 @@
1
+ # -*- coding: utf8 -*-
2
+ # Copyright (c) 2017-2021 THL A29 Limited, a Tencent company. All Rights Reserved.
3
+ #
4
+ # Licensed under the Apache License, Version 2.0 (the "License");
5
+ # you may not use this file except in compliance with the License.
6
+ # You may obtain a copy of the License at
7
+ #
8
+ # http://www.apache.org/licenses/LICENSE-2.0
9
+ #
10
+ # Unless required by applicable law or agreed to in writing, software
11
+ # distributed under the License is distributed on an "AS IS" BASIS,
12
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ # See the License for the specific language governing permissions and
14
+ # limitations under the License.
15
+
16
+
17
+ # 操作失败。
18
+ FAILEDOPERATION = 'FailedOperation'
19
+
20
+ # FailedOperation.ResourceInOperating
21
+ FAILEDOPERATION_RESOURCEINOPERATING = 'FailedOperation.ResourceInOperating'
22
+
23
+ # 内部错误。
24
+ INTERNALERROR = 'InternalError'
25
+
26
+ # 参数错误。
27
+ INVALIDPARAMETER = 'InvalidParameter'
28
+
29
+ # InvalidParameter.FormatError
30
+ INVALIDPARAMETER_FORMATERROR = 'InvalidParameter.FormatError'
31
+
32
+ # InvalidParameter.RegionNotFound
33
+ INVALIDPARAMETER_REGIONNOTFOUND = 'InvalidParameter.RegionNotFound'
34
+
35
+ # 参数取值错误。
36
+ INVALIDPARAMETERVALUE = 'InvalidParameterValue'
37
+
38
+ # 存在相同的值。
39
+ INVALIDPARAMETERVALUE_DUPLICATE = 'InvalidParameterValue.Duplicate'
40
+
41
+ # InvalidParameterValue.Length
42
+ INVALIDPARAMETERVALUE_LENGTH = 'InvalidParameterValue.Length'
43
+
44
+ # 超过配额限制。
45
+ LIMITEXCEEDED = 'LimitExceeded'
46
+
47
+ # 未授权操作。
48
+ UNAUTHORIZEDOPERATION = 'UnauthorizedOperation'
@@ -0,0 +1,448 @@
1
+ # -*- coding: utf8 -*-
2
+ # Copyright (c) 2017-2021 THL A29 Limited, a Tencent company. All Rights Reserved.
3
+ #
4
+ # Licensed under the Apache License, Version 2.0 (the "License");
5
+ # you may not use this file except in compliance with the License.
6
+ # You may obtain a copy of the License at
7
+ #
8
+ # http://www.apache.org/licenses/LICENSE-2.0
9
+ #
10
+ # Unless required by applicable law or agreed to in writing, software
11
+ # distributed under the License is distributed on an "AS IS" BASIS,
12
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ # See the License for the specific language governing permissions and
14
+ # limitations under the License.
15
+
16
+ import json
17
+
18
+ from tencentcloud.common.exception.tencent_cloud_sdk_exception import TencentCloudSDKException
19
+ from tencentcloud.common.abstract_client import AbstractClient
20
+ from tencentcloud.gwlb.v20240906 import models
21
+
22
+
23
+ class GwlbClient(AbstractClient):
24
+ _apiVersion = '2024-09-06'
25
+ _endpoint = 'gwlb.tencentcloudapi.com'
26
+ _service = 'gwlb'
27
+
28
+
29
+ def AssociateTargetGroups(self, request):
30
+ """本接口(AssociateTargetGroups)用来将目标组绑定到负载均衡。
31
+ 本接口为异步接口,本接口返回成功后需以返回的 RequestID 为入参,调用 DescribeTaskStatus 接口查询本次任务是否成功。
32
+
33
+ :param request: Request instance for AssociateTargetGroups.
34
+ :type request: :class:`tencentcloud.gwlb.v20240906.models.AssociateTargetGroupsRequest`
35
+ :rtype: :class:`tencentcloud.gwlb.v20240906.models.AssociateTargetGroupsResponse`
36
+
37
+ """
38
+ try:
39
+ params = request._serialize()
40
+ headers = request.headers
41
+ body = self.call("AssociateTargetGroups", params, headers=headers)
42
+ response = json.loads(body)
43
+ model = models.AssociateTargetGroupsResponse()
44
+ model._deserialize(response["Response"])
45
+ return model
46
+ except Exception as e:
47
+ if isinstance(e, TencentCloudSDKException):
48
+ raise
49
+ else:
50
+ raise TencentCloudSDKException(type(e).__name__, str(e))
51
+
52
+
53
+ def CreateGatewayLoadBalancer(self, request):
54
+ """本接口(CreateGatewayLoadBalancer)用来创建网关负载均衡实例。为了使用网关负载均衡服务,您必须购买一个或多个网关负载均衡实例。成功调用该接口后,会返回网关负载均衡实例的唯一 ID。
55
+ 注意:单个账号在每个地域的默认购买配额为:10个。
56
+ 本接口为异步接口,接口成功返回后,可使用 DescribeGatewayLoadBalancers 接口查询负载均衡实例的状态(如创建中、正常),以确定是否创建成功。
57
+
58
+ :param request: Request instance for CreateGatewayLoadBalancer.
59
+ :type request: :class:`tencentcloud.gwlb.v20240906.models.CreateGatewayLoadBalancerRequest`
60
+ :rtype: :class:`tencentcloud.gwlb.v20240906.models.CreateGatewayLoadBalancerResponse`
61
+
62
+ """
63
+ try:
64
+ params = request._serialize()
65
+ headers = request.headers
66
+ body = self.call("CreateGatewayLoadBalancer", params, headers=headers)
67
+ response = json.loads(body)
68
+ model = models.CreateGatewayLoadBalancerResponse()
69
+ model._deserialize(response["Response"])
70
+ return model
71
+ except Exception as e:
72
+ if isinstance(e, TencentCloudSDKException):
73
+ raise
74
+ else:
75
+ raise TencentCloudSDKException(type(e).__name__, str(e))
76
+
77
+
78
+ def CreateTargetGroup(self, request):
79
+ """创建目标组。该功能正在内测中,如需使用,请通过[工单申请](https://console.cloud.tencent.com/workorder/category?level1_id=6&level2_id=163&source=0&data_title=%E8%B4%9F%E8%BD%BD%E5%9D%87%E8%A1%A1%20LB&step=1)。
80
+
81
+ :param request: Request instance for CreateTargetGroup.
82
+ :type request: :class:`tencentcloud.gwlb.v20240906.models.CreateTargetGroupRequest`
83
+ :rtype: :class:`tencentcloud.gwlb.v20240906.models.CreateTargetGroupResponse`
84
+
85
+ """
86
+ try:
87
+ params = request._serialize()
88
+ headers = request.headers
89
+ body = self.call("CreateTargetGroup", params, headers=headers)
90
+ response = json.loads(body)
91
+ model = models.CreateTargetGroupResponse()
92
+ model._deserialize(response["Response"])
93
+ return model
94
+ except Exception as e:
95
+ if isinstance(e, TencentCloudSDKException):
96
+ raise
97
+ else:
98
+ raise TencentCloudSDKException(type(e).__name__, str(e))
99
+
100
+
101
+ def DeleteGatewayLoadBalancer(self, request):
102
+ """DeleteGatewayLoadBalancer 接口用以删除指定的一个或多个网关负载均衡实例。成功删除后,会把网关负载均衡实例与后端服务解绑。
103
+ 本接口为异步接口,接口返回成功后,需以返回的 RequestId 为入参,调用 DescribeTaskStatus 接口查询本次任务是否成功。
104
+
105
+ :param request: Request instance for DeleteGatewayLoadBalancer.
106
+ :type request: :class:`tencentcloud.gwlb.v20240906.models.DeleteGatewayLoadBalancerRequest`
107
+ :rtype: :class:`tencentcloud.gwlb.v20240906.models.DeleteGatewayLoadBalancerResponse`
108
+
109
+ """
110
+ try:
111
+ params = request._serialize()
112
+ headers = request.headers
113
+ body = self.call("DeleteGatewayLoadBalancer", params, headers=headers)
114
+ response = json.loads(body)
115
+ model = models.DeleteGatewayLoadBalancerResponse()
116
+ model._deserialize(response["Response"])
117
+ return model
118
+ except Exception as e:
119
+ if isinstance(e, TencentCloudSDKException):
120
+ raise
121
+ else:
122
+ raise TencentCloudSDKException(type(e).__name__, str(e))
123
+
124
+
125
+ def DeleteTargetGroups(self, request):
126
+ """删除目标组
127
+
128
+ :param request: Request instance for DeleteTargetGroups.
129
+ :type request: :class:`tencentcloud.gwlb.v20240906.models.DeleteTargetGroupsRequest`
130
+ :rtype: :class:`tencentcloud.gwlb.v20240906.models.DeleteTargetGroupsResponse`
131
+
132
+ """
133
+ try:
134
+ params = request._serialize()
135
+ headers = request.headers
136
+ body = self.call("DeleteTargetGroups", params, headers=headers)
137
+ response = json.loads(body)
138
+ model = models.DeleteTargetGroupsResponse()
139
+ model._deserialize(response["Response"])
140
+ return model
141
+ except Exception as e:
142
+ if isinstance(e, TencentCloudSDKException):
143
+ raise
144
+ else:
145
+ raise TencentCloudSDKException(type(e).__name__, str(e))
146
+
147
+
148
+ def DeregisterTargetGroupInstances(self, request):
149
+ """从目标组中解绑服务器。
150
+ 本接口为异步接口,本接口返回成功后需以返回的 RequestID 为入参,调用 DescribeTaskStatus 接口查询本次任务是否成功。
151
+
152
+ :param request: Request instance for DeregisterTargetGroupInstances.
153
+ :type request: :class:`tencentcloud.gwlb.v20240906.models.DeregisterTargetGroupInstancesRequest`
154
+ :rtype: :class:`tencentcloud.gwlb.v20240906.models.DeregisterTargetGroupInstancesResponse`
155
+
156
+ """
157
+ try:
158
+ params = request._serialize()
159
+ headers = request.headers
160
+ body = self.call("DeregisterTargetGroupInstances", params, headers=headers)
161
+ response = json.loads(body)
162
+ model = models.DeregisterTargetGroupInstancesResponse()
163
+ model._deserialize(response["Response"])
164
+ return model
165
+ except Exception as e:
166
+ if isinstance(e, TencentCloudSDKException):
167
+ raise
168
+ else:
169
+ raise TencentCloudSDKException(type(e).__name__, str(e))
170
+
171
+
172
+ def DescribeGatewayLoadBalancers(self, request):
173
+ """查询一个地域的网关负载均衡实例列表。
174
+
175
+ :param request: Request instance for DescribeGatewayLoadBalancers.
176
+ :type request: :class:`tencentcloud.gwlb.v20240906.models.DescribeGatewayLoadBalancersRequest`
177
+ :rtype: :class:`tencentcloud.gwlb.v20240906.models.DescribeGatewayLoadBalancersResponse`
178
+
179
+ """
180
+ try:
181
+ params = request._serialize()
182
+ headers = request.headers
183
+ body = self.call("DescribeGatewayLoadBalancers", params, headers=headers)
184
+ response = json.loads(body)
185
+ model = models.DescribeGatewayLoadBalancersResponse()
186
+ model._deserialize(response["Response"])
187
+ return model
188
+ except Exception as e:
189
+ if isinstance(e, TencentCloudSDKException):
190
+ raise
191
+ else:
192
+ raise TencentCloudSDKException(type(e).__name__, str(e))
193
+
194
+
195
+ def DescribeTargetGroupInstanceStatus(self, request):
196
+ """查询目标组后端服务状态。目前仅支持网关负载均衡类型的目标组支持查询后端服务状态。
197
+
198
+ :param request: Request instance for DescribeTargetGroupInstanceStatus.
199
+ :type request: :class:`tencentcloud.gwlb.v20240906.models.DescribeTargetGroupInstanceStatusRequest`
200
+ :rtype: :class:`tencentcloud.gwlb.v20240906.models.DescribeTargetGroupInstanceStatusResponse`
201
+
202
+ """
203
+ try:
204
+ params = request._serialize()
205
+ headers = request.headers
206
+ body = self.call("DescribeTargetGroupInstanceStatus", params, headers=headers)
207
+ response = json.loads(body)
208
+ model = models.DescribeTargetGroupInstanceStatusResponse()
209
+ model._deserialize(response["Response"])
210
+ return model
211
+ except Exception as e:
212
+ if isinstance(e, TencentCloudSDKException):
213
+ raise
214
+ else:
215
+ raise TencentCloudSDKException(type(e).__name__, str(e))
216
+
217
+
218
+ def DescribeTargetGroupInstances(self, request):
219
+ """获取目标组绑定的服务器信息。
220
+
221
+ :param request: Request instance for DescribeTargetGroupInstances.
222
+ :type request: :class:`tencentcloud.gwlb.v20240906.models.DescribeTargetGroupInstancesRequest`
223
+ :rtype: :class:`tencentcloud.gwlb.v20240906.models.DescribeTargetGroupInstancesResponse`
224
+
225
+ """
226
+ try:
227
+ params = request._serialize()
228
+ headers = request.headers
229
+ body = self.call("DescribeTargetGroupInstances", params, headers=headers)
230
+ response = json.loads(body)
231
+ model = models.DescribeTargetGroupInstancesResponse()
232
+ model._deserialize(response["Response"])
233
+ return model
234
+ except Exception as e:
235
+ if isinstance(e, TencentCloudSDKException):
236
+ raise
237
+ else:
238
+ raise TencentCloudSDKException(type(e).__name__, str(e))
239
+
240
+
241
+ def DescribeTargetGroupList(self, request):
242
+ """获取目标组列表
243
+
244
+ :param request: Request instance for DescribeTargetGroupList.
245
+ :type request: :class:`tencentcloud.gwlb.v20240906.models.DescribeTargetGroupListRequest`
246
+ :rtype: :class:`tencentcloud.gwlb.v20240906.models.DescribeTargetGroupListResponse`
247
+
248
+ """
249
+ try:
250
+ params = request._serialize()
251
+ headers = request.headers
252
+ body = self.call("DescribeTargetGroupList", params, headers=headers)
253
+ response = json.loads(body)
254
+ model = models.DescribeTargetGroupListResponse()
255
+ model._deserialize(response["Response"])
256
+ return model
257
+ except Exception as e:
258
+ if isinstance(e, TencentCloudSDKException):
259
+ raise
260
+ else:
261
+ raise TencentCloudSDKException(type(e).__name__, str(e))
262
+
263
+
264
+ def DescribeTargetGroups(self, request):
265
+ """查询目标组信息
266
+
267
+ :param request: Request instance for DescribeTargetGroups.
268
+ :type request: :class:`tencentcloud.gwlb.v20240906.models.DescribeTargetGroupsRequest`
269
+ :rtype: :class:`tencentcloud.gwlb.v20240906.models.DescribeTargetGroupsResponse`
270
+
271
+ """
272
+ try:
273
+ params = request._serialize()
274
+ headers = request.headers
275
+ body = self.call("DescribeTargetGroups", params, headers=headers)
276
+ response = json.loads(body)
277
+ model = models.DescribeTargetGroupsResponse()
278
+ model._deserialize(response["Response"])
279
+ return model
280
+ except Exception as e:
281
+ if isinstance(e, TencentCloudSDKException):
282
+ raise
283
+ else:
284
+ raise TencentCloudSDKException(type(e).__name__, str(e))
285
+
286
+
287
+ def DescribeTaskStatus(self, request):
288
+ """本接口用于查询异步任务的执行状态,对于非查询类的接口(创建/删除负载均衡实例等),在接口调用成功后,都需要使用本接口查询任务最终是否执行成功。
289
+
290
+ :param request: Request instance for DescribeTaskStatus.
291
+ :type request: :class:`tencentcloud.gwlb.v20240906.models.DescribeTaskStatusRequest`
292
+ :rtype: :class:`tencentcloud.gwlb.v20240906.models.DescribeTaskStatusResponse`
293
+
294
+ """
295
+ try:
296
+ params = request._serialize()
297
+ headers = request.headers
298
+ body = self.call("DescribeTaskStatus", params, headers=headers)
299
+ response = json.loads(body)
300
+ model = models.DescribeTaskStatusResponse()
301
+ model._deserialize(response["Response"])
302
+ return model
303
+ except Exception as e:
304
+ if isinstance(e, TencentCloudSDKException):
305
+ raise
306
+ else:
307
+ raise TencentCloudSDKException(type(e).__name__, str(e))
308
+
309
+
310
+ def DisassociateTargetGroups(self, request):
311
+ """解除负载均衡和目标组的关联关系。
312
+ 本接口为异步接口,本接口返回成功后需以返回的 RequestID 为入参,调用 DescribeTaskStatus 接口查询本次任务是否成功。
313
+
314
+ :param request: Request instance for DisassociateTargetGroups.
315
+ :type request: :class:`tencentcloud.gwlb.v20240906.models.DisassociateTargetGroupsRequest`
316
+ :rtype: :class:`tencentcloud.gwlb.v20240906.models.DisassociateTargetGroupsResponse`
317
+
318
+ """
319
+ try:
320
+ params = request._serialize()
321
+ headers = request.headers
322
+ body = self.call("DisassociateTargetGroups", params, headers=headers)
323
+ response = json.loads(body)
324
+ model = models.DisassociateTargetGroupsResponse()
325
+ model._deserialize(response["Response"])
326
+ return model
327
+ except Exception as e:
328
+ if isinstance(e, TencentCloudSDKException):
329
+ raise
330
+ else:
331
+ raise TencentCloudSDKException(type(e).__name__, str(e))
332
+
333
+
334
+ def InquirePriceCreateGatewayLoadBalancer(self, request):
335
+ """InquirePriceCreateGatewayLoadBalancer接口查询创建网关负载均衡的价格。
336
+
337
+ :param request: Request instance for InquirePriceCreateGatewayLoadBalancer.
338
+ :type request: :class:`tencentcloud.gwlb.v20240906.models.InquirePriceCreateGatewayLoadBalancerRequest`
339
+ :rtype: :class:`tencentcloud.gwlb.v20240906.models.InquirePriceCreateGatewayLoadBalancerResponse`
340
+
341
+ """
342
+ try:
343
+ params = request._serialize()
344
+ headers = request.headers
345
+ body = self.call("InquirePriceCreateGatewayLoadBalancer", params, headers=headers)
346
+ response = json.loads(body)
347
+ model = models.InquirePriceCreateGatewayLoadBalancerResponse()
348
+ model._deserialize(response["Response"])
349
+ return model
350
+ except Exception as e:
351
+ if isinstance(e, TencentCloudSDKException):
352
+ raise
353
+ else:
354
+ raise TencentCloudSDKException(type(e).__name__, str(e))
355
+
356
+
357
+ def ModifyGatewayLoadBalancerAttribute(self, request):
358
+ """ModifyGatewayLoadBalancerAttribute 接口用于修改负载均衡实例的属性。支持修改负载均衡实例的名称、带宽上限。
359
+
360
+ :param request: Request instance for ModifyGatewayLoadBalancerAttribute.
361
+ :type request: :class:`tencentcloud.gwlb.v20240906.models.ModifyGatewayLoadBalancerAttributeRequest`
362
+ :rtype: :class:`tencentcloud.gwlb.v20240906.models.ModifyGatewayLoadBalancerAttributeResponse`
363
+
364
+ """
365
+ try:
366
+ params = request._serialize()
367
+ headers = request.headers
368
+ body = self.call("ModifyGatewayLoadBalancerAttribute", params, headers=headers)
369
+ response = json.loads(body)
370
+ model = models.ModifyGatewayLoadBalancerAttributeResponse()
371
+ model._deserialize(response["Response"])
372
+ return model
373
+ except Exception as e:
374
+ if isinstance(e, TencentCloudSDKException):
375
+ raise
376
+ else:
377
+ raise TencentCloudSDKException(type(e).__name__, str(e))
378
+
379
+
380
+ def ModifyTargetGroupAttribute(self, request):
381
+ """修改目标组的名称、健康探测等属性。
382
+
383
+ :param request: Request instance for ModifyTargetGroupAttribute.
384
+ :type request: :class:`tencentcloud.gwlb.v20240906.models.ModifyTargetGroupAttributeRequest`
385
+ :rtype: :class:`tencentcloud.gwlb.v20240906.models.ModifyTargetGroupAttributeResponse`
386
+
387
+ """
388
+ try:
389
+ params = request._serialize()
390
+ headers = request.headers
391
+ body = self.call("ModifyTargetGroupAttribute", params, headers=headers)
392
+ response = json.loads(body)
393
+ model = models.ModifyTargetGroupAttributeResponse()
394
+ model._deserialize(response["Response"])
395
+ return model
396
+ except Exception as e:
397
+ if isinstance(e, TencentCloudSDKException):
398
+ raise
399
+ else:
400
+ raise TencentCloudSDKException(type(e).__name__, str(e))
401
+
402
+
403
+ def ModifyTargetGroupInstancesWeight(self, request):
404
+ """修改目标组的服务器权重。
405
+ 本接口为异步接口,本接口返回成功后需以返回的 RequestID 为入参,调用 DescribeTaskStatus 接口查询本次任务是否成功。
406
+
407
+ :param request: Request instance for ModifyTargetGroupInstancesWeight.
408
+ :type request: :class:`tencentcloud.gwlb.v20240906.models.ModifyTargetGroupInstancesWeightRequest`
409
+ :rtype: :class:`tencentcloud.gwlb.v20240906.models.ModifyTargetGroupInstancesWeightResponse`
410
+
411
+ """
412
+ try:
413
+ params = request._serialize()
414
+ headers = request.headers
415
+ body = self.call("ModifyTargetGroupInstancesWeight", params, headers=headers)
416
+ response = json.loads(body)
417
+ model = models.ModifyTargetGroupInstancesWeightResponse()
418
+ model._deserialize(response["Response"])
419
+ return model
420
+ except Exception as e:
421
+ if isinstance(e, TencentCloudSDKException):
422
+ raise
423
+ else:
424
+ raise TencentCloudSDKException(type(e).__name__, str(e))
425
+
426
+
427
+ def RegisterTargetGroupInstances(self, request):
428
+ """注册服务器到目标组。
429
+ 本接口为异步接口,本接口返回成功后需以返回的 RequestID 为入参,调用 DescribeTaskStatus 接口查询本次任务是否成功。
430
+
431
+ :param request: Request instance for RegisterTargetGroupInstances.
432
+ :type request: :class:`tencentcloud.gwlb.v20240906.models.RegisterTargetGroupInstancesRequest`
433
+ :rtype: :class:`tencentcloud.gwlb.v20240906.models.RegisterTargetGroupInstancesResponse`
434
+
435
+ """
436
+ try:
437
+ params = request._serialize()
438
+ headers = request.headers
439
+ body = self.call("RegisterTargetGroupInstances", params, headers=headers)
440
+ response = json.loads(body)
441
+ model = models.RegisterTargetGroupInstancesResponse()
442
+ model._deserialize(response["Response"])
443
+ return model
444
+ except Exception as e:
445
+ if isinstance(e, TencentCloudSDKException):
446
+ raise
447
+ else:
448
+ raise TencentCloudSDKException(type(e).__name__, str(e))