huaweicloudsdkdrs 3.1.66__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 SyncInvoker
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 DrsClient(Client):
@@ -38,9 +43,22 @@ class DrsClient(Client):
38
43
  :type request: :class:`huaweicloudsdkdrs.v5.BatchCreateJobsAsyncRequest`
39
44
  :rtype: :class:`huaweicloudsdkdrs.v5.BatchCreateJobsAsyncResponse`
40
45
  """
41
- return self._batch_create_jobs_async_with_http_info(request)
46
+ http_info = self._batch_create_jobs_async_http_info(request)
47
+ return self._call_api(**http_info)
48
+
49
+ def batch_create_jobs_async_invoker(self, request):
50
+ http_info = self._batch_create_jobs_async_http_info(request)
51
+ return SyncInvoker(self, http_info)
52
+
53
+ @classmethod
54
+ def _batch_create_jobs_async_http_info(cls, 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
+ }
42
61
 
43
- def _batch_create_jobs_async_with_http_info(self, request):
44
62
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
45
63
 
46
64
  cname = None
@@ -57,11 +75,11 @@ class DrsClient(Client):
57
75
 
58
76
  form_params = {}
59
77
 
60
- body_params = None
78
+ body = None
61
79
  if 'body' in local_var_params:
62
- body_params = local_var_params['body']
80
+ body = local_var_params['body']
63
81
  if isinstance(request, SdkStreamRequest):
64
- body_params = request.get_file_stream()
82
+ body = request.get_file_stream()
65
83
 
66
84
  response_headers = []
67
85
 
@@ -70,20 +88,16 @@ class DrsClient(Client):
70
88
 
71
89
  auth_settings = []
72
90
 
73
- return self.call_api(
74
- resource_path='/v5/{project_id}/jobs/batch-async-create',
75
- method='POST',
76
- path_params=path_params,
77
- query_params=query_params,
78
- header_params=header_params,
79
- body=body_params,
80
- post_params=form_params,
81
- cname=cname,
82
- response_type='BatchCreateJobsAsyncResponse',
83
- response_headers=response_headers,
84
- auth_settings=auth_settings,
85
- collection_formats=collection_formats,
86
- 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
87
101
 
88
102
  def batch_delete_jobs_by_id(self, request):
89
103
  """批量删除任务
@@ -96,9 +110,22 @@ class DrsClient(Client):
96
110
  :type request: :class:`huaweicloudsdkdrs.v5.BatchDeleteJobsByIdRequest`
97
111
  :rtype: :class:`huaweicloudsdkdrs.v5.BatchDeleteJobsByIdResponse`
98
112
  """
99
- return self._batch_delete_jobs_by_id_with_http_info(request)
113
+ http_info = self._batch_delete_jobs_by_id_http_info(request)
114
+ return self._call_api(**http_info)
115
+
116
+ def batch_delete_jobs_by_id_invoker(self, request):
117
+ http_info = self._batch_delete_jobs_by_id_http_info(request)
118
+ return SyncInvoker(self, http_info)
119
+
120
+ @classmethod
121
+ def _batch_delete_jobs_by_id_http_info(cls, 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
+ }
100
128
 
101
- def _batch_delete_jobs_by_id_with_http_info(self, request):
102
129
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
103
130
 
104
131
  cname = None
@@ -115,11 +142,11 @@ class DrsClient(Client):
115
142
 
116
143
  form_params = {}
117
144
 
118
- body_params = None
145
+ body = None
119
146
  if 'body' in local_var_params:
120
- body_params = local_var_params['body']
147
+ body = local_var_params['body']
121
148
  if isinstance(request, SdkStreamRequest):
122
- body_params = request.get_file_stream()
149
+ body = request.get_file_stream()
123
150
 
124
151
  response_headers = []
125
152
 
@@ -128,20 +155,16 @@ class DrsClient(Client):
128
155
 
129
156
  auth_settings = []
130
157
 
131
- return self.call_api(
132
- resource_path='/v5/{project_id}/jobs',
133
- method='DELETE',
134
- path_params=path_params,
135
- query_params=query_params,
136
- header_params=header_params,
137
- body=body_params,
138
- post_params=form_params,
139
- cname=cname,
140
- response_type='BatchDeleteJobsByIdResponse',
141
- response_headers=response_headers,
142
- auth_settings=auth_settings,
143
- collection_formats=collection_formats,
144
- 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
145
168
 
146
169
  def batch_execute_job_actions(self, request):
147
170
  """批量操作指定ID任务
@@ -154,9 +177,22 @@ class DrsClient(Client):
154
177
  :type request: :class:`huaweicloudsdkdrs.v5.BatchExecuteJobActionsRequest`
155
178
  :rtype: :class:`huaweicloudsdkdrs.v5.BatchExecuteJobActionsResponse`
156
179
  """
157
- return self._batch_execute_job_actions_with_http_info(request)
180
+ http_info = self._batch_execute_job_actions_http_info(request)
181
+ return self._call_api(**http_info)
182
+
183
+ def batch_execute_job_actions_invoker(self, request):
184
+ http_info = self._batch_execute_job_actions_http_info(request)
185
+ return SyncInvoker(self, http_info)
186
+
187
+ @classmethod
188
+ def _batch_execute_job_actions_http_info(cls, 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
+ }
158
195
 
159
- def _batch_execute_job_actions_with_http_info(self, request):
160
196
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
161
197
 
162
198
  cname = None
@@ -173,11 +209,11 @@ class DrsClient(Client):
173
209
 
174
210
  form_params = {}
175
211
 
176
- body_params = None
212
+ body = None
177
213
  if 'body' in local_var_params:
178
- body_params = local_var_params['body']
214
+ body = local_var_params['body']
179
215
  if isinstance(request, SdkStreamRequest):
180
- body_params = request.get_file_stream()
216
+ body = request.get_file_stream()
181
217
 
182
218
  response_headers = []
183
219
 
@@ -186,20 +222,16 @@ class DrsClient(Client):
186
222
 
187
223
  auth_settings = []
188
224
 
189
- return self.call_api(
190
- resource_path='/v5/{project_id}/jobs/action',
191
- method='POST',
192
- path_params=path_params,
193
- query_params=query_params,
194
- header_params=header_params,
195
- body=body_params,
196
- post_params=form_params,
197
- cname=cname,
198
- response_type='BatchExecuteJobActionsResponse',
199
- response_headers=response_headers,
200
- auth_settings=auth_settings,
201
- collection_formats=collection_formats,
202
- 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
203
235
 
204
236
  def batch_stop_jobs_action(self, request):
205
237
  """批量结束任务
@@ -212,9 +244,22 @@ class DrsClient(Client):
212
244
  :type request: :class:`huaweicloudsdkdrs.v5.BatchStopJobsActionRequest`
213
245
  :rtype: :class:`huaweicloudsdkdrs.v5.BatchStopJobsActionResponse`
214
246
  """
215
- return self._batch_stop_jobs_action_with_http_info(request)
247
+ http_info = self._batch_stop_jobs_action_http_info(request)
248
+ return self._call_api(**http_info)
249
+
250
+ def batch_stop_jobs_action_invoker(self, request):
251
+ http_info = self._batch_stop_jobs_action_http_info(request)
252
+ return SyncInvoker(self, http_info)
253
+
254
+ @classmethod
255
+ def _batch_stop_jobs_action_http_info(cls, 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
+ }
216
262
 
217
- def _batch_stop_jobs_action_with_http_info(self, request):
218
263
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
219
264
 
220
265
  cname = None
@@ -231,11 +276,11 @@ class DrsClient(Client):
231
276
 
232
277
  form_params = {}
233
278
 
234
- body_params = None
279
+ body = None
235
280
  if 'body' in local_var_params:
236
- body_params = local_var_params['body']
281
+ body = local_var_params['body']
237
282
  if isinstance(request, SdkStreamRequest):
238
- body_params = request.get_file_stream()
283
+ body = request.get_file_stream()
239
284
 
240
285
  response_headers = []
241
286
 
@@ -244,20 +289,16 @@ class DrsClient(Client):
244
289
 
245
290
  auth_settings = []
246
291
 
247
- return self.call_api(
248
- resource_path='/v5/{project_id}/jobs/batch-stop',
249
- method='POST',
250
- path_params=path_params,
251
- query_params=query_params,
252
- header_params=header_params,
253
- body=body_params,
254
- post_params=form_params,
255
- cname=cname,
256
- response_type='BatchStopJobsActionResponse',
257
- response_headers=response_headers,
258
- auth_settings=auth_settings,
259
- collection_formats=collection_formats,
260
- 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
261
302
 
262
303
  def batch_tag_action(self, request):
263
304
  """批量添加或删除资源标签
@@ -270,9 +311,22 @@ class DrsClient(Client):
270
311
  :type request: :class:`huaweicloudsdkdrs.v5.BatchTagActionRequest`
271
312
  :rtype: :class:`huaweicloudsdkdrs.v5.BatchTagActionResponse`
272
313
  """
273
- return self._batch_tag_action_with_http_info(request)
314
+ http_info = self._batch_tag_action_http_info(request)
315
+ return self._call_api(**http_info)
316
+
317
+ def batch_tag_action_invoker(self, request):
318
+ http_info = self._batch_tag_action_http_info(request)
319
+ return SyncInvoker(self, http_info)
320
+
321
+ @classmethod
322
+ def _batch_tag_action_http_info(cls, 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
+ }
274
329
 
275
- def _batch_tag_action_with_http_info(self, request):
276
330
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
277
331
 
278
332
  cname = None
@@ -293,11 +347,11 @@ class DrsClient(Client):
293
347
 
294
348
  form_params = {}
295
349
 
296
- body_params = None
350
+ body = None
297
351
  if 'body' in local_var_params:
298
- body_params = local_var_params['body']
352
+ body = local_var_params['body']
299
353
  if isinstance(request, SdkStreamRequest):
300
- body_params = request.get_file_stream()
354
+ body = request.get_file_stream()
301
355
 
302
356
  response_headers = []
303
357
 
@@ -306,20 +360,16 @@ class DrsClient(Client):
306
360
 
307
361
  auth_settings = []
308
362
 
309
- return self.call_api(
310
- resource_path='/v5/{project_id}/jobs/{resource_type}/{job_id}/tags/action',
311
- method='POST',
312
- path_params=path_params,
313
- query_params=query_params,
314
- header_params=header_params,
315
- body=body_params,
316
- post_params=form_params,
317
- cname=cname,
318
- response_type='BatchTagActionResponse',
319
- response_headers=response_headers,
320
- auth_settings=auth_settings,
321
- collection_formats=collection_formats,
322
- 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
323
373
 
324
374
  def check_data_filter(self, request):
325
375
  """数据过滤规则校验
@@ -332,9 +382,22 @@ class DrsClient(Client):
332
382
  :type request: :class:`huaweicloudsdkdrs.v5.CheckDataFilterRequest`
333
383
  :rtype: :class:`huaweicloudsdkdrs.v5.CheckDataFilterResponse`
334
384
  """
335
- return self._check_data_filter_with_http_info(request)
385
+ http_info = self._check_data_filter_http_info(request)
386
+ return self._call_api(**http_info)
387
+
388
+ def check_data_filter_invoker(self, request):
389
+ http_info = self._check_data_filter_http_info(request)
390
+ return SyncInvoker(self, http_info)
391
+
392
+ @classmethod
393
+ def _check_data_filter_http_info(cls, 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
+ }
336
400
 
337
- def _check_data_filter_with_http_info(self, request):
338
401
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
339
402
 
340
403
  cname = None
@@ -353,11 +416,11 @@ class DrsClient(Client):
353
416
 
354
417
  form_params = {}
355
418
 
356
- body_params = None
419
+ body = None
357
420
  if 'body' in local_var_params:
358
- body_params = local_var_params['body']
421
+ body = local_var_params['body']
359
422
  if isinstance(request, SdkStreamRequest):
360
- body_params = request.get_file_stream()
423
+ body = request.get_file_stream()
361
424
 
362
425
  response_headers = []
363
426
 
@@ -366,20 +429,16 @@ class DrsClient(Client):
366
429
 
367
430
  auth_settings = []
368
431
 
369
- return self.call_api(
370
- resource_path='/v5/{project_id}/job/{job_id}/data-filtering/check',
371
- method='POST',
372
- path_params=path_params,
373
- query_params=query_params,
374
- header_params=header_params,
375
- body=body_params,
376
- post_params=form_params,
377
- cname=cname,
378
- response_type='CheckDataFilterResponse',
379
- response_headers=response_headers,
380
- auth_settings=auth_settings,
381
- collection_formats=collection_formats,
382
- 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
383
442
 
384
443
  def collect_columns(self, request):
385
444
  """采集指定数据库表的列信息
@@ -392,9 +451,22 @@ class DrsClient(Client):
392
451
  :type request: :class:`huaweicloudsdkdrs.v5.CollectColumnsRequest`
393
452
  :rtype: :class:`huaweicloudsdkdrs.v5.CollectColumnsResponse`
394
453
  """
395
- return self._collect_columns_with_http_info(request)
454
+ http_info = self._collect_columns_http_info(request)
455
+ return self._call_api(**http_info)
456
+
457
+ def collect_columns_invoker(self, request):
458
+ http_info = self._collect_columns_http_info(request)
459
+ return SyncInvoker(self, http_info)
460
+
461
+ @classmethod
462
+ def _collect_columns_http_info(cls, 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
+ }
396
469
 
397
- def _collect_columns_with_http_info(self, request):
398
470
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
399
471
 
400
472
  cname = None
@@ -413,11 +485,11 @@ class DrsClient(Client):
413
485
 
414
486
  form_params = {}
415
487
 
416
- body_params = None
488
+ body = None
417
489
  if 'body' in local_var_params:
418
- body_params = local_var_params['body']
490
+ body = local_var_params['body']
419
491
  if isinstance(request, SdkStreamRequest):
420
- body_params = request.get_file_stream()
492
+ body = request.get_file_stream()
421
493
 
422
494
  response_headers = []
423
495
 
@@ -426,20 +498,16 @@ class DrsClient(Client):
426
498
 
427
499
  auth_settings = []
428
500
 
429
- return self.call_api(
430
- resource_path='/v5/{project_id}/job/{job_id}/columns/collect',
431
- method='POST',
432
- path_params=path_params,
433
- query_params=query_params,
434
- header_params=header_params,
435
- body=body_params,
436
- post_params=form_params,
437
- cname=cname,
438
- response_type='CollectColumnsResponse',
439
- response_headers=response_headers,
440
- auth_settings=auth_settings,
441
- collection_formats=collection_formats,
442
- 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
443
511
 
444
512
  def collect_db_objects_async(self, request):
445
513
  """提交查询数据库对象信息
