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,142 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class OpenGaussDatastoreResult:
|
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
|
+
'type': 'str',
|
21
|
+
'version': 'str'
|
22
|
+
}
|
23
|
+
|
24
|
+
attribute_map = {
|
25
|
+
'type': 'type',
|
26
|
+
'version': 'version'
|
27
|
+
}
|
28
|
+
|
29
|
+
def __init__(self, type=None, version=None):
|
30
|
+
"""OpenGaussDatastoreResult
|
31
|
+
|
32
|
+
The model defined in huaweicloud sdk
|
33
|
+
|
34
|
+
:param type: 数据库引擎,不区分大小写,取值如下: GaussDB
|
35
|
+
:type type: str
|
36
|
+
:param version: 数据库版本。
|
37
|
+
:type version: str
|
38
|
+
"""
|
39
|
+
|
40
|
+
|
41
|
+
|
42
|
+
self._type = None
|
43
|
+
self._version = None
|
44
|
+
self.discriminator = None
|
45
|
+
|
46
|
+
self.type = type
|
47
|
+
self.version = version
|
48
|
+
|
49
|
+
@property
|
50
|
+
def type(self):
|
51
|
+
"""Gets the type of this OpenGaussDatastoreResult.
|
52
|
+
|
53
|
+
数据库引擎,不区分大小写,取值如下: GaussDB
|
54
|
+
|
55
|
+
:return: The type of this OpenGaussDatastoreResult.
|
56
|
+
:rtype: str
|
57
|
+
"""
|
58
|
+
return self._type
|
59
|
+
|
60
|
+
@type.setter
|
61
|
+
def type(self, type):
|
62
|
+
"""Sets the type of this OpenGaussDatastoreResult.
|
63
|
+
|
64
|
+
数据库引擎,不区分大小写,取值如下: GaussDB
|
65
|
+
|
66
|
+
:param type: The type of this OpenGaussDatastoreResult.
|
67
|
+
:type type: str
|
68
|
+
"""
|
69
|
+
self._type = type
|
70
|
+
|
71
|
+
@property
|
72
|
+
def version(self):
|
73
|
+
"""Gets the version of this OpenGaussDatastoreResult.
|
74
|
+
|
75
|
+
数据库版本。
|
76
|
+
|
77
|
+
:return: The version of this OpenGaussDatastoreResult.
|
78
|
+
:rtype: str
|
79
|
+
"""
|
80
|
+
return self._version
|
81
|
+
|
82
|
+
@version.setter
|
83
|
+
def version(self, version):
|
84
|
+
"""Sets the version of this OpenGaussDatastoreResult.
|
85
|
+
|
86
|
+
数据库版本。
|
87
|
+
|
88
|
+
:param version: The version of this OpenGaussDatastoreResult.
|
89
|
+
:type version: str
|
90
|
+
"""
|
91
|
+
self._version = version
|
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, OpenGaussDatastoreResult):
|
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
|
@@ -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 OpenGaussHaOption:
|
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
|
+
'mode': 'str',
|
21
|
+
'consistency': 'str',
|
22
|
+
'replication_mode': 'str'
|
23
|
+
}
|
24
|
+
|
25
|
+
attribute_map = {
|
26
|
+
'mode': 'mode',
|
27
|
+
'consistency': 'consistency',
|
28
|
+
'replication_mode': 'replication_mode'
|
29
|
+
}
|
30
|
+
|
31
|
+
def __init__(self, mode=None, consistency=None, replication_mode=None):
|
32
|
+
"""OpenGaussHaOption
|
33
|
+
|
34
|
+
The model defined in huaweicloud sdk
|
35
|
+
|
36
|
+
:param mode: GaussDB为分布式时,取值:enterprise;为集中式时,取值:centralization_standard。不区分大小写。
|
37
|
+
:type mode: str
|
38
|
+
:param consistency: 指定实例一致性类型,当创建分布式模式实例时,该字段值必传,当创建主备模式实例时,该字段值不传。取值范围:strong(强一致性) | eventual(最终一致性),不分区大小写。
|
39
|
+
:type consistency: str
|
40
|
+
:param replication_mode: 备机同步参数。 取值: GaussDB为“sync\" 说明: - “sync”为同步模式。
|
41
|
+
:type replication_mode: str
|
42
|
+
"""
|
43
|
+
|
44
|
+
|
45
|
+
|
46
|
+
self._mode = None
|
47
|
+
self._consistency = None
|
48
|
+
self._replication_mode = None
|
49
|
+
self.discriminator = None
|
50
|
+
|
51
|
+
self.mode = mode
|
52
|
+
self.consistency = consistency
|
53
|
+
self.replication_mode = replication_mode
|
54
|
+
|
55
|
+
@property
|
56
|
+
def mode(self):
|
57
|
+
"""Gets the mode of this OpenGaussHaOption.
|
58
|
+
|
59
|
+
GaussDB为分布式时,取值:enterprise;为集中式时,取值:centralization_standard。不区分大小写。
|
60
|
+
|
61
|
+
:return: The mode of this OpenGaussHaOption.
|
62
|
+
:rtype: str
|
63
|
+
"""
|
64
|
+
return self._mode
|
65
|
+
|
66
|
+
@mode.setter
|
67
|
+
def mode(self, mode):
|
68
|
+
"""Sets the mode of this OpenGaussHaOption.
|
69
|
+
|
70
|
+
GaussDB为分布式时,取值:enterprise;为集中式时,取值:centralization_standard。不区分大小写。
|
71
|
+
|
72
|
+
:param mode: The mode of this OpenGaussHaOption.
|
73
|
+
:type mode: str
|
74
|
+
"""
|
75
|
+
self._mode = mode
|
76
|
+
|
77
|
+
@property
|
78
|
+
def consistency(self):
|
79
|
+
"""Gets the consistency of this OpenGaussHaOption.
|
80
|
+
|
81
|
+
指定实例一致性类型,当创建分布式模式实例时,该字段值必传,当创建主备模式实例时,该字段值不传。取值范围:strong(强一致性) | eventual(最终一致性),不分区大小写。
|
82
|
+
|
83
|
+
:return: The consistency of this OpenGaussHaOption.
|
84
|
+
:rtype: str
|
85
|
+
"""
|
86
|
+
return self._consistency
|
87
|
+
|
88
|
+
@consistency.setter
|
89
|
+
def consistency(self, consistency):
|
90
|
+
"""Sets the consistency of this OpenGaussHaOption.
|
91
|
+
|
92
|
+
指定实例一致性类型,当创建分布式模式实例时,该字段值必传,当创建主备模式实例时,该字段值不传。取值范围:strong(强一致性) | eventual(最终一致性),不分区大小写。
|
93
|
+
|
94
|
+
:param consistency: The consistency of this OpenGaussHaOption.
|
95
|
+
:type consistency: str
|
96
|
+
"""
|
97
|
+
self._consistency = consistency
|
98
|
+
|
99
|
+
@property
|
100
|
+
def replication_mode(self):
|
101
|
+
"""Gets the replication_mode of this OpenGaussHaOption.
|
102
|
+
|
103
|
+
备机同步参数。 取值: GaussDB为“sync\" 说明: - “sync”为同步模式。
|
104
|
+
|
105
|
+
:return: The replication_mode of this OpenGaussHaOption.
|
106
|
+
:rtype: str
|
107
|
+
"""
|
108
|
+
return self._replication_mode
|
109
|
+
|
110
|
+
@replication_mode.setter
|
111
|
+
def replication_mode(self, replication_mode):
|
112
|
+
"""Sets the replication_mode of this OpenGaussHaOption.
|
113
|
+
|
114
|
+
备机同步参数。 取值: GaussDB为“sync\" 说明: - “sync”为同步模式。
|
115
|
+
|
116
|
+
:param replication_mode: The replication_mode of this OpenGaussHaOption.
|
117
|
+
:type replication_mode: str
|
118
|
+
"""
|
119
|
+
self._replication_mode = replication_mode
|
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, OpenGaussHaOption):
|
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
|
@@ -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 OpenGaussHaResult:
|
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
|
+
'mode': 'str',
|
21
|
+
'replication_mode': 'str',
|
22
|
+
'consistency': 'str'
|
23
|
+
}
|
24
|
+
|
25
|
+
attribute_map = {
|
26
|
+
'mode': 'mode',
|
27
|
+
'replication_mode': 'replication_mode',
|
28
|
+
'consistency': 'consistency'
|
29
|
+
}
|
30
|
+
|
31
|
+
def __init__(self, mode=None, replication_mode=None, consistency=None):
|
32
|
+
"""OpenGaussHaResult
|
33
|
+
|
34
|
+
The model defined in huaweicloud sdk
|
35
|
+
|
36
|
+
:param mode: GaussDB 分布式模式,返回值为:enterprise(企业版);主备版,返回值为:centralization_standard(主备版)。
|
37
|
+
:type mode: str
|
38
|
+
:param replication_mode: 备机同步参数。 取值: GaussDB为“sync”。 说明: - “sync”为同步模式。
|
39
|
+
:type replication_mode: str
|
40
|
+
:param consistency: GaussDB的预留参数:指定实例一致性类型,取值范围:strong(强一致性) | eventual(最终一致性)。
|
41
|
+
:type consistency: str
|
42
|
+
"""
|
43
|
+
|
44
|
+
|
45
|
+
|
46
|
+
self._mode = None
|
47
|
+
self._replication_mode = None
|
48
|
+
self._consistency = None
|
49
|
+
self.discriminator = None
|
50
|
+
|
51
|
+
self.mode = mode
|
52
|
+
self.replication_mode = replication_mode
|
53
|
+
self.consistency = consistency
|
54
|
+
|
55
|
+
@property
|
56
|
+
def mode(self):
|
57
|
+
"""Gets the mode of this OpenGaussHaResult.
|
58
|
+
|
59
|
+
GaussDB 分布式模式,返回值为:enterprise(企业版);主备版,返回值为:centralization_standard(主备版)。
|
60
|
+
|
61
|
+
:return: The mode of this OpenGaussHaResult.
|
62
|
+
:rtype: str
|
63
|
+
"""
|
64
|
+
return self._mode
|
65
|
+
|
66
|
+
@mode.setter
|
67
|
+
def mode(self, mode):
|
68
|
+
"""Sets the mode of this OpenGaussHaResult.
|
69
|
+
|
70
|
+
GaussDB 分布式模式,返回值为:enterprise(企业版);主备版,返回值为:centralization_standard(主备版)。
|
71
|
+
|
72
|
+
:param mode: The mode of this OpenGaussHaResult.
|
73
|
+
:type mode: str
|
74
|
+
"""
|
75
|
+
self._mode = mode
|
76
|
+
|
77
|
+
@property
|
78
|
+
def replication_mode(self):
|
79
|
+
"""Gets the replication_mode of this OpenGaussHaResult.
|
80
|
+
|
81
|
+
备机同步参数。 取值: GaussDB为“sync”。 说明: - “sync”为同步模式。
|
82
|
+
|
83
|
+
:return: The replication_mode of this OpenGaussHaResult.
|
84
|
+
:rtype: str
|
85
|
+
"""
|
86
|
+
return self._replication_mode
|
87
|
+
|
88
|
+
@replication_mode.setter
|
89
|
+
def replication_mode(self, replication_mode):
|
90
|
+
"""Sets the replication_mode of this OpenGaussHaResult.
|
91
|
+
|
92
|
+
备机同步参数。 取值: GaussDB为“sync”。 说明: - “sync”为同步模式。
|
93
|
+
|
94
|
+
:param replication_mode: The replication_mode of this OpenGaussHaResult.
|
95
|
+
:type replication_mode: str
|
96
|
+
"""
|
97
|
+
self._replication_mode = replication_mode
|
98
|
+
|
99
|
+
@property
|
100
|
+
def consistency(self):
|
101
|
+
"""Gets the consistency of this OpenGaussHaResult.
|
102
|
+
|
103
|
+
GaussDB的预留参数:指定实例一致性类型,取值范围:strong(强一致性) | eventual(最终一致性)。
|
104
|
+
|
105
|
+
:return: The consistency of this OpenGaussHaResult.
|
106
|
+
:rtype: str
|
107
|
+
"""
|
108
|
+
return self._consistency
|
109
|
+
|
110
|
+
@consistency.setter
|
111
|
+
def consistency(self, consistency):
|
112
|
+
"""Sets the consistency of this OpenGaussHaResult.
|
113
|
+
|
114
|
+
GaussDB的预留参数:指定实例一致性类型,取值范围:strong(强一致性) | eventual(最终一致性)。
|
115
|
+
|
116
|
+
:param consistency: The consistency of this OpenGaussHaResult.
|
117
|
+
:type consistency: str
|
118
|
+
"""
|
119
|
+
self._consistency = consistency
|
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, OpenGaussHaResult):
|
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
|