huaweicloudsdkgaussdbforopengauss 3.1.90__py2.py3-none-any.whl → 3.1.92__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 (42) hide show
  1. huaweicloudsdkgaussdbforopengauss/v3/__init__.py +32 -0
  2. huaweicloudsdkgaussdbforopengauss/v3/gaussdbforopengauss_async_client.py +789 -20
  3. huaweicloudsdkgaussdbforopengauss/v3/gaussdbforopengauss_client.py +789 -20
  4. huaweicloudsdkgaussdbforopengauss/v3/model/__init__.py +32 -0
  5. huaweicloudsdkgaussdbforopengauss/v3/model/cn_info_before_reduce.py +231 -0
  6. huaweicloudsdkgaussdbforopengauss/v3/model/create_slow_log_download_request.py +143 -0
  7. huaweicloudsdkgaussdbforopengauss/v3/model/create_slow_log_download_response.py +116 -0
  8. huaweicloudsdkgaussdbforopengauss/v3/model/delete_instance_tag_request.py +171 -0
  9. huaweicloudsdkgaussdbforopengauss/v3/model/delete_instance_tag_response.py +174 -0
  10. huaweicloudsdkgaussdbforopengauss/v3/model/instance_log_file.py +260 -0
  11. huaweicloudsdkgaussdbforopengauss/v3/model/list_cn_infos_before_reduce_request.py +143 -0
  12. huaweicloudsdkgaussdbforopengauss/v3/model/list_cn_infos_before_reduce_response.py +174 -0
  13. huaweicloudsdkgaussdbforopengauss/v3/model/list_instance_error_logs_request.py +257 -0
  14. huaweicloudsdkgaussdbforopengauss/v3/model/list_instance_error_logs_response.py +145 -0
  15. huaweicloudsdkgaussdbforopengauss/v3/model/list_top_io_traffics_request.py +257 -0
  16. huaweicloudsdkgaussdbforopengauss/v3/model/list_top_io_traffics_response.py +116 -0
  17. huaweicloudsdkgaussdbforopengauss/v3/model/open_gauss_upgrade_request.py +230 -0
  18. huaweicloudsdkgaussdbforopengauss/v3/model/roll_upgrade_progress.py +231 -0
  19. huaweicloudsdkgaussdbforopengauss/v3/model/search_auto_enlarge_policy_request.py +143 -0
  20. huaweicloudsdkgaussdbforopengauss/v3/model/search_auto_enlarge_policy_response.py +261 -0
  21. huaweicloudsdkgaussdbforopengauss/v3/model/show_backup_policy.py +4 -4
  22. huaweicloudsdkgaussdbforopengauss/v3/model/show_error_log_switch_status_request.py +143 -0
  23. huaweicloudsdkgaussdbforopengauss/v3/model/show_error_log_switch_status_response.py +116 -0
  24. huaweicloudsdkgaussdbforopengauss/v3/model/show_slow_log_download_request.py +143 -0
  25. huaweicloudsdkgaussdbforopengauss/v3/model/show_slow_log_download_response.py +116 -0
  26. huaweicloudsdkgaussdbforopengauss/v3/model/show_upgrade_candidate_versions_request.py +143 -0
  27. huaweicloudsdkgaussdbforopengauss/v3/model/show_upgrade_candidate_versions_response.py +315 -0
  28. huaweicloudsdkgaussdbforopengauss/v3/model/slow_log_download_info.py +463 -0
  29. huaweicloudsdkgaussdbforopengauss/v3/model/start_instance_request.py +168 -0
  30. huaweicloudsdkgaussdbforopengauss/v3/model/start_instance_request_body.py +114 -0
  31. huaweicloudsdkgaussdbforopengauss/v3/model/start_instance_response.py +116 -0
  32. huaweicloudsdkgaussdbforopengauss/v3/model/top_io_info.py +405 -0
  33. huaweicloudsdkgaussdbforopengauss/v3/model/upgrade_action_info.py +144 -0
  34. huaweicloudsdkgaussdbforopengauss/v3/model/upgrade_error_response_body.py +142 -0
  35. huaweicloudsdkgaussdbforopengauss/v3/model/upgrade_instance_version_request.py +168 -0
  36. huaweicloudsdkgaussdbforopengauss/v3/model/upgrade_instance_version_response.py +145 -0
  37. huaweicloudsdkgaussdbforopengauss/v3/model/upgrade_type_info.py +173 -0
  38. {huaweicloudsdkgaussdbforopengauss-3.1.90.dist-info → huaweicloudsdkgaussdbforopengauss-3.1.92.dist-info}/METADATA +2 -2
  39. {huaweicloudsdkgaussdbforopengauss-3.1.90.dist-info → huaweicloudsdkgaussdbforopengauss-3.1.92.dist-info}/RECORD +42 -10
  40. {huaweicloudsdkgaussdbforopengauss-3.1.90.dist-info → huaweicloudsdkgaussdbforopengauss-3.1.92.dist-info}/LICENSE +0 -0
  41. {huaweicloudsdkgaussdbforopengauss-3.1.90.dist-info → huaweicloudsdkgaussdbforopengauss-3.1.92.dist-info}/WHEEL +0 -0
  42. {huaweicloudsdkgaussdbforopengauss-3.1.90.dist-info → huaweicloudsdkgaussdbforopengauss-3.1.92.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,114 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class StartInstanceRequestBody:
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
+ 'node_ids': 'list[str]'
21
+ }
22
+
23
+ attribute_map = {
24
+ 'node_ids': 'node_ids'
25
+ }
26
+
27
+ def __init__(self, node_ids=None):
28
+ """StartInstanceRequestBody
29
+
30
+ The model defined in huaweicloud sdk
31
+
32
+ :param node_ids: 需要启动的节点的ID,取值不能为null,如果为空列表则启动整个实例
33
+ :type node_ids: list[str]
34
+ """
35
+
36
+
37
+
38
+ self._node_ids = None
39
+ self.discriminator = None
40
+
41
+ self.node_ids = node_ids
42
+
43
+ @property
44
+ def node_ids(self):
45
+ """Gets the node_ids of this StartInstanceRequestBody.
46
+
47
+ 需要启动的节点的ID,取值不能为null,如果为空列表则启动整个实例
48
+
49
+ :return: The node_ids of this StartInstanceRequestBody.
50
+ :rtype: list[str]
51
+ """
52
+ return self._node_ids
53
+
54
+ @node_ids.setter
55
+ def node_ids(self, node_ids):
56
+ """Sets the node_ids of this StartInstanceRequestBody.
57
+
58
+ 需要启动的节点的ID,取值不能为null,如果为空列表则启动整个实例
59
+
60
+ :param node_ids: The node_ids of this StartInstanceRequestBody.
61
+ :type node_ids: list[str]
62
+ """
63
+ self._node_ids = node_ids
64
+
65
+ def to_dict(self):
66
+ """Returns the model properties as a dict"""
67
+ result = {}
68
+
69
+ for attr, _ in six.iteritems(self.openapi_types):
70
+ value = getattr(self, attr)
71
+ if isinstance(value, list):
72
+ result[attr] = list(map(
73
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
74
+ value
75
+ ))
76
+ elif hasattr(value, "to_dict"):
77
+ result[attr] = value.to_dict()
78
+ elif isinstance(value, dict):
79
+ result[attr] = dict(map(
80
+ lambda item: (item[0], item[1].to_dict())
81
+ if hasattr(item[1], "to_dict") else item,
82
+ value.items()
83
+ ))
84
+ else:
85
+ if attr in self.sensitive_list:
86
+ result[attr] = "****"
87
+ else:
88
+ result[attr] = value
89
+
90
+ return result
91
+
92
+ def to_str(self):
93
+ """Returns the string representation of the model"""
94
+ import simplejson as json
95
+ if six.PY2:
96
+ import sys
97
+ reload(sys)
98
+ sys.setdefaultencoding("utf-8")
99
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
100
+
101
+ def __repr__(self):
102
+ """For `print`"""
103
+ return self.to_str()
104
+
105
+ def __eq__(self, other):
106
+ """Returns true if both objects are equal"""
107
+ if not isinstance(other, StartInstanceRequestBody):
108
+ return False
109
+
110
+ return self.__dict__ == other.__dict__
111
+
112
+ def __ne__(self, other):
113
+ """Returns true if both objects are not equal"""
114
+ return not self == other
@@ -0,0 +1,116 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.sdk_response import SdkResponse
6
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
7
+
8
+
9
+ class StartInstanceResponse(SdkResponse):
10
+
11
+ """
12
+ Attributes:
13
+ openapi_types (dict): The key is attribute name
14
+ and the value is attribute type.
15
+ attribute_map (dict): The key is attribute name
16
+ and the value is json key in definition.
17
+ """
18
+ sensitive_list = []
19
+
20
+ openapi_types = {
21
+ 'job_id': 'str'
22
+ }
23
+
24
+ attribute_map = {
25
+ 'job_id': 'job_id'
26
+ }
27
+
28
+ def __init__(self, job_id=None):
29
+ """StartInstanceResponse
30
+
31
+ The model defined in huaweicloud sdk
32
+
33
+ :param job_id: 启动数据库的异步任务ID。
34
+ :type job_id: str
35
+ """
36
+
37
+ super(StartInstanceResponse, self).__init__()
38
+
39
+ self._job_id = None
40
+ self.discriminator = None
41
+
42
+ if job_id is not None:
43
+ self.job_id = job_id
44
+
45
+ @property
46
+ def job_id(self):
47
+ """Gets the job_id of this StartInstanceResponse.
48
+
49
+ 启动数据库的异步任务ID。
50
+
51
+ :return: The job_id of this StartInstanceResponse.
52
+ :rtype: str
53
+ """
54
+ return self._job_id
55
+
56
+ @job_id.setter
57
+ def job_id(self, job_id):
58
+ """Sets the job_id of this StartInstanceResponse.
59
+
60
+ 启动数据库的异步任务ID。
61
+
62
+ :param job_id: The job_id of this StartInstanceResponse.
63
+ :type job_id: str
64
+ """
65
+ self._job_id = job_id
66
+
67
+ def to_dict(self):
68
+ """Returns the model properties as a dict"""
69
+ result = {}
70
+
71
+ for attr, _ in six.iteritems(self.openapi_types):
72
+ value = getattr(self, attr)
73
+ if isinstance(value, list):
74
+ result[attr] = list(map(
75
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
76
+ value
77
+ ))
78
+ elif hasattr(value, "to_dict"):
79
+ result[attr] = value.to_dict()
80
+ elif isinstance(value, dict):
81
+ result[attr] = dict(map(
82
+ lambda item: (item[0], item[1].to_dict())
83
+ if hasattr(item[1], "to_dict") else item,
84
+ value.items()
85
+ ))
86
+ else:
87
+ if attr in self.sensitive_list:
88
+ result[attr] = "****"
89
+ else:
90
+ result[attr] = value
91
+
92
+ return result
93
+
94
+ def to_str(self):
95
+ """Returns the string representation of the model"""
96
+ import simplejson as json
97
+ if six.PY2:
98
+ import sys
99
+ reload(sys)
100
+ sys.setdefaultencoding("utf-8")
101
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
102
+
103
+ def __repr__(self):
104
+ """For `print`"""
105
+ return self.to_str()
106
+
107
+ def __eq__(self, other):
108
+ """Returns true if both objects are equal"""
109
+ if not isinstance(other, StartInstanceResponse):
110
+ return False
111
+
112
+ return self.__dict__ == other.__dict__
113
+
114
+ def __ne__(self, other):
115
+ """Returns true if both objects are not equal"""
116
+ return not self == other
@@ -0,0 +1,405 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class TopIoInfo:
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
+ 'thread_id': 'str',
21
+ 'thread_type': 'str',
22
+ 'disk_read_rate': 'int',
23
+ 'disk_write_rate': 'int',
24
+ 'session_id': 'str',
25
+ 'unique_sql_id': 'str',
26
+ 'database_name': 'str',
27
+ 'client_ip': 'str',
28
+ 'user_name': 'str',
29
+ 'state': 'str',
30
+ 'sql_start': 'int'
31
+ }
32
+
33
+ attribute_map = {
34
+ 'thread_id': 'thread_id',
35
+ 'thread_type': 'thread_type',
36
+ 'disk_read_rate': 'disk_read_rate',
37
+ 'disk_write_rate': 'disk_write_rate',
38
+ 'session_id': 'session_id',
39
+ 'unique_sql_id': 'unique_sql_id',
40
+ 'database_name': 'database_name',
41
+ 'client_ip': 'client_ip',
42
+ 'user_name': 'user_name',
43
+ 'state': 'state',
44
+ 'sql_start': 'sql_start'
45
+ }
46
+
47
+ def __init__(self, thread_id=None, thread_type=None, disk_read_rate=None, disk_write_rate=None, session_id=None, unique_sql_id=None, database_name=None, client_ip=None, user_name=None, state=None, sql_start=None):
48
+ """TopIoInfo
49
+
50
+ The model defined in huaweicloud sdk
51
+
52
+ :param thread_id: 线程ID
53
+ :type thread_id: str
54
+ :param thread_type: 线程分类标识,取值:业务(worker)和后台(background)。需将GUC参数\"enable_thread_pool\"设置为on
55
+ :type thread_type: str
56
+ :param disk_read_rate: 从磁盘读取数据速率, 单位:KB/s
57
+ :type disk_read_rate: int
58
+ :param disk_write_rate: 写入磁盘数据速率, 单位:KB/s
59
+ :type disk_write_rate: int
60
+ :param session_id: 会话ID
61
+ :type session_id: str
62
+ :param unique_sql_id: SQL ID
63
+ :type unique_sql_id: str
64
+ :param database_name: 数据库
65
+ :type database_name: str
66
+ :param client_ip: 客户端IP
67
+ :type client_ip: str
68
+ :param user_name: 用户名
69
+ :type user_name: str
70
+ :param state: 状态
71
+ :type state: str
72
+ :param sql_start: 语句开始时间
73
+ :type sql_start: int
74
+ """
75
+
76
+
77
+
78
+ self._thread_id = None
79
+ self._thread_type = None
80
+ self._disk_read_rate = None
81
+ self._disk_write_rate = None
82
+ self._session_id = None
83
+ self._unique_sql_id = None
84
+ self._database_name = None
85
+ self._client_ip = None
86
+ self._user_name = None
87
+ self._state = None
88
+ self._sql_start = None
89
+ self.discriminator = None
90
+
91
+ if thread_id is not None:
92
+ self.thread_id = thread_id
93
+ if thread_type is not None:
94
+ self.thread_type = thread_type
95
+ if disk_read_rate is not None:
96
+ self.disk_read_rate = disk_read_rate
97
+ if disk_write_rate is not None:
98
+ self.disk_write_rate = disk_write_rate
99
+ if session_id is not None:
100
+ self.session_id = session_id
101
+ if unique_sql_id is not None:
102
+ self.unique_sql_id = unique_sql_id
103
+ if database_name is not None:
104
+ self.database_name = database_name
105
+ if client_ip is not None:
106
+ self.client_ip = client_ip
107
+ if user_name is not None:
108
+ self.user_name = user_name
109
+ if state is not None:
110
+ self.state = state
111
+ if sql_start is not None:
112
+ self.sql_start = sql_start
113
+
114
+ @property
115
+ def thread_id(self):
116
+ """Gets the thread_id of this TopIoInfo.
117
+
118
+ 线程ID
119
+
120
+ :return: The thread_id of this TopIoInfo.
121
+ :rtype: str
122
+ """
123
+ return self._thread_id
124
+
125
+ @thread_id.setter
126
+ def thread_id(self, thread_id):
127
+ """Sets the thread_id of this TopIoInfo.
128
+
129
+ 线程ID
130
+
131
+ :param thread_id: The thread_id of this TopIoInfo.
132
+ :type thread_id: str
133
+ """
134
+ self._thread_id = thread_id
135
+
136
+ @property
137
+ def thread_type(self):
138
+ """Gets the thread_type of this TopIoInfo.
139
+
140
+ 线程分类标识,取值:业务(worker)和后台(background)。需将GUC参数\"enable_thread_pool\"设置为on
141
+
142
+ :return: The thread_type of this TopIoInfo.
143
+ :rtype: str
144
+ """
145
+ return self._thread_type
146
+
147
+ @thread_type.setter
148
+ def thread_type(self, thread_type):
149
+ """Sets the thread_type of this TopIoInfo.
150
+
151
+ 线程分类标识,取值:业务(worker)和后台(background)。需将GUC参数\"enable_thread_pool\"设置为on
152
+
153
+ :param thread_type: The thread_type of this TopIoInfo.
154
+ :type thread_type: str
155
+ """
156
+ self._thread_type = thread_type
157
+
158
+ @property
159
+ def disk_read_rate(self):
160
+ """Gets the disk_read_rate of this TopIoInfo.
161
+
162
+ 从磁盘读取数据速率, 单位:KB/s
163
+
164
+ :return: The disk_read_rate of this TopIoInfo.
165
+ :rtype: int
166
+ """
167
+ return self._disk_read_rate
168
+
169
+ @disk_read_rate.setter
170
+ def disk_read_rate(self, disk_read_rate):
171
+ """Sets the disk_read_rate of this TopIoInfo.
172
+
173
+ 从磁盘读取数据速率, 单位:KB/s
174
+
175
+ :param disk_read_rate: The disk_read_rate of this TopIoInfo.
176
+ :type disk_read_rate: int
177
+ """
178
+ self._disk_read_rate = disk_read_rate
179
+
180
+ @property
181
+ def disk_write_rate(self):
182
+ """Gets the disk_write_rate of this TopIoInfo.
183
+
184
+ 写入磁盘数据速率, 单位:KB/s
185
+
186
+ :return: The disk_write_rate of this TopIoInfo.
187
+ :rtype: int
188
+ """
189
+ return self._disk_write_rate
190
+
191
+ @disk_write_rate.setter
192
+ def disk_write_rate(self, disk_write_rate):
193
+ """Sets the disk_write_rate of this TopIoInfo.
194
+
195
+ 写入磁盘数据速率, 单位:KB/s
196
+
197
+ :param disk_write_rate: The disk_write_rate of this TopIoInfo.
198
+ :type disk_write_rate: int
199
+ """
200
+ self._disk_write_rate = disk_write_rate
201
+
202
+ @property
203
+ def session_id(self):
204
+ """Gets the session_id of this TopIoInfo.
205
+
206
+ 会话ID
207
+
208
+ :return: The session_id of this TopIoInfo.
209
+ :rtype: str
210
+ """
211
+ return self._session_id
212
+
213
+ @session_id.setter
214
+ def session_id(self, session_id):
215
+ """Sets the session_id of this TopIoInfo.
216
+
217
+ 会话ID
218
+
219
+ :param session_id: The session_id of this TopIoInfo.
220
+ :type session_id: str
221
+ """
222
+ self._session_id = session_id
223
+
224
+ @property
225
+ def unique_sql_id(self):
226
+ """Gets the unique_sql_id of this TopIoInfo.
227
+
228
+ SQL ID
229
+
230
+ :return: The unique_sql_id of this TopIoInfo.
231
+ :rtype: str
232
+ """
233
+ return self._unique_sql_id
234
+
235
+ @unique_sql_id.setter
236
+ def unique_sql_id(self, unique_sql_id):
237
+ """Sets the unique_sql_id of this TopIoInfo.
238
+
239
+ SQL ID
240
+
241
+ :param unique_sql_id: The unique_sql_id of this TopIoInfo.
242
+ :type unique_sql_id: str
243
+ """
244
+ self._unique_sql_id = unique_sql_id
245
+
246
+ @property
247
+ def database_name(self):
248
+ """Gets the database_name of this TopIoInfo.
249
+
250
+ 数据库
251
+
252
+ :return: The database_name of this TopIoInfo.
253
+ :rtype: str
254
+ """
255
+ return self._database_name
256
+
257
+ @database_name.setter
258
+ def database_name(self, database_name):
259
+ """Sets the database_name of this TopIoInfo.
260
+
261
+ 数据库
262
+
263
+ :param database_name: The database_name of this TopIoInfo.
264
+ :type database_name: str
265
+ """
266
+ self._database_name = database_name
267
+
268
+ @property
269
+ def client_ip(self):
270
+ """Gets the client_ip of this TopIoInfo.
271
+
272
+ 客户端IP
273
+
274
+ :return: The client_ip of this TopIoInfo.
275
+ :rtype: str
276
+ """
277
+ return self._client_ip
278
+
279
+ @client_ip.setter
280
+ def client_ip(self, client_ip):
281
+ """Sets the client_ip of this TopIoInfo.
282
+
283
+ 客户端IP
284
+
285
+ :param client_ip: The client_ip of this TopIoInfo.
286
+ :type client_ip: str
287
+ """
288
+ self._client_ip = client_ip
289
+
290
+ @property
291
+ def user_name(self):
292
+ """Gets the user_name of this TopIoInfo.
293
+
294
+ 用户名
295
+
296
+ :return: The user_name of this TopIoInfo.
297
+ :rtype: str
298
+ """
299
+ return self._user_name
300
+
301
+ @user_name.setter
302
+ def user_name(self, user_name):
303
+ """Sets the user_name of this TopIoInfo.
304
+
305
+ 用户名
306
+
307
+ :param user_name: The user_name of this TopIoInfo.
308
+ :type user_name: str
309
+ """
310
+ self._user_name = user_name
311
+
312
+ @property
313
+ def state(self):
314
+ """Gets the state of this TopIoInfo.
315
+
316
+ 状态
317
+
318
+ :return: The state of this TopIoInfo.
319
+ :rtype: str
320
+ """
321
+ return self._state
322
+
323
+ @state.setter
324
+ def state(self, state):
325
+ """Sets the state of this TopIoInfo.
326
+
327
+ 状态
328
+
329
+ :param state: The state of this TopIoInfo.
330
+ :type state: str
331
+ """
332
+ self._state = state
333
+
334
+ @property
335
+ def sql_start(self):
336
+ """Gets the sql_start of this TopIoInfo.
337
+
338
+ 语句开始时间
339
+
340
+ :return: The sql_start of this TopIoInfo.
341
+ :rtype: int
342
+ """
343
+ return self._sql_start
344
+
345
+ @sql_start.setter
346
+ def sql_start(self, sql_start):
347
+ """Sets the sql_start of this TopIoInfo.
348
+
349
+ 语句开始时间
350
+
351
+ :param sql_start: The sql_start of this TopIoInfo.
352
+ :type sql_start: int
353
+ """
354
+ self._sql_start = sql_start
355
+
356
+ def to_dict(self):
357
+ """Returns the model properties as a dict"""
358
+ result = {}
359
+
360
+ for attr, _ in six.iteritems(self.openapi_types):
361
+ value = getattr(self, attr)
362
+ if isinstance(value, list):
363
+ result[attr] = list(map(
364
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
365
+ value
366
+ ))
367
+ elif hasattr(value, "to_dict"):
368
+ result[attr] = value.to_dict()
369
+ elif isinstance(value, dict):
370
+ result[attr] = dict(map(
371
+ lambda item: (item[0], item[1].to_dict())
372
+ if hasattr(item[1], "to_dict") else item,
373
+ value.items()
374
+ ))
375
+ else:
376
+ if attr in self.sensitive_list:
377
+ result[attr] = "****"
378
+ else:
379
+ result[attr] = value
380
+
381
+ return result
382
+
383
+ def to_str(self):
384
+ """Returns the string representation of the model"""
385
+ import simplejson as json
386
+ if six.PY2:
387
+ import sys
388
+ reload(sys)
389
+ sys.setdefaultencoding("utf-8")
390
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
391
+
392
+ def __repr__(self):
393
+ """For `print`"""
394
+ return self.to_str()
395
+
396
+ def __eq__(self, other):
397
+ """Returns true if both objects are equal"""
398
+ if not isinstance(other, TopIoInfo):
399
+ return False
400
+
401
+ return self.__dict__ == other.__dict__
402
+
403
+ def __ne__(self, other):
404
+ """Returns true if both objects are not equal"""
405
+ return not self == other