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,361 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class BaseConnectionInfo:
|
9
|
+
|
10
|
+
"""
|
11
|
+
Attributes:
|
12
|
+
openapi_types (dict): The key is attribute name
|
13
|
+
and the value is attribute type.
|
14
|
+
attribute_map (dict): The key is attribute name
|
15
|
+
and the value is json key in definition.
|
16
|
+
"""
|
17
|
+
sensitive_list = []
|
18
|
+
|
19
|
+
openapi_types = {
|
20
|
+
'auth_config': 'object',
|
21
|
+
'auth_config_id': 'str',
|
22
|
+
'auth_dynamic': 'object',
|
23
|
+
'auth_info': 'object',
|
24
|
+
'auth_prop': 'object',
|
25
|
+
'auth_type': 'str',
|
26
|
+
'cdm_params_config': 'object',
|
27
|
+
'connection_name': 'str',
|
28
|
+
'connector_id': 'str',
|
29
|
+
'description': 'str',
|
30
|
+
'host_config': 'object'
|
31
|
+
}
|
32
|
+
|
33
|
+
attribute_map = {
|
34
|
+
'auth_config': 'auth_config',
|
35
|
+
'auth_config_id': 'auth_config_id',
|
36
|
+
'auth_dynamic': 'auth_dynamic',
|
37
|
+
'auth_info': 'auth_info',
|
38
|
+
'auth_prop': 'auth_prop',
|
39
|
+
'auth_type': 'auth_type',
|
40
|
+
'cdm_params_config': 'cdm_params_config',
|
41
|
+
'connection_name': 'connection_name',
|
42
|
+
'connector_id': 'connector_id',
|
43
|
+
'description': 'description',
|
44
|
+
'host_config': 'host_config'
|
45
|
+
}
|
46
|
+
|
47
|
+
def __init__(self, auth_config=None, auth_config_id=None, auth_dynamic=None, auth_info=None, auth_prop=None, auth_type=None, cdm_params_config=None, connection_name=None, connector_id=None, description=None, host_config=None):
|
48
|
+
r"""BaseConnectionInfo
|
49
|
+
|
50
|
+
The model defined in huaweicloud sdk
|
51
|
+
|
52
|
+
:param auth_config:
|
53
|
+
:type auth_config: object
|
54
|
+
:param auth_config_id:
|
55
|
+
:type auth_config_id: str
|
56
|
+
:param auth_dynamic:
|
57
|
+
:type auth_dynamic: object
|
58
|
+
:param auth_info:
|
59
|
+
:type auth_info: object
|
60
|
+
:param auth_prop:
|
61
|
+
:type auth_prop: object
|
62
|
+
:param auth_type:
|
63
|
+
:type auth_type: str
|
64
|
+
:param cdm_params_config:
|
65
|
+
:type cdm_params_config: object
|
66
|
+
:param connection_name:
|
67
|
+
:type connection_name: str
|
68
|
+
:param connector_id:
|
69
|
+
:type connector_id: str
|
70
|
+
:param description:
|
71
|
+
:type description: str
|
72
|
+
:param host_config:
|
73
|
+
:type host_config: object
|
74
|
+
"""
|
75
|
+
|
76
|
+
|
77
|
+
|
78
|
+
self._auth_config = None
|
79
|
+
self._auth_config_id = None
|
80
|
+
self._auth_dynamic = None
|
81
|
+
self._auth_info = None
|
82
|
+
self._auth_prop = None
|
83
|
+
self._auth_type = None
|
84
|
+
self._cdm_params_config = None
|
85
|
+
self._connection_name = None
|
86
|
+
self._connector_id = None
|
87
|
+
self._description = None
|
88
|
+
self._host_config = None
|
89
|
+
self.discriminator = None
|
90
|
+
|
91
|
+
if auth_config is not None:
|
92
|
+
self.auth_config = auth_config
|
93
|
+
if auth_config_id is not None:
|
94
|
+
self.auth_config_id = auth_config_id
|
95
|
+
if auth_dynamic is not None:
|
96
|
+
self.auth_dynamic = auth_dynamic
|
97
|
+
if auth_info is not None:
|
98
|
+
self.auth_info = auth_info
|
99
|
+
if auth_prop is not None:
|
100
|
+
self.auth_prop = auth_prop
|
101
|
+
if auth_type is not None:
|
102
|
+
self.auth_type = auth_type
|
103
|
+
if cdm_params_config is not None:
|
104
|
+
self.cdm_params_config = cdm_params_config
|
105
|
+
if connection_name is not None:
|
106
|
+
self.connection_name = connection_name
|
107
|
+
if connector_id is not None:
|
108
|
+
self.connector_id = connector_id
|
109
|
+
if description is not None:
|
110
|
+
self.description = description
|
111
|
+
if host_config is not None:
|
112
|
+
self.host_config = host_config
|
113
|
+
|
114
|
+
@property
|
115
|
+
def auth_config(self):
|
116
|
+
r"""Gets the auth_config of this BaseConnectionInfo.
|
117
|
+
|
118
|
+
:return: The auth_config of this BaseConnectionInfo.
|
119
|
+
:rtype: object
|
120
|
+
"""
|
121
|
+
return self._auth_config
|
122
|
+
|
123
|
+
@auth_config.setter
|
124
|
+
def auth_config(self, auth_config):
|
125
|
+
r"""Sets the auth_config of this BaseConnectionInfo.
|
126
|
+
|
127
|
+
:param auth_config: The auth_config of this BaseConnectionInfo.
|
128
|
+
:type auth_config: object
|
129
|
+
"""
|
130
|
+
self._auth_config = auth_config
|
131
|
+
|
132
|
+
@property
|
133
|
+
def auth_config_id(self):
|
134
|
+
r"""Gets the auth_config_id of this BaseConnectionInfo.
|
135
|
+
|
136
|
+
:return: The auth_config_id of this BaseConnectionInfo.
|
137
|
+
:rtype: str
|
138
|
+
"""
|
139
|
+
return self._auth_config_id
|
140
|
+
|
141
|
+
@auth_config_id.setter
|
142
|
+
def auth_config_id(self, auth_config_id):
|
143
|
+
r"""Sets the auth_config_id of this BaseConnectionInfo.
|
144
|
+
|
145
|
+
:param auth_config_id: The auth_config_id of this BaseConnectionInfo.
|
146
|
+
:type auth_config_id: str
|
147
|
+
"""
|
148
|
+
self._auth_config_id = auth_config_id
|
149
|
+
|
150
|
+
@property
|
151
|
+
def auth_dynamic(self):
|
152
|
+
r"""Gets the auth_dynamic of this BaseConnectionInfo.
|
153
|
+
|
154
|
+
:return: The auth_dynamic of this BaseConnectionInfo.
|
155
|
+
:rtype: object
|
156
|
+
"""
|
157
|
+
return self._auth_dynamic
|
158
|
+
|
159
|
+
@auth_dynamic.setter
|
160
|
+
def auth_dynamic(self, auth_dynamic):
|
161
|
+
r"""Sets the auth_dynamic of this BaseConnectionInfo.
|
162
|
+
|
163
|
+
:param auth_dynamic: The auth_dynamic of this BaseConnectionInfo.
|
164
|
+
:type auth_dynamic: object
|
165
|
+
"""
|
166
|
+
self._auth_dynamic = auth_dynamic
|
167
|
+
|
168
|
+
@property
|
169
|
+
def auth_info(self):
|
170
|
+
r"""Gets the auth_info of this BaseConnectionInfo.
|
171
|
+
|
172
|
+
:return: The auth_info of this BaseConnectionInfo.
|
173
|
+
:rtype: object
|
174
|
+
"""
|
175
|
+
return self._auth_info
|
176
|
+
|
177
|
+
@auth_info.setter
|
178
|
+
def auth_info(self, auth_info):
|
179
|
+
r"""Sets the auth_info of this BaseConnectionInfo.
|
180
|
+
|
181
|
+
:param auth_info: The auth_info of this BaseConnectionInfo.
|
182
|
+
:type auth_info: object
|
183
|
+
"""
|
184
|
+
self._auth_info = auth_info
|
185
|
+
|
186
|
+
@property
|
187
|
+
def auth_prop(self):
|
188
|
+
r"""Gets the auth_prop of this BaseConnectionInfo.
|
189
|
+
|
190
|
+
:return: The auth_prop of this BaseConnectionInfo.
|
191
|
+
:rtype: object
|
192
|
+
"""
|
193
|
+
return self._auth_prop
|
194
|
+
|
195
|
+
@auth_prop.setter
|
196
|
+
def auth_prop(self, auth_prop):
|
197
|
+
r"""Sets the auth_prop of this BaseConnectionInfo.
|
198
|
+
|
199
|
+
:param auth_prop: The auth_prop of this BaseConnectionInfo.
|
200
|
+
:type auth_prop: object
|
201
|
+
"""
|
202
|
+
self._auth_prop = auth_prop
|
203
|
+
|
204
|
+
@property
|
205
|
+
def auth_type(self):
|
206
|
+
r"""Gets the auth_type of this BaseConnectionInfo.
|
207
|
+
|
208
|
+
:return: The auth_type of this BaseConnectionInfo.
|
209
|
+
:rtype: str
|
210
|
+
"""
|
211
|
+
return self._auth_type
|
212
|
+
|
213
|
+
@auth_type.setter
|
214
|
+
def auth_type(self, auth_type):
|
215
|
+
r"""Sets the auth_type of this BaseConnectionInfo.
|
216
|
+
|
217
|
+
:param auth_type: The auth_type of this BaseConnectionInfo.
|
218
|
+
:type auth_type: str
|
219
|
+
"""
|
220
|
+
self._auth_type = auth_type
|
221
|
+
|
222
|
+
@property
|
223
|
+
def cdm_params_config(self):
|
224
|
+
r"""Gets the cdm_params_config of this BaseConnectionInfo.
|
225
|
+
|
226
|
+
:return: The cdm_params_config of this BaseConnectionInfo.
|
227
|
+
:rtype: object
|
228
|
+
"""
|
229
|
+
return self._cdm_params_config
|
230
|
+
|
231
|
+
@cdm_params_config.setter
|
232
|
+
def cdm_params_config(self, cdm_params_config):
|
233
|
+
r"""Sets the cdm_params_config of this BaseConnectionInfo.
|
234
|
+
|
235
|
+
:param cdm_params_config: The cdm_params_config of this BaseConnectionInfo.
|
236
|
+
:type cdm_params_config: object
|
237
|
+
"""
|
238
|
+
self._cdm_params_config = cdm_params_config
|
239
|
+
|
240
|
+
@property
|
241
|
+
def connection_name(self):
|
242
|
+
r"""Gets the connection_name of this BaseConnectionInfo.
|
243
|
+
|
244
|
+
:return: The connection_name of this BaseConnectionInfo.
|
245
|
+
:rtype: str
|
246
|
+
"""
|
247
|
+
return self._connection_name
|
248
|
+
|
249
|
+
@connection_name.setter
|
250
|
+
def connection_name(self, connection_name):
|
251
|
+
r"""Sets the connection_name of this BaseConnectionInfo.
|
252
|
+
|
253
|
+
:param connection_name: The connection_name of this BaseConnectionInfo.
|
254
|
+
:type connection_name: str
|
255
|
+
"""
|
256
|
+
self._connection_name = connection_name
|
257
|
+
|
258
|
+
@property
|
259
|
+
def connector_id(self):
|
260
|
+
r"""Gets the connector_id of this BaseConnectionInfo.
|
261
|
+
|
262
|
+
:return: The connector_id of this BaseConnectionInfo.
|
263
|
+
:rtype: str
|
264
|
+
"""
|
265
|
+
return self._connector_id
|
266
|
+
|
267
|
+
@connector_id.setter
|
268
|
+
def connector_id(self, connector_id):
|
269
|
+
r"""Sets the connector_id of this BaseConnectionInfo.
|
270
|
+
|
271
|
+
:param connector_id: The connector_id of this BaseConnectionInfo.
|
272
|
+
:type connector_id: str
|
273
|
+
"""
|
274
|
+
self._connector_id = connector_id
|
275
|
+
|
276
|
+
@property
|
277
|
+
def description(self):
|
278
|
+
r"""Gets the description of this BaseConnectionInfo.
|
279
|
+
|
280
|
+
:return: The description of this BaseConnectionInfo.
|
281
|
+
:rtype: str
|
282
|
+
"""
|
283
|
+
return self._description
|
284
|
+
|
285
|
+
@description.setter
|
286
|
+
def description(self, description):
|
287
|
+
r"""Sets the description of this BaseConnectionInfo.
|
288
|
+
|
289
|
+
:param description: The description of this BaseConnectionInfo.
|
290
|
+
:type description: str
|
291
|
+
"""
|
292
|
+
self._description = description
|
293
|
+
|
294
|
+
@property
|
295
|
+
def host_config(self):
|
296
|
+
r"""Gets the host_config of this BaseConnectionInfo.
|
297
|
+
|
298
|
+
:return: The host_config of this BaseConnectionInfo.
|
299
|
+
:rtype: object
|
300
|
+
"""
|
301
|
+
return self._host_config
|
302
|
+
|
303
|
+
@host_config.setter
|
304
|
+
def host_config(self, host_config):
|
305
|
+
r"""Sets the host_config of this BaseConnectionInfo.
|
306
|
+
|
307
|
+
:param host_config: The host_config of this BaseConnectionInfo.
|
308
|
+
:type host_config: object
|
309
|
+
"""
|
310
|
+
self._host_config = host_config
|
311
|
+
|
312
|
+
def to_dict(self):
|
313
|
+
"""Returns the model properties as a dict"""
|
314
|
+
result = {}
|
315
|
+
|
316
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
317
|
+
value = getattr(self, attr)
|
318
|
+
if isinstance(value, list):
|
319
|
+
result[attr] = list(map(
|
320
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
321
|
+
value
|
322
|
+
))
|
323
|
+
elif hasattr(value, "to_dict"):
|
324
|
+
result[attr] = value.to_dict()
|
325
|
+
elif isinstance(value, dict):
|
326
|
+
result[attr] = dict(map(
|
327
|
+
lambda item: (item[0], item[1].to_dict())
|
328
|
+
if hasattr(item[1], "to_dict") else item,
|
329
|
+
value.items()
|
330
|
+
))
|
331
|
+
else:
|
332
|
+
if attr in self.sensitive_list:
|
333
|
+
result[attr] = "****"
|
334
|
+
else:
|
335
|
+
result[attr] = value
|
336
|
+
|
337
|
+
return result
|
338
|
+
|
339
|
+
def to_str(self):
|
340
|
+
"""Returns the string representation of the model"""
|
341
|
+
import simplejson as json
|
342
|
+
if six.PY2:
|
343
|
+
import sys
|
344
|
+
reload(sys)
|
345
|
+
sys.setdefaultencoding("utf-8")
|
346
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
347
|
+
|
348
|
+
def __repr__(self):
|
349
|
+
"""For `print`"""
|
350
|
+
return self.to_str()
|
351
|
+
|
352
|
+
def __eq__(self, other):
|
353
|
+
"""Returns true if both objects are equal"""
|
354
|
+
if not isinstance(other, BaseConnectionInfo):
|
355
|
+
return False
|
356
|
+
|
357
|
+
return self.__dict__ == other.__dict__
|
358
|
+
|
359
|
+
def __ne__(self, other):
|
360
|
+
"""Returns true if both objects are not equal"""
|
361
|
+
return not self == other
|