huaweicloudsdkdrs 3.1.134__py2.py3-none-any.whl → 3.1.136__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 (32) hide show
  1. huaweicloudsdkdrs/v3/model/download_compare_result_file_request.py +3 -3
  2. huaweicloudsdkdrs/v3/model/export_compare_result_req.py +3 -3
  3. huaweicloudsdkdrs/v3/region/drs_region.py +3 -0
  4. huaweicloudsdkdrs/v5/__init__.py +14 -0
  5. huaweicloudsdkdrs/v5/drs_async_client.py +71 -0
  6. huaweicloudsdkdrs/v5/drs_client.py +71 -0
  7. huaweicloudsdkdrs/v5/model/__init__.py +14 -0
  8. huaweicloudsdkdrs/v5/model/action_params.py +28 -3
  9. huaweicloudsdkdrs/v5/model/action_params_repair_info.py +144 -0
  10. huaweicloudsdkdrs/v5/model/action_params_repair_info_objects.py +173 -0
  11. huaweicloudsdkdrs/v5/model/action_req.py +3 -3
  12. huaweicloudsdkdrs/v5/model/data_process_info.py +35 -6
  13. huaweicloudsdkdrs/v5/model/job_detail_resp.py +111 -3
  14. huaweicloudsdkdrs/v5/model/job_detail_resp_repair_progress_info.py +227 -0
  15. huaweicloudsdkdrs/v5/model/job_detail_resp_repair_progress_info_repair_progress_details.py +434 -0
  16. huaweicloudsdkdrs/v5/model/query_diagnosis_result.py +463 -0
  17. huaweicloudsdkdrs/v5/model/query_diagnosis_result_diagnosis_results.py +256 -0
  18. huaweicloudsdkdrs/v5/model/query_diagnosis_result_item.py +173 -0
  19. huaweicloudsdkdrs/v5/model/query_diagnosis_result_result_list.py +231 -0
  20. huaweicloudsdkdrs/v5/model/query_diagnosis_result_suggestion_list.py +115 -0
  21. huaweicloudsdkdrs/v5/model/query_repair_detail_resp.py +144 -0
  22. huaweicloudsdkdrs/v5/model/query_repair_detail_resp_repair_details.py +202 -0
  23. huaweicloudsdkdrs/v5/model/show_job_detail_request.py +3 -3
  24. huaweicloudsdkdrs/v5/model/show_timeline_request.py +200 -0
  25. huaweicloudsdkdrs/v5/model/show_timeline_response.py +145 -0
  26. huaweicloudsdkdrs/v5/model/timeline_info.py +202 -0
  27. huaweicloudsdkdrs/v5/region/drs_region.py +3 -0
  28. {huaweicloudsdkdrs-3.1.134.dist-info → huaweicloudsdkdrs-3.1.136.dist-info}/METADATA +2 -2
  29. {huaweicloudsdkdrs-3.1.134.dist-info → huaweicloudsdkdrs-3.1.136.dist-info}/RECORD +32 -18
  30. {huaweicloudsdkdrs-3.1.134.dist-info → huaweicloudsdkdrs-3.1.136.dist-info}/LICENSE +0 -0
  31. {huaweicloudsdkdrs-3.1.134.dist-info → huaweicloudsdkdrs-3.1.136.dist-info}/WHEEL +0 -0
  32. {huaweicloudsdkdrs-3.1.134.dist-info → huaweicloudsdkdrs-3.1.136.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,463 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class QueryDiagnosisResult:
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
+ 'score': 'int',
21
+ 'status': 'str',
22
+ 'progress': 'int',
23
+ 'error_msg': 'str',
24
+ 'start_time': 'str',
25
+ 'end_time': 'str',
26
+ 'total': 'int',
27
+ 'normal_count': 'int',
28
+ 'abnormal_count': 'int',
29
+ 'alarm_count': 'int',
30
+ 'failure_count': 'int',
31
+ 'timeout_count': 'int',
32
+ 'diagnosis_results': 'list[QueryDiagnosisResultDiagnosisResults]'
33
+ }
34
+
35
+ attribute_map = {
36
+ 'score': 'score',
37
+ 'status': 'status',
38
+ 'progress': 'progress',
39
+ 'error_msg': 'error_msg',
40
+ 'start_time': 'start_time',
41
+ 'end_time': 'end_time',
42
+ 'total': 'total',
43
+ 'normal_count': 'normal_count',
44
+ 'abnormal_count': 'abnormal_count',
45
+ 'alarm_count': 'alarm_count',
46
+ 'failure_count': 'failure_count',
47
+ 'timeout_count': 'timeout_count',
48
+ 'diagnosis_results': 'diagnosis_results'
49
+ }
50
+
51
+ def __init__(self, score=None, status=None, progress=None, error_msg=None, start_time=None, end_time=None, total=None, normal_count=None, abnormal_count=None, alarm_count=None, failure_count=None, timeout_count=None, diagnosis_results=None):
52
+ """QueryDiagnosisResult
53
+
54
+ The model defined in huaweicloud sdk
55
+
56
+ :param score: 得分。
57
+ :type score: int
58
+ :param status: 状态。
59
+ :type status: str
60
+ :param progress: 进度。
61
+ :type progress: int
62
+ :param error_msg: 失败原因。
63
+ :type error_msg: str
64
+ :param start_time: 开始时间。
65
+ :type start_time: str
66
+ :param end_time: 结束时间。
67
+ :type end_time: str
68
+ :param total: 诊断项总数。
69
+ :type total: int
70
+ :param normal_count: 正常数量。
71
+ :type normal_count: int
72
+ :param abnormal_count: 异常数量。
73
+ :type abnormal_count: int
74
+ :param alarm_count: 告警数量。
75
+ :type alarm_count: int
76
+ :param failure_count: 失败数量。
77
+ :type failure_count: int
78
+ :param timeout_count: 超时数量。
79
+ :type timeout_count: int
80
+ :param diagnosis_results: 诊断结果。
81
+ :type diagnosis_results: list[:class:`huaweicloudsdkdrs.v5.QueryDiagnosisResultDiagnosisResults`]
82
+ """
83
+
84
+
85
+
86
+ self._score = None
87
+ self._status = None
88
+ self._progress = None
89
+ self._error_msg = None
90
+ self._start_time = None
91
+ self._end_time = None
92
+ self._total = None
93
+ self._normal_count = None
94
+ self._abnormal_count = None
95
+ self._alarm_count = None
96
+ self._failure_count = None
97
+ self._timeout_count = None
98
+ self._diagnosis_results = None
99
+ self.discriminator = None
100
+
101
+ if score is not None:
102
+ self.score = score
103
+ if status is not None:
104
+ self.status = status
105
+ if progress is not None:
106
+ self.progress = progress
107
+ if error_msg is not None:
108
+ self.error_msg = error_msg
109
+ if start_time is not None:
110
+ self.start_time = start_time
111
+ if end_time is not None:
112
+ self.end_time = end_time
113
+ if total is not None:
114
+ self.total = total
115
+ if normal_count is not None:
116
+ self.normal_count = normal_count
117
+ if abnormal_count is not None:
118
+ self.abnormal_count = abnormal_count
119
+ if alarm_count is not None:
120
+ self.alarm_count = alarm_count
121
+ if failure_count is not None:
122
+ self.failure_count = failure_count
123
+ if timeout_count is not None:
124
+ self.timeout_count = timeout_count
125
+ if diagnosis_results is not None:
126
+ self.diagnosis_results = diagnosis_results
127
+
128
+ @property
129
+ def score(self):
130
+ """Gets the score of this QueryDiagnosisResult.
131
+
132
+ 得分。
133
+
134
+ :return: The score of this QueryDiagnosisResult.
135
+ :rtype: int
136
+ """
137
+ return self._score
138
+
139
+ @score.setter
140
+ def score(self, score):
141
+ """Sets the score of this QueryDiagnosisResult.
142
+
143
+ 得分。
144
+
145
+ :param score: The score of this QueryDiagnosisResult.
146
+ :type score: int
147
+ """
148
+ self._score = score
149
+
150
+ @property
151
+ def status(self):
152
+ """Gets the status of this QueryDiagnosisResult.
153
+
154
+ 状态。
155
+
156
+ :return: The status of this QueryDiagnosisResult.
157
+ :rtype: str
158
+ """
159
+ return self._status
160
+
161
+ @status.setter
162
+ def status(self, status):
163
+ """Sets the status of this QueryDiagnosisResult.
164
+
165
+ 状态。
166
+
167
+ :param status: The status of this QueryDiagnosisResult.
168
+ :type status: str
169
+ """
170
+ self._status = status
171
+
172
+ @property
173
+ def progress(self):
174
+ """Gets the progress of this QueryDiagnosisResult.
175
+
176
+ 进度。
177
+
178
+ :return: The progress of this QueryDiagnosisResult.
179
+ :rtype: int
180
+ """
181
+ return self._progress
182
+
183
+ @progress.setter
184
+ def progress(self, progress):
185
+ """Sets the progress of this QueryDiagnosisResult.
186
+
187
+ 进度。
188
+
189
+ :param progress: The progress of this QueryDiagnosisResult.
190
+ :type progress: int
191
+ """
192
+ self._progress = progress
193
+
194
+ @property
195
+ def error_msg(self):
196
+ """Gets the error_msg of this QueryDiagnosisResult.
197
+
198
+ 失败原因。
199
+
200
+ :return: The error_msg of this QueryDiagnosisResult.
201
+ :rtype: str
202
+ """
203
+ return self._error_msg
204
+
205
+ @error_msg.setter
206
+ def error_msg(self, error_msg):
207
+ """Sets the error_msg of this QueryDiagnosisResult.
208
+
209
+ 失败原因。
210
+
211
+ :param error_msg: The error_msg of this QueryDiagnosisResult.
212
+ :type error_msg: str
213
+ """
214
+ self._error_msg = error_msg
215
+
216
+ @property
217
+ def start_time(self):
218
+ """Gets the start_time of this QueryDiagnosisResult.
219
+
220
+ 开始时间。
221
+
222
+ :return: The start_time of this QueryDiagnosisResult.
223
+ :rtype: str
224
+ """
225
+ return self._start_time
226
+
227
+ @start_time.setter
228
+ def start_time(self, start_time):
229
+ """Sets the start_time of this QueryDiagnosisResult.
230
+
231
+ 开始时间。
232
+
233
+ :param start_time: The start_time of this QueryDiagnosisResult.
234
+ :type start_time: str
235
+ """
236
+ self._start_time = start_time
237
+
238
+ @property
239
+ def end_time(self):
240
+ """Gets the end_time of this QueryDiagnosisResult.
241
+
242
+ 结束时间。
243
+
244
+ :return: The end_time of this QueryDiagnosisResult.
245
+ :rtype: str
246
+ """
247
+ return self._end_time
248
+
249
+ @end_time.setter
250
+ def end_time(self, end_time):
251
+ """Sets the end_time of this QueryDiagnosisResult.
252
+
253
+ 结束时间。
254
+
255
+ :param end_time: The end_time of this QueryDiagnosisResult.
256
+ :type end_time: str
257
+ """
258
+ self._end_time = end_time
259
+
260
+ @property
261
+ def total(self):
262
+ """Gets the total of this QueryDiagnosisResult.
263
+
264
+ 诊断项总数。
265
+
266
+ :return: The total of this QueryDiagnosisResult.
267
+ :rtype: int
268
+ """
269
+ return self._total
270
+
271
+ @total.setter
272
+ def total(self, total):
273
+ """Sets the total of this QueryDiagnosisResult.
274
+
275
+ 诊断项总数。
276
+
277
+ :param total: The total of this QueryDiagnosisResult.
278
+ :type total: int
279
+ """
280
+ self._total = total
281
+
282
+ @property
283
+ def normal_count(self):
284
+ """Gets the normal_count of this QueryDiagnosisResult.
285
+
286
+ 正常数量。
287
+
288
+ :return: The normal_count of this QueryDiagnosisResult.
289
+ :rtype: int
290
+ """
291
+ return self._normal_count
292
+
293
+ @normal_count.setter
294
+ def normal_count(self, normal_count):
295
+ """Sets the normal_count of this QueryDiagnosisResult.
296
+
297
+ 正常数量。
298
+
299
+ :param normal_count: The normal_count of this QueryDiagnosisResult.
300
+ :type normal_count: int
301
+ """
302
+ self._normal_count = normal_count
303
+
304
+ @property
305
+ def abnormal_count(self):
306
+ """Gets the abnormal_count of this QueryDiagnosisResult.
307
+
308
+ 异常数量。
309
+
310
+ :return: The abnormal_count of this QueryDiagnosisResult.
311
+ :rtype: int
312
+ """
313
+ return self._abnormal_count
314
+
315
+ @abnormal_count.setter
316
+ def abnormal_count(self, abnormal_count):
317
+ """Sets the abnormal_count of this QueryDiagnosisResult.
318
+
319
+ 异常数量。
320
+
321
+ :param abnormal_count: The abnormal_count of this QueryDiagnosisResult.
322
+ :type abnormal_count: int
323
+ """
324
+ self._abnormal_count = abnormal_count
325
+
326
+ @property
327
+ def alarm_count(self):
328
+ """Gets the alarm_count of this QueryDiagnosisResult.
329
+
330
+ 告警数量。
331
+
332
+ :return: The alarm_count of this QueryDiagnosisResult.
333
+ :rtype: int
334
+ """
335
+ return self._alarm_count
336
+
337
+ @alarm_count.setter
338
+ def alarm_count(self, alarm_count):
339
+ """Sets the alarm_count of this QueryDiagnosisResult.
340
+
341
+ 告警数量。
342
+
343
+ :param alarm_count: The alarm_count of this QueryDiagnosisResult.
344
+ :type alarm_count: int
345
+ """
346
+ self._alarm_count = alarm_count
347
+
348
+ @property
349
+ def failure_count(self):
350
+ """Gets the failure_count of this QueryDiagnosisResult.
351
+
352
+ 失败数量。
353
+
354
+ :return: The failure_count of this QueryDiagnosisResult.
355
+ :rtype: int
356
+ """
357
+ return self._failure_count
358
+
359
+ @failure_count.setter
360
+ def failure_count(self, failure_count):
361
+ """Sets the failure_count of this QueryDiagnosisResult.
362
+
363
+ 失败数量。
364
+
365
+ :param failure_count: The failure_count of this QueryDiagnosisResult.
366
+ :type failure_count: int
367
+ """
368
+ self._failure_count = failure_count
369
+
370
+ @property
371
+ def timeout_count(self):
372
+ """Gets the timeout_count of this QueryDiagnosisResult.
373
+
374
+ 超时数量。
375
+
376
+ :return: The timeout_count of this QueryDiagnosisResult.
377
+ :rtype: int
378
+ """
379
+ return self._timeout_count
380
+
381
+ @timeout_count.setter
382
+ def timeout_count(self, timeout_count):
383
+ """Sets the timeout_count of this QueryDiagnosisResult.
384
+
385
+ 超时数量。
386
+
387
+ :param timeout_count: The timeout_count of this QueryDiagnosisResult.
388
+ :type timeout_count: int
389
+ """
390
+ self._timeout_count = timeout_count
391
+
392
+ @property
393
+ def diagnosis_results(self):
394
+ """Gets the diagnosis_results of this QueryDiagnosisResult.
395
+
396
+ 诊断结果。
397
+
398
+ :return: The diagnosis_results of this QueryDiagnosisResult.
399
+ :rtype: list[:class:`huaweicloudsdkdrs.v5.QueryDiagnosisResultDiagnosisResults`]
400
+ """
401
+ return self._diagnosis_results
402
+
403
+ @diagnosis_results.setter
404
+ def diagnosis_results(self, diagnosis_results):
405
+ """Sets the diagnosis_results of this QueryDiagnosisResult.
406
+
407
+ 诊断结果。
408
+
409
+ :param diagnosis_results: The diagnosis_results of this QueryDiagnosisResult.
410
+ :type diagnosis_results: list[:class:`huaweicloudsdkdrs.v5.QueryDiagnosisResultDiagnosisResults`]
411
+ """
412
+ self._diagnosis_results = diagnosis_results
413
+
414
+ def to_dict(self):
415
+ """Returns the model properties as a dict"""
416
+ result = {}
417
+
418
+ for attr, _ in six.iteritems(self.openapi_types):
419
+ value = getattr(self, attr)
420
+ if isinstance(value, list):
421
+ result[attr] = list(map(
422
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
423
+ value
424
+ ))
425
+ elif hasattr(value, "to_dict"):
426
+ result[attr] = value.to_dict()
427
+ elif isinstance(value, dict):
428
+ result[attr] = dict(map(
429
+ lambda item: (item[0], item[1].to_dict())
430
+ if hasattr(item[1], "to_dict") else item,
431
+ value.items()
432
+ ))
433
+ else:
434
+ if attr in self.sensitive_list:
435
+ result[attr] = "****"
436
+ else:
437
+ result[attr] = value
438
+
439
+ return result
440
+
441
+ def to_str(self):
442
+ """Returns the string representation of the model"""
443
+ import simplejson as json
444
+ if six.PY2:
445
+ import sys
446
+ reload(sys)
447
+ sys.setdefaultencoding("utf-8")
448
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
449
+
450
+ def __repr__(self):
451
+ """For `print`"""
452
+ return self.to_str()
453
+
454
+ def __eq__(self, other):
455
+ """Returns true if both objects are equal"""
456
+ if not isinstance(other, QueryDiagnosisResult):
457
+ return False
458
+
459
+ return self.__dict__ == other.__dict__
460
+
461
+ def __ne__(self, other):
462
+ """Returns true if both objects are not equal"""
463
+ return not self == other
@@ -0,0 +1,256 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class QueryDiagnosisResultDiagnosisResults:
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
+ 'item': 'QueryDiagnosisResultItem',
21
+ 'state': 'str',
22
+ 'result_list': 'list[QueryDiagnosisResultResultList]',
23
+ 'suggestion_list': 'list[QueryDiagnosisResultSuggestionList]',
24
+ 'score': 'int',
25
+ 'time': 'str'
26
+ }
27
+
28
+ attribute_map = {
29
+ 'item': 'item',
30
+ 'state': 'state',
31
+ 'result_list': 'result_list',
32
+ 'suggestion_list': 'suggestion_list',
33
+ 'score': 'score',
34
+ 'time': 'time'
35
+ }
36
+
37
+ def __init__(self, item=None, state=None, result_list=None, suggestion_list=None, score=None, time=None):
38
+ """QueryDiagnosisResultDiagnosisResults
39
+
40
+ The model defined in huaweicloud sdk
41
+
42
+ :param item:
43
+ :type item: :class:`huaweicloudsdkdrs.v5.QueryDiagnosisResultItem`
44
+ :param state: 诊断项状态。
45
+ :type state: str
46
+ :param result_list: 诊断结果。
47
+ :type result_list: list[:class:`huaweicloudsdkdrs.v5.QueryDiagnosisResultResultList`]
48
+ :param suggestion_list: 诊断建议。
49
+ :type suggestion_list: list[:class:`huaweicloudsdkdrs.v5.QueryDiagnosisResultSuggestionList`]
50
+ :param score: 诊断项得分。
51
+ :type score: int
52
+ :param time: 完成时间。
53
+ :type time: str
54
+ """
55
+
56
+
57
+
58
+ self._item = None
59
+ self._state = None
60
+ self._result_list = None
61
+ self._suggestion_list = None
62
+ self._score = None
63
+ self._time = None
64
+ self.discriminator = None
65
+
66
+ if item is not None:
67
+ self.item = item
68
+ if state is not None:
69
+ self.state = state
70
+ if result_list is not None:
71
+ self.result_list = result_list
72
+ if suggestion_list is not None:
73
+ self.suggestion_list = suggestion_list
74
+ if score is not None:
75
+ self.score = score
76
+ if time is not None:
77
+ self.time = time
78
+
79
+ @property
80
+ def item(self):
81
+ """Gets the item of this QueryDiagnosisResultDiagnosisResults.
82
+
83
+ :return: The item of this QueryDiagnosisResultDiagnosisResults.
84
+ :rtype: :class:`huaweicloudsdkdrs.v5.QueryDiagnosisResultItem`
85
+ """
86
+ return self._item
87
+
88
+ @item.setter
89
+ def item(self, item):
90
+ """Sets the item of this QueryDiagnosisResultDiagnosisResults.
91
+
92
+ :param item: The item of this QueryDiagnosisResultDiagnosisResults.
93
+ :type item: :class:`huaweicloudsdkdrs.v5.QueryDiagnosisResultItem`
94
+ """
95
+ self._item = item
96
+
97
+ @property
98
+ def state(self):
99
+ """Gets the state of this QueryDiagnosisResultDiagnosisResults.
100
+
101
+ 诊断项状态。
102
+
103
+ :return: The state of this QueryDiagnosisResultDiagnosisResults.
104
+ :rtype: str
105
+ """
106
+ return self._state
107
+
108
+ @state.setter
109
+ def state(self, state):
110
+ """Sets the state of this QueryDiagnosisResultDiagnosisResults.
111
+
112
+ 诊断项状态。
113
+
114
+ :param state: The state of this QueryDiagnosisResultDiagnosisResults.
115
+ :type state: str
116
+ """
117
+ self._state = state
118
+
119
+ @property
120
+ def result_list(self):
121
+ """Gets the result_list of this QueryDiagnosisResultDiagnosisResults.
122
+
123
+ 诊断结果。
124
+
125
+ :return: The result_list of this QueryDiagnosisResultDiagnosisResults.
126
+ :rtype: list[:class:`huaweicloudsdkdrs.v5.QueryDiagnosisResultResultList`]
127
+ """
128
+ return self._result_list
129
+
130
+ @result_list.setter
131
+ def result_list(self, result_list):
132
+ """Sets the result_list of this QueryDiagnosisResultDiagnosisResults.
133
+
134
+ 诊断结果。
135
+
136
+ :param result_list: The result_list of this QueryDiagnosisResultDiagnosisResults.
137
+ :type result_list: list[:class:`huaweicloudsdkdrs.v5.QueryDiagnosisResultResultList`]
138
+ """
139
+ self._result_list = result_list
140
+
141
+ @property
142
+ def suggestion_list(self):
143
+ """Gets the suggestion_list of this QueryDiagnosisResultDiagnosisResults.
144
+
145
+ 诊断建议。
146
+
147
+ :return: The suggestion_list of this QueryDiagnosisResultDiagnosisResults.
148
+ :rtype: list[:class:`huaweicloudsdkdrs.v5.QueryDiagnosisResultSuggestionList`]
149
+ """
150
+ return self._suggestion_list
151
+
152
+ @suggestion_list.setter
153
+ def suggestion_list(self, suggestion_list):
154
+ """Sets the suggestion_list of this QueryDiagnosisResultDiagnosisResults.
155
+
156
+ 诊断建议。
157
+
158
+ :param suggestion_list: The suggestion_list of this QueryDiagnosisResultDiagnosisResults.
159
+ :type suggestion_list: list[:class:`huaweicloudsdkdrs.v5.QueryDiagnosisResultSuggestionList`]
160
+ """
161
+ self._suggestion_list = suggestion_list
162
+
163
+ @property
164
+ def score(self):
165
+ """Gets the score of this QueryDiagnosisResultDiagnosisResults.
166
+
167
+ 诊断项得分。
168
+
169
+ :return: The score of this QueryDiagnosisResultDiagnosisResults.
170
+ :rtype: int
171
+ """
172
+ return self._score
173
+
174
+ @score.setter
175
+ def score(self, score):
176
+ """Sets the score of this QueryDiagnosisResultDiagnosisResults.
177
+
178
+ 诊断项得分。
179
+
180
+ :param score: The score of this QueryDiagnosisResultDiagnosisResults.
181
+ :type score: int
182
+ """
183
+ self._score = score
184
+
185
+ @property
186
+ def time(self):
187
+ """Gets the time of this QueryDiagnosisResultDiagnosisResults.
188
+
189
+ 完成时间。
190
+
191
+ :return: The time of this QueryDiagnosisResultDiagnosisResults.
192
+ :rtype: str
193
+ """
194
+ return self._time
195
+
196
+ @time.setter
197
+ def time(self, time):
198
+ """Sets the time of this QueryDiagnosisResultDiagnosisResults.
199
+
200
+ 完成时间。
201
+
202
+ :param time: The time of this QueryDiagnosisResultDiagnosisResults.
203
+ :type time: str
204
+ """
205
+ self._time = time
206
+
207
+ def to_dict(self):
208
+ """Returns the model properties as a dict"""
209
+ result = {}
210
+
211
+ for attr, _ in six.iteritems(self.openapi_types):
212
+ value = getattr(self, attr)
213
+ if isinstance(value, list):
214
+ result[attr] = list(map(
215
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
216
+ value
217
+ ))
218
+ elif hasattr(value, "to_dict"):
219
+ result[attr] = value.to_dict()
220
+ elif isinstance(value, dict):
221
+ result[attr] = dict(map(
222
+ lambda item: (item[0], item[1].to_dict())
223
+ if hasattr(item[1], "to_dict") else item,
224
+ value.items()
225
+ ))
226
+ else:
227
+ if attr in self.sensitive_list:
228
+ result[attr] = "****"
229
+ else:
230
+ result[attr] = value
231
+
232
+ return result
233
+
234
+ def to_str(self):
235
+ """Returns the string representation of the model"""
236
+ import simplejson as json
237
+ if six.PY2:
238
+ import sys
239
+ reload(sys)
240
+ sys.setdefaultencoding("utf-8")
241
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
242
+
243
+ def __repr__(self):
244
+ """For `print`"""
245
+ return self.to_str()
246
+
247
+ def __eq__(self, other):
248
+ """Returns true if both objects are equal"""
249
+ if not isinstance(other, QueryDiagnosisResultDiagnosisResults):
250
+ return False
251
+
252
+ return self.__dict__ == other.__dict__
253
+
254
+ def __ne__(self, other):
255
+ """Returns true if both objects are not equal"""
256
+ return not self == other