huaweicloudsdkgaussdb 3.1.98__py2.py3-none-any.whl → 3.1.100__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_dedicated_resource_info_response.py +18 -18
- 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.100.dist-info}/METADATA +2 -2
- {huaweicloudsdkgaussdb-3.1.98.dist-info → huaweicloudsdkgaussdb-3.1.100.dist-info}/RECORD +64 -12
- {huaweicloudsdkgaussdb-3.1.98.dist-info → huaweicloudsdkgaussdb-3.1.100.dist-info}/LICENSE +0 -0
- {huaweicloudsdkgaussdb-3.1.98.dist-info → huaweicloudsdkgaussdb-3.1.100.dist-info}/WHEEL +0 -0
- {huaweicloudsdkgaussdb-3.1.98.dist-info → huaweicloudsdkgaussdb-3.1.100.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,318 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class InstanceLtsBasicInfo:
|
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
|
+
'mode': 'str',
|
23
|
+
'engine_name': 'str',
|
24
|
+
'engine_version': 'str',
|
25
|
+
'status': 'str',
|
26
|
+
'enterprise_project_id': 'str',
|
27
|
+
'enterprise_project_name': 'str'
|
28
|
+
}
|
29
|
+
|
30
|
+
attribute_map = {
|
31
|
+
'id': 'id',
|
32
|
+
'name': 'name',
|
33
|
+
'mode': 'mode',
|
34
|
+
'engine_name': 'engine_name',
|
35
|
+
'engine_version': 'engine_version',
|
36
|
+
'status': 'status',
|
37
|
+
'enterprise_project_id': 'enterprise_project_id',
|
38
|
+
'enterprise_project_name': 'enterprise_project_name'
|
39
|
+
}
|
40
|
+
|
41
|
+
def __init__(self, id=None, name=None, mode=None, engine_name=None, engine_version=None, status=None, enterprise_project_id=None, enterprise_project_name=None):
|
42
|
+
"""InstanceLtsBasicInfo
|
43
|
+
|
44
|
+
The model defined in huaweicloud sdk
|
45
|
+
|
46
|
+
:param id: 实例ID。
|
47
|
+
:type id: str
|
48
|
+
:param name: 实例名称。
|
49
|
+
:type name: str
|
50
|
+
:param mode: 实例类型。
|
51
|
+
:type mode: str
|
52
|
+
:param engine_name: 引擎名称。
|
53
|
+
:type engine_name: str
|
54
|
+
:param engine_version: 引擎版本。
|
55
|
+
:type engine_version: str
|
56
|
+
:param status: 状态。
|
57
|
+
:type status: str
|
58
|
+
:param enterprise_project_id: 企业项目ID。
|
59
|
+
:type enterprise_project_id: str
|
60
|
+
:param enterprise_project_name: 企业项目名称。
|
61
|
+
:type enterprise_project_name: str
|
62
|
+
"""
|
63
|
+
|
64
|
+
|
65
|
+
|
66
|
+
self._id = None
|
67
|
+
self._name = None
|
68
|
+
self._mode = None
|
69
|
+
self._engine_name = None
|
70
|
+
self._engine_version = None
|
71
|
+
self._status = None
|
72
|
+
self._enterprise_project_id = None
|
73
|
+
self._enterprise_project_name = None
|
74
|
+
self.discriminator = None
|
75
|
+
|
76
|
+
if id is not None:
|
77
|
+
self.id = id
|
78
|
+
if name is not None:
|
79
|
+
self.name = name
|
80
|
+
if mode is not None:
|
81
|
+
self.mode = mode
|
82
|
+
if engine_name is not None:
|
83
|
+
self.engine_name = engine_name
|
84
|
+
if engine_version is not None:
|
85
|
+
self.engine_version = engine_version
|
86
|
+
if status is not None:
|
87
|
+
self.status = status
|
88
|
+
if enterprise_project_id is not None:
|
89
|
+
self.enterprise_project_id = enterprise_project_id
|
90
|
+
if enterprise_project_name is not None:
|
91
|
+
self.enterprise_project_name = enterprise_project_name
|
92
|
+
|
93
|
+
@property
|
94
|
+
def id(self):
|
95
|
+
"""Gets the id of this InstanceLtsBasicInfo.
|
96
|
+
|
97
|
+
实例ID。
|
98
|
+
|
99
|
+
:return: The id of this InstanceLtsBasicInfo.
|
100
|
+
:rtype: str
|
101
|
+
"""
|
102
|
+
return self._id
|
103
|
+
|
104
|
+
@id.setter
|
105
|
+
def id(self, id):
|
106
|
+
"""Sets the id of this InstanceLtsBasicInfo.
|
107
|
+
|
108
|
+
实例ID。
|
109
|
+
|
110
|
+
:param id: The id of this InstanceLtsBasicInfo.
|
111
|
+
:type id: str
|
112
|
+
"""
|
113
|
+
self._id = id
|
114
|
+
|
115
|
+
@property
|
116
|
+
def name(self):
|
117
|
+
"""Gets the name of this InstanceLtsBasicInfo.
|
118
|
+
|
119
|
+
实例名称。
|
120
|
+
|
121
|
+
:return: The name of this InstanceLtsBasicInfo.
|
122
|
+
:rtype: str
|
123
|
+
"""
|
124
|
+
return self._name
|
125
|
+
|
126
|
+
@name.setter
|
127
|
+
def name(self, name):
|
128
|
+
"""Sets the name of this InstanceLtsBasicInfo.
|
129
|
+
|
130
|
+
实例名称。
|
131
|
+
|
132
|
+
:param name: The name of this InstanceLtsBasicInfo.
|
133
|
+
:type name: str
|
134
|
+
"""
|
135
|
+
self._name = name
|
136
|
+
|
137
|
+
@property
|
138
|
+
def mode(self):
|
139
|
+
"""Gets the mode of this InstanceLtsBasicInfo.
|
140
|
+
|
141
|
+
实例类型。
|
142
|
+
|
143
|
+
:return: The mode of this InstanceLtsBasicInfo.
|
144
|
+
:rtype: str
|
145
|
+
"""
|
146
|
+
return self._mode
|
147
|
+
|
148
|
+
@mode.setter
|
149
|
+
def mode(self, mode):
|
150
|
+
"""Sets the mode of this InstanceLtsBasicInfo.
|
151
|
+
|
152
|
+
实例类型。
|
153
|
+
|
154
|
+
:param mode: The mode of this InstanceLtsBasicInfo.
|
155
|
+
:type mode: str
|
156
|
+
"""
|
157
|
+
self._mode = mode
|
158
|
+
|
159
|
+
@property
|
160
|
+
def engine_name(self):
|
161
|
+
"""Gets the engine_name of this InstanceLtsBasicInfo.
|
162
|
+
|
163
|
+
引擎名称。
|
164
|
+
|
165
|
+
:return: The engine_name of this InstanceLtsBasicInfo.
|
166
|
+
:rtype: str
|
167
|
+
"""
|
168
|
+
return self._engine_name
|
169
|
+
|
170
|
+
@engine_name.setter
|
171
|
+
def engine_name(self, engine_name):
|
172
|
+
"""Sets the engine_name of this InstanceLtsBasicInfo.
|
173
|
+
|
174
|
+
引擎名称。
|
175
|
+
|
176
|
+
:param engine_name: The engine_name of this InstanceLtsBasicInfo.
|
177
|
+
:type engine_name: str
|
178
|
+
"""
|
179
|
+
self._engine_name = engine_name
|
180
|
+
|
181
|
+
@property
|
182
|
+
def engine_version(self):
|
183
|
+
"""Gets the engine_version of this InstanceLtsBasicInfo.
|
184
|
+
|
185
|
+
引擎版本。
|
186
|
+
|
187
|
+
:return: The engine_version of this InstanceLtsBasicInfo.
|
188
|
+
:rtype: str
|
189
|
+
"""
|
190
|
+
return self._engine_version
|
191
|
+
|
192
|
+
@engine_version.setter
|
193
|
+
def engine_version(self, engine_version):
|
194
|
+
"""Sets the engine_version of this InstanceLtsBasicInfo.
|
195
|
+
|
196
|
+
引擎版本。
|
197
|
+
|
198
|
+
:param engine_version: The engine_version of this InstanceLtsBasicInfo.
|
199
|
+
:type engine_version: str
|
200
|
+
"""
|
201
|
+
self._engine_version = engine_version
|
202
|
+
|
203
|
+
@property
|
204
|
+
def status(self):
|
205
|
+
"""Gets the status of this InstanceLtsBasicInfo.
|
206
|
+
|
207
|
+
状态。
|
208
|
+
|
209
|
+
:return: The status of this InstanceLtsBasicInfo.
|
210
|
+
:rtype: str
|
211
|
+
"""
|
212
|
+
return self._status
|
213
|
+
|
214
|
+
@status.setter
|
215
|
+
def status(self, status):
|
216
|
+
"""Sets the status of this InstanceLtsBasicInfo.
|
217
|
+
|
218
|
+
状态。
|
219
|
+
|
220
|
+
:param status: The status of this InstanceLtsBasicInfo.
|
221
|
+
:type status: str
|
222
|
+
"""
|
223
|
+
self._status = status
|
224
|
+
|
225
|
+
@property
|
226
|
+
def enterprise_project_id(self):
|
227
|
+
"""Gets the enterprise_project_id of this InstanceLtsBasicInfo.
|
228
|
+
|
229
|
+
企业项目ID。
|
230
|
+
|
231
|
+
:return: The enterprise_project_id of this InstanceLtsBasicInfo.
|
232
|
+
:rtype: str
|
233
|
+
"""
|
234
|
+
return self._enterprise_project_id
|
235
|
+
|
236
|
+
@enterprise_project_id.setter
|
237
|
+
def enterprise_project_id(self, enterprise_project_id):
|
238
|
+
"""Sets the enterprise_project_id of this InstanceLtsBasicInfo.
|
239
|
+
|
240
|
+
企业项目ID。
|
241
|
+
|
242
|
+
:param enterprise_project_id: The enterprise_project_id of this InstanceLtsBasicInfo.
|
243
|
+
:type enterprise_project_id: str
|
244
|
+
"""
|
245
|
+
self._enterprise_project_id = enterprise_project_id
|
246
|
+
|
247
|
+
@property
|
248
|
+
def enterprise_project_name(self):
|
249
|
+
"""Gets the enterprise_project_name of this InstanceLtsBasicInfo.
|
250
|
+
|
251
|
+
企业项目名称。
|
252
|
+
|
253
|
+
:return: The enterprise_project_name of this InstanceLtsBasicInfo.
|
254
|
+
:rtype: str
|
255
|
+
"""
|
256
|
+
return self._enterprise_project_name
|
257
|
+
|
258
|
+
@enterprise_project_name.setter
|
259
|
+
def enterprise_project_name(self, enterprise_project_name):
|
260
|
+
"""Sets the enterprise_project_name of this InstanceLtsBasicInfo.
|
261
|
+
|
262
|
+
企业项目名称。
|
263
|
+
|
264
|
+
:param enterprise_project_name: The enterprise_project_name of this InstanceLtsBasicInfo.
|
265
|
+
:type enterprise_project_name: str
|
266
|
+
"""
|
267
|
+
self._enterprise_project_name = enterprise_project_name
|
268
|
+
|
269
|
+
def to_dict(self):
|
270
|
+
"""Returns the model properties as a dict"""
|
271
|
+
result = {}
|
272
|
+
|
273
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
274
|
+
value = getattr(self, attr)
|
275
|
+
if isinstance(value, list):
|
276
|
+
result[attr] = list(map(
|
277
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
278
|
+
value
|
279
|
+
))
|
280
|
+
elif hasattr(value, "to_dict"):
|
281
|
+
result[attr] = value.to_dict()
|
282
|
+
elif isinstance(value, dict):
|
283
|
+
result[attr] = dict(map(
|
284
|
+
lambda item: (item[0], item[1].to_dict())
|
285
|
+
if hasattr(item[1], "to_dict") else item,
|
286
|
+
value.items()
|
287
|
+
))
|
288
|
+
else:
|
289
|
+
if attr in self.sensitive_list:
|
290
|
+
result[attr] = "****"
|
291
|
+
else:
|
292
|
+
result[attr] = value
|
293
|
+
|
294
|
+
return result
|
295
|
+
|
296
|
+
def to_str(self):
|
297
|
+
"""Returns the string representation of the model"""
|
298
|
+
import simplejson as json
|
299
|
+
if six.PY2:
|
300
|
+
import sys
|
301
|
+
reload(sys)
|
302
|
+
sys.setdefaultencoding("utf-8")
|
303
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
304
|
+
|
305
|
+
def __repr__(self):
|
306
|
+
"""For `print`"""
|
307
|
+
return self.to_str()
|
308
|
+
|
309
|
+
def __eq__(self, other):
|
310
|
+
"""Returns true if both objects are equal"""
|
311
|
+
if not isinstance(other, InstanceLtsBasicInfo):
|
312
|
+
return False
|
313
|
+
|
314
|
+
return self.__dict__ == other.__dict__
|
315
|
+
|
316
|
+
def __ne__(self, other):
|
317
|
+
"""Returns true if both objects are not equal"""
|
318
|
+
return not self == other
|
@@ -0,0 +1,198 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class InstanceSaveLtsConfig:
|
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
|
+
'log_type': 'str',
|
22
|
+
'lts_group_id': 'str',
|
23
|
+
'lts_stream_id': 'str'
|
24
|
+
}
|
25
|
+
|
26
|
+
attribute_map = {
|
27
|
+
'instance_id': 'instance_id',
|
28
|
+
'log_type': 'log_type',
|
29
|
+
'lts_group_id': 'lts_group_id',
|
30
|
+
'lts_stream_id': 'lts_stream_id'
|
31
|
+
}
|
32
|
+
|
33
|
+
def __init__(self, instance_id=None, log_type=None, lts_group_id=None, lts_stream_id=None):
|
34
|
+
"""InstanceSaveLtsConfig
|
35
|
+
|
36
|
+
The model defined in huaweicloud sdk
|
37
|
+
|
38
|
+
:param instance_id: 实例ID。
|
39
|
+
:type instance_id: str
|
40
|
+
:param log_type: 日志类型。
|
41
|
+
:type log_type: str
|
42
|
+
:param lts_group_id: 日志组ID。
|
43
|
+
:type lts_group_id: str
|
44
|
+
:param lts_stream_id: 日志流ID。
|
45
|
+
:type lts_stream_id: str
|
46
|
+
"""
|
47
|
+
|
48
|
+
|
49
|
+
|
50
|
+
self._instance_id = None
|
51
|
+
self._log_type = None
|
52
|
+
self._lts_group_id = None
|
53
|
+
self._lts_stream_id = None
|
54
|
+
self.discriminator = None
|
55
|
+
|
56
|
+
self.instance_id = instance_id
|
57
|
+
self.log_type = log_type
|
58
|
+
self.lts_group_id = lts_group_id
|
59
|
+
self.lts_stream_id = lts_stream_id
|
60
|
+
|
61
|
+
@property
|
62
|
+
def instance_id(self):
|
63
|
+
"""Gets the instance_id of this InstanceSaveLtsConfig.
|
64
|
+
|
65
|
+
实例ID。
|
66
|
+
|
67
|
+
:return: The instance_id of this InstanceSaveLtsConfig.
|
68
|
+
:rtype: str
|
69
|
+
"""
|
70
|
+
return self._instance_id
|
71
|
+
|
72
|
+
@instance_id.setter
|
73
|
+
def instance_id(self, instance_id):
|
74
|
+
"""Sets the instance_id of this InstanceSaveLtsConfig.
|
75
|
+
|
76
|
+
实例ID。
|
77
|
+
|
78
|
+
:param instance_id: The instance_id of this InstanceSaveLtsConfig.
|
79
|
+
:type instance_id: str
|
80
|
+
"""
|
81
|
+
self._instance_id = instance_id
|
82
|
+
|
83
|
+
@property
|
84
|
+
def log_type(self):
|
85
|
+
"""Gets the log_type of this InstanceSaveLtsConfig.
|
86
|
+
|
87
|
+
日志类型。
|
88
|
+
|
89
|
+
:return: The log_type of this InstanceSaveLtsConfig.
|
90
|
+
:rtype: str
|
91
|
+
"""
|
92
|
+
return self._log_type
|
93
|
+
|
94
|
+
@log_type.setter
|
95
|
+
def log_type(self, log_type):
|
96
|
+
"""Sets the log_type of this InstanceSaveLtsConfig.
|
97
|
+
|
98
|
+
日志类型。
|
99
|
+
|
100
|
+
:param log_type: The log_type of this InstanceSaveLtsConfig.
|
101
|
+
:type log_type: str
|
102
|
+
"""
|
103
|
+
self._log_type = log_type
|
104
|
+
|
105
|
+
@property
|
106
|
+
def lts_group_id(self):
|
107
|
+
"""Gets the lts_group_id of this InstanceSaveLtsConfig.
|
108
|
+
|
109
|
+
日志组ID。
|
110
|
+
|
111
|
+
:return: The lts_group_id of this InstanceSaveLtsConfig.
|
112
|
+
:rtype: str
|
113
|
+
"""
|
114
|
+
return self._lts_group_id
|
115
|
+
|
116
|
+
@lts_group_id.setter
|
117
|
+
def lts_group_id(self, lts_group_id):
|
118
|
+
"""Sets the lts_group_id of this InstanceSaveLtsConfig.
|
119
|
+
|
120
|
+
日志组ID。
|
121
|
+
|
122
|
+
:param lts_group_id: The lts_group_id of this InstanceSaveLtsConfig.
|
123
|
+
:type lts_group_id: str
|
124
|
+
"""
|
125
|
+
self._lts_group_id = lts_group_id
|
126
|
+
|
127
|
+
@property
|
128
|
+
def lts_stream_id(self):
|
129
|
+
"""Gets the lts_stream_id of this InstanceSaveLtsConfig.
|
130
|
+
|
131
|
+
日志流ID。
|
132
|
+
|
133
|
+
:return: The lts_stream_id of this InstanceSaveLtsConfig.
|
134
|
+
:rtype: str
|
135
|
+
"""
|
136
|
+
return self._lts_stream_id
|
137
|
+
|
138
|
+
@lts_stream_id.setter
|
139
|
+
def lts_stream_id(self, lts_stream_id):
|
140
|
+
"""Sets the lts_stream_id of this InstanceSaveLtsConfig.
|
141
|
+
|
142
|
+
日志流ID。
|
143
|
+
|
144
|
+
:param lts_stream_id: The lts_stream_id of this InstanceSaveLtsConfig.
|
145
|
+
:type lts_stream_id: str
|
146
|
+
"""
|
147
|
+
self._lts_stream_id = lts_stream_id
|
148
|
+
|
149
|
+
def to_dict(self):
|
150
|
+
"""Returns the model properties as a dict"""
|
151
|
+
result = {}
|
152
|
+
|
153
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
154
|
+
value = getattr(self, attr)
|
155
|
+
if isinstance(value, list):
|
156
|
+
result[attr] = list(map(
|
157
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
158
|
+
value
|
159
|
+
))
|
160
|
+
elif hasattr(value, "to_dict"):
|
161
|
+
result[attr] = value.to_dict()
|
162
|
+
elif isinstance(value, dict):
|
163
|
+
result[attr] = dict(map(
|
164
|
+
lambda item: (item[0], item[1].to_dict())
|
165
|
+
if hasattr(item[1], "to_dict") else item,
|
166
|
+
value.items()
|
167
|
+
))
|
168
|
+
else:
|
169
|
+
if attr in self.sensitive_list:
|
170
|
+
result[attr] = "****"
|
171
|
+
else:
|
172
|
+
result[attr] = value
|
173
|
+
|
174
|
+
return result
|
175
|
+
|
176
|
+
def to_str(self):
|
177
|
+
"""Returns the string representation of the model"""
|
178
|
+
import simplejson as json
|
179
|
+
if six.PY2:
|
180
|
+
import sys
|
181
|
+
reload(sys)
|
182
|
+
sys.setdefaultencoding("utf-8")
|
183
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
184
|
+
|
185
|
+
def __repr__(self):
|
186
|
+
"""For `print`"""
|
187
|
+
return self.to_str()
|
188
|
+
|
189
|
+
def __eq__(self, other):
|
190
|
+
"""Returns true if both objects are equal"""
|
191
|
+
if not isinstance(other, InstanceSaveLtsConfig):
|
192
|
+
return False
|
193
|
+
|
194
|
+
return self.__dict__ == other.__dict__
|
195
|
+
|
196
|
+
def __ne__(self, other):
|
197
|
+
"""Returns true if both objects are not equal"""
|
198
|
+
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 IpGroupItem:
|
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
|
+
'ip': 'str',
|
21
|
+
'description': 'str'
|
22
|
+
}
|
23
|
+
|
24
|
+
attribute_map = {
|
25
|
+
'ip': 'ip',
|
26
|
+
'description': 'description'
|
27
|
+
}
|
28
|
+
|
29
|
+
def __init__(self, ip=None, description=None):
|
30
|
+
"""IpGroupItem
|
31
|
+
|
32
|
+
The model defined in huaweicloud sdk
|
33
|
+
|
34
|
+
:param ip: ip或者网段
|
35
|
+
:type ip: str
|
36
|
+
:param description: ip的描述
|
37
|
+
:type description: str
|
38
|
+
"""
|
39
|
+
|
40
|
+
|
41
|
+
|
42
|
+
self._ip = None
|
43
|
+
self._description = None
|
44
|
+
self.discriminator = None
|
45
|
+
|
46
|
+
self.ip = ip
|
47
|
+
self.description = description
|
48
|
+
|
49
|
+
@property
|
50
|
+
def ip(self):
|
51
|
+
"""Gets the ip of this IpGroupItem.
|
52
|
+
|
53
|
+
ip或者网段
|
54
|
+
|
55
|
+
:return: The ip of this IpGroupItem.
|
56
|
+
:rtype: str
|
57
|
+
"""
|
58
|
+
return self._ip
|
59
|
+
|
60
|
+
@ip.setter
|
61
|
+
def ip(self, ip):
|
62
|
+
"""Sets the ip of this IpGroupItem.
|
63
|
+
|
64
|
+
ip或者网段
|
65
|
+
|
66
|
+
:param ip: The ip of this IpGroupItem.
|
67
|
+
:type ip: str
|
68
|
+
"""
|
69
|
+
self._ip = ip
|
70
|
+
|
71
|
+
@property
|
72
|
+
def description(self):
|
73
|
+
"""Gets the description of this IpGroupItem.
|
74
|
+
|
75
|
+
ip的描述
|
76
|
+
|
77
|
+
:return: The description of this IpGroupItem.
|
78
|
+
:rtype: str
|
79
|
+
"""
|
80
|
+
return self._description
|
81
|
+
|
82
|
+
@description.setter
|
83
|
+
def description(self, description):
|
84
|
+
"""Sets the description of this IpGroupItem.
|
85
|
+
|
86
|
+
ip的描述
|
87
|
+
|
88
|
+
:param description: The description of this IpGroupItem.
|
89
|
+
:type description: str
|
90
|
+
"""
|
91
|
+
self._description = description
|
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, IpGroupItem):
|
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
|