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

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