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
@@ -36,7 +36,7 @@ class ShowDataProcessingRulesResultResponse(SdkResponse):
36
36
 
37
37
  :param id: 查询结果id
38
38
  :type id: str
39
- :param status: 查询状态
39
+ :param status: 查询状态 pending:处理中 failed:失败 success:成功
40
40
  :type status: str
41
41
  :param job_id: 任务ID
42
42
  :type job_id: str
@@ -82,7 +82,7 @@ class ShowDataProcessingRulesResultResponse(SdkResponse):
82
82
  def status(self):
83
83
  """Gets the status of this ShowDataProcessingRulesResultResponse.
84
84
 
85
- 查询状态
85
+ 查询状态 pending:处理中 failed:失败 success:成功
86
86
 
87
87
  :return: The status of this ShowDataProcessingRulesResultResponse.
88
88
  :rtype: str
@@ -93,7 +93,7 @@ class ShowDataProcessingRulesResultResponse(SdkResponse):
93
93
  def status(self, status):
94
94
  """Sets the status of this ShowDataProcessingRulesResultResponse.
95
95
 
96
- 查询状态
96
+ 查询状态 pending:处理中 failed:失败 success:成功
97
97
 
98
98
  :param status: The status of this ShowDataProcessingRulesResultResponse.
99
99
  :type status: str
@@ -20,17 +20,19 @@ class ShowDbObjectTemplateProgressRequest:
20
20
  'job_id': 'str',
21
21
  'x_language': 'str',
22
22
  'offset': 'int',
23
- 'limit': 'int'
23
+ 'limit': 'int',
24
+ 'type': 'str'
24
25
  }
25
26
 
26
27
  attribute_map = {
27
28
  'job_id': 'job_id',
28
29
  'x_language': 'X-Language',
29
30
  'offset': 'offset',
30
- 'limit': 'limit'
31
+ 'limit': 'limit',
32
+ 'type': 'type'
31
33
  }
32
34
 
33
- def __init__(self, job_id=None, x_language=None, offset=None, limit=None):
35
+ def __init__(self, job_id=None, x_language=None, offset=None, limit=None, type=None):
34
36
  """ShowDbObjectTemplateProgressRequest
35
37
 
36
38
  The model defined in huaweicloud sdk
@@ -43,6 +45,8 @@ class ShowDbObjectTemplateProgressRequest:
43
45
  :type offset: int
44
46
  :param limit: 查询返回记录的数量限制。
45
47
  :type limit: int
48
+ :param type: 默认为空。 - column:当进行列加工导入时,查询列加工导入进度。
49
+ :type type: str
46
50
  """
47
51
 
48
52
 
@@ -51,6 +55,7 @@ class ShowDbObjectTemplateProgressRequest:
51
55
  self._x_language = None
52
56
  self._offset = None
53
57
  self._limit = None
58
+ self._type = None
54
59
  self.discriminator = None
55
60
 
56
61
  self.job_id = job_id
@@ -60,6 +65,8 @@ class ShowDbObjectTemplateProgressRequest:
60
65
  self.offset = offset
61
66
  if limit is not None:
62
67
  self.limit = limit
68
+ if type is not None:
69
+ self.type = type
63
70
 
64
71
  @property
65
72
  def job_id(self):
@@ -149,6 +156,28 @@ class ShowDbObjectTemplateProgressRequest:
149
156
  """
150
157
  self._limit = limit
151
158
 
159
+ @property
160
+ def type(self):
161
+ """Gets the type of this ShowDbObjectTemplateProgressRequest.
162
+
163
+ 默认为空。 - column:当进行列加工导入时,查询列加工导入进度。
164
+
165
+ :return: The type of this ShowDbObjectTemplateProgressRequest.
166
+ :rtype: str
167
+ """
168
+ return self._type
169
+
170
+ @type.setter
171
+ def type(self, type):
172
+ """Sets the type of this ShowDbObjectTemplateProgressRequest.
173
+
174
+ 默认为空。 - column:当进行列加工导入时,查询列加工导入进度。
175
+
176
+ :param type: The type of this ShowDbObjectTemplateProgressRequest.
177
+ :type type: str
178
+ """
179
+ self._type = type
180
+
152
181
  def to_dict(self):
153
182
  """Returns the model properties as a dict"""
154
183
  result = {}
@@ -19,16 +19,18 @@ class ShowDbObjectTemplateResultRequest:
19
19
  openapi_types = {
20
20
  'job_id': 'str',
21
21
  'x_language': 'str',
22
- 'type': 'str'
22
+ 'type': 'str',
23
+ 'file_export_object_level': 'str'
23
24
  }
24
25
 
25
26
  attribute_map = {
26
27
  'job_id': 'job_id',
27
28
  'x_language': 'X-Language',
28
- 'type': 'type'
29
+ 'type': 'type',
30
+ 'file_export_object_level': 'file_export_object_level'
29
31
  }
30
32
 
31
- def __init__(self, job_id=None, x_language=None, type=None):
33
+ def __init__(self, job_id=None, x_language=None, type=None, file_export_object_level=None):
32
34
  """ShowDbObjectTemplateResultRequest
