huaweicloudsdkmrs 3.1.86__py2.py3-none-any.whl → 3.1.132__py2.py3-none-any.whl
Sign up to get free protection for your applications and to get access to all the features.
- huaweicloudsdkmrs/v1/model/create_cluster_req_v11.py +3 -3
- huaweicloudsdkmrs/v1/model/create_scaling_policy_response.py +22 -18
- huaweicloudsdkmrs/v1/model/host_model.py +32 -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/v1/region/mrs_region.py +6 -0
- 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/v2/region/mrs_region.py +6 -0
- {huaweicloudsdkmrs-3.1.86.dist-info → huaweicloudsdkmrs-3.1.132.dist-info}/METADATA +2 -2
- {huaweicloudsdkmrs-3.1.86.dist-info → huaweicloudsdkmrs-3.1.132.dist-info}/RECORD +27 -20
- {huaweicloudsdkmrs-3.1.86.dist-info → huaweicloudsdkmrs-3.1.132.dist-info}/WHEEL +1 -1
- {huaweicloudsdkmrs-3.1.86.dist-info → huaweicloudsdkmrs-3.1.132.dist-info}/LICENSE +0 -0
- {huaweicloudsdkmrs-3.1.86.dist-info → huaweicloudsdkmrs-3.1.132.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,376 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class NodeDetail:
|
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
|
+
'running_status': 'str',
|
21
|
+
'cpu_usage': 'str',
|
22
|
+
'memory_usage': 'str',
|
23
|
+
'disk_usage': 'str',
|
24
|
+
'total_memory': 'str',
|
25
|
+
'available_memory': 'str',
|
26
|
+
'total_hard_disk_space': 'str',
|
27
|
+
'available_hard_disk_space': 'str',
|
28
|
+
'network_read': 'str',
|
29
|
+
'network_write': 'str'
|
30
|
+
}
|
31
|
+
|
32
|
+
attribute_map = {
|
33
|
+
'running_status': 'running_status',
|
34
|
+
'cpu_usage': 'cpu_usage',
|
35
|
+
'memory_usage': 'memory_usage',
|
36
|
+
'disk_usage': 'disk_usage',
|
37
|
+
'total_memory': 'total_memory',
|
38
|
+
'available_memory': 'available_memory',
|
39
|
+
'total_hard_disk_space': 'total_hard_disk_space',
|
40
|
+
'available_hard_disk_space': 'available_hard_disk_space',
|
41
|
+
'network_read': 'network_read',
|
42
|
+
'network_write': 'network_write'
|
43
|
+
}
|
44
|
+
|
45
|
+
def __init__(self, running_status=None, cpu_usage=None, memory_usage=None, disk_usage=None, total_memory=None, available_memory=None, total_hard_disk_space=None, available_hard_disk_space=None, network_read=None, network_write=None):
|
46
|
+
"""NodeDetail
|
47
|
+
|
48
|
+
The model defined in huaweicloud sdk
|
49
|
+
|
50
|
+
:param running_status: 运行状态。
|
51
|
+
:type running_status: str
|
52
|
+
:param cpu_usage: CPU使用率。
|
53
|
+
:type cpu_usage: str
|
54
|
+
:param memory_usage: 内存使用率。
|
55
|
+
:type memory_usage: str
|
56
|
+
:param disk_usage: 硬盘使用率。
|
57
|
+
:type disk_usage: str
|
58
|
+
:param total_memory: 总内存。单位MB。
|
59
|
+
:type total_memory: str
|
60
|
+
:param available_memory: 可用内存。单位MB。
|
61
|
+
:type available_memory: str
|
62
|
+
:param total_hard_disk_space: 总硬盘空间。单位GB。
|
63
|
+
:type total_hard_disk_space: str
|
64
|
+
:param available_hard_disk_space: 可用硬盘空间。单位GB。
|
65
|
+
:type available_hard_disk_space: str
|
66
|
+
:param network_read: 网络读取速度。单位Byte/s。
|
67
|
+
:type network_read: str
|
68
|
+
:param network_write: 网络写入速度。单位Byte/s。
|
69
|
+
:type network_write: str
|
70
|
+
"""
|
71
|
+
|
72
|
+
|
73
|
+
|
74
|
+
self._running_status = None
|
75
|
+
self._cpu_usage = None
|
76
|
+
self._memory_usage = None
|
77
|
+
self._disk_usage = None
|
78
|
+
self._total_memory = None
|
79
|
+
self._available_memory = None
|
80
|
+
self._total_hard_disk_space = None
|
81
|
+
self._available_hard_disk_space = None
|
82
|
+
self._network_read = None
|
83
|
+
self._network_write = None
|
84
|
+
self.discriminator = None
|
85
|
+
|
86
|
+
if running_status is not None:
|
87
|
+
self.running_status = running_status
|
88
|
+
if cpu_usage is not None:
|
89
|
+
self.cpu_usage = cpu_usage
|
90
|
+
if memory_usage is not None:
|
91
|
+
self.memory_usage = memory_usage
|
92
|
+
if disk_usage is not None:
|
93
|
+
self.disk_usage = disk_usage
|
94
|
+
if total_memory is not None:
|
95
|
+
self.total_memory = total_memory
|
96
|
+
if available_memory is not None:
|
97
|
+
self.available_memory = available_memory
|
98
|
+
if total_hard_disk_space is not None:
|
99
|
+
self.total_hard_disk_space = total_hard_disk_space
|
100
|
+
if available_hard_disk_space is not None:
|
101
|
+
self.available_hard_disk_space = available_hard_disk_space
|
102
|
+
if network_read is not None:
|
103
|
+
self.network_read = network_read
|
104
|
+
if network_write is not None:
|
105
|
+
self.network_write = network_write
|
106
|
+
|
107
|
+
@property
|
108
|
+
def running_status(self):
|
109
|
+
"""Gets the running_status of this NodeDetail.
|
110
|
+
|
111
|
+
运行状态。
|
112
|
+
|
113
|
+
:return: The running_status of this NodeDetail.
|
114
|
+
:rtype: str
|
115
|
+
"""
|
116
|
+
return self._running_status
|
117
|
+
|
118
|
+
@running_status.setter
|
119
|
+
def running_status(self, running_status):
|
120
|
+
"""Sets the running_status of this NodeDetail.
|
121
|
+
|
122
|
+
运行状态。
|
123
|
+
|
124
|
+
:param running_status: The running_status of this NodeDetail.
|
125
|
+
:type running_status: str
|
126
|
+
"""
|
127
|
+
self._running_status = running_status
|
128
|
+
|
129
|
+
@property
|
130
|
+
def cpu_usage(self):
|
131
|
+
"""Gets the cpu_usage of this NodeDetail.
|
132
|
+
|
133
|
+
CPU使用率。
|
134
|
+
|
135
|
+
:return: The cpu_usage of this NodeDetail.
|
136
|
+
:rtype: str
|
137
|
+
"""
|
138
|
+
return self._cpu_usage
|
139
|
+
|
140
|
+
@cpu_usage.setter
|
141
|
+
def cpu_usage(self, cpu_usage):
|
142
|
+
"""Sets the cpu_usage of this NodeDetail.
|
143
|
+
|
144
|
+
CPU使用率。
|
145
|
+
|
146
|
+
:param cpu_usage: The cpu_usage of this NodeDetail.
|
147
|
+
:type cpu_usage: str
|
148
|
+
"""
|
149
|
+
self._cpu_usage = cpu_usage
|
150
|
+
|
151
|
+
@property
|
152
|
+
def memory_usage(self):
|
153
|
+
"""Gets the memory_usage of this NodeDetail.
|
154
|
+
|
155
|
+
内存使用率。
|
156
|
+
|
157
|
+
:return: The memory_usage of this NodeDetail.
|
158
|
+
:rtype: str
|
159
|
+
"""
|
160
|
+
return self._memory_usage
|
161
|
+
|
162
|
+
@memory_usage.setter
|
163
|
+
def memory_usage(self, memory_usage):
|
164
|
+
"""Sets the memory_usage of this NodeDetail.
|
165
|
+
|
166
|
+
内存使用率。
|
167
|
+
|
168
|
+
:param memory_usage: The memory_usage of this NodeDetail.
|
169
|
+
:type memory_usage: str
|
170
|
+
"""
|
171
|
+
self._memory_usage = memory_usage
|
172
|
+
|
173
|
+
@property
|
174
|
+
def disk_usage(self):
|
175
|
+
"""Gets the disk_usage of this NodeDetail.
|
176
|
+
|
177
|
+
硬盘使用率。
|
178
|
+
|
179
|
+
:return: The disk_usage of this NodeDetail.
|
180
|
+
:rtype: str
|
181
|
+
"""
|
182
|
+
return self._disk_usage
|
183
|
+
|
184
|
+
@disk_usage.setter
|
185
|
+
def disk_usage(self, disk_usage):
|
186
|
+
"""Sets the disk_usage of this NodeDetail.
|
187
|
+
|
188
|
+
硬盘使用率。
|
189
|
+
|
190
|
+
:param disk_usage: The disk_usage of this NodeDetail.
|
191
|
+
:type disk_usage: str
|
192
|
+
"""
|
193
|
+
self._disk_usage = disk_usage
|
194
|
+
|
195
|
+
@property
|
196
|
+
def total_memory(self):
|
197
|
+
"""Gets the total_memory of this NodeDetail.
|
198
|
+
|
199
|
+
总内存。单位MB。
|
200
|
+
|
201
|
+
:return: The total_memory of this NodeDetail.
|
202
|
+
:rtype: str
|
203
|
+
"""
|
204
|
+
return self._total_memory
|
205
|
+
|
206
|
+
@total_memory.setter
|
207
|
+
def total_memory(self, total_memory):
|
208
|
+
"""Sets the total_memory of this NodeDetail.
|
209
|
+
|
210
|
+
总内存。单位MB。
|
211
|
+
|
212
|
+
:param total_memory: The total_memory of this NodeDetail.
|
213
|
+
:type total_memory: str
|
214
|
+
"""
|
215
|
+
self._total_memory = total_memory
|
216
|
+
|
217
|
+
@property
|
218
|
+
def available_memory(self):
|
219
|
+
"""Gets the available_memory of this NodeDetail.
|
220
|
+
|
221
|
+
可用内存。单位MB。
|
222
|
+
|
223
|
+
:return: The available_memory of this NodeDetail.
|
224
|
+
:rtype: str
|
225
|
+
"""
|
226
|
+
return self._available_memory
|
227
|
+
|
228
|
+
@available_memory.setter
|
229
|
+
def available_memory(self, available_memory):
|
230
|
+
"""Sets the available_memory of this NodeDetail.
|
231
|
+
|
232
|
+
可用内存。单位MB。
|
233
|
+
|
234
|
+
:param available_memory: The available_memory of this NodeDetail.
|
235
|
+
:type available_memory: str
|
236
|
+
"""
|
237
|
+
self._available_memory = available_memory
|
238
|
+
|
239
|
+
@property
|
240
|
+
def total_hard_disk_space(self):
|
241
|
+
"""Gets the total_hard_disk_space of this NodeDetail.
|
242
|
+
|
243
|
+
总硬盘空间。单位GB。
|
244
|
+
|
245
|
+
:return: The total_hard_disk_space of this NodeDetail.
|
246
|
+
:rtype: str
|
247
|
+
"""
|
248
|
+
return self._total_hard_disk_space
|
249
|
+
|
250
|
+
@total_hard_disk_space.setter
|
251
|
+
def total_hard_disk_space(self, total_hard_disk_space):
|
252
|
+
"""Sets the total_hard_disk_space of this NodeDetail.
|
253
|
+
|
254
|
+
总硬盘空间。单位GB。
|
255
|
+
|
256
|
+
:param total_hard_disk_space: The total_hard_disk_space of this NodeDetail.
|
257
|
+
:type total_hard_disk_space: str
|
258
|
+
"""
|
259
|
+
self._total_hard_disk_space = total_hard_disk_space
|
260
|
+
|
261
|
+
@property
|
262
|
+
def available_hard_disk_space(self):
|
263
|
+
"""Gets the available_hard_disk_space of this NodeDetail.
|
264
|
+
|
265
|
+
可用硬盘空间。单位GB。
|
266
|
+
|
267
|
+
:return: The available_hard_disk_space of this NodeDetail.
|
268
|
+
:rtype: str
|
269
|
+
"""
|
270
|
+
return self._available_hard_disk_space
|
271
|
+
|
272
|
+
@available_hard_disk_space.setter
|
273
|
+
def available_hard_disk_space(self, available_hard_disk_space):
|
274
|
+
"""Sets the available_hard_disk_space of this NodeDetail.
|
275
|
+
|
276
|
+
可用硬盘空间。单位GB。
|
277
|
+
|
278
|
+
:param available_hard_disk_space: The available_hard_disk_space of this NodeDetail.
|
279
|
+
:type available_hard_disk_space: str
|
280
|
+
"""
|
281
|
+
self._available_hard_disk_space = available_hard_disk_space
|
282
|
+
|
283
|
+
@property
|
284
|
+
def network_read(self):
|
285
|
+
"""Gets the network_read of this NodeDetail.
|
286
|
+
|
287
|
+
网络读取速度。单位Byte/s。
|
288
|
+
|
289
|
+
:return: The network_read of this NodeDetail.
|
290
|
+
:rtype: str
|
291
|
+
"""
|
292
|
+
return self._network_read
|
293
|
+
|
294
|
+
@network_read.setter
|
295
|
+
def network_read(self, network_read):
|
296
|
+
"""Sets the network_read of this NodeDetail.
|
297
|
+
|
298
|
+
网络读取速度。单位Byte/s。
|
299
|
+
|
300
|
+
:param network_read: The network_read of this NodeDetail.
|
301
|
+
:type network_read: str
|
302
|
+
"""
|
303
|
+
self._network_read = network_read
|
304
|
+
|
305
|
+
@property
|
306
|
+
def network_write(self):
|
307
|
+
"""Gets the network_write of this NodeDetail.
|
308
|
+
|
309
|
+
网络写入速度。单位Byte/s。
|
310
|
+
|
311
|
+
:return: The network_write of this NodeDetail.
|
312
|
+
:rtype: str
|
313
|
+
"""
|
314
|
+
return self._network_write
|
315
|
+
|
316
|
+
@network_write.setter
|
317
|
+
def network_write(self, network_write):
|
318
|
+
"""Sets the network_write of this NodeDetail.
|
319
|
+
|
320
|
+
网络写入速度。单位Byte/s。
|
321
|
+
|
322
|
+
:param network_write: The network_write of this NodeDetail.
|
323
|
+
:type network_write: str
|
324
|
+
"""
|
325
|
+
self._network_write = network_write
|
326
|
+
|
327
|
+
def to_dict(self):
|
328
|
+
"""Returns the model properties as a dict"""
|
329
|
+
result = {}
|
330
|
+
|
331
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
332
|
+
value = getattr(self, attr)
|
333
|
+
if isinstance(value, list):
|
334
|
+
result[attr] = list(map(
|
335
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
336
|
+
value
|
337
|
+
))
|
338
|
+
elif hasattr(value, "to_dict"):
|
339
|
+
result[attr] = value.to_dict()
|
340
|
+
elif isinstance(value, dict):
|
341
|
+
result[attr] = dict(map(
|
342
|
+
lambda item: (item[0], item[1].to_dict())
|
343
|
+
if hasattr(item[1], "to_dict") else item,
|
344
|
+
value.items()
|
345
|
+
))
|
346
|
+
else:
|
347
|
+
if attr in self.sensitive_list:
|
348
|
+
result[attr] = "****"
|
349
|
+
else:
|
350
|
+
result[attr] = value
|
351
|
+
|
352
|
+
return result
|
353
|
+
|
354
|
+
def to_str(self):
|
355
|
+
"""Returns the string representation of the model"""
|
356
|
+
import simplejson as json
|
357
|
+
if six.PY2:
|
358
|
+
import sys
|
359
|
+
reload(sys)
|
360
|
+
sys.setdefaultencoding("utf-8")
|
361
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
362
|
+
|
363
|
+
def __repr__(self):
|
364
|
+
"""For `print`"""
|
365
|
+
return self.to_str()
|
366
|
+
|
367
|
+
def __eq__(self, other):
|
368
|
+
"""Returns true if both objects are equal"""
|
369
|
+
if not isinstance(other, NodeDetail):
|
370
|
+
return False
|
371
|
+
|
372
|
+
return self.__dict__ == other.__dict__
|
373
|
+
|
374
|
+
def __ne__(self, other):
|
375
|
+
"""Returns true if both objects are not equal"""
|
376
|
+
return not self == other
|
@@ -55,7 +55,7 @@ class NodeGroupV2:
|
|
55
55
|
:type root_volume: :class:`huaweicloudsdkmrs.v2.Volume`
|
56
56
|
:param data_volume:
|
57
57
|
:type data_volume: :class:`huaweicloudsdkmrs.v2.Volume`
|
58
|
-
:param data_volume_count: 节点数据磁盘存储数目,取值范围:0~
|
58
|
+
:param data_volume_count: 节点数据磁盘存储数目,取值范围:0~20。
|
59
59
|
:type data_volume_count: int
|
60
60
|
:param charge_info:
|
61
61
|
:type charge_info: :class:`huaweicloudsdkmrs.v2.ChargeInfo`
|
@@ -200,7 +200,7 @@ class NodeGroupV2:
|
|
200
200
|
def data_volume_count(self):
|
201
201
|
"""Gets the data_volume_count of this NodeGroupV2.
|
202
202
|
|
203
|
-
节点数据磁盘存储数目,取值范围:0~
|
203
|
+
节点数据磁盘存储数目,取值范围:0~20。
|
204
204
|
|
205
205
|
:return: The data_volume_count of this NodeGroupV2.
|
206
206
|
:rtype: int
|
@@ -211,7 +211,7 @@ class NodeGroupV2:
|
|
211
211
|
def data_volume_count(self, data_volume_count):
|
212
212
|
"""Sets the data_volume_count of this NodeGroupV2.
|
213
213
|
|
214
|
-
节点数据磁盘存储数目,取值范围:0~
|
214
|
+
节点数据磁盘存储数目,取值范围:0~20。
|
215
215
|
|
216
216
|
:param data_volume_count: The data_volume_count of this NodeGroupV2.
|
217
217
|
:type data_volume_count: int
|