huaweicloudsdkdrs 3.1.76__py2.py3-none-any.whl → 3.1.77__py2.py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (52) hide show
  1. huaweicloudsdkdrs/v3/__init__.py +1 -0
  2. huaweicloudsdkdrs/v3/model/__init__.py +1 -0
  3. huaweicloudsdkdrs/v3/model/customized_dns.py +170 -0
  4. huaweicloudsdkdrs/v3/model/test_end_point.py +28 -3
  5. huaweicloudsdkdrs/v5/__init__.py +30 -0
  6. huaweicloudsdkdrs/v5/drs_async_client.py +736 -94
  7. huaweicloudsdkdrs/v5/drs_client.py +736 -94
  8. huaweicloudsdkdrs/v5/model/__init__.py +30 -0
  9. huaweicloudsdkdrs/v5/model/action_req.py +3 -3
  10. huaweicloudsdkdrs/v5/model/base_endpoint.py +6 -6
  11. huaweicloudsdkdrs/v5/model/base_endpoint_config.py +32 -3
  12. huaweicloudsdkdrs/v5/model/batch_add_tag_req.py +114 -0
  13. huaweicloudsdkdrs/v5/model/batch_create_tags_request.py +196 -0
  14. huaweicloudsdkdrs/v5/model/batch_create_tags_response.py +116 -0
  15. huaweicloudsdkdrs/v5/model/batch_delete_tag_req.py +114 -0
  16. huaweicloudsdkdrs/v5/model/batch_delete_tags_request.py +196 -0
  17. huaweicloudsdkdrs/v5/model/batch_delete_tags_response.py +116 -0
  18. huaweicloudsdkdrs/v5/model/children_job_list_resp.py +3 -3
  19. huaweicloudsdkdrs/v5/model/count_instance_by_tags_request.py +168 -0
  20. huaweicloudsdkdrs/v5/model/count_instance_by_tags_response.py +116 -0
  21. huaweicloudsdkdrs/v5/model/customized_dns.py +170 -0
  22. huaweicloudsdkdrs/v5/model/job_base_info.py +3 -3
  23. huaweicloudsdkdrs/v5/model/job_endpoint_info.py +31 -6
  24. huaweicloudsdkdrs/v5/model/job_link_resp.py +3 -3
  25. huaweicloudsdkdrs/v5/model/job_list_resp.py +3 -3
  26. huaweicloudsdkdrs/v5/model/list_instance_by_tags_request.py +226 -0
  27. huaweicloudsdkdrs/v5/model/list_instance_by_tags_response.py +145 -0
  28. huaweicloudsdkdrs/v5/model/list_instance_tags_request.py +171 -0
  29. huaweicloudsdkdrs/v5/model/list_instance_tags_response.py +116 -0
  30. huaweicloudsdkdrs/v5/model/list_job_history_parameter.py +283 -0
  31. huaweicloudsdkdrs/v5/model/list_job_history_parameters_request.py +288 -0
  32. huaweicloudsdkdrs/v5/model/list_job_history_parameters_response.py +145 -0
  33. huaweicloudsdkdrs/v5/model/list_job_parameters_request.py +230 -0
  34. huaweicloudsdkdrs/v5/model/list_job_parameters_response.py +145 -0
  35. huaweicloudsdkdrs/v5/model/list_jobs_request.py +3 -3
  36. huaweicloudsdkdrs/v5/model/list_tags_request.py +143 -0
  37. huaweicloudsdkdrs/v5/model/list_tags_response.py +116 -0
  38. huaweicloudsdkdrs/v5/model/modify_parameter_req.py +114 -0
  39. huaweicloudsdkdrs/v5/model/parameter_config.py +312 -0
  40. huaweicloudsdkdrs/v5/model/parameter_info.py +142 -0
  41. huaweicloudsdkdrs/v5/model/query_instance_by_tag_req.py +173 -0
  42. huaweicloudsdkdrs/v5/model/resource_instance.py +202 -0
  43. huaweicloudsdkdrs/v5/model/resource_tag_info.py +144 -0
  44. huaweicloudsdkdrs/v5/model/tag.py +142 -0
  45. huaweicloudsdkdrs/v5/model/tag_match.py +142 -0
  46. huaweicloudsdkdrs/v5/model/update_job_configurations_request.py +168 -0
  47. huaweicloudsdkdrs/v5/model/update_job_configurations_response.py +116 -0
  48. {huaweicloudsdkdrs-3.1.76.dist-info → huaweicloudsdkdrs-3.1.77.dist-info}/METADATA +2 -2
  49. {huaweicloudsdkdrs-3.1.76.dist-info → huaweicloudsdkdrs-3.1.77.dist-info}/RECORD +52 -21
  50. {huaweicloudsdkdrs-3.1.76.dist-info → huaweicloudsdkdrs-3.1.77.dist-info}/LICENSE +0 -0
  51. {huaweicloudsdkdrs-3.1.76.dist-info → huaweicloudsdkdrs-3.1.77.dist-info}/WHEEL +0 -0
  52. {huaweicloudsdkdrs-3.1.76.dist-info → huaweicloudsdkdrs-3.1.77.dist-info}/top_level.txt +0 -0
@@ -19,14 +19,20 @@ from huaweicloudsdkdrs.v5.model.async_update_job_resp import AsyncUpdateJobResp
19
19
  from huaweicloudsdkdrs.v5.model.base_endpoint import BaseEndpoint
