huaweicloudsdkgaussdb 3.1.95__py2.py3-none-any.whl → 3.1.96__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 +69 -0
- huaweicloudsdkgaussdb/v3/gaussdb_async_client.py +1101 -66
- huaweicloudsdkgaussdb/v3/gaussdb_client.py +1101 -66
- huaweicloudsdkgaussdb/v3/model/__init__.py +69 -0
- huaweicloudsdkgaussdb/v3/model/check_star_rocks_resource_request.py +140 -0
- huaweicloudsdkgaussdb/v3/model/check_star_rocks_resource_response.py +116 -0
- huaweicloudsdkgaussdb/v3/model/create_star_rocks_database_user_request.py +168 -0
- huaweicloudsdkgaussdb/v3/model/create_star_rocks_database_user_response.py +116 -0
- huaweicloudsdkgaussdb/v3/model/create_starrocks_instance_request.py +168 -0
- huaweicloudsdkgaussdb/v3/model/create_starrocks_instance_response.py +141 -0
- huaweicloudsdkgaussdb/v3/model/delete_star_rocks_database_user_request.py +171 -0
- huaweicloudsdkgaussdb/v3/model/delete_star_rocks_database_user_response.py +116 -0
- huaweicloudsdkgaussdb/v3/model/delete_starrocks_instance_request.py +171 -0
- huaweicloudsdkgaussdb/v3/model/delete_starrocks_instance_response.py +116 -0
- huaweicloudsdkgaussdb/v3/model/htap_flavor_info_flavors.py +318 -0
- huaweicloudsdkgaussdb/v3/model/htap_instance_list_available_zones.py +173 -0
- huaweicloudsdkgaussdb/v3/model/htap_instance_list_instance_state.py +202 -0
- huaweicloudsdkgaussdb/v3/model/htap_instance_list_instances.py +832 -0
- huaweicloudsdkgaussdb/v3/model/htap_instance_list_network.py +173 -0
- huaweicloudsdkgaussdb/v3/model/htap_storage_type_storage_type.py +173 -0
- huaweicloudsdkgaussdb/v3/model/list_htap_data_store_request.py +143 -0
- huaweicloudsdkgaussdb/v3/model/list_htap_data_store_response.py +116 -0
- huaweicloudsdkgaussdb/v3/model/list_htap_flavor_request.py +230 -0
- huaweicloudsdkgaussdb/v3/model/list_htap_flavor_response.py +116 -0
- huaweicloudsdkgaussdb/v3/model/list_htap_instance_info_request.py +143 -0
- huaweicloudsdkgaussdb/v3/model/list_htap_instance_info_response.py +174 -0
- huaweicloudsdkgaussdb/v3/model/list_htap_storage_type_request.py +171 -0
- huaweicloudsdkgaussdb/v3/model/list_htap_storage_type_response.py +116 -0
- huaweicloudsdkgaussdb/v3/model/list_starrocks_instance_info_request.py +171 -0
- huaweicloudsdkgaussdb/v3/model/list_starrocks_instance_info_response.py +116 -0
- huaweicloudsdkgaussdb/v3/model/param_group.py +144 -0
- huaweicloudsdkgaussdb/v3/model/query_action.py +318 -0
- huaweicloudsdkgaussdb/v3/model/readable_node_infos.py +173 -0
- huaweicloudsdkgaussdb/v3/model/resource_check.py +138 -0
- huaweicloudsdkgaussdb/v3/model/resource_check_resource.py +367 -0
- huaweicloudsdkgaussdb/v3/model/restart_starrocks_instance_request.py +143 -0
- huaweicloudsdkgaussdb/v3/model/restart_starrocks_instance_response.py +116 -0
- huaweicloudsdkgaussdb/v3/model/restart_starrocks_node_request.py +171 -0
- huaweicloudsdkgaussdb/v3/model/restart_starrocks_node_response.py +116 -0
- huaweicloudsdkgaussdb/v3/model/show_star_rocks_database_user_request.py +228 -0
- huaweicloudsdkgaussdb/v3/model/show_star_rocks_database_user_response.py +145 -0
- huaweicloudsdkgaussdb/v3/model/show_star_rocks_database_users_user_details.py +198 -0
- huaweicloudsdkgaussdb/v3/model/sr_create_instance_rsp_instance.py +538 -0
- huaweicloudsdkgaussdb/v3/model/sr_create_instance_rsp_instance_engine.py +144 -0
- huaweicloudsdkgaussdb/v3/model/sr_create_instance_rsp_instance_pay_info.py +231 -0
- huaweicloudsdkgaussdb/v3/model/sr_create_instance_rsp_instance_tags_info.py +144 -0
- huaweicloudsdkgaussdb/v3/model/sr_create_instance_rsp_instance_tags_info_sys_tags.py +144 -0
- huaweicloudsdkgaussdb/v3/model/sr_create_instance_rsp_instance_tags_info_tags.py +144 -0
- huaweicloudsdkgaussdb/v3/model/sr_data_stores_datastores.py +173 -0
- huaweicloudsdkgaussdb/v3/model/star_rocks_create_request.py +459 -0
- huaweicloudsdkgaussdb/v3/model/star_rocks_create_request_be_volume.py +142 -0
- huaweicloudsdkgaussdb/v3/model/star_rocks_create_request_engine.py +142 -0
- huaweicloudsdkgaussdb/v3/model/star_rocks_create_request_fe_volume.py +142 -0
- huaweicloudsdkgaussdb/v3/model/star_rocks_create_request_ha.py +114 -0
- huaweicloudsdkgaussdb/v3/model/star_rocks_create_request_tags_info.py +114 -0
- huaweicloudsdkgaussdb/v3/model/star_rocks_create_request_tags_info_sys_tags.py +142 -0
- huaweicloudsdkgaussdb/v3/model/star_rocks_database_user_info.py +228 -0
- huaweicloudsdkgaussdb/v3/model/star_rocks_database_user_p_sinfo.py +201 -0
- huaweicloudsdkgaussdb/v3/model/star_rocks_database_user_p_winfo.py +142 -0
- huaweicloudsdkgaussdb/v3/model/star_rocks_instance_info_datastore.py +173 -0
- huaweicloudsdkgaussdb/v3/model/star_rocks_instance_info_groups.py +231 -0
- huaweicloudsdkgaussdb/v3/model/star_rocks_instance_info_instances.py +1292 -0
- huaweicloudsdkgaussdb/v3/model/star_rocks_instance_info_nodes.py +1006 -0
- huaweicloudsdkgaussdb/v3/model/star_rocks_instance_info_ops_window.py +173 -0
- huaweicloudsdkgaussdb/v3/model/star_rocks_instance_info_port_info.py +115 -0
- huaweicloudsdkgaussdb/v3/model/star_rocks_instance_info_tags_info.py +144 -0
- huaweicloudsdkgaussdb/v3/model/star_rocks_instance_info_tags_info_sys_tags.py +144 -0
- huaweicloudsdkgaussdb/v3/model/star_rocks_instance_info_tags_info_tags.py +144 -0
- huaweicloudsdkgaussdb/v3/model/star_rocks_instance_info_volume.py +144 -0
- huaweicloudsdkgaussdb/v3/model/update_star_rocks_database_user_password_request.py +168 -0
- huaweicloudsdkgaussdb/v3/model/update_star_rocks_database_user_password_response.py +116 -0
- huaweicloudsdkgaussdb/v3/model/update_star_rocks_database_user_permission_request.py +168 -0
- huaweicloudsdkgaussdb/v3/model/update_star_rocks_database_user_permission_response.py +116 -0
- {huaweicloudsdkgaussdb-3.1.95.dist-info → huaweicloudsdkgaussdb-3.1.96.dist-info}/METADATA +2 -2
- {huaweicloudsdkgaussdb-3.1.95.dist-info → huaweicloudsdkgaussdb-3.1.96.dist-info}/RECORD +78 -9
- {huaweicloudsdkgaussdb-3.1.95.dist-info → huaweicloudsdkgaussdb-3.1.96.dist-info}/LICENSE +0 -0
- {huaweicloudsdkgaussdb-3.1.95.dist-info → huaweicloudsdkgaussdb-3.1.96.dist-info}/WHEEL +0 -0
- {huaweicloudsdkgaussdb-3.1.95.dist-info → huaweicloudsdkgaussdb-3.1.96.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,538 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class SrCreateInstanceRspInstance:
|
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
|
+
'az_code': 'str',
|
22
|
+
'az_mode': 'str',
|
23
|
+
'name': 'str',
|
24
|
+
'engine': 'SrCreateInstanceRspInstanceEngine',
|
25
|
+
'vpc_id': 'str',
|
26
|
+
'security_group_id': 'str',
|
27
|
+
'sub_net_id': 'str',
|
28
|
+
'db_user': 'str',
|
29
|
+
'port': 'int',
|
30
|
+
'ha_mode': 'str',
|
31
|
+
'pay_info': 'SrCreateInstanceRspInstancePayInfo',
|
32
|
+
'enable_ssl': 'bool',
|
33
|
+
'status': 'str',
|
34
|
+
'region': 'str',
|
35
|
+
'tags_info': 'SrCreateInstanceRspInstanceTagsInfo'
|
36
|
+
}
|
37
|
+
|
38
|
+
attribute_map = {
|
39
|
+
'id': 'id',
|
40
|
+
'az_code': 'az_code',
|
41
|
+
'az_mode': 'az_mode',
|
42
|
+
'name': 'name',
|
43
|
+
'engine': 'engine',
|
44
|
+
'vpc_id': 'vpc_id',
|
45
|
+
'security_group_id': 'security_group_id',
|
46
|
+
'sub_net_id': 'sub_net_id',
|
47
|
+
'db_user': 'db_user',
|
48
|
+
'port': 'port',
|
49
|
+
'ha_mode': 'ha_mode',
|
50
|
+
'pay_info': 'pay_info',
|
51
|
+
'enable_ssl': 'enable_ssl',
|
52
|
+
'status': 'status',
|
53
|
+
'region': 'region',
|
54
|
+
'tags_info': 'tags_info'
|
55
|
+
}
|
56
|
+
|
57
|
+
def __init__(self, id=None, az_code=None, az_mode=None, name=None, engine=None, vpc_id=None, security_group_id=None, sub_net_id=None, db_user=None, port=None, ha_mode=None, pay_info=None, enable_ssl=None, status=None, region=None, tags_info=None):
|
58
|
+
"""SrCreateInstanceRspInstance
|
59
|
+
|
60
|
+
The model defined in huaweicloud sdk
|
61
|
+
|
62
|
+
:param id: StarRocks实例ID,严格匹配UUID规则。
|
63
|
+
:type id: str
|
64
|
+
:param az_code: 可用区码。
|
65
|
+
:type az_code: str
|
66
|
+
:param az_mode: 可用区模式。 取值范围: single:单可用区。 multi:多可用区。
|
67
|
+
:type az_mode: str
|
68
|
+
:param name: 实例名称。
|
69
|
+
:type name: str
|
70
|
+
:param engine:
|
71
|
+
:type engine: :class:`huaweicloudsdkgaussdb.v3.SrCreateInstanceRspInstanceEngine`
|
72
|
+
:param vpc_id: 虚拟私有云ID。
|
73
|
+
:type vpc_id: str
|
74
|
+
:param security_group_id: 安全组ID。
|
75
|
+
:type security_group_id: str
|
76
|
+
:param sub_net_id: 子网ID。
|
77
|
+
:type sub_net_id: str
|
78
|
+
:param db_user: 数据库用户。默认root。
|
79
|
+
:type db_user: str
|
80
|
+
:param port: 数据库端口号。默认3306。
|
81
|
+
:type port: int
|
82
|
+
:param ha_mode: 部署模式。
|
83
|
+
:type ha_mode: str
|
84
|
+
:param pay_info:
|
85
|
+
:type pay_info: :class:`huaweicloudsdkgaussdb.v3.SrCreateInstanceRspInstancePayInfo`
|
86
|
+
:param enable_ssl: SSL开关。
|
87
|
+
:type enable_ssl: bool
|
88
|
+
:param status: 实例状态。
|
89
|
+
:type status: str
|
90
|
+
:param region: 实例所在区域。
|
91
|
+
:type region: str
|
92
|
+
:param tags_info:
|
93
|
+
:type tags_info: :class:`huaweicloudsdkgaussdb.v3.SrCreateInstanceRspInstanceTagsInfo`
|
94
|
+
"""
|
95
|
+
|
96
|
+
|
97
|
+
|
98
|
+
self._id = None
|
99
|
+
self._az_code = None
|
100
|
+
self._az_mode = None
|
101
|
+
self._name = None
|
102
|
+
self._engine = None
|
103
|
+
self._vpc_id = None
|
104
|
+
self._security_group_id = None
|
105
|
+
self._sub_net_id = None
|
106
|
+
self._db_user = None
|
107
|
+
self._port = None
|
108
|
+
self._ha_mode = None
|
109
|
+
self._pay_info = None
|
110
|
+
self._enable_ssl = None
|
111
|
+
self._status = None
|
112
|
+
self._region = None
|
113
|
+
self._tags_info = None
|
114
|
+
self.discriminator = None
|
115
|
+
|
116
|
+
if id is not None:
|
117
|
+
self.id = id
|
118
|
+
if az_code is not None:
|
119
|
+
self.az_code = az_code
|
120
|
+
if az_mode is not None:
|
121
|
+
self.az_mode = az_mode
|
122
|
+
if name is not None:
|
123
|
+
self.name = name
|
124
|
+
if engine is not None:
|
125
|
+
self.engine = engine
|
126
|
+
if vpc_id is not None:
|
127
|
+
self.vpc_id = vpc_id
|
128
|
+
if security_group_id is not None:
|
129
|
+
self.security_group_id = security_group_id
|
130
|
+
if sub_net_id is not None:
|
131
|
+
self.sub_net_id = sub_net_id
|
132
|
+
if db_user is not None:
|
133
|
+
self.db_user = db_user
|
134
|
+
if port is not None:
|
135
|
+
self.port = port
|
136
|
+
if ha_mode is not None:
|
137
|
+
self.ha_mode = ha_mode
|
138
|
+
if pay_info is not None:
|
139
|
+
self.pay_info = pay_info
|
140
|
+
if enable_ssl is not None:
|
141
|
+
self.enable_ssl = enable_ssl
|
142
|
+
if status is not None:
|
143
|
+
self.status = status
|
144
|
+
if region is not None:
|
145
|
+
self.region = region
|
146
|
+
if tags_info is not None:
|
147
|
+
self.tags_info = tags_info
|
148
|
+
|
149
|
+
@property
|
150
|
+
def id(self):
|
151
|
+
"""Gets the id of this SrCreateInstanceRspInstance.
|
152
|
+
|
153
|
+
StarRocks实例ID,严格匹配UUID规则。
|
154
|
+
|
155
|
+
:return: The id of this SrCreateInstanceRspInstance.
|
156
|
+
:rtype: str
|
157
|
+
"""
|
158
|
+
return self._id
|
159
|
+
|
160
|
+
@id.setter
|
161
|
+
def id(self, id):
|
162
|
+
"""Sets the id of this SrCreateInstanceRspInstance.
|
163
|
+
|
164
|
+
StarRocks实例ID,严格匹配UUID规则。
|
165
|
+
|
166
|
+
:param id: The id of this SrCreateInstanceRspInstance.
|
167
|
+
:type id: str
|
168
|
+
"""
|
169
|
+
self._id = id
|
170
|
+
|
171
|
+
@property
|
172
|
+
def az_code(self):
|
173
|
+
"""Gets the az_code of this SrCreateInstanceRspInstance.
|
174
|
+
|
175
|
+
可用区码。
|
176
|
+
|
177
|
+
:return: The az_code of this SrCreateInstanceRspInstance.
|
178
|
+
:rtype: str
|
179
|
+
"""
|
180
|
+
return self._az_code
|
181
|
+
|
182
|
+
@az_code.setter
|
183
|
+
def az_code(self, az_code):
|
184
|
+
"""Sets the az_code of this SrCreateInstanceRspInstance.
|
185
|
+
|
186
|
+
可用区码。
|
187
|
+
|
188
|
+
:param az_code: The az_code of this SrCreateInstanceRspInstance.
|
189
|
+
:type az_code: str
|
190
|
+
"""
|
191
|
+
self._az_code = az_code
|
192
|
+
|
193
|
+
@property
|
194
|
+
def az_mode(self):
|
195
|
+
"""Gets the az_mode of this SrCreateInstanceRspInstance.
|
196
|
+
|
197
|
+
可用区模式。 取值范围: single:单可用区。 multi:多可用区。
|
198
|
+
|
199
|
+
:return: The az_mode of this SrCreateInstanceRspInstance.
|
200
|
+
:rtype: str
|
201
|
+
"""
|
202
|
+
return self._az_mode
|
203
|
+
|
204
|
+
@az_mode.setter
|
205
|
+
def az_mode(self, az_mode):
|
206
|
+
"""Sets the az_mode of this SrCreateInstanceRspInstance.
|
207
|
+
|
208
|
+
可用区模式。 取值范围: single:单可用区。 multi:多可用区。
|
209
|
+
|
210
|
+
:param az_mode: The az_mode of this SrCreateInstanceRspInstance.
|
211
|
+
:type az_mode: str
|
212
|
+
"""
|
213
|
+
self._az_mode = az_mode
|
214
|
+
|
215
|
+
@property
|
216
|
+
def name(self):
|
217
|
+
"""Gets the name of this SrCreateInstanceRspInstance.
|
218
|
+
|
219
|
+
实例名称。
|
220
|
+
|
221
|
+
:return: The name of this SrCreateInstanceRspInstance.
|
222
|
+
:rtype: str
|
223
|
+
"""
|
224
|
+
return self._name
|
225
|
+
|
226
|
+
@name.setter
|
227
|
+
def name(self, name):
|
228
|
+
"""Sets the name of this SrCreateInstanceRspInstance.
|
229
|
+
|
230
|
+
实例名称。
|
231
|
+
|
232
|
+
:param name: The name of this SrCreateInstanceRspInstance.
|
233
|
+
:type name: str
|
234
|
+
"""
|
235
|
+
self._name = name
|
236
|
+
|
237
|
+
@property
|
238
|
+
def engine(self):
|
239
|
+
"""Gets the engine of this SrCreateInstanceRspInstance.
|
240
|
+
|
241
|
+
:return: The engine of this SrCreateInstanceRspInstance.
|
242
|
+
:rtype: :class:`huaweicloudsdkgaussdb.v3.SrCreateInstanceRspInstanceEngine`
|
243
|
+
"""
|
244
|
+
return self._engine
|
245
|
+
|
246
|
+
@engine.setter
|
247
|
+
def engine(self, engine):
|
248
|
+
"""Sets the engine of this SrCreateInstanceRspInstance.
|
249
|
+
|
250
|
+
:param engine: The engine of this SrCreateInstanceRspInstance.
|
251
|
+
:type engine: :class:`huaweicloudsdkgaussdb.v3.SrCreateInstanceRspInstanceEngine`
|
252
|
+
"""
|
253
|
+
self._engine = engine
|
254
|
+
|
255
|
+
@property
|
256
|
+
def vpc_id(self):
|
257
|
+
"""Gets the vpc_id of this SrCreateInstanceRspInstance.
|
258
|
+
|
259
|
+
虚拟私有云ID。
|
260
|
+
|
261
|
+
:return: The vpc_id of this SrCreateInstanceRspInstance.
|
262
|
+
:rtype: str
|
263
|
+
"""
|
264
|
+
return self._vpc_id
|
265
|
+
|
266
|
+
@vpc_id.setter
|
267
|
+
def vpc_id(self, vpc_id):
|
268
|
+
"""Sets the vpc_id of this SrCreateInstanceRspInstance.
|
269
|
+
|
270
|
+
虚拟私有云ID。
|
271
|
+
|
272
|
+
:param vpc_id: The vpc_id of this SrCreateInstanceRspInstance.
|
273
|
+
:type vpc_id: str
|
274
|
+
"""
|
275
|
+
self._vpc_id = vpc_id
|
276
|
+
|
277
|
+
@property
|
278
|
+
def security_group_id(self):
|
279
|
+
"""Gets the security_group_id of this SrCreateInstanceRspInstance.
|
280
|
+
|
281
|
+
安全组ID。
|
282
|
+
|
283
|
+
:return: The security_group_id of this SrCreateInstanceRspInstance.
|
284
|
+
:rtype: str
|
285
|
+
"""
|
286
|
+
return self._security_group_id
|
287
|
+
|
288
|
+
@security_group_id.setter
|
289
|
+
def security_group_id(self, security_group_id):
|
290
|
+
"""Sets the security_group_id of this SrCreateInstanceRspInstance.
|
291
|
+
|
292
|
+
安全组ID。
|
293
|
+
|
294
|
+
:param security_group_id: The security_group_id of this SrCreateInstanceRspInstance.
|
295
|
+
:type security_group_id: str
|
296
|
+
"""
|
297
|
+
self._security_group_id = security_group_id
|
298
|
+
|
299
|
+
@property
|
300
|
+
def sub_net_id(self):
|
301
|
+
"""Gets the sub_net_id of this SrCreateInstanceRspInstance.
|
302
|
+
|
303
|
+
子网ID。
|
304
|
+
|
305
|
+
:return: The sub_net_id of this SrCreateInstanceRspInstance.
|
306
|
+
:rtype: str
|
307
|
+
"""
|
308
|
+
return self._sub_net_id
|
309
|
+
|
310
|
+
@sub_net_id.setter
|
311
|
+
def sub_net_id(self, sub_net_id):
|
312
|
+
"""Sets the sub_net_id of this SrCreateInstanceRspInstance.
|
313
|
+
|
314
|
+
子网ID。
|
315
|
+
|
316
|
+
:param sub_net_id: The sub_net_id of this SrCreateInstanceRspInstance.
|
317
|
+
:type sub_net_id: str
|
318
|
+
"""
|
319
|
+
self._sub_net_id = sub_net_id
|
320
|
+
|
321
|
+
@property
|
322
|
+
def db_user(self):
|
323
|
+
"""Gets the db_user of this SrCreateInstanceRspInstance.
|
324
|
+
|
325
|
+
数据库用户。默认root。
|
326
|
+
|
327
|
+
:return: The db_user of this SrCreateInstanceRspInstance.
|
328
|
+
:rtype: str
|
329
|
+
"""
|
330
|
+
return self._db_user
|
331
|
+
|
332
|
+
@db_user.setter
|
333
|
+
def db_user(self, db_user):
|
334
|
+
"""Sets the db_user of this SrCreateInstanceRspInstance.
|
335
|
+
|
336
|
+
数据库用户。默认root。
|
337
|
+
|
338
|
+
:param db_user: The db_user of this SrCreateInstanceRspInstance.
|
339
|
+
:type db_user: str
|
340
|
+
"""
|
341
|
+
self._db_user = db_user
|
342
|
+
|
343
|
+
@property
|
344
|
+
def port(self):
|
345
|
+
"""Gets the port of this SrCreateInstanceRspInstance.
|
346
|
+
|
347
|
+
数据库端口号。默认3306。
|
348
|
+
|
349
|
+
:return: The port of this SrCreateInstanceRspInstance.
|
350
|
+
:rtype: int
|
351
|
+
"""
|
352
|
+
return self._port
|
353
|
+
|
354
|
+
@port.setter
|
355
|
+
def port(self, port):
|
356
|
+
"""Sets the port of this SrCreateInstanceRspInstance.
|
357
|
+
|
358
|
+
数据库端口号。默认3306。
|
359
|
+
|
360
|
+
:param port: The port of this SrCreateInstanceRspInstance.
|
361
|
+
:type port: int
|
362
|
+
"""
|
363
|
+
self._port = port
|
364
|
+
|
365
|
+
@property
|
366
|
+
def ha_mode(self):
|
367
|
+
"""Gets the ha_mode of this SrCreateInstanceRspInstance.
|
368
|
+
|
369
|
+
部署模式。
|
370
|
+
|
371
|
+
:return: The ha_mode of this SrCreateInstanceRspInstance.
|
372
|
+
:rtype: str
|
373
|
+
"""
|
374
|
+
return self._ha_mode
|
375
|
+
|
376
|
+
@ha_mode.setter
|
377
|
+
def ha_mode(self, ha_mode):
|
378
|
+
"""Sets the ha_mode of this SrCreateInstanceRspInstance.
|
379
|
+
|
380
|
+
部署模式。
|
381
|
+
|
382
|
+
:param ha_mode: The ha_mode of this SrCreateInstanceRspInstance.
|
383
|
+
:type ha_mode: str
|
384
|
+
"""
|
385
|
+
self._ha_mode = ha_mode
|
386
|
+
|
387
|
+
@property
|
388
|
+
def pay_info(self):
|
389
|
+
"""Gets the pay_info of this SrCreateInstanceRspInstance.
|
390
|
+
|
391
|
+
:return: The pay_info of this SrCreateInstanceRspInstance.
|
392
|
+
:rtype: :class:`huaweicloudsdkgaussdb.v3.SrCreateInstanceRspInstancePayInfo`
|
393
|
+
"""
|
394
|
+
return self._pay_info
|
395
|
+
|
396
|
+
@pay_info.setter
|
397
|
+
def pay_info(self, pay_info):
|
398
|
+
"""Sets the pay_info of this SrCreateInstanceRspInstance.
|
399
|
+
|
400
|
+
:param pay_info: The pay_info of this SrCreateInstanceRspInstance.
|
401
|
+
:type pay_info: :class:`huaweicloudsdkgaussdb.v3.SrCreateInstanceRspInstancePayInfo`
|
402
|
+
"""
|
403
|
+
self._pay_info = pay_info
|
404
|
+
|
405
|
+
@property
|
406
|
+
def enable_ssl(self):
|
407
|
+
"""Gets the enable_ssl of this SrCreateInstanceRspInstance.
|
408
|
+
|
409
|
+
SSL开关。
|
410
|
+
|
411
|
+
:return: The enable_ssl of this SrCreateInstanceRspInstance.
|
412
|
+
:rtype: bool
|
413
|
+
"""
|
414
|
+
return self._enable_ssl
|
415
|
+
|
416
|
+
@enable_ssl.setter
|
417
|
+
def enable_ssl(self, enable_ssl):
|
418
|
+
"""Sets the enable_ssl of this SrCreateInstanceRspInstance.
|
419
|
+
|
420
|
+
SSL开关。
|
421
|
+
|
422
|
+
:param enable_ssl: The enable_ssl of this SrCreateInstanceRspInstance.
|
423
|
+
:type enable_ssl: bool
|
424
|
+
"""
|
425
|
+
self._enable_ssl = enable_ssl
|
426
|
+
|
427
|
+
@property
|
428
|
+
def status(self):
|
429
|
+
"""Gets the status of this SrCreateInstanceRspInstance.
|
430
|
+
|
431
|
+
实例状态。
|
432
|
+
|
433
|
+
:return: The status of this SrCreateInstanceRspInstance.
|
434
|
+
:rtype: str
|
435
|
+
"""
|
436
|
+
return self._status
|
437
|
+
|
438
|
+
@status.setter
|
439
|
+
def status(self, status):
|
440
|
+
"""Sets the status of this SrCreateInstanceRspInstance.
|
441
|
+
|
442
|
+
实例状态。
|
443
|
+
|
444
|
+
:param status: The status of this SrCreateInstanceRspInstance.
|
445
|
+
:type status: str
|
446
|
+
"""
|
447
|
+
self._status = status
|
448
|
+
|
449
|
+
@property
|
450
|
+
def region(self):
|
451
|
+
"""Gets the region of this SrCreateInstanceRspInstance.
|
452
|
+
|
453
|
+
实例所在区域。
|
454
|
+
|
455
|
+
:return: The region of this SrCreateInstanceRspInstance.
|
456
|
+
:rtype: str
|
457
|
+
"""
|
458
|
+
return self._region
|
459
|
+
|
460
|
+
@region.setter
|
461
|
+
def region(self, region):
|
462
|
+
"""Sets the region of this SrCreateInstanceRspInstance.
|
463
|
+
|
464
|
+
实例所在区域。
|
465
|
+
|
466
|
+
:param region: The region of this SrCreateInstanceRspInstance.
|
467
|
+
:type region: str
|
468
|
+
"""
|
469
|
+
self._region = region
|
470
|
+
|
471
|
+
@property
|
472
|
+
def tags_info(self):
|
473
|
+
"""Gets the tags_info of this SrCreateInstanceRspInstance.
|
474
|
+
|
475
|
+
:return: The tags_info of this SrCreateInstanceRspInstance.
|
476
|
+
:rtype: :class:`huaweicloudsdkgaussdb.v3.SrCreateInstanceRspInstanceTagsInfo`
|
477
|
+
"""
|
478
|
+
return self._tags_info
|
479
|
+
|
480
|
+
@tags_info.setter
|
481
|
+
def tags_info(self, tags_info):
|
482
|
+
"""Sets the tags_info of this SrCreateInstanceRspInstance.
|
483
|
+
|
484
|
+
:param tags_info: The tags_info of this SrCreateInstanceRspInstance.
|
485
|
+
:type tags_info: :class:`huaweicloudsdkgaussdb.v3.SrCreateInstanceRspInstanceTagsInfo`
|
486
|
+
"""
|
487
|
+
self._tags_info = tags_info
|
488
|
+
|
489
|
+
def to_dict(self):
|
490
|
+
"""Returns the model properties as a dict"""
|
491
|
+
result = {}
|
492
|
+
|
493
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
494
|
+
value = getattr(self, attr)
|
495
|
+
if isinstance(value, list):
|
496
|
+
result[attr] = list(map(
|
497
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
498
|
+
value
|
499
|
+
))
|
500
|
+
elif hasattr(value, "to_dict"):
|
501
|
+
result[attr] = value.to_dict()
|
502
|
+
elif isinstance(value, dict):
|
503
|
+
result[attr] = dict(map(
|
504
|
+
lambda item: (item[0], item[1].to_dict())
|
505
|
+
if hasattr(item[1], "to_dict") else item,
|
506
|
+
value.items()
|
507
|
+
))
|
508
|
+
else:
|
509
|
+
if attr in self.sensitive_list:
|
510
|
+
result[attr] = "****"
|
511
|
+
else:
|
512
|
+
result[attr] = value
|
513
|
+
|
514
|
+
return result
|
515
|
+
|
516
|
+
def to_str(self):
|
517
|
+
"""Returns the string representation of the model"""
|
518
|
+
import simplejson as json
|
519
|
+
if six.PY2:
|
520
|
+
import sys
|
521
|
+
reload(sys)
|
522
|
+
sys.setdefaultencoding("utf-8")
|
523
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
524
|
+
|
525
|
+
def __repr__(self):
|
526
|
+
"""For `print`"""
|
527
|
+
return self.to_str()
|
528
|
+
|
529
|
+
def __eq__(self, other):
|
530
|
+
"""Returns true if both objects are equal"""
|
531
|
+
if not isinstance(other, SrCreateInstanceRspInstance):
|
532
|
+
return False
|
533
|
+
|
534
|
+
return self.__dict__ == other.__dict__
|
535
|
+
|
536
|
+
def __ne__(self, other):
|
537
|
+
"""Returns true if both objects are not equal"""
|
538
|
+
return not self == other
|
@@ -0,0 +1,144 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class SrCreateInstanceRspInstanceEngine:
|
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
|
+
'type': 'str',
|
21
|
+
'version': 'str'
|
22
|
+
}
|
23
|
+
|
24
|
+
attribute_map = {
|
25
|
+
'type': 'type',
|
26
|
+
'version': 'version'
|
27
|
+
}
|
28
|
+
|
29
|
+
def __init__(self, type=None, version=None):
|
30
|
+
"""SrCreateInstanceRspInstanceEngine
|
31
|
+
|
32
|
+
The model defined in huaweicloud sdk
|
33
|
+
|
34
|
+
:param type: 引擎类型。
|
35
|
+
:type type: str
|
36
|
+
:param version: 引擎大版本号。
|
37
|
+
:type version: str
|
38
|
+
"""
|
39
|
+
|
40
|
+
|
41
|
+
|
42
|
+
self._type = None
|
43
|
+
self._version = None
|
44
|
+
self.discriminator = None
|
45
|
+
|
46
|
+
if type is not None:
|
47
|
+
self.type = type
|
48
|
+
if version is not None:
|
49
|
+
self.version = version
|
50
|
+
|
51
|
+
@property
|
52
|
+
def type(self):
|
53
|
+
"""Gets the type of this SrCreateInstanceRspInstanceEngine.
|
54
|
+
|
55
|
+
引擎类型。
|
56
|
+
|
57
|
+
:return: The type of this SrCreateInstanceRspInstanceEngine.
|
58
|
+
:rtype: str
|
59
|
+
"""
|
60
|
+
return self._type
|
61
|
+
|
62
|
+
@type.setter
|
63
|
+
def type(self, type):
|
64
|
+
"""Sets the type of this SrCreateInstanceRspInstanceEngine.
|
65
|
+
|
66
|
+
引擎类型。
|
67
|
+
|
68
|
+
:param type: The type of this SrCreateInstanceRspInstanceEngine.
|
69
|
+
:type type: str
|
70
|
+
"""
|
71
|
+
self._type = type
|
72
|
+
|
73
|
+
@property
|
74
|
+
def version(self):
|
75
|
+
"""Gets the version of this SrCreateInstanceRspInstanceEngine.
|
76
|
+
|
77
|
+
引擎大版本号。
|
78
|
+
|
79
|
+
:return: The version of this SrCreateInstanceRspInstanceEngine.
|
80
|
+
:rtype: str
|
81
|
+
"""
|
82
|
+
return self._version
|
83
|
+
|
84
|
+
@version.setter
|
85
|
+
def version(self, version):
|
86
|
+
"""Sets the version of this SrCreateInstanceRspInstanceEngine.
|
87
|
+
|
88
|
+
引擎大版本号。
|
89
|
+
|
90
|
+
:param version: The version of this SrCreateInstanceRspInstanceEngine.
|
91
|
+
:type version: str
|
92
|
+
"""
|
93
|
+
self._version = version
|
94
|
+
|
95
|
+
def to_dict(self):
|
96
|
+
"""Returns the model properties as a dict"""
|
97
|
+
result = {}
|
98
|
+
|
99
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
100
|
+
value = getattr(self, attr)
|
101
|
+
if isinstance(value, list):
|
102
|
+
result[attr] = list(map(
|
103
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
104
|
+
value
|
105
|
+
))
|
106
|
+
elif hasattr(value, "to_dict"):
|
107
|
+
result[attr] = value.to_dict()
|
108
|
+
elif isinstance(value, dict):
|
109
|
+
result[attr] = dict(map(
|
110
|
+
lambda item: (item[0], item[1].to_dict())
|
111
|
+
if hasattr(item[1], "to_dict") else item,
|
112
|
+
value.items()
|
113
|
+
))
|
114
|
+
else:
|
115
|
+
if attr in self.sensitive_list:
|
116
|
+
result[attr] = "****"
|
117
|
+
else:
|
118
|
+
result[attr] = value
|
119
|
+
|
120
|
+
return result
|
121
|
+
|
122
|
+
def to_str(self):
|
123
|
+
"""Returns the string representation of the model"""
|
124
|
+
import simplejson as json
|
125
|
+
if six.PY2:
|
126
|
+
import sys
|
127
|
+
reload(sys)
|
128
|
+
sys.setdefaultencoding("utf-8")
|
129
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
130
|
+
|
131
|
+
def __repr__(self):
|
132
|
+
"""For `print`"""
|
133
|
+
return self.to_str()
|
134
|
+
|
135
|
+
def __eq__(self, other):
|
136
|
+
"""Returns true if both objects are equal"""
|
137
|
+
if not isinstance(other, SrCreateInstanceRspInstanceEngine):
|
138
|
+
return False
|
139
|
+
|
140
|
+
return self.__dict__ == other.__dict__
|
141
|
+
|
142
|
+
def __ne__(self, other):
|
143
|
+
"""Returns true if both objects are not equal"""
|
144
|
+
return not self == other
|