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.
- huaweicloudsdkrocketmq/v2/__init__.py +26 -2
- huaweicloudsdkrocketmq/v2/model/__init__.py +26 -2
- huaweicloudsdkrocketmq/v2/model/batch_delete_diagnosis_report_req.py +115 -0
- huaweicloudsdkrocketmq/v2/model/batch_delete_diagnosis_report_request.py +167 -0
- huaweicloudsdkrocketmq/v2/model/batch_delete_diagnosis_report_response.py +116 -0
- huaweicloudsdkrocketmq/v2/model/create_diagnosis_task_request.py +167 -0
- huaweicloudsdkrocketmq/v2/model/create_diagnosis_task_response.py +116 -0
- huaweicloudsdkrocketmq/v2/model/create_instance_by_engine_req.py +88 -1
- huaweicloudsdkrocketmq/v2/model/create_post_paid_instance_req.py +90 -3
- huaweicloudsdkrocketmq/v2/model/create_topic_or_batch_delete_topic_req.py +3 -3
- huaweicloudsdkrocketmq/v2/model/create_topic_req.py +3 -3
- huaweicloudsdkrocketmq/v2/model/{restart_instance_response.py → delete_background_task_request.py} +31 -63
- huaweicloudsdkrocketmq/v2/model/delete_background_task_response.py +85 -0
- huaweicloudsdkrocketmq/v2/model/delete_consumer_group_response.py +32 -1
- huaweicloudsdkrocketmq/v2/model/delete_topic_response.py +32 -1
- huaweicloudsdkrocketmq/v2/model/diagnosis_rep.py +144 -0
- huaweicloudsdkrocketmq/v2/model/diagnosis_report_resp.py +289 -0
- huaweicloudsdkrocketmq/v2/model/list_background_tasks_request.py +230 -0
- huaweicloudsdkrocketmq/v2/model/list_background_tasks_resp_tasks.py +318 -0
- huaweicloudsdkrocketmq/v2/model/list_background_tasks_response.py +145 -0
- huaweicloudsdkrocketmq/v2/model/list_diagnosis_reports_request.py +200 -0
- huaweicloudsdkrocketmq/v2/model/list_diagnosis_reports_response.py +116 -0
- huaweicloudsdkrocketmq/v2/model/list_messages_request.py +30 -1
- huaweicloudsdkrocketmq/v2/model/modify_instance_ssl_config_request.py +167 -0
- huaweicloudsdkrocketmq/v2/model/modify_instance_ssl_config_response.py +145 -0
- huaweicloudsdkrocketmq/v2/model/{restart_instance_request.py → plain_ssl_switch_rep.py} +23 -50
- huaweicloudsdkrocketmq/v2/model/send_message_properties.py +144 -0
- huaweicloudsdkrocketmq/v2/model/send_message_request.py +167 -0
- huaweicloudsdkrocketmq/v2/model/send_message_resp.py +289 -0
- huaweicloudsdkrocketmq/v2/model/send_message_response.py +290 -0
- huaweicloudsdkrocketmq/v2/model/show_diagnosis_report_request.py +142 -0
- huaweicloudsdkrocketmq/v2/model/show_diagnosis_report_response.py +435 -0
- huaweicloudsdkrocketmq/v2/model/show_diagnosis_stack_request.py +142 -0
- huaweicloudsdkrocketmq/v2/model/show_diagnosis_stack_response.py +145 -0
- huaweicloudsdkrocketmq/v2/model/update_consumer_group_response.py +32 -1
- huaweicloudsdkrocketmq/v2/model/update_topic_queue_entity.py +173 -0
- huaweicloudsdkrocketmq/v2/model/update_topic_req.py +70 -12
- huaweicloudsdkrocketmq/v2/model/update_topic_response.py +32 -1
- huaweicloudsdkrocketmq/v2/rocketmq_async_client.py +580 -24
- huaweicloudsdkrocketmq/v2/rocketmq_client.py +580 -24
- {huaweicloudsdkrocketmq-3.1.150.dist-info → huaweicloudsdkrocketmq-3.1.152.dist-info}/METADATA +2 -2
- {huaweicloudsdkrocketmq-3.1.150.dist-info → huaweicloudsdkrocketmq-3.1.152.dist-info}/RECORD +45 -21
- {huaweicloudsdkrocketmq-3.1.150.dist-info → huaweicloudsdkrocketmq-3.1.152.dist-info}/LICENSE +0 -0
- {huaweicloudsdkrocketmq-3.1.150.dist-info → huaweicloudsdkrocketmq-3.1.152.dist-info}/WHEEL +0 -0
- {huaweicloudsdkrocketmq-3.1.150.dist-info → huaweicloudsdkrocketmq-3.1.152.dist-info}/top_level.txt +0 -0
@@ -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
|
@@ -0,0 +1,200 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class ListDiagnosisReportsRequest:
|
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
|
+
'offset': 'int',
|
23
|
+
'limit': 'int'
|
24
|
+
}
|
25
|
+
|
26
|
+
attribute_map = {
|
27
|
+
'engine': 'engine',
|
28
|
+
'instance_id': 'instance_id',
|
29
|
+
'offset': 'offset',
|
30
|
+
'limit': 'limit'
|
31
|
+
}
|
32
|
+
|
33
|
+
def __init__(self, engine=None, instance_id=None, offset=None, limit=None):
|
34
|
+
r"""ListDiagnosisReportsRequest
|
35
|
+
|
36
|
+
The model defined in huaweicloud sdk
|
37
|
+
|
38
|
+
:param engine: **参数解释**: 引擎。 **约束限制**: 不涉及。 **取值范围**: 不涉及。 **默认取值**: 不涉及。
|
39
|
+
:type engine: str
|
40
|
+
:param instance_id: **参数解释**: 实例ID。获取方法如下:登录RocketMQ控制台,在RocketMQ实例详情页面查找实例ID。 **约束限制**: 不涉及。 **取值范围**: 不涉及。 **默认取值**: 不涉及。
|
41
|
+
:type instance_id: str
|
42
|
+
:param offset: **参数解释**: 偏移量,表示从此偏移量开始查询。 **约束限制**: 不涉及。 **取值范围**: 大于等于0。 **默认取值**: 不涉及。
|
43
|
+
:type offset: int
|
44
|
+
:param limit: **参数解释**: 查询数量。 **约束限制**: 不涉及。 **取值范围**: 不涉及。 **默认取值**: 不涉及。
|
45
|
+
:type limit: int
|
46
|
+
"""
|
47
|
+
|
48
|
+
|
49
|
+
|
50
|
+
self._engine = None
|
51
|
+
self._instance_id = None
|
52
|
+
self._offset = None
|
53
|
+
self._limit = None
|
54
|
+
self.discriminator = None
|
55
|
+
|
56
|
+
self.engine = engine
|
57
|
+
self.instance_id = instance_id
|
58
|
+
if offset is not None:
|
59
|
+
self.offset = offset
|
60
|
+
if limit is not None:
|
61
|
+
self.limit = limit
|
62
|
+
|
63
|
+
@property
|
64
|
+
def engine(self):
|
65
|
+
r"""Gets the engine of this ListDiagnosisReportsRequest.
|
66
|
+
|
67
|
+
**参数解释**: 引擎。 **约束限制**: 不涉及。 **取值范围**: 不涉及。 **默认取值**: 不涉及。
|
68
|
+
|
69
|
+
:return: The engine of this ListDiagnosisReportsRequest.
|
70
|
+
:rtype: str
|
71
|
+
"""
|
72
|
+
return self._engine
|
73
|
+
|
74
|
+
@engine.setter
|
75
|
+
def engine(self, engine):
|
76
|
+
r"""Sets the engine of this ListDiagnosisReportsRequest.
|
77
|
+
|
78
|
+
**参数解释**: 引擎。 **约束限制**: 不涉及。 **取值范围**: 不涉及。 **默认取值**: 不涉及。
|
79
|
+
|
80
|
+
:param engine: The engine of this ListDiagnosisReportsRequest.
|
81
|
+
:type engine: str
|
82
|
+
"""
|
83
|
+
self._engine = engine
|
84
|
+
|
85
|
+
@property
|
86
|
+
def instance_id(self):
|
87
|
+
r"""Gets the instance_id of this ListDiagnosisReportsRequest.
|
88
|
+
|
89
|
+
**参数解释**: 实例ID。获取方法如下:登录RocketMQ控制台,在RocketMQ实例详情页面查找实例ID。 **约束限制**: 不涉及。 **取值范围**: 不涉及。 **默认取值**: 不涉及。
|
90
|
+
|
91
|
+
:return: The instance_id of this ListDiagnosisReportsRequest.
|
92
|
+
:rtype: str
|
93
|
+
"""
|
94
|
+
return self._instance_id
|
95
|
+
|
96
|
+
@instance_id.setter
|
97
|
+
def instance_id(self, instance_id):
|
98
|
+
r"""Sets the instance_id of this ListDiagnosisReportsRequest.
|
99
|
+
|
100
|
+
**参数解释**: 实例ID。获取方法如下:登录RocketMQ控制台,在RocketMQ实例详情页面查找实例ID。 **约束限制**: 不涉及。 **取值范围**: 不涉及。 **默认取值**: 不涉及。
|
101
|
+
|
102
|
+
:param instance_id: The instance_id of this ListDiagnosisReportsRequest.
|
103
|
+
:type instance_id: str
|
104
|
+
"""
|
105
|
+
self._instance_id = instance_id
|
106
|
+
|
107
|
+
@property
|
108
|
+
def offset(self):
|
109
|
+
r"""Gets the offset of this ListDiagnosisReportsRequest.
|
110
|
+
|
111
|
+
**参数解释**: 偏移量,表示从此偏移量开始查询。 **约束限制**: 不涉及。 **取值范围**: 大于等于0。 **默认取值**: 不涉及。
|
112
|
+
|
113
|
+
:return: The offset of this ListDiagnosisReportsRequest.
|
114
|
+
:rtype: int
|
115
|
+
"""
|
116
|
+
return self._offset
|
117
|
+
|
118
|
+
@offset.setter
|
119
|
+
def offset(self, offset):
|
120
|
+
r"""Sets the offset of this ListDiagnosisReportsRequest.
|
121
|
+
|
122
|
+
**参数解释**: 偏移量,表示从此偏移量开始查询。 **约束限制**: 不涉及。 **取值范围**: 大于等于0。 **默认取值**: 不涉及。
|
123
|
+
|
124
|
+
:param offset: The offset of this ListDiagnosisReportsRequest.
|
125
|
+
:type offset: int
|
126
|
+
"""
|
127
|
+
self._offset = offset
|
128
|
+
|
129
|
+
@property
|
130
|
+
def limit(self):
|
131
|
+
r"""Gets the limit of this ListDiagnosisReportsRequest.
|
132
|
+
|
133
|
+
**参数解释**: 查询数量。 **约束限制**: 不涉及。 **取值范围**: 不涉及。 **默认取值**: 不涉及。
|
134
|
+
|
135
|
+
:return: The limit of this ListDiagnosisReportsRequest.
|
136
|
+
:rtype: int
|
137
|
+
"""
|
138
|
+
return self._limit
|
139
|
+
|
140
|
+
@limit.setter
|
141
|
+
def limit(self, limit):
|
142
|
+
r"""Sets the limit of this ListDiagnosisReportsRequest.
|
143
|
+
|
144
|
+
**参数解释**: 查询数量。 **约束限制**: 不涉及。 **取值范围**: 不涉及。 **默认取值**: 不涉及。
|
145
|
+
|
146
|
+
:param limit: The limit of this ListDiagnosisReportsRequest.
|
147
|
+
:type limit: int
|
148
|
+
"""
|
149
|
+
self._limit = limit
|
150
|
+
|
151
|
+
def to_dict(self):
|
152
|
+
"""Returns the model properties as a dict"""
|
153
|
+
result = {}
|
154
|
+
|
155
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
156
|
+
value = getattr(self, attr)
|
157
|
+
if isinstance(value, list):
|
158
|
+
result[attr] = list(map(
|
159
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
160
|
+
value
|
161
|
+
))
|
162
|
+
elif hasattr(value, "to_dict"):
|
163
|
+
result[attr] = value.to_dict()
|
164
|
+
elif isinstance(value, dict):
|
165
|
+
result[attr] = dict(map(
|
166
|
+
lambda item: (item[0], item[1].to_dict())
|
167
|
+
if hasattr(item[1], "to_dict") else item,
|
168
|
+
value.items()
|
169
|
+
))
|
170
|
+
else:
|
171
|
+
if attr in self.sensitive_list:
|
172
|
+
result[attr] = "****"
|
173
|
+
else:
|
174
|
+
result[attr] = value
|
175
|
+
|
176
|
+
return result
|
177
|
+
|
178
|
+
def to_str(self):
|
179
|
+
"""Returns the string representation of the model"""
|
180
|
+
import simplejson as json
|
181
|
+
if six.PY2:
|
182
|
+
import sys
|
183
|
+
reload(sys)
|
184
|
+
sys.setdefaultencoding("utf-8")
|
185
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
186
|
+
|
187
|
+
def __repr__(self):
|
188
|
+
"""For `print`"""
|
189
|
+
return self.to_str()
|
190
|
+
|
191
|
+
def __eq__(self, other):
|
192
|
+
"""Returns true if both objects are equal"""
|
193
|
+
if not isinstance(other, ListDiagnosisReportsRequest):
|
194
|
+
return False
|
195
|
+
|
196
|
+
return self.__dict__ == other.__dict__
|
197
|
+
|
198
|
+
def __ne__(self, other):
|
199
|
+
"""Returns true if both objects are not equal"""
|
200
|
+
return not self == other
|