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,542 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class TriggerBaseInfo:
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
+ 'category': 'str',
21
+ 'connector_action_html': 'str',
22
+ 'connector_created_type': 'str',
23
+ 'connector_id': 'str',
24
+ 'connector_version': 'str',
25
+ 'created_time': 'datetime',
26
+ 'definition': 'object',
27
+ 'description': 'str',
28
+ 'id': 'str',
29
+ 'name': 'str',
30
+ 'operation_id': 'str',
31
+ 'swagger': 'object',
32
+ 'test_result': 'str',
33
+ 'trigger_type': 'object',
34
+ 'type': 'str',
35
+ 'updated_time': 'datetime'
36
+ }
37
+
38
+ attribute_map = {
39
+ 'category': 'category',
40
+ 'connector_action_html': 'connector_action_html',
41
+ 'connector_created_type': 'connector_created_type',
42
+ 'connector_id': 'connector_id',
43
+ 'connector_version': 'connector_version',
44
+ 'created_time': 'created_time',
45
+ 'definition': 'definition',
46
+ 'description': 'description',
47
+ 'id': 'id',
48
+ 'name': 'name',
49
+ 'operation_id': 'operation_id',
50
+ 'swagger': 'swagger',
51
+ 'test_result': 'test_result',
52
+ 'trigger_type': 'trigger_type',
53
+ 'type': 'type',
54
+ 'updated_time': 'updated_time'
55
+ }
56
+
57
+ def __init__(self, category=None, connector_action_html=None, connector_created_type=None, connector_id=None, connector_version=None, created_time=None, definition=None, description=None, id=None, name=None, operation_id=None, swagger=None, test_result=None, trigger_type=None, type=None, updated_time=None):
58
+ r"""TriggerBaseInfo
59
+
60
+ The model defined in huaweicloud sdk
61
+
62
+ :param category: 分类
63
+ :type category: str
64
+ :param connector_action_html:
65
+ :type connector_action_html: str
66
+ :param connector_created_type:
67
+ :type connector_created_type: str
68
+ :param connector_id: 自定义连接器ID
69
+ :type connector_id: str
70
+ :param connector_version: 连接器版本
71
+ :type connector_version: str
72
+ :param created_time: 创建时间
73
+ :type created_time: datetime
74
+ :param definition: 操作or触发器的详细定义
75
+ :type definition: object
76
+ :param description: 描述
77
+ :type description: str
78
+ :param id: 触发事件ID
79
+ :type id: str
80
+ :param name: 执行动作名称
81
+ :type name: str
82
+ :param operation_id: 执行动作ID
83
+ :type operation_id: str
84
+ :param swagger: swagger文档
85
+ :type swagger: object
86
+ :param test_result: 最近一次测试结果
87
+ :type test_result: str
88
+ :param trigger_type: 触发事件的类型
89
+ :type trigger_type: object
90
+ :param type: 类型
91
+ :type type: str
92
+ :param updated_time: 修改时间
93
+ :type updated_time: datetime
94
+ """
95
+
96
+
97
+
98
+ self._category = None
99
+ self._connector_action_html = None
100
+ self._connector_created_type = None
101
+ self._connector_id = None
102
+ self._connector_version = None
103
+ self._created_time = None
104
+ self._definition = None
105
+ self._description = None
106
+ self._id = None
107
+ self._name = None
108
+ self._operation_id = None
109
+ self._swagger = None
110
+ self._test_result = None
111
+ self._trigger_type = None
112
+ self._type = None
113
+ self._updated_time = None
114
+ self.discriminator = None
115
+
116
+ if category is not None:
117
+ self.category = category
118
+ if connector_action_html is not None:
119
+ self.connector_action_html = connector_action_html
120
+ if connector_created_type is not None:
121
+ self.connector_created_type = connector_created_type
122
+ if connector_id is not None:
123
+ self.connector_id = connector_id
124
+ if connector_version is not None:
125
+ self.connector_version = connector_version
126
+ if created_time is not None:
127
+ self.created_time = created_time
128
+ if definition is not None:
129
+ self.definition = definition
130
+ if description is not None:
131
+ self.description = description
132
+ if id is not None:
133
+ self.id = id
134
+ if name is not None:
135
+ self.name = name
136
+ if operation_id is not None:
137
+ self.operation_id = operation_id
138
+ if swagger is not None:
139
+ self.swagger = swagger
140
+ if test_result is not None:
141
+ self.test_result = test_result
142
+ if trigger_type is not None:
143
+ self.trigger_type = trigger_type
144
+ if type is not None:
145
+ self.type = type
146
+ if updated_time is not None:
147
+ self.updated_time = updated_time
148
+
149
+ @property
150
+ def category(self):
151
+ r"""Gets the category of this TriggerBaseInfo.
152
+
153
+ 分类
154
+
155
+ :return: The category of this TriggerBaseInfo.
156
+ :rtype: str
157
+ """
158
+ return self._category
159
+
160
+ @category.setter
161
+ def category(self, category):
162
+ r"""Sets the category of this TriggerBaseInfo.
163
+
164
+ 分类
165
+
166
+ :param category: The category of this TriggerBaseInfo.
167
+ :type category: str
168
+ """
169
+ self._category = category
170
+
171
+ @property
172
+ def connector_action_html(self):
173
+ r"""Gets the connector_action_html of this TriggerBaseInfo.
174
+
175
+ :return: The connector_action_html of this TriggerBaseInfo.
176
+ :rtype: str
177
+ """
178
+ return self._connector_action_html
179
+
180
+ @connector_action_html.setter
181
+ def connector_action_html(self, connector_action_html):
182
+ r"""Sets the connector_action_html of this TriggerBaseInfo.
183
+
184
+ :param connector_action_html: The connector_action_html of this TriggerBaseInfo.
185
+ :type connector_action_html: str
186
+ """
187
+ self._connector_action_html = connector_action_html
188
+
189
+ @property
190
+ def connector_created_type(self):
191
+ r"""Gets the connector_created_type of this TriggerBaseInfo.
192
+
193
+ :return: The connector_created_type of this TriggerBaseInfo.
194
+ :rtype: str
195
+ """
196
+ return self._connector_created_type
197
+
198
+ @connector_created_type.setter
199
+ def connector_created_type(self, connector_created_type):
200
+ r"""Sets the connector_created_type of this TriggerBaseInfo.
201
+
202
+ :param connector_created_type: The connector_created_type of this TriggerBaseInfo.
203
+ :type connector_created_type: str
204
+ """
205
+ self._connector_created_type = connector_created_type
206
+
207
+ @property
208
+ def connector_id(self):
209
+ r"""Gets the connector_id of this TriggerBaseInfo.
210
+
211
+ 自定义连接器ID
212
+
213
+ :return: The connector_id of this TriggerBaseInfo.
214
+ :rtype: str
215
+ """
216
+ return self._connector_id
217
+
218
+ @connector_id.setter
219
+ def connector_id(self, connector_id):
220
+ r"""Sets the connector_id of this TriggerBaseInfo.
221
+
222
+ 自定义连接器ID
223
+
224
+ :param connector_id: The connector_id of this TriggerBaseInfo.
225
+ :type connector_id: str
226
+ """
227
+ self._connector_id = connector_id
228
+
229
+ @property
230
+ def connector_version(self):
231
+ r"""Gets the connector_version of this TriggerBaseInfo.
232
+
233
+ 连接器版本
234
+
235
+ :return: The connector_version of this TriggerBaseInfo.
236
+ :rtype: str
237
+ """
238
+ return self._connector_version
239
+
240
+ @connector_version.setter
241
+ def connector_version(self, connector_version):
242
+ r"""Sets the connector_version of this TriggerBaseInfo.
243
+
244
+ 连接器版本
245
+
246
+ :param connector_version: The connector_version of this TriggerBaseInfo.
247
+ :type connector_version: str
248
+ """
249
+ self._connector_version = connector_version
250
+
251
+ @property
252
+ def created_time(self):
253
+ r"""Gets the created_time of this TriggerBaseInfo.
254
+
255
+ 创建时间
256
+
257
+ :return: The created_time of this TriggerBaseInfo.
258
+ :rtype: datetime
259
+ """
260
+ return self._created_time
261
+
262
+ @created_time.setter
263
+ def created_time(self, created_time):
264
+ r"""Sets the created_time of this TriggerBaseInfo.
265
+
266
+ 创建时间
267
+
268
+ :param created_time: The created_time of this TriggerBaseInfo.
269
+ :type created_time: datetime
270
+ """
271
+ self._created_time = created_time
272
+
273
+ @property
274
+ def definition(self):
275
+ r"""Gets the definition of this TriggerBaseInfo.
276
+
277
+ 操作or触发器的详细定义
278
+
279
+ :return: The definition of this TriggerBaseInfo.
280
+ :rtype: object
281
+ """
282
+ return self._definition
283
+
284
+ @definition.setter
285
+ def definition(self, definition):
286
+ r"""Sets the definition of this TriggerBaseInfo.
287
+
288
+ 操作or触发器的详细定义
289
+
290
+ :param definition: The definition of this TriggerBaseInfo.
291
+ :type definition: object
292
+ """
293
+ self._definition = definition
294
+
295
+ @property
296
+ def description(self):
297
+ r"""Gets the description of this TriggerBaseInfo.
298
+
299
+ 描述
300
+
301
+ :return: The description of this TriggerBaseInfo.
302
+ :rtype: str
303
+ """
304
+ return self._description
305
+
306
+ @description.setter
307
+ def description(self, description):
308
+ r"""Sets the description of this TriggerBaseInfo.
309
+
310
+ 描述
311
+
312
+ :param description: The description of this TriggerBaseInfo.
313
+ :type description: str
314
+ """
315
+ self._description = description
316
+
317
+ @property
318
+ def id(self):
319
+ r"""Gets the id of this TriggerBaseInfo.
320
+
321
+ 触发事件ID
322
+
323
+ :return: The id of this TriggerBaseInfo.
324
+ :rtype: str
325
+ """
326
+ return self._id
327
+
328
+ @id.setter
329
+ def id(self, id):
330
+ r"""Sets the id of this TriggerBaseInfo.
331
+
332
+ 触发事件ID
333
+
334
+ :param id: The id of this TriggerBaseInfo.
335
+ :type id: str
336
+ """
337
+ self._id = id
338
+
339
+ @property
340
+ def name(self):
341
+ r"""Gets the name of this TriggerBaseInfo.
342
+
343
+ 执行动作名称
344
+
345
+ :return: The name of this TriggerBaseInfo.
346
+ :rtype: str
347
+ """
348
+ return self._name
349
+
350
+ @name.setter
351
+ def name(self, name):
352
+ r"""Sets the name of this TriggerBaseInfo.
353
+
354
+ 执行动作名称
355
+
356
+ :param name: The name of this TriggerBaseInfo.
357
+ :type name: str
358
+ """
359
+ self._name = name
360
+
361
+ @property
362
+ def operation_id(self):
363
+ r"""Gets the operation_id of this TriggerBaseInfo.
364
+
365
+ 执行动作ID
366
+
367
+ :return: The operation_id of this TriggerBaseInfo.
368
+ :rtype: str
369
+ """
370
+ return self._operation_id
371
+
372
+ @operation_id.setter
373
+ def operation_id(self, operation_id):
374
+ r"""Sets the operation_id of this TriggerBaseInfo.
375
+
376
+ 执行动作ID
377
+
378
+ :param operation_id: The operation_id of this TriggerBaseInfo.
379
+ :type operation_id: str
380
+ """
381
+ self._operation_id = operation_id
382
+
383
+ @property
384
+ def swagger(self):
385
+ r"""Gets the swagger of this TriggerBaseInfo.
386
+
387
+ swagger文档
388
+
389
+ :return: The swagger of this TriggerBaseInfo.
390
+ :rtype: object
391
+ """
392
+ return self._swagger
393
+
394
+ @swagger.setter
395
+ def swagger(self, swagger):
396
+ r"""Sets the swagger of this TriggerBaseInfo.
397
+
398
+ swagger文档
399
+
400
+ :param swagger: The swagger of this TriggerBaseInfo.
401
+ :type swagger: object
402
+ """
403
+ self._swagger = swagger
404
+
405
+ @property
406
+ def test_result(self):
407
+ r"""Gets the test_result of this TriggerBaseInfo.
408
+
409
+ 最近一次测试结果
410
+
411
+ :return: The test_result of this TriggerBaseInfo.
412
+ :rtype: str
413
+ """
414
+ return self._test_result
415
+
416
+ @test_result.setter
417
+ def test_result(self, test_result):
418
+ r"""Sets the test_result of this TriggerBaseInfo.
419
+
420
+ 最近一次测试结果
421
+
422
+ :param test_result: The test_result of this TriggerBaseInfo.
423
+ :type test_result: str
424
+ """
425
+ self._test_result = test_result
426
+
427
+ @property
428
+ def trigger_type(self):
429
+ r"""Gets the trigger_type of this TriggerBaseInfo.
430
+
431
+ 触发事件的类型
432
+
433
+ :return: The trigger_type of this TriggerBaseInfo.
434
+ :rtype: object
435
+ """
436
+ return self._trigger_type
437
+
438
+ @trigger_type.setter
439
+ def trigger_type(self, trigger_type):
440
+ r"""Sets the trigger_type of this TriggerBaseInfo.
441
+
442
+ 触发事件的类型
443
+
444
+ :param trigger_type: The trigger_type of this TriggerBaseInfo.
445
+ :type trigger_type: object
446
+ """
447
+ self._trigger_type = trigger_type
448
+
449
+ @property
450
+ def type(self):
451
+ r"""Gets the type of this TriggerBaseInfo.
452
+
453
+ 类型
454
+
455
+ :return: The type of this TriggerBaseInfo.
456
+ :rtype: str
457
+ """
458
+ return self._type
459
+
460
+ @type.setter
461
+ def type(self, type):
462
+ r"""Sets the type of this TriggerBaseInfo.
463
+
464
+ 类型
465
+
466
+ :param type: The type of this TriggerBaseInfo.
467
+ :type type: str
468
+ """
469
+ self._type = type
470
+
471
+ @property
472
+ def updated_time(self):
473
+ r"""Gets the updated_time of this TriggerBaseInfo.
474
+
475
+ 修改时间
476
+
477
+ :return: The updated_time of this TriggerBaseInfo.
478
+ :rtype: datetime
479
+ """
480
+ return self._updated_time
481
+
482
+ @updated_time.setter
483
+ def updated_time(self, updated_time):
484
+ r"""Sets the updated_time of this TriggerBaseInfo.
485
+
486
+ 修改时间
487
+
488
+ :param updated_time: The updated_time of this TriggerBaseInfo.
489
+ :type updated_time: datetime
490
+ """
491
+ self._updated_time = updated_time
492
+
493
+ def to_dict(self):
494
+ """Returns the model properties as a dict"""
495
+ result = {}
496
+
497
+ for attr, _ in six.iteritems(self.openapi_types):
498
+ value = getattr(self, attr)
499
+ if isinstance(value, list):
500
+ result[attr] = list(map(
501
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
502
+ value
503
+ ))
504
+ elif hasattr(value, "to_dict"):
505
+ result[attr] = value.to_dict()
506
+ elif isinstance(value, dict):
507
+ result[attr] = dict(map(
508
+ lambda item: (item[0], item[1].to_dict())
509
+ if hasattr(item[1], "to_dict") else item,
510
+ value.items()
511
+ ))
512
+ else:
513
+ if attr in self.sensitive_list:
514
+ result[attr] = "****"
515
+ else:
516
+ result[attr] = value
517
+
518
+ return result
519
+
520
+ def to_str(self):
521
+ """Returns the string representation of the model"""
522
+ import simplejson as json
523
+ if six.PY2:
524
+ import sys
525
+ reload(sys)
526
+ sys.setdefaultencoding("utf-8")
527
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
528
+
529
+ def __repr__(self):
530
+ """For `print`"""
531
+ return self.to_str()
532
+
533
+ def __eq__(self, other):
534
+ """Returns true if both objects are equal"""
535
+ if not isinstance(other, TriggerBaseInfo):
536
+ return False
537
+
538
+ return self.__dict__ == other.__dict__
539
+
540
+ def __ne__(self, other):
541
+ """Returns true if both objects are not equal"""
542
+ 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 UpdateConnectionInfoRequest:
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
+ 'connect_id': 'str',
21
+ 'body': 'ConnectionInfo'
22
+ }
23
+
24
+ attribute_map = {
25
+ 'connect_id': 'connect_id',
26
+ 'body': 'body'
27
+ }
28
+
29
+ def __init__(self, connect_id=None, body=None):
30
+ r"""UpdateConnectionInfoRequest
31
+
32
+ The model defined in huaweicloud sdk
33
+
34
+ :param connect_id: ID of Connection
35
+ :type connect_id: str
36
+ :param body: Body of the UpdateConnectionInfoRequest
37
+ :type body: :class:`huaweicloudsdkmssi.v1.ConnectionInfo`
38
+ """
39
+
40
+
41
+
42
+ self._connect_id = None
43
+ self._body = None
44
+ self.discriminator = None
45
+
46
+ self.connect_id = connect_id
47
+ if body is not None:
48
+ self.body = body
49
+
50
+ @property
51
+ def connect_id(self):
52
+ r"""Gets the connect_id of this UpdateConnectionInfoRequest.
53
+
54
+ ID of Connection
55
+
56
+ :return: The connect_id of this UpdateConnectionInfoRequest.
57
+ :rtype: str
58
+ """
59
+ return self._connect_id
60
+
61
+ @connect_id.setter
62
+ def connect_id(self, connect_id):
63
+ r"""Sets the connect_id of this UpdateConnectionInfoRequest.
64
+
65
+ ID of Connection
66
+
67
+ :param connect_id: The connect_id of this UpdateConnectionInfoRequest.
68
+ :type connect_id: str
69
+ """
70
+ self._connect_id = connect_id
71
+
72
+ @property
73
+ def body(self):
74
+ r"""Gets the body of this UpdateConnectionInfoRequest.
75
+
76
+ :return: The body of this UpdateConnectionInfoRequest.
77
+ :rtype: :class:`huaweicloudsdkmssi.v1.ConnectionInfo`
78
+ """
79
+ return self._body
80
+
81
+ @body.setter
82
+ def body(self, body):
83
+ r"""Sets the body of this UpdateConnectionInfoRequest.
84
+
85
+ :param body: The body of this UpdateConnectionInfoRequest.
86
+ :type body: :class:`huaweicloudsdkmssi.v1.ConnectionInfo`
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, UpdateConnectionInfoRequest):
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