huaweicloudsdkdrs 3.1.76__py2.py3-none-any.whl → 3.1.78__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 (54) 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/v3/region/drs_region.py +4 -8
  6. huaweicloudsdkdrs/v5/__init__.py +30 -0
  7. huaweicloudsdkdrs/v5/drs_async_client.py +736 -94
  8. huaweicloudsdkdrs/v5/drs_client.py +736 -94
  9. huaweicloudsdkdrs/v5/model/__init__.py +30 -0
  10. huaweicloudsdkdrs/v5/model/action_req.py +3 -3
  11. huaweicloudsdkdrs/v5/model/base_endpoint.py +6 -6
  12. huaweicloudsdkdrs/v5/model/base_endpoint_config.py +32 -3
  13. huaweicloudsdkdrs/v5/model/batch_add_tag_req.py +114 -0
  14. huaweicloudsdkdrs/v5/model/batch_create_tags_request.py +196 -0
  15. huaweicloudsdkdrs/v5/model/batch_create_tags_response.py +116 -0
  16. huaweicloudsdkdrs/v5/model/batch_delete_tag_req.py +114 -0
  17. huaweicloudsdkdrs/v5/model/batch_delete_tags_request.py +196 -0
  18. huaweicloudsdkdrs/v5/model/batch_delete_tags_response.py +116 -0
  19. huaweicloudsdkdrs/v5/model/children_job_list_resp.py +3 -3
  20. huaweicloudsdkdrs/v5/model/count_instance_by_tags_request.py +168 -0
  21. huaweicloudsdkdrs/v5/model/count_instance_by_tags_response.py +116 -0
  22. huaweicloudsdkdrs/v5/model/customized_dns.py +170 -0
  23. huaweicloudsdkdrs/v5/model/job_base_info.py +3 -3
  24. huaweicloudsdkdrs/v5/model/job_endpoint_info.py +31 -6
  25. huaweicloudsdkdrs/v5/model/job_link_resp.py +3 -3
  26. huaweicloudsdkdrs/v5/model/job_list_resp.py +3 -3
  27. huaweicloudsdkdrs/v5/model/list_instance_by_tags_request.py +226 -0
  28. huaweicloudsdkdrs/v5/model/list_instance_by_tags_response.py +145 -0
  29. huaweicloudsdkdrs/v5/model/list_instance_tags_request.py +171 -0
  30. huaweicloudsdkdrs/v5/model/list_instance_tags_response.py +116 -0
  31. huaweicloudsdkdrs/v5/model/list_job_history_parameter.py +283 -0
  32. huaweicloudsdkdrs/v5/model/list_job_history_parameters_request.py +288 -0
  33. huaweicloudsdkdrs/v5/model/list_job_history_parameters_response.py +145 -0
  34. huaweicloudsdkdrs/v5/model/list_job_parameters_request.py +230 -0
  35. huaweicloudsdkdrs/v5/model/list_job_parameters_response.py +145 -0
  36. huaweicloudsdkdrs/v5/model/list_jobs_request.py +3 -3
  37. huaweicloudsdkdrs/v5/model/list_tags_request.py +143 -0
  38. huaweicloudsdkdrs/v5/model/list_tags_response.py +116 -0
  39. huaweicloudsdkdrs/v5/model/modify_parameter_req.py +114 -0
  40. huaweicloudsdkdrs/v5/model/parameter_config.py +312 -0
  41. huaweicloudsdkdrs/v5/model/parameter_info.py +142 -0
  42. huaweicloudsdkdrs/v5/model/query_instance_by_tag_req.py +173 -0
  43. huaweicloudsdkdrs/v5/model/resource_instance.py +202 -0
  44. huaweicloudsdkdrs/v5/model/resource_tag_info.py +144 -0
  45. huaweicloudsdkdrs/v5/model/tag.py +142 -0
  46. huaweicloudsdkdrs/v5/model/tag_match.py +142 -0
  47. huaweicloudsdkdrs/v5/model/update_job_configurations_request.py +168 -0
  48. huaweicloudsdkdrs/v5/model/update_job_configurations_response.py +116 -0
  49. huaweicloudsdkdrs/v5/region/drs_region.py +4 -8
  50. {huaweicloudsdkdrs-3.1.76.dist-info → huaweicloudsdkdrs-3.1.78.dist-info}/METADATA +2 -2
  51. {huaweicloudsdkdrs-3.1.76.dist-info → huaweicloudsdkdrs-3.1.78.dist-info}/RECORD +54 -23
  52. {huaweicloudsdkdrs-3.1.76.dist-info → huaweicloudsdkdrs-3.1.78.dist-info}/LICENSE +0 -0
  53. {huaweicloudsdkdrs-3.1.76.dist-info → huaweicloudsdkdrs-3.1.78.dist-info}/WHEEL +0 -0
  54. {huaweicloudsdkdrs-3.1.76.dist-info → huaweicloudsdkdrs-3.1.78.dist-info}/top_level.txt +0 -0
