huaweicloudsdkdrs 3.1.90__py2.py3-none-any.whl → 3.1.91__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 (54) hide show
  1. huaweicloudsdkdrs/v3/__init__.py +26 -0
  2. huaweicloudsdkdrs/v3/drs_async_client.py +589 -1
  3. huaweicloudsdkdrs/v3/drs_client.py +589 -1
  4. huaweicloudsdkdrs/v3/model/__init__.py +26 -0
  5. huaweicloudsdkdrs/v3/model/add_data_transformation_req.py +138 -0
  6. huaweicloudsdkdrs/v3/model/api_http_null_resp.py +84 -0
  7. huaweicloudsdkdrs/v3/model/compare_job_info.py +376 -0
  8. huaweicloudsdkdrs/v3/model/create_data_compare_database_object.py +115 -0
  9. huaweicloudsdkdrs/v3/model/create_data_compare_transformation_info.py +142 -0
  10. huaweicloudsdkdrs/v3/model/create_data_level_table_compare_job_req.py +346 -0
  11. huaweicloudsdkdrs/v3/model/create_data_level_table_compare_job_request.py +168 -0
  12. huaweicloudsdkdrs/v3/model/create_data_level_table_compare_job_response.py +116 -0
  13. huaweicloudsdkdrs/v3/model/data_compare_overview_info.py +173 -0
  14. huaweicloudsdkdrs/v3/model/delete_compare_job_request.py +171 -0
  15. huaweicloudsdkdrs/v3/model/delete_compare_job_response.py +116 -0
  16. huaweicloudsdkdrs/v3/model/list_content_compare_detail_request.py +316 -0
  17. huaweicloudsdkdrs/v3/model/list_content_compare_detail_response.py +145 -0
  18. huaweicloudsdkdrs/v3/model/list_content_compare_overview_request.py +229 -0
  19. huaweicloudsdkdrs/v3/model/list_content_compare_overview_response.py +145 -0
  20. huaweicloudsdkdrs/v3/model/list_data_compare_detail_request.py +374 -0
  21. huaweicloudsdkdrs/v3/model/list_data_compare_detail_response.py +145 -0
  22. huaweicloudsdkdrs/v3/model/list_data_compare_overview_request.py +258 -0
  23. huaweicloudsdkdrs/v3/model/list_data_compare_overview_response.py +145 -0
  24. huaweicloudsdkdrs/v3/model/list_data_level_table_compare_jobs_request.py +201 -0
  25. huaweicloudsdkdrs/v3/model/list_data_level_table_compare_jobs_response.py +145 -0
  26. huaweicloudsdkdrs/v3/model/node_content_compare_detail_result.py +405 -0
  27. huaweicloudsdkdrs/v3/model/node_content_compare_overview_result.py +173 -0
  28. huaweicloudsdkdrs/v3/model/start_promptly_data_level_table_compare_job_request.py +171 -0
  29. huaweicloudsdkdrs/v3/model/start_promptly_data_level_table_compare_job_response.py +116 -0
  30. huaweicloudsdkdrs/v3/model/table_line_compare_result_info.py +289 -0
  31. huaweicloudsdkdrs/v5/__init__.py +10 -0
  32. huaweicloudsdkdrs/v5/drs_async_client.py +154 -0
  33. huaweicloudsdkdrs/v5/drs_client.py +154 -0
  34. huaweicloudsdkdrs/v5/model/__init__.py +10 -0
  35. huaweicloudsdkdrs/v5/model/action_req.py +3 -3
  36. huaweicloudsdkdrs/v5/model/compare_task_params.py +32 -3
  37. huaweicloudsdkdrs/v5/model/data_process_info.py +32 -3
  38. huaweicloudsdkdrs/v5/model/db_object_filtering_result.py +148 -3
  39. huaweicloudsdkdrs/v5/model/lists_agency_permissions_request.py +201 -0
  40. huaweicloudsdkdrs/v5/model/lists_agency_permissions_response.py +145 -0
  41. huaweicloudsdkdrs/v5/model/replay_error_sql_resp.py +173 -0
  42. huaweicloudsdkdrs/v5/model/replay_error_sql_template_resp.py +260 -0
  43. huaweicloudsdkdrs/v5/model/replay_shard_statics_resp.py +226 -0
  44. huaweicloudsdkdrs/v5/model/replay_slow_sql_resp.py +202 -0
  45. huaweicloudsdkdrs/v5/model/replay_slow_sql_template_resp.py +373 -0
  46. huaweicloudsdkdrs/v5/model/replaying_sql_resp.py +318 -0
  47. huaweicloudsdkdrs/v5/model/show_position_result_response.py +3 -3
  48. huaweicloudsdkdrs/v5/model/show_replay_results_request.py +374 -0
  49. huaweicloudsdkdrs/v5/model/show_replay_results_response.py +290 -0
  50. {huaweicloudsdkdrs-3.1.90.dist-info → huaweicloudsdkdrs-3.1.91.dist-info}/METADATA +2 -2
  51. {huaweicloudsdkdrs-3.1.90.dist-info → huaweicloudsdkdrs-3.1.91.dist-info}/RECORD +54 -18
  52. {huaweicloudsdkdrs-3.1.90.dist-info → huaweicloudsdkdrs-3.1.91.dist-info}/LICENSE +0 -0
  53. {huaweicloudsdkdrs-3.1.90.dist-info → huaweicloudsdkdrs-3.1.91.dist-info}/WHEEL +0 -0
  54. {huaweicloudsdkdrs-3.1.90.dist-info → huaweicloudsdkdrs-3.1.91.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,145 @@
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 ListsAgencyPermissionsResponse(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
+ 'common_permissions': 'list[str]',
22
+ 'engine_permissions': 'list[str]'
23
+ }
24
+
25
+ attribute_map = {
26
+ 'common_permissions': 'common_permissions',
27
+ 'engine_permissions': 'engine_permissions'
28
+ }
29
+
30
+ def __init__(self, common_permissions=None, engine_permissions=None):
31
+ """ListsAgencyPermissionsResponse
32
+
33
+ The model defined in huaweicloud sdk
34
+
35
+ :param common_permissions: - DRS FullAccess 数据复制服务所有权限
36
+ :type common_permissions: list[str]
37
+ :param engine_permissions: - GaussDB ReadOnlyAccess 云数据库 GaussDB服务的只读访问权限 - GeminiDB ReadOnlyAccess 分布式多模NoSQL数据库服务只读权限 - GaussDBforMSQLReadOnlyAccess 云数据库HUAWEIGaussDBforMSQL服务的只读访问权限 - DWS ReadOnlyAccess 数据仓库服务只读权限 - DDM ReadOnlyAccess 分布式数据库中间件服务只读权限 - DDS ReadOnlyPolicy 文档数据库服务资源只读权限 - RDS ReadOnlyAccess 关系型数据库服务资源只读权限 - MRS ReadOnlyAccess MapReduce服务只读权限,包括集群查询操作,基础服务弹性云服务器、裸金属服务器、云硬盘、虚拟私有云只读权限
38
+ :type engine_permissions: list[str]
39
+ """
40
+
41
+ super(ListsAgencyPermissionsResponse, self).__init__()
42
+
43
+ self._common_permissions = None
44
+ self._engine_permissions = None
45
+ self.discriminator = None
46
+
47
+ if common_permissions is not None:
48
+ self.common_permissions = common_permissions
49
+ if engine_permissions is not None:
50
+ self.engine_permissions = engine_permissions
51
+
52
+ @property
53
+ def common_permissions(self):
54
+ """Gets the common_permissions of this ListsAgencyPermissionsResponse.
55
+
56
+ - DRS FullAccess 数据复制服务所有权限
57
+
58
+ :return: The common_permissions of this ListsAgencyPermissionsResponse.
59
+ :rtype: list[str]
60
+ """
61
+ return self._common_permissions
62
+
63
+ @common_permissions.setter
64
+ def common_permissions(self, common_permissions):
65
+ """Sets the common_permissions of this ListsAgencyPermissionsResponse.
66
+
67
+ - DRS FullAccess 数据复制服务所有权限
68
+
69
+ :param common_permissions: The common_permissions of this ListsAgencyPermissionsResponse.
70
+ :type common_permissions: list[str]
71
+ """
72
+ self._common_permissions = common_permissions
73
+
74
+ @property
75
+ def engine_permissions(self):
76
+ """Gets the engine_permissions of this ListsAgencyPermissionsResponse.
77
+
78
+ - GaussDB ReadOnlyAccess 云数据库 GaussDB服务的只读访问权限 - GeminiDB ReadOnlyAccess 分布式多模NoSQL数据库服务只读权限 - GaussDBforMSQLReadOnlyAccess 云数据库HUAWEIGaussDBforMSQL服务的只读访问权限 - DWS ReadOnlyAccess 数据仓库服务只读权限 - DDM ReadOnlyAccess 分布式数据库中间件服务只读权限 - DDS ReadOnlyPolicy 文档数据库服务资源只读权限 - RDS ReadOnlyAccess 关系型数据库服务资源只读权限 - MRS ReadOnlyAccess MapReduce服务只读权限,包括集群查询操作,基础服务弹性云服务器、裸金属服务器、云硬盘、虚拟私有云只读权限
79
+
80
+ :return: The engine_permissions of this ListsAgencyPermissionsResponse.
81
+ :rtype: list[str]
82
+ """
83
+ return self._engine_permissions
84
+
85
+ @engine_permissions.setter
86
+ def engine_permissions(self, engine_permissions):
87
+ """Sets the engine_permissions of this ListsAgencyPermissionsResponse.
88
+
89
+ - GaussDB ReadOnlyAccess 云数据库 GaussDB服务的只读访问权限 - GeminiDB ReadOnlyAccess 分布式多模NoSQL数据库服务只读权限 - GaussDBforMSQLReadOnlyAccess 云数据库HUAWEIGaussDBforMSQL服务的只读访问权限 - DWS ReadOnlyAccess 数据仓库服务只读权限 - DDM ReadOnlyAccess 分布式数据库中间件服务只读权限 - DDS ReadOnlyPolicy 文档数据库服务资源只读权限 - RDS ReadOnlyAccess 关系型数据库服务资源只读权限 - MRS ReadOnlyAccess MapReduce服务只读权限,包括集群查询操作,基础服务弹性云服务器、裸金属服务器、云硬盘、虚拟私有云只读权限
90
+
91
+ :param engine_permissions: The engine_permissions of this ListsAgencyPermissionsResponse.
92
+ :type engine_permissions: list[str]
93
+ """
94
+ self._engine_permissions = engine_permissions
95
+
96
+ def to_dict(self):
97
+ """Returns the model properties as a dict"""
98
+ result = {}
99
+
100
+ for attr, _ in six.iteritems(self.openapi_types):
101
+ value = getattr(self, attr)
102
+ if isinstance(value, list):
103
+ result[attr] = list(map(
104
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
105
+ value
106
+ ))
107
+ elif hasattr(value, "to_dict"):
108
+ result[attr] = value.to_dict()
109
+ elif isinstance(value, dict):
110
+ result[attr] = dict(map(
111
+ lambda item: (item[0], item[1].to_dict())
112
+ if hasattr(item[1], "to_dict") else item,
113
+ value.items()
114
+ ))
115
+ else:
116
+ if attr in self.sensitive_list:
117
+ result[attr] = "****"
118
+ else:
119
+ result[attr] = value
120
+
121
+ return result
122
+
123
+ def to_str(self):
124
+ """Returns the string representation of the model"""
125
+ import simplejson as json
126
+ if six.PY2:
127
+ import sys
128
+ reload(sys)
129
+ sys.setdefaultencoding("utf-8")
130
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
131
+
132
+ def __repr__(self):
133
+ """For `print`"""
134
+ return self.to_str()
135
+
136
+ def __eq__(self, other):
137
+ """Returns true if both objects are equal"""
138
+ if not isinstance(other, ListsAgencyPermissionsResponse):
139
+ return False
140
+
141
+ return self.__dict__ == other.__dict__
142
+
143
+ def __ne__(self, other):
144
+ """Returns true if both objects are not equal"""
145
+ 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 ReplayErrorSqlResp:
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
+ 'object_type': 'str',
21
+ 'abnormal_sql': 'str',
22
+ 'abnormal_info': 'str'
23
+ }
24
+
25
+ attribute_map = {
26
+ 'object_type': 'object_type',
27
+ 'abnormal_sql': 'abnormal_sql',
28
+ 'abnormal_info': 'abnormal_info'
29
+ }
30
+
31
+ def __init__(self, object_type=None, abnormal_sql=None, abnormal_info=None):
32
+ """ReplayErrorSqlResp
33
+
34
+ The model defined in huaweicloud sdk
35
+
36
+ :param object_type: SQL类型
37
+ :type object_type: str
38
+ :param abnormal_sql: SQL语句
39
+ :type abnormal_sql: str
40
+ :param abnormal_info: 异常原因描述
41
+ :type abnormal_info: str
42
+ """
43
+
44
+
45
+
46
+ self._object_type = None
47
+ self._abnormal_sql = None
48
+ self._abnormal_info = None
49
+ self.discriminator = None
50
+
51
+ if object_type is not None:
52
+ self.object_type = object_type
53
+ if abnormal_sql is not None:
54
+ self.abnormal_sql = abnormal_sql
55
+ if abnormal_info is not None:
56
+ self.abnormal_info = abnormal_info
57
+
58
+ @property
59
+ def object_type(self):
60
+ """Gets the object_type of this ReplayErrorSqlResp.
61
+
62
+ SQL类型
63
+
64
+ :return: The object_type of this ReplayErrorSqlResp.
65
+ :rtype: str
66
+ """
67
+ return self._object_type
68
+
69
+ @object_type.setter
70
+ def object_type(self, object_type):
71
+ """Sets the object_type of this ReplayErrorSqlResp.
72
+
73
+ SQL类型
74
+
75
+ :param object_type: The object_type of this ReplayErrorSqlResp.
76
+ :type object_type: str
77
+ """
78
+ self._object_type = object_type
79
+
80
+ @property
81
+ def abnormal_sql(self):
82
+ """Gets the abnormal_sql of this ReplayErrorSqlResp.
83
+
84
+ SQL语句
85
+
86
+ :return: The abnormal_sql of this ReplayErrorSqlResp.
87
+ :rtype: str
88
+ """
89
+ return self._abnormal_sql
90
+
91
+ @abnormal_sql.setter
92
+ def abnormal_sql(self, abnormal_sql):
93
+ """Sets the abnormal_sql of this ReplayErrorSqlResp.
94
+
95
+ SQL语句
96
+
97
+ :param abnormal_sql: The abnormal_sql of this ReplayErrorSqlResp.
98
+ :type abnormal_sql: str
99
+ """
100
+ self._abnormal_sql = abnormal_sql
101
+
102
+ @property
103
+ def abnormal_info(self):
104
+ """Gets the abnormal_info of this ReplayErrorSqlResp.
105
+
106
+ 异常原因描述
107
+
108
+ :return: The abnormal_info of this ReplayErrorSqlResp.
109
+ :rtype: str
110
+ """
111
+ return self._abnormal_info
112
+
113
+ @abnormal_info.setter
114
+ def abnormal_info(self, abnormal_info):
115
+ """Sets the abnormal_info of this ReplayErrorSqlResp.
116
+
117
+ 异常原因描述
118
+
119
+ :param abnormal_info: The abnormal_info of this ReplayErrorSqlResp.
120
+ :type abnormal_info: str
121
+ """
122
+ self._abnormal_info = abnormal_info
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, ReplayErrorSqlResp):
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,260 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class ReplayErrorSqlTemplateResp:
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
+ 'sql_template': 'str',
21
+ 'target_name': 'str',
22
+ 'schema_name': 'str',
23
+ 'query_type': 'str',
24
+ 'target_type': 'str',
25
+ 'count': 'int'
26
+ }
27
+
28
+ attribute_map = {
29
+ 'sql_template': 'sql_template',
30
+ 'target_name': 'target_name',
31
+ 'schema_name': 'schema_name',
32
+ 'query_type': 'query_type',
33
+ 'target_type': 'target_type',
34
+ 'count': 'count'
35
+ }
36
+
37
+ def __init__(self, sql_template=None, target_name=None, schema_name=None, query_type=None, target_type=None, count=None):
38
+ """ReplayErrorSqlTemplateResp
39
+
40
+ The model defined in huaweicloud sdk
41
+
42
+ :param sql_template: SQL模板
43
+ :type sql_template: str
44
+ :param target_name: 目标库昵称
45
+ :type target_name: str
46
+ :param schema_name: schema名称
47
+ :type schema_name: str
48
+ :param query_type: SQL类型
49
+ :type query_type: str
50
+ :param target_type: 目标库类型
51
+ :type target_type: str
52
+ :param count: 归类的SQL数量
53
+ :type count: int
54
+ """
55
+
56
+
57
+
58
+ self._sql_template = None
59
+ self._target_name = None
60
+ self._schema_name = None
61
+ self._query_type = None
62
+ self._target_type = None
63
+ self._count = None
64
+ self.discriminator = None
65
+
66
+ if sql_template is not None:
67
+ self.sql_template = sql_template
68
+ if target_name is not None:
69
+ self.target_name = target_name
70
+ if schema_name is not None:
71
+ self.schema_name = schema_name
72
+ if query_type is not None:
73
+ self.query_type = query_type
74
+ if target_type is not None:
75
+ self.target_type = target_type
76
+ if count is not None:
77
+ self.count = count
78
+
79
+ @property
80
+ def sql_template(self):
81
+ """Gets the sql_template of this ReplayErrorSqlTemplateResp.
82
+
83
+ SQL模板
84
+
85
+ :return: The sql_template of this ReplayErrorSqlTemplateResp.
86
+ :rtype: str
87
+ """
88
+ return self._sql_template
89
+
90
+ @sql_template.setter
91
+ def sql_template(self, sql_template):
92
+ """Sets the sql_template of this ReplayErrorSqlTemplateResp.
93
+
94
+ SQL模板
95
+
96
+ :param sql_template: The sql_template of this ReplayErrorSqlTemplateResp.
97
+ :type sql_template: str
98
+ """
99
+ self._sql_template = sql_template
100
+
101
+ @property
102
+ def target_name(self):
103
+ """Gets the target_name of this ReplayErrorSqlTemplateResp.
104
+
105
+ 目标库昵称
106
+
107
+ :return: The target_name of this ReplayErrorSqlTemplateResp.
108
+ :rtype: str
109
+ """
110
+ return self._target_name
111
+
112
+ @target_name.setter
113
+ def target_name(self, target_name):
114
+ """Sets the target_name of this ReplayErrorSqlTemplateResp.
115
+
116
+ 目标库昵称
117
+
118
+ :param target_name: The target_name of this ReplayErrorSqlTemplateResp.
119
+ :type target_name: str
120
+ """
121
+ self._target_name = target_name
122
+
123
+ @property
124
+ def schema_name(self):
125
+ """Gets the schema_name of this ReplayErrorSqlTemplateResp.
126
+
127
+ schema名称
128
+
129
+ :return: The schema_name of this ReplayErrorSqlTemplateResp.
130
+ :rtype: str
131
+ """
132
+ return self._schema_name
133
+
134
+ @schema_name.setter
135
+ def schema_name(self, schema_name):
136
+ """Sets the schema_name of this ReplayErrorSqlTemplateResp.
137
+
138
+ schema名称
139
+
140
+ :param schema_name: The schema_name of this ReplayErrorSqlTemplateResp.
141
+ :type schema_name: str
142
+ """
143
+ self._schema_name = schema_name
144
+
145
+ @property
146
+ def query_type(self):
147
+ """Gets the query_type of this ReplayErrorSqlTemplateResp.
148
+
149
+ SQL类型
150
+
151
+ :return: The query_type of this ReplayErrorSqlTemplateResp.
152
+ :rtype: str
153
+ """
154
+ return self._query_type
155
+
156
+ @query_type.setter
157
+ def query_type(self, query_type):
158
+ """Sets the query_type of this ReplayErrorSqlTemplateResp.
159
+
160
+ SQL类型
161
+
162
+ :param query_type: The query_type of this ReplayErrorSqlTemplateResp.
163
+ :type query_type: str
164
+ """
165
+ self._query_type = query_type
166
+
167
+ @property
168
+ def target_type(self):
169
+ """Gets the target_type of this ReplayErrorSqlTemplateResp.
170
+
171
+ 目标库类型
172
+
173
+ :return: The target_type of this ReplayErrorSqlTemplateResp.
174
+ :rtype: str
175
+ """
176
+ return self._target_type
177
+
178
+ @target_type.setter
179
+ def target_type(self, target_type):
180
+ """Sets the target_type of this ReplayErrorSqlTemplateResp.
181
+
182
+ 目标库类型
183
+
184
+ :param target_type: The target_type of this ReplayErrorSqlTemplateResp.
185
+ :type target_type: str
186
+ """
187
+ self._target_type = target_type
188
+
189
+ @property
190
+ def count(self):
191
+ """Gets the count of this ReplayErrorSqlTemplateResp.
192
+
193
+ 归类的SQL数量
194
+
195
+ :return: The count of this ReplayErrorSqlTemplateResp.
196
+ :rtype: int
197
+ """
198
+ return self._count
199
+
200
+ @count.setter
201
+ def count(self, count):
202
+ """Sets the count of this ReplayErrorSqlTemplateResp.
203
+
204
+ 归类的SQL数量
205
+
206
+ :param count: The count of this ReplayErrorSqlTemplateResp.
207
+ :type count: int
208
+ """
209
+ self._count = count
210
+
211
+ def to_dict(self):
212
+ """Returns the model properties as a dict"""
213
+ result = {}
214
+
215
+ for attr, _ in six.iteritems(self.openapi_types):
216
+ value = getattr(self, attr)
217
+ if isinstance(value, list):
218
+ result[attr] = list(map(
219
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
220
+ value
221
+ ))
222
+ elif hasattr(value, "to_dict"):
223
+ result[attr] = value.to_dict()
224
+ elif isinstance(value, dict):
225
+ result[attr] = dict(map(
226
+ lambda item: (item[0], item[1].to_dict())
227
+ if hasattr(item[1], "to_dict") else item,
228
+ value.items()
229
+ ))
230
+ else:
231
+ if attr in self.sensitive_list:
232
+ result[attr] = "****"
233
+ else:
234
+ result[attr] = value
235
+
236
+ return result
237
+
238
+ def to_str(self):
239
+ """Returns the string representation of the model"""
240
+ import simplejson as json
241
+ if six.PY2:
242
+ import sys
243
+ reload(sys)
244
+ sys.setdefaultencoding("utf-8")
245
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
246
+
247
+ def __repr__(self):
248
+ """For `print`"""
249
+ return self.to_str()
250
+
251
+ def __eq__(self, other):
252
+ """Returns true if both objects are equal"""
253
+ if not isinstance(other, ReplayErrorSqlTemplateResp):
254
+ return False
255
+
256
+ return self.__dict__ == other.__dict__
257
+
258
+ def __ne__(self, other):
259
+ """Returns true if both objects are not equal"""
260
+ return not self == other