20
20
  from huaweicloudsdkdrs.v5.model.base_endpoint_config import BaseEndpointConfig
21
21
  from huaweicloudsdkdrs.v5.model.base_resp import BaseResp
22
+ from huaweicloudsdkdrs.v5.model.batch_add_tag_req import BatchAddTagReq
22
23
  from huaweicloudsdkdrs.v5.model.batch_async_create_job_req import BatchAsyncCreateJobReq
23
24
  from huaweicloudsdkdrs.v5.model.batch_async_update_job_req import BatchAsyncUpdateJobReq
24
25
  from huaweicloudsdkdrs.v5.model.batch_create_jobs_async_request import BatchCreateJobsAsyncRequest
25
26
  from huaweicloudsdkdrs.v5.model.batch_create_jobs_async_response import BatchCreateJobsAsyncResponse
27
+ from huaweicloudsdkdrs.v5.model.batch_create_tags_request import BatchCreateTagsRequest
28
+ from huaweicloudsdkdrs.v5.model.batch_create_tags_response import BatchCreateTagsResponse
26
29
  from huaweicloudsdkdrs.v5.model.batch_deal_resource_tag_req import BatchDealResourceTagReq
27
30
  from huaweicloudsdkdrs.v5.model.batch_delete_job_req import BatchDeleteJobReq
28
31
  from huaweicloudsdkdrs.v5.model.batch_delete_jobs_by_id_request import BatchDeleteJobsByIdRequest
29
32
  from huaweicloudsdkdrs.v5.model.batch_delete_jobs_by_id_response import BatchDeleteJobsByIdResponse
33
+ from huaweicloudsdkdrs.v5.model.batch_delete_tag_req import BatchDeleteTagReq
34
+ from huaweicloudsdkdrs.v5.model.batch_delete_tags_request import BatchDeleteTagsRequest
35
+ from huaweicloudsdkdrs.v5.model.batch_delete_tags_response import BatchDeleteTagsResponse
30
36
  from huaweicloudsdkdrs.v5.model.batch_execute_job_actions_request import BatchExecuteJobActionsRequest
31
37
  from huaweicloudsdkdrs.v5.model.batch_execute_job_actions_response import BatchExecuteJobActionsResponse
32
38
  from huaweicloudsdkdrs.v5.model.batch_job_action_req import BatchJobActionReq
@@ -62,10 +68,13 @@ from huaweicloudsdkdrs.v5.model.content_compare_detail_info import ContentCompar
62
68
  from huaweicloudsdkdrs.v5.model.content_compare_overview_info import ContentCompareOverviewInfo
63
69
  from huaweicloudsdkdrs.v5.model.copy_job_request import CopyJobRequest
64
70
  from huaweicloudsdkdrs.v5.model.copy_job_response import CopyJobResponse
71
+ from huaweicloudsdkdrs.v5.model.count_instance_by_tags_request import CountInstanceByTagsRequest
72
+ from huaweicloudsdkdrs.v5.model.count_instance_by_tags_response import CountInstanceByTagsResponse
65
73
  from huaweicloudsdkdrs.v5.model.create_job_req import CreateJobReq
66
74
  from huaweicloudsdkdrs.v5.model.create_job_request import CreateJobRequest
67
75
  from huaweicloudsdkdrs.v5.model.create_job_resp import CreateJobResp
68
76
  from huaweicloudsdkdrs.v5.model.create_job_response import CreateJobResponse
77
+ from huaweicloudsdkdrs.v5.model.customized_dns import CustomizedDns
69
78
  from huaweicloudsdkdrs.v5.model.data_filtering_condition import DataFilteringCondition
70
79
  from huaweicloudsdkdrs.v5.model.data_process_info import DataProcessInfo
71
80
  from huaweicloudsdkdrs.v5.model.data_process_req import DataProcessReq
@@ -123,20 +132,34 @@ from huaweicloudsdkdrs.v5.model.list_async_jobs_request import ListAsyncJobsRequ
123
132
  from huaweicloudsdkdrs.v5.model.list_async_jobs_response import ListAsyncJobsResponse
124
133
  from huaweicloudsdkdrs.v5.model.list_db_objects_request import ListDbObjectsRequest
125
134
  from huaweicloudsdkdrs.v5.model.list_db_objects_response import ListDbObjectsResponse
135
+ from huaweicloudsdkdrs.v5.model.list_instance_by_tags_request import ListInstanceByTagsRequest
136
+ from huaweicloudsdkdrs.v5.model.list_instance_by_tags_response import ListInstanceByTagsResponse
137
+ from huaweicloudsdkdrs.v5.model.list_instance_tags_request import ListInstanceTagsRequest
138
+ from huaweicloudsdkdrs.v5.model.list_instance_tags_response import ListInstanceTagsResponse
126
139
  from huaweicloudsdkdrs.v5.model.list_jdbc_drivers_request import ListJdbcDriversRequest
127
140
  from huaweicloudsdkdrs.v5.model.list_jdbc_drivers_response import ListJdbcDriversResponse