@@ -99,6 +99,77 @@ class DrsClient(Client):
99
99
 
100
100
  return http_info
101
101
 
102
+ def batch_create_tags(self, request):
103
+ """批量添加资源标签
104
+
105
+ 批量添加资源标签。
106
+
107
+ Please refer to HUAWEI cloud API Explorer for details.
108
+
109
+ :param request: Request instance for BatchCreateTags
110
+ :type request: :class:`huaweicloudsdkdrs.v5.BatchCreateTagsRequest`
111
+ :rtype: :class:`huaweicloudsdkdrs.v5.BatchCreateTagsResponse`
112
+ """
113
+ http_info = self._batch_create_tags_http_info(request)
114
+ return self._call_api(**http_info)
115
+
116
+ def batch_create_tags_invoker(self, request):
117
+ http_info = self._batch_create_tags_http_info(request)
118
+ return SyncInvoker(self, http_info)
119
+
120
+ @classmethod
121
+ def _batch_create_tags_http_info(cls, 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(self, request):
103
174
  """批量删除任务
104
175
 
@@ -166,6 +237,77 @@ class DrsClient(Client):
166
237
 
167
238
  return http_info
168
239
 
240
+ def batch_delete_tags(self, request):
241
+ """批量删除资源标签
242
+
243
+ 为指定实例批量删除标签。
244
+
245
+ Please refer to HUAWEI cloud API Explorer for details.
246
+
247
+ :param request: Request instance for BatchDeleteTags
248
+ :type request: :class:`huaweicloudsdkdrs.v5.BatchDeleteTagsRequest`
249
+ :rtype: :class:`huaweicloudsdkdrs.v5.BatchDeleteTagsResponse`
250
+ """
251
+ http_info = self._batch_delete_tags_http_info(request)
252
+ return self._call_api(**http_info)
253
+
254
+ def batch_delete_tags_invoker(self, request):
255
+ http_info = self._batch_delete_tags_http_info(request)
256
+ return SyncInvoker(self, http_info)
257
+
258
+ @classmethod
259
+ def _batch_delete_tags_http_info(cls, 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(self, request):
170
312
  """批量操作指定ID任务
171
313
 
@@ -865,6 +1007,75 @@ class DrsClient(Client):
865
1007
 
866
1008
  return http_info
867
1009
 
1010
+ def count_instance_by_tags(self, request):
1011
+ """查询资源实例数量
1012
+
1013
+ 查询资源实例数量。
1014
+
1015
+ Please refer to HUAWEI cloud API Explorer for details.
1016
+
1017
+ :param request: Request instance for CountInstanceByTags
1018
+ :type request: :class:`huaweicloudsdkdrs.v5.CountInstanceByTagsRequest`
1019
+ :rtype: :class:`huaweicloudsdkdrs.v5.CountInstanceByTagsResponse`
1020
+ """
1021
+ http_info = self._count_instance_by_tags_http_info(request)
1022
+ return self._call_api(**http_info)
1023
+
1024
+ def count_instance_by_tags_invoker(self, request):
1025
+ http_info = self._count_instance_by_tags_http_info(request)
1026
+ return SyncInvoker(self, http_info)
1027
+
1028
+ @classmethod
1029
+ def _count_instance_by_tags_http_info(cls, 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(self, request):
869
1080
  """创建任务
870
1081
 
@@ -1290,10 +1501,298 @@ class DrsClient(Client):
1290
1501
  @classmethod
1291
1502
  def _export_operation_info_http_info(cls, 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(self, request):
1551
+ """批量导入任务
1552
+
1553
+ 批量导入任务
1554
+
1555
+ Please refer to HUAWEI cloud API Explorer for details.
1556
+
1557
+ :param request: Request instance for ImportBatchCreateJobs
1558
+ :type request: :class:`huaweicloudsdkdrs.v5.ImportBatchCreateJobsRequest`
1559
+ :rtype: :class:`huaweicloudsdkdrs.v5.ImportBatchCreateJobsResponse`
1560
+ """
1561
+ http_info = self._import_batch_create_jobs_http_info(request)
1562
+ return self._call_api(**http_info)
1563
+
1564
+ def import_batch_create_jobs_invoker(self, request):
1565
+ http_info = self._import_batch_create_jobs_http_info(request)
1566
+ return SyncInvoker(self, http_info)
1567
+
1568
+ @classmethod
1569
+ def _import_batch_create_jobs_http_info(cls, 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(self, request):
1620
+ """查询指定ID批量异步任务详情
1621
+
1622
+ 查询租户指定ID批量异步任务详情,默认为任务的“create_time”降序排序获取结果,支持分页查询。
1623
+
1624
+ Please refer to HUAWEI cloud API Explorer for details.
1625
+
1626
+ :param request: Request instance for ListAsyncJobDetail
1627
+ :type request: :class:`huaweicloudsdkdrs.v5.ListAsyncJobDetailRequest`
1628
+ :rtype: :class:`huaweicloudsdkdrs.v5.ListAsyncJobDetailResponse`
1629
+ """
1630
+ http_info = self._list_async_job_detail_http_info(request)
1631
+ return self._call_api(**http_info)
1632
+
1633
+ def list_async_job_detail_invoker(self, request):
1634
+ http_info = self._list_async_job_detail_http_info(request)
1635
+ return SyncInvoker(self, http_info)
1636
+
1637
+ @classmethod
1638
+ def _list_async_job_detail_http_info(cls, 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(self, request):
1691
+ """查询批量异步创建的任务列表
1692
+
1693
+ 查询租户批量异步创建的任务列表。
1694
+
1695
+ Please refer to HUAWEI cloud API Explorer for details.
1696
+
1697
+ :param request: Request instance for ListAsyncJobs
1698
+ :type request: :class:`huaweicloudsdkdrs.v5.ListAsyncJobsRequest`
1699
+ :rtype: :class:`huaweicloudsdkdrs.v5.ListAsyncJobsResponse`
1700
+ """
1701
+ http_info = self._list_async_jobs_http_info(request)
1702
+ return self._call_api(**http_info)
1703
+
1704
+ def list_async_jobs_invoker(self, request):
1705
+ http_info = self._list_async_jobs_http_info(request)
1706
+ return SyncInvoker(self, http_info)
1707
+
1708
+ @classmethod
1709
+ def _list_async_jobs_http_info(cls, 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(self, request):
1772
+ """查询数据库对象信息
1773
+
1774
+ 查询数据库对象信息。
1775
+
1776
+ Please refer to HUAWEI cloud API Explorer for details.
1777
+
1778
+ :param request: Request instance for ListDbObjects
1779
+ :type request: :class:`huaweicloudsdkdrs.v5.ListDbObjectsRequest`
1780
+ :rtype: :class:`huaweicloudsdkdrs.v5.ListDbObjectsResponse`
1781
+ """
1782
+ http_info = self._list_db_objects_http_info(request)
1783
+ return self._call_api(**http_info)
1784
+
1785
+ def list_db_objects_invoker(self, request):
1786
+ http_info = self._list_db_objects_http_info(request)
1787
+ return SyncInvoker(self, http_info)
1788
+
1789
+ @classmethod
1790
+ def _list_db_objects_http_info(cls, 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": "ExportOperationInfoResponse"
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 DrsClient(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 DrsClient(Client):
1336
1844
 
1337
1845
  return http_info
1338
1846
 
1339
- def import_batch_create_jobs(self, request):
1340
- """批量导入任务
1847
+ def list_instance_by_tags(self, request):
1848
+ """查询资源实例列表
1341
1849
 
1342
- 批量导入任务
1850
+ 查询资源实例列表。
1343
1851
 
1344
1852
  Please refer to HUAWEI cloud API Explorer for details.
1345
1853
 
1346
- :param request: Request instance for ImportBatchCreateJobs
1347
- :type request: :class:`huaweicloudsdkdrs.v5.ImportBatchCreateJobsRequest`
1348
- :rtype: :class:`huaweicloudsdkdrs.v5.ImportBatchCreateJobsResponse`
1854
+ :param request: Request instance for ListInstanceByTags
1855
+ :type request: :class:`huaweicloudsdkdrs.v5.ListInstanceByTagsRequest`
1856
+ :rtype: :class:`huaweicloudsdkdrs.v5.ListInstanceByTagsResponse`
1349
1857
  """
1350
- http_info = self._import_batch_create_jobs_http_info(request)
1858
+ http_info = self._list_instance_by_tags_http_info(request)
1351
1859
  return self._call_api(**http_info)
1352
1860
 
1353
- def import_batch_create_jobs_invoker(self, request):
1354
- http_info = self._import_batch_create_jobs_http_info(request)
1861
+ def list_instance_by_tags_invoker(self, request):
1862
+ http_info = self._list_instance_by_tags_http_info(request)
1355
1863
  return SyncInvoker(self, http_info)
1356
1864
 
1357
1865
  @classmethod
1358
- def _import_batch_create_jobs_http_info(cls, request):
1866
+ def _list_instance_by_tags_http_info(cls, request):
1359
1867
  http_info = {
1360
1868
  "method": "POST",
1361
- "resource_path": "/v5/{project_id}/jobs/template",
1869
+ "resource_path": "/v5/{project_id}/{resource_type}/resource-instances/filter",
1362
1870
  "request_type": request.__class__.__name__,
1363
- "response_type": "ImportBatchCreateJobsResponse"
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 DrsClient(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 DrsClient(Client):
1390
1902
  response_headers = []
1391
1903
 
1392
1904
  header_params['Content-Type'] = http_utils.select_header_content_type(
1393
- ['multipart/form-data'])
1905
+ ['application/json'])
1394
1906
 
1395
1907
  auth_settings = []
1396
1908
 
@@ -1405,31 +1917,31 @@ class DrsClient(Client):
1405
1917
 
1406
1918
  return http_info
1407
1919
 
1408
- def list_async_job_detail(self, request):
1409
- """查询指定ID批量异步任务详情
1920
+ def list_instance_tags(self, request):
1921
+ """查询资源标签
1410
1922
 
1411
- 查询租户指定ID批量异步任务详情,默认为任务的“create_time”降序排序获取结果,支持分页查询。
1923
+ 查询指定实例的标签信息。
1412
1924
 
1413
1925
  Please refer to HUAWEI cloud API Explorer for details.
1414
1926
 
1415
- :param request: Request instance for ListAsyncJobDetail
1416
- :type request: :class:`huaweicloudsdkdrs.v5.ListAsyncJobDetailRequest`
1417
- :rtype: :class:`huaweicloudsdkdrs.v5.ListAsyncJobDetailResponse`
1927
+ :param request: Request instance for ListInstanceTags
1928
+ :type request: :class:`huaweicloudsdkdrs.v5.ListInstanceTagsRequest`
1929
+ :rtype: :class:`huaweicloudsdkdrs.v5.ListInstanceTagsResponse`
1418
1930
  """
1419
- http_info = self._list_async_job_detail_http_info(request)
1931
+ http_info = self._list_instance_tags_http_info(request)
1420
1932
  return self._call_api(**http_info)
1421
1933
 
1422
- def list_async_job_detail_invoker(self, request):
1423
- http_info = self._list_async_job_detail_http_info(request)
1934
+ def list_instance_tags_invoker(self, request):
1935
+ http_info = self._list_instance_tags_http_info(request)
1424
1936
  return SyncInvoker(self, http_info)
1425
1937
 
1426
1938
  @classmethod
1427
- def _list_async_job_detail_http_info(cls, request):
1939
+ def _list_instance_tags_http_info(cls, request):
1428
1940
  http_info = {
1429
1941
  "method": "GET",
1430
- "resource_path": "/v5/{project_id}/batch-async-jobs/{async_job_id}",
1942
+ "resource_path": "/v5/{project_id}/{resource_type}/{resource_id}/tags",
1431
1943
  "request_type": request.__class__.__name__,
1432
- "response_type": "ListAsyncJobDetailResponse"
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 DrsClient(Client):
1439
1951
  collection_formats = {}
1440
1952
 
1441
1953
  path_params = {}
1442
- if 'async_job_id' in local_var_params:
1443
- path_params['async_job_id'] = local_var_params['async_job_id']
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 DrsClient(Client):
1476
1986
 
1477
1987
  return http_info
1478
1988
 
1479
- def list_async_jobs(self, request):
1480
- """查询批量异步创建的任务列表
1989
+ def list_jdbc_drivers(self, request):
1990
+ """查询驱动文件列表
1481
1991
 
1482
- 查询租户批量异步创建的任务列表。
1992
+ 查询驱动文件列表。
1483
1993
 
1484
1994
  Please refer to HUAWEI cloud API Explorer for details.
1485
1995
 
1486
- :param request: Request instance for ListAsyncJobs
1487
- :type request: :class:`huaweicloudsdkdrs.v5.ListAsyncJobsRequest`
1488
- :rtype: :class:`huaweicloudsdkdrs.v5.ListAsyncJobsResponse`
1996
+ :param request: Request instance for ListJdbcDrivers
1997
+ :type request: :class:`huaweicloudsdkdrs.v5.ListJdbcDriversRequest`
1998
+ :rtype: :class:`huaweicloudsdkdrs.v5.ListJdbcDriversResponse`
1489
1999
  """
1490
- http_info = self._list_async_jobs_http_info(request)
2000
+ http_info = self._list_jdbc_drivers_http_info(request)
1491
2001
  return self._call_api(**http_info)
1492
2002
 
1493
- def list_async_jobs_invoker(self, request):
1494
- http_info = self._list_async_jobs_http_info(request)
2003
+ def list_jdbc_drivers_invoker(self, request):
2004
+ http_info = self._list_jdbc_drivers_http_info(request)
1495
2005
  return SyncInvoker(self, http_info)
1496
2006
 
1497
2007
  @classmethod
1498
- def _list_async_jobs_http_info(cls, request):
2008
+ def _list_jdbc_drivers_http_info(cls, request):
1499
2009
  http_info = {
1500
2010
  "method": "GET",
1501
- "resource_path": "/v5/{project_id}/batch-async-jobs",
2011
+ "resource_path": "/v5/{project_id}/jdbc-drivers",
1502
2012
  "request_type": request.__class__.__name__,
1503
- "response_type": "ListAsyncJobsResponse"
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 DrsClient(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 'sort_key' in local_var_params:
1528
- query_params.append(('sort_key', local_var_params['sort_key']))
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 DrsClient(Client):
1557
2055
 
1558
2056
  return http_info
1559
2057
 
1560
- def list_db_objects(self, request):
1561
- """查询数据库对象信息
2058
+ def list_job_history_parameters(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
- :param request: Request instance for ListDbObjects
1568
- :type request: :class:`huaweicloudsdkdrs.v5.ListDbObjectsRequest`
1569
- :rtype: :class:`huaweicloudsdkdrs.v5.ListDbObjectsResponse`
2066
+ :param request: Request instance for ListJobHistoryParameters
2067
+ :type request: :class:`huaweicloudsdkdrs.v5.ListJobHistoryParametersRequest`
2068
+ :rtype: :class:`huaweicloudsdkdrs.v5.ListJobHistoryParametersResponse`
1570
2069
  """
1571
- http_info = self._list_db_objects_http_info(request)
2070
+ http_info = self._list_job_history_parameters_http_info(request)
1572
2071
  return self._call_api(**http_info)
1573
2072
 
1574
- def list_db_objects_invoker(self, request):
1575
- http_info = self._list_db_objects_http_info(request)
2073
+ def list_job_history_parameters_invoker(self, request):
2074
+ http_info = self._list_job_history_parameters_http_info(request)
1576
2075
  return SyncInvoker(self, http_info)
1577
2076
 
1578
2077
  @classmethod
1579
- def _list_db_objects_http_info(cls, request):
2078
+ def _list_job_history_parameters_http_info(cls, request):
1580
2079
  http_info = {
1581
2080
  "method": "GET",
1582
- "resource_path": "/v5/{project_id}/jobs/{job_id}/db-objects",
2081
+ "resource_path": "/v5/{project_id}/jobs/{job_id}/configuration-histories",
1583
2082
  "request_type": request.__class__.__name__,
1584
- "response_type": "ListDbObjectsResponse"
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 DrsClient(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 'type' in local_var_params:
1603
- query_params.append(('type', local_var_params['type']))
1604
- if 'db_names' in local_var_params:
1605
- query_params.append(('db_names', local_var_params['db_names']))
1606
- collection_formats['db_names'] = 'csv'
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 DrsClient(Client):
1633
2133
 
1634
2134
  return http_info
1635
2135
 
1636
- def list_jdbc_drivers(self, request):
1637
- """查询驱动文件列表
2136
+ def list_job_parameters(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
- :param request: Request instance for ListJdbcDrivers
1644
- :type request: :class:`huaweicloudsdkdrs.v5.ListJdbcDriversRequest`
1645
- :rtype: :class:`huaweicloudsdkdrs.v5.ListJdbcDriversResponse`
2144
+ :param request: Request instance for ListJobParameters
2145
+ :type request: :class:`huaweicloudsdkdrs.v5.ListJobParametersRequest`
2146
+ :rtype: :class:`huaweicloudsdkdrs.v5.ListJobParametersResponse`
1646
2147
  """
1647
- http_info = self._list_jdbc_drivers_http_info(request)
2148
+ http_info = self._list_job_parameters_http_info(request)
1648
2149
  return self._call_api(**http_info)
1649
2150
 
1650
- def list_jdbc_drivers_invoker(self, request):
1651
- http_info = self._list_jdbc_drivers_http_info(request)
2151
+ def list_job_parameters_invoker(self, request):
2152
+ http_info = self._list_job_parameters_http_info(request)
1652
2153
  return SyncInvoker(self, http_info)
1653
2154
 
1654
2155
  @classmethod
1655
- def _list_jdbc_drivers_http_info(cls, request):
2156
+ def _list_job_parameters_http_info(cls, request):
1656
2157
  http_info = {
1657
2158
  "method": "GET",
1658
- "resource_path": "/v5/{project_id}/jdbc-drivers",
2159
+ "resource_path": "/v5/{project_id}/jobs/{job_id}/configurations",
1659
2160
  "request_type": request.__class__.__name__,
1660
- "response_type": "ListJdbcDriversResponse"
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 DrsClient(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 DrsClient(Client):
1930
2435
 
1931
2436
  return http_info
1932
2437
 
2438
+ def list_tags(self, request):
2439
+ """查询项目标签
2440
+
2441
+ 查询租户在指定Project中实例类型的所有资源标签集合。
2442
+
2443
+ Please refer to HUAWEI cloud API Explorer for details.
2444
+
2445
+ :param request: Request instance for ListTags
2446
+ :type request: :class:`huaweicloudsdkdrs.v5.ListTagsRequest`
2447
+ :rtype: :class:`huaweicloudsdkdrs.v5.ListTagsResponse`
2448
+ """
2449
+ http_info = self._list_tags_http_info(request)
2450
+ return self._call_api(**http_info)
2451
+
2452
+ def list_tags_invoker(self, request):
2453
+ http_info = self._list_tags_http_info(request)
2454
+ return SyncInvoker(self, http_info)
2455
+
2456
+ @classmethod
2457
+ def _list_tags_http_info(cls, 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(self, request):
1934
2506
  """获取指定任务操作信息
1935
2507
 
@@ -3349,7 +3921,7 @@ class DrsClient(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 DrsClient(Client):
3903
4475
 
3904
4476
  return http_info
3905
4477
 
4478
+ def update_job_configurations(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
+ :param request: Request instance for UpdateJobConfigurations
4487
+ :type request: :class:`huaweicloudsdkdrs.v5.UpdateJobConfigurationsRequest`
4488
+ :rtype: :class:`huaweicloudsdkdrs.v5.UpdateJobConfigurationsResponse`
4489
+ """
4490
+ http_info = self._update_job_configurations_http_info(request)
4491
+ return self._call_api(**http_info)
4492
+
4493
+ def update_job_configurations_invoker(self, request):
4494
+ http_info = self._update_job_configurations_http_info(request)
4495
+ return SyncInvoker(self, http_info)
4496
+
4497
+ @classmethod
4498
+ def _update_job_configurations_http_info(cls, 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(self, request):
3907
4549
  """更新增量任务启动位点
3908
4550