@@ -455,9 +523,22 @@ class DrsClient(Client):
455
523
  :type request: :class:`huaweicloudsdkdrs.v5.CollectDbObjectsAsyncRequest`
456
524
  :rtype: :class:`huaweicloudsdkdrs.v5.CollectDbObjectsAsyncResponse`
457
525
  """
458
- return self._collect_db_objects_async_with_http_info(request)
526
+ http_info = self._collect_db_objects_async_http_info(request)
527
+ return self._call_api(**http_info)
528
+
529
+ def collect_db_objects_async_invoker(self, request):
530
+ http_info = self._collect_db_objects_async_http_info(request)
531
+ return SyncInvoker(self, http_info)
532
+
533
+ @classmethod
534
+ def _collect_db_objects_async_http_info(cls, 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
+ }
459
541
 
460
- def _collect_db_objects_async_with_http_info(self, request):
461
542
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
462
543
 
463
544
  cname = None
@@ -487,9 +568,9 @@ class DrsClient(Client):
487
568
 
488
569
  form_params = {}
489
570
 
490
- body_params = None
571
+ body = None
491
572
  if isinstance(request, SdkStreamRequest):
492
- body_params = request.get_file_stream()
573
+ body = request.get_file_stream()
493
574
 
494
575
  response_headers = []
495
576
 
@@ -498,20 +579,16 @@ class DrsClient(Client):
498
579
 
499
580
  auth_settings = []
500
581
 
501
- return self.call_api(
502
- resource_path='/v5/{project_id}/jobs/{job_id}/db-objects/collect',
503
- method='POST',
504
- path_params=path_params,
505
- query_params=query_params,
506
- header_params=header_params,
507
- body=body_params,
508
- post_params=form_params,
509
- cname=cname,
510
- response_type='CollectDbObjectsAsyncResponse',
511
- response_headers=response_headers,
512
- auth_settings=auth_settings,
513
- collection_formats=collection_formats,
514
- 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
515
592
 
516
593
  def collect_db_objects_info(self, request):
517
594
  """提交查询数据库对象信息
@@ -527,9 +604,22 @@ class DrsClient(Client):
527
604
  :type request: :class:`huaweicloudsdkdrs.v5.CollectDbObjectsInfoRequest`
528
605
  :rtype: :class:`huaweicloudsdkdrs.v5.CollectDbObjectsInfoResponse`
529
606
  """
530
- return self._collect_db_objects_info_with_http_info(request)
607
+ http_info = self._collect_db_objects_info_http_info(request)
608
+ return self._call_api(**http_info)
609
+
610
+ def collect_db_objects_info_invoker(self, request):
611
+ http_info = self._collect_db_objects_info_http_info(request)
612
+ return SyncInvoker(self, http_info)
613
+
614
+ @classmethod
615
+ def _collect_db_objects_info_http_info(cls, 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
+ }
531
622
 
532
- def _collect_db_objects_info_with_http_info(self, request):
533
623
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
534
624
 
535
625
  cname = None
@@ -548,11 +638,11 @@ class DrsClient(Client):
548
638
 
549
639
  form_params = {}
550
640
 
551
- body_params = None
641
+ body = None
552
642
  if 'body' in local_var_params:
553
- body_params = local_var_params['body']
643
+ body = local_var_params['body']
554
644
  if isinstance(request, SdkStreamRequest):
555
- body_params = request.get_file_stream()
645
+ body = request.get_file_stream()
556
646
 
557
647
  response_headers = []
558
648
 
@@ -561,20 +651,16 @@ class DrsClient(Client):
561
651
 
562
652
  auth_settings = []
563
653
 
564
- return self.call_api(
565
- resource_path='/v5.1/{project_id}/jobs/{job_id}/db-objects/collect',
566
- method='POST',
567
- path_params=path_params,
568
- query_params=query_params,
569
- header_params=header_params,
570
- body=body_params,
571
- post_params=form_params,
572
- cname=cname,
573
- response_type='CollectDbObjectsInfoResponse',
574
- response_headers=response_headers,
575
- auth_settings=auth_settings,
576
- collection_formats=collection_formats,
577
- 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
578
664
 
579
665
  def collect_position_async(self, request):
580
666
  """采集数据库位点信息
@@ -587,9 +673,22 @@ class DrsClient(Client):
587
673
  :type request: :class:`huaweicloudsdkdrs.v5.CollectPositionAsyncRequest`
588
674
  :rtype: :class:`huaweicloudsdkdrs.v5.CollectPositionAsyncResponse`
589
675
  """
590
- return self._collect_position_async_with_http_info(request)
676
+ http_info = self._collect_position_async_http_info(request)
677
+ return self._call_api(**http_info)
678
+
679
+ def collect_position_async_invoker(self, request):
680
+ http_info = self._collect_position_async_http_info(request)
681
+ return SyncInvoker(self, http_info)
682
+
683
+ @classmethod
684
+ def _collect_position_async_http_info(cls, 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
+ }
591
691
 
592
- def _collect_position_async_with_http_info(self, request):
593
692
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
594
693
 
595
694
  cname = None
@@ -608,11 +707,11 @@ class DrsClient(Client):
608
707
 
609
708
  form_params = {}
610
709
 
611
- body_params = None
710
+ body = None
612
711
  if 'body' in local_var_params:
613
- body_params = local_var_params['body']
712
+ body = local_var_params['body']
614
713
  if isinstance(request, SdkStreamRequest):
615
- body_params = request.get_file_stream()
714
+ body = request.get_file_stream()
616
715
 
617
716
  response_headers = []
618
717
 
@@ -621,20 +720,16 @@ class DrsClient(Client):
621
720
 
622
721
  auth_settings = []
623
722
 
624
- return self.call_api(
625
- resource_path='/v5/{project_id}/jobs/{job_id}/collect-db-position',
626
- method='POST',
627
- path_params=path_params,
628
- query_params=query_params,
629
- header_params=header_params,
630
- body=body_params,
631
- post_params=form_params,
632
- cname=cname,
633
- response_type='CollectPositionAsyncResponse',
634
- response_headers=response_headers,
635
- auth_settings=auth_settings,
636
- collection_formats=collection_formats,
637
- 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
638
733
 
639
734
  def commit_async_job(self, request):
640
735
  """提交批量创建异步任务
@@ -647,9 +742,22 @@ class DrsClient(Client):
647
742
  :type request: :class:`huaweicloudsdkdrs.v5.CommitAsyncJobRequest`
648
743
  :rtype: :class:`huaweicloudsdkdrs.v5.CommitAsyncJobResponse`
649
744
  """
650
- return self._commit_async_job_with_http_info(request)
745
+ http_info = self._commit_async_job_http_info(request)
746
+ return self._call_api(**http_info)
747
+
748
+ def commit_async_job_invoker(self, request):
749
+ http_info = self._commit_async_job_http_info(request)
750
+ return SyncInvoker(self, http_info)
751
+
752
+ @classmethod
753
+ def _commit_async_job_http_info(cls, 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
+ }
651
760
 
652
- def _commit_async_job_with_http_info(self, request):
653
761
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
654
762
 
655
763
  cname = None
@@ -668,9 +776,9 @@ class DrsClient(Client):
668
776
 
669
777
  form_params = {}
670
778
 
671
- body_params = None
779
+ body = None
672
780
  if isinstance(request, SdkStreamRequest):
673
- body_params = request.get_file_stream()
781
+ body = request.get_file_stream()
674
782
 
675
783
  response_headers = []
676
784
 
@@ -679,20 +787,16 @@ class DrsClient(Client):
679
787
 
680
788
  auth_settings = []
681
789
 
682
- return self.call_api(
683
- resource_path='/v5/{project_id}/batch-async-jobs/{async_job_id}/commit',
684
- method='POST',
685
- path_params=path_params,
686
- query_params=query_params,
687
- header_params=header_params,
688
- body=body_params,
689
- post_params=form_params,
690
- cname=cname,
691
- response_type='CommitAsyncJobResponse',
692
- response_headers=response_headers,
693
- auth_settings=auth_settings,
694
- collection_formats=collection_formats,
695
- 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
696
800
 
697
801
  def copy_job(self, request):
698
802
  """克隆任务
@@ -705,9 +809,22 @@ class DrsClient(Client):
705
809
  :type request: :class:`huaweicloudsdkdrs.v5.CopyJobRequest`
706
810
  :rtype: :class:`huaweicloudsdkdrs.v5.CopyJobResponse`
707
811
  """
708
- return self._copy_job_with_http_info(request)
812
+ http_info = self._copy_job_http_info(request)
813
+ return self._call_api(**http_info)
814
+
815
+ def copy_job_invoker(self, request):
816
+ http_info = self._copy_job_http_info(request)
817
+ return SyncInvoker(self, http_info)
818
+
819
+ @classmethod
820
+ def _copy_job_http_info(cls, 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
+ }
709
827
 
710
- def _copy_job_with_http_info(self, request):
711
828
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
712
829
 
713
830
  cname = None
@@ -724,11 +841,11 @@ class DrsClient(Client):
724
841
 
725
842
  form_params = {}
726
843
 
727
- body_params = None
844
+ body = None
728
845
  if 'body' in local_var_params:
729
- body_params = local_var_params['body']
846
+ body = local_var_params['body']
730
847
  if isinstance(request, SdkStreamRequest):
731
- body_params = request.get_file_stream()
848
+ body = request.get_file_stream()
732
849
 
733
850
  response_headers = []
734
851
 
@@ -737,20 +854,16 @@ class DrsClient(Client):
737
854
 
738
855
  auth_settings = []
739
856
 
740
- return self.call_api(
741
- resource_path='/v5/{project_id}/jobs/clone',
742
- method='POST',
743
- path_params=path_params,
744
- query_params=query_params,
745
- header_params=header_params,
746
- body=body_params,
747
- post_params=form_params,
748
- cname=cname,
749
- response_type='CopyJobResponse',
750
- response_headers=response_headers,
751
- auth_settings=auth_settings,
752
- collection_formats=collection_formats,
753
- 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
754
867
 
755
868
  def create_job(self, request):
756
869
  """创建任务
@@ -763,9 +876,22 @@ class DrsClient(Client):
763
876
  :type request: :class:`huaweicloudsdkdrs.v5.CreateJobRequest`
764
877
  :rtype: :class:`huaweicloudsdkdrs.v5.CreateJobResponse`
765
878
  """
766
- return self._create_job_with_http_info(request)
879
+ http_info = self._create_job_http_info(request)
880
+ return self._call_api(**http_info)
881
+
882
+ def create_job_invoker(self, request):
883
+ http_info = self._create_job_http_info(request)
884
+ return SyncInvoker(self, http_info)
885
+
886
+ @classmethod
887
+ def _create_job_http_info(cls, 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
+ }
767
894
 
768
- def _create_job_with_http_info(self, request):
769
895
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
770
896
 
771
897
  cname = None
@@ -782,11 +908,11 @@ class DrsClient(Client):
782
908
 
783
909
  form_params = {}
784
910
 
785
- body_params = None
911
+ body = None
786
912
  if 'body' in local_var_params:
787
- body_params = local_var_params['body']
913
+ body = local_var_params['body']
788
914
  if isinstance(request, SdkStreamRequest):
789
- body_params = request.get_file_stream()
915
+ body = request.get_file_stream()
790
916
 
791
917
  response_headers = []
792
918
 
@@ -795,20 +921,16 @@ class DrsClient(Client):
795
921
 
796
922
  auth_settings = []
797
923
 
798
- return self.call_api(
799
- resource_path='/v5/{project_id}/jobs',
800
- method='POST',
801
- path_params=path_params,
802
- query_params=query_params,
803
- header_params=header_params,
804
- body=body_params,
805
- post_params=form_params,
806
- cname=cname,
807
- response_type='CreateJobResponse',
808
- response_headers=response_headers,
809
- auth_settings=auth_settings,
810
- collection_formats=collection_formats,
811
- 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
812
934
 
813
935
  def delete_job(self, request):
814
936
  """删除指定ID任务
@@ -821,9 +943,22 @@ class DrsClient(Client):
821
943
  :type request: :class:`huaweicloudsdkdrs.v5.DeleteJobRequest`
822
944
  :rtype: :class:`huaweicloudsdkdrs.v5.DeleteJobResponse`
823
945
  """
824
- return self._delete_job_with_http_info(request)
946
+ http_info = self._delete_job_http_info(request)
947
+ return self._call_api(**http_info)
948
+
949
+ def delete_job_invoker(self, request):
950
+ http_info = self._delete_job_http_info(request)
951
+ return SyncInvoker(self, http_info)
952
+
953
+ @classmethod
954
+ def _delete_job_http_info(cls, 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
+ }
825
961
 
826
- def _delete_job_with_http_info(self, request):
827
962
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
828
963
 
829
964
  cname = None
@@ -842,9 +977,9 @@ class DrsClient(Client):
842
977
 
843
978
  form_params = {}
844
979
 
845
- body_params = None
980
+ body = None
846
981
  if isinstance(request, SdkStreamRequest):
847
- body_params = request.get_file_stream()
982
+ body = request.get_file_stream()
848
983
 
849
984
  response_headers = []
850
985
 
@@ -853,20 +988,16 @@ class DrsClient(Client):
853
988
 
854
989
  auth_settings = []
855
990
 
856
- return self.call_api(
857
- resource_path='/v5/{project_id}/jobs/{job_id}',
858
- method='DELETE',
859
- path_params=path_params,
860
- query_params=query_params,
861
- header_params=header_params,
862
- body=body_params,
863
- post_params=form_params,
864
- cname=cname,
865
- response_type='DeleteJobResponse',
866
- response_headers=response_headers,
867
- auth_settings=auth_settings,
868
- collection_formats=collection_formats,
869
- 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
870
1001
 
871
1002
  def download_batch_create_template(self, request):
872
1003
  """下载批量导入任务模板
@@ -879,9 +1010,22 @@ class DrsClient(Client):
879
1010
  :type request: :class:`huaweicloudsdkdrs.v5.DownloadBatchCreateTemplateRequest`
880
1011
  :rtype: :class:`huaweicloudsdkdrs.v5.DownloadBatchCreateTemplateResponse`