141
+ from huaweicloudsdkdrs.v5.model.list_job_history_parameter import ListJobHistoryParameter
142
+ from huaweicloudsdkdrs.v5.model.list_job_history_parameters_request import ListJobHistoryParametersRequest
143
+ from huaweicloudsdkdrs.v5.model.list_job_history_parameters_response import ListJobHistoryParametersResponse
144
+ from huaweicloudsdkdrs.v5.model.list_job_parameters_request import ListJobParametersRequest
145
+ from huaweicloudsdkdrs.v5.model.list_job_parameters_response import ListJobParametersResponse
128
146
  from huaweicloudsdkdrs.v5.model.list_jobs_request import ListJobsRequest
129
147
  from huaweicloudsdkdrs.v5.model.list_jobs_response import ListJobsResponse
130
148
  from huaweicloudsdkdrs.v5.model.list_links_request import ListLinksRequest
131
149
  from huaweicloudsdkdrs.v5.model.list_links_response import ListLinksResponse
132
150
  from huaweicloudsdkdrs.v5.model.list_project_tags_request import ListProjectTagsRequest
133
151
  from huaweicloudsdkdrs.v5.model.list_project_tags_response import ListProjectTagsResponse
152
+ from huaweicloudsdkdrs.v5.model.list_tags_request import ListTagsRequest
153
+ from huaweicloudsdkdrs.v5.model.list_tags_response import ListTagsResponse
134
154
  from huaweicloudsdkdrs.v5.model.migration_object_overview_info import MigrationObjectOverviewInfo
155
+ from huaweicloudsdkdrs.v5.model.modify_parameter_req import ModifyParameterReq
135
156
  from huaweicloudsdkdrs.v5.model.modify_start_position_req import ModifyStartPositionReq
136
157
  from huaweicloudsdkdrs.v5.model.modify_tuning_params import ModifyTuningParams
137
158
  from huaweicloudsdkdrs.v5.model.objects_compare_detail_info import ObjectsCompareDetailInfo
138
159
  from huaweicloudsdkdrs.v5.model.objects_compare_overview_info import ObjectsCompareOverviewInfo
139
160
  from huaweicloudsdkdrs.v5.model.objects_compare_task_info import ObjectsCompareTaskInfo
161
+ from huaweicloudsdkdrs.v5.model.parameter_config import ParameterConfig
162
+ from huaweicloudsdkdrs.v5.model.parameter_info import ParameterInfo
140
163
  from huaweicloudsdkdrs.v5.model.period_order_info import PeriodOrderInfo
141
164
  from huaweicloudsdkdrs.v5.model.policy_config import PolicyConfig
142
165
  from huaweicloudsdkdrs.v5.model.precheck_fail_sub_job_result import PrecheckFailSubJobResult
@@ -147,13 +170,16 @@ from huaweicloudsdkdrs.v5.model.project_tag import ProjectTag
147
170
  from huaweicloudsdkdrs.v5.model.query_column_info import QueryColumnInfo
148
171
  from huaweicloudsdkdrs.v5.model.query_column_req import QueryColumnReq
149
172
  from huaweicloudsdkdrs.v5.model.query_db_position_req import QueryDbPositionReq
173
+ from huaweicloudsdkdrs.v5.model.query_instance_by_tag_req import QueryInstanceByTagReq
150
174
  from huaweicloudsdkdrs.v5.model.query_metric_result import QueryMetricResult
151
175
  from huaweicloudsdkdrs.v5.model.query_migration_object_progress_info import QueryMigrationObjectProgressInfo
152
176
  from huaweicloudsdkdrs.v5.model.query_network_result import QueryNetworkResult
153
177
  from huaweicloudsdkdrs.v5.model.query_pre_check_result import QueryPreCheckResult
154
178
  from huaweicloudsdkdrs.v5.model.query_select_object_info_req import QuerySelectObjectInfoReq
155
179
  from huaweicloudsdkdrs.v5.model.query_user_selected_object_info_req import QueryUserSelectedObjectInfoReq
180
+ from huaweicloudsdkdrs.v5.model.resource_instance import ResourceInstance
156
181
  from huaweicloudsdkdrs.v5.model.resource_tag import ResourceTag
182
+ from huaweicloudsdkdrs.v5.model.resource_tag_info import ResourceTagInfo
157
183
  from huaweicloudsdkdrs.v5.model.schema_object import SchemaObject
158
184
  from huaweicloudsdkdrs.v5.model.select_db_table_object_info import SelectDbTableObjectInfo
159
185
  from huaweicloudsdkdrs.v5.model.show_actions_request import ShowActionsRequest
@@ -215,6 +241,8 @@ from huaweicloudsdkdrs.v5.model.sync_jdbc_driver_request import SyncJdbcDriverRe
215
241
  from huaweicloudsdkdrs.v5.model.sync_jdbc_driver_response import SyncJdbcDriverResponse
216
242
  from huaweicloudsdkdrs.v5.model.table_line_compare_detail_info import TableLineCompareDetailInfo
217
243
  from huaweicloudsdkdrs.v5.model.table_object import TableObject
244
+ from huaweicloudsdkdrs.v5.model.tag import Tag
245
+ from huaweicloudsdkdrs.v5.model.tag_match import TagMatch
218
246
  from huaweicloudsdkdrs.v5.model.target_root_db import TargetRootDb
219
247
  from huaweicloudsdkdrs.v5.model.task_log_info import TaskLogInfo
220
248
  from huaweicloudsdkdrs.v5.model.tuning_param_info import TuningParamInfo
