huaweicloudsdkdrs 3.1.65__py2.py3-none-any.whl → 3.1.67__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.
@@ -3,10 +3,15 @@
3
3
  from __future__ import absolute_import
4
4
 
5
5
  import importlib
6
+ import warnings
6
7
 
7
8
  from huaweicloudsdkcore.client import Client, ClientBuilder
8
9
  from huaweicloudsdkcore.utils import http_utils
9
10
  from huaweicloudsdkcore.sdk_stream_request import SdkStreamRequest
11
+ try:
12
+ from huaweicloudsdkcore.invoker.invoker import AsyncInvoker
13
+ except ImportError as e:
14
+ warnings.warn(str(e) + ", please check if you are using the same versions of 'huaweicloudsdkcore' and 'huaweicloudsdkdrs'")
10
15
 
11
16
 
12
17
  class DrsAsyncClient(Client):
@@ -39,9 +44,21 @@ class DrsAsyncClient(Client):
39
44
  :type request: :class:`huaweicloudsdkdrs.v5.BatchCreateJobsAsyncRequest`
40
45
  :rtype: :class:`huaweicloudsdkdrs.v5.BatchCreateJobsAsyncResponse`
41
46
  """
42
- return self._batch_create_jobs_async_with_http_info(request)
47
+ http_info = self._batch_create_jobs_async_http_info(request)
48
+ return self._call_api(**http_info)
49
+
50
+ def batch_create_jobs_async_async_invoker(self, request):
51
+ http_info = self._batch_create_jobs_async_http_info(request)
52
+ return AsyncInvoker(self, http_info)
53
+
54
+ def _batch_create_jobs_async_http_info(self, request):
55
+ http_info = {
56
+ "method": "POST",
57
+ "resource_path": "/v5/{project_id}/jobs/batch-async-create",
58
+ "request_type": request.__class__.__name__,
59
+ "response_type": "BatchCreateJobsAsyncResponse"
60
+ }
43
61
 
44
- def _batch_create_jobs_async_with_http_info(self, request):
45
62
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
46
63
 
47
64
  cname = None
@@ -58,11 +75,11 @@ class DrsAsyncClient(Client):
58
75
 
59
76
  form_params = {}
60
77
 
61
- body_params = None
78
+ body = None
62
79
  if 'body' in local_var_params:
63
- body_params = local_var_params['body']
80
+ body = local_var_params['body']
64
81
  if isinstance(request, SdkStreamRequest):
65
- body_params = request.get_file_stream()
82
+ body = request.get_file_stream()
66
83
 
67
84
  response_headers = []
68
85
 
@@ -71,20 +88,16 @@ class DrsAsyncClient(Client):
71
88
 
72
89
  auth_settings = []
73
90
 
74
- return self.call_api(
75
- resource_path='/v5/{project_id}/jobs/batch-async-create',
76
- method='POST',
77
- path_params=path_params,
78
- query_params=query_params,
79
- header_params=header_params,
80
- body=body_params,
81
- post_params=form_params,
82
- cname=cname,
83
- response_type='BatchCreateJobsAsyncResponse',
84
- response_headers=response_headers,
85
- auth_settings=auth_settings,
86
- collection_formats=collection_formats,
87
- request_type=request.__class__.__name__)
91
+ http_info["cname"] = cname
92
+ http_info["collection_formats"] = collection_formats
93
+ http_info["path_params"] = path_params
94
+ http_info["query_params"] = query_params
95
+ http_info["header_params"] = header_params
96
+ http_info["post_params"] = form_params
97
+ http_info["body"] = body
98
+ http_info["response_headers"] = response_headers
99
+
100
+ return http_info
88
101
 
89
102
  def batch_delete_jobs_by_id_async(self, request):
90
103
  """批量删除任务
@@ -98,9 +111,21 @@ class DrsAsyncClient(Client):
98
111
  :type request: :class:`huaweicloudsdkdrs.v5.BatchDeleteJobsByIdRequest`
99
112
  :rtype: :class:`huaweicloudsdkdrs.v5.BatchDeleteJobsByIdResponse`
100
113
  """
101
- return self._batch_delete_jobs_by_id_with_http_info(request)
114
+ http_info = self._batch_delete_jobs_by_id_http_info(request)
115
+ return self._call_api(**http_info)
116
+
117
+ def batch_delete_jobs_by_id_async_invoker(self, request):
118
+ http_info = self._batch_delete_jobs_by_id_http_info(request)
119
+ return AsyncInvoker(self, http_info)
120
+
121
+ def _batch_delete_jobs_by_id_http_info(self, request):
122
+ http_info = {
123
+ "method": "DELETE",
124
+ "resource_path": "/v5/{project_id}/jobs",
125
+ "request_type": request.__class__.__name__,
126
+ "response_type": "BatchDeleteJobsByIdResponse"
127
+ }
102
128
 
103
- def _batch_delete_jobs_by_id_with_http_info(self, request):
104
129
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
105
130
 
106
131
  cname = None
@@ -117,11 +142,11 @@ class DrsAsyncClient(Client):
117
142
 
118
143
  form_params = {}
119
144
 
120
- body_params = None
145
+ body = None
121
146
  if 'body' in local_var_params:
122
- body_params = local_var_params['body']
147
+ body = local_var_params['body']
123
148
  if isinstance(request, SdkStreamRequest):
124
- body_params = request.get_file_stream()
149
+ body = request.get_file_stream()
125
150
 
126
151
  response_headers = []
127
152
 
@@ -130,20 +155,16 @@ class DrsAsyncClient(Client):
130
155
 
131
156
  auth_settings = []
132
157
 
133
- return self.call_api(
134
- resource_path='/v5/{project_id}/jobs',
135
- method='DELETE',
136
- path_params=path_params,
137
- query_params=query_params,
138
- header_params=header_params,
139
- body=body_params,
140
- post_params=form_params,
141
- cname=cname,
142
- response_type='BatchDeleteJobsByIdResponse',
143
- response_headers=response_headers,
144
- auth_settings=auth_settings,
145
- collection_formats=collection_formats,
146
- request_type=request.__class__.__name__)
158
+ http_info["cname"] = cname
159
+ http_info["collection_formats"] = collection_formats
160
+ http_info["path_params"] = path_params
161
+ http_info["query_params"] = query_params
162
+ http_info["header_params"] = header_params
163
+ http_info["post_params"] = form_params
164
+ http_info["body"] = body
165
+ http_info["response_headers"] = response_headers
166
+
167
+ return http_info
147
168
 
148
169
  def batch_execute_job_actions_async(self, request):
149
170
  """批量操作指定ID任务
@@ -157,9 +178,21 @@ class DrsAsyncClient(Client):
157
178
  :type request: :class:`huaweicloudsdkdrs.v5.BatchExecuteJobActionsRequest`
158
179
  :rtype: :class:`huaweicloudsdkdrs.v5.BatchExecuteJobActionsResponse`
159
180
  """
160
- return self._batch_execute_job_actions_with_http_info(request)
181
+ http_info = self._batch_execute_job_actions_http_info(request)
182
+ return self._call_api(**http_info)
183
+
184
+ def batch_execute_job_actions_async_invoker(self, request):
185
+ http_info = self._batch_execute_job_actions_http_info(request)
186
+ return AsyncInvoker(self, http_info)
187
+
188
+ def _batch_execute_job_actions_http_info(self, request):
189
+ http_info = {
190
+ "method": "POST",
191
+ "resource_path": "/v5/{project_id}/jobs/action",
192
+ "request_type": request.__class__.__name__,
193
+ "response_type": "BatchExecuteJobActionsResponse"
194
+ }
161
195
 
162
- def _batch_execute_job_actions_with_http_info(self, request):
163
196
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
164
197
 
165
198
  cname = None
@@ -176,11 +209,11 @@ class DrsAsyncClient(Client):
176
209
 
177
210
  form_params = {}
178
211
 
179
- body_params = None
212
+ body = None
180
213
  if 'body' in local_var_params:
181
- body_params = local_var_params['body']
214
+ body = local_var_params['body']
182
215
  if isinstance(request, SdkStreamRequest):
183
- body_params = request.get_file_stream()
216
+ body = request.get_file_stream()
184
217
 
185
218
  response_headers = []
186
219
 
@@ -189,20 +222,16 @@ class DrsAsyncClient(Client):
189
222
 
190
223
  auth_settings = []
191
224
 
192
- return self.call_api(
193
- resource_path='/v5/{project_id}/jobs/action',
194
- method='POST',
195
- path_params=path_params,
196
- query_params=query_params,
197
- header_params=header_params,
198
- body=body_params,
199
- post_params=form_params,
200
- cname=cname,
201
- response_type='BatchExecuteJobActionsResponse',
202
- response_headers=response_headers,
203
- auth_settings=auth_settings,
204
- collection_formats=collection_formats,
205
- request_type=request.__class__.__name__)
225
+ http_info["cname"] = cname
226
+ http_info["collection_formats"] = collection_formats
227
+ http_info["path_params"] = path_params
228
+ http_info["query_params"] = query_params
229
+ http_info["header_params"] = header_params
230
+ http_info["post_params"] = form_params
231
+ http_info["body"] = body
232
+ http_info["response_headers"] = response_headers
233
+
234
+ return http_info
206
235
 
207
236
  def batch_stop_jobs_action_async(self, request):
208
237
  """批量结束任务
@@ -216,9 +245,21 @@ class DrsAsyncClient(Client):
216
245
  :type request: :class:`huaweicloudsdkdrs.v5.BatchStopJobsActionRequest`
217
246
  :rtype: :class:`huaweicloudsdkdrs.v5.BatchStopJobsActionResponse`
218
247
  """
219
- return self._batch_stop_jobs_action_with_http_info(request)
248
+ http_info = self._batch_stop_jobs_action_http_info(request)
249
+ return self._call_api(**http_info)
250
+
251
+ def batch_stop_jobs_action_async_invoker(self, request):
252
+ http_info = self._batch_stop_jobs_action_http_info(request)
253
+ return AsyncInvoker(self, http_info)
254
+
255
+ def _batch_stop_jobs_action_http_info(self, request):
256
+ http_info = {
257
+ "method": "POST",
258
+ "resource_path": "/v5/{project_id}/jobs/batch-stop",
259
+ "request_type": request.__class__.__name__,
260
+ "response_type": "BatchStopJobsActionResponse"
261
+ }
220
262
 
221
- def _batch_stop_jobs_action_with_http_info(self, request):
222
263
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
223
264
 
224
265
  cname = None
@@ -235,11 +276,11 @@ class DrsAsyncClient(Client):
235
276
 
236
277
  form_params = {}
237
278
 
238
- body_params = None
279
+ body = None
239
280
  if 'body' in local_var_params:
240
- body_params = local_var_params['body']
281
+ body = local_var_params['body']
241
282
  if isinstance(request, SdkStreamRequest):
242
- body_params = request.get_file_stream()
283
+ body = request.get_file_stream()
243
284
 
244
285
  response_headers = []
245
286
 
@@ -248,20 +289,16 @@ class DrsAsyncClient(Client):
248
289
 
249
290
  auth_settings = []
250
291
 
251
- return self.call_api(
252
- resource_path='/v5/{project_id}/jobs/batch-stop',
253
- method='POST',
254
- path_params=path_params,
255
- query_params=query_params,
256
- header_params=header_params,
257
- body=body_params,
258
- post_params=form_params,
259
- cname=cname,
260
- response_type='BatchStopJobsActionResponse',
261
- response_headers=response_headers,
262
- auth_settings=auth_settings,
263
- collection_formats=collection_formats,
264
- request_type=request.__class__.__name__)
292
+ http_info["cname"] = cname
293
+ http_info["collection_formats"] = collection_formats
294
+ http_info["path_params"] = path_params
295
+ http_info["query_params"] = query_params
296
+ http_info["header_params"] = header_params
297
+ http_info["post_params"] = form_params
298
+ http_info["body"] = body
299
+ http_info["response_headers"] = response_headers
300
+
301
+ return http_info
265
302
 
266
303
  def batch_tag_action_async(self, request):
267
304
  """批量添加或删除资源标签
@@ -275,9 +312,21 @@ class DrsAsyncClient(Client):
275
312
  :type request: :class:`huaweicloudsdkdrs.v5.BatchTagActionRequest`
276
313
  :rtype: :class:`huaweicloudsdkdrs.v5.BatchTagActionResponse`
277
314
  """
278
- return self._batch_tag_action_with_http_info(request)
315
+ http_info = self._batch_tag_action_http_info(request)
316
+ return self._call_api(**http_info)
317
+
318
+ def batch_tag_action_async_invoker(self, request):
319
+ http_info = self._batch_tag_action_http_info(request)
320
+ return AsyncInvoker(self, http_info)
321
+
322
+ def _batch_tag_action_http_info(self, request):
323
+ http_info = {
324
+ "method": "POST",
325
+ "resource_path": "/v5/{project_id}/jobs/{resource_type}/{job_id}/tags/action",
326
+ "request_type": request.__class__.__name__,
327
+ "response_type": "BatchTagActionResponse"
328
+ }
279
329
 
280
- def _batch_tag_action_with_http_info(self, request):
281
330
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
282
331
 
283
332
  cname = None
@@ -298,11 +347,11 @@ class DrsAsyncClient(Client):
298
347
 
299
348
  form_params = {}
300
349
 
301
- body_params = None
350
+ body = None
302
351
  if 'body' in local_var_params:
303
- body_params = local_var_params['body']
352
+ body = local_var_params['body']
304
353
  if isinstance(request, SdkStreamRequest):
305
- body_params = request.get_file_stream()
354
+ body = request.get_file_stream()
306
355
 
307
356
  response_headers = []
308
357
 
@@ -311,20 +360,16 @@ class DrsAsyncClient(Client):
311
360
 
312
361
  auth_settings = []
313
362
 
314
- return self.call_api(
315
- resource_path='/v5/{project_id}/jobs/{resource_type}/{job_id}/tags/action',
316
- method='POST',
317
- path_params=path_params,
318
- query_params=query_params,
319
- header_params=header_params,
320
- body=body_params,
321
- post_params=form_params,
322
- cname=cname,
323
- response_type='BatchTagActionResponse',
324
- response_headers=response_headers,
325
- auth_settings=auth_settings,
326
- collection_formats=collection_formats,
327
- request_type=request.__class__.__name__)
363
+ http_info["cname"] = cname
364
+ http_info["collection_formats"] = collection_formats
365
+ http_info["path_params"] = path_params
366
+ http_info["query_params"] = query_params
367
+ http_info["header_params"] = header_params
368
+ http_info["post_params"] = form_params
369
+ http_info["body"] = body
370
+ http_info["response_headers"] = response_headers
371
+
372
+ return http_info
328
373
 
329
374
  def check_data_filter_async(self, request):
330
375
  """数据过滤规则校验
@@ -338,9 +383,21 @@ class DrsAsyncClient(Client):
338
383
  :type request: :class:`huaweicloudsdkdrs.v5.CheckDataFilterRequest`
339
384
  :rtype: :class:`huaweicloudsdkdrs.v5.CheckDataFilterResponse`
340
385
  """
341
- return self._check_data_filter_with_http_info(request)
386
+ http_info = self._check_data_filter_http_info(request)
387
+ return self._call_api(**http_info)
388
+
389
+ def check_data_filter_async_invoker(self, request):
390
+ http_info = self._check_data_filter_http_info(request)
391
+ return AsyncInvoker(self, http_info)
392
+
393
+ def _check_data_filter_http_info(self, request):
394
+ http_info = {
395
+ "method": "POST",
396
+ "resource_path": "/v5/{project_id}/job/{job_id}/data-filtering/check",
397
+ "request_type": request.__class__.__name__,
398
+ "response_type": "CheckDataFilterResponse"
399
+ }
342
400
 
343
- def _check_data_filter_with_http_info(self, request):
344
401
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
345
402
 
346
403
  cname = None
@@ -359,11 +416,11 @@ class DrsAsyncClient(Client):
359
416
 
360
417
  form_params = {}
361
418
 
362
- body_params = None
419
+ body = None
363
420
  if 'body' in local_var_params:
364
- body_params = local_var_params['body']
421
+ body = local_var_params['body']
365
422
  if isinstance(request, SdkStreamRequest):
366
- body_params = request.get_file_stream()
423
+ body = request.get_file_stream()
367
424
 
368
425
  response_headers = []
369
426
 
@@ -372,20 +429,16 @@ class DrsAsyncClient(Client):
372
429
 
373
430
  auth_settings = []
374
431
 
375
- return self.call_api(
376
- resource_path='/v5/{project_id}/job/{job_id}/data-filtering/check',
377
- method='POST',
378
- path_params=path_params,
379
- query_params=query_params,
380
- header_params=header_params,
381
- body=body_params,
382
- post_params=form_params,
383
- cname=cname,
384
- response_type='CheckDataFilterResponse',
385
- response_headers=response_headers,
386
- auth_settings=auth_settings,
387
- collection_formats=collection_formats,
388
- request_type=request.__class__.__name__)
432
+ http_info["cname"] = cname
433
+ http_info["collection_formats"] = collection_formats
434
+ http_info["path_params"] = path_params
435
+ http_info["query_params"] = query_params
436
+ http_info["header_params"] = header_params
437
+ http_info["post_params"] = form_params
438
+ http_info["body"] = body
439
+ http_info["response_headers"] = response_headers
440
+
441
+ return http_info
389
442
 
390
443
  def collect_columns_async(self, request):
391
444
  """采集指定数据库表的列信息
@@ -399,9 +452,21 @@ class DrsAsyncClient(Client):
399
452
  :type request: :class:`huaweicloudsdkdrs.v5.CollectColumnsRequest`
400
453
  :rtype: :class:`huaweicloudsdkdrs.v5.CollectColumnsResponse`
401
454
  """
402
- return self._collect_columns_with_http_info(request)
455
+ http_info = self._collect_columns_http_info(request)
456
+ return self._call_api(**http_info)
457
+
458
+ def collect_columns_async_invoker(self, request):
459
+ http_info = self._collect_columns_http_info(request)
460
+ return AsyncInvoker(self, http_info)
461
+
462
+ def _collect_columns_http_info(self, request):
463
+ http_info = {
464
+ "method": "POST",
465
+ "resource_path": "/v5/{project_id}/job/{job_id}/columns/collect",
466
+ "request_type": request.__class__.__name__,
467
+ "response_type": "CollectColumnsResponse"
468
+ }
403
469
 
404
- def _collect_columns_with_http_info(self, request):
405
470
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
406
471
 
407
472
  cname = None
@@ -420,11 +485,11 @@ class DrsAsyncClient(Client):
420
485
 
421
486
  form_params = {}
422
487
 
423
- body_params = None
488
+ body = None
424
489
  if 'body' in local_var_params:
425
- body_params = local_var_params['body']
490
+ body = local_var_params['body']
426
491
  if isinstance(request, SdkStreamRequest):
427
- body_params = request.get_file_stream()
492
+ body = request.get_file_stream()
428
493
 
429
494
  response_headers = []
430
495
 
@@ -433,20 +498,16 @@ class DrsAsyncClient(Client):
433
498
 
434
499
  auth_settings = []
435
500
 
436
- return self.call_api(
437
- resource_path='/v5/{project_id}/job/{job_id}/columns/collect',
438
- method='POST',
439
- path_params=path_params,
440
- query_params=query_params,
441
- header_params=header_params,
442
- body=body_params,
443
- post_params=form_params,
444
- cname=cname,
445
- response_type='CollectColumnsResponse',
446
- response_headers=response_headers,
447
- auth_settings=auth_settings,
448
- collection_formats=collection_formats,
449
- request_type=request.__class__.__name__)
501
+ http_info["cname"] = cname
502
+ http_info["collection_formats"] = collection_formats
503
+ http_info["path_params"] = path_params
504
+ http_info["query_params"] = query_params
505
+ http_info["header_params"] = header_params
506
+ http_info["post_params"] = form_params
507
+ http_info["body"] = body
508
+ http_info["response_headers"] = response_headers
509
+
510
+ return http_info
450
511
 
451
512
  def collect_db_objects_async_async(self, request):
452
513
  """提交查询数据库对象信息
