huaweicloudsdkgaussdb 3.1.94__py2.py3-none-any.whl → 3.1.96__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 (106) hide show
  1. huaweicloudsdkgaussdb/v3/__init__.py +97 -0
  2. huaweicloudsdkgaussdb/v3/gaussdb_async_client.py +1591 -0
  3. huaweicloudsdkgaussdb/v3/gaussdb_client.py +1591 -0
  4. huaweicloudsdkgaussdb/v3/model/__init__.py +97 -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_star_rocks_resource_request.py +140 -0
  8. huaweicloudsdkgaussdb/v3/model/check_star_rocks_resource_response.py +116 -0
  9. huaweicloudsdkgaussdb/v3/model/check_table_config_request.py +167 -0
  10. huaweicloudsdkgaussdb/v3/model/check_table_config_response.py +203 -0
  11. huaweicloudsdkgaussdb/v3/model/create_star_rocks_data_replication.py +227 -0
  12. huaweicloudsdkgaussdb/v3/model/create_star_rocks_data_replication_request.py +167 -0
  13. huaweicloudsdkgaussdb/v3/model/create_star_rocks_data_replication_response.py +116 -0
  14. huaweicloudsdkgaussdb/v3/model/create_star_rocks_database_user_request.py +168 -0
  15. huaweicloudsdkgaussdb/v3/model/create_star_rocks_database_user_response.py +116 -0
  16. huaweicloudsdkgaussdb/v3/model/create_starrocks_instance_request.py +168 -0
  17. huaweicloudsdkgaussdb/v3/model/create_starrocks_instance_response.py +141 -0
  18. huaweicloudsdkgaussdb/v3/model/data_base_info.py +144 -0
  19. huaweicloudsdkgaussdb/v3/model/db_config.py +144 -0
  20. huaweicloudsdkgaussdb/v3/model/db_config_check_request_v3.py +285 -0
  21. huaweicloudsdkgaussdb/v3/model/db_config_check_result.py +173 -0
  22. huaweicloudsdkgaussdb/v3/model/db_parameter.py +231 -0
  23. huaweicloudsdkgaussdb/v3/model/delete_star_rocks_data_replication.py +115 -0
  24. huaweicloudsdkgaussdb/v3/model/delete_star_rocks_data_replication_request.py +167 -0
  25. huaweicloudsdkgaussdb/v3/model/delete_star_rocks_data_replication_response.py +116 -0
  26. huaweicloudsdkgaussdb/v3/model/delete_star_rocks_database_user_request.py +171 -0
  27. huaweicloudsdkgaussdb/v3/model/delete_star_rocks_database_user_response.py +116 -0
  28. huaweicloudsdkgaussdb/v3/model/delete_starrocks_instance_request.py +171 -0
  29. huaweicloudsdkgaussdb/v3/model/delete_starrocks_instance_response.py +116 -0
  30. huaweicloudsdkgaussdb/v3/model/htap_flavor_info_flavors.py +318 -0
  31. huaweicloudsdkgaussdb/v3/model/htap_instance_list_available_zones.py +173 -0
  32. huaweicloudsdkgaussdb/v3/model/htap_instance_list_instance_state.py +202 -0
  33. huaweicloudsdkgaussdb/v3/model/htap_instance_list_instances.py +832 -0
  34. huaweicloudsdkgaussdb/v3/model/htap_instance_list_network.py +173 -0
  35. huaweicloudsdkgaussdb/v3/model/htap_storage_type_storage_type.py +173 -0
  36. huaweicloudsdkgaussdb/v3/model/list_htap_data_store_request.py +143 -0
  37. huaweicloudsdkgaussdb/v3/model/list_htap_data_store_response.py +116 -0
  38. huaweicloudsdkgaussdb/v3/model/list_htap_flavor_request.py +230 -0
  39. huaweicloudsdkgaussdb/v3/model/list_htap_flavor_response.py +116 -0
  40. huaweicloudsdkgaussdb/v3/model/list_htap_instance_info_request.py +143 -0
  41. huaweicloudsdkgaussdb/v3/model/list_htap_instance_info_response.py +174 -0
  42. huaweicloudsdkgaussdb/v3/model/list_htap_storage_type_request.py +171 -0
  43. huaweicloudsdkgaussdb/v3/model/list_htap_storage_type_response.py +116 -0
  44. huaweicloudsdkgaussdb/v3/model/list_star_rocks_data_bases_request.py +229 -0
  45. huaweicloudsdkgaussdb/v3/model/list_star_rocks_data_bases_response.py +174 -0
  46. huaweicloudsdkgaussdb/v3/model/list_star_rocks_data_replication_config_request.py +170 -0
  47. huaweicloudsdkgaussdb/v3/model/list_star_rocks_data_replication_config_response.py +336 -0
  48. huaweicloudsdkgaussdb/v3/model/list_star_rocks_data_replications_request.py +200 -0
  49. huaweicloudsdkgaussdb/v3/model/list_star_rocks_data_replications_response.py +174 -0
  50. huaweicloudsdkgaussdb/v3/model/list_star_rocks_db_parameters_request.py +142 -0
  51. huaweicloudsdkgaussdb/v3/model/list_star_rocks_db_parameters_response.py +116 -0
  52. huaweicloudsdkgaussdb/v3/model/list_starrocks_instance_info_request.py +171 -0
  53. huaweicloudsdkgaussdb/v3/model/list_starrocks_instance_info_response.py +116 -0
  54. huaweicloudsdkgaussdb/v3/model/param_group.py +144 -0
  55. huaweicloudsdkgaussdb/v3/model/query_action.py +318 -0
  56. huaweicloudsdkgaussdb/v3/model/readable_node_infos.py +173 -0
  57. huaweicloudsdkgaussdb/v3/model/resource_check.py +138 -0
  58. huaweicloudsdkgaussdb/v3/model/resource_check_resource.py +367 -0
  59. huaweicloudsdkgaussdb/v3/model/restart_starrocks_instance_request.py +143 -0
  60. huaweicloudsdkgaussdb/v3/model/restart_starrocks_instance_response.py +116 -0
  61. huaweicloudsdkgaussdb/v3/model/restart_starrocks_node_request.py +171 -0
  62. huaweicloudsdkgaussdb/v3/model/restart_starrocks_node_response.py +116 -0
  63. huaweicloudsdkgaussdb/v3/model/show_star_rocks_database_user_request.py +228 -0
  64. huaweicloudsdkgaussdb/v3/model/show_star_rocks_database_user_response.py +145 -0
  65. huaweicloudsdkgaussdb/v3/model/show_star_rocks_database_users_user_details.py +198 -0
  66. huaweicloudsdkgaussdb/v3/model/sr_create_instance_rsp_instance.py +538 -0
  67. huaweicloudsdkgaussdb/v3/model/sr_create_instance_rsp_instance_engine.py +144 -0
  68. huaweicloudsdkgaussdb/v3/model/sr_create_instance_rsp_instance_pay_info.py +231 -0
  69. huaweicloudsdkgaussdb/v3/model/sr_create_instance_rsp_instance_tags_info.py +144 -0
  70. huaweicloudsdkgaussdb/v3/model/sr_create_instance_rsp_instance_tags_info_sys_tags.py +144 -0
  71. huaweicloudsdkgaussdb/v3/model/sr_create_instance_rsp_instance_tags_info_tags.py +144 -0
  72. huaweicloudsdkgaussdb/v3/model/sr_data_stores_datastores.py +173 -0
  73. huaweicloudsdkgaussdb/v3/model/star_rocks_create_request.py +459 -0
  74. huaweicloudsdkgaussdb/v3/model/star_rocks_create_request_be_volume.py +142 -0
  75. huaweicloudsdkgaussdb/v3/model/star_rocks_create_request_engine.py +142 -0
  76. huaweicloudsdkgaussdb/v3/model/star_rocks_create_request_fe_volume.py +142 -0
  77. huaweicloudsdkgaussdb/v3/model/star_rocks_create_request_ha.py +114 -0
  78. huaweicloudsdkgaussdb/v3/model/star_rocks_create_request_tags_info.py +114 -0
  79. huaweicloudsdkgaussdb/v3/model/star_rocks_create_request_tags_info_sys_tags.py +142 -0
  80. huaweicloudsdkgaussdb/v3/model/star_rocks_database_user_info.py +228 -0
  81. huaweicloudsdkgaussdb/v3/model/star_rocks_database_user_p_sinfo.py +201 -0
  82. huaweicloudsdkgaussdb/v3/model/star_rocks_database_user_p_winfo.py +142 -0
  83. huaweicloudsdkgaussdb/v3/model/star_rocks_instance_info_datastore.py +173 -0
  84. huaweicloudsdkgaussdb/v3/model/star_rocks_instance_info_groups.py +231 -0
  85. huaweicloudsdkgaussdb/v3/model/star_rocks_instance_info_instances.py +1292 -0
  86. huaweicloudsdkgaussdb/v3/model/star_rocks_instance_info_nodes.py +1006 -0
  87. huaweicloudsdkgaussdb/v3/model/star_rocks_instance_info_ops_window.py +173 -0
  88. huaweicloudsdkgaussdb/v3/model/star_rocks_instance_info_port_info.py +115 -0
  89. huaweicloudsdkgaussdb/v3/model/star_rocks_instance_info_tags_info.py +144 -0
  90. huaweicloudsdkgaussdb/v3/model/star_rocks_instance_info_tags_info_sys_tags.py +144 -0
  91. huaweicloudsdkgaussdb/v3/model/star_rocks_instance_info_tags_info_tags.py +144 -0
  92. huaweicloudsdkgaussdb/v3/model/star_rocks_instance_info_volume.py +144 -0
  93. huaweicloudsdkgaussdb/v3/model/star_rocks_replication_info.py +318 -0
  94. huaweicloudsdkgaussdb/v3/model/table_config_check_request_v3.py +285 -0
  95. huaweicloudsdkgaussdb/v3/model/table_config_check_result.py +173 -0
  96. huaweicloudsdkgaussdb/v3/model/table_repl_config.py +173 -0
  97. huaweicloudsdkgaussdb/v3/model/tables_config.py +144 -0
  98. huaweicloudsdkgaussdb/v3/model/update_star_rocks_database_user_password_request.py +168 -0
  99. huaweicloudsdkgaussdb/v3/model/update_star_rocks_database_user_password_response.py +116 -0
  100. huaweicloudsdkgaussdb/v3/model/update_star_rocks_database_user_permission_request.py +168 -0
  101. huaweicloudsdkgaussdb/v3/model/update_star_rocks_database_user_permission_response.py +116 -0
  102. {huaweicloudsdkgaussdb-3.1.94.dist-info → huaweicloudsdkgaussdb-3.1.96.dist-info}/METADATA +2 -2
  103. {huaweicloudsdkgaussdb-3.1.94.dist-info → huaweicloudsdkgaussdb-3.1.96.dist-info}/RECORD +106 -9
  104. {huaweicloudsdkgaussdb-3.1.94.dist-info → huaweicloudsdkgaussdb-3.1.96.dist-info}/LICENSE +0 -0
  105. {huaweicloudsdkgaussdb-3.1.94.dist-info → huaweicloudsdkgaussdb-3.1.96.dist-info}/WHEEL +0 -0
  106. {huaweicloudsdkgaussdb-3.1.94.dist-info → huaweicloudsdkgaussdb-3.1.96.dist-info}/top_level.txt +0 -0