881
1012
  """
882
- return self._download_batch_create_template_with_http_info(request)
1013
+ http_info = self._download_batch_create_template_http_info(request)
1014
+ return self._call_api(**http_info)
1015
+
1016
+ def download_batch_create_template_invoker(self, request):
1017
+ http_info = self._download_batch_create_template_http_info(request)
1018
+ return SyncInvoker(self, http_info)
1019
+
1020
+ @classmethod
1021
+ def _download_batch_create_template_http_info(cls, 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
+ }
883
1028
 
884
- def _download_batch_create_template_with_http_info(self, request):
885
1029
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
886
1030
 
887
1031
  cname = None
@@ -898,9 +1042,9 @@ class DrsClient(Client):
898
1042
 
899
1043
  form_params = {}
900
1044
 
901
- body_params = None
1045
+ body = None
902
1046
  if isinstance(request, SdkStreamRequest):
903
- body_params = request.get_file_stream()
1047
+ body = request.get_file_stream()
904
1048
 
905
1049
  response_headers = []
906
1050
 
@@ -909,20 +1053,16 @@ class DrsClient(Client):
909
1053
 
910
1054
  auth_settings = []
911
1055
 
912
- return self.call_api(
913
- resource_path='/v5/{project_id}/jobs/template',
914
- method='GET',
915
- path_params=path_params,
916
- query_params=query_params,
917
- header_params=header_params,
918
- body=body_params,
919
- post_params=form_params,
920
- cname=cname,
921
- response_type='DownloadBatchCreateTemplateResponse',
922
- response_headers=response_headers,
923
- auth_settings=auth_settings,
924
- collection_formats=collection_formats,
925
- 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
926
1066
 
927
1067
  def download_db_object_template(self, request):
928
1068
  """对象选择(文件导入 - 模板下载)
@@ -935,9 +1075,22 @@ class DrsClient(Client):
935
1075
  :type request: :class:`huaweicloudsdkdrs.v5.DownloadDbObjectTemplateRequest`
936
1076
  :rtype: :class:`huaweicloudsdkdrs.v5.DownloadDbObjectTemplateResponse`
937
1077
  """
938
- return self._download_db_object_template_with_http_info(request)
1078
+ http_info = self._download_db_object_template_http_info(request)
1079
+ return self._call_api(**http_info)
1080
+
1081
+ def download_db_object_template_invoker(self, request):
1082
+ http_info = self._download_db_object_template_http_info(request)
1083
+ return SyncInvoker(self, http_info)
1084
+
1085
+ @classmethod
1086
+ def _download_db_object_template_http_info(cls, 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
+ }
939
1093
 
940
- def _download_db_object_template_with_http_info(self, request):
941
1094
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
942
1095
 
943
1096
  cname = None
@@ -958,9 +1111,9 @@ class DrsClient(Client):
958
1111
 
959
1112
  form_params = {}
960
1113
 
961
- body_params = None
1114
+ body = None
962
1115
  if isinstance(request, SdkStreamRequest):
963
- body_params = request.get_file_stream()
1116
+ body = request.get_file_stream()
964
1117
 
965
1118
  response_headers = []
966
1119
 
@@ -969,20 +1122,16 @@ class DrsClient(Client):
969
1122
 
970
1123
  auth_settings = []
971
1124
 
972
- return self.call_api(
973
- resource_path='/v5/{project_id}/jobs/{job_id}/db-object/template',
974
- method='GET',
975
- path_params=path_params,
976
- query_params=query_params,
977
- header_params=header_params,
978
- body=body_params,
979
- post_params=form_params,
980
- cname=cname,
981
- response_type='DownloadDbObjectTemplateResponse',
982
- response_headers=response_headers,
983
- auth_settings=auth_settings,
984
- collection_formats=collection_formats,
985
- 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
986
1135
 
987
1136
  def execute_job_action(self, request):
988
1137
  """操作指定ID任务
@@ -995,9 +1144,22 @@ class DrsClient(Client):
995
1144
  :type request: :class:`huaweicloudsdkdrs.v5.ExecuteJobActionRequest`
996
1145
  :rtype: :class:`huaweicloudsdkdrs.v5.ExecuteJobActionResponse`
997
1146
  """
998
- return self._execute_job_action_with_http_info(request)
1147
+ http_info = self._execute_job_action_http_info(request)
1148
+ return self._call_api(**http_info)
1149
+
1150
+ def execute_job_action_invoker(self, request):
1151
+ http_info = self._execute_job_action_http_info(request)
1152
+ return SyncInvoker(self, http_info)
1153
+
1154
+ @classmethod
1155
+ def _execute_job_action_http_info(cls, 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
+ }
999
1162
 
1000
- def _execute_job_action_with_http_info(self, request):
1001
1163
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
1002
1164
 
1003
1165
  cname = None
@@ -1016,11 +1178,11 @@ class DrsClient(Client):
1016
1178
 
1017
1179
  form_params = {}
1018
1180
 
1019
- body_params = None
1181
+ body = None
1020
1182
  if 'body' in local_var_params:
1021
- body_params = local_var_params['body']
1183
+ body = local_var_params['body']
1022
1184
  if isinstance(request, SdkStreamRequest):
1023
- body_params = request.get_file_stream()
1185
+ body = request.get_file_stream()
1024
1186
 
1025
1187
  response_headers = []
1026
1188
 
@@ -1029,20 +1191,16 @@ class DrsClient(Client):
1029
1191
 
1030
1192
  auth_settings = []
1031
1193
 
1032
- return self.call_api(
1033
- resource_path='/v5/{project_id}/jobs/{job_id}/action',
1034
- method='POST',
1035
- path_params=path_params,
1036
- query_params=query_params,
1037
- header_params=header_params,
1038
- body=body_params,
1039
- post_params=form_params,
1040
- cname=cname,
1041
- response_type='ExecuteJobActionResponse',
1042
- response_headers=response_headers,
1043
- auth_settings=auth_settings,
1044
- collection_formats=collection_formats,
1045
- 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
1046
1204
 
1047
1205
  def export_operation_info(self, request):
1048
1206
  """导出任务操作统计信息
@@ -1055,9 +1213,22 @@ class DrsClient(Client):
1055
1213
  :type request: :class:`huaweicloudsdkdrs.v5.ExportOperationInfoRequest`
1056
1214
  :rtype: :class:`huaweicloudsdkdrs.v5.ExportOperationInfoResponse`
1057
1215
  """
1058
- return self._export_operation_info_with_http_info(request)
1216
+ http_info = self._export_operation_info_http_info(request)
1217
+ return self._call_api(**http_info)
1218
+
1219
+ def export_operation_info_invoker(self, request):
1220
+ http_info = self._export_operation_info_http_info(request)
1221
+ return SyncInvoker(self, http_info)
1222
+
1223
+ @classmethod
1224
+ def _export_operation_info_http_info(cls, 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
+ }
1059
1231
 
1060
- def _export_operation_info_with_http_info(self, request):
1061
1232
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
1062
1233
 
1063
1234
  cname = None
@@ -1076,9 +1247,9 @@ class DrsClient(Client):
1076
1247
 
1077
1248
  form_params = {}
1078
1249
 
1079
- body_params = None
1250
+ body = None
1080
1251
  if isinstance(request, SdkStreamRequest):
1081
- body_params = request.get_file_stream()
1252
+ body = request.get_file_stream()
1082
1253
 
1083
1254
  response_headers = []
1084
1255
 
@@ -1087,20 +1258,16 @@ class DrsClient(Client):
1087
1258
 
1088
1259
  auth_settings = []
1089
1260
 
1090
- return self.call_api(
1091
- resource_path='/v5/{project_id}/jobs/{job_id}/operation-statistics/export',
1092
- method='POST',
1093
- path_params=path_params,
1094
- query_params=query_params,
1095
- header_params=header_params,
1096
- body=body_params,
1097
- post_params=form_params,
1098
- cname=cname,
1099
- response_type='ExportOperationInfoResponse',
1100
- response_headers=response_headers,
1101
- auth_settings=auth_settings,
1102
- collection_formats=collection_formats,
1103
- 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
1104
1271
 
1105
1272
  def import_batch_create_jobs(self, request):
1106
1273
  """批量导入任务
@@ -1113,9 +1280,22 @@ class DrsClient(Client):
1113
1280
  :type request: :class:`huaweicloudsdkdrs.v5.ImportBatchCreateJobsRequest`
1114
1281
  :rtype: :class:`huaweicloudsdkdrs.v5.ImportBatchCreateJobsResponse`
1115
1282
  """
1116
- return self._import_batch_create_jobs_with_http_info(request)
1283
+ http_info = self._import_batch_create_jobs_http_info(request)
1284
+ return self._call_api(**http_info)
1285
+
1286
+ def import_batch_create_jobs_invoker(self, request):
1287
+ http_info = self._import_batch_create_jobs_http_info(request)
1288
+ return SyncInvoker(self, http_info)
1289
+
1290
+ @classmethod
1291
+ def _import_batch_create_jobs_http_info(cls, 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
+ }
1117
1298
 
1118
- def _import_batch_create_jobs_with_http_info(self, request):
1119
1299
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
1120
1300
 
1121
1301
  cname = None
@@ -1134,11 +1314,11 @@ class DrsClient(Client):
1134
1314
  if 'file' in local_var_params:
1135
1315
  form_params['file'] = local_var_params['file']
1136
1316
 
1137
- body_params = None
1317
+ body = None
1138
1318
  if 'body' in local_var_params:
1139
- body_params = local_var_params['body']
1319
+ body = local_var_params['body']
1140
1320
  if isinstance(request, SdkStreamRequest):
1141
- body_params = request.get_file_stream()
1321
+ body = request.get_file_stream()
1142
1322
 
1143
1323
  response_headers = []
1144
1324
 
@@ -1147,20 +1327,16 @@ class DrsClient(Client):
1147
1327
 
1148
1328
  auth_settings = []
1149
1329
 
1150
- return self.call_api(
1151
- resource_path='/v5/{project_id}/jobs/template',
1152
- method='POST',
1153
- path_params=path_params,
1154
- query_params=query_params,
1155
- header_params=header_params,
1156
- body=body_params,
1157
- post_params=form_params,
1158
- cname=cname,
1159
- response_type='ImportBatchCreateJobsResponse',
1160
- response_headers=response_headers,
1161
- auth_settings=auth_settings,
1162
- collection_formats=collection_formats,
1163
- 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
1164
1340
 
1165
1341
  def list_async_job_detail(self, request):
1166
1342
  """查询指定ID批量异步任务详情
@@ -1173,9 +1349,22 @@ class DrsClient(Client):
1173
1349
  :type request: :class:`huaweicloudsdkdrs.v5.ListAsyncJobDetailRequest`
1174
1350
  :rtype: :class:`huaweicloudsdkdrs.v5.ListAsyncJobDetailResponse`
1175
1351
  """
1176
- return self._list_async_job_detail_with_http_info(request)
1352
+ http_info = self._list_async_job_detail_http_info(request)
1353
+ return self._call_api(**http_info)
1354
+
1355
+ def list_async_job_detail_invoker(self, request):
1356
+ http_info = self._list_async_job_detail_http_info(request)
1357
+ return SyncInvoker(self, http_info)
1358
+
1359
+ @classmethod
1360
+ def _list_async_job_detail_http_info(cls, 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
+ }
1177
1367
 
1178
- def _list_async_job_detail_with_http_info(self, request):
1179
1368
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
1180
1369
 
1181
1370
  cname = None
@@ -1198,9 +1387,9 @@ class DrsClient(Client):
1198
1387
 
1199
1388
  form_params = {}
1200
1389
 
1201
- body_params = None
1390
+ body = None
1202
1391
  if isinstance(request, SdkStreamRequest):
1203
- body_params = request.get_file_stream()
1392
+ body = request.get_file_stream()
1204
1393
 
1205
1394
  response_headers = []
1206
1395
 
@@ -1209,20 +1398,16 @@ class DrsClient(Client):
1209
1398
 
1210
1399
  auth_settings = []
1211
1400
 
1212
- return self.call_api(
1213
- resource_path='/v5/{project_id}/batch-async-jobs/{async_job_id}',
1214
- method='GET',
1215
- path_params=path_params,
1216
- query_params=query_params,
1217
- header_params=header_params,
1218
- body=body_params,
1219
- post_params=form_params,
1220
- cname=cname,
1221
- response_type='ListAsyncJobDetailResponse',
1222
- response_headers=response_headers,
1223
- auth_settings=auth_settings,
1224
- collection_formats=collection_formats,
1225
- 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
1226
1411
 
1227
1412
  def list_async_jobs(self, request):
1228
1413
  """查询批量异步创建的任务列表
@@ -1235,9 +1420,22 @@ class DrsClient(Client):
1235
1420
  :type request: :class:`huaweicloudsdkdrs.v5.ListAsyncJobsRequest`
1236
1421
  :rtype: :class:`huaweicloudsdkdrs.v5.ListAsyncJobsResponse`
1237
1422
  """
1238
- return self._list_async_jobs_with_http_info(request)
1423
+ http_info = self._list_async_jobs_http_info(request)
1424
+ return self._call_api(**http_info)
1425
+
1426
+ def list_async_jobs_invoker(self, request):
1427
+ http_info = self._list_async_jobs_http_info(request)
1428
+ return SyncInvoker(self, http_info)
1429
+
1430
+ @classmethod
1431
+ def _list_async_jobs_http_info(cls, 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
+ }
1239
1438
 
1240
- def _list_async_jobs_with_http_info(self, request):
1241
1439
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
1242
1440
 
1243
1441
  cname = None
@@ -1270,9 +1468,9 @@ class DrsClient(Client):
1270
1468
 
1271
1469
  form_params = {}
1272
1470
 
1273
- body_params = None
1471
+ body = None
1274
1472
  if isinstance(request, SdkStreamRequest):
1275
- body_params = request.get_file_stream()
1473
+ body = request.get_file_stream()
1276
1474
 
1277
1475
  response_headers = []
1278
1476
 
@@ -1281,20 +1479,16 @@ class DrsClient(Client):
1281
1479
 
1282
1480
  auth_settings = []
1283
1481
 
1284
- return self.call_api(
1285
- resource_path='/v5/{project_id}/batch-async-jobs',
1286
- method='GET',
1287
- path_params=path_params,
1288
- query_params=query_params,
1289
- header_params=header_params,
1290
- body=body_params,
1291
- post_params=form_params,
1292
- cname=cname,
1293
- response_type='ListAsyncJobsResponse',
1294
- response_headers=response_headers,
1295
- auth_settings=auth_settings,
1296
- collection_formats=collection_formats,
1297
- 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
1298
1492
 
1299
1493
  def list_db_objects(self, request):
1300
1494
  """查询数据库对象信息
@@ -1307,9 +1501,22 @@ class DrsClient(Client):
1307
1501
  :type request: :class:`huaweicloudsdkdrs.v5.ListDbObjectsRequest`
1308
1502
  :rtype: :class:`huaweicloudsdkdrs.v5.ListDbObjectsResponse`