@@ -463,9 +524,21 @@ class DrsAsyncClient(Client):
463
524
  :type request: :class:`huaweicloudsdkdrs.v5.CollectDbObjectsAsyncRequest`
464
525
  :rtype: :class:`huaweicloudsdkdrs.v5.CollectDbObjectsAsyncResponse`
465
526
  """
466
- return self._collect_db_objects_async_with_http_info(request)
527
+ http_info = self._collect_db_objects_async_http_info(request)
528
+ return self._call_api(**http_info)
529
+
530
+ def collect_db_objects_async_async_invoker(self, request):
531
+ http_info = self._collect_db_objects_async_http_info(request)
532
+ return AsyncInvoker(self, http_info)
533
+
534
+ def _collect_db_objects_async_http_info(self, request):
535
+ http_info = {
536
+ "method": "POST",
537
+ "resource_path": "/v5/{project_id}/jobs/{job_id}/db-objects/collect",
538
+ "request_type": request.__class__.__name__,
539
+ "response_type": "CollectDbObjectsAsyncResponse"
540
+ }
467
541
 
468
- def _collect_db_objects_async_with_http_info(self, request):
469
542
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
470
543
 
471
544
  cname = None
@@ -495,9 +568,9 @@ class DrsAsyncClient(Client):
495
568
 
496
569
  form_params = {}
497
570
 
498
- body_params = None
571
+ body = None
499
572
  if isinstance(request, SdkStreamRequest):
500
- body_params = request.get_file_stream()
573
+ body = request.get_file_stream()
501
574
 
502
575
  response_headers = []
503
576
 
@@ -506,20 +579,16 @@ class DrsAsyncClient(Client):
506
579
 
507
580
  auth_settings = []
508
581
 
509
- return self.call_api(
510
- resource_path='/v5/{project_id}/jobs/{job_id}/db-objects/collect',
511
- method='POST',
512
- path_params=path_params,
513
- query_params=query_params,
514
- header_params=header_params,
515
- body=body_params,
516
- post_params=form_params,
517
- cname=cname,
518
- response_type='CollectDbObjectsAsyncResponse',
519
- response_headers=response_headers,
520
- auth_settings=auth_settings,
521
- collection_formats=collection_formats,
522
- request_type=request.__class__.__name__)
582
+ http_info["cname"] = cname
583
+ http_info["collection_formats"] = collection_formats
584
+ http_info["path_params"] = path_params
585
+ http_info["query_params"] = query_params
586
+ http_info["header_params"] = header_params
587
+ http_info["post_params"] = form_params
588
+ http_info["body"] = body
589
+ http_info["response_headers"] = response_headers
590
+
591
+ return http_info
523
592
 
524
593
  def collect_db_objects_info_async(self, request):
525
594
  """提交查询数据库对象信息
@@ -536,9 +605,21 @@ class DrsAsyncClient(Client):
536
605
  :type request: :class:`huaweicloudsdkdrs.v5.CollectDbObjectsInfoRequest`
537
606
  :rtype: :class:`huaweicloudsdkdrs.v5.CollectDbObjectsInfoResponse`
538
607
  """
539
- return self._collect_db_objects_info_with_http_info(request)
608
+ http_info = self._collect_db_objects_info_http_info(request)
609
+ return self._call_api(**http_info)
610
+
611
+ def collect_db_objects_info_async_invoker(self, request):
612
+ http_info = self._collect_db_objects_info_http_info(request)
613
+ return AsyncInvoker(self, http_info)
614
+
615
+ def _collect_db_objects_info_http_info(self, request):
616
+ http_info = {
617
+ "method": "POST",
618
+ "resource_path": "/v5.1/{project_id}/jobs/{job_id}/db-objects/collect",
619
+ "request_type": request.__class__.__name__,
620
+ "response_type": "CollectDbObjectsInfoResponse"
621
+ }
540
622
 
541
- def _collect_db_objects_info_with_http_info(self, request):
542
623
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
543
624
 
544
625
  cname = None
@@ -557,11 +638,11 @@ class DrsAsyncClient(Client):
557
638
 
558
639
  form_params = {}
559
640
 
560
- body_params = None
641
+ body = None
561
642
  if 'body' in local_var_params:
562
- body_params = local_var_params['body']
643
+ body = local_var_params['body']
563
644
  if isinstance(request, SdkStreamRequest):
564
- body_params = request.get_file_stream()
645
+ body = request.get_file_stream()
565
646
 
566
647
  response_headers = []
567
648
 
@@ -570,20 +651,16 @@ class DrsAsyncClient(Client):
570
651
 
571
652
  auth_settings = []
572
653
 
573
- return self.call_api(
574
- resource_path='/v5.1/{project_id}/jobs/{job_id}/db-objects/collect',
575
- method='POST',
576
- path_params=path_params,
577
- query_params=query_params,
578
- header_params=header_params,
579
- body=body_params,
580
- post_params=form_params,
581
- cname=cname,
582
- response_type='CollectDbObjectsInfoResponse',
583
- response_headers=response_headers,
584
- auth_settings=auth_settings,
585
- collection_formats=collection_formats,
586
- request_type=request.__class__.__name__)
654
+ http_info["cname"] = cname
655
+ http_info["collection_formats"] = collection_formats
656
+ http_info["path_params"] = path_params
657
+ http_info["query_params"] = query_params
658
+ http_info["header_params"] = header_params
659
+ http_info["post_params"] = form_params
660
+ http_info["body"] = body
661
+ http_info["response_headers"] = response_headers
662
+
663
+ return http_info
587
664
 
588
665
  def collect_position_async_async(self, request):
589
666
  """采集数据库位点信息
@@ -597,9 +674,21 @@ class DrsAsyncClient(Client):
597
674
  :type request: :class:`huaweicloudsdkdrs.v5.CollectPositionAsyncRequest`
598
675
  :rtype: :class:`huaweicloudsdkdrs.v5.CollectPositionAsyncResponse`
599
676
  """
600
- return self._collect_position_async_with_http_info(request)
677
+ http_info = self._collect_position_async_http_info(request)
678
+ return self._call_api(**http_info)
679
+
680
+ def collect_position_async_async_invoker(self, request):
681
+ http_info = self._collect_position_async_http_info(request)
682
+ return AsyncInvoker(self, http_info)
683
+
684
+ def _collect_position_async_http_info(self, request):
685
+ http_info = {
686
+ "method": "POST",
687
+ "resource_path": "/v5/{project_id}/jobs/{job_id}/collect-db-position",
688
+ "request_type": request.__class__.__name__,
689
+ "response_type": "CollectPositionAsyncResponse"
690
+ }
601
691
 
602
- def _collect_position_async_with_http_info(self, request):
603
692
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
604
693
 
605
694
  cname = None
@@ -618,11 +707,11 @@ class DrsAsyncClient(Client):
618
707
 
619
708
  form_params = {}
620
709
 
621
- body_params = None
710
+ body = None
622
711
  if 'body' in local_var_params:
623
- body_params = local_var_params['body']
712
+ body = local_var_params['body']
624
713
  if isinstance(request, SdkStreamRequest):
625
- body_params = request.get_file_stream()
714
+ body = request.get_file_stream()
626
715
 
627
716
  response_headers = []
628
717
 
@@ -631,20 +720,16 @@ class DrsAsyncClient(Client):
631
720
 
632
721
  auth_settings = []
633
722
 
634
- return self.call_api(
635
- resource_path='/v5/{project_id}/jobs/{job_id}/collect-db-position',
636
- method='POST',
637
- path_params=path_params,
638
- query_params=query_params,
639
- header_params=header_params,
640
- body=body_params,
641
- post_params=form_params,
642
- cname=cname,
643
- response_type='CollectPositionAsyncResponse',
644
- response_headers=response_headers,
645
- auth_settings=auth_settings,
646
- collection_formats=collection_formats,
647
- request_type=request.__class__.__name__)
723
+ http_info["cname"] = cname
724
+ http_info["collection_formats"] = collection_formats
725
+ http_info["path_params"] = path_params
726
+ http_info["query_params"] = query_params
727
+ http_info["header_params"] = header_params
728
+ http_info["post_params"] = form_params
729
+ http_info["body"] = body
730
+ http_info["response_headers"] = response_headers
731
+
732
+ return http_info
648
733
 
649
734
  def commit_async_job_async(self, request):
650
735
  """提交批量创建异步任务
@@ -658,9 +743,21 @@ class DrsAsyncClient(Client):
658
743
  :type request: :class:`huaweicloudsdkdrs.v5.CommitAsyncJobRequest`
659
744
  :rtype: :class:`huaweicloudsdkdrs.v5.CommitAsyncJobResponse`
660
745
  """
661
- return self._commit_async_job_with_http_info(request)
746
+ http_info = self._commit_async_job_http_info(request)
747
+ return self._call_api(**http_info)
748
+
749
+ def commit_async_job_async_invoker(self, request):
750
+ http_info = self._commit_async_job_http_info(request)
751
+ return AsyncInvoker(self, http_info)
752
+
753
+ def _commit_async_job_http_info(self, request):
754
+ http_info = {
755
+ "method": "POST",
756
+ "resource_path": "/v5/{project_id}/batch-async-jobs/{async_job_id}/commit",
757
+ "request_type": request.__class__.__name__,
758
+ "response_type": "CommitAsyncJobResponse"
759
+ }
662
760
 
663
- def _commit_async_job_with_http_info(self, request):
664
761
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
665
762
 
666
763
  cname = None
@@ -679,9 +776,9 @@ class DrsAsyncClient(Client):
679
776
 
680
777
  form_params = {}
681
778
 
682
- body_params = None
779
+ body = None
683
780
  if isinstance(request, SdkStreamRequest):
684
- body_params = request.get_file_stream()
781
+ body = request.get_file_stream()
685
782
 
686
783
  response_headers = []
687
784
 
@@ -690,20 +787,16 @@ class DrsAsyncClient(Client):
690
787
 
691
788
  auth_settings = []
692
789
 
693
- return self.call_api(
694
- resource_path='/v5/{project_id}/batch-async-jobs/{async_job_id}/commit',
695
- method='POST',
696
- path_params=path_params,
697
- query_params=query_params,
698
- header_params=header_params,
699
- body=body_params,
700
- post_params=form_params,
701
- cname=cname,
702
- response_type='CommitAsyncJobResponse',
703
- response_headers=response_headers,
704
- auth_settings=auth_settings,
705
- collection_formats=collection_formats,
706
- request_type=request.__class__.__name__)
790
+ http_info["cname"] = cname
791
+ http_info["collection_formats"] = collection_formats
792
+ http_info["path_params"] = path_params
793
+ http_info["query_params"] = query_params
794
+ http_info["header_params"] = header_params
795
+ http_info["post_params"] = form_params
796
+ http_info["body"] = body
797
+ http_info["response_headers"] = response_headers
798
+
799
+ return http_info
707
800
 
708
801
  def copy_job_async(self, request):
709
802
  """克隆任务
@@ -717,9 +810,21 @@ class DrsAsyncClient(Client):
717
810
  :type request: :class:`huaweicloudsdkdrs.v5.CopyJobRequest`
718
811
  :rtype: :class:`huaweicloudsdkdrs.v5.CopyJobResponse`
719
812
  """
720
- return self._copy_job_with_http_info(request)
813
+ http_info = self._copy_job_http_info(request)
814
+ return self._call_api(**http_info)
815
+
816
+ def copy_job_async_invoker(self, request):
817
+ http_info = self._copy_job_http_info(request)
818
+ return AsyncInvoker(self, http_info)
819
+
820
+ def _copy_job_http_info(self, request):
821
+ http_info = {
822
+ "method": "POST",
823
+ "resource_path": "/v5/{project_id}/jobs/clone",
824
+ "request_type": request.__class__.__name__,
825
+ "response_type": "CopyJobResponse"
826
+ }
721
827
 
722
- def _copy_job_with_http_info(self, request):
723
828
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
724
829
 
725
830
  cname = None
@@ -736,11 +841,11 @@ class DrsAsyncClient(Client):
736
841
 
737
842
  form_params = {}
738
843
 
739
- body_params = None
844
+ body = None
740
845
  if 'body' in local_var_params:
741
- body_params = local_var_params['body']
846
+ body = local_var_params['body']
742
847
  if isinstance(request, SdkStreamRequest):
743
- body_params = request.get_file_stream()
848
+ body = request.get_file_stream()
744
849
 
745
850
  response_headers = []
746
851
 
@@ -749,20 +854,16 @@ class DrsAsyncClient(Client):
749
854
 
750
855
  auth_settings = []
751
856
 
752
- return self.call_api(
753
- resource_path='/v5/{project_id}/jobs/clone',
754
- method='POST',
755
- path_params=path_params,
756
- query_params=query_params,
757
- header_params=header_params,
758
- body=body_params,
759
- post_params=form_params,
760
- cname=cname,
761
- response_type='CopyJobResponse',
762
- response_headers=response_headers,
763
- auth_settings=auth_settings,
764
- collection_formats=collection_formats,
765
- request_type=request.__class__.__name__)
857
+ http_info["cname"] = cname
858
+ http_info["collection_formats"] = collection_formats
859
+ http_info["path_params"] = path_params
860
+ http_info["query_params"] = query_params
861
+ http_info["header_params"] = header_params
862
+ http_info["post_params"] = form_params
863
+ http_info["body"] = body
864
+ http_info["response_headers"] = response_headers
865
+
866
+ return http_info
766
867
 
767
868
  def create_job_async(self, request):
768
869
  """创建任务
@@ -776,9 +877,21 @@ class DrsAsyncClient(Client):
776
877
  :type request: :class:`huaweicloudsdkdrs.v5.CreateJobRequest`
777
878
  :rtype: :class:`huaweicloudsdkdrs.v5.CreateJobResponse`
778
879
  """
779
- return self._create_job_with_http_info(request)
880
+ http_info = self._create_job_http_info(request)
881
+ return self._call_api(**http_info)
882
+
883
+ def create_job_async_invoker(self, request):
884
+ http_info = self._create_job_http_info(request)
885
+ return AsyncInvoker(self, http_info)
886
+
887
+ def _create_job_http_info(self, request):
888
+ http_info = {
889
+ "method": "POST",
890
+ "resource_path": "/v5/{project_id}/jobs",
891
+ "request_type": request.__class__.__name__,
892
+ "response_type": "CreateJobResponse"
893
+ }
780
894
 
781
- def _create_job_with_http_info(self, request):
782
895
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
783
896
 
784
897
  cname = None
@@ -795,11 +908,11 @@ class DrsAsyncClient(Client):
795
908
 
796
909
  form_params = {}
797
910
 
798
- body_params = None
911
+ body = None
799
912
  if 'body' in local_var_params:
800
- body_params = local_var_params['body']
913
+ body = local_var_params['body']
801
914
  if isinstance(request, SdkStreamRequest):
802
- body_params = request.get_file_stream()
915
+ body = request.get_file_stream()
803
916
 
804
917
  response_headers = []
805
918
 
@@ -808,20 +921,16 @@ class DrsAsyncClient(Client):
808
921
 
809
922
  auth_settings = []
810
923
 
811
- return self.call_api(
812
- resource_path='/v5/{project_id}/jobs',
813
- method='POST',
814
- path_params=path_params,
815
- query_params=query_params,
816
- header_params=header_params,
817
- body=body_params,
818
- post_params=form_params,
819
- cname=cname,
820
- response_type='CreateJobResponse',
821
- response_headers=response_headers,
822
- auth_settings=auth_settings,
823
- collection_formats=collection_formats,
824
- request_type=request.__class__.__name__)
924
+ http_info["cname"] = cname
925
+ http_info["collection_formats"] = collection_formats
926
+ http_info["path_params"] = path_params
927
+ http_info["query_params"] = query_params
928
+ http_info["header_params"] = header_params
929
+ http_info["post_params"] = form_params
930
+ http_info["body"] = body
931
+ http_info["response_headers"] = response_headers
932
+
933
+ return http_info
825
934
 
826
935
  def delete_job_async(self, request):
827
936
  """删除指定ID任务
@@ -835,9 +944,21 @@ class DrsAsyncClient(Client):
835
944
  :type request: :class:`huaweicloudsdkdrs.v5.DeleteJobRequest`
836
945
  :rtype: :class:`huaweicloudsdkdrs.v5.DeleteJobResponse`
837
946
  """
838
- return self._delete_job_with_http_info(request)
947
+ http_info = self._delete_job_http_info(request)
948
+ return self._call_api(**http_info)
949
+
950
+ def delete_job_async_invoker(self, request):
951
+ http_info = self._delete_job_http_info(request)
952
+ return AsyncInvoker(self, http_info)
953
+
954
+ def _delete_job_http_info(self, request):
955
+ http_info = {
956
+ "method": "DELETE",
957
+ "resource_path": "/v5/{project_id}/jobs/{job_id}",
958
+ "request_type": request.__class__.__name__,
959
+ "response_type": "DeleteJobResponse"
960
+ }
839
961
 
840
- def _delete_job_with_http_info(self, request):
841
962
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
842
963
 
843
964
  cname = None
@@ -856,9 +977,9 @@ class DrsAsyncClient(Client):
856
977
 
857
978
  form_params = {}
858
979
 
859
- body_params = None
980
+ body = None
860
981
  if isinstance(request, SdkStreamRequest):
861
- body_params = request.get_file_stream()
982
+ body = request.get_file_stream()
862
983
 
863
984
  response_headers = []
864
985
 
@@ -867,20 +988,16 @@ class DrsAsyncClient(Client):
867
988
 
868
989
  auth_settings = []
869
990
 
870
- return self.call_api(
871
- resource_path='/v5/{project_id}/jobs/{job_id}',
872
- method='DELETE',
873
- path_params=path_params,
874
- query_params=query_params,
875
- header_params=header_params,
876
- body=body_params,
877
- post_params=form_params,
878
- cname=cname,
879
- response_type='DeleteJobResponse',
880
- response_headers=response_headers,
881
- auth_settings=auth_settings,
882
- collection_formats=collection_formats,
883
- request_type=request.__class__.__name__)
991
+ http_info["cname"] = cname
992
+ http_info["collection_formats"] = collection_formats
993
+ http_info["path_params"] = path_params
994
+ http_info["query_params"] = query_params
995
+ http_info["header_params"] = header_params
996
+ http_info["post_params"] = form_params
997
+ http_info["body"] = body
998
+ http_info["response_headers"] = response_headers
999
+
1000
+ return http_info
884
1001
 
885
1002
  def download_batch_create_template_async(self, request):
886
1003
  """下载批量导入任务模板
@@ -894,9 +1011,21 @@ class DrsAsyncClient(Client):
894
1011
  :type request: :class:`huaweicloudsdkdrs.v5.DownloadBatchCreateTemplateRequest`
895
1012
  :rtype: :class:`huaweicloudsdkdrs.v5.DownloadBatchCreateTemplateResponse`
