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,85 @@
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 DeleteBackgroundTaskResponse(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
+ }
22
+
23
+ attribute_map = {
24
+ }
25
+
26
+ def __init__(self):
27
+ r"""DeleteBackgroundTaskResponse
28
+
29
+ The model defined in huaweicloud sdk
30
+
31
+ """
32
+
33
+ super(DeleteBackgroundTaskResponse, self).__init__()
34
+ self.discriminator = None
35
+
36
+ def to_dict(self):
37
+ """Returns the model properties as a dict"""
38
+ result = {}
39
+
40
+ for attr, _ in six.iteritems(self.openapi_types):
41
+ value = getattr(self, attr)
42
+ if isinstance(value, list):
43
+ result[attr] = list(map(
44
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
45
+ value
46
+ ))
47
+ elif hasattr(value, "to_dict"):
48
+ result[attr] = value.to_dict()
49
+ elif isinstance(value, dict):
50
+ result[attr] = dict(map(
51
+ lambda item: (item[0], item[1].to_dict())
52
+ if hasattr(item[1], "to_dict") else item,
53
+ value.items()
54
+ ))
55
+ else:
56
+ if attr in self.sensitive_list:
57
+ result[attr] = "****"
58
+ else:
59
+ result[attr] = value
60
+
61
+ return result
62
+
63
+ def to_str(self):
64
+ """Returns the string representation of the model"""
65
+ import simplejson as json
66
+ if six.PY2:
67
+ import sys
68
+ reload(sys)
69
+ sys.setdefaultencoding("utf-8")
70
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
71
+
72
+ def __repr__(self):
73
+ """For `print`"""
74
+ return self.to_str()
75
+
76
+ def __eq__(self, other):
77
+ """Returns true if both objects are equal"""
78
+ if not isinstance(other, DeleteBackgroundTaskResponse):
79
+ return False
80
+
81
+ return self.__dict__ == other.__dict__
82
+
83
+ def __ne__(self, other):
84
+ """Returns true if both objects are not equal"""
85
+ return not self == other
@@ -18,21 +18,52 @@ class DeleteConsumerGroupResponse(SdkResponse):
18
18
  sensitive_list = []
19
19
 
20
20
  openapi_types = {
21
+ 'job_id': 'str'
21
22
  }
22
23
 
23
24
  attribute_map = {
25
+ 'job_id': 'job_id'
24
26
  }
25
27
 
26
- def __init__(self):
28
+ def __init__(self, job_id=None):
27
29
  r"""DeleteConsumerGroupResponse
28
30
 
29
31
  The model defined in huaweicloud sdk
30
32
 
33
+ :param job_id: 规格变更任务ID。
34
+ :type job_id: str
31
35
  """
32
36
 
33
37
  super(DeleteConsumerGroupResponse, self).__init__()
38
+
39
+ self._job_id = None
34
40
  self.discriminator = None
35
41
 
42
+ if job_id is not None:
43
+ self.job_id = job_id
44
+
45
+ @property
46
+ def job_id(self):
47
+ r"""Gets the job_id of this DeleteConsumerGroupResponse.
48
+
49
+ 规格变更任务ID。
50
+
51
+ :return: The job_id of this DeleteConsumerGroupResponse.
52
+ :rtype: str
53
+ """
54
+ return self._job_id
55
+
56
+ @job_id.setter
57
+ def job_id(self, job_id):
58
+ r"""Sets the job_id of this DeleteConsumerGroupResponse.
59
+
60
+ 规格变更任务ID。
61
+
62
+ :param job_id: The job_id of this DeleteConsumerGroupResponse.
63
+ :type job_id: str
64
+ """
65
+ self._job_id = job_id
66
+
36
67
  def to_dict(self):
37
68
  """Returns the model properties as a dict"""
38
69
  result = {}
@@ -18,21 +18,52 @@ class DeleteTopicResponse(SdkResponse):
18
18
  sensitive_list = []
19
19
 
20
20
  openapi_types = {
21
+ 'job_id': 'str'
21
22
  }
22
23
 
23
24
  attribute_map = {
25
+ 'job_id': 'job_id'
24
26
  }
25
27
 
26
- def __init__(self):
28
+ def __init__(self, job_id=None):
27
29
  r"""DeleteTopicResponse
28
30
 
29
31
  The model defined in huaweicloud sdk
30
32
 
33
+ :param job_id: 规格变更任务ID。
34
+ :type job_id: str
31
35
  """
32
36
 
33
37
  super(DeleteTopicResponse, self).__init__()
38
+
39
+ self._job_id = None
34
40
  self.discriminator = None
35
41
 
42
+ if job_id is not None:
43
+ self.job_id = job_id
44
+
45
+ @property
46
+ def job_id(self):
47
+ r"""Gets the job_id of this DeleteTopicResponse.
48
+
49
+ 规格变更任务ID。
50
+
51
+ :return: The job_id of this DeleteTopicResponse.
52
+ :rtype: str
53
+ """
54
+ return self._job_id
55
+
56
+ @job_id.setter
57
+ def job_id(self, job_id):
58
+ r"""Sets the job_id of this DeleteTopicResponse.
59
+
60
+ 规格变更任务ID。
61
+
62
+ :param job_id: The job_id of this DeleteTopicResponse.
63
+ :type job_id: str
64
+ """
65
+ self._job_id = job_id
66
+
36
67
  def to_dict(self):