1309
1503
  """
1310
- return self._list_db_objects_with_http_info(request)
1504
+ http_info = self._list_db_objects_http_info(request)
1505
+ return self._call_api(**http_info)
1506
+
1507
+ def list_db_objects_invoker(self, request):
1508
+ http_info = self._list_db_objects_http_info(request)
1509
+ return SyncInvoker(self, http_info)
1510
+
1511
+ @classmethod
1512
+ def _list_db_objects_http_info(cls, 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
+ }
1311
1519
 
1312
- def _list_db_objects_with_http_info(self, request):
1313
1520
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
1314
1521
 
1315
1522
  cname = None
@@ -1337,9 +1544,9 @@ class DrsClient(Client):
1337
1544
 
1338
1545
  form_params = {}
1339
1546
 
1340
- body_params = None
1547
+ body = None
1341
1548
  if isinstance(request, SdkStreamRequest):
1342
- body_params = request.get_file_stream()
1549
+ body = request.get_file_stream()
1343
1550
 
1344
1551
  response_headers = []
1345
1552
 
@@ -1348,20 +1555,16 @@ class DrsClient(Client):
1348
1555
 
1349
1556
  auth_settings = []
1350
1557
 
1351
- return self.call_api(
1352
- resource_path='/v5/{project_id}/jobs/{job_id}/db-objects',
1353
- method='GET',
1354
- path_params=path_params,
1355
- query_params=query_params,
1356
- header_params=header_params,
1357
- body=body_params,
1358
- post_params=form_params,
1359
- cname=cname,
1360
- response_type='ListDbObjectsResponse',
1361
- response_headers=response_headers,
1362
- auth_settings=auth_settings,
1363
- collection_formats=collection_formats,
1364
- 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
1365
1568
 
1366
1569
  def list_jobs(self, request):
1367
1570
  """查询任务列表
@@ -1374,9 +1577,22 @@ class DrsClient(Client):
1374
1577
  :type request: :class:`huaweicloudsdkdrs.v5.ListJobsRequest`
1375
1578
  :rtype: :class:`huaweicloudsdkdrs.v5.ListJobsResponse`
1376
1579
  """
1377
- return self._list_jobs_with_http_info(request)
1580
+ http_info = self._list_jobs_http_info(request)
1581
+ return self._call_api(**http_info)
1582
+
1583
+ def list_jobs_invoker(self, request):
1584
+ http_info = self._list_jobs_http_info(request)
1585
+ return SyncInvoker(self, http_info)
1586
+
1587
+ @classmethod
1588
+ def _list_jobs_http_info(cls, 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
+ }
1378
1595
 
1379
- def _list_jobs_with_http_info(self, request):
1380
1596
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
1381
1597
 
1382
1598
  cname = None
@@ -1418,9 +1634,9 @@ class DrsClient(Client):
1418
1634
 
1419
1635
  form_params = {}
1420
1636
 
1421
- body_params = None
1637
+ body = None
1422
1638
  if isinstance(request, SdkStreamRequest):
1423
- body_params = request.get_file_stream()
1639
+ body = request.get_file_stream()
1424
1640
 
1425
1641
  response_headers = []
1426
1642
 
@@ -1429,20 +1645,16 @@ class DrsClient(Client):
1429
1645
 
1430
1646
  auth_settings = []
1431
1647
 
1432
- return self.call_api(
1433
- resource_path='/v5/{project_id}/jobs',
1434
- method='GET',
1435
- path_params=path_params,
1436
- query_params=query_params,
1437
- header_params=header_params,
1438
- body=body_params,
1439
- post_params=form_params,
1440
- cname=cname,
1441
- response_type='ListJobsResponse',
1442
- response_headers=response_headers,
1443
- auth_settings=auth_settings,
1444
- collection_formats=collection_formats,
1445
- 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
1446
1658
 
1447
1659
  def list_links(self, request):
1448
1660
  """查询可用链路信息
@@ -1455,9 +1667,22 @@ class DrsClient(Client):
1455
1667
  :type request: :class:`huaweicloudsdkdrs.v5.ListLinksRequest`
1456
1668
  :rtype: :class:`huaweicloudsdkdrs.v5.ListLinksResponse`
1457
1669
  """
1458
- return self._list_links_with_http_info(request)
1670
+ http_info = self._list_links_http_info(request)
1671
+ return self._call_api(**http_info)
1672
+
1673
+ def list_links_invoker(self, request):
1674
+ http_info = self._list_links_http_info(request)
1675
+ return SyncInvoker(self, http_info)
1676
+
1677
+ @classmethod
1678
+ def _list_links_http_info(cls, 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
+ }
1459
1685
 
1460
- def _list_links_with_http_info(self, request):
1461
1686
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
1462
1687
 
1463
1688
  cname = None
@@ -1480,9 +1705,9 @@ class DrsClient(Client):
1480
1705
 
1481
1706
  form_params = {}
1482
1707
 
1483
- body_params = None
1708
+ body = None
1484
1709
  if isinstance(request, SdkStreamRequest):
1485
- body_params = request.get_file_stream()
1710
+ body = request.get_file_stream()
1486
1711
 
1487
1712
  response_headers = []
1488
1713
 
@@ -1491,20 +1716,16 @@ class DrsClient(Client):
1491
1716
 
1492
1717
  auth_settings = []
1493
1718
 
1494
- return self.call_api(
1495
- resource_path='/v5/{project_id}/links',
1496
- method='GET',
1497
- path_params=path_params,
1498
- query_params=query_params,
1499
- header_params=header_params,
1500
- body=body_params,
1501
- post_params=form_params,
1502
- cname=cname,
1503
- response_type='ListLinksResponse',
1504
- response_headers=response_headers,
1505
- auth_settings=auth_settings,
1506
- collection_formats=collection_formats,
1507
- 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
1508
1729
 
1509
1730
  def list_project_tags(self, request):
1510
1731
  """查询项目标签
@@ -1517,9 +1738,22 @@ class DrsClient(Client):
1517
1738
  :type request: :class:`huaweicloudsdkdrs.v5.ListProjectTagsRequest`
1518
1739
  :rtype: :class:`huaweicloudsdkdrs.v5.ListProjectTagsResponse`
1519
1740
  """
1520
- return self._list_project_tags_with_http_info(request)
1741
+ http_info = self._list_project_tags_http_info(request)
1742
+ return self._call_api(**http_info)
1743
+
1744
+ def list_project_tags_invoker(self, request):
1745
+ http_info = self._list_project_tags_http_info(request)
1746
+ return SyncInvoker(self, http_info)
1747
+
1748
+ @classmethod
1749
+ def _list_project_tags_http_info(cls, 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
+ }
1521
1756
 
1522
- def _list_project_tags_with_http_info(self, request):
1523
1757
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
1524
1758
 
1525
1759
  cname = None
@@ -1538,9 +1772,9 @@ class DrsClient(Client):
1538
1772
 
1539
1773
  form_params = {}
1540
1774
 
1541
- body_params = None
1775
+ body = None
1542
1776
  if isinstance(request, SdkStreamRequest):
1543
- body_params = request.get_file_stream()
1777
+ body = request.get_file_stream()
1544
1778
 
1545
1779
  response_headers = []
1546
1780
 
@@ -1549,20 +1783,16 @@ class DrsClient(Client):
1549
1783
 
1550
1784
  auth_settings = []
1551
1785
 
1552
- return self.call_api(
1553
- resource_path='/v5/{project_id}/jobs/{resource_type}/tags',
1554
- method='GET',
1555
- path_params=path_params,
1556
- query_params=query_params,
1557
- header_params=header_params,
1558
- body=body_params,
1559
- post_params=form_params,
1560
- cname=cname,
1561
- response_type='ListProjectTagsResponse',
1562
- response_headers=response_headers,
1563
- auth_settings=auth_settings,
1564
- collection_formats=collection_formats,
1565
- 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
1566
1796
 
1567
1797
  def show_actions(self, request):
1568
1798
  """获取指定任务操作信息
@@ -1575,9 +1805,22 @@ class DrsClient(Client):
1575
1805
  :type request: :class:`huaweicloudsdkdrs.v5.ShowActionsRequest`
1576
1806
  :rtype: :class:`huaweicloudsdkdrs.v5.ShowActionsResponse`
1577
1807
  """
1578
- return self._show_actions_with_http_info(request)
1808
+ http_info = self._show_actions_http_info(request)
1809
+ return self._call_api(**http_info)
1810
+
1811
+ def show_actions_invoker(self, request):
1812
+ http_info = self._show_actions_http_info(request)
1813
+ return SyncInvoker(self, http_info)
1814
+
1815
+ @classmethod
1816
+ def _show_actions_http_info(cls, 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
+ }
1579
1823
 
1580
- def _show_actions_with_http_info(self, request):
1581
1824
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
1582
1825
 
1583
1826
  cname = None
@@ -1596,9 +1839,9 @@ class DrsClient(Client):
1596
1839
 
1597
1840
  form_params = {}
1598
1841
 
1599
- body_params = None
1842
+ body = None
1600
1843
  if isinstance(request, SdkStreamRequest):
1601
- body_params = request.get_file_stream()
1844
+ body = request.get_file_stream()
1602
1845
 
1603
1846
  response_headers = []
1604
1847
 
@@ -1607,20 +1850,16 @@ class DrsClient(Client):
1607
1850
 
1608
1851
  auth_settings = []
1609
1852
 
1610
- return self.call_api(
1611
- resource_path='/v5/{project_id}/jobs/{job_id}/actions',
1612
- method='GET',
1613
- path_params=path_params,
1614
- query_params=query_params,
1615
- header_params=header_params,
1616
- body=body_params,
1617
- post_params=form_params,
1618
- cname=cname,
1619
- response_type='ShowActionsResponse',
1620
- response_headers=response_headers,
1621
- auth_settings=auth_settings,
1622
- collection_formats=collection_formats,
1623
- 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
1624
1863
 
1625
1864
  def show_column_info_result(self, request):
1626
1865
  """获取指定数据库表列信息
@@ -1633,9 +1872,22 @@ class DrsClient(Client):
1633
1872
  :type request: :class:`huaweicloudsdkdrs.v5.ShowColumnInfoResultRequest`
1634
1873
  :rtype: :class:`huaweicloudsdkdrs.v5.ShowColumnInfoResultResponse`
1635
1874
  """
1636
- return self._show_column_info_result_with_http_info(request)
1875
+ http_info = self._show_column_info_result_http_info(request)
1876
+ return self._call_api(**http_info)
1877
+
1878
+ def show_column_info_result_invoker(self, request):
1879
+ http_info = self._show_column_info_result_http_info(request)
1880
+ return SyncInvoker(self, http_info)
1881
+
1882
+ @classmethod
1883
+ def _show_column_info_result_http_info(cls, 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
+ }
1637
1890
 
1638
- def _show_column_info_result_with_http_info(self, request):
1639
1891
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
1640
1892
 
1641
1893
  cname = None
@@ -1660,9 +1912,9 @@ class DrsClient(Client):
1660
1912
 
1661
1913
  form_params = {}
1662
1914
 
1663
- body_params = None
1915
+ body = None
1664
1916
  if isinstance(request, SdkStreamRequest):
1665
- body_params = request.get_file_stream()
1917
+ body = request.get_file_stream()
1666
1918
 
1667
1919
  response_headers = []
1668
1920
 
@@ -1671,20 +1923,16 @@ class DrsClient(Client):
1671
1923
 
1672
1924
  auth_settings = []
1673
1925
 
1674
- return self.call_api(
1675
- resource_path='/v5/{project_id}/job/{job_id}/columns',
1676
- method='GET',
1677
- path_params=path_params,
1678
- query_params=query_params,
1679
- header_params=header_params,
1680
- body=body_params,
1681
- post_params=form_params,
1682
- cname=cname,
1683
- response_type='ShowColumnInfoResultResponse',
1684
- response_headers=response_headers,
1685
- auth_settings=auth_settings,
1686
- collection_formats=collection_formats,
1687
- 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
1688
1936
 
1689
1937
  def show_compare_policy(self, request):
1690
1938
  """查询对比策略
@@ -1697,9 +1945,22 @@ class DrsClient(Client):
1697
1945
  :type request: :class:`huaweicloudsdkdrs.v5.ShowComparePolicyRequest`
1698
1946
  :rtype: :class:`huaweicloudsdkdrs.v5.ShowComparePolicyResponse`
1699
1947
  """
1700
- return self._show_compare_policy_with_http_info(request)
1948
+ http_info = self._show_compare_policy_http_info(request)
1949
+ return self._call_api(**http_info)
1950
+
1951
+ def show_compare_policy_invoker(self, request):
1952
+ http_info = self._show_compare_policy_http_info(request)
1953
+ return SyncInvoker(self, http_info)
1954
+
1955
+ @classmethod
1956
+ def _show_compare_policy_http_info(cls, 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
+ }
1701
1963
 
1702
- def _show_compare_policy_with_http_info(self, request):
1703
1964
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
1704
1965
 
1705
1966
  cname = None
@@ -1718,9 +1979,9 @@ class DrsClient(Client):
1718
1979
 
1719
1980
  form_params = {}
1720
1981
 
1721
- body_params = None
1982
+ body = None
1722
1983
  if isinstance(request, SdkStreamRequest):
1723
- body_params = request.get_file_stream()
1984
+ body = request.get_file_stream()
1724
1985
 
1725
1986
  response_headers = []
1726
1987
 
@@ -1729,20 +1990,16 @@ class DrsClient(Client):
1729
1990
 
1730
1991
  auth_settings = []
1731
1992
 
1732
- return self.call_api(
1733
- resource_path='/v5/{project_id}/jobs/{job_id}/compare-policy',
1734
- method='GET',
1735
- path_params=path_params,
1736
- query_params=query_params,
1737
- header_params=header_params,
1738
- body=body_params,
1739
- post_params=form_params,
1740
- cname=cname,
1741
- response_type='ShowComparePolicyResponse',
1742
- response_headers=response_headers,
1743
- auth_settings=auth_settings,
1744
- collection_formats=collection_formats,
1745
- 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
1746
2003
 
1747
2004
  def show_data_filtering_result(self, request):
1748
2005
  """获取数据过滤校验结果
@@ -1755,9 +2012,22 @@ class DrsClient(Client):
1755
2012
  :type request: :class:`huaweicloudsdkdrs.v5.ShowDataFilteringResultRequest`
1756
2013
  :rtype: :class:`huaweicloudsdkdrs.v5.ShowDataFilteringResultResponse`
