huaweicloudsdkrocketmq 3.1.151__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 (44) 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_topic_or_batch_delete_topic_req.py +3 -3
  10. huaweicloudsdkrocketmq/v2/model/create_topic_req.py +3 -3
  11. huaweicloudsdkrocketmq/v2/model/{restart_instance_response.py → delete_background_task_request.py} +31 -63
  12. huaweicloudsdkrocketmq/v2/model/delete_background_task_response.py +85 -0
  13. huaweicloudsdkrocketmq/v2/model/delete_consumer_group_response.py +32 -1
  14. huaweicloudsdkrocketmq/v2/model/delete_topic_response.py +32 -1
  15. huaweicloudsdkrocketmq/v2/model/diagnosis_rep.py +144 -0
  16. huaweicloudsdkrocketmq/v2/model/diagnosis_report_resp.py +289 -0
  17. huaweicloudsdkrocketmq/v2/model/list_background_tasks_request.py +230 -0
  18. huaweicloudsdkrocketmq/v2/model/list_background_tasks_resp_tasks.py +318 -0
  19. huaweicloudsdkrocketmq/v2/model/list_background_tasks_response.py +145 -0
  20. huaweicloudsdkrocketmq/v2/model/list_diagnosis_reports_request.py +200 -0
  21. huaweicloudsdkrocketmq/v2/model/list_diagnosis_reports_response.py +116 -0
  22. huaweicloudsdkrocketmq/v2/model/list_messages_request.py +30 -1
  23. huaweicloudsdkrocketmq/v2/model/modify_instance_ssl_config_request.py +167 -0
  24. huaweicloudsdkrocketmq/v2/model/modify_instance_ssl_config_response.py +145 -0
  25. huaweicloudsdkrocketmq/v2/model/{restart_instance_request.py → plain_ssl_switch_rep.py} +23 -50
  26. huaweicloudsdkrocketmq/v2/model/send_message_properties.py +144 -0
  27. huaweicloudsdkrocketmq/v2/model/send_message_request.py +167 -0
  28. huaweicloudsdkrocketmq/v2/model/send_message_resp.py +289 -0
  29. huaweicloudsdkrocketmq/v2/model/send_message_response.py +290 -0
  30. huaweicloudsdkrocketmq/v2/model/show_diagnosis_report_request.py +142 -0
  31. huaweicloudsdkrocketmq/v2/model/show_diagnosis_report_response.py +435 -0
  32. huaweicloudsdkrocketmq/v2/model/show_diagnosis_stack_request.py +142 -0
  33. huaweicloudsdkrocketmq/v2/model/show_diagnosis_stack_response.py +145 -0
  34. huaweicloudsdkrocketmq/v2/model/update_consumer_group_response.py +32 -1
  35. huaweicloudsdkrocketmq/v2/model/update_topic_queue_entity.py +173 -0
  36. huaweicloudsdkrocketmq/v2/model/update_topic_req.py +70 -12
  37. huaweicloudsdkrocketmq/v2/model/update_topic_response.py +32 -1
  38. huaweicloudsdkrocketmq/v2/rocketmq_async_client.py +580 -24
  39. huaweicloudsdkrocketmq/v2/rocketmq_client.py +580 -24
  40. {huaweicloudsdkrocketmq-3.1.151.dist-info → huaweicloudsdkrocketmq-3.1.152.dist-info}/METADATA +2 -2
  41. {huaweicloudsdkrocketmq-3.1.151.dist-info → huaweicloudsdkrocketmq-3.1.152.dist-info}/RECORD +44 -20
  42. {huaweicloudsdkrocketmq-3.1.151.dist-info → huaweicloudsdkrocketmq-3.1.152.dist-info}/LICENSE +0 -0
  43. {huaweicloudsdkrocketmq-3.1.151.dist-info → huaweicloudsdkrocketmq-3.1.152.dist-info}/WHEEL +0 -0
  44. {huaweicloudsdkrocketmq-3.1.151.dist-info → huaweicloudsdkrocketmq-3.1.152.dist-info}/top_level.txt +0 -0
