huaweicloudsdkdrs 3.1.89__py2.py3-none-any.whl → 3.1.91__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 (54) hide show
  1. huaweicloudsdkdrs/v3/__init__.py +26 -0
  2. huaweicloudsdkdrs/v3/drs_async_client.py +589 -1
  3. huaweicloudsdkdrs/v3/drs_client.py +589 -1
  4. huaweicloudsdkdrs/v3/model/__init__.py +26 -0
  5. huaweicloudsdkdrs/v3/model/add_data_transformation_req.py +138 -0
  6. huaweicloudsdkdrs/v3/model/api_http_null_resp.py +84 -0
  7. huaweicloudsdkdrs/v3/model/compare_job_info.py +376 -0
  8. huaweicloudsdkdrs/v3/model/create_data_compare_database_object.py +115 -0
  9. huaweicloudsdkdrs/v3/model/create_data_compare_transformation_info.py +142 -0
  10. huaweicloudsdkdrs/v3/model/create_data_level_table_compare_job_req.py +346 -0
  11. huaweicloudsdkdrs/v3/model/create_data_level_table_compare_job_request.py +168 -0
  12. huaweicloudsdkdrs/v3/model/create_data_level_table_compare_job_response.py +116 -0
  13. huaweicloudsdkdrs/v3/model/data_compare_overview_info.py +173 -0
  14. huaweicloudsdkdrs/v3/model/delete_compare_job_request.py +171 -0
  15. huaweicloudsdkdrs/v3/model/delete_compare_job_response.py +116 -0
  16. huaweicloudsdkdrs/v3/model/list_content_compare_detail_request.py +316 -0
  17. huaweicloudsdkdrs/v3/model/list_content_compare_detail_response.py +145 -0
  18. huaweicloudsdkdrs/v3/model/list_content_compare_overview_request.py +229 -0
  19. huaweicloudsdkdrs/v3/model/list_content_compare_overview_response.py +145 -0
  20. huaweicloudsdkdrs/v3/model/list_data_compare_detail_request.py +374 -0
  21. huaweicloudsdkdrs/v3/model/list_data_compare_detail_response.py +145 -0
  22. huaweicloudsdkdrs/v3/model/list_data_compare_overview_request.py +258 -0
  23. huaweicloudsdkdrs/v3/model/list_data_compare_overview_response.py +145 -0
  24. huaweicloudsdkdrs/v3/model/list_data_level_table_compare_jobs_request.py +201 -0
  25. huaweicloudsdkdrs/v3/model/list_data_level_table_compare_jobs_response.py +145 -0
  26. huaweicloudsdkdrs/v3/model/node_content_compare_detail_result.py +405 -0
  27. huaweicloudsdkdrs/v3/model/node_content_compare_overview_result.py +173 -0
  28. huaweicloudsdkdrs/v3/model/start_promptly_data_level_table_compare_job_request.py +171 -0
  29. huaweicloudsdkdrs/v3/model/start_promptly_data_level_table_compare_job_response.py +116 -0
  30. huaweicloudsdkdrs/v3/model/table_line_compare_result_info.py +289 -0
  31. huaweicloudsdkdrs/v5/__init__.py +10 -0
  32. huaweicloudsdkdrs/v5/drs_async_client.py +154 -0
  33. huaweicloudsdkdrs/v5/drs_client.py +154 -0
  34. huaweicloudsdkdrs/v5/model/__init__.py +10 -0
  35. huaweicloudsdkdrs/v5/model/action_req.py +3 -3
  36. huaweicloudsdkdrs/v5/model/compare_task_params.py +32 -3
  37. huaweicloudsdkdrs/v5/model/data_process_info.py +32 -3
  38. huaweicloudsdkdrs/v5/model/db_object_filtering_result.py +148 -3
  39. huaweicloudsdkdrs/v5/model/lists_agency_permissions_request.py +201 -0
  40. huaweicloudsdkdrs/v5/model/lists_agency_permissions_response.py +145 -0
  41. huaweicloudsdkdrs/v5/model/replay_error_sql_resp.py +173 -0
  42. huaweicloudsdkdrs/v5/model/replay_error_sql_template_resp.py +260 -0
  43. huaweicloudsdkdrs/v5/model/replay_shard_statics_resp.py +226 -0
  44. huaweicloudsdkdrs/v5/model/replay_slow_sql_resp.py +202 -0
  45. huaweicloudsdkdrs/v5/model/replay_slow_sql_template_resp.py +373 -0
  46. huaweicloudsdkdrs/v5/model/replaying_sql_resp.py +318 -0
  47. huaweicloudsdkdrs/v5/model/show_position_result_response.py +3 -3
  48. huaweicloudsdkdrs/v5/model/show_replay_results_request.py +374 -0
  49. huaweicloudsdkdrs/v5/model/show_replay_results_response.py +290 -0
  50. {huaweicloudsdkdrs-3.1.89.dist-info → huaweicloudsdkdrs-3.1.91.dist-info}/METADATA +2 -2
  51. {huaweicloudsdkdrs-3.1.89.dist-info → huaweicloudsdkdrs-3.1.91.dist-info}/RECORD +54 -18
  52. {huaweicloudsdkdrs-3.1.89.dist-info → huaweicloudsdkdrs-3.1.91.dist-info}/LICENSE +0 -0
  53. {huaweicloudsdkdrs-3.1.89.dist-info → huaweicloudsdkdrs-3.1.91.dist-info}/WHEEL +0 -0
  54. {huaweicloudsdkdrs-3.1.89.dist-info → huaweicloudsdkdrs-3.1.91.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,168 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class CreateDataLevelTableCompareJobRequest:
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
+ 'body': 'CreateDataLevelTableCompareJobReq'
23
+ }
24
+
25
+ attribute_map = {
26
+ 'x_language': 'X-Language',
27
+ 'job_id': 'job_id',
28
+ 'body': 'body'
29
+ }
30
+
31
+ def __init__(self, x_language=None, job_id=None, body=None):
32
+ """CreateDataLevelTableCompareJobRequest
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 body: Body of the CreateDataLevelTableCompareJobRequest
41
+ :type body: :class:`huaweicloudsdkdrs.v3.CreateDataLevelTableCompareJobReq`
42
+ """
43
+
44
+
45
+
46
+ self._x_language = None
47
+ self._job_id = None
48
+ self._body = 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
+ if body is not None:
55
+ self.body = body
56
+
57
+ @property
58
+ def x_language(self):
59
+ """Gets the x_language of this CreateDataLevelTableCompareJobRequest.
60
+
61
+ 请求语言类型。
62
+
63
+ :return: The x_language of this CreateDataLevelTableCompareJobRequest.
64
+ :rtype: str
65
+ """
66
+ return self._x_language
67
+
68
+ @x_language.setter
69
+ def x_language(self, x_language):
70
+ """Sets the x_language of this CreateDataLevelTableCompareJobRequest.
71
+
72
+ 请求语言类型。
73
+
74
+ :param x_language: The x_language of this CreateDataLevelTableCompareJobRequest.
75
+ :type x_language: str
76
+ """
77
+ self._x_language = x_language
78
+
79
+ @property
80
+ def job_id(self):
81
+ """Gets the job_id of this CreateDataLevelTableCompareJobRequest.
82
+
83
+ 任务ID。
84
+
85
+ :return: The job_id of this CreateDataLevelTableCompareJobRequest.
86
+ :rtype: str
87
+ """
88
+ return self._job_id
89
+
90
+ @job_id.setter
91
+ def job_id(self, job_id):
92
+ """Sets the job_id of this CreateDataLevelTableCompareJobRequest.
93
+
94
+ 任务ID。
95
+
96
+ :param job_id: The job_id of this CreateDataLevelTableCompareJobRequest.
97
+ :type job_id: str
98
+ """
99
+ self._job_id = job_id
100
+
101
+ @property
102
+ def body(self):
103
+ """Gets the body of this CreateDataLevelTableCompareJobRequest.
104
+
105
+ :return: The body of this CreateDataLevelTableCompareJobRequest.
106
+ :rtype: :class:`huaweicloudsdkdrs.v3.CreateDataLevelTableCompareJobReq`
107
+ """
108
+ return self._body
109
+
110
+ @body.setter
111
+ def body(self, body):
112
+ """Sets the body of this CreateDataLevelTableCompareJobRequest.
113
+
114
+ :param body: The body of this CreateDataLevelTableCompareJobRequest.
115
+ :type body: :class:`huaweicloudsdkdrs.v3.CreateDataLevelTableCompareJobReq`
116
+ """
117
+ self._body = body
118
+
119
+ def to_dict(self):
120
+ """Returns the model properties as a dict"""
121
+ result = {}
122
+
123
+ for attr, _ in six.iteritems(self.openapi_types):
124
+ value = getattr(self, attr)
125
+ if isinstance(value, list):
126
+ result[attr] = list(map(
127
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
128
+ value
129
+ ))
130
+ elif hasattr(value, "to_dict"):
131
+ result[attr] = value.to_dict()
132
+ elif isinstance(value, dict):
133
+ result[attr] = dict(map(
134
+ lambda item: (item[0], item[1].to_dict())
135
+ if hasattr(item[1], "to_dict") else item,
136
+ value.items()
137
+ ))
138
+ else:
139
+ if attr in self.sensitive_list:
140
+ result[attr] = "****"
141
+ else:
142
+ result[attr] = value
143
+
144
+ return result
145
+
146
+ def to_str(self):
147
+ """Returns the string representation of the model"""
148
+ import simplejson as json
149
+ if six.PY2:
150
+ import sys
151
+ reload(sys)
152
+ sys.setdefaultencoding("utf-8")
153
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
154
+
155
+ def __repr__(self):
156
+ """For `print`"""
157
+ return self.to_str()
158
+
159
+ def __eq__(self, other):
160
+ """Returns true if both objects are equal"""
161
+ if not isinstance(other, CreateDataLevelTableCompareJobRequest):
162
+ return False
163
+
164
+ return self.__dict__ == other.__dict__
165
+
166
+ def __ne__(self, other):
167
+ """Returns true if both objects are not equal"""
168
+ 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 CreateDataLevelTableCompareJobResponse(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
+ }
23
+
24
+ attribute_map = {
25
+ 'id': 'id'
26
+ }
27
+
28
+ def __init__(self, id=None):
29
+ """CreateDataLevelTableCompareJobResponse
30
+
31
+ The model defined in huaweicloud sdk
32
+
33
+ :param id: 对比任务ID
34
+ :type id: str
35
+ """
36
+
37
+ super(CreateDataLevelTableCompareJobResponse, self).__init__()
38
+
39
+ self._id = None
40
+ self.discriminator = None
41
+
42
+ if id is not None:
43
+ self.id = id
44
+
45
+ @property
46
+ def id(self):
47
+ """Gets the id of this CreateDataLevelTableCompareJobResponse.
48
+
49
+ 对比任务ID
50
+
51
+ :return: The id of this CreateDataLevelTableCompareJobResponse.
52
+ :rtype: str
53
+ """
54
+ return self._id
55
+
56
+ @id.setter
57
+ def id(self, id):
58
+ """Sets the id of this CreateDataLevelTableCompareJobResponse.
59
+
60
+ 对比任务ID
61
+
62
+ :param id: The id of this CreateDataLevelTableCompareJobResponse.
63
+ :type id: str
64
+ """
65
+ self._id = id
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, CreateDataLevelTableCompareJobResponse):
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
@@ -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 DataCompareOverviewInfo:
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_db_name': 'str',
21
+ 'target_db_name': 'str',
22
+ 'status': 'int'
23
+ }
24
+
25
+ attribute_map = {
26
+ 'source_db_name': 'source_db_name',
27
+ 'target_db_name': 'target_db_name',
28
+ 'status': 'status'
29
+ }
30
+
31
+ def __init__(self, source_db_name=None, target_db_name=None, status=None):
32
+ """DataCompareOverviewInfo
33
+
34
+ The model defined in huaweicloud sdk
35
+
36
+ :param source_db_name: 源库库名
37
+ :type source_db_name: str
38
+ :param target_db_name: 目标库库名
39
+ :type target_db_name: str
40
+ :param status: 对比状态。 - 0:对比不一致 - 2:对比一致 - 3:目标库表不存在 - 4:对比失败 - 5:正在对比中 - 6:等待对比中 - 7:任务已取消 - 8:源库为空 - 9:目标库为空 - 10:源库和目标库都为空 - 11:源表不存在 - 12:目标表不存在 - 13:原表和目标表都不存在 - 14:源数据库连接失败 - 15:目标库数据库连接失败 - 16:源数据库执行SQL超时 - 17:目标数据库执行SQL超时 - 18:源数据库执行SQL错误 - 19:目标数据库执行SQL错误 - 20:源库和目标库都不存在 - 21:源库不存在 - 22:目标库不存在 - 23:行数为亿行,未进行对比 - 27:超时
41
+ :type status: int
42
+ """
43
+
44
+
45
+
46
+ self._source_db_name = None
47
+ self._target_db_name = None
48
+ self._status = None
49
+ self.discriminator = None
50
+
51
+ if source_db_name is not None:
52
+ self.source_db_name = source_db_name
53
+ if target_db_name is not None:
54
+ self.target_db_name = target_db_name
55
+ if status is not None:
56
+ self.status = status
57
+
58
+ @property
59
+ def source_db_name(self):
60
+ """Gets the source_db_name of this DataCompareOverviewInfo.
61
+
62
+ 源库库名
63
+
64
+ :return: The source_db_name of this DataCompareOverviewInfo.
65
+ :rtype: str
66
+ """
67
+ return self._source_db_name
68
+
69
+ @source_db_name.setter
70
+ def source_db_name(self, source_db_name):
71
+ """Sets the source_db_name of this DataCompareOverviewInfo.
72
+
73
+ 源库库名
74
+
75
+ :param source_db_name: The source_db_name of this DataCompareOverviewInfo.
76
+ :type source_db_name: str
77
+ """
78
+ self._source_db_name = source_db_name
79
+
80
+ @property
81
+ def target_db_name(self):
82
+ """Gets the target_db_name of this DataCompareOverviewInfo.
83
+
84
+ 目标库库名
85
+
86
+ :return: The target_db_name of this DataCompareOverviewInfo.
87
+ :rtype: str
88
+ """
89
+ return self._target_db_name
90
+
91
+ @target_db_name.setter
92
+ def target_db_name(self, target_db_name):
93
+ """Sets the target_db_name of this DataCompareOverviewInfo.
94
+
95
+ 目标库库名
96
+
97
+ :param target_db_name: The target_db_name of this DataCompareOverviewInfo.
98
+ :type target_db_name: str
99
+ """
100
+ self._target_db_name = target_db_name
101
+
102
+ @property
103
+ def status(self):
104
+ """Gets the status of this DataCompareOverviewInfo.
105
+
106
+ 对比状态。 - 0:对比不一致 - 2:对比一致 - 3:目标库表不存在 - 4:对比失败 - 5:正在对比中 - 6:等待对比中 - 7:任务已取消 - 8:源库为空 - 9:目标库为空 - 10:源库和目标库都为空 - 11:源表不存在 - 12:目标表不存在 - 13:原表和目标表都不存在 - 14:源数据库连接失败 - 15:目标库数据库连接失败 - 16:源数据库执行SQL超时 - 17:目标数据库执行SQL超时 - 18:源数据库执行SQL错误 - 19:目标数据库执行SQL错误 - 20:源库和目标库都不存在 - 21:源库不存在 - 22:目标库不存在 - 23:行数为亿行,未进行对比 - 27:超时
107
+
108
+ :return: The status of this DataCompareOverviewInfo.
109
+ :rtype: int
110
+ """
111
+ return self._status
112
+
113
+ @status.setter
114
+ def status(self, status):
115
+ """Sets the status of this DataCompareOverviewInfo.
116
+
117
+ 对比状态。 - 0:对比不一致 - 2:对比一致 - 3:目标库表不存在 - 4:对比失败 - 5:正在对比中 - 6:等待对比中 - 7:任务已取消 - 8:源库为空 - 9:目标库为空 - 10:源库和目标库都为空 - 11:源表不存在 - 12:目标表不存在 - 13:原表和目标表都不存在 - 14:源数据库连接失败 - 15:目标库数据库连接失败 - 16:源数据库执行SQL超时 - 17:目标数据库执行SQL超时 - 18:源数据库执行SQL错误 - 19:目标数据库执行SQL错误 - 20:源库和目标库都不存在 - 21:源库不存在 - 22:目标库不存在 - 23:行数为亿行,未进行对比 - 27:超时
118
+
119
+ :param status: The status of this DataCompareOverviewInfo.
120
+ :type status: int
121
+ """
122
+ self._status = status
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, DataCompareOverviewInfo):
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,171 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class DeleteCompareJobRequest:
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
+ """DeleteCompareJobRequest
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 DeleteCompareJobRequest.
59
+
60
+ 请求语言类型。
61
+
62
+ :return: The x_language of this DeleteCompareJobRequest.
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 DeleteCompareJobRequest.
70
+
71
+ 请求语言类型。
72
+
73
+ :param x_language: The x_language of this DeleteCompareJobRequest.
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 DeleteCompareJobRequest.
81
+
82
+ 任务ID。
83
+
84
+ :return: The job_id of this DeleteCompareJobRequest.
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 DeleteCompareJobRequest.
92
+
93
+ 任务ID。
94
+
95
+ :param job_id: The job_id of this DeleteCompareJobRequest.
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 DeleteCompareJobRequest.
103
+
104
+ 对比任务ID。
105
+
106
+ :return: The compare_job_id of this DeleteCompareJobRequest.
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 DeleteCompareJobRequest.
114
+
115
+ 对比任务ID。
116
+
117
+ :param compare_job_id: The compare_job_id of this DeleteCompareJobRequest.
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, DeleteCompareJobRequest):
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