huaweicloudsdkdrs 3.1.86__py2.py3-none-any.whl → 3.1.132__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 (181) hide show
  1. huaweicloudsdkdrs/v3/__init__.py +43 -0
  2. huaweicloudsdkdrs/v3/drs_async_client.py +1087 -65
  3. huaweicloudsdkdrs/v3/drs_client.py +1087 -65
  4. huaweicloudsdkdrs/v3/model/__init__.py +43 -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/batch_job_action_req.py +3 -3
  8. huaweicloudsdkdrs/v3/model/compare_job_content_detail_info.py +202 -0
  9. huaweicloudsdkdrs/v3/model/compare_job_info.py +376 -0
  10. huaweicloudsdkdrs/v3/model/create_compare_result_file_request.py +196 -0
  11. huaweicloudsdkdrs/v3/model/create_compare_result_file_response.py +116 -0
  12. huaweicloudsdkdrs/v3/model/create_data_compare_database_object.py +115 -0
  13. huaweicloudsdkdrs/v3/model/create_data_compare_transformation_info.py +142 -0
  14. huaweicloudsdkdrs/v3/model/create_data_level_table_compare_job_req.py +346 -0
  15. huaweicloudsdkdrs/v3/model/create_data_level_table_compare_job_request.py +168 -0
  16. huaweicloudsdkdrs/v3/model/create_data_level_table_compare_job_response.py +116 -0
  17. huaweicloudsdkdrs/v3/model/create_job_req.py +41 -12
  18. huaweicloudsdkdrs/v3/model/create_object_compare_job_req.py +115 -0
  19. huaweicloudsdkdrs/v3/model/create_object_level_compare_job_request.py +168 -0
  20. huaweicloudsdkdrs/v3/model/create_object_level_compare_job_response.py +116 -0
  21. huaweicloudsdkdrs/v3/model/data_compare_overview_info.py +173 -0
  22. huaweicloudsdkdrs/v3/model/delete_compare_job_request.py +171 -0
  23. huaweicloudsdkdrs/v3/model/delete_compare_job_response.py +116 -0
  24. huaweicloudsdkdrs/v3/model/download_compare_result_file_request.py +255 -0
  25. huaweicloudsdkdrs/v3/model/download_compare_result_file_response.py +85 -0
  26. huaweicloudsdkdrs/v3/model/endpoint.py +28 -3
  27. huaweicloudsdkdrs/v3/model/export_compare_result_req.py +172 -0
  28. huaweicloudsdkdrs/v3/model/kafka_security.py +290 -29
  29. huaweicloudsdkdrs/v3/model/list_content_compare_detail_request.py +316 -0
  30. huaweicloudsdkdrs/v3/model/list_content_compare_detail_response.py +145 -0
  31. huaweicloudsdkdrs/v3/model/list_content_compare_difference_request.py +287 -0
  32. huaweicloudsdkdrs/v3/model/list_content_compare_difference_response.py +232 -0
  33. huaweicloudsdkdrs/v3/model/list_content_compare_overview_request.py +229 -0
  34. huaweicloudsdkdrs/v3/model/list_content_compare_overview_response.py +145 -0
  35. huaweicloudsdkdrs/v3/model/list_data_compare_detail_request.py +374 -0
  36. huaweicloudsdkdrs/v3/model/list_data_compare_detail_response.py +145 -0
  37. huaweicloudsdkdrs/v3/model/list_data_compare_overview_request.py +258 -0
  38. huaweicloudsdkdrs/v3/model/list_data_compare_overview_response.py +145 -0
  39. huaweicloudsdkdrs/v3/model/list_data_level_table_compare_jobs_request.py +201 -0
  40. huaweicloudsdkdrs/v3/model/list_data_level_table_compare_jobs_response.py +145 -0
  41. huaweicloudsdkdrs/v3/model/list_obeject_level_compare_detail_request.py +258 -0
  42. huaweicloudsdkdrs/v3/model/list_obeject_level_compare_detail_response.py +145 -0
  43. huaweicloudsdkdrs/v3/model/list_obeject_level_compare_overview_request.py +143 -0
  44. huaweicloudsdkdrs/v3/model/list_obeject_level_compare_overview_response.py +319 -0
  45. huaweicloudsdkdrs/v3/model/modify_job_req.py +3 -3
  46. huaweicloudsdkdrs/v3/model/node_content_compare_detail_result.py +405 -0
  47. huaweicloudsdkdrs/v3/model/node_content_compare_overview_result.py +173 -0
  48. huaweicloudsdkdrs/v3/model/objects_compare_detail_info.py +260 -0
  49. huaweicloudsdkdrs/v3/model/objects_compare_overview_info.py +202 -0
  50. huaweicloudsdkdrs/v3/model/query_job_resp.py +51 -22
  51. huaweicloudsdkdrs/v3/model/query_jobs_req.py +3 -3
  52. huaweicloudsdkdrs/v3/model/start_promptly_data_level_table_compare_job_request.py +171 -0
  53. huaweicloudsdkdrs/v3/model/start_promptly_data_level_table_compare_job_response.py +116 -0
  54. huaweicloudsdkdrs/v3/model/table_line_compare_result_info.py +289 -0
  55. huaweicloudsdkdrs/v3/region/drs_region.py +15 -0
  56. huaweicloudsdkdrs/v5/__init__.py +79 -1
  57. huaweicloudsdkdrs/v5/drs_async_client.py +2408 -750
  58. huaweicloudsdkdrs/v5/drs_client.py +2408 -750
  59. huaweicloudsdkdrs/v5/model/__init__.py +79 -1
  60. huaweicloudsdkdrs/v5/model/action_params.py +57 -3
  61. huaweicloudsdkdrs/v5/model/action_req.py +3 -3
  62. huaweicloudsdkdrs/v5/model/agency_role.py +144 -0
  63. huaweicloudsdkdrs/v5/model/backup_file_info.py +201 -0
  64. huaweicloudsdkdrs/v5/model/backup_file_resp.py +173 -0
  65. huaweicloudsdkdrs/v5/model/backup_info.py +171 -0
  66. huaweicloudsdkdrs/v5/model/backup_info_resp.py +173 -0
  67. huaweicloudsdkdrs/v5/model/backup_job_base_info.py +229 -0
  68. huaweicloudsdkdrs/v5/model/backup_job_endpoint_info.py +172 -0
  69. huaweicloudsdkdrs/v5/model/backup_restore_option_info.py +315 -0
  70. huaweicloudsdkdrs/v5/model/base_endpoint.py +3 -3
  71. huaweicloudsdkdrs/v5/model/change_to_period_request.py +168 -0
  72. huaweicloudsdkdrs/v5/model/change_to_period_response.py +116 -0
  73. huaweicloudsdkdrs/v5/model/check_data_filter_response.py +3 -3
  74. huaweicloudsdkdrs/v5/model/children_job_list_resp.py +3 -3
  75. huaweicloudsdkdrs/v5/model/clean_alarms_request.py +171 -0
  76. huaweicloudsdkdrs/v5/model/clean_alarms_response.py +116 -0
  77. huaweicloudsdkdrs/v5/model/collect_columns_response.py +3 -3
  78. huaweicloudsdkdrs/v5/model/collect_db_objects_async_response.py +3 -3
  79. huaweicloudsdkdrs/v5/model/collect_db_objects_info_response.py +3 -3
  80. huaweicloudsdkdrs/v5/model/collect_position_async_response.py +3 -3
  81. huaweicloudsdkdrs/v5/model/compare_job_info.py +65 -7
  82. huaweicloudsdkdrs/v5/model/compare_result_info.py +28 -3
  83. huaweicloudsdkdrs/v5/model/compare_task_params.py +32 -3
  84. huaweicloudsdkdrs/v5/model/connection_config.py +115 -0
  85. huaweicloudsdkdrs/v5/model/connection_resp.py +355 -0
  86. huaweicloudsdkdrs/v5/model/content_compare_overview_info.py +3 -3
  87. huaweicloudsdkdrs/v5/model/content_diff_detail_info.py +231 -0
  88. huaweicloudsdkdrs/v5/model/content_diff_detail_vo.py +202 -0
  89. huaweicloudsdkdrs/v5/model/create_connection_req.py +324 -0
  90. huaweicloudsdkdrs/v5/model/create_connection_request.py +140 -0
  91. huaweicloudsdkdrs/v5/model/create_connection_response.py +361 -0
  92. huaweicloudsdkdrs/v5/model/create_job_response.py +139 -19
  93. huaweicloudsdkdrs/v5/model/create_offline_task_req.py +182 -0
  94. huaweicloudsdkdrs/v5/model/create_replication_job_request.py +140 -0
  95. huaweicloudsdkdrs/v5/model/create_replication_job_response.py +116 -0
  96. huaweicloudsdkdrs/v5/model/data_process_info.py +32 -3
  97. huaweicloudsdkdrs/v5/model/db_object_filtering_result.py +148 -3
  98. huaweicloudsdkdrs/v5/model/ddl_alarm_resp.py +311 -0
  99. huaweicloudsdkdrs/v5/model/delete_connection_request.py +143 -0
  100. huaweicloudsdkdrs/v5/model/delete_connection_response.py +116 -0
  101. huaweicloudsdkdrs/v5/model/delete_replication_job_request.py +143 -0
  102. huaweicloudsdkdrs/v5/model/delete_replication_job_response.py +116 -0
  103. huaweicloudsdkdrs/v5/model/delete_user_driver_req.py +142 -0
  104. huaweicloudsdkdrs/v5/model/delete_user_jdbc_driver_request.py +140 -0
  105. huaweicloudsdkdrs/v5/model/delete_user_jdbc_driver_response.py +116 -0
  106. huaweicloudsdkdrs/v5/model/download_db_object_template_request.py +3 -3
  107. huaweicloudsdkdrs/v5/model/health_compare_job.py +9 -9
  108. huaweicloudsdkdrs/v5/model/job_base_info.py +35 -6
  109. huaweicloudsdkdrs/v5/model/job_detail_resp.py +35 -6
  110. huaweicloudsdkdrs/v5/model/job_endpoint_info.py +3 -3
  111. huaweicloudsdkdrs/v5/model/job_list_resp.py +3 -3
  112. huaweicloudsdkdrs/v5/model/list_connections_request.py +492 -0
  113. huaweicloudsdkdrs/v5/model/list_connections_response.py +145 -0
  114. huaweicloudsdkdrs/v5/model/list_job_ddls_request.py +288 -0
  115. huaweicloudsdkdrs/v5/model/list_job_ddls_response.py +145 -0
  116. huaweicloudsdkdrs/v5/model/list_replication_jobs_request.py +463 -0
  117. huaweicloudsdkdrs/v5/model/list_replication_jobs_response.py +145 -0
  118. huaweicloudsdkdrs/v5/model/list_user_jdbc_drivers_request.py +201 -0
  119. huaweicloudsdkdrs/v5/model/list_user_jdbc_drivers_response.py +145 -0
  120. huaweicloudsdkdrs/v5/model/lists_agency_permissions_request.py +201 -0
  121. huaweicloudsdkdrs/v5/model/lists_agency_permissions_response.py +145 -0
  122. huaweicloudsdkdrs/v5/model/modify_compare_policy_req.py +288 -0
  123. huaweicloudsdkdrs/v5/model/modify_connection_request.py +168 -0
  124. huaweicloudsdkdrs/v5/model/modify_connection_response.py +116 -0
  125. huaweicloudsdkdrs/v5/model/modify_offline_task_req.py +143 -0
  126. huaweicloudsdkdrs/v5/model/objects_health_compare_overview_info.py +202 -0
  127. huaweicloudsdkdrs/v5/model/offline_task_info.py +342 -0
  128. huaweicloudsdkdrs/v5/model/policy_config.py +32 -3
  129. huaweicloudsdkdrs/v5/model/replay_config_info.py +282 -0
  130. huaweicloudsdkdrs/v5/model/replay_error_classification.py +201 -0
  131. huaweicloudsdkdrs/v5/model/replay_error_sql_resp.py +173 -0
  132. huaweicloudsdkdrs/v5/model/replay_error_sql_template_resp.py +289 -0
  133. huaweicloudsdkdrs/v5/model/replay_shard_statics_resp.py +226 -0
  134. huaweicloudsdkdrs/v5/model/replay_slow_sql_resp.py +202 -0
  135. huaweicloudsdkdrs/v5/model/replay_slow_sql_template_resp.py +402 -0
  136. huaweicloudsdkdrs/v5/model/replaying_sql_resp.py +318 -0
  137. huaweicloudsdkdrs/v5/model/resource_tag.py +3 -3
  138. huaweicloudsdkdrs/v5/model/show_agency_info_request.py +143 -0
  139. huaweicloudsdkdrs/v5/model/show_agency_info_response.py +174 -0
  140. huaweicloudsdkdrs/v5/model/show_compare_policy_response.py +3 -3
  141. huaweicloudsdkdrs/v5/model/show_data_processing_rules_result_response.py +3 -3
  142. huaweicloudsdkdrs/v5/model/show_db_object_template_progress_request.py +32 -3
  143. huaweicloudsdkdrs/v5/model/show_db_object_template_result_request.py +32 -3
  144. huaweicloudsdkdrs/v5/model/show_health_compare_job_detail_request.py +171 -0
  145. huaweicloudsdkdrs/v5/model/show_health_compare_job_detail_response.py +261 -0
  146. huaweicloudsdkdrs/v5/model/show_health_object_compare_job_overview_request.py +171 -0
  147. huaweicloudsdkdrs/v5/model/show_health_object_compare_job_overview_response.py +116 -0
  148. huaweicloudsdkdrs/v5/model/show_job_detail_request.py +3 -3
  149. huaweicloudsdkdrs/v5/model/show_position_result_response.py +32 -3
  150. huaweicloudsdkdrs/v5/model/show_replay_results_request.py +461 -0
  151. huaweicloudsdkdrs/v5/model/show_replay_results_response.py +319 -0
  152. huaweicloudsdkdrs/v5/model/show_replication_job_request.py +143 -0
  153. huaweicloudsdkdrs/v5/model/show_replication_job_response.py +390 -0
  154. huaweicloudsdkdrs/v5/model/show_support_object_type_response.py +32 -3
  155. huaweicloudsdkdrs/v5/model/show_update_object_saving_status_response.py +3 -3
  156. huaweicloudsdkdrs/v5/model/sync_user_jdbc_driver_request.py +168 -0
  157. huaweicloudsdkdrs/v5/model/sync_user_jdbc_driver_response.py +116 -0
  158. huaweicloudsdkdrs/v5/model/to_period_req.py +198 -0
  159. huaweicloudsdkdrs/v5/model/update_agency_policy_request.py +168 -0
  160. huaweicloudsdkdrs/v5/model/update_agency_policy_request_body.py +142 -0
  161. huaweicloudsdkdrs/v5/model/update_agency_policy_response.py +116 -0
  162. huaweicloudsdkdrs/v5/model/update_compare_policy_request.py +168 -0
  163. huaweicloudsdkdrs/v5/model/update_compare_policy_response.py +116 -0
  164. huaweicloudsdkdrs/v5/model/update_connection_req.py +327 -0
  165. huaweicloudsdkdrs/v5/model/update_data_progress_response.py +3 -3
  166. huaweicloudsdkdrs/v5/model/update_job_req.py +3 -3
  167. huaweicloudsdkdrs/v5/model/update_replication_job_request.py +168 -0
  168. huaweicloudsdkdrs/v5/model/update_replication_job_response.py +116 -0
  169. huaweicloudsdkdrs/v5/model/update_user_driver_req.py +142 -0
  170. huaweicloudsdkdrs/v5/model/upload_db_object_template_request.py +3 -3
  171. huaweicloudsdkdrs/v5/model/upload_jdbc_driver_request_body.py +3 -3
  172. huaweicloudsdkdrs/v5/model/upload_user_jdbc_driver_request.py +168 -0
  173. huaweicloudsdkdrs/v5/model/upload_user_jdbc_driver_request_body.py +114 -0
  174. huaweicloudsdkdrs/v5/model/upload_user_jdbc_driver_response.py +116 -0
  175. huaweicloudsdkdrs/v5/region/drs_region.py +15 -0
  176. {huaweicloudsdkdrs-3.1.86.dist-info → huaweicloudsdkdrs-3.1.132.dist-info}/METADATA +2 -2
  177. {huaweicloudsdkdrs-3.1.86.dist-info → huaweicloudsdkdrs-3.1.132.dist-info}/RECORD +180 -59
  178. {huaweicloudsdkdrs-3.1.86.dist-info → huaweicloudsdkdrs-3.1.132.dist-info}/WHEEL +1 -1
  179. huaweicloudsdkdrs/v5/model/create_job_resp.py +0 -227
  180. {huaweicloudsdkdrs-3.1.86.dist-info → huaweicloudsdkdrs-3.1.132.dist-info}/LICENSE +0 -0
  181. {huaweicloudsdkdrs-3.1.86.dist-info → huaweicloudsdkdrs-3.1.132.dist-info}/top_level.txt +0 -0