1757
2014
  """
1758
- return self._show_data_filtering_result_with_http_info(request)
2015
+ http_info = self._show_data_filtering_result_http_info(request)
2016
+ return self._call_api(**http_info)
2017
+
2018
+ def show_data_filtering_result_invoker(self, request):
2019
+ http_info = self._show_data_filtering_result_http_info(request)
2020
+ return SyncInvoker(self, http_info)
2021
+
2022
+ @classmethod
2023
+ def _show_data_filtering_result_http_info(cls, 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
+ }
1759
2030
 
1760
- def _show_data_filtering_result_with_http_info(self, request):
1761
2031
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
1762
2032
 
1763
2033
  cname = None
@@ -1778,9 +2048,9 @@ class DrsClient(Client):
1778
2048
 
1779
2049
  form_params = {}
1780
2050
 
1781
- body_params = None
2051
+ body = None
1782
2052
  if isinstance(request, SdkStreamRequest):
1783
- body_params = request.get_file_stream()
2053
+ body = request.get_file_stream()
1784
2054
 
1785
2055
  response_headers = []
1786
2056
 
@@ -1789,20 +2059,16 @@ class DrsClient(Client):
1789
2059
 
1790
2060
  auth_settings = []
1791
2061
 
1792
- return self.call_api(
1793
- resource_path='/v5/{project_id}/job/{job_id}/data-filtering/result',
1794
- method='GET',
1795
- path_params=path_params,
1796
- query_params=query_params,
1797
- header_params=header_params,
1798
- body=body_params,
1799
- post_params=form_params,
1800
- cname=cname,
1801
- response_type='ShowDataFilteringResultResponse',
1802
- response_headers=response_headers,
1803
- auth_settings=auth_settings,
1804
- collection_formats=collection_formats,
1805
- 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
1806
2072
 
1807
2073
  def show_data_processing_rules_result(self, request):
1808
2074
  """获取指定任务数据加工规则更新结果
@@ -1815,9 +2081,22 @@ class DrsClient(Client):
1815
2081
  :type request: :class:`huaweicloudsdkdrs.v5.ShowDataProcessingRulesResultRequest`
1816
2082
  :rtype: :class:`huaweicloudsdkdrs.v5.ShowDataProcessingRulesResultResponse`
1817
2083
  """
1818
- return self._show_data_processing_rules_result_with_http_info(request)
2084
+ http_info = self._show_data_processing_rules_result_http_info(request)
2085
+ return self._call_api(**http_info)
2086
+
2087
+ def show_data_processing_rules_result_invoker(self, request):
2088
+ http_info = self._show_data_processing_rules_result_http_info(request)
2089
+ return SyncInvoker(self, http_info)
2090
+
2091
+ @classmethod
2092
+ def _show_data_processing_rules_result_http_info(cls, 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
+ }
1819
2099
 
1820
- def _show_data_processing_rules_result_with_http_info(self, request):
1821
2100
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
1822
2101
 
1823
2102
  cname = None
@@ -1838,9 +2117,9 @@ class DrsClient(Client):
1838
2117
 
1839
2118
  form_params = {}
1840
2119
 
1841
- body_params = None
2120
+ body = None
1842
2121
  if isinstance(request, SdkStreamRequest):
1843
- body_params = request.get_file_stream()
2122
+ body = request.get_file_stream()
1844
2123
 
1845
2124
  response_headers = []
1846
2125
 
@@ -1849,20 +2128,16 @@ class DrsClient(Client):
1849
2128
 
1850
2129
  auth_settings = []
1851
2130
 
1852
- return self.call_api(
1853
- resource_path='/v5/{project_id}/jobs/{job_id}/data-processing-rules/result',
1854
- method='GET',
1855
- path_params=path_params,
1856
- query_params=query_params,
1857
- header_params=header_params,
1858
- body=body_params,
1859
- post_params=form_params,
1860
- cname=cname,
1861
- response_type='ShowDataProcessingRulesResultResponse',
1862
- response_headers=response_headers,
1863
- auth_settings=auth_settings,
1864
- collection_formats=collection_formats,
1865
- 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
1866
2141
 
1867
2142
  def show_data_progress(self, request):
1868
2143
  """查询数据加工规则
@@ -1875,9 +2150,22 @@ class DrsClient(Client):
1875
2150
  :type request: :class:`huaweicloudsdkdrs.v5.ShowDataProgressRequest`
1876
2151
  :rtype: :class:`huaweicloudsdkdrs.v5.ShowDataProgressResponse`
1877
2152
  """
1878
- return self._show_data_progress_with_http_info(request)
2153
+ http_info = self._show_data_progress_http_info(request)
2154
+ return self._call_api(**http_info)
2155
+
2156
+ def show_data_progress_invoker(self, request):
2157
+ http_info = self._show_data_progress_http_info(request)
2158
+ return SyncInvoker(self, http_info)
2159
+
2160
+ @classmethod
2161
+ def _show_data_progress_http_info(cls, 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
+ }
1879
2168
 
1880
- def _show_data_progress_with_http_info(self, request):
1881
2169
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
1882
2170
 
1883
2171
  cname = None
@@ -1900,9 +2188,9 @@ class DrsClient(Client):
1900
2188
 
1901
2189
  form_params = {}
1902
2190
 
1903
- body_params = None
2191
+ body = None
1904
2192
  if isinstance(request, SdkStreamRequest):
1905
- body_params = request.get_file_stream()
2193
+ body = request.get_file_stream()
1906
2194
 
1907
2195
  response_headers = []
1908
2196
 
@@ -1911,20 +2199,16 @@ class DrsClient(Client):
1911
2199
 
1912
2200
  auth_settings = []
1913
2201
 
1914
- return self.call_api(
1915
- resource_path='/v5/{project_id}/jobs/{job_id}/data-processing-rules',
1916
- method='GET',
1917
- path_params=path_params,
1918
- query_params=query_params,
1919
- header_params=header_params,
1920
- body=body_params,
1921
- post_params=form_params,
1922
- cname=cname,
1923
- response_type='ShowDataProgressResponse',
1924
- response_headers=response_headers,
1925
- auth_settings=auth_settings,
1926
- collection_formats=collection_formats,
1927
- 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
1928
2212
 
1929
2213
  def show_db_object_collection_status(self, request):
1930
2214
  """获取提交查询数据库对象信息的结果
@@ -1937,9 +2221,22 @@ class DrsClient(Client):
1937
2221
  :type request: :class:`huaweicloudsdkdrs.v5.ShowDbObjectCollectionStatusRequest`
1938
2222
  :rtype: :class:`huaweicloudsdkdrs.v5.ShowDbObjectCollectionStatusResponse`
1939
2223
  """
1940
- return self._show_db_object_collection_status_with_http_info(request)
2224
+ http_info = self._show_db_object_collection_status_http_info(request)
2225
+ return self._call_api(**http_info)
2226
+
2227
+ def show_db_object_collection_status_invoker(self, request):
2228
+ http_info = self._show_db_object_collection_status_http_info(request)
2229
+ return SyncInvoker(self, http_info)
2230
+
2231
+ @classmethod
2232
+ def _show_db_object_collection_status_http_info(cls, 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
+ }
1941
2239
 
1942
- def _show_db_object_collection_status_with_http_info(self, request):
1943
2240
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
1944
2241
 
1945
2242
  cname = None
@@ -1960,9 +2257,9 @@ class DrsClient(Client):
1960
2257
 
1961
2258
  form_params = {}
1962
2259
 
1963
- body_params = None
2260
+ body = None
1964
2261
  if isinstance(request, SdkStreamRequest):
1965
- body_params = request.get_file_stream()
2262
+ body = request.get_file_stream()
1966
2263
 
1967
2264
  response_headers = []
1968
2265
 
@@ -1971,20 +2268,16 @@ class DrsClient(Client):
1971
2268
 
1972
2269
  auth_settings = []
1973
2270
 
1974
- return self.call_api(
1975
- resource_path='/v5/{project_id}/jobs/{job_id}/db-objects/collection-status',
1976
- method='GET',
1977
- path_params=path_params,
1978
- query_params=query_params,
1979
- header_params=header_params,
1980
- body=body_params,
1981
- post_params=form_params,
1982
- cname=cname,
1983
- response_type='ShowDbObjectCollectionStatusResponse',
1984
- response_headers=response_headers,
1985
- auth_settings=auth_settings,
1986
- collection_formats=collection_formats,
1987
- 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
1988
2281
 
1989
2282
  def show_db_object_template_progress(self, request):
1990
2283
  """对象选择(文件导入 - 进度查询)
@@ -1997,9 +2290,22 @@ class DrsClient(Client):
1997
2290
  :type request: :class:`huaweicloudsdkdrs.v5.ShowDbObjectTemplateProgressRequest`
1998
2291
  :rtype: :class:`huaweicloudsdkdrs.v5.ShowDbObjectTemplateProgressResponse`
1999
2292
  """
2000
- return self._show_db_object_template_progress_with_http_info(request)
2293
+ http_info = self._show_db_object_template_progress_http_info(request)
2294
+ return self._call_api(**http_info)
2295
+
2296
+ def show_db_object_template_progress_invoker(self, request):
2297
+ http_info = self._show_db_object_template_progress_http_info(request)
2298
+ return SyncInvoker(self, http_info)
2299
+
2300
+ @classmethod
2301
+ def _show_db_object_template_progress_http_info(cls, 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
+ }
2001
2308
 
2002
- def _show_db_object_template_progress_with_http_info(self, request):
2003
2309
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
2004
2310
 
2005
2311
  cname = None
@@ -2022,9 +2328,9 @@ class DrsClient(Client):
2022
2328
 
2023
2329
  form_params = {}
2024
2330
 
2025
- body_params = None
2331
+ body = None
2026
2332
  if isinstance(request, SdkStreamRequest):
2027
- body_params = request.get_file_stream()
2333
+ body = request.get_file_stream()
2028
2334
 
2029
2335
  response_headers = []
2030
2336
 
@@ -2033,20 +2339,16 @@ class DrsClient(Client):
2033
2339
 
2034
2340
  auth_settings = []
2035
2341
 
2036
- return self.call_api(
2037
- resource_path='/v5/{project_id}/jobs/{job_id}/db-object/template/progress',
2038
- method='GET',
2039
- path_params=path_params,
2040
- query_params=query_params,
2041
- header_params=header_params,
2042
- body=body_params,
2043
- post_params=form_params,
2044
- cname=cname,
2045
- response_type='ShowDbObjectTemplateProgressResponse',
2046
- response_headers=response_headers,
2047
- auth_settings=auth_settings,
2048
- collection_formats=collection_formats,
2049
- 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
2050
2352
 
2051
2353
  def show_db_object_template_result(self, request):
2052
2354
  """对象选择(文件导入 - 获取导入结果)
@@ -2059,9 +2361,22 @@ class DrsClient(Client):
2059
2361
  :type request: :class:`huaweicloudsdkdrs.v5.ShowDbObjectTemplateResultRequest`
2060
2362
  :rtype: :class:`huaweicloudsdkdrs.v5.ShowDbObjectTemplateResultResponse`
2061
2363
  """
2062
- return self._show_db_object_template_result_with_http_info(request)
2364
+ http_info = self._show_db_object_template_result_http_info(request)
2365
+ return self._call_api(**http_info)
2366
+
2367
+ def show_db_object_template_result_invoker(self, request):
2368
+ http_info = self._show_db_object_template_result_http_info(request)
2369
+ return SyncInvoker(self, http_info)
2370
+
2371
+ @classmethod
2372
+ def _show_db_object_template_result_http_info(cls, 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
+ }
2063
2379
 
2064
- def _show_db_object_template_result_with_http_info(self, request):
2065
2380
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
2066
2381
 
2067
2382
  cname = None
@@ -2082,9 +2397,9 @@ class DrsClient(Client):
2082
2397
 
2083
2398
  form_params = {}
2084
2399
 
2085
- body_params = None
2400
+ body = None
2086
2401
  if isinstance(request, SdkStreamRequest):
2087
- body_params = request.get_file_stream()
2402
+ body = request.get_file_stream()
2088
2403
 
2089
2404
  response_headers = []
2090
2405
 
@@ -2093,20 +2408,16 @@ class DrsClient(Client):
2093
2408
 
2094
2409
  auth_settings = []
2095
2410
 
2096
- return self.call_api(
2097
- resource_path='/v5/{project_id}/jobs/{job_id}/db-object/template/result',
2098
- method='GET',
2099
- path_params=path_params,
2100
- query_params=query_params,
2101
- header_params=header_params,
2102
- body=body_params,
2103
- post_params=form_params,
2104
- cname=cname,
2105
- response_type='ShowDbObjectTemplateResultResponse',
2106
- response_headers=response_headers,
2107
- auth_settings=auth_settings,
2108
- collection_formats=collection_formats,
2109
- 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
2110
2421
 
2111
2422
  def show_db_objects_list(self, request):
2112
2423
  """查询数据库对象信息
@@ -2119,9 +2430,22 @@ class DrsClient(Client):
2119
2430
  :type request: :class:`huaweicloudsdkdrs.v5.ShowDbObjectsListRequest`
2120
2431
  :rtype: :class:`huaweicloudsdkdrs.v5.ShowDbObjectsListResponse`
2121
2432
  """
2122
- return self._show_db_objects_list_with_http_info(request)
2433
+ http_info = self._show_db_objects_list_http_info(request)
2434
+ return self._call_api(**http_info)
2435
+
2436
+ def show_db_objects_list_invoker(self, request):
2437
+ http_info = self._show_db_objects_list_http_info(request)
2438
+ return SyncInvoker(self, http_info)
2439
+
2440
+ @classmethod
2441
+ def _show_db_objects_list_http_info(cls, 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
+ }
2123
2448
 
2124
- def _show_db_objects_list_with_http_info(self, request):
2125
2449
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
2126
2450
 
2127
2451
  cname = None
@@ -2142,9 +2466,9 @@ class DrsClient(Client):
2142
2466
 
2143
2467
  form_params = {}
2144
2468
 
2145
- body_params = None
2469
+ body = None
2146
2470
  if isinstance(request, SdkStreamRequest):
2147
- body_params = request.get_file_stream()
2471
+ body = request.get_file_stream()
2148
2472
 
2149
2473
  response_headers = []
2150
2474
 
@@ -2153,20 +2477,16 @@ class DrsClient(Client):
2153
2477
 
2154
2478
  auth_settings = []
2155
2479
 
2156
- return self.call_api(
2157
- resource_path='/v5.1/{project_id}/jobs/{job_id}/db-object',
2158
- method='GET',
2159
- path_params=path_params,
2160
- query_params=query_params,
2161
- header_params=header_params,
2162
- body=body_params,
2163
- post_params=form_params,
2164
- cname=cname,
2165
- response_type='ShowDbObjectsListResponse',
2166
- response_headers=response_headers,
2167
- auth_settings=auth_settings,
2168
- collection_formats=collection_formats,
2169
- 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
2170
2490
 
2171
2491
  def show_dirty_data(self, request):
2172
2492
  """查询异常数据列表