33
35
 
34
36
  The model defined in huaweicloud sdk
@@ -39,6 +41,8 @@ class ShowDbObjectTemplateResultRequest:
39
41
  :type x_language: str
40
42
  :param type: 导入的结果类型。取值: - detail:获取最新导入的文件与校验结果,上传后的文件若存在错误,会同时将错误原因标记在文件内。 - synchronized:获取已同步的(已下发的)对象文件结果。 - change: 获取新增和删除的对象结果(当再编辑时使用)
41
43
  :type type: str
44
+ :param file_export_object_level: 默认为空。当进行列加工导入时,查询列加工导入进度,取值column。
45
+ :type file_export_object_level: str
42
46
  """
43
47
 
44
48
 
@@ -46,12 +50,15 @@ class ShowDbObjectTemplateResultRequest:
46
50
  self._job_id = None
47
51
  self._x_language = None
48
52
  self._type = None
53
+ self._file_export_object_level = None
49
54
  self.discriminator = None
50
55
 
51
56
  self.job_id = job_id
52
57
  if x_language is not None:
53
58
  self.x_language = x_language
54
59
  self.type = type
60
+ if file_export_object_level is not None:
61
+ self.file_export_object_level = file_export_object_level
55
62
 
56
63
  @property
57
64
  def job_id(self):
@@ -119,6 +126,28 @@ class ShowDbObjectTemplateResultRequest:
119
126
  """
120
127
  self._type = type
121
128
 
129
+ @property
130
+ def file_export_object_level(self):
131
+ """Gets the file_export_object_level of this ShowDbObjectTemplateResultRequest.
132
+
133
+ 默认为空。当进行列加工导入时,查询列加工导入进度,取值column。
134
+
135
+ :return: The file_export_object_level of this ShowDbObjectTemplateResultRequest.
136
+ :rtype: str
137
+ """
138
+ return self._file_export_object_level
139
+
140
+ @file_export_object_level.setter
141
+ def file_export_object_level(self, file_export_object_level):
142
+ """Sets the file_export_object_level of this ShowDbObjectTemplateResultRequest.
143
+
144
+ 默认为空。当进行列加工导入时,查询列加工导入进度,取值column。
145
+
146
+ :param file_export_object_level: The file_export_object_level of this ShowDbObjectTemplateResultRequest.
147
+ :type file_export_object_level: str
148
+ """
149
+ self._file_export_object_level = file_export_object_level
150
+
122
151
  def to_dict(self):
123
152
  """Returns the model properties as a dict"""
124
153
  result = {}
