huaweicloudsdkgaussdb 3.1.93__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 (37) hide show
  1. huaweicloudsdkgaussdb/v3/__init__.py +28 -0
  2. huaweicloudsdkgaussdb/v3/gaussdb_async_client.py +556 -0
  3. huaweicloudsdkgaussdb/v3/gaussdb_client.py +556 -0
  4. huaweicloudsdkgaussdb/v3/model/__init__.py +28 -0
  5. huaweicloudsdkgaussdb/v3/model/check_data_base_config_request.py +167 -0
  6. huaweicloudsdkgaussdb/v3/model/check_data_base_config_response.py +232 -0
  7. huaweicloudsdkgaussdb/v3/model/check_table_config_request.py +167 -0
  8. huaweicloudsdkgaussdb/v3/model/check_table_config_response.py +203 -0
  9. huaweicloudsdkgaussdb/v3/model/create_star_rocks_data_replication.py +227 -0
  10. huaweicloudsdkgaussdb/v3/model/create_star_rocks_data_replication_request.py +167 -0
  11. huaweicloudsdkgaussdb/v3/model/create_star_rocks_data_replication_response.py +116 -0
  12. huaweicloudsdkgaussdb/v3/model/data_base_info.py +144 -0
  13. huaweicloudsdkgaussdb/v3/model/db_config.py +144 -0
  14. huaweicloudsdkgaussdb/v3/model/db_config_check_request_v3.py +285 -0
  15. huaweicloudsdkgaussdb/v3/model/db_config_check_result.py +173 -0
  16. huaweicloudsdkgaussdb/v3/model/db_parameter.py +231 -0
  17. huaweicloudsdkgaussdb/v3/model/delete_star_rocks_data_replication.py +115 -0
  18. huaweicloudsdkgaussdb/v3/model/delete_star_rocks_data_replication_request.py +167 -0
  19. huaweicloudsdkgaussdb/v3/model/delete_star_rocks_data_replication_response.py +116 -0
  20. huaweicloudsdkgaussdb/v3/model/list_star_rocks_data_bases_request.py +229 -0
  21. huaweicloudsdkgaussdb/v3/model/list_star_rocks_data_bases_response.py +174 -0
  22. huaweicloudsdkgaussdb/v3/model/list_star_rocks_data_replication_config_request.py +170 -0
  23. huaweicloudsdkgaussdb/v3/model/list_star_rocks_data_replication_config_response.py +336 -0
  24. huaweicloudsdkgaussdb/v3/model/list_star_rocks_data_replications_request.py +200 -0
  25. huaweicloudsdkgaussdb/v3/model/list_star_rocks_data_replications_response.py +174 -0
  26. huaweicloudsdkgaussdb/v3/model/list_star_rocks_db_parameters_request.py +142 -0
  27. huaweicloudsdkgaussdb/v3/model/list_star_rocks_db_parameters_response.py +116 -0
  28. huaweicloudsdkgaussdb/v3/model/star_rocks_replication_info.py +318 -0
  29. huaweicloudsdkgaussdb/v3/model/table_config_check_request_v3.py +285 -0
  30. huaweicloudsdkgaussdb/v3/model/table_config_check_result.py +173 -0
  31. huaweicloudsdkgaussdb/v3/model/table_repl_config.py +173 -0
  32. huaweicloudsdkgaussdb/v3/model/tables_config.py +144 -0
  33. {huaweicloudsdkgaussdb-3.1.93.dist-info → huaweicloudsdkgaussdb-3.1.95.dist-info}/METADATA +2 -2
  34. {huaweicloudsdkgaussdb-3.1.93.dist-info → huaweicloudsdkgaussdb-3.1.95.dist-info}/RECORD +37 -9
  35. {huaweicloudsdkgaussdb-3.1.93.dist-info → huaweicloudsdkgaussdb-3.1.95.dist-info}/LICENSE +0 -0
  36. {huaweicloudsdkgaussdb-3.1.93.dist-info → huaweicloudsdkgaussdb-3.1.95.dist-info}/WHEEL +0 -0
  37. {huaweicloudsdkgaussdb-3.1.93.dist-info → huaweicloudsdkgaussdb-3.1.95.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,318 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class StarRocksReplicationInfo:
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
+ 'source_database': 'str',
21
+ 'target_database': 'str',
22
+ 'task_name': 'str',
23
+ 'status': 'str',
24
+ 'stage': 'str',
25
+ 'percentage': 'str',
26
+ 'catchup_stage': 'str',
27
+ 'catchup_percentage': 'str'
28
+ }
29
+
30
+ attribute_map = {
31
+ 'source_database': 'source_database',
32
+ 'target_database': 'target_database',
33
+ 'task_name': 'task_name',
34
+ 'status': 'status',
35
+ 'stage': 'stage',
36
+ 'percentage': 'percentage',
37
+ 'catchup_stage': 'catchup_stage',
38
+ 'catchup_percentage': 'catchup_percentage'
39
+ }
40
+
41
+ def __init__(self, source_database=None, target_database=None, task_name=None, status=None, stage=None, percentage=None, catchup_stage=None, catchup_percentage=None):
42
+ """StarRocksReplicationInfo
43
+
44
+ The model defined in huaweicloud sdk
45
+
46
+ :param source_database: GaussDB(for MySQL)数据库。
47
+ :type source_database: str
48
+ :param target_database: 目标数据库。
49
+ :type target_database: str
50
+ :param task_name: 同步任务名。
51
+ :type task_name: str
52
+ :param status: 当前状态。Yes:正常;No:异常。
53
+ :type status: str
54
+ :param stage: 同步阶段。wait:等待同步;incremental:增量同步;full:全量同步;cancelled:删除;paused:暂停同步。
55
+ :type stage: str
56
+ :param percentage: 进度百分比。
57
+ :type percentage: str
58
+ :param catchup_stage: 追赶阶段。wait:等待同步;incremental:增量同步;full:全量同步;cancelled:删除;paused:暂停同步。
59
+ :type catchup_stage: str
60
+ :param catchup_percentage: 追赶进度百分比。
61
+ :type catchup_percentage: str
62
+ """
63
+
64
+
65
+
66
+ self._source_database = None
67
+ self._target_database = None
68
+ self._task_name = None
69
+ self._status = None
70
+ self._stage = None
71
+ self._percentage = None
72
+ self._catchup_stage = None
73
+ self._catchup_percentage = None
74
+ self.discriminator = None
75
+
76
+ if source_database is not None:
77
+ self.source_database = source_database
78
+ if target_database is not None:
79
+ self.target_database = target_database
80
+ if task_name is not None:
81
+ self.task_name = task_name
82
+ if status is not None:
83
+ self.status = status
84
+ if stage is not None:
85
+ self.stage = stage
86
+ if percentage is not None:
87
+ self.percentage = percentage
88
+ if catchup_stage is not None:
89
+ self.catchup_stage = catchup_stage
90
+ if catchup_percentage is not None:
91
+ self.catchup_percentage = catchup_percentage
92
+
93
+ @property
94
+ def source_database(self):
95
+ """Gets the source_database of this StarRocksReplicationInfo.
96
+
97
+ GaussDB(for MySQL)数据库。
98
+
99
+ :return: The source_database of this StarRocksReplicationInfo.
100
+ :rtype: str
101
+ """
102
+ return self._source_database
103
+
104
+ @source_database.setter
105
+ def source_database(self, source_database):
106
+ """Sets the source_database of this StarRocksReplicationInfo.
107
+
108
+ GaussDB(for MySQL)数据库。
109
+
110
+ :param source_database: The source_database of this StarRocksReplicationInfo.
111
+ :type source_database: str
112
+ """
113
+ self._source_database = source_database
114
+
115
+ @property
116
+ def target_database(self):
117
+ """Gets the target_database of this StarRocksReplicationInfo.
118
+
119
+ 目标数据库。
120
+
121
+ :return: The target_database of this StarRocksReplicationInfo.
122
+ :rtype: str
123
+ """
124
+ return self._target_database
125
+
126
+ @target_database.setter
127
+ def target_database(self, target_database):
128
+ """Sets the target_database of this StarRocksReplicationInfo.
129
+
130
+ 目标数据库。
131
+
132
+ :param target_database: The target_database of this StarRocksReplicationInfo.
133
+ :type target_database: str
134
+ """
135
+ self._target_database = target_database
136
+
137
+ @property
138
+ def task_name(self):
139
+ """Gets the task_name of this StarRocksReplicationInfo.
140
+
141
+ 同步任务名。
142
+
143
+ :return: The task_name of this StarRocksReplicationInfo.
144
+ :rtype: str
145
+ """
146
+ return self._task_name
147
+
148
+ @task_name.setter
149
+ def task_name(self, task_name):
150
+ """Sets the task_name of this StarRocksReplicationInfo.
151
+
152
+ 同步任务名。
153
+
154
+ :param task_name: The task_name of this StarRocksReplicationInfo.
155
+ :type task_name: str
156
+ """
157
+ self._task_name = task_name
158
+
159
+ @property
160
+ def status(self):
161
+ """Gets the status of this StarRocksReplicationInfo.
162
+
163
+ 当前状态。Yes:正常;No:异常。
164
+
165
+ :return: The status of this StarRocksReplicationInfo.
166
+ :rtype: str
167
+ """
168
+ return self._status
169
+
170
+ @status.setter
171
+ def status(self, status):
172
+ """Sets the status of this StarRocksReplicationInfo.
173
+
174
+ 当前状态。Yes:正常;No:异常。
175
+
176
+ :param status: The status of this StarRocksReplicationInfo.
177
+ :type status: str
178
+ """
179
+ self._status = status
180
+
181
+ @property
182
+ def stage(self):
183
+ """Gets the stage of this StarRocksReplicationInfo.
184
+
185
+ 同步阶段。wait:等待同步;incremental:增量同步;full:全量同步;cancelled:删除;paused:暂停同步。
186
+
187
+ :return: The stage of this StarRocksReplicationInfo.
188
+ :rtype: str
189
+ """
190
+ return self._stage
191
+
192
+ @stage.setter
193
+ def stage(self, stage):
194
+ """Sets the stage of this StarRocksReplicationInfo.
195
+
196
+ 同步阶段。wait:等待同步;incremental:增量同步;full:全量同步;cancelled:删除;paused:暂停同步。
197
+
198
+ :param stage: The stage of this StarRocksReplicationInfo.
199
+ :type stage: str
200
+ """
201
+ self._stage = stage
202
+
203
+ @property
204
+ def percentage(self):
205
+ """Gets the percentage of this StarRocksReplicationInfo.
206
+
207
+ 进度百分比。
208
+
209
+ :return: The percentage of this StarRocksReplicationInfo.
210
+ :rtype: str
211
+ """
212
+ return self._percentage
213
+
214
+ @percentage.setter
215
+ def percentage(self, percentage):
216
+ """Sets the percentage of this StarRocksReplicationInfo.
217
+
218
+ 进度百分比。
219
+
220
+ :param percentage: The percentage of this StarRocksReplicationInfo.
221
+ :type percentage: str
222
+ """
223
+ self._percentage = percentage
224
+
225
+ @property
226
+ def catchup_stage(self):
227
+ """Gets the catchup_stage of this StarRocksReplicationInfo.
228
+
229
+ 追赶阶段。wait:等待同步;incremental:增量同步;full:全量同步;cancelled:删除;paused:暂停同步。
230
+
231
+ :return: The catchup_stage of this StarRocksReplicationInfo.
232
+ :rtype: str
233
+ """
234
+ return self._catchup_stage
235
+
236
+ @catchup_stage.setter
237
+ def catchup_stage(self, catchup_stage):
238
+ """Sets the catchup_stage of this StarRocksReplicationInfo.
239
+
240
+ 追赶阶段。wait:等待同步;incremental:增量同步;full:全量同步;cancelled:删除;paused:暂停同步。
241
+
242
+ :param catchup_stage: The catchup_stage of this StarRocksReplicationInfo.
243
+ :type catchup_stage: str
244
+ """
245
+ self._catchup_stage = catchup_stage
246
+
247
+ @property
248
+ def catchup_percentage(self):
249
+ """Gets the catchup_percentage of this StarRocksReplicationInfo.
250
+
251
+ 追赶进度百分比。
252
+
253
+ :return: The catchup_percentage of this StarRocksReplicationInfo.
254
+ :rtype: str
255
+ """
256
+ return self._catchup_percentage
257
+
258
+ @catchup_percentage.setter
259
+ def catchup_percentage(self, catchup_percentage):
260
+ """Sets the catchup_percentage of this StarRocksReplicationInfo.
261
+
262
+ 追赶进度百分比。
263
+
264
+ :param catchup_percentage: The catchup_percentage of this StarRocksReplicationInfo.
265
+ :type catchup_percentage: str
266
+ """
267
+ self._catchup_percentage = catchup_percentage
268
+
269
+ def to_dict(self):
270
+ """Returns the model properties as a dict"""
271
+ result = {}
272
+
273
+ for attr, _ in six.iteritems(self.openapi_types):
274
+ value = getattr(self, attr)
275
+ if isinstance(value, list):
276
+ result[attr] = list(map(
277
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
278
+ value
279
+ ))
280
+ elif hasattr(value, "to_dict"):
281
+ result[attr] = value.to_dict()
282
+ elif isinstance(value, dict):
283
+ result[attr] = dict(map(
284
+ lambda item: (item[0], item[1].to_dict())
285
+ if hasattr(item[1], "to_dict") else item,
286
+ value.items()
287
+ ))
288
+ else:
289
+ if attr in self.sensitive_list:
290
+ result[attr] = "****"
291
+ else:
292
+ result[attr] = value
293
+
294
+ return result
295
+
296
+ def to_str(self):
297
+ """Returns the string representation of the model"""
298
+ import simplejson as json
299
+ if six.PY2:
300
+ import sys
301
+ reload(sys)
302
+ sys.setdefaultencoding("utf-8")
303
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
304
+
305
+ def __repr__(self):
306
+ """For `print`"""
307
+ return self.to_str()
308
+
309
+ def __eq__(self, other):
310
+ """Returns true if both objects are equal"""
311
+ if not isinstance(other, StarRocksReplicationInfo):
312
+ return False
313
+
314
+ return self.__dict__ == other.__dict__
315
+
316
+ def __ne__(self, other):
317
+ """Returns true if both objects are not equal"""
318
+ return not self == other
@@ -0,0 +1,285 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class TableConfigCheckRequestV3:
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
+ 'source_instance_id': 'str',
21
+ 'source_node_id': 'str',
22
+ 'source_database_name': 'str',
23
+ 'task_name': 'str',
24
+ 'db_configs': 'list[DbConfig]',
25
+ 'tables_configs': 'list[TablesConfig]',
26
+ 'table_repl_config': 'TableReplConfig'
27
+ }
28
+
29
+ attribute_map = {
30
+ 'source_instance_id': 'source_instance_id',
31
+ 'source_node_id': 'source_node_id',
32
+ 'source_database_name': 'source_database_name',
33
+ 'task_name': 'task_name',
34
+ 'db_configs': 'db_configs',
35
+ 'tables_configs': 'tables_configs',
36
+ 'table_repl_config': 'table_repl_config'
37
+ }
38
+
39
+ def __init__(self, source_instance_id=None, source_node_id=None, source_database_name=None, task_name=None, db_configs=None, tables_configs=None, table_repl_config=None):
40
+ """TableConfigCheckRequestV3
41
+
42
+ The model defined in huaweicloud sdk
43
+
44
+ :param source_instance_id: GaussDB(for MySQL)实例ID。
45
+ :type source_instance_id: str
46
+ :param source_node_id: GaussDB(for MySQL)只读节点ID。如为空,则取GaussDB(for MySQL)主节点ID
47
+ :type source_node_id: str
48
+ :param source_database_name: GaussDB(for MySQL)数据库名。
49
+ :type source_database_name: str
50
+ :param task_name: 同步任务名称。字符长度限制3~128位,仅支持英文大小写字母、数字以及下划线_。
51
+ :type task_name: str
52
+ :param db_configs: 库配置列表。
53
+ :type db_configs: list[:class:`huaweicloudsdkgaussdb.v3.DbConfig`]
54
+ :param tables_configs: 表配置信息。
55
+ :type tables_configs: list[:class:`huaweicloudsdkgaussdb.v3.TablesConfig`]
56
+ :param table_repl_config:
57
+ :type table_repl_config: :class:`huaweicloudsdkgaussdb.v3.TableReplConfig`
58
+ """
59
+
60
+
61
+
62
+ self._source_instance_id = None
63
+ self._source_node_id = None
64
+ self._source_database_name = None
65
+ self._task_name = None
66
+ self._db_configs = None
67
+ self._tables_configs = None
68
+ self._table_repl_config = None
69
+ self.discriminator = None
70
+
71
+ if source_instance_id is not None:
72
+ self.source_instance_id = source_instance_id
73
+ if source_node_id is not None:
74
+ self.source_node_id = source_node_id
75
+ if source_database_name is not None:
76
+ self.source_database_name = source_database_name
77
+ if task_name is not None:
78
+ self.task_name = task_name
79
+ if db_configs is not None:
80
+ self.db_configs = db_configs
81
+ if tables_configs is not None:
82
+ self.tables_configs = tables_configs
83
+ if table_repl_config is not None:
84
+ self.table_repl_config = table_repl_config
85
+
86
+ @property
87
+ def source_instance_id(self):
88
+ """Gets the source_instance_id of this TableConfigCheckRequestV3.
89
+
90
+ GaussDB(for MySQL)实例ID。
91
+
92
+ :return: The source_instance_id of this TableConfigCheckRequestV3.
93
+ :rtype: str
94
+ """
95
+ return self._source_instance_id
96
+
97
+ @source_instance_id.setter
98
+ def source_instance_id(self, source_instance_id):
99
+ """Sets the source_instance_id of this TableConfigCheckRequestV3.
100
+
101
+ GaussDB(for MySQL)实例ID。
102
+
103
+ :param source_instance_id: The source_instance_id of this TableConfigCheckRequestV3.
104
+ :type source_instance_id: str
105
+ """
106
+ self._source_instance_id = source_instance_id
107
+
108
+ @property
109
+ def source_node_id(self):
110
+ """Gets the source_node_id of this TableConfigCheckRequestV3.
111
+
112
+ GaussDB(for MySQL)只读节点ID。如为空,则取GaussDB(for MySQL)主节点ID
113
+
114
+ :return: The source_node_id of this TableConfigCheckRequestV3.
115
+ :rtype: str
116
+ """
117
+ return self._source_node_id
118
+
119
+ @source_node_id.setter
120
+ def source_node_id(self, source_node_id):
121
+ """Sets the source_node_id of this TableConfigCheckRequestV3.
122
+
123
+ GaussDB(for MySQL)只读节点ID。如为空,则取GaussDB(for MySQL)主节点ID
124
+
125
+ :param source_node_id: The source_node_id of this TableConfigCheckRequestV3.
126
+ :type source_node_id: str
127
+ """
128
+ self._source_node_id = source_node_id
129
+
130
+ @property
131
+ def source_database_name(self):
132
+ """Gets the source_database_name of this TableConfigCheckRequestV3.
133
+
134
+ GaussDB(for MySQL)数据库名。
135
+
136
+ :return: The source_database_name of this TableConfigCheckRequestV3.
137
+ :rtype: str
138
+ """
139
+ return self._source_database_name
140
+
141
+ @source_database_name.setter
142
+ def source_database_name(self, source_database_name):
143
+ """Sets the source_database_name of this TableConfigCheckRequestV3.
144
+
145
+ GaussDB(for MySQL)数据库名。
146
+
147
+ :param source_database_name: The source_database_name of this TableConfigCheckRequestV3.
148
+ :type source_database_name: str
149
+ """
150
+ self._source_database_name = source_database_name
151
+
152
+ @property
153
+ def task_name(self):
154
+ """Gets the task_name of this TableConfigCheckRequestV3.
155
+
156
+ 同步任务名称。字符长度限制3~128位,仅支持英文大小写字母、数字以及下划线_。
157
+
158
+ :return: The task_name of this TableConfigCheckRequestV3.
159
+ :rtype: str
160
+ """
161
+ return self._task_name
162
+
163
+ @task_name.setter
164
+ def task_name(self, task_name):
165
+ """Sets the task_name of this TableConfigCheckRequestV3.
166
+
167
+ 同步任务名称。字符长度限制3~128位,仅支持英文大小写字母、数字以及下划线_。
168
+
169
+ :param task_name: The task_name of this TableConfigCheckRequestV3.
170
+ :type task_name: str
171
+ """
172
+ self._task_name = task_name
173
+
174
+ @property
175
+ def db_configs(self):
176
+ """Gets the db_configs of this TableConfigCheckRequestV3.
177
+
178
+ 库配置列表。
179
+
180
+ :return: The db_configs of this TableConfigCheckRequestV3.
181
+ :rtype: list[:class:`huaweicloudsdkgaussdb.v3.DbConfig`]
182
+ """
183
+ return self._db_configs
184
+
185
+ @db_configs.setter
186
+ def db_configs(self, db_configs):
187
+ """Sets the db_configs of this TableConfigCheckRequestV3.
188
+
189
+ 库配置列表。
190
+
191
+ :param db_configs: The db_configs of this TableConfigCheckRequestV3.
192
+ :type db_configs: list[:class:`huaweicloudsdkgaussdb.v3.DbConfig`]
193
+ """
194
+ self._db_configs = db_configs
195
+
196
+ @property
197
+ def tables_configs(self):
198
+ """Gets the tables_configs of this TableConfigCheckRequestV3.
199
+
200
+ 表配置信息。
201
+
202
+ :return: The tables_configs of this TableConfigCheckRequestV3.
203
+ :rtype: list[:class:`huaweicloudsdkgaussdb.v3.TablesConfig`]
204
+ """
205
+ return self._tables_configs
206
+
207
+ @tables_configs.setter
208
+ def tables_configs(self, tables_configs):
209
+ """Sets the tables_configs of this TableConfigCheckRequestV3.
210
+
211
+ 表配置信息。
212
+
213
+ :param tables_configs: The tables_configs of this TableConfigCheckRequestV3.
214
+ :type tables_configs: list[:class:`huaweicloudsdkgaussdb.v3.TablesConfig`]
215
+ """
216
+ self._tables_configs = tables_configs
217
+
218
+ @property
219
+ def table_repl_config(self):
220
+ """Gets the table_repl_config of this TableConfigCheckRequestV3.
221
+
222
+ :return: The table_repl_config of this TableConfigCheckRequestV3.
223
+ :rtype: :class:`huaweicloudsdkgaussdb.v3.TableReplConfig`
224
+ """
225
+ return self._table_repl_config
226
+
227
+ @table_repl_config.setter
228
+ def table_repl_config(self, table_repl_config):
229
+ """Sets the table_repl_config of this TableConfigCheckRequestV3.
230
+
231
+ :param table_repl_config: The table_repl_config of this TableConfigCheckRequestV3.
232
+ :type table_repl_config: :class:`huaweicloudsdkgaussdb.v3.TableReplConfig`
233
+ """
234
+ self._table_repl_config = table_repl_config
235
+
236
+ def to_dict(self):
237
+ """Returns the model properties as a dict"""
238
+ result = {}
239
+
240
+ for attr, _ in six.iteritems(self.openapi_types):
241
+ value = getattr(self, attr)
242
+ if isinstance(value, list):
243
+ result[attr] = list(map(
244
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
245
+ value
246
+ ))
247
+ elif hasattr(value, "to_dict"):
248
+ result[attr] = value.to_dict()
249
+ elif isinstance(value, dict):
250
+ result[attr] = dict(map(
251
+ lambda item: (item[0], item[1].to_dict())
252
+ if hasattr(item[1], "to_dict") else item,
253
+ value.items()
254
+ ))
255
+ else:
256
+ if attr in self.sensitive_list:
257
+ result[attr] = "****"
258
+ else:
259
+ result[attr] = value
260
+
261
+ return result
262
+
263
+ def to_str(self):
264
+ """Returns the string representation of the model"""
265
+ import simplejson as json
266
+ if six.PY2:
267
+ import sys
268
+ reload(sys)
269
+ sys.setdefaultencoding("utf-8")
270
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
271
+
272
+ def __repr__(self):
273
+ """For `print`"""
274
+ return self.to_str()
275
+
276
+ def __eq__(self, other):
277
+ """Returns true if both objects are equal"""
278
+ if not isinstance(other, TableConfigCheckRequestV3):
279
+ return False
280
+
281
+ return self.__dict__ == other.__dict__
282
+
283
+ def __ne__(self, other):
284
+ """Returns true if both objects are not equal"""
285
+ return not self == other