896
1013
  """
897
- return self._download_batch_create_template_with_http_info(request)
1014
+ http_info = self._download_batch_create_template_http_info(request)
1015
+ return self._call_api(**http_info)
1016
+
1017
+ def download_batch_create_template_async_invoker(self, request):
1018
+ http_info = self._download_batch_create_template_http_info(request)
1019
+ return AsyncInvoker(self, http_info)
1020
+
1021
+ def _download_batch_create_template_http_info(self, request):
1022
+ http_info = {
1023
+ "method": "GET",
1024
+ "resource_path": "/v5/{project_id}/jobs/template",
1025
+ "request_type": request.__class__.__name__,
1026
+ "response_type": "DownloadBatchCreateTemplateResponse"
1027
+ }
898
1028
 
899
- def _download_batch_create_template_with_http_info(self, request):
900
1029
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
901
1030
 
902
1031
  cname = None
@@ -913,9 +1042,9 @@ class DrsAsyncClient(Client):
913
1042
 
914
1043
  form_params = {}
915
1044
 
916
- body_params = None
1045
+ body = None
917
1046
  if isinstance(request, SdkStreamRequest):
918
- body_params = request.get_file_stream()
1047
+ body = request.get_file_stream()
919
1048
 
920
1049
  response_headers = []
921
1050
 
@@ -924,20 +1053,16 @@ class DrsAsyncClient(Client):
924
1053
 
925
1054
  auth_settings = []
926
1055
 
927
- return self.call_api(
928
- resource_path='/v5/{project_id}/jobs/template',
929
- method='GET',
930
- path_params=path_params,
931
- query_params=query_params,
932
- header_params=header_params,
933
- body=body_params,
934
- post_params=form_params,
935
- cname=cname,
936
- response_type='DownloadBatchCreateTemplateResponse',
937
- response_headers=response_headers,
938
- auth_settings=auth_settings,
939
- collection_formats=collection_formats,
940
- request_type=request.__class__.__name__)
1056
+ http_info["cname"] = cname
1057
+ http_info["collection_formats"] = collection_formats
1058
+ http_info["path_params"] = path_params
1059
+ http_info["query_params"] = query_params
1060
+ http_info["header_params"] = header_params
1061
+ http_info["post_params"] = form_params
1062
+ http_info["body"] = body
1063
+ http_info["response_headers"] = response_headers
1064
+
1065
+ return http_info
941
1066
 
942
1067
  def download_db_object_template_async(self, request):
943
1068
  """对象选择(文件导入 - 模板下载)
@@ -951,9 +1076,21 @@ class DrsAsyncClient(Client):
951
1076
  :type request: :class:`huaweicloudsdkdrs.v5.DownloadDbObjectTemplateRequest`
952
1077
  :rtype: :class:`huaweicloudsdkdrs.v5.DownloadDbObjectTemplateResponse`
953
1078
  """
954
- return self._download_db_object_template_with_http_info(request)
1079
+ http_info = self._download_db_object_template_http_info(request)
1080
+ return self._call_api(**http_info)
1081
+
1082
+ def download_db_object_template_async_invoker(self, request):
1083
+ http_info = self._download_db_object_template_http_info(request)
1084
+ return AsyncInvoker(self, http_info)
1085
+
1086
+ def _download_db_object_template_http_info(self, request):
1087
+ http_info = {
1088
+ "method": "GET",
1089
+ "resource_path": "/v5/{project_id}/jobs/{job_id}/db-object/template",
1090
+ "request_type": request.__class__.__name__,
1091
+ "response_type": "DownloadDbObjectTemplateResponse"
1092
+ }
955
1093
 
956
- def _download_db_object_template_with_http_info(self, request):
957
1094
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
958
1095
 
959
1096
  cname = None
@@ -974,9 +1111,9 @@ class DrsAsyncClient(Client):
974
1111
 
975
1112
  form_params = {}
976
1113
 
977
- body_params = None
1114
+ body = None
978
1115
  if isinstance(request, SdkStreamRequest):
979
- body_params = request.get_file_stream()
1116
+ body = request.get_file_stream()
980
1117
 
981
1118
  response_headers = []
982
1119
 
@@ -985,20 +1122,16 @@ class DrsAsyncClient(Client):
985
1122
 
986
1123
  auth_settings = []
987
1124
 
988
- return self.call_api(
989
- resource_path='/v5/{project_id}/jobs/{job_id}/db-object/template',
990
- method='GET',
991
- path_params=path_params,
992
- query_params=query_params,
993
- header_params=header_params,
994
- body=body_params,
995
- post_params=form_params,
996
- cname=cname,
997
- response_type='DownloadDbObjectTemplateResponse',
998
- response_headers=response_headers,
999
- auth_settings=auth_settings,
1000
- collection_formats=collection_formats,
1001
- request_type=request.__class__.__name__)
1125
+ http_info["cname"] = cname
1126
+ http_info["collection_formats"] = collection_formats
1127
+ http_info["path_params"] = path_params
1128
+ http_info["query_params"] = query_params
1129
+ http_info["header_params"] = header_params
1130
+ http_info["post_params"] = form_params
1131
+ http_info["body"] = body
1132
+ http_info["response_headers"] = response_headers
1133
+
1134
+ return http_info
1002
1135
 
1003
1136
  def execute_job_action_async(self, request):
1004
1137
  """操作指定ID任务
@@ -1012,9 +1145,21 @@ class DrsAsyncClient(Client):
1012
1145
  :type request: :class:`huaweicloudsdkdrs.v5.ExecuteJobActionRequest`
1013
1146
  :rtype: :class:`huaweicloudsdkdrs.v5.ExecuteJobActionResponse`
1014
1147
  """
1015
- return self._execute_job_action_with_http_info(request)
1148
+ http_info = self._execute_job_action_http_info(request)
1149
+ return self._call_api(**http_info)
1150
+
1151
+ def execute_job_action_async_invoker(self, request):
1152
+ http_info = self._execute_job_action_http_info(request)
1153
+ return AsyncInvoker(self, http_info)
1154
+
1155
+ def _execute_job_action_http_info(self, request):
1156
+ http_info = {
1157
+ "method": "POST",
1158
+ "resource_path": "/v5/{project_id}/jobs/{job_id}/action",
1159
+ "request_type": request.__class__.__name__,
1160
+ "response_type": "ExecuteJobActionResponse"
1161
+ }
1016
1162
 
1017
- def _execute_job_action_with_http_info(self, request):
1018
1163
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
1019
1164
 
1020
1165
  cname = None
@@ -1033,11 +1178,11 @@ class DrsAsyncClient(Client):
1033
1178
 
1034
1179
  form_params = {}
1035
1180
 
1036
- body_params = None
1181
+ body = None
1037
1182
  if 'body' in local_var_params:
1038
- body_params = local_var_params['body']
1183
+ body = local_var_params['body']
1039
1184
  if isinstance(request, SdkStreamRequest):
1040
- body_params = request.get_file_stream()
1185
+ body = request.get_file_stream()
1041
1186
 
1042
1187
  response_headers = []
1043
1188
 
@@ -1046,20 +1191,16 @@ class DrsAsyncClient(Client):
1046
1191
 
1047
1192
  auth_settings = []
1048
1193
 
1049
- return self.call_api(
1050
- resource_path='/v5/{project_id}/jobs/{job_id}/action',
1051
- method='POST',
1052
- path_params=path_params,
1053
- query_params=query_params,
1054
- header_params=header_params,
1055
- body=body_params,
1056
- post_params=form_params,
1057
- cname=cname,
1058
- response_type='ExecuteJobActionResponse',
1059
- response_headers=response_headers,
1060
- auth_settings=auth_settings,
1061
- collection_formats=collection_formats,
1062
- request_type=request.__class__.__name__)
1194
+ http_info["cname"] = cname
1195
+ http_info["collection_formats"] = collection_formats
1196
+ http_info["path_params"] = path_params
1197
+ http_info["query_params"] = query_params
1198
+ http_info["header_params"] = header_params
1199
+ http_info["post_params"] = form_params
1200
+ http_info["body"] = body
1201
+ http_info["response_headers"] = response_headers
1202
+
1203
+ return http_info
1063
1204
 
1064
1205
  def export_operation_info_async(self, request):
1065
1206
  """导出任务操作统计信息
@@ -1073,9 +1214,21 @@ class DrsAsyncClient(Client):
1073
1214
  :type request: :class:`huaweicloudsdkdrs.v5.ExportOperationInfoRequest`
1074
1215
  :rtype: :class:`huaweicloudsdkdrs.v5.ExportOperationInfoResponse`
1075
1216
  """
1076
- return self._export_operation_info_with_http_info(request)
1217
+ http_info = self._export_operation_info_http_info(request)
1218
+ return self._call_api(**http_info)
1219
+
1220
+ def export_operation_info_async_invoker(self, request):
1221
+ http_info = self._export_operation_info_http_info(request)
1222
+ return AsyncInvoker(self, http_info)
1223
+
1224
+ def _export_operation_info_http_info(self, request):
1225
+ http_info = {
1226
+ "method": "POST",
1227
+ "resource_path": "/v5/{project_id}/jobs/{job_id}/operation-statistics/export",
1228
+ "request_type": request.__class__.__name__,
1229
+ "response_type": "ExportOperationInfoResponse"
1230
+ }
1077
1231
 
1078
- def _export_operation_info_with_http_info(self, request):
1079
1232
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
1080
1233
 
1081
1234
  cname = None
@@ -1094,9 +1247,9 @@ class DrsAsyncClient(Client):
1094
1247
 
1095
1248
  form_params = {}
1096
1249
 
1097
- body_params = None
1250
+ body = None
1098
1251
  if isinstance(request, SdkStreamRequest):
1099
- body_params = request.get_file_stream()
1252
+ body = request.get_file_stream()
1100
1253
 
1101
1254
  response_headers = []
1102
1255
 
@@ -1105,20 +1258,16 @@ class DrsAsyncClient(Client):
1105
1258
 
1106
1259
  auth_settings = []
1107
1260
 
1108
- return self.call_api(
1109
- resource_path='/v5/{project_id}/jobs/{job_id}/operation-statistics/export',
1110
- method='POST',
1111
- path_params=path_params,
1112
- query_params=query_params,
1113
- header_params=header_params,
1114
- body=body_params,
1115
- post_params=form_params,
1116
- cname=cname,
1117
- response_type='ExportOperationInfoResponse',
1118
- response_headers=response_headers,
1119
- auth_settings=auth_settings,
1120
- collection_formats=collection_formats,
1121
- request_type=request.__class__.__name__)
1261
+ http_info["cname"] = cname
1262
+ http_info["collection_formats"] = collection_formats
1263
+ http_info["path_params"] = path_params
1264
+ http_info["query_params"] = query_params
1265
+ http_info["header_params"] = header_params
1266
+ http_info["post_params"] = form_params
1267
+ http_info["body"] = body
1268
+ http_info["response_headers"] = response_headers
1269
+
1270
+ return http_info
1122
1271
 
1123
1272
  def import_batch_create_jobs_async(self, request):
1124
1273
  """批量导入任务
@@ -1132,9 +1281,21 @@ class DrsAsyncClient(Client):
1132
1281
  :type request: :class:`huaweicloudsdkdrs.v5.ImportBatchCreateJobsRequest`
1133
1282
  :rtype: :class:`huaweicloudsdkdrs.v5.ImportBatchCreateJobsResponse`
1134
1283
  """
1135
- return self._import_batch_create_jobs_with_http_info(request)
1284
+ http_info = self._import_batch_create_jobs_http_info(request)
1285
+ return self._call_api(**http_info)
1286
+
1287
+ def import_batch_create_jobs_async_invoker(self, request):
1288
+ http_info = self._import_batch_create_jobs_http_info(request)
1289
+ return AsyncInvoker(self, http_info)
1290
+
1291
+ def _import_batch_create_jobs_http_info(self, request):
1292
+ http_info = {
1293
+ "method": "POST",
1294
+ "resource_path": "/v5/{project_id}/jobs/template",
1295
+ "request_type": request.__class__.__name__,
1296
+ "response_type": "ImportBatchCreateJobsResponse"
1297
+ }
1136
1298
 
1137
- def _import_batch_create_jobs_with_http_info(self, request):
1138
1299
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
1139
1300
 
1140
1301
  cname = None
@@ -1153,11 +1314,11 @@ class DrsAsyncClient(Client):
1153
1314
  if 'file' in local_var_params:
1154
1315
  form_params['file'] = local_var_params['file']
1155
1316
 
1156
- body_params = None
1317
+ body = None
1157
1318
  if 'body' in local_var_params:
1158
- body_params = local_var_params['body']
1319
+ body = local_var_params['body']
1159
1320
  if isinstance(request, SdkStreamRequest):
1160
- body_params = request.get_file_stream()
1321
+ body = request.get_file_stream()
1161
1322
 
1162
1323
  response_headers = []
1163
1324
 
@@ -1166,20 +1327,16 @@ class DrsAsyncClient(Client):
1166
1327
 
1167
1328
  auth_settings = []
1168
1329
 
1169
- return self.call_api(
1170
- resource_path='/v5/{project_id}/jobs/template',
1171
- method='POST',
1172
- path_params=path_params,
1173
- query_params=query_params,
1174
- header_params=header_params,
1175
- body=body_params,
1176
- post_params=form_params,
1177
- cname=cname,
1178
- response_type='ImportBatchCreateJobsResponse',
1179
- response_headers=response_headers,
1180
- auth_settings=auth_settings,
1181
- collection_formats=collection_formats,
1182
- request_type=request.__class__.__name__)
1330
+ http_info["cname"] = cname
1331
+ http_info["collection_formats"] = collection_formats
1332
+ http_info["path_params"] = path_params
1333
+ http_info["query_params"] = query_params
1334
+ http_info["header_params"] = header_params
1335
+ http_info["post_params"] = form_params
1336
+ http_info["body"] = body
1337
+ http_info["response_headers"] = response_headers
1338
+
1339
+ return http_info
1183
1340
 
1184
1341
  def list_async_job_detail_async(self, request):
1185
1342
  """查询指定ID批量异步任务详情
@@ -1193,9 +1350,21 @@ class DrsAsyncClient(Client):
1193
1350
  :type request: :class:`huaweicloudsdkdrs.v5.ListAsyncJobDetailRequest`
1194
1351
  :rtype: :class:`huaweicloudsdkdrs.v5.ListAsyncJobDetailResponse`
1195
1352
  """
1196
- return self._list_async_job_detail_with_http_info(request)
1353
+ http_info = self._list_async_job_detail_http_info(request)
1354
+ return self._call_api(**http_info)
1355
+
1356
+ def list_async_job_detail_async_invoker(self, request):
1357
+ http_info = self._list_async_job_detail_http_info(request)
1358
+ return AsyncInvoker(self, http_info)
1359
+
1360
+ def _list_async_job_detail_http_info(self, request):
1361
+ http_info = {
1362
+ "method": "GET",
1363
+ "resource_path": "/v5/{project_id}/batch-async-jobs/{async_job_id}",
1364
+ "request_type": request.__class__.__name__,
1365
+ "response_type": "ListAsyncJobDetailResponse"
1366
+ }
1197
1367
 
1198
- def _list_async_job_detail_with_http_info(self, request):
1199
1368
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
1200
1369
 
1201
1370
  cname = None
@@ -1218,9 +1387,9 @@ class DrsAsyncClient(Client):
1218
1387
 
1219
1388
  form_params = {}
1220
1389
 
1221
- body_params = None
1390
+ body = None
1222
1391
  if isinstance(request, SdkStreamRequest):
1223
- body_params = request.get_file_stream()
1392
+ body = request.get_file_stream()
1224
1393
 
1225
1394
  response_headers = []
1226
1395
 
@@ -1229,20 +1398,16 @@ class DrsAsyncClient(Client):
1229
1398
 
1230
1399
  auth_settings = []
1231
1400
 
1232
- return self.call_api(
1233
- resource_path='/v5/{project_id}/batch-async-jobs/{async_job_id}',
1234
- method='GET',
1235
- path_params=path_params,
1236
- query_params=query_params,
1237
- header_params=header_params,
1238
- body=body_params,
1239
- post_params=form_params,
1240
- cname=cname,
1241
- response_type='ListAsyncJobDetailResponse',
1242
- response_headers=response_headers,
1243
- auth_settings=auth_settings,
1244
- collection_formats=collection_formats,
1245
- request_type=request.__class__.__name__)
1401
+ http_info["cname"] = cname
1402
+ http_info["collection_formats"] = collection_formats
1403
+ http_info["path_params"] = path_params
1404
+ http_info["query_params"] = query_params
1405
+ http_info["header_params"] = header_params
1406
+ http_info["post_params"] = form_params
1407
+ http_info["body"] = body
1408
+ http_info["response_headers"] = response_headers
1409
+
1410
+ return http_info
1246
1411
 
1247
1412
  def list_async_jobs_async(self, request):
1248
1413
  """查询批量异步创建的任务列表
@@ -1256,9 +1421,21 @@ class DrsAsyncClient(Client):
1256
1421
  :type request: :class:`huaweicloudsdkdrs.v5.ListAsyncJobsRequest`
1257
1422
  :rtype: :class:`huaweicloudsdkdrs.v5.ListAsyncJobsResponse`
1258
1423
  """
1259
- return self._list_async_jobs_with_http_info(request)
1424
+ http_info = self._list_async_jobs_http_info(request)
1425
+ return self._call_api(**http_info)
1426
+
1427
+ def list_async_jobs_async_invoker(self, request):
1428
+ http_info = self._list_async_jobs_http_info(request)
1429
+ return AsyncInvoker(self, http_info)
1430
+
1431
+ def _list_async_jobs_http_info(self, request):
1432
+ http_info = {
1433
+ "method": "GET",
1434
+ "resource_path": "/v5/{project_id}/batch-async-jobs",
1435
+ "request_type": request.__class__.__name__,
1436
+ "response_type": "ListAsyncJobsResponse"
1437
+ }
1260
1438
 
1261
- def _list_async_jobs_with_http_info(self, request):
1262
1439
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
1263
1440
 
1264
1441
  cname = None
@@ -1291,9 +1468,9 @@ class DrsAsyncClient(Client):
1291
1468
 
1292
1469
  form_params = {}
1293
1470
 
1294
- body_params = None
1471
+ body = None
1295
1472
  if isinstance(request, SdkStreamRequest):
1296
- body_params = request.get_file_stream()
1473
+ body = request.get_file_stream()
1297
1474
 
1298
1475
  response_headers = []
1299
1476
 
@@ -1302,20 +1479,16 @@ class DrsAsyncClient(Client):
1302
1479
 
1303
1480
  auth_settings = []
1304
1481
 
1305
- return self.call_api(
1306
- resource_path='/v5/{project_id}/batch-async-jobs',
1307
- method='GET',
1308
- path_params=path_params,
1309
- query_params=query_params,
1310
- header_params=header_params,
1311
- body=body_params,
1312
- post_params=form_params,
1313
- cname=cname,
1314
- response_type='ListAsyncJobsResponse',
1315
- response_headers=response_headers,
1316
- auth_settings=auth_settings,
1317
- collection_formats=collection_formats,
1318
- request_type=request.__class__.__name__)
1482
+ http_info["cname"] = cname
1483
+ http_info["collection_formats"] = collection_formats
1484
+ http_info["path_params"] = path_params
1485
+ http_info["query_params"] = query_params
1486
+ http_info["header_params"] = header_params
1487
+ http_info["post_params"] = form_params
1488
+ http_info["body"] = body
1489
+ http_info["response_headers"] = response_headers
1490
+
1491
+ return http_info
1319
1492
 
1320
1493
  def list_db_objects_async(self, request):
1321
1494
  """查询数据库对象信息
@@ -1329,9 +1502,21 @@ class DrsAsyncClient(Client):
1329
1502
  :type request: :class:`huaweicloudsdkdrs.v5.ListDbObjectsRequest`