@@ -2179,9 +2499,22 @@ class DrsClient(Client):
2179
2499
  :type request: :class:`huaweicloudsdkdrs.v5.ShowDirtyDataRequest`
2180
2500
  :rtype: :class:`huaweicloudsdkdrs.v5.ShowDirtyDataResponse`
2181
2501
  """
2182
- return self._show_dirty_data_with_http_info(request)
2502
+ http_info = self._show_dirty_data_http_info(request)
2503
+ return self._call_api(**http_info)
2504
+
2505
+ def show_dirty_data_invoker(self, request):
2506
+ http_info = self._show_dirty_data_http_info(request)
2507
+ return SyncInvoker(self, http_info)
2508
+
2509
+ @classmethod
2510
+ def _show_dirty_data_http_info(cls, 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
+ }
2183
2517
 
2184
- def _show_dirty_data_with_http_info(self, request):
2185
2518
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
2186
2519
 
2187
2520
  cname = None
@@ -2208,9 +2541,9 @@ class DrsClient(Client):
2208
2541
 
2209
2542
  form_params = {}
2210
2543
 
2211
- body_params = None
2544
+ body = None
2212
2545
  if isinstance(request, SdkStreamRequest):
2213
- body_params = request.get_file_stream()
2546
+ body = request.get_file_stream()
2214
2547
 
2215
2548
  response_headers = []
2216
2549
 
@@ -2219,20 +2552,16 @@ class DrsClient(Client):
2219
2552
 
2220
2553
  auth_settings = []
2221
2554
 
2222
- return self.call_api(
2223
- resource_path='/v5/{project_id}/jobs/{job_id}/dirty-data',
2224
- method='GET',
2225
- path_params=path_params,
2226
- query_params=query_params,
2227
- header_params=header_params,
2228
- body=body_params,
2229
- post_params=form_params,
2230
- cname=cname,
2231
- response_type='ShowDirtyDataResponse',
2232
- response_headers=response_headers,
2233
- auth_settings=auth_settings,
2234
- collection_formats=collection_formats,
2235
- 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
2236
2565
 
2237
2566
  def show_enterprise_project(self, request):
2238
2567
  """查询企业项目列表
@@ -2245,9 +2574,22 @@ class DrsClient(Client):
2245
2574
  :type request: :class:`huaweicloudsdkdrs.v5.ShowEnterpriseProjectRequest`
2246
2575
  :rtype: :class:`huaweicloudsdkdrs.v5.ShowEnterpriseProjectResponse`
2247
2576
  """
2248
- return self._show_enterprise_project_with_http_info(request)
2577
+ http_info = self._show_enterprise_project_http_info(request)
2578
+ return self._call_api(**http_info)
2579
+
2580
+ def show_enterprise_project_invoker(self, request):
2581
+ http_info = self._show_enterprise_project_http_info(request)
2582
+ return SyncInvoker(self, http_info)
2583
+
2584
+ @classmethod
2585
+ def _show_enterprise_project_http_info(cls, 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
+ }
2249
2592
 
2250
- def _show_enterprise_project_with_http_info(self, request):
2251
2593
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
2252
2594
 
2253
2595
  cname = None
@@ -2272,9 +2614,9 @@ class DrsClient(Client):
2272
2614
 
2273
2615
  form_params = {}
2274
2616
 
2275
- body_params = None
2617
+ body = None
2276
2618
  if isinstance(request, SdkStreamRequest):
2277
- body_params = request.get_file_stream()
2619
+ body = request.get_file_stream()
2278
2620
 
2279
2621
  response_headers = []
2280
2622
 
@@ -2283,20 +2625,16 @@ class DrsClient(Client):
2283
2625
 
2284
2626
  auth_settings = []
2285
2627
 
2286
- return self.call_api(
2287
- resource_path='/v5/{project_id}/enterprise-projects',
2288
- method='GET',
2289
- path_params=path_params,
2290
- query_params=query_params,
2291
- header_params=header_params,
2292
- body=body_params,
2293
- post_params=form_params,
2294
- cname=cname,
2295
- response_type='ShowEnterpriseProjectResponse',
2296
- response_headers=response_headers,
2297
- auth_settings=auth_settings,
2298
- collection_formats=collection_formats,
2299
- 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
2300
2638
 
2301
2639
  def show_health_compare_job_list(self, request):
2302
2640
  """查询健康对比列表
@@ -2309,9 +2647,22 @@ class DrsClient(Client):
2309
2647
  :type request: :class:`huaweicloudsdkdrs.v5.ShowHealthCompareJobListRequest`
2310
2648
  :rtype: :class:`huaweicloudsdkdrs.v5.ShowHealthCompareJobListResponse`
2311
2649
  """
2312
- return self._show_health_compare_job_list_with_http_info(request)
2650
+ http_info = self._show_health_compare_job_list_http_info(request)
2651
+ return self._call_api(**http_info)
2652
+
2653
+ def show_health_compare_job_list_invoker(self, request):
2654
+ http_info = self._show_health_compare_job_list_http_info(request)
2655
+ return SyncInvoker(self, http_info)
2656
+
2657
+ @classmethod
2658
+ def _show_health_compare_job_list_http_info(cls, 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
+ }
2313
2665
 
2314
- def _show_health_compare_job_list_with_http_info(self, request):
2315
2666
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
2316
2667
 
2317
2668
  cname = None
@@ -2336,9 +2687,9 @@ class DrsClient(Client):
2336
2687
 
2337
2688
  form_params = {}
2338
2689
 
2339
- body_params = None
2690
+ body = None
2340
2691
  if isinstance(request, SdkStreamRequest):
2341
- body_params = request.get_file_stream()
2692
+ body = request.get_file_stream()
2342
2693
 
2343
2694
  response_headers = []
2344
2695
 
@@ -2347,20 +2698,16 @@ class DrsClient(Client):
2347
2698
 
2348
2699
  auth_settings = []
2349
2700
 
2350
- return self.call_api(
2351
- resource_path='/v5/{project_id}/jobs/{job_id}/health-compare-jobs',
2352
- method='GET',
2353
- path_params=path_params,
2354
- query_params=query_params,
2355
- header_params=header_params,
2356
- body=body_params,
2357
- post_params=form_params,
2358
- cname=cname,
2359
- response_type='ShowHealthCompareJobListResponse',
2360
- response_headers=response_headers,
2361
- auth_settings=auth_settings,
2362
- collection_formats=collection_formats,
2363
- 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
2364
2711
 
2365
2712
  def show_increment_components_detail(self, request):
2366
2713
  """查询增量组件详情
@@ -2374,9 +2721,22 @@ class DrsClient(Client):
2374
2721
  :type request: :class:`huaweicloudsdkdrs.v5.ShowIncrementComponentsDetailRequest`
2375
2722
  :rtype: :class:`huaweicloudsdkdrs.v5.ShowIncrementComponentsDetailResponse`
2376
2723
  """
2377
- return self._show_increment_components_detail_with_http_info(request)
2724
+ http_info = self._show_increment_components_detail_http_info(request)
2725
+ return self._call_api(**http_info)
2726
+
2727
+ def show_increment_components_detail_invoker(self, request):
2728
+ http_info = self._show_increment_components_detail_http_info(request)
2729
+ return SyncInvoker(self, http_info)
2730
+
2731
+ @classmethod
2732
+ def _show_increment_components_detail_http_info(cls, 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
+ }
2378
2739
 
2379
- def _show_increment_components_detail_with_http_info(self, request):
2380
2740
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
2381
2741
 
2382
2742
  cname = None
@@ -2395,9 +2755,9 @@ class DrsClient(Client):
2395
2755
 
2396
2756
  form_params = {}
2397
2757
 
2398
- body_params = None
2758
+ body = None
2399
2759
  if isinstance(request, SdkStreamRequest):
2400
- body_params = request.get_file_stream()
2760
+ body = request.get_file_stream()
2401
2761
 
2402
2762
  response_headers = []
2403
2763
 
@@ -2406,20 +2766,16 @@ class DrsClient(Client):
2406
2766
 
2407
2767
  auth_settings = []
2408
2768
 
2409
- return self.call_api(
2410
- resource_path='/v5/{project_id}/jobs/{job_id}/increment-components-detail',
2411
- method='GET',
2412
- path_params=path_params,
2413
- query_params=query_params,
2414
- header_params=header_params,
2415
- body=body_params,
2416
- post_params=form_params,
2417
- cname=cname,
2418
- response_type='ShowIncrementComponentsDetailResponse',
2419
- response_headers=response_headers,
2420
- auth_settings=auth_settings,
2421
- collection_formats=collection_formats,
2422
- 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
2423
2779
 
2424
2780
  def show_instance_tags(self, request):
2425
2781
  """查询资源标签
@@ -2432,9 +2788,22 @@ class DrsClient(Client):
2432
2788
  :type request: :class:`huaweicloudsdkdrs.v5.ShowInstanceTagsRequest`
2433
2789
  :rtype: :class:`huaweicloudsdkdrs.v5.ShowInstanceTagsResponse`
2434
2790
  """
2435
- return self._show_instance_tags_with_http_info(request)
2791
+ http_info = self._show_instance_tags_http_info(request)
2792
+ return self._call_api(**http_info)
2793
+
2794
+ def show_instance_tags_invoker(self, request):
2795
+ http_info = self._show_instance_tags_http_info(request)
2796
+ return SyncInvoker(self, http_info)
2797
+
2798
+ @classmethod
2799
+ def _show_instance_tags_http_info(cls, 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
+ }
2436
2806
 
2437
- def _show_instance_tags_with_http_info(self, request):
2438
2807
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
2439
2808
 
2440
2809
  cname = None
@@ -2455,9 +2824,9 @@ class DrsClient(Client):
2455
2824
 
2456
2825
  form_params = {}
2457
2826
 
2458
- body_params = None
2827
+ body = None
2459
2828
  if isinstance(request, SdkStreamRequest):
2460
- body_params = request.get_file_stream()
2829
+ body = request.get_file_stream()
2461
2830
 
2462
2831
  response_headers = []
2463
2832
 
@@ -2466,20 +2835,16 @@ class DrsClient(Client):
2466
2835
 
2467
2836
  auth_settings = []
2468
2837
 
2469
- return self.call_api(
2470
- resource_path='/v5/{project_id}/jobs/{resource_type}/{job_id}/tags',
2471
- method='GET',
2472
- path_params=path_params,
2473
- query_params=query_params,
2474
- header_params=header_params,
2475
- body=body_params,
2476
- post_params=form_params,
2477
- cname=cname,
2478
- response_type='ShowInstanceTagsResponse',
2479
- response_headers=response_headers,
2480
- auth_settings=auth_settings,
2481
- collection_formats=collection_formats,
2482
- 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
2483
2848
 
2484
2849
  def show_job_detail(self, request):
2485
2850
  """查询任务详情
@@ -2492,9 +2857,22 @@ class DrsClient(Client):
2492
2857
  :type request: :class:`huaweicloudsdkdrs.v5.ShowJobDetailRequest`
2493
2858
  :rtype: :class:`huaweicloudsdkdrs.v5.ShowJobDetailResponse`
2494
2859
  """
2495
- return self._show_job_detail_with_http_info(request)
2860
+ http_info = self._show_job_detail_http_info(request)
2861
+ return self._call_api(**http_info)
2862
+
2863
+ def show_job_detail_invoker(self, request):
2864
+ http_info = self._show_job_detail_http_info(request)
2865
+ return SyncInvoker(self, http_info)
2866
+
2867
+ @classmethod
2868
+ def _show_job_detail_http_info(cls, 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
+ }
2496
2875
 
2497
- def _show_job_detail_with_http_info(self, request):
2498
2876
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
2499
2877
 
2500
2878
  cname = None
@@ -2535,9 +2913,9 @@ class DrsClient(Client):
2535
2913
 
2536
2914
  form_params = {}
2537
2915
 
2538
- body_params = None
2916
+ body = None
2539
2917
  if isinstance(request, SdkStreamRequest):
2540
- body_params = request.get_file_stream()
2918
+ body = request.get_file_stream()
2541
2919
 
2542
2920
  response_headers = []
2543
2921
 
@@ -2546,20 +2924,16 @@ class DrsClient(Client):
2546
2924
 
2547
2925
  auth_settings = []
2548
2926
 
2549
- return self.call_api(
2550
- resource_path='/v5/{project_id}/jobs/{job_id}',
2551
- method='GET',
2552
- path_params=path_params,
2553
- query_params=query_params,
2554
- header_params=header_params,
2555
- body=body_params,
2556
- post_params=form_params,
2557
- cname=cname,
2558
- response_type='ShowJobDetailResponse',
2559
- response_headers=response_headers,
2560
- auth_settings=auth_settings,
2561
- collection_formats=collection_formats,
2562
- 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
2563
2937
 
2564
2938
  def show_metering(self, request):
2565
2939
  """获取任务价格信息
@@ -2572,9 +2946,22 @@ class DrsClient(Client):
2572
2946
  :type request: :class:`huaweicloudsdkdrs.v5.ShowMeteringRequest`
2573
2947
  :rtype: :class:`huaweicloudsdkdrs.v5.ShowMeteringResponse`
2574
2948
  """
2575
- return self._show_metering_with_http_info(request)
2949
+ http_info = self._show_metering_http_info(request)
2950
+ return self._call_api(**http_info)
2951
+
2952
+ def show_metering_invoker(self, request):
2953
+ http_info = self._show_metering_http_info(request)
2954
+ return SyncInvoker(self, http_info)
2955
+
2956
+ @classmethod
2957
+ def _show_metering_http_info(cls, 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
+ }
2576
2964
 
2577
- def _show_metering_with_http_info(self, request):
2578
2965
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
2579
2966
 
2580
2967
  cname = None
@@ -2593,9 +2980,9 @@ class DrsClient(Client):
2593
2980
 
2594
2981
  form_params = {}
2595
2982
 
2596
- body_params = None
2983
+ body = None
2597
2984
  if isinstance(request, SdkStreamRequest):
2598
- body_params = request.get_file_stream()
2985
+ body = request.get_file_stream()
2599
2986
 
2600
2987
  response_headers = []
2601
2988
 
@@ -2604,20 +2991,16 @@ class DrsClient(Client):
2604
2991
 
2605
2992
  auth_settings = []
2606
2993
 
2607
- return self.call_api(
2608
- resource_path='/v5/{project_id}/jobs/{job_id}/metering',
2609
- method='GET',
2610
- path_params=path_params,
2611
- query_params=query_params,
2612
- header_params=header_params,
2613
- body=body_params,
2614
- post_params=form_params,
2615
- cname=cname,
2616
- response_type='ShowMeteringResponse',
2617
- response_headers=response_headers,
2618
- auth_settings=auth_settings,
2619
- collection_formats=collection_formats,
2620
- 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
2621
3004
 
2622
3005
  def show_monitor_data(self, request):
2623
3006
  """查询监控数据
