huaweicloudsdkdrs 3.1.85__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.
- huaweicloudsdkdrs/v3/__init__.py +48 -0
- huaweicloudsdkdrs/v3/drs_async_client.py +1140 -43
- huaweicloudsdkdrs/v3/drs_client.py +1140 -43
- huaweicloudsdkdrs/v3/model/__init__.py +48 -0
- huaweicloudsdkdrs/v3/model/add_data_transformation_req.py +138 -0
- huaweicloudsdkdrs/v3/model/api_http_null_resp.py +84 -0
- huaweicloudsdkdrs/v3/model/batch_job_action_req.py +9 -9
- huaweicloudsdkdrs/v3/model/compare_job_content_detail_info.py +202 -0
- huaweicloudsdkdrs/v3/model/compare_job_info.py +376 -0
- huaweicloudsdkdrs/v3/model/create_compare_result_file_request.py +196 -0
- huaweicloudsdkdrs/v3/model/create_compare_result_file_response.py +116 -0
- huaweicloudsdkdrs/v3/model/create_data_compare_database_object.py +115 -0
- huaweicloudsdkdrs/v3/model/create_data_compare_transformation_info.py +142 -0
- huaweicloudsdkdrs/v3/model/create_data_level_table_compare_job_req.py +346 -0
- huaweicloudsdkdrs/v3/model/create_data_level_table_compare_job_request.py +168 -0
- huaweicloudsdkdrs/v3/model/create_data_level_table_compare_job_response.py +116 -0
- huaweicloudsdkdrs/v3/model/create_job_req.py +67 -9
- huaweicloudsdkdrs/v3/model/create_object_compare_job_req.py +115 -0
- huaweicloudsdkdrs/v3/model/create_object_level_compare_job_request.py +168 -0
- huaweicloudsdkdrs/v3/model/create_object_level_compare_job_response.py +116 -0
- huaweicloudsdkdrs/v3/model/data_compare_overview_info.py +173 -0
- huaweicloudsdkdrs/v3/model/delete_compare_job_request.py +171 -0
- huaweicloudsdkdrs/v3/model/delete_compare_job_response.py +116 -0
- huaweicloudsdkdrs/v3/model/download_compare_result_file_request.py +255 -0
- huaweicloudsdkdrs/v3/model/download_compare_result_file_response.py +85 -0
- huaweicloudsdkdrs/v3/model/endpoint.py +28 -3
- huaweicloudsdkdrs/v3/model/export_compare_result_req.py +172 -0
- huaweicloudsdkdrs/v3/model/failed_to_bind_eip_child_info.py +144 -0
- huaweicloudsdkdrs/v3/model/kafka_security.py +290 -29
- huaweicloudsdkdrs/v3/model/list_available_node_types_request.py +257 -0
- huaweicloudsdkdrs/v3/model/list_available_node_types_response.py +116 -0
- huaweicloudsdkdrs/v3/model/list_content_compare_detail_request.py +316 -0
- huaweicloudsdkdrs/v3/model/list_content_compare_detail_response.py +145 -0
- huaweicloudsdkdrs/v3/model/list_content_compare_difference_request.py +287 -0
- huaweicloudsdkdrs/v3/model/list_content_compare_difference_response.py +232 -0
- huaweicloudsdkdrs/v3/model/list_content_compare_overview_request.py +229 -0
- huaweicloudsdkdrs/v3/model/list_content_compare_overview_response.py +145 -0
- huaweicloudsdkdrs/v3/model/list_data_compare_detail_request.py +374 -0
- huaweicloudsdkdrs/v3/model/list_data_compare_detail_response.py +145 -0
- huaweicloudsdkdrs/v3/model/list_data_compare_overview_request.py +258 -0
- huaweicloudsdkdrs/v3/model/list_data_compare_overview_response.py +145 -0
- huaweicloudsdkdrs/v3/model/list_data_level_table_compare_jobs_request.py +201 -0
- huaweicloudsdkdrs/v3/model/list_data_level_table_compare_jobs_response.py +145 -0
- huaweicloudsdkdrs/v3/model/list_obeject_level_compare_detail_request.py +258 -0
- huaweicloudsdkdrs/v3/model/list_obeject_level_compare_detail_response.py +145 -0
- huaweicloudsdkdrs/v3/model/list_obeject_level_compare_overview_request.py +143 -0
- huaweicloudsdkdrs/v3/model/list_obeject_level_compare_overview_response.py +319 -0
- huaweicloudsdkdrs/v3/model/modify_job_req.py +3 -3
- huaweicloudsdkdrs/v3/model/node_content_compare_detail_result.py +405 -0
- huaweicloudsdkdrs/v3/model/node_content_compare_overview_result.py +173 -0
- huaweicloudsdkdrs/v3/model/objects_compare_detail_info.py +260 -0
- huaweicloudsdkdrs/v3/model/objects_compare_overview_info.py +202 -0
- huaweicloudsdkdrs/v3/model/public_ip_config.py +170 -0
- huaweicloudsdkdrs/v3/model/query_job_resp.py +129 -13
- huaweicloudsdkdrs/v3/model/query_jobs_req.py +3 -3
- huaweicloudsdkdrs/v3/model/query_support_node_type_bean.py +144 -0
- huaweicloudsdkdrs/v3/model/start_promptly_data_level_table_compare_job_request.py +171 -0
- huaweicloudsdkdrs/v3/model/start_promptly_data_level_table_compare_job_response.py +116 -0
- huaweicloudsdkdrs/v3/model/sync_policy_req.py +32 -3
- huaweicloudsdkdrs/v3/model/table_line_compare_result_info.py +289 -0
- huaweicloudsdkdrs/v3/region/drs_region.py +15 -0
- huaweicloudsdkdrs/v5/__init__.py +81 -1
- huaweicloudsdkdrs/v5/drs_async_client.py +2408 -750
- huaweicloudsdkdrs/v5/drs_client.py +2408 -750
- huaweicloudsdkdrs/v5/model/__init__.py +81 -1
- huaweicloudsdkdrs/v5/model/action_params.py +82 -3
- huaweicloudsdkdrs/v5/model/action_req.py +3 -3
- huaweicloudsdkdrs/v5/model/agency_role.py +144 -0
- huaweicloudsdkdrs/v5/model/async_create_job_req.py +32 -3
- huaweicloudsdkdrs/v5/model/backup_file_info.py +201 -0
- huaweicloudsdkdrs/v5/model/backup_file_resp.py +173 -0
- huaweicloudsdkdrs/v5/model/backup_info.py +171 -0
- huaweicloudsdkdrs/v5/model/backup_info_resp.py +173 -0
- huaweicloudsdkdrs/v5/model/backup_job_base_info.py +229 -0
- huaweicloudsdkdrs/v5/model/backup_job_endpoint_info.py +172 -0
- huaweicloudsdkdrs/v5/model/backup_restore_option_info.py +315 -0
- huaweicloudsdkdrs/v5/model/base_endpoint.py +6 -6
- huaweicloudsdkdrs/v5/model/change_to_period_request.py +168 -0
- huaweicloudsdkdrs/v5/model/change_to_period_response.py +116 -0
- huaweicloudsdkdrs/v5/model/check_data_filter_response.py +35 -6
- huaweicloudsdkdrs/v5/model/children_job_list_resp.py +3 -3
- huaweicloudsdkdrs/v5/model/clean_alarms_request.py +171 -0
- huaweicloudsdkdrs/v5/model/clean_alarms_response.py +116 -0
- huaweicloudsdkdrs/v5/model/collect_columns_response.py +35 -6
- huaweicloudsdkdrs/v5/model/collect_db_objects_async_response.py +35 -6
- huaweicloudsdkdrs/v5/model/collect_db_objects_info_response.py +35 -6
- huaweicloudsdkdrs/v5/model/collect_position_async_response.py +35 -6
- huaweicloudsdkdrs/v5/model/compare_job_info.py +65 -7
- huaweicloudsdkdrs/v5/model/compare_result_info.py +28 -3
- huaweicloudsdkdrs/v5/model/compare_task_params.py +32 -3
- huaweicloudsdkdrs/v5/model/connection_config.py +115 -0
- huaweicloudsdkdrs/v5/model/connection_resp.py +355 -0
- huaweicloudsdkdrs/v5/model/content_compare_overview_info.py +3 -3
- huaweicloudsdkdrs/v5/model/content_diff_detail_info.py +231 -0
- huaweicloudsdkdrs/v5/model/content_diff_detail_vo.py +202 -0
- huaweicloudsdkdrs/v5/model/create_connection_req.py +324 -0
- huaweicloudsdkdrs/v5/model/create_connection_request.py +140 -0
- huaweicloudsdkdrs/v5/model/create_connection_response.py +361 -0
- huaweicloudsdkdrs/v5/model/create_job_req.py +32 -3
- huaweicloudsdkdrs/v5/model/create_job_response.py +139 -19
- huaweicloudsdkdrs/v5/model/create_offline_task_req.py +182 -0
- huaweicloudsdkdrs/v5/model/create_replication_job_request.py +140 -0
- huaweicloudsdkdrs/v5/model/create_replication_job_response.py +116 -0
- huaweicloudsdkdrs/v5/model/data_process_info.py +32 -3
- huaweicloudsdkdrs/v5/model/db_object_filtering_result.py +148 -3
- huaweicloudsdkdrs/v5/model/ddl_alarm_resp.py +311 -0
- huaweicloudsdkdrs/v5/model/delete_connection_request.py +143 -0
- huaweicloudsdkdrs/v5/model/delete_connection_response.py +116 -0
- huaweicloudsdkdrs/v5/model/delete_replication_job_request.py +143 -0
- huaweicloudsdkdrs/v5/model/delete_replication_job_response.py +116 -0
- huaweicloudsdkdrs/v5/model/delete_user_driver_req.py +142 -0
- huaweicloudsdkdrs/v5/model/delete_user_jdbc_driver_request.py +140 -0
- huaweicloudsdkdrs/v5/model/delete_user_jdbc_driver_response.py +116 -0
- huaweicloudsdkdrs/v5/model/download_db_object_template_request.py +3 -3
- huaweicloudsdkdrs/v5/model/failed_to_bind_eip_child_info.py +144 -0
- huaweicloudsdkdrs/v5/model/health_compare_job.py +9 -9
- huaweicloudsdkdrs/v5/model/job_base_info.py +35 -6
- huaweicloudsdkdrs/v5/model/job_detail_resp.py +122 -6
- huaweicloudsdkdrs/v5/model/job_endpoint_info.py +3 -3
- huaweicloudsdkdrs/v5/model/job_list_resp.py +3 -3
- huaweicloudsdkdrs/v5/model/job_node_vpc_info.py +3 -3
- huaweicloudsdkdrs/v5/model/list_connections_request.py +492 -0
- huaweicloudsdkdrs/v5/model/list_connections_response.py +145 -0
- huaweicloudsdkdrs/v5/model/list_job_ddls_request.py +288 -0
- huaweicloudsdkdrs/v5/model/list_job_ddls_response.py +145 -0
- huaweicloudsdkdrs/v5/model/list_replication_jobs_request.py +463 -0
- huaweicloudsdkdrs/v5/model/list_replication_jobs_response.py +145 -0
- huaweicloudsdkdrs/v5/model/list_user_jdbc_drivers_request.py +201 -0
- huaweicloudsdkdrs/v5/model/list_user_jdbc_drivers_response.py +145 -0
- huaweicloudsdkdrs/v5/model/lists_agency_permissions_request.py +201 -0
- huaweicloudsdkdrs/v5/model/lists_agency_permissions_response.py +145 -0
- huaweicloudsdkdrs/v5/model/modify_compare_policy_req.py +288 -0
- huaweicloudsdkdrs/v5/model/modify_connection_request.py +168 -0
- huaweicloudsdkdrs/v5/model/modify_connection_response.py +116 -0
- huaweicloudsdkdrs/v5/model/modify_offline_task_req.py +143 -0
- huaweicloudsdkdrs/v5/model/objects_health_compare_overview_info.py +202 -0
- huaweicloudsdkdrs/v5/model/offline_task_info.py +342 -0
- huaweicloudsdkdrs/v5/model/policy_config.py +32 -3
- huaweicloudsdkdrs/v5/model/public_ip_config.py +170 -0
- huaweicloudsdkdrs/v5/model/replay_config_info.py +282 -0
- huaweicloudsdkdrs/v5/model/replay_error_classification.py +201 -0
- huaweicloudsdkdrs/v5/model/replay_error_sql_resp.py +173 -0
- huaweicloudsdkdrs/v5/model/replay_error_sql_template_resp.py +289 -0
- huaweicloudsdkdrs/v5/model/replay_shard_statics_resp.py +226 -0
- huaweicloudsdkdrs/v5/model/replay_slow_sql_resp.py +202 -0
- huaweicloudsdkdrs/v5/model/replay_slow_sql_template_resp.py +402 -0
- huaweicloudsdkdrs/v5/model/replaying_sql_resp.py +318 -0
- huaweicloudsdkdrs/v5/model/resource_tag.py +3 -3
- huaweicloudsdkdrs/v5/model/show_agency_info_request.py +143 -0
- huaweicloudsdkdrs/v5/model/show_agency_info_response.py +174 -0
- huaweicloudsdkdrs/v5/model/show_compare_policy_response.py +3 -3
- huaweicloudsdkdrs/v5/model/show_data_processing_rules_result_response.py +35 -6
- huaweicloudsdkdrs/v5/model/show_db_object_template_progress_request.py +32 -3
- huaweicloudsdkdrs/v5/model/show_db_object_template_result_request.py +32 -3
- huaweicloudsdkdrs/v5/model/show_health_compare_job_detail_request.py +171 -0
- huaweicloudsdkdrs/v5/model/show_health_compare_job_detail_response.py +261 -0
- huaweicloudsdkdrs/v5/model/show_health_object_compare_job_overview_request.py +171 -0
- huaweicloudsdkdrs/v5/model/show_health_object_compare_job_overview_response.py +116 -0
- huaweicloudsdkdrs/v5/model/show_job_detail_request.py +3 -3
- huaweicloudsdkdrs/v5/model/show_position_result_response.py +32 -3
- huaweicloudsdkdrs/v5/model/show_replay_results_request.py +461 -0
- huaweicloudsdkdrs/v5/model/show_replay_results_response.py +319 -0
- huaweicloudsdkdrs/v5/model/show_replication_job_request.py +143 -0
- huaweicloudsdkdrs/v5/model/show_replication_job_response.py +390 -0
- huaweicloudsdkdrs/v5/model/show_support_object_type_response.py +32 -3
- huaweicloudsdkdrs/v5/model/show_update_object_saving_status_response.py +35 -6
- huaweicloudsdkdrs/v5/model/sync_user_jdbc_driver_request.py +168 -0
- huaweicloudsdkdrs/v5/model/sync_user_jdbc_driver_response.py +116 -0
- huaweicloudsdkdrs/v5/model/to_period_req.py +198 -0
- huaweicloudsdkdrs/v5/model/update_agency_policy_request.py +168 -0
- huaweicloudsdkdrs/v5/model/update_agency_policy_request_body.py +142 -0
- huaweicloudsdkdrs/v5/model/update_agency_policy_response.py +116 -0
- huaweicloudsdkdrs/v5/model/update_compare_policy_request.py +168 -0
- huaweicloudsdkdrs/v5/model/update_compare_policy_response.py +116 -0
- huaweicloudsdkdrs/v5/model/update_connection_req.py +327 -0
- huaweicloudsdkdrs/v5/model/update_data_progress_response.py +35 -6
- huaweicloudsdkdrs/v5/model/update_job_req.py +3 -3
- huaweicloudsdkdrs/v5/model/update_replication_job_request.py +168 -0
- huaweicloudsdkdrs/v5/model/update_replication_job_response.py +116 -0
- huaweicloudsdkdrs/v5/model/update_user_driver_req.py +142 -0
- huaweicloudsdkdrs/v5/model/upload_db_object_template_request.py +3 -3
- huaweicloudsdkdrs/v5/model/upload_jdbc_driver_request_body.py +3 -3
- huaweicloudsdkdrs/v5/model/upload_user_jdbc_driver_request.py +168 -0
- huaweicloudsdkdrs/v5/model/upload_user_jdbc_driver_request_body.py +114 -0
- huaweicloudsdkdrs/v5/model/upload_user_jdbc_driver_response.py +116 -0
- huaweicloudsdkdrs/v5/region/drs_region.py +15 -0
- {huaweicloudsdkdrs-3.1.85.dist-info → huaweicloudsdkdrs-3.1.132.dist-info}/METADATA +2 -2
- {huaweicloudsdkdrs-3.1.85.dist-info → huaweicloudsdkdrs-3.1.132.dist-info}/RECORD +191 -63
- {huaweicloudsdkdrs-3.1.85.dist-info → huaweicloudsdkdrs-3.1.132.dist-info}/WHEEL +1 -1
- huaweicloudsdkdrs/v5/model/create_job_resp.py +0 -227
- {huaweicloudsdkdrs-3.1.85.dist-info → huaweicloudsdkdrs-3.1.132.dist-info}/LICENSE +0 -0
- {huaweicloudsdkdrs-3.1.85.dist-info → huaweicloudsdkdrs-3.1.132.dist-info}/top_level.txt +0 -0
@@ -42,7 +42,7 @@ class QueryJobResp:
|
|
42
42
|
'filter_ddl_policy': 'str',
|
43
43
|
'speed_limit': 'list[SpeedLimitInfo]',
|
44
44
|
'schema_type': 'str',
|
45
|
-
'node_num': '
|
45
|
+
'node_num': 'int',
|
46
46
|
'object_switch': 'bool',
|
47
47
|
'master_job_id': 'str',
|
48
48
|
'full_mode': 'str',
|
@@ -73,7 +73,11 @@ class QueryJobResp:
|
|
73
73
|
'object_infos': 'list[DatabaseObjectInfo]',
|
74
74
|
'original_job_direction': 'str',
|
75
75
|
'data_transformation': 'GetDataTransformationResp',
|
76
|
-
'tags': 'list[Tag]'
|
76
|
+
'tags': 'list[Tag]',
|
77
|
+
'public_ip_list': 'list[PublicIpConfig]',
|
78
|
+
'bind_public_ip_state': 'str',
|
79
|
+
'children': 'list[FailedToBindEipChildInfo]',
|
80
|
+
'is_open_fast_clean': 'bool'
|
77
81
|
}
|
78
82
|
|
79
83
|
attribute_map = {
|
@@ -133,10 +137,14 @@ class QueryJobResp:
|
|
133
137
|
'object_infos': 'object_infos',
|
134
138
|
'original_job_direction': 'original_job_direction',
|
135
139
|
'data_transformation': 'data_transformation',
|
136
|
-
'tags': 'tags'
|
140
|
+
'tags': 'tags',
|
141
|
+
'public_ip_list': 'public_ip_list',
|
142
|
+
'bind_public_ip_state': 'bind_public_ip_state',
|
143
|
+
'children': 'children',
|
144
|
+
'is_open_fast_clean': 'is_open_fast_clean'
|
137
145
|
}
|
138
146
|
|
139
|
-
def __init__(self, id=None, parent_id=None, name=None, status=None, description=None, create_time=None, task_type=None, source_endpoint=None, dmq_endpoint=None, source_sharding=None, target_endpoint=None, net_type=None, failed_reason=None, inst_info=None, actual_start_time=None, full_transfer_complete_time=None, update_time=None, job_direction=None, db_use_type=None, need_restart=None, is_target_readonly=None, conflict_policy=None, filter_ddl_policy=None, speed_limit=None, schema_type=None, node_num=None, object_switch=None, master_job_id=None, full_mode=None, struct_trans=None, index_trans=None, replace_definer=None, migrate_user=None, sync_database=None, error_code=None, error_message=None, target_root_db=None, az_code=None, vpc_id=None, subnet_id=None, security_group_id=None, multi_write=None, support_ip_v6=None, inherit_id=None, gtid=None, alarm_notify=None, incre_start_position=None, is_multi_az=None, az_name=None, master_az=None, slave_az=None, node_role=None, period_order=None, object_infos=None, original_job_direction=None, data_transformation=None, tags=None):
|
147
|
+
def __init__(self, id=None, parent_id=None, name=None, status=None, description=None, create_time=None, task_type=None, source_endpoint=None, dmq_endpoint=None, source_sharding=None, target_endpoint=None, net_type=None, failed_reason=None, inst_info=None, actual_start_time=None, full_transfer_complete_time=None, update_time=None, job_direction=None, db_use_type=None, need_restart=None, is_target_readonly=None, conflict_policy=None, filter_ddl_policy=None, speed_limit=None, schema_type=None, node_num=None, object_switch=None, master_job_id=None, full_mode=None, struct_trans=None, index_trans=None, replace_definer=None, migrate_user=None, sync_database=None, error_code=None, error_message=None, target_root_db=None, az_code=None, vpc_id=None, subnet_id=None, security_group_id=None, multi_write=None, support_ip_v6=None, inherit_id=None, gtid=None, alarm_notify=None, incre_start_position=None, is_multi_az=None, az_name=None, master_az=None, slave_az=None, node_role=None, period_order=None, object_infos=None, original_job_direction=None, data_transformation=None, tags=None, public_ip_list=None, bind_public_ip_state=None, children=None, is_open_fast_clean=None):
|
140
148
|
"""QueryJobResp
|
141
149
|
|
142
150
|
The model defined in huaweicloud sdk
|
@@ -191,8 +199,8 @@ class QueryJobResp:
|
|
191
199
|
:type speed_limit: list[:class:`huaweicloudsdkdrs.v3.SpeedLimitInfo`]
|
192
200
|
:param schema_type: 迁移方案 - Replication-主从复制 - Tungsten-日志解析 - PGBaseBackup-PG备份
|
193
201
|
:type schema_type: str
|
194
|
-
:param node_num: 节点个数。
|
195
|
-
:type node_num:
|
202
|
+
:param node_num: 节点个数。MongoDB数据库时对应源端分片个数,源库为集群时必填,[1-32],MySQL双主灾备时会默认设置为2。
|
203
|
+
:type node_num: int
|
196
204
|
:param object_switch: 对象选择开关
|
197
205
|
:type object_switch: bool
|
198
206
|
:param master_job_id: 主任务Id。
|
@@ -253,8 +261,16 @@ class QueryJobResp:
|
|
253
261
|
:type original_job_direction: str
|
254
262
|
:param data_transformation:
|
255
263
|
:type data_transformation: :class:`huaweicloudsdkdrs.v3.GetDataTransformationResp`
|
256
|
-
:param tags: DRS
|
264
|
+
:param tags: DRS任务标签。
|
257
265
|
:type tags: list[:class:`huaweicloudsdkdrs.v3.Tag`]
|
266
|
+
:param public_ip_list: 指定公网Ip的信息。
|
267
|
+
:type public_ip_list: list[:class:`huaweicloudsdkdrs.v3.PublicIpConfig`]
|
268
|
+
:param bind_public_ip_state: 是否成功绑定公网IP。
|
269
|
+
:type bind_public_ip_state: str
|
270
|
+
:param children: 多任务时,存在子任务绑定失败时,返回子任务的信息。
|
271
|
+
:type children: list[:class:`huaweicloudsdkdrs.v3.FailedToBindEipChildInfo`]
|
272
|
+
:param is_open_fast_clean: 是否开启云数据库RDS for MySQL/MariaDB的binlog快速清理。
|
273
|
+
:type is_open_fast_clean: bool
|
258
274
|
"""
|
259
275
|
|
260
276
|
|
@@ -316,6 +332,10 @@ class QueryJobResp:
|
|
316
332
|
self._original_job_direction = None
|
317
333
|
self._data_transformation = None
|
318
334
|
self._tags = None
|
335
|
+
self._public_ip_list = None
|
336
|
+
self._bind_public_ip_state = None
|
337
|
+
self._children = None
|
338
|
+
self._is_open_fast_clean = None
|
319
339
|
self.discriminator = None
|
320
340
|
|
321
341
|
if id is not None:
|
@@ -432,6 +452,14 @@ class QueryJobResp:
|
|
432
452
|
self.data_transformation = data_transformation
|
433
453
|
if tags is not None:
|
434
454
|
self.tags = tags
|
455
|
+
if public_ip_list is not None:
|
456
|
+
self.public_ip_list = public_ip_list
|
457
|
+
if bind_public_ip_state is not None:
|
458
|
+
self.bind_public_ip_state = bind_public_ip_state
|
459
|
+
if children is not None:
|
460
|
+
self.children = children
|
461
|
+
if is_open_fast_clean is not None:
|
462
|
+
self.is_open_fast_clean = is_open_fast_clean
|
435
463
|
|
436
464
|
@property
|
437
465
|
def id(self):
|
@@ -971,10 +999,10 @@ class QueryJobResp:
|
|
971
999
|
def node_num(self):
|
972
1000
|
"""Gets the node_num of this QueryJobResp.
|
973
1001
|
|
974
|
-
节点个数。
|
1002
|
+
节点个数。MongoDB数据库时对应源端分片个数,源库为集群时必填,[1-32],MySQL双主灾备时会默认设置为2。
|
975
1003
|
|
976
1004
|
:return: The node_num of this QueryJobResp.
|
977
|
-
:rtype:
|
1005
|
+
:rtype: int
|
978
1006
|
"""
|
979
1007
|
return self._node_num
|
980
1008
|
|
@@ -982,10 +1010,10 @@ class QueryJobResp:
|
|
982
1010
|
def node_num(self, node_num):
|
983
1011
|
"""Sets the node_num of this QueryJobResp.
|
984
1012
|
|
985
|
-
节点个数。
|
1013
|
+
节点个数。MongoDB数据库时对应源端分片个数,源库为集群时必填,[1-32],MySQL双主灾备时会默认设置为2。
|
986
1014
|
|
987
1015
|
:param node_num: The node_num of this QueryJobResp.
|
988
|
-
:type node_num:
|
1016
|
+
:type node_num: int
|
989
1017
|
"""
|
990
1018
|
self._node_num = node_num
|
991
1019
|
|
@@ -1637,7 +1665,7 @@ class QueryJobResp:
|
|
1637
1665
|
def tags(self):
|
1638
1666
|
"""Gets the tags of this QueryJobResp.
|
1639
1667
|
|
1640
|
-
DRS
|
1668
|
+
DRS任务标签。
|
1641
1669
|
|
1642
1670
|
:return: The tags of this QueryJobResp.
|
1643
1671
|
:rtype: list[:class:`huaweicloudsdkdrs.v3.Tag`]
|
@@ -1648,13 +1676,101 @@ class QueryJobResp:
|
|
1648
1676
|
def tags(self, tags):
|
1649
1677
|
"""Sets the tags of this QueryJobResp.
|
1650
1678
|
|
1651
|
-
DRS
|
1679
|
+
DRS任务标签。
|
1652
1680
|
|
1653
1681
|
:param tags: The tags of this QueryJobResp.
|
1654
1682
|
:type tags: list[:class:`huaweicloudsdkdrs.v3.Tag`]
|
1655
1683
|
"""
|
1656
1684
|
self._tags = tags
|
1657
1685
|
|
1686
|
+
@property
|
1687
|
+
def public_ip_list(self):
|
1688
|
+
"""Gets the public_ip_list of this QueryJobResp.
|
1689
|
+
|
1690
|
+
指定公网Ip的信息。
|
1691
|
+
|
1692
|
+
:return: The public_ip_list of this QueryJobResp.
|
1693
|
+
:rtype: list[:class:`huaweicloudsdkdrs.v3.PublicIpConfig`]
|
1694
|
+
"""
|
1695
|
+
return self._public_ip_list
|
1696
|
+
|
1697
|
+
@public_ip_list.setter
|
1698
|
+
def public_ip_list(self, public_ip_list):
|
1699
|
+
"""Sets the public_ip_list of this QueryJobResp.
|
1700
|
+
|
1701
|
+
指定公网Ip的信息。
|
1702
|
+
|
1703
|
+
:param public_ip_list: The public_ip_list of this QueryJobResp.
|
1704
|
+
:type public_ip_list: list[:class:`huaweicloudsdkdrs.v3.PublicIpConfig`]
|
1705
|
+
"""
|
1706
|
+
self._public_ip_list = public_ip_list
|
1707
|
+
|
1708
|
+
@property
|
1709
|
+
def bind_public_ip_state(self):
|
1710
|
+
"""Gets the bind_public_ip_state of this QueryJobResp.
|
1711
|
+
|
1712
|
+
是否成功绑定公网IP。
|
1713
|
+
|
1714
|
+
:return: The bind_public_ip_state of this QueryJobResp.
|
1715
|
+
:rtype: str
|
1716
|
+
"""
|
1717
|
+
return self._bind_public_ip_state
|
1718
|
+
|
1719
|
+
@bind_public_ip_state.setter
|
1720
|
+
def bind_public_ip_state(self, bind_public_ip_state):
|
1721
|
+
"""Sets the bind_public_ip_state of this QueryJobResp.
|
1722
|
+
|
1723
|
+
是否成功绑定公网IP。
|
1724
|
+
|
1725
|
+
:param bind_public_ip_state: The bind_public_ip_state of this QueryJobResp.
|
1726
|
+
:type bind_public_ip_state: str
|
1727
|
+
"""
|
1728
|
+
self._bind_public_ip_state = bind_public_ip_state
|
1729
|
+
|
1730
|
+
@property
|
1731
|
+
def children(self):
|
1732
|
+
"""Gets the children of this QueryJobResp.
|
1733
|
+
|
1734
|
+
多任务时,存在子任务绑定失败时,返回子任务的信息。
|
1735
|
+
|
1736
|
+
:return: The children of this QueryJobResp.
|
1737
|
+
:rtype: list[:class:`huaweicloudsdkdrs.v3.FailedToBindEipChildInfo`]
|
1738
|
+
"""
|
1739
|
+
return self._children
|
1740
|
+
|
1741
|
+
@children.setter
|
1742
|
+
def children(self, children):
|
1743
|
+
"""Sets the children of this QueryJobResp.
|
1744
|
+
|
1745
|
+
多任务时,存在子任务绑定失败时,返回子任务的信息。
|
1746
|
+
|
1747
|
+
:param children: The children of this QueryJobResp.
|
1748
|
+
:type children: list[:class:`huaweicloudsdkdrs.v3.FailedToBindEipChildInfo`]
|
1749
|
+
"""
|
1750
|
+
self._children = children
|
1751
|
+
|
1752
|
+
@property
|
1753
|
+
def is_open_fast_clean(self):
|
1754
|
+
"""Gets the is_open_fast_clean of this QueryJobResp.
|
1755
|
+
|
1756
|
+
是否开启云数据库RDS for MySQL/MariaDB的binlog快速清理。
|
1757
|
+
|
1758
|
+
:return: The is_open_fast_clean of this QueryJobResp.
|
1759
|
+
:rtype: bool
|
1760
|
+
"""
|
1761
|
+
return self._is_open_fast_clean
|
1762
|
+
|
1763
|
+
@is_open_fast_clean.setter
|
1764
|
+
def is_open_fast_clean(self, is_open_fast_clean):
|
1765
|
+
"""Sets the is_open_fast_clean of this QueryJobResp.
|
1766
|
+
|
1767
|
+
是否开启云数据库RDS for MySQL/MariaDB的binlog快速清理。
|
1768
|
+
|
1769
|
+
:param is_open_fast_clean: The is_open_fast_clean of this QueryJobResp.
|
1770
|
+
:type is_open_fast_clean: bool
|
1771
|
+
"""
|
1772
|
+
self._is_open_fast_clean = is_open_fast_clean
|
1773
|
+
|
1658
1774
|
def to_dict(self):
|
1659
1775
|
"""Returns the model properties as a dict"""
|
1660
1776
|
result = {}
|
@@ -61,7 +61,7 @@ class QueryJobsReq:
|
|
61
61
|
:type engine_type: str
|
62
62
|
:param enterprise_project_id: 企业项目
|
63
63
|
:type enterprise_project_id: str
|
64
|
-
:param name:
|
64
|
+
:param name: Name或ID。支持传入多个任务ID,逗号分隔,最多100个。
|
65
65
|
:type name: str
|
66
66
|
:param net_type: 网络类型
|
67
67
|
:type net_type: str
|
@@ -229,7 +229,7 @@ class QueryJobsReq:
|
|
229
229
|
def name(self):
|
230
230
|
"""Gets the name of this QueryJobsReq.
|
231
231
|
|
232
|
-
|
232
|
+
Name或ID。支持传入多个任务ID,逗号分隔,最多100个。
|
233
233
|
|
234
234
|
:return: The name of this QueryJobsReq.
|
235
235
|
:rtype: str
|
@@ -240,7 +240,7 @@ class QueryJobsReq:
|
|
240
240
|
def name(self, name):
|
241
241
|
"""Sets the name of this QueryJobsReq.
|
242
242
|
|
243
|
-
|
243
|
+
Name或ID。支持传入多个任务ID,逗号分隔,最多100个。
|
244
244
|
|
245
245
|
:param name: The name of this QueryJobsReq.
|
246
246
|
:type name: str
|
@@ -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 QuerySupportNodeTypeBean:
|
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
|
+
'node_type': 'str',
|
21
|
+
'is_sellout': 'bool'
|
22
|
+
}
|
23
|
+
|
24
|
+
attribute_map = {
|
25
|
+
'node_type': 'node_type',
|
26
|
+
'is_sellout': 'is_sellout'
|
27
|
+
}
|
28
|
+
|
29
|
+
def __init__(self, node_type=None, is_sellout=None):
|
30
|
+
"""QuerySupportNodeTypeBean
|
31
|
+
|
32
|
+
The model defined in huaweicloud sdk
|
33
|
+
|
34
|
+
:param node_type: 规格类型
|
35
|
+
:type node_type: str
|
36
|
+
:param is_sellout: 是否售罄
|
37
|
+
:type is_sellout: bool
|
38
|
+
"""
|
39
|
+
|
40
|
+
|
41
|
+
|
42
|
+
self._node_type = None
|
43
|
+
self._is_sellout = None
|
44
|
+
self.discriminator = None
|
45
|
+
|
46
|
+
if node_type is not None:
|
47
|
+
self.node_type = node_type
|
48
|
+
if is_sellout is not None:
|
49
|
+
self.is_sellout = is_sellout
|
50
|
+
|
51
|
+
@property
|
52
|
+
def node_type(self):
|
53
|
+
"""Gets the node_type of this QuerySupportNodeTypeBean.
|
54
|
+
|
55
|
+
规格类型
|
56
|
+
|
57
|
+
:return: The node_type of this QuerySupportNodeTypeBean.
|
58
|
+
:rtype: str
|
59
|
+
"""
|
60
|
+
return self._node_type
|
61
|
+
|
62
|
+
@node_type.setter
|
63
|
+
def node_type(self, node_type):
|
64
|
+
"""Sets the node_type of this QuerySupportNodeTypeBean.
|
65
|
+
|
66
|
+
规格类型
|
67
|
+
|
68
|
+
:param node_type: The node_type of this QuerySupportNodeTypeBean.
|
69
|
+
:type node_type: str
|
70
|
+
"""
|
71
|
+
self._node_type = node_type
|
72
|
+
|
73
|
+
@property
|
74
|
+
def is_sellout(self):
|
75
|
+
"""Gets the is_sellout of this QuerySupportNodeTypeBean.
|
76
|
+
|
77
|
+
是否售罄
|
78
|
+
|
79
|
+
:return: The is_sellout of this QuerySupportNodeTypeBean.
|
80
|
+
:rtype: bool
|
81
|
+
"""
|
82
|
+
return self._is_sellout
|
83
|
+
|
84
|
+
@is_sellout.setter
|
85
|
+
def is_sellout(self, is_sellout):
|
86
|
+
"""Sets the is_sellout of this QuerySupportNodeTypeBean.
|
87
|
+
|
88
|
+
是否售罄
|
89
|
+
|
90
|
+
:param is_sellout: The is_sellout of this QuerySupportNodeTypeBean.
|
91
|
+
:type is_sellout: bool
|
92
|
+
"""
|
93
|
+
self._is_sellout = is_sellout
|
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, QuerySupportNodeTypeBean):
|
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,171 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class StartPromptlyDataLevelTableCompareJobRequest:
|
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
|
+
"""StartPromptlyDataLevelTableCompareJobRequest
|
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 StartPromptlyDataLevelTableCompareJobRequest.
|
59
|
+
|
60
|
+
请求语言类型。
|
61
|
+
|
62
|
+
:return: The x_language of this StartPromptlyDataLevelTableCompareJobRequest.
|
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 StartPromptlyDataLevelTableCompareJobRequest.
|
70
|
+
|
71
|
+
请求语言类型。
|
72
|
+
|
73
|
+
:param x_language: The x_language of this StartPromptlyDataLevelTableCompareJobRequest.
|
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 StartPromptlyDataLevelTableCompareJobRequest.
|
81
|
+
|
82
|
+
任务ID。
|
83
|
+
|
84
|
+
:return: The job_id of this StartPromptlyDataLevelTableCompareJobRequest.
|
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 StartPromptlyDataLevelTableCompareJobRequest.
|
92
|
+
|
93
|
+
任务ID。
|
94
|
+
|
95
|
+
:param job_id: The job_id of this StartPromptlyDataLevelTableCompareJobRequest.
|
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 StartPromptlyDataLevelTableCompareJobRequest.
|
103
|
+
|
104
|
+
对比任务ID。
|
105
|
+
|
106
|
+
:return: The compare_job_id of this StartPromptlyDataLevelTableCompareJobRequest.
|
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 StartPromptlyDataLevelTableCompareJobRequest.
|
114
|
+
|
115
|
+
对比任务ID。
|
116
|
+
|
117
|
+
:param compare_job_id: The compare_job_id of this StartPromptlyDataLevelTableCompareJobRequest.
|
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, StartPromptlyDataLevelTableCompareJobRequest):
|
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,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 StartPromptlyDataLevelTableCompareJobResponse(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
|
+
'body': 'object'
|
22
|
+
}
|
23
|
+
|
24
|
+
attribute_map = {
|
25
|
+
'body': 'body'
|
26
|
+
}
|
27
|
+
|
28
|
+
def __init__(self, body=None):
|
29
|
+
"""StartPromptlyDataLevelTableCompareJobResponse
|
30
|
+
|
31
|
+
The model defined in huaweicloud sdk
|
32
|
+
|
33
|
+
:param body: 空响应体。
|
34
|
+
:type body: object
|
35
|
+
"""
|
36
|
+
|
37
|
+
super(StartPromptlyDataLevelTableCompareJobResponse, self).__init__()
|
38
|
+
|
39
|
+
self._body = None
|
40
|
+
self.discriminator = None
|
41
|
+
|
42
|
+
if body is not None:
|
43
|
+
self.body = body
|
44
|
+
|
45
|
+
@property
|
46
|
+
def body(self):
|
47
|
+
"""Gets the body of this StartPromptlyDataLevelTableCompareJobResponse.
|
48
|
+
|
49
|
+
空响应体。
|
50
|
+
|
51
|
+
:return: The body of this StartPromptlyDataLevelTableCompareJobResponse.
|
52
|
+
:rtype: object
|
53
|
+
"""
|
54
|
+
return self._body
|
55
|
+
|
56
|
+
@body.setter
|
57
|
+
def body(self, body):
|
58
|
+
"""Sets the body of this StartPromptlyDataLevelTableCompareJobResponse.
|
59
|
+
|
60
|
+
空响应体。
|
61
|
+
|
62
|
+
:param body: The body of this StartPromptlyDataLevelTableCompareJobResponse.
|
63
|
+
:type body: object
|
64
|
+
"""
|
65
|
+
self._body = body
|
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, StartPromptlyDataLevelTableCompareJobResponse):
|
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
|