tencentcloud-sdk-python 3.0.1250__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 (32) 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 +688 -0
  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/emr/v20190103/errorcodes.py +1 -1
  10. tencentcloud/emr/v20190103/models.py +1 -93
  11. tencentcloud/ess/v20201111/models.py +4 -5
  12. tencentcloud/essbasic/v20210526/models.py +2 -3
  13. tencentcloud/faceid/v20180301/models.py +27 -0
  14. tencentcloud/gwlb/__init__.py +0 -0
  15. tencentcloud/gwlb/v20240906/__init__.py +0 -0
  16. tencentcloud/gwlb/v20240906/errorcodes.py +48 -0
  17. tencentcloud/gwlb/v20240906/gwlb_client.py +448 -0
  18. tencentcloud/gwlb/v20240906/models.py +2834 -0
  19. tencentcloud/privatedns/v20201028/errorcodes.py +18 -0
  20. tencentcloud/privatedns/v20201028/models.py +142 -0
  21. tencentcloud/privatedns/v20201028/privatedns_client.py +23 -0
  22. tencentcloud/sms/v20190711/errorcodes.py +3 -0
  23. tencentcloud/sms/v20210111/errorcodes.py +3 -0
  24. tencentcloud/teo/v20220901/models.py +8 -5
  25. tencentcloud/tke/v20180525/models.py +2 -2
  26. tencentcloud/vclm/v20240523/models.py +12 -0
  27. tencentcloud/vtc/v20240223/models.py +12 -0
  28. {tencentcloud_sdk_python-3.0.1250.dist-info → tencentcloud_sdk_python-3.0.1251.dist-info}/METADATA +1 -1
  29. {tencentcloud_sdk_python-3.0.1250.dist-info → tencentcloud_sdk_python-3.0.1251.dist-info}/RECORD +32 -27
  30. {tencentcloud_sdk_python-3.0.1250.dist-info → tencentcloud_sdk_python-3.0.1251.dist-info}/LICENSE +0 -0
  31. {tencentcloud_sdk_python-3.0.1250.dist-info → tencentcloud_sdk_python-3.0.1251.dist-info}/WHEEL +0 -0
  32. {tencentcloud_sdk_python-3.0.1250.dist-info → tencentcloud_sdk_python-3.0.1251.dist-info}/top_level.txt +0 -0
@@ -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))