huaweicloudsdkdrs 3.1.135__py2.py3-none-any.whl → 3.1.137__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.135.dist-info → huaweicloudsdkdrs-3.1.137.dist-info}/METADATA +2 -2
- {huaweicloudsdkdrs-3.1.135.dist-info → huaweicloudsdkdrs-3.1.137.dist-info}/RECORD +32 -18
- {huaweicloudsdkdrs-3.1.135.dist-info → huaweicloudsdkdrs-3.1.137.dist-info}/LICENSE +0 -0
- {huaweicloudsdkdrs-3.1.135.dist-info → huaweicloudsdkdrs-3.1.137.dist-info}/WHEEL +0 -0
- {huaweicloudsdkdrs-3.1.135.dist-info → huaweicloudsdkdrs-3.1.137.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,202 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class QueryRepairDetailRespRepairDetails:
|
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
|
+
'source_meta': 'str',
|
21
|
+
'target_meta': 'str',
|
22
|
+
'repair_sql_state': 'int',
|
23
|
+
'repair_sql_info': 'str'
|
24
|
+
}
|
25
|
+
|
26
|
+
attribute_map = {
|
27
|
+
'source_meta': 'source_meta',
|
28
|
+
'target_meta': 'target_meta',
|
29
|
+
'repair_sql_state': 'repair_sql_state',
|
30
|
+
'repair_sql_info': 'repair_sql_info'
|
31
|
+
}
|
32
|
+
|
33
|
+
def __init__(self, source_meta=None, target_meta=None, repair_sql_state=None, repair_sql_info=None):
|
34
|
+
"""QueryRepairDetailRespRepairDetails
|
35
|
+
|
36
|
+
The model defined in huaweicloud sdk
|
37
|
+
|
38
|
+
:param source_meta: 源表标志列值。
|
39
|
+
:type source_meta: str
|
40
|
+
:param target_meta: 目标表标志列值。
|
41
|
+
:type target_meta: str
|
42
|
+
:param repair_sql_state: 修复SQL状态。
|
43
|
+
:type repair_sql_state: int
|
44
|
+
:param repair_sql_info: 修复SQL。
|
45
|
+
:type repair_sql_info: str
|
46
|
+
"""
|
47
|
+
|
48
|
+
|
49
|
+
|
50
|
+
self._source_meta = None
|
51
|
+
self._target_meta = None
|
52
|
+
self._repair_sql_state = None
|
53
|
+
self._repair_sql_info = None
|
54
|
+
self.discriminator = None
|
55
|
+
|
56
|
+
if source_meta is not None:
|
57
|
+
self.source_meta = source_meta
|
58
|
+
if target_meta is not None:
|
59
|
+
self.target_meta = target_meta
|
60
|
+
if repair_sql_state is not None:
|
61
|
+
self.repair_sql_state = repair_sql_state
|
62
|
+
if repair_sql_info is not None:
|
63
|
+
self.repair_sql_info = repair_sql_info
|
64
|
+
|
65
|
+
@property
|
66
|
+
def source_meta(self):
|
67
|
+
"""Gets the source_meta of this QueryRepairDetailRespRepairDetails.
|
68
|
+
|
69
|
+
源表标志列值。
|
70
|
+
|
71
|
+
:return: The source_meta of this QueryRepairDetailRespRepairDetails.
|
72
|
+
:rtype: str
|
73
|
+
"""
|
74
|
+
return self._source_meta
|
75
|
+
|
76
|
+
@source_meta.setter
|
77
|
+
def source_meta(self, source_meta):
|
78
|
+
"""Sets the source_meta of this QueryRepairDetailRespRepairDetails.
|
79
|
+
|
80
|
+
源表标志列值。
|
81
|
+
|
82
|
+
:param source_meta: The source_meta of this QueryRepairDetailRespRepairDetails.
|
83
|
+
:type source_meta: str
|
84
|
+
"""
|
85
|
+
self._source_meta = source_meta
|
86
|
+
|
87
|
+
@property
|
88
|
+
def target_meta(self):
|
89
|
+
"""Gets the target_meta of this QueryRepairDetailRespRepairDetails.
|
90
|
+
|
91
|
+
目标表标志列值。
|
92
|
+
|
93
|
+
:return: The target_meta of this QueryRepairDetailRespRepairDetails.
|
94
|
+
:rtype: str
|
95
|
+
"""
|
96
|
+
return self._target_meta
|
97
|
+
|
98
|
+
@target_meta.setter
|
99
|
+
def target_meta(self, target_meta):
|
100
|
+
"""Sets the target_meta of this QueryRepairDetailRespRepairDetails.
|
101
|
+
|
102
|
+
目标表标志列值。
|
103
|
+
|
104
|
+
:param target_meta: The target_meta of this QueryRepairDetailRespRepairDetails.
|
105
|
+
:type target_meta: str
|
106
|
+
"""
|
107
|
+
self._target_meta = target_meta
|
108
|
+
|
109
|
+
@property
|
110
|
+
def repair_sql_state(self):
|
111
|
+
"""Gets the repair_sql_state of this QueryRepairDetailRespRepairDetails.
|
112
|
+
|
113
|
+
修复SQL状态。
|
114
|
+
|
115
|
+
:return: The repair_sql_state of this QueryRepairDetailRespRepairDetails.
|
116
|
+
:rtype: int
|
117
|
+
"""
|
118
|
+
return self._repair_sql_state
|
119
|
+
|
120
|
+
@repair_sql_state.setter
|
121
|
+
def repair_sql_state(self, repair_sql_state):
|
122
|
+
"""Sets the repair_sql_state of this QueryRepairDetailRespRepairDetails.
|
123
|
+
|
124
|
+
修复SQL状态。
|
125
|
+
|
126
|
+
:param repair_sql_state: The repair_sql_state of this QueryRepairDetailRespRepairDetails.
|
127
|
+
:type repair_sql_state: int
|
128
|
+
"""
|
129
|
+
self._repair_sql_state = repair_sql_state
|
130
|
+
|
131
|
+
@property
|
132
|
+
def repair_sql_info(self):
|
133
|
+
"""Gets the repair_sql_info of this QueryRepairDetailRespRepairDetails.
|
134
|
+
|
135
|
+
修复SQL。
|
136
|
+
|
137
|
+
:return: The repair_sql_info of this QueryRepairDetailRespRepairDetails.
|
138
|
+
:rtype: str
|
139
|
+
"""
|
140
|
+
return self._repair_sql_info
|
141
|
+
|
142
|
+
@repair_sql_info.setter
|
143
|
+
def repair_sql_info(self, repair_sql_info):
|
144
|
+
"""Sets the repair_sql_info of this QueryRepairDetailRespRepairDetails.
|
145
|
+
|
146
|
+
修复SQL。
|
147
|
+
|
148
|
+
:param repair_sql_info: The repair_sql_info of this QueryRepairDetailRespRepairDetails.
|
149
|
+
:type repair_sql_info: str
|
150
|
+
"""
|
151
|
+
self._repair_sql_info = repair_sql_info
|
152
|
+
|
153
|
+
def to_dict(self):
|
154
|
+
"""Returns the model properties as a dict"""
|
155
|
+
result = {}
|
156
|
+
|
157
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
158
|
+
value = getattr(self, attr)
|
159
|
+
if isinstance(value, list):
|
160
|
+
result[attr] = list(map(
|
161
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
162
|
+
value
|
163
|
+
))
|
164
|
+
elif hasattr(value, "to_dict"):
|
165
|
+
result[attr] = value.to_dict()
|
166
|
+
elif isinstance(value, dict):
|
167
|
+
result[attr] = dict(map(
|
168
|
+
lambda item: (item[0], item[1].to_dict())
|
169
|
+
if hasattr(item[1], "to_dict") else item,
|
170
|
+
value.items()
|
171
|
+
))
|
172
|
+
else:
|
173
|
+
if attr in self.sensitive_list:
|
174
|
+
result[attr] = "****"
|
175
|
+
else:
|
176
|
+
result[attr] = value
|
177
|
+
|
178
|
+
return result
|
179
|
+
|
180
|
+
def to_str(self):
|
181
|
+
"""Returns the string representation of the model"""
|
182
|
+
import simplejson as json
|
183
|
+
if six.PY2:
|
184
|
+
import sys
|
185
|
+
reload(sys)
|
186
|
+
sys.setdefaultencoding("utf-8")
|
187
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
188
|
+
|
189
|
+
def __repr__(self):
|
190
|
+
"""For `print`"""
|
191
|
+
return self.to_str()
|
192
|
+
|
193
|
+
def __eq__(self, other):
|
194
|
+
"""Returns true if both objects are equal"""
|
195
|
+
if not isinstance(other, QueryRepairDetailRespRepairDetails):
|
196
|
+
return False
|
197
|
+
|
198
|
+
return self.__dict__ == other.__dict__
|
199
|
+
|
200
|
+
def __ne__(self, other):
|
201
|
+
"""Returns true if both objects are not equal"""
|
202
|
+
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:对象导入信息。 - is_writable:目标库解除只读结果。 - cloud_connection:录制回放他云连通性测试,需配合query_id参数一起查询。
|
60
|
+
:param type: 任务详情类型。取值: - overview:任务概览信息。 - detail:任务基本信息。 - network:测试连接结果信息,需配合query_id参数一起查询。 - precheck:预检查结果信息,需配合query_id参数一起查询。 - progress:任务进度信息。 - log:任务日志信息,支持分页查询参数offset与limit。 - compare:查询对比任务。 - file:对象导入信息。 - is_writable:目标库解除只读结果。 - cloud_connection:录制回放他云连通性测试,需配合query_id参数一起查询。 - diagnosis:查询一键诊断结果,需配合query_id参数一起查询。 - diagnosis_history:查询一键诊断结果历史,需配合query_id参数一起查询。 - repair_progress:数据修复进度,需配合query_id参数一起查询。 - repair_detail:数据修复详情,需配合query_id参数一起查询。 - repair_export_status:查询数据修复SQL导出状态,需配合compare_task_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:对象导入信息。 - is_writable:目标库解除只读结果。 - cloud_connection:录制回放他云连通性测试,需配合query_id参数一起查询。
|
174
|
+
任务详情类型。取值: - overview:任务概览信息。 - detail:任务基本信息。 - network:测试连接结果信息,需配合query_id参数一起查询。 - precheck:预检查结果信息,需配合query_id参数一起查询。 - progress:任务进度信息。 - log:任务日志信息,支持分页查询参数offset与limit。 - compare:查询对比任务。 - file:对象导入信息。 - is_writable:目标库解除只读结果。 - cloud_connection:录制回放他云连通性测试,需配合query_id参数一起查询。 - diagnosis:查询一键诊断结果,需配合query_id参数一起查询。 - diagnosis_history:查询一键诊断结果历史,需配合query_id参数一起查询。 - repair_progress:数据修复进度,需配合query_id参数一起查询。 - repair_detail:数据修复详情,需配合query_id参数一起查询。 - repair_export_status:查询数据修复SQL导出状态,需配合compare_task_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:对象导入信息。 - is_writable:目标库解除只读结果。 - cloud_connection:录制回放他云连通性测试,需配合query_id参数一起查询。
|
185
|
+
任务详情类型。取值: - overview:任务概览信息。 - detail:任务基本信息。 - network:测试连接结果信息,需配合query_id参数一起查询。 - precheck:预检查结果信息,需配合query_id参数一起查询。 - progress:任务进度信息。 - log:任务日志信息,支持分页查询参数offset与limit。 - compare:查询对比任务。 - file:对象导入信息。 - is_writable:目标库解除只读结果。 - cloud_connection:录制回放他云连通性测试,需配合query_id参数一起查询。 - diagnosis:查询一键诊断结果,需配合query_id参数一起查询。 - diagnosis_history:查询一键诊断结果历史,需配合query_id参数一起查询。 - repair_progress:数据修复进度,需配合query_id参数一起查询。 - repair_detail:数据修复详情,需配合query_id参数一起查询。 - repair_export_status:查询数据修复SQL导出状态,需配合compare_task_id参数一起查询。
|
186
186
|
|
187
187
|
:param type: The type of this ShowJobDetailRequest.
|
188
188
|
:type type: str
|
@@ -0,0 +1,200 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class ShowTimelineRequest:
|
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
|
+
'job_id': 'str',
|
21
|
+
'x_language': 'str',
|
22
|
+
'limit': 'int',
|
23
|
+
'offset': 'int'
|
24
|
+
}
|
25
|
+
|
26
|
+
attribute_map = {
|
27
|
+
'job_id': 'job_id',
|
28
|
+
'x_language': 'X-Language',
|
29
|
+
'limit': 'limit',
|
30
|
+
'offset': 'offset'
|
31
|
+
}
|
32
|
+
|
33
|
+
def __init__(self, job_id=None, x_language=None, limit=None, offset=None):
|
34
|
+
"""ShowTimelineRequest
|
35
|
+
|
36
|
+
The model defined in huaweicloud sdk
|
37
|
+
|
38
|
+
:param job_id: 任务ID。
|
39
|
+
:type job_id: str
|
40
|
+
:param x_language: 请求语言类型。
|
41
|
+
:type x_language: str
|
42
|
+
:param limit: 每页显示的条目数量。默认为10,取值范围【1-1000】
|
43
|
+
:type limit: int
|
44
|
+
:param offset: 偏移量,表示从此偏移量开始查询, offset 大于等于 0。默认为0
|
45
|
+
:type offset: int
|
46
|
+
"""
|
47
|
+
|
48
|
+
|
49
|
+
|
50
|
+
self._job_id = None
|
51
|
+
self._x_language = None
|
52
|
+
self._limit = None
|
53
|
+
self._offset = None
|
54
|
+
self.discriminator = None
|
55
|
+
|
56
|
+
self.job_id = job_id
|
57
|
+
self.x_language = x_language
|
58
|
+
if limit is not None:
|
59
|
+
self.limit = limit
|
60
|
+
if offset is not None:
|
61
|
+
self.offset = offset
|
62
|
+
|
63
|
+
@property
|
64
|
+
def job_id(self):
|
65
|
+
"""Gets the job_id of this ShowTimelineRequest.
|
66
|
+
|
67
|
+
任务ID。
|
68
|
+
|
69
|
+
:return: The job_id of this ShowTimelineRequest.
|
70
|
+
:rtype: str
|
71
|
+
"""
|
72
|
+
return self._job_id
|
73
|
+
|
74
|
+
@job_id.setter
|
75
|
+
def job_id(self, job_id):
|
76
|
+
"""Sets the job_id of this ShowTimelineRequest.
|
77
|
+
|
78
|
+
任务ID。
|
79
|
+
|
80
|
+
:param job_id: The job_id of this ShowTimelineRequest.
|
81
|
+
:type job_id: str
|
82
|
+
"""
|
83
|
+
self._job_id = job_id
|
84
|
+
|
85
|
+
@property
|
86
|
+
def x_language(self):
|
87
|
+
"""Gets the x_language of this ShowTimelineRequest.
|
88
|
+
|
89
|
+
请求语言类型。
|
90
|
+
|
91
|
+
:return: The x_language of this ShowTimelineRequest.
|
92
|
+
:rtype: str
|
93
|
+
"""
|
94
|
+
return self._x_language
|
95
|
+
|
96
|
+
@x_language.setter
|
97
|
+
def x_language(self, x_language):
|
98
|
+
"""Sets the x_language of this ShowTimelineRequest.
|
99
|
+
|
100
|
+
请求语言类型。
|
101
|
+
|
102
|
+
:param x_language: The x_language of this ShowTimelineRequest.
|
103
|
+
:type x_language: str
|
104
|
+
"""
|
105
|
+
self._x_language = x_language
|
106
|
+
|
107
|
+
@property
|
108
|
+
def limit(self):
|
109
|
+
"""Gets the limit of this ShowTimelineRequest.
|
110
|
+
|
111
|
+
每页显示的条目数量。默认为10,取值范围【1-1000】
|
112
|
+
|
113
|
+
:return: The limit of this ShowTimelineRequest.
|
114
|
+
:rtype: int
|
115
|
+
"""
|
116
|
+
return self._limit
|
117
|
+
|
118
|
+
@limit.setter
|
119
|
+
def limit(self, limit):
|
120
|
+
"""Sets the limit of this ShowTimelineRequest.
|
121
|
+
|
122
|
+
每页显示的条目数量。默认为10,取值范围【1-1000】
|
123
|
+
|
124
|
+
:param limit: The limit of this ShowTimelineRequest.
|
125
|
+
:type limit: int
|
126
|
+
"""
|
127
|
+
self._limit = limit
|
128
|
+
|
129
|
+
@property
|
130
|
+
def offset(self):
|
131
|
+
"""Gets the offset of this ShowTimelineRequest.
|
132
|
+
|
133
|
+
偏移量,表示从此偏移量开始查询, offset 大于等于 0。默认为0
|
134
|
+
|
135
|
+
:return: The offset of this ShowTimelineRequest.
|
136
|
+
:rtype: int
|
137
|
+
"""
|
138
|
+
return self._offset
|
139
|
+
|
140
|
+
@offset.setter
|
141
|
+
def offset(self, offset):
|
142
|
+
"""Sets the offset of this ShowTimelineRequest.
|
143
|
+
|
144
|
+
偏移量,表示从此偏移量开始查询, offset 大于等于 0。默认为0
|
145
|
+
|
146
|
+
:param offset: The offset of this ShowTimelineRequest.
|
147
|
+
:type offset: int
|
148
|
+
"""
|
149
|
+
self._offset = offset
|
150
|
+
|
151
|
+
def to_dict(self):
|
152
|
+
"""Returns the model properties as a dict"""
|
153
|
+
result = {}
|
154
|
+
|
155
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
156
|
+
value = getattr(self, attr)
|
157
|
+
if isinstance(value, list):
|
158
|
+
result[attr] = list(map(
|
159
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
160
|
+
value
|
161
|
+
))
|
162
|
+
elif hasattr(value, "to_dict"):
|
163
|
+
result[attr] = value.to_dict()
|
164
|
+
elif isinstance(value, dict):
|
165
|
+
result[attr] = dict(map(
|
166
|
+
lambda item: (item[0], item[1].to_dict())
|
167
|
+
if hasattr(item[1], "to_dict") else item,
|
168
|
+
value.items()
|
169
|
+
))
|
170
|
+
else:
|
171
|
+
if attr in self.sensitive_list:
|
172
|
+
result[attr] = "****"
|
173
|
+
else:
|
174
|
+
result[attr] = value
|
175
|
+
|
176
|
+
return result
|
177
|
+
|
178
|
+
def to_str(self):
|
179
|
+
"""Returns the string representation of the model"""
|
180
|
+
import simplejson as json
|
181
|
+
if six.PY2:
|
182
|
+
import sys
|
183
|
+
reload(sys)
|
184
|
+
sys.setdefaultencoding("utf-8")
|
185
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
186
|
+
|
187
|
+
def __repr__(self):
|
188
|
+
"""For `print`"""
|
189
|
+
return self.to_str()
|
190
|
+
|
191
|
+
def __eq__(self, other):
|
192
|
+
"""Returns true if both objects are equal"""
|
193
|
+
if not isinstance(other, ShowTimelineRequest):
|
194
|
+
return False
|
195
|
+
|
196
|
+
return self.__dict__ == other.__dict__
|
197
|
+
|
198
|
+
def __ne__(self, other):
|
199
|
+
"""Returns true if both objects are not equal"""
|
200
|
+
return not self == other
|
@@ -0,0 +1,145 @@
|
|
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 ShowTimelineResponse(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
|
+
'count': 'int',
|
22
|
+
'timelines': 'list[TimelineInfo]'
|
23
|
+
}
|
24
|
+
|
25
|
+
attribute_map = {
|
26
|
+
'count': 'count',
|
27
|
+
'timelines': 'timelines'
|
28
|
+
}
|
29
|
+
|
30
|
+
def __init__(self, count=None, timelines=None):
|
31
|
+
"""ShowTimelineResponse
|
32
|
+
|
33
|
+
The model defined in huaweicloud sdk
|
34
|
+
|
35
|
+
:param count: 总数。
|
36
|
+
:type count: int
|
37
|
+
:param timelines: 时间轴列表。
|
38
|
+
:type timelines: list[:class:`huaweicloudsdkdrs.v5.TimelineInfo`]
|
39
|
+
"""
|
40
|
+
|
41
|
+
super(ShowTimelineResponse, self).__init__()
|
42
|
+
|
43
|
+
self._count = None
|
44
|
+
self._timelines = None
|
45
|
+
self.discriminator = None
|
46
|
+
|
47
|
+
if count is not None:
|
48
|
+
self.count = count
|
49
|
+
if timelines is not None:
|
50
|
+
self.timelines = timelines
|
51
|
+
|
52
|
+
@property
|
53
|
+
def count(self):
|
54
|
+
"""Gets the count of this ShowTimelineResponse.
|
55
|
+
|
56
|
+
总数。
|
57
|
+
|
58
|
+
:return: The count of this ShowTimelineResponse.
|
59
|
+
:rtype: int
|
60
|
+
"""
|
61
|
+
return self._count
|
62
|
+
|
63
|
+
@count.setter
|
64
|
+
def count(self, count):
|
65
|
+
"""Sets the count of this ShowTimelineResponse.
|
66
|
+
|
67
|
+
总数。
|
68
|
+
|
69
|
+
:param count: The count of this ShowTimelineResponse.
|
70
|
+
:type count: int
|
71
|
+
"""
|
72
|
+
self._count = count
|
73
|
+
|
74
|
+
@property
|
75
|
+
def timelines(self):
|
76
|
+
"""Gets the timelines of this ShowTimelineResponse.
|
77
|
+
|
78
|
+
时间轴列表。
|
79
|
+
|
80
|
+
:return: The timelines of this ShowTimelineResponse.
|
81
|
+
:rtype: list[:class:`huaweicloudsdkdrs.v5.TimelineInfo`]
|
82
|
+
"""
|
83
|
+
return self._timelines
|
84
|
+
|
85
|
+
@timelines.setter
|
86
|
+
def timelines(self, timelines):
|
87
|
+
"""Sets the timelines of this ShowTimelineResponse.
|
88
|
+
|
89
|
+
时间轴列表。
|
90
|
+
|
91
|
+
:param timelines: The timelines of this ShowTimelineResponse.
|
92
|
+
:type timelines: list[:class:`huaweicloudsdkdrs.v5.TimelineInfo`]
|
93
|
+
"""
|
94
|
+
self._timelines = timelines
|
95
|
+
|
96
|
+
def to_dict(self):
|
97
|
+
"""Returns the model properties as a dict"""
|
98
|
+
result = {}
|
99
|
+
|
100
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
101
|
+
value = getattr(self, attr)
|
102
|
+
if isinstance(value, list):
|
103
|
+
result[attr] = list(map(
|
104
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
105
|
+
value
|
106
|
+
))
|
107
|
+
elif hasattr(value, "to_dict"):
|
108
|
+
result[attr] = value.to_dict()
|
109
|
+
elif isinstance(value, dict):
|
110
|
+
result[attr] = dict(map(
|
111
|
+
lambda item: (item[0], item[1].to_dict())
|
112
|
+
if hasattr(item[1], "to_dict") else item,
|
113
|
+
value.items()
|
114
|
+
))
|
115
|
+
else:
|
116
|
+
if attr in self.sensitive_list:
|
117
|
+
result[attr] = "****"
|
118
|
+
else:
|
119
|
+
result[attr] = value
|
120
|
+
|
121
|
+
return result
|
122
|
+
|
123
|
+
def to_str(self):
|
124
|
+
"""Returns the string representation of the model"""
|
125
|
+
import simplejson as json
|
126
|
+
if six.PY2:
|
127
|
+
import sys
|
128
|
+
reload(sys)
|
129
|
+
sys.setdefaultencoding("utf-8")
|
130
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
131
|
+
|
132
|
+
def __repr__(self):
|
133
|
+
"""For `print`"""
|
134
|
+
return self.to_str()
|
135
|
+
|
136
|
+
def __eq__(self, other):
|
137
|
+
"""Returns true if both objects are equal"""
|
138
|
+
if not isinstance(other, ShowTimelineResponse):
|
139
|
+
return False
|
140
|
+
|
141
|
+
return self.__dict__ == other.__dict__
|
142
|
+
|
143
|
+
def __ne__(self, other):
|
144
|
+
"""Returns true if both objects are not equal"""
|
145
|
+
return not self == other
|