huaweicloudsdkdrs 3.1.115__py2.py3-none-any.whl → 3.1.117__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/model/query_job_resp.py +7 -7
- huaweicloudsdkdrs/v5/__init__.py +40 -0
- huaweicloudsdkdrs/v5/drs_async_client.py +890 -17
- huaweicloudsdkdrs/v5/drs_client.py +890 -17
- huaweicloudsdkdrs/v5/model/__init__.py +40 -0
- huaweicloudsdkdrs/v5/model/backup_file_info.py +201 -0
- huaweicloudsdkdrs/v5/model/backup_file_resp.py +173 -0
- huaweicloudsdkdrs/v5/model/backup_info.py +171 -0
- huaweicloudsdkdrs/v5/model/backup_info_resp.py +173 -0
- huaweicloudsdkdrs/v5/model/backup_job_base_info.py +229 -0
- huaweicloudsdkdrs/v5/model/backup_job_endpoint_info.py +172 -0
- huaweicloudsdkdrs/v5/model/backup_restore_option_info.py +315 -0
- huaweicloudsdkdrs/v5/model/change_to_period_request.py +168 -0
- huaweicloudsdkdrs/v5/model/change_to_period_response.py +116 -0
- huaweicloudsdkdrs/v5/model/check_data_filter_response.py +3 -3
- huaweicloudsdkdrs/v5/model/clean_alarms_request.py +171 -0
- huaweicloudsdkdrs/v5/model/clean_alarms_response.py +116 -0
- huaweicloudsdkdrs/v5/model/collect_columns_response.py +3 -3
- huaweicloudsdkdrs/v5/model/collect_db_objects_async_response.py +3 -3
- huaweicloudsdkdrs/v5/model/collect_db_objects_info_response.py +3 -3
- huaweicloudsdkdrs/v5/model/collect_position_async_response.py +3 -3
- huaweicloudsdkdrs/v5/model/connection_config.py +115 -0
- huaweicloudsdkdrs/v5/model/connection_resp.py +355 -0
- huaweicloudsdkdrs/v5/model/create_connection_req.py +324 -0
- huaweicloudsdkdrs/v5/model/create_connection_request.py +140 -0
- huaweicloudsdkdrs/v5/model/create_connection_response.py +361 -0
- huaweicloudsdkdrs/v5/model/create_offline_task_req.py +182 -0
- huaweicloudsdkdrs/v5/model/create_replication_job_request.py +140 -0
- huaweicloudsdkdrs/v5/model/create_replication_job_response.py +116 -0
- huaweicloudsdkdrs/v5/model/ddl_alarm_resp.py +311 -0
- huaweicloudsdkdrs/v5/model/delete_connection_request.py +143 -0
- huaweicloudsdkdrs/v5/model/delete_connection_response.py +116 -0
- huaweicloudsdkdrs/v5/model/delete_replication_job_request.py +143 -0
- huaweicloudsdkdrs/v5/model/delete_replication_job_response.py +116 -0
- huaweicloudsdkdrs/v5/model/list_connections_request.py +492 -0
- huaweicloudsdkdrs/v5/model/list_connections_response.py +145 -0
- huaweicloudsdkdrs/v5/model/list_job_ddls_request.py +288 -0
- huaweicloudsdkdrs/v5/model/list_job_ddls_response.py +145 -0
- huaweicloudsdkdrs/v5/model/list_replication_jobs_request.py +463 -0
- huaweicloudsdkdrs/v5/model/list_replication_jobs_response.py +145 -0
- huaweicloudsdkdrs/v5/model/modify_connection_request.py +168 -0
- huaweicloudsdkdrs/v5/model/modify_connection_response.py +116 -0
- huaweicloudsdkdrs/v5/model/modify_offline_task_req.py +143 -0
- huaweicloudsdkdrs/v5/model/offline_task_info.py +342 -0
- huaweicloudsdkdrs/v5/model/resource_tag.py +3 -3
- huaweicloudsdkdrs/v5/model/show_data_processing_rules_result_response.py +3 -3
- huaweicloudsdkdrs/v5/model/show_replication_job_request.py +143 -0
- huaweicloudsdkdrs/v5/model/show_replication_job_response.py +390 -0
- huaweicloudsdkdrs/v5/model/show_update_object_saving_status_response.py +3 -3
- huaweicloudsdkdrs/v5/model/to_period_req.py +198 -0
- huaweicloudsdkdrs/v5/model/update_connection_req.py +327 -0
- huaweicloudsdkdrs/v5/model/update_data_progress_response.py +3 -3
- huaweicloudsdkdrs/v5/model/update_replication_job_request.py +168 -0
- huaweicloudsdkdrs/v5/model/update_replication_job_response.py +116 -0
- {huaweicloudsdkdrs-3.1.115.dist-info → huaweicloudsdkdrs-3.1.117.dist-info}/METADATA +2 -2
- {huaweicloudsdkdrs-3.1.115.dist-info → huaweicloudsdkdrs-3.1.117.dist-info}/RECORD +59 -19
- {huaweicloudsdkdrs-3.1.115.dist-info → huaweicloudsdkdrs-3.1.117.dist-info}/LICENSE +0 -0
- {huaweicloudsdkdrs-3.1.115.dist-info → huaweicloudsdkdrs-3.1.117.dist-info}/WHEEL +0 -0
- {huaweicloudsdkdrs-3.1.115.dist-info → huaweicloudsdkdrs-3.1.117.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,140 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class CreateReplicationJobRequest:
|
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
|
+
'body': 'CreateOfflineTaskReq'
|
22
|
+
}
|
23
|
+
|
24
|
+
attribute_map = {
|
25
|
+
'x_language': 'X-Language',
|
26
|
+
'body': 'body'
|
27
|
+
}
|
28
|
+
|
29
|
+
def __init__(self, x_language=None, body=None):
|
30
|
+
"""CreateReplicationJobRequest
|
31
|
+
|
32
|
+
The model defined in huaweicloud sdk
|
33
|
+
|
34
|
+
:param x_language: 请求语言类型。
|
35
|
+
:type x_language: str
|
36
|
+
:param body: Body of the CreateReplicationJobRequest
|
37
|
+
:type body: :class:`huaweicloudsdkdrs.v5.CreateOfflineTaskReq`
|
38
|
+
"""
|
39
|
+
|
40
|
+
|
41
|
+
|
42
|
+
self._x_language = None
|
43
|
+
self._body = None
|
44
|
+
self.discriminator = None
|
45
|
+
|
46
|
+
if x_language is not None:
|
47
|
+
self.x_language = x_language
|
48
|
+
if body is not None:
|
49
|
+
self.body = body
|
50
|
+
|
51
|
+
@property
|
52
|
+
def x_language(self):
|
53
|
+
"""Gets the x_language of this CreateReplicationJobRequest.
|
54
|
+
|
55
|
+
请求语言类型。
|
56
|
+
|
57
|
+
:return: The x_language of this CreateReplicationJobRequest.
|
58
|
+
:rtype: str
|
59
|
+
"""
|
60
|
+
return self._x_language
|
61
|
+
|
62
|
+
@x_language.setter
|
63
|
+
def x_language(self, x_language):
|
64
|
+
"""Sets the x_language of this CreateReplicationJobRequest.
|
65
|
+
|
66
|
+
请求语言类型。
|
67
|
+
|
68
|
+
:param x_language: The x_language of this CreateReplicationJobRequest.
|
69
|
+
:type x_language: str
|
70
|
+
"""
|
71
|
+
self._x_language = x_language
|
72
|
+
|
73
|
+
@property
|
74
|
+
def body(self):
|
75
|
+
"""Gets the body of this CreateReplicationJobRequest.
|
76
|
+
|
77
|
+
:return: The body of this CreateReplicationJobRequest.
|
78
|
+
:rtype: :class:`huaweicloudsdkdrs.v5.CreateOfflineTaskReq`
|
79
|
+
"""
|
80
|
+
return self._body
|
81
|
+
|
82
|
+
@body.setter
|
83
|
+
def body(self, body):
|
84
|
+
"""Sets the body of this CreateReplicationJobRequest.
|
85
|
+
|
86
|
+
:param body: The body of this CreateReplicationJobRequest.
|
87
|
+
:type body: :class:`huaweicloudsdkdrs.v5.CreateOfflineTaskReq`
|
88
|
+
"""
|
89
|
+
self._body = body
|
90
|
+
|
91
|
+
def to_dict(self):
|
92
|
+
"""Returns the model properties as a dict"""
|
93
|
+
result = {}
|
94
|
+
|
95
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
96
|
+
value = getattr(self, attr)
|
97
|
+
if isinstance(value, list):
|
98
|
+
result[attr] = list(map(
|
99
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
100
|
+
value
|
101
|
+
))
|
102
|
+
elif hasattr(value, "to_dict"):
|
103
|
+
result[attr] = value.to_dict()
|
104
|
+
elif isinstance(value, dict):
|
105
|
+
result[attr] = dict(map(
|
106
|
+
lambda item: (item[0], item[1].to_dict())
|
107
|
+
if hasattr(item[1], "to_dict") else item,
|
108
|
+
value.items()
|
109
|
+
))
|
110
|
+
else:
|
111
|
+
if attr in self.sensitive_list:
|
112
|
+
result[attr] = "****"
|
113
|
+
else:
|
114
|
+
result[attr] = value
|
115
|
+
|
116
|
+
return result
|
117
|
+
|
118
|
+
def to_str(self):
|
119
|
+
"""Returns the string representation of the model"""
|
120
|
+
import simplejson as json
|
121
|
+
if six.PY2:
|
122
|
+
import sys
|
123
|
+
reload(sys)
|
124
|
+
sys.setdefaultencoding("utf-8")
|
125
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
126
|
+
|
127
|
+
def __repr__(self):
|
128
|
+
"""For `print`"""
|
129
|
+
return self.to_str()
|
130
|
+
|
131
|
+
def __eq__(self, other):
|
132
|
+
"""Returns true if both objects are equal"""
|
133
|
+
if not isinstance(other, CreateReplicationJobRequest):
|
134
|
+
return False
|
135
|
+
|
136
|
+
return self.__dict__ == other.__dict__
|
137
|
+
|
138
|
+
def __ne__(self, other):
|
139
|
+
"""Returns true if both objects are not equal"""
|
140
|
+
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 CreateReplicationJobResponse(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
|
+
'job_id': 'str'
|
22
|
+
}
|
23
|
+
|
24
|
+
attribute_map = {
|
25
|
+
'job_id': 'job_id'
|
26
|
+
}
|
27
|
+
|
28
|
+
def __init__(self, job_id=None):
|
29
|
+
"""CreateReplicationJobResponse
|
30
|
+
|
31
|
+
The model defined in huaweicloud sdk
|
32
|
+
|
33
|
+
:param job_id: 任务ID。
|
34
|
+
:type job_id: str
|
35
|
+
"""
|
36
|
+
|
37
|
+
super(CreateReplicationJobResponse, self).__init__()
|
38
|
+
|
39
|
+
self._job_id = None
|
40
|
+
self.discriminator = None
|
41
|
+
|
42
|
+
if job_id is not None:
|
43
|
+
self.job_id = job_id
|
44
|
+
|
45
|
+
@property
|
46
|
+
def job_id(self):
|
47
|
+
"""Gets the job_id of this CreateReplicationJobResponse.
|
48
|
+
|
49
|
+
任务ID。
|
50
|
+
|
51
|
+
:return: The job_id of this CreateReplicationJobResponse.
|
52
|
+
:rtype: str
|
53
|
+
"""
|
54
|
+
return self._job_id
|
55
|
+
|
56
|
+
@job_id.setter
|
57
|
+
def job_id(self, job_id):
|
58
|
+
"""Sets the job_id of this CreateReplicationJobResponse.
|
59
|
+
|
60
|
+
任务ID。
|
61
|
+
|
62
|
+
:param job_id: The job_id of this CreateReplicationJobResponse.
|
63
|
+
:type job_id: str
|
64
|
+
"""
|
65
|
+
self._job_id = job_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, CreateReplicationJobResponse):
|
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,311 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class DdlAlarmResp:
|
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
|
+
'seqno': 'int',
|
21
|
+
'checkpoint': 'str',
|
22
|
+
'status': 'int',
|
23
|
+
'ddl_timestamp': 'int',
|
24
|
+
'ddl_text': 'str',
|
25
|
+
'exe_result': 'bool',
|
26
|
+
'record_time': 'int',
|
27
|
+
'clean_time': 'int'
|
28
|
+
}
|
29
|
+
|
30
|
+
attribute_map = {
|
31
|
+
'seqno': 'seqno',
|
32
|
+
'checkpoint': 'checkpoint',
|
33
|
+
'status': 'status',
|
34
|
+
'ddl_timestamp': 'ddl_timestamp',
|
35
|
+
'ddl_text': 'ddl_text',
|
36
|
+
'exe_result': 'exe_result',
|
37
|
+
'record_time': 'record_time',
|
38
|
+
'clean_time': 'clean_time'
|
39
|
+
}
|
40
|
+
|
41
|
+
def __init__(self, seqno=None, checkpoint=None, status=None, ddl_timestamp=None, ddl_text=None, exe_result=None, record_time=None, clean_time=None):
|
42
|
+
"""DdlAlarmResp
|
43
|
+
|
44
|
+
The model defined in huaweicloud sdk
|
45
|
+
|
46
|
+
:param seqno: 记录唯一序号。
|
47
|
+
:type seqno: int
|
48
|
+
:param checkpoint: 数据源库位点。
|
49
|
+
:type checkpoint: str
|
50
|
+
:param status: DDL告警状态。0无告警,1告警中。
|
51
|
+
:type status: int
|
52
|
+
:param ddl_timestamp: DDL在源库执行时间。
|
53
|
+
:type ddl_timestamp: int
|
54
|
+
:param ddl_text: DDL内容。
|
55
|
+
:type ddl_text: str
|
56
|
+
:param exe_result: DDL执行结果。false执行失败,true执行成功。
|
57
|
+
:type exe_result: bool
|
58
|
+
:param record_time: 数据记录时间。
|
59
|
+
:type record_time: int
|
60
|
+
:param clean_time: DDL告警清理时间。
|
61
|
+
:type clean_time: int
|
62
|
+
"""
|
63
|
+
|
64
|
+
|
65
|
+
|
66
|
+
self._seqno = None
|
67
|
+
self._checkpoint = None
|
68
|
+
self._status = None
|
69
|
+
self._ddl_timestamp = None
|
70
|
+
self._ddl_text = None
|
71
|
+
self._exe_result = None
|
72
|
+
self._record_time = None
|
73
|
+
self._clean_time = None
|
74
|
+
self.discriminator = None
|
75
|
+
|
76
|
+
self.seqno = seqno
|
77
|
+
self.checkpoint = checkpoint
|
78
|
+
self.status = status
|
79
|
+
self.ddl_timestamp = ddl_timestamp
|
80
|
+
self.ddl_text = ddl_text
|
81
|
+
self.exe_result = exe_result
|
82
|
+
self.record_time = record_time
|
83
|
+
if clean_time is not None:
|
84
|
+
self.clean_time = clean_time
|
85
|
+
|
86
|
+
@property
|
87
|
+
def seqno(self):
|
88
|
+
"""Gets the seqno of this DdlAlarmResp.
|
89
|
+
|
90
|
+
记录唯一序号。
|
91
|
+
|
92
|
+
:return: The seqno of this DdlAlarmResp.
|
93
|
+
:rtype: int
|
94
|
+
"""
|
95
|
+
return self._seqno
|
96
|
+
|
97
|
+
@seqno.setter
|
98
|
+
def seqno(self, seqno):
|
99
|
+
"""Sets the seqno of this DdlAlarmResp.
|
100
|
+
|
101
|
+
记录唯一序号。
|
102
|
+
|
103
|
+
:param seqno: The seqno of this DdlAlarmResp.
|
104
|
+
:type seqno: int
|
105
|
+
"""
|
106
|
+
self._seqno = seqno
|
107
|
+
|
108
|
+
@property
|
109
|
+
def checkpoint(self):
|
110
|
+
"""Gets the checkpoint of this DdlAlarmResp.
|
111
|
+
|
112
|
+
数据源库位点。
|
113
|
+
|
114
|
+
:return: The checkpoint of this DdlAlarmResp.
|
115
|
+
:rtype: str
|
116
|
+
"""
|
117
|
+
return self._checkpoint
|
118
|
+
|
119
|
+
@checkpoint.setter
|
120
|
+
def checkpoint(self, checkpoint):
|
121
|
+
"""Sets the checkpoint of this DdlAlarmResp.
|
122
|
+
|
123
|
+
数据源库位点。
|
124
|
+
|
125
|
+
:param checkpoint: The checkpoint of this DdlAlarmResp.
|
126
|
+
:type checkpoint: str
|
127
|
+
"""
|
128
|
+
self._checkpoint = checkpoint
|
129
|
+
|
130
|
+
@property
|
131
|
+
def status(self):
|
132
|
+
"""Gets the status of this DdlAlarmResp.
|
133
|
+
|
134
|
+
DDL告警状态。0无告警,1告警中。
|
135
|
+
|
136
|
+
:return: The status of this DdlAlarmResp.
|
137
|
+
:rtype: int
|
138
|
+
"""
|
139
|
+
return self._status
|
140
|
+
|
141
|
+
@status.setter
|
142
|
+
def status(self, status):
|
143
|
+
"""Sets the status of this DdlAlarmResp.
|
144
|
+
|
145
|
+
DDL告警状态。0无告警,1告警中。
|
146
|
+
|
147
|
+
:param status: The status of this DdlAlarmResp.
|
148
|
+
:type status: int
|
149
|
+
"""
|
150
|
+
self._status = status
|
151
|
+
|
152
|
+
@property
|
153
|
+
def ddl_timestamp(self):
|
154
|
+
"""Gets the ddl_timestamp of this DdlAlarmResp.
|
155
|
+
|
156
|
+
DDL在源库执行时间。
|
157
|
+
|
158
|
+
:return: The ddl_timestamp of this DdlAlarmResp.
|
159
|
+
:rtype: int
|
160
|
+
"""
|
161
|
+
return self._ddl_timestamp
|
162
|
+
|
163
|
+
@ddl_timestamp.setter
|
164
|
+
def ddl_timestamp(self, ddl_timestamp):
|
165
|
+
"""Sets the ddl_timestamp of this DdlAlarmResp.
|
166
|
+
|
167
|
+
DDL在源库执行时间。
|
168
|
+
|
169
|
+
:param ddl_timestamp: The ddl_timestamp of this DdlAlarmResp.
|
170
|
+
:type ddl_timestamp: int
|
171
|
+
"""
|
172
|
+
self._ddl_timestamp = ddl_timestamp
|
173
|
+
|
174
|
+
@property
|
175
|
+
def ddl_text(self):
|
176
|
+
"""Gets the ddl_text of this DdlAlarmResp.
|
177
|
+
|
178
|
+
DDL内容。
|
179
|
+
|
180
|
+
:return: The ddl_text of this DdlAlarmResp.
|
181
|
+
:rtype: str
|
182
|
+
"""
|
183
|
+
return self._ddl_text
|
184
|
+
|
185
|
+
@ddl_text.setter
|
186
|
+
def ddl_text(self, ddl_text):
|
187
|
+
"""Sets the ddl_text of this DdlAlarmResp.
|
188
|
+
|
189
|
+
DDL内容。
|
190
|
+
|
191
|
+
:param ddl_text: The ddl_text of this DdlAlarmResp.
|
192
|
+
:type ddl_text: str
|
193
|
+
"""
|
194
|
+
self._ddl_text = ddl_text
|
195
|
+
|
196
|
+
@property
|
197
|
+
def exe_result(self):
|
198
|
+
"""Gets the exe_result of this DdlAlarmResp.
|
199
|
+
|
200
|
+
DDL执行结果。false执行失败,true执行成功。
|
201
|
+
|
202
|
+
:return: The exe_result of this DdlAlarmResp.
|
203
|
+
:rtype: bool
|
204
|
+
"""
|
205
|
+
return self._exe_result
|
206
|
+
|
207
|
+
@exe_result.setter
|
208
|
+
def exe_result(self, exe_result):
|
209
|
+
"""Sets the exe_result of this DdlAlarmResp.
|
210
|
+
|
211
|
+
DDL执行结果。false执行失败,true执行成功。
|
212
|
+
|
213
|
+
:param exe_result: The exe_result of this DdlAlarmResp.
|
214
|
+
:type exe_result: bool
|
215
|
+
"""
|
216
|
+
self._exe_result = exe_result
|
217
|
+
|
218
|
+
@property
|
219
|
+
def record_time(self):
|
220
|
+
"""Gets the record_time of this DdlAlarmResp.
|
221
|
+
|
222
|
+
数据记录时间。
|
223
|
+
|
224
|
+
:return: The record_time of this DdlAlarmResp.
|
225
|
+
:rtype: int
|
226
|
+
"""
|
227
|
+
return self._record_time
|
228
|
+
|
229
|
+
@record_time.setter
|
230
|
+
def record_time(self, record_time):
|
231
|
+
"""Sets the record_time of this DdlAlarmResp.
|
232
|
+
|
233
|
+
数据记录时间。
|
234
|
+
|
235
|
+
:param record_time: The record_time of this DdlAlarmResp.
|
236
|
+
:type record_time: int
|
237
|
+
"""
|
238
|
+
self._record_time = record_time
|
239
|
+
|
240
|
+
@property
|
241
|
+
def clean_time(self):
|
242
|
+
"""Gets the clean_time of this DdlAlarmResp.
|
243
|
+
|
244
|
+
DDL告警清理时间。
|
245
|
+
|
246
|
+
:return: The clean_time of this DdlAlarmResp.
|
247
|
+
:rtype: int
|
248
|
+
"""
|
249
|
+
return self._clean_time
|
250
|
+
|
251
|
+
@clean_time.setter
|
252
|
+
def clean_time(self, clean_time):
|
253
|
+
"""Sets the clean_time of this DdlAlarmResp.
|
254
|
+
|
255
|
+
DDL告警清理时间。
|
256
|
+
|
257
|
+
:param clean_time: The clean_time of this DdlAlarmResp.
|
258
|
+
:type clean_time: int
|
259
|
+
"""
|
260
|
+
self._clean_time = clean_time
|
261
|
+
|
262
|
+
def to_dict(self):
|
263
|
+
"""Returns the model properties as a dict"""
|
264
|
+
result = {}
|
265
|
+
|
266
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
267
|
+
value = getattr(self, attr)
|
268
|
+
if isinstance(value, list):
|
269
|
+
result[attr] = list(map(
|
270
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
271
|
+
value
|
272
|
+
))
|
273
|
+
elif hasattr(value, "to_dict"):
|
274
|
+
result[attr] = value.to_dict()
|
275
|
+
elif isinstance(value, dict):
|
276
|
+
result[attr] = dict(map(
|
277
|
+
lambda item: (item[0], item[1].to_dict())
|
278
|
+
if hasattr(item[1], "to_dict") else item,
|
279
|
+
value.items()
|
280
|
+
))
|
281
|
+
else:
|
282
|
+
if attr in self.sensitive_list:
|
283
|
+
result[attr] = "****"
|
284
|
+
else:
|
285
|
+
result[attr] = value
|
286
|
+
|
287
|
+
return result
|
288
|
+
|
289
|
+
def to_str(self):
|
290
|
+
"""Returns the string representation of the model"""
|
291
|
+
import simplejson as json
|
292
|
+
if six.PY2:
|
293
|
+
import sys
|
294
|
+
reload(sys)
|
295
|
+
sys.setdefaultencoding("utf-8")
|
296
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
297
|
+
|
298
|
+
def __repr__(self):
|
299
|
+
"""For `print`"""
|
300
|
+
return self.to_str()
|
301
|
+
|
302
|
+
def __eq__(self, other):
|
303
|
+
"""Returns true if both objects are equal"""
|
304
|
+
if not isinstance(other, DdlAlarmResp):
|
305
|
+
return False
|
306
|
+
|
307
|
+
return self.__dict__ == other.__dict__
|
308
|
+
|
309
|
+
def __ne__(self, other):
|
310
|
+
"""Returns true if both objects are not equal"""
|
311
|
+
return not self == other
|
@@ -0,0 +1,143 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class DeleteConnectionRequest:
|
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
|
+
'connection_id': 'str',
|
21
|
+
'x_language': 'str'
|
22
|
+
}
|
23
|
+
|
24
|
+
attribute_map = {
|
25
|
+
'connection_id': 'connection_id',
|
26
|
+
'x_language': 'X-Language'
|
27
|
+
}
|
28
|
+
|
29
|
+
def __init__(self, connection_id=None, x_language=None):
|
30
|
+
"""DeleteConnectionRequest
|
31
|
+
|
32
|
+
The model defined in huaweicloud sdk
|
33
|
+
|
34
|
+
:param connection_id: 连接ID。
|
35
|
+
:type connection_id: str
|
36
|
+
:param x_language: 请求语言类型。
|
37
|
+
:type x_language: str
|
38
|
+
"""
|
39
|
+
|
40
|
+
|
41
|
+
|
42
|
+
self._connection_id = None
|
43
|
+
self._x_language = None
|
44
|
+
self.discriminator = None
|
45
|
+
|
46
|
+
self.connection_id = connection_id
|
47
|
+
if x_language is not None:
|
48
|
+
self.x_language = x_language
|
49
|
+
|
50
|
+
@property
|
51
|
+
def connection_id(self):
|
52
|
+
"""Gets the connection_id of this DeleteConnectionRequest.
|
53
|
+
|
54
|
+
连接ID。
|
55
|
+
|
56
|
+
:return: The connection_id of this DeleteConnectionRequest.
|
57
|
+
:rtype: str
|
58
|
+
"""
|
59
|
+
return self._connection_id
|
60
|
+
|
61
|
+
@connection_id.setter
|
62
|
+
def connection_id(self, connection_id):
|
63
|
+
"""Sets the connection_id of this DeleteConnectionRequest.
|
64
|
+
|
65
|
+
连接ID。
|
66
|
+
|
67
|
+
:param connection_id: The connection_id of this DeleteConnectionRequest.
|
68
|
+
:type connection_id: str
|
69
|
+
"""
|
70
|
+
self._connection_id = connection_id
|
71
|
+
|
72
|
+
@property
|
73
|
+
def x_language(self):
|
74
|
+
"""Gets the x_language of this DeleteConnectionRequest.
|
75
|
+
|
76
|
+
请求语言类型。
|
77
|
+
|
78
|
+
:return: The x_language of this DeleteConnectionRequest.
|
79
|
+
:rtype: str
|
80
|
+
"""
|
81
|
+
return self._x_language
|
82
|
+
|
83
|
+
@x_language.setter
|
84
|
+
def x_language(self, x_language):
|
85
|
+
"""Sets the x_language of this DeleteConnectionRequest.
|
86
|
+
|
87
|
+
请求语言类型。
|
88
|
+
|
89
|
+
:param x_language: The x_language of this DeleteConnectionRequest.
|
90
|
+
:type x_language: str
|
91
|
+
"""
|
92
|
+
self._x_language = x_language
|
93
|
+
|
94
|
+
def to_dict(self):
|
95
|
+
"""Returns the model properties as a dict"""
|
96
|
+
result = {}
|
97
|
+
|
98
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
99
|
+
value = getattr(self, attr)
|
100
|
+
if isinstance(value, list):
|
101
|
+
result[attr] = list(map(
|
102
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
103
|
+
value
|
104
|
+
))
|
105
|
+
elif hasattr(value, "to_dict"):
|
106
|
+
result[attr] = value.to_dict()
|
107
|
+
elif isinstance(value, dict):
|
108
|
+
result[attr] = dict(map(
|
109
|
+
lambda item: (item[0], item[1].to_dict())
|
110
|
+
if hasattr(item[1], "to_dict") else item,
|
111
|
+
value.items()
|
112
|
+
))
|
113
|
+
else:
|
114
|
+
if attr in self.sensitive_list:
|
115
|
+
result[attr] = "****"
|
116
|
+
else:
|
117
|
+
result[attr] = value
|
118
|
+
|
119
|
+
return result
|
120
|
+
|
121
|
+
def to_str(self):
|
122
|
+
"""Returns the string representation of the model"""
|
123
|
+
import simplejson as json
|
124
|
+
if six.PY2:
|
125
|
+
import sys
|
126
|
+
reload(sys)
|
127
|
+
sys.setdefaultencoding("utf-8")
|
128
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
129
|
+
|
130
|
+
def __repr__(self):
|
131
|
+
"""For `print`"""
|
132
|
+
return self.to_str()
|
133
|
+
|
134
|
+
def __eq__(self, other):
|
135
|
+
"""Returns true if both objects are equal"""
|
136
|
+
if not isinstance(other, DeleteConnectionRequest):
|
137
|
+
return False
|
138
|
+
|
139
|
+
return self.__dict__ == other.__dict__
|
140
|
+
|
141
|
+
def __ne__(self, other):
|
142
|
+
"""Returns true if both objects are not equal"""
|
143
|
+
return not self == other
|