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.
Files changed (27) hide show
  1. huaweicloudsdkmrs/v1/model/create_cluster_req_v11.py +3 -3
  2. huaweicloudsdkmrs/v1/model/create_scaling_policy_response.py +22 -18
  3. huaweicloudsdkmrs/v1/model/host_model.py +32 -3
  4. huaweicloudsdkmrs/v1/model/node_group_v11.py +3 -3
  5. huaweicloudsdkmrs/v1/model/task_node_group.py +3 -3
  6. huaweicloudsdkmrs/v1/model/task_node_info.py +3 -3
  7. huaweicloudsdkmrs/v1/region/mrs_region.py +6 -0
  8. huaweicloudsdkmrs/v2/__init__.py +7 -0
  9. huaweicloudsdkmrs/v2/model/__init__.py +7 -0
  10. huaweicloudsdkmrs/v2/model/cluster_node.py +396 -0
  11. huaweicloudsdkmrs/v2/model/component_info.py +521 -0
  12. huaweicloudsdkmrs/v2/model/list_nodes_request.py +375 -0
  13. huaweicloudsdkmrs/v2/model/list_nodes_response.py +145 -0
  14. huaweicloudsdkmrs/v2/model/node_detail.py +376 -0
  15. huaweicloudsdkmrs/v2/model/node_group_v2.py +3 -3
  16. huaweicloudsdkmrs/v2/model/server_info.py +340 -0
  17. huaweicloudsdkmrs/v2/model/show_mrs_flavors_request.py +32 -3
  18. huaweicloudsdkmrs/v2/model/tag.py +6 -6
  19. huaweicloudsdkmrs/v2/model/volume_info.py +170 -0
  20. huaweicloudsdkmrs/v2/mrs_async_client.py +85 -0
  21. huaweicloudsdkmrs/v2/mrs_client.py +85 -0
  22. huaweicloudsdkmrs/v2/region/mrs_region.py +6 -0
  23. {huaweicloudsdkmrs-3.1.86.dist-info → huaweicloudsdkmrs-3.1.132.dist-info}/METADATA +2 -2
  24. {huaweicloudsdkmrs-3.1.86.dist-info → huaweicloudsdkmrs-3.1.132.dist-info}/RECORD +27 -20
  25. {huaweicloudsdkmrs-3.1.86.dist-info → huaweicloudsdkmrs-3.1.132.dist-info}/WHEEL +1 -1
  26. {huaweicloudsdkmrs-3.1.86.dist-info → huaweicloudsdkmrs-3.1.132.dist-info}/LICENSE +0 -0
  27. {huaweicloudsdkmrs-3.1.86.dist-info → huaweicloudsdkmrs-3.1.132.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,340 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class ServerInfo:
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
+ 'server_id': 'str',
21
+ 'server_name': 'str',
22
+ 'server_type': 'str',
23
+ 'data_volumes': 'list[VolumeInfo]',
24
+ 'root_volume': 'VolumeInfo',
25
+ 'cpu_type': 'str',
26
+ 'cpu': 'str',
27
+ 'mem': 'str',
28
+ 'internal_ip': 'str'
29
+ }
30
+
31
+ attribute_map = {
32
+ 'server_id': 'server_id',
33
+ 'server_name': 'server_name',
34
+ 'server_type': 'server_type',
35
+ 'data_volumes': 'data_volumes',
36
+ 'root_volume': 'root_volume',
37
+ 'cpu_type': 'cpu_type',
38
+ 'cpu': 'cpu',
39
+ 'mem': 'mem',
40
+ 'internal_ip': 'internal_ip'
41
+ }
42
+
43
+ def __init__(self, server_id=None, server_name=None, server_type=None, data_volumes=None, root_volume=None, cpu_type=None, cpu=None, mem=None, internal_ip=None):
44
+ """ServerInfo
45
+
46
+ The model defined in huaweicloud sdk
47
+
48
+ :param server_id: 服务器ID。
49
+ :type server_id: str
50
+ :param server_name: 服务器名称。
51
+ :type server_name: str
52
+ :param server_type: ECS或者BMS。
53
+ :type server_type: str
54
+ :param data_volumes: 数据盘。
55
+ :type data_volumes: list[:class:`huaweicloudsdkmrs.v2.VolumeInfo`]
56
+ :param root_volume:
57
+ :type root_volume: :class:`huaweicloudsdkmrs.v2.VolumeInfo`
58
+ :param cpu_type: CPU类型。x86或者ARM。
59
+ :type cpu_type: str
60
+ :param cpu: CPU大小。
61
+ :type cpu: str
62
+ :param mem: 内存大小。
63
+ :type mem: str
64
+ :param internal_ip: 内部IP。
65
+ :type internal_ip: str
66
+ """
67
+
68
+
69
+
70
+ self._server_id = None
71
+ self._server_name = None
72
+ self._server_type = None
73
+ self._data_volumes = None
74
+ self._root_volume = None
75
+ self._cpu_type = None
76
+ self._cpu = None
77
+ self._mem = None
78
+ self._internal_ip = None
79
+ self.discriminator = None
80
+
81
+ self.server_id = server_id
82
+ self.server_name = server_name
83
+ self.server_type = server_type
84
+ if data_volumes is not None:
85
+ self.data_volumes = data_volumes
86
+ if root_volume is not None:
87
+ self.root_volume = root_volume
88
+ if cpu_type is not None:
89
+ self.cpu_type = cpu_type
90
+ if cpu is not None:
91
+ self.cpu = cpu
92
+ if mem is not None:
93
+ self.mem = mem
94
+ if internal_ip is not None:
95
+ self.internal_ip = internal_ip
96
+
97
+ @property
98
+ def server_id(self):
99
+ """Gets the server_id of this ServerInfo.
100
+
101
+ 服务器ID。
102
+
103
+ :return: The server_id of this ServerInfo.
104
+ :rtype: str
105
+ """
106
+ return self._server_id
107
+
108
+ @server_id.setter
109
+ def server_id(self, server_id):
110
+ """Sets the server_id of this ServerInfo.
111
+
112
+ 服务器ID。
113
+
114
+ :param server_id: The server_id of this ServerInfo.
115
+ :type server_id: str
116
+ """
117
+ self._server_id = server_id
118
+
119
+ @property
120
+ def server_name(self):
121
+ """Gets the server_name of this ServerInfo.
122
+
123
+ 服务器名称。
124
+
125
+ :return: The server_name of this ServerInfo.
126
+ :rtype: str
127
+ """
128
+ return self._server_name
129
+
130
+ @server_name.setter
131
+ def server_name(self, server_name):
132
+ """Sets the server_name of this ServerInfo.
133
+
134
+ 服务器名称。
135
+
136
+ :param server_name: The server_name of this ServerInfo.
137
+ :type server_name: str
138
+ """
139
+ self._server_name = server_name
140
+
141
+ @property
142
+ def server_type(self):
143
+ """Gets the server_type of this ServerInfo.
144
+
145
+ ECS或者BMS。
146
+
147
+ :return: The server_type of this ServerInfo.
148
+ :rtype: str
149
+ """
150
+ return self._server_type
151
+
152
+ @server_type.setter
153
+ def server_type(self, server_type):
154
+ """Sets the server_type of this ServerInfo.
155
+
156
+ ECS或者BMS。
157
+
158
+ :param server_type: The server_type of this ServerInfo.
159
+ :type server_type: str
160
+ """
161
+ self._server_type = server_type
162
+
163
+ @property
164
+ def data_volumes(self):
165
+ """Gets the data_volumes of this ServerInfo.
166
+
167
+ 数据盘。
168
+
169
+ :return: The data_volumes of this ServerInfo.
170
+ :rtype: list[:class:`huaweicloudsdkmrs.v2.VolumeInfo`]
171
+ """
172
+ return self._data_volumes
173
+
174
+ @data_volumes.setter
175
+ def data_volumes(self, data_volumes):
176
+ """Sets the data_volumes of this ServerInfo.
177
+
178
+ 数据盘。
179
+
180
+ :param data_volumes: The data_volumes of this ServerInfo.
181
+ :type data_volumes: list[:class:`huaweicloudsdkmrs.v2.VolumeInfo`]
182
+ """
183
+ self._data_volumes = data_volumes
184
+
185
+ @property
186
+ def root_volume(self):
187
+ """Gets the root_volume of this ServerInfo.
188
+
189
+ :return: The root_volume of this ServerInfo.
190
+ :rtype: :class:`huaweicloudsdkmrs.v2.VolumeInfo`
191
+ """
192
+ return self._root_volume
193
+
194
+ @root_volume.setter
195
+ def root_volume(self, root_volume):
196
+ """Sets the root_volume of this ServerInfo.
197
+
198
+ :param root_volume: The root_volume of this ServerInfo.
199
+ :type root_volume: :class:`huaweicloudsdkmrs.v2.VolumeInfo`
200
+ """
201
+ self._root_volume = root_volume
202
+
203
+ @property
204
+ def cpu_type(self):
205
+ """Gets the cpu_type of this ServerInfo.
206
+
207
+ CPU类型。x86或者ARM。
208
+
209
+ :return: The cpu_type of this ServerInfo.
210
+ :rtype: str
211
+ """
212
+ return self._cpu_type
213
+
214
+ @cpu_type.setter
215
+ def cpu_type(self, cpu_type):
216
+ """Sets the cpu_type of this ServerInfo.
217
+
218
+ CPU类型。x86或者ARM。
219
+
220
+ :param cpu_type: The cpu_type of this ServerInfo.
221
+ :type cpu_type: str
222
+ """
223
+ self._cpu_type = cpu_type
224
+
225
+ @property
226
+ def cpu(self):
227
+ """Gets the cpu of this ServerInfo.
228
+
229
+ CPU大小。
230
+
231
+ :return: The cpu of this ServerInfo.
232
+ :rtype: str
233
+ """
234
+ return self._cpu
235
+
236
+ @cpu.setter
237
+ def cpu(self, cpu):
238
+ """Sets the cpu of this ServerInfo.
239
+
240
+ CPU大小。
241
+
242
+ :param cpu: The cpu of this ServerInfo.
243
+ :type cpu: str
244
+ """
245
+ self._cpu = cpu
246
+
247
+ @property
248
+ def mem(self):
249
+ """Gets the mem of this ServerInfo.
250
+
251
+ 内存大小。
252
+
253
+ :return: The mem of this ServerInfo.
254
+ :rtype: str
255
+ """
256
+ return self._mem
257
+
258
+ @mem.setter
259
+ def mem(self, mem):
260
+ """Sets the mem of this ServerInfo.
261
+
262
+ 内存大小。
263
+
264
+ :param mem: The mem of this ServerInfo.
265
+ :type mem: str
266
+ """
267
+ self._mem = mem
268
+
269
+ @property
270
+ def internal_ip(self):
271
+ """Gets the internal_ip of this ServerInfo.
272
+
273
+ 内部IP。
274
+
275
+ :return: The internal_ip of this ServerInfo.
276
+ :rtype: str
277
+ """
278
+ return self._internal_ip
279
+
280
+ @internal_ip.setter
281
+ def internal_ip(self, internal_ip):
282
+ """Sets the internal_ip of this ServerInfo.
283
+
284
+ 内部IP。
285
+
286
+ :param internal_ip: The internal_ip of this ServerInfo.
287
+ :type internal_ip: str
288
+ """
289
+ self._internal_ip = internal_ip
290
+
291
+ def to_dict(self):
292
+ """Returns the model properties as a dict"""
293
+ result = {}
294
+
295
+ for attr, _ in six.iteritems(self.openapi_types):
296
+ value = getattr(self, attr)
297
+ if isinstance(value, list):
298
+ result[attr] = list(map(
299
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
300
+ value
301
+ ))
302
+ elif hasattr(value, "to_dict"):
303
+ result[attr] = value.to_dict()
304
+ elif isinstance(value, dict):
305
+ result[attr] = dict(map(
306
+ lambda item: (item[0], item[1].to_dict())
307
+ if hasattr(item[1], "to_dict") else item,
308
+ value.items()
309
+ ))
310
+ else:
311
+ if attr in self.sensitive_list:
312
+ result[attr] = "****"
313
+ else:
314
+ result[attr] = value
315
+
316
+ return result
317
+
318
+ def to_str(self):
319
+ """Returns the string representation of the model"""
320
+ import simplejson as json
321
+ if six.PY2:
322
+ import sys
323
+ reload(sys)
324
+ sys.setdefaultencoding("utf-8")
325
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
326
+
327
+ def __repr__(self):
328
+ """For `print`"""
329
+ return self.to_str()
330
+
331
+ def __eq__(self, other):
332
+ """Returns true if both objects are equal"""
333
+ if not isinstance(other, ServerInfo):
334
+ return False
335
+
336
+ return self.__dict__ == other.__dict__
337
+
338
+ def __ne__(self, other):
339
+ """Returns true if both objects are not equal"""
340
+ return not self == other
@@ -17,28 +17,35 @@ class ShowMrsFlavorsRequest:
17
17
  sensitive_list = []
