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,2835 @@
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 warnings
17
+
18
+ from tencentcloud.common.abstract_model import AbstractModel
19
+
20
+
21
+ class AssociateTargetGroupsRequest(AbstractModel):
22
+ """AssociateTargetGroups请求参数结构体
23
+
24
+ """
25
+
26
+ def __init__(self):
27
+ r"""
28
+ :param _Associations: 绑定的关系数组。一次请求最多支持20个。
29
+ :type Associations: list of TargetGroupAssociation
30
+ """
31
+ self._Associations = None
32
+
33
+ @property
34
+ def Associations(self):
35
+ return self._Associations
36
+
37
+ @Associations.setter
38
+ def Associations(self, Associations):
39
+ self._Associations = Associations
40
+
41
+
42
+ def _deserialize(self, params):
43
+ if params.get("Associations") is not None:
44
+ self._Associations = []
45
+ for item in params.get("Associations"):
46
+ obj = TargetGroupAssociation()
47
+ obj._deserialize(item)
48
+ self._Associations.append(obj)
49
+ memeber_set = set(params.keys())
50
+ for name, value in vars(self).items():
51
+ property_name = name[1:]
52
+ if property_name in memeber_set:
53
+ memeber_set.remove(property_name)
54
+ if len(memeber_set) > 0:
55
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
56
+
57
+
58
+
59
+ class AssociateTargetGroupsResponse(AbstractModel):
60
+ """AssociateTargetGroups返回参数结构体
61
+
62
+ """
63
+
64
+ def __init__(self):
65
+ r"""
66
+ :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
67
+ :type RequestId: str
68
+ """
69
+ self._RequestId = None
70
+
71
+ @property
72
+ def RequestId(self):
73
+ return self._RequestId
74
+
75
+ @RequestId.setter
76
+ def RequestId(self, RequestId):
77
+ self._RequestId = RequestId
78
+
79
+
80
+ def _deserialize(self, params):
81
+ self._RequestId = params.get("RequestId")
82
+
83
+
84
+ class AssociationItem(AbstractModel):
85
+ """目标组关联到的规则
86
+
87
+ """
88
+
89
+ def __init__(self):
90
+ r"""
91
+ :param _LoadBalancerId: 关联到的网关负载均衡实例ID
92
+ :type LoadBalancerId: str
93
+ :param _LoadBalancerName: 网关负载均衡实例名称
94
+ :type LoadBalancerName: str
95
+ """
96
+ self._LoadBalancerId = None
97
+ self._LoadBalancerName = None
98
+
99
+ @property
100
+ def LoadBalancerId(self):
101
+ return self._LoadBalancerId
102
+
103
+ @LoadBalancerId.setter
104
+ def LoadBalancerId(self, LoadBalancerId):
105
+ self._LoadBalancerId = LoadBalancerId
106
+
107
+ @property
108
+ def LoadBalancerName(self):
109
+ return self._LoadBalancerName
110
+
111
+ @LoadBalancerName.setter
112
+ def LoadBalancerName(self, LoadBalancerName):
113
+ self._LoadBalancerName = LoadBalancerName
114
+
115
+
116
+ def _deserialize(self, params):
117
+ self._LoadBalancerId = params.get("LoadBalancerId")
118
+ self._LoadBalancerName = params.get("LoadBalancerName")
119
+ memeber_set = set(params.keys())
120
+ for name, value in vars(self).items():
121
+ property_name = name[1:]
122
+ if property_name in memeber_set:
123
+ memeber_set.remove(property_name)
124
+ if len(memeber_set) > 0:
125
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
126
+
127
+
128
+
129
+ class CreateGatewayLoadBalancerRequest(AbstractModel):
130
+ """CreateGatewayLoadBalancer请求参数结构体
131
+
132
+ """
133
+
134
+ def __init__(self):
135
+ r"""
136
+ :param _VpcId: 网关负载均衡后端目标设备所属的私有网络 ID,如vpc-12345678,可以通过 DescribeVpcEx 接口获取。 不填此参数则默认为DefaultVPC。创建内网负载均衡实例时,此参数必填。
137
+ :type VpcId: str
138
+ :param _SubnetId: 网关负载均衡后端目标设备所属的私有网络的子网ID。
139
+ :type SubnetId: str
140
+ :param _LoadBalancerName: 网关负载均衡实例名称。可支持输入1-60个字符。不填写时默认自动生成。
141
+ :type LoadBalancerName: str
142
+ :param _Number: 创建网关负载均衡的个数,默认值为 1。批量创建数量最大支持10个。
143
+ :type Number: int
144
+ :param _Tags: 购买网关负载均衡的同时,给负载均衡打上标签,最大支持20个标签键值对。
145
+ :type Tags: list of TagInfo
146
+ :param _LBChargeType: 网关负载均衡实例计费类型,当前只支持传POSTPAID_BY_HOUR,默认是POSTPAID_BY_HOUR。
147
+ :type LBChargeType: str
148
+ """
149
+ self._VpcId = None
150
+ self._SubnetId = None
151
+ self._LoadBalancerName = None
152
+ self._Number = None
153
+ self._Tags = None
154
+ self._LBChargeType = None
155
+
156
+ @property
157
+ def VpcId(self):
158
+ return self._VpcId
159
+
160
+ @VpcId.setter
161
+ def VpcId(self, VpcId):
162
+ self._VpcId = VpcId
163
+
164
+ @property
165
+ def SubnetId(self):
166
+ return self._SubnetId
167
+
168
+ @SubnetId.setter
169
+ def SubnetId(self, SubnetId):
170
+ self._SubnetId = SubnetId
171
+
172
+ @property
173
+ def LoadBalancerName(self):
174
+ return self._LoadBalancerName
175
+
176
+ @LoadBalancerName.setter
177
+ def LoadBalancerName(self, LoadBalancerName):
178
+ self._LoadBalancerName = LoadBalancerName
179
+
180
+ @property
181
+ def Number(self):
182
+ return self._Number
183
+
184
+ @Number.setter
185
+ def Number(self, Number):
186
+ self._Number = Number
187
+
188
+ @property
189
+ def Tags(self):
190
+ return self._Tags
191
+
192
+ @Tags.setter
193
+ def Tags(self, Tags):
194
+ self._Tags = Tags
195
+
196
+ @property
197
+ def LBChargeType(self):
198
+ return self._LBChargeType
199
+
200
+ @LBChargeType.setter
201
+ def LBChargeType(self, LBChargeType):
202
+ self._LBChargeType = LBChargeType
203
+
204
+
205
+ def _deserialize(self, params):
206
+ self._VpcId = params.get("VpcId")
207
+ self._SubnetId = params.get("SubnetId")
208
+ self._LoadBalancerName = params.get("LoadBalancerName")
209
+ self._Number = params.get("Number")
210
+ if params.get("Tags") is not None:
211
+ self._Tags = []
212
+ for item in params.get("Tags"):
213
+ obj = TagInfo()
214
+ obj._deserialize(item)
215
+ self._Tags.append(obj)
216
+ self._LBChargeType = params.get("LBChargeType")
217
+ memeber_set = set(params.keys())
218
+ for name, value in vars(self).items():
219
+ property_name = name[1:]
220
+ if property_name in memeber_set:
221
+ memeber_set.remove(property_name)
222
+ if len(memeber_set) > 0:
223
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
224
+
225
+
226
+
227
+ class CreateGatewayLoadBalancerResponse(AbstractModel):
228
+ """CreateGatewayLoadBalancer返回参数结构体
229
+
230
+ """
231
+
232
+ def __init__(self):
233
+ r"""
234
+ :param _LoadBalancerIds: 由网关负载均衡实例唯一 ID 组成的数组。
235
+ 存在某些场景,如创建出现延迟时,此字段可能返回为空;此时可以根据接口返回的RequestId或DealName参数,通过DescribeTaskStatus接口查询创建的资源ID。
236
+ 注意:此字段可能返回 null,表示取不到有效值。
237
+ :type LoadBalancerIds: list of str
238
+ :param _DealName: 订单号。
239
+ 注意:此字段可能返回 null,表示取不到有效值。
240
+ :type DealName: str
241
+ :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
242
+ :type RequestId: str
243
+ """
244
+ self._LoadBalancerIds = None
245
+ self._DealName = None
246
+ self._RequestId = None
247
+
248
+ @property
249
+ def LoadBalancerIds(self):
250
+ return self._LoadBalancerIds
251
+
252
+ @LoadBalancerIds.setter
253
+ def LoadBalancerIds(self, LoadBalancerIds):
254
+ self._LoadBalancerIds = LoadBalancerIds
255
+
256
+ @property
257
+ def DealName(self):
258
+ return self._DealName
259
+
260
+ @DealName.setter
261
+ def DealName(self, DealName):
262
+ self._DealName = DealName
263
+
264
+ @property
265
+ def RequestId(self):
266
+ return self._RequestId
267
+
268
+ @RequestId.setter
269
+ def RequestId(self, RequestId):
270
+ self._RequestId = RequestId
271
+
272
+
273
+ def _deserialize(self, params):
274
+ self._LoadBalancerIds = params.get("LoadBalancerIds")
275
+ self._DealName = params.get("DealName")
276
+ self._RequestId = params.get("RequestId")
277
+
278
+
279
+ class CreateTargetGroupRequest(AbstractModel):
280
+ """CreateTargetGroup请求参数结构体
281
+
282
+ """
283
+
284
+ def __init__(self):
285
+ r"""
286
+ :param _TargetGroupName: 目标组名称,限定60个字符。
287
+ :type TargetGroupName: str
288
+ :param _VpcId: 目标组的vpcid属性,不填则使用默认vpc
289
+ :type VpcId: str
290
+ :param _Port: 目标组的默认端口, 后续添加服务器时可使用该默认端口。Port和TargetGroupInstances.N中的port二者必填其一。
291
+ :type Port: int
292
+ :param _TargetGroupInstances: 目标组绑定的后端服务器
293
+ :type TargetGroupInstances: list of TargetGroupInstance
294
+ :param _Protocol: 网关负载均衡目标组协议。
295
+ - TENCENT_GENEVE :GENEVE 标准协议
296
+ - AWS_GENEVE:GENEVE 兼容协议(需要提交工单申请开白)
297
+ :type Protocol: str
298
+ :param _HealthCheck: 健康检查设置。
299
+ :type HealthCheck: :class:`tencentcloud.gwlb.v20240906.models.TargetGroupHealthCheck`
300
+ :param _ScheduleAlgorithm: 均衡算法。
301
+ - IP_HASH_3_ELASTIC:弹性哈希
302
+ :type ScheduleAlgorithm: str
303
+ :param _AllDeadToAlive: 是否支持全死全活。默认支持。
304
+ :type AllDeadToAlive: bool
305
+ """
306
+ self._TargetGroupName = None
307
+ self._VpcId = None
308
+ self._Port = None
309
+ self._TargetGroupInstances = None
310
+ self._Protocol = None
311
+ self._HealthCheck = None
312
+ self._ScheduleAlgorithm = None
313
+ self._AllDeadToAlive = None
314
+
315
+ @property
316
+ def TargetGroupName(self):
317
+ return self._TargetGroupName
318
+
319
+ @TargetGroupName.setter
320
+ def TargetGroupName(self, TargetGroupName):
321
+ self._TargetGroupName = TargetGroupName
322
+
323
+ @property
324
+ def VpcId(self):
325
+ return self._VpcId
326
+
327
+ @VpcId.setter
328
+ def VpcId(self, VpcId):
329
+ self._VpcId = VpcId
330
+
331
+ @property
332
+ def Port(self):
333
+ return self._Port
334
+
335
+ @Port.setter
336
+ def Port(self, Port):
337
+ self._Port = Port
338
+
339
+ @property
340
+ def TargetGroupInstances(self):
341
+ return self._TargetGroupInstances
342
+
343
+ @TargetGroupInstances.setter
344
+ def TargetGroupInstances(self, TargetGroupInstances):
345
+ self._TargetGroupInstances = TargetGroupInstances
346
+
347
+ @property
348
+ def Protocol(self):
349
+ return self._Protocol
350
+
351
+ @Protocol.setter
352
+ def Protocol(self, Protocol):
353
+ self._Protocol = Protocol
354
+
355
+ @property
356
+ def HealthCheck(self):
357
+ return self._HealthCheck
358
+
359
+ @HealthCheck.setter
360
+ def HealthCheck(self, HealthCheck):
361
+ self._HealthCheck = HealthCheck
362
+
363
+ @property
364
+ def ScheduleAlgorithm(self):
365
+ return self._ScheduleAlgorithm
366
+
367
+ @ScheduleAlgorithm.setter
368
+ def ScheduleAlgorithm(self, ScheduleAlgorithm):
369
+ self._ScheduleAlgorithm = ScheduleAlgorithm
370
+
371
+ @property
372
+ def AllDeadToAlive(self):
373
+ return self._AllDeadToAlive
374
+
375
+ @AllDeadToAlive.setter
376
+ def AllDeadToAlive(self, AllDeadToAlive):
377
+ self._AllDeadToAlive = AllDeadToAlive
378
+
379
+
380
+ def _deserialize(self, params):
381
+ self._TargetGroupName = params.get("TargetGroupName")
382
+ self._VpcId = params.get("VpcId")
383
+ self._Port = params.get("Port")
384
+ if params.get("TargetGroupInstances") is not None:
385
+ self._TargetGroupInstances = []
386
+ for item in params.get("TargetGroupInstances"):
387
+ obj = TargetGroupInstance()
388
+ obj._deserialize(item)
389
+ self._TargetGroupInstances.append(obj)
390
+ self._Protocol = params.get("Protocol")
391
+ if params.get("HealthCheck") is not None:
392
+ self._HealthCheck = TargetGroupHealthCheck()
393
+ self._HealthCheck._deserialize(params.get("HealthCheck"))
394
+ self._ScheduleAlgorithm = params.get("ScheduleAlgorithm")
395
+ self._AllDeadToAlive = params.get("AllDeadToAlive")
396
+ memeber_set = set(params.keys())
397
+ for name, value in vars(self).items():
398
+ property_name = name[1:]
399
+ if property_name in memeber_set:
400
+ memeber_set.remove(property_name)
401
+ if len(memeber_set) > 0:
402
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
403
+
404
+
405
+
406
+ class CreateTargetGroupResponse(AbstractModel):
407
+ """CreateTargetGroup返回参数结构体
408
+
409
+ """
410
+
411
+ def __init__(self):
412
+ r"""
413
+ :param _TargetGroupId: 创建目标组后生成的id
414
+ :type TargetGroupId: str
415
+ :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
416
+ :type RequestId: str
417
+ """
418
+ self._TargetGroupId = None
419
+ self._RequestId = None
420
+
421
+ @property
422
+ def TargetGroupId(self):
423
+ return self._TargetGroupId
424
+
425
+ @TargetGroupId.setter
426
+ def TargetGroupId(self, TargetGroupId):
427
+ self._TargetGroupId = TargetGroupId
428
+
429
+ @property
430
+ def RequestId(self):
431
+ return self._RequestId
432
+
433
+ @RequestId.setter
434
+ def RequestId(self, RequestId):
435
+ self._RequestId = RequestId
436
+
437
+
438
+ def _deserialize(self, params):
439
+ self._TargetGroupId = params.get("TargetGroupId")
440
+ self._RequestId = params.get("RequestId")
441
+
442
+
443
+ class DeleteGatewayLoadBalancerRequest(AbstractModel):
444
+ """DeleteGatewayLoadBalancer请求参数结构体
445
+
446
+ """
447
+
448
+ def __init__(self):
449
+ r"""
450
+ :param _LoadBalancerIds: 要删除的网关负载均衡实例 ID数组,数组大小最大支持20。
451
+ :type LoadBalancerIds: list of str
452
+ """
453
+ self._LoadBalancerIds = None
454
+
455
+ @property
456
+ def LoadBalancerIds(self):
457
+ return self._LoadBalancerIds
458
+
459
+ @LoadBalancerIds.setter
460
+ def LoadBalancerIds(self, LoadBalancerIds):
461
+ self._LoadBalancerIds = LoadBalancerIds
462
+
463
+
464
+ def _deserialize(self, params):
465
+ self._LoadBalancerIds = params.get("LoadBalancerIds")
466
+ memeber_set = set(params.keys())
467
+ for name, value in vars(self).items():
468
+ property_name = name[1:]
469
+ if property_name in memeber_set:
470
+ memeber_set.remove(property_name)
471
+ if len(memeber_set) > 0:
472
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
473
+
474
+
475
+
476
+ class DeleteGatewayLoadBalancerResponse(AbstractModel):
477
+ """DeleteGatewayLoadBalancer返回参数结构体
478
+
479
+ """
480
+
481
+ def __init__(self):
482
+ r"""
483
+ :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
484
+ :type RequestId: str
485
+ """
486
+ self._RequestId = None
487
+
488
+ @property
489
+ def RequestId(self):
490
+ return self._RequestId
491
+
492
+ @RequestId.setter
493
+ def RequestId(self, RequestId):
494
+ self._RequestId = RequestId
495
+
496
+
497
+ def _deserialize(self, params):
498
+ self._RequestId = params.get("RequestId")
499
+
500
+
501
+ class DeleteTargetGroupsRequest(AbstractModel):
502
+ """DeleteTargetGroups请求参数结构体
503
+
504
+ """
505
+
506
+ def __init__(self):
507
+ r"""
508
+ :param _TargetGroupIds: 目标组ID列表。
509
+ :type TargetGroupIds: list of str
510
+ """
511
+ self._TargetGroupIds = None
512
+
513
+ @property
514
+ def TargetGroupIds(self):
515
+ return self._TargetGroupIds
516
+
517
+ @TargetGroupIds.setter
518
+ def TargetGroupIds(self, TargetGroupIds):
519
+ self._TargetGroupIds = TargetGroupIds
520
+
521
+
522
+ def _deserialize(self, params):
523
+ self._TargetGroupIds = params.get("TargetGroupIds")
524
+ memeber_set = set(params.keys())
525
+ for name, value in vars(self).items():
526
+ property_name = name[1:]
527
+ if property_name in memeber_set:
528
+ memeber_set.remove(property_name)
529
+ if len(memeber_set) > 0:
530
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
531
+
532
+
533
+
534
+ class DeleteTargetGroupsResponse(AbstractModel):
535
+ """DeleteTargetGroups返回参数结构体
536
+
537
+ """
538
+
539
+ def __init__(self):
540
+ r"""
541
+ :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
542
+ :type RequestId: str
543
+ """
544
+ self._RequestId = None
545
+
546
+ @property
547
+ def RequestId(self):
548
+ return self._RequestId
549
+
550
+ @RequestId.setter
551
+ def RequestId(self, RequestId):
552
+ self._RequestId = RequestId
553
+
554
+
555
+ def _deserialize(self, params):
556
+ self._RequestId = params.get("RequestId")
557
+
558
+
559
+ class DeregisterTargetGroupInstancesRequest(AbstractModel):
560
+ """DeregisterTargetGroupInstances请求参数结构体
561
+
562
+ """
563
+
564
+ def __init__(self):
565
+ r"""
566
+ :param _TargetGroupId: 目标组ID。
567
+ :type TargetGroupId: str
568
+ :param _TargetGroupInstances: 待解绑的服务器信息。
569
+ :type TargetGroupInstances: list of TargetGroupInstance
570
+ """
571
+ self._TargetGroupId = None
572
+ self._TargetGroupInstances = None
573
+
574
+ @property
575
+ def TargetGroupId(self):
576
+ return self._TargetGroupId
577
+
578
+ @TargetGroupId.setter
579
+ def TargetGroupId(self, TargetGroupId):
580
+ self._TargetGroupId = TargetGroupId
581
+
582
+ @property
583
+ def TargetGroupInstances(self):
584
+ return self._TargetGroupInstances
585
+
586
+ @TargetGroupInstances.setter
587
+ def TargetGroupInstances(self, TargetGroupInstances):
588
+ self._TargetGroupInstances = TargetGroupInstances
589
+
590
+
591
+ def _deserialize(self, params):
592
+ self._TargetGroupId = params.get("TargetGroupId")
593
+ if params.get("TargetGroupInstances") is not None:
594
+ self._TargetGroupInstances = []
595
+ for item in params.get("TargetGroupInstances"):
596
+ obj = TargetGroupInstance()
597
+ obj._deserialize(item)
598
+ self._TargetGroupInstances.append(obj)
599
+ memeber_set = set(params.keys())
600
+ for name, value in vars(self).items():
601
+ property_name = name[1:]
602
+ if property_name in memeber_set:
603
+ memeber_set.remove(property_name)
604
+ if len(memeber_set) > 0:
605
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
606
+
607
+
608
+
609
+ class DeregisterTargetGroupInstancesResponse(AbstractModel):
610
+ """DeregisterTargetGroupInstances返回参数结构体
611
+
612
+ """
613
+
614
+ def __init__(self):
615
+ r"""
616
+ :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
617
+ :type RequestId: str
618
+ """
619
+ self._RequestId = None
620
+
621
+ @property
622
+ def RequestId(self):
623
+ return self._RequestId
624
+
625
+ @RequestId.setter
626
+ def RequestId(self, RequestId):
627
+ self._RequestId = RequestId
628
+
629
+
630
+ def _deserialize(self, params):
631
+ self._RequestId = params.get("RequestId")
632
+
633
+
634
+ class DescribeGatewayLoadBalancersRequest(AbstractModel):
635
+ """DescribeGatewayLoadBalancers请求参数结构体
636
+
637
+ """
638
+
639
+ def __init__(self):
640
+ r"""
641
+ :param _LoadBalancerIds: 网关负载均衡实例ID。支持批量筛选的实例ID数量上限为20个。
642
+ :type LoadBalancerIds: list of str
643
+ :param _Limit: 一次批量返回网关负载均衡实例的数量,默认为20,最大值为100。
644
+ :type Limit: int
645
+ :param _Offset: 返回网关负载均衡实例列表的起始偏移量,默认0。
646
+ :type Offset: int
647
+ :param _Filters: 查询负载均衡详细信息列表的过滤条件,每次请求的Filters的上限为10,Filter.Values的上限为100。
648
+ Filter.Name和Filter.Values皆为必填项。详细的过滤条件如下:
649
+ - name - String - 是否必填:否 - (过滤条件)按照网关负载均衡实例名称过滤,如“gwlb-xxxx”。
650
+ - VpcId - String - 是否必填:否 - (过滤条件)按照网关负载均衡实例所属的私有网络过滤,如“vpc-bhqk****”。
651
+
652
+ :type Filters: list of Filter
653
+ :param _SearchKey: 搜索字段,模糊匹配名称、VIP。
654
+ :type SearchKey: str
655
+ """
656
+ self._LoadBalancerIds = None
657
+ self._Limit = None
658
+ self._Offset = None
659
+ self._Filters = None
660
+ self._SearchKey = None
661
+
662
+ @property
663
+ def LoadBalancerIds(self):
664
+ return self._LoadBalancerIds
665
+
666
+ @LoadBalancerIds.setter
667
+ def LoadBalancerIds(self, LoadBalancerIds):
668
+ self._LoadBalancerIds = LoadBalancerIds
669
+
670
+ @property
671
+ def Limit(self):
672
+ return self._Limit
673
+
674
+ @Limit.setter
675
+ def Limit(self, Limit):
676
+ self._Limit = Limit
677
+
678
+ @property
679
+ def Offset(self):
680
+ return self._Offset
681
+
682
+ @Offset.setter
683
+ def Offset(self, Offset):
684
+ self._Offset = Offset
685
+
686
+ @property
687
+ def Filters(self):
688
+ return self._Filters
689
+
690
+ @Filters.setter
691
+ def Filters(self, Filters):
692
+ self._Filters = Filters
693
+
694
+ @property
695
+ def SearchKey(self):
696
+ return self._SearchKey
697
+
698
+ @SearchKey.setter
699
+ def SearchKey(self, SearchKey):
700
+ self._SearchKey = SearchKey
701
+
702
+
703
+ def _deserialize(self, params):
704
+ self._LoadBalancerIds = params.get("LoadBalancerIds")
705
+ self._Limit = params.get("Limit")
706
+ self._Offset = params.get("Offset")
707
+ if params.get("Filters") is not None:
708
+ self._Filters = []
709
+ for item in params.get("Filters"):
710
+ obj = Filter()
711
+ obj._deserialize(item)
712
+ self._Filters.append(obj)
713
+ self._SearchKey = params.get("SearchKey")
714
+ memeber_set = set(params.keys())
715
+ for name, value in vars(self).items():
716
+ property_name = name[1:]
717
+ if property_name in memeber_set:
718
+ memeber_set.remove(property_name)
719
+ if len(memeber_set) > 0:
720
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
721
+
722
+
723
+
724
+ class DescribeGatewayLoadBalancersResponse(AbstractModel):
725
+ """DescribeGatewayLoadBalancers返回参数结构体
726
+
727
+ """
728
+
729
+ def __init__(self):
730
+ r"""
731
+ :param _TotalCount: 满足过滤条件的负载均衡实例总数。此数值与入参中的Limit无关。
732
+ :type TotalCount: int
733
+ :param _LoadBalancerSet: 返回的网关负载均衡实例数组。
734
+ :type LoadBalancerSet: list of GatewayLoadBalancer
735
+ :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
736
+ :type RequestId: str
737
+ """
738
+ self._TotalCount = None
739
+ self._LoadBalancerSet = None
740
+ self._RequestId = None
741
+
742
+ @property
743
+ def TotalCount(self):
744
+ return self._TotalCount
745
+
746
+ @TotalCount.setter
747
+ def TotalCount(self, TotalCount):
748
+ self._TotalCount = TotalCount
749
+
750
+ @property
751
+ def LoadBalancerSet(self):
752
+ return self._LoadBalancerSet
753
+
754
+ @LoadBalancerSet.setter
755
+ def LoadBalancerSet(self, LoadBalancerSet):
756
+ self._LoadBalancerSet = LoadBalancerSet
757
+
758
+ @property
759
+ def RequestId(self):
760
+ return self._RequestId
761
+
762
+ @RequestId.setter
763
+ def RequestId(self, RequestId):
764
+ self._RequestId = RequestId
765
+
766
+
767
+ def _deserialize(self, params):
768
+ self._TotalCount = params.get("TotalCount")
769
+ if params.get("LoadBalancerSet") is not None:
770
+ self._LoadBalancerSet = []
771
+ for item in params.get("LoadBalancerSet"):
772
+ obj = GatewayLoadBalancer()
773
+ obj._deserialize(item)
774
+ self._LoadBalancerSet.append(obj)
775
+ self._RequestId = params.get("RequestId")
776
+
777
+
778
+ class DescribeTargetGroupInstanceStatusRequest(AbstractModel):
779
+ """DescribeTargetGroupInstanceStatus请求参数结构体
780
+
781
+ """
782
+
783
+ def __init__(self):
784
+ r"""
785
+ :param _TargetGroupId: 目标组唯一id
786
+ :type TargetGroupId: str
787
+ :param _TargetGroupInstanceIps: 目标组绑定的后端服务ip列表
788
+ :type TargetGroupInstanceIps: list of str
789
+ """
790
+ self._TargetGroupId = None
791
+ self._TargetGroupInstanceIps = None
792
+
793
+ @property
794
+ def TargetGroupId(self):
795
+ return self._TargetGroupId
796
+
797
+ @TargetGroupId.setter
798
+ def TargetGroupId(self, TargetGroupId):
799
+ self._TargetGroupId = TargetGroupId
800
+
801
+ @property
802
+ def TargetGroupInstanceIps(self):
803
+ return self._TargetGroupInstanceIps
804
+
805
+ @TargetGroupInstanceIps.setter
806
+ def TargetGroupInstanceIps(self, TargetGroupInstanceIps):
807
+ self._TargetGroupInstanceIps = TargetGroupInstanceIps
808
+
809
+
810
+ def _deserialize(self, params):
811
+ self._TargetGroupId = params.get("TargetGroupId")
812
+ self._TargetGroupInstanceIps = params.get("TargetGroupInstanceIps")
813
+ memeber_set = set(params.keys())
814
+ for name, value in vars(self).items():
815
+ property_name = name[1:]
816
+ if property_name in memeber_set:
817
+ memeber_set.remove(property_name)
818
+ if len(memeber_set) > 0:
819
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
820
+
821
+
822
+
823
+ class DescribeTargetGroupInstanceStatusResponse(AbstractModel):
824
+ """DescribeTargetGroupInstanceStatus返回参数结构体
825
+
826
+ """
827
+
828
+ def __init__(self):
829
+ r"""
830
+ :param _TargetGroupInstanceSet: 健康检查后端rs状态列表
831
+ :type TargetGroupInstanceSet: list of TargetGroupInstanceStatus
832
+ :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
833
+ :type RequestId: str
834
+ """
835
+ self._TargetGroupInstanceSet = None
836
+ self._RequestId = None
837
+
838
+ @property
839
+ def TargetGroupInstanceSet(self):
840
+ return self._TargetGroupInstanceSet
841
+
842
+ @TargetGroupInstanceSet.setter
843
+ def TargetGroupInstanceSet(self, TargetGroupInstanceSet):
844
+ self._TargetGroupInstanceSet = TargetGroupInstanceSet
845
+
846
+ @property
847
+ def RequestId(self):
848
+ return self._RequestId
849
+
850
+ @RequestId.setter
851
+ def RequestId(self, RequestId):
852
+ self._RequestId = RequestId
853
+
854
+
855
+ def _deserialize(self, params):
856
+ if params.get("TargetGroupInstanceSet") is not None:
857
+ self._TargetGroupInstanceSet = []
858
+ for item in params.get("TargetGroupInstanceSet"):
859
+ obj = TargetGroupInstanceStatus()
860
+ obj._deserialize(item)
861
+ self._TargetGroupInstanceSet.append(obj)
862
+ self._RequestId = params.get("RequestId")
863
+
864
+
865
+ class DescribeTargetGroupInstancesRequest(AbstractModel):
866
+ """DescribeTargetGroupInstances请求参数结构体
867
+
868
+ """
869
+
870
+ def __init__(self):
871
+ r"""
872
+ :param _Filters: 过滤条件,当前仅支持TargetGroupId,BindIP,InstanceId过滤。
873
+ :type Filters: list of Filter
874
+ :param _Limit: 显示数量限制,默认20。
875
+ :type Limit: int
876
+ :param _Offset: 显示的偏移量,默认为0。
877
+ :type Offset: int
878
+ """
879
+ self._Filters = None
880
+ self._Limit = None
881
+ self._Offset = None
882
+
883
+ @property
884
+ def Filters(self):
885
+ return self._Filters
886
+
887
+ @Filters.setter
888
+ def Filters(self, Filters):
889
+ self._Filters = Filters
890
+
891
+ @property
892
+ def Limit(self):
893
+ return self._Limit
894
+
895
+ @Limit.setter
896
+ def Limit(self, Limit):
897
+ self._Limit = Limit
898
+
899
+ @property
900
+ def Offset(self):
901
+ return self._Offset
902
+
903
+ @Offset.setter
904
+ def Offset(self, Offset):
905
+ self._Offset = Offset
906
+
907
+
908
+ def _deserialize(self, params):
909
+ if params.get("Filters") is not None:
910
+ self._Filters = []
911
+ for item in params.get("Filters"):
912
+ obj = Filter()
913
+ obj._deserialize(item)
914
+ self._Filters.append(obj)
915
+ self._Limit = params.get("Limit")
916
+ self._Offset = params.get("Offset")
917
+ memeber_set = set(params.keys())
918
+ for name, value in vars(self).items():
919
+ property_name = name[1:]
920
+ if property_name in memeber_set:
921
+ memeber_set.remove(property_name)
922
+ if len(memeber_set) > 0:
923
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
924
+
925
+
926
+
927
+ class DescribeTargetGroupInstancesResponse(AbstractModel):
928
+ """DescribeTargetGroupInstances返回参数结构体
929
+
930
+ """
931
+
932
+ def __init__(self):
933
+ r"""
934
+ :param _TotalCount: 本次查询的结果数量。
935
+ :type TotalCount: int
936
+ :param _TargetGroupInstanceSet: 绑定的服务器信息。
937
+ :type TargetGroupInstanceSet: list of TargetGroupBackend
938
+ :param _RealCount: 实际统计数量,不受Limit、Offset、CAM的影响。
939
+ :type RealCount: int
940
+ :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
941
+ :type RequestId: str
942
+ """
943
+ self._TotalCount = None
944
+ self._TargetGroupInstanceSet = None
945
+ self._RealCount = None
946
+ self._RequestId = None
947
+
948
+ @property
949
+ def TotalCount(self):
950
+ return self._TotalCount
951
+
952
+ @TotalCount.setter
953
+ def TotalCount(self, TotalCount):
954
+ self._TotalCount = TotalCount
955
+
956
+ @property
957
+ def TargetGroupInstanceSet(self):
958
+ return self._TargetGroupInstanceSet
959
+
960
+ @TargetGroupInstanceSet.setter
961
+ def TargetGroupInstanceSet(self, TargetGroupInstanceSet):
962
+ self._TargetGroupInstanceSet = TargetGroupInstanceSet
963
+
964
+ @property
965
+ def RealCount(self):
966
+ return self._RealCount
967
+
968
+ @RealCount.setter
969
+ def RealCount(self, RealCount):
970
+ self._RealCount = RealCount
971
+
972
+ @property
973
+ def RequestId(self):
974
+ return self._RequestId
975
+
976
+ @RequestId.setter
977
+ def RequestId(self, RequestId):
978
+ self._RequestId = RequestId
979
+
980
+
981
+ def _deserialize(self, params):
982
+ self._TotalCount = params.get("TotalCount")
983
+ if params.get("TargetGroupInstanceSet") is not None:
984
+ self._TargetGroupInstanceSet = []
985
+ for item in params.get("TargetGroupInstanceSet"):
986
+ obj = TargetGroupBackend()
987
+ obj._deserialize(item)
988
+ self._TargetGroupInstanceSet.append(obj)
989
+ self._RealCount = params.get("RealCount")
990
+ self._RequestId = params.get("RequestId")
991
+
992
+
993
+ class DescribeTargetGroupListRequest(AbstractModel):
994
+ """DescribeTargetGroupList请求参数结构体
995
+
996
+ """
997
+
998
+ def __init__(self):
999
+ r"""
1000
+ :param _TargetGroupIds: 目标组ID数组。
1001
+ :type TargetGroupIds: list of str
1002
+ :param _Filters: 过滤条件数组,支持TargetGroupVpcId和TargetGroupName。
1003
+ :type Filters: list of Filter
1004
+ :param _Offset: 显示的偏移起始量。
1005
+ :type Offset: int
1006
+ :param _Limit: 显示条数限制,默认为20。
1007
+ :type Limit: int
1008
+ """
1009
+ self._TargetGroupIds = None
1010
+ self._Filters = None
1011
+ self._Offset = None
1012
+ self._Limit = None
1013
+
1014
+ @property
1015
+ def TargetGroupIds(self):
1016
+ return self._TargetGroupIds
1017
+
1018
+ @TargetGroupIds.setter
1019
+ def TargetGroupIds(self, TargetGroupIds):
1020
+ self._TargetGroupIds = TargetGroupIds
1021
+
1022
+ @property
1023
+ def Filters(self):
1024
+ return self._Filters
1025
+
1026
+ @Filters.setter
1027
+ def Filters(self, Filters):
1028
+ self._Filters = Filters
1029
+
1030
+ @property
1031
+ def Offset(self):
1032
+ return self._Offset
1033
+
1034
+ @Offset.setter
1035
+ def Offset(self, Offset):
1036
+ self._Offset = Offset
1037
+
1038
+ @property
1039
+ def Limit(self):
1040
+ return self._Limit
1041
+
1042
+ @Limit.setter
1043
+ def Limit(self, Limit):
1044
+ self._Limit = Limit
1045
+
1046
+
1047
+ def _deserialize(self, params):
1048
+ self._TargetGroupIds = params.get("TargetGroupIds")
1049
+ if params.get("Filters") is not None:
1050
+ self._Filters = []
1051
+ for item in params.get("Filters"):
1052
+ obj = Filter()
1053
+ obj._deserialize(item)
1054
+ self._Filters.append(obj)
1055
+ self._Offset = params.get("Offset")
1056
+ self._Limit = params.get("Limit")
1057
+ memeber_set = set(params.keys())
1058
+ for name, value in vars(self).items():
1059
+ property_name = name[1:]
1060
+ if property_name in memeber_set:
1061
+ memeber_set.remove(property_name)
1062
+ if len(memeber_set) > 0:
1063
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
1064
+
1065
+
1066
+
1067
+ class DescribeTargetGroupListResponse(AbstractModel):
1068
+ """DescribeTargetGroupList返回参数结构体
1069
+
1070
+ """
1071
+
1072
+ def __init__(self):
1073
+ r"""
1074
+ :param _TotalCount: 显示的结果数量。
1075
+ :type TotalCount: int
1076
+ :param _TargetGroupSet: 显示的目标组信息集合。
1077
+ :type TargetGroupSet: list of TargetGroupInfo
1078
+ :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
1079
+ :type RequestId: str
1080
+ """
1081
+ self._TotalCount = None
1082
+ self._TargetGroupSet = None
1083
+ self._RequestId = None
1084
+
1085
+ @property
1086
+ def TotalCount(self):
1087
+ return self._TotalCount
1088
+
1089
+ @TotalCount.setter
1090
+ def TotalCount(self, TotalCount):
1091
+ self._TotalCount = TotalCount
1092
+
1093
+ @property
1094
+ def TargetGroupSet(self):
1095
+ return self._TargetGroupSet
1096
+
1097
+ @TargetGroupSet.setter
1098
+ def TargetGroupSet(self, TargetGroupSet):
1099
+ self._TargetGroupSet = TargetGroupSet
1100
+
1101
+ @property
1102
+ def RequestId(self):
1103
+ return self._RequestId
1104
+
1105
+ @RequestId.setter
1106
+ def RequestId(self, RequestId):
1107
+ self._RequestId = RequestId
1108
+
1109
+
1110
+ def _deserialize(self, params):
1111
+ self._TotalCount = params.get("TotalCount")
1112
+ if params.get("TargetGroupSet") is not None:
1113
+ self._TargetGroupSet = []
1114
+ for item in params.get("TargetGroupSet"):
1115
+ obj = TargetGroupInfo()
1116
+ obj._deserialize(item)
1117
+ self._TargetGroupSet.append(obj)
1118
+ self._RequestId = params.get("RequestId")
1119
+
1120
+
1121
+ class DescribeTargetGroupsRequest(AbstractModel):
1122
+ """DescribeTargetGroups请求参数结构体
1123
+
1124
+ """
1125
+
1126
+ def __init__(self):
1127
+ r"""
1128
+ :param _TargetGroupIds: 目标组ID,与Filters互斥。
1129
+ :type TargetGroupIds: list of str
1130
+ :param _Limit: 显示条数限制,默认为20。
1131
+ :type Limit: int
1132
+ :param _Offset: 显示的偏移起始量。
1133
+ :type Offset: int
1134
+ :param _Filters: 过滤条件数组,支持TargetGroupVpcId和TargetGroupName。
1135
+ :type Filters: list of Filter
1136
+ """
1137
+ self._TargetGroupIds = None
1138
+ self._Limit = None
1139
+ self._Offset = None
1140
+ self._Filters = None
1141
+
1142
+ @property
1143
+ def TargetGroupIds(self):
1144
+ return self._TargetGroupIds
1145
+
1146
+ @TargetGroupIds.setter
1147
+ def TargetGroupIds(self, TargetGroupIds):
1148
+ self._TargetGroupIds = TargetGroupIds
1149
+
1150
+ @property
1151
+ def Limit(self):
1152
+ return self._Limit
1153
+
1154
+ @Limit.setter
1155
+ def Limit(self, Limit):
1156
+ self._Limit = Limit
1157
+
1158
+ @property
1159
+ def Offset(self):
1160
+ return self._Offset
1161
+
1162
+ @Offset.setter
1163
+ def Offset(self, Offset):
1164
+ self._Offset = Offset
1165
+
1166
+ @property
1167
+ def Filters(self):
1168
+ return self._Filters
1169
+
1170
+ @Filters.setter
1171
+ def Filters(self, Filters):
1172
+ self._Filters = Filters
1173
+
1174
+
1175
+ def _deserialize(self, params):
1176
+ self._TargetGroupIds = params.get("TargetGroupIds")
1177
+ self._Limit = params.get("Limit")
1178
+ self._Offset = params.get("Offset")
1179
+ if params.get("Filters") is not None:
1180
+ self._Filters = []
1181
+ for item in params.get("Filters"):
1182
+ obj = Filter()
1183
+ obj._deserialize(item)
1184
+ self._Filters.append(obj)
1185
+ memeber_set = set(params.keys())
1186
+ for name, value in vars(self).items():
1187
+ property_name = name[1:]
1188
+ if property_name in memeber_set:
1189
+ memeber_set.remove(property_name)
1190
+ if len(memeber_set) > 0:
1191
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
1192
+
1193
+
1194
+
1195
+ class DescribeTargetGroupsResponse(AbstractModel):
1196
+ """DescribeTargetGroups返回参数结构体
1197
+
1198
+ """
1199
+
1200
+ def __init__(self):
1201
+ r"""
1202
+ :param _TotalCount: 显示的结果数量。
1203
+ :type TotalCount: int
1204
+ :param _TargetGroupSet: 显示的目标组信息集合。
1205
+ :type TargetGroupSet: list of TargetGroupInfo
1206
+ :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
1207
+ :type RequestId: str
1208
+ """
1209
+ self._TotalCount = None
1210
+ self._TargetGroupSet = None
1211
+ self._RequestId = None
1212
+
1213
+ @property
1214
+ def TotalCount(self):
1215
+ return self._TotalCount
1216
+
1217
+ @TotalCount.setter
1218
+ def TotalCount(self, TotalCount):
1219
+ self._TotalCount = TotalCount
1220
+
1221
+ @property
1222
+ def TargetGroupSet(self):
1223
+ return self._TargetGroupSet
1224
+
1225
+ @TargetGroupSet.setter
1226
+ def TargetGroupSet(self, TargetGroupSet):
1227
+ self._TargetGroupSet = TargetGroupSet
1228
+
1229
+ @property
1230
+ def RequestId(self):
1231
+ return self._RequestId
1232
+
1233
+ @RequestId.setter
1234
+ def RequestId(self, RequestId):
1235
+ self._RequestId = RequestId
1236
+
1237
+
1238
+ def _deserialize(self, params):
1239
+ self._TotalCount = params.get("TotalCount")
1240
+ if params.get("TargetGroupSet") is not None:
1241
+ self._TargetGroupSet = []
1242
+ for item in params.get("TargetGroupSet"):
1243
+ obj = TargetGroupInfo()
1244
+ obj._deserialize(item)
1245
+ self._TargetGroupSet.append(obj)
1246
+ self._RequestId = params.get("RequestId")
1247
+
1248
+
1249
+ class DescribeTaskStatusRequest(AbstractModel):
1250
+ """DescribeTaskStatus请求参数结构体
1251
+
1252
+ """
1253
+
1254
+ def __init__(self):
1255
+ r"""
1256
+ :param _TaskId: 请求ID,即接口返回的 RequestId 参数。
1257
+ :type TaskId: str
1258
+ """
1259
+ self._TaskId = None
1260
+
1261
+ @property
1262
+ def TaskId(self):
1263
+ return self._TaskId
1264
+
1265
+ @TaskId.setter
1266
+ def TaskId(self, TaskId):
1267
+ self._TaskId = TaskId
1268
+
1269
+
1270
+ def _deserialize(self, params):
1271
+ self._TaskId = params.get("TaskId")
1272
+ memeber_set = set(params.keys())
1273
+ for name, value in vars(self).items():
1274
+ property_name = name[1:]
1275
+ if property_name in memeber_set:
1276
+ memeber_set.remove(property_name)
1277
+ if len(memeber_set) > 0:
1278
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
1279
+
1280
+
1281
+
1282
+ class DescribeTaskStatusResponse(AbstractModel):
1283
+ """DescribeTaskStatus返回参数结构体
1284
+
1285
+ """
1286
+
1287
+ def __init__(self):
1288
+ r"""
1289
+ :param _Status: 任务的当前状态。 0:成功,1:失败,2:进行中。
1290
+ :type Status: int
1291
+ :param _LoadBalancerIds: 由负载均衡实例唯一 ID 组成的数组。
1292
+ 注意:此字段可能返回 null,表示取不到有效值。
1293
+ :type LoadBalancerIds: list of str
1294
+ :param _Message: 辅助描述信息,如失败原因等。
1295
+ 注意:此字段可能返回 null,表示取不到有效值。
1296
+ :type Message: str
1297
+ :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
1298
+ :type RequestId: str
1299
+ """
1300
+ self._Status = None
1301
+ self._LoadBalancerIds = None
1302
+ self._Message = None
1303
+ self._RequestId = None
1304
+
1305
+ @property
1306
+ def Status(self):
1307
+ return self._Status
1308
+
1309
+ @Status.setter
1310
+ def Status(self, Status):
1311
+ self._Status = Status
1312
+
1313
+ @property
1314
+ def LoadBalancerIds(self):
1315
+ return self._LoadBalancerIds
1316
+
1317
+ @LoadBalancerIds.setter
1318
+ def LoadBalancerIds(self, LoadBalancerIds):
1319
+ self._LoadBalancerIds = LoadBalancerIds
1320
+
1321
+ @property
1322
+ def Message(self):
1323
+ return self._Message
1324
+
1325
+ @Message.setter
1326
+ def Message(self, Message):
1327
+ self._Message = Message
1328
+
1329
+ @property
1330
+ def RequestId(self):
1331
+ return self._RequestId
1332
+
1333
+ @RequestId.setter
1334
+ def RequestId(self, RequestId):
1335
+ self._RequestId = RequestId
1336
+
1337
+
1338
+ def _deserialize(self, params):
1339
+ self._Status = params.get("Status")
1340
+ self._LoadBalancerIds = params.get("LoadBalancerIds")
1341
+ self._Message = params.get("Message")
1342
+ self._RequestId = params.get("RequestId")
1343
+
1344
+
1345
+ class DisassociateTargetGroupsRequest(AbstractModel):
1346
+ """DisassociateTargetGroups请求参数结构体
1347
+
1348
+ """
1349
+
1350
+ def __init__(self):
1351
+ r"""
1352
+ :param _Associations: 待解绑的目标组列表。
1353
+ :type Associations: list of TargetGroupAssociation
1354
+ """
1355
+ self._Associations = None
1356
+
1357
+ @property
1358
+ def Associations(self):
1359
+ return self._Associations
1360
+
1361
+ @Associations.setter
1362
+ def Associations(self, Associations):
1363
+ self._Associations = Associations
1364
+
1365
+
1366
+ def _deserialize(self, params):
1367
+ if params.get("Associations") is not None:
1368
+ self._Associations = []
1369
+ for item in params.get("Associations"):
1370
+ obj = TargetGroupAssociation()
1371
+ obj._deserialize(item)
1372
+ self._Associations.append(obj)
1373
+ memeber_set = set(params.keys())
1374
+ for name, value in vars(self).items():
1375
+ property_name = name[1:]
1376
+ if property_name in memeber_set:
1377
+ memeber_set.remove(property_name)
1378
+ if len(memeber_set) > 0:
1379
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
1380
+
1381
+
1382
+
1383
+ class DisassociateTargetGroupsResponse(AbstractModel):
1384
+ """DisassociateTargetGroups返回参数结构体
1385
+
1386
+ """
1387
+
1388
+ def __init__(self):
1389
+ r"""
1390
+ :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
1391
+ :type RequestId: str
1392
+ """
1393
+ self._RequestId = None
1394
+
1395
+ @property
1396
+ def RequestId(self):
1397
+ return self._RequestId
1398
+
1399
+ @RequestId.setter
1400
+ def RequestId(self, RequestId):
1401
+ self._RequestId = RequestId
1402
+
1403
+
1404
+ def _deserialize(self, params):
1405
+ self._RequestId = params.get("RequestId")
1406
+
1407
+
1408
+ class Filter(AbstractModel):
1409
+ """过滤器条件
1410
+
1411
+ """
1412
+
1413
+ def __init__(self):
1414
+ r"""
1415
+ :param _Name: 过滤器的名称
1416
+ :type Name: str
1417
+ :param _Values: 过滤器的值数组
1418
+ :type Values: list of str
1419
+ """
1420
+ self._Name = None
1421
+ self._Values = None
1422
+
1423
+ @property
1424
+ def Name(self):
1425
+ return self._Name
1426
+
1427
+ @Name.setter
1428
+ def Name(self, Name):
1429
+ self._Name = Name
1430
+
1431
+ @property
1432
+ def Values(self):
1433
+ return self._Values
1434
+
1435
+ @Values.setter
1436
+ def Values(self, Values):
1437
+ self._Values = Values
1438
+
1439
+
1440
+ def _deserialize(self, params):
1441
+ self._Name = params.get("Name")
1442
+ self._Values = params.get("Values")
1443
+ memeber_set = set(params.keys())
1444
+ for name, value in vars(self).items():
1445
+ property_name = name[1:]
1446
+ if property_name in memeber_set:
1447
+ memeber_set.remove(property_name)
1448
+ if len(memeber_set) > 0:
1449
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
1450
+
1451
+
1452
+
1453
+ class GatewayLoadBalancer(AbstractModel):
1454
+ """网关负载均衡实例的信息
1455
+
1456
+ """
1457
+
1458
+ def __init__(self):
1459
+ r"""
1460
+ :param _LoadBalancerId: 网关负载均衡实例 ID。
1461
+ :type LoadBalancerId: str
1462
+ :param _LoadBalancerName: 网关负载均衡实例的名称。
1463
+ :type LoadBalancerName: str
1464
+ :param _VpcId: 网关负载均衡所属私有网络。
1465
+ 注意:此字段可能返回 null,表示取不到有效值。
1466
+ :type VpcId: str
1467
+ :param _SubnetId: 网关负载均衡所属子网。
1468
+ :type SubnetId: str
1469
+ :param _Vips: 网关负载均衡提供服务的虚拟IP。
1470
+ :type Vips: list of str
1471
+ :param _Status: 网关负载均衡实例状态。
1472
+ 0:创建中,1:正常运行,3:删除中。
1473
+ :type Status: int
1474
+ :param _TargetGroupId: 关联的目标组唯一ID。
1475
+ 注意:此字段可能返回 null,表示取不到有效值。
1476
+ :type TargetGroupId: str
1477
+ :param _DeleteProtect: 是否开启删除保护功能。
1478
+ 注意:此字段可能返回 null,表示取不到有效值。
1479
+ :type DeleteProtect: bool
1480
+ :param _Tags: 负载均衡实例的标签信息。
1481
+ 注意:此字段可能返回 null,表示取不到有效值。
1482
+ :type Tags: list of TagInfo
1483
+ :param _CreateTime: 创建时间。
1484
+ :type CreateTime: str
1485
+ :param _ChargeType: 网关负载均衡实例的计费类型,POSTPAID_BY_HOUR:按量计费
1486
+ 注意:此字段可能返回 null,表示取不到有效值。
1487
+ :type ChargeType: str
1488
+ :param _Isolation: 0:表示未被隔离,1:表示被隔离。
1489
+ 注意:此字段可能返回 null,表示取不到有效值。
1490
+ :type Isolation: int
1491
+ :param _IsolatedTime: 负载均衡实例被隔离的时间
1492
+ 注意:此字段可能返回 null,表示取不到有效值。
1493
+ :type IsolatedTime: str
1494
+ """
1495
+ self._LoadBalancerId = None
1496
+ self._LoadBalancerName = None
1497
+ self._VpcId = None
1498
+ self._SubnetId = None
1499
+ self._Vips = None
1500
+ self._Status = None
1501
+ self._TargetGroupId = None
1502
+ self._DeleteProtect = None
1503
+ self._Tags = None
1504
+ self._CreateTime = None
1505
+ self._ChargeType = None
1506
+ self._Isolation = None
1507
+ self._IsolatedTime = None
1508
+
1509
+ @property
1510
+ def LoadBalancerId(self):
1511
+ return self._LoadBalancerId
1512
+
1513
+ @LoadBalancerId.setter
1514
+ def LoadBalancerId(self, LoadBalancerId):
1515
+ self._LoadBalancerId = LoadBalancerId
1516
+
1517
+ @property
1518
+ def LoadBalancerName(self):
1519
+ return self._LoadBalancerName
1520
+
1521
+ @LoadBalancerName.setter
1522
+ def LoadBalancerName(self, LoadBalancerName):
1523
+ self._LoadBalancerName = LoadBalancerName
1524
+
1525
+ @property
1526
+ def VpcId(self):
1527
+ return self._VpcId
1528
+
1529
+ @VpcId.setter
1530
+ def VpcId(self, VpcId):
1531
+ self._VpcId = VpcId
1532
+
1533
+ @property
1534
+ def SubnetId(self):
1535
+ return self._SubnetId
1536
+
1537
+ @SubnetId.setter
1538
+ def SubnetId(self, SubnetId):
1539
+ self._SubnetId = SubnetId
1540
+
1541
+ @property
1542
+ def Vips(self):
1543
+ return self._Vips
1544
+
1545
+ @Vips.setter
1546
+ def Vips(self, Vips):
1547
+ self._Vips = Vips
1548
+
1549
+ @property
1550
+ def Status(self):
1551
+ return self._Status
1552
+
1553
+ @Status.setter
1554
+ def Status(self, Status):
1555
+ self._Status = Status
1556
+
1557
+ @property
1558
+ def TargetGroupId(self):
1559
+ return self._TargetGroupId
1560
+
1561
+ @TargetGroupId.setter
1562
+ def TargetGroupId(self, TargetGroupId):
1563
+ self._TargetGroupId = TargetGroupId
1564
+
1565
+ @property
1566
+ def DeleteProtect(self):
1567
+ return self._DeleteProtect
1568
+
1569
+ @DeleteProtect.setter
1570
+ def DeleteProtect(self, DeleteProtect):
1571
+ self._DeleteProtect = DeleteProtect
1572
+
1573
+ @property
1574
+ def Tags(self):
1575
+ return self._Tags
1576
+
1577
+ @Tags.setter
1578
+ def Tags(self, Tags):
1579
+ self._Tags = Tags
1580
+
1581
+ @property
1582
+ def CreateTime(self):
1583
+ return self._CreateTime
1584
+
1585
+ @CreateTime.setter
1586
+ def CreateTime(self, CreateTime):
1587
+ self._CreateTime = CreateTime
1588
+
1589
+ @property
1590
+ def ChargeType(self):
1591
+ return self._ChargeType
1592
+
1593
+ @ChargeType.setter
1594
+ def ChargeType(self, ChargeType):
1595
+ self._ChargeType = ChargeType
1596
+
1597
+ @property
1598
+ def Isolation(self):
1599
+ return self._Isolation
1600
+
1601
+ @Isolation.setter
1602
+ def Isolation(self, Isolation):
1603
+ self._Isolation = Isolation
1604
+
1605
+ @property
1606
+ def IsolatedTime(self):
1607
+ return self._IsolatedTime
1608
+
1609
+ @IsolatedTime.setter
1610
+ def IsolatedTime(self, IsolatedTime):
1611
+ self._IsolatedTime = IsolatedTime
1612
+
1613
+
1614
+ def _deserialize(self, params):
1615
+ self._LoadBalancerId = params.get("LoadBalancerId")
1616
+ self._LoadBalancerName = params.get("LoadBalancerName")
1617
+ self._VpcId = params.get("VpcId")
1618
+ self._SubnetId = params.get("SubnetId")
1619
+ self._Vips = params.get("Vips")
1620
+ self._Status = params.get("Status")
1621
+ self._TargetGroupId = params.get("TargetGroupId")
1622
+ self._DeleteProtect = params.get("DeleteProtect")
1623
+ if params.get("Tags") is not None:
1624
+ self._Tags = []
1625
+ for item in params.get("Tags"):
1626
+ obj = TagInfo()
1627
+ obj._deserialize(item)
1628
+ self._Tags.append(obj)
1629
+ self._CreateTime = params.get("CreateTime")
1630
+ self._ChargeType = params.get("ChargeType")
1631
+ self._Isolation = params.get("Isolation")
1632
+ self._IsolatedTime = params.get("IsolatedTime")
1633
+ memeber_set = set(params.keys())
1634
+ for name, value in vars(self).items():
1635
+ property_name = name[1:]
1636
+ if property_name in memeber_set:
1637
+ memeber_set.remove(property_name)
1638
+ if len(memeber_set) > 0:
1639
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
1640
+
1641
+
1642
+
1643
+ class InquirePriceCreateGatewayLoadBalancerRequest(AbstractModel):
1644
+ """InquirePriceCreateGatewayLoadBalancer请求参数结构体
1645
+
1646
+ """
1647
+
1648
+ def __init__(self):
1649
+ r"""
1650
+ :param _GoodsNum: 询价的网关负载均衡实例个数,默认为1
1651
+ :type GoodsNum: int
1652
+ """
1653
+ self._GoodsNum = None
1654
+
1655
+ @property
1656
+ def GoodsNum(self):
1657
+ return self._GoodsNum
1658
+
1659
+ @GoodsNum.setter
1660
+ def GoodsNum(self, GoodsNum):
1661
+ self._GoodsNum = GoodsNum
1662
+
1663
+
1664
+ def _deserialize(self, params):
1665
+ self._GoodsNum = params.get("GoodsNum")
1666
+ memeber_set = set(params.keys())
1667
+ for name, value in vars(self).items():
1668
+ property_name = name[1:]
1669
+ if property_name in memeber_set:
1670
+ memeber_set.remove(property_name)
1671
+ if len(memeber_set) > 0:
1672
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
1673
+
1674
+
1675
+
1676
+ class InquirePriceCreateGatewayLoadBalancerResponse(AbstractModel):
1677
+ """InquirePriceCreateGatewayLoadBalancer返回参数结构体
1678
+
1679
+ """
1680
+
1681
+ def __init__(self):
1682
+ r"""
1683
+ :param _Price: 该参数表示对应的价格。
1684
+ :type Price: :class:`tencentcloud.gwlb.v20240906.models.Price`
1685
+ :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
1686
+ :type RequestId: str
1687
+ """
1688
+ self._Price = None
1689
+ self._RequestId = None
1690
+
1691
+ @property
1692
+ def Price(self):
1693
+ return self._Price
1694
+
1695
+ @Price.setter
1696
+ def Price(self, Price):
1697
+ self._Price = Price
1698
+
1699
+ @property
1700
+ def RequestId(self):
1701
+ return self._RequestId
1702
+
1703
+ @RequestId.setter
1704
+ def RequestId(self, RequestId):
1705
+ self._RequestId = RequestId
1706
+
1707
+
1708
+ def _deserialize(self, params):
1709
+ if params.get("Price") is not None:
1710
+ self._Price = Price()
1711
+ self._Price._deserialize(params.get("Price"))
1712
+ self._RequestId = params.get("RequestId")
1713
+
1714
+
1715
+ class ItemPrice(AbstractModel):
1716
+ """描述了单项的价格信息
1717
+
1718
+ """
1719
+
1720
+ def __init__(self):
1721
+ r"""
1722
+ :param _UnitPrice: 后付费单价,单位:元。
1723
+ 注意:此字段可能返回 null,表示取不到有效值。
1724
+ :type UnitPrice: float
1725
+ :param _ChargeUnit: 后付费计价单元,可取值范围: HOUR:表示计价单元是按每小时来计算。当前涉及该计价单元的场景有:实例按小时后付费(POSTPAID_BY_HOUR)。
1726
+ 注意:此字段可能返回 null,表示取不到有效值。
1727
+ :type ChargeUnit: str
1728
+ :param _OriginalPrice: 预支费用的原价,单位:元。
1729
+ 注意:此字段可能返回 null,表示取不到有效值。
1730
+ :type OriginalPrice: float
1731
+ :param _DiscountPrice: 预支费用的折扣价,单位:元。
1732
+ 注意:此字段可能返回 null,表示取不到有效值。
1733
+ :type DiscountPrice: float
1734
+ :param _UnitPriceDiscount: 后付费的折扣单价,单位:元。
1735
+ 注意:此字段可能返回 null,表示取不到有效值。
1736
+ :type UnitPriceDiscount: float
1737
+ :param _Discount: 折扣,如20.0代表2折。
1738
+ 注意:此字段可能返回 null,表示取不到有效值。
1739
+ :type Discount: float
1740
+ """
1741
+ self._UnitPrice = None
1742
+ self._ChargeUnit = None
1743
+ self._OriginalPrice = None
1744
+ self._DiscountPrice = None
1745
+ self._UnitPriceDiscount = None
1746
+ self._Discount = None
1747
+
1748
+ @property
1749
+ def UnitPrice(self):
1750
+ return self._UnitPrice
1751
+
1752
+ @UnitPrice.setter
1753
+ def UnitPrice(self, UnitPrice):
1754
+ self._UnitPrice = UnitPrice
1755
+
1756
+ @property
1757
+ def ChargeUnit(self):
1758
+ return self._ChargeUnit
1759
+
1760
+ @ChargeUnit.setter
1761
+ def ChargeUnit(self, ChargeUnit):
1762
+ self._ChargeUnit = ChargeUnit
1763
+
1764
+ @property
1765
+ def OriginalPrice(self):
1766
+ return self._OriginalPrice
1767
+
1768
+ @OriginalPrice.setter
1769
+ def OriginalPrice(self, OriginalPrice):
1770
+ self._OriginalPrice = OriginalPrice
1771
+
1772
+ @property
1773
+ def DiscountPrice(self):
1774
+ return self._DiscountPrice
1775
+
1776
+ @DiscountPrice.setter
1777
+ def DiscountPrice(self, DiscountPrice):
1778
+ self._DiscountPrice = DiscountPrice
1779
+
1780
+ @property
1781
+ def UnitPriceDiscount(self):
1782
+ return self._UnitPriceDiscount
1783
+
1784
+ @UnitPriceDiscount.setter
1785
+ def UnitPriceDiscount(self, UnitPriceDiscount):
1786
+ self._UnitPriceDiscount = UnitPriceDiscount
1787
+
1788
+ @property
1789
+ def Discount(self):
1790
+ return self._Discount
1791
+
1792
+ @Discount.setter
1793
+ def Discount(self, Discount):
1794
+ self._Discount = Discount
1795
+
1796
+
1797
+ def _deserialize(self, params):
1798
+ self._UnitPrice = params.get("UnitPrice")
1799
+ self._ChargeUnit = params.get("ChargeUnit")
1800
+ self._OriginalPrice = params.get("OriginalPrice")
1801
+ self._DiscountPrice = params.get("DiscountPrice")
1802
+ self._UnitPriceDiscount = params.get("UnitPriceDiscount")
1803
+ self._Discount = params.get("Discount")
1804
+ memeber_set = set(params.keys())
1805
+ for name, value in vars(self).items():
1806
+ property_name = name[1:]
1807
+ if property_name in memeber_set:
1808
+ memeber_set.remove(property_name)
1809
+ if len(memeber_set) > 0:
1810
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
1811
+
1812
+
1813
+
1814
+ class ModifyGatewayLoadBalancerAttributeRequest(AbstractModel):
1815
+ """ModifyGatewayLoadBalancerAttribute请求参数结构体
1816
+
1817
+ """
1818
+
1819
+ def __init__(self):
1820
+ r"""
1821
+ :param _LoadBalancerId: 网关负载均衡的唯一ID。
1822
+ :type LoadBalancerId: str
1823
+ :param _LoadBalancerName: 网关负载均衡实例名称。可支持输入1-60个字符。
1824
+ :type LoadBalancerName: str
1825
+ """
1826
+ self._LoadBalancerId = None
1827
+ self._LoadBalancerName = None
1828
+
1829
+ @property
1830
+ def LoadBalancerId(self):
1831
+ return self._LoadBalancerId
1832
+
1833
+ @LoadBalancerId.setter
1834
+ def LoadBalancerId(self, LoadBalancerId):
1835
+ self._LoadBalancerId = LoadBalancerId
1836
+
1837
+ @property
1838
+ def LoadBalancerName(self):
1839
+ return self._LoadBalancerName
1840
+
1841
+ @LoadBalancerName.setter
1842
+ def LoadBalancerName(self, LoadBalancerName):
1843
+ self._LoadBalancerName = LoadBalancerName
1844
+
1845
+
1846
+ def _deserialize(self, params):
1847
+ self._LoadBalancerId = params.get("LoadBalancerId")
1848
+ self._LoadBalancerName = params.get("LoadBalancerName")
1849
+ memeber_set = set(params.keys())
1850
+ for name, value in vars(self).items():
1851
+ property_name = name[1:]
1852
+ if property_name in memeber_set:
1853
+ memeber_set.remove(property_name)
1854
+ if len(memeber_set) > 0:
1855
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
1856
+
1857
+
1858
+
1859
+ class ModifyGatewayLoadBalancerAttributeResponse(AbstractModel):
1860
+ """ModifyGatewayLoadBalancerAttribute返回参数结构体
1861
+
1862
+ """
1863
+
1864
+ def __init__(self):
1865
+ r"""
1866
+ :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
1867
+ :type RequestId: str
1868
+ """
1869
+ self._RequestId = None
1870
+
1871
+ @property
1872
+ def RequestId(self):
1873
+ return self._RequestId
1874
+
1875
+ @RequestId.setter
1876
+ def RequestId(self, RequestId):
1877
+ self._RequestId = RequestId
1878
+
1879
+
1880
+ def _deserialize(self, params):
1881
+ self._RequestId = params.get("RequestId")
1882
+
1883
+
1884
+ class ModifyTargetGroupAttributeRequest(AbstractModel):
1885
+ """ModifyTargetGroupAttribute请求参数结构体
1886
+
1887
+ """
1888
+
1889
+ def __init__(self):
1890
+ r"""
1891
+ :param _TargetGroupId: 目标组的ID。
1892
+ :type TargetGroupId: str
1893
+ :param _TargetGroupName: 目标组的新名称。
1894
+ :type TargetGroupName: str
1895
+ :param _HealthCheck: 健康检查详情。
1896
+ :type HealthCheck: :class:`tencentcloud.gwlb.v20240906.models.TargetGroupHealthCheck`
1897
+ :param _AllDeadToAlive: 是否支持全死全活。
1898
+ :type AllDeadToAlive: bool
1899
+ """
1900
+ self._TargetGroupId = None
1901
+ self._TargetGroupName = None
1902
+ self._HealthCheck = None
1903
+ self._AllDeadToAlive = None
1904
+
1905
+ @property
1906
+ def TargetGroupId(self):
1907
+ return self._TargetGroupId
1908
+
1909
+ @TargetGroupId.setter
1910
+ def TargetGroupId(self, TargetGroupId):
1911
+ self._TargetGroupId = TargetGroupId
1912
+
1913
+ @property
1914
+ def TargetGroupName(self):
1915
+ return self._TargetGroupName
1916
+
1917
+ @TargetGroupName.setter
1918
+ def TargetGroupName(self, TargetGroupName):
1919
+ self._TargetGroupName = TargetGroupName
1920
+
1921
+ @property
1922
+ def HealthCheck(self):
1923
+ return self._HealthCheck
1924
+
1925
+ @HealthCheck.setter
1926
+ def HealthCheck(self, HealthCheck):
1927
+ self._HealthCheck = HealthCheck
1928
+
1929
+ @property
1930
+ def AllDeadToAlive(self):
1931
+ return self._AllDeadToAlive
1932
+
1933
+ @AllDeadToAlive.setter
1934
+ def AllDeadToAlive(self, AllDeadToAlive):
1935
+ self._AllDeadToAlive = AllDeadToAlive
1936
+
1937
+
1938
+ def _deserialize(self, params):
1939
+ self._TargetGroupId = params.get("TargetGroupId")
1940
+ self._TargetGroupName = params.get("TargetGroupName")
1941
+ if params.get("HealthCheck") is not None:
1942
+ self._HealthCheck = TargetGroupHealthCheck()
1943
+ self._HealthCheck._deserialize(params.get("HealthCheck"))
1944
+ self._AllDeadToAlive = params.get("AllDeadToAlive")
1945
+ memeber_set = set(params.keys())
1946
+ for name, value in vars(self).items():
1947
+ property_name = name[1:]
1948
+ if property_name in memeber_set:
1949
+ memeber_set.remove(property_name)
1950
+ if len(memeber_set) > 0:
1951
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
1952
+
1953
+
1954
+
1955
+ class ModifyTargetGroupAttributeResponse(AbstractModel):
1956
+ """ModifyTargetGroupAttribute返回参数结构体
1957
+
1958
+ """
1959
+
1960
+ def __init__(self):
1961
+ r"""
1962
+ :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
1963
+ :type RequestId: str
1964
+ """
1965
+ self._RequestId = None
1966
+
1967
+ @property
1968
+ def RequestId(self):
1969
+ return self._RequestId
1970
+
1971
+ @RequestId.setter
1972
+ def RequestId(self, RequestId):
1973
+ self._RequestId = RequestId
1974
+
1975
+
1976
+ def _deserialize(self, params):
1977
+ self._RequestId = params.get("RequestId")
1978
+
1979
+
1980
+ class ModifyTargetGroupInstancesWeightRequest(AbstractModel):
1981
+ """ModifyTargetGroupInstancesWeight请求参数结构体
1982
+
1983
+ """
1984
+
1985
+ def __init__(self):
1986
+ r"""
1987
+ :param _TargetGroupId: 目标组ID。
1988
+ :type TargetGroupId: str
1989
+ :param _TargetGroupInstances: 实例绑定配置数组。
1990
+ :type TargetGroupInstances: list of TargetGroupInstance
1991
+ """
1992
+ self._TargetGroupId = None
1993
+ self._TargetGroupInstances = None
1994
+
1995
+ @property
1996
+ def TargetGroupId(self):
1997
+ return self._TargetGroupId
1998
+
1999
+ @TargetGroupId.setter
2000
+ def TargetGroupId(self, TargetGroupId):
2001
+ self._TargetGroupId = TargetGroupId
2002
+
2003
+ @property
2004
+ def TargetGroupInstances(self):
2005
+ return self._TargetGroupInstances
2006
+
2007
+ @TargetGroupInstances.setter
2008
+ def TargetGroupInstances(self, TargetGroupInstances):
2009
+ self._TargetGroupInstances = TargetGroupInstances
2010
+
2011
+
2012
+ def _deserialize(self, params):
2013
+ self._TargetGroupId = params.get("TargetGroupId")
2014
+ if params.get("TargetGroupInstances") is not None:
2015
+ self._TargetGroupInstances = []
2016
+ for item in params.get("TargetGroupInstances"):
2017
+ obj = TargetGroupInstance()
2018
+ obj._deserialize(item)
2019
+ self._TargetGroupInstances.append(obj)
2020
+ memeber_set = set(params.keys())
2021
+ for name, value in vars(self).items():
2022
+ property_name = name[1:]
2023
+ if property_name in memeber_set:
2024
+ memeber_set.remove(property_name)
2025
+ if len(memeber_set) > 0:
2026
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
2027
+
2028
+
2029
+
2030
+ class ModifyTargetGroupInstancesWeightResponse(AbstractModel):
2031
+ """ModifyTargetGroupInstancesWeight返回参数结构体
2032
+
2033
+ """
2034
+
2035
+ def __init__(self):
2036
+ r"""
2037
+ :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
2038
+ :type RequestId: str
2039
+ """
2040
+ self._RequestId = None
2041
+
2042
+ @property
2043
+ def RequestId(self):
2044
+ return self._RequestId
2045
+
2046
+ @RequestId.setter
2047
+ def RequestId(self, RequestId):
2048
+ self._RequestId = RequestId
2049
+
2050
+
2051
+ def _deserialize(self, params):
2052
+ self._RequestId = params.get("RequestId")
2053
+
2054
+
2055
+ class Price(AbstractModel):
2056
+ """表示网关负载均衡的价格
2057
+
2058
+ """
2059
+
2060
+ def __init__(self):
2061
+ r"""
2062
+ :param _InstancePrice: 描述了实例价格。
2063
+ 注意:此字段可能返回 null,表示取不到有效值。
2064
+ :type InstancePrice: :class:`tencentcloud.gwlb.v20240906.models.ItemPrice`
2065
+ :param _LcuPrice: 描述了GLCU的价格。
2066
+ 注意:此字段可能返回 null,表示取不到有效值。
2067
+ :type LcuPrice: :class:`tencentcloud.gwlb.v20240906.models.ItemPrice`
2068
+ """
2069
+ self._InstancePrice = None
2070
+ self._LcuPrice = None
2071
+
2072
+ @property
2073
+ def InstancePrice(self):
2074
+ return self._InstancePrice
2075
+
2076
+ @InstancePrice.setter
2077
+ def InstancePrice(self, InstancePrice):
2078
+ self._InstancePrice = InstancePrice
2079
+
2080
+ @property
2081
+ def LcuPrice(self):
2082
+ return self._LcuPrice
2083
+
2084
+ @LcuPrice.setter
2085
+ def LcuPrice(self, LcuPrice):
2086
+ self._LcuPrice = LcuPrice
2087
+
2088
+
2089
+ def _deserialize(self, params):
2090
+ if params.get("InstancePrice") is not None:
2091
+ self._InstancePrice = ItemPrice()
2092
+ self._InstancePrice._deserialize(params.get("InstancePrice"))
2093
+ if params.get("LcuPrice") is not None:
2094
+ self._LcuPrice = ItemPrice()
2095
+ self._LcuPrice._deserialize(params.get("LcuPrice"))
2096
+ memeber_set = set(params.keys())
2097
+ for name, value in vars(self).items():
2098
+ property_name = name[1:]
2099
+ if property_name in memeber_set:
2100
+ memeber_set.remove(property_name)
2101
+ if len(memeber_set) > 0:
2102
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
2103
+
2104
+
2105
+
2106
+ class RegisterTargetGroupInstancesRequest(AbstractModel):
2107
+ """RegisterTargetGroupInstances请求参数结构体
2108
+
2109
+ """
2110
+
2111
+ def __init__(self):
2112
+ r"""
2113
+ :param _TargetGroupId: 目标组ID
2114
+ :type TargetGroupId: str
2115
+ :param _TargetGroupInstances: 服务器实例数组
2116
+ :type TargetGroupInstances: list of TargetGroupInstance
2117
+ """
2118
+ self._TargetGroupId = None
2119
+ self._TargetGroupInstances = None
2120
+
2121
+ @property
2122
+ def TargetGroupId(self):
2123
+ return self._TargetGroupId
2124
+
2125
+ @TargetGroupId.setter
2126
+ def TargetGroupId(self, TargetGroupId):
2127
+ self._TargetGroupId = TargetGroupId
2128
+
2129
+ @property
2130
+ def TargetGroupInstances(self):
2131
+ return self._TargetGroupInstances
2132
+
2133
+ @TargetGroupInstances.setter
2134
+ def TargetGroupInstances(self, TargetGroupInstances):
2135
+ self._TargetGroupInstances = TargetGroupInstances
2136
+
2137
+
2138
+ def _deserialize(self, params):
2139
+ self._TargetGroupId = params.get("TargetGroupId")
2140
+ if params.get("TargetGroupInstances") is not None:
2141
+ self._TargetGroupInstances = []
2142
+ for item in params.get("TargetGroupInstances"):
2143
+ obj = TargetGroupInstance()
2144
+ obj._deserialize(item)
2145
+ self._TargetGroupInstances.append(obj)
2146
+ memeber_set = set(params.keys())
2147
+ for name, value in vars(self).items():
2148
+ property_name = name[1:]
2149
+ if property_name in memeber_set:
2150
+ memeber_set.remove(property_name)
2151
+ if len(memeber_set) > 0:
2152
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
2153
+
2154
+
2155
+
2156
+ class RegisterTargetGroupInstancesResponse(AbstractModel):
2157
+ """RegisterTargetGroupInstances返回参数结构体
2158
+
2159
+ """
2160
+
2161
+ def __init__(self):
2162
+ r"""
2163
+ :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
2164
+ :type RequestId: str
2165
+ """
2166
+ self._RequestId = None
2167
+
2168
+ @property
2169
+ def RequestId(self):
2170
+ return self._RequestId
2171
+
2172
+ @RequestId.setter
2173
+ def RequestId(self, RequestId):
2174
+ self._RequestId = RequestId
2175
+
2176
+
2177
+ def _deserialize(self, params):
2178
+ self._RequestId = params.get("RequestId")
2179
+
2180
+
2181
+ class TagInfo(AbstractModel):
2182
+ """网关负载均衡的标签信息
2183
+
2184
+ """
2185
+
2186
+ def __init__(self):
2187
+ r"""
2188
+ :param _TagKey: 标签的键
2189
+ :type TagKey: str
2190
+ :param _TagValue: 标签的值
2191
+ :type TagValue: str
2192
+ """
2193
+ self._TagKey = None
2194
+ self._TagValue = None
2195
+
2196
+ @property
2197
+ def TagKey(self):
2198
+ return self._TagKey
2199
+
2200
+ @TagKey.setter
2201
+ def TagKey(self, TagKey):
2202
+ self._TagKey = TagKey
2203
+
2204
+ @property
2205
+ def TagValue(self):
2206
+ return self._TagValue
2207
+
2208
+ @TagValue.setter
2209
+ def TagValue(self, TagValue):
2210
+ self._TagValue = TagValue
2211
+
2212
+
2213
+ def _deserialize(self, params):
2214
+ self._TagKey = params.get("TagKey")
2215
+ self._TagValue = params.get("TagValue")
2216
+ memeber_set = set(params.keys())
2217
+ for name, value in vars(self).items():
2218
+ property_name = name[1:]
2219
+ if property_name in memeber_set:
2220
+ memeber_set.remove(property_name)
2221
+ if len(memeber_set) > 0:
2222
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
2223
+
2224
+
2225
+
2226
+ class TargetGroupAssociation(AbstractModel):
2227
+ """规则与目标组的关联关系。
2228
+
2229
+ """
2230
+
2231
+ def __init__(self):
2232
+ r"""
2233
+ :param _LoadBalancerId: 网关负载均衡实例ID。
2234
+ :type LoadBalancerId: str
2235
+ :param _TargetGroupId: 目标组ID。
2236
+ :type TargetGroupId: str
2237
+ """
2238
+ self._LoadBalancerId = None
2239
+ self._TargetGroupId = None
2240
+
2241
+ @property
2242
+ def LoadBalancerId(self):
2243
+ return self._LoadBalancerId
2244
+
2245
+ @LoadBalancerId.setter
2246
+ def LoadBalancerId(self, LoadBalancerId):
2247
+ self._LoadBalancerId = LoadBalancerId
2248
+
2249
+ @property
2250
+ def TargetGroupId(self):
2251
+ return self._TargetGroupId
2252
+
2253
+ @TargetGroupId.setter
2254
+ def TargetGroupId(self, TargetGroupId):
2255
+ self._TargetGroupId = TargetGroupId
2256
+
2257
+
2258
+ def _deserialize(self, params):
2259
+ self._LoadBalancerId = params.get("LoadBalancerId")
2260
+ self._TargetGroupId = params.get("TargetGroupId")
2261
+ memeber_set = set(params.keys())
2262
+ for name, value in vars(self).items():
2263
+ property_name = name[1:]
2264
+ if property_name in memeber_set:
2265
+ memeber_set.remove(property_name)
2266
+ if len(memeber_set) > 0:
2267
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
2268
+
2269
+
2270
+
2271
+ class TargetGroupBackend(AbstractModel):
2272
+ """目标组绑定的后端服务器
2273
+
2274
+ """
2275
+
2276
+ def __init__(self):
2277
+ r"""
2278
+ :param _TargetGroupId: 目标组ID
2279
+ :type TargetGroupId: str
2280
+ :param _Type: 后端服务的类型,可取:CVM、ENI(即将支持)
2281
+ :type Type: str
2282
+ :param _InstanceId: 后端服务的唯一 ID
2283
+ :type InstanceId: str
2284
+ :param _Port: 后端服务的监听端口
2285
+ :type Port: int
2286
+ :param _Weight: 后端服务的转发权重,取值范围:[0, 100],默认为 10。
2287
+ :type Weight: int
2288
+ :param _PublicIpAddresses: 后端服务的外网 IP
2289
+ 注意:此字段可能返回 null,表示取不到有效值。
2290
+ :type PublicIpAddresses: list of str
2291
+ :param _PrivateIpAddresses: 后端服务的内网 IP
2292
+ 注意:此字段可能返回 null,表示取不到有效值。
2293
+ :type PrivateIpAddresses: list of str
2294
+ :param _InstanceName: 后端服务的实例名称
2295
+ 注意:此字段可能返回 null,表示取不到有效值。
2296
+ :type InstanceName: str
2297
+ :param _RegisteredTime: 后端服务被绑定的时间
2298
+ 注意:此字段可能返回 null,表示取不到有效值。
2299
+ :type RegisteredTime: str
2300
+ :param _EniId: 弹性网卡唯一ID
2301
+ 注意:此字段可能返回 null,表示取不到有效值。
2302
+ :type EniId: str
2303
+ :param _ZoneId: 后端服务的可用区ID
2304
+ 注意:此字段可能返回 null,表示取不到有效值。
2305
+ :type ZoneId: int
2306
+ """
2307
+ self._TargetGroupId = None
2308
+ self._Type = None
2309
+ self._InstanceId = None
2310
+ self._Port = None
2311
+ self._Weight = None
2312
+ self._PublicIpAddresses = None
2313
+ self._PrivateIpAddresses = None
2314
+ self._InstanceName = None
2315
+ self._RegisteredTime = None
2316
+ self._EniId = None
2317
+ self._ZoneId = None
2318
+
2319
+ @property
2320
+ def TargetGroupId(self):
2321
+ return self._TargetGroupId
2322
+
2323
+ @TargetGroupId.setter
2324
+ def TargetGroupId(self, TargetGroupId):
2325
+ self._TargetGroupId = TargetGroupId
2326
+
2327
+ @property
2328
+ def Type(self):
2329
+ return self._Type
2330
+
2331
+ @Type.setter
2332
+ def Type(self, Type):
2333
+ self._Type = Type
2334
+
2335
+ @property
2336
+ def InstanceId(self):
2337
+ return self._InstanceId
2338
+
2339
+ @InstanceId.setter
2340
+ def InstanceId(self, InstanceId):
2341
+ self._InstanceId = InstanceId
2342
+
2343
+ @property
2344
+ def Port(self):
2345
+ return self._Port
2346
+
2347
+ @Port.setter
2348
+ def Port(self, Port):
2349
+ self._Port = Port
2350
+
2351
+ @property
2352
+ def Weight(self):
2353
+ return self._Weight
2354
+
2355
+ @Weight.setter
2356
+ def Weight(self, Weight):
2357
+ self._Weight = Weight
2358
+
2359
+ @property
2360
+ def PublicIpAddresses(self):
2361
+ return self._PublicIpAddresses
2362
+
2363
+ @PublicIpAddresses.setter
2364
+ def PublicIpAddresses(self, PublicIpAddresses):
2365
+ self._PublicIpAddresses = PublicIpAddresses
2366
+
2367
+ @property
2368
+ def PrivateIpAddresses(self):
2369
+ return self._PrivateIpAddresses
2370
+
2371
+ @PrivateIpAddresses.setter
2372
+ def PrivateIpAddresses(self, PrivateIpAddresses):
2373
+ self._PrivateIpAddresses = PrivateIpAddresses
2374
+
2375
+ @property
2376
+ def InstanceName(self):
2377
+ return self._InstanceName
2378
+
2379
+ @InstanceName.setter
2380
+ def InstanceName(self, InstanceName):
2381
+ self._InstanceName = InstanceName
2382
+
2383
+ @property
2384
+ def RegisteredTime(self):
2385
+ return self._RegisteredTime
2386
+
2387
+ @RegisteredTime.setter
2388
+ def RegisteredTime(self, RegisteredTime):
2389
+ self._RegisteredTime = RegisteredTime
2390
+
2391
+ @property
2392
+ def EniId(self):
2393
+ return self._EniId
2394
+
2395
+ @EniId.setter
2396
+ def EniId(self, EniId):
2397
+ self._EniId = EniId
2398
+
2399
+ @property
2400
+ def ZoneId(self):
2401
+ return self._ZoneId
2402
+
2403
+ @ZoneId.setter
2404
+ def ZoneId(self, ZoneId):
2405
+ self._ZoneId = ZoneId
2406
+
2407
+
2408
+ def _deserialize(self, params):
2409
+ self._TargetGroupId = params.get("TargetGroupId")
2410
+ self._Type = params.get("Type")
2411
+ self._InstanceId = params.get("InstanceId")
2412
+ self._Port = params.get("Port")
2413
+ self._Weight = params.get("Weight")
2414
+ self._PublicIpAddresses = params.get("PublicIpAddresses")
2415
+ self._PrivateIpAddresses = params.get("PrivateIpAddresses")
2416
+ self._InstanceName = params.get("InstanceName")
2417
+ self._RegisteredTime = params.get("RegisteredTime")
2418
+ self._EniId = params.get("EniId")
2419
+ self._ZoneId = params.get("ZoneId")
2420
+ memeber_set = set(params.keys())
2421
+ for name, value in vars(self).items():
2422
+ property_name = name[1:]
2423
+ if property_name in memeber_set:
2424
+ memeber_set.remove(property_name)
2425
+ if len(memeber_set) > 0:
2426
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
2427
+
2428
+
2429
+
2430
+ class TargetGroupHealthCheck(AbstractModel):
2431
+ """目标组健康检查详情
2432
+
2433
+ """
2434
+
2435
+ def __init__(self):
2436
+ r"""
2437
+ :param _HealthSwitch: 是否开启健康检查。
2438
+ :type HealthSwitch: bool
2439
+ :param _Protocol: 健康检查使用的协议。支持ping和tcp,默认为ping。
2440
+
2441
+ - PING: icmp
2442
+ - TCP: tcp
2443
+ :type Protocol: str
2444
+ :param _Port: 健康检查端口,探测协议未tcp时,该参数必填。
2445
+
2446
+ :type Port: int
2447
+ :param _Timeout: 健康检查超时时间。 默认为2秒。 可配置范围:2 - 30秒。
2448
+ :type Timeout: int
2449
+ :param _IntervalTime: 检测间隔时间。 默认为5秒。 可配置范围:2 - 300秒。
2450
+ :type IntervalTime: int
2451
+ :param _HealthNum: 检测健康阈值。 默认为3秒。 可配置范围:2 - 10次。
2452
+ :type HealthNum: int
2453
+ :param _UnHealthNum: 检测不健康阈值。 默认为3秒。 可配置范围:2 - 10次。
2454
+ :type UnHealthNum: int
2455
+ """
2456
+ self._HealthSwitch = None
2457
+ self._Protocol = None
2458
+ self._Port = None
2459
+ self._Timeout = None
2460
+ self._IntervalTime = None
2461
+ self._HealthNum = None
2462
+ self._UnHealthNum = None
2463
+
2464
+ @property
2465
+ def HealthSwitch(self):
2466
+ return self._HealthSwitch
2467
+
2468
+ @HealthSwitch.setter
2469
+ def HealthSwitch(self, HealthSwitch):
2470
+ self._HealthSwitch = HealthSwitch
2471
+
2472
+ @property
2473
+ def Protocol(self):
2474
+ return self._Protocol
2475
+
2476
+ @Protocol.setter
2477
+ def Protocol(self, Protocol):
2478
+ self._Protocol = Protocol
2479
+
2480
+ @property
2481
+ def Port(self):
2482
+ return self._Port
2483
+
2484
+ @Port.setter
2485
+ def Port(self, Port):
2486
+ self._Port = Port
2487
+
2488
+ @property
2489
+ def Timeout(self):
2490
+ return self._Timeout
2491
+
2492
+ @Timeout.setter
2493
+ def Timeout(self, Timeout):
2494
+ self._Timeout = Timeout
2495
+
2496
+ @property
2497
+ def IntervalTime(self):
2498
+ return self._IntervalTime
2499
+
2500
+ @IntervalTime.setter
2501
+ def IntervalTime(self, IntervalTime):
2502
+ self._IntervalTime = IntervalTime
2503
+
2504
+ @property
2505
+ def HealthNum(self):
2506
+ return self._HealthNum
2507
+
2508
+ @HealthNum.setter
2509
+ def HealthNum(self, HealthNum):
2510
+ self._HealthNum = HealthNum
2511
+
2512
+ @property
2513
+ def UnHealthNum(self):
2514
+ return self._UnHealthNum
2515
+
2516
+ @UnHealthNum.setter
2517
+ def UnHealthNum(self, UnHealthNum):
2518
+ self._UnHealthNum = UnHealthNum
2519
+
2520
+
2521
+ def _deserialize(self, params):
2522
+ self._HealthSwitch = params.get("HealthSwitch")
2523
+ self._Protocol = params.get("Protocol")
2524
+ self._Port = params.get("Port")
2525
+ self._Timeout = params.get("Timeout")
2526
+ self._IntervalTime = params.get("IntervalTime")
2527
+ self._HealthNum = params.get("HealthNum")
2528
+ self._UnHealthNum = params.get("UnHealthNum")
2529
+ memeber_set = set(params.keys())
2530
+ for name, value in vars(self).items():
2531
+ property_name = name[1:]
2532
+ if property_name in memeber_set:
2533
+ memeber_set.remove(property_name)
2534
+ if len(memeber_set) > 0:
2535
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
2536
+
2537
+
2538
+
2539
+ class TargetGroupInfo(AbstractModel):
2540
+ """目标组信息
2541
+
2542
+ """
2543
+
2544
+ def __init__(self):
2545
+ r"""
2546
+ :param _TargetGroupId: 目标组ID
2547
+ :type TargetGroupId: str
2548
+ :param _VpcId: 目标组的vpcid
2549
+ :type VpcId: str
2550
+ :param _TargetGroupName: 目标组的名字
2551
+ :type TargetGroupName: str
2552
+ :param _Port: 目标组的默认端口
2553
+ 注意:此字段可能返回 null,表示取不到有效值。
2554
+ :type Port: int
2555
+ :param _CreatedTime: 目标组的创建时间
2556
+ :type CreatedTime: str
2557
+ :param _UpdatedTime: 目标组的修改时间
2558
+ :type UpdatedTime: str
2559
+ :param _AssociatedRule: 关联到的规则数组。在DescribeTargetGroupList接口调用时无法获取到该参数。
2560
+ 注意:此字段可能返回 null,表示取不到有效值。
2561
+ :type AssociatedRule: list of AssociationItem
2562
+ :param _Protocol: 后端协议类型。
2563
+ 注意:此字段可能返回 null,表示取不到有效值。
2564
+ :type Protocol: str
2565
+ :param _ScheduleAlgorithm: 调度算法。
2566
+ ip_hash_3:弹性哈希
2567
+ 注意:此字段可能返回 null,表示取不到有效值。
2568
+ :type ScheduleAlgorithm: str
2569
+ :param _HealthCheck: 健康检查详情。
2570
+ 注意:此字段可能返回 null,表示取不到有效值。
2571
+ :type HealthCheck: :class:`tencentcloud.gwlb.v20240906.models.TargetGroupHealthCheck`
2572
+ :param _AllDeadToAlive: 是否支持全死全活。
2573
+ 注意:此字段可能返回 null,表示取不到有效值。
2574
+ :type AllDeadToAlive: bool
2575
+ :param _AssociatedRuleCount: 目标组已关联的规则数。
2576
+ 注意:此字段可能返回 null,表示取不到有效值。
2577
+ :type AssociatedRuleCount: int
2578
+ :param _RegisteredInstancesCount: 目标组内的实例数量。
2579
+ 注意:此字段可能返回 null,表示取不到有效值。
2580
+ :type RegisteredInstancesCount: int
2581
+ """
2582
+ self._TargetGroupId = None
2583
+ self._VpcId = None
2584
+ self._TargetGroupName = None
2585
+ self._Port = None
2586
+ self._CreatedTime = None
2587
+ self._UpdatedTime = None
2588
+ self._AssociatedRule = None
2589
+ self._Protocol = None
2590
+ self._ScheduleAlgorithm = None
2591
+ self._HealthCheck = None
2592
+ self._AllDeadToAlive = None
2593
+ self._AssociatedRuleCount = None
2594
+ self._RegisteredInstancesCount = None
2595
+
2596
+ @property
2597
+ def TargetGroupId(self):
2598
+ return self._TargetGroupId
2599
+
2600
+ @TargetGroupId.setter
2601
+ def TargetGroupId(self, TargetGroupId):
2602
+ self._TargetGroupId = TargetGroupId
2603
+
2604
+ @property
2605
+ def VpcId(self):
2606
+ return self._VpcId
2607
+
2608
+ @VpcId.setter
2609
+ def VpcId(self, VpcId):
2610
+ self._VpcId = VpcId
2611
+
2612
+ @property
2613
+ def TargetGroupName(self):
2614
+ return self._TargetGroupName
2615
+
2616
+ @TargetGroupName.setter
2617
+ def TargetGroupName(self, TargetGroupName):
2618
+ self._TargetGroupName = TargetGroupName
2619
+
2620
+ @property
2621
+ def Port(self):
2622
+ return self._Port
2623
+
2624
+ @Port.setter
2625
+ def Port(self, Port):
2626
+ self._Port = Port
2627
+
2628
+ @property
2629
+ def CreatedTime(self):
2630
+ return self._CreatedTime
2631
+
2632
+ @CreatedTime.setter
2633
+ def CreatedTime(self, CreatedTime):
2634
+ self._CreatedTime = CreatedTime
2635
+
2636
+ @property
2637
+ def UpdatedTime(self):
2638
+ return self._UpdatedTime
2639
+
2640
+ @UpdatedTime.setter
2641
+ def UpdatedTime(self, UpdatedTime):
2642
+ self._UpdatedTime = UpdatedTime
2643
+
2644
+ @property
2645
+ def AssociatedRule(self):
2646
+ return self._AssociatedRule
2647
+
2648
+ @AssociatedRule.setter
2649
+ def AssociatedRule(self, AssociatedRule):
2650
+ self._AssociatedRule = AssociatedRule
2651
+
2652
+ @property
2653
+ def Protocol(self):
2654
+ return self._Protocol
2655
+
2656
+ @Protocol.setter
2657
+ def Protocol(self, Protocol):
2658
+ self._Protocol = Protocol
2659
+
2660
+ @property
2661
+ def ScheduleAlgorithm(self):
2662
+ return self._ScheduleAlgorithm
2663
+
2664
+ @ScheduleAlgorithm.setter
2665
+ def ScheduleAlgorithm(self, ScheduleAlgorithm):
2666
+ self._ScheduleAlgorithm = ScheduleAlgorithm
2667
+
2668
+ @property
2669
+ def HealthCheck(self):
2670
+ return self._HealthCheck
2671
+
2672
+ @HealthCheck.setter
2673
+ def HealthCheck(self, HealthCheck):
2674
+ self._HealthCheck = HealthCheck
2675
+
2676
+ @property
2677
+ def AllDeadToAlive(self):
2678
+ return self._AllDeadToAlive
2679
+
2680
+ @AllDeadToAlive.setter
2681
+ def AllDeadToAlive(self, AllDeadToAlive):
2682
+ self._AllDeadToAlive = AllDeadToAlive
2683
+
2684
+ @property
2685
+ def AssociatedRuleCount(self):
2686
+ return self._AssociatedRuleCount
2687
+
2688
+ @AssociatedRuleCount.setter
2689
+ def AssociatedRuleCount(self, AssociatedRuleCount):
2690
+ self._AssociatedRuleCount = AssociatedRuleCount
2691
+
2692
+ @property
2693
+ def RegisteredInstancesCount(self):
2694
+ return self._RegisteredInstancesCount
2695
+
2696
+ @RegisteredInstancesCount.setter
2697
+ def RegisteredInstancesCount(self, RegisteredInstancesCount):
2698
+ self._RegisteredInstancesCount = RegisteredInstancesCount
2699
+
2700
+
2701
+ def _deserialize(self, params):
2702
+ self._TargetGroupId = params.get("TargetGroupId")
2703
+ self._VpcId = params.get("VpcId")
2704
+ self._TargetGroupName = params.get("TargetGroupName")
2705
+ self._Port = params.get("Port")
2706
+ self._CreatedTime = params.get("CreatedTime")
2707
+ self._UpdatedTime = params.get("UpdatedTime")
2708
+ if params.get("AssociatedRule") is not None:
2709
+ self._AssociatedRule = []
2710
+ for item in params.get("AssociatedRule"):
2711
+ obj = AssociationItem()
2712
+ obj._deserialize(item)
2713
+ self._AssociatedRule.append(obj)
2714
+ self._Protocol = params.get("Protocol")
2715
+ self._ScheduleAlgorithm = params.get("ScheduleAlgorithm")
2716
+ if params.get("HealthCheck") is not None:
2717
+ self._HealthCheck = TargetGroupHealthCheck()
2718
+ self._HealthCheck._deserialize(params.get("HealthCheck"))
2719
+ self._AllDeadToAlive = params.get("AllDeadToAlive")
2720
+ self._AssociatedRuleCount = params.get("AssociatedRuleCount")
2721
+ self._RegisteredInstancesCount = params.get("RegisteredInstancesCount")
2722
+ memeber_set = set(params.keys())
2723
+ for name, value in vars(self).items():
2724
+ property_name = name[1:]
2725
+ if property_name in memeber_set:
2726
+ memeber_set.remove(property_name)
2727
+ if len(memeber_set) > 0:
2728
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
2729
+
2730
+
2731
+
2732
+ class TargetGroupInstance(AbstractModel):
2733
+ """目标组实例
2734
+
2735
+ """
2736
+
2737
+ def __init__(self):
2738
+ r"""
2739
+ :param _BindIP: 目标组实例的内网IP。
2740
+ :type BindIP: str
2741
+ :param _Port: 目标组实例的端口,只支持6081。
2742
+ :type Port: int
2743
+ :param _Weight: 目标组实例的权重,只支持0或16,非0统一按16处理。
2744
+ :type Weight: int
2745
+ """
2746
+ self._BindIP = None
2747
+ self._Port = None
2748
+ self._Weight = None
2749
+
2750
+ @property
2751
+ def BindIP(self):
2752
+ return self._BindIP
2753
+
2754
+ @BindIP.setter
2755
+ def BindIP(self, BindIP):
2756
+ self._BindIP = BindIP
2757
+
2758
+ @property
2759
+ def Port(self):
2760
+ return self._Port
2761
+
2762
+ @Port.setter
2763
+ def Port(self, Port):
2764
+ self._Port = Port
2765
+
2766
+ @property
2767
+ def Weight(self):
2768
+ return self._Weight
2769
+
2770
+ @Weight.setter
2771
+ def Weight(self, Weight):
2772
+ self._Weight = Weight
2773
+
2774
+
2775
+ def _deserialize(self, params):
2776
+ self._BindIP = params.get("BindIP")
2777
+ self._Port = params.get("Port")
2778
+ self._Weight = params.get("Weight")
2779
+ memeber_set = set(params.keys())
2780
+ for name, value in vars(self).items():
2781
+ property_name = name[1:]
2782
+ if property_name in memeber_set:
2783
+ memeber_set.remove(property_name)
2784
+ if len(memeber_set) > 0:
2785
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
2786
+
2787
+
2788
+
2789
+ class TargetGroupInstanceStatus(AbstractModel):
2790
+ """用于目标组后端rs健康检查状态。
2791
+
2792
+ """
2793
+
2794
+ def __init__(self):
2795
+ r"""
2796
+ :param _InstanceIp: 后端rs的IP
2797
+ :type InstanceIp: str
2798
+ :param _Status: 健康检查状态,参数值及含义如下:
2799
+ ● on:表示探测中。
2800
+ ● off:表示健康检查关闭。
2801
+ ● health:表示健康。
2802
+ ● unhealth:表示异常。
2803
+ :type Status: str
2804
+ """
2805
+ self._InstanceIp = None
2806
+ self._Status = None
2807
+
2808
+ @property
2809
+ def InstanceIp(self):
2810
+ return self._InstanceIp
2811
+
2812
+ @InstanceIp.setter
2813
+ def InstanceIp(self, InstanceIp):
2814
+ self._InstanceIp = InstanceIp
2815
+
2816
+ @property
2817
+ def Status(self):
2818
+ return self._Status
2819
+
2820
+ @Status.setter
2821
+ def Status(self, Status):
2822
+ self._Status = Status
2823
+
2824
+
2825
+ def _deserialize(self, params):
2826
+ self._InstanceIp = params.get("InstanceIp")
2827
+ self._Status = params.get("Status")
2828
+ memeber_set = set(params.keys())
2829
+ for name, value in vars(self).items():
2830
+ property_name = name[1:]
2831
+ if property_name in memeber_set:
2832
+ memeber_set.remove(property_name)
2833
+ if len(memeber_set) > 0:
2834
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
2835
+