@@ -2631,9 +3014,22 @@ class DrsClient(Client):
2631
3014
  :type request: :class:`huaweicloudsdkdrs.v5.ShowMonitorDataRequest`
2632
3015
  :rtype: :class:`huaweicloudsdkdrs.v5.ShowMonitorDataResponse`
2633
3016
  """
2634
- return self._show_monitor_data_with_http_info(request)
3017
+ http_info = self._show_monitor_data_http_info(request)
3018
+ return self._call_api(**http_info)
3019
+
3020
+ def show_monitor_data_invoker(self, request):
3021
+ http_info = self._show_monitor_data_http_info(request)
3022
+ return SyncInvoker(self, http_info)
3023
+
3024
+ @classmethod
3025
+ def _show_monitor_data_http_info(cls, 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
+ }
2635
3032
 
2636
- def _show_monitor_data_with_http_info(self, request):
2637
3033
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
2638
3034
 
2639
3035
  cname = None
@@ -2652,9 +3048,9 @@ class DrsClient(Client):
2652
3048
 
2653
3049
  form_params = {}
2654
3050
 
2655
- body_params = None
3051
+ body = None
2656
3052
  if isinstance(request, SdkStreamRequest):
2657
- body_params = request.get_file_stream()
3053
+ body = request.get_file_stream()
2658
3054
 
2659
3055
  response_headers = []
2660
3056
 
@@ -2663,20 +3059,16 @@ class DrsClient(Client):
2663
3059
 
2664
3060
  auth_settings = []
2665
3061
 
2666
- return self.call_api(
2667
- resource_path='/v5/{project_id}/jobs/{job_id}/monitor-data',
2668
- method='GET',
2669
- path_params=path_params,
2670
- query_params=query_params,
2671
- header_params=header_params,
2672
- body=body_params,
2673
- post_params=form_params,
2674
- cname=cname,
2675
- response_type='ShowMonitorDataResponse',
2676
- response_headers=response_headers,
2677
- auth_settings=auth_settings,
2678
- collection_formats=collection_formats,
2679
- 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
2680
3072
 
2681
3073
  def show_object_mapping(self, request):
2682
3074
  """查询同步映射列表
@@ -2689,9 +3081,22 @@ class DrsClient(Client):
2689
3081
  :type request: :class:`huaweicloudsdkdrs.v5.ShowObjectMappingRequest`
2690
3082
  :rtype: :class:`huaweicloudsdkdrs.v5.ShowObjectMappingResponse`
2691
3083
  """
2692
- return self._show_object_mapping_with_http_info(request)
3084
+ http_info = self._show_object_mapping_http_info(request)
3085
+ return self._call_api(**http_info)
3086
+
3087
+ def show_object_mapping_invoker(self, request):
3088
+ http_info = self._show_object_mapping_http_info(request)
3089
+ return SyncInvoker(self, http_info)
3090
+
3091
+ @classmethod
3092
+ def _show_object_mapping_http_info(cls, 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
+ }
2693
3099
 
2694
- def _show_object_mapping_with_http_info(self, request):
2695
3100
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
2696
3101
 
2697
3102
  cname = None
@@ -2710,11 +3115,11 @@ class DrsClient(Client):
2710
3115
 
2711
3116
  form_params = {}
2712
3117
 
2713
- body_params = None
3118
+ body = None
2714
3119
  if 'body' in local_var_params:
2715
- body_params = local_var_params['body']
3120
+ body = local_var_params['body']
2716
3121
  if isinstance(request, SdkStreamRequest):
2717
- body_params = request.get_file_stream()
3122
+ body = request.get_file_stream()
2718
3123
 
2719
3124
  response_headers = []
2720
3125
 
@@ -2723,20 +3128,16 @@ class DrsClient(Client):
2723
3128
 
2724
3129
  auth_settings = []
2725
3130
 
2726
- return self.call_api(
2727
- resource_path='/v5/{project_id}/jobs/{job_id}/object-mappings',
2728
- method='POST',
2729
- path_params=path_params,
2730
- query_params=query_params,
2731
- header_params=header_params,
2732
- body=body_params,
2733
- post_params=form_params,
2734
- cname=cname,
2735
- response_type='ShowObjectMappingResponse',
2736
- response_headers=response_headers,
2737
- auth_settings=auth_settings,
2738
- collection_formats=collection_formats,
2739
- 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
2740
3141
 
2741
3142
  def show_position_result(self, request):
2742
3143
  """获取查询数据库位点的结果
@@ -2749,9 +3150,22 @@ class DrsClient(Client):
2749
3150
  :type request: :class:`huaweicloudsdkdrs.v5.ShowPositionResultRequest`
2750
3151
  :rtype: :class:`huaweicloudsdkdrs.v5.ShowPositionResultResponse`
2751
3152
  """
2752
- return self._show_position_result_with_http_info(request)
3153
+ http_info = self._show_position_result_http_info(request)
3154
+ return self._call_api(**http_info)
3155
+
3156
+ def show_position_result_invoker(self, request):
3157
+ http_info = self._show_position_result_http_info(request)
3158
+ return SyncInvoker(self, http_info)
3159
+
3160
+ @classmethod
3161
+ def _show_position_result_http_info(cls, 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
+ }
2753
3168
 
2754
- def _show_position_result_with_http_info(self, request):
2755
3169
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
2756
3170
 
2757
3171
  cname = None
@@ -2772,9 +3186,9 @@ class DrsClient(Client):
2772
3186
 
2773
3187
  form_params = {}
2774
3188
 
2775
- body_params = None
3189
+ body = None
2776
3190
  if isinstance(request, SdkStreamRequest):
2777
- body_params = request.get_file_stream()
3191
+ body = request.get_file_stream()
2778
3192
 
2779
3193
  response_headers = []
2780
3194
 
@@ -2783,20 +3197,16 @@ class DrsClient(Client):
2783
3197
 
2784
3198
  auth_settings = []
2785
3199
 
2786
- return self.call_api(
2787
- resource_path='/v5/{project_id}/jobs/{job_id}/db-position',
2788
- method='GET',
2789
- path_params=path_params,
2790
- query_params=query_params,
2791
- header_params=header_params,
2792
- body=body_params,
2793
- post_params=form_params,
2794
- cname=cname,
2795
- response_type='ShowPositionResultResponse',
2796
- response_headers=response_headers,
2797
- auth_settings=auth_settings,
2798
- collection_formats=collection_formats,
2799
- 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
2800
3210
 
2801
3211
  def show_progress_data(self, request):
2802
3212
  """查询数据级流式对比列表
@@ -2813,9 +3223,22 @@ class DrsClient(Client):
2813
3223
  :type request: :class:`huaweicloudsdkdrs.v5.ShowProgressDataRequest`
2814
3224
  :rtype: :class:`huaweicloudsdkdrs.v5.ShowProgressDataResponse`
2815
3225
  """
2816
- return self._show_progress_data_with_http_info(request)
3226
+ http_info = self._show_progress_data_http_info(request)
3227
+ return self._call_api(**http_info)
3228
+
3229
+ def show_progress_data_invoker(self, request):
3230
+ http_info = self._show_progress_data_http_info(request)
3231
+ return SyncInvoker(self, http_info)
3232
+
3233
+ @classmethod
3234
+ def _show_progress_data_http_info(cls, 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
+ }
2817
3241
 
2818
- def _show_progress_data_with_http_info(self, request):
2819
3242
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
2820
3243
 
2821
3244
  cname = None
@@ -2840,9 +3263,9 @@ class DrsClient(Client):
2840
3263
 
2841
3264
  form_params = {}
2842
3265
 
2843
- body_params = None
3266
+ body = None
2844
3267
  if isinstance(request, SdkStreamRequest):
2845
- body_params = request.get_file_stream()
3268
+ body = request.get_file_stream()
2846
3269
 
2847
3270
  response_headers = []
2848
3271
 
@@ -2851,20 +3274,16 @@ class DrsClient(Client):
2851
3274
 
2852
3275
  auth_settings = []
2853
3276
 
2854
- return self.call_api(
2855
- resource_path='/v5/{project_id}/jobs/{job_id}/progress-data/{type}',
2856
- method='GET',
2857
- path_params=path_params,
2858
- query_params=query_params,
2859
- header_params=header_params,
2860
- body=body_params,
2861
- post_params=form_params,
2862
- cname=cname,
2863
- response_type='ShowProgressDataResponse',
2864
- response_headers=response_headers,
2865
- auth_settings=auth_settings,
2866
- collection_formats=collection_formats,
2867
- 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
2868
3287
 
2869
3288
  def show_support_object_type(self, request):
2870
3289
  """查询是否支持对象选择和列映射
@@ -2877,9 +3296,22 @@ class DrsClient(Client):
2877
3296
  :type request: :class:`huaweicloudsdkdrs.v5.ShowSupportObjectTypeRequest`
2878
3297
  :rtype: :class:`huaweicloudsdkdrs.v5.ShowSupportObjectTypeResponse`
2879
3298
  """
2880
- return self._show_support_object_type_with_http_info(request)
3299
+ http_info = self._show_support_object_type_http_info(request)
3300
+ return self._call_api(**http_info)
3301
+
3302
+ def show_support_object_type_invoker(self, request):
3303
+ http_info = self._show_support_object_type_http_info(request)
3304
+ return SyncInvoker(self, http_info)
3305
+
3306
+ @classmethod
3307
+ def _show_support_object_type_http_info(cls, 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
+ }
2881
3314
 
2882
- def _show_support_object_type_with_http_info(self, request):
2883
3315
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
2884
3316
 
2885
3317
  cname = None
@@ -2898,9 +3330,9 @@ class DrsClient(Client):
2898
3330
 
2899
3331
  form_params = {}
2900
3332
 
2901
- body_params = None
3333
+ body = None
2902
3334
  if isinstance(request, SdkStreamRequest):
2903
- body_params = request.get_file_stream()
3335
+ body = request.get_file_stream()
2904
3336
 
2905
3337
  response_headers = []
2906
3338
 
@@ -2909,20 +3341,16 @@ class DrsClient(Client):
2909
3341
 
2910
3342
  auth_settings = []
2911
3343
 
2912
- return self.call_api(
2913
- resource_path='/v5/{project_id}/jobs/{job_id}/object/support',
2914
- method='GET',
2915
- path_params=path_params,
2916
- query_params=query_params,
2917
- header_params=header_params,
2918
- body=body_params,
2919
- post_params=form_params,
2920
- cname=cname,
2921
- response_type='ShowSupportObjectTypeResponse',
2922
- response_headers=response_headers,
2923
- auth_settings=auth_settings,
2924
- collection_formats=collection_formats,
2925
- 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
2926
3354
 
2927
3355
  def show_update_object_saving_status(self, request):
2928
3356
  """获取对象保存进度
@@ -2935,9 +3363,22 @@ class DrsClient(Client):
2935
3363
  :type request: :class:`huaweicloudsdkdrs.v5.ShowUpdateObjectSavingStatusRequest`
2936
3364
  :rtype: :class:`huaweicloudsdkdrs.v5.ShowUpdateObjectSavingStatusResponse`
2937
3365
  """
2938
- return self._show_update_object_saving_status_with_http_info(request)
3366
+ http_info = self._show_update_object_saving_status_http_info(request)
3367
+ return self._call_api(**http_info)
3368
+
3369
+ def show_update_object_saving_status_invoker(self, request):
3370
+ http_info = self._show_update_object_saving_status_http_info(request)
3371
+ return SyncInvoker(self, http_info)
3372
+
3373
+ @classmethod
3374
+ def _show_update_object_saving_status_http_info(cls, 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
+ }
2939
3381
 
2940
- def _show_update_object_saving_status_with_http_info(self, request):
2941
3382
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
2942
3383
 
2943
3384
  cname = None
@@ -2958,9 +3399,9 @@ class DrsClient(Client):
2958
3399
 
2959
3400
  form_params = {}
2960
3401
 
2961
- body_params = None
3402
+ body = None
2962
3403
  if isinstance(request, SdkStreamRequest):
2963
- body_params = request.get_file_stream()
3404
+ body = request.get_file_stream()
2964
3405
 
2965
3406
  response_headers = []
2966
3407
 
@@ -2969,20 +3410,16 @@ class DrsClient(Client):
2969
3410
 
2970
3411
  auth_settings = []
2971
3412
 
2972
- return self.call_api(
2973
- resource_path='/v5/{project_id}/jobs/{job_id}/db-objects/saving-status',
2974
- method='GET',
2975
- path_params=path_params,
2976
- query_params=query_params,
2977
- header_params=header_params,
2978
- body=body_params,
2979
- post_params=form_params,
2980
- cname=cname,
2981
- response_type='ShowUpdateObjectSavingStatusResponse',
2982
- response_headers=response_headers,
2983
- auth_settings=auth_settings,
2984
- collection_formats=collection_formats,
2985
- 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
2986
3423
 
2987
3424
  def stop_job_action(self, request):
2988
3425
  """结束任务
@@ -2995,9 +3432,22 @@ class DrsClient(Client):
2995
3432
  :type request: :class:`huaweicloudsdkdrs.v5.StopJobActionRequest`
2996
3433
  :rtype: :class:`huaweicloudsdkdrs.v5.StopJobActionResponse`
2997
3434
  """
2998
- return self._stop_job_action_with_http_info(request)
3435
+ http_info = self._stop_job_action_http_info(request)
3436
+ return self._call_api(**http_info)
3437
+
3438
+ def stop_job_action_invoker(self, request):
3439
+ http_info = self._stop_job_action_http_info(request)
3440
+ return SyncInvoker(self, http_info)
3441
+
3442
+ @classmethod
3443
+ def _stop_job_action_http_info(cls, 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
+ }
2999
3450
 
3000
- def _stop_job_action_with_http_info(self, request):
3001
3451
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
3002
3452
 
3003
3453
  cname = None
@@ -3016,11 +3466,11 @@ class DrsClient(Client):
3016
3466
 
3017
3467
  form_params = {}
3018
3468
 
3019
- body_params = None
3469
+ body = None
3020
3470
  if 'body' in local_var_params:
3021
- body_params = local_var_params['body']
3471
+ body = local_var_params['body']
3022
3472
  if isinstance(request, SdkStreamRequest):
3023
- body_params = request.get_file_stream()
3473
+ body = request.get_file_stream()
3024
3474
 
3025
3475
  response_headers = []
3026
3476
 
@@ -3029,20 +3479,16 @@ class DrsClient(Client):
3029
3479
 
3030
3480
  auth_settings = []
3031
3481
 
3032
- return self.call_api(
3033
- resource_path='/v5/{project_id}/jobs/{job_id}/stop',
3034
- method='POST',
3035
- path_params=path_params,
3036
- query_params=query_params,
3037
- header_params=header_params,
3038
- body=body_params,
3039
- post_params=form_params,
3040
- cname=cname,
3041
- response_type='StopJobActionResponse',
3042
- response_headers=response_headers,
3043
- auth_settings=auth_settings,
3044
- collection_formats=collection_formats,
3045
- 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
3046
3492
 
3047
3493
  def update_batch_async_jobs(self, request):
3048
3494
  """更新指定ID批量异步任务详情