1330
1503
  :rtype: :class:`huaweicloudsdkdrs.v5.ListDbObjectsResponse`
1331
1504
  """
1332
- return self._list_db_objects_with_http_info(request)
1505
+ http_info = self._list_db_objects_http_info(request)
1506
+ return self._call_api(**http_info)
1507
+
1508
+ def list_db_objects_async_invoker(self, request):
1509
+ http_info = self._list_db_objects_http_info(request)
1510
+ return AsyncInvoker(self, http_info)
1511
+
1512
+ def _list_db_objects_http_info(self, request):
1513
+ http_info = {
1514
+ "method": "GET",
1515
+ "resource_path": "/v5/{project_id}/jobs/{job_id}/db-objects",
1516
+ "request_type": request.__class__.__name__,
1517
+ "response_type": "ListDbObjectsResponse"
1518
+ }
1333
1519
 
1334
- def _list_db_objects_with_http_info(self, request):
1335
1520
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
1336
1521
 
1337
1522
  cname = None
@@ -1359,9 +1544,9 @@ class DrsAsyncClient(Client):
1359
1544
 
1360
1545
  form_params = {}
1361
1546
 
1362
- body_params = None
1547
+ body = None
1363
1548
  if isinstance(request, SdkStreamRequest):
1364
- body_params = request.get_file_stream()
1549
+ body = request.get_file_stream()
1365
1550
 
1366
1551
  response_headers = []
1367
1552
 
@@ -1370,20 +1555,16 @@ class DrsAsyncClient(Client):
1370
1555
 
1371
1556
  auth_settings = []
1372
1557
 
1373
- return self.call_api(
1374
- resource_path='/v5/{project_id}/jobs/{job_id}/db-objects',
1375
- method='GET',
1376
- path_params=path_params,
1377
- query_params=query_params,
1378
- header_params=header_params,
1379
- body=body_params,
1380
- post_params=form_params,
1381
- cname=cname,
1382
- response_type='ListDbObjectsResponse',
1383
- response_headers=response_headers,
1384
- auth_settings=auth_settings,
1385
- collection_formats=collection_formats,
1386
- request_type=request.__class__.__name__)
1558
+ http_info["cname"] = cname
1559
+ http_info["collection_formats"] = collection_formats
1560
+ http_info["path_params"] = path_params
1561
+ http_info["query_params"] = query_params
1562
+ http_info["header_params"] = header_params
1563
+ http_info["post_params"] = form_params
1564
+ http_info["body"] = body
1565
+ http_info["response_headers"] = response_headers
1566
+
1567
+ return http_info
1387
1568
 
1388
1569
  def list_jobs_async(self, request):
1389
1570
  """查询任务列表
@@ -1397,9 +1578,21 @@ class DrsAsyncClient(Client):
1397
1578
  :type request: :class:`huaweicloudsdkdrs.v5.ListJobsRequest`
1398
1579
  :rtype: :class:`huaweicloudsdkdrs.v5.ListJobsResponse`
1399
1580
  """
1400
- return self._list_jobs_with_http_info(request)
1581
+ http_info = self._list_jobs_http_info(request)
1582
+ return self._call_api(**http_info)
1583
+
1584
+ def list_jobs_async_invoker(self, request):
1585
+ http_info = self._list_jobs_http_info(request)
1586
+ return AsyncInvoker(self, http_info)
1587
+
1588
+ def _list_jobs_http_info(self, request):
1589
+ http_info = {
1590
+ "method": "GET",
1591
+ "resource_path": "/v5/{project_id}/jobs",
1592
+ "request_type": request.__class__.__name__,
1593
+ "response_type": "ListJobsResponse"
1594
+ }
1401
1595
 
1402
- def _list_jobs_with_http_info(self, request):
1403
1596
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
1404
1597
 
1405
1598
  cname = None
@@ -1441,9 +1634,9 @@ class DrsAsyncClient(Client):
1441
1634
 
1442
1635
  form_params = {}
1443
1636
 
1444
- body_params = None
1637
+ body = None
1445
1638
  if isinstance(request, SdkStreamRequest):
1446
- body_params = request.get_file_stream()
1639
+ body = request.get_file_stream()
1447
1640
 
1448
1641
  response_headers = []
1449
1642
 
@@ -1452,20 +1645,16 @@ class DrsAsyncClient(Client):
1452
1645
 
1453
1646
  auth_settings = []
1454
1647
 
1455
- return self.call_api(
1456
- resource_path='/v5/{project_id}/jobs',
1457
- method='GET',
1458
- path_params=path_params,
1459
- query_params=query_params,
1460
- header_params=header_params,
1461
- body=body_params,
1462
- post_params=form_params,
1463
- cname=cname,
1464
- response_type='ListJobsResponse',
1465
- response_headers=response_headers,
1466
- auth_settings=auth_settings,
1467
- collection_formats=collection_formats,
1468
- request_type=request.__class__.__name__)
1648
+ http_info["cname"] = cname
1649
+ http_info["collection_formats"] = collection_formats
1650
+ http_info["path_params"] = path_params
1651
+ http_info["query_params"] = query_params
1652
+ http_info["header_params"] = header_params
1653
+ http_info["post_params"] = form_params
1654
+ http_info["body"] = body
1655
+ http_info["response_headers"] = response_headers
1656
+
1657
+ return http_info
1469
1658
 
1470
1659
  def list_links_async(self, request):
1471
1660
  """查询可用链路信息
@@ -1479,9 +1668,21 @@ class DrsAsyncClient(Client):
1479
1668
  :type request: :class:`huaweicloudsdkdrs.v5.ListLinksRequest`
1480
1669
  :rtype: :class:`huaweicloudsdkdrs.v5.ListLinksResponse`
1481
1670
  """
1482
- return self._list_links_with_http_info(request)
1671
+ http_info = self._list_links_http_info(request)
1672
+ return self._call_api(**http_info)
1673
+
1674
+ def list_links_async_invoker(self, request):
1675
+ http_info = self._list_links_http_info(request)
1676
+ return AsyncInvoker(self, http_info)
1677
+
1678
+ def _list_links_http_info(self, request):
1679
+ http_info = {
1680
+ "method": "GET",
1681
+ "resource_path": "/v5/{project_id}/links",
1682
+ "request_type": request.__class__.__name__,
1683
+ "response_type": "ListLinksResponse"
1684
+ }
1483
1685
 
1484
- def _list_links_with_http_info(self, request):
1485
1686
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
1486
1687
 
1487
1688
  cname = None
@@ -1504,9 +1705,9 @@ class DrsAsyncClient(Client):
1504
1705
 
1505
1706
  form_params = {}
1506
1707
 
1507
- body_params = None
1708
+ body = None
1508
1709
  if isinstance(request, SdkStreamRequest):
1509
- body_params = request.get_file_stream()
1710
+ body = request.get_file_stream()
1510
1711
 
1511
1712
  response_headers = []
1512
1713
 
@@ -1515,20 +1716,16 @@ class DrsAsyncClient(Client):
1515
1716
 
1516
1717
  auth_settings = []
1517
1718
 
1518
- return self.call_api(
1519
- resource_path='/v5/{project_id}/links',
1520
- method='GET',
1521
- path_params=path_params,
1522
- query_params=query_params,
1523
- header_params=header_params,
1524
- body=body_params,
1525
- post_params=form_params,
1526
- cname=cname,
1527
- response_type='ListLinksResponse',
1528
- response_headers=response_headers,
1529
- auth_settings=auth_settings,
1530
- collection_formats=collection_formats,
1531
- request_type=request.__class__.__name__)
1719
+ http_info["cname"] = cname
1720
+ http_info["collection_formats"] = collection_formats
1721
+ http_info["path_params"] = path_params
1722
+ http_info["query_params"] = query_params
1723
+ http_info["header_params"] = header_params
1724
+ http_info["post_params"] = form_params
1725
+ http_info["body"] = body
1726
+ http_info["response_headers"] = response_headers
1727
+
1728
+ return http_info
1532
1729
 
1533
1730
  def list_project_tags_async(self, request):
1534
1731
  """查询项目标签
@@ -1542,9 +1739,21 @@ class DrsAsyncClient(Client):
1542
1739
  :type request: :class:`huaweicloudsdkdrs.v5.ListProjectTagsRequest`
1543
1740
  :rtype: :class:`huaweicloudsdkdrs.v5.ListProjectTagsResponse`
1544
1741
  """
1545
- return self._list_project_tags_with_http_info(request)
1742
+ http_info = self._list_project_tags_http_info(request)
1743
+ return self._call_api(**http_info)
1744
+
1745
+ def list_project_tags_async_invoker(self, request):
1746
+ http_info = self._list_project_tags_http_info(request)
1747
+ return AsyncInvoker(self, http_info)
1748
+
1749
+ def _list_project_tags_http_info(self, request):
1750
+ http_info = {
1751
+ "method": "GET",
1752
+ "resource_path": "/v5/{project_id}/jobs/{resource_type}/tags",
1753
+ "request_type": request.__class__.__name__,
1754
+ "response_type": "ListProjectTagsResponse"
1755
+ }
1546
1756
 
1547
- def _list_project_tags_with_http_info(self, request):
1548
1757
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
1549
1758
 
1550
1759
  cname = None
@@ -1563,9 +1772,9 @@ class DrsAsyncClient(Client):
1563
1772
 
1564
1773
  form_params = {}
1565
1774
 
1566
- body_params = None
1775
+ body = None
1567
1776
  if isinstance(request, SdkStreamRequest):
1568
- body_params = request.get_file_stream()
1777
+ body = request.get_file_stream()
1569
1778
 
1570
1779
  response_headers = []
1571
1780
 
@@ -1574,20 +1783,16 @@ class DrsAsyncClient(Client):
1574
1783
 
1575
1784
  auth_settings = []
1576
1785
 
1577
- return self.call_api(
1578
- resource_path='/v5/{project_id}/jobs/{resource_type}/tags',
1579
- method='GET',
1580
- path_params=path_params,
1581
- query_params=query_params,
1582
- header_params=header_params,
1583
- body=body_params,
1584
- post_params=form_params,
1585
- cname=cname,
1586
- response_type='ListProjectTagsResponse',
1587
- response_headers=response_headers,
1588
- auth_settings=auth_settings,
1589
- collection_formats=collection_formats,
1590
- request_type=request.__class__.__name__)
1786
+ http_info["cname"] = cname
1787
+ http_info["collection_formats"] = collection_formats
1788
+ http_info["path_params"] = path_params
1789
+ http_info["query_params"] = query_params
1790
+ http_info["header_params"] = header_params
1791
+ http_info["post_params"] = form_params
1792
+ http_info["body"] = body
1793
+ http_info["response_headers"] = response_headers
1794
+
1795
+ return http_info
1591
1796
 
1592
1797
  def show_actions_async(self, request):
1593
1798
  """获取指定任务操作信息
@@ -1601,9 +1806,21 @@ class DrsAsyncClient(Client):
1601
1806
  :type request: :class:`huaweicloudsdkdrs.v5.ShowActionsRequest`
1602
1807
  :rtype: :class:`huaweicloudsdkdrs.v5.ShowActionsResponse`
1603
1808
  """
1604
- return self._show_actions_with_http_info(request)
1809
+ http_info = self._show_actions_http_info(request)
1810
+ return self._call_api(**http_info)
1811
+
1812
+ def show_actions_async_invoker(self, request):
1813
+ http_info = self._show_actions_http_info(request)
1814
+ return AsyncInvoker(self, http_info)
1815
+
1816
+ def _show_actions_http_info(self, request):
1817
+ http_info = {
1818
+ "method": "GET",
1819
+ "resource_path": "/v5/{project_id}/jobs/{job_id}/actions",
1820
+ "request_type": request.__class__.__name__,
1821
+ "response_type": "ShowActionsResponse"
1822
+ }
1605
1823
 
1606
- def _show_actions_with_http_info(self, request):
1607
1824
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
1608
1825
 
1609
1826
  cname = None
@@ -1622,9 +1839,9 @@ class DrsAsyncClient(Client):
1622
1839
 
1623
1840
  form_params = {}
1624
1841
 
1625
- body_params = None
1842
+ body = None
1626
1843
  if isinstance(request, SdkStreamRequest):
1627
- body_params = request.get_file_stream()
1844
+ body = request.get_file_stream()
1628
1845
 
1629
1846
  response_headers = []
1630
1847
 
@@ -1633,20 +1850,16 @@ class DrsAsyncClient(Client):
1633
1850
 
1634
1851
  auth_settings = []
1635
1852
 
1636
- return self.call_api(
1637
- resource_path='/v5/{project_id}/jobs/{job_id}/actions',
1638
- method='GET',
1639
- path_params=path_params,
1640
- query_params=query_params,
1641
- header_params=header_params,
1642
- body=body_params,
1643
- post_params=form_params,
1644
- cname=cname,
1645
- response_type='ShowActionsResponse',
1646
- response_headers=response_headers,
1647
- auth_settings=auth_settings,
1648
- collection_formats=collection_formats,
1649
- request_type=request.__class__.__name__)
1853
+ http_info["cname"] = cname
1854
+ http_info["collection_formats"] = collection_formats
1855
+ http_info["path_params"] = path_params
1856
+ http_info["query_params"] = query_params
1857
+ http_info["header_params"] = header_params
1858
+ http_info["post_params"] = form_params
1859
+ http_info["body"] = body
1860
+ http_info["response_headers"] = response_headers
1861
+
1862
+ return http_info
1650
1863
 
1651
1864
  def show_column_info_result_async(self, request):
1652
1865
  """获取指定数据库表列信息
@@ -1660,9 +1873,21 @@ class DrsAsyncClient(Client):
1660
1873
  :type request: :class:`huaweicloudsdkdrs.v5.ShowColumnInfoResultRequest`
1661
1874
  :rtype: :class:`huaweicloudsdkdrs.v5.ShowColumnInfoResultResponse`
1662
1875
  """
1663
- return self._show_column_info_result_with_http_info(request)
1876
+ http_info = self._show_column_info_result_http_info(request)
1877
+ return self._call_api(**http_info)
1878
+
1879
+ def show_column_info_result_async_invoker(self, request):
1880
+ http_info = self._show_column_info_result_http_info(request)
1881
+ return AsyncInvoker(self, http_info)
1882
+
1883
+ def _show_column_info_result_http_info(self, request):
1884
+ http_info = {
1885
+ "method": "GET",
1886
+ "resource_path": "/v5/{project_id}/job/{job_id}/columns",
1887
+ "request_type": request.__class__.__name__,
1888
+ "response_type": "ShowColumnInfoResultResponse"
1889
+ }
1664
1890
 
1665
- def _show_column_info_result_with_http_info(self, request):
1666
1891
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
1667
1892
 
1668
1893
  cname = None
@@ -1687,9 +1912,9 @@ class DrsAsyncClient(Client):
1687
1912
 
1688
1913
  form_params = {}
1689
1914
 
1690
- body_params = None
1915
+ body = None
1691
1916
  if isinstance(request, SdkStreamRequest):
1692
- body_params = request.get_file_stream()
1917
+ body = request.get_file_stream()
1693
1918
 
1694
1919
  response_headers = []
1695
1920
 
@@ -1698,20 +1923,16 @@ class DrsAsyncClient(Client):
1698
1923
 
1699
1924
  auth_settings = []
1700
1925
 
1701
- return self.call_api(
1702
- resource_path='/v5/{project_id}/job/{job_id}/columns',
1703
- method='GET',
1704
- path_params=path_params,
1705
- query_params=query_params,
1706
- header_params=header_params,
1707
- body=body_params,
1708
- post_params=form_params,
1709
- cname=cname,
1710
- response_type='ShowColumnInfoResultResponse',
1711
- response_headers=response_headers,
1712
- auth_settings=auth_settings,
1713
- collection_formats=collection_formats,
1714
- request_type=request.__class__.__name__)
1926
+ http_info["cname"] = cname
1927
+ http_info["collection_formats"] = collection_formats
1928
+ http_info["path_params"] = path_params
1929
+ http_info["query_params"] = query_params
1930
+ http_info["header_params"] = header_params
1931
+ http_info["post_params"] = form_params
1932
+ http_info["body"] = body
1933
+ http_info["response_headers"] = response_headers
1934
+
1935
+ return http_info
1715
1936
 
1716
1937
  def show_compare_policy_async(self, request):
1717
1938
  """查询对比策略
@@ -1725,9 +1946,21 @@ class DrsAsyncClient(Client):
1725
1946
  :type request: :class:`huaweicloudsdkdrs.v5.ShowComparePolicyRequest`
1726
1947
  :rtype: :class:`huaweicloudsdkdrs.v5.ShowComparePolicyResponse`
1727
1948
  """
1728
- return self._show_compare_policy_with_http_info(request)
1949
+ http_info = self._show_compare_policy_http_info(request)
1950
+ return self._call_api(**http_info)
1951
+
1952
+ def show_compare_policy_async_invoker(self, request):
1953
+ http_info = self._show_compare_policy_http_info(request)
1954
+ return AsyncInvoker(self, http_info)
1955
+
1956
+ def _show_compare_policy_http_info(self, request):
1957
+ http_info = {
1958
+ "method": "GET",
1959
+ "resource_path": "/v5/{project_id}/jobs/{job_id}/compare-policy",
1960
+ "request_type": request.__class__.__name__,
1961
+ "response_type": "ShowComparePolicyResponse"
1962
+ }
1729
1963
 
1730
- def _show_compare_policy_with_http_info(self, request):
1731
1964
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
1732
1965
 
1733
1966
  cname = None
@@ -1746,9 +1979,9 @@ class DrsAsyncClient(Client):
1746
1979
 
1747
1980
  form_params = {}
1748
1981
 
1749
- body_params = None
1982
+ body = None
1750
1983
  if isinstance(request, SdkStreamRequest):
1751
- body_params = request.get_file_stream()
1984
+ body = request.get_file_stream()
1752
1985
 
1753
1986
  response_headers = []
1754
1987
 
@@ -1757,20 +1990,16 @@ class DrsAsyncClient(Client):
1757
1990
 
1758
1991
  auth_settings = []
1759
1992
 
1760
- return self.call_api(
1761
- resource_path='/v5/{project_id}/jobs/{job_id}/compare-policy',
1762
- method='GET',
1763
- path_params=path_params,
1764
- query_params=query_params,
1765
- header_params=header_params,
1766
- body=body_params,
1767
- post_params=form_params,
1768
- cname=cname,
1769
- response_type='ShowComparePolicyResponse',
1770
- response_headers=response_headers,
1771
- auth_settings=auth_settings,
1772
- collection_formats=collection_formats,
1773
- request_type=request.__class__.__name__)
1993
+ http_info["cname"] = cname
1994
+ http_info["collection_formats"] = collection_formats
1995
+ http_info["path_params"] = path_params
1996
+ http_info["query_params"] = query_params
1997
+ http_info["header_params"] = header_params
1998
+ http_info["post_params"] = form_params
1999
+ http_info["body"] = body
2000
+ http_info["response_headers"] = response_headers
2001
+
2002
+ return http_info
1774
2003
 
1775
2004
  def show_data_filtering_result_async(self, request):
1776
2005
  """获取数据过滤校验结果
@@ -1784,9 +2013,21 @@ class DrsAsyncClient(Client):
1784
2013
  :type request: :class:`huaweicloudsdkdrs.v5.ShowDataFilteringResultRequest`
1785
2014
  :rtype: :class:`huaweicloudsdkdrs.v5.ShowDataFilteringResultResponse`
