huaweicloudsdkdrs 3.1.116__py2.py3-none-any.whl → 3.1.118__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.116.dist-info → huaweicloudsdkdrs-3.1.118.dist-info}/METADATA +2 -2
- {huaweicloudsdkdrs-3.1.116.dist-info → huaweicloudsdkdrs-3.1.118.dist-info}/RECORD +59 -19
- {huaweicloudsdkdrs-3.1.116.dist-info → huaweicloudsdkdrs-3.1.118.dist-info}/LICENSE +0 -0
- {huaweicloudsdkdrs-3.1.116.dist-info → huaweicloudsdkdrs-3.1.118.dist-info}/WHEEL +0 -0
- {huaweicloudsdkdrs-3.1.116.dist-info → huaweicloudsdkdrs-3.1.118.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,171 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class BackupInfo:
|
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
|
+
'file_source': 'str',
|
21
|
+
'bucket_name': 'str',
|
22
|
+
'files': 'list[BackupFileInfo]'
|
23
|
+
}
|
24
|
+
|
25
|
+
attribute_map = {
|
26
|
+
'file_source': 'file_source',
|
27
|
+
'bucket_name': 'bucket_name',
|
28
|
+
'files': 'files'
|
29
|
+
}
|
30
|
+
|
31
|
+
def __init__(self, file_source=None, bucket_name=None, files=None):
|
32
|
+
"""BackupInfo
|
33
|
+
|
34
|
+
The model defined in huaweicloud sdk
|
35
|
+
|
36
|
+
:param file_source: 备份文件来源:(全部大写) - OBS:存放在OBS中的备份文件。 - RDS:RDS实例的备份文件。
|
37
|
+
:type file_source: str
|
38
|
+
:param bucket_name: OBS桶名称,使用OBS桶备份文件恢复时必填。 约束:长度范围为3~63个字符,仅支持小写字母、数字、中划线(-)、点(.),且只能以字母或数字开头和结尾,禁止使用IP地址。 如果选择从OBS桶获取备份文件必填,参考登录[客户端登录](https://support.huaweicloud.com/clientogw-obs/zh-cn_topic_0045829058.html)OBS Browser客户端,首页为OBS桶列表,可以获取到备份文件所在桶的名称。
|
39
|
+
:type bucket_name: str
|
40
|
+
:param files: 备份文件信息列表。
|
41
|
+
:type files: list[:class:`huaweicloudsdkdrs.v5.BackupFileInfo`]
|
42
|
+
"""
|
43
|
+
|
44
|
+
|
45
|
+
|
46
|
+
self._file_source = None
|
47
|
+
self._bucket_name = None
|
48
|
+
self._files = None
|
49
|
+
self.discriminator = None
|
50
|
+
|
51
|
+
self.file_source = file_source
|
52
|
+
if bucket_name is not None:
|
53
|
+
self.bucket_name = bucket_name
|
54
|
+
self.files = files
|
55
|
+
|
56
|
+
@property
|
57
|
+
def file_source(self):
|
58
|
+
"""Gets the file_source of this BackupInfo.
|
59
|
+
|
60
|
+
备份文件来源:(全部大写) - OBS:存放在OBS中的备份文件。 - RDS:RDS实例的备份文件。
|
61
|
+
|
62
|
+
:return: The file_source of this BackupInfo.
|
63
|
+
:rtype: str
|
64
|
+
"""
|
65
|
+
return self._file_source
|
66
|
+
|
67
|
+
@file_source.setter
|
68
|
+
def file_source(self, file_source):
|
69
|
+
"""Sets the file_source of this BackupInfo.
|
70
|
+
|
71
|
+
备份文件来源:(全部大写) - OBS:存放在OBS中的备份文件。 - RDS:RDS实例的备份文件。
|
72
|
+
|
73
|
+
:param file_source: The file_source of this BackupInfo.
|
74
|
+
:type file_source: str
|
75
|
+
"""
|
76
|
+
self._file_source = file_source
|
77
|
+
|
78
|
+
@property
|
79
|
+
def bucket_name(self):
|
80
|
+
"""Gets the bucket_name of this BackupInfo.
|
81
|
+
|
82
|
+
OBS桶名称,使用OBS桶备份文件恢复时必填。 约束:长度范围为3~63个字符,仅支持小写字母、数字、中划线(-)、点(.),且只能以字母或数字开头和结尾,禁止使用IP地址。 如果选择从OBS桶获取备份文件必填,参考登录[客户端登录](https://support.huaweicloud.com/clientogw-obs/zh-cn_topic_0045829058.html)OBS Browser客户端,首页为OBS桶列表,可以获取到备份文件所在桶的名称。
|
83
|
+
|
84
|
+
:return: The bucket_name of this BackupInfo.
|
85
|
+
:rtype: str
|
86
|
+
"""
|
87
|
+
return self._bucket_name
|
88
|
+
|
89
|
+
@bucket_name.setter
|
90
|
+
def bucket_name(self, bucket_name):
|
91
|
+
"""Sets the bucket_name of this BackupInfo.
|
92
|
+
|
93
|
+
OBS桶名称,使用OBS桶备份文件恢复时必填。 约束:长度范围为3~63个字符,仅支持小写字母、数字、中划线(-)、点(.),且只能以字母或数字开头和结尾,禁止使用IP地址。 如果选择从OBS桶获取备份文件必填,参考登录[客户端登录](https://support.huaweicloud.com/clientogw-obs/zh-cn_topic_0045829058.html)OBS Browser客户端,首页为OBS桶列表,可以获取到备份文件所在桶的名称。
|
94
|
+
|
95
|
+
:param bucket_name: The bucket_name of this BackupInfo.
|
96
|
+
:type bucket_name: str
|
97
|
+
"""
|
98
|
+
self._bucket_name = bucket_name
|
99
|
+
|
100
|
+
@property
|
101
|
+
def files(self):
|
102
|
+
"""Gets the files of this BackupInfo.
|
103
|
+
|
104
|
+
备份文件信息列表。
|
105
|
+
|
106
|
+
:return: The files of this BackupInfo.
|
107
|
+
:rtype: list[:class:`huaweicloudsdkdrs.v5.BackupFileInfo`]
|
108
|
+
"""
|
109
|
+
return self._files
|
110
|
+
|
111
|
+
@files.setter
|
112
|
+
def files(self, files):
|
113
|
+
"""Sets the files of this BackupInfo.
|
114
|
+
|
115
|
+
备份文件信息列表。
|
116
|
+
|
117
|
+
:param files: The files of this BackupInfo.
|
118
|
+
:type files: list[:class:`huaweicloudsdkdrs.v5.BackupFileInfo`]
|
119
|
+
"""
|
120
|
+
self._files = files
|
121
|
+
|
122
|
+
def to_dict(self):
|
123
|
+
"""Returns the model properties as a dict"""
|
124
|
+
result = {}
|
125
|
+
|
126
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
127
|
+
value = getattr(self, attr)
|
128
|
+
if isinstance(value, list):
|
129
|
+
result[attr] = list(map(
|
130
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
131
|
+
value
|
132
|
+
))
|
133
|
+
elif hasattr(value, "to_dict"):
|
134
|
+
result[attr] = value.to_dict()
|
135
|
+
elif isinstance(value, dict):
|
136
|
+
result[attr] = dict(map(
|
137
|
+
lambda item: (item[0], item[1].to_dict())
|
138
|
+
if hasattr(item[1], "to_dict") else item,
|
139
|
+
value.items()
|
140
|
+
))
|
141
|
+
else:
|
142
|
+
if attr in self.sensitive_list:
|
143
|
+
result[attr] = "****"
|
144
|
+
else:
|
145
|
+
result[attr] = value
|
146
|
+
|
147
|
+
return result
|
148
|
+
|
149
|
+
def to_str(self):
|
150
|
+
"""Returns the string representation of the model"""
|
151
|
+
import simplejson as json
|
152
|
+
if six.PY2:
|
153
|
+
import sys
|
154
|
+
reload(sys)
|
155
|
+
sys.setdefaultencoding("utf-8")
|
156
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
157
|
+
|
158
|
+
def __repr__(self):
|
159
|
+
"""For `print`"""
|
160
|
+
return self.to_str()
|
161
|
+
|
162
|
+
def __eq__(self, other):
|
163
|
+
"""Returns true if both objects are equal"""
|
164
|
+
if not isinstance(other, BackupInfo):
|
165
|
+
return False
|
166
|
+
|
167
|
+
return self.__dict__ == other.__dict__
|
168
|
+
|
169
|
+
def __ne__(self, other):
|
170
|
+
"""Returns true if both objects are not equal"""
|
171
|
+
return not self == other
|
@@ -0,0 +1,173 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class BackupInfoResp:
|
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
|
+
'file_source': 'str',
|
21
|
+
'bucket_name': 'str',
|
22
|
+
'file_info': 'list[BackupFileResp]'
|
23
|
+
}
|
24
|
+
|
25
|
+
attribute_map = {
|
26
|
+
'file_source': 'file_source',
|
27
|
+
'bucket_name': 'bucket_name',
|
28
|
+
'file_info': 'file_info'
|
29
|
+
}
|
30
|
+
|
31
|
+
def __init__(self, file_source=None, bucket_name=None, file_info=None):
|
32
|
+
"""BackupInfoResp
|
33
|
+
|
34
|
+
The model defined in huaweicloud sdk
|
35
|
+
|
36
|
+
:param file_source: 备份文件来源,包括OBS和RDS两种。
|
37
|
+
:type file_source: str
|
38
|
+
:param bucket_name: OBS桶名称。
|
39
|
+
:type bucket_name: str
|
40
|
+
:param file_info: 备份文件列表。
|
41
|
+
:type file_info: list[:class:`huaweicloudsdkdrs.v5.BackupFileResp`]
|
42
|
+
"""
|
43
|
+
|
44
|
+
|
45
|
+
|
46
|
+
self._file_source = None
|
47
|
+
self._bucket_name = None
|
48
|
+
self._file_info = None
|
49
|
+
self.discriminator = None
|
50
|
+
|
51
|
+
if file_source is not None:
|
52
|
+
self.file_source = file_source
|
53
|
+
if bucket_name is not None:
|
54
|
+
self.bucket_name = bucket_name
|
55
|
+
if file_info is not None:
|
56
|
+
self.file_info = file_info
|
57
|
+
|
58
|
+
@property
|
59
|
+
def file_source(self):
|
60
|
+
"""Gets the file_source of this BackupInfoResp.
|
61
|
+
|
62
|
+
备份文件来源,包括OBS和RDS两种。
|
63
|
+
|
64
|
+
:return: The file_source of this BackupInfoResp.
|
65
|
+
:rtype: str
|
66
|
+
"""
|
67
|
+
return self._file_source
|
68
|
+
|
69
|
+
@file_source.setter
|
70
|
+
def file_source(self, file_source):
|
71
|
+
"""Sets the file_source of this BackupInfoResp.
|
72
|
+
|
73
|
+
备份文件来源,包括OBS和RDS两种。
|
74
|
+
|
75
|
+
:param file_source: The file_source of this BackupInfoResp.
|
76
|
+
:type file_source: str
|
77
|
+
"""
|
78
|
+
self._file_source = file_source
|
79
|
+
|
80
|
+
@property
|
81
|
+
def bucket_name(self):
|
82
|
+
"""Gets the bucket_name of this BackupInfoResp.
|
83
|
+
|
84
|
+
OBS桶名称。
|
85
|
+
|
86
|
+
:return: The bucket_name of this BackupInfoResp.
|
87
|
+
:rtype: str
|
88
|
+
"""
|
89
|
+
return self._bucket_name
|
90
|
+
|
91
|
+
@bucket_name.setter
|
92
|
+
def bucket_name(self, bucket_name):
|
93
|
+
"""Sets the bucket_name of this BackupInfoResp.
|
94
|
+
|
95
|
+
OBS桶名称。
|
96
|
+
|
97
|
+
:param bucket_name: The bucket_name of this BackupInfoResp.
|
98
|
+
:type bucket_name: str
|
99
|
+
"""
|
100
|
+
self._bucket_name = bucket_name
|
101
|
+
|
102
|
+
@property
|
103
|
+
def file_info(self):
|
104
|
+
"""Gets the file_info of this BackupInfoResp.
|
105
|
+
|
106
|
+
备份文件列表。
|
107
|
+
|
108
|
+
:return: The file_info of this BackupInfoResp.
|
109
|
+
:rtype: list[:class:`huaweicloudsdkdrs.v5.BackupFileResp`]
|
110
|
+
"""
|
111
|
+
return self._file_info
|
112
|
+
|
113
|
+
@file_info.setter
|
114
|
+
def file_info(self, file_info):
|
115
|
+
"""Sets the file_info of this BackupInfoResp.
|
116
|
+
|
117
|
+
备份文件列表。
|
118
|
+
|
119
|
+
:param file_info: The file_info of this BackupInfoResp.
|
120
|
+
:type file_info: list[:class:`huaweicloudsdkdrs.v5.BackupFileResp`]
|
121
|
+
"""
|
122
|
+
self._file_info = file_info
|
123
|
+
|
124
|
+
def to_dict(self):
|
125
|
+
"""Returns the model properties as a dict"""
|
126
|
+
result = {}
|
127
|
+
|
128
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
129
|
+
value = getattr(self, attr)
|
130
|
+
if isinstance(value, list):
|
131
|
+
result[attr] = list(map(
|
132
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
133
|
+
value
|
134
|
+
))
|
135
|
+
elif hasattr(value, "to_dict"):
|
136
|
+
result[attr] = value.to_dict()
|
137
|
+
elif isinstance(value, dict):
|
138
|
+
result[attr] = dict(map(
|
139
|
+
lambda item: (item[0], item[1].to_dict())
|
140
|
+
if hasattr(item[1], "to_dict") else item,
|
141
|
+
value.items()
|
142
|
+
))
|
143
|
+
else:
|
144
|
+
if attr in self.sensitive_list:
|
145
|
+
result[attr] = "****"
|
146
|
+
else:
|
147
|
+
result[attr] = value
|
148
|
+
|
149
|
+
return result
|
150
|
+
|
151
|
+
def to_str(self):
|
152
|
+
"""Returns the string representation of the model"""
|
153
|
+
import simplejson as json
|
154
|
+
if six.PY2:
|
155
|
+
import sys
|
156
|
+
reload(sys)
|
157
|
+
sys.setdefaultencoding("utf-8")
|
158
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
159
|
+
|
160
|
+
def __repr__(self):
|
161
|
+
"""For `print`"""
|
162
|
+
return self.to_str()
|
163
|
+
|
164
|
+
def __eq__(self, other):
|
165
|
+
"""Returns true if both objects are equal"""
|
166
|
+
if not isinstance(other, BackupInfoResp):
|
167
|
+
return False
|
168
|
+
|
169
|
+
return self.__dict__ == other.__dict__
|
170
|
+
|
171
|
+
def __ne__(self, other):
|
172
|
+
"""Returns true if both objects are not equal"""
|
173
|
+
return not self == other
|
@@ -0,0 +1,229 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class BackupJobBaseInfo:
|
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
|
+
'name': 'str',
|
21
|
+
'engine_type': 'str',
|
22
|
+
'description': 'str',
|
23
|
+
'tags': 'list[ResourceTag]',
|
24
|
+
'enterprise_project_id': 'str'
|
25
|
+
}
|
26
|
+
|
27
|
+
attribute_map = {
|
28
|
+
'name': 'name',
|
29
|
+
'engine_type': 'engine_type',
|
30
|
+
'description': 'description',
|
31
|
+
'tags': 'tags',
|
32
|
+
'enterprise_project_id': 'enterprise_project_id'
|
33
|
+
}
|
34
|
+
|
35
|
+
def __init__(self, name=None, engine_type=None, description=None, tags=None, enterprise_project_id=None):
|
36
|
+
"""BackupJobBaseInfo
|
37
|
+
|
38
|
+
The model defined in huaweicloud sdk
|
39
|
+
|
40
|
+
:param name: 任务名称。 约束:任务名称在4位到50位之间,不区分大小写,可以包含字母、数字、中划线或下划线,不能包括其他特殊字符。 - 最小长度:4 - 最大长度:50
|
41
|
+
:type name: str
|
42
|
+
:param engine_type: 数据库引擎。 - sqlserver:RDS for SQL Server引擎
|
43
|
+
:type engine_type: str
|
44
|
+
:param description: 任务描述。
|
45
|
+
:type description: str
|
46
|
+
:param tags: 标签信息。 标签的值可以包含任意语种字母、数字、空格和_ . : / = + - @。
|
47
|
+
:type tags: list[:class:`huaweicloudsdkdrs.v5.ResourceTag`]
|
48
|
+
:param enterprise_project_id: 企业项目ID。
|
49
|
+
:type enterprise_project_id: str
|
50
|
+
"""
|
51
|
+
|
52
|
+
|
53
|
+
|
54
|
+
self._name = None
|
55
|
+
self._engine_type = None
|
56
|
+
self._description = None
|
57
|
+
self._tags = None
|
58
|
+
self._enterprise_project_id = None
|
59
|
+
self.discriminator = None
|
60
|
+
|
61
|
+
self.name = name
|
62
|
+
self.engine_type = engine_type
|
63
|
+
if description is not None:
|
64
|
+
self.description = description
|
65
|
+
if tags is not None:
|
66
|
+
self.tags = tags
|
67
|
+
if enterprise_project_id is not None:
|
68
|
+
self.enterprise_project_id = enterprise_project_id
|
69
|
+
|
70
|
+
@property
|
71
|
+
def name(self):
|
72
|
+
"""Gets the name of this BackupJobBaseInfo.
|
73
|
+
|
74
|
+
任务名称。 约束:任务名称在4位到50位之间,不区分大小写,可以包含字母、数字、中划线或下划线,不能包括其他特殊字符。 - 最小长度:4 - 最大长度:50
|
75
|
+
|
76
|
+
:return: The name of this BackupJobBaseInfo.
|
77
|
+
:rtype: str
|
78
|
+
"""
|
79
|
+
return self._name
|
80
|
+
|
81
|
+
@name.setter
|
82
|
+
def name(self, name):
|
83
|
+
"""Sets the name of this BackupJobBaseInfo.
|
84
|
+
|
85
|
+
任务名称。 约束:任务名称在4位到50位之间,不区分大小写,可以包含字母、数字、中划线或下划线,不能包括其他特殊字符。 - 最小长度:4 - 最大长度:50
|
86
|
+
|
87
|
+
:param name: The name of this BackupJobBaseInfo.
|
88
|
+
:type name: str
|
89
|
+
"""
|
90
|
+
self._name = name
|
91
|
+
|
92
|
+
@property
|
93
|
+
def engine_type(self):
|
94
|
+
"""Gets the engine_type of this BackupJobBaseInfo.
|
95
|
+
|
96
|
+
数据库引擎。 - sqlserver:RDS for SQL Server引擎
|
97
|
+
|
98
|
+
:return: The engine_type of this BackupJobBaseInfo.
|
99
|
+
:rtype: str
|
100
|
+
"""
|
101
|
+
return self._engine_type
|
102
|
+
|
103
|
+
@engine_type.setter
|
104
|
+
def engine_type(self, engine_type):
|
105
|
+
"""Sets the engine_type of this BackupJobBaseInfo.
|
106
|
+
|
107
|
+
数据库引擎。 - sqlserver:RDS for SQL Server引擎
|
108
|
+
|
109
|
+
:param engine_type: The engine_type of this BackupJobBaseInfo.
|
110
|
+
:type engine_type: str
|
111
|
+
"""
|
112
|
+
self._engine_type = engine_type
|
113
|
+
|
114
|
+
@property
|
115
|
+
def description(self):
|
116
|
+
"""Gets the description of this BackupJobBaseInfo.
|
117
|
+
|
118
|
+
任务描述。
|
119
|
+
|
120
|
+
:return: The description of this BackupJobBaseInfo.
|
121
|
+
:rtype: str
|
122
|
+
"""
|
123
|
+
return self._description
|
124
|
+
|
125
|
+
@description.setter
|
126
|
+
def description(self, description):
|
127
|
+
"""Sets the description of this BackupJobBaseInfo.
|
128
|
+
|
129
|
+
任务描述。
|
130
|
+
|
131
|
+
:param description: The description of this BackupJobBaseInfo.
|
132
|
+
:type description: str
|
133
|
+
"""
|
134
|
+
self._description = description
|
135
|
+
|
136
|
+
@property
|
137
|
+
def tags(self):
|
138
|
+
"""Gets the tags of this BackupJobBaseInfo.
|
139
|
+
|
140
|
+
标签信息。 标签的值可以包含任意语种字母、数字、空格和_ . : / = + - @。
|
141
|
+
|
142
|
+
:return: The tags of this BackupJobBaseInfo.
|
143
|
+
:rtype: list[:class:`huaweicloudsdkdrs.v5.ResourceTag`]
|
144
|
+
"""
|
145
|
+
return self._tags
|
146
|
+
|
147
|
+
@tags.setter
|
148
|
+
def tags(self, tags):
|
149
|
+
"""Sets the tags of this BackupJobBaseInfo.
|
150
|
+
|
151
|
+
标签信息。 标签的值可以包含任意语种字母、数字、空格和_ . : / = + - @。
|
152
|
+
|
153
|
+
:param tags: The tags of this BackupJobBaseInfo.
|
154
|
+
:type tags: list[:class:`huaweicloudsdkdrs.v5.ResourceTag`]
|
155
|
+
"""
|
156
|
+
self._tags = tags
|
157
|
+
|
158
|
+
@property
|
159
|
+
def enterprise_project_id(self):
|
160
|
+
"""Gets the enterprise_project_id of this BackupJobBaseInfo.
|
161
|
+
|
162
|
+
企业项目ID。
|
163
|
+
|
164
|
+
:return: The enterprise_project_id of this BackupJobBaseInfo.
|
165
|
+
:rtype: str
|
166
|
+
"""
|
167
|
+
return self._enterprise_project_id
|
168
|
+
|
169
|
+
@enterprise_project_id.setter
|
170
|
+
def enterprise_project_id(self, enterprise_project_id):
|
171
|
+
"""Sets the enterprise_project_id of this BackupJobBaseInfo.
|
172
|
+
|
173
|
+
企业项目ID。
|
174
|
+
|
175
|
+
:param enterprise_project_id: The enterprise_project_id of this BackupJobBaseInfo.
|
176
|
+
:type enterprise_project_id: str
|
177
|
+
"""
|
178
|
+
self._enterprise_project_id = enterprise_project_id
|
179
|
+
|
180
|
+
def to_dict(self):
|
181
|
+
"""Returns the model properties as a dict"""
|
182
|
+
result = {}
|
183
|
+
|
184
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
185
|
+
value = getattr(self, attr)
|
186
|
+
if isinstance(value, list):
|
187
|
+
result[attr] = list(map(
|
188
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
189
|
+
value
|
190
|
+
))
|
191
|
+
elif hasattr(value, "to_dict"):
|
192
|
+
result[attr] = value.to_dict()
|
193
|
+
elif isinstance(value, dict):
|
194
|
+
result[attr] = dict(map(
|
195
|
+
lambda item: (item[0], item[1].to_dict())
|
196
|
+
if hasattr(item[1], "to_dict") else item,
|
197
|
+
value.items()
|
198
|
+
))
|
199
|
+
else:
|
200
|
+
if attr in self.sensitive_list:
|
201
|
+
result[attr] = "****"
|
202
|
+
else:
|
203
|
+
result[attr] = value
|
204
|
+
|
205
|
+
return result
|
206
|
+
|
207
|
+
def to_str(self):
|
208
|
+
"""Returns the string representation of the model"""
|
209
|
+
import simplejson as json
|
210
|
+
if six.PY2:
|
211
|
+
import sys
|
212
|
+
reload(sys)
|
213
|
+
sys.setdefaultencoding("utf-8")
|
214
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
215
|
+
|
216
|
+
def __repr__(self):
|
217
|
+
"""For `print`"""
|
218
|
+
return self.to_str()
|
219
|
+
|
220
|
+
def __eq__(self, other):
|
221
|
+
"""Returns true if both objects are equal"""
|
222
|
+
if not isinstance(other, BackupJobBaseInfo):
|
223
|
+
return False
|
224
|
+
|
225
|
+
return self.__dict__ == other.__dict__
|
226
|
+
|
227
|
+
def __ne__(self, other):
|
228
|
+
"""Returns true if both objects are not equal"""
|
229
|
+
return not self == other
|