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.
Files changed (57) hide show
  1. huaweicloudsdkmssi/__init__.py +0 -0
  2. huaweicloudsdkmssi/v1/__init__.py +53 -0
  3. huaweicloudsdkmssi/v1/model/__init__.py +50 -0
  4. huaweicloudsdkmssi/v1/model/action_base_info.py +542 -0
  5. huaweicloudsdkmssi/v1/model/api_config.py +115 -0
  6. huaweicloudsdkmssi/v1/model/auth_config_a.py +261 -0
  7. huaweicloudsdkmssi/v1/model/base_connection_info.py +361 -0
  8. huaweicloudsdkmssi/v1/model/connection_info.py +761 -0
  9. huaweicloudsdkmssi/v1/model/connector_info.py +753 -0
  10. huaweicloudsdkmssi/v1/model/connector_info0.py +575 -0
  11. huaweicloudsdkmssi/v1/model/create_connection_info_request.py +111 -0
  12. huaweicloudsdkmssi/v1/model/create_connection_info_response.py +174 -0
  13. huaweicloudsdkmssi/v1/model/create_custom_connector_from_openapi_request.py +111 -0
  14. huaweicloudsdkmssi/v1/model/create_custom_connector_from_openapi_response.py +282 -0
  15. huaweicloudsdkmssi/v1/model/create_flow_request.py +111 -0
  16. huaweicloudsdkmssi/v1/model/create_flow_response.py +203 -0
  17. huaweicloudsdkmssi/v1/model/create_flow_template_from_flow_request.py +139 -0
  18. huaweicloudsdkmssi/v1/model/create_flow_template_from_flow_response.py +203 -0
  19. huaweicloudsdkmssi/v1/model/custom_connector_info_v2.py +244 -0
  20. huaweicloudsdkmssi/v1/model/delete_connection_info_request.py +114 -0
  21. huaweicloudsdkmssi/v1/model/delete_connection_info_response.py +174 -0
  22. huaweicloudsdkmssi/v1/model/delete_custom_connector_request.py +114 -0
  23. huaweicloudsdkmssi/v1/model/delete_custom_connector_response.py +174 -0
  24. huaweicloudsdkmssi/v1/model/delete_flow_request.py +114 -0
  25. huaweicloudsdkmssi/v1/model/delete_flow_response.py +174 -0
  26. huaweicloudsdkmssi/v1/model/flow_meta.py +1114 -0
  27. huaweicloudsdkmssi/v1/model/runtime_permission.py +231 -0
  28. huaweicloudsdkmssi/v1/model/search_flow_by_id_request.py +143 -0
  29. huaweicloudsdkmssi/v1/model/search_flow_by_id_response.py +1115 -0
  30. huaweicloudsdkmssi/v1/model/show_all_connections_request.py +171 -0
  31. huaweicloudsdkmssi/v1/model/show_all_connections_response.py +85 -0
  32. huaweicloudsdkmssi/v1/model/show_all_flows_request.py +258 -0
  33. huaweicloudsdkmssi/v1/model/show_all_flows_response.py +145 -0
  34. huaweicloudsdkmssi/v1/model/show_connectors_request.py +258 -0
  35. huaweicloudsdkmssi/v1/model/show_connectors_response.py +145 -0
  36. huaweicloudsdkmssi/v1/model/show_custom_connector_request.py +114 -0
  37. huaweicloudsdkmssi/v1/model/show_custom_connector_response.py +174 -0
  38. huaweicloudsdkmssi/v1/model/show_custom_connectors_request.py +171 -0
  39. huaweicloudsdkmssi/v1/model/show_custom_connectors_response.py +145 -0
  40. huaweicloudsdkmssi/v1/model/show_single_connection_request.py +114 -0
  41. huaweicloudsdkmssi/v1/model/show_single_connection_response.py +762 -0
  42. huaweicloudsdkmssi/v1/model/tag.py +144 -0
  43. huaweicloudsdkmssi/v1/model/template_message.py +171 -0
  44. huaweicloudsdkmssi/v1/model/trigger_base_info.py +542 -0
  45. huaweicloudsdkmssi/v1/model/update_connection_info_request.py +139 -0
  46. huaweicloudsdkmssi/v1/model/update_connection_info_response.py +174 -0
  47. huaweicloudsdkmssi/v1/model/update_flow_request.py +139 -0
  48. huaweicloudsdkmssi/v1/model/update_flow_response.py +203 -0
  49. huaweicloudsdkmssi/v1/mssi_async_client.py +1157 -0
  50. huaweicloudsdkmssi/v1/mssi_client.py +1154 -0
  51. huaweicloudsdkmssi/v1/region/__init__.py +0 -0
  52. huaweicloudsdkmssi/v1/region/mssi_region.py +31 -0
  53. huaweicloudsdkmssi-3.1.160.dist-info/LICENSE +13 -0
  54. huaweicloudsdkmssi-3.1.160.dist-info/METADATA +26 -0
  55. huaweicloudsdkmssi-3.1.160.dist-info/RECORD +57 -0
  56. huaweicloudsdkmssi-3.1.160.dist-info/WHEEL +5 -0
  57. huaweicloudsdkmssi-3.1.160.dist-info/top_level.txt +1 -0
