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
@@ -0,0 +1,288 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class ModifyComparePolicyReq:
|
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
|
+
'action': 'str',
|
21
|
+
'period': 'str',
|
22
|
+
'begin_time': 'str',
|
23
|
+
'end_time': 'str',
|
24
|
+
'compare_type': 'list[str]',
|
25
|
+
'compare_policy': 'str',
|
26
|
+
'interval_hour': 'int'
|
27
|
+
}
|
28
|
+
|
29
|
+
attribute_map = {
|
30
|
+
'action': 'action',
|
31
|
+
'period': 'period',
|
32
|
+
'begin_time': 'begin_time',
|
33
|
+
'end_time': 'end_time',
|
34
|
+
'compare_type': 'compare_type',
|
35
|
+
'compare_policy': 'compare_policy',
|
36
|
+
'interval_hour': 'interval_hour'
|
37
|
+
}
|
38
|
+
|
39
|
+
def __init__(self, action=None, period=None, begin_time=None, end_time=None, compare_type=None, compare_policy=None, interval_hour=None):
|
40
|
+
"""ModifyComparePolicyReq
|
41
|
+
|
42
|
+
The model defined in huaweicloud sdk
|
43
|
+
|
44
|
+
:param action: 对比策略开关-open|close。
|
45
|
+
:type action: str
|
46
|
+
:param period: 对比策略周期。 - 每周对比:格式示例:“* * 1,3,5” ,其中“1,3,5”对应星期一、星期三、星期五,根据实际填写。 - 每天对比:固定填写“* * 1,2,3,4,5,6,7”。 - 按小时对比:固定填写“* * 1,2,3,4,5,6,7”。
|
47
|
+
:type period: str
|
48
|
+
:param begin_time: 对比策略生效开始时间,UTC时间,24小时制,时间格式HH:mm:ss,例如:00:00:00,表示UTC时间的00:00:00,北京时间(UTC+08:00)的08:00:00。
|
49
|
+
:type begin_time: str
|
50
|
+
:param end_time: 对比策略生效结束时间,UTC时间,24小时制,时间格式HH:mm:ss,例如:04:00:00,表示UTC时间的04:00:00,北京时间(UTC+08:00)的12:00:00。
|
51
|
+
:type end_time: str
|
52
|
+
:param compare_type: 对比类型列表: - object_comparison:对象对比。 - lines:行对比。 - account:用户对比。
|
53
|
+
:type compare_type: list[str]
|
54
|
+
:param compare_policy: 对比策略: - normal:普通对比。 - manyToOne:多对一对比。
|
55
|
+
:type compare_policy: str
|
56
|
+
:param interval_hour: 间隔时间,按小时对比时填写,表示每隔多久执行一次对比,单位是小时。
|
57
|
+
:type interval_hour: int
|
58
|
+
"""
|
59
|
+
|
60
|
+
|
61
|
+
|
62
|
+
self._action = None
|
63
|
+
self._period = None
|
64
|
+
self._begin_time = None
|
65
|
+
self._end_time = None
|
66
|
+
self._compare_type = None
|
67
|
+
self._compare_policy = None
|
68
|
+
self._interval_hour = None
|
69
|
+
self.discriminator = None
|
70
|
+
|
71
|
+
self.action = action
|
72
|
+
if period is not None:
|
73
|
+
self.period = period
|
74
|
+
if begin_time is not None:
|
75
|
+
self.begin_time = begin_time
|
76
|
+
if end_time is not None:
|
77
|
+
self.end_time = end_time
|
78
|
+
if compare_type is not None:
|
79
|
+
self.compare_type = compare_type
|
80
|
+
if compare_policy is not None:
|
81
|
+
self.compare_policy = compare_policy
|
82
|
+
if interval_hour is not None:
|
83
|
+
self.interval_hour = interval_hour
|
84
|
+
|
85
|
+
@property
|
86
|
+
def action(self):
|
87
|
+
"""Gets the action of this ModifyComparePolicyReq.
|
88
|
+
|
89
|
+
对比策略开关-open|close。
|
90
|
+
|
91
|
+
:return: The action of this ModifyComparePolicyReq.
|
92
|
+
:rtype: str
|
93
|
+
"""
|
94
|
+
return self._action
|
95
|
+
|
96
|
+
@action.setter
|
97
|
+
def action(self, action):
|
98
|
+
"""Sets the action of this ModifyComparePolicyReq.
|
99
|
+
|
100
|
+
对比策略开关-open|close。
|
101
|
+
|
102
|
+
:param action: The action of this ModifyComparePolicyReq.
|
103
|
+
:type action: str
|
104
|
+
"""
|
105
|
+
self._action = action
|
106
|
+
|
107
|
+
@property
|
108
|
+
def period(self):
|
109
|
+
"""Gets the period of this ModifyComparePolicyReq.
|
110
|
+
|
111
|
+
对比策略周期。 - 每周对比:格式示例:“* * 1,3,5” ,其中“1,3,5”对应星期一、星期三、星期五,根据实际填写。 - 每天对比:固定填写“* * 1,2,3,4,5,6,7”。 - 按小时对比:固定填写“* * 1,2,3,4,5,6,7”。
|
112
|
+
|
113
|
+
:return: The period of this ModifyComparePolicyReq.
|
114
|
+
:rtype: str
|
115
|
+
"""
|
116
|
+
return self._period
|
117
|
+
|
118
|
+
@period.setter
|
119
|
+
def period(self, period):
|
120
|
+
"""Sets the period of this ModifyComparePolicyReq.
|
121
|
+
|
122
|
+
对比策略周期。 - 每周对比:格式示例:“* * 1,3,5” ,其中“1,3,5”对应星期一、星期三、星期五,根据实际填写。 - 每天对比:固定填写“* * 1,2,3,4,5,6,7”。 - 按小时对比:固定填写“* * 1,2,3,4,5,6,7”。
|
123
|
+
|
124
|
+
:param period: The period of this ModifyComparePolicyReq.
|
125
|
+
:type period: str
|
126
|
+
"""
|
127
|
+
self._period = period
|
128
|
+
|
129
|
+
@property
|
130
|
+
def begin_time(self):
|
131
|
+
"""Gets the begin_time of this ModifyComparePolicyReq.
|
132
|
+
|
133
|
+
对比策略生效开始时间,UTC时间,24小时制,时间格式HH:mm:ss,例如:00:00:00,表示UTC时间的00:00:00,北京时间(UTC+08:00)的08:00:00。
|
134
|
+
|
135
|
+
:return: The begin_time of this ModifyComparePolicyReq.
|
136
|
+
:rtype: str
|
137
|
+
"""
|
138
|
+
return self._begin_time
|
139
|
+
|
140
|
+
@begin_time.setter
|
141
|
+
def begin_time(self, begin_time):
|
142
|
+
"""Sets the begin_time of this ModifyComparePolicyReq.
|
143
|
+
|
144
|
+
对比策略生效开始时间,UTC时间,24小时制,时间格式HH:mm:ss,例如:00:00:00,表示UTC时间的00:00:00,北京时间(UTC+08:00)的08:00:00。
|
145
|
+
|
146
|
+
:param begin_time: The begin_time of this ModifyComparePolicyReq.
|
147
|
+
:type begin_time: str
|
148
|
+
"""
|
149
|
+
self._begin_time = begin_time
|
150
|
+
|
151
|
+
@property
|
152
|
+
def end_time(self):
|
153
|
+
"""Gets the end_time of this ModifyComparePolicyReq.
|
154
|
+
|
155
|
+
对比策略生效结束时间,UTC时间,24小时制,时间格式HH:mm:ss,例如:04:00:00,表示UTC时间的04:00:00,北京时间(UTC+08:00)的12:00:00。
|
156
|
+
|
157
|
+
:return: The end_time of this ModifyComparePolicyReq.
|
158
|
+
:rtype: str
|
159
|
+
"""
|
160
|
+
return self._end_time
|
161
|
+
|
162
|
+
@end_time.setter
|
163
|
+
def end_time(self, end_time):
|
164
|
+
"""Sets the end_time of this ModifyComparePolicyReq.
|
165
|
+
|
166
|
+
对比策略生效结束时间,UTC时间,24小时制,时间格式HH:mm:ss,例如:04:00:00,表示UTC时间的04:00:00,北京时间(UTC+08:00)的12:00:00。
|
167
|
+
|
168
|
+
:param end_time: The end_time of this ModifyComparePolicyReq.
|
169
|
+
:type end_time: str
|
170
|
+
"""
|
171
|
+
self._end_time = end_time
|
172
|
+
|
173
|
+
@property
|
174
|
+
def compare_type(self):
|
175
|
+
"""Gets the compare_type of this ModifyComparePolicyReq.
|
176
|
+
|
177
|
+
对比类型列表: - object_comparison:对象对比。 - lines:行对比。 - account:用户对比。
|
178
|
+
|
179
|
+
:return: The compare_type of this ModifyComparePolicyReq.
|
180
|
+
:rtype: list[str]
|
181
|
+
"""
|
182
|
+
return self._compare_type
|
183
|
+
|
184
|
+
@compare_type.setter
|
185
|
+
def compare_type(self, compare_type):
|
186
|
+
"""Sets the compare_type of this ModifyComparePolicyReq.
|
187
|
+
|
188
|
+
对比类型列表: - object_comparison:对象对比。 - lines:行对比。 - account:用户对比。
|
189
|
+
|
190
|
+
:param compare_type: The compare_type of this ModifyComparePolicyReq.
|
191
|
+
:type compare_type: list[str]
|
192
|
+
"""
|
193
|
+
self._compare_type = compare_type
|
194
|
+
|
195
|
+
@property
|
196
|
+
def compare_policy(self):
|
197
|
+
"""Gets the compare_policy of this ModifyComparePolicyReq.
|
198
|
+
|
199
|
+
对比策略: - normal:普通对比。 - manyToOne:多对一对比。
|
200
|
+
|
201
|
+
:return: The compare_policy of this ModifyComparePolicyReq.
|
202
|
+
:rtype: str
|
203
|
+
"""
|
204
|
+
return self._compare_policy
|
205
|
+
|
206
|
+
@compare_policy.setter
|
207
|
+
def compare_policy(self, compare_policy):
|
208
|
+
"""Sets the compare_policy of this ModifyComparePolicyReq.
|
209
|
+
|
210
|
+
对比策略: - normal:普通对比。 - manyToOne:多对一对比。
|
211
|
+
|
212
|
+
:param compare_policy: The compare_policy of this ModifyComparePolicyReq.
|
213
|
+
:type compare_policy: str
|
214
|
+
"""
|
215
|
+
self._compare_policy = compare_policy
|
216
|
+
|
217
|
+
@property
|
218
|
+
def interval_hour(self):
|
219
|
+
"""Gets the interval_hour of this ModifyComparePolicyReq.
|
220
|
+
|
221
|
+
间隔时间,按小时对比时填写,表示每隔多久执行一次对比,单位是小时。
|
222
|
+
|
223
|
+
:return: The interval_hour of this ModifyComparePolicyReq.
|
224
|
+
:rtype: int
|
225
|
+
"""
|
226
|
+
return self._interval_hour
|
227
|
+
|
228
|
+
@interval_hour.setter
|
229
|
+
def interval_hour(self, interval_hour):
|
230
|
+
"""Sets the interval_hour of this ModifyComparePolicyReq.
|
231
|
+
|
232
|
+
间隔时间,按小时对比时填写,表示每隔多久执行一次对比,单位是小时。
|
233
|
+
|
234
|
+
:param interval_hour: The interval_hour of this ModifyComparePolicyReq.
|
235
|
+
:type interval_hour: int
|
236
|
+
"""
|
237
|
+
self._interval_hour = interval_hour
|
238
|
+
|
239
|
+
def to_dict(self):
|
240
|
+
"""Returns the model properties as a dict"""
|
241
|
+
result = {}
|
242
|
+
|
243
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
244
|
+
value = getattr(self, attr)
|
245
|
+
if isinstance(value, list):
|
246
|
+
result[attr] = list(map(
|
247
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
248
|
+
value
|
249
|
+
))
|
250
|
+
elif hasattr(value, "to_dict"):
|
251
|
+
result[attr] = value.to_dict()
|
252
|
+
elif isinstance(value, dict):
|
253
|
+
result[attr] = dict(map(
|
254
|
+
lambda item: (item[0], item[1].to_dict())
|
255
|
+
if hasattr(item[1], "to_dict") else item,
|
256
|
+
value.items()
|
257
|
+
))
|
258
|
+
else:
|
259
|
+
if attr in self.sensitive_list:
|
260
|
+
result[attr] = "****"
|
261
|
+
else:
|
262
|
+
result[attr] = value
|
263
|
+
|
264
|
+
return result
|
265
|
+
|
266
|
+
def to_str(self):
|
267
|
+
"""Returns the string representation of the model"""
|
268
|
+
import simplejson as json
|
269
|
+
if six.PY2:
|
270
|
+
import sys
|
271
|
+
reload(sys)
|
272
|
+
sys.setdefaultencoding("utf-8")
|
273
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
274
|
+
|
275
|
+
def __repr__(self):
|
276
|
+
"""For `print`"""
|
277
|
+
return self.to_str()
|
278
|
+
|
279
|
+
def __eq__(self, other):
|
280
|
+
"""Returns true if both objects are equal"""
|
281
|
+
if not isinstance(other, ModifyComparePolicyReq):
|
282
|
+
return False
|
283
|
+
|
284
|
+
return self.__dict__ == other.__dict__
|
285
|
+
|
286
|
+
def __ne__(self, other):
|
287
|
+
"""Returns true if both objects are not equal"""
|
288
|
+
return not self == other
|
@@ -0,0 +1,168 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class ModifyConnectionRequest:
|
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
|
+
'body': 'UpdateConnectionReq'
|
23
|
+
}
|
24
|
+
|
25
|
+
attribute_map = {
|
26
|
+
'x_language': 'X-Language',
|
27
|
+
'connection_id': 'connection_id',
|
28
|
+
'body': 'body'
|
29
|
+
}
|
30
|
+
|
31
|
+
def __init__(self, x_language=None, connection_id=None, body=None):
|
32
|
+
"""ModifyConnectionRequest
|
33
|
+
|
34
|
+
The model defined in huaweicloud sdk
|
35
|
+
|
36
|
+
:param x_language: 请求语言类型。
|
37
|
+
:type x_language: str
|
38
|
+
:param connection_id: 连接ID
|
39
|
+
:type connection_id: str
|
40
|
+
:param body: Body of the ModifyConnectionRequest
|
41
|
+
:type body: :class:`huaweicloudsdkdrs.v5.UpdateConnectionReq`
|
42
|
+
"""
|
43
|
+
|
44
|
+
|
45
|
+
|
46
|
+
self._x_language = None
|
47
|
+
self._connection_id = None
|
48
|
+
self._body = None
|
49
|
+
self.discriminator = None
|
50
|
+
|
51
|
+
if x_language is not None:
|
52
|
+
self.x_language = x_language
|
53
|
+
self.connection_id = connection_id
|
54
|
+
if body is not None:
|
55
|
+
self.body = body
|
56
|
+
|
57
|
+
@property
|
58
|
+
def x_language(self):
|
59
|
+
"""Gets the x_language of this ModifyConnectionRequest.
|
60
|
+
|
61
|
+
请求语言类型。
|
62
|
+
|
63
|
+
:return: The x_language of this ModifyConnectionRequest.
|
64
|
+
:rtype: str
|
65
|
+
"""
|
66
|
+
return self._x_language
|
67
|
+
|
68
|
+
@x_language.setter
|
69
|
+
def x_language(self, x_language):
|
70
|
+
"""Sets the x_language of this ModifyConnectionRequest.
|
71
|
+
|
72
|
+
请求语言类型。
|
73
|
+
|
74
|
+
:param x_language: The x_language of this ModifyConnectionRequest.
|
75
|
+
:type x_language: str
|
76
|
+
"""
|
77
|
+
self._x_language = x_language
|
78
|
+
|
79
|
+
@property
|
80
|
+
def connection_id(self):
|
81
|
+
"""Gets the connection_id of this ModifyConnectionRequest.
|
82
|
+
|
83
|
+
连接ID
|
84
|
+
|
85
|
+
:return: The connection_id of this ModifyConnectionRequest.
|
86
|
+
:rtype: str
|
87
|
+
"""
|
88
|
+
return self._connection_id
|
89
|
+
|
90
|
+
@connection_id.setter
|
91
|
+
def connection_id(self, connection_id):
|
92
|
+
"""Sets the connection_id of this ModifyConnectionRequest.
|
93
|
+
|
94
|
+
连接ID
|
95
|
+
|
96
|
+
:param connection_id: The connection_id of this ModifyConnectionRequest.
|
97
|
+
:type connection_id: str
|
98
|
+
"""
|
99
|
+
self._connection_id = connection_id
|
100
|
+
|
101
|
+
@property
|
102
|
+
def body(self):
|
103
|
+
"""Gets the body of this ModifyConnectionRequest.
|
104
|
+
|
105
|
+
:return: The body of this ModifyConnectionRequest.
|
106
|
+
:rtype: :class:`huaweicloudsdkdrs.v5.UpdateConnectionReq`
|
107
|
+
"""
|
108
|
+
return self._body
|
109
|
+
|
110
|
+
@body.setter
|
111
|
+
def body(self, body):
|
112
|
+
"""Sets the body of this ModifyConnectionRequest.
|
113
|
+
|
114
|
+
:param body: The body of this ModifyConnectionRequest.
|
115
|
+
:type body: :class:`huaweicloudsdkdrs.v5.UpdateConnectionReq`
|
116
|
+
"""
|
117
|
+
self._body = body
|
118
|
+
|
119
|
+
def to_dict(self):
|
120
|
+
"""Returns the model properties as a dict"""
|
121
|
+
result = {}
|
122
|
+
|
123
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
124
|
+
value = getattr(self, attr)
|
125
|
+
if isinstance(value, list):
|
126
|
+
result[attr] = list(map(
|
127
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
128
|
+
value
|
129
|
+
))
|
130
|
+
elif hasattr(value, "to_dict"):
|
131
|
+
result[attr] = value.to_dict()
|
132
|
+
elif isinstance(value, dict):
|
133
|
+
result[attr] = dict(map(
|
134
|
+
lambda item: (item[0], item[1].to_dict())
|
135
|
+
if hasattr(item[1], "to_dict") else item,
|
136
|
+
value.items()
|
137
|
+
))
|
138
|
+
else:
|
139
|
+
if attr in self.sensitive_list:
|
140
|
+
result[attr] = "****"
|
141
|
+
else:
|
142
|
+
result[attr] = value
|
143
|
+
|
144
|
+
return result
|
145
|
+
|
146
|
+
def to_str(self):
|
147
|
+
"""Returns the string representation of the model"""
|
148
|
+
import simplejson as json
|
149
|
+
if six.PY2:
|
150
|
+
import sys
|
151
|
+
reload(sys)
|
152
|
+
sys.setdefaultencoding("utf-8")
|
153
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
154
|
+
|
155
|
+
def __repr__(self):
|
156
|
+
"""For `print`"""
|
157
|
+
return self.to_str()
|
158
|
+
|
159
|
+
def __eq__(self, other):
|
160
|
+
"""Returns true if both objects are equal"""
|
161
|
+
if not isinstance(other, ModifyConnectionRequest):
|
162
|
+
return False
|
163
|
+
|
164
|
+
return self.__dict__ == other.__dict__
|
165
|
+
|
166
|
+
def __ne__(self, other):
|
167
|
+
"""Returns true if both objects are not equal"""
|
168
|
+
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 ModifyConnectionResponse(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
|
+
"""ModifyConnectionResponse
|
30
|
+
|
31
|
+
The model defined in huaweicloud sdk
|
32
|
+
|
33
|
+
:param body: 空响应体。
|
34
|
+
:type body: object
|
35
|
+
"""
|
36
|
+
|
37
|
+
super(ModifyConnectionResponse, 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 ModifyConnectionResponse.
|
48
|
+
|
49
|
+
空响应体。
|
50
|
+
|
51
|
+
:return: The body of this ModifyConnectionResponse.
|
52
|
+
:rtype: object
|
53
|
+
"""
|
54
|
+
return self._body
|
55
|
+
|
56
|
+
@body.setter
|
57
|
+
def body(self, body):
|
58
|
+
"""Sets the body of this ModifyConnectionResponse.
|
59
|
+
|
60
|
+
空响应体。
|
61
|
+
|
62
|
+
:param body: The body of this ModifyConnectionResponse.
|
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, ModifyConnectionResponse):
|
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
|