@@ -225,6 +253,8 @@ from huaweicloudsdkdrs.v5.model.update_data_progress_request import UpdateDataPr
225
253
  from huaweicloudsdkdrs.v5.model.update_data_progress_response import UpdateDataProgressResponse
226
254
  from huaweicloudsdkdrs.v5.model.update_driver_req import UpdateDriverReq
227
255
  from huaweicloudsdkdrs.v5.model.update_job import UpdateJob
256
+ from huaweicloudsdkdrs.v5.model.update_job_configurations_request import UpdateJobConfigurationsRequest
257
+ from huaweicloudsdkdrs.v5.model.update_job_configurations_response import UpdateJobConfigurationsResponse
228
258
  from huaweicloudsdkdrs.v5.model.update_job_req import UpdateJobReq
229
259
  from huaweicloudsdkdrs.v5.model.update_job_request import UpdateJobRequest
230
260
  from huaweicloudsdkdrs.v5.model.update_job_response import UpdateJobResponse
@@ -35,7 +35,7 @@ class ActionReq:
35
35
 
36
36
  :param job_id: 任务ID (对比任务相关操作,多任务场景传父任务详情返回的master_job_id),批量操作时必填
37
37
  :type job_id: str
38
- :param action_name: 操作任务动作名称。取值: - network:测试连接源库/目标库。 - precheck:执行预检查。 - start:启动任务。 - stop:暂停任务。 - restart:重试任务。 - reset:重置任务。 - terminate:结束任务。 - skip_precheck:跳过预检查。 - create_compare:创建对比任务。 - cancel_compare:取消对比任务。
38
+ :param action_name: 操作任务动作名称。取值: - network:测试连接源库/目标库。 - precheck:执行预检查。 - start:启动任务。 - stop:暂停任务。 - restart:重试任务。 - reset:重置任务。 - terminate:结束任务。 - skip_precheck:跳过预检查。 - create_compare:创建对比任务。 - cancel_compare:取消对比任务。 - column_limit:字段过滤。 - reload_parameters:重新加载任务参数。
39
39
  :type action_name: str
40
40
  :param action_params:
41
41
  :type action_params: :class:`huaweicloudsdkdrs.v5.ActionParams`
@@ -80,7 +80,7 @@ class ActionReq:
80
80
  def action_name(self):
81
81
  """Gets the action_name of this ActionReq.
82
82
 
83
- 操作任务动作名称。取值: - network:测试连接源库/目标库。 - precheck:执行预检查。 - start:启动任务。 - stop:暂停任务。 - restart:重试任务。 - reset:重置任务。 - terminate:结束任务。 - skip_precheck:跳过预检查。 - create_compare:创建对比任务。 - cancel_compare:取消对比任务。
83
+ 操作任务动作名称。取值: - network:测试连接源库/目标库。 - precheck:执行预检查。 - start:启动任务。 - stop:暂停任务。 - restart:重试任务。 - reset:重置任务。 - terminate:结束任务。 - skip_precheck:跳过预检查。 - create_compare:创建对比任务。 - cancel_compare:取消对比任务。 - column_limit:字段过滤。 - reload_parameters:重新加载任务参数。
84
84
 
85
85
  :return: The action_name of this ActionReq.
86
86
  :rtype: str
@@ -91,7 +91,7 @@ class ActionReq:
91
91
  def action_name(self, action_name):
92
92
  """Sets the action_name of this ActionReq.
93
93
 
94
- 操作任务动作名称。取值: - network:测试连接源库/目标库。 - precheck:执行预检查。 - start:启动任务。 - stop:暂停任务。 - restart:重试任务。 - reset:重置任务。 - terminate:结束任务。 - skip_precheck:跳过预检查。 - create_compare:创建对比任务。 - cancel_compare:取消对比任务。
94
+ 操作任务动作名称。取值: - network:测试连接源库/目标库。 - precheck:执行预检查。 - start:启动任务。 - stop:暂停任务。 - restart:重试任务。 - reset:重置任务。 - terminate:结束任务。 - skip_precheck:跳过预检查。 - create_compare:创建对比任务。 - cancel_compare:取消对比任务。 - column_limit:字段过滤。 - reload_parameters:重新加载任务参数。
95
95
 
96
96
  :param action_name: The action_name of this ActionReq.
97
97
  :type action_name: str
@@ -49,9 +49,9 @@ class BaseEndpoint:
49
49
 
50
50
  :param id: 数据库信息ID。
51
51
  :type id: str
52
- :param endpoint_name: 数据库场景类型。取值: - oracle:云下自建Oracle数据库。 - ecs_oracle:华为云ECS自建Oracle数据库。 - cloud_gaussdbv5:华为云数据库GaussDB分布式。 - mysql:他云/本地自建MySQL数据库。 - ecs_mysql:华为云ECS自建MySQL数据库。 - cloud_mysql:华为云数据库RDS for MySQL。
52
+ :param endpoint_name: 数据库场景类型。取值: - oracle:云下自建Oracle数据库。 - ecs_oracle:华为云ECS自建Oracle数据库。 - cloud_gaussdbv5:华为云数据库GaussDB分布式。 - mysql:他云/本地自建MySQL数据库。 - ecs_mysql:华为云ECS自建MySQL数据库。 - cloud_mysql:华为云数据库RDS for MySQL。 - redis:云下自建Redis数据。 - ecs_redis:华为云ECS自建Redis数据。 - rediscluster:云下自建Redis集群数据库。 - ecs_rediscluster:华为云ECS自建Redis集群数据库。 - cloud_gaussdb_redis:华为云数据库GeminiDB Redis。
53
53
  :type endpoint_name: str