1786
2015
  """
1787
- return self._show_data_filtering_result_with_http_info(request)
2016
+ http_info = self._show_data_filtering_result_http_info(request)
2017
+ return self._call_api(**http_info)
2018
+
2019
+ def show_data_filtering_result_async_invoker(self, request):
2020
+ http_info = self._show_data_filtering_result_http_info(request)
2021
+ return AsyncInvoker(self, http_info)
2022
+
2023
+ def _show_data_filtering_result_http_info(self, request):
2024
+ http_info = {
2025
+ "method": "GET",
2026
+ "resource_path": "/v5/{project_id}/job/{job_id}/data-filtering/result",
2027
+ "request_type": request.__class__.__name__,
2028
+ "response_type": "ShowDataFilteringResultResponse"
2029
+ }
1788
2030
 
1789
- def _show_data_filtering_result_with_http_info(self, request):
1790
2031
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
1791
2032
 
1792
2033
  cname = None
@@ -1807,9 +2048,9 @@ class DrsAsyncClient(Client):
1807
2048
 
1808
2049
  form_params = {}
1809
2050
 
1810
- body_params = None
2051
+ body = None
1811
2052
  if isinstance(request, SdkStreamRequest):
1812
- body_params = request.get_file_stream()
2053
+ body = request.get_file_stream()
1813
2054
 
1814
2055
  response_headers = []
1815
2056
 
@@ -1818,20 +2059,16 @@ class DrsAsyncClient(Client):
1818
2059
 
1819
2060
  auth_settings = []
1820
2061
 
1821
- return self.call_api(
1822
- resource_path='/v5/{project_id}/job/{job_id}/data-filtering/result',
1823
- method='GET',
1824
- path_params=path_params,
1825
- query_params=query_params,
1826
- header_params=header_params,
1827
- body=body_params,
1828
- post_params=form_params,
1829
- cname=cname,
1830
- response_type='ShowDataFilteringResultResponse',
1831
- response_headers=response_headers,
1832
- auth_settings=auth_settings,
1833
- collection_formats=collection_formats,
1834
- request_type=request.__class__.__name__)
2062
+ http_info["cname"] = cname
2063
+ http_info["collection_formats"] = collection_formats
2064
+ http_info["path_params"] = path_params
2065
+ http_info["query_params"] = query_params
2066
+ http_info["header_params"] = header_params
2067
+ http_info["post_params"] = form_params
2068
+ http_info["body"] = body
2069
+ http_info["response_headers"] = response_headers
2070
+
2071
+ return http_info
1835
2072
 
1836
2073
  def show_data_processing_rules_result_async(self, request):
1837
2074
  """获取指定任务数据加工规则更新结果
@@ -1845,9 +2082,21 @@ class DrsAsyncClient(Client):
1845
2082
  :type request: :class:`huaweicloudsdkdrs.v5.ShowDataProcessingRulesResultRequest`
1846
2083
  :rtype: :class:`huaweicloudsdkdrs.v5.ShowDataProcessingRulesResultResponse`
1847
2084
  """
1848
- return self._show_data_processing_rules_result_with_http_info(request)
2085
+ http_info = self._show_data_processing_rules_result_http_info(request)
2086
+ return self._call_api(**http_info)
2087
+
2088
+ def show_data_processing_rules_result_async_invoker(self, request):
2089
+ http_info = self._show_data_processing_rules_result_http_info(request)
2090
+ return AsyncInvoker(self, http_info)
2091
+
2092
+ def _show_data_processing_rules_result_http_info(self, request):
2093
+ http_info = {
2094
+ "method": "GET",
2095
+ "resource_path": "/v5/{project_id}/jobs/{job_id}/data-processing-rules/result",
2096
+ "request_type": request.__class__.__name__,
2097
+ "response_type": "ShowDataProcessingRulesResultResponse"
2098
+ }
1849
2099
 
1850
- def _show_data_processing_rules_result_with_http_info(self, request):
1851
2100
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
1852
2101
 
1853
2102
  cname = None
@@ -1868,9 +2117,9 @@ class DrsAsyncClient(Client):
1868
2117
 
1869
2118
  form_params = {}
1870
2119
 
1871
- body_params = None
2120
+ body = None
1872
2121
  if isinstance(request, SdkStreamRequest):
1873
- body_params = request.get_file_stream()
2122
+ body = request.get_file_stream()
1874
2123
 
1875
2124
  response_headers = []
1876
2125
 
@@ -1879,20 +2128,16 @@ class DrsAsyncClient(Client):
1879
2128
 
1880
2129
  auth_settings = []
1881
2130
 
1882
- return self.call_api(
1883
- resource_path='/v5/{project_id}/jobs/{job_id}/data-processing-rules/result',
1884
- method='GET',
1885
- path_params=path_params,
1886
- query_params=query_params,
1887
- header_params=header_params,
1888
- body=body_params,
1889
- post_params=form_params,
1890
- cname=cname,
1891
- response_type='ShowDataProcessingRulesResultResponse',
1892
- response_headers=response_headers,
1893
- auth_settings=auth_settings,
1894
- collection_formats=collection_formats,
1895
- request_type=request.__class__.__name__)
2131
+ http_info["cname"] = cname
2132
+ http_info["collection_formats"] = collection_formats
2133
+ http_info["path_params"] = path_params
2134
+ http_info["query_params"] = query_params
2135
+ http_info["header_params"] = header_params
2136
+ http_info["post_params"] = form_params
2137
+ http_info["body"] = body
2138
+ http_info["response_headers"] = response_headers
2139
+
2140
+ return http_info
1896
2141
 
1897
2142
  def show_data_progress_async(self, request):
1898
2143
  """查询数据加工规则
@@ -1906,9 +2151,21 @@ class DrsAsyncClient(Client):
1906
2151
  :type request: :class:`huaweicloudsdkdrs.v5.ShowDataProgressRequest`
1907
2152
  :rtype: :class:`huaweicloudsdkdrs.v5.ShowDataProgressResponse`
1908
2153
  """
1909
- return self._show_data_progress_with_http_info(request)
2154
+ http_info = self._show_data_progress_http_info(request)
2155
+ return self._call_api(**http_info)
2156
+
2157
+ def show_data_progress_async_invoker(self, request):
2158
+ http_info = self._show_data_progress_http_info(request)
2159
+ return AsyncInvoker(self, http_info)
2160
+
2161
+ def _show_data_progress_http_info(self, request):
2162
+ http_info = {
2163
+ "method": "GET",
2164
+ "resource_path": "/v5/{project_id}/jobs/{job_id}/data-processing-rules",
2165
+ "request_type": request.__class__.__name__,
2166
+ "response_type": "ShowDataProgressResponse"
2167
+ }
1910
2168
 
1911
- def _show_data_progress_with_http_info(self, request):
1912
2169
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
1913
2170
 
1914
2171
  cname = None
@@ -1931,9 +2188,9 @@ class DrsAsyncClient(Client):
1931
2188
 
1932
2189
  form_params = {}
1933
2190
 
1934
- body_params = None
2191
+ body = None
1935
2192
  if isinstance(request, SdkStreamRequest):
1936
- body_params = request.get_file_stream()
2193
+ body = request.get_file_stream()
1937
2194
 
1938
2195
  response_headers = []
1939
2196
 
@@ -1942,20 +2199,16 @@ class DrsAsyncClient(Client):
1942
2199
 
1943
2200
  auth_settings = []
1944
2201
 
1945
- return self.call_api(
1946
- resource_path='/v5/{project_id}/jobs/{job_id}/data-processing-rules',
1947
- method='GET',
1948
- path_params=path_params,
1949
- query_params=query_params,
1950
- header_params=header_params,
1951
- body=body_params,
1952
- post_params=form_params,
1953
- cname=cname,
1954
- response_type='ShowDataProgressResponse',
1955
- response_headers=response_headers,
1956
- auth_settings=auth_settings,
1957
- collection_formats=collection_formats,
1958
- request_type=request.__class__.__name__)
2202
+ http_info["cname"] = cname
2203
+ http_info["collection_formats"] = collection_formats
2204
+ http_info["path_params"] = path_params
2205
+ http_info["query_params"] = query_params
2206
+ http_info["header_params"] = header_params
2207
+ http_info["post_params"] = form_params
2208
+ http_info["body"] = body
2209
+ http_info["response_headers"] = response_headers
2210
+
2211
+ return http_info
1959
2212
 
1960
2213
  def show_db_object_collection_status_async(self, request):
1961
2214
  """获取提交查询数据库对象信息的结果
@@ -1969,9 +2222,21 @@ class DrsAsyncClient(Client):
1969
2222
  :type request: :class:`huaweicloudsdkdrs.v5.ShowDbObjectCollectionStatusRequest`
1970
2223
  :rtype: :class:`huaweicloudsdkdrs.v5.ShowDbObjectCollectionStatusResponse`
1971
2224
  """
1972
- return self._show_db_object_collection_status_with_http_info(request)
2225
+ http_info = self._show_db_object_collection_status_http_info(request)
2226
+ return self._call_api(**http_info)
2227
+
2228
+ def show_db_object_collection_status_async_invoker(self, request):
2229
+ http_info = self._show_db_object_collection_status_http_info(request)
2230
+ return AsyncInvoker(self, http_info)
2231
+
2232
+ def _show_db_object_collection_status_http_info(self, request):
2233
+ http_info = {
2234
+ "method": "GET",
2235
+ "resource_path": "/v5/{project_id}/jobs/{job_id}/db-objects/collection-status",
2236
+ "request_type": request.__class__.__name__,
2237
+ "response_type": "ShowDbObjectCollectionStatusResponse"
2238
+ }
1973
2239
 
1974
- def _show_db_object_collection_status_with_http_info(self, request):
1975
2240
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
1976
2241
 
1977
2242
  cname = None
@@ -1992,9 +2257,9 @@ class DrsAsyncClient(Client):
1992
2257
 
1993
2258
  form_params = {}
1994
2259
 
1995
- body_params = None
2260
+ body = None
1996
2261
  if isinstance(request, SdkStreamRequest):
1997
- body_params = request.get_file_stream()
2262
+ body = request.get_file_stream()
1998
2263
 
1999
2264
  response_headers = []
2000
2265
 
@@ -2003,20 +2268,16 @@ class DrsAsyncClient(Client):
2003
2268
 
2004
2269
  auth_settings = []
2005
2270
 
2006
- return self.call_api(
2007
- resource_path='/v5/{project_id}/jobs/{job_id}/db-objects/collection-status',
2008
- method='GET',
2009
- path_params=path_params,
2010
- query_params=query_params,
2011
- header_params=header_params,
2012
- body=body_params,
2013
- post_params=form_params,
2014
- cname=cname,
2015
- response_type='ShowDbObjectCollectionStatusResponse',
2016
- response_headers=response_headers,
2017
- auth_settings=auth_settings,
2018
- collection_formats=collection_formats,
2019
- request_type=request.__class__.__name__)
2271
+ http_info["cname"] = cname
2272
+ http_info["collection_formats"] = collection_formats
2273
+ http_info["path_params"] = path_params
2274
+ http_info["query_params"] = query_params
2275
+ http_info["header_params"] = header_params
2276
+ http_info["post_params"] = form_params
2277
+ http_info["body"] = body
2278
+ http_info["response_headers"] = response_headers
2279
+
2280
+ return http_info
2020
2281
 
2021
2282
  def show_db_object_template_progress_async(self, request):
2022
2283
  """对象选择(文件导入 - 进度查询)
@@ -2030,9 +2291,21 @@ class DrsAsyncClient(Client):
2030
2291
  :type request: :class:`huaweicloudsdkdrs.v5.ShowDbObjectTemplateProgressRequest`
2031
2292
  :rtype: :class:`huaweicloudsdkdrs.v5.ShowDbObjectTemplateProgressResponse`
2032
2293
  """
2033
- return self._show_db_object_template_progress_with_http_info(request)
2294
+ http_info = self._show_db_object_template_progress_http_info(request)
2295
+ return self._call_api(**http_info)
2296
+
2297
+ def show_db_object_template_progress_async_invoker(self, request):
2298
+ http_info = self._show_db_object_template_progress_http_info(request)
2299
+ return AsyncInvoker(self, http_info)
2300
+
2301
+ def _show_db_object_template_progress_http_info(self, request):
2302
+ http_info = {
2303
+ "method": "GET",
2304
+ "resource_path": "/v5/{project_id}/jobs/{job_id}/db-object/template/progress",
2305
+ "request_type": request.__class__.__name__,
2306
+ "response_type": "ShowDbObjectTemplateProgressResponse"
2307
+ }
2034
2308
 
2035
- def _show_db_object_template_progress_with_http_info(self, request):
2036
2309
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
2037
2310
 
2038
2311
  cname = None
@@ -2055,9 +2328,9 @@ class DrsAsyncClient(Client):
2055
2328
 
2056
2329
  form_params = {}
2057
2330
 
2058
- body_params = None
2331
+ body = None
2059
2332
  if isinstance(request, SdkStreamRequest):
2060
- body_params = request.get_file_stream()
2333
+ body = request.get_file_stream()
2061
2334
 
2062
2335
  response_headers = []
2063
2336
 
@@ -2066,20 +2339,16 @@ class DrsAsyncClient(Client):
2066
2339
 
2067
2340
  auth_settings = []
2068
2341
 
2069
- return self.call_api(
2070
- resource_path='/v5/{project_id}/jobs/{job_id}/db-object/template/progress',
2071
- method='GET',
2072
- path_params=path_params,
2073
- query_params=query_params,
2074
- header_params=header_params,
2075
- body=body_params,
2076
- post_params=form_params,
2077
- cname=cname,
2078
- response_type='ShowDbObjectTemplateProgressResponse',
2079
- response_headers=response_headers,
2080
- auth_settings=auth_settings,
2081
- collection_formats=collection_formats,
2082
- request_type=request.__class__.__name__)
2342
+ http_info["cname"] = cname
2343
+ http_info["collection_formats"] = collection_formats
2344
+ http_info["path_params"] = path_params
2345
+ http_info["query_params"] = query_params
2346
+ http_info["header_params"] = header_params
2347
+ http_info["post_params"] = form_params
2348
+ http_info["body"] = body
2349
+ http_info["response_headers"] = response_headers
2350
+
2351
+ return http_info
2083
2352
 
2084
2353
  def show_db_object_template_result_async(self, request):
2085
2354
  """对象选择(文件导入 - 获取导入结果)
@@ -2093,9 +2362,21 @@ class DrsAsyncClient(Client):
2093
2362
  :type request: :class:`huaweicloudsdkdrs.v5.ShowDbObjectTemplateResultRequest`
2094
2363
  :rtype: :class:`huaweicloudsdkdrs.v5.ShowDbObjectTemplateResultResponse`
2095
2364
  """
2096
- return self._show_db_object_template_result_with_http_info(request)
2365
+ http_info = self._show_db_object_template_result_http_info(request)
2366
+ return self._call_api(**http_info)
2367
+
2368
+ def show_db_object_template_result_async_invoker(self, request):
2369
+ http_info = self._show_db_object_template_result_http_info(request)
2370
+ return AsyncInvoker(self, http_info)
2371
+
2372
+ def _show_db_object_template_result_http_info(self, request):
2373
+ http_info = {
2374
+ "method": "GET",
2375
+ "resource_path": "/v5/{project_id}/jobs/{job_id}/db-object/template/result",
2376
+ "request_type": request.__class__.__name__,
2377
+ "response_type": "ShowDbObjectTemplateResultResponse"
2378
+ }
2097
2379
 
2098
- def _show_db_object_template_result_with_http_info(self, request):
2099
2380
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
2100
2381
 
2101
2382
  cname = None
@@ -2116,9 +2397,9 @@ class DrsAsyncClient(Client):
2116
2397
 
2117
2398
  form_params = {}
2118
2399
 
2119
- body_params = None
2400
+ body = None
2120
2401
  if isinstance(request, SdkStreamRequest):
2121
- body_params = request.get_file_stream()
2402
+ body = request.get_file_stream()
2122
2403
 
2123
2404
  response_headers = []
2124
2405
 
@@ -2127,20 +2408,16 @@ class DrsAsyncClient(Client):
2127
2408
 
2128
2409
  auth_settings = []
2129
2410
 
2130
- return self.call_api(
2131
- resource_path='/v5/{project_id}/jobs/{job_id}/db-object/template/result',
2132
- method='GET',
2133
- path_params=path_params,
2134
- query_params=query_params,
2135
- header_params=header_params,
2136
- body=body_params,
2137
- post_params=form_params,
2138
- cname=cname,
2139
- response_type='ShowDbObjectTemplateResultResponse',
2140
- response_headers=response_headers,
2141
- auth_settings=auth_settings,
2142
- collection_formats=collection_formats,
2143
- request_type=request.__class__.__name__)
2411
+ http_info["cname"] = cname
2412
+ http_info["collection_formats"] = collection_formats
2413
+ http_info["path_params"] = path_params
2414
+ http_info["query_params"] = query_params
2415
+ http_info["header_params"] = header_params
2416
+ http_info["post_params"] = form_params
2417
+ http_info["body"] = body
2418
+ http_info["response_headers"] = response_headers
2419
+
2420
+ return http_info
2144
2421
 
2145
2422
  def show_db_objects_list_async(self, request):
2146
2423
  """查询数据库对象信息
@@ -2154,9 +2431,21 @@ class DrsAsyncClient(Client):
2154
2431
  :type request: :class:`huaweicloudsdkdrs.v5.ShowDbObjectsListRequest`
2155
2432
  :rtype: :class:`huaweicloudsdkdrs.v5.ShowDbObjectsListResponse`
2156
2433
  """
2157
- return self._show_db_objects_list_with_http_info(request)
2434
+ http_info = self._show_db_objects_list_http_info(request)
2435
+ return self._call_api(**http_info)
2436
+
2437
+ def show_db_objects_list_async_invoker(self, request):
2438
+ http_info = self._show_db_objects_list_http_info(request)
2439
+ return AsyncInvoker(self, http_info)
2440
+
2441
+ def _show_db_objects_list_http_info(self, request):
2442
+ http_info = {
2443
+ "method": "GET",
2444
+ "resource_path": "/v5.1/{project_id}/jobs/{job_id}/db-object",
2445
+ "request_type": request.__class__.__name__,
2446
+ "response_type": "ShowDbObjectsListResponse"
2447
+ }
2158
2448
 
2159
- def _show_db_objects_list_with_http_info(self, request):
2160
2449
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
2161
2450
 
2162
2451
  cname = None
@@ -2177,9 +2466,9 @@ class DrsAsyncClient(Client):
2177
2466
 
2178
2467
  form_params = {}
2179
2468
 
2180
- body_params = None
2469
+ body = None
2181
2470
  if isinstance(request, SdkStreamRequest):
2182
- body_params = request.get_file_stream()
2471
+ body = request.get_file_stream()
2183
2472
 
2184
2473
  response_headers = []
2185
2474
 
@@ -2188,20 +2477,16 @@ class DrsAsyncClient(Client):
2188
2477
 
2189
2478
  auth_settings = []
2190
2479
 
2191
- return self.call_api(
2192
- resource_path='/v5.1/{project_id}/jobs/{job_id}/db-object',
2193
- method='GET',
2194
- path_params=path_params,
2195
- query_params=query_params,
2196
- header_params=header_params,
2197
- body=body_params,
2198
- post_params=form_params,
2199
- cname=cname,
2200
- response_type='ShowDbObjectsListResponse',
2201
- response_headers=response_headers,
2202
- auth_settings=auth_settings,
2203
- collection_formats=collection_formats,
2204
- request_type=request.__class__.__name__)
2480
+ http_info["cname"] = cname
2481
+ http_info["collection_formats"] = collection_formats
2482
+ http_info["path_params"] = path_params
2483
+ http_info["query_params"] = query_params
2484
+ http_info["header_params"] = header_params
2485
+ http_info["post_params"] = form_params
2486
+ http_info["body"] = body
2487
+ http_info["response_headers"] = response_headers
2488
+
2489
+ return http_info
2205
2490
 
2206
2491
  def show_dirty_data_async(self, request):
2207
2492
  """查询异常数据列表
