huaweicloudsdkelb 3.1.147__py2.py3-none-any.whl → 3.1.149__py2.py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (72) hide show
  1. huaweicloudsdkelb/v3/__init__.py +34 -0
  2. huaweicloudsdkelb/v3/elb_async_client.py +631 -3
  3. huaweicloudsdkelb/v3/elb_client.py +631 -3
  4. huaweicloudsdkelb/v3/model/__init__.py +34 -0
  5. huaweicloudsdkelb/v3/model/az_affinity.py +201 -0
  6. huaweicloudsdkelb/v3/model/batch_create_load_balancer_option.py +3 -3
  7. huaweicloudsdkelb/v3/model/batch_create_members_option.py +30 -1
  8. huaweicloudsdkelb/v3/model/batch_update_member.py +32 -3
  9. huaweicloudsdkelb/v3/model/batch_update_members_option.py +30 -1
  10. huaweicloudsdkelb/v3/model/certificate_info.py +90 -3
  11. huaweicloudsdkelb/v3/model/create_certificate_option.py +90 -3
  12. huaweicloudsdkelb/v3/model/create_health_monitor_option.py +3 -3
  13. huaweicloudsdkelb/v3/model/create_master_slave_health_monitor_option.py +3 -3
  14. huaweicloudsdkelb/v3/model/create_member_health_check_job_option.py +142 -0
  15. huaweicloudsdkelb/v3/model/create_member_health_check_job_request.py +139 -0
  16. huaweicloudsdkelb/v3/model/create_member_health_check_job_request_body.py +111 -0
  17. huaweicloudsdkelb/v3/model/create_member_health_check_job_response.py +141 -0
  18. huaweicloudsdkelb/v3/model/create_member_option.py +32 -3
  19. huaweicloudsdkelb/v3/model/create_pool_option.py +26 -1
  20. huaweicloudsdkelb/v3/model/create_redirect_pools_extend_config.py +28 -3
  21. huaweicloudsdkelb/v3/model/create_traffic_mirror_config.py +144 -0
  22. huaweicloudsdkelb/v3/model/delete_recycle_load_balancer_request.py +114 -0
  23. huaweicloudsdkelb/v3/model/delete_recycle_load_balancer_response.py +85 -0
  24. huaweicloudsdkelb/v3/model/health_monitor.py +3 -3
  25. huaweicloudsdkelb/v3/model/list_certificates_request.py +90 -3
  26. huaweicloudsdkelb/v3/model/list_health_monitors_request.py +3 -3
  27. huaweicloudsdkelb/v3/model/list_listeners_request.py +30 -1
  28. huaweicloudsdkelb/v3/model/list_load_balancers_request.py +30 -1
  29. huaweicloudsdkelb/v3/model/list_members_request.py +32 -3
  30. huaweicloudsdkelb/v3/model/list_pools_request.py +32 -3
  31. huaweicloudsdkelb/v3/model/list_recycle_bin_load_balancers_request.py +1043 -0
  32. huaweicloudsdkelb/v3/model/list_recycle_bin_load_balancers_response.py +170 -0
  33. huaweicloudsdkelb/v3/model/master_slave_health_monitor.py +3 -3
  34. huaweicloudsdkelb/v3/model/member.py +29 -1
  35. huaweicloudsdkelb/v3/model/member_check_job.py +115 -0
  36. huaweicloudsdkelb/v3/model/member_check_job_info.py +343 -0
  37. huaweicloudsdkelb/v3/model/member_check_job_result.py +161 -0
  38. huaweicloudsdkelb/v3/model/member_check_job_result_group.py +173 -0
  39. huaweicloudsdkelb/v3/model/member_check_job_result_item.py +289 -0
  40. huaweicloudsdkelb/v3/model/member_info.py +29 -1
  41. huaweicloudsdkelb/v3/model/pool.py +29 -4
  42. huaweicloudsdkelb/v3/model/prepaid_change_charge_mode_option.py +30 -1
  43. huaweicloudsdkelb/v3/model/recycle_bin_policy.py +144 -0
  44. huaweicloudsdkelb/v3/model/recycle_bin_policy_request_body.py +111 -0
  45. huaweicloudsdkelb/v3/model/recycle_bin_request_body.py +115 -0
  46. huaweicloudsdkelb/v3/model/recycle_bin_response_body.py +169 -0
  47. huaweicloudsdkelb/v3/model/recycle_load_balancer.py +1412 -0
  48. huaweicloudsdkelb/v3/model/redirect_pools_extend_config.py +28 -3
  49. huaweicloudsdkelb/v3/model/restore_loadbalancer_request.py +114 -0
  50. huaweicloudsdkelb/v3/model/restore_loadbalancer_response.py +174 -0
  51. huaweicloudsdkelb/v3/model/show_member_health_check_job_request.py +114 -0
  52. huaweicloudsdkelb/v3/model/show_member_health_check_job_response.py +141 -0
  53. huaweicloudsdkelb/v3/model/show_recycle_bin_request.py +84 -0
  54. huaweicloudsdkelb/v3/model/show_recycle_bin_response.py +112 -0
  55. huaweicloudsdkelb/v3/model/traffic_mirror_config.py +144 -0
  56. huaweicloudsdkelb/v3/model/update_az_affinity.py +202 -0
  57. huaweicloudsdkelb/v3/model/update_certificate_option.py +90 -3
  58. huaweicloudsdkelb/v3/model/update_health_monitor_option.py +3 -3
  59. huaweicloudsdkelb/v3/model/update_member_option.py +30 -1
  60. huaweicloudsdkelb/v3/model/update_pool_option.py +28 -3
  61. huaweicloudsdkelb/v3/model/update_recycle_bin_enable_request.py +111 -0
  62. huaweicloudsdkelb/v3/model/update_recycle_bin_enable_request_body.py +111 -0
  63. huaweicloudsdkelb/v3/model/update_recycle_bin_enable_response.py +112 -0
  64. huaweicloudsdkelb/v3/model/update_recycle_bin_policy_request.py +111 -0
  65. huaweicloudsdkelb/v3/model/update_recycle_bin_policy_request_body.py +111 -0
  66. huaweicloudsdkelb/v3/model/update_recycle_bin_policy_response.py +112 -0
  67. huaweicloudsdkelb/v3/model/update_redirect_pools_extend_config.py +28 -3
  68. {huaweicloudsdkelb-3.1.147.dist-info → huaweicloudsdkelb-3.1.149.dist-info}/METADATA +2 -2
  69. {huaweicloudsdkelb-3.1.147.dist-info → huaweicloudsdkelb-3.1.149.dist-info}/RECORD +72 -38
  70. {huaweicloudsdkelb-3.1.147.dist-info → huaweicloudsdkelb-3.1.149.dist-info}/LICENSE +0 -0
  71. {huaweicloudsdkelb-3.1.147.dist-info → huaweicloudsdkelb-3.1.149.dist-info}/WHEEL +0 -0
  72. {huaweicloudsdkelb-3.1.147.dist-info → huaweicloudsdkelb-3.1.149.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,343 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class MemberCheckJobInfo:
9
+
10
+ """
11
+ Attributes:
12
+ openapi_types (dict): The key is attribute name
13
+ and the value is attribute type.
14
+ attribute_map (dict): The key is attribute name
15
+ and the value is json key in definition.
16
+ """
17
+ sensitive_list = []
18
+
19
+ openapi_types = {
20
+ 'status': 'str',
21
+ 'result': 'MemberCheckJobResult',
22
+ 'created_at': 'str',
23
+ 'updated_at': 'str',
24
+ 'job_id': 'str',
25
+ 'check_item_total_num': 'int',
26
+ 'check_item_finished_num': 'int',
27
+ 'listener_id': 'str',
28
+ 'member_id': 'str'
29
+ }
30
+
31
+ attribute_map = {
32
+ 'status': 'status',
33
+ 'result': 'result',
34
+ 'created_at': 'created_at',
35
+ 'updated_at': 'updated_at',
36
+ 'job_id': 'job_id',
37
+ 'check_item_total_num': 'check_item_total_num',
38
+ 'check_item_finished_num': 'check_item_finished_num',
39
+ 'listener_id': 'listener_id',
40
+ 'member_id': 'member_id'
41
+ }
42
+
43
+ def __init__(self, status=None, result=None, created_at=None, updated_at=None, job_id=None, check_item_total_num=None, check_item_finished_num=None, listener_id=None, member_id=None):
44
+ r"""MemberCheckJobInfo
45
+
46
+ The model defined in huaweicloud sdk
47
+
48
+ :param status: 参数解释:processed检查完成,processing检查中,failed检查失败
49
+ :type status: str
50
+ :param result:
51
+ :type result: :class:`huaweicloudsdkelb.v3.MemberCheckJobResult`
52
+ :param created_at: 参数解释:任务创建时间。
53
+ :type created_at: str
54
+ :param updated_at: 参数解释:任务更新时间
55
+ :type updated_at: str
56
+ :param job_id: 参数解释:任务ID。
57
+ :type job_id: str
58
+ :param check_item_total_num: 参数解释:检查项总个数
59
+ :type check_item_total_num: int
60
+ :param check_item_finished_num: 参数解释:已检查完成的检查项个数
61
+ :type check_item_finished_num: int
62
+ :param listener_id: 参数解释:后端服务器所关联的监听器,查询在该监听器下后端服务器的状态。
63
+ :type listener_id: str
64
+ :param member_id: 参数解释:后端服务器ID。
65
+ :type member_id: str
66
+ """
67
+
68
+
69
+
70
+ self._status = None
71
+ self._result = None
72
+ self._created_at = None
73
+ self._updated_at = None
74
+ self._job_id = None
75
+ self._check_item_total_num = None
76
+ self._check_item_finished_num = None
77
+ self._listener_id = None
78
+ self._member_id = None
79
+ self.discriminator = None
80
+
81
+ if status is not None:
82
+ self.status = status
83
+ if result is not None:
84
+ self.result = result
85
+ if created_at is not None:
86
+ self.created_at = created_at
87
+ if updated_at is not None:
88
+ self.updated_at = updated_at
89
+ if job_id is not None:
90
+ self.job_id = job_id
91
+ if check_item_total_num is not None:
92
+ self.check_item_total_num = check_item_total_num
93
+ if check_item_finished_num is not None:
94
+ self.check_item_finished_num = check_item_finished_num
95
+ if listener_id is not None:
96
+ self.listener_id = listener_id
97
+ if member_id is not None:
98
+ self.member_id = member_id
99
+
100
+ @property
101
+ def status(self):
102
+ r"""Gets the status of this MemberCheckJobInfo.
103
+
104
+ 参数解释:processed检查完成,processing检查中,failed检查失败
105
+
106
+ :return: The status of this MemberCheckJobInfo.
107
+ :rtype: str
108
+ """
109
+ return self._status
110
+
111
+ @status.setter
112
+ def status(self, status):
113
+ r"""Sets the status of this MemberCheckJobInfo.
114
+
115
+ 参数解释:processed检查完成,processing检查中,failed检查失败
116
+
117
+ :param status: The status of this MemberCheckJobInfo.
118
+ :type status: str
119
+ """
120
+ self._status = status
121
+
122
+ @property
123
+ def result(self):
124
+ r"""Gets the result of this MemberCheckJobInfo.
125
+
126
+ :return: The result of this MemberCheckJobInfo.
127
+ :rtype: :class:`huaweicloudsdkelb.v3.MemberCheckJobResult`
128
+ """
129
+ return self._result
130
+
131
+ @result.setter
132
+ def result(self, result):
133
+ r"""Sets the result of this MemberCheckJobInfo.
134
+
135
+ :param result: The result of this MemberCheckJobInfo.
136
+ :type result: :class:`huaweicloudsdkelb.v3.MemberCheckJobResult`
137
+ """
138
+ self._result = result
139
+
140
+ @property
141
+ def created_at(self):
142
+ r"""Gets the created_at of this MemberCheckJobInfo.
143
+
144
+ 参数解释:任务创建时间。
145
+
146
+ :return: The created_at of this MemberCheckJobInfo.
147
+ :rtype: str
148
+ """
149
+ return self._created_at
150
+
151
+ @created_at.setter
152
+ def created_at(self, created_at):
153
+ r"""Sets the created_at of this MemberCheckJobInfo.
154
+
155
+ 参数解释:任务创建时间。
156
+
157
+ :param created_at: The created_at of this MemberCheckJobInfo.
158
+ :type created_at: str
159
+ """
160
+ self._created_at = created_at
161
+
162
+ @property
163
+ def updated_at(self):
164
+ r"""Gets the updated_at of this MemberCheckJobInfo.
165
+
166
+ 参数解释:任务更新时间
167
+
168
+ :return: The updated_at of this MemberCheckJobInfo.
169
+ :rtype: str
170
+ """
171
+ return self._updated_at
172
+
173
+ @updated_at.setter
174
+ def updated_at(self, updated_at):
175
+ r"""Sets the updated_at of this MemberCheckJobInfo.
176
+
177
+ 参数解释:任务更新时间
178
+
179
+ :param updated_at: The updated_at of this MemberCheckJobInfo.
180
+ :type updated_at: str
181
+ """
182
+ self._updated_at = updated_at
183
+
184
+ @property
185
+ def job_id(self):
186
+ r"""Gets the job_id of this MemberCheckJobInfo.
187
+
188
+ 参数解释:任务ID。
189
+
190
+ :return: The job_id of this MemberCheckJobInfo.
191
+ :rtype: str
192
+ """
193
+ return self._job_id
194
+
195
+ @job_id.setter
196
+ def job_id(self, job_id):
197
+ r"""Sets the job_id of this MemberCheckJobInfo.
198
+
199
+ 参数解释:任务ID。
200
+
201
+ :param job_id: The job_id of this MemberCheckJobInfo.
202
+ :type job_id: str
203
+ """
204
+ self._job_id = job_id
205
+
206
+ @property
207
+ def check_item_total_num(self):
208
+ r"""Gets the check_item_total_num of this MemberCheckJobInfo.
209
+
210
+ 参数解释:检查项总个数
211
+
212
+ :return: The check_item_total_num of this MemberCheckJobInfo.
213
+ :rtype: int
214
+ """
215
+ return self._check_item_total_num
216
+
217
+ @check_item_total_num.setter
218
+ def check_item_total_num(self, check_item_total_num):
219
+ r"""Sets the check_item_total_num of this MemberCheckJobInfo.
220
+
221
+ 参数解释:检查项总个数
222
+
223
+ :param check_item_total_num: The check_item_total_num of this MemberCheckJobInfo.
224
+ :type check_item_total_num: int
225
+ """
226
+ self._check_item_total_num = check_item_total_num
227
+
228
+ @property
229
+ def check_item_finished_num(self):
230
+ r"""Gets the check_item_finished_num of this MemberCheckJobInfo.
231
+
232
+ 参数解释:已检查完成的检查项个数
233
+
234
+ :return: The check_item_finished_num of this MemberCheckJobInfo.
235
+ :rtype: int
236
+ """
237
+ return self._check_item_finished_num
238
+
239
+ @check_item_finished_num.setter
240
+ def check_item_finished_num(self, check_item_finished_num):
241
+ r"""Sets the check_item_finished_num of this MemberCheckJobInfo.
242
+
243
+ 参数解释:已检查完成的检查项个数
244
+
245
+ :param check_item_finished_num: The check_item_finished_num of this MemberCheckJobInfo.
246
+ :type check_item_finished_num: int
247
+ """
248
+ self._check_item_finished_num = check_item_finished_num
249
+
250
+ @property
251
+ def listener_id(self):
252
+ r"""Gets the listener_id of this MemberCheckJobInfo.
253
+
254
+ 参数解释:后端服务器所关联的监听器,查询在该监听器下后端服务器的状态。
255
+
256
+ :return: The listener_id of this MemberCheckJobInfo.
257
+ :rtype: str
258
+ """
259
+ return self._listener_id
260
+
261
+ @listener_id.setter
262
+ def listener_id(self, listener_id):
263
+ r"""Sets the listener_id of this MemberCheckJobInfo.
264
+
265
+ 参数解释:后端服务器所关联的监听器,查询在该监听器下后端服务器的状态。
266
+
267
+ :param listener_id: The listener_id of this MemberCheckJobInfo.
268
+ :type listener_id: str
269
+ """
270
+ self._listener_id = listener_id
271
+
272
+ @property
273
+ def member_id(self):
274
+ r"""Gets the member_id of this MemberCheckJobInfo.
275
+
276
+ 参数解释:后端服务器ID。
277
+
278
+ :return: The member_id of this MemberCheckJobInfo.
279
+ :rtype: str
280
+ """
281
+ return self._member_id
282
+
283
+ @member_id.setter
284
+ def member_id(self, member_id):
285
+ r"""Sets the member_id of this MemberCheckJobInfo.
286
+
287
+ 参数解释:后端服务器ID。
288
+
289
+ :param member_id: The member_id of this MemberCheckJobInfo.
290
+ :type member_id: str
291
+ """
292
+ self._member_id = member_id
293
+
294
+ def to_dict(self):
295
+ """Returns the model properties as a dict"""
296
+ result = {}
297
+
298
+ for attr, _ in six.iteritems(self.openapi_types):
299
+ value = getattr(self, attr)
300
+ if isinstance(value, list):
301
+ result[attr] = list(map(
302
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
303
+ value
304
+ ))
305
+ elif hasattr(value, "to_dict"):
306
+ result[attr] = value.to_dict()
307
+ elif isinstance(value, dict):
308
+ result[attr] = dict(map(
309
+ lambda item: (item[0], item[1].to_dict())
310
+ if hasattr(item[1], "to_dict") else item,
311
+ value.items()
312
+ ))
313
+ else:
314
+ if attr in self.sensitive_list:
315
+ result[attr] = "****"
316
+ else:
317
+ result[attr] = value
318
+
319
+ return result
320
+
321
+ def to_str(self):
322
+ """Returns the string representation of the model"""
323
+ import simplejson as json
324
+ if six.PY2:
325
+ import sys
326
+ reload(sys)
327
+ sys.setdefaultencoding("utf-8")
328
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
329
+
330
+ def __repr__(self):
331
+ """For `print`"""
332
+ return self.to_str()
333
+
334
+ def __eq__(self, other):
335
+ """Returns true if both objects are equal"""
336
+ if not isinstance(other, MemberCheckJobInfo):
337
+ return False
338
+
339
+ return self.__dict__ == other.__dict__
340
+
341
+ def __ne__(self, other):
342
+ """Returns true if both objects are not equal"""
343
+ return not self == other
@@ -0,0 +1,161 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class MemberCheckJobResult:
9
+
10
+ """
11
+ Attributes:
12
+ openapi_types (dict): The key is attribute name
13
+ and the value is attribute type.
14
+ attribute_map (dict): The key is attribute name
15
+ and the value is json key in definition.
16
+ """
17
+ sensitive_list = []
18
+
19
+ openapi_types = {
20
+ 'config': 'MemberCheckJobResultGroup',
21
+ 'acl': 'MemberCheckJobResultGroup',
22
+ 'security_group': 'MemberCheckJobResultGroup'
23
+ }
24
+
25
+ attribute_map = {
26
+ 'config': 'config',
27
+ 'acl': 'acl',
28
+ 'security_group': 'security_group'
29
+ }
30
+
31
+ def __init__(self, config=None, acl=None, security_group=None):
32
+ r"""MemberCheckJobResult
33
+
34
+ The model defined in huaweicloud sdk
35
+
36
+ :param config:
37
+ :type config: :class:`huaweicloudsdkelb.v3.MemberCheckJobResultGroup`
38
+ :param acl:
39
+ :type acl: :class:`huaweicloudsdkelb.v3.MemberCheckJobResultGroup`
40
+ :param security_group:
41
+ :type security_group: :class:`huaweicloudsdkelb.v3.MemberCheckJobResultGroup`
42
+ """
43
+
44
+
45
+
46
+ self._config = None
47
+ self._acl = None
48
+ self._security_group = None
49
+ self.discriminator = None
50
+
51
+ if config is not None:
52
+ self.config = config
53
+ if acl is not None:
54
+ self.acl = acl
55
+ if security_group is not None:
56
+ self.security_group = security_group
57
+
58
+ @property
59
+ def config(self):
60
+ r"""Gets the config of this MemberCheckJobResult.
61
+
62
+ :return: The config of this MemberCheckJobResult.
63
+ :rtype: :class:`huaweicloudsdkelb.v3.MemberCheckJobResultGroup`
64
+ """
65
+ return self._config
66
+
67
+ @config.setter
68
+ def config(self, config):
69
+ r"""Sets the config of this MemberCheckJobResult.
70
+
71
+ :param config: The config of this MemberCheckJobResult.
72
+ :type config: :class:`huaweicloudsdkelb.v3.MemberCheckJobResultGroup`
73
+ """
74
+ self._config = config
75
+
76
+ @property
77
+ def acl(self):
78
+ r"""Gets the acl of this MemberCheckJobResult.
79
+
80
+ :return: The acl of this MemberCheckJobResult.
81
+ :rtype: :class:`huaweicloudsdkelb.v3.MemberCheckJobResultGroup`
82
+ """
83
+ return self._acl
84
+
85
+ @acl.setter
86
+ def acl(self, acl):
87
+ r"""Sets the acl of this MemberCheckJobResult.
88
+
89
+ :param acl: The acl of this MemberCheckJobResult.
90
+ :type acl: :class:`huaweicloudsdkelb.v3.MemberCheckJobResultGroup`
91
+ """
92
+ self._acl = acl
93
+
94
+ @property
95
+ def security_group(self):
96
+ r"""Gets the security_group of this MemberCheckJobResult.
97
+
98
+ :return: The security_group of this MemberCheckJobResult.
99
+ :rtype: :class:`huaweicloudsdkelb.v3.MemberCheckJobResultGroup`
100
+ """
101
+ return self._security_group
102
+
103
+ @security_group.setter
104
+ def security_group(self, security_group):
105
+ r"""Sets the security_group of this MemberCheckJobResult.
106
+
107
+ :param security_group: The security_group of this MemberCheckJobResult.
108
+ :type security_group: :class:`huaweicloudsdkelb.v3.MemberCheckJobResultGroup`
109
+ """
110
+ self._security_group = security_group
111
+
112
+ def to_dict(self):
113
+ """Returns the model properties as a dict"""
114
+ result = {}
115
+
116
+ for attr, _ in six.iteritems(self.openapi_types):
117
+ value = getattr(self, attr)
118
+ if isinstance(value, list):
119
+ result[attr] = list(map(
120
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
121
+ value
122
+ ))
123
+ elif hasattr(value, "to_dict"):
124
+ result[attr] = value.to_dict()
125
+ elif isinstance(value, dict):
126
+ result[attr] = dict(map(
127
+ lambda item: (item[0], item[1].to_dict())
128
+ if hasattr(item[1], "to_dict") else item,
129
+ value.items()
130
+ ))
131
+ else:
132
+ if attr in self.sensitive_list:
133
+ result[attr] = "****"
134
+ else:
135
+ result[attr] = value
136
+
137
+ return result
138
+
139
+ def to_str(self):
140
+ """Returns the string representation of the model"""
141
+ import simplejson as json
142
+ if six.PY2:
143
+ import sys
144
+ reload(sys)
145
+ sys.setdefaultencoding("utf-8")
146
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
147
+
148
+ def __repr__(self):
149
+ """For `print`"""
150
+ return self.to_str()
151
+
152
+ def __eq__(self, other):
153
+ """Returns true if both objects are equal"""
154
+ if not isinstance(other, MemberCheckJobResult):
155
+ return False
156
+
157
+ return self.__dict__ == other.__dict__
158
+
159
+ def __ne__(self, other):
160
+ """Returns true if both objects are not equal"""
161
+ return not self == other
@@ -0,0 +1,173 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class MemberCheckJobResultGroup:
9
+
10
+ """
11
+ Attributes:
12
+ openapi_types (dict): The key is attribute name
13
+ and the value is attribute type.
14
+ attribute_map (dict): The key is attribute name
15
+ and the value is json key in definition.
16
+ """
17
+ sensitive_list = []
18
+
19
+ openapi_types = {
20
+ 'check_result': 'bool',
21
+ 'check_items': 'list[MemberCheckJobResultItem]',
22
+ 'check_status': 'str'
23
+ }
24
+
25
+ attribute_map = {
26
+ 'check_result': 'check_result',
27
+ 'check_items': 'check_items',
28
+ 'check_status': 'check_status'
29
+ }
30
+
31
+ def __init__(self, check_result=None, check_items=None, check_status=None):
32
+ r"""MemberCheckJobResultGroup
33
+
34
+ The model defined in huaweicloud sdk
35
+
36
+ :param check_result: 参数解释:检查结果,true表示检查通过,false为检查不通过。
37
+ :type check_result: bool
38
+ :param check_items: 参数解释:分组检查项汇总。
39
+ :type check_items: list[:class:`huaweicloudsdkelb.v3.MemberCheckJobResultItem`]
40
+ :param check_status: 参数解释:processed检查完成,processing检查中,failed检查失败
41
+ :type check_status: str
42
+ """
43
+
44
+
45
+
46
+ self._check_result = None
47
+ self._check_items = None
48
+ self._check_status = None
49
+ self.discriminator = None
50
+
51
+ if check_result is not None:
52
+ self.check_result = check_result
53
+ if check_items is not None:
54
+ self.check_items = check_items
55
+ if check_status is not None:
56
+ self.check_status = check_status
57
+
58
+ @property
59
+ def check_result(self):
60
+ r"""Gets the check_result of this MemberCheckJobResultGroup.
61
+
62
+ 参数解释:检查结果,true表示检查通过,false为检查不通过。
63
+
64
+ :return: The check_result of this MemberCheckJobResultGroup.
65
+ :rtype: bool
66
+ """
67
+ return self._check_result
68
+
69
+ @check_result.setter
70
+ def check_result(self, check_result):
71
+ r"""Sets the check_result of this MemberCheckJobResultGroup.
72
+
73
+ 参数解释:检查结果,true表示检查通过,false为检查不通过。
74
+
75
+ :param check_result: The check_result of this MemberCheckJobResultGroup.
76
+ :type check_result: bool
77
+ """
78
+ self._check_result = check_result
79
+
80
+ @property
81
+ def check_items(self):
82
+ r"""Gets the check_items of this MemberCheckJobResultGroup.
83
+
84
+ 参数解释:分组检查项汇总。
85
+
86
+ :return: The check_items of this MemberCheckJobResultGroup.
87
+ :rtype: list[:class:`huaweicloudsdkelb.v3.MemberCheckJobResultItem`]
88
+ """
89
+ return self._check_items
90
+
91
+ @check_items.setter
92
+ def check_items(self, check_items):
93
+ r"""Sets the check_items of this MemberCheckJobResultGroup.
94
+
95
+ 参数解释:分组检查项汇总。
96
+
97
+ :param check_items: The check_items of this MemberCheckJobResultGroup.
98
+ :type check_items: list[:class:`huaweicloudsdkelb.v3.MemberCheckJobResultItem`]
99
+ """
100
+ self._check_items = check_items
101
+
102
+ @property
103
+ def check_status(self):
104
+ r"""Gets the check_status of this MemberCheckJobResultGroup.
105
+
106
+ 参数解释:processed检查完成,processing检查中,failed检查失败
107
+
108
+ :return: The check_status of this MemberCheckJobResultGroup.
109
+ :rtype: str
110
+ """
111
+ return self._check_status
112
+
113
+ @check_status.setter
114
+ def check_status(self, check_status):
115
+ r"""Sets the check_status of this MemberCheckJobResultGroup.
116
+
117
+ 参数解释:processed检查完成,processing检查中,failed检查失败
118
+
119
+ :param check_status: The check_status of this MemberCheckJobResultGroup.
120
+ :type check_status: str
121
+ """
122
+ self._check_status = check_status
123
+
124
+ def to_dict(self):
125
+ """Returns the model properties as a dict"""
126
+ result = {}
127
+
128
+ for attr, _ in six.iteritems(self.openapi_types):
129
+ value = getattr(self, attr)
130
+ if isinstance(value, list):
131
+ result[attr] = list(map(
132
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
133
+ value
134
+ ))
135
+ elif hasattr(value, "to_dict"):
136
+ result[attr] = value.to_dict()
137
+ elif isinstance(value, dict):
138
+ result[attr] = dict(map(
139
+ lambda item: (item[0], item[1].to_dict())
140
+ if hasattr(item[1], "to_dict") else item,
141
+ value.items()
142
+ ))
143
+ else:
144
+ if attr in self.sensitive_list:
145
+ result[attr] = "****"
146
+ else:
147
+ result[attr] = value
148
+
149
+ return result
150
+
151
+ def to_str(self):
152
+ """Returns the string representation of the model"""
153
+ import simplejson as json
154
+ if six.PY2:
155
+ import sys
156
+ reload(sys)
157
+ sys.setdefaultencoding("utf-8")
158
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
159
+
160
+ def __repr__(self):
161
+ """For `print`"""
162
+ return self.to_str()
163
+
164
+ def __eq__(self, other):
165
+ """Returns true if both objects are equal"""
166
+ if not isinstance(other, MemberCheckJobResultGroup):
167
+ return False
168
+
169
+ return self.__dict__ == other.__dict__
170
+
171
+ def __ne__(self, other):
172
+ """Returns true if both objects are not equal"""
173
+ return not self == other