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,171 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class ShowAllConnectionsRequest:
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
+ 'name': 'str'
23
+ }
24
+
25
+ attribute_map = {
26
+ 'offset': 'offset',
27
+ 'limit': 'limit',
28
+ 'name': 'name'
29
+ }
30
+
31
+ def __init__(self, offset=None, limit=None, name=None):
32
+ r"""ShowAllConnectionsRequest
33
+
34
+ The model defined in huaweicloud sdk
35
+
36
+ :param offset: 偏移量,表示从此偏移量开始查询, offset大于等于1
37
+ :type offset: int
38
+ :param limit: 每页显示的条目数量
39
+ :type limit: int
40
+ :param name: 模糊查询参数
41
+ :type name: str
42
+ """
43
+
44
+
45
+
46
+ self._offset = None
47
+ self._limit = None
48
+ self._name = None
49
+ self.discriminator = None
50
+
51
+ self.offset = offset
52
+ self.limit = limit
53
+ if name is not None:
54
+ self.name = name
55
+
56
+ @property
57
+ def offset(self):
58
+ r"""Gets the offset of this ShowAllConnectionsRequest.
59
+
60
+ 偏移量,表示从此偏移量开始查询, offset大于等于1
61
+
62
+ :return: The offset of this ShowAllConnectionsRequest.
63
+ :rtype: int
64
+ """
65
+ return self._offset
66
+
67
+ @offset.setter
68
+ def offset(self, offset):
69
+ r"""Sets the offset of this ShowAllConnectionsRequest.
70
+
71
+ 偏移量,表示从此偏移量开始查询, offset大于等于1
72
+
73
+ :param offset: The offset of this ShowAllConnectionsRequest.
74
+ :type offset: int
75
+ """
76
+ self._offset = offset
77
+
78
+ @property
79
+ def limit(self):
80
+ r"""Gets the limit of this ShowAllConnectionsRequest.
81
+
82
+ 每页显示的条目数量
83
+
84
+ :return: The limit of this ShowAllConnectionsRequest.
85
+ :rtype: int
86
+ """
87
+ return self._limit
88
+
89
+ @limit.setter
90
+ def limit(self, limit):
91
+ r"""Sets the limit of this ShowAllConnectionsRequest.
92
+
93
+ 每页显示的条目数量
94
+
95
+ :param limit: The limit of this ShowAllConnectionsRequest.
96
+ :type limit: int
97
+ """
98
+ self._limit = limit
99
+
100
+ @property
101
+ def name(self):
102
+ r"""Gets the name of this ShowAllConnectionsRequest.
103
+
104
+ 模糊查询参数
105
+
106
+ :return: The name of this ShowAllConnectionsRequest.
107
+ :rtype: str
108
+ """
109
+ return self._name
110
+
111
+ @name.setter
112
+ def name(self, name):
113
+ r"""Sets the name of this ShowAllConnectionsRequest.
114
+
115
+ 模糊查询参数
116
+
117
+ :param name: The name of this ShowAllConnectionsRequest.
118
+ :type name: str
119
+ """
120
+ self._name = name
121
+
122
+ def to_dict(self):
123
+ """Returns the model properties as a dict"""
124
+ result = {}
125
+
126
+ for attr, _ in six.iteritems(self.openapi_types):
127
+ value = getattr(self, attr)
128
+ if isinstance(value, list):
129
+ result[attr] = list(map(
130
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
131
+ value
132
+ ))
133
+ elif hasattr(value, "to_dict"):
134
+ result[attr] = value.to_dict()
135
+ elif isinstance(value, dict):
136
+ result[attr] = dict(map(
137
+ lambda item: (item[0], item[1].to_dict())
138
+ if hasattr(item[1], "to_dict") else item,
139
+ value.items()
140
+ ))
141
+ else:
142
+ if attr in self.sensitive_list:
143
+ result[attr] = "****"
144
+ else:
145
+ result[attr] = value
146
+
147
+ return result
148
+
149
+ def to_str(self):
150
+ """Returns the string representation of the model"""
151
+ import simplejson as json
152
+ if six.PY2:
153
+ import sys
154
+ reload(sys)
155
+ sys.setdefaultencoding("utf-8")
156
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
157
+
158
+ def __repr__(self):
159
+ """For `print`"""
160
+ return self.to_str()
161
+
162
+ def __eq__(self, other):
163
+ """Returns true if both objects are equal"""
164
+ if not isinstance(other, ShowAllConnectionsRequest):
165
+ return False
166
+
167
+ return self.__dict__ == other.__dict__
168
+
169
+ def __ne__(self, other):
170
+ """Returns true if both objects are not equal"""
171
+ return not self == other
@@ -0,0 +1,85 @@
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 ShowAllConnectionsResponse(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
+ }
22
+
23
+ attribute_map = {
24
+ }
25
+
26
+ def __init__(self):
27
+ r"""ShowAllConnectionsResponse
28
+
29
+ The model defined in huaweicloud sdk
30
+
31
+ """
32
+
33
+ super(ShowAllConnectionsResponse, self).__init__()
34
+ self.discriminator = None
35
+
36
+ def to_dict(self):
37
+ """Returns the model properties as a dict"""
38
+ result = {}
39
+
40
+ for attr, _ in six.iteritems(self.openapi_types):
41
+ value = getattr(self, attr)
42
+ if isinstance(value, list):
43
+ result[attr] = list(map(
44
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
45
+ value
46
+ ))
47
+ elif hasattr(value, "to_dict"):
48
+ result[attr] = value.to_dict()
49
+ elif isinstance(value, dict):
50
+ result[attr] = dict(map(
51
+ lambda item: (item[0], item[1].to_dict())
52
+ if hasattr(item[1], "to_dict") else item,
53
+ value.items()
54
+ ))
55
+ else:
56
+ if attr in self.sensitive_list:
57
+ result[attr] = "****"
58
+ else:
59
+ result[attr] = value
60
+
61
+ return result
62
+
63
+ def to_str(self):
64
+ """Returns the string representation of the model"""
65
+ import simplejson as json
66
+ if six.PY2:
67
+ import sys
68
+ reload(sys)
69
+ sys.setdefaultencoding("utf-8")
70
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
71
+
72
+ def __repr__(self):
73
+ """For `print`"""
74
+ return self.to_str()
75
+
76
+ def __eq__(self, other):
77
+ """Returns true if both objects are equal"""
78
+ if not isinstance(other, ShowAllConnectionsResponse):
79
+ return False
80
+
81
+ return self.__dict__ == other.__dict__
82
+
83
+ def __ne__(self, other):
84
+ """Returns true if both objects are not equal"""
85
+ return not self == other
@@ -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 ShowAllFlowsRequest:
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
+ 'type': 'str',
23
+ 'name': 'str',
24
+ 'have_child_flow': 'bool',
25
+ 'ids': 'str'
26
+ }
27
+
28
+ attribute_map = {
29
+ 'offset': 'offset',
30
+ 'limit': 'limit',
31
+ 'type': 'type',
32
+ 'name': 'name',
33
+ 'have_child_flow': 'have_child_flow',
34
+ 'ids': 'ids'
35
+ }
36
+
37
+ def __init__(self, offset=None, limit=None, type=None, name=None, have_child_flow=None, ids=None):
38
+ r"""ShowAllFlowsRequest
39
+
40
+ The model defined in huaweicloud sdk
41
+
42
+ :param offset: 偏移量,表示从此偏移量开始查询, offset大于等于0
43
+ :type offset: int
44
+ :param limit: 每页显示的条目数量,limit大于等于1
45
+ :type limit: int
46
+ :param type: 类型
47
+ :type type: str
48
+ :param name: 流名称,支持模糊查询
49
+ :type name: str
50
+ :param have_child_flow: 是否包含子流程
51
+ :type have_child_flow: bool
52
+ :param ids: ids
53
+ :type ids: str
54
+ """
55
+
56
+
57
+
58
+ self._offset = None
59
+ self._limit = None
60
+ self._type = None
61
+ self._name = None
62
+ self._have_child_flow = None
63
+ self._ids = None
64
+ self.discriminator = None
65
+
66
+ self.offset = offset
67
+ self.limit = limit
68
+ if type is not None:
69
+ self.type = type
70
+ if name is not None:
71
+ self.name = name
72
+ if have_child_flow is not None:
73
+ self.have_child_flow = have_child_flow
74
+ if ids is not None:
75
+ self.ids = ids
76
+
77
+ @property
78
+ def offset(self):
79
+ r"""Gets the offset of this ShowAllFlowsRequest.
80
+
81
+ 偏移量,表示从此偏移量开始查询, offset大于等于0
82
+
83
+ :return: The offset of this ShowAllFlowsRequest.
84
+ :rtype: int
85
+ """
86
+ return self._offset
87
+
88
+ @offset.setter
89
+ def offset(self, offset):
90
+ r"""Sets the offset of this ShowAllFlowsRequest.
91
+
92
+ 偏移量,表示从此偏移量开始查询, offset大于等于0
93
+
94
+ :param offset: The offset of this ShowAllFlowsRequest.
95
+ :type offset: int
96
+ """
97
+ self._offset = offset
98
+
99
+ @property
100
+ def limit(self):
101
+ r"""Gets the limit of this ShowAllFlowsRequest.
102
+
103
+ 每页显示的条目数量,limit大于等于1
104
+
105
+ :return: The limit of this ShowAllFlowsRequest.
106
+ :rtype: int
107
+ """
108
+ return self._limit
109
+
110
+ @limit.setter
111
+ def limit(self, limit):
112
+ r"""Sets the limit of this ShowAllFlowsRequest.
113
+
114
+ 每页显示的条目数量,limit大于等于1
115
+
116
+ :param limit: The limit of this ShowAllFlowsRequest.
117
+ :type limit: int
118
+ """
119
+ self._limit = limit
120
+
121
+ @property
122
+ def type(self):
123
+ r"""Gets the type of this ShowAllFlowsRequest.
124
+
125
+ 类型
126
+
127
+ :return: The type of this ShowAllFlowsRequest.
128
+ :rtype: str
129
+ """
130
+ return self._type
131
+
132
+ @type.setter
133
+ def type(self, type):
134
+ r"""Sets the type of this ShowAllFlowsRequest.
135
+
136
+ 类型
137
+
138
+ :param type: The type of this ShowAllFlowsRequest.
139
+ :type type: str
140
+ """
141
+ self._type = type
142
+
143
+ @property
144
+ def name(self):
145
+ r"""Gets the name of this ShowAllFlowsRequest.
146
+
147
+ 流名称,支持模糊查询
148
+
149
+ :return: The name of this ShowAllFlowsRequest.
150
+ :rtype: str
151
+ """
152
+ return self._name
153
+
154
+ @name.setter
155
+ def name(self, name):
156
+ r"""Sets the name of this ShowAllFlowsRequest.
157
+
158
+ 流名称,支持模糊查询
159
+
160
+ :param name: The name of this ShowAllFlowsRequest.
161
+ :type name: str
162
+ """
163
+ self._name = name
164
+
165
+ @property
166
+ def have_child_flow(self):
167
+ r"""Gets the have_child_flow of this ShowAllFlowsRequest.
168
+
169
+ 是否包含子流程
170
+
171
+ :return: The have_child_flow of this ShowAllFlowsRequest.
172
+ :rtype: bool
173
+ """
174
+ return self._have_child_flow
175
+
176
+ @have_child_flow.setter
177
+ def have_child_flow(self, have_child_flow):
178
+ r"""Sets the have_child_flow of this ShowAllFlowsRequest.
179
+
180
+ 是否包含子流程
181
+
182
+ :param have_child_flow: The have_child_flow of this ShowAllFlowsRequest.
183
+ :type have_child_flow: bool
184
+ """
185
+ self._have_child_flow = have_child_flow
186
+
187
+ @property
188
+ def ids(self):
189
+ r"""Gets the ids of this ShowAllFlowsRequest.
190
+
191
+ ids
192
+
193
+ :return: The ids of this ShowAllFlowsRequest.
194
+ :rtype: str
195
+ """
196
+ return self._ids
197
+
198
+ @ids.setter
199
+ def ids(self, ids):
200
+ r"""Sets the ids of this ShowAllFlowsRequest.
201
+
202
+ ids
203
+
204
+ :param ids: The ids of this ShowAllFlowsRequest.
205
+ :type ids: str
206
+ """
207
+ self._ids = ids
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, ShowAllFlowsRequest):
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 ShowAllFlowsResponse(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
+ 'count': 'str',
22
+ 'flow_metas': 'list[FlowMeta]'
23
+ }
24
+
25
+ attribute_map = {
26
+ 'count': 'count',
27
+ 'flow_metas': 'flow_metas'
28
+ }
29
+
30
+ def __init__(self, count=None, flow_metas=None):
31
+ r"""ShowAllFlowsResponse
32
+
33
+ The model defined in huaweicloud sdk
34
+
35
+ :param count: 流的数量
36
+ :type count: str
37
+ :param flow_metas: 流列表
38
+ :type flow_metas: list[:class:`huaweicloudsdkmssi.v1.FlowMeta`]
39
+ """
40
+
41
+ super(ShowAllFlowsResponse, self).__init__()
42
+
43
+ self._count = None
44
+ self._flow_metas = None
45
+ self.discriminator = None
46
+
47
+ if count is not None:
48
+ self.count = count
49
+ if flow_metas is not None:
50
+ self.flow_metas = flow_metas
51
+
52
+ @property
53
+ def count(self):
54
+ r"""Gets the count of this ShowAllFlowsResponse.
55
+
56
+ 流的数量
57
+
58
+ :return: The count of this ShowAllFlowsResponse.
59
+ :rtype: str
60
+ """
61
+ return self._count
62
+
63
+ @count.setter
64
+ def count(self, count):
65
+ r"""Sets the count of this ShowAllFlowsResponse.
66
+
67
+ 流的数量
68
+
69
+ :param count: The count of this ShowAllFlowsResponse.
70
+ :type count: str
71
+ """
72
+ self._count = count
73
+
74
+ @property
75
+ def flow_metas(self):
76
+ r"""Gets the flow_metas of this ShowAllFlowsResponse.
77
+
78
+ 流列表
79
+
80
+ :return: The flow_metas of this ShowAllFlowsResponse.
81
+ :rtype: list[:class:`huaweicloudsdkmssi.v1.FlowMeta`]
82
+ """
83
+ return self._flow_metas
84
+
85
+ @flow_metas.setter
86
+ def flow_metas(self, flow_metas):
87
+ r"""Sets the flow_metas of this ShowAllFlowsResponse.
88
+
89
+ 流列表
90
+
91
+ :param flow_metas: The flow_metas of this ShowAllFlowsResponse.
92
+ :type flow_metas: list[:class:`huaweicloudsdkmssi.v1.FlowMeta`]
93
+ """
94
+ self._flow_metas = flow_metas
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, ShowAllFlowsResponse):
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