@@ -0,0 +1,171 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class ShowHealthCompareJobDetailRequest:
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
+ 'x_language': 'str',
21
+ 'job_id': 'str',
22
+ 'compare_job_id': 'str'
23
+ }
24
+
25
+ attribute_map = {
26
+ 'x_language': 'X-Language',
27
+ 'job_id': 'job_id',
28
+ 'compare_job_id': 'compare_job_id'
29
+ }
30
+
31
+ def __init__(self, x_language=None, job_id=None, compare_job_id=None):
32
+ """ShowHealthCompareJobDetailRequest
33
+
34
+ The model defined in huaweicloud sdk
35
+
36
+ :param x_language: 请求语言类型。
37
+ :type x_language: str
38
+ :param job_id: 任务ID。
39
+ :type job_id: str
40
+ :param compare_job_id: 对比任务ID。
41
+ :type compare_job_id: str
42
+ """
43
+
44
+
45
+
46
+ self._x_language = None
47
+ self._job_id = None
48
+ self._compare_job_id = None
49
+ self.discriminator = None
50
+
51
+ if x_language is not None:
52
+ self.x_language = x_language
53
+ self.job_id = job_id
54
+ self.compare_job_id = compare_job_id
55
+
56
+ @property
57
+ def x_language(self):
58
+ """Gets the x_language of this ShowHealthCompareJobDetailRequest.
59
+
60
+ 请求语言类型。
61
+
62
+ :return: The x_language of this ShowHealthCompareJobDetailRequest.
63
+ :rtype: str
64
+ """
65
+ return self._x_language
66
+
67
+ @x_language.setter
68
+ def x_language(self, x_language):
69
+ """Sets the x_language of this ShowHealthCompareJobDetailRequest.
70
+
71
+ 请求语言类型。
72
+
73
+ :param x_language: The x_language of this ShowHealthCompareJobDetailRequest.
74
+ :type x_language: str
75
+ """
76
+ self._x_language = x_language
77
+
78
+ @property
79
+ def job_id(self):
80
+ """Gets the job_id of this ShowHealthCompareJobDetailRequest.
81
+
82
+ 任务ID。
83
+
84
+ :return: The job_id of this ShowHealthCompareJobDetailRequest.
85
+ :rtype: str
86
+ """
87
+ return self._job_id
88
+
89
+ @job_id.setter
90
+ def job_id(self, job_id):
91
+ """Sets the job_id of this ShowHealthCompareJobDetailRequest.
92
+
93
+ 任务ID。
94
+
95
+ :param job_id: The job_id of this ShowHealthCompareJobDetailRequest.
96
+ :type job_id: str
97
+ """
98
+ self._job_id = job_id
99
+
100
+ @property
101
+ def compare_job_id(self):
102
+ """Gets the compare_job_id of this ShowHealthCompareJobDetailRequest.
103
+
104
+ 对比任务ID。
105
+
106
+ :return: The compare_job_id of this ShowHealthCompareJobDetailRequest.
107
+ :rtype: str
108
+ """
109
+ return self._compare_job_id
110
+
111
+ @compare_job_id.setter
112
+ def compare_job_id(self, compare_job_id):
113
+ """Sets the compare_job_id of this ShowHealthCompareJobDetailRequest.
114
+
115
+ 对比任务ID。
116
+
117
+ :param compare_job_id: The compare_job_id of this ShowHealthCompareJobDetailRequest.
118
+ :type compare_job_id: str
119
+ """
120
+ self._compare_job_id = compare_job_id
121
+
122
+ def to_dict(self):
123
+ """Returns the model properties as a dict"""
124
+ result = {}
125
+
126
+ for attr, _ in six.iteritems(self.openapi_types):
127
+ value = getattr(self, attr)
128
+ if isinstance(value, list):
129
+ result[attr] = list(map(
130
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
131
+ value
132
+ ))
133
+ elif hasattr(value, "to_dict"):
134
+ result[attr] = value.to_dict()
135
+ elif isinstance(value, dict):
136
+ result[attr] = dict(map(
137
+ lambda item: (item[0], item[1].to_dict())
138
+ if hasattr(item[1], "to_dict") else item,
139
+ value.items()
140
+ ))
141
+ else:
142
+ if attr in self.sensitive_list:
143
+ result[attr] = "****"
144
+ else:
145
+ result[attr] = value
146
+
147
+ return result
148
+
149
+ def to_str(self):
150
+ """Returns the string representation of the model"""
151
+ import simplejson as json
152
+ if six.PY2:
153
+ import sys
154
+ reload(sys)
155
+ sys.setdefaultencoding("utf-8")
156
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
157
+
158
+ def __repr__(self):
159
+ """For `print`"""
160
+ return self.to_str()
161
+
162
+ def __eq__(self, other):
163
+ """Returns true if both objects are equal"""
164
+ if not isinstance(other, ShowHealthCompareJobDetailRequest):
165
+ return False
166
+
167
+ return self.__dict__ == other.__dict__
168
+
169
+ def __ne__(self, other):
170
+ """Returns true if both objects are not equal"""
171
+ return not self == other
@@ -0,0 +1,261 @@
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 ShowHealthCompareJobDetailResponse(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
+ 'id': 'str',
22
+ 'type': 'str',
23
+ 'start_time': 'str',
24
+ 'end_time': 'str',
25
+ 'status': 'str',
26
+ 'job_name': 'str'
27
+ }
28
+
29
+ attribute_map = {
30
+ 'id': 'id',
31
+ 'type': 'type',
32
+ 'start_time': 'start_time',
33
+ 'end_time': 'end_time',
34
+ 'status': 'status',
35
+ 'job_name': 'job_name'
36
+ }
37
+
38
+ def __init__(self, id=None, type=None, start_time=None, end_time=None, status=None, job_name=None):
39
+ """ShowHealthCompareJobDetailResponse
40
+
41
+ The model defined in huaweicloud sdk
42
+
43
+ :param id: 对比任务ID。
44
+ :type id: str
45
+ :param type: 对比类型: object_comparison:对象对比。 lines:行对比。 account:用户对比。
46
+ :type type: str
47
+ :param start_time: 开始时间,UTC时间,例如:2024-04-03T08:00:01Z。
48
+ :type start_time: str
49
+ :param end_time: 结束时间,UTC时间,例如:2024-04-03T08:00:01Z。
50
+ :type end_time: str
51
+ :param status: 对比任务的状态。取值: - RUNNING:运行中。 - WAITING_FOR_RUNNING:等待启动中。 - SUCCESSFUL:完成。 - FAILED:失败。 - CANCELLED:已取消。 - TIMEOUT_INTERRUPT:超时中断。 - FULL_DOING:全量校验中。 - INCRE_DOING:增量校验中。
52
+ :type status: str
53
+ :param job_name: 任务名称。
54
+ :type job_name: str
55
+ """
56
+
57
+ super(ShowHealthCompareJobDetailResponse, self).__init__()
58
+
59
+ self._id = None
60
+ self._type = None
61
+ self._start_time = None
62
+ self._end_time = None
63
+ self._status = None
64
+ self._job_name = None
65
+ self.discriminator = None
66
+
67
+ if id is not None:
68
+ self.id = id
69
+ if type is not None:
70
+ self.type = type
71
+ if start_time is not None:
72
+ self.start_time = start_time
73
+ if end_time is not None:
74
+ self.end_time = end_time
75
+ if status is not None:
76
+ self.status = status
77
+ if job_name is not None:
78
+ self.job_name = job_name
79
+
80
+ @property
81
+ def id(self):
82
+ """Gets the id of this ShowHealthCompareJobDetailResponse.
83
+
84
+ 对比任务ID。
85
+
86
+ :return: The id of this ShowHealthCompareJobDetailResponse.
87
+ :rtype: str
88
+ """
89
+ return self._id
90
+
91
+ @id.setter
92
+ def id(self, id):
93
+ """Sets the id of this ShowHealthCompareJobDetailResponse.
94
+
95
+ 对比任务ID。
96
+
97
+ :param id: The id of this ShowHealthCompareJobDetailResponse.
98
+ :type id: str
99
+ """
100
+ self._id = id
101
+
102
+ @property
103
+ def type(self):
104
+ """Gets the type of this ShowHealthCompareJobDetailResponse.
105
+
106
+ 对比类型: object_comparison:对象对比。 lines:行对比。 account:用户对比。
107
+
108
+ :return: The type of this ShowHealthCompareJobDetailResponse.
109
+ :rtype: str
110
+ """
111
+ return self._type
112
+
113
+ @type.setter
114
+ def type(self, type):
115
+ """Sets the type of this ShowHealthCompareJobDetailResponse.
116
+
117
+ 对比类型: object_comparison:对象对比。 lines:行对比。 account:用户对比。
118
+
119
+ :param type: The type of this ShowHealthCompareJobDetailResponse.
120
+ :type type: str
121
+ """
122
+ self._type = type
123
+
124
+ @property
125
+ def start_time(self):
126
+ """Gets the start_time of this ShowHealthCompareJobDetailResponse.
127
+
128
+ 开始时间,UTC时间,例如:2024-04-03T08:00:01Z。
129
+
130
+ :return: The start_time of this ShowHealthCompareJobDetailResponse.
131
+ :rtype: str
132
+ """
133
+ return self._start_time
134
+
135
+ @start_time.setter
136
+ def start_time(self, start_time):
137
+ """Sets the start_time of this ShowHealthCompareJobDetailResponse.
138
+
139
+ 开始时间,UTC时间,例如:2024-04-03T08:00:01Z。
140
+
141
+ :param start_time: The start_time of this ShowHealthCompareJobDetailResponse.
142
+ :type start_time: str
143
+ """
144
+ self._start_time = start_time
145
+
146
+ @property
147
+ def end_time(self):
148
+ """Gets the end_time of this ShowHealthCompareJobDetailResponse.
149
+
150
+ 结束时间,UTC时间,例如:2024-04-03T08:00:01Z。
151
+
152
+ :return: The end_time of this ShowHealthCompareJobDetailResponse.
153
+ :rtype: str
154
+ """
155
+ return self._end_time
156
+
157
+ @end_time.setter
158
+ def end_time(self, end_time):
159
+ """Sets the end_time of this ShowHealthCompareJobDetailResponse.
160
+
161
+ 结束时间,UTC时间,例如:2024-04-03T08:00:01Z。
162
+
163
+ :param end_time: The end_time of this ShowHealthCompareJobDetailResponse.
164
+ :type end_time: str
165
+ """
166
+ self._end_time = end_time
167
+
168
+ @property
169
+ def status(self):
170
+ """Gets the status of this ShowHealthCompareJobDetailResponse.
171
+
172
+ 对比任务的状态。取值: - RUNNING:运行中。 - WAITING_FOR_RUNNING:等待启动中。 - SUCCESSFUL:完成。 - FAILED:失败。 - CANCELLED:已取消。 - TIMEOUT_INTERRUPT:超时中断。 - FULL_DOING:全量校验中。 - INCRE_DOING:增量校验中。
173
+
174
+ :return: The status of this ShowHealthCompareJobDetailResponse.
175
+ :rtype: str
176
+ """
177
+ return self._status
178
+
179
+ @status.setter
180
+ def status(self, status):
181
+ """Sets the status of this ShowHealthCompareJobDetailResponse.
182
+
183
+ 对比任务的状态。取值: - RUNNING:运行中。 - WAITING_FOR_RUNNING:等待启动中。 - SUCCESSFUL:完成。 - FAILED:失败。 - CANCELLED:已取消。 - TIMEOUT_INTERRUPT:超时中断。 - FULL_DOING:全量校验中。 - INCRE_DOING:增量校验中。
184
+
185
+ :param status: The status of this ShowHealthCompareJobDetailResponse.
186
+ :type status: str
187
+ """
188
+ self._status = status
189
+
190
+ @property
191
+ def job_name(self):
192
+ """Gets the job_name of this ShowHealthCompareJobDetailResponse.
193
+
194
+ 任务名称。
195
+
196
+ :return: The job_name of this ShowHealthCompareJobDetailResponse.
197
+ :rtype: str
198
+ """
199
+ return self._job_name
200
+
201
+ @job_name.setter
202
+ def job_name(self, job_name):
203
+ """Sets the job_name of this ShowHealthCompareJobDetailResponse.
204
+
205
+ 任务名称。
206
+
207
+ :param job_name: The job_name of this ShowHealthCompareJobDetailResponse.
208
+ :type job_name: str
209
+ """
210
+ self._job_name = job_name
211
+
212
+ def to_dict(self):
213
+ """Returns the model properties as a dict"""
214
+ result = {}
215
+
216
+ for attr, _ in six.iteritems(self.openapi_types):
217
+ value = getattr(self, attr)
218
+ if isinstance(value, list):
219
+ result[attr] = list(map(
220
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
221
+ value
222
+ ))
223
+ elif hasattr(value, "to_dict"):
224
+ result[attr] = value.to_dict()
225
+ elif isinstance(value, dict):
226
+ result[attr] = dict(map(
227
+ lambda item: (item[0], item[1].to_dict())
228
+ if hasattr(item[1], "to_dict") else item,
229
+ value.items()
230
+ ))
231
+ else:
232
+ if attr in self.sensitive_list:
233
+ result[attr] = "****"
234
+ else:
235
+ result[attr] = value
236
+
237
+ return result
238
+
239
+ def to_str(self):
240
+ """Returns the string representation of the model"""
241
+ import simplejson as json
242
+ if six.PY2:
243
+ import sys
244
+ reload(sys)
245
+ sys.setdefaultencoding("utf-8")
246
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
247
+
248
+ def __repr__(self):
249
+ """For `print`"""
250
+ return self.to_str()
251
+
252
+ def __eq__(self, other):
253
+ """Returns true if both objects are equal"""
254
+ if not isinstance(other, ShowHealthCompareJobDetailResponse):
255
+ return False
256
+
257
+ return self.__dict__ == other.__dict__
258
+
259
+ def __ne__(self, other):
260
+ """Returns true if both objects are not equal"""
261
+ return not self == other