@@ -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
@@ -0,0 +1,318 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class ListBackgroundTasksRespTasks:
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
+ 'id': 'str',
21
+ 'name': 'str',
22
+ 'user_name': 'str',
23
+ 'user_id': 'str',
24
+ 'params': 'str',
25
+ 'status': 'str',
26
+ 'created_at': 'str',
27
+ 'updated_at': 'str'
28
+ }
29
+
30
+ attribute_map = {
31
+ 'id': 'id',
32
+ 'name': 'name',
33
+ 'user_name': 'user_name',
34
+ 'user_id': 'user_id',
35
+ 'params': 'params',
36
+ 'status': 'status',
37
+ 'created_at': 'created_at',
38
+ 'updated_at': 'updated_at'
39
+ }
40
+
41
+ def __init__(self, id=None, name=None, user_name=None, user_id=None, params=None, status=None, created_at=None, updated_at=None):
42
+ r"""ListBackgroundTasksRespTasks
43
+
44
+ The model defined in huaweicloud sdk
45
+
46
+ :param id: **参数解释**: 任务ID。 **取值范围**: 不涉及。
47
+ :type id: str
48
+ :param name: **参数解释**: 任务名称。 **取值范围**: 不涉及。
49
+ :type name: str
50
+ :param user_name: **参数解释**: 用户名。 **取值范围**: 不涉及。
51
+ :type user_name: str
52
+ :param user_id: **参数解释**: 用户ID。 **取值范围**: 不涉及。
53
+ :type user_id: str
54
+ :param params: **参数解释**: 任务参数。 **取值范围**: 不涉及。
55
+ :type params: str
56
+ :param status: **参数解释**: 任务状态。 **取值范围**: 不涉及。
57
+ :type status: str
58
+ :param created_at: **参数解释**: 启动时间。 **取值范围**: 不涉及。
59
+ :type created_at: str
60
+ :param updated_at: **参数解释**: 结束时间。 **取值范围**: 不涉及。
61
+ :type updated_at: str
62
+ """
63
+
64
+
65
+
66
+ self._id = None
67
+ self._name = None
68
+ self._user_name = None
69
+ self._user_id = None
70
+ self._params = None
71
+ self._status = None
72
+ self._created_at = None
73
+ self._updated_at = None
74
+ self.discriminator = None
75
+
76
+ if id is not None:
77
+ self.id = id
78
+ if name is not None:
79
+ self.name = name
80
+ if user_name is not None:
81
+ self.user_name = user_name
82
+ if user_id is not None:
83
+ self.user_id = user_id
84
+ if params is not None:
85
+ self.params = params
86
+ if status is not None:
87
+ self.status = status
88
+ if created_at is not None:
89
+ self.created_at = created_at
90
+ if updated_at is not None:
91
+ self.updated_at = updated_at
92
+
93
+ @property
94
+ def id(self):
95
+ r"""Gets the id of this ListBackgroundTasksRespTasks.
96
+
97
+ **参数解释**: 任务ID。 **取值范围**: 不涉及。
98
+
99
+ :return: The id of this ListBackgroundTasksRespTasks.
100
+ :rtype: str
101
+ """
102
+ return self._id
103
+
104
+ @id.setter
105
+ def id(self, id):
106
+ r"""Sets the id of this ListBackgroundTasksRespTasks.
107
+
108
+ **参数解释**: 任务ID。 **取值范围**: 不涉及。
109
+
110
+ :param id: The id of this ListBackgroundTasksRespTasks.
111
+ :type id: str
112
+ """
113
+ self._id = id
114
+
115
+ @property
116
+ def name(self):
117
+ r"""Gets the name of this ListBackgroundTasksRespTasks.
118
+
119
+ **参数解释**: 任务名称。 **取值范围**: 不涉及。
120
+
121
+ :return: The name of this ListBackgroundTasksRespTasks.
122
+ :rtype: str
123
+ """
124
+ return self._name
125
+
126
+ @name.setter
127
+ def name(self, name):
128
+ r"""Sets the name of this ListBackgroundTasksRespTasks.
129
+
130
+ **参数解释**: 任务名称。 **取值范围**: 不涉及。
131
+
132
+ :param name: The name of this ListBackgroundTasksRespTasks.
133
+ :type name: str
134
+ """
135
+ self._name = name
136
+
137
+ @property
138
+ def user_name(self):
139
+ r"""Gets the user_name of this ListBackgroundTasksRespTasks.
140
+
141
+ **参数解释**: 用户名。 **取值范围**: 不涉及。
142
+
143
+ :return: The user_name of this ListBackgroundTasksRespTasks.
144
+ :rtype: str
145
+ """
146
+ return self._user_name
147
+
148
+ @user_name.setter
149
+ def user_name(self, user_name):
150
+ r"""Sets the user_name of this ListBackgroundTasksRespTasks.
151
+
152
+ **参数解释**: 用户名。 **取值范围**: 不涉及。
153
+
154
+ :param user_name: The user_name of this ListBackgroundTasksRespTasks.
155
+ :type user_name: str
156
+ """
157
+ self._user_name = user_name
158
+
159
+ @property
160
+ def user_id(self):
161
+ r"""Gets the user_id of this ListBackgroundTasksRespTasks.
162
+
163
+ **参数解释**: 用户ID。 **取值范围**: 不涉及。
164
+
165
+ :return: The user_id of this ListBackgroundTasksRespTasks.
166
+ :rtype: str
167
+ """
168
+ return self._user_id
169
+
170
+ @user_id.setter
171
+ def user_id(self, user_id):
172
+ r"""Sets the user_id of this ListBackgroundTasksRespTasks.
173
+
174
+ **参数解释**: 用户ID。 **取值范围**: 不涉及。
175
+
176
+ :param user_id: The user_id of this ListBackgroundTasksRespTasks.
177
+ :type user_id: str
178
+ """
179
+ self._user_id = user_id
180
+
181
+ @property
182
+ def params(self):
183
+ r"""Gets the params of this ListBackgroundTasksRespTasks.
184
+
185
+ **参数解释**: 任务参数。 **取值范围**: 不涉及。
186
+
187
+ :return: The params of this ListBackgroundTasksRespTasks.
188
+ :rtype: str
189
+ """
190
+ return self._params
191
+
192
+ @params.setter
193
+ def params(self, params):
194
+ r"""Sets the params of this ListBackgroundTasksRespTasks.
195
+
196
+ **参数解释**: 任务参数。 **取值范围**: 不涉及。
197
+
198
+ :param params: The params of this ListBackgroundTasksRespTasks.
199
+ :type params: str
200
+ """
201
+ self._params = params
202
+
203
+ @property
204
+ def status(self):
205
+ r"""Gets the status of this ListBackgroundTasksRespTasks.
206
+
207
+ **参数解释**: 任务状态。 **取值范围**: 不涉及。
208
+
209
+ :return: The status of this ListBackgroundTasksRespTasks.
210
+ :rtype: str
211
+ """
212
+ return self._status
213
+
214
+ @status.setter
215
+ def status(self, status):
216
+ r"""Sets the status of this ListBackgroundTasksRespTasks.
217
+
218
+ **参数解释**: 任务状态。 **取值范围**: 不涉及。
219
+
220
+ :param status: The status of this ListBackgroundTasksRespTasks.
221
+ :type status: str
222
+ """
223
+ self._status = status
224
+
225
+ @property
226
+ def created_at(self):
227
+ r"""Gets the created_at of this ListBackgroundTasksRespTasks.
228
+
229
+ **参数解释**: 启动时间。 **取值范围**: 不涉及。
230
+
231
+ :return: The created_at of this ListBackgroundTasksRespTasks.
232
+ :rtype: str
233
+ """
234
+ return self._created_at
235
+
236
+ @created_at.setter
237
+ def created_at(self, created_at):
238
+ r"""Sets the created_at of this ListBackgroundTasksRespTasks.
239
+
240
+ **参数解释**: 启动时间。 **取值范围**: 不涉及。
241
+
242
+ :param created_at: The created_at of this ListBackgroundTasksRespTasks.
243
+ :type created_at: str
244
+ """
245
+ self._created_at = created_at
246
+
247
+ @property
248
+ def updated_at(self):
249
+ r"""Gets the updated_at of this ListBackgroundTasksRespTasks.
250
+
251
+ **参数解释**: 结束时间。 **取值范围**: 不涉及。
252
+
253
+ :return: The updated_at of this ListBackgroundTasksRespTasks.
254
+ :rtype: str
255
+ """
256
+ return self._updated_at
257
+
258
+ @updated_at.setter
259
+ def updated_at(self, updated_at):
260
+ r"""Sets the updated_at of this ListBackgroundTasksRespTasks.
261
+
262
+ **参数解释**: 结束时间。 **取值范围**: 不涉及。
263
+
264
+ :param updated_at: The updated_at of this ListBackgroundTasksRespTasks.
265
+ :type updated_at: str
266
+ """
267
+ self._updated_at = updated_at
268
+
269
+ def to_dict(self):
270
+ """Returns the model properties as a dict"""
271
+ result = {}
272
+
273
+ for attr, _ in six.iteritems(self.openapi_types):
274
+ value = getattr(self, attr)
275
+ if isinstance(value, list):
276
+ result[attr] = list(map(
277
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
278
+ value
279
+ ))
280
+ elif hasattr(value, "to_dict"):
281
+ result[attr] = value.to_dict()
282
+ elif isinstance(value, dict):
283
+ result[attr] = dict(map(
284
+ lambda item: (item[0], item[1].to_dict())
285
+ if hasattr(item[1], "to_dict") else item,
286
+ value.items()
287
+ ))
288
+ else:
289
+ if attr in self.sensitive_list:
290
+ result[attr] = "****"
291
+ else:
292
+ result[attr] = value
293
+
294
+ return result
295
+
296
+ def to_str(self):
297
+ """Returns the string representation of the model"""
298
+ import simplejson as json
299
+ if six.PY2:
300
+ import sys
301
+ reload(sys)
302
+ sys.setdefaultencoding("utf-8")
303
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
304
+
305
+ def __repr__(self):
306
+ """For `print`"""
307
+ return self.to_str()
308
+
309
+ def __eq__(self, other):
310
+ """Returns true if both objects are equal"""
311
+ if not isinstance(other, ListBackgroundTasksRespTasks):
312
+ return False
313
+
314
+ return self.__dict__ == other.__dict__
315
+
316
+ def __ne__(self, other):
317
+ """Returns true if both objects are not equal"""
318
+ return not self == other
@@ -0,0 +1,145 @@
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 ListBackgroundTasksResponse(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
+ 'task_count': 'str',
22
+ 'tasks': 'list[ListBackgroundTasksRespTasks]'
23
+ }
24
+
25
+ attribute_map = {
26
+ 'task_count': 'task_count',
27
+ 'tasks': 'tasks'
28
+ }
29
+
30
+ def __init__(self, task_count=None, tasks=None):
31
+ r"""ListBackgroundTasksResponse
32
+
33
+ The model defined in huaweicloud sdk
34
+
35
+ :param task_count: **参数解释**: 任务数量。 **取值范围**: 不涉及。
36
+ :type task_count: str
37
+ :param tasks: **参数解释**: 任务列表。
38
+ :type tasks: list[:class:`huaweicloudsdkrocketmq.v2.ListBackgroundTasksRespTasks`]
39
+ """
40
+
41
+ super(ListBackgroundTasksResponse, self).__init__()
42
+
43
+ self._task_count = None
44
+ self._tasks = None
45
+ self.discriminator = None
46
+
47
+ if task_count is not None:
48
+ self.task_count = task_count
49
+ if tasks is not None:
50
+ self.tasks = tasks
51
+
52
+ @property
53
+ def task_count(self):
54
+ r"""Gets the task_count of this ListBackgroundTasksResponse.
55
+
56
+ **参数解释**: 任务数量。 **取值范围**: 不涉及。
57
+
58
+ :return: The task_count of this ListBackgroundTasksResponse.
59
+ :rtype: str
60
+ """
61
+ return self._task_count
62
+
63
+ @task_count.setter
64
+ def task_count(self, task_count):
65
+ r"""Sets the task_count of this ListBackgroundTasksResponse.
66
+
67
+ **参数解释**: 任务数量。 **取值范围**: 不涉及。
68
+
69
+ :param task_count: The task_count of this ListBackgroundTasksResponse.
70
+ :type task_count: str
71
+ """
72
+ self._task_count = task_count
73
+
74
+ @property
75
+ def tasks(self):
76
+ r"""Gets the tasks of this ListBackgroundTasksResponse.
77
+
78
+ **参数解释**: 任务列表。
79
+
80
+ :return: The tasks of this ListBackgroundTasksResponse.
81
+ :rtype: list[:class:`huaweicloudsdkrocketmq.v2.ListBackgroundTasksRespTasks`]
82
+ """
83
+ return self._tasks
84
+
85
+ @tasks.setter
86
+ def tasks(self, tasks):
87
+ r"""Sets the tasks of this ListBackgroundTasksResponse.
88
+
89
+ **参数解释**: 任务列表。
90
+
91
+ :param tasks: The tasks of this ListBackgroundTasksResponse.
92
+ :type tasks: list[:class:`huaweicloudsdkrocketmq.v2.ListBackgroundTasksRespTasks`]
93
+ """
94
+ self._tasks = tasks
95
+
96
+ def to_dict(self):
97
+ """Returns the model properties as a dict"""
98
+ result = {}
99
+
100
+ for attr, _ in six.iteritems(self.openapi_types):
101
+ value = getattr(self, attr)
102
+ if isinstance(value, list):
103
+ result[attr] = list(map(
104
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
105
+ value
106
+ ))
107
+ elif hasattr(value, "to_dict"):
108
+ result[attr] = value.to_dict()
109
+ elif isinstance(value, dict):
110
+ result[attr] = dict(map(
111
+ lambda item: (item[0], item[1].to_dict())
112
+ if hasattr(item[1], "to_dict") else item,
113
+ value.items()
114
+ ))
115
+ else:
116
+ if attr in self.sensitive_list:
117
+ result[attr] = "****"
118
+ else:
119
+ result[attr] = value
120
+
121
+ return result
122
+
123
+ def to_str(self):
124
+ """Returns the string representation of the model"""
125
+ import simplejson as json
126
+ if six.PY2:
127
+ import sys
128
+ reload(sys)
129
+ sys.setdefaultencoding("utf-8")
130
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
131
+
132
+ def __repr__(self):
133
+ """For `print`"""
134
+ return self.to_str()
135
+
136
+ def __eq__(self, other):
137
+ """Returns true if both objects are equal"""
138
+ if not isinstance(other, ListBackgroundTasksResponse):
139
+ return False
140
+
141
+ return self.__dict__ == other.__dict__
142
+
143
+ def __ne__(self, other):
144
+ """Returns true if both objects are not equal"""
145
+ return not self == other