huaweicloudsdkmrs 3.1.70__py2.py3-none-any.whl → 3.1.72__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/__init__.py +9 -0
- huaweicloudsdkmrs/v1/model/__init__.py +9 -0
- huaweicloudsdkmrs/v1/model/component_external_datasource.py +144 -0
- huaweicloudsdkmrs/v1/model/flavor_lists.py +173 -0
- huaweicloudsdkmrs/v1/model/node_constraint.py +376 -0
- huaweicloudsdkmrs/v1/model/node_constraints.py +315 -0
- huaweicloudsdkmrs/v1/model/role_deploy_meta.py +637 -0
- huaweicloudsdkmrs/v1/model/show_mrs_version_metadata_request.py +143 -0
- huaweicloudsdkmrs/v1/model/show_mrs_version_metadata_response.py +456 -0
- huaweicloudsdkmrs/v1/model/version_component.py +434 -0
- huaweicloudsdkmrs/v1/model/version_constraint.py +169 -0
- huaweicloudsdkmrs/v1/mrs_async_client.py +75 -0
- huaweicloudsdkmrs/v1/mrs_client.py +75 -0
- huaweicloudsdkmrs/v1/region/mrs_region.py +3 -0
- huaweicloudsdkmrs/v2/__init__.py +15 -0
- huaweicloudsdkmrs/v2/model/__init__.py +15 -0
- huaweicloudsdkmrs/v2/model/auto_scaling_policy_delete_req.py +142 -0
- huaweicloudsdkmrs/v2/model/auto_scaling_policy_info.py +257 -0
- huaweicloudsdkmrs/v2/model/auto_scaling_policy_v2.py +11 -12
- huaweicloudsdkmrs/v2/model/create_auto_scaling_policy_request.py +139 -0
- huaweicloudsdkmrs/v2/model/create_auto_scaling_policy_response.py +85 -0
- huaweicloudsdkmrs/v2/model/delete_auto_scaling_policy_request.py +139 -0
- huaweicloudsdkmrs/v2/model/delete_auto_scaling_policy_response.py +85 -0
- huaweicloudsdkmrs/v2/model/modify_default_tags_request_body.py +114 -0
- huaweicloudsdkmrs/v2/model/show_tag_quota_request.py +143 -0
- huaweicloudsdkmrs/v2/model/show_tag_quota_response.py +145 -0
- huaweicloudsdkmrs/v2/model/show_tag_status_request.py +114 -0
- huaweicloudsdkmrs/v2/model/show_tag_status_response.py +145 -0
- huaweicloudsdkmrs/v2/model/switch_cluster_tags_request.py +139 -0
- huaweicloudsdkmrs/v2/model/switch_cluster_tags_response.py +85 -0
- huaweicloudsdkmrs/v2/model/update_auto_scaling_policy_request.py +139 -0
- huaweicloudsdkmrs/v2/model/update_auto_scaling_policy_response.py +85 -0
- huaweicloudsdkmrs/v2/mrs_async_client.py +400 -0
- huaweicloudsdkmrs/v2/mrs_client.py +400 -0
- huaweicloudsdkmrs/v2/region/mrs_region.py +3 -0
- {huaweicloudsdkmrs-3.1.70.dist-info → huaweicloudsdkmrs-3.1.72.dist-info}/METADATA +2 -2
- {huaweicloudsdkmrs-3.1.70.dist-info → huaweicloudsdkmrs-3.1.72.dist-info}/RECORD +40 -16
- {huaweicloudsdkmrs-3.1.70.dist-info → huaweicloudsdkmrs-3.1.72.dist-info}/LICENSE +0 -0
- {huaweicloudsdkmrs-3.1.70.dist-info → huaweicloudsdkmrs-3.1.72.dist-info}/WHEEL +0 -0
- {huaweicloudsdkmrs-3.1.70.dist-info → huaweicloudsdkmrs-3.1.72.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 NodeConstraint:
|
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
|
+
'other': 'dict(str, object)',
|
21
|
+
'min_node_num': 'int',
|
22
|
+
'max_node_num': 'int',
|
23
|
+
'min_core_num': 'dict(str, int)',
|
24
|
+
'min_mem_size': 'dict(str, int)',
|
25
|
+
'min_disk_size': 'int',
|
26
|
+
'max_node_group_num': 'int',
|
27
|
+
'min_data_volume_total_size': 'dict(str, int)',
|
28
|
+
'disk_type_constraint': 'dict(str, str)',
|
29
|
+
'min_root_disk_size': 'int'
|
30
|
+
}
|
31
|
+
|
32
|
+
attribute_map = {
|
33
|
+
'other': 'other',
|
34
|
+
'min_node_num': 'min_node_num',
|
35
|
+
'max_node_num': 'max_node_num',
|
36
|
+
'min_core_num': 'min_core_num',
|
37
|
+
'min_mem_size': 'min_mem_size',
|
38
|
+
'min_disk_size': 'min_disk_size',
|
39
|
+
'max_node_group_num': 'max_node_group_num',
|
40
|
+
'min_data_volume_total_size': 'min_data_volume_total_size',
|
41
|
+
'disk_type_constraint': 'disk_type_constraint',
|
42
|
+
'min_root_disk_size': 'min_root_disk_size'
|
43
|
+
}
|
44
|
+
|
45
|
+
def __init__(self, other=None, min_node_num=None, max_node_num=None, min_core_num=None, min_mem_size=None, min_disk_size=None, max_node_group_num=None, min_data_volume_total_size=None, disk_type_constraint=None, min_root_disk_size=None):
|
46
|
+
"""NodeConstraint
|
47
|
+
|
48
|
+
The model defined in huaweicloud sdk
|
49
|
+
|
50
|
+
:param other: 其他限制
|
51
|
+
:type other: dict(str, object)
|
52
|
+
:param min_node_num: 最少节点数
|
53
|
+
:type min_node_num: int
|
54
|
+
:param max_node_num: 最多节点数
|
55
|
+
:type max_node_num: int
|
56
|
+
:param min_core_num: 最少核心数
|
57
|
+
:type min_core_num: dict(str, int)
|
58
|
+
:param min_mem_size: 最小内存容量
|
59
|
+
:type min_mem_size: dict(str, int)
|
60
|
+
:param min_disk_size: 最小磁盘容量
|
61
|
+
:type min_disk_size: int
|
62
|
+
:param max_node_group_num: 最大节点组数
|
63
|
+
:type max_node_group_num: int
|
64
|
+
:param min_data_volume_total_size: 最小数据卷容量
|
65
|
+
:type min_data_volume_total_size: dict(str, int)
|
66
|
+
:param disk_type_constraint: 磁盘类型限制,包含当前节点组所支持的磁盘类型
|
67
|
+
:type disk_type_constraint: dict(str, str)
|
68
|
+
:param min_root_disk_size: 最小系统磁盘大小
|
69
|
+
:type min_root_disk_size: int
|
70
|
+
"""
|
71
|
+
|
72
|
+
|
73
|
+
|
74
|
+
self._other = None
|
75
|
+
self._min_node_num = None
|
76
|
+
self._max_node_num = None
|
77
|
+
self._min_core_num = None
|
78
|
+
self._min_mem_size = None
|
79
|
+
self._min_disk_size = None
|
80
|
+
self._max_node_group_num = None
|
81
|
+
self._min_data_volume_total_size = None
|
82
|
+
self._disk_type_constraint = None
|
83
|
+
self._min_root_disk_size = None
|
84
|
+
self.discriminator = None
|
85
|
+
|
86
|
+
if other is not None:
|
87
|
+
self.other = other
|
88
|
+
if min_node_num is not None:
|
89
|
+
self.min_node_num = min_node_num
|
90
|
+
if max_node_num is not None:
|
91
|
+
self.max_node_num = max_node_num
|
92
|
+
if min_core_num is not None:
|
93
|
+
self.min_core_num = min_core_num
|
94
|
+
if min_mem_size is not None:
|
95
|
+
self.min_mem_size = min_mem_size
|
96
|
+
if min_disk_size is not None:
|
97
|
+
self.min_disk_size = min_disk_size
|
98
|
+
if max_node_group_num is not None:
|
99
|
+
self.max_node_group_num = max_node_group_num
|
100
|
+
if min_data_volume_total_size is not None:
|
101
|
+
self.min_data_volume_total_size = min_data_volume_total_size
|
102
|
+
if disk_type_constraint is not None:
|
103
|
+
self.disk_type_constraint = disk_type_constraint
|
104
|
+
if min_root_disk_size is not None:
|
105
|
+
self.min_root_disk_size = min_root_disk_size
|
106
|
+
|
107
|
+
@property
|
108
|
+
def other(self):
|
109
|
+
"""Gets the other of this NodeConstraint.
|
110
|
+
|
111
|
+
其他限制
|
112
|
+
|
113
|
+
:return: The other of this NodeConstraint.
|
114
|
+
:rtype: dict(str, object)
|
115
|
+
"""
|
116
|
+
return self._other
|
117
|
+
|
118
|
+
@other.setter
|
119
|
+
def other(self, other):
|
120
|
+
"""Sets the other of this NodeConstraint.
|
121
|
+
|
122
|
+
其他限制
|
123
|
+
|
124
|
+
:param other: The other of this NodeConstraint.
|
125
|
+
:type other: dict(str, object)
|
126
|
+
"""
|
127
|
+
self._other = other
|
128
|
+
|
129
|
+
@property
|
130
|
+
def min_node_num(self):
|
131
|
+
"""Gets the min_node_num of this NodeConstraint.
|
132
|
+
|
133
|
+
最少节点数
|
134
|
+
|
135
|
+
:return: The min_node_num of this NodeConstraint.
|
136
|
+
:rtype: int
|
137
|
+
"""
|
138
|
+
return self._min_node_num
|
139
|
+
|
140
|
+
@min_node_num.setter
|
141
|
+
def min_node_num(self, min_node_num):
|
142
|
+
"""Sets the min_node_num of this NodeConstraint.
|
143
|
+
|
144
|
+
最少节点数
|
145
|
+
|
146
|
+
:param min_node_num: The min_node_num of this NodeConstraint.
|
147
|
+
:type min_node_num: int
|
148
|
+
"""
|
149
|
+
self._min_node_num = min_node_num
|
150
|
+
|
151
|
+
@property
|
152
|
+
def max_node_num(self):
|
153
|
+
"""Gets the max_node_num of this NodeConstraint.
|
154
|
+
|
155
|
+
最多节点数
|
156
|
+
|
157
|
+
:return: The max_node_num of this NodeConstraint.
|
158
|
+
:rtype: int
|
159
|
+
"""
|
160
|
+
return self._max_node_num
|
161
|
+
|
162
|
+
@max_node_num.setter
|
163
|
+
def max_node_num(self, max_node_num):
|
164
|
+
"""Sets the max_node_num of this NodeConstraint.
|
165
|
+
|
166
|
+
最多节点数
|
167
|
+
|
168
|
+
:param max_node_num: The max_node_num of this NodeConstraint.
|
169
|
+
:type max_node_num: int
|
170
|
+
"""
|
171
|
+
self._max_node_num = max_node_num
|
172
|
+
|
173
|
+
@property
|
174
|
+
def min_core_num(self):
|
175
|
+
"""Gets the min_core_num of this NodeConstraint.
|
176
|
+
|
177
|
+
最少核心数
|
178
|
+
|
179
|
+
:return: The min_core_num of this NodeConstraint.
|
180
|
+
:rtype: dict(str, int)
|
181
|
+
"""
|
182
|
+
return self._min_core_num
|
183
|
+
|
184
|
+
@min_core_num.setter
|
185
|
+
def min_core_num(self, min_core_num):
|
186
|
+
"""Sets the min_core_num of this NodeConstraint.
|
187
|
+
|
188
|
+
最少核心数
|
189
|
+
|
190
|
+
:param min_core_num: The min_core_num of this NodeConstraint.
|
191
|
+
:type min_core_num: dict(str, int)
|
192
|
+
"""
|
193
|
+
self._min_core_num = min_core_num
|
194
|
+
|
195
|
+
@property
|
196
|
+
def min_mem_size(self):
|
197
|
+
"""Gets the min_mem_size of this NodeConstraint.
|
198
|
+
|
199
|
+
最小内存容量
|
200
|
+
|
201
|
+
:return: The min_mem_size of this NodeConstraint.
|
202
|
+
:rtype: dict(str, int)
|
203
|
+
"""
|
204
|
+
return self._min_mem_size
|
205
|
+
|
206
|
+
@min_mem_size.setter
|
207
|
+
def min_mem_size(self, min_mem_size):
|
208
|
+
"""Sets the min_mem_size of this NodeConstraint.
|
209
|
+
|
210
|
+
最小内存容量
|
211
|
+
|
212
|
+
:param min_mem_size: The min_mem_size of this NodeConstraint.
|
213
|
+
:type min_mem_size: dict(str, int)
|
214
|
+
"""
|
215
|
+
self._min_mem_size = min_mem_size
|
216
|
+
|
217
|
+
@property
|
218
|
+
def min_disk_size(self):
|
219
|
+
"""Gets the min_disk_size of this NodeConstraint.
|
220
|
+
|
221
|
+
最小磁盘容量
|
222
|
+
|
223
|
+
:return: The min_disk_size of this NodeConstraint.
|
224
|
+
:rtype: int
|
225
|
+
"""
|
226
|
+
return self._min_disk_size
|
227
|
+
|
228
|
+
@min_disk_size.setter
|
229
|
+
def min_disk_size(self, min_disk_size):
|
230
|
+
"""Sets the min_disk_size of this NodeConstraint.
|
231
|
+
|
232
|
+
最小磁盘容量
|
233
|
+
|
234
|
+
:param min_disk_size: The min_disk_size of this NodeConstraint.
|
235
|
+
:type min_disk_size: int
|
236
|
+
"""
|
237
|
+
self._min_disk_size = min_disk_size
|
238
|
+
|
239
|
+
@property
|
240
|
+
def max_node_group_num(self):
|
241
|
+
"""Gets the max_node_group_num of this NodeConstraint.
|
242
|
+
|
243
|
+
最大节点组数
|
244
|
+
|
245
|
+
:return: The max_node_group_num of this NodeConstraint.
|
246
|
+
:rtype: int
|
247
|
+
"""
|
248
|
+
return self._max_node_group_num
|
249
|
+
|
250
|
+
@max_node_group_num.setter
|
251
|
+
def max_node_group_num(self, max_node_group_num):
|
252
|
+
"""Sets the max_node_group_num of this NodeConstraint.
|
253
|
+
|
254
|
+
最大节点组数
|
255
|
+
|
256
|
+
:param max_node_group_num: The max_node_group_num of this NodeConstraint.
|
257
|
+
:type max_node_group_num: int
|
258
|
+
"""
|
259
|
+
self._max_node_group_num = max_node_group_num
|
260
|
+
|
261
|
+
@property
|
262
|
+
def min_data_volume_total_size(self):
|
263
|
+
"""Gets the min_data_volume_total_size of this NodeConstraint.
|
264
|
+
|
265
|
+
最小数据卷容量
|
266
|
+
|
267
|
+
:return: The min_data_volume_total_size of this NodeConstraint.
|
268
|
+
:rtype: dict(str, int)
|
269
|
+
"""
|
270
|
+
return self._min_data_volume_total_size
|
271
|
+
|
272
|
+
@min_data_volume_total_size.setter
|
273
|
+
def min_data_volume_total_size(self, min_data_volume_total_size):
|
274
|
+
"""Sets the min_data_volume_total_size of this NodeConstraint.
|
275
|
+
|
276
|
+
最小数据卷容量
|
277
|
+
|
278
|
+
:param min_data_volume_total_size: The min_data_volume_total_size of this NodeConstraint.
|
279
|
+
:type min_data_volume_total_size: dict(str, int)
|
280
|
+
"""
|
281
|
+
self._min_data_volume_total_size = min_data_volume_total_size
|
282
|
+
|
283
|
+
@property
|
284
|
+
def disk_type_constraint(self):
|
285
|
+
"""Gets the disk_type_constraint of this NodeConstraint.
|
286
|
+
|
287
|
+
磁盘类型限制,包含当前节点组所支持的磁盘类型
|
288
|
+
|
289
|
+
:return: The disk_type_constraint of this NodeConstraint.
|
290
|
+
:rtype: dict(str, str)
|
291
|
+
"""
|
292
|
+
return self._disk_type_constraint
|
293
|
+
|
294
|
+
@disk_type_constraint.setter
|
295
|
+
def disk_type_constraint(self, disk_type_constraint):
|
296
|
+
"""Sets the disk_type_constraint of this NodeConstraint.
|
297
|
+
|
298
|
+
磁盘类型限制,包含当前节点组所支持的磁盘类型
|
299
|
+
|
300
|
+
:param disk_type_constraint: The disk_type_constraint of this NodeConstraint.
|
301
|
+
:type disk_type_constraint: dict(str, str)
|
302
|
+
"""
|
303
|
+
self._disk_type_constraint = disk_type_constraint
|
304
|
+
|
305
|
+
@property
|
306
|
+
def min_root_disk_size(self):
|
307
|
+
"""Gets the min_root_disk_size of this NodeConstraint.
|
308
|
+
|
309
|
+
最小系统磁盘大小
|
310
|
+
|
311
|
+
:return: The min_root_disk_size of this NodeConstraint.
|
312
|
+
:rtype: int
|
313
|
+
"""
|
314
|
+
return self._min_root_disk_size
|
315
|
+
|
316
|
+
@min_root_disk_size.setter
|
317
|
+
def min_root_disk_size(self, min_root_disk_size):
|
318
|
+
"""Sets the min_root_disk_size of this NodeConstraint.
|
319
|
+
|
320
|
+
最小系统磁盘大小
|
321
|
+
|
322
|
+
:param min_root_disk_size: The min_root_disk_size of this NodeConstraint.
|
323
|
+
:type min_root_disk_size: int
|
324
|
+
"""
|
325
|
+
self._min_root_disk_size = min_root_disk_size
|
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, NodeConstraint):
|
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
|
@@ -0,0 +1,315 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class NodeConstraints:
|
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
|
+
'other': 'dict(str, object)',
|
21
|
+
'master': 'NodeConstraint',
|
22
|
+
'core': 'NodeConstraint',
|
23
|
+
'task': 'NodeConstraint',
|
24
|
+
'core_separate': 'NodeConstraint',
|
25
|
+
'core_combine': 'NodeConstraint',
|
26
|
+
'task_separate': 'NodeConstraint',
|
27
|
+
'task_combine': 'NodeConstraint',
|
28
|
+
'node_group_task': 'NodeConstraint'
|
29
|
+
}
|
30
|
+
|
31
|
+
attribute_map = {
|
32
|
+
'other': 'other',
|
33
|
+
'master': 'master',
|
34
|
+
'core': 'core',
|
35
|
+
'task': 'task',
|
36
|
+
'core_separate': 'core_separate',
|
37
|
+
'core_combine': 'core_combine',
|
38
|
+
'task_separate': 'task_separate',
|
39
|
+
'task_combine': 'task_combine',
|
40
|
+
'node_group_task': 'node_group_task'
|
41
|
+
}
|
42
|
+
|
43
|
+
def __init__(self, other=None, master=None, core=None, task=None, core_separate=None, core_combine=None, task_separate=None, task_combine=None, node_group_task=None):
|
44
|
+
"""NodeConstraints
|
45
|
+
|
46
|
+
The model defined in huaweicloud sdk
|
47
|
+
|
48
|
+
:param other: 其他节点限制
|
49
|
+
:type other: dict(str, object)
|
50
|
+
:param master:
|
51
|
+
:type master: :class:`huaweicloudsdkmrs.v1.NodeConstraint`
|
52
|
+
:param core:
|
53
|
+
:type core: :class:`huaweicloudsdkmrs.v1.NodeConstraint`
|
54
|
+
:param task:
|
55
|
+
:type task: :class:`huaweicloudsdkmrs.v1.NodeConstraint`
|
56
|
+
:param core_separate:
|
57
|
+
:type core_separate: :class:`huaweicloudsdkmrs.v1.NodeConstraint`
|
58
|
+
:param core_combine:
|
59
|
+
:type core_combine: :class:`huaweicloudsdkmrs.v1.NodeConstraint`
|
60
|
+
:param task_separate:
|
61
|
+
:type task_separate: :class:`huaweicloudsdkmrs.v1.NodeConstraint`
|
62
|
+
:param task_combine:
|
63
|
+
:type task_combine: :class:`huaweicloudsdkmrs.v1.NodeConstraint`
|
64
|
+
:param node_group_task:
|
65
|
+
:type node_group_task: :class:`huaweicloudsdkmrs.v1.NodeConstraint`
|
66
|
+
"""
|
67
|
+
|
68
|
+
|
69
|
+
|
70
|
+
self._other = None
|
71
|
+
self._master = None
|
72
|
+
self._core = None
|
73
|
+
self._task = None
|
74
|
+
self._core_separate = None
|
75
|
+
self._core_combine = None
|
76
|
+
self._task_separate = None
|
77
|
+
self._task_combine = None
|
78
|
+
self._node_group_task = None
|
79
|
+
self.discriminator = None
|
80
|
+
|
81
|
+
if other is not None:
|
82
|
+
self.other = other
|
83
|
+
if master is not None:
|
84
|
+
self.master = master
|
85
|
+
if core is not None:
|
86
|
+
self.core = core
|
87
|
+
if task is not None:
|
88
|
+
self.task = task
|
89
|
+
if core_separate is not None:
|
90
|
+
self.core_separate = core_separate
|
91
|
+
if core_combine is not None:
|
92
|
+
self.core_combine = core_combine
|
93
|
+
if task_separate is not None:
|
94
|
+
self.task_separate = task_separate
|
95
|
+
if task_combine is not None:
|
96
|
+
self.task_combine = task_combine
|
97
|
+
if node_group_task is not None:
|
98
|
+
self.node_group_task = node_group_task
|
99
|
+
|
100
|
+
@property
|
101
|
+
def other(self):
|
102
|
+
"""Gets the other of this NodeConstraints.
|
103
|
+
|
104
|
+
其他节点限制
|
105
|
+
|
106
|
+
:return: The other of this NodeConstraints.
|
107
|
+
:rtype: dict(str, object)
|
108
|
+
"""
|
109
|
+
return self._other
|
110
|
+
|
111
|
+
@other.setter
|
112
|
+
def other(self, other):
|
113
|
+
"""Sets the other of this NodeConstraints.
|
114
|
+
|
115
|
+
其他节点限制
|
116
|
+
|
117
|
+
:param other: The other of this NodeConstraints.
|
118
|
+
:type other: dict(str, object)
|
119
|
+
"""
|
120
|
+
self._other = other
|
121
|
+
|
122
|
+
@property
|
123
|
+
def master(self):
|
124
|
+
"""Gets the master of this NodeConstraints.
|
125
|
+
|
126
|
+
:return: The master of this NodeConstraints.
|
127
|
+
:rtype: :class:`huaweicloudsdkmrs.v1.NodeConstraint`
|
128
|
+
"""
|
129
|
+
return self._master
|
130
|
+
|
131
|
+
@master.setter
|
132
|
+
def master(self, master):
|
133
|
+
"""Sets the master of this NodeConstraints.
|
134
|
+
|
135
|
+
:param master: The master of this NodeConstraints.
|
136
|
+
:type master: :class:`huaweicloudsdkmrs.v1.NodeConstraint`
|
137
|
+
"""
|
138
|
+
self._master = master
|
139
|
+
|
140
|
+
@property
|
141
|
+
def core(self):
|
142
|
+
"""Gets the core of this NodeConstraints.
|
143
|
+
|
144
|
+
:return: The core of this NodeConstraints.
|
145
|
+
:rtype: :class:`huaweicloudsdkmrs.v1.NodeConstraint`
|
146
|
+
"""
|
147
|
+
return self._core
|
148
|
+
|
149
|
+
@core.setter
|
150
|
+
def core(self, core):
|
151
|
+
"""Sets the core of this NodeConstraints.
|
152
|
+
|
153
|
+
:param core: The core of this NodeConstraints.
|
154
|
+
:type core: :class:`huaweicloudsdkmrs.v1.NodeConstraint`
|
155
|
+
"""
|
156
|
+
self._core = core
|
157
|
+
|
158
|
+
@property
|
159
|
+
def task(self):
|
160
|
+
"""Gets the task of this NodeConstraints.
|
161
|
+
|
162
|
+
:return: The task of this NodeConstraints.
|
163
|
+
:rtype: :class:`huaweicloudsdkmrs.v1.NodeConstraint`
|
164
|
+
"""
|
165
|
+
return self._task
|
166
|
+
|
167
|
+
@task.setter
|
168
|
+
def task(self, task):
|
169
|
+
"""Sets the task of this NodeConstraints.
|
170
|
+
|
171
|
+
:param task: The task of this NodeConstraints.
|
172
|
+
:type task: :class:`huaweicloudsdkmrs.v1.NodeConstraint`
|
173
|
+
"""
|
174
|
+
self._task = task
|
175
|
+
|
176
|
+
@property
|
177
|
+
def core_separate(self):
|
178
|
+
"""Gets the core_separate of this NodeConstraints.
|
179
|
+
|
180
|
+
:return: The core_separate of this NodeConstraints.
|
181
|
+
:rtype: :class:`huaweicloudsdkmrs.v1.NodeConstraint`
|
182
|
+
"""
|
183
|
+
return self._core_separate
|
184
|
+
|
185
|
+
@core_separate.setter
|
186
|
+
def core_separate(self, core_separate):
|
187
|
+
"""Sets the core_separate of this NodeConstraints.
|
188
|
+
|
189
|
+
:param core_separate: The core_separate of this NodeConstraints.
|
190
|
+
:type core_separate: :class:`huaweicloudsdkmrs.v1.NodeConstraint`
|
191
|
+
"""
|
192
|
+
self._core_separate = core_separate
|
193
|
+
|
194
|
+
@property
|
195
|
+
def core_combine(self):
|
196
|
+
"""Gets the core_combine of this NodeConstraints.
|
197
|
+
|
198
|
+
:return: The core_combine of this NodeConstraints.
|
199
|
+
:rtype: :class:`huaweicloudsdkmrs.v1.NodeConstraint`
|
200
|
+
"""
|
201
|
+
return self._core_combine
|
202
|
+
|
203
|
+
@core_combine.setter
|
204
|
+
def core_combine(self, core_combine):
|
205
|
+
"""Sets the core_combine of this NodeConstraints.
|
206
|
+
|
207
|
+
:param core_combine: The core_combine of this NodeConstraints.
|
208
|
+
:type core_combine: :class:`huaweicloudsdkmrs.v1.NodeConstraint`
|
209
|
+
"""
|
210
|
+
self._core_combine = core_combine
|
211
|
+
|
212
|
+
@property
|
213
|
+
def task_separate(self):
|
214
|
+
"""Gets the task_separate of this NodeConstraints.
|
215
|
+
|
216
|
+
:return: The task_separate of this NodeConstraints.
|
217
|
+
:rtype: :class:`huaweicloudsdkmrs.v1.NodeConstraint`
|
218
|
+
"""
|
219
|
+
return self._task_separate
|
220
|
+
|
221
|
+
@task_separate.setter
|
222
|
+
def task_separate(self, task_separate):
|
223
|
+
"""Sets the task_separate of this NodeConstraints.
|
224
|
+
|
225
|
+
:param task_separate: The task_separate of this NodeConstraints.
|
226
|
+
:type task_separate: :class:`huaweicloudsdkmrs.v1.NodeConstraint`
|
227
|
+
"""
|
228
|
+
self._task_separate = task_separate
|
229
|
+
|
230
|
+
@property
|
231
|
+
def task_combine(self):
|
232
|
+
"""Gets the task_combine of this NodeConstraints.
|
233
|
+
|
234
|
+
:return: The task_combine of this NodeConstraints.
|
235
|
+
:rtype: :class:`huaweicloudsdkmrs.v1.NodeConstraint`
|
236
|
+
"""
|
237
|
+
return self._task_combine
|
238
|
+
|
239
|
+
@task_combine.setter
|
240
|
+
def task_combine(self, task_combine):
|
241
|
+
"""Sets the task_combine of this NodeConstraints.
|
242
|
+
|
243
|
+
:param task_combine: The task_combine of this NodeConstraints.
|
244
|
+
:type task_combine: :class:`huaweicloudsdkmrs.v1.NodeConstraint`
|
245
|
+
"""
|
246
|
+
self._task_combine = task_combine
|
247
|
+
|
248
|
+
@property
|
249
|
+
def node_group_task(self):
|
250
|
+
"""Gets the node_group_task of this NodeConstraints.
|
251
|
+
|
252
|
+
:return: The node_group_task of this NodeConstraints.
|
253
|
+
:rtype: :class:`huaweicloudsdkmrs.v1.NodeConstraint`
|
254
|
+
"""
|
255
|
+
return self._node_group_task
|
256
|
+
|
257
|
+
@node_group_task.setter
|
258
|
+
def node_group_task(self, node_group_task):
|
259
|
+
"""Sets the node_group_task of this NodeConstraints.
|
260
|
+
|
261
|
+
:param node_group_task: The node_group_task of this NodeConstraints.
|
262
|
+
:type node_group_task: :class:`huaweicloudsdkmrs.v1.NodeConstraint`
|
263
|
+
"""
|
264
|
+
self._node_group_task = node_group_task
|
265
|
+
|
266
|
+
def to_dict(self):
|
267
|
+
"""Returns the model properties as a dict"""
|
268
|
+
result = {}
|
269
|
+
|
270
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
271
|
+
value = getattr(self, attr)
|
272
|
+
if isinstance(value, list):
|
273
|
+
result[attr] = list(map(
|
274
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
275
|
+
value
|
276
|
+
))
|
277
|
+
elif hasattr(value, "to_dict"):
|
278
|
+
result[attr] = value.to_dict()
|
279
|
+
elif isinstance(value, dict):
|
280
|
+
result[attr] = dict(map(
|
281
|
+
lambda item: (item[0], item[1].to_dict())
|
282
|
+
if hasattr(item[1], "to_dict") else item,
|
283
|
+
value.items()
|
284
|
+
))
|
285
|
+
else:
|
286
|
+
if attr in self.sensitive_list:
|
287
|
+
result[attr] = "****"
|
288
|
+
else:
|
289
|
+
result[attr] = value
|
290
|
+
|
291
|
+
return result
|
292
|
+
|
293
|
+
def to_str(self):
|
294
|
+
"""Returns the string representation of the model"""
|
295
|
+
import simplejson as json
|
296
|
+
if six.PY2:
|
297
|
+
import sys
|
298
|
+
reload(sys)
|
299
|
+
sys.setdefaultencoding("utf-8")
|
300
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
301
|
+
|
302
|
+
def __repr__(self):
|
303
|
+
"""For `print`"""
|
304
|
+
return self.to_str()
|
305
|
+
|
306
|
+
def __eq__(self, other):
|
307
|
+
"""Returns true if both objects are equal"""
|
308
|
+
if not isinstance(other, NodeConstraints):
|
309
|
+
return False
|
310
|
+
|
311
|
+
return self.__dict__ == other.__dict__
|
312
|
+
|
313
|
+
def __ne__(self, other):
|
314
|
+
"""Returns true if both objects are not equal"""
|
315
|
+
return not self == other
|