huaweicloudsdkrocketmq 3.1.41__py2.py3-none-any.whl → 3.1.43__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 (28) hide show
  1. huaweicloudsdkrocketmq/v2/__init__.py +15 -0
  2. huaweicloudsdkrocketmq/v2/model/__init__.py +15 -0
  3. huaweicloudsdkrocketmq/v2/model/create_instance_by_engine_req.py +3 -3
  4. huaweicloudsdkrocketmq/v2/model/create_rocket_mq_migration_task_request.py +223 -0
  5. huaweicloudsdkrocketmq/v2/model/create_rocket_mq_migration_task_response.py +112 -0
  6. huaweicloudsdkrocketmq/v2/model/deadletter_resend_req.py +144 -0
  7. huaweicloudsdkrocketmq/v2/model/deadletter_resend_resp_resend_results.py +173 -0
  8. huaweicloudsdkrocketmq/v2/model/delete_rocket_mq_migration_task_request.py +139 -0
  9. huaweicloudsdkrocketmq/v2/model/delete_rocket_mq_migration_task_response.py +112 -0
  10. huaweicloudsdkrocketmq/v2/model/list_rocket_mq_migration_task_request.py +259 -0
  11. huaweicloudsdkrocketmq/v2/model/list_rocket_mq_migration_task_response.py +145 -0
  12. huaweicloudsdkrocketmq/v2/model/metadata_delete_req.py +115 -0
  13. huaweicloudsdkrocketmq/v2/model/metadata_task.py +231 -0
  14. huaweicloudsdkrocketmq/v2/model/resend_req.py +173 -0
  15. huaweicloudsdkrocketmq/v2/model/send_dlq_message_request.py +167 -0
  16. huaweicloudsdkrocketmq/v2/model/send_dlq_message_response.py +116 -0
  17. huaweicloudsdkrocketmq/v2/model/tag_entity.py +6 -6
  18. huaweicloudsdkrocketmq/v2/model/tag_multy_value_entity.py +6 -6
  19. huaweicloudsdkrocketmq/v2/model/validate_consumed_message_request.py +167 -0
  20. huaweicloudsdkrocketmq/v2/model/validate_consumed_message_response.py +116 -0
  21. huaweicloudsdkrocketmq/v2/region/rocketmq_region.py +6 -0
  22. huaweicloudsdkrocketmq/v2/rocketmq_async_client.py +314 -0
  23. huaweicloudsdkrocketmq/v2/rocketmq_client.py +309 -0
  24. {huaweicloudsdkrocketmq-3.1.41.dist-info → huaweicloudsdkrocketmq-3.1.43.dist-info}/METADATA +2 -2
  25. {huaweicloudsdkrocketmq-3.1.41.dist-info → huaweicloudsdkrocketmq-3.1.43.dist-info}/RECORD +28 -13
  26. {huaweicloudsdkrocketmq-3.1.41.dist-info → huaweicloudsdkrocketmq-3.1.43.dist-info}/LICENSE +0 -0
  27. {huaweicloudsdkrocketmq-3.1.41.dist-info → huaweicloudsdkrocketmq-3.1.43.dist-info}/WHEEL +0 -0
  28. {huaweicloudsdkrocketmq-3.1.41.dist-info → huaweicloudsdkrocketmq-3.1.43.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,173 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class DeadletterResendRespResendResults:
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
+ 'msg_id': 'str',
21
+ 'error_code': 'str',
22
+ 'error_message': 'str'
23
+ }
24
+
25
+ attribute_map = {
26
+ 'msg_id': 'msg_id',
27
+ 'error_code': 'error_code',
28
+ 'error_message': 'error_message'
29
+ }
30
+
31
+ def __init__(self, msg_id=None, error_code=None, error_message=None):
32
+ """DeadletterResendRespResendResults
33
+
34
+ The model defined in huaweicloud sdk
35
+
36
+ :param msg_id: 消息ID。
37
+ :type msg_id: str
38
+ :param error_code: 错误码。
39
+ :type error_code: str
40
+ :param error_message: 错误信息。
41
+ :type error_message: str
42
+ """
43
+
44
+
45
+
46
+ self._msg_id = None
47
+ self._error_code = None
48
+ self._error_message = None
49
+ self.discriminator = None
50
+
51
+ if msg_id is not None:
52
+ self.msg_id = msg_id
53
+ if error_code is not None:
54
+ self.error_code = error_code
55
+ if error_message is not None:
56
+ self.error_message = error_message
57
+
58
+ @property
59
+ def msg_id(self):
60
+ """Gets the msg_id of this DeadletterResendRespResendResults.
61
+
62
+ 消息ID。
63
+
64
+ :return: The msg_id of this DeadletterResendRespResendResults.
65
+ :rtype: str
66
+ """
67
+ return self._msg_id
68
+
69
+ @msg_id.setter
70
+ def msg_id(self, msg_id):
71
+ """Sets the msg_id of this DeadletterResendRespResendResults.
72
+
73
+ 消息ID。
74
+
75
+ :param msg_id: The msg_id of this DeadletterResendRespResendResults.
76
+ :type msg_id: str
77
+ """
78
+ self._msg_id = msg_id
79
+
80
+ @property
81
+ def error_code(self):
82
+ """Gets the error_code of this DeadletterResendRespResendResults.
83
+
84
+ 错误码。
85
+
86
+ :return: The error_code of this DeadletterResendRespResendResults.
87
+ :rtype: str
88
+ """
89
+ return self._error_code
90
+
91
+ @error_code.setter
92
+ def error_code(self, error_code):
93
+ """Sets the error_code of this DeadletterResendRespResendResults.
94
+
95
+ 错误码。
96
+
97
+ :param error_code: The error_code of this DeadletterResendRespResendResults.
98
+ :type error_code: str
99
+ """
100
+ self._error_code = error_code
101
+
102
+ @property
103
+ def error_message(self):
104
+ """Gets the error_message of this DeadletterResendRespResendResults.
105
+
106
+ 错误信息。
107
+
108
+ :return: The error_message of this DeadletterResendRespResendResults.
109
+ :rtype: str
110
+ """
111
+ return self._error_message
112
+
113
+ @error_message.setter
114
+ def error_message(self, error_message):
115
+ """Sets the error_message of this DeadletterResendRespResendResults.
116
+
117
+ 错误信息。
118
+
119
+ :param error_message: The error_message of this DeadletterResendRespResendResults.
120
+ :type error_message: str
121
+ """
122
+ self._error_message = error_message
123
+
124
+ def to_dict(self):
125
+ """Returns the model properties as a dict"""
126
+ result = {}
127
+
128
+ for attr, _ in six.iteritems(self.openapi_types):
129
+ value = getattr(self, attr)
130
+ if isinstance(value, list):
131
+ result[attr] = list(map(
132
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
133
+ value
134
+ ))
135
+ elif hasattr(value, "to_dict"):
136
+ result[attr] = value.to_dict()
137
+ elif isinstance(value, dict):
138
+ result[attr] = dict(map(
139
+ lambda item: (item[0], item[1].to_dict())
140
+ if hasattr(item[1], "to_dict") else item,
141
+ value.items()
142
+ ))
143
+ else:
144
+ if attr in self.sensitive_list:
145
+ result[attr] = "****"
146
+ else:
147
+ result[attr] = value
148
+
149
+ return result
150
+
151
+ def to_str(self):
152
+ """Returns the string representation of the model"""
153
+ import simplejson as json
154
+ if six.PY2:
155
+ import sys
156
+ reload(sys)
157
+ sys.setdefaultencoding("utf-8")
158
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
159
+
160
+ def __repr__(self):
161
+ """For `print`"""
162
+ return self.to_str()
163
+
164
+ def __eq__(self, other):
165
+ """Returns true if both objects are equal"""
166
+ if not isinstance(other, DeadletterResendRespResendResults):
167
+ return False
168
+
169
+ return self.__dict__ == other.__dict__
170
+
171
+ def __ne__(self, other):
172
+ """Returns true if both objects are not equal"""
173
+ 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 DeleteRocketMqMigrationTaskRequest:
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
+ 'instance_id': 'str',
21
+ 'body': 'MetadataDeleteReq'
22
+ }
23
+
24
+ attribute_map = {
25
+ 'instance_id': 'instance_id',
26
+ 'body': 'body'
27
+ }
28
+
29
+ def __init__(self, instance_id=None, body=None):
30
+ """DeleteRocketMqMigrationTaskRequest
31
+
32
+ The model defined in huaweicloud sdk
33
+
34
+ :param instance_id: 实例ID。
35
+ :type instance_id: str
36
+ :param body: Body of the DeleteRocketMqMigrationTaskRequest
37
+ :type body: :class:`huaweicloudsdkrocketmq.v2.MetadataDeleteReq`
38
+ """
39
+
40
+
41
+
42
+ self._instance_id = None
43
+ self._body = None
44
+ self.discriminator = None
45
+
46
+ self.instance_id = instance_id
47
+ if body is not None:
48
+ self.body = body
49
+
50
+ @property
51
+ def instance_id(self):
52
+ """Gets the instance_id of this DeleteRocketMqMigrationTaskRequest.
53
+
54
+ 实例ID。
55
+
56
+ :return: The instance_id of this DeleteRocketMqMigrationTaskRequest.
57
+ :rtype: str
58
+ """
59
+ return self._instance_id
60
+
61
+ @instance_id.setter
62
+ def instance_id(self, instance_id):
63
+ """Sets the instance_id of this DeleteRocketMqMigrationTaskRequest.
64
+
65
+ 实例ID。
66
+
67
+ :param instance_id: The instance_id of this DeleteRocketMqMigrationTaskRequest.
68
+ :type instance_id: str
69
+ """
70
+ self._instance_id = instance_id
71
+
72
+ @property
73
+ def body(self):
74
+ """Gets the body of this DeleteRocketMqMigrationTaskRequest.
75
+
76
+ :return: The body of this DeleteRocketMqMigrationTaskRequest.
77
+ :rtype: :class:`huaweicloudsdkrocketmq.v2.MetadataDeleteReq`
78
+ """
79
+ return self._body
80
+
81
+ @body.setter
82
+ def body(self, body):
83
+ """Sets the body of this DeleteRocketMqMigrationTaskRequest.
84
+
85
+ :param body: The body of this DeleteRocketMqMigrationTaskRequest.
86
+ :type body: :class:`huaweicloudsdkrocketmq.v2.MetadataDeleteReq`
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, DeleteRocketMqMigrationTaskRequest):
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,112 @@
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 DeleteRocketMqMigrationTaskResponse(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
+ 'body': 'str'
22
+ }
23
+
24
+ attribute_map = {
25
+ 'body': 'body'
26
+ }
27
+
28
+ def __init__(self, body=None):
29
+ """DeleteRocketMqMigrationTaskResponse
30
+
31
+ The model defined in huaweicloud sdk
32
+
33
+ :param body:
34
+ :type body: str
35
+ """
36
+
37
+ super(DeleteRocketMqMigrationTaskResponse, self).__init__()
38
+
39
+ self._body = None
40
+ self.discriminator = None
41
+
42
+ if body is not None:
43
+ self.body = body
44
+
45
+ @property
46
+ def body(self):
47
+ """Gets the body of this DeleteRocketMqMigrationTaskResponse.
48
+
49
+ :return: The body of this DeleteRocketMqMigrationTaskResponse.
50
+ :rtype: str
51
+ """
52
+ return self._body
53
+
54
+ @body.setter
55
+ def body(self, body):
56
+ """Sets the body of this DeleteRocketMqMigrationTaskResponse.
57
+
58
+ :param body: The body of this DeleteRocketMqMigrationTaskResponse.
59
+ :type body: str
60
+ """
61
+ self._body = body
62
+
63
+ def to_dict(self):
64
+ """Returns the model properties as a dict"""
65
+ result = {}
66
+
67
+ for attr, _ in six.iteritems(self.openapi_types):
68
+ value = getattr(self, attr)
69
+ if isinstance(value, list):
70
+ result[attr] = list(map(
71
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
72
+ value
73
+ ))
74
+ elif hasattr(value, "to_dict"):
75
+ result[attr] = value.to_dict()
76
+ elif isinstance(value, dict):
77
+ result[attr] = dict(map(
78
+ lambda item: (item[0], item[1].to_dict())
79
+ if hasattr(item[1], "to_dict") else item,
80
+ value.items()
81
+ ))
82
+ else:
83
+ if attr in self.sensitive_list:
84
+ result[attr] = "****"
85
+ else:
86
+ result[attr] = value
87
+
88
+ return result
89
+
90
+ def to_str(self):
91
+ """Returns the string representation of the model"""
92
+ import simplejson as json
93
+ if six.PY2:
94
+ import sys
95
+ reload(sys)
96
+ sys.setdefaultencoding("utf-8")
97
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
98
+
99
+ def __repr__(self):
100
+ """For `print`"""
101
+ return self.to_str()
102
+
103
+ def __eq__(self, other):
104
+ """Returns true if both objects are equal"""
105
+ if not isinstance(other, DeleteRocketMqMigrationTaskResponse):
106
+ return False
107
+
108
+ return self.__dict__ == other.__dict__
109
+
110
+ def __ne__(self, other):
111
+ """Returns true if both objects are not equal"""
112
+ return not self == other
@@ -0,0 +1,259 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class ListRocketMqMigrationTaskRequest:
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
+ 'instance_id': 'str',
21
+ 'id': 'str',
22
+ 'type': 'str',
23
+ 'offset': 'str',
24
+ 'limit': 'str',
25
+ 'name': 'str'
26
+ }
27
+
28
+ attribute_map = {
29
+ 'instance_id': 'instance_id',
30
+ 'id': 'id',
31
+ 'type': 'type',
32
+ 'offset': 'offset',
33
+ 'limit': 'limit',
34
+ 'name': 'name'
35
+ }
36
+
37
+ def __init__(self, instance_id=None, id=None, type=None, offset=None, limit=None, name=None):
38
+ """ListRocketMqMigrationTaskRequest
39
+
40
+ The model defined in huaweicloud sdk
41
+
42
+ :param instance_id: 实例ID。
43
+ :type instance_id: str
44
+ :param id: 任务ID
45
+ :type id: str
46
+ :param type: 查询类型
47
+ :type type: str
48
+ :param offset: 当前页,从1开始
49
+ :type offset: str
50
+ :param limit: 当前页大小
51
+ :type limit: str
52
+ :param name: 查询vhost列表时,该字段可为空,查询exchange列表时,该字段为exchange所属vhost名称,查询queue列表时,该字段为queue所属vhost-所属exchange,例vhost1-exchange1
53
+ :type name: str
54
+ """
55
+
56
+
57
+
58
+ self._instance_id = None
59
+ self._id = None
60
+ self._type = None
61
+ self._offset = None
62
+ self._limit = None
63
+ self._name = None
64
+ self.discriminator = None
65
+
66
+ self.instance_id = instance_id
67
+ if id is not None:
68
+ self.id = id
69
+ if type is not None:
70
+ self.type = type
71
+ if offset is not None:
72
+ self.offset = offset
73
+ if limit is not None:
74
+ self.limit = limit
75
+ if name is not None:
76
+ self.name = name
77
+
78
+ @property
79
+ def instance_id(self):
80
+ """Gets the instance_id of this ListRocketMqMigrationTaskRequest.
81
+
82
+ 实例ID。
83
+
84
+ :return: The instance_id of this ListRocketMqMigrationTaskRequest.
85
+ :rtype: str
86
+ """
87
+ return self._instance_id
88
+
89
+ @instance_id.setter
90
+ def instance_id(self, instance_id):
91
+ """Sets the instance_id of this ListRocketMqMigrationTaskRequest.
92
+
93
+ 实例ID。
94
+
95
+ :param instance_id: The instance_id of this ListRocketMqMigrationTaskRequest.
96
+ :type instance_id: str
97
+ """
98
+ self._instance_id = instance_id
99
+
100
+ @property
101
+ def id(self):
102
+ """Gets the id of this ListRocketMqMigrationTaskRequest.
103
+
104
+ 任务ID
105
+
106
+ :return: The id of this ListRocketMqMigrationTaskRequest.
107
+ :rtype: str
108
+ """
109
+ return self._id
110
+
111
+ @id.setter
112
+ def id(self, id):
113
+ """Sets the id of this ListRocketMqMigrationTaskRequest.
114
+
115
+ 任务ID
116
+
117
+ :param id: The id of this ListRocketMqMigrationTaskRequest.
118
+ :type id: str
119
+ """
120
+ self._id = id
121
+
122
+ @property
123
+ def type(self):
124
+ """Gets the type of this ListRocketMqMigrationTaskRequest.
125
+
126
+ 查询类型
127
+
128
+ :return: The type of this ListRocketMqMigrationTaskRequest.
129
+ :rtype: str
130
+ """
131
+ return self._type
132
+
133
+ @type.setter
134
+ def type(self, type):
135
+ """Sets the type of this ListRocketMqMigrationTaskRequest.
136
+
137
+ 查询类型
138
+
139
+ :param type: The type of this ListRocketMqMigrationTaskRequest.
140
+ :type type: str
141
+ """
142
+ self._type = type
143
+
144
+ @property
145
+ def offset(self):
146
+ """Gets the offset of this ListRocketMqMigrationTaskRequest.
147
+
148
+ 当前页,从1开始
149
+
150
+ :return: The offset of this ListRocketMqMigrationTaskRequest.
151
+ :rtype: str
152
+ """
153
+ return self._offset
154
+
155
+ @offset.setter
156
+ def offset(self, offset):
157
+ """Sets the offset of this ListRocketMqMigrationTaskRequest.
158
+
159
+ 当前页,从1开始
160
+
161
+ :param offset: The offset of this ListRocketMqMigrationTaskRequest.
162
+ :type offset: str
163
+ """
164
+ self._offset = offset
165
+
166
+ @property
167
+ def limit(self):
168
+ """Gets the limit of this ListRocketMqMigrationTaskRequest.
169
+
170
+ 当前页大小
171
+
172
+ :return: The limit of this ListRocketMqMigrationTaskRequest.
173
+ :rtype: str
174
+ """
175
+ return self._limit
176
+
177
+ @limit.setter
178
+ def limit(self, limit):
179
+ """Sets the limit of this ListRocketMqMigrationTaskRequest.
180
+
181
+ 当前页大小
182
+
183
+ :param limit: The limit of this ListRocketMqMigrationTaskRequest.
184
+ :type limit: str
185
+ """
186
+ self._limit = limit
187
+
188
+ @property
189
+ def name(self):
190
+ """Gets the name of this ListRocketMqMigrationTaskRequest.
191
+
192
+ 查询vhost列表时,该字段可为空,查询exchange列表时,该字段为exchange所属vhost名称,查询queue列表时,该字段为queue所属vhost-所属exchange,例vhost1-exchange1
193
+
194
+ :return: The name of this ListRocketMqMigrationTaskRequest.
195
+ :rtype: str
196
+ """
197
+ return self._name
198
+
199
+ @name.setter
200
+ def name(self, name):
201
+ """Sets the name of this ListRocketMqMigrationTaskRequest.
202
+
203
+ 查询vhost列表时,该字段可为空,查询exchange列表时,该字段为exchange所属vhost名称,查询queue列表时,该字段为queue所属vhost-所属exchange,例vhost1-exchange1
204
+
205
+ :param name: The name of this ListRocketMqMigrationTaskRequest.
206
+ :type name: str
207
+ """
208
+ self._name = name
209
+
210
+ def to_dict(self):
211
+ """Returns the model properties as a dict"""
212
+ result = {}
213
+
214
+ for attr, _ in six.iteritems(self.openapi_types):
215
+ value = getattr(self, attr)
216
+ if isinstance(value, list):
217
+ result[attr] = list(map(
218
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
219
+ value
220
+ ))
221
+ elif hasattr(value, "to_dict"):
222
+ result[attr] = value.to_dict()
223
+ elif isinstance(value, dict):
224
+ result[attr] = dict(map(
225
+ lambda item: (item[0], item[1].to_dict())
226
+ if hasattr(item[1], "to_dict") else item,
227
+ value.items()
228
+ ))
229
+ else:
230
+ if attr in self.sensitive_list:
231
+ result[attr] = "****"
232
+ else:
233
+ result[attr] = value
234
+
235
+ return result
236
+
237
+ def to_str(self):
238
+ """Returns the string representation of the model"""
239
+ import simplejson as json
240
+ if six.PY2:
241
+ import sys
242
+ reload(sys)
243
+ sys.setdefaultencoding("utf-8")
244
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
245
+
246
+ def __repr__(self):
247
+ """For `print`"""
248
+ return self.to_str()
249
+
250
+ def __eq__(self, other):
251
+ """Returns true if both objects are equal"""
252
+ if not isinstance(other, ListRocketMqMigrationTaskRequest):
253
+ return False
254
+
255
+ return self.__dict__ == other.__dict__
256
+
257
+ def __ne__(self, other):
258
+ """Returns true if both objects are not equal"""
259
+ return not self == other