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
@@ -45,7 +45,7 @@ class JobEndpointInfo:
|
|
45
45
|
|
46
46
|
The model defined in huaweicloud sdk
|
47
47
|
|
48
|
-
:param db_type: 数据库类型。取值: - oracle:Oracle。 - gaussdbv5:GaussDB分布式版。 - redis:Redis。 - rediscluster:Redis集群版。 - gaussredis: GeminiDB Redis。
|
48
|
+
:param db_type: 数据库类型。取值: - oracle:Oracle。 - gaussdbv5:GaussDB分布式版。 - redis:Redis。 - rediscluster:Redis集群版。 - gaussredis: GeminiDB Redis。 - mysql:MySQL。
|
49
49
|
:type db_type: str
|
50
50
|
:param endpoint_type: 数据库实例类型。取值: - offline:自建数据库。 - ecs:华为云ECS自建数据库。 - cloud:华为云数据库。
|
51
51
|
:type endpoint_type: str
|
@@ -97,7 +97,7 @@ class JobEndpointInfo:
|
|
97
97
|
def db_type(self):
|
98
98
|
"""Gets the db_type of this JobEndpointInfo.
|
99
99
|
|
100
|
-
数据库类型。取值: - oracle:Oracle。 - gaussdbv5:GaussDB分布式版。 - redis:Redis。 - rediscluster:Redis集群版。 - gaussredis: GeminiDB Redis。
|
100
|
+
数据库类型。取值: - oracle:Oracle。 - gaussdbv5:GaussDB分布式版。 - redis:Redis。 - rediscluster:Redis集群版。 - gaussredis: GeminiDB Redis。 - mysql:MySQL。
|
101
101
|
|
102
102
|
:return: The db_type of this JobEndpointInfo.
|
103
103
|
:rtype: str
|
@@ -108,7 +108,7 @@ class JobEndpointInfo:
|
|
108
108
|
def db_type(self, db_type):
|
109
109
|
"""Sets the db_type of this JobEndpointInfo.
|
110
110
|
|
111
|
-
数据库类型。取值: - oracle:Oracle。 - gaussdbv5:GaussDB分布式版。 - redis:Redis。 - rediscluster:Redis集群版。 - gaussredis: GeminiDB Redis。
|
111
|
+
数据库类型。取值: - oracle:Oracle。 - gaussdbv5:GaussDB分布式版。 - redis:Redis。 - rediscluster:Redis集群版。 - gaussredis: GeminiDB Redis。 - mysql:MySQL。
|
112
112
|
|
113
113
|
:param db_type: The db_type of this JobEndpointInfo.
|
114
114
|
:type db_type: str
|
@@ -71,7 +71,7 @@ class JobListResp:
|
|
71
71
|
:type id: str
|
72
72
|
:param name: 任务名称。
|
73
73
|
:type name: str
|
74
|
-
:param status: 任务状态。取值: - CREATING:创建中。 - CREATE_FAILED:创建失败。 - CONFIGURATION:配置中。 - STARTJOBING:启动中。 - WAITING_FOR_START:等待启动中。 - START_JOB_FAILED:任务启动失败。 - FULL_TRANSFER_STARTED
|
74
|
+
:param status: 任务状态。取值: - CREATING:创建中。 - CREATE_FAILED:创建失败。 - CONFIGURATION:配置中。 - STARTJOBING:启动中。 - WAITING_FOR_START:等待启动中。 - START_JOB_FAILED:任务启动失败。 - FULL_TRANSFER_STARTED:全量迁移中,灾备场景为初始化。 - FULL_TRANSFER_FAILED:全量迁移失败,灾备场景为初始化失败。 - FULL_TRANSFER_COMPLETE:全量迁移完成,灾备场景为初始化完成。 - INCRE_TRANSFER_STARTED:增量迁移中,灾备场景为灾备中。 - INCRE_TRANSFER_FAILED:增量迁移失败,灾备场景为灾备异常。 - RELEASE_RESOURCE_STARTED:结束任务中。 - RELEASE_RESOURCE_FAILED:结束任务失败。 - RELEASE_RESOURCE_COMPLETE:已结束。 - CHANGE_JOB_STARTED:任务变更中。 - CHANGE_JOB_FAILED:任务变更失败。 - CHILD_TRANSFER_STARTING:子任务启动中。 - CHILD_TRANSFER_STARTED:子任务迁移中。 - CHILD_TRANSFER_COMPLETE:子任务迁移完成。 - CHILD_TRANSFER_FAILED:子任务迁移失败。 - RELEASE_CHILD_TRANSFER_STARTED:子任务结束中。 - RELEASE_CHILD_TRANSFER_COMPLETE:子任务已结束。
|
75
75
|
:type status: str
|
76
76
|
:param description: 任务描述。
|
77
77
|
:type description: str
|
@@ -203,7 +203,7 @@ class JobListResp:
|
|
203
203
|
def status(self):
|
204
204
|
"""Gets the status of this JobListResp.
|
205
205
|
|
206
|
-
任务状态。取值: - CREATING:创建中。 - CREATE_FAILED:创建失败。 - CONFIGURATION:配置中。 - STARTJOBING:启动中。 - WAITING_FOR_START:等待启动中。 - START_JOB_FAILED:任务启动失败。 - FULL_TRANSFER_STARTED
|
206
|
+
任务状态。取值: - CREATING:创建中。 - CREATE_FAILED:创建失败。 - CONFIGURATION:配置中。 - STARTJOBING:启动中。 - WAITING_FOR_START:等待启动中。 - START_JOB_FAILED:任务启动失败。 - FULL_TRANSFER_STARTED:全量迁移中,灾备场景为初始化。 - FULL_TRANSFER_FAILED:全量迁移失败,灾备场景为初始化失败。 - FULL_TRANSFER_COMPLETE:全量迁移完成,灾备场景为初始化完成。 - INCRE_TRANSFER_STARTED:增量迁移中,灾备场景为灾备中。 - INCRE_TRANSFER_FAILED:增量迁移失败,灾备场景为灾备异常。 - RELEASE_RESOURCE_STARTED:结束任务中。 - RELEASE_RESOURCE_FAILED:结束任务失败。 - RELEASE_RESOURCE_COMPLETE:已结束。 - CHANGE_JOB_STARTED:任务变更中。 - CHANGE_JOB_FAILED:任务变更失败。 - CHILD_TRANSFER_STARTING:子任务启动中。 - CHILD_TRANSFER_STARTED:子任务迁移中。 - CHILD_TRANSFER_COMPLETE:子任务迁移完成。 - CHILD_TRANSFER_FAILED:子任务迁移失败。 - RELEASE_CHILD_TRANSFER_STARTED:子任务结束中。 - RELEASE_CHILD_TRANSFER_COMPLETE:子任务已结束。
|
207
207
|
|
208
208
|
:return: The status of this JobListResp.
|
209
209
|
:rtype: str
|
@@ -214,7 +214,7 @@ class JobListResp:
|
|
214
214
|
def status(self, status):
|
215
215
|
"""Sets the status of this JobListResp.
|
216
216
|
|
217
|
-
任务状态。取值: - CREATING:创建中。 - CREATE_FAILED:创建失败。 - CONFIGURATION:配置中。 - STARTJOBING:启动中。 - WAITING_FOR_START:等待启动中。 - START_JOB_FAILED:任务启动失败。 - FULL_TRANSFER_STARTED
|
217
|
+
任务状态。取值: - CREATING:创建中。 - CREATE_FAILED:创建失败。 - CONFIGURATION:配置中。 - STARTJOBING:启动中。 - WAITING_FOR_START:等待启动中。 - START_JOB_FAILED:任务启动失败。 - FULL_TRANSFER_STARTED:全量迁移中,灾备场景为初始化。 - FULL_TRANSFER_FAILED:全量迁移失败,灾备场景为初始化失败。 - FULL_TRANSFER_COMPLETE:全量迁移完成,灾备场景为初始化完成。 - INCRE_TRANSFER_STARTED:增量迁移中,灾备场景为灾备中。 - INCRE_TRANSFER_FAILED:增量迁移失败,灾备场景为灾备异常。 - RELEASE_RESOURCE_STARTED:结束任务中。 - RELEASE_RESOURCE_FAILED:结束任务失败。 - RELEASE_RESOURCE_COMPLETE:已结束。 - CHANGE_JOB_STARTED:任务变更中。 - CHANGE_JOB_FAILED:任务变更失败。 - CHILD_TRANSFER_STARTING:子任务启动中。 - CHILD_TRANSFER_STARTED:子任务迁移中。 - CHILD_TRANSFER_COMPLETE:子任务迁移完成。 - CHILD_TRANSFER_FAILED:子任务迁移失败。 - RELEASE_CHILD_TRANSFER_STARTED:子任务结束中。 - RELEASE_CHILD_TRANSFER_COMPLETE:子任务已结束。
|
218
218
|
|
219
219
|
:param status: The status of this JobListResp.
|
220
220
|
:type status: str
|
@@ -39,7 +39,7 @@ class JobNodeVpcInfo:
|
|
39
39
|
:type vpc_id: str
|
40
40
|
:param subnet_id: 任务实例所在子网ID。
|
41
41
|
:type subnet_id: str
|
42
|
-
:param custom_node_ip: 指定创建任务实例IP地址,多个IP端口之间请用“,”英文逗号分隔,目前仅支持设置IPv4地址,获取方法如下: - 方法1:登录虚拟私有云服务的控制台界面,单击VPC下的子网,进入子网详情页面,查找子网的网段,选择未被占用的IP 。 - 方法2:通过虚拟私有云服务的API接口查询,具体操作可参考查询私有IP列表,选择“device_owner”为空的私有IP。
|
42
|
+
:param custom_node_ip: 指定创建任务实例IP地址,多个IP端口之间请用“,”英文逗号分隔,目前仅支持设置IPv4地址,获取方法如下: - 方法1:登录虚拟私有云服务的控制台界面,单击VPC下的子网,进入子网详情页面,查找子网的网段,选择未被占用的IP 。 - 方法2:通过虚拟私有云服务的API接口查询,具体操作可参考查询私有IP列表,选择“device_owner”为空的私有IP。
|
43
43
|
:type custom_node_ip: str
|
44
44
|
:param security_group_id: 任务实例所在的安全组ID。
|
45
45
|
:type security_group_id: str
|
@@ -108,7 +108,7 @@ class JobNodeVpcInfo:
|
|
108
108
|
def custom_node_ip(self):
|
109
109
|
"""Gets the custom_node_ip of this JobNodeVpcInfo.
|
110
110
|
|
111
|
-
指定创建任务实例IP地址,多个IP端口之间请用“,”英文逗号分隔,目前仅支持设置IPv4地址,获取方法如下: - 方法1:登录虚拟私有云服务的控制台界面,单击VPC下的子网,进入子网详情页面,查找子网的网段,选择未被占用的IP 。 - 方法2:通过虚拟私有云服务的API接口查询,具体操作可参考查询私有IP列表,选择“device_owner”为空的私有IP。
|
111
|
+
指定创建任务实例IP地址,多个IP端口之间请用“,”英文逗号分隔,目前仅支持设置IPv4地址,获取方法如下: - 方法1:登录虚拟私有云服务的控制台界面,单击VPC下的子网,进入子网详情页面,查找子网的网段,选择未被占用的IP 。 - 方法2:通过虚拟私有云服务的API接口查询,具体操作可参考查询私有IP列表,选择“device_owner”为空的私有IP。
|
112
112
|
|
113
113
|
:return: The custom_node_ip of this JobNodeVpcInfo.
|
114
114
|
:rtype: str
|
@@ -119,7 +119,7 @@ class JobNodeVpcInfo:
|
|
119
119
|
def custom_node_ip(self, custom_node_ip):
|
120
120
|
"""Sets the custom_node_ip of this JobNodeVpcInfo.
|
121
121
|
|
122
|
-
指定创建任务实例IP地址,多个IP端口之间请用“,”英文逗号分隔,目前仅支持设置IPv4地址,获取方法如下: - 方法1:登录虚拟私有云服务的控制台界面,单击VPC下的子网,进入子网详情页面,查找子网的网段,选择未被占用的IP 。 - 方法2:通过虚拟私有云服务的API接口查询,具体操作可参考查询私有IP列表,选择“device_owner”为空的私有IP。
|
122
|
+
指定创建任务实例IP地址,多个IP端口之间请用“,”英文逗号分隔,目前仅支持设置IPv4地址,获取方法如下: - 方法1:登录虚拟私有云服务的控制台界面,单击VPC下的子网,进入子网详情页面,查找子网的网段,选择未被占用的IP 。 - 方法2:通过虚拟私有云服务的API接口查询,具体操作可参考查询私有IP列表,选择“device_owner”为空的私有IP。
|
123
123
|
|
124
124
|
:param custom_node_ip: The custom_node_ip of this JobNodeVpcInfo.
|
125
125
|
:type custom_node_ip: str
|
@@ -0,0 +1,492 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class ListConnectionsRequest:
|
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
|
+
'connection_id': 'str',
|
22
|
+
'db_type': 'str',
|
23
|
+
'name': 'str',
|
24
|
+
'inst_id': 'str',
|
25
|
+
'ip': 'str',
|
26
|
+
'description': 'str',
|
27
|
+
'create_time': 'str',
|
28
|
+
'enterprise_project_id': 'str',
|
29
|
+
'offset': 'int',
|
30
|
+
'limit': 'int',
|
31
|
+
'fetch_all': 'bool',
|
32
|
+
'sort_key': 'str',
|
33
|
+
'sort_dir': 'str'
|
34
|
+
}
|
35
|
+
|
36
|
+
attribute_map = {
|
37
|
+
'x_language': 'X-Language',
|
38
|
+
'connection_id': 'connection_id',
|
39
|
+
'db_type': 'db_type',
|
40
|
+
'name': 'name',
|
41
|
+
'inst_id': 'inst_id',
|
42
|
+
'ip': 'ip',
|
43
|
+
'description': 'description',
|
44
|
+
'create_time': 'create_time',
|
45
|
+
'enterprise_project_id': 'enterprise_project_id',
|
46
|
+
'offset': 'offset',
|
47
|
+
'limit': 'limit',
|
48
|
+
'fetch_all': 'fetch_all',
|
49
|
+
'sort_key': 'sort_key',
|
50
|
+
'sort_dir': 'sort_dir'
|
51
|
+
}
|
52
|
+
|
53
|
+
def __init__(self, x_language=None, connection_id=None, db_type=None, name=None, inst_id=None, ip=None, description=None, create_time=None, enterprise_project_id=None, offset=None, limit=None, fetch_all=None, sort_key=None, sort_dir=None):
|
54
|
+
"""ListConnectionsRequest
|
55
|
+
|
56
|
+
The model defined in huaweicloud sdk
|
57
|
+
|
58
|
+
:param x_language: 请求语言类型。
|
59
|
+
:type x_language: str
|
60
|
+
:param connection_id: 连接ID。
|
61
|
+
:type connection_id: str
|
62
|
+
:param db_type: 连接类型。 - mysql - oracle - postgresql - mongodb
|
63
|
+
:type db_type: str
|
64
|
+
:param name: 连接名称,忽略大小写。
|
65
|
+
:type name: str
|
66
|
+
:param inst_id: 云上数据库实例ID。
|
67
|
+
:type inst_id: str
|
68
|
+
:param ip: 连接IP。
|
69
|
+
:type ip: str
|
70
|
+
:param description: 连接描述。
|
71
|
+
:type description: str
|
72
|
+
:param create_time: 时间区间用“,”分割。示例:2024-05-17T07:46:00.414Z,2024-05-20T07:46:00.999Z。
|
73
|
+
:type create_time: str
|
74
|
+
:param enterprise_project_id: 企业项目ID。
|
75
|
+
:type enterprise_project_id: str
|
76
|
+
:param offset: 偏移量,默认值为0,表示查询该偏移量后面的记录。
|
77
|
+
:type offset: int
|
78
|
+
:param limit: 查询返回记录的数量限制,默认值为10。
|
79
|
+
:type limit: int
|
80
|
+
:param fetch_all: 值为“true”时会使得offset和limit参数失效并返回所有记录。
|
81
|
+
:type fetch_all: bool
|
82
|
+
:param sort_key: 返回结果按该关键字排序,默认为“created_at”。
|
83
|
+
:type sort_key: str
|
84
|
+
:param sort_dir: 降序或升序(分别对应desc和asc,默认为“desc”)。
|
85
|
+
:type sort_dir: str
|
86
|
+
"""
|
87
|
+
|
88
|
+
|
89
|
+
|
90
|
+
self._x_language = None
|
91
|
+
self._connection_id = None
|
92
|
+
self._db_type = None
|
93
|
+
self._name = None
|
94
|
+
self._inst_id = None
|
95
|
+
self._ip = None
|
96
|
+
self._description = None
|
97
|
+
self._create_time = None
|
98
|
+
self._enterprise_project_id = None
|
99
|
+
self._offset = None
|
100
|
+
self._limit = None
|
101
|
+
self._fetch_all = None
|
102
|
+
self._sort_key = None
|
103
|
+
self._sort_dir = None
|
104
|
+
self.discriminator = None
|
105
|
+
|
106
|
+
if x_language is not None:
|
107
|
+
self.x_language = x_language
|
108
|
+
if connection_id is not None:
|
109
|
+
self.connection_id = connection_id
|
110
|
+
if db_type is not None:
|
111
|
+
self.db_type = db_type
|
112
|
+
if name is not None:
|
113
|
+
self.name = name
|
114
|
+
if inst_id is not None:
|
115
|
+
self.inst_id = inst_id
|
116
|
+
if ip is not None:
|
117
|
+
self.ip = ip
|
118
|
+
if description is not None:
|
119
|
+
self.description = description
|
120
|
+
if create_time is not None:
|
121
|
+
self.create_time = create_time
|
122
|
+
if enterprise_project_id is not None:
|
123
|
+
self.enterprise_project_id = enterprise_project_id
|
124
|
+
if offset is not None:
|
125
|
+
self.offset = offset
|
126
|
+
if limit is not None:
|
127
|
+
self.limit = limit
|
128
|
+
if fetch_all is not None:
|
129
|
+
self.fetch_all = fetch_all
|
130
|
+
if sort_key is not None:
|
131
|
+
self.sort_key = sort_key
|
132
|
+
if sort_dir is not None:
|
133
|
+
self.sort_dir = sort_dir
|
134
|
+
|
135
|
+
@property
|
136
|
+
def x_language(self):
|
137
|
+
"""Gets the x_language of this ListConnectionsRequest.
|
138
|
+
|
139
|
+
请求语言类型。
|
140
|
+
|
141
|
+
:return: The x_language of this ListConnectionsRequest.
|
142
|
+
:rtype: str
|
143
|
+
"""
|
144
|
+
return self._x_language
|
145
|
+
|
146
|
+
@x_language.setter
|
147
|
+
def x_language(self, x_language):
|
148
|
+
"""Sets the x_language of this ListConnectionsRequest.
|
149
|
+
|
150
|
+
请求语言类型。
|
151
|
+
|
152
|
+
:param x_language: The x_language of this ListConnectionsRequest.
|
153
|
+
:type x_language: str
|
154
|
+
"""
|
155
|
+
self._x_language = x_language
|
156
|
+
|
157
|
+
@property
|
158
|
+
def connection_id(self):
|
159
|
+
"""Gets the connection_id of this ListConnectionsRequest.
|
160
|
+
|
161
|
+
连接ID。
|
162
|
+
|
163
|
+
:return: The connection_id of this ListConnectionsRequest.
|
164
|
+
:rtype: str
|
165
|
+
"""
|
166
|
+
return self._connection_id
|
167
|
+
|
168
|
+
@connection_id.setter
|
169
|
+
def connection_id(self, connection_id):
|
170
|
+
"""Sets the connection_id of this ListConnectionsRequest.
|
171
|
+
|
172
|
+
连接ID。
|
173
|
+
|
174
|
+
:param connection_id: The connection_id of this ListConnectionsRequest.
|
175
|
+
:type connection_id: str
|
176
|
+
"""
|
177
|
+
self._connection_id = connection_id
|
178
|
+
|
179
|
+
@property
|
180
|
+
def db_type(self):
|
181
|
+
"""Gets the db_type of this ListConnectionsRequest.
|
182
|
+
|
183
|
+
连接类型。 - mysql - oracle - postgresql - mongodb
|
184
|
+
|
185
|
+
:return: The db_type of this ListConnectionsRequest.
|
186
|
+
:rtype: str
|
187
|
+
"""
|
188
|
+
return self._db_type
|
189
|
+
|
190
|
+
@db_type.setter
|
191
|
+
def db_type(self, db_type):
|
192
|
+
"""Sets the db_type of this ListConnectionsRequest.
|
193
|
+
|
194
|
+
连接类型。 - mysql - oracle - postgresql - mongodb
|
195
|
+
|
196
|
+
:param db_type: The db_type of this ListConnectionsRequest.
|
197
|
+
:type db_type: str
|
198
|
+
"""
|
199
|
+
self._db_type = db_type
|
200
|
+
|
201
|
+
@property
|
202
|
+
def name(self):
|
203
|
+
"""Gets the name of this ListConnectionsRequest.
|
204
|
+
|
205
|
+
连接名称,忽略大小写。
|
206
|
+
|
207
|
+
:return: The name of this ListConnectionsRequest.
|
208
|
+
:rtype: str
|
209
|
+
"""
|
210
|
+
return self._name
|
211
|
+
|
212
|
+
@name.setter
|
213
|
+
def name(self, name):
|
214
|
+
"""Sets the name of this ListConnectionsRequest.
|
215
|
+
|
216
|
+
连接名称,忽略大小写。
|
217
|
+
|
218
|
+
:param name: The name of this ListConnectionsRequest.
|
219
|
+
:type name: str
|
220
|
+
"""
|
221
|
+
self._name = name
|
222
|
+
|
223
|
+
@property
|
224
|
+
def inst_id(self):
|
225
|
+
"""Gets the inst_id of this ListConnectionsRequest.
|
226
|
+
|
227
|
+
云上数据库实例ID。
|
228
|
+
|
229
|
+
:return: The inst_id of this ListConnectionsRequest.
|
230
|
+
:rtype: str
|
231
|
+
"""
|
232
|
+
return self._inst_id
|
233
|
+
|
234
|
+
@inst_id.setter
|
235
|
+
def inst_id(self, inst_id):
|
236
|
+
"""Sets the inst_id of this ListConnectionsRequest.
|
237
|
+
|
238
|
+
云上数据库实例ID。
|
239
|
+
|
240
|
+
:param inst_id: The inst_id of this ListConnectionsRequest.
|
241
|
+
:type inst_id: str
|
242
|
+
"""
|
243
|
+
self._inst_id = inst_id
|
244
|
+
|
245
|
+
@property
|
246
|
+
def ip(self):
|
247
|
+
"""Gets the ip of this ListConnectionsRequest.
|
248
|
+
|
249
|
+
连接IP。
|
250
|
+
|
251
|
+
:return: The ip of this ListConnectionsRequest.
|
252
|
+
:rtype: str
|
253
|
+
"""
|
254
|
+
return self._ip
|
255
|
+
|
256
|
+
@ip.setter
|
257
|
+
def ip(self, ip):
|
258
|
+
"""Sets the ip of this ListConnectionsRequest.
|
259
|
+
|
260
|
+
连接IP。
|
261
|
+
|
262
|
+
:param ip: The ip of this ListConnectionsRequest.
|
263
|
+
:type ip: str
|
264
|
+
"""
|
265
|
+
self._ip = ip
|
266
|
+
|
267
|
+
@property
|
268
|
+
def description(self):
|
269
|
+
"""Gets the description of this ListConnectionsRequest.
|
270
|
+
|
271
|
+
连接描述。
|
272
|
+
|
273
|
+
:return: The description of this ListConnectionsRequest.
|
274
|
+
:rtype: str
|
275
|
+
"""
|
276
|
+
return self._description
|
277
|
+
|
278
|
+
@description.setter
|
279
|
+
def description(self, description):
|
280
|
+
"""Sets the description of this ListConnectionsRequest.
|
281
|
+
|
282
|
+
连接描述。
|
283
|
+
|
284
|
+
:param description: The description of this ListConnectionsRequest.
|
285
|
+
:type description: str
|
286
|
+
"""
|
287
|
+
self._description = description
|
288
|
+
|
289
|
+
@property
|
290
|
+
def create_time(self):
|
291
|
+
"""Gets the create_time of this ListConnectionsRequest.
|
292
|
+
|
293
|
+
时间区间用“,”分割。示例:2024-05-17T07:46:00.414Z,2024-05-20T07:46:00.999Z。
|
294
|
+
|
295
|
+
:return: The create_time of this ListConnectionsRequest.
|
296
|
+
:rtype: str
|
297
|
+
"""
|
298
|
+
return self._create_time
|
299
|
+
|
300
|
+
@create_time.setter
|
301
|
+
def create_time(self, create_time):
|
302
|
+
"""Sets the create_time of this ListConnectionsRequest.
|
303
|
+
|
304
|
+
时间区间用“,”分割。示例:2024-05-17T07:46:00.414Z,2024-05-20T07:46:00.999Z。
|
305
|
+
|
306
|
+
:param create_time: The create_time of this ListConnectionsRequest.
|
307
|
+
:type create_time: str
|
308
|
+
"""
|
309
|
+
self._create_time = create_time
|
310
|
+
|
311
|
+
@property
|
312
|
+
def enterprise_project_id(self):
|
313
|
+
"""Gets the enterprise_project_id of this ListConnectionsRequest.
|
314
|
+
|
315
|
+
企业项目ID。
|
316
|
+
|
317
|
+
:return: The enterprise_project_id of this ListConnectionsRequest.
|
318
|
+
:rtype: str
|
319
|
+
"""
|
320
|
+
return self._enterprise_project_id
|
321
|
+
|
322
|
+
@enterprise_project_id.setter
|
323
|
+
def enterprise_project_id(self, enterprise_project_id):
|
324
|
+
"""Sets the enterprise_project_id of this ListConnectionsRequest.
|
325
|
+
|
326
|
+
企业项目ID。
|
327
|
+
|
328
|
+
:param enterprise_project_id: The enterprise_project_id of this ListConnectionsRequest.
|
329
|
+
:type enterprise_project_id: str
|
330
|
+
"""
|
331
|
+
self._enterprise_project_id = enterprise_project_id
|
332
|
+
|
333
|
+
@property
|
334
|
+
def offset(self):
|
335
|
+
"""Gets the offset of this ListConnectionsRequest.
|
336
|
+
|
337
|
+
偏移量,默认值为0,表示查询该偏移量后面的记录。
|
338
|
+
|
339
|
+
:return: The offset of this ListConnectionsRequest.
|
340
|
+
:rtype: int
|
341
|
+
"""
|
342
|
+
return self._offset
|
343
|
+
|
344
|
+
@offset.setter
|
345
|
+
def offset(self, offset):
|
346
|
+
"""Sets the offset of this ListConnectionsRequest.
|
347
|
+
|
348
|
+
偏移量,默认值为0,表示查询该偏移量后面的记录。
|
349
|
+
|
350
|
+
:param offset: The offset of this ListConnectionsRequest.
|
351
|
+
:type offset: int
|
352
|
+
"""
|
353
|
+
self._offset = offset
|
354
|
+
|
355
|
+
@property
|
356
|
+
def limit(self):
|
357
|
+
"""Gets the limit of this ListConnectionsRequest.
|
358
|
+
|
359
|
+
查询返回记录的数量限制,默认值为10。
|
360
|
+
|
361
|
+
:return: The limit of this ListConnectionsRequest.
|
362
|
+
:rtype: int
|
363
|
+
"""
|
364
|
+
return self._limit
|
365
|
+
|
366
|
+
@limit.setter
|
367
|
+
def limit(self, limit):
|
368
|
+
"""Sets the limit of this ListConnectionsRequest.
|
369
|
+
|
370
|
+
查询返回记录的数量限制,默认值为10。
|
371
|
+
|
372
|
+
:param limit: The limit of this ListConnectionsRequest.
|
373
|
+
:type limit: int
|
374
|
+
"""
|
375
|
+
self._limit = limit
|
376
|
+
|
377
|
+
@property
|
378
|
+
def fetch_all(self):
|
379
|
+
"""Gets the fetch_all of this ListConnectionsRequest.
|
380
|
+
|
381
|
+
值为“true”时会使得offset和limit参数失效并返回所有记录。
|
382
|
+
|
383
|
+
:return: The fetch_all of this ListConnectionsRequest.
|
384
|
+
:rtype: bool
|
385
|
+
"""
|
386
|
+
return self._fetch_all
|
387
|
+
|
388
|
+
@fetch_all.setter
|
389
|
+
def fetch_all(self, fetch_all):
|
390
|
+
"""Sets the fetch_all of this ListConnectionsRequest.
|
391
|
+
|
392
|
+
值为“true”时会使得offset和limit参数失效并返回所有记录。
|
393
|
+
|
394
|
+
:param fetch_all: The fetch_all of this ListConnectionsRequest.
|
395
|
+
:type fetch_all: bool
|
396
|
+
"""
|
397
|
+
self._fetch_all = fetch_all
|
398
|
+
|
399
|
+
@property
|
400
|
+
def sort_key(self):
|
401
|
+
"""Gets the sort_key of this ListConnectionsRequest.
|
402
|
+
|
403
|
+
返回结果按该关键字排序,默认为“created_at”。
|
404
|
+
|
405
|
+
:return: The sort_key of this ListConnectionsRequest.
|
406
|
+
:rtype: str
|
407
|
+
"""
|
408
|
+
return self._sort_key
|
409
|
+
|
410
|
+
@sort_key.setter
|
411
|
+
def sort_key(self, sort_key):
|
412
|
+
"""Sets the sort_key of this ListConnectionsRequest.
|
413
|
+
|
414
|
+
返回结果按该关键字排序,默认为“created_at”。
|
415
|
+
|
416
|
+
:param sort_key: The sort_key of this ListConnectionsRequest.
|
417
|
+
:type sort_key: str
|
418
|
+
"""
|
419
|
+
self._sort_key = sort_key
|
420
|
+
|
421
|
+
@property
|
422
|
+
def sort_dir(self):
|
423
|
+
"""Gets the sort_dir of this ListConnectionsRequest.
|
424
|
+
|
425
|
+
降序或升序(分别对应desc和asc,默认为“desc”)。
|
426
|
+
|
427
|
+
:return: The sort_dir of this ListConnectionsRequest.
|
428
|
+
:rtype: str
|
429
|
+
"""
|
430
|
+
return self._sort_dir
|
431
|
+
|
432
|
+
@sort_dir.setter
|
433
|
+
def sort_dir(self, sort_dir):
|
434
|
+
"""Sets the sort_dir of this ListConnectionsRequest.
|
435
|
+
|
436
|
+
降序或升序(分别对应desc和asc,默认为“desc”)。
|
437
|
+
|
438
|
+
:param sort_dir: The sort_dir of this ListConnectionsRequest.
|
439
|
+
:type sort_dir: str
|
440
|
+
"""
|
441
|
+
self._sort_dir = sort_dir
|
442
|
+
|
443
|
+
def to_dict(self):
|
444
|
+
"""Returns the model properties as a dict"""
|
445
|
+
result = {}
|
446
|
+
|
447
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
448
|
+
value = getattr(self, attr)
|
449
|
+
if isinstance(value, list):
|
450
|
+
result[attr] = list(map(
|
451
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
452
|
+
value
|
453
|
+
))
|
454
|
+
elif hasattr(value, "to_dict"):
|
455
|
+
result[attr] = value.to_dict()
|
456
|
+
elif isinstance(value, dict):
|
457
|
+
result[attr] = dict(map(
|
458
|
+
lambda item: (item[0], item[1].to_dict())
|
459
|
+
if hasattr(item[1], "to_dict") else item,
|
460
|
+
value.items()
|
461
|
+
))
|
462
|
+
else:
|
463
|
+
if attr in self.sensitive_list:
|
464
|
+
result[attr] = "****"
|
465
|
+
else:
|
466
|
+
result[attr] = value
|
467
|
+
|
468
|
+
return result
|
469
|
+
|
470
|
+
def to_str(self):
|
471
|
+
"""Returns the string representation of the model"""
|
472
|
+
import simplejson as json
|
473
|
+
if six.PY2:
|
474
|
+
import sys
|
475
|
+
reload(sys)
|
476
|
+
sys.setdefaultencoding("utf-8")
|
477
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
478
|
+
|
479
|
+
def __repr__(self):
|
480
|
+
"""For `print`"""
|
481
|
+
return self.to_str()
|
482
|
+
|
483
|
+
def __eq__(self, other):
|
484
|
+
"""Returns true if both objects are equal"""
|
485
|
+
if not isinstance(other, ListConnectionsRequest):
|
486
|
+
return False
|
487
|
+
|
488
|
+
return self.__dict__ == other.__dict__
|
489
|
+
|
490
|
+
def __ne__(self, other):
|
491
|
+
"""Returns true if both objects are not equal"""
|
492
|
+
return not self == other
|