@@ -3055,9 +3501,22 @@ class DrsClient(Client):
3055
3501
  :type request: :class:`huaweicloudsdkdrs.v5.UpdateBatchAsyncJobsRequest`
3056
3502
  :rtype: :class:`huaweicloudsdkdrs.v5.UpdateBatchAsyncJobsResponse`
3057
3503
  """
3058
- return self._update_batch_async_jobs_with_http_info(request)
3504
+ http_info = self._update_batch_async_jobs_http_info(request)
3505
+ return self._call_api(**http_info)
3506
+
3507
+ def update_batch_async_jobs_invoker(self, request):
3508
+ http_info = self._update_batch_async_jobs_http_info(request)
3509
+ return SyncInvoker(self, http_info)
3510
+
3511
+ @classmethod
3512
+ def _update_batch_async_jobs_http_info(cls, 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
+ }
3059
3519
 
3060
- def _update_batch_async_jobs_with_http_info(self, request):
3061
3520
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
3062
3521
 
3063
3522
  cname = None
@@ -3076,11 +3535,11 @@ class DrsClient(Client):
3076
3535
 
3077
3536
  form_params = {}
3078
3537
 
3079
- body_params = None
3538
+ body = None
3080
3539
  if 'body' in local_var_params:
3081
- body_params = local_var_params['body']
3540
+ body = local_var_params['body']
3082
3541
  if isinstance(request, SdkStreamRequest):
3083
- body_params = request.get_file_stream()
3542
+ body = request.get_file_stream()
3084
3543
 
3085
3544
  response_headers = []
3086
3545
 
@@ -3089,20 +3548,16 @@ class DrsClient(Client):
3089
3548
 
3090
3549
  auth_settings = []
3091
3550
 
3092
- return self.call_api(
3093
- resource_path='/v5/{project_id}/batch-async-jobs/{async_job_id}',
3094
- method='PUT',
3095
- path_params=path_params,
3096
- query_params=query_params,
3097
- header_params=header_params,
3098
- body=body_params,
3099
- post_params=form_params,
3100
- cname=cname,
3101
- response_type='UpdateBatchAsyncJobsResponse',
3102
- response_headers=response_headers,
3103
- auth_settings=auth_settings,
3104
- collection_formats=collection_formats,
3105
- 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
3106
3561
 
3107
3562
  def update_data_progress(self, request):
3108
3563
  """更新指定任务数据加工规则
@@ -3115,9 +3570,22 @@ class DrsClient(Client):
3115
3570
  :type request: :class:`huaweicloudsdkdrs.v5.UpdateDataProgressRequest`
3116
3571
  :rtype: :class:`huaweicloudsdkdrs.v5.UpdateDataProgressResponse`
3117
3572
  """
3118
- return self._update_data_progress_with_http_info(request)
3573
+ http_info = self._update_data_progress_http_info(request)
3574
+ return self._call_api(**http_info)
3575
+
3576
+ def update_data_progress_invoker(self, request):
3577
+ http_info = self._update_data_progress_http_info(request)
3578
+ return SyncInvoker(self, http_info)
3579
+
3580
+ @classmethod
3581
+ def _update_data_progress_http_info(cls, 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
+ }
3119
3588
 
3120
- def _update_data_progress_with_http_info(self, request):
3121
3589
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
3122
3590
 
3123
3591
  cname = None
@@ -3136,11 +3604,11 @@ class DrsClient(Client):
3136
3604
 
3137
3605
  form_params = {}
3138
3606
 
3139
- body_params = None
3607
+ body = None
3140
3608
  if 'body' in local_var_params:
3141
- body_params = local_var_params['body']
3609
+ body = local_var_params['body']
3142
3610
  if isinstance(request, SdkStreamRequest):
3143
- body_params = request.get_file_stream()
3611
+ body = request.get_file_stream()
3144
3612
 
3145
3613
  response_headers = []
3146
3614
 
@@ -3149,20 +3617,16 @@ class DrsClient(Client):
3149
3617
 
3150
3618
  auth_settings = []
3151
3619
 
3152
- return self.call_api(
3153
- resource_path='/v5/{project_id}/jobs/{job_id}/data-processing-rules',
3154
- method='PUT',
3155
- path_params=path_params,
3156
- query_params=query_params,
3157
- header_params=header_params,
3158
- body=body_params,
3159
- post_params=form_params,
3160
- cname=cname,
3161
- response_type='UpdateDataProgressResponse',
3162
- response_headers=response_headers,
3163
- auth_settings=auth_settings,
3164
- collection_formats=collection_formats,
3165
- 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
3166
3630
 
3167
3631
  def update_job(self, request):
3168
3632
  """更新指定ID任务详情
@@ -3176,9 +3640,22 @@ class DrsClient(Client):
3176
3640
  :type request: :class:`huaweicloudsdkdrs.v5.UpdateJobRequest`
3177
3641
  :rtype: :class:`huaweicloudsdkdrs.v5.UpdateJobResponse`
3178
3642
  """
3179
- return self._update_job_with_http_info(request)
3643
+ http_info = self._update_job_http_info(request)
3644
+ return self._call_api(**http_info)
3645
+
3646
+ def update_job_invoker(self, request):
3647
+ http_info = self._update_job_http_info(request)
3648
+ return SyncInvoker(self, http_info)
3649
+
3650
+ @classmethod
3651
+ def _update_job_http_info(cls, 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
+ }
3180
3658
 
3181
- def _update_job_with_http_info(self, request):
3182
3659
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
3183
3660
 
3184
3661
  cname = None
@@ -3197,11 +3674,11 @@ class DrsClient(Client):
3197
3674
 
3198
3675
  form_params = {}
3199
3676
 
3200
- body_params = None
3677
+ body = None
3201
3678
  if 'body' in local_var_params:
3202
- body_params = local_var_params['body']
3679
+ body = local_var_params['body']
3203
3680
  if isinstance(request, SdkStreamRequest):
3204
- body_params = request.get_file_stream()
3681
+ body = request.get_file_stream()
3205
3682
 
3206
3683
  response_headers = []
3207
3684
 
@@ -3210,20 +3687,16 @@ class DrsClient(Client):
3210
3687
 
3211
3688
  auth_settings = []
3212
3689
 
3213
- return self.call_api(
3214
- resource_path='/v5/{project_id}/jobs/{job_id}',
3215
- method='PUT',
3216
- path_params=path_params,
3217
- query_params=query_params,
3218
- header_params=header_params,
3219
- body=body_params,
3220
- post_params=form_params,
3221
- cname=cname,
3222
- response_type='UpdateJobResponse',
3223
- response_headers=response_headers,
3224
- auth_settings=auth_settings,
3225
- collection_formats=collection_formats,
3226
- 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
3227
3700
 
3228
3701
  def update_start_position(self, request):
3229
3702
  """更新增量任务启动位点
@@ -3237,9 +3710,22 @@ class DrsClient(Client):
3237
3710
  :type request: :class:`huaweicloudsdkdrs.v5.UpdateStartPositionRequest`
3238
3711
  :rtype: :class:`huaweicloudsdkdrs.v5.UpdateStartPositionResponse`
3239
3712
  """
3240
- return self._update_start_position_with_http_info(request)
3713
+ http_info = self._update_start_position_http_info(request)
3714
+ return self._call_api(**http_info)
3715
+
3716
+ def update_start_position_invoker(self, request):
3717
+ http_info = self._update_start_position_http_info(request)
3718
+ return SyncInvoker(self, http_info)
3719
+
3720
+ @classmethod
3721
+ def _update_start_position_http_info(cls, 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
+ }
3241
3728
 
3242
- def _update_start_position_with_http_info(self, request):
3243
3729
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
3244
3730
 
3245
3731
  cname = None
@@ -3258,11 +3744,11 @@ class DrsClient(Client):
3258
3744
 
3259
3745
  form_params = {}
3260
3746
 
3261
- body_params = None
3747
+ body = None
3262
3748
  if 'body' in local_var_params:
3263
- body_params = local_var_params['body']
3749
+ body = local_var_params['body']
3264
3750
  if isinstance(request, SdkStreamRequest):
3265
- body_params = request.get_file_stream()
3751
+ body = request.get_file_stream()
3266
3752
 
3267
3753
  response_headers = []
3268
3754
 
@@ -3271,20 +3757,16 @@ class DrsClient(Client):
3271
3757
 
3272
3758
  auth_settings = []
3273
3759
 
3274
- return self.call_api(
3275
- resource_path='/v5/{project_id}/jobs/{job_id}/start-position',
3276
- method='PUT',
3277
- path_params=path_params,
3278
- query_params=query_params,
3279
- header_params=header_params,
3280
- body=body_params,
3281
- post_params=form_params,
3282
- cname=cname,
3283
- response_type='UpdateStartPositionResponse',
3284
- response_headers=response_headers,
3285
- auth_settings=auth_settings,
3286
- collection_formats=collection_formats,
3287
- 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
3288
3770
 
3289
3771
  def upload_db_object_template(self, request):
3290
3772
  """对象选择(文件导入 - 模板上传)
@@ -3297,9 +3779,22 @@ class DrsClient(Client):
3297
3779
  :type request: :class:`huaweicloudsdkdrs.v5.UploadDbObjectTemplateRequest`
3298
3780
  :rtype: :class:`huaweicloudsdkdrs.v5.UploadDbObjectTemplateResponse`
3299
3781
  """
3300
- return self._upload_db_object_template_with_http_info(request)
3782
+ http_info = self._upload_db_object_template_http_info(request)
3783
+ return self._call_api(**http_info)
3784
+
3785
+ def upload_db_object_template_invoker(self, request):
3786
+ http_info = self._upload_db_object_template_http_info(request)
3787
+ return SyncInvoker(self, http_info)
3788
+
3789
+ @classmethod
3790
+ def _upload_db_object_template_http_info(cls, 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
+ }
3301
3797
 
3302
- def _upload_db_object_template_with_http_info(self, request):
3303
3798
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
3304
3799
 
3305
3800
  cname = None
@@ -3322,11 +3817,11 @@ class DrsClient(Client):
3322
3817
  if 'file' in local_var_params:
3323
3818
  form_params['file'] = local_var_params['file']
3324
3819
 
3325
- body_params = None
3820
+ body = None
3326
3821
  if 'body' in local_var_params:
3327
- body_params = local_var_params['body']
3822
+ body = local_var_params['body']
3328
3823
  if isinstance(request, SdkStreamRequest):
3329
- body_params = request.get_file_stream()
3824
+ body = request.get_file_stream()
3330
3825
 
3331
3826
  response_headers = []
3332
3827
 
@@ -3335,20 +3830,16 @@ class DrsClient(Client):
3335
3830
 
3336
3831
  auth_settings = []
3337
3832
 
3338
- return self.call_api(
3339
- resource_path='/v5/{project_id}/jobs/{job_id}/db-object/template',
3340
- method='POST',
3341
- path_params=path_params,
3342
- query_params=query_params,
3343
- header_params=header_params,
3344
- body=body_params,
3345
- post_params=form_params,
3346
- cname=cname,
3347
- response_type='UploadDbObjectTemplateResponse',
3348
- response_headers=response_headers,
3349
- auth_settings=auth_settings,
3350
- collection_formats=collection_formats,
3351
- 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
3352
3843
 
3353
3844
  def validate_job_name(self, request):
3354
3845
  """任务名称校验
@@ -3361,9 +3852,22 @@ class DrsClient(Client):
3361
3852
  :type request: :class:`huaweicloudsdkdrs.v5.ValidateJobNameRequest`
3362
3853
  :rtype: :class:`huaweicloudsdkdrs.v5.ValidateJobNameResponse`
3363
3854
  """
3364
- return self._validate_job_name_with_http_info(request)
3855
+ http_info = self._validate_job_name_http_info(request)
3856
+ return self._call_api(**http_info)
3857
+
3858
+ def validate_job_name_invoker(self, request):
3859
+ http_info = self._validate_job_name_http_info(request)
3860
+ return SyncInvoker(self, http_info)
3861
+
3862
+ @classmethod
3863
+ def _validate_job_name_http_info(cls, 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
+ }
3365
3870
 
3366
- def _validate_job_name_with_http_info(self, request):
3367
3871
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
3368
3872
 
3369
3873
  cname = None
@@ -3380,11 +3884,11 @@ class DrsClient(Client):
3380
3884
 
3381
3885
  form_params = {}
3382
3886
 
3383
- body_params = None
3887
+ body = None
3384
3888
  if 'body' in local_var_params:
3385
- body_params = local_var_params['body']
3889
+ body = local_var_params['body']
3386
3890
  if isinstance(request, SdkStreamRequest):
3387
- body_params = request.get_file_stream()
3891
+ body = request.get_file_stream()
3388
3892
 
3389
3893
  response_headers = []
3390
3894
 
@@ -3393,20 +3897,25 @@ class DrsClient(Client):
3393
3897
 
3394
3898
  auth_settings = []
3395
3899
 
3396
- return self.call_api(
3397
- resource_path='/v5/{project_id}/jobs/name-validation',
3398
- method='POST',
3399
- path_params=path_params,
3400
- query_params=query_params,
3401
- header_params=header_params,
3402
- body=body_params,
3403
- post_params=form_params,
3404
- cname=cname,
3405
- response_type='ValidateJobNameResponse',
3406
- response_headers=response_headers,
3407
- auth_settings=auth_settings,
3408
- collection_formats=collection_formats,
3409
- 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
+ return self.do_http_request(**kwargs)
3914
+ except TypeError:
3915
+ import inspect
3916
+ params = inspect.signature(self.do_http_request).parameters
3917
+ http_info = {param_name: kwargs.get(param_name) for param_name in params if param_name in kwargs}
3918
+ return self.do_http_request(**http_info)
3410
3919
 
3411
3920
  def call_api(self, resource_path, method, path_params=None, query_params=None, header_params=None, body=None,
3412
3921
  post_params=None, cname=None, response_type=None, response_headers=None, auth_settings=None,