@@ -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,289 @@
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
+ 'sql_template_md5': 'str',
22
+ 'target_name': 'str',
23
+ 'schema_name': 'str',
24
+ 'query_type': 'str',
25
+ 'target_type': 'str',
26
+ 'count': 'int'
27
+ }
28
+
29
+ attribute_map = {
30
+ 'sql_template': 'sql_template',
31
+ 'sql_template_md5': 'sql_template_md5',
32
+ 'target_name': 'target_name',
33
+ 'schema_name': 'schema_name',
34
+ 'query_type': 'query_type',
35
+ 'target_type': 'target_type',
36
+ 'count': 'count'
37
+ }
38
+
39
+ def __init__(self, sql_template=None, sql_template_md5=None, target_name=None, schema_name=None, query_type=None, target_type=None, count=None):
40
+ """ReplayErrorSqlTemplateResp
41
+
42
+ The model defined in huaweicloud sdk
43
+
44
+ :param sql_template: SQL模板
45
+ :type sql_template: str
46
+ :param sql_template_md5: SQL模板MD5
47
+ :type sql_template_md5: str
48
+ :param target_name: 目标库昵称
49
+ :type target_name: str
50
+ :param schema_name: schema名称
51
+ :type schema_name: str
52
+ :param query_type: SQL类型
53
+ :type query_type: str
54
+ :param target_type: 目标库类型
55
+ :type target_type: str
56
+ :param count: 归类的SQL数量
57
+ :type count: int
58
+ """
59
+
60
+
61
+
62
+ self._sql_template = None
63
+ self._sql_template_md5 = None
64
+ self._target_name = None
65
+ self._schema_name = None
66
+ self._query_type = None
67
+ self._target_type = None
68
+ self._count = None
69
+ self.discriminator = None
70
+
71
+ if sql_template is not None:
72
+ self.sql_template = sql_template
73
+ if sql_template_md5 is not None:
74
+ self.sql_template_md5 = sql_template_md5
75
+ if target_name is not None:
76
+ self.target_name = target_name
77
+ if schema_name is not None:
78
+ self.schema_name = schema_name
79
+ if query_type is not None:
80
+ self.query_type = query_type
81
+ if target_type is not None:
82
+ self.target_type = target_type
83
+ if count is not None:
84
+ self.count = count
85
+
86
+ @property
87
+ def sql_template(self):
88
+ """Gets the sql_template of this ReplayErrorSqlTemplateResp.
89
+
90
+ SQL模板
91
+
92
+ :return: The sql_template of this ReplayErrorSqlTemplateResp.
93
+ :rtype: str
94
+ """
95
+ return self._sql_template
96
+
97
+ @sql_template.setter
98
+ def sql_template(self, sql_template):
99
+ """Sets the sql_template of this ReplayErrorSqlTemplateResp.
100
+
101
+ SQL模板
102
+
103
+ :param sql_template: The sql_template of this ReplayErrorSqlTemplateResp.
104
+ :type sql_template: str
105
+ """
106
+ self._sql_template = sql_template
107
+
108
+ @property
109
+ def sql_template_md5(self):
110
+ """Gets the sql_template_md5 of this ReplayErrorSqlTemplateResp.
111
+
112
+ SQL模板MD5
113
+
114
+ :return: The sql_template_md5 of this ReplayErrorSqlTemplateResp.
115
+ :rtype: str
116
+ """
117
+ return self._sql_template_md5
118
+
119
+ @sql_template_md5.setter
120
+ def sql_template_md5(self, sql_template_md5):
121
+ """Sets the sql_template_md5 of this ReplayErrorSqlTemplateResp.
122
+
123
+ SQL模板MD5
124
+
125
+ :param sql_template_md5: The sql_template_md5 of this ReplayErrorSqlTemplateResp.
126
+ :type sql_template_md5: str
127
+ """
128
+ self._sql_template_md5 = sql_template_md5
129
+
130
+ @property
131
+ def target_name(self):
132
+ """Gets the target_name of this ReplayErrorSqlTemplateResp.
133
+
134
+ 目标库昵称
135
+
136
+ :return: The target_name of this ReplayErrorSqlTemplateResp.
137
+ :rtype: str
138
+ """
139
+ return self._target_name
140
+
141
+ @target_name.setter
142
+ def target_name(self, target_name):
143
+ """Sets the target_name of this ReplayErrorSqlTemplateResp.
144
+
145
+ 目标库昵称
146
+
147
+ :param target_name: The target_name of this ReplayErrorSqlTemplateResp.
148
+ :type target_name: str
149
+ """
150
+ self._target_name = target_name
151
+
152
+ @property
153
+ def schema_name(self):
154
+ """Gets the schema_name of this ReplayErrorSqlTemplateResp.
155
+
156
+ schema名称
157
+
158
+ :return: The schema_name of this ReplayErrorSqlTemplateResp.
159
+ :rtype: str
160
+ """
161
+ return self._schema_name
162
+
163
+ @schema_name.setter
164
+ def schema_name(self, schema_name):
165
+ """Sets the schema_name of this ReplayErrorSqlTemplateResp.
166
+
167
+ schema名称
168
+
169
+ :param schema_name: The schema_name of this ReplayErrorSqlTemplateResp.
170
+ :type schema_name: str
171
+ """
172
+ self._schema_name = schema_name
173
+
174
+ @property
175
+ def query_type(self):
176
+ """Gets the query_type of this ReplayErrorSqlTemplateResp.
177
+
178
+ SQL类型
179
+
180
+ :return: The query_type of this ReplayErrorSqlTemplateResp.
181
+ :rtype: str
182
+ """
183
+ return self._query_type
184
+
185
+ @query_type.setter
186
+ def query_type(self, query_type):
187
+ """Sets the query_type of this ReplayErrorSqlTemplateResp.
188
+
189
+ SQL类型
190
+
191
+ :param query_type: The query_type of this ReplayErrorSqlTemplateResp.
192
+ :type query_type: str
193
+ """
194
+ self._query_type = query_type
195
+
196
+ @property
197
+ def target_type(self):
198
+ """Gets the target_type of this ReplayErrorSqlTemplateResp.
199
+
200
+ 目标库类型
201
+
202
+ :return: The target_type of this ReplayErrorSqlTemplateResp.
203
+ :rtype: str
204
+ """
205
+ return self._target_type
206
+
207
+ @target_type.setter
208
+ def target_type(self, target_type):
209
+ """Sets the target_type of this ReplayErrorSqlTemplateResp.
210
+
211
+ 目标库类型
212
+
213
+ :param target_type: The target_type of this ReplayErrorSqlTemplateResp.
214
+ :type target_type: str
215
+ """
216
+ self._target_type = target_type
217
+
218
+ @property
219
+ def count(self):
220
+ """Gets the count of this ReplayErrorSqlTemplateResp.
221
+
222
+ 归类的SQL数量
223
+
224
+ :return: The count of this ReplayErrorSqlTemplateResp.
225
+ :rtype: int
226
+ """
227
+ return self._count
228
+
229
+ @count.setter
230
+ def count(self, count):
231
+ """Sets the count of this ReplayErrorSqlTemplateResp.
232
+
233
+ 归类的SQL数量
234
+
235
+ :param count: The count of this ReplayErrorSqlTemplateResp.
236
+ :type count: int
237
+ """
238
+ self._count = count
239
+
240
+ def to_dict(self):
241
+ """Returns the model properties as a dict"""
242
+ result = {}
243
+
244
+ for attr, _ in six.iteritems(self.openapi_types):
245
+ value = getattr(self, attr)
246
+ if isinstance(value, list):
247
+ result[attr] = list(map(
248
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
249
+ value
250
+ ))
251
+ elif hasattr(value, "to_dict"):
252
+ result[attr] = value.to_dict()
253
+ elif isinstance(value, dict):
254
+ result[attr] = dict(map(
255
+ lambda item: (item[0], item[1].to_dict())
256
+ if hasattr(item[1], "to_dict") else item,
257
+ value.items()
258
+ ))
259
+ else:
260
+ if attr in self.sensitive_list:
261
+ result[attr] = "****"
262
+ else:
263
+ result[attr] = value
264
+
265
+ return result
266
+
267
+ def to_str(self):
268
+ """Returns the string representation of the model"""
269
+ import simplejson as json
270
+ if six.PY2:
271
+ import sys
272
+ reload(sys)
273
+ sys.setdefaultencoding("utf-8")
274
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
275
+
276
+ def __repr__(self):
277
+ """For `print`"""
278
+ return self.to_str()
279
+
280
+ def __eq__(self, other):
281
+ """Returns true if both objects are equal"""
282
+ if not isinstance(other, ReplayErrorSqlTemplateResp):
283
+ return False
284
+
285
+ return self.__dict__ == other.__dict__
286
+
287
+ def __ne__(self, other):
288
+ """Returns true if both objects are not equal"""
289
+ return not self == other
@@ -0,0 +1,226 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class ReplayShardStaticsResp:
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
+ 'time': 'str',
21
+ 'total': 'int',
22
+ 'finish': 'int',
23
+ 'abnormal': 'int',
24
+ 'slow': 'int'
25
+ }
26
+
27
+ attribute_map = {
28
+ 'time': 'time',
29
+ 'total': 'total',
30
+ 'finish': 'finish',
31
+ 'abnormal': 'abnormal',
32
+ 'slow': 'slow'
33
+ }
34
+
35
+ def __init__(self, time=None, total=None, finish=None, abnormal=None, slow=None):
36
+ """ReplayShardStaticsResp
37
+
38
+ The model defined in huaweicloud sdk
39
+
40
+ :param time: 回放时间点
41
+ :type time: str
42
+ :param total: SQL总量
43
+ :type total: int
44
+ :param finish: SQL执行量
45
+ :type finish: int
46
+ :param abnormal: SQL异常量
47
+ :type abnormal: int
48
+ :param slow: 慢SQL数量
49
+ :type slow: int
50
+ """
51
+
52
+
53
+
54
+ self._time = None
55
+ self._total = None
56
+ self._finish = None
57
+ self._abnormal = None
58
+ self._slow = None
59
+ self.discriminator = None
60
+
61
+ self.time = time
62
+ self.total = total
63
+ self.finish = finish
64
+ self.abnormal = abnormal
65
+ self.slow = slow
66
+
67
+ @property
68
+ def time(self):
69
+ """Gets the time of this ReplayShardStaticsResp.
70
+
71
+ 回放时间点
72
+
73
+ :return: The time of this ReplayShardStaticsResp.
74
+ :rtype: str
75
+ """
76
+ return self._time
77
+
78
+ @time.setter
79
+ def time(self, time):
80
+ """Sets the time of this ReplayShardStaticsResp.
81
+
82
+ 回放时间点
83
+
84
+ :param time: The time of this ReplayShardStaticsResp.
85
+ :type time: str
86
+ """
87
+ self._time = time
88
+
89
+ @property
90
+ def total(self):
91
+ """Gets the total of this ReplayShardStaticsResp.
92
+
93
+ SQL总量
94
+
95
+ :return: The total of this ReplayShardStaticsResp.
96
+ :rtype: int
97
+ """
98
+ return self._total
99
+
100
+ @total.setter
101
+ def total(self, total):
102
+ """Sets the total of this ReplayShardStaticsResp.
103
+
104
+ SQL总量
105
+
106
+ :param total: The total of this ReplayShardStaticsResp.
107
+ :type total: int
108
+ """
109
+ self._total = total
110
+
111
+ @property
112
+ def finish(self):
113
+ """Gets the finish of this ReplayShardStaticsResp.
114
+
115
+ SQL执行量
116
+
117
+ :return: The finish of this ReplayShardStaticsResp.
118
+ :rtype: int
119
+ """
120
+ return self._finish
121
+
122
+ @finish.setter
123
+ def finish(self, finish):
124
+ """Sets the finish of this ReplayShardStaticsResp.
125
+
126
+ SQL执行量
127
+
128
+ :param finish: The finish of this ReplayShardStaticsResp.
129
+ :type finish: int
130
+ """
131
+ self._finish = finish
132
+
133
+ @property
134
+ def abnormal(self):
135
+ """Gets the abnormal of this ReplayShardStaticsResp.
136
+
137
+ SQL异常量
138
+
139
+ :return: The abnormal of this ReplayShardStaticsResp.
140
+ :rtype: int
141
+ """
142
+ return self._abnormal
143
+
144
+ @abnormal.setter
145
+ def abnormal(self, abnormal):
146
+ """Sets the abnormal of this ReplayShardStaticsResp.
147
+
148
+ SQL异常量
149
+
150
+ :param abnormal: The abnormal of this ReplayShardStaticsResp.
151
+ :type abnormal: int
152
+ """
153
+ self._abnormal = abnormal
154
+
155
+ @property
156
+ def slow(self):
157
+ """Gets the slow of this ReplayShardStaticsResp.
158
+
159
+ 慢SQL数量
160
+
161
+ :return: The slow of this ReplayShardStaticsResp.
162
+ :rtype: int
163
+ """
164
+ return self._slow
165
+
166
+ @slow.setter
167
+ def slow(self, slow):
168
+ """Sets the slow of this ReplayShardStaticsResp.
169
+
170
+ 慢SQL数量
171
+
172
+ :param slow: The slow of this ReplayShardStaticsResp.
173
+ :type slow: int
174
+ """
175
+ self._slow = slow
176
+
177
+ def to_dict(self):
178
+ """Returns the model properties as a dict"""
179
+ result = {}
180
+
181
+ for attr, _ in six.iteritems(self.openapi_types):
182
+ value = getattr(self, attr)
183
+ if isinstance(value, list):
184
+ result[attr] = list(map(
185
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
186
+ value
187
+ ))
188
+ elif hasattr(value, "to_dict"):
189
+ result[attr] = value.to_dict()
190
+ elif isinstance(value, dict):
191
+ result[attr] = dict(map(
192
+ lambda item: (item[0], item[1].to_dict())
193
+ if hasattr(item[1], "to_dict") else item,
194
+ value.items()
195
+ ))
196
+ else:
197
+ if attr in self.sensitive_list:
198
+ result[attr] = "****"
199
+ else:
200
+ result[attr] = value
201
+
202
+ return result
203
+
204
+ def to_str(self):
205
+ """Returns the string representation of the model"""
206
+ import simplejson as json
207
+ if six.PY2:
208
+ import sys
209
+ reload(sys)
210
+ sys.setdefaultencoding("utf-8")
211
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
212
+
213
+ def __repr__(self):
214
+ """For `print`"""
215
+ return self.to_str()
216
+
217
+ def __eq__(self, other):
218
+ """Returns true if both objects are equal"""
219
+ if not isinstance(other, ReplayShardStaticsResp):
220
+ return False
221
+
222
+ return self.__dict__ == other.__dict__
223
+
224
+ def __ne__(self, other):
225
+ """Returns true if both objects are not equal"""
226
+ return not self == other