18
18
 
19
19
  openapi_types = {
20
- 'version_name': 'str'
20
+ 'version_name': 'str',
21
+ 'availability_zone': 'str'
21
22
  }
22
23
 
23
24
  attribute_map = {
24
- 'version_name': 'version_name'
25
+ 'version_name': 'version_name',
26
+ 'availability_zone': 'availability_zone'
25
27
  }
26
28
 
27
- def __init__(self, version_name=None):
29
+ def __init__(self, version_name=None, availability_zone=None):
28
30
  """ShowMrsFlavorsRequest
29
31
 
30
32
  The model defined in huaweicloud sdk
31
33
 
32
34
  :param version_name: MRS集群版本,不支持多版本查询 ,例如 MRS%203.1.5.1
33
35
  :type version_name: str
36
+ :param availability_zone: 可用区id,用于查询指定可用区的可用规格
37
+ :type availability_zone: str
34
38
  """
35
39
 
36
40
 
37
41
 
38
42
  self._version_name = None
43
+ self._availability_zone = None
39
44
  self.discriminator = None
40
45
 
41
46
  self.version_name = version_name
47
+ if availability_zone is not None:
48
+ self.availability_zone = availability_zone
42
49
 
43
50
  @property
44
51
  def version_name(self):
@@ -62,6 +69,28 @@ class ShowMrsFlavorsRequest:
62
69
  """
63
70
  self._version_name = version_name
64
71
 
72
+ @property
73
+ def availability_zone(self):
74
+ """Gets the availability_zone of this ShowMrsFlavorsRequest.
75
+
76
+ 可用区id,用于查询指定可用区的可用规格
77
+
78
+ :return: The availability_zone of this ShowMrsFlavorsRequest.
79
+ :rtype: str
80
+ """
81
+ return self._availability_zone
82
+
83
+ @availability_zone.setter
84
+ def availability_zone(self, availability_zone):
85
+ """Sets the availability_zone of this ShowMrsFlavorsRequest.
86
+
87
+ 可用区id,用于查询指定可用区的可用规格
88
+
89
+ :param availability_zone: The availability_zone of this ShowMrsFlavorsRequest.
90
+ :type availability_zone: str
91
+ """
92
+ self._availability_zone = availability_zone
93
+
65
94
  def to_dict(self):
66
95
  """Returns the model properties as a dict"""
67
96
  result = {}
@@ -31,9 +31,9 @@ class Tag:
31
31
 
32
32
  The model defined in huaweicloud sdk
33
33
 
34
- :param key: 键。 - 最大长度36个unicode字符,不能为空字符串。 - 标签的key值不能包含非打印字符ASCII(0-31),“=”,“*”,“<”,“>”,“\\”,“,”,“|”,“/”,且首尾字符不能为空格。 - 同一资源的key值不能重复。
34
+ :param key: 标签键。
35
35
  :type key: str
36
- :param value: 值。 - 最大长度43个unicode字符,可以为空字符串。 - 标签的value值不能包含非打印字符ASCII(0-31),“=”,“*”,“<”,“>”,“\\”,“,”,“|”,“/”,且首尾字符不能为空格。
36
+ :param value: 标签值。
37
37
  :type value: str
38
38
  """
