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,435 @@
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 ShowDiagnosisReportResponse(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
+ 'report_id': 'str',
22
+ 'group_name': 'str',
23
+ 'consumer_nums': 'int',
24
+ 'status': 'str',
25
+ 'creat_at': 'int',
26
+ 'abnormal_item_sum': 'int',
27
+ 'faulted_node_sum': 'int',
28
+ 'online': 'bool',
29
+ 'message_accumulation': 'int',
30
+ 'subscription_consistency': 'bool',
31
+ 'subscriptions': 'list[str]',
32
+ 'diagnosis_node_report_list': 'list[str]'
33
+ }
34
+
35
+ attribute_map = {
36
+ 'report_id': 'report_id',
37
+ 'group_name': 'group_name',
38
+ 'consumer_nums': 'consumer_nums',
39
+ 'status': 'status',
40
+ 'creat_at': 'creat_at',
41
+ 'abnormal_item_sum': 'abnormal_item_sum',
42
+ 'faulted_node_sum': 'faulted_node_sum',
43
+ 'online': 'online',
44
+ 'message_accumulation': 'message_accumulation',
45
+ 'subscription_consistency': 'subscription_consistency',
46
+ 'subscriptions': 'subscriptions',
47
+ 'diagnosis_node_report_list': 'diagnosis_node_report_list'
48
+ }
49
+
50
+ 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, online=None, message_accumulation=None, subscription_consistency=None, subscriptions=None, diagnosis_node_report_list=None):
51
+ r"""ShowDiagnosisReportResponse
52
+
53
+ The model defined in huaweicloud sdk
54
+
55
+ :param report_id: **参数解释**: 报告ID。 **取值范围**: 不涉及。
56
+ :type report_id: str
57
+ :param group_name: **参数解释**: 消费组名称。 **取值范围**: 不涉及。
58
+ :type group_name: str
59
+ :param consumer_nums: **参数解释**: 消费者数量。 **取值范围**: 不涉及。
60
+ :type consumer_nums: int
61
+ :param status: **参数解释**: 状态。 **取值范围**: 不涉及。
62
+ :type status: str
63
+ :param creat_at: **参数解释**: 生成时间。 **取值范围**: 不涉及。
64
+ :type creat_at: int
65
+ :param abnormal_item_sum: **参数解释**: 异常项数量。 **取值范围**: 不涉及。
66
+ :type abnormal_item_sum: int
67
+ :param faulted_node_sum: **参数解释**: 异常节点数量。 **取值范围**: 不涉及。
68
+ :type faulted_node_sum: int
69
+ :param online: **参数解释**: 是否在线。 **取值范围**: - true: 在线。 - false: 不在线。
70
+ :type online: bool
71
+ :param message_accumulation: **参数解释**: 消息堆积数。 **取值范围**: 不涉及。
72
+ :type message_accumulation: int
73
+ :param subscription_consistency: **参数解释**: 订阅一致性。 **取值范围**: - true: 订阅关系一致。 - false: 订阅关系不一致。
74
+ :type subscription_consistency: bool
75
+ :param subscriptions: **参数解释**: 订阅者列表。 **取值范围**: 不涉及。
76
+ :type subscriptions: list[str]
77
+ :param diagnosis_node_report_list: **参数解释**: 诊断节点报告列表。 **取值范围**: 不涉及。
78
+ :type diagnosis_node_report_list: list[str]
79
+ """
80
+
81
+ super(ShowDiagnosisReportResponse, self).__init__()
82
+
83
+ self._report_id = None
84
+ self._group_name = None
85
+ self._consumer_nums = None
86
+ self._status = None
87
+ self._creat_at = None
88
+ self._abnormal_item_sum = None
89
+ self._faulted_node_sum = None
90
+ self._online = None
91
+ self._message_accumulation = None
92
+ self._subscription_consistency = None
93
+ self._subscriptions = None
94
+ self._diagnosis_node_report_list = None
95
+ self.discriminator = None
96
+
97
+ if report_id is not None:
98
+ self.report_id = report_id
99
+ if group_name is not None:
100
+ self.group_name = group_name
101
+ if consumer_nums is not None:
102
+ self.consumer_nums = consumer_nums
103
+ if status is not None:
104
+ self.status = status
105
+ if creat_at is not None:
106
+ self.creat_at = creat_at
107
+ if abnormal_item_sum is not None:
108
+ self.abnormal_item_sum = abnormal_item_sum
109
+ if faulted_node_sum is not None:
110
+ self.faulted_node_sum = faulted_node_sum
111
+ if online is not None:
112
+ self.online = online
113
+ if message_accumulation is not None:
114
+ self.message_accumulation = message_accumulation
115
+ if subscription_consistency is not None:
116
+ self.subscription_consistency = subscription_consistency
117
+ if subscriptions is not None:
118
+ self.subscriptions = subscriptions
119
+ if diagnosis_node_report_list is not None:
120
+ self.diagnosis_node_report_list = diagnosis_node_report_list
121
+
122
+ @property
123
+ def report_id(self):
124
+ r"""Gets the report_id of this ShowDiagnosisReportResponse.
125
+
126
+ **参数解释**: 报告ID。 **取值范围**: 不涉及。
127
+
128
+ :return: The report_id of this ShowDiagnosisReportResponse.
129
+ :rtype: str
130
+ """
131
+ return self._report_id
132
+
133
+ @report_id.setter
134
+ def report_id(self, report_id):
135
+ r"""Sets the report_id of this ShowDiagnosisReportResponse.
136
+
137
+ **参数解释**: 报告ID。 **取值范围**: 不涉及。
138
+
139
+ :param report_id: The report_id of this ShowDiagnosisReportResponse.
140
+ :type report_id: str
141
+ """
142
+ self._report_id = report_id
143
+
144
+ @property
145
+ def group_name(self):
146
+ r"""Gets the group_name of this ShowDiagnosisReportResponse.
147
+
148
+ **参数解释**: 消费组名称。 **取值范围**: 不涉及。
149
+
150
+ :return: The group_name of this ShowDiagnosisReportResponse.
151
+ :rtype: str
152
+ """
153
+ return self._group_name
154
+
155
+ @group_name.setter
156
+ def group_name(self, group_name):
157
+ r"""Sets the group_name of this ShowDiagnosisReportResponse.
158
+
159
+ **参数解释**: 消费组名称。 **取值范围**: 不涉及。
160
+
161
+ :param group_name: The group_name of this ShowDiagnosisReportResponse.
162
+ :type group_name: str
163
+ """
164
+ self._group_name = group_name
165
+
166
+ @property
167
+ def consumer_nums(self):
168
+ r"""Gets the consumer_nums of this ShowDiagnosisReportResponse.
169
+
170
+ **参数解释**: 消费者数量。 **取值范围**: 不涉及。
171
+
172
+ :return: The consumer_nums of this ShowDiagnosisReportResponse.
173
+ :rtype: int
174
+ """
175
+ return self._consumer_nums
176
+
177
+ @consumer_nums.setter
178
+ def consumer_nums(self, consumer_nums):
179
+ r"""Sets the consumer_nums of this ShowDiagnosisReportResponse.
180
+
181
+ **参数解释**: 消费者数量。 **取值范围**: 不涉及。
182
+
183
+ :param consumer_nums: The consumer_nums of this ShowDiagnosisReportResponse.
184
+ :type consumer_nums: int
185
+ """
186
+ self._consumer_nums = consumer_nums
187
+
188
+ @property
189
+ def status(self):
190
+ r"""Gets the status of this ShowDiagnosisReportResponse.
191
+
192
+ **参数解释**: 状态。 **取值范围**: 不涉及。
193
+
194
+ :return: The status of this ShowDiagnosisReportResponse.
195
+ :rtype: str
196
+ """
197
+ return self._status
198
+
199
+ @status.setter
200
+ def status(self, status):
201
+ r"""Sets the status of this ShowDiagnosisReportResponse.
202
+
203
+ **参数解释**: 状态。 **取值范围**: 不涉及。
204
+
205
+ :param status: The status of this ShowDiagnosisReportResponse.
206
+ :type status: str
207
+ """
208
+ self._status = status
209
+
210
+ @property
211
+ def creat_at(self):
212
+ r"""Gets the creat_at of this ShowDiagnosisReportResponse.
213
+
214
+ **参数解释**: 生成时间。 **取值范围**: 不涉及。
215
+
216
+ :return: The creat_at of this ShowDiagnosisReportResponse.
217
+ :rtype: int
218
+ """
219
+ return self._creat_at
220
+
221
+ @creat_at.setter
222
+ def creat_at(self, creat_at):
223
+ r"""Sets the creat_at of this ShowDiagnosisReportResponse.
224
+
225
+ **参数解释**: 生成时间。 **取值范围**: 不涉及。
226
+
227
+ :param creat_at: The creat_at of this ShowDiagnosisReportResponse.
228
+ :type creat_at: int
229
+ """
230
+ self._creat_at = creat_at
231
+
232
+ @property
233
+ def abnormal_item_sum(self):
234
+ r"""Gets the abnormal_item_sum of this ShowDiagnosisReportResponse.
235
+
236
+ **参数解释**: 异常项数量。 **取值范围**: 不涉及。
237
+
238
+ :return: The abnormal_item_sum of this ShowDiagnosisReportResponse.
239
+ :rtype: int
240
+ """
241
+ return self._abnormal_item_sum
242
+
243
+ @abnormal_item_sum.setter
244
+ def abnormal_item_sum(self, abnormal_item_sum):
245
+ r"""Sets the abnormal_item_sum of this ShowDiagnosisReportResponse.
246
+
247
+ **参数解释**: 异常项数量。 **取值范围**: 不涉及。
248
+
249
+ :param abnormal_item_sum: The abnormal_item_sum of this ShowDiagnosisReportResponse.
250
+ :type abnormal_item_sum: int
251
+ """
252
+ self._abnormal_item_sum = abnormal_item_sum
253
+
254
+ @property
255
+ def faulted_node_sum(self):
256
+ r"""Gets the faulted_node_sum of this ShowDiagnosisReportResponse.
257
+
258
+ **参数解释**: 异常节点数量。 **取值范围**: 不涉及。
259
+
260
+ :return: The faulted_node_sum of this ShowDiagnosisReportResponse.
261
+ :rtype: int
262
+ """
263
+ return self._faulted_node_sum
264
+
265
+ @faulted_node_sum.setter
266
+ def faulted_node_sum(self, faulted_node_sum):
267
+ r"""Sets the faulted_node_sum of this ShowDiagnosisReportResponse.
268
+
269
+ **参数解释**: 异常节点数量。 **取值范围**: 不涉及。
270
+
271
+ :param faulted_node_sum: The faulted_node_sum of this ShowDiagnosisReportResponse.
272
+ :type faulted_node_sum: int
273
+ """
274
+ self._faulted_node_sum = faulted_node_sum
275
+
276
+ @property
277
+ def online(self):
278
+ r"""Gets the online of this ShowDiagnosisReportResponse.
279
+
280
+ **参数解释**: 是否在线。 **取值范围**: - true: 在线。 - false: 不在线。
281
+
282
+ :return: The online of this ShowDiagnosisReportResponse.
283
+ :rtype: bool
284
+ """
285
+ return self._online
286
+
287
+ @online.setter
288
+ def online(self, online):
289
+ r"""Sets the online of this ShowDiagnosisReportResponse.
290
+
291
+ **参数解释**: 是否在线。 **取值范围**: - true: 在线。 - false: 不在线。
292
+
293
+ :param online: The online of this ShowDiagnosisReportResponse.
294
+ :type online: bool
295
+ """
296
+ self._online = online
297
+
298
+ @property
299
+ def message_accumulation(self):
300
+ r"""Gets the message_accumulation of this ShowDiagnosisReportResponse.
301
+
302
+ **参数解释**: 消息堆积数。 **取值范围**: 不涉及。
303
+
304
+ :return: The message_accumulation of this ShowDiagnosisReportResponse.
305
+ :rtype: int
306
+ """
307
+ return self._message_accumulation
308
+
309
+ @message_accumulation.setter
310
+ def message_accumulation(self, message_accumulation):
311
+ r"""Sets the message_accumulation of this ShowDiagnosisReportResponse.
312
+
313
+ **参数解释**: 消息堆积数。 **取值范围**: 不涉及。
314
+
315
+ :param message_accumulation: The message_accumulation of this ShowDiagnosisReportResponse.
316
+ :type message_accumulation: int
317
+ """
318
+ self._message_accumulation = message_accumulation
319
+
320
+ @property
321
+ def subscription_consistency(self):
322
+ r"""Gets the subscription_consistency of this ShowDiagnosisReportResponse.
323
+
324
+ **参数解释**: 订阅一致性。 **取值范围**: - true: 订阅关系一致。 - false: 订阅关系不一致。
325
+
326
+ :return: The subscription_consistency of this ShowDiagnosisReportResponse.
327
+ :rtype: bool
328
+ """
329
+ return self._subscription_consistency
330
+
331
+ @subscription_consistency.setter
332
+ def subscription_consistency(self, subscription_consistency):
333
+ r"""Sets the subscription_consistency of this ShowDiagnosisReportResponse.
334
+
335
+ **参数解释**: 订阅一致性。 **取值范围**: - true: 订阅关系一致。 - false: 订阅关系不一致。
336
+
337
+ :param subscription_consistency: The subscription_consistency of this ShowDiagnosisReportResponse.
338
+ :type subscription_consistency: bool
339
+ """
340
+ self._subscription_consistency = subscription_consistency
341
+
342
+ @property
343
+ def subscriptions(self):
344
+ r"""Gets the subscriptions of this ShowDiagnosisReportResponse.
345
+
346
+ **参数解释**: 订阅者列表。 **取值范围**: 不涉及。
347
+
348
+ :return: The subscriptions of this ShowDiagnosisReportResponse.
349
+ :rtype: list[str]
350
+ """
351
+ return self._subscriptions
352
+
353
+ @subscriptions.setter
354
+ def subscriptions(self, subscriptions):
355
+ r"""Sets the subscriptions of this ShowDiagnosisReportResponse.
356
+
357
+ **参数解释**: 订阅者列表。 **取值范围**: 不涉及。
358
+
359
+ :param subscriptions: The subscriptions of this ShowDiagnosisReportResponse.
360
+ :type subscriptions: list[str]
361
+ """
362
+ self._subscriptions = subscriptions
363
+
364
+ @property
365
+ def diagnosis_node_report_list(self):
366
+ r"""Gets the diagnosis_node_report_list of this ShowDiagnosisReportResponse.
367
+
368
+ **参数解释**: 诊断节点报告列表。 **取值范围**: 不涉及。
369
+
370
+ :return: The diagnosis_node_report_list of this ShowDiagnosisReportResponse.
371
+ :rtype: list[str]
372
+ """
373
+ return self._diagnosis_node_report_list
374
+
375
+ @diagnosis_node_report_list.setter
376
+ def diagnosis_node_report_list(self, diagnosis_node_report_list):
377
+ r"""Sets the diagnosis_node_report_list of this ShowDiagnosisReportResponse.
378
+
379
+ **参数解释**: 诊断节点报告列表。 **取值范围**: 不涉及。
380
+
381
+ :param diagnosis_node_report_list: The diagnosis_node_report_list of this ShowDiagnosisReportResponse.
382
+ :type diagnosis_node_report_list: list[str]
383
+ """
384
+ self._diagnosis_node_report_list = diagnosis_node_report_list
385
+
386
+ def to_dict(self):
387
+ """Returns the model properties as a dict"""
388
+ result = {}
389
+
390
+ for attr, _ in six.iteritems(self.openapi_types):
391
+ value = getattr(self, attr)
392
+ if isinstance(value, list):
393
+ result[attr] = list(map(
394
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
395
+ value
396
+ ))
397
+ elif hasattr(value, "to_dict"):
398
+ result[attr] = value.to_dict()
399
+ elif isinstance(value, dict):
400
+ result[attr] = dict(map(
401
+ lambda item: (item[0], item[1].to_dict())
402
+ if hasattr(item[1], "to_dict") else item,
403
+ value.items()
404
+ ))
405
+ else:
406
+ if attr in self.sensitive_list:
407
+ result[attr] = "****"
408
+ else:
409
+ result[attr] = value
410
+
411
+ return result
412
+
413
+ def to_str(self):
414
+ """Returns the string representation of the model"""
415
+ import simplejson as json
416
+ if six.PY2:
417
+ import sys
418
+ reload(sys)
419
+ sys.setdefaultencoding("utf-8")
420
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
421
+
422
+ def __repr__(self):
423
+ """For `print`"""
424
+ return self.to_str()
425
+
426
+ def __eq__(self, other):
427
+ """Returns true if both objects are equal"""
428
+ if not isinstance(other, ShowDiagnosisReportResponse):
429
+ return False
430
+
431
+ return self.__dict__ == other.__dict__
432
+
433
+ def __ne__(self, other):
434
+ """Returns true if both objects are not equal"""
435
+ return not self == other
@@ -0,0 +1,142 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class ShowDiagnosisStackRequest:
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
+ 'stack_id': 'str'
22
+ }
23
+
24
+ attribute_map = {
25
+ 'engine': 'engine',
26
+ 'stack_id': 'stack_id'
27
+ }
28
+
29
+ def __init__(self, engine=None, stack_id=None):
30
+ r"""ShowDiagnosisStackRequest
31
+
32
+ The model defined in huaweicloud sdk
33
+
34
+ :param engine: **参数解释**: 引擎。 **约束限制**: 不涉及。 **取值范围**: 不涉及。 **默认取值**: 不涉及。
35
+ :type engine: str
36
+ :param stack_id: **参数解释**: 堆ID。 **约束限制**: 不涉及。 **取值范围**: 不涉及。 **默认取值**: 不涉及。
37
+ :type stack_id: str
38
+ """
39
+
40
+
41
+
42
+ self._engine = None
43
+ self._stack_id = None
44
+ self.discriminator = None
45
+
46
+ self.engine = engine
47
+ self.stack_id = stack_id
48
+
49
+ @property
50
+ def engine(self):
51
+ r"""Gets the engine of this ShowDiagnosisStackRequest.
52
+
53
+ **参数解释**: 引擎。 **约束限制**: 不涉及。 **取值范围**: 不涉及。 **默认取值**: 不涉及。
54
+
55
+ :return: The engine of this ShowDiagnosisStackRequest.
56
+ :rtype: str
57
+ """
58
+ return self._engine
59
+
60
+ @engine.setter
61
+ def engine(self, engine):
62
+ r"""Sets the engine of this ShowDiagnosisStackRequest.
63
+
64
+ **参数解释**: 引擎。 **约束限制**: 不涉及。 **取值范围**: 不涉及。 **默认取值**: 不涉及。
65
+
66
+ :param engine: The engine of this ShowDiagnosisStackRequest.
67
+ :type engine: str
68
+ """
69
+ self._engine = engine
70
+
71
+ @property
72
+ def stack_id(self):
73
+ r"""Gets the stack_id of this ShowDiagnosisStackRequest.
74
+
75
+ **参数解释**: 堆ID。 **约束限制**: 不涉及。 **取值范围**: 不涉及。 **默认取值**: 不涉及。
76
+
77
+ :return: The stack_id of this ShowDiagnosisStackRequest.
78
+ :rtype: str
79
+ """
80
+ return self._stack_id
81
+
82
+ @stack_id.setter
83
+ def stack_id(self, stack_id):
84
+ r"""Sets the stack_id of this ShowDiagnosisStackRequest.
85
+
86
+ **参数解释**: 堆ID。 **约束限制**: 不涉及。 **取值范围**: 不涉及。 **默认取值**: 不涉及。
87
+
88
+ :param stack_id: The stack_id of this ShowDiagnosisStackRequest.
89
+ :type stack_id: str
90
+ """
91
+ self._stack_id = stack_id
92
+
93
+ def to_dict(self):
94
+ """Returns the model properties as a dict"""
95
+ result = {}
96
+
97
+ for attr, _ in six.iteritems(self.openapi_types):
98
+ value = getattr(self, attr)
99
+ if isinstance(value, list):
100
+ result[attr] = list(map(
101
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
102
+ value
103
+ ))
104
+ elif hasattr(value, "to_dict"):
105
+ result[attr] = value.to_dict()
106
+ elif isinstance(value, dict):
107
+ result[attr] = dict(map(
108
+ lambda item: (item[0], item[1].to_dict())
109
+ if hasattr(item[1], "to_dict") else item,
110
+ value.items()
111
+ ))
112
+ else:
113
+ if attr in self.sensitive_list:
114
+ result[attr] = "****"
115
+ else:
116
+ result[attr] = value
117
+
118
+ return result
119
+
120
+ def to_str(self):
121
+ """Returns the string representation of the model"""
122
+ import simplejson as json
123
+ if six.PY2:
124
+ import sys
125
+ reload(sys)
126
+ sys.setdefaultencoding("utf-8")
127
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
128
+
129
+ def __repr__(self):
130
+ """For `print`"""
131
+ return self.to_str()
132
+
133
+ def __eq__(self, other):
134
+ """Returns true if both objects are equal"""
135
+ if not isinstance(other, ShowDiagnosisStackRequest):
136
+ return False
137
+
138
+ return self.__dict__ == other.__dict__
139
+
140
+ def __ne__(self, other):
141
+ """Returns true if both objects are not equal"""
142
+ return not self == other