huaweicloudsdkgaussdb 3.1.95__py2.py3-none-any.whl → 3.1.97__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.97.dist-info}/METADATA +2 -2
- {huaweicloudsdkgaussdb-3.1.95.dist-info → huaweicloudsdkgaussdb-3.1.97.dist-info}/RECORD +78 -9
- {huaweicloudsdkgaussdb-3.1.95.dist-info → huaweicloudsdkgaussdb-3.1.97.dist-info}/LICENSE +0 -0
- {huaweicloudsdkgaussdb-3.1.95.dist-info → huaweicloudsdkgaussdb-3.1.97.dist-info}/WHEEL +0 -0
- {huaweicloudsdkgaussdb-3.1.95.dist-info → huaweicloudsdkgaussdb-3.1.97.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 HtapFlavorInfoFlavors:
|
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
|
+
'vcpus': 'str',
|
22
|
+
'ram': 'str',
|
23
|
+
'id': 'str',
|
24
|
+
'spec_code': 'str',
|
25
|
+
'version_name': 'str',
|
26
|
+
'instance_mode': 'str',
|
27
|
+
'az_status': 'dict(str, str)'
|
28
|
+
}
|
29
|
+
|
30
|
+
attribute_map = {
|
31
|
+
'type': 'type',
|
32
|
+
'vcpus': 'vcpus',
|
33
|
+
'ram': 'ram',
|
34
|
+
'id': 'id',
|
35
|
+
'spec_code': 'spec_code',
|
36
|
+
'version_name': 'version_name',
|
37
|
+
'instance_mode': 'instance_mode',
|
38
|
+
'az_status': 'az_status'
|
39
|
+
}
|
40
|
+
|
41
|
+
def __init__(self, type=None, vcpus=None, ram=None, id=None, spec_code=None, version_name=None, instance_mode=None, az_status=None):
|
42
|
+
"""HtapFlavorInfoFlavors
|
43
|
+
|
44
|
+
The model defined in huaweicloud sdk
|
45
|
+
|
46
|
+
:param type: 规格类型,取值为arm、x86和generalX86。 arm:独享型arm规格。 x86:独享型x86规格。 generalX86:通用型X86规格。
|
47
|
+
:type type: str
|
48
|
+
:param vcpus: CPU大小。例如:1表示1U。
|
49
|
+
:type vcpus: str
|
50
|
+
:param ram: 内存大小,单位为GB。
|
51
|
+
:type ram: str
|
52
|
+
:param id: 规格ID,该字段唯一。
|
53
|
+
:type id: str
|
54
|
+
:param spec_code: 资源规格编码,.同创建指定的flavor_ref。例如:gaussdb.sr-be.xlarge.x86.4。 “gaussdb.sr”代表产品。 “xlarge” 代表计算规格为4U。 “x86” 代表CPU架构为x86。 “4” 表示vCPU和内存为1:4。
|
55
|
+
:type spec_code: str
|
56
|
+
:param version_name: 数据库版本号。
|
57
|
+
:type version_name: str
|
58
|
+
:param instance_mode: 实例类型。目前仅支持Cluster、Single。
|
59
|
+
:type instance_mode: str
|
60
|
+
:param az_status: 规格所在AZ的状态,包含以下状态: normal:在售。 unsupported:暂不支持该规格。 sellout:售罄。
|
61
|
+
:type az_status: dict(str, str)
|
62
|
+
"""
|
63
|
+
|
64
|
+
|
65
|
+
|
66
|
+
self._type = None
|
67
|
+
self._vcpus = None
|
68
|
+
self._ram = None
|
69
|
+
self._id = None
|
70
|
+
self._spec_code = None
|
71
|
+
self._version_name = None
|
72
|
+
self._instance_mode = None
|
73
|
+
self._az_status = None
|
74
|
+
self.discriminator = None
|
75
|
+
|
76
|
+
if type is not None:
|
77
|
+
self.type = type
|
78
|
+
if vcpus is not None:
|
79
|
+
self.vcpus = vcpus
|
80
|
+
if ram is not None:
|
81
|
+
self.ram = ram
|
82
|
+
if id is not None:
|
83
|
+
self.id = id
|
84
|
+
if spec_code is not None:
|
85
|
+
self.spec_code = spec_code
|
86
|
+
if version_name is not None:
|
87
|
+
self.version_name = version_name
|
88
|
+
if instance_mode is not None:
|
89
|
+
self.instance_mode = instance_mode
|
90
|
+
if az_status is not None:
|
91
|
+
self.az_status = az_status
|
92
|
+
|
93
|
+
@property
|
94
|
+
def type(self):
|
95
|
+
"""Gets the type of this HtapFlavorInfoFlavors.
|
96
|
+
|
97
|
+
规格类型,取值为arm、x86和generalX86。 arm:独享型arm规格。 x86:独享型x86规格。 generalX86:通用型X86规格。
|
98
|
+
|
99
|
+
:return: The type of this HtapFlavorInfoFlavors.
|
100
|
+
:rtype: str
|
101
|
+
"""
|
102
|
+
return self._type
|
103
|
+
|
104
|
+
@type.setter
|
105
|
+
def type(self, type):
|
106
|
+
"""Sets the type of this HtapFlavorInfoFlavors.
|
107
|
+
|
108
|
+
规格类型,取值为arm、x86和generalX86。 arm:独享型arm规格。 x86:独享型x86规格。 generalX86:通用型X86规格。
|
109
|
+
|
110
|
+
:param type: The type of this HtapFlavorInfoFlavors.
|
111
|
+
:type type: str
|
112
|
+
"""
|
113
|
+
self._type = type
|
114
|
+
|
115
|
+
@property
|
116
|
+
def vcpus(self):
|
117
|
+
"""Gets the vcpus of this HtapFlavorInfoFlavors.
|
118
|
+
|
119
|
+
CPU大小。例如:1表示1U。
|
120
|
+
|
121
|
+
:return: The vcpus of this HtapFlavorInfoFlavors.
|
122
|
+
:rtype: str
|
123
|
+
"""
|
124
|
+
return self._vcpus
|
125
|
+
|
126
|
+
@vcpus.setter
|
127
|
+
def vcpus(self, vcpus):
|
128
|
+
"""Sets the vcpus of this HtapFlavorInfoFlavors.
|
129
|
+
|
130
|
+
CPU大小。例如:1表示1U。
|
131
|
+
|
132
|
+
:param vcpus: The vcpus of this HtapFlavorInfoFlavors.
|
133
|
+
:type vcpus: str
|
134
|
+
"""
|
135
|
+
self._vcpus = vcpus
|
136
|
+
|
137
|
+
@property
|
138
|
+
def ram(self):
|
139
|
+
"""Gets the ram of this HtapFlavorInfoFlavors.
|
140
|
+
|
141
|
+
内存大小,单位为GB。
|
142
|
+
|
143
|
+
:return: The ram of this HtapFlavorInfoFlavors.
|
144
|
+
:rtype: str
|
145
|
+
"""
|
146
|
+
return self._ram
|
147
|
+
|
148
|
+
@ram.setter
|
149
|
+
def ram(self, ram):
|
150
|
+
"""Sets the ram of this HtapFlavorInfoFlavors.
|
151
|
+
|
152
|
+
内存大小,单位为GB。
|
153
|
+
|
154
|
+
:param ram: The ram of this HtapFlavorInfoFlavors.
|
155
|
+
:type ram: str
|
156
|
+
"""
|
157
|
+
self._ram = ram
|
158
|
+
|
159
|
+
@property
|
160
|
+
def id(self):
|
161
|
+
"""Gets the id of this HtapFlavorInfoFlavors.
|
162
|
+
|
163
|
+
规格ID,该字段唯一。
|
164
|
+
|
165
|
+
:return: The id of this HtapFlavorInfoFlavors.
|
166
|
+
:rtype: str
|
167
|
+
"""
|
168
|
+
return self._id
|
169
|
+
|
170
|
+
@id.setter
|
171
|
+
def id(self, id):
|
172
|
+
"""Sets the id of this HtapFlavorInfoFlavors.
|
173
|
+
|
174
|
+
规格ID,该字段唯一。
|
175
|
+
|
176
|
+
:param id: The id of this HtapFlavorInfoFlavors.
|
177
|
+
:type id: str
|
178
|
+
"""
|
179
|
+
self._id = id
|
180
|
+
|
181
|
+
@property
|
182
|
+
def spec_code(self):
|
183
|
+
"""Gets the spec_code of this HtapFlavorInfoFlavors.
|
184
|
+
|
185
|
+
资源规格编码,.同创建指定的flavor_ref。例如:gaussdb.sr-be.xlarge.x86.4。 “gaussdb.sr”代表产品。 “xlarge” 代表计算规格为4U。 “x86” 代表CPU架构为x86。 “4” 表示vCPU和内存为1:4。
|
186
|
+
|
187
|
+
:return: The spec_code of this HtapFlavorInfoFlavors.
|
188
|
+
:rtype: str
|
189
|
+
"""
|
190
|
+
return self._spec_code
|
191
|
+
|
192
|
+
@spec_code.setter
|
193
|
+
def spec_code(self, spec_code):
|
194
|
+
"""Sets the spec_code of this HtapFlavorInfoFlavors.
|
195
|
+
|
196
|
+
资源规格编码,.同创建指定的flavor_ref。例如:gaussdb.sr-be.xlarge.x86.4。 “gaussdb.sr”代表产品。 “xlarge” 代表计算规格为4U。 “x86” 代表CPU架构为x86。 “4” 表示vCPU和内存为1:4。
|
197
|
+
|
198
|
+
:param spec_code: The spec_code of this HtapFlavorInfoFlavors.
|
199
|
+
:type spec_code: str
|
200
|
+
"""
|
201
|
+
self._spec_code = spec_code
|
202
|
+
|
203
|
+
@property
|
204
|
+
def version_name(self):
|
205
|
+
"""Gets the version_name of this HtapFlavorInfoFlavors.
|
206
|
+
|
207
|
+
数据库版本号。
|
208
|
+
|
209
|
+
:return: The version_name of this HtapFlavorInfoFlavors.
|
210
|
+
:rtype: str
|
211
|
+
"""
|
212
|
+
return self._version_name
|
213
|
+
|
214
|
+
@version_name.setter
|
215
|
+
def version_name(self, version_name):
|
216
|
+
"""Sets the version_name of this HtapFlavorInfoFlavors.
|
217
|
+
|
218
|
+
数据库版本号。
|
219
|
+
|
220
|
+
:param version_name: The version_name of this HtapFlavorInfoFlavors.
|
221
|
+
:type version_name: str
|
222
|
+
"""
|
223
|
+
self._version_name = version_name
|
224
|
+
|
225
|
+
@property
|
226
|
+
def instance_mode(self):
|
227
|
+
"""Gets the instance_mode of this HtapFlavorInfoFlavors.
|
228
|
+
|
229
|
+
实例类型。目前仅支持Cluster、Single。
|
230
|
+
|
231
|
+
:return: The instance_mode of this HtapFlavorInfoFlavors.
|
232
|
+
:rtype: str
|
233
|
+
"""
|
234
|
+
return self._instance_mode
|
235
|
+
|
236
|
+
@instance_mode.setter
|
237
|
+
def instance_mode(self, instance_mode):
|
238
|
+
"""Sets the instance_mode of this HtapFlavorInfoFlavors.
|
239
|
+
|
240
|
+
实例类型。目前仅支持Cluster、Single。
|
241
|
+
|
242
|
+
:param instance_mode: The instance_mode of this HtapFlavorInfoFlavors.
|
243
|
+
:type instance_mode: str
|
244
|
+
"""
|
245
|
+
self._instance_mode = instance_mode
|
246
|
+
|
247
|
+
@property
|
248
|
+
def az_status(self):
|
249
|
+
"""Gets the az_status of this HtapFlavorInfoFlavors.
|
250
|
+
|
251
|
+
规格所在AZ的状态,包含以下状态: normal:在售。 unsupported:暂不支持该规格。 sellout:售罄。
|
252
|
+
|
253
|
+
:return: The az_status of this HtapFlavorInfoFlavors.
|
254
|
+
:rtype: dict(str, str)
|
255
|
+
"""
|
256
|
+
return self._az_status
|
257
|
+
|
258
|
+
@az_status.setter
|
259
|
+
def az_status(self, az_status):
|
260
|
+
"""Sets the az_status of this HtapFlavorInfoFlavors.
|
261
|
+
|
262
|
+
规格所在AZ的状态,包含以下状态: normal:在售。 unsupported:暂不支持该规格。 sellout:售罄。
|
263
|
+
|
264
|
+
:param az_status: The az_status of this HtapFlavorInfoFlavors.
|
265
|
+
:type az_status: dict(str, str)
|
266
|
+
"""
|
267
|
+
self._az_status = az_status
|
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, HtapFlavorInfoFlavors):
|
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,173 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class HtapInstanceListAvailableZones:
|
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
|
+
'code': 'str',
|
21
|
+
'description': 'str',
|
22
|
+
'az_type': 'str'
|
23
|
+
}
|
24
|
+
|
25
|
+
attribute_map = {
|
26
|
+
'code': 'code',
|
27
|
+
'description': 'description',
|
28
|
+
'az_type': 'az_type'
|
29
|
+
}
|
30
|
+
|
31
|
+
def __init__(self, code=None, description=None, az_type=None):
|
32
|
+
"""HtapInstanceListAvailableZones
|
33
|
+
|
34
|
+
The model defined in huaweicloud sdk
|
35
|
+
|
36
|
+
:param code: 可用区码。
|
37
|
+
:type code: str
|
38
|
+
:param description: 可用区描述。
|
39
|
+
:type description: str
|
40
|
+
:param az_type: 可用区类型。
|
41
|
+
:type az_type: str
|
42
|
+
"""
|
43
|
+
|
44
|
+
|
45
|
+
|
46
|
+
self._code = None
|
47
|
+
self._description = None
|
48
|
+
self._az_type = None
|
49
|
+
self.discriminator = None
|
50
|
+
|
51
|
+
if code is not None:
|
52
|
+
self.code = code
|
53
|
+
if description is not None:
|
54
|
+
self.description = description
|
55
|
+
if az_type is not None:
|
56
|
+
self.az_type = az_type
|
57
|
+
|
58
|
+
@property
|
59
|
+
def code(self):
|
60
|
+
"""Gets the code of this HtapInstanceListAvailableZones.
|
61
|
+
|
62
|
+
可用区码。
|
63
|
+
|
64
|
+
:return: The code of this HtapInstanceListAvailableZones.
|
65
|
+
:rtype: str
|
66
|
+
"""
|
67
|
+
return self._code
|
68
|
+
|
69
|
+
@code.setter
|
70
|
+
def code(self, code):
|
71
|
+
"""Sets the code of this HtapInstanceListAvailableZones.
|
72
|
+
|
73
|
+
可用区码。
|
74
|
+
|
75
|
+
:param code: The code of this HtapInstanceListAvailableZones.
|
76
|
+
:type code: str
|
77
|
+
"""
|
78
|
+
self._code = code
|
79
|
+
|
80
|
+
@property
|
81
|
+
def description(self):
|
82
|
+
"""Gets the description of this HtapInstanceListAvailableZones.
|
83
|
+
|
84
|
+
可用区描述。
|
85
|
+
|
86
|
+
:return: The description of this HtapInstanceListAvailableZones.
|
87
|
+
:rtype: str
|
88
|
+
"""
|
89
|
+
return self._description
|
90
|
+
|
91
|
+
@description.setter
|
92
|
+
def description(self, description):
|
93
|
+
"""Sets the description of this HtapInstanceListAvailableZones.
|
94
|
+
|
95
|
+
可用区描述。
|
96
|
+
|
97
|
+
:param description: The description of this HtapInstanceListAvailableZones.
|
98
|
+
:type description: str
|
99
|
+
"""
|
100
|
+
self._description = description
|
101
|
+
|
102
|
+
@property
|
103
|
+
def az_type(self):
|
104
|
+
"""Gets the az_type of this HtapInstanceListAvailableZones.
|
105
|
+
|
106
|
+
可用区类型。
|
107
|
+
|
108
|
+
:return: The az_type of this HtapInstanceListAvailableZones.
|
109
|
+
:rtype: str
|
110
|
+
"""
|
111
|
+
return self._az_type
|
112
|
+
|
113
|
+
@az_type.setter
|
114
|
+
def az_type(self, az_type):
|
115
|
+
"""Sets the az_type of this HtapInstanceListAvailableZones.
|
116
|
+
|
117
|
+
可用区类型。
|
118
|
+
|
119
|
+
:param az_type: The az_type of this HtapInstanceListAvailableZones.
|
120
|
+
:type az_type: str
|
121
|
+
"""
|
122
|
+
self._az_type = az_type
|
123
|
+
|
124
|
+
def to_dict(self):
|
125
|
+
"""Returns the model properties as a dict"""
|
126
|
+
result = {}
|
127
|
+
|
128
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
129
|
+
value = getattr(self, attr)
|
130
|
+
if isinstance(value, list):
|
131
|
+
result[attr] = list(map(
|
132
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
133
|
+
value
|
134
|
+
))
|
135
|
+
elif hasattr(value, "to_dict"):
|
136
|
+
result[attr] = value.to_dict()
|
137
|
+
elif isinstance(value, dict):
|
138
|
+
result[attr] = dict(map(
|
139
|
+
lambda item: (item[0], item[1].to_dict())
|
140
|
+
if hasattr(item[1], "to_dict") else item,
|
141
|
+
value.items()
|
142
|
+
))
|
143
|
+
else:
|
144
|
+
if attr in self.sensitive_list:
|
145
|
+
result[attr] = "****"
|
146
|
+
else:
|
147
|
+
result[attr] = value
|
148
|
+
|
149
|
+
return result
|
150
|
+
|
151
|
+
def to_str(self):
|
152
|
+
"""Returns the string representation of the model"""
|
153
|
+
import simplejson as json
|
154
|
+
if six.PY2:
|
155
|
+
import sys
|
156
|
+
reload(sys)
|
157
|
+
sys.setdefaultencoding("utf-8")
|
158
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
159
|
+
|
160
|
+
def __repr__(self):
|
161
|
+
"""For `print`"""
|
162
|
+
return self.to_str()
|
163
|
+
|
164
|
+
def __eq__(self, other):
|
165
|
+
"""Returns true if both objects are equal"""
|
166
|
+
if not isinstance(other, HtapInstanceListAvailableZones):
|
167
|
+
return False
|
168
|
+
|
169
|
+
return self.__dict__ == other.__dict__
|
170
|
+
|
171
|
+
def __ne__(self, other):
|
172
|
+
"""Returns true if both objects are not equal"""
|
173
|
+
return not self == other
|
@@ -0,0 +1,202 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class HtapInstanceListInstanceState:
|
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_status': 'str',
|
21
|
+
'create_fail_error_code': 'str',
|
22
|
+
'fail_message': 'str',
|
23
|
+
'wait_restart_for_params': 'bool'
|
24
|
+
}
|
25
|
+
|
26
|
+
attribute_map = {
|
27
|
+
'instance_status': 'instance_status',
|
28
|
+
'create_fail_error_code': 'create_fail_error_code',
|
29
|
+
'fail_message': 'fail_message',
|
30
|
+
'wait_restart_for_params': 'wait_restart_for_params'
|
31
|
+
}
|
32
|
+
|
33
|
+
def __init__(self, instance_status=None, create_fail_error_code=None, fail_message=None, wait_restart_for_params=None):
|
34
|
+
"""HtapInstanceListInstanceState
|
35
|
+
|
36
|
+
The model defined in huaweicloud sdk
|
37
|
+
|
38
|
+
:param instance_status: HTAP实例状态。
|
39
|
+
:type instance_status: str
|
40
|
+
:param create_fail_error_code: HTAP实例创建失败错误码。
|
41
|
+
:type create_fail_error_code: str
|
42
|
+
:param fail_message: HTAP实例创建失败错误信息。
|
43
|
+
:type fail_message: str
|
44
|
+
:param wait_restart_for_params: 是否需要重启更新参数。
|
45
|
+
:type wait_restart_for_params: bool
|
46
|
+
"""
|
47
|
+
|
48
|
+
|
49
|
+
|
50
|
+
self._instance_status = None
|
51
|
+
self._create_fail_error_code = None
|
52
|
+
self._fail_message = None
|
53
|
+
self._wait_restart_for_params = None
|
54
|
+
self.discriminator = None
|
55
|
+
|
56
|
+
if instance_status is not None:
|
57
|
+
self.instance_status = instance_status
|
58
|
+
if create_fail_error_code is not None:
|
59
|
+
self.create_fail_error_code = create_fail_error_code
|
60
|
+
if fail_message is not None:
|
61
|
+
self.fail_message = fail_message
|
62
|
+
if wait_restart_for_params is not None:
|
63
|
+
self.wait_restart_for_params = wait_restart_for_params
|
64
|
+
|
65
|
+
@property
|
66
|
+
def instance_status(self):
|
67
|
+
"""Gets the instance_status of this HtapInstanceListInstanceState.
|
68
|
+
|
69
|
+
HTAP实例状态。
|
70
|
+
|
71
|
+
:return: The instance_status of this HtapInstanceListInstanceState.
|
72
|
+
:rtype: str
|
73
|
+
"""
|
74
|
+
return self._instance_status
|
75
|
+
|
76
|
+
@instance_status.setter
|
77
|
+
def instance_status(self, instance_status):
|
78
|
+
"""Sets the instance_status of this HtapInstanceListInstanceState.
|
79
|
+
|
80
|
+
HTAP实例状态。
|
81
|
+
|
82
|
+
:param instance_status: The instance_status of this HtapInstanceListInstanceState.
|
83
|
+
:type instance_status: str
|
84
|
+
"""
|
85
|
+
self._instance_status = instance_status
|
86
|
+
|
87
|
+
@property
|
88
|
+
def create_fail_error_code(self):
|
89
|
+
"""Gets the create_fail_error_code of this HtapInstanceListInstanceState.
|
90
|
+
|
91
|
+
HTAP实例创建失败错误码。
|
92
|
+
|
93
|
+
:return: The create_fail_error_code of this HtapInstanceListInstanceState.
|
94
|
+
:rtype: str
|
95
|
+
"""
|
96
|
+
return self._create_fail_error_code
|
97
|
+
|
98
|
+
@create_fail_error_code.setter
|
99
|
+
def create_fail_error_code(self, create_fail_error_code):
|
100
|
+
"""Sets the create_fail_error_code of this HtapInstanceListInstanceState.
|
101
|
+
|
102
|
+
HTAP实例创建失败错误码。
|
103
|
+
|
104
|
+
:param create_fail_error_code: The create_fail_error_code of this HtapInstanceListInstanceState.
|
105
|
+
:type create_fail_error_code: str
|
106
|
+
"""
|
107
|
+
self._create_fail_error_code = create_fail_error_code
|
108
|
+
|
109
|
+
@property
|
110
|
+
def fail_message(self):
|
111
|
+
"""Gets the fail_message of this HtapInstanceListInstanceState.
|
112
|
+
|
113
|
+
HTAP实例创建失败错误信息。
|
114
|
+
|
115
|
+
:return: The fail_message of this HtapInstanceListInstanceState.
|
116
|
+
:rtype: str
|
117
|
+
"""
|
118
|
+
return self._fail_message
|
119
|
+
|
120
|
+
@fail_message.setter
|
121
|
+
def fail_message(self, fail_message):
|
122
|
+
"""Sets the fail_message of this HtapInstanceListInstanceState.
|
123
|
+
|
124
|
+
HTAP实例创建失败错误信息。
|
125
|
+
|
126
|
+
:param fail_message: The fail_message of this HtapInstanceListInstanceState.
|
127
|
+
:type fail_message: str
|
128
|
+
"""
|
129
|
+
self._fail_message = fail_message
|
130
|
+
|
131
|
+
@property
|
132
|
+
def wait_restart_for_params(self):
|
133
|
+
"""Gets the wait_restart_for_params of this HtapInstanceListInstanceState.
|
134
|
+
|
135
|
+
是否需要重启更新参数。
|
136
|
+
|
137
|
+
:return: The wait_restart_for_params of this HtapInstanceListInstanceState.
|
138
|
+
:rtype: bool
|
139
|
+
"""
|
140
|
+
return self._wait_restart_for_params
|
141
|
+
|
142
|
+
@wait_restart_for_params.setter
|
143
|
+
def wait_restart_for_params(self, wait_restart_for_params):
|
144
|
+
"""Sets the wait_restart_for_params of this HtapInstanceListInstanceState.
|
145
|
+
|
146
|
+
是否需要重启更新参数。
|
147
|
+
|
148
|
+
:param wait_restart_for_params: The wait_restart_for_params of this HtapInstanceListInstanceState.
|
149
|
+
:type wait_restart_for_params: bool
|
150
|
+
"""
|
151
|
+
self._wait_restart_for_params = wait_restart_for_params
|
152
|
+
|
153
|
+
def to_dict(self):
|
154
|
+
"""Returns the model properties as a dict"""
|
155
|
+
result = {}
|
156
|
+
|
157
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
158
|
+
value = getattr(self, attr)
|
159
|
+
if isinstance(value, list):
|
160
|
+
result[attr] = list(map(
|
161
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
162
|
+
value
|
163
|
+
))
|
164
|
+
elif hasattr(value, "to_dict"):
|
165
|
+
result[attr] = value.to_dict()
|
166
|
+
elif isinstance(value, dict):
|
167
|
+
result[attr] = dict(map(
|
168
|
+
lambda item: (item[0], item[1].to_dict())
|
169
|
+
if hasattr(item[1], "to_dict") else item,
|
170
|
+
value.items()
|
171
|
+
))
|
172
|
+
else:
|
173
|
+
if attr in self.sensitive_list:
|
174
|
+
result[attr] = "****"
|
175
|
+
else:
|
176
|
+
result[attr] = value
|
177
|
+
|
178
|
+
return result
|
179
|
+
|
180
|
+
def to_str(self):
|
181
|
+
"""Returns the string representation of the model"""
|
182
|
+
import simplejson as json
|
183
|
+
if six.PY2:
|
184
|
+
import sys
|
185
|
+
reload(sys)
|
186
|
+
sys.setdefaultencoding("utf-8")
|
187
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
188
|
+
|
189
|
+
def __repr__(self):
|
190
|
+
"""For `print`"""
|
191
|
+
return self.to_str()
|
192
|
+
|
193
|
+
def __eq__(self, other):
|
194
|
+
"""Returns true if both objects are equal"""
|
195
|
+
if not isinstance(other, HtapInstanceListInstanceState):
|
196
|
+
return False
|
197
|
+
|
198
|
+
return self.__dict__ == other.__dict__
|
199
|
+
|
200
|
+
def __ne__(self, other):
|
201
|
+
"""Returns true if both objects are not equal"""
|
202
|
+
return not self == other
|