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.
- huaweicloudsdkdrs/v3/model/download_compare_result_file_request.py +3 -3
- huaweicloudsdkdrs/v3/model/export_compare_result_req.py +3 -3
- huaweicloudsdkdrs/v3/region/drs_region.py +3 -0
- huaweicloudsdkdrs/v5/__init__.py +14 -0
- huaweicloudsdkdrs/v5/drs_async_client.py +71 -0
- huaweicloudsdkdrs/v5/drs_client.py +71 -0
- huaweicloudsdkdrs/v5/model/__init__.py +14 -0
- huaweicloudsdkdrs/v5/model/action_params.py +28 -3
- huaweicloudsdkdrs/v5/model/action_params_repair_info.py +144 -0
- huaweicloudsdkdrs/v5/model/action_params_repair_info_objects.py +173 -0
- huaweicloudsdkdrs/v5/model/action_req.py +3 -3
- huaweicloudsdkdrs/v5/model/data_process_info.py +35 -6
- huaweicloudsdkdrs/v5/model/job_detail_resp.py +111 -3
- huaweicloudsdkdrs/v5/model/job_detail_resp_repair_progress_info.py +227 -0
- huaweicloudsdkdrs/v5/model/job_detail_resp_repair_progress_info_repair_progress_details.py +434 -0
- huaweicloudsdkdrs/v5/model/query_diagnosis_result.py +463 -0
- huaweicloudsdkdrs/v5/model/query_diagnosis_result_diagnosis_results.py +256 -0
- huaweicloudsdkdrs/v5/model/query_diagnosis_result_item.py +173 -0
- huaweicloudsdkdrs/v5/model/query_diagnosis_result_result_list.py +231 -0
- huaweicloudsdkdrs/v5/model/query_diagnosis_result_suggestion_list.py +115 -0
- huaweicloudsdkdrs/v5/model/query_repair_detail_resp.py +144 -0
- huaweicloudsdkdrs/v5/model/query_repair_detail_resp_repair_details.py +202 -0
- huaweicloudsdkdrs/v5/model/show_job_detail_request.py +3 -3
- huaweicloudsdkdrs/v5/model/show_timeline_request.py +200 -0
- huaweicloudsdkdrs/v5/model/show_timeline_response.py +145 -0
- huaweicloudsdkdrs/v5/model/timeline_info.py +202 -0
- huaweicloudsdkdrs/v5/region/drs_region.py +3 -0
- {huaweicloudsdkdrs-3.1.134.dist-info → huaweicloudsdkdrs-3.1.136.dist-info}/METADATA +2 -2
- {huaweicloudsdkdrs-3.1.134.dist-info → huaweicloudsdkdrs-3.1.136.dist-info}/RECORD +32 -18
- {huaweicloudsdkdrs-3.1.134.dist-info → huaweicloudsdkdrs-3.1.136.dist-info}/LICENSE +0 -0
- {huaweicloudsdkdrs-3.1.134.dist-info → huaweicloudsdkdrs-3.1.136.dist-info}/WHEEL +0 -0
- {huaweicloudsdkdrs-3.1.134.dist-info → huaweicloudsdkdrs-3.1.136.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,173 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class QueryDiagnosisResultItem:
|
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
|
+
'category': 'str',
|
21
|
+
'name': 'str',
|
22
|
+
'weight': 'float'
|
23
|
+
}
|
24
|
+
|
25
|
+
attribute_map = {
|
26
|
+
'category': 'category',
|
27
|
+
'name': 'name',
|
28
|
+
'weight': 'weight'
|
29
|
+
}
|
30
|
+
|
31
|
+
def __init__(self, category=None, name=None, weight=None):
|
32
|
+
"""QueryDiagnosisResultItem
|
33
|
+
|
34
|
+
The model defined in huaweicloud sdk
|
35
|
+
|
36
|
+
:param category: 诊断项类别。
|
37
|
+
:type category: str
|
38
|
+
:param name: 诊断项名称。
|
39
|
+
:type name: str
|
40
|
+
:param weight: 诊断项权重。
|
41
|
+
:type weight: float
|
42
|
+
"""
|
43
|
+
|
44
|
+
|
45
|
+
|
46
|
+
self._category = None
|
47
|
+
self._name = None
|
48
|
+
self._weight = None
|
49
|
+
self.discriminator = None
|
50
|
+
|
51
|
+
if category is not None:
|
52
|
+
self.category = category
|
53
|
+
if name is not None:
|
54
|
+
self.name = name
|
55
|
+
if weight is not None:
|
56
|
+
self.weight = weight
|
57
|
+
|
58
|
+
@property
|
59
|
+
def category(self):
|
60
|
+
"""Gets the category of this QueryDiagnosisResultItem.
|
61
|
+
|
62
|
+
诊断项类别。
|
63
|
+
|
64
|
+
:return: The category of this QueryDiagnosisResultItem.
|
65
|
+
:rtype: str
|
66
|
+
"""
|
67
|
+
return self._category
|
68
|
+
|
69
|
+
@category.setter
|
70
|
+
def category(self, category):
|
71
|
+
"""Sets the category of this QueryDiagnosisResultItem.
|
72
|
+
|
73
|
+
诊断项类别。
|
74
|
+
|
75
|
+
:param category: The category of this QueryDiagnosisResultItem.
|
76
|
+
:type category: str
|
77
|
+
"""
|
78
|
+
self._category = category
|
79
|
+
|
80
|
+
@property
|
81
|
+
def name(self):
|
82
|
+
"""Gets the name of this QueryDiagnosisResultItem.
|
83
|
+
|
84
|
+
诊断项名称。
|
85
|
+
|
86
|
+
:return: The name of this QueryDiagnosisResultItem.
|
87
|
+
:rtype: str
|
88
|
+
"""
|
89
|
+
return self._name
|
90
|
+
|
91
|
+
@name.setter
|
92
|
+
def name(self, name):
|
93
|
+
"""Sets the name of this QueryDiagnosisResultItem.
|
94
|
+
|
95
|
+
诊断项名称。
|
96
|
+
|
97
|
+
:param name: The name of this QueryDiagnosisResultItem.
|
98
|
+
:type name: str
|
99
|
+
"""
|
100
|
+
self._name = name
|
101
|
+
|
102
|
+
@property
|
103
|
+
def weight(self):
|
104
|
+
"""Gets the weight of this QueryDiagnosisResultItem.
|
105
|
+
|
106
|
+
诊断项权重。
|
107
|
+
|
108
|
+
:return: The weight of this QueryDiagnosisResultItem.
|
109
|
+
:rtype: float
|
110
|
+
"""
|
111
|
+
return self._weight
|
112
|
+
|
113
|
+
@weight.setter
|
114
|
+
def weight(self, weight):
|
115
|
+
"""Sets the weight of this QueryDiagnosisResultItem.
|
116
|
+
|
117
|
+
诊断项权重。
|
118
|
+
|
119
|
+
:param weight: The weight of this QueryDiagnosisResultItem.
|
120
|
+
:type weight: float
|
121
|
+
"""
|
122
|
+
self._weight = weight
|
123
|
+
|
124
|
+
def to_dict(self):
|
125
|
+
"""Returns the model properties as a dict"""
|
126
|
+
result = {}
|
127
|
+
|
128
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
129
|
+
value = getattr(self, attr)
|
130
|
+
if isinstance(value, list):
|
131
|
+
result[attr] = list(map(
|
132
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
133
|
+
value
|
134
|
+
))
|
135
|
+
elif hasattr(value, "to_dict"):
|
136
|
+
result[attr] = value.to_dict()
|
137
|
+
elif isinstance(value, dict):
|
138
|
+
result[attr] = dict(map(
|
139
|
+
lambda item: (item[0], item[1].to_dict())
|
140
|
+
if hasattr(item[1], "to_dict") else item,
|
141
|
+
value.items()
|
142
|
+
))
|
143
|
+
else:
|
144
|
+
if attr in self.sensitive_list:
|
145
|
+
result[attr] = "****"
|
146
|
+
else:
|
147
|
+
result[attr] = value
|
148
|
+
|
149
|
+
return result
|
150
|
+
|
151
|
+
def to_str(self):
|
152
|
+
"""Returns the string representation of the model"""
|
153
|
+
import simplejson as json
|
154
|
+
if six.PY2:
|
155
|
+
import sys
|
156
|
+
reload(sys)
|
157
|
+
sys.setdefaultencoding("utf-8")
|
158
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
159
|
+
|
160
|
+
def __repr__(self):
|
161
|
+
"""For `print`"""
|
162
|
+
return self.to_str()
|
163
|
+
|
164
|
+
def __eq__(self, other):
|
165
|
+
"""Returns true if both objects are equal"""
|
166
|
+
if not isinstance(other, QueryDiagnosisResultItem):
|
167
|
+
return False
|
168
|
+
|
169
|
+
return self.__dict__ == other.__dict__
|
170
|
+
|
171
|
+
def __ne__(self, other):
|
172
|
+
"""Returns true if both objects are not equal"""
|
173
|
+
return not self == other
|
@@ -0,0 +1,231 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class QueryDiagnosisResultResultList:
|
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
|
+
'key': 'str',
|
21
|
+
'value': 'str',
|
22
|
+
'is_multi_language': 'bool',
|
23
|
+
'module_name': 'str',
|
24
|
+
'level': 'str'
|
25
|
+
}
|
26
|
+
|
27
|
+
attribute_map = {
|
28
|
+
'key': 'key',
|
29
|
+
'value': 'value',
|
30
|
+
'is_multi_language': 'is_multi_language',
|
31
|
+
'module_name': 'module_name',
|
32
|
+
'level': 'level'
|
33
|
+
}
|
34
|
+
|
35
|
+
def __init__(self, key=None, value=None, is_multi_language=None, module_name=None, level=None):
|
36
|
+
"""QueryDiagnosisResultResultList
|
37
|
+
|
38
|
+
The model defined in huaweicloud sdk
|
39
|
+
|
40
|
+
:param key: 内容key。
|
41
|
+
:type key: str
|
42
|
+
:param value: 结果值。
|
43
|
+
:type value: str
|
44
|
+
:param is_multi_language: 结果值是否需要国际化。
|
45
|
+
:type is_multi_language: bool
|
46
|
+
:param module_name: 模块名称。
|
47
|
+
:type module_name: str
|
48
|
+
:param level: 等级。
|
49
|
+
:type level: str
|
50
|
+
"""
|
51
|
+
|
52
|
+
|
53
|
+
|
54
|
+
self._key = None
|
55
|
+
self._value = None
|
56
|
+
self._is_multi_language = None
|
57
|
+
self._module_name = None
|
58
|
+
self._level = None
|
59
|
+
self.discriminator = None
|
60
|
+
|
61
|
+
if key is not None:
|
62
|
+
self.key = key
|
63
|
+
if value is not None:
|
64
|
+
self.value = value
|
65
|
+
if is_multi_language is not None:
|
66
|
+
self.is_multi_language = is_multi_language
|
67
|
+
if module_name is not None:
|
68
|
+
self.module_name = module_name
|
69
|
+
if level is not None:
|
70
|
+
self.level = level
|
71
|
+
|
72
|
+
@property
|
73
|
+
def key(self):
|
74
|
+
"""Gets the key of this QueryDiagnosisResultResultList.
|
75
|
+
|
76
|
+
内容key。
|
77
|
+
|
78
|
+
:return: The key of this QueryDiagnosisResultResultList.
|
79
|
+
:rtype: str
|
80
|
+
"""
|
81
|
+
return self._key
|
82
|
+
|
83
|
+
@key.setter
|
84
|
+
def key(self, key):
|
85
|
+
"""Sets the key of this QueryDiagnosisResultResultList.
|
86
|
+
|
87
|
+
内容key。
|
88
|
+
|
89
|
+
:param key: The key of this QueryDiagnosisResultResultList.
|
90
|
+
:type key: str
|
91
|
+
"""
|
92
|
+
self._key = key
|
93
|
+
|
94
|
+
@property
|
95
|
+
def value(self):
|
96
|
+
"""Gets the value of this QueryDiagnosisResultResultList.
|
97
|
+
|
98
|
+
结果值。
|
99
|
+
|
100
|
+
:return: The value of this QueryDiagnosisResultResultList.
|
101
|
+
:rtype: str
|
102
|
+
"""
|
103
|
+
return self._value
|
104
|
+
|
105
|
+
@value.setter
|
106
|
+
def value(self, value):
|
107
|
+
"""Sets the value of this QueryDiagnosisResultResultList.
|
108
|
+
|
109
|
+
结果值。
|
110
|
+
|
111
|
+
:param value: The value of this QueryDiagnosisResultResultList.
|
112
|
+
:type value: str
|
113
|
+
"""
|
114
|
+
self._value = value
|
115
|
+
|
116
|
+
@property
|
117
|
+
def is_multi_language(self):
|
118
|
+
"""Gets the is_multi_language of this QueryDiagnosisResultResultList.
|
119
|
+
|
120
|
+
结果值是否需要国际化。
|
121
|
+
|
122
|
+
:return: The is_multi_language of this QueryDiagnosisResultResultList.
|
123
|
+
:rtype: bool
|
124
|
+
"""
|
125
|
+
return self._is_multi_language
|
126
|
+
|
127
|
+
@is_multi_language.setter
|
128
|
+
def is_multi_language(self, is_multi_language):
|
129
|
+
"""Sets the is_multi_language of this QueryDiagnosisResultResultList.
|
130
|
+
|
131
|
+
结果值是否需要国际化。
|
132
|
+
|
133
|
+
:param is_multi_language: The is_multi_language of this QueryDiagnosisResultResultList.
|
134
|
+
:type is_multi_language: bool
|
135
|
+
"""
|
136
|
+
self._is_multi_language = is_multi_language
|
137
|
+
|
138
|
+
@property
|
139
|
+
def module_name(self):
|
140
|
+
"""Gets the module_name of this QueryDiagnosisResultResultList.
|
141
|
+
|
142
|
+
模块名称。
|
143
|
+
|
144
|
+
:return: The module_name of this QueryDiagnosisResultResultList.
|
145
|
+
:rtype: str
|
146
|
+
"""
|
147
|
+
return self._module_name
|
148
|
+
|
149
|
+
@module_name.setter
|
150
|
+
def module_name(self, module_name):
|
151
|
+
"""Sets the module_name of this QueryDiagnosisResultResultList.
|
152
|
+
|
153
|
+
模块名称。
|
154
|
+
|
155
|
+
:param module_name: The module_name of this QueryDiagnosisResultResultList.
|
156
|
+
:type module_name: str
|
157
|
+
"""
|
158
|
+
self._module_name = module_name
|
159
|
+
|
160
|
+
@property
|
161
|
+
def level(self):
|
162
|
+
"""Gets the level of this QueryDiagnosisResultResultList.
|
163
|
+
|
164
|
+
等级。
|
165
|
+
|
166
|
+
:return: The level of this QueryDiagnosisResultResultList.
|
167
|
+
:rtype: str
|
168
|
+
"""
|
169
|
+
return self._level
|
170
|
+
|
171
|
+
@level.setter
|
172
|
+
def level(self, level):
|
173
|
+
"""Sets the level of this QueryDiagnosisResultResultList.
|
174
|
+
|
175
|
+
等级。
|
176
|
+
|
177
|
+
:param level: The level of this QueryDiagnosisResultResultList.
|
178
|
+
:type level: str
|
179
|
+
"""
|
180
|
+
self._level = level
|
181
|
+
|
182
|
+
def to_dict(self):
|
183
|
+
"""Returns the model properties as a dict"""
|
184
|
+
result = {}
|
185
|
+
|
186
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
187
|
+
value = getattr(self, attr)
|
188
|
+
if isinstance(value, list):
|
189
|
+
result[attr] = list(map(
|
190
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
191
|
+
value
|
192
|
+
))
|
193
|
+
elif hasattr(value, "to_dict"):
|
194
|
+
result[attr] = value.to_dict()
|
195
|
+
elif isinstance(value, dict):
|
196
|
+
result[attr] = dict(map(
|
197
|
+
lambda item: (item[0], item[1].to_dict())
|
198
|
+
if hasattr(item[1], "to_dict") else item,
|
199
|
+
value.items()
|
200
|
+
))
|
201
|
+
else:
|
202
|
+
if attr in self.sensitive_list:
|
203
|
+
result[attr] = "****"
|
204
|
+
else:
|
205
|
+
result[attr] = value
|
206
|
+
|
207
|
+
return result
|
208
|
+
|
209
|
+
def to_str(self):
|
210
|
+
"""Returns the string representation of the model"""
|
211
|
+
import simplejson as json
|
212
|
+
if six.PY2:
|
213
|
+
import sys
|
214
|
+
reload(sys)
|
215
|
+
sys.setdefaultencoding("utf-8")
|
216
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
217
|
+
|
218
|
+
def __repr__(self):
|
219
|
+
"""For `print`"""
|
220
|
+
return self.to_str()
|
221
|
+
|
222
|
+
def __eq__(self, other):
|
223
|
+
"""Returns true if both objects are equal"""
|
224
|
+
if not isinstance(other, QueryDiagnosisResultResultList):
|
225
|
+
return False
|
226
|
+
|
227
|
+
return self.__dict__ == other.__dict__
|
228
|
+
|
229
|
+
def __ne__(self, other):
|
230
|
+
"""Returns true if both objects are not equal"""
|
231
|
+
return not self == other
|
@@ -0,0 +1,115 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class QueryDiagnosisResultSuggestionList:
|
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
|
+
'content': 'str'
|
21
|
+
}
|
22
|
+
|
23
|
+
attribute_map = {
|
24
|
+
'content': 'content'
|
25
|
+
}
|
26
|
+
|
27
|
+
def __init__(self, content=None):
|
28
|
+
"""QueryDiagnosisResultSuggestionList
|
29
|
+
|
30
|
+
The model defined in huaweicloud sdk
|
31
|
+
|
32
|
+
:param content: 诊断建议内容。
|
33
|
+
:type content: str
|
34
|
+
"""
|
35
|
+
|
36
|
+
|
37
|
+
|
38
|
+
self._content = None
|
39
|
+
self.discriminator = None
|
40
|
+
|
41
|
+
if content is not None:
|
42
|
+
self.content = content
|
43
|
+
|
44
|
+
@property
|
45
|
+
def content(self):
|
46
|
+
"""Gets the content of this QueryDiagnosisResultSuggestionList.
|
47
|
+
|
48
|
+
诊断建议内容。
|
49
|
+
|
50
|
+
:return: The content of this QueryDiagnosisResultSuggestionList.
|
51
|
+
:rtype: str
|
52
|
+
"""
|
53
|
+
return self._content
|
54
|
+
|
55
|
+
@content.setter
|
56
|
+
def content(self, content):
|
57
|
+
"""Sets the content of this QueryDiagnosisResultSuggestionList.
|
58
|
+
|
59
|
+
诊断建议内容。
|
60
|
+
|
61
|
+
:param content: The content of this QueryDiagnosisResultSuggestionList.
|
62
|
+
:type content: str
|
63
|
+
"""
|
64
|
+
self._content = content
|
65
|
+
|
66
|
+
def to_dict(self):
|
67
|
+
"""Returns the model properties as a dict"""
|
68
|
+
result = {}
|
69
|
+
|
70
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
71
|
+
value = getattr(self, attr)
|
72
|
+
if isinstance(value, list):
|
73
|
+
result[attr] = list(map(
|
74
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
75
|
+
value
|
76
|
+
))
|
77
|
+
elif hasattr(value, "to_dict"):
|
78
|
+
result[attr] = value.to_dict()
|
79
|
+
elif isinstance(value, dict):
|
80
|
+
result[attr] = dict(map(
|
81
|
+
lambda item: (item[0], item[1].to_dict())
|
82
|
+
if hasattr(item[1], "to_dict") else item,
|
83
|
+
value.items()
|
84
|
+
))
|
85
|
+
else:
|
86
|
+
if attr in self.sensitive_list:
|
87
|
+
result[attr] = "****"
|
88
|
+
else:
|
89
|
+
result[attr] = value
|
90
|
+
|
91
|
+
return result
|
92
|
+
|
93
|
+
def to_str(self):
|
94
|
+
"""Returns the string representation of the model"""
|
95
|
+
import simplejson as json
|
96
|
+
if six.PY2:
|
97
|
+
import sys
|
98
|
+
reload(sys)
|
99
|
+
sys.setdefaultencoding("utf-8")
|
100
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
101
|
+
|
102
|
+
def __repr__(self):
|
103
|
+
"""For `print`"""
|
104
|
+
return self.to_str()
|
105
|
+
|
106
|
+
def __eq__(self, other):
|
107
|
+
"""Returns true if both objects are equal"""
|
108
|
+
if not isinstance(other, QueryDiagnosisResultSuggestionList):
|
109
|
+
return False
|
110
|
+
|
111
|
+
return self.__dict__ == other.__dict__
|
112
|
+
|
113
|
+
def __ne__(self, other):
|
114
|
+
"""Returns true if both objects are not equal"""
|
115
|
+
return not self == other
|
@@ -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 QueryRepairDetailResp:
|
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
|
+
'count': 'int',
|
21
|
+
'repair_details': 'list[QueryRepairDetailRespRepairDetails]'
|
22
|
+
}
|
23
|
+
|
24
|
+
attribute_map = {
|
25
|
+
'count': 'count',
|
26
|
+
'repair_details': 'repair_details'
|
27
|
+
}
|
28
|
+
|
29
|
+
def __init__(self, count=None, repair_details=None):
|
30
|
+
"""QueryRepairDetailResp
|
31
|
+
|
32
|
+
The model defined in huaweicloud sdk
|
33
|
+
|
34
|
+
:param count: 总数。
|
35
|
+
:type count: int
|
36
|
+
:param repair_details: 修复详情。
|
37
|
+
:type repair_details: list[:class:`huaweicloudsdkdrs.v5.QueryRepairDetailRespRepairDetails`]
|
38
|
+
"""
|
39
|
+
|
40
|
+
|
41
|
+
|
42
|
+
self._count = None
|
43
|
+
self._repair_details = None
|
44
|
+
self.discriminator = None
|
45
|
+
|
46
|
+
if count is not None:
|
47
|
+
self.count = count
|
48
|
+
if repair_details is not None:
|
49
|
+
self.repair_details = repair_details
|
50
|
+
|
51
|
+
@property
|
52
|
+
def count(self):
|
53
|
+
"""Gets the count of this QueryRepairDetailResp.
|
54
|
+
|
55
|
+
总数。
|
56
|
+
|
57
|
+
:return: The count of this QueryRepairDetailResp.
|
58
|
+
:rtype: int
|
59
|
+
"""
|
60
|
+
return self._count
|
61
|
+
|
62
|
+
@count.setter
|
63
|
+
def count(self, count):
|
64
|
+
"""Sets the count of this QueryRepairDetailResp.
|
65
|
+
|
66
|
+
总数。
|
67
|
+
|
68
|
+
:param count: The count of this QueryRepairDetailResp.
|
69
|
+
:type count: int
|
70
|
+
"""
|
71
|
+
self._count = count
|
72
|
+
|
73
|
+
@property
|
74
|
+
def repair_details(self):
|
75
|
+
"""Gets the repair_details of this QueryRepairDetailResp.
|
76
|
+
|
77
|
+
修复详情。
|
78
|
+
|
79
|
+
:return: The repair_details of this QueryRepairDetailResp.
|
80
|
+
:rtype: list[:class:`huaweicloudsdkdrs.v5.QueryRepairDetailRespRepairDetails`]
|
81
|
+
"""
|
82
|
+
return self._repair_details
|
83
|
+
|
84
|
+
@repair_details.setter
|
85
|
+
def repair_details(self, repair_details):
|
86
|
+
"""Sets the repair_details of this QueryRepairDetailResp.
|
87
|
+
|
88
|
+
修复详情。
|
89
|
+
|
90
|
+
:param repair_details: The repair_details of this QueryRepairDetailResp.
|
91
|
+
:type repair_details: list[:class:`huaweicloudsdkdrs.v5.QueryRepairDetailRespRepairDetails`]
|
92
|
+
"""
|
93
|
+
self._repair_details = repair_details
|
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, QueryRepairDetailResp):
|
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
|