huaweicloudsdkmssi 3.1.160__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.
- huaweicloudsdkmssi/__init__.py +0 -0
- huaweicloudsdkmssi/v1/__init__.py +53 -0
- huaweicloudsdkmssi/v1/model/__init__.py +50 -0
- huaweicloudsdkmssi/v1/model/action_base_info.py +542 -0
- huaweicloudsdkmssi/v1/model/api_config.py +115 -0
- huaweicloudsdkmssi/v1/model/auth_config_a.py +261 -0
- huaweicloudsdkmssi/v1/model/base_connection_info.py +361 -0
- huaweicloudsdkmssi/v1/model/connection_info.py +761 -0
- huaweicloudsdkmssi/v1/model/connector_info.py +753 -0
- huaweicloudsdkmssi/v1/model/connector_info0.py +575 -0
- huaweicloudsdkmssi/v1/model/create_connection_info_request.py +111 -0
- huaweicloudsdkmssi/v1/model/create_connection_info_response.py +174 -0
- huaweicloudsdkmssi/v1/model/create_custom_connector_from_openapi_request.py +111 -0
- huaweicloudsdkmssi/v1/model/create_custom_connector_from_openapi_response.py +282 -0
- huaweicloudsdkmssi/v1/model/create_flow_request.py +111 -0
- huaweicloudsdkmssi/v1/model/create_flow_response.py +203 -0
- huaweicloudsdkmssi/v1/model/create_flow_template_from_flow_request.py +139 -0
- huaweicloudsdkmssi/v1/model/create_flow_template_from_flow_response.py +203 -0
- huaweicloudsdkmssi/v1/model/custom_connector_info_v2.py +244 -0
- huaweicloudsdkmssi/v1/model/delete_connection_info_request.py +114 -0
- huaweicloudsdkmssi/v1/model/delete_connection_info_response.py +174 -0
- huaweicloudsdkmssi/v1/model/delete_custom_connector_request.py +114 -0
- huaweicloudsdkmssi/v1/model/delete_custom_connector_response.py +174 -0
- huaweicloudsdkmssi/v1/model/delete_flow_request.py +114 -0
- huaweicloudsdkmssi/v1/model/delete_flow_response.py +174 -0
- huaweicloudsdkmssi/v1/model/flow_meta.py +1114 -0
- huaweicloudsdkmssi/v1/model/runtime_permission.py +231 -0
- huaweicloudsdkmssi/v1/model/search_flow_by_id_request.py +143 -0
- huaweicloudsdkmssi/v1/model/search_flow_by_id_response.py +1115 -0
- huaweicloudsdkmssi/v1/model/show_all_connections_request.py +171 -0
- huaweicloudsdkmssi/v1/model/show_all_connections_response.py +85 -0
- huaweicloudsdkmssi/v1/model/show_all_flows_request.py +258 -0
- huaweicloudsdkmssi/v1/model/show_all_flows_response.py +145 -0
- huaweicloudsdkmssi/v1/model/show_connectors_request.py +258 -0
- huaweicloudsdkmssi/v1/model/show_connectors_response.py +145 -0
- huaweicloudsdkmssi/v1/model/show_custom_connector_request.py +114 -0
- huaweicloudsdkmssi/v1/model/show_custom_connector_response.py +174 -0
- huaweicloudsdkmssi/v1/model/show_custom_connectors_request.py +171 -0
- huaweicloudsdkmssi/v1/model/show_custom_connectors_response.py +145 -0
- huaweicloudsdkmssi/v1/model/show_single_connection_request.py +114 -0
- huaweicloudsdkmssi/v1/model/show_single_connection_response.py +762 -0
- huaweicloudsdkmssi/v1/model/tag.py +144 -0
- huaweicloudsdkmssi/v1/model/template_message.py +171 -0
- huaweicloudsdkmssi/v1/model/trigger_base_info.py +542 -0
- huaweicloudsdkmssi/v1/model/update_connection_info_request.py +139 -0
- huaweicloudsdkmssi/v1/model/update_connection_info_response.py +174 -0
- huaweicloudsdkmssi/v1/model/update_flow_request.py +139 -0
- huaweicloudsdkmssi/v1/model/update_flow_response.py +203 -0
- huaweicloudsdkmssi/v1/mssi_async_client.py +1157 -0
- huaweicloudsdkmssi/v1/mssi_client.py +1154 -0
- huaweicloudsdkmssi/v1/region/__init__.py +0 -0
- huaweicloudsdkmssi/v1/region/mssi_region.py +31 -0
- huaweicloudsdkmssi-3.1.160.dist-info/LICENSE +13 -0
- huaweicloudsdkmssi-3.1.160.dist-info/METADATA +26 -0
- huaweicloudsdkmssi-3.1.160.dist-info/RECORD +57 -0
- huaweicloudsdkmssi-3.1.160.dist-info/WHEEL +5 -0
- huaweicloudsdkmssi-3.1.160.dist-info/top_level.txt +1 -0
@@ -0,0 +1,1157 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
from __future__ import absolute_import
|
4
|
+
|
5
|
+
import importlib
|
6
|
+
import warnings
|
7
|
+
|
8
|
+
from huaweicloudsdkcore.client import Client, ClientBuilder
|
9
|
+
from huaweicloudsdkcore.utils import http_utils
|
10
|
+
from huaweicloudsdkcore.sdk_stream_request import SdkStreamRequest
|
11
|
+
|
12
|
+
try:
|
13
|
+
from huaweicloudsdkcore.invoker.invoker import AsyncInvoker
|
14
|
+
except ImportError as e:
|
15
|
+
warnings.warn(str(e) + ", please check if you are using the same versions of 'huaweicloudsdkcore' and 'huaweicloudsdkmssi'")
|
16
|
+
|
17
|
+
|
18
|
+
class MssiAsyncClient(Client):
|
19
|
+
def __init__(self):
|
20
|
+
super(MssiAsyncClient, self).__init__()
|
21
|
+
self.model_package = importlib.import_module("huaweicloudsdkmssi.v1.model")
|
22
|
+
|
23
|
+
@classmethod
|
24
|
+
def new_builder(cls, clazz=None):
|
25
|
+
if not clazz:
|
26
|
+
client_builder = ClientBuilder(cls)
|
27
|
+
else:
|
28
|
+
if clazz.__name__ != "MssiAsyncClient":
|
29
|
+
raise TypeError("client type error, support client type is MssiAsyncClient")
|
30
|
+
client_builder = ClientBuilder(clazz)
|
31
|
+
|
32
|
+
|
33
|
+
|
34
|
+
return client_builder
|
35
|
+
|
36
|
+
def create_connection_info_async(self, request):
|
37
|
+
r"""新建Connection
|
38
|
+
|
39
|
+
新建连接
|
40
|
+
|
41
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
42
|
+
|
43
|
+
|
44
|
+
:param request: Request instance for CreateConnectionInfo
|
45
|
+
:type request: :class:`huaweicloudsdkmssi.v1.CreateConnectionInfoRequest`
|
46
|
+
:rtype: :class:`huaweicloudsdkmssi.v1.CreateConnectionInfoResponse`
|
47
|
+
"""
|
48
|
+
http_info = self._create_connection_info_http_info(request)
|
49
|
+
return self._call_api(**http_info)
|
50
|
+
|
51
|
+
def create_connection_info_async_invoker(self, request):
|
52
|
+
http_info = self._create_connection_info_http_info(request)
|
53
|
+
return AsyncInvoker(self, http_info)
|
54
|
+
|
55
|
+
def _create_connection_info_http_info(self, request):
|
56
|
+
http_info = {
|
57
|
+
"method": "POST",
|
58
|
+
"resource_path": "/v1/{project_id}/connections",
|
59
|
+
"request_type": request.__class__.__name__,
|
60
|
+
"response_type": "CreateConnectionInfoResponse"
|
61
|
+
}
|
62
|
+
|
63
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
64
|
+
|
65
|
+
cname = None
|
66
|
+
|
67
|
+
collection_formats = {}
|
68
|
+
|
69
|
+
path_params = {}
|
70
|
+
|
71
|
+
query_params = []
|
72
|
+
|
73
|
+
header_params = {}
|
74
|
+
|
75
|
+
form_params = {}
|
76
|
+
|
77
|
+
body = None
|
78
|
+
if 'body' in local_var_params:
|
79
|
+
body = local_var_params['body']
|
80
|
+
if isinstance(request, SdkStreamRequest):
|
81
|
+
body = request.get_file_stream()
|
82
|
+
|
83
|
+
response_headers = []
|
84
|
+
|
85
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
86
|
+
['application/json;charset=UTF-8'])
|
87
|
+
|
88
|
+
auth_settings = []
|
89
|
+
|
90
|
+
http_info["cname"] = cname
|
91
|
+
http_info["collection_formats"] = collection_formats
|
92
|
+
http_info["path_params"] = path_params
|
93
|
+
http_info["query_params"] = query_params
|
94
|
+
http_info["header_params"] = header_params
|
95
|
+
http_info["post_params"] = form_params
|
96
|
+
http_info["body"] = body
|
97
|
+
http_info["response_headers"] = response_headers
|
98
|
+
|
99
|
+
return http_info
|
100
|
+
|
101
|
+
def create_custom_connector_from_openapi_async(self, request):
|
102
|
+
r"""新建自定义连接器(导入swagger方式)
|
103
|
+
|
104
|
+
新建自定义连接器(导入swagger方式)
|
105
|
+
|
106
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
107
|
+
|
108
|
+
|
109
|
+
:param request: Request instance for CreateCustomConnectorFromOpenapi
|
110
|
+
:type request: :class:`huaweicloudsdkmssi.v1.CreateCustomConnectorFromOpenapiRequest`
|
111
|
+
:rtype: :class:`huaweicloudsdkmssi.v1.CreateCustomConnectorFromOpenapiResponse`
|
112
|
+
"""
|
113
|
+
http_info = self._create_custom_connector_from_openapi_http_info(request)
|
114
|
+
return self._call_api(**http_info)
|
115
|
+
|
116
|
+
def create_custom_connector_from_openapi_async_invoker(self, request):
|
117
|
+
http_info = self._create_custom_connector_from_openapi_http_info(request)
|
118
|
+
return AsyncInvoker(self, http_info)
|
119
|
+
|
120
|
+
def _create_custom_connector_from_openapi_http_info(self, request):
|
121
|
+
http_info = {
|
122
|
+
"method": "POST",
|
123
|
+
"resource_path": "/v2/{project_id}/connectors/custom-connectors",
|
124
|
+
"request_type": request.__class__.__name__,
|
125
|
+
"response_type": "CreateCustomConnectorFromOpenapiResponse"
|
126
|
+
}
|
127
|
+
|
128
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
129
|
+
|
130
|
+
cname = None
|
131
|
+
|
132
|
+
collection_formats = {}
|
133
|
+
|
134
|
+
path_params = {}
|
135
|
+
|
136
|
+
query_params = []
|
137
|
+
|
138
|
+
header_params = {}
|
139
|
+
|
140
|
+
form_params = {}
|
141
|
+
|
142
|
+
body = None
|
143
|
+
if 'body' in local_var_params:
|
144
|
+
body = local_var_params['body']
|
145
|
+
if isinstance(request, SdkStreamRequest):
|
146
|
+
body = request.get_file_stream()
|
147
|
+
|
148
|
+
response_headers = []
|
149
|
+
|
150
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
151
|
+
['application/json;charset=UTF-8'])
|
152
|
+
|
153
|
+
auth_settings = []
|
154
|
+
|
155
|
+
http_info["cname"] = cname
|
156
|
+
http_info["collection_formats"] = collection_formats
|
157
|
+
http_info["path_params"] = path_params
|
158
|
+
http_info["query_params"] = query_params
|
159
|
+
http_info["header_params"] = header_params
|
160
|
+
http_info["post_params"] = form_params
|
161
|
+
http_info["body"] = body
|
162
|
+
http_info["response_headers"] = response_headers
|
163
|
+
|
164
|
+
return http_info
|
165
|
+
|
166
|
+
def create_flow_async(self, request):
|
167
|
+
r"""创建flow
|
168
|
+
|
169
|
+
创建flow
|
170
|
+
|
171
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
172
|
+
|
173
|
+
|
174
|
+
:param request: Request instance for CreateFlow
|
175
|
+
:type request: :class:`huaweicloudsdkmssi.v1.CreateFlowRequest`
|
176
|
+
:rtype: :class:`huaweicloudsdkmssi.v1.CreateFlowResponse`
|
177
|
+
"""
|
178
|
+
http_info = self._create_flow_http_info(request)
|
179
|
+
return self._call_api(**http_info)
|
180
|
+
|
181
|
+
def create_flow_async_invoker(self, request):
|
182
|
+
http_info = self._create_flow_http_info(request)
|
183
|
+
return AsyncInvoker(self, http_info)
|
184
|
+
|
185
|
+
def _create_flow_http_info(self, request):
|
186
|
+
http_info = {
|
187
|
+
"method": "POST",
|
188
|
+
"resource_path": "/v1/{project_id}/flows",
|
189
|
+
"request_type": request.__class__.__name__,
|
190
|
+
"response_type": "CreateFlowResponse"
|
191
|
+
}
|
192
|
+
|
193
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
194
|
+
|
195
|
+
cname = None
|
196
|
+
|
197
|
+
collection_formats = {}
|
198
|
+
|
199
|
+
path_params = {}
|
200
|
+
|
201
|
+
query_params = []
|
202
|
+
|
203
|
+
header_params = {}
|
204
|
+
|
205
|
+
form_params = {}
|
206
|
+
|
207
|
+
body = None
|
208
|
+
if 'body' in local_var_params:
|
209
|
+
body = local_var_params['body']
|
210
|
+
if isinstance(request, SdkStreamRequest):
|
211
|
+
body = request.get_file_stream()
|
212
|
+
|
213
|
+
response_headers = []
|
214
|
+
|
215
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
216
|
+
['application/json;charset=UTF-8'])
|
217
|
+
|
218
|
+
auth_settings = []
|
219
|
+
|
220
|
+
http_info["cname"] = cname
|
221
|
+
http_info["collection_formats"] = collection_formats
|
222
|
+
http_info["path_params"] = path_params
|
223
|
+
http_info["query_params"] = query_params
|
224
|
+
http_info["header_params"] = header_params
|
225
|
+
http_info["post_params"] = form_params
|
226
|
+
http_info["body"] = body
|
227
|
+
http_info["response_headers"] = response_headers
|
228
|
+
|
229
|
+
return http_info
|
230
|
+
|
231
|
+
def create_flow_template_from_flow_async(self, request):
|
232
|
+
r"""根据流创建Flow模板
|
233
|
+
|
234
|
+
|
235
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
236
|
+
|
237
|
+
|
238
|
+
:param request: Request instance for CreateFlowTemplateFromFlow
|
239
|
+
:type request: :class:`huaweicloudsdkmssi.v1.CreateFlowTemplateFromFlowRequest`
|
240
|
+
:rtype: :class:`huaweicloudsdkmssi.v1.CreateFlowTemplateFromFlowResponse`
|
241
|
+
"""
|
242
|
+
http_info = self._create_flow_template_from_flow_http_info(request)
|
243
|
+
return self._call_api(**http_info)
|
244
|
+
|
245
|
+
def create_flow_template_from_flow_async_invoker(self, request):
|
246
|
+
http_info = self._create_flow_template_from_flow_http_info(request)
|
247
|
+
return AsyncInvoker(self, http_info)
|
248
|
+
|
249
|
+
def _create_flow_template_from_flow_http_info(self, request):
|
250
|
+
http_info = {
|
251
|
+
"method": "POST",
|
252
|
+
"resource_path": "/v1/{project_id}/flows/{flow_id}/templates",
|
253
|
+
"request_type": request.__class__.__name__,
|
254
|
+
"response_type": "CreateFlowTemplateFromFlowResponse"
|
255
|
+
}
|
256
|
+
|
257
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
258
|
+
|
259
|
+
cname = None
|
260
|
+
|
261
|
+
collection_formats = {}
|
262
|
+
|
263
|
+
path_params = {}
|
264
|
+
if 'flow_id' in local_var_params:
|
265
|
+
path_params['flow_id'] = local_var_params['flow_id']
|
266
|
+
|
267
|
+
query_params = []
|
268
|
+
|
269
|
+
header_params = {}
|
270
|
+
|
271
|
+
form_params = {}
|
272
|
+
|
273
|
+
body = None
|
274
|
+
if 'body' in local_var_params:
|
275
|
+
body = local_var_params['body']
|
276
|
+
if isinstance(request, SdkStreamRequest):
|
277
|
+
body = request.get_file_stream()
|
278
|
+
|
279
|
+
response_headers = []
|
280
|
+
|
281
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
282
|
+
['application/json;charset=UTF-8'])
|
283
|
+
|
284
|
+
auth_settings = []
|
285
|
+
|
286
|
+
http_info["cname"] = cname
|
287
|
+
http_info["collection_formats"] = collection_formats
|
288
|
+
http_info["path_params"] = path_params
|
289
|
+
http_info["query_params"] = query_params
|
290
|
+
http_info["header_params"] = header_params
|
291
|
+
http_info["post_params"] = form_params
|
292
|
+
http_info["body"] = body
|
293
|
+
http_info["response_headers"] = response_headers
|
294
|
+
|
295
|
+
return http_info
|
296
|
+
|
297
|
+
def delete_connection_info_async(self, request):
|
298
|
+
r"""删除Connection
|
299
|
+
|
300
|
+
删除Connection
|
301
|
+
|
302
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
303
|
+
|
304
|
+
|
305
|
+
:param request: Request instance for DeleteConnectionInfo
|
306
|
+
:type request: :class:`huaweicloudsdkmssi.v1.DeleteConnectionInfoRequest`
|
307
|
+
:rtype: :class:`huaweicloudsdkmssi.v1.DeleteConnectionInfoResponse`
|
308
|
+
"""
|
309
|
+
http_info = self._delete_connection_info_http_info(request)
|
310
|
+
return self._call_api(**http_info)
|
311
|
+
|
312
|
+
def delete_connection_info_async_invoker(self, request):
|
313
|
+
http_info = self._delete_connection_info_http_info(request)
|
314
|
+
return AsyncInvoker(self, http_info)
|
315
|
+
|
316
|
+
def _delete_connection_info_http_info(self, request):
|
317
|
+
http_info = {
|
318
|
+
"method": "DELETE",
|
319
|
+
"resource_path": "/v1/{project_id}/connections/{connect_id}",
|
320
|
+
"request_type": request.__class__.__name__,
|
321
|
+
"response_type": "DeleteConnectionInfoResponse"
|
322
|
+
}
|
323
|
+
|
324
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
325
|
+
|
326
|
+
cname = None
|
327
|
+
|
328
|
+
collection_formats = {}
|
329
|
+
|
330
|
+
path_params = {}
|
331
|
+
if 'connect_id' in local_var_params:
|
332
|
+
path_params['connect_id'] = local_var_params['connect_id']
|
333
|
+
|
334
|
+
query_params = []
|
335
|
+
|
336
|
+
header_params = {}
|
337
|
+
|
338
|
+
form_params = {}
|
339
|
+
|
340
|
+
body = None
|
341
|
+
if isinstance(request, SdkStreamRequest):
|
342
|
+
body = request.get_file_stream()
|
343
|
+
|
344
|
+
response_headers = []
|
345
|
+
|
346
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
347
|
+
['application/json'])
|
348
|
+
|
349
|
+
auth_settings = []
|
350
|
+
|
351
|
+
http_info["cname"] = cname
|
352
|
+
http_info["collection_formats"] = collection_formats
|
353
|
+
http_info["path_params"] = path_params
|
354
|
+
http_info["query_params"] = query_params
|
355
|
+
http_info["header_params"] = header_params
|
356
|
+
http_info["post_params"] = form_params
|
357
|
+
http_info["body"] = body
|
358
|
+
http_info["response_headers"] = response_headers
|
359
|
+
|
360
|
+
return http_info
|
361
|
+
|
362
|
+
def delete_custom_connector_async(self, request):
|
363
|
+
r"""删除自定义连接器
|
364
|
+
|
365
|
+
删除自定义连接器
|
366
|
+
|
367
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
368
|
+
|
369
|
+
|
370
|
+
:param request: Request instance for DeleteCustomConnector
|
371
|
+
:type request: :class:`huaweicloudsdkmssi.v1.DeleteCustomConnectorRequest`
|
372
|
+
:rtype: :class:`huaweicloudsdkmssi.v1.DeleteCustomConnectorResponse`
|
373
|
+
"""
|
374
|
+
http_info = self._delete_custom_connector_http_info(request)
|
375
|
+
return self._call_api(**http_info)
|
376
|
+
|
377
|
+
def delete_custom_connector_async_invoker(self, request):
|
378
|
+
http_info = self._delete_custom_connector_http_info(request)
|
379
|
+
return AsyncInvoker(self, http_info)
|
380
|
+
|
381
|
+
def _delete_custom_connector_http_info(self, request):
|
382
|
+
http_info = {
|
383
|
+
"method": "DELETE",
|
384
|
+
"resource_path": "/v2/{project_id}/connectors/custom-connectors/{connector_id}",
|
385
|
+
"request_type": request.__class__.__name__,
|
386
|
+
"response_type": "DeleteCustomConnectorResponse"
|
387
|
+
}
|
388
|
+
|
389
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
390
|
+
|
391
|
+
cname = None
|
392
|
+
|
393
|
+
collection_formats = {}
|
394
|
+
|
395
|
+
path_params = {}
|
396
|
+
if 'connector_id' in local_var_params:
|
397
|
+
path_params['connector_id'] = local_var_params['connector_id']
|
398
|
+
|
399
|
+
query_params = []
|
400
|
+
|
401
|
+
header_params = {}
|
402
|
+
|
403
|
+
form_params = {}
|
404
|
+
|
405
|
+
body = None
|
406
|
+
if isinstance(request, SdkStreamRequest):
|
407
|
+
body = request.get_file_stream()
|
408
|
+
|
409
|
+
response_headers = []
|
410
|
+
|
411
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
412
|
+
['application/json'])
|
413
|
+
|
414
|
+
auth_settings = []
|
415
|
+
|
416
|
+
http_info["cname"] = cname
|
417
|
+
http_info["collection_formats"] = collection_formats
|
418
|
+
http_info["path_params"] = path_params
|
419
|
+
http_info["query_params"] = query_params
|
420
|
+
http_info["header_params"] = header_params
|
421
|
+
http_info["post_params"] = form_params
|
422
|
+
http_info["body"] = body
|
423
|
+
http_info["response_headers"] = response_headers
|
424
|
+
|
425
|
+
return http_info
|
426
|
+
|
427
|
+
def delete_flow_async(self, request):
|
428
|
+
r"""删除Flow
|
429
|
+
|
430
|
+
删除Flow
|
431
|
+
|
432
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
433
|
+
|
434
|
+
|
435
|
+
:param request: Request instance for DeleteFlow
|
436
|
+
:type request: :class:`huaweicloudsdkmssi.v1.DeleteFlowRequest`
|
437
|
+
:rtype: :class:`huaweicloudsdkmssi.v1.DeleteFlowResponse`
|
438
|
+
"""
|
439
|
+
http_info = self._delete_flow_http_info(request)
|
440
|
+
return self._call_api(**http_info)
|
441
|
+
|
442
|
+
def delete_flow_async_invoker(self, request):
|
443
|
+
http_info = self._delete_flow_http_info(request)
|
444
|
+
return AsyncInvoker(self, http_info)
|
445
|
+
|
446
|
+
def _delete_flow_http_info(self, request):
|
447
|
+
http_info = {
|
448
|
+
"method": "DELETE",
|
449
|
+
"resource_path": "/v1/{project_id}/flows/{flow_id}",
|
450
|
+
"request_type": request.__class__.__name__,
|
451
|
+
"response_type": "DeleteFlowResponse"
|
452
|
+
}
|
453
|
+
|
454
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
455
|
+
|
456
|
+
cname = None
|
457
|
+
|
458
|
+
collection_formats = {}
|
459
|
+
|
460
|
+
path_params = {}
|
461
|
+
if 'flow_id' in local_var_params:
|
462
|
+
path_params['flow_id'] = local_var_params['flow_id']
|
463
|
+
|
464
|
+
query_params = []
|
465
|
+
|
466
|
+
header_params = {}
|
467
|
+
|
468
|
+
form_params = {}
|
469
|
+
|
470
|
+
body = None
|
471
|
+
if isinstance(request, SdkStreamRequest):
|
472
|
+
body = request.get_file_stream()
|
473
|
+
|
474
|
+
response_headers = []
|
475
|
+
|
476
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
477
|
+
['application/json'])
|
478
|
+
|
479
|
+
auth_settings = []
|
480
|
+
|
481
|
+
http_info["cname"] = cname
|
482
|
+
http_info["collection_formats"] = collection_formats
|
483
|
+
http_info["path_params"] = path_params
|
484
|
+
http_info["query_params"] = query_params
|
485
|
+
http_info["header_params"] = header_params
|
486
|
+
http_info["post_params"] = form_params
|
487
|
+
http_info["body"] = body
|
488
|
+
http_info["response_headers"] = response_headers
|
489
|
+
|
490
|
+
return http_info
|
491
|
+
|
492
|
+
def search_flow_by_id_async(self, request):
|
493
|
+
r"""查询特定flow
|
494
|
+
|
495
|
+
查询特定flow
|
496
|
+
|
497
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
498
|
+
|
499
|
+
|
500
|
+
:param request: Request instance for SearchFlowById
|
501
|
+
:type request: :class:`huaweicloudsdkmssi.v1.SearchFlowByIdRequest`
|
502
|
+
:rtype: :class:`huaweicloudsdkmssi.v1.SearchFlowByIdResponse`
|
503
|
+
"""
|
504
|
+
http_info = self._search_flow_by_id_http_info(request)
|
505
|
+
return self._call_api(**http_info)
|
506
|
+
|
507
|
+
def search_flow_by_id_async_invoker(self, request):
|
508
|
+
http_info = self._search_flow_by_id_http_info(request)
|
509
|
+
return AsyncInvoker(self, http_info)
|
510
|
+
|
511
|
+
def _search_flow_by_id_http_info(self, request):
|
512
|
+
http_info = {
|
513
|
+
"method": "GET",
|
514
|
+
"resource_path": "/v2/{project_id}/flows/{flow_id}",
|
515
|
+
"request_type": request.__class__.__name__,
|
516
|
+
"response_type": "SearchFlowByIdResponse"
|
517
|
+
}
|
518
|
+
|
519
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
520
|
+
|
521
|
+
cname = None
|
522
|
+
|
523
|
+
collection_formats = {}
|
524
|
+
|
525
|
+
path_params = {}
|
526
|
+
if 'flow_id' in local_var_params:
|
527
|
+
path_params['flow_id'] = local_var_params['flow_id']
|
528
|
+
|
529
|
+
query_params = []
|
530
|
+
if 'version' in local_var_params:
|
531
|
+
query_params.append(('version', local_var_params['version']))
|
532
|
+
|
533
|
+
header_params = {}
|
534
|
+
|
535
|
+
form_params = {}
|
536
|
+
|
537
|
+
body = None
|
538
|
+
if isinstance(request, SdkStreamRequest):
|
539
|
+
body = request.get_file_stream()
|
540
|
+
|
541
|
+
response_headers = []
|
542
|
+
|
543
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
544
|
+
['application/json'])
|
545
|
+
|
546
|
+
auth_settings = []
|
547
|
+
|
548
|
+
http_info["cname"] = cname
|
549
|
+
http_info["collection_formats"] = collection_formats
|
550
|
+
http_info["path_params"] = path_params
|
551
|
+
http_info["query_params"] = query_params
|
552
|
+
http_info["header_params"] = header_params
|
553
|
+
http_info["post_params"] = form_params
|
554
|
+
http_info["body"] = body
|
555
|
+
http_info["response_headers"] = response_headers
|
556
|
+
|
557
|
+
return http_info
|
558
|
+
|
559
|
+
def show_all_connections_async(self, request):
|
560
|
+
r"""查询Connection列表
|
561
|
+
|
562
|
+
查询所有连接
|
563
|
+
|
564
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
565
|
+
|
566
|
+
|
567
|
+
:param request: Request instance for ShowAllConnections
|
568
|
+
:type request: :class:`huaweicloudsdkmssi.v1.ShowAllConnectionsRequest`
|
569
|
+
:rtype: :class:`huaweicloudsdkmssi.v1.ShowAllConnectionsResponse`
|
570
|
+
"""
|
571
|
+
http_info = self._show_all_connections_http_info(request)
|
572
|
+
return self._call_api(**http_info)
|
573
|
+
|
574
|
+
def show_all_connections_async_invoker(self, request):
|
575
|
+
http_info = self._show_all_connections_http_info(request)
|
576
|
+
return AsyncInvoker(self, http_info)
|
577
|
+
|
578
|
+
def _show_all_connections_http_info(self, request):
|
579
|
+
http_info = {
|
580
|
+
"method": "GET",
|
581
|
+
"resource_path": "/v1/{project_id}/connections",
|
582
|
+
"request_type": request.__class__.__name__,
|
583
|
+
"response_type": "ShowAllConnectionsResponse"
|
584
|
+
}
|
585
|
+
|
586
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
587
|
+
|
588
|
+
cname = None
|
589
|
+
|
590
|
+
collection_formats = {}
|
591
|
+
|
592
|
+
path_params = {}
|
593
|
+
|
594
|
+
query_params = []
|
595
|
+
if 'offset' in local_var_params:
|
596
|
+
query_params.append(('offset', local_var_params['offset']))
|
597
|
+
if 'limit' in local_var_params:
|
598
|
+
query_params.append(('limit', local_var_params['limit']))
|
599
|
+
if 'name' in local_var_params:
|
600
|
+
query_params.append(('name', local_var_params['name']))
|
601
|
+
|
602
|
+
header_params = {}
|
603
|
+
|
604
|
+
form_params = {}
|
605
|
+
|
606
|
+
body = None
|
607
|
+
if isinstance(request, SdkStreamRequest):
|
608
|
+
body = request.get_file_stream()
|
609
|
+
|
610
|
+
response_headers = []
|
611
|
+
|
612
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
613
|
+
['application/json'])
|
614
|
+
|
615
|
+
auth_settings = []
|
616
|
+
|
617
|
+
http_info["cname"] = cname
|
618
|
+
http_info["collection_formats"] = collection_formats
|
619
|
+
http_info["path_params"] = path_params
|
620
|
+
http_info["query_params"] = query_params
|
621
|
+
http_info["header_params"] = header_params
|
622
|
+
http_info["post_params"] = form_params
|
623
|
+
http_info["body"] = body
|
624
|
+
http_info["response_headers"] = response_headers
|
625
|
+
|
626
|
+
return http_info
|
627
|
+
|
628
|
+
def show_all_flows_async(self, request):
|
629
|
+
r"""查询所有Flow
|
630
|
+
|
631
|
+
查询所有Flow
|
632
|
+
|
633
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
634
|
+
|
635
|
+
|
636
|
+
:param request: Request instance for ShowAllFlows
|
637
|
+
:type request: :class:`huaweicloudsdkmssi.v1.ShowAllFlowsRequest`
|
638
|
+
:rtype: :class:`huaweicloudsdkmssi.v1.ShowAllFlowsResponse`
|
639
|
+
"""
|
640
|
+
http_info = self._show_all_flows_http_info(request)
|
641
|
+
return self._call_api(**http_info)
|
642
|
+
|
643
|
+
def show_all_flows_async_invoker(self, request):
|
644
|
+
http_info = self._show_all_flows_http_info(request)
|
645
|
+
return AsyncInvoker(self, http_info)
|
646
|
+
|
647
|
+
def _show_all_flows_http_info(self, request):
|
648
|
+
http_info = {
|
649
|
+
"method": "GET",
|
650
|
+
"resource_path": "/v1/{project_id}/flows",
|
651
|
+
"request_type": request.__class__.__name__,
|
652
|
+
"response_type": "ShowAllFlowsResponse"
|
653
|
+
}
|
654
|
+
|
655
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
656
|
+
|
657
|
+
cname = None
|
658
|
+
|
659
|
+
collection_formats = {}
|
660
|
+
|
661
|
+
path_params = {}
|
662
|
+
|
663
|
+
query_params = []
|
664
|
+
if 'offset' in local_var_params:
|
665
|
+
query_params.append(('offset', local_var_params['offset']))
|
666
|
+
if 'limit' in local_var_params:
|
667
|
+
query_params.append(('limit', local_var_params['limit']))
|
668
|
+
if 'type' in local_var_params:
|
669
|
+
query_params.append(('type', local_var_params['type']))
|
670
|
+
if 'name' in local_var_params:
|
671
|
+
query_params.append(('name', local_var_params['name']))
|
672
|
+
if 'have_child_flow' in local_var_params:
|
673
|
+
query_params.append(('have_child_flow', local_var_params['have_child_flow']))
|
674
|
+
if 'ids' in local_var_params:
|
675
|
+
query_params.append(('ids', local_var_params['ids']))
|
676
|
+
|
677
|
+
header_params = {}
|
678
|
+
|
679
|
+
form_params = {}
|
680
|
+
|
681
|
+
body = None
|
682
|
+
if isinstance(request, SdkStreamRequest):
|
683
|
+
body = request.get_file_stream()
|
684
|
+
|
685
|
+
response_headers = []
|
686
|
+
|
687
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
688
|
+
['application/json'])
|
689
|
+
|
690
|
+
auth_settings = []
|
691
|
+
|
692
|
+
http_info["cname"] = cname
|
693
|
+
http_info["collection_formats"] = collection_formats
|
694
|
+
http_info["path_params"] = path_params
|
695
|
+
http_info["query_params"] = query_params
|
696
|
+
http_info["header_params"] = header_params
|
697
|
+
http_info["post_params"] = form_params
|
698
|
+
http_info["body"] = body
|
699
|
+
http_info["response_headers"] = response_headers
|
700
|
+
|
701
|
+
return http_info
|
702
|
+
|
703
|
+
def show_connectors_async(self, request):
|
704
|
+
r"""查询Connector列表
|
705
|
+
|
706
|
+
查询Connector列表
|
707
|
+
|
708
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
709
|
+
|
710
|
+
|
711
|
+
:param request: Request instance for ShowConnectors
|
712
|
+
:type request: :class:`huaweicloudsdkmssi.v1.ShowConnectorsRequest`
|
713
|
+
:rtype: :class:`huaweicloudsdkmssi.v1.ShowConnectorsResponse`
|
714
|
+
"""
|
715
|
+
http_info = self._show_connectors_http_info(request)
|
716
|
+
return self._call_api(**http_info)
|
717
|
+
|
718
|
+
def show_connectors_async_invoker(self, request):
|
719
|
+
http_info = self._show_connectors_http_info(request)
|
720
|
+
return AsyncInvoker(self, http_info)
|
721
|
+
|
722
|
+
def _show_connectors_http_info(self, request):
|
723
|
+
http_info = {
|
724
|
+
"method": "GET",
|
725
|
+
"resource_path": "/v2/{project_id}/connectors",
|
726
|
+
"request_type": request.__class__.__name__,
|
727
|
+
"response_type": "ShowConnectorsResponse"
|
728
|
+
}
|
729
|
+
|
730
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
731
|
+
|
732
|
+
cname = None
|
733
|
+
|
734
|
+
collection_formats = {}
|
735
|
+
|
736
|
+
path_params = {}
|
737
|
+
|
738
|
+
query_params = []
|
739
|
+
if 'offset' in local_var_params:
|
740
|
+
query_params.append(('offset', local_var_params['offset']))
|
741
|
+
if 'limit' in local_var_params:
|
742
|
+
query_params.append(('limit', local_var_params['limit']))
|
743
|
+
if 'scope' in local_var_params:
|
744
|
+
query_params.append(('scope', local_var_params['scope']))
|
745
|
+
if 'category' in local_var_params:
|
746
|
+
query_params.append(('category', local_var_params['category']))
|
747
|
+
if 'name' in local_var_params:
|
748
|
+
query_params.append(('name', local_var_params['name']))
|
749
|
+
if 'operation_type' in local_var_params:
|
750
|
+
query_params.append(('operation_type', local_var_params['operation_type']))
|
751
|
+
|
752
|
+
header_params = {}
|
753
|
+
|
754
|
+
form_params = {}
|
755
|
+
|
756
|
+
body = None
|
757
|
+
if isinstance(request, SdkStreamRequest):
|
758
|
+
body = request.get_file_stream()
|
759
|
+
|
760
|
+
response_headers = []
|
761
|
+
|
762
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
763
|
+
['application/json'])
|
764
|
+
|
765
|
+
auth_settings = []
|
766
|
+
|
767
|
+
http_info["cname"] = cname
|
768
|
+
http_info["collection_formats"] = collection_formats
|
769
|
+
http_info["path_params"] = path_params
|
770
|
+
http_info["query_params"] = query_params
|
771
|
+
http_info["header_params"] = header_params
|
772
|
+
http_info["post_params"] = form_params
|
773
|
+
http_info["body"] = body
|
774
|
+
http_info["response_headers"] = response_headers
|
775
|
+
|
776
|
+
return http_info
|
777
|
+
|
778
|
+
def show_custom_connector_async(self, request):
|
779
|
+
r"""发布连接器
|
780
|
+
|
781
|
+
发布连接器
|
782
|
+
|
783
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
784
|
+
|
785
|
+
|
786
|
+
:param request: Request instance for ShowCustomConnector
|
787
|
+
:type request: :class:`huaweicloudsdkmssi.v1.ShowCustomConnectorRequest`
|
788
|
+
:rtype: :class:`huaweicloudsdkmssi.v1.ShowCustomConnectorResponse`
|
789
|
+
"""
|
790
|
+
http_info = self._show_custom_connector_http_info(request)
|
791
|
+
return self._call_api(**http_info)
|
792
|
+
|
793
|
+
def show_custom_connector_async_invoker(self, request):
|
794
|
+
http_info = self._show_custom_connector_http_info(request)
|
795
|
+
return AsyncInvoker(self, http_info)
|
796
|
+
|
797
|
+
def _show_custom_connector_http_info(self, request):
|
798
|
+
http_info = {
|
799
|
+
"method": "POST",
|
800
|
+
"resource_path": "/v2/{project_id}/connectors/custom-connectors/{connector_id}/release",
|
801
|
+
"request_type": request.__class__.__name__,
|
802
|
+
"response_type": "ShowCustomConnectorResponse"
|
803
|
+
}
|
804
|
+
|
805
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
806
|
+
|
807
|
+
cname = None
|
808
|
+
|
809
|
+
collection_formats = {}
|
810
|
+
|
811
|
+
path_params = {}
|
812
|
+
if 'connector_id' in local_var_params:
|
813
|
+
path_params['connector_id'] = local_var_params['connector_id']
|
814
|
+
|
815
|
+
query_params = []
|
816
|
+
|
817
|
+
header_params = {}
|
818
|
+
|
819
|
+
form_params = {}
|
820
|
+
|
821
|
+
body = None
|
822
|
+
if isinstance(request, SdkStreamRequest):
|
823
|
+
body = request.get_file_stream()
|
824
|
+
|
825
|
+
response_headers = []
|
826
|
+
|
827
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
828
|
+
['application/json'])
|
829
|
+
|
830
|
+
auth_settings = []
|
831
|
+
|
832
|
+
http_info["cname"] = cname
|
833
|
+
http_info["collection_formats"] = collection_formats
|
834
|
+
http_info["path_params"] = path_params
|
835
|
+
http_info["query_params"] = query_params
|
836
|
+
http_info["header_params"] = header_params
|
837
|
+
http_info["post_params"] = form_params
|
838
|
+
http_info["body"] = body
|
839
|
+
http_info["response_headers"] = response_headers
|
840
|
+
|
841
|
+
return http_info
|
842
|
+
|
843
|
+
def show_custom_connectors_async(self, request):
|
844
|
+
r"""查询CustomConnector列表
|
845
|
+
|
846
|
+
查询CustomConnector列表
|
847
|
+
|
848
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
849
|
+
|
850
|
+
|
851
|
+
:param request: Request instance for ShowCustomConnectors
|
852
|
+
:type request: :class:`huaweicloudsdkmssi.v1.ShowCustomConnectorsRequest`
|
853
|
+
:rtype: :class:`huaweicloudsdkmssi.v1.ShowCustomConnectorsResponse`
|
854
|
+
"""
|
855
|
+
http_info = self._show_custom_connectors_http_info(request)
|
856
|
+
return self._call_api(**http_info)
|
857
|
+
|
858
|
+
def show_custom_connectors_async_invoker(self, request):
|
859
|
+
http_info = self._show_custom_connectors_http_info(request)
|
860
|
+
return AsyncInvoker(self, http_info)
|
861
|
+
|
862
|
+
def _show_custom_connectors_http_info(self, request):
|
863
|
+
http_info = {
|
864
|
+
"method": "GET",
|
865
|
+
"resource_path": "/v2/{project_id}/connectors/custom-connectors",
|
866
|
+
"request_type": request.__class__.__name__,
|
867
|
+
"response_type": "ShowCustomConnectorsResponse"
|
868
|
+
}
|
869
|
+
|
870
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
871
|
+
|
872
|
+
cname = None
|
873
|
+
|
874
|
+
collection_formats = {}
|
875
|
+
|
876
|
+
path_params = {}
|
877
|
+
|
878
|
+
query_params = []
|
879
|
+
if 'offset' in local_var_params:
|
880
|
+
query_params.append(('offset', local_var_params['offset']))
|
881
|
+
if 'limit' in local_var_params:
|
882
|
+
query_params.append(('limit', local_var_params['limit']))
|
883
|
+
if 'name' in local_var_params:
|
884
|
+
query_params.append(('name', local_var_params['name']))
|
885
|
+
|
886
|
+
header_params = {}
|
887
|
+
|
888
|
+
form_params = {}
|
889
|
+
|
890
|
+
body = None
|
891
|
+
if isinstance(request, SdkStreamRequest):
|
892
|
+
body = request.get_file_stream()
|
893
|
+
|
894
|
+
response_headers = []
|
895
|
+
|
896
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
897
|
+
['application/json'])
|
898
|
+
|
899
|
+
auth_settings = []
|
900
|
+
|
901
|
+
http_info["cname"] = cname
|
902
|
+
http_info["collection_formats"] = collection_formats
|
903
|
+
http_info["path_params"] = path_params
|
904
|
+
http_info["query_params"] = query_params
|
905
|
+
http_info["header_params"] = header_params
|
906
|
+
http_info["post_params"] = form_params
|
907
|
+
http_info["body"] = body
|
908
|
+
http_info["response_headers"] = response_headers
|
909
|
+
|
910
|
+
return http_info
|
911
|
+
|
912
|
+
def show_single_connection_async(self, request):
|
913
|
+
r"""查询单个Connection
|
914
|
+
|
915
|
+
查询单个连接
|
916
|
+
|
917
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
918
|
+
|
919
|
+
|
920
|
+
:param request: Request instance for ShowSingleConnection
|
921
|
+
:type request: :class:`huaweicloudsdkmssi.v1.ShowSingleConnectionRequest`
|
922
|
+
:rtype: :class:`huaweicloudsdkmssi.v1.ShowSingleConnectionResponse`
|
923
|
+
"""
|
924
|
+
http_info = self._show_single_connection_http_info(request)
|
925
|
+
return self._call_api(**http_info)
|
926
|
+
|
927
|
+
def show_single_connection_async_invoker(self, request):
|
928
|
+
http_info = self._show_single_connection_http_info(request)
|
929
|
+
return AsyncInvoker(self, http_info)
|
930
|
+
|
931
|
+
def _show_single_connection_http_info(self, request):
|
932
|
+
http_info = {
|
933
|
+
"method": "GET",
|
934
|
+
"resource_path": "/v1/{project_id}/connections/{connect_id}",
|
935
|
+
"request_type": request.__class__.__name__,
|
936
|
+
"response_type": "ShowSingleConnectionResponse"
|
937
|
+
}
|
938
|
+
|
939
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
940
|
+
|
941
|
+
cname = None
|
942
|
+
|
943
|
+
collection_formats = {}
|
944
|
+
|
945
|
+
path_params = {}
|
946
|
+
if 'connect_id' in local_var_params:
|
947
|
+
path_params['connect_id'] = local_var_params['connect_id']
|
948
|
+
|
949
|
+
query_params = []
|
950
|
+
|
951
|
+
header_params = {}
|
952
|
+
|
953
|
+
form_params = {}
|
954
|
+
|
955
|
+
body = None
|
956
|
+
if isinstance(request, SdkStreamRequest):
|
957
|
+
body = request.get_file_stream()
|
958
|
+
|
959
|
+
response_headers = []
|
960
|
+
|
961
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
962
|
+
['application/json'])
|
963
|
+
|
964
|
+
auth_settings = []
|
965
|
+
|
966
|
+
http_info["cname"] = cname
|
967
|
+
http_info["collection_formats"] = collection_formats
|
968
|
+
http_info["path_params"] = path_params
|
969
|
+
http_info["query_params"] = query_params
|
970
|
+
http_info["header_params"] = header_params
|
971
|
+
http_info["post_params"] = form_params
|
972
|
+
http_info["body"] = body
|
973
|
+
http_info["response_headers"] = response_headers
|
974
|
+
|
975
|
+
return http_info
|
976
|
+
|
977
|
+
def update_connection_info_async(self, request):
|
978
|
+
r"""修改连接配置内容
|
979
|
+
|
980
|
+
|
981
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
982
|
+
|
983
|
+
|
984
|
+
:param request: Request instance for UpdateConnectionInfo
|
985
|
+
:type request: :class:`huaweicloudsdkmssi.v1.UpdateConnectionInfoRequest`
|
986
|
+
:rtype: :class:`huaweicloudsdkmssi.v1.UpdateConnectionInfoResponse`
|
987
|
+
"""
|
988
|
+
http_info = self._update_connection_info_http_info(request)
|
989
|
+
return self._call_api(**http_info)
|
990
|
+
|
991
|
+
def update_connection_info_async_invoker(self, request):
|
992
|
+
http_info = self._update_connection_info_http_info(request)
|
993
|
+
return AsyncInvoker(self, http_info)
|
994
|
+
|
995
|
+
def _update_connection_info_http_info(self, request):
|
996
|
+
http_info = {
|
997
|
+
"method": "PUT",
|
998
|
+
"resource_path": "/v1/{project_id}/connections/{connect_id}",
|
999
|
+
"request_type": request.__class__.__name__,
|
1000
|
+
"response_type": "UpdateConnectionInfoResponse"
|
1001
|
+
}
|
1002
|
+
|
1003
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
1004
|
+
|
1005
|
+
cname = None
|
1006
|
+
|
1007
|
+
collection_formats = {}
|
1008
|
+
|
1009
|
+
path_params = {}
|
1010
|
+
if 'connect_id' in local_var_params:
|
1011
|
+
path_params['connect_id'] = local_var_params['connect_id']
|
1012
|
+
|
1013
|
+
query_params = []
|
1014
|
+
|
1015
|
+
header_params = {}
|
1016
|
+
|
1017
|
+
form_params = {}
|
1018
|
+
|
1019
|
+
body = None
|
1020
|
+
if 'body' in local_var_params:
|
1021
|
+
body = local_var_params['body']
|
1022
|
+
if isinstance(request, SdkStreamRequest):
|
1023
|
+
body = request.get_file_stream()
|
1024
|
+
|
1025
|
+
response_headers = []
|
1026
|
+
|
1027
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
1028
|
+
['application/json;charset=UTF-8'])
|
1029
|
+
|
1030
|
+
auth_settings = []
|
1031
|
+
|
1032
|
+
http_info["cname"] = cname
|
1033
|
+
http_info["collection_formats"] = collection_formats
|
1034
|
+
http_info["path_params"] = path_params
|
1035
|
+
http_info["query_params"] = query_params
|
1036
|
+
http_info["header_params"] = header_params
|
1037
|
+
http_info["post_params"] = form_params
|
1038
|
+
http_info["body"] = body
|
1039
|
+
http_info["response_headers"] = response_headers
|
1040
|
+
|
1041
|
+
return http_info
|
1042
|
+
|
1043
|
+
def update_flow_async(self, request):
|
1044
|
+
r"""更新flow
|
1045
|
+
|
1046
|
+
更新flow
|
1047
|
+
|
1048
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
1049
|
+
|
1050
|
+
|
1051
|
+
:param request: Request instance for UpdateFlow
|
1052
|
+
:type request: :class:`huaweicloudsdkmssi.v1.UpdateFlowRequest`
|
1053
|
+
:rtype: :class:`huaweicloudsdkmssi.v1.UpdateFlowResponse`
|
1054
|
+
"""
|
1055
|
+
http_info = self._update_flow_http_info(request)
|
1056
|
+
return self._call_api(**http_info)
|
1057
|
+
|
1058
|
+
def update_flow_async_invoker(self, request):
|
1059
|
+
http_info = self._update_flow_http_info(request)
|
1060
|
+
return AsyncInvoker(self, http_info)
|
1061
|
+
|
1062
|
+
def _update_flow_http_info(self, request):
|
1063
|
+
http_info = {
|
1064
|
+
"method": "PUT",
|
1065
|
+
"resource_path": "/v1/{project_id}/flows/{flow_id}",
|
1066
|
+
"request_type": request.__class__.__name__,
|
1067
|
+
"response_type": "UpdateFlowResponse"
|
1068
|
+
}
|
1069
|
+
|
1070
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
1071
|
+
|
1072
|
+
cname = None
|
1073
|
+
|
1074
|
+
collection_formats = {}
|
1075
|
+
|
1076
|
+
path_params = {}
|
1077
|
+
if 'flow_id' in local_var_params:
|
1078
|
+
path_params['flow_id'] = local_var_params['flow_id']
|
1079
|
+
|
1080
|
+
query_params = []
|
1081
|
+
|
1082
|
+
header_params = {}
|
1083
|
+
|
1084
|
+
form_params = {}
|
1085
|
+
|
1086
|
+
body = None
|
1087
|
+
if 'body' in local_var_params:
|
1088
|
+
body = local_var_params['body']
|
1089
|
+
if isinstance(request, SdkStreamRequest):
|
1090
|
+
body = request.get_file_stream()
|
1091
|
+
|
1092
|
+
response_headers = []
|
1093
|
+
|
1094
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
1095
|
+
['application/json;charset=UTF-8'])
|
1096
|
+
|
1097
|
+
auth_settings = []
|
1098
|
+
|
1099
|
+
http_info["cname"] = cname
|
1100
|
+
http_info["collection_formats"] = collection_formats
|
1101
|
+
http_info["path_params"] = path_params
|
1102
|
+
http_info["query_params"] = query_params
|
1103
|
+
http_info["header_params"] = header_params
|
1104
|
+
http_info["post_params"] = form_params
|
1105
|
+
http_info["body"] = body
|
1106
|
+
http_info["response_headers"] = response_headers
|
1107
|
+
|
1108
|
+
return http_info
|
1109
|
+
|
1110
|
+
def _call_api(self, **kwargs):
|
1111
|
+
try:
|
1112
|
+
kwargs["async_request"] = True
|
1113
|
+
return self.do_http_request(**kwargs)
|
1114
|
+
except TypeError:
|
1115
|
+
import inspect
|
1116
|
+
params = inspect.signature(self.do_http_request).parameters
|
1117
|
+
http_info = {param_name: kwargs.get(param_name) for param_name in params if param_name in kwargs}
|
1118
|
+
return self.do_http_request(**http_info)
|
1119
|
+
|
1120
|
+
def call_api(self, resource_path, method, path_params=None, query_params=None, header_params=None, body=None,
|
1121
|
+
post_params=None, cname=None, response_type=None, response_headers=None, auth_settings=None,
|
1122
|
+
collection_formats=None, request_type=None):
|
1123
|
+
"""Makes the HTTP request and returns deserialized data.
|
1124
|
+
|
1125
|
+
:param resource_path: Path to method endpoint.
|
1126
|
+
:param method: Method to call.
|
1127
|
+
:param path_params: Path parameters in the url.
|
1128
|
+
:param query_params: Query parameters in the url.
|
1129
|
+
:param header_params: Header parameters to be
|
1130
|
+
placed in the request header.
|
1131
|
+
:param body: Request body.
|
1132
|
+
:param post_params: Request post form parameters,
|
1133
|
+
for `application/x-www-form-urlencoded`, `multipart/form-data`.
|
1134
|
+
:param cname: Used for obs endpoint.
|
1135
|
+
:param auth_settings: Auth Settings names for the request.
|
1136
|
+
:param response_type: Response data type.
|
1137
|
+
:param response_headers: Header should be added to response data.
|
1138
|
+
:param collection_formats: dict of collection formats for path, query,
|
1139
|
+
header, and post parameters.
|
1140
|
+
:param request_type: Request data type.
|
1141
|
+
:return:
|
1142
|
+
Return the response directly.
|
1143
|
+
"""
|
1144
|
+
return self.do_http_request(
|
1145
|
+
method=method,
|
1146
|
+
resource_path=resource_path,
|
1147
|
+
path_params=path_params,
|
1148
|
+
query_params=query_params,
|
1149
|
+
header_params=header_params,
|
1150
|
+
body=body,
|
1151
|
+
post_params=post_params,
|
1152
|
+
cname=cname,
|
1153
|
+
response_type=response_type,
|
1154
|
+
response_headers=response_headers,
|
1155
|
+
collection_formats=collection_formats,
|
1156
|
+
request_type=request_type,
|
1157
|
+
async_request=True)
|