@@ -0,0 +1,258 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class ShowConnectorsRequest:
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
+ 'offset': 'int',
21
+ 'limit': 'int',
22
+ 'scope': 'str',
23
+ 'category': 'str',
24
+ 'name': 'str',
25
+ 'operation_type': 'str'
26
+ }
27
+
28
+ attribute_map = {
29
+ 'offset': 'offset',
30
+ 'limit': 'limit',
31
+ 'scope': 'scope',
32
+ 'category': 'category',
33
+ 'name': 'name',
34
+ 'operation_type': 'operation_type'
35
+ }
36
+
37
+ def __init__(self, offset=None, limit=None, scope=None, category=None, name=None, operation_type=None):
38
+ r"""ShowConnectorsRequest
39
+
40
+ The model defined in huaweicloud sdk
41
+
42
+ :param offset: 偏移量,表示从此偏移量开始查询, offset大于等于0
43
+ :type offset: int
44
+ :param limit: 每页显示的条目数量
45
+ :type limit: int
46
+ :param scope: 连接器分类:onboard:查询所有的上架的、custom:自己创建的连接器
47
+ :type scope: str
48
+ :param category: 连接器种类(连接器市场的tab分类)
49
+ :type category: str
50
+ :param name: CustomConnectors的名字
51
+ :type name: str
52
+ :param operation_type: operation条件过滤
53
+ :type operation_type: str
54
+ """
55
+
56
+
57
+
58
+ self._offset = None
59
+ self._limit = None
60
+ self._scope = None
61
+ self._category = None
62
+ self._name = None
63
+ self._operation_type = None
64
+ self.discriminator = None
65
+
66
+ self.offset = offset
67
+ self.limit = limit
68
+ if scope is not None:
69
+ self.scope = scope
70
+ if category is not None:
71
+ self.category = category
72
+ if name is not None:
73
+ self.name = name
74
+ if operation_type is not None:
75
+ self.operation_type = operation_type
76
+
77
+ @property
78
+ def offset(self):
79
+ r"""Gets the offset of this ShowConnectorsRequest.
80
+
81
+ 偏移量,表示从此偏移量开始查询, offset大于等于0
82
+
83
+ :return: The offset of this ShowConnectorsRequest.
84
+ :rtype: int
85
+ """
86
+ return self._offset
87
+
88
+ @offset.setter
89
+ def offset(self, offset):
90
+ r"""Sets the offset of this ShowConnectorsRequest.
91
+
92
+ 偏移量,表示从此偏移量开始查询, offset大于等于0
93
+
94
+ :param offset: The offset of this ShowConnectorsRequest.
95
+ :type offset: int
96
+ """
97
+ self._offset = offset
98
+
99
+ @property
100
+ def limit(self):
101
+ r"""Gets the limit of this ShowConnectorsRequest.
102
+
103
+ 每页显示的条目数量
104
+
105
+ :return: The limit of this ShowConnectorsRequest.
106
+ :rtype: int
107
+ """
108
+ return self._limit
109
+
110
+ @limit.setter
111
+ def limit(self, limit):
112
+ r"""Sets the limit of this ShowConnectorsRequest.
113
+
114
+ 每页显示的条目数量
115
+
116
+ :param limit: The limit of this ShowConnectorsRequest.
117
+ :type limit: int
118
+ """
119
+ self._limit = limit
120
+
121
+ @property
122
+ def scope(self):
123
+ r"""Gets the scope of this ShowConnectorsRequest.
124
+
125
+ 连接器分类:onboard:查询所有的上架的、custom:自己创建的连接器
126
+
127
+ :return: The scope of this ShowConnectorsRequest.
128
+ :rtype: str
129
+ """
130
+ return self._scope
131
+
132
+ @scope.setter
133
+ def scope(self, scope):
134
+ r"""Sets the scope of this ShowConnectorsRequest.
135
+
136
+ 连接器分类:onboard:查询所有的上架的、custom:自己创建的连接器
137
+
138
+ :param scope: The scope of this ShowConnectorsRequest.
139
+ :type scope: str
140
+ """
141
+ self._scope = scope
142
+
143
+ @property
144
+ def category(self):
145
+ r"""Gets the category of this ShowConnectorsRequest.
146
+
147
+ 连接器种类(连接器市场的tab分类)
148
+
149
+ :return: The category of this ShowConnectorsRequest.
150
+ :rtype: str
151
+ """
152
+ return self._category
153
+
154
+ @category.setter
155
+ def category(self, category):
156
+ r"""Sets the category of this ShowConnectorsRequest.
157
+
158
+ 连接器种类(连接器市场的tab分类)
159
+
160
+ :param category: The category of this ShowConnectorsRequest.
161
+ :type category: str
162
+ """
163
+ self._category = category
164
+
165
+ @property
166
+ def name(self):
167
+ r"""Gets the name of this ShowConnectorsRequest.
168
+
169
+ CustomConnectors的名字
170
+
171
+ :return: The name of this ShowConnectorsRequest.
172
+ :rtype: str
173
+ """
174
+ return self._name
175
+
176
+ @name.setter
177
+ def name(self, name):
178
+ r"""Sets the name of this ShowConnectorsRequest.
179
+
180
+ CustomConnectors的名字
181
+
182
+ :param name: The name of this ShowConnectorsRequest.
183
+ :type name: str
184
+ """
185
+ self._name = name
186
+
187
+ @property
188
+ def operation_type(self):
189
+ r"""Gets the operation_type of this ShowConnectorsRequest.
190
+
191
+ operation条件过滤
192
+
193
+ :return: The operation_type of this ShowConnectorsRequest.
194
+ :rtype: str
195
+ """
196
+ return self._operation_type
197
+
198
+ @operation_type.setter
199
+ def operation_type(self, operation_type):
200
+ r"""Sets the operation_type of this ShowConnectorsRequest.
201
+
202
+ operation条件过滤
203
+
204
+ :param operation_type: The operation_type of this ShowConnectorsRequest.
205
+ :type operation_type: str
206
+ """
207
+ self._operation_type = operation_type
208
+
209
+ def to_dict(self):
210
+ """Returns the model properties as a dict"""
211
+ result = {}
212
+
213
+ for attr, _ in six.iteritems(self.openapi_types):
214
+ value = getattr(self, attr)
215
+ if isinstance(value, list):
216
+ result[attr] = list(map(
217
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
218
+ value
219
+ ))
220
+ elif hasattr(value, "to_dict"):
221
+ result[attr] = value.to_dict()
222
+ elif isinstance(value, dict):
223
+ result[attr] = dict(map(
224
+ lambda item: (item[0], item[1].to_dict())
225
+ if hasattr(item[1], "to_dict") else item,
226
+ value.items()
227
+ ))
228
+ else:
229
+ if attr in self.sensitive_list:
230
+ result[attr] = "****"
231
+ else:
232
+ result[attr] = value
233
+
234
+ return result
235
+
236
+ def to_str(self):
237
+ """Returns the string representation of the model"""
238
+ import simplejson as json
239
+ if six.PY2:
240
+ import sys
241
+ reload(sys)
242
+ sys.setdefaultencoding("utf-8")
243
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
244
+
245
+ def __repr__(self):
246
+ """For `print`"""
247
+ return self.to_str()
248
+
249
+ def __eq__(self, other):
250
+ """Returns true if both objects are equal"""
251
+ if not isinstance(other, ShowConnectorsRequest):
252
+ return False
253
+
254
+ return self.__dict__ == other.__dict__
255
+
256
+ def __ne__(self, other):
257
+ """Returns true if both objects are not equal"""
258
+ return not self == other
@@ -0,0 +1,145 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.sdk_response import SdkResponse
6
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
7
+
8
+
9
+ class ShowConnectorsResponse(SdkResponse):
10
+
11
+ """
12
+ Attributes:
13
+ openapi_types (dict): The key is attribute name
14
+ and the value is attribute type.
15
+ attribute_map (dict): The key is attribute name
16
+ and the value is json key in definition.
17
+ """
18
+ sensitive_list = []
19
+
20
+ openapi_types = {
21
+ 'connectors': 'list[ConnectorInfo]',
22
+ 'count': 'int'
23
+ }
24
+
25
+ attribute_map = {
26
+ 'connectors': 'connectors',
27
+ 'count': 'count'
28
+ }
29
+
30
+ def __init__(self, connectors=None, count=None):
31
+ r"""ShowConnectorsResponse
32
+
33
+ The model defined in huaweicloud sdk
34
+
35
+ :param connectors: 连接器列表
36
+ :type connectors: list[:class:`huaweicloudsdkmssi.v1.ConnectorInfo`]
37
+ :param count: 连接器数量
38
+ :type count: int
39
+ """
40
+
41
+ super(ShowConnectorsResponse, self).__init__()
42
+
43
+ self._connectors = None
44
+ self._count = None
45
+ self.discriminator = None
46
+
47
+ if connectors is not None:
48
+ self.connectors = connectors
49
+ if count is not None:
50
+ self.count = count
51
+
52
+ @property
53
+ def connectors(self):
54
+ r"""Gets the connectors of this ShowConnectorsResponse.
55
+
56
+ 连接器列表
57
+
58
+ :return: The connectors of this ShowConnectorsResponse.
59
+ :rtype: list[:class:`huaweicloudsdkmssi.v1.ConnectorInfo`]
60
+ """
61
+ return self._connectors
62
+
63
+ @connectors.setter
64
+ def connectors(self, connectors):
65
+ r"""Sets the connectors of this ShowConnectorsResponse.
66
+
67
+ 连接器列表
68
+
69
+ :param connectors: The connectors of this ShowConnectorsResponse.
70
+ :type connectors: list[:class:`huaweicloudsdkmssi.v1.ConnectorInfo`]
71
+ """
72
+ self._connectors = connectors
73
+
74
+ @property
75
+ def count(self):
76
+ r"""Gets the count of this ShowConnectorsResponse.
77
+
78
+ 连接器数量
79
+
80
+ :return: The count of this ShowConnectorsResponse.
81
+ :rtype: int
82
+ """
83
+ return self._count
84
+
85
+ @count.setter
86
+ def count(self, count):
87
+ r"""Sets the count of this ShowConnectorsResponse.
88
+
89
+ 连接器数量
90
+
91
+ :param count: The count of this ShowConnectorsResponse.
92
+ :type count: int
93
+ """
94
+ self._count = count
95
+
96
+ def to_dict(self):
97
+ """Returns the model properties as a dict"""
98
+ result = {}
99
+
100
+ for attr, _ in six.iteritems(self.openapi_types):
101
+ value = getattr(self, attr)
102
+ if isinstance(value, list):
103
+ result[attr] = list(map(
104
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
105
+ value
106
+ ))
107
+ elif hasattr(value, "to_dict"):
108
+ result[attr] = value.to_dict()
109
+ elif isinstance(value, dict):
110
+ result[attr] = dict(map(
111
+ lambda item: (item[0], item[1].to_dict())
112
+ if hasattr(item[1], "to_dict") else item,
113
+ value.items()
114
+ ))
115
+ else:
116
+ if attr in self.sensitive_list:
117
+ result[attr] = "****"
118
+ else:
119
+ result[attr] = value
120
+
121
+ return result
122
+
123
+ def to_str(self):
124
+ """Returns the string representation of the model"""
125
+ import simplejson as json
126
+ if six.PY2:
127
+ import sys
128
+ reload(sys)
129
+ sys.setdefaultencoding("utf-8")
130
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
131
+
132
+ def __repr__(self):
133
+ """For `print`"""
134
+ return self.to_str()
135
+
136
+ def __eq__(self, other):
137
+ """Returns true if both objects are equal"""
138
+ if not isinstance(other, ShowConnectorsResponse):
139
+ return False
140
+
141
+ return self.__dict__ == other.__dict__
142
+
143
+ def __ne__(self, other):
144
+ """Returns true if both objects are not equal"""
145
+ return not self == other
@@ -0,0 +1,114 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class ShowCustomConnectorRequest:
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
+ 'connector_id': 'str'
21
+ }
22
+
23
+ attribute_map = {
24
+ 'connector_id': 'connector_id'
25
+ }
26
+
27
+ def __init__(self, connector_id=None):
28
+ r"""ShowCustomConnectorRequest
29
+
30
+ The model defined in huaweicloud sdk
31
+
32
+ :param connector_id: 连接器ID
33
+ :type connector_id: str
34
+ """
35
+
36
+
37
+
38
+ self._connector_id = None
39
+ self.discriminator = None
40
+
41
+ self.connector_id = connector_id
42
+
43
+ @property
44
+ def connector_id(self):
45
+ r"""Gets the connector_id of this ShowCustomConnectorRequest.
46
+
47
+ 连接器ID
48
+
49
+ :return: The connector_id of this ShowCustomConnectorRequest.
50
+ :rtype: str
51
+ """
52
+ return self._connector_id
53
+
54
+ @connector_id.setter
55
+ def connector_id(self, connector_id):
56
+ r"""Sets the connector_id of this ShowCustomConnectorRequest.
57
+
58
+ 连接器ID
59
+
60
+ :param connector_id: The connector_id of this ShowCustomConnectorRequest.
61
+ :type connector_id: str
62
+ """
63
+ self._connector_id = connector_id
64
+
65
+ def to_dict(self):
66
+ """Returns the model properties as a dict"""
67
+ result = {}
68
+
69
+ for attr, _ in six.iteritems(self.openapi_types):
70
+ value = getattr(self, attr)
71
+ if isinstance(value, list):
72
+ result[attr] = list(map(
73
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
74
+ value
75
+ ))
76
+ elif hasattr(value, "to_dict"):
77
+ result[attr] = value.to_dict()
78
+ elif isinstance(value, dict):
79
+ result[attr] = dict(map(
80
+ lambda item: (item[0], item[1].to_dict())
81
+ if hasattr(item[1], "to_dict") else item,
82
+ value.items()
83
+ ))
84
+ else:
85
+ if attr in self.sensitive_list:
86
+ result[attr] = "****"
87
+ else:
88
+ result[attr] = value
89
+
90
+ return result
91
+
92
+ def to_str(self):
93
+ """Returns the string representation of the model"""
94
+ import simplejson as json
95
+ if six.PY2:
96
+ import sys
97
+ reload(sys)
98
+ sys.setdefaultencoding("utf-8")
99
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
100
+
101
+ def __repr__(self):
102
+ """For `print`"""
103
+ return self.to_str()
104
+
105
+ def __eq__(self, other):
106
+ """Returns true if both objects are equal"""
107
+ if not isinstance(other, ShowCustomConnectorRequest):
108
+ return False
109
+
110
+ return self.__dict__ == other.__dict__
111
+
112
+ def __ne__(self, other):
113
+ """Returns true if both objects are not equal"""
114
+ return not self == other
@@ -0,0 +1,174 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.sdk_response import SdkResponse
6
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
7
+
8
+
9
+ class ShowCustomConnectorResponse(SdkResponse):
10
+
11
+ """
12
+ Attributes:
13
+ openapi_types (dict): The key is attribute name
14
+ and the value is attribute type.
15
+ attribute_map (dict): The key is attribute name
16
+ and the value is json key in definition.
17
+ """
18
+ sensitive_list = []
19
+
20
+ openapi_types = {
21
+ 'res_code': 'int',
22
+ 'res_log': 'str',
23
+ 'res_msg': 'str'
24
+ }
25
+
26
+ attribute_map = {
27
+ 'res_code': 'res_code',
28
+ 'res_log': 'res_log',
29
+ 'res_msg': 'res_msg'
30
+ }
31
+
32
+ def __init__(self, res_code=None, res_log=None, res_msg=None):
33
+ r"""ShowCustomConnectorResponse
34
+
35
+ The model defined in huaweicloud sdk
36
+
37
+ :param res_code: 状态码
38
+ :type res_code: int
39
+ :param res_log: 成功信息
40
+ :type res_log: str
41
+ :param res_msg: 成功信息
42
+ :type res_msg: str
43
+ """
44
+
45
+ super(ShowCustomConnectorResponse, self).__init__()
46
+
47
+ self._res_code = None
48
+ self._res_log = None
49
+ self._res_msg = None
50
+ self.discriminator = None
51
+
52
+ if res_code is not None:
53
+ self.res_code = res_code
54
+ if res_log is not None:
55
+ self.res_log = res_log
56
+ if res_msg is not None:
57
+ self.res_msg = res_msg
58
+
59
+ @property
60
+ def res_code(self):
61
+ r"""Gets the res_code of this ShowCustomConnectorResponse.
62
+
63
+ 状态码
64
+
65
+ :return: The res_code of this ShowCustomConnectorResponse.
66
+ :rtype: int
67
+ """
68
+ return self._res_code
69
+
70
+ @res_code.setter
71
+ def res_code(self, res_code):
72
+ r"""Sets the res_code of this ShowCustomConnectorResponse.
73
+
74
+ 状态码
75
+
76
+ :param res_code: The res_code of this ShowCustomConnectorResponse.
77
+ :type res_code: int
78
+ """
79
+ self._res_code = res_code
80
+
81
+ @property
82
+ def res_log(self):
83
+ r"""Gets the res_log of this ShowCustomConnectorResponse.
84
+
85
+ 成功信息
86
+
87
+ :return: The res_log of this ShowCustomConnectorResponse.
88
+ :rtype: str
89
+ """
90
+ return self._res_log
91
+
92
+ @res_log.setter
93
+ def res_log(self, res_log):
94
+ r"""Sets the res_log of this ShowCustomConnectorResponse.
95
+
96
+ 成功信息
97
+
98
+ :param res_log: The res_log of this ShowCustomConnectorResponse.
99
+ :type res_log: str
100
+ """
101
+ self._res_log = res_log
102
+
103
+ @property
104
+ def res_msg(self):
105
+ r"""Gets the res_msg of this ShowCustomConnectorResponse.
106
+
107
+ 成功信息
108
+
109
+ :return: The res_msg of this ShowCustomConnectorResponse.
110
+ :rtype: str
111
+ """
112
+ return self._res_msg
113
+
114
+ @res_msg.setter
115
+ def res_msg(self, res_msg):
116
+ r"""Sets the res_msg of this ShowCustomConnectorResponse.
117
+
118
+ 成功信息
119
+
120
+ :param res_msg: The res_msg of this ShowCustomConnectorResponse.
121
+ :type res_msg: str
122
+ """
123
+ self._res_msg = res_msg
124
+
125
+ def to_dict(self):
126
+ """Returns the model properties as a dict"""
127
+ result = {}
128
+
129
+ for attr, _ in six.iteritems(self.openapi_types):
130
+ value = getattr(self, attr)
131
+ if isinstance(value, list):
132
+ result[attr] = list(map(
133
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
134
+ value
135
+ ))
136
+ elif hasattr(value, "to_dict"):
137
+ result[attr] = value.to_dict()
138
+ elif isinstance(value, dict):
139
+ result[attr] = dict(map(
140
+ lambda item: (item[0], item[1].to_dict())
141
+ if hasattr(item[1], "to_dict") else item,
142
+ value.items()
143
+ ))
144
+ else:
145
+ if attr in self.sensitive_list:
146
+ result[attr] = "****"
147
+ else:
148
+ result[attr] = value
149
+
150
+ return result
151
+
152
+ def to_str(self):
153
+ """Returns the string representation of the model"""
154
+ import simplejson as json
155
+ if six.PY2:
156
+ import sys
157
+ reload(sys)
158
+ sys.setdefaultencoding("utf-8")
159
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
160
+
161
+ def __repr__(self):
162
+ """For `print`"""
163
+ return self.to_str()
164
+
165
+ def __eq__(self, other):
166
+ """Returns true if both objects are equal"""
167
+ if not isinstance(other, ShowCustomConnectorResponse):
168
+ return False
169
+
170
+ return self.__dict__ == other.__dict__
171
+
172
+ def __ne__(self, other):
173
+ """Returns true if both objects are not equal"""
174
+ return not self == other