huaweicloudsdkgaussdb 3.1.98__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 +52 -0
- huaweicloudsdkgaussdb/v3/gaussdb_async_client.py +1151 -45
- huaweicloudsdkgaussdb/v3/gaussdb_client.py +1151 -45
- huaweicloudsdkgaussdb/v3/model/__init__.py +52 -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_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/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_response.py +5 -9
- 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_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-3.1.98.dist-info → huaweicloudsdkgaussdb-3.1.99.dist-info}/METADATA +2 -2
- {huaweicloudsdkgaussdb-3.1.98.dist-info → huaweicloudsdkgaussdb-3.1.99.dist-info}/RECORD +63 -11
- {huaweicloudsdkgaussdb-3.1.98.dist-info → huaweicloudsdkgaussdb-3.1.99.dist-info}/LICENSE +0 -0
- {huaweicloudsdkgaussdb-3.1.98.dist-info → huaweicloudsdkgaussdb-3.1.99.dist-info}/WHEEL +0 -0
- {huaweicloudsdkgaussdb-3.1.98.dist-info → huaweicloudsdkgaussdb-3.1.99.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,116 @@
|
|
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 ModifyNodePriorityResponse(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
|
+
'job_id': 'str'
|
22
|
+
}
|
23
|
+
|
24
|
+
attribute_map = {
|
25
|
+
'job_id': 'job_id'
|
26
|
+
}
|
27
|
+
|
28
|
+
def __init__(self, job_id=None):
|
29
|
+
"""ModifyNodePriorityResponse
|
30
|
+
|
31
|
+
The model defined in huaweicloud sdk
|
32
|
+
|
33
|
+
:param job_id: 工作流ID。
|
34
|
+
:type job_id: str
|
35
|
+
"""
|
36
|
+
|
37
|
+
super(ModifyNodePriorityResponse, self).__init__()
|
38
|
+
|
39
|
+
self._job_id = None
|
40
|
+
self.discriminator = None
|
41
|
+
|
42
|
+
if job_id is not None:
|
43
|
+
self.job_id = job_id
|
44
|
+
|
45
|
+
@property
|
46
|
+
def job_id(self):
|
47
|
+
"""Gets the job_id of this ModifyNodePriorityResponse.
|
48
|
+
|
49
|
+
工作流ID。
|
50
|
+
|
51
|
+
:return: The job_id of this ModifyNodePriorityResponse.
|
52
|
+
:rtype: str
|
53
|
+
"""
|
54
|
+
return self._job_id
|
55
|
+
|
56
|
+
@job_id.setter
|
57
|
+
def job_id(self, job_id):
|
58
|
+
"""Sets the job_id of this ModifyNodePriorityResponse.
|
59
|
+
|
60
|
+
工作流ID。
|
61
|
+
|
62
|
+
:param job_id: The job_id of this ModifyNodePriorityResponse.
|
63
|
+
:type job_id: str
|
64
|
+
"""
|
65
|
+
self._job_id = job_id
|
66
|
+
|
67
|
+
def to_dict(self):
|
68
|
+
"""Returns the model properties as a dict"""
|
69
|
+
result = {}
|
70
|
+
|
71
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
72
|
+
value = getattr(self, attr)
|
73
|
+
if isinstance(value, list):
|
74
|
+
result[attr] = list(map(
|
75
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
76
|
+
value
|
77
|
+
))
|
78
|
+
elif hasattr(value, "to_dict"):
|
79
|
+
result[attr] = value.to_dict()
|
80
|
+
elif isinstance(value, dict):
|
81
|
+
result[attr] = dict(map(
|
82
|
+
lambda item: (item[0], item[1].to_dict())
|
83
|
+
if hasattr(item[1], "to_dict") else item,
|
84
|
+
value.items()
|
85
|
+
))
|
86
|
+
else:
|
87
|
+
if attr in self.sensitive_list:
|
88
|
+
result[attr] = "****"
|
89
|
+
else:
|
90
|
+
result[attr] = value
|
91
|
+
|
92
|
+
return result
|
93
|
+
|
94
|
+
def to_str(self):
|
95
|
+
"""Returns the string representation of the model"""
|
96
|
+
import simplejson as json
|
97
|
+
if six.PY2:
|
98
|
+
import sys
|
99
|
+
reload(sys)
|
100
|
+
sys.setdefaultencoding("utf-8")
|
101
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
102
|
+
|
103
|
+
def __repr__(self):
|
104
|
+
"""For `print`"""
|
105
|
+
return self.to_str()
|
106
|
+
|
107
|
+
def __eq__(self, other):
|
108
|
+
"""Returns true if both objects are equal"""
|
109
|
+
if not isinstance(other, ModifyNodePriorityResponse):
|
110
|
+
return False
|
111
|
+
|
112
|
+
return self.__dict__ == other.__dict__
|
113
|
+
|
114
|
+
def __ne__(self, other):
|
115
|
+
"""Returns true if both objects are not equal"""
|
116
|
+
return not self == other
|
@@ -17,28 +17,35 @@ class MysqlUpdateInstanceNameRequest:
|
|
17
17
|
sensitive_list = []
|
18
18
|
|
19
19
|
openapi_types = {
|
20
|
-
'name': 'str'
|
20
|
+
'name': 'str',
|
21
|
+
'is_modify_node_name': 'str'
|
21
22
|
}
|
22
23
|
|
23
24
|
attribute_map = {
|
24
|
-
'name': 'name'
|
25
|
+
'name': 'name',
|
26
|
+
'is_modify_node_name': 'is_modify_node_name'
|
25
27
|
}
|
26
28
|
|
27
|
-
def __init__(self, name=None):
|
29
|
+
def __init__(self, name=None, is_modify_node_name=None):
|
28
30
|
"""MysqlUpdateInstanceNameRequest
|
29
31
|
|
30
32
|
The model defined in huaweicloud sdk
|
31
33
|
|
32
34
|
:param name: 实例名称。 用于表示实例的名称,同一租户下,同类型的实例名可重名。取值范围:最小为4个字符,最大为64个字符且不超过64个字节(注意:一个中文字符占用3个字节),必须以字母或中文开头,区分大小写,可以包含字母、数字、中划线、下划线或中文,不能包含其他特殊字符。
|
33
35
|
:type name: str
|
36
|
+
:param is_modify_node_name: 是否同步修改节点名称,取值:true或false, 默认值为true。
|
37
|
+
:type is_modify_node_name: str
|
34
38
|
"""
|
35
39
|
|
36
40
|
|
37
41
|
|
38
42
|
self._name = None
|
43
|
+
self._is_modify_node_name = None
|
39
44
|
self.discriminator = None
|
40
45
|
|
41
46
|
self.name = name
|
47
|
+
if is_modify_node_name is not None:
|
48
|
+
self.is_modify_node_name = is_modify_node_name
|
42
49
|
|
43
50
|
@property
|
44
51
|
def name(self):
|
@@ -62,6 +69,28 @@ class MysqlUpdateInstanceNameRequest:
|
|
62
69
|
"""
|
63
70
|
self._name = name
|
64
71
|
|
72
|
+
@property
|
73
|
+
def is_modify_node_name(self):
|
74
|
+
"""Gets the is_modify_node_name of this MysqlUpdateInstanceNameRequest.
|
75
|
+
|
76
|
+
是否同步修改节点名称,取值:true或false, 默认值为true。
|
77
|
+
|
78
|
+
:return: The is_modify_node_name of this MysqlUpdateInstanceNameRequest.
|
79
|
+
:rtype: str
|
80
|
+
"""
|
81
|
+
return self._is_modify_node_name
|
82
|
+
|
83
|
+
@is_modify_node_name.setter
|
84
|
+
def is_modify_node_name(self, is_modify_node_name):
|
85
|
+
"""Sets the is_modify_node_name of this MysqlUpdateInstanceNameRequest.
|
86
|
+
|
87
|
+
是否同步修改节点名称,取值:true或false, 默认值为true。
|
88
|
+
|
89
|
+
:param is_modify_node_name: The is_modify_node_name of this MysqlUpdateInstanceNameRequest.
|
90
|
+
:type is_modify_node_name: str
|
91
|
+
"""
|
92
|
+
self._is_modify_node_name = is_modify_node_name
|
93
|
+
|
65
94
|
def to_dict(self):
|
66
95
|
"""Returns the model properties as a dict"""
|
67
96
|
result = {}
|
@@ -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 ProxyConfiguration:
|
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
|
+
'name': 'str',
|
21
|
+
'data_type': 'str',
|
22
|
+
'elem_type': 'str',
|
23
|
+
'value_range': 'str',
|
24
|
+
'value': 'str',
|
25
|
+
'description': 'str'
|
26
|
+
}
|
27
|
+
|
28
|
+
attribute_map = {
|
29
|
+
'name': 'name',
|
30
|
+
'data_type': 'data_type',
|
31
|
+
'elem_type': 'elem_type',
|
32
|
+
'value_range': 'value_range',
|
33
|
+
'value': 'value',
|
34
|
+
'description': 'description'
|
35
|
+
}
|
36
|
+
|
37
|
+
def __init__(self, name=None, data_type=None, elem_type=None, value_range=None, value=None, description=None):
|
38
|
+
"""ProxyConfiguration
|
39
|
+
|
40
|
+
The model defined in huaweicloud sdk
|
41
|
+
|
42
|
+
:param name: 参数名称
|
43
|
+
:type name: str
|
44
|
+
:param data_type: 参数数据类型
|
45
|
+
:type data_type: str
|
46
|
+
:param elem_type: 参数父标签类型
|
47
|
+
:type elem_type: str
|
48
|
+
:param value_range: 取值范围
|
49
|
+
:type value_range: str
|
50
|
+
:param value: 参数默认值
|
51
|
+
:type value: str
|
52
|
+
:param description: 参数描述
|
53
|
+
:type description: str
|
54
|
+
"""
|
55
|
+
|
56
|
+
|
57
|
+
|
58
|
+
self._name = None
|
59
|
+
self._data_type = None
|
60
|
+
self._elem_type = None
|
61
|
+
self._value_range = None
|
62
|
+
self._value = None
|
63
|
+
self._description = None
|
64
|
+
self.discriminator = None
|
65
|
+
|
66
|
+
if name is not None:
|
67
|
+
self.name = name
|
68
|
+
if data_type is not None:
|
69
|
+
self.data_type = data_type
|
70
|
+
if elem_type is not None:
|
71
|
+
self.elem_type = elem_type
|
72
|
+
if value_range is not None:
|
73
|
+
self.value_range = value_range
|
74
|
+
if value is not None:
|
75
|
+
self.value = value
|
76
|
+
if description is not None:
|
77
|
+
self.description = description
|
78
|
+
|
79
|
+
@property
|
80
|
+
def name(self):
|
81
|
+
"""Gets the name of this ProxyConfiguration.
|
82
|
+
|
83
|
+
参数名称
|
84
|
+
|
85
|
+
:return: The name of this ProxyConfiguration.
|
86
|
+
:rtype: str
|
87
|
+
"""
|
88
|
+
return self._name
|
89
|
+
|
90
|
+
@name.setter
|
91
|
+
def name(self, name):
|
92
|
+
"""Sets the name of this ProxyConfiguration.
|
93
|
+
|
94
|
+
参数名称
|
95
|
+
|
96
|
+
:param name: The name of this ProxyConfiguration.
|
97
|
+
:type name: str
|
98
|
+
"""
|
99
|
+
self._name = name
|
100
|
+
|
101
|
+
@property
|
102
|
+
def data_type(self):
|
103
|
+
"""Gets the data_type of this ProxyConfiguration.
|
104
|
+
|
105
|
+
参数数据类型
|
106
|
+
|
107
|
+
:return: The data_type of this ProxyConfiguration.
|
108
|
+
:rtype: str
|
109
|
+
"""
|
110
|
+
return self._data_type
|
111
|
+
|
112
|
+
@data_type.setter
|
113
|
+
def data_type(self, data_type):
|
114
|
+
"""Sets the data_type of this ProxyConfiguration.
|
115
|
+
|
116
|
+
参数数据类型
|
117
|
+
|
118
|
+
:param data_type: The data_type of this ProxyConfiguration.
|
119
|
+
:type data_type: str
|
120
|
+
"""
|
121
|
+
self._data_type = data_type
|
122
|
+
|
123
|
+
@property
|
124
|
+
def elem_type(self):
|
125
|
+
"""Gets the elem_type of this ProxyConfiguration.
|
126
|
+
|
127
|
+
参数父标签类型
|
128
|
+
|
129
|
+
:return: The elem_type of this ProxyConfiguration.
|
130
|
+
:rtype: str
|
131
|
+
"""
|
132
|
+
return self._elem_type
|
133
|
+
|
134
|
+
@elem_type.setter
|
135
|
+
def elem_type(self, elem_type):
|
136
|
+
"""Sets the elem_type of this ProxyConfiguration.
|
137
|
+
|
138
|
+
参数父标签类型
|
139
|
+
|
140
|
+
:param elem_type: The elem_type of this ProxyConfiguration.
|
141
|
+
:type elem_type: str
|
142
|
+
"""
|
143
|
+
self._elem_type = elem_type
|
144
|
+
|
145
|
+
@property
|
146
|
+
def value_range(self):
|
147
|
+
"""Gets the value_range of this ProxyConfiguration.
|
148
|
+
|
149
|
+
取值范围
|
150
|
+
|
151
|
+
:return: The value_range of this ProxyConfiguration.
|
152
|
+
:rtype: str
|
153
|
+
"""
|
154
|
+
return self._value_range
|
155
|
+
|
156
|
+
@value_range.setter
|
157
|
+
def value_range(self, value_range):
|
158
|
+
"""Sets the value_range of this ProxyConfiguration.
|
159
|
+
|
160
|
+
取值范围
|
161
|
+
|
162
|
+
:param value_range: The value_range of this ProxyConfiguration.
|
163
|
+
:type value_range: str
|
164
|
+
"""
|
165
|
+
self._value_range = value_range
|
166
|
+
|
167
|
+
@property
|
168
|
+
def value(self):
|
169
|
+
"""Gets the value of this ProxyConfiguration.
|
170
|
+
|
171
|
+
参数默认值
|
172
|
+
|
173
|
+
:return: The value of this ProxyConfiguration.
|
174
|
+
:rtype: str
|
175
|
+
"""
|
176
|
+
return self._value
|
177
|
+
|
178
|
+
@value.setter
|
179
|
+
def value(self, value):
|
180
|
+
"""Sets the value of this ProxyConfiguration.
|
181
|
+
|
182
|
+
参数默认值
|
183
|
+
|
184
|
+
:param value: The value of this ProxyConfiguration.
|
185
|
+
:type value: str
|
186
|
+
"""
|
187
|
+
self._value = value
|
188
|
+
|
189
|
+
@property
|
190
|
+
def description(self):
|
191
|
+
"""Gets the description of this ProxyConfiguration.
|
192
|
+
|
193
|
+
参数描述
|
194
|
+
|
195
|
+
:return: The description of this ProxyConfiguration.
|
196
|
+
:rtype: str
|
197
|
+
"""
|
198
|
+
return self._description
|
199
|
+
|
200
|
+
@description.setter
|
201
|
+
def description(self, description):
|
202
|
+
"""Sets the description of this ProxyConfiguration.
|
203
|
+
|
204
|
+
参数描述
|
205
|
+
|
206
|
+
:param description: The description of this ProxyConfiguration.
|
207
|
+
:type description: str
|
208
|
+
"""
|
209
|
+
self._description = description
|
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, ProxyConfiguration):
|
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,170 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class ProxyIpGroupDetail:
|
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
|
+
'id': 'str',
|
21
|
+
'name': 'str',
|
22
|
+
'ip_list': 'list[IpGroupItem]'
|
23
|
+
}
|
24
|
+
|
25
|
+
attribute_map = {
|
26
|
+
'id': 'id',
|
27
|
+
'name': 'name',
|
28
|
+
'ip_list': 'ip_list'
|
29
|
+
}
|
30
|
+
|
31
|
+
def __init__(self, id=None, name=None, ip_list=None):
|
32
|
+
"""ProxyIpGroupDetail
|
33
|
+
|
34
|
+
The model defined in huaweicloud sdk
|
35
|
+
|
36
|
+
:param id: ipGroup的id
|
37
|
+
:type id: str
|
38
|
+
:param name: ipGroup的名称
|
39
|
+
:type name: str
|
40
|
+
:param ip_list: ipGroup内部的ip列表
|
41
|
+
:type ip_list: list[:class:`huaweicloudsdkgaussdb.v3.IpGroupItem`]
|
42
|
+
"""
|
43
|
+
|
44
|
+
|
45
|
+
|
46
|
+
self._id = None
|
47
|
+
self._name = None
|
48
|
+
self._ip_list = None
|
49
|
+
self.discriminator = None
|
50
|
+
|
51
|
+
self.id = id
|
52
|
+
self.name = name
|
53
|
+
self.ip_list = ip_list
|
54
|
+
|
55
|
+
@property
|
56
|
+
def id(self):
|
57
|
+
"""Gets the id of this ProxyIpGroupDetail.
|
58
|
+
|
59
|
+
ipGroup的id
|
60
|
+
|
61
|
+
:return: The id of this ProxyIpGroupDetail.
|
62
|
+
:rtype: str
|
63
|
+
"""
|
64
|
+
return self._id
|
65
|
+
|
66
|
+
@id.setter
|
67
|
+
def id(self, id):
|
68
|
+
"""Sets the id of this ProxyIpGroupDetail.
|
69
|
+
|
70
|
+
ipGroup的id
|
71
|
+
|
72
|
+
:param id: The id of this ProxyIpGroupDetail.
|
73
|
+
:type id: str
|
74
|
+
"""
|
75
|
+
self._id = id
|
76
|
+
|
77
|
+
@property
|
78
|
+
def name(self):
|
79
|
+
"""Gets the name of this ProxyIpGroupDetail.
|
80
|
+
|
81
|
+
ipGroup的名称
|
82
|
+
|
83
|
+
:return: The name of this ProxyIpGroupDetail.
|
84
|
+
:rtype: str
|
85
|
+
"""
|
86
|
+
return self._name
|
87
|
+
|
88
|
+
@name.setter
|
89
|
+
def name(self, name):
|
90
|
+
"""Sets the name of this ProxyIpGroupDetail.
|
91
|
+
|
92
|
+
ipGroup的名称
|
93
|
+
|
94
|
+
:param name: The name of this ProxyIpGroupDetail.
|
95
|
+
:type name: str
|
96
|
+
"""
|
97
|
+
self._name = name
|
98
|
+
|
99
|
+
@property
|
100
|
+
def ip_list(self):
|
101
|
+
"""Gets the ip_list of this ProxyIpGroupDetail.
|
102
|
+
|
103
|
+
ipGroup内部的ip列表
|
104
|
+
|
105
|
+
:return: The ip_list of this ProxyIpGroupDetail.
|
106
|
+
:rtype: list[:class:`huaweicloudsdkgaussdb.v3.IpGroupItem`]
|
107
|
+
"""
|
108
|
+
return self._ip_list
|
109
|
+
|
110
|
+
@ip_list.setter
|
111
|
+
def ip_list(self, ip_list):
|
112
|
+
"""Sets the ip_list of this ProxyIpGroupDetail.
|
113
|
+
|
114
|
+
ipGroup内部的ip列表
|
115
|
+
|
116
|
+
:param ip_list: The ip_list of this ProxyIpGroupDetail.
|
117
|
+
:type ip_list: list[:class:`huaweicloudsdkgaussdb.v3.IpGroupItem`]
|
118
|
+
"""
|
119
|
+
self._ip_list = ip_list
|
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, ProxyIpGroupDetail):
|
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
|