huaweicloudsdkcbr 3.1.66__py2.py3-none-any.whl → 3.1.67__py2.py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- huaweicloudsdkcbr/v1/cbr_async_client.py +1685 -1166
- huaweicloudsdkcbr/v1/cbr_client.py +1746 -1165
- {huaweicloudsdkcbr-3.1.66.dist-info → huaweicloudsdkcbr-3.1.67.dist-info}/METADATA +2 -2
- {huaweicloudsdkcbr-3.1.66.dist-info → huaweicloudsdkcbr-3.1.67.dist-info}/RECORD +7 -7
- {huaweicloudsdkcbr-3.1.66.dist-info → huaweicloudsdkcbr-3.1.67.dist-info}/LICENSE +0 -0
- {huaweicloudsdkcbr-3.1.66.dist-info → huaweicloudsdkcbr-3.1.67.dist-info}/WHEEL +0 -0
- {huaweicloudsdkcbr-3.1.66.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 SyncInvoker
|
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 CbrClient(Client):
|
@@ -38,9 +43,22 @@ class CbrClient(Client):
|
|
38
43
|
:type request: :class:`huaweicloudsdkcbr.v1.AddAgentPathRequest`
|
39
44
|
:rtype: :class:`huaweicloudsdkcbr.v1.AddAgentPathResponse`
|
40
45
|
"""
|
41
|
-
|
46
|
+
http_info = self._add_agent_path_http_info(request)
|
47
|
+
return self._call_api(**http_info)
|
48
|
+
|
49
|
+
def add_agent_path_invoker(self, request):
|
50
|
+
http_info = self._add_agent_path_http_info(request)
|
51
|
+
return SyncInvoker(self, http_info)
|
52
|
+
|
53
|
+
@classmethod
|
54
|
+
def _add_agent_path_http_info(cls, 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
|
+
}
|
42
61
|
|
43
|
-
def _add_agent_path_with_http_info(self, request):
|
44
62
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
45
63
|
|
46
64
|
cname = None
|
@@ -57,11 +75,11 @@ class CbrClient(Client):
|
|
57
75
|
|
58
76
|
form_params = {}
|
59
77
|
|
60
|
-
|
78
|
+
body = None
|
61
79
|
if 'body' in local_var_params:
|
62
|
-
|
80
|
+
body = local_var_params['body']
|
63
81
|
if isinstance(request, SdkStreamRequest):
|
64
|
-
|
82
|
+
body = request.get_file_stream()
|
65
83
|
|
66
84
|
response_headers = []
|
67
85
|
|
@@ -70,20 +88,16 @@ class CbrClient(Client):
|
|
70
88
|
|
71
89
|
auth_settings = []
|
72
90
|
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
response_headers=response_headers,
|
84
|
-
auth_settings=auth_settings,
|
85
|
-
collection_formats=collection_formats,
|
86
|
-
request_type=request.__class__.__name__)
|
91
|
+
http_info["cname"] = cname
|
92
|
+
http_info["collection_formats"] = collection_formats
|
93
|
+
http_info["path_params"] = path_params
|
94
|
+
http_info["query_params"] = query_params
|
95
|
+
http_info["header_params"] = header_params
|
96
|
+
http_info["post_params"] = form_params
|
97
|
+
http_info["body"] = body
|
98
|
+
http_info["response_headers"] = response_headers
|
99
|
+
|
100
|
+
return http_info
|
87
101
|
|
88
102
|
def add_member(self, request):
|
89
103
|
"""添加备份成员
|
@@ -96,9 +110,22 @@ class CbrClient(Client):
|
|
96
110
|
:type request: :class:`huaweicloudsdkcbr.v1.AddMemberRequest`
|
97
111
|
:rtype: :class:`huaweicloudsdkcbr.v1.AddMemberResponse`
|
98
112
|
"""
|
99
|
-
|
113
|
+
http_info = self._add_member_http_info(request)
|
114
|
+
return self._call_api(**http_info)
|
115
|
+
|
116
|
+
def add_member_invoker(self, request):
|
117
|
+
http_info = self._add_member_http_info(request)
|
118
|
+
return SyncInvoker(self, http_info)
|
119
|
+
|
120
|
+
@classmethod
|
121
|
+
def _add_member_http_info(cls, 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
|
+
}
|
100
128
|
|
101
|
-
def _add_member_with_http_info(self, request):
|
102
129
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
103
130
|
|
104
131
|
cname = None
|
@@ -115,11 +142,11 @@ class CbrClient(Client):
|
|
115
142
|
|
116
143
|
form_params = {}
|
117
144
|
|
118
|
-
|
145
|
+
body = None
|
119
146
|
if 'body' in local_var_params:
|
120
|
-
|
147
|
+
body = local_var_params['body']
|
121
148
|
if isinstance(request, SdkStreamRequest):
|
122
|
-
|
149
|
+
body = request.get_file_stream()
|
123
150
|
|
124
151
|
response_headers = []
|
125
152
|
|
@@ -128,20 +155,16 @@ class CbrClient(Client):
|
|
128
155
|
|
129
156
|
auth_settings = []
|
130
157
|
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
response_headers=response_headers,
|
142
|
-
auth_settings=auth_settings,
|
143
|
-
collection_formats=collection_formats,
|
144
|
-
request_type=request.__class__.__name__)
|
158
|
+
http_info["cname"] = cname
|
159
|
+
http_info["collection_formats"] = collection_formats
|
160
|
+
http_info["path_params"] = path_params
|
161
|
+
http_info["query_params"] = query_params
|
162
|
+
http_info["header_params"] = header_params
|
163
|
+
http_info["post_params"] = form_params
|
164
|
+
http_info["body"] = body
|
165
|
+
http_info["response_headers"] = response_headers
|
166
|
+
|
167
|
+
return http_info
|
145
168
|
|
146
169
|
def add_vault_resource(self, request):
|
147
170
|
"""添加资源
|
@@ -154,9 +177,22 @@ class CbrClient(Client):
|
|
154
177
|
:type request: :class:`huaweicloudsdkcbr.v1.AddVaultResourceRequest`
|
155
178
|
:rtype: :class:`huaweicloudsdkcbr.v1.AddVaultResourceResponse`
|
156
179
|
"""
|
157
|
-
|
180
|
+
http_info = self._add_vault_resource_http_info(request)
|
181
|
+
return self._call_api(**http_info)
|
182
|
+
|
183
|
+
def add_vault_resource_invoker(self, request):
|
184
|
+
http_info = self._add_vault_resource_http_info(request)
|
185
|
+
return SyncInvoker(self, http_info)
|
186
|
+
|
187
|
+
@classmethod
|
188
|
+
def _add_vault_resource_http_info(cls, 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
|
+
}
|
158
195
|
|
159
|
-
def _add_vault_resource_with_http_info(self, request):
|
160
196
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
161
197
|
|
162
198
|
cname = None
|
@@ -173,11 +209,11 @@ class CbrClient(Client):
|
|
173
209
|
|
174
210
|
form_params = {}
|
175
211
|
|
176
|
-
|
212
|
+
body = None
|
177
213
|
if 'body' in local_var_params:
|
178
|
-
|
214
|
+
body = local_var_params['body']
|
179
215
|
if isinstance(request, SdkStreamRequest):
|
180
|
-
|
216
|
+
body = request.get_file_stream()
|
181
217
|
|
182
218
|
response_headers = []
|
183
219
|
|
@@ -186,20 +222,16 @@ class CbrClient(Client):
|
|
186
222
|
|
187
223
|
auth_settings = []
|
188
224
|
|
189
|
-
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
response_headers=response_headers,
|
200
|
-
auth_settings=auth_settings,
|
201
|
-
collection_formats=collection_formats,
|
202
|
-
request_type=request.__class__.__name__)
|
225
|
+
http_info["cname"] = cname
|
226
|
+
http_info["collection_formats"] = collection_formats
|
227
|
+
http_info["path_params"] = path_params
|
228
|
+
http_info["query_params"] = query_params
|
229
|
+
http_info["header_params"] = header_params
|
230
|
+
http_info["post_params"] = form_params
|
231
|
+
http_info["body"] = body
|
232
|
+
http_info["response_headers"] = response_headers
|
233
|
+
|
234
|
+
return http_info
|
203
235
|
|
204
236
|
def associate_vault_policy(self, request):
|
205
237
|
"""设置存储库策略
|
@@ -212,9 +244,22 @@ class CbrClient(Client):
|
|
212
244
|
:type request: :class:`huaweicloudsdkcbr.v1.AssociateVaultPolicyRequest`
|
213
245
|
:rtype: :class:`huaweicloudsdkcbr.v1.AssociateVaultPolicyResponse`
|
214
246
|
"""
|
215
|
-
|
247
|
+
http_info = self._associate_vault_policy_http_info(request)
|
248
|
+
return self._call_api(**http_info)
|
249
|
+
|
250
|
+
def associate_vault_policy_invoker(self, request):
|
251
|
+
http_info = self._associate_vault_policy_http_info(request)
|
252
|
+
return SyncInvoker(self, http_info)
|
253
|
+
|
254
|
+
@classmethod
|
255
|
+
def _associate_vault_policy_http_info(cls, 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
|
+
}
|
216
262
|
|
217
|
-
def _associate_vault_policy_with_http_info(self, request):
|
218
263
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
219
264
|
|
220
265
|
cname = None
|
@@ -231,11 +276,11 @@ class CbrClient(Client):
|
|
231
276
|
|
232
277
|
form_params = {}
|
233
278
|
|
234
|
-
|
279
|
+
body = None
|
235
280
|
if 'body' in local_var_params:
|
236
|
-
|
281
|
+
body = local_var_params['body']
|
237
282
|
if isinstance(request, SdkStreamRequest):
|
238
|
-
|
283
|
+
body = request.get_file_stream()
|
239
284
|
|
240
285
|
response_headers = []
|
241
286
|
|
@@ -244,20 +289,16 @@ class CbrClient(Client):
|
|
244
289
|
|
245
290
|
auth_settings = []
|
246
291
|
|
247
|
-
|
248
|
-
|
249
|
-
|
250
|
-
|
251
|
-
|
252
|
-
|
253
|
-
|
254
|
-
|
255
|
-
|
256
|
-
|
257
|
-
response_headers=response_headers,
|
258
|
-
auth_settings=auth_settings,
|
259
|
-
collection_formats=collection_formats,
|
260
|
-
request_type=request.__class__.__name__)
|
292
|
+
http_info["cname"] = cname
|
293
|
+
http_info["collection_formats"] = collection_formats
|
294
|
+
http_info["path_params"] = path_params
|
295
|
+
http_info["query_params"] = query_params
|
296
|
+
http_info["header_params"] = header_params
|
297
|
+
http_info["post_params"] = form_params
|
298
|
+
http_info["body"] = body
|
299
|
+
http_info["response_headers"] = response_headers
|
300
|
+
|
301
|
+
return http_info
|
261
302
|
|
262
303
|
def batch_create_and_delete_vault_tags(self, request):
|
263
304
|
"""批量添加删除存储库资源标签
|
@@ -277,9 +318,22 @@ class CbrClient(Client):
|
|
277
318
|
:type request: :class:`huaweicloudsdkcbr.v1.BatchCreateAndDeleteVaultTagsRequest`
|
278
319
|
:rtype: :class:`huaweicloudsdkcbr.v1.BatchCreateAndDeleteVaultTagsResponse`
|
279
320
|
"""
|
280
|
-
|
321
|
+
http_info = self._batch_create_and_delete_vault_tags_http_info(request)
|
322
|
+
return self._call_api(**http_info)
|
323
|
+
|
324
|
+
def batch_create_and_delete_vault_tags_invoker(self, request):
|
325
|
+
http_info = self._batch_create_and_delete_vault_tags_http_info(request)
|
326
|
+
return SyncInvoker(self, http_info)
|
327
|
+
|
328
|
+
@classmethod
|
329
|
+
def _batch_create_and_delete_vault_tags_http_info(cls, 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
|
+
}
|
281
336
|
|
282
|
-
def _batch_create_and_delete_vault_tags_with_http_info(self, request):
|
283
337
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
284
338
|
|
285
339
|
cname = None
|
@@ -296,11 +350,11 @@ class CbrClient(Client):
|
|
296
350
|
|
297
351
|
form_params = {}
|
298
352
|
|
299
|
-
|
353
|
+
body = None
|
300
354
|
if 'body' in local_var_params:
|
301
|
-
|
355
|
+
body = local_var_params['body']
|
302
356
|
if isinstance(request, SdkStreamRequest):
|
303
|
-
|
357
|
+
body = request.get_file_stream()
|
304
358
|
|
305
359
|
response_headers = []
|
306
360
|
|
@@ -309,20 +363,16 @@ class CbrClient(Client):
|
|
309
363
|
|
310
364
|
auth_settings = []
|
311
365
|
|
312
|
-
|
313
|
-
|
314
|
-
|
315
|
-
|
316
|
-
|
317
|
-
|
318
|
-
|
319
|
-
|
320
|
-
|
321
|
-
|
322
|
-
response_headers=response_headers,
|
323
|
-
auth_settings=auth_settings,
|
324
|
-
collection_formats=collection_formats,
|
325
|
-
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
|
326
376
|
|
327
377
|
def batch_update_vault(self, request):
|
328
378
|
"""批量修改存储库
|
@@ -335,9 +385,22 @@ class CbrClient(Client):
|
|
335
385
|
:type request: :class:`huaweicloudsdkcbr.v1.BatchUpdateVaultRequest`
|
336
386
|
:rtype: :class:`huaweicloudsdkcbr.v1.BatchUpdateVaultResponse`
|
337
387
|
"""
|
338
|
-
|
388
|
+
http_info = self._batch_update_vault_http_info(request)
|
389
|
+
return self._call_api(**http_info)
|
390
|
+
|
391
|
+
def batch_update_vault_invoker(self, request):
|
392
|
+
http_info = self._batch_update_vault_http_info(request)
|
393
|
+
return SyncInvoker(self, http_info)
|
394
|
+
|
395
|
+
@classmethod
|
396
|
+
def _batch_update_vault_http_info(cls, 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
|
+
}
|
339
403
|
|
340
|
-
def _batch_update_vault_with_http_info(self, request):
|
341
404
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
342
405
|
|
343
406
|
cname = None
|
@@ -352,11 +415,11 @@ class CbrClient(Client):
|
|
352
415
|
|
353
416
|
form_params = {}
|
354
417
|
|
355
|
-
|
418
|
+
body = None
|
356
419
|
if 'body' in local_var_params:
|
357
|
-
|
420
|
+
body = local_var_params['body']
|
358
421
|
if isinstance(request, SdkStreamRequest):
|
359
|
-
|
422
|
+
body = request.get_file_stream()
|
360
423
|
|
361
424
|
response_headers = []
|
362
425
|
|
@@ -365,20 +428,16 @@ class CbrClient(Client):
|
|
365
428
|
|
366
429
|
auth_settings = []
|
367
430
|
|
368
|
-
|
369
|
-
|
370
|
-
|
371
|
-
|
372
|
-
|
373
|
-
|
374
|
-
|
375
|
-
|
376
|
-
|
377
|
-
|
378
|
-
response_headers=response_headers,
|
379
|
-
auth_settings=auth_settings,
|
380
|
-
collection_formats=collection_formats,
|
381
|
-
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
|
382
441
|
|
383
442
|
def check_agent(self, request):
|
384
443
|
"""查询agent状态
|
@@ -391,9 +450,22 @@ class CbrClient(Client):
|
|
391
450
|
:type request: :class:`huaweicloudsdkcbr.v1.CheckAgentRequest`
|
392
451
|
:rtype: :class:`huaweicloudsdkcbr.v1.CheckAgentResponse`
|
393
452
|
"""
|
394
|
-
|
453
|
+
http_info = self._check_agent_http_info(request)
|
454
|
+
return self._call_api(**http_info)
|
455
|
+
|
456
|
+
def check_agent_invoker(self, request):
|
457
|
+
http_info = self._check_agent_http_info(request)
|
458
|
+
return SyncInvoker(self, http_info)
|
459
|
+
|
460
|
+
@classmethod
|
461
|
+
def _check_agent_http_info(cls, 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
|
+
}
|
395
468
|
|
396
|
-
def _check_agent_with_http_info(self, request):
|
397
469
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
398
470
|
|
399
471
|
cname = None
|
@@ -408,11 +480,11 @@ class CbrClient(Client):
|
|
408
480
|
|
409
481
|
form_params = {}
|
410
482
|
|
411
|
-
|
483
|
+
body = None
|
412
484
|
if 'body' in local_var_params:
|
413
|
-
|
485
|
+
body = local_var_params['body']
|
414
486
|
if isinstance(request, SdkStreamRequest):
|
415
|
-
|
487
|
+
body = request.get_file_stream()
|
416
488
|
|
417
489
|
response_headers = []
|
418
490
|
|
@@ -421,20 +493,16 @@ class CbrClient(Client):
|
|
421
493
|
|
422
494
|
auth_settings = []
|
423
495
|
|
424
|
-
|
425
|
-
|
426
|
-
|
427
|
-
|
428
|
-
|
429
|
-
|
430
|
-
|
431
|
-
|
432
|
-
|
433
|
-
|
434
|
-
response_headers=response_headers,
|
435
|
-
auth_settings=auth_settings,
|
436
|
-
collection_formats=collection_formats,
|
437
|
-
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
|
438
506
|
|
439
507
|
def copy_backup(self, request):
|
440
508
|
"""复制备份
|
@@ -447,9 +515,22 @@ class CbrClient(Client):
|
|
447
515
|
:type request: :class:`huaweicloudsdkcbr.v1.CopyBackupRequest`
|
448
516
|
:rtype: :class:`huaweicloudsdkcbr.v1.CopyBackupResponse`
|
449
517
|
"""
|
450
|
-
|
518
|
+
http_info = self._copy_backup_http_info(request)
|
519
|
+
return self._call_api(**http_info)
|
520
|
+
|
521
|
+
def copy_backup_invoker(self, request):
|
522
|
+
http_info = self._copy_backup_http_info(request)
|
523
|
+
return SyncInvoker(self, http_info)
|
524
|
+
|
525
|
+
@classmethod
|
526
|
+
def _copy_backup_http_info(cls, 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
|
+
}
|
451
533
|
|
452
|
-
def _copy_backup_with_http_info(self, request):
|
453
534
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
454
535
|
|
455
536
|
cname = None
|
@@ -466,11 +547,11 @@ class CbrClient(Client):
|
|
466
547
|
|
467
548
|
form_params = {}
|
468
549
|
|
469
|
-
|
550
|
+
body = None
|
470
551
|
if 'body' in local_var_params:
|
471
|
-
|
552
|
+
body = local_var_params['body']
|
472
553
|
if isinstance(request, SdkStreamRequest):
|
473
|
-
|
554
|
+
body = request.get_file_stream()
|
474
555
|
|
475
556
|
response_headers = []
|
476
557
|
|
@@ -479,20 +560,16 @@ class CbrClient(Client):
|
|
479
560
|
|
480
561
|
auth_settings = []
|
481
562
|
|
482
|
-
|
483
|
-
|
484
|
-
|
485
|
-
|
486
|
-
|
487
|
-
|
488
|
-
|
489
|
-
|
490
|
-
|
491
|
-
|
492
|
-
response_headers=response_headers,
|
493
|
-
auth_settings=auth_settings,
|
494
|
-
collection_formats=collection_formats,
|
495
|
-
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
|
496
573
|
|
497
574
|
def copy_checkpoint(self, request):
|
498
575
|
"""复制备份还原点
|
@@ -505,9 +582,22 @@ class CbrClient(Client):
|
|
505
582
|
:type request: :class:`huaweicloudsdkcbr.v1.CopyCheckpointRequest`
|
506
583
|
:rtype: :class:`huaweicloudsdkcbr.v1.CopyCheckpointResponse`
|
507
584
|
"""
|
508
|
-
|
585
|
+
http_info = self._copy_checkpoint_http_info(request)
|
586
|
+
return self._call_api(**http_info)
|
587
|
+
|
588
|
+
def copy_checkpoint_invoker(self, request):
|
589
|
+
http_info = self._copy_checkpoint_http_info(request)
|
590
|
+
return SyncInvoker(self, http_info)
|
591
|
+
|
592
|
+
@classmethod
|
593
|
+
def _copy_checkpoint_http_info(cls, 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
|
+
}
|
509
600
|
|
510
|
-
def _copy_checkpoint_with_http_info(self, request):
|
511
601
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
512
602
|
|
513
603
|
cname = None
|
@@ -522,11 +612,11 @@ class CbrClient(Client):
|
|
522
612
|
|
523
613
|
form_params = {}
|
524
614
|
|
525
|
-
|
615
|
+
body = None
|
526
616
|
if 'body' in local_var_params:
|
527
|
-
|
617
|
+
body = local_var_params['body']
|
528
618
|
if isinstance(request, SdkStreamRequest):
|
529
|
-
|
619
|
+
body = request.get_file_stream()
|
530
620
|
|
531
621
|
response_headers = []
|
532
622
|
|
@@ -535,20 +625,16 @@ class CbrClient(Client):
|
|
535
625
|
|
536
626
|
auth_settings = []
|
537
627
|
|
538
|
-
|
539
|
-
|
540
|
-
|
541
|
-
|
542
|
-
|
543
|
-
|
544
|
-
|
545
|
-
|
546
|
-
|
547
|
-
|
548
|
-
response_headers=response_headers,
|
549
|
-
auth_settings=auth_settings,
|
550
|
-
collection_formats=collection_formats,
|
551
|
-
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
|
552
638
|
|
553
639
|
def create_checkpoint(self, request):
|
554
640
|
"""创建备份还原点
|
@@ -561,9 +647,22 @@ class CbrClient(Client):
|
|
561
647
|
:type request: :class:`huaweicloudsdkcbr.v1.CreateCheckpointRequest`
|
562
648
|
:rtype: :class:`huaweicloudsdkcbr.v1.CreateCheckpointResponse`
|
563
649
|
"""
|
564
|
-
|
650
|
+
http_info = self._create_checkpoint_http_info(request)
|
651
|
+
return self._call_api(**http_info)
|
652
|
+
|
653
|
+
def create_checkpoint_invoker(self, request):
|
654
|
+
http_info = self._create_checkpoint_http_info(request)
|
655
|
+
return SyncInvoker(self, http_info)
|
656
|
+
|
657
|
+
@classmethod
|
658
|
+
def _create_checkpoint_http_info(cls, 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
|
+
}
|
565
665
|
|
566
|
-
def _create_checkpoint_with_http_info(self, request):
|
567
666
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
568
667
|
|
569
668
|
cname = None
|
@@ -578,11 +677,11 @@ class CbrClient(Client):
|
|
578
677
|
|
579
678
|
form_params = {}
|
580
679
|
|
581
|
-
|
680
|
+
body = None
|
582
681
|
if 'body' in local_var_params:
|
583
|
-
|
682
|
+
body = local_var_params['body']
|
584
683
|
if isinstance(request, SdkStreamRequest):
|
585
|
-
|
684
|
+
body = request.get_file_stream()
|
586
685
|
|
587
686
|
response_headers = []
|
588
687
|
|
@@ -591,20 +690,16 @@ class CbrClient(Client):
|
|
591
690
|
|
592
691
|
auth_settings = []
|
593
692
|
|
594
|
-
|
595
|
-
|
596
|
-
|
597
|
-
|
598
|
-
|
599
|
-
|
600
|
-
|
601
|
-
|
602
|
-
|
603
|
-
|
604
|
-
response_headers=response_headers,
|
605
|
-
auth_settings=auth_settings,
|
606
|
-
collection_formats=collection_formats,
|
607
|
-
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
|
608
703
|
|
609
704
|
def create_policy(self, request):
|
610
705
|
"""创建策略
|
@@ -617,9 +712,22 @@ class CbrClient(Client):
|
|
617
712
|
:type request: :class:`huaweicloudsdkcbr.v1.CreatePolicyRequest`
|
618
713
|
:rtype: :class:`huaweicloudsdkcbr.v1.CreatePolicyResponse`
|
619
714
|
"""
|
620
|
-
|
715
|
+
http_info = self._create_policy_http_info(request)
|
716
|
+
return self._call_api(**http_info)
|
717
|
+
|
718
|
+
def create_policy_invoker(self, request):
|
719
|
+
http_info = self._create_policy_http_info(request)
|
720
|
+
return SyncInvoker(self, http_info)
|
721
|
+
|
722
|
+
@classmethod
|
723
|
+
def _create_policy_http_info(cls, 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
|
+
}
|
621
730
|
|
622
|
-
def _create_policy_with_http_info(self, request):
|
623
731
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
624
732
|
|
625
733
|
cname = None
|
@@ -634,11 +742,11 @@ class CbrClient(Client):
|
|
634
742
|
|
635
743
|
form_params = {}
|
636
744
|
|
637
|
-
|
745
|
+
body = None
|
638
746
|
if 'body' in local_var_params:
|
639
|
-
|
747
|
+
body = local_var_params['body']
|
640
748
|
if isinstance(request, SdkStreamRequest):
|
641
|
-
|
749
|
+
body = request.get_file_stream()
|
642
750
|
|
643
751
|
response_headers = []
|
644
752
|
|
@@ -647,20 +755,16 @@ class CbrClient(Client):
|
|
647
755
|
|
648
756
|
auth_settings = []
|
649
757
|
|
650
|
-
|
651
|
-
|
652
|
-
|
653
|
-
|
654
|
-
|
655
|
-
|
656
|
-
|
657
|
-
|
658
|
-
|
659
|
-
|
660
|
-
response_headers=response_headers,
|
661
|
-
auth_settings=auth_settings,
|
662
|
-
collection_formats=collection_formats,
|
663
|
-
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
|
664
768
|
|
665
769
|
def create_post_paid_vault(self, request):
|
666
770
|
"""创建包周期存储库
|
@@ -673,9 +777,22 @@ class CbrClient(Client):
|
|
673
777
|
:type request: :class:`huaweicloudsdkcbr.v1.CreatePostPaidVaultRequest`
|
674
778
|
:rtype: :class:`huaweicloudsdkcbr.v1.CreatePostPaidVaultResponse`
|
675
779
|
"""
|
676
|
-
|
780
|
+
http_info = self._create_post_paid_vault_http_info(request)
|
781
|
+
return self._call_api(**http_info)
|
782
|
+
|
783
|
+
def create_post_paid_vault_invoker(self, request):
|
784
|
+
http_info = self._create_post_paid_vault_http_info(request)
|
785
|
+
return SyncInvoker(self, http_info)
|
786
|
+
|
787
|
+
@classmethod
|
788
|
+
def _create_post_paid_vault_http_info(cls, 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
|
+
}
|
677
795
|
|
678
|
-
def _create_post_paid_vault_with_http_info(self, request):
|
679
796
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
680
797
|
|
681
798
|
cname = None
|
@@ -690,11 +807,11 @@ class CbrClient(Client):
|
|
690
807
|
|
691
808
|
form_params = {}
|
692
809
|
|
693
|
-
|
810
|
+
body = None
|
694
811
|
if 'body' in local_var_params:
|
695
|
-
|
812
|
+
body = local_var_params['body']
|
696
813
|
if isinstance(request, SdkStreamRequest):
|
697
|
-
|
814
|
+
body = request.get_file_stream()
|
698
815
|
|
699
816
|
response_headers = []
|
700
817
|
|
@@ -703,20 +820,16 @@ class CbrClient(Client):
|
|
703
820
|
|
704
821
|
auth_settings = []
|
705
822
|
|
706
|
-
|
707
|
-
|
708
|
-
|
709
|
-
|
710
|
-
|
711
|
-
|
712
|
-
|
713
|
-
|
714
|
-
|
715
|
-
|
716
|
-
response_headers=response_headers,
|
717
|
-
auth_settings=auth_settings,
|
718
|
-
collection_formats=collection_formats,
|
719
|
-
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
|
720
833
|
|
721
834
|
def create_vault(self, request):
|
722
835
|
"""创建存储库
|
@@ -729,9 +842,22 @@ class CbrClient(Client):
|
|
729
842
|
:type request: :class:`huaweicloudsdkcbr.v1.CreateVaultRequest`
|
730
843
|
:rtype: :class:`huaweicloudsdkcbr.v1.CreateVaultResponse`
|
731
844
|
"""
|
732
|
-
|
845
|
+
http_info = self._create_vault_http_info(request)
|
846
|
+
return self._call_api(**http_info)
|
847
|
+
|
848
|
+
def create_vault_invoker(self, request):
|
849
|
+
http_info = self._create_vault_http_info(request)
|
850
|
+
return SyncInvoker(self, http_info)
|
851
|
+
|
852
|
+
@classmethod
|
853
|
+
def _create_vault_http_info(cls, 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
|
+
}
|
733
860
|
|
734
|
-
def _create_vault_with_http_info(self, request):
|
735
861
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
736
862
|
|
737
863
|
cname = None
|
@@ -746,11 +872,11 @@ class CbrClient(Client):
|
|
746
872
|
|
747
873
|
form_params = {}
|
748
874
|
|
749
|
-
|
875
|
+
body = None
|
750
876
|
if 'body' in local_var_params:
|
751
|
-
|
877
|
+
body = local_var_params['body']
|
752
878
|
if isinstance(request, SdkStreamRequest):
|
753
|
-
|
879
|
+
body = request.get_file_stream()
|
754
880
|
|
755
881
|
response_headers = []
|
756
882
|
|
@@ -759,20 +885,16 @@ class CbrClient(Client):
|
|
759
885
|
|
760
886
|
auth_settings = []
|
761
887
|
|
762
|
-
|
763
|
-
|
764
|
-
|
765
|
-
|
766
|
-
|
767
|
-
|
768
|
-
|
769
|
-
|
770
|
-
|
771
|
-
|
772
|
-
response_headers=response_headers,
|
773
|
-
auth_settings=auth_settings,
|
774
|
-
collection_formats=collection_formats,
|
775
|
-
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
|
776
898
|
|
777
899
|
def create_vault_tags(self, request):
|
778
900
|
"""添加存储库资源标签
|
@@ -786,9 +908,22 @@ class CbrClient(Client):
|
|
786
908
|
:type request: :class:`huaweicloudsdkcbr.v1.CreateVaultTagsRequest`
|
787
909
|
:rtype: :class:`huaweicloudsdkcbr.v1.CreateVaultTagsResponse`
|
788
910
|
"""
|
789
|
-
|
911
|
+
http_info = self._create_vault_tags_http_info(request)
|
912
|
+
return self._call_api(**http_info)
|
913
|
+
|
914
|
+
def create_vault_tags_invoker(self, request):
|
915
|
+
http_info = self._create_vault_tags_http_info(request)
|
916
|
+
return SyncInvoker(self, http_info)
|
917
|
+
|
918
|
+
@classmethod
|
919
|
+
def _create_vault_tags_http_info(cls, 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
|
+
}
|
790
926
|
|
791
|
-
def _create_vault_tags_with_http_info(self, request):
|
792
927
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
793
928
|
|
794
929
|
cname = None
|
@@ -805,11 +940,11 @@ class CbrClient(Client):
|
|
805
940
|
|
806
941
|
form_params = {}
|
807
942
|
|
808
|
-
|
943
|
+
body = None
|
809
944
|
if 'body' in local_var_params:
|
810
|
-
|
945
|
+
body = local_var_params['body']
|
811
946
|
if isinstance(request, SdkStreamRequest):
|
812
|
-
|
947
|
+
body = request.get_file_stream()
|
813
948
|
|
814
949
|
response_headers = []
|
815
950
|
|
@@ -818,20 +953,16 @@ class CbrClient(Client):
|
|
818
953
|
|
819
954
|
auth_settings = []
|
820
955
|
|
821
|
-
|
822
|
-
|
823
|
-
|
824
|
-
|
825
|
-
|
826
|
-
|
827
|
-
|
828
|
-
|
829
|
-
|
830
|
-
|
831
|
-
response_headers=response_headers,
|
832
|
-
auth_settings=auth_settings,
|
833
|
-
collection_formats=collection_formats,
|
834
|
-
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
|
835
966
|
|
836
967
|
def delete_backup(self, request):
|
837
968
|
"""删除备份
|
@@ -844,9 +975,22 @@ class CbrClient(Client):
|
|
844
975
|
:type request: :class:`huaweicloudsdkcbr.v1.DeleteBackupRequest`
|
845
976
|
:rtype: :class:`huaweicloudsdkcbr.v1.DeleteBackupResponse`
|
846
977
|
"""
|
847
|
-
|
978
|
+
http_info = self._delete_backup_http_info(request)
|
979
|
+
return self._call_api(**http_info)
|
980
|
+
|
981
|
+
def delete_backup_invoker(self, request):
|
982
|
+
http_info = self._delete_backup_http_info(request)
|
983
|
+
return SyncInvoker(self, http_info)
|
984
|
+
|
985
|
+
@classmethod
|
986
|
+
def _delete_backup_http_info(cls, 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
|
+
}
|
848
993
|
|
849
|
-
def _delete_backup_with_http_info(self, request):
|
850
994
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
851
995
|
|
852
996
|
cname = None
|
@@ -863,9 +1007,9 @@ class CbrClient(Client):
|
|
863
1007
|
|
864
1008
|
form_params = {}
|
865
1009
|
|
866
|
-
|
1010
|
+
body = None
|
867
1011
|
if isinstance(request, SdkStreamRequest):
|
868
|
-
|
1012
|
+
body = request.get_file_stream()
|
869
1013
|
|
870
1014
|
response_headers = []
|
871
1015
|
|
@@ -874,20 +1018,16 @@ class CbrClient(Client):
|
|
874
1018
|
|
875
1019
|
auth_settings = []
|
876
1020
|
|
877
|
-
|
878
|
-
|
879
|
-
|
880
|
-
|
881
|
-
|
882
|
-
|
883
|
-
|
884
|
-
|
885
|
-
|
886
|
-
|
887
|
-
response_headers=response_headers,
|
888
|
-
auth_settings=auth_settings,
|
889
|
-
collection_formats=collection_formats,
|
890
|
-
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
|
891
1031
|
|
892
1032
|
def delete_member(self, request):
|
893
1033
|
"""删除指定备份成员
|
@@ -900,9 +1040,22 @@ class CbrClient(Client):
|
|
900
1040
|
:type request: :class:`huaweicloudsdkcbr.v1.DeleteMemberRequest`
|
901
1041
|
:rtype: :class:`huaweicloudsdkcbr.v1.DeleteMemberResponse`
|
902
1042
|
"""
|
903
|
-
|
1043
|
+
http_info = self._delete_member_http_info(request)
|
1044
|
+
return self._call_api(**http_info)
|
1045
|
+
|
1046
|
+
def delete_member_invoker(self, request):
|
1047
|
+
http_info = self._delete_member_http_info(request)
|
1048
|
+
return SyncInvoker(self, http_info)
|
1049
|
+
|
1050
|
+
@classmethod
|
1051
|
+
def _delete_member_http_info(cls, 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
|
+
}
|
904
1058
|
|
905
|
-
def _delete_member_with_http_info(self, request):
|
906
1059
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
907
1060
|
|
908
1061
|
cname = None
|
@@ -921,9 +1074,9 @@ class CbrClient(Client):
|
|
921
1074
|
|
922
1075
|
form_params = {}
|
923
1076
|
|
924
|
-
|
1077
|
+
body = None
|
925
1078
|
if isinstance(request, SdkStreamRequest):
|
926
|
-
|
1079
|
+
body = request.get_file_stream()
|
927
1080
|
|
928
1081
|
response_headers = []
|
929
1082
|
|
@@ -932,20 +1085,16 @@ class CbrClient(Client):
|
|
932
1085
|
|
933
1086
|
auth_settings = []
|
934
1087
|
|
935
|
-
|
936
|
-
|
937
|
-
|
938
|
-
|
939
|
-
|
940
|
-
|
941
|
-
|
942
|
-
|
943
|
-
|
944
|
-
|
945
|
-
response_headers=response_headers,
|
946
|
-
auth_settings=auth_settings,
|
947
|
-
collection_formats=collection_formats,
|
948
|
-
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
|
949
1098
|
|
950
1099
|
def delete_policy(self, request):
|
951
1100
|
"""删除策略
|
@@ -958,9 +1107,22 @@ class CbrClient(Client):
|
|
958
1107
|
:type request: :class:`huaweicloudsdkcbr.v1.DeletePolicyRequest`
|
959
1108
|
:rtype: :class:`huaweicloudsdkcbr.v1.DeletePolicyResponse`
|
960
1109
|
"""
|
961
|
-
|
1110
|
+
http_info = self._delete_policy_http_info(request)
|
1111
|
+
return self._call_api(**http_info)
|
1112
|
+
|
1113
|
+
def delete_policy_invoker(self, request):
|
1114
|
+
http_info = self._delete_policy_http_info(request)
|
1115
|
+
return SyncInvoker(self, http_info)
|
1116
|
+
|
1117
|
+
@classmethod
|
1118
|
+
def _delete_policy_http_info(cls, 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
|
+
}
|
962
1125
|
|
963
|
-
def _delete_policy_with_http_info(self, request):
|
964
1126
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
965
1127
|
|
966
1128
|
cname = None
|
@@ -977,9 +1139,9 @@ class CbrClient(Client):
|
|
977
1139
|
|
978
1140
|
form_params = {}
|
979
1141
|
|
980
|
-
|
1142
|
+
body = None
|
981
1143
|
if isinstance(request, SdkStreamRequest):
|
982
|
-
|
1144
|
+
body = request.get_file_stream()
|
983
1145
|
|
984
1146
|
response_headers = []
|
985
1147
|
|
@@ -988,20 +1150,16 @@ class CbrClient(Client):
|
|
988
1150
|
|
989
1151
|
auth_settings = []
|
990
1152
|
|
991
|
-
|
992
|
-
|
993
|
-
|
994
|
-
|
995
|
-
|
996
|
-
|
997
|
-
|
998
|
-
|
999
|
-
|
1000
|
-
|
1001
|
-
response_headers=response_headers,
|
1002
|
-
auth_settings=auth_settings,
|
1003
|
-
collection_formats=collection_formats,
|
1004
|
-
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
|
1005
1163
|
|
1006
1164
|
def delete_vault(self, request):
|
1007
1165
|
"""删除存储库
|
@@ -1014,9 +1172,22 @@ class CbrClient(Client):
|
|
1014
1172
|
:type request: :class:`huaweicloudsdkcbr.v1.DeleteVaultRequest`
|
1015
1173
|
:rtype: :class:`huaweicloudsdkcbr.v1.DeleteVaultResponse`
|
1016
1174
|
"""
|
1017
|
-
|
1175
|
+
http_info = self._delete_vault_http_info(request)
|
1176
|
+
return self._call_api(**http_info)
|
1177
|
+
|
1178
|
+
def delete_vault_invoker(self, request):
|
1179
|
+
http_info = self._delete_vault_http_info(request)
|
1180
|
+
return SyncInvoker(self, http_info)
|
1181
|
+
|
1182
|
+
@classmethod
|
1183
|
+
def _delete_vault_http_info(cls, 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
|
+
}
|
1018
1190
|
|
1019
|
-
def _delete_vault_with_http_info(self, request):
|
1020
1191
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
1021
1192
|
|
1022
1193
|
cname = None
|
@@ -1033,9 +1204,9 @@ class CbrClient(Client):
|
|
1033
1204
|
|
1034
1205
|
form_params = {}
|
1035
1206
|
|
1036
|
-
|
1207
|
+
body = None
|
1037
1208
|
if isinstance(request, SdkStreamRequest):
|
1038
|
-
|
1209
|
+
body = request.get_file_stream()
|
1039
1210
|
|
1040
1211
|
response_headers = []
|
1041
1212
|
|
@@ -1044,20 +1215,16 @@ class CbrClient(Client):
|
|
1044
1215
|
|
1045
1216
|
auth_settings = []
|
1046
1217
|
|
1047
|
-
|
1048
|
-
|
1049
|
-
|
1050
|
-
|
1051
|
-
|
1052
|
-
|
1053
|
-
|
1054
|
-
|
1055
|
-
|
1056
|
-
|
1057
|
-
response_headers=response_headers,
|
1058
|
-
auth_settings=auth_settings,
|
1059
|
-
collection_formats=collection_formats,
|
1060
|
-
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
|
1061
1228
|
|
1062
1229
|
def delete_vault_tag(self, request):
|
1063
1230
|
"""删除存储库资源标签
|
@@ -1070,9 +1237,22 @@ class CbrClient(Client):
|
|
1070
1237
|
:type request: :class:`huaweicloudsdkcbr.v1.DeleteVaultTagRequest`
|
1071
1238
|
:rtype: :class:`huaweicloudsdkcbr.v1.DeleteVaultTagResponse`
|
1072
1239
|
"""
|
1073
|
-
|
1240
|
+
http_info = self._delete_vault_tag_http_info(request)
|
1241
|
+
return self._call_api(**http_info)
|
1242
|
+
|
1243
|
+
def delete_vault_tag_invoker(self, request):
|
1244
|
+
http_info = self._delete_vault_tag_http_info(request)
|
1245
|
+
return SyncInvoker(self, http_info)
|
1246
|
+
|
1247
|
+
@classmethod
|
1248
|
+
def _delete_vault_tag_http_info(cls, 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
|
+
}
|
1074
1255
|
|
1075
|
-
def _delete_vault_tag_with_http_info(self, request):
|
1076
1256
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
1077
1257
|
|
1078
1258
|
cname = None
|
@@ -1091,9 +1271,9 @@ class CbrClient(Client):
|
|
1091
1271
|
|
1092
1272
|
form_params = {}
|
1093
1273
|
|
1094
|
-
|
1274
|
+
body = None
|
1095
1275
|
if isinstance(request, SdkStreamRequest):
|
1096
|
-
|
1276
|
+
body = request.get_file_stream()
|
1097
1277
|
|
1098
1278
|
response_headers = []
|
1099
1279
|
|
@@ -1102,20 +1282,16 @@ class CbrClient(Client):
|
|
1102
1282
|
|
1103
1283
|
auth_settings = []
|
1104
1284
|
|
1105
|
-
|
1106
|
-
|
1107
|
-
|
1108
|
-
|
1109
|
-
|
1110
|
-
|
1111
|
-
|
1112
|
-
|
1113
|
-
|
1114
|
-
|
1115
|
-
response_headers=response_headers,
|
1116
|
-
auth_settings=auth_settings,
|
1117
|
-
collection_formats=collection_formats,
|
1118
|
-
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
|
1119
1295
|
|
1120
1296
|
def disassociate_vault_policy(self, request):
|
1121
1297
|
"""解除存储库策略
|
@@ -1128,9 +1304,22 @@ class CbrClient(Client):
|
|
1128
1304
|
:type request: :class:`huaweicloudsdkcbr.v1.DisassociateVaultPolicyRequest`
|
1129
1305
|
:rtype: :class:`huaweicloudsdkcbr.v1.DisassociateVaultPolicyResponse`
|
1130
1306
|
"""
|
1131
|
-
|
1307
|
+
http_info = self._disassociate_vault_policy_http_info(request)
|
1308
|
+
return self._call_api(**http_info)
|
1309
|
+
|
1310
|
+
def disassociate_vault_policy_invoker(self, request):
|
1311
|
+
http_info = self._disassociate_vault_policy_http_info(request)
|
1312
|
+
return SyncInvoker(self, http_info)
|
1313
|
+
|
1314
|
+
@classmethod
|
1315
|
+
def _disassociate_vault_policy_http_info(cls, 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
|
+
}
|
1132
1322
|
|
1133
|
-
def _disassociate_vault_policy_with_http_info(self, request):
|
1134
1323
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
1135
1324
|
|
1136
1325
|
cname = None
|
@@ -1147,11 +1336,11 @@ class CbrClient(Client):
|
|
1147
1336
|
|
1148
1337
|
form_params = {}
|
1149
1338
|
|
1150
|
-
|
1339
|
+
body = None
|
1151
1340
|
if 'body' in local_var_params:
|
1152
|
-
|
1341
|
+
body = local_var_params['body']
|
1153
1342
|
if isinstance(request, SdkStreamRequest):
|
1154
|
-
|
1343
|
+
body = request.get_file_stream()
|
1155
1344
|
|
1156
1345
|
response_headers = []
|
1157
1346
|
|
@@ -1160,20 +1349,16 @@ class CbrClient(Client):
|
|
1160
1349
|
|
1161
1350
|
auth_settings = []
|
1162
1351
|
|
1163
|
-
|
1164
|
-
|
1165
|
-
|
1166
|
-
|
1167
|
-
|
1168
|
-
|
1169
|
-
|
1170
|
-
|
1171
|
-
|
1172
|
-
|
1173
|
-
response_headers=response_headers,
|
1174
|
-
auth_settings=auth_settings,
|
1175
|
-
collection_formats=collection_formats,
|
1176
|
-
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
|
1177
1362
|
|
1178
1363
|
def import_backup(self, request):
|
1179
1364
|
"""同步备份
|
@@ -1186,9 +1371,22 @@ class CbrClient(Client):
|
|
1186
1371
|
:type request: :class:`huaweicloudsdkcbr.v1.ImportBackupRequest`
|
1187
1372
|
:rtype: :class:`huaweicloudsdkcbr.v1.ImportBackupResponse`
|
1188
1373
|
"""
|
1189
|
-
|
1374
|
+
http_info = self._import_backup_http_info(request)
|
1375
|
+
return self._call_api(**http_info)
|
1376
|
+
|
1377
|
+
def import_backup_invoker(self, request):
|
1378
|
+
http_info = self._import_backup_http_info(request)
|
1379
|
+
return SyncInvoker(self, http_info)
|
1380
|
+
|
1381
|
+
@classmethod
|
1382
|
+
def _import_backup_http_info(cls, 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
|
+
}
|
1190
1389
|
|
1191
|
-
def _import_backup_with_http_info(self, request):
|
1192
1390
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
1193
1391
|
|
1194
1392
|
cname = None
|
@@ -1203,11 +1401,11 @@ class CbrClient(Client):
|
|
1203
1401
|
|
1204
1402
|
form_params = {}
|
1205
1403
|
|
1206
|
-
|
1404
|
+
body = None
|
1207
1405
|
if 'body' in local_var_params:
|
1208
|
-
|
1406
|
+
body = local_var_params['body']
|
1209
1407
|
if isinstance(request, SdkStreamRequest):
|
1210
|
-
|
1408
|
+
body = request.get_file_stream()
|
1211
1409
|
|
1212
1410
|
response_headers = []
|
1213
1411
|
|
@@ -1216,20 +1414,16 @@ class CbrClient(Client):
|
|
1216
1414
|
|
1217
1415
|
auth_settings = []
|
1218
1416
|
|
1219
|
-
|
1220
|
-
|
1221
|
-
|
1222
|
-
|
1223
|
-
|
1224
|
-
|
1225
|
-
|
1226
|
-
|
1227
|
-
|
1228
|
-
|
1229
|
-
response_headers=response_headers,
|
1230
|
-
auth_settings=auth_settings,
|
1231
|
-
collection_formats=collection_formats,
|
1232
|
-
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
|
1233
1427
|
|
1234
1428
|
def import_checkpoint(self, request):
|
1235
1429
|
"""同步备份还原点
|
@@ -1242,9 +1436,22 @@ class CbrClient(Client):
|
|
1242
1436
|
:type request: :class:`huaweicloudsdkcbr.v1.ImportCheckpointRequest`
|
1243
1437
|
:rtype: :class:`huaweicloudsdkcbr.v1.ImportCheckpointResponse`
|
1244
1438
|
"""
|
1245
|
-
|
1439
|
+
http_info = self._import_checkpoint_http_info(request)
|
1440
|
+
return self._call_api(**http_info)
|
1441
|
+
|
1442
|
+
def import_checkpoint_invoker(self, request):
|
1443
|
+
http_info = self._import_checkpoint_http_info(request)
|
1444
|
+
return SyncInvoker(self, http_info)
|
1445
|
+
|
1446
|
+
@classmethod
|
1447
|
+
def _import_checkpoint_http_info(cls, 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
|
+
}
|
1246
1454
|
|
1247
|
-
def _import_checkpoint_with_http_info(self, request):
|
1248
1455
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
1249
1456
|
|
1250
1457
|
cname = None
|
@@ -1259,11 +1466,11 @@ class CbrClient(Client):
|
|
1259
1466
|
|
1260
1467
|
form_params = {}
|
1261
1468
|
|
1262
|
-
|
1469
|
+
body = None
|
1263
1470
|
if 'body' in local_var_params:
|
1264
|
-
|
1471
|
+
body = local_var_params['body']
|
1265
1472
|
if isinstance(request, SdkStreamRequest):
|
1266
|
-
|
1473
|
+
body = request.get_file_stream()
|
1267
1474
|
|
1268
1475
|
response_headers = []
|
1269
1476
|
|
@@ -1272,20 +1479,16 @@ class CbrClient(Client):
|
|
1272
1479
|
|
1273
1480
|
auth_settings = []
|
1274
1481
|
|
1275
|
-
|
1276
|
-
|
1277
|
-
|
1278
|
-
|
1279
|
-
|
1280
|
-
|
1281
|
-
|
1282
|
-
|
1283
|
-
|
1284
|
-
|
1285
|
-
response_headers=response_headers,
|
1286
|
-
auth_settings=auth_settings,
|
1287
|
-
collection_formats=collection_formats,
|
1288
|
-
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
|
1289
1492
|
|
1290
1493
|
def list_agent(self, request):
|
1291
1494
|
"""查询客户端列表
|
@@ -1298,9 +1501,22 @@ class CbrClient(Client):
|
|
1298
1501
|
:type request: :class:`huaweicloudsdkcbr.v1.ListAgentRequest`
|
1299
1502
|
:rtype: :class:`huaweicloudsdkcbr.v1.ListAgentResponse`
|
1300
1503
|
"""
|
1301
|
-
|
1504
|
+
http_info = self._list_agent_http_info(request)
|
1505
|
+
return self._call_api(**http_info)
|
1506
|
+
|
1507
|
+
def list_agent_invoker(self, request):
|
1508
|
+
http_info = self._list_agent_http_info(request)
|
1509
|
+
return SyncInvoker(self, http_info)
|
1510
|
+
|
1511
|
+
@classmethod
|
1512
|
+
def _list_agent_http_info(cls, 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
|
+
}
|
1302
1519
|
|
1303
|
-
def _list_agent_with_http_info(self, request):
|
1304
1520
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
1305
1521
|
|
1306
1522
|
cname = None
|
@@ -1324,9 +1540,9 @@ class CbrClient(Client):
|
|
1324
1540
|
|
1325
1541
|
form_params = {}
|
1326
1542
|
|
1327
|
-
|
1543
|
+
body = None
|
1328
1544
|
if isinstance(request, SdkStreamRequest):
|
1329
|
-
|
1545
|
+
body = request.get_file_stream()
|
1330
1546
|
|
1331
1547
|
response_headers = []
|
1332
1548
|
|
@@ -1335,20 +1551,16 @@ class CbrClient(Client):
|
|
1335
1551
|
|
1336
1552
|
auth_settings = []
|
1337
1553
|
|
1338
|
-
|
1339
|
-
|
1340
|
-
|
1341
|
-
|
1342
|
-
|
1343
|
-
|
1344
|
-
|
1345
|
-
|
1346
|
-
|
1347
|
-
|
1348
|
-
response_headers=response_headers,
|
1349
|
-
auth_settings=auth_settings,
|
1350
|
-
collection_formats=collection_formats,
|
1351
|
-
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
|
1352
1564
|
|
1353
1565
|
def list_backups(self, request):
|
1354
1566
|
"""查询所有备份
|
@@ -1361,9 +1573,22 @@ class CbrClient(Client):
|
|
1361
1573
|
:type request: :class:`huaweicloudsdkcbr.v1.ListBackupsRequest`
|
1362
1574
|
:rtype: :class:`huaweicloudsdkcbr.v1.ListBackupsResponse`
|
1363
1575
|
"""
|
1364
|
-
|
1576
|
+
http_info = self._list_backups_http_info(request)
|
1577
|
+
return self._call_api(**http_info)
|
1578
|
+
|
1579
|
+
def list_backups_invoker(self, request):
|
1580
|
+
http_info = self._list_backups_http_info(request)
|
1581
|
+
return SyncInvoker(self, http_info)
|
1582
|
+
|
1583
|
+
@classmethod
|
1584
|
+
def _list_backups_http_info(cls, 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
|
+
}
|
1365
1591
|
|
1366
|
-
def _list_backups_with_http_info(self, request):
|
1367
1592
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
1368
1593
|
|
1369
1594
|
cname = None
|
@@ -1424,9 +1649,9 @@ class CbrClient(Client):
|
|
1424
1649
|
|
1425
1650
|
form_params = {}
|
1426
1651
|
|
1427
|
-
|
1652
|
+
body = None
|
1428
1653
|
if isinstance(request, SdkStreamRequest):
|
1429
|
-
|
1654
|
+
body = request.get_file_stream()
|
1430
1655
|
|
1431
1656
|
response_headers = []
|
1432
1657
|
|
@@ -1435,20 +1660,16 @@ class CbrClient(Client):
|
|
1435
1660
|
|
1436
1661
|
auth_settings = []
|
1437
1662
|
|
1438
|
-
|
1439
|
-
|
1440
|
-
|
1441
|
-
|
1442
|
-
|
1443
|
-
|
1444
|
-
|
1445
|
-
|
1446
|
-
|
1447
|
-
|
1448
|
-
response_headers=response_headers,
|
1449
|
-
auth_settings=auth_settings,
|
1450
|
-
collection_formats=collection_formats,
|
1451
|
-
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
|
1452
1673
|
|
1453
1674
|
def list_domain_projects(self, request):
|
1454
1675
|
"""查询租户项目列表
|
@@ -1461,9 +1682,22 @@ class CbrClient(Client):
|
|
1461
1682
|
:type request: :class:`huaweicloudsdkcbr.v1.ListDomainProjectsRequest`
|
1462
1683
|
:rtype: :class:`huaweicloudsdkcbr.v1.ListDomainProjectsResponse`
|
1463
1684
|
"""
|
1464
|
-
|
1685
|
+
http_info = self._list_domain_projects_http_info(request)
|
1686
|
+
return self._call_api(**http_info)
|
1687
|
+
|
1688
|
+
def list_domain_projects_invoker(self, request):
|
1689
|
+
http_info = self._list_domain_projects_http_info(request)
|
1690
|
+
return SyncInvoker(self, http_info)
|
1691
|
+
|
1692
|
+
@classmethod
|
1693
|
+
def _list_domain_projects_http_info(cls, 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
|
+
}
|
1465
1700
|
|
1466
|
-
def _list_domain_projects_with_http_info(self, request):
|
1467
1701
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
1468
1702
|
|
1469
1703
|
cname = None
|
@@ -1480,9 +1714,9 @@ class CbrClient(Client):
|
|
1480
1714
|
|
1481
1715
|
form_params = {}
|
1482
1716
|
|
1483
|
-
|
1717
|
+
body = None
|
1484
1718
|
if isinstance(request, SdkStreamRequest):
|
1485
|
-
|
1719
|
+
body = request.get_file_stream()
|
1486
1720
|
|
1487
1721
|
response_headers = []
|
1488
1722
|
|
@@ -1491,20 +1725,16 @@ class CbrClient(Client):
|
|
1491
1725
|
|
1492
1726
|
auth_settings = []
|
1493
1727
|
|
1494
|
-
|
1495
|
-
|
1496
|
-
|
1497
|
-
|
1498
|
-
|
1499
|
-
|
1500
|
-
|
1501
|
-
|
1502
|
-
|
1503
|
-
|
1504
|
-
response_headers=response_headers,
|
1505
|
-
auth_settings=auth_settings,
|
1506
|
-
collection_formats=collection_formats,
|
1507
|
-
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
|
1508
1738
|
|
1509
1739
|
def list_external_vault(self, request):
|
1510
1740
|
"""查询其他区域存储库列表
|
@@ -1517,9 +1747,22 @@ class CbrClient(Client):
|
|
1517
1747
|
:type request: :class:`huaweicloudsdkcbr.v1.ListExternalVaultRequest`
|
1518
1748
|
:rtype: :class:`huaweicloudsdkcbr.v1.ListExternalVaultResponse`
|
1519
1749
|
"""
|
1520
|
-
|
1750
|
+
http_info = self._list_external_vault_http_info(request)
|
1751
|
+
return self._call_api(**http_info)
|
1752
|
+
|
1753
|
+
def list_external_vault_invoker(self, request):
|
1754
|
+
http_info = self._list_external_vault_http_info(request)
|
1755
|
+
return SyncInvoker(self, http_info)
|
1756
|
+
|
1757
|
+
@classmethod
|
1758
|
+
def _list_external_vault_http_info(cls, 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
|
+
}
|
1521
1765
|
|
1522
|
-
def _list_external_vault_with_http_info(self, request):
|
1523
1766
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
1524
1767
|
|
1525
1768
|
cname = None
|
@@ -1550,9 +1793,9 @@ class CbrClient(Client):
|
|
1550
1793
|
|
1551
1794
|
form_params = {}
|
1552
1795
|
|
1553
|
-
|
1796
|
+
body = None
|
1554
1797
|
if isinstance(request, SdkStreamRequest):
|
1555
|
-
|
1798
|
+
body = request.get_file_stream()
|
1556
1799
|
|
1557
1800
|
response_headers = []
|
1558
1801
|
|
@@ -1561,20 +1804,16 @@ class CbrClient(Client):
|
|
1561
1804
|
|
1562
1805
|
auth_settings = []
|
1563
1806
|
|
1564
|
-
|
1565
|
-
|
1566
|
-
|
1567
|
-
|
1568
|
-
|
1569
|
-
|
1570
|
-
|
1571
|
-
|
1572
|
-
|
1573
|
-
|
1574
|
-
response_headers=response_headers,
|
1575
|
-
auth_settings=auth_settings,
|
1576
|
-
collection_formats=collection_formats,
|
1577
|
-
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
|
1578
1817
|
|
1579
1818
|
def list_op_logs(self, request):
|
1580
1819
|
"""查询任务列表
|
@@ -1587,9 +1826,22 @@ class CbrClient(Client):
|
|
1587
1826
|
:type request: :class:`huaweicloudsdkcbr.v1.ListOpLogsRequest`
|
1588
1827
|
:rtype: :class:`huaweicloudsdkcbr.v1.ListOpLogsResponse`
|
1589
1828
|
"""
|
1590
|
-
|
1829
|
+
http_info = self._list_op_logs_http_info(request)
|
1830
|
+
return self._call_api(**http_info)
|
1831
|
+
|
1832
|
+
def list_op_logs_invoker(self, request):
|
1833
|
+
http_info = self._list_op_logs_http_info(request)
|
1834
|
+
return SyncInvoker(self, http_info)
|
1835
|
+
|
1836
|
+
@classmethod
|
1837
|
+
def _list_op_logs_http_info(cls, 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
|
+
}
|
1591
1844
|
|
1592
|
-
def _list_op_logs_with_http_info(self, request):
|
1593
1845
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
1594
1846
|
|
1595
1847
|
cname = None
|
@@ -1628,9 +1880,9 @@ class CbrClient(Client):
|
|
1628
1880
|
|
1629
1881
|
form_params = {}
|
1630
1882
|
|
1631
|
-
|
1883
|
+
body = None
|
1632
1884
|
if isinstance(request, SdkStreamRequest):
|
1633
|
-
|
1885
|
+
body = request.get_file_stream()
|
1634
1886
|
|
1635
1887
|
response_headers = []
|
1636
1888
|
|
@@ -1639,20 +1891,16 @@ class CbrClient(Client):
|
|
1639
1891
|
|
1640
1892
|
auth_settings = []
|
1641
1893
|
|
1642
|
-
|
1643
|
-
|
1644
|
-
|
1645
|
-
|
1646
|
-
|
1647
|
-
|
1648
|
-
|
1649
|
-
|
1650
|
-
|
1651
|
-
|
1652
|
-
response_headers=response_headers,
|
1653
|
-
auth_settings=auth_settings,
|
1654
|
-
collection_formats=collection_formats,
|
1655
|
-
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
|
1656
1904
|
|
1657
1905
|
def list_policies(self, request):
|
1658
1906
|
"""查询策略列表
|
@@ -1665,9 +1913,22 @@ class CbrClient(Client):
|
|
1665
1913
|
:type request: :class:`huaweicloudsdkcbr.v1.ListPoliciesRequest`
|
1666
1914
|
:rtype: :class:`huaweicloudsdkcbr.v1.ListPoliciesResponse`
|
1667
1915
|
"""
|
1668
|
-
|
1916
|
+
http_info = self._list_policies_http_info(request)
|
1917
|
+
return self._call_api(**http_info)
|
1918
|
+
|
1919
|
+
def list_policies_invoker(self, request):
|
1920
|
+
http_info = self._list_policies_http_info(request)
|
1921
|
+
return SyncInvoker(self, http_info)
|
1922
|
+
|
1923
|
+
@classmethod
|
1924
|
+
def _list_policies_http_info(cls, 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
|
+
}
|
1669
1931
|
|
1670
|
-
def _list_policies_with_http_info(self, request):
|
1671
1932
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
1672
1933
|
|
1673
1934
|
cname = None
|
@@ -1686,9 +1947,9 @@ class CbrClient(Client):
|
|
1686
1947
|
|
1687
1948
|
form_params = {}
|
1688
1949
|
|
1689
|
-
|
1950
|
+
body = None
|
1690
1951
|
if isinstance(request, SdkStreamRequest):
|
1691
|
-
|
1952
|
+
body = request.get_file_stream()
|
1692
1953
|
|
1693
1954
|
response_headers = []
|
1694
1955
|
|
@@ -1697,20 +1958,16 @@ class CbrClient(Client):
|
|
1697
1958
|
|
1698
1959
|
auth_settings = []
|
1699
1960
|
|
1700
|
-
|
1701
|
-
|
1702
|
-
|
1703
|
-
|
1704
|
-
|
1705
|
-
|
1706
|
-
|
1707
|
-
|
1708
|
-
|
1709
|
-
|
1710
|
-
response_headers=response_headers,
|
1711
|
-
auth_settings=auth_settings,
|
1712
|
-
collection_formats=collection_formats,
|
1713
|
-
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
|
1714
1971
|
|
1715
1972
|
def list_projects(self, request):
|
1716
1973
|
"""查询租户的项目信息
|
@@ -1723,9 +1980,22 @@ class CbrClient(Client):
|
|
1723
1980
|
:type request: :class:`huaweicloudsdkcbr.v1.ListProjectsRequest`
|
1724
1981
|
:rtype: :class:`huaweicloudsdkcbr.v1.ListProjectsResponse`
|
1725
1982
|
"""
|
1726
|
-
|
1983
|
+
http_info = self._list_projects_http_info(request)
|
1984
|
+
return self._call_api(**http_info)
|
1985
|
+
|
1986
|
+
def list_projects_invoker(self, request):
|
1987
|
+
http_info = self._list_projects_http_info(request)
|
1988
|
+
return SyncInvoker(self, http_info)
|
1989
|
+
|
1990
|
+
@classmethod
|
1991
|
+
def _list_projects_http_info(cls, request):
|
1992
|
+
http_info = {
|
1993
|
+
"method": "GET",
|
1994
|
+
"resource_path": "/v3/region-projects",
|
1995
|
+
"request_type": request.__class__.__name__,
|
1996
|
+
"response_type": "ListProjectsResponse"
|
1997
|
+
}
|
1727
1998
|
|
1728
|
-
def _list_projects_with_http_info(self, request):
|
1729
1999
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
1730
2000
|
|
1731
2001
|
cname = None
|
@@ -1740,9 +2010,9 @@ class CbrClient(Client):
|
|
1740
2010
|
|
1741
2011
|
form_params = {}
|
1742
2012
|
|
1743
|
-
|
2013
|
+
body = None
|
1744
2014
|
if isinstance(request, SdkStreamRequest):
|
1745
|
-
|
2015
|
+
body = request.get_file_stream()
|
1746
2016
|
|
1747
2017
|
response_headers = []
|
1748
2018
|
|
@@ -1751,20 +2021,16 @@ class CbrClient(Client):
|
|
1751
2021
|
|
1752
2022
|
auth_settings = []
|
1753
2023
|
|
1754
|
-
|
1755
|
-
|
1756
|
-
|
1757
|
-
|
1758
|
-
|
1759
|
-
|
1760
|
-
|
1761
|
-
|
1762
|
-
|
1763
|
-
|
1764
|
-
response_headers=response_headers,
|
1765
|
-
auth_settings=auth_settings,
|
1766
|
-
collection_formats=collection_formats,
|
1767
|
-
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
|
1768
2034
|
|
1769
2035
|
def list_protectable(self, request):
|
1770
2036
|
"""查询可保护资源
|
@@ -1777,9 +2043,22 @@ class CbrClient(Client):
|
|
1777
2043
|
:type request: :class:`huaweicloudsdkcbr.v1.ListProtectableRequest`
|
1778
2044
|
:rtype: :class:`huaweicloudsdkcbr.v1.ListProtectableResponse`
|
1779
2045
|
"""
|
1780
|
-
|
2046
|
+
http_info = self._list_protectable_http_info(request)
|
2047
|
+
return self._call_api(**http_info)
|
2048
|
+
|
2049
|
+
def list_protectable_invoker(self, request):
|
2050
|
+
http_info = self._list_protectable_http_info(request)
|
2051
|
+
return SyncInvoker(self, http_info)
|
2052
|
+
|
2053
|
+
@classmethod
|
2054
|
+
def _list_protectable_http_info(cls, 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
|
+
}
|
1781
2061
|
|
1782
|
-
def _list_protectable_with_http_info(self, request):
|
1783
2062
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
1784
2063
|
|
1785
2064
|
cname = None
|
@@ -1810,9 +2089,9 @@ class CbrClient(Client):
|
|
1810
2089
|
|
1811
2090
|
form_params = {}
|
1812
2091
|
|
1813
|
-
|
2092
|
+
body = None
|
1814
2093
|
if isinstance(request, SdkStreamRequest):
|
1815
|
-
|
2094
|
+
body = request.get_file_stream()
|
1816
2095
|
|
1817
2096
|
response_headers = []
|
1818
2097
|
|
@@ -1821,20 +2100,16 @@ class CbrClient(Client):
|
|
1821
2100
|
|
1822
2101
|
auth_settings = []
|
1823
2102
|
|
1824
|
-
|
1825
|
-
|
1826
|
-
|
1827
|
-
|
1828
|
-
|
1829
|
-
|
1830
|
-
|
1831
|
-
|
1832
|
-
|
1833
|
-
|
1834
|
-
response_headers=response_headers,
|
1835
|
-
auth_settings=auth_settings,
|
1836
|
-
collection_formats=collection_formats,
|
1837
|
-
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
|
1838
2113
|
|
1839
2114
|
def list_vault(self, request):
|
1840
2115
|
"""查询存储库列表
|
@@ -1847,9 +2122,22 @@ class CbrClient(Client):
|
|
1847
2122
|
:type request: :class:`huaweicloudsdkcbr.v1.ListVaultRequest`
|
1848
2123
|
:rtype: :class:`huaweicloudsdkcbr.v1.ListVaultResponse`
|
1849
2124
|
"""
|
1850
|
-
|
2125
|
+
http_info = self._list_vault_http_info(request)
|
2126
|
+
return self._call_api(**http_info)
|
2127
|
+
|
2128
|
+
def list_vault_invoker(self, request):
|
2129
|
+
http_info = self._list_vault_http_info(request)
|
2130
|
+
return SyncInvoker(self, http_info)
|
2131
|
+
|
2132
|
+
@classmethod
|
2133
|
+
def _list_vault_http_info(cls, 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
|
+
}
|
1851
2140
|
|
1852
|
-
def _list_vault_with_http_info(self, request):
|
1853
2141
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
1854
2142
|
|
1855
2143
|
cname = None
|
@@ -1887,9 +2175,9 @@ class CbrClient(Client):
|
|
1887
2175
|
|
1888
2176
|
form_params = {}
|
1889
2177
|
|
1890
|
-
|
2178
|
+
body = None
|
1891
2179
|
if isinstance(request, SdkStreamRequest):
|
1892
|
-
|
2180
|
+
body = request.get_file_stream()
|
1893
2181
|
|
1894
2182
|
response_headers = []
|
1895
2183
|
|
@@ -1898,20 +2186,16 @@ class CbrClient(Client):
|
|
1898
2186
|
|
1899
2187
|
auth_settings = []
|
1900
2188
|
|
1901
|
-
|
1902
|
-
|
1903
|
-
|
1904
|
-
|
1905
|
-
|
1906
|
-
|
1907
|
-
|
1908
|
-
|
1909
|
-
|
1910
|
-
|
1911
|
-
response_headers=response_headers,
|
1912
|
-
auth_settings=auth_settings,
|
1913
|
-
collection_formats=collection_formats,
|
1914
|
-
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
|
1915
2199
|
|
1916
2200
|
def migrate_domain(self, request):
|
1917
2201
|
"""租户迁移
|
@@ -1924,9 +2208,22 @@ class CbrClient(Client):
|
|
1924
2208
|
:type request: :class:`huaweicloudsdkcbr.v1.MigrateDomainRequest`
|
1925
2209
|
:rtype: :class:`huaweicloudsdkcbr.v1.MigrateDomainResponse`
|
1926
2210
|
"""
|
1927
|
-
|
2211
|
+
http_info = self._migrate_domain_http_info(request)
|
2212
|
+
return self._call_api(**http_info)
|
2213
|
+
|
2214
|
+
def migrate_domain_invoker(self, request):
|
2215
|
+
http_info = self._migrate_domain_http_info(request)
|
2216
|
+
return SyncInvoker(self, http_info)
|
2217
|
+
|
2218
|
+
@classmethod
|
2219
|
+
def _migrate_domain_http_info(cls, request):
|
2220
|
+
http_info = {
|
2221
|
+
"method": "POST",
|
2222
|
+
"resource_path": "/v3/migrates",
|
2223
|
+
"request_type": request.__class__.__name__,
|
2224
|
+
"response_type": "MigrateDomainResponse"
|
2225
|
+
}
|
1928
2226
|
|
1929
|
-
def _migrate_domain_with_http_info(self, request):
|
1930
2227
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
1931
2228
|
|
1932
2229
|
cname = None
|
@@ -1941,11 +2238,11 @@ class CbrClient(Client):
|
|
1941
2238
|
|
1942
2239
|
form_params = {}
|
1943
2240
|
|
1944
|
-
|
2241
|
+
body = None
|
1945
2242
|
if 'body' in local_var_params:
|
1946
|
-
|
2243
|
+
body = local_var_params['body']
|
1947
2244
|
if isinstance(request, SdkStreamRequest):
|
1948
|
-
|
2245
|
+
body = request.get_file_stream()
|
1949
2246
|
|
1950
2247
|
response_headers = []
|
1951
2248
|
|
@@ -1954,20 +2251,16 @@ class CbrClient(Client):
|
|
1954
2251
|
|
1955
2252
|
auth_settings = []
|
1956
2253
|
|
1957
|
-
|
1958
|
-
|
1959
|
-
|
1960
|
-
|
1961
|
-
|
1962
|
-
|
1963
|
-
|
1964
|
-
|
1965
|
-
|
1966
|
-
|
1967
|
-
response_headers=response_headers,
|
1968
|
-
auth_settings=auth_settings,
|
1969
|
-
collection_formats=collection_formats,
|
1970
|
-
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
|
1971
2264
|
|
1972
2265
|
def migrate_vault_resource(self, request):
|
1973
2266
|
"""迁移资源
|
@@ -1980,9 +2273,22 @@ class CbrClient(Client):
|
|
1980
2273
|
:type request: :class:`huaweicloudsdkcbr.v1.MigrateVaultResourceRequest`
|
1981
2274
|
:rtype: :class:`huaweicloudsdkcbr.v1.MigrateVaultResourceResponse`
|
1982
2275
|
"""
|
1983
|
-
|
2276
|
+
http_info = self._migrate_vault_resource_http_info(request)
|
2277
|
+
return self._call_api(**http_info)
|
2278
|
+
|
2279
|
+
def migrate_vault_resource_invoker(self, request):
|
2280
|
+
http_info = self._migrate_vault_resource_http_info(request)
|
2281
|
+
return SyncInvoker(self, http_info)
|
2282
|
+
|
2283
|
+
@classmethod
|
2284
|
+
def _migrate_vault_resource_http_info(cls, 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
|
+
}
|
1984
2291
|
|
1985
|
-
def _migrate_vault_resource_with_http_info(self, request):
|
1986
2292
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
1987
2293
|
|
1988
2294
|
cname = None
|
@@ -1999,11 +2305,11 @@ class CbrClient(Client):
|
|
1999
2305
|
|
2000
2306
|
form_params = {}
|
2001
2307
|
|
2002
|
-
|
2308
|
+
body = None
|
2003
2309
|
if 'body' in local_var_params:
|
2004
|
-
|
2310
|
+
body = local_var_params['body']
|
2005
2311
|
if isinstance(request, SdkStreamRequest):
|
2006
|
-
|
2312
|
+
body = request.get_file_stream()
|
2007
2313
|
|
2008
2314
|
response_headers = []
|
2009
2315
|
|
@@ -2012,20 +2318,16 @@ class CbrClient(Client):
|
|
2012
2318
|
|
2013
2319
|
auth_settings = []
|
2014
2320
|
|
2015
|
-
|
2016
|
-
|
2017
|
-
|
2018
|
-
|
2019
|
-
|
2020
|
-
|
2021
|
-
|
2022
|
-
|
2023
|
-
|
2024
|
-
|
2025
|
-
response_headers=response_headers,
|
2026
|
-
auth_settings=auth_settings,
|
2027
|
-
collection_formats=collection_formats,
|
2028
|
-
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
|
2029
2331
|
|
2030
2332
|
def register_agent(self, request):
|
2031
2333
|
"""注册客户端
|
@@ -2038,9 +2340,22 @@ class CbrClient(Client):
|
|
2038
2340
|
:type request: :class:`huaweicloudsdkcbr.v1.RegisterAgentRequest`
|
2039
2341
|
:rtype: :class:`huaweicloudsdkcbr.v1.RegisterAgentResponse`
|
2040
2342
|
"""
|
2041
|
-
|
2343
|
+
http_info = self._register_agent_http_info(request)
|
2344
|
+
return self._call_api(**http_info)
|
2345
|
+
|
2346
|
+
def register_agent_invoker(self, request):
|
2347
|
+
http_info = self._register_agent_http_info(request)
|
2348
|
+
return SyncInvoker(self, http_info)
|
2349
|
+
|
2350
|
+
@classmethod
|
2351
|
+
def _register_agent_http_info(cls, 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
|
+
}
|
2042
2358
|
|
2043
|
-
def _register_agent_with_http_info(self, request):
|
2044
2359
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
2045
2360
|
|
2046
2361
|
cname = None
|
@@ -2055,11 +2370,11 @@ class CbrClient(Client):
|
|
2055
2370
|
|
2056
2371
|
form_params = {}
|
2057
2372
|
|
2058
|
-
|
2373
|
+
body = None
|
2059
2374
|
if 'body' in local_var_params:
|
2060
|
-
|
2375
|
+
body = local_var_params['body']
|
2061
2376
|
if isinstance(request, SdkStreamRequest):
|
2062
|
-
|
2377
|
+
body = request.get_file_stream()
|
2063
2378
|
|
2064
2379
|
response_headers = []
|
2065
2380
|
|
@@ -2068,20 +2383,16 @@ class CbrClient(Client):
|
|
2068
2383
|
|
2069
2384
|
auth_settings = []
|
2070
2385
|
|
2071
|
-
|
2072
|
-
|
2073
|
-
|
2074
|
-
|
2075
|
-
|
2076
|
-
|
2077
|
-
|
2078
|
-
|
2079
|
-
|
2080
|
-
|
2081
|
-
response_headers=response_headers,
|
2082
|
-
auth_settings=auth_settings,
|
2083
|
-
collection_formats=collection_formats,
|
2084
|
-
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
|
2085
2396
|
|
2086
2397
|
def remove_agent_path(self, request):
|
2087
2398
|
"""移除备份路径
|
@@ -2094,9 +2405,22 @@ class CbrClient(Client):
|
|
2094
2405
|
:type request: :class:`huaweicloudsdkcbr.v1.RemoveAgentPathRequest`
|
2095
2406
|
:rtype: :class:`huaweicloudsdkcbr.v1.RemoveAgentPathResponse`
|
2096
2407
|
"""
|
2097
|
-
|
2408
|
+
http_info = self._remove_agent_path_http_info(request)
|
2409
|
+
return self._call_api(**http_info)
|
2410
|
+
|
2411
|
+
def remove_agent_path_invoker(self, request):
|
2412
|
+
http_info = self._remove_agent_path_http_info(request)
|
2413
|
+
return SyncInvoker(self, http_info)
|
2414
|
+
|
2415
|
+
@classmethod
|
2416
|
+
def _remove_agent_path_http_info(cls, 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
|
+
}
|
2098
2423
|
|
2099
|
-
def _remove_agent_path_with_http_info(self, request):
|
2100
2424
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
2101
2425
|
|
2102
2426
|
cname = None
|
@@ -2113,11 +2437,11 @@ class CbrClient(Client):
|
|
2113
2437
|
|
2114
2438
|
form_params = {}
|
2115
2439
|
|
2116
|
-
|
2440
|
+
body = None
|
2117
2441
|
if 'body' in local_var_params:
|
2118
|
-
|
2442
|
+
body = local_var_params['body']
|
2119
2443
|
if isinstance(request, SdkStreamRequest):
|
2120
|
-
|
2444
|
+
body = request.get_file_stream()
|
2121
2445
|
|
2122
2446
|
response_headers = []
|
2123
2447
|
|
@@ -2126,20 +2450,16 @@ class CbrClient(Client):
|
|
2126
2450
|
|
2127
2451
|
auth_settings = []
|
2128
2452
|
|
2129
|
-
|
2130
|
-
|
2131
|
-
|
2132
|
-
|
2133
|
-
|
2134
|
-
|
2135
|
-
|
2136
|
-
|
2137
|
-
|
2138
|
-
|
2139
|
-
response_headers=response_headers,
|
2140
|
-
auth_settings=auth_settings,
|
2141
|
-
collection_formats=collection_formats,
|
2142
|
-
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
|
2143
2463
|
|
2144
2464
|
def remove_vault_resource(self, request):
|
2145
2465
|
"""移除资源
|
@@ -2152,9 +2472,22 @@ class CbrClient(Client):
|
|
2152
2472
|
:type request: :class:`huaweicloudsdkcbr.v1.RemoveVaultResourceRequest`
|
2153
2473
|
:rtype: :class:`huaweicloudsdkcbr.v1.RemoveVaultResourceResponse`
|
2154
2474
|
"""
|
2155
|
-
|
2475
|
+
http_info = self._remove_vault_resource_http_info(request)
|
2476
|
+
return self._call_api(**http_info)
|
2477
|
+
|
2478
|
+
def remove_vault_resource_invoker(self, request):
|
2479
|
+
http_info = self._remove_vault_resource_http_info(request)
|
2480
|
+
return SyncInvoker(self, http_info)
|
2481
|
+
|
2482
|
+
@classmethod
|
2483
|
+
def _remove_vault_resource_http_info(cls, 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
|
+
}
|
2156
2490
|
|
2157
|
-
def _remove_vault_resource_with_http_info(self, request):
|
2158
2491
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
2159
2492
|
|
2160
2493
|
cname = None
|
@@ -2171,11 +2504,11 @@ class CbrClient(Client):
|
|
2171
2504
|
|
2172
2505
|
form_params = {}
|
2173
2506
|
|
2174
|
-
|
2507
|
+
body = None
|
2175
2508
|
if 'body' in local_var_params:
|
2176
|
-
|
2509
|
+
body = local_var_params['body']
|
2177
2510
|
if isinstance(request, SdkStreamRequest):
|
2178
|
-
|
2511
|
+
body = request.get_file_stream()
|
2179
2512
|
|
2180
2513
|
response_headers = []
|
2181
2514
|
|
@@ -2184,20 +2517,16 @@ class CbrClient(Client):
|
|
2184
2517
|
|
2185
2518
|
auth_settings = []
|
2186
2519
|
|
2187
|
-
|
2188
|
-
|
2189
|
-
|
2190
|
-
|
2191
|
-
|
2192
|
-
|
2193
|
-
|
2194
|
-
|
2195
|
-
|
2196
|
-
|
2197
|
-
response_headers=response_headers,
|
2198
|
-
auth_settings=auth_settings,
|
2199
|
-
collection_formats=collection_formats,
|
2200
|
-
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
|
2201
2530
|
|
2202
2531
|
def restore_backup(self, request):
|
2203
2532
|
"""备份恢复
|
@@ -2210,9 +2539,22 @@ class CbrClient(Client):
|
|
2210
2539
|
:type request: :class:`huaweicloudsdkcbr.v1.RestoreBackupRequest`
|
2211
2540
|
:rtype: :class:`huaweicloudsdkcbr.v1.RestoreBackupResponse`
|
2212
2541
|
"""
|
2213
|
-
|
2542
|
+
http_info = self._restore_backup_http_info(request)
|
2543
|
+
return self._call_api(**http_info)
|
2544
|
+
|
2545
|
+
def restore_backup_invoker(self, request):
|
2546
|
+
http_info = self._restore_backup_http_info(request)
|
2547
|
+
return SyncInvoker(self, http_info)
|
2548
|
+
|
2549
|
+
@classmethod
|
2550
|
+
def _restore_backup_http_info(cls, 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
|
+
}
|
2214
2557
|
|
2215
|
-
def _restore_backup_with_http_info(self, request):
|
2216
2558
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
2217
2559
|
|
2218
2560
|
cname = None
|
@@ -2229,11 +2571,11 @@ class CbrClient(Client):
|
|
2229
2571
|
|
2230
2572
|
form_params = {}
|
2231
2573
|
|
2232
|
-
|
2574
|
+
body = None
|
2233
2575
|
if 'body' in local_var_params:
|
2234
|
-
|
2576
|
+
body = local_var_params['body']
|
2235
2577
|
if isinstance(request, SdkStreamRequest):
|
2236
|
-
|
2578
|
+
body = request.get_file_stream()
|
2237
2579
|
|
2238
2580
|
response_headers = []
|
2239
2581
|
|
@@ -2242,20 +2584,16 @@ class CbrClient(Client):
|
|
2242
2584
|
|
2243
2585
|
auth_settings = []
|
2244
2586
|
|
2245
|
-
|
2246
|
-
|
2247
|
-
|
2248
|
-
|
2249
|
-
|
2250
|
-
|
2251
|
-
|
2252
|
-
|
2253
|
-
|
2254
|
-
|
2255
|
-
response_headers=response_headers,
|
2256
|
-
auth_settings=auth_settings,
|
2257
|
-
collection_formats=collection_formats,
|
2258
|
-
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
|
2259
2597
|
|
2260
2598
|
def set_vault_resource(self, request):
|
2261
2599
|
"""设置存储库资源
|
@@ -2268,9 +2606,22 @@ class CbrClient(Client):
|
|
2268
2606
|
:type request: :class:`huaweicloudsdkcbr.v1.SetVaultResourceRequest`
|
2269
2607
|
:rtype: :class:`huaweicloudsdkcbr.v1.SetVaultResourceResponse`
|
2270
2608
|
"""
|
2271
|
-
|
2609
|
+
http_info = self._set_vault_resource_http_info(request)
|
2610
|
+
return self._call_api(**http_info)
|
2611
|
+
|
2612
|
+
def set_vault_resource_invoker(self, request):
|
2613
|
+
http_info = self._set_vault_resource_http_info(request)
|
2614
|
+
return SyncInvoker(self, http_info)
|
2615
|
+
|
2616
|
+
@classmethod
|
2617
|
+
def _set_vault_resource_http_info(cls, 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
|
+
}
|
2272
2624
|
|
2273
|
-
def _set_vault_resource_with_http_info(self, request):
|
2274
2625
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
2275
2626
|
|
2276
2627
|
cname = None
|
@@ -2287,11 +2638,11 @@ class CbrClient(Client):
|
|
2287
2638
|
|
2288
2639
|
form_params = {}
|
2289
2640
|
|
2290
|
-
|
2641
|
+
body = None
|
2291
2642
|
if 'body' in local_var_params:
|
2292
|
-
|
2643
|
+
body = local_var_params['body']
|
2293
2644
|
if isinstance(request, SdkStreamRequest):
|
2294
|
-
|
2645
|
+
body = request.get_file_stream()
|
2295
2646
|
|
2296
2647
|
response_headers = []
|
2297
2648
|
|
@@ -2300,20 +2651,16 @@ class CbrClient(Client):
|
|
2300
2651
|
|
2301
2652
|
auth_settings = []
|
2302
2653
|
|
2303
|
-
|
2304
|
-
|
2305
|
-
|
2306
|
-
|
2307
|
-
|
2308
|
-
|
2309
|
-
|
2310
|
-
|
2311
|
-
|
2312
|
-
|
2313
|
-
response_headers=response_headers,
|
2314
|
-
auth_settings=auth_settings,
|
2315
|
-
collection_formats=collection_formats,
|
2316
|
-
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
|
2317
2664
|
|
2318
2665
|
def show_agent(self, request):
|
2319
2666
|
"""查询指定客户端
|
@@ -2326,9 +2673,22 @@ class CbrClient(Client):
|
|
2326
2673
|
:type request: :class:`huaweicloudsdkcbr.v1.ShowAgentRequest`
|
2327
2674
|
:rtype: :class:`huaweicloudsdkcbr.v1.ShowAgentResponse`
|
2328
2675
|
"""
|
2329
|
-
|
2676
|
+
http_info = self._show_agent_http_info(request)
|
2677
|
+
return self._call_api(**http_info)
|
2678
|
+
|
2679
|
+
def show_agent_invoker(self, request):
|
2680
|
+
http_info = self._show_agent_http_info(request)
|
2681
|
+
return SyncInvoker(self, http_info)
|
2682
|
+
|
2683
|
+
@classmethod
|
2684
|
+
def _show_agent_http_info(cls, 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
|
+
}
|
2330
2691
|
|
2331
|
-
def _show_agent_with_http_info(self, request):
|
2332
2692
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
2333
2693
|
|
2334
2694
|
cname = None
|
@@ -2345,9 +2705,9 @@ class CbrClient(Client):
|
|
2345
2705
|
|
2346
2706
|
form_params = {}
|
2347
2707
|
|
2348
|
-
|
2708
|
+
body = None
|
2349
2709
|
if isinstance(request, SdkStreamRequest):
|
2350
|
-
|
2710
|
+
body = request.get_file_stream()
|
2351
2711
|
|
2352
2712
|
response_headers = []
|
2353
2713
|
|
@@ -2356,20 +2716,16 @@ class CbrClient(Client):
|
|
2356
2716
|
|
2357
2717
|
auth_settings = []
|
2358
2718
|
|
2359
|
-
|
2360
|
-
|
2361
|
-
|
2362
|
-
|
2363
|
-
|
2364
|
-
|
2365
|
-
|
2366
|
-
|
2367
|
-
|
2368
|
-
|
2369
|
-
response_headers=response_headers,
|
2370
|
-
auth_settings=auth_settings,
|
2371
|
-
collection_formats=collection_formats,
|
2372
|
-
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
|
2373
2729
|
|
2374
2730
|
def show_backup(self, request):
|
2375
2731
|
"""查询指定备份
|
@@ -2382,9 +2738,22 @@ class CbrClient(Client):
|
|
2382
2738
|
:type request: :class:`huaweicloudsdkcbr.v1.ShowBackupRequest`
|
2383
2739
|
:rtype: :class:`huaweicloudsdkcbr.v1.ShowBackupResponse`
|
2384
2740
|
"""
|
2385
|
-
|
2741
|
+
http_info = self._show_backup_http_info(request)
|
2742
|
+
return self._call_api(**http_info)
|
2743
|
+
|
2744
|
+
def show_backup_invoker(self, request):
|
2745
|
+
http_info = self._show_backup_http_info(request)
|
2746
|
+
return SyncInvoker(self, http_info)
|
2747
|
+
|
2748
|
+
@classmethod
|
2749
|
+
def _show_backup_http_info(cls, 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
|
+
}
|
2386
2756
|
|
2387
|
-
def _show_backup_with_http_info(self, request):
|
2388
2757
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
2389
2758
|
|
2390
2759
|
cname = None
|
@@ -2401,9 +2770,9 @@ class CbrClient(Client):
|
|
2401
2770
|
|
2402
2771
|
form_params = {}
|
2403
2772
|
|
2404
|
-
|
2773
|
+
body = None
|
2405
2774
|
if isinstance(request, SdkStreamRequest):
|
2406
|
-
|
2775
|
+
body = request.get_file_stream()
|
2407
2776
|
|
2408
2777
|
response_headers = []
|
2409
2778
|
|
@@ -2412,20 +2781,16 @@ class CbrClient(Client):
|
|
2412
2781
|
|
2413
2782
|
auth_settings = []
|
2414
2783
|
|
2415
|
-
|
2416
|
-
|
2417
|
-
|
2418
|
-
|
2419
|
-
|
2420
|
-
|
2421
|
-
|
2422
|
-
|
2423
|
-
|
2424
|
-
|
2425
|
-
response_headers=response_headers,
|
2426
|
-
auth_settings=auth_settings,
|
2427
|
-
collection_formats=collection_formats,
|
2428
|
-
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
|
2429
2794
|
|
2430
2795
|
def show_checkpoint(self, request):
|
2431
2796
|
"""查询备份还原点
|
@@ -2438,9 +2803,22 @@ class CbrClient(Client):
|
|
2438
2803
|
:type request: :class:`huaweicloudsdkcbr.v1.ShowCheckpointRequest`
|
2439
2804
|
:rtype: :class:`huaweicloudsdkcbr.v1.ShowCheckpointResponse`
|
2440
2805
|
"""
|
2441
|
-
|
2806
|
+
http_info = self._show_checkpoint_http_info(request)
|
2807
|
+
return self._call_api(**http_info)
|
2808
|
+
|
2809
|
+
def show_checkpoint_invoker(self, request):
|
2810
|
+
http_info = self._show_checkpoint_http_info(request)
|
2811
|
+
return SyncInvoker(self, http_info)
|
2812
|
+
|
2813
|
+
@classmethod
|
2814
|
+
def _show_checkpoint_http_info(cls, 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
|
+
}
|
2442
2821
|
|
2443
|
-
def _show_checkpoint_with_http_info(self, request):
|
2444
2822
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
2445
2823
|
|
2446
2824
|
cname = None
|
@@ -2457,9 +2835,9 @@ class CbrClient(Client):
|
|
2457
2835
|
|
2458
2836
|
form_params = {}
|
2459
2837
|
|
2460
|
-
|
2838
|
+
body = None
|
2461
2839
|
if isinstance(request, SdkStreamRequest):
|
2462
|
-
|
2840
|
+
body = request.get_file_stream()
|
2463
2841
|
|
2464
2842
|
response_headers = []
|
2465
2843
|
|
@@ -2468,20 +2846,16 @@ class CbrClient(Client):
|
|
2468
2846
|
|
2469
2847
|
auth_settings = []
|
2470
2848
|
|
2471
|
-
|
2472
|
-
|
2473
|
-
|
2474
|
-
|
2475
|
-
|
2476
|
-
|
2477
|
-
|
2478
|
-
|
2479
|
-
|
2480
|
-
|
2481
|
-
response_headers=response_headers,
|
2482
|
-
auth_settings=auth_settings,
|
2483
|
-
collection_formats=collection_formats,
|
2484
|
-
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
|
2485
2859
|
|
2486
2860
|
def show_domain(self, request):
|
2487
2861
|
"""查询租户信息
|
@@ -2494,9 +2868,22 @@ class CbrClient(Client):
|
|
2494
2868
|
:type request: :class:`huaweicloudsdkcbr.v1.ShowDomainRequest`
|
2495
2869
|
:rtype: :class:`huaweicloudsdkcbr.v1.ShowDomainResponse`
|
2496
2870
|
"""
|
2497
|
-
|
2871
|
+
http_info = self._show_domain_http_info(request)
|
2872
|
+
return self._call_api(**http_info)
|
2873
|
+
|
2874
|
+
def show_domain_invoker(self, request):
|
2875
|
+
http_info = self._show_domain_http_info(request)
|
2876
|
+
return SyncInvoker(self, http_info)
|
2877
|
+
|
2878
|
+
@classmethod
|
2879
|
+
def _show_domain_http_info(cls, 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
|
+
}
|
2498
2886
|
|
2499
|
-
def _show_domain_with_http_info(self, request):
|
2500
2887
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
2501
2888
|
|
2502
2889
|
cname = None
|
@@ -2513,9 +2900,9 @@ class CbrClient(Client):
|
|
2513
2900
|
|
2514
2901
|
form_params = {}
|
2515
2902
|
|
2516
|
-
|
2903
|
+
body = None
|
2517
2904
|
if isinstance(request, SdkStreamRequest):
|
2518
|
-
|
2905
|
+
body = request.get_file_stream()
|
2519
2906
|
|
2520
2907
|
response_headers = []
|
2521
2908
|
|
@@ -2524,20 +2911,16 @@ class CbrClient(Client):
|
|
2524
2911
|
|
2525
2912
|
auth_settings = []
|
2526
2913
|
|
2527
|
-
|
2528
|
-
|
2529
|
-
|
2530
|
-
|
2531
|
-
|
2532
|
-
|
2533
|
-
|
2534
|
-
|
2535
|
-
|
2536
|
-
|
2537
|
-
response_headers=response_headers,
|
2538
|
-
auth_settings=auth_settings,
|
2539
|
-
collection_formats=collection_formats,
|
2540
|
-
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
|
2541
2924
|
|
2542
2925
|
def show_member_detail(self, request):
|
2543
2926
|
"""获取备份成员详情
|
@@ -2550,9 +2933,22 @@ class CbrClient(Client):
|
|
2550
2933
|
:type request: :class:`huaweicloudsdkcbr.v1.ShowMemberDetailRequest`
|
2551
2934
|
:rtype: :class:`huaweicloudsdkcbr.v1.ShowMemberDetailResponse`
|
2552
2935
|
"""
|
2553
|
-
|
2936
|
+
http_info = self._show_member_detail_http_info(request)
|
2937
|
+
return self._call_api(**http_info)
|
2938
|
+
|
2939
|
+
def show_member_detail_invoker(self, request):
|
2940
|
+
http_info = self._show_member_detail_http_info(request)
|
2941
|
+
return SyncInvoker(self, http_info)
|
2942
|
+
|
2943
|
+
@classmethod
|
2944
|
+
def _show_member_detail_http_info(cls, 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
|
+
}
|
2554
2951
|
|
2555
|
-
def _show_member_detail_with_http_info(self, request):
|
2556
2952
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
2557
2953
|
|
2558
2954
|
cname = None
|
@@ -2571,9 +2967,9 @@ class CbrClient(Client):
|
|
2571
2967
|
|
2572
2968
|
form_params = {}
|
2573
2969
|
|
2574
|
-
|
2970
|
+
body = None
|
2575
2971
|
if isinstance(request, SdkStreamRequest):
|
2576
|
-
|
2972
|
+
body = request.get_file_stream()
|
2577
2973
|
|
2578
2974
|
response_headers = []
|
2579
2975
|
|
@@ -2582,20 +2978,16 @@ class CbrClient(Client):
|
|
2582
2978
|
|
2583
2979
|
auth_settings = []
|
2584
2980
|
|
2585
|
-
|
2586
|
-
|
2587
|
-
|
2588
|
-
|
2589
|
-
|
2590
|
-
|
2591
|
-
|
2592
|
-
|
2593
|
-
|
2594
|
-
|
2595
|
-
response_headers=response_headers,
|
2596
|
-
auth_settings=auth_settings,
|
2597
|
-
collection_formats=collection_formats,
|
2598
|
-
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
|
2599
2991
|
|
2600
2992
|
def show_members_detail(self, request):
|
2601
2993
|
"""获取备份成员列表
|
@@ -2608,9 +3000,22 @@ class CbrClient(Client):
|
|
2608
3000
|
:type request: :class:`huaweicloudsdkcbr.v1.ShowMembersDetailRequest`
|
2609
3001
|
:rtype: :class:`huaweicloudsdkcbr.v1.ShowMembersDetailResponse`
|
2610
3002
|
"""
|
2611
|
-
|
3003
|
+
http_info = self._show_members_detail_http_info(request)
|
3004
|
+
return self._call_api(**http_info)
|
3005
|
+
|
3006
|
+
def show_members_detail_invoker(self, request):
|
3007
|
+
http_info = self._show_members_detail_http_info(request)
|
3008
|
+
return SyncInvoker(self, http_info)
|
3009
|
+
|
3010
|
+
@classmethod
|
3011
|
+
def _show_members_detail_http_info(cls, 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
|
+
}
|
2612
3018
|
|
2613
|
-
def _show_members_detail_with_http_info(self, request):
|
2614
3019
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
2615
3020
|
|
2616
3021
|
cname = None
|
@@ -2643,9 +3048,9 @@ class CbrClient(Client):
|
|
2643
3048
|
|
2644
3049
|
form_params = {}
|
2645
3050
|
|
2646
|
-
|
3051
|
+
body = None
|
2647
3052
|
if isinstance(request, SdkStreamRequest):
|
2648
|
-
|
3053
|
+
body = request.get_file_stream()
|
2649
3054
|
|
2650
3055
|
response_headers = []
|
2651
3056
|
|
@@ -2654,20 +3059,16 @@ class CbrClient(Client):
|
|
2654
3059
|
|
2655
3060
|
auth_settings = []
|
2656
3061
|
|
2657
|
-
|
2658
|
-
|
2659
|
-
|
2660
|
-
|
2661
|
-
|
2662
|
-
|
2663
|
-
|
2664
|
-
|
2665
|
-
|
2666
|
-
|
2667
|
-
response_headers=response_headers,
|
2668
|
-
auth_settings=auth_settings,
|
2669
|
-
collection_formats=collection_formats,
|
2670
|
-
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
|
2671
3072
|
|
2672
3073
|
def show_metadata(self, request):
|
2673
3074
|
"""查询备份元数据
|
@@ -2680,9 +3081,22 @@ class CbrClient(Client):
|
|
2680
3081
|
:type request: :class:`huaweicloudsdkcbr.v1.ShowMetadataRequest`
|
2681
3082
|
:rtype: :class:`huaweicloudsdkcbr.v1.ShowMetadataResponse`
|
2682
3083
|
"""
|
2683
|
-
|
3084
|
+
http_info = self._show_metadata_http_info(request)
|
3085
|
+
return self._call_api(**http_info)
|
3086
|
+
|
3087
|
+
def show_metadata_invoker(self, request):
|
3088
|
+
http_info = self._show_metadata_http_info(request)
|
3089
|
+
return SyncInvoker(self, http_info)
|
3090
|
+
|
3091
|
+
@classmethod
|
3092
|
+
def _show_metadata_http_info(cls, 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
|
+
}
|
2684
3099
|
|
2685
|
-
def _show_metadata_with_http_info(self, request):
|
2686
3100
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
2687
3101
|
|
2688
3102
|
cname = None
|
@@ -2699,9 +3113,9 @@ class CbrClient(Client):
|
|
2699
3113
|
|
2700
3114
|
form_params = {}
|
2701
3115
|
|
2702
|
-
|
3116
|
+
body = None
|
2703
3117
|
if isinstance(request, SdkStreamRequest):
|
2704
|
-
|
3118
|
+
body = request.get_file_stream()
|
2705
3119
|
|
2706
3120
|
response_headers = []
|
2707
3121
|
|
@@ -2710,20 +3124,16 @@ class CbrClient(Client):
|
|
2710
3124
|
|
2711
3125
|
auth_settings = []
|
2712
3126
|
|
2713
|
-
|
2714
|
-
|
2715
|
-
|
2716
|
-
|
2717
|
-
|
2718
|
-
|
2719
|
-
|
2720
|
-
|
2721
|
-
|
2722
|
-
|
2723
|
-
response_headers=response_headers,
|
2724
|
-
auth_settings=auth_settings,
|
2725
|
-
collection_formats=collection_formats,
|
2726
|
-
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
|
2727
3137
|
|
2728
3138
|
def show_migrate_status(self, request):
|
2729
3139
|
"""查询迁移
|
@@ -2736,9 +3146,22 @@ class CbrClient(Client):
|
|
2736
3146
|
:type request: :class:`huaweicloudsdkcbr.v1.ShowMigrateStatusRequest`
|
2737
3147
|
:rtype: :class:`huaweicloudsdkcbr.v1.ShowMigrateStatusResponse`
|
2738
3148
|
"""
|
2739
|
-
|
3149
|
+
http_info = self._show_migrate_status_http_info(request)
|
3150
|
+
return self._call_api(**http_info)
|
3151
|
+
|
3152
|
+
def show_migrate_status_invoker(self, request):
|
3153
|
+
http_info = self._show_migrate_status_http_info(request)
|
3154
|
+
return SyncInvoker(self, http_info)
|
3155
|
+
|
3156
|
+
@classmethod
|
3157
|
+
def _show_migrate_status_http_info(cls, request):
|
3158
|
+
http_info = {
|
3159
|
+
"method": "GET",
|
3160
|
+
"resource_path": "/v3/migrates",
|
3161
|
+
"request_type": request.__class__.__name__,
|
3162
|
+
"response_type": "ShowMigrateStatusResponse"
|
3163
|
+
}
|
2740
3164
|
|
2741
|
-
def _show_migrate_status_with_http_info(self, request):
|
2742
3165
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
2743
3166
|
|
2744
3167
|
cname = None
|
@@ -2755,9 +3178,9 @@ class CbrClient(Client):
|
|
2755
3178
|
|
2756
3179
|
form_params = {}
|
2757
3180
|
|
2758
|
-
|
3181
|
+
body = None
|
2759
3182
|
if isinstance(request, SdkStreamRequest):
|
2760
|
-
|
3183
|
+
body = request.get_file_stream()
|
2761
3184
|
|
2762
3185
|
response_headers = []
|
2763
3186
|
|
@@ -2766,20 +3189,16 @@ class CbrClient(Client):
|
|
2766
3189
|
|
2767
3190
|
auth_settings = []
|
2768
3191
|
|
2769
|
-
|
2770
|
-
|
2771
|
-
|
2772
|
-
|
2773
|
-
|
2774
|
-
|
2775
|
-
|
2776
|
-
|
2777
|
-
|
2778
|
-
|
2779
|
-
response_headers=response_headers,
|
2780
|
-
auth_settings=auth_settings,
|
2781
|
-
collection_formats=collection_formats,
|
2782
|
-
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
|
2783
3202
|
|
2784
3203
|
def show_op_log(self, request):
|
2785
3204
|
"""查询单个任务
|
@@ -2792,9 +3211,22 @@ class CbrClient(Client):
|
|
2792
3211
|
:type request: :class:`huaweicloudsdkcbr.v1.ShowOpLogRequest`
|
2793
3212
|
:rtype: :class:`huaweicloudsdkcbr.v1.ShowOpLogResponse`
|
2794
3213
|
"""
|
2795
|
-
|
3214
|
+
http_info = self._show_op_log_http_info(request)
|
3215
|
+
return self._call_api(**http_info)
|
3216
|
+
|
3217
|
+
def show_op_log_invoker(self, request):
|
3218
|
+
http_info = self._show_op_log_http_info(request)
|
3219
|
+
return SyncInvoker(self, http_info)
|
3220
|
+
|
3221
|
+
@classmethod
|
3222
|
+
def _show_op_log_http_info(cls, 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
|
+
}
|
2796
3229
|
|
2797
|
-
def _show_op_log_with_http_info(self, request):
|
2798
3230
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
2799
3231
|
|
2800
3232
|
cname = None
|
@@ -2811,9 +3243,9 @@ class CbrClient(Client):
|
|
2811
3243
|
|
2812
3244
|
form_params = {}
|
2813
3245
|
|
2814
|
-
|
3246
|
+
body = None
|
2815
3247
|
if isinstance(request, SdkStreamRequest):
|
2816
|
-
|
3248
|
+
body = request.get_file_stream()
|
2817
3249
|
|
2818
3250
|
response_headers = []
|
2819
3251
|
|
@@ -2822,20 +3254,16 @@ class CbrClient(Client):
|
|
2822
3254
|
|
2823
3255
|
auth_settings = []
|
2824
3256
|
|
2825
|
-
|
2826
|
-
|
2827
|
-
|
2828
|
-
|
2829
|
-
|
2830
|
-
|
2831
|
-
|
2832
|
-
|
2833
|
-
|
2834
|
-
|
2835
|
-
response_headers=response_headers,
|
2836
|
-
auth_settings=auth_settings,
|
2837
|
-
collection_formats=collection_formats,
|
2838
|
-
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
|
2839
3267
|
|
2840
3268
|
def show_policy(self, request):
|
2841
3269
|
"""查询单个策略
|
@@ -2848,9 +3276,22 @@ class CbrClient(Client):
|
|
2848
3276
|
:type request: :class:`huaweicloudsdkcbr.v1.ShowPolicyRequest`
|
2849
3277
|
:rtype: :class:`huaweicloudsdkcbr.v1.ShowPolicyResponse`
|
2850
3278
|
"""
|
2851
|
-
|
3279
|
+
http_info = self._show_policy_http_info(request)
|
3280
|
+
return self._call_api(**http_info)
|
3281
|
+
|
3282
|
+
def show_policy_invoker(self, request):
|
3283
|
+
http_info = self._show_policy_http_info(request)
|
3284
|
+
return SyncInvoker(self, http_info)
|
3285
|
+
|
3286
|
+
@classmethod
|
3287
|
+
def _show_policy_http_info(cls, 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
|
+
}
|
2852
3294
|
|
2853
|
-
def _show_policy_with_http_info(self, request):
|
2854
3295
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
2855
3296
|
|
2856
3297
|
cname = None
|
@@ -2867,9 +3308,9 @@ class CbrClient(Client):
|
|
2867
3308
|
|
2868
3309
|
form_params = {}
|
2869
3310
|
|
2870
|
-
|
3311
|
+
body = None
|
2871
3312
|
if isinstance(request, SdkStreamRequest):
|
2872
|
-
|
3313
|
+
body = request.get_file_stream()
|
2873
3314
|
|
2874
3315
|
response_headers = []
|
2875
3316
|
|
@@ -2878,20 +3319,16 @@ class CbrClient(Client):
|
|
2878
3319
|
|
2879
3320
|
auth_settings = []
|
2880
3321
|
|
2881
|
-
|
2882
|
-
|
2883
|
-
|
2884
|
-
|
2885
|
-
|
2886
|
-
|
2887
|
-
|
2888
|
-
|
2889
|
-
|
2890
|
-
|
2891
|
-
response_headers=response_headers,
|
2892
|
-
auth_settings=auth_settings,
|
2893
|
-
collection_formats=collection_formats,
|
2894
|
-
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
|
2895
3332
|
|
2896
3333
|
def show_protectable(self, request):
|
2897
3334
|
"""查询指定可保护资源
|
@@ -2904,9 +3341,22 @@ class CbrClient(Client):
|
|
2904
3341
|
:type request: :class:`huaweicloudsdkcbr.v1.ShowProtectableRequest`
|
2905
3342
|
:rtype: :class:`huaweicloudsdkcbr.v1.ShowProtectableResponse`
|
2906
3343
|
"""
|
2907
|
-
|
3344
|
+
http_info = self._show_protectable_http_info(request)
|
3345
|
+
return self._call_api(**http_info)
|
3346
|
+
|
3347
|
+
def show_protectable_invoker(self, request):
|
3348
|
+
http_info = self._show_protectable_http_info(request)
|
3349
|
+
return SyncInvoker(self, http_info)
|
3350
|
+
|
3351
|
+
@classmethod
|
3352
|
+
def _show_protectable_http_info(cls, 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
|
+
}
|
2908
3359
|
|
2909
|
-
def _show_protectable_with_http_info(self, request):
|
2910
3360
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
2911
3361
|
|
2912
3362
|
cname = None
|
@@ -2925,9 +3375,9 @@ class CbrClient(Client):
|
|
2925
3375
|
|
2926
3376
|
form_params = {}
|
2927
3377
|
|
2928
|
-
|
3378
|
+
body = None
|
2929
3379
|
if isinstance(request, SdkStreamRequest):
|
2930
|
-
|
3380
|
+
body = request.get_file_stream()
|
2931
3381
|
|
2932
3382
|
response_headers = []
|
2933
3383
|
|
@@ -2936,20 +3386,16 @@ class CbrClient(Client):
|
|
2936
3386
|
|
2937
3387
|
auth_settings = []
|
2938
3388
|
|
2939
|
-
|
2940
|
-
|
2941
|
-
|
2942
|
-
|
2943
|
-
|
2944
|
-
|
2945
|
-
|
2946
|
-
|
2947
|
-
|
2948
|
-
|
2949
|
-
response_headers=response_headers,
|
2950
|
-
auth_settings=auth_settings,
|
2951
|
-
collection_formats=collection_formats,
|
2952
|
-
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
|
2953
3399
|
|
2954
3400
|
def show_replication_capabilities(self, request):
|
2955
3401
|
"""查询复制能力
|
@@ -2962,9 +3408,22 @@ class CbrClient(Client):
|
|
2962
3408
|
:type request: :class:`huaweicloudsdkcbr.v1.ShowReplicationCapabilitiesRequest`
|
2963
3409
|
:rtype: :class:`huaweicloudsdkcbr.v1.ShowReplicationCapabilitiesResponse`
|
2964
3410
|
"""
|
2965
|
-
|
3411
|
+
http_info = self._show_replication_capabilities_http_info(request)
|
3412
|
+
return self._call_api(**http_info)
|
3413
|
+
|
3414
|
+
def show_replication_capabilities_invoker(self, request):
|
3415
|
+
http_info = self._show_replication_capabilities_http_info(request)
|
3416
|
+
return SyncInvoker(self, http_info)
|
3417
|
+
|
3418
|
+
@classmethod
|
3419
|
+
def _show_replication_capabilities_http_info(cls, 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
|
+
}
|
2966
3426
|
|
2967
|
-
def _show_replication_capabilities_with_http_info(self, request):
|
2968
3427
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
2969
3428
|
|
2970
3429
|
cname = None
|
@@ -2979,9 +3438,9 @@ class CbrClient(Client):
|
|
2979
3438
|
|
2980
3439
|
form_params = {}
|
2981
3440
|
|
2982
|
-
|
3441
|
+
body = None
|
2983
3442
|
if isinstance(request, SdkStreamRequest):
|
2984
|
-
|
3443
|
+
body = request.get_file_stream()
|
2985
3444
|
|
2986
3445
|
response_headers = []
|
2987
3446
|
|
@@ -2990,20 +3449,16 @@ class CbrClient(Client):
|
|
2990
3449
|
|
2991
3450
|
auth_settings = []
|
2992
3451
|
|
2993
|
-
|
2994
|
-
|
2995
|
-
|
2996
|
-
|
2997
|
-
|
2998
|
-
|
2999
|
-
|
3000
|
-
|
3001
|
-
|
3002
|
-
|
3003
|
-
response_headers=response_headers,
|
3004
|
-
auth_settings=auth_settings,
|
3005
|
-
collection_formats=collection_formats,
|
3006
|
-
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
|
3007
3462
|
|
3008
3463
|
def show_storage_usage(self, request):
|
3009
3464
|
"""查询容量统计
|
@@ -3016,9 +3471,22 @@ class CbrClient(Client):
|
|
3016
3471
|
:type request: :class:`huaweicloudsdkcbr.v1.ShowStorageUsageRequest`
|
3017
3472
|
:rtype: :class:`huaweicloudsdkcbr.v1.ShowStorageUsageResponse`
|
3018
3473
|
"""
|
3019
|
-
|
3474
|
+
http_info = self._show_storage_usage_http_info(request)
|
3475
|
+
return self._call_api(**http_info)
|
3476
|
+
|
3477
|
+
def show_storage_usage_invoker(self, request):
|
3478
|
+
http_info = self._show_storage_usage_http_info(request)
|
3479
|
+
return SyncInvoker(self, http_info)
|
3480
|
+
|
3481
|
+
@classmethod
|
3482
|
+
def _show_storage_usage_http_info(cls, 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
|
+
}
|
3020
3489
|
|
3021
|
-
def _show_storage_usage_with_http_info(self, request):
|
3022
3490
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
3023
3491
|
|
3024
3492
|
cname = None
|
@@ -3041,9 +3509,9 @@ class CbrClient(Client):
|
|
3041
3509
|
|
3042
3510
|
form_params = {}
|
3043
3511
|
|
3044
|
-
|
3512
|
+
body = None
|
3045
3513
|
if isinstance(request, SdkStreamRequest):
|
3046
|
-
|
3514
|
+
body = request.get_file_stream()
|
3047
3515
|
|
3048
3516
|
response_headers = []
|
3049
3517
|
|
@@ -3052,20 +3520,16 @@ class CbrClient(Client):
|
|
3052
3520
|
|
3053
3521
|
auth_settings = []
|
3054
3522
|
|
3055
|
-
|
3056
|
-
|
3057
|
-
|
3058
|
-
|
3059
|
-
|
3060
|
-
|
3061
|
-
|
3062
|
-
|
3063
|
-
|
3064
|
-
|
3065
|
-
response_headers=response_headers,
|
3066
|
-
auth_settings=auth_settings,
|
3067
|
-
collection_formats=collection_formats,
|
3068
|
-
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
|
3069
3533
|
|
3070
3534
|
def show_summary(self, request):
|
3071
3535
|
"""存储库容量总览
|
@@ -3078,9 +3542,22 @@ class CbrClient(Client):
|
|
3078
3542
|
:type request: :class:`huaweicloudsdkcbr.v1.ShowSummaryRequest`
|
3079
3543
|
:rtype: :class:`huaweicloudsdkcbr.v1.ShowSummaryResponse`
|
3080
3544
|
"""
|
3081
|
-
|
3545
|
+
http_info = self._show_summary_http_info(request)
|
3546
|
+
return self._call_api(**http_info)
|
3547
|
+
|
3548
|
+
def show_summary_invoker(self, request):
|
3549
|
+
http_info = self._show_summary_http_info(request)
|
3550
|
+
return SyncInvoker(self, http_info)
|
3551
|
+
|
3552
|
+
@classmethod
|
3553
|
+
def _show_summary_http_info(cls, 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
|
+
}
|
3082
3560
|
|
3083
|
-
def _show_summary_with_http_info(self, request):
|
3084
3561
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
3085
3562
|
|
3086
3563
|
cname = None
|
@@ -3095,9 +3572,9 @@ class CbrClient(Client):
|
|
3095
3572
|
|
3096
3573
|
form_params = {}
|
3097
3574
|
|
3098
|
-
|
3575
|
+
body = None
|
3099
3576
|
if isinstance(request, SdkStreamRequest):
|
3100
|
-
|
3577
|
+
body = request.get_file_stream()
|
3101
3578
|
|
3102
3579
|
response_headers = []
|
3103
3580
|
|
@@ -3106,20 +3583,16 @@ class CbrClient(Client):
|
|
3106
3583
|
|
3107
3584
|
auth_settings = []
|
3108
3585
|
|
3109
|
-
|
3110
|
-
|
3111
|
-
|
3112
|
-
|
3113
|
-
|
3114
|
-
|
3115
|
-
|
3116
|
-
|
3117
|
-
|
3118
|
-
|
3119
|
-
response_headers=response_headers,
|
3120
|
-
auth_settings=auth_settings,
|
3121
|
-
collection_formats=collection_formats,
|
3122
|
-
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
|
3123
3596
|
|
3124
3597
|
def show_vault(self, request):
|
3125
3598
|
"""查询指定存储库
|
@@ -3132,9 +3605,22 @@ class CbrClient(Client):
|
|
3132
3605
|
:type request: :class:`huaweicloudsdkcbr.v1.ShowVaultRequest`
|
3133
3606
|
:rtype: :class:`huaweicloudsdkcbr.v1.ShowVaultResponse`
|
3134
3607
|
"""
|
3135
|
-
|
3608
|
+
http_info = self._show_vault_http_info(request)
|
3609
|
+
return self._call_api(**http_info)
|
3610
|
+
|
3611
|
+
def show_vault_invoker(self, request):
|
3612
|
+
http_info = self._show_vault_http_info(request)
|
3613
|
+
return SyncInvoker(self, http_info)
|
3614
|
+
|
3615
|
+
@classmethod
|
3616
|
+
def _show_vault_http_info(cls, 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
|
+
}
|
3136
3623
|
|
3137
|
-
def _show_vault_with_http_info(self, request):
|
3138
3624
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
3139
3625
|
|
3140
3626
|
cname = None
|
@@ -3151,9 +3637,9 @@ class CbrClient(Client):
|
|
3151
3637
|
|
3152
3638
|
form_params = {}
|
3153
3639
|
|
3154
|
-
|
3640
|
+
body = None
|
3155
3641
|
if isinstance(request, SdkStreamRequest):
|
3156
|
-
|
3642
|
+
body = request.get_file_stream()
|
3157
3643
|
|
3158
3644
|
response_headers = []
|
3159
3645
|
|
@@ -3162,20 +3648,16 @@ class CbrClient(Client):
|
|
3162
3648
|
|
3163
3649
|
auth_settings = []
|
3164
3650
|
|
3165
|
-
|
3166
|
-
|
3167
|
-
|
3168
|
-
|
3169
|
-
|
3170
|
-
|
3171
|
-
|
3172
|
-
|
3173
|
-
|
3174
|
-
|
3175
|
-
response_headers=response_headers,
|
3176
|
-
auth_settings=auth_settings,
|
3177
|
-
collection_formats=collection_formats,
|
3178
|
-
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
|
3179
3661
|
|
3180
3662
|
def show_vault_project_tag(self, request):
|
3181
3663
|
"""查询存储库项目标签
|
@@ -3189,9 +3671,22 @@ class CbrClient(Client):
|
|
3189
3671
|
:type request: :class:`huaweicloudsdkcbr.v1.ShowVaultProjectTagRequest`
|
3190
3672
|
:rtype: :class:`huaweicloudsdkcbr.v1.ShowVaultProjectTagResponse`
|
3191
3673
|
"""
|
3192
|
-
|
3674
|
+
http_info = self._show_vault_project_tag_http_info(request)
|
3675
|
+
return self._call_api(**http_info)
|
3676
|
+
|
3677
|
+
def show_vault_project_tag_invoker(self, request):
|
3678
|
+
http_info = self._show_vault_project_tag_http_info(request)
|
3679
|
+
return SyncInvoker(self, http_info)
|
3680
|
+
|
3681
|
+
@classmethod
|
3682
|
+
def _show_vault_project_tag_http_info(cls, 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
|
+
}
|
3193
3689
|
|
3194
|
-
def _show_vault_project_tag_with_http_info(self, request):
|
3195
3690
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
3196
3691
|
|
3197
3692
|
cname = None
|
@@ -3206,9 +3701,9 @@ class CbrClient(Client):
|
|
3206
3701
|
|
3207
3702
|
form_params = {}
|
3208
3703
|
|
3209
|
-
|
3704
|
+
body = None
|
3210
3705
|
if isinstance(request, SdkStreamRequest):
|
3211
|
-
|
3706
|
+
body = request.get_file_stream()
|
3212
3707
|
|
3213
3708
|
response_headers = []
|
3214
3709
|
|
@@ -3217,20 +3712,16 @@ class CbrClient(Client):
|
|
3217
3712
|
|
3218
3713
|
auth_settings = []
|
3219
3714
|
|
3220
|
-
|
3221
|
-
|
3222
|
-
|
3223
|
-
|
3224
|
-
|
3225
|
-
|
3226
|
-
|
3227
|
-
|
3228
|
-
|
3229
|
-
|
3230
|
-
response_headers=response_headers,
|
3231
|
-
auth_settings=auth_settings,
|
3232
|
-
collection_formats=collection_formats,
|
3233
|
-
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
|
3234
3725
|
|
3235
3726
|
def show_vault_resource_instances(self, request):
|
3236
3727
|
"""查询存储库资源实例
|
@@ -3244,9 +3735,22 @@ class CbrClient(Client):
|
|
3244
3735
|
:type request: :class:`huaweicloudsdkcbr.v1.ShowVaultResourceInstancesRequest`
|
3245
3736
|
:rtype: :class:`huaweicloudsdkcbr.v1.ShowVaultResourceInstancesResponse`
|
3246
3737
|
"""
|
3247
|
-
|
3738
|
+
http_info = self._show_vault_resource_instances_http_info(request)
|
3739
|
+
return self._call_api(**http_info)
|
3740
|
+
|
3741
|
+
def show_vault_resource_instances_invoker(self, request):
|
3742
|
+
http_info = self._show_vault_resource_instances_http_info(request)
|
3743
|
+
return SyncInvoker(self, http_info)
|
3744
|
+
|
3745
|
+
@classmethod
|
3746
|
+
def _show_vault_resource_instances_http_info(cls, 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
|
+
}
|
3248
3753
|
|
3249
|
-
def _show_vault_resource_instances_with_http_info(self, request):
|
3250
3754
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
3251
3755
|
|
3252
3756
|
cname = None
|
@@ -3261,11 +3765,11 @@ class CbrClient(Client):
|
|
3261
3765
|
|
3262
3766
|
form_params = {}
|
3263
3767
|
|
3264
|
-
|
3768
|
+
body = None
|
3265
3769
|
if 'body' in local_var_params:
|
3266
|
-
|
3770
|
+
body = local_var_params['body']
|
3267
3771
|
if isinstance(request, SdkStreamRequest):
|
3268
|
-
|
3772
|
+
body = request.get_file_stream()
|
3269
3773
|
|
3270
3774
|
response_headers = []
|
3271
3775
|
|
@@ -3274,20 +3778,16 @@ class CbrClient(Client):
|
|
3274
3778
|
|
3275
3779
|
auth_settings = []
|
3276
3780
|
|
3277
|
-
|
3278
|
-
|
3279
|
-
|
3280
|
-
|
3281
|
-
|
3282
|
-
|
3283
|
-
|
3284
|
-
|
3285
|
-
|
3286
|
-
|
3287
|
-
response_headers=response_headers,
|
3288
|
-
auth_settings=auth_settings,
|
3289
|
-
collection_formats=collection_formats,
|
3290
|
-
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
|
3291
3791
|
|
3292
3792
|
def show_vault_tag(self, request):
|
3293
3793
|
"""查询存储库资源标签
|
@@ -3301,9 +3801,22 @@ class CbrClient(Client):
|
|
3301
3801
|
:type request: :class:`huaweicloudsdkcbr.v1.ShowVaultTagRequest`
|
3302
3802
|
:rtype: :class:`huaweicloudsdkcbr.v1.ShowVaultTagResponse`
|
3303
3803
|
"""
|
3304
|
-
|
3804
|
+
http_info = self._show_vault_tag_http_info(request)
|
3805
|
+
return self._call_api(**http_info)
|
3806
|
+
|
3807
|
+
def show_vault_tag_invoker(self, request):
|
3808
|
+
http_info = self._show_vault_tag_http_info(request)
|
3809
|
+
return SyncInvoker(self, http_info)
|
3810
|
+
|
3811
|
+
@classmethod
|
3812
|
+
def _show_vault_tag_http_info(cls, 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
|
+
}
|
3305
3819
|
|
3306
|
-
def _show_vault_tag_with_http_info(self, request):
|
3307
3820
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
3308
3821
|
|
3309
3822
|
cname = None
|
@@ -3320,9 +3833,9 @@ class CbrClient(Client):
|
|
3320
3833
|
|
3321
3834
|
form_params = {}
|
3322
3835
|
|
3323
|
-
|
3836
|
+
body = None
|
3324
3837
|
if isinstance(request, SdkStreamRequest):
|
3325
|
-
|
3838
|
+
body = request.get_file_stream()
|
3326
3839
|
|
3327
3840
|
response_headers = []
|
3328
3841
|
|
@@ -3331,20 +3844,16 @@ class CbrClient(Client):
|
|
3331
3844
|
|
3332
3845
|
auth_settings = []
|
3333
3846
|
|
3334
|
-
|
3335
|
-
|
3336
|
-
|
3337
|
-
|
3338
|
-
|
3339
|
-
|
3340
|
-
|
3341
|
-
|
3342
|
-
|
3343
|
-
|
3344
|
-
response_headers=response_headers,
|
3345
|
-
auth_settings=auth_settings,
|
3346
|
-
collection_formats=collection_formats,
|
3347
|
-
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
|
3348
3857
|
|
3349
3858
|
def unregister_agent(self, request):
|
3350
3859
|
"""移除客户端
|
@@ -3357,9 +3866,22 @@ class CbrClient(Client):
|
|
3357
3866
|
:type request: :class:`huaweicloudsdkcbr.v1.UnregisterAgentRequest`
|
3358
3867
|
:rtype: :class:`huaweicloudsdkcbr.v1.UnregisterAgentResponse`
|
3359
3868
|
"""
|
3360
|
-
|
3869
|
+
http_info = self._unregister_agent_http_info(request)
|
3870
|
+
return self._call_api(**http_info)
|
3871
|
+
|
3872
|
+
def unregister_agent_invoker(self, request):
|
3873
|
+
http_info = self._unregister_agent_http_info(request)
|
3874
|
+
return SyncInvoker(self, http_info)
|
3875
|
+
|
3876
|
+
@classmethod
|
3877
|
+
def _unregister_agent_http_info(cls, 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
|
+
}
|
3361
3884
|
|
3362
|
-
def _unregister_agent_with_http_info(self, request):
|
3363
3885
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
3364
3886
|
|
3365
3887
|
cname = None
|
@@ -3376,9 +3898,9 @@ class CbrClient(Client):
|
|
3376
3898
|
|
3377
3899
|
form_params = {}
|
3378
3900
|
|
3379
|
-
|
3901
|
+
body = None
|
3380
3902
|
if isinstance(request, SdkStreamRequest):
|
3381
|
-
|
3903
|
+
body = request.get_file_stream()
|
3382
3904
|
|
3383
3905
|
response_headers = []
|
3384
3906
|
|
@@ -3387,20 +3909,16 @@ class CbrClient(Client):
|
|
3387
3909
|
|
3388
3910
|
auth_settings = []
|
3389
3911
|
|
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__)
|
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
|
3404
3922
|
|
3405
3923
|
def update_agent(self, request):
|
3406
3924
|
"""修改客户端
|
@@ -3413,9 +3931,22 @@ class CbrClient(Client):
|
|
3413
3931
|
:type request: :class:`huaweicloudsdkcbr.v1.UpdateAgentRequest`
|
3414
3932
|
:rtype: :class:`huaweicloudsdkcbr.v1.UpdateAgentResponse`
|
3415
3933
|
"""
|
3416
|
-
|
3934
|
+
http_info = self._update_agent_http_info(request)
|
3935
|
+
return self._call_api(**http_info)
|
3936
|
+
|
3937
|
+
def update_agent_invoker(self, request):
|
3938
|
+
http_info = self._update_agent_http_info(request)
|
3939
|
+
return SyncInvoker(self, http_info)
|
3940
|
+
|
3941
|
+
@classmethod
|
3942
|
+
def _update_agent_http_info(cls, 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
|
+
}
|
3417
3949
|
|
3418
|
-
def _update_agent_with_http_info(self, request):
|
3419
3950
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
3420
3951
|
|
3421
3952
|
cname = None
|
@@ -3432,11 +3963,11 @@ class CbrClient(Client):
|
|
3432
3963
|
|
3433
3964
|
form_params = {}
|
3434
3965
|
|
3435
|
-
|
3966
|
+
body = None
|
3436
3967
|
if 'body' in local_var_params:
|
3437
|
-
|
3968
|
+
body = local_var_params['body']
|
3438
3969
|
if isinstance(request, SdkStreamRequest):
|
3439
|
-
|
3970
|
+
body = request.get_file_stream()
|
3440
3971
|
|
3441
3972
|
response_headers = []
|
3442
3973
|
|
@@ -3445,20 +3976,16 @@ class CbrClient(Client):
|
|
3445
3976
|
|
3446
3977
|
auth_settings = []
|
3447
3978
|
|
3448
|
-
|
3449
|
-
|
3450
|
-
|
3451
|
-
|
3452
|
-
|
3453
|
-
|
3454
|
-
|
3455
|
-
|
3456
|
-
|
3457
|
-
|
3458
|
-
response_headers=response_headers,
|
3459
|
-
auth_settings=auth_settings,
|
3460
|
-
collection_formats=collection_formats,
|
3461
|
-
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
|
3462
3989
|
|
3463
3990
|
def update_backup(self, request):
|
3464
3991
|
"""更新备份
|
@@ -3471,9 +3998,22 @@ class CbrClient(Client):
|
|
3471
3998
|
:type request: :class:`huaweicloudsdkcbr.v1.UpdateBackupRequest`
|
3472
3999
|
:rtype: :class:`huaweicloudsdkcbr.v1.UpdateBackupResponse`
|
3473
4000
|
"""
|
3474
|
-
|
4001
|
+
http_info = self._update_backup_http_info(request)
|
4002
|
+
return self._call_api(**http_info)
|
4003
|
+
|
4004
|
+
def update_backup_invoker(self, request):
|
4005
|
+
http_info = self._update_backup_http_info(request)
|
4006
|
+
return SyncInvoker(self, http_info)
|
4007
|
+
|
4008
|
+
@classmethod
|
4009
|
+
def _update_backup_http_info(cls, 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
|
+
}
|
3475
4016
|
|
3476
|
-
def _update_backup_with_http_info(self, request):
|
3477
4017
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
3478
4018
|
|
3479
4019
|
cname = None
|
@@ -3490,11 +4030,11 @@ class CbrClient(Client):
|
|
3490
4030
|
|
3491
4031
|
form_params = {}
|
3492
4032
|
|
3493
|
-
|
4033
|
+
body = None
|
3494
4034
|
if 'body' in local_var_params:
|
3495
|
-
|
4035
|
+
body = local_var_params['body']
|
3496
4036
|
if isinstance(request, SdkStreamRequest):
|
3497
|
-
|
4037
|
+
body = request.get_file_stream()
|
3498
4038
|
|
3499
4039
|
response_headers = []
|
3500
4040
|
|
@@ -3503,20 +4043,16 @@ class CbrClient(Client):
|
|
3503
4043
|
|
3504
4044
|
auth_settings = []
|
3505
4045
|
|
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__)
|
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
|
3520
4056
|
|
3521
4057
|
def update_member_status(self, request):
|
3522
4058
|
"""更新备份成员状态
|
@@ -3529,9 +4065,22 @@ class CbrClient(Client):
|
|
3529
4065
|
:type request: :class:`huaweicloudsdkcbr.v1.UpdateMemberStatusRequest`
|
3530
4066
|
:rtype: :class:`huaweicloudsdkcbr.v1.UpdateMemberStatusResponse`
|
3531
4067
|
"""
|
3532
|
-
|
4068
|
+
http_info = self._update_member_status_http_info(request)
|
4069
|
+
return self._call_api(**http_info)
|
4070
|
+
|
4071
|
+
def update_member_status_invoker(self, request):
|
4072
|
+
http_info = self._update_member_status_http_info(request)
|
4073
|
+
return SyncInvoker(self, http_info)
|
4074
|
+
|
4075
|
+
@classmethod
|
4076
|
+
def _update_member_status_http_info(cls, 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
|
+
}
|
3533
4083
|
|
3534
|
-
def _update_member_status_with_http_info(self, request):
|
3535
4084
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
3536
4085
|
|
3537
4086
|
cname = None
|
@@ -3550,11 +4099,11 @@ class CbrClient(Client):
|
|
3550
4099
|
|
3551
4100
|
form_params = {}
|
3552
4101
|
|
3553
|
-
|
4102
|
+
body = None
|
3554
4103
|
if 'body' in local_var_params:
|
3555
|
-
|
4104
|
+
body = local_var_params['body']
|
3556
4105
|
if isinstance(request, SdkStreamRequest):
|
3557
|
-
|
4106
|
+
body = request.get_file_stream()
|
3558
4107
|
|
3559
4108
|
response_headers = []
|
3560
4109
|
|
@@ -3563,20 +4112,16 @@ class CbrClient(Client):
|
|
3563
4112
|
|
3564
4113
|
auth_settings = []
|
3565
4114
|
|
3566
|
-
|
3567
|
-
|
3568
|
-
|
3569
|
-
|
3570
|
-
|
3571
|
-
|
3572
|
-
|
3573
|
-
|
3574
|
-
|
3575
|
-
|
3576
|
-
response_headers=response_headers,
|
3577
|
-
auth_settings=auth_settings,
|
3578
|
-
collection_formats=collection_formats,
|
3579
|
-
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
|
3580
4125
|
|
3581
4126
|
def update_order(self, request):
|
3582
4127
|
"""变更
|
@@ -3589,9 +4134,22 @@ class CbrClient(Client):
|
|
3589
4134
|
:type request: :class:`huaweicloudsdkcbr.v1.UpdateOrderRequest`
|
3590
4135
|
:rtype: :class:`huaweicloudsdkcbr.v1.UpdateOrderResponse`
|
3591
4136
|
"""
|
3592
|
-
|
4137
|
+
http_info = self._update_order_http_info(request)
|
4138
|
+
return self._call_api(**http_info)
|
4139
|
+
|
4140
|
+
def update_order_invoker(self, request):
|
4141
|
+
http_info = self._update_order_http_info(request)
|
4142
|
+
return SyncInvoker(self, http_info)
|
4143
|
+
|
4144
|
+
@classmethod
|
4145
|
+
def _update_order_http_info(cls, 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
|
+
}
|
3593
4152
|
|
3594
|
-
def _update_order_with_http_info(self, request):
|
3595
4153
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
3596
4154
|
|
3597
4155
|
cname = None
|
@@ -3608,11 +4166,11 @@ class CbrClient(Client):
|
|
3608
4166
|
|
3609
4167
|
form_params = {}
|
3610
4168
|
|
3611
|
-
|
4169
|
+
body = None
|
3612
4170
|
if 'body' in local_var_params:
|
3613
|
-
|
4171
|
+
body = local_var_params['body']
|
3614
4172
|
if isinstance(request, SdkStreamRequest):
|
3615
|
-
|
4173
|
+
body = request.get_file_stream()
|
3616
4174
|
|
3617
4175
|
response_headers = []
|
3618
4176
|
|
@@ -3621,20 +4179,16 @@ class CbrClient(Client):
|
|
3621
4179
|
|
3622
4180
|
auth_settings = []
|
3623
4181
|
|
3624
|
-
|
3625
|
-
|
3626
|
-
|
3627
|
-
|
3628
|
-
|
3629
|
-
|
3630
|
-
|
3631
|
-
|
3632
|
-
|
3633
|
-
|
3634
|
-
response_headers=response_headers,
|
3635
|
-
auth_settings=auth_settings,
|
3636
|
-
collection_formats=collection_formats,
|
3637
|
-
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
|
3638
4192
|
|
3639
4193
|
def update_policy(self, request):
|
3640
4194
|
"""修改策略
|
@@ -3647,9 +4201,22 @@ class CbrClient(Client):
|
|
3647
4201
|
:type request: :class:`huaweicloudsdkcbr.v1.UpdatePolicyRequest`
|
3648
4202
|
:rtype: :class:`huaweicloudsdkcbr.v1.UpdatePolicyResponse`
|
3649
4203
|
"""
|
3650
|
-
|
4204
|
+
http_info = self._update_policy_http_info(request)
|
4205
|
+
return self._call_api(**http_info)
|
4206
|
+
|
4207
|
+
def update_policy_invoker(self, request):
|
4208
|
+
http_info = self._update_policy_http_info(request)
|
4209
|
+
return SyncInvoker(self, http_info)
|
4210
|
+
|
4211
|
+
@classmethod
|
4212
|
+
def _update_policy_http_info(cls, 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
|
+
}
|
3651
4219
|
|
3652
|
-
def _update_policy_with_http_info(self, request):
|
3653
4220
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
3654
4221
|
|
3655
4222
|
cname = None
|
@@ -3666,11 +4233,11 @@ class CbrClient(Client):
|
|
3666
4233
|
|
3667
4234
|
form_params = {}
|
3668
4235
|
|
3669
|
-
|
4236
|
+
body = None
|
3670
4237
|
if 'body' in local_var_params:
|
3671
|
-
|
4238
|
+
body = local_var_params['body']
|
3672
4239
|
if isinstance(request, SdkStreamRequest):
|
3673
|
-
|
4240
|
+
body = request.get_file_stream()
|
3674
4241
|
|
3675
4242
|
response_headers = []
|
3676
4243
|
|
@@ -3679,20 +4246,16 @@ class CbrClient(Client):
|
|
3679
4246
|
|
3680
4247
|
auth_settings = []
|
3681
4248
|
|
3682
|
-
|
3683
|
-
|
3684
|
-
|
3685
|
-
|
3686
|
-
|
3687
|
-
|
3688
|
-
|
3689
|
-
|
3690
|
-
|
3691
|
-
|
3692
|
-
response_headers=response_headers,
|
3693
|
-
auth_settings=auth_settings,
|
3694
|
-
collection_formats=collection_formats,
|
3695
|
-
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
|
3696
4259
|
|
3697
4260
|
def update_vault(self, request):
|
3698
4261
|
"""修改存储库
|
@@ -3705,9 +4268,22 @@ class CbrClient(Client):
|
|
3705
4268
|
:type request: :class:`huaweicloudsdkcbr.v1.UpdateVaultRequest`
|
3706
4269
|
:rtype: :class:`huaweicloudsdkcbr.v1.UpdateVaultResponse`
|
3707
4270
|
"""
|
3708
|
-
|
4271
|
+
http_info = self._update_vault_http_info(request)
|
4272
|
+
return self._call_api(**http_info)
|
4273
|
+
|
4274
|
+
def update_vault_invoker(self, request):
|
4275
|
+
http_info = self._update_vault_http_info(request)
|
4276
|
+
return SyncInvoker(self, http_info)
|
4277
|
+
|
4278
|
+
@classmethod
|
4279
|
+
def _update_vault_http_info(cls, 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
|
+
}
|
3709
4286
|
|
3710
|
-
def _update_vault_with_http_info(self, request):
|
3711
4287
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
3712
4288
|
|
3713
4289
|
cname = None
|
@@ -3724,11 +4300,11 @@ class CbrClient(Client):
|
|
3724
4300
|
|
3725
4301
|
form_params = {}
|
3726
4302
|
|
3727
|
-
|
4303
|
+
body = None
|
3728
4304
|
if 'body' in local_var_params:
|
3729
|
-
|
4305
|
+
body = local_var_params['body']
|
3730
4306
|
if isinstance(request, SdkStreamRequest):
|
3731
|
-
|
4307
|
+
body = request.get_file_stream()
|
3732
4308
|
|
3733
4309
|
response_headers = []
|
3734
4310
|
|
@@ -3737,20 +4313,25 @@ class CbrClient(Client):
|
|
3737
4313
|
|
3738
4314
|
auth_settings = []
|
3739
4315
|
|
3740
|
-
|
3741
|
-
|
3742
|
-
|
3743
|
-
|
3744
|
-
|
3745
|
-
|
3746
|
-
|
3747
|
-
|
3748
|
-
|
3749
|
-
|
3750
|
-
|
3751
|
-
|
3752
|
-
|
3753
|
-
|
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
|
+
return self.do_http_request(**kwargs)
|
4330
|
+
except TypeError:
|
4331
|
+
import inspect
|
4332
|
+
params = inspect.signature(self.do_http_request).parameters
|
4333
|
+
http_info = {param_name: kwargs.get(param_name) for param_name in params if param_name in kwargs}
|
4334
|
+
return self.do_http_request(**http_info)
|
3754
4335
|
|
3755
4336
|
def call_api(self, resource_path, method, path_params=None, query_params=None, header_params=None, body=None,
|
3756
4337
|
post_params=None, cname=None, response_type=None, response_headers=None, auth_settings=None,
|