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.
Files changed (60) hide show
  1. huaweicloudsdkdrs/v3/__init__.py +17 -0
  2. huaweicloudsdkdrs/v3/drs_async_client.py +434 -0
  3. huaweicloudsdkdrs/v3/drs_client.py +434 -0
  4. huaweicloudsdkdrs/v3/model/__init__.py +17 -0
  5. huaweicloudsdkdrs/v3/model/batch_job_action_req.py +3 -3
  6. huaweicloudsdkdrs/v3/model/compare_job_content_detail_info.py +202 -0
  7. huaweicloudsdkdrs/v3/model/create_compare_result_file_request.py +196 -0
  8. huaweicloudsdkdrs/v3/model/create_compare_result_file_response.py +116 -0
  9. huaweicloudsdkdrs/v3/model/create_object_compare_job_req.py +115 -0
  10. huaweicloudsdkdrs/v3/model/create_object_level_compare_job_request.py +168 -0
  11. huaweicloudsdkdrs/v3/model/create_object_level_compare_job_response.py +116 -0
  12. huaweicloudsdkdrs/v3/model/download_compare_result_file_request.py +255 -0
  13. huaweicloudsdkdrs/v3/model/download_compare_result_file_response.py +85 -0
  14. huaweicloudsdkdrs/v3/model/endpoint.py +28 -3
  15. huaweicloudsdkdrs/v3/model/export_compare_result_req.py +172 -0
  16. huaweicloudsdkdrs/v3/model/kafka_security.py +290 -29
  17. huaweicloudsdkdrs/v3/model/list_content_compare_detail_request.py +3 -3
  18. huaweicloudsdkdrs/v3/model/list_content_compare_difference_request.py +287 -0
  19. huaweicloudsdkdrs/v3/model/list_content_compare_difference_response.py +232 -0
  20. huaweicloudsdkdrs/v3/model/list_content_compare_overview_request.py +3 -3
  21. huaweicloudsdkdrs/v3/model/list_data_compare_detail_request.py +3 -3
  22. huaweicloudsdkdrs/v3/model/list_data_compare_overview_request.py +3 -3
  23. huaweicloudsdkdrs/v3/model/list_data_level_table_compare_jobs_request.py +3 -3
  24. huaweicloudsdkdrs/v3/model/list_obeject_level_compare_detail_request.py +258 -0
  25. huaweicloudsdkdrs/v3/model/list_obeject_level_compare_detail_response.py +145 -0
  26. huaweicloudsdkdrs/v3/model/list_obeject_level_compare_overview_request.py +143 -0
  27. huaweicloudsdkdrs/v3/model/list_obeject_level_compare_overview_response.py +319 -0
  28. huaweicloudsdkdrs/v3/model/objects_compare_detail_info.py +260 -0
  29. huaweicloudsdkdrs/v3/model/objects_compare_overview_info.py +202 -0
  30. huaweicloudsdkdrs/v5/__init__.py +11 -0
  31. huaweicloudsdkdrs/v5/drs_async_client.py +207 -0
  32. huaweicloudsdkdrs/v5/drs_client.py +207 -0
  33. huaweicloudsdkdrs/v5/model/__init__.py +11 -0
  34. huaweicloudsdkdrs/v5/model/action_params.py +28 -3
  35. huaweicloudsdkdrs/v5/model/action_req.py +3 -3
  36. huaweicloudsdkdrs/v5/model/children_job_list_resp.py +3 -3
  37. huaweicloudsdkdrs/v5/model/compare_result_info.py +28 -3
  38. huaweicloudsdkdrs/v5/model/content_compare_overview_info.py +3 -3
  39. huaweicloudsdkdrs/v5/model/content_diff_detail_info.py +231 -0
  40. huaweicloudsdkdrs/v5/model/content_diff_detail_vo.py +202 -0
  41. huaweicloudsdkdrs/v5/model/health_compare_job.py +9 -9
  42. huaweicloudsdkdrs/v5/model/job_detail_resp.py +32 -3
  43. huaweicloudsdkdrs/v5/model/job_list_resp.py +3 -3
  44. huaweicloudsdkdrs/v5/model/modify_compare_policy_req.py +288 -0
  45. huaweicloudsdkdrs/v5/model/objects_health_compare_overview_info.py +202 -0
  46. huaweicloudsdkdrs/v5/model/replay_config_info.py +282 -0
  47. huaweicloudsdkdrs/v5/model/show_compare_policy_response.py +3 -3
  48. huaweicloudsdkdrs/v5/model/show_health_compare_job_detail_request.py +171 -0
  49. huaweicloudsdkdrs/v5/model/show_health_compare_job_detail_response.py +261 -0
  50. huaweicloudsdkdrs/v5/model/show_health_object_compare_job_overview_request.py +171 -0
  51. huaweicloudsdkdrs/v5/model/show_health_object_compare_job_overview_response.py +116 -0
  52. huaweicloudsdkdrs/v5/model/show_job_detail_request.py +3 -3
  53. huaweicloudsdkdrs/v5/model/update_compare_policy_request.py +168 -0
  54. huaweicloudsdkdrs/v5/model/update_compare_policy_response.py +116 -0
  55. huaweicloudsdkdrs/v5/model/update_job_req.py +3 -3
  56. {huaweicloudsdkdrs-3.1.94.dist-info → huaweicloudsdkdrs-3.1.95.dist-info}/METADATA +2 -2
  57. {huaweicloudsdkdrs-3.1.94.dist-info → huaweicloudsdkdrs-3.1.95.dist-info}/RECORD +60 -32
  58. {huaweicloudsdkdrs-3.1.94.dist-info → huaweicloudsdkdrs-3.1.95.dist-info}/LICENSE +0 -0
  59. {huaweicloudsdkdrs-3.1.94.dist-info → huaweicloudsdkdrs-3.1.95.dist-info}/WHEEL +0 -0
  60. {huaweicloudsdkdrs-3.1.94.dist-info → huaweicloudsdkdrs-3.1.95.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 CompareJobContentDetailInfo:
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_key_value': 'list[str]',
21
+ 'target_key_value': 'list[str]',
22
+ 'select_sql': 'str',
23
+ 'target_select_sql': 'str'
24
+ }
25
+
26
+ attribute_map = {
27
+ 'source_key_value': 'source_key_value',
28
+ 'target_key_value': 'target_key_value',
29
+ 'select_sql': 'select_sql',
30
+ 'target_select_sql': 'target_select_sql'
31
+ }
32
+
33
+ def __init__(self, source_key_value=None, target_key_value=None, select_sql=None, target_select_sql=None):
34
+ """CompareJobContentDetailInfo
35
+
36
+ The model defined in huaweicloud sdk
37
+
38
+ :param source_key_value: 源库KEY值列表。
39
+ :type source_key_value: list[str]
40
+ :param target_key_value: 目标库KEY值列表。
41
+ :type target_key_value: list[str]
42
+ :param select_sql: 查询源库的SQL。
43
+ :type select_sql: str
44
+ :param target_select_sql: 查询目标库的SQL。
45
+ :type target_select_sql: str
46
+ """
47
+
48
+
49
+
50
+ self._source_key_value = None
51
+ self._target_key_value = None
52
+ self._select_sql = None
53
+ self._target_select_sql = None
54
+ self.discriminator = None
55
+
56
+ if source_key_value is not None:
57
+ self.source_key_value = source_key_value
58
+ if target_key_value is not None:
59
+ self.target_key_value = target_key_value
60
+ if select_sql is not None:
61
+ self.select_sql = select_sql
62
+ if target_select_sql is not None:
63
+ self.target_select_sql = target_select_sql
64
+
65
+ @property
66
+ def source_key_value(self):
67
+ """Gets the source_key_value of this CompareJobContentDetailInfo.
68
+
69
+ 源库KEY值列表。
70
+
71
+ :return: The source_key_value of this CompareJobContentDetailInfo.
72
+ :rtype: list[str]
73
+ """
74
+ return self._source_key_value
75
+
76
+ @source_key_value.setter
77
+ def source_key_value(self, source_key_value):
78
+ """Sets the source_key_value of this CompareJobContentDetailInfo.
79
+
80
+ 源库KEY值列表。
81
+
82
+ :param source_key_value: The source_key_value of this CompareJobContentDetailInfo.
83
+ :type source_key_value: list[str]
84
+ """
85
+ self._source_key_value = source_key_value
86
+
87
+ @property
88
+ def target_key_value(self):
89
+ """Gets the target_key_value of this CompareJobContentDetailInfo.
90
+
91
+ 目标库KEY值列表。
92
+
93
+ :return: The target_key_value of this CompareJobContentDetailInfo.
94
+ :rtype: list[str]
95
+ """
96
+ return self._target_key_value
97
+
98
+ @target_key_value.setter
99
+ def target_key_value(self, target_key_value):
100
+ """Sets the target_key_value of this CompareJobContentDetailInfo.
101
+
102
+ 目标库KEY值列表。
103
+
104
+ :param target_key_value: The target_key_value of this CompareJobContentDetailInfo.
105
+ :type target_key_value: list[str]
106
+ """
107
+ self._target_key_value = target_key_value
108
+
109
+ @property
110
+ def select_sql(self):
111
+ """Gets the select_sql of this CompareJobContentDetailInfo.
112
+
113
+ 查询源库的SQL。
114
+
115
+ :return: The select_sql of this CompareJobContentDetailInfo.
116
+ :rtype: str
117
+ """
118
+ return self._select_sql
119
+
120
+ @select_sql.setter
121
+ def select_sql(self, select_sql):
122
+ """Sets the select_sql of this CompareJobContentDetailInfo.
123
+
124
+ 查询源库的SQL。
125
+
126
+ :param select_sql: The select_sql of this CompareJobContentDetailInfo.
127
+ :type select_sql: str
128
+ """
129
+ self._select_sql = select_sql
130
+
131
+ @property
132
+ def target_select_sql(self):
133
+ """Gets the target_select_sql of this CompareJobContentDetailInfo.
134
+
135
+ 查询目标库的SQL。
136
+
137
+ :return: The target_select_sql of this CompareJobContentDetailInfo.
138
+ :rtype: str
139
+ """
140
+ return self._target_select_sql
141
+
142
+ @target_select_sql.setter
143
+ def target_select_sql(self, target_select_sql):
144
+ """Sets the target_select_sql of this CompareJobContentDetailInfo.
145
+
146
+ 查询目标库的SQL。
147
+
148
+ :param target_select_sql: The target_select_sql of this CompareJobContentDetailInfo.
149
+ :type target_select_sql: str
150
+ """
151
+ self._target_select_sql = target_select_sql
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, CompareJobContentDetailInfo):
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
@@ -0,0 +1,196 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class CreateCompareResultFileRequest:
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
+ 'region': 'str',
22
+ 'job_id': 'str',
23
+ 'body': 'ExportCompareResultReq'
24
+ }
25
+
26
+ attribute_map = {
27
+ 'x_language': 'X-Language',
28
+ 'region': 'Region',
29
+ 'job_id': 'job_id',
30
+ 'body': 'body'
31
+ }
32
+
33
+ def __init__(self, x_language=None, region=None, job_id=None, body=None):
34
+ """CreateCompareResultFileRequest
35
+
36
+ The model defined in huaweicloud sdk
37
+
38
+ :param x_language: 请求语言类型。
39
+ :type x_language: str
40
+ :param region: 区域ID,例如:cn-north-4。
41
+ :type region: str
42
+ :param job_id: 任务ID。
43
+ :type job_id: str
44
+ :param body: Body of the CreateCompareResultFileRequest
45
+ :type body: :class:`huaweicloudsdkdrs.v3.ExportCompareResultReq`
46
+ """
47
+
48
+
49
+
50
+ self._x_language = None
51
+ self._region = None
52
+ self._job_id = None
53
+ self._body = None
54
+ self.discriminator = None
55
+
56
+ if x_language is not None:
57
+ self.x_language = x_language
58
+ self.region = region
59
+ self.job_id = job_id
60
+ if body is not None:
61
+ self.body = body
62
+
63
+ @property
64
+ def x_language(self):
65
+ """Gets the x_language of this CreateCompareResultFileRequest.
66
+
67
+ 请求语言类型。
68
+
69
+ :return: The x_language of this CreateCompareResultFileRequest.
70
+ :rtype: str
71
+ """
72
+ return self._x_language
73
+
74
+ @x_language.setter
75
+ def x_language(self, x_language):
76
+ """Sets the x_language of this CreateCompareResultFileRequest.
77
+
78
+ 请求语言类型。
79
+
80
+ :param x_language: The x_language of this CreateCompareResultFileRequest.
81
+ :type x_language: str
82
+ """
83
+ self._x_language = x_language
84
+
85
+ @property
86
+ def region(self):
87
+ """Gets the region of this CreateCompareResultFileRequest.
88
+
89
+ 区域ID,例如:cn-north-4。
90
+
91
+ :return: The region of this CreateCompareResultFileRequest.
92
+ :rtype: str
93
+ """
94
+ return self._region
95
+
96
+ @region.setter
97
+ def region(self, region):
98
+ """Sets the region of this CreateCompareResultFileRequest.
99
+
100
+ 区域ID,例如:cn-north-4。
101
+
102
+ :param region: The region of this CreateCompareResultFileRequest.
103
+ :type region: str
104
+ """
105
+ self._region = region
106
+
107
+ @property
108
+ def job_id(self):
109
+ """Gets the job_id of this CreateCompareResultFileRequest.
110
+
111
+ 任务ID。
112
+
113
+ :return: The job_id of this CreateCompareResultFileRequest.
114
+ :rtype: str
115
+ """
116
+ return self._job_id
117
+
118
+ @job_id.setter
119
+ def job_id(self, job_id):
120
+ """Sets the job_id of this CreateCompareResultFileRequest.
121
+
122
+ 任务ID。
123
+
124
+ :param job_id: The job_id of this CreateCompareResultFileRequest.
125
+ :type job_id: str
126
+ """
127
+ self._job_id = job_id
128
+
129
+ @property
130
+ def body(self):
131
+ """Gets the body of this CreateCompareResultFileRequest.
132
+
133
+ :return: The body of this CreateCompareResultFileRequest.
134
+ :rtype: :class:`huaweicloudsdkdrs.v3.ExportCompareResultReq`
135
+ """
136
+ return self._body
137
+
138
+ @body.setter
139
+ def body(self, body):
140
+ """Sets the body of this CreateCompareResultFileRequest.
141
+
142
+ :param body: The body of this CreateCompareResultFileRequest.
143
+ :type body: :class:`huaweicloudsdkdrs.v3.ExportCompareResultReq`
144
+ """
145
+ self._body = body
146
+
147
+ def to_dict(self):
148
+ """Returns the model properties as a dict"""
149
+ result = {}
150
+
151
+ for attr, _ in six.iteritems(self.openapi_types):
152
+ value = getattr(self, attr)
153
+ if isinstance(value, list):
154
+ result[attr] = list(map(
155
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
156
+ value
157
+ ))
158
+ elif hasattr(value, "to_dict"):
159
+ result[attr] = value.to_dict()
160
+ elif isinstance(value, dict):
161
+ result[attr] = dict(map(
162
+ lambda item: (item[0], item[1].to_dict())
163
+ if hasattr(item[1], "to_dict") else item,
164
+ value.items()
165
+ ))
166
+ else:
167
+ if attr in self.sensitive_list:
168
+ result[attr] = "****"
169
+ else:
170
+ result[attr] = value
171
+
172
+ return result
173
+
174
+ def to_str(self):
175
+ """Returns the string representation of the model"""
176
+ import simplejson as json
177
+ if six.PY2:
178
+ import sys
179
+ reload(sys)
180
+ sys.setdefaultencoding("utf-8")
181
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
182
+
183
+ def __repr__(self):
184
+ """For `print`"""
185
+ return self.to_str()
186
+
187
+ def __eq__(self, other):
188
+ """Returns true if both objects are equal"""
189
+ if not isinstance(other, CreateCompareResultFileRequest):
190
+ return False
191
+
192
+ return self.__dict__ == other.__dict__
193
+
194
+ def __ne__(self, other):
195
+ """Returns true if both objects are not equal"""
196
+ 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 CreateCompareResultFileResponse(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
+ 'body': 'object'
22
+ }
23
+
24
+ attribute_map = {
25
+ 'body': 'body'
26
+ }
27
+
28
+ def __init__(self, body=None):
29
+ """CreateCompareResultFileResponse
30
+
31
+ The model defined in huaweicloud sdk
32
+
33
+ :param body: 空响应体。
34
+ :type body: object
35
+ """
36
+
37
+ super(CreateCompareResultFileResponse, self).__init__()
38
+
39
+ self._body = None
40
+ self.discriminator = None
41
+
42
+ if body is not None:
43
+ self.body = body
44
+
45
+ @property
46
+ def body(self):
47
+ """Gets the body of this CreateCompareResultFileResponse.
48
+
49
+ 空响应体。
50
+
51
+ :return: The body of this CreateCompareResultFileResponse.
52
+ :rtype: object
53
+ """
54
+ return self._body
55
+
56
+ @body.setter
57
+ def body(self, body):
58
+ """Sets the body of this CreateCompareResultFileResponse.
59
+
60
+ 空响应体。
61
+
62
+ :param body: The body of this CreateCompareResultFileResponse.
63
+ :type body: object
64
+ """
65
+ self._body = body
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, CreateCompareResultFileResponse):
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,115 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class CreateObjectCompareJobReq:
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
+ 'compare_task_num': 'int'
21
+ }
22
+
23
+ attribute_map = {
24
+ 'compare_task_num': 'compare_task_num'
25
+ }
26
+
27
+ def __init__(self, compare_task_num=None):
28
+ """CreateObjectCompareJobReq
29
+
30
+ The model defined in huaweicloud sdk
31
+
32
+ :param compare_task_num: 对比任务线程数量,当前仅cloudDataGuard-cassandra和cloudDataGuard-gausscassandra-to-gausscassandra链路支持。
33
+ :type compare_task_num: int
34
+ """
35
+
36
+
37
+
38
+ self._compare_task_num = None
39
+ self.discriminator = None
40
+
41
+ if compare_task_num is not None:
42
+ self.compare_task_num = compare_task_num
43
+
44
+ @property
45
+ def compare_task_num(self):
46
+ """Gets the compare_task_num of this CreateObjectCompareJobReq.
47
+
48
+ 对比任务线程数量,当前仅cloudDataGuard-cassandra和cloudDataGuard-gausscassandra-to-gausscassandra链路支持。
49
+
50
+ :return: The compare_task_num of this CreateObjectCompareJobReq.
51
+ :rtype: int
52
+ """
53
+ return self._compare_task_num
54
+
55
+ @compare_task_num.setter
56
+ def compare_task_num(self, compare_task_num):
57
+ """Sets the compare_task_num of this CreateObjectCompareJobReq.
58
+
59
+ 对比任务线程数量,当前仅cloudDataGuard-cassandra和cloudDataGuard-gausscassandra-to-gausscassandra链路支持。
60
+
61
+ :param compare_task_num: The compare_task_num of this CreateObjectCompareJobReq.
62
+ :type compare_task_num: int
63
+ """
64
+ self._compare_task_num = compare_task_num
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, CreateObjectCompareJobReq):
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