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,289 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class DiagnosisReportResp:
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
+ 'report_id': 'str',
21
+ 'group_name': 'str',
22
+ 'consumer_nums': 'int',
23
+ 'status': 'str',
24
+ 'creat_at': 'int',
25
+ 'abnormal_item_sum': 'int',
26
+ 'faulted_node_sum': 'int'
27
+ }
28
+
29
+ attribute_map = {
30
+ 'report_id': 'report_id',
31
+ 'group_name': 'group_name',
32
+ 'consumer_nums': 'consumer_nums',
33
+ 'status': 'status',
34
+ 'creat_at': 'creat_at',
35
+ 'abnormal_item_sum': 'abnormal_item_sum',
36
+ 'faulted_node_sum': 'faulted_node_sum'
37
+ }
38
+
39
+ def __init__(self, report_id=None, group_name=None, consumer_nums=None, status=None, creat_at=None, abnormal_item_sum=None, faulted_node_sum=None):
40
+ r"""DiagnosisReportResp
41
+
42
+ The model defined in huaweicloud sdk
43
+
44
+ :param report_id: **参数解释**: 报告ID。 **取值范围**: 不涉及。
45
+ :type report_id: str
46
+ :param group_name: **参数解释**: 消费组名称。 **取值范围**: 不涉及。
47
+ :type group_name: str
48
+ :param consumer_nums: **参数解释**: 消费者数量。 **取值范围**: 不涉及。
49
+ :type consumer_nums: int
50
+ :param status: **参数解释**: 状态。 **取值范围**: 不涉及。
51
+ :type status: str
52
+ :param creat_at: **参数解释**: 生成时间。 **取值范围**: 不涉及。
53
+ :type creat_at: int
54
+ :param abnormal_item_sum: **参数解释**: 异常项数量。 **取值范围**: 不涉及。
55
+ :type abnormal_item_sum: int
56
+ :param faulted_node_sum: **参数解释**: 异常节点数量。 **取值范围**: 不涉及。
57
+ :type faulted_node_sum: int
58
+ """
59
+
60
+
61
+
62
+ self._report_id = None
63
+ self._group_name = None
64
+ self._consumer_nums = None
65
+ self._status = None
66
+ self._creat_at = None
67
+ self._abnormal_item_sum = None
68
+ self._faulted_node_sum = None
69
+ self.discriminator = None
70
+
71
+ if report_id is not None:
72
+ self.report_id = report_id
73
+ if group_name is not None:
74
+ self.group_name = group_name
75
+ if consumer_nums is not None:
76
+ self.consumer_nums = consumer_nums
77
+ if status is not None:
78
+ self.status = status
79
+ if creat_at is not None:
80
+ self.creat_at = creat_at
81
+ if abnormal_item_sum is not None:
82
+ self.abnormal_item_sum = abnormal_item_sum
83
+ if faulted_node_sum is not None:
84
+ self.faulted_node_sum = faulted_node_sum
85
+
86
+ @property
87
+ def report_id(self):
88
+ r"""Gets the report_id of this DiagnosisReportResp.
89
+
90
+ **参数解释**: 报告ID。 **取值范围**: 不涉及。
91
+
92
+ :return: The report_id of this DiagnosisReportResp.
93
+ :rtype: str
94
+ """
95
+ return self._report_id
96
+
97
+ @report_id.setter
98
+ def report_id(self, report_id):
99
+ r"""Sets the report_id of this DiagnosisReportResp.
100
+
101
+ **参数解释**: 报告ID。 **取值范围**: 不涉及。
102
+
103
+ :param report_id: The report_id of this DiagnosisReportResp.
104
+ :type report_id: str
105
+ """
106
+ self._report_id = report_id
107
+
108
+ @property
109
+ def group_name(self):
110
+ r"""Gets the group_name of this DiagnosisReportResp.
111
+
112
+ **参数解释**: 消费组名称。 **取值范围**: 不涉及。
113
+
114
+ :return: The group_name of this DiagnosisReportResp.
115
+ :rtype: str
116
+ """
117
+ return self._group_name
118
+
119
+ @group_name.setter
120
+ def group_name(self, group_name):
121
+ r"""Sets the group_name of this DiagnosisReportResp.
122
+
123
+ **参数解释**: 消费组名称。 **取值范围**: 不涉及。
124
+
125
+ :param group_name: The group_name of this DiagnosisReportResp.
126
+ :type group_name: str
127
+ """
128
+ self._group_name = group_name
129
+
130
+ @property
131
+ def consumer_nums(self):
132
+ r"""Gets the consumer_nums of this DiagnosisReportResp.
133
+
134
+ **参数解释**: 消费者数量。 **取值范围**: 不涉及。
135
+
136
+ :return: The consumer_nums of this DiagnosisReportResp.
137
+ :rtype: int
138
+ """
139
+ return self._consumer_nums
140
+
141
+ @consumer_nums.setter
142
+ def consumer_nums(self, consumer_nums):
143
+ r"""Sets the consumer_nums of this DiagnosisReportResp.
144
+
145
+ **参数解释**: 消费者数量。 **取值范围**: 不涉及。
146
+
147
+ :param consumer_nums: The consumer_nums of this DiagnosisReportResp.
148
+ :type consumer_nums: int
149
+ """
150
+ self._consumer_nums = consumer_nums
151
+
152
+ @property
153
+ def status(self):
154
+ r"""Gets the status of this DiagnosisReportResp.
155
+
156
+ **参数解释**: 状态。 **取值范围**: 不涉及。
157
+
158
+ :return: The status of this DiagnosisReportResp.
159
+ :rtype: str
160
+ """
161
+ return self._status
162
+
163
+ @status.setter
164
+ def status(self, status):
165
+ r"""Sets the status of this DiagnosisReportResp.
166
+
167
+ **参数解释**: 状态。 **取值范围**: 不涉及。
168
+
169
+ :param status: The status of this DiagnosisReportResp.
170
+ :type status: str
171
+ """
172
+ self._status = status
173
+
174
+ @property
175
+ def creat_at(self):
176
+ r"""Gets the creat_at of this DiagnosisReportResp.
177
+
178
+ **参数解释**: 生成时间。 **取值范围**: 不涉及。
179
+
180
+ :return: The creat_at of this DiagnosisReportResp.
181
+ :rtype: int
182
+ """
183
+ return self._creat_at
184
+
185
+ @creat_at.setter
186
+ def creat_at(self, creat_at):
187
+ r"""Sets the creat_at of this DiagnosisReportResp.
188
+
189
+ **参数解释**: 生成时间。 **取值范围**: 不涉及。
190
+
191
+ :param creat_at: The creat_at of this DiagnosisReportResp.
192
+ :type creat_at: int
193
+ """
194
+ self._creat_at = creat_at
195
+
196
+ @property
197
+ def abnormal_item_sum(self):
198
+ r"""Gets the abnormal_item_sum of this DiagnosisReportResp.
199
+
200
+ **参数解释**: 异常项数量。 **取值范围**: 不涉及。
201
+
202
+ :return: The abnormal_item_sum of this DiagnosisReportResp.
203
+ :rtype: int
204
+ """
205
+ return self._abnormal_item_sum
206
+
207
+ @abnormal_item_sum.setter
208
+ def abnormal_item_sum(self, abnormal_item_sum):
209
+ r"""Sets the abnormal_item_sum of this DiagnosisReportResp.
210
+
211
+ **参数解释**: 异常项数量。 **取值范围**: 不涉及。
212
+
213
+ :param abnormal_item_sum: The abnormal_item_sum of this DiagnosisReportResp.
214
+ :type abnormal_item_sum: int
215
+ """
216
+ self._abnormal_item_sum = abnormal_item_sum
217
+
218
+ @property
219
+ def faulted_node_sum(self):
220
+ r"""Gets the faulted_node_sum of this DiagnosisReportResp.
221
+
222
+ **参数解释**: 异常节点数量。 **取值范围**: 不涉及。
223
+
224
+ :return: The faulted_node_sum of this DiagnosisReportResp.
225
+ :rtype: int
226
+ """
227
+ return self._faulted_node_sum
228
+
229
+ @faulted_node_sum.setter
230
+ def faulted_node_sum(self, faulted_node_sum):
231
+ r"""Sets the faulted_node_sum of this DiagnosisReportResp.
232
+
233
+ **参数解释**: 异常节点数量。 **取值范围**: 不涉及。
234
+
235
+ :param faulted_node_sum: The faulted_node_sum of this DiagnosisReportResp.
236
+ :type faulted_node_sum: int
237
+ """
238
+ self._faulted_node_sum = faulted_node_sum
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, DiagnosisReportResp):
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
@@ -0,0 +1,230 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class ListBackgroundTasksRequest:
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
+ 'start': 'int',
22
+ 'limit': 'int',
23
+ 'begin_time': 'str',
24
+ 'end_time': 'str'
25
+ }
26
+
27
+ attribute_map = {
28
+ 'instance_id': 'instance_id',
29
+ 'start': 'start',
30
+ 'limit': 'limit',
31
+ 'begin_time': 'begin_time',
32
+ 'end_time': 'end_time'
33
+ }
34
+
35
+ def __init__(self, instance_id=None, start=None, limit=None, begin_time=None, end_time=None):
36
+ r"""ListBackgroundTasksRequest
37
+
38
+ The model defined in huaweicloud sdk
39
+
40
+ :param instance_id: **参数解释**: 实例ID。获取方法如下:登录RocketMQ控制台,在RocketMQ实例详情页面查找实例ID。 **约束限制**: 不涉及。 **取值范围**: 不涉及。 **默认取值**: 不涉及。
41
+ :type instance_id: str
42
+ :param start: **参数解释**: 开启查询的任务编号。 **约束限制**: 不涉及。 **取值范围**: 大于等于0。 **默认取值**: 不涉及。
43
+ :type start: int
44
+ :param limit: **参数解释**: 查询数量。 **约束限制**: 不涉及。 **取值范围**: 不涉及。 **默认取值**: 不涉及。
45
+ :type limit: int
46
+ :param begin_time: **参数解释**: 查询任务的最小时间,格式为YYYYMMDDHHmmss。 **约束限制**: 不涉及。 **取值范围**: 大于等于0。 **默认取值**: 不涉及。
47
+ :type begin_time: str
48
+ :param end_time: **参数解释**: 查询任务的最大时间,格式为YYYYMMDDHHmmss。 **约束限制**: 不涉及。 **取值范围**: 不涉及。 **默认取值**: 不涉及。
49
+ :type end_time: str
50
+ """
51
+
52
+
53
+
54
+ self._instance_id = None
55
+ self._start = None
56
+ self._limit = None
57
+ self._begin_time = None
58
+ self._end_time = None
59
+ self.discriminator = None
60
+
61
+ self.instance_id = instance_id
62
+ if start is not None:
63
+ self.start = start
64
+ if limit is not None:
65
+ self.limit = limit
66
+ if begin_time is not None:
67
+ self.begin_time = begin_time
68
+ if end_time is not None:
69
+ self.end_time = end_time
70
+
71
+ @property
72
+ def instance_id(self):
73
+ r"""Gets the instance_id of this ListBackgroundTasksRequest.
74
+
75
+ **参数解释**: 实例ID。获取方法如下:登录RocketMQ控制台,在RocketMQ实例详情页面查找实例ID。 **约束限制**: 不涉及。 **取值范围**: 不涉及。 **默认取值**: 不涉及。
76
+
77
+ :return: The instance_id of this ListBackgroundTasksRequest.
78
+ :rtype: str
79
+ """
80
+ return self._instance_id
81
+
82
+ @instance_id.setter
83
+ def instance_id(self, instance_id):
84
+ r"""Sets the instance_id of this ListBackgroundTasksRequest.
85
+
86
+ **参数解释**: 实例ID。获取方法如下:登录RocketMQ控制台,在RocketMQ实例详情页面查找实例ID。 **约束限制**: 不涉及。 **取值范围**: 不涉及。 **默认取值**: 不涉及。
87
+
88
+ :param instance_id: The instance_id of this ListBackgroundTasksRequest.
89
+ :type instance_id: str
90
+ """
91
+ self._instance_id = instance_id
92
+
93
+ @property
94
+ def start(self):
95
+ r"""Gets the start of this ListBackgroundTasksRequest.
96
+
97
+ **参数解释**: 开启查询的任务编号。 **约束限制**: 不涉及。 **取值范围**: 大于等于0。 **默认取值**: 不涉及。
98
+
99
+ :return: The start of this ListBackgroundTasksRequest.
100
+ :rtype: int
101
+ """
102
+ return self._start
103
+
104
+ @start.setter
105
+ def start(self, start):
106
+ r"""Sets the start of this ListBackgroundTasksRequest.
107
+
108
+ **参数解释**: 开启查询的任务编号。 **约束限制**: 不涉及。 **取值范围**: 大于等于0。 **默认取值**: 不涉及。
109
+
110
+ :param start: The start of this ListBackgroundTasksRequest.
111
+ :type start: int
112
+ """
113
+ self._start = start
114
+
115
+ @property
116
+ def limit(self):
117
+ r"""Gets the limit of this ListBackgroundTasksRequest.
118
+
119
+ **参数解释**: 查询数量。 **约束限制**: 不涉及。 **取值范围**: 不涉及。 **默认取值**: 不涉及。
120
+
121
+ :return: The limit of this ListBackgroundTasksRequest.
122
+ :rtype: int
123
+ """
124
+ return self._limit
125
+
126
+ @limit.setter
127
+ def limit(self, limit):
128
+ r"""Sets the limit of this ListBackgroundTasksRequest.
129
+
130
+ **参数解释**: 查询数量。 **约束限制**: 不涉及。 **取值范围**: 不涉及。 **默认取值**: 不涉及。
131
+
132
+ :param limit: The limit of this ListBackgroundTasksRequest.
133
+ :type limit: int
134
+ """
135
+ self._limit = limit
136
+
137
+ @property
138
+ def begin_time(self):
139
+ r"""Gets the begin_time of this ListBackgroundTasksRequest.
140
+
141
+ **参数解释**: 查询任务的最小时间,格式为YYYYMMDDHHmmss。 **约束限制**: 不涉及。 **取值范围**: 大于等于0。 **默认取值**: 不涉及。
142
+
143
+ :return: The begin_time of this ListBackgroundTasksRequest.
144
+ :rtype: str
145
+ """
146
+ return self._begin_time
147
+
148
+ @begin_time.setter
149
+ def begin_time(self, begin_time):
150
+ r"""Sets the begin_time of this ListBackgroundTasksRequest.
151
+
152
+ **参数解释**: 查询任务的最小时间,格式为YYYYMMDDHHmmss。 **约束限制**: 不涉及。 **取值范围**: 大于等于0。 **默认取值**: 不涉及。
153
+
154
+ :param begin_time: The begin_time of this ListBackgroundTasksRequest.
155
+ :type begin_time: str
156
+ """
157
+ self._begin_time = begin_time
158
+
159
+ @property
160
+ def end_time(self):
161
+ r"""Gets the end_time of this ListBackgroundTasksRequest.
162
+
163
+ **参数解释**: 查询任务的最大时间,格式为YYYYMMDDHHmmss。 **约束限制**: 不涉及。 **取值范围**: 不涉及。 **默认取值**: 不涉及。
164
+
165
+ :return: The end_time of this ListBackgroundTasksRequest.
166
+ :rtype: str
167
+ """
168
+ return self._end_time
169
+
170
+ @end_time.setter
171
+ def end_time(self, end_time):
172
+ r"""Sets the end_time of this ListBackgroundTasksRequest.
173
+
174
+ **参数解释**: 查询任务的最大时间,格式为YYYYMMDDHHmmss。 **约束限制**: 不涉及。 **取值范围**: 不涉及。 **默认取值**: 不涉及。
175
+
176
+ :param end_time: The end_time of this ListBackgroundTasksRequest.
177
+ :type end_time: str
178
+ """
179
+ self._end_time = end_time
180
+
181
+ def to_dict(self):
182
+ """Returns the model properties as a dict"""
183
+ result = {}
184
+
185
+ for attr, _ in six.iteritems(self.openapi_types):
186
+ value = getattr(self, attr)
187
+ if isinstance(value, list):
188
+ result[attr] = list(map(
189
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
190
+ value
191
+ ))
192
+ elif hasattr(value, "to_dict"):
193
+ result[attr] = value.to_dict()
194
+ elif isinstance(value, dict):
195
+ result[attr] = dict(map(
196
+ lambda item: (item[0], item[1].to_dict())
197
+ if hasattr(item[1], "to_dict") else item,
198
+ value.items()
199
+ ))
200
+ else:
201
+ if attr in self.sensitive_list:
202
+ result[attr] = "****"
203
+ else:
204
+ result[attr] = value
205
+
206
+ return result
207
+
208
+ def to_str(self):
209
+ """Returns the string representation of the model"""
210
+ import simplejson as json
211
+ if six.PY2:
212
+ import sys
213
+ reload(sys)
214
+ sys.setdefaultencoding("utf-8")
215
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
216
+
217
+ def __repr__(self):
218
+ """For `print`"""
219
+ return self.to_str()
220
+
221
+ def __eq__(self, other):
222
+ """Returns true if both objects are equal"""
223
+ if not isinstance(other, ListBackgroundTasksRequest):
224
+ return False
225
+
226
+ return self.__dict__ == other.__dict__
227
+
228
+ def __ne__(self, other):
229
+ """Returns true if both objects are not equal"""
230
+ return not self == other