tencentcloud-sdk-python-intl-en 3.0.1078__py2.py3-none-any.whl → 3.0.1080__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.
Potentially problematic release.
This version of tencentcloud-sdk-python-intl-en might be problematic. Click here for more details.
- tencentcloud/__init__.py +1 -1
- tencentcloud/apigateway/v20180808/models.py +6 -6
- tencentcloud/ciam/v20220331/models.py +39 -7
- tencentcloud/gwlb/__init__.py +0 -0
- tencentcloud/gwlb/v20240906/__init__.py +0 -0
- tencentcloud/gwlb/v20240906/errorcodes.py +48 -0
- tencentcloud/gwlb/v20240906/gwlb_client.py +441 -0
- tencentcloud/gwlb/v20240906/models.py +3288 -0
- tencentcloud/intlpartnersmgt/v20220928/intlpartnersmgt_client.py +4 -1
- tencentcloud/intlpartnersmgt/v20220928/models.py +22 -8
- tencentcloud/mdp/v20200527/mdp_client.py +644 -0
- tencentcloud/mdp/v20200527/models.py +7008 -1158
- tencentcloud/ocr/v20181119/models.py +2 -2
- tencentcloud/teo/v20220901/errorcodes.py +108 -9
- tencentcloud/teo/v20220901/models.py +2047 -313
- tencentcloud/teo/v20220901/teo_client.py +120 -5
- tencentcloud/tke/v20180525/errorcodes.py +76 -1
- tencentcloud/tke/v20180525/models.py +4268 -875
- tencentcloud/tke/v20180525/tke_client.py +355 -10
- tencentcloud/tmt/v20180321/models.py +62 -36
- tencentcloud/vpc/v20170312/models.py +17 -2
- {tencentcloud_sdk_python_intl_en-3.0.1078.dist-info → tencentcloud_sdk_python_intl_en-3.0.1080.dist-info}/METADATA +1 -1
- {tencentcloud_sdk_python_intl_en-3.0.1078.dist-info → tencentcloud_sdk_python_intl_en-3.0.1080.dist-info}/RECORD +25 -20
- {tencentcloud_sdk_python_intl_en-3.0.1078.dist-info → tencentcloud_sdk_python_intl_en-3.0.1080.dist-info}/WHEEL +0 -0
- {tencentcloud_sdk_python_intl_en-3.0.1078.dist-info → tencentcloud_sdk_python_intl_en-3.0.1080.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,3288 @@
|
|
|
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 request structure.
|
|
23
|
+
|
|
24
|
+
"""
|
|
25
|
+
|
|
26
|
+
def __init__(self):
|
|
27
|
+
r"""
|
|
28
|
+
:param _Associations: Binding relationship array. A single request supports up to 20 items.
|
|
29
|
+
:type Associations: list of TargetGroupAssociation
|
|
30
|
+
"""
|
|
31
|
+
self._Associations = None
|
|
32
|
+
|
|
33
|
+
@property
|
|
34
|
+
def Associations(self):
|
|
35
|
+
"""Binding relationship array. A single request supports up to 20 items.
|
|
36
|
+
:rtype: list of TargetGroupAssociation
|
|
37
|
+
"""
|
|
38
|
+
return self._Associations
|
|
39
|
+
|
|
40
|
+
@Associations.setter
|
|
41
|
+
def Associations(self, Associations):
|
|
42
|
+
self._Associations = Associations
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
def _deserialize(self, params):
|
|
46
|
+
if params.get("Associations") is not None:
|
|
47
|
+
self._Associations = []
|
|
48
|
+
for item in params.get("Associations"):
|
|
49
|
+
obj = TargetGroupAssociation()
|
|
50
|
+
obj._deserialize(item)
|
|
51
|
+
self._Associations.append(obj)
|
|
52
|
+
memeber_set = set(params.keys())
|
|
53
|
+
for name, value in vars(self).items():
|
|
54
|
+
property_name = name[1:]
|
|
55
|
+
if property_name in memeber_set:
|
|
56
|
+
memeber_set.remove(property_name)
|
|
57
|
+
if len(memeber_set) > 0:
|
|
58
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
class AssociateTargetGroupsResponse(AbstractModel):
|
|
63
|
+
"""AssociateTargetGroups response structure.
|
|
64
|
+
|
|
65
|
+
"""
|
|
66
|
+
|
|
67
|
+
def __init__(self):
|
|
68
|
+
r"""
|
|
69
|
+
:param _RequestId: The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
|
|
70
|
+
:type RequestId: str
|
|
71
|
+
"""
|
|
72
|
+
self._RequestId = None
|
|
73
|
+
|
|
74
|
+
@property
|
|
75
|
+
def RequestId(self):
|
|
76
|
+
"""The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
|
|
77
|
+
:rtype: str
|
|
78
|
+
"""
|
|
79
|
+
return self._RequestId
|
|
80
|
+
|
|
81
|
+
@RequestId.setter
|
|
82
|
+
def RequestId(self, RequestId):
|
|
83
|
+
self._RequestId = RequestId
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
def _deserialize(self, params):
|
|
87
|
+
self._RequestId = params.get("RequestId")
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
class AssociationItem(AbstractModel):
|
|
91
|
+
"""Rule associated with target group
|
|
92
|
+
|
|
93
|
+
"""
|
|
94
|
+
|
|
95
|
+
def __init__(self):
|
|
96
|
+
r"""
|
|
97
|
+
:param _LoadBalancerId: ID of associated CLB instance
|
|
98
|
+
:type LoadBalancerId: str
|
|
99
|
+
:param _LoadBalancerName: CLB name
|
|
100
|
+
:type LoadBalancerName: str
|
|
101
|
+
"""
|
|
102
|
+
self._LoadBalancerId = None
|
|
103
|
+
self._LoadBalancerName = None
|
|
104
|
+
|
|
105
|
+
@property
|
|
106
|
+
def LoadBalancerId(self):
|
|
107
|
+
"""ID of associated CLB instance
|
|
108
|
+
:rtype: str
|
|
109
|
+
"""
|
|
110
|
+
return self._LoadBalancerId
|
|
111
|
+
|
|
112
|
+
@LoadBalancerId.setter
|
|
113
|
+
def LoadBalancerId(self, LoadBalancerId):
|
|
114
|
+
self._LoadBalancerId = LoadBalancerId
|
|
115
|
+
|
|
116
|
+
@property
|
|
117
|
+
def LoadBalancerName(self):
|
|
118
|
+
"""CLB name
|
|
119
|
+
:rtype: str
|
|
120
|
+
"""
|
|
121
|
+
return self._LoadBalancerName
|
|
122
|
+
|
|
123
|
+
@LoadBalancerName.setter
|
|
124
|
+
def LoadBalancerName(self, LoadBalancerName):
|
|
125
|
+
self._LoadBalancerName = LoadBalancerName
|
|
126
|
+
|
|
127
|
+
|
|
128
|
+
def _deserialize(self, params):
|
|
129
|
+
self._LoadBalancerId = params.get("LoadBalancerId")
|
|
130
|
+
self._LoadBalancerName = params.get("LoadBalancerName")
|
|
131
|
+
memeber_set = set(params.keys())
|
|
132
|
+
for name, value in vars(self).items():
|
|
133
|
+
property_name = name[1:]
|
|
134
|
+
if property_name in memeber_set:
|
|
135
|
+
memeber_set.remove(property_name)
|
|
136
|
+
if len(memeber_set) > 0:
|
|
137
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
138
|
+
|
|
139
|
+
|
|
140
|
+
|
|
141
|
+
class CreateGatewayLoadBalancerRequest(AbstractModel):
|
|
142
|
+
"""CreateGatewayLoadBalancer request structure.
|
|
143
|
+
|
|
144
|
+
"""
|
|
145
|
+
|
|
146
|
+
def __init__(self):
|
|
147
|
+
r"""
|
|
148
|
+
:param _VpcId: ID of the VPC to which the backend target device of the GWLB belongs, such as vpc-12345678. It can be obtained through the DescribeVpcEx interface. If left blank, it defaults to DefaultVPC. This parameter is required when a private network CLB instance is created.
|
|
149
|
+
:type VpcId: str
|
|
150
|
+
:param _SubnetId: Subnet ID of the VPC to which the backend target device of the GWLB belongs.
|
|
151
|
+
:type SubnetId: str
|
|
152
|
+
:param _LoadBalancerName: GWLB instance name. It supports 1-60 characters, including letters, digits, Chinese characters, "-", "_", and ".". If left blank, it will be automatically generated by default.
|
|
153
|
+
:type LoadBalancerName: str
|
|
154
|
+
:param _Number: Number of GWLBs to create, with a default of 1. The maximum batch creation quantity is 10.
|
|
155
|
+
:type Number: int
|
|
156
|
+
:param _Tags: While the GWLB is purchased, it is tagged, with a maximum of 20 tag key-value pairs.
|
|
157
|
+
:type Tags: list of TagInfo
|
|
158
|
+
:param _LBChargeType: GWLB instance billing type, which currently supports POSTPAID_BY_HOUR only. The default is POSTPAID_BY_HOUR.
|
|
159
|
+
:type LBChargeType: str
|
|
160
|
+
"""
|
|
161
|
+
self._VpcId = None
|
|
162
|
+
self._SubnetId = None
|
|
163
|
+
self._LoadBalancerName = None
|
|
164
|
+
self._Number = None
|
|
165
|
+
self._Tags = None
|
|
166
|
+
self._LBChargeType = None
|
|
167
|
+
|
|
168
|
+
@property
|
|
169
|
+
def VpcId(self):
|
|
170
|
+
"""ID of the VPC to which the backend target device of the GWLB belongs, such as vpc-12345678. It can be obtained through the DescribeVpcEx interface. If left blank, it defaults to DefaultVPC. This parameter is required when a private network CLB instance is created.
|
|
171
|
+
:rtype: str
|
|
172
|
+
"""
|
|
173
|
+
return self._VpcId
|
|
174
|
+
|
|
175
|
+
@VpcId.setter
|
|
176
|
+
def VpcId(self, VpcId):
|
|
177
|
+
self._VpcId = VpcId
|
|
178
|
+
|
|
179
|
+
@property
|
|
180
|
+
def SubnetId(self):
|
|
181
|
+
"""Subnet ID of the VPC to which the backend target device of the GWLB belongs.
|
|
182
|
+
:rtype: str
|
|
183
|
+
"""
|
|
184
|
+
return self._SubnetId
|
|
185
|
+
|
|
186
|
+
@SubnetId.setter
|
|
187
|
+
def SubnetId(self, SubnetId):
|
|
188
|
+
self._SubnetId = SubnetId
|
|
189
|
+
|
|
190
|
+
@property
|
|
191
|
+
def LoadBalancerName(self):
|
|
192
|
+
"""GWLB instance name. It supports 1-60 characters, including letters, digits, Chinese characters, "-", "_", and ".". If left blank, it will be automatically generated by default.
|
|
193
|
+
:rtype: str
|
|
194
|
+
"""
|
|
195
|
+
return self._LoadBalancerName
|
|
196
|
+
|
|
197
|
+
@LoadBalancerName.setter
|
|
198
|
+
def LoadBalancerName(self, LoadBalancerName):
|
|
199
|
+
self._LoadBalancerName = LoadBalancerName
|
|
200
|
+
|
|
201
|
+
@property
|
|
202
|
+
def Number(self):
|
|
203
|
+
"""Number of GWLBs to create, with a default of 1. The maximum batch creation quantity is 10.
|
|
204
|
+
:rtype: int
|
|
205
|
+
"""
|
|
206
|
+
return self._Number
|
|
207
|
+
|
|
208
|
+
@Number.setter
|
|
209
|
+
def Number(self, Number):
|
|
210
|
+
self._Number = Number
|
|
211
|
+
|
|
212
|
+
@property
|
|
213
|
+
def Tags(self):
|
|
214
|
+
"""While the GWLB is purchased, it is tagged, with a maximum of 20 tag key-value pairs.
|
|
215
|
+
:rtype: list of TagInfo
|
|
216
|
+
"""
|
|
217
|
+
return self._Tags
|
|
218
|
+
|
|
219
|
+
@Tags.setter
|
|
220
|
+
def Tags(self, Tags):
|
|
221
|
+
self._Tags = Tags
|
|
222
|
+
|
|
223
|
+
@property
|
|
224
|
+
def LBChargeType(self):
|
|
225
|
+
"""GWLB instance billing type, which currently supports POSTPAID_BY_HOUR only. The default is POSTPAID_BY_HOUR.
|
|
226
|
+
:rtype: str
|
|
227
|
+
"""
|
|
228
|
+
return self._LBChargeType
|
|
229
|
+
|
|
230
|
+
@LBChargeType.setter
|
|
231
|
+
def LBChargeType(self, LBChargeType):
|
|
232
|
+
self._LBChargeType = LBChargeType
|
|
233
|
+
|
|
234
|
+
|
|
235
|
+
def _deserialize(self, params):
|
|
236
|
+
self._VpcId = params.get("VpcId")
|
|
237
|
+
self._SubnetId = params.get("SubnetId")
|
|
238
|
+
self._LoadBalancerName = params.get("LoadBalancerName")
|
|
239
|
+
self._Number = params.get("Number")
|
|
240
|
+
if params.get("Tags") is not None:
|
|
241
|
+
self._Tags = []
|
|
242
|
+
for item in params.get("Tags"):
|
|
243
|
+
obj = TagInfo()
|
|
244
|
+
obj._deserialize(item)
|
|
245
|
+
self._Tags.append(obj)
|
|
246
|
+
self._LBChargeType = params.get("LBChargeType")
|
|
247
|
+
memeber_set = set(params.keys())
|
|
248
|
+
for name, value in vars(self).items():
|
|
249
|
+
property_name = name[1:]
|
|
250
|
+
if property_name in memeber_set:
|
|
251
|
+
memeber_set.remove(property_name)
|
|
252
|
+
if len(memeber_set) > 0:
|
|
253
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
254
|
+
|
|
255
|
+
|
|
256
|
+
|
|
257
|
+
class CreateGatewayLoadBalancerResponse(AbstractModel):
|
|
258
|
+
"""CreateGatewayLoadBalancer response structure.
|
|
259
|
+
|
|
260
|
+
"""
|
|
261
|
+
|
|
262
|
+
def __init__(self):
|
|
263
|
+
r"""
|
|
264
|
+
:param _LoadBalancerIds: Array of unique GWLB instance IDs.In certain scenarios, for example, when there is a delay in creation, this field may return null; at this time, you can query the created resource ID through the DescribeTaskStatus API using the RequestId or DealName parameter returned by the API.Note: this field may return `null`, indicating that no valid values can be obtained.
|
|
265
|
+
:type LoadBalancerIds: list of str
|
|
266
|
+
:param _DealName: Order number.
|
|
267
|
+
|
|
268
|
+
Note: this field may return `null`, indicating that no valid values can be obtained.
|
|
269
|
+
:type DealName: str
|
|
270
|
+
:param _RequestId: The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
|
|
271
|
+
:type RequestId: str
|
|
272
|
+
"""
|
|
273
|
+
self._LoadBalancerIds = None
|
|
274
|
+
self._DealName = None
|
|
275
|
+
self._RequestId = None
|
|
276
|
+
|
|
277
|
+
@property
|
|
278
|
+
def LoadBalancerIds(self):
|
|
279
|
+
"""Array of unique GWLB instance IDs.In certain scenarios, for example, when there is a delay in creation, this field may return null; at this time, you can query the created resource ID through the DescribeTaskStatus API using the RequestId or DealName parameter returned by the API.Note: this field may return `null`, indicating that no valid values can be obtained.
|
|
280
|
+
:rtype: list of str
|
|
281
|
+
"""
|
|
282
|
+
return self._LoadBalancerIds
|
|
283
|
+
|
|
284
|
+
@LoadBalancerIds.setter
|
|
285
|
+
def LoadBalancerIds(self, LoadBalancerIds):
|
|
286
|
+
self._LoadBalancerIds = LoadBalancerIds
|
|
287
|
+
|
|
288
|
+
@property
|
|
289
|
+
def DealName(self):
|
|
290
|
+
"""Order number.
|
|
291
|
+
|
|
292
|
+
Note: this field may return `null`, indicating that no valid values can be obtained.
|
|
293
|
+
:rtype: str
|
|
294
|
+
"""
|
|
295
|
+
return self._DealName
|
|
296
|
+
|
|
297
|
+
@DealName.setter
|
|
298
|
+
def DealName(self, DealName):
|
|
299
|
+
self._DealName = DealName
|
|
300
|
+
|
|
301
|
+
@property
|
|
302
|
+
def RequestId(self):
|
|
303
|
+
"""The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
|
|
304
|
+
:rtype: str
|
|
305
|
+
"""
|
|
306
|
+
return self._RequestId
|
|
307
|
+
|
|
308
|
+
@RequestId.setter
|
|
309
|
+
def RequestId(self, RequestId):
|
|
310
|
+
self._RequestId = RequestId
|
|
311
|
+
|
|
312
|
+
|
|
313
|
+
def _deserialize(self, params):
|
|
314
|
+
self._LoadBalancerIds = params.get("LoadBalancerIds")
|
|
315
|
+
self._DealName = params.get("DealName")
|
|
316
|
+
self._RequestId = params.get("RequestId")
|
|
317
|
+
|
|
318
|
+
|
|
319
|
+
class CreateTargetGroupRequest(AbstractModel):
|
|
320
|
+
"""CreateTargetGroup request structure.
|
|
321
|
+
|
|
322
|
+
"""
|
|
323
|
+
|
|
324
|
+
def __init__(self):
|
|
325
|
+
r"""
|
|
326
|
+
:param _TargetGroupName: Target group name, up to 50 characters
|
|
327
|
+
:type TargetGroupName: str
|
|
328
|
+
:param _VpcId: VPCID attribute of target group. If this parameter is left blank, the default VPC will be used.
|
|
329
|
+
:type VpcId: str
|
|
330
|
+
:param _Port: Default port of target group. This default port can be used when servers are added subsequently. Either Port or port in TargetGroupInstances.N is required.
|
|
331
|
+
:type Port: int
|
|
332
|
+
:param _TargetGroupInstances: Real server bound to a target group
|
|
333
|
+
:type TargetGroupInstances: list of TargetGroupInstance
|
|
334
|
+
:param _Protocol: GWLB target group protocol.- AWS_GENEVE: GENEVE compatible protocol - TENCENT_GENEVE: GENEVE standard protocol
|
|
335
|
+
:type Protocol: str
|
|
336
|
+
:param _HealthCheck: Health check.
|
|
337
|
+
:type HealthCheck: :class:`tencentcloud.gwlb.v20240906.models.TargetGroupHealthCheck`
|
|
338
|
+
:param _ScheduleAlgorithm: RS scheduling algorithm.- IP_HASH_3_ELASTIC: elastic hashing
|
|
339
|
+
:type ScheduleAlgorithm: str
|
|
340
|
+
:param _AllDeadToAlive: Whether "All Dead, All Alive" is supported. It is supported by default.
|
|
341
|
+
:type AllDeadToAlive: bool
|
|
342
|
+
"""
|
|
343
|
+
self._TargetGroupName = None
|
|
344
|
+
self._VpcId = None
|
|
345
|
+
self._Port = None
|
|
346
|
+
self._TargetGroupInstances = None
|
|
347
|
+
self._Protocol = None
|
|
348
|
+
self._HealthCheck = None
|
|
349
|
+
self._ScheduleAlgorithm = None
|
|
350
|
+
self._AllDeadToAlive = None
|
|
351
|
+
|
|
352
|
+
@property
|
|
353
|
+
def TargetGroupName(self):
|
|
354
|
+
"""Target group name, up to 50 characters
|
|
355
|
+
:rtype: str
|
|
356
|
+
"""
|
|
357
|
+
return self._TargetGroupName
|
|
358
|
+
|
|
359
|
+
@TargetGroupName.setter
|
|
360
|
+
def TargetGroupName(self, TargetGroupName):
|
|
361
|
+
self._TargetGroupName = TargetGroupName
|
|
362
|
+
|
|
363
|
+
@property
|
|
364
|
+
def VpcId(self):
|
|
365
|
+
"""VPCID attribute of target group. If this parameter is left blank, the default VPC will be used.
|
|
366
|
+
:rtype: str
|
|
367
|
+
"""
|
|
368
|
+
return self._VpcId
|
|
369
|
+
|
|
370
|
+
@VpcId.setter
|
|
371
|
+
def VpcId(self, VpcId):
|
|
372
|
+
self._VpcId = VpcId
|
|
373
|
+
|
|
374
|
+
@property
|
|
375
|
+
def Port(self):
|
|
376
|
+
"""Default port of target group. This default port can be used when servers are added subsequently. Either Port or port in TargetGroupInstances.N is required.
|
|
377
|
+
:rtype: int
|
|
378
|
+
"""
|
|
379
|
+
return self._Port
|
|
380
|
+
|
|
381
|
+
@Port.setter
|
|
382
|
+
def Port(self, Port):
|
|
383
|
+
self._Port = Port
|
|
384
|
+
|
|
385
|
+
@property
|
|
386
|
+
def TargetGroupInstances(self):
|
|
387
|
+
"""Real server bound to a target group
|
|
388
|
+
:rtype: list of TargetGroupInstance
|
|
389
|
+
"""
|
|
390
|
+
return self._TargetGroupInstances
|
|
391
|
+
|
|
392
|
+
@TargetGroupInstances.setter
|
|
393
|
+
def TargetGroupInstances(self, TargetGroupInstances):
|
|
394
|
+
self._TargetGroupInstances = TargetGroupInstances
|
|
395
|
+
|
|
396
|
+
@property
|
|
397
|
+
def Protocol(self):
|
|
398
|
+
"""GWLB target group protocol.- AWS_GENEVE: GENEVE compatible protocol - TENCENT_GENEVE: GENEVE standard protocol
|
|
399
|
+
:rtype: str
|
|
400
|
+
"""
|
|
401
|
+
return self._Protocol
|
|
402
|
+
|
|
403
|
+
@Protocol.setter
|
|
404
|
+
def Protocol(self, Protocol):
|
|
405
|
+
self._Protocol = Protocol
|
|
406
|
+
|
|
407
|
+
@property
|
|
408
|
+
def HealthCheck(self):
|
|
409
|
+
"""Health check.
|
|
410
|
+
:rtype: :class:`tencentcloud.gwlb.v20240906.models.TargetGroupHealthCheck`
|
|
411
|
+
"""
|
|
412
|
+
return self._HealthCheck
|
|
413
|
+
|
|
414
|
+
@HealthCheck.setter
|
|
415
|
+
def HealthCheck(self, HealthCheck):
|
|
416
|
+
self._HealthCheck = HealthCheck
|
|
417
|
+
|
|
418
|
+
@property
|
|
419
|
+
def ScheduleAlgorithm(self):
|
|
420
|
+
"""RS scheduling algorithm.- IP_HASH_3_ELASTIC: elastic hashing
|
|
421
|
+
:rtype: str
|
|
422
|
+
"""
|
|
423
|
+
return self._ScheduleAlgorithm
|
|
424
|
+
|
|
425
|
+
@ScheduleAlgorithm.setter
|
|
426
|
+
def ScheduleAlgorithm(self, ScheduleAlgorithm):
|
|
427
|
+
self._ScheduleAlgorithm = ScheduleAlgorithm
|
|
428
|
+
|
|
429
|
+
@property
|
|
430
|
+
def AllDeadToAlive(self):
|
|
431
|
+
"""Whether "All Dead, All Alive" is supported. It is supported by default.
|
|
432
|
+
:rtype: bool
|
|
433
|
+
"""
|
|
434
|
+
return self._AllDeadToAlive
|
|
435
|
+
|
|
436
|
+
@AllDeadToAlive.setter
|
|
437
|
+
def AllDeadToAlive(self, AllDeadToAlive):
|
|
438
|
+
self._AllDeadToAlive = AllDeadToAlive
|
|
439
|
+
|
|
440
|
+
|
|
441
|
+
def _deserialize(self, params):
|
|
442
|
+
self._TargetGroupName = params.get("TargetGroupName")
|
|
443
|
+
self._VpcId = params.get("VpcId")
|
|
444
|
+
self._Port = params.get("Port")
|
|
445
|
+
if params.get("TargetGroupInstances") is not None:
|
|
446
|
+
self._TargetGroupInstances = []
|
|
447
|
+
for item in params.get("TargetGroupInstances"):
|
|
448
|
+
obj = TargetGroupInstance()
|
|
449
|
+
obj._deserialize(item)
|
|
450
|
+
self._TargetGroupInstances.append(obj)
|
|
451
|
+
self._Protocol = params.get("Protocol")
|
|
452
|
+
if params.get("HealthCheck") is not None:
|
|
453
|
+
self._HealthCheck = TargetGroupHealthCheck()
|
|
454
|
+
self._HealthCheck._deserialize(params.get("HealthCheck"))
|
|
455
|
+
self._ScheduleAlgorithm = params.get("ScheduleAlgorithm")
|
|
456
|
+
self._AllDeadToAlive = params.get("AllDeadToAlive")
|
|
457
|
+
memeber_set = set(params.keys())
|
|
458
|
+
for name, value in vars(self).items():
|
|
459
|
+
property_name = name[1:]
|
|
460
|
+
if property_name in memeber_set:
|
|
461
|
+
memeber_set.remove(property_name)
|
|
462
|
+
if len(memeber_set) > 0:
|
|
463
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
464
|
+
|
|
465
|
+
|
|
466
|
+
|
|
467
|
+
class CreateTargetGroupResponse(AbstractModel):
|
|
468
|
+
"""CreateTargetGroup response structure.
|
|
469
|
+
|
|
470
|
+
"""
|
|
471
|
+
|
|
472
|
+
def __init__(self):
|
|
473
|
+
r"""
|
|
474
|
+
:param _TargetGroupId: ID generated after target group creation
|
|
475
|
+
:type TargetGroupId: str
|
|
476
|
+
:param _RequestId: The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
|
|
477
|
+
:type RequestId: str
|
|
478
|
+
"""
|
|
479
|
+
self._TargetGroupId = None
|
|
480
|
+
self._RequestId = None
|
|
481
|
+
|
|
482
|
+
@property
|
|
483
|
+
def TargetGroupId(self):
|
|
484
|
+
"""ID generated after target group creation
|
|
485
|
+
:rtype: str
|
|
486
|
+
"""
|
|
487
|
+
return self._TargetGroupId
|
|
488
|
+
|
|
489
|
+
@TargetGroupId.setter
|
|
490
|
+
def TargetGroupId(self, TargetGroupId):
|
|
491
|
+
self._TargetGroupId = TargetGroupId
|
|
492
|
+
|
|
493
|
+
@property
|
|
494
|
+
def RequestId(self):
|
|
495
|
+
"""The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
|
|
496
|
+
:rtype: str
|
|
497
|
+
"""
|
|
498
|
+
return self._RequestId
|
|
499
|
+
|
|
500
|
+
@RequestId.setter
|
|
501
|
+
def RequestId(self, RequestId):
|
|
502
|
+
self._RequestId = RequestId
|
|
503
|
+
|
|
504
|
+
|
|
505
|
+
def _deserialize(self, params):
|
|
506
|
+
self._TargetGroupId = params.get("TargetGroupId")
|
|
507
|
+
self._RequestId = params.get("RequestId")
|
|
508
|
+
|
|
509
|
+
|
|
510
|
+
class DeleteGatewayLoadBalancerRequest(AbstractModel):
|
|
511
|
+
"""DeleteGatewayLoadBalancer request structure.
|
|
512
|
+
|
|
513
|
+
"""
|
|
514
|
+
|
|
515
|
+
def __init__(self):
|
|
516
|
+
r"""
|
|
517
|
+
:param _LoadBalancerIds: Array of GWLB instance IDs to be deleted, with the array size up to 20.
|
|
518
|
+
:type LoadBalancerIds: list of str
|
|
519
|
+
"""
|
|
520
|
+
self._LoadBalancerIds = None
|
|
521
|
+
|
|
522
|
+
@property
|
|
523
|
+
def LoadBalancerIds(self):
|
|
524
|
+
"""Array of GWLB instance IDs to be deleted, with the array size up to 20.
|
|
525
|
+
:rtype: list of str
|
|
526
|
+
"""
|
|
527
|
+
return self._LoadBalancerIds
|
|
528
|
+
|
|
529
|
+
@LoadBalancerIds.setter
|
|
530
|
+
def LoadBalancerIds(self, LoadBalancerIds):
|
|
531
|
+
self._LoadBalancerIds = LoadBalancerIds
|
|
532
|
+
|
|
533
|
+
|
|
534
|
+
def _deserialize(self, params):
|
|
535
|
+
self._LoadBalancerIds = params.get("LoadBalancerIds")
|
|
536
|
+
memeber_set = set(params.keys())
|
|
537
|
+
for name, value in vars(self).items():
|
|
538
|
+
property_name = name[1:]
|
|
539
|
+
if property_name in memeber_set:
|
|
540
|
+
memeber_set.remove(property_name)
|
|
541
|
+
if len(memeber_set) > 0:
|
|
542
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
543
|
+
|
|
544
|
+
|
|
545
|
+
|
|
546
|
+
class DeleteGatewayLoadBalancerResponse(AbstractModel):
|
|
547
|
+
"""DeleteGatewayLoadBalancer response structure.
|
|
548
|
+
|
|
549
|
+
"""
|
|
550
|
+
|
|
551
|
+
def __init__(self):
|
|
552
|
+
r"""
|
|
553
|
+
:param _RequestId: The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
|
|
554
|
+
:type RequestId: str
|
|
555
|
+
"""
|
|
556
|
+
self._RequestId = None
|
|
557
|
+
|
|
558
|
+
@property
|
|
559
|
+
def RequestId(self):
|
|
560
|
+
"""The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
|
|
561
|
+
:rtype: str
|
|
562
|
+
"""
|
|
563
|
+
return self._RequestId
|
|
564
|
+
|
|
565
|
+
@RequestId.setter
|
|
566
|
+
def RequestId(self, RequestId):
|
|
567
|
+
self._RequestId = RequestId
|
|
568
|
+
|
|
569
|
+
|
|
570
|
+
def _deserialize(self, params):
|
|
571
|
+
self._RequestId = params.get("RequestId")
|
|
572
|
+
|
|
573
|
+
|
|
574
|
+
class DeleteTargetGroupsRequest(AbstractModel):
|
|
575
|
+
"""DeleteTargetGroups request structure.
|
|
576
|
+
|
|
577
|
+
"""
|
|
578
|
+
|
|
579
|
+
def __init__(self):
|
|
580
|
+
r"""
|
|
581
|
+
:param _TargetGroupIds: Target group list.
|
|
582
|
+
:type TargetGroupIds: list of str
|
|
583
|
+
"""
|
|
584
|
+
self._TargetGroupIds = None
|
|
585
|
+
|
|
586
|
+
@property
|
|
587
|
+
def TargetGroupIds(self):
|
|
588
|
+
"""Target group list.
|
|
589
|
+
:rtype: list of str
|
|
590
|
+
"""
|
|
591
|
+
return self._TargetGroupIds
|
|
592
|
+
|
|
593
|
+
@TargetGroupIds.setter
|
|
594
|
+
def TargetGroupIds(self, TargetGroupIds):
|
|
595
|
+
self._TargetGroupIds = TargetGroupIds
|
|
596
|
+
|
|
597
|
+
|
|
598
|
+
def _deserialize(self, params):
|
|
599
|
+
self._TargetGroupIds = params.get("TargetGroupIds")
|
|
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 DeleteTargetGroupsResponse(AbstractModel):
|
|
611
|
+
"""DeleteTargetGroups response structure.
|
|
612
|
+
|
|
613
|
+
"""
|
|
614
|
+
|
|
615
|
+
def __init__(self):
|
|
616
|
+
r"""
|
|
617
|
+
:param _RequestId: The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
|
|
618
|
+
:type RequestId: str
|
|
619
|
+
"""
|
|
620
|
+
self._RequestId = None
|
|
621
|
+
|
|
622
|
+
@property
|
|
623
|
+
def RequestId(self):
|
|
624
|
+
"""The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
|
|
625
|
+
:rtype: str
|
|
626
|
+
"""
|
|
627
|
+
return self._RequestId
|
|
628
|
+
|
|
629
|
+
@RequestId.setter
|
|
630
|
+
def RequestId(self, RequestId):
|
|
631
|
+
self._RequestId = RequestId
|
|
632
|
+
|
|
633
|
+
|
|
634
|
+
def _deserialize(self, params):
|
|
635
|
+
self._RequestId = params.get("RequestId")
|
|
636
|
+
|
|
637
|
+
|
|
638
|
+
class DeregisterTargetGroupInstancesRequest(AbstractModel):
|
|
639
|
+
"""DeregisterTargetGroupInstances request structure.
|
|
640
|
+
|
|
641
|
+
"""
|
|
642
|
+
|
|
643
|
+
def __init__(self):
|
|
644
|
+
r"""
|
|
645
|
+
:param _TargetGroupId: Target group ID.
|
|
646
|
+
:type TargetGroupId: str
|
|
647
|
+
:param _TargetGroupInstances: Information on server to be unbound.
|
|
648
|
+
:type TargetGroupInstances: list of TargetGroupInstance
|
|
649
|
+
"""
|
|
650
|
+
self._TargetGroupId = None
|
|
651
|
+
self._TargetGroupInstances = None
|
|
652
|
+
|
|
653
|
+
@property
|
|
654
|
+
def TargetGroupId(self):
|
|
655
|
+
"""Target group ID.
|
|
656
|
+
:rtype: str
|
|
657
|
+
"""
|
|
658
|
+
return self._TargetGroupId
|
|
659
|
+
|
|
660
|
+
@TargetGroupId.setter
|
|
661
|
+
def TargetGroupId(self, TargetGroupId):
|
|
662
|
+
self._TargetGroupId = TargetGroupId
|
|
663
|
+
|
|
664
|
+
@property
|
|
665
|
+
def TargetGroupInstances(self):
|
|
666
|
+
"""Information on server to be unbound.
|
|
667
|
+
:rtype: list of TargetGroupInstance
|
|
668
|
+
"""
|
|
669
|
+
return self._TargetGroupInstances
|
|
670
|
+
|
|
671
|
+
@TargetGroupInstances.setter
|
|
672
|
+
def TargetGroupInstances(self, TargetGroupInstances):
|
|
673
|
+
self._TargetGroupInstances = TargetGroupInstances
|
|
674
|
+
|
|
675
|
+
|
|
676
|
+
def _deserialize(self, params):
|
|
677
|
+
self._TargetGroupId = params.get("TargetGroupId")
|
|
678
|
+
if params.get("TargetGroupInstances") is not None:
|
|
679
|
+
self._TargetGroupInstances = []
|
|
680
|
+
for item in params.get("TargetGroupInstances"):
|
|
681
|
+
obj = TargetGroupInstance()
|
|
682
|
+
obj._deserialize(item)
|
|
683
|
+
self._TargetGroupInstances.append(obj)
|
|
684
|
+
memeber_set = set(params.keys())
|
|
685
|
+
for name, value in vars(self).items():
|
|
686
|
+
property_name = name[1:]
|
|
687
|
+
if property_name in memeber_set:
|
|
688
|
+
memeber_set.remove(property_name)
|
|
689
|
+
if len(memeber_set) > 0:
|
|
690
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
691
|
+
|
|
692
|
+
|
|
693
|
+
|
|
694
|
+
class DeregisterTargetGroupInstancesResponse(AbstractModel):
|
|
695
|
+
"""DeregisterTargetGroupInstances response structure.
|
|
696
|
+
|
|
697
|
+
"""
|
|
698
|
+
|
|
699
|
+
def __init__(self):
|
|
700
|
+
r"""
|
|
701
|
+
:param _RequestId: The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
|
|
702
|
+
:type RequestId: str
|
|
703
|
+
"""
|
|
704
|
+
self._RequestId = None
|
|
705
|
+
|
|
706
|
+
@property
|
|
707
|
+
def RequestId(self):
|
|
708
|
+
"""The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
|
|
709
|
+
:rtype: str
|
|
710
|
+
"""
|
|
711
|
+
return self._RequestId
|
|
712
|
+
|
|
713
|
+
@RequestId.setter
|
|
714
|
+
def RequestId(self, RequestId):
|
|
715
|
+
self._RequestId = RequestId
|
|
716
|
+
|
|
717
|
+
|
|
718
|
+
def _deserialize(self, params):
|
|
719
|
+
self._RequestId = params.get("RequestId")
|
|
720
|
+
|
|
721
|
+
|
|
722
|
+
class DescribeGatewayLoadBalancersRequest(AbstractModel):
|
|
723
|
+
"""DescribeGatewayLoadBalancers request structure.
|
|
724
|
+
|
|
725
|
+
"""
|
|
726
|
+
|
|
727
|
+
def __init__(self):
|
|
728
|
+
r"""
|
|
729
|
+
:param _LoadBalancerIds: GWLB instance ID. Batch filtering is supported with a maximum of 20 instance IDs.
|
|
730
|
+
:type LoadBalancerIds: list of str
|
|
731
|
+
:param _Limit: Number of GWLB instances returned in a batch, with a default value of 20 and a maximum value of 100.
|
|
732
|
+
:type Limit: int
|
|
733
|
+
:param _Offset: Starting offset for returning the list of GWLB instances, with a default value of 0.
|
|
734
|
+
:type Offset: int
|
|
735
|
+
:param _Filters: Filter criteria for querying the CLB details list. For each request, the maximum value of Filters is 10, and the maximum value of Filter.Values is 100.Filter.Name and Filter.Values are both required. Detailed filter criteria are as follows:- name - String - required: No - (filter criteria) filter by GWLB instance name, such as "gwlb-xxxx".- VpcId - String - required: No - (filter criteria) filter by the VPC to which the GWLB instance belongs, such as "vpc-bhqk****".
|
|
736
|
+
:type Filters: list of Filter
|
|
737
|
+
:param _SearchKey: Search field, for fuzzy matching of name and VIP.
|
|
738
|
+
:type SearchKey: str
|
|
739
|
+
"""
|
|
740
|
+
self._LoadBalancerIds = None
|
|
741
|
+
self._Limit = None
|
|
742
|
+
self._Offset = None
|
|
743
|
+
self._Filters = None
|
|
744
|
+
self._SearchKey = None
|
|
745
|
+
|
|
746
|
+
@property
|
|
747
|
+
def LoadBalancerIds(self):
|
|
748
|
+
"""GWLB instance ID. Batch filtering is supported with a maximum of 20 instance IDs.
|
|
749
|
+
:rtype: list of str
|
|
750
|
+
"""
|
|
751
|
+
return self._LoadBalancerIds
|
|
752
|
+
|
|
753
|
+
@LoadBalancerIds.setter
|
|
754
|
+
def LoadBalancerIds(self, LoadBalancerIds):
|
|
755
|
+
self._LoadBalancerIds = LoadBalancerIds
|
|
756
|
+
|
|
757
|
+
@property
|
|
758
|
+
def Limit(self):
|
|
759
|
+
"""Number of GWLB instances returned in a batch, with a default value of 20 and a maximum value of 100.
|
|
760
|
+
:rtype: int
|
|
761
|
+
"""
|
|
762
|
+
return self._Limit
|
|
763
|
+
|
|
764
|
+
@Limit.setter
|
|
765
|
+
def Limit(self, Limit):
|
|
766
|
+
self._Limit = Limit
|
|
767
|
+
|
|
768
|
+
@property
|
|
769
|
+
def Offset(self):
|
|
770
|
+
"""Starting offset for returning the list of GWLB instances, with a default value of 0.
|
|
771
|
+
:rtype: int
|
|
772
|
+
"""
|
|
773
|
+
return self._Offset
|
|
774
|
+
|
|
775
|
+
@Offset.setter
|
|
776
|
+
def Offset(self, Offset):
|
|
777
|
+
self._Offset = Offset
|
|
778
|
+
|
|
779
|
+
@property
|
|
780
|
+
def Filters(self):
|
|
781
|
+
"""Filter criteria for querying the CLB details list. For each request, the maximum value of Filters is 10, and the maximum value of Filter.Values is 100.Filter.Name and Filter.Values are both required. Detailed filter criteria are as follows:- name - String - required: No - (filter criteria) filter by GWLB instance name, such as "gwlb-xxxx".- VpcId - String - required: No - (filter criteria) filter by the VPC to which the GWLB instance belongs, such as "vpc-bhqk****".
|
|
782
|
+
:rtype: list of Filter
|
|
783
|
+
"""
|
|
784
|
+
return self._Filters
|
|
785
|
+
|
|
786
|
+
@Filters.setter
|
|
787
|
+
def Filters(self, Filters):
|
|
788
|
+
self._Filters = Filters
|
|
789
|
+
|
|
790
|
+
@property
|
|
791
|
+
def SearchKey(self):
|
|
792
|
+
"""Search field, for fuzzy matching of name and VIP.
|
|
793
|
+
:rtype: str
|
|
794
|
+
"""
|
|
795
|
+
return self._SearchKey
|
|
796
|
+
|
|
797
|
+
@SearchKey.setter
|
|
798
|
+
def SearchKey(self, SearchKey):
|
|
799
|
+
self._SearchKey = SearchKey
|
|
800
|
+
|
|
801
|
+
|
|
802
|
+
def _deserialize(self, params):
|
|
803
|
+
self._LoadBalancerIds = params.get("LoadBalancerIds")
|
|
804
|
+
self._Limit = params.get("Limit")
|
|
805
|
+
self._Offset = params.get("Offset")
|
|
806
|
+
if params.get("Filters") is not None:
|
|
807
|
+
self._Filters = []
|
|
808
|
+
for item in params.get("Filters"):
|
|
809
|
+
obj = Filter()
|
|
810
|
+
obj._deserialize(item)
|
|
811
|
+
self._Filters.append(obj)
|
|
812
|
+
self._SearchKey = params.get("SearchKey")
|
|
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 DescribeGatewayLoadBalancersResponse(AbstractModel):
|
|
824
|
+
"""DescribeGatewayLoadBalancers response structure.
|
|
825
|
+
|
|
826
|
+
"""
|
|
827
|
+
|
|
828
|
+
def __init__(self):
|
|
829
|
+
r"""
|
|
830
|
+
:param _TotalCount: Total number of CLB instances that meet the filter criteria. This value is independent of the Limit in the input parameters.
|
|
831
|
+
:type TotalCount: int
|
|
832
|
+
:param _LoadBalancerSet: Returned GWLB instance array.
|
|
833
|
+
:type LoadBalancerSet: list of GatewayLoadBalancer
|
|
834
|
+
:param _RequestId: The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
|
|
835
|
+
:type RequestId: str
|
|
836
|
+
"""
|
|
837
|
+
self._TotalCount = None
|
|
838
|
+
self._LoadBalancerSet = None
|
|
839
|
+
self._RequestId = None
|
|
840
|
+
|
|
841
|
+
@property
|
|
842
|
+
def TotalCount(self):
|
|
843
|
+
"""Total number of CLB instances that meet the filter criteria. This value is independent of the Limit in the input parameters.
|
|
844
|
+
:rtype: int
|
|
845
|
+
"""
|
|
846
|
+
return self._TotalCount
|
|
847
|
+
|
|
848
|
+
@TotalCount.setter
|
|
849
|
+
def TotalCount(self, TotalCount):
|
|
850
|
+
self._TotalCount = TotalCount
|
|
851
|
+
|
|
852
|
+
@property
|
|
853
|
+
def LoadBalancerSet(self):
|
|
854
|
+
"""Returned GWLB instance array.
|
|
855
|
+
:rtype: list of GatewayLoadBalancer
|
|
856
|
+
"""
|
|
857
|
+
return self._LoadBalancerSet
|
|
858
|
+
|
|
859
|
+
@LoadBalancerSet.setter
|
|
860
|
+
def LoadBalancerSet(self, LoadBalancerSet):
|
|
861
|
+
self._LoadBalancerSet = LoadBalancerSet
|
|
862
|
+
|
|
863
|
+
@property
|
|
864
|
+
def RequestId(self):
|
|
865
|
+
"""The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
|
|
866
|
+
:rtype: str
|
|
867
|
+
"""
|
|
868
|
+
return self._RequestId
|
|
869
|
+
|
|
870
|
+
@RequestId.setter
|
|
871
|
+
def RequestId(self, RequestId):
|
|
872
|
+
self._RequestId = RequestId
|
|
873
|
+
|
|
874
|
+
|
|
875
|
+
def _deserialize(self, params):
|
|
876
|
+
self._TotalCount = params.get("TotalCount")
|
|
877
|
+
if params.get("LoadBalancerSet") is not None:
|
|
878
|
+
self._LoadBalancerSet = []
|
|
879
|
+
for item in params.get("LoadBalancerSet"):
|
|
880
|
+
obj = GatewayLoadBalancer()
|
|
881
|
+
obj._deserialize(item)
|
|
882
|
+
self._LoadBalancerSet.append(obj)
|
|
883
|
+
self._RequestId = params.get("RequestId")
|
|
884
|
+
|
|
885
|
+
|
|
886
|
+
class DescribeTargetGroupInstanceStatusRequest(AbstractModel):
|
|
887
|
+
"""DescribeTargetGroupInstanceStatus request structure.
|
|
888
|
+
|
|
889
|
+
"""
|
|
890
|
+
|
|
891
|
+
def __init__(self):
|
|
892
|
+
r"""
|
|
893
|
+
:param _TargetGroupId: Unique target group ID
|
|
894
|
+
:type TargetGroupId: str
|
|
895
|
+
:param _TargetGroupInstanceIps: List of backend service IPs bound to the target group
|
|
896
|
+
:type TargetGroupInstanceIps: list of str
|
|
897
|
+
"""
|
|
898
|
+
self._TargetGroupId = None
|
|
899
|
+
self._TargetGroupInstanceIps = None
|
|
900
|
+
|
|
901
|
+
@property
|
|
902
|
+
def TargetGroupId(self):
|
|
903
|
+
"""Unique target group ID
|
|
904
|
+
:rtype: str
|
|
905
|
+
"""
|
|
906
|
+
return self._TargetGroupId
|
|
907
|
+
|
|
908
|
+
@TargetGroupId.setter
|
|
909
|
+
def TargetGroupId(self, TargetGroupId):
|
|
910
|
+
self._TargetGroupId = TargetGroupId
|
|
911
|
+
|
|
912
|
+
@property
|
|
913
|
+
def TargetGroupInstanceIps(self):
|
|
914
|
+
"""List of backend service IPs bound to the target group
|
|
915
|
+
:rtype: list of str
|
|
916
|
+
"""
|
|
917
|
+
return self._TargetGroupInstanceIps
|
|
918
|
+
|
|
919
|
+
@TargetGroupInstanceIps.setter
|
|
920
|
+
def TargetGroupInstanceIps(self, TargetGroupInstanceIps):
|
|
921
|
+
self._TargetGroupInstanceIps = TargetGroupInstanceIps
|
|
922
|
+
|
|
923
|
+
|
|
924
|
+
def _deserialize(self, params):
|
|
925
|
+
self._TargetGroupId = params.get("TargetGroupId")
|
|
926
|
+
self._TargetGroupInstanceIps = params.get("TargetGroupInstanceIps")
|
|
927
|
+
memeber_set = set(params.keys())
|
|
928
|
+
for name, value in vars(self).items():
|
|
929
|
+
property_name = name[1:]
|
|
930
|
+
if property_name in memeber_set:
|
|
931
|
+
memeber_set.remove(property_name)
|
|
932
|
+
if len(memeber_set) > 0:
|
|
933
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
934
|
+
|
|
935
|
+
|
|
936
|
+
|
|
937
|
+
class DescribeTargetGroupInstanceStatusResponse(AbstractModel):
|
|
938
|
+
"""DescribeTargetGroupInstanceStatus response structure.
|
|
939
|
+
|
|
940
|
+
"""
|
|
941
|
+
|
|
942
|
+
def __init__(self):
|
|
943
|
+
r"""
|
|
944
|
+
:param _TargetGroupInstanceSet: Health check backend RS status list
|
|
945
|
+
:type TargetGroupInstanceSet: list of TargetGroupInstanceStatus
|
|
946
|
+
:param _RequestId: The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
|
|
947
|
+
:type RequestId: str
|
|
948
|
+
"""
|
|
949
|
+
self._TargetGroupInstanceSet = None
|
|
950
|
+
self._RequestId = None
|
|
951
|
+
|
|
952
|
+
@property
|
|
953
|
+
def TargetGroupInstanceSet(self):
|
|
954
|
+
"""Health check backend RS status list
|
|
955
|
+
:rtype: list of TargetGroupInstanceStatus
|
|
956
|
+
"""
|
|
957
|
+
return self._TargetGroupInstanceSet
|
|
958
|
+
|
|
959
|
+
@TargetGroupInstanceSet.setter
|
|
960
|
+
def TargetGroupInstanceSet(self, TargetGroupInstanceSet):
|
|
961
|
+
self._TargetGroupInstanceSet = TargetGroupInstanceSet
|
|
962
|
+
|
|
963
|
+
@property
|
|
964
|
+
def RequestId(self):
|
|
965
|
+
"""The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
|
|
966
|
+
:rtype: str
|
|
967
|
+
"""
|
|
968
|
+
return self._RequestId
|
|
969
|
+
|
|
970
|
+
@RequestId.setter
|
|
971
|
+
def RequestId(self, RequestId):
|
|
972
|
+
self._RequestId = RequestId
|
|
973
|
+
|
|
974
|
+
|
|
975
|
+
def _deserialize(self, params):
|
|
976
|
+
if params.get("TargetGroupInstanceSet") is not None:
|
|
977
|
+
self._TargetGroupInstanceSet = []
|
|
978
|
+
for item in params.get("TargetGroupInstanceSet"):
|
|
979
|
+
obj = TargetGroupInstanceStatus()
|
|
980
|
+
obj._deserialize(item)
|
|
981
|
+
self._TargetGroupInstanceSet.append(obj)
|
|
982
|
+
self._RequestId = params.get("RequestId")
|
|
983
|
+
|
|
984
|
+
|
|
985
|
+
class DescribeTargetGroupInstancesRequest(AbstractModel):
|
|
986
|
+
"""DescribeTargetGroupInstances request structure.
|
|
987
|
+
|
|
988
|
+
"""
|
|
989
|
+
|
|
990
|
+
def __init__(self):
|
|
991
|
+
r"""
|
|
992
|
+
:param _Filters: Filter criteria. Currently, only filtering by TargetGroupId, BindIP, or InstanceId is supported.
|
|
993
|
+
:type Filters: list of Filter
|
|
994
|
+
:param _Limit: Number of displayed results. Default value: 20.
|
|
995
|
+
:type Limit: int
|
|
996
|
+
:param _Offset: Displayed offset. Default value: 0.
|
|
997
|
+
:type Offset: int
|
|
998
|
+
"""
|
|
999
|
+
self._Filters = None
|
|
1000
|
+
self._Limit = None
|
|
1001
|
+
self._Offset = None
|
|
1002
|
+
|
|
1003
|
+
@property
|
|
1004
|
+
def Filters(self):
|
|
1005
|
+
"""Filter criteria. Currently, only filtering by TargetGroupId, BindIP, or InstanceId is supported.
|
|
1006
|
+
:rtype: list of Filter
|
|
1007
|
+
"""
|
|
1008
|
+
return self._Filters
|
|
1009
|
+
|
|
1010
|
+
@Filters.setter
|
|
1011
|
+
def Filters(self, Filters):
|
|
1012
|
+
self._Filters = Filters
|
|
1013
|
+
|
|
1014
|
+
@property
|
|
1015
|
+
def Limit(self):
|
|
1016
|
+
"""Number of displayed results. Default value: 20.
|
|
1017
|
+
:rtype: int
|
|
1018
|
+
"""
|
|
1019
|
+
return self._Limit
|
|
1020
|
+
|
|
1021
|
+
@Limit.setter
|
|
1022
|
+
def Limit(self, Limit):
|
|
1023
|
+
self._Limit = Limit
|
|
1024
|
+
|
|
1025
|
+
@property
|
|
1026
|
+
def Offset(self):
|
|
1027
|
+
"""Displayed offset. Default value: 0.
|
|
1028
|
+
:rtype: int
|
|
1029
|
+
"""
|
|
1030
|
+
return self._Offset
|
|
1031
|
+
|
|
1032
|
+
@Offset.setter
|
|
1033
|
+
def Offset(self, Offset):
|
|
1034
|
+
self._Offset = Offset
|
|
1035
|
+
|
|
1036
|
+
|
|
1037
|
+
def _deserialize(self, params):
|
|
1038
|
+
if params.get("Filters") is not None:
|
|
1039
|
+
self._Filters = []
|
|
1040
|
+
for item in params.get("Filters"):
|
|
1041
|
+
obj = Filter()
|
|
1042
|
+
obj._deserialize(item)
|
|
1043
|
+
self._Filters.append(obj)
|
|
1044
|
+
self._Limit = params.get("Limit")
|
|
1045
|
+
self._Offset = params.get("Offset")
|
|
1046
|
+
memeber_set = set(params.keys())
|
|
1047
|
+
for name, value in vars(self).items():
|
|
1048
|
+
property_name = name[1:]
|
|
1049
|
+
if property_name in memeber_set:
|
|
1050
|
+
memeber_set.remove(property_name)
|
|
1051
|
+
if len(memeber_set) > 0:
|
|
1052
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
1053
|
+
|
|
1054
|
+
|
|
1055
|
+
|
|
1056
|
+
class DescribeTargetGroupInstancesResponse(AbstractModel):
|
|
1057
|
+
"""DescribeTargetGroupInstances response structure.
|
|
1058
|
+
|
|
1059
|
+
"""
|
|
1060
|
+
|
|
1061
|
+
def __init__(self):
|
|
1062
|
+
r"""
|
|
1063
|
+
:param _TotalCount: Number of results returned for the current query.
|
|
1064
|
+
:type TotalCount: int
|
|
1065
|
+
:param _TargetGroupInstanceSet: Information on bound server.
|
|
1066
|
+
:type TargetGroupInstanceSet: list of TargetGroupBackend
|
|
1067
|
+
:param _RealCount: Actual statistical quantity, which is not affected by Limit, Offset, or CAM.
|
|
1068
|
+
:type RealCount: int
|
|
1069
|
+
:param _RequestId: The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
|
|
1070
|
+
:type RequestId: str
|
|
1071
|
+
"""
|
|
1072
|
+
self._TotalCount = None
|
|
1073
|
+
self._TargetGroupInstanceSet = None
|
|
1074
|
+
self._RealCount = None
|
|
1075
|
+
self._RequestId = None
|
|
1076
|
+
|
|
1077
|
+
@property
|
|
1078
|
+
def TotalCount(self):
|
|
1079
|
+
"""Number of results returned for the current query.
|
|
1080
|
+
:rtype: int
|
|
1081
|
+
"""
|
|
1082
|
+
return self._TotalCount
|
|
1083
|
+
|
|
1084
|
+
@TotalCount.setter
|
|
1085
|
+
def TotalCount(self, TotalCount):
|
|
1086
|
+
self._TotalCount = TotalCount
|
|
1087
|
+
|
|
1088
|
+
@property
|
|
1089
|
+
def TargetGroupInstanceSet(self):
|
|
1090
|
+
"""Information on bound server.
|
|
1091
|
+
:rtype: list of TargetGroupBackend
|
|
1092
|
+
"""
|
|
1093
|
+
return self._TargetGroupInstanceSet
|
|
1094
|
+
|
|
1095
|
+
@TargetGroupInstanceSet.setter
|
|
1096
|
+
def TargetGroupInstanceSet(self, TargetGroupInstanceSet):
|
|
1097
|
+
self._TargetGroupInstanceSet = TargetGroupInstanceSet
|
|
1098
|
+
|
|
1099
|
+
@property
|
|
1100
|
+
def RealCount(self):
|
|
1101
|
+
"""Actual statistical quantity, which is not affected by Limit, Offset, or CAM.
|
|
1102
|
+
:rtype: int
|
|
1103
|
+
"""
|
|
1104
|
+
return self._RealCount
|
|
1105
|
+
|
|
1106
|
+
@RealCount.setter
|
|
1107
|
+
def RealCount(self, RealCount):
|
|
1108
|
+
self._RealCount = RealCount
|
|
1109
|
+
|
|
1110
|
+
@property
|
|
1111
|
+
def RequestId(self):
|
|
1112
|
+
"""The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
|
|
1113
|
+
:rtype: str
|
|
1114
|
+
"""
|
|
1115
|
+
return self._RequestId
|
|
1116
|
+
|
|
1117
|
+
@RequestId.setter
|
|
1118
|
+
def RequestId(self, RequestId):
|
|
1119
|
+
self._RequestId = RequestId
|
|
1120
|
+
|
|
1121
|
+
|
|
1122
|
+
def _deserialize(self, params):
|
|
1123
|
+
self._TotalCount = params.get("TotalCount")
|
|
1124
|
+
if params.get("TargetGroupInstanceSet") is not None:
|
|
1125
|
+
self._TargetGroupInstanceSet = []
|
|
1126
|
+
for item in params.get("TargetGroupInstanceSet"):
|
|
1127
|
+
obj = TargetGroupBackend()
|
|
1128
|
+
obj._deserialize(item)
|
|
1129
|
+
self._TargetGroupInstanceSet.append(obj)
|
|
1130
|
+
self._RealCount = params.get("RealCount")
|
|
1131
|
+
self._RequestId = params.get("RequestId")
|
|
1132
|
+
|
|
1133
|
+
|
|
1134
|
+
class DescribeTargetGroupListRequest(AbstractModel):
|
|
1135
|
+
"""DescribeTargetGroupList request structure.
|
|
1136
|
+
|
|
1137
|
+
"""
|
|
1138
|
+
|
|
1139
|
+
def __init__(self):
|
|
1140
|
+
r"""
|
|
1141
|
+
:param _TargetGroupIds: Target group ID array.
|
|
1142
|
+
:type TargetGroupIds: list of str
|
|
1143
|
+
:param _Filters: Filter criterion array, which supports TargetGroupVpcId and TargetGroupName.
|
|
1144
|
+
:type Filters: list of Filter
|
|
1145
|
+
:param _Offset: Starting display offset.
|
|
1146
|
+
:type Offset: int
|
|
1147
|
+
:param _Limit: Limit on the number of displayed entries. Default value: 20.
|
|
1148
|
+
:type Limit: int
|
|
1149
|
+
"""
|
|
1150
|
+
self._TargetGroupIds = None
|
|
1151
|
+
self._Filters = None
|
|
1152
|
+
self._Offset = None
|
|
1153
|
+
self._Limit = None
|
|
1154
|
+
|
|
1155
|
+
@property
|
|
1156
|
+
def TargetGroupIds(self):
|
|
1157
|
+
"""Target group ID array.
|
|
1158
|
+
:rtype: list of str
|
|
1159
|
+
"""
|
|
1160
|
+
return self._TargetGroupIds
|
|
1161
|
+
|
|
1162
|
+
@TargetGroupIds.setter
|
|
1163
|
+
def TargetGroupIds(self, TargetGroupIds):
|
|
1164
|
+
self._TargetGroupIds = TargetGroupIds
|
|
1165
|
+
|
|
1166
|
+
@property
|
|
1167
|
+
def Filters(self):
|
|
1168
|
+
"""Filter criterion array, which supports TargetGroupVpcId and TargetGroupName.
|
|
1169
|
+
:rtype: list of Filter
|
|
1170
|
+
"""
|
|
1171
|
+
return self._Filters
|
|
1172
|
+
|
|
1173
|
+
@Filters.setter
|
|
1174
|
+
def Filters(self, Filters):
|
|
1175
|
+
self._Filters = Filters
|
|
1176
|
+
|
|
1177
|
+
@property
|
|
1178
|
+
def Offset(self):
|
|
1179
|
+
"""Starting display offset.
|
|
1180
|
+
:rtype: int
|
|
1181
|
+
"""
|
|
1182
|
+
return self._Offset
|
|
1183
|
+
|
|
1184
|
+
@Offset.setter
|
|
1185
|
+
def Offset(self, Offset):
|
|
1186
|
+
self._Offset = Offset
|
|
1187
|
+
|
|
1188
|
+
@property
|
|
1189
|
+
def Limit(self):
|
|
1190
|
+
"""Limit on the number of displayed entries. Default value: 20.
|
|
1191
|
+
:rtype: int
|
|
1192
|
+
"""
|
|
1193
|
+
return self._Limit
|
|
1194
|
+
|
|
1195
|
+
@Limit.setter
|
|
1196
|
+
def Limit(self, Limit):
|
|
1197
|
+
self._Limit = Limit
|
|
1198
|
+
|
|
1199
|
+
|
|
1200
|
+
def _deserialize(self, params):
|
|
1201
|
+
self._TargetGroupIds = params.get("TargetGroupIds")
|
|
1202
|
+
if params.get("Filters") is not None:
|
|
1203
|
+
self._Filters = []
|
|
1204
|
+
for item in params.get("Filters"):
|
|
1205
|
+
obj = Filter()
|
|
1206
|
+
obj._deserialize(item)
|
|
1207
|
+
self._Filters.append(obj)
|
|
1208
|
+
self._Offset = params.get("Offset")
|
|
1209
|
+
self._Limit = params.get("Limit")
|
|
1210
|
+
memeber_set = set(params.keys())
|
|
1211
|
+
for name, value in vars(self).items():
|
|
1212
|
+
property_name = name[1:]
|
|
1213
|
+
if property_name in memeber_set:
|
|
1214
|
+
memeber_set.remove(property_name)
|
|
1215
|
+
if len(memeber_set) > 0:
|
|
1216
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
1217
|
+
|
|
1218
|
+
|
|
1219
|
+
|
|
1220
|
+
class DescribeTargetGroupListResponse(AbstractModel):
|
|
1221
|
+
"""DescribeTargetGroupList response structure.
|
|
1222
|
+
|
|
1223
|
+
"""
|
|
1224
|
+
|
|
1225
|
+
def __init__(self):
|
|
1226
|
+
r"""
|
|
1227
|
+
:param _TotalCount: Number of displayed results.
|
|
1228
|
+
:type TotalCount: int
|
|
1229
|
+
:param _TargetGroupSet: Collection of displayed target group information.
|
|
1230
|
+
:type TargetGroupSet: list of TargetGroupInfo
|
|
1231
|
+
:param _RequestId: The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
|
|
1232
|
+
:type RequestId: str
|
|
1233
|
+
"""
|
|
1234
|
+
self._TotalCount = None
|
|
1235
|
+
self._TargetGroupSet = None
|
|
1236
|
+
self._RequestId = None
|
|
1237
|
+
|
|
1238
|
+
@property
|
|
1239
|
+
def TotalCount(self):
|
|
1240
|
+
"""Number of displayed results.
|
|
1241
|
+
:rtype: int
|
|
1242
|
+
"""
|
|
1243
|
+
return self._TotalCount
|
|
1244
|
+
|
|
1245
|
+
@TotalCount.setter
|
|
1246
|
+
def TotalCount(self, TotalCount):
|
|
1247
|
+
self._TotalCount = TotalCount
|
|
1248
|
+
|
|
1249
|
+
@property
|
|
1250
|
+
def TargetGroupSet(self):
|
|
1251
|
+
"""Collection of displayed target group information.
|
|
1252
|
+
:rtype: list of TargetGroupInfo
|
|
1253
|
+
"""
|
|
1254
|
+
return self._TargetGroupSet
|
|
1255
|
+
|
|
1256
|
+
@TargetGroupSet.setter
|
|
1257
|
+
def TargetGroupSet(self, TargetGroupSet):
|
|
1258
|
+
self._TargetGroupSet = TargetGroupSet
|
|
1259
|
+
|
|
1260
|
+
@property
|
|
1261
|
+
def RequestId(self):
|
|
1262
|
+
"""The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
|
|
1263
|
+
:rtype: str
|
|
1264
|
+
"""
|
|
1265
|
+
return self._RequestId
|
|
1266
|
+
|
|
1267
|
+
@RequestId.setter
|
|
1268
|
+
def RequestId(self, RequestId):
|
|
1269
|
+
self._RequestId = RequestId
|
|
1270
|
+
|
|
1271
|
+
|
|
1272
|
+
def _deserialize(self, params):
|
|
1273
|
+
self._TotalCount = params.get("TotalCount")
|
|
1274
|
+
if params.get("TargetGroupSet") is not None:
|
|
1275
|
+
self._TargetGroupSet = []
|
|
1276
|
+
for item in params.get("TargetGroupSet"):
|
|
1277
|
+
obj = TargetGroupInfo()
|
|
1278
|
+
obj._deserialize(item)
|
|
1279
|
+
self._TargetGroupSet.append(obj)
|
|
1280
|
+
self._RequestId = params.get("RequestId")
|
|
1281
|
+
|
|
1282
|
+
|
|
1283
|
+
class DescribeTargetGroupsRequest(AbstractModel):
|
|
1284
|
+
"""DescribeTargetGroups request structure.
|
|
1285
|
+
|
|
1286
|
+
"""
|
|
1287
|
+
|
|
1288
|
+
def __init__(self):
|
|
1289
|
+
r"""
|
|
1290
|
+
:param _TargetGroupIds: Target group ID, which is mutually exclusive with Filters.
|
|
1291
|
+
:type TargetGroupIds: list of str
|
|
1292
|
+
:param _Limit: Limit on the number of displayed entries. Default value: 20.
|
|
1293
|
+
:type Limit: int
|
|
1294
|
+
:param _Offset: Starting display offset.
|
|
1295
|
+
:type Offset: int
|
|
1296
|
+
:param _Filters: Filter criterion array, which supports TargetGroupVpcId and TargetGroupName.
|
|
1297
|
+
:type Filters: list of Filter
|
|
1298
|
+
"""
|
|
1299
|
+
self._TargetGroupIds = None
|
|
1300
|
+
self._Limit = None
|
|
1301
|
+
self._Offset = None
|
|
1302
|
+
self._Filters = None
|
|
1303
|
+
|
|
1304
|
+
@property
|
|
1305
|
+
def TargetGroupIds(self):
|
|
1306
|
+
"""Target group ID, which is mutually exclusive with Filters.
|
|
1307
|
+
:rtype: list of str
|
|
1308
|
+
"""
|
|
1309
|
+
return self._TargetGroupIds
|
|
1310
|
+
|
|
1311
|
+
@TargetGroupIds.setter
|
|
1312
|
+
def TargetGroupIds(self, TargetGroupIds):
|
|
1313
|
+
self._TargetGroupIds = TargetGroupIds
|
|
1314
|
+
|
|
1315
|
+
@property
|
|
1316
|
+
def Limit(self):
|
|
1317
|
+
"""Limit on the number of displayed entries. Default value: 20.
|
|
1318
|
+
:rtype: int
|
|
1319
|
+
"""
|
|
1320
|
+
return self._Limit
|
|
1321
|
+
|
|
1322
|
+
@Limit.setter
|
|
1323
|
+
def Limit(self, Limit):
|
|
1324
|
+
self._Limit = Limit
|
|
1325
|
+
|
|
1326
|
+
@property
|
|
1327
|
+
def Offset(self):
|
|
1328
|
+
"""Starting display offset.
|
|
1329
|
+
:rtype: int
|
|
1330
|
+
"""
|
|
1331
|
+
return self._Offset
|
|
1332
|
+
|
|
1333
|
+
@Offset.setter
|
|
1334
|
+
def Offset(self, Offset):
|
|
1335
|
+
self._Offset = Offset
|
|
1336
|
+
|
|
1337
|
+
@property
|
|
1338
|
+
def Filters(self):
|
|
1339
|
+
"""Filter criterion array, which supports TargetGroupVpcId and TargetGroupName.
|
|
1340
|
+
:rtype: list of Filter
|
|
1341
|
+
"""
|
|
1342
|
+
return self._Filters
|
|
1343
|
+
|
|
1344
|
+
@Filters.setter
|
|
1345
|
+
def Filters(self, Filters):
|
|
1346
|
+
self._Filters = Filters
|
|
1347
|
+
|
|
1348
|
+
|
|
1349
|
+
def _deserialize(self, params):
|
|
1350
|
+
self._TargetGroupIds = params.get("TargetGroupIds")
|
|
1351
|
+
self._Limit = params.get("Limit")
|
|
1352
|
+
self._Offset = params.get("Offset")
|
|
1353
|
+
if params.get("Filters") is not None:
|
|
1354
|
+
self._Filters = []
|
|
1355
|
+
for item in params.get("Filters"):
|
|
1356
|
+
obj = Filter()
|
|
1357
|
+
obj._deserialize(item)
|
|
1358
|
+
self._Filters.append(obj)
|
|
1359
|
+
memeber_set = set(params.keys())
|
|
1360
|
+
for name, value in vars(self).items():
|
|
1361
|
+
property_name = name[1:]
|
|
1362
|
+
if property_name in memeber_set:
|
|
1363
|
+
memeber_set.remove(property_name)
|
|
1364
|
+
if len(memeber_set) > 0:
|
|
1365
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
1366
|
+
|
|
1367
|
+
|
|
1368
|
+
|
|
1369
|
+
class DescribeTargetGroupsResponse(AbstractModel):
|
|
1370
|
+
"""DescribeTargetGroups response structure.
|
|
1371
|
+
|
|
1372
|
+
"""
|
|
1373
|
+
|
|
1374
|
+
def __init__(self):
|
|
1375
|
+
r"""
|
|
1376
|
+
:param _TotalCount: Number of displayed results.
|
|
1377
|
+
:type TotalCount: int
|
|
1378
|
+
:param _TargetGroupSet: Collection of displayed target group information.
|
|
1379
|
+
:type TargetGroupSet: list of TargetGroupInfo
|
|
1380
|
+
:param _RequestId: The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
|
|
1381
|
+
:type RequestId: str
|
|
1382
|
+
"""
|
|
1383
|
+
self._TotalCount = None
|
|
1384
|
+
self._TargetGroupSet = None
|
|
1385
|
+
self._RequestId = None
|
|
1386
|
+
|
|
1387
|
+
@property
|
|
1388
|
+
def TotalCount(self):
|
|
1389
|
+
"""Number of displayed results.
|
|
1390
|
+
:rtype: int
|
|
1391
|
+
"""
|
|
1392
|
+
return self._TotalCount
|
|
1393
|
+
|
|
1394
|
+
@TotalCount.setter
|
|
1395
|
+
def TotalCount(self, TotalCount):
|
|
1396
|
+
self._TotalCount = TotalCount
|
|
1397
|
+
|
|
1398
|
+
@property
|
|
1399
|
+
def TargetGroupSet(self):
|
|
1400
|
+
"""Collection of displayed target group information.
|
|
1401
|
+
:rtype: list of TargetGroupInfo
|
|
1402
|
+
"""
|
|
1403
|
+
return self._TargetGroupSet
|
|
1404
|
+
|
|
1405
|
+
@TargetGroupSet.setter
|
|
1406
|
+
def TargetGroupSet(self, TargetGroupSet):
|
|
1407
|
+
self._TargetGroupSet = TargetGroupSet
|
|
1408
|
+
|
|
1409
|
+
@property
|
|
1410
|
+
def RequestId(self):
|
|
1411
|
+
"""The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
|
|
1412
|
+
:rtype: str
|
|
1413
|
+
"""
|
|
1414
|
+
return self._RequestId
|
|
1415
|
+
|
|
1416
|
+
@RequestId.setter
|
|
1417
|
+
def RequestId(self, RequestId):
|
|
1418
|
+
self._RequestId = RequestId
|
|
1419
|
+
|
|
1420
|
+
|
|
1421
|
+
def _deserialize(self, params):
|
|
1422
|
+
self._TotalCount = params.get("TotalCount")
|
|
1423
|
+
if params.get("TargetGroupSet") is not None:
|
|
1424
|
+
self._TargetGroupSet = []
|
|
1425
|
+
for item in params.get("TargetGroupSet"):
|
|
1426
|
+
obj = TargetGroupInfo()
|
|
1427
|
+
obj._deserialize(item)
|
|
1428
|
+
self._TargetGroupSet.append(obj)
|
|
1429
|
+
self._RequestId = params.get("RequestId")
|
|
1430
|
+
|
|
1431
|
+
|
|
1432
|
+
class DescribeTaskStatusRequest(AbstractModel):
|
|
1433
|
+
"""DescribeTaskStatus request structure.
|
|
1434
|
+
|
|
1435
|
+
"""
|
|
1436
|
+
|
|
1437
|
+
def __init__(self):
|
|
1438
|
+
r"""
|
|
1439
|
+
:param _TaskId: Request ID, which is the RequestId parameter returned by the API.
|
|
1440
|
+
:type TaskId: str
|
|
1441
|
+
"""
|
|
1442
|
+
self._TaskId = None
|
|
1443
|
+
|
|
1444
|
+
@property
|
|
1445
|
+
def TaskId(self):
|
|
1446
|
+
"""Request ID, which is the RequestId parameter returned by the API.
|
|
1447
|
+
:rtype: str
|
|
1448
|
+
"""
|
|
1449
|
+
return self._TaskId
|
|
1450
|
+
|
|
1451
|
+
@TaskId.setter
|
|
1452
|
+
def TaskId(self, TaskId):
|
|
1453
|
+
self._TaskId = TaskId
|
|
1454
|
+
|
|
1455
|
+
|
|
1456
|
+
def _deserialize(self, params):
|
|
1457
|
+
self._TaskId = params.get("TaskId")
|
|
1458
|
+
memeber_set = set(params.keys())
|
|
1459
|
+
for name, value in vars(self).items():
|
|
1460
|
+
property_name = name[1:]
|
|
1461
|
+
if property_name in memeber_set:
|
|
1462
|
+
memeber_set.remove(property_name)
|
|
1463
|
+
if len(memeber_set) > 0:
|
|
1464
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
1465
|
+
|
|
1466
|
+
|
|
1467
|
+
|
|
1468
|
+
class DescribeTaskStatusResponse(AbstractModel):
|
|
1469
|
+
"""DescribeTaskStatus response structure.
|
|
1470
|
+
|
|
1471
|
+
"""
|
|
1472
|
+
|
|
1473
|
+
def __init__(self):
|
|
1474
|
+
r"""
|
|
1475
|
+
:param _Status: Current status of task. Valid values: 0 (succeeded), 1 (failed), 2 (in progress).
|
|
1476
|
+
:type Status: int
|
|
1477
|
+
:param _LoadBalancerIds: Array of unique CLB instance IDs.
|
|
1478
|
+
|
|
1479
|
+
Note: This field may return null, indicating that no valid value can be obtained.
|
|
1480
|
+
:type LoadBalancerIds: list of str
|
|
1481
|
+
:param _Message: Auxiliary description information, such as failure causes.
|
|
1482
|
+
Note: This field may return null, indicating that no valid value can be obtained.
|
|
1483
|
+
:type Message: str
|
|
1484
|
+
:param _RequestId: The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
|
|
1485
|
+
:type RequestId: str
|
|
1486
|
+
"""
|
|
1487
|
+
self._Status = None
|
|
1488
|
+
self._LoadBalancerIds = None
|
|
1489
|
+
self._Message = None
|
|
1490
|
+
self._RequestId = None
|
|
1491
|
+
|
|
1492
|
+
@property
|
|
1493
|
+
def Status(self):
|
|
1494
|
+
"""Current status of task. Valid values: 0 (succeeded), 1 (failed), 2 (in progress).
|
|
1495
|
+
:rtype: int
|
|
1496
|
+
"""
|
|
1497
|
+
return self._Status
|
|
1498
|
+
|
|
1499
|
+
@Status.setter
|
|
1500
|
+
def Status(self, Status):
|
|
1501
|
+
self._Status = Status
|
|
1502
|
+
|
|
1503
|
+
@property
|
|
1504
|
+
def LoadBalancerIds(self):
|
|
1505
|
+
"""Array of unique CLB instance IDs.
|
|
1506
|
+
|
|
1507
|
+
Note: This field may return null, indicating that no valid value can be obtained.
|
|
1508
|
+
:rtype: list of str
|
|
1509
|
+
"""
|
|
1510
|
+
return self._LoadBalancerIds
|
|
1511
|
+
|
|
1512
|
+
@LoadBalancerIds.setter
|
|
1513
|
+
def LoadBalancerIds(self, LoadBalancerIds):
|
|
1514
|
+
self._LoadBalancerIds = LoadBalancerIds
|
|
1515
|
+
|
|
1516
|
+
@property
|
|
1517
|
+
def Message(self):
|
|
1518
|
+
"""Auxiliary description information, such as failure causes.
|
|
1519
|
+
Note: This field may return null, indicating that no valid value can be obtained.
|
|
1520
|
+
:rtype: str
|
|
1521
|
+
"""
|
|
1522
|
+
return self._Message
|
|
1523
|
+
|
|
1524
|
+
@Message.setter
|
|
1525
|
+
def Message(self, Message):
|
|
1526
|
+
self._Message = Message
|
|
1527
|
+
|
|
1528
|
+
@property
|
|
1529
|
+
def RequestId(self):
|
|
1530
|
+
"""The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
|
|
1531
|
+
:rtype: str
|
|
1532
|
+
"""
|
|
1533
|
+
return self._RequestId
|
|
1534
|
+
|
|
1535
|
+
@RequestId.setter
|
|
1536
|
+
def RequestId(self, RequestId):
|
|
1537
|
+
self._RequestId = RequestId
|
|
1538
|
+
|
|
1539
|
+
|
|
1540
|
+
def _deserialize(self, params):
|
|
1541
|
+
self._Status = params.get("Status")
|
|
1542
|
+
self._LoadBalancerIds = params.get("LoadBalancerIds")
|
|
1543
|
+
self._Message = params.get("Message")
|
|
1544
|
+
self._RequestId = params.get("RequestId")
|
|
1545
|
+
|
|
1546
|
+
|
|
1547
|
+
class DisassociateTargetGroupsRequest(AbstractModel):
|
|
1548
|
+
"""DisassociateTargetGroups request structure.
|
|
1549
|
+
|
|
1550
|
+
"""
|
|
1551
|
+
|
|
1552
|
+
def __init__(self):
|
|
1553
|
+
r"""
|
|
1554
|
+
:param _Associations: List of target groups to unbind.
|
|
1555
|
+
:type Associations: list of TargetGroupAssociation
|
|
1556
|
+
"""
|
|
1557
|
+
self._Associations = None
|
|
1558
|
+
|
|
1559
|
+
@property
|
|
1560
|
+
def Associations(self):
|
|
1561
|
+
"""List of target groups to unbind.
|
|
1562
|
+
:rtype: list of TargetGroupAssociation
|
|
1563
|
+
"""
|
|
1564
|
+
return self._Associations
|
|
1565
|
+
|
|
1566
|
+
@Associations.setter
|
|
1567
|
+
def Associations(self, Associations):
|
|
1568
|
+
self._Associations = Associations
|
|
1569
|
+
|
|
1570
|
+
|
|
1571
|
+
def _deserialize(self, params):
|
|
1572
|
+
if params.get("Associations") is not None:
|
|
1573
|
+
self._Associations = []
|
|
1574
|
+
for item in params.get("Associations"):
|
|
1575
|
+
obj = TargetGroupAssociation()
|
|
1576
|
+
obj._deserialize(item)
|
|
1577
|
+
self._Associations.append(obj)
|
|
1578
|
+
memeber_set = set(params.keys())
|
|
1579
|
+
for name, value in vars(self).items():
|
|
1580
|
+
property_name = name[1:]
|
|
1581
|
+
if property_name in memeber_set:
|
|
1582
|
+
memeber_set.remove(property_name)
|
|
1583
|
+
if len(memeber_set) > 0:
|
|
1584
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
1585
|
+
|
|
1586
|
+
|
|
1587
|
+
|
|
1588
|
+
class DisassociateTargetGroupsResponse(AbstractModel):
|
|
1589
|
+
"""DisassociateTargetGroups response structure.
|
|
1590
|
+
|
|
1591
|
+
"""
|
|
1592
|
+
|
|
1593
|
+
def __init__(self):
|
|
1594
|
+
r"""
|
|
1595
|
+
:param _RequestId: The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
|
|
1596
|
+
:type RequestId: str
|
|
1597
|
+
"""
|
|
1598
|
+
self._RequestId = None
|
|
1599
|
+
|
|
1600
|
+
@property
|
|
1601
|
+
def RequestId(self):
|
|
1602
|
+
"""The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
|
|
1603
|
+
:rtype: str
|
|
1604
|
+
"""
|
|
1605
|
+
return self._RequestId
|
|
1606
|
+
|
|
1607
|
+
@RequestId.setter
|
|
1608
|
+
def RequestId(self, RequestId):
|
|
1609
|
+
self._RequestId = RequestId
|
|
1610
|
+
|
|
1611
|
+
|
|
1612
|
+
def _deserialize(self, params):
|
|
1613
|
+
self._RequestId = params.get("RequestId")
|
|
1614
|
+
|
|
1615
|
+
|
|
1616
|
+
class Filter(AbstractModel):
|
|
1617
|
+
"""Filter criteria
|
|
1618
|
+
|
|
1619
|
+
"""
|
|
1620
|
+
|
|
1621
|
+
def __init__(self):
|
|
1622
|
+
r"""
|
|
1623
|
+
:param _Name: Filter name
|
|
1624
|
+
:type Name: str
|
|
1625
|
+
:param _Values: Filter value array
|
|
1626
|
+
:type Values: list of str
|
|
1627
|
+
"""
|
|
1628
|
+
self._Name = None
|
|
1629
|
+
self._Values = None
|
|
1630
|
+
|
|
1631
|
+
@property
|
|
1632
|
+
def Name(self):
|
|
1633
|
+
"""Filter name
|
|
1634
|
+
:rtype: str
|
|
1635
|
+
"""
|
|
1636
|
+
return self._Name
|
|
1637
|
+
|
|
1638
|
+
@Name.setter
|
|
1639
|
+
def Name(self, Name):
|
|
1640
|
+
self._Name = Name
|
|
1641
|
+
|
|
1642
|
+
@property
|
|
1643
|
+
def Values(self):
|
|
1644
|
+
"""Filter value array
|
|
1645
|
+
:rtype: list of str
|
|
1646
|
+
"""
|
|
1647
|
+
return self._Values
|
|
1648
|
+
|
|
1649
|
+
@Values.setter
|
|
1650
|
+
def Values(self, Values):
|
|
1651
|
+
self._Values = Values
|
|
1652
|
+
|
|
1653
|
+
|
|
1654
|
+
def _deserialize(self, params):
|
|
1655
|
+
self._Name = params.get("Name")
|
|
1656
|
+
self._Values = params.get("Values")
|
|
1657
|
+
memeber_set = set(params.keys())
|
|
1658
|
+
for name, value in vars(self).items():
|
|
1659
|
+
property_name = name[1:]
|
|
1660
|
+
if property_name in memeber_set:
|
|
1661
|
+
memeber_set.remove(property_name)
|
|
1662
|
+
if len(memeber_set) > 0:
|
|
1663
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
1664
|
+
|
|
1665
|
+
|
|
1666
|
+
|
|
1667
|
+
class GatewayLoadBalancer(AbstractModel):
|
|
1668
|
+
"""Information on the GWLB instance
|
|
1669
|
+
|
|
1670
|
+
"""
|
|
1671
|
+
|
|
1672
|
+
def __init__(self):
|
|
1673
|
+
r"""
|
|
1674
|
+
:param _LoadBalancerId: GWLB instance ID.
|
|
1675
|
+
:type LoadBalancerId: str
|
|
1676
|
+
:param _LoadBalancerName: Name of the GWLB instance.
|
|
1677
|
+
:type LoadBalancerName: str
|
|
1678
|
+
:param _VpcId: VPC to which the GWLB belongs.Note: this field may return `null`, indicating that no valid values can be obtained.
|
|
1679
|
+
:type VpcId: str
|
|
1680
|
+
:param _SubnetId: Subnet to which the GWLB belongs.
|
|
1681
|
+
:type SubnetId: str
|
|
1682
|
+
:param _Vips: Virtual IP of GWLB for providing service.
|
|
1683
|
+
:type Vips: list of str
|
|
1684
|
+
:param _Status: GWLB instance status.0: creating, 1: normal operation, 3: deleting.
|
|
1685
|
+
:type Status: int
|
|
1686
|
+
:param _TargetGroupId: Unique ID of associated target group.Note: this field may return `null`, indicating that no valid values can be obtained.
|
|
1687
|
+
:type TargetGroupId: str
|
|
1688
|
+
:param _DeleteProtect: Whether to enable the deletion protection feature.Note: this field may return `null`, indicating that no valid values can be obtained.
|
|
1689
|
+
:type DeleteProtect: bool
|
|
1690
|
+
:param _Tags: Tag information on the CLB instance.Note: this field may return `null`, indicating that no valid values can be obtained.
|
|
1691
|
+
:type Tags: list of TagInfo
|
|
1692
|
+
:param _CreateTime: Creation time.
|
|
1693
|
+
:type CreateTime: str
|
|
1694
|
+
:param _ChargeType: Billing type of the GWLB instance. POSTPAID_BY_HOUR: pay-as-you-goNote: this field may return `null`, indicating that no valid values can be obtained.
|
|
1695
|
+
:type ChargeType: str
|
|
1696
|
+
:param _Isolation: 0: Not isolated; 1: Isolated.
|
|
1697
|
+
|
|
1698
|
+
Note: this field may return `null`, indicating that no valid values can be obtained.
|
|
1699
|
+
:type Isolation: int
|
|
1700
|
+
:param _IsolatedTime: CLB instance isolation time
|
|
1701
|
+
|
|
1702
|
+
Note: this field may return `null`, indicating that no valid values can be obtained.
|
|
1703
|
+
:type IsolatedTime: str
|
|
1704
|
+
"""
|
|
1705
|
+
self._LoadBalancerId = None
|
|
1706
|
+
self._LoadBalancerName = None
|
|
1707
|
+
self._VpcId = None
|
|
1708
|
+
self._SubnetId = None
|
|
1709
|
+
self._Vips = None
|
|
1710
|
+
self._Status = None
|
|
1711
|
+
self._TargetGroupId = None
|
|
1712
|
+
self._DeleteProtect = None
|
|
1713
|
+
self._Tags = None
|
|
1714
|
+
self._CreateTime = None
|
|
1715
|
+
self._ChargeType = None
|
|
1716
|
+
self._Isolation = None
|
|
1717
|
+
self._IsolatedTime = None
|
|
1718
|
+
|
|
1719
|
+
@property
|
|
1720
|
+
def LoadBalancerId(self):
|
|
1721
|
+
"""GWLB instance ID.
|
|
1722
|
+
:rtype: str
|
|
1723
|
+
"""
|
|
1724
|
+
return self._LoadBalancerId
|
|
1725
|
+
|
|
1726
|
+
@LoadBalancerId.setter
|
|
1727
|
+
def LoadBalancerId(self, LoadBalancerId):
|
|
1728
|
+
self._LoadBalancerId = LoadBalancerId
|
|
1729
|
+
|
|
1730
|
+
@property
|
|
1731
|
+
def LoadBalancerName(self):
|
|
1732
|
+
"""Name of the GWLB instance.
|
|
1733
|
+
:rtype: str
|
|
1734
|
+
"""
|
|
1735
|
+
return self._LoadBalancerName
|
|
1736
|
+
|
|
1737
|
+
@LoadBalancerName.setter
|
|
1738
|
+
def LoadBalancerName(self, LoadBalancerName):
|
|
1739
|
+
self._LoadBalancerName = LoadBalancerName
|
|
1740
|
+
|
|
1741
|
+
@property
|
|
1742
|
+
def VpcId(self):
|
|
1743
|
+
"""VPC to which the GWLB belongs.Note: this field may return `null`, indicating that no valid values can be obtained.
|
|
1744
|
+
:rtype: str
|
|
1745
|
+
"""
|
|
1746
|
+
return self._VpcId
|
|
1747
|
+
|
|
1748
|
+
@VpcId.setter
|
|
1749
|
+
def VpcId(self, VpcId):
|
|
1750
|
+
self._VpcId = VpcId
|
|
1751
|
+
|
|
1752
|
+
@property
|
|
1753
|
+
def SubnetId(self):
|
|
1754
|
+
"""Subnet to which the GWLB belongs.
|
|
1755
|
+
:rtype: str
|
|
1756
|
+
"""
|
|
1757
|
+
return self._SubnetId
|
|
1758
|
+
|
|
1759
|
+
@SubnetId.setter
|
|
1760
|
+
def SubnetId(self, SubnetId):
|
|
1761
|
+
self._SubnetId = SubnetId
|
|
1762
|
+
|
|
1763
|
+
@property
|
|
1764
|
+
def Vips(self):
|
|
1765
|
+
"""Virtual IP of GWLB for providing service.
|
|
1766
|
+
:rtype: list of str
|
|
1767
|
+
"""
|
|
1768
|
+
return self._Vips
|
|
1769
|
+
|
|
1770
|
+
@Vips.setter
|
|
1771
|
+
def Vips(self, Vips):
|
|
1772
|
+
self._Vips = Vips
|
|
1773
|
+
|
|
1774
|
+
@property
|
|
1775
|
+
def Status(self):
|
|
1776
|
+
"""GWLB instance status.0: creating, 1: normal operation, 3: deleting.
|
|
1777
|
+
:rtype: int
|
|
1778
|
+
"""
|
|
1779
|
+
return self._Status
|
|
1780
|
+
|
|
1781
|
+
@Status.setter
|
|
1782
|
+
def Status(self, Status):
|
|
1783
|
+
self._Status = Status
|
|
1784
|
+
|
|
1785
|
+
@property
|
|
1786
|
+
def TargetGroupId(self):
|
|
1787
|
+
"""Unique ID of associated target group.Note: this field may return `null`, indicating that no valid values can be obtained.
|
|
1788
|
+
:rtype: str
|
|
1789
|
+
"""
|
|
1790
|
+
return self._TargetGroupId
|
|
1791
|
+
|
|
1792
|
+
@TargetGroupId.setter
|
|
1793
|
+
def TargetGroupId(self, TargetGroupId):
|
|
1794
|
+
self._TargetGroupId = TargetGroupId
|
|
1795
|
+
|
|
1796
|
+
@property
|
|
1797
|
+
def DeleteProtect(self):
|
|
1798
|
+
"""Whether to enable the deletion protection feature.Note: this field may return `null`, indicating that no valid values can be obtained.
|
|
1799
|
+
:rtype: bool
|
|
1800
|
+
"""
|
|
1801
|
+
return self._DeleteProtect
|
|
1802
|
+
|
|
1803
|
+
@DeleteProtect.setter
|
|
1804
|
+
def DeleteProtect(self, DeleteProtect):
|
|
1805
|
+
self._DeleteProtect = DeleteProtect
|
|
1806
|
+
|
|
1807
|
+
@property
|
|
1808
|
+
def Tags(self):
|
|
1809
|
+
"""Tag information on the CLB instance.Note: this field may return `null`, indicating that no valid values can be obtained.
|
|
1810
|
+
:rtype: list of TagInfo
|
|
1811
|
+
"""
|
|
1812
|
+
return self._Tags
|
|
1813
|
+
|
|
1814
|
+
@Tags.setter
|
|
1815
|
+
def Tags(self, Tags):
|
|
1816
|
+
self._Tags = Tags
|
|
1817
|
+
|
|
1818
|
+
@property
|
|
1819
|
+
def CreateTime(self):
|
|
1820
|
+
"""Creation time.
|
|
1821
|
+
:rtype: str
|
|
1822
|
+
"""
|
|
1823
|
+
return self._CreateTime
|
|
1824
|
+
|
|
1825
|
+
@CreateTime.setter
|
|
1826
|
+
def CreateTime(self, CreateTime):
|
|
1827
|
+
self._CreateTime = CreateTime
|
|
1828
|
+
|
|
1829
|
+
@property
|
|
1830
|
+
def ChargeType(self):
|
|
1831
|
+
"""Billing type of the GWLB instance. POSTPAID_BY_HOUR: pay-as-you-goNote: this field may return `null`, indicating that no valid values can be obtained.
|
|
1832
|
+
:rtype: str
|
|
1833
|
+
"""
|
|
1834
|
+
return self._ChargeType
|
|
1835
|
+
|
|
1836
|
+
@ChargeType.setter
|
|
1837
|
+
def ChargeType(self, ChargeType):
|
|
1838
|
+
self._ChargeType = ChargeType
|
|
1839
|
+
|
|
1840
|
+
@property
|
|
1841
|
+
def Isolation(self):
|
|
1842
|
+
"""0: Not isolated; 1: Isolated.
|
|
1843
|
+
|
|
1844
|
+
Note: this field may return `null`, indicating that no valid values can be obtained.
|
|
1845
|
+
:rtype: int
|
|
1846
|
+
"""
|
|
1847
|
+
return self._Isolation
|
|
1848
|
+
|
|
1849
|
+
@Isolation.setter
|
|
1850
|
+
def Isolation(self, Isolation):
|
|
1851
|
+
self._Isolation = Isolation
|
|
1852
|
+
|
|
1853
|
+
@property
|
|
1854
|
+
def IsolatedTime(self):
|
|
1855
|
+
"""CLB instance isolation time
|
|
1856
|
+
|
|
1857
|
+
Note: this field may return `null`, indicating that no valid values can be obtained.
|
|
1858
|
+
:rtype: str
|
|
1859
|
+
"""
|
|
1860
|
+
return self._IsolatedTime
|
|
1861
|
+
|
|
1862
|
+
@IsolatedTime.setter
|
|
1863
|
+
def IsolatedTime(self, IsolatedTime):
|
|
1864
|
+
self._IsolatedTime = IsolatedTime
|
|
1865
|
+
|
|
1866
|
+
|
|
1867
|
+
def _deserialize(self, params):
|
|
1868
|
+
self._LoadBalancerId = params.get("LoadBalancerId")
|
|
1869
|
+
self._LoadBalancerName = params.get("LoadBalancerName")
|
|
1870
|
+
self._VpcId = params.get("VpcId")
|
|
1871
|
+
self._SubnetId = params.get("SubnetId")
|
|
1872
|
+
self._Vips = params.get("Vips")
|
|
1873
|
+
self._Status = params.get("Status")
|
|
1874
|
+
self._TargetGroupId = params.get("TargetGroupId")
|
|
1875
|
+
self._DeleteProtect = params.get("DeleteProtect")
|
|
1876
|
+
if params.get("Tags") is not None:
|
|
1877
|
+
self._Tags = []
|
|
1878
|
+
for item in params.get("Tags"):
|
|
1879
|
+
obj = TagInfo()
|
|
1880
|
+
obj._deserialize(item)
|
|
1881
|
+
self._Tags.append(obj)
|
|
1882
|
+
self._CreateTime = params.get("CreateTime")
|
|
1883
|
+
self._ChargeType = params.get("ChargeType")
|
|
1884
|
+
self._Isolation = params.get("Isolation")
|
|
1885
|
+
self._IsolatedTime = params.get("IsolatedTime")
|
|
1886
|
+
memeber_set = set(params.keys())
|
|
1887
|
+
for name, value in vars(self).items():
|
|
1888
|
+
property_name = name[1:]
|
|
1889
|
+
if property_name in memeber_set:
|
|
1890
|
+
memeber_set.remove(property_name)
|
|
1891
|
+
if len(memeber_set) > 0:
|
|
1892
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
1893
|
+
|
|
1894
|
+
|
|
1895
|
+
|
|
1896
|
+
class InquirePriceCreateGatewayLoadBalancerRequest(AbstractModel):
|
|
1897
|
+
"""InquirePriceCreateGatewayLoadBalancer request structure.
|
|
1898
|
+
|
|
1899
|
+
"""
|
|
1900
|
+
|
|
1901
|
+
def __init__(self):
|
|
1902
|
+
r"""
|
|
1903
|
+
:param _GoodsNum: Number of GWLB instances for inquiry, with a default of 1
|
|
1904
|
+
:type GoodsNum: int
|
|
1905
|
+
"""
|
|
1906
|
+
self._GoodsNum = None
|
|
1907
|
+
|
|
1908
|
+
@property
|
|
1909
|
+
def GoodsNum(self):
|
|
1910
|
+
"""Number of GWLB instances for inquiry, with a default of 1
|
|
1911
|
+
:rtype: int
|
|
1912
|
+
"""
|
|
1913
|
+
return self._GoodsNum
|
|
1914
|
+
|
|
1915
|
+
@GoodsNum.setter
|
|
1916
|
+
def GoodsNum(self, GoodsNum):
|
|
1917
|
+
self._GoodsNum = GoodsNum
|
|
1918
|
+
|
|
1919
|
+
|
|
1920
|
+
def _deserialize(self, params):
|
|
1921
|
+
self._GoodsNum = params.get("GoodsNum")
|
|
1922
|
+
memeber_set = set(params.keys())
|
|
1923
|
+
for name, value in vars(self).items():
|
|
1924
|
+
property_name = name[1:]
|
|
1925
|
+
if property_name in memeber_set:
|
|
1926
|
+
memeber_set.remove(property_name)
|
|
1927
|
+
if len(memeber_set) > 0:
|
|
1928
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
1929
|
+
|
|
1930
|
+
|
|
1931
|
+
|
|
1932
|
+
class InquirePriceCreateGatewayLoadBalancerResponse(AbstractModel):
|
|
1933
|
+
"""InquirePriceCreateGatewayLoadBalancer response structure.
|
|
1934
|
+
|
|
1935
|
+
"""
|
|
1936
|
+
|
|
1937
|
+
def __init__(self):
|
|
1938
|
+
r"""
|
|
1939
|
+
:param _Price: This parameter represents the corresponding price.
|
|
1940
|
+
:type Price: :class:`tencentcloud.gwlb.v20240906.models.Price`
|
|
1941
|
+
:param _RequestId: The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
|
|
1942
|
+
:type RequestId: str
|
|
1943
|
+
"""
|
|
1944
|
+
self._Price = None
|
|
1945
|
+
self._RequestId = None
|
|
1946
|
+
|
|
1947
|
+
@property
|
|
1948
|
+
def Price(self):
|
|
1949
|
+
"""This parameter represents the corresponding price.
|
|
1950
|
+
:rtype: :class:`tencentcloud.gwlb.v20240906.models.Price`
|
|
1951
|
+
"""
|
|
1952
|
+
return self._Price
|
|
1953
|
+
|
|
1954
|
+
@Price.setter
|
|
1955
|
+
def Price(self, Price):
|
|
1956
|
+
self._Price = Price
|
|
1957
|
+
|
|
1958
|
+
@property
|
|
1959
|
+
def RequestId(self):
|
|
1960
|
+
"""The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
|
|
1961
|
+
:rtype: str
|
|
1962
|
+
"""
|
|
1963
|
+
return self._RequestId
|
|
1964
|
+
|
|
1965
|
+
@RequestId.setter
|
|
1966
|
+
def RequestId(self, RequestId):
|
|
1967
|
+
self._RequestId = RequestId
|
|
1968
|
+
|
|
1969
|
+
|
|
1970
|
+
def _deserialize(self, params):
|
|
1971
|
+
if params.get("Price") is not None:
|
|
1972
|
+
self._Price = Price()
|
|
1973
|
+
self._Price._deserialize(params.get("Price"))
|
|
1974
|
+
self._RequestId = params.get("RequestId")
|
|
1975
|
+
|
|
1976
|
+
|
|
1977
|
+
class ItemPrice(AbstractModel):
|
|
1978
|
+
"""It describes the price information of a single item.
|
|
1979
|
+
|
|
1980
|
+
"""
|
|
1981
|
+
|
|
1982
|
+
def __init__(self):
|
|
1983
|
+
r"""
|
|
1984
|
+
:param _UnitPrice: Postpaid unit price. Unit: CNY.
|
|
1985
|
+
|
|
1986
|
+
Note: This field may return null, indicating that no valid value can be obtained.
|
|
1987
|
+
:type UnitPrice: float
|
|
1988
|
+
:param _ChargeUnit: Pay-as-you-go billing unit. Valid values: HOUR: indicates that the billing unit is calculated by hour. Current scenarios involving this billing unit include: postpaid by hour for instances (POSTPAID_BY_HOUR).Note: This field may return null, indicating that no valid value can be obtained.
|
|
1989
|
+
:type ChargeUnit: str
|
|
1990
|
+
:param _OriginalPrice: Original price of pre-payment (in CNY).
|
|
1991
|
+
|
|
1992
|
+
Note: This field may return null, indicating that no valid value can be obtained.
|
|
1993
|
+
:type OriginalPrice: float
|
|
1994
|
+
:param _DiscountPrice: Discount price of prepaid costs, unit: CNY.
|
|
1995
|
+
|
|
1996
|
+
Note: This field may return null, indicating that no valid value can be obtained.
|
|
1997
|
+
:type DiscountPrice: float
|
|
1998
|
+
:param _UnitPriceDiscount: Discounted unit price for pay-as-you-go. Unit: CNY.Note: This field may return null, indicating that no valid value can be obtained.
|
|
1999
|
+
:type UnitPriceDiscount: float
|
|
2000
|
+
:param _Discount: Discount, such as 20.0 representing 80% off.
|
|
2001
|
+
|
|
2002
|
+
Note: This field may return null, indicating that no valid value can be obtained.
|
|
2003
|
+
:type Discount: float
|
|
2004
|
+
"""
|
|
2005
|
+
self._UnitPrice = None
|
|
2006
|
+
self._ChargeUnit = None
|
|
2007
|
+
self._OriginalPrice = None
|
|
2008
|
+
self._DiscountPrice = None
|
|
2009
|
+
self._UnitPriceDiscount = None
|
|
2010
|
+
self._Discount = None
|
|
2011
|
+
|
|
2012
|
+
@property
|
|
2013
|
+
def UnitPrice(self):
|
|
2014
|
+
"""Postpaid unit price. Unit: CNY.
|
|
2015
|
+
|
|
2016
|
+
Note: This field may return null, indicating that no valid value can be obtained.
|
|
2017
|
+
:rtype: float
|
|
2018
|
+
"""
|
|
2019
|
+
return self._UnitPrice
|
|
2020
|
+
|
|
2021
|
+
@UnitPrice.setter
|
|
2022
|
+
def UnitPrice(self, UnitPrice):
|
|
2023
|
+
self._UnitPrice = UnitPrice
|
|
2024
|
+
|
|
2025
|
+
@property
|
|
2026
|
+
def ChargeUnit(self):
|
|
2027
|
+
"""Pay-as-you-go billing unit. Valid values: HOUR: indicates that the billing unit is calculated by hour. Current scenarios involving this billing unit include: postpaid by hour for instances (POSTPAID_BY_HOUR).Note: This field may return null, indicating that no valid value can be obtained.
|
|
2028
|
+
:rtype: str
|
|
2029
|
+
"""
|
|
2030
|
+
return self._ChargeUnit
|
|
2031
|
+
|
|
2032
|
+
@ChargeUnit.setter
|
|
2033
|
+
def ChargeUnit(self, ChargeUnit):
|
|
2034
|
+
self._ChargeUnit = ChargeUnit
|
|
2035
|
+
|
|
2036
|
+
@property
|
|
2037
|
+
def OriginalPrice(self):
|
|
2038
|
+
"""Original price of pre-payment (in CNY).
|
|
2039
|
+
|
|
2040
|
+
Note: This field may return null, indicating that no valid value can be obtained.
|
|
2041
|
+
:rtype: float
|
|
2042
|
+
"""
|
|
2043
|
+
return self._OriginalPrice
|
|
2044
|
+
|
|
2045
|
+
@OriginalPrice.setter
|
|
2046
|
+
def OriginalPrice(self, OriginalPrice):
|
|
2047
|
+
self._OriginalPrice = OriginalPrice
|
|
2048
|
+
|
|
2049
|
+
@property
|
|
2050
|
+
def DiscountPrice(self):
|
|
2051
|
+
"""Discount price of prepaid costs, unit: CNY.
|
|
2052
|
+
|
|
2053
|
+
Note: This field may return null, indicating that no valid value can be obtained.
|
|
2054
|
+
:rtype: float
|
|
2055
|
+
"""
|
|
2056
|
+
return self._DiscountPrice
|
|
2057
|
+
|
|
2058
|
+
@DiscountPrice.setter
|
|
2059
|
+
def DiscountPrice(self, DiscountPrice):
|
|
2060
|
+
self._DiscountPrice = DiscountPrice
|
|
2061
|
+
|
|
2062
|
+
@property
|
|
2063
|
+
def UnitPriceDiscount(self):
|
|
2064
|
+
"""Discounted unit price for pay-as-you-go. Unit: CNY.Note: This field may return null, indicating that no valid value can be obtained.
|
|
2065
|
+
:rtype: float
|
|
2066
|
+
"""
|
|
2067
|
+
return self._UnitPriceDiscount
|
|
2068
|
+
|
|
2069
|
+
@UnitPriceDiscount.setter
|
|
2070
|
+
def UnitPriceDiscount(self, UnitPriceDiscount):
|
|
2071
|
+
self._UnitPriceDiscount = UnitPriceDiscount
|
|
2072
|
+
|
|
2073
|
+
@property
|
|
2074
|
+
def Discount(self):
|
|
2075
|
+
"""Discount, such as 20.0 representing 80% off.
|
|
2076
|
+
|
|
2077
|
+
Note: This field may return null, indicating that no valid value can be obtained.
|
|
2078
|
+
:rtype: float
|
|
2079
|
+
"""
|
|
2080
|
+
return self._Discount
|
|
2081
|
+
|
|
2082
|
+
@Discount.setter
|
|
2083
|
+
def Discount(self, Discount):
|
|
2084
|
+
self._Discount = Discount
|
|
2085
|
+
|
|
2086
|
+
|
|
2087
|
+
def _deserialize(self, params):
|
|
2088
|
+
self._UnitPrice = params.get("UnitPrice")
|
|
2089
|
+
self._ChargeUnit = params.get("ChargeUnit")
|
|
2090
|
+
self._OriginalPrice = params.get("OriginalPrice")
|
|
2091
|
+
self._DiscountPrice = params.get("DiscountPrice")
|
|
2092
|
+
self._UnitPriceDiscount = params.get("UnitPriceDiscount")
|
|
2093
|
+
self._Discount = params.get("Discount")
|
|
2094
|
+
memeber_set = set(params.keys())
|
|
2095
|
+
for name, value in vars(self).items():
|
|
2096
|
+
property_name = name[1:]
|
|
2097
|
+
if property_name in memeber_set:
|
|
2098
|
+
memeber_set.remove(property_name)
|
|
2099
|
+
if len(memeber_set) > 0:
|
|
2100
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
2101
|
+
|
|
2102
|
+
|
|
2103
|
+
|
|
2104
|
+
class ModifyGatewayLoadBalancerAttributeRequest(AbstractModel):
|
|
2105
|
+
"""ModifyGatewayLoadBalancerAttribute request structure.
|
|
2106
|
+
|
|
2107
|
+
"""
|
|
2108
|
+
|
|
2109
|
+
def __init__(self):
|
|
2110
|
+
r"""
|
|
2111
|
+
:param _LoadBalancerId: Unique GWLB ID.
|
|
2112
|
+
:type LoadBalancerId: str
|
|
2113
|
+
:param _LoadBalancerName: GWLB name.
|
|
2114
|
+
:type LoadBalancerName: str
|
|
2115
|
+
"""
|
|
2116
|
+
self._LoadBalancerId = None
|
|
2117
|
+
self._LoadBalancerName = None
|
|
2118
|
+
|
|
2119
|
+
@property
|
|
2120
|
+
def LoadBalancerId(self):
|
|
2121
|
+
"""Unique GWLB ID.
|
|
2122
|
+
:rtype: str
|
|
2123
|
+
"""
|
|
2124
|
+
return self._LoadBalancerId
|
|
2125
|
+
|
|
2126
|
+
@LoadBalancerId.setter
|
|
2127
|
+
def LoadBalancerId(self, LoadBalancerId):
|
|
2128
|
+
self._LoadBalancerId = LoadBalancerId
|
|
2129
|
+
|
|
2130
|
+
@property
|
|
2131
|
+
def LoadBalancerName(self):
|
|
2132
|
+
"""GWLB name.
|
|
2133
|
+
:rtype: str
|
|
2134
|
+
"""
|
|
2135
|
+
return self._LoadBalancerName
|
|
2136
|
+
|
|
2137
|
+
@LoadBalancerName.setter
|
|
2138
|
+
def LoadBalancerName(self, LoadBalancerName):
|
|
2139
|
+
self._LoadBalancerName = LoadBalancerName
|
|
2140
|
+
|
|
2141
|
+
|
|
2142
|
+
def _deserialize(self, params):
|
|
2143
|
+
self._LoadBalancerId = params.get("LoadBalancerId")
|
|
2144
|
+
self._LoadBalancerName = params.get("LoadBalancerName")
|
|
2145
|
+
memeber_set = set(params.keys())
|
|
2146
|
+
for name, value in vars(self).items():
|
|
2147
|
+
property_name = name[1:]
|
|
2148
|
+
if property_name in memeber_set:
|
|
2149
|
+
memeber_set.remove(property_name)
|
|
2150
|
+
if len(memeber_set) > 0:
|
|
2151
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
2152
|
+
|
|
2153
|
+
|
|
2154
|
+
|
|
2155
|
+
class ModifyGatewayLoadBalancerAttributeResponse(AbstractModel):
|
|
2156
|
+
"""ModifyGatewayLoadBalancerAttribute response structure.
|
|
2157
|
+
|
|
2158
|
+
"""
|
|
2159
|
+
|
|
2160
|
+
def __init__(self):
|
|
2161
|
+
r"""
|
|
2162
|
+
:param _RequestId: The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
|
|
2163
|
+
:type RequestId: str
|
|
2164
|
+
"""
|
|
2165
|
+
self._RequestId = None
|
|
2166
|
+
|
|
2167
|
+
@property
|
|
2168
|
+
def RequestId(self):
|
|
2169
|
+
"""The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
|
|
2170
|
+
:rtype: str
|
|
2171
|
+
"""
|
|
2172
|
+
return self._RequestId
|
|
2173
|
+
|
|
2174
|
+
@RequestId.setter
|
|
2175
|
+
def RequestId(self, RequestId):
|
|
2176
|
+
self._RequestId = RequestId
|
|
2177
|
+
|
|
2178
|
+
|
|
2179
|
+
def _deserialize(self, params):
|
|
2180
|
+
self._RequestId = params.get("RequestId")
|
|
2181
|
+
|
|
2182
|
+
|
|
2183
|
+
class ModifyTargetGroupAttributeRequest(AbstractModel):
|
|
2184
|
+
"""ModifyTargetGroupAttribute request structure.
|
|
2185
|
+
|
|
2186
|
+
"""
|
|
2187
|
+
|
|
2188
|
+
def __init__(self):
|
|
2189
|
+
r"""
|
|
2190
|
+
:param _TargetGroupId: Target group ID.
|
|
2191
|
+
:type TargetGroupId: str
|
|
2192
|
+
:param _TargetGroupName: New name of target group.
|
|
2193
|
+
:type TargetGroupName: str
|
|
2194
|
+
:param _HealthCheck: Health check details.
|
|
2195
|
+
:type HealthCheck: :class:`tencentcloud.gwlb.v20240906.models.TargetGroupHealthCheck`
|
|
2196
|
+
:param _AllDeadToAlive: Whether "All Dead, All Alive" is supported.
|
|
2197
|
+
:type AllDeadToAlive: bool
|
|
2198
|
+
"""
|
|
2199
|
+
self._TargetGroupId = None
|
|
2200
|
+
self._TargetGroupName = None
|
|
2201
|
+
self._HealthCheck = None
|
|
2202
|
+
self._AllDeadToAlive = None
|
|
2203
|
+
|
|
2204
|
+
@property
|
|
2205
|
+
def TargetGroupId(self):
|
|
2206
|
+
"""Target group ID.
|
|
2207
|
+
:rtype: str
|
|
2208
|
+
"""
|
|
2209
|
+
return self._TargetGroupId
|
|
2210
|
+
|
|
2211
|
+
@TargetGroupId.setter
|
|
2212
|
+
def TargetGroupId(self, TargetGroupId):
|
|
2213
|
+
self._TargetGroupId = TargetGroupId
|
|
2214
|
+
|
|
2215
|
+
@property
|
|
2216
|
+
def TargetGroupName(self):
|
|
2217
|
+
"""New name of target group.
|
|
2218
|
+
:rtype: str
|
|
2219
|
+
"""
|
|
2220
|
+
return self._TargetGroupName
|
|
2221
|
+
|
|
2222
|
+
@TargetGroupName.setter
|
|
2223
|
+
def TargetGroupName(self, TargetGroupName):
|
|
2224
|
+
self._TargetGroupName = TargetGroupName
|
|
2225
|
+
|
|
2226
|
+
@property
|
|
2227
|
+
def HealthCheck(self):
|
|
2228
|
+
"""Health check details.
|
|
2229
|
+
:rtype: :class:`tencentcloud.gwlb.v20240906.models.TargetGroupHealthCheck`
|
|
2230
|
+
"""
|
|
2231
|
+
return self._HealthCheck
|
|
2232
|
+
|
|
2233
|
+
@HealthCheck.setter
|
|
2234
|
+
def HealthCheck(self, HealthCheck):
|
|
2235
|
+
self._HealthCheck = HealthCheck
|
|
2236
|
+
|
|
2237
|
+
@property
|
|
2238
|
+
def AllDeadToAlive(self):
|
|
2239
|
+
"""Whether "All Dead, All Alive" is supported.
|
|
2240
|
+
:rtype: bool
|
|
2241
|
+
"""
|
|
2242
|
+
return self._AllDeadToAlive
|
|
2243
|
+
|
|
2244
|
+
@AllDeadToAlive.setter
|
|
2245
|
+
def AllDeadToAlive(self, AllDeadToAlive):
|
|
2246
|
+
self._AllDeadToAlive = AllDeadToAlive
|
|
2247
|
+
|
|
2248
|
+
|
|
2249
|
+
def _deserialize(self, params):
|
|
2250
|
+
self._TargetGroupId = params.get("TargetGroupId")
|
|
2251
|
+
self._TargetGroupName = params.get("TargetGroupName")
|
|
2252
|
+
if params.get("HealthCheck") is not None:
|
|
2253
|
+
self._HealthCheck = TargetGroupHealthCheck()
|
|
2254
|
+
self._HealthCheck._deserialize(params.get("HealthCheck"))
|
|
2255
|
+
self._AllDeadToAlive = params.get("AllDeadToAlive")
|
|
2256
|
+
memeber_set = set(params.keys())
|
|
2257
|
+
for name, value in vars(self).items():
|
|
2258
|
+
property_name = name[1:]
|
|
2259
|
+
if property_name in memeber_set:
|
|
2260
|
+
memeber_set.remove(property_name)
|
|
2261
|
+
if len(memeber_set) > 0:
|
|
2262
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
2263
|
+
|
|
2264
|
+
|
|
2265
|
+
|
|
2266
|
+
class ModifyTargetGroupAttributeResponse(AbstractModel):
|
|
2267
|
+
"""ModifyTargetGroupAttribute response structure.
|
|
2268
|
+
|
|
2269
|
+
"""
|
|
2270
|
+
|
|
2271
|
+
def __init__(self):
|
|
2272
|
+
r"""
|
|
2273
|
+
:param _RequestId: The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
|
|
2274
|
+
:type RequestId: str
|
|
2275
|
+
"""
|
|
2276
|
+
self._RequestId = None
|
|
2277
|
+
|
|
2278
|
+
@property
|
|
2279
|
+
def RequestId(self):
|
|
2280
|
+
"""The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
|
|
2281
|
+
:rtype: str
|
|
2282
|
+
"""
|
|
2283
|
+
return self._RequestId
|
|
2284
|
+
|
|
2285
|
+
@RequestId.setter
|
|
2286
|
+
def RequestId(self, RequestId):
|
|
2287
|
+
self._RequestId = RequestId
|
|
2288
|
+
|
|
2289
|
+
|
|
2290
|
+
def _deserialize(self, params):
|
|
2291
|
+
self._RequestId = params.get("RequestId")
|
|
2292
|
+
|
|
2293
|
+
|
|
2294
|
+
class ModifyTargetGroupInstancesWeightRequest(AbstractModel):
|
|
2295
|
+
"""ModifyTargetGroupInstancesWeight request structure.
|
|
2296
|
+
|
|
2297
|
+
"""
|
|
2298
|
+
|
|
2299
|
+
def __init__(self):
|
|
2300
|
+
r"""
|
|
2301
|
+
:param _TargetGroupId: Target group ID.
|
|
2302
|
+
:type TargetGroupId: str
|
|
2303
|
+
:param _TargetGroupInstances: Array of servers whose weight is to be modified.
|
|
2304
|
+
:type TargetGroupInstances: list of TargetGroupInstance
|
|
2305
|
+
"""
|
|
2306
|
+
self._TargetGroupId = None
|
|
2307
|
+
self._TargetGroupInstances = None
|
|
2308
|
+
|
|
2309
|
+
@property
|
|
2310
|
+
def TargetGroupId(self):
|
|
2311
|
+
"""Target group ID.
|
|
2312
|
+
:rtype: str
|
|
2313
|
+
"""
|
|
2314
|
+
return self._TargetGroupId
|
|
2315
|
+
|
|
2316
|
+
@TargetGroupId.setter
|
|
2317
|
+
def TargetGroupId(self, TargetGroupId):
|
|
2318
|
+
self._TargetGroupId = TargetGroupId
|
|
2319
|
+
|
|
2320
|
+
@property
|
|
2321
|
+
def TargetGroupInstances(self):
|
|
2322
|
+
"""Array of servers whose weight is to be modified.
|
|
2323
|
+
:rtype: list of TargetGroupInstance
|
|
2324
|
+
"""
|
|
2325
|
+
return self._TargetGroupInstances
|
|
2326
|
+
|
|
2327
|
+
@TargetGroupInstances.setter
|
|
2328
|
+
def TargetGroupInstances(self, TargetGroupInstances):
|
|
2329
|
+
self._TargetGroupInstances = TargetGroupInstances
|
|
2330
|
+
|
|
2331
|
+
|
|
2332
|
+
def _deserialize(self, params):
|
|
2333
|
+
self._TargetGroupId = params.get("TargetGroupId")
|
|
2334
|
+
if params.get("TargetGroupInstances") is not None:
|
|
2335
|
+
self._TargetGroupInstances = []
|
|
2336
|
+
for item in params.get("TargetGroupInstances"):
|
|
2337
|
+
obj = TargetGroupInstance()
|
|
2338
|
+
obj._deserialize(item)
|
|
2339
|
+
self._TargetGroupInstances.append(obj)
|
|
2340
|
+
memeber_set = set(params.keys())
|
|
2341
|
+
for name, value in vars(self).items():
|
|
2342
|
+
property_name = name[1:]
|
|
2343
|
+
if property_name in memeber_set:
|
|
2344
|
+
memeber_set.remove(property_name)
|
|
2345
|
+
if len(memeber_set) > 0:
|
|
2346
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
2347
|
+
|
|
2348
|
+
|
|
2349
|
+
|
|
2350
|
+
class ModifyTargetGroupInstancesWeightResponse(AbstractModel):
|
|
2351
|
+
"""ModifyTargetGroupInstancesWeight response structure.
|
|
2352
|
+
|
|
2353
|
+
"""
|
|
2354
|
+
|
|
2355
|
+
def __init__(self):
|
|
2356
|
+
r"""
|
|
2357
|
+
:param _RequestId: The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
|
|
2358
|
+
:type RequestId: str
|
|
2359
|
+
"""
|
|
2360
|
+
self._RequestId = None
|
|
2361
|
+
|
|
2362
|
+
@property
|
|
2363
|
+
def RequestId(self):
|
|
2364
|
+
"""The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
|
|
2365
|
+
:rtype: str
|
|
2366
|
+
"""
|
|
2367
|
+
return self._RequestId
|
|
2368
|
+
|
|
2369
|
+
@RequestId.setter
|
|
2370
|
+
def RequestId(self, RequestId):
|
|
2371
|
+
self._RequestId = RequestId
|
|
2372
|
+
|
|
2373
|
+
|
|
2374
|
+
def _deserialize(self, params):
|
|
2375
|
+
self._RequestId = params.get("RequestId")
|
|
2376
|
+
|
|
2377
|
+
|
|
2378
|
+
class Price(AbstractModel):
|
|
2379
|
+
"""It indicates the price of the GWLB.
|
|
2380
|
+
|
|
2381
|
+
"""
|
|
2382
|
+
|
|
2383
|
+
def __init__(self):
|
|
2384
|
+
r"""
|
|
2385
|
+
:param _InstancePrice: It describes the instance price.Note: This field may return null, indicating that no valid value can be obtained.
|
|
2386
|
+
:type InstancePrice: :class:`tencentcloud.gwlb.v20240906.models.ItemPrice`
|
|
2387
|
+
:param _LcuPrice: It describes the instance price.Note: This field may return null, indicating that no valid value can be obtained.
|
|
2388
|
+
:type LcuPrice: :class:`tencentcloud.gwlb.v20240906.models.ItemPrice`
|
|
2389
|
+
"""
|
|
2390
|
+
self._InstancePrice = None
|
|
2391
|
+
self._LcuPrice = None
|
|
2392
|
+
|
|
2393
|
+
@property
|
|
2394
|
+
def InstancePrice(self):
|
|
2395
|
+
"""It describes the instance price.Note: This field may return null, indicating that no valid value can be obtained.
|
|
2396
|
+
:rtype: :class:`tencentcloud.gwlb.v20240906.models.ItemPrice`
|
|
2397
|
+
"""
|
|
2398
|
+
return self._InstancePrice
|
|
2399
|
+
|
|
2400
|
+
@InstancePrice.setter
|
|
2401
|
+
def InstancePrice(self, InstancePrice):
|
|
2402
|
+
self._InstancePrice = InstancePrice
|
|
2403
|
+
|
|
2404
|
+
@property
|
|
2405
|
+
def LcuPrice(self):
|
|
2406
|
+
"""It describes the instance price.Note: This field may return null, indicating that no valid value can be obtained.
|
|
2407
|
+
:rtype: :class:`tencentcloud.gwlb.v20240906.models.ItemPrice`
|
|
2408
|
+
"""
|
|
2409
|
+
return self._LcuPrice
|
|
2410
|
+
|
|
2411
|
+
@LcuPrice.setter
|
|
2412
|
+
def LcuPrice(self, LcuPrice):
|
|
2413
|
+
self._LcuPrice = LcuPrice
|
|
2414
|
+
|
|
2415
|
+
|
|
2416
|
+
def _deserialize(self, params):
|
|
2417
|
+
if params.get("InstancePrice") is not None:
|
|
2418
|
+
self._InstancePrice = ItemPrice()
|
|
2419
|
+
self._InstancePrice._deserialize(params.get("InstancePrice"))
|
|
2420
|
+
if params.get("LcuPrice") is not None:
|
|
2421
|
+
self._LcuPrice = ItemPrice()
|
|
2422
|
+
self._LcuPrice._deserialize(params.get("LcuPrice"))
|
|
2423
|
+
memeber_set = set(params.keys())
|
|
2424
|
+
for name, value in vars(self).items():
|
|
2425
|
+
property_name = name[1:]
|
|
2426
|
+
if property_name in memeber_set:
|
|
2427
|
+
memeber_set.remove(property_name)
|
|
2428
|
+
if len(memeber_set) > 0:
|
|
2429
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
2430
|
+
|
|
2431
|
+
|
|
2432
|
+
|
|
2433
|
+
class RegisterTargetGroupInstancesRequest(AbstractModel):
|
|
2434
|
+
"""RegisterTargetGroupInstances request structure.
|
|
2435
|
+
|
|
2436
|
+
"""
|
|
2437
|
+
|
|
2438
|
+
def __init__(self):
|
|
2439
|
+
r"""
|
|
2440
|
+
:param _TargetGroupId: Target group ID
|
|
2441
|
+
:type TargetGroupId: str
|
|
2442
|
+
:param _TargetGroupInstances: Server instance array
|
|
2443
|
+
:type TargetGroupInstances: list of TargetGroupInstance
|
|
2444
|
+
"""
|
|
2445
|
+
self._TargetGroupId = None
|
|
2446
|
+
self._TargetGroupInstances = None
|
|
2447
|
+
|
|
2448
|
+
@property
|
|
2449
|
+
def TargetGroupId(self):
|
|
2450
|
+
"""Target group ID
|
|
2451
|
+
:rtype: str
|
|
2452
|
+
"""
|
|
2453
|
+
return self._TargetGroupId
|
|
2454
|
+
|
|
2455
|
+
@TargetGroupId.setter
|
|
2456
|
+
def TargetGroupId(self, TargetGroupId):
|
|
2457
|
+
self._TargetGroupId = TargetGroupId
|
|
2458
|
+
|
|
2459
|
+
@property
|
|
2460
|
+
def TargetGroupInstances(self):
|
|
2461
|
+
"""Server instance array
|
|
2462
|
+
:rtype: list of TargetGroupInstance
|
|
2463
|
+
"""
|
|
2464
|
+
return self._TargetGroupInstances
|
|
2465
|
+
|
|
2466
|
+
@TargetGroupInstances.setter
|
|
2467
|
+
def TargetGroupInstances(self, TargetGroupInstances):
|
|
2468
|
+
self._TargetGroupInstances = TargetGroupInstances
|
|
2469
|
+
|
|
2470
|
+
|
|
2471
|
+
def _deserialize(self, params):
|
|
2472
|
+
self._TargetGroupId = params.get("TargetGroupId")
|
|
2473
|
+
if params.get("TargetGroupInstances") is not None:
|
|
2474
|
+
self._TargetGroupInstances = []
|
|
2475
|
+
for item in params.get("TargetGroupInstances"):
|
|
2476
|
+
obj = TargetGroupInstance()
|
|
2477
|
+
obj._deserialize(item)
|
|
2478
|
+
self._TargetGroupInstances.append(obj)
|
|
2479
|
+
memeber_set = set(params.keys())
|
|
2480
|
+
for name, value in vars(self).items():
|
|
2481
|
+
property_name = name[1:]
|
|
2482
|
+
if property_name in memeber_set:
|
|
2483
|
+
memeber_set.remove(property_name)
|
|
2484
|
+
if len(memeber_set) > 0:
|
|
2485
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
2486
|
+
|
|
2487
|
+
|
|
2488
|
+
|
|
2489
|
+
class RegisterTargetGroupInstancesResponse(AbstractModel):
|
|
2490
|
+
"""RegisterTargetGroupInstances response structure.
|
|
2491
|
+
|
|
2492
|
+
"""
|
|
2493
|
+
|
|
2494
|
+
def __init__(self):
|
|
2495
|
+
r"""
|
|
2496
|
+
:param _RequestId: The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
|
|
2497
|
+
:type RequestId: str
|
|
2498
|
+
"""
|
|
2499
|
+
self._RequestId = None
|
|
2500
|
+
|
|
2501
|
+
@property
|
|
2502
|
+
def RequestId(self):
|
|
2503
|
+
"""The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
|
|
2504
|
+
:rtype: str
|
|
2505
|
+
"""
|
|
2506
|
+
return self._RequestId
|
|
2507
|
+
|
|
2508
|
+
@RequestId.setter
|
|
2509
|
+
def RequestId(self, RequestId):
|
|
2510
|
+
self._RequestId = RequestId
|
|
2511
|
+
|
|
2512
|
+
|
|
2513
|
+
def _deserialize(self, params):
|
|
2514
|
+
self._RequestId = params.get("RequestId")
|
|
2515
|
+
|
|
2516
|
+
|
|
2517
|
+
class TagInfo(AbstractModel):
|
|
2518
|
+
"""Tag information on GWLB
|
|
2519
|
+
|
|
2520
|
+
"""
|
|
2521
|
+
|
|
2522
|
+
def __init__(self):
|
|
2523
|
+
r"""
|
|
2524
|
+
:param _TagKey: Tag key
|
|
2525
|
+
:type TagKey: str
|
|
2526
|
+
:param _TagValue: Tag value
|
|
2527
|
+
:type TagValue: str
|
|
2528
|
+
"""
|
|
2529
|
+
self._TagKey = None
|
|
2530
|
+
self._TagValue = None
|
|
2531
|
+
|
|
2532
|
+
@property
|
|
2533
|
+
def TagKey(self):
|
|
2534
|
+
"""Tag key
|
|
2535
|
+
:rtype: str
|
|
2536
|
+
"""
|
|
2537
|
+
return self._TagKey
|
|
2538
|
+
|
|
2539
|
+
@TagKey.setter
|
|
2540
|
+
def TagKey(self, TagKey):
|
|
2541
|
+
self._TagKey = TagKey
|
|
2542
|
+
|
|
2543
|
+
@property
|
|
2544
|
+
def TagValue(self):
|
|
2545
|
+
"""Tag value
|
|
2546
|
+
:rtype: str
|
|
2547
|
+
"""
|
|
2548
|
+
return self._TagValue
|
|
2549
|
+
|
|
2550
|
+
@TagValue.setter
|
|
2551
|
+
def TagValue(self, TagValue):
|
|
2552
|
+
self._TagValue = TagValue
|
|
2553
|
+
|
|
2554
|
+
|
|
2555
|
+
def _deserialize(self, params):
|
|
2556
|
+
self._TagKey = params.get("TagKey")
|
|
2557
|
+
self._TagValue = params.get("TagValue")
|
|
2558
|
+
memeber_set = set(params.keys())
|
|
2559
|
+
for name, value in vars(self).items():
|
|
2560
|
+
property_name = name[1:]
|
|
2561
|
+
if property_name in memeber_set:
|
|
2562
|
+
memeber_set.remove(property_name)
|
|
2563
|
+
if len(memeber_set) > 0:
|
|
2564
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
2565
|
+
|
|
2566
|
+
|
|
2567
|
+
|
|
2568
|
+
class TargetGroupAssociation(AbstractModel):
|
|
2569
|
+
"""Association relationship between rules and target groups.
|
|
2570
|
+
|
|
2571
|
+
"""
|
|
2572
|
+
|
|
2573
|
+
def __init__(self):
|
|
2574
|
+
r"""
|
|
2575
|
+
:param _LoadBalancerId: CLB ID.
|
|
2576
|
+
:type LoadBalancerId: str
|
|
2577
|
+
:param _TargetGroupId: Target group ID.
|
|
2578
|
+
:type TargetGroupId: str
|
|
2579
|
+
"""
|
|
2580
|
+
self._LoadBalancerId = None
|
|
2581
|
+
self._TargetGroupId = None
|
|
2582
|
+
|
|
2583
|
+
@property
|
|
2584
|
+
def LoadBalancerId(self):
|
|
2585
|
+
"""CLB ID.
|
|
2586
|
+
:rtype: str
|
|
2587
|
+
"""
|
|
2588
|
+
return self._LoadBalancerId
|
|
2589
|
+
|
|
2590
|
+
@LoadBalancerId.setter
|
|
2591
|
+
def LoadBalancerId(self, LoadBalancerId):
|
|
2592
|
+
self._LoadBalancerId = LoadBalancerId
|
|
2593
|
+
|
|
2594
|
+
@property
|
|
2595
|
+
def TargetGroupId(self):
|
|
2596
|
+
"""Target group ID.
|
|
2597
|
+
:rtype: str
|
|
2598
|
+
"""
|
|
2599
|
+
return self._TargetGroupId
|
|
2600
|
+
|
|
2601
|
+
@TargetGroupId.setter
|
|
2602
|
+
def TargetGroupId(self, TargetGroupId):
|
|
2603
|
+
self._TargetGroupId = TargetGroupId
|
|
2604
|
+
|
|
2605
|
+
|
|
2606
|
+
def _deserialize(self, params):
|
|
2607
|
+
self._LoadBalancerId = params.get("LoadBalancerId")
|
|
2608
|
+
self._TargetGroupId = params.get("TargetGroupId")
|
|
2609
|
+
memeber_set = set(params.keys())
|
|
2610
|
+
for name, value in vars(self).items():
|
|
2611
|
+
property_name = name[1:]
|
|
2612
|
+
if property_name in memeber_set:
|
|
2613
|
+
memeber_set.remove(property_name)
|
|
2614
|
+
if len(memeber_set) > 0:
|
|
2615
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
2616
|
+
|
|
2617
|
+
|
|
2618
|
+
|
|
2619
|
+
class TargetGroupBackend(AbstractModel):
|
|
2620
|
+
"""Real server bound to a target group
|
|
2621
|
+
|
|
2622
|
+
"""
|
|
2623
|
+
|
|
2624
|
+
def __init__(self):
|
|
2625
|
+
r"""
|
|
2626
|
+
:param _TargetGroupId: Target group ID
|
|
2627
|
+
:type TargetGroupId: str
|
|
2628
|
+
:param _Type: Backend service type. Valid values: CVM, ENI (to be supported soon)
|
|
2629
|
+
:type Type: str
|
|
2630
|
+
:param _InstanceId: Unique backend service ID
|
|
2631
|
+
:type InstanceId: str
|
|
2632
|
+
:param _Port: Listening port of backend service
|
|
2633
|
+
:type Port: int
|
|
2634
|
+
:param _Weight: Forwarding weight of backend service. Value range: [0, 100]. Default value: 10.
|
|
2635
|
+
:type Weight: int
|
|
2636
|
+
:param _PublicIpAddresses: Public network IP of the real server
|
|
2637
|
+
|
|
2638
|
+
Note: This field may return null, indicating that no valid value can be obtained.
|
|
2639
|
+
:type PublicIpAddresses: list of str
|
|
2640
|
+
:param _PrivateIpAddresses: Private network IP of backend serviceNote: This field may return null, indicating that no valid value can be obtained.
|
|
2641
|
+
:type PrivateIpAddresses: list of str
|
|
2642
|
+
:param _InstanceName: Instance name of the real server
|
|
2643
|
+
|
|
2644
|
+
Note: This field may return null, indicating that no valid value can be obtained.
|
|
2645
|
+
:type InstanceName: str
|
|
2646
|
+
:param _RegisteredTime: Real server binding time
|
|
2647
|
+
|
|
2648
|
+
Note: This field may return null, indicating that no valid value can be obtained.
|
|
2649
|
+
:type RegisteredTime: str
|
|
2650
|
+
:param _EniId: Unique ID of the ENI
|
|
2651
|
+
|
|
2652
|
+
Note: This field may return null, indicating that no valid value can be obtained.
|
|
2653
|
+
:type EniId: str
|
|
2654
|
+
:param _ZoneId: Available zone ID of backend serviceNote: This field may return null, indicating that no valid value can be obtained.
|
|
2655
|
+
:type ZoneId: int
|
|
2656
|
+
"""
|
|
2657
|
+
self._TargetGroupId = None
|
|
2658
|
+
self._Type = None
|
|
2659
|
+
self._InstanceId = None
|
|
2660
|
+
self._Port = None
|
|
2661
|
+
self._Weight = None
|
|
2662
|
+
self._PublicIpAddresses = None
|
|
2663
|
+
self._PrivateIpAddresses = None
|
|
2664
|
+
self._InstanceName = None
|
|
2665
|
+
self._RegisteredTime = None
|
|
2666
|
+
self._EniId = None
|
|
2667
|
+
self._ZoneId = None
|
|
2668
|
+
|
|
2669
|
+
@property
|
|
2670
|
+
def TargetGroupId(self):
|
|
2671
|
+
"""Target group ID
|
|
2672
|
+
:rtype: str
|
|
2673
|
+
"""
|
|
2674
|
+
return self._TargetGroupId
|
|
2675
|
+
|
|
2676
|
+
@TargetGroupId.setter
|
|
2677
|
+
def TargetGroupId(self, TargetGroupId):
|
|
2678
|
+
self._TargetGroupId = TargetGroupId
|
|
2679
|
+
|
|
2680
|
+
@property
|
|
2681
|
+
def Type(self):
|
|
2682
|
+
"""Backend service type. Valid values: CVM, ENI (to be supported soon)
|
|
2683
|
+
:rtype: str
|
|
2684
|
+
"""
|
|
2685
|
+
return self._Type
|
|
2686
|
+
|
|
2687
|
+
@Type.setter
|
|
2688
|
+
def Type(self, Type):
|
|
2689
|
+
self._Type = Type
|
|
2690
|
+
|
|
2691
|
+
@property
|
|
2692
|
+
def InstanceId(self):
|
|
2693
|
+
"""Unique backend service ID
|
|
2694
|
+
:rtype: str
|
|
2695
|
+
"""
|
|
2696
|
+
return self._InstanceId
|
|
2697
|
+
|
|
2698
|
+
@InstanceId.setter
|
|
2699
|
+
def InstanceId(self, InstanceId):
|
|
2700
|
+
self._InstanceId = InstanceId
|
|
2701
|
+
|
|
2702
|
+
@property
|
|
2703
|
+
def Port(self):
|
|
2704
|
+
"""Listening port of backend service
|
|
2705
|
+
:rtype: int
|
|
2706
|
+
"""
|
|
2707
|
+
return self._Port
|
|
2708
|
+
|
|
2709
|
+
@Port.setter
|
|
2710
|
+
def Port(self, Port):
|
|
2711
|
+
self._Port = Port
|
|
2712
|
+
|
|
2713
|
+
@property
|
|
2714
|
+
def Weight(self):
|
|
2715
|
+
"""Forwarding weight of backend service. Value range: [0, 100]. Default value: 10.
|
|
2716
|
+
:rtype: int
|
|
2717
|
+
"""
|
|
2718
|
+
return self._Weight
|
|
2719
|
+
|
|
2720
|
+
@Weight.setter
|
|
2721
|
+
def Weight(self, Weight):
|
|
2722
|
+
self._Weight = Weight
|
|
2723
|
+
|
|
2724
|
+
@property
|
|
2725
|
+
def PublicIpAddresses(self):
|
|
2726
|
+
"""Public network IP of the real server
|
|
2727
|
+
|
|
2728
|
+
Note: This field may return null, indicating that no valid value can be obtained.
|
|
2729
|
+
:rtype: list of str
|
|
2730
|
+
"""
|
|
2731
|
+
return self._PublicIpAddresses
|
|
2732
|
+
|
|
2733
|
+
@PublicIpAddresses.setter
|
|
2734
|
+
def PublicIpAddresses(self, PublicIpAddresses):
|
|
2735
|
+
self._PublicIpAddresses = PublicIpAddresses
|
|
2736
|
+
|
|
2737
|
+
@property
|
|
2738
|
+
def PrivateIpAddresses(self):
|
|
2739
|
+
"""Private network IP of backend serviceNote: This field may return null, indicating that no valid value can be obtained.
|
|
2740
|
+
:rtype: list of str
|
|
2741
|
+
"""
|
|
2742
|
+
return self._PrivateIpAddresses
|
|
2743
|
+
|
|
2744
|
+
@PrivateIpAddresses.setter
|
|
2745
|
+
def PrivateIpAddresses(self, PrivateIpAddresses):
|
|
2746
|
+
self._PrivateIpAddresses = PrivateIpAddresses
|
|
2747
|
+
|
|
2748
|
+
@property
|
|
2749
|
+
def InstanceName(self):
|
|
2750
|
+
"""Instance name of the real server
|
|
2751
|
+
|
|
2752
|
+
Note: This field may return null, indicating that no valid value can be obtained.
|
|
2753
|
+
:rtype: str
|
|
2754
|
+
"""
|
|
2755
|
+
return self._InstanceName
|
|
2756
|
+
|
|
2757
|
+
@InstanceName.setter
|
|
2758
|
+
def InstanceName(self, InstanceName):
|
|
2759
|
+
self._InstanceName = InstanceName
|
|
2760
|
+
|
|
2761
|
+
@property
|
|
2762
|
+
def RegisteredTime(self):
|
|
2763
|
+
"""Real server binding time
|
|
2764
|
+
|
|
2765
|
+
Note: This field may return null, indicating that no valid value can be obtained.
|
|
2766
|
+
:rtype: str
|
|
2767
|
+
"""
|
|
2768
|
+
return self._RegisteredTime
|
|
2769
|
+
|
|
2770
|
+
@RegisteredTime.setter
|
|
2771
|
+
def RegisteredTime(self, RegisteredTime):
|
|
2772
|
+
self._RegisteredTime = RegisteredTime
|
|
2773
|
+
|
|
2774
|
+
@property
|
|
2775
|
+
def EniId(self):
|
|
2776
|
+
"""Unique ID of the ENI
|
|
2777
|
+
|
|
2778
|
+
Note: This field may return null, indicating that no valid value can be obtained.
|
|
2779
|
+
:rtype: str
|
|
2780
|
+
"""
|
|
2781
|
+
return self._EniId
|
|
2782
|
+
|
|
2783
|
+
@EniId.setter
|
|
2784
|
+
def EniId(self, EniId):
|
|
2785
|
+
self._EniId = EniId
|
|
2786
|
+
|
|
2787
|
+
@property
|
|
2788
|
+
def ZoneId(self):
|
|
2789
|
+
"""Available zone ID of backend serviceNote: This field may return null, indicating that no valid value can be obtained.
|
|
2790
|
+
:rtype: int
|
|
2791
|
+
"""
|
|
2792
|
+
return self._ZoneId
|
|
2793
|
+
|
|
2794
|
+
@ZoneId.setter
|
|
2795
|
+
def ZoneId(self, ZoneId):
|
|
2796
|
+
self._ZoneId = ZoneId
|
|
2797
|
+
|
|
2798
|
+
|
|
2799
|
+
def _deserialize(self, params):
|
|
2800
|
+
self._TargetGroupId = params.get("TargetGroupId")
|
|
2801
|
+
self._Type = params.get("Type")
|
|
2802
|
+
self._InstanceId = params.get("InstanceId")
|
|
2803
|
+
self._Port = params.get("Port")
|
|
2804
|
+
self._Weight = params.get("Weight")
|
|
2805
|
+
self._PublicIpAddresses = params.get("PublicIpAddresses")
|
|
2806
|
+
self._PrivateIpAddresses = params.get("PrivateIpAddresses")
|
|
2807
|
+
self._InstanceName = params.get("InstanceName")
|
|
2808
|
+
self._RegisteredTime = params.get("RegisteredTime")
|
|
2809
|
+
self._EniId = params.get("EniId")
|
|
2810
|
+
self._ZoneId = params.get("ZoneId")
|
|
2811
|
+
memeber_set = set(params.keys())
|
|
2812
|
+
for name, value in vars(self).items():
|
|
2813
|
+
property_name = name[1:]
|
|
2814
|
+
if property_name in memeber_set:
|
|
2815
|
+
memeber_set.remove(property_name)
|
|
2816
|
+
if len(memeber_set) > 0:
|
|
2817
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
2818
|
+
|
|
2819
|
+
|
|
2820
|
+
|
|
2821
|
+
class TargetGroupHealthCheck(AbstractModel):
|
|
2822
|
+
"""Details of target group health check
|
|
2823
|
+
|
|
2824
|
+
"""
|
|
2825
|
+
|
|
2826
|
+
def __init__(self):
|
|
2827
|
+
r"""
|
|
2828
|
+
:param _HealthSwitch: Whether to enable the health check.
|
|
2829
|
+
:type HealthSwitch: bool
|
|
2830
|
+
:param _Protocol: Protocol used for health checks. ICMP and TCP are supported, and the default is ICMP.
|
|
2831
|
+
:type Protocol: str
|
|
2832
|
+
:param _Port: Health check port, which is required when the probe protocol is TCP.
|
|
2833
|
+
:type Port: int
|
|
2834
|
+
:param _Timeout: Health check timeout. The default is 2 seconds. Value range: 2-30 seconds.
|
|
2835
|
+
:type Timeout: int
|
|
2836
|
+
:param _IntervalTime: Detection interval time. The default is 5 seconds. Value range: 2-300 seconds.
|
|
2837
|
+
:type IntervalTime: int
|
|
2838
|
+
:param _HealthNum: Health detection threshold. The default is 3 times. Value range: 2-10 times.
|
|
2839
|
+
:type HealthNum: int
|
|
2840
|
+
:param _UnHealthNum: Unhealth detection threshold. The default is 3 times. Value range: 2-10 times.
|
|
2841
|
+
:type UnHealthNum: int
|
|
2842
|
+
"""
|
|
2843
|
+
self._HealthSwitch = None
|
|
2844
|
+
self._Protocol = None
|
|
2845
|
+
self._Port = None
|
|
2846
|
+
self._Timeout = None
|
|
2847
|
+
self._IntervalTime = None
|
|
2848
|
+
self._HealthNum = None
|
|
2849
|
+
self._UnHealthNum = None
|
|
2850
|
+
|
|
2851
|
+
@property
|
|
2852
|
+
def HealthSwitch(self):
|
|
2853
|
+
"""Whether to enable the health check.
|
|
2854
|
+
:rtype: bool
|
|
2855
|
+
"""
|
|
2856
|
+
return self._HealthSwitch
|
|
2857
|
+
|
|
2858
|
+
@HealthSwitch.setter
|
|
2859
|
+
def HealthSwitch(self, HealthSwitch):
|
|
2860
|
+
self._HealthSwitch = HealthSwitch
|
|
2861
|
+
|
|
2862
|
+
@property
|
|
2863
|
+
def Protocol(self):
|
|
2864
|
+
"""Protocol used for health checks. ICMP and TCP are supported, and the default is ICMP.
|
|
2865
|
+
:rtype: str
|
|
2866
|
+
"""
|
|
2867
|
+
return self._Protocol
|
|
2868
|
+
|
|
2869
|
+
@Protocol.setter
|
|
2870
|
+
def Protocol(self, Protocol):
|
|
2871
|
+
self._Protocol = Protocol
|
|
2872
|
+
|
|
2873
|
+
@property
|
|
2874
|
+
def Port(self):
|
|
2875
|
+
"""Health check port, which is required when the probe protocol is TCP.
|
|
2876
|
+
:rtype: int
|
|
2877
|
+
"""
|
|
2878
|
+
return self._Port
|
|
2879
|
+
|
|
2880
|
+
@Port.setter
|
|
2881
|
+
def Port(self, Port):
|
|
2882
|
+
self._Port = Port
|
|
2883
|
+
|
|
2884
|
+
@property
|
|
2885
|
+
def Timeout(self):
|
|
2886
|
+
"""Health check timeout. The default is 2 seconds. Value range: 2-30 seconds.
|
|
2887
|
+
:rtype: int
|
|
2888
|
+
"""
|
|
2889
|
+
return self._Timeout
|
|
2890
|
+
|
|
2891
|
+
@Timeout.setter
|
|
2892
|
+
def Timeout(self, Timeout):
|
|
2893
|
+
self._Timeout = Timeout
|
|
2894
|
+
|
|
2895
|
+
@property
|
|
2896
|
+
def IntervalTime(self):
|
|
2897
|
+
"""Detection interval time. The default is 5 seconds. Value range: 2-300 seconds.
|
|
2898
|
+
:rtype: int
|
|
2899
|
+
"""
|
|
2900
|
+
return self._IntervalTime
|
|
2901
|
+
|
|
2902
|
+
@IntervalTime.setter
|
|
2903
|
+
def IntervalTime(self, IntervalTime):
|
|
2904
|
+
self._IntervalTime = IntervalTime
|
|
2905
|
+
|
|
2906
|
+
@property
|
|
2907
|
+
def HealthNum(self):
|
|
2908
|
+
"""Health detection threshold. The default is 3 times. Value range: 2-10 times.
|
|
2909
|
+
:rtype: int
|
|
2910
|
+
"""
|
|
2911
|
+
return self._HealthNum
|
|
2912
|
+
|
|
2913
|
+
@HealthNum.setter
|
|
2914
|
+
def HealthNum(self, HealthNum):
|
|
2915
|
+
self._HealthNum = HealthNum
|
|
2916
|
+
|
|
2917
|
+
@property
|
|
2918
|
+
def UnHealthNum(self):
|
|
2919
|
+
"""Unhealth detection threshold. The default is 3 times. Value range: 2-10 times.
|
|
2920
|
+
:rtype: int
|
|
2921
|
+
"""
|
|
2922
|
+
return self._UnHealthNum
|
|
2923
|
+
|
|
2924
|
+
@UnHealthNum.setter
|
|
2925
|
+
def UnHealthNum(self, UnHealthNum):
|
|
2926
|
+
self._UnHealthNum = UnHealthNum
|
|
2927
|
+
|
|
2928
|
+
|
|
2929
|
+
def _deserialize(self, params):
|
|
2930
|
+
self._HealthSwitch = params.get("HealthSwitch")
|
|
2931
|
+
self._Protocol = params.get("Protocol")
|
|
2932
|
+
self._Port = params.get("Port")
|
|
2933
|
+
self._Timeout = params.get("Timeout")
|
|
2934
|
+
self._IntervalTime = params.get("IntervalTime")
|
|
2935
|
+
self._HealthNum = params.get("HealthNum")
|
|
2936
|
+
self._UnHealthNum = params.get("UnHealthNum")
|
|
2937
|
+
memeber_set = set(params.keys())
|
|
2938
|
+
for name, value in vars(self).items():
|
|
2939
|
+
property_name = name[1:]
|
|
2940
|
+
if property_name in memeber_set:
|
|
2941
|
+
memeber_set.remove(property_name)
|
|
2942
|
+
if len(memeber_set) > 0:
|
|
2943
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
2944
|
+
|
|
2945
|
+
|
|
2946
|
+
|
|
2947
|
+
class TargetGroupInfo(AbstractModel):
|
|
2948
|
+
"""Target group information
|
|
2949
|
+
|
|
2950
|
+
"""
|
|
2951
|
+
|
|
2952
|
+
def __init__(self):
|
|
2953
|
+
r"""
|
|
2954
|
+
:param _TargetGroupId: Target group ID
|
|
2955
|
+
:type TargetGroupId: str
|
|
2956
|
+
:param _VpcId: VPCID of target group
|
|
2957
|
+
:type VpcId: str
|
|
2958
|
+
:param _TargetGroupName: Target group name
|
|
2959
|
+
:type TargetGroupName: str
|
|
2960
|
+
:param _Port: Default port of a target group
|
|
2961
|
+
|
|
2962
|
+
Note: This field may return null, indicating that no valid value can be obtained.
|
|
2963
|
+
:type Port: int
|
|
2964
|
+
:param _CreatedTime: Target group creation time
|
|
2965
|
+
:type CreatedTime: str
|
|
2966
|
+
:param _UpdatedTime: Target group modification time
|
|
2967
|
+
:type UpdatedTime: str
|
|
2968
|
+
:param _AssociatedRule: Associated rule array. This parameter cannot be obtained when the DescribeTargetGroupList API is called.Note: This field may return null, indicating that no valid value can be obtained.
|
|
2969
|
+
:type AssociatedRule: list of AssociationItem
|
|
2970
|
+
:param _Protocol: Backend protocol type.Note: This field may return null, indicating that no valid value can be obtained.
|
|
2971
|
+
:type Protocol: str
|
|
2972
|
+
:param _ScheduleAlgorithm: Scheduling algorithm.ip_hash_3: 3-tuple symmetric elastic hashingip_hash_3_consistent: 3-tuple symmetric consistent hashingNote: This field may return null, indicating that no valid value can be obtained.
|
|
2973
|
+
:type ScheduleAlgorithm: str
|
|
2974
|
+
:param _HealthCheck: Health check details.Note: This field may return null, indicating that no valid value can be obtained.
|
|
2975
|
+
:type HealthCheck: :class:`tencentcloud.gwlb.v20240906.models.TargetGroupHealthCheck`
|
|
2976
|
+
:param _AllDeadToAlive: Whether "All Dead, All Alive" is supported.Note: This field may return null, indicating that no valid value can be obtained.
|
|
2977
|
+
:type AllDeadToAlive: bool
|
|
2978
|
+
:param _AssociatedRuleCount: Number of rules associated with the target group.Note: This field may return null, indicating that no valid value can be obtained.
|
|
2979
|
+
:type AssociatedRuleCount: int
|
|
2980
|
+
:param _RegisteredInstancesCount: Number of instances in the target group.Note: This field may return null, indicating that no valid value can be obtained.
|
|
2981
|
+
:type RegisteredInstancesCount: int
|
|
2982
|
+
"""
|
|
2983
|
+
self._TargetGroupId = None
|
|
2984
|
+
self._VpcId = None
|
|
2985
|
+
self._TargetGroupName = None
|
|
2986
|
+
self._Port = None
|
|
2987
|
+
self._CreatedTime = None
|
|
2988
|
+
self._UpdatedTime = None
|
|
2989
|
+
self._AssociatedRule = None
|
|
2990
|
+
self._Protocol = None
|
|
2991
|
+
self._ScheduleAlgorithm = None
|
|
2992
|
+
self._HealthCheck = None
|
|
2993
|
+
self._AllDeadToAlive = None
|
|
2994
|
+
self._AssociatedRuleCount = None
|
|
2995
|
+
self._RegisteredInstancesCount = None
|
|
2996
|
+
|
|
2997
|
+
@property
|
|
2998
|
+
def TargetGroupId(self):
|
|
2999
|
+
"""Target group ID
|
|
3000
|
+
:rtype: str
|
|
3001
|
+
"""
|
|
3002
|
+
return self._TargetGroupId
|
|
3003
|
+
|
|
3004
|
+
@TargetGroupId.setter
|
|
3005
|
+
def TargetGroupId(self, TargetGroupId):
|
|
3006
|
+
self._TargetGroupId = TargetGroupId
|
|
3007
|
+
|
|
3008
|
+
@property
|
|
3009
|
+
def VpcId(self):
|
|
3010
|
+
"""VPCID of target group
|
|
3011
|
+
:rtype: str
|
|
3012
|
+
"""
|
|
3013
|
+
return self._VpcId
|
|
3014
|
+
|
|
3015
|
+
@VpcId.setter
|
|
3016
|
+
def VpcId(self, VpcId):
|
|
3017
|
+
self._VpcId = VpcId
|
|
3018
|
+
|
|
3019
|
+
@property
|
|
3020
|
+
def TargetGroupName(self):
|
|
3021
|
+
"""Target group name
|
|
3022
|
+
:rtype: str
|
|
3023
|
+
"""
|
|
3024
|
+
return self._TargetGroupName
|
|
3025
|
+
|
|
3026
|
+
@TargetGroupName.setter
|
|
3027
|
+
def TargetGroupName(self, TargetGroupName):
|
|
3028
|
+
self._TargetGroupName = TargetGroupName
|
|
3029
|
+
|
|
3030
|
+
@property
|
|
3031
|
+
def Port(self):
|
|
3032
|
+
"""Default port of a target group
|
|
3033
|
+
|
|
3034
|
+
Note: This field may return null, indicating that no valid value can be obtained.
|
|
3035
|
+
:rtype: int
|
|
3036
|
+
"""
|
|
3037
|
+
return self._Port
|
|
3038
|
+
|
|
3039
|
+
@Port.setter
|
|
3040
|
+
def Port(self, Port):
|
|
3041
|
+
self._Port = Port
|
|
3042
|
+
|
|
3043
|
+
@property
|
|
3044
|
+
def CreatedTime(self):
|
|
3045
|
+
"""Target group creation time
|
|
3046
|
+
:rtype: str
|
|
3047
|
+
"""
|
|
3048
|
+
return self._CreatedTime
|
|
3049
|
+
|
|
3050
|
+
@CreatedTime.setter
|
|
3051
|
+
def CreatedTime(self, CreatedTime):
|
|
3052
|
+
self._CreatedTime = CreatedTime
|
|
3053
|
+
|
|
3054
|
+
@property
|
|
3055
|
+
def UpdatedTime(self):
|
|
3056
|
+
"""Target group modification time
|
|
3057
|
+
:rtype: str
|
|
3058
|
+
"""
|
|
3059
|
+
return self._UpdatedTime
|
|
3060
|
+
|
|
3061
|
+
@UpdatedTime.setter
|
|
3062
|
+
def UpdatedTime(self, UpdatedTime):
|
|
3063
|
+
self._UpdatedTime = UpdatedTime
|
|
3064
|
+
|
|
3065
|
+
@property
|
|
3066
|
+
def AssociatedRule(self):
|
|
3067
|
+
"""Associated rule array. This parameter cannot be obtained when the DescribeTargetGroupList API is called.Note: This field may return null, indicating that no valid value can be obtained.
|
|
3068
|
+
:rtype: list of AssociationItem
|
|
3069
|
+
"""
|
|
3070
|
+
return self._AssociatedRule
|
|
3071
|
+
|
|
3072
|
+
@AssociatedRule.setter
|
|
3073
|
+
def AssociatedRule(self, AssociatedRule):
|
|
3074
|
+
self._AssociatedRule = AssociatedRule
|
|
3075
|
+
|
|
3076
|
+
@property
|
|
3077
|
+
def Protocol(self):
|
|
3078
|
+
"""Backend protocol type.Note: This field may return null, indicating that no valid value can be obtained.
|
|
3079
|
+
:rtype: str
|
|
3080
|
+
"""
|
|
3081
|
+
return self._Protocol
|
|
3082
|
+
|
|
3083
|
+
@Protocol.setter
|
|
3084
|
+
def Protocol(self, Protocol):
|
|
3085
|
+
self._Protocol = Protocol
|
|
3086
|
+
|
|
3087
|
+
@property
|
|
3088
|
+
def ScheduleAlgorithm(self):
|
|
3089
|
+
"""Scheduling algorithm.ip_hash_3: 3-tuple symmetric elastic hashingip_hash_3_consistent: 3-tuple symmetric consistent hashingNote: This field may return null, indicating that no valid value can be obtained.
|
|
3090
|
+
:rtype: str
|
|
3091
|
+
"""
|
|
3092
|
+
return self._ScheduleAlgorithm
|
|
3093
|
+
|
|
3094
|
+
@ScheduleAlgorithm.setter
|
|
3095
|
+
def ScheduleAlgorithm(self, ScheduleAlgorithm):
|
|
3096
|
+
self._ScheduleAlgorithm = ScheduleAlgorithm
|
|
3097
|
+
|
|
3098
|
+
@property
|
|
3099
|
+
def HealthCheck(self):
|
|
3100
|
+
"""Health check details.Note: This field may return null, indicating that no valid value can be obtained.
|
|
3101
|
+
:rtype: :class:`tencentcloud.gwlb.v20240906.models.TargetGroupHealthCheck`
|
|
3102
|
+
"""
|
|
3103
|
+
return self._HealthCheck
|
|
3104
|
+
|
|
3105
|
+
@HealthCheck.setter
|
|
3106
|
+
def HealthCheck(self, HealthCheck):
|
|
3107
|
+
self._HealthCheck = HealthCheck
|
|
3108
|
+
|
|
3109
|
+
@property
|
|
3110
|
+
def AllDeadToAlive(self):
|
|
3111
|
+
"""Whether "All Dead, All Alive" is supported.Note: This field may return null, indicating that no valid value can be obtained.
|
|
3112
|
+
:rtype: bool
|
|
3113
|
+
"""
|
|
3114
|
+
return self._AllDeadToAlive
|
|
3115
|
+
|
|
3116
|
+
@AllDeadToAlive.setter
|
|
3117
|
+
def AllDeadToAlive(self, AllDeadToAlive):
|
|
3118
|
+
self._AllDeadToAlive = AllDeadToAlive
|
|
3119
|
+
|
|
3120
|
+
@property
|
|
3121
|
+
def AssociatedRuleCount(self):
|
|
3122
|
+
"""Number of rules associated with the target group.Note: This field may return null, indicating that no valid value can be obtained.
|
|
3123
|
+
:rtype: int
|
|
3124
|
+
"""
|
|
3125
|
+
return self._AssociatedRuleCount
|
|
3126
|
+
|
|
3127
|
+
@AssociatedRuleCount.setter
|
|
3128
|
+
def AssociatedRuleCount(self, AssociatedRuleCount):
|
|
3129
|
+
self._AssociatedRuleCount = AssociatedRuleCount
|
|
3130
|
+
|
|
3131
|
+
@property
|
|
3132
|
+
def RegisteredInstancesCount(self):
|
|
3133
|
+
"""Number of instances in the target group.Note: This field may return null, indicating that no valid value can be obtained.
|
|
3134
|
+
:rtype: int
|
|
3135
|
+
"""
|
|
3136
|
+
return self._RegisteredInstancesCount
|
|
3137
|
+
|
|
3138
|
+
@RegisteredInstancesCount.setter
|
|
3139
|
+
def RegisteredInstancesCount(self, RegisteredInstancesCount):
|
|
3140
|
+
self._RegisteredInstancesCount = RegisteredInstancesCount
|
|
3141
|
+
|
|
3142
|
+
|
|
3143
|
+
def _deserialize(self, params):
|
|
3144
|
+
self._TargetGroupId = params.get("TargetGroupId")
|
|
3145
|
+
self._VpcId = params.get("VpcId")
|
|
3146
|
+
self._TargetGroupName = params.get("TargetGroupName")
|
|
3147
|
+
self._Port = params.get("Port")
|
|
3148
|
+
self._CreatedTime = params.get("CreatedTime")
|
|
3149
|
+
self._UpdatedTime = params.get("UpdatedTime")
|
|
3150
|
+
if params.get("AssociatedRule") is not None:
|
|
3151
|
+
self._AssociatedRule = []
|
|
3152
|
+
for item in params.get("AssociatedRule"):
|
|
3153
|
+
obj = AssociationItem()
|
|
3154
|
+
obj._deserialize(item)
|
|
3155
|
+
self._AssociatedRule.append(obj)
|
|
3156
|
+
self._Protocol = params.get("Protocol")
|
|
3157
|
+
self._ScheduleAlgorithm = params.get("ScheduleAlgorithm")
|
|
3158
|
+
if params.get("HealthCheck") is not None:
|
|
3159
|
+
self._HealthCheck = TargetGroupHealthCheck()
|
|
3160
|
+
self._HealthCheck._deserialize(params.get("HealthCheck"))
|
|
3161
|
+
self._AllDeadToAlive = params.get("AllDeadToAlive")
|
|
3162
|
+
self._AssociatedRuleCount = params.get("AssociatedRuleCount")
|
|
3163
|
+
self._RegisteredInstancesCount = params.get("RegisteredInstancesCount")
|
|
3164
|
+
memeber_set = set(params.keys())
|
|
3165
|
+
for name, value in vars(self).items():
|
|
3166
|
+
property_name = name[1:]
|
|
3167
|
+
if property_name in memeber_set:
|
|
3168
|
+
memeber_set.remove(property_name)
|
|
3169
|
+
if len(memeber_set) > 0:
|
|
3170
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
3171
|
+
|
|
3172
|
+
|
|
3173
|
+
|
|
3174
|
+
class TargetGroupInstance(AbstractModel):
|
|
3175
|
+
"""Target group instance
|
|
3176
|
+
|
|
3177
|
+
"""
|
|
3178
|
+
|
|
3179
|
+
def __init__(self):
|
|
3180
|
+
r"""
|
|
3181
|
+
:param _BindIP: Private network IP of target group instance.
|
|
3182
|
+
:type BindIP: str
|
|
3183
|
+
:param _Port: Port of target group instance. Only 6081 is supported.
|
|
3184
|
+
:type Port: int
|
|
3185
|
+
:param _Weight: Weight of target group instance. Only 0 or 16 is supported, and non-0 is uniformly treated as 16.
|
|
3186
|
+
:type Weight: int
|
|
3187
|
+
"""
|
|
3188
|
+
self._BindIP = None
|
|
3189
|
+
self._Port = None
|
|
3190
|
+
self._Weight = None
|
|
3191
|
+
|
|
3192
|
+
@property
|
|
3193
|
+
def BindIP(self):
|
|
3194
|
+
"""Private network IP of target group instance.
|
|
3195
|
+
:rtype: str
|
|
3196
|
+
"""
|
|
3197
|
+
return self._BindIP
|
|
3198
|
+
|
|
3199
|
+
@BindIP.setter
|
|
3200
|
+
def BindIP(self, BindIP):
|
|
3201
|
+
self._BindIP = BindIP
|
|
3202
|
+
|
|
3203
|
+
@property
|
|
3204
|
+
def Port(self):
|
|
3205
|
+
"""Port of target group instance. Only 6081 is supported.
|
|
3206
|
+
:rtype: int
|
|
3207
|
+
"""
|
|
3208
|
+
return self._Port
|
|
3209
|
+
|
|
3210
|
+
@Port.setter
|
|
3211
|
+
def Port(self, Port):
|
|
3212
|
+
self._Port = Port
|
|
3213
|
+
|
|
3214
|
+
@property
|
|
3215
|
+
def Weight(self):
|
|
3216
|
+
"""Weight of target group instance. Only 0 or 16 is supported, and non-0 is uniformly treated as 16.
|
|
3217
|
+
:rtype: int
|
|
3218
|
+
"""
|
|
3219
|
+
return self._Weight
|
|
3220
|
+
|
|
3221
|
+
@Weight.setter
|
|
3222
|
+
def Weight(self, Weight):
|
|
3223
|
+
self._Weight = Weight
|
|
3224
|
+
|
|
3225
|
+
|
|
3226
|
+
def _deserialize(self, params):
|
|
3227
|
+
self._BindIP = params.get("BindIP")
|
|
3228
|
+
self._Port = params.get("Port")
|
|
3229
|
+
self._Weight = params.get("Weight")
|
|
3230
|
+
memeber_set = set(params.keys())
|
|
3231
|
+
for name, value in vars(self).items():
|
|
3232
|
+
property_name = name[1:]
|
|
3233
|
+
if property_name in memeber_set:
|
|
3234
|
+
memeber_set.remove(property_name)
|
|
3235
|
+
if len(memeber_set) > 0:
|
|
3236
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
3237
|
+
|
|
3238
|
+
|
|
3239
|
+
|
|
3240
|
+
class TargetGroupInstanceStatus(AbstractModel):
|
|
3241
|
+
"""It is used for the health check status of the target group backend RS.
|
|
3242
|
+
|
|
3243
|
+
"""
|
|
3244
|
+
|
|
3245
|
+
def __init__(self):
|
|
3246
|
+
r"""
|
|
3247
|
+
:param _InstanceIp: IP of backend RS
|
|
3248
|
+
:type InstanceIp: str
|
|
3249
|
+
:param _Status: Health check status, with parameter values and meanings as follows:● on: indicates being under detection.● off: indicates that the health check is disabled.● health: indicates being healthy.● unhealth: indicates being abnormal.
|
|
3250
|
+
:type Status: str
|
|
3251
|
+
"""
|
|
3252
|
+
self._InstanceIp = None
|
|
3253
|
+
self._Status = None
|
|
3254
|
+
|
|
3255
|
+
@property
|
|
3256
|
+
def InstanceIp(self):
|
|
3257
|
+
"""IP of backend RS
|
|
3258
|
+
:rtype: str
|
|
3259
|
+
"""
|
|
3260
|
+
return self._InstanceIp
|
|
3261
|
+
|
|
3262
|
+
@InstanceIp.setter
|
|
3263
|
+
def InstanceIp(self, InstanceIp):
|
|
3264
|
+
self._InstanceIp = InstanceIp
|
|
3265
|
+
|
|
3266
|
+
@property
|
|
3267
|
+
def Status(self):
|
|
3268
|
+
"""Health check status, with parameter values and meanings as follows:● on: indicates being under detection.● off: indicates that the health check is disabled.● health: indicates being healthy.● unhealth: indicates being abnormal.
|
|
3269
|
+
:rtype: str
|
|
3270
|
+
"""
|
|
3271
|
+
return self._Status
|
|
3272
|
+
|
|
3273
|
+
@Status.setter
|
|
3274
|
+
def Status(self, Status):
|
|
3275
|
+
self._Status = Status
|
|
3276
|
+
|
|
3277
|
+
|
|
3278
|
+
def _deserialize(self, params):
|
|
3279
|
+
self._InstanceIp = params.get("InstanceIp")
|
|
3280
|
+
self._Status = params.get("Status")
|
|
3281
|
+
memeber_set = set(params.keys())
|
|
3282
|
+
for name, value in vars(self).items():
|
|
3283
|
+
property_name = name[1:]
|
|
3284
|
+
if property_name in memeber_set:
|
|
3285
|
+
memeber_set.remove(property_name)
|
|
3286
|
+
if len(memeber_set) > 0:
|
|
3287
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
3288
|
+
|