huaweicloudsdkdrs 3.1.94__py2.py3-none-any.whl → 3.1.95__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 (60) hide show
  1. huaweicloudsdkdrs/v3/__init__.py +17 -0
  2. huaweicloudsdkdrs/v3/drs_async_client.py +434 -0
  3. huaweicloudsdkdrs/v3/drs_client.py +434 -0
  4. huaweicloudsdkdrs/v3/model/__init__.py +17 -0
  5. huaweicloudsdkdrs/v3/model/batch_job_action_req.py +3 -3
  6. huaweicloudsdkdrs/v3/model/compare_job_content_detail_info.py +202 -0
  7. huaweicloudsdkdrs/v3/model/create_compare_result_file_request.py +196 -0
  8. huaweicloudsdkdrs/v3/model/create_compare_result_file_response.py +116 -0
  9. huaweicloudsdkdrs/v3/model/create_object_compare_job_req.py +115 -0
  10. huaweicloudsdkdrs/v3/model/create_object_level_compare_job_request.py +168 -0
  11. huaweicloudsdkdrs/v3/model/create_object_level_compare_job_response.py +116 -0
  12. huaweicloudsdkdrs/v3/model/download_compare_result_file_request.py +255 -0
  13. huaweicloudsdkdrs/v3/model/download_compare_result_file_response.py +85 -0
  14. huaweicloudsdkdrs/v3/model/endpoint.py +28 -3
  15. huaweicloudsdkdrs/v3/model/export_compare_result_req.py +172 -0
  16. huaweicloudsdkdrs/v3/model/kafka_security.py +290 -29
  17. huaweicloudsdkdrs/v3/model/list_content_compare_detail_request.py +3 -3
  18. huaweicloudsdkdrs/v3/model/list_content_compare_difference_request.py +287 -0
  19. huaweicloudsdkdrs/v3/model/list_content_compare_difference_response.py +232 -0
  20. huaweicloudsdkdrs/v3/model/list_content_compare_overview_request.py +3 -3
  21. huaweicloudsdkdrs/v3/model/list_data_compare_detail_request.py +3 -3
  22. huaweicloudsdkdrs/v3/model/list_data_compare_overview_request.py +3 -3
  23. huaweicloudsdkdrs/v3/model/list_data_level_table_compare_jobs_request.py +3 -3
  24. huaweicloudsdkdrs/v3/model/list_obeject_level_compare_detail_request.py +258 -0
  25. huaweicloudsdkdrs/v3/model/list_obeject_level_compare_detail_response.py +145 -0
  26. huaweicloudsdkdrs/v3/model/list_obeject_level_compare_overview_request.py +143 -0
  27. huaweicloudsdkdrs/v3/model/list_obeject_level_compare_overview_response.py +319 -0
  28. huaweicloudsdkdrs/v3/model/objects_compare_detail_info.py +260 -0
  29. huaweicloudsdkdrs/v3/model/objects_compare_overview_info.py +202 -0
  30. huaweicloudsdkdrs/v5/__init__.py +11 -0
  31. huaweicloudsdkdrs/v5/drs_async_client.py +207 -0
  32. huaweicloudsdkdrs/v5/drs_client.py +207 -0
  33. huaweicloudsdkdrs/v5/model/__init__.py +11 -0
  34. huaweicloudsdkdrs/v5/model/action_params.py +28 -3
  35. huaweicloudsdkdrs/v5/model/action_req.py +3 -3
  36. huaweicloudsdkdrs/v5/model/children_job_list_resp.py +3 -3
  37. huaweicloudsdkdrs/v5/model/compare_result_info.py +28 -3
  38. huaweicloudsdkdrs/v5/model/content_compare_overview_info.py +3 -3
  39. huaweicloudsdkdrs/v5/model/content_diff_detail_info.py +231 -0
  40. huaweicloudsdkdrs/v5/model/content_diff_detail_vo.py +202 -0
  41. huaweicloudsdkdrs/v5/model/health_compare_job.py +9 -9
  42. huaweicloudsdkdrs/v5/model/job_detail_resp.py +32 -3
  43. huaweicloudsdkdrs/v5/model/job_list_resp.py +3 -3
  44. huaweicloudsdkdrs/v5/model/modify_compare_policy_req.py +288 -0
  45. huaweicloudsdkdrs/v5/model/objects_health_compare_overview_info.py +202 -0
  46. huaweicloudsdkdrs/v5/model/replay_config_info.py +282 -0
  47. huaweicloudsdkdrs/v5/model/show_compare_policy_response.py +3 -3
  48. huaweicloudsdkdrs/v5/model/show_health_compare_job_detail_request.py +171 -0
  49. huaweicloudsdkdrs/v5/model/show_health_compare_job_detail_response.py +261 -0
  50. huaweicloudsdkdrs/v5/model/show_health_object_compare_job_overview_request.py +171 -0
  51. huaweicloudsdkdrs/v5/model/show_health_object_compare_job_overview_response.py +116 -0
  52. huaweicloudsdkdrs/v5/model/show_job_detail_request.py +3 -3
  53. huaweicloudsdkdrs/v5/model/update_compare_policy_request.py +168 -0
  54. huaweicloudsdkdrs/v5/model/update_compare_policy_response.py +116 -0
  55. huaweicloudsdkdrs/v5/model/update_job_req.py +3 -3
  56. {huaweicloudsdkdrs-3.1.94.dist-info → huaweicloudsdkdrs-3.1.95.dist-info}/METADATA +2 -2
  57. {huaweicloudsdkdrs-3.1.94.dist-info → huaweicloudsdkdrs-3.1.95.dist-info}/RECORD +60 -32
  58. {huaweicloudsdkdrs-3.1.94.dist-info → huaweicloudsdkdrs-3.1.95.dist-info}/LICENSE +0 -0
  59. {huaweicloudsdkdrs-3.1.94.dist-info → huaweicloudsdkdrs-3.1.95.dist-info}/WHEEL +0 -0
  60. {huaweicloudsdkdrs-3.1.94.dist-info → huaweicloudsdkdrs-3.1.95.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,288 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class ModifyComparePolicyReq:
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
+ 'action': 'str',
21
+ 'period': 'str',
22
+ 'begin_time': 'str',
23
+ 'end_time': 'str',
24
+ 'compare_type': 'list[str]',
25
+ 'compare_policy': 'str',
26
+ 'interval_hour': 'int'
27
+ }
28
+
29
+ attribute_map = {
30
+ 'action': 'action',
31
+ 'period': 'period',
32
+ 'begin_time': 'begin_time',
33
+ 'end_time': 'end_time',
34
+ 'compare_type': 'compare_type',
35
+ 'compare_policy': 'compare_policy',
36
+ 'interval_hour': 'interval_hour'
37
+ }
38
+
39
+ def __init__(self, action=None, period=None, begin_time=None, end_time=None, compare_type=None, compare_policy=None, interval_hour=None):
40
+ """ModifyComparePolicyReq
41
+
42
+ The model defined in huaweicloud sdk
43
+
44
+ :param action: 对比策略开关-open|close。
45
+ :type action: str
46
+ :param period: 对比策略周期。 - 每周对比:格式示例:“* * 1,3,5” ,其中“1,3,5”对应星期一、星期三、星期五,根据实际填写。 - 每天对比:固定填写“* * 1,2,3,4,5,6,7”。 - 按小时对比:固定填写“* * 1,2,3,4,5,6,7”。
47
+ :type period: str
48
+ :param begin_time: 对比策略生效开始时间,UTC时间,24小时制,时间格式HH:mm:ss,例如:00:00:00,表示UTC时间的00:00:00,北京时间(UTC+08:00)的08:00:00。
49
+ :type begin_time: str
50
+ :param end_time: 对比策略生效结束时间,UTC时间,24小时制,时间格式HH:mm:ss,例如:04:00:00,表示UTC时间的04:00:00,北京时间(UTC+08:00)的12:00:00。
51
+ :type end_time: str
52
+ :param compare_type: 对比类型列表: - object_comparison:对象对比。 - lines:行对比。 - account:用户对比。
53
+ :type compare_type: list[str]
54
+ :param compare_policy: 对比策略: - normal:普通对比。 - manyToOne:多对一对比。
55
+ :type compare_policy: str
56
+ :param interval_hour: 间隔时间,按小时对比时填写,表示每隔多久执行一次对比,单位是小时。
57
+ :type interval_hour: int
58
+ """
59
+
60
+
61
+
62
+ self._action = None
63
+ self._period = None
64
+ self._begin_time = None
65
+ self._end_time = None
66
+ self._compare_type = None
67
+ self._compare_policy = None
68
+ self._interval_hour = None
69
+ self.discriminator = None
70
+
71
+ self.action = action
72
+ if period is not None:
73
+ self.period = period
74
+ if begin_time is not None:
75
+ self.begin_time = begin_time
76
+ if end_time is not None:
77
+ self.end_time = end_time
78
+ if compare_type is not None:
79
+ self.compare_type = compare_type
80
+ if compare_policy is not None:
81
+ self.compare_policy = compare_policy
82
+ if interval_hour is not None:
83
+ self.interval_hour = interval_hour
84
+
85
+ @property
86
+ def action(self):
87
+ """Gets the action of this ModifyComparePolicyReq.
88
+
89
+ 对比策略开关-open|close。
90
+
91
+ :return: The action of this ModifyComparePolicyReq.
92
+ :rtype: str
93
+ """
94
+ return self._action
95
+
96
+ @action.setter
97
+ def action(self, action):
98
+ """Sets the action of this ModifyComparePolicyReq.
99
+
100
+ 对比策略开关-open|close。
101
+
102
+ :param action: The action of this ModifyComparePolicyReq.
103
+ :type action: str
104
+ """
105
+ self._action = action
106
+
107
+ @property
108
+ def period(self):
109
+ """Gets the period of this ModifyComparePolicyReq.
110
+
111
+ 对比策略周期。 - 每周对比:格式示例:“* * 1,3,5” ,其中“1,3,5”对应星期一、星期三、星期五,根据实际填写。 - 每天对比:固定填写“* * 1,2,3,4,5,6,7”。 - 按小时对比:固定填写“* * 1,2,3,4,5,6,7”。
112
+
113
+ :return: The period of this ModifyComparePolicyReq.
114
+ :rtype: str
115
+ """
116
+ return self._period
117
+
118
+ @period.setter
119
+ def period(self, period):
120
+ """Sets the period of this ModifyComparePolicyReq.
121
+
122
+ 对比策略周期。 - 每周对比:格式示例:“* * 1,3,5” ,其中“1,3,5”对应星期一、星期三、星期五,根据实际填写。 - 每天对比:固定填写“* * 1,2,3,4,5,6,7”。 - 按小时对比:固定填写“* * 1,2,3,4,5,6,7”。
123
+
124
+ :param period: The period of this ModifyComparePolicyReq.
125
+ :type period: str
126
+ """
127
+ self._period = period
128
+
129
+ @property
130
+ def begin_time(self):
131
+ """Gets the begin_time of this ModifyComparePolicyReq.
132
+
133
+ 对比策略生效开始时间,UTC时间,24小时制,时间格式HH:mm:ss,例如:00:00:00,表示UTC时间的00:00:00,北京时间(UTC+08:00)的08:00:00。
134
+
135
+ :return: The begin_time of this ModifyComparePolicyReq.
136
+ :rtype: str
137
+ """
138
+ return self._begin_time
139
+
140
+ @begin_time.setter
141
+ def begin_time(self, begin_time):
142
+ """Sets the begin_time of this ModifyComparePolicyReq.
143
+
144
+ 对比策略生效开始时间,UTC时间,24小时制,时间格式HH:mm:ss,例如:00:00:00,表示UTC时间的00:00:00,北京时间(UTC+08:00)的08:00:00。
145
+
146
+ :param begin_time: The begin_time of this ModifyComparePolicyReq.
147
+ :type begin_time: str
148
+ """
149
+ self._begin_time = begin_time
150
+
151
+ @property
152
+ def end_time(self):
153
+ """Gets the end_time of this ModifyComparePolicyReq.
154
+
155
+ 对比策略生效结束时间,UTC时间,24小时制,时间格式HH:mm:ss,例如:04:00:00,表示UTC时间的04:00:00,北京时间(UTC+08:00)的12:00:00。
156
+
157
+ :return: The end_time of this ModifyComparePolicyReq.
158
+ :rtype: str
159
+ """
160
+ return self._end_time
161
+
162
+ @end_time.setter
163
+ def end_time(self, end_time):
164
+ """Sets the end_time of this ModifyComparePolicyReq.
165
+
166
+ 对比策略生效结束时间,UTC时间,24小时制,时间格式HH:mm:ss,例如:04:00:00,表示UTC时间的04:00:00,北京时间(UTC+08:00)的12:00:00。
167
+
168
+ :param end_time: The end_time of this ModifyComparePolicyReq.
169
+ :type end_time: str
170
+ """
171
+ self._end_time = end_time
172
+
173
+ @property
174
+ def compare_type(self):
175
+ """Gets the compare_type of this ModifyComparePolicyReq.
176
+
177
+ 对比类型列表: - object_comparison:对象对比。 - lines:行对比。 - account:用户对比。
178
+
179
+ :return: The compare_type of this ModifyComparePolicyReq.
180
+ :rtype: list[str]
181
+ """
182
+ return self._compare_type
183
+
184
+ @compare_type.setter
185
+ def compare_type(self, compare_type):
186
+ """Sets the compare_type of this ModifyComparePolicyReq.
187
+
188
+ 对比类型列表: - object_comparison:对象对比。 - lines:行对比。 - account:用户对比。
189
+
190
+ :param compare_type: The compare_type of this ModifyComparePolicyReq.
191
+ :type compare_type: list[str]
192
+ """
193
+ self._compare_type = compare_type
194
+
195
+ @property
196
+ def compare_policy(self):
197
+ """Gets the compare_policy of this ModifyComparePolicyReq.
198
+
199
+ 对比策略: - normal:普通对比。 - manyToOne:多对一对比。
200
+
201
+ :return: The compare_policy of this ModifyComparePolicyReq.
202
+ :rtype: str
203
+ """
204
+ return self._compare_policy
205
+
206
+ @compare_policy.setter
207
+ def compare_policy(self, compare_policy):
208
+ """Sets the compare_policy of this ModifyComparePolicyReq.
209
+
210
+ 对比策略: - normal:普通对比。 - manyToOne:多对一对比。
211
+
212
+ :param compare_policy: The compare_policy of this ModifyComparePolicyReq.
213
+ :type compare_policy: str
214
+ """
215
+ self._compare_policy = compare_policy
216
+
217
+ @property
218
+ def interval_hour(self):
219
+ """Gets the interval_hour of this ModifyComparePolicyReq.
220
+
221
+ 间隔时间,按小时对比时填写,表示每隔多久执行一次对比,单位是小时。
222
+
223
+ :return: The interval_hour of this ModifyComparePolicyReq.
224
+ :rtype: int
225
+ """
226
+ return self._interval_hour
227
+
228
+ @interval_hour.setter
229
+ def interval_hour(self, interval_hour):
230
+ """Sets the interval_hour of this ModifyComparePolicyReq.
231
+
232
+ 间隔时间,按小时对比时填写,表示每隔多久执行一次对比,单位是小时。
233
+
234
+ :param interval_hour: The interval_hour of this ModifyComparePolicyReq.
235
+ :type interval_hour: int
236
+ """
237
+ self._interval_hour = interval_hour
238
+
239
+ def to_dict(self):
240
+ """Returns the model properties as a dict"""
241
+ result = {}
242
+
243
+ for attr, _ in six.iteritems(self.openapi_types):
244
+ value = getattr(self, attr)
245
+ if isinstance(value, list):
246
+ result[attr] = list(map(
247
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
248
+ value
249
+ ))
250
+ elif hasattr(value, "to_dict"):
251
+ result[attr] = value.to_dict()
252
+ elif isinstance(value, dict):
253
+ result[attr] = dict(map(
254
+ lambda item: (item[0], item[1].to_dict())
255
+ if hasattr(item[1], "to_dict") else item,
256
+ value.items()
257
+ ))
258
+ else:
259
+ if attr in self.sensitive_list:
260
+ result[attr] = "****"
261
+ else:
262
+ result[attr] = value
263
+
264
+ return result
265
+
266
+ def to_str(self):
267
+ """Returns the string representation of the model"""
268
+ import simplejson as json
269
+ if six.PY2:
270
+ import sys
271
+ reload(sys)
272
+ sys.setdefaultencoding("utf-8")
273
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
274
+
275
+ def __repr__(self):
276
+ """For `print`"""
277
+ return self.to_str()
278
+
279
+ def __eq__(self, other):
280
+ """Returns true if both objects are equal"""
281
+ if not isinstance(other, ModifyComparePolicyReq):
282
+ return False
283
+
284
+ return self.__dict__ == other.__dict__
285
+
286
+ def __ne__(self, other):
287
+ """Returns true if both objects are not equal"""
288
+ return not self == other
@@ -0,0 +1,202 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class ObjectsHealthCompareOverviewInfo:
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
+ 'type': 'str',
21
+ 'source_count': 'int',
22
+ 'target_count': 'int',
23
+ 'status': 'int'
24
+ }
25
+
26
+ attribute_map = {
27
+ 'type': 'type',
28
+ 'source_count': 'source_count',
29
+ 'target_count': 'target_count',
30
+ 'status': 'status'
31
+ }
32
+
33
+ def __init__(self, type=None, source_count=None, target_count=None, status=None):
34
+ """ObjectsHealthCompareOverviewInfo
35
+
36
+ The model defined in huaweicloud sdk
37
+
38
+ :param type: 对象类型。取值: - DB:数据库。 - TABLE:表。 - VIEW:视图。 - EVENT:事件。 - ROUTINE:存储过程和函数。 - INDEX:索引。 - TRIGGER:触发器。 - SYNONYM:同义词。 - FUNCTION:函数。 - PROCEDURE:存储过程。 - TYPE:自定义类型。 - RULE:规则。 - DEFAULT_TYPE:缺省值。 - PLAN_GUIDE:执行计划。 - CONSTRAINT:约束。 - FILE_GROUP:文件组。 - PARTITION_FUNCTION:分区函数。 - PARTITION_SCHEME:分区方案。 - TABLE_COLLATION:表的排序规则。 - EXTENSIONS:插件。
39
+ :type type: str
40
+ :param source_count: 源数量。
41
+ :type source_count: int
42
+ :param target_count: 目标数量。
43
+ :type target_count: int
44
+ :param status: 对比结果: - 0:不一致。 - 2:一致。 - 3:未完成。
45
+ :type status: int
46
+ """
47
+
48
+
49
+
50
+ self._type = None
51
+ self._source_count = None
52
+ self._target_count = None
53
+ self._status = None
54
+ self.discriminator = None
55
+
56
+ if type is not None:
57
+ self.type = type
58
+ if source_count is not None:
59
+ self.source_count = source_count
60
+ if target_count is not None:
61
+ self.target_count = target_count
62
+ if status is not None:
63
+ self.status = status
64
+
65
+ @property
66
+ def type(self):
67
+ """Gets the type of this ObjectsHealthCompareOverviewInfo.
68
+
69
+ 对象类型。取值: - DB:数据库。 - TABLE:表。 - VIEW:视图。 - EVENT:事件。 - ROUTINE:存储过程和函数。 - INDEX:索引。 - TRIGGER:触发器。 - SYNONYM:同义词。 - FUNCTION:函数。 - PROCEDURE:存储过程。 - TYPE:自定义类型。 - RULE:规则。 - DEFAULT_TYPE:缺省值。 - PLAN_GUIDE:执行计划。 - CONSTRAINT:约束。 - FILE_GROUP:文件组。 - PARTITION_FUNCTION:分区函数。 - PARTITION_SCHEME:分区方案。 - TABLE_COLLATION:表的排序规则。 - EXTENSIONS:插件。
70
+
71
+ :return: The type of this ObjectsHealthCompareOverviewInfo.
72
+ :rtype: str
73
+ """
74
+ return self._type
75
+
76
+ @type.setter
77
+ def type(self, type):
78
+ """Sets the type of this ObjectsHealthCompareOverviewInfo.
79
+
80
+ 对象类型。取值: - DB:数据库。 - TABLE:表。 - VIEW:视图。 - EVENT:事件。 - ROUTINE:存储过程和函数。 - INDEX:索引。 - TRIGGER:触发器。 - SYNONYM:同义词。 - FUNCTION:函数。 - PROCEDURE:存储过程。 - TYPE:自定义类型。 - RULE:规则。 - DEFAULT_TYPE:缺省值。 - PLAN_GUIDE:执行计划。 - CONSTRAINT:约束。 - FILE_GROUP:文件组。 - PARTITION_FUNCTION:分区函数。 - PARTITION_SCHEME:分区方案。 - TABLE_COLLATION:表的排序规则。 - EXTENSIONS:插件。
81
+
82
+ :param type: The type of this ObjectsHealthCompareOverviewInfo.
83
+ :type type: str
84
+ """
85
+ self._type = type
86
+
87
+ @property
88
+ def source_count(self):
89
+ """Gets the source_count of this ObjectsHealthCompareOverviewInfo.
90
+
91
+ 源数量。
92
+
93
+ :return: The source_count of this ObjectsHealthCompareOverviewInfo.
94
+ :rtype: int
95
+ """
96
+ return self._source_count
97
+
98
+ @source_count.setter
99
+ def source_count(self, source_count):
100
+ """Sets the source_count of this ObjectsHealthCompareOverviewInfo.
101
+
102
+ 源数量。
103
+
104
+ :param source_count: The source_count of this ObjectsHealthCompareOverviewInfo.
105
+ :type source_count: int
106
+ """
107
+ self._source_count = source_count
108
+
109
+ @property
110
+ def target_count(self):
111
+ """Gets the target_count of this ObjectsHealthCompareOverviewInfo.
112
+
113
+ 目标数量。
114
+
115
+ :return: The target_count of this ObjectsHealthCompareOverviewInfo.
116
+ :rtype: int
117
+ """
118
+ return self._target_count
119
+
120
+ @target_count.setter
121
+ def target_count(self, target_count):
122
+ """Sets the target_count of this ObjectsHealthCompareOverviewInfo.
123
+
124
+ 目标数量。
125
+
126
+ :param target_count: The target_count of this ObjectsHealthCompareOverviewInfo.
127
+ :type target_count: int
128
+ """
129
+ self._target_count = target_count
130
+
131
+ @property
132
+ def status(self):
133
+ """Gets the status of this ObjectsHealthCompareOverviewInfo.
134
+
135
+ 对比结果: - 0:不一致。 - 2:一致。 - 3:未完成。
136
+
137
+ :return: The status of this ObjectsHealthCompareOverviewInfo.
138
+ :rtype: int
139
+ """
140
+ return self._status
141
+
142
+ @status.setter
143
+ def status(self, status):
144
+ """Sets the status of this ObjectsHealthCompareOverviewInfo.
145
+
146
+ 对比结果: - 0:不一致。 - 2:一致。 - 3:未完成。
147
+
148
+ :param status: The status of this ObjectsHealthCompareOverviewInfo.
149
+ :type status: int
150
+ """
151
+ self._status = status
152
+
153
+ def to_dict(self):
154
+ """Returns the model properties as a dict"""
155
+ result = {}
156
+
157
+ for attr, _ in six.iteritems(self.openapi_types):
158
+ value = getattr(self, attr)
159
+ if isinstance(value, list):
160
+ result[attr] = list(map(
161
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
162
+ value
163
+ ))
164
+ elif hasattr(value, "to_dict"):
165
+ result[attr] = value.to_dict()
166
+ elif isinstance(value, dict):
167
+ result[attr] = dict(map(
168
+ lambda item: (item[0], item[1].to_dict())
169
+ if hasattr(item[1], "to_dict") else item,
170
+ value.items()
171
+ ))
172
+ else:
173
+ if attr in self.sensitive_list:
174
+ result[attr] = "****"
175
+ else:
176
+ result[attr] = value
177
+
178
+ return result
179
+
180
+ def to_str(self):
181
+ """Returns the string representation of the model"""
182
+ import simplejson as json
183
+ if six.PY2:
184
+ import sys
185
+ reload(sys)
186
+ sys.setdefaultencoding("utf-8")
187
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
188
+
189
+ def __repr__(self):
190
+ """For `print`"""
191
+ return self.to_str()
192
+
193
+ def __eq__(self, other):
194
+ """Returns true if both objects are equal"""
195
+ if not isinstance(other, ObjectsHealthCompareOverviewInfo):
196
+ return False
197
+
198
+ return self.__dict__ == other.__dict__
199
+
200
+ def __ne__(self, other):
201
+ """Returns true if both objects are not equal"""
202
+ return not self == other