huaweicloudsdkdrs 3.1.76__py2.py3-none-any.whl → 3.1.78__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 +1 -0
- huaweicloudsdkdrs/v3/model/__init__.py +1 -0
- huaweicloudsdkdrs/v3/model/customized_dns.py +170 -0
- huaweicloudsdkdrs/v3/model/test_end_point.py +28 -3
- huaweicloudsdkdrs/v3/region/drs_region.py +4 -8
- huaweicloudsdkdrs/v5/__init__.py +30 -0
- huaweicloudsdkdrs/v5/drs_async_client.py +736 -94
- huaweicloudsdkdrs/v5/drs_client.py +736 -94
- huaweicloudsdkdrs/v5/model/__init__.py +30 -0
- huaweicloudsdkdrs/v5/model/action_req.py +3 -3
- huaweicloudsdkdrs/v5/model/base_endpoint.py +6 -6
- huaweicloudsdkdrs/v5/model/base_endpoint_config.py +32 -3
- huaweicloudsdkdrs/v5/model/batch_add_tag_req.py +114 -0
- huaweicloudsdkdrs/v5/model/batch_create_tags_request.py +196 -0
- huaweicloudsdkdrs/v5/model/batch_create_tags_response.py +116 -0
- huaweicloudsdkdrs/v5/model/batch_delete_tag_req.py +114 -0
- huaweicloudsdkdrs/v5/model/batch_delete_tags_request.py +196 -0
- huaweicloudsdkdrs/v5/model/batch_delete_tags_response.py +116 -0
- huaweicloudsdkdrs/v5/model/children_job_list_resp.py +3 -3
- huaweicloudsdkdrs/v5/model/count_instance_by_tags_request.py +168 -0
- huaweicloudsdkdrs/v5/model/count_instance_by_tags_response.py +116 -0
- huaweicloudsdkdrs/v5/model/customized_dns.py +170 -0
- huaweicloudsdkdrs/v5/model/job_base_info.py +3 -3
- huaweicloudsdkdrs/v5/model/job_endpoint_info.py +31 -6
- huaweicloudsdkdrs/v5/model/job_link_resp.py +3 -3
- huaweicloudsdkdrs/v5/model/job_list_resp.py +3 -3
- huaweicloudsdkdrs/v5/model/list_instance_by_tags_request.py +226 -0
- huaweicloudsdkdrs/v5/model/list_instance_by_tags_response.py +145 -0
- huaweicloudsdkdrs/v5/model/list_instance_tags_request.py +171 -0
- huaweicloudsdkdrs/v5/model/list_instance_tags_response.py +116 -0
- huaweicloudsdkdrs/v5/model/list_job_history_parameter.py +283 -0
- huaweicloudsdkdrs/v5/model/list_job_history_parameters_request.py +288 -0
- huaweicloudsdkdrs/v5/model/list_job_history_parameters_response.py +145 -0
- huaweicloudsdkdrs/v5/model/list_job_parameters_request.py +230 -0
- huaweicloudsdkdrs/v5/model/list_job_parameters_response.py +145 -0
- huaweicloudsdkdrs/v5/model/list_jobs_request.py +3 -3
- huaweicloudsdkdrs/v5/model/list_tags_request.py +143 -0
- huaweicloudsdkdrs/v5/model/list_tags_response.py +116 -0
- huaweicloudsdkdrs/v5/model/modify_parameter_req.py +114 -0
- huaweicloudsdkdrs/v5/model/parameter_config.py +312 -0
- huaweicloudsdkdrs/v5/model/parameter_info.py +142 -0
- huaweicloudsdkdrs/v5/model/query_instance_by_tag_req.py +173 -0
- huaweicloudsdkdrs/v5/model/resource_instance.py +202 -0
- huaweicloudsdkdrs/v5/model/resource_tag_info.py +144 -0
- huaweicloudsdkdrs/v5/model/tag.py +142 -0
- huaweicloudsdkdrs/v5/model/tag_match.py +142 -0
- huaweicloudsdkdrs/v5/model/update_job_configurations_request.py +168 -0
- huaweicloudsdkdrs/v5/model/update_job_configurations_response.py +116 -0
- huaweicloudsdkdrs/v5/region/drs_region.py +4 -8
- {huaweicloudsdkdrs-3.1.76.dist-info → huaweicloudsdkdrs-3.1.78.dist-info}/METADATA +2 -2
- {huaweicloudsdkdrs-3.1.76.dist-info → huaweicloudsdkdrs-3.1.78.dist-info}/RECORD +54 -23
- {huaweicloudsdkdrs-3.1.76.dist-info → huaweicloudsdkdrs-3.1.78.dist-info}/LICENSE +0 -0
- {huaweicloudsdkdrs-3.1.76.dist-info → huaweicloudsdkdrs-3.1.78.dist-info}/WHEEL +0 -0
- {huaweicloudsdkdrs-3.1.76.dist-info → huaweicloudsdkdrs-3.1.78.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 CountInstanceByTagsRequest:
|
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
|
+
'resource_type': 'str',
|
21
|
+
'x_language': 'str',
|
22
|
+
'body': 'QueryInstanceByTagReq'
|
23
|
+
}
|
24
|
+
|
25
|
+
attribute_map = {
|
26
|
+
'resource_type': 'resource_type',
|
27
|
+
'x_language': 'X-Language',
|
28
|
+
'body': 'body'
|
29
|
+
}
|
30
|
+
|
31
|
+
def __init__(self, resource_type=None, x_language=None, body=None):
|
32
|
+
"""CountInstanceByTagsRequest
|
33
|
+
|
34
|
+
The model defined in huaweicloud sdk
|
35
|
+
|
36
|
+
:param resource_type: 资源类型。 - migration:实时迁移 - sync:实时同步 - cloudDataGuard:实时灾备 - subscription:数据订阅 - backupMigration:备份迁移 - replay:录制回放
|
37
|
+
:type resource_type: str
|
38
|
+
:param x_language: 请求语言类型。
|
39
|
+
:type x_language: str
|
40
|
+
:param body: Body of the CountInstanceByTagsRequest
|
41
|
+
:type body: :class:`huaweicloudsdkdrs.v5.QueryInstanceByTagReq`
|
42
|
+
"""
|
43
|
+
|
44
|
+
|
45
|
+
|
46
|
+
self._resource_type = None
|
47
|
+
self._x_language = None
|
48
|
+
self._body = None
|
49
|
+
self.discriminator = None
|
50
|
+
|
51
|
+
self.resource_type = resource_type
|
52
|
+
if x_language is not None:
|
53
|
+
self.x_language = x_language
|
54
|
+
if body is not None:
|
55
|
+
self.body = body
|
56
|
+
|
57
|
+
@property
|
58
|
+
def resource_type(self):
|
59
|
+
"""Gets the resource_type of this CountInstanceByTagsRequest.
|
60
|
+
|
61
|
+
资源类型。 - migration:实时迁移 - sync:实时同步 - cloudDataGuard:实时灾备 - subscription:数据订阅 - backupMigration:备份迁移 - replay:录制回放
|
62
|
+
|
63
|
+
:return: The resource_type of this CountInstanceByTagsRequest.
|
64
|
+
:rtype: str
|
65
|
+
"""
|
66
|
+
return self._resource_type
|
67
|
+
|
68
|
+
@resource_type.setter
|
69
|
+
def resource_type(self, resource_type):
|
70
|
+
"""Sets the resource_type of this CountInstanceByTagsRequest.
|
71
|
+
|
72
|
+
资源类型。 - migration:实时迁移 - sync:实时同步 - cloudDataGuard:实时灾备 - subscription:数据订阅 - backupMigration:备份迁移 - replay:录制回放
|
73
|
+
|
74
|
+
:param resource_type: The resource_type of this CountInstanceByTagsRequest.
|
75
|
+
:type resource_type: str
|
76
|
+
"""
|
77
|
+
self._resource_type = resource_type
|
78
|
+
|
79
|
+
@property
|
80
|
+
def x_language(self):
|
81
|
+
"""Gets the x_language of this CountInstanceByTagsRequest.
|
82
|
+
|
83
|
+
请求语言类型。
|
84
|
+
|
85
|
+
:return: The x_language of this CountInstanceByTagsRequest.
|
86
|
+
:rtype: str
|
87
|
+
"""
|
88
|
+
return self._x_language
|
89
|
+
|
90
|
+
@x_language.setter
|
91
|
+
def x_language(self, x_language):
|
92
|
+
"""Sets the x_language of this CountInstanceByTagsRequest.
|
93
|
+
|
94
|
+
请求语言类型。
|
95
|
+
|
96
|
+
:param x_language: The x_language of this CountInstanceByTagsRequest.
|
97
|
+
:type x_language: str
|
98
|
+
"""
|
99
|
+
self._x_language = x_language
|
100
|
+
|
101
|
+
@property
|
102
|
+
def body(self):
|
103
|
+
"""Gets the body of this CountInstanceByTagsRequest.
|
104
|
+
|
105
|
+
:return: The body of this CountInstanceByTagsRequest.
|
106
|
+
:rtype: :class:`huaweicloudsdkdrs.v5.QueryInstanceByTagReq`
|
107
|
+
"""
|
108
|
+
return self._body
|
109
|
+
|
110
|
+
@body.setter
|
111
|
+
def body(self, body):
|
112
|
+
"""Sets the body of this CountInstanceByTagsRequest.
|
113
|
+
|
114
|
+
:param body: The body of this CountInstanceByTagsRequest.
|
115
|
+
:type body: :class:`huaweicloudsdkdrs.v5.QueryInstanceByTagReq`
|
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, CountInstanceByTagsRequest):
|
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 CountInstanceByTagsResponse(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
|
+
'total_count': 'int'
|
22
|
+
}
|
23
|
+
|
24
|
+
attribute_map = {
|
25
|
+
'total_count': 'total_count'
|
26
|
+
}
|
27
|
+
|
28
|
+
def __init__(self, total_count=None):
|
29
|
+
"""CountInstanceByTagsResponse
|
30
|
+
|
31
|
+
The model defined in huaweicloud sdk
|
32
|
+
|
33
|
+
:param total_count: 总数。
|
34
|
+
:type total_count: int
|
35
|
+
"""
|
36
|
+
|
37
|
+
super(CountInstanceByTagsResponse, self).__init__()
|
38
|
+
|
39
|
+
self._total_count = None
|
40
|
+
self.discriminator = None
|
41
|
+
|
42
|
+
if total_count is not None:
|
43
|
+
self.total_count = total_count
|
44
|
+
|
45
|
+
@property
|
46
|
+
def total_count(self):
|
47
|
+
"""Gets the total_count of this CountInstanceByTagsResponse.
|
48
|
+
|
49
|
+
总数。
|
50
|
+
|
51
|
+
:return: The total_count of this CountInstanceByTagsResponse.
|
52
|
+
:rtype: int
|
53
|
+
"""
|
54
|
+
return self._total_count
|
55
|
+
|
56
|
+
@total_count.setter
|
57
|
+
def total_count(self, total_count):
|
58
|
+
"""Sets the total_count of this CountInstanceByTagsResponse.
|
59
|
+
|
60
|
+
总数。
|
61
|
+
|
62
|
+
:param total_count: The total_count of this CountInstanceByTagsResponse.
|
63
|
+
:type total_count: int
|
64
|
+
"""
|
65
|
+
self._total_count = total_count
|
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, CountInstanceByTagsResponse):
|
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,170 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class CustomizedDns:
|
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
|
+
'is_set_dns': 'bool',
|
21
|
+
'set_dns_action': 'str',
|
22
|
+
'dns_ip': 'str'
|
23
|
+
}
|
24
|
+
|
25
|
+
attribute_map = {
|
26
|
+
'is_set_dns': 'is_set_dns',
|
27
|
+
'set_dns_action': 'set_dns_action',
|
28
|
+
'dns_ip': 'dns_ip'
|
29
|
+
}
|
30
|
+
|
31
|
+
def __init__(self, is_set_dns=None, set_dns_action=None, dns_ip=None):
|
32
|
+
"""CustomizedDns
|
33
|
+
|
34
|
+
The model defined in huaweicloud sdk
|
35
|
+
|
36
|
+
:param is_set_dns: 是否设置客户自定义DNS。
|
37
|
+
:type is_set_dns: bool
|
38
|
+
:param set_dns_action: 设置客户自定义DNS的行为。 - add:新增客户自定义DNS IP。 - keep:保持客户自定义DNS IP。 - update:更新客户自定义DNS IP(当DNS IP变化时更新生效)。 - recover:还原系统默认DNS IP(还原时可能会导致域名解析失败,请谨慎操作)。
|
39
|
+
:type set_dns_action: str
|
40
|
+
:param dns_ip: 设置客户自定义DNS IP。
|
41
|
+
:type dns_ip: str
|
42
|
+
"""
|
43
|
+
|
44
|
+
|
45
|
+
|
46
|
+
self._is_set_dns = None
|
47
|
+
self._set_dns_action = None
|
48
|
+
self._dns_ip = None
|
49
|
+
self.discriminator = None
|
50
|
+
|
51
|
+
self.is_set_dns = is_set_dns
|
52
|
+
self.set_dns_action = set_dns_action
|
53
|
+
self.dns_ip = dns_ip
|
54
|
+
|
55
|
+
@property
|
56
|
+
def is_set_dns(self):
|
57
|
+
"""Gets the is_set_dns of this CustomizedDns.
|
58
|
+
|
59
|
+
是否设置客户自定义DNS。
|
60
|
+
|
61
|
+
:return: The is_set_dns of this CustomizedDns.
|
62
|
+
:rtype: bool
|
63
|
+
"""
|
64
|
+
return self._is_set_dns
|
65
|
+
|
66
|
+
@is_set_dns.setter
|
67
|
+
def is_set_dns(self, is_set_dns):
|
68
|
+
"""Sets the is_set_dns of this CustomizedDns.
|
69
|
+
|
70
|
+
是否设置客户自定义DNS。
|
71
|
+
|
72
|
+
:param is_set_dns: The is_set_dns of this CustomizedDns.
|
73
|
+
:type is_set_dns: bool
|
74
|
+
"""
|
75
|
+
self._is_set_dns = is_set_dns
|
76
|
+
|
77
|
+
@property
|
78
|
+
def set_dns_action(self):
|
79
|
+
"""Gets the set_dns_action of this CustomizedDns.
|
80
|
+
|
81
|
+
设置客户自定义DNS的行为。 - add:新增客户自定义DNS IP。 - keep:保持客户自定义DNS IP。 - update:更新客户自定义DNS IP(当DNS IP变化时更新生效)。 - recover:还原系统默认DNS IP(还原时可能会导致域名解析失败,请谨慎操作)。
|
82
|
+
|
83
|
+
:return: The set_dns_action of this CustomizedDns.
|
84
|
+
:rtype: str
|
85
|
+
"""
|
86
|
+
return self._set_dns_action
|
87
|
+
|
88
|
+
@set_dns_action.setter
|
89
|
+
def set_dns_action(self, set_dns_action):
|
90
|
+
"""Sets the set_dns_action of this CustomizedDns.
|
91
|
+
|
92
|
+
设置客户自定义DNS的行为。 - add:新增客户自定义DNS IP。 - keep:保持客户自定义DNS IP。 - update:更新客户自定义DNS IP(当DNS IP变化时更新生效)。 - recover:还原系统默认DNS IP(还原时可能会导致域名解析失败,请谨慎操作)。
|
93
|
+
|
94
|
+
:param set_dns_action: The set_dns_action of this CustomizedDns.
|
95
|
+
:type set_dns_action: str
|
96
|
+
"""
|
97
|
+
self._set_dns_action = set_dns_action
|
98
|
+
|
99
|
+
@property
|
100
|
+
def dns_ip(self):
|
101
|
+
"""Gets the dns_ip of this CustomizedDns.
|
102
|
+
|
103
|
+
设置客户自定义DNS IP。
|
104
|
+
|
105
|
+
:return: The dns_ip of this CustomizedDns.
|
106
|
+
:rtype: str
|
107
|
+
"""
|
108
|
+
return self._dns_ip
|
109
|
+
|
110
|
+
@dns_ip.setter
|
111
|
+
def dns_ip(self, dns_ip):
|
112
|
+
"""Sets the dns_ip of this CustomizedDns.
|
113
|
+
|
114
|
+
设置客户自定义DNS IP。
|
115
|
+
|
116
|
+
:param dns_ip: The dns_ip of this CustomizedDns.
|
117
|
+
:type dns_ip: str
|
118
|
+
"""
|
119
|
+
self._dns_ip = dns_ip
|
120
|
+
|
121
|
+
def to_dict(self):
|
122
|
+
"""Returns the model properties as a dict"""
|
123
|
+
result = {}
|
124
|
+
|
125
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
126
|
+
value = getattr(self, attr)
|
127
|
+
if isinstance(value, list):
|
128
|
+
result[attr] = list(map(
|
129
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
130
|
+
value
|
131
|
+
))
|
132
|
+
elif hasattr(value, "to_dict"):
|
133
|
+
result[attr] = value.to_dict()
|
134
|
+
elif isinstance(value, dict):
|
135
|
+
result[attr] = dict(map(
|
136
|
+
lambda item: (item[0], item[1].to_dict())
|
137
|
+
if hasattr(item[1], "to_dict") else item,
|
138
|
+
value.items()
|
139
|
+
))
|
140
|
+
else:
|
141
|
+
if attr in self.sensitive_list:
|
142
|
+
result[attr] = "****"
|
143
|
+
else:
|
144
|
+
result[attr] = value
|
145
|
+
|
146
|
+
return result
|
147
|
+
|
148
|
+
def to_str(self):
|
149
|
+
"""Returns the string representation of the model"""
|
150
|
+
import simplejson as json
|
151
|
+
if six.PY2:
|
152
|
+
import sys
|
153
|
+
reload(sys)
|
154
|
+
sys.setdefaultencoding("utf-8")
|
155
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
156
|
+
|
157
|
+
def __repr__(self):
|
158
|
+
"""For `print`"""
|
159
|
+
return self.to_str()
|
160
|
+
|
161
|
+
def __eq__(self, other):
|
162
|
+
"""Returns true if both objects are equal"""
|
163
|
+
if not isinstance(other, CustomizedDns):
|
164
|
+
return False
|
165
|
+
|
166
|
+
return self.__dict__ == other.__dict__
|
167
|
+
|
168
|
+
def __ne__(self, other):
|
169
|
+
"""Returns true if both objects are not equal"""
|
170
|
+
return not self == other
|
@@ -59,7 +59,7 @@ class JobBaseInfo:
|
|
59
59
|
:type job_type: str
|
60
60
|
:param multi_write: 灾备类型是否双主灾备。说明: - job_type 是cloudDataGuard时,必填,灾备类型是双主灾备时,multi_write取值true, 否则为false。 - job_type 是其他类型时,multi_write是非必选参数。
|
61
61
|
:type multi_write: bool
|
62
|
-
:param engine_type: 引擎类型。取值: - oracle-to-gaussdbv5:Oracle同步到GaussDB分布式版,实时同步场景使用。
|
62
|
+
:param engine_type: 引擎类型。取值: - oracle-to-gaussdbv5:Oracle同步到GaussDB分布式版,实时同步场景使用。 - redis-to-gaussredis:Redis同步到GeminiDB Redis,实时迁移场景使用。 - rediscluster-to-gaussredis:Redis集群同步到GeminiDB Redis,实时迁移场景使用。
|
63
63
|
:type engine_type: str
|
64
64
|
:param job_direction: 迁移方向。取值: - up:入云 ,灾备场景时对应本云为备。 - down:出云,灾备场景时对应本云为主。 - non-dbs:自建。
|
65
65
|
:type job_direction: str
|
@@ -195,7 +195,7 @@ class JobBaseInfo:
|
|
195
195
|
def engine_type(self):
|
196
196
|
"""Gets the engine_type of this JobBaseInfo.
|
197
197
|
|
198
|
-
引擎类型。取值: - oracle-to-gaussdbv5:Oracle同步到GaussDB分布式版,实时同步场景使用。
|
198
|
+
引擎类型。取值: - oracle-to-gaussdbv5:Oracle同步到GaussDB分布式版,实时同步场景使用。 - redis-to-gaussredis:Redis同步到GeminiDB Redis,实时迁移场景使用。 - rediscluster-to-gaussredis:Redis集群同步到GeminiDB Redis,实时迁移场景使用。
|
199
199
|
|
200
200
|
:return: The engine_type of this JobBaseInfo.
|
201
201
|
:rtype: str
|
@@ -206,7 +206,7 @@ class JobBaseInfo:
|
|
206
206
|
def engine_type(self, engine_type):
|
207
207
|
"""Sets the engine_type of this JobBaseInfo.
|
208
208
|
|
209
|
-
引擎类型。取值: - oracle-to-gaussdbv5:Oracle同步到GaussDB分布式版,实时同步场景使用。
|
209
|
+
引擎类型。取值: - oracle-to-gaussdbv5:Oracle同步到GaussDB分布式版,实时同步场景使用。 - redis-to-gaussredis:Redis同步到GeminiDB Redis,实时迁移场景使用。 - rediscluster-to-gaussredis:Redis集群同步到GeminiDB Redis,实时迁移场景使用。
|
210
210
|
|
211
211
|
:param engine_type: The engine_type of this JobBaseInfo.
|
212
212
|
:type engine_type: str
|
@@ -24,7 +24,8 @@ class JobEndpointInfo:
|
|
24
24
|
'cloud': 'CloudBaseInfo',
|
25
25
|
'vpc': 'CloudVpcInfo',
|
26
26
|
'config': 'BaseEndpointConfig',
|
27
|
-
'ssl': 'EndpointSslConfig'
|
27
|
+
'ssl': 'EndpointSslConfig',
|
28
|
+
'customized_dns': 'CustomizedDns'
|
28
29
|
}
|
29
30
|
|
30
31
|
attribute_map = {
|
@@ -35,15 +36,16 @@ class JobEndpointInfo:
|
|
35
36
|
'cloud': 'cloud',
|
36
37
|
'vpc': 'vpc',
|
37
38
|
'config': 'config',
|
38
|
-
'ssl': 'ssl'
|
39
|
+
'ssl': 'ssl',
|
40
|
+
'customized_dns': 'customized_dns'
|
39
41
|
}
|
40
42
|
|
41
|
-
def __init__(self, db_type=None, endpoint_type=None, endpoint_role=None, endpoint=None, cloud=None, vpc=None, config=None, ssl=None):
|
43
|
+
def __init__(self, db_type=None, endpoint_type=None, endpoint_role=None, endpoint=None, cloud=None, vpc=None, config=None, ssl=None, customized_dns=None):
|
42
44
|
"""JobEndpointInfo
|
43
45
|
|
44
46
|
The model defined in huaweicloud sdk
|
45
47
|
|
46
|
-
:param db_type: 数据库类型。取值: - oracle:Oracle。 - gaussdbv5:GaussDB分布式版。
|
48
|
+
:param db_type: 数据库类型。取值: - oracle:Oracle。 - gaussdbv5:GaussDB分布式版。 - redis:Redis。 - rediscluster:Redis集群版。 - gaussredis: GeminiDB Redis。
|
47
49
|
:type db_type: str
|
48
50
|
:param endpoint_type: 数据库实例类型。取值: - offline:自建数据库。 - ecs:华为云ECS自建数据库。 - cloud:华为云数据库。
|
49
51
|
:type endpoint_type: str
|
@@ -59,6 +61,8 @@ class JobEndpointInfo:
|
|
59
61
|
:type config: :class:`huaweicloudsdkdrs.v5.BaseEndpointConfig`
|
60
62
|
:param ssl:
|
61
63
|
:type ssl: :class:`huaweicloudsdkdrs.v5.EndpointSslConfig`
|
64
|
+
:param customized_dns:
|
65
|
+
:type customized_dns: :class:`huaweicloudsdkdrs.v5.CustomizedDns`
|
62
66
|
"""
|
63
67
|
|
64
68
|
|
@@ -71,6 +75,7 @@ class JobEndpointInfo:
|
|
71
75
|
self._vpc = None
|
72
76
|
self._config = None
|
73
77
|
self._ssl = None
|
78
|
+
self._customized_dns = None
|
74
79
|
self.discriminator = None
|
75
80
|
|
76
81
|
self.db_type = db_type
|
@@ -85,12 +90,14 @@ class JobEndpointInfo:
|
|
85
90
|
self.config = config
|
86
91
|
if ssl is not None:
|
87
92
|
self.ssl = ssl
|
93
|
+
if customized_dns is not None:
|
94
|
+
self.customized_dns = customized_dns
|
88
95
|
|
89
96
|
@property
|
90
97
|
def db_type(self):
|
91
98
|
"""Gets the db_type of this JobEndpointInfo.
|
92
99
|
|
93
|
-
数据库类型。取值: - oracle:Oracle。 - gaussdbv5:GaussDB分布式版。
|
100
|
+
数据库类型。取值: - oracle:Oracle。 - gaussdbv5:GaussDB分布式版。 - redis:Redis。 - rediscluster:Redis集群版。 - gaussredis: GeminiDB Redis。
|
94
101
|
|
95
102
|
:return: The db_type of this JobEndpointInfo.
|
96
103
|
:rtype: str
|
@@ -101,7 +108,7 @@ class JobEndpointInfo:
|
|
101
108
|
def db_type(self, db_type):
|
102
109
|
"""Sets the db_type of this JobEndpointInfo.
|
103
110
|
|
104
|
-
数据库类型。取值: - oracle:Oracle。 - gaussdbv5:GaussDB分布式版。
|
111
|
+
数据库类型。取值: - oracle:Oracle。 - gaussdbv5:GaussDB分布式版。 - redis:Redis。 - rediscluster:Redis集群版。 - gaussredis: GeminiDB Redis。
|
105
112
|
|
106
113
|
:param db_type: The db_type of this JobEndpointInfo.
|
107
114
|
:type db_type: str
|
@@ -242,6 +249,24 @@ class JobEndpointInfo:
|
|
242
249
|
"""
|
243
250
|
self._ssl = ssl
|
244
251
|
|
252
|
+
@property
|
253
|
+
def customized_dns(self):
|
254
|
+
"""Gets the customized_dns of this JobEndpointInfo.
|
255
|
+
|
256
|
+
:return: The customized_dns of this JobEndpointInfo.
|
257
|
+
:rtype: :class:`huaweicloudsdkdrs.v5.CustomizedDns`
|
258
|
+
"""
|
259
|
+
return self._customized_dns
|
260
|
+
|
261
|
+
@customized_dns.setter
|
262
|
+
def customized_dns(self, customized_dns):
|
263
|
+
"""Sets the customized_dns of this JobEndpointInfo.
|
264
|
+
|
265
|
+
:param customized_dns: The customized_dns of this JobEndpointInfo.
|
266
|
+
:type customized_dns: :class:`huaweicloudsdkdrs.v5.CustomizedDns`
|
267
|
+
"""
|
268
|
+
self._customized_dns = customized_dns
|
269
|
+
|
245
270
|
def to_dict(self):
|
246
271
|
"""Returns the model properties as a dict"""
|
247
272
|
result = {}
|
@@ -47,7 +47,7 @@ class JobLinkResp:
|
|
47
47
|
|
48
48
|
:param job_type: 任务场景。取值: - migration:实时迁移。 - sync:实时同步。 - cloudDataGuard:实时灾备。
|
49
49
|
:type job_type: str
|
50
|
-
:param engine_type: 引擎类型。取值: - oracle-to-gaussdbv5:Oracle同步到GaussDB分布式版,实时同步场景使用。
|
50
|
+
:param engine_type: 引擎类型。取值: - oracle-to-gaussdbv5:Oracle同步到GaussDB分布式版,实时同步场景使用。 - redis-to-gaussredis:Redis同步到GeminiDB Redis,实时迁移场景使用。 - rediscluster-to-gaussredis:Redis集群同步到GeminiDB Redis,实时迁移场景使用。
|
51
51
|
:type engine_type: str
|
52
52
|
:param source_endpoint_type: 源数据库实例类型。取值: - offline:自建数据库。 - ecs:华为云ECS自建数据库。 - cloud:华为云数据库。
|
53
53
|
:type source_endpoint_type: str
|
@@ -114,7 +114,7 @@ class JobLinkResp:
|
|
114
114
|
def engine_type(self):
|
115
115
|
"""Gets the engine_type of this JobLinkResp.
|
116
116
|
|
117
|
-
引擎类型。取值: - oracle-to-gaussdbv5:Oracle同步到GaussDB分布式版,实时同步场景使用。
|
117
|
+
引擎类型。取值: - oracle-to-gaussdbv5:Oracle同步到GaussDB分布式版,实时同步场景使用。 - redis-to-gaussredis:Redis同步到GeminiDB Redis,实时迁移场景使用。 - rediscluster-to-gaussredis:Redis集群同步到GeminiDB Redis,实时迁移场景使用。
|
118
118
|
|
119
119
|
:return: The engine_type of this JobLinkResp.
|
120
120
|
:rtype: str
|
@@ -125,7 +125,7 @@ class JobLinkResp:
|
|
125
125
|
def engine_type(self, engine_type):
|
126
126
|
"""Sets the engine_type of this JobLinkResp.
|
127
127
|
|
128
|
-
引擎类型。取值: - oracle-to-gaussdbv5:Oracle同步到GaussDB分布式版,实时同步场景使用。
|
128
|
+
引擎类型。取值: - oracle-to-gaussdbv5:Oracle同步到GaussDB分布式版,实时同步场景使用。 - redis-to-gaussredis:Redis同步到GeminiDB Redis,实时迁移场景使用。 - rediscluster-to-gaussredis:Redis集群同步到GeminiDB Redis,实时迁移场景使用。
|
129
129
|
|
130
130
|
:param engine_type: The engine_type of this JobLinkResp.
|
131
131
|
:type engine_type: str
|
@@ -77,7 +77,7 @@ class JobListResp:
|
|
77
77
|
:type description: str
|
78
78
|
:param create_time: 任务创建时间。
|
79
79
|
:type create_time: str
|
80
|
-
:param engine_type: 引擎类型。取值: - oracle-to-gaussdbv5:Oracle同步到GaussDB分布式版,实时同步场景使用。
|
80
|
+
:param engine_type: 引擎类型。取值: - oracle-to-gaussdbv5:Oracle同步到GaussDB分布式版,实时同步场景使用。 - redis-to-gaussredis:redis同步到GeminiDB Redis,实时迁移场景使用。 - rediscluster-to-gaussredis:redis集群同步到GeminiDB Redis,实时迁移场景使用。
|
81
81
|
:type engine_type: str
|
82
82
|
:param net_type: 网络类型。取值: - eip:公网网络。 - vpc:VPC网络,灾备场景不支持选择VPC网络。 - vpn:VPN、专线网络。
|
83
83
|
:type net_type: str
|
@@ -269,7 +269,7 @@ class JobListResp:
|
|
269
269
|
def engine_type(self):
|
270
270
|
"""Gets the engine_type of this JobListResp.
|
271
271
|
|
272
|
-
引擎类型。取值: - oracle-to-gaussdbv5:Oracle同步到GaussDB分布式版,实时同步场景使用。
|
272
|
+
引擎类型。取值: - oracle-to-gaussdbv5:Oracle同步到GaussDB分布式版,实时同步场景使用。 - redis-to-gaussredis:redis同步到GeminiDB Redis,实时迁移场景使用。 - rediscluster-to-gaussredis:redis集群同步到GeminiDB Redis,实时迁移场景使用。
|
273
273
|
|
274
274
|
:return: The engine_type of this JobListResp.
|
275
275
|
:rtype: str
|
@@ -280,7 +280,7 @@ class JobListResp:
|
|
280
280
|
def engine_type(self, engine_type):
|
281
281
|
"""Sets the engine_type of this JobListResp.
|
282
282
|
|
283
|
-
引擎类型。取值: - oracle-to-gaussdbv5:Oracle同步到GaussDB分布式版,实时同步场景使用。
|
283
|
+
引擎类型。取值: - oracle-to-gaussdbv5:Oracle同步到GaussDB分布式版,实时同步场景使用。 - redis-to-gaussredis:redis同步到GeminiDB Redis,实时迁移场景使用。 - rediscluster-to-gaussredis:redis集群同步到GeminiDB Redis,实时迁移场景使用。
|
284
284
|
|
285
285
|
:param engine_type: The engine_type of this JobListResp.
|
286
286
|
:type engine_type: str
|