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,168 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class CreateObjectLevelCompareJobRequest:
|
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': 'CreateObjectCompareJobReq'
|
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
|
+
"""CreateObjectLevelCompareJobRequest
|
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 CreateObjectLevelCompareJobRequest
|
41
|
+
:type body: :class:`huaweicloudsdkdrs.v3.CreateObjectCompareJobReq`
|
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 CreateObjectLevelCompareJobRequest.
|
60
|
+
|
61
|
+
请求语言类型。
|
62
|
+
|
63
|
+
:return: The x_language of this CreateObjectLevelCompareJobRequest.
|
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 CreateObjectLevelCompareJobRequest.
|
71
|
+
|
72
|
+
请求语言类型。
|
73
|
+
|
74
|
+
:param x_language: The x_language of this CreateObjectLevelCompareJobRequest.
|
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 CreateObjectLevelCompareJobRequest.
|
82
|
+
|
83
|
+
任务ID。
|
84
|
+
|
85
|
+
:return: The job_id of this CreateObjectLevelCompareJobRequest.
|
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 CreateObjectLevelCompareJobRequest.
|
93
|
+
|
94
|
+
任务ID。
|
95
|
+
|
96
|
+
:param job_id: The job_id of this CreateObjectLevelCompareJobRequest.
|
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 CreateObjectLevelCompareJobRequest.
|
104
|
+
|
105
|
+
:return: The body of this CreateObjectLevelCompareJobRequest.
|
106
|
+
:rtype: :class:`huaweicloudsdkdrs.v3.CreateObjectCompareJobReq`
|
107
|
+
"""
|
108
|
+
return self._body
|
109
|
+
|
110
|
+
@body.setter
|
111
|
+
def body(self, body):
|
112
|
+
"""Sets the body of this CreateObjectLevelCompareJobRequest.
|
113
|
+
|
114
|
+
:param body: The body of this CreateObjectLevelCompareJobRequest.
|
115
|
+
:type body: :class:`huaweicloudsdkdrs.v3.CreateObjectCompareJobReq`
|
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, CreateObjectLevelCompareJobRequest):
|
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 CreateObjectLevelCompareJobResponse(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
|
+
"""CreateObjectLevelCompareJobResponse
|
30
|
+
|
31
|
+
The model defined in huaweicloud sdk
|
32
|
+
|
33
|
+
:param body: 空响应体。
|
34
|
+
:type body: object
|
35
|
+
"""
|
36
|
+
|
37
|
+
super(CreateObjectLevelCompareJobResponse, 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 CreateObjectLevelCompareJobResponse.
|
48
|
+
|
49
|
+
空响应体。
|
50
|
+
|
51
|
+
:return: The body of this CreateObjectLevelCompareJobResponse.
|
52
|
+
:rtype: object
|
53
|
+
"""
|
54
|
+
return self._body
|
55
|
+
|
56
|
+
@body.setter
|
57
|
+
def body(self, body):
|
58
|
+
"""Sets the body of this CreateObjectLevelCompareJobResponse.
|
59
|
+
|
60
|
+
空响应体。
|
61
|
+
|
62
|
+
:param body: The body of this CreateObjectLevelCompareJobResponse.
|
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, CreateObjectLevelCompareJobResponse):
|
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,255 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class DownloadCompareResultFileRequest:
|
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_type': 'str',
|
23
|
+
'compare_job_id': 'str',
|
24
|
+
'region': 'str',
|
25
|
+
'body': 'ExportCompareResultReq'
|
26
|
+
}
|
27
|
+
|
28
|
+
attribute_map = {
|
29
|
+
'x_language': 'X-Language',
|
30
|
+
'job_id': 'job_id',
|
31
|
+
'compare_type': 'compare_type',
|
32
|
+
'compare_job_id': 'compare_job_id',
|
33
|
+
'region': 'Region',
|
34
|
+
'body': 'body'
|
35
|
+
}
|
36
|
+
|
37
|
+
def __init__(self, x_language=None, job_id=None, compare_type=None, compare_job_id=None, region=None, body=None):
|
38
|
+
"""DownloadCompareResultFileRequest
|
39
|
+
|
40
|
+
The model defined in huaweicloud sdk
|
41
|
+
|
42
|
+
:param x_language: 请求语言类型。
|
43
|
+
:type x_language: str
|
44
|
+
:param job_id: 任务ID。
|
45
|
+
:type job_id: str
|
46
|
+
:param compare_type: 对比任务类型: - contents: 内容对比。 - lines:行数对比。 - random:抽样对比。 - objects_comparison:对象对比。
|
47
|
+
:type compare_type: str
|
48
|
+
:param compare_job_id: 对比任务的ID,内容对比、抽样对比、行数对比场景必填。
|
49
|
+
:type compare_job_id: str
|
50
|
+
:param region: 区域ID,例如:cn-north-4。
|
51
|
+
:type region: str
|
52
|
+
:param body: Body of the DownloadCompareResultFileRequest
|
53
|
+
:type body: :class:`huaweicloudsdkdrs.v3.ExportCompareResultReq`
|
54
|
+
"""
|
55
|
+
|
56
|
+
|
57
|
+
|
58
|
+
self._x_language = None
|
59
|
+
self._job_id = None
|
60
|
+
self._compare_type = None
|
61
|
+
self._compare_job_id = None
|
62
|
+
self._region = None
|
63
|
+
self._body = None
|
64
|
+
self.discriminator = None
|
65
|
+
|
66
|
+
if x_language is not None:
|
67
|
+
self.x_language = x_language
|
68
|
+
self.job_id = job_id
|
69
|
+
if compare_type is not None:
|
70
|
+
self.compare_type = compare_type
|
71
|
+
if compare_job_id is not None:
|
72
|
+
self.compare_job_id = compare_job_id
|
73
|
+
if region is not None:
|
74
|
+
self.region = region
|
75
|
+
if body is not None:
|
76
|
+
self.body = body
|
77
|
+
|
78
|
+
@property
|
79
|
+
def x_language(self):
|
80
|
+
"""Gets the x_language of this DownloadCompareResultFileRequest.
|
81
|
+
|
82
|
+
请求语言类型。
|
83
|
+
|
84
|
+
:return: The x_language of this DownloadCompareResultFileRequest.
|
85
|
+
:rtype: str
|
86
|
+
"""
|
87
|
+
return self._x_language
|
88
|
+
|
89
|
+
@x_language.setter
|
90
|
+
def x_language(self, x_language):
|
91
|
+
"""Sets the x_language of this DownloadCompareResultFileRequest.
|
92
|
+
|
93
|
+
请求语言类型。
|
94
|
+
|
95
|
+
:param x_language: The x_language of this DownloadCompareResultFileRequest.
|
96
|
+
:type x_language: str
|
97
|
+
"""
|
98
|
+
self._x_language = x_language
|
99
|
+
|
100
|
+
@property
|
101
|
+
def job_id(self):
|
102
|
+
"""Gets the job_id of this DownloadCompareResultFileRequest.
|
103
|
+
|
104
|
+
任务ID。
|
105
|
+
|
106
|
+
:return: The job_id of this DownloadCompareResultFileRequest.
|
107
|
+
:rtype: str
|
108
|
+
"""
|
109
|
+
return self._job_id
|
110
|
+
|
111
|
+
@job_id.setter
|
112
|
+
def job_id(self, job_id):
|
113
|
+
"""Sets the job_id of this DownloadCompareResultFileRequest.
|
114
|
+
|
115
|
+
任务ID。
|
116
|
+
|
117
|
+
:param job_id: The job_id of this DownloadCompareResultFileRequest.
|
118
|
+
:type job_id: str
|
119
|
+
"""
|
120
|
+
self._job_id = job_id
|
121
|
+
|
122
|
+
@property
|
123
|
+
def compare_type(self):
|
124
|
+
"""Gets the compare_type of this DownloadCompareResultFileRequest.
|
125
|
+
|
126
|
+
对比任务类型: - contents: 内容对比。 - lines:行数对比。 - random:抽样对比。 - objects_comparison:对象对比。
|
127
|
+
|
128
|
+
:return: The compare_type of this DownloadCompareResultFileRequest.
|
129
|
+
:rtype: str
|
130
|
+
"""
|
131
|
+
return self._compare_type
|
132
|
+
|
133
|
+
@compare_type.setter
|
134
|
+
def compare_type(self, compare_type):
|
135
|
+
"""Sets the compare_type of this DownloadCompareResultFileRequest.
|
136
|
+
|
137
|
+
对比任务类型: - contents: 内容对比。 - lines:行数对比。 - random:抽样对比。 - objects_comparison:对象对比。
|
138
|
+
|
139
|
+
:param compare_type: The compare_type of this DownloadCompareResultFileRequest.
|
140
|
+
:type compare_type: str
|
141
|
+
"""
|
142
|
+
self._compare_type = compare_type
|
143
|
+
|
144
|
+
@property
|
145
|
+
def compare_job_id(self):
|
146
|
+
"""Gets the compare_job_id of this DownloadCompareResultFileRequest.
|
147
|
+
|
148
|
+
对比任务的ID,内容对比、抽样对比、行数对比场景必填。
|
149
|
+
|
150
|
+
:return: The compare_job_id of this DownloadCompareResultFileRequest.
|
151
|
+
:rtype: str
|
152
|
+
"""
|
153
|
+
return self._compare_job_id
|
154
|
+
|
155
|
+
@compare_job_id.setter
|
156
|
+
def compare_job_id(self, compare_job_id):
|
157
|
+
"""Sets the compare_job_id of this DownloadCompareResultFileRequest.
|
158
|
+
|
159
|
+
对比任务的ID,内容对比、抽样对比、行数对比场景必填。
|
160
|
+
|
161
|
+
:param compare_job_id: The compare_job_id of this DownloadCompareResultFileRequest.
|
162
|
+
:type compare_job_id: str
|
163
|
+
"""
|
164
|
+
self._compare_job_id = compare_job_id
|
165
|
+
|
166
|
+
@property
|
167
|
+
def region(self):
|
168
|
+
"""Gets the region of this DownloadCompareResultFileRequest.
|
169
|
+
|
170
|
+
区域ID,例如:cn-north-4。
|
171
|
+
|
172
|
+
:return: The region of this DownloadCompareResultFileRequest.
|
173
|
+
:rtype: str
|
174
|
+
"""
|
175
|
+
return self._region
|
176
|
+
|
177
|
+
@region.setter
|
178
|
+
def region(self, region):
|
179
|
+
"""Sets the region of this DownloadCompareResultFileRequest.
|
180
|
+
|
181
|
+
区域ID,例如:cn-north-4。
|
182
|
+
|
183
|
+
:param region: The region of this DownloadCompareResultFileRequest.
|
184
|
+
:type region: str
|
185
|
+
"""
|
186
|
+
self._region = region
|
187
|
+
|
188
|
+
@property
|
189
|
+
def body(self):
|
190
|
+
"""Gets the body of this DownloadCompareResultFileRequest.
|
191
|
+
|
192
|
+
:return: The body of this DownloadCompareResultFileRequest.
|
193
|
+
:rtype: :class:`huaweicloudsdkdrs.v3.ExportCompareResultReq`
|
194
|
+
"""
|
195
|
+
return self._body
|
196
|
+
|
197
|
+
@body.setter
|
198
|
+
def body(self, body):
|
199
|
+
"""Sets the body of this DownloadCompareResultFileRequest.
|
200
|
+
|
201
|
+
:param body: The body of this DownloadCompareResultFileRequest.
|
202
|
+
:type body: :class:`huaweicloudsdkdrs.v3.ExportCompareResultReq`
|
203
|
+
"""
|
204
|
+
self._body = body
|
205
|
+
|
206
|
+
def to_dict(self):
|
207
|
+
"""Returns the model properties as a dict"""
|
208
|
+
result = {}
|
209
|
+
|
210
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
211
|
+
value = getattr(self, attr)
|
212
|
+
if isinstance(value, list):
|
213
|
+
result[attr] = list(map(
|
214
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
215
|
+
value
|
216
|
+
))
|
217
|
+
elif hasattr(value, "to_dict"):
|
218
|
+
result[attr] = value.to_dict()
|
219
|
+
elif isinstance(value, dict):
|
220
|
+
result[attr] = dict(map(
|
221
|
+
lambda item: (item[0], item[1].to_dict())
|
222
|
+
if hasattr(item[1], "to_dict") else item,
|
223
|
+
value.items()
|
224
|
+
))
|
225
|
+
else:
|
226
|
+
if attr in self.sensitive_list:
|
227
|
+
result[attr] = "****"
|
228
|
+
else:
|
229
|
+
result[attr] = value
|
230
|
+
|
231
|
+
return result
|
232
|
+
|
233
|
+
def to_str(self):
|
234
|
+
"""Returns the string representation of the model"""
|
235
|
+
import simplejson as json
|
236
|
+
if six.PY2:
|
237
|
+
import sys
|
238
|
+
reload(sys)
|
239
|
+
sys.setdefaultencoding("utf-8")
|
240
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
241
|
+
|
242
|
+
def __repr__(self):
|
243
|
+
"""For `print`"""
|
244
|
+
return self.to_str()
|
245
|
+
|
246
|
+
def __eq__(self, other):
|
247
|
+
"""Returns true if both objects are equal"""
|
248
|
+
if not isinstance(other, DownloadCompareResultFileRequest):
|
249
|
+
return False
|
250
|
+
|
251
|
+
return self.__dict__ == other.__dict__
|
252
|
+
|
253
|
+
def __ne__(self, other):
|
254
|
+
"""Returns true if both objects are not equal"""
|
255
|
+
return not self == other
|
@@ -0,0 +1,85 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.sdk_stream_response import SdkStreamResponse
|
6
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
7
|
+
|
8
|
+
|
9
|
+
class DownloadCompareResultFileResponse(SdkStreamResponse):
|
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
|
+
}
|
22
|
+
|
23
|
+
attribute_map = {
|
24
|
+
}
|
25
|
+
|
26
|
+
def __init__(self, response):
|
27
|
+
"""DownloadCompareResultFileResponse
|
28
|
+
|
29
|
+
The model defined in huaweicloud sdk
|
30
|
+
|
31
|
+
"""
|
32
|
+
|
33
|
+
super(DownloadCompareResultFileResponse, self).__init__(response)
|
34
|
+
self.discriminator = None
|
35
|
+
|
36
|
+
def to_dict(self):
|
37
|
+
"""Returns the model properties as a dict"""
|
38
|
+
result = {}
|
39
|
+
|
40
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
41
|
+
value = getattr(self, attr)
|
42
|
+
if isinstance(value, list):
|
43
|
+
result[attr] = list(map(
|
44
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
45
|
+
value
|
46
|
+
))
|
47
|
+
elif hasattr(value, "to_dict"):
|
48
|
+
result[attr] = value.to_dict()
|
49
|
+
elif isinstance(value, dict):
|
50
|
+
result[attr] = dict(map(
|
51
|
+
lambda item: (item[0], item[1].to_dict())
|
52
|
+
if hasattr(item[1], "to_dict") else item,
|
53
|
+
value.items()
|
54
|
+
))
|
55
|
+
else:
|
56
|
+
if attr in self.sensitive_list:
|
57
|
+
result[attr] = "****"
|
58
|
+
else:
|
59
|
+
result[attr] = value
|
60
|
+
|
61
|
+
return result
|
62
|
+
|
63
|
+
def to_str(self):
|
64
|
+
"""Returns the string representation of the model"""
|
65
|
+
import simplejson as json
|
66
|
+
if six.PY2:
|
67
|
+
import sys
|
68
|
+
reload(sys)
|
69
|
+
sys.setdefaultencoding("utf-8")
|
70
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
71
|
+
|
72
|
+
def __repr__(self):
|
73
|
+
"""For `print`"""
|
74
|
+
return self.to_str()
|
75
|
+
|
76
|
+
def __eq__(self, other):
|
77
|
+
"""Returns true if both objects are equal"""
|
78
|
+
if not isinstance(other, DownloadCompareResultFileResponse):
|
79
|
+
return False
|
80
|
+
|
81
|
+
return self.__dict__ == other.__dict__
|
82
|
+
|
83
|
+
def __ne__(self, other):
|
84
|
+
"""Returns true if both objects are not equal"""
|
85
|
+
return not self == other
|
@@ -39,7 +39,8 @@ class Endpoint:
|
|
39
39
|
'ssl_cert_name': 'str',
|
40
40
|
'ssl_link': 'bool',
|
41
41
|
'topic': 'str',
|
42
|
-
'cluster_mode': 'str'
|
42
|
+
'cluster_mode': 'str',
|
43
|
+
'kafka_security_config': 'KafkaSecurity'
|
43
44
|
}
|
44
45
|
|
45
46
|
attribute_map = {
|
@@ -65,10 +66,11 @@ class Endpoint:
|
|
65
66
|
'ssl_cert_name': 'ssl_cert_name',
|
66
67
|
'ssl_link': 'ssl_link',
|
67
68
|
'topic': 'topic',
|
68
|
-
'cluster_mode': 'cluster_mode'
|
69
|
+
'cluster_mode': 'cluster_mode',
|
70
|
+
'kafka_security_config': 'kafka_security_config'
|
69
71
|
}
|
70
72
|
|
71
|
-
def __init__(self, db_type=None, az_code=None, region=None, inst_id=None, vpc_id=None, subnet_id=None, security_group_id=None, project_id=None, db_name=None, db_password=None, db_port=None, db_user=None, inst_name=None, ip=None, mongo_ha_mode=None, safe_mode=None, ssl_cert_password=None, ssl_cert_check_sum=None, ssl_cert_key=None, ssl_cert_name=None, ssl_link=None, topic=None, cluster_mode=None):
|
73
|
+
def __init__(self, db_type=None, az_code=None, region=None, inst_id=None, vpc_id=None, subnet_id=None, security_group_id=None, project_id=None, db_name=None, db_password=None, db_port=None, db_user=None, inst_name=None, ip=None, mongo_ha_mode=None, safe_mode=None, ssl_cert_password=None, ssl_cert_check_sum=None, ssl_cert_key=None, ssl_cert_name=None, ssl_link=None, topic=None, cluster_mode=None, kafka_security_config=None):
|
72
74
|
"""Endpoint
|
73
75
|
|
74
76
|
The model defined in huaweicloud sdk
|
@@ -119,6 +121,8 @@ class Endpoint:
|
|
119
121
|
:type topic: str
|
120
122
|
:param cluster_mode: MongDB集群4.0及以上版本,当集群实例无法获取到分片节点的IP时,source_endpoint中需要填写,值为:Sharding4.0+。
|
121
123
|
:type cluster_mode: str
|
124
|
+
:param kafka_security_config:
|
125
|
+
:type kafka_security_config: :class:`huaweicloudsdkdrs.v3.KafkaSecurity`
|
122
126
|
"""
|
123
127
|
|
124
128
|
|
@@ -146,6 +150,7 @@ class Endpoint:
|
|
146
150
|
self._ssl_link = None
|
147
151
|
self._topic = None
|
148
152
|
self._cluster_mode = None
|
153
|
+
self._kafka_security_config = None
|
149
154
|
self.discriminator = None
|
150
155
|
|
151
156
|
if db_type is not None:
|
@@ -194,6 +199,8 @@ class Endpoint:
|
|
194
199
|
self.topic = topic
|
195
200
|
if cluster_mode is not None:
|
196
201
|
self.cluster_mode = cluster_mode
|
202
|
+
if kafka_security_config is not None:
|
203
|
+
self.kafka_security_config = kafka_security_config
|
197
204
|
|
198
205
|
@property
|
199
206
|
def db_type(self):
|
@@ -701,6 +708,24 @@ class Endpoint:
|
|
701
708
|
"""
|
702
709
|
self._cluster_mode = cluster_mode
|
703
710
|
|
711
|
+
@property
|
712
|
+
def kafka_security_config(self):
|
713
|
+
"""Gets the kafka_security_config of this Endpoint.
|
714
|
+
|
715
|
+
:return: The kafka_security_config of this Endpoint.
|
716
|
+
:rtype: :class:`huaweicloudsdkdrs.v3.KafkaSecurity`
|
717
|
+
"""
|
718
|
+
return self._kafka_security_config
|
719
|
+
|
720
|
+
@kafka_security_config.setter
|
721
|
+
def kafka_security_config(self, kafka_security_config):
|
722
|
+
"""Sets the kafka_security_config of this Endpoint.
|
723
|
+
|
724
|
+
:param kafka_security_config: The kafka_security_config of this Endpoint.
|
725
|
+
:type kafka_security_config: :class:`huaweicloudsdkdrs.v3.KafkaSecurity`
|
726
|
+
"""
|
727
|
+
self._kafka_security_config = kafka_security_config
|
728
|
+
|
704
729
|
def to_dict(self):
|
705
730
|
"""Returns the model properties as a dict"""
|
706
731
|
result = {}
|