huaweicloudsdkrocketmq 3.1.150__py2.py3-none-any.whl → 3.1.152__py2.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 (45) hide show
  1. huaweicloudsdkrocketmq/v2/__init__.py +26 -2
  2. huaweicloudsdkrocketmq/v2/model/__init__.py +26 -2
  3. huaweicloudsdkrocketmq/v2/model/batch_delete_diagnosis_report_req.py +115 -0
  4. huaweicloudsdkrocketmq/v2/model/batch_delete_diagnosis_report_request.py +167 -0
  5. huaweicloudsdkrocketmq/v2/model/batch_delete_diagnosis_report_response.py +116 -0
  6. huaweicloudsdkrocketmq/v2/model/create_diagnosis_task_request.py +167 -0
  7. huaweicloudsdkrocketmq/v2/model/create_diagnosis_task_response.py +116 -0
  8. huaweicloudsdkrocketmq/v2/model/create_instance_by_engine_req.py +88 -1
  9. huaweicloudsdkrocketmq/v2/model/create_post_paid_instance_req.py +90 -3
  10. huaweicloudsdkrocketmq/v2/model/create_topic_or_batch_delete_topic_req.py +3 -3
  11. huaweicloudsdkrocketmq/v2/model/create_topic_req.py +3 -3
  12. huaweicloudsdkrocketmq/v2/model/{restart_instance_response.py → delete_background_task_request.py} +31 -63
  13. huaweicloudsdkrocketmq/v2/model/delete_background_task_response.py +85 -0
  14. huaweicloudsdkrocketmq/v2/model/delete_consumer_group_response.py +32 -1
  15. huaweicloudsdkrocketmq/v2/model/delete_topic_response.py +32 -1
  16. huaweicloudsdkrocketmq/v2/model/diagnosis_rep.py +144 -0
  17. huaweicloudsdkrocketmq/v2/model/diagnosis_report_resp.py +289 -0
  18. huaweicloudsdkrocketmq/v2/model/list_background_tasks_request.py +230 -0
  19. huaweicloudsdkrocketmq/v2/model/list_background_tasks_resp_tasks.py +318 -0
  20. huaweicloudsdkrocketmq/v2/model/list_background_tasks_response.py +145 -0
  21. huaweicloudsdkrocketmq/v2/model/list_diagnosis_reports_request.py +200 -0
  22. huaweicloudsdkrocketmq/v2/model/list_diagnosis_reports_response.py +116 -0
  23. huaweicloudsdkrocketmq/v2/model/list_messages_request.py +30 -1
  24. huaweicloudsdkrocketmq/v2/model/modify_instance_ssl_config_request.py +167 -0
  25. huaweicloudsdkrocketmq/v2/model/modify_instance_ssl_config_response.py +145 -0
  26. huaweicloudsdkrocketmq/v2/model/{restart_instance_request.py → plain_ssl_switch_rep.py} +23 -50
  27. huaweicloudsdkrocketmq/v2/model/send_message_properties.py +144 -0
  28. huaweicloudsdkrocketmq/v2/model/send_message_request.py +167 -0
  29. huaweicloudsdkrocketmq/v2/model/send_message_resp.py +289 -0
  30. huaweicloudsdkrocketmq/v2/model/send_message_response.py +290 -0
  31. huaweicloudsdkrocketmq/v2/model/show_diagnosis_report_request.py +142 -0
  32. huaweicloudsdkrocketmq/v2/model/show_diagnosis_report_response.py +435 -0
  33. huaweicloudsdkrocketmq/v2/model/show_diagnosis_stack_request.py +142 -0
  34. huaweicloudsdkrocketmq/v2/model/show_diagnosis_stack_response.py +145 -0
  35. huaweicloudsdkrocketmq/v2/model/update_consumer_group_response.py +32 -1
  36. huaweicloudsdkrocketmq/v2/model/update_topic_queue_entity.py +173 -0
  37. huaweicloudsdkrocketmq/v2/model/update_topic_req.py +70 -12
  38. huaweicloudsdkrocketmq/v2/model/update_topic_response.py +32 -1
  39. huaweicloudsdkrocketmq/v2/rocketmq_async_client.py +580 -24
  40. huaweicloudsdkrocketmq/v2/rocketmq_client.py +580 -24
  41. {huaweicloudsdkrocketmq-3.1.150.dist-info → huaweicloudsdkrocketmq-3.1.152.dist-info}/METADATA +2 -2
  42. {huaweicloudsdkrocketmq-3.1.150.dist-info → huaweicloudsdkrocketmq-3.1.152.dist-info}/RECORD +45 -21
  43. {huaweicloudsdkrocketmq-3.1.150.dist-info → huaweicloudsdkrocketmq-3.1.152.dist-info}/LICENSE +0 -0
  44. {huaweicloudsdkrocketmq-3.1.150.dist-info → huaweicloudsdkrocketmq-3.1.152.dist-info}/WHEEL +0 -0
  45. {huaweicloudsdkrocketmq-3.1.150.dist-info → huaweicloudsdkrocketmq-3.1.152.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,144 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class SendMessageProperties:
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
+ 'name': 'str',
21
+ 'value': 'str'
22
+ }
23
+
24
+ attribute_map = {
25
+ 'name': 'name',
26
+ 'value': 'value'
27
+ }
28
+
29
+ def __init__(self, name=None, value=None):
30
+ r"""SendMessageProperties
31
+
32
+ The model defined in huaweicloud sdk
33
+
34
+ :param name: **参数解释**: 特性名称。 **取值范围**: 不涉及。
35
+ :type name: str
36
+ :param value: **参数解释**: 特性值。 **取值范围**: 不涉及。
37
+ :type value: str
38
+ """
39
+
40
+
41
+
42
+ self._name = None
43
+ self._value = None
44
+ self.discriminator = None
45
+
46
+ if name is not None:
47
+ self.name = name
48
+ if value is not None:
49
+ self.value = value
50
+
51
+ @property
52
+ def name(self):
53
+ r"""Gets the name of this SendMessageProperties.
54
+
55
+ **参数解释**: 特性名称。 **取值范围**: 不涉及。
56
+
57
+ :return: The name of this SendMessageProperties.
58
+ :rtype: str
59
+ """
60
+ return self._name
61
+
62
+ @name.setter
63
+ def name(self, name):
64
+ r"""Sets the name of this SendMessageProperties.
65
+
66
+ **参数解释**: 特性名称。 **取值范围**: 不涉及。
67
+
68
+ :param name: The name of this SendMessageProperties.
69
+ :type name: str
70
+ """
71
+ self._name = name
72
+
73
+ @property
74
+ def value(self):
75
+ r"""Gets the value of this SendMessageProperties.
76
+
77
+ **参数解释**: 特性值。 **取值范围**: 不涉及。
78
+
79
+ :return: The value of this SendMessageProperties.
80
+ :rtype: str
81
+ """
82
+ return self._value
83
+
84
+ @value.setter
85
+ def value(self, value):
86
+ r"""Sets the value of this SendMessageProperties.
87
+
88
+ **参数解释**: 特性值。 **取值范围**: 不涉及。
89
+
90
+ :param value: The value of this SendMessageProperties.
91
+ :type value: str
92
+ """
93
+ self._value = value
94
+
95
+ def to_dict(self):
96
+ """Returns the model properties as a dict"""
97
+ result = {}
98
+
99
+ for attr, _ in six.iteritems(self.openapi_types):
100
+ value = getattr(self, attr)
101
+ if isinstance(value, list):
102
+ result[attr] = list(map(
103
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
104
+ value
105
+ ))
106
+ elif hasattr(value, "to_dict"):
107
+ result[attr] = value.to_dict()
108
+ elif isinstance(value, dict):
109
+ result[attr] = dict(map(
110
+ lambda item: (item[0], item[1].to_dict())
111
+ if hasattr(item[1], "to_dict") else item,
112
+ value.items()
113
+ ))
114
+ else:
115
+ if attr in self.sensitive_list:
116
+ result[attr] = "****"
117
+ else:
118
+ result[attr] = value
119
+
120
+ return result
121
+
122
+ def to_str(self):
123
+ """Returns the string representation of the model"""
124
+ import simplejson as json
125
+ if six.PY2:
126
+ import sys
127
+ reload(sys)
128
+ sys.setdefaultencoding("utf-8")
129
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
130
+
131
+ def __repr__(self):
132
+ """For `print`"""
133
+ return self.to_str()
134
+
135
+ def __eq__(self, other):
136
+ """Returns true if both objects are equal"""
137
+ if not isinstance(other, SendMessageProperties):
138
+ return False
139
+
140
+ return self.__dict__ == other.__dict__
141
+
142
+ def __ne__(self, other):
143
+ """Returns true if both objects are not equal"""
144
+ return not self == other
@@ -0,0 +1,167 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class SendMessageRequest:
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
+ 'engine': 'str',
21
+ 'instance_id': 'str',
22
+ 'body': 'SendMessageResp'
23
+ }
24
+
25
+ attribute_map = {
26
+ 'engine': 'engine',
27
+ 'instance_id': 'instance_id',
28
+ 'body': 'body'
29
+ }
30
+
31
+ def __init__(self, engine=None, instance_id=None, body=None):
32
+ r"""SendMessageRequest
33
+
34
+ The model defined in huaweicloud sdk
35
+
36
+ :param engine: **参数解释**: 引擎。 **约束限制**: 不涉及。 **取值范围**: 不涉及。 **默认取值**: 不涉及。
37
+ :type engine: str
38
+ :param instance_id: **参数解释**: 实例ID。获取方法如下:登录RocketMQ控制台,在RocketMQ实例详情页面查找实例ID。 **约束限制**: 不涉及。 **取值范围**: 不涉及。 **默认取值**: 不涉及。
39
+ :type instance_id: str
40
+ :param body: Body of the SendMessageRequest
41
+ :type body: :class:`huaweicloudsdkrocketmq.v2.SendMessageResp`
42
+ """
43
+
44
+
45
+
46
+ self._engine = None
47
+ self._instance_id = None
48
+ self._body = None
49
+ self.discriminator = None
50
+
51
+ self.engine = engine
52
+ self.instance_id = instance_id
53
+ if body is not None:
54
+ self.body = body
55
+
56
+ @property
57
+ def engine(self):
58
+ r"""Gets the engine of this SendMessageRequest.
59
+
60
+ **参数解释**: 引擎。 **约束限制**: 不涉及。 **取值范围**: 不涉及。 **默认取值**: 不涉及。
61
+
62
+ :return: The engine of this SendMessageRequest.
63
+ :rtype: str
64
+ """
65
+ return self._engine
66
+
67
+ @engine.setter
68
+ def engine(self, engine):
69
+ r"""Sets the engine of this SendMessageRequest.
70
+
71
+ **参数解释**: 引擎。 **约束限制**: 不涉及。 **取值范围**: 不涉及。 **默认取值**: 不涉及。
72
+
73
+ :param engine: The engine of this SendMessageRequest.
74
+ :type engine: str
75
+ """
76
+ self._engine = engine
77
+
78
+ @property
79
+ def instance_id(self):
80
+ r"""Gets the instance_id of this SendMessageRequest.
81
+
82
+ **参数解释**: 实例ID。获取方法如下:登录RocketMQ控制台,在RocketMQ实例详情页面查找实例ID。 **约束限制**: 不涉及。 **取值范围**: 不涉及。 **默认取值**: 不涉及。
83
+
84
+ :return: The instance_id of this SendMessageRequest.
85
+ :rtype: str
86
+ """
87
+ return self._instance_id
88
+
89
+ @instance_id.setter
90
+ def instance_id(self, instance_id):
91
+ r"""Sets the instance_id of this SendMessageRequest.
92
+
93
+ **参数解释**: 实例ID。获取方法如下:登录RocketMQ控制台,在RocketMQ实例详情页面查找实例ID。 **约束限制**: 不涉及。 **取值范围**: 不涉及。 **默认取值**: 不涉及。
94
+
95
+ :param instance_id: The instance_id of this SendMessageRequest.
96
+ :type instance_id: str
97
+ """
98
+ self._instance_id = instance_id
99
+
100
+ @property
101
+ def body(self):
102
+ r"""Gets the body of this SendMessageRequest.
103
+
104
+ :return: The body of this SendMessageRequest.
105
+ :rtype: :class:`huaweicloudsdkrocketmq.v2.SendMessageResp`
106
+ """
107
+ return self._body
108
+
109
+ @body.setter
110
+ def body(self, body):
111
+ r"""Sets the body of this SendMessageRequest.
112
+
113
+ :param body: The body of this SendMessageRequest.
114
+ :type body: :class:`huaweicloudsdkrocketmq.v2.SendMessageResp`
115
+ """
116
+ self._body = body
117
+
118
+ def to_dict(self):
119
+ """Returns the model properties as a dict"""
120
+ result = {}
121
+
122
+ for attr, _ in six.iteritems(self.openapi_types):
123
+ value = getattr(self, attr)
124
+ if isinstance(value, list):
125
+ result[attr] = list(map(
126
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
127
+ value
128
+ ))
129
+ elif hasattr(value, "to_dict"):
130
+ result[attr] = value.to_dict()
131
+ elif isinstance(value, dict):
132
+ result[attr] = dict(map(
133
+ lambda item: (item[0], item[1].to_dict())
134
+ if hasattr(item[1], "to_dict") else item,
135
+ value.items()
136
+ ))
137
+ else:
138
+ if attr in self.sensitive_list:
139
+ result[attr] = "****"
140
+ else:
141
+ result[attr] = value
142
+
143
+ return result
144
+
145
+ def to_str(self):
146
+ """Returns the string representation of the model"""
147
+ import simplejson as json
148
+ if six.PY2:
149
+ import sys
150
+ reload(sys)
151
+ sys.setdefaultencoding("utf-8")
152
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
153
+
154
+ def __repr__(self):
155
+ """For `print`"""
156
+ return self.to_str()
157
+
158
+ def __eq__(self, other):
159
+ """Returns true if both objects are equal"""
160
+ if not isinstance(other, SendMessageRequest):
161
+ return False
162
+
163
+ return self.__dict__ == other.__dict__
164
+
165
+ def __ne__(self, other):
166
+ """Returns true if both objects are not equal"""
167
+ return not self == other
@@ -0,0 +1,289 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class SendMessageResp:
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
+ 'topic': 'str',
21
+ 'body': 'str',
22
+ 'property_list': 'list[SendMessageProperties]',
23
+ 'msg_id': 'str',
24
+ 'queue_id': 'float',
25
+ 'queue_offset': 'float',
26
+ 'broker_name': 'str'
27
+ }
28
+
29
+ attribute_map = {
30
+ 'topic': 'topic',
31
+ 'body': 'body',
32
+ 'property_list': 'property_list',
33
+ 'msg_id': 'msg_id',
34
+ 'queue_id': 'queue_id',
35
+ 'queue_offset': 'queue_offset',
36
+ 'broker_name': 'broker_name'
37
+ }
38
+
39
+ def __init__(self, topic=None, body=None, property_list=None, msg_id=None, queue_id=None, queue_offset=None, broker_name=None):
40
+ r"""SendMessageResp
41
+
42
+ The model defined in huaweicloud sdk
43
+
44
+ :param topic: **参数解释**: 主题名称。 **取值范围**: 不涉及。
45
+ :type topic: str
46
+ :param body: **参数解释**: 消息内容。 **取值范围**: 不涉及。
47
+ :type body: str
48
+ :param property_list: **参数解释**: 特性列表。 **取值范围**: 不涉及。
49
+ :type property_list: list[:class:`huaweicloudsdkrocketmq.v2.SendMessageProperties`]
50
+ :param msg_id: **参数解释**: 消息ID。 **取值范围**: 不涉及。
51
+ :type msg_id: str
52
+ :param queue_id: **参数解释**: 队列ID。 **取值范围**: 不涉及。
53
+ :type queue_id: float
54
+ :param queue_offset: **参数解释**: 队列offset。 **取值范围**: 不涉及。
55
+ :type queue_offset: float
56
+ :param broker_name: **参数解释**: Broker名称。 **取值范围**: 不涉及。
57
+ :type broker_name: str
58
+ """
59
+
60
+
61
+
62
+ self._topic = None
63
+ self._body = None
64
+ self._property_list = None
65
+ self._msg_id = None
66
+ self._queue_id = None
67
+ self._queue_offset = None
68
+ self._broker_name = None
69
+ self.discriminator = None
70
+
71
+ if topic is not None:
72
+ self.topic = topic
73
+ if body is not None:
74
+ self.body = body
75
+ if property_list is not None:
76
+ self.property_list = property_list
77
+ if msg_id is not None:
78
+ self.msg_id = msg_id
79
+ if queue_id is not None:
80
+ self.queue_id = queue_id
81
+ if queue_offset is not None:
82
+ self.queue_offset = queue_offset
83
+ if broker_name is not None:
84
+ self.broker_name = broker_name
85
+
86
+ @property
87
+ def topic(self):
88
+ r"""Gets the topic of this SendMessageResp.
89
+
90
+ **参数解释**: 主题名称。 **取值范围**: 不涉及。
91
+
92
+ :return: The topic of this SendMessageResp.
93
+ :rtype: str
94
+ """
95
+ return self._topic
96
+
97
+ @topic.setter
98
+ def topic(self, topic):
99
+ r"""Sets the topic of this SendMessageResp.
100
+
101
+ **参数解释**: 主题名称。 **取值范围**: 不涉及。
102
+
103
+ :param topic: The topic of this SendMessageResp.
104
+ :type topic: str
105
+ """
106
+ self._topic = topic
107
+
108
+ @property
109
+ def body(self):
110
+ r"""Gets the body of this SendMessageResp.
111
+
112
+ **参数解释**: 消息内容。 **取值范围**: 不涉及。
113
+
114
+ :return: The body of this SendMessageResp.
115
+ :rtype: str
116
+ """
117
+ return self._body
118
+
119
+ @body.setter
120
+ def body(self, body):
121
+ r"""Sets the body of this SendMessageResp.
122
+
123
+ **参数解释**: 消息内容。 **取值范围**: 不涉及。
124
+
125
+ :param body: The body of this SendMessageResp.
126
+ :type body: str
127
+ """
128
+ self._body = body
129
+
130
+ @property
131
+ def property_list(self):
132
+ r"""Gets the property_list of this SendMessageResp.
133
+
134
+ **参数解释**: 特性列表。 **取值范围**: 不涉及。
135
+
136
+ :return: The property_list of this SendMessageResp.
137
+ :rtype: list[:class:`huaweicloudsdkrocketmq.v2.SendMessageProperties`]
138
+ """
139
+ return self._property_list
140
+
141
+ @property_list.setter
142
+ def property_list(self, property_list):
143
+ r"""Sets the property_list of this SendMessageResp.
144
+
145
+ **参数解释**: 特性列表。 **取值范围**: 不涉及。
146
+
147
+ :param property_list: The property_list of this SendMessageResp.
148
+ :type property_list: list[:class:`huaweicloudsdkrocketmq.v2.SendMessageProperties`]
149
+ """
150
+ self._property_list = property_list
151
+
152
+ @property
153
+ def msg_id(self):
154
+ r"""Gets the msg_id of this SendMessageResp.
155
+
156
+ **参数解释**: 消息ID。 **取值范围**: 不涉及。
157
+
158
+ :return: The msg_id of this SendMessageResp.
159
+ :rtype: str
160
+ """
161
+ return self._msg_id
162
+
163
+ @msg_id.setter
164
+ def msg_id(self, msg_id):
165
+ r"""Sets the msg_id of this SendMessageResp.
166
+
167
+ **参数解释**: 消息ID。 **取值范围**: 不涉及。
168
+
169
+ :param msg_id: The msg_id of this SendMessageResp.
170
+ :type msg_id: str
171
+ """
172
+ self._msg_id = msg_id
173
+
174
+ @property
175
+ def queue_id(self):
176
+ r"""Gets the queue_id of this SendMessageResp.
177
+
178
+ **参数解释**: 队列ID。 **取值范围**: 不涉及。
179
+
180
+ :return: The queue_id of this SendMessageResp.
181
+ :rtype: float
182
+ """
183
+ return self._queue_id
184
+
185
+ @queue_id.setter
186
+ def queue_id(self, queue_id):
187
+ r"""Sets the queue_id of this SendMessageResp.
188
+
189
+ **参数解释**: 队列ID。 **取值范围**: 不涉及。
190
+
191
+ :param queue_id: The queue_id of this SendMessageResp.
192
+ :type queue_id: float
193
+ """
194
+ self._queue_id = queue_id
195
+
196
+ @property
197
+ def queue_offset(self):
198
+ r"""Gets the queue_offset of this SendMessageResp.
199
+
200
+ **参数解释**: 队列offset。 **取值范围**: 不涉及。
201
+
202
+ :return: The queue_offset of this SendMessageResp.
203
+ :rtype: float
204
+ """
205
+ return self._queue_offset
206
+
207
+ @queue_offset.setter
208
+ def queue_offset(self, queue_offset):
209
+ r"""Sets the queue_offset of this SendMessageResp.
210
+
211
+ **参数解释**: 队列offset。 **取值范围**: 不涉及。
212
+
213
+ :param queue_offset: The queue_offset of this SendMessageResp.
214
+ :type queue_offset: float
215
+ """
216
+ self._queue_offset = queue_offset
217
+
218
+ @property
219
+ def broker_name(self):
220
+ r"""Gets the broker_name of this SendMessageResp.
221
+
222
+ **参数解释**: Broker名称。 **取值范围**: 不涉及。
223
+
224
+ :return: The broker_name of this SendMessageResp.
225
+ :rtype: str
226
+ """
227
+ return self._broker_name
228
+
229
+ @broker_name.setter
230
+ def broker_name(self, broker_name):
231
+ r"""Sets the broker_name of this SendMessageResp.
232
+
233
+ **参数解释**: Broker名称。 **取值范围**: 不涉及。
234
+
235
+ :param broker_name: The broker_name of this SendMessageResp.
236
+ :type broker_name: str
237
+ """
238
+ self._broker_name = broker_name
239
+
240
+ def to_dict(self):
241
+ """Returns the model properties as a dict"""
242
+ result = {}
243
+
244
+ for attr, _ in six.iteritems(self.openapi_types):
245
+ value = getattr(self, attr)
246
+ if isinstance(value, list):
247
+ result[attr] = list(map(
248
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
249
+ value
250
+ ))
251
+ elif hasattr(value, "to_dict"):
252
+ result[attr] = value.to_dict()
253
+ elif isinstance(value, dict):
254
+ result[attr] = dict(map(
255
+ lambda item: (item[0], item[1].to_dict())
256
+ if hasattr(item[1], "to_dict") else item,
257
+ value.items()
258
+ ))
259
+ else:
260
+ if attr in self.sensitive_list:
261
+ result[attr] = "****"
262
+ else:
263
+ result[attr] = value
264
+
265
+ return result
266
+
267
+ def to_str(self):
268
+ """Returns the string representation of the model"""
269
+ import simplejson as json
270
+ if six.PY2:
271
+ import sys
272
+ reload(sys)
273
+ sys.setdefaultencoding("utf-8")
274
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
275
+
276
+ def __repr__(self):
277
+ """For `print`"""
278
+ return self.to_str()
279
+
280
+ def __eq__(self, other):
281
+ """Returns true if both objects are equal"""
282
+ if not isinstance(other, SendMessageResp):
283
+ return False
284
+
285
+ return self.__dict__ == other.__dict__
286
+
287
+ def __ne__(self, other):
288
+ """Returns true if both objects are not equal"""
289
+ return not self == other