huaweicloudsdkdrs 3.1.94__py2.py3-none-any.whl → 3.1.95__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/__init__.py +17 -0
- huaweicloudsdkdrs/v3/drs_async_client.py +434 -0
- huaweicloudsdkdrs/v3/drs_client.py +434 -0
- huaweicloudsdkdrs/v3/model/__init__.py +17 -0
- huaweicloudsdkdrs/v3/model/batch_job_action_req.py +3 -3
- huaweicloudsdkdrs/v3/model/compare_job_content_detail_info.py +202 -0
- huaweicloudsdkdrs/v3/model/create_compare_result_file_request.py +196 -0
- huaweicloudsdkdrs/v3/model/create_compare_result_file_response.py +116 -0
- huaweicloudsdkdrs/v3/model/create_object_compare_job_req.py +115 -0
- huaweicloudsdkdrs/v3/model/create_object_level_compare_job_request.py +168 -0
- huaweicloudsdkdrs/v3/model/create_object_level_compare_job_response.py +116 -0
- huaweicloudsdkdrs/v3/model/download_compare_result_file_request.py +255 -0
- huaweicloudsdkdrs/v3/model/download_compare_result_file_response.py +85 -0
- huaweicloudsdkdrs/v3/model/endpoint.py +28 -3
- huaweicloudsdkdrs/v3/model/export_compare_result_req.py +172 -0
- huaweicloudsdkdrs/v3/model/kafka_security.py +290 -29
- huaweicloudsdkdrs/v3/model/list_content_compare_detail_request.py +3 -3
- huaweicloudsdkdrs/v3/model/list_content_compare_difference_request.py +287 -0
- huaweicloudsdkdrs/v3/model/list_content_compare_difference_response.py +232 -0
- huaweicloudsdkdrs/v3/model/list_content_compare_overview_request.py +3 -3
- huaweicloudsdkdrs/v3/model/list_data_compare_detail_request.py +3 -3
- huaweicloudsdkdrs/v3/model/list_data_compare_overview_request.py +3 -3
- huaweicloudsdkdrs/v3/model/list_data_level_table_compare_jobs_request.py +3 -3
- huaweicloudsdkdrs/v3/model/list_obeject_level_compare_detail_request.py +258 -0
- huaweicloudsdkdrs/v3/model/list_obeject_level_compare_detail_response.py +145 -0
- huaweicloudsdkdrs/v3/model/list_obeject_level_compare_overview_request.py +143 -0
- huaweicloudsdkdrs/v3/model/list_obeject_level_compare_overview_response.py +319 -0
- huaweicloudsdkdrs/v3/model/objects_compare_detail_info.py +260 -0
- huaweicloudsdkdrs/v3/model/objects_compare_overview_info.py +202 -0
- huaweicloudsdkdrs/v5/__init__.py +11 -0
- huaweicloudsdkdrs/v5/drs_async_client.py +207 -0
- huaweicloudsdkdrs/v5/drs_client.py +207 -0
- huaweicloudsdkdrs/v5/model/__init__.py +11 -0
- huaweicloudsdkdrs/v5/model/action_params.py +28 -3
- huaweicloudsdkdrs/v5/model/action_req.py +3 -3
- huaweicloudsdkdrs/v5/model/children_job_list_resp.py +3 -3
- huaweicloudsdkdrs/v5/model/compare_result_info.py +28 -3
- huaweicloudsdkdrs/v5/model/content_compare_overview_info.py +3 -3
- huaweicloudsdkdrs/v5/model/content_diff_detail_info.py +231 -0
- huaweicloudsdkdrs/v5/model/content_diff_detail_vo.py +202 -0
- huaweicloudsdkdrs/v5/model/health_compare_job.py +9 -9
- huaweicloudsdkdrs/v5/model/job_detail_resp.py +32 -3
- huaweicloudsdkdrs/v5/model/job_list_resp.py +3 -3
- huaweicloudsdkdrs/v5/model/modify_compare_policy_req.py +288 -0
- huaweicloudsdkdrs/v5/model/objects_health_compare_overview_info.py +202 -0
- huaweicloudsdkdrs/v5/model/replay_config_info.py +282 -0
- huaweicloudsdkdrs/v5/model/show_compare_policy_response.py +3 -3
- huaweicloudsdkdrs/v5/model/show_health_compare_job_detail_request.py +171 -0
- huaweicloudsdkdrs/v5/model/show_health_compare_job_detail_response.py +261 -0
- huaweicloudsdkdrs/v5/model/show_health_object_compare_job_overview_request.py +171 -0
- huaweicloudsdkdrs/v5/model/show_health_object_compare_job_overview_response.py +116 -0
- huaweicloudsdkdrs/v5/model/show_job_detail_request.py +3 -3
- huaweicloudsdkdrs/v5/model/update_compare_policy_request.py +168 -0
- huaweicloudsdkdrs/v5/model/update_compare_policy_response.py +116 -0
- huaweicloudsdkdrs/v5/model/update_job_req.py +3 -3
- {huaweicloudsdkdrs-3.1.94.dist-info → huaweicloudsdkdrs-3.1.95.dist-info}/METADATA +2 -2
- {huaweicloudsdkdrs-3.1.94.dist-info → huaweicloudsdkdrs-3.1.95.dist-info}/RECORD +60 -32
- {huaweicloudsdkdrs-3.1.94.dist-info → huaweicloudsdkdrs-3.1.95.dist-info}/LICENSE +0 -0
- {huaweicloudsdkdrs-3.1.94.dist-info → huaweicloudsdkdrs-3.1.95.dist-info}/WHEEL +0 -0
- {huaweicloudsdkdrs-3.1.94.dist-info → huaweicloudsdkdrs-3.1.95.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,261 @@
|
|
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 ShowHealthCompareJobDetailResponse(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
|
+
'id': 'str',
|
22
|
+
'type': 'str',
|
23
|
+
'start_time': 'str',
|
24
|
+
'end_time': 'str',
|
25
|
+
'status': 'str',
|
26
|
+
'job_name': 'str'
|
27
|
+
}
|
28
|
+
|
29
|
+
attribute_map = {
|
30
|
+
'id': 'id',
|
31
|
+
'type': 'type',
|
32
|
+
'start_time': 'start_time',
|
33
|
+
'end_time': 'end_time',
|
34
|
+
'status': 'status',
|
35
|
+
'job_name': 'job_name'
|
36
|
+
}
|
37
|
+
|
38
|
+
def __init__(self, id=None, type=None, start_time=None, end_time=None, status=None, job_name=None):
|
39
|
+
"""ShowHealthCompareJobDetailResponse
|
40
|
+
|
41
|
+
The model defined in huaweicloud sdk
|
42
|
+
|
43
|
+
:param id: 对比任务ID。
|
44
|
+
:type id: str
|
45
|
+
:param type: 对比类型: object_comparison:对象对比。 lines:行对比。 account:用户对比。
|
46
|
+
:type type: str
|
47
|
+
:param start_time: 开始时间,UTC时间,例如:2024-04-03T08:00:01Z。
|
48
|
+
:type start_time: str
|
49
|
+
:param end_time: 结束时间,UTC时间,例如:2024-04-03T08:00:01Z。
|
50
|
+
:type end_time: str
|
51
|
+
:param status: 对比任务的状态。取值: - RUNNING:运行中。 - WAITING_FOR_RUNNING:等待启动中。 - SUCCESSFUL:完成。 - FAILED:失败。 - CANCELLED:已取消。 - TIMEOUT_INTERRUPT:超时中断。 - FULL_DOING:全量校验中。 - INCRE_DOING:增量校验中。
|
52
|
+
:type status: str
|
53
|
+
:param job_name: 任务名称。
|
54
|
+
:type job_name: str
|
55
|
+
"""
|
56
|
+
|
57
|
+
super(ShowHealthCompareJobDetailResponse, self).__init__()
|
58
|
+
|
59
|
+
self._id = None
|
60
|
+
self._type = None
|
61
|
+
self._start_time = None
|
62
|
+
self._end_time = None
|
63
|
+
self._status = None
|
64
|
+
self._job_name = None
|
65
|
+
self.discriminator = None
|
66
|
+
|
67
|
+
if id is not None:
|
68
|
+
self.id = id
|
69
|
+
if type is not None:
|
70
|
+
self.type = type
|
71
|
+
if start_time is not None:
|
72
|
+
self.start_time = start_time
|
73
|
+
if end_time is not None:
|
74
|
+
self.end_time = end_time
|
75
|
+
if status is not None:
|
76
|
+
self.status = status
|
77
|
+
if job_name is not None:
|
78
|
+
self.job_name = job_name
|
79
|
+
|
80
|
+
@property
|
81
|
+
def id(self):
|
82
|
+
"""Gets the id of this ShowHealthCompareJobDetailResponse.
|
83
|
+
|
84
|
+
对比任务ID。
|
85
|
+
|
86
|
+
:return: The id of this ShowHealthCompareJobDetailResponse.
|
87
|
+
:rtype: str
|
88
|
+
"""
|
89
|
+
return self._id
|
90
|
+
|
91
|
+
@id.setter
|
92
|
+
def id(self, id):
|
93
|
+
"""Sets the id of this ShowHealthCompareJobDetailResponse.
|
94
|
+
|
95
|
+
对比任务ID。
|
96
|
+
|
97
|
+
:param id: The id of this ShowHealthCompareJobDetailResponse.
|
98
|
+
:type id: str
|
99
|
+
"""
|
100
|
+
self._id = id
|
101
|
+
|
102
|
+
@property
|
103
|
+
def type(self):
|
104
|
+
"""Gets the type of this ShowHealthCompareJobDetailResponse.
|
105
|
+
|
106
|
+
对比类型: object_comparison:对象对比。 lines:行对比。 account:用户对比。
|
107
|
+
|
108
|
+
:return: The type of this ShowHealthCompareJobDetailResponse.
|
109
|
+
:rtype: str
|
110
|
+
"""
|
111
|
+
return self._type
|
112
|
+
|
113
|
+
@type.setter
|
114
|
+
def type(self, type):
|
115
|
+
"""Sets the type of this ShowHealthCompareJobDetailResponse.
|
116
|
+
|
117
|
+
对比类型: object_comparison:对象对比。 lines:行对比。 account:用户对比。
|
118
|
+
|
119
|
+
:param type: The type of this ShowHealthCompareJobDetailResponse.
|
120
|
+
:type type: str
|
121
|
+
"""
|
122
|
+
self._type = type
|
123
|
+
|
124
|
+
@property
|
125
|
+
def start_time(self):
|
126
|
+
"""Gets the start_time of this ShowHealthCompareJobDetailResponse.
|
127
|
+
|
128
|
+
开始时间,UTC时间,例如:2024-04-03T08:00:01Z。
|
129
|
+
|
130
|
+
:return: The start_time of this ShowHealthCompareJobDetailResponse.
|
131
|
+
:rtype: str
|
132
|
+
"""
|
133
|
+
return self._start_time
|
134
|
+
|
135
|
+
@start_time.setter
|
136
|
+
def start_time(self, start_time):
|
137
|
+
"""Sets the start_time of this ShowHealthCompareJobDetailResponse.
|
138
|
+
|
139
|
+
开始时间,UTC时间,例如:2024-04-03T08:00:01Z。
|
140
|
+
|
141
|
+
:param start_time: The start_time of this ShowHealthCompareJobDetailResponse.
|
142
|
+
:type start_time: str
|
143
|
+
"""
|
144
|
+
self._start_time = start_time
|
145
|
+
|
146
|
+
@property
|
147
|
+
def end_time(self):
|
148
|
+
"""Gets the end_time of this ShowHealthCompareJobDetailResponse.
|
149
|
+
|
150
|
+
结束时间,UTC时间,例如:2024-04-03T08:00:01Z。
|
151
|
+
|
152
|
+
:return: The end_time of this ShowHealthCompareJobDetailResponse.
|
153
|
+
:rtype: str
|
154
|
+
"""
|
155
|
+
return self._end_time
|
156
|
+
|
157
|
+
@end_time.setter
|
158
|
+
def end_time(self, end_time):
|
159
|
+
"""Sets the end_time of this ShowHealthCompareJobDetailResponse.
|
160
|
+
|
161
|
+
结束时间,UTC时间,例如:2024-04-03T08:00:01Z。
|
162
|
+
|
163
|
+
:param end_time: The end_time of this ShowHealthCompareJobDetailResponse.
|
164
|
+
:type end_time: str
|
165
|
+
"""
|
166
|
+
self._end_time = end_time
|
167
|
+
|
168
|
+
@property
|
169
|
+
def status(self):
|
170
|
+
"""Gets the status of this ShowHealthCompareJobDetailResponse.
|
171
|
+
|
172
|
+
对比任务的状态。取值: - RUNNING:运行中。 - WAITING_FOR_RUNNING:等待启动中。 - SUCCESSFUL:完成。 - FAILED:失败。 - CANCELLED:已取消。 - TIMEOUT_INTERRUPT:超时中断。 - FULL_DOING:全量校验中。 - INCRE_DOING:增量校验中。
|
173
|
+
|
174
|
+
:return: The status of this ShowHealthCompareJobDetailResponse.
|
175
|
+
:rtype: str
|
176
|
+
"""
|
177
|
+
return self._status
|
178
|
+
|
179
|
+
@status.setter
|
180
|
+
def status(self, status):
|
181
|
+
"""Sets the status of this ShowHealthCompareJobDetailResponse.
|
182
|
+
|
183
|
+
对比任务的状态。取值: - RUNNING:运行中。 - WAITING_FOR_RUNNING:等待启动中。 - SUCCESSFUL:完成。 - FAILED:失败。 - CANCELLED:已取消。 - TIMEOUT_INTERRUPT:超时中断。 - FULL_DOING:全量校验中。 - INCRE_DOING:增量校验中。
|
184
|
+
|
185
|
+
:param status: The status of this ShowHealthCompareJobDetailResponse.
|
186
|
+
:type status: str
|
187
|
+
"""
|
188
|
+
self._status = status
|
189
|
+
|
190
|
+
@property
|
191
|
+
def job_name(self):
|
192
|
+
"""Gets the job_name of this ShowHealthCompareJobDetailResponse.
|
193
|
+
|
194
|
+
任务名称。
|
195
|
+
|
196
|
+
:return: The job_name of this ShowHealthCompareJobDetailResponse.
|
197
|
+
:rtype: str
|
198
|
+
"""
|
199
|
+
return self._job_name
|
200
|
+
|
201
|
+
@job_name.setter
|
202
|
+
def job_name(self, job_name):
|
203
|
+
"""Sets the job_name of this ShowHealthCompareJobDetailResponse.
|
204
|
+
|
205
|
+
任务名称。
|
206
|
+
|
207
|
+
:param job_name: The job_name of this ShowHealthCompareJobDetailResponse.
|
208
|
+
:type job_name: str
|
209
|
+
"""
|
210
|
+
self._job_name = job_name
|
211
|
+
|
212
|
+
def to_dict(self):
|
213
|
+
"""Returns the model properties as a dict"""
|
214
|
+
result = {}
|
215
|
+
|
216
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
217
|
+
value = getattr(self, attr)
|
218
|
+
if isinstance(value, list):
|
219
|
+
result[attr] = list(map(
|
220
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
221
|
+
value
|
222
|
+
))
|
223
|
+
elif hasattr(value, "to_dict"):
|
224
|
+
result[attr] = value.to_dict()
|
225
|
+
elif isinstance(value, dict):
|
226
|
+
result[attr] = dict(map(
|
227
|
+
lambda item: (item[0], item[1].to_dict())
|
228
|
+
if hasattr(item[1], "to_dict") else item,
|
229
|
+
value.items()
|
230
|
+
))
|
231
|
+
else:
|
232
|
+
if attr in self.sensitive_list:
|
233
|
+
result[attr] = "****"
|
234
|
+
else:
|
235
|
+
result[attr] = value
|
236
|
+
|
237
|
+
return result
|
238
|
+
|
239
|
+
def to_str(self):
|
240
|
+
"""Returns the string representation of the model"""
|
241
|
+
import simplejson as json
|
242
|
+
if six.PY2:
|
243
|
+
import sys
|
244
|
+
reload(sys)
|
245
|
+
sys.setdefaultencoding("utf-8")
|
246
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
247
|
+
|
248
|
+
def __repr__(self):
|
249
|
+
"""For `print`"""
|
250
|
+
return self.to_str()
|
251
|
+
|
252
|
+
def __eq__(self, other):
|
253
|
+
"""Returns true if both objects are equal"""
|
254
|
+
if not isinstance(other, ShowHealthCompareJobDetailResponse):
|
255
|
+
return False
|
256
|
+
|
257
|
+
return self.__dict__ == other.__dict__
|
258
|
+
|
259
|
+
def __ne__(self, other):
|
260
|
+
"""Returns true if both objects are not equal"""
|
261
|
+
return not self == other
|
@@ -0,0 +1,171 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class ShowHealthObjectCompareJobOverviewRequest:
|
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
|
+
'x_language': 'str',
|
21
|
+
'job_id': 'str',
|
22
|
+
'compare_job_id': 'str'
|
23
|
+
}
|
24
|
+
|
25
|
+
attribute_map = {
|
26
|
+
'x_language': 'X-Language',
|
27
|
+
'job_id': 'job_id',
|
28
|
+
'compare_job_id': 'compare_job_id'
|
29
|
+
}
|
30
|
+
|
31
|
+
def __init__(self, x_language=None, job_id=None, compare_job_id=None):
|
32
|
+
"""ShowHealthObjectCompareJobOverviewRequest
|
33
|
+
|
34
|
+
The model defined in huaweicloud sdk
|
35
|
+
|
36
|
+
:param x_language: 请求语言类型。
|
37
|
+
:type x_language: str
|
38
|
+
:param job_id: 任务ID。
|
39
|
+
:type job_id: str
|
40
|
+
:param compare_job_id: 对比任务ID。
|
41
|
+
:type compare_job_id: str
|
42
|
+
"""
|
43
|
+
|
44
|
+
|
45
|
+
|
46
|
+
self._x_language = None
|
47
|
+
self._job_id = None
|
48
|
+
self._compare_job_id = None
|
49
|
+
self.discriminator = None
|
50
|
+
|
51
|
+
if x_language is not None:
|
52
|
+
self.x_language = x_language
|
53
|
+
self.job_id = job_id
|
54
|
+
self.compare_job_id = compare_job_id
|
55
|
+
|
56
|
+
@property
|
57
|
+
def x_language(self):
|
58
|
+
"""Gets the x_language of this ShowHealthObjectCompareJobOverviewRequest.
|
59
|
+
|
60
|
+
请求语言类型。
|
61
|
+
|
62
|
+
:return: The x_language of this ShowHealthObjectCompareJobOverviewRequest.
|
63
|
+
:rtype: str
|
64
|
+
"""
|
65
|
+
return self._x_language
|
66
|
+
|
67
|
+
@x_language.setter
|
68
|
+
def x_language(self, x_language):
|
69
|
+
"""Sets the x_language of this ShowHealthObjectCompareJobOverviewRequest.
|
70
|
+
|
71
|
+
请求语言类型。
|
72
|
+
|
73
|
+
:param x_language: The x_language of this ShowHealthObjectCompareJobOverviewRequest.
|
74
|
+
:type x_language: str
|
75
|
+
"""
|
76
|
+
self._x_language = x_language
|
77
|
+
|
78
|
+
@property
|
79
|
+
def job_id(self):
|
80
|
+
"""Gets the job_id of this ShowHealthObjectCompareJobOverviewRequest.
|
81
|
+
|
82
|
+
任务ID。
|
83
|
+
|
84
|
+
:return: The job_id of this ShowHealthObjectCompareJobOverviewRequest.
|
85
|
+
:rtype: str
|
86
|
+
"""
|
87
|
+
return self._job_id
|
88
|
+
|
89
|
+
@job_id.setter
|
90
|
+
def job_id(self, job_id):
|
91
|
+
"""Sets the job_id of this ShowHealthObjectCompareJobOverviewRequest.
|
92
|
+
|
93
|
+
任务ID。
|
94
|
+
|
95
|
+
:param job_id: The job_id of this ShowHealthObjectCompareJobOverviewRequest.
|
96
|
+
:type job_id: str
|
97
|
+
"""
|
98
|
+
self._job_id = job_id
|
99
|
+
|
100
|
+
@property
|
101
|
+
def compare_job_id(self):
|
102
|
+
"""Gets the compare_job_id of this ShowHealthObjectCompareJobOverviewRequest.
|
103
|
+
|
104
|
+
对比任务ID。
|
105
|
+
|
106
|
+
:return: The compare_job_id of this ShowHealthObjectCompareJobOverviewRequest.
|
107
|
+
:rtype: str
|
108
|
+
"""
|
109
|
+
return self._compare_job_id
|
110
|
+
|
111
|
+
@compare_job_id.setter
|
112
|
+
def compare_job_id(self, compare_job_id):
|
113
|
+
"""Sets the compare_job_id of this ShowHealthObjectCompareJobOverviewRequest.
|
114
|
+
|
115
|
+
对比任务ID。
|
116
|
+
|
117
|
+
:param compare_job_id: The compare_job_id of this ShowHealthObjectCompareJobOverviewRequest.
|
118
|
+
:type compare_job_id: str
|
119
|
+
"""
|
120
|
+
self._compare_job_id = compare_job_id
|
121
|
+
|
122
|
+
def to_dict(self):
|
123
|
+
"""Returns the model properties as a dict"""
|
124
|
+
result = {}
|
125
|
+
|
126
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
127
|
+
value = getattr(self, attr)
|
128
|
+
if isinstance(value, list):
|
129
|
+
result[attr] = list(map(
|
130
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
131
|
+
value
|
132
|
+
))
|
133
|
+
elif hasattr(value, "to_dict"):
|
134
|
+
result[attr] = value.to_dict()
|
135
|
+
elif isinstance(value, dict):
|
136
|
+
result[attr] = dict(map(
|
137
|
+
lambda item: (item[0], item[1].to_dict())
|
138
|
+
if hasattr(item[1], "to_dict") else item,
|
139
|
+
value.items()
|
140
|
+
))
|
141
|
+
else:
|
142
|
+
if attr in self.sensitive_list:
|
143
|
+
result[attr] = "****"
|
144
|
+
else:
|
145
|
+
result[attr] = value
|
146
|
+
|
147
|
+
return result
|
148
|
+
|
149
|
+
def to_str(self):
|
150
|
+
"""Returns the string representation of the model"""
|
151
|
+
import simplejson as json
|
152
|
+
if six.PY2:
|
153
|
+
import sys
|
154
|
+
reload(sys)
|
155
|
+
sys.setdefaultencoding("utf-8")
|
156
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
157
|
+
|
158
|
+
def __repr__(self):
|
159
|
+
"""For `print`"""
|
160
|
+
return self.to_str()
|
161
|
+
|
162
|
+
def __eq__(self, other):
|
163
|
+
"""Returns true if both objects are equal"""
|
164
|
+
if not isinstance(other, ShowHealthObjectCompareJobOverviewRequest):
|
165
|
+
return False
|
166
|
+
|
167
|
+
return self.__dict__ == other.__dict__
|
168
|
+
|
169
|
+
def __ne__(self, other):
|
170
|
+
"""Returns true if both objects are not equal"""
|
171
|
+
return not self == other
|
@@ -0,0 +1,116 @@
|
|
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 ShowHealthObjectCompareJobOverviewResponse(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
|
+
'compare_result': 'list[ObjectsHealthCompareOverviewInfo]'
|
22
|
+
}
|
23
|
+
|
24
|
+
attribute_map = {
|
25
|
+
'compare_result': 'compare_result'
|
26
|
+
}
|
27
|
+
|
28
|
+
def __init__(self, compare_result=None):
|
29
|
+
"""ShowHealthObjectCompareJobOverviewResponse
|
30
|
+
|
31
|
+
The model defined in huaweicloud sdk
|
32
|
+
|
33
|
+
:param compare_result: 健康对比对象级对比结果。
|
34
|
+
:type compare_result: list[:class:`huaweicloudsdkdrs.v5.ObjectsHealthCompareOverviewInfo`]
|
35
|
+
"""
|
36
|
+
|
37
|
+
super(ShowHealthObjectCompareJobOverviewResponse, self).__init__()
|
38
|
+
|
39
|
+
self._compare_result = None
|
40
|
+
self.discriminator = None
|
41
|
+
|
42
|
+
if compare_result is not None:
|
43
|
+
self.compare_result = compare_result
|
44
|
+
|
45
|
+
@property
|
46
|
+
def compare_result(self):
|
47
|
+
"""Gets the compare_result of this ShowHealthObjectCompareJobOverviewResponse.
|
48
|
+
|
49
|
+
健康对比对象级对比结果。
|
50
|
+
|
51
|
+
:return: The compare_result of this ShowHealthObjectCompareJobOverviewResponse.
|
52
|
+
:rtype: list[:class:`huaweicloudsdkdrs.v5.ObjectsHealthCompareOverviewInfo`]
|
53
|
+
"""
|
54
|
+
return self._compare_result
|
55
|
+
|
56
|
+
@compare_result.setter
|
57
|
+
def compare_result(self, compare_result):
|
58
|
+
"""Sets the compare_result of this ShowHealthObjectCompareJobOverviewResponse.
|
59
|
+
|
60
|
+
健康对比对象级对比结果。
|
61
|
+
|
62
|
+
:param compare_result: The compare_result of this ShowHealthObjectCompareJobOverviewResponse.
|
63
|
+
:type compare_result: list[:class:`huaweicloudsdkdrs.v5.ObjectsHealthCompareOverviewInfo`]
|
64
|
+
"""
|
65
|
+
self._compare_result = compare_result
|
66
|
+
|
67
|
+
def to_dict(self):
|
68
|
+
"""Returns the model properties as a dict"""
|
69
|
+
result = {}
|
70
|
+
|
71
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
72
|
+
value = getattr(self, attr)
|
73
|
+
if isinstance(value, list):
|
74
|
+
result[attr] = list(map(
|
75
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
76
|
+
value
|
77
|
+
))
|
78
|
+
elif hasattr(value, "to_dict"):
|
79
|
+
result[attr] = value.to_dict()
|
80
|
+
elif isinstance(value, dict):
|
81
|
+
result[attr] = dict(map(
|
82
|
+
lambda item: (item[0], item[1].to_dict())
|
83
|
+
if hasattr(item[1], "to_dict") else item,
|
84
|
+
value.items()
|
85
|
+
))
|
86
|
+
else:
|
87
|
+
if attr in self.sensitive_list:
|
88
|
+
result[attr] = "****"
|
89
|
+
else:
|
90
|
+
result[attr] = value
|
91
|
+
|
92
|
+
return result
|
93
|
+
|
94
|
+
def to_str(self):
|
95
|
+
"""Returns the string representation of the model"""
|
96
|
+
import simplejson as json
|
97
|
+
if six.PY2:
|
98
|
+
import sys
|
99
|
+
reload(sys)
|
100
|
+
sys.setdefaultencoding("utf-8")
|
101
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
102
|
+
|
103
|
+
def __repr__(self):
|
104
|
+
"""For `print`"""
|
105
|
+
return self.to_str()
|
106
|
+
|
107
|
+
def __eq__(self, other):
|
108
|
+
"""Returns true if both objects are equal"""
|
109
|
+
if not isinstance(other, ShowHealthObjectCompareJobOverviewResponse):
|
110
|
+
return False
|
111
|
+
|
112
|
+
return self.__dict__ == other.__dict__
|
113
|
+
|
114
|
+
def __ne__(self, other):
|
115
|
+
"""Returns true if both objects are not equal"""
|
116
|
+
return not self == other
|
@@ -57,7 +57,7 @@ class ShowJobDetailRequest:
|
|
57
57
|
:type job_id: str
|
58
58
|
:param x_language: 请求语言类型。
|
59
59
|
:type x_language: str
|
60
|
-
:param type: 任务详情类型。取值: - overview:任务概览信息。 - detail:任务基本信息。 - network:测试连接结果信息,需配合query_id参数一起查询。 - precheck:预检查结果信息,需配合query_id参数一起查询。 - progress:任务进度信息。 - log:任务日志信息,支持分页查询参数offset与limit。 - compare:查询对比任务。 - file
|
60
|
+
:param type: 任务详情类型。取值: - overview:任务概览信息。 - detail:任务基本信息。 - network:测试连接结果信息,需配合query_id参数一起查询。 - precheck:预检查结果信息,需配合query_id参数一起查询。 - progress:任务进度信息。 - log:任务日志信息,支持分页查询参数offset与limit。 - compare:查询对比任务。 - file:对象导入信息。 - is_writable:目标库解除只读结果。 - cloud_connection:录制回放他云连通性测试,需配合query_id参数一起查询。
|
61
61
|
:type type: str
|
62
62
|
:param query_id: 通过指定Query ID查询任务详情。 说明:部分type类型的任务详情,需要通过触发该操作的请求返回的query_id进行操作结果查询。
|
63
63
|
:type query_id: str
|
@@ -171,7 +171,7 @@ class ShowJobDetailRequest:
|
|
171
171
|
def type(self):
|
172
172
|
"""Gets the type of this ShowJobDetailRequest.
|
173
173
|
|
174
|
-
任务详情类型。取值: - overview:任务概览信息。 - detail:任务基本信息。 - network:测试连接结果信息,需配合query_id参数一起查询。 - precheck:预检查结果信息,需配合query_id参数一起查询。 - progress:任务进度信息。 - log:任务日志信息,支持分页查询参数offset与limit。 - compare:查询对比任务。 - file
|
174
|
+
任务详情类型。取值: - overview:任务概览信息。 - detail:任务基本信息。 - network:测试连接结果信息,需配合query_id参数一起查询。 - precheck:预检查结果信息,需配合query_id参数一起查询。 - progress:任务进度信息。 - log:任务日志信息,支持分页查询参数offset与limit。 - compare:查询对比任务。 - file:对象导入信息。 - is_writable:目标库解除只读结果。 - cloud_connection:录制回放他云连通性测试,需配合query_id参数一起查询。
|
175
175
|
|
176
176
|
:return: The type of this ShowJobDetailRequest.
|
177
177
|
:rtype: str
|
@@ -182,7 +182,7 @@ class ShowJobDetailRequest:
|
|
182
182
|
def type(self, type):
|
183
183
|
"""Sets the type of this ShowJobDetailRequest.
|
184
184
|
|
185
|
-
任务详情类型。取值: - overview:任务概览信息。 - detail:任务基本信息。 - network:测试连接结果信息,需配合query_id参数一起查询。 - precheck:预检查结果信息,需配合query_id参数一起查询。 - progress:任务进度信息。 - log:任务日志信息,支持分页查询参数offset与limit。 - compare:查询对比任务。 - file
|
185
|
+
任务详情类型。取值: - overview:任务概览信息。 - detail:任务基本信息。 - network:测试连接结果信息,需配合query_id参数一起查询。 - precheck:预检查结果信息,需配合query_id参数一起查询。 - progress:任务进度信息。 - log:任务日志信息,支持分页查询参数offset与limit。 - compare:查询对比任务。 - file:对象导入信息。 - is_writable:目标库解除只读结果。 - cloud_connection:录制回放他云连通性测试,需配合query_id参数一起查询。
|
186
186
|
|
187
187
|
:param type: The type of this ShowJobDetailRequest.
|
188
188
|
:type type: str
|