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,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 CreateFlowResponse(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"""CreateFlowResponse
|
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(CreateFlowResponse, 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 CreateFlowResponse.
|
69
|
+
|
70
|
+
api流注册到apig的url
|
71
|
+
|
72
|
+
:return: The apig_url of this CreateFlowResponse.
|
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 CreateFlowResponse.
|
80
|
+
|
81
|
+
api流注册到apig的url
|
82
|
+
|
83
|
+
:param apig_url: The apig_url of this CreateFlowResponse.
|
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 CreateFlowResponse.
|
91
|
+
|
92
|
+
ID
|
93
|
+
|
94
|
+
:return: The flow_id of this CreateFlowResponse.
|
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 CreateFlowResponse.
|
102
|
+
|
103
|
+
ID
|
104
|
+
|
105
|
+
:param flow_id: The flow_id of this CreateFlowResponse.
|
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 CreateFlowResponse.
|
113
|
+
|
114
|
+
函数连接器对应functionId
|
115
|
+
|
116
|
+
:return: The steps of this CreateFlowResponse.
|
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 CreateFlowResponse.
|
124
|
+
|
125
|
+
函数连接器对应functionId
|
126
|
+
|
127
|
+
:param steps: The steps of this CreateFlowResponse.
|
128
|
+
:type steps: list[object]
|
129
|
+
"""
|
130
|
+
self._steps = steps
|
131
|
+
|
132
|
+
@property
|
133
|
+
def webhook(self):
|
134
|
+
r"""Gets the webhook of this CreateFlowResponse.
|
135
|
+
|
136
|
+
webhook触发url的ID
|
137
|
+
|
138
|
+
:return: The webhook of this CreateFlowResponse.
|
139
|
+
:rtype: str
|
140
|
+
"""
|
141
|
+
return self._webhook
|
142
|
+
|
143
|
+
@webhook.setter
|
144
|
+
def webhook(self, webhook):
|
145
|
+
r"""Sets the webhook of this CreateFlowResponse.
|
146
|
+
|
147
|
+
webhook触发url的ID
|
148
|
+
|
149
|
+
:param webhook: The webhook of this CreateFlowResponse.
|
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, CreateFlowResponse):
|
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
|
@@ -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 CreateFlowTemplateFromFlowRequest:
|
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': 'TemplateMessage'
|
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"""CreateFlowTemplateFromFlowRequest
|
31
|
+
|
32
|
+
The model defined in huaweicloud sdk
|
33
|
+
|
34
|
+
:param flow_id: ID of flow
|
35
|
+
:type flow_id: str
|
36
|
+
:param body: Body of the CreateFlowTemplateFromFlowRequest
|
37
|
+
:type body: :class:`huaweicloudsdkmssi.v1.TemplateMessage`
|
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 CreateFlowTemplateFromFlowRequest.
|
53
|
+
|
54
|
+
ID of flow
|
55
|
+
|
56
|
+
:return: The flow_id of this CreateFlowTemplateFromFlowRequest.
|
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 CreateFlowTemplateFromFlowRequest.
|
64
|
+
|
65
|
+
ID of flow
|
66
|
+
|
67
|
+
:param flow_id: The flow_id of this CreateFlowTemplateFromFlowRequest.
|
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 CreateFlowTemplateFromFlowRequest.
|
75
|
+
|
76
|
+
:return: The body of this CreateFlowTemplateFromFlowRequest.
|
77
|
+
:rtype: :class:`huaweicloudsdkmssi.v1.TemplateMessage`
|
78
|
+
"""
|
79
|
+
return self._body
|
80
|
+
|
81
|
+
@body.setter
|
82
|
+
def body(self, body):
|
83
|
+
r"""Sets the body of this CreateFlowTemplateFromFlowRequest.
|
84
|
+
|
85
|
+
:param body: The body of this CreateFlowTemplateFromFlowRequest.
|
86
|
+
:type body: :class:`huaweicloudsdkmssi.v1.TemplateMessage`
|
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, CreateFlowTemplateFromFlowRequest):
|
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 CreateFlowTemplateFromFlowResponse(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"""CreateFlowTemplateFromFlowResponse
|
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(CreateFlowTemplateFromFlowResponse, 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 CreateFlowTemplateFromFlowResponse.
|
69
|
+
|
70
|
+
api流注册到apig的url
|
71
|
+
|
72
|
+
:return: The apig_url of this CreateFlowTemplateFromFlowResponse.
|
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 CreateFlowTemplateFromFlowResponse.
|
80
|
+
|
81
|
+
api流注册到apig的url
|
82
|
+
|
83
|
+
:param apig_url: The apig_url of this CreateFlowTemplateFromFlowResponse.
|
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 CreateFlowTemplateFromFlowResponse.
|
91
|
+
|
92
|
+
ID
|
93
|
+
|
94
|
+
:return: The flow_id of this CreateFlowTemplateFromFlowResponse.
|
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 CreateFlowTemplateFromFlowResponse.
|
102
|
+
|
103
|
+
ID
|
104
|
+
|
105
|
+
:param flow_id: The flow_id of this CreateFlowTemplateFromFlowResponse.
|
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 CreateFlowTemplateFromFlowResponse.
|
113
|
+
|
114
|
+
函数连接器对应functionId
|
115
|
+
|
116
|
+
:return: The steps of this CreateFlowTemplateFromFlowResponse.
|
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 CreateFlowTemplateFromFlowResponse.
|
124
|
+
|
125
|
+
函数连接器对应functionId
|
126
|
+
|
127
|
+
:param steps: The steps of this CreateFlowTemplateFromFlowResponse.
|
128
|
+
:type steps: list[object]
|
129
|
+
"""
|
130
|
+
self._steps = steps
|
131
|
+
|
132
|
+
@property
|
133
|
+
def webhook(self):
|
134
|
+
r"""Gets the webhook of this CreateFlowTemplateFromFlowResponse.
|
135
|
+
|
136
|
+
webhook触发url的ID
|
137
|
+
|
138
|
+
:return: The webhook of this CreateFlowTemplateFromFlowResponse.
|
139
|
+
:rtype: str
|
140
|
+
"""
|
141
|
+
return self._webhook
|
142
|
+
|
143
|
+
@webhook.setter
|
144
|
+
def webhook(self, webhook):
|
145
|
+
r"""Sets the webhook of this CreateFlowTemplateFromFlowResponse.
|
146
|
+
|
147
|
+
webhook触发url的ID
|
148
|
+
|
149
|
+
:param webhook: The webhook of this CreateFlowTemplateFromFlowResponse.
|
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, CreateFlowTemplateFromFlowResponse):
|
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
|