@@ -2215,9 +2500,21 @@ class DrsAsyncClient(Client):
2215
2500
  :type request: :class:`huaweicloudsdkdrs.v5.ShowDirtyDataRequest`
2216
2501
  :rtype: :class:`huaweicloudsdkdrs.v5.ShowDirtyDataResponse`
2217
2502
  """
2218
- return self._show_dirty_data_with_http_info(request)
2503
+ http_info = self._show_dirty_data_http_info(request)
2504
+ return self._call_api(**http_info)
2505
+
2506
+ def show_dirty_data_async_invoker(self, request):
2507
+ http_info = self._show_dirty_data_http_info(request)
2508
+ return AsyncInvoker(self, http_info)
2509
+
2510
+ def _show_dirty_data_http_info(self, request):
2511
+ http_info = {
2512
+ "method": "GET",
2513
+ "resource_path": "/v5/{project_id}/jobs/{job_id}/dirty-data",
2514
+ "request_type": request.__class__.__name__,
2515
+ "response_type": "ShowDirtyDataResponse"
2516
+ }
2219
2517
 
2220
- def _show_dirty_data_with_http_info(self, request):
2221
2518
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
2222
2519
 
2223
2520
  cname = None
@@ -2244,9 +2541,9 @@ class DrsAsyncClient(Client):
2244
2541
 
2245
2542
  form_params = {}
2246
2543
 
2247
- body_params = None
2544
+ body = None
2248
2545
  if isinstance(request, SdkStreamRequest):
2249
- body_params = request.get_file_stream()
2546
+ body = request.get_file_stream()
2250
2547
 
2251
2548
  response_headers = []
2252
2549
 
@@ -2255,20 +2552,16 @@ class DrsAsyncClient(Client):
2255
2552
 
2256
2553
  auth_settings = []
2257
2554
 
2258
- return self.call_api(
2259
- resource_path='/v5/{project_id}/jobs/{job_id}/dirty-data',
2260
- method='GET',
2261
- path_params=path_params,
2262
- query_params=query_params,
2263
- header_params=header_params,
2264
- body=body_params,
2265
- post_params=form_params,
2266
- cname=cname,
2267
- response_type='ShowDirtyDataResponse',
2268
- response_headers=response_headers,
2269
- auth_settings=auth_settings,
2270
- collection_formats=collection_formats,
2271
- request_type=request.__class__.__name__)
2555
+ http_info["cname"] = cname
2556
+ http_info["collection_formats"] = collection_formats
2557
+ http_info["path_params"] = path_params
2558
+ http_info["query_params"] = query_params
2559
+ http_info["header_params"] = header_params
2560
+ http_info["post_params"] = form_params
2561
+ http_info["body"] = body
2562
+ http_info["response_headers"] = response_headers
2563
+
2564
+ return http_info
2272
2565
 
2273
2566
  def show_enterprise_project_async(self, request):
2274
2567
  """查询企业项目列表
@@ -2282,9 +2575,21 @@ class DrsAsyncClient(Client):
2282
2575
  :type request: :class:`huaweicloudsdkdrs.v5.ShowEnterpriseProjectRequest`
2283
2576
  :rtype: :class:`huaweicloudsdkdrs.v5.ShowEnterpriseProjectResponse`
2284
2577
  """
2285
- return self._show_enterprise_project_with_http_info(request)
2578
+ http_info = self._show_enterprise_project_http_info(request)
2579
+ return self._call_api(**http_info)
2580
+
2581
+ def show_enterprise_project_async_invoker(self, request):
2582
+ http_info = self._show_enterprise_project_http_info(request)
2583
+ return AsyncInvoker(self, http_info)
2584
+
2585
+ def _show_enterprise_project_http_info(self, request):
2586
+ http_info = {
2587
+ "method": "GET",
2588
+ "resource_path": "/v5/{project_id}/enterprise-projects",
2589
+ "request_type": request.__class__.__name__,
2590
+ "response_type": "ShowEnterpriseProjectResponse"
2591
+ }
2286
2592
 
2287
- def _show_enterprise_project_with_http_info(self, request):
2288
2593
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
2289
2594
 
2290
2595
  cname = None
@@ -2309,9 +2614,9 @@ class DrsAsyncClient(Client):
2309
2614
 
2310
2615
  form_params = {}
2311
2616
 
2312
- body_params = None
2617
+ body = None
2313
2618
  if isinstance(request, SdkStreamRequest):
2314
- body_params = request.get_file_stream()
2619
+ body = request.get_file_stream()
2315
2620
 
2316
2621
  response_headers = []
2317
2622
 
@@ -2320,20 +2625,16 @@ class DrsAsyncClient(Client):
2320
2625
 
2321
2626
  auth_settings = []
2322
2627
 
2323
- return self.call_api(
2324
- resource_path='/v5/{project_id}/enterprise-projects',
2325
- method='GET',
2326
- path_params=path_params,
2327
- query_params=query_params,
2328
- header_params=header_params,
2329
- body=body_params,
2330
- post_params=form_params,
2331
- cname=cname,
2332
- response_type='ShowEnterpriseProjectResponse',
2333
- response_headers=response_headers,
2334
- auth_settings=auth_settings,
2335
- collection_formats=collection_formats,
2336
- request_type=request.__class__.__name__)
2628
+ http_info["cname"] = cname
2629
+ http_info["collection_formats"] = collection_formats
2630
+ http_info["path_params"] = path_params
2631
+ http_info["query_params"] = query_params
2632
+ http_info["header_params"] = header_params
2633
+ http_info["post_params"] = form_params
2634
+ http_info["body"] = body
2635
+ http_info["response_headers"] = response_headers
2636
+
2637
+ return http_info
2337
2638
 
2338
2639
  def show_health_compare_job_list_async(self, request):
2339
2640
  """查询健康对比列表
@@ -2347,9 +2648,21 @@ class DrsAsyncClient(Client):
2347
2648
  :type request: :class:`huaweicloudsdkdrs.v5.ShowHealthCompareJobListRequest`
2348
2649
  :rtype: :class:`huaweicloudsdkdrs.v5.ShowHealthCompareJobListResponse`
2349
2650
  """
2350
- return self._show_health_compare_job_list_with_http_info(request)
2651
+ http_info = self._show_health_compare_job_list_http_info(request)
2652
+ return self._call_api(**http_info)
2653
+
2654
+ def show_health_compare_job_list_async_invoker(self, request):
2655
+ http_info = self._show_health_compare_job_list_http_info(request)
2656
+ return AsyncInvoker(self, http_info)
2657
+
2658
+ def _show_health_compare_job_list_http_info(self, request):
2659
+ http_info = {
2660
+ "method": "GET",
2661
+ "resource_path": "/v5/{project_id}/jobs/{job_id}/health-compare-jobs",
2662
+ "request_type": request.__class__.__name__,
2663
+ "response_type": "ShowHealthCompareJobListResponse"
2664
+ }
2351
2665
 
2352
- def _show_health_compare_job_list_with_http_info(self, request):
2353
2666
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
2354
2667
 
2355
2668
  cname = None
@@ -2374,9 +2687,9 @@ class DrsAsyncClient(Client):
2374
2687
 
2375
2688
  form_params = {}
2376
2689
 
2377
- body_params = None
2690
+ body = None
2378
2691
  if isinstance(request, SdkStreamRequest):
2379
- body_params = request.get_file_stream()
2692
+ body = request.get_file_stream()
2380
2693
 
2381
2694
  response_headers = []
2382
2695
 
@@ -2385,20 +2698,16 @@ class DrsAsyncClient(Client):
2385
2698
 
2386
2699
  auth_settings = []
2387
2700
 
2388
- return self.call_api(
2389
- resource_path='/v5/{project_id}/jobs/{job_id}/health-compare-jobs',
2390
- method='GET',
2391
- path_params=path_params,
2392
- query_params=query_params,
2393
- header_params=header_params,
2394
- body=body_params,
2395
- post_params=form_params,
2396
- cname=cname,
2397
- response_type='ShowHealthCompareJobListResponse',
2398
- response_headers=response_headers,
2399
- auth_settings=auth_settings,
2400
- collection_formats=collection_formats,
2401
- request_type=request.__class__.__name__)
2701
+ http_info["cname"] = cname
2702
+ http_info["collection_formats"] = collection_formats
2703
+ http_info["path_params"] = path_params
2704
+ http_info["query_params"] = query_params
2705
+ http_info["header_params"] = header_params
2706
+ http_info["post_params"] = form_params
2707
+ http_info["body"] = body
2708
+ http_info["response_headers"] = response_headers
2709
+
2710
+ return http_info
2402
2711
 
2403
2712
  def show_increment_components_detail_async(self, request):
2404
2713
  """查询增量组件详情
@@ -2413,9 +2722,21 @@ class DrsAsyncClient(Client):
2413
2722
  :type request: :class:`huaweicloudsdkdrs.v5.ShowIncrementComponentsDetailRequest`
2414
2723
  :rtype: :class:`huaweicloudsdkdrs.v5.ShowIncrementComponentsDetailResponse`
2415
2724
  """
2416
- return self._show_increment_components_detail_with_http_info(request)
2725
+ http_info = self._show_increment_components_detail_http_info(request)
2726
+ return self._call_api(**http_info)
2727
+
2728
+ def show_increment_components_detail_async_invoker(self, request):
2729
+ http_info = self._show_increment_components_detail_http_info(request)
2730
+ return AsyncInvoker(self, http_info)
2731
+
2732
+ def _show_increment_components_detail_http_info(self, request):
2733
+ http_info = {
2734
+ "method": "GET",
2735
+ "resource_path": "/v5/{project_id}/jobs/{job_id}/increment-components-detail",
2736
+ "request_type": request.__class__.__name__,
2737
+ "response_type": "ShowIncrementComponentsDetailResponse"
2738
+ }
2417
2739
 
2418
- def _show_increment_components_detail_with_http_info(self, request):
2419
2740
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
2420
2741
 
2421
2742
  cname = None
@@ -2434,9 +2755,9 @@ class DrsAsyncClient(Client):
2434
2755
 
2435
2756
  form_params = {}
2436
2757
 
2437
- body_params = None
2758
+ body = None
2438
2759
  if isinstance(request, SdkStreamRequest):
2439
- body_params = request.get_file_stream()
2760
+ body = request.get_file_stream()
2440
2761
 
2441
2762
  response_headers = []
2442
2763
 
@@ -2445,20 +2766,16 @@ class DrsAsyncClient(Client):
2445
2766
 
2446
2767
  auth_settings = []
2447
2768
 
2448
- return self.call_api(
2449
- resource_path='/v5/{project_id}/jobs/{job_id}/increment-components-detail',
2450
- method='GET',
2451
- path_params=path_params,
2452
- query_params=query_params,
2453
- header_params=header_params,
2454
- body=body_params,
2455
- post_params=form_params,
2456
- cname=cname,
2457
- response_type='ShowIncrementComponentsDetailResponse',
2458
- response_headers=response_headers,
2459
- auth_settings=auth_settings,
2460
- collection_formats=collection_formats,
2461
- request_type=request.__class__.__name__)
2769
+ http_info["cname"] = cname
2770
+ http_info["collection_formats"] = collection_formats
2771
+ http_info["path_params"] = path_params
2772
+ http_info["query_params"] = query_params
2773
+ http_info["header_params"] = header_params
2774
+ http_info["post_params"] = form_params
2775
+ http_info["body"] = body
2776
+ http_info["response_headers"] = response_headers
2777
+
2778
+ return http_info
2462
2779
 
2463
2780
  def show_instance_tags_async(self, request):
2464
2781
  """查询资源标签
@@ -2472,9 +2789,21 @@ class DrsAsyncClient(Client):
2472
2789
  :type request: :class:`huaweicloudsdkdrs.v5.ShowInstanceTagsRequest`
2473
2790
  :rtype: :class:`huaweicloudsdkdrs.v5.ShowInstanceTagsResponse`
2474
2791
  """
2475
- return self._show_instance_tags_with_http_info(request)
2792
+ http_info = self._show_instance_tags_http_info(request)
2793
+ return self._call_api(**http_info)
2794
+
2795
+ def show_instance_tags_async_invoker(self, request):
2796
+ http_info = self._show_instance_tags_http_info(request)
2797
+ return AsyncInvoker(self, http_info)
2798
+
2799
+ def _show_instance_tags_http_info(self, request):
2800
+ http_info = {
2801
+ "method": "GET",
2802
+ "resource_path": "/v5/{project_id}/jobs/{resource_type}/{job_id}/tags",
2803
+ "request_type": request.__class__.__name__,
2804
+ "response_type": "ShowInstanceTagsResponse"
2805
+ }
2476
2806
 
2477
- def _show_instance_tags_with_http_info(self, request):
2478
2807
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
2479
2808
 
2480
2809
  cname = None
@@ -2495,9 +2824,9 @@ class DrsAsyncClient(Client):
2495
2824
 
2496
2825
  form_params = {}
2497
2826
 
2498
- body_params = None
2827
+ body = None
2499
2828
  if isinstance(request, SdkStreamRequest):
2500
- body_params = request.get_file_stream()
2829
+ body = request.get_file_stream()
2501
2830
 
2502
2831
  response_headers = []
2503
2832
 
@@ -2506,20 +2835,16 @@ class DrsAsyncClient(Client):
2506
2835
 
2507
2836
  auth_settings = []
2508
2837
 
2509
- return self.call_api(
2510
- resource_path='/v5/{project_id}/jobs/{resource_type}/{job_id}/tags',
2511
- method='GET',
2512
- path_params=path_params,
2513
- query_params=query_params,
2514
- header_params=header_params,
2515
- body=body_params,
2516
- post_params=form_params,
2517
- cname=cname,
2518
- response_type='ShowInstanceTagsResponse',
2519
- response_headers=response_headers,
2520
- auth_settings=auth_settings,
2521
- collection_formats=collection_formats,
2522
- request_type=request.__class__.__name__)
2838
+ http_info["cname"] = cname
2839
+ http_info["collection_formats"] = collection_formats
2840
+ http_info["path_params"] = path_params
2841
+ http_info["query_params"] = query_params
2842
+ http_info["header_params"] = header_params
2843
+ http_info["post_params"] = form_params
2844
+ http_info["body"] = body
2845
+ http_info["response_headers"] = response_headers
2846
+
2847
+ return http_info
2523
2848
 
2524
2849
  def show_job_detail_async(self, request):
2525
2850
  """查询任务详情
@@ -2533,9 +2858,21 @@ class DrsAsyncClient(Client):
2533
2858
  :type request: :class:`huaweicloudsdkdrs.v5.ShowJobDetailRequest`
2534
2859
  :rtype: :class:`huaweicloudsdkdrs.v5.ShowJobDetailResponse`
2535
2860
  """
2536
- return self._show_job_detail_with_http_info(request)
2861
+ http_info = self._show_job_detail_http_info(request)
2862
+ return self._call_api(**http_info)
2863
+
2864
+ def show_job_detail_async_invoker(self, request):
2865
+ http_info = self._show_job_detail_http_info(request)
2866
+ return AsyncInvoker(self, http_info)
2867
+
2868
+ def _show_job_detail_http_info(self, request):
2869
+ http_info = {
2870
+ "method": "GET",
2871
+ "resource_path": "/v5/{project_id}/jobs/{job_id}",
2872
+ "request_type": request.__class__.__name__,
2873
+ "response_type": "ShowJobDetailResponse"
2874
+ }
2537
2875
 
2538
- def _show_job_detail_with_http_info(self, request):
2539
2876
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
2540
2877
 
2541
2878
  cname = None
@@ -2576,9 +2913,9 @@ class DrsAsyncClient(Client):
2576
2913
 
2577
2914
  form_params = {}
2578
2915
 
2579
- body_params = None
2916
+ body = None
2580
2917
  if isinstance(request, SdkStreamRequest):
2581
- body_params = request.get_file_stream()
2918
+ body = request.get_file_stream()
2582
2919
 
2583
2920
  response_headers = []
2584
2921
 
@@ -2587,20 +2924,16 @@ class DrsAsyncClient(Client):
2587
2924
 
2588
2925
  auth_settings = []
2589
2926
 
2590
- return self.call_api(
2591
- resource_path='/v5/{project_id}/jobs/{job_id}',
2592
- method='GET',
2593
- path_params=path_params,
2594
- query_params=query_params,
2595
- header_params=header_params,
2596
- body=body_params,
2597
- post_params=form_params,
2598
- cname=cname,
2599
- response_type='ShowJobDetailResponse',
2600
- response_headers=response_headers,
2601
- auth_settings=auth_settings,
2602
- collection_formats=collection_formats,
2603
- request_type=request.__class__.__name__)
2927
+ http_info["cname"] = cname
2928
+ http_info["collection_formats"] = collection_formats
2929
+ http_info["path_params"] = path_params
2930
+ http_info["query_params"] = query_params
2931
+ http_info["header_params"] = header_params
2932
+ http_info["post_params"] = form_params
2933
+ http_info["body"] = body
2934
+ http_info["response_headers"] = response_headers
2935
+
2936
+ return http_info
2604
2937
 
2605
2938
  def show_metering_async(self, request):
2606
2939
  """获取任务价格信息
@@ -2614,9 +2947,21 @@ class DrsAsyncClient(Client):
2614
2947
  :type request: :class:`huaweicloudsdkdrs.v5.ShowMeteringRequest`
2615
2948
  :rtype: :class:`huaweicloudsdkdrs.v5.ShowMeteringResponse`
2616
2949
  """
2617
- return self._show_metering_with_http_info(request)
2950
+ http_info = self._show_metering_http_info(request)
2951
+ return self._call_api(**http_info)
2952
+
2953
+ def show_metering_async_invoker(self, request):
2954
+ http_info = self._show_metering_http_info(request)
2955
+ return AsyncInvoker(self, http_info)
2956
+
2957
+ def _show_metering_http_info(self, request):
2958
+ http_info = {
2959
+ "method": "GET",
2960
+ "resource_path": "/v5/{project_id}/jobs/{job_id}/metering",
2961
+ "request_type": request.__class__.__name__,
2962
+ "response_type": "ShowMeteringResponse"
2963
+ }
2618
2964
 
2619
- def _show_metering_with_http_info(self, request):
2620
2965
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
2621
2966
 
2622
2967
  cname = None
@@ -2635,9 +2980,9 @@ class DrsAsyncClient(Client):
2635
2980
 
2636
2981
  form_params = {}
2637
2982
 
2638
- body_params = None
2983
+ body = None
2639
2984
  if isinstance(request, SdkStreamRequest):
2640
- body_params = request.get_file_stream()
2985
+ body = request.get_file_stream()
2641
2986
 
2642
2987
  response_headers = []
2643
2988
 
@@ -2646,20 +2991,16 @@ class DrsAsyncClient(Client):
2646
2991
 
2647
2992
  auth_settings = []
2648
2993
 
2649
- return self.call_api(
2650
- resource_path='/v5/{project_id}/jobs/{job_id}/metering',
2651
- method='GET',
2652
- path_params=path_params,
2653
- query_params=query_params,
2654
- header_params=header_params,
2655
- body=body_params,
2656
- post_params=form_params,
2657
- cname=cname,
2658
- response_type='ShowMeteringResponse',
2659
- response_headers=response_headers,
2660
- auth_settings=auth_settings,
2661
- collection_formats=collection_formats,
2662
- request_type=request.__class__.__name__)
2994
+ http_info["cname"] = cname
2995
+ http_info["collection_formats"] = collection_formats
2996
+ http_info["path_params"] = path_params
2997
+ http_info["query_params"] = query_params
2998
+ http_info["header_params"] = header_params
2999
+ http_info["post_params"] = form_params
3000
+ http_info["body"] = body
3001
+ http_info["response_headers"] = response_headers
3002
+
3003
+ return http_info
2663
3004
 
2664
3005
  def show_monitor_data_async(self, request):
2665
3006
  """查询监控数据
