huaweicloudsdkgaussdbforopengauss 3.1.42__py2.py3-none-any.whl → 3.1.44__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.
- huaweicloudsdkgaussdbforopengauss/v3/__init__.py +26 -0
- huaweicloudsdkgaussdbforopengauss/v3/gaussdbforopengauss_async_client.py +393 -0
- huaweicloudsdkgaussdbforopengauss/v3/gaussdbforopengauss_client.py +387 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/__init__.py +26 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/backups_result.py +372 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/configuration_result.py +339 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/create_db_instance_request.py +140 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/create_db_instance_response.py +170 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/flavor_result.py +310 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/list_db_backups_request.py +318 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/list_db_backups_response.py +145 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/list_db_flavors_request.py +260 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/list_db_flavors_response.py +145 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/list_ha_result.py +142 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/list_instance_result.py +932 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/list_instances_details_request.py +376 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/list_instances_details_response.py +145 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/list_param_group_templates_request.py +173 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/list_param_group_templates_response.py +145 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/node_result.py +311 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/open_gauss_datastore_option.py +143 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/open_gauss_datastore_result.py +142 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/open_gauss_ha_option.py +170 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/open_gauss_ha_result.py +170 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/open_gauss_instance_request_body.py +693 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/open_gauss_instance_result.py +544 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/open_gauss_volume_result.py +142 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/show_instance_param_group_request.py +143 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/show_instance_param_group_response.py +232 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/tag_result.py +142 -0
- {huaweicloudsdkgaussdbforopengauss-3.1.42.dist-info → huaweicloudsdkgaussdbforopengauss-3.1.44.dist-info}/METADATA +2 -2
- {huaweicloudsdkgaussdbforopengauss-3.1.42.dist-info → huaweicloudsdkgaussdbforopengauss-3.1.44.dist-info}/RECORD +35 -9
- {huaweicloudsdkgaussdbforopengauss-3.1.42.dist-info → huaweicloudsdkgaussdbforopengauss-3.1.44.dist-info}/LICENSE +0 -0
- {huaweicloudsdkgaussdbforopengauss-3.1.42.dist-info → huaweicloudsdkgaussdbforopengauss-3.1.44.dist-info}/WHEEL +0 -0
- {huaweicloudsdkgaussdbforopengauss-3.1.42.dist-info → huaweicloudsdkgaussdbforopengauss-3.1.44.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,260 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class ListDbFlavorsRequest:
|
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
|
+
'version': 'str',
|
22
|
+
'spec_code': 'str',
|
23
|
+
'ha_mode': 'str',
|
24
|
+
'limit': 'int',
|
25
|
+
'offset': 'int'
|
26
|
+
}
|
27
|
+
|
28
|
+
attribute_map = {
|
29
|
+
'x_language': 'X-Language',
|
30
|
+
'version': 'version',
|
31
|
+
'spec_code': 'spec_code',
|
32
|
+
'ha_mode': 'ha_mode',
|
33
|
+
'limit': 'limit',
|
34
|
+
'offset': 'offset'
|
35
|
+
}
|
36
|
+
|
37
|
+
def __init__(self, x_language=None, version=None, spec_code=None, ha_mode=None, limit=None, offset=None):
|
38
|
+
"""ListDbFlavorsRequest
|
39
|
+
|
40
|
+
The model defined in huaweicloud sdk
|
41
|
+
|
42
|
+
:param x_language: 语言
|
43
|
+
:type x_language: str
|
44
|
+
:param version: 数据库版本号。
|
45
|
+
:type version: str
|
46
|
+
:param spec_code: 规格编码
|
47
|
+
:type spec_code: str
|
48
|
+
:param ha_mode: 实例类型 集中式centralization_standard 分布式enterprise
|
49
|
+
:type ha_mode: str
|
50
|
+
:param limit: 查询记录数。默认为100,不能为负数,最小值为1,最大值为100。
|
51
|
+
:type limit: int
|
52
|
+
:param offset: 索引位置,偏移量。从第一条数据偏移offset条数据后开始查询,默认为0(偏移0条数据,表示从第一条数据开始查询),必须为数字,不能为负数。
|
53
|
+
:type offset: int
|
54
|
+
"""
|
55
|
+
|
56
|
+
|
57
|
+
|
58
|
+
self._x_language = None
|
59
|
+
self._version = None
|
60
|
+
self._spec_code = None
|
61
|
+
self._ha_mode = None
|
62
|
+
self._limit = None
|
63
|
+
self._offset = None
|
64
|
+
self.discriminator = None
|
65
|
+
|
66
|
+
if x_language is not None:
|
67
|
+
self.x_language = x_language
|
68
|
+
if version is not None:
|
69
|
+
self.version = version
|
70
|
+
if spec_code is not None:
|
71
|
+
self.spec_code = spec_code
|
72
|
+
if ha_mode is not None:
|
73
|
+
self.ha_mode = ha_mode
|
74
|
+
if limit is not None:
|
75
|
+
self.limit = limit
|
76
|
+
if offset is not None:
|
77
|
+
self.offset = offset
|
78
|
+
|
79
|
+
@property
|
80
|
+
def x_language(self):
|
81
|
+
"""Gets the x_language of this ListDbFlavorsRequest.
|
82
|
+
|
83
|
+
语言
|
84
|
+
|
85
|
+
:return: The x_language of this ListDbFlavorsRequest.
|
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 ListDbFlavorsRequest.
|
93
|
+
|
94
|
+
语言
|
95
|
+
|
96
|
+
:param x_language: The x_language of this ListDbFlavorsRequest.
|
97
|
+
:type x_language: str
|
98
|
+
"""
|
99
|
+
self._x_language = x_language
|
100
|
+
|
101
|
+
@property
|
102
|
+
def version(self):
|
103
|
+
"""Gets the version of this ListDbFlavorsRequest.
|
104
|
+
|
105
|
+
数据库版本号。
|
106
|
+
|
107
|
+
:return: The version of this ListDbFlavorsRequest.
|
108
|
+
:rtype: str
|
109
|
+
"""
|
110
|
+
return self._version
|
111
|
+
|
112
|
+
@version.setter
|
113
|
+
def version(self, version):
|
114
|
+
"""Sets the version of this ListDbFlavorsRequest.
|
115
|
+
|
116
|
+
数据库版本号。
|
117
|
+
|
118
|
+
:param version: The version of this ListDbFlavorsRequest.
|
119
|
+
:type version: str
|
120
|
+
"""
|
121
|
+
self._version = version
|
122
|
+
|
123
|
+
@property
|
124
|
+
def spec_code(self):
|
125
|
+
"""Gets the spec_code of this ListDbFlavorsRequest.
|
126
|
+
|
127
|
+
规格编码
|
128
|
+
|
129
|
+
:return: The spec_code of this ListDbFlavorsRequest.
|
130
|
+
:rtype: str
|
131
|
+
"""
|
132
|
+
return self._spec_code
|
133
|
+
|
134
|
+
@spec_code.setter
|
135
|
+
def spec_code(self, spec_code):
|
136
|
+
"""Sets the spec_code of this ListDbFlavorsRequest.
|
137
|
+
|
138
|
+
规格编码
|
139
|
+
|
140
|
+
:param spec_code: The spec_code of this ListDbFlavorsRequest.
|
141
|
+
:type spec_code: str
|
142
|
+
"""
|
143
|
+
self._spec_code = spec_code
|
144
|
+
|
145
|
+
@property
|
146
|
+
def ha_mode(self):
|
147
|
+
"""Gets the ha_mode of this ListDbFlavorsRequest.
|
148
|
+
|
149
|
+
实例类型 集中式centralization_standard 分布式enterprise
|
150
|
+
|
151
|
+
:return: The ha_mode of this ListDbFlavorsRequest.
|
152
|
+
:rtype: str
|
153
|
+
"""
|
154
|
+
return self._ha_mode
|
155
|
+
|
156
|
+
@ha_mode.setter
|
157
|
+
def ha_mode(self, ha_mode):
|
158
|
+
"""Sets the ha_mode of this ListDbFlavorsRequest.
|
159
|
+
|
160
|
+
实例类型 集中式centralization_standard 分布式enterprise
|
161
|
+
|
162
|
+
:param ha_mode: The ha_mode of this ListDbFlavorsRequest.
|
163
|
+
:type ha_mode: str
|
164
|
+
"""
|
165
|
+
self._ha_mode = ha_mode
|
166
|
+
|
167
|
+
@property
|
168
|
+
def limit(self):
|
169
|
+
"""Gets the limit of this ListDbFlavorsRequest.
|
170
|
+
|
171
|
+
查询记录数。默认为100,不能为负数,最小值为1,最大值为100。
|
172
|
+
|
173
|
+
:return: The limit of this ListDbFlavorsRequest.
|
174
|
+
:rtype: int
|
175
|
+
"""
|
176
|
+
return self._limit
|
177
|
+
|
178
|
+
@limit.setter
|
179
|
+
def limit(self, limit):
|
180
|
+
"""Sets the limit of this ListDbFlavorsRequest.
|
181
|
+
|
182
|
+
查询记录数。默认为100,不能为负数,最小值为1,最大值为100。
|
183
|
+
|
184
|
+
:param limit: The limit of this ListDbFlavorsRequest.
|
185
|
+
:type limit: int
|
186
|
+
"""
|
187
|
+
self._limit = limit
|
188
|
+
|
189
|
+
@property
|
190
|
+
def offset(self):
|
191
|
+
"""Gets the offset of this ListDbFlavorsRequest.
|
192
|
+
|
193
|
+
索引位置,偏移量。从第一条数据偏移offset条数据后开始查询,默认为0(偏移0条数据,表示从第一条数据开始查询),必须为数字,不能为负数。
|
194
|
+
|
195
|
+
:return: The offset of this ListDbFlavorsRequest.
|
196
|
+
:rtype: int
|
197
|
+
"""
|
198
|
+
return self._offset
|
199
|
+
|
200
|
+
@offset.setter
|
201
|
+
def offset(self, offset):
|
202
|
+
"""Sets the offset of this ListDbFlavorsRequest.
|
203
|
+
|
204
|
+
索引位置,偏移量。从第一条数据偏移offset条数据后开始查询,默认为0(偏移0条数据,表示从第一条数据开始查询),必须为数字,不能为负数。
|
205
|
+
|
206
|
+
:param offset: The offset of this ListDbFlavorsRequest.
|
207
|
+
:type offset: int
|
208
|
+
"""
|
209
|
+
self._offset = offset
|
210
|
+
|
211
|
+
def to_dict(self):
|
212
|
+
"""Returns the model properties as a dict"""
|
213
|
+
result = {}
|
214
|
+
|
215
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
216
|
+
value = getattr(self, attr)
|
217
|
+
if isinstance(value, list):
|
218
|
+
result[attr] = list(map(
|
219
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
220
|
+
value
|
221
|
+
))
|
222
|
+
elif hasattr(value, "to_dict"):
|
223
|
+
result[attr] = value.to_dict()
|
224
|
+
elif isinstance(value, dict):
|
225
|
+
result[attr] = dict(map(
|
226
|
+
lambda item: (item[0], item[1].to_dict())
|
227
|
+
if hasattr(item[1], "to_dict") else item,
|
228
|
+
value.items()
|
229
|
+
))
|
230
|
+
else:
|
231
|
+
if attr in self.sensitive_list:
|
232
|
+
result[attr] = "****"
|
233
|
+
else:
|
234
|
+
result[attr] = value
|
235
|
+
|
236
|
+
return result
|
237
|
+
|
238
|
+
def to_str(self):
|
239
|
+
"""Returns the string representation of the model"""
|
240
|
+
import simplejson as json
|
241
|
+
if six.PY2:
|
242
|
+
import sys
|
243
|
+
reload(sys)
|
244
|
+
sys.setdefaultencoding("utf-8")
|
245
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
246
|
+
|
247
|
+
def __repr__(self):
|
248
|
+
"""For `print`"""
|
249
|
+
return self.to_str()
|
250
|
+
|
251
|
+
def __eq__(self, other):
|
252
|
+
"""Returns true if both objects are equal"""
|
253
|
+
if not isinstance(other, ListDbFlavorsRequest):
|
254
|
+
return False
|
255
|
+
|
256
|
+
return self.__dict__ == other.__dict__
|
257
|
+
|
258
|
+
def __ne__(self, other):
|
259
|
+
"""Returns true if both objects are not equal"""
|
260
|
+
return not self == other
|
@@ -0,0 +1,145 @@
|
|
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 ListDbFlavorsResponse(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
|
+
'flavors': 'list[FlavorResult]',
|
22
|
+
'total': 'int'
|
23
|
+
}
|
24
|
+
|
25
|
+
attribute_map = {
|
26
|
+
'flavors': 'flavors',
|
27
|
+
'total': 'total'
|
28
|
+
}
|
29
|
+
|
30
|
+
def __init__(self, flavors=None, total=None):
|
31
|
+
"""ListDbFlavorsResponse
|
32
|
+
|
33
|
+
The model defined in huaweicloud sdk
|
34
|
+
|
35
|
+
:param flavors: 实例规格信息。
|
36
|
+
:type flavors: list[:class:`huaweicloudsdkgaussdbforopengauss.v3.FlavorResult`]
|
37
|
+
:param total: 查询总数
|
38
|
+
:type total: int
|
39
|
+
"""
|
40
|
+
|
41
|
+
super(ListDbFlavorsResponse, self).__init__()
|
42
|
+
|
43
|
+
self._flavors = None
|
44
|
+
self._total = None
|
45
|
+
self.discriminator = None
|
46
|
+
|
47
|
+
if flavors is not None:
|
48
|
+
self.flavors = flavors
|
49
|
+
if total is not None:
|
50
|
+
self.total = total
|
51
|
+
|
52
|
+
@property
|
53
|
+
def flavors(self):
|
54
|
+
"""Gets the flavors of this ListDbFlavorsResponse.
|
55
|
+
|
56
|
+
实例规格信息。
|
57
|
+
|
58
|
+
:return: The flavors of this ListDbFlavorsResponse.
|
59
|
+
:rtype: list[:class:`huaweicloudsdkgaussdbforopengauss.v3.FlavorResult`]
|
60
|
+
"""
|
61
|
+
return self._flavors
|
62
|
+
|
63
|
+
@flavors.setter
|
64
|
+
def flavors(self, flavors):
|
65
|
+
"""Sets the flavors of this ListDbFlavorsResponse.
|
66
|
+
|
67
|
+
实例规格信息。
|
68
|
+
|
69
|
+
:param flavors: The flavors of this ListDbFlavorsResponse.
|
70
|
+
:type flavors: list[:class:`huaweicloudsdkgaussdbforopengauss.v3.FlavorResult`]
|
71
|
+
"""
|
72
|
+
self._flavors = flavors
|
73
|
+
|
74
|
+
@property
|
75
|
+
def total(self):
|
76
|
+
"""Gets the total of this ListDbFlavorsResponse.
|
77
|
+
|
78
|
+
查询总数
|
79
|
+
|
80
|
+
:return: The total of this ListDbFlavorsResponse.
|
81
|
+
:rtype: int
|
82
|
+
"""
|
83
|
+
return self._total
|
84
|
+
|
85
|
+
@total.setter
|
86
|
+
def total(self, total):
|
87
|
+
"""Sets the total of this ListDbFlavorsResponse.
|
88
|
+
|
89
|
+
查询总数
|
90
|
+
|
91
|
+
:param total: The total of this ListDbFlavorsResponse.
|
92
|
+
:type total: int
|
93
|
+
"""
|
94
|
+
self._total = total
|
95
|
+
|
96
|
+
def to_dict(self):
|
97
|
+
"""Returns the model properties as a dict"""
|
98
|
+
result = {}
|
99
|
+
|
100
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
101
|
+
value = getattr(self, attr)
|
102
|
+
if isinstance(value, list):
|
103
|
+
result[attr] = list(map(
|
104
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
105
|
+
value
|
106
|
+
))
|
107
|
+
elif hasattr(value, "to_dict"):
|
108
|
+
result[attr] = value.to_dict()
|
109
|
+
elif isinstance(value, dict):
|
110
|
+
result[attr] = dict(map(
|
111
|
+
lambda item: (item[0], item[1].to_dict())
|
112
|
+
if hasattr(item[1], "to_dict") else item,
|
113
|
+
value.items()
|
114
|
+
))
|
115
|
+
else:
|
116
|
+
if attr in self.sensitive_list:
|
117
|
+
result[attr] = "****"
|
118
|
+
else:
|
119
|
+
result[attr] = value
|
120
|
+
|
121
|
+
return result
|
122
|
+
|
123
|
+
def to_str(self):
|
124
|
+
"""Returns the string representation of the model"""
|
125
|
+
import simplejson as json
|
126
|
+
if six.PY2:
|
127
|
+
import sys
|
128
|
+
reload(sys)
|
129
|
+
sys.setdefaultencoding("utf-8")
|
130
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
131
|
+
|
132
|
+
def __repr__(self):
|
133
|
+
"""For `print`"""
|
134
|
+
return self.to_str()
|
135
|
+
|
136
|
+
def __eq__(self, other):
|
137
|
+
"""Returns true if both objects are equal"""
|
138
|
+
if not isinstance(other, ListDbFlavorsResponse):
|
139
|
+
return False
|
140
|
+
|
141
|
+
return self.__dict__ == other.__dict__
|
142
|
+
|
143
|
+
def __ne__(self, other):
|
144
|
+
"""Returns true if both objects are not equal"""
|
145
|
+
return not self == other
|
@@ -0,0 +1,142 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class ListHaResult:
|
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
|
+
'consistency': 'str',
|
21
|
+
'replication_mode': 'str'
|
22
|
+
}
|
23
|
+
|
24
|
+
attribute_map = {
|
25
|
+
'consistency': 'consistency',
|
26
|
+
'replication_mode': 'replication_mode'
|
27
|
+
}
|
28
|
+
|
29
|
+
def __init__(self, consistency=None, replication_mode=None):
|
30
|
+
"""ListHaResult
|
31
|
+
|
32
|
+
The model defined in huaweicloud sdk
|
33
|
+
|
34
|
+
:param consistency: 数据库一致性类型,分布式模式实例仅有。取值为“strong”、“eventual”,分别表示强一致性、最终一致性。
|
35
|
+
:type consistency: str
|
36
|
+
:param replication_mode: 备机同步参数。 取值:非空。 GaussDB为 “sync” 说明: “sync”为同步模式。
|
37
|
+
:type replication_mode: str
|
38
|
+
"""
|
39
|
+
|
40
|
+
|
41
|
+
|
42
|
+
self._consistency = None
|
43
|
+
self._replication_mode = None
|
44
|
+
self.discriminator = None
|
45
|
+
|
46
|
+
self.consistency = consistency
|
47
|
+
self.replication_mode = replication_mode
|
48
|
+
|
49
|
+
@property
|
50
|
+
def consistency(self):
|
51
|
+
"""Gets the consistency of this ListHaResult.
|
52
|
+
|
53
|
+
数据库一致性类型,分布式模式实例仅有。取值为“strong”、“eventual”,分别表示强一致性、最终一致性。
|
54
|
+
|
55
|
+
:return: The consistency of this ListHaResult.
|
56
|
+
:rtype: str
|
57
|
+
"""
|
58
|
+
return self._consistency
|
59
|
+
|
60
|
+
@consistency.setter
|
61
|
+
def consistency(self, consistency):
|
62
|
+
"""Sets the consistency of this ListHaResult.
|
63
|
+
|
64
|
+
数据库一致性类型,分布式模式实例仅有。取值为“strong”、“eventual”,分别表示强一致性、最终一致性。
|
65
|
+
|
66
|
+
:param consistency: The consistency of this ListHaResult.
|
67
|
+
:type consistency: str
|
68
|
+
"""
|
69
|
+
self._consistency = consistency
|
70
|
+
|
71
|
+
@property
|
72
|
+
def replication_mode(self):
|
73
|
+
"""Gets the replication_mode of this ListHaResult.
|
74
|
+
|
75
|
+
备机同步参数。 取值:非空。 GaussDB为 “sync” 说明: “sync”为同步模式。
|
76
|
+
|
77
|
+
:return: The replication_mode of this ListHaResult.
|
78
|
+
:rtype: str
|
79
|
+
"""
|
80
|
+
return self._replication_mode
|
81
|
+
|
82
|
+
@replication_mode.setter
|
83
|
+
def replication_mode(self, replication_mode):
|
84
|
+
"""Sets the replication_mode of this ListHaResult.
|
85
|
+
|
86
|
+
备机同步参数。 取值:非空。 GaussDB为 “sync” 说明: “sync”为同步模式。
|
87
|
+
|
88
|
+
:param replication_mode: The replication_mode of this ListHaResult.
|
89
|
+
:type replication_mode: str
|
90
|
+
"""
|
91
|
+
self._replication_mode = replication_mode
|
92
|
+
|
93
|
+
def to_dict(self):
|
94
|
+
"""Returns the model properties as a dict"""
|
95
|
+
result = {}
|
96
|
+
|
97
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
98
|
+
value = getattr(self, attr)
|
99
|
+
if isinstance(value, list):
|
100
|
+
result[attr] = list(map(
|
101
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
102
|
+
value
|
103
|
+
))
|
104
|
+
elif hasattr(value, "to_dict"):
|
105
|
+
result[attr] = value.to_dict()
|
106
|
+
elif isinstance(value, dict):
|
107
|
+
result[attr] = dict(map(
|
108
|
+
lambda item: (item[0], item[1].to_dict())
|
109
|
+
if hasattr(item[1], "to_dict") else item,
|
110
|
+
value.items()
|
111
|
+
))
|
112
|
+
else:
|
113
|
+
if attr in self.sensitive_list:
|
114
|
+
result[attr] = "****"
|
115
|
+
else:
|
116
|
+
result[attr] = value
|
117
|
+
|
118
|
+
return result
|
119
|
+
|
120
|
+
def to_str(self):
|
121
|
+
"""Returns the string representation of the model"""
|
122
|
+
import simplejson as json
|
123
|
+
if six.PY2:
|
124
|
+
import sys
|
125
|
+
reload(sys)
|
126
|
+
sys.setdefaultencoding("utf-8")
|
127
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
128
|
+
|
129
|
+
def __repr__(self):
|
130
|
+
"""For `print`"""
|
131
|
+
return self.to_str()
|
132
|
+
|
133
|
+
def __eq__(self, other):
|
134
|
+
"""Returns true if both objects are equal"""
|
135
|
+
if not isinstance(other, ListHaResult):
|
136
|
+
return False
|
137
|
+
|
138
|
+
return self.__dict__ == other.__dict__
|
139
|
+
|
140
|
+
def __ne__(self, other):
|
141
|
+
"""Returns true if both objects are not equal"""
|
142
|
+
return not self == other
|