39
39
 
@@ -50,7 +50,7 @@ class Tag:
50
50
  def key(self):
51
51
  """Gets the key of this Tag.
52
52
 
53
- 键。 - 最大长度36个unicode字符,不能为空字符串。 - 标签的key值不能包含非打印字符ASCII(0-31),“=”,“*”,“<”,“>”,“\\”,“,”,“|”,“/”,且首尾字符不能为空格。 - 同一资源的key值不能重复。
53
+ 标签键。
54
54
 
55
55
  :return: The key of this Tag.
56
56
  :rtype: str
@@ -61,7 +61,7 @@ class Tag:
61
61
  def key(self, key):
62
62
  """Sets the key of this Tag.
63
63
 
64
- 键。 - 最大长度36个unicode字符,不能为空字符串。 - 标签的key值不能包含非打印字符ASCII(0-31),“=”,“*”,“<”,“>”,“\\”,“,”,“|”,“/”,且首尾字符不能为空格。 - 同一资源的key值不能重复。
64
+ 标签键。
65
65
 
66
66
  :param key: The key of this Tag.
67
67
  :type key: str
@@ -72,7 +72,7 @@ class Tag:
72
72
  def value(self):
73
73
  """Gets the value of this Tag.
74
74
 
75
- 值。 - 最大长度43个unicode字符,可以为空字符串。 - 标签的value值不能包含非打印字符ASCII(0-31),“=”,“*”,“<”,“>”,“\\”,“,”,“|”,“/”,且首尾字符不能为空格。
75
+ 标签值。
76
76
 
77
77
  :return: The value of this Tag.
78
78
  :rtype: str
@@ -83,7 +83,7 @@ class Tag:
83
83
  def value(self, value):
84
84
  """Sets the value of this Tag.