@@ -2674,9 +3015,21 @@ class DrsAsyncClient(Client):
2674
3015
  :type request: :class:`huaweicloudsdkdrs.v5.ShowMonitorDataRequest`
2675
3016
  :rtype: :class:`huaweicloudsdkdrs.v5.ShowMonitorDataResponse`
2676
3017
  """
2677
- return self._show_monitor_data_with_http_info(request)
3018
+ http_info = self._show_monitor_data_http_info(request)
3019
+ return self._call_api(**http_info)
3020
+
3021
+ def show_monitor_data_async_invoker(self, request):
3022
+ http_info = self._show_monitor_data_http_info(request)
3023
+ return AsyncInvoker(self, http_info)
3024
+
3025
+ def _show_monitor_data_http_info(self, request):
3026
+ http_info = {
3027
+ "method": "GET",
3028
+ "resource_path": "/v5/{project_id}/jobs/{job_id}/monitor-data",
3029
+ "request_type": request.__class__.__name__,
3030
+ "response_type": "ShowMonitorDataResponse"
3031
+ }
2678
3032
 
2679
- def _show_monitor_data_with_http_info(self, request):
2680
3033
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
2681
3034
 
2682
3035
  cname = None
@@ -2695,9 +3048,9 @@ class DrsAsyncClient(Client):
2695
3048
 
2696
3049
  form_params = {}
2697
3050
 
2698
- body_params = None
3051
+ body = None
2699
3052
  if isinstance(request, SdkStreamRequest):
2700
- body_params = request.get_file_stream()
3053
+ body = request.get_file_stream()
2701
3054
 
2702
3055
  response_headers = []
2703
3056
 
@@ -2706,20 +3059,16 @@ class DrsAsyncClient(Client):
2706
3059
 
2707
3060
  auth_settings = []
2708
3061
 
2709
- return self.call_api(
2710
- resource_path='/v5/{project_id}/jobs/{job_id}/monitor-data',
2711
- method='GET',
2712
- path_params=path_params,
2713
- query_params=query_params,
2714
- header_params=header_params,
2715
- body=body_params,
2716
- post_params=form_params,
2717
- cname=cname,
2718
- response_type='ShowMonitorDataResponse',
2719
- response_headers=response_headers,
2720
- auth_settings=auth_settings,
2721
- collection_formats=collection_formats,
2722
- request_type=request.__class__.__name__)
3062
+ http_info["cname"] = cname
3063
+ http_info["collection_formats"] = collection_formats
3064
+ http_info["path_params"] = path_params
3065
+ http_info["query_params"] = query_params
3066
+ http_info["header_params"] = header_params
3067
+ http_info["post_params"] = form_params
3068
+ http_info["body"] = body
3069
+ http_info["response_headers"] = response_headers
3070
+
3071
+ return http_info
2723
3072
 
2724
3073
  def show_object_mapping_async(self, request):
2725
3074
  """查询同步映射列表
@@ -2733,9 +3082,21 @@ class DrsAsyncClient(Client):
2733
3082
  :type request: :class:`huaweicloudsdkdrs.v5.ShowObjectMappingRequest`
2734
3083
  :rtype: :class:`huaweicloudsdkdrs.v5.ShowObjectMappingResponse`
2735
3084
  """
2736
- return self._show_object_mapping_with_http_info(request)
3085
+ http_info = self._show_object_mapping_http_info(request)
3086
+ return self._call_api(**http_info)
3087
+
3088
+ def show_object_mapping_async_invoker(self, request):
3089
+ http_info = self._show_object_mapping_http_info(request)
3090
+ return AsyncInvoker(self, http_info)
3091
+
3092
+ def _show_object_mapping_http_info(self, request):
3093
+ http_info = {
3094
+ "method": "POST",
3095
+ "resource_path": "/v5/{project_id}/jobs/{job_id}/object-mappings",
3096
+ "request_type": request.__class__.__name__,
3097
+ "response_type": "ShowObjectMappingResponse"
3098
+ }
2737
3099
 
2738
- def _show_object_mapping_with_http_info(self, request):
2739
3100
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
2740
3101
 
2741
3102
  cname = None
@@ -2754,11 +3115,11 @@ class DrsAsyncClient(Client):
2754
3115
 
2755
3116
  form_params = {}
2756
3117
 
2757
- body_params = None
3118
+ body = None
2758
3119
  if 'body' in local_var_params:
2759
- body_params = local_var_params['body']
3120
+ body = local_var_params['body']
2760
3121
  if isinstance(request, SdkStreamRequest):
2761
- body_params = request.get_file_stream()
3122
+ body = request.get_file_stream()
2762
3123
 
2763
3124
  response_headers = []
2764
3125
 
@@ -2767,20 +3128,16 @@ class DrsAsyncClient(Client):
2767
3128
 
2768
3129
  auth_settings = []
2769
3130
 
2770
- return self.call_api(
2771
- resource_path='/v5/{project_id}/jobs/{job_id}/object-mappings',
2772
- method='POST',
2773
- path_params=path_params,
2774
- query_params=query_params,
2775
- header_params=header_params,
2776
- body=body_params,
2777
- post_params=form_params,
2778
- cname=cname,
2779
- response_type='ShowObjectMappingResponse',
2780
- response_headers=response_headers,
2781
- auth_settings=auth_settings,
2782
- collection_formats=collection_formats,
2783
- request_type=request.__class__.__name__)
3131
+ http_info["cname"] = cname
3132
+ http_info["collection_formats"] = collection_formats
3133
+ http_info["path_params"] = path_params
3134
+ http_info["query_params"] = query_params
3135
+ http_info["header_params"] = header_params
3136
+ http_info["post_params"] = form_params
3137
+ http_info["body"] = body
3138
+ http_info["response_headers"] = response_headers
3139
+
3140
+ return http_info
2784
3141
 
2785
3142
  def show_position_result_async(self, request):
2786
3143
  """获取查询数据库位点的结果
@@ -2794,9 +3151,21 @@ class DrsAsyncClient(Client):
2794
3151
  :type request: :class:`huaweicloudsdkdrs.v5.ShowPositionResultRequest`
2795
3152
  :rtype: :class:`huaweicloudsdkdrs.v5.ShowPositionResultResponse`
2796
3153
  """
2797
- return self._show_position_result_with_http_info(request)
3154
+ http_info = self._show_position_result_http_info(request)
3155
+ return self._call_api(**http_info)
3156
+
3157
+ def show_position_result_async_invoker(self, request):
3158
+ http_info = self._show_position_result_http_info(request)
3159
+ return AsyncInvoker(self, http_info)
3160
+
3161
+ def _show_position_result_http_info(self, request):
3162
+ http_info = {
3163
+ "method": "GET",
3164
+ "resource_path": "/v5/{project_id}/jobs/{job_id}/db-position",
3165
+ "request_type": request.__class__.__name__,
3166
+ "response_type": "ShowPositionResultResponse"
3167
+ }
2798
3168
 
2799
- def _show_position_result_with_http_info(self, request):
2800
3169
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
2801
3170
 
2802
3171
  cname = None
@@ -2817,9 +3186,9 @@ class DrsAsyncClient(Client):
2817
3186
 
2818
3187
  form_params = {}
2819
3188
 
2820
- body_params = None
3189
+ body = None
2821
3190
  if isinstance(request, SdkStreamRequest):
2822
- body_params = request.get_file_stream()
3191
+ body = request.get_file_stream()
2823
3192
 
2824
3193
  response_headers = []
2825
3194
 
@@ -2828,20 +3197,16 @@ class DrsAsyncClient(Client):
2828
3197
 
2829
3198
  auth_settings = []
2830
3199
 
2831
- return self.call_api(
2832
- resource_path='/v5/{project_id}/jobs/{job_id}/db-position',
2833
- method='GET',
2834
- path_params=path_params,
2835
- query_params=query_params,
2836
- header_params=header_params,
2837
- body=body_params,
2838
- post_params=form_params,
2839
- cname=cname,
2840
- response_type='ShowPositionResultResponse',
2841
- response_headers=response_headers,
2842
- auth_settings=auth_settings,
2843
- collection_formats=collection_formats,
2844
- request_type=request.__class__.__name__)
3200
+ http_info["cname"] = cname
3201
+ http_info["collection_formats"] = collection_formats
3202
+ http_info["path_params"] = path_params
3203
+ http_info["query_params"] = query_params
3204
+ http_info["header_params"] = header_params
3205
+ http_info["post_params"] = form_params
3206
+ http_info["body"] = body
3207
+ http_info["response_headers"] = response_headers
3208
+
3209
+ return http_info
2845
3210
 
2846
3211
  def show_progress_data_async(self, request):
2847
3212
  """查询数据级流式对比列表
@@ -2859,9 +3224,21 @@ class DrsAsyncClient(Client):
2859
3224
  :type request: :class:`huaweicloudsdkdrs.v5.ShowProgressDataRequest`
2860
3225
  :rtype: :class:`huaweicloudsdkdrs.v5.ShowProgressDataResponse`
2861
3226
  """
2862
- return self._show_progress_data_with_http_info(request)
3227
+ http_info = self._show_progress_data_http_info(request)
3228
+ return self._call_api(**http_info)
3229
+
3230
+ def show_progress_data_async_invoker(self, request):
3231
+ http_info = self._show_progress_data_http_info(request)
3232
+ return AsyncInvoker(self, http_info)
3233
+
3234
+ def _show_progress_data_http_info(self, request):
3235
+ http_info = {
3236
+ "method": "GET",
3237
+ "resource_path": "/v5/{project_id}/jobs/{job_id}/progress-data/{type}",
3238
+ "request_type": request.__class__.__name__,
3239
+ "response_type": "ShowProgressDataResponse"
3240
+ }
2863
3241
 
2864
- def _show_progress_data_with_http_info(self, request):
2865
3242
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
2866
3243
 
2867
3244
  cname = None
@@ -2886,9 +3263,9 @@ class DrsAsyncClient(Client):
2886
3263
 
2887
3264
  form_params = {}
2888
3265
 
2889
- body_params = None
3266
+ body = None
2890
3267
  if isinstance(request, SdkStreamRequest):
2891
- body_params = request.get_file_stream()
3268
+ body = request.get_file_stream()
2892
3269
 
2893
3270
  response_headers = []
2894
3271
 
@@ -2897,20 +3274,16 @@ class DrsAsyncClient(Client):
2897
3274
 
2898
3275
  auth_settings = []
2899
3276
 
2900
- return self.call_api(
2901
- resource_path='/v5/{project_id}/jobs/{job_id}/progress-data/{type}',
2902
- method='GET',
2903
- path_params=path_params,
2904
- query_params=query_params,
2905
- header_params=header_params,
2906
- body=body_params,
2907
- post_params=form_params,
2908
- cname=cname,
2909
- response_type='ShowProgressDataResponse',
2910
- response_headers=response_headers,
2911
- auth_settings=auth_settings,
2912
- collection_formats=collection_formats,
2913
- request_type=request.__class__.__name__)
3277
+ http_info["cname"] = cname
3278
+ http_info["collection_formats"] = collection_formats
3279
+ http_info["path_params"] = path_params
3280
+ http_info["query_params"] = query_params
3281
+ http_info["header_params"] = header_params
3282
+ http_info["post_params"] = form_params
3283
+ http_info["body"] = body
3284
+ http_info["response_headers"] = response_headers
3285
+
3286
+ return http_info
2914
3287
 
2915
3288
  def show_support_object_type_async(self, request):
2916
3289
  """查询是否支持对象选择和列映射
@@ -2924,9 +3297,21 @@ class DrsAsyncClient(Client):
2924
3297
  :type request: :class:`huaweicloudsdkdrs.v5.ShowSupportObjectTypeRequest`
2925
3298
  :rtype: :class:`huaweicloudsdkdrs.v5.ShowSupportObjectTypeResponse`
2926
3299
  """
2927
- return self._show_support_object_type_with_http_info(request)
3300
+ http_info = self._show_support_object_type_http_info(request)
3301
+ return self._call_api(**http_info)
3302
+
3303
+ def show_support_object_type_async_invoker(self, request):
3304
+ http_info = self._show_support_object_type_http_info(request)
3305
+ return AsyncInvoker(self, http_info)
3306
+
3307
+ def _show_support_object_type_http_info(self, request):
3308
+ http_info = {
3309
+ "method": "GET",
3310
+ "resource_path": "/v5/{project_id}/jobs/{job_id}/object/support",
3311
+ "request_type": request.__class__.__name__,
3312
+ "response_type": "ShowSupportObjectTypeResponse"
3313
+ }
2928
3314
 
2929
- def _show_support_object_type_with_http_info(self, request):
2930
3315
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
2931
3316
 
2932
3317
  cname = None
@@ -2945,9 +3330,9 @@ class DrsAsyncClient(Client):
2945
3330
 
2946
3331
  form_params = {}
2947
3332
 
2948
- body_params = None
3333
+ body = None
2949
3334
  if isinstance(request, SdkStreamRequest):
2950
- body_params = request.get_file_stream()
3335
+ body = request.get_file_stream()
2951
3336
 
2952
3337
  response_headers = []
2953
3338
 
@@ -2956,20 +3341,16 @@ class DrsAsyncClient(Client):
2956
3341
 
2957
3342
  auth_settings = []
2958
3343
 
2959
- return self.call_api(
2960
- resource_path='/v5/{project_id}/jobs/{job_id}/object/support',
2961
- method='GET',
2962
- path_params=path_params,
2963
- query_params=query_params,
2964
- header_params=header_params,
2965
- body=body_params,
2966
- post_params=form_params,
2967
- cname=cname,
2968
- response_type='ShowSupportObjectTypeResponse',
2969
- response_headers=response_headers,
2970
- auth_settings=auth_settings,
2971
- collection_formats=collection_formats,
2972
- request_type=request.__class__.__name__)
3344
+ http_info["cname"] = cname
3345
+ http_info["collection_formats"] = collection_formats
3346
+ http_info["path_params"] = path_params
3347
+ http_info["query_params"] = query_params
3348
+ http_info["header_params"] = header_params
3349
+ http_info["post_params"] = form_params
3350
+ http_info["body"] = body
3351
+ http_info["response_headers"] = response_headers
3352
+
3353
+ return http_info
2973
3354
 
2974
3355
  def show_update_object_saving_status_async(self, request):
2975
3356
  """获取对象保存进度
@@ -2983,9 +3364,21 @@ class DrsAsyncClient(Client):
2983
3364
  :type request: :class:`huaweicloudsdkdrs.v5.ShowUpdateObjectSavingStatusRequest`
2984
3365
  :rtype: :class:`huaweicloudsdkdrs.v5.ShowUpdateObjectSavingStatusResponse`
2985
3366
  """
2986
- return self._show_update_object_saving_status_with_http_info(request)
3367
+ http_info = self._show_update_object_saving_status_http_info(request)
3368
+ return self._call_api(**http_info)
3369
+
3370
+ def show_update_object_saving_status_async_invoker(self, request):
3371
+ http_info = self._show_update_object_saving_status_http_info(request)
3372
+ return AsyncInvoker(self, http_info)
3373
+
3374
+ def _show_update_object_saving_status_http_info(self, request):
3375
+ http_info = {
3376
+ "method": "GET",
3377
+ "resource_path": "/v5/{project_id}/jobs/{job_id}/db-objects/saving-status",
3378
+ "request_type": request.__class__.__name__,
3379
+ "response_type": "ShowUpdateObjectSavingStatusResponse"
3380
+ }
2987
3381
 
2988
- def _show_update_object_saving_status_with_http_info(self, request):
2989
3382
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
2990
3383
 
2991
3384
  cname = None
@@ -3006,9 +3399,9 @@ class DrsAsyncClient(Client):
3006
3399
 
3007
3400
  form_params = {}
3008
3401
 
3009
- body_params = None
3402
+ body = None
3010
3403
  if isinstance(request, SdkStreamRequest):
3011
- body_params = request.get_file_stream()
3404
+ body = request.get_file_stream()
3012
3405
 
3013
3406
  response_headers = []
3014
3407
 
@@ -3017,20 +3410,16 @@ class DrsAsyncClient(Client):
3017
3410
 
3018
3411
  auth_settings = []
3019
3412
 
3020
- return self.call_api(
3021
- resource_path='/v5/{project_id}/jobs/{job_id}/db-objects/saving-status',
3022
- method='GET',
3023
- path_params=path_params,
3024
- query_params=query_params,
3025
- header_params=header_params,
3026
- body=body_params,
3027
- post_params=form_params,
3028
- cname=cname,
3029
- response_type='ShowUpdateObjectSavingStatusResponse',
3030
- response_headers=response_headers,
3031
- auth_settings=auth_settings,
3032
- collection_formats=collection_formats,
3033
- request_type=request.__class__.__name__)
3413
+ http_info["cname"] = cname
3414
+ http_info["collection_formats"] = collection_formats
3415
+ http_info["path_params"] = path_params
3416
+ http_info["query_params"] = query_params
3417
+ http_info["header_params"] = header_params
3418
+ http_info["post_params"] = form_params
3419
+ http_info["body"] = body
3420
+ http_info["response_headers"] = response_headers
3421
+
3422
+ return http_info
3034
3423
 
3035
3424
  def stop_job_action_async(self, request):
3036
3425
  """结束任务
@@ -3044,9 +3433,21 @@ class DrsAsyncClient(Client):
3044
3433
  :type request: :class:`huaweicloudsdkdrs.v5.StopJobActionRequest`
3045
3434
  :rtype: :class:`huaweicloudsdkdrs.v5.StopJobActionResponse`
3046
3435
  """
3047
- return self._stop_job_action_with_http_info(request)
3436
+ http_info = self._stop_job_action_http_info(request)
3437
+ return self._call_api(**http_info)
3438
+
3439
+ def stop_job_action_async_invoker(self, request):
3440
+ http_info = self._stop_job_action_http_info(request)
3441
+ return AsyncInvoker(self, http_info)
3442
+
3443
+ def _stop_job_action_http_info(self, request):
3444
+ http_info = {
3445
+ "method": "POST",
3446
+ "resource_path": "/v5/{project_id}/jobs/{job_id}/stop",
3447
+ "request_type": request.__class__.__name__,
3448
+ "response_type": "StopJobActionResponse"
3449
+ }
3048
3450
 
3049
- def _stop_job_action_with_http_info(self, request):
3050
3451
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
3051
3452
 
3052
3453
  cname = None
@@ -3065,11 +3466,11 @@ class DrsAsyncClient(Client):
3065
3466
 
3066
3467
  form_params = {}
3067
3468
 
3068
- body_params = None
3469
+ body = None
3069
3470
  if 'body' in local_var_params:
3070
- body_params = local_var_params['body']
3471
+ body = local_var_params['body']
3071
3472
  if isinstance(request, SdkStreamRequest):
3072
- body_params = request.get_file_stream()
3473
+ body = request.get_file_stream()
3073
3474
 
3074
3475
  response_headers = []
3075
3476
 
@@ -3078,20 +3479,16 @@ class DrsAsyncClient(Client):
3078
3479
 
3079
3480
  auth_settings = []
3080
3481
 
3081
- return self.call_api(
3082
- resource_path='/v5/{project_id}/jobs/{job_id}/stop',
3083
- method='POST',
3084
- path_params=path_params,
3085
- query_params=query_params,
3086
- header_params=header_params,
3087
- body=body_params,
3088
- post_params=form_params,
3089
- cname=cname,
3090
- response_type='StopJobActionResponse',
3091
- response_headers=response_headers,
3092
- auth_settings=auth_settings,
3093
- collection_formats=collection_formats,
3094
- request_type=request.__class__.__name__)
3482
+ http_info["cname"] = cname
3483
+ http_info["collection_formats"] = collection_formats
3484
+ http_info["path_params"] = path_params
3485
+ http_info["query_params"] = query_params
3486
+ http_info["header_params"] = header_params
3487
+ http_info["post_params"] = form_params
3488
+ http_info["body"] = body
3489
+ http_info["response_headers"] = response_headers
3490
+
3491
+ return http_info
3095
3492
 
3096
3493
  def update_batch_async_jobs_async(self, request):
3097
3494
  """更新指定ID批量异步任务详情
