huaweicloudsdkdrs 3.1.93__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/v3/region/drs_region.py +9 -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/v5/region/drs_region.py +9 -0
- {huaweicloudsdkdrs-3.1.93.dist-info → huaweicloudsdkdrs-3.1.95.dist-info}/METADATA +2 -2
- {huaweicloudsdkdrs-3.1.93.dist-info → huaweicloudsdkdrs-3.1.95.dist-info}/RECORD +62 -34
- {huaweicloudsdkdrs-3.1.93.dist-info → huaweicloudsdkdrs-3.1.95.dist-info}/LICENSE +0 -0
- {huaweicloudsdkdrs-3.1.93.dist-info → huaweicloudsdkdrs-3.1.95.dist-info}/WHEEL +0 -0
- {huaweicloudsdkdrs-3.1.93.dist-info → huaweicloudsdkdrs-3.1.95.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,282 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class ReplayConfigInfo:
|
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
|
+
'db_instance_id': 'str',
|
21
|
+
'cloud_type': 'str',
|
22
|
+
'ak': 'str',
|
23
|
+
'sk': 'str',
|
24
|
+
'db_source': 'str',
|
25
|
+
'region': 'str',
|
26
|
+
'traffic_source': 'str'
|
27
|
+
}
|
28
|
+
|
29
|
+
attribute_map = {
|
30
|
+
'db_instance_id': 'db_instance_id',
|
31
|
+
'cloud_type': 'cloud_type',
|
32
|
+
'ak': 'ak',
|
33
|
+
'sk': 'sk',
|
34
|
+
'db_source': 'db_source',
|
35
|
+
'region': 'region',
|
36
|
+
'traffic_source': 'traffic_source'
|
37
|
+
}
|
38
|
+
|
39
|
+
def __init__(self, db_instance_id=None, cloud_type=None, ak=None, sk=None, db_source=None, region=None, traffic_source=None):
|
40
|
+
"""ReplayConfigInfo
|
41
|
+
|
42
|
+
The model defined in huaweicloud sdk
|
43
|
+
|
44
|
+
:param db_instance_id: 源实例ID。
|
45
|
+
:type db_instance_id: str
|
46
|
+
:param cloud_type: 云类型: - AWSCloud:亚马逊云。 - TencentCloud:腾讯云。 - AliCloud:阿里云。
|
47
|
+
:type cloud_type: str
|
48
|
+
:param ak: 其他云AK信息。
|
49
|
+
:type ak: str
|
50
|
+
:param sk: 其他云SK信息。
|
51
|
+
:type sk: str
|
52
|
+
:param db_source: 源数据库来源。取值: - aws_aurora_mysql:Amazon Aurora MySQL。 - tencent_tdsql_c:腾讯云TDSQL-C MySQL。 - ali_rds_mysql:阿里云RDS MySQL。
|
53
|
+
:type db_source: str
|
54
|
+
:param region: 其他云Region名称。
|
55
|
+
:type region: str
|
56
|
+
:param traffic_source: 流量文件来源。 - sdk:通过三方云API接口方式下载审计日志。
|
57
|
+
:type traffic_source: str
|
58
|
+
"""
|
59
|
+
|
60
|
+
|
61
|
+
|
62
|
+
self._db_instance_id = None
|
63
|
+
self._cloud_type = None
|
64
|
+
self._ak = None
|
65
|
+
self._sk = None
|
66
|
+
self._db_source = None
|
67
|
+
self._region = None
|
68
|
+
self._traffic_source = None
|
69
|
+
self.discriminator = None
|
70
|
+
|
71
|
+
self.db_instance_id = db_instance_id
|
72
|
+
self.cloud_type = cloud_type
|
73
|
+
self.ak = ak
|
74
|
+
self.sk = sk
|
75
|
+
self.db_source = db_source
|
76
|
+
self.region = region
|
77
|
+
self.traffic_source = traffic_source
|
78
|
+
|
79
|
+
@property
|
80
|
+
def db_instance_id(self):
|
81
|
+
"""Gets the db_instance_id of this ReplayConfigInfo.
|
82
|
+
|
83
|
+
源实例ID。
|
84
|
+
|
85
|
+
:return: The db_instance_id of this ReplayConfigInfo.
|
86
|
+
:rtype: str
|
87
|
+
"""
|
88
|
+
return self._db_instance_id
|
89
|
+
|
90
|
+
@db_instance_id.setter
|
91
|
+
def db_instance_id(self, db_instance_id):
|
92
|
+
"""Sets the db_instance_id of this ReplayConfigInfo.
|
93
|
+
|
94
|
+
源实例ID。
|
95
|
+
|
96
|
+
:param db_instance_id: The db_instance_id of this ReplayConfigInfo.
|
97
|
+
:type db_instance_id: str
|
98
|
+
"""
|
99
|
+
self._db_instance_id = db_instance_id
|
100
|
+
|
101
|
+
@property
|
102
|
+
def cloud_type(self):
|
103
|
+
"""Gets the cloud_type of this ReplayConfigInfo.
|
104
|
+
|
105
|
+
云类型: - AWSCloud:亚马逊云。 - TencentCloud:腾讯云。 - AliCloud:阿里云。
|
106
|
+
|
107
|
+
:return: The cloud_type of this ReplayConfigInfo.
|
108
|
+
:rtype: str
|
109
|
+
"""
|
110
|
+
return self._cloud_type
|
111
|
+
|
112
|
+
@cloud_type.setter
|
113
|
+
def cloud_type(self, cloud_type):
|
114
|
+
"""Sets the cloud_type of this ReplayConfigInfo.
|
115
|
+
|
116
|
+
云类型: - AWSCloud:亚马逊云。 - TencentCloud:腾讯云。 - AliCloud:阿里云。
|
117
|
+
|
118
|
+
:param cloud_type: The cloud_type of this ReplayConfigInfo.
|
119
|
+
:type cloud_type: str
|
120
|
+
"""
|
121
|
+
self._cloud_type = cloud_type
|
122
|
+
|
123
|
+
@property
|
124
|
+
def ak(self):
|
125
|
+
"""Gets the ak of this ReplayConfigInfo.
|
126
|
+
|
127
|
+
其他云AK信息。
|
128
|
+
|
129
|
+
:return: The ak of this ReplayConfigInfo.
|
130
|
+
:rtype: str
|
131
|
+
"""
|
132
|
+
return self._ak
|
133
|
+
|
134
|
+
@ak.setter
|
135
|
+
def ak(self, ak):
|
136
|
+
"""Sets the ak of this ReplayConfigInfo.
|
137
|
+
|
138
|
+
其他云AK信息。
|
139
|
+
|
140
|
+
:param ak: The ak of this ReplayConfigInfo.
|
141
|
+
:type ak: str
|
142
|
+
"""
|
143
|
+
self._ak = ak
|
144
|
+
|
145
|
+
@property
|
146
|
+
def sk(self):
|
147
|
+
"""Gets the sk of this ReplayConfigInfo.
|
148
|
+
|
149
|
+
其他云SK信息。
|
150
|
+
|
151
|
+
:return: The sk of this ReplayConfigInfo.
|
152
|
+
:rtype: str
|
153
|
+
"""
|
154
|
+
return self._sk
|
155
|
+
|
156
|
+
@sk.setter
|
157
|
+
def sk(self, sk):
|
158
|
+
"""Sets the sk of this ReplayConfigInfo.
|
159
|
+
|
160
|
+
其他云SK信息。
|
161
|
+
|
162
|
+
:param sk: The sk of this ReplayConfigInfo.
|
163
|
+
:type sk: str
|
164
|
+
"""
|
165
|
+
self._sk = sk
|
166
|
+
|
167
|
+
@property
|
168
|
+
def db_source(self):
|
169
|
+
"""Gets the db_source of this ReplayConfigInfo.
|
170
|
+
|
171
|
+
源数据库来源。取值: - aws_aurora_mysql:Amazon Aurora MySQL。 - tencent_tdsql_c:腾讯云TDSQL-C MySQL。 - ali_rds_mysql:阿里云RDS MySQL。
|
172
|
+
|
173
|
+
:return: The db_source of this ReplayConfigInfo.
|
174
|
+
:rtype: str
|
175
|
+
"""
|
176
|
+
return self._db_source
|
177
|
+
|
178
|
+
@db_source.setter
|
179
|
+
def db_source(self, db_source):
|
180
|
+
"""Sets the db_source of this ReplayConfigInfo.
|
181
|
+
|
182
|
+
源数据库来源。取值: - aws_aurora_mysql:Amazon Aurora MySQL。 - tencent_tdsql_c:腾讯云TDSQL-C MySQL。 - ali_rds_mysql:阿里云RDS MySQL。
|
183
|
+
|
184
|
+
:param db_source: The db_source of this ReplayConfigInfo.
|
185
|
+
:type db_source: str
|
186
|
+
"""
|
187
|
+
self._db_source = db_source
|
188
|
+
|
189
|
+
@property
|
190
|
+
def region(self):
|
191
|
+
"""Gets the region of this ReplayConfigInfo.
|
192
|
+
|
193
|
+
其他云Region名称。
|
194
|
+
|
195
|
+
:return: The region of this ReplayConfigInfo.
|
196
|
+
:rtype: str
|
197
|
+
"""
|
198
|
+
return self._region
|
199
|
+
|
200
|
+
@region.setter
|
201
|
+
def region(self, region):
|
202
|
+
"""Sets the region of this ReplayConfigInfo.
|
203
|
+
|
204
|
+
其他云Region名称。
|
205
|
+
|
206
|
+
:param region: The region of this ReplayConfigInfo.
|
207
|
+
:type region: str
|
208
|
+
"""
|
209
|
+
self._region = region
|
210
|
+
|
211
|
+
@property
|
212
|
+
def traffic_source(self):
|
213
|
+
"""Gets the traffic_source of this ReplayConfigInfo.
|
214
|
+
|
215
|
+
流量文件来源。 - sdk:通过三方云API接口方式下载审计日志。
|
216
|
+
|
217
|
+
:return: The traffic_source of this ReplayConfigInfo.
|
218
|
+
:rtype: str
|
219
|
+
"""
|
220
|
+
return self._traffic_source
|
221
|
+
|
222
|
+
@traffic_source.setter
|
223
|
+
def traffic_source(self, traffic_source):
|
224
|
+
"""Sets the traffic_source of this ReplayConfigInfo.
|
225
|
+
|
226
|
+
流量文件来源。 - sdk:通过三方云API接口方式下载审计日志。
|
227
|
+
|
228
|
+
:param traffic_source: The traffic_source of this ReplayConfigInfo.
|
229
|
+
:type traffic_source: str
|
230
|
+
"""
|
231
|
+
self._traffic_source = traffic_source
|
232
|
+
|
233
|
+
def to_dict(self):
|
234
|
+
"""Returns the model properties as a dict"""
|
235
|
+
result = {}
|
236
|
+
|
237
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
238
|
+
value = getattr(self, attr)
|
239
|
+
if isinstance(value, list):
|
240
|
+
result[attr] = list(map(
|
241
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
242
|
+
value
|
243
|
+
))
|
244
|
+
elif hasattr(value, "to_dict"):
|
245
|
+
result[attr] = value.to_dict()
|
246
|
+
elif isinstance(value, dict):
|
247
|
+
result[attr] = dict(map(
|
248
|
+
lambda item: (item[0], item[1].to_dict())
|
249
|
+
if hasattr(item[1], "to_dict") else item,
|
250
|
+
value.items()
|
251
|
+
))
|
252
|
+
else:
|
253
|
+
if attr in self.sensitive_list:
|
254
|
+
result[attr] = "****"
|
255
|
+
else:
|
256
|
+
result[attr] = value
|
257
|
+
|
258
|
+
return result
|
259
|
+
|
260
|
+
def to_str(self):
|
261
|
+
"""Returns the string representation of the model"""
|
262
|
+
import simplejson as json
|
263
|
+
if six.PY2:
|
264
|
+
import sys
|
265
|
+
reload(sys)
|
266
|
+
sys.setdefaultencoding("utf-8")
|
267
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
268
|
+
|
269
|
+
def __repr__(self):
|
270
|
+
"""For `print`"""
|
271
|
+
return self.to_str()
|
272
|
+
|
273
|
+
def __eq__(self, other):
|
274
|
+
"""Returns true if both objects are equal"""
|
275
|
+
if not isinstance(other, ReplayConfigInfo):
|
276
|
+
return False
|
277
|
+
|
278
|
+
return self.__dict__ == other.__dict__
|
279
|
+
|
280
|
+
def __ne__(self, other):
|
281
|
+
"""Returns true if both objects are not equal"""
|
282
|
+
return not self == other
|
@@ -52,7 +52,7 @@ class ShowComparePolicyResponse(SdkResponse):
|
|
52
52
|
:type begin_time: str
|
53
53
|
:param end_time: 对比结束时间。
|
54
54
|
:type end_time: str
|
55
|
-
:param compare_type:
|
55
|
+
:param compare_type: 对比类型: - object_comparison:对象对比。 - lines:行对比。 - account:用户对比。
|
56
56
|
:type compare_type: list[str]
|
57
57
|
:param next_compare_time: 下次对比时间,UTC时间,例如:2023-06-12T08:00:00Z
|
58
58
|
:type next_compare_time: str
|
@@ -183,7 +183,7 @@ class ShowComparePolicyResponse(SdkResponse):
|
|
183
183
|
def compare_type(self):
|
184
184
|
"""Gets the compare_type of this ShowComparePolicyResponse.
|
185
185
|
|
186
|
-
|
186
|
+
对比类型: - object_comparison:对象对比。 - lines:行对比。 - account:用户对比。
|
187
187
|
|
188
188
|
:return: The compare_type of this ShowComparePolicyResponse.
|
189
189
|
:rtype: list[str]
|
@@ -194,7 +194,7 @@ class ShowComparePolicyResponse(SdkResponse):
|
|
194
194
|
def compare_type(self, compare_type):
|
195
195
|
"""Sets the compare_type of this ShowComparePolicyResponse.
|
196
196
|
|
197
|
-
|
197
|
+
对比类型: - object_comparison:对象对比。 - lines:行对比。 - account:用户对比。
|
198
198
|
|
199
199
|
:param compare_type: The compare_type of this ShowComparePolicyResponse.
|
200
200
|
:type compare_type: list[str]
|
@@ -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 ShowHealthCompareJobDetailRequest:
|
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
|
+
"""ShowHealthCompareJobDetailRequest
|
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 ShowHealthCompareJobDetailRequest.
|
59
|
+
|
60
|
+
请求语言类型。
|
61
|
+
|
62
|
+
:return: The x_language of this ShowHealthCompareJobDetailRequest.
|
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 ShowHealthCompareJobDetailRequest.
|
70
|
+
|
71
|
+
请求语言类型。
|
72
|
+
|
73
|
+
:param x_language: The x_language of this ShowHealthCompareJobDetailRequest.
|
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 ShowHealthCompareJobDetailRequest.
|
81
|
+
|
82
|
+
任务ID。
|
83
|
+
|
84
|
+
:return: The job_id of this ShowHealthCompareJobDetailRequest.
|
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 ShowHealthCompareJobDetailRequest.
|
92
|
+
|
93
|
+
任务ID。
|
94
|
+
|
95
|
+
:param job_id: The job_id of this ShowHealthCompareJobDetailRequest.
|
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 ShowHealthCompareJobDetailRequest.
|
103
|
+
|
104
|
+
对比任务ID。
|
105
|
+
|
106
|
+
:return: The compare_job_id of this ShowHealthCompareJobDetailRequest.
|
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 ShowHealthCompareJobDetailRequest.
|
114
|
+
|
115
|
+
对比任务ID。
|
116
|
+
|
117
|
+
:param compare_job_id: The compare_job_id of this ShowHealthCompareJobDetailRequest.
|
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, ShowHealthCompareJobDetailRequest):
|
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
|