54
- :param ip: 数据库IP。 约束: - 数据库为自建MongoDB时,数据库IP与端口之间用“:”英文冒号拼接,多个值之间请用“,”英文逗号隔开,最多支持填写3个IP地址或域名。 - 数据库为DDS实例时,数据库IP与端口之间用“:”英文冒号拼接,多个IP端口之间请用“,”英文逗号分隔。 示例: - MySQL:192.168.0.10 - MongoDB:192.168.0.10:8080,192.168.0.11:8080,192.168.0.12:8080 - DDS:192.168.205.130:8635,192.168.250.64:8635
54
+ :param ip: 数据库IP。 约束: - 数据库为自建MongoDB时,数据库IP与端口之间用“:”英文冒号拼接,多个值之间请用“,”英文逗号隔开,最多支持填写3个IP地址或域名。 - 数据库为DDS实例时,数据库IP与端口之间用“:”英文冒号拼接,多个IP端口之间请用“,”英文逗号分隔。 - 数据库为Redis集群时,请填写源端Redis集群所有分片的IP地址和对应端口,数据库IP与端口之间用“:”英文冒号拼接,多个IP端口之间请用“,”英文逗号分隔,并且推荐填写集群分片的Slave节点的IP地址。最多支持填写32个IP地址或域名,多个值之间请用英文逗号隔开。 示例: - MySQL:192.168.0.10 - MongoDB:192.168.0.10:8080,192.168.0.11:8080,192.168.0.12:8080 - DDS:192.168.205.130:8635,192.168.250.64:8635 - Redis集群:192.168.0.1:8080,192.168.0.2:8080
55
55
  :type ip: str
56
56
  :param db_port: 数据库端口。 约束:输入范围为1-65535之间的整数。
57
57
  :type db_port: str
@@ -127,7 +127,7 @@ class BaseEndpoint:
127
127
  def endpoint_name(self):
128
128
  """Gets the endpoint_name of this BaseEndpoint.
129
129
 
130
- 数据库场景类型。取值: - oracle:云下自建Oracle数据库。 - ecs_oracle:华为云ECS自建Oracle数据库。 - cloud_gaussdbv5:华为云数据库GaussDB分布式。 - mysql:他云/本地自建MySQL数据库。 - ecs_mysql:华为云ECS自建MySQL数据库。 - cloud_mysql:华为云数据库RDS for MySQL。
130
+ 数据库场景类型。取值: - oracle:云下自建Oracle数据库。 - ecs_oracle:华为云ECS自建Oracle数据库。 - cloud_gaussdbv5:华为云数据库GaussDB分布式。 - mysql:他云/本地自建MySQL数据库。 - ecs_mysql:华为云ECS自建MySQL数据库。 - cloud_mysql:华为云数据库RDS for MySQL。 - redis:云下自建Redis数据。 - ecs_redis:华为云ECS自建Redis数据。 - rediscluster:云下自建Redis集群数据库。 - ecs_rediscluster:华为云ECS自建Redis集群数据库。 - cloud_gaussdb_redis:华为云数据库GeminiDB Redis。
131
131
 
132
132
  :return: The endpoint_name of this BaseEndpoint.
133
133
  :rtype: str
@@ -138,7 +138,7 @@ class BaseEndpoint:
138
138
  def endpoint_name(self, endpoint_name):
139
139
  """Sets the endpoint_name of this BaseEndpoint.
140
140
 
141
- 数据库场景类型。取值: - oracle:云下自建Oracle数据库。 - ecs_oracle:华为云ECS自建Oracle数据库。 - cloud_gaussdbv5:华为云数据库GaussDB分布式。 - mysql:他云/本地自建MySQL数据库。 - ecs_mysql:华为云ECS自建MySQL数据库。 - cloud_mysql:华为云数据库RDS for MySQL。
141
+ 数据库场景类型。取值: - oracle:云下自建Oracle数据库。 - ecs_oracle:华为云ECS自建Oracle数据库。 - cloud_gaussdbv5:华为云数据库GaussDB分布式。 - mysql:他云/本地自建MySQL数据库。 - ecs_mysql:华为云ECS自建MySQL数据库。 - cloud_mysql:华为云数据库RDS for MySQL。 - redis:云下自建Redis数据。 - ecs_redis:华为云ECS自建Redis数据。 - rediscluster:云下自建Redis集群数据库。 - ecs_rediscluster:华为云ECS自建Redis集群数据库。 - cloud_gaussdb_redis:华为云数据库GeminiDB Redis。
142
142
 
143
143
  :param endpoint_name: The endpoint_name of this BaseEndpoint.
144
144
  :type endpoint_name: str
@@ -149,7 +149,7 @@ class BaseEndpoint:
149
149
  def ip(self):
