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.
- huaweicloudsdkdrs/v3/__init__.py +1 -0
- huaweicloudsdkdrs/v3/model/__init__.py +1 -0
- huaweicloudsdkdrs/v3/model/customized_dns.py +170 -0
- huaweicloudsdkdrs/v3/model/test_end_point.py +28 -3
- huaweicloudsdkdrs/v5/__init__.py +30 -0
- huaweicloudsdkdrs/v5/drs_async_client.py +736 -94
- huaweicloudsdkdrs/v5/drs_client.py +736 -94
- huaweicloudsdkdrs/v5/model/__init__.py +30 -0
- huaweicloudsdkdrs/v5/model/action_req.py +3 -3
- huaweicloudsdkdrs/v5/model/base_endpoint.py +6 -6
- huaweicloudsdkdrs/v5/model/base_endpoint_config.py +32 -3
- huaweicloudsdkdrs/v5/model/batch_add_tag_req.py +114 -0
- huaweicloudsdkdrs/v5/model/batch_create_tags_request.py +196 -0
- huaweicloudsdkdrs/v5/model/batch_create_tags_response.py +116 -0
- huaweicloudsdkdrs/v5/model/batch_delete_tag_req.py +114 -0
- huaweicloudsdkdrs/v5/model/batch_delete_tags_request.py +196 -0
- huaweicloudsdkdrs/v5/model/batch_delete_tags_response.py +116 -0
- huaweicloudsdkdrs/v5/model/children_job_list_resp.py +3 -3
- huaweicloudsdkdrs/v5/model/count_instance_by_tags_request.py +168 -0
- huaweicloudsdkdrs/v5/model/count_instance_by_tags_response.py +116 -0
- huaweicloudsdkdrs/v5/model/customized_dns.py +170 -0
- huaweicloudsdkdrs/v5/model/job_base_info.py +3 -3
- huaweicloudsdkdrs/v5/model/job_endpoint_info.py +31 -6
- huaweicloudsdkdrs/v5/model/job_link_resp.py +3 -3
- huaweicloudsdkdrs/v5/model/job_list_resp.py +3 -3
- huaweicloudsdkdrs/v5/model/list_instance_by_tags_request.py +226 -0
- huaweicloudsdkdrs/v5/model/list_instance_by_tags_response.py +145 -0
- huaweicloudsdkdrs/v5/model/list_instance_tags_request.py +171 -0
- huaweicloudsdkdrs/v5/model/list_instance_tags_response.py +116 -0
- huaweicloudsdkdrs/v5/model/list_job_history_parameter.py +283 -0
- huaweicloudsdkdrs/v5/model/list_job_history_parameters_request.py +288 -0
- huaweicloudsdkdrs/v5/model/list_job_history_parameters_response.py +145 -0
- huaweicloudsdkdrs/v5/model/list_job_parameters_request.py +230 -0
- huaweicloudsdkdrs/v5/model/list_job_parameters_response.py +145 -0
- huaweicloudsdkdrs/v5/model/list_jobs_request.py +3 -3
- huaweicloudsdkdrs/v5/model/list_tags_request.py +143 -0
- huaweicloudsdkdrs/v5/model/list_tags_response.py +116 -0
- huaweicloudsdkdrs/v5/model/modify_parameter_req.py +114 -0
- huaweicloudsdkdrs/v5/model/parameter_config.py +312 -0
- huaweicloudsdkdrs/v5/model/parameter_info.py +142 -0
- huaweicloudsdkdrs/v5/model/query_instance_by_tag_req.py +173 -0
- huaweicloudsdkdrs/v5/model/resource_instance.py +202 -0
- huaweicloudsdkdrs/v5/model/resource_tag_info.py +144 -0
- huaweicloudsdkdrs/v5/model/tag.py +142 -0
- huaweicloudsdkdrs/v5/model/tag_match.py +142 -0
- huaweicloudsdkdrs/v5/model/update_job_configurations_request.py +168 -0
- huaweicloudsdkdrs/v5/model/update_job_configurations_response.py +116 -0
- {huaweicloudsdkdrs-3.1.76.dist-info → huaweicloudsdkdrs-3.1.77.dist-info}/METADATA +2 -2
- {huaweicloudsdkdrs-3.1.76.dist-info → huaweicloudsdkdrs-3.1.77.dist-info}/RECORD +52 -21
- {huaweicloudsdkdrs-3.1.76.dist-info → huaweicloudsdkdrs-3.1.77.dist-info}/LICENSE +0 -0
- {huaweicloudsdkdrs-3.1.76.dist-info → huaweicloudsdkdrs-3.1.77.dist-info}/WHEEL +0 -0
- {huaweicloudsdkdrs-3.1.76.dist-info → huaweicloudsdkdrs-3.1.77.dist-info}/top_level.txt +0 -0
@@ -99,6 +99,77 @@ class DrsAsyncClient(Client):
|
|
99
99
|
|
100
100
|
return http_info
|
101
101
|
|
102
|
+
def batch_create_tags_async(self, request):
|
103
|
+
"""批量添加资源标签
|
104
|
+
|
105
|
+
批量添加资源标签。
|
106
|
+
|
107
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
108
|
+
|
109
|
+
|
110
|
+
:param request: Request instance for BatchCreateTags
|
111
|
+
:type request: :class:`huaweicloudsdkdrs.v5.BatchCreateTagsRequest`
|
112
|
+
:rtype: :class:`huaweicloudsdkdrs.v5.BatchCreateTagsResponse`
|
113
|
+
"""
|
114
|
+
http_info = self._batch_create_tags_http_info(request)
|
115
|
+
return self._call_api(**http_info)
|
116
|
+
|
117
|
+
def batch_create_tags_async_invoker(self, request):
|
118
|
+
http_info = self._batch_create_tags_http_info(request)
|
119
|
+
return AsyncInvoker(self, http_info)
|
120
|
+
|
121
|
+
def _batch_create_tags_http_info(self, request):
|
122
|
+
http_info = {
|
123
|
+
"method": "POST",
|
124
|
+
"resource_path": "/v5/{project_id}/{resource_type}/{resource_id}/tags/create",
|
125
|
+
"request_type": request.__class__.__name__,
|
126
|
+
"response_type": "BatchCreateTagsResponse"
|
127
|
+
}
|
128
|
+
|
129
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
130
|
+
|
131
|
+
cname = None
|
132
|
+
|
133
|
+
collection_formats = {}
|
134
|
+
|
135
|
+
path_params = {}
|
136
|
+
if 'resource_type' in local_var_params:
|
137
|
+
path_params['resource_type'] = local_var_params['resource_type']
|
138
|
+
if 'resource_id' in local_var_params:
|
139
|
+
path_params['resource_id'] = local_var_params['resource_id']
|
140
|
+
|
141
|
+
query_params = []
|
142
|
+
|
143
|
+
header_params = {}
|
144
|
+
if 'x_language' in local_var_params:
|
145
|
+
header_params['X-Language'] = local_var_params['x_language']
|
146
|
+
|
147
|
+
form_params = {}
|
148
|
+
|
149
|
+
body = None
|
150
|
+
if 'body' in local_var_params:
|
151
|
+
body = local_var_params['body']
|
152
|
+
if isinstance(request, SdkStreamRequest):
|
153
|
+
body = request.get_file_stream()
|
154
|
+
|
155
|
+
response_headers = []
|
156
|
+
|
157
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
158
|
+
['application/json'])
|
159
|
+
|
160
|
+
auth_settings = []
|
161
|
+
|
162
|
+
http_info["cname"] = cname
|
163
|
+
http_info["collection_formats"] = collection_formats
|
164
|
+
http_info["path_params"] = path_params
|
165
|
+
http_info["query_params"] = query_params
|
166
|
+
http_info["header_params"] = header_params
|
167
|
+
http_info["post_params"] = form_params
|
168
|
+
http_info["body"] = body
|
169
|
+
http_info["response_headers"] = response_headers
|
170
|
+
|
171
|
+
return http_info
|
172
|
+
|
102
173
|
def batch_delete_jobs_by_id_async(self, request):
|
103
174
|
"""批量删除任务
|
104
175
|
|
@@ -166,6 +237,77 @@ class DrsAsyncClient(Client):
|
|
166
237
|
|
167
238
|
return http_info
|
168
239
|
|
240
|
+
def batch_delete_tags_async(self, request):
|
241
|
+
"""批量删除资源标签
|
242
|
+
|
243
|
+
为指定实例批量删除标签。
|
244
|
+
|
245
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
246
|
+
|
247
|
+
|
248
|
+
:param request: Request instance for BatchDeleteTags
|
249
|
+
:type request: :class:`huaweicloudsdkdrs.v5.BatchDeleteTagsRequest`
|
250
|
+
:rtype: :class:`huaweicloudsdkdrs.v5.BatchDeleteTagsResponse`
|
251
|
+
"""
|
252
|
+
http_info = self._batch_delete_tags_http_info(request)
|
253
|
+
return self._call_api(**http_info)
|
254
|
+
|
255
|
+
def batch_delete_tags_async_invoker(self, request):
|
256
|
+
http_info = self._batch_delete_tags_http_info(request)
|
257
|
+
return AsyncInvoker(self, http_info)
|
258
|
+
|
259
|
+
def _batch_delete_tags_http_info(self, request):
|
260
|
+
http_info = {
|
261
|
+
"method": "POST",
|
262
|
+
"resource_path": "/v5/{project_id}/{resource_type}/{resource_id}/tags/delete",
|
263
|
+
"request_type": request.__class__.__name__,
|
264
|
+
"response_type": "BatchDeleteTagsResponse"
|
265
|
+
}
|
266
|
+
|
267
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
268
|
+
|
269
|
+
cname = None
|
270
|
+
|
271
|
+
collection_formats = {}
|
272
|
+
|
273
|
+
path_params = {}
|
274
|
+
if 'resource_type' in local_var_params:
|
275
|
+
path_params['resource_type'] = local_var_params['resource_type']
|
276
|
+
if 'resource_id' in local_var_params:
|
277
|
+
path_params['resource_id'] = local_var_params['resource_id']
|
278
|
+
|
279
|
+
query_params = []
|
280
|
+
|
281
|
+
header_params = {}
|
282
|
+
if 'x_language' in local_var_params:
|
283
|
+
header_params['X-Language'] = local_var_params['x_language']
|
284
|
+
|
285
|
+
form_params = {}
|
286
|
+
|
287
|
+
body = None
|
288
|
+
if 'body' in local_var_params:
|
289
|
+
body = local_var_params['body']
|
290
|
+
if isinstance(request, SdkStreamRequest):
|
291
|
+
body = request.get_file_stream()
|
292
|
+
|
293
|
+
response_headers = []
|
294
|
+
|
295
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
296
|
+
['application/json'])
|
297
|
+
|
298
|
+
auth_settings = []
|
299
|
+
|
300
|
+
http_info["cname"] = cname
|
301
|
+
http_info["collection_formats"] = collection_formats
|
302
|
+
http_info["path_params"] = path_params
|
303
|
+
http_info["query_params"] = query_params
|
304
|
+
http_info["header_params"] = header_params
|
305
|
+
http_info["post_params"] = form_params
|
306
|
+
http_info["body"] = body
|
307
|
+
http_info["response_headers"] = response_headers
|
308
|
+
|
309
|
+
return http_info
|
310
|
+
|
169
311
|
def batch_execute_job_actions_async(self, request):
|
170
312
|
"""批量操作指定ID任务
|
171
313
|
|
@@ -865,6 +1007,75 @@ class DrsAsyncClient(Client):
|
|
865
1007
|
|
866
1008
|
return http_info
|
867
1009
|
|
1010
|
+
def count_instance_by_tags_async(self, request):
|
1011
|
+
"""查询资源实例数量
|
1012
|
+
|
1013
|
+
查询资源实例数量。
|
1014
|
+
|
1015
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
1016
|
+
|
1017
|
+
|
1018
|
+
:param request: Request instance for CountInstanceByTags
|
1019
|
+
:type request: :class:`huaweicloudsdkdrs.v5.CountInstanceByTagsRequest`
|
1020
|
+
:rtype: :class:`huaweicloudsdkdrs.v5.CountInstanceByTagsResponse`
|
1021
|
+
"""
|
1022
|
+
http_info = self._count_instance_by_tags_http_info(request)
|
1023
|
+
return self._call_api(**http_info)
|
1024
|
+
|
1025
|
+
def count_instance_by_tags_async_invoker(self, request):
|
1026
|
+
http_info = self._count_instance_by_tags_http_info(request)
|
1027
|
+
return AsyncInvoker(self, http_info)
|
1028
|
+
|
1029
|
+
def _count_instance_by_tags_http_info(self, request):
|
1030
|
+
http_info = {
|
1031
|
+
"method": "POST",
|
1032
|
+
"resource_path": "/v5/{project_id}/{resource_type}/resource-instances/count",
|
1033
|
+
"request_type": request.__class__.__name__,
|
1034
|
+
"response_type": "CountInstanceByTagsResponse"
|
1035
|
+
}
|
1036
|
+
|
1037
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
1038
|
+
|
1039
|
+
cname = None
|
1040
|
+
|
1041
|
+
collection_formats = {}
|
1042
|
+
|
1043
|
+
path_params = {}
|
1044
|
+
if 'resource_type' in local_var_params:
|
1045
|
+
path_params['resource_type'] = local_var_params['resource_type']
|
1046
|
+
|
1047
|
+
query_params = []
|
1048
|
+
|
1049
|
+
header_params = {}
|
1050
|
+
if 'x_language' in local_var_params:
|
1051
|
+
header_params['X-Language'] = local_var_params['x_language']
|
1052
|
+
|
1053
|
+
form_params = {}
|
1054
|
+
|
1055
|
+
body = None
|
1056
|
+
if 'body' in local_var_params:
|
1057
|
+
body = local_var_params['body']
|
1058
|
+
if isinstance(request, SdkStreamRequest):
|
1059
|
+
body = request.get_file_stream()
|
1060
|
+
|
1061
|
+
response_headers = []
|
1062
|
+
|
1063
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
1064
|
+
['application/json'])
|
1065
|
+
|
1066
|
+
auth_settings = []
|
1067
|
+
|
1068
|
+
http_info["cname"] = cname
|
1069
|
+
http_info["collection_formats"] = collection_formats
|
1070
|
+
http_info["path_params"] = path_params
|
1071
|
+
http_info["query_params"] = query_params
|
1072
|
+
http_info["header_params"] = header_params
|
1073
|
+
http_info["post_params"] = form_params
|
1074
|
+
http_info["body"] = body
|
1075
|
+
http_info["response_headers"] = response_headers
|
1076
|
+
|
1077
|
+
return http_info
|
1078
|
+
|
868
1079
|
def create_job_async(self, request):
|
869
1080
|
"""创建任务
|
870
1081
|
|
@@ -1290,10 +1501,298 @@ class DrsAsyncClient(Client):
|
|
1290
1501
|
|
1291
1502
|
def _export_operation_info_http_info(self, request):
|
1292
1503
|
http_info = {
|
1293
|
-
"method": "POST",
|
1294
|
-
"resource_path": "/v5/{project_id}/jobs/{job_id}/operation-statistics/export",
|
1504
|
+
"method": "POST",
|
1505
|
+
"resource_path": "/v5/{project_id}/jobs/{job_id}/operation-statistics/export",
|
1506
|
+
"request_type": request.__class__.__name__,
|
1507
|
+
"response_type": "ExportOperationInfoResponse"
|
1508
|
+
}
|
1509
|
+
|
1510
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
1511
|
+
|
1512
|
+
cname = None
|
1513
|
+
|
1514
|
+
collection_formats = {}
|
1515
|
+
|
1516
|
+
path_params = {}
|
1517
|
+
if 'job_id' in local_var_params:
|
1518
|
+
path_params['job_id'] = local_var_params['job_id']
|
1519
|
+
|
1520
|
+
query_params = []
|
1521
|
+
|
1522
|
+
header_params = {}
|
1523
|
+
if 'x_language' in local_var_params:
|
1524
|
+
header_params['X-Language'] = local_var_params['x_language']
|
1525
|
+
|
1526
|
+
form_params = {}
|
1527
|
+
|
1528
|
+
body = None
|
1529
|
+
if isinstance(request, SdkStreamRequest):
|
1530
|
+
body = request.get_file_stream()
|
1531
|
+
|
1532
|
+
response_headers = []
|
1533
|
+
|
1534
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
1535
|
+
['application/json'])
|
1536
|
+
|
1537
|
+
auth_settings = []
|
1538
|
+
|
1539
|
+
http_info["cname"] = cname
|
1540
|
+
http_info["collection_formats"] = collection_formats
|
1541
|
+
http_info["path_params"] = path_params
|
1542
|
+
http_info["query_params"] = query_params
|
1543
|
+
http_info["header_params"] = header_params
|
1544
|
+
http_info["post_params"] = form_params
|
1545
|
+
http_info["body"] = body
|
1546
|
+
http_info["response_headers"] = response_headers
|
1547
|
+
|
1548
|
+
return http_info
|
1549
|
+
|
1550
|
+
def import_batch_create_jobs_async(self, request):
|
1551
|
+
"""批量导入任务
|
1552
|
+
|
1553
|
+
批量导入任务
|
1554
|
+
|
1555
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
1556
|
+
|
1557
|
+
|
1558
|
+
:param request: Request instance for ImportBatchCreateJobs
|
1559
|
+
:type request: :class:`huaweicloudsdkdrs.v5.ImportBatchCreateJobsRequest`
|
1560
|
+
:rtype: :class:`huaweicloudsdkdrs.v5.ImportBatchCreateJobsResponse`
|
1561
|
+
"""
|
1562
|
+
http_info = self._import_batch_create_jobs_http_info(request)
|
1563
|
+
return self._call_api(**http_info)
|
1564
|
+
|
1565
|
+
def import_batch_create_jobs_async_invoker(self, request):
|
1566
|
+
http_info = self._import_batch_create_jobs_http_info(request)
|
1567
|
+
return AsyncInvoker(self, http_info)
|
1568
|
+
|
1569
|
+
def _import_batch_create_jobs_http_info(self, request):
|
1570
|
+
http_info = {
|
1571
|
+
"method": "POST",
|
1572
|
+
"resource_path": "/v5/{project_id}/jobs/template",
|
1573
|
+
"request_type": request.__class__.__name__,
|
1574
|
+
"response_type": "ImportBatchCreateJobsResponse"
|
1575
|
+
}
|
1576
|
+
|
1577
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
1578
|
+
|
1579
|
+
cname = None
|
1580
|
+
|
1581
|
+
collection_formats = {}
|
1582
|
+
|
1583
|
+
path_params = {}
|
1584
|
+
|
1585
|
+
query_params = []
|
1586
|
+
|
1587
|
+
header_params = {}
|
1588
|
+
if 'x_language' in local_var_params:
|
1589
|
+
header_params['X-Language'] = local_var_params['x_language']
|
1590
|
+
|
1591
|
+
form_params = {}
|
1592
|
+
if 'file' in local_var_params:
|
1593
|
+
form_params['file'] = local_var_params['file']
|
1594
|
+
|
1595
|
+
body = None
|
1596
|
+
if 'body' in local_var_params:
|
1597
|
+
body = local_var_params['body']
|
1598
|
+
if isinstance(request, SdkStreamRequest):
|
1599
|
+
body = request.get_file_stream()
|
1600
|
+
|
1601
|
+
response_headers = []
|
1602
|
+
|
1603
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
1604
|
+
['multipart/form-data'])
|
1605
|
+
|
1606
|
+
auth_settings = []
|
1607
|
+
|
1608
|
+
http_info["cname"] = cname
|
1609
|
+
http_info["collection_formats"] = collection_formats
|
1610
|
+
http_info["path_params"] = path_params
|
1611
|
+
http_info["query_params"] = query_params
|
1612
|
+
http_info["header_params"] = header_params
|
1613
|
+
http_info["post_params"] = form_params
|
1614
|
+
http_info["body"] = body
|
1615
|
+
http_info["response_headers"] = response_headers
|
1616
|
+
|
1617
|
+
return http_info
|
1618
|
+
|
1619
|
+
def list_async_job_detail_async(self, request):
|
1620
|
+
"""查询指定ID批量异步任务详情
|
1621
|
+
|
1622
|
+
查询租户指定ID批量异步任务详情,默认为任务的“create_time”降序排序获取结果,支持分页查询。
|
1623
|
+
|
1624
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
1625
|
+
|
1626
|
+
|
1627
|
+
:param request: Request instance for ListAsyncJobDetail
|
1628
|
+
:type request: :class:`huaweicloudsdkdrs.v5.ListAsyncJobDetailRequest`
|
1629
|
+
:rtype: :class:`huaweicloudsdkdrs.v5.ListAsyncJobDetailResponse`
|
1630
|
+
"""
|
1631
|
+
http_info = self._list_async_job_detail_http_info(request)
|
1632
|
+
return self._call_api(**http_info)
|
1633
|
+
|
1634
|
+
def list_async_job_detail_async_invoker(self, request):
|
1635
|
+
http_info = self._list_async_job_detail_http_info(request)
|
1636
|
+
return AsyncInvoker(self, http_info)
|
1637
|
+
|
1638
|
+
def _list_async_job_detail_http_info(self, request):
|
1639
|
+
http_info = {
|
1640
|
+
"method": "GET",
|
1641
|
+
"resource_path": "/v5/{project_id}/batch-async-jobs/{async_job_id}",
|
1642
|
+
"request_type": request.__class__.__name__,
|
1643
|
+
"response_type": "ListAsyncJobDetailResponse"
|
1644
|
+
}
|
1645
|
+
|
1646
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
1647
|
+
|
1648
|
+
cname = None
|
1649
|
+
|
1650
|
+
collection_formats = {}
|
1651
|
+
|
1652
|
+
path_params = {}
|
1653
|
+
if 'async_job_id' in local_var_params:
|
1654
|
+
path_params['async_job_id'] = local_var_params['async_job_id']
|
1655
|
+
|
1656
|
+
query_params = []
|
1657
|
+
if 'offset' in local_var_params:
|
1658
|
+
query_params.append(('offset', local_var_params['offset']))
|
1659
|
+
if 'limit' in local_var_params:
|
1660
|
+
query_params.append(('limit', local_var_params['limit']))
|
1661
|
+
|
1662
|
+
header_params = {}
|
1663
|
+
if 'x_language' in local_var_params:
|
1664
|
+
header_params['X-Language'] = local_var_params['x_language']
|
1665
|
+
|
1666
|
+
form_params = {}
|
1667
|
+
|
1668
|
+
body = None
|
1669
|
+
if isinstance(request, SdkStreamRequest):
|
1670
|
+
body = request.get_file_stream()
|
1671
|
+
|
1672
|
+
response_headers = []
|
1673
|
+
|
1674
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
1675
|
+
['application/json'])
|
1676
|
+
|
1677
|
+
auth_settings = []
|
1678
|
+
|
1679
|
+
http_info["cname"] = cname
|
1680
|
+
http_info["collection_formats"] = collection_formats
|
1681
|
+
http_info["path_params"] = path_params
|
1682
|
+
http_info["query_params"] = query_params
|
1683
|
+
http_info["header_params"] = header_params
|
1684
|
+
http_info["post_params"] = form_params
|
1685
|
+
http_info["body"] = body
|
1686
|
+
http_info["response_headers"] = response_headers
|
1687
|
+
|
1688
|
+
return http_info
|
1689
|
+
|
1690
|
+
def list_async_jobs_async(self, request):
|
1691
|
+
"""查询批量异步创建的任务列表
|
1692
|
+
|
1693
|
+
查询租户批量异步创建的任务列表。
|
1694
|
+
|
1695
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
1696
|
+
|
1697
|
+
|
1698
|
+
:param request: Request instance for ListAsyncJobs
|
1699
|
+
:type request: :class:`huaweicloudsdkdrs.v5.ListAsyncJobsRequest`
|
1700
|
+
:rtype: :class:`huaweicloudsdkdrs.v5.ListAsyncJobsResponse`
|
1701
|
+
"""
|
1702
|
+
http_info = self._list_async_jobs_http_info(request)
|
1703
|
+
return self._call_api(**http_info)
|
1704
|
+
|
1705
|
+
def list_async_jobs_async_invoker(self, request):
|
1706
|
+
http_info = self._list_async_jobs_http_info(request)
|
1707
|
+
return AsyncInvoker(self, http_info)
|
1708
|
+
|
1709
|
+
def _list_async_jobs_http_info(self, request):
|
1710
|
+
http_info = {
|
1711
|
+
"method": "GET",
|
1712
|
+
"resource_path": "/v5/{project_id}/batch-async-jobs",
|
1713
|
+
"request_type": request.__class__.__name__,
|
1714
|
+
"response_type": "ListAsyncJobsResponse"
|
1715
|
+
}
|
1716
|
+
|
1717
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
1718
|
+
|
1719
|
+
cname = None
|
1720
|
+
|
1721
|
+
collection_formats = {}
|
1722
|
+
|
1723
|
+
path_params = {}
|
1724
|
+
|
1725
|
+
query_params = []
|
1726
|
+
if 'async_job_id' in local_var_params:
|
1727
|
+
query_params.append(('async_job_id', local_var_params['async_job_id']))
|
1728
|
+
if 'status' in local_var_params:
|
1729
|
+
query_params.append(('status', local_var_params['status']))
|
1730
|
+
if 'domain_name' in local_var_params:
|
1731
|
+
query_params.append(('domain_name', local_var_params['domain_name']))
|
1732
|
+
if 'user_name' in local_var_params:
|
1733
|
+
query_params.append(('user_name', local_var_params['user_name']))
|
1734
|
+
if 'offset' in local_var_params:
|
1735
|
+
query_params.append(('offset', local_var_params['offset']))
|
1736
|
+
if 'limit' in local_var_params:
|
1737
|
+
query_params.append(('limit', local_var_params['limit']))
|
1738
|
+
if 'sort_key' in local_var_params:
|
1739
|
+
query_params.append(('sort_key', local_var_params['sort_key']))
|
1740
|
+
if 'sort_dir' in local_var_params:
|
1741
|
+
query_params.append(('sort_dir', local_var_params['sort_dir']))
|
1742
|
+
|
1743
|
+
header_params = {}
|
1744
|
+
if 'x_language' in local_var_params:
|
1745
|
+
header_params['X-Language'] = local_var_params['x_language']
|
1746
|
+
|
1747
|
+
form_params = {}
|
1748
|
+
|
1749
|
+
body = None
|
1750
|
+
if isinstance(request, SdkStreamRequest):
|
1751
|
+
body = request.get_file_stream()
|
1752
|
+
|
1753
|
+
response_headers = []
|
1754
|
+
|
1755
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
1756
|
+
['application/json'])
|
1757
|
+
|
1758
|
+
auth_settings = []
|
1759
|
+
|
1760
|
+
http_info["cname"] = cname
|
1761
|
+
http_info["collection_formats"] = collection_formats
|
1762
|
+
http_info["path_params"] = path_params
|
1763
|
+
http_info["query_params"] = query_params
|
1764
|
+
http_info["header_params"] = header_params
|
1765
|
+
http_info["post_params"] = form_params
|
1766
|
+
http_info["body"] = body
|
1767
|
+
http_info["response_headers"] = response_headers
|
1768
|
+
|
1769
|
+
return http_info
|
1770
|
+
|
1771
|
+
def list_db_objects_async(self, request):
|
1772
|
+
"""查询数据库对象信息
|
1773
|
+
|
1774
|
+
查询数据库对象信息。
|
1775
|
+
|
1776
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
1777
|
+
|
1778
|
+
|
1779
|
+
:param request: Request instance for ListDbObjects
|
1780
|
+
:type request: :class:`huaweicloudsdkdrs.v5.ListDbObjectsRequest`
|
1781
|
+
:rtype: :class:`huaweicloudsdkdrs.v5.ListDbObjectsResponse`
|
1782
|
+
"""
|
1783
|
+
http_info = self._list_db_objects_http_info(request)
|
1784
|
+
return self._call_api(**http_info)
|
1785
|
+
|
1786
|
+
def list_db_objects_async_invoker(self, request):
|
1787
|
+
http_info = self._list_db_objects_http_info(request)
|
1788
|
+
return AsyncInvoker(self, http_info)
|
1789
|
+
|
1790
|
+
def _list_db_objects_http_info(self, request):
|
1791
|
+
http_info = {
|
1792
|
+
"method": "GET",
|
1793
|
+
"resource_path": "/v5/{project_id}/jobs/{job_id}/db-objects",
|
1295
1794
|
"request_type": request.__class__.__name__,
|
1296
|
-
"response_type": "
|
1795
|
+
"response_type": "ListDbObjectsResponse"
|
1297
1796
|
}
|
1298
1797
|
|
1299
1798
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
@@ -1307,6 +1806,15 @@ class DrsAsyncClient(Client):
|
|
1307
1806
|
path_params['job_id'] = local_var_params['job_id']
|
1308
1807
|
|
1309
1808
|
query_params = []
|
1809
|
+
if 'offset' in local_var_params:
|
1810
|
+
query_params.append(('offset', local_var_params['offset']))
|
1811
|
+
if 'limit' in local_var_params:
|
1812
|
+
query_params.append(('limit', local_var_params['limit']))
|
1813
|
+
if 'type' in local_var_params:
|
1814
|
+
query_params.append(('type', local_var_params['type']))
|
1815
|
+
if 'db_names' in local_var_params:
|
1816
|
+
query_params.append(('db_names', local_var_params['db_names']))
|
1817
|
+
collection_formats['db_names'] = 'csv'
|
1310
1818
|
|
1311
1819
|
header_params = {}
|
1312
1820
|
if 'x_language' in local_var_params:
|
@@ -1336,31 +1844,31 @@ class DrsAsyncClient(Client):
|
|
1336
1844
|
|
1337
1845
|
return http_info
|
1338
1846
|
|
1339
|
-
def
|
1340
|
-
"""
|
1847
|
+
def list_instance_by_tags_async(self, request):
|
1848
|
+
"""查询资源实例列表
|
1341
1849
|
|
1342
|
-
|
1850
|
+
查询资源实例列表。
|
1343
1851
|
|
1344
1852
|
Please refer to HUAWEI cloud API Explorer for details.
|
1345
1853
|
|
1346
1854
|
|
1347
|
-
:param request: Request instance for
|
1348
|
-
:type request: :class:`huaweicloudsdkdrs.v5.
|
1349
|
-
:rtype: :class:`huaweicloudsdkdrs.v5.
|
1855
|
+
:param request: Request instance for ListInstanceByTags
|
1856
|
+
:type request: :class:`huaweicloudsdkdrs.v5.ListInstanceByTagsRequest`
|
1857
|
+
:rtype: :class:`huaweicloudsdkdrs.v5.ListInstanceByTagsResponse`
|
1350
1858
|
"""
|
1351
|
-
http_info = self.
|
1859
|
+
http_info = self._list_instance_by_tags_http_info(request)
|
1352
1860
|
return self._call_api(**http_info)
|
1353
1861
|
|
1354
|
-
def
|
1355
|
-
http_info = self.
|
1862
|
+
def list_instance_by_tags_async_invoker(self, request):
|
1863
|
+
http_info = self._list_instance_by_tags_http_info(request)
|
1356
1864
|
return AsyncInvoker(self, http_info)
|
1357
1865
|
|
1358
|
-
def
|
1866
|
+
def _list_instance_by_tags_http_info(self, request):
|
1359
1867
|
http_info = {
|
1360
1868
|
"method": "POST",
|
1361
|
-
"resource_path": "/v5/{project_id}/
|
1869
|
+
"resource_path": "/v5/{project_id}/{resource_type}/resource-instances/filter",
|
1362
1870
|
"request_type": request.__class__.__name__,
|
1363
|
-
"response_type": "
|
1871
|
+
"response_type": "ListInstanceByTagsResponse"
|
1364
1872
|
}
|
1365
1873
|
|
1366
1874
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
@@ -1370,16 +1878,20 @@ class DrsAsyncClient(Client):
|
|
1370
1878
|
collection_formats = {}
|
1371
1879
|
|
1372
1880
|
path_params = {}
|
1881
|
+
if 'resource_type' in local_var_params:
|
1882
|
+
path_params['resource_type'] = local_var_params['resource_type']
|
1373
1883
|
|
1374
1884
|
query_params = []
|
1885
|
+
if 'limit' in local_var_params:
|
1886
|
+
query_params.append(('limit', local_var_params['limit']))
|
1887
|
+
if 'offset' in local_var_params:
|
1888
|
+
query_params.append(('offset', local_var_params['offset']))
|
1375
1889
|
|
1376
1890
|
header_params = {}
|
1377
1891
|
if 'x_language' in local_var_params:
|
1378
1892
|
header_params['X-Language'] = local_var_params['x_language']
|
1379
1893
|
|
1380
1894
|
form_params = {}
|
1381
|
-
if 'file' in local_var_params:
|
1382
|
-
form_params['file'] = local_var_params['file']
|
1383
1895
|
|
1384
1896
|
body = None
|
1385
1897
|
if 'body' in local_var_params:
|
@@ -1390,7 +1902,7 @@ class DrsAsyncClient(Client):
|
|
1390
1902
|
response_headers = []
|
1391
1903
|
|
1392
1904
|
header_params['Content-Type'] = http_utils.select_header_content_type(
|
1393
|
-
['
|
1905
|
+
['application/json'])
|
1394
1906
|
|
1395
1907
|
auth_settings = []
|
1396
1908
|
|
@@ -1405,31 +1917,31 @@ class DrsAsyncClient(Client):
|
|
1405
1917
|
|
1406
1918
|
return http_info
|
1407
1919
|
|
1408
|
-
def
|
1409
|
-
"""
|
1920
|
+
def list_instance_tags_async(self, request):
|
1921
|
+
"""查询资源标签
|
1410
1922
|
|
1411
|
-
|
1923
|
+
查询指定实例的标签信息。
|
1412
1924
|
|
1413
1925
|
Please refer to HUAWEI cloud API Explorer for details.
|
1414
1926
|
|
1415
1927
|
|
1416
|
-
:param request: Request instance for
|
1417
|
-
:type request: :class:`huaweicloudsdkdrs.v5.
|
1418
|
-
:rtype: :class:`huaweicloudsdkdrs.v5.
|
1928
|
+
:param request: Request instance for ListInstanceTags
|
1929
|
+
:type request: :class:`huaweicloudsdkdrs.v5.ListInstanceTagsRequest`
|
1930
|
+
:rtype: :class:`huaweicloudsdkdrs.v5.ListInstanceTagsResponse`
|
1419
1931
|
"""
|
1420
|
-
http_info = self.
|
1932
|
+
http_info = self._list_instance_tags_http_info(request)
|
1421
1933
|
return self._call_api(**http_info)
|
1422
1934
|
|
1423
|
-
def
|
1424
|
-
http_info = self.
|
1935
|
+
def list_instance_tags_async_invoker(self, request):
|
1936
|
+
http_info = self._list_instance_tags_http_info(request)
|
1425
1937
|
return AsyncInvoker(self, http_info)
|
1426
1938
|
|
1427
|
-
def
|
1939
|
+
def _list_instance_tags_http_info(self, request):
|
1428
1940
|
http_info = {
|
1429
1941
|
"method": "GET",
|
1430
|
-
"resource_path": "/v5/{project_id}/
|
1942
|
+
"resource_path": "/v5/{project_id}/{resource_type}/{resource_id}/tags",
|
1431
1943
|
"request_type": request.__class__.__name__,
|
1432
|
-
"response_type": "
|
1944
|
+
"response_type": "ListInstanceTagsResponse"
|
1433
1945
|
}
|
1434
1946
|
|
1435
1947
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
@@ -1439,14 +1951,12 @@ class DrsAsyncClient(Client):
|
|
1439
1951
|
collection_formats = {}
|
1440
1952
|
|
1441
1953
|
path_params = {}
|
1442
|
-
if '
|
1443
|
-
path_params['
|
1954
|
+
if 'resource_type' in local_var_params:
|
1955
|
+
path_params['resource_type'] = local_var_params['resource_type']
|
1956
|
+
if 'resource_id' in local_var_params:
|
1957
|
+
path_params['resource_id'] = local_var_params['resource_id']
|
1444
1958
|
|
1445
1959
|
query_params = []
|
1446
|
-
if 'offset' in local_var_params:
|
1447
|
-
query_params.append(('offset', local_var_params['offset']))
|
1448
|
-
if 'limit' in local_var_params:
|
1449
|
-
query_params.append(('limit', local_var_params['limit']))
|
1450
1960
|
|
1451
1961
|
header_params = {}
|
1452
1962
|
if 'x_language' in local_var_params:
|
@@ -1476,31 +1986,31 @@ class DrsAsyncClient(Client):
|
|
1476
1986
|
|
1477
1987
|
return http_info
|
1478
1988
|
|
1479
|
-
def
|
1480
|
-
"""
|
1989
|
+
def list_jdbc_drivers_async(self, request):
|
1990
|
+
"""查询驱动文件列表
|
1481
1991
|
|
1482
|
-
|
1992
|
+
查询驱动文件列表。
|
1483
1993
|
|
1484
1994
|
Please refer to HUAWEI cloud API Explorer for details.
|
1485
1995
|
|
1486
1996
|
|
1487
|
-
:param request: Request instance for
|
1488
|
-
:type request: :class:`huaweicloudsdkdrs.v5.
|
1489
|
-
:rtype: :class:`huaweicloudsdkdrs.v5.
|
1997
|
+
:param request: Request instance for ListJdbcDrivers
|
1998
|
+
:type request: :class:`huaweicloudsdkdrs.v5.ListJdbcDriversRequest`
|
1999
|
+
:rtype: :class:`huaweicloudsdkdrs.v5.ListJdbcDriversResponse`
|
1490
2000
|
"""
|
1491
|
-
http_info = self.
|
2001
|
+
http_info = self._list_jdbc_drivers_http_info(request)
|
1492
2002
|
return self._call_api(**http_info)
|
1493
2003
|
|
1494
|
-
def
|
1495
|
-
http_info = self.
|
2004
|
+
def list_jdbc_drivers_async_invoker(self, request):
|
2005
|
+
http_info = self._list_jdbc_drivers_http_info(request)
|
1496
2006
|
return AsyncInvoker(self, http_info)
|
1497
2007
|
|
1498
|
-
def
|
2008
|
+
def _list_jdbc_drivers_http_info(self, request):
|
1499
2009
|
http_info = {
|
1500
2010
|
"method": "GET",
|
1501
|
-
"resource_path": "/v5/{project_id}/
|
2011
|
+
"resource_path": "/v5/{project_id}/jdbc-drivers",
|
1502
2012
|
"request_type": request.__class__.__name__,
|
1503
|
-
"response_type": "
|
2013
|
+
"response_type": "ListJdbcDriversResponse"
|
1504
2014
|
}
|
1505
2015
|
|
1506
2016
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
@@ -1512,22 +2022,10 @@ class DrsAsyncClient(Client):
|
|
1512
2022
|
path_params = {}
|
1513
2023
|
|
1514
2024
|
query_params = []
|
1515
|
-
if 'async_job_id' in local_var_params:
|
1516
|
-
query_params.append(('async_job_id', local_var_params['async_job_id']))
|
1517
|
-
if 'status' in local_var_params:
|
1518
|
-
query_params.append(('status', local_var_params['status']))
|
1519
|
-
if 'domain_name' in local_var_params:
|
1520
|
-
query_params.append(('domain_name', local_var_params['domain_name']))
|
1521
|
-
if 'user_name' in local_var_params:
|
1522
|
-
query_params.append(('user_name', local_var_params['user_name']))
|
1523
|
-
if 'offset' in local_var_params:
|
1524
|
-
query_params.append(('offset', local_var_params['offset']))
|
1525
2025
|
if 'limit' in local_var_params:
|
1526
2026
|
query_params.append(('limit', local_var_params['limit']))
|
1527
|
-
if '
|
1528
|
-
query_params.append(('
|
1529
|
-
if 'sort_dir' in local_var_params:
|
1530
|
-
query_params.append(('sort_dir', local_var_params['sort_dir']))
|
2027
|
+
if 'offset' in local_var_params:
|
2028
|
+
query_params.append(('offset', local_var_params['offset']))
|
1531
2029
|
|
1532
2030
|
header_params = {}
|
1533
2031
|
if 'x_language' in local_var_params:
|
@@ -1557,31 +2055,32 @@ class DrsAsyncClient(Client):
|
|
1557
2055
|
|
1558
2056
|
return http_info
|
1559
2057
|
|
1560
|
-
def
|
1561
|
-
"""
|
2058
|
+
def list_job_history_parameters_async(self, request):
|
2059
|
+
"""查询任务的参数配置修改历史
|
1562
2060
|
|
1563
|
-
|
2061
|
+
查询任务的参数配置修改历史
|
2062
|
+
- 仅engine_type为mysql、mysql-to-pgl、mysql-to-gaussdbv5、mysql-to-gaussdbv5ha、mysql-to-dws、mysql-to-taurus、mysql-to-kafka、mysql-to-elasticsearch、mysql-to-oracle且任务状态只能为配置中、全量中、增量中、全量失败、增量失败、暂停中的实时同步任务支持。
|
1564
2063
|
|
1565
2064
|
Please refer to HUAWEI cloud API Explorer for details.
|
1566
2065
|
|
1567
2066
|
|
1568
|
-
:param request: Request instance for
|
1569
|
-
:type request: :class:`huaweicloudsdkdrs.v5.
|
1570
|
-
:rtype: :class:`huaweicloudsdkdrs.v5.
|
2067
|
+
:param request: Request instance for ListJobHistoryParameters
|
2068
|
+
:type request: :class:`huaweicloudsdkdrs.v5.ListJobHistoryParametersRequest`
|
2069
|
+
:rtype: :class:`huaweicloudsdkdrs.v5.ListJobHistoryParametersResponse`
|
1571
2070
|
"""
|
1572
|
-
http_info = self.
|
2071
|
+
http_info = self._list_job_history_parameters_http_info(request)
|
1573
2072
|
return self._call_api(**http_info)
|
1574
2073
|
|
1575
|
-
def
|
1576
|
-
http_info = self.
|
2074
|
+
def list_job_history_parameters_async_invoker(self, request):
|
2075
|
+
http_info = self._list_job_history_parameters_http_info(request)
|
1577
2076
|
return AsyncInvoker(self, http_info)
|
1578
2077
|
|
1579
|
-
def
|
2078
|
+
def _list_job_history_parameters_http_info(self, request):
|
1580
2079
|
http_info = {
|
1581
2080
|
"method": "GET",
|
1582
|
-
"resource_path": "/v5/{project_id}/jobs/{job_id}/
|
2081
|
+
"resource_path": "/v5/{project_id}/jobs/{job_id}/configuration-histories",
|
1583
2082
|
"request_type": request.__class__.__name__,
|
1584
|
-
"response_type": "
|
2083
|
+
"response_type": "ListJobHistoryParametersResponse"
|
1585
2084
|
}
|
1586
2085
|
|
1587
2086
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
@@ -1599,11 +2098,12 @@ class DrsAsyncClient(Client):
|
|
1599
2098
|
query_params.append(('offset', local_var_params['offset']))
|
1600
2099
|
if 'limit' in local_var_params:
|
1601
2100
|
query_params.append(('limit', local_var_params['limit']))
|
1602
|
-
if '
|
1603
|
-
query_params.append(('
|
1604
|
-
if '
|
1605
|
-
query_params.append(('
|
1606
|
-
|
2101
|
+
if 'begin_time' in local_var_params:
|
2102
|
+
query_params.append(('begin_time', local_var_params['begin_time']))
|
2103
|
+
if 'end_time' in local_var_params:
|
2104
|
+
query_params.append(('end_time', local_var_params['end_time']))
|
2105
|
+
if 'name' in local_var_params:
|
2106
|
+
query_params.append(('name', local_var_params['name']))
|
1607
2107
|
|
1608
2108
|
header_params = {}
|
1609
2109
|
if 'x_language' in local_var_params:
|
@@ -1633,31 +2133,32 @@ class DrsAsyncClient(Client):
|
|
1633
2133
|
|
1634
2134
|
return http_info
|
1635
2135
|
|
1636
|
-
def
|
1637
|
-
"""
|
2136
|
+
def list_job_parameters_async(self, request):
|
2137
|
+
"""查询任务参数配置列表
|
1638
2138
|
|
1639
|
-
|
2139
|
+
查询任务的参数配置列表信息
|
2140
|
+
- 仅engine_type为mysql、mysql-to-pgl、mysql-to-gaussdbv5、mysql-to-gaussdbv5ha、mysql-to-dws、mysql-to-taurus、mysql-to-kafka、mysql-to-elasticsearch、mysql-to-oracle且任务状态只能为配置中、全量中、增量中、全量失败、增量失败、暂停中的实时同步任务支持。
|
1640
2141
|
|
1641
2142
|
Please refer to HUAWEI cloud API Explorer for details.
|
1642
2143
|
|
1643
2144
|
|
1644
|
-
:param request: Request instance for
|
1645
|
-
:type request: :class:`huaweicloudsdkdrs.v5.
|
1646
|
-
:rtype: :class:`huaweicloudsdkdrs.v5.
|
2145
|
+
:param request: Request instance for ListJobParameters
|
2146
|
+
:type request: :class:`huaweicloudsdkdrs.v5.ListJobParametersRequest`
|
2147
|
+
:rtype: :class:`huaweicloudsdkdrs.v5.ListJobParametersResponse`
|
1647
2148
|
"""
|
1648
|
-
http_info = self.
|
2149
|
+
http_info = self._list_job_parameters_http_info(request)
|
1649
2150
|
return self._call_api(**http_info)
|
1650
2151
|
|
1651
|
-
def
|
1652
|
-
http_info = self.
|
2152
|
+
def list_job_parameters_async_invoker(self, request):
|
2153
|
+
http_info = self._list_job_parameters_http_info(request)
|
1653
2154
|
return AsyncInvoker(self, http_info)
|
1654
2155
|
|
1655
|
-
def
|
2156
|
+
def _list_job_parameters_http_info(self, request):
|
1656
2157
|
http_info = {
|
1657
2158
|
"method": "GET",
|
1658
|
-
"resource_path": "/v5/{project_id}/
|
2159
|
+
"resource_path": "/v5/{project_id}/jobs/{job_id}/configurations",
|
1659
2160
|
"request_type": request.__class__.__name__,
|
1660
|
-
"response_type": "
|
2161
|
+
"response_type": "ListJobParametersResponse"
|
1661
2162
|
}
|
1662
2163
|
|
1663
2164
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
@@ -1667,12 +2168,16 @@ class DrsAsyncClient(Client):
|
|
1667
2168
|
collection_formats = {}
|
1668
2169
|
|
1669
2170
|
path_params = {}
|
2171
|
+
if 'job_id' in local_var_params:
|
2172
|
+
path_params['job_id'] = local_var_params['job_id']
|
1670
2173
|
|
1671
2174
|
query_params = []
|
1672
|
-
if 'limit' in local_var_params:
|
1673
|
-
query_params.append(('limit', local_var_params['limit']))
|
1674
2175
|
if 'offset' in local_var_params:
|
1675
2176
|
query_params.append(('offset', local_var_params['offset']))
|
2177
|
+
if 'limit' in local_var_params:
|
2178
|
+
query_params.append(('limit', local_var_params['limit']))
|
2179
|
+
if 'name' in local_var_params:
|
2180
|
+
query_params.append(('name', local_var_params['name']))
|
1676
2181
|
|
1677
2182
|
header_params = {}
|
1678
2183
|
if 'x_language' in local_var_params:
|
@@ -1930,6 +2435,73 @@ class DrsAsyncClient(Client):
|
|
1930
2435
|
|
1931
2436
|
return http_info
|
1932
2437
|
|
2438
|
+
def list_tags_async(self, request):
|
2439
|
+
"""查询项目标签
|
2440
|
+
|
2441
|
+
查询租户在指定Project中实例类型的所有资源标签集合。
|
2442
|
+
|
2443
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
2444
|
+
|
2445
|
+
|
2446
|
+
:param request: Request instance for ListTags
|
2447
|
+
:type request: :class:`huaweicloudsdkdrs.v5.ListTagsRequest`
|
2448
|
+
:rtype: :class:`huaweicloudsdkdrs.v5.ListTagsResponse`
|
2449
|
+
"""
|
2450
|
+
http_info = self._list_tags_http_info(request)
|
2451
|
+
return self._call_api(**http_info)
|
2452
|
+
|
2453
|
+
def list_tags_async_invoker(self, request):
|
2454
|
+
http_info = self._list_tags_http_info(request)
|
2455
|
+
return AsyncInvoker(self, http_info)
|
2456
|
+
|
2457
|
+
def _list_tags_http_info(self, request):
|
2458
|
+
http_info = {
|
2459
|
+
"method": "GET",
|
2460
|
+
"resource_path": "/v5/{project_id}/{resource_type}/tags",
|
2461
|
+
"request_type": request.__class__.__name__,
|
2462
|
+
"response_type": "ListTagsResponse"
|
2463
|
+
}
|
2464
|
+
|
2465
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
2466
|
+
|
2467
|
+
cname = None
|
2468
|
+
|
2469
|
+
collection_formats = {}
|
2470
|
+
|
2471
|
+
path_params = {}
|
2472
|
+
if 'resource_type' in local_var_params:
|
2473
|
+
path_params['resource_type'] = local_var_params['resource_type']
|
2474
|
+
|
2475
|
+
query_params = []
|
2476
|
+
|
2477
|
+
header_params = {}
|
2478
|
+
if 'x_language' in local_var_params:
|
2479
|
+
header_params['X-Language'] = local_var_params['x_language']
|
2480
|
+
|
2481
|
+
form_params = {}
|
2482
|
+
|
2483
|
+
body = None
|
2484
|
+
if isinstance(request, SdkStreamRequest):
|
2485
|
+
body = request.get_file_stream()
|
2486
|
+
|
2487
|
+
response_headers = []
|
2488
|
+
|
2489
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
2490
|
+
['application/json'])
|
2491
|
+
|
2492
|
+
auth_settings = []
|
2493
|
+
|
2494
|
+
http_info["cname"] = cname
|
2495
|
+
http_info["collection_formats"] = collection_formats
|
2496
|
+
http_info["path_params"] = path_params
|
2497
|
+
http_info["query_params"] = query_params
|
2498
|
+
http_info["header_params"] = header_params
|
2499
|
+
http_info["post_params"] = form_params
|
2500
|
+
http_info["body"] = body
|
2501
|
+
http_info["response_headers"] = response_headers
|
2502
|
+
|
2503
|
+
return http_info
|
2504
|
+
|
1933
2505
|
def show_actions_async(self, request):
|
1934
2506
|
"""获取指定任务操作信息
|
1935
2507
|
|
@@ -3349,7 +3921,7 @@ class DrsAsyncClient(Client):
|
|
3349
3921
|
|
3350
3922
|
查询不同迁移对象类型的迁移进度。
|
3351
3923
|
说明:
|
3352
|
-
- 目前仅MySQL->MySQL、MySQL->GaussDB(for MySQL)、MongoDB->DDS、DDS->MongoDB
|
3924
|
+
- 目前仅MySQL->MySQL、MySQL->GaussDB(for MySQL)、MongoDB->DDS、DDS->MongoDB的实时迁移和所有实时同步链路支持查看迁移明细。
|
3353
3925
|
- 在任务未结束前,不能修改源库和目标库的所有用户、密码和用户权限等。
|
3354
3926
|
- 全量、增量完成不代表任务结束,如果存在触发器和事件将会进行迁移。
|
3355
3927
|
|
@@ -3903,6 +4475,76 @@ class DrsAsyncClient(Client):
|
|
3903
4475
|
|
3904
4476
|
return http_info
|
3905
4477
|
|
4478
|
+
def update_job_configurations_async(self, request):
|
4479
|
+
"""更新任务的参数信息
|
4480
|
+
|
4481
|
+
更新任务的参数信息。
|
4482
|
+
- 仅engine_type为mysql、mysql-to-pgl、mysql-to-gaussdbv5、mysql-to-gaussdbv5ha、mysql-to-dws、mysql-to-taurus、mysql-to-kafka、mysql-to-elasticsearch、mysql-to-oracle且任务状态只能为配置中、全量中、增量中、全量失败、增量失败、暂停中的实时同步任务支持。
|
4483
|
+
|
4484
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
4485
|
+
|
4486
|
+
|
4487
|
+
:param request: Request instance for UpdateJobConfigurations
|
4488
|
+
:type request: :class:`huaweicloudsdkdrs.v5.UpdateJobConfigurationsRequest`
|
4489
|
+
:rtype: :class:`huaweicloudsdkdrs.v5.UpdateJobConfigurationsResponse`
|
4490
|
+
"""
|
4491
|
+
http_info = self._update_job_configurations_http_info(request)
|
4492
|
+
return self._call_api(**http_info)
|
4493
|
+
|
4494
|
+
def update_job_configurations_async_invoker(self, request):
|
4495
|
+
http_info = self._update_job_configurations_http_info(request)
|
4496
|
+
return AsyncInvoker(self, http_info)
|
4497
|
+
|
4498
|
+
def _update_job_configurations_http_info(self, request):
|
4499
|
+
http_info = {
|
4500
|
+
"method": "PUT",
|
4501
|
+
"resource_path": "/v5/{project_id}/jobs/{job_id}/modify-configuration",
|
4502
|
+
"request_type": request.__class__.__name__,
|
4503
|
+
"response_type": "UpdateJobConfigurationsResponse"
|
4504
|
+
}
|
4505
|
+
|
4506
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
4507
|
+
|
4508
|
+
cname = None
|
4509
|
+
|
4510
|
+
collection_formats = {}
|
4511
|
+
|
4512
|
+
path_params = {}
|
4513
|
+
if 'job_id' in local_var_params:
|
4514
|
+
path_params['job_id'] = local_var_params['job_id']
|
4515
|
+
|
4516
|
+
query_params = []
|
4517
|
+
|
4518
|
+
header_params = {}
|
4519
|
+
if 'x_language' in local_var_params:
|
4520
|
+
header_params['X-Language'] = local_var_params['x_language']
|
4521
|
+
|
4522
|
+
form_params = {}
|
4523
|
+
|
4524
|
+
body = None
|
4525
|
+
if 'body' in local_var_params:
|
4526
|
+
body = local_var_params['body']
|
4527
|
+
if isinstance(request, SdkStreamRequest):
|
4528
|
+
body = request.get_file_stream()
|
4529
|
+
|
4530
|
+
response_headers = []
|
4531
|
+
|
4532
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
4533
|
+
['application/json'])
|
4534
|
+
|
4535
|
+
auth_settings = []
|
4536
|
+
|
4537
|
+
http_info["cname"] = cname
|
4538
|
+
http_info["collection_formats"] = collection_formats
|
4539
|
+
http_info["path_params"] = path_params
|
4540
|
+
http_info["query_params"] = query_params
|
4541
|
+
http_info["header_params"] = header_params
|
4542
|
+
http_info["post_params"] = form_params
|
4543
|
+
http_info["body"] = body
|
4544
|
+
http_info["response_headers"] = response_headers
|
4545
|
+
|
4546
|
+
return http_info
|
4547
|
+
|
3906
4548
|
def update_start_position_async(self, request):
|
3907
4549
|
"""更新增量任务启动位点
|
3908
4550
|
|