huaweicloudsdkgaussdb 3.1.97__py2.py3-none-any.whl → 3.1.98__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.
- huaweicloudsdkgaussdb/v3/__init__.py +11 -0
- huaweicloudsdkgaussdb/v3/gaussdb_async_client.py +282 -0
- huaweicloudsdkgaussdb/v3/gaussdb_client.py +282 -0
- huaweicloudsdkgaussdb/v3/model/__init__.py +11 -0
- huaweicloudsdkgaussdb/v3/model/modify_gauss_my_sql_proxy_route_mode_request_body.py +3 -3
- huaweicloudsdkgaussdb/v3/model/proxy_update_proxy_name_request.py +114 -0
- huaweicloudsdkgaussdb/v3/model/proxy_upgrade_proxy_version_request.py +142 -0
- huaweicloudsdkgaussdb/v3/model/proxy_upgrade_version_detail.py +202 -0
- huaweicloudsdkgaussdb/v3/model/show_proxy_ipgroup_request.py +171 -0
- huaweicloudsdkgaussdb/v3/model/show_proxy_ipgroup_response.py +174 -0
- huaweicloudsdkgaussdb/v3/model/show_proxy_version_request.py +199 -0
- huaweicloudsdkgaussdb/v3/model/show_proxy_version_response.py +174 -0
- huaweicloudsdkgaussdb/v3/model/update_proxy_name_request.py +196 -0
- huaweicloudsdkgaussdb/v3/model/update_proxy_name_response.py +116 -0
- huaweicloudsdkgaussdb/v3/model/upgrade_proxy_version_request.py +196 -0
- huaweicloudsdkgaussdb/v3/model/upgrade_proxy_version_response.py +116 -0
- {huaweicloudsdkgaussdb-3.1.97.dist-info → huaweicloudsdkgaussdb-3.1.98.dist-info}/METADATA +2 -2
- {huaweicloudsdkgaussdb-3.1.97.dist-info → huaweicloudsdkgaussdb-3.1.98.dist-info}/RECORD +21 -10
- {huaweicloudsdkgaussdb-3.1.97.dist-info → huaweicloudsdkgaussdb-3.1.98.dist-info}/LICENSE +0 -0
- {huaweicloudsdkgaussdb-3.1.97.dist-info → huaweicloudsdkgaussdb-3.1.98.dist-info}/WHEEL +0 -0
- {huaweicloudsdkgaussdb-3.1.97.dist-info → huaweicloudsdkgaussdb-3.1.98.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,174 @@
|
|
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 ShowProxyIpgroupResponse(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
|
+
'enable_ip_group': 'bool',
|
22
|
+
'type': 'str',
|
23
|
+
'ip_group': 'object'
|
24
|
+
}
|
25
|
+
|
26
|
+
attribute_map = {
|
27
|
+
'enable_ip_group': 'enable_ip_group',
|
28
|
+
'type': 'type',
|
29
|
+
'ip_group': 'ip_group'
|
30
|
+
}
|
31
|
+
|
32
|
+
def __init__(self, enable_ip_group=None, type=None, ip_group=None):
|
33
|
+
"""ShowProxyIpgroupResponse
|
34
|
+
|
35
|
+
The model defined in huaweicloud sdk
|
36
|
+
|
37
|
+
:param enable_ip_group: 允许访问控制或者不允许 true | false。
|
38
|
+
:type enable_ip_group: bool
|
39
|
+
:param type: 白名单或者黑名单 'white' | 'black'
|
40
|
+
:type type: str
|
41
|
+
:param ip_group: 白名单或黑名单详细信息
|
42
|
+
:type ip_group: object
|
43
|
+
"""
|
44
|
+
|
45
|
+
super(ShowProxyIpgroupResponse, self).__init__()
|
46
|
+
|
47
|
+
self._enable_ip_group = None
|
48
|
+
self._type = None
|
49
|
+
self._ip_group = None
|
50
|
+
self.discriminator = None
|
51
|
+
|
52
|
+
if enable_ip_group is not None:
|
53
|
+
self.enable_ip_group = enable_ip_group
|
54
|
+
if type is not None:
|
55
|
+
self.type = type
|
56
|
+
if ip_group is not None:
|
57
|
+
self.ip_group = ip_group
|
58
|
+
|
59
|
+
@property
|
60
|
+
def enable_ip_group(self):
|
61
|
+
"""Gets the enable_ip_group of this ShowProxyIpgroupResponse.
|
62
|
+
|
63
|
+
允许访问控制或者不允许 true | false。
|
64
|
+
|
65
|
+
:return: The enable_ip_group of this ShowProxyIpgroupResponse.
|
66
|
+
:rtype: bool
|
67
|
+
"""
|
68
|
+
return self._enable_ip_group
|
69
|
+
|
70
|
+
@enable_ip_group.setter
|
71
|
+
def enable_ip_group(self, enable_ip_group):
|
72
|
+
"""Sets the enable_ip_group of this ShowProxyIpgroupResponse.
|
73
|
+
|
74
|
+
允许访问控制或者不允许 true | false。
|
75
|
+
|
76
|
+
:param enable_ip_group: The enable_ip_group of this ShowProxyIpgroupResponse.
|
77
|
+
:type enable_ip_group: bool
|
78
|
+
"""
|
79
|
+
self._enable_ip_group = enable_ip_group
|
80
|
+
|
81
|
+
@property
|
82
|
+
def type(self):
|
83
|
+
"""Gets the type of this ShowProxyIpgroupResponse.
|
84
|
+
|
85
|
+
白名单或者黑名单 'white' | 'black'
|
86
|
+
|
87
|
+
:return: The type of this ShowProxyIpgroupResponse.
|
88
|
+
:rtype: str
|
89
|
+
"""
|
90
|
+
return self._type
|
91
|
+
|
92
|
+
@type.setter
|
93
|
+
def type(self, type):
|
94
|
+
"""Sets the type of this ShowProxyIpgroupResponse.
|
95
|
+
|
96
|
+
白名单或者黑名单 'white' | 'black'
|
97
|
+
|
98
|
+
:param type: The type of this ShowProxyIpgroupResponse.
|
99
|
+
:type type: str
|
100
|
+
"""
|
101
|
+
self._type = type
|
102
|
+
|
103
|
+
@property
|
104
|
+
def ip_group(self):
|
105
|
+
"""Gets the ip_group of this ShowProxyIpgroupResponse.
|
106
|
+
|
107
|
+
白名单或黑名单详细信息
|
108
|
+
|
109
|
+
:return: The ip_group of this ShowProxyIpgroupResponse.
|
110
|
+
:rtype: object
|
111
|
+
"""
|
112
|
+
return self._ip_group
|
113
|
+
|
114
|
+
@ip_group.setter
|
115
|
+
def ip_group(self, ip_group):
|
116
|
+
"""Sets the ip_group of this ShowProxyIpgroupResponse.
|
117
|
+
|
118
|
+
白名单或黑名单详细信息
|
119
|
+
|
120
|
+
:param ip_group: The ip_group of this ShowProxyIpgroupResponse.
|
121
|
+
:type ip_group: object
|
122
|
+
"""
|
123
|
+
self._ip_group = ip_group
|
124
|
+
|
125
|
+
def to_dict(self):
|
126
|
+
"""Returns the model properties as a dict"""
|
127
|
+
result = {}
|
128
|
+
|
129
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
130
|
+
value = getattr(self, attr)
|
131
|
+
if isinstance(value, list):
|
132
|
+
result[attr] = list(map(
|
133
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
134
|
+
value
|
135
|
+
))
|
136
|
+
elif hasattr(value, "to_dict"):
|
137
|
+
result[attr] = value.to_dict()
|
138
|
+
elif isinstance(value, dict):
|
139
|
+
result[attr] = dict(map(
|
140
|
+
lambda item: (item[0], item[1].to_dict())
|
141
|
+
if hasattr(item[1], "to_dict") else item,
|
142
|
+
value.items()
|
143
|
+
))
|
144
|
+
else:
|
145
|
+
if attr in self.sensitive_list:
|
146
|
+
result[attr] = "****"
|
147
|
+
else:
|
148
|
+
result[attr] = value
|
149
|
+
|
150
|
+
return result
|
151
|
+
|
152
|
+
def to_str(self):
|
153
|
+
"""Returns the string representation of the model"""
|
154
|
+
import simplejson as json
|
155
|
+
if six.PY2:
|
156
|
+
import sys
|
157
|
+
reload(sys)
|
158
|
+
sys.setdefaultencoding("utf-8")
|
159
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
160
|
+
|
161
|
+
def __repr__(self):
|
162
|
+
"""For `print`"""
|
163
|
+
return self.to_str()
|
164
|
+
|
165
|
+
def __eq__(self, other):
|
166
|
+
"""Returns true if both objects are equal"""
|
167
|
+
if not isinstance(other, ShowProxyIpgroupResponse):
|
168
|
+
return False
|
169
|
+
|
170
|
+
return self.__dict__ == other.__dict__
|
171
|
+
|
172
|
+
def __ne__(self, other):
|
173
|
+
"""Returns true if both objects are not equal"""
|
174
|
+
return not self == other
|
@@ -0,0 +1,199 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class ShowProxyVersionRequest:
|
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
|
+
'instance_id': 'str',
|
21
|
+
'engine_name': 'str',
|
22
|
+
'proxy_id': 'str',
|
23
|
+
'x_language': 'str'
|
24
|
+
}
|
25
|
+
|
26
|
+
attribute_map = {
|
27
|
+
'instance_id': 'instance_id',
|
28
|
+
'engine_name': 'engine_name',
|
29
|
+
'proxy_id': 'proxy_id',
|
30
|
+
'x_language': 'X-Language'
|
31
|
+
}
|
32
|
+
|
33
|
+
def __init__(self, instance_id=None, engine_name=None, proxy_id=None, x_language=None):
|
34
|
+
"""ShowProxyVersionRequest
|
35
|
+
|
36
|
+
The model defined in huaweicloud sdk
|
37
|
+
|
38
|
+
:param instance_id: 实例ID,严格匹配UUID规则。
|
39
|
+
:type instance_id: str
|
40
|
+
:param engine_name: engine
|
41
|
+
:type engine_name: str
|
42
|
+
:param proxy_id: 数据库代理ID,严格匹配UUID规则。
|
43
|
+
:type proxy_id: str
|
44
|
+
:param x_language: 语言。
|
45
|
+
:type x_language: str
|
46
|
+
"""
|
47
|
+
|
48
|
+
|
49
|
+
|
50
|
+
self._instance_id = None
|
51
|
+
self._engine_name = None
|
52
|
+
self._proxy_id = None
|
53
|
+
self._x_language = None
|
54
|
+
self.discriminator = None
|
55
|
+
|
56
|
+
self.instance_id = instance_id
|
57
|
+
self.engine_name = engine_name
|
58
|
+
self.proxy_id = proxy_id
|
59
|
+
if x_language is not None:
|
60
|
+
self.x_language = x_language
|
61
|
+
|
62
|
+
@property
|
63
|
+
def instance_id(self):
|
64
|
+
"""Gets the instance_id of this ShowProxyVersionRequest.
|
65
|
+
|
66
|
+
实例ID,严格匹配UUID规则。
|
67
|
+
|
68
|
+
:return: The instance_id of this ShowProxyVersionRequest.
|
69
|
+
:rtype: str
|
70
|
+
"""
|
71
|
+
return self._instance_id
|
72
|
+
|
73
|
+
@instance_id.setter
|
74
|
+
def instance_id(self, instance_id):
|
75
|
+
"""Sets the instance_id of this ShowProxyVersionRequest.
|
76
|
+
|
77
|
+
实例ID,严格匹配UUID规则。
|
78
|
+
|
79
|
+
:param instance_id: The instance_id of this ShowProxyVersionRequest.
|
80
|
+
:type instance_id: str
|
81
|
+
"""
|
82
|
+
self._instance_id = instance_id
|
83
|
+
|
84
|
+
@property
|
85
|
+
def engine_name(self):
|
86
|
+
"""Gets the engine_name of this ShowProxyVersionRequest.
|
87
|
+
|
88
|
+
engine
|
89
|
+
|
90
|
+
:return: The engine_name of this ShowProxyVersionRequest.
|
91
|
+
:rtype: str
|
92
|
+
"""
|
93
|
+
return self._engine_name
|
94
|
+
|
95
|
+
@engine_name.setter
|
96
|
+
def engine_name(self, engine_name):
|
97
|
+
"""Sets the engine_name of this ShowProxyVersionRequest.
|
98
|
+
|
99
|
+
engine
|
100
|
+
|
101
|
+
:param engine_name: The engine_name of this ShowProxyVersionRequest.
|
102
|
+
:type engine_name: str
|
103
|
+
"""
|
104
|
+
self._engine_name = engine_name
|
105
|
+
|
106
|
+
@property
|
107
|
+
def proxy_id(self):
|
108
|
+
"""Gets the proxy_id of this ShowProxyVersionRequest.
|
109
|
+
|
110
|
+
数据库代理ID,严格匹配UUID规则。
|
111
|
+
|
112
|
+
:return: The proxy_id of this ShowProxyVersionRequest.
|
113
|
+
:rtype: str
|
114
|
+
"""
|
115
|
+
return self._proxy_id
|
116
|
+
|
117
|
+
@proxy_id.setter
|
118
|
+
def proxy_id(self, proxy_id):
|
119
|
+
"""Sets the proxy_id of this ShowProxyVersionRequest.
|
120
|
+
|
121
|
+
数据库代理ID,严格匹配UUID规则。
|
122
|
+
|
123
|
+
:param proxy_id: The proxy_id of this ShowProxyVersionRequest.
|
124
|
+
:type proxy_id: str
|
125
|
+
"""
|
126
|
+
self._proxy_id = proxy_id
|
127
|
+
|
128
|
+
@property
|
129
|
+
def x_language(self):
|
130
|
+
"""Gets the x_language of this ShowProxyVersionRequest.
|
131
|
+
|
132
|
+
语言。
|
133
|
+
|
134
|
+
:return: The x_language of this ShowProxyVersionRequest.
|
135
|
+
:rtype: str
|
136
|
+
"""
|
137
|
+
return self._x_language
|
138
|
+
|
139
|
+
@x_language.setter
|
140
|
+
def x_language(self, x_language):
|
141
|
+
"""Sets the x_language of this ShowProxyVersionRequest.
|
142
|
+
|
143
|
+
语言。
|
144
|
+
|
145
|
+
:param x_language: The x_language of this ShowProxyVersionRequest.
|
146
|
+
:type x_language: str
|
147
|
+
"""
|
148
|
+
self._x_language = x_language
|
149
|
+
|
150
|
+
def to_dict(self):
|
151
|
+
"""Returns the model properties as a dict"""
|
152
|
+
result = {}
|
153
|
+
|
154
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
155
|
+
value = getattr(self, attr)
|
156
|
+
if isinstance(value, list):
|
157
|
+
result[attr] = list(map(
|
158
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
159
|
+
value
|
160
|
+
))
|
161
|
+
elif hasattr(value, "to_dict"):
|
162
|
+
result[attr] = value.to_dict()
|
163
|
+
elif isinstance(value, dict):
|
164
|
+
result[attr] = dict(map(
|
165
|
+
lambda item: (item[0], item[1].to_dict())
|
166
|
+
if hasattr(item[1], "to_dict") else item,
|
167
|
+
value.items()
|
168
|
+
))
|
169
|
+
else:
|
170
|
+
if attr in self.sensitive_list:
|
171
|
+
result[attr] = "****"
|
172
|
+
else:
|
173
|
+
result[attr] = value
|
174
|
+
|
175
|
+
return result
|
176
|
+
|
177
|
+
def to_str(self):
|
178
|
+
"""Returns the string representation of the model"""
|
179
|
+
import simplejson as json
|
180
|
+
if six.PY2:
|
181
|
+
import sys
|
182
|
+
reload(sys)
|
183
|
+
sys.setdefaultencoding("utf-8")
|
184
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
185
|
+
|
186
|
+
def __repr__(self):
|
187
|
+
"""For `print`"""
|
188
|
+
return self.to_str()
|
189
|
+
|
190
|
+
def __eq__(self, other):
|
191
|
+
"""Returns true if both objects are equal"""
|
192
|
+
if not isinstance(other, ShowProxyVersionRequest):
|
193
|
+
return False
|
194
|
+
|
195
|
+
return self.__dict__ == other.__dict__
|
196
|
+
|
197
|
+
def __ne__(self, other):
|
198
|
+
"""Returns true if both objects are not equal"""
|
199
|
+
return not self == other
|
@@ -0,0 +1,174 @@
|
|
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 ShowProxyVersionResponse(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
|
+
'current_version': 'str',
|
22
|
+
'latest_version': 'str',
|
23
|
+
'can_upgrade': 'bool'
|
24
|
+
}
|
25
|
+
|
26
|
+
attribute_map = {
|
27
|
+
'current_version': 'current_version',
|
28
|
+
'latest_version': 'latest_version',
|
29
|
+
'can_upgrade': 'can_upgrade'
|
30
|
+
}
|
31
|
+
|
32
|
+
def __init__(self, current_version=None, latest_version=None, can_upgrade=None):
|
33
|
+
"""ShowProxyVersionResponse
|
34
|
+
|
35
|
+
The model defined in huaweicloud sdk
|
36
|
+
|
37
|
+
:param current_version: 当前代理版本
|
38
|
+
:type current_version: str
|
39
|
+
:param latest_version: 最新代理版本
|
40
|
+
:type latest_version: str
|
41
|
+
:param can_upgrade: 是否能升级
|
42
|
+
:type can_upgrade: bool
|
43
|
+
"""
|
44
|
+
|
45
|
+
super(ShowProxyVersionResponse, self).__init__()
|
46
|
+
|
47
|
+
self._current_version = None
|
48
|
+
self._latest_version = None
|
49
|
+
self._can_upgrade = None
|
50
|
+
self.discriminator = None
|
51
|
+
|
52
|
+
if current_version is not None:
|
53
|
+
self.current_version = current_version
|
54
|
+
if latest_version is not None:
|
55
|
+
self.latest_version = latest_version
|
56
|
+
if can_upgrade is not None:
|
57
|
+
self.can_upgrade = can_upgrade
|
58
|
+
|
59
|
+
@property
|
60
|
+
def current_version(self):
|
61
|
+
"""Gets the current_version of this ShowProxyVersionResponse.
|
62
|
+
|
63
|
+
当前代理版本
|
64
|
+
|
65
|
+
:return: The current_version of this ShowProxyVersionResponse.
|
66
|
+
:rtype: str
|
67
|
+
"""
|
68
|
+
return self._current_version
|
69
|
+
|
70
|
+
@current_version.setter
|
71
|
+
def current_version(self, current_version):
|
72
|
+
"""Sets the current_version of this ShowProxyVersionResponse.
|
73
|
+
|
74
|
+
当前代理版本
|
75
|
+
|
76
|
+
:param current_version: The current_version of this ShowProxyVersionResponse.
|
77
|
+
:type current_version: str
|
78
|
+
"""
|
79
|
+
self._current_version = current_version
|
80
|
+
|
81
|
+
@property
|
82
|
+
def latest_version(self):
|
83
|
+
"""Gets the latest_version of this ShowProxyVersionResponse.
|
84
|
+
|
85
|
+
最新代理版本
|
86
|
+
|
87
|
+
:return: The latest_version of this ShowProxyVersionResponse.
|
88
|
+
:rtype: str
|
89
|
+
"""
|
90
|
+
return self._latest_version
|
91
|
+
|
92
|
+
@latest_version.setter
|
93
|
+
def latest_version(self, latest_version):
|
94
|
+
"""Sets the latest_version of this ShowProxyVersionResponse.
|
95
|
+
|
96
|
+
最新代理版本
|
97
|
+
|
98
|
+
:param latest_version: The latest_version of this ShowProxyVersionResponse.
|
99
|
+
:type latest_version: str
|
100
|
+
"""
|
101
|
+
self._latest_version = latest_version
|
102
|
+
|
103
|
+
@property
|
104
|
+
def can_upgrade(self):
|
105
|
+
"""Gets the can_upgrade of this ShowProxyVersionResponse.
|
106
|
+
|
107
|
+
是否能升级
|
108
|
+
|
109
|
+
:return: The can_upgrade of this ShowProxyVersionResponse.
|
110
|
+
:rtype: bool
|
111
|
+
"""
|
112
|
+
return self._can_upgrade
|
113
|
+
|
114
|
+
@can_upgrade.setter
|
115
|
+
def can_upgrade(self, can_upgrade):
|
116
|
+
"""Sets the can_upgrade of this ShowProxyVersionResponse.
|
117
|
+
|
118
|
+
是否能升级
|
119
|
+
|
120
|
+
:param can_upgrade: The can_upgrade of this ShowProxyVersionResponse.
|
121
|
+
:type can_upgrade: bool
|
122
|
+
"""
|
123
|
+
self._can_upgrade = can_upgrade
|
124
|
+
|
125
|
+
def to_dict(self):
|
126
|
+
"""Returns the model properties as a dict"""
|
127
|
+
result = {}
|
128
|
+
|
129
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
130
|
+
value = getattr(self, attr)
|
131
|
+
if isinstance(value, list):
|
132
|
+
result[attr] = list(map(
|
133
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
134
|
+
value
|
135
|
+
))
|
136
|
+
elif hasattr(value, "to_dict"):
|
137
|
+
result[attr] = value.to_dict()
|
138
|
+
elif isinstance(value, dict):
|
139
|
+
result[attr] = dict(map(
|
140
|
+
lambda item: (item[0], item[1].to_dict())
|
141
|
+
if hasattr(item[1], "to_dict") else item,
|
142
|
+
value.items()
|
143
|
+
))
|
144
|
+
else:
|
145
|
+
if attr in self.sensitive_list:
|
146
|
+
result[attr] = "****"
|
147
|
+
else:
|
148
|
+
result[attr] = value
|
149
|
+
|
150
|
+
return result
|
151
|
+
|
152
|
+
def to_str(self):
|
153
|
+
"""Returns the string representation of the model"""
|
154
|
+
import simplejson as json
|
155
|
+
if six.PY2:
|
156
|
+
import sys
|
157
|
+
reload(sys)
|
158
|
+
sys.setdefaultencoding("utf-8")
|
159
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
160
|
+
|
161
|
+
def __repr__(self):
|
162
|
+
"""For `print`"""
|
163
|
+
return self.to_str()
|
164
|
+
|
165
|
+
def __eq__(self, other):
|
166
|
+
"""Returns true if both objects are equal"""
|
167
|
+
if not isinstance(other, ShowProxyVersionResponse):
|
168
|
+
return False
|
169
|
+
|
170
|
+
return self.__dict__ == other.__dict__
|
171
|
+
|
172
|
+
def __ne__(self, other):
|
173
|
+
"""Returns true if both objects are not equal"""
|
174
|
+
return not self == other
|