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.
- huaweicloudsdkdrs/v3/drs_async_client.py +959 -664
- huaweicloudsdkdrs/v3/drs_client.py +992 -663
- huaweicloudsdkdrs/v5/drs_async_client.py +1467 -1012
- huaweicloudsdkdrs/v5/drs_client.py +1520 -1011
- {huaweicloudsdkdrs-3.1.65.dist-info → huaweicloudsdkdrs-3.1.67.dist-info}/METADATA +2 -2
- {huaweicloudsdkdrs-3.1.65.dist-info → huaweicloudsdkdrs-3.1.67.dist-info}/RECORD +9 -9
- {huaweicloudsdkdrs-3.1.65.dist-info → huaweicloudsdkdrs-3.1.67.dist-info}/LICENSE +0 -0
- {huaweicloudsdkdrs-3.1.65.dist-info → huaweicloudsdkdrs-3.1.67.dist-info}/WHEEL +0 -0
- {huaweicloudsdkdrs-3.1.65.dist-info → huaweicloudsdkdrs-3.1.67.dist-info}/top_level.txt +0 -0
@@ -3,10 +3,15 @@
|
|
3
3
|
from __future__ import absolute_import
|
4
4
|
|
5
5
|
import importlib
|
6
|
+
import warnings
|
6
7
|
|
7
8
|
from huaweicloudsdkcore.client import Client, ClientBuilder
|
8
9
|
from huaweicloudsdkcore.utils import http_utils
|
9
10
|
from huaweicloudsdkcore.sdk_stream_request import SdkStreamRequest
|
11
|
+
try:
|
12
|
+
from huaweicloudsdkcore.invoker.invoker import AsyncInvoker
|
13
|
+
except ImportError as e:
|
14
|
+
warnings.warn(str(e) + ", please check if you are using the same versions of 'huaweicloudsdkcore' and 'huaweicloudsdkdrs'")
|
10
15
|
|
11
16
|
|
12
17
|
class DrsAsyncClient(Client):
|
@@ -39,9 +44,21 @@ class DrsAsyncClient(Client):
|
|
39
44
|
:type request: :class:`huaweicloudsdkdrs.v3.BatchChangeDataRequest`
|
40
45
|
:rtype: :class:`huaweicloudsdkdrs.v3.BatchChangeDataResponse`
|
41
46
|
"""
|
42
|
-
|
47
|
+
http_info = self._batch_change_data_http_info(request)
|
48
|
+
return self._call_api(**http_info)
|
49
|
+
|
50
|
+
def batch_change_data_async_invoker(self, request):
|
51
|
+
http_info = self._batch_change_data_http_info(request)
|
52
|
+
return AsyncInvoker(self, http_info)
|
53
|
+
|
54
|
+
def _batch_change_data_http_info(self, 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
|
+
}
|
43
61
|
|
44
|
-
def _batch_change_data_with_http_info(self, request):
|
45
62
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
46
63
|
|
47
64
|
cname = None
|
@@ -58,11 +75,11 @@ class DrsAsyncClient(Client):
|
|
58
75
|
|
59
76
|
form_params = {}
|
60
77
|
|
61
|
-
|
78
|
+
body = None
|
62
79
|
if 'body' in local_var_params:
|
63
|
-
|
80
|
+
body = local_var_params['body']
|
64
81
|
if isinstance(request, SdkStreamRequest):
|
65
|
-
|
82
|
+
body = request.get_file_stream()
|
66
83
|
|
67
84
|
response_headers = []
|
68
85
|
|
@@ -71,20 +88,16 @@ class DrsAsyncClient(Client):
|
|
71
88
|
|
72
89
|
auth_settings = []
|
73
90
|
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
response_headers=response_headers,
|
85
|
-
auth_settings=auth_settings,
|
86
|
-
collection_formats=collection_formats,
|
87
|
-
request_type=request.__class__.__name__)
|
91
|
+
http_info["cname"] = cname
|
92
|
+
http_info["collection_formats"] = collection_formats
|
93
|
+
http_info["path_params"] = path_params
|
94
|
+
http_info["query_params"] = query_params
|
95
|
+
http_info["header_params"] = header_params
|
96
|
+
http_info["post_params"] = form_params
|
97
|
+
http_info["body"] = body
|
98
|
+
http_info["response_headers"] = response_headers
|
99
|
+
|
100
|
+
return http_info
|
88
101
|
|
89
102
|
def batch_check_jobs_async(self, request):
|
90
103
|
"""批量预检查
|
@@ -98,9 +111,21 @@ class DrsAsyncClient(Client):
|
|
98
111
|
:type request: :class:`huaweicloudsdkdrs.v3.BatchCheckJobsRequest`
|
99
112
|
:rtype: :class:`huaweicloudsdkdrs.v3.BatchCheckJobsResponse`
|
100
113
|
"""
|
101
|
-
|
114
|
+
http_info = self._batch_check_jobs_http_info(request)
|
115
|
+
return self._call_api(**http_info)
|
116
|
+
|
117
|
+
def batch_check_jobs_async_invoker(self, request):
|
118
|
+
http_info = self._batch_check_jobs_http_info(request)
|
119
|
+
return AsyncInvoker(self, http_info)
|
120
|
+
|
121
|
+
def _batch_check_jobs_http_info(self, 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
|
+
}
|
102
128
|
|
103
|
-
def _batch_check_jobs_with_http_info(self, request):
|
104
129
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
105
130
|
|
106
131
|
cname = None
|
@@ -117,11 +142,11 @@ class DrsAsyncClient(Client):
|
|
117
142
|
|
118
143
|
form_params = {}
|
119
144
|
|
120
|
-
|
145
|
+
body = None
|
121
146
|
if 'body' in local_var_params:
|
122
|
-
|
147
|
+
body = local_var_params['body']
|
123
148
|
if isinstance(request, SdkStreamRequest):
|
124
|
-
|
149
|
+
body = request.get_file_stream()
|
125
150
|
|
126
151
|
response_headers = []
|
127
152
|
|
@@ -130,20 +155,16 @@ class DrsAsyncClient(Client):
|
|
130
155
|
|
131
156
|
auth_settings = []
|
132
157
|
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
response_headers=response_headers,
|
144
|
-
auth_settings=auth_settings,
|
145
|
-
collection_formats=collection_formats,
|
146
|
-
request_type=request.__class__.__name__)
|
158
|
+
http_info["cname"] = cname
|
159
|
+
http_info["collection_formats"] = collection_formats
|
160
|
+
http_info["path_params"] = path_params
|
161
|
+
http_info["query_params"] = query_params
|
162
|
+
http_info["header_params"] = header_params
|
163
|
+
http_info["post_params"] = form_params
|
164
|
+
http_info["body"] = body
|
165
|
+
http_info["response_headers"] = response_headers
|
166
|
+
|
167
|
+
return http_info
|
147
168
|
|
148
169
|
def batch_check_results_async(self, request):
|
149
170
|
"""批量查询预检查结果
|
@@ -157,9 +178,21 @@ class DrsAsyncClient(Client):
|
|
157
178
|
:type request: :class:`huaweicloudsdkdrs.v3.BatchCheckResultsRequest`
|
158
179
|
:rtype: :class:`huaweicloudsdkdrs.v3.BatchCheckResultsResponse`
|
159
180
|
"""
|
160
|
-
|
181
|
+
http_info = self._batch_check_results_http_info(request)
|
182
|
+
return self._call_api(**http_info)
|
183
|
+
|
184
|
+
def batch_check_results_async_invoker(self, request):
|
185
|
+
http_info = self._batch_check_results_http_info(request)
|
186
|
+
return AsyncInvoker(self, http_info)
|
187
|
+
|
188
|
+
def _batch_check_results_http_info(self, 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
|
+
}
|
161
195
|
|
162
|
-
def _batch_check_results_with_http_info(self, request):
|
163
196
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
164
197
|
|
165
198
|
cname = None
|
@@ -176,11 +209,11 @@ class DrsAsyncClient(Client):
|
|
176
209
|
|
177
210
|
form_params = {}
|
178
211
|
|
179
|
-
|
212
|
+
body = None
|
180
213
|
if 'body' in local_var_params:
|
181
|
-
|
214
|
+
body = local_var_params['body']
|
182
215
|
if isinstance(request, SdkStreamRequest):
|
183
|
-
|
216
|
+
body = request.get_file_stream()
|
184
217
|
|
185
218
|
response_headers = []
|
186
219
|
|
@@ -189,20 +222,16 @@ class DrsAsyncClient(Client):
|
|
189
222
|
|
190
223
|
auth_settings = []
|
191
224
|
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
|
200
|
-
|
201
|
-
|
202
|
-
response_headers=response_headers,
|
203
|
-
auth_settings=auth_settings,
|
204
|
-
collection_formats=collection_formats,
|
205
|
-
request_type=request.__class__.__name__)
|
225
|
+
http_info["cname"] = cname
|
226
|
+
http_info["collection_formats"] = collection_formats
|
227
|
+
http_info["path_params"] = path_params
|
228
|
+
http_info["query_params"] = query_params
|
229
|
+
http_info["header_params"] = header_params
|
230
|
+
http_info["post_params"] = form_params
|
231
|
+
http_info["body"] = body
|
232
|
+
http_info["response_headers"] = response_headers
|
233
|
+
|
234
|
+
return http_info
|
206
235
|
|
207
236
|
def batch_create_jobs_async(self, request):
|
208
237
|
"""批量创建任务
|
@@ -216,9 +245,21 @@ class DrsAsyncClient(Client):
|
|
216
245
|
:type request: :class:`huaweicloudsdkdrs.v3.BatchCreateJobsRequest`
|
217
246
|
:rtype: :class:`huaweicloudsdkdrs.v3.BatchCreateJobsResponse`
|
218
247
|
"""
|
219
|
-
|
248
|
+
http_info = self._batch_create_jobs_http_info(request)
|
249
|
+
return self._call_api(**http_info)
|
250
|
+
|
251
|
+
def batch_create_jobs_async_invoker(self, request):
|
252
|
+
http_info = self._batch_create_jobs_http_info(request)
|
253
|
+
return AsyncInvoker(self, http_info)
|
254
|
+
|
255
|
+
def _batch_create_jobs_http_info(self, 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
|
+
}
|
220
262
|
|
221
|
-
def _batch_create_jobs_with_http_info(self, request):
|
222
263
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
223
264
|
|
224
265
|
cname = None
|
@@ -235,11 +276,11 @@ class DrsAsyncClient(Client):
|
|
235
276
|
|
236
277
|
form_params = {}
|
237
278
|
|
238
|
-
|
279
|
+
body = None
|
239
280
|
if 'body' in local_var_params:
|
240
|
-
|
281
|
+
body = local_var_params['body']
|
241
282
|
if isinstance(request, SdkStreamRequest):
|
242
|
-
|
283
|
+
body = request.get_file_stream()
|
243
284
|
|
244
285
|
response_headers = []
|
245
286
|
|
@@ -248,20 +289,16 @@ class DrsAsyncClient(Client):
|
|
248
289
|
|
249
290
|
auth_settings = []
|
250
291
|
|
251
|
-
|
252
|
-
|
253
|
-
|
254
|
-
|
255
|
-
|
256
|
-
|
257
|
-
|
258
|
-
|
259
|
-
|
260
|
-
|
261
|
-
response_headers=response_headers,
|
262
|
-
auth_settings=auth_settings,
|
263
|
-
collection_formats=collection_formats,
|
264
|
-
request_type=request.__class__.__name__)
|
292
|
+
http_info["cname"] = cname
|
293
|
+
http_info["collection_formats"] = collection_formats
|
294
|
+
http_info["path_params"] = path_params
|
295
|
+
http_info["query_params"] = query_params
|
296
|
+
http_info["header_params"] = header_params
|
297
|
+
http_info["post_params"] = form_params
|
298
|
+
http_info["body"] = body
|
299
|
+
http_info["response_headers"] = response_headers
|
300
|
+
|
301
|
+
return http_info
|
265
302
|
|
266
303
|
def batch_delete_jobs_async(self, request):
|
267
304
|
"""批量结束任务或删除任务
|
@@ -275,9 +312,21 @@ class DrsAsyncClient(Client):
|
|
275
312
|
:type request: :class:`huaweicloudsdkdrs.v3.BatchDeleteJobsRequest`
|
276
313
|
:rtype: :class:`huaweicloudsdkdrs.v3.BatchDeleteJobsResponse`
|
277
314
|
"""
|
278
|
-
|
315
|
+
http_info = self._batch_delete_jobs_http_info(request)
|
316
|
+
return self._call_api(**http_info)
|
317
|
+
|
318
|
+
def batch_delete_jobs_async_invoker(self, request):
|
319
|
+
http_info = self._batch_delete_jobs_http_info(request)
|
320
|
+
return AsyncInvoker(self, http_info)
|
321
|
+
|
322
|
+
def _batch_delete_jobs_http_info(self, 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
|
+
}
|
279
329
|
|
280
|
-
def _batch_delete_jobs_with_http_info(self, request):
|
281
330
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
282
331
|
|
283
332
|
cname = None
|
@@ -294,11 +343,11 @@ class DrsAsyncClient(Client):
|
|
294
343
|
|
295
344
|
form_params = {}
|
296
345
|
|
297
|
-
|
346
|
+
body = None
|
298
347
|
if 'body' in local_var_params:
|
299
|
-
|
348
|
+
body = local_var_params['body']
|
300
349
|
if isinstance(request, SdkStreamRequest):
|
301
|
-
|
350
|
+
body = request.get_file_stream()
|
302
351
|
|
303
352
|
response_headers = []
|
304
353
|
|
@@ -307,20 +356,16 @@ class DrsAsyncClient(Client):
|
|
307
356
|
|
308
357
|
auth_settings = []
|
309
358
|
|
310
|
-
|
311
|
-
|
312
|
-
|
313
|
-
|
314
|
-
|
315
|
-
|
316
|
-
|
317
|
-
|
318
|
-
|
319
|
-
|
320
|
-
response_headers=response_headers,
|
321
|
-
auth_settings=auth_settings,
|
322
|
-
collection_formats=collection_formats,
|
323
|
-
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
|
324
369
|
|
325
370
|
def batch_list_job_details_async(self, request):
|
326
371
|
"""批量查询任务详情
|
@@ -334,9 +379,21 @@ class DrsAsyncClient(Client):
|
|
334
379
|
:type request: :class:`huaweicloudsdkdrs.v3.BatchListJobDetailsRequest`
|
335
380
|
:rtype: :class:`huaweicloudsdkdrs.v3.BatchListJobDetailsResponse`
|
336
381
|
"""
|
337
|
-
|
382
|
+
http_info = self._batch_list_job_details_http_info(request)
|
383
|
+
return self._call_api(**http_info)
|
384
|
+
|
385
|
+
def batch_list_job_details_async_invoker(self, request):
|
386
|
+
http_info = self._batch_list_job_details_http_info(request)
|
387
|
+
return AsyncInvoker(self, http_info)
|
388
|
+
|
389
|
+
def _batch_list_job_details_http_info(self, 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
|
+
}
|
338
396
|
|
339
|
-
def _batch_list_job_details_with_http_info(self, request):
|
340
397
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
341
398
|
|
342
399
|
cname = None
|
@@ -353,11 +410,11 @@ class DrsAsyncClient(Client):
|
|
353
410
|
|
354
411
|
form_params = {}
|
355
412
|
|
356
|
-
|
413
|
+
body = None
|
357
414
|
if 'body' in local_var_params:
|
358
|
-
|
415
|
+
body = local_var_params['body']
|
359
416
|
if isinstance(request, SdkStreamRequest):
|
360
|
-
|
417
|
+
body = request.get_file_stream()
|
361
418
|
|
362
419
|
response_headers = []
|
363
420
|
|
@@ -366,20 +423,16 @@ class DrsAsyncClient(Client):
|
|
366
423
|
|
367
424
|
auth_settings = []
|
368
425
|
|
369
|
-
|
370
|
-
|
371
|
-
|
372
|
-
|
373
|
-
|
374
|
-
|
375
|
-
|
376
|
-
|
377
|
-
|
378
|
-
|
379
|
-
response_headers=response_headers,
|
380
|
-
auth_settings=auth_settings,
|
381
|
-
collection_formats=collection_formats,
|
382
|
-
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
|
383
436
|
|
384
437
|
def batch_list_job_status_async(self, request):
|
385
438
|
"""批量查询任务状态
|
@@ -393,9 +446,21 @@ class DrsAsyncClient(Client):
|
|
393
446
|
:type request: :class:`huaweicloudsdkdrs.v3.BatchListJobStatusRequest`
|
394
447
|
:rtype: :class:`huaweicloudsdkdrs.v3.BatchListJobStatusResponse`
|
395
448
|
"""
|
396
|
-
|
449
|
+
http_info = self._batch_list_job_status_http_info(request)
|
450
|
+
return self._call_api(**http_info)
|
451
|
+
|
452
|
+
def batch_list_job_status_async_invoker(self, request):
|
453
|
+
http_info = self._batch_list_job_status_http_info(request)
|
454
|
+
return AsyncInvoker(self, http_info)
|
455
|
+
|
456
|
+
def _batch_list_job_status_http_info(self, 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
|
+
}
|
397
463
|
|
398
|
-
def _batch_list_job_status_with_http_info(self, request):
|
399
464
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
400
465
|
|
401
466
|
cname = None
|
@@ -412,11 +477,11 @@ class DrsAsyncClient(Client):
|
|
412
477
|
|
413
478
|
form_params = {}
|
414
479
|
|
415
|
-
|
480
|
+
body = None
|
416
481
|
if 'body' in local_var_params:
|
417
|
-
|
482
|
+
body = local_var_params['body']
|
418
483
|
if isinstance(request, SdkStreamRequest):
|
419
|
-
|
484
|
+
body = request.get_file_stream()
|
420
485
|
|
421
486
|
response_headers = []
|
422
487
|
|
@@ -425,20 +490,16 @@ class DrsAsyncClient(Client):
|
|
425
490
|
|
426
491
|
auth_settings = []
|
427
492
|
|
428
|
-
|
429
|
-
|
430
|
-
|
431
|
-
|
432
|
-
|
433
|
-
|
434
|
-
|
435
|
-
|
436
|
-
|
437
|
-
|
438
|
-
response_headers=response_headers,
|
439
|
-
auth_settings=auth_settings,
|
440
|
-
collection_formats=collection_formats,
|
441
|
-
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
|
442
503
|
|
443
504
|
def batch_list_progresses_async(self, request):
|
444
505
|
"""批量查询任务进度
|
@@ -452,9 +513,21 @@ class DrsAsyncClient(Client):
|
|
452
513
|
:type request: :class:`huaweicloudsdkdrs.v3.BatchListProgressesRequest`
|
453
514
|
:rtype: :class:`huaweicloudsdkdrs.v3.BatchListProgressesResponse`
|
454
515
|
"""
|
455
|
-
|
516
|
+
http_info = self._batch_list_progresses_http_info(request)
|
517
|
+
return self._call_api(**http_info)
|
518
|
+
|
519
|
+
def batch_list_progresses_async_invoker(self, request):
|
520
|
+
http_info = self._batch_list_progresses_http_info(request)
|
521
|
+
return AsyncInvoker(self, http_info)
|
522
|
+
|
523
|
+
def _batch_list_progresses_http_info(self, 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
|
+
}
|
456
530
|
|
457
|
-
def _batch_list_progresses_with_http_info(self, request):
|
458
531
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
459
532
|
|
460
533
|
cname = None
|
@@ -471,11 +544,11 @@ class DrsAsyncClient(Client):
|
|
471
544
|
|
472
545
|
form_params = {}
|
473
546
|
|
474
|
-
|
547
|
+
body = None
|
475
548
|
if 'body' in local_var_params:
|
476
|
-
|
549
|
+
body = local_var_params['body']
|
477
550
|
if isinstance(request, SdkStreamRequest):
|
478
|
-
|
551
|
+
body = request.get_file_stream()
|
479
552
|
|
480
553
|
response_headers = []
|
481
554
|
|
@@ -484,20 +557,16 @@ class DrsAsyncClient(Client):
|
|
484
557
|
|
485
558
|
auth_settings = []
|
486
559
|
|
487
|
-
|
488
|
-
|
489
|
-
|
490
|
-
|
491
|
-
|
492
|
-
|
493
|
-
|
494
|
-
|
495
|
-
|
496
|
-
|
497
|
-
response_headers=response_headers,
|
498
|
-
auth_settings=auth_settings,
|
499
|
-
collection_formats=collection_formats,
|
500
|
-
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
|
501
570
|
|
502
571
|
def batch_list_rpos_and_rtos_async(self, request):
|
503
572
|
"""批量查询RPO和RTO
|
@@ -511,9 +580,21 @@ class DrsAsyncClient(Client):
|
|
511
580
|
:type request: :class:`huaweicloudsdkdrs.v3.BatchListRposAndRtosRequest`
|
512
581
|
:rtype: :class:`huaweicloudsdkdrs.v3.BatchListRposAndRtosResponse`
|
513
582
|
"""
|
514
|
-
|
583
|
+
http_info = self._batch_list_rpos_and_rtos_http_info(request)
|
584
|
+
return self._call_api(**http_info)
|
585
|
+
|
586
|
+
def batch_list_rpos_and_rtos_async_invoker(self, request):
|
587
|
+
http_info = self._batch_list_rpos_and_rtos_http_info(request)
|
588
|
+
return AsyncInvoker(self, http_info)
|
589
|
+
|
590
|
+
def _batch_list_rpos_and_rtos_http_info(self, 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
|
+
}
|
515
597
|
|
516
|
-
def _batch_list_rpos_and_rtos_with_http_info(self, request):
|
517
598
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
518
599
|
|
519
600
|
cname = None
|
@@ -530,11 +611,11 @@ class DrsAsyncClient(Client):
|
|
530
611
|
|
531
612
|
form_params = {}
|
532
613
|
|
533
|
-
|
614
|
+
body = None
|
534
615
|
if 'body' in local_var_params:
|
535
|
-
|
616
|
+
body = local_var_params['body']
|
536
617
|
if isinstance(request, SdkStreamRequest):
|
537
|
-
|
618
|
+
body = request.get_file_stream()
|
538
619
|
|
539
620
|
response_headers = []
|
540
621
|
|
@@ -543,20 +624,16 @@ class DrsAsyncClient(Client):
|
|
543
624
|
|
544
625
|
auth_settings = []
|
545
626
|
|
546
|
-
|
547
|
-
|
548
|
-
|
549
|
-
|
550
|
-
|
551
|
-
|
552
|
-
|
553
|
-
|
554
|
-
|
555
|
-
|
556
|
-
response_headers=response_headers,
|
557
|
-
auth_settings=auth_settings,
|
558
|
-
collection_formats=collection_formats,
|
559
|
-
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
|
560
637
|
|
561
638
|
def batch_list_struct_detail_async(self, request):
|
562
639
|
"""批量查询灾备初始化对象详情
|
@@ -570,9 +647,21 @@ class DrsAsyncClient(Client):
|
|
570
647
|
:type request: :class:`huaweicloudsdkdrs.v3.BatchListStructDetailRequest`
|
571
648
|
:rtype: :class:`huaweicloudsdkdrs.v3.BatchListStructDetailResponse`
|
572
649
|
"""
|
573
|
-
|
650
|
+
http_info = self._batch_list_struct_detail_http_info(request)
|
651
|
+
return self._call_api(**http_info)
|
652
|
+
|
653
|
+
def batch_list_struct_detail_async_invoker(self, request):
|
654
|
+
http_info = self._batch_list_struct_detail_http_info(request)
|
655
|
+
return AsyncInvoker(self, http_info)
|
656
|
+
|
657
|
+
def _batch_list_struct_detail_http_info(self, 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
|
+
}
|
574
664
|
|
575
|
-
def _batch_list_struct_detail_with_http_info(self, request):
|
576
665
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
577
666
|
|
578
667
|
cname = None
|
@@ -591,11 +680,11 @@ class DrsAsyncClient(Client):
|
|
591
680
|
|
592
681
|
form_params = {}
|
593
682
|
|
594
|
-
|
683
|
+
body = None
|
595
684
|
if 'body' in local_var_params:
|
596
|
-
|
685
|
+
body = local_var_params['body']
|
597
686
|
if isinstance(request, SdkStreamRequest):
|
598
|
-
|
687
|
+
body = request.get_file_stream()
|
599
688
|
|
600
689
|
response_headers = []
|
601
690
|
|
@@ -604,20 +693,16 @@ class DrsAsyncClient(Client):
|
|
604
693
|
|
605
694
|
auth_settings = []
|
606
695
|
|
607
|
-
|
608
|
-
|
609
|
-
|
610
|
-
|
611
|
-
|
612
|
-
|
613
|
-
|
614
|
-
|
615
|
-
|
616
|
-
|
617
|
-
response_headers=response_headers,
|
618
|
-
auth_settings=auth_settings,
|
619
|
-
collection_formats=collection_formats,
|
620
|
-
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
|
621
706
|
|
622
707
|
def batch_list_struct_process_async(self, request):
|
623
708
|
"""批量查询灾备初始化进度
|
@@ -631,9 +716,21 @@ class DrsAsyncClient(Client):
|
|
631
716
|
:type request: :class:`huaweicloudsdkdrs.v3.BatchListStructProcessRequest`
|
632
717
|
:rtype: :class:`huaweicloudsdkdrs.v3.BatchListStructProcessResponse`
|
633
718
|
"""
|
634
|
-
|
719
|
+
http_info = self._batch_list_struct_process_http_info(request)
|
720
|
+
return self._call_api(**http_info)
|
721
|
+
|
722
|
+
def batch_list_struct_process_async_invoker(self, request):
|
723
|
+
http_info = self._batch_list_struct_process_http_info(request)
|
724
|
+
return AsyncInvoker(self, http_info)
|
725
|
+
|
726
|
+
def _batch_list_struct_process_http_info(self, 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
|
+
}
|
635
733
|
|
636
|
-
def _batch_list_struct_process_with_http_info(self, request):
|
637
734
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
638
735
|
|
639
736
|
cname = None
|
@@ -650,11 +747,11 @@ class DrsAsyncClient(Client):
|
|
650
747
|
|
651
748
|
form_params = {}
|
652
749
|
|
653
|
-
|
750
|
+
body = None
|
654
751
|
if 'body' in local_var_params:
|
655
|
-
|
752
|
+
body = local_var_params['body']
|
656
753
|
if isinstance(request, SdkStreamRequest):
|
657
|
-
|
754
|
+
body = request.get_file_stream()
|
658
755
|
|
659
756
|
response_headers = []
|
660
757
|
|
@@ -663,20 +760,16 @@ class DrsAsyncClient(Client):
|
|
663
760
|
|
664
761
|
auth_settings = []
|
665
762
|
|
666
|
-
|
667
|
-
|
668
|
-
|
669
|
-
|
670
|
-
|
671
|
-
|
672
|
-
|
673
|
-
|
674
|
-
|
675
|
-
|
676
|
-
response_headers=response_headers,
|
677
|
-
auth_settings=auth_settings,
|
678
|
-
collection_formats=collection_formats,
|
679
|
-
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
|
680
773
|
|
681
774
|
def batch_reset_password_async(self, request):
|
682
775
|
"""批量修改源库/目标库密码
|
@@ -690,9 +783,21 @@ class DrsAsyncClient(Client):
|
|
690
783
|
:type request: :class:`huaweicloudsdkdrs.v3.BatchResetPasswordRequest`
|
691
784
|
:rtype: :class:`huaweicloudsdkdrs.v3.BatchResetPasswordResponse`
|
692
785
|
"""
|
693
|
-
|
786
|
+
http_info = self._batch_reset_password_http_info(request)
|
787
|
+
return self._call_api(**http_info)
|
788
|
+
|
789
|
+
def batch_reset_password_async_invoker(self, request):
|
790
|
+
http_info = self._batch_reset_password_http_info(request)
|
791
|
+
return AsyncInvoker(self, http_info)
|
792
|
+
|
793
|
+
def _batch_reset_password_http_info(self, 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
|
+
}
|
694
800
|
|
695
|
-
def _batch_reset_password_with_http_info(self, request):
|
696
801
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
697
802
|
|
698
803
|
cname = None
|
@@ -709,11 +814,11 @@ class DrsAsyncClient(Client):
|
|
709
814
|
|
710
815
|
form_params = {}
|
711
816
|
|
712
|
-
|
817
|
+
body = None
|
713
818
|
if 'body' in local_var_params:
|
714
|
-
|
819
|
+
body = local_var_params['body']
|
715
820
|
if isinstance(request, SdkStreamRequest):
|
716
|
-
|
821
|
+
body = request.get_file_stream()
|
717
822
|
|
718
823
|
response_headers = []
|
719
824
|
|
@@ -722,20 +827,16 @@ class DrsAsyncClient(Client):
|
|
722
827
|
|
723
828
|
auth_settings = []
|
724
829
|
|
725
|
-
|
726
|
-
|
727
|
-
|
728
|
-
|
729
|
-
|
730
|
-
|
731
|
-
|
732
|
-
|
733
|
-
|
734
|
-
|
735
|
-
response_headers=response_headers,
|
736
|
-
auth_settings=auth_settings,
|
737
|
-
collection_formats=collection_formats,
|
738
|
-
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
|
739
840
|
|
740
841
|
def batch_restore_task_async(self, request):
|
741
842
|
"""批量续传/重试
|
@@ -749,9 +850,21 @@ class DrsAsyncClient(Client):
|
|
749
850
|
:type request: :class:`huaweicloudsdkdrs.v3.BatchRestoreTaskRequest`
|
750
851
|
:rtype: :class:`huaweicloudsdkdrs.v3.BatchRestoreTaskResponse`
|
751
852
|
"""
|
752
|
-
|
853
|
+
http_info = self._batch_restore_task_http_info(request)
|
854
|
+
return self._call_api(**http_info)
|
855
|
+
|
856
|
+
def batch_restore_task_async_invoker(self, request):
|
857
|
+
http_info = self._batch_restore_task_http_info(request)
|
858
|
+
return AsyncInvoker(self, http_info)
|
859
|
+
|
860
|
+
def _batch_restore_task_http_info(self, 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
|
+
}
|
753
867
|
|
754
|
-
def _batch_restore_task_with_http_info(self, request):
|
755
868
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
756
869
|
|
757
870
|
cname = None
|
@@ -768,11 +881,11 @@ class DrsAsyncClient(Client):
|
|
768
881
|
|
769
882
|
form_params = {}
|
770
883
|
|
771
|
-
|
884
|
+
body = None
|
772
885
|
if 'body' in local_var_params:
|
773
|
-
|
886
|
+
body = local_var_params['body']
|
774
887
|
if isinstance(request, SdkStreamRequest):
|
775
|
-
|
888
|
+
body = request.get_file_stream()
|
776
889
|
|
777
890
|
response_headers = []
|
778
891
|
|
@@ -781,20 +894,16 @@ class DrsAsyncClient(Client):
|
|
781
894
|
|
782
895
|
auth_settings = []
|
783
896
|
|
784
|
-
|
785
|
-
|
786
|
-
|
787
|
-
|
788
|
-
|
789
|
-
|
790
|
-
|
791
|
-
|
792
|
-
|
793
|
-
|
794
|
-
response_headers=response_headers,
|
795
|
-
auth_settings=auth_settings,
|
796
|
-
collection_formats=collection_formats,
|
797
|
-
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
|
798
907
|
|
799
908
|
def batch_set_definer_async(self, request):
|
800
909
|
"""批量设置definer
|
@@ -810,9 +919,21 @@ class DrsAsyncClient(Client):
|
|
810
919
|
:type request: :class:`huaweicloudsdkdrs.v3.BatchSetDefinerRequest`
|
811
920
|
:rtype: :class:`huaweicloudsdkdrs.v3.BatchSetDefinerResponse`
|
812
921
|
"""
|
813
|
-
|
922
|
+
http_info = self._batch_set_definer_http_info(request)
|
923
|
+
return self._call_api(**http_info)
|
924
|
+
|
925
|
+
def batch_set_definer_async_invoker(self, request):
|
926
|
+
http_info = self._batch_set_definer_http_info(request)
|
927
|
+
return AsyncInvoker(self, http_info)
|
928
|
+
|
929
|
+
def _batch_set_definer_http_info(self, 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
|
+
}
|
814
936
|
|
815
|
-
def _batch_set_definer_with_http_info(self, request):
|
816
937
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
817
938
|
|
818
939
|
cname = None
|
@@ -829,11 +950,11 @@ class DrsAsyncClient(Client):
|
|
829
950
|
|
830
951
|
form_params = {}
|
831
952
|
|
832
|
-
|
953
|
+
body = None
|
833
954
|
if 'body' in local_var_params:
|
834
|
-
|
955
|
+
body = local_var_params['body']
|
835
956
|
if isinstance(request, SdkStreamRequest):
|
836
|
-
|
957
|
+
body = request.get_file_stream()
|
837
958
|
|
838
959
|
response_headers = []
|
839
960
|
|
@@ -842,20 +963,16 @@ class DrsAsyncClient(Client):
|
|
842
963
|
|
843
964
|
auth_settings = []
|
844
965
|
|
845
|
-
|
846
|
-
|
847
|
-
|
848
|
-
|
849
|
-
|
850
|
-
|
851
|
-
|
852
|
-
|
853
|
-
|
854
|
-
|
855
|
-
response_headers=response_headers,
|
856
|
-
auth_settings=auth_settings,
|
857
|
-
collection_formats=collection_formats,
|
858
|
-
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
|
859
976
|
|
860
977
|
def batch_set_objects_async(self, request):
|
861
978
|
"""批量数据库对象选择
|
@@ -869,9 +986,21 @@ class DrsAsyncClient(Client):
|
|
869
986
|
:type request: :class:`huaweicloudsdkdrs.v3.BatchSetObjectsRequest`
|
870
987
|
:rtype: :class:`huaweicloudsdkdrs.v3.BatchSetObjectsResponse`
|
871
988
|
"""
|
872
|
-
|
989
|
+
http_info = self._batch_set_objects_http_info(request)
|
990
|
+
return self._call_api(**http_info)
|
991
|
+
|
992
|
+
def batch_set_objects_async_invoker(self, request):
|
993
|
+
http_info = self._batch_set_objects_http_info(request)
|
994
|
+
return AsyncInvoker(self, http_info)
|
995
|
+
|
996
|
+
def _batch_set_objects_http_info(self, 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
|
+
}
|
873
1003
|
|
874
|
-
def _batch_set_objects_with_http_info(self, request):
|
875
1004
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
876
1005
|
|
877
1006
|
cname = None
|
@@ -888,11 +1017,11 @@ class DrsAsyncClient(Client):
|
|
888
1017
|
|
889
1018
|
form_params = {}
|
890
1019
|
|
891
|
-
|
1020
|
+
body = None
|
892
1021
|
if 'body' in local_var_params:
|
893
|
-
|
1022
|
+
body = local_var_params['body']
|
894
1023
|
if isinstance(request, SdkStreamRequest):
|
895
|
-
|
1024
|
+
body = request.get_file_stream()
|
896
1025
|
|
897
1026
|
response_headers = []
|
898
1027
|
|
@@ -901,20 +1030,16 @@ class DrsAsyncClient(Client):
|
|
901
1030
|
|
902
1031
|
auth_settings = []
|
903
1032
|
|
904
|
-
|
905
|
-
|
906
|
-
|
907
|
-
|
908
|
-
|
909
|
-
|
910
|
-
|
911
|
-
|
912
|
-
|
913
|
-
|
914
|
-
response_headers=response_headers,
|
915
|
-
auth_settings=auth_settings,
|
916
|
-
collection_formats=collection_formats,
|
917
|
-
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
|
918
1043
|
|
919
1044
|
def batch_set_policy_async(self, request):
|
920
1045
|
"""批量设置同步策略
|
@@ -929,9 +1054,21 @@ class DrsAsyncClient(Client):
|
|
929
1054
|
:type request: :class:`huaweicloudsdkdrs.v3.BatchSetPolicyRequest`
|
930
1055
|
:rtype: :class:`huaweicloudsdkdrs.v3.BatchSetPolicyResponse`
|
931
1056
|
"""
|
932
|
-
|
1057
|
+
http_info = self._batch_set_policy_http_info(request)
|
1058
|
+
return self._call_api(**http_info)
|
1059
|
+
|
1060
|
+
def batch_set_policy_async_invoker(self, request):
|
1061
|
+
http_info = self._batch_set_policy_http_info(request)
|
1062
|
+
return AsyncInvoker(self, http_info)
|
1063
|
+
|
1064
|
+
def _batch_set_policy_http_info(self, 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
|
+
}
|
933
1071
|
|
934
|
-
def _batch_set_policy_with_http_info(self, request):
|
935
1072
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
936
1073
|
|
937
1074
|
cname = None
|
@@ -948,11 +1085,11 @@ class DrsAsyncClient(Client):
|
|
948
1085
|
|
949
1086
|
form_params = {}
|
950
1087
|
|
951
|
-
|
1088
|
+
body = None
|
952
1089
|
if 'body' in local_var_params:
|
953
|
-
|
1090
|
+
body = local_var_params['body']
|
954
1091
|
if isinstance(request, SdkStreamRequest):
|
955
|
-
|
1092
|
+
body = request.get_file_stream()
|
956
1093
|
|
957
1094
|
response_headers = []
|
958
1095
|
|
@@ -961,20 +1098,16 @@ class DrsAsyncClient(Client):
|
|
961
1098
|
|
962
1099
|
auth_settings = []
|
963
1100
|
|
964
|
-
|
965
|
-
|
966
|
-
|
967
|
-
|
968
|
-
|
969
|
-
|
970
|
-
|
971
|
-
|
972
|
-
|
973
|
-
|
974
|
-
response_headers=response_headers,
|
975
|
-
auth_settings=auth_settings,
|
976
|
-
collection_formats=collection_formats,
|
977
|
-
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
|
978
1111
|
|
979
1112
|
def batch_set_smn_async(self, request):
|
980
1113
|
"""批量配置异常通知
|
@@ -989,9 +1122,21 @@ class DrsAsyncClient(Client):
|
|
989
1122
|
:type request: :class:`huaweicloudsdkdrs.v3.BatchSetSmnRequest`
|
990
1123
|
:rtype: :class:`huaweicloudsdkdrs.v3.BatchSetSmnResponse`
|
991
1124
|
"""
|
992
|
-
|
1125
|
+
http_info = self._batch_set_smn_http_info(request)
|
1126
|
+
return self._call_api(**http_info)
|
1127
|
+
|
1128
|
+
def batch_set_smn_async_invoker(self, request):
|
1129
|
+
http_info = self._batch_set_smn_http_info(request)
|
1130
|
+
return AsyncInvoker(self, http_info)
|
1131
|
+
|
1132
|
+
def _batch_set_smn_http_info(self, 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
|
+
}
|
993
1139
|
|
994
|
-
def _batch_set_smn_with_http_info(self, request):
|
995
1140
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
996
1141
|
|
997
1142
|
cname = None
|
@@ -1008,11 +1153,11 @@ class DrsAsyncClient(Client):
|
|
1008
1153
|
|
1009
1154
|
form_params = {}
|
1010
1155
|
|
1011
|
-
|
1156
|
+
body = None
|
1012
1157
|
if 'body' in local_var_params:
|
1013
|
-
|
1158
|
+
body = local_var_params['body']
|
1014
1159
|
if isinstance(request, SdkStreamRequest):
|
1015
|
-
|
1160
|
+
body = request.get_file_stream()
|
1016
1161
|
|
1017
1162
|
response_headers = []
|
1018
1163
|
|
@@ -1021,20 +1166,16 @@ class DrsAsyncClient(Client):
|
|
1021
1166
|
|
1022
1167
|
auth_settings = []
|
1023
1168
|
|
1024
|
-
|
1025
|
-
|
1026
|
-
|
1027
|
-
|
1028
|
-
|
1029
|
-
|
1030
|
-
|
1031
|
-
|
1032
|
-
|
1033
|
-
|
1034
|
-
response_headers=response_headers,
|
1035
|
-
auth_settings=auth_settings,
|
1036
|
-
collection_formats=collection_formats,
|
1037
|
-
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
|
1038
1179
|
|
1039
1180
|
def batch_set_speed_async(self, request):
|
1040
1181
|
"""批量设置任务限速
|
@@ -1050,9 +1191,21 @@ class DrsAsyncClient(Client):
|
|
1050
1191
|
:type request: :class:`huaweicloudsdkdrs.v3.BatchSetSpeedRequest`
|
1051
1192
|
:rtype: :class:`huaweicloudsdkdrs.v3.BatchSetSpeedResponse`
|
1052
1193
|
"""
|
1053
|
-
|
1194
|
+
http_info = self._batch_set_speed_http_info(request)
|
1195
|
+
return self._call_api(**http_info)
|
1196
|
+
|
1197
|
+
def batch_set_speed_async_invoker(self, request):
|
1198
|
+
http_info = self._batch_set_speed_http_info(request)
|
1199
|
+
return AsyncInvoker(self, http_info)
|
1200
|
+
|
1201
|
+
def _batch_set_speed_http_info(self, 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
|
+
}
|
1054
1208
|
|
1055
|
-
def _batch_set_speed_with_http_info(self, request):
|
1056
1209
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
1057
1210
|
|
1058
1211
|
cname = None
|
@@ -1069,11 +1222,11 @@ class DrsAsyncClient(Client):
|
|
1069
1222
|
|
1070
1223
|
form_params = {}
|
1071
1224
|
|
1072
|
-
|
1225
|
+
body = None
|
1073
1226
|
if 'body' in local_var_params:
|
1074
|
-
|
1227
|
+
body = local_var_params['body']
|
1075
1228
|
if isinstance(request, SdkStreamRequest):
|
1076
|
-
|
1229
|
+
body = request.get_file_stream()
|
1077
1230
|
|
1078
1231
|
response_headers = []
|
1079
1232
|
|
@@ -1082,20 +1235,16 @@ class DrsAsyncClient(Client):
|
|
1082
1235
|
|
1083
1236
|
auth_settings = []
|
1084
1237
|
|
1085
|
-
|
1086
|
-
|
1087
|
-
|
1088
|
-
|
1089
|
-
|
1090
|
-
|
1091
|
-
|
1092
|
-
|
1093
|
-
|
1094
|
-
|
1095
|
-
response_headers=response_headers,
|
1096
|
-
auth_settings=auth_settings,
|
1097
|
-
collection_formats=collection_formats,
|
1098
|
-
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
|
1099
1248
|
|
1100
1249
|
def batch_show_params_async(self, request):
|
1101
1250
|
"""批量获取数据库参数
|
@@ -1109,9 +1258,21 @@ class DrsAsyncClient(Client):
|
|
1109
1258
|
:type request: :class:`huaweicloudsdkdrs.v3.BatchShowParamsRequest`
|
1110
1259
|
:rtype: :class:`huaweicloudsdkdrs.v3.BatchShowParamsResponse`
|
1111
1260
|
"""
|
1112
|
-
|
1261
|
+
http_info = self._batch_show_params_http_info(request)
|
1262
|
+
return self._call_api(**http_info)
|
1263
|
+
|
1264
|
+
def batch_show_params_async_invoker(self, request):
|
1265
|
+
http_info = self._batch_show_params_http_info(request)
|
1266
|
+
return AsyncInvoker(self, http_info)
|
1267
|
+
|
1268
|
+
def _batch_show_params_http_info(self, 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
|
+
}
|
1113
1275
|
|
1114
|
-
def _batch_show_params_with_http_info(self, request):
|
1115
1276
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
1116
1277
|
|
1117
1278
|
cname = None
|
@@ -1128,11 +1289,11 @@ class DrsAsyncClient(Client):
|
|
1128
1289
|
|
1129
1290
|
form_params = {}
|
1130
1291
|
|
1131
|
-
|
1292
|
+
body = None
|
1132
1293
|
if 'body' in local_var_params:
|
1133
|
-
|
1294
|
+
body = local_var_params['body']
|
1134
1295
|
if isinstance(request, SdkStreamRequest):
|
1135
|
-
|
1296
|
+
body = request.get_file_stream()
|
1136
1297
|
|
1137
1298
|
response_headers = []
|
1138
1299
|
|
@@ -1141,20 +1302,16 @@ class DrsAsyncClient(Client):
|
|
1141
1302
|
|
1142
1303
|
auth_settings = []
|
1143
1304
|
|
1144
|
-
|
1145
|
-
|
1146
|
-
|
1147
|
-
|
1148
|
-
|
1149
|
-
|
1150
|
-
|
1151
|
-
|
1152
|
-
|
1153
|
-
|
1154
|
-
response_headers=response_headers,
|
1155
|
-
auth_settings=auth_settings,
|
1156
|
-
collection_formats=collection_formats,
|
1157
|
-
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
|
1158
1315
|
|
1159
1316
|
def batch_start_jobs_async(self, request):
|
1160
1317
|
"""批量启动任务
|
@@ -1168,9 +1325,21 @@ class DrsAsyncClient(Client):
|
|
1168
1325
|
:type request: :class:`huaweicloudsdkdrs.v3.BatchStartJobsRequest`
|
1169
1326
|
:rtype: :class:`huaweicloudsdkdrs.v3.BatchStartJobsResponse`
|
1170
1327
|
"""
|
1171
|
-
|
1328
|
+
http_info = self._batch_start_jobs_http_info(request)
|
1329
|
+
return self._call_api(**http_info)
|
1330
|
+
|
1331
|
+
def batch_start_jobs_async_invoker(self, request):
|
1332
|
+
http_info = self._batch_start_jobs_http_info(request)
|
1333
|
+
return AsyncInvoker(self, http_info)
|
1334
|
+
|
1335
|
+
def _batch_start_jobs_http_info(self, 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
|
+
}
|
1172
1342
|
|
1173
|
-
def _batch_start_jobs_with_http_info(self, request):
|
1174
1343
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
1175
1344
|
|
1176
1345
|
cname = None
|
@@ -1187,11 +1356,11 @@ class DrsAsyncClient(Client):
|
|
1187
1356
|
|
1188
1357
|
form_params = {}
|
1189
1358
|
|
1190
|
-
|
1359
|
+
body = None
|
1191
1360
|
if 'body' in local_var_params:
|
1192
|
-
|
1361
|
+
body = local_var_params['body']
|
1193
1362
|
if isinstance(request, SdkStreamRequest):
|
1194
|
-
|
1363
|
+
body = request.get_file_stream()
|
1195
1364
|
|
1196
1365
|
response_headers = []
|
1197
1366
|
|
@@ -1200,20 +1369,16 @@ class DrsAsyncClient(Client):
|
|
1200
1369
|
|
1201
1370
|
auth_settings = []
|
1202
1371
|
|
1203
|
-
|
1204
|
-
|
1205
|
-
|
1206
|
-
|
1207
|
-
|
1208
|
-
|
1209
|
-
|
1210
|
-
|
1211
|
-
|
1212
|
-
|
1213
|
-
response_headers=response_headers,
|
1214
|
-
auth_settings=auth_settings,
|
1215
|
-
collection_formats=collection_formats,
|
1216
|
-
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
|
1217
1382
|
|
1218
1383
|
def batch_stop_jobs_async(self, request):
|
1219
1384
|
"""批量暂停任务
|
@@ -1227,9 +1392,21 @@ class DrsAsyncClient(Client):
|
|
1227
1392
|
:type request: :class:`huaweicloudsdkdrs.v3.BatchStopJobsRequest`
|
1228
1393
|
:rtype: :class:`huaweicloudsdkdrs.v3.BatchStopJobsResponse`
|
1229
1394
|
"""
|
1230
|
-
|
1395
|
+
http_info = self._batch_stop_jobs_http_info(request)
|
1396
|
+
return self._call_api(**http_info)
|
1397
|
+
|
1398
|
+
def batch_stop_jobs_async_invoker(self, request):
|
1399
|
+
http_info = self._batch_stop_jobs_http_info(request)
|
1400
|
+
return AsyncInvoker(self, http_info)
|
1401
|
+
|
1402
|
+
def _batch_stop_jobs_http_info(self, 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
|
+
}
|
1231
1409
|
|
1232
|
-
def _batch_stop_jobs_with_http_info(self, request):
|
1233
1410
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
1234
1411
|
|
1235
1412
|
cname = None
|
@@ -1246,11 +1423,11 @@ class DrsAsyncClient(Client):
|
|
1246
1423
|
|
1247
1424
|
form_params = {}
|
1248
1425
|
|
1249
|
-
|
1426
|
+
body = None
|
1250
1427
|
if 'body' in local_var_params:
|
1251
|
-
|
1428
|
+
body = local_var_params['body']
|
1252
1429
|
if isinstance(request, SdkStreamRequest):
|
1253
|
-
|
1430
|
+
body = request.get_file_stream()
|
1254
1431
|
|
1255
1432
|
response_headers = []
|
1256
1433
|
|
@@ -1259,20 +1436,16 @@ class DrsAsyncClient(Client):
|
|
1259
1436
|
|
1260
1437
|
auth_settings = []
|
1261
1438
|
|
1262
|
-
|
1263
|
-
|
1264
|
-
|
1265
|
-
|
1266
|
-
|
1267
|
-
|
1268
|
-
|
1269
|
-
|
1270
|
-
|
1271
|
-
|
1272
|
-
response_headers=response_headers,
|
1273
|
-
auth_settings=auth_settings,
|
1274
|
-
collection_formats=collection_formats,
|
1275
|
-
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
|
1276
1449
|
|
1277
1450
|
def batch_switchover_async(self, request):
|
1278
1451
|
"""批量主备倒换
|
@@ -1286,9 +1459,21 @@ class DrsAsyncClient(Client):
|
|
1286
1459
|
:type request: :class:`huaweicloudsdkdrs.v3.BatchSwitchoverRequest`
|
1287
1460
|
:rtype: :class:`huaweicloudsdkdrs.v3.BatchSwitchoverResponse`
|
1288
1461
|
"""
|
1289
|
-
|
1462
|
+
http_info = self._batch_switchover_http_info(request)
|
1463
|
+
return self._call_api(**http_info)
|
1464
|
+
|
1465
|
+
def batch_switchover_async_invoker(self, request):
|
1466
|
+
http_info = self._batch_switchover_http_info(request)
|
1467
|
+
return AsyncInvoker(self, http_info)
|
1468
|
+
|
1469
|
+
def _batch_switchover_http_info(self, 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
|
+
}
|
1290
1476
|
|
1291
|
-
def _batch_switchover_with_http_info(self, request):
|
1292
1477
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
1293
1478
|
|
1294
1479
|
cname = None
|
@@ -1305,11 +1490,11 @@ class DrsAsyncClient(Client):
|
|
1305
1490
|
|
1306
1491
|
form_params = {}
|
1307
1492
|
|
1308
|
-
|
1493
|
+
body = None
|
1309
1494
|
if 'body' in local_var_params:
|
1310
|
-
|
1495
|
+
body = local_var_params['body']
|
1311
1496
|
if isinstance(request, SdkStreamRequest):
|
1312
|
-
|
1497
|
+
body = request.get_file_stream()
|
1313
1498
|
|
1314
1499
|
response_headers = []
|
1315
1500
|
|
@@ -1318,20 +1503,16 @@ class DrsAsyncClient(Client):
|
|
1318
1503
|
|
1319
1504
|
auth_settings = []
|
1320
1505
|
|
1321
|
-
|
1322
|
-
|
1323
|
-
|
1324
|
-
|
1325
|
-
|
1326
|
-
|
1327
|
-
|
1328
|
-
|
1329
|
-
|
1330
|
-
|
1331
|
-
response_headers=response_headers,
|
1332
|
-
auth_settings=auth_settings,
|
1333
|
-
collection_formats=collection_formats,
|
1334
|
-
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
|
1335
1516
|
|
1336
1517
|
def batch_update_job_async(self, request):
|
1337
1518
|
"""批量修改任务
|
@@ -1345,9 +1526,21 @@ class DrsAsyncClient(Client):
|
|
1345
1526
|
:type request: :class:`huaweicloudsdkdrs.v3.BatchUpdateJobRequest`
|
1346
1527
|
:rtype: :class:`huaweicloudsdkdrs.v3.BatchUpdateJobResponse`
|
1347
1528
|
"""
|
1348
|
-
|
1529
|
+
http_info = self._batch_update_job_http_info(request)
|
1530
|
+
return self._call_api(**http_info)
|
1531
|
+
|
1532
|
+
def batch_update_job_async_invoker(self, request):
|
1533
|
+
http_info = self._batch_update_job_http_info(request)
|
1534
|
+
return AsyncInvoker(self, http_info)
|
1535
|
+
|
1536
|
+
def _batch_update_job_http_info(self, 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
|
+
}
|
1349
1543
|
|
1350
|
-
def _batch_update_job_with_http_info(self, request):
|
1351
1544
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
1352
1545
|
|
1353
1546
|
cname = None
|
@@ -1364,11 +1557,11 @@ class DrsAsyncClient(Client):
|
|
1364
1557
|
|
1365
1558
|
form_params = {}
|
1366
1559
|
|
1367
|
-
|
1560
|
+
body = None
|
1368
1561
|
if 'body' in local_var_params:
|
1369
|
-
|
1562
|
+
body = local_var_params['body']
|
1370
1563
|
if isinstance(request, SdkStreamRequest):
|
1371
|
-
|
1564
|
+
body = request.get_file_stream()
|
1372
1565
|
|
1373
1566
|
response_headers = []
|
1374
1567
|
|
@@ -1377,20 +1570,16 @@ class DrsAsyncClient(Client):
|
|
1377
1570
|
|
1378
1571
|
auth_settings = []
|
1379
1572
|
|
1380
|
-
|
1381
|
-
|
1382
|
-
|
1383
|
-
|
1384
|
-
|
1385
|
-
|
1386
|
-
|
1387
|
-
|
1388
|
-
|
1389
|
-
|
1390
|
-
response_headers=response_headers,
|
1391
|
-
auth_settings=auth_settings,
|
1392
|
-
collection_formats=collection_formats,
|
1393
|
-
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
|
1394
1583
|
|
1395
1584
|
def batch_update_user_async(self, request):
|
1396
1585
|
"""批量更新迁移用户信息
|
@@ -1404,9 +1593,21 @@ class DrsAsyncClient(Client):
|
|
1404
1593
|
:type request: :class:`huaweicloudsdkdrs.v3.BatchUpdateUserRequest`
|
1405
1594
|
:rtype: :class:`huaweicloudsdkdrs.v3.BatchUpdateUserResponse`
|
1406
1595
|
"""
|
1407
|
-
|
1596
|
+
http_info = self._batch_update_user_http_info(request)
|
1597
|
+
return self._call_api(**http_info)
|
1598
|
+
|
1599
|
+
def batch_update_user_async_invoker(self, request):
|
1600
|
+
http_info = self._batch_update_user_http_info(request)
|
1601
|
+
return AsyncInvoker(self, http_info)
|
1602
|
+
|
1603
|
+
def _batch_update_user_http_info(self, 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
|
+
}
|
1408
1610
|
|
1409
|
-
def _batch_update_user_with_http_info(self, request):
|
1410
1611
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
1411
1612
|
|
1412
1613
|
cname = None
|
@@ -1423,11 +1624,11 @@ class DrsAsyncClient(Client):
|
|
1423
1624
|
|
1424
1625
|
form_params = {}
|
1425
1626
|
|
1426
|
-
|
1627
|
+
body = None
|
1427
1628
|
if 'body' in local_var_params:
|
1428
|
-
|
1629
|
+
body = local_var_params['body']
|
1429
1630
|
if isinstance(request, SdkStreamRequest):
|
1430
|
-
|
1631
|
+
body = request.get_file_stream()
|
1431
1632
|
|
1432
1633
|
response_headers = []
|
1433
1634
|
|
@@ -1436,20 +1637,16 @@ class DrsAsyncClient(Client):
|
|
1436
1637
|
|
1437
1638
|
auth_settings = []
|
1438
1639
|
|
1439
|
-
|
1440
|
-
|
1441
|
-
|
1442
|
-
|
1443
|
-
|
1444
|
-
|
1445
|
-
|
1446
|
-
|
1447
|
-
|
1448
|
-
|
1449
|
-
response_headers=response_headers,
|
1450
|
-
auth_settings=auth_settings,
|
1451
|
-
collection_formats=collection_formats,
|
1452
|
-
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
|
1453
1650
|
|
1454
1651
|
def batch_validate_clusters_connections_async(self, request):
|
1455
1652
|
"""批量测试连接-集群模式
|
@@ -1464,9 +1661,21 @@ class DrsAsyncClient(Client):
|
|
1464
1661
|
:type request: :class:`huaweicloudsdkdrs.v3.BatchValidateClustersConnectionsRequest`
|
1465
1662
|
:rtype: :class:`huaweicloudsdkdrs.v3.BatchValidateClustersConnectionsResponse`
|
1466
1663
|
"""
|
1467
|
-
|
1664
|
+
http_info = self._batch_validate_clusters_connections_http_info(request)
|
1665
|
+
return self._call_api(**http_info)
|
1666
|
+
|
1667
|
+
def batch_validate_clusters_connections_async_invoker(self, request):
|
1668
|
+
http_info = self._batch_validate_clusters_connections_http_info(request)
|
1669
|
+
return AsyncInvoker(self, http_info)
|
1670
|
+
|
1671
|
+
def _batch_validate_clusters_connections_http_info(self, 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
|
+
}
|
1468
1678
|
|
1469
|
-
def _batch_validate_clusters_connections_with_http_info(self, request):
|
1470
1679
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
1471
1680
|
|
1472
1681
|
cname = None
|
@@ -1483,11 +1692,11 @@ class DrsAsyncClient(Client):
|
|
1483
1692
|
|
1484
1693
|
form_params = {}
|
1485
1694
|
|
1486
|
-
|
1695
|
+
body = None
|
1487
1696
|
if 'body' in local_var_params:
|
1488
|
-
|
1697
|
+
body = local_var_params['body']
|
1489
1698
|
if isinstance(request, SdkStreamRequest):
|
1490
|
-
|
1699
|
+
body = request.get_file_stream()
|
1491
1700
|
|
1492
1701
|
response_headers = []
|
1493
1702
|
|
@@ -1496,20 +1705,16 @@ class DrsAsyncClient(Client):
|
|
1496
1705
|
|
1497
1706
|
auth_settings = []
|
1498
1707
|
|
1499
|
-
|
1500
|
-
|
1501
|
-
|
1502
|
-
|
1503
|
-
|
1504
|
-
|
1505
|
-
|
1506
|
-
|
1507
|
-
|
1508
|
-
|
1509
|
-
response_headers=response_headers,
|
1510
|
-
auth_settings=auth_settings,
|
1511
|
-
collection_formats=collection_formats,
|
1512
|
-
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
|
1513
1718
|
|
1514
1719
|
def batch_validate_connections_async(self, request):
|
1515
1720
|
"""批量测试连接
|
@@ -1523,9 +1728,21 @@ class DrsAsyncClient(Client):
|
|
1523
1728
|
:type request: :class:`huaweicloudsdkdrs.v3.BatchValidateConnectionsRequest`
|
1524
1729
|
:rtype: :class:`huaweicloudsdkdrs.v3.BatchValidateConnectionsResponse`
|
1525
1730
|
"""
|
1526
|
-
|
1731
|
+
http_info = self._batch_validate_connections_http_info(request)
|
1732
|
+
return self._call_api(**http_info)
|
1733
|
+
|
1734
|
+
def batch_validate_connections_async_invoker(self, request):
|
1735
|
+
http_info = self._batch_validate_connections_http_info(request)
|
1736
|
+
return AsyncInvoker(self, http_info)
|
1737
|
+
|
1738
|
+
def _batch_validate_connections_http_info(self, 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
|
+
}
|
1527
1745
|
|
1528
|
-
def _batch_validate_connections_with_http_info(self, request):
|
1529
1746
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
1530
1747
|
|
1531
1748
|
cname = None
|
@@ -1542,11 +1759,11 @@ class DrsAsyncClient(Client):
|
|
1542
1759
|
|
1543
1760
|
form_params = {}
|
1544
1761
|
|
1545
|
-
|
1762
|
+
body = None
|
1546
1763
|
if 'body' in local_var_params:
|
1547
|
-
|
1764
|
+
body = local_var_params['body']
|
1548
1765
|
if isinstance(request, SdkStreamRequest):
|
1549
|
-
|
1766
|
+
body = request.get_file_stream()
|
1550
1767
|
|
1551
1768
|
response_headers = []
|
1552
1769
|
|
@@ -1555,20 +1772,16 @@ class DrsAsyncClient(Client):
|
|
1555
1772
|
|
1556
1773
|
auth_settings = []
|
1557
1774
|
|
1558
|
-
|
1559
|
-
|
1560
|
-
|
1561
|
-
|
1562
|
-
|
1563
|
-
|
1564
|
-
|
1565
|
-
|
1566
|
-
|
1567
|
-
|
1568
|
-
response_headers=response_headers,
|
1569
|
-
auth_settings=auth_settings,
|
1570
|
-
collection_formats=collection_formats,
|
1571
|
-
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
|
1572
1785
|
|
1573
1786
|
def create_compare_task_async(self, request):
|
1574
1787
|
"""创建对比任务
|
@@ -1582,9 +1795,21 @@ class DrsAsyncClient(Client):
|
|
1582
1795
|
:type request: :class:`huaweicloudsdkdrs.v3.CreateCompareTaskRequest`
|
1583
1796
|
:rtype: :class:`huaweicloudsdkdrs.v3.CreateCompareTaskResponse`
|
1584
1797
|
"""
|
1585
|
-
|
1798
|
+
http_info = self._create_compare_task_http_info(request)
|
1799
|
+
return self._call_api(**http_info)
|
1800
|
+
|
1801
|
+
def create_compare_task_async_invoker(self, request):
|
1802
|
+
http_info = self._create_compare_task_http_info(request)
|
1803
|
+
return AsyncInvoker(self, http_info)
|
1804
|
+
|
1805
|
+
def _create_compare_task_http_info(self, 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
|
+
}
|
1586
1812
|
|
1587
|
-
def _create_compare_task_with_http_info(self, request):
|
1588
1813
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
1589
1814
|
|
1590
1815
|
cname = None
|
@@ -1601,11 +1826,11 @@ class DrsAsyncClient(Client):
|
|
1601
1826
|
|
1602
1827
|
form_params = {}
|
1603
1828
|
|
1604
|
-
|
1829
|
+
body = None
|
1605
1830
|
if 'body' in local_var_params:
|
1606
|
-
|
1831
|
+
body = local_var_params['body']
|
1607
1832
|
if isinstance(request, SdkStreamRequest):
|
1608
|
-
|
1833
|
+
body = request.get_file_stream()
|
1609
1834
|
|
1610
1835
|
response_headers = []
|
1611
1836
|
|
@@ -1614,20 +1839,16 @@ class DrsAsyncClient(Client):
|
|
1614
1839
|
|
1615
1840
|
auth_settings = []
|
1616
1841
|
|
1617
|
-
|
1618
|
-
|
1619
|
-
|
1620
|
-
|
1621
|
-
|
1622
|
-
|
1623
|
-
|
1624
|
-
|
1625
|
-
|
1626
|
-
|
1627
|
-
response_headers=response_headers,
|
1628
|
-
auth_settings=auth_settings,
|
1629
|
-
collection_formats=collection_formats,
|
1630
|
-
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
|
1631
1852
|
|
1632
1853
|
def list_available_zone_async(self, request):
|
1633
1854
|
"""查询规格未售罄的可用区
|
@@ -1641,9 +1862,21 @@ class DrsAsyncClient(Client):
|
|
1641
1862
|
:type request: :class:`huaweicloudsdkdrs.v3.ListAvailableZoneRequest`
|
1642
1863
|
:rtype: :class:`huaweicloudsdkdrs.v3.ListAvailableZoneResponse`
|
1643
1864
|
"""
|
1644
|
-
|
1865
|
+
http_info = self._list_available_zone_http_info(request)
|
1866
|
+
return self._call_api(**http_info)
|
1867
|
+
|
1868
|
+
def list_available_zone_async_invoker(self, request):
|
1869
|
+
http_info = self._list_available_zone_http_info(request)
|
1870
|
+
return AsyncInvoker(self, http_info)
|
1871
|
+
|
1872
|
+
def _list_available_zone_http_info(self, 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
|
+
}
|
1645
1879
|
|
1646
|
-
def _list_available_zone_with_http_info(self, request):
|
1647
1880
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
1648
1881
|
|
1649
1882
|
cname = None
|
@@ -1660,11 +1893,11 @@ class DrsAsyncClient(Client):
|
|
1660
1893
|
|
1661
1894
|
form_params = {}
|
1662
1895
|
|
1663
|
-
|
1896
|
+
body = None
|
1664
1897
|
if 'body' in local_var_params:
|
1665
|
-
|
1898
|
+
body = local_var_params['body']
|
1666
1899
|
if isinstance(request, SdkStreamRequest):
|
1667
|
-
|
1900
|
+
body = request.get_file_stream()
|
1668
1901
|
|
1669
1902
|
response_headers = []
|
1670
1903
|
|
@@ -1673,20 +1906,16 @@ class DrsAsyncClient(Client):
|
|
1673
1906
|
|
1674
1907
|
auth_settings = []
|
1675
1908
|
|
1676
|
-
|
1677
|
-
|
1678
|
-
|
1679
|
-
|
1680
|
-
|
1681
|
-
|
1682
|
-
|
1683
|
-
|
1684
|
-
|
1685
|
-
|
1686
|
-
response_headers=response_headers,
|
1687
|
-
auth_settings=auth_settings,
|
1688
|
-
collection_formats=collection_formats,
|
1689
|
-
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
|
1690
1919
|
|
1691
1920
|
def list_compare_result_async(self, request):
|
1692
1921
|
"""查询对比结果
|
@@ -1700,9 +1929,21 @@ class DrsAsyncClient(Client):
|
|
1700
1929
|
:type request: :class:`huaweicloudsdkdrs.v3.ListCompareResultRequest`
|
1701
1930
|
:rtype: :class:`huaweicloudsdkdrs.v3.ListCompareResultResponse`
|
1702
1931
|
"""
|
1703
|
-
|
1932
|
+
http_info = self._list_compare_result_http_info(request)
|
1933
|
+
return self._call_api(**http_info)
|
1934
|
+
|
1935
|
+
def list_compare_result_async_invoker(self, request):
|
1936
|
+
http_info = self._list_compare_result_http_info(request)
|
1937
|
+
return AsyncInvoker(self, http_info)
|
1938
|
+
|
1939
|
+
def _list_compare_result_http_info(self, 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
|
+
}
|
1704
1946
|
|
1705
|
-
def _list_compare_result_with_http_info(self, request):
|
1706
1947
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
1707
1948
|
|
1708
1949
|
cname = None
|
@@ -1719,11 +1960,11 @@ class DrsAsyncClient(Client):
|
|
1719
1960
|
|
1720
1961
|
form_params = {}
|
1721
1962
|
|
1722
|
-
|
1963
|
+
body = None
|
1723
1964
|
if 'body' in local_var_params:
|
1724
|
-
|
1965
|
+
body = local_var_params['body']
|
1725
1966
|
if isinstance(request, SdkStreamRequest):
|
1726
|
-
|
1967
|
+
body = request.get_file_stream()
|
1727
1968
|
|
1728
1969
|
response_headers = []
|
1729
1970
|
|
@@ -1732,20 +1973,16 @@ class DrsAsyncClient(Client):
|
|
1732
1973
|
|
1733
1974
|
auth_settings = []
|
1734
1975
|
|
1735
|
-
|
1736
|
-
|
1737
|
-
|
1738
|
-
|
1739
|
-
|
1740
|
-
|
1741
|
-
|
1742
|
-
|
1743
|
-
|
1744
|
-
|
1745
|
-
response_headers=response_headers,
|
1746
|
-
auth_settings=auth_settings,
|
1747
|
-
collection_formats=collection_formats,
|
1748
|
-
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
|
1749
1986
|
|
1750
1987
|
def list_users_async(self, request):
|
1751
1988
|
"""获取源库迁移用户列表
|
@@ -1759,9 +1996,21 @@ class DrsAsyncClient(Client):
|
|
1759
1996
|
:type request: :class:`huaweicloudsdkdrs.v3.ListUsersRequest`
|
1760
1997
|
:rtype: :class:`huaweicloudsdkdrs.v3.ListUsersResponse`
|
1761
1998
|
"""
|
1762
|
-
|
1999
|
+
http_info = self._list_users_http_info(request)
|
2000
|
+
return self._call_api(**http_info)
|
2001
|
+
|
2002
|
+
def list_users_async_invoker(self, request):
|
2003
|
+
http_info = self._list_users_http_info(request)
|
2004
|
+
return AsyncInvoker(self, http_info)
|
2005
|
+
|
2006
|
+
def _list_users_http_info(self, 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
|
+
}
|
1763
2013
|
|
1764
|
-
def _list_users_with_http_info(self, request):
|
1765
2014
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
1766
2015
|
|
1767
2016
|
cname = None
|
@@ -1780,9 +2029,9 @@ class DrsAsyncClient(Client):
|
|
1780
2029
|
|
1781
2030
|
form_params = {}
|
1782
2031
|
|
1783
|
-
|
2032
|
+
body = None
|
1784
2033
|
if isinstance(request, SdkStreamRequest):
|
1785
|
-
|
2034
|
+
body = request.get_file_stream()
|
1786
2035
|
|
1787
2036
|
response_headers = []
|
1788
2037
|
|
@@ -1791,20 +2040,16 @@ class DrsAsyncClient(Client):
|
|
1791
2040
|
|
1792
2041
|
auth_settings = []
|
1793
2042
|
|
1794
|
-
|
1795
|
-
|
1796
|
-
|
1797
|
-
|
1798
|
-
|
1799
|
-
|
1800
|
-
|
1801
|
-
|
1802
|
-
|
1803
|
-
|
1804
|
-
response_headers=response_headers,
|
1805
|
-
auth_settings=auth_settings,
|
1806
|
-
collection_formats=collection_formats,
|
1807
|
-
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
|
1808
2053
|
|
1809
2054
|
def show_job_list_async(self, request):
|
1810
2055
|
"""查询租户任务列表
|
@@ -1818,9 +2063,21 @@ class DrsAsyncClient(Client):
|
|
1818
2063
|
:type request: :class:`huaweicloudsdkdrs.v3.ShowJobListRequest`
|
1819
2064
|
:rtype: :class:`huaweicloudsdkdrs.v3.ShowJobListResponse`
|
1820
2065
|
"""
|
1821
|
-
|
2066
|
+
http_info = self._show_job_list_http_info(request)
|
2067
|
+
return self._call_api(**http_info)
|
2068
|
+
|
2069
|
+
def show_job_list_async_invoker(self, request):
|
2070
|
+
http_info = self._show_job_list_http_info(request)
|
2071
|
+
return AsyncInvoker(self, http_info)
|
2072
|
+
|
2073
|
+
def _show_job_list_http_info(self, 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
|
+
}
|
1822
2080
|
|
1823
|
-
def _show_job_list_with_http_info(self, request):
|
1824
2081
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
1825
2082
|
|
1826
2083
|
cname = None
|
@@ -1837,11 +2094,11 @@ class DrsAsyncClient(Client):
|
|
1837
2094
|
|
1838
2095
|
form_params = {}
|
1839
2096
|
|
1840
|
-
|
2097
|
+
body = None
|
1841
2098
|
if 'body' in local_var_params:
|
1842
|
-
|
2099
|
+
body = local_var_params['body']
|
1843
2100
|
if isinstance(request, SdkStreamRequest):
|
1844
|
-
|
2101
|
+
body = request.get_file_stream()
|
1845
2102
|
|
1846
2103
|
response_headers = []
|
1847
2104
|
|
@@ -1850,20 +2107,16 @@ class DrsAsyncClient(Client):
|
|
1850
2107
|
|
1851
2108
|
auth_settings = []
|
1852
2109
|
|
1853
|
-
|
1854
|
-
|
1855
|
-
|
1856
|
-
|
1857
|
-
|
1858
|
-
|
1859
|
-
|
1860
|
-
|
1861
|
-
|
1862
|
-
|
1863
|
-
response_headers=response_headers,
|
1864
|
-
auth_settings=auth_settings,
|
1865
|
-
collection_formats=collection_formats,
|
1866
|
-
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
|
1867
2120
|
|
1868
2121
|
def show_monitoring_data_async(self, request):
|
1869
2122
|
"""查询容灾监控数据
|
@@ -1877,9 +2130,21 @@ class DrsAsyncClient(Client):
|
|
1877
2130
|
:type request: :class:`huaweicloudsdkdrs.v3.ShowMonitoringDataRequest`
|
1878
2131
|
:rtype: :class:`huaweicloudsdkdrs.v3.ShowMonitoringDataResponse`
|
1879
2132
|
"""
|
1880
|
-
|
2133
|
+
http_info = self._show_monitoring_data_http_info(request)
|
2134
|
+
return self._call_api(**http_info)
|
2135
|
+
|
2136
|
+
def show_monitoring_data_async_invoker(self, request):
|
2137
|
+
http_info = self._show_monitoring_data_http_info(request)
|
2138
|
+
return AsyncInvoker(self, http_info)
|
2139
|
+
|
2140
|
+
def _show_monitoring_data_http_info(self, 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
|
+
}
|
1881
2147
|
|
1882
|
-
def _show_monitoring_data_with_http_info(self, request):
|
1883
2148
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
1884
2149
|
|
1885
2150
|
cname = None
|
@@ -1896,11 +2161,11 @@ class DrsAsyncClient(Client):
|
|
1896
2161
|
|
1897
2162
|
form_params = {}
|
1898
2163
|
|
1899
|
-
|
2164
|
+
body = None
|
1900
2165
|
if 'body' in local_var_params:
|
1901
|
-
|
2166
|
+
body = local_var_params['body']
|
1902
2167
|
if isinstance(request, SdkStreamRequest):
|
1903
|
-
|
2168
|
+
body = request.get_file_stream()
|
1904
2169
|
|
1905
2170
|
response_headers = []
|
1906
2171
|
|
@@ -1909,20 +2174,16 @@ class DrsAsyncClient(Client):
|
|
1909
2174
|
|
1910
2175
|
auth_settings = []
|
1911
2176
|
|
1912
|
-
|
1913
|
-
|
1914
|
-
|
1915
|
-
|
1916
|
-
|
1917
|
-
|
1918
|
-
|
1919
|
-
|
1920
|
-
|
1921
|
-
|
1922
|
-
response_headers=response_headers,
|
1923
|
-
auth_settings=auth_settings,
|
1924
|
-
collection_formats=collection_formats,
|
1925
|
-
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
|
1926
2187
|
|
1927
2188
|
def show_quotas_async(self, request):
|
1928
2189
|
"""查询配额
|
@@ -1936,9 +2197,21 @@ class DrsAsyncClient(Client):
|
|
1936
2197
|
:type request: :class:`huaweicloudsdkdrs.v3.ShowQuotasRequest`
|
1937
2198
|
:rtype: :class:`huaweicloudsdkdrs.v3.ShowQuotasResponse`
|
1938
2199
|
"""
|
1939
|
-
|
2200
|
+
http_info = self._show_quotas_http_info(request)
|
2201
|
+
return self._call_api(**http_info)
|
2202
|
+
|
2203
|
+
def show_quotas_async_invoker(self, request):
|
2204
|
+
http_info = self._show_quotas_http_info(request)
|
2205
|
+
return AsyncInvoker(self, http_info)
|
2206
|
+
|
2207
|
+
def _show_quotas_http_info(self, 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
|
+
}
|
1940
2214
|
|
1941
|
-
def _show_quotas_with_http_info(self, request):
|
1942
2215
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
1943
2216
|
|
1944
2217
|
cname = None
|
@@ -1955,9 +2228,9 @@ class DrsAsyncClient(Client):
|
|
1955
2228
|
|
1956
2229
|
form_params = {}
|
1957
2230
|
|
1958
|
-
|
2231
|
+
body = None
|
1959
2232
|
if isinstance(request, SdkStreamRequest):
|
1960
|
-
|
2233
|
+
body = request.get_file_stream()
|
1961
2234
|
|
1962
2235
|
response_headers = []
|
1963
2236
|
|
@@ -1966,20 +2239,16 @@ class DrsAsyncClient(Client):
|
|
1966
2239
|
|
1967
2240
|
auth_settings = []
|
1968
2241
|
|
1969
|
-
|
1970
|
-
|
1971
|
-
|
1972
|
-
|
1973
|
-
|
1974
|
-
|
1975
|
-
|
1976
|
-
|
1977
|
-
|
1978
|
-
|
1979
|
-
response_headers=response_headers,
|
1980
|
-
auth_settings=auth_settings,
|
1981
|
-
collection_formats=collection_formats,
|
1982
|
-
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
|
1983
2252
|
|
1984
2253
|
def update_params_async(self, request):
|
1985
2254
|
"""修改数据库参数
|
@@ -1993,9 +2262,21 @@ class DrsAsyncClient(Client):
|
|
1993
2262
|
:type request: :class:`huaweicloudsdkdrs.v3.UpdateParamsRequest`
|
1994
2263
|
:rtype: :class:`huaweicloudsdkdrs.v3.UpdateParamsResponse`
|
1995
2264
|
"""
|
1996
|
-
|
2265
|
+
http_info = self._update_params_http_info(request)
|
2266
|
+
return self._call_api(**http_info)
|
2267
|
+
|
2268
|
+
def update_params_async_invoker(self, request):
|
2269
|
+
http_info = self._update_params_http_info(request)
|
2270
|
+
return AsyncInvoker(self, http_info)
|
2271
|
+
|
2272
|
+
def _update_params_http_info(self, 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
|
+
}
|
1997
2279
|
|
1998
|
-
def _update_params_with_http_info(self, request):
|
1999
2280
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
2000
2281
|
|
2001
2282
|
cname = None
|
@@ -2014,11 +2295,11 @@ class DrsAsyncClient(Client):
|
|
2014
2295
|
|
2015
2296
|
form_params = {}
|
2016
2297
|
|
2017
|
-
|
2298
|
+
body = None
|
2018
2299
|
if 'body' in local_var_params:
|
2019
|
-
|
2300
|
+
body = local_var_params['body']
|
2020
2301
|
if isinstance(request, SdkStreamRequest):
|
2021
|
-
|
2302
|
+
body = request.get_file_stream()
|
2022
2303
|
|
2023
2304
|
response_headers = []
|
2024
2305
|
|
@@ -2027,20 +2308,16 @@ class DrsAsyncClient(Client):
|
|
2027
2308
|
|
2028
2309
|
auth_settings = []
|
2029
2310
|
|
2030
|
-
|
2031
|
-
|
2032
|
-
|
2033
|
-
|
2034
|
-
|
2035
|
-
|
2036
|
-
|
2037
|
-
|
2038
|
-
|
2039
|
-
|
2040
|
-
response_headers=response_headers,
|
2041
|
-
auth_settings=auth_settings,
|
2042
|
-
collection_formats=collection_formats,
|
2043
|
-
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
|
2044
2321
|
|
2045
2322
|
def update_tuning_params_async(self, request):
|
2046
2323
|
"""高级设置
|
@@ -2054,9 +2331,21 @@ class DrsAsyncClient(Client):
|
|
2054
2331
|
:type request: :class:`huaweicloudsdkdrs.v3.UpdateTuningParamsRequest`
|
2055
2332
|
:rtype: :class:`huaweicloudsdkdrs.v3.UpdateTuningParamsResponse`
|
2056
2333
|
"""
|
2057
|
-
|
2334
|
+
http_info = self._update_tuning_params_http_info(request)
|
2335
|
+
return self._call_api(**http_info)
|
2336
|
+
|
2337
|
+
def update_tuning_params_async_invoker(self, request):
|
2338
|
+
http_info = self._update_tuning_params_http_info(request)
|
2339
|
+
return AsyncInvoker(self, http_info)
|
2340
|
+
|
2341
|
+
def _update_tuning_params_http_info(self, 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
|
+
}
|
2058
2348
|
|
2059
|
-
def _update_tuning_params_with_http_info(self, request):
|
2060
2349
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
2061
2350
|
|
2062
2351
|
cname = None
|
@@ -2075,11 +2364,11 @@ class DrsAsyncClient(Client):
|
|
2075
2364
|
|
2076
2365
|
form_params = {}
|
2077
2366
|
|
2078
|
-
|
2367
|
+
body = None
|
2079
2368
|
if 'body' in local_var_params:
|
2080
|
-
|
2369
|
+
body = local_var_params['body']
|
2081
2370
|
if isinstance(request, SdkStreamRequest):
|
2082
|
-
|
2371
|
+
body = request.get_file_stream()
|
2083
2372
|
|
2084
2373
|
response_headers = []
|
2085
2374
|
|
@@ -2088,20 +2377,26 @@ class DrsAsyncClient(Client):
|
|
2088
2377
|
|
2089
2378
|
auth_settings = []
|
2090
2379
|
|
2091
|
-
|
2092
|
-
|
2093
|
-
|
2094
|
-
|
2095
|
-
|
2096
|
-
|
2097
|
-
|
2098
|
-
|
2099
|
-
|
2100
|
-
|
2101
|
-
|
2102
|
-
|
2103
|
-
|
2104
|
-
|
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
|
+
kwargs["async_request"] = True
|
2394
|
+
return self.do_http_request(**kwargs)
|
2395
|
+
except TypeError:
|
2396
|
+
import inspect
|
2397
|
+
params = inspect.signature(self.do_http_request).parameters
|
2398
|
+
http_info = {param_name: kwargs.get(param_name) for param_name in params if param_name in kwargs}
|
2399
|
+
return self.do_http_request(**http_info)
|
2105
2400
|
|
2106
2401
|
def call_api(self, resource_path, method, path_params=None, query_params=None, header_params=None, body=None,
|
2107
2402
|
post_params=None, cname=None, response_type=None, response_headers=None, auth_settings=None,
|
@@ -2140,4 +2435,4 @@ class DrsAsyncClient(Client):
|
|
2140
2435
|
response_headers=response_headers,
|
2141
2436
|
collection_formats=collection_formats,
|
2142
2437
|
request_type=request_type,
|
2143
|
-
|
2438
|
+
async_request=True)
|