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,115 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class CreateDataCompareDatabaseObject:
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
+ 'id': 'str'
21
+ }
22
+
23
+ attribute_map = {
24
+ 'id': 'id'
25
+ }
26
+
27
+ def __init__(self, id=None):
28
+ """CreateDataCompareDatabaseObject
29
+
30
+ The model defined in huaweicloud sdk
31
+
32
+ :param id: 两层数据库场景: 数据库名称和数据库表名称,例如格式为t_auto_db-*-*-users,其中t_auto_db为数据库名称,users为表名称。 三层数据库场景: 数据库名称、数据库schema名称、数据库表名称,例如格式为t_auto_db-*-*-schema1-*-*-users,其中t_auto_db为数据库名称,schema1为数据库schema名称,users为表名称。
33
+ :type id: str
34
+ """
35
+
36
+
37
+
38
+ self._id = None
39
+ self.discriminator = None
40
+
41
+ if id is not None:
42
+ self.id = id
43
+
44
+ @property
45
+ def id(self):
46
+ """Gets the id of this CreateDataCompareDatabaseObject.
47
+
48
+ 两层数据库场景: 数据库名称和数据库表名称,例如格式为t_auto_db-*-*-users,其中t_auto_db为数据库名称,users为表名称。 三层数据库场景: 数据库名称、数据库schema名称、数据库表名称,例如格式为t_auto_db-*-*-schema1-*-*-users,其中t_auto_db为数据库名称,schema1为数据库schema名称,users为表名称。
49
+
50
+ :return: The id of this CreateDataCompareDatabaseObject.
51
+ :rtype: str
52
+ """
53
+ return self._id
54
+
55
+ @id.setter
56
+ def id(self, id):
57
+ """Sets the id of this CreateDataCompareDatabaseObject.
58
+
59
+ 两层数据库场景: 数据库名称和数据库表名称,例如格式为t_auto_db-*-*-users,其中t_auto_db为数据库名称,users为表名称。 三层数据库场景: 数据库名称、数据库schema名称、数据库表名称,例如格式为t_auto_db-*-*-schema1-*-*-users,其中t_auto_db为数据库名称,schema1为数据库schema名称,users为表名称。
60
+
61
+ :param id: The id of this CreateDataCompareDatabaseObject.
62
+ :type id: str
63
+ """
64
+ self._id = id
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, CreateDataCompareDatabaseObject):
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
@@ -0,0 +1,142 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class CreateDataCompareTransformationInfo:
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
+ 'transformation_type': 'str',
21
+ 'value': 'str'
22
+ }
23
+
24
+ attribute_map = {
25
+ 'transformation_type': 'transformation_type',
26
+ 'value': 'value'
27
+ }
28
+
29
+ def __init__(self, transformation_type=None, value=None):
30
+ """CreateDataCompareTransformationInfo
31
+
32
+ The model defined in huaweicloud sdk
33
+
34
+ :param transformation_type: 加工规则,值为contentConditionalFilter。
35
+ :type transformation_type: str
36
+ :param value: 过滤条件,值为sql条件语句,例如id>100,长度限制256。
37
+ :type value: str
38
+ """
39
+
40
+
41
+
42
+ self._transformation_type = None
43
+ self._value = None
44
+ self.discriminator = None
45
+
46
+ self.transformation_type = transformation_type
47
+ self.value = value
48
+
49
+ @property
50
+ def transformation_type(self):
51
+ """Gets the transformation_type of this CreateDataCompareTransformationInfo.
52
+
53
+ 加工规则,值为contentConditionalFilter。
54
+
55
+ :return: The transformation_type of this CreateDataCompareTransformationInfo.
56
+ :rtype: str
57
+ """
58
+ return self._transformation_type
59
+
60
+ @transformation_type.setter
61
+ def transformation_type(self, transformation_type):
62
+ """Sets the transformation_type of this CreateDataCompareTransformationInfo.
63
+
64
+ 加工规则,值为contentConditionalFilter。
65
+
66
+ :param transformation_type: The transformation_type of this CreateDataCompareTransformationInfo.
67
+ :type transformation_type: str
68
+ """
69
+ self._transformation_type = transformation_type
70
+
71
+ @property
72
+ def value(self):
73
+ """Gets the value of this CreateDataCompareTransformationInfo.
74
+
75
+ 过滤条件,值为sql条件语句,例如id>100,长度限制256。
76
+
77
+ :return: The value of this CreateDataCompareTransformationInfo.
78
+ :rtype: str
79
+ """
80
+ return self._value
81
+
82
+ @value.setter
83
+ def value(self, value):
84
+ """Sets the value of this CreateDataCompareTransformationInfo.
85
+
86
+ 过滤条件,值为sql条件语句,例如id>100,长度限制256。
87
+
88
+ :param value: The value of this CreateDataCompareTransformationInfo.
89
+ :type value: str
90
+ """
91
+ self._value = value
92
+
93
+ def to_dict(self):
94
+ """Returns the model properties as a dict"""
95
+ result = {}
96
+
97
+ for attr, _ in six.iteritems(self.openapi_types):
98
+ value = getattr(self, attr)
99
+ if isinstance(value, list):
100
+ result[attr] = list(map(
101
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
102
+ value
103
+ ))
104
+ elif hasattr(value, "to_dict"):
105
+ result[attr] = value.to_dict()
106
+ elif isinstance(value, dict):
107
+ result[attr] = dict(map(
108
+ lambda item: (item[0], item[1].to_dict())
109
+ if hasattr(item[1], "to_dict") else item,
110
+ value.items()
111
+ ))
112
+ else:
113
+ if attr in self.sensitive_list:
114
+ result[attr] = "****"
115
+ else:
116
+ result[attr] = value
117
+
118
+ return result
119
+
120
+ def to_str(self):
121
+ """Returns the string representation of the model"""
122
+ import simplejson as json
123
+ if six.PY2:
124
+ import sys
125
+ reload(sys)
126
+ sys.setdefaultencoding("utf-8")
127
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
128
+
129
+ def __repr__(self):
130
+ """For `print`"""
131
+ return self.to_str()
132
+
133
+ def __eq__(self, other):
134
+ """Returns true if both objects are equal"""
135
+ if not isinstance(other, CreateDataCompareTransformationInfo):
136
+ return False
137
+
138
+ return self.__dict__ == other.__dict__
139
+
140
+ def __ne__(self, other):
141
+ """Returns true if both objects are not equal"""
142
+ return not self == other
@@ -0,0 +1,346 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class CreateDataLevelTableCompareJobReq:
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
+ 'type': 'str',
21
+ 'start_time': 'str',
22
+ 'compare_mode': 'str',
23
+ 'compare_object': 'list[CompareObjectInfo]',
24
+ 'options': 'dict(str, str)',
25
+ 'compare_object_with_token': 'list[CompareObjectInfoWithToken]',
26
+ 'compare_task_num': 'int',
27
+ 'compare_transformation_infos': 'list[AddDataTransformationReq]',
28
+ 'proportion_value': 'float'
29
+ }
30
+
31
+ attribute_map = {
32
+ 'type': 'type',
33
+ 'start_time': 'start_time',
34
+ 'compare_mode': 'compare_mode',
35
+ 'compare_object': 'compare_object',
36
+ 'options': 'options',
37
+ 'compare_object_with_token': 'compare_object_with_token',
38
+ 'compare_task_num': 'compare_task_num',
39
+ 'compare_transformation_infos': 'compare_transformation_infos',
40
+ 'proportion_value': 'proportion_value'
41
+ }
42
+
43
+ def __init__(self, type=None, start_time=None, compare_mode=None, compare_object=None, options=None, compare_object_with_token=None, compare_task_num=None, compare_transformation_infos=None, proportion_value=None):
44
+ """CreateDataLevelTableCompareJobReq
45
+
46
+ The model defined in huaweicloud sdk
47
+
48
+ :param type: 对比类型。 - lines:行数对比 - contents:内容对比 - random:抽样对比,当前仅支持gaussdbv5、gaussdbv5-to-postgresql、gaussdbv5ha-to-postgresql链路。
49
+ :type type: str
50
+ :param start_time: 对比任务启动时间,时间戳格式,取值为空代表立即启动。
51
+ :type start_time: str
52
+ :param compare_mode: 数据级对比模式,取值为空时需要在compare_object或者compare_object_with_token传对象信息,quick_comparison-快速对比。 取值:quick_comparison
53
+ :type compare_mode: str
54
+ :param compare_object: 数据级对比的对象。
55
+ :type compare_object: list[:class:`huaweicloudsdkdrs.v3.CompareObjectInfo`]
56
+ :param options: 对比配置项,key-value形式。 内容对比支持以下配置项: - 对比方式配置,key:contentCompareType,value:dynamic表示动态对比,static表示静态对比。 - lob字段对比类型配置,key:lobCompare,value:ignore表示忽略,length表示长度对比。 行数对比支持以下配置项: - 对比策略配置,多表归一情况下适用,key:comparePolicy,value:normal表示正常对比,manyToOne表示多对一对比。
57
+ :type options: dict(str, str)
58
+ :param compare_object_with_token: 数据级对比的对象(Cassandra灾备专用,带token信息)。
59
+ :type compare_object_with_token: list[:class:`huaweicloudsdkdrs.v3.CompareObjectInfoWithToken`]
60
+ :param compare_task_num: 对比任务线程数量,当前仅cloudDataGuard-cassandra和cloudDataGuard-gausscassandra-to-gausscassandra链路支持。
61
+ :type compare_task_num: int
62
+ :param compare_transformation_infos: 过滤数据信息。
63
+ :type compare_transformation_infos: list[:class:`huaweicloudsdkdrs.v3.AddDataTransformationReq`]
64
+ :param proportion_value: 抽样比例,对比类型为抽样对比时填写。
65
+ :type proportion_value: float
66
+ """
67
+
68
+
69
+
70
+ self._type = None
71
+ self._start_time = None
72
+ self._compare_mode = None
73
+ self._compare_object = None
74
+ self._options = None
75
+ self._compare_object_with_token = None
76
+ self._compare_task_num = None
77
+ self._compare_transformation_infos = None
78
+ self._proportion_value = None
79
+ self.discriminator = None
80
+
81
+ self.type = type
82
+ if start_time is not None:
83
+ self.start_time = start_time
84
+ if compare_mode is not None:
85
+ self.compare_mode = compare_mode
86
+ if compare_object is not None:
87
+ self.compare_object = compare_object
88
+ if options is not None:
89
+ self.options = options
90
+ if compare_object_with_token is not None:
91
+ self.compare_object_with_token = compare_object_with_token
92
+ if compare_task_num is not None:
93
+ self.compare_task_num = compare_task_num
94
+ if compare_transformation_infos is not None:
95
+ self.compare_transformation_infos = compare_transformation_infos
96
+ if proportion_value is not None:
97
+ self.proportion_value = proportion_value
98
+
99
+ @property
100
+ def type(self):
101
+ """Gets the type of this CreateDataLevelTableCompareJobReq.
102
+
103
+ 对比类型。 - lines:行数对比 - contents:内容对比 - random:抽样对比,当前仅支持gaussdbv5、gaussdbv5-to-postgresql、gaussdbv5ha-to-postgresql链路。
104
+
105
+ :return: The type of this CreateDataLevelTableCompareJobReq.
106
+ :rtype: str
107
+ """
108
+ return self._type
109
+
110
+ @type.setter
111
+ def type(self, type):
112
+ """Sets the type of this CreateDataLevelTableCompareJobReq.
113
+
114
+ 对比类型。 - lines:行数对比 - contents:内容对比 - random:抽样对比,当前仅支持gaussdbv5、gaussdbv5-to-postgresql、gaussdbv5ha-to-postgresql链路。
115
+
116
+ :param type: The type of this CreateDataLevelTableCompareJobReq.
117
+ :type type: str
118
+ """
119
+ self._type = type
120
+
121
+ @property
122
+ def start_time(self):
123
+ """Gets the start_time of this CreateDataLevelTableCompareJobReq.
124
+
125
+ 对比任务启动时间,时间戳格式,取值为空代表立即启动。
126
+
127
+ :return: The start_time of this CreateDataLevelTableCompareJobReq.
128
+ :rtype: str
129
+ """
130
+ return self._start_time
131
+
132
+ @start_time.setter
133
+ def start_time(self, start_time):
134
+ """Sets the start_time of this CreateDataLevelTableCompareJobReq.
135
+
136
+ 对比任务启动时间,时间戳格式,取值为空代表立即启动。
137
+
138
+ :param start_time: The start_time of this CreateDataLevelTableCompareJobReq.
139
+ :type start_time: str
140
+ """
141
+ self._start_time = start_time
142
+
143
+ @property
144
+ def compare_mode(self):
145
+ """Gets the compare_mode of this CreateDataLevelTableCompareJobReq.
146
+
147
+ 数据级对比模式,取值为空时需要在compare_object或者compare_object_with_token传对象信息,quick_comparison-快速对比。 取值:quick_comparison
148
+
149
+ :return: The compare_mode of this CreateDataLevelTableCompareJobReq.
150
+ :rtype: str
151
+ """
152
+ return self._compare_mode
153
+
154
+ @compare_mode.setter
155
+ def compare_mode(self, compare_mode):
156
+ """Sets the compare_mode of this CreateDataLevelTableCompareJobReq.
157
+
158
+ 数据级对比模式,取值为空时需要在compare_object或者compare_object_with_token传对象信息,quick_comparison-快速对比。 取值:quick_comparison
159
+
160
+ :param compare_mode: The compare_mode of this CreateDataLevelTableCompareJobReq.
161
+ :type compare_mode: str
162
+ """
163
+ self._compare_mode = compare_mode
164
+
165
+ @property
166
+ def compare_object(self):
167
+ """Gets the compare_object of this CreateDataLevelTableCompareJobReq.
168
+
169
+ 数据级对比的对象。
170
+
171
+ :return: The compare_object of this CreateDataLevelTableCompareJobReq.
172
+ :rtype: list[:class:`huaweicloudsdkdrs.v3.CompareObjectInfo`]
173
+ """
174
+ return self._compare_object
175
+
176
+ @compare_object.setter
177
+ def compare_object(self, compare_object):
178
+ """Sets the compare_object of this CreateDataLevelTableCompareJobReq.
179
+
180
+ 数据级对比的对象。
181
+
182
+ :param compare_object: The compare_object of this CreateDataLevelTableCompareJobReq.
183
+ :type compare_object: list[:class:`huaweicloudsdkdrs.v3.CompareObjectInfo`]
184
+ """
185
+ self._compare_object = compare_object
186
+
187
+ @property
188
+ def options(self):
189
+ """Gets the options of this CreateDataLevelTableCompareJobReq.
190
+
191
+ 对比配置项,key-value形式。 内容对比支持以下配置项: - 对比方式配置,key:contentCompareType,value:dynamic表示动态对比,static表示静态对比。 - lob字段对比类型配置,key:lobCompare,value:ignore表示忽略,length表示长度对比。 行数对比支持以下配置项: - 对比策略配置,多表归一情况下适用,key:comparePolicy,value:normal表示正常对比,manyToOne表示多对一对比。
192
+
193
+ :return: The options of this CreateDataLevelTableCompareJobReq.
194
+ :rtype: dict(str, str)
195
+ """
196
+ return self._options
197
+
198
+ @options.setter
199
+ def options(self, options):
200
+ """Sets the options of this CreateDataLevelTableCompareJobReq.
201
+
202
+ 对比配置项,key-value形式。 内容对比支持以下配置项: - 对比方式配置,key:contentCompareType,value:dynamic表示动态对比,static表示静态对比。 - lob字段对比类型配置,key:lobCompare,value:ignore表示忽略,length表示长度对比。 行数对比支持以下配置项: - 对比策略配置,多表归一情况下适用,key:comparePolicy,value:normal表示正常对比,manyToOne表示多对一对比。
203
+
204
+ :param options: The options of this CreateDataLevelTableCompareJobReq.
205
+ :type options: dict(str, str)
206
+ """
207
+ self._options = options
208
+
209
+ @property
210
+ def compare_object_with_token(self):
211
+ """Gets the compare_object_with_token of this CreateDataLevelTableCompareJobReq.
212
+
213
+ 数据级对比的对象(Cassandra灾备专用,带token信息)。
214
+
215
+ :return: The compare_object_with_token of this CreateDataLevelTableCompareJobReq.
216
+ :rtype: list[:class:`huaweicloudsdkdrs.v3.CompareObjectInfoWithToken`]
217
+ """
218
+ return self._compare_object_with_token
219
+
220
+ @compare_object_with_token.setter
221
+ def compare_object_with_token(self, compare_object_with_token):
222
+ """Sets the compare_object_with_token of this CreateDataLevelTableCompareJobReq.
223
+
224
+ 数据级对比的对象(Cassandra灾备专用,带token信息)。
225
+
226
+ :param compare_object_with_token: The compare_object_with_token of this CreateDataLevelTableCompareJobReq.
227
+ :type compare_object_with_token: list[:class:`huaweicloudsdkdrs.v3.CompareObjectInfoWithToken`]
228
+ """
229
+ self._compare_object_with_token = compare_object_with_token
230
+
231
+ @property
232
+ def compare_task_num(self):
233
+ """Gets the compare_task_num of this CreateDataLevelTableCompareJobReq.
234
+
235
+ 对比任务线程数量,当前仅cloudDataGuard-cassandra和cloudDataGuard-gausscassandra-to-gausscassandra链路支持。
236
+
237
+ :return: The compare_task_num of this CreateDataLevelTableCompareJobReq.
238
+ :rtype: int
239
+ """
240
+ return self._compare_task_num
241
+
242
+ @compare_task_num.setter
243
+ def compare_task_num(self, compare_task_num):
244
+ """Sets the compare_task_num of this CreateDataLevelTableCompareJobReq.
245
+
246
+ 对比任务线程数量,当前仅cloudDataGuard-cassandra和cloudDataGuard-gausscassandra-to-gausscassandra链路支持。
247
+
248
+ :param compare_task_num: The compare_task_num of this CreateDataLevelTableCompareJobReq.
249
+ :type compare_task_num: int
250
+ """
251
+ self._compare_task_num = compare_task_num
252
+
253
+ @property
254
+ def compare_transformation_infos(self):
255
+ """Gets the compare_transformation_infos of this CreateDataLevelTableCompareJobReq.
256
+
257
+ 过滤数据信息。
258
+
259
+ :return: The compare_transformation_infos of this CreateDataLevelTableCompareJobReq.
260
+ :rtype: list[:class:`huaweicloudsdkdrs.v3.AddDataTransformationReq`]
261
+ """
262
+ return self._compare_transformation_infos
263
+
264
+ @compare_transformation_infos.setter
265
+ def compare_transformation_infos(self, compare_transformation_infos):
266
+ """Sets the compare_transformation_infos of this CreateDataLevelTableCompareJobReq.
267
+
268
+ 过滤数据信息。
269
+
270
+ :param compare_transformation_infos: The compare_transformation_infos of this CreateDataLevelTableCompareJobReq.
271
+ :type compare_transformation_infos: list[:class:`huaweicloudsdkdrs.v3.AddDataTransformationReq`]
272
+ """
273
+ self._compare_transformation_infos = compare_transformation_infos
274
+
275
+ @property
276
+ def proportion_value(self):
277
+ """Gets the proportion_value of this CreateDataLevelTableCompareJobReq.
278
+
279
+ 抽样比例,对比类型为抽样对比时填写。
280
+
281
+ :return: The proportion_value of this CreateDataLevelTableCompareJobReq.
282
+ :rtype: float
283
+ """
284
+ return self._proportion_value
285
+
286
+ @proportion_value.setter
287
+ def proportion_value(self, proportion_value):
288
+ """Sets the proportion_value of this CreateDataLevelTableCompareJobReq.
289
+
290
+ 抽样比例,对比类型为抽样对比时填写。
291
+
292
+ :param proportion_value: The proportion_value of this CreateDataLevelTableCompareJobReq.
293
+ :type proportion_value: float
294
+ """
295
+ self._proportion_value = proportion_value
296
+
297
+ def to_dict(self):
298
+ """Returns the model properties as a dict"""
299
+ result = {}
300
+
301
+ for attr, _ in six.iteritems(self.openapi_types):
302
+ value = getattr(self, attr)
303
+ if isinstance(value, list):
304
+ result[attr] = list(map(
305
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
306
+ value
307
+ ))
308
+ elif hasattr(value, "to_dict"):
309
+ result[attr] = value.to_dict()
310
+ elif isinstance(value, dict):
311
+ result[attr] = dict(map(
312
+ lambda item: (item[0], item[1].to_dict())
313
+ if hasattr(item[1], "to_dict") else item,
314
+ value.items()
315
+ ))
316
+ else:
317
+ if attr in self.sensitive_list:
318
+ result[attr] = "****"
319
+ else:
320
+ result[attr] = value
321
+
322
+ return result
323
+
324
+ def to_str(self):
325
+ """Returns the string representation of the model"""
326
+ import simplejson as json
327
+ if six.PY2:
328
+ import sys
329
+ reload(sys)
330
+ sys.setdefaultencoding("utf-8")
331
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
332
+
333
+ def __repr__(self):
334
+ """For `print`"""
335
+ return self.to_str()
336
+
337
+ def __eq__(self, other):
338
+ """Returns true if both objects are equal"""
339
+ if not isinstance(other, CreateDataLevelTableCompareJobReq):
340
+ return False
341
+
342
+ return self.__dict__ == other.__dict__
343
+
344
+ def __ne__(self, other):
345
+ """Returns true if both objects are not equal"""
346
+ return not self == other