@@ -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
@@ -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 TableConfigCheckResult:
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
+ 'table_name': 'str',
21
+ 'table_config': 'str',
22
+ 'check_result': 'str'
23
+ }
24
+
25
+ attribute_map = {
26
+ 'table_name': 'table_name',
27
+ 'table_config': 'table_config',
28
+ 'check_result': 'check_result'
29
+ }
30
+
31
+ def __init__(self, table_name=None, table_config=None, check_result=None):
32
+ """TableConfigCheckResult
33
+
34
+ The model defined in huaweicloud sdk
35
+
36
+ :param table_name: 表名。
37
+ :type table_name: str
38
+ :param table_config: 表配置项。
39
+ :type table_config: str
40
+ :param check_result: 校验结果。
41
+ :type check_result: str
42
+ """
43
+
44
+
45
+
46
+ self._table_name = None
47
+ self._table_config = None
48
+ self._check_result = None
49
+ self.discriminator = None
50
+
51
+ if table_name is not None:
52
+ self.table_name = table_name
53
+ if table_config is not None:
54
+ self.table_config = table_config
55
+ if check_result is not None:
56
+ self.check_result = check_result
57
+
58
+ @property
59
+ def table_name(self):
60
+ """Gets the table_name of this TableConfigCheckResult.
61
+
62
+ 表名。
63
+
64
+ :return: The table_name of this TableConfigCheckResult.
65
+ :rtype: str
66
+ """
67
+ return self._table_name
68
+
69
+ @table_name.setter
70
+ def table_name(self, table_name):
71
+ """Sets the table_name of this TableConfigCheckResult.
72
+
73
+ 表名。
74
+
75
+ :param table_name: The table_name of this TableConfigCheckResult.
76
+ :type table_name: str
77
+ """
78
+ self._table_name = table_name
79
+
80
+ @property
81
+ def table_config(self):
82
+ """Gets the table_config of this TableConfigCheckResult.
83
+
84
+ 表配置项。
85
+
86
+ :return: The table_config of this TableConfigCheckResult.
87
+ :rtype: str
88
+ """
89
+ return self._table_config
90
+
91
+ @table_config.setter
92
+ def table_config(self, table_config):
93
+ """Sets the table_config of this TableConfigCheckResult.
94
+
95
+ 表配置项。
96
+
97
+ :param table_config: The table_config of this TableConfigCheckResult.
98
+ :type table_config: str
99
+ """
100
+ self._table_config = table_config
101
+
102
+ @property
103
+ def check_result(self):
104
+ """Gets the check_result of this TableConfigCheckResult.
105
+
106
+ 校验结果。
107
+
108
+ :return: The check_result of this TableConfigCheckResult.
109
+ :rtype: str
110
+ """
111
+ return self._check_result
112
+
113
+ @check_result.setter
114
+ def check_result(self, check_result):
115
+ """Sets the check_result of this TableConfigCheckResult.
116
+
117
+ 校验结果。
118
+
119
+ :param check_result: The check_result of this TableConfigCheckResult.
120
+ :type check_result: str
121
+ """
122
+ self._check_result = check_result
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, TableConfigCheckResult):
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
@@ -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 TableReplConfig:
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
+ 'repl_type': 'str',
21
+ 'repl_scope': 'str',
22
+ 'tables': 'list[str]'
23
+ }
24
+
25
+ attribute_map = {
26
+ 'repl_type': 'repl_type',
27
+ 'repl_scope': 'repl_scope',
28
+ 'tables': 'tables'
29
+ }
30
+
31
+ def __init__(self, repl_type=None, repl_scope=None, tables=None):
32
+ """TableReplConfig
33
+
34
+ The model defined in huaweicloud sdk
35
+
36
+ :param repl_type: 表同步类型。include_tables:白名单,exclude_tables:黑名单。
37
+ :type repl_type: str
38
+ :param repl_scope: 表同步范围。all:全量同步,part:部分同步。
39
+ :type repl_scope: str
40
+ :param tables: 白名单或黑名单的表范围。
41
+ :type tables: list[str]
42
+ """
43
+
44
+
45
+
46
+ self._repl_type = None
47
+ self._repl_scope = None
48
+ self._tables = None
49
+ self.discriminator = None
50
+
51
+ if repl_type is not None:
52
+ self.repl_type = repl_type
53
+ if repl_scope is not None:
54
+ self.repl_scope = repl_scope
55
+ if tables is not None:
56
+ self.tables = tables
57
+
58
+ @property
59
+ def repl_type(self):
60
+ """Gets the repl_type of this TableReplConfig.
61
+
62
+ 表同步类型。include_tables:白名单,exclude_tables:黑名单。
63
+
64
+ :return: The repl_type of this TableReplConfig.
65
+ :rtype: str
66
+ """
67
+ return self._repl_type
68
+
69
+ @repl_type.setter
70
+ def repl_type(self, repl_type):
71
+ """Sets the repl_type of this TableReplConfig.
72
+
73
+ 表同步类型。include_tables:白名单,exclude_tables:黑名单。
74
+
75
+ :param repl_type: The repl_type of this TableReplConfig.
76
+ :type repl_type: str
77
+ """
78
+ self._repl_type = repl_type
79
+
80
+ @property
81
+ def repl_scope(self):
82
+ """Gets the repl_scope of this TableReplConfig.
83
+
84
+ 表同步范围。all:全量同步,part:部分同步。
85
+
86
+ :return: The repl_scope of this TableReplConfig.
87
+ :rtype: str
88
+ """
89
+ return self._repl_scope
90
+
91
+ @repl_scope.setter
92
+ def repl_scope(self, repl_scope):
93
+ """Sets the repl_scope of this TableReplConfig.
94
+
95
+ 表同步范围。all:全量同步,part:部分同步。
96
+
97
+ :param repl_scope: The repl_scope of this TableReplConfig.
98
+ :type repl_scope: str
99
+ """
100
+ self._repl_scope = repl_scope
101
+
102
+ @property
103
+ def tables(self):
104
+ """Gets the tables of this TableReplConfig.
105
+
106
+ 白名单或黑名单的表范围。
107
+
108
+ :return: The tables of this TableReplConfig.
109
+ :rtype: list[str]
110
+ """
111
+ return self._tables
112
+
113
+ @tables.setter
114
+ def tables(self, tables):
115
+ """Sets the tables of this TableReplConfig.
116
+
117
+ 白名单或黑名单的表范围。
118
+
119
+ :param tables: The tables of this TableReplConfig.
120
+ :type tables: list[str]
121
+ """
122
+ self._tables = tables
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, TableReplConfig):
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