huaweicloudsdkmrs 3.1.97__py2.py3-none-any.whl → 3.1.99__py2.py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- huaweicloudsdkmrs/v1/model/create_cluster_req_v11.py +3 -3
- huaweicloudsdkmrs/v1/model/node_group_v11.py +3 -3
- huaweicloudsdkmrs/v1/model/task_node_group.py +3 -3
- huaweicloudsdkmrs/v1/model/task_node_info.py +3 -3
- huaweicloudsdkmrs/v2/__init__.py +7 -0
- huaweicloudsdkmrs/v2/model/__init__.py +7 -0
- huaweicloudsdkmrs/v2/model/cluster_node.py +396 -0
- huaweicloudsdkmrs/v2/model/component_info.py +521 -0
- huaweicloudsdkmrs/v2/model/list_nodes_request.py +375 -0
- huaweicloudsdkmrs/v2/model/list_nodes_response.py +145 -0
- huaweicloudsdkmrs/v2/model/node_detail.py +376 -0
- huaweicloudsdkmrs/v2/model/node_group_v2.py +3 -3
- huaweicloudsdkmrs/v2/model/server_info.py +340 -0
- huaweicloudsdkmrs/v2/model/show_mrs_flavors_request.py +32 -3
- huaweicloudsdkmrs/v2/model/tag.py +6 -6
- huaweicloudsdkmrs/v2/model/volume_info.py +170 -0
- huaweicloudsdkmrs/v2/mrs_async_client.py +85 -0
- huaweicloudsdkmrs/v2/mrs_client.py +85 -0
- {huaweicloudsdkmrs-3.1.97.dist-info → huaweicloudsdkmrs-3.1.99.dist-info}/METADATA +2 -2
- {huaweicloudsdkmrs-3.1.97.dist-info → huaweicloudsdkmrs-3.1.99.dist-info}/RECORD +23 -16
- {huaweicloudsdkmrs-3.1.97.dist-info → huaweicloudsdkmrs-3.1.99.dist-info}/LICENSE +0 -0
- {huaweicloudsdkmrs-3.1.97.dist-info → huaweicloudsdkmrs-3.1.99.dist-info}/WHEEL +0 -0
- {huaweicloudsdkmrs-3.1.97.dist-info → huaweicloudsdkmrs-3.1.99.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,521 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class ComponentInfo:
|
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
|
+
'instance_group_name': 'str',
|
23
|
+
'running_status': 'str',
|
24
|
+
'ha_status': 'str',
|
25
|
+
'config_status': 'str',
|
26
|
+
'role_name': 'str',
|
27
|
+
'role_short_name': 'str',
|
28
|
+
'role_type': 'str',
|
29
|
+
'service_name': 'str',
|
30
|
+
'pair_name': 'str',
|
31
|
+
'relation_pairs': 'str',
|
32
|
+
'support_decom': 'str',
|
33
|
+
'support_reinstall': 'str',
|
34
|
+
'support_collect_stack_info': 'str'
|
35
|
+
}
|
36
|
+
|
37
|
+
attribute_map = {
|
38
|
+
'id': 'id',
|
39
|
+
'name': 'name',
|
40
|
+
'instance_group_name': 'instance_group_name',
|
41
|
+
'running_status': 'running_status',
|
42
|
+
'ha_status': 'ha_status',
|
43
|
+
'config_status': 'config_status',
|
44
|
+
'role_name': 'role_name',
|
45
|
+
'role_short_name': 'role_short_name',
|
46
|
+
'role_type': 'role_type',
|
47
|
+
'service_name': 'service_name',
|
48
|
+
'pair_name': 'pair_name',
|
49
|
+
'relation_pairs': 'relation_pairs',
|
50
|
+
'support_decom': 'support_decom',
|
51
|
+
'support_reinstall': 'support_reinstall',
|
52
|
+
'support_collect_stack_info': 'support_collect_stack_info'
|
53
|
+
}
|
54
|
+
|
55
|
+
def __init__(self, id=None, name=None, instance_group_name=None, running_status=None, ha_status=None, config_status=None, role_name=None, role_short_name=None, role_type=None, service_name=None, pair_name=None, relation_pairs=None, support_decom=None, support_reinstall=None, support_collect_stack_info=None):
|
56
|
+
"""ComponentInfo
|
57
|
+
|
58
|
+
The model defined in huaweicloud sdk
|
59
|
+
|
60
|
+
:param id: 组件ID。
|
61
|
+
:type id: str
|
62
|
+
:param name: 组件名。
|
63
|
+
:type name: str
|
64
|
+
:param instance_group_name: 组件所在组名称。
|
65
|
+
:type instance_group_name: str
|
66
|
+
:param running_status: 运行状态。
|
67
|
+
:type running_status: str
|
68
|
+
:param ha_status: HA状态。
|
69
|
+
:type ha_status: str
|
70
|
+
:param config_status: 配置状态。
|
71
|
+
:type config_status: str
|
72
|
+
:param role_name: 角色。
|
73
|
+
:type role_name: str
|
74
|
+
:param role_short_name: 角色缩写。
|
75
|
+
:type role_short_name: str
|
76
|
+
:param role_type: 角色类型。
|
77
|
+
:type role_type: str
|
78
|
+
:param service_name: 服务名。
|
79
|
+
:type service_name: str
|
80
|
+
:param pair_name: 对名。
|
81
|
+
:type pair_name: str
|
82
|
+
:param relation_pairs: 关联对。
|
83
|
+
:type relation_pairs: str
|
84
|
+
:param support_decom: 是否支持Decom。
|
85
|
+
:type support_decom: str
|
86
|
+
:param support_reinstall: 是否支持重装。
|
87
|
+
:type support_reinstall: str
|
88
|
+
:param support_collect_stack_info: 是否支持收集堆栈信息。
|
89
|
+
:type support_collect_stack_info: str
|
90
|
+
"""
|
91
|
+
|
92
|
+
|
93
|
+
|
94
|
+
self._id = None
|
95
|
+
self._name = None
|
96
|
+
self._instance_group_name = None
|
97
|
+
self._running_status = None
|
98
|
+
self._ha_status = None
|
99
|
+
self._config_status = None
|
100
|
+
self._role_name = None
|
101
|
+
self._role_short_name = None
|
102
|
+
self._role_type = None
|
103
|
+
self._service_name = None
|
104
|
+
self._pair_name = None
|
105
|
+
self._relation_pairs = None
|
106
|
+
self._support_decom = None
|
107
|
+
self._support_reinstall = None
|
108
|
+
self._support_collect_stack_info = None
|
109
|
+
self.discriminator = None
|
110
|
+
|
111
|
+
if id is not None:
|
112
|
+
self.id = id
|
113
|
+
if name is not None:
|
114
|
+
self.name = name
|
115
|
+
if instance_group_name is not None:
|
116
|
+
self.instance_group_name = instance_group_name
|
117
|
+
if running_status is not None:
|
118
|
+
self.running_status = running_status
|
119
|
+
if ha_status is not None:
|
120
|
+
self.ha_status = ha_status
|
121
|
+
if config_status is not None:
|
122
|
+
self.config_status = config_status
|
123
|
+
if role_name is not None:
|
124
|
+
self.role_name = role_name
|
125
|
+
if role_short_name is not None:
|
126
|
+
self.role_short_name = role_short_name
|
127
|
+
if role_type is not None:
|
128
|
+
self.role_type = role_type
|
129
|
+
if service_name is not None:
|
130
|
+
self.service_name = service_name
|
131
|
+
if pair_name is not None:
|
132
|
+
self.pair_name = pair_name
|
133
|
+
if relation_pairs is not None:
|
134
|
+
self.relation_pairs = relation_pairs
|
135
|
+
if support_decom is not None:
|
136
|
+
self.support_decom = support_decom
|
137
|
+
if support_reinstall is not None:
|
138
|
+
self.support_reinstall = support_reinstall
|
139
|
+
if support_collect_stack_info is not None:
|
140
|
+
self.support_collect_stack_info = support_collect_stack_info
|
141
|
+
|
142
|
+
@property
|
143
|
+
def id(self):
|
144
|
+
"""Gets the id of this ComponentInfo.
|
145
|
+
|
146
|
+
组件ID。
|
147
|
+
|
148
|
+
:return: The id of this ComponentInfo.
|
149
|
+
:rtype: str
|
150
|
+
"""
|
151
|
+
return self._id
|
152
|
+
|
153
|
+
@id.setter
|
154
|
+
def id(self, id):
|
155
|
+
"""Sets the id of this ComponentInfo.
|
156
|
+
|
157
|
+
组件ID。
|
158
|
+
|
159
|
+
:param id: The id of this ComponentInfo.
|
160
|
+
:type id: str
|
161
|
+
"""
|
162
|
+
self._id = id
|
163
|
+
|
164
|
+
@property
|
165
|
+
def name(self):
|
166
|
+
"""Gets the name of this ComponentInfo.
|
167
|
+
|
168
|
+
组件名。
|
169
|
+
|
170
|
+
:return: The name of this ComponentInfo.
|
171
|
+
:rtype: str
|
172
|
+
"""
|
173
|
+
return self._name
|
174
|
+
|
175
|
+
@name.setter
|
176
|
+
def name(self, name):
|
177
|
+
"""Sets the name of this ComponentInfo.
|
178
|
+
|
179
|
+
组件名。
|
180
|
+
|
181
|
+
:param name: The name of this ComponentInfo.
|
182
|
+
:type name: str
|
183
|
+
"""
|
184
|
+
self._name = name
|
185
|
+
|
186
|
+
@property
|
187
|
+
def instance_group_name(self):
|
188
|
+
"""Gets the instance_group_name of this ComponentInfo.
|
189
|
+
|
190
|
+
组件所在组名称。
|
191
|
+
|
192
|
+
:return: The instance_group_name of this ComponentInfo.
|
193
|
+
:rtype: str
|
194
|
+
"""
|
195
|
+
return self._instance_group_name
|
196
|
+
|
197
|
+
@instance_group_name.setter
|
198
|
+
def instance_group_name(self, instance_group_name):
|
199
|
+
"""Sets the instance_group_name of this ComponentInfo.
|
200
|
+
|
201
|
+
组件所在组名称。
|
202
|
+
|
203
|
+
:param instance_group_name: The instance_group_name of this ComponentInfo.
|
204
|
+
:type instance_group_name: str
|
205
|
+
"""
|
206
|
+
self._instance_group_name = instance_group_name
|
207
|
+
|
208
|
+
@property
|
209
|
+
def running_status(self):
|
210
|
+
"""Gets the running_status of this ComponentInfo.
|
211
|
+
|
212
|
+
运行状态。
|
213
|
+
|
214
|
+
:return: The running_status of this ComponentInfo.
|
215
|
+
:rtype: str
|
216
|
+
"""
|
217
|
+
return self._running_status
|
218
|
+
|
219
|
+
@running_status.setter
|
220
|
+
def running_status(self, running_status):
|
221
|
+
"""Sets the running_status of this ComponentInfo.
|
222
|
+
|
223
|
+
运行状态。
|
224
|
+
|
225
|
+
:param running_status: The running_status of this ComponentInfo.
|
226
|
+
:type running_status: str
|
227
|
+
"""
|
228
|
+
self._running_status = running_status
|
229
|
+
|
230
|
+
@property
|
231
|
+
def ha_status(self):
|
232
|
+
"""Gets the ha_status of this ComponentInfo.
|
233
|
+
|
234
|
+
HA状态。
|
235
|
+
|
236
|
+
:return: The ha_status of this ComponentInfo.
|
237
|
+
:rtype: str
|
238
|
+
"""
|
239
|
+
return self._ha_status
|
240
|
+
|
241
|
+
@ha_status.setter
|
242
|
+
def ha_status(self, ha_status):
|
243
|
+
"""Sets the ha_status of this ComponentInfo.
|
244
|
+
|
245
|
+
HA状态。
|
246
|
+
|
247
|
+
:param ha_status: The ha_status of this ComponentInfo.
|
248
|
+
:type ha_status: str
|
249
|
+
"""
|
250
|
+
self._ha_status = ha_status
|
251
|
+
|
252
|
+
@property
|
253
|
+
def config_status(self):
|
254
|
+
"""Gets the config_status of this ComponentInfo.
|
255
|
+
|
256
|
+
配置状态。
|
257
|
+
|
258
|
+
:return: The config_status of this ComponentInfo.
|
259
|
+
:rtype: str
|
260
|
+
"""
|
261
|
+
return self._config_status
|
262
|
+
|
263
|
+
@config_status.setter
|
264
|
+
def config_status(self, config_status):
|
265
|
+
"""Sets the config_status of this ComponentInfo.
|
266
|
+
|
267
|
+
配置状态。
|
268
|
+
|
269
|
+
:param config_status: The config_status of this ComponentInfo.
|
270
|
+
:type config_status: str
|
271
|
+
"""
|
272
|
+
self._config_status = config_status
|
273
|
+
|
274
|
+
@property
|
275
|
+
def role_name(self):
|
276
|
+
"""Gets the role_name of this ComponentInfo.
|
277
|
+
|
278
|
+
角色。
|
279
|
+
|
280
|
+
:return: The role_name of this ComponentInfo.
|
281
|
+
:rtype: str
|
282
|
+
"""
|
283
|
+
return self._role_name
|
284
|
+
|
285
|
+
@role_name.setter
|
286
|
+
def role_name(self, role_name):
|
287
|
+
"""Sets the role_name of this ComponentInfo.
|
288
|
+
|
289
|
+
角色。
|
290
|
+
|
291
|
+
:param role_name: The role_name of this ComponentInfo.
|
292
|
+
:type role_name: str
|
293
|
+
"""
|
294
|
+
self._role_name = role_name
|
295
|
+
|
296
|
+
@property
|
297
|
+
def role_short_name(self):
|
298
|
+
"""Gets the role_short_name of this ComponentInfo.
|
299
|
+
|
300
|
+
角色缩写。
|
301
|
+
|
302
|
+
:return: The role_short_name of this ComponentInfo.
|
303
|
+
:rtype: str
|
304
|
+
"""
|
305
|
+
return self._role_short_name
|
306
|
+
|
307
|
+
@role_short_name.setter
|
308
|
+
def role_short_name(self, role_short_name):
|
309
|
+
"""Sets the role_short_name of this ComponentInfo.
|
310
|
+
|
311
|
+
角色缩写。
|
312
|
+
|
313
|
+
:param role_short_name: The role_short_name of this ComponentInfo.
|
314
|
+
:type role_short_name: str
|
315
|
+
"""
|
316
|
+
self._role_short_name = role_short_name
|
317
|
+
|
318
|
+
@property
|
319
|
+
def role_type(self):
|
320
|
+
"""Gets the role_type of this ComponentInfo.
|
321
|
+
|
322
|
+
角色类型。
|
323
|
+
|
324
|
+
:return: The role_type of this ComponentInfo.
|
325
|
+
:rtype: str
|
326
|
+
"""
|
327
|
+
return self._role_type
|
328
|
+
|
329
|
+
@role_type.setter
|
330
|
+
def role_type(self, role_type):
|
331
|
+
"""Sets the role_type of this ComponentInfo.
|
332
|
+
|
333
|
+
角色类型。
|
334
|
+
|
335
|
+
:param role_type: The role_type of this ComponentInfo.
|
336
|
+
:type role_type: str
|
337
|
+
"""
|
338
|
+
self._role_type = role_type
|
339
|
+
|
340
|
+
@property
|
341
|
+
def service_name(self):
|
342
|
+
"""Gets the service_name of this ComponentInfo.
|
343
|
+
|
344
|
+
服务名。
|
345
|
+
|
346
|
+
:return: The service_name of this ComponentInfo.
|
347
|
+
:rtype: str
|
348
|
+
"""
|
349
|
+
return self._service_name
|
350
|
+
|
351
|
+
@service_name.setter
|
352
|
+
def service_name(self, service_name):
|
353
|
+
"""Sets the service_name of this ComponentInfo.
|
354
|
+
|
355
|
+
服务名。
|
356
|
+
|
357
|
+
:param service_name: The service_name of this ComponentInfo.
|
358
|
+
:type service_name: str
|
359
|
+
"""
|
360
|
+
self._service_name = service_name
|
361
|
+
|
362
|
+
@property
|
363
|
+
def pair_name(self):
|
364
|
+
"""Gets the pair_name of this ComponentInfo.
|
365
|
+
|
366
|
+
对名。
|
367
|
+
|
368
|
+
:return: The pair_name of this ComponentInfo.
|
369
|
+
:rtype: str
|
370
|
+
"""
|
371
|
+
return self._pair_name
|
372
|
+
|
373
|
+
@pair_name.setter
|
374
|
+
def pair_name(self, pair_name):
|
375
|
+
"""Sets the pair_name of this ComponentInfo.
|
376
|
+
|
377
|
+
对名。
|
378
|
+
|
379
|
+
:param pair_name: The pair_name of this ComponentInfo.
|
380
|
+
:type pair_name: str
|
381
|
+
"""
|
382
|
+
self._pair_name = pair_name
|
383
|
+
|
384
|
+
@property
|
385
|
+
def relation_pairs(self):
|
386
|
+
"""Gets the relation_pairs of this ComponentInfo.
|
387
|
+
|
388
|
+
关联对。
|
389
|
+
|
390
|
+
:return: The relation_pairs of this ComponentInfo.
|
391
|
+
:rtype: str
|
392
|
+
"""
|
393
|
+
return self._relation_pairs
|
394
|
+
|
395
|
+
@relation_pairs.setter
|
396
|
+
def relation_pairs(self, relation_pairs):
|
397
|
+
"""Sets the relation_pairs of this ComponentInfo.
|
398
|
+
|
399
|
+
关联对。
|
400
|
+
|
401
|
+
:param relation_pairs: The relation_pairs of this ComponentInfo.
|
402
|
+
:type relation_pairs: str
|
403
|
+
"""
|
404
|
+
self._relation_pairs = relation_pairs
|
405
|
+
|
406
|
+
@property
|
407
|
+
def support_decom(self):
|
408
|
+
"""Gets the support_decom of this ComponentInfo.
|
409
|
+
|
410
|
+
是否支持Decom。
|
411
|
+
|
412
|
+
:return: The support_decom of this ComponentInfo.
|
413
|
+
:rtype: str
|
414
|
+
"""
|
415
|
+
return self._support_decom
|
416
|
+
|
417
|
+
@support_decom.setter
|
418
|
+
def support_decom(self, support_decom):
|
419
|
+
"""Sets the support_decom of this ComponentInfo.
|
420
|
+
|
421
|
+
是否支持Decom。
|
422
|
+
|
423
|
+
:param support_decom: The support_decom of this ComponentInfo.
|
424
|
+
:type support_decom: str
|
425
|
+
"""
|
426
|
+
self._support_decom = support_decom
|
427
|
+
|
428
|
+
@property
|
429
|
+
def support_reinstall(self):
|
430
|
+
"""Gets the support_reinstall of this ComponentInfo.
|
431
|
+
|
432
|
+
是否支持重装。
|
433
|
+
|
434
|
+
:return: The support_reinstall of this ComponentInfo.
|
435
|
+
:rtype: str
|
436
|
+
"""
|
437
|
+
return self._support_reinstall
|
438
|
+
|
439
|
+
@support_reinstall.setter
|
440
|
+
def support_reinstall(self, support_reinstall):
|
441
|
+
"""Sets the support_reinstall of this ComponentInfo.
|
442
|
+
|
443
|
+
是否支持重装。
|
444
|
+
|
445
|
+
:param support_reinstall: The support_reinstall of this ComponentInfo.
|
446
|
+
:type support_reinstall: str
|
447
|
+
"""
|
448
|
+
self._support_reinstall = support_reinstall
|
449
|
+
|
450
|
+
@property
|
451
|
+
def support_collect_stack_info(self):
|
452
|
+
"""Gets the support_collect_stack_info of this ComponentInfo.
|
453
|
+
|
454
|
+
是否支持收集堆栈信息。
|
455
|
+
|
456
|
+
:return: The support_collect_stack_info of this ComponentInfo.
|
457
|
+
:rtype: str
|
458
|
+
"""
|
459
|
+
return self._support_collect_stack_info
|
460
|
+
|
461
|
+
@support_collect_stack_info.setter
|
462
|
+
def support_collect_stack_info(self, support_collect_stack_info):
|
463
|
+
"""Sets the support_collect_stack_info of this ComponentInfo.
|
464
|
+
|
465
|
+
是否支持收集堆栈信息。
|
466
|
+
|
467
|
+
:param support_collect_stack_info: The support_collect_stack_info of this ComponentInfo.
|
468
|
+
:type support_collect_stack_info: str
|
469
|
+
"""
|
470
|
+
self._support_collect_stack_info = support_collect_stack_info
|
471
|
+
|
472
|
+
def to_dict(self):
|
473
|
+
"""Returns the model properties as a dict"""
|
474
|
+
result = {}
|
475
|
+
|
476
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
477
|
+
value = getattr(self, attr)
|
478
|
+
if isinstance(value, list):
|
479
|
+
result[attr] = list(map(
|
480
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
481
|
+
value
|
482
|
+
))
|
483
|
+
elif hasattr(value, "to_dict"):
|
484
|
+
result[attr] = value.to_dict()
|
485
|
+
elif isinstance(value, dict):
|
486
|
+
result[attr] = dict(map(
|
487
|
+
lambda item: (item[0], item[1].to_dict())
|
488
|
+
if hasattr(item[1], "to_dict") else item,
|
489
|
+
value.items()
|
490
|
+
))
|
491
|
+
else:
|
492
|
+
if attr in self.sensitive_list:
|
493
|
+
result[attr] = "****"
|
494
|
+
else:
|
495
|
+
result[attr] = value
|
496
|
+
|
497
|
+
return result
|
498
|
+
|
499
|
+
def to_str(self):
|
500
|
+
"""Returns the string representation of the model"""
|
501
|
+
import simplejson as json
|
502
|
+
if six.PY2:
|
503
|
+
import sys
|
504
|
+
reload(sys)
|
505
|
+
sys.setdefaultencoding("utf-8")
|
506
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
507
|
+
|
508
|
+
def __repr__(self):
|
509
|
+
"""For `print`"""
|
510
|
+
return self.to_str()
|
511
|
+
|
512
|
+
def __eq__(self, other):
|
513
|
+
"""Returns true if both objects are equal"""
|
514
|
+
if not isinstance(other, ComponentInfo):
|
515
|
+
return False
|
516
|
+
|
517
|
+
return self.__dict__ == other.__dict__
|
518
|
+
|
519
|
+
def __ne__(self, other):
|
520
|
+
"""Returns true if both objects are not equal"""
|
521
|
+
return not self == other
|