150
150
  """Gets the ip of this BaseEndpoint.
151
151
 
152
- 数据库IP。 约束: - 数据库为自建MongoDB时,数据库IP与端口之间用“:”英文冒号拼接,多个值之间请用“,”英文逗号隔开,最多支持填写3个IP地址或域名。 - 数据库为DDS实例时,数据库IP与端口之间用“:”英文冒号拼接,多个IP端口之间请用“,”英文逗号分隔。 示例: - MySQL:192.168.0.10 - MongoDB:192.168.0.10:8080,192.168.0.11:8080,192.168.0.12:8080 - DDS:192.168.205.130:8635,192.168.250.64:8635
152
+ 数据库IP。 约束: - 数据库为自建MongoDB时,数据库IP与端口之间用“:”英文冒号拼接,多个值之间请用“,”英文逗号隔开,最多支持填写3个IP地址或域名。 - 数据库为DDS实例时,数据库IP与端口之间用“:”英文冒号拼接,多个IP端口之间请用“,”英文逗号分隔。 - 数据库为Redis集群时,请填写源端Redis集群所有分片的IP地址和对应端口,数据库IP与端口之间用“:”英文冒号拼接,多个IP端口之间请用“,”英文逗号分隔,并且推荐填写集群分片的Slave节点的IP地址。最多支持填写32个IP地址或域名,多个值之间请用英文逗号隔开。 示例: - MySQL:192.168.0.10 - MongoDB:192.168.0.10:8080,192.168.0.11:8080,192.168.0.12:8080 - DDS:192.168.205.130:8635,192.168.250.64:8635 - Redis集群:192.168.0.1:8080,192.168.0.2:8080
153
153
 
154
154
  :return: The ip of this BaseEndpoint.
155
155
  :rtype: str
@@ -160,7 +160,7 @@ class BaseEndpoint:
160
160
  def ip(self, ip):
161
161
  """Sets the ip of this BaseEndpoint.
162
162
 
163
- 数据库IP。 约束: - 数据库为自建MongoDB时,数据库IP与端口之间用“:”英文冒号拼接,多个值之间请用“,”英文逗号隔开,最多支持填写3个IP地址或域名。 - 数据库为DDS实例时,数据库IP与端口之间用“:”英文冒号拼接,多个IP端口之间请用“,”英文逗号分隔。 示例: - MySQL:192.168.0.10 - MongoDB:192.168.0.10:8080,192.168.0.11:8080,192.168.0.12:8080 - DDS:192.168.205.130:8635,192.168.250.64:8635
163
+ 数据库IP。 约束: - 数据库为自建MongoDB时,数据库IP与端口之间用“:”英文冒号拼接,多个值之间请用“,”英文逗号隔开,最多支持填写3个IP地址或域名。 - 数据库为DDS实例时,数据库IP与端口之间用“:”英文冒号拼接,多个IP端口之间请用“,”英文逗号分隔。 - 数据库为Redis集群时,请填写源端Redis集群所有分片的IP地址和对应端口,数据库IP与端口之间用“:”英文冒号拼接,多个IP端口之间请用“,”英文逗号分隔,并且推荐填写集群分片的Slave节点的IP地址。最多支持填写32个IP地址或域名,多个值之间请用英文逗号隔开。 示例: - MySQL:192.168.0.10 - MongoDB:192.168.0.10:8080,192.168.0.11:8080,192.168.0.12:8080 - DDS:192.168.205.130:8635,192.168.250.64:8635 - Redis集群:192.168.0.1:8080,192.168.0.2:8080
164
164
 
165
165
  :param ip: The ip of this BaseEndpoint.
166
166
  :type ip: str
@@ -17,29 +17,36 @@ class BaseEndpointConfig:
17
17
  sensitive_list = []
18
18
 
19
19
  openapi_types = {
20
- 'is_target_readonly': 'bool'
20
+ 'is_target_readonly': 'bool',
21
+ 'node_num': 'int'
21
22
  }
22
23
 
23
24
  attribute_map = {
24
- 'is_target_readonly': 'is_target_readonly'
25
+ 'is_target_readonly': 'is_target_readonly',
26
+ 'node_num': 'node_num'
25
27
  }
26
28
 
27
- def __init__(self, is_target_readonly=None):
29
+ def __init__(self, is_target_readonly=None, node_num=None):
28
30
  """BaseEndpointConfig
29
31
 
30
32
  The model defined in huaweicloud sdk
31
33
 
32
34
  :param is_target_readonly: 目标实例是否设置为为只读。 - MySQL迁移和灾备,且job_direction为up时设置有效。(灾备场景下,单主灾备且本云为备为必填且为true,不填默认设置为true)。
33
35
  :type is_target_readonly: bool
36
+ :param node_num: Redis集群到GeminiDB Redis迁移场景填写,连接源端Redis集群的子任务个数,输入值在1到16之间,且输入值不能大于源端Redis集群的分片个数,请根据源端Redis集群的规模合理选择。建议集群的每4个分片设置1个源端分片个数,即每1个子任务连接源端集群的4个分片。
37
+ :type node_num: int
34
38
  """
35
39
 
36
40
 
37
41
 
38
42
  self._is_target_readonly = None
43
+ self._node_num = None
39
44
  self.discriminator = None
40
45
 
41
46
  if is_target_readonly is not None:
42
47
  self.is_target_readonly = is_target_readonly
48
+ if node_num is not None:
49
+ self.node_num = node_num
43
50
 
44
51
  @property
45
52
  def is_target_readonly(self):
