tencentcloud-sdk-python 3.0.1250__py2.py3-none-any.whl → 3.0.1252__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 (58) hide show
  1. tencentcloud/__init__.py +1 -1
  2. tencentcloud/batch/v20170312/models.py +8 -1
  3. tencentcloud/bma/v20221115/models.py +24 -0
  4. tencentcloud/cam/v20190116/models.py +16 -16
  5. tencentcloud/ccc/v20200210/models.py +117 -0
  6. tencentcloud/cdwdoris/v20211228/models.py +45 -0
  7. tencentcloud/cfg/v20210820/models.py +26 -0
  8. tencentcloud/cls/v20201016/cls_client.py +94 -1
  9. tencentcloud/cls/v20201016/models.py +769 -3
  10. tencentcloud/cynosdb/v20190107/cynosdb_client.py +1 -1
  11. tencentcloud/cynosdb/v20190107/models.py +25 -0
  12. tencentcloud/dasb/v20191018/models.py +21 -9
  13. tencentcloud/dc/v20180410/dc_client.py +23 -0
  14. tencentcloud/dc/v20180410/models.py +426 -0
  15. tencentcloud/dnspod/v20210323/models.py +1 -3
  16. tencentcloud/emr/v20190103/emr_client.py +92 -0
  17. tencentcloud/emr/v20190103/errorcodes.py +1 -1
  18. tencentcloud/emr/v20190103/models.py +1389 -179
  19. tencentcloud/es/v20180416/models.py +204 -1
  20. tencentcloud/ess/v20201111/models.py +6 -6
  21. tencentcloud/essbasic/v20210526/models.py +18 -5
  22. tencentcloud/facefusion/v20220927/errorcodes.py +15 -0
  23. tencentcloud/faceid/v20180301/models.py +27 -0
  24. tencentcloud/gwlb/__init__.py +0 -0
  25. tencentcloud/gwlb/v20240906/__init__.py +0 -0
  26. tencentcloud/gwlb/v20240906/errorcodes.py +48 -0
  27. tencentcloud/gwlb/v20240906/gwlb_client.py +448 -0
  28. tencentcloud/gwlb/v20240906/models.py +2835 -0
  29. tencentcloud/hunyuan/v20230901/models.py +139 -13
  30. tencentcloud/iss/v20230517/errorcodes.py +6 -0
  31. tencentcloud/iss/v20230517/iss_client.py +1 -1
  32. tencentcloud/iss/v20230517/models.py +72 -12
  33. tencentcloud/ocr/v20181119/errorcodes.py +1 -1
  34. tencentcloud/privatedns/v20201028/errorcodes.py +18 -0
  35. tencentcloud/privatedns/v20201028/models.py +142 -0
  36. tencentcloud/privatedns/v20201028/privatedns_client.py +23 -0
  37. tencentcloud/redis/v20180412/redis_client.py +1 -1
  38. tencentcloud/sms/v20190711/errorcodes.py +3 -0
  39. tencentcloud/sms/v20210111/errorcodes.py +2 -2
  40. tencentcloud/sms/v20210111/models.py +1 -1
  41. tencentcloud/sqlserver/v20180328/models.py +24 -0
  42. tencentcloud/sts/v20180813/models.py +2 -2
  43. tencentcloud/tcss/v20201101/models.py +147 -2
  44. tencentcloud/teo/v20220901/errorcodes.py +9 -9
  45. tencentcloud/teo/v20220901/models.py +83 -77
  46. tencentcloud/teo/v20220901/teo_client.py +4 -4
  47. tencentcloud/tke/v20180525/errorcodes.py +3 -0
  48. tencentcloud/tke/v20180525/models.py +248 -2
  49. tencentcloud/tke/v20180525/tke_client.py +46 -0
  50. tencentcloud/vclm/v20240523/models.py +12 -0
  51. tencentcloud/vpc/v20170312/models.py +24 -20
  52. tencentcloud/vpc/v20170312/vpc_client.py +2 -2
  53. tencentcloud/vtc/v20240223/models.py +12 -0
  54. {tencentcloud_sdk_python-3.0.1250.dist-info → tencentcloud_sdk_python-3.0.1252.dist-info}/METADATA +1 -1
  55. {tencentcloud_sdk_python-3.0.1250.dist-info → tencentcloud_sdk_python-3.0.1252.dist-info}/RECORD +58 -53
  56. {tencentcloud_sdk_python-3.0.1250.dist-info → tencentcloud_sdk_python-3.0.1252.dist-info}/LICENSE +0 -0
  57. {tencentcloud_sdk_python-3.0.1250.dist-info → tencentcloud_sdk_python-3.0.1252.dist-info}/WHEEL +0 -0
  58. {tencentcloud_sdk_python-3.0.1250.dist-info → tencentcloud_sdk_python-3.0.1252.dist-info}/top_level.txt +0 -0
@@ -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))