@@ -3105,9 +3502,21 @@ class DrsAsyncClient(Client):
3105
3502
  :type request: :class:`huaweicloudsdkdrs.v5.UpdateBatchAsyncJobsRequest`
3106
3503
  :rtype: :class:`huaweicloudsdkdrs.v5.UpdateBatchAsyncJobsResponse`
3107
3504
  """
3108
- return self._update_batch_async_jobs_with_http_info(request)
3505
+ http_info = self._update_batch_async_jobs_http_info(request)
3506
+ return self._call_api(**http_info)
3507
+
3508
+ def update_batch_async_jobs_async_invoker(self, request):
3509
+ http_info = self._update_batch_async_jobs_http_info(request)
3510
+ return AsyncInvoker(self, http_info)
3511
+
3512
+ def _update_batch_async_jobs_http_info(self, request):
3513
+ http_info = {
3514
+ "method": "PUT",
3515
+ "resource_path": "/v5/{project_id}/batch-async-jobs/{async_job_id}",
3516
+ "request_type": request.__class__.__name__,
3517
+ "response_type": "UpdateBatchAsyncJobsResponse"
3518
+ }
3109
3519
 
3110
- def _update_batch_async_jobs_with_http_info(self, request):
3111
3520
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
3112
3521
 
3113
3522
  cname = None
@@ -3126,11 +3535,11 @@ class DrsAsyncClient(Client):
3126
3535
 
3127
3536
  form_params = {}
3128
3537
 
3129
- body_params = None
3538
+ body = None
3130
3539
  if 'body' in local_var_params:
3131
- body_params = local_var_params['body']
3540
+ body = local_var_params['body']
3132
3541
  if isinstance(request, SdkStreamRequest):
3133
- body_params = request.get_file_stream()
3542
+ body = request.get_file_stream()
3134
3543
 
3135
3544
  response_headers = []
3136
3545
 
@@ -3139,20 +3548,16 @@ class DrsAsyncClient(Client):
3139
3548
 
3140
3549
  auth_settings = []
3141
3550
 
3142
- return self.call_api(
3143
- resource_path='/v5/{project_id}/batch-async-jobs/{async_job_id}',
3144
- method='PUT',
3145
- path_params=path_params,
3146
- query_params=query_params,
3147
- header_params=header_params,
3148
- body=body_params,
3149
- post_params=form_params,
3150
- cname=cname,
3151
- response_type='UpdateBatchAsyncJobsResponse',
3152
- response_headers=response_headers,
3153
- auth_settings=auth_settings,
3154
- collection_formats=collection_formats,
3155
- request_type=request.__class__.__name__)
3551
+ http_info["cname"] = cname
3552
+ http_info["collection_formats"] = collection_formats
3553
+ http_info["path_params"] = path_params
3554
+ http_info["query_params"] = query_params
3555
+ http_info["header_params"] = header_params
3556
+ http_info["post_params"] = form_params
3557
+ http_info["body"] = body
3558
+ http_info["response_headers"] = response_headers
3559
+
3560
+ return http_info
3156
3561
 
3157
3562
  def update_data_progress_async(self, request):
3158
3563
  """更新指定任务数据加工规则
@@ -3166,9 +3571,21 @@ class DrsAsyncClient(Client):
3166
3571
  :type request: :class:`huaweicloudsdkdrs.v5.UpdateDataProgressRequest`
3167
3572
  :rtype: :class:`huaweicloudsdkdrs.v5.UpdateDataProgressResponse`
3168
3573
  """
3169
- return self._update_data_progress_with_http_info(request)
3574
+ http_info = self._update_data_progress_http_info(request)
3575
+ return self._call_api(**http_info)
3576
+
3577
+ def update_data_progress_async_invoker(self, request):
3578
+ http_info = self._update_data_progress_http_info(request)
3579
+ return AsyncInvoker(self, http_info)
3580
+
3581
+ def _update_data_progress_http_info(self, request):
3582
+ http_info = {
3583
+ "method": "PUT",
3584
+ "resource_path": "/v5/{project_id}/jobs/{job_id}/data-processing-rules",
3585
+ "request_type": request.__class__.__name__,
3586
+ "response_type": "UpdateDataProgressResponse"
3587
+ }
3170
3588
 
3171
- def _update_data_progress_with_http_info(self, request):
3172
3589
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
3173
3590
 
3174
3591
  cname = None
@@ -3187,11 +3604,11 @@ class DrsAsyncClient(Client):
3187
3604
 
3188
3605
  form_params = {}
3189
3606
 
3190
- body_params = None
3607
+ body = None
3191
3608
  if 'body' in local_var_params:
3192
- body_params = local_var_params['body']
3609
+ body = local_var_params['body']
3193
3610
  if isinstance(request, SdkStreamRequest):
3194
- body_params = request.get_file_stream()
3611
+ body = request.get_file_stream()
3195
3612
 
3196
3613
  response_headers = []
3197
3614
 
@@ -3200,20 +3617,16 @@ class DrsAsyncClient(Client):
3200
3617
 
3201
3618
  auth_settings = []
3202
3619
 
3203
- return self.call_api(
3204
- resource_path='/v5/{project_id}/jobs/{job_id}/data-processing-rules',
3205
- method='PUT',
3206
- path_params=path_params,
3207
- query_params=query_params,
3208
- header_params=header_params,
3209
- body=body_params,
3210
- post_params=form_params,
3211
- cname=cname,
3212
- response_type='UpdateDataProgressResponse',
3213
- response_headers=response_headers,
3214
- auth_settings=auth_settings,
3215
- collection_formats=collection_formats,
3216
- request_type=request.__class__.__name__)
3620
+ http_info["cname"] = cname
3621
+ http_info["collection_formats"] = collection_formats
3622
+ http_info["path_params"] = path_params
3623
+ http_info["query_params"] = query_params
3624
+ http_info["header_params"] = header_params
3625
+ http_info["post_params"] = form_params
3626
+ http_info["body"] = body
3627
+ http_info["response_headers"] = response_headers
3628
+
3629
+ return http_info
3217
3630
 
3218
3631
  def update_job_async(self, request):
3219
3632
  """更新指定ID任务详情
@@ -3228,9 +3641,21 @@ class DrsAsyncClient(Client):
3228
3641
  :type request: :class:`huaweicloudsdkdrs.v5.UpdateJobRequest`
3229
3642
  :rtype: :class:`huaweicloudsdkdrs.v5.UpdateJobResponse`
3230
3643
  """
3231
- return self._update_job_with_http_info(request)
3644
+ http_info = self._update_job_http_info(request)
3645
+ return self._call_api(**http_info)
3646
+
3647
+ def update_job_async_invoker(self, request):
3648
+ http_info = self._update_job_http_info(request)
3649
+ return AsyncInvoker(self, http_info)
3650
+
3651
+ def _update_job_http_info(self, request):
3652
+ http_info = {
3653
+ "method": "PUT",
3654
+ "resource_path": "/v5/{project_id}/jobs/{job_id}",
3655
+ "request_type": request.__class__.__name__,
3656
+ "response_type": "UpdateJobResponse"
3657
+ }
3232
3658
 
3233
- def _update_job_with_http_info(self, request):
3234
3659
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
3235
3660
 
3236
3661
  cname = None
@@ -3249,11 +3674,11 @@ class DrsAsyncClient(Client):
3249
3674
 
3250
3675
  form_params = {}
3251
3676
 
3252
- body_params = None
3677
+ body = None
3253
3678
  if 'body' in local_var_params:
3254
- body_params = local_var_params['body']
3679
+ body = local_var_params['body']
3255
3680
  if isinstance(request, SdkStreamRequest):
3256
- body_params = request.get_file_stream()
3681
+ body = request.get_file_stream()
3257
3682
 
3258
3683
  response_headers = []
3259
3684
 
@@ -3262,20 +3687,16 @@ class DrsAsyncClient(Client):
3262
3687
 
3263
3688
  auth_settings = []
3264
3689
 
3265
- return self.call_api(
3266
- resource_path='/v5/{project_id}/jobs/{job_id}',
3267
- method='PUT',
3268
- path_params=path_params,
3269
- query_params=query_params,
3270
- header_params=header_params,
3271
- body=body_params,
3272
- post_params=form_params,
3273
- cname=cname,
3274
- response_type='UpdateJobResponse',
3275
- response_headers=response_headers,
3276
- auth_settings=auth_settings,
3277
- collection_formats=collection_formats,
3278
- request_type=request.__class__.__name__)
3690
+ http_info["cname"] = cname
3691
+ http_info["collection_formats"] = collection_formats
3692
+ http_info["path_params"] = path_params
3693
+ http_info["query_params"] = query_params
3694
+ http_info["header_params"] = header_params
3695
+ http_info["post_params"] = form_params
3696
+ http_info["body"] = body
3697
+ http_info["response_headers"] = response_headers
3698
+
3699
+ return http_info
3279
3700
 
3280
3701
  def update_start_position_async(self, request):
3281
3702
  """更新增量任务启动位点
@@ -3290,9 +3711,21 @@ class DrsAsyncClient(Client):
3290
3711
  :type request: :class:`huaweicloudsdkdrs.v5.UpdateStartPositionRequest`
3291
3712
  :rtype: :class:`huaweicloudsdkdrs.v5.UpdateStartPositionResponse`
3292
3713
  """
3293
- return self._update_start_position_with_http_info(request)
3714
+ http_info = self._update_start_position_http_info(request)
3715
+ return self._call_api(**http_info)
3716
+
3717
+ def update_start_position_async_invoker(self, request):
3718
+ http_info = self._update_start_position_http_info(request)
3719
+ return AsyncInvoker(self, http_info)
3720
+
3721
+ def _update_start_position_http_info(self, request):
3722
+ http_info = {
3723
+ "method": "PUT",
3724
+ "resource_path": "/v5/{project_id}/jobs/{job_id}/start-position",
3725
+ "request_type": request.__class__.__name__,
3726
+ "response_type": "UpdateStartPositionResponse"
3727
+ }
3294
3728
 
3295
- def _update_start_position_with_http_info(self, request):
3296
3729
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
3297
3730
 
3298
3731
  cname = None
@@ -3311,11 +3744,11 @@ class DrsAsyncClient(Client):
3311
3744
 
3312
3745
  form_params = {}
3313
3746
 
3314
- body_params = None
3747
+ body = None
3315
3748
  if 'body' in local_var_params:
3316
- body_params = local_var_params['body']
3749
+ body = local_var_params['body']
3317
3750
  if isinstance(request, SdkStreamRequest):
3318
- body_params = request.get_file_stream()
3751
+ body = request.get_file_stream()
3319
3752
 
3320
3753
  response_headers = []
3321
3754
 
@@ -3324,20 +3757,16 @@ class DrsAsyncClient(Client):
3324
3757
 
3325
3758
  auth_settings = []
3326
3759
 
3327
- return self.call_api(
3328
- resource_path='/v5/{project_id}/jobs/{job_id}/start-position',
3329
- method='PUT',
3330
- path_params=path_params,
3331
- query_params=query_params,
3332
- header_params=header_params,
3333
- body=body_params,
3334
- post_params=form_params,
3335
- cname=cname,
3336
- response_type='UpdateStartPositionResponse',
3337
- response_headers=response_headers,
3338
- auth_settings=auth_settings,
3339
- collection_formats=collection_formats,
3340
- request_type=request.__class__.__name__)
3760
+ http_info["cname"] = cname
3761
+ http_info["collection_formats"] = collection_formats
3762
+ http_info["path_params"] = path_params
3763
+ http_info["query_params"] = query_params
3764
+ http_info["header_params"] = header_params
3765
+ http_info["post_params"] = form_params
3766
+ http_info["body"] = body
3767
+ http_info["response_headers"] = response_headers
3768
+
3769
+ return http_info
3341
3770
 
3342
3771
  def upload_db_object_template_async(self, request):
3343
3772
  """对象选择(文件导入 - 模板上传)
@@ -3351,9 +3780,21 @@ class DrsAsyncClient(Client):
3351
3780
  :type request: :class:`huaweicloudsdkdrs.v5.UploadDbObjectTemplateRequest`
3352
3781
  :rtype: :class:`huaweicloudsdkdrs.v5.UploadDbObjectTemplateResponse`
3353
3782
  """
3354
- return self._upload_db_object_template_with_http_info(request)
3783
+ http_info = self._upload_db_object_template_http_info(request)
3784
+ return self._call_api(**http_info)
3785
+
3786
+ def upload_db_object_template_async_invoker(self, request):
3787
+ http_info = self._upload_db_object_template_http_info(request)
3788
+ return AsyncInvoker(self, http_info)
3789
+
3790
+ def _upload_db_object_template_http_info(self, request):
3791
+ http_info = {
3792
+ "method": "POST",
3793
+ "resource_path": "/v5/{project_id}/jobs/{job_id}/db-object/template",
3794
+ "request_type": request.__class__.__name__,
3795
+ "response_type": "UploadDbObjectTemplateResponse"
3796
+ }
3355
3797
 
3356
- def _upload_db_object_template_with_http_info(self, request):
3357
3798
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
3358
3799
 
3359
3800
  cname = None
@@ -3376,11 +3817,11 @@ class DrsAsyncClient(Client):
3376
3817
  if 'file' in local_var_params:
3377
3818
  form_params['file'] = local_var_params['file']
3378
3819
 
3379
- body_params = None
3820
+ body = None
3380
3821
  if 'body' in local_var_params:
3381
- body_params = local_var_params['body']
3822
+ body = local_var_params['body']
3382
3823
  if isinstance(request, SdkStreamRequest):
3383
- body_params = request.get_file_stream()
3824
+ body = request.get_file_stream()
3384
3825
 
3385
3826
  response_headers = []
3386
3827
 
@@ -3389,20 +3830,16 @@ class DrsAsyncClient(Client):
3389
3830
 
3390
3831
  auth_settings = []
3391
3832
 
3392
- return self.call_api(
3393
- resource_path='/v5/{project_id}/jobs/{job_id}/db-object/template',
3394
- method='POST',
3395
- path_params=path_params,
3396
- query_params=query_params,
3397
- header_params=header_params,
3398
- body=body_params,
3399
- post_params=form_params,
3400
- cname=cname,
3401
- response_type='UploadDbObjectTemplateResponse',
3402
- response_headers=response_headers,
3403
- auth_settings=auth_settings,
3404
- collection_formats=collection_formats,
3405
- request_type=request.__class__.__name__)
3833
+ http_info["cname"] = cname
3834
+ http_info["collection_formats"] = collection_formats
3835
+ http_info["path_params"] = path_params
3836
+ http_info["query_params"] = query_params
3837
+ http_info["header_params"] = header_params
3838
+ http_info["post_params"] = form_params
3839
+ http_info["body"] = body
3840
+ http_info["response_headers"] = response_headers
3841
+
3842
+ return http_info
3406
3843
 
3407
3844
  def validate_job_name_async(self, request):
3408
3845
  """任务名称校验
@@ -3416,9 +3853,21 @@ class DrsAsyncClient(Client):
3416
3853
  :type request: :class:`huaweicloudsdkdrs.v5.ValidateJobNameRequest`
3417
3854
  :rtype: :class:`huaweicloudsdkdrs.v5.ValidateJobNameResponse`
3418
3855
  """
3419
- return self._validate_job_name_with_http_info(request)
3856
+ http_info = self._validate_job_name_http_info(request)
3857
+ return self._call_api(**http_info)
3858
+
3859
+ def validate_job_name_async_invoker(self, request):
3860
+ http_info = self._validate_job_name_http_info(request)
3861
+ return AsyncInvoker(self, http_info)
3862
+
3863
+ def _validate_job_name_http_info(self, request):
3864
+ http_info = {
3865
+ "method": "POST",
3866
+ "resource_path": "/v5/{project_id}/jobs/name-validation",
3867
+ "request_type": request.__class__.__name__,
3868
+ "response_type": "ValidateJobNameResponse"
3869
+ }
3420
3870
 
3421
- def _validate_job_name_with_http_info(self, request):
3422
3871
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
3423
3872
 
3424
3873
  cname = None
@@ -3435,11 +3884,11 @@ class DrsAsyncClient(Client):
3435
3884
 
3436
3885
  form_params = {}
3437
3886
 
3438
- body_params = None
3887
+ body = None
3439
3888
  if 'body' in local_var_params:
3440
- body_params = local_var_params['body']
3889
+ body = local_var_params['body']
3441
3890
  if isinstance(request, SdkStreamRequest):
3442
- body_params = request.get_file_stream()
3891
+ body = request.get_file_stream()
3443
3892
 
3444
3893
  response_headers = []
3445
3894
 
@@ -3448,20 +3897,26 @@ class DrsAsyncClient(Client):
3448
3897
 
3449
3898
  auth_settings = []
3450
3899
 
3451
- return self.call_api(
3452
- resource_path='/v5/{project_id}/jobs/name-validation',
3453
- method='POST',
3454
- path_params=path_params,
3455
- query_params=query_params,
3456
- header_params=header_params,
3457
- body=body_params,
3458
- post_params=form_params,
3459
- cname=cname,
3460
- response_type='ValidateJobNameResponse',
3461
- response_headers=response_headers,
3462
- auth_settings=auth_settings,
3463
- collection_formats=collection_formats,
3464
- request_type=request.__class__.__name__)
3900
+ http_info["cname"] = cname
3901
+ http_info["collection_formats"] = collection_formats
3902
+ http_info["path_params"] = path_params
3903
+ http_info["query_params"] = query_params
3904
+ http_info["header_params"] = header_params
3905
+ http_info["post_params"] = form_params
3906
+ http_info["body"] = body
3907
+ http_info["response_headers"] = response_headers
3908
+
3909
+ return http_info
3910
+
3911
+ def _call_api(self, **kwargs):
3912
+ try:
3913
+ kwargs["async_request"] = True
3914
+ return self.do_http_request(**kwargs)
3915
+ except TypeError:
3916
+ import inspect
3917
+ params = inspect.signature(self.do_http_request).parameters
3918
+ http_info = {param_name: kwargs.get(param_name) for param_name in params if param_name in kwargs}
3919
+ return self.do_http_request(**http_info)
3465
3920
 
3466
3921
  def call_api(self, resource_path, method, path_params=None, query_params=None, header_params=None, body=None,
3467
3922
  post_params=None, cname=None, response_type=None, response_headers=None, auth_settings=None,
@@ -3500,4 +3955,4 @@ class DrsAsyncClient(Client):
3500
3955
  response_headers=response_headers,
3501
3956
  collection_formats=collection_formats,
3502
3957
  request_type=request_type,
3503
- async_request=True)
3958
+ async_request=True)