85
85
 
86
- 值。 - 最大长度43个unicode字符,可以为空字符串。 - 标签的value值不能包含非打印字符ASCII(0-31),“=”,“*”,“<”,“>”,“\\”,“,”,“|”,“/”,且首尾字符不能为空格。
86
+ 标签值。
87
87
 
88
88
  :param value: The value of this Tag.
89
89
  :type value: str
@@ -0,0 +1,170 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class VolumeInfo:
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
+ 'size': 'int',
22
+ 'count': 'int'
23
+ }
24
+
25
+ attribute_map = {
26
+ 'type': 'type',
27
+ 'size': 'size',
28
+ 'count': 'count'
29
+ }
30
+
31
+ def __init__(self, type=None, size=None, count=None):
32
+ """VolumeInfo
33
+
34
+ The model defined in huaweicloud sdk
35
+
36
+ :param type: 磁盘类型。 - SATA:普通IO磁盘类型。 - SAS:高IO磁盘类型。 - SSD:超高IO磁盘类型。 - GPSSD:通用型SSD磁盘类型
37
+ :type type: str
38
+ :param size: 磁盘大小。单位为GB。
39
+ :type size: int
40
+ :param count: 磁盘数量。
41
+ :type count: int
42
+ """
43
+
44
+
45
+
46
+ self._type = None
47
+ self._size = None
48
+ self._count = None
49
+ self.discriminator = None
50
+
51
+ self.type = type
52
+ self.size = size
53
+ self.count = count
54
+
55
+ @property
56
+ def type(self):
57
+ """Gets the type of this VolumeInfo.
58
+
59
+ 磁盘类型。 - SATA:普通IO磁盘类型。 - SAS:高IO磁盘类型。 - SSD:超高IO磁盘类型。 - GPSSD:通用型SSD磁盘类型
60
+
61
+ :return: The type of this VolumeInfo.
62
+ :rtype: str
63
+ """
64
+ return self._type
65
+
66
+ @type.setter
67
+ def type(self, type):
68
+ """Sets the type of this VolumeInfo.
69
+
70
+ 磁盘类型。 - SATA:普通IO磁盘类型。 - SAS:高IO磁盘类型。 - SSD:超高IO磁盘类型。 - GPSSD:通用型SSD磁盘类型
71
+
72
+ :param type: The type of this VolumeInfo.
73
+ :type type: str
74
+ """
75
+ self._type = type
76
+
77
+ @property
78
+ def size(self):
79
+ """Gets the size of this VolumeInfo.
80
+
81
+ 磁盘大小。单位为GB。
82
+
83
+ :return: The size of this VolumeInfo.
84
+ :rtype: int
85
+ """
86
+ return self._size
87
+
88
+ @size.setter
89
+ def size(self, size):
90
+ """Sets the size of this VolumeInfo.
91
+
92
+ 磁盘大小。单位为GB。
93
+
94
+ :param size: The size of this VolumeInfo.
95
+ :type size: int
96
+ """
97
+ self._size = size
98
+
99
+ @property
100
+ def count(self):
101
+ """Gets the count of this VolumeInfo.
102
+
103
+ 磁盘数量。
104
+
105
+ :return: The count of this VolumeInfo.
106
+ :rtype: int
107
+ """
108
+ return self._count
109
+
110
+ @count.setter
111
+ def count(self, count):
112
+ """Sets the count of this VolumeInfo.
113
+
114
+ 磁盘数量。
115
+
116
+ :param count: The count of this VolumeInfo.
117
+ :type count: int
118
+ """
119
+ self._count = count
120
+
121
+ def to_dict(self):
122
+ """Returns the model properties as a dict"""
123
+ result = {}
124
+
125
+ for attr, _ in six.iteritems(self.openapi_types):
126
+ value = getattr(self, attr)
127
+ if isinstance(value, list):
128
+ result[attr] = list(map(
129
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
130
+ value
131
+ ))
132
+ elif hasattr(value, "to_dict"):
133
+ result[attr] = value.to_dict()
134
+ elif isinstance(value, dict):
135
+ result[attr] = dict(map(
136
+ lambda item: (item[0], item[1].to_dict())
137
+ if hasattr(item[1], "to_dict") else item,
138
+ value.items()
139
+ ))
140
+ else:
141
+ if attr in self.sensitive_list:
142
+ result[attr] = "****"
143
+ else:
144
+ result[attr] = value
145
+
146
+ return result
147
+
148
+ def to_str(self):
149
+ """Returns the string representation of the model"""
150
+ import simplejson as json
151
+ if six.PY2:
152
+ import sys
153
+ reload(sys)
154
+ sys.setdefaultencoding("utf-8")
155
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
156
+
157
+ def __repr__(self):
158
+ """For `print`"""
159
+ return self.to_str()
160
+
161
+ def __eq__(self, other):
162
+ """Returns true if both objects are equal"""
163
+ if not isinstance(other, VolumeInfo):
164
+ return False
165
+
166
+ return self.__dict__ == other.__dict__
167
+
168
+ def __ne__(self, other):
169
+ """Returns true if both objects are not equal"""
170
+ return not self == other