huaweicloudsdkcbr 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.
- huaweicloudsdkcbr/v1/cbr_async_client.py +1685 -1166
- huaweicloudsdkcbr/v1/cbr_client.py +1746 -1165
- {huaweicloudsdkcbr-3.1.65.dist-info → huaweicloudsdkcbr-3.1.67.dist-info}/METADATA +2 -2
- {huaweicloudsdkcbr-3.1.65.dist-info → huaweicloudsdkcbr-3.1.67.dist-info}/RECORD +7 -7
- {huaweicloudsdkcbr-3.1.65.dist-info → huaweicloudsdkcbr-3.1.67.dist-info}/LICENSE +0 -0
- {huaweicloudsdkcbr-3.1.65.dist-info → huaweicloudsdkcbr-3.1.67.dist-info}/WHEEL +0 -0
- {huaweicloudsdkcbr-3.1.65.dist-info → huaweicloudsdkcbr-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 'huaweicloudsdkcbr'")
|
10
15
|
|
11
16
|
|
12
17
|
class CbrAsyncClient(Client):
|
@@ -39,9 +44,21 @@ class CbrAsyncClient(Client):
|
|
39
44
|
:type request: :class:`huaweicloudsdkcbr.v1.AddAgentPathRequest`
|
40
45
|
:rtype: :class:`huaweicloudsdkcbr.v1.AddAgentPathResponse`
|
41
46
|
"""
|
42
|
-
|
47
|
+
http_info = self._add_agent_path_http_info(request)
|
48
|
+
return self._call_api(**http_info)
|
49
|
+
|
50
|
+
def add_agent_path_async_invoker(self, request):
|
51
|
+
http_info = self._add_agent_path_http_info(request)
|
52
|
+
return AsyncInvoker(self, http_info)
|
53
|
+
|
54
|
+
def _add_agent_path_http_info(self, request):
|
55
|
+
http_info = {
|
56
|
+
"method": "POST",
|
57
|
+
"resource_path": "/v3/{project_id}/agents/{agent_id}/add-path",
|
58
|
+
"request_type": request.__class__.__name__,
|
59
|
+
"response_type": "AddAgentPathResponse"
|
60
|
+
}
|
43
61
|
|
44
|
-
def _add_agent_path_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 CbrAsyncClient(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 CbrAsyncClient(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 add_member_async(self, request):
|
90
103
|
"""添加备份成员
|
@@ -98,9 +111,21 @@ class CbrAsyncClient(Client):
|
|
98
111
|
:type request: :class:`huaweicloudsdkcbr.v1.AddMemberRequest`
|
99
112
|
:rtype: :class:`huaweicloudsdkcbr.v1.AddMemberResponse`
|
100
113
|
"""
|
101
|
-
|
114
|
+
http_info = self._add_member_http_info(request)
|
115
|
+
return self._call_api(**http_info)
|
116
|
+
|
117
|
+
def add_member_async_invoker(self, request):
|
118
|
+
http_info = self._add_member_http_info(request)
|
119
|
+
return AsyncInvoker(self, http_info)
|
120
|
+
|
121
|
+
def _add_member_http_info(self, request):
|
122
|
+
http_info = {
|
123
|
+
"method": "POST",
|
124
|
+
"resource_path": "/v3/{project_id}/backups/{backup_id}/members",
|
125
|
+
"request_type": request.__class__.__name__,
|
126
|
+
"response_type": "AddMemberResponse"
|
127
|
+
}
|
102
128
|
|
103
|
-
def _add_member_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 CbrAsyncClient(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 CbrAsyncClient(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 add_vault_resource_async(self, request):
|
149
170
|
"""添加资源
|
@@ -157,9 +178,21 @@ class CbrAsyncClient(Client):
|
|
157
178
|
:type request: :class:`huaweicloudsdkcbr.v1.AddVaultResourceRequest`
|
158
179
|
:rtype: :class:`huaweicloudsdkcbr.v1.AddVaultResourceResponse`
|
159
180
|
"""
|
160
|
-
|
181
|
+
http_info = self._add_vault_resource_http_info(request)
|
182
|
+
return self._call_api(**http_info)
|
183
|
+
|
184
|
+
def add_vault_resource_async_invoker(self, request):
|
185
|
+
http_info = self._add_vault_resource_http_info(request)
|
186
|
+
return AsyncInvoker(self, http_info)
|
187
|
+
|
188
|
+
def _add_vault_resource_http_info(self, request):
|
189
|
+
http_info = {
|
190
|
+
"method": "POST",
|
191
|
+
"resource_path": "/v3/{project_id}/vaults/{vault_id}/addresources",
|
192
|
+
"request_type": request.__class__.__name__,
|
193
|
+
"response_type": "AddVaultResourceResponse"
|
194
|
+
}
|
161
195
|
|
162
|
-
def _add_vault_resource_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 CbrAsyncClient(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 CbrAsyncClient(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 associate_vault_policy_async(self, request):
|
208
237
|
"""设置存储库策略
|
@@ -216,9 +245,21 @@ class CbrAsyncClient(Client):
|
|
216
245
|
:type request: :class:`huaweicloudsdkcbr.v1.AssociateVaultPolicyRequest`
|
217
246
|
:rtype: :class:`huaweicloudsdkcbr.v1.AssociateVaultPolicyResponse`
|
218
247
|
"""
|
219
|
-
|
248
|
+
http_info = self._associate_vault_policy_http_info(request)
|
249
|
+
return self._call_api(**http_info)
|
250
|
+
|
251
|
+
def associate_vault_policy_async_invoker(self, request):
|
252
|
+
http_info = self._associate_vault_policy_http_info(request)
|
253
|
+
return AsyncInvoker(self, http_info)
|
254
|
+
|
255
|
+
def _associate_vault_policy_http_info(self, request):
|
256
|
+
http_info = {
|
257
|
+
"method": "POST",
|
258
|
+
"resource_path": "/v3/{project_id}/vaults/{vault_id}/associatepolicy",
|
259
|
+
"request_type": request.__class__.__name__,
|
260
|
+
"response_type": "AssociateVaultPolicyResponse"
|
261
|
+
}
|
220
262
|
|
221
|
-
def _associate_vault_policy_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 CbrAsyncClient(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 CbrAsyncClient(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_create_and_delete_vault_tags_async(self, request):
|
267
304
|
"""批量添加删除存储库资源标签
|
@@ -282,9 +319,21 @@ class CbrAsyncClient(Client):
|
|
282
319
|
:type request: :class:`huaweicloudsdkcbr.v1.BatchCreateAndDeleteVaultTagsRequest`
|
283
320
|
:rtype: :class:`huaweicloudsdkcbr.v1.BatchCreateAndDeleteVaultTagsResponse`
|
284
321
|
"""
|
285
|
-
|
322
|
+
http_info = self._batch_create_and_delete_vault_tags_http_info(request)
|
323
|
+
return self._call_api(**http_info)
|
324
|
+
|
325
|
+
def batch_create_and_delete_vault_tags_async_invoker(self, request):
|
326
|
+
http_info = self._batch_create_and_delete_vault_tags_http_info(request)
|
327
|
+
return AsyncInvoker(self, http_info)
|
328
|
+
|
329
|
+
def _batch_create_and_delete_vault_tags_http_info(self, request):
|
330
|
+
http_info = {
|
331
|
+
"method": "POST",
|
332
|
+
"resource_path": "/v3/{project_id}/vault/{vault_id}/tags/action",
|
333
|
+
"request_type": request.__class__.__name__,
|
334
|
+
"response_type": "BatchCreateAndDeleteVaultTagsResponse"
|
335
|
+
}
|
286
336
|
|
287
|
-
def _batch_create_and_delete_vault_tags_with_http_info(self, request):
|
288
337
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
289
338
|
|
290
339
|
cname = None
|
@@ -301,11 +350,11 @@ class CbrAsyncClient(Client):
|
|
301
350
|
|
302
351
|
form_params = {}
|
303
352
|
|
304
|
-
|
353
|
+
body = None
|
305
354
|
if 'body' in local_var_params:
|
306
|
-
|
355
|
+
body = local_var_params['body']
|
307
356
|
if isinstance(request, SdkStreamRequest):
|
308
|
-
|
357
|
+
body = request.get_file_stream()
|
309
358
|
|
310
359
|
response_headers = []
|
311
360
|
|
@@ -314,20 +363,16 @@ class CbrAsyncClient(Client):
|
|
314
363
|
|
315
364
|
auth_settings = []
|
316
365
|
|
317
|
-
|
318
|
-
|
319
|
-
|
320
|
-
|
321
|
-
|
322
|
-
|
323
|
-
|
324
|
-
|
325
|
-
|
326
|
-
|
327
|
-
response_headers=response_headers,
|
328
|
-
auth_settings=auth_settings,
|
329
|
-
collection_formats=collection_formats,
|
330
|
-
request_type=request.__class__.__name__)
|
366
|
+
http_info["cname"] = cname
|
367
|
+
http_info["collection_formats"] = collection_formats
|
368
|
+
http_info["path_params"] = path_params
|
369
|
+
http_info["query_params"] = query_params
|
370
|
+
http_info["header_params"] = header_params
|
371
|
+
http_info["post_params"] = form_params
|
372
|
+
http_info["body"] = body
|
373
|
+
http_info["response_headers"] = response_headers
|
374
|
+
|
375
|
+
return http_info
|
331
376
|
|
332
377
|
def batch_update_vault_async(self, request):
|
333
378
|
"""批量修改存储库
|
@@ -341,9 +386,21 @@ class CbrAsyncClient(Client):
|
|
341
386
|
:type request: :class:`huaweicloudsdkcbr.v1.BatchUpdateVaultRequest`
|
342
387
|
:rtype: :class:`huaweicloudsdkcbr.v1.BatchUpdateVaultResponse`
|
343
388
|
"""
|
344
|
-
|
389
|
+
http_info = self._batch_update_vault_http_info(request)
|
390
|
+
return self._call_api(**http_info)
|
391
|
+
|
392
|
+
def batch_update_vault_async_invoker(self, request):
|
393
|
+
http_info = self._batch_update_vault_http_info(request)
|
394
|
+
return AsyncInvoker(self, http_info)
|
395
|
+
|
396
|
+
def _batch_update_vault_http_info(self, request):
|
397
|
+
http_info = {
|
398
|
+
"method": "PUT",
|
399
|
+
"resource_path": "/v3/{project_id}/vaults/batch-update",
|
400
|
+
"request_type": request.__class__.__name__,
|
401
|
+
"response_type": "BatchUpdateVaultResponse"
|
402
|
+
}
|
345
403
|
|
346
|
-
def _batch_update_vault_with_http_info(self, request):
|
347
404
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
348
405
|
|
349
406
|
cname = None
|
@@ -358,11 +415,11 @@ class CbrAsyncClient(Client):
|
|
358
415
|
|
359
416
|
form_params = {}
|
360
417
|
|
361
|
-
|
418
|
+
body = None
|
362
419
|
if 'body' in local_var_params:
|
363
|
-
|
420
|
+
body = local_var_params['body']
|
364
421
|
if isinstance(request, SdkStreamRequest):
|
365
|
-
|
422
|
+
body = request.get_file_stream()
|
366
423
|
|
367
424
|
response_headers = []
|
368
425
|
|
@@ -371,20 +428,16 @@ class CbrAsyncClient(Client):
|
|
371
428
|
|
372
429
|
auth_settings = []
|
373
430
|
|
374
|
-
|
375
|
-
|
376
|
-
|
377
|
-
|
378
|
-
|
379
|
-
|
380
|
-
|
381
|
-
|
382
|
-
|
383
|
-
|
384
|
-
response_headers=response_headers,
|
385
|
-
auth_settings=auth_settings,
|
386
|
-
collection_formats=collection_formats,
|
387
|
-
request_type=request.__class__.__name__)
|
431
|
+
http_info["cname"] = cname
|
432
|
+
http_info["collection_formats"] = collection_formats
|
433
|
+
http_info["path_params"] = path_params
|
434
|
+
http_info["query_params"] = query_params
|
435
|
+
http_info["header_params"] = header_params
|
436
|
+
http_info["post_params"] = form_params
|
437
|
+
http_info["body"] = body
|
438
|
+
http_info["response_headers"] = response_headers
|
439
|
+
|
440
|
+
return http_info
|
388
441
|
|
389
442
|
def check_agent_async(self, request):
|
390
443
|
"""查询agent状态
|
@@ -398,9 +451,21 @@ class CbrAsyncClient(Client):
|
|
398
451
|
:type request: :class:`huaweicloudsdkcbr.v1.CheckAgentRequest`
|
399
452
|
:rtype: :class:`huaweicloudsdkcbr.v1.CheckAgentResponse`
|
400
453
|
"""
|
401
|
-
|
454
|
+
http_info = self._check_agent_http_info(request)
|
455
|
+
return self._call_api(**http_info)
|
456
|
+
|
457
|
+
def check_agent_async_invoker(self, request):
|
458
|
+
http_info = self._check_agent_http_info(request)
|
459
|
+
return AsyncInvoker(self, http_info)
|
460
|
+
|
461
|
+
def _check_agent_http_info(self, request):
|
462
|
+
http_info = {
|
463
|
+
"method": "POST",
|
464
|
+
"resource_path": "/v3/{project_id}/agent/check",
|
465
|
+
"request_type": request.__class__.__name__,
|
466
|
+
"response_type": "CheckAgentResponse"
|
467
|
+
}
|
402
468
|
|
403
|
-
def _check_agent_with_http_info(self, request):
|
404
469
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
405
470
|
|
406
471
|
cname = None
|
@@ -415,11 +480,11 @@ class CbrAsyncClient(Client):
|
|
415
480
|
|
416
481
|
form_params = {}
|
417
482
|
|
418
|
-
|
483
|
+
body = None
|
419
484
|
if 'body' in local_var_params:
|
420
|
-
|
485
|
+
body = local_var_params['body']
|
421
486
|
if isinstance(request, SdkStreamRequest):
|
422
|
-
|
487
|
+
body = request.get_file_stream()
|
423
488
|
|
424
489
|
response_headers = []
|
425
490
|
|
@@ -428,20 +493,16 @@ class CbrAsyncClient(Client):
|
|
428
493
|
|
429
494
|
auth_settings = []
|
430
495
|
|
431
|
-
|
432
|
-
|
433
|
-
|
434
|
-
|
435
|
-
|
436
|
-
|
437
|
-
|
438
|
-
|
439
|
-
|
440
|
-
|
441
|
-
response_headers=response_headers,
|
442
|
-
auth_settings=auth_settings,
|
443
|
-
collection_formats=collection_formats,
|
444
|
-
request_type=request.__class__.__name__)
|
496
|
+
http_info["cname"] = cname
|
497
|
+
http_info["collection_formats"] = collection_formats
|
498
|
+
http_info["path_params"] = path_params
|
499
|
+
http_info["query_params"] = query_params
|
500
|
+
http_info["header_params"] = header_params
|
501
|
+
http_info["post_params"] = form_params
|
502
|
+
http_info["body"] = body
|
503
|
+
http_info["response_headers"] = response_headers
|
504
|
+
|
505
|
+
return http_info
|
445
506
|
|
446
507
|
def copy_backup_async(self, request):
|
447
508
|
"""复制备份
|
@@ -455,9 +516,21 @@ class CbrAsyncClient(Client):
|
|
455
516
|
:type request: :class:`huaweicloudsdkcbr.v1.CopyBackupRequest`
|
456
517
|
:rtype: :class:`huaweicloudsdkcbr.v1.CopyBackupResponse`
|
457
518
|
"""
|
458
|
-
|
519
|
+
http_info = self._copy_backup_http_info(request)
|
520
|
+
return self._call_api(**http_info)
|
521
|
+
|
522
|
+
def copy_backup_async_invoker(self, request):
|
523
|
+
http_info = self._copy_backup_http_info(request)
|
524
|
+
return AsyncInvoker(self, http_info)
|
525
|
+
|
526
|
+
def _copy_backup_http_info(self, request):
|
527
|
+
http_info = {
|
528
|
+
"method": "POST",
|
529
|
+
"resource_path": "/v3/{project_id}/backups/{backup_id}/replicate",
|
530
|
+
"request_type": request.__class__.__name__,
|
531
|
+
"response_type": "CopyBackupResponse"
|
532
|
+
}
|
459
533
|
|
460
|
-
def _copy_backup_with_http_info(self, request):
|
461
534
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
462
535
|
|
463
536
|
cname = None
|
@@ -474,11 +547,11 @@ class CbrAsyncClient(Client):
|
|
474
547
|
|
475
548
|
form_params = {}
|
476
549
|
|
477
|
-
|
550
|
+
body = None
|
478
551
|
if 'body' in local_var_params:
|
479
|
-
|
552
|
+
body = local_var_params['body']
|
480
553
|
if isinstance(request, SdkStreamRequest):
|
481
|
-
|
554
|
+
body = request.get_file_stream()
|
482
555
|
|
483
556
|
response_headers = []
|
484
557
|
|
@@ -487,20 +560,16 @@ class CbrAsyncClient(Client):
|
|
487
560
|
|
488
561
|
auth_settings = []
|
489
562
|
|
490
|
-
|
491
|
-
|
492
|
-
|
493
|
-
|
494
|
-
|
495
|
-
|
496
|
-
|
497
|
-
|
498
|
-
|
499
|
-
|
500
|
-
response_headers=response_headers,
|
501
|
-
auth_settings=auth_settings,
|
502
|
-
collection_formats=collection_formats,
|
503
|
-
request_type=request.__class__.__name__)
|
563
|
+
http_info["cname"] = cname
|
564
|
+
http_info["collection_formats"] = collection_formats
|
565
|
+
http_info["path_params"] = path_params
|
566
|
+
http_info["query_params"] = query_params
|
567
|
+
http_info["header_params"] = header_params
|
568
|
+
http_info["post_params"] = form_params
|
569
|
+
http_info["body"] = body
|
570
|
+
http_info["response_headers"] = response_headers
|
571
|
+
|
572
|
+
return http_info
|
504
573
|
|
505
574
|
def copy_checkpoint_async(self, request):
|
506
575
|
"""复制备份还原点
|
@@ -514,9 +583,21 @@ class CbrAsyncClient(Client):
|
|
514
583
|
:type request: :class:`huaweicloudsdkcbr.v1.CopyCheckpointRequest`
|
515
584
|
:rtype: :class:`huaweicloudsdkcbr.v1.CopyCheckpointResponse`
|
516
585
|
"""
|
517
|
-
|
586
|
+
http_info = self._copy_checkpoint_http_info(request)
|
587
|
+
return self._call_api(**http_info)
|
588
|
+
|
589
|
+
def copy_checkpoint_async_invoker(self, request):
|
590
|
+
http_info = self._copy_checkpoint_http_info(request)
|
591
|
+
return AsyncInvoker(self, http_info)
|
592
|
+
|
593
|
+
def _copy_checkpoint_http_info(self, request):
|
594
|
+
http_info = {
|
595
|
+
"method": "POST",
|
596
|
+
"resource_path": "/v3/{project_id}/checkpoints/replicate",
|
597
|
+
"request_type": request.__class__.__name__,
|
598
|
+
"response_type": "CopyCheckpointResponse"
|
599
|
+
}
|
518
600
|
|
519
|
-
def _copy_checkpoint_with_http_info(self, request):
|
520
601
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
521
602
|
|
522
603
|
cname = None
|
@@ -531,11 +612,11 @@ class CbrAsyncClient(Client):
|
|
531
612
|
|
532
613
|
form_params = {}
|
533
614
|
|
534
|
-
|
615
|
+
body = None
|
535
616
|
if 'body' in local_var_params:
|
536
|
-
|
617
|
+
body = local_var_params['body']
|
537
618
|
if isinstance(request, SdkStreamRequest):
|
538
|
-
|
619
|
+
body = request.get_file_stream()
|
539
620
|
|
540
621
|
response_headers = []
|
541
622
|
|
@@ -544,20 +625,16 @@ class CbrAsyncClient(Client):
|
|
544
625
|
|
545
626
|
auth_settings = []
|
546
627
|
|
547
|
-
|
548
|
-
|
549
|
-
|
550
|
-
|
551
|
-
|
552
|
-
|
553
|
-
|
554
|
-
|
555
|
-
|
556
|
-
|
557
|
-
response_headers=response_headers,
|
558
|
-
auth_settings=auth_settings,
|
559
|
-
collection_formats=collection_formats,
|
560
|
-
request_type=request.__class__.__name__)
|
628
|
+
http_info["cname"] = cname
|
629
|
+
http_info["collection_formats"] = collection_formats
|
630
|
+
http_info["path_params"] = path_params
|
631
|
+
http_info["query_params"] = query_params
|
632
|
+
http_info["header_params"] = header_params
|
633
|
+
http_info["post_params"] = form_params
|
634
|
+
http_info["body"] = body
|
635
|
+
http_info["response_headers"] = response_headers
|
636
|
+
|
637
|
+
return http_info
|
561
638
|
|
562
639
|
def create_checkpoint_async(self, request):
|
563
640
|
"""创建备份还原点
|
@@ -571,9 +648,21 @@ class CbrAsyncClient(Client):
|
|
571
648
|
:type request: :class:`huaweicloudsdkcbr.v1.CreateCheckpointRequest`
|
572
649
|
:rtype: :class:`huaweicloudsdkcbr.v1.CreateCheckpointResponse`
|
573
650
|
"""
|
574
|
-
|
651
|
+
http_info = self._create_checkpoint_http_info(request)
|
652
|
+
return self._call_api(**http_info)
|
653
|
+
|
654
|
+
def create_checkpoint_async_invoker(self, request):
|
655
|
+
http_info = self._create_checkpoint_http_info(request)
|
656
|
+
return AsyncInvoker(self, http_info)
|
657
|
+
|
658
|
+
def _create_checkpoint_http_info(self, request):
|
659
|
+
http_info = {
|
660
|
+
"method": "POST",
|
661
|
+
"resource_path": "/v3/{project_id}/checkpoints",
|
662
|
+
"request_type": request.__class__.__name__,
|
663
|
+
"response_type": "CreateCheckpointResponse"
|
664
|
+
}
|
575
665
|
|
576
|
-
def _create_checkpoint_with_http_info(self, request):
|
577
666
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
578
667
|
|
579
668
|
cname = None
|
@@ -588,11 +677,11 @@ class CbrAsyncClient(Client):
|
|
588
677
|
|
589
678
|
form_params = {}
|
590
679
|
|
591
|
-
|
680
|
+
body = None
|
592
681
|
if 'body' in local_var_params:
|
593
|
-
|
682
|
+
body = local_var_params['body']
|
594
683
|
if isinstance(request, SdkStreamRequest):
|
595
|
-
|
684
|
+
body = request.get_file_stream()
|
596
685
|
|
597
686
|
response_headers = []
|
598
687
|
|
@@ -601,20 +690,16 @@ class CbrAsyncClient(Client):
|
|
601
690
|
|
602
691
|
auth_settings = []
|
603
692
|
|
604
|
-
|
605
|
-
|
606
|
-
|
607
|
-
|
608
|
-
|
609
|
-
|
610
|
-
|
611
|
-
|
612
|
-
|
613
|
-
|
614
|
-
response_headers=response_headers,
|
615
|
-
auth_settings=auth_settings,
|
616
|
-
collection_formats=collection_formats,
|
617
|
-
request_type=request.__class__.__name__)
|
693
|
+
http_info["cname"] = cname
|
694
|
+
http_info["collection_formats"] = collection_formats
|
695
|
+
http_info["path_params"] = path_params
|
696
|
+
http_info["query_params"] = query_params
|
697
|
+
http_info["header_params"] = header_params
|
698
|
+
http_info["post_params"] = form_params
|
699
|
+
http_info["body"] = body
|
700
|
+
http_info["response_headers"] = response_headers
|
701
|
+
|
702
|
+
return http_info
|
618
703
|
|
619
704
|
def create_policy_async(self, request):
|
620
705
|
"""创建策略
|
@@ -628,9 +713,21 @@ class CbrAsyncClient(Client):
|
|
628
713
|
:type request: :class:`huaweicloudsdkcbr.v1.CreatePolicyRequest`
|
629
714
|
:rtype: :class:`huaweicloudsdkcbr.v1.CreatePolicyResponse`
|
630
715
|
"""
|
631
|
-
|
716
|
+
http_info = self._create_policy_http_info(request)
|
717
|
+
return self._call_api(**http_info)
|
718
|
+
|
719
|
+
def create_policy_async_invoker(self, request):
|
720
|
+
http_info = self._create_policy_http_info(request)
|
721
|
+
return AsyncInvoker(self, http_info)
|
722
|
+
|
723
|
+
def _create_policy_http_info(self, request):
|
724
|
+
http_info = {
|
725
|
+
"method": "POST",
|
726
|
+
"resource_path": "/v3/{project_id}/policies",
|
727
|
+
"request_type": request.__class__.__name__,
|
728
|
+
"response_type": "CreatePolicyResponse"
|
729
|
+
}
|
632
730
|
|
633
|
-
def _create_policy_with_http_info(self, request):
|
634
731
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
635
732
|
|
636
733
|
cname = None
|
@@ -645,11 +742,11 @@ class CbrAsyncClient(Client):
|
|
645
742
|
|
646
743
|
form_params = {}
|
647
744
|
|
648
|
-
|
745
|
+
body = None
|
649
746
|
if 'body' in local_var_params:
|
650
|
-
|
747
|
+
body = local_var_params['body']
|
651
748
|
if isinstance(request, SdkStreamRequest):
|
652
|
-
|
749
|
+
body = request.get_file_stream()
|
653
750
|
|
654
751
|
response_headers = []
|
655
752
|
|
@@ -658,20 +755,16 @@ class CbrAsyncClient(Client):
|
|
658
755
|
|
659
756
|
auth_settings = []
|
660
757
|
|
661
|
-
|
662
|
-
|
663
|
-
|
664
|
-
|
665
|
-
|
666
|
-
|
667
|
-
|
668
|
-
|
669
|
-
|
670
|
-
|
671
|
-
response_headers=response_headers,
|
672
|
-
auth_settings=auth_settings,
|
673
|
-
collection_formats=collection_formats,
|
674
|
-
request_type=request.__class__.__name__)
|
758
|
+
http_info["cname"] = cname
|
759
|
+
http_info["collection_formats"] = collection_formats
|
760
|
+
http_info["path_params"] = path_params
|
761
|
+
http_info["query_params"] = query_params
|
762
|
+
http_info["header_params"] = header_params
|
763
|
+
http_info["post_params"] = form_params
|
764
|
+
http_info["body"] = body
|
765
|
+
http_info["response_headers"] = response_headers
|
766
|
+
|
767
|
+
return http_info
|
675
768
|
|
676
769
|
def create_post_paid_vault_async(self, request):
|
677
770
|
"""创建包周期存储库
|
@@ -685,9 +778,21 @@ class CbrAsyncClient(Client):
|
|
685
778
|
:type request: :class:`huaweicloudsdkcbr.v1.CreatePostPaidVaultRequest`
|
686
779
|
:rtype: :class:`huaweicloudsdkcbr.v1.CreatePostPaidVaultResponse`
|
687
780
|
"""
|
688
|
-
|
781
|
+
http_info = self._create_post_paid_vault_http_info(request)
|
782
|
+
return self._call_api(**http_info)
|
783
|
+
|
784
|
+
def create_post_paid_vault_async_invoker(self, request):
|
785
|
+
http_info = self._create_post_paid_vault_http_info(request)
|
786
|
+
return AsyncInvoker(self, http_info)
|
787
|
+
|
788
|
+
def _create_post_paid_vault_http_info(self, request):
|
789
|
+
http_info = {
|
790
|
+
"method": "POST",
|
791
|
+
"resource_path": "/v3/{project_id}/vaults/order",
|
792
|
+
"request_type": request.__class__.__name__,
|
793
|
+
"response_type": "CreatePostPaidVaultResponse"
|
794
|
+
}
|
689
795
|
|
690
|
-
def _create_post_paid_vault_with_http_info(self, request):
|
691
796
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
692
797
|
|
693
798
|
cname = None
|
@@ -702,11 +807,11 @@ class CbrAsyncClient(Client):
|
|
702
807
|
|
703
808
|
form_params = {}
|
704
809
|
|
705
|
-
|
810
|
+
body = None
|
706
811
|
if 'body' in local_var_params:
|
707
|
-
|
812
|
+
body = local_var_params['body']
|
708
813
|
if isinstance(request, SdkStreamRequest):
|
709
|
-
|
814
|
+
body = request.get_file_stream()
|
710
815
|
|
711
816
|
response_headers = []
|
712
817
|
|
@@ -715,20 +820,16 @@ class CbrAsyncClient(Client):
|
|
715
820
|
|
716
821
|
auth_settings = []
|
717
822
|
|
718
|
-
|
719
|
-
|
720
|
-
|
721
|
-
|
722
|
-
|
723
|
-
|
724
|
-
|
725
|
-
|
726
|
-
|
727
|
-
|
728
|
-
response_headers=response_headers,
|
729
|
-
auth_settings=auth_settings,
|
730
|
-
collection_formats=collection_formats,
|
731
|
-
request_type=request.__class__.__name__)
|
823
|
+
http_info["cname"] = cname
|
824
|
+
http_info["collection_formats"] = collection_formats
|
825
|
+
http_info["path_params"] = path_params
|
826
|
+
http_info["query_params"] = query_params
|
827
|
+
http_info["header_params"] = header_params
|
828
|
+
http_info["post_params"] = form_params
|
829
|
+
http_info["body"] = body
|
830
|
+
http_info["response_headers"] = response_headers
|
831
|
+
|
832
|
+
return http_info
|
732
833
|
|
733
834
|
def create_vault_async(self, request):
|
734
835
|
"""创建存储库
|
@@ -742,9 +843,21 @@ class CbrAsyncClient(Client):
|
|
742
843
|
:type request: :class:`huaweicloudsdkcbr.v1.CreateVaultRequest`
|
743
844
|
:rtype: :class:`huaweicloudsdkcbr.v1.CreateVaultResponse`
|
744
845
|
"""
|
745
|
-
|
846
|
+
http_info = self._create_vault_http_info(request)
|
847
|
+
return self._call_api(**http_info)
|
848
|
+
|
849
|
+
def create_vault_async_invoker(self, request):
|
850
|
+
http_info = self._create_vault_http_info(request)
|
851
|
+
return AsyncInvoker(self, http_info)
|
852
|
+
|
853
|
+
def _create_vault_http_info(self, request):
|
854
|
+
http_info = {
|
855
|
+
"method": "POST",
|
856
|
+
"resource_path": "/v3/{project_id}/vaults",
|
857
|
+
"request_type": request.__class__.__name__,
|
858
|
+
"response_type": "CreateVaultResponse"
|
859
|
+
}
|
746
860
|
|
747
|
-
def _create_vault_with_http_info(self, request):
|
748
861
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
749
862
|
|
750
863
|
cname = None
|
@@ -759,11 +872,11 @@ class CbrAsyncClient(Client):
|
|
759
872
|
|
760
873
|
form_params = {}
|
761
874
|
|
762
|
-
|
875
|
+
body = None
|
763
876
|
if 'body' in local_var_params:
|
764
|
-
|
877
|
+
body = local_var_params['body']
|
765
878
|
if isinstance(request, SdkStreamRequest):
|
766
|
-
|
879
|
+
body = request.get_file_stream()
|
767
880
|
|
768
881
|
response_headers = []
|
769
882
|
|
@@ -772,20 +885,16 @@ class CbrAsyncClient(Client):
|
|
772
885
|
|
773
886
|
auth_settings = []
|
774
887
|
|
775
|
-
|
776
|
-
|
777
|
-
|
778
|
-
|
779
|
-
|
780
|
-
|
781
|
-
|
782
|
-
|
783
|
-
|
784
|
-
|
785
|
-
response_headers=response_headers,
|
786
|
-
auth_settings=auth_settings,
|
787
|
-
collection_formats=collection_formats,
|
788
|
-
request_type=request.__class__.__name__)
|
888
|
+
http_info["cname"] = cname
|
889
|
+
http_info["collection_formats"] = collection_formats
|
890
|
+
http_info["path_params"] = path_params
|
891
|
+
http_info["query_params"] = query_params
|
892
|
+
http_info["header_params"] = header_params
|
893
|
+
http_info["post_params"] = form_params
|
894
|
+
http_info["body"] = body
|
895
|
+
http_info["response_headers"] = response_headers
|
896
|
+
|
897
|
+
return http_info
|
789
898
|
|
790
899
|
def create_vault_tags_async(self, request):
|
791
900
|
"""添加存储库资源标签
|
@@ -800,9 +909,21 @@ class CbrAsyncClient(Client):
|
|
800
909
|
:type request: :class:`huaweicloudsdkcbr.v1.CreateVaultTagsRequest`
|
801
910
|
:rtype: :class:`huaweicloudsdkcbr.v1.CreateVaultTagsResponse`
|
802
911
|
"""
|
803
|
-
|
912
|
+
http_info = self._create_vault_tags_http_info(request)
|
913
|
+
return self._call_api(**http_info)
|
914
|
+
|
915
|
+
def create_vault_tags_async_invoker(self, request):
|
916
|
+
http_info = self._create_vault_tags_http_info(request)
|
917
|
+
return AsyncInvoker(self, http_info)
|
918
|
+
|
919
|
+
def _create_vault_tags_http_info(self, request):
|
920
|
+
http_info = {
|
921
|
+
"method": "POST",
|
922
|
+
"resource_path": "/v3/{project_id}/vault/{vault_id}/tags",
|
923
|
+
"request_type": request.__class__.__name__,
|
924
|
+
"response_type": "CreateVaultTagsResponse"
|
925
|
+
}
|
804
926
|
|
805
|
-
def _create_vault_tags_with_http_info(self, request):
|
806
927
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
807
928
|
|
808
929
|
cname = None
|
@@ -819,11 +940,11 @@ class CbrAsyncClient(Client):
|
|
819
940
|
|
820
941
|
form_params = {}
|
821
942
|
|
822
|
-
|
943
|
+
body = None
|
823
944
|
if 'body' in local_var_params:
|
824
|
-
|
945
|
+
body = local_var_params['body']
|
825
946
|
if isinstance(request, SdkStreamRequest):
|
826
|
-
|
947
|
+
body = request.get_file_stream()
|
827
948
|
|
828
949
|
response_headers = []
|
829
950
|
|
@@ -832,20 +953,16 @@ class CbrAsyncClient(Client):
|
|
832
953
|
|
833
954
|
auth_settings = []
|
834
955
|
|
835
|
-
|
836
|
-
|
837
|
-
|
838
|
-
|
839
|
-
|
840
|
-
|
841
|
-
|
842
|
-
|
843
|
-
|
844
|
-
|
845
|
-
response_headers=response_headers,
|
846
|
-
auth_settings=auth_settings,
|
847
|
-
collection_formats=collection_formats,
|
848
|
-
request_type=request.__class__.__name__)
|
956
|
+
http_info["cname"] = cname
|
957
|
+
http_info["collection_formats"] = collection_formats
|
958
|
+
http_info["path_params"] = path_params
|
959
|
+
http_info["query_params"] = query_params
|
960
|
+
http_info["header_params"] = header_params
|
961
|
+
http_info["post_params"] = form_params
|
962
|
+
http_info["body"] = body
|
963
|
+
http_info["response_headers"] = response_headers
|
964
|
+
|
965
|
+
return http_info
|
849
966
|
|
850
967
|
def delete_backup_async(self, request):
|
851
968
|
"""删除备份
|
@@ -859,9 +976,21 @@ class CbrAsyncClient(Client):
|
|
859
976
|
:type request: :class:`huaweicloudsdkcbr.v1.DeleteBackupRequest`
|
860
977
|
:rtype: :class:`huaweicloudsdkcbr.v1.DeleteBackupResponse`
|
861
978
|
"""
|
862
|
-
|
979
|
+
http_info = self._delete_backup_http_info(request)
|
980
|
+
return self._call_api(**http_info)
|
981
|
+
|
982
|
+
def delete_backup_async_invoker(self, request):
|
983
|
+
http_info = self._delete_backup_http_info(request)
|
984
|
+
return AsyncInvoker(self, http_info)
|
985
|
+
|
986
|
+
def _delete_backup_http_info(self, request):
|
987
|
+
http_info = {
|
988
|
+
"method": "DELETE",
|
989
|
+
"resource_path": "/v3/{project_id}/backups/{backup_id}",
|
990
|
+
"request_type": request.__class__.__name__,
|
991
|
+
"response_type": "DeleteBackupResponse"
|
992
|
+
}
|
863
993
|
|
864
|
-
def _delete_backup_with_http_info(self, request):
|
865
994
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
866
995
|
|
867
996
|
cname = None
|
@@ -878,9 +1007,9 @@ class CbrAsyncClient(Client):
|
|
878
1007
|
|
879
1008
|
form_params = {}
|
880
1009
|
|
881
|
-
|
1010
|
+
body = None
|
882
1011
|
if isinstance(request, SdkStreamRequest):
|
883
|
-
|
1012
|
+
body = request.get_file_stream()
|
884
1013
|
|
885
1014
|
response_headers = []
|
886
1015
|
|
@@ -889,20 +1018,16 @@ class CbrAsyncClient(Client):
|
|
889
1018
|
|
890
1019
|
auth_settings = []
|
891
1020
|
|
892
|
-
|
893
|
-
|
894
|
-
|
895
|
-
|
896
|
-
|
897
|
-
|
898
|
-
|
899
|
-
|
900
|
-
|
901
|
-
|
902
|
-
response_headers=response_headers,
|
903
|
-
auth_settings=auth_settings,
|
904
|
-
collection_formats=collection_formats,
|
905
|
-
request_type=request.__class__.__name__)
|
1021
|
+
http_info["cname"] = cname
|
1022
|
+
http_info["collection_formats"] = collection_formats
|
1023
|
+
http_info["path_params"] = path_params
|
1024
|
+
http_info["query_params"] = query_params
|
1025
|
+
http_info["header_params"] = header_params
|
1026
|
+
http_info["post_params"] = form_params
|
1027
|
+
http_info["body"] = body
|
1028
|
+
http_info["response_headers"] = response_headers
|
1029
|
+
|
1030
|
+
return http_info
|
906
1031
|
|
907
1032
|
def delete_member_async(self, request):
|
908
1033
|
"""删除指定备份成员
|
@@ -916,9 +1041,21 @@ class CbrAsyncClient(Client):
|
|
916
1041
|
:type request: :class:`huaweicloudsdkcbr.v1.DeleteMemberRequest`
|
917
1042
|
:rtype: :class:`huaweicloudsdkcbr.v1.DeleteMemberResponse`
|
918
1043
|
"""
|
919
|
-
|
1044
|
+
http_info = self._delete_member_http_info(request)
|
1045
|
+
return self._call_api(**http_info)
|
1046
|
+
|
1047
|
+
def delete_member_async_invoker(self, request):
|
1048
|
+
http_info = self._delete_member_http_info(request)
|
1049
|
+
return AsyncInvoker(self, http_info)
|
1050
|
+
|
1051
|
+
def _delete_member_http_info(self, request):
|
1052
|
+
http_info = {
|
1053
|
+
"method": "DELETE",
|
1054
|
+
"resource_path": "/v3/{project_id}/backups/{backup_id}/members/{member_id}",
|
1055
|
+
"request_type": request.__class__.__name__,
|
1056
|
+
"response_type": "DeleteMemberResponse"
|
1057
|
+
}
|
920
1058
|
|
921
|
-
def _delete_member_with_http_info(self, request):
|
922
1059
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
923
1060
|
|
924
1061
|
cname = None
|
@@ -937,9 +1074,9 @@ class CbrAsyncClient(Client):
|
|
937
1074
|
|
938
1075
|
form_params = {}
|
939
1076
|
|
940
|
-
|
1077
|
+
body = None
|
941
1078
|
if isinstance(request, SdkStreamRequest):
|
942
|
-
|
1079
|
+
body = request.get_file_stream()
|
943
1080
|
|
944
1081
|
response_headers = []
|
945
1082
|
|
@@ -948,20 +1085,16 @@ class CbrAsyncClient(Client):
|
|
948
1085
|
|
949
1086
|
auth_settings = []
|
950
1087
|
|
951
|
-
|
952
|
-
|
953
|
-
|
954
|
-
|
955
|
-
|
956
|
-
|
957
|
-
|
958
|
-
|
959
|
-
|
960
|
-
|
961
|
-
response_headers=response_headers,
|
962
|
-
auth_settings=auth_settings,
|
963
|
-
collection_formats=collection_formats,
|
964
|
-
request_type=request.__class__.__name__)
|
1088
|
+
http_info["cname"] = cname
|
1089
|
+
http_info["collection_formats"] = collection_formats
|
1090
|
+
http_info["path_params"] = path_params
|
1091
|
+
http_info["query_params"] = query_params
|
1092
|
+
http_info["header_params"] = header_params
|
1093
|
+
http_info["post_params"] = form_params
|
1094
|
+
http_info["body"] = body
|
1095
|
+
http_info["response_headers"] = response_headers
|
1096
|
+
|
1097
|
+
return http_info
|
965
1098
|
|
966
1099
|
def delete_policy_async(self, request):
|
967
1100
|
"""删除策略
|
@@ -975,9 +1108,21 @@ class CbrAsyncClient(Client):
|
|
975
1108
|
:type request: :class:`huaweicloudsdkcbr.v1.DeletePolicyRequest`
|
976
1109
|
:rtype: :class:`huaweicloudsdkcbr.v1.DeletePolicyResponse`
|
977
1110
|
"""
|
978
|
-
|
1111
|
+
http_info = self._delete_policy_http_info(request)
|
1112
|
+
return self._call_api(**http_info)
|
1113
|
+
|
1114
|
+
def delete_policy_async_invoker(self, request):
|
1115
|
+
http_info = self._delete_policy_http_info(request)
|
1116
|
+
return AsyncInvoker(self, http_info)
|
1117
|
+
|
1118
|
+
def _delete_policy_http_info(self, request):
|
1119
|
+
http_info = {
|
1120
|
+
"method": "DELETE",
|
1121
|
+
"resource_path": "/v3/{project_id}/policies/{policy_id}",
|
1122
|
+
"request_type": request.__class__.__name__,
|
1123
|
+
"response_type": "DeletePolicyResponse"
|
1124
|
+
}
|
979
1125
|
|
980
|
-
def _delete_policy_with_http_info(self, request):
|
981
1126
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
982
1127
|
|
983
1128
|
cname = None
|
@@ -994,9 +1139,9 @@ class CbrAsyncClient(Client):
|
|
994
1139
|
|
995
1140
|
form_params = {}
|
996
1141
|
|
997
|
-
|
1142
|
+
body = None
|
998
1143
|
if isinstance(request, SdkStreamRequest):
|
999
|
-
|
1144
|
+
body = request.get_file_stream()
|
1000
1145
|
|
1001
1146
|
response_headers = []
|
1002
1147
|
|
@@ -1005,20 +1150,16 @@ class CbrAsyncClient(Client):
|
|
1005
1150
|
|
1006
1151
|
auth_settings = []
|
1007
1152
|
|
1008
|
-
|
1009
|
-
|
1010
|
-
|
1011
|
-
|
1012
|
-
|
1013
|
-
|
1014
|
-
|
1015
|
-
|
1016
|
-
|
1017
|
-
|
1018
|
-
response_headers=response_headers,
|
1019
|
-
auth_settings=auth_settings,
|
1020
|
-
collection_formats=collection_formats,
|
1021
|
-
request_type=request.__class__.__name__)
|
1153
|
+
http_info["cname"] = cname
|
1154
|
+
http_info["collection_formats"] = collection_formats
|
1155
|
+
http_info["path_params"] = path_params
|
1156
|
+
http_info["query_params"] = query_params
|
1157
|
+
http_info["header_params"] = header_params
|
1158
|
+
http_info["post_params"] = form_params
|
1159
|
+
http_info["body"] = body
|
1160
|
+
http_info["response_headers"] = response_headers
|
1161
|
+
|
1162
|
+
return http_info
|
1022
1163
|
|
1023
1164
|
def delete_vault_async(self, request):
|
1024
1165
|
"""删除存储库
|
@@ -1032,9 +1173,21 @@ class CbrAsyncClient(Client):
|
|
1032
1173
|
:type request: :class:`huaweicloudsdkcbr.v1.DeleteVaultRequest`
|
1033
1174
|
:rtype: :class:`huaweicloudsdkcbr.v1.DeleteVaultResponse`
|
1034
1175
|
"""
|
1035
|
-
|
1176
|
+
http_info = self._delete_vault_http_info(request)
|
1177
|
+
return self._call_api(**http_info)
|
1178
|
+
|
1179
|
+
def delete_vault_async_invoker(self, request):
|
1180
|
+
http_info = self._delete_vault_http_info(request)
|
1181
|
+
return AsyncInvoker(self, http_info)
|
1182
|
+
|
1183
|
+
def _delete_vault_http_info(self, request):
|
1184
|
+
http_info = {
|
1185
|
+
"method": "DELETE",
|
1186
|
+
"resource_path": "/v3/{project_id}/vaults/{vault_id}",
|
1187
|
+
"request_type": request.__class__.__name__,
|
1188
|
+
"response_type": "DeleteVaultResponse"
|
1189
|
+
}
|
1036
1190
|
|
1037
|
-
def _delete_vault_with_http_info(self, request):
|
1038
1191
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
1039
1192
|
|
1040
1193
|
cname = None
|
@@ -1051,9 +1204,9 @@ class CbrAsyncClient(Client):
|
|
1051
1204
|
|
1052
1205
|
form_params = {}
|
1053
1206
|
|
1054
|
-
|
1207
|
+
body = None
|
1055
1208
|
if isinstance(request, SdkStreamRequest):
|
1056
|
-
|
1209
|
+
body = request.get_file_stream()
|
1057
1210
|
|
1058
1211
|
response_headers = []
|
1059
1212
|
|
@@ -1062,20 +1215,16 @@ class CbrAsyncClient(Client):
|
|
1062
1215
|
|
1063
1216
|
auth_settings = []
|
1064
1217
|
|
1065
|
-
|
1066
|
-
|
1067
|
-
|
1068
|
-
|
1069
|
-
|
1070
|
-
|
1071
|
-
|
1072
|
-
|
1073
|
-
|
1074
|
-
|
1075
|
-
response_headers=response_headers,
|
1076
|
-
auth_settings=auth_settings,
|
1077
|
-
collection_formats=collection_formats,
|
1078
|
-
request_type=request.__class__.__name__)
|
1218
|
+
http_info["cname"] = cname
|
1219
|
+
http_info["collection_formats"] = collection_formats
|
1220
|
+
http_info["path_params"] = path_params
|
1221
|
+
http_info["query_params"] = query_params
|
1222
|
+
http_info["header_params"] = header_params
|
1223
|
+
http_info["post_params"] = form_params
|
1224
|
+
http_info["body"] = body
|
1225
|
+
http_info["response_headers"] = response_headers
|
1226
|
+
|
1227
|
+
return http_info
|
1079
1228
|
|
1080
1229
|
def delete_vault_tag_async(self, request):
|
1081
1230
|
"""删除存储库资源标签
|
@@ -1089,9 +1238,21 @@ class CbrAsyncClient(Client):
|
|
1089
1238
|
:type request: :class:`huaweicloudsdkcbr.v1.DeleteVaultTagRequest`
|
1090
1239
|
:rtype: :class:`huaweicloudsdkcbr.v1.DeleteVaultTagResponse`
|
1091
1240
|
"""
|
1092
|
-
|
1241
|
+
http_info = self._delete_vault_tag_http_info(request)
|
1242
|
+
return self._call_api(**http_info)
|
1243
|
+
|
1244
|
+
def delete_vault_tag_async_invoker(self, request):
|
1245
|
+
http_info = self._delete_vault_tag_http_info(request)
|
1246
|
+
return AsyncInvoker(self, http_info)
|
1247
|
+
|
1248
|
+
def _delete_vault_tag_http_info(self, request):
|
1249
|
+
http_info = {
|
1250
|
+
"method": "DELETE",
|
1251
|
+
"resource_path": "/v3/{project_id}/vault/{vault_id}/tags/{key}",
|
1252
|
+
"request_type": request.__class__.__name__,
|
1253
|
+
"response_type": "DeleteVaultTagResponse"
|
1254
|
+
}
|
1093
1255
|
|
1094
|
-
def _delete_vault_tag_with_http_info(self, request):
|
1095
1256
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
1096
1257
|
|
1097
1258
|
cname = None
|
@@ -1110,9 +1271,9 @@ class CbrAsyncClient(Client):
|
|
1110
1271
|
|
1111
1272
|
form_params = {}
|
1112
1273
|
|
1113
|
-
|
1274
|
+
body = None
|
1114
1275
|
if isinstance(request, SdkStreamRequest):
|
1115
|
-
|
1276
|
+
body = request.get_file_stream()
|
1116
1277
|
|
1117
1278
|
response_headers = []
|
1118
1279
|
|
@@ -1121,20 +1282,16 @@ class CbrAsyncClient(Client):
|
|
1121
1282
|
|
1122
1283
|
auth_settings = []
|
1123
1284
|
|
1124
|
-
|
1125
|
-
|
1126
|
-
|
1127
|
-
|
1128
|
-
|
1129
|
-
|
1130
|
-
|
1131
|
-
|
1132
|
-
|
1133
|
-
|
1134
|
-
response_headers=response_headers,
|
1135
|
-
auth_settings=auth_settings,
|
1136
|
-
collection_formats=collection_formats,
|
1137
|
-
request_type=request.__class__.__name__)
|
1285
|
+
http_info["cname"] = cname
|
1286
|
+
http_info["collection_formats"] = collection_formats
|
1287
|
+
http_info["path_params"] = path_params
|
1288
|
+
http_info["query_params"] = query_params
|
1289
|
+
http_info["header_params"] = header_params
|
1290
|
+
http_info["post_params"] = form_params
|
1291
|
+
http_info["body"] = body
|
1292
|
+
http_info["response_headers"] = response_headers
|
1293
|
+
|
1294
|
+
return http_info
|
1138
1295
|
|
1139
1296
|
def disassociate_vault_policy_async(self, request):
|
1140
1297
|
"""解除存储库策略
|
@@ -1148,9 +1305,21 @@ class CbrAsyncClient(Client):
|
|
1148
1305
|
:type request: :class:`huaweicloudsdkcbr.v1.DisassociateVaultPolicyRequest`
|
1149
1306
|
:rtype: :class:`huaweicloudsdkcbr.v1.DisassociateVaultPolicyResponse`
|
1150
1307
|
"""
|
1151
|
-
|
1308
|
+
http_info = self._disassociate_vault_policy_http_info(request)
|
1309
|
+
return self._call_api(**http_info)
|
1310
|
+
|
1311
|
+
def disassociate_vault_policy_async_invoker(self, request):
|
1312
|
+
http_info = self._disassociate_vault_policy_http_info(request)
|
1313
|
+
return AsyncInvoker(self, http_info)
|
1314
|
+
|
1315
|
+
def _disassociate_vault_policy_http_info(self, request):
|
1316
|
+
http_info = {
|
1317
|
+
"method": "POST",
|
1318
|
+
"resource_path": "/v3/{project_id}/vaults/{vault_id}/dissociatepolicy",
|
1319
|
+
"request_type": request.__class__.__name__,
|
1320
|
+
"response_type": "DisassociateVaultPolicyResponse"
|
1321
|
+
}
|
1152
1322
|
|
1153
|
-
def _disassociate_vault_policy_with_http_info(self, request):
|
1154
1323
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
1155
1324
|
|
1156
1325
|
cname = None
|
@@ -1167,11 +1336,11 @@ class CbrAsyncClient(Client):
|
|
1167
1336
|
|
1168
1337
|
form_params = {}
|
1169
1338
|
|
1170
|
-
|
1339
|
+
body = None
|
1171
1340
|
if 'body' in local_var_params:
|
1172
|
-
|
1341
|
+
body = local_var_params['body']
|
1173
1342
|
if isinstance(request, SdkStreamRequest):
|
1174
|
-
|
1343
|
+
body = request.get_file_stream()
|
1175
1344
|
|
1176
1345
|
response_headers = []
|
1177
1346
|
|
@@ -1180,20 +1349,16 @@ class CbrAsyncClient(Client):
|
|
1180
1349
|
|
1181
1350
|
auth_settings = []
|
1182
1351
|
|
1183
|
-
|
1184
|
-
|
1185
|
-
|
1186
|
-
|
1187
|
-
|
1188
|
-
|
1189
|
-
|
1190
|
-
|
1191
|
-
|
1192
|
-
|
1193
|
-
response_headers=response_headers,
|
1194
|
-
auth_settings=auth_settings,
|
1195
|
-
collection_formats=collection_formats,
|
1196
|
-
request_type=request.__class__.__name__)
|
1352
|
+
http_info["cname"] = cname
|
1353
|
+
http_info["collection_formats"] = collection_formats
|
1354
|
+
http_info["path_params"] = path_params
|
1355
|
+
http_info["query_params"] = query_params
|
1356
|
+
http_info["header_params"] = header_params
|
1357
|
+
http_info["post_params"] = form_params
|
1358
|
+
http_info["body"] = body
|
1359
|
+
http_info["response_headers"] = response_headers
|
1360
|
+
|
1361
|
+
return http_info
|
1197
1362
|
|
1198
1363
|
def import_backup_async(self, request):
|
1199
1364
|
"""同步备份
|
@@ -1207,9 +1372,21 @@ class CbrAsyncClient(Client):
|
|
1207
1372
|
:type request: :class:`huaweicloudsdkcbr.v1.ImportBackupRequest`
|
1208
1373
|
:rtype: :class:`huaweicloudsdkcbr.v1.ImportBackupResponse`
|
1209
1374
|
"""
|
1210
|
-
|
1375
|
+
http_info = self._import_backup_http_info(request)
|
1376
|
+
return self._call_api(**http_info)
|
1377
|
+
|
1378
|
+
def import_backup_async_invoker(self, request):
|
1379
|
+
http_info = self._import_backup_http_info(request)
|
1380
|
+
return AsyncInvoker(self, http_info)
|
1381
|
+
|
1382
|
+
def _import_backup_http_info(self, request):
|
1383
|
+
http_info = {
|
1384
|
+
"method": "POST",
|
1385
|
+
"resource_path": "/v3/{project_id}/backups/sync",
|
1386
|
+
"request_type": request.__class__.__name__,
|
1387
|
+
"response_type": "ImportBackupResponse"
|
1388
|
+
}
|
1211
1389
|
|
1212
|
-
def _import_backup_with_http_info(self, request):
|
1213
1390
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
1214
1391
|
|
1215
1392
|
cname = None
|
@@ -1224,11 +1401,11 @@ class CbrAsyncClient(Client):
|
|
1224
1401
|
|
1225
1402
|
form_params = {}
|
1226
1403
|
|
1227
|
-
|
1404
|
+
body = None
|
1228
1405
|
if 'body' in local_var_params:
|
1229
|
-
|
1406
|
+
body = local_var_params['body']
|
1230
1407
|
if isinstance(request, SdkStreamRequest):
|
1231
|
-
|
1408
|
+
body = request.get_file_stream()
|
1232
1409
|
|
1233
1410
|
response_headers = []
|
1234
1411
|
|
@@ -1237,20 +1414,16 @@ class CbrAsyncClient(Client):
|
|
1237
1414
|
|
1238
1415
|
auth_settings = []
|
1239
1416
|
|
1240
|
-
|
1241
|
-
|
1242
|
-
|
1243
|
-
|
1244
|
-
|
1245
|
-
|
1246
|
-
|
1247
|
-
|
1248
|
-
|
1249
|
-
|
1250
|
-
response_headers=response_headers,
|
1251
|
-
auth_settings=auth_settings,
|
1252
|
-
collection_formats=collection_formats,
|
1253
|
-
request_type=request.__class__.__name__)
|
1417
|
+
http_info["cname"] = cname
|
1418
|
+
http_info["collection_formats"] = collection_formats
|
1419
|
+
http_info["path_params"] = path_params
|
1420
|
+
http_info["query_params"] = query_params
|
1421
|
+
http_info["header_params"] = header_params
|
1422
|
+
http_info["post_params"] = form_params
|
1423
|
+
http_info["body"] = body
|
1424
|
+
http_info["response_headers"] = response_headers
|
1425
|
+
|
1426
|
+
return http_info
|
1254
1427
|
|
1255
1428
|
def import_checkpoint_async(self, request):
|
1256
1429
|
"""同步备份还原点
|
@@ -1264,9 +1437,21 @@ class CbrAsyncClient(Client):
|
|
1264
1437
|
:type request: :class:`huaweicloudsdkcbr.v1.ImportCheckpointRequest`
|
1265
1438
|
:rtype: :class:`huaweicloudsdkcbr.v1.ImportCheckpointResponse`
|
1266
1439
|
"""
|
1267
|
-
|
1440
|
+
http_info = self._import_checkpoint_http_info(request)
|
1441
|
+
return self._call_api(**http_info)
|
1442
|
+
|
1443
|
+
def import_checkpoint_async_invoker(self, request):
|
1444
|
+
http_info = self._import_checkpoint_http_info(request)
|
1445
|
+
return AsyncInvoker(self, http_info)
|
1446
|
+
|
1447
|
+
def _import_checkpoint_http_info(self, request):
|
1448
|
+
http_info = {
|
1449
|
+
"method": "POST",
|
1450
|
+
"resource_path": "/v3/{project_id}/checkpoints/sync",
|
1451
|
+
"request_type": request.__class__.__name__,
|
1452
|
+
"response_type": "ImportCheckpointResponse"
|
1453
|
+
}
|
1268
1454
|
|
1269
|
-
def _import_checkpoint_with_http_info(self, request):
|
1270
1455
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
1271
1456
|
|
1272
1457
|
cname = None
|
@@ -1281,11 +1466,11 @@ class CbrAsyncClient(Client):
|
|
1281
1466
|
|
1282
1467
|
form_params = {}
|
1283
1468
|
|
1284
|
-
|
1469
|
+
body = None
|
1285
1470
|
if 'body' in local_var_params:
|
1286
|
-
|
1471
|
+
body = local_var_params['body']
|
1287
1472
|
if isinstance(request, SdkStreamRequest):
|
1288
|
-
|
1473
|
+
body = request.get_file_stream()
|
1289
1474
|
|
1290
1475
|
response_headers = []
|
1291
1476
|
|
@@ -1294,20 +1479,16 @@ class CbrAsyncClient(Client):
|
|
1294
1479
|
|
1295
1480
|
auth_settings = []
|
1296
1481
|
|
1297
|
-
|
1298
|
-
|
1299
|
-
|
1300
|
-
|
1301
|
-
|
1302
|
-
|
1303
|
-
|
1304
|
-
|
1305
|
-
|
1306
|
-
|
1307
|
-
response_headers=response_headers,
|
1308
|
-
auth_settings=auth_settings,
|
1309
|
-
collection_formats=collection_formats,
|
1310
|
-
request_type=request.__class__.__name__)
|
1482
|
+
http_info["cname"] = cname
|
1483
|
+
http_info["collection_formats"] = collection_formats
|
1484
|
+
http_info["path_params"] = path_params
|
1485
|
+
http_info["query_params"] = query_params
|
1486
|
+
http_info["header_params"] = header_params
|
1487
|
+
http_info["post_params"] = form_params
|
1488
|
+
http_info["body"] = body
|
1489
|
+
http_info["response_headers"] = response_headers
|
1490
|
+
|
1491
|
+
return http_info
|
1311
1492
|
|
1312
1493
|
def list_agent_async(self, request):
|
1313
1494
|
"""查询客户端列表
|
@@ -1321,9 +1502,21 @@ class CbrAsyncClient(Client):
|
|
1321
1502
|
:type request: :class:`huaweicloudsdkcbr.v1.ListAgentRequest`
|
1322
1503
|
:rtype: :class:`huaweicloudsdkcbr.v1.ListAgentResponse`
|
1323
1504
|
"""
|
1324
|
-
|
1505
|
+
http_info = self._list_agent_http_info(request)
|
1506
|
+
return self._call_api(**http_info)
|
1507
|
+
|
1508
|
+
def list_agent_async_invoker(self, request):
|
1509
|
+
http_info = self._list_agent_http_info(request)
|
1510
|
+
return AsyncInvoker(self, http_info)
|
1511
|
+
|
1512
|
+
def _list_agent_http_info(self, request):
|
1513
|
+
http_info = {
|
1514
|
+
"method": "GET",
|
1515
|
+
"resource_path": "/v3/{project_id}/agents",
|
1516
|
+
"request_type": request.__class__.__name__,
|
1517
|
+
"response_type": "ListAgentResponse"
|
1518
|
+
}
|
1325
1519
|
|
1326
|
-
def _list_agent_with_http_info(self, request):
|
1327
1520
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
1328
1521
|
|
1329
1522
|
cname = None
|
@@ -1347,9 +1540,9 @@ class CbrAsyncClient(Client):
|
|
1347
1540
|
|
1348
1541
|
form_params = {}
|
1349
1542
|
|
1350
|
-
|
1543
|
+
body = None
|
1351
1544
|
if isinstance(request, SdkStreamRequest):
|
1352
|
-
|
1545
|
+
body = request.get_file_stream()
|
1353
1546
|
|
1354
1547
|
response_headers = []
|
1355
1548
|
|
@@ -1358,20 +1551,16 @@ class CbrAsyncClient(Client):
|
|
1358
1551
|
|
1359
1552
|
auth_settings = []
|
1360
1553
|
|
1361
|
-
|
1362
|
-
|
1363
|
-
|
1364
|
-
|
1365
|
-
|
1366
|
-
|
1367
|
-
|
1368
|
-
|
1369
|
-
|
1370
|
-
|
1371
|
-
response_headers=response_headers,
|
1372
|
-
auth_settings=auth_settings,
|
1373
|
-
collection_formats=collection_formats,
|
1374
|
-
request_type=request.__class__.__name__)
|
1554
|
+
http_info["cname"] = cname
|
1555
|
+
http_info["collection_formats"] = collection_formats
|
1556
|
+
http_info["path_params"] = path_params
|
1557
|
+
http_info["query_params"] = query_params
|
1558
|
+
http_info["header_params"] = header_params
|
1559
|
+
http_info["post_params"] = form_params
|
1560
|
+
http_info["body"] = body
|
1561
|
+
http_info["response_headers"] = response_headers
|
1562
|
+
|
1563
|
+
return http_info
|
1375
1564
|
|
1376
1565
|
def list_backups_async(self, request):
|
1377
1566
|
"""查询所有备份
|
@@ -1385,9 +1574,21 @@ class CbrAsyncClient(Client):
|
|
1385
1574
|
:type request: :class:`huaweicloudsdkcbr.v1.ListBackupsRequest`
|
1386
1575
|
:rtype: :class:`huaweicloudsdkcbr.v1.ListBackupsResponse`
|
1387
1576
|
"""
|
1388
|
-
|
1577
|
+
http_info = self._list_backups_http_info(request)
|
1578
|
+
return self._call_api(**http_info)
|
1579
|
+
|
1580
|
+
def list_backups_async_invoker(self, request):
|
1581
|
+
http_info = self._list_backups_http_info(request)
|
1582
|
+
return AsyncInvoker(self, http_info)
|
1583
|
+
|
1584
|
+
def _list_backups_http_info(self, request):
|
1585
|
+
http_info = {
|
1586
|
+
"method": "GET",
|
1587
|
+
"resource_path": "/v3/{project_id}/backups",
|
1588
|
+
"request_type": request.__class__.__name__,
|
1589
|
+
"response_type": "ListBackupsResponse"
|
1590
|
+
}
|
1389
1591
|
|
1390
|
-
def _list_backups_with_http_info(self, request):
|
1391
1592
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
1392
1593
|
|
1393
1594
|
cname = None
|
@@ -1448,9 +1649,9 @@ class CbrAsyncClient(Client):
|
|
1448
1649
|
|
1449
1650
|
form_params = {}
|
1450
1651
|
|
1451
|
-
|
1652
|
+
body = None
|
1452
1653
|
if isinstance(request, SdkStreamRequest):
|
1453
|
-
|
1654
|
+
body = request.get_file_stream()
|
1454
1655
|
|
1455
1656
|
response_headers = []
|
1456
1657
|
|
@@ -1459,20 +1660,16 @@ class CbrAsyncClient(Client):
|
|
1459
1660
|
|
1460
1661
|
auth_settings = []
|
1461
1662
|
|
1462
|
-
|
1463
|
-
|
1464
|
-
|
1465
|
-
|
1466
|
-
|
1467
|
-
|
1468
|
-
|
1469
|
-
|
1470
|
-
|
1471
|
-
|
1472
|
-
response_headers=response_headers,
|
1473
|
-
auth_settings=auth_settings,
|
1474
|
-
collection_formats=collection_formats,
|
1475
|
-
request_type=request.__class__.__name__)
|
1663
|
+
http_info["cname"] = cname
|
1664
|
+
http_info["collection_formats"] = collection_formats
|
1665
|
+
http_info["path_params"] = path_params
|
1666
|
+
http_info["query_params"] = query_params
|
1667
|
+
http_info["header_params"] = header_params
|
1668
|
+
http_info["post_params"] = form_params
|
1669
|
+
http_info["body"] = body
|
1670
|
+
http_info["response_headers"] = response_headers
|
1671
|
+
|
1672
|
+
return http_info
|
1476
1673
|
|
1477
1674
|
def list_domain_projects_async(self, request):
|
1478
1675
|
"""查询租户项目列表
|
@@ -1486,9 +1683,21 @@ class CbrAsyncClient(Client):
|
|
1486
1683
|
:type request: :class:`huaweicloudsdkcbr.v1.ListDomainProjectsRequest`
|
1487
1684
|
:rtype: :class:`huaweicloudsdkcbr.v1.ListDomainProjectsResponse`
|
1488
1685
|
"""
|
1489
|
-
|
1686
|
+
http_info = self._list_domain_projects_http_info(request)
|
1687
|
+
return self._call_api(**http_info)
|
1688
|
+
|
1689
|
+
def list_domain_projects_async_invoker(self, request):
|
1690
|
+
http_info = self._list_domain_projects_http_info(request)
|
1691
|
+
return AsyncInvoker(self, http_info)
|
1692
|
+
|
1693
|
+
def _list_domain_projects_http_info(self, request):
|
1694
|
+
http_info = {
|
1695
|
+
"method": "GET",
|
1696
|
+
"resource_path": "/v3/domain/{domain_name}/projects",
|
1697
|
+
"request_type": request.__class__.__name__,
|
1698
|
+
"response_type": "ListDomainProjectsResponse"
|
1699
|
+
}
|
1490
1700
|
|
1491
|
-
def _list_domain_projects_with_http_info(self, request):
|
1492
1701
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
1493
1702
|
|
1494
1703
|
cname = None
|
@@ -1505,9 +1714,9 @@ class CbrAsyncClient(Client):
|
|
1505
1714
|
|
1506
1715
|
form_params = {}
|
1507
1716
|
|
1508
|
-
|
1717
|
+
body = None
|
1509
1718
|
if isinstance(request, SdkStreamRequest):
|
1510
|
-
|
1719
|
+
body = request.get_file_stream()
|
1511
1720
|
|
1512
1721
|
response_headers = []
|
1513
1722
|
|
@@ -1516,20 +1725,16 @@ class CbrAsyncClient(Client):
|
|
1516
1725
|
|
1517
1726
|
auth_settings = []
|
1518
1727
|
|
1519
|
-
|
1520
|
-
|
1521
|
-
|
1522
|
-
|
1523
|
-
|
1524
|
-
|
1525
|
-
|
1526
|
-
|
1527
|
-
|
1528
|
-
|
1529
|
-
response_headers=response_headers,
|
1530
|
-
auth_settings=auth_settings,
|
1531
|
-
collection_formats=collection_formats,
|
1532
|
-
request_type=request.__class__.__name__)
|
1728
|
+
http_info["cname"] = cname
|
1729
|
+
http_info["collection_formats"] = collection_formats
|
1730
|
+
http_info["path_params"] = path_params
|
1731
|
+
http_info["query_params"] = query_params
|
1732
|
+
http_info["header_params"] = header_params
|
1733
|
+
http_info["post_params"] = form_params
|
1734
|
+
http_info["body"] = body
|
1735
|
+
http_info["response_headers"] = response_headers
|
1736
|
+
|
1737
|
+
return http_info
|
1533
1738
|
|
1534
1739
|
def list_external_vault_async(self, request):
|
1535
1740
|
"""查询其他区域存储库列表
|
@@ -1543,9 +1748,21 @@ class CbrAsyncClient(Client):
|
|
1543
1748
|
:type request: :class:`huaweicloudsdkcbr.v1.ListExternalVaultRequest`
|
1544
1749
|
:rtype: :class:`huaweicloudsdkcbr.v1.ListExternalVaultResponse`
|
1545
1750
|
"""
|
1546
|
-
|
1751
|
+
http_info = self._list_external_vault_http_info(request)
|
1752
|
+
return self._call_api(**http_info)
|
1753
|
+
|
1754
|
+
def list_external_vault_async_invoker(self, request):
|
1755
|
+
http_info = self._list_external_vault_http_info(request)
|
1756
|
+
return AsyncInvoker(self, http_info)
|
1757
|
+
|
1758
|
+
def _list_external_vault_http_info(self, request):
|
1759
|
+
http_info = {
|
1760
|
+
"method": "GET",
|
1761
|
+
"resource_path": "/v3/{project_id}/vaults/external",
|
1762
|
+
"request_type": request.__class__.__name__,
|
1763
|
+
"response_type": "ListExternalVaultResponse"
|
1764
|
+
}
|
1547
1765
|
|
1548
|
-
def _list_external_vault_with_http_info(self, request):
|
1549
1766
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
1550
1767
|
|
1551
1768
|
cname = None
|
@@ -1576,9 +1793,9 @@ class CbrAsyncClient(Client):
|
|
1576
1793
|
|
1577
1794
|
form_params = {}
|
1578
1795
|
|
1579
|
-
|
1796
|
+
body = None
|
1580
1797
|
if isinstance(request, SdkStreamRequest):
|
1581
|
-
|
1798
|
+
body = request.get_file_stream()
|
1582
1799
|
|
1583
1800
|
response_headers = []
|
1584
1801
|
|
@@ -1587,20 +1804,16 @@ class CbrAsyncClient(Client):
|
|
1587
1804
|
|
1588
1805
|
auth_settings = []
|
1589
1806
|
|
1590
|
-
|
1591
|
-
|
1592
|
-
|
1593
|
-
|
1594
|
-
|
1595
|
-
|
1596
|
-
|
1597
|
-
|
1598
|
-
|
1599
|
-
|
1600
|
-
response_headers=response_headers,
|
1601
|
-
auth_settings=auth_settings,
|
1602
|
-
collection_formats=collection_formats,
|
1603
|
-
request_type=request.__class__.__name__)
|
1807
|
+
http_info["cname"] = cname
|
1808
|
+
http_info["collection_formats"] = collection_formats
|
1809
|
+
http_info["path_params"] = path_params
|
1810
|
+
http_info["query_params"] = query_params
|
1811
|
+
http_info["header_params"] = header_params
|
1812
|
+
http_info["post_params"] = form_params
|
1813
|
+
http_info["body"] = body
|
1814
|
+
http_info["response_headers"] = response_headers
|
1815
|
+
|
1816
|
+
return http_info
|
1604
1817
|
|
1605
1818
|
def list_op_logs_async(self, request):
|
1606
1819
|
"""查询任务列表
|
@@ -1614,9 +1827,21 @@ class CbrAsyncClient(Client):
|
|
1614
1827
|
:type request: :class:`huaweicloudsdkcbr.v1.ListOpLogsRequest`
|
1615
1828
|
:rtype: :class:`huaweicloudsdkcbr.v1.ListOpLogsResponse`
|
1616
1829
|
"""
|
1617
|
-
|
1830
|
+
http_info = self._list_op_logs_http_info(request)
|
1831
|
+
return self._call_api(**http_info)
|
1832
|
+
|
1833
|
+
def list_op_logs_async_invoker(self, request):
|
1834
|
+
http_info = self._list_op_logs_http_info(request)
|
1835
|
+
return AsyncInvoker(self, http_info)
|
1836
|
+
|
1837
|
+
def _list_op_logs_http_info(self, request):
|
1838
|
+
http_info = {
|
1839
|
+
"method": "GET",
|
1840
|
+
"resource_path": "/v3/{project_id}/operation-logs",
|
1841
|
+
"request_type": request.__class__.__name__,
|
1842
|
+
"response_type": "ListOpLogsResponse"
|
1843
|
+
}
|
1618
1844
|
|
1619
|
-
def _list_op_logs_with_http_info(self, request):
|
1620
1845
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
1621
1846
|
|
1622
1847
|
cname = None
|
@@ -1655,9 +1880,9 @@ class CbrAsyncClient(Client):
|
|
1655
1880
|
|
1656
1881
|
form_params = {}
|
1657
1882
|
|
1658
|
-
|
1883
|
+
body = None
|
1659
1884
|
if isinstance(request, SdkStreamRequest):
|
1660
|
-
|
1885
|
+
body = request.get_file_stream()
|
1661
1886
|
|
1662
1887
|
response_headers = []
|
1663
1888
|
|
@@ -1666,20 +1891,16 @@ class CbrAsyncClient(Client):
|
|
1666
1891
|
|
1667
1892
|
auth_settings = []
|
1668
1893
|
|
1669
|
-
|
1670
|
-
|
1671
|
-
|
1672
|
-
|
1673
|
-
|
1674
|
-
|
1675
|
-
|
1676
|
-
|
1677
|
-
|
1678
|
-
|
1679
|
-
response_headers=response_headers,
|
1680
|
-
auth_settings=auth_settings,
|
1681
|
-
collection_formats=collection_formats,
|
1682
|
-
request_type=request.__class__.__name__)
|
1894
|
+
http_info["cname"] = cname
|
1895
|
+
http_info["collection_formats"] = collection_formats
|
1896
|
+
http_info["path_params"] = path_params
|
1897
|
+
http_info["query_params"] = query_params
|
1898
|
+
http_info["header_params"] = header_params
|
1899
|
+
http_info["post_params"] = form_params
|
1900
|
+
http_info["body"] = body
|
1901
|
+
http_info["response_headers"] = response_headers
|
1902
|
+
|
1903
|
+
return http_info
|
1683
1904
|
|
1684
1905
|
def list_policies_async(self, request):
|
1685
1906
|
"""查询策略列表
|
@@ -1693,9 +1914,21 @@ class CbrAsyncClient(Client):
|
|
1693
1914
|
:type request: :class:`huaweicloudsdkcbr.v1.ListPoliciesRequest`
|
1694
1915
|
:rtype: :class:`huaweicloudsdkcbr.v1.ListPoliciesResponse`
|
1695
1916
|
"""
|
1696
|
-
|
1917
|
+
http_info = self._list_policies_http_info(request)
|
1918
|
+
return self._call_api(**http_info)
|
1919
|
+
|
1920
|
+
def list_policies_async_invoker(self, request):
|
1921
|
+
http_info = self._list_policies_http_info(request)
|
1922
|
+
return AsyncInvoker(self, http_info)
|
1923
|
+
|
1924
|
+
def _list_policies_http_info(self, request):
|
1925
|
+
http_info = {
|
1926
|
+
"method": "GET",
|
1927
|
+
"resource_path": "/v3/{project_id}/policies",
|
1928
|
+
"request_type": request.__class__.__name__,
|
1929
|
+
"response_type": "ListPoliciesResponse"
|
1930
|
+
}
|
1697
1931
|
|
1698
|
-
def _list_policies_with_http_info(self, request):
|
1699
1932
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
1700
1933
|
|
1701
1934
|
cname = None
|
@@ -1714,9 +1947,9 @@ class CbrAsyncClient(Client):
|
|
1714
1947
|
|
1715
1948
|
form_params = {}
|
1716
1949
|
|
1717
|
-
|
1950
|
+
body = None
|
1718
1951
|
if isinstance(request, SdkStreamRequest):
|
1719
|
-
|
1952
|
+
body = request.get_file_stream()
|
1720
1953
|
|
1721
1954
|
response_headers = []
|
1722
1955
|
|
@@ -1725,20 +1958,16 @@ class CbrAsyncClient(Client):
|
|
1725
1958
|
|
1726
1959
|
auth_settings = []
|
1727
1960
|
|
1728
|
-
|
1729
|
-
|
1730
|
-
|
1731
|
-
|
1732
|
-
|
1733
|
-
|
1734
|
-
|
1735
|
-
|
1736
|
-
|
1737
|
-
|
1738
|
-
response_headers=response_headers,
|
1739
|
-
auth_settings=auth_settings,
|
1740
|
-
collection_formats=collection_formats,
|
1741
|
-
request_type=request.__class__.__name__)
|
1961
|
+
http_info["cname"] = cname
|
1962
|
+
http_info["collection_formats"] = collection_formats
|
1963
|
+
http_info["path_params"] = path_params
|
1964
|
+
http_info["query_params"] = query_params
|
1965
|
+
http_info["header_params"] = header_params
|
1966
|
+
http_info["post_params"] = form_params
|
1967
|
+
http_info["body"] = body
|
1968
|
+
http_info["response_headers"] = response_headers
|
1969
|
+
|
1970
|
+
return http_info
|
1742
1971
|
|
1743
1972
|
def list_projects_async(self, request):
|
1744
1973
|
"""查询租户的项目信息
|
@@ -1752,9 +1981,21 @@ class CbrAsyncClient(Client):
|
|
1752
1981
|
:type request: :class:`huaweicloudsdkcbr.v1.ListProjectsRequest`
|
1753
1982
|
:rtype: :class:`huaweicloudsdkcbr.v1.ListProjectsResponse`
|
1754
1983
|
"""
|
1755
|
-
|
1984
|
+
http_info = self._list_projects_http_info(request)
|
1985
|
+
return self._call_api(**http_info)
|
1986
|
+
|
1987
|
+
def list_projects_async_invoker(self, request):
|
1988
|
+
http_info = self._list_projects_http_info(request)
|
1989
|
+
return AsyncInvoker(self, http_info)
|
1990
|
+
|
1991
|
+
def _list_projects_http_info(self, request):
|
1992
|
+
http_info = {
|
1993
|
+
"method": "GET",
|
1994
|
+
"resource_path": "/v3/region-projects",
|
1995
|
+
"request_type": request.__class__.__name__,
|
1996
|
+
"response_type": "ListProjectsResponse"
|
1997
|
+
}
|
1756
1998
|
|
1757
|
-
def _list_projects_with_http_info(self, request):
|
1758
1999
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
1759
2000
|
|
1760
2001
|
cname = None
|
@@ -1769,9 +2010,9 @@ class CbrAsyncClient(Client):
|
|
1769
2010
|
|
1770
2011
|
form_params = {}
|
1771
2012
|
|
1772
|
-
|
2013
|
+
body = None
|
1773
2014
|
if isinstance(request, SdkStreamRequest):
|
1774
|
-
|
2015
|
+
body = request.get_file_stream()
|
1775
2016
|
|
1776
2017
|
response_headers = []
|
1777
2018
|
|
@@ -1780,20 +2021,16 @@ class CbrAsyncClient(Client):
|
|
1780
2021
|
|
1781
2022
|
auth_settings = []
|
1782
2023
|
|
1783
|
-
|
1784
|
-
|
1785
|
-
|
1786
|
-
|
1787
|
-
|
1788
|
-
|
1789
|
-
|
1790
|
-
|
1791
|
-
|
1792
|
-
|
1793
|
-
response_headers=response_headers,
|
1794
|
-
auth_settings=auth_settings,
|
1795
|
-
collection_formats=collection_formats,
|
1796
|
-
request_type=request.__class__.__name__)
|
2024
|
+
http_info["cname"] = cname
|
2025
|
+
http_info["collection_formats"] = collection_formats
|
2026
|
+
http_info["path_params"] = path_params
|
2027
|
+
http_info["query_params"] = query_params
|
2028
|
+
http_info["header_params"] = header_params
|
2029
|
+
http_info["post_params"] = form_params
|
2030
|
+
http_info["body"] = body
|
2031
|
+
http_info["response_headers"] = response_headers
|
2032
|
+
|
2033
|
+
return http_info
|
1797
2034
|
|
1798
2035
|
def list_protectable_async(self, request):
|
1799
2036
|
"""查询可保护资源
|
@@ -1807,9 +2044,21 @@ class CbrAsyncClient(Client):
|
|
1807
2044
|
:type request: :class:`huaweicloudsdkcbr.v1.ListProtectableRequest`
|
1808
2045
|
:rtype: :class:`huaweicloudsdkcbr.v1.ListProtectableResponse`
|
1809
2046
|
"""
|
1810
|
-
|
2047
|
+
http_info = self._list_protectable_http_info(request)
|
2048
|
+
return self._call_api(**http_info)
|
2049
|
+
|
2050
|
+
def list_protectable_async_invoker(self, request):
|
2051
|
+
http_info = self._list_protectable_http_info(request)
|
2052
|
+
return AsyncInvoker(self, http_info)
|
2053
|
+
|
2054
|
+
def _list_protectable_http_info(self, request):
|
2055
|
+
http_info = {
|
2056
|
+
"method": "GET",
|
2057
|
+
"resource_path": "/v3/{project_id}/protectables/{protectable_type}/instances",
|
2058
|
+
"request_type": request.__class__.__name__,
|
2059
|
+
"response_type": "ListProtectableResponse"
|
2060
|
+
}
|
1811
2061
|
|
1812
|
-
def _list_protectable_with_http_info(self, request):
|
1813
2062
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
1814
2063
|
|
1815
2064
|
cname = None
|
@@ -1840,9 +2089,9 @@ class CbrAsyncClient(Client):
|
|
1840
2089
|
|
1841
2090
|
form_params = {}
|
1842
2091
|
|
1843
|
-
|
2092
|
+
body = None
|
1844
2093
|
if isinstance(request, SdkStreamRequest):
|
1845
|
-
|
2094
|
+
body = request.get_file_stream()
|
1846
2095
|
|
1847
2096
|
response_headers = []
|
1848
2097
|
|
@@ -1851,20 +2100,16 @@ class CbrAsyncClient(Client):
|
|
1851
2100
|
|
1852
2101
|
auth_settings = []
|
1853
2102
|
|
1854
|
-
|
1855
|
-
|
1856
|
-
|
1857
|
-
|
1858
|
-
|
1859
|
-
|
1860
|
-
|
1861
|
-
|
1862
|
-
|
1863
|
-
|
1864
|
-
response_headers=response_headers,
|
1865
|
-
auth_settings=auth_settings,
|
1866
|
-
collection_formats=collection_formats,
|
1867
|
-
request_type=request.__class__.__name__)
|
2103
|
+
http_info["cname"] = cname
|
2104
|
+
http_info["collection_formats"] = collection_formats
|
2105
|
+
http_info["path_params"] = path_params
|
2106
|
+
http_info["query_params"] = query_params
|
2107
|
+
http_info["header_params"] = header_params
|
2108
|
+
http_info["post_params"] = form_params
|
2109
|
+
http_info["body"] = body
|
2110
|
+
http_info["response_headers"] = response_headers
|
2111
|
+
|
2112
|
+
return http_info
|
1868
2113
|
|
1869
2114
|
def list_vault_async(self, request):
|
1870
2115
|
"""查询存储库列表
|
@@ -1878,9 +2123,21 @@ class CbrAsyncClient(Client):
|
|
1878
2123
|
:type request: :class:`huaweicloudsdkcbr.v1.ListVaultRequest`
|
1879
2124
|
:rtype: :class:`huaweicloudsdkcbr.v1.ListVaultResponse`
|
1880
2125
|
"""
|
1881
|
-
|
2126
|
+
http_info = self._list_vault_http_info(request)
|
2127
|
+
return self._call_api(**http_info)
|
2128
|
+
|
2129
|
+
def list_vault_async_invoker(self, request):
|
2130
|
+
http_info = self._list_vault_http_info(request)
|
2131
|
+
return AsyncInvoker(self, http_info)
|
2132
|
+
|
2133
|
+
def _list_vault_http_info(self, request):
|
2134
|
+
http_info = {
|
2135
|
+
"method": "GET",
|
2136
|
+
"resource_path": "/v3/{project_id}/vaults",
|
2137
|
+
"request_type": request.__class__.__name__,
|
2138
|
+
"response_type": "ListVaultResponse"
|
2139
|
+
}
|
1882
2140
|
|
1883
|
-
def _list_vault_with_http_info(self, request):
|
1884
2141
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
1885
2142
|
|
1886
2143
|
cname = None
|
@@ -1918,9 +2175,9 @@ class CbrAsyncClient(Client):
|
|
1918
2175
|
|
1919
2176
|
form_params = {}
|
1920
2177
|
|
1921
|
-
|
2178
|
+
body = None
|
1922
2179
|
if isinstance(request, SdkStreamRequest):
|
1923
|
-
|
2180
|
+
body = request.get_file_stream()
|
1924
2181
|
|
1925
2182
|
response_headers = []
|
1926
2183
|
|
@@ -1929,20 +2186,16 @@ class CbrAsyncClient(Client):
|
|
1929
2186
|
|
1930
2187
|
auth_settings = []
|
1931
2188
|
|
1932
|
-
|
1933
|
-
|
1934
|
-
|
1935
|
-
|
1936
|
-
|
1937
|
-
|
1938
|
-
|
1939
|
-
|
1940
|
-
|
1941
|
-
|
1942
|
-
response_headers=response_headers,
|
1943
|
-
auth_settings=auth_settings,
|
1944
|
-
collection_formats=collection_formats,
|
1945
|
-
request_type=request.__class__.__name__)
|
2189
|
+
http_info["cname"] = cname
|
2190
|
+
http_info["collection_formats"] = collection_formats
|
2191
|
+
http_info["path_params"] = path_params
|
2192
|
+
http_info["query_params"] = query_params
|
2193
|
+
http_info["header_params"] = header_params
|
2194
|
+
http_info["post_params"] = form_params
|
2195
|
+
http_info["body"] = body
|
2196
|
+
http_info["response_headers"] = response_headers
|
2197
|
+
|
2198
|
+
return http_info
|
1946
2199
|
|
1947
2200
|
def migrate_domain_async(self, request):
|
1948
2201
|
"""租户迁移
|
@@ -1956,9 +2209,21 @@ class CbrAsyncClient(Client):
|
|
1956
2209
|
:type request: :class:`huaweicloudsdkcbr.v1.MigrateDomainRequest`
|
1957
2210
|
:rtype: :class:`huaweicloudsdkcbr.v1.MigrateDomainResponse`
|
1958
2211
|
"""
|
1959
|
-
|
2212
|
+
http_info = self._migrate_domain_http_info(request)
|
2213
|
+
return self._call_api(**http_info)
|
2214
|
+
|
2215
|
+
def migrate_domain_async_invoker(self, request):
|
2216
|
+
http_info = self._migrate_domain_http_info(request)
|
2217
|
+
return AsyncInvoker(self, http_info)
|
2218
|
+
|
2219
|
+
def _migrate_domain_http_info(self, request):
|
2220
|
+
http_info = {
|
2221
|
+
"method": "POST",
|
2222
|
+
"resource_path": "/v3/migrates",
|
2223
|
+
"request_type": request.__class__.__name__,
|
2224
|
+
"response_type": "MigrateDomainResponse"
|
2225
|
+
}
|
1960
2226
|
|
1961
|
-
def _migrate_domain_with_http_info(self, request):
|
1962
2227
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
1963
2228
|
|
1964
2229
|
cname = None
|
@@ -1973,11 +2238,11 @@ class CbrAsyncClient(Client):
|
|
1973
2238
|
|
1974
2239
|
form_params = {}
|
1975
2240
|
|
1976
|
-
|
2241
|
+
body = None
|
1977
2242
|
if 'body' in local_var_params:
|
1978
|
-
|
2243
|
+
body = local_var_params['body']
|
1979
2244
|
if isinstance(request, SdkStreamRequest):
|
1980
|
-
|
2245
|
+
body = request.get_file_stream()
|
1981
2246
|
|
1982
2247
|
response_headers = []
|
1983
2248
|
|
@@ -1986,20 +2251,16 @@ class CbrAsyncClient(Client):
|
|
1986
2251
|
|
1987
2252
|
auth_settings = []
|
1988
2253
|
|
1989
|
-
|
1990
|
-
|
1991
|
-
|
1992
|
-
|
1993
|
-
|
1994
|
-
|
1995
|
-
|
1996
|
-
|
1997
|
-
|
1998
|
-
|
1999
|
-
response_headers=response_headers,
|
2000
|
-
auth_settings=auth_settings,
|
2001
|
-
collection_formats=collection_formats,
|
2002
|
-
request_type=request.__class__.__name__)
|
2254
|
+
http_info["cname"] = cname
|
2255
|
+
http_info["collection_formats"] = collection_formats
|
2256
|
+
http_info["path_params"] = path_params
|
2257
|
+
http_info["query_params"] = query_params
|
2258
|
+
http_info["header_params"] = header_params
|
2259
|
+
http_info["post_params"] = form_params
|
2260
|
+
http_info["body"] = body
|
2261
|
+
http_info["response_headers"] = response_headers
|
2262
|
+
|
2263
|
+
return http_info
|
2003
2264
|
|
2004
2265
|
def migrate_vault_resource_async(self, request):
|
2005
2266
|
"""迁移资源
|
@@ -2013,9 +2274,21 @@ class CbrAsyncClient(Client):
|
|
2013
2274
|
:type request: :class:`huaweicloudsdkcbr.v1.MigrateVaultResourceRequest`
|
2014
2275
|
:rtype: :class:`huaweicloudsdkcbr.v1.MigrateVaultResourceResponse`
|
2015
2276
|
"""
|
2016
|
-
|
2277
|
+
http_info = self._migrate_vault_resource_http_info(request)
|
2278
|
+
return self._call_api(**http_info)
|
2279
|
+
|
2280
|
+
def migrate_vault_resource_async_invoker(self, request):
|
2281
|
+
http_info = self._migrate_vault_resource_http_info(request)
|
2282
|
+
return AsyncInvoker(self, http_info)
|
2283
|
+
|
2284
|
+
def _migrate_vault_resource_http_info(self, request):
|
2285
|
+
http_info = {
|
2286
|
+
"method": "POST",
|
2287
|
+
"resource_path": "/v3/{project_id}/vaults/{vault_id}/migrateresources",
|
2288
|
+
"request_type": request.__class__.__name__,
|
2289
|
+
"response_type": "MigrateVaultResourceResponse"
|
2290
|
+
}
|
2017
2291
|
|
2018
|
-
def _migrate_vault_resource_with_http_info(self, request):
|
2019
2292
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
2020
2293
|
|
2021
2294
|
cname = None
|
@@ -2032,11 +2305,11 @@ class CbrAsyncClient(Client):
|
|
2032
2305
|
|
2033
2306
|
form_params = {}
|
2034
2307
|
|
2035
|
-
|
2308
|
+
body = None
|
2036
2309
|
if 'body' in local_var_params:
|
2037
|
-
|
2310
|
+
body = local_var_params['body']
|
2038
2311
|
if isinstance(request, SdkStreamRequest):
|
2039
|
-
|
2312
|
+
body = request.get_file_stream()
|
2040
2313
|
|
2041
2314
|
response_headers = []
|
2042
2315
|
|
@@ -2045,20 +2318,16 @@ class CbrAsyncClient(Client):
|
|
2045
2318
|
|
2046
2319
|
auth_settings = []
|
2047
2320
|
|
2048
|
-
|
2049
|
-
|
2050
|
-
|
2051
|
-
|
2052
|
-
|
2053
|
-
|
2054
|
-
|
2055
|
-
|
2056
|
-
|
2057
|
-
|
2058
|
-
response_headers=response_headers,
|
2059
|
-
auth_settings=auth_settings,
|
2060
|
-
collection_formats=collection_formats,
|
2061
|
-
request_type=request.__class__.__name__)
|
2321
|
+
http_info["cname"] = cname
|
2322
|
+
http_info["collection_formats"] = collection_formats
|
2323
|
+
http_info["path_params"] = path_params
|
2324
|
+
http_info["query_params"] = query_params
|
2325
|
+
http_info["header_params"] = header_params
|
2326
|
+
http_info["post_params"] = form_params
|
2327
|
+
http_info["body"] = body
|
2328
|
+
http_info["response_headers"] = response_headers
|
2329
|
+
|
2330
|
+
return http_info
|
2062
2331
|
|
2063
2332
|
def register_agent_async(self, request):
|
2064
2333
|
"""注册客户端
|
@@ -2072,9 +2341,21 @@ class CbrAsyncClient(Client):
|
|
2072
2341
|
:type request: :class:`huaweicloudsdkcbr.v1.RegisterAgentRequest`
|
2073
2342
|
:rtype: :class:`huaweicloudsdkcbr.v1.RegisterAgentResponse`
|
2074
2343
|
"""
|
2075
|
-
|
2344
|
+
http_info = self._register_agent_http_info(request)
|
2345
|
+
return self._call_api(**http_info)
|
2346
|
+
|
2347
|
+
def register_agent_async_invoker(self, request):
|
2348
|
+
http_info = self._register_agent_http_info(request)
|
2349
|
+
return AsyncInvoker(self, http_info)
|
2350
|
+
|
2351
|
+
def _register_agent_http_info(self, request):
|
2352
|
+
http_info = {
|
2353
|
+
"method": "POST",
|
2354
|
+
"resource_path": "/v3/{project_id}/agents",
|
2355
|
+
"request_type": request.__class__.__name__,
|
2356
|
+
"response_type": "RegisterAgentResponse"
|
2357
|
+
}
|
2076
2358
|
|
2077
|
-
def _register_agent_with_http_info(self, request):
|
2078
2359
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
2079
2360
|
|
2080
2361
|
cname = None
|
@@ -2089,11 +2370,11 @@ class CbrAsyncClient(Client):
|
|
2089
2370
|
|
2090
2371
|
form_params = {}
|
2091
2372
|
|
2092
|
-
|
2373
|
+
body = None
|
2093
2374
|
if 'body' in local_var_params:
|
2094
|
-
|
2375
|
+
body = local_var_params['body']
|
2095
2376
|
if isinstance(request, SdkStreamRequest):
|
2096
|
-
|
2377
|
+
body = request.get_file_stream()
|
2097
2378
|
|
2098
2379
|
response_headers = []
|
2099
2380
|
|
@@ -2102,20 +2383,16 @@ class CbrAsyncClient(Client):
|
|
2102
2383
|
|
2103
2384
|
auth_settings = []
|
2104
2385
|
|
2105
|
-
|
2106
|
-
|
2107
|
-
|
2108
|
-
|
2109
|
-
|
2110
|
-
|
2111
|
-
|
2112
|
-
|
2113
|
-
|
2114
|
-
|
2115
|
-
response_headers=response_headers,
|
2116
|
-
auth_settings=auth_settings,
|
2117
|
-
collection_formats=collection_formats,
|
2118
|
-
request_type=request.__class__.__name__)
|
2386
|
+
http_info["cname"] = cname
|
2387
|
+
http_info["collection_formats"] = collection_formats
|
2388
|
+
http_info["path_params"] = path_params
|
2389
|
+
http_info["query_params"] = query_params
|
2390
|
+
http_info["header_params"] = header_params
|
2391
|
+
http_info["post_params"] = form_params
|
2392
|
+
http_info["body"] = body
|
2393
|
+
http_info["response_headers"] = response_headers
|
2394
|
+
|
2395
|
+
return http_info
|
2119
2396
|
|
2120
2397
|
def remove_agent_path_async(self, request):
|
2121
2398
|
"""移除备份路径
|
@@ -2129,9 +2406,21 @@ class CbrAsyncClient(Client):
|
|
2129
2406
|
:type request: :class:`huaweicloudsdkcbr.v1.RemoveAgentPathRequest`
|
2130
2407
|
:rtype: :class:`huaweicloudsdkcbr.v1.RemoveAgentPathResponse`
|
2131
2408
|
"""
|
2132
|
-
|
2409
|
+
http_info = self._remove_agent_path_http_info(request)
|
2410
|
+
return self._call_api(**http_info)
|
2411
|
+
|
2412
|
+
def remove_agent_path_async_invoker(self, request):
|
2413
|
+
http_info = self._remove_agent_path_http_info(request)
|
2414
|
+
return AsyncInvoker(self, http_info)
|
2415
|
+
|
2416
|
+
def _remove_agent_path_http_info(self, request):
|
2417
|
+
http_info = {
|
2418
|
+
"method": "POST",
|
2419
|
+
"resource_path": "/v3/{project_id}/agents/{agent_id}/remove-path",
|
2420
|
+
"request_type": request.__class__.__name__,
|
2421
|
+
"response_type": "RemoveAgentPathResponse"
|
2422
|
+
}
|
2133
2423
|
|
2134
|
-
def _remove_agent_path_with_http_info(self, request):
|
2135
2424
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
2136
2425
|
|
2137
2426
|
cname = None
|
@@ -2148,11 +2437,11 @@ class CbrAsyncClient(Client):
|
|
2148
2437
|
|
2149
2438
|
form_params = {}
|
2150
2439
|
|
2151
|
-
|
2440
|
+
body = None
|
2152
2441
|
if 'body' in local_var_params:
|
2153
|
-
|
2442
|
+
body = local_var_params['body']
|
2154
2443
|
if isinstance(request, SdkStreamRequest):
|
2155
|
-
|
2444
|
+
body = request.get_file_stream()
|
2156
2445
|
|
2157
2446
|
response_headers = []
|
2158
2447
|
|
@@ -2161,20 +2450,16 @@ class CbrAsyncClient(Client):
|
|
2161
2450
|
|
2162
2451
|
auth_settings = []
|
2163
2452
|
|
2164
|
-
|
2165
|
-
|
2166
|
-
|
2167
|
-
|
2168
|
-
|
2169
|
-
|
2170
|
-
|
2171
|
-
|
2172
|
-
|
2173
|
-
|
2174
|
-
response_headers=response_headers,
|
2175
|
-
auth_settings=auth_settings,
|
2176
|
-
collection_formats=collection_formats,
|
2177
|
-
request_type=request.__class__.__name__)
|
2453
|
+
http_info["cname"] = cname
|
2454
|
+
http_info["collection_formats"] = collection_formats
|
2455
|
+
http_info["path_params"] = path_params
|
2456
|
+
http_info["query_params"] = query_params
|
2457
|
+
http_info["header_params"] = header_params
|
2458
|
+
http_info["post_params"] = form_params
|
2459
|
+
http_info["body"] = body
|
2460
|
+
http_info["response_headers"] = response_headers
|
2461
|
+
|
2462
|
+
return http_info
|
2178
2463
|
|
2179
2464
|
def remove_vault_resource_async(self, request):
|
2180
2465
|
"""移除资源
|
@@ -2188,9 +2473,21 @@ class CbrAsyncClient(Client):
|
|
2188
2473
|
:type request: :class:`huaweicloudsdkcbr.v1.RemoveVaultResourceRequest`
|
2189
2474
|
:rtype: :class:`huaweicloudsdkcbr.v1.RemoveVaultResourceResponse`
|
2190
2475
|
"""
|
2191
|
-
|
2476
|
+
http_info = self._remove_vault_resource_http_info(request)
|
2477
|
+
return self._call_api(**http_info)
|
2478
|
+
|
2479
|
+
def remove_vault_resource_async_invoker(self, request):
|
2480
|
+
http_info = self._remove_vault_resource_http_info(request)
|
2481
|
+
return AsyncInvoker(self, http_info)
|
2482
|
+
|
2483
|
+
def _remove_vault_resource_http_info(self, request):
|
2484
|
+
http_info = {
|
2485
|
+
"method": "POST",
|
2486
|
+
"resource_path": "/v3/{project_id}/vaults/{vault_id}/removeresources",
|
2487
|
+
"request_type": request.__class__.__name__,
|
2488
|
+
"response_type": "RemoveVaultResourceResponse"
|
2489
|
+
}
|
2192
2490
|
|
2193
|
-
def _remove_vault_resource_with_http_info(self, request):
|
2194
2491
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
2195
2492
|
|
2196
2493
|
cname = None
|
@@ -2207,11 +2504,11 @@ class CbrAsyncClient(Client):
|
|
2207
2504
|
|
2208
2505
|
form_params = {}
|
2209
2506
|
|
2210
|
-
|
2507
|
+
body = None
|
2211
2508
|
if 'body' in local_var_params:
|
2212
|
-
|
2509
|
+
body = local_var_params['body']
|
2213
2510
|
if isinstance(request, SdkStreamRequest):
|
2214
|
-
|
2511
|
+
body = request.get_file_stream()
|
2215
2512
|
|
2216
2513
|
response_headers = []
|
2217
2514
|
|
@@ -2220,20 +2517,16 @@ class CbrAsyncClient(Client):
|
|
2220
2517
|
|
2221
2518
|
auth_settings = []
|
2222
2519
|
|
2223
|
-
|
2224
|
-
|
2225
|
-
|
2226
|
-
|
2227
|
-
|
2228
|
-
|
2229
|
-
|
2230
|
-
|
2231
|
-
|
2232
|
-
|
2233
|
-
response_headers=response_headers,
|
2234
|
-
auth_settings=auth_settings,
|
2235
|
-
collection_formats=collection_formats,
|
2236
|
-
request_type=request.__class__.__name__)
|
2520
|
+
http_info["cname"] = cname
|
2521
|
+
http_info["collection_formats"] = collection_formats
|
2522
|
+
http_info["path_params"] = path_params
|
2523
|
+
http_info["query_params"] = query_params
|
2524
|
+
http_info["header_params"] = header_params
|
2525
|
+
http_info["post_params"] = form_params
|
2526
|
+
http_info["body"] = body
|
2527
|
+
http_info["response_headers"] = response_headers
|
2528
|
+
|
2529
|
+
return http_info
|
2237
2530
|
|
2238
2531
|
def restore_backup_async(self, request):
|
2239
2532
|
"""备份恢复
|
@@ -2247,9 +2540,21 @@ class CbrAsyncClient(Client):
|
|
2247
2540
|
:type request: :class:`huaweicloudsdkcbr.v1.RestoreBackupRequest`
|
2248
2541
|
:rtype: :class:`huaweicloudsdkcbr.v1.RestoreBackupResponse`
|
2249
2542
|
"""
|
2250
|
-
|
2543
|
+
http_info = self._restore_backup_http_info(request)
|
2544
|
+
return self._call_api(**http_info)
|
2545
|
+
|
2546
|
+
def restore_backup_async_invoker(self, request):
|
2547
|
+
http_info = self._restore_backup_http_info(request)
|
2548
|
+
return AsyncInvoker(self, http_info)
|
2549
|
+
|
2550
|
+
def _restore_backup_http_info(self, request):
|
2551
|
+
http_info = {
|
2552
|
+
"method": "POST",
|
2553
|
+
"resource_path": "/v3/{project_id}/backups/{backup_id}/restore",
|
2554
|
+
"request_type": request.__class__.__name__,
|
2555
|
+
"response_type": "RestoreBackupResponse"
|
2556
|
+
}
|
2251
2557
|
|
2252
|
-
def _restore_backup_with_http_info(self, request):
|
2253
2558
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
2254
2559
|
|
2255
2560
|
cname = None
|
@@ -2266,11 +2571,11 @@ class CbrAsyncClient(Client):
|
|
2266
2571
|
|
2267
2572
|
form_params = {}
|
2268
2573
|
|
2269
|
-
|
2574
|
+
body = None
|
2270
2575
|
if 'body' in local_var_params:
|
2271
|
-
|
2576
|
+
body = local_var_params['body']
|
2272
2577
|
if isinstance(request, SdkStreamRequest):
|
2273
|
-
|
2578
|
+
body = request.get_file_stream()
|
2274
2579
|
|
2275
2580
|
response_headers = []
|
2276
2581
|
|
@@ -2279,20 +2584,16 @@ class CbrAsyncClient(Client):
|
|
2279
2584
|
|
2280
2585
|
auth_settings = []
|
2281
2586
|
|
2282
|
-
|
2283
|
-
|
2284
|
-
|
2285
|
-
|
2286
|
-
|
2287
|
-
|
2288
|
-
|
2289
|
-
|
2290
|
-
|
2291
|
-
|
2292
|
-
response_headers=response_headers,
|
2293
|
-
auth_settings=auth_settings,
|
2294
|
-
collection_formats=collection_formats,
|
2295
|
-
request_type=request.__class__.__name__)
|
2587
|
+
http_info["cname"] = cname
|
2588
|
+
http_info["collection_formats"] = collection_formats
|
2589
|
+
http_info["path_params"] = path_params
|
2590
|
+
http_info["query_params"] = query_params
|
2591
|
+
http_info["header_params"] = header_params
|
2592
|
+
http_info["post_params"] = form_params
|
2593
|
+
http_info["body"] = body
|
2594
|
+
http_info["response_headers"] = response_headers
|
2595
|
+
|
2596
|
+
return http_info
|
2296
2597
|
|
2297
2598
|
def set_vault_resource_async(self, request):
|
2298
2599
|
"""设置存储库资源
|
@@ -2306,9 +2607,21 @@ class CbrAsyncClient(Client):
|
|
2306
2607
|
:type request: :class:`huaweicloudsdkcbr.v1.SetVaultResourceRequest`
|
2307
2608
|
:rtype: :class:`huaweicloudsdkcbr.v1.SetVaultResourceResponse`
|
2308
2609
|
"""
|
2309
|
-
|
2610
|
+
http_info = self._set_vault_resource_http_info(request)
|
2611
|
+
return self._call_api(**http_info)
|
2612
|
+
|
2613
|
+
def set_vault_resource_async_invoker(self, request):
|
2614
|
+
http_info = self._set_vault_resource_http_info(request)
|
2615
|
+
return AsyncInvoker(self, http_info)
|
2616
|
+
|
2617
|
+
def _set_vault_resource_http_info(self, request):
|
2618
|
+
http_info = {
|
2619
|
+
"method": "PUT",
|
2620
|
+
"resource_path": "/v3/{project_id}/vaults/{vault_id}/set-resources",
|
2621
|
+
"request_type": request.__class__.__name__,
|
2622
|
+
"response_type": "SetVaultResourceResponse"
|
2623
|
+
}
|
2310
2624
|
|
2311
|
-
def _set_vault_resource_with_http_info(self, request):
|
2312
2625
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
2313
2626
|
|
2314
2627
|
cname = None
|
@@ -2325,11 +2638,11 @@ class CbrAsyncClient(Client):
|
|
2325
2638
|
|
2326
2639
|
form_params = {}
|
2327
2640
|
|
2328
|
-
|
2641
|
+
body = None
|
2329
2642
|
if 'body' in local_var_params:
|
2330
|
-
|
2643
|
+
body = local_var_params['body']
|
2331
2644
|
if isinstance(request, SdkStreamRequest):
|
2332
|
-
|
2645
|
+
body = request.get_file_stream()
|
2333
2646
|
|
2334
2647
|
response_headers = []
|
2335
2648
|
|
@@ -2338,20 +2651,16 @@ class CbrAsyncClient(Client):
|
|
2338
2651
|
|
2339
2652
|
auth_settings = []
|
2340
2653
|
|
2341
|
-
|
2342
|
-
|
2343
|
-
|
2344
|
-
|
2345
|
-
|
2346
|
-
|
2347
|
-
|
2348
|
-
|
2349
|
-
|
2350
|
-
|
2351
|
-
response_headers=response_headers,
|
2352
|
-
auth_settings=auth_settings,
|
2353
|
-
collection_formats=collection_formats,
|
2354
|
-
request_type=request.__class__.__name__)
|
2654
|
+
http_info["cname"] = cname
|
2655
|
+
http_info["collection_formats"] = collection_formats
|
2656
|
+
http_info["path_params"] = path_params
|
2657
|
+
http_info["query_params"] = query_params
|
2658
|
+
http_info["header_params"] = header_params
|
2659
|
+
http_info["post_params"] = form_params
|
2660
|
+
http_info["body"] = body
|
2661
|
+
http_info["response_headers"] = response_headers
|
2662
|
+
|
2663
|
+
return http_info
|
2355
2664
|
|
2356
2665
|
def show_agent_async(self, request):
|
2357
2666
|
"""查询指定客户端
|
@@ -2365,9 +2674,21 @@ class CbrAsyncClient(Client):
|
|
2365
2674
|
:type request: :class:`huaweicloudsdkcbr.v1.ShowAgentRequest`
|
2366
2675
|
:rtype: :class:`huaweicloudsdkcbr.v1.ShowAgentResponse`
|
2367
2676
|
"""
|
2368
|
-
|
2677
|
+
http_info = self._show_agent_http_info(request)
|
2678
|
+
return self._call_api(**http_info)
|
2679
|
+
|
2680
|
+
def show_agent_async_invoker(self, request):
|
2681
|
+
http_info = self._show_agent_http_info(request)
|
2682
|
+
return AsyncInvoker(self, http_info)
|
2683
|
+
|
2684
|
+
def _show_agent_http_info(self, request):
|
2685
|
+
http_info = {
|
2686
|
+
"method": "GET",
|
2687
|
+
"resource_path": "/v3/{project_id}/agents/{agent_id}",
|
2688
|
+
"request_type": request.__class__.__name__,
|
2689
|
+
"response_type": "ShowAgentResponse"
|
2690
|
+
}
|
2369
2691
|
|
2370
|
-
def _show_agent_with_http_info(self, request):
|
2371
2692
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
2372
2693
|
|
2373
2694
|
cname = None
|
@@ -2384,9 +2705,9 @@ class CbrAsyncClient(Client):
|
|
2384
2705
|
|
2385
2706
|
form_params = {}
|
2386
2707
|
|
2387
|
-
|
2708
|
+
body = None
|
2388
2709
|
if isinstance(request, SdkStreamRequest):
|
2389
|
-
|
2710
|
+
body = request.get_file_stream()
|
2390
2711
|
|
2391
2712
|
response_headers = []
|
2392
2713
|
|
@@ -2395,20 +2716,16 @@ class CbrAsyncClient(Client):
|
|
2395
2716
|
|
2396
2717
|
auth_settings = []
|
2397
2718
|
|
2398
|
-
|
2399
|
-
|
2400
|
-
|
2401
|
-
|
2402
|
-
|
2403
|
-
|
2404
|
-
|
2405
|
-
|
2406
|
-
|
2407
|
-
|
2408
|
-
response_headers=response_headers,
|
2409
|
-
auth_settings=auth_settings,
|
2410
|
-
collection_formats=collection_formats,
|
2411
|
-
request_type=request.__class__.__name__)
|
2719
|
+
http_info["cname"] = cname
|
2720
|
+
http_info["collection_formats"] = collection_formats
|
2721
|
+
http_info["path_params"] = path_params
|
2722
|
+
http_info["query_params"] = query_params
|
2723
|
+
http_info["header_params"] = header_params
|
2724
|
+
http_info["post_params"] = form_params
|
2725
|
+
http_info["body"] = body
|
2726
|
+
http_info["response_headers"] = response_headers
|
2727
|
+
|
2728
|
+
return http_info
|
2412
2729
|
|
2413
2730
|
def show_backup_async(self, request):
|
2414
2731
|
"""查询指定备份
|
@@ -2422,9 +2739,21 @@ class CbrAsyncClient(Client):
|
|
2422
2739
|
:type request: :class:`huaweicloudsdkcbr.v1.ShowBackupRequest`
|
2423
2740
|
:rtype: :class:`huaweicloudsdkcbr.v1.ShowBackupResponse`
|
2424
2741
|
"""
|
2425
|
-
|
2742
|
+
http_info = self._show_backup_http_info(request)
|
2743
|
+
return self._call_api(**http_info)
|
2744
|
+
|
2745
|
+
def show_backup_async_invoker(self, request):
|
2746
|
+
http_info = self._show_backup_http_info(request)
|
2747
|
+
return AsyncInvoker(self, http_info)
|
2748
|
+
|
2749
|
+
def _show_backup_http_info(self, request):
|
2750
|
+
http_info = {
|
2751
|
+
"method": "GET",
|
2752
|
+
"resource_path": "/v3/{project_id}/backups/{backup_id}",
|
2753
|
+
"request_type": request.__class__.__name__,
|
2754
|
+
"response_type": "ShowBackupResponse"
|
2755
|
+
}
|
2426
2756
|
|
2427
|
-
def _show_backup_with_http_info(self, request):
|
2428
2757
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
2429
2758
|
|
2430
2759
|
cname = None
|
@@ -2441,9 +2770,9 @@ class CbrAsyncClient(Client):
|
|
2441
2770
|
|
2442
2771
|
form_params = {}
|
2443
2772
|
|
2444
|
-
|
2773
|
+
body = None
|
2445
2774
|
if isinstance(request, SdkStreamRequest):
|
2446
|
-
|
2775
|
+
body = request.get_file_stream()
|
2447
2776
|
|
2448
2777
|
response_headers = []
|
2449
2778
|
|
@@ -2452,20 +2781,16 @@ class CbrAsyncClient(Client):
|
|
2452
2781
|
|
2453
2782
|
auth_settings = []
|
2454
2783
|
|
2455
|
-
|
2456
|
-
|
2457
|
-
|
2458
|
-
|
2459
|
-
|
2460
|
-
|
2461
|
-
|
2462
|
-
|
2463
|
-
|
2464
|
-
|
2465
|
-
response_headers=response_headers,
|
2466
|
-
auth_settings=auth_settings,
|
2467
|
-
collection_formats=collection_formats,
|
2468
|
-
request_type=request.__class__.__name__)
|
2784
|
+
http_info["cname"] = cname
|
2785
|
+
http_info["collection_formats"] = collection_formats
|
2786
|
+
http_info["path_params"] = path_params
|
2787
|
+
http_info["query_params"] = query_params
|
2788
|
+
http_info["header_params"] = header_params
|
2789
|
+
http_info["post_params"] = form_params
|
2790
|
+
http_info["body"] = body
|
2791
|
+
http_info["response_headers"] = response_headers
|
2792
|
+
|
2793
|
+
return http_info
|
2469
2794
|
|
2470
2795
|
def show_checkpoint_async(self, request):
|
2471
2796
|
"""查询备份还原点
|
@@ -2479,9 +2804,21 @@ class CbrAsyncClient(Client):
|
|
2479
2804
|
:type request: :class:`huaweicloudsdkcbr.v1.ShowCheckpointRequest`
|
2480
2805
|
:rtype: :class:`huaweicloudsdkcbr.v1.ShowCheckpointResponse`
|
2481
2806
|
"""
|
2482
|
-
|
2807
|
+
http_info = self._show_checkpoint_http_info(request)
|
2808
|
+
return self._call_api(**http_info)
|
2809
|
+
|
2810
|
+
def show_checkpoint_async_invoker(self, request):
|
2811
|
+
http_info = self._show_checkpoint_http_info(request)
|
2812
|
+
return AsyncInvoker(self, http_info)
|
2813
|
+
|
2814
|
+
def _show_checkpoint_http_info(self, request):
|
2815
|
+
http_info = {
|
2816
|
+
"method": "GET",
|
2817
|
+
"resource_path": "/v3/{project_id}/checkpoints/{checkpoint_id}",
|
2818
|
+
"request_type": request.__class__.__name__,
|
2819
|
+
"response_type": "ShowCheckpointResponse"
|
2820
|
+
}
|
2483
2821
|
|
2484
|
-
def _show_checkpoint_with_http_info(self, request):
|
2485
2822
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
2486
2823
|
|
2487
2824
|
cname = None
|
@@ -2498,9 +2835,9 @@ class CbrAsyncClient(Client):
|
|
2498
2835
|
|
2499
2836
|
form_params = {}
|
2500
2837
|
|
2501
|
-
|
2838
|
+
body = None
|
2502
2839
|
if isinstance(request, SdkStreamRequest):
|
2503
|
-
|
2840
|
+
body = request.get_file_stream()
|
2504
2841
|
|
2505
2842
|
response_headers = []
|
2506
2843
|
|
@@ -2509,20 +2846,16 @@ class CbrAsyncClient(Client):
|
|
2509
2846
|
|
2510
2847
|
auth_settings = []
|
2511
2848
|
|
2512
|
-
|
2513
|
-
|
2514
|
-
|
2515
|
-
|
2516
|
-
|
2517
|
-
|
2518
|
-
|
2519
|
-
|
2520
|
-
|
2521
|
-
|
2522
|
-
response_headers=response_headers,
|
2523
|
-
auth_settings=auth_settings,
|
2524
|
-
collection_formats=collection_formats,
|
2525
|
-
request_type=request.__class__.__name__)
|
2849
|
+
http_info["cname"] = cname
|
2850
|
+
http_info["collection_formats"] = collection_formats
|
2851
|
+
http_info["path_params"] = path_params
|
2852
|
+
http_info["query_params"] = query_params
|
2853
|
+
http_info["header_params"] = header_params
|
2854
|
+
http_info["post_params"] = form_params
|
2855
|
+
http_info["body"] = body
|
2856
|
+
http_info["response_headers"] = response_headers
|
2857
|
+
|
2858
|
+
return http_info
|
2526
2859
|
|
2527
2860
|
def show_domain_async(self, request):
|
2528
2861
|
"""查询租户信息
|
@@ -2536,9 +2869,21 @@ class CbrAsyncClient(Client):
|
|
2536
2869
|
:type request: :class:`huaweicloudsdkcbr.v1.ShowDomainRequest`
|
2537
2870
|
:rtype: :class:`huaweicloudsdkcbr.v1.ShowDomainResponse`
|
2538
2871
|
"""
|
2539
|
-
|
2872
|
+
http_info = self._show_domain_http_info(request)
|
2873
|
+
return self._call_api(**http_info)
|
2874
|
+
|
2875
|
+
def show_domain_async_invoker(self, request):
|
2876
|
+
http_info = self._show_domain_http_info(request)
|
2877
|
+
return AsyncInvoker(self, http_info)
|
2878
|
+
|
2879
|
+
def _show_domain_http_info(self, request):
|
2880
|
+
http_info = {
|
2881
|
+
"method": "GET",
|
2882
|
+
"resource_path": "/v3/domain/{source_project_id}",
|
2883
|
+
"request_type": request.__class__.__name__,
|
2884
|
+
"response_type": "ShowDomainResponse"
|
2885
|
+
}
|
2540
2886
|
|
2541
|
-
def _show_domain_with_http_info(self, request):
|
2542
2887
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
2543
2888
|
|
2544
2889
|
cname = None
|
@@ -2555,9 +2900,9 @@ class CbrAsyncClient(Client):
|
|
2555
2900
|
|
2556
2901
|
form_params = {}
|
2557
2902
|
|
2558
|
-
|
2903
|
+
body = None
|
2559
2904
|
if isinstance(request, SdkStreamRequest):
|
2560
|
-
|
2905
|
+
body = request.get_file_stream()
|
2561
2906
|
|
2562
2907
|
response_headers = []
|
2563
2908
|
|
@@ -2566,20 +2911,16 @@ class CbrAsyncClient(Client):
|
|
2566
2911
|
|
2567
2912
|
auth_settings = []
|
2568
2913
|
|
2569
|
-
|
2570
|
-
|
2571
|
-
|
2572
|
-
|
2573
|
-
|
2574
|
-
|
2575
|
-
|
2576
|
-
|
2577
|
-
|
2578
|
-
|
2579
|
-
response_headers=response_headers,
|
2580
|
-
auth_settings=auth_settings,
|
2581
|
-
collection_formats=collection_formats,
|
2582
|
-
request_type=request.__class__.__name__)
|
2914
|
+
http_info["cname"] = cname
|
2915
|
+
http_info["collection_formats"] = collection_formats
|
2916
|
+
http_info["path_params"] = path_params
|
2917
|
+
http_info["query_params"] = query_params
|
2918
|
+
http_info["header_params"] = header_params
|
2919
|
+
http_info["post_params"] = form_params
|
2920
|
+
http_info["body"] = body
|
2921
|
+
http_info["response_headers"] = response_headers
|
2922
|
+
|
2923
|
+
return http_info
|
2583
2924
|
|
2584
2925
|
def show_member_detail_async(self, request):
|
2585
2926
|
"""获取备份成员详情
|
@@ -2593,9 +2934,21 @@ class CbrAsyncClient(Client):
|
|
2593
2934
|
:type request: :class:`huaweicloudsdkcbr.v1.ShowMemberDetailRequest`
|
2594
2935
|
:rtype: :class:`huaweicloudsdkcbr.v1.ShowMemberDetailResponse`
|
2595
2936
|
"""
|
2596
|
-
|
2937
|
+
http_info = self._show_member_detail_http_info(request)
|
2938
|
+
return self._call_api(**http_info)
|
2939
|
+
|
2940
|
+
def show_member_detail_async_invoker(self, request):
|
2941
|
+
http_info = self._show_member_detail_http_info(request)
|
2942
|
+
return AsyncInvoker(self, http_info)
|
2943
|
+
|
2944
|
+
def _show_member_detail_http_info(self, request):
|
2945
|
+
http_info = {
|
2946
|
+
"method": "GET",
|
2947
|
+
"resource_path": "/v3/{project_id}/backups/{backup_id}/members/{member_id}",
|
2948
|
+
"request_type": request.__class__.__name__,
|
2949
|
+
"response_type": "ShowMemberDetailResponse"
|
2950
|
+
}
|
2597
2951
|
|
2598
|
-
def _show_member_detail_with_http_info(self, request):
|
2599
2952
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
2600
2953
|
|
2601
2954
|
cname = None
|
@@ -2614,9 +2967,9 @@ class CbrAsyncClient(Client):
|
|
2614
2967
|
|
2615
2968
|
form_params = {}
|
2616
2969
|
|
2617
|
-
|
2970
|
+
body = None
|
2618
2971
|
if isinstance(request, SdkStreamRequest):
|
2619
|
-
|
2972
|
+
body = request.get_file_stream()
|
2620
2973
|
|
2621
2974
|
response_headers = []
|
2622
2975
|
|
@@ -2625,20 +2978,16 @@ class CbrAsyncClient(Client):
|
|
2625
2978
|
|
2626
2979
|
auth_settings = []
|
2627
2980
|
|
2628
|
-
|
2629
|
-
|
2630
|
-
|
2631
|
-
|
2632
|
-
|
2633
|
-
|
2634
|
-
|
2635
|
-
|
2636
|
-
|
2637
|
-
|
2638
|
-
response_headers=response_headers,
|
2639
|
-
auth_settings=auth_settings,
|
2640
|
-
collection_formats=collection_formats,
|
2641
|
-
request_type=request.__class__.__name__)
|
2981
|
+
http_info["cname"] = cname
|
2982
|
+
http_info["collection_formats"] = collection_formats
|
2983
|
+
http_info["path_params"] = path_params
|
2984
|
+
http_info["query_params"] = query_params
|
2985
|
+
http_info["header_params"] = header_params
|
2986
|
+
http_info["post_params"] = form_params
|
2987
|
+
http_info["body"] = body
|
2988
|
+
http_info["response_headers"] = response_headers
|
2989
|
+
|
2990
|
+
return http_info
|
2642
2991
|
|
2643
2992
|
def show_members_detail_async(self, request):
|
2644
2993
|
"""获取备份成员列表
|
@@ -2652,9 +3001,21 @@ class CbrAsyncClient(Client):
|
|
2652
3001
|
:type request: :class:`huaweicloudsdkcbr.v1.ShowMembersDetailRequest`
|
2653
3002
|
:rtype: :class:`huaweicloudsdkcbr.v1.ShowMembersDetailResponse`
|
2654
3003
|
"""
|
2655
|
-
|
3004
|
+
http_info = self._show_members_detail_http_info(request)
|
3005
|
+
return self._call_api(**http_info)
|
3006
|
+
|
3007
|
+
def show_members_detail_async_invoker(self, request):
|
3008
|
+
http_info = self._show_members_detail_http_info(request)
|
3009
|
+
return AsyncInvoker(self, http_info)
|
3010
|
+
|
3011
|
+
def _show_members_detail_http_info(self, request):
|
3012
|
+
http_info = {
|
3013
|
+
"method": "GET",
|
3014
|
+
"resource_path": "/v3/{project_id}/backups/{backup_id}/members",
|
3015
|
+
"request_type": request.__class__.__name__,
|
3016
|
+
"response_type": "ShowMembersDetailResponse"
|
3017
|
+
}
|
2656
3018
|
|
2657
|
-
def _show_members_detail_with_http_info(self, request):
|
2658
3019
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
2659
3020
|
|
2660
3021
|
cname = None
|
@@ -2687,9 +3048,9 @@ class CbrAsyncClient(Client):
|
|
2687
3048
|
|
2688
3049
|
form_params = {}
|
2689
3050
|
|
2690
|
-
|
3051
|
+
body = None
|
2691
3052
|
if isinstance(request, SdkStreamRequest):
|
2692
|
-
|
3053
|
+
body = request.get_file_stream()
|
2693
3054
|
|
2694
3055
|
response_headers = []
|
2695
3056
|
|
@@ -2698,20 +3059,16 @@ class CbrAsyncClient(Client):
|
|
2698
3059
|
|
2699
3060
|
auth_settings = []
|
2700
3061
|
|
2701
|
-
|
2702
|
-
|
2703
|
-
|
2704
|
-
|
2705
|
-
|
2706
|
-
|
2707
|
-
|
2708
|
-
|
2709
|
-
|
2710
|
-
|
2711
|
-
response_headers=response_headers,
|
2712
|
-
auth_settings=auth_settings,
|
2713
|
-
collection_formats=collection_formats,
|
2714
|
-
request_type=request.__class__.__name__)
|
3062
|
+
http_info["cname"] = cname
|
3063
|
+
http_info["collection_formats"] = collection_formats
|
3064
|
+
http_info["path_params"] = path_params
|
3065
|
+
http_info["query_params"] = query_params
|
3066
|
+
http_info["header_params"] = header_params
|
3067
|
+
http_info["post_params"] = form_params
|
3068
|
+
http_info["body"] = body
|
3069
|
+
http_info["response_headers"] = response_headers
|
3070
|
+
|
3071
|
+
return http_info
|
2715
3072
|
|
2716
3073
|
def show_metadata_async(self, request):
|
2717
3074
|
"""查询备份元数据
|
@@ -2725,9 +3082,21 @@ class CbrAsyncClient(Client):
|
|
2725
3082
|
:type request: :class:`huaweicloudsdkcbr.v1.ShowMetadataRequest`
|
2726
3083
|
:rtype: :class:`huaweicloudsdkcbr.v1.ShowMetadataResponse`
|
2727
3084
|
"""
|
2728
|
-
|
3085
|
+
http_info = self._show_metadata_http_info(request)
|
3086
|
+
return self._call_api(**http_info)
|
3087
|
+
|
3088
|
+
def show_metadata_async_invoker(self, request):
|
3089
|
+
http_info = self._show_metadata_http_info(request)
|
3090
|
+
return AsyncInvoker(self, http_info)
|
3091
|
+
|
3092
|
+
def _show_metadata_http_info(self, request):
|
3093
|
+
http_info = {
|
3094
|
+
"method": "GET",
|
3095
|
+
"resource_path": "/v3/{project_id}/backups/{backup_id}/metadata",
|
3096
|
+
"request_type": request.__class__.__name__,
|
3097
|
+
"response_type": "ShowMetadataResponse"
|
3098
|
+
}
|
2729
3099
|
|
2730
|
-
def _show_metadata_with_http_info(self, request):
|
2731
3100
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
2732
3101
|
|
2733
3102
|
cname = None
|
@@ -2744,9 +3113,9 @@ class CbrAsyncClient(Client):
|
|
2744
3113
|
|
2745
3114
|
form_params = {}
|
2746
3115
|
|
2747
|
-
|
3116
|
+
body = None
|
2748
3117
|
if isinstance(request, SdkStreamRequest):
|
2749
|
-
|
3118
|
+
body = request.get_file_stream()
|
2750
3119
|
|
2751
3120
|
response_headers = []
|
2752
3121
|
|
@@ -2755,20 +3124,16 @@ class CbrAsyncClient(Client):
|
|
2755
3124
|
|
2756
3125
|
auth_settings = []
|
2757
3126
|
|
2758
|
-
|
2759
|
-
|
2760
|
-
|
2761
|
-
|
2762
|
-
|
2763
|
-
|
2764
|
-
|
2765
|
-
|
2766
|
-
|
2767
|
-
|
2768
|
-
response_headers=response_headers,
|
2769
|
-
auth_settings=auth_settings,
|
2770
|
-
collection_formats=collection_formats,
|
2771
|
-
request_type=request.__class__.__name__)
|
3127
|
+
http_info["cname"] = cname
|
3128
|
+
http_info["collection_formats"] = collection_formats
|
3129
|
+
http_info["path_params"] = path_params
|
3130
|
+
http_info["query_params"] = query_params
|
3131
|
+
http_info["header_params"] = header_params
|
3132
|
+
http_info["post_params"] = form_params
|
3133
|
+
http_info["body"] = body
|
3134
|
+
http_info["response_headers"] = response_headers
|
3135
|
+
|
3136
|
+
return http_info
|
2772
3137
|
|
2773
3138
|
def show_migrate_status_async(self, request):
|
2774
3139
|
"""查询迁移
|
@@ -2782,9 +3147,21 @@ class CbrAsyncClient(Client):
|
|
2782
3147
|
:type request: :class:`huaweicloudsdkcbr.v1.ShowMigrateStatusRequest`
|
2783
3148
|
:rtype: :class:`huaweicloudsdkcbr.v1.ShowMigrateStatusResponse`
|
2784
3149
|
"""
|
2785
|
-
|
3150
|
+
http_info = self._show_migrate_status_http_info(request)
|
3151
|
+
return self._call_api(**http_info)
|
3152
|
+
|
3153
|
+
def show_migrate_status_async_invoker(self, request):
|
3154
|
+
http_info = self._show_migrate_status_http_info(request)
|
3155
|
+
return AsyncInvoker(self, http_info)
|
3156
|
+
|
3157
|
+
def _show_migrate_status_http_info(self, request):
|
3158
|
+
http_info = {
|
3159
|
+
"method": "GET",
|
3160
|
+
"resource_path": "/v3/migrates",
|
3161
|
+
"request_type": request.__class__.__name__,
|
3162
|
+
"response_type": "ShowMigrateStatusResponse"
|
3163
|
+
}
|
2786
3164
|
|
2787
|
-
def _show_migrate_status_with_http_info(self, request):
|
2788
3165
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
2789
3166
|
|
2790
3167
|
cname = None
|
@@ -2801,9 +3178,9 @@ class CbrAsyncClient(Client):
|
|
2801
3178
|
|
2802
3179
|
form_params = {}
|
2803
3180
|
|
2804
|
-
|
3181
|
+
body = None
|
2805
3182
|
if isinstance(request, SdkStreamRequest):
|
2806
|
-
|
3183
|
+
body = request.get_file_stream()
|
2807
3184
|
|
2808
3185
|
response_headers = []
|
2809
3186
|
|
@@ -2812,20 +3189,16 @@ class CbrAsyncClient(Client):
|
|
2812
3189
|
|
2813
3190
|
auth_settings = []
|
2814
3191
|
|
2815
|
-
|
2816
|
-
|
2817
|
-
|
2818
|
-
|
2819
|
-
|
2820
|
-
|
2821
|
-
|
2822
|
-
|
2823
|
-
|
2824
|
-
|
2825
|
-
response_headers=response_headers,
|
2826
|
-
auth_settings=auth_settings,
|
2827
|
-
collection_formats=collection_formats,
|
2828
|
-
request_type=request.__class__.__name__)
|
3192
|
+
http_info["cname"] = cname
|
3193
|
+
http_info["collection_formats"] = collection_formats
|
3194
|
+
http_info["path_params"] = path_params
|
3195
|
+
http_info["query_params"] = query_params
|
3196
|
+
http_info["header_params"] = header_params
|
3197
|
+
http_info["post_params"] = form_params
|
3198
|
+
http_info["body"] = body
|
3199
|
+
http_info["response_headers"] = response_headers
|
3200
|
+
|
3201
|
+
return http_info
|
2829
3202
|
|
2830
3203
|
def show_op_log_async(self, request):
|
2831
3204
|
"""查询单个任务
|
@@ -2839,9 +3212,21 @@ class CbrAsyncClient(Client):
|
|
2839
3212
|
:type request: :class:`huaweicloudsdkcbr.v1.ShowOpLogRequest`
|
2840
3213
|
:rtype: :class:`huaweicloudsdkcbr.v1.ShowOpLogResponse`
|
2841
3214
|
"""
|
2842
|
-
|
3215
|
+
http_info = self._show_op_log_http_info(request)
|
3216
|
+
return self._call_api(**http_info)
|
3217
|
+
|
3218
|
+
def show_op_log_async_invoker(self, request):
|
3219
|
+
http_info = self._show_op_log_http_info(request)
|
3220
|
+
return AsyncInvoker(self, http_info)
|
3221
|
+
|
3222
|
+
def _show_op_log_http_info(self, request):
|
3223
|
+
http_info = {
|
3224
|
+
"method": "GET",
|
3225
|
+
"resource_path": "/v3/{project_id}/operation-logs/{operation_log_id}",
|
3226
|
+
"request_type": request.__class__.__name__,
|
3227
|
+
"response_type": "ShowOpLogResponse"
|
3228
|
+
}
|
2843
3229
|
|
2844
|
-
def _show_op_log_with_http_info(self, request):
|
2845
3230
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
2846
3231
|
|
2847
3232
|
cname = None
|
@@ -2858,9 +3243,9 @@ class CbrAsyncClient(Client):
|
|
2858
3243
|
|
2859
3244
|
form_params = {}
|
2860
3245
|
|
2861
|
-
|
3246
|
+
body = None
|
2862
3247
|
if isinstance(request, SdkStreamRequest):
|
2863
|
-
|
3248
|
+
body = request.get_file_stream()
|
2864
3249
|
|
2865
3250
|
response_headers = []
|
2866
3251
|
|
@@ -2869,20 +3254,16 @@ class CbrAsyncClient(Client):
|
|
2869
3254
|
|
2870
3255
|
auth_settings = []
|
2871
3256
|
|
2872
|
-
|
2873
|
-
|
2874
|
-
|
2875
|
-
|
2876
|
-
|
2877
|
-
|
2878
|
-
|
2879
|
-
|
2880
|
-
|
2881
|
-
|
2882
|
-
response_headers=response_headers,
|
2883
|
-
auth_settings=auth_settings,
|
2884
|
-
collection_formats=collection_formats,
|
2885
|
-
request_type=request.__class__.__name__)
|
3257
|
+
http_info["cname"] = cname
|
3258
|
+
http_info["collection_formats"] = collection_formats
|
3259
|
+
http_info["path_params"] = path_params
|
3260
|
+
http_info["query_params"] = query_params
|
3261
|
+
http_info["header_params"] = header_params
|
3262
|
+
http_info["post_params"] = form_params
|
3263
|
+
http_info["body"] = body
|
3264
|
+
http_info["response_headers"] = response_headers
|
3265
|
+
|
3266
|
+
return http_info
|
2886
3267
|
|
2887
3268
|
def show_policy_async(self, request):
|
2888
3269
|
"""查询单个策略
|
@@ -2896,9 +3277,21 @@ class CbrAsyncClient(Client):
|
|
2896
3277
|
:type request: :class:`huaweicloudsdkcbr.v1.ShowPolicyRequest`
|
2897
3278
|
:rtype: :class:`huaweicloudsdkcbr.v1.ShowPolicyResponse`
|
2898
3279
|
"""
|
2899
|
-
|
3280
|
+
http_info = self._show_policy_http_info(request)
|
3281
|
+
return self._call_api(**http_info)
|
3282
|
+
|
3283
|
+
def show_policy_async_invoker(self, request):
|
3284
|
+
http_info = self._show_policy_http_info(request)
|
3285
|
+
return AsyncInvoker(self, http_info)
|
3286
|
+
|
3287
|
+
def _show_policy_http_info(self, request):
|
3288
|
+
http_info = {
|
3289
|
+
"method": "GET",
|
3290
|
+
"resource_path": "/v3/{project_id}/policies/{policy_id}",
|
3291
|
+
"request_type": request.__class__.__name__,
|
3292
|
+
"response_type": "ShowPolicyResponse"
|
3293
|
+
}
|
2900
3294
|
|
2901
|
-
def _show_policy_with_http_info(self, request):
|
2902
3295
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
2903
3296
|
|
2904
3297
|
cname = None
|
@@ -2915,9 +3308,9 @@ class CbrAsyncClient(Client):
|
|
2915
3308
|
|
2916
3309
|
form_params = {}
|
2917
3310
|
|
2918
|
-
|
3311
|
+
body = None
|
2919
3312
|
if isinstance(request, SdkStreamRequest):
|
2920
|
-
|
3313
|
+
body = request.get_file_stream()
|
2921
3314
|
|
2922
3315
|
response_headers = []
|
2923
3316
|
|
@@ -2926,20 +3319,16 @@ class CbrAsyncClient(Client):
|
|
2926
3319
|
|
2927
3320
|
auth_settings = []
|
2928
3321
|
|
2929
|
-
|
2930
|
-
|
2931
|
-
|
2932
|
-
|
2933
|
-
|
2934
|
-
|
2935
|
-
|
2936
|
-
|
2937
|
-
|
2938
|
-
|
2939
|
-
response_headers=response_headers,
|
2940
|
-
auth_settings=auth_settings,
|
2941
|
-
collection_formats=collection_formats,
|
2942
|
-
request_type=request.__class__.__name__)
|
3322
|
+
http_info["cname"] = cname
|
3323
|
+
http_info["collection_formats"] = collection_formats
|
3324
|
+
http_info["path_params"] = path_params
|
3325
|
+
http_info["query_params"] = query_params
|
3326
|
+
http_info["header_params"] = header_params
|
3327
|
+
http_info["post_params"] = form_params
|
3328
|
+
http_info["body"] = body
|
3329
|
+
http_info["response_headers"] = response_headers
|
3330
|
+
|
3331
|
+
return http_info
|
2943
3332
|
|
2944
3333
|
def show_protectable_async(self, request):
|
2945
3334
|
"""查询指定可保护资源
|
@@ -2953,9 +3342,21 @@ class CbrAsyncClient(Client):
|
|
2953
3342
|
:type request: :class:`huaweicloudsdkcbr.v1.ShowProtectableRequest`
|
2954
3343
|
:rtype: :class:`huaweicloudsdkcbr.v1.ShowProtectableResponse`
|
2955
3344
|
"""
|
2956
|
-
|
3345
|
+
http_info = self._show_protectable_http_info(request)
|
3346
|
+
return self._call_api(**http_info)
|
3347
|
+
|
3348
|
+
def show_protectable_async_invoker(self, request):
|
3349
|
+
http_info = self._show_protectable_http_info(request)
|
3350
|
+
return AsyncInvoker(self, http_info)
|
3351
|
+
|
3352
|
+
def _show_protectable_http_info(self, request):
|
3353
|
+
http_info = {
|
3354
|
+
"method": "GET",
|
3355
|
+
"resource_path": "/v3/{project_id}/protectables/{protectable_type}/instances/{instance_id}",
|
3356
|
+
"request_type": request.__class__.__name__,
|
3357
|
+
"response_type": "ShowProtectableResponse"
|
3358
|
+
}
|
2957
3359
|
|
2958
|
-
def _show_protectable_with_http_info(self, request):
|
2959
3360
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
2960
3361
|
|
2961
3362
|
cname = None
|
@@ -2974,9 +3375,9 @@ class CbrAsyncClient(Client):
|
|
2974
3375
|
|
2975
3376
|
form_params = {}
|
2976
3377
|
|
2977
|
-
|
3378
|
+
body = None
|
2978
3379
|
if isinstance(request, SdkStreamRequest):
|
2979
|
-
|
3380
|
+
body = request.get_file_stream()
|
2980
3381
|
|
2981
3382
|
response_headers = []
|
2982
3383
|
|
@@ -2985,20 +3386,16 @@ class CbrAsyncClient(Client):
|
|
2985
3386
|
|
2986
3387
|
auth_settings = []
|
2987
3388
|
|
2988
|
-
|
2989
|
-
|
2990
|
-
|
2991
|
-
|
2992
|
-
|
2993
|
-
|
2994
|
-
|
2995
|
-
|
2996
|
-
|
2997
|
-
|
2998
|
-
response_headers=response_headers,
|
2999
|
-
auth_settings=auth_settings,
|
3000
|
-
collection_formats=collection_formats,
|
3001
|
-
request_type=request.__class__.__name__)
|
3389
|
+
http_info["cname"] = cname
|
3390
|
+
http_info["collection_formats"] = collection_formats
|
3391
|
+
http_info["path_params"] = path_params
|
3392
|
+
http_info["query_params"] = query_params
|
3393
|
+
http_info["header_params"] = header_params
|
3394
|
+
http_info["post_params"] = form_params
|
3395
|
+
http_info["body"] = body
|
3396
|
+
http_info["response_headers"] = response_headers
|
3397
|
+
|
3398
|
+
return http_info
|
3002
3399
|
|
3003
3400
|
def show_replication_capabilities_async(self, request):
|
3004
3401
|
"""查询复制能力
|
@@ -3012,9 +3409,21 @@ class CbrAsyncClient(Client):
|
|
3012
3409
|
:type request: :class:`huaweicloudsdkcbr.v1.ShowReplicationCapabilitiesRequest`
|
3013
3410
|
:rtype: :class:`huaweicloudsdkcbr.v1.ShowReplicationCapabilitiesResponse`
|
3014
3411
|
"""
|
3015
|
-
|
3412
|
+
http_info = self._show_replication_capabilities_http_info(request)
|
3413
|
+
return self._call_api(**http_info)
|
3414
|
+
|
3415
|
+
def show_replication_capabilities_async_invoker(self, request):
|
3416
|
+
http_info = self._show_replication_capabilities_http_info(request)
|
3417
|
+
return AsyncInvoker(self, http_info)
|
3418
|
+
|
3419
|
+
def _show_replication_capabilities_http_info(self, request):
|
3420
|
+
http_info = {
|
3421
|
+
"method": "GET",
|
3422
|
+
"resource_path": "/v3/{project_id}/replication-capabilities",
|
3423
|
+
"request_type": request.__class__.__name__,
|
3424
|
+
"response_type": "ShowReplicationCapabilitiesResponse"
|
3425
|
+
}
|
3016
3426
|
|
3017
|
-
def _show_replication_capabilities_with_http_info(self, request):
|
3018
3427
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
3019
3428
|
|
3020
3429
|
cname = None
|
@@ -3029,9 +3438,9 @@ class CbrAsyncClient(Client):
|
|
3029
3438
|
|
3030
3439
|
form_params = {}
|
3031
3440
|
|
3032
|
-
|
3441
|
+
body = None
|
3033
3442
|
if isinstance(request, SdkStreamRequest):
|
3034
|
-
|
3443
|
+
body = request.get_file_stream()
|
3035
3444
|
|
3036
3445
|
response_headers = []
|
3037
3446
|
|
@@ -3040,20 +3449,16 @@ class CbrAsyncClient(Client):
|
|
3040
3449
|
|
3041
3450
|
auth_settings = []
|
3042
3451
|
|
3043
|
-
|
3044
|
-
|
3045
|
-
|
3046
|
-
|
3047
|
-
|
3048
|
-
|
3049
|
-
|
3050
|
-
|
3051
|
-
|
3052
|
-
|
3053
|
-
response_headers=response_headers,
|
3054
|
-
auth_settings=auth_settings,
|
3055
|
-
collection_formats=collection_formats,
|
3056
|
-
request_type=request.__class__.__name__)
|
3452
|
+
http_info["cname"] = cname
|
3453
|
+
http_info["collection_formats"] = collection_formats
|
3454
|
+
http_info["path_params"] = path_params
|
3455
|
+
http_info["query_params"] = query_params
|
3456
|
+
http_info["header_params"] = header_params
|
3457
|
+
http_info["post_params"] = form_params
|
3458
|
+
http_info["body"] = body
|
3459
|
+
http_info["response_headers"] = response_headers
|
3460
|
+
|
3461
|
+
return http_info
|
3057
3462
|
|
3058
3463
|
def show_storage_usage_async(self, request):
|
3059
3464
|
"""查询容量统计
|
@@ -3067,9 +3472,21 @@ class CbrAsyncClient(Client):
|
|
3067
3472
|
:type request: :class:`huaweicloudsdkcbr.v1.ShowStorageUsageRequest`
|
3068
3473
|
:rtype: :class:`huaweicloudsdkcbr.v1.ShowStorageUsageResponse`
|
3069
3474
|
"""
|
3070
|
-
|
3475
|
+
http_info = self._show_storage_usage_http_info(request)
|
3476
|
+
return self._call_api(**http_info)
|
3477
|
+
|
3478
|
+
def show_storage_usage_async_invoker(self, request):
|
3479
|
+
http_info = self._show_storage_usage_http_info(request)
|
3480
|
+
return AsyncInvoker(self, http_info)
|
3481
|
+
|
3482
|
+
def _show_storage_usage_http_info(self, request):
|
3483
|
+
http_info = {
|
3484
|
+
"method": "GET",
|
3485
|
+
"resource_path": "/v3/{project_id}/storage_usage",
|
3486
|
+
"request_type": request.__class__.__name__,
|
3487
|
+
"response_type": "ShowStorageUsageResponse"
|
3488
|
+
}
|
3071
3489
|
|
3072
|
-
def _show_storage_usage_with_http_info(self, request):
|
3073
3490
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
3074
3491
|
|
3075
3492
|
cname = None
|
@@ -3092,9 +3509,9 @@ class CbrAsyncClient(Client):
|
|
3092
3509
|
|
3093
3510
|
form_params = {}
|
3094
3511
|
|
3095
|
-
|
3512
|
+
body = None
|
3096
3513
|
if isinstance(request, SdkStreamRequest):
|
3097
|
-
|
3514
|
+
body = request.get_file_stream()
|
3098
3515
|
|
3099
3516
|
response_headers = []
|
3100
3517
|
|
@@ -3103,20 +3520,16 @@ class CbrAsyncClient(Client):
|
|
3103
3520
|
|
3104
3521
|
auth_settings = []
|
3105
3522
|
|
3106
|
-
|
3107
|
-
|
3108
|
-
|
3109
|
-
|
3110
|
-
|
3111
|
-
|
3112
|
-
|
3113
|
-
|
3114
|
-
|
3115
|
-
|
3116
|
-
response_headers=response_headers,
|
3117
|
-
auth_settings=auth_settings,
|
3118
|
-
collection_formats=collection_formats,
|
3119
|
-
request_type=request.__class__.__name__)
|
3523
|
+
http_info["cname"] = cname
|
3524
|
+
http_info["collection_formats"] = collection_formats
|
3525
|
+
http_info["path_params"] = path_params
|
3526
|
+
http_info["query_params"] = query_params
|
3527
|
+
http_info["header_params"] = header_params
|
3528
|
+
http_info["post_params"] = form_params
|
3529
|
+
http_info["body"] = body
|
3530
|
+
http_info["response_headers"] = response_headers
|
3531
|
+
|
3532
|
+
return http_info
|
3120
3533
|
|
3121
3534
|
def show_summary_async(self, request):
|
3122
3535
|
"""存储库容量总览
|
@@ -3130,9 +3543,21 @@ class CbrAsyncClient(Client):
|
|
3130
3543
|
:type request: :class:`huaweicloudsdkcbr.v1.ShowSummaryRequest`
|
3131
3544
|
:rtype: :class:`huaweicloudsdkcbr.v1.ShowSummaryResponse`
|
3132
3545
|
"""
|
3133
|
-
|
3546
|
+
http_info = self._show_summary_http_info(request)
|
3547
|
+
return self._call_api(**http_info)
|
3548
|
+
|
3549
|
+
def show_summary_async_invoker(self, request):
|
3550
|
+
http_info = self._show_summary_http_info(request)
|
3551
|
+
return AsyncInvoker(self, http_info)
|
3552
|
+
|
3553
|
+
def _show_summary_http_info(self, request):
|
3554
|
+
http_info = {
|
3555
|
+
"method": "GET",
|
3556
|
+
"resource_path": "/v3/{project_id}/vaults/summary",
|
3557
|
+
"request_type": request.__class__.__name__,
|
3558
|
+
"response_type": "ShowSummaryResponse"
|
3559
|
+
}
|
3134
3560
|
|
3135
|
-
def _show_summary_with_http_info(self, request):
|
3136
3561
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
3137
3562
|
|
3138
3563
|
cname = None
|
@@ -3147,9 +3572,9 @@ class CbrAsyncClient(Client):
|
|
3147
3572
|
|
3148
3573
|
form_params = {}
|
3149
3574
|
|
3150
|
-
|
3575
|
+
body = None
|
3151
3576
|
if isinstance(request, SdkStreamRequest):
|
3152
|
-
|
3577
|
+
body = request.get_file_stream()
|
3153
3578
|
|
3154
3579
|
response_headers = []
|
3155
3580
|
|
@@ -3158,20 +3583,16 @@ class CbrAsyncClient(Client):
|
|
3158
3583
|
|
3159
3584
|
auth_settings = []
|
3160
3585
|
|
3161
|
-
|
3162
|
-
|
3163
|
-
|
3164
|
-
|
3165
|
-
|
3166
|
-
|
3167
|
-
|
3168
|
-
|
3169
|
-
|
3170
|
-
|
3171
|
-
response_headers=response_headers,
|
3172
|
-
auth_settings=auth_settings,
|
3173
|
-
collection_formats=collection_formats,
|
3174
|
-
request_type=request.__class__.__name__)
|
3586
|
+
http_info["cname"] = cname
|
3587
|
+
http_info["collection_formats"] = collection_formats
|
3588
|
+
http_info["path_params"] = path_params
|
3589
|
+
http_info["query_params"] = query_params
|
3590
|
+
http_info["header_params"] = header_params
|
3591
|
+
http_info["post_params"] = form_params
|
3592
|
+
http_info["body"] = body
|
3593
|
+
http_info["response_headers"] = response_headers
|
3594
|
+
|
3595
|
+
return http_info
|
3175
3596
|
|
3176
3597
|
def show_vault_async(self, request):
|
3177
3598
|
"""查询指定存储库
|
@@ -3185,9 +3606,21 @@ class CbrAsyncClient(Client):
|
|
3185
3606
|
:type request: :class:`huaweicloudsdkcbr.v1.ShowVaultRequest`
|
3186
3607
|
:rtype: :class:`huaweicloudsdkcbr.v1.ShowVaultResponse`
|
3187
3608
|
"""
|
3188
|
-
|
3609
|
+
http_info = self._show_vault_http_info(request)
|
3610
|
+
return self._call_api(**http_info)
|
3611
|
+
|
3612
|
+
def show_vault_async_invoker(self, request):
|
3613
|
+
http_info = self._show_vault_http_info(request)
|
3614
|
+
return AsyncInvoker(self, http_info)
|
3615
|
+
|
3616
|
+
def _show_vault_http_info(self, request):
|
3617
|
+
http_info = {
|
3618
|
+
"method": "GET",
|
3619
|
+
"resource_path": "/v3/{project_id}/vaults/{vault_id}",
|
3620
|
+
"request_type": request.__class__.__name__,
|
3621
|
+
"response_type": "ShowVaultResponse"
|
3622
|
+
}
|
3189
3623
|
|
3190
|
-
def _show_vault_with_http_info(self, request):
|
3191
3624
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
3192
3625
|
|
3193
3626
|
cname = None
|
@@ -3204,9 +3637,9 @@ class CbrAsyncClient(Client):
|
|
3204
3637
|
|
3205
3638
|
form_params = {}
|
3206
3639
|
|
3207
|
-
|
3640
|
+
body = None
|
3208
3641
|
if isinstance(request, SdkStreamRequest):
|
3209
|
-
|
3642
|
+
body = request.get_file_stream()
|
3210
3643
|
|
3211
3644
|
response_headers = []
|
3212
3645
|
|
@@ -3215,20 +3648,16 @@ class CbrAsyncClient(Client):
|
|
3215
3648
|
|
3216
3649
|
auth_settings = []
|
3217
3650
|
|
3218
|
-
|
3219
|
-
|
3220
|
-
|
3221
|
-
|
3222
|
-
|
3223
|
-
|
3224
|
-
|
3225
|
-
|
3226
|
-
|
3227
|
-
|
3228
|
-
response_headers=response_headers,
|
3229
|
-
auth_settings=auth_settings,
|
3230
|
-
collection_formats=collection_formats,
|
3231
|
-
request_type=request.__class__.__name__)
|
3651
|
+
http_info["cname"] = cname
|
3652
|
+
http_info["collection_formats"] = collection_formats
|
3653
|
+
http_info["path_params"] = path_params
|
3654
|
+
http_info["query_params"] = query_params
|
3655
|
+
http_info["header_params"] = header_params
|
3656
|
+
http_info["post_params"] = form_params
|
3657
|
+
http_info["body"] = body
|
3658
|
+
http_info["response_headers"] = response_headers
|
3659
|
+
|
3660
|
+
return http_info
|
3232
3661
|
|
3233
3662
|
def show_vault_project_tag_async(self, request):
|
3234
3663
|
"""查询存储库项目标签
|
@@ -3243,9 +3672,21 @@ class CbrAsyncClient(Client):
|
|
3243
3672
|
:type request: :class:`huaweicloudsdkcbr.v1.ShowVaultProjectTagRequest`
|
3244
3673
|
:rtype: :class:`huaweicloudsdkcbr.v1.ShowVaultProjectTagResponse`
|
3245
3674
|
"""
|
3246
|
-
|
3675
|
+
http_info = self._show_vault_project_tag_http_info(request)
|
3676
|
+
return self._call_api(**http_info)
|
3677
|
+
|
3678
|
+
def show_vault_project_tag_async_invoker(self, request):
|
3679
|
+
http_info = self._show_vault_project_tag_http_info(request)
|
3680
|
+
return AsyncInvoker(self, http_info)
|
3681
|
+
|
3682
|
+
def _show_vault_project_tag_http_info(self, request):
|
3683
|
+
http_info = {
|
3684
|
+
"method": "GET",
|
3685
|
+
"resource_path": "/v3/{project_id}/vault/tags",
|
3686
|
+
"request_type": request.__class__.__name__,
|
3687
|
+
"response_type": "ShowVaultProjectTagResponse"
|
3688
|
+
}
|
3247
3689
|
|
3248
|
-
def _show_vault_project_tag_with_http_info(self, request):
|
3249
3690
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
3250
3691
|
|
3251
3692
|
cname = None
|
@@ -3260,9 +3701,9 @@ class CbrAsyncClient(Client):
|
|
3260
3701
|
|
3261
3702
|
form_params = {}
|
3262
3703
|
|
3263
|
-
|
3704
|
+
body = None
|
3264
3705
|
if isinstance(request, SdkStreamRequest):
|
3265
|
-
|
3706
|
+
body = request.get_file_stream()
|
3266
3707
|
|
3267
3708
|
response_headers = []
|
3268
3709
|
|
@@ -3271,20 +3712,16 @@ class CbrAsyncClient(Client):
|
|
3271
3712
|
|
3272
3713
|
auth_settings = []
|
3273
3714
|
|
3274
|
-
|
3275
|
-
|
3276
|
-
|
3277
|
-
|
3278
|
-
|
3279
|
-
|
3280
|
-
|
3281
|
-
|
3282
|
-
|
3283
|
-
|
3284
|
-
response_headers=response_headers,
|
3285
|
-
auth_settings=auth_settings,
|
3286
|
-
collection_formats=collection_formats,
|
3287
|
-
request_type=request.__class__.__name__)
|
3715
|
+
http_info["cname"] = cname
|
3716
|
+
http_info["collection_formats"] = collection_formats
|
3717
|
+
http_info["path_params"] = path_params
|
3718
|
+
http_info["query_params"] = query_params
|
3719
|
+
http_info["header_params"] = header_params
|
3720
|
+
http_info["post_params"] = form_params
|
3721
|
+
http_info["body"] = body
|
3722
|
+
http_info["response_headers"] = response_headers
|
3723
|
+
|
3724
|
+
return http_info
|
3288
3725
|
|
3289
3726
|
def show_vault_resource_instances_async(self, request):
|
3290
3727
|
"""查询存储库资源实例
|
@@ -3299,9 +3736,21 @@ class CbrAsyncClient(Client):
|
|
3299
3736
|
:type request: :class:`huaweicloudsdkcbr.v1.ShowVaultResourceInstancesRequest`
|
3300
3737
|
:rtype: :class:`huaweicloudsdkcbr.v1.ShowVaultResourceInstancesResponse`
|
3301
3738
|
"""
|
3302
|
-
|
3739
|
+
http_info = self._show_vault_resource_instances_http_info(request)
|
3740
|
+
return self._call_api(**http_info)
|
3741
|
+
|
3742
|
+
def show_vault_resource_instances_async_invoker(self, request):
|
3743
|
+
http_info = self._show_vault_resource_instances_http_info(request)
|
3744
|
+
return AsyncInvoker(self, http_info)
|
3745
|
+
|
3746
|
+
def _show_vault_resource_instances_http_info(self, request):
|
3747
|
+
http_info = {
|
3748
|
+
"method": "POST",
|
3749
|
+
"resource_path": "/v3/{project_id}/vault/resource_instances/action",
|
3750
|
+
"request_type": request.__class__.__name__,
|
3751
|
+
"response_type": "ShowVaultResourceInstancesResponse"
|
3752
|
+
}
|
3303
3753
|
|
3304
|
-
def _show_vault_resource_instances_with_http_info(self, request):
|
3305
3754
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
3306
3755
|
|
3307
3756
|
cname = None
|
@@ -3316,11 +3765,11 @@ class CbrAsyncClient(Client):
|
|
3316
3765
|
|
3317
3766
|
form_params = {}
|
3318
3767
|
|
3319
|
-
|
3768
|
+
body = None
|
3320
3769
|
if 'body' in local_var_params:
|
3321
|
-
|
3770
|
+
body = local_var_params['body']
|
3322
3771
|
if isinstance(request, SdkStreamRequest):
|
3323
|
-
|
3772
|
+
body = request.get_file_stream()
|
3324
3773
|
|
3325
3774
|
response_headers = []
|
3326
3775
|
|
@@ -3329,20 +3778,16 @@ class CbrAsyncClient(Client):
|
|
3329
3778
|
|
3330
3779
|
auth_settings = []
|
3331
3780
|
|
3332
|
-
|
3333
|
-
|
3334
|
-
|
3335
|
-
|
3336
|
-
|
3337
|
-
|
3338
|
-
|
3339
|
-
|
3340
|
-
|
3341
|
-
|
3342
|
-
response_headers=response_headers,
|
3343
|
-
auth_settings=auth_settings,
|
3344
|
-
collection_formats=collection_formats,
|
3345
|
-
request_type=request.__class__.__name__)
|
3781
|
+
http_info["cname"] = cname
|
3782
|
+
http_info["collection_formats"] = collection_formats
|
3783
|
+
http_info["path_params"] = path_params
|
3784
|
+
http_info["query_params"] = query_params
|
3785
|
+
http_info["header_params"] = header_params
|
3786
|
+
http_info["post_params"] = form_params
|
3787
|
+
http_info["body"] = body
|
3788
|
+
http_info["response_headers"] = response_headers
|
3789
|
+
|
3790
|
+
return http_info
|
3346
3791
|
|
3347
3792
|
def show_vault_tag_async(self, request):
|
3348
3793
|
"""查询存储库资源标签
|
@@ -3357,9 +3802,21 @@ class CbrAsyncClient(Client):
|
|
3357
3802
|
:type request: :class:`huaweicloudsdkcbr.v1.ShowVaultTagRequest`
|
3358
3803
|
:rtype: :class:`huaweicloudsdkcbr.v1.ShowVaultTagResponse`
|
3359
3804
|
"""
|
3360
|
-
|
3805
|
+
http_info = self._show_vault_tag_http_info(request)
|
3806
|
+
return self._call_api(**http_info)
|
3807
|
+
|
3808
|
+
def show_vault_tag_async_invoker(self, request):
|
3809
|
+
http_info = self._show_vault_tag_http_info(request)
|
3810
|
+
return AsyncInvoker(self, http_info)
|
3811
|
+
|
3812
|
+
def _show_vault_tag_http_info(self, request):
|
3813
|
+
http_info = {
|
3814
|
+
"method": "GET",
|
3815
|
+
"resource_path": "/v3/{project_id}/vault/{vault_id}/tags",
|
3816
|
+
"request_type": request.__class__.__name__,
|
3817
|
+
"response_type": "ShowVaultTagResponse"
|
3818
|
+
}
|
3361
3819
|
|
3362
|
-
def _show_vault_tag_with_http_info(self, request):
|
3363
3820
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
3364
3821
|
|
3365
3822
|
cname = None
|
@@ -3376,9 +3833,9 @@ class CbrAsyncClient(Client):
|
|
3376
3833
|
|
3377
3834
|
form_params = {}
|
3378
3835
|
|
3379
|
-
|
3836
|
+
body = None
|
3380
3837
|
if isinstance(request, SdkStreamRequest):
|
3381
|
-
|
3838
|
+
body = request.get_file_stream()
|
3382
3839
|
|
3383
3840
|
response_headers = []
|
3384
3841
|
|
@@ -3387,20 +3844,16 @@ class CbrAsyncClient(Client):
|
|
3387
3844
|
|
3388
3845
|
auth_settings = []
|
3389
3846
|
|
3390
|
-
|
3391
|
-
|
3392
|
-
|
3393
|
-
|
3394
|
-
|
3395
|
-
|
3396
|
-
|
3397
|
-
|
3398
|
-
|
3399
|
-
|
3400
|
-
response_headers=response_headers,
|
3401
|
-
auth_settings=auth_settings,
|
3402
|
-
collection_formats=collection_formats,
|
3403
|
-
request_type=request.__class__.__name__)
|
3847
|
+
http_info["cname"] = cname
|
3848
|
+
http_info["collection_formats"] = collection_formats
|
3849
|
+
http_info["path_params"] = path_params
|
3850
|
+
http_info["query_params"] = query_params
|
3851
|
+
http_info["header_params"] = header_params
|
3852
|
+
http_info["post_params"] = form_params
|
3853
|
+
http_info["body"] = body
|
3854
|
+
http_info["response_headers"] = response_headers
|
3855
|
+
|
3856
|
+
return http_info
|
3404
3857
|
|
3405
3858
|
def unregister_agent_async(self, request):
|
3406
3859
|
"""移除客户端
|
@@ -3414,9 +3867,21 @@ class CbrAsyncClient(Client):
|
|
3414
3867
|
:type request: :class:`huaweicloudsdkcbr.v1.UnregisterAgentRequest`
|
3415
3868
|
:rtype: :class:`huaweicloudsdkcbr.v1.UnregisterAgentResponse`
|
3416
3869
|
"""
|
3417
|
-
|
3870
|
+
http_info = self._unregister_agent_http_info(request)
|
3871
|
+
return self._call_api(**http_info)
|
3872
|
+
|
3873
|
+
def unregister_agent_async_invoker(self, request):
|
3874
|
+
http_info = self._unregister_agent_http_info(request)
|
3875
|
+
return AsyncInvoker(self, http_info)
|
3876
|
+
|
3877
|
+
def _unregister_agent_http_info(self, request):
|
3878
|
+
http_info = {
|
3879
|
+
"method": "DELETE",
|
3880
|
+
"resource_path": "/v3/{project_id}/agents/{agent_id}",
|
3881
|
+
"request_type": request.__class__.__name__,
|
3882
|
+
"response_type": "UnregisterAgentResponse"
|
3883
|
+
}
|
3418
3884
|
|
3419
|
-
def _unregister_agent_with_http_info(self, request):
|
3420
3885
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
3421
3886
|
|
3422
3887
|
cname = None
|
@@ -3433,9 +3898,9 @@ class CbrAsyncClient(Client):
|
|
3433
3898
|
|
3434
3899
|
form_params = {}
|
3435
3900
|
|
3436
|
-
|
3901
|
+
body = None
|
3437
3902
|
if isinstance(request, SdkStreamRequest):
|
3438
|
-
|
3903
|
+
body = request.get_file_stream()
|
3439
3904
|
|
3440
3905
|
response_headers = []
|
3441
3906
|
|
@@ -3444,20 +3909,16 @@ class CbrAsyncClient(Client):
|
|
3444
3909
|
|
3445
3910
|
auth_settings = []
|
3446
3911
|
|
3447
|
-
|
3448
|
-
|
3449
|
-
|
3450
|
-
|
3451
|
-
|
3452
|
-
|
3453
|
-
|
3454
|
-
|
3455
|
-
|
3456
|
-
|
3457
|
-
response_headers=response_headers,
|
3458
|
-
auth_settings=auth_settings,
|
3459
|
-
collection_formats=collection_formats,
|
3460
|
-
request_type=request.__class__.__name__)
|
3912
|
+
http_info["cname"] = cname
|
3913
|
+
http_info["collection_formats"] = collection_formats
|
3914
|
+
http_info["path_params"] = path_params
|
3915
|
+
http_info["query_params"] = query_params
|
3916
|
+
http_info["header_params"] = header_params
|
3917
|
+
http_info["post_params"] = form_params
|
3918
|
+
http_info["body"] = body
|
3919
|
+
http_info["response_headers"] = response_headers
|
3920
|
+
|
3921
|
+
return http_info
|
3461
3922
|
|
3462
3923
|
def update_agent_async(self, request):
|
3463
3924
|
"""修改客户端
|
@@ -3471,9 +3932,21 @@ class CbrAsyncClient(Client):
|
|
3471
3932
|
:type request: :class:`huaweicloudsdkcbr.v1.UpdateAgentRequest`
|
3472
3933
|
:rtype: :class:`huaweicloudsdkcbr.v1.UpdateAgentResponse`
|
3473
3934
|
"""
|
3474
|
-
|
3935
|
+
http_info = self._update_agent_http_info(request)
|
3936
|
+
return self._call_api(**http_info)
|
3937
|
+
|
3938
|
+
def update_agent_async_invoker(self, request):
|
3939
|
+
http_info = self._update_agent_http_info(request)
|
3940
|
+
return AsyncInvoker(self, http_info)
|
3941
|
+
|
3942
|
+
def _update_agent_http_info(self, request):
|
3943
|
+
http_info = {
|
3944
|
+
"method": "PUT",
|
3945
|
+
"resource_path": "/v3/{project_id}/agents/{agent_id}",
|
3946
|
+
"request_type": request.__class__.__name__,
|
3947
|
+
"response_type": "UpdateAgentResponse"
|
3948
|
+
}
|
3475
3949
|
|
3476
|
-
def _update_agent_with_http_info(self, request):
|
3477
3950
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
3478
3951
|
|
3479
3952
|
cname = None
|
@@ -3490,11 +3963,11 @@ class CbrAsyncClient(Client):
|
|
3490
3963
|
|
3491
3964
|
form_params = {}
|
3492
3965
|
|
3493
|
-
|
3966
|
+
body = None
|
3494
3967
|
if 'body' in local_var_params:
|
3495
|
-
|
3968
|
+
body = local_var_params['body']
|
3496
3969
|
if isinstance(request, SdkStreamRequest):
|
3497
|
-
|
3970
|
+
body = request.get_file_stream()
|
3498
3971
|
|
3499
3972
|
response_headers = []
|
3500
3973
|
|
@@ -3503,20 +3976,16 @@ class CbrAsyncClient(Client):
|
|
3503
3976
|
|
3504
3977
|
auth_settings = []
|
3505
3978
|
|
3506
|
-
|
3507
|
-
|
3508
|
-
|
3509
|
-
|
3510
|
-
|
3511
|
-
|
3512
|
-
|
3513
|
-
|
3514
|
-
|
3515
|
-
|
3516
|
-
response_headers=response_headers,
|
3517
|
-
auth_settings=auth_settings,
|
3518
|
-
collection_formats=collection_formats,
|
3519
|
-
request_type=request.__class__.__name__)
|
3979
|
+
http_info["cname"] = cname
|
3980
|
+
http_info["collection_formats"] = collection_formats
|
3981
|
+
http_info["path_params"] = path_params
|
3982
|
+
http_info["query_params"] = query_params
|
3983
|
+
http_info["header_params"] = header_params
|
3984
|
+
http_info["post_params"] = form_params
|
3985
|
+
http_info["body"] = body
|
3986
|
+
http_info["response_headers"] = response_headers
|
3987
|
+
|
3988
|
+
return http_info
|
3520
3989
|
|
3521
3990
|
def update_backup_async(self, request):
|
3522
3991
|
"""更新备份
|
@@ -3530,9 +3999,21 @@ class CbrAsyncClient(Client):
|
|
3530
3999
|
:type request: :class:`huaweicloudsdkcbr.v1.UpdateBackupRequest`
|
3531
4000
|
:rtype: :class:`huaweicloudsdkcbr.v1.UpdateBackupResponse`
|
3532
4001
|
"""
|
3533
|
-
|
4002
|
+
http_info = self._update_backup_http_info(request)
|
4003
|
+
return self._call_api(**http_info)
|
4004
|
+
|
4005
|
+
def update_backup_async_invoker(self, request):
|
4006
|
+
http_info = self._update_backup_http_info(request)
|
4007
|
+
return AsyncInvoker(self, http_info)
|
4008
|
+
|
4009
|
+
def _update_backup_http_info(self, request):
|
4010
|
+
http_info = {
|
4011
|
+
"method": "PUT",
|
4012
|
+
"resource_path": "/v3/{project_id}/backups/{backup_id}",
|
4013
|
+
"request_type": request.__class__.__name__,
|
4014
|
+
"response_type": "UpdateBackupResponse"
|
4015
|
+
}
|
3534
4016
|
|
3535
|
-
def _update_backup_with_http_info(self, request):
|
3536
4017
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
3537
4018
|
|
3538
4019
|
cname = None
|
@@ -3549,11 +4030,11 @@ class CbrAsyncClient(Client):
|
|
3549
4030
|
|
3550
4031
|
form_params = {}
|
3551
4032
|
|
3552
|
-
|
4033
|
+
body = None
|
3553
4034
|
if 'body' in local_var_params:
|
3554
|
-
|
4035
|
+
body = local_var_params['body']
|
3555
4036
|
if isinstance(request, SdkStreamRequest):
|
3556
|
-
|
4037
|
+
body = request.get_file_stream()
|
3557
4038
|
|
3558
4039
|
response_headers = []
|
3559
4040
|
|
@@ -3562,20 +4043,16 @@ class CbrAsyncClient(Client):
|
|
3562
4043
|
|
3563
4044
|
auth_settings = []
|
3564
4045
|
|
3565
|
-
|
3566
|
-
|
3567
|
-
|
3568
|
-
|
3569
|
-
|
3570
|
-
|
3571
|
-
|
3572
|
-
|
3573
|
-
|
3574
|
-
|
3575
|
-
response_headers=response_headers,
|
3576
|
-
auth_settings=auth_settings,
|
3577
|
-
collection_formats=collection_formats,
|
3578
|
-
request_type=request.__class__.__name__)
|
4046
|
+
http_info["cname"] = cname
|
4047
|
+
http_info["collection_formats"] = collection_formats
|
4048
|
+
http_info["path_params"] = path_params
|
4049
|
+
http_info["query_params"] = query_params
|
4050
|
+
http_info["header_params"] = header_params
|
4051
|
+
http_info["post_params"] = form_params
|
4052
|
+
http_info["body"] = body
|
4053
|
+
http_info["response_headers"] = response_headers
|
4054
|
+
|
4055
|
+
return http_info
|
3579
4056
|
|
3580
4057
|
def update_member_status_async(self, request):
|
3581
4058
|
"""更新备份成员状态
|
@@ -3589,9 +4066,21 @@ class CbrAsyncClient(Client):
|
|
3589
4066
|
:type request: :class:`huaweicloudsdkcbr.v1.UpdateMemberStatusRequest`
|
3590
4067
|
:rtype: :class:`huaweicloudsdkcbr.v1.UpdateMemberStatusResponse`
|
3591
4068
|
"""
|
3592
|
-
|
4069
|
+
http_info = self._update_member_status_http_info(request)
|
4070
|
+
return self._call_api(**http_info)
|
4071
|
+
|
4072
|
+
def update_member_status_async_invoker(self, request):
|
4073
|
+
http_info = self._update_member_status_http_info(request)
|
4074
|
+
return AsyncInvoker(self, http_info)
|
4075
|
+
|
4076
|
+
def _update_member_status_http_info(self, request):
|
4077
|
+
http_info = {
|
4078
|
+
"method": "PUT",
|
4079
|
+
"resource_path": "/v3/{project_id}/backups/{backup_id}/members/{member_id}",
|
4080
|
+
"request_type": request.__class__.__name__,
|
4081
|
+
"response_type": "UpdateMemberStatusResponse"
|
4082
|
+
}
|
3593
4083
|
|
3594
|
-
def _update_member_status_with_http_info(self, request):
|
3595
4084
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
3596
4085
|
|
3597
4086
|
cname = None
|
@@ -3610,11 +4099,11 @@ class CbrAsyncClient(Client):
|
|
3610
4099
|
|
3611
4100
|
form_params = {}
|
3612
4101
|
|
3613
|
-
|
4102
|
+
body = None
|
3614
4103
|
if 'body' in local_var_params:
|
3615
|
-
|
4104
|
+
body = local_var_params['body']
|
3616
4105
|
if isinstance(request, SdkStreamRequest):
|
3617
|
-
|
4106
|
+
body = request.get_file_stream()
|
3618
4107
|
|
3619
4108
|
response_headers = []
|
3620
4109
|
|
@@ -3623,20 +4112,16 @@ class CbrAsyncClient(Client):
|
|
3623
4112
|
|
3624
4113
|
auth_settings = []
|
3625
4114
|
|
3626
|
-
|
3627
|
-
|
3628
|
-
|
3629
|
-
|
3630
|
-
|
3631
|
-
|
3632
|
-
|
3633
|
-
|
3634
|
-
|
3635
|
-
|
3636
|
-
response_headers=response_headers,
|
3637
|
-
auth_settings=auth_settings,
|
3638
|
-
collection_formats=collection_formats,
|
3639
|
-
request_type=request.__class__.__name__)
|
4115
|
+
http_info["cname"] = cname
|
4116
|
+
http_info["collection_formats"] = collection_formats
|
4117
|
+
http_info["path_params"] = path_params
|
4118
|
+
http_info["query_params"] = query_params
|
4119
|
+
http_info["header_params"] = header_params
|
4120
|
+
http_info["post_params"] = form_params
|
4121
|
+
http_info["body"] = body
|
4122
|
+
http_info["response_headers"] = response_headers
|
4123
|
+
|
4124
|
+
return http_info
|
3640
4125
|
|
3641
4126
|
def update_order_async(self, request):
|
3642
4127
|
"""变更
|
@@ -3650,9 +4135,21 @@ class CbrAsyncClient(Client):
|
|
3650
4135
|
:type request: :class:`huaweicloudsdkcbr.v1.UpdateOrderRequest`
|
3651
4136
|
:rtype: :class:`huaweicloudsdkcbr.v1.UpdateOrderResponse`
|
3652
4137
|
"""
|
3653
|
-
|
4138
|
+
http_info = self._update_order_http_info(request)
|
4139
|
+
return self._call_api(**http_info)
|
4140
|
+
|
4141
|
+
def update_order_async_invoker(self, request):
|
4142
|
+
http_info = self._update_order_http_info(request)
|
4143
|
+
return AsyncInvoker(self, http_info)
|
4144
|
+
|
4145
|
+
def _update_order_http_info(self, request):
|
4146
|
+
http_info = {
|
4147
|
+
"method": "PUT",
|
4148
|
+
"resource_path": "/v3/{project_id}/orders/{order_id}",
|
4149
|
+
"request_type": request.__class__.__name__,
|
4150
|
+
"response_type": "UpdateOrderResponse"
|
4151
|
+
}
|
3654
4152
|
|
3655
|
-
def _update_order_with_http_info(self, request):
|
3656
4153
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
3657
4154
|
|
3658
4155
|
cname = None
|
@@ -3669,11 +4166,11 @@ class CbrAsyncClient(Client):
|
|
3669
4166
|
|
3670
4167
|
form_params = {}
|
3671
4168
|
|
3672
|
-
|
4169
|
+
body = None
|
3673
4170
|
if 'body' in local_var_params:
|
3674
|
-
|
4171
|
+
body = local_var_params['body']
|
3675
4172
|
if isinstance(request, SdkStreamRequest):
|
3676
|
-
|
4173
|
+
body = request.get_file_stream()
|
3677
4174
|
|
3678
4175
|
response_headers = []
|
3679
4176
|
|
@@ -3682,20 +4179,16 @@ class CbrAsyncClient(Client):
|
|
3682
4179
|
|
3683
4180
|
auth_settings = []
|
3684
4181
|
|
3685
|
-
|
3686
|
-
|
3687
|
-
|
3688
|
-
|
3689
|
-
|
3690
|
-
|
3691
|
-
|
3692
|
-
|
3693
|
-
|
3694
|
-
|
3695
|
-
response_headers=response_headers,
|
3696
|
-
auth_settings=auth_settings,
|
3697
|
-
collection_formats=collection_formats,
|
3698
|
-
request_type=request.__class__.__name__)
|
4182
|
+
http_info["cname"] = cname
|
4183
|
+
http_info["collection_formats"] = collection_formats
|
4184
|
+
http_info["path_params"] = path_params
|
4185
|
+
http_info["query_params"] = query_params
|
4186
|
+
http_info["header_params"] = header_params
|
4187
|
+
http_info["post_params"] = form_params
|
4188
|
+
http_info["body"] = body
|
4189
|
+
http_info["response_headers"] = response_headers
|
4190
|
+
|
4191
|
+
return http_info
|
3699
4192
|
|
3700
4193
|
def update_policy_async(self, request):
|
3701
4194
|
"""修改策略
|
@@ -3709,9 +4202,21 @@ class CbrAsyncClient(Client):
|
|
3709
4202
|
:type request: :class:`huaweicloudsdkcbr.v1.UpdatePolicyRequest`
|
3710
4203
|
:rtype: :class:`huaweicloudsdkcbr.v1.UpdatePolicyResponse`
|
3711
4204
|
"""
|
3712
|
-
|
4205
|
+
http_info = self._update_policy_http_info(request)
|
4206
|
+
return self._call_api(**http_info)
|
4207
|
+
|
4208
|
+
def update_policy_async_invoker(self, request):
|
4209
|
+
http_info = self._update_policy_http_info(request)
|
4210
|
+
return AsyncInvoker(self, http_info)
|
4211
|
+
|
4212
|
+
def _update_policy_http_info(self, request):
|
4213
|
+
http_info = {
|
4214
|
+
"method": "PUT",
|
4215
|
+
"resource_path": "/v3/{project_id}/policies/{policy_id}",
|
4216
|
+
"request_type": request.__class__.__name__,
|
4217
|
+
"response_type": "UpdatePolicyResponse"
|
4218
|
+
}
|
3713
4219
|
|
3714
|
-
def _update_policy_with_http_info(self, request):
|
3715
4220
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
3716
4221
|
|
3717
4222
|
cname = None
|
@@ -3728,11 +4233,11 @@ class CbrAsyncClient(Client):
|
|
3728
4233
|
|
3729
4234
|
form_params = {}
|
3730
4235
|
|
3731
|
-
|
4236
|
+
body = None
|
3732
4237
|
if 'body' in local_var_params:
|
3733
|
-
|
4238
|
+
body = local_var_params['body']
|
3734
4239
|
if isinstance(request, SdkStreamRequest):
|
3735
|
-
|
4240
|
+
body = request.get_file_stream()
|
3736
4241
|
|
3737
4242
|
response_headers = []
|
3738
4243
|
|
@@ -3741,20 +4246,16 @@ class CbrAsyncClient(Client):
|
|
3741
4246
|
|
3742
4247
|
auth_settings = []
|
3743
4248
|
|
3744
|
-
|
3745
|
-
|
3746
|
-
|
3747
|
-
|
3748
|
-
|
3749
|
-
|
3750
|
-
|
3751
|
-
|
3752
|
-
|
3753
|
-
|
3754
|
-
response_headers=response_headers,
|
3755
|
-
auth_settings=auth_settings,
|
3756
|
-
collection_formats=collection_formats,
|
3757
|
-
request_type=request.__class__.__name__)
|
4249
|
+
http_info["cname"] = cname
|
4250
|
+
http_info["collection_formats"] = collection_formats
|
4251
|
+
http_info["path_params"] = path_params
|
4252
|
+
http_info["query_params"] = query_params
|
4253
|
+
http_info["header_params"] = header_params
|
4254
|
+
http_info["post_params"] = form_params
|
4255
|
+
http_info["body"] = body
|
4256
|
+
http_info["response_headers"] = response_headers
|
4257
|
+
|
4258
|
+
return http_info
|
3758
4259
|
|
3759
4260
|
def update_vault_async(self, request):
|
3760
4261
|
"""修改存储库
|
@@ -3768,9 +4269,21 @@ class CbrAsyncClient(Client):
|
|
3768
4269
|
:type request: :class:`huaweicloudsdkcbr.v1.UpdateVaultRequest`
|
3769
4270
|
:rtype: :class:`huaweicloudsdkcbr.v1.UpdateVaultResponse`
|
3770
4271
|
"""
|
3771
|
-
|
4272
|
+
http_info = self._update_vault_http_info(request)
|
4273
|
+
return self._call_api(**http_info)
|
4274
|
+
|
4275
|
+
def update_vault_async_invoker(self, request):
|
4276
|
+
http_info = self._update_vault_http_info(request)
|
4277
|
+
return AsyncInvoker(self, http_info)
|
4278
|
+
|
4279
|
+
def _update_vault_http_info(self, request):
|
4280
|
+
http_info = {
|
4281
|
+
"method": "PUT",
|
4282
|
+
"resource_path": "/v3/{project_id}/vaults/{vault_id}",
|
4283
|
+
"request_type": request.__class__.__name__,
|
4284
|
+
"response_type": "UpdateVaultResponse"
|
4285
|
+
}
|
3772
4286
|
|
3773
|
-
def _update_vault_with_http_info(self, request):
|
3774
4287
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
3775
4288
|
|
3776
4289
|
cname = None
|
@@ -3787,11 +4300,11 @@ class CbrAsyncClient(Client):
|
|
3787
4300
|
|
3788
4301
|
form_params = {}
|
3789
4302
|
|
3790
|
-
|
4303
|
+
body = None
|
3791
4304
|
if 'body' in local_var_params:
|
3792
|
-
|
4305
|
+
body = local_var_params['body']
|
3793
4306
|
if isinstance(request, SdkStreamRequest):
|
3794
|
-
|
4307
|
+
body = request.get_file_stream()
|
3795
4308
|
|
3796
4309
|
response_headers = []
|
3797
4310
|
|
@@ -3800,20 +4313,26 @@ class CbrAsyncClient(Client):
|
|
3800
4313
|
|
3801
4314
|
auth_settings = []
|
3802
4315
|
|
3803
|
-
|
3804
|
-
|
3805
|
-
|
3806
|
-
|
3807
|
-
|
3808
|
-
|
3809
|
-
|
3810
|
-
|
3811
|
-
|
3812
|
-
|
3813
|
-
|
3814
|
-
|
3815
|
-
|
3816
|
-
|
4316
|
+
http_info["cname"] = cname
|
4317
|
+
http_info["collection_formats"] = collection_formats
|
4318
|
+
http_info["path_params"] = path_params
|
4319
|
+
http_info["query_params"] = query_params
|
4320
|
+
http_info["header_params"] = header_params
|
4321
|
+
http_info["post_params"] = form_params
|
4322
|
+
http_info["body"] = body
|
4323
|
+
http_info["response_headers"] = response_headers
|
4324
|
+
|
4325
|
+
return http_info
|
4326
|
+
|
4327
|
+
def _call_api(self, **kwargs):
|
4328
|
+
try:
|
4329
|
+
kwargs["async_request"] = True
|
4330
|
+
return self.do_http_request(**kwargs)
|
4331
|
+
except TypeError:
|
4332
|
+
import inspect
|
4333
|
+
params = inspect.signature(self.do_http_request).parameters
|
4334
|
+
http_info = {param_name: kwargs.get(param_name) for param_name in params if param_name in kwargs}
|
4335
|
+
return self.do_http_request(**http_info)
|
3817
4336
|
|
3818
4337
|
def call_api(self, resource_path, method, path_params=None, query_params=None, header_params=None, body=None,
|
3819
4338
|
post_params=None, cname=None, response_type=None, response_headers=None, auth_settings=None,
|
@@ -3852,4 +4371,4 @@ class CbrAsyncClient(Client):
|
|
3852
4371
|
response_headers=response_headers,
|
3853
4372
|
collection_formats=collection_formats,
|
3854
4373
|
request_type=request_type,
|
3855
|
-
|
4374
|
+
async_request=True)
|