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,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 UpdateConnectionInfoResponse(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"""UpdateConnectionInfoResponse
|
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(UpdateConnectionInfoResponse, 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 UpdateConnectionInfoResponse.
|
62
|
+
|
63
|
+
状态码
|
64
|
+
|
65
|
+
:return: The res_code of this UpdateConnectionInfoResponse.
|
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 UpdateConnectionInfoResponse.
|
73
|
+
|
74
|
+
状态码
|
75
|
+
|
76
|
+
:param res_code: The res_code of this UpdateConnectionInfoResponse.
|
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 UpdateConnectionInfoResponse.
|
84
|
+
|
85
|
+
成功信息
|
86
|
+
|
87
|
+
:return: The res_log of this UpdateConnectionInfoResponse.
|
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 UpdateConnectionInfoResponse.
|
95
|
+
|
96
|
+
成功信息
|
97
|
+
|
98
|
+
:param res_log: The res_log of this UpdateConnectionInfoResponse.
|
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 UpdateConnectionInfoResponse.
|
106
|
+
|
107
|
+
成功信息
|
108
|
+
|
109
|
+
:return: The res_msg of this UpdateConnectionInfoResponse.
|
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 UpdateConnectionInfoResponse.
|
117
|
+
|
118
|
+
成功信息
|
119
|
+
|
120
|
+
:param res_msg: The res_msg of this UpdateConnectionInfoResponse.
|
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, UpdateConnectionInfoResponse):
|
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
|
@@ -0,0 +1,139 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class UpdateFlowRequest:
|
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
|
+
'flow_id': 'str',
|
21
|
+
'body': 'FlowMeta'
|
22
|
+
}
|
23
|
+
|
24
|
+
attribute_map = {
|
25
|
+
'flow_id': 'flow_id',
|
26
|
+
'body': 'body'
|
27
|
+
}
|
28
|
+
|
29
|
+
def __init__(self, flow_id=None, body=None):
|
30
|
+
r"""UpdateFlowRequest
|
31
|
+
|
32
|
+
The model defined in huaweicloud sdk
|
33
|
+
|
34
|
+
:param flow_id: flow_id
|
35
|
+
:type flow_id: str
|
36
|
+
:param body: Body of the UpdateFlowRequest
|
37
|
+
:type body: :class:`huaweicloudsdkmssi.v1.FlowMeta`
|
38
|
+
"""
|
39
|
+
|
40
|
+
|
41
|
+
|
42
|
+
self._flow_id = None
|
43
|
+
self._body = None
|
44
|
+
self.discriminator = None
|
45
|
+
|
46
|
+
self.flow_id = flow_id
|
47
|
+
if body is not None:
|
48
|
+
self.body = body
|
49
|
+
|
50
|
+
@property
|
51
|
+
def flow_id(self):
|
52
|
+
r"""Gets the flow_id of this UpdateFlowRequest.
|
53
|
+
|
54
|
+
flow_id
|
55
|
+
|
56
|
+
:return: The flow_id of this UpdateFlowRequest.
|
57
|
+
:rtype: str
|
58
|
+
"""
|
59
|
+
return self._flow_id
|
60
|
+
|
61
|
+
@flow_id.setter
|
62
|
+
def flow_id(self, flow_id):
|
63
|
+
r"""Sets the flow_id of this UpdateFlowRequest.
|
64
|
+
|
65
|
+
flow_id
|
66
|
+
|
67
|
+
:param flow_id: The flow_id of this UpdateFlowRequest.
|
68
|
+
:type flow_id: str
|
69
|
+
"""
|
70
|
+
self._flow_id = flow_id
|
71
|
+
|
72
|
+
@property
|
73
|
+
def body(self):
|
74
|
+
r"""Gets the body of this UpdateFlowRequest.
|
75
|
+
|
76
|
+
:return: The body of this UpdateFlowRequest.
|
77
|
+
:rtype: :class:`huaweicloudsdkmssi.v1.FlowMeta`
|
78
|
+
"""
|
79
|
+
return self._body
|
80
|
+
|
81
|
+
@body.setter
|
82
|
+
def body(self, body):
|
83
|
+
r"""Sets the body of this UpdateFlowRequest.
|
84
|
+
|
85
|
+
:param body: The body of this UpdateFlowRequest.
|
86
|
+
:type body: :class:`huaweicloudsdkmssi.v1.FlowMeta`
|
87
|
+
"""
|
88
|
+
self._body = body
|
89
|
+
|
90
|
+
def to_dict(self):
|
91
|
+
"""Returns the model properties as a dict"""
|
92
|
+
result = {}
|
93
|
+
|
94
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
95
|
+
value = getattr(self, attr)
|
96
|
+
if isinstance(value, list):
|
97
|
+
result[attr] = list(map(
|
98
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
99
|
+
value
|
100
|
+
))
|
101
|
+
elif hasattr(value, "to_dict"):
|
102
|
+
result[attr] = value.to_dict()
|
103
|
+
elif isinstance(value, dict):
|
104
|
+
result[attr] = dict(map(
|
105
|
+
lambda item: (item[0], item[1].to_dict())
|
106
|
+
if hasattr(item[1], "to_dict") else item,
|
107
|
+
value.items()
|
108
|
+
))
|
109
|
+
else:
|
110
|
+
if attr in self.sensitive_list:
|
111
|
+
result[attr] = "****"
|
112
|
+
else:
|
113
|
+
result[attr] = value
|
114
|
+
|
115
|
+
return result
|
116
|
+
|
117
|
+
def to_str(self):
|
118
|
+
"""Returns the string representation of the model"""
|
119
|
+
import simplejson as json
|
120
|
+
if six.PY2:
|
121
|
+
import sys
|
122
|
+
reload(sys)
|
123
|
+
sys.setdefaultencoding("utf-8")
|
124
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
125
|
+
|
126
|
+
def __repr__(self):
|
127
|
+
"""For `print`"""
|
128
|
+
return self.to_str()
|
129
|
+
|
130
|
+
def __eq__(self, other):
|
131
|
+
"""Returns true if both objects are equal"""
|
132
|
+
if not isinstance(other, UpdateFlowRequest):
|
133
|
+
return False
|
134
|
+
|
135
|
+
return self.__dict__ == other.__dict__
|
136
|
+
|
137
|
+
def __ne__(self, other):
|
138
|
+
"""Returns true if both objects are not equal"""
|
139
|
+
return not self == other
|
@@ -0,0 +1,203 @@
|
|
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 UpdateFlowResponse(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
|
+
'apig_url': 'str',
|
22
|
+
'flow_id': 'str',
|
23
|
+
'steps': 'list[object]',
|
24
|
+
'webhook': 'str'
|
25
|
+
}
|
26
|
+
|
27
|
+
attribute_map = {
|
28
|
+
'apig_url': 'apig_url',
|
29
|
+
'flow_id': 'flow_id',
|
30
|
+
'steps': 'steps',
|
31
|
+
'webhook': 'webhook'
|
32
|
+
}
|
33
|
+
|
34
|
+
def __init__(self, apig_url=None, flow_id=None, steps=None, webhook=None):
|
35
|
+
r"""UpdateFlowResponse
|
36
|
+
|
37
|
+
The model defined in huaweicloud sdk
|
38
|
+
|
39
|
+
:param apig_url: api流注册到apig的url
|
40
|
+
:type apig_url: str
|
41
|
+
:param flow_id: ID
|
42
|
+
:type flow_id: str
|
43
|
+
:param steps: 函数连接器对应functionId
|
44
|
+
:type steps: list[object]
|
45
|
+
:param webhook: webhook触发url的ID
|
46
|
+
:type webhook: str
|
47
|
+
"""
|
48
|
+
|
49
|
+
super(UpdateFlowResponse, self).__init__()
|
50
|
+
|
51
|
+
self._apig_url = None
|
52
|
+
self._flow_id = None
|
53
|
+
self._steps = None
|
54
|
+
self._webhook = None
|
55
|
+
self.discriminator = None
|
56
|
+
|
57
|
+
if apig_url is not None:
|
58
|
+
self.apig_url = apig_url
|
59
|
+
if flow_id is not None:
|
60
|
+
self.flow_id = flow_id
|
61
|
+
if steps is not None:
|
62
|
+
self.steps = steps
|
63
|
+
if webhook is not None:
|
64
|
+
self.webhook = webhook
|
65
|
+
|
66
|
+
@property
|
67
|
+
def apig_url(self):
|
68
|
+
r"""Gets the apig_url of this UpdateFlowResponse.
|
69
|
+
|
70
|
+
api流注册到apig的url
|
71
|
+
|
72
|
+
:return: The apig_url of this UpdateFlowResponse.
|
73
|
+
:rtype: str
|
74
|
+
"""
|
75
|
+
return self._apig_url
|
76
|
+
|
77
|
+
@apig_url.setter
|
78
|
+
def apig_url(self, apig_url):
|
79
|
+
r"""Sets the apig_url of this UpdateFlowResponse.
|
80
|
+
|
81
|
+
api流注册到apig的url
|
82
|
+
|
83
|
+
:param apig_url: The apig_url of this UpdateFlowResponse.
|
84
|
+
:type apig_url: str
|
85
|
+
"""
|
86
|
+
self._apig_url = apig_url
|
87
|
+
|
88
|
+
@property
|
89
|
+
def flow_id(self):
|
90
|
+
r"""Gets the flow_id of this UpdateFlowResponse.
|
91
|
+
|
92
|
+
ID
|
93
|
+
|
94
|
+
:return: The flow_id of this UpdateFlowResponse.
|
95
|
+
:rtype: str
|
96
|
+
"""
|
97
|
+
return self._flow_id
|
98
|
+
|
99
|
+
@flow_id.setter
|
100
|
+
def flow_id(self, flow_id):
|
101
|
+
r"""Sets the flow_id of this UpdateFlowResponse.
|
102
|
+
|
103
|
+
ID
|
104
|
+
|
105
|
+
:param flow_id: The flow_id of this UpdateFlowResponse.
|
106
|
+
:type flow_id: str
|
107
|
+
"""
|
108
|
+
self._flow_id = flow_id
|
109
|
+
|
110
|
+
@property
|
111
|
+
def steps(self):
|
112
|
+
r"""Gets the steps of this UpdateFlowResponse.
|
113
|
+
|
114
|
+
函数连接器对应functionId
|
115
|
+
|
116
|
+
:return: The steps of this UpdateFlowResponse.
|
117
|
+
:rtype: list[object]
|
118
|
+
"""
|
119
|
+
return self._steps
|
120
|
+
|
121
|
+
@steps.setter
|
122
|
+
def steps(self, steps):
|
123
|
+
r"""Sets the steps of this UpdateFlowResponse.
|
124
|
+
|
125
|
+
函数连接器对应functionId
|
126
|
+
|
127
|
+
:param steps: The steps of this UpdateFlowResponse.
|
128
|
+
:type steps: list[object]
|
129
|
+
"""
|
130
|
+
self._steps = steps
|
131
|
+
|
132
|
+
@property
|
133
|
+
def webhook(self):
|
134
|
+
r"""Gets the webhook of this UpdateFlowResponse.
|
135
|
+
|
136
|
+
webhook触发url的ID
|
137
|
+
|
138
|
+
:return: The webhook of this UpdateFlowResponse.
|
139
|
+
:rtype: str
|
140
|
+
"""
|
141
|
+
return self._webhook
|
142
|
+
|
143
|
+
@webhook.setter
|
144
|
+
def webhook(self, webhook):
|
145
|
+
r"""Sets the webhook of this UpdateFlowResponse.
|
146
|
+
|
147
|
+
webhook触发url的ID
|
148
|
+
|
149
|
+
:param webhook: The webhook of this UpdateFlowResponse.
|
150
|
+
:type webhook: str
|
151
|
+
"""
|
152
|
+
self._webhook = webhook
|
153
|
+
|
154
|
+
def to_dict(self):
|
155
|
+
"""Returns the model properties as a dict"""
|
156
|
+
result = {}
|
157
|
+
|
158
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
159
|
+
value = getattr(self, attr)
|
160
|
+
if isinstance(value, list):
|
161
|
+
result[attr] = list(map(
|
162
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
163
|
+
value
|
164
|
+
))
|
165
|
+
elif hasattr(value, "to_dict"):
|
166
|
+
result[attr] = value.to_dict()
|
167
|
+
elif isinstance(value, dict):
|
168
|
+
result[attr] = dict(map(
|
169
|
+
lambda item: (item[0], item[1].to_dict())
|
170
|
+
if hasattr(item[1], "to_dict") else item,
|
171
|
+
value.items()
|
172
|
+
))
|
173
|
+
else:
|
174
|
+
if attr in self.sensitive_list:
|
175
|
+
result[attr] = "****"
|
176
|
+
else:
|
177
|
+
result[attr] = value
|
178
|
+
|
179
|
+
return result
|
180
|
+
|
181
|
+
def to_str(self):
|
182
|
+
"""Returns the string representation of the model"""
|
183
|
+
import simplejson as json
|
184
|
+
if six.PY2:
|
185
|
+
import sys
|
186
|
+
reload(sys)
|
187
|
+
sys.setdefaultencoding("utf-8")
|
188
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
189
|
+
|
190
|
+
def __repr__(self):
|
191
|
+
"""For `print`"""
|
192
|
+
return self.to_str()
|
193
|
+
|
194
|
+
def __eq__(self, other):
|
195
|
+
"""Returns true if both objects are equal"""
|
196
|
+
if not isinstance(other, UpdateFlowResponse):
|
197
|
+
return False
|
198
|
+
|
199
|
+
return self.__dict__ == other.__dict__
|
200
|
+
|
201
|
+
def __ne__(self, other):
|
202
|
+
"""Returns true if both objects are not equal"""
|
203
|
+
return not self == other
|