huaweicloudsdkgaussdb 3.1.96__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.96.dist-info → huaweicloudsdkgaussdb-3.1.98.dist-info}/METADATA +2 -2
- {huaweicloudsdkgaussdb-3.1.96.dist-info → huaweicloudsdkgaussdb-3.1.98.dist-info}/RECORD +21 -10
- {huaweicloudsdkgaussdb-3.1.96.dist-info → huaweicloudsdkgaussdb-3.1.98.dist-info}/LICENSE +0 -0
- {huaweicloudsdkgaussdb-3.1.96.dist-info → huaweicloudsdkgaussdb-3.1.98.dist-info}/WHEEL +0 -0
- {huaweicloudsdkgaussdb-3.1.96.dist-info → huaweicloudsdkgaussdb-3.1.98.dist-info}/top_level.txt +0 -0
@@ -45,7 +45,7 @@ class ModifyGaussMySqlProxyRouteModeRequestBody:
|
|
45
45
|
:type readonly_nodes: list[:class:`huaweicloudsdkgaussdb.v3.ModifyProxyRouteWeightReadonlyNode`]
|
46
46
|
:param new_node_auto_add_status: 是否开启新增节点自动加入该Proxy。如果需要设置是否开启新增节点自动加入该Proxy,请联系客服人员添加白名单,加入白名单后,方可输入该字段。 取值范围: - ON:开启。 - OFF:关闭。
|
47
47
|
:type new_node_auto_add_status: str
|
48
|
-
:param new_node_weight: 新增节点的读权重: - 如果路由模式为0,新增节点自动加入为ON,取值为0~1000。 - 如果路由模式不为0或新增节点自动加入为OFF,则可不输入读权重。
|
48
|
+
:param new_node_weight: 新增节点的读权重: - 如果路由模式为0,新增节点自动加入为ON,取值为0~1000。 - 如果路由模式不为0或新增节点自动加入为OFF,则可不输入读权重。 - 如果路由模式不为0或新增节点自动加入为OFF,则可不输入读权重。
|
49
49
|
:type new_node_weight: int
|
50
50
|
"""
|
51
51
|
|
@@ -160,7 +160,7 @@ class ModifyGaussMySqlProxyRouteModeRequestBody:
|
|
160
160
|
def new_node_weight(self):
|
161
161
|
"""Gets the new_node_weight of this ModifyGaussMySqlProxyRouteModeRequestBody.
|
162
162
|
|
163
|
-
新增节点的读权重: - 如果路由模式为0,新增节点自动加入为ON,取值为0~1000。 - 如果路由模式不为0或新增节点自动加入为OFF,则可不输入读权重。
|
163
|
+
新增节点的读权重: - 如果路由模式为0,新增节点自动加入为ON,取值为0~1000。 - 如果路由模式不为0或新增节点自动加入为OFF,则可不输入读权重。 - 如果路由模式不为0或新增节点自动加入为OFF,则可不输入读权重。
|
164
164
|
|
165
165
|
:return: The new_node_weight of this ModifyGaussMySqlProxyRouteModeRequestBody.
|
166
166
|
:rtype: int
|
@@ -171,7 +171,7 @@ class ModifyGaussMySqlProxyRouteModeRequestBody:
|
|
171
171
|
def new_node_weight(self, new_node_weight):
|
172
172
|
"""Sets the new_node_weight of this ModifyGaussMySqlProxyRouteModeRequestBody.
|
173
173
|
|
174
|
-
新增节点的读权重: - 如果路由模式为0,新增节点自动加入为ON,取值为0~1000。 - 如果路由模式不为0或新增节点自动加入为OFF,则可不输入读权重。
|
174
|
+
新增节点的读权重: - 如果路由模式为0,新增节点自动加入为ON,取值为0~1000。 - 如果路由模式不为0或新增节点自动加入为OFF,则可不输入读权重。 - 如果路由模式不为0或新增节点自动加入为OFF,则可不输入读权重。
|
175
175
|
|
176
176
|
:param new_node_weight: The new_node_weight of this ModifyGaussMySqlProxyRouteModeRequestBody.
|
177
177
|
:type new_node_weight: int
|
@@ -0,0 +1,114 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class ProxyUpdateProxyNameRequest:
|
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
|
+
'alias': 'str'
|
21
|
+
}
|
22
|
+
|
23
|
+
attribute_map = {
|
24
|
+
'alias': 'alias'
|
25
|
+
}
|
26
|
+
|
27
|
+
def __init__(self, alias=None):
|
28
|
+
"""ProxyUpdateProxyNameRequest
|
29
|
+
|
30
|
+
The model defined in huaweicloud sdk
|
31
|
+
|
32
|
+
:param alias: 修改代理实例的新名称
|
33
|
+
:type alias: str
|
34
|
+
"""
|
35
|
+
|
36
|
+
|
37
|
+
|
38
|
+
self._alias = None
|
39
|
+
self.discriminator = None
|
40
|
+
|
41
|
+
self.alias = alias
|
42
|
+
|
43
|
+
@property
|
44
|
+
def alias(self):
|
45
|
+
"""Gets the alias of this ProxyUpdateProxyNameRequest.
|
46
|
+
|
47
|
+
修改代理实例的新名称
|
48
|
+
|
49
|
+
:return: The alias of this ProxyUpdateProxyNameRequest.
|
50
|
+
:rtype: str
|
51
|
+
"""
|
52
|
+
return self._alias
|
53
|
+
|
54
|
+
@alias.setter
|
55
|
+
def alias(self, alias):
|
56
|
+
"""Sets the alias of this ProxyUpdateProxyNameRequest.
|
57
|
+
|
58
|
+
修改代理实例的新名称
|
59
|
+
|
60
|
+
:param alias: The alias of this ProxyUpdateProxyNameRequest.
|
61
|
+
:type alias: str
|
62
|
+
"""
|
63
|
+
self._alias = alias
|
64
|
+
|
65
|
+
def to_dict(self):
|
66
|
+
"""Returns the model properties as a dict"""
|
67
|
+
result = {}
|
68
|
+
|
69
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
70
|
+
value = getattr(self, attr)
|
71
|
+
if isinstance(value, list):
|
72
|
+
result[attr] = list(map(
|
73
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
74
|
+
value
|
75
|
+
))
|
76
|
+
elif hasattr(value, "to_dict"):
|
77
|
+
result[attr] = value.to_dict()
|
78
|
+
elif isinstance(value, dict):
|
79
|
+
result[attr] = dict(map(
|
80
|
+
lambda item: (item[0], item[1].to_dict())
|
81
|
+
if hasattr(item[1], "to_dict") else item,
|
82
|
+
value.items()
|
83
|
+
))
|
84
|
+
else:
|
85
|
+
if attr in self.sensitive_list:
|
86
|
+
result[attr] = "****"
|
87
|
+
else:
|
88
|
+
result[attr] = value
|
89
|
+
|
90
|
+
return result
|
91
|
+
|
92
|
+
def to_str(self):
|
93
|
+
"""Returns the string representation of the model"""
|
94
|
+
import simplejson as json
|
95
|
+
if six.PY2:
|
96
|
+
import sys
|
97
|
+
reload(sys)
|
98
|
+
sys.setdefaultencoding("utf-8")
|
99
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
100
|
+
|
101
|
+
def __repr__(self):
|
102
|
+
"""For `print`"""
|
103
|
+
return self.to_str()
|
104
|
+
|
105
|
+
def __eq__(self, other):
|
106
|
+
"""Returns true if both objects are equal"""
|
107
|
+
if not isinstance(other, ProxyUpdateProxyNameRequest):
|
108
|
+
return False
|
109
|
+
|
110
|
+
return self.__dict__ == other.__dict__
|
111
|
+
|
112
|
+
def __ne__(self, other):
|
113
|
+
"""Returns true if both objects are not equal"""
|
114
|
+
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 ProxyUpgradeProxyVersionRequest:
|
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
|
+
'source_version': 'str',
|
21
|
+
'target_version': 'str'
|
22
|
+
}
|
23
|
+
|
24
|
+
attribute_map = {
|
25
|
+
'source_version': 'source_version',
|
26
|
+
'target_version': 'target_version'
|
27
|
+
}
|
28
|
+
|
29
|
+
def __init__(self, source_version=None, target_version=None):
|
30
|
+
"""ProxyUpgradeProxyVersionRequest
|
31
|
+
|
32
|
+
The model defined in huaweicloud sdk
|
33
|
+
|
34
|
+
:param source_version: 升级前源内核版本号
|
35
|
+
:type source_version: str
|
36
|
+
:param target_version: 目标升级内核版本号
|
37
|
+
:type target_version: str
|
38
|
+
"""
|
39
|
+
|
40
|
+
|
41
|
+
|
42
|
+
self._source_version = None
|
43
|
+
self._target_version = None
|
44
|
+
self.discriminator = None
|
45
|
+
|
46
|
+
self.source_version = source_version
|
47
|
+
self.target_version = target_version
|
48
|
+
|
49
|
+
@property
|
50
|
+
def source_version(self):
|
51
|
+
"""Gets the source_version of this ProxyUpgradeProxyVersionRequest.
|
52
|
+
|
53
|
+
升级前源内核版本号
|
54
|
+
|
55
|
+
:return: The source_version of this ProxyUpgradeProxyVersionRequest.
|
56
|
+
:rtype: str
|
57
|
+
"""
|
58
|
+
return self._source_version
|
59
|
+
|
60
|
+
@source_version.setter
|
61
|
+
def source_version(self, source_version):
|
62
|
+
"""Sets the source_version of this ProxyUpgradeProxyVersionRequest.
|
63
|
+
|
64
|
+
升级前源内核版本号
|
65
|
+
|
66
|
+
:param source_version: The source_version of this ProxyUpgradeProxyVersionRequest.
|
67
|
+
:type source_version: str
|
68
|
+
"""
|
69
|
+
self._source_version = source_version
|
70
|
+
|
71
|
+
@property
|
72
|
+
def target_version(self):
|
73
|
+
"""Gets the target_version of this ProxyUpgradeProxyVersionRequest.
|
74
|
+
|
75
|
+
目标升级内核版本号
|
76
|
+
|
77
|
+
:return: The target_version of this ProxyUpgradeProxyVersionRequest.
|
78
|
+
:rtype: str
|
79
|
+
"""
|
80
|
+
return self._target_version
|
81
|
+
|
82
|
+
@target_version.setter
|
83
|
+
def target_version(self, target_version):
|
84
|
+
"""Sets the target_version of this ProxyUpgradeProxyVersionRequest.
|
85
|
+
|
86
|
+
目标升级内核版本号
|
87
|
+
|
88
|
+
:param target_version: The target_version of this ProxyUpgradeProxyVersionRequest.
|
89
|
+
:type target_version: str
|
90
|
+
"""
|
91
|
+
self._target_version = target_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, ProxyUpgradeProxyVersionRequest):
|
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,202 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class ProxyUpgradeVersionDetail:
|
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
|
+
'workflow_id': 'str',
|
22
|
+
'state': 'str',
|
23
|
+
'error_message': 'str'
|
24
|
+
}
|
25
|
+
|
26
|
+
attribute_map = {
|
27
|
+
'instance_id': 'instance_id',
|
28
|
+
'workflow_id': 'workflow_id',
|
29
|
+
'state': 'state',
|
30
|
+
'error_message': 'error_message'
|
31
|
+
}
|
32
|
+
|
33
|
+
def __init__(self, instance_id=None, workflow_id=None, state=None, error_message=None):
|
34
|
+
"""ProxyUpgradeVersionDetail
|
35
|
+
|
36
|
+
The model defined in huaweicloud sdk
|
37
|
+
|
38
|
+
:param instance_id: 实例id.
|
39
|
+
:type instance_id: str
|
40
|
+
:param workflow_id: 工作流Id。
|
41
|
+
:type workflow_id: str
|
42
|
+
:param state: agent返回的升级下发状态码,默认返回。
|
43
|
+
:type state: str
|
44
|
+
:param error_message: 错误消息。
|
45
|
+
:type error_message: str
|
46
|
+
"""
|
47
|
+
|
48
|
+
|
49
|
+
|
50
|
+
self._instance_id = None
|
51
|
+
self._workflow_id = None
|
52
|
+
self._state = None
|
53
|
+
self._error_message = None
|
54
|
+
self.discriminator = None
|
55
|
+
|
56
|
+
if instance_id is not None:
|
57
|
+
self.instance_id = instance_id
|
58
|
+
if workflow_id is not None:
|
59
|
+
self.workflow_id = workflow_id
|
60
|
+
if state is not None:
|
61
|
+
self.state = state
|
62
|
+
if error_message is not None:
|
63
|
+
self.error_message = error_message
|
64
|
+
|
65
|
+
@property
|
66
|
+
def instance_id(self):
|
67
|
+
"""Gets the instance_id of this ProxyUpgradeVersionDetail.
|
68
|
+
|
69
|
+
实例id.
|
70
|
+
|
71
|
+
:return: The instance_id of this ProxyUpgradeVersionDetail.
|
72
|
+
:rtype: str
|
73
|
+
"""
|
74
|
+
return self._instance_id
|
75
|
+
|
76
|
+
@instance_id.setter
|
77
|
+
def instance_id(self, instance_id):
|
78
|
+
"""Sets the instance_id of this ProxyUpgradeVersionDetail.
|
79
|
+
|
80
|
+
实例id.
|
81
|
+
|
82
|
+
:param instance_id: The instance_id of this ProxyUpgradeVersionDetail.
|
83
|
+
:type instance_id: str
|
84
|
+
"""
|
85
|
+
self._instance_id = instance_id
|
86
|
+
|
87
|
+
@property
|
88
|
+
def workflow_id(self):
|
89
|
+
"""Gets the workflow_id of this ProxyUpgradeVersionDetail.
|
90
|
+
|
91
|
+
工作流Id。
|
92
|
+
|
93
|
+
:return: The workflow_id of this ProxyUpgradeVersionDetail.
|
94
|
+
:rtype: str
|
95
|
+
"""
|
96
|
+
return self._workflow_id
|
97
|
+
|
98
|
+
@workflow_id.setter
|
99
|
+
def workflow_id(self, workflow_id):
|
100
|
+
"""Sets the workflow_id of this ProxyUpgradeVersionDetail.
|
101
|
+
|
102
|
+
工作流Id。
|
103
|
+
|
104
|
+
:param workflow_id: The workflow_id of this ProxyUpgradeVersionDetail.
|
105
|
+
:type workflow_id: str
|
106
|
+
"""
|
107
|
+
self._workflow_id = workflow_id
|
108
|
+
|
109
|
+
@property
|
110
|
+
def state(self):
|
111
|
+
"""Gets the state of this ProxyUpgradeVersionDetail.
|
112
|
+
|
113
|
+
agent返回的升级下发状态码,默认返回。
|
114
|
+
|
115
|
+
:return: The state of this ProxyUpgradeVersionDetail.
|
116
|
+
:rtype: str
|
117
|
+
"""
|
118
|
+
return self._state
|
119
|
+
|
120
|
+
@state.setter
|
121
|
+
def state(self, state):
|
122
|
+
"""Sets the state of this ProxyUpgradeVersionDetail.
|
123
|
+
|
124
|
+
agent返回的升级下发状态码,默认返回。
|
125
|
+
|
126
|
+
:param state: The state of this ProxyUpgradeVersionDetail.
|
127
|
+
:type state: str
|
128
|
+
"""
|
129
|
+
self._state = state
|
130
|
+
|
131
|
+
@property
|
132
|
+
def error_message(self):
|
133
|
+
"""Gets the error_message of this ProxyUpgradeVersionDetail.
|
134
|
+
|
135
|
+
错误消息。
|
136
|
+
|
137
|
+
:return: The error_message of this ProxyUpgradeVersionDetail.
|
138
|
+
:rtype: str
|
139
|
+
"""
|
140
|
+
return self._error_message
|
141
|
+
|
142
|
+
@error_message.setter
|
143
|
+
def error_message(self, error_message):
|
144
|
+
"""Sets the error_message of this ProxyUpgradeVersionDetail.
|
145
|
+
|
146
|
+
错误消息。
|
147
|
+
|
148
|
+
:param error_message: The error_message of this ProxyUpgradeVersionDetail.
|
149
|
+
:type error_message: str
|
150
|
+
"""
|
151
|
+
self._error_message = error_message
|
152
|
+
|
153
|
+
def to_dict(self):
|
154
|
+
"""Returns the model properties as a dict"""
|
155
|
+
result = {}
|
156
|
+
|
157
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
158
|
+
value = getattr(self, attr)
|
159
|
+
if isinstance(value, list):
|
160
|
+
result[attr] = list(map(
|
161
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
162
|
+
value
|
163
|
+
))
|
164
|
+
elif hasattr(value, "to_dict"):
|
165
|
+
result[attr] = value.to_dict()
|
166
|
+
elif isinstance(value, dict):
|
167
|
+
result[attr] = dict(map(
|
168
|
+
lambda item: (item[0], item[1].to_dict())
|
169
|
+
if hasattr(item[1], "to_dict") else item,
|
170
|
+
value.items()
|
171
|
+
))
|
172
|
+
else:
|
173
|
+
if attr in self.sensitive_list:
|
174
|
+
result[attr] = "****"
|
175
|
+
else:
|
176
|
+
result[attr] = value
|
177
|
+
|
178
|
+
return result
|
179
|
+
|
180
|
+
def to_str(self):
|
181
|
+
"""Returns the string representation of the model"""
|
182
|
+
import simplejson as json
|
183
|
+
if six.PY2:
|
184
|
+
import sys
|
185
|
+
reload(sys)
|
186
|
+
sys.setdefaultencoding("utf-8")
|
187
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
188
|
+
|
189
|
+
def __repr__(self):
|
190
|
+
"""For `print`"""
|
191
|
+
return self.to_str()
|
192
|
+
|
193
|
+
def __eq__(self, other):
|
194
|
+
"""Returns true if both objects are equal"""
|
195
|
+
if not isinstance(other, ProxyUpgradeVersionDetail):
|
196
|
+
return False
|
197
|
+
|
198
|
+
return self.__dict__ == other.__dict__
|
199
|
+
|
200
|
+
def __ne__(self, other):
|
201
|
+
"""Returns true if both objects are not equal"""
|
202
|
+
return not self == other
|
@@ -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 ShowProxyIpgroupRequest:
|
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
|
+
'proxy_id': 'str',
|
22
|
+
'x_language': 'str'
|
23
|
+
}
|
24
|
+
|
25
|
+
attribute_map = {
|
26
|
+
'instance_id': 'instance_id',
|
27
|
+
'proxy_id': 'proxy_id',
|
28
|
+
'x_language': 'X-Language'
|
29
|
+
}
|
30
|
+
|
31
|
+
def __init__(self, instance_id=None, proxy_id=None, x_language=None):
|
32
|
+
"""ShowProxyIpgroupRequest
|
33
|
+
|
34
|
+
The model defined in huaweicloud sdk
|
35
|
+
|
36
|
+
:param instance_id: 实例ID,严格匹配UUID规则。
|
37
|
+
:type instance_id: str
|
38
|
+
:param proxy_id: 数据库代理ID,严格匹配UUID规则。
|
39
|
+
:type proxy_id: str
|
40
|
+
:param x_language: 语言。
|
41
|
+
:type x_language: str
|
42
|
+
"""
|
43
|
+
|
44
|
+
|
45
|
+
|
46
|
+
self._instance_id = None
|
47
|
+
self._proxy_id = None
|
48
|
+
self._x_language = None
|
49
|
+
self.discriminator = None
|
50
|
+
|
51
|
+
self.instance_id = instance_id
|
52
|
+
self.proxy_id = proxy_id
|
53
|
+
if x_language is not None:
|
54
|
+
self.x_language = x_language
|
55
|
+
|
56
|
+
@property
|
57
|
+
def instance_id(self):
|
58
|
+
"""Gets the instance_id of this ShowProxyIpgroupRequest.
|
59
|
+
|
60
|
+
实例ID,严格匹配UUID规则。
|
61
|
+
|
62
|
+
:return: The instance_id of this ShowProxyIpgroupRequest.
|
63
|
+
:rtype: str
|
64
|
+
"""
|
65
|
+
return self._instance_id
|
66
|
+
|
67
|
+
@instance_id.setter
|
68
|
+
def instance_id(self, instance_id):
|
69
|
+
"""Sets the instance_id of this ShowProxyIpgroupRequest.
|
70
|
+
|
71
|
+
实例ID,严格匹配UUID规则。
|
72
|
+
|
73
|
+
:param instance_id: The instance_id of this ShowProxyIpgroupRequest.
|
74
|
+
:type instance_id: str
|
75
|
+
"""
|
76
|
+
self._instance_id = instance_id
|
77
|
+
|
78
|
+
@property
|
79
|
+
def proxy_id(self):
|
80
|
+
"""Gets the proxy_id of this ShowProxyIpgroupRequest.
|
81
|
+
|
82
|
+
数据库代理ID,严格匹配UUID规则。
|
83
|
+
|
84
|
+
:return: The proxy_id of this ShowProxyIpgroupRequest.
|
85
|
+
:rtype: str
|
86
|
+
"""
|
87
|
+
return self._proxy_id
|
88
|
+
|
89
|
+
@proxy_id.setter
|
90
|
+
def proxy_id(self, proxy_id):
|
91
|
+
"""Sets the proxy_id of this ShowProxyIpgroupRequest.
|
92
|
+
|
93
|
+
数据库代理ID,严格匹配UUID规则。
|
94
|
+
|
95
|
+
:param proxy_id: The proxy_id of this ShowProxyIpgroupRequest.
|
96
|
+
:type proxy_id: str
|
97
|
+
"""
|
98
|
+
self._proxy_id = proxy_id
|
99
|
+
|
100
|
+
@property
|
101
|
+
def x_language(self):
|
102
|
+
"""Gets the x_language of this ShowProxyIpgroupRequest.
|
103
|
+
|
104
|
+
语言。
|
105
|
+
|
106
|
+
:return: The x_language of this ShowProxyIpgroupRequest.
|
107
|
+
:rtype: str
|
108
|
+
"""
|
109
|
+
return self._x_language
|
110
|
+
|
111
|
+
@x_language.setter
|
112
|
+
def x_language(self, x_language):
|
113
|
+
"""Sets the x_language of this ShowProxyIpgroupRequest.
|
114
|
+
|
115
|
+
语言。
|
116
|
+
|
117
|
+
:param x_language: The x_language of this ShowProxyIpgroupRequest.
|
118
|
+
:type x_language: str
|
119
|
+
"""
|
120
|
+
self._x_language = x_language
|
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, ShowProxyIpgroupRequest):
|
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
|