huaweicloudsdkgaussdb 3.1.97__py2.py3-none-any.whl → 3.1.99__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 +63 -0
- huaweicloudsdkgaussdb/v3/gaussdb_async_client.py +1823 -435
- huaweicloudsdkgaussdb/v3/gaussdb_client.py +1823 -435
- huaweicloudsdkgaussdb/v3/model/__init__.py +63 -0
- huaweicloudsdkgaussdb/v3/model/auto_scaling_record_info.py +318 -0
- huaweicloudsdkgaussdb/v3/model/create_lts_configs.py +114 -0
- huaweicloudsdkgaussdb/v3/model/create_lts_configs_request.py +140 -0
- huaweicloudsdkgaussdb/v3/model/create_lts_configs_response.py +85 -0
- huaweicloudsdkgaussdb/v3/model/delete_lts_configs_request.py +140 -0
- huaweicloudsdkgaussdb/v3/model/delete_lts_configs_request_body.py +114 -0
- huaweicloudsdkgaussdb/v3/model/delete_lts_configs_response.py +85 -0
- huaweicloudsdkgaussdb/v3/model/instance_delete_lts_config.py +142 -0
- huaweicloudsdkgaussdb/v3/model/instance_lts_basic_info.py +318 -0
- huaweicloudsdkgaussdb/v3/model/instance_save_lts_config.py +198 -0
- huaweicloudsdkgaussdb/v3/model/ip_group_item.py +142 -0
- huaweicloudsdkgaussdb/v3/model/list_params_template_apply_history_request.py +172 -0
- huaweicloudsdkgaussdb/v3/model/list_params_template_apply_history_response.py +145 -0
- huaweicloudsdkgaussdb/v3/model/list_recycle_instances_request.py +173 -0
- huaweicloudsdkgaussdb/v3/model/list_recycle_instances_response.py +145 -0
- huaweicloudsdkgaussdb/v3/model/lts_config.py +202 -0
- huaweicloudsdkgaussdb/v3/model/lts_configs_v3.py +140 -0
- huaweicloudsdkgaussdb/v3/model/modify_gauss_my_sql_proxy_route_mode_request_body.py +3 -3
- huaweicloudsdkgaussdb/v3/model/modify_node_priority_request.py +196 -0
- huaweicloudsdkgaussdb/v3/model/modify_node_priority_request_body.py +114 -0
- huaweicloudsdkgaussdb/v3/model/modify_node_priority_response.py +116 -0
- huaweicloudsdkgaussdb/v3/model/mysql_update_instance_name_request.py +32 -3
- huaweicloudsdkgaussdb/v3/model/proxy_configuration.py +260 -0
- huaweicloudsdkgaussdb/v3/model/proxy_ip_group_detail.py +170 -0
- 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/recycle_instance_v3.py +579 -0
- huaweicloudsdkgaussdb/v3/model/recycle_policy.py +114 -0
- huaweicloudsdkgaussdb/v3/model/rename_instance_node_request.py +168 -0
- huaweicloudsdkgaussdb/v3/model/rename_instance_node_request_body.py +114 -0
- huaweicloudsdkgaussdb/v3/model/rename_instance_node_response.py +116 -0
- huaweicloudsdkgaussdb/v3/model/restart_proxy_instance_request.py +171 -0
- huaweicloudsdkgaussdb/v3/model/restart_proxy_instance_response.py +116 -0
- huaweicloudsdkgaussdb/v3/model/set_recycle_policy_request.py +140 -0
- huaweicloudsdkgaussdb/v3/model/set_recycle_policy_request_body.py +111 -0
- huaweicloudsdkgaussdb/v3/model/set_recycle_policy_response.py +85 -0
- huaweicloudsdkgaussdb/v3/model/show_auto_scaling_history_request.py +201 -0
- huaweicloudsdkgaussdb/v3/model/show_auto_scaling_history_response.py +145 -0
- huaweicloudsdkgaussdb/v3/model/show_instance_eip_request.py +143 -0
- huaweicloudsdkgaussdb/v3/model/show_instance_eip_response.py +493 -0
- huaweicloudsdkgaussdb/v3/model/show_lts_configs_request.py +260 -0
- huaweicloudsdkgaussdb/v3/model/show_lts_configs_response.py +145 -0
- huaweicloudsdkgaussdb/v3/model/show_proxy_configurations_request.py +258 -0
- huaweicloudsdkgaussdb/v3/model/show_proxy_configurations_response.py +145 -0
- huaweicloudsdkgaussdb/v3/model/show_proxy_ipgroup_request.py +171 -0
- huaweicloudsdkgaussdb/v3/model/show_proxy_ipgroup_response.py +170 -0
- huaweicloudsdkgaussdb/v3/model/show_proxy_version_request.py +199 -0
- huaweicloudsdkgaussdb/v3/model/show_proxy_version_response.py +174 -0
- huaweicloudsdkgaussdb/v3/model/show_recycle_policy_request.py +115 -0
- huaweicloudsdkgaussdb/v3/model/show_recycle_policy_response.py +112 -0
- huaweicloudsdkgaussdb/v3/model/show_slowlog_sensitive_status_request.py +143 -0
- huaweicloudsdkgaussdb/v3/model/show_slowlog_sensitive_status_response.py +116 -0
- huaweicloudsdkgaussdb/v3/model/single_node_info.py +142 -0
- huaweicloudsdkgaussdb/v3/model/template_apply_history.py +231 -0
- huaweicloudsdkgaussdb/v3/model/update_proxy_name_request.py +196 -0
- huaweicloudsdkgaussdb/v3/model/update_proxy_name_response.py +116 -0
- huaweicloudsdkgaussdb/v3/model/update_serverless_policy.py +142 -0
- huaweicloudsdkgaussdb/v3/model/update_serverless_policy_request.py +168 -0
- huaweicloudsdkgaussdb/v3/model/update_serverless_policy_response.py +85 -0
- huaweicloudsdkgaussdb/v3/model/update_slowlog_sensitive_switch_request.py +168 -0
- huaweicloudsdkgaussdb/v3/model/update_slowlog_sensitive_switch_request_body.py +114 -0
- huaweicloudsdkgaussdb/v3/model/update_slowlog_sensitive_switch_response.py +85 -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.99.dist-info}/METADATA +2 -2
- {huaweicloudsdkgaussdb-3.1.97.dist-info → huaweicloudsdkgaussdb-3.1.99.dist-info}/RECORD +74 -11
- {huaweicloudsdkgaussdb-3.1.97.dist-info → huaweicloudsdkgaussdb-3.1.99.dist-info}/LICENSE +0 -0
- {huaweicloudsdkgaussdb-3.1.97.dist-info → huaweicloudsdkgaussdb-3.1.99.dist-info}/WHEEL +0 -0
- {huaweicloudsdkgaussdb-3.1.97.dist-info → huaweicloudsdkgaussdb-3.1.99.dist-info}/top_level.txt +0 -0
@@ -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 ShowProxyConfigurationsResponse(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': 'str',
|
22
|
+
'configurations': 'list[ProxyConfiguration]'
|
23
|
+
}
|
24
|
+
|
25
|
+
attribute_map = {
|
26
|
+
'total_count': 'total_count',
|
27
|
+
'configurations': 'configurations'
|
28
|
+
}
|
29
|
+
|
30
|
+
def __init__(self, total_count=None, configurations=None):
|
31
|
+
"""ShowProxyConfigurationsResponse
|
32
|
+
|
33
|
+
The model defined in huaweicloud sdk
|
34
|
+
|
35
|
+
:param total_count: 数据总数
|
36
|
+
:type total_count: str
|
37
|
+
:param configurations: 内核可配置的参数列表
|
38
|
+
:type configurations: list[:class:`huaweicloudsdkgaussdb.v3.ProxyConfiguration`]
|
39
|
+
"""
|
40
|
+
|
41
|
+
super(ShowProxyConfigurationsResponse, self).__init__()
|
42
|
+
|
43
|
+
self._total_count = None
|
44
|
+
self._configurations = None
|
45
|
+
self.discriminator = None
|
46
|
+
|
47
|
+
if total_count is not None:
|
48
|
+
self.total_count = total_count
|
49
|
+
if configurations is not None:
|
50
|
+
self.configurations = configurations
|
51
|
+
|
52
|
+
@property
|
53
|
+
def total_count(self):
|
54
|
+
"""Gets the total_count of this ShowProxyConfigurationsResponse.
|
55
|
+
|
56
|
+
数据总数
|
57
|
+
|
58
|
+
:return: The total_count of this ShowProxyConfigurationsResponse.
|
59
|
+
:rtype: str
|
60
|
+
"""
|
61
|
+
return self._total_count
|
62
|
+
|
63
|
+
@total_count.setter
|
64
|
+
def total_count(self, total_count):
|
65
|
+
"""Sets the total_count of this ShowProxyConfigurationsResponse.
|
66
|
+
|
67
|
+
数据总数
|
68
|
+
|
69
|
+
:param total_count: The total_count of this ShowProxyConfigurationsResponse.
|
70
|
+
:type total_count: str
|
71
|
+
"""
|
72
|
+
self._total_count = total_count
|
73
|
+
|
74
|
+
@property
|
75
|
+
def configurations(self):
|
76
|
+
"""Gets the configurations of this ShowProxyConfigurationsResponse.
|
77
|
+
|
78
|
+
内核可配置的参数列表
|
79
|
+
|
80
|
+
:return: The configurations of this ShowProxyConfigurationsResponse.
|
81
|
+
:rtype: list[:class:`huaweicloudsdkgaussdb.v3.ProxyConfiguration`]
|
82
|
+
"""
|
83
|
+
return self._configurations
|
84
|
+
|
85
|
+
@configurations.setter
|
86
|
+
def configurations(self, configurations):
|
87
|
+
"""Sets the configurations of this ShowProxyConfigurationsResponse.
|
88
|
+
|
89
|
+
内核可配置的参数列表
|
90
|
+
|
91
|
+
:param configurations: The configurations of this ShowProxyConfigurationsResponse.
|
92
|
+
:type configurations: list[:class:`huaweicloudsdkgaussdb.v3.ProxyConfiguration`]
|
93
|
+
"""
|
94
|
+
self._configurations = configurations
|
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, ShowProxyConfigurationsResponse):
|
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,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
|
@@ -0,0 +1,170 @@
|
|
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': 'ProxyIpGroupDetail'
|
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: :class:`huaweicloudsdkgaussdb.v3.ProxyIpGroupDetail`
|
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
|
+
:return: The ip_group of this ShowProxyIpgroupResponse.
|
108
|
+
:rtype: :class:`huaweicloudsdkgaussdb.v3.ProxyIpGroupDetail`
|
109
|
+
"""
|
110
|
+
return self._ip_group
|
111
|
+
|
112
|
+
@ip_group.setter
|
113
|
+
def ip_group(self, ip_group):
|
114
|
+
"""Sets the ip_group of this ShowProxyIpgroupResponse.
|
115
|
+
|
116
|
+
:param ip_group: The ip_group of this ShowProxyIpgroupResponse.
|
117
|
+
:type ip_group: :class:`huaweicloudsdkgaussdb.v3.ProxyIpGroupDetail`
|
118
|
+
"""
|
119
|
+
self._ip_group = ip_group
|
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, ShowProxyIpgroupResponse):
|
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,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
|