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,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 CreateStarRocksDataReplicationResponse(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
+ """CreateStarRocksDataReplicationResponse
30
+
31
+ The model defined in huaweicloud sdk
32
+
33
+ :param job_id: 创建数据同步的任务ID。
34
+ :type job_id: str
35
+ """
36
+
37
+ super(CreateStarRocksDataReplicationResponse, 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 CreateStarRocksDataReplicationResponse.
48
+
49
+ 创建数据同步的任务ID。
50
+
51
+ :return: The job_id of this CreateStarRocksDataReplicationResponse.
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 CreateStarRocksDataReplicationResponse.
59
+
60
+ 创建数据同步的任务ID。
61
+
62
+ :param job_id: The job_id of this CreateStarRocksDataReplicationResponse.
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, CreateStarRocksDataReplicationResponse):
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,144 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class DataBaseInfo:
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
+ 'database_name': 'str',
21
+ 'db_config_check_results': 'list[DbConfigCheckResult]'
22
+ }
23
+
24
+ attribute_map = {
25
+ 'database_name': 'database_name',
26
+ 'db_config_check_results': 'db_config_check_results'
27
+ }
28
+
29
+ def __init__(self, database_name=None, db_config_check_results=None):
30
+ """DataBaseInfo
31
+
32
+ The model defined in huaweicloud sdk
33
+
34
+ :param database_name: 数据库名称。
35
+ :type database_name: str
36
+ :param db_config_check_results: 数据库配置检查结果。
37
+ :type db_config_check_results: list[:class:`huaweicloudsdkgaussdb.v3.DbConfigCheckResult`]
38
+ """
39
+
40
+
41
+
42
+ self._database_name = None
43
+ self._db_config_check_results = None
44
+ self.discriminator = None
45
+
46
+ if database_name is not None:
47
+ self.database_name = database_name
48
+ if db_config_check_results is not None:
49
+ self.db_config_check_results = db_config_check_results
50
+
51
+ @property
52
+ def database_name(self):
53
+ """Gets the database_name of this DataBaseInfo.
54
+
55
+ 数据库名称。
56
+
57
+ :return: The database_name of this DataBaseInfo.
58
+ :rtype: str
59
+ """
60
+ return self._database_name
61
+
62
+ @database_name.setter
63
+ def database_name(self, database_name):
64
+ """Sets the database_name of this DataBaseInfo.
65
+
66
+ 数据库名称。
67
+
68
+ :param database_name: The database_name of this DataBaseInfo.
69
+ :type database_name: str
70
+ """
71
+ self._database_name = database_name
72
+
73
+ @property
74
+ def db_config_check_results(self):
75
+ """Gets the db_config_check_results of this DataBaseInfo.
76
+
77
+ 数据库配置检查结果。
78
+
79
+ :return: The db_config_check_results of this DataBaseInfo.
80
+ :rtype: list[:class:`huaweicloudsdkgaussdb.v3.DbConfigCheckResult`]
81
+ """
82
+ return self._db_config_check_results
83
+
84
+ @db_config_check_results.setter
85
+ def db_config_check_results(self, db_config_check_results):
86
+ """Sets the db_config_check_results of this DataBaseInfo.
87
+
88
+ 数据库配置检查结果。
89
+
90
+ :param db_config_check_results: The db_config_check_results of this DataBaseInfo.
91
+ :type db_config_check_results: list[:class:`huaweicloudsdkgaussdb.v3.DbConfigCheckResult`]
92
+ """
93
+ self._db_config_check_results = db_config_check_results
94
+
95
+ def to_dict(self):
96
+ """Returns the model properties as a dict"""
97
+ result = {}
98
+
99
+ for attr, _ in six.iteritems(self.openapi_types):
100
+ value = getattr(self, attr)
101
+ if isinstance(value, list):
102
+ result[attr] = list(map(
103
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
104
+ value
105
+ ))
106
+ elif hasattr(value, "to_dict"):
107
+ result[attr] = value.to_dict()
108
+ elif isinstance(value, dict):
109
+ result[attr] = dict(map(
110
+ lambda item: (item[0], item[1].to_dict())
111
+ if hasattr(item[1], "to_dict") else item,
112
+ value.items()
113
+ ))
114
+ else:
115
+ if attr in self.sensitive_list:
116
+ result[attr] = "****"
117
+ else:
118
+ result[attr] = value
119
+
120
+ return result
121
+
122
+ def to_str(self):
123
+ """Returns the string representation of the model"""
124
+ import simplejson as json
125
+ if six.PY2:
126
+ import sys
127
+ reload(sys)
128
+ sys.setdefaultencoding("utf-8")
129
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
130
+
131
+ def __repr__(self):
132
+ """For `print`"""
133
+ return self.to_str()
134
+
135
+ def __eq__(self, other):
136
+ """Returns true if both objects are equal"""
137
+ if not isinstance(other, DataBaseInfo):
138
+ return False
139
+
140
+ return self.__dict__ == other.__dict__
141
+
142
+ def __ne__(self, other):
143
+ """Returns true if both objects are not equal"""
144
+ return not self == other
@@ -0,0 +1,144 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class DbConfig:
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
+ 'param_name': 'str',
21
+ 'value': 'str'
22
+ }
23
+
24
+ attribute_map = {
25
+ 'param_name': 'param_name',
26
+ 'value': 'value'
27
+ }
28
+
29
+ def __init__(self, param_name=None, value=None):
30
+ """DbConfig
31
+
32
+ The model defined in huaweicloud sdk
33
+
34
+ :param param_name: 参数名。
35
+ :type param_name: str
36
+ :param value: 参数值。
37
+ :type value: str
38
+ """
39
+
40
+
41
+
42
+ self._param_name = None
43
+ self._value = None
44
+ self.discriminator = None
45
+
46
+ if param_name is not None:
47
+ self.param_name = param_name
48
+ if value is not None:
49
+ self.value = value
50
+
51
+ @property
52
+ def param_name(self):
53
+ """Gets the param_name of this DbConfig.
54
+
55
+ 参数名。
56
+
57
+ :return: The param_name of this DbConfig.
58
+ :rtype: str
59
+ """
60
+ return self._param_name
61
+
62
+ @param_name.setter
63
+ def param_name(self, param_name):
64
+ """Sets the param_name of this DbConfig.
65
+
66
+ 参数名。
67
+
68
+ :param param_name: The param_name of this DbConfig.
69
+ :type param_name: str
70
+ """
71
+ self._param_name = param_name
72
+
73
+ @property
74
+ def value(self):
75
+ """Gets the value of this DbConfig.
76
+
77
+ 参数值。
78
+
79
+ :return: The value of this DbConfig.
80
+ :rtype: str
81
+ """
82
+ return self._value
83
+
84
+ @value.setter
85
+ def value(self, value):
86
+ """Sets the value of this DbConfig.
87
+
88
+ 参数值。
89
+
90
+ :param value: The value of this DbConfig.
91
+ :type value: str
92
+ """
93
+ self._value = value
94
+
95
+ def to_dict(self):
96
+ """Returns the model properties as a dict"""
97
+ result = {}
98
+
99
+ for attr, _ in six.iteritems(self.openapi_types):
100
+ value = getattr(self, attr)
101
+ if isinstance(value, list):
102
+ result[attr] = list(map(
103
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
104
+ value
105
+ ))
106
+ elif hasattr(value, "to_dict"):
107
+ result[attr] = value.to_dict()
108
+ elif isinstance(value, dict):
109
+ result[attr] = dict(map(
110
+ lambda item: (item[0], item[1].to_dict())
111
+ if hasattr(item[1], "to_dict") else item,
112
+ value.items()
113
+ ))
114
+ else:
115
+ if attr in self.sensitive_list:
116
+ result[attr] = "****"
117
+ else:
118
+ result[attr] = value
119
+
120
+ return result
121
+
122
+ def to_str(self):
123
+ """Returns the string representation of the model"""
124
+ import simplejson as json
125
+ if six.PY2:
126
+ import sys
127
+ reload(sys)
128
+ sys.setdefaultencoding("utf-8")
129
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
130
+
131
+ def __repr__(self):
132
+ """For `print`"""
133
+ return self.to_str()
134
+
135
+ def __eq__(self, other):
136
+ """Returns true if both objects are equal"""
137
+ if not isinstance(other, DbConfig):
138
+ return False
139
+
140
+ return self.__dict__ == other.__dict__
141
+
142
+ def __ne__(self, other):
143
+ """Returns true if both objects are not equal"""
144
+ 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 DbConfigCheckRequestV3:
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
+ 'target_database_name': 'str',
24
+ 'task_name': 'str',
25
+ 'db_configs': 'list[DbConfig]',
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
+ 'target_database_name': 'target_database_name',
34
+ 'task_name': 'task_name',
35
+ 'db_configs': 'db_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, target_database_name=None, task_name=None, db_configs=None, table_repl_config=None):
40
+ """DbConfigCheckRequestV3
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 target_database_name: 目标数据库名。字符长度限制3~128位,仅支持英文大小写字母、数字以及下划线_。
51
+ :type target_database_name: str
52
+ :param task_name: 同步任务名称。字符长度限制3~128位,仅支持英文大小写字母、数字以及下划线_。
53
+ :type task_name: str
54
+ :param db_configs: 库配置列表。
55
+ :type db_configs: list[:class:`huaweicloudsdkgaussdb.v3.DbConfig`]
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._target_database_name = None
66
+ self._task_name = None
67
+ self._db_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 target_database_name is not None:
78
+ self.target_database_name = target_database_name
79
+ if task_name is not None:
80
+ self.task_name = task_name
81
+ if db_configs is not None:
82
+ self.db_configs = db_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 DbConfigCheckRequestV3.
89
+
90
+ GaussDB(for MySQL)实例ID。
91
+
92
+ :return: The source_instance_id of this DbConfigCheckRequestV3.
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 DbConfigCheckRequestV3.
100
+
101
+ GaussDB(for MySQL)实例ID。
102
+
103
+ :param source_instance_id: The source_instance_id of this DbConfigCheckRequestV3.
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 DbConfigCheckRequestV3.
111
+
112
+ GaussDB(for MySQL)只读节点ID。如为空,则取GaussDB(for MySQL)主节点ID
113
+
114
+ :return: The source_node_id of this DbConfigCheckRequestV3.
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 DbConfigCheckRequestV3.
122
+
123
+ GaussDB(for MySQL)只读节点ID。如为空,则取GaussDB(for MySQL)主节点ID
124
+
125
+ :param source_node_id: The source_node_id of this DbConfigCheckRequestV3.
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 DbConfigCheckRequestV3.
133
+
134
+ GaussDB(for MySQL)数据库名。
135
+
136
+ :return: The source_database_name of this DbConfigCheckRequestV3.
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 DbConfigCheckRequestV3.
144
+
145
+ GaussDB(for MySQL)数据库名。
146
+
147
+ :param source_database_name: The source_database_name of this DbConfigCheckRequestV3.
148
+ :type source_database_name: str
149
+ """
150
+ self._source_database_name = source_database_name
151
+
152
+ @property
153
+ def target_database_name(self):
154
+ """Gets the target_database_name of this DbConfigCheckRequestV3.
155
+
156
+ 目标数据库名。字符长度限制3~128位,仅支持英文大小写字母、数字以及下划线_。
157
+
158
+ :return: The target_database_name of this DbConfigCheckRequestV3.
159
+ :rtype: str
160
+ """
161
+ return self._target_database_name
162
+
163
+ @target_database_name.setter
164
+ def target_database_name(self, target_database_name):
165
+ """Sets the target_database_name of this DbConfigCheckRequestV3.
166
+
167
+ 目标数据库名。字符长度限制3~128位,仅支持英文大小写字母、数字以及下划线_。
168
+
169
+ :param target_database_name: The target_database_name of this DbConfigCheckRequestV3.
170
+ :type target_database_name: str
171
+ """
172
+ self._target_database_name = target_database_name
173
+
174
+ @property
175
+ def task_name(self):
176
+ """Gets the task_name of this DbConfigCheckRequestV3.
177
+
178
+ 同步任务名称。字符长度限制3~128位,仅支持英文大小写字母、数字以及下划线_。
179
+
180
+ :return: The task_name of this DbConfigCheckRequestV3.
181
+ :rtype: str
182
+ """
183
+ return self._task_name
184
+
185
+ @task_name.setter
186
+ def task_name(self, task_name):
187
+ """Sets the task_name of this DbConfigCheckRequestV3.
188
+
189
+ 同步任务名称。字符长度限制3~128位,仅支持英文大小写字母、数字以及下划线_。
190
+
191
+ :param task_name: The task_name of this DbConfigCheckRequestV3.
192
+ :type task_name: str
193
+ """
194
+ self._task_name = task_name
195
+
196
+ @property
197
+ def db_configs(self):
198
+ """Gets the db_configs of this DbConfigCheckRequestV3.
199
+
200
+ 库配置列表。
201
+
202
+ :return: The db_configs of this DbConfigCheckRequestV3.
203
+ :rtype: list[:class:`huaweicloudsdkgaussdb.v3.DbConfig`]
204
+ """
205
+ return self._db_configs
206
+
207
+ @db_configs.setter
208
+ def db_configs(self, db_configs):
209
+ """Sets the db_configs of this DbConfigCheckRequestV3.
210
+
211
+ 库配置列表。
212
+
213
+ :param db_configs: The db_configs of this DbConfigCheckRequestV3.
214
+ :type db_configs: list[:class:`huaweicloudsdkgaussdb.v3.DbConfig`]
215
+ """
216
+ self._db_configs = db_configs
217
+
218
+ @property
219
+ def table_repl_config(self):
220
+ """Gets the table_repl_config of this DbConfigCheckRequestV3.
221
+
222
+ :return: The table_repl_config of this DbConfigCheckRequestV3.
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 DbConfigCheckRequestV3.
230
+
231
+ :param table_repl_config: The table_repl_config of this DbConfigCheckRequestV3.
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, DbConfigCheckRequestV3):
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