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,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 CreateConnectionInfoResponse(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"""CreateConnectionInfoResponse
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(CreateConnectionInfoResponse, 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 CreateConnectionInfoResponse.
62
+
63
+ 状态码
64
+
65
+ :return: The res_code of this CreateConnectionInfoResponse.
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 CreateConnectionInfoResponse.
73
+
74
+ 状态码
75
+
76
+ :param res_code: The res_code of this CreateConnectionInfoResponse.
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 CreateConnectionInfoResponse.
84
+
85
+ 成功信息
86
+
87
+ :return: The res_log of this CreateConnectionInfoResponse.
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 CreateConnectionInfoResponse.
95
+
96
+ 成功信息
97
+
98
+ :param res_log: The res_log of this CreateConnectionInfoResponse.
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 CreateConnectionInfoResponse.
106
+
107
+ 成功信息
108
+
109
+ :return: The res_msg of this CreateConnectionInfoResponse.
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 CreateConnectionInfoResponse.
117
+
118
+ 成功信息
119
+
120
+ :param res_msg: The res_msg of this CreateConnectionInfoResponse.
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, CreateConnectionInfoResponse):
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,111 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class CreateCustomConnectorFromOpenapiRequest:
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
+ 'body': 'CustomConnectorInfoV2'
21
+ }
22
+
23
+ attribute_map = {
24
+ 'body': 'body'
25
+ }
26
+
27
+ def __init__(self, body=None):
28
+ r"""CreateCustomConnectorFromOpenapiRequest
29
+
30
+ The model defined in huaweicloud sdk
31
+
32
+ :param body: Body of the CreateCustomConnectorFromOpenapiRequest
33
+ :type body: :class:`huaweicloudsdkmssi.v1.CustomConnectorInfoV2`
34
+ """
35
+
36
+
37
+
38
+ self._body = None
39
+ self.discriminator = None
40
+
41
+ if body is not None:
42
+ self.body = body
43
+
44
+ @property
45
+ def body(self):
46
+ r"""Gets the body of this CreateCustomConnectorFromOpenapiRequest.
47
+
48
+ :return: The body of this CreateCustomConnectorFromOpenapiRequest.
49
+ :rtype: :class:`huaweicloudsdkmssi.v1.CustomConnectorInfoV2`
50
+ """
51
+ return self._body
52
+
53
+ @body.setter
54
+ def body(self, body):
55
+ r"""Sets the body of this CreateCustomConnectorFromOpenapiRequest.
56
+
57
+ :param body: The body of this CreateCustomConnectorFromOpenapiRequest.
58
+ :type body: :class:`huaweicloudsdkmssi.v1.CustomConnectorInfoV2`
59
+ """
60
+ self._body = body
61
+
62
+ def to_dict(self):
63
+ """Returns the model properties as a dict"""
64
+ result = {}
65
+
66
+ for attr, _ in six.iteritems(self.openapi_types):
67
+ value = getattr(self, attr)
68
+ if isinstance(value, list):
69
+ result[attr] = list(map(
70
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
71
+ value
72
+ ))
73
+ elif hasattr(value, "to_dict"):
74
+ result[attr] = value.to_dict()
75
+ elif isinstance(value, dict):
76
+ result[attr] = dict(map(
77
+ lambda item: (item[0], item[1].to_dict())
78
+ if hasattr(item[1], "to_dict") else item,
79
+ value.items()
80
+ ))
81
+ else:
82
+ if attr in self.sensitive_list:
83
+ result[attr] = "****"
84
+ else:
85
+ result[attr] = value
86
+
87
+ return result
88
+
89
+ def to_str(self):
90
+ """Returns the string representation of the model"""
91
+ import simplejson as json
92
+ if six.PY2:
93
+ import sys
94
+ reload(sys)
95
+ sys.setdefaultencoding("utf-8")
96
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
97
+
98
+ def __repr__(self):
99
+ """For `print`"""
100
+ return self.to_str()
101
+
102
+ def __eq__(self, other):
103
+ """Returns true if both objects are equal"""
104
+ if not isinstance(other, CreateCustomConnectorFromOpenapiRequest):
105
+ return False
106
+
107
+ return self.__dict__ == other.__dict__
108
+
109
+ def __ne__(self, other):
110
+ """Returns true if both objects are not equal"""
111
+ return not self == other
@@ -0,0 +1,282 @@
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 CreateCustomConnectorFromOpenapiResponse(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
+ 'connector_version_id': 'str',
22
+ 'created_time': 'datetime',
23
+ 'description': 'str',
24
+ 'id': 'str',
25
+ 'name': 'str',
26
+ 'updated_time': 'datetime',
27
+ 'version': 'str'
28
+ }
29
+
30
+ attribute_map = {
31
+ 'connector_version_id': 'connector_version_id',
32
+ 'created_time': 'created_time',
33
+ 'description': 'description',
34
+ 'id': 'id',
35
+ 'name': 'name',
36
+ 'updated_time': 'updated_time',
37
+ 'version': 'version'
38
+ }
39
+
40
+ def __init__(self, connector_version_id=None, created_time=None, description=None, id=None, name=None, updated_time=None, version=None):
41
+ r"""CreateCustomConnectorFromOpenapiResponse
42
+
43
+ The model defined in huaweicloud sdk
44
+
45
+ :param connector_version_id: 自定义连接器版本ID
46
+ :type connector_version_id: str
47
+ :param created_time: 创建时间
48
+ :type created_time: datetime
49
+ :param description:
50
+ :type description: str
51
+ :param id: 自定义连接器ID
52
+ :type id: str
53
+ :param name: 自定义连接器名称
54
+ :type name: str
55
+ :param updated_time: 修改时间
56
+ :type updated_time: datetime
57
+ :param version:
58
+ :type version: str
59
+ """
60
+
61
+ super(CreateCustomConnectorFromOpenapiResponse, self).__init__()
62
+
63
+ self._connector_version_id = None
64
+ self._created_time = None
65
+ self._description = None
66
+ self._id = None
67
+ self._name = None
68
+ self._updated_time = None
69
+ self._version = None
70
+ self.discriminator = None
71
+
72
+ if connector_version_id is not None:
73
+ self.connector_version_id = connector_version_id
74
+ if created_time is not None:
75
+ self.created_time = created_time
76
+ if description is not None:
77
+ self.description = description
78
+ if id is not None:
79
+ self.id = id
80
+ if name is not None:
81
+ self.name = name
82
+ if updated_time is not None:
83
+ self.updated_time = updated_time
84
+ if version is not None:
85
+ self.version = version
86
+
87
+ @property
88
+ def connector_version_id(self):
89
+ r"""Gets the connector_version_id of this CreateCustomConnectorFromOpenapiResponse.
90
+
91
+ 自定义连接器版本ID
92
+
93
+ :return: The connector_version_id of this CreateCustomConnectorFromOpenapiResponse.
94
+ :rtype: str
95
+ """
96
+ return self._connector_version_id
97
+
98
+ @connector_version_id.setter
99
+ def connector_version_id(self, connector_version_id):
100
+ r"""Sets the connector_version_id of this CreateCustomConnectorFromOpenapiResponse.
101
+
102
+ 自定义连接器版本ID
103
+
104
+ :param connector_version_id: The connector_version_id of this CreateCustomConnectorFromOpenapiResponse.
105
+ :type connector_version_id: str
106
+ """
107
+ self._connector_version_id = connector_version_id
108
+
109
+ @property
110
+ def created_time(self):
111
+ r"""Gets the created_time of this CreateCustomConnectorFromOpenapiResponse.
112
+
113
+ 创建时间
114
+
115
+ :return: The created_time of this CreateCustomConnectorFromOpenapiResponse.
116
+ :rtype: datetime
117
+ """
118
+ return self._created_time
119
+
120
+ @created_time.setter
121
+ def created_time(self, created_time):
122
+ r"""Sets the created_time of this CreateCustomConnectorFromOpenapiResponse.
123
+
124
+ 创建时间
125
+
126
+ :param created_time: The created_time of this CreateCustomConnectorFromOpenapiResponse.
127
+ :type created_time: datetime
128
+ """
129
+ self._created_time = created_time
130
+
131
+ @property
132
+ def description(self):
133
+ r"""Gets the description of this CreateCustomConnectorFromOpenapiResponse.
134
+
135
+ :return: The description of this CreateCustomConnectorFromOpenapiResponse.
136
+ :rtype: str
137
+ """
138
+ return self._description
139
+
140
+ @description.setter
141
+ def description(self, description):
142
+ r"""Sets the description of this CreateCustomConnectorFromOpenapiResponse.
143
+
144
+ :param description: The description of this CreateCustomConnectorFromOpenapiResponse.
145
+ :type description: str
146
+ """
147
+ self._description = description
148
+
149
+ @property
150
+ def id(self):
151
+ r"""Gets the id of this CreateCustomConnectorFromOpenapiResponse.
152
+
153
+ 自定义连接器ID
154
+
155
+ :return: The id of this CreateCustomConnectorFromOpenapiResponse.
156
+ :rtype: str
157
+ """
158
+ return self._id
159
+
160
+ @id.setter
161
+ def id(self, id):
162
+ r"""Sets the id of this CreateCustomConnectorFromOpenapiResponse.
163
+
164
+ 自定义连接器ID
165
+
166
+ :param id: The id of this CreateCustomConnectorFromOpenapiResponse.
167
+ :type id: str
168
+ """
169
+ self._id = id
170
+
171
+ @property
172
+ def name(self):
173
+ r"""Gets the name of this CreateCustomConnectorFromOpenapiResponse.
174
+
175
+ 自定义连接器名称
176
+
177
+ :return: The name of this CreateCustomConnectorFromOpenapiResponse.
178
+ :rtype: str
179
+ """
180
+ return self._name
181
+
182
+ @name.setter
183
+ def name(self, name):
184
+ r"""Sets the name of this CreateCustomConnectorFromOpenapiResponse.
185
+
186
+ 自定义连接器名称
187
+
188
+ :param name: The name of this CreateCustomConnectorFromOpenapiResponse.
189
+ :type name: str
190
+ """
191
+ self._name = name
192
+
193
+ @property
194
+ def updated_time(self):
195
+ r"""Gets the updated_time of this CreateCustomConnectorFromOpenapiResponse.
196
+
197
+ 修改时间
198
+
199
+ :return: The updated_time of this CreateCustomConnectorFromOpenapiResponse.
200
+ :rtype: datetime
201
+ """
202
+ return self._updated_time
203
+
204
+ @updated_time.setter
205
+ def updated_time(self, updated_time):
206
+ r"""Sets the updated_time of this CreateCustomConnectorFromOpenapiResponse.
207
+
208
+ 修改时间
209
+
210
+ :param updated_time: The updated_time of this CreateCustomConnectorFromOpenapiResponse.
211
+ :type updated_time: datetime
212
+ """
213
+ self._updated_time = updated_time
214
+
215
+ @property
216
+ def version(self):
217
+ r"""Gets the version of this CreateCustomConnectorFromOpenapiResponse.
218
+
219
+ :return: The version of this CreateCustomConnectorFromOpenapiResponse.
220
+ :rtype: str
221
+ """
222
+ return self._version
223
+
224
+ @version.setter
225
+ def version(self, version):
226
+ r"""Sets the version of this CreateCustomConnectorFromOpenapiResponse.
227
+
228
+ :param version: The version of this CreateCustomConnectorFromOpenapiResponse.
229
+ :type version: str
230
+ """
231
+ self._version = version
232
+
233
+ def to_dict(self):
234
+ """Returns the model properties as a dict"""
235
+ result = {}
236
+
237
+ for attr, _ in six.iteritems(self.openapi_types):
238
+ value = getattr(self, attr)
239
+ if isinstance(value, list):
240
+ result[attr] = list(map(
241
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
242
+ value
243
+ ))
244
+ elif hasattr(value, "to_dict"):
245
+ result[attr] = value.to_dict()
246
+ elif isinstance(value, dict):
247
+ result[attr] = dict(map(
248
+ lambda item: (item[0], item[1].to_dict())
249
+ if hasattr(item[1], "to_dict") else item,
250
+ value.items()
251
+ ))
252
+ else:
253
+ if attr in self.sensitive_list:
254
+ result[attr] = "****"
255
+ else:
256
+ result[attr] = value
257
+
258
+ return result
259
+
260
+ def to_str(self):
261
+ """Returns the string representation of the model"""
262
+ import simplejson as json
263
+ if six.PY2:
264
+ import sys
265
+ reload(sys)
266
+ sys.setdefaultencoding("utf-8")
267
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
268
+
269
+ def __repr__(self):
270
+ """For `print`"""
271
+ return self.to_str()
272
+
273
+ def __eq__(self, other):
274
+ """Returns true if both objects are equal"""
275
+ if not isinstance(other, CreateCustomConnectorFromOpenapiResponse):
276
+ return False
277
+
278
+ return self.__dict__ == other.__dict__
279
+
280
+ def __ne__(self, other):
281
+ """Returns true if both objects are not equal"""
282
+ return not self == other
@@ -0,0 +1,111 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class CreateFlowRequest:
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
+ 'body': 'FlowMeta'
21
+ }
22
+
23
+ attribute_map = {
24
+ 'body': 'body'
25
+ }
26
+
27
+ def __init__(self, body=None):
28
+ r"""CreateFlowRequest
29
+
30
+ The model defined in huaweicloud sdk
31
+
32
+ :param body: Body of the CreateFlowRequest
33
+ :type body: :class:`huaweicloudsdkmssi.v1.FlowMeta`
34
+ """
35
+
36
+
37
+
38
+ self._body = None
39
+ self.discriminator = None
40
+
41
+ if body is not None:
42
+ self.body = body
43
+
44
+ @property
45
+ def body(self):
46
+ r"""Gets the body of this CreateFlowRequest.
47
+
48
+ :return: The body of this CreateFlowRequest.
49
+ :rtype: :class:`huaweicloudsdkmssi.v1.FlowMeta`
50
+ """
51
+ return self._body
52
+
53
+ @body.setter
54
+ def body(self, body):
55
+ r"""Sets the body of this CreateFlowRequest.
56
+
57
+ :param body: The body of this CreateFlowRequest.
58
+ :type body: :class:`huaweicloudsdkmssi.v1.FlowMeta`
59
+ """
60
+ self._body = body
61
+
62
+ def to_dict(self):
63
+ """Returns the model properties as a dict"""
64
+ result = {}
65
+
66
+ for attr, _ in six.iteritems(self.openapi_types):
67
+ value = getattr(self, attr)
68
+ if isinstance(value, list):
69
+ result[attr] = list(map(
70
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
71
+ value
72
+ ))
73
+ elif hasattr(value, "to_dict"):
74
+ result[attr] = value.to_dict()
75
+ elif isinstance(value, dict):
76
+ result[attr] = dict(map(
77
+ lambda item: (item[0], item[1].to_dict())
78
+ if hasattr(item[1], "to_dict") else item,
79
+ value.items()
80
+ ))
81
+ else:
82
+ if attr in self.sensitive_list:
83
+ result[attr] = "****"
84
+ else:
85
+ result[attr] = value
86
+
87
+ return result
88
+
89
+ def to_str(self):
90
+ """Returns the string representation of the model"""
91
+ import simplejson as json
92
+ if six.PY2:
93
+ import sys
94
+ reload(sys)
95
+ sys.setdefaultencoding("utf-8")
96
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
97
+
98
+ def __repr__(self):
99
+ """For `print`"""
100
+ return self.to_str()
101
+
102
+ def __eq__(self, other):
103
+ """Returns true if both objects are equal"""
104
+ if not isinstance(other, CreateFlowRequest):
105
+ return False
106
+
107
+ return self.__dict__ == other.__dict__
108
+
109
+ def __ne__(self, other):
110
+ """Returns true if both objects are not equal"""
111
+ return not self == other