@@ -63,6 +70,28 @@ class BaseEndpointConfig:
63
70
  """
64
71
  self._is_target_readonly = is_target_readonly
65
72
 
73
+ @property
74
+ def node_num(self):
75
+ """Gets the node_num of this BaseEndpointConfig.
76
+
77
+ Redis集群到GeminiDB Redis迁移场景填写,连接源端Redis集群的子任务个数,输入值在1到16之间,且输入值不能大于源端Redis集群的分片个数,请根据源端Redis集群的规模合理选择。建议集群的每4个分片设置1个源端分片个数,即每1个子任务连接源端集群的4个分片。
78
+
79
+ :return: The node_num of this BaseEndpointConfig.
80
+ :rtype: int
81
+ """
82
+ return self._node_num
83
+
84
+ @node_num.setter
85
+ def node_num(self, node_num):
86
+ """Sets the node_num of this BaseEndpointConfig.
87
+
88
+ Redis集群到GeminiDB Redis迁移场景填写,连接源端Redis集群的子任务个数,输入值在1到16之间,且输入值不能大于源端Redis集群的分片个数,请根据源端Redis集群的规模合理选择。建议集群的每4个分片设置1个源端分片个数,即每1个子任务连接源端集群的4个分片。
89
+
90
+ :param node_num: The node_num of this BaseEndpointConfig.
91
+ :type node_num: int
92
+ """
93
+ self._node_num = node_num
94
+
66
95
  def to_dict(self):
67
96
  """Returns the model properties as a dict"""
68
97
  result = {}
@@ -0,0 +1,114 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class BatchAddTagReq:
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
+ 'tags': 'list[BatchResourceTag]'
21
+ }
22
+
23
+ attribute_map = {
24
+ 'tags': 'tags'
25
+ }
26
+
27
+ def __init__(self, tags=None):
28
+ """BatchAddTagReq
29
+
30
+ The model defined in huaweicloud sdk
31
+
32
+ :param tags: 标签列表。
33
+ :type tags: list[:class:`huaweicloudsdkdrs.v5.BatchResourceTag`]
34
+ """
35
+
36
+
37
+
38
+ self._tags = None
39
+ self.discriminator = None
40
+
41
+ self.tags = tags
42
+
43
+ @property
44
+ def tags(self):
45
+ """Gets the tags of this BatchAddTagReq.
46
+
47
+ 标签列表。
48
+
49
+ :return: The tags of this BatchAddTagReq.
50
+ :rtype: list[:class:`huaweicloudsdkdrs.v5.BatchResourceTag`]
51
+ """
52
+ return self._tags
53
+
54
+ @tags.setter
55
+ def tags(self, tags):
56
+ """Sets the tags of this BatchAddTagReq.
57
+
58
+ 标签列表。
59
+
60
+ :param tags: The tags of this BatchAddTagReq.
61
+ :type tags: list[:class:`huaweicloudsdkdrs.v5.BatchResourceTag`]
62
+ """
63
+ self._tags = tags
64
+
65
+ def to_dict(self):
66
+ """Returns the model properties as a dict"""
67
+ result = {}
68
+
69
+ for attr, _ in six.iteritems(self.openapi_types):
70
+ value = getattr(self, attr)
71
+ if isinstance(value, list):
72
+ result[attr] = list(map(
73
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
74
+ value
75
+ ))
76
+ elif hasattr(value, "to_dict"):
77
+ result[attr] = value.to_dict()
78
+ elif isinstance(value, dict):
79
+ result[attr] = dict(map(
80
+ lambda item: (item[0], item[1].to_dict())
81
+ if hasattr(item[1], "to_dict") else item,
82
+ value.items()
83
+ ))
84
+ else:
85
+ if attr in self.sensitive_list:
86
+ result[attr] = "****"
87
+ else:
88
+ result[attr] = value
89
+
90
+ return result
91
+
92
+ def to_str(self):
93
+ """Returns the string representation of the model"""
94
+ import simplejson as json
95
+ if six.PY2:
96
+ import sys
97
+ reload(sys)
98
+ sys.setdefaultencoding("utf-8")
99
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
100
+
101
+ def __repr__(self):
102
+ """For `print`"""
103
+ return self.to_str()
104
+
105
+ def __eq__(self, other):
106
+ """Returns true if both objects are equal"""
107
+ if not isinstance(other, BatchAddTagReq):
108
+ return False
109
+
110
+ return self.__dict__ == other.__dict__
111
+
112
+ def __ne__(self, other):
113
+ """Returns true if both objects are not equal"""
114
+ return not self == other
@@ -0,0 +1,196 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class BatchCreateTagsRequest:
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
+ 'resource_type': 'str',
21
+ 'x_language': 'str',
22
+ 'resource_id': 'str',
23
+ 'body': 'BatchAddTagReq'
24
+ }
25
+
26
+ attribute_map = {
27
+ 'resource_type': 'resource_type',
28
+ 'x_language': 'X-Language',
29
+ 'resource_id': 'resource_id',
30
+ 'body': 'body'
31
+ }
32
+
33
+ def __init__(self, resource_type=None, x_language=None, resource_id=None, body=None):
34
+ """BatchCreateTagsRequest
35
+
36
+ The model defined in huaweicloud sdk
37
+
38
+ :param resource_type: 资源类型。 - migration:实时迁移 - sync:实时同步 - cloudDataGuard:实时灾备 - subscription:数据订阅 - backupMigration:备份迁移 - replay:录制回放
39
+ :type resource_type: str
40
+ :param x_language: 请求语言类型。
41
+ :type x_language: str
42
+ :param resource_id: 资源ID,即DRS任务ID。
43
+ :type resource_id: str
44
+ :param body: Body of the BatchCreateTagsRequest
45
+ :type body: :class:`huaweicloudsdkdrs.v5.BatchAddTagReq`
46
+ """
47
+
48
+
49
+
50
+ self._resource_type = None
51
+ self._x_language = None
52
+ self._resource_id = None
53
+ self._body = None
54
+ self.discriminator = None
55
+
56
+ self.resource_type = resource_type
57
+ if x_language is not None:
58
+ self.x_language = x_language
59
+ self.resource_id = resource_id
60
+ if body is not None:
61
+ self.body = body
62
+
63
+ @property
64
+ def resource_type(self):
65
+ """Gets the resource_type of this BatchCreateTagsRequest.
66
+
67
+ 资源类型。 - migration:实时迁移 - sync:实时同步 - cloudDataGuard:实时灾备 - subscription:数据订阅 - backupMigration:备份迁移 - replay:录制回放
68
+
69
+ :return: The resource_type of this BatchCreateTagsRequest.
70
+ :rtype: str
71
+ """
72
+ return self._resource_type
73
+
74
+ @resource_type.setter
75
+ def resource_type(self, resource_type):
76
+ """Sets the resource_type of this BatchCreateTagsRequest.
77
+
78
+ 资源类型。 - migration:实时迁移 - sync:实时同步 - cloudDataGuard:实时灾备 - subscription:数据订阅 - backupMigration:备份迁移 - replay:录制回放
79
+
80
+ :param resource_type: The resource_type of this BatchCreateTagsRequest.
81
+ :type resource_type: str
82
+ """
83
+ self._resource_type = resource_type
84
+
85
+ @property
86
+ def x_language(self):
87
+ """Gets the x_language of this BatchCreateTagsRequest.
88
+
89
+ 请求语言类型。
90
+
91
+ :return: The x_language of this BatchCreateTagsRequest.
92
+ :rtype: str
93
+ """
94
+ return self._x_language
95
+
96
+ @x_language.setter
97
+ def x_language(self, x_language):
98
+ """Sets the x_language of this BatchCreateTagsRequest.
99
+
100
+ 请求语言类型。
101
+
102
+ :param x_language: The x_language of this BatchCreateTagsRequest.
103
+ :type x_language: str
104
+ """
105
+ self._x_language = x_language
106
+
107
+ @property
108
+ def resource_id(self):
109
+ """Gets the resource_id of this BatchCreateTagsRequest.
110
+
111
+ 资源ID,即DRS任务ID。
112
+
113
+ :return: The resource_id of this BatchCreateTagsRequest.
114
+ :rtype: str
115
+ """
116
+ return self._resource_id
117
+
118
+ @resource_id.setter
119
+ def resource_id(self, resource_id):
120
+ """Sets the resource_id of this BatchCreateTagsRequest.
121
+
122
+ 资源ID,即DRS任务ID。
123
+
124
+ :param resource_id: The resource_id of this BatchCreateTagsRequest.
125
+ :type resource_id: str
126
+ """
127
+ self._resource_id = resource_id
128
+
129
+ @property
130
+ def body(self):
131
+ """Gets the body of this BatchCreateTagsRequest.
132
+
133
+ :return: The body of this BatchCreateTagsRequest.
134
+ :rtype: :class:`huaweicloudsdkdrs.v5.BatchAddTagReq`
135
+ """
136
+ return self._body
137
+
138
+ @body.setter
139
+ def body(self, body):
140
+ """Sets the body of this BatchCreateTagsRequest.
141
+
142
+ :param body: The body of this BatchCreateTagsRequest.
143
+ :type body: :class:`huaweicloudsdkdrs.v5.BatchAddTagReq`
144
+ """
145
+ self._body = body
146
+
147
+ def to_dict(self):
148
+ """Returns the model properties as a dict"""
149
+ result = {}
150
+
151
+ for attr, _ in six.iteritems(self.openapi_types):
152
+ value = getattr(self, attr)
153
+ if isinstance(value, list):
154
+ result[attr] = list(map(
155
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
156
+ value
157
+ ))
158
+ elif hasattr(value, "to_dict"):
159
+ result[attr] = value.to_dict()
160
+ elif isinstance(value, dict):
161
+ result[attr] = dict(map(
162
+ lambda item: (item[0], item[1].to_dict())
163
+ if hasattr(item[1], "to_dict") else item,
164
+ value.items()
165
+ ))
166
+ else:
167
+ if attr in self.sensitive_list:
168
+ result[attr] = "****"
169
+ else:
170
+ result[attr] = value
171
+
172
+ return result
173
+
174
+ def to_str(self):
175
+ """Returns the string representation of the model"""
176
+ import simplejson as json
177
+ if six.PY2:
178
+ import sys
179
+ reload(sys)
180
+ sys.setdefaultencoding("utf-8")
181
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
182
+
183
+ def __repr__(self):
184
+ """For `print`"""
185
+ return self.to_str()
186
+
187
+ def __eq__(self, other):
188
+ """Returns true if both objects are equal"""
189
+ if not isinstance(other, BatchCreateTagsRequest):
190
+ return False
191
+
192
+ return self.__dict__ == other.__dict__
193
+
194
+ def __ne__(self, other):
195
+ """Returns true if both objects are not equal"""
196
+ return not self == other