37
68
  """Returns the model properties as a dict"""
38
69
  result = {}
@@ -0,0 +1,144 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class DiagnosisRep:
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
+ 'group_name': 'str',
21
+ 'node_id_list': 'list[str]'
22
+ }
23
+
24
+ attribute_map = {
25
+ 'group_name': 'group_name',
26
+ 'node_id_list': 'node_id_list'
27
+ }
28
+
29
+ def __init__(self, group_name=None, node_id_list=None):
30
+ r"""DiagnosisRep
31
+
32
+ The model defined in huaweicloud sdk
33
+
34
+ :param group_name: **参数解释**: 消费组名称。 **约束限制**: 不涉及。 **取值范围**: 不涉及。 **默认取值**: 不涉及。
35
+ :type group_name: str
36
+ :param node_id_list: **参数解释**: 节点ID列表。 **约束限制**: 不涉及。 **取值范围**: 不涉及。 **默认取值**: 不涉及。
37
+ :type node_id_list: list[str]
38
+ """
39
+
40
+
41
+
42
+ self._group_name = None
43
+ self._node_id_list = None
44
+ self.discriminator = None
45
+
46
+ if group_name is not None:
47
+ self.group_name = group_name
48
+ if node_id_list is not None:
49
+ self.node_id_list = node_id_list
50
+
51
+ @property
52
+ def group_name(self):
53
+ r"""Gets the group_name of this DiagnosisRep.
54
+
55
+ **参数解释**: 消费组名称。 **约束限制**: 不涉及。 **取值范围**: 不涉及。 **默认取值**: 不涉及。
56
+
57
+ :return: The group_name of this DiagnosisRep.
58
+ :rtype: str
59
+ """
60
+ return self._group_name
61
+
62
+ @group_name.setter
63
+ def group_name(self, group_name):
64
+ r"""Sets the group_name of this DiagnosisRep.
65
+
66
+ **参数解释**: 消费组名称。 **约束限制**: 不涉及。 **取值范围**: 不涉及。 **默认取值**: 不涉及。
67
+
68
+ :param group_name: The group_name of this DiagnosisRep.
69
+ :type group_name: str
70
+ """
71
+ self._group_name = group_name
72
+
73
+ @property
74
+ def node_id_list(self):
75
+ r"""Gets the node_id_list of this DiagnosisRep.
76
+
77
+ **参数解释**: 节点ID列表。 **约束限制**: 不涉及。 **取值范围**: 不涉及。 **默认取值**: 不涉及。
78
+
79
+ :return: The node_id_list of this DiagnosisRep.
80
+ :rtype: list[str]
81
+ """
82
+ return self._node_id_list
83
+
84
+ @node_id_list.setter
85
+ def node_id_list(self, node_id_list):
86
+ r"""Sets the node_id_list of this DiagnosisRep.
87
+
88
+ **参数解释**: 节点ID列表。 **约束限制**: 不涉及。 **取值范围**: 不涉及。 **默认取值**: 不涉及。
89
+
90
+ :param node_id_list: The node_id_list of this DiagnosisRep.
91
+ :type node_id_list: list[str]
92
+ """
93
+ self._node_id_list = node_id_list
94
+
95
+ def to_dict(self):
96
+ """Returns the model properties as a dict"""
97
+ result = {}
98
+
99
+ for attr, _ in six.iteritems(self.openapi_types):
100
+ value = getattr(self, attr)
101
+ if isinstance(value, list):
102
+ result[attr] = list(map(
103
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
104
+ value
105
+ ))
106
+ elif hasattr(value, "to_dict"):
107
+ result[attr] = value.to_dict()
108
+ elif isinstance(value, dict):
109
+ result[attr] = dict(map(
110
+ lambda item: (item[0], item[1].to_dict())
111
+ if hasattr(item[1], "to_dict") else item,
112
+ value.items()
113
+ ))
114
+ else:
115
+ if attr in self.sensitive_list:
116
+ result[attr] = "****"
117
+ else:
118
+ result[attr] = value
119
+
120
+ return result
121
+
122
+ def to_str(self):
123
+ """Returns the string representation of the model"""
124
+ import simplejson as json
125
+ if six.PY2:
126
+ import sys
127
+ reload(sys)
128
+ sys.setdefaultencoding("utf-8")
129
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
130
+
131
+ def __repr__(self):
132
+ """For `print`"""
133
+ return self.to_str()
134
+
135
+ def __eq__(self, other):
136
+ """Returns true if both objects are equal"""
137
+ if not isinstance(other, DiagnosisRep):
138
+ return False
139
+
140
+ return self.__dict__ == other.__dict__
141
+
142
+ def __ne__(self, other):
143
+ """Returns true if both objects are not equal"""
144
+ return not self == other
@@ -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