huaweicloudsdkdrs 3.1.65__py2.py3-none-any.whl → 3.1.67__py2.py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3,10 +3,15 @@
3
3
  from __future__ import absolute_import
4
4
 
5
5
  import importlib
6
+ import warnings
6
7
 
7
8
  from huaweicloudsdkcore.client import Client, ClientBuilder
8
9
  from huaweicloudsdkcore.utils import http_utils
9
10
  from huaweicloudsdkcore.sdk_stream_request import SdkStreamRequest
11
+ try:
12
+ from huaweicloudsdkcore.invoker.invoker import 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.v3.BatchChangeDataRequest`
39
44
  :rtype: :class:`huaweicloudsdkdrs.v3.BatchChangeDataResponse`
40
45
  """
41
- return self._batch_change_data_with_http_info(request)
46
+ http_info = self._batch_change_data_http_info(request)
47
+ return self._call_api(**http_info)
48
+
49
+ def batch_change_data_invoker(self, request):
50
+ http_info = self._batch_change_data_http_info(request)
51
+ return SyncInvoker(self, http_info)
52
+
53
+ @classmethod
54
+ def _batch_change_data_http_info(cls, request):
55
+ http_info = {
56
+ "method": "POST",
57
+ "resource_path": "/v3/{project_id}/jobs/batch-transformation",
58
+ "request_type": request.__class__.__name__,
59
+ "response_type": "BatchChangeDataResponse"
60
+ }
42
61
 
43
- def _batch_change_data_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='/v3/{project_id}/jobs/batch-transformation',
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='BatchChangeDataResponse',
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_check_jobs(self, request):
89
103
  """批量预检查
@@ -96,9 +110,22 @@ class DrsClient(Client):
96
110
  :type request: :class:`huaweicloudsdkdrs.v3.BatchCheckJobsRequest`
97
111
  :rtype: :class:`huaweicloudsdkdrs.v3.BatchCheckJobsResponse`
98
112
  """
99
- return self._batch_check_jobs_with_http_info(request)
113
+ http_info = self._batch_check_jobs_http_info(request)
114
+ return self._call_api(**http_info)
115
+
116
+ def batch_check_jobs_invoker(self, request):
117
+ http_info = self._batch_check_jobs_http_info(request)
118
+ return SyncInvoker(self, http_info)
119
+
120
+ @classmethod
121
+ def _batch_check_jobs_http_info(cls, request):
122
+ http_info = {
123
+ "method": "POST",
124
+ "resource_path": "/v3/{project_id}/jobs/batch-precheck",
125
+ "request_type": request.__class__.__name__,
126
+ "response_type": "BatchCheckJobsResponse"
127
+ }
100
128
 
101
- def _batch_check_jobs_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='/v3/{project_id}/jobs/batch-precheck',
133
- method='POST',
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='BatchCheckJobsResponse',
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_check_results(self, request):
147
170
  """批量查询预检查结果
@@ -154,9 +177,22 @@ class DrsClient(Client):
154
177
  :type request: :class:`huaweicloudsdkdrs.v3.BatchCheckResultsRequest`
155
178
  :rtype: :class:`huaweicloudsdkdrs.v3.BatchCheckResultsResponse`
156
179
  """
157
- return self._batch_check_results_with_http_info(request)
180
+ http_info = self._batch_check_results_http_info(request)
181
+ return self._call_api(**http_info)
182
+
183
+ def batch_check_results_invoker(self, request):
184
+ http_info = self._batch_check_results_http_info(request)
185
+ return SyncInvoker(self, http_info)
186
+
187
+ @classmethod
188
+ def _batch_check_results_http_info(cls, request):
189
+ http_info = {
190
+ "method": "POST",
191
+ "resource_path": "/v3/{project_id}/jobs/batch-precheck-result",
192
+ "request_type": request.__class__.__name__,
193
+ "response_type": "BatchCheckResultsResponse"
194
+ }
158
195
 
159
- def _batch_check_results_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='/v3/{project_id}/jobs/batch-precheck-result',
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='BatchCheckResultsResponse',
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_create_jobs(self, request):
205
237
  """批量创建任务
@@ -212,9 +244,22 @@ class DrsClient(Client):
212
244
  :type request: :class:`huaweicloudsdkdrs.v3.BatchCreateJobsRequest`
213
245
  :rtype: :class:`huaweicloudsdkdrs.v3.BatchCreateJobsResponse`
214
246
  """
215
- return self._batch_create_jobs_with_http_info(request)
247
+ http_info = self._batch_create_jobs_http_info(request)
248
+ return self._call_api(**http_info)
249
+
250
+ def batch_create_jobs_invoker(self, request):
251
+ http_info = self._batch_create_jobs_http_info(request)
252
+ return SyncInvoker(self, http_info)
253
+
254
+ @classmethod
255
+ def _batch_create_jobs_http_info(cls, request):
256
+ http_info = {
257
+ "method": "POST",
258
+ "resource_path": "/v3/{project_id}/jobs/batch-creation",
259
+ "request_type": request.__class__.__name__,
260
+ "response_type": "BatchCreateJobsResponse"
261
+ }
216
262
 
217
- def _batch_create_jobs_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='/v3/{project_id}/jobs/batch-creation',
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='BatchCreateJobsResponse',
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_delete_jobs(self, request):
263
304
  """批量结束任务或删除任务
@@ -270,9 +311,22 @@ class DrsClient(Client):
270
311
  :type request: :class:`huaweicloudsdkdrs.v3.BatchDeleteJobsRequest`
271
312
  :rtype: :class:`huaweicloudsdkdrs.v3.BatchDeleteJobsResponse`
272
313
  """
273
- return self._batch_delete_jobs_with_http_info(request)
314
+ http_info = self._batch_delete_jobs_http_info(request)
315
+ return self._call_api(**http_info)
316
+
317
+ def batch_delete_jobs_invoker(self, request):
318
+ http_info = self._batch_delete_jobs_http_info(request)
319
+ return SyncInvoker(self, http_info)
320
+
321
+ @classmethod
322
+ def _batch_delete_jobs_http_info(cls, request):
323
+ http_info = {
324
+ "method": "DELETE",
325
+ "resource_path": "/v3/{project_id}/jobs/batch-jobs",
326
+ "request_type": request.__class__.__name__,
327
+ "response_type": "BatchDeleteJobsResponse"
328
+ }
274
329
 
275
- def _batch_delete_jobs_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
@@ -289,11 +343,11 @@ class DrsClient(Client):
289
343
 
290
344
  form_params = {}
291
345
 
292
- body_params = None
346
+ body = None
293
347
  if 'body' in local_var_params:
294
- body_params = local_var_params['body']
348
+ body = local_var_params['body']
295
349
  if isinstance(request, SdkStreamRequest):
296
- body_params = request.get_file_stream()
350
+ body = request.get_file_stream()
297
351
 
298
352
  response_headers = []
299
353
 
@@ -302,20 +356,16 @@ class DrsClient(Client):
302
356
 
303
357
  auth_settings = []
304
358
 
305
- return self.call_api(
306
- resource_path='/v3/{project_id}/jobs/batch-jobs',
307
- method='DELETE',
308
- path_params=path_params,
309
- query_params=query_params,
310
- header_params=header_params,
311
- body=body_params,
312
- post_params=form_params,
313
- cname=cname,
314
- response_type='BatchDeleteJobsResponse',
315
- response_headers=response_headers,
316
- auth_settings=auth_settings,
317
- collection_formats=collection_formats,
318
- request_type=request.__class__.__name__)
359
+ http_info["cname"] = cname
360
+ http_info["collection_formats"] = collection_formats
361
+ http_info["path_params"] = path_params
362
+ http_info["query_params"] = query_params
363
+ http_info["header_params"] = header_params
364
+ http_info["post_params"] = form_params
365
+ http_info["body"] = body
366
+ http_info["response_headers"] = response_headers
367
+
368
+ return http_info
319
369
 
320
370
  def batch_list_job_details(self, request):
321
371
  """批量查询任务详情
@@ -328,9 +378,22 @@ class DrsClient(Client):
328
378
  :type request: :class:`huaweicloudsdkdrs.v3.BatchListJobDetailsRequest`
329
379
  :rtype: :class:`huaweicloudsdkdrs.v3.BatchListJobDetailsResponse`
330
380
  """
331
- return self._batch_list_job_details_with_http_info(request)
381
+ http_info = self._batch_list_job_details_http_info(request)
382
+ return self._call_api(**http_info)
383
+
384
+ def batch_list_job_details_invoker(self, request):
385
+ http_info = self._batch_list_job_details_http_info(request)
386
+ return SyncInvoker(self, http_info)
387
+
388
+ @classmethod
389
+ def _batch_list_job_details_http_info(cls, request):
390
+ http_info = {
391
+ "method": "POST",
392
+ "resource_path": "/v3/{project_id}/jobs/batch-detail",
393
+ "request_type": request.__class__.__name__,
394
+ "response_type": "BatchListJobDetailsResponse"
395
+ }
332
396
 
333
- def _batch_list_job_details_with_http_info(self, request):
334
397
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
335
398
 
336
399
  cname = None
@@ -347,11 +410,11 @@ class DrsClient(Client):
347
410
 
348
411
  form_params = {}
349
412
 
350
- body_params = None
413
+ body = None
351
414
  if 'body' in local_var_params:
352
- body_params = local_var_params['body']
415
+ body = local_var_params['body']
353
416
  if isinstance(request, SdkStreamRequest):
354
- body_params = request.get_file_stream()
417
+ body = request.get_file_stream()
355
418
 
356
419
  response_headers = []
357
420
 
@@ -360,20 +423,16 @@ class DrsClient(Client):
360
423
 
361
424
  auth_settings = []
362
425
 
363
- return self.call_api(
364
- resource_path='/v3/{project_id}/jobs/batch-detail',
365
- method='POST',
366
- path_params=path_params,
367
- query_params=query_params,
368
- header_params=header_params,
369
- body=body_params,
370
- post_params=form_params,
371
- cname=cname,
372
- response_type='BatchListJobDetailsResponse',
373
- response_headers=response_headers,
374
- auth_settings=auth_settings,
375
- collection_formats=collection_formats,
376
- request_type=request.__class__.__name__)
426
+ http_info["cname"] = cname
427
+ http_info["collection_formats"] = collection_formats
428
+ http_info["path_params"] = path_params
429
+ http_info["query_params"] = query_params
430
+ http_info["header_params"] = header_params
431
+ http_info["post_params"] = form_params
432
+ http_info["body"] = body
433
+ http_info["response_headers"] = response_headers
434
+
435
+ return http_info
377
436
 
378
437
  def batch_list_job_status(self, request):
379
438
  """批量查询任务状态
@@ -386,9 +445,22 @@ class DrsClient(Client):
386
445
  :type request: :class:`huaweicloudsdkdrs.v3.BatchListJobStatusRequest`
387
446
  :rtype: :class:`huaweicloudsdkdrs.v3.BatchListJobStatusResponse`
388
447
  """
389
- return self._batch_list_job_status_with_http_info(request)
448
+ http_info = self._batch_list_job_status_http_info(request)
449
+ return self._call_api(**http_info)
450
+
451
+ def batch_list_job_status_invoker(self, request):
452
+ http_info = self._batch_list_job_status_http_info(request)
453
+ return SyncInvoker(self, http_info)
454
+
455
+ @classmethod
456
+ def _batch_list_job_status_http_info(cls, request):
457
+ http_info = {
458
+ "method": "POST",
459
+ "resource_path": "/v3/{project_id}/jobs/batch-status",
460
+ "request_type": request.__class__.__name__,
461
+ "response_type": "BatchListJobStatusResponse"
462
+ }
390
463
 
391
- def _batch_list_job_status_with_http_info(self, request):
392
464
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
393
465
 
394
466
  cname = None
@@ -405,11 +477,11 @@ class DrsClient(Client):
405
477
 
406
478
  form_params = {}
407
479
 
408
- body_params = None
480
+ body = None
409
481
  if 'body' in local_var_params:
410
- body_params = local_var_params['body']
482
+ body = local_var_params['body']
411
483
  if isinstance(request, SdkStreamRequest):
412
- body_params = request.get_file_stream()
484
+ body = request.get_file_stream()
413
485
 
414
486
  response_headers = []
415
487
 
@@ -418,20 +490,16 @@ class DrsClient(Client):
418
490
 
419
491
  auth_settings = []
420
492
 
421
- return self.call_api(
422
- resource_path='/v3/{project_id}/jobs/batch-status',
423
- method='POST',
424
- path_params=path_params,
425
- query_params=query_params,
426
- header_params=header_params,
427
- body=body_params,
428
- post_params=form_params,
429
- cname=cname,
430
- response_type='BatchListJobStatusResponse',
431
- response_headers=response_headers,
432
- auth_settings=auth_settings,
433
- collection_formats=collection_formats,
434
- request_type=request.__class__.__name__)
493
+ http_info["cname"] = cname
494
+ http_info["collection_formats"] = collection_formats
495
+ http_info["path_params"] = path_params
496
+ http_info["query_params"] = query_params
497
+ http_info["header_params"] = header_params
498
+ http_info["post_params"] = form_params
499
+ http_info["body"] = body
500
+ http_info["response_headers"] = response_headers
501
+
502
+ return http_info
435
503
 
436
504
  def batch_list_progresses(self, request):
437
505
  """批量查询任务进度
@@ -444,9 +512,22 @@ class DrsClient(Client):
444
512
  :type request: :class:`huaweicloudsdkdrs.v3.BatchListProgressesRequest`
445
513
  :rtype: :class:`huaweicloudsdkdrs.v3.BatchListProgressesResponse`
446
514
  """
447
- return self._batch_list_progresses_with_http_info(request)
515
+ http_info = self._batch_list_progresses_http_info(request)
516
+ return self._call_api(**http_info)
517
+
518
+ def batch_list_progresses_invoker(self, request):
519
+ http_info = self._batch_list_progresses_http_info(request)
520
+ return SyncInvoker(self, http_info)
521
+
522
+ @classmethod
523
+ def _batch_list_progresses_http_info(cls, request):
524
+ http_info = {
525
+ "method": "POST",
526
+ "resource_path": "/v3/{project_id}/jobs/batch-progress",
527
+ "request_type": request.__class__.__name__,
528
+ "response_type": "BatchListProgressesResponse"
529
+ }
448
530
 
449
- def _batch_list_progresses_with_http_info(self, request):
450
531
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
451
532
 
452
533
  cname = None
@@ -463,11 +544,11 @@ class DrsClient(Client):
463
544
 
464
545
  form_params = {}
465
546
 
466
- body_params = None
547
+ body = None
467
548
  if 'body' in local_var_params:
468
- body_params = local_var_params['body']
549
+ body = local_var_params['body']
469
550
  if isinstance(request, SdkStreamRequest):
470
- body_params = request.get_file_stream()
551
+ body = request.get_file_stream()
471
552
 
472
553
  response_headers = []
473
554
 
@@ -476,20 +557,16 @@ class DrsClient(Client):
476
557
 
477
558
  auth_settings = []
478
559
 
479
- return self.call_api(
480
- resource_path='/v3/{project_id}/jobs/batch-progress',
481
- method='POST',
482
- path_params=path_params,
483
- query_params=query_params,
484
- header_params=header_params,
485
- body=body_params,
486
- post_params=form_params,
487
- cname=cname,
488
- response_type='BatchListProgressesResponse',
489
- response_headers=response_headers,
490
- auth_settings=auth_settings,
491
- collection_formats=collection_formats,
492
- request_type=request.__class__.__name__)
560
+ http_info["cname"] = cname
561
+ http_info["collection_formats"] = collection_formats
562
+ http_info["path_params"] = path_params
563
+ http_info["query_params"] = query_params
564
+ http_info["header_params"] = header_params
565
+ http_info["post_params"] = form_params
566
+ http_info["body"] = body
567
+ http_info["response_headers"] = response_headers
568
+
569
+ return http_info
493
570
 
494
571
  def batch_list_rpos_and_rtos(self, request):
495
572
  """批量查询RPO和RTO
@@ -502,9 +579,22 @@ class DrsClient(Client):
502
579
  :type request: :class:`huaweicloudsdkdrs.v3.BatchListRposAndRtosRequest`
503
580
  :rtype: :class:`huaweicloudsdkdrs.v3.BatchListRposAndRtosResponse`
504
581
  """
505
- return self._batch_list_rpos_and_rtos_with_http_info(request)
582
+ http_info = self._batch_list_rpos_and_rtos_http_info(request)
583
+ return self._call_api(**http_info)
584
+
585
+ def batch_list_rpos_and_rtos_invoker(self, request):
586
+ http_info = self._batch_list_rpos_and_rtos_http_info(request)
587
+ return SyncInvoker(self, http_info)
588
+
589
+ @classmethod
590
+ def _batch_list_rpos_and_rtos_http_info(cls, request):
591
+ http_info = {
592
+ "method": "POST",
593
+ "resource_path": "/v3/{project_id}/jobs/batch-rpo-and-rto",
594
+ "request_type": request.__class__.__name__,
595
+ "response_type": "BatchListRposAndRtosResponse"
596
+ }
506
597
 
507
- def _batch_list_rpos_and_rtos_with_http_info(self, request):
508
598
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
509
599
 
510
600
  cname = None
@@ -521,11 +611,11 @@ class DrsClient(Client):
521
611
 
522
612
  form_params = {}
523
613
 
524
- body_params = None
614
+ body = None
525
615
  if 'body' in local_var_params:
526
- body_params = local_var_params['body']
616
+ body = local_var_params['body']
527
617
  if isinstance(request, SdkStreamRequest):
528
- body_params = request.get_file_stream()
618
+ body = request.get_file_stream()
529
619
 
530
620
  response_headers = []
531
621
 
@@ -534,20 +624,16 @@ class DrsClient(Client):
534
624
 
535
625
  auth_settings = []
536
626
 
537
- return self.call_api(
538
- resource_path='/v3/{project_id}/jobs/batch-rpo-and-rto',
539
- method='POST',
540
- path_params=path_params,
541
- query_params=query_params,
542
- header_params=header_params,
543
- body=body_params,
544
- post_params=form_params,
545
- cname=cname,
546
- response_type='BatchListRposAndRtosResponse',
547
- response_headers=response_headers,
548
- auth_settings=auth_settings,
549
- collection_formats=collection_formats,
550
- request_type=request.__class__.__name__)
627
+ http_info["cname"] = cname
628
+ http_info["collection_formats"] = collection_formats
629
+ http_info["path_params"] = path_params
630
+ http_info["query_params"] = query_params
631
+ http_info["header_params"] = header_params
632
+ http_info["post_params"] = form_params
633
+ http_info["body"] = body
634
+ http_info["response_headers"] = response_headers
635
+
636
+ return http_info
551
637
 
552
638
  def batch_list_struct_detail(self, request):
553
639
  """批量查询灾备初始化对象详情
@@ -560,9 +646,22 @@ class DrsClient(Client):
560
646
  :type request: :class:`huaweicloudsdkdrs.v3.BatchListStructDetailRequest`
561
647
  :rtype: :class:`huaweicloudsdkdrs.v3.BatchListStructDetailResponse`
562
648
  """
563
- return self._batch_list_struct_detail_with_http_info(request)
649
+ http_info = self._batch_list_struct_detail_http_info(request)
650
+ return self._call_api(**http_info)
651
+
652
+ def batch_list_struct_detail_invoker(self, request):
653
+ http_info = self._batch_list_struct_detail_http_info(request)
654
+ return SyncInvoker(self, http_info)
655
+
656
+ @classmethod
657
+ def _batch_list_struct_detail_http_info(cls, request):
658
+ http_info = {
659
+ "method": "POST",
660
+ "resource_path": "/v3/{project_id}/jobs/{type}/batch-struct-detail",
661
+ "request_type": request.__class__.__name__,
662
+ "response_type": "BatchListStructDetailResponse"
663
+ }
564
664
 
565
- def _batch_list_struct_detail_with_http_info(self, request):
566
665
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
567
666
 
568
667
  cname = None
@@ -581,11 +680,11 @@ class DrsClient(Client):
581
680
 
582
681
  form_params = {}
583
682
 
584
- body_params = None
683
+ body = None
585
684
  if 'body' in local_var_params:
586
- body_params = local_var_params['body']
685
+ body = local_var_params['body']
587
686
  if isinstance(request, SdkStreamRequest):
588
- body_params = request.get_file_stream()
687
+ body = request.get_file_stream()
589
688
 
590
689
  response_headers = []
591
690
 
@@ -594,20 +693,16 @@ class DrsClient(Client):
594
693
 
595
694
  auth_settings = []
596
695
 
597
- return self.call_api(
598
- resource_path='/v3/{project_id}/jobs/{type}/batch-struct-detail',
599
- method='POST',
600
- path_params=path_params,
601
- query_params=query_params,
602
- header_params=header_params,
603
- body=body_params,
604
- post_params=form_params,
605
- cname=cname,
606
- response_type='BatchListStructDetailResponse',
607
- response_headers=response_headers,
608
- auth_settings=auth_settings,
609
- collection_formats=collection_formats,
610
- request_type=request.__class__.__name__)
696
+ http_info["cname"] = cname
697
+ http_info["collection_formats"] = collection_formats
698
+ http_info["path_params"] = path_params
699
+ http_info["query_params"] = query_params
700
+ http_info["header_params"] = header_params
701
+ http_info["post_params"] = form_params
702
+ http_info["body"] = body
703
+ http_info["response_headers"] = response_headers
704
+
705
+ return http_info
611
706
 
612
707
  def batch_list_struct_process(self, request):
613
708
  """批量查询灾备初始化进度
@@ -620,9 +715,22 @@ class DrsClient(Client):
620
715
  :type request: :class:`huaweicloudsdkdrs.v3.BatchListStructProcessRequest`
621
716
  :rtype: :class:`huaweicloudsdkdrs.v3.BatchListStructProcessResponse`
622
717
  """
623
- return self._batch_list_struct_process_with_http_info(request)
718
+ http_info = self._batch_list_struct_process_http_info(request)
719
+ return self._call_api(**http_info)
720
+
721
+ def batch_list_struct_process_invoker(self, request):
722
+ http_info = self._batch_list_struct_process_http_info(request)
723
+ return SyncInvoker(self, http_info)
724
+
725
+ @classmethod
726
+ def _batch_list_struct_process_http_info(cls, request):
727
+ http_info = {
728
+ "method": "POST",
729
+ "resource_path": "/v3/{project_id}/jobs/batch-struct-process",
730
+ "request_type": request.__class__.__name__,
731
+ "response_type": "BatchListStructProcessResponse"
732
+ }
624
733
 
625
- def _batch_list_struct_process_with_http_info(self, request):
626
734
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
627
735
 
628
736
  cname = None
@@ -639,11 +747,11 @@ class DrsClient(Client):
639
747
 
640
748
  form_params = {}
641
749
 
642
- body_params = None
750
+ body = None
643
751
  if 'body' in local_var_params:
644
- body_params = local_var_params['body']
752
+ body = local_var_params['body']
645
753
  if isinstance(request, SdkStreamRequest):
646
- body_params = request.get_file_stream()
754
+ body = request.get_file_stream()
647
755
 
648
756
  response_headers = []
649
757
 
@@ -652,20 +760,16 @@ class DrsClient(Client):
652
760
 
653
761
  auth_settings = []
654
762
 
655
- return self.call_api(
656
- resource_path='/v3/{project_id}/jobs/batch-struct-process',
657
- method='POST',
658
- path_params=path_params,
659
- query_params=query_params,
660
- header_params=header_params,
661
- body=body_params,
662
- post_params=form_params,
663
- cname=cname,
664
- response_type='BatchListStructProcessResponse',
665
- response_headers=response_headers,
666
- auth_settings=auth_settings,
667
- collection_formats=collection_formats,
668
- request_type=request.__class__.__name__)
763
+ http_info["cname"] = cname
764
+ http_info["collection_formats"] = collection_formats
765
+ http_info["path_params"] = path_params
766
+ http_info["query_params"] = query_params
767
+ http_info["header_params"] = header_params
768
+ http_info["post_params"] = form_params
769
+ http_info["body"] = body
770
+ http_info["response_headers"] = response_headers
771
+
772
+ return http_info
669
773
 
670
774
  def batch_reset_password(self, request):
671
775
  """批量修改源库/目标库密码
@@ -678,9 +782,22 @@ class DrsClient(Client):
678
782
  :type request: :class:`huaweicloudsdkdrs.v3.BatchResetPasswordRequest`
679
783
  :rtype: :class:`huaweicloudsdkdrs.v3.BatchResetPasswordResponse`
680
784
  """
681
- return self._batch_reset_password_with_http_info(request)
785
+ http_info = self._batch_reset_password_http_info(request)
786
+ return self._call_api(**http_info)
787
+
788
+ def batch_reset_password_invoker(self, request):
789
+ http_info = self._batch_reset_password_http_info(request)
790
+ return SyncInvoker(self, http_info)
791
+
792
+ @classmethod
793
+ def _batch_reset_password_http_info(cls, request):
794
+ http_info = {
795
+ "method": "PUT",
796
+ "resource_path": "/v3/{project_id}/jobs/batch-modify-pwd",
797
+ "request_type": request.__class__.__name__,
798
+ "response_type": "BatchResetPasswordResponse"
799
+ }
682
800
 
683
- def _batch_reset_password_with_http_info(self, request):
684
801
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
685
802
 
686
803
  cname = None
@@ -697,11 +814,11 @@ class DrsClient(Client):
697
814
 
698
815
  form_params = {}
699
816
 
700
- body_params = None
817
+ body = None
701
818
  if 'body' in local_var_params:
702
- body_params = local_var_params['body']
819
+ body = local_var_params['body']
703
820
  if isinstance(request, SdkStreamRequest):
704
- body_params = request.get_file_stream()
821
+ body = request.get_file_stream()
705
822
 
706
823
  response_headers = []
707
824
 
@@ -710,20 +827,16 @@ class DrsClient(Client):
710
827
 
711
828
  auth_settings = []
712
829
 
713
- return self.call_api(
714
- resource_path='/v3/{project_id}/jobs/batch-modify-pwd',
715
- method='PUT',
716
- path_params=path_params,
717
- query_params=query_params,
718
- header_params=header_params,
719
- body=body_params,
720
- post_params=form_params,
721
- cname=cname,
722
- response_type='BatchResetPasswordResponse',
723
- response_headers=response_headers,
724
- auth_settings=auth_settings,
725
- collection_formats=collection_formats,
726
- request_type=request.__class__.__name__)
830
+ http_info["cname"] = cname
831
+ http_info["collection_formats"] = collection_formats
832
+ http_info["path_params"] = path_params
833
+ http_info["query_params"] = query_params
834
+ http_info["header_params"] = header_params
835
+ http_info["post_params"] = form_params
836
+ http_info["body"] = body
837
+ http_info["response_headers"] = response_headers
838
+
839
+ return http_info
727
840
 
728
841
  def batch_restore_task(self, request):
729
842
  """批量续传/重试
@@ -736,9 +849,22 @@ class DrsClient(Client):
736
849
  :type request: :class:`huaweicloudsdkdrs.v3.BatchRestoreTaskRequest`
737
850
  :rtype: :class:`huaweicloudsdkdrs.v3.BatchRestoreTaskResponse`
738
851
  """
739
- return self._batch_restore_task_with_http_info(request)
852
+ http_info = self._batch_restore_task_http_info(request)
853
+ return self._call_api(**http_info)
854
+
855
+ def batch_restore_task_invoker(self, request):
856
+ http_info = self._batch_restore_task_http_info(request)
857
+ return SyncInvoker(self, http_info)
858
+
859
+ @classmethod
860
+ def _batch_restore_task_http_info(cls, request):
861
+ http_info = {
862
+ "method": "POST",
863
+ "resource_path": "/v3/{project_id}/jobs/batch-retry-task",
864
+ "request_type": request.__class__.__name__,
865
+ "response_type": "BatchRestoreTaskResponse"
866
+ }
740
867
 
741
- def _batch_restore_task_with_http_info(self, request):
742
868
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
743
869
 
744
870
  cname = None
@@ -755,11 +881,11 @@ class DrsClient(Client):
755
881
 
756
882
  form_params = {}
757
883
 
758
- body_params = None
884
+ body = None
759
885
  if 'body' in local_var_params:
760
- body_params = local_var_params['body']
886
+ body = local_var_params['body']
761
887
  if isinstance(request, SdkStreamRequest):
762
- body_params = request.get_file_stream()
888
+ body = request.get_file_stream()
763
889
 
764
890
  response_headers = []
765
891
 
@@ -768,20 +894,16 @@ class DrsClient(Client):
768
894
 
769
895
  auth_settings = []
770
896
 
771
- return self.call_api(
772
- resource_path='/v3/{project_id}/jobs/batch-retry-task',
773
- method='POST',
774
- path_params=path_params,
775
- query_params=query_params,
776
- header_params=header_params,
777
- body=body_params,
778
- post_params=form_params,
779
- cname=cname,
780
- response_type='BatchRestoreTaskResponse',
781
- response_headers=response_headers,
782
- auth_settings=auth_settings,
783
- collection_formats=collection_formats,
784
- request_type=request.__class__.__name__)
897
+ http_info["cname"] = cname
898
+ http_info["collection_formats"] = collection_formats
899
+ http_info["path_params"] = path_params
900
+ http_info["query_params"] = query_params
901
+ http_info["header_params"] = header_params
902
+ http_info["post_params"] = form_params
903
+ http_info["body"] = body
904
+ http_info["response_headers"] = response_headers
905
+
906
+ return http_info
785
907
 
786
908
  def batch_set_definer(self, request):
787
909
  """批量设置definer
@@ -796,9 +918,22 @@ class DrsClient(Client):
796
918
  :type request: :class:`huaweicloudsdkdrs.v3.BatchSetDefinerRequest`
797
919
  :rtype: :class:`huaweicloudsdkdrs.v3.BatchSetDefinerResponse`
798
920
  """
799
- return self._batch_set_definer_with_http_info(request)
921
+ http_info = self._batch_set_definer_http_info(request)
922
+ return self._call_api(**http_info)
923
+
924
+ def batch_set_definer_invoker(self, request):
925
+ http_info = self._batch_set_definer_http_info(request)
926
+ return SyncInvoker(self, http_info)
927
+
928
+ @classmethod
929
+ def _batch_set_definer_http_info(cls, request):
930
+ http_info = {
931
+ "method": "POST",
932
+ "resource_path": "/v3/{project_id}/jobs/batch-replace-definer",
933
+ "request_type": request.__class__.__name__,
934
+ "response_type": "BatchSetDefinerResponse"
935
+ }
800
936
 
801
- def _batch_set_definer_with_http_info(self, request):
802
937
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
803
938
 
804
939
  cname = None
@@ -815,11 +950,11 @@ class DrsClient(Client):
815
950
 
816
951
  form_params = {}
817
952
 
818
- body_params = None
953
+ body = None
819
954
  if 'body' in local_var_params:
820
- body_params = local_var_params['body']
955
+ body = local_var_params['body']
821
956
  if isinstance(request, SdkStreamRequest):
822
- body_params = request.get_file_stream()
957
+ body = request.get_file_stream()
823
958
 
824
959
  response_headers = []
825
960
 
@@ -828,20 +963,16 @@ class DrsClient(Client):
828
963
 
829
964
  auth_settings = []
830
965
 
831
- return self.call_api(
832
- resource_path='/v3/{project_id}/jobs/batch-replace-definer',
833
- method='POST',
834
- path_params=path_params,
835
- query_params=query_params,
836
- header_params=header_params,
837
- body=body_params,
838
- post_params=form_params,
839
- cname=cname,
840
- response_type='BatchSetDefinerResponse',
841
- response_headers=response_headers,
842
- auth_settings=auth_settings,
843
- collection_formats=collection_formats,
844
- request_type=request.__class__.__name__)
966
+ http_info["cname"] = cname
967
+ http_info["collection_formats"] = collection_formats
968
+ http_info["path_params"] = path_params
969
+ http_info["query_params"] = query_params
970
+ http_info["header_params"] = header_params
971
+ http_info["post_params"] = form_params
972
+ http_info["body"] = body
973
+ http_info["response_headers"] = response_headers
974
+
975
+ return http_info
845
976
 
846
977
  def batch_set_objects(self, request):
847
978
  """批量数据库对象选择
@@ -854,9 +985,22 @@ class DrsClient(Client):
854
985
  :type request: :class:`huaweicloudsdkdrs.v3.BatchSetObjectsRequest`
855
986
  :rtype: :class:`huaweicloudsdkdrs.v3.BatchSetObjectsResponse`
856
987
  """
857
- return self._batch_set_objects_with_http_info(request)
988
+ http_info = self._batch_set_objects_http_info(request)
989
+ return self._call_api(**http_info)
990
+
991
+ def batch_set_objects_invoker(self, request):
992
+ http_info = self._batch_set_objects_http_info(request)
993
+ return SyncInvoker(self, http_info)
994
+
995
+ @classmethod
996
+ def _batch_set_objects_http_info(cls, request):
997
+ http_info = {
998
+ "method": "PUT",
999
+ "resource_path": "/v3/{project_id}/jobs/batch-select-objects",
1000
+ "request_type": request.__class__.__name__,
1001
+ "response_type": "BatchSetObjectsResponse"
1002
+ }
858
1003
 
859
- def _batch_set_objects_with_http_info(self, request):
860
1004
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
861
1005
 
862
1006
  cname = None
@@ -873,11 +1017,11 @@ class DrsClient(Client):
873
1017
 
874
1018
  form_params = {}
875
1019
 
876
- body_params = None
1020
+ body = None
877
1021
  if 'body' in local_var_params:
878
- body_params = local_var_params['body']
1022
+ body = local_var_params['body']
879
1023
  if isinstance(request, SdkStreamRequest):
880
- body_params = request.get_file_stream()
1024
+ body = request.get_file_stream()
881
1025
 
882
1026
  response_headers = []
883
1027
 
@@ -886,20 +1030,16 @@ class DrsClient(Client):
886
1030
 
887
1031
  auth_settings = []
888
1032
 
889
- return self.call_api(
890
- resource_path='/v3/{project_id}/jobs/batch-select-objects',
891
- method='PUT',
892
- path_params=path_params,
893
- query_params=query_params,
894
- header_params=header_params,
895
- body=body_params,
896
- post_params=form_params,
897
- cname=cname,
898
- response_type='BatchSetObjectsResponse',
899
- response_headers=response_headers,
900
- auth_settings=auth_settings,
901
- collection_formats=collection_formats,
902
- request_type=request.__class__.__name__)
1033
+ http_info["cname"] = cname
1034
+ http_info["collection_formats"] = collection_formats
1035
+ http_info["path_params"] = path_params
1036
+ http_info["query_params"] = query_params
1037
+ http_info["header_params"] = header_params
1038
+ http_info["post_params"] = form_params
1039
+ http_info["body"] = body
1040
+ http_info["response_headers"] = response_headers
1041
+
1042
+ return http_info
903
1043
 
904
1044
  def batch_set_policy(self, request):
905
1045
  """批量设置同步策略
@@ -913,9 +1053,22 @@ class DrsClient(Client):
913
1053
  :type request: :class:`huaweicloudsdkdrs.v3.BatchSetPolicyRequest`
914
1054
  :rtype: :class:`huaweicloudsdkdrs.v3.BatchSetPolicyResponse`
915
1055
  """
916
- return self._batch_set_policy_with_http_info(request)
1056
+ http_info = self._batch_set_policy_http_info(request)
1057
+ return self._call_api(**http_info)
1058
+
1059
+ def batch_set_policy_invoker(self, request):
1060
+ http_info = self._batch_set_policy_http_info(request)
1061
+ return SyncInvoker(self, http_info)
1062
+
1063
+ @classmethod
1064
+ def _batch_set_policy_http_info(cls, request):
1065
+ http_info = {
1066
+ "method": "POST",
1067
+ "resource_path": "/v3/{project_id}/jobs/batch-sync-policy",
1068
+ "request_type": request.__class__.__name__,
1069
+ "response_type": "BatchSetPolicyResponse"
1070
+ }
917
1071
 
918
- def _batch_set_policy_with_http_info(self, request):
919
1072
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
920
1073
 
921
1074
  cname = None
@@ -932,11 +1085,11 @@ class DrsClient(Client):
932
1085
 
933
1086
  form_params = {}
934
1087
 
935
- body_params = None
1088
+ body = None
936
1089
  if 'body' in local_var_params:
937
- body_params = local_var_params['body']
1090
+ body = local_var_params['body']
938
1091
  if isinstance(request, SdkStreamRequest):
939
- body_params = request.get_file_stream()
1092
+ body = request.get_file_stream()
940
1093
 
941
1094
  response_headers = []
942
1095
 
@@ -945,20 +1098,16 @@ class DrsClient(Client):
945
1098
 
946
1099
  auth_settings = []
947
1100
 
948
- return self.call_api(
949
- resource_path='/v3/{project_id}/jobs/batch-sync-policy',
950
- method='POST',
951
- path_params=path_params,
952
- query_params=query_params,
953
- header_params=header_params,
954
- body=body_params,
955
- post_params=form_params,
956
- cname=cname,
957
- response_type='BatchSetPolicyResponse',
958
- response_headers=response_headers,
959
- auth_settings=auth_settings,
960
- collection_formats=collection_formats,
961
- request_type=request.__class__.__name__)
1101
+ http_info["cname"] = cname
1102
+ http_info["collection_formats"] = collection_formats
1103
+ http_info["path_params"] = path_params
1104
+ http_info["query_params"] = query_params
1105
+ http_info["header_params"] = header_params
1106
+ http_info["post_params"] = form_params
1107
+ http_info["body"] = body
1108
+ http_info["response_headers"] = response_headers
1109
+
1110
+ return http_info
962
1111
 
963
1112
  def batch_set_smn(self, request):
964
1113
  """批量配置异常通知
@@ -972,9 +1121,22 @@ class DrsClient(Client):
972
1121
  :type request: :class:`huaweicloudsdkdrs.v3.BatchSetSmnRequest`
973
1122
  :rtype: :class:`huaweicloudsdkdrs.v3.BatchSetSmnResponse`
974
1123
  """
975
- return self._batch_set_smn_with_http_info(request)
1124
+ http_info = self._batch_set_smn_http_info(request)
1125
+ return self._call_api(**http_info)
1126
+
1127
+ def batch_set_smn_invoker(self, request):
1128
+ http_info = self._batch_set_smn_http_info(request)
1129
+ return SyncInvoker(self, http_info)
1130
+
1131
+ @classmethod
1132
+ def _batch_set_smn_http_info(cls, request):
1133
+ http_info = {
1134
+ "method": "POST",
1135
+ "resource_path": "/v3/{project_id}/jobs/batch-set-smn",
1136
+ "request_type": request.__class__.__name__,
1137
+ "response_type": "BatchSetSmnResponse"
1138
+ }
976
1139
 
977
- def _batch_set_smn_with_http_info(self, request):
978
1140
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
979
1141
 
980
1142
  cname = None
@@ -991,11 +1153,11 @@ class DrsClient(Client):
991
1153
 
992
1154
  form_params = {}
993
1155
 
994
- body_params = None
1156
+ body = None
995
1157
  if 'body' in local_var_params:
996
- body_params = local_var_params['body']
1158
+ body = local_var_params['body']
997
1159
  if isinstance(request, SdkStreamRequest):
998
- body_params = request.get_file_stream()
1160
+ body = request.get_file_stream()
999
1161
 
1000
1162
  response_headers = []
1001
1163
 
@@ -1004,20 +1166,16 @@ class DrsClient(Client):
1004
1166
 
1005
1167
  auth_settings = []
1006
1168
 
1007
- return self.call_api(
1008
- resource_path='/v3/{project_id}/jobs/batch-set-smn',
1009
- method='POST',
1010
- path_params=path_params,
1011
- query_params=query_params,
1012
- header_params=header_params,
1013
- body=body_params,
1014
- post_params=form_params,
1015
- cname=cname,
1016
- response_type='BatchSetSmnResponse',
1017
- response_headers=response_headers,
1018
- auth_settings=auth_settings,
1019
- collection_formats=collection_formats,
1020
- request_type=request.__class__.__name__)
1169
+ http_info["cname"] = cname
1170
+ http_info["collection_formats"] = collection_formats
1171
+ http_info["path_params"] = path_params
1172
+ http_info["query_params"] = query_params
1173
+ http_info["header_params"] = header_params
1174
+ http_info["post_params"] = form_params
1175
+ http_info["body"] = body
1176
+ http_info["response_headers"] = response_headers
1177
+
1178
+ return http_info
1021
1179
 
1022
1180
  def batch_set_speed(self, request):
1023
1181
  """批量设置任务限速
@@ -1032,9 +1190,22 @@ class DrsClient(Client):
1032
1190
  :type request: :class:`huaweicloudsdkdrs.v3.BatchSetSpeedRequest`
1033
1191
  :rtype: :class:`huaweicloudsdkdrs.v3.BatchSetSpeedResponse`
1034
1192
  """
1035
- return self._batch_set_speed_with_http_info(request)
1193
+ http_info = self._batch_set_speed_http_info(request)
1194
+ return self._call_api(**http_info)
1195
+
1196
+ def batch_set_speed_invoker(self, request):
1197
+ http_info = self._batch_set_speed_http_info(request)
1198
+ return SyncInvoker(self, http_info)
1199
+
1200
+ @classmethod
1201
+ def _batch_set_speed_http_info(cls, request):
1202
+ http_info = {
1203
+ "method": "PUT",
1204
+ "resource_path": "/v3/{project_id}/jobs/batch-limit-speed",
1205
+ "request_type": request.__class__.__name__,
1206
+ "response_type": "BatchSetSpeedResponse"
1207
+ }
1036
1208
 
1037
- def _batch_set_speed_with_http_info(self, request):
1038
1209
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
1039
1210
 
1040
1211
  cname = None
@@ -1051,11 +1222,11 @@ class DrsClient(Client):
1051
1222
 
1052
1223
  form_params = {}
1053
1224
 
1054
- body_params = None
1225
+ body = None
1055
1226
  if 'body' in local_var_params:
1056
- body_params = local_var_params['body']
1227
+ body = local_var_params['body']
1057
1228
  if isinstance(request, SdkStreamRequest):
1058
- body_params = request.get_file_stream()
1229
+ body = request.get_file_stream()
1059
1230
 
1060
1231
  response_headers = []
1061
1232
 
@@ -1064,20 +1235,16 @@ class DrsClient(Client):
1064
1235
 
1065
1236
  auth_settings = []
1066
1237
 
1067
- return self.call_api(
1068
- resource_path='/v3/{project_id}/jobs/batch-limit-speed',
1069
- method='PUT',
1070
- path_params=path_params,
1071
- query_params=query_params,
1072
- header_params=header_params,
1073
- body=body_params,
1074
- post_params=form_params,
1075
- cname=cname,
1076
- response_type='BatchSetSpeedResponse',
1077
- response_headers=response_headers,
1078
- auth_settings=auth_settings,
1079
- collection_formats=collection_formats,
1080
- request_type=request.__class__.__name__)
1238
+ http_info["cname"] = cname
1239
+ http_info["collection_formats"] = collection_formats
1240
+ http_info["path_params"] = path_params
1241
+ http_info["query_params"] = query_params
1242
+ http_info["header_params"] = header_params
1243
+ http_info["post_params"] = form_params
1244
+ http_info["body"] = body
1245
+ http_info["response_headers"] = response_headers
1246
+
1247
+ return http_info
1081
1248
 
1082
1249
  def batch_show_params(self, request):
1083
1250
  """批量获取数据库参数
@@ -1090,9 +1257,22 @@ class DrsClient(Client):
1090
1257
  :type request: :class:`huaweicloudsdkdrs.v3.BatchShowParamsRequest`
1091
1258
  :rtype: :class:`huaweicloudsdkdrs.v3.BatchShowParamsResponse`
1092
1259
  """
1093
- return self._batch_show_params_with_http_info(request)
1260
+ http_info = self._batch_show_params_http_info(request)
1261
+ return self._call_api(**http_info)
1262
+
1263
+ def batch_show_params_invoker(self, request):
1264
+ http_info = self._batch_show_params_http_info(request)
1265
+ return SyncInvoker(self, http_info)
1266
+
1267
+ @classmethod
1268
+ def _batch_show_params_http_info(cls, request):
1269
+ http_info = {
1270
+ "method": "POST",
1271
+ "resource_path": "/v3/{project_id}/jobs/batch-get-params",
1272
+ "request_type": request.__class__.__name__,
1273
+ "response_type": "BatchShowParamsResponse"
1274
+ }
1094
1275
 
1095
- def _batch_show_params_with_http_info(self, request):
1096
1276
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
1097
1277
 
1098
1278
  cname = None
@@ -1109,11 +1289,11 @@ class DrsClient(Client):
1109
1289
 
1110
1290
  form_params = {}
1111
1291
 
1112
- body_params = None
1292
+ body = None
1113
1293
  if 'body' in local_var_params:
1114
- body_params = local_var_params['body']
1294
+ body = local_var_params['body']
1115
1295
  if isinstance(request, SdkStreamRequest):
1116
- body_params = request.get_file_stream()
1296
+ body = request.get_file_stream()
1117
1297
 
1118
1298
  response_headers = []
1119
1299
 
@@ -1122,20 +1302,16 @@ class DrsClient(Client):
1122
1302
 
1123
1303
  auth_settings = []
1124
1304
 
1125
- return self.call_api(
1126
- resource_path='/v3/{project_id}/jobs/batch-get-params',
1127
- method='POST',
1128
- path_params=path_params,
1129
- query_params=query_params,
1130
- header_params=header_params,
1131
- body=body_params,
1132
- post_params=form_params,
1133
- cname=cname,
1134
- response_type='BatchShowParamsResponse',
1135
- response_headers=response_headers,
1136
- auth_settings=auth_settings,
1137
- collection_formats=collection_formats,
1138
- request_type=request.__class__.__name__)
1305
+ http_info["cname"] = cname
1306
+ http_info["collection_formats"] = collection_formats
1307
+ http_info["path_params"] = path_params
1308
+ http_info["query_params"] = query_params
1309
+ http_info["header_params"] = header_params
1310
+ http_info["post_params"] = form_params
1311
+ http_info["body"] = body
1312
+ http_info["response_headers"] = response_headers
1313
+
1314
+ return http_info
1139
1315
 
1140
1316
  def batch_start_jobs(self, request):
1141
1317
  """批量启动任务
@@ -1148,9 +1324,22 @@ class DrsClient(Client):
1148
1324
  :type request: :class:`huaweicloudsdkdrs.v3.BatchStartJobsRequest`
1149
1325
  :rtype: :class:`huaweicloudsdkdrs.v3.BatchStartJobsResponse`
1150
1326
  """
1151
- return self._batch_start_jobs_with_http_info(request)
1327
+ http_info = self._batch_start_jobs_http_info(request)
1328
+ return self._call_api(**http_info)
1329
+
1330
+ def batch_start_jobs_invoker(self, request):
1331
+ http_info = self._batch_start_jobs_http_info(request)
1332
+ return SyncInvoker(self, http_info)
1333
+
1334
+ @classmethod
1335
+ def _batch_start_jobs_http_info(cls, request):
1336
+ http_info = {
1337
+ "method": "POST",
1338
+ "resource_path": "/v3/{project_id}/jobs/batch-starting",
1339
+ "request_type": request.__class__.__name__,
1340
+ "response_type": "BatchStartJobsResponse"
1341
+ }
1152
1342
 
1153
- def _batch_start_jobs_with_http_info(self, request):
1154
1343
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
1155
1344
 
1156
1345
  cname = None
@@ -1167,11 +1356,11 @@ class DrsClient(Client):
1167
1356
 
1168
1357
  form_params = {}
1169
1358
 
1170
- body_params = None
1359
+ body = None
1171
1360
  if 'body' in local_var_params:
1172
- body_params = local_var_params['body']
1361
+ body = local_var_params['body']
1173
1362
  if isinstance(request, SdkStreamRequest):
1174
- body_params = request.get_file_stream()
1363
+ body = request.get_file_stream()
1175
1364
 
1176
1365
  response_headers = []
1177
1366
 
@@ -1180,20 +1369,16 @@ class DrsClient(Client):
1180
1369
 
1181
1370
  auth_settings = []
1182
1371
 
1183
- return self.call_api(
1184
- resource_path='/v3/{project_id}/jobs/batch-starting',
1185
- method='POST',
1186
- path_params=path_params,
1187
- query_params=query_params,
1188
- header_params=header_params,
1189
- body=body_params,
1190
- post_params=form_params,
1191
- cname=cname,
1192
- response_type='BatchStartJobsResponse',
1193
- response_headers=response_headers,
1194
- auth_settings=auth_settings,
1195
- collection_formats=collection_formats,
1196
- request_type=request.__class__.__name__)
1372
+ http_info["cname"] = cname
1373
+ http_info["collection_formats"] = collection_formats
1374
+ http_info["path_params"] = path_params
1375
+ http_info["query_params"] = query_params
1376
+ http_info["header_params"] = header_params
1377
+ http_info["post_params"] = form_params
1378
+ http_info["body"] = body
1379
+ http_info["response_headers"] = response_headers
1380
+
1381
+ return http_info
1197
1382
 
1198
1383
  def batch_stop_jobs(self, request):
1199
1384
  """批量暂停任务
@@ -1206,9 +1391,22 @@ class DrsClient(Client):
1206
1391
  :type request: :class:`huaweicloudsdkdrs.v3.BatchStopJobsRequest`
1207
1392
  :rtype: :class:`huaweicloudsdkdrs.v3.BatchStopJobsResponse`
1208
1393
  """
1209
- return self._batch_stop_jobs_with_http_info(request)
1394
+ http_info = self._batch_stop_jobs_http_info(request)
1395
+ return self._call_api(**http_info)
1396
+
1397
+ def batch_stop_jobs_invoker(self, request):
1398
+ http_info = self._batch_stop_jobs_http_info(request)
1399
+ return SyncInvoker(self, http_info)
1400
+
1401
+ @classmethod
1402
+ def _batch_stop_jobs_http_info(cls, request):
1403
+ http_info = {
1404
+ "method": "POST",
1405
+ "resource_path": "/v3/{project_id}/jobs/batch-pause-task",
1406
+ "request_type": request.__class__.__name__,
1407
+ "response_type": "BatchStopJobsResponse"
1408
+ }
1210
1409
 
1211
- def _batch_stop_jobs_with_http_info(self, request):
1212
1410
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
1213
1411
 
1214
1412
  cname = None
@@ -1225,11 +1423,11 @@ class DrsClient(Client):
1225
1423
 
1226
1424
  form_params = {}
1227
1425
 
1228
- body_params = None
1426
+ body = None
1229
1427
  if 'body' in local_var_params:
1230
- body_params = local_var_params['body']
1428
+ body = local_var_params['body']
1231
1429
  if isinstance(request, SdkStreamRequest):
1232
- body_params = request.get_file_stream()
1430
+ body = request.get_file_stream()
1233
1431
 
1234
1432
  response_headers = []
1235
1433
 
@@ -1238,20 +1436,16 @@ class DrsClient(Client):
1238
1436
 
1239
1437
  auth_settings = []
1240
1438
 
1241
- return self.call_api(
1242
- resource_path='/v3/{project_id}/jobs/batch-pause-task',
1243
- method='POST',
1244
- path_params=path_params,
1245
- query_params=query_params,
1246
- header_params=header_params,
1247
- body=body_params,
1248
- post_params=form_params,
1249
- cname=cname,
1250
- response_type='BatchStopJobsResponse',
1251
- response_headers=response_headers,
1252
- auth_settings=auth_settings,
1253
- collection_formats=collection_formats,
1254
- request_type=request.__class__.__name__)
1439
+ http_info["cname"] = cname
1440
+ http_info["collection_formats"] = collection_formats
1441
+ http_info["path_params"] = path_params
1442
+ http_info["query_params"] = query_params
1443
+ http_info["header_params"] = header_params
1444
+ http_info["post_params"] = form_params
1445
+ http_info["body"] = body
1446
+ http_info["response_headers"] = response_headers
1447
+
1448
+ return http_info
1255
1449
 
1256
1450
  def batch_switchover(self, request):
1257
1451
  """批量主备倒换
@@ -1264,9 +1458,22 @@ class DrsClient(Client):
1264
1458
  :type request: :class:`huaweicloudsdkdrs.v3.BatchSwitchoverRequest`
1265
1459
  :rtype: :class:`huaweicloudsdkdrs.v3.BatchSwitchoverResponse`
1266
1460
  """
1267
- return self._batch_switchover_with_http_info(request)
1461
+ http_info = self._batch_switchover_http_info(request)
1462
+ return self._call_api(**http_info)
1463
+
1464
+ def batch_switchover_invoker(self, request):
1465
+ http_info = self._batch_switchover_http_info(request)
1466
+ return SyncInvoker(self, http_info)
1467
+
1468
+ @classmethod
1469
+ def _batch_switchover_http_info(cls, request):
1470
+ http_info = {
1471
+ "method": "POST",
1472
+ "resource_path": "/v3/{project_id}/jobs/batch-switchover",
1473
+ "request_type": request.__class__.__name__,
1474
+ "response_type": "BatchSwitchoverResponse"
1475
+ }
1268
1476
 
1269
- def _batch_switchover_with_http_info(self, request):
1270
1477
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
1271
1478
 
1272
1479
  cname = None
@@ -1283,11 +1490,11 @@ class DrsClient(Client):
1283
1490
 
1284
1491
  form_params = {}
1285
1492
 
1286
- body_params = None
1493
+ body = None
1287
1494
  if 'body' in local_var_params:
1288
- body_params = local_var_params['body']
1495
+ body = local_var_params['body']
1289
1496
  if isinstance(request, SdkStreamRequest):
1290
- body_params = request.get_file_stream()
1497
+ body = request.get_file_stream()
1291
1498
 
1292
1499
  response_headers = []
1293
1500
 
@@ -1296,20 +1503,16 @@ class DrsClient(Client):
1296
1503
 
1297
1504
  auth_settings = []
1298
1505
 
1299
- return self.call_api(
1300
- resource_path='/v3/{project_id}/jobs/batch-switchover',
1301
- method='POST',
1302
- path_params=path_params,
1303
- query_params=query_params,
1304
- header_params=header_params,
1305
- body=body_params,
1306
- post_params=form_params,
1307
- cname=cname,
1308
- response_type='BatchSwitchoverResponse',
1309
- response_headers=response_headers,
1310
- auth_settings=auth_settings,
1311
- collection_formats=collection_formats,
1312
- request_type=request.__class__.__name__)
1506
+ http_info["cname"] = cname
1507
+ http_info["collection_formats"] = collection_formats
1508
+ http_info["path_params"] = path_params
1509
+ http_info["query_params"] = query_params
1510
+ http_info["header_params"] = header_params
1511
+ http_info["post_params"] = form_params
1512
+ http_info["body"] = body
1513
+ http_info["response_headers"] = response_headers
1514
+
1515
+ return http_info
1313
1516
 
1314
1517
  def batch_update_job(self, request):
1315
1518
  """批量修改任务
@@ -1322,9 +1525,22 @@ class DrsClient(Client):
1322
1525
  :type request: :class:`huaweicloudsdkdrs.v3.BatchUpdateJobRequest`
1323
1526
  :rtype: :class:`huaweicloudsdkdrs.v3.BatchUpdateJobResponse`
1324
1527
  """
1325
- return self._batch_update_job_with_http_info(request)
1528
+ http_info = self._batch_update_job_http_info(request)
1529
+ return self._call_api(**http_info)
1530
+
1531
+ def batch_update_job_invoker(self, request):
1532
+ http_info = self._batch_update_job_http_info(request)
1533
+ return SyncInvoker(self, http_info)
1534
+
1535
+ @classmethod
1536
+ def _batch_update_job_http_info(cls, request):
1537
+ http_info = {
1538
+ "method": "PUT",
1539
+ "resource_path": "/v3/{project_id}/jobs/batch-modification",
1540
+ "request_type": request.__class__.__name__,
1541
+ "response_type": "BatchUpdateJobResponse"
1542
+ }
1326
1543
 
1327
- def _batch_update_job_with_http_info(self, request):
1328
1544
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
1329
1545
 
1330
1546
  cname = None
@@ -1341,11 +1557,11 @@ class DrsClient(Client):
1341
1557
 
1342
1558
  form_params = {}
1343
1559
 
1344
- body_params = None
1560
+ body = None
1345
1561
  if 'body' in local_var_params:
1346
- body_params = local_var_params['body']
1562
+ body = local_var_params['body']
1347
1563
  if isinstance(request, SdkStreamRequest):
1348
- body_params = request.get_file_stream()
1564
+ body = request.get_file_stream()
1349
1565
 
1350
1566
  response_headers = []
1351
1567
 
@@ -1354,20 +1570,16 @@ class DrsClient(Client):
1354
1570
 
1355
1571
  auth_settings = []
1356
1572
 
1357
- return self.call_api(
1358
- resource_path='/v3/{project_id}/jobs/batch-modification',
1359
- method='PUT',
1360
- path_params=path_params,
1361
- query_params=query_params,
1362
- header_params=header_params,
1363
- body=body_params,
1364
- post_params=form_params,
1365
- cname=cname,
1366
- response_type='BatchUpdateJobResponse',
1367
- response_headers=response_headers,
1368
- auth_settings=auth_settings,
1369
- collection_formats=collection_formats,
1370
- request_type=request.__class__.__name__)
1573
+ http_info["cname"] = cname
1574
+ http_info["collection_formats"] = collection_formats
1575
+ http_info["path_params"] = path_params
1576
+ http_info["query_params"] = query_params
1577
+ http_info["header_params"] = header_params
1578
+ http_info["post_params"] = form_params
1579
+ http_info["body"] = body
1580
+ http_info["response_headers"] = response_headers
1581
+
1582
+ return http_info
1371
1583
 
1372
1584
  def batch_update_user(self, request):
1373
1585
  """批量更新迁移用户信息
@@ -1380,9 +1592,22 @@ class DrsClient(Client):
1380
1592
  :type request: :class:`huaweicloudsdkdrs.v3.BatchUpdateUserRequest`
1381
1593
  :rtype: :class:`huaweicloudsdkdrs.v3.BatchUpdateUserResponse`
1382
1594
  """
1383
- return self._batch_update_user_with_http_info(request)
1595
+ http_info = self._batch_update_user_http_info(request)
1596
+ return self._call_api(**http_info)
1597
+
1598
+ def batch_update_user_invoker(self, request):
1599
+ http_info = self._batch_update_user_http_info(request)
1600
+ return SyncInvoker(self, http_info)
1601
+
1602
+ @classmethod
1603
+ def _batch_update_user_http_info(cls, request):
1604
+ http_info = {
1605
+ "method": "PUT",
1606
+ "resource_path": "/v3/{project_id}/jobs/batch-update-user",
1607
+ "request_type": request.__class__.__name__,
1608
+ "response_type": "BatchUpdateUserResponse"
1609
+ }
1384
1610
 
1385
- def _batch_update_user_with_http_info(self, request):
1386
1611
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
1387
1612
 
1388
1613
  cname = None
@@ -1399,11 +1624,11 @@ class DrsClient(Client):
1399
1624
 
1400
1625
  form_params = {}
1401
1626
 
1402
- body_params = None
1627
+ body = None
1403
1628
  if 'body' in local_var_params:
1404
- body_params = local_var_params['body']
1629
+ body = local_var_params['body']
1405
1630
  if isinstance(request, SdkStreamRequest):
1406
- body_params = request.get_file_stream()
1631
+ body = request.get_file_stream()
1407
1632
 
1408
1633
  response_headers = []
1409
1634
 
@@ -1412,20 +1637,16 @@ class DrsClient(Client):
1412
1637
 
1413
1638
  auth_settings = []
1414
1639
 
1415
- return self.call_api(
1416
- resource_path='/v3/{project_id}/jobs/batch-update-user',
1417
- method='PUT',
1418
- path_params=path_params,
1419
- query_params=query_params,
1420
- header_params=header_params,
1421
- body=body_params,
1422
- post_params=form_params,
1423
- cname=cname,
1424
- response_type='BatchUpdateUserResponse',
1425
- response_headers=response_headers,
1426
- auth_settings=auth_settings,
1427
- collection_formats=collection_formats,
1428
- request_type=request.__class__.__name__)
1640
+ http_info["cname"] = cname
1641
+ http_info["collection_formats"] = collection_formats
1642
+ http_info["path_params"] = path_params
1643
+ http_info["query_params"] = query_params
1644
+ http_info["header_params"] = header_params
1645
+ http_info["post_params"] = form_params
1646
+ http_info["body"] = body
1647
+ http_info["response_headers"] = response_headers
1648
+
1649
+ return http_info
1429
1650
 
1430
1651
  def batch_validate_clusters_connections(self, request):
1431
1652
  """批量测试连接-集群模式
@@ -1439,9 +1660,22 @@ class DrsClient(Client):
1439
1660
  :type request: :class:`huaweicloudsdkdrs.v3.BatchValidateClustersConnectionsRequest`
1440
1661
  :rtype: :class:`huaweicloudsdkdrs.v3.BatchValidateClustersConnectionsResponse`
1441
1662
  """
1442
- return self._batch_validate_clusters_connections_with_http_info(request)
1663
+ http_info = self._batch_validate_clusters_connections_http_info(request)
1664
+ return self._call_api(**http_info)
1665
+
1666
+ def batch_validate_clusters_connections_invoker(self, request):
1667
+ http_info = self._batch_validate_clusters_connections_http_info(request)
1668
+ return SyncInvoker(self, http_info)
1669
+
1670
+ @classmethod
1671
+ def _batch_validate_clusters_connections_http_info(cls, request):
1672
+ http_info = {
1673
+ "method": "POST",
1674
+ "resource_path": "/v3/{project_id}/jobs/cluster/batch-connection",
1675
+ "request_type": request.__class__.__name__,
1676
+ "response_type": "BatchValidateClustersConnectionsResponse"
1677
+ }
1443
1678
 
1444
- def _batch_validate_clusters_connections_with_http_info(self, request):
1445
1679
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
1446
1680
 
1447
1681
  cname = None
@@ -1458,11 +1692,11 @@ class DrsClient(Client):
1458
1692
 
1459
1693
  form_params = {}
1460
1694
 
1461
- body_params = None
1695
+ body = None
1462
1696
  if 'body' in local_var_params:
1463
- body_params = local_var_params['body']
1697
+ body = local_var_params['body']
1464
1698
  if isinstance(request, SdkStreamRequest):
1465
- body_params = request.get_file_stream()
1699
+ body = request.get_file_stream()
1466
1700
 
1467
1701
  response_headers = []
1468
1702
 
@@ -1471,20 +1705,16 @@ class DrsClient(Client):
1471
1705
 
1472
1706
  auth_settings = []
1473
1707
 
1474
- return self.call_api(
1475
- resource_path='/v3/{project_id}/jobs/cluster/batch-connection',
1476
- method='POST',
1477
- path_params=path_params,
1478
- query_params=query_params,
1479
- header_params=header_params,
1480
- body=body_params,
1481
- post_params=form_params,
1482
- cname=cname,
1483
- response_type='BatchValidateClustersConnectionsResponse',
1484
- response_headers=response_headers,
1485
- auth_settings=auth_settings,
1486
- collection_formats=collection_formats,
1487
- request_type=request.__class__.__name__)
1708
+ http_info["cname"] = cname
1709
+ http_info["collection_formats"] = collection_formats
1710
+ http_info["path_params"] = path_params
1711
+ http_info["query_params"] = query_params
1712
+ http_info["header_params"] = header_params
1713
+ http_info["post_params"] = form_params
1714
+ http_info["body"] = body
1715
+ http_info["response_headers"] = response_headers
1716
+
1717
+ return http_info
1488
1718
 
1489
1719
  def batch_validate_connections(self, request):
1490
1720
  """批量测试连接
@@ -1497,9 +1727,22 @@ class DrsClient(Client):
1497
1727
  :type request: :class:`huaweicloudsdkdrs.v3.BatchValidateConnectionsRequest`
1498
1728
  :rtype: :class:`huaweicloudsdkdrs.v3.BatchValidateConnectionsResponse`
1499
1729
  """
1500
- return self._batch_validate_connections_with_http_info(request)
1730
+ http_info = self._batch_validate_connections_http_info(request)
1731
+ return self._call_api(**http_info)
1732
+
1733
+ def batch_validate_connections_invoker(self, request):
1734
+ http_info = self._batch_validate_connections_http_info(request)
1735
+ return SyncInvoker(self, http_info)
1736
+
1737
+ @classmethod
1738
+ def _batch_validate_connections_http_info(cls, request):
1739
+ http_info = {
1740
+ "method": "POST",
1741
+ "resource_path": "/v3/{project_id}/jobs/batch-connection",
1742
+ "request_type": request.__class__.__name__,
1743
+ "response_type": "BatchValidateConnectionsResponse"
1744
+ }
1501
1745
 
1502
- def _batch_validate_connections_with_http_info(self, request):
1503
1746
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
1504
1747
 
1505
1748
  cname = None
@@ -1516,11 +1759,11 @@ class DrsClient(Client):
1516
1759
 
1517
1760
  form_params = {}
1518
1761
 
1519
- body_params = None
1762
+ body = None
1520
1763
  if 'body' in local_var_params:
1521
- body_params = local_var_params['body']
1764
+ body = local_var_params['body']
1522
1765
  if isinstance(request, SdkStreamRequest):
1523
- body_params = request.get_file_stream()
1766
+ body = request.get_file_stream()
1524
1767
 
1525
1768
  response_headers = []
1526
1769
 
@@ -1529,20 +1772,16 @@ class DrsClient(Client):
1529
1772
 
1530
1773
  auth_settings = []
1531
1774
 
1532
- return self.call_api(
1533
- resource_path='/v3/{project_id}/jobs/batch-connection',
1534
- method='POST',
1535
- path_params=path_params,
1536
- query_params=query_params,
1537
- header_params=header_params,
1538
- body=body_params,
1539
- post_params=form_params,
1540
- cname=cname,
1541
- response_type='BatchValidateConnectionsResponse',
1542
- response_headers=response_headers,
1543
- auth_settings=auth_settings,
1544
- collection_formats=collection_formats,
1545
- request_type=request.__class__.__name__)
1775
+ http_info["cname"] = cname
1776
+ http_info["collection_formats"] = collection_formats
1777
+ http_info["path_params"] = path_params
1778
+ http_info["query_params"] = query_params
1779
+ http_info["header_params"] = header_params
1780
+ http_info["post_params"] = form_params
1781
+ http_info["body"] = body
1782
+ http_info["response_headers"] = response_headers
1783
+
1784
+ return http_info
1546
1785
 
1547
1786
  def create_compare_task(self, request):
1548
1787
  """创建对比任务
@@ -1555,9 +1794,22 @@ class DrsClient(Client):
1555
1794
  :type request: :class:`huaweicloudsdkdrs.v3.CreateCompareTaskRequest`
1556
1795
  :rtype: :class:`huaweicloudsdkdrs.v3.CreateCompareTaskResponse`
1557
1796
  """
1558
- return self._create_compare_task_with_http_info(request)
1797
+ http_info = self._create_compare_task_http_info(request)
1798
+ return self._call_api(**http_info)
1799
+
1800
+ def create_compare_task_invoker(self, request):
1801
+ http_info = self._create_compare_task_http_info(request)
1802
+ return SyncInvoker(self, http_info)
1803
+
1804
+ @classmethod
1805
+ def _create_compare_task_http_info(cls, request):
1806
+ http_info = {
1807
+ "method": "POST",
1808
+ "resource_path": "/v3/{project_id}/jobs/create-compare-task",
1809
+ "request_type": request.__class__.__name__,
1810
+ "response_type": "CreateCompareTaskResponse"
1811
+ }
1559
1812
 
1560
- def _create_compare_task_with_http_info(self, request):
1561
1813
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
1562
1814
 
1563
1815
  cname = None
@@ -1574,11 +1826,11 @@ class DrsClient(Client):
1574
1826
 
1575
1827
  form_params = {}
1576
1828
 
1577
- body_params = None
1829
+ body = None
1578
1830
  if 'body' in local_var_params:
1579
- body_params = local_var_params['body']
1831
+ body = local_var_params['body']
1580
1832
  if isinstance(request, SdkStreamRequest):
1581
- body_params = request.get_file_stream()
1833
+ body = request.get_file_stream()
1582
1834
 
1583
1835
  response_headers = []
1584
1836
 
@@ -1587,20 +1839,16 @@ class DrsClient(Client):
1587
1839
 
1588
1840
  auth_settings = []
1589
1841
 
1590
- return self.call_api(
1591
- resource_path='/v3/{project_id}/jobs/create-compare-task',
1592
- method='POST',
1593
- path_params=path_params,
1594
- query_params=query_params,
1595
- header_params=header_params,
1596
- body=body_params,
1597
- post_params=form_params,
1598
- cname=cname,
1599
- response_type='CreateCompareTaskResponse',
1600
- response_headers=response_headers,
1601
- auth_settings=auth_settings,
1602
- collection_formats=collection_formats,
1603
- request_type=request.__class__.__name__)
1842
+ http_info["cname"] = cname
1843
+ http_info["collection_formats"] = collection_formats
1844
+ http_info["path_params"] = path_params
1845
+ http_info["query_params"] = query_params
1846
+ http_info["header_params"] = header_params
1847
+ http_info["post_params"] = form_params
1848
+ http_info["body"] = body
1849
+ http_info["response_headers"] = response_headers
1850
+
1851
+ return http_info
1604
1852
 
1605
1853
  def list_available_zone(self, request):
1606
1854
  """查询规格未售罄的可用区
@@ -1613,9 +1861,22 @@ class DrsClient(Client):
1613
1861
  :type request: :class:`huaweicloudsdkdrs.v3.ListAvailableZoneRequest`
1614
1862
  :rtype: :class:`huaweicloudsdkdrs.v3.ListAvailableZoneResponse`
1615
1863
  """
1616
- return self._list_available_zone_with_http_info(request)
1864
+ http_info = self._list_available_zone_http_info(request)
1865
+ return self._call_api(**http_info)
1866
+
1867
+ def list_available_zone_invoker(self, request):
1868
+ http_info = self._list_available_zone_http_info(request)
1869
+ return SyncInvoker(self, http_info)
1870
+
1871
+ @classmethod
1872
+ def _list_available_zone_http_info(cls, request):
1873
+ http_info = {
1874
+ "method": "POST",
1875
+ "resource_path": "/v3/{project_id}/available-zone",
1876
+ "request_type": request.__class__.__name__,
1877
+ "response_type": "ListAvailableZoneResponse"
1878
+ }
1617
1879
 
1618
- def _list_available_zone_with_http_info(self, request):
1619
1880
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
1620
1881
 
1621
1882
  cname = None
@@ -1632,11 +1893,11 @@ class DrsClient(Client):
1632
1893
 
1633
1894
  form_params = {}
1634
1895
 
1635
- body_params = None
1896
+ body = None
1636
1897
  if 'body' in local_var_params:
1637
- body_params = local_var_params['body']
1898
+ body = local_var_params['body']
1638
1899
  if isinstance(request, SdkStreamRequest):
1639
- body_params = request.get_file_stream()
1900
+ body = request.get_file_stream()
1640
1901
 
1641
1902
  response_headers = []
1642
1903
 
@@ -1645,20 +1906,16 @@ class DrsClient(Client):
1645
1906
 
1646
1907
  auth_settings = []
1647
1908
 
1648
- return self.call_api(
1649
- resource_path='/v3/{project_id}/available-zone',
1650
- method='POST',
1651
- path_params=path_params,
1652
- query_params=query_params,
1653
- header_params=header_params,
1654
- body=body_params,
1655
- post_params=form_params,
1656
- cname=cname,
1657
- response_type='ListAvailableZoneResponse',
1658
- response_headers=response_headers,
1659
- auth_settings=auth_settings,
1660
- collection_formats=collection_formats,
1661
- request_type=request.__class__.__name__)
1909
+ http_info["cname"] = cname
1910
+ http_info["collection_formats"] = collection_formats
1911
+ http_info["path_params"] = path_params
1912
+ http_info["query_params"] = query_params
1913
+ http_info["header_params"] = header_params
1914
+ http_info["post_params"] = form_params
1915
+ http_info["body"] = body
1916
+ http_info["response_headers"] = response_headers
1917
+
1918
+ return http_info
1662
1919
 
1663
1920
  def list_compare_result(self, request):
1664
1921
  """查询对比结果
@@ -1671,9 +1928,22 @@ class DrsClient(Client):
1671
1928
  :type request: :class:`huaweicloudsdkdrs.v3.ListCompareResultRequest`
1672
1929
  :rtype: :class:`huaweicloudsdkdrs.v3.ListCompareResultResponse`
1673
1930
  """
1674
- return self._list_compare_result_with_http_info(request)
1931
+ http_info = self._list_compare_result_http_info(request)
1932
+ return self._call_api(**http_info)
1933
+
1934
+ def list_compare_result_invoker(self, request):
1935
+ http_info = self._list_compare_result_http_info(request)
1936
+ return SyncInvoker(self, http_info)
1937
+
1938
+ @classmethod
1939
+ def _list_compare_result_http_info(cls, request):
1940
+ http_info = {
1941
+ "method": "POST",
1942
+ "resource_path": "/v3/{project_id}/jobs/query-compare-result",
1943
+ "request_type": request.__class__.__name__,
1944
+ "response_type": "ListCompareResultResponse"
1945
+ }
1675
1946
 
1676
- def _list_compare_result_with_http_info(self, request):
1677
1947
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
1678
1948
 
1679
1949
  cname = None
@@ -1690,11 +1960,11 @@ class DrsClient(Client):
1690
1960
 
1691
1961
  form_params = {}
1692
1962
 
1693
- body_params = None
1963
+ body = None
1694
1964
  if 'body' in local_var_params:
1695
- body_params = local_var_params['body']
1965
+ body = local_var_params['body']
1696
1966
  if isinstance(request, SdkStreamRequest):
1697
- body_params = request.get_file_stream()
1967
+ body = request.get_file_stream()
1698
1968
 
1699
1969
  response_headers = []
1700
1970
 
@@ -1703,20 +1973,16 @@ class DrsClient(Client):
1703
1973
 
1704
1974
  auth_settings = []
1705
1975
 
1706
- return self.call_api(
1707
- resource_path='/v3/{project_id}/jobs/query-compare-result',
1708
- method='POST',
1709
- path_params=path_params,
1710
- query_params=query_params,
1711
- header_params=header_params,
1712
- body=body_params,
1713
- post_params=form_params,
1714
- cname=cname,
1715
- response_type='ListCompareResultResponse',
1716
- response_headers=response_headers,
1717
- auth_settings=auth_settings,
1718
- collection_formats=collection_formats,
1719
- request_type=request.__class__.__name__)
1976
+ http_info["cname"] = cname
1977
+ http_info["collection_formats"] = collection_formats
1978
+ http_info["path_params"] = path_params
1979
+ http_info["query_params"] = query_params
1980
+ http_info["header_params"] = header_params
1981
+ http_info["post_params"] = form_params
1982
+ http_info["body"] = body
1983
+ http_info["response_headers"] = response_headers
1984
+
1985
+ return http_info
1720
1986
 
1721
1987
  def list_users(self, request):
1722
1988
  """获取源库迁移用户列表
@@ -1729,9 +1995,22 @@ class DrsClient(Client):
1729
1995
  :type request: :class:`huaweicloudsdkdrs.v3.ListUsersRequest`
1730
1996
  :rtype: :class:`huaweicloudsdkdrs.v3.ListUsersResponse`
1731
1997
  """
1732
- return self._list_users_with_http_info(request)
1998
+ http_info = self._list_users_http_info(request)
1999
+ return self._call_api(**http_info)
2000
+
2001
+ def list_users_invoker(self, request):
2002
+ http_info = self._list_users_http_info(request)
2003
+ return SyncInvoker(self, http_info)
2004
+
2005
+ @classmethod
2006
+ def _list_users_http_info(cls, request):
2007
+ http_info = {
2008
+ "method": "GET",
2009
+ "resource_path": "/v3/{project_id}/jobs/{job_id}/get-src-user",
2010
+ "request_type": request.__class__.__name__,
2011
+ "response_type": "ListUsersResponse"
2012
+ }
1733
2013
 
1734
- def _list_users_with_http_info(self, request):
1735
2014
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
1736
2015
 
1737
2016
  cname = None
@@ -1750,9 +2029,9 @@ class DrsClient(Client):
1750
2029
 
1751
2030
  form_params = {}
1752
2031
 
1753
- body_params = None
2032
+ body = None
1754
2033
  if isinstance(request, SdkStreamRequest):
1755
- body_params = request.get_file_stream()
2034
+ body = request.get_file_stream()
1756
2035
 
1757
2036
  response_headers = []
1758
2037
 
@@ -1761,20 +2040,16 @@ class DrsClient(Client):
1761
2040
 
1762
2041
  auth_settings = []
1763
2042
 
1764
- return self.call_api(
1765
- resource_path='/v3/{project_id}/jobs/{job_id}/get-src-user',
1766
- method='GET',
1767
- path_params=path_params,
1768
- query_params=query_params,
1769
- header_params=header_params,
1770
- body=body_params,
1771
- post_params=form_params,
1772
- cname=cname,
1773
- response_type='ListUsersResponse',
1774
- response_headers=response_headers,
1775
- auth_settings=auth_settings,
1776
- collection_formats=collection_formats,
1777
- request_type=request.__class__.__name__)
2043
+ http_info["cname"] = cname
2044
+ http_info["collection_formats"] = collection_formats
2045
+ http_info["path_params"] = path_params
2046
+ http_info["query_params"] = query_params
2047
+ http_info["header_params"] = header_params
2048
+ http_info["post_params"] = form_params
2049
+ http_info["body"] = body
2050
+ http_info["response_headers"] = response_headers
2051
+
2052
+ return http_info
1778
2053
 
1779
2054
  def show_job_list(self, request):
1780
2055
  """查询租户任务列表
@@ -1787,9 +2062,22 @@ class DrsClient(Client):
1787
2062
  :type request: :class:`huaweicloudsdkdrs.v3.ShowJobListRequest`
1788
2063
  :rtype: :class:`huaweicloudsdkdrs.v3.ShowJobListResponse`
1789
2064
  """
1790
- return self._show_job_list_with_http_info(request)
2065
+ http_info = self._show_job_list_http_info(request)
2066
+ return self._call_api(**http_info)
2067
+
2068
+ def show_job_list_invoker(self, request):
2069
+ http_info = self._show_job_list_http_info(request)
2070
+ return SyncInvoker(self, http_info)
2071
+
2072
+ @classmethod
2073
+ def _show_job_list_http_info(cls, request):
2074
+ http_info = {
2075
+ "method": "POST",
2076
+ "resource_path": "/v3/{project_id}/jobs",
2077
+ "request_type": request.__class__.__name__,
2078
+ "response_type": "ShowJobListResponse"
2079
+ }
1791
2080
 
1792
- def _show_job_list_with_http_info(self, request):
1793
2081
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
1794
2082
 
1795
2083
  cname = None
@@ -1806,11 +2094,11 @@ class DrsClient(Client):
1806
2094
 
1807
2095
  form_params = {}
1808
2096
 
1809
- body_params = None
2097
+ body = None
1810
2098
  if 'body' in local_var_params:
1811
- body_params = local_var_params['body']
2099
+ body = local_var_params['body']
1812
2100
  if isinstance(request, SdkStreamRequest):
1813
- body_params = request.get_file_stream()
2101
+ body = request.get_file_stream()
1814
2102
 
1815
2103
  response_headers = []
1816
2104
 
@@ -1819,20 +2107,16 @@ class DrsClient(Client):
1819
2107
 
1820
2108
  auth_settings = []
1821
2109
 
1822
- return self.call_api(
1823
- resource_path='/v3/{project_id}/jobs',
1824
- method='POST',
1825
- path_params=path_params,
1826
- query_params=query_params,
1827
- header_params=header_params,
1828
- body=body_params,
1829
- post_params=form_params,
1830
- cname=cname,
1831
- response_type='ShowJobListResponse',
1832
- response_headers=response_headers,
1833
- auth_settings=auth_settings,
1834
- collection_formats=collection_formats,
1835
- request_type=request.__class__.__name__)
2110
+ http_info["cname"] = cname
2111
+ http_info["collection_formats"] = collection_formats
2112
+ http_info["path_params"] = path_params
2113
+ http_info["query_params"] = query_params
2114
+ http_info["header_params"] = header_params
2115
+ http_info["post_params"] = form_params
2116
+ http_info["body"] = body
2117
+ http_info["response_headers"] = response_headers
2118
+
2119
+ return http_info
1836
2120
 
1837
2121
  def show_monitoring_data(self, request):
1838
2122
  """查询容灾监控数据
@@ -1845,9 +2129,22 @@ class DrsClient(Client):
1845
2129
  :type request: :class:`huaweicloudsdkdrs.v3.ShowMonitoringDataRequest`
1846
2130
  :rtype: :class:`huaweicloudsdkdrs.v3.ShowMonitoringDataResponse`
1847
2131
  """
1848
- return self._show_monitoring_data_with_http_info(request)
2132
+ http_info = self._show_monitoring_data_http_info(request)
2133
+ return self._call_api(**http_info)
2134
+
2135
+ def show_monitoring_data_invoker(self, request):
2136
+ http_info = self._show_monitoring_data_http_info(request)
2137
+ return SyncInvoker(self, http_info)
2138
+
2139
+ @classmethod
2140
+ def _show_monitoring_data_http_info(cls, request):
2141
+ http_info = {
2142
+ "method": "POST",
2143
+ "resource_path": "/v3/{project_id}/jobs/disaster-recovery-monitoring-data",
2144
+ "request_type": request.__class__.__name__,
2145
+ "response_type": "ShowMonitoringDataResponse"
2146
+ }
1849
2147
 
1850
- def _show_monitoring_data_with_http_info(self, request):
1851
2148
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
1852
2149
 
1853
2150
  cname = None
@@ -1864,11 +2161,11 @@ class DrsClient(Client):
1864
2161
 
1865
2162
  form_params = {}
1866
2163
 
1867
- body_params = None
2164
+ body = None
1868
2165
  if 'body' in local_var_params:
1869
- body_params = local_var_params['body']
2166
+ body = local_var_params['body']
1870
2167
  if isinstance(request, SdkStreamRequest):
1871
- body_params = request.get_file_stream()
2168
+ body = request.get_file_stream()
1872
2169
 
1873
2170
  response_headers = []
1874
2171
 
@@ -1877,20 +2174,16 @@ class DrsClient(Client):
1877
2174
 
1878
2175
  auth_settings = []
1879
2176
 
1880
- return self.call_api(
1881
- resource_path='/v3/{project_id}/jobs/disaster-recovery-monitoring-data',
1882
- method='POST',
1883
- path_params=path_params,
1884
- query_params=query_params,
1885
- header_params=header_params,
1886
- body=body_params,
1887
- post_params=form_params,
1888
- cname=cname,
1889
- response_type='ShowMonitoringDataResponse',
1890
- response_headers=response_headers,
1891
- auth_settings=auth_settings,
1892
- collection_formats=collection_formats,
1893
- request_type=request.__class__.__name__)
2177
+ http_info["cname"] = cname
2178
+ http_info["collection_formats"] = collection_formats
2179
+ http_info["path_params"] = path_params
2180
+ http_info["query_params"] = query_params
2181
+ http_info["header_params"] = header_params
2182
+ http_info["post_params"] = form_params
2183
+ http_info["body"] = body
2184
+ http_info["response_headers"] = response_headers
2185
+
2186
+ return http_info
1894
2187
 
1895
2188
  def show_quotas(self, request):
1896
2189
  """查询配额
@@ -1903,9 +2196,22 @@ class DrsClient(Client):
1903
2196
  :type request: :class:`huaweicloudsdkdrs.v3.ShowQuotasRequest`
1904
2197
  :rtype: :class:`huaweicloudsdkdrs.v3.ShowQuotasResponse`
1905
2198
  """
1906
- return self._show_quotas_with_http_info(request)
2199
+ http_info = self._show_quotas_http_info(request)
2200
+ return self._call_api(**http_info)
2201
+
2202
+ def show_quotas_invoker(self, request):
2203
+ http_info = self._show_quotas_http_info(request)
2204
+ return SyncInvoker(self, http_info)
2205
+
2206
+ @classmethod
2207
+ def _show_quotas_http_info(cls, request):
2208
+ http_info = {
2209
+ "method": "GET",
2210
+ "resource_path": "/v3/{project_id}/quotas",
2211
+ "request_type": request.__class__.__name__,
2212
+ "response_type": "ShowQuotasResponse"
2213
+ }
1907
2214
 
1908
- def _show_quotas_with_http_info(self, request):
1909
2215
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
1910
2216
 
1911
2217
  cname = None
@@ -1922,9 +2228,9 @@ class DrsClient(Client):
1922
2228
 
1923
2229
  form_params = {}
1924
2230
 
1925
- body_params = None
2231
+ body = None
1926
2232
  if isinstance(request, SdkStreamRequest):
1927
- body_params = request.get_file_stream()
2233
+ body = request.get_file_stream()
1928
2234
 
1929
2235
  response_headers = []
1930
2236
 
@@ -1933,20 +2239,16 @@ class DrsClient(Client):
1933
2239
 
1934
2240
  auth_settings = []
1935
2241
 
1936
- return self.call_api(
1937
- resource_path='/v3/{project_id}/quotas',
1938
- method='GET',
1939
- path_params=path_params,
1940
- query_params=query_params,
1941
- header_params=header_params,
1942
- body=body_params,
1943
- post_params=form_params,
1944
- cname=cname,
1945
- response_type='ShowQuotasResponse',
1946
- response_headers=response_headers,
1947
- auth_settings=auth_settings,
1948
- collection_formats=collection_formats,
1949
- request_type=request.__class__.__name__)
2242
+ http_info["cname"] = cname
2243
+ http_info["collection_formats"] = collection_formats
2244
+ http_info["path_params"] = path_params
2245
+ http_info["query_params"] = query_params
2246
+ http_info["header_params"] = header_params
2247
+ http_info["post_params"] = form_params
2248
+ http_info["body"] = body
2249
+ http_info["response_headers"] = response_headers
2250
+
2251
+ return http_info
1950
2252
 
1951
2253
  def update_params(self, request):
1952
2254
  """修改数据库参数
@@ -1959,9 +2261,22 @@ class DrsClient(Client):
1959
2261
  :type request: :class:`huaweicloudsdkdrs.v3.UpdateParamsRequest`
1960
2262
  :rtype: :class:`huaweicloudsdkdrs.v3.UpdateParamsResponse`
1961
2263
  """
1962
- return self._update_params_with_http_info(request)
2264
+ http_info = self._update_params_http_info(request)
2265
+ return self._call_api(**http_info)
2266
+
2267
+ def update_params_invoker(self, request):
2268
+ http_info = self._update_params_http_info(request)
2269
+ return SyncInvoker(self, http_info)
2270
+
2271
+ @classmethod
2272
+ def _update_params_http_info(cls, request):
2273
+ http_info = {
2274
+ "method": "POST",
2275
+ "resource_path": "/v3/{project_id}/jobs/{job_id}/params",
2276
+ "request_type": request.__class__.__name__,
2277
+ "response_type": "UpdateParamsResponse"
2278
+ }
1963
2279
 
1964
- def _update_params_with_http_info(self, request):
1965
2280
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
1966
2281
 
1967
2282
  cname = None
@@ -1980,11 +2295,11 @@ class DrsClient(Client):
1980
2295
 
1981
2296
  form_params = {}
1982
2297
 
1983
- body_params = None
2298
+ body = None
1984
2299
  if 'body' in local_var_params:
1985
- body_params = local_var_params['body']
2300
+ body = local_var_params['body']
1986
2301
  if isinstance(request, SdkStreamRequest):
1987
- body_params = request.get_file_stream()
2302
+ body = request.get_file_stream()
1988
2303
 
1989
2304
  response_headers = []
1990
2305
 
@@ -1993,20 +2308,16 @@ class DrsClient(Client):
1993
2308
 
1994
2309
  auth_settings = []
1995
2310
 
1996
- return self.call_api(
1997
- resource_path='/v3/{project_id}/jobs/{job_id}/params',
1998
- method='POST',
1999
- path_params=path_params,
2000
- query_params=query_params,
2001
- header_params=header_params,
2002
- body=body_params,
2003
- post_params=form_params,
2004
- cname=cname,
2005
- response_type='UpdateParamsResponse',
2006
- response_headers=response_headers,
2007
- auth_settings=auth_settings,
2008
- collection_formats=collection_formats,
2009
- request_type=request.__class__.__name__)
2311
+ http_info["cname"] = cname
2312
+ http_info["collection_formats"] = collection_formats
2313
+ http_info["path_params"] = path_params
2314
+ http_info["query_params"] = query_params
2315
+ http_info["header_params"] = header_params
2316
+ http_info["post_params"] = form_params
2317
+ http_info["body"] = body
2318
+ http_info["response_headers"] = response_headers
2319
+
2320
+ return http_info
2010
2321
 
2011
2322
  def update_tuning_params(self, request):
2012
2323
  """高级设置
@@ -2019,9 +2330,22 @@ class DrsClient(Client):
2019
2330
  :type request: :class:`huaweicloudsdkdrs.v3.UpdateTuningParamsRequest`
2020
2331
  :rtype: :class:`huaweicloudsdkdrs.v3.UpdateTuningParamsResponse`
2021
2332
  """
2022
- return self._update_tuning_params_with_http_info(request)
2333
+ http_info = self._update_tuning_params_http_info(request)
2334
+ return self._call_api(**http_info)
2335
+
2336
+ def update_tuning_params_invoker(self, request):
2337
+ http_info = self._update_tuning_params_http_info(request)
2338
+ return SyncInvoker(self, http_info)
2339
+
2340
+ @classmethod
2341
+ def _update_tuning_params_http_info(cls, request):
2342
+ http_info = {
2343
+ "method": "PUT",
2344
+ "resource_path": "/v3/{project_id}/job/{job_id}/tuning-params/modify-params",
2345
+ "request_type": request.__class__.__name__,
2346
+ "response_type": "UpdateTuningParamsResponse"
2347
+ }
2023
2348
 
2024
- def _update_tuning_params_with_http_info(self, request):
2025
2349
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
2026
2350
 
2027
2351
  cname = None
@@ -2040,11 +2364,11 @@ class DrsClient(Client):
2040
2364
 
2041
2365
  form_params = {}
2042
2366
 
2043
- body_params = None
2367
+ body = None
2044
2368
  if 'body' in local_var_params:
2045
- body_params = local_var_params['body']
2369
+ body = local_var_params['body']
2046
2370
  if isinstance(request, SdkStreamRequest):
2047
- body_params = request.get_file_stream()
2371
+ body = request.get_file_stream()
2048
2372
 
2049
2373
  response_headers = []
2050
2374
 
@@ -2053,20 +2377,25 @@ class DrsClient(Client):
2053
2377
 
2054
2378
  auth_settings = []
2055
2379
 
2056
- return self.call_api(
2057
- resource_path='/v3/{project_id}/job/{job_id}/tuning-params/modify-params',
2058
- method='PUT',
2059
- path_params=path_params,
2060
- query_params=query_params,
2061
- header_params=header_params,
2062
- body=body_params,
2063
- post_params=form_params,
2064
- cname=cname,
2065
- response_type='UpdateTuningParamsResponse',
2066
- response_headers=response_headers,
2067
- auth_settings=auth_settings,
2068
- collection_formats=collection_formats,
2069
- request_type=request.__class__.__name__)
2380
+ http_info["cname"] = cname
2381
+ http_info["collection_formats"] = collection_formats
2382
+ http_info["path_params"] = path_params
2383
+ http_info["query_params"] = query_params
2384
+ http_info["header_params"] = header_params
2385
+ http_info["post_params"] = form_params
2386
+ http_info["body"] = body
2387
+ http_info["response_headers"] = response_headers
2388
+
2389
+ return http_info
2390
+
2391
+ def _call_api(self, **kwargs):
2392
+ try:
2393
+ return self.do_http_request(**kwargs)
2394
+ except TypeError:
2395
+ import inspect
2396
+ params = inspect.signature(self.do_http_request).parameters
2397
+ http_info = {param_name: kwargs.get(param_name) for param_name in params if param_name in kwargs}
2398
+ return self.do_http_request(**http_info)
2070
2399
 
2071
2400
  def call_api(self, resource_path, method, path_params=None, query_params=None, header_params=None, body=None,
2072
2401
  post_params=None, cname=None, response